Home | History | Annotate | Download | only in sqlite3

Lines Matching refs:Ba

3 "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.cttz_i8|0;var n=0;var o=0;var p=0;var q=0;var r=global.NaN,s=global.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 $=global.Math.min;var aa=global.Math.clz32;var ba=env.abort;var ca=env.assert;var da=env.nullFunc_iiiiiiii;var ea=env.nullFunc_iiii;var fa=env.nullFunc_viiiiii;var ga=env.nullFunc_vi;var ha=env.nullFunc_viiiii;var ia=env.nullFunc_dii;var ja=env.nullFunc_vid;var ka=env.nullFunc_di;var la=env.nullFunc_i;var ma=env.nullFunc_iiiiiiiiii;var na=env.nullFunc_vii;var oa=env.nullFunc_iiiiiii;var pa=env.nullFunc_ii;var qa=env.nullFunc_viii;var ra=env.nullFunc_v;var sa=env.nullFunc_iiiiiiiii;var ta=env.nullFunc_iiiii;var ua=env.nullFunc_viiii;var va=env.nullFunc_iii;var wa=env.nullFunc_iiid;var xa=env.nullFunc_iiiiii;var ya=env.invoke_iiiiiiii;var za=env.invoke_iiii;var Aa=env.invoke_viiiiii;var Ba=env.invoke_vi;var Ca=env.invoke_viiiii;var Da=env.invoke_dii;var Ea=env.invoke_vid;var Fa=env.invoke_di;var Ga=env.invoke_i;var Ha=env.invoke_iiiiiiiiii;var Ia=env.invoke_vii;var Ja=env.invoke_iiiiiii;var Ka=env.invoke_ii;var La=env.invoke_viii;var Ma=env.invoke_v;var Na=env.invoke_iiiiiiiii;var Oa=env.invoke_iiiii;var Pa=env.invoke_viiii;var Qa=env.invoke_iii;var Ra=env.invoke_iiid;var Sa=env.invoke_iiiiii;var Ta=env._dlerror;var Ua=env._utimes;var Va=env._getuid;var Wa=env._send;var Xa=env._dlsym;var Ya=env._mknod;var Za=env._chown;var _a=env._lseek;var $a=env._emscripten_set_main_loop_timing;var ab=env._access;var bb=env._fstat;var cb=env._chmod;var db=env._rmdir;var eb=env.___assert_fail;var fb=env._usleep;var gb=env.___buildEnvironment;var hb=env._fflush;var ib=env._pwrite;var jb=env._strerror_r;var kb=env._localtime_r;var lb=env._tzset;var mb=env._open;var nb=env._getpid;var ob=env._sbrk;var pb=env._fcntl;var qb=env._emscripten_memcpy_big;var rb=env._unlink;var sb=env._sysconf;var tb=env._fchmod;var ub=env.___setErrNo;var vb=env._ftruncate;var wb=env._mkdir;var xb=env._pread;var yb=env._mkport;var zb=env._dlopen;var Ab=env._dlclose;var Bb=env._write;var Cb=env._fsync;var Db=env.___errno_location;var Eb=env._stat;var Fb=env._recv;var Gb=env._geteuid;var Hb=env._getenv;var Ib=env._sleep;var Jb=env._emscripten_set_main_loop;var Kb=env._abort;var Lb=env._time;var Mb=env._fchown;var Nb=env._strerror;var Ob=env._gettimeofday;var Pb=env._munmap;var Qb=env._mmap;var Rb=env._localtime;var Sb=env._getcwd;var Tb=env._close;var Ub=env._read;var Vb=env._truncate;var Wb=0.0;
5 function dh(d){d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;k=c[d>>2]|0;l=c[d+80>>2]|0;h=d+44|0;do if(!(c[h>>2]|0)){c[k+52>>2]=l;e=c[k+236>>2]|0;if(e){d=e+8|0;if(!(b[d>>1]&9312)){b[d>>1]=1;break}else{rg(e);break}}}else{i=k+65|0;j=a[i>>0]|0;d=c[3164]|0;if(d)jc[d&3]();g=k+236|0;d=c[g>>2]|0;do if(!d){d=ih(k,40,0)|0;if(!d){c[g>>2]=d;break}else{e=d+0|0;f=e+40|0;do{a[e>>0]=0;e=e+1|0}while((e|0)<(f|0));b[d+8>>1]=1;c[d+32>>2]=k;c[g>>2]=d;f=8;break}}else f=8;while(0);if((f|0)==8)Tg(d,c[h>>2]|0,-1,1,-1)|0;d=c[3166]|0;if(d)jc[d&3]();a[i>>0]=j;c[k+52>>2]=l}while(0);return l|0}function eh(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();k=o;c[g>>2]=0;if(!((Dh(a)|0)==0|(b|0)==0)){k=c[a+20>>2]|0;if((k|0)>0){l=c[a+16>>2]|0;n=0;do{m=c[l+(n<<4)+4>>2]|0;if(m)c[(c[m+4>>2]|0)+4>>2]=c[m>>2];n=n+1|0}while((n|0)!=(k|0))}k=Bn(a,b,d,e,f,g,h)|0;if((k|0)==17){id(c[g>>2]|0)|0;k=Bn(a,b,d,e,f,g,h)|0}}else{c[k>>2]=105892;c[k+4>>2]=10788;Zc(21,13648,k);k=21}i=o;return k|0}function fh(a,d){a=a|0;d=d|0;var e=0,f=0;f=a+68|0;if((b[f>>1]|0)>0){e=d+60|0;d=a+60|0;a=0;do{Wl((c[e>>2]|0)+(a*40|0)|0,(c[d>>2]|0)+(a*40|0)|0);a=a+1|0}while((a|0)<(b[f>>1]|0))}return}function gh(b,c){b=b|0;c=c|0;var d=0,e=0;if(c){d=c;while(1)if(!(a[d>>0]|0))break;else d=d+1|0;e=(d-c&1073741823)+1|0;d=ih(b,e,0)|0;if(d)gw(d|0,c|0,e|0)|0;else d=0}else d=0;return d|0}function hh(a,d){a=a|0;d=d|0;var e=0,f=0;f=c[a+8>>2]|0;if((d|0)>=1){bh(f,d)|0;b[f+8>>1]=8192;c[f>>2]=c[a+4>>2];e=f+16|0;a=c[e>>2]|0;if(!a)e=0;else{bw(a|0,0,d|0)|0;e=c[e>>2]|0}}else{e=f+8|0;if(!(b[e>>1]&9312))b[e>>1]=1;else rg(f);c[f+16>>2]=0;e=0}return e|0}function ih(b,d,f){b=b|0;d=d|0;f=f|0;var g=0,h=0,i=0;a:do if(b){i=b+65|0;if(!(a[i>>0]|0)){do if(a[b+250>>0]|0){if(0<f>>>0|(0==(f|0)?(e[b+248>>1]|0)>>>0<d>>>0:0)){g=b+264|0;c[g>>2]=(c[g>>2]|0)+1;break}h=b+272|0;g=c[h>>2]|0;if(!g){g=b+268|0;c[g>>2]=(c[g>>2]|0)+1;break}c[h>>2]=c[g>>2];f=b+252|0;h=c[f>>2]|0;d=h+1|0;c[f>>2]=d;f=b+260|0;c[f>>2]=(c[f>>2]|0)+1;f=b+256|0;if((h|0)>=(c[f>>2]|0))c[f>>2]=d;break a}while(0);g=mg(d,f)|0;if(!g){a[i>>0]=1;g=0}}else g=0}else g=mg(d,f)|0;while(0);return g|0}function jh(a,d){a=a|0;d=d|0;var f=0,g=0;do if(a){f=c[a+20>>2]|0;if((f|0)!=0?((d|0)>-1?(e[a+84>>1]|0|0)>(d|0):0):0){f=f+(d*40|0)|0;break}f=c[a>>2]|0;if((f|0)!=0?(c[f+52>>2]=25,g=c[f+236>>2]|0,(g|0)!=0):0){f=g+8|0;if(!(b[f>>1]&9312)){b[f>>1]=1;f=41496;break}else{rg(g);f=41496;break}}else f=41496}else f=41496;while(0);return f|0}function kh(a,e,f,g,h,i){a=a|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0;j=lh(a,e)|0;if(!j)if(!f)j=0;else{e=(c[a+60>>2]|0)+((e+-1|0)*40|0)|0;j=Tg(e,f,g,i,h)|0;if((j|0)!=0|i<<24>>24==0)e=j;else e=Ul(e,d[(c[a>>2]|0)+62>>0]|0)|0;j=c[a>>2]|0;c[j+52>>2]=e;h=c[j+236>>2]|0;do if(h){g=h+8|0;if(!(b[g>>1]&9312)){b[g>>1]=1;break}else{rg(h);j=c[a>>2]|0;break}}while(0);j=Kg(j,e)|0}else{g=h;if(!((g|0)==0|(g|0)==-1))_b[h&31](f)}return j|0}function lh(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();g=k;do if(!(Yg(a)|0)){if((c[a+40>>2]|0)==-1108210269?(c[a+76>>2]|0)<=-1:0){if((d|0)>=1?(b[a+68>>1]|0)>=(d|0):0){h=d+-1|0;g=c[a+60>>2]|0;f=g+(h*40|0)|0;e=g+(h*40|0)+8|0;if(!((b[e>>1]&9312)==0?(c[g+(h*40|0)+24>>2]|0)==0:0))Mg(f);b[e>>1]=1;f=c[a>>2]|0;c[f+52>>2]=0;f=c[f+236>>2]|0;do if(f){e=f+8|0;if(!(b[e>>1]&9312)){b[e>>1]=1;break}else{rg(f);break}}while(0);g=a+88|0;e=b[g>>1]|0;if(!(e&256)){e=0;break}f=c[a+188>>2]|0;if((d|0)<33){if(!((f&1<<h|0)!=0|(f|0)==-1)){e=0;break}}else if((f|0)!=-1){e=0;break}b[g>>1]=e|8;e=0;break}e=c[a>>2]|0;c[e+52>>2]=25;e=c[e+236>>2]|0;if(!e){e=25;break}f=e+8|0;if(!(b[f>>1]&9312)){b[f>>1]=1;e=25;break}else{rg(e);e=25;break}}f=c[a>>2]|0;c[f+52>>2]=21;f=c[f+236>>2]|0;do if(f){e=f+8|0;if(!(b[e>>1]&9312)){b[e>>1]=1;break}else{rg(f);break}}while(0);c[g>>2]=c[a+168>>2];Zc(21,41456,g);c[g>>2]=69987;c[g+4>>2]=10788;Zc(21,13648,g);e=21}else{c[g>>2]=69979;c[g+4>>2]=10788;Zc(21,13648,g);e=21}while(0);i=k;return e|0}function mh(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;a:do if(!((d|0)==0|(e|0)==0)?(i=b[d+70>>1]|0,i<<16>>16>0):0){g=c[d+64>>2]|0;d=0;while(1){h=c[g+(d<<2)>>2]|0;if(((h|0)!=0?(Xv(h,e,f)|0)==0:0)?(a[h+f>>0]|0)==0:0)break;d=d+1|0;if((d|0)>=(i<<16>>16|0)){d=0;break a}}d=d+1|0}else d=0;while(0);return d|0}function nh(d,f){d=d|0;f=f|0;var g=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();n=o+8|0;m=o;g=a[d+10>>0]|0;k=d+16|0;l=d+12|0;do if(Pl(c[k>>2]|0,n,c[l>>2]|0,g)|0){if(!(Ql(c[k>>2]|0,m,c[l>>2]|0,g)|0)){l=m;k=c[l+4>>2]|0;g=d;c[g>>2]=c[l>>2];c[g+4>>2]=k;g=d+8|0;b[g>>1]=e[g>>1]|0|4;break}h[d>>3]=+h[n>>3];g=d+8|0;b[g>>1]=e[g>>1]|0|8;if(f)$l(d)}while(0);i=o;return}function oh(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;if(!(Cn(b)|0)){g=Wh(c[b>>2]|0,e,f)|0;if(!g){g=(d|0)!=0?41368:41384;if(!f){c[h>>2]=g;c[h+4>>2]=e;ph(b,27680,h)}else{c[h>>2]=g;c[h+4>>2]=f;c[h+8>>2]=e;ph(b,27664,h)}a[b+17>>0]=1;g=0}}else g=0;i=k;return g|0}function ph(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();h=g;f=c[b>>2]|0;c[h>>2]=e;e=Sk(f,d,h)|0;if(!(a[f+68>>0]|0)){d=b+64|0;c[d>>2]=(c[d>>2]|0)+1;d=b+4|0;ig(f,c[d>>2]|0);c[d>>2]=e;c[b+12>>2]=1}else ig(f,e);i=g;return}function qh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();f=e;c[f>>2]=d;a=Sk(a,b,f)|0;i=e;return a|0}function rh(a){a=a|0;var b=0,d=0,e=0;d=c[a>>2]|0;b=ih(d,208,0)|0;if(!b)b=0;else{bw(b|0,0,208)|0;c[b>>2]=d;d=d+4|0;e=c[d>>2]|0;if(e)c[e+48>>2]=b;c[b+52>>2]=e;c[b+48>>2]=0;c[d>>2]=b;c[b+40>>2]=649915045;c[b+24>>2]=a}return b|0}function sh(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0;i=b+32|0;h=c[i>>2]|0;if((c[(c[b+24>>2]|0)+84>>2]|0)<=(h|0))if(!(Dn(b)|0)){j=c[i>>2]|0;k=4}else h=1;else{j=h;k=4}if((k|0)==4){c[i>>2]=j+1;i=c[b+4>>2]|0;a[i+(h*20|0)>>0]=d;a[i+(h*20|0)+3>>0]=0;c[i+(h*20|0)+4>>2]=e;c[i+(h*20|0)+8>>2]=f;c[i+(h*20|0)+12>>2]=g;c[i+(h*20|0)+16>>2]=0;a[i+(h*20|0)+1>>0]=0}return h|0}function th(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;j=c[b>>2]|0;g=c[b+4>>2]|0;do if((g|0)!=0?(a[j+65>>0]|0)==0:0){if((d|0)<0)d=(c[b+32>>2]|0)+-1|0;i=g+(d*20|0)+1|0;h=g+(d*20|0)+16|0;En(j,a[i>>0]|0,c[h>>2]|0);c[h>>2]=0;if((f|0)==-14){c[h>>2]=e;a[i>>0]=-14;break}if(!e){c[h>>2]=0;a[i>>0]=0;break}if((f|0)==-6){c[h>>2]=e;a[i>>0]=-6;break}else if((f|0)==-10){c[h>>2]=e;a[i>>0]=-10;d=e+12|0;c[d>>2]=(c[d>>2]|0)+1;break}else{if((f|0)<0){c[h>>2]=e;a[i>>0]=f;break}if(!f){d=e;while(1)if(!(a[d>>0]|0))break;else d=d+1|0;g=d-e&1073741823}else g=f;b=c[b>>2]|0;d=fw(g|0,((g|0)<0)<<31>>31|0,1,0)|0;d=ih(b,d,C)|0;if(!d)d=0;else{gw(d|0,e|0,g|0)|0;a[d+g>>0]=0}c[h>>2]=d;a[i>>0]=-1;break}}else k=3;while(0);if((k|0)==3?(f|0)!=-10:0)En(j,f,e);return}function uh(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;k=b+32|0;f=c[k>>2]|0;if((f+d|0)>(c[(c[b+24>>2]|0)+84>>2]|0))if(!(Dn(b)|0)){f=c[k>>2]|0;g=4}else f=0;else g=4;if((g|0)==4)if((d|0)>0){i=b+4|0;j=0;while(1){l=a[e+2>>0]|0;g=l<<24>>24;b=j+f|0;h=c[i>>2]|0;a[h+(b*20|0)>>0]=a[e>>0]|0;c[h+(b*20|0)+4>>2]=a[e+1>>0];if(l<<24>>24<0)g=f+~g|0;c[h+(b*20|0)+8>>2]=g;c[h+(b*20|0)+12>>2]=a[e+3>>0];a[h+(b*20|0)+1>>0]=0;c[h+(b*20|0)+16>>2]=0;a[h+(b*20|0)+3>>0]=0;j=j+1|0;if((j|0)==(d|0))break;else e=e+4|0}c[k>>2]=(c[k>>2]|0)+d}return f|0}function vh(b,d){b=b|0;d=d|0;var e=0,f=0;e=b+32|0;if((c[e>>2]|0)>(d|0)?(f=c[b+4>>2]|0,En(c[b>>2]|0,a[f+(d*20|0)+1>>0]|0,c[f+(d*20|0)+16>>2]|0),b=f+(d*20|0)|0,c[b+0>>2]=0,c[b+4>>2]=0,c[b+8>>2]=0,c[b+12>>2]=0,c[b+16>>2]=0,a[b>>0]=-100,((c[e>>2]|0)+-1|0)==(d|0)):0)c[e>>2]=d;return}function wh(e,f){e=e|0;f=f|0;var g=0,h=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;K=i;i=i+16|0;if((i|0)>=(j|0))baba();o=p;n=e+20|0;m=c[n>>2]|0;l=c[m+60>>2]|0;c[l>>2]=f;c[l+4>>2]=g;l=Od(m)|0;do if((l|0)!=100){k=c[n>>2]|0;if(k){l=id(k)|0;c[n>>2]=0;k=c[e+24>>2]|0;if(!l){l=o;c[l>>2]=f;c[l+4>>2]=g;l=1;k=qh(k,41432,o)|0;break}else{c[o>>2]=Oe(k)|0;k=qh(k,10344,o)|0;break}}else k=0}else{l=c[c[m+56>>2]>>2]|0;k=c[e+12>>2]|0;m=c[l+(k<<2)+84>>2]|0;if(m>>>0>=12){c[e+8>>2]=c[l+((b[l+20>>1]|0)+k<<2)+84>>2];c[e+4>>2]=(m+-12|0)>>>1;l=c[l>>2]|0;c[e+16>>2]=l;l=l+72|0;a[l>>0]=d[l>>0]|16;l=0;k=0;break}l=c[e+24>>2]|0;if(!m)k=20352;else k=(m|0)==7?20336:20320;c[o>>2]=k;k=qh(l,41400,o)|0;id(c[n>>2]|0)|0;c[n>>2]=0;l=1}while(0);c[h>>2]=k;i=p;return l|0}function yh(a){a=a|0;var b=0;if(a){b=c[a>>2]|0;ig(b,c[a+112>>2]|0);Jk(b,c[a+316>>2]|0)}return}function zh(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=a[b+73>>0]|0;do if(!(g<<24>>24))f=4;else{if((g&255)>2?(f=Gn(b)|0,(f|0)!=0):0)break;f=Hm(b,c,d,e,0)|0}while(0);return f|0}function Ah(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();k=m;if(!a){c[k>>2]=77646;c[k+4>>2]=10788;Zc(21,13648,k);f=21}else{l=c[a+24>>2]|0;k=a+20|0;h=c[k>>2]|0;do if((f|e|0)>=0?(o=fw(f|0,((f|0)<0)<<31>>31|0,e|0,((e|0)<0)<<31>>31|0)|0,q=C,n=c[a+4>>2]|0,p=((n|0)<0)<<31>>31,!((q|0)>(p|0)|(q|0)==(p|0)&o>>>0>n>>>0)):0)if(h){f=lc[g&31](c[a+16>>2]|0,(c[a+8>>2]|0)+f|0,e,d)|0;if((f|0)==4){Jg(h)|0;c[k>>2]=0;f=4;break}else{c[h+80>>2]=f;break}}else f=4;else f=1;while(0);c[l+52>>2]=f;h=c[l+236>>2]|0;do if(h){k=h+8|0;if(!(b[k>>1]&9312)){b[k>>1]=1;break}else{rg(h);break}}while(0);f=Kg(l,f)|0}i=m;return f|0}function Bh(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;h=b+73|0;g=a[h>>0]|0;if((g&255)>2){g=Gn(b)|0;if(!g){g=a[h>>0]|0;i=4}}else i=4;if((i|0)==4)if(g<<24>>24==1){Hn(c[b+4>>2]|0,c[b+60>>2]|0,b)|0;if(!(a[b+72>>0]&1))g=8;else g=Hm(b,d,e,f,1)|0}else g=4;return g|0}function Ch(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=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;y=i;i=i+16|0;if((i|0)>=(j|0))ba();w=y+4|0;x=y;c[w>>2]=b;c[x>>2]=e;r=d[f+1>>0]|0;s=d[f>>0]|0;v=a[f+3>>0]|0;u=(g|0)!=0;if(u)t=g;else t=d[f+2>>0]|0;o=v<<24>>24!=0;m=0;a:while(1){while(1){k=In(w)|0;if(!k){q=60;break a}if((k|0)==(s|0)){q=7;break a}if((k|0)!=(t|0))break;if(u){q=40;break}e=In(x)|0;if(!e){h=0;break a}l=In(w)|0;if((l|0)==94){l=In(w)|0;h=1}else h=0;if((l|0)==93){l=In(w)|0;n=(e|0)==93&1}else n=0;k=(l|0)==0;if((l|0)!=93&(k^1)){k=0;while(1){if(((l|0)==45?(p=a[c[w>>2]>>0]|0,p<<24>>24!=93):0)?p<<24>>24!=0&(k|0)!=0:0){l=e>>>0<k>>>0|e>>>0>(In(w)|0)>>>0;b=0;n=l?n:1}else{b=l;n=(e|0)==(l|0)?1:n}l=In(w)|0;k=(l|0)==0;if(!((l|0)!=93&(k^1))){l=k;break}else k=b}}else l=k;if(l|(n|0)==(h|0)){h=0;break a}}if((q|0)==40){q=0;k=In(w)|0;if(!k){h=0;break}m=c[w>>2]|0}l=In(x)|0;if((k|0)==(l|0))continue;if(o&k>>>0<128&l>>>0<128?(a[9328+(k&255)>>0]|0)==(a[9328+(l&255)>>0]|0):0)continue;if((k|0)!=(r|0)){h=0;break}if(!((l|0)!=0?(c[w>>2]|0)!=(m|0):0)){h=0;break}}b:do if((q|0)==7){e=In(w)|0;b=(e|0)==(r|0);if((e|0)==(s|0)|b)do{if(b?(In(x)|0)==0:0){h=0;break b}e=In(w)|0;b=(e|0)==(r|0)}while((e|0)==(s|0)|b);if(e){do if((e|0)==(t|0)){if(u){e=In(w)|0;if(!e){h=0;break b}else break}h=c[x>>2]|0;c:do if(!(a[h>>0]|0))h=0;else{b=c[w>>2]|0;while(1){if(Ch(b+-1|0,h,f,0)|0)break;e=h+1|0;c[x>>2]=e;if((d[h>>0]|0)>191?(a[e>>0]&-64)<<24>>24==-128:0){while(1){h=h+2|0;if((a[h>>0]&-64)<<24>>24==-128){q=e;e=h;h=q}else break}c[x>>2]=h}else h=e;if(!(a[h>>0]|0)){h=0;break c}}h=(a[h>>0]|0)!=0}while(0);h=h&1;break b}while(0);if(e>>>0>=129){h=In(x)|0;if(!h){h=0;break}b=c[w>>2]|0;while(1){if((h|0)==(e|0)?(Ch(b,c[x>>2]|0,f,g)|0)!=0:0){h=1;break b}h=In(x)|0;if(!h){h=0;break b}}}if(!(v<<24>>24)){n=e;m=e}else{m=e&255;n=d[9328+m>>0]|0;m=((d[10368+m>>0]|-33)^32)&e}b=c[x>>2]|0;h=b+1|0;c[x>>2]=h;e=a[b>>0]|0;if(!(e<<24>>24))h=0;else{l=c[w>>2]|0;k=e&255;while(1){if((k|0)==(n|0)|(k|0)==(m|0)?(Ch(l,h,f,g)|0)!=0:0){h=1;break b}e=b+2|0;c[x>>2]=e;b=a[h>>0]|0;if(!(b<<24>>24)){h=0;break}else{q=h;k=b&255;h=e;b=q}}}}else h=1}else if((q|0)==60)h=(a[c[x>>2]>>0]|0)==0&1;while(0);i=y;return h|0}function Dh(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();b=d;do if(a){a=c[a+76>>2]|0;if((a|0)==-1607883113){a=1;break}else if((a|0)==1266094736|(a|0)==-264537850){c[b>>2]=41352;Zc(21,15256,b);a=0;break}else{c[b>>2]=15248;Zc(21,15256,b);a=0;break}}else{c[b>>2]=20304;Zc(21,15256,b);a=0}while(0);i=d;return a|0}function Eh(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();k=n;l=n+8|0;c[l>>2]=0;c[g>>2]=0;if((Dh(b)|0)==0|(d|0)==0){c[k>>2]=106003;c[k+4>>2]=10788;Zc(21,13648,k);f=21}else{a:do if((e|0)>-1)if((e|0)>0){k=0;do{if((a[d+k>>0]|0)==0?(a[d+(k|1)>>0]|0)==0:0)break a;k=k+2|0}while((k|0)<(e|0))}else k=0;else k=e;while(0);m=Nh(b,d,k)|0;if(m){f=eh(b,m,-1,f,0,g,l)|0;k=c[l>>2]|0;if((k|0)!=0&(h|0)!=0){g=Jn(m,k-m|0)|0;if((g|0)>0){e=0;k=d;do{k=(a[k+1>>0]&-8)<<24>>24==-40?k+4|0:k+2|0;e=e+1|0}while((e|0)!=(g|0))}else k=d;c[h>>2]=d+(k-d)}}else f=0;ig(b,m);f=Kg(b,f)|0}i=n;return f|0}function Fh(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();o=r;p=b+12|0;h=c[p>>2]|0;n=(e|0)!=0;g=d<<((h|0)==0&n&1);q=b+20|0;l=b+8|0;k=c[l>>2]|0;if((g+(c[q>>2]|0)|0)>>>0>k>>>0){g=g+(k<<1)|0;c[l>>2]=g;h=c[b>>2]|0;if((Hc()|0)==0?(m=ng(h,g<<2,0)|0,(m|0)!=0):0){c[b>>2]=m;h=c[p>>2]|0;m=5}else m=21}else m=5;a:do if((m|0)==5){g=b+16|0;if(!h){c[g>>2]=d;if((d|0)>0){g=0;do{c[o>>2]=c[f+(g<<2)>>2];h=Wc(10344,o)|0;if(!h){m=21;break a}l=c[q>>2]|0;c[q>>2]=l+1;c[(c[b>>2]|0)+(l<<2)>>2]=h;g=g+1|0}while((g|0)<(d|0))}}else if((c[g>>2]|0)!=(d|0)){g=b+4|0;Sc(c[g>>2]|0);c[g>>2]=Wc(40912,o)|0;c[b+24>>2]=1;g=1;break}if(n){if((d|0)>0){l=0;do{k=e+(l<<2)|0;g=c[k>>2]|0;if(!g)g=0;else{h=g;while(1)if(!(a[h>>0]|0))break;else h=h+1|0;h=(h-g&1073741823)+1|0;g=Pc(h)|0;if(!g){m=21;break a}gw(g|0,c[k>>2]|0,h|0)|0}o=c[q>>2]|0;c[q>>2]=o+1;c[(c[b>>2]|0)+(o<<2)>>2]=g;l=l+1|0}while((l|0)<(d|0))}c[p>>2]=(c[p>>2]|0)+1;g=0}else g=0}while(0);if((m|0)==21){c[b+24>>2]=7;g=1}i=r;return g|0}function Gh(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();m=o;if(!d)k=0;else{h=d;while(1)if(!(a[h>>0]|0))break;else h=h+1|0;k=h-d&1073741823}l=b+308|0;h=Zm(l,d,m)|0;if((h|0)!=0?(c[h+8>>2]|0)!=0:0){c[m>>2]=114188;c[m+4>>2]=10788;Zc(21,13648,m);h=21}else{h=ih(b,k+17|0,0)|0;if((h|0)!=0?(n=h+16|0,gw(n|0,d|0,k+1|0)|0,c[h+4>>2]=n,c[h>>2]=e,c[h+8>>2]=f,c[h+12>>2]=g,n=Ek(l,n,h)|0,(n|0)!=0):0){a[b+65>>0]=1;ig(b,n);h=0}else h=0}h=Kg(b,h)|0;if((h|0)!=0&(g|0)!=0)_b[g&31](f);i=o;return h|0}function Hh(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=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;A=i;i=i+16|0;if((i|0)>=(j|0))ba();x=A;n=A+8|0;y=c[b>>2]|0;l=c[y+92>>2]|0;if(!(c[y+148>>2]|0))c[y+240>>2]=0;z=b+12|0;c[z>>2]=0;p=b+480|0;c[p>>2]=d;t=mg(1612,0)|0;if(t){c[t>>2]=-1;q=y+250|0;r=a[q>>0]|0;if(c[y+276>>2]|0)a[q>>0]=1;s=y+65|0;o=b+504|0;f=b+508|0;m=y+240|0;k=0;h=-1;a:while(1){while(1){if(a[s>>0]|0){v=19;break a}g=d+k|0;if(!(a[g>>0]|0)){v=19;break a}c[o>>2]=g;g=yn(g,n)|0;c[f>>2]=g;k=g+k|0;if((k|0)>(l|0)){v=12;break a}g=c[n>>2]|0;if((g|0)==150){v=16;break a}else if((g|0)==1){h=g;v=17;break}else if((g|0)!=151){h=g;break}if(c[m>>2]|0){v=15;break a}}if((v|0)==17){v=0;c[p>>2]=d+k};c[x+0>>2]=c[o+0>>2];c[x+4>>2]=c[o+4>>2];Kn(t,h,x,b);h=c[n>>2]|0;if(c[z>>2]|0){v=19;break}}if((v|0)==12){c[z>>2]=18;v=19}else if((v|0)==15){ph(b,20384,x);c[z>>2]=9;v=19}else if((v|0)==16){ig(y,c[e>>2]|0);c[x>>2]=o;c[e>>2]=qh(y,20400,x)|0;f=1}if((v|0)==19){k=d+k|0;if((a[k>>0]|0)==0?(c[z>>2]|0)==0:0){if((h|0)!=1){c[x+0>>2]=c[o+0>>2];c[x+4>>2]=c[o+4>>2];Kn(t,1,x,b);c[p>>2]=k};c[x+0>>2]=c[o+0>>2];c[x+4>>2]=c[o+4>>2];Kn(t,0,x,b);f=0}else f=0}if((c[t>>2]|0)>-1)do Ln(t);while((c[t>>2]|0)>-1);Sc(t);a[q>>0]=r;if(!(a[s>>0]|0)){h=c[z>>2]|0;if(!((h|0)==101|(h|0)==0)){u=h;v=29}}else{c[z>>2]=7;u=7;v=29}if((v|0)==29?(w=b+4|0,(c[w>>2]|0)==0):0){if((u|0)!=516){h=u&255;if(h>>>0>26|(h|0)==2)h=16328;else h=c[15488+(h<<2)>>2]|0}else h=16344;c[x>>2]=h;$g(w,y,10344,x)}h=b+4|0;g=c[h>>2]|0;if(g){c[e>>2]=g;e=c[z>>2]|0;c[x>>2]=g;Zc(e,10344,x);c[h>>2]=0;f=f+1|0}h=b+8|0;g=c[h>>2]|0;if(((g|0)!=0?(c[b+64>>2]|0)>0:0)?(a[b+18>>0]|0)==0:0){Ll(g);c[h>>2]=0}if(!(a[b+18>>0]|0)){e=b+400|0;ig(y,c[e>>2]|0);c[e>>2]=0;c[b+396>>2]=0}Sc(c[b+520>>2]|0);if(!(a[b+451>>0]|0))gg(y,c[b+484>>2]|0);if(a[b+449>>0]|0)Mn(y,c[b+532>>2]|0);fg(y,c[b+488>>2]|0);h=c[b+444>>2]|0;k=b+472|0;g=c[k>>2]|0;if((h|0)>0)do{h=h+-1|0;ig(y,c[g+(h<<2)>>2]|0);g=c[k>>2]|0}while((h|0)>0);ig(y,g);h=b+404|0;g=c[h>>2]|0;if(g)do{c[h>>2]=c[g>>2];ig(y,g);g=c[h>>2]|0}while((g|0)!=0);h=b+524|0;g=c[h>>2]|0;if(g)do{c[h>>2]=c[g+72>>2];gg(y,g);g=c[h>>2]|0}while((g|0)!=0);if((f|0)>0?(c[z>>2]|0)==0:0)c[z>>2]=1}else{a[y+65>>0]=1;f=7}i=A;return f|0}function Ih(a){a=a|0;if(a){if(!((b[a+8>>1]&9312)==0?(c[a+24>>2]|0)==0:0))Mg(a);ig(c[a+32>>2]|0,a)}return}function Jh(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0;if(!(c[d+252>>2]|0)){n=d+251|0;if(a[n>>0]|0)Sc(c[d+276>>2]|0);j=f&-8;h=(j|0)<5?0:j;i=(g|0)<0?0:g;if(!((h|0)==0|(i|0)==0))if(!e){f=c[3164]|0;if(f)jc[f&3]();f=_(h,i)|0;f=mg(f,((f|0)<0)<<31>>31)|0;g=c[3166]|0;if(g)jc[g&3]();if(!f)f=0;else i=(hc[c[8744+48>>2]&127](f)|0)/(j|0)|0}else f=e;else{h=0;f=0}g=d+276|0;c[g>>2]=f;m=d+272|0;c[m>>2]=0;b[d+248>>1]=h;if(!f){c[g>>2]=d;c[d+280>>2]=d;a[d+250>>0]=0;f=0}else{if((i|0)>0){g=_(h,i)|0;l=f+(_(h,i+-1|0)|0)|0;k=0;j=f;while(1){i=i+-1|0;c[j>>2]=k;if((i|0)<=0)break;else{k=j;j=j+h|0}}c[m>>2]=l;f=f+g|0}c[d+280>>2]=f;a[d+250>>0]=1;f=(e|0)==0&1}a[n>>0]=f;f=0}else f=5;return f|0}function Kh(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();p=q;do if(!b)e=0;else{l=b+76|0;n=c[l>>2]|0;if(!((n|0)==1266094736|(n|0)==-1607883113|(n|0)==-264537850)){c[p>>2]=15248;Zc(21,15256,p);c[p>>2]=128509;c[p+4>>2]=10788;Zc(21,13648,p);e=21;break}m=b+20|0;e=c[m>>2]|0;a:do if((e|0)>0){n=b+16|0;f=c[n>>2]|0;h=0;do{g=c[f+(h<<4)+4>>2]|0;if(g)c[(c[g+4>>2]|0)+4>>2]=c[g>>2];h=h+1|0}while((h|0)!=(e|0));k=0;while(1){e=c[f+(k<<4)+12>>2]|0;if((e|0)!=0?(o=c[e+16>>2]|0,(o|0)!=0):0){e=o;do{f=c[e+8>>2]|0;b:do if(a[f+44>>0]&16){g=f+60|0;while(1){f=c[g>>2]|0;if(!f)break b;h=f+24|0;if((c[f>>2]|0)==(b|0))break;else g=h}c[g>>2]=c[h>>2];wn(f)}while(0);e=c[e>>2]|0}while((e|0)!=0)}e=k+1|0;if((e|0)>=(c[m>>2]|0))break a;f=c[n>>2]|0;k=e}}while(0);nl(b);Nn(b,68);if((d|0)==0?(Fl(b)|0)!=0:0){qg(b,5,16368,p);e=5;break}c[l>>2]=1691352191;Ig(b);e=0}while(0);i=q;return e|0}function Lh(a,b){a=a|0;b=b|0;if(((b*1e3|0)+1e3|0)>(c[a+492>>2]|0))b=0;else{b=c[a>>2]|0;nc[c[b+60>>2]&127](b,1e6)|0;b=1}return b|0}function Mh(d,f,g,h,k,l,m,n,o){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();t=v;do if(f){r=(l|0)!=0;p=(n|0)!=0;if(r)if(p|(m|0)!=0){u=8;break}else{p=0;q=0}else{q=(m|0)!=0;if(!(q|p^1)){u=8;break}}if(!(q&((r|p)^1)|(g|0)<-1|(g|0)>127)){p=f;while(1)if(!(a[p>>0]|0))break;else p=p+1|0;q=p-f&1073741823;if(q>>>0<=255){s=h&2048;p=h&7;if((p|0)!=4){if((p|0)==5){p=Mh(d,f,g,s|1,k,l,m,n,o)|0;if(p)break;p=Mh(d,f,g,s|2,k,l,m,n,o)|0;if(!p)p=3;else break}}else p=2;r=p&255;h=Oh(d,f,q,g,r,0)|0;if(((h|0)!=0?(e[h+2>>1]&3|0)==(p|0):0)?(b[h>>1]|0)==(g|0):0){if(c[d+148>>2]|0){qg(d,5,15424,t);p=5;break}p=c[d+4>>2]|0;if(p)do{t=p+88|0;b[t>>1]=b[t>>1]|8;p=c[p+52>>2]|0}while((p|0)!=0)}p=Oh(d,f,q,g,r,1)|0;if(!p)p=7;else{Jl(d,p);if(o)c[o>>2]=(c[o>>2]|0)+1;c[p+32>>2]=o;o=p+2|0;b[o>>1]=e[o>>1]&3|s;c[p+12>>2]=l;c[p+16>>2]=m;c[p+20>>2]=n;c[p+4>>2]=k;b[p>>1]=g;p=0}}else u=8}else u=8}else u=8;while(0);if((u|0)==8){c[t>>2]=129075;c[t+4>>2]=10788;Zc(21,13648,t);p=21}i=v;return p|0}function Nh(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;l=i;i=i+48|0;if((i|0)>=(j|0))ba();k=l;g=k+0|0;h=g+40|0;do{c[g>>2]=0;g=g+4|0}while((g|0)<(h|0));c[k+32>>2]=d;Tg(k,e,f,2,0)|0;f=k+8|0;e=c[f>>2]|0;if(!((e&2|0)==0|(e&16711680|0)==65536))xn(k,1)|0;if(!(a[d+65>>0]|0))f=c[k+16>>2]|0;else{if(!((b[f>>1]&9312)==0?(c[k+24>>2]|0)==0:0))Mg(k);c[k+16>>2]=0;f=0}i=l;return f|0}function Oh(e,f,g,h,i,j){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0;n=((d[9328+(d[f>>0]|0)>>0]|0)+g|0)%23|0;o=e+336|0;l=Nk(o,n,f,g)|0;if(!l){m=0;k=0}else{m=0;k=0;do{q=On(l,h,i)|0;p=(q|0)>(m|0);m=p?q:m;k=p?l:k;l=c[l+8>>2]|0}while((l|0)!=0)}do if(!(j<<24>>24)){if((k|0)!=0?(c[e+24>>2]&2097152|0)==0:0){l=0;n=12;break}l=Nk(10840,n,f,g)|0;if(!l){m=0;n=8}else{m=0;do{p=On(l,h,i)|0;n=(p|0)>(m|0);m=n?p:m;k=n?l:k;l=c[l+8>>2]|0}while((l|0)!=0);n=8}}else n=8;while(0);do if((n|0)==8){l=j<<24>>24!=0;if(l&(m|0)<6){l=g+37|0;k=ih(e,l,0)|0;if(!k){n=14;break}bw(k|0,0,l|0)|0;l=k+36|0;c[k+24>>2]=l;b[k>>1]=h;b[k+2>>1]=i&255;gw(l|0,f|0,g|0)|0;a[k+(g+36)>>0]=0;jg(o,k);l=1}if(!k)n=14;else n=12}while(0);if((n|0)==12)if((c[k+16>>2]|0)==0?!((c[k+12>>2]|0)!=0|l):0)n=14;if((n|0)==14)k=0;return k|0}function Ph(b,d,e){b=b|0;d=d|0;e=e|0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();e=d;c[e>>2]=c[(c[b+4>>2]|0)+24>>2];e=Wc(15304,e)|0;c[b+20>>2]=1;a[b+25>>0]=1;Tg(c[b>>2]|0,e,-1,1,-1)|0;Sc(e);i=d;return}function Qh(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;if((a|0)<=(e|0)){e=c[3164]|0;if(e)jc[e&3]();Gf(b,d,0,0,0)|0;e=c[3166]|0;if(e)jc[e&3]()}return 0}function Rh(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;a:do if(d){e=d;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;g=e-d&1073741823;f=c[b+20>>2]|0;e=f+-1|0;if((f|0)>0){h=e;f=(c[b+16>>2]|0)+(e<<4)|0;while(1){b=c[f>>2]|0;if(!b)e=0;else{e=b;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;e=e-b&1073741823}if((g|0)==(e|0)?($c(b,d)|0)==0:0){e=h;break a}e=h+-1|0;if((h|0)>0){h=e;f=f+-16|0}else break}}}else e=-1;while(0);return e|0}function Sh(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;q=b+20|0;i=c[q>>2]|0;if((i|0)>0){r=(e|0)==10;o=b+16|0;p=(f|0)==0;m=g;b=i;g=0;n=0;while(1){if((n|0)==(e|0)|r){j=c[(c[o>>2]|0)+(n<<4)+4>>2]|0;if(j){i=c[j+4>>2]|0;c[i+4>>2]=c[j>>2];if(!(a[i+20>>0]|0)){j=c[i>>2]|0;k=c[j+208>>2]|0;if(!k)k=0;else{if(p)i=0;else i=c[j+176>>2]|0;k=Pn(k,f,i,c[j+180>>2]|0,d[j+9>>0]|0,c[j+152>>2]|0,c[j+200>>2]|0,m,h)|0;b=c[q>>2]|0}}else k=6}else k=0;h=(k|0)==5;l=0;j=0;i=b;g=h?1:g;h=h?0:k}else{l=h;j=m;i=b;h=0}n=n+1|0;b=(h|0)==0;if(!((n|0)<(i|0)&b))break;else{m=j;h=l;b=i}}}else{b=1;g=0;h=0}return (b&(g|0)!=0?5:h)|0}function Th(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=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;w=i;i=i+32|0;if((i|0)>=(j|0))baba();m=s;r=g&255;if(!(g<<24>>24==4|g<<24>>24==8))if((r+-1|0)>>>0>2){c[m>>2]=129758;c[m+4>>2]=10788;Zc(21,13648,m);m=21}else{q=r;n=4}else{q=2;n=4}do if((n|0)==4){p=q&255;n=Un(e,p,f,0)|0;if((n|0)!=0?(c[n+12>>2]|0)!=0:0){if(c[e+148>>2]|0){qg(e,5,13680,m);m=5;break}g=c[e+4>>2]|0;if(g)do{o=g+88|0;b[o>>1]=b[o>>1]|8;g=c[g+52>>2]|0}while((g|0)!=0);o=n+4|0;if((d[o>>0]&247|0)==(q|0)){g=Zm(e+428|0,f,m)|0;if(!g)n=0;else n=c[g+8>>2]|0;m=0;do{if((a[n+(m*20|0)+4>>0]|0)==(a[o>>0]|0)){g=c[n+(m*20|0)+16>>2]|0;if(g)_b[g&31](c[n+(m*20|0)+8>>2]|0);c[n+(m*20|0)+12>>2]=0}m=m+1|0}while((m|0)!=3)}}g=Un(e,p,f,1)|0;if(g){c[g+12>>2]=k;c[g+8>>2]=h;c[g+16>>2]=l;a[g+4>>0]=q|r&8;c[e+52>>2]=0;m=c[e+236>>2]|0;if(m){g=m+8|0;if(!(b[g>>1]&9312)){b[g>>1]=1;m=0;break}else{rg(m);m=0;break}}else m=0}else m=7}while(0);i=s;return m|0}function Vh(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;l=d+24|0;m=c[l>>2]&2;n=d+145|0;a[n>>0]=1;k=d+16|0;i=c[k>>2]|0;a[d+62>>0]=a[(c[i+12>>2]|0)+77>>0]|0;h=d+20|0;g=0;while(1){if((g|0)>=(c[h>>2]|0)){g=i;i=6;break}if(!((g|0)==1?1:(b[(c[i+(g<<4)+12>>2]|0)+78>>1]&1)!=0)?(f=Vn(d,g,e)|0,(f|0)!=0):0){i=9;break}i=c[k>>2]|0;g=g+1|0}if((i|0)==6)if((b[(c[g+28>>2]|0)+78>>1]&1)==0?(j=Vn(d,1,e)|0,(j|0)!=0):0){ml(c[(c[k>>2]|0)+28>>2]|0);f=j}else f=0;else if((i|0)==9)rm(d,g);a[n>>0]=0;if(!(f|m))c[l>>2]=c[l>>2]&-3;return f|0}function Wh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;k=a+20|0;a:do if((c[k>>2]|0)>0){l=(d|0)==0;g=a+16|0;h=0;a=0;do{f=(h|0)<2^h;e=c[g>>2]|0;if(!(!l?($c(d,c[e+(f<<4)>>2]|0)|0)!=0:0)){a=Zm((c[e+(f<<4)+12>>2]|0)+8|0,b,m)|0;if(a){a=c[a+8>>2]|0;if(a)break a}else a=0}h=h+1|0}while((h|0)<(c[k>>2]|0))}else a=0;while(0);i=n;return a|0}function Xh(a){a=a|0;if(($c(a,12936)|0)!=0?($c(a,12944)|0)!=0:0)a=($c(a,12952)|0)==0&1;else a=1;return a|0}function Yh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;g=c[a+20>>2]|0;a:do if((g|0)>0){d=c[a+16>>2]|0;e=(b|0)==0;f=0;while(1){a=c[d+(f<<4)+4>>2]|0;if(a){if(e)break a;if(!($c(b,c[d+(f<<4)>>2]|0)|0))break a}f=f+1|0;if((f|0)>=(g|0)){a=0;break}}}else a=0;while(0);return a|0}function Zh(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:do if(!b)e=0;else{e=e+-1|0;b:do if((c[b>>2]|0)>>>0>4e3){g=b;f=e;while(1){e=g+8|0;h=c[e>>2]|0;if(!h){j=b;break}e=(f>>>0)%(h>>>0)|0;f=g+12+(((f>>>0)/(h>>>0)|0)<<2)|0;b=c[f>>2]|0;if(!b){b=mg(512,0)|0;if(!b){e=b;l=21;break}bw(b|0,0,512)|0;c[b>>2]=h;c[f>>2]=b}if((c[b>>2]|0)>>>0>4e3){g=b;f=e}else break b}if((l|0)==21){c[f>>2]=e;e=7;break a}k=f+1|0;f=(f>>>0)%125|0;i=g+12|0;b=c[g+(f<<2)+12>>2]|0;if(!b){b=c[g+4>>2]|0;if(b>>>0<124){e=g;l=20}}else{do{if((b|0)==(k|0)){e=0;break a}f=f+1|0;f=f>>>0>124?0:f;b=c[g+(f<<2)+12>>2]|0}while((b|0)!=0);b=c[g+4>>2]|0;if(b>>>0<=61){e=g;l=20}}if((l|0)==20){c[g+4>>2]=b+1;c[e+(f<<2)+12>>2]=k;e=0;break a}h=mg(500,0)|0;if(!h){e=7;break a}gw(h|0,i|0,500)|0;bw(i|0,0,500)|0;c[e>>2]=(((c[j>>2]|0)+124|0)>>>0)/125|0;b=0;e=Zh(g,k)|0;do{f=c[h+(b<<2)>>2]|0;if(f)e=Zh(g,f)|0|e;b=b+1|0}while((b|0)!=125);Sc(h);break a}while(0);b=b+12+(e>>>3)|0;a[b>>0]=d[b>>0]|0|1<<(e&7);e=0}while(0);return e|0}function _h(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;a:do if(b){g=e+-1|0;while(1){e=c[b+8>>2]|0;if(!e)break;b=c[b+12+(((g>>>0)/(e>>>0)|0)<<2)>>2]|0;if(!b)break a;else g=(g>>>0)%(e>>>0)|0}if((c[b>>2]|0)>>>0<4001){b=b+12+(g>>>3)|0;a[b>>0]=(d[b>>0]|0)&(1<<(g&7)^255);break}k=b+12|0;gw(f|0,k|0,500)|0;bw(k|0,0,500)|0;k=b+4|0;c[k>>2]=0;h=g+1|0;j=0;do{i=f+(j<<2)|0;e=c[i>>2]|0;if(!((e|0)==0|(e|0)==(h|0))){g=((e+-1|0)>>>0)%125|0;c[k>>2]=(c[k>>2]|0)+1;e=b+(g<<2)+12|0;if(c[e>>2]|0)do{e=g+1|0;g=e>>>0>124?0:e;e=b+(g<<2)+12|0}while((c[e>>2]|0)!=0);c[e>>2]=c[i>>2]}j=j+1|0}while((j|0)!=125)}while(0);return}function $h(a,b){a=a|0;b=b|0;var e=0,f=0;a:do if((a|0)!=0?(e=b+-1|0,e>>>0<(c[a>>2]|0)>>>0):0){while(1){b=c[a+8>>2]|0;if(!b)break;a=c[a+12+(((e>>>0)/(b>>>0)|0)<<2)>>2]|0;if(!a){e=0;break a}else e=(e>>>0)%(b>>>0)|0}if((c[a>>2]|0)>>>0<4001){e=((d[a+12+(e>>>3)>>0]|0)&1<<(e&7)|0)!=0&1;break}f=e+1|0;e=(e>>>0)%125|0;b=c[a+(e<<2)+12>>2]|0;if(b)while(1){if((b|0)==(f|0)){e=1;break a}e=((e+1|0)>>>0)%125|0;b=c[a+(e<<2)+12>>2]|0;if(!b){e=0;break}}else e=0}else e=0;while(0);return e|0}function ai(a){a=a|0;var b=0,d=0;if(a){if(c[a+8>>2]|0){b=a+12|0;d=0;do{ai(c[b+(d<<2)>>2]|0);d=d+1|0}while((d|0)!=125)}Sc(a)}return}function bi(b,c){b=b|0;c=c|0;var f=0;a:do if((c|0)>=2?(f=a[11824+(((d[9328+(d[b>>0]|0)>>0]|0)<<2^c^(d[9328+(d[b+(c+-1)>>0]|0)>>0]|0)*3|0)%127|0)>>0]|0,f<<24>>24!=0):0){f=f&255;while(1){f=f+-1|0;if((d[12080+f>>0]|0|0)==(c|0)?(Bc(11264+(e[12208+(f<<1)>>1]|0)|0,b,c)|0)==0:0)break;f=a[11952+f>>0]|0;if(!(f<<24>>24)){f=27;break a}else f=f&255}f=d[12456+f>>0]|0}else f=27;while(0);return f|0}function ci(a){a=a|0;var b=0,d=0,e=0;c[2174]=a;if((c[2184]|0)>>>0<a>>>0)c[2184]=a;d=c[2264]|0;if((d|0)==0|(c[2235]|0)<(a|0)){b=mg(a,((a|0)<0)<<31>>31)|0;if((c[2186]|0)!=0&(b|0)!=0?(e=hc[c[8744+48>>2]&127](b)|0,e=(c[2170]|0)+e|0,c[2170]=e,e>>>0>(c[2180]|0)>>>0):0)c[2180]=e}else{b=c[2263]|0;c[2263]=c[b>>2];c[2264]=d+-1;a=(c[2169]|0)+1|0;c[2169]=a;if(a>>>0>(c[2179]|0)>>>0)c[2179]=a}return b|0}function di(a){a=a|0;var b=0;do if(a){if((c[2234]|0)>>>0<=a>>>0&(c[2262]|0)>>>0>a>>>0){c[a>>2]=c[2263];c[2263]=a;c[2264]=(c[2264]|0)+1;c[2169]=(c[2169]|0)+-1;break}if(!(c[2186]|0)){_b[c[8744+40>>2]&31](a);break}else{b=hc[c[8744+48>>2]&127](a)|0;c[2170]=(c[2170]|0)-b;c[2166]=(c[2166]|0)-b;c[2175]=(c[2175]|0)+-1;_b[c[8744+40>>2]&31](a);break}}while(0);return}function ei(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();h=l;g=a[b>>0]|0;a:do if(((g&255)+-48|0)>>>0>=10){k=g;g=b;while(1){h=g+1|0;if(!(k<<24>>24))break;k=a[h>>0]|0;g=h}k=g-b&1073741823;g=7-e|0;if((g|0)>0){h=0;while(1){if((d[11248+h>>0]|0|0)==(k|0)?(Bc(11216+(d[11240+h>>0]|0)|0,b,k)|0)==0:0){f=h;break}h=h+1|0;if((h|0)>=(g|0))break a}f=a[11256+f>>0]|0}}else{c[h>>2]=0;zn(b,h)|0;f=c[h>>2]&255}while(0);i=l;return f|0}function fi(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=a[b>>0]|0;do if(e<<24>>24==48){f=a[b+1>>0]|0;if(!(f<<24>>24==88|f<<24>>24==120))if(!b){e=0;k=15;break}else{g=e;e=b;k=12;break}e=a[b+2>>0]|0;if(!(a[10368+(e&255)>>0]&8)){g=48;e=b;k=12}else{g=2;while(1){f=g+1|0;if(e<<24>>24!=48)break;e=a[b+f>>0]|0;g=f}if(!(a[10368+(e&255)>>0]&8)){h=b+g|0;i=0;e=0;f=g}else{i=0;h=0;f=g;while(1){i=ew(i|0,h|0,4)|0;j=C;h=e<<24>>24;i=(0-(h>>>6&1)&9)+h&15|i;f=f+1|0;h=b+f|0;e=a[h>>0]|0;if(!(a[10368+(e&255)>>0]&8)){e=j;break}else h=j}}j=d;c[j>>2]=i;c[j+4>>2]=e;if(!(a[h>>0]|0))e=(f-g|0)<17;else e=0;e=e&1^1}}else{g=e;e=b;k=12}while(0);if((k|0)==12){while(1){f=e+1|0;if(!(g<<24>>24))break;g=a[f>>0]|0;e=f;k=12}e=e-b&1073741823;k=15}if((k|0)==15)e=Ql(b,d,e,1)|0;return e|0}function gi(d,f,g,h,k){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;var 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;D=i;i=i+1264|0;if((i|0)>=(j|0))ba();B=D;A=D+152|0;u=D+742|0;v=D+76|0;r=D+228|0;o=h&-256;s=h&16;z=h&8;t=h&4;n=h&1;w=h&2;if((t|0)!=0?(o|0)==524288|(o|0)==2048|(o|0)==16384:0)y=1;else y=0;x=c[12114]|0;if((x|0)!=(nb()|0)?(c[12114]=nb()|0,(Hc()|0)==0):0)a[9064]=0;p=g+0|0;q=p+44|0;do{c[p>>2]=0;p=p+4|0}while((p|0)<(q|0));x=(o|0)==256;do if(x){a:do if((nc[c[47552+52>>2]&127](f,B)|0)==0?(l=c[12178]|0,(l|0)!=0):0){o=c[B>>2]|0;p=c[B+72>>2]|0;while(1){if((c[l>>2]|0)==(o|0)?(c[l+4>>2]|0)==(p|0):0)break;l=c[l+32>>2]|0;if(!l){C=18;break a}}o=l+28|0;l=c[o>>2]|0;if(l){while(1){q=o;o=l+8|0;p=l;l=c[o>>2]|0;if((c[p+4>>2]|0)==(h|0)){o=q;break}if(!l){C=18;break a}}c[o>>2]=l;r=c[p>>2]|0;l=p}else C=18}else C=18;while(0);if((C|0)==18){l=Pc(12)|0;if(!l){l=7;break}else r=-1}c[g+28>>2]=l;o=t<<4|w;l=(s|0)!=0;if((r|0)<0){t=l;s=l?o|131200:o;l=f;C=23}else{q=r;l=f;C=36}}else{if(!f){l=Wn(514,r)|0;if(!l)l=r;else break}else l=f;C=t<<4|w;s=(s|0)!=0;t=s;s=s?C|131200:C;C=23}while(0);b:do if((C|0)==23){if(!(h&526336)){o=(z|0)==0?0:384;r=0;q=0}else{if(!l)o=0;else{o=l;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;o=o-l&1073741823}do o=o+-1|0;while((a[l+o>>0]|0)!=45);gw(u|0,l|0,o|0)|0;a[u+o>>0]=0;if(nc[c[47552+52>>2]&127](u,v)|0){l=1802;break}o=c[v+12>>2]&511;r=c[v+20>>2]|0;q=c[v+24>>2]|0}p=Xn(l,s,o)|0;do if((p|0)<0){if(!(t|((w|0)==0|(c[(Db()|0)>>2]|0)==21))?(m=Xn(l,s&131200,o)|0,(m|0)>=0):0){h=h&-8|1;n=1;break}c[B>>2]=31186;c[B+4>>2]=10788;Zc(14,14848,B);l=_n(14,47896,l,31186)|0;if(!l){l=0;break b}m=g+28|0;C=70;break b}else m=p;while(0);if(!(h&526336)){q=m;C=36}else{Yb[c[47552+244>>2]&63](m,r,q)|0;q=m;C=36}}while(0);c:do if((C|0)==36){if(k)c[k>>2]=h;r=g+28|0;m=c[r>>2]|0;if(m){c[m>>2]=q;c[m+4>>2]=h}if(z)hc[c[47552+196>>2]&127](l)|0;l=z<<2;l=(n|0)==0?l:l|2;l=x?l:l|128;l=y?l|8:l;z=l|h&64;c[g+12>>2]=q;c[g+4>>2]=d;c[g+32>>2]=f;m=g+18|0;b[m>>1]=z&255;if(bg((z&64|0)!=0?f:0,48496,1)|0)b[m>>1]=e[m>>1]|16;if(!(Wv(c[d+16>>2]|0,1e4)|0))b[m>>1]=e[m>>1]|1;d:do if(!(l&128)){l=nc[c[c[d+20>>2]>>2]&127](f,g)|0;if((l|0)!=48504){if((l|0)!=47472){C=64;break}m=(cw(f|0)|0)+6|0;l=Pc(m)|0;if(l){c[B>>2]=f;Yc(m,l,48584,B)|0;c[g+24>>2]=l;c[g+20>>2]=0;l=47472;break}c[g+24>>2]=0;c[g+20>>2]=0;if((q|0)<=-1){m=r;l=7;C=70;break c}Yn(g,q,30794);m=r;l=7;C=70;break c}do if(!(nc[c[47552+64>>2]&127](c[g+12>>2]|0,A)|0)){l=B;c[l>>2]=0;c[l+4>>2]=0;c[B>>2]=c[A>>2];c[B+4>>2]=c[A+72>>2];l=c[12178]|0;e:do if(!l)C=53;else{while(1){if(!(Vv(B,l,8)|0))break;l=c[l+32>>2]|0;if(!l){C=53;break e}}B=l+16|0;c[B>>2]=(c[B>>2]|0)+1}while(0);if((C|0)==53){m=Pc(40)|0;if(!m){l=7;m=g+20|0;break}p=m+0|0;q=p+40|0;do{c[p>>2]=0;p=p+4|0}while((p|0)<(q|0));C=c[B+4>>2]|0;l=m;c[l>>2]=c[B>>2];c[l+4>>2]=C;c[m+16>>2]=1;c[m+32>>2]=c[12178];c[m+36>>2]=0;l=c[12178]|0;if(l)c[l+36>>2]=m;c[12178]=m;l=m}c[g+8>>2]=l;l=48504;C=64;break d}else{l=c[(Db()|0)>>2]|0;m=g+20|0;c[m>>2]=l;l=(l|0)==75?22:10}while(0);Yn(g,q,30709);c[m>>2]=0;m=r;C=70;break c}else{l=48376;C=64}while(0);if((C|0)==64)c[g+20>>2]=0;c[g>>2]=l;Zn(g);l=0}while(0);if((C|0)==70)Sc(c[m>>2]|0);i=D;return l|0}function hi(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;do if((hc[c[47552+196>>2]&127](b)|0)==-1)if((c[(Db()|0)>>2]|0)==2)a=5898;else a=_n(2570,48032,b,31314)|0;else if(d&1){a=nc[c[47552+208>>2]&127](b,e)|0;if((a|0)==14){a=0;break}else if(a)break;if(!(Cb(c[e>>2]|0)|0))a=0;else a=_n(1290,48488,b,31329)|0;if(hc[c[47552+16>>2]&127](c[e>>2]|0)|0)_n(4106,47856,0,31331)|0}else a=0;while(0);i=f;return a|0}function ii(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;g=i;i=i+80|0;if((i|0)>=(j|0))ba();f=g;if((d|0)==2)a=4;else if((d|0)==1)a=6;else a=0;a=(nc[c[47552+28>>2]&127](b,a)|0)==0;c[e>>2]=a&1;if((!((d|0)!=0|a^1)?(nc[c[47552+52>>2]&127](b,f)|0)==0:0)?(c[f+36>>2]|0)==0:0)c[e>>2]=0;i=g;return 0}function ji(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;b=e+-1|0;a[f+b>>0]=0;do if((a[d>>0]|0)!=47)if(!(nc[c[47552+40>>2]&127](f,b)|0)){c[g>>2]=31416;c[g+4>>2]=10788;Zc(14,14848,g);b=_n(14,47904,d,31416)|0;break}else{b=cw(f|0)|0;c[g>>2]=d;Yc(e-b|0,f+b|0,48480,g)|0;b=0;break}else{c[g>>2]=d;Yc(e,f,10344,g)|0;b=0}while(0);i=h;return b|0}function ki(a,b){a=a|0;b=b|0;return zb(b|0,258)|0}function li(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;a=Ta()|0;if(a){c[e>>2]=a;Yc(b,d,10344,e)|0}i=f;return}function mi(a,b,c){a=a|0;b=b|0;c=c|0;return Xa(b|0,c|0)|0}function ni(a,b){a=a|0;b=b|0;Ab(b|0)|0;return}function oi(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;bw(e|0,0,d|0)|0;c[12114]=nb()|0;b=Xn(48464,0,0)|0;if((b|0)>=0){do if((Yb[c[47552+100>>2]&63](b,e,d)|0)>=0)break;while((c[(Db()|0)>>2]|0)==4);if(hc[c[47552+16>>2]&127](b)|0)_n(4106,47856,0,31521)|0}else{Lb(f|0)|0;d=c[f>>2]|0;a[e>>0]=d;a[e+1>>0]=d>>8;a[e+2>>0]=d>>16;a[e+3>>0]=d>>24;d=e+4|0;b=c[12114]|0;a[d>>0]=b;a[d+1>>0]=b>>8;a[d+2>>0]=b>>16;a[d+3>>0]=b>>24;d=8}i=g;return d|0}function pi(a,b){a=a|0;b=b|0;a=(b+999999|0)/1e6|0;Ib(a|0)|0;return a*1e6|0}function qi(a,b){a=a|0;b=b|0;var d=0,e=0;a=i;i=i+16|0;if((i|0)>=(j|0))ba();e=a;d=e;c[d>>2]=0;c[d+4>>2]=0;d=si(0,e)|0;h[b>>3]=(+((c[e>>2]|0)>>>0)+4294967296.0*+(c[e+4>>2]|0))/864.0e5;i=a;return d|0}function ri(a,b,c){a=a|0;b=b|0;c=c|0;return 0}function si(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))baba();d=e;b=a+7&-8;a=Sv(b+8|0)|0;if(!a){c[d>>2]=b;Zc(7,16568,d)}else{d=a;c[d>>2]=b;c[d+4>>2]=((b|0)<0)<<31>>31;a=a+8|0}i=e;return a|0}function Ri(a){a=a|0;Tv(a+-8|0);return}function Si(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;e=a+-8|0;d=Uv(e,b+8|0)|0;if(!d){if(!a)e=0;else e=c[e>>2]|0;c[f>>2]=e;c[f+4>>2]=b;Zc(7,16528,f)}else{e=d;c[e>>2]=b;c[e+4>>2]=((b|0)<0)<<31>>31;d=d+8|0}i=g;return d|0}function Ti(a){a=a|0;if(!a)a=0;else a=c[a+-8>>2]|0;return a|0}function Ui(a){a=a|0;return a+7&-8|0}function Vi(a){a=a|0;return 0}function Wi(a){a=a|0;return}function Xi(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;i=c[g>>2]|0;do if((-1431655766>>>(e[i+8>>1]&31)&1|0)==0?(h=Og(i,1)|0,(h|0)!=0):0){i=Pg(c[g>>2]|0,1)|0;if((f|0)!=1){o=Og(c[g+4>>2]|0,1)|0;if(!o)break;f=a[o>>0]|0;if(f<<24>>24){g=0;j=o;while(1){k=j+1|0;if((f&255)>191)while(1){f=a[k>>0]|0;if((f&-64)<<24>>24==-128){n=k;k=j+2|0;j=n}else{j=k;break}}else{f=a[k>>0]|0;j=k}k=g+1|0;if(!(f<<24>>24)){f=k;break}else g=k}if((g|0)>-1){m=ow(f|0,((f|0)<0)<<31>>31|0,5,0)|0;m=go(b,m,C)|0;if(!m)break;l=m+(f<<2)|0;if(a[o>>0]|0){f=o;g=0;while(1){c[m+(g<<2)>>2]=f;k=f+1|0;if((d[f>>0]|0)>191){j=f;while(1)if((a[k>>0]&-64)<<24>>24==-128){n=k;k=j+2|0;j=n}else break}a[l+g>>0]=k-f;j=g+1|0;if(!(a[k>>0]|0))break;else{f=k;g=j}}if((g|0)>-1){n=j;p=17}}}}}else{l=20360;m=20368;n=1;o=0;p=17}if((p|0)==17){f=c[(c[b+4>>2]|0)+4>>2]|0;a:do if((f&1|0)!=0&(i|0)>0){g=(n|0)>0;do{if(g)j=0;else{p=24;break a}while(1){k=d[l+j>>0]|0;if((i|0)>=(k|0)?(Vv(h,c[m+(j<<2)>>2]|0,k)|0)==0:0)break;j=j+1|0;if((j|0)>=(n|0)){p=24;break a}}h=h+k|0;i=i-k|0}while((i|0)>0)}else p=24;while(0);b:do if((p|0)==24)if((f&2|0)!=0&(i|0)>0){g=(n|0)>0;do{if(g)j=0;else break b;while(1){k=d[l+j>>0]|0;if((i|0)>=(k|0)?(q=i-k|0,(Vv(h+q|0,c[m+(j<<2)>>2]|0,k)|0)==0):0){i=q;break}j=j+1|0;if((j|0)>=(n|0))break b}}while((i|0)>0)}while(0);if(o)Sc(m)}Sg(b,h,i,1,-1)}while(0);return}function Yi(a,b,d){a=a|0;b=b|0;d=d|0;var f=0,g=0,h=0,i=0,j=0;j=((c[(c[a+4>>2]|0)+4>>2]|0)!=0)<<31>>31;i=c[(c[(c[a+12>>2]|0)+4>>2]|0)+(((c[a+16>>2]|0)+-1|0)*20|0)+16>>2]|0;f=c[d>>2]|0;a:do if(!(-1431655766>>>((e[f+8>>1]|0)&31)&1)){if((b|0)>1){h=1;f=0;do{g=c[d+(h<<2)>>2]|0;if(-1431655766>>>((e[g+8>>1]|0)&31)&1)break a;g=((dm(c[d+(f<<2)>>2]|0,g,i)|0)^j|0)>-1;f=g?h:f;h=h+1|0}while((h|0)<(b|0));f=c[d+(f<<2)>>2]|0}Wg(c[a>>2]|0,f)|0}while(0);return}function Zi(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0;i=c[g>>2]|0;f=c[d+8>>2]|0;if(!(b[f+8>>1]&8192))f=hh(d,40)|0;else f=c[f+16>>2]|0;do if(f){h=(b[f+8>>1]|0)!=0;if(-1431655766>>>(e[(c[g>>2]|0)+8>>1]&31)&1){if(!h)break;a[d+24>>0]=1;break}if(!h){c[f+32>>2]=c[(c[d>>2]|0)+32>>2];Wg(f,i)|0;break}h=(c[(c[d+4>>2]|0)+4>>2]|0)!=0;g=dm(f,i,c[(c[(c[d+12>>2]|0)+4>>2]|0)+(((c[d+16>>2]|0)+-1|0)*20|0)+16>>2]|0)|0;if(!(h&(g|0)<0)?!((g|0)>0&(h^1)):0){a[d+24>>0]=1;break}Wg(f,i)|0}while(0);return}function _i(a){a=a|0;var d=0,e=0,f=0;d=c[a+8>>2]|0;if(!(b[d+8>>1]&8192))d=hh(a,0)|0;else d=c[d+16>>2]|0;do if(d){e=d+8|0;if(!((b[e>>1]|0)!=0?(Wg(c[a>>2]|0,d)|0,(b[e>>1]&9312)!=0):0))f=7;if((f|0)==7?(c[d+24>>2]|0)==0:0)break;Mg(d)}while(0);return}function $i(a,b,f){a=a|0;b=b|0;f=f|0;b=d[10064+((e[(c[f>>2]|0)+8>>1]|0)&31)>>0]|0;if((b|0)==2)b=20336;else if((b|0)==4)b=20344;else if((b|0)==1)b=20320;else if((b|0)==3)b=20328;else b=20352;Sg(a,b,-1,1,0);return}function aj(f,g,h){f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0;g=c[h>>2]|0;h=d[10064+((e[g+8>>1]|0)&31)>>0]|0;do if((h|0)==2|(h|0)==1|(h|0)==4){j=Pg(g,1)|0;i=c[f>>2]|0;g=((j|0)<0)<<31>>31;h=i+8|0;if(!(b[h>>1]&9312)){c[i>>2]=j;c[i+4>>2]=g;b[h>>1]=4;break}else{Vg(i,j,g);break}}else if((h|0)==3){i=Og(g,1)|0;if(i){g=a[i>>0]|0;if(!(g<<24>>24)){j=0;i=0}else{h=g;g=0;do{g=g+1|0;k=i+1|0;if((h&255)>191){j=i;i=k;while(1){h=a[i>>0]|0;if((h&-64)<<24>>24==-128){h=i;i=j+2|0;j=h}else break}}else{h=a[k>>0]|0;i=k}}while(h<<24>>24!=0);j=g;i=((g|0)<0)<<31>>31}g=c[f>>2]|0;h=g+8|0;if(!(b[h>>1]&9312)){c[g>>2]=j;c[g+4>>2]=i;b[h>>1]=4;break}else{Vg(g,j,i);break}}}else{h=c[f>>2]|0;g=h+8|0;if(!(b[g>>1]&9312)){b[g>>1]=1;break}else{rg(h);break}}while(0);return}function bj(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;g=c[f>>2]|0;h=b[g+8>>1]|0;i=f+4|0;e=b[(c[i>>2]|0)+8>>1]|0;do if(!((-1431655766>>>(e&31)|-1431655766>>>(h&31))&1)){j=Pg(g,1)|0;l=Pg(c[i>>2]|0,1)|0;f=c[f>>2]|0;if(!((e|h)&15)){e=ld(f)|0;f=0;k=ld(c[i>>2]|0)|0}else{e=Og(f,1)|0;f=1;k=Og(c[i>>2]|0,1)|0}a:do if((l|0)>(j|0)){e=1;g=1}else{g=1;h=j;while(1){if(!(Vv(e,k,l)|0)){e=0;break a}g=g+1|0;i=(f|0)==0;do{h=h+-1|0;e=e+1|0;if(i){f=0;break}}while((a[e>>0]&-64)<<24>>24==-128);if((l|0)>(h|0)){e=1;break}}}while(0);h=c[d>>2]|0;f=e?0:g;e=e?0:((g|0)<0)<<31>>31;g=h+8|0;if(!(b[g>>1]&9312)){c[h>>2]=f;c[h+4>>2]=e;b[g>>1]=4;break}else{Vg(h,f,e);break}}while(0);return}function cj(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;h=c[g+4>>2]|0;do if(!(-1431655766>>>((e[h+8>>1]|0)&31)&1)){n=(f|0)==3;if(n?(-1431655766>>>((e[(c[g+8>>2]|0)+8>>1]|0)&31)&1|0)!=0:0)break;p=b[(c[g>>2]|0)+8>>1]|0;k=Rg(h)|0;l=((k|0)<0)<<31>>31;p=(p&15)==0;i=c[g>>2]|0;if(p){i=Pg(i,1)|0;j=ld(c[g>>2]|0)|0;if(!j)break;else o=i}else{j=Og(i,1)|0;if(!j)break;if((k|0)<0?(m=a[j>>0]|0,m<<24>>24!=0):0){i=0;h=j;do{f=h+1|0;if((m&255)>191)while(1){m=a[f>>0]|0;if((m&-64)<<24>>24==-128){o=f;f=h+2|0;h=o}else{h=f;break}}else{m=a[f>>0]|0;h=f}i=i+1|0}while(m<<24>>24!=0);o=i}else o=0}if(n){n=Rg(c[g+8>>2]|0)|0;f=((n|0)<0)<<31>>31;g=(n|0)<0;h=$v(0,0,n|0,f|0)|0;h=g?h:n;f=g?C:f;n=n>>>31}else{f=c[(c[(c[d>>2]|0)+32>>2]|0)+88>>2]|0;h=f;f=((f|0)<0)<<31>>31;n=0}do if((k|0)<0){k=fw(o|0,((o|0)<0)<<31>>31|0,k|0,l|0)|0;l=C;if((l|0)<0){h=fw(h|0,f|0,k|0,l|0)|0;f=C;g=(f|0)<0;k=0;l=0;h=g?0:h;f=g?0:f}}else if((k|0)>0){k=fw(k|0,l|0,-1,-1)|0;l=C;break}else{g=((f|0)>0|(f|0)==0&h>>>0>0)<<31>>31;h=fw(g|0,((g|0)<0)<<31>>31|0,h|0,f|0)|0;f=C;break}while(0);if(!n){n=k;m=l}else{n=$v(k|0,l|0,h|0,f|0)|0;m=C;g=(m|0)<0;n=g?0:n;m=g?0:m;h=g?k:h;f=g?l:f}if(p){g=fw(h|0,f|0,n|0,m|0)|0;l=C;i=((o|0)<0)<<31>>31;if((l|0)>(i|0)|(l|0)==(i|0)&g>>>0>o>>>0){h=$v(o|0,i|0,n|0,m|0)|0;f=C;g=(f|0)<0;h=g?0:h;f=g?0:f}xd(d,j+n|0,h,f,-1);break}i=a[j>>0]|0;if(((n|0)!=0|(m|0)!=0)&i<<24>>24!=0)do{l=j+1|0;if((i&255)>191){k=j;j=l;while(1){i=a[j>>0]|0;if((i&-64)<<24>>24==-128){g=j;j=k+2|0;k=g}else break}}else{i=a[l>>0]|0;j=l}n=fw(n|0,m|0,-1,-1)|0;m=C}while(((n|0)!=0|(m|0)!=0)&i<<24>>24!=0);if(i<<24>>24!=0&((h|0)!=0|(f|0)!=0)){m=f;f=j;do{k=f+1|0;if((i&255)>191)while(1){i=a[k>>0]|0;if((i&-64)<<24>>24==-128){g=k;k=f+2|0;f=g}else{f=k;break}}else{i=a[k>>0]|0;f=k}h=fw(h|0,m|0,-1,-1)|0;m=C}while(i<<24>>24!=0&((h|0)!=0|(m|0)!=0))}else f=j;g=f-j|0;Fd(d,j,g,((g|0)<0)<<31>>31,-1,1)}while(0);return}function dj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+48|0;if((i|0)>=(j|0))ba();h=l;k=l+32|0;g=l+4|0;if((d|0)>0?(f=Og(c[e>>2]|0,1)|0,(f|0)!=0):0){c[k>>2]=d+-1;c[k+4>>2]=0;c[k+8>>2]=e+4;c[g+0>>2]=0;c[g+4>>2]=0;c[g+8>>2]=0;c[g+12>>2]=0;c[g+16>>2]=0;c[g+20>>2]=1e9;a[g+24>>0]=1;a[g+25>>0]=0;c[g>>2]=c[(c[b>>2]|0)+32>>2];c[h>>2]=k;An(g,2,f,h);f=c[g+12>>2]|0;Sg(b,pg(g)|0,f,1,75)}i=l;return}function ej(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();e=h;f=Og(c[f>>2]|0,1)|0;c[e>>2]=f;do if((f|0)!=0?(a[f>>0]|0)!=0:0){g=In(e)|0;e=c[d>>2]|0;d=((g|0)<0)<<31>>31;f=e+8|0;if(!(b[f>>1]&9312)){c[e>>2]=g;c[e+4>>2]=d;b[f>>1]=4;break}else{Vg(e,g,d);break}}while(0);i=h;return}function fj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;i=Pc(d<<2|1)|0;if(!i)Nd(b);else{if((d|0)>0){h=0;f=i;do{g=Rg(c[e+(h<<2)>>2]|0)|0;j=C;g=j>>>0>0|(j|0)==0&g>>>0>1114111?65533:g&2097151;do if(g>>>0>=128){if(g>>>0<2048){a[f>>0]=g>>>6&31|192;a[f+1>>0]=g&63|128;f=f+2|0;break}if(g>>>0<65536){a[f>>0]=g>>>12&15|224;a[f+1>>0]=g>>>6&63|128;a[f+2>>0]=g&63|128;f=f+3|0;break}else{a[f>>0]=g>>>18|240;a[f+1>>0]=g>>>12&63|128;a[f+2>>0]=g>>>6&63|128;a[f+3>>0]=g&63|128;f=f+4|0;break}}else{a[f>>0]=g;f=f+1|0}while(0);h=h+1|0}while((h|0)!=(d|0))}else f=i;f=f-i|0;Fd(b,i,f,((f|0)<0)<<31>>31,1,1)}return}function gj(f,g,h){f=f|0;g=g|0;h=h|0;var i=0.0,j=0,k=0;g=c[h>>2]|0;h=d[10064+((e[g+8>>1]|0)&31)>>0]|0;a:do if((h|0)==5){h=c[f>>2]|0;g=h+8|0;if(!(b[g>>1]&9312)){b[g>>1]=1;break}else{rg(h);break}}else if((h|0)==1){g=Rg(g)|0;j=C;do if((j|0)<0)if((g|0)==0&(j|0)==-2147483648){c[f+20>>2]=1;a[f+25>>0]=1;Tg(c[f>>2]|0,20248,-1,1,-1)|0;break a}else{g=$v(0,0,g|0,j|0)|0;k=C;break}else k=j;while(0);h=c[f>>2]|0;j=h+8|0;if(!(b[j>>1]&9312)){c[h>>2]=g;c[h+4>>2]=k;b[j>>1]=4;break}else{Vg(h,g,k);break}}else{i=+Qg(g);if(i<0.0)i=-i;Ug(c[f>>2]|0,i)}while(0);return}function hj(b,d,f){b=b|0;d=d|0;f=f|0;var g=0.0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+32|0;if((i|0)>=(j|0))ba();o=q+8|0;p=q;if((d|0)==2){d=c[f+4>>2]|0;if(!(-1431655766>>>(e[d+8>>1]&31)&1)){n=Rg(d)|0;n=(n|0)>30?30:n;n=(n|0)<0?0:n;m=4}}else{n=0;m=4}a:do if((m|0)==4?(l=c[f>>2]|0,(-1431655766>>>(e[l+8>>1]&31)&1|0)==0):0){g=+Qg(l);h[p>>3]=g;d=(n|0)==0;do if(d&g>=0.0&g<9223372036854775808.0){g=g+.5;g=+(~~g>>>0>>>0)+4294967296.0*+((+N(g)>=1.0?(g>0.0?~~+$(+M(g/4294967296.0),4294967295.0)>>>0:~~+Z((g-+(~~g>>>0))/4294967296.0)>>>0):0)|0);h[p>>3]=g}else{if(d&g<0.0&g>-9223372036854775808.0){g=.5-g;g=-(+(~~g>>>0>>>0)+4294967296.0*+((+N(g)>=1.0?(g>0.0?~~+$(+M(g/4294967296.0),4294967295.0)>>>0:~~+Z((g-+(~~g>>>0))/4294967296.0)>>>0):0)|0));h[p>>3]=g;break}c[o>>2]=n;d=o+4|0;h[k>>3]=g;c[d>>2]=c[k>>2];c[d+4>>2]=c[k+4>>2];d=Wc(20312,o)|0;if(!d){Nd(b);break a}else l=d;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;Pl(d,p,l-d&1073741823,1)|0;Sc(d);g=+h[p>>3]}while(0);Ug(c[b>>2]|0,g)}while(0);i=q;return}function ij(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=Og(c[f>>2]|0,1)|0;e=Pg(c[f>>2]|0,1)|0;if((g|0)!=0?(h=fw(e|0,((e|0)<0)<<31>>31|0,1,0)|0,h=go(b,h,C)|0,(h|0)!=0):0){if((e|0)>0){f=0;do{i=d[g+f>>0]|0;a[h+f>>0]=((d[10368+i>>0]|0|223)^32)&i;f=f+1|0}while((f|0)!=(e|0))}Sg(b,h,e,1,1)}return}function jj(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0;g=Og(c[f>>2]|0,1)|0;e=Pg(c[f>>2]|0,1)|0;if((g|0)!=0?(h=fw(e|0,((e|0)<0)<<31>>31|0,1,0)|0,h=go(b,h,C)|0,(h|0)!=0):0){if((e|0)>0){f=0;do{a[h+f>>0]=a[9328+(d[g+f>>0]|0)>>0]|0;f=f+1|0}while((f|0)!=(e|0))}Sg(b,h,e,1,1)}return}function kj(a,b,c){a=a|0;b=b|0;c=c|0;Sg(a,8632,-1,1,0);return}function lj(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;e=ld(c[f>>2]|0)|0;i=Pg(c[f>>2]|0,1)|0;j=ew(i|0,((i|0)<0)<<31>>31|0,1)|0;j=go(b,j|1,C)|0;if(j){if((i|0)>0){g=i<<1;h=0;f=j;while(1){k=d[e>>0]|0;a[f>>0]=a[20288+(k>>>4)>>0]|0;a[f+1>>0]=a[20288+(k&15)>>0]|0;h=h+1|0;if((h|0)==(i|0))break;else{e=e+1|0;f=f+2|0}}f=j+g|0}else f=j;a[f>>0]=0;Sg(b,j,i<<1,1,1)}return}function mj(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();d=h;_c(8,d);f=d;e=c[f>>2]|0;f=c[f+4>>2]|0;if((f|0)<0){g=$v(0,0,e|0,f&2147483647|0)|0;f=C;c[d>>2]=g;c[d+4>>2]=f}else g=e;e=c[a>>2]|0;d=e+8|0;if(!(b[d>>1]&9312)){c[e>>2]=g;c[e+4>>2]=f;b[d>>1]=4}else Vg(e,g,f);i=h;return}function nj(a,b,d){a=a|0;b=b|0;d=d|0;d=Rg(c[d>>2]|0)|0;d=(d|0)<1?1:d;b=go(a,d,((d|0)<0)<<31>>31)|0;if(b){_c(d,b);Sg(a,b,d,0,1)}return}function oj(a,b,d){a=a|0;b=b|0;d=d|0;if(dm(c[d>>2]|0,c[d+4>>2]|0,c[(c[(c[a+12>>2]|0)+4>>2]|0)+(((c[a+16>>2]|0)+-1|0)*20|0)+16>>2]|0)|0)Wg(c[a>>2]|0,c[d>>2]|0)|0;return}function pj(a,b,c){a=a|0;b=b|0;c=c|0;Sg(a,10768,-1,1,0);return}function qj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;b=i;i=i+16|0;if((i|0)>=(j|0))ba();a=b;e=Rg(c[d>>2]|0)|0;c[a>>2]=Og(c[d+4>>2]|0,1)|0;Zc(e,10344,a);i=b;return}function rj(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;d=Og(c[e>>2]|0,1)|0;do if(d){f=Ac(d)|0;e=c[a>>2]|0;d=((f|0)<0)<<31>>31;a=e+8|0;if(!(b[a>>1]&9312)){c[e>>2]=f;c[e+4>>2]=d;b[a>>1]=4;break}else{Vg(e,f,d);break}}while(0);return}function sj(a,b,d){a=a|0;b=b|0;d=d|0;b=Rg(c[d>>2]|0)|0;if(b>>>0<4)b=c[8648+(b<<2)>>2]|0;else b=0;Sg(a,b,-1,1,0);return}function tj(b,f,g){b=b|0;f=f|0;g=g|0;var l=0,m=0.0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+80|0;if((i|0)>=(j|0))baba();h=k;f=Og(c[e>>2]|0,1)|0;g=c[(c[b>>2]|0)+32>>2]|0;c[h>>2]=0;if((d|0)==2)d=Og(c[e+4>>2]|0,1)|0;else d=0;if((f|0)!=0?(Pe(g,f,d,h)|0)!=0:0){d=c[h>>2]|0;c[b+20>>2]=1;a[b+25>>0]=1;Tg(c[b>>2]|0,d,-1,1,-1)|0;Sc(c[h>>2]|0)}i=k;return}function Aj(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,i=0,j=0,k=0,l=0.0,m=0,n=0,o=0;e=c[d+8>>2]|0;if(!(b[e+8>>1]&8192))g=hh(d,32)|0;else g=c[e+16>>2]|0;d=De(c[f>>2]|0)|0;do if((g|0)!=0&(d|0)!=5){e=g+16|0;i=e;i=fw(c[i>>2]|0,c[i+4>>2]|0,1,0)|0;c[e>>2]=i;c[e+4>>2]=C;e=c[f>>2]|0;if((d|0)!=1){l=+Qg(e);h[g>>3]=l+ +h[g>>3];a[g+25>>0]=1;break}i=Rg(e)|0;j=C;h[g>>3]=+h[g>>3]+(+(i>>>0)+4294967296.0*+(j|0));k=g+24|0;if(!((a[k>>0]|a[g+25>>0])<<24>>24)){g=g+8|0;d=g;f=c[d>>2]|0;d=c[d+4>>2]|0;if((j|0)>-1|(j|0)==-1&i>>>0>4294967295){e=$v(-1,2147483647,f|0,d|0)|0;m=C;if(((d|0)>0|(d|0)==0&f>>>0>0)&((m|0)<(j|0)|(m|0)==(j|0)&e>>>0<i>>>0))e=12;else e=11}else if((d|0)<0?(m=$v(1,-2147483648,f|0,d|0)|0,o=C,e=fw(i|0,j|0,1,0)|0,n=C,(o|0)>(n|0)|(o|0)==(n|0)&m>>>0>e>>>0):0)e=12;else e=11;if((e|0)==11){d=fw(f|0,d|0,i|0,j|0)|0;e=g;c[e>>2]=d;c[e+4>>2]=C;break}else if((e|0)==12){a[k>>0]=1;break}}}while(0);return}function Bj(d){d=d|0;var e=0,f=0,g=0;e=c[d+8>>2]|0;if(!(b[e+8>>1]&8192))e=hh(d,0)|0;else e=c[e+16>>2]|0;do if((e|0)!=0?(f=e+16|0,g=c[f+4>>2]|0,(g|0)>0|(g|0)==0&(c[f>>2]|0)>>>0>0):0){if(a[e+24>>0]|0){c[d+20>>2]=1;a[d+25>>0]=1;Tg(c[d>>2]|0,20248,-1,1,-1)|0;break}if(a[e+25>>0]|0){Ug(c[d>>2]|0,+h[e>>3]);break}g=e+8|0;f=c[g>>2]|0;g=c[g+4>>2]|0;e=c[d>>2]|0;d=e+8|0;if(!(b[d>>1]&9312)){c[e>>2]=f;c[e+4>>2]=g;b[d>>1]=4;break}else{Vg(e,f,g);break}}while(0);return}function Cj(a){a=a|0;var d=0,e=0.0;d=c[a+8>>2]|0;if(!(b[d+8>>1]&8192))d=hh(a,0)|0;else d=c[d+16>>2]|0;if(!d)e=0.0;else e=+h[d>>3];Ug(c[a>>2]|0,e);return}function Dj(a){a=a|0;var d=0,e=0,f=0;d=c[a+8>>2]|0;if(!(b[d+8>>1]&8192))d=hh(a,0)|0;else d=c[d+16>>2]|0;if((d|0)!=0?(f=d+16|0,e=c[f>>2]|0,f=c[f+4>>2]|0,(f|0)>0|(f|0)==0&e>>>0>0):0)Ug(c[a>>2]|0,+h[d>>3]/(+(e>>>0)+4294967296.0*+(f|0)));return}function Ej(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0;g=c[a+8>>2]|0;if(!(b[g+8>>1]&8192))g=hh(a,8)|0;else g=c[g+16>>2]|0;if(!d){if(g)h=7}else if((g|0)!=0?(1431655765>>>((e[(c[f>>2]|0)+8>>1]|0)&31)&1|0)!=0:0)h=7;if((h|0)==7){a=g;a=fw(c[a>>2]|0,c[a+4>>2]|0,1,0)|0;c[g>>2]=a;c[g+4>>2]=C}return}function Fj(a){a=a|0;var d=0,e=0,f=0;d=c[a+8>>2]|0;if(!(b[d+8>>1]&8192))d=hh(a,0)|0;else d=c[d+16>>2]|0;if(!d){e=0;f=0}else{f=d;e=c[f>>2]|0;f=c[f+4>>2]|0}d=c[a>>2]|0;a=d+8|0;if(!(b[a>>1]&9312)){c[d>>2]=e;c[d+4>>2]=f;b[a>>1]=4}else Vg(d,e,f);return}function Gj(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0;if(!(-1431655766>>>(e[(c[g>>2]|0)+8>>1]&31)&1)){h=c[d+8>>2]|0;if(!(b[h+8>>1]&8192))i=hh(d,28)|0;else i=c[h+16>>2]|0;if(i){d=c[(c[d>>2]|0)+32>>2]|0;j=i+24|0;h=(a[j>>0]|0)==0;a[j>>0]=2;c[i+20>>2]=c[d+88>>2];do if(!h){if((f|0)==2){f=g+4|0;h=Og(c[f>>2]|0,1)|0;f=Pg(c[f>>2]|0,1)|0;if(!f)break}else{f=1;h=20240}Ok(i,h,f)}while(0);h=Og(c[g>>2]|0,1)|0;f=Pg(c[g>>2]|0,1)|0;if(h)Ok(i,h,f)}}return}function Hj(d){d=d|0;var e=0,f=0;e=c[d+8>>2]|0;if(!(b[e+8>>1]&8192))e=hh(d,0)|0;else e=c[e+16>>2]|0;do if(e){f=a[e+25>>0]|0;if(f<<24>>24==2){c[d+20>>2]=18;a[d+25>>0]=1;Tg(c[d>>2]|0,10096,-1,1,0)|0;break}else if(f<<24>>24==1){Nd(d);break}else{Sg(d,pg(e)|0,-1,1,1);break}}while(0);return}function Ij(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();h=l;m=c[(c[d>>2]|0)+32>>2]|0;g=Og(c[f>>2]|0,1)|0;k=Og(c[f+4>>2]|0,1)|0;n=Pg(c[f>>2]|0,1)|0;a:do if((n|0)<=(c[m+120>>2]|0)){do if((e|0)==3){f=Og(c[f+8>>2]|0,1)|0;c[h>>2]=f;if(!f)break a;if((Jn(f,-1)|0)==1){f=In(h)|0;break}else{c[d+20>>2]=1;a[d+25>>0]=1;Tg(c[d>>2]|0,20192,-1,1,-1)|0;break a}}else f=0;while(0);if((k|0)!=0&(g|0)!=0){e=Ch(g,k,c[(c[d+4>>2]|0)+4>>2]|0,f)|0;g=c[d>>2]|0;h=((e|0)<0)<<31>>31;f=g+8|0;if(!(b[f>>1]&9312)){c[g>>2]=e;c[g+4>>2]=h;b[f>>1]=4;break}else{Vg(g,e,h);break}}}else{c[d+20>>2]=1;a[d+25>>0]=1;Tg(c[d>>2]|0,20152,-1,1,-1)|0}while(0);i=l;return}function Jj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+32|0;if((i|0)>=(j|0))ba();o=p;k=p+16|0;n=Og(c[e>>2]|0,1)|0;l=Og(c[e+4>>2]|0,1)|0;m=c[(c[b>>2]|0)+32>>2]|0;a:do if((n|0)!=0?(a[n>>0]|0)!=0:0){d=0;e=n;b:while(1){g=d;f=e;while(1){f=f+g|0;h=yn(f,k)|0;g=c[k>>2]|0;if((g|0)==22|(g|0)==125)break b;else if((g|0)==151)g=h;else{e=f;d=h;break}}if(!(a[e>>0]|0))break a}c[o>>2]=e-n;c[o+4>>2]=n;c[o+8>>2]=l;c[o+12>>2]=e+d;Sg(b,qh(m,19464,o)|0,-1,1,75)}while(0);i=p;return}function Kj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+32|0;if((i|0)>=(j|0))ba();q=r;m=r+16|0;p=Og(c[e>>2]|0,1)|0;n=Og(c[e+4>>2]|0,1)|0;o=c[(c[b>>2]|0)+32>>2]|0;a:do if((p|0)!=0?(a[p>>0]|0)!=0:0){l=3;d=0;e=p;while(1){g=d;f=e;do{f=f+g|0;g=yn(f,m)|0;h=c[m>>2]|0}while((h|0)==151);k=g;g=(h|0)==122|(h|0)==107?0:l+1|0;if((g|0)==2)if((h|0)==5|(h|0)==46|(h|0)==137)break;else e=2;else e=g;if(!(a[f>>0]|0))break a;else{l=e;d=k;e=f}}c[q>>2]=e-p;c[q+4>>2]=p;c[q+8>>2]=n;c[q+12>>2]=e+d;Sg(b,qh(o,19464,q)|0,-1,1,75)}while(0);i=r;return}function Lj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;r=i;i=i+32|0;if((i|0)>=(j|0))ba();q=r;o=r+16|0;p=c[(c[b>>2]|0)+32>>2]|0;f=Og(c[e>>2]|0,1)|0;n=Og(c[e+4>>2]|0,1)|0;m=Og(c[e+8>>2]|0,1)|0;if(!((f|0)==0|(n|0)==0)){a:do if(!(a[f>>0]|0))d=0;else{g=f;d=0;do{e=yn(g,o)|0;if((c[o>>2]|0)==105){k=g;while(1){g=k+e|0;h=yn(g,o)|0;if((c[o>>2]|0)==151){e=h;k=g}else break}if(!g)break a;l=fw(h|0,((h|0)<0)<<31>>31|0,1,0)|0;l=ih(p,l,C)|0;if(!l)break a;gw(l|0,g|0,h|0)|0;a[l+h>>0]=0;ho(l);if(!($c(n,l)|0)){c[q>>2]=(d|0)!=0?d:10360;c[q+4>>2]=g-f;c[q+8>>2]=f;c[q+12>>2]=m;s=qh(p,19440,q)|0;ig(p,d);f=k+(h+e)|0;d=s}ig(p,l);e=h}g=g+e|0}while((a[g>>0]|0)!=0)}while(0);c[q>>2]=(d|0)!=0?d:10360;c[q+4>>2]=f;Sg(b,qh(p,19456,q)|0,-1,1,75);ig(p,d)}i=r;return}function Mj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+48|0;if((i|0)>=(j|0))ba();e=f;if(!(io(a,b,d,e)|0)){jo(e);b=e;Ug(c[a>>2]|0,(+((c[b>>2]|0)>>>0)+4294967296.0*+(c[b+4>>2]|0))/864.0e5)}i=f;return}function Nj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+160|0;if((i|0)>=(j|0))ba();e=h+48|0;f=h;g=h+60|0;if(!(io(a,b,d,f)|0)){ko(f);d=c[f+12>>2]|0;b=c[f+16>>2]|0;c[e>>2]=c[f+8>>2];c[e+4>>2]=d;c[e+8>>2]=b;Yc(100,g,20136,e)|0;Sg(a,g,-1,1,-1)}i=h;return}function Oj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,k=0;k=i;i=i+160|0;if((i|0)>=(j|0))ba();e=k+48|0;f=k;g=k+60|0;if(!(io(a,b,d,f)|0)){lo(f);d=c[f+24>>2]|0;b=~~+h[f+32>>3];c[e>>2]=c[f+20>>2];c[e+4>>2]=d;c[e+8>>2]=b;Yc(100,g,20120,e)|0;Sg(a,g,-1,1,-1)}i=k;return}function Pj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,k=0,l=0,m=0,n=0;k=i;i=i+176|0;if((i|0)>=(j|0))ba();e=k+48|0;f=k;g=k+72|0;if(!(io(a,b,d,f)|0)){ko(f);lo(f);n=c[f+12>>2]|0;m=c[f+16>>2]|0;l=c[f+20>>2]|0;d=c[f+24>>2]|0;b=~~+h[f+32>>3];c[e>>2]=c[f+8>>2];c[e+4>>2]=n;c[e+8>>2]=m;c[e+12>>2]=l;c[e+16>>2]=d;c[e+20>>2]=b;Yc(100,g,20088,e)|0;Sg(a,g,-1,1,-1)}i=k;return}function Qj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=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,D=0,E=0,F=0.0;D=i;i=i+208|0;if((i|0)>=(j|0))ba();y=D+96|0;z=D+48|0;B=D+104|0;A=D;a:do if(((d|0)!=0?(x=Og(c[e>>2]|0,1)|0,(x|0)!=0):0)?(io(b,d+-1|0,e+4|0,z)|0)==0:0){m=c[b>>2]|0;l=c[m+32>>2]|0;e=1;d=0;g=0;b:while(1){f=a[x+g>>0]|0;c:do if(f<<24>>24==37){f=g+1|0;switch(a[x+f>>0]|0){case 106:{e=fw(e|0,d|0,3,0)|0;d=C;break c}case 89:{e=fw(e|0,d|0,8,0)|0;d=C;break c}case 74:case 115:{e=fw(e|0,d|0,50,0)|0;d=C;break c}case 37:case 119:break c;case 87:case 83:case 77:case 109:case 72:case 100:{e=fw(e|0,d|0,1,0)|0;d=C;break c}case 102:{e=fw(e|0,d|0,8,0)|0;d=C;break c}default:break a}}else if(!(f<<24>>24))break b;else f=g;while(0);e=fw(e|0,d|0,1,0)|0;d=C;g=f+1|0}if(!(d>>>0<0|(d|0)==0&e>>>0<100)){w=c[l+88>>2]|0;v=((w|0)<0)<<31>>31;if(d>>>0>v>>>0|(d|0)==(v|0)&e>>>0>w>>>0){c[b+20>>2]=18;a[b+25>>0]=1;Tg(m,10096,-1,1,0)|0;break}d=aw(0,e|0,32)|0;d=ih(l,d,C)|0;if(!d){Nd(b);break}else w=d}else w=B;jo(z);ko(z);lo(z);n=z+16|0;o=z+32|0;p=z+20|0;q=A+42|0;r=A+12|0;s=A+16|0;t=z+12|0;u=z+24|0;v=z+8|0;l=0;d=0;d:while(1){m=a[x+l>>0]|0;e:do if(!(m<<24>>24))break d;else if(m<<24>>24==37){l=l+1|0;e=x+l|0;do switch(a[e>>0]|0){case 106:case 87:{m=A+0|0;g=z+0|0;f=m+48|0;do{c[m>>2]=c[g>>2];m=m+4|0;g=g+4|0}while((m|0)<(f|0));a[q>>0]=0;c[r>>2]=1;c[s>>2]=1;jo(A);m=z;f=A;E=c[f>>2]|0;f=c[f+4>>2]|0;m=fw(c[m>>2]|0,c[m+4>>2]|0,432e5,0)|0;g=C;f=mw($v(m|0,g|0,E|0,f|0)|0,C|0,864e5,0)|0;if((a[e>>0]|0)==87){e=mw(m|0,g|0,864e5,0)|0;e=nw(e|0,C|0,7,0)|0;c[y>>2]=(f+7-e|0)/7|0;Yc(3,w+d|0,19888,y)|0;d=d+2|0;break e}else{c[y>>2]=f+1;Yc(4,w+d|0,19904,y)|0;d=d+3|0;break e}}case 102:{F=+h[o>>3];g=w+d|0;h[k>>3]=F>59.999?59.999:F;c[y>>2]=c[k>>2];c[y+4>>2]=c[k+4>>2];Yc(7,g,19896,y)|0;if(!g)m=0;else{m=g;while(1)if(!(a[m>>0]|0))break;else m=m+1|0;m=m-g&1073741823}d=m+d|0;break e}case 100:{c[y>>2]=c[n>>2];Yc(3,w+d|0,19888,y)|0;d=d+2|0;break e}case 83:{c[y>>2]=~~+h[o>>3];Yc(3,w+d|0,19888,y)|0;d=d+2|0;break e}case 119:{e=z;e=fw(c[e>>2]|0,c[e+4>>2]|0,1296e5,0)|0;e=mw(e|0,C|0,864e5,0)|0;e=nw(e|0,C|0,7,0)|0;a[w+d>>0]=e+48;d=d+1|0;break e}case 89:{g=w+d|0;c[y>>2]=c[v>>2];Yc(5,g,19928,y)|0;if(!g)m=0;else{m=g;while(1)if(!(a[m>>0]|0))break;else m=m+1|0;m=m-g&1073741823}d=m+d|0;break e}case 72:{c[y>>2]=c[p>>2];Yc(3,w+d|0,19888,y)|0;d=d+2|0;break e}case 109:{c[y>>2]=c[t>>2];Yc(3,w+d|0,19888,y)|0;d=d+2|0;break e}case 77:{c[y>>2]=c[u>>2];Yc(3,w+d|0,19888,y)|0;d=d+2|0;break e}case 74:{g=w+d|0;e=z;h[k>>3]=(+((c[e>>2]|0)>>>0)+4294967296.0*+(c[e+4>>2]|0))/864.0e5;c[y>>2]=c[k>>2];c[y+4>>2]=c[k+4>>2];Yc(20,g,19912,y)|0;if(!g)m=0;else{m=g;while(1)if(!(a[m>>0]|0))break;else m=m+1|0;m=m-g&1073741823}d=m+d|0;break e}case 115:{g=w+d|0;f=z;f=mw(c[f>>2]|0,c[f+4>>2]|0,1e3,0)|0;f=fw(f|0,C|0,-413362496,-50)|0;e=y;c[e>>2]=f;c[e+4>>2]=C;Yc(30,g,19920,y)|0;if(!g)m=0;else{m=g;while(1)if(!(a[m>>0]|0))break;else m=m+1|0;m=m-g&1073741823}d=m+d|0;break e}default:{a[w+d>>0]=37;d=d+1|0;break e}}while(0)}else{a[w+d>>0]=m;d=d+1|0}while(0);l=l+1|0}a[w+d>>0]=0;Sg(b,w,-1,1,(w|0)==(B|0)?-1:75)}while(0);i=D;return}function Rj(a,b,c){a=a|0;b=b|0;c=c|0;Oj(a,0,0);return}function Sj(a,b,c){a=a|0;b=b|0;c=c|0;Pj(a,0,0);return}function Tj(a,b,c){a=a|0;b=b|0;c=c|0;Nj(a,0,0);return}function Uj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;g=Rg(c[d>>2]|0)|0;h=g+1&-2;e=Rg(c[d+4>>2]|0)|0;f=(h<<3)+56|0;d=c[(c[a>>2]|0)+32>>2]|0;b=ih(d,f,((f|0)<0)<<31>>31)|0;if(!b)Nd(a);else{bw(b|0,0,f|0)|0;c[b+52>>2]=d;c[b>>2]=0;c[b+8>>2]=g;c[b+12>>2]=e;d=b+56|0;c[b+24>>2]=d;c[b+20>>2]=d+(h<<2);Sg(a,b,56,0,20)}return}function Vj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;g=ld(c[d>>2]|0)|0;f=Rg(c[d+4>>2]|0)|0;if(!(c[g>>2]|0)){a=g+8|0;if((c[a>>2]|0)>0){b=c[g+20>>2]|0;d=0;do{c[b+(d<<2)>>2]=1;d=d+1|0}while((d|0)<(c[a>>2]|0))}}else{if((f|0)>0){a=c[g+20>>2]|0;d=0;do{b=a+(d<<2)|0;c[b>>2]=(c[b>>2]|0)+1;d=d+1|0}while((d|0)!=(f|0))}a=g+8|0;if((f|0)<(c[a>>2]|0)){b=c[g+24>>2]|0;e=c[g+20>>2]|0;d=f;do{f=b+(d<<2)|0;c[f>>2]=(c[f>>2]|0)+1;c[e+(d<<2)>>2]=1;d=d+1|0}while((d|0)<(c[a>>2]|0))}}c[g>>2]=(c[g>>2]|0)+1;return}function Wj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;h=ld(c[e>>2]|0)|0;k=h+12|0;e=((c[k>>2]|0)*25|0)+25|0;l=mg(e,((e|0)<0)<<31>>31)|0;if(!l)Nd(b);else{bw(l|0,0,e|0)|0;e=m;c[e>>2]=c[h>>2];c[e+4>>2]=0;Yc(24,l,28696,m)|0;e=l;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;if((c[k>>2]|0)>0){f=h+24|0;g=0;d=l+(e-l&1073741823)|0;while(1){o=(c[(c[f>>2]|0)+(g<<2)>>2]|0)+1|0;e=c[h>>2]|0;p=fw(o|0,0,-1,-1)|0;e=fw(p|0,C|0,e|0,0)|0;o=pw(e|0,C|0,o|0,0)|0;e=m;c[e>>2]=o;c[e+4>>2]=C;Yc(24,d,28704,m)|0;if(!d)e=0;else{e=d;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;e=e-d&1073741823}g=g+1|0;if((g|0)>=(c[k>>2]|0))break;else d=d+e|0}}Sg(b,l,-1,1,1)}i=n;return}function Xj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;n=i;i=i+144|0;if((i|0)>=(j|0))ba();l=n;m=n+8|0;h=Og(c[e>>2]|0,1)|0;k=c[(c[b>>2]|0)+32>>2]|0;h=(h|0)==0?10360:h;g=c[k+20>>2]|0;a:do if((g|0)>0){d=c[k+16>>2]|0;e=0;do{f=d+(e<<4)|0;if((c[d+(e<<4)+4>>2]|0)!=0?($c(c[f>>2]|0,h)|0)==0:0)break a;e=e+1|0}while((e|0)<(g|0))}else{e=0;f=0}while(0);do if((e|0)<(g|0)){if((e|0)<2){c[l>>2]=h;Yc(128,m,29256,l)|0;o=16;break}if(!(a[k+63>>0]|0)){Yc(128,m,29288,l)|0;o=16;break}e=f+4|0;d=c[e>>2]|0;if((a[d+8>>0]|0)==0?(c[d+16>>2]|0)==0:0){Il(d);c[e>>2]=0;c[f+12>>2]=0;Ag(k);break}c[l>>2]=h;Yc(128,m,29336,l)|0;o=16}else{c[l>>2]=h;Yc(128,m,29232,l)|0;o=16}while(0);if((o|0)==16){c[b+20>>2]=1;a[b+25>>0]=1;Tg(c[b>>2]|0,m,-1,1,-1)|0}i=n;return}function Yj(b,d,f){b=b|0;d=d|0;f=f|0;var g=0,h=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;z=i;i=i+32|0;if((i|0)>=(j|0))baba();g=k;if(!(Cb(c[a+12>>2]|0)|0)){h=a+18|0;if(!(b[h>>1]&8))d=0;else{d=nc[c[47552+208>>2]&127](c[a+32>>2]|0,g)|0;f=c[g>>2]|0;if((d|0)==0&(f|0)>-1){Cb(f|0)|0;Yn(a,c[g>>2]|0,28974);d=0}else d=(d|0)==14?0:d;b[h>>1]=(e[h>>1]|0)&65527}}else{c[a+20>>2]=c[(Db()|0)>>2];d=_n(1034,48360,c[a+32>>2]|0,28960)|0}i=k;return d|0}function ck(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;e=i;i=i+80|0;if((i|0)>=(j|0))ba();d=e;if(!(nc[c[47552+64>>2]&127](c[a+12>>2]|0,d)|0)){a=c[d+36>>2]|0;f=(a|0)==1;d=b;c[d>>2]=f?0:a;c[d+4>>2]=f?0:((a|0)<0)<<31>>31;d=0}else{c[a+20>>2]=c[(Db()|0)>>2];d=1802}i=e;return d|0}function dk(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=c[b+24>>2]|0;g=b+16|0;a:do if(!(a[g>>0]|0)){e=nc[c[47552+220>>2]&127](f,511)|0;if((e|0)>=0){a[g>>0]=d;break}f=c[(Db()|0)>>2]|0;switch(f|0){case 1:{e=3;break}case 13:case 37:case 4:case 16:case 110:case 11:case 17:{e=5;break a}default:e=3850}c[b+20>>2]=f}else{a[g>>0]=d;Ua(f|0,0)|0;e=0}while(0);return e|0}function ek(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;g=c[b+24>>2]|0;h=b+16|0;a:do if((d[h>>0]|0|0)==(e|0))f=0;else{if((e|0)==1){a[h>>0]=1;f=0;break}do if((hc[c[47552+232>>2]&127](g)|0)<0){f=Db()|0;e=c[f>>2]|0;if((e|0)==20){if((hc[c[47552+196>>2]&127](g)|0)>=0)break;e=c[f>>2]|0}g=(e|0)!=2;f=g?2058:0;if(!g)break a;c[b+20>>2]=e;break a}while(0);a[h>>0]=0;f=0}while(0);return f|0}function fk(a,b){a=a|0;b=b|0;if((d[a+16>>0]|0)>1)a=1;else a=(nc[c[47552+28>>2]&127](c[a+24>>2]|0,0)|0)==0&1;c[b>>2]=a;return 0}function gk(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+80|0;if((i|0)>=(j|0))ba();g=n;a:do switch(b|0){case 6:{c[a+40>>2]=c[e>>2];f=0;break}case 20:{c[e>>2]=to(a)|0;f=0;break}case 16:{f=a+4|0;b=Pc(c[(c[f>>2]|0)+8>>2]|0)|0;if(!b)f=0;else{Wn(c[(c[f>>2]|0)+8>>2]|0,b)|0;c[e>>2]=b;f=0}break}case 12:{c[g>>2]=c[(c[a+4>>2]|0)+16>>2];c[e>>2]=Wc(10344,g)|0;f=0;break}case 1:{c[e>>2]=d[a+16>>0];f=0;break}case 24:{f=0;break}case 10:{so(a,4,e);f=0;break}case 13:{so(a,16,e);f=0;break}case 5:{b=e;e=c[b>>2]|0;b=c[b+4>>2]|0;f=a+40|0;if((c[f>>2]|0)>0){m=a+12|0;if(!(nc[c[47552+64>>2]&127](c[m>>2]|0,g)|0)){f=c[f>>2]|0;k=((f|0)<0)<<31>>31;e=fw(e|0,b|0,-1,-1)|0;e=fw(e|0,C|0,f|0,k|0)|0;l=C;k=nw(e|0,l|0,f|0,k|0)|0;k=$v(e|0,l|0,k|0,C|0)|0;l=C;e=c[g+36>>2]|0;f=((e|0)<0)<<31>>31;do if((l|0)>(f|0)|(l|0)==(f|0)&k>>>0>e>>>0){h=c[g+40>>2]|0;b=e+-1+(h<<1)|0;b=b+~((b|0)%(h|0)|0)|0;e=((b|0)<0)<<31>>31;f=a+20|0;if((e|0)<(l|0)|(e|0)==(l|0)&b>>>0<k>>>0){g=((h|0)<0)<<31>>31;do{a=(ro(c[m>>2]|0,b,e,10360,1,f)|0)==1;b=fw(b|0,e|0,h|0,g|0)|0;e=C;if(!a){f=778;break a}}while((e|0)<(l|0)|(e|0)==(l|0)&b>>>0<k>>>0);b=nw(k|0,l|0,h|0,g|0)|0;if((b|0)==0&(C|0)==0)break}b=fw(k|0,l|0,-1,-1)|0;if((ro(c[m>>2]|0,b,C,10360,1,f)|0)!=1){f=778;break a}}while(0);f=0}else f=1802}else f=0;break}case 4:{c[e>>2]=c[a+20>>2];f=0;break}default:f=12}while(0);i=n;return f|0}function hk(a){a=a|0;return 4096}function ik(a){a=a|0;return (b[a+18>>1]&16)<<8|0}function jk(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;l=c[a+36>>2]|0;i=c[l>>2]|0;m=(1<<f+d)-(1<<d)|0;a:do if(!(g&1)){j=c[i+32>>2]|0;i=(j|0)==0;if(g&4){if(i)g=0;else{g=0;i=j;do{if(m&(e[i+12>>1]|0)){h=5;break a}g=b[i+10>>1]|g;i=c[i+4>>2]|0}while((i|0)!=0)}if((m&(g&65535)|0)==0?(k=uo(a,0,d+120|0,f)|0,(k|0)!=0):0){h=k;break}h=l+10|0;b[h>>1]=e[h>>1]|0|m;h=0;break}if(!i){h=m&65535;g=j;do{if((e[g+12>>1]|0)&h){h=5;break a}if((e[g+10>>1]|0)&h){h=5;break a}g=c[g+4>>2]|0}while((g|0)!=0)}h=uo(a,1,d+120|0,f)|0;if(!h){h=l+12|0;b[h>>1]=e[h>>1]|0|m;h=0}}else{i=c[i+32>>2]|0;if(!i)g=0;else{g=0;do{if((i|0)!=(l|0))g=b[i+10>>1]|g;i=c[i+4>>2]|0}while((i|0)!=0)}if((g&65535&m|0)==0?(h=uo(a,2,d+120|0,f)|0,(h|0)!=0):0)break;g=(m|-65536)^65535;h=l+12|0;b[h>>1]=(e[h>>1]|0)&g;h=l+10|0;b[h>>1]=(e[h>>1]|0)&g;h=0}while(0);return h|0}function kk(a){a=a|0;return}function lk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;f=a+36|0;g=c[f>>2]|0;if(g){h=c[g>>2]|0;d=h+32|0;while(1){e=c[d>>2]|0;if((e|0)==(g|0))break;else d=e+4|0}c[d>>2]=c[g+4>>2];Sc(g);c[f>>2]=0;e=h+28|0;d=(c[e>>2]|0)+-1|0;c[e>>2]=d;if(!d){if((b|0)!=0?(c[h+12>>2]|0)>-1:0)hc[c[47552+196>>2]&127](c[h+8>>2]|0)|0;vo(a)}}return 0}function mk(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;c[f>>2]=0;return 0}function nk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return 0}function ok(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();f=e;c[f>>2]=d;b=mb(a|0,b|0,f|0)|0;i=e;return b|0}function pk(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+528|0;if((i|0)>=(j|0))ba();f=k;g=k+8|0;c[f>>2]=b;Yc(512,g,10344,f)|0;b=cw(g|0)|0;a:do if((b|0)>1)while(1){e=b+-1|0;if((a[g+b>>0]|0)==47)break a;if((e|0)>1)b=e;else{b=e;break}}while(0);if((b|0)>0){a[g+b>>0]=0;b=Xn(g,0,0)|0;c[d>>2]=b;if((b|0)>-1)b=0;else h=7}else{c[d>>2]=-1;h=7}if((h|0)==7){c[f>>2]=28919;c[f+4>>2]=10788;Zc(14,14848,f);b=_n(14,47896,g,28919)|0}i=k;return b|0}function qk(a,b,c){a=a|0;b=b|0;c=c|0;if(!(Gb()|0))a=Mb(a|0,b|0,c|0)|0;else a=0;return a|0}function rk(){return sb(30)|0}function sk(a){a=a|0;qo(a);return 0}function tk(a,b){a=a|0;b=b|0;return 0}function uk(a,b){a=a|0;b=b|0;return 0}function vk(a,b){a=a|0;b=b|0;c[b>>2]=0;return 0}function wk(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;Zn(a);yk(a,0)|0;f=c[a+8>>2]|0;if(f){if(c[f+24>>2]|0){b=a+28|0;e=c[b>>2]|0;d=f+28|0;c[e+8>>2]=c[d>>2];c[d>>2]=e;c[a+12>>2]=-1;c[b>>2]=0}d=f+16|0;b=(c[d>>2]|0)+-1|0;c[d>>2]=b;if(!b){wo(a);g=f+36|0;b=c[g>>2]|0;d=f+32|0;e=c[d>>2]|0;if(!b)c[12178]=e;else c[b+32>>2]=e;b=c[d>>2]|0;if(b)c[b+36>>2]=c[g>>2];Sc(f)}}qo(a);return 0}function xk(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();m=q;o=d+16|0;f=a[o>>0]|0;a:do if((f&255|0)<(e|0)){l=c[d+8>>2]|0;p=l+12|0;g=a[p>>0]|0;if(f<<24>>24!=g<<24>>24?(g&255)>2|(e|0)>1:0){f=5;break}h=(e|0)==1;do if(h)if((g+-1&255)<2){a[o>>0]=1;f=l+8|0;c[f>>2]=(c[f>>2]|0)+1;f=l+24|0;c[f>>2]=(c[f>>2]|0)+1;f=0;break a}else{g=m+8|0;c[g>>2]=1;b[m+2>>1]=0;n=10;break}else{g=m+8|0;c[g>>2]=1;b[m+2>>1]=0;if((e|0)==4)if((f&255)<3)n=10;else{k=g;n=14}else{h=g;n=24}}while(0);if((n|0)==10){b[m>>1]=h&1^1;c[m+4>>2]=c[2514];if(!(xo(d,m)|0)){k=g;n=14}else{g=c[(Db()|0)>>2]|0;switch(g|0){case 13:case 37:case 4:case 16:case 110:case 11:{f=5;break a}case 1:{f=3;break}default:f=3850}c[d+20>>2]=g;break}}b:do if((n|0)==14)if(h){h=m+4|0;c[h>>2]=(c[2514]|0)+2;c[k>>2]=510;c:do if(!(xo(d,m)|0)){f=0;g=0}else{g=c[(Db()|0)>>2]|0;switch(g|0){case 1:{f=3;g=1;break c}case 13:case 37:case 4:case 16:case 110:case 11:{f=5;break c}default:{f=3850;break c}}}while(0);c[h>>2]=c[2514];c[k>>2]=1;b[m>>1]=2;do if((xo(d,m)|0)!=0&(f|0)==0){f=2058;g=c[(Db()|0)>>2]|0}else{if((f|0)==5){f=5;break a}else if(f)break;a[o>>0]=1;m=l+24|0;c[m>>2]=(c[m>>2]|0)+1;c[l+8>>2]=1;break b}while(0);c[d+20>>2]=g;break a}else{h=k;n=24}while(0);do if((n|0)==24){k=(e|0)==4;if(k)if((c[l+8>>2]|0)>1)f=5;else{b[m>>1]=1;g=c[2514]|0;n=29}else{b[m>>1]=1;g=c[2514]|0;if((e|0)==2){c[m+4>>2]=g+1;g=1;n=30}else n=29}if((n|0)==29){c[m+4>>2]=g+2;g=510;n=30}if((n|0)==30){c[h>>2]=g;if(!(xo(d,m)|0))break;g=c[(Db()|0)>>2]|0;switch(g|0){case 13:case 37:case 4:case 16:case 110:case 11:{f=5;break}case 1:{f=3;n=33;break}default:{f=3850;n=33}}if((n|0)==33)c[d+20>>2]=g;if(!k)break a}a[o>>0]=3;a[p>>0]=3;break a}while(0);f=e&255;a[o>>0]=f;a[p>>0]=f;f=0}else f=0;while(0);i=q;return f|0}function yk(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();k=n;l=d+16|0;f=a[l>>0]|0;a:do if((f&255|0)>(e|0)){m=c[d+8>>2]|0;do if((f&255)>1){if((e|0)==1){b[k>>1]=0;h=k+2|0;b[h>>1]=0;f=k+4|0;c[f>>2]=(c[2514]|0)+2;g=k+8|0;c[g>>2]=510;if(xo(d,k)|0){c[d+20>>2]=c[(Db()|0)>>2];f=2314;break a}}else{g=k+8|0;h=k+2|0;f=k+4|0}b[k>>1]=2;b[h>>1]=0;c[f>>2]=c[2514];c[g>>2]=2;if(!(xo(d,k)|0)){a[m+12>>0]=1;break}else{c[d+20>>2]=c[(Db()|0)>>2];f=2058;break a}}while(0);if(!e){g=m+8|0;f=(c[g>>2]|0)+-1|0;c[g>>2]=f;do if(!f){b[k>>1]=2;b[k+2>>1]=0;c[k+8>>2]=0;c[k+4>>2]=0;if(!(xo(d,k)|0)){a[m+12>>0]=0;f=0;break}else{c[d+20>>2]=c[(Db()|0)>>2];a[m+12>>0]=0;a[l>>0]=0;f=2058;break}}else f=0;while(0);h=m+24|0;g=(c[h>>2]|0)+-1|0;c[h>>2]=g;if(!g)wo(d);if(f)break}a[l>>0]=e;f=0}else f=0;while(0);i=n;return f|0}function zk(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;m=i;i=i+32|0;if((i|0)>=(j|0))ba();k=m;l=m+8|0;h=c[e+8>>2]|0;n=(d[h+12>>0]|0)>1;g=n&1;do if(!n)if(!(a[h+13>>0]|0)){b[l+2>>1]=0;c[l+4>>2]=(c[2514]|0)+1;c[l+8>>2]=1;b[l>>1]=1;n=c[11910]|0;h=c[e+12>>2]|0;c[k>>2]=l;if(!(Yb[n&63](h,12,k)|0)){h=0;g=(b[l>>1]|0)==2?g:1;break}else{c[e+20>>2]=c[(Db()|0)>>2];h=3594;break}}else{h=0;g=0}else{h=0;g=1}while(0);c[f>>2]=g;i=m;return h|0}function Ak(d,f,g,h,k){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;var 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;A=i;i=i+160|0;if((i|0)>=(j|0))ba();y=A;t=A+76|0;m=dc[c[47552+292>>2]&7]()|0;if((m|0)<32768)z=1;else z=(m|0)/32768|0;w=d+36|0;m=c[w>>2]|0;a:do if(!m){m=Pc(16)|0;if(!m)l=7;else{c[m+0>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;s=d+8|0;q=c[s>>2]|0;l=c[q+20>>2]|0;b:do if(!l){r=d+32|0;n=c[r>>2]|0;if((nc[c[47552+64>>2]&127](c[d+12>>2]|0,t)|0)!=0?(a[q+13>>0]|0)==0:0)l=1802;else x=8;c:do if((x|0)==8){l=cw(n|0)|0;o=l+42|0;u=Pc(o)|0;if(u){bw(u|0,0,o|0)|0;p=u+36|0;c[u+8>>2]=p;c[y>>2]=n;Yc(l+6|0,p,48720,y)|0;l=u+12|0;c[l>>2]=-1;s=c[s>>2]|0;c[s+20>>2]=u;c[u>>2]=s;c[u+4>>2]=8;if(a[q+13>>0]|0){l=u;break b}if(!(bg(c[r>>2]|0,48728,0)|0))o=66;else{a[u+22>>0]=1;o=0}n=Xn(p,o,c[t+12>>2]&511)|0;c[l>>2]=n;if((n|0)<0){c[y>>2]=29706;c[y+4>>2]=10788;Zc(14,14848,y);l=_n(14,47896,p,29706)|0;break}Yb[c[47552+244>>2]&63](n,c[t+20>>2]|0,c[t+24>>2]|0)|0;do if(!(uo(d,1,128,1)|0)){l=c[l>>2]|0;do{n=nc[c[47552+76>>2]&127](l,0)|0;if((n|0)>=0){v=n;x=18;break}}while((c[(Db()|0)>>2]|0)==4);if((x|0)==18?(v|0)==0:0)break;l=_n(4618,47928,p,29722)|0;if(l)break c}while(0);l=uo(d,0,128,1)|0;if(!l){l=u;break b}}else l=7}while(0);vo(d);Sc(m);if(l)break a;m=c[w>>2]|0;x=24;break a}while(0);c[m>>2]=l;x=l+28|0;c[x>>2]=(c[x>>2]|0)+1;c[d+36>>2]=m;x=l+32|0;c[m+4>>2]=c[x>>2];c[x>>2]=m;x=24}}else x=24;while(0);if((x|0)==24){u=c[m>>2]|0;w=z+f|0;w=w-((w|0)%(z|0)|0)|0;t=u+20|0;d:do if((e[t>>1]|0)<(w|0)){l=_(w,g)|0;c[u+16>>2]=g;v=u+12|0;m=c[v>>2]|0;e:do if((m|0)>-1){if(nc[c[47552+64>>2]&127](m,y)|0){m=4874;break d}m=c[y+36>>2]|0;if((m|0)<(l|0)){if(!h){m=0;break d}m=(m|0)/4096|0;l=(l|0)/4096|0;if((m|0)<(l|0)){while(1){s=m<<12|4095;m=m+1|0;if((ro(c[v>>2]|0,s,((s|0)<0)<<31>>31,10360,1,0)|0)!=1)break;if((m|0)>=(l|0))break e}m=_n(4874,47976,c[u+8>>2]|0,29853)|0;break d}}}while(0);s=u+24|0;m=Tc(c[s>>2]|0,w<<2)|0;if(m){c[s>>2]=m;m=e[t>>1]|0;if((m|0)<(w|0)){p=_(z,g)|0;q=u+22|0;r=(z|0)>0;while(1){l=c[v>>2]|0;if((l|0)>-1){m=_(m,g)|0;m=gc[c[47552+256>>2]&7](0,p,(a[q>>0]|0)!=0?1:3,1,l,m)|0;if((m|0)==(-1|0))break}else{m=Pc(g)|0;if(!m){m=7;break d}bw(m|0,0,g|0)|0}n=b[t>>1]|0;if(r){l=n&65535;o=0;do{d=m+(_(o,g)|0)|0;c[(c[s>>2]|0)+(l+o<<2)>>2]=d;o=o+1|0}while((o|0)!=(z|0))}m=(n&65535)+z|0;b[t>>1]=m;m=m&65535;if((m|0)>=(w|0)){m=0;break d}}m=_n(5386,48080,c[u+8>>2]|0,29880)|0}else m=0}else m=3082}else m=0;while(0);if((e[t>>1]|0)>(f|0))l=c[(c[u+24>>2]|0)+(f<<2)>>2]|0;else l=0;c[k>>2]=l;l=(a[u+22>>0]|0)!=0&(m|0)==0?8:m}i=A;return l|0}function Bk(a,b){a=a|0;b=b|0;var d=0;if(b)do{d=b;b=c[b+32>>2]|0;Ck(a,c[d+20>>2]|0);Jk(a,c[d+24>>2]|0);Ik(a,c[d+8>>2]|0,1);Dk(a,c[d+28>>2]|0);ig(a,d)}while((b|0)!=0);return}function Ck(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;if(b){f=b+4|0;do if(!(c[f>>2]&16384)){Ck(a,c[b+12>>2]|0);Ck(a,c[b+16>>2]|0);d=c[f>>2]|0;if(d&65536){ig(a,c[b+8>>2]|0);d=c[f>>2]|0}e=b+20|0;if(!(d&2048)){Jk(a,c[e>>2]|0);break}else{Ik(a,c[e>>2]|0,1);break}}while(0);if(!(c[f>>2]&32768))ig(a,b)}return}function Dk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;if(b){f=b+4|0;d=c[b>>2]|0;if((c[f>>2]|0)>0){e=0;do{ig(a,c[d+(e<<3)>>2]|0);e=e+1|0;d=c[b>>2]|0}while((e|0)<(c[f>>2]|0))}ig(a,d);ig(a,b)}return}function Ek(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))baba();k=f+28|0;h=f;g=c[b+88>>2]|0;c[h+4>>2]=k;c[h+8>>2]=k;c[h+12>>2]=0;c[h+16>>2]=70;c[h+20>>2]=g;a[h+24>>0]=1;g=h+25|0;a[g>>0]=0;c[h>>2]=b;og(h,1,d,e);e=pg(h)|0;if((a[g>>0]|0)==1)a[b+65>>0]=1;i=f;return e|0}function Tk(a){a=a|0;return hc[c[8744+48>>2]&127](a)|0}function Uk(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+80|0;if((i|0)>=(j|0))ba();l=m+40|0;g=m;if((d|0)!=0?(f=c[d+20>>2]|0,(f|0)!=0):0){c[l+0>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;c[l+12>>2]=0;c[l+16>>2]=0;c[l+20>>2]=0;c[l+24>>2]=0;h=g+0|0;k=h+40|0;do{c[h>>2]=0;h=h+4|0}while((h|0)<(k|0));b[g+8>>1]=1;e=a+32|0;c[g+32>>2]=c[e>>2];c[l>>2]=g;c[l+8>>2]=a;c[l+4>>2]=d;_b[f&31](l);if((c[a+24>>2]|0)>0)ig(c[e>>2]|0,c[a+20>>2]|0);h=a+0|0;e=g+0|0;k=h+40|0;do{c[h>>2]=c[e>>2];h=h+4|0;e=e+4|0}while((h|0)<(k|0));e=c[l+20>>2]|0}else e=0;i=m;return e|0}function Vk(a){a=a|0;var d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;do{f=d;d=c[d>>2]|0;ig(c[e>>2]|0,f)}while((d|0)!=0)}c[a>>2]=0;b[a+24>>1]=0;c[a+8>>2]=0;c[a+12>>2]=0;c[a+20>>2]=0;b[a+26>>1]=1;return}function Wk(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;g=k+4|0;d=c[b>>2]|0;e=d+16|0;do if((c[(c[e>>2]|0)+20>>2]|0)==0?(a[b+450>>0]|0)==0:0){f=vm(c[d>>2]|0,0,d,g,0,542)|0;if(f){ph(b,25496,h);c[b+12>>2]=f;d=1;break}f=c[g>>2]|0;c[(c[e>>2]|0)+20>>2]=f;if((tg(f,c[d+72>>2]|0,-1,0)|0)==7){a[d+65>>0]=1;d=1}else d=0}else d=0;while(0);i=k;return d|0}function Xk(a){a=a|0;var b=0;do if(a)if((c[3157]|0)>>>0<=a>>>0&(c[3158]|0)>>>0>a>>>0){c[2167]=(c[2167]|0)+-1;c[a>>2]=c[3160];c[3160]=a;a=(c[3161]|0)+1|0;c[3161]=a;c[3162]=(a|0)<(c[3156]|0)&1;break}else{b=hc[c[8744+48>>2]&127](a)|0;c[2168]=(c[2168]|0)-b;Sc(a);break}while(0);return}function Yk(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();n=q;m=c[e>>2]|0;if((a[d+15>>0]|0)!=0?(c[d+24>>2]|0)!=0:0)p=12;else p=3;do if((p|0)==3){l=d+204|0;if(((m|0)!=0?(c[(c[l>>2]|0)+12>>2]|0)==0:0)?(o=d+152|0,(m|0)!=(c[o>>2]|0)):0){r=n;c[r>>2]=0;c[r+4>>2]=0;if(((a[d+16>>0]|0)!=0?(h=c[d+60>>2]|0,g=c[h>>2]|0,(g|0)!=0):0)?(k=nc[c[g+24>>2]&127](h,n)|0,(k|0)!=0):0){g=0;f=k}else{g=Co(m)|0;if(g){tn(d);h=Do(c[l>>2]|0,m)|0;if(!h){p=d+200|0;Xk(c[p>>2]|0);c[p>>2]=g;p=n;n=c[p>>2]|0;p=c[p+4>>2]|0;l=fw(m|0,0,-1,-1)|0;p=fw(l|0,C|0,n|0,p|0)|0;p=mw(p|0,C|0,m|0,0)|0;c[d+24>>2]=p;c[o>>2]=m;p=12;break}else f=h}else{g=0;f=7}}Xk(g);c[e>>2]=c[o>>2]}else p=12}while(0);if((p|0)==12){c[e>>2]=c[d+152>>2];g=d+142|0;if((f|0)<0)f=b[g>>1]|0;b[g>>1]=f;f=0}i=q;return f|0}function Zk(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0;i=c[d+4>>2]|0;a:do if(a[d+9>>0]|0){if((c[i+76>>2]|0)!=(d|0)?(b[i+22>>1]&32)!=0:0){h=262;break}h=c[i+72>>2]|0;if(h){while(1){if(((c[h>>2]|0)!=(d|0)?(c[h+4>>2]|0)==(f|0):0)?(a[h+8>>0]|0)!=g<<24>>24:0)break;h=c[h+12>>2]|0;if(!h){h=0;break a}}if(g<<24>>24==2){h=i+22|0;b[h>>1]=e[h>>1]|64;h=262}else h=262}else h=0}else h=0;while(0);return h|0}function _k(b){b=b|0;var e=0,f=0,g=0,h=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;F=i;i=i+64|0;if((i|0)>=(j|0))ba();E=F;B=F+28|0;A=F+24|0;m=F+20|0;r=F+48|0;t=F+16|0;u=F+12|0;y=F+8|0;z=F+32|0;if(!((a[b+15>>0]|0)!=0?(e=c[b+40>>2]|0,(e|0)!=0):0))D=3;do if((D|0)==3){C=b+208|0;f=c[C>>2]|0;a:do if(!f){x=b+16|0;do if(!(a[x>>0]|0)){h=b+176|0;g=b+180|0;while(1){e=bl(b,1)|0;if(!e)break;else if((e|0)!=5)break a;if(!(hc[c[h>>2]&127](c[g>>2]|0)|0)){e=5;break a}}s=b+17|0;if((d[s>>0]|0)<2){f=c[b>>2]|0;c[E>>2]=1;k=b+64|0;l=(c[c[k>>2]>>2]|0)!=0;if(l){h=1;e=0}else{e=lc[c[f+32>>2]&31](f,c[b+172>>2]|0,0,E)|0;h=(c[E>>2]|0)!=0}b:do if((e|0)==0&h){c[B>>2]=0;g=b+60|0;e=c[g>>2]|0;e=nc[c[(c[e>>2]|0)+36>>2]&127](e,B)|0;if(!(c[B>>2]|e)){e=Eo(b,A)|0;if(!e){if((c[A>>2]|0)!=0|l){do if(!l){c[m>>2]=2049;e=pc[c[f+24>>2]&31](f,c[b+172>>2]|0,c[k>>2]|0,2049,m)|0;if(!e)break;else if((e|0)!=14){h=0;break b}h=1;e=0;break b}while(0);a[r>>0]=0;e=c[k>>2]|0;e=pc[c[(c[e>>2]|0)+8>>2]&31](e,r,1,0,0)|0;e=(e|0)==522?0:e;if(!l?(p=c[k>>2]|0,q=c[p>>2]|0,(q|0)!=0):0){hc[c[q+4>>2]&127](p)|0;c[p>>2]=0}h=(a[r>>0]|0)!=0&1;break}h=c[3164]|0;if(h)jc[h&3]();do if(((bl(b,2)|0)==0?(Yb[c[f+28>>2]&63](f,c[b+172>>2]|0,0)|0,(a[b+4>>0]|0)==0):0)?(n=c[g>>2]|0,o=c[n>>2]|0,(o|0)!=0):0){if(!(a[b+13>>0]|0))nc[c[o+32>>2]&127](n,1)|0;if((a[s>>0]|0)==5)break;a[s>>0]=1}while(0);h=c[3166]|0;if(!h){h=0;e=0}else{jc[h&3]();h=0;e=0}}else h=0}else h=0}else h=0;while(0);if(e)break a;if(h)D=35}else D=35;do if((D|0)==35){if(a[b+14>>0]|0){e=776;break a}e=bl(b,4)|0;if(e)break a;f=b+64|0;if(!(c[c[f>>2]>>2]|0)){h=c[b>>2]|0;g=b+172|0;e=lc[c[h+32>>2]&31](h,c[g>>2]|0,0,t)|0;if((e|0)==0&(c[t>>2]|0)!=0){c[u>>2]=0;e=pc[c[h+24>>2]&31](h,c[g>>2]|0,c[f>>2]|0,2050,u)|0;if(!e)if(c[u>>2]&1){c[E>>2]=46645;c[E+4>>2]=10788;Zc(14,14848,E);h=c[f>>2]|0;g=c[h>>2]|0;if(!g)e=14;else{hc[c[g+4>>2]&127](h)|0;c[h>>2]=0;e=14}}else e=0}}else e=0;if(!(c[c[f>>2]>>2]|0))if((a[b+4>>0]|0)==0?(v=c[b+60>>2]|0,w=c[v>>2]|0,(w|0)!=0):0){if(!(a[b+13>>0]|0))nc[c[w+32>>2]&127](v,1)|0;if((a[s>>0]|0)!=5){a[s>>0]=1;D=52}else D=52}else D=52;else{e=Fo(b)|0;if(!e){e=Go(b,1)|0;a[x>>0]=0;D=52}}if((D|0)==52)if(!e)break;B=e&255;if(!((B|0)==10|(B|0)==13))break a;c[b+40>>2]=e;a[x>>0]=6;break a}while(0);h=b+12|0;if((a[h>>0]|0)==0?(a[b+23>>0]|0)!=0:0){c[y>>2]=0;e=Eo(b,y)|0;if(e)break a;if(c[y>>2]|0){e=c[b+60>>2]|0;e=pc[c[(c[e>>2]|0)+8>>2]&31](e,z,16,24,0)|0;if(!((e|0)==0|(e|0)==522))break a}else{g=z+0|0;f=g+16|0;do{a[g>>0]=0;g=g+1|0}while((g|0)<(f|0))}if(Vv(b+104|0,z,16)|0)tn(b)}if(!(a[h>>0]|0)){e=Eo(b,A)|0;if(!e){g=c[b>>2]|0;f=c[b+212>>2]|0;if(!(c[A>>2]|0)){e=Yb[c[g+28>>2]&63](g,f,0)|0;c[B>>2]=0;if((e|0)!=5898)D=68}else{e=lc[c[g+32>>2]&31](g,f,0,B)|0;D=68}if((D|0)==68){if(e)break;if(c[B>>2]|0){e=al(b,0)|0;break}}e=b+5|0;if((a[e>>0]|0)==5){a[e>>0]=0;e=0}else e=0}}else e=0}else e=0;while(0);f=c[C>>2]|0;if(!f)D=78;else D=74}else D=74;while(0);if((D|0)==74){c[E>>2]=0;Ho(f);f=c[C>>2]|0;g=0;do{g=g+1|0;e=Io(f,E,0,g)|0}while((e|0)==-1);if(!(c[E>>2]|e))D=78;else{tn(b);D=78}}if((D|0)==78){if((a[b+16>>0]|0)==0&(e|0)==0)e=Eo(b,b+24|0)|0;if(!e){a[b+16>>0]=1;e=0;break}}Jo(b)}while(0);i=F;return e|0}function $k(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;f=vg(c[b>>2]|0,d,g,f)|0;if(!f){g=c[g>>2]|0;f=c[g+8>>2]|0;c[f+56>>2]=c[g+4>>2];c[f+68>>2]=g;c[f+52>>2]=b;c[f+72>>2]=d;a[f+6>>0]=(d|0)==1?100:0;c[e>>2]=f;f=0}i=h;return f|0}function al(b,d){b=b|0;d=d|0;var e=0,f=0;do if((a[b+12>>0]|0)==0?(c[b+208>>2]|0)==0:0){d=c[c[b+60>>2]>>2]|0;if(!(a[b+4>>0]|0)){if((c[d>>2]|0)<=1){d=14;break}if(!(c[d+52>>2]|0)){d=14;break}}d=c[b+64>>2]|0;e=c[d>>2]|0;if(e){hc[c[e+4>>2]&127](d)|0;c[d>>2]=0}d=ln(b)|0;if(!d){a[b+5>>0]=5;a[b+16>>0]=0;d=0}}else f=10;while(0);if((f|0)==10){c[d>>2]=1;d=0}return d|0}function bl(b,d){b=b|0;d=d|0;var e=0,f=0;f=b+17|0;e=a[f>>0]|0;do if((e&255|0)<(d|0)|e<<24>>24==5){if(!(a[b+13>>0]|0)){e=c[b+60>>2]|0;e=nc[c[(c[e>>2]|0)+28>>2]&127](e,d)|0;if(e)break;e=a[f>>0]|0}if(e<<24>>24!=5|(d|0)==4){a[f>>0]=d;e=0}else e=0}else e=0;while(0);return e|0}function cl(a){a=a|0;var b=0,d=0,e=0;b=c[a+4>>2]|0;a=c[b+444>>2]|0;if((a|0)!=0?(e=b+452|0,d=c[e>>2]|0,(d|0)>=0):0){a=nc[a&127](c[b+448>>2]|0,d)|0;if(!a)b=-1;else b=(c[e>>2]|0)+1|0;c[e>>2]=b}else a=0;return a|0}function dl(b,d){b=b|0;d=d|0;var 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;n=b+96|0;e=c[n>>2]|0;a:do if((e|0)<(d|0)?(a[b+6>>0]|0)!=0:0){f=b+92|0;q=ng(c[f>>2]|0,d*48|0,0)|0;if(!q)e=7;else{bw(q+(e*48|0)|0,0,(d-e|0)*48|0)|0;c[f>>2]=q;i=b+24|0;j=b+64|0;k=b+148|0;l=b+52|0;m=b+208|0;h=b+72|0;while(1){g=c[i>>2]|0;b=q+(e*48|0)|0;c[q+(e*48|0)+20>>2]=g;if((c[c[j>>2]>>2]|0)!=0?(p=h,o=c[p>>2]|0,p=c[p+4>>2]|0,(p|0)>0|(p|0)==0&o>>>0>0):0){c[b>>2]=o;c[b+4>>2]=p}else{c[b>>2]=c[k>>2];c[b+4>>2]=0}c[q+(e*48|0)+24>>2]=c[l>>2];f=mg(512,0)|0;if(!f)break;bw(f|0,0,512)|0;c[f>>2]=g;c[q+(e*48|0)+16>>2]=f;f=c[m>>2]|0;if(f){c[q+(e*48|0)+28>>2]=c[f+68>>2];c[q+(e*48|0)+32>>2]=c[f+76>>2];c[q+(e*48|0)+36>>2]=c[f+80>>2];c[q+(e*48|0)+40>>2]=c[f+104>>2]}e=e+1|0;c[n>>2]=e;if((e|0)>=(d|0)){e=0;break a}}c[q+(e*48|0)+16>>2]=f;e=7}}else e=0;while(0);return e|0}function el(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0;do if(e){f=c[e+4>>2]|0;if(!(c[f>>2]|0)){f=Ko(a,d,e)|0;break}e=f+26|0;g=b[e>>1]|0;if(!(g<<16>>16)){h=a+12|0;c[h>>2]=(c[h>>2]|0)+1}b[e>>1]=g+1<<16>>16;if((d|0)==1)c[a+44>>2]=f}else f=0;while(0);return f|0}function fl(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=a+96|0;d=c[h>>2]|0;if((d|0)>0){g=a+92|0;f=0;a=0;do{e=c[g>>2]|0;if((c[e+(f*48|0)+20>>2]|0)>>>0>=b>>>0){a=Zh(c[e+(f*48|0)+16>>2]|0,b)|0|a;d=c[h>>2]|0}f=f+1|0}while((f|0)<(d|0))}else a=0;return a|0}function gl(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=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;y=i;i=i+32|0;if((i|0)>=(j|0))ba();w=y;s=y+16|0;t=y+12|0;v=y+8|0;q=c[a+68>>2]|0;a:do if((q|0)!=0?(b[a+40>>1]|0)!=0:0){r=d*383&8191;u=(q+33|0)>>>12;b:while(1){g=Lo(a,u,s,t,v)|0;if(g)break a;g=(c[s>>2]|0)+(r<<1)|0;if(!(b[g>>1]|0))g=0;else{n=c[v>>2]|0;o=c[s>>2]|0;p=c[t>>2]|0;k=g;l=r;g=0;m=8192;while(1){h=(e[k>>1]|0)+n|0;if(h>>>0<=q>>>0)g=(c[p+(e[k>>1]<<2)>>2]|0)==(d|0)?h:g;if(!m){x=11;break b}l=l+1&8191;k=o+(l<<1)|0;if(!(b[k>>1]|0))break;else m=m+-1|0}}if((u|0)>0&(g|0)==0)u=u+-1|0;else{x=14;break}}if((x|0)==11){c[w>>2]=51262;c[w+4>>2]=10788;Zc(11,13600,w);g=11;break}else if((x|0)==14){c[f>>2]=g;g=0;break}}else x=3;while(0);if((x|0)==3){c[f>>2]=0;g=0}i=y;return g|0}function hl(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;h=c[b+16>>2]|0;i=c[b+20>>2]|0;f=c[h+152>>2]|0;b=b+4|0;g=c[b>>2]|0;if(!d){d=ow(i+-1|0,0,f|0,((f|0)<0)<<31>>31|0)|0;j=c[h+60>>2]|0;d=pc[c[(c[j>>2]|0)+8>>2]&31](j,g,f,d,C)|0;d=(d|0)==522?0:d}else{k=c[h+208>>2]|0;j=e[k+66>>1]|0;j=j<<16&65536|j&65024;d=ow(j|24|0,0,d+-1|0,0)|0;d=fw(d|0,C|0,56,0)|0;k=c[k+8>>2]|0;d=pc[c[(c[k>>2]|0)+8>>2]&31](k,g,(j|0)<(f|0)?j:f,d,C)|0}do if((i|0)==1)if(!d){g=h+104|0;f=(c[b>>2]|0)+24|0;b=g+16|0;do{a[g>>0]=a[f>>0]|0;g=g+1|0;f=f+1|0}while((g|0)<(b|0));break}else{g=h+104|0;b=g+16|0;do{a[g>>0]=255;g=g+1|0}while((g|0)<(b|0));break}while(0);return d|0}function il(a){a=a|0;var d=0,e=0;if(b[a+24>>1]&2)Mo(a,1);d=c[a+28>>2]|0;e=d+12|0;c[e>>2]=(c[e>>2]|0)+-1;if((c[a+20>>2]|0)==1)c[d+44>>2]=0;ic[c[8744+136>>2]&63](c[d+40>>2]|0,c[a>>2]|0,1);return}function jl(b){b=b|0;var d=0;d=a[b+16>>0]|0;do if(!(d<<24>>24==0|d<<24>>24==6)){if((d&255)<=1){if(a[b+4>>0]|0)break;yl(b,0,0)|0;break}d=c[3164]|0;if(d)jc[d&3]();Dl(b)|0;d=c[3166]|0;if(d)jc[d&3]()}while(0);Jo(b);return}function kl(d){d=d|0;var e=0,f=0;f=d+26|0;e=(b[f>>1]|0)+-1<<16>>16;b[f>>1]=e;do if(!(e<<16>>16)){e=c[d+28>>2]|0;f=e+12|0;c[f>>2]=(c[f>>2]|0)+-1;if(b[d+24>>1]&2){if(!(c[d+36>>2]|0))break;Mo(d,3);break}if(a[e+28>>0]|0){if((c[d+20>>2]|0)==1)c[e+44>>2]=0;ic[c[8744+136>>2]&63](c[e+40>>2]|0,c[d>>2]|0,0)}}while(0);return}function ll(e,f){e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;j=c[e+56>>2]|0;k=c[e+52>>2]|0;g=d[e+6>>0]|0;h=j+g|0;i=k+36|0;if(b[k+22>>1]&4)bw(h|0,0,(c[i>>2]|0)-g|0)|0;a[h>>0]=f;h=g+(f>>>1&4^12)|0;l=j+(g+1)|0;a[l>>0]=0;a[l+1>>0]=0;a[l+2>>0]=0;a[l+3>>0]=0;a[j+(g+7)>>0]=0;a[j+(g+5)>>0]=(c[i>>2]|0)>>>8;a[j+(g+6)>>0]=c[i>>2];b[e+16>>1]=(c[i>>2]|0)-h;No(e,f)|0;b[e+14>>1]=h;c[e+60>>2]=j+(c[i>>2]|0);c[e+64>>2]=j+(h&65535);a[e+1>>0]=0;b[e+20>>1]=(c[k+32>>2]|0)+65535;b[e+18>>1]=0;a[e>>0]=1;return}function ml(a){a=a|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+32|0;if((i|0)>=(j|0))ba();g=h+16|0;f=h;d=a+8|0;c[g+0>>2]=c[d+0>>2];c[g+4>>2]=c[d+4>>2];c[g+8>>2]=c[d+8>>2];c[g+12>>2]=c[d+12>>2];e=a+40|0;c[f+0>>2]=c[e+0>>2];c[f+4>>2]=c[e+4>>2];c[f+8>>2]=c[e+8>>2];c[f+12>>2]=c[e+12>>2];c[e+0>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;c[e+12>>2]=0;Kl(a+24|0);e=c[f+8>>2]|0;if(e)do{fg(0,c[e+8>>2]|0);e=c[e>>2]|0}while((e|0)!=0);Kl(f);c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;d=c[g+8>>2]|0;if(d)do{gg(0,c[d+8>>2]|0);d=c[d>>2]|0}while((d|0)!=0);Kl(g);Kl(a+56|0);c[a+72>>2]=0;d=a+78|0;e=b[d>>1]|0;if(e&1){f=a+4|0;c[f>>2]=(c[f>>2]|0)+1;b[d>>1]=e&65534}i=h;return}function nl(a){a=a|0;var d=0,e=0;e=a+332|0;d=c[e>>2]|0;c[e>>2]=0;if(d){a=c[a+4>>2]|0;if(a)do{e=a+88|0;b[e>>1]=b[e>>1]|8;a=c[a+52>>2]|0}while((a|0)!=0);do{a=d;d=c[d+24>>2]|0;wn(a)}while((d|0)!=0)}return}function ol(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=a+20|0;b=c[g>>2]|0;j=a+16|0;d=c[j>>2]|0;if((b|0)>2){f=2;e=2;do{b=d+(f<<4)|0;if(!(c[d+(f<<4)+4>>2]|0)){ig(a,c[b>>2]|0);c[b>>2]=0}else{if((e|0)<(f|0)){d=d+(e<<4)|0;c[d+0>>2]=c[b+0>>2];c[d+4>>2]=c[b+4>>2];c[d+8>>2]=c[b+8>>2];c[d+12>>2]=c[b+12>>2]}e=e+1|0}f=f+1|0;b=c[g>>2]|0;d=c[j>>2]|0}while((f|0)<(b|0))}else e=2;bw(d+(e<<4)|0,0,b-e<<4|0)|0;c[g>>2]=e;if((e|0)<3?(h=c[j>>2]|0,i=a+456|0,(h|0)!=(i|0)):0){c[i+0>>2]=c[h+0>>2];c[i+4>>2]=c[h+4>>2];c[i+8>>2]=c[h+8>>2];c[i+12>>2]=c[h+12>>2];c[i+16>>2]=c[h+16>>2];c[i+20>>2]=c[h+20>>2];c[i+24>>2]=c[h+24>>2];c[i+28>>2]=c[h+28>>2];ig(a,h);c[j>>2]=i}return}function pl(f){f=f|0;var g=0,h=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;v=i;i=i+16|0;if((i|0)>=(j|0))ba();s=v;p=c[f+16>>2]|0;r=p+152|0;k=((c[p+148>>2]|0)>>>0)/((c[r>>2]|0)>>>0)|0;u=p+20|0;a[u>>0]=d[u>>0]|0|4;o=f+20|0;l=c[o>>2]|0;f=l+-1&0-k;t=f+1|0;h=~f;g=c[p+24>>2]|0;if(l>>>0<=g>>>0){if((f+k|0)>>>0>g>>>0)k=g+1+h|0}else k=l+1+h|0;a:do if((k|0)>0){n=p+56|0;q=p+204|0;m=0;f=0;while(1){h=m+t|0;if((h|0)!=(l|0)?($h(c[n>>2]|0,h)|0)!=0:0){l=Yb[c[8744+132>>2]&63](c[(c[q>>2]|0)+40>>2]|0,h,0)|0;h=el(c[q>>2]|0,h,l)|0;c[s>>2]=h;if(!h)g=0;else{f=(b[h+24>>1]&4)==0?f:1;xg(h);g=0}}else if((h|0)==(((c[2514]|0)/(c[r>>2]|0)|0)+1|0))g=0;else{g=vg(p,h,s,0)|0;if(g)break a;l=c[s>>2]|0;g=ql(l)|0;f=(b[l+24>>1]&4)==0?f:1;xg(l)}m=m+1|0;h=(g|0)==0;if(!((m|0)<(k|0)&h))break;l=c[o>>2]|0}if(h&(f|0)!=0){f=0;do{p=f+t|0;g=Yb[c[8744+132>>2]&63](c[(c[q>>2]|0)+40>>2]|0,p,0)|0;g=el(c[q>>2]|0,p,g)|0;if(g){p=g+24|0;b[p>>1]=e[p>>1]|0|4;xg(g)}f=f+1|0}while((f|0)!=(k|0));g=0}}else g=0;while(0);a[u>>0]=(d[u>>0]|0)&251;i=v;return g|0}function ql(f){f=f|0;var g=0,h=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;B=i;i=i+16|0;if((i|0)>=(j|0))ba();z=B+4|0;q=B;A=c[f+16>>2]|0;u=A+16|0;a:do if((a[u>>0]|0)==2){p=c[A>>2]|0;k=c[A+40>>2]|0;if(!k){do if((c[A+208>>2]|0)==0?(n=A+5|0,(a[n>>0]|0)!=2):0){o=A+24|0;k=c[o>>2]|0;h=mg(512,0)|0;if(!h){c[A+56>>2]=0;g=7;break a}bw(h|0,0,512)|0;c[h>>2]=k;r=A+56|0;c[r>>2]=h;l=A+64|0;m=c[l>>2]|0;do if(!(c[m>>2]|0)){if((a[n>>0]|0)==4){k=m+0|0;h=k+40|0;do{c[k>>2]=0;k=k+4|0}while((k|0)<(h|0));c[m>>2]=14696;t=17;break}h=a[A+12>>0]|0;c[q>>2]=0;if((h<<24>>24==0?(c[o>>2]|0)!=0:0)?(g=c[A+60>>2]|0,g=Yb[c[(c[g>>2]|0)+40>>2]&63](g,20,q)|0,(g|0)!=12):0){k=(g|0)==0;if(k&(c[q>>2]|0)!=0){g=1032;break}if(k)t=15}else t=15;if((t|0)==15)g=pc[c[p+24>>2]&31](p,c[A+172>>2]|0,c[l>>2]|0,h<<24>>24!=0?4110:2054,0)|0;if(!g)t=17}else t=17;while(0);if((t|0)==17){c[A+44>>2]=0;g=A+72|0;a[A+19>>0]=0;c[g+0>>2]=0;c[g+4>>2]=0;c[g+8>>2]=0;c[g+12>>2]=0;g=Oo(A)|0;if(!g)break}ai(c[r>>2]|0);c[r>>2]=0;if(!g){t=20;break a}else break a}while(0);a[u>>0]=3;t=20}else g=k}else t=20;while(0);b:do if((t|0)==20){Po(f);v=A+56|0;w=f+20|0;m=c[w>>2]|0;do if(!($h(c[v>>2]|0,m)|0))if(!(c[A+208>>2]|0)){if(m>>>0<=(c[A+28>>2]|0)>>>0?(y=A+64|0,x=c[y>>2]|0,(c[x>>2]|0)!=0):0){t=A+72|0;n=t;r=c[n>>2]|0;n=c[n+4>>2]|0;s=c[f+4>>2]|0;k=c[A+48>>2]|0;u=A+152|0;l=(c[u>>2]|0)+-200|0;if((l|0)>0)do{k=(d[s+l>>0]|0)+k|0;l=l+-200|0}while((l|0)>0);q=f+24|0;b[q>>1]=e[q>>1]|4;a[z>>0]=m>>>24;q=z+1|0;a[q>>0]=m>>>16;p=z+2|0;a[p>>0]=m>>>8;o=z+3|0;a[o>>0]=m;g=pc[c[(c[x>>2]|0)+12>>2]&31](x,z,4,r,n)|0;if(g)break b;m=c[y>>2]|0;g=c[u>>2]|0;h=fw(r|0,n|0,4,0)|0;l=C;g=pc[c[(c[m>>2]|0)+12>>2]&31](m,s,g,h,l)|0;if(g)break b;r=c[y>>2]|0;g=c[u>>2]|0;g=fw(h|0,l|0,g|0,((g|0)<0)<<31>>31|0)|0;a[z>>0]=k>>>24;a[q>>0]=k>>>16;a[p>>0]=k>>>8;a[o>>0]=k;g=pc[c[(c[r>>2]|0)+12>>2]&31](r,z,4,g,C)|0;if(g)break b;g=(c[u>>2]|0)+8|0;r=t;r=fw(g|0,((g|0)<0)<<31>>31|0,c[r>>2]|0,c[r+4>>2]|0)|0;g=t;c[g>>2]=r;c[g+4>>2]=C;g=A+44|0;c[g>>2]=(c[g>>2]|0)+1;g=Zh(c[v>>2]|0,c[w>>2]|0)|0;g=fl(A,c[w>>2]|0)|0|g;if(!g){t=34;break}else break b}if((a[u>>0]|0)!=4){t=f+24|0;b[t>>1]=e[t>>1]|4;t=34}else t=34}else t=34;else if((c[A+96>>2]|0)!=0?(Qo(f)|0)!=0:0)t=34;else g=0;while(0);if((t|0)==34)if((c[A+96>>2]|0)>0?(Qo(f)|0)!=0:0)g=Ro(f)|0;else g=0;k=A+24|0;h=c[w>>2]|0;if((c[k>>2]|0)>>>0<h>>>0)c[k>>2]=h}while(0);i=B;return g|0}function rl(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+128|0;if((i|0)>=(j|0))baba();p=J+32|0;q=J+28|0;z=J;s=J+40|0;H=J+24|0;c[H>>2]=f;w=(h|0)==0;if(!w){c[H>>2]=f;if(!f){f=0;n=0}else{n=0;m=H;do{x=(c[f+20>>2]|0)>>>0>g>>>0;E=f+12|0;n=n+(x&1^1)|0;m=x?m:E;f=c[E>>2]|0;c[m>>2]=f}while((f|0)!=0);f=c[H>>2]|0}}else n=1;E=e+192|0;c[E>>2]=(c[E>>2]|0)+n;if((c[f+20>>2]|0)==1)ul(f);F=c[e+208>>2]|0;G=c[e+152>>2]|0;r=a[e+10>>0]|0;x=r&255;l=F+40|0;if(!(b[l>>1]|0)){do if(c[(c[c[F+32>>2]>>2]|0)+96>>2]|0){_c(4,p);m=F+43|0;if(!(a[m>>0]|0)){n=c[F+4>>2]|0;n=lc[c[(c[n>>2]|0)+56>>2]&31](n,4,4,10)|0;if((n|0)==5){n=m;y=14;break}else if(n)break}To(F,c[p>>2]|0);if(!(a[m>>0]|0)){n=c[F+4>>2]|0;lc[c[(c[n>>2]|0)+56>>2]&31](n,4,4,9)|0;n=m;y=14}else{n=m;y=14}}else{n=F+43|0;y=14}while(0);if((y|0)==14){if(!(a[n>>0]|0)){E=c[F+4>>2]|0;lc[c[(c[E>>2]|0)+56>>2]&31](E,3,1,5)|0}b[l>>1]=-1;m=0;do{m=m+1|0;n=Io(F,q,1,m)|0}while((n|0)==-1)}if(n)k=n;else y=19}else y=19;a:do if((y|0)==19){E=F+68|0;q=c[E>>2]|0;if(!q){a[s>>0]=55;a[s+1>>0]=127;a[s+2>>0]=6;a[s+3>>0]=-126;a[s+4>>0]=0;a[s+5>>0]=45;a[s+6>>0]=-30;a[s+7>>0]=24;a[s+8>>0]=G>>>24;a[s+9>>0]=G>>>16;a[s+10>>0]=G>>>8;a[s+11>>0]=G;v=c[F+104>>2]|0;a[s+12>>0]=v>>>24;a[s+13>>0]=v>>>16;a[s+14>>0]=v>>>8;a[s+15>>0]=v;if(!v)_c(8,F+84|0);l=F+84|0;n=l;n=d[n>>0]|d[n+1>>0]<<8|d[n+2>>0]<<16|d[n+3>>0]<<24;l=l+4|0;l=d[l>>0]|d[l+1>>0]<<8|d[l+2>>0]<<16|d[l+3>>0]<<24;p=s+16|0;m=p;a[m>>0]=n;a[m+1>>0]=n>>8;a[m+2>>0]=n>>16;a[m+3>>0]=n>>24;p=p+4|0;a[p>>0]=l;a[p+1>>0]=l>>8;a[p+2>>0]=l>>16;a[p+3>>0]=l>>24;p=s+24|0;l=s;m=0;n=0;do{m=m+n+(c[l>>2]|0)|0;n=m+n+(c[l+4>>2]|0)|0;l=l+8|0}while(l>>>0<p>>>0);a[p>>0]=m>>>24;a[s+25>>0]=m>>>16;a[s+26>>0]=m>>>8;a[s+27>>0]=m;a[s+28>>0]=n>>>24;a[s+29>>0]=n>>>16;a[s+30>>0]=n>>>8;a[s+31>>0]=n;c[F+36>>2]=G;a[F+65>>0]=0;c[F+76>>2]=m;c[F+80>>2]=n;a[F+47>>0]=1;m=F+8|0;n=c[m>>2]|0;n=pc[c[(c[n>>2]|0)+12>>2]&31](n,s,32,0,0)|0;if(n){k=n;break}if((a[F+48>>0]|0)!=0&r<<24>>24!=0?(k=c[m>>2]|0,k=nc[c[(c[k>>2]|0)+20>>2]&127](k,x&19)|0,(k|0)!=0):0)break}else m=F+8|0;c[z>>2]=F;s=c[m>>2]|0;c[z+4>>2]=s;t=z+8|0;u=t;c[u>>2]=0;c[u+4>>2]=0;c[z+16>>2]=x;c[z+20>>2]=G;u=G+24|0;v=((u|0)<0)<<31>>31;n=ow(q|0,0,u|0,v|0)|0;n=fw(n|0,C|0,32,0)|0;k=C;if(!f){l=n;r=0}else{o=k;l=q;r=f;while(1){q=l+1|0;if(w)l=0;else l=(c[r+12>>2]|0)==0?g:0;k=Uo(z,r,l,n,o)|0;if(k)break a;n=fw(n|0,o|0,u|0,v|0)|0;k=C;p=c[r+12>>2]|0;if(!p){l=n;break}else{o=k;l=q;r=p}}}w=(h|0)!=0;do if(!((x&32|0)==0|w^1)){if(!(a[F+49>>0]|0)){m=0;k=nc[c[(c[s>>2]|0)+20>>2]&127](s,x&19)|0;break}n=c[m>>2]|0;m=c[(c[n>>2]|0)+44>>2]|0;if(m){n=hc[m&127](n)|0;if((n|0)<32){m=512;n=0}else y=37}else{n=4096;y=37}if((y|0)==37){y=(n|0)>65536;m=y?65536:n;n=y?0:((n|0)<0)<<31>>31}y=fw(l|0,k|0,-1,-1)|0;y=fw(y|0,C|0,m|0,n|0)|0;p=C;o=nw(y|0,p|0,m|0,n|0)|0;o=$v(y|0,p|0,o|0,C|0)|0;p=C;y=t;c[y>>2]=o;c[y+4>>2]=p;if((k|0)<(p|0)|(k|0)==(p|0)&l>>>0<o>>>0){n=k;m=0;while(1){k=Uo(z,r,g,l,n)|0;if(k)break a;l=fw(l|0,n|0,u|0,v|0)|0;n=C;m=m+1|0;if(!((n|0)<(p|0)|(n|0)==(p|0)&l>>>0<o>>>0)){k=0;break}}}else{m=0;k=0}}else{m=0;k=0}while(0);if((w?(A=F+47|0,(a[A>>0]|0)!=0):0)?(D=F+16|0,B=c[D>>2]|0,D=c[D+4>>2]|0,(D|0)>-1|(D|0)==-1&B>>>0>4294967295):0){h=ow(m+q|0,0,u|0,v|0)|0;h=fw(h|0,C|0,32,0)|0;z=C;y=(z|0)>(D|0)|(z|0)==(D|0)&h>>>0>B>>>0;Vo(F,y?h:B,y?z:D);a[A>>0]=0}l=c[E>>2]|0;if((f|0)!=0&(k|0)==0)do{l=l+1|0;k=Wo(F,l,c[f+20>>2]|0)|0;f=c[f+12>>2]|0}while((f|0)!=0&(k|0)==0);f=(k|0)==0;if(f&(m|0)>0){n=r+20|0;do{l=l+1|0;m=m+-1|0;k=Wo(F,l,c[n>>2]|0)|0;f=(k|0)==0}while(f&(m|0)>0)}if(f){b[F+66>>1]=G&65280|G>>>16;c[E>>2]=l;if(w){E=F+60|0;c[E>>2]=(c[E>>2]|0)+1;c[F+72>>2]=g;Xo(F);c[F+12>>2]=l}}else if(k)break;l=e+88|0;k=c[l>>2]|0;if((k|0)!=0?(I=c[H>>2]|0,(I|0)!=0):0){f=k;k=I;while(1){Yo(f,c[k+20>>2]|0,c[k+4>>2]|0);k=c[k+12>>2]|0;if(!k){k=0;break a}f=c[l>>2]|0}}else k=0}while(0);i=J;return k|0}function tl(d){d=d|0;var f=0,g=0;f=d+24|0;if(((b[f>>1]&2)!=0?(Mo(d,1),b[f>>1]=e[f>>1]&65529,(b[d+26>>1]|0)==0):0)?(g=c[d+28>>2]|0,(a[g+28>>0]|0)!=0):0){if((c[d+20>>2]|0)==1)c[g+44>>2]=0;ic[c[8744+136>>2]&63](c[g+40>>2]|0,c[d>>2]|0,0)}return}function ul(b){b=b|0;var e=0,f=0,g=0,h=0,i=0;f=c[b+16>>2]|0;f=((d[f+105>>0]|0)<<16|(d[f+104>>0]|0)<<24|(d[f+106>>0]|0)<<8|(d[f+107>>0]|0))+1|0;b=b+4|0;e=c[b>>2]|0;i=f>>>24&255;a[e+24>>0]=i;h=f>>>16&255;a[e+25>>0]=h;g=f>>>8&255;a[e+26>>0]=g;f=f&255;a[e+27>>0]=f;e=c[b>>2]|0;a[e+92>>0]=i;a[e+93>>0]=h;a[e+94>>0]=g;a[e+95>>0]=f;b=c[b>>2]|0;a[b+96>>0]=0;a[b+97>>0]=45;a[b+98>>0]=-26;a[b+99>>0]=9;return}function vl(f,g){f=f|0;g=g|0;var h=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;v=i;i=i+32|0;if((i|0)>=(j|0))ba();o=v+16|0;r=v;k=Zo(f)|0;a:do if(!k){do if(!(a[f+7>>0]|0)){t=f+64|0;if((c[c[t>>2]>>2]|0)!=0?(a[f+5>>0]|0)!=4:0){n=c[f+60>>2]|0;n=hc[c[(c[n>>2]|0)+48>>2]&127](n)|0;s=(n&512|0)==0;if(s){l=r;c[l>>2]=-117058087;c[l+4>>2]=-681336544;l=c[f+44>>2]|0;a[r+8>>0]=l>>>24;a[r+9>>0]=l>>>16;a[r+10>>0]=l>>>8;a[r+11>>0]=l;l=f+72|0;k=c[l>>2]|0;l=c[l+4>>2]|0;if((k|0)==0&(l|0)==0){l=0;k=0}else{k=fw(k|0,l|0,-1,-1)|0;l=c[f+148>>2]|0;k=mw(k|0,C|0,l|0,0)|0;k=fw(k|0,C|0,1,0)|0;l=ow(k|0,C|0,l|0,0)|0;k=C}m=c[t>>2]|0;m=pc[c[(c[m>>2]|0)+8>>2]&31](m,o,8,l,k)|0;if(!m){if(!(Vv(o,14808,8)|0)){p=c[t>>2]|0;p=pc[c[(c[p>>2]|0)+12>>2]&31](p,14976,1,l,k)|0;q=12}}else{p=m;q=12}if((q|0)==12?!((p|0)==0|(p|0)==522):0){h=p;break a}k=n&1024;if((a[f+8>>0]|0)!=0&(k|0)==0?(h=c[t>>2]|0,h=nc[c[(c[h>>2]|0)+20>>2]&127](h,d[f+11>>0]|0)|0,(h|0)!=0):0)break a;q=c[t>>2]|0;h=f+80|0;h=pc[c[(c[q>>2]|0)+12>>2]&31](q,r,12,c[h>>2]|0,c[h+4>>2]|0)|0;if(h)break a}else k=n&1024;if((k|0)==0?(r=c[t>>2]|0,u=a[f+11>>0]|0,u=nc[c[(c[r>>2]|0)+20>>2]&127](r,(u<<24>>24==3?16:0)|u&255)|0,(u|0)!=0):0){h=u;break a}p=f+72|0;q=c[p+4>>2]|0;r=f+80|0;c[r>>2]=c[p>>2];c[r+4>>2]=q;if((g|0)==0|s^1)break;c[f+44>>2]=0;h=Oo(f)|0;if(!h)break;else break a}q=f+72|0;r=c[q+4>>2]|0;s=f+80|0;c[s>>2]=c[q>>2];c[s+4>>2]=r}while(0);k=c[f+204>>2]|0;h=c[k>>2]|0;if(h)do{s=h+24|0;b[s>>1]=e[s>>1]&65531;h=c[h+32>>2]|0}while((h|0)!=0);c[k+8>>2]=c[k+4>>2];a[f+16>>0]=4;h=0}else h=k;while(0);i=v;return h|0}function wl(d,e){d=d|0;e=e|0;var f=0,g=0,h=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;v=i;i=i+16|0;if((i|0)>=(j|0))ba();l=v;u=d+60|0;g=c[u>>2]|0;if(!((c[g>>2]|0)==0?(f=c[d>>2]|0,f=pc[c[f+24>>2]&31](f,0,g,c[d+144>>2]&556897|30,0)|0,(f|0)!=0):0)){g=d+36|0;f=c[g>>2]|0;h=d+24|0;k=c[h>>2]|0;do if(f>>>0<k>>>0){if((c[e+12>>2]|0)==0?(c[e+20>>2]|0)>>>0<=f>>>0:0)break;n=c[d+152>>2]|0;n=ow(k|0,0,n|0,((n|0)<0)<<31>>31|0)|0;o=l;c[o>>2]=n;c[o+4>>2]=C;o=c[u>>2]|0;Yb[c[(c[o>>2]|0)+40>>2]&63](o,5,l)|0;c[g>>2]=c[h>>2]}while(0);if(!e)f=0;else{p=d+24|0;q=d+152|0;r=d+104|0;s=d+32|0;t=d+192|0;o=d+88|0;do{n=c[e+20>>2]|0;if(n>>>0<=(c[p>>2]|0)>>>0?(b[e+24>>1]&32)==0:0){l=c[q>>2]|0;d=ow(l|0,((l|0)<0)<<31>>31|0,n+-1|0,0)|0;k=C;h=(n|0)==1;if(h){ul(e);l=c[q>>2]|0}m=e+4|0;g=c[m>>2]|0;f=c[u>>2]|0;f=pc[c[(c[f>>2]|0)+12>>2]&31](f,g,l,d,k)|0;if(h){d=r+0|0;l=g+24|0;k=d+16|0;do{a[d>>0]=a[l>>0]|0;d=d+1|0;l=l+1|0}while((d|0)<(k|0))}if(n>>>0>(c[s>>2]|0)>>>0)c[s>>2]=n;c[t>>2]=(c[t>>2]|0)+1;Yo(c[o>>2]|0,n,c[m>>2]|0)}else f=0;e=c[e+12>>2]|0}while((f|0)==0&(e|0)!=0)}}i=v;return f|0}function xl(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();m=q;n=b+60|0;f=c[n>>2]|0;g=c[f>>2]|0;do if((g|0)!=0?((a[b+16>>0]|0)+-1&255)>2:0){o=c[b+152>>2]|0;g=nc[c[g+24>>2]&127](f,m)|0;h=((o|0)<0)<<31>>31;k=ow(o|0,h|0,d|0,0)|0;l=C;if(!g){f=m;g=c[f>>2]|0;f=c[f+4>>2]|0;if((g|0)==(k|0)&(f|0)==(l|0))e=0;else{if(!((f|0)>(l|0)|(f|0)==(l|0)&g>>>0>k>>>0)){m=fw(g|0,f|0,o|0,h|0)|0;g=C;if(!((g|0)>(l|0)|(g|0)==(l|0)&m>>>0>k>>>0)){p=c[b+200>>2]|0;bw(p|0,0,o|0)|0;n=c[n>>2]|0;e=$v(k|0,l|0,o|0,h|0)|0;e=pc[c[(c[n>>2]|0)+12>>2]&31](n,p,o,e,C)|0;p=9}}else{e=c[n>>2]|0;e=Yb[c[(c[e>>2]|0)+16>>2]&63](e,k,l)|0;p=9}if((p|0)==9?(e|0)!=0:0)break;c[b+32>>2]=d;e=0}}else e=g}else e=0;while(0);i=q;return e|0}
6 function Vr(f,g,k,l,m){f=f|0;g=g|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))ba();u=x;v=x+8|0;c[v>>2]=0;a:do if(!g){c[m>>2]=0;n=0}else{o=a[g>>0]|0;if(o<<24>>24==-98)do{g=c[g+12>>2]|0;o=a[g>>0]|0}while(o<<24>>24==-98);if(o<<24>>24==-97)q=d[g+38>>0]|0;else q=o&255;if((q|0)==38){p=Tq(c[g+8>>2]|0,0)|0;n=Vr(f,c[g+12>>2]|0,k,p,m)|0;o=c[m>>2]|0;if(!o)break;cm(o,p,1);bm(c[m>>2]|0,l,1);break}else if((q|0)==157){g=c[g+12>>2]|0;q=a[g>>0]|0;if((q&-2)<<24>>24==-124){p=-1;o=-1;t=q&255;q=26016;w=12}else w=30}else{p=1;o=0;t=q;q=10360;w=12}b:do if((w|0)==12){c:do switch(t|0){case 134:{n=ih(f,40,0)|0;if(!n){c[v>>2]=n;break c}r=n+0|0;s=r+40|0;do{a[r>>0]=0;r=r+1|0}while((r|0)<(s|0));b[n+8>>1]=1;c[n+32>>2]=f;c[v>>2]=n;o=(c[g+8>>2]|0)+2|0;g=o;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;v=(g-o&1073741823)+-1|0;Tg(n,Ut(f,o,v)|0,(v|0)/2|0,0,75)|0;o=n;n=0;break b}case 157:{g=c[g+12>>2]|0;w=30;break b}case 101:{n=ih(f,40,0)|0;if(!n){c[v>>2]=n;break c}else{r=n+0|0;s=r+40|0;do{a[r>>0]=0;r=r+1|0}while((r|0)<(s|0));b[n+8>>1]=1;c[n+32>>2]=f;c[v>>2]=n;o=n;n=0;break b}}case 97:case 132:case 133:{n=ih(f,40,0)|0;if(!n){c[v>>2]=n;break c}r=n+0|0;s=r+40|0;do{a[r>>0]=0;r=r+1|0}while((r|0)<(s|0));b[n+8>>1]=1;c[n+32>>2]=f;c[v>>2]=n;do if(!(c[g+4>>2]&1024)){p=c[g+8>>2]|0;c[u>>2]=q;c[u+4>>2]=p;p=qh(f,19456,u)|0;if(!p)break c;if(n)Tg(n,p,-1,1,75)|0}else{q=c[g+8>>2]|0;q=ow(q|0,((q|0)<0)<<31>>31|0,p|0,o|0)|0;p=C;g=n+8|0;if(!(b[g>>1]&9312)){v=n;c[v>>2]=q;c[v+4>>2]=p;b[g>>1]=4;break}else{Vg(n,q,p);break}}while(0);if((t&-2|0)==132&l<<24>>24==65)bm(n,67,1);else bm(n,l,1);o=n+8|0;g=e[o>>1]|0;if(g&12)b[o>>1]=g&65533;if(k<<24>>24==1){o=n;n=0;break b}o=n;n=Ul(n,k&255)|0;break b}default:{o=0;n=0;break b}}while(0);a[f+65>>0]=1;ig(f,0);Ih(n);n=7;break a}while(0);if((w|0)==30){u=(Vr(f,g,k,l,v)|0)==0;o=c[v>>2]|0;if(u&(o|0)!=0){kp(o);p=o+8|0;g=b[p>>1]|0;do if(!(g&8)){q=o;n=c[q>>2]|0;q=c[q+4>>2]|0;if((n|0)==0&(q|0)==-2147483648){h[o>>3]=9223372036854775808.0;b[p>>1]=g&48640|8;break}else{u=$v(0,0,n|0,q|0)|0;v=o;c[v>>2]=u;c[v+4>>2]=C;break}}else h[o>>3]=-+h[o>>3];while(0);bm(o,l,k);n=0}else n=0}c[m>>2]=o}while(0);i=x;return n|0}function Wr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;do if((d|0)!=0?(g=b+19|0,h=a[g>>0]|0,(h&255)<8):0){f=0;e=b+116|0;while(1){if((c[e+12>>2]|0)==(d|0)){f=5;break}f=f+1|0;if((f|0)>=10){f=7;break}else e=e+20|0}if((f|0)==5){a[e+6>>0]=1;break}else if((f|0)==7){a[g>>0]=h+1<<24>>24;c[b+((h&255)<<2)+24>>2]=d;break}}while(0);return}function Xr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+32|0;if((i|0)>=(j|0))ba();n=o;e=b+484|0;l=c[e>>2]|0;m=c[b>>2]|0;do if((l|0)!=0?(Zr(b),c[b+512>>2]=0,(c[l+52>>2]|0)>=1):0){if(a[m+145>>0]|0)if(!(Ek((c[l+68>>2]|0)+8|0,c[l>>2]|0,l)|0)){c[e>>2]=0;break}else{a[m+65>>0]=1;break}if(d)c[b+500>>2]=(c[d>>2]|0)-(c[b+496>>2]|0)+(c[d+4>>2]|0);c[n>>2]=b+496;k=qh(m,25256,n)|0;d=c[l+68>>2]|0;a:do if(d){f=c[m+20>>2]|0;if((f|0)>0){g=c[m+16>>2]|0;h=0;while(1){e=h+1|0;if((c[g+(h<<4)+12>>2]|0)==(d|0)){e=h;break a}if((e|0)<(f|0))h=e;else break}}else e=0}else e=-1e6;while(0);g=c[l>>2]|0;h=c[b+384>>2]|0;c[n>>2]=c[(c[m+16>>2]|0)+(e<<4)>>2];c[n+4>>2]=(e|0)==1?13184:13208;c[n+8>>2]=g;c[n+12>>2]=g;c[n+16>>2]=k;c[n+20>>2]=h;xr(b,25280,n);ig(m,k);k=Kq(b)|0;zr(b,e);sh(k,144,0,0,0)|0;c[n>>2]=c[l>>2];Er(k,e,qh(m,25368,n)|0);b=b+72|0;n=(c[b>>2]|0)+1|0;c[b>>2]=n;b=c[l>>2]|0;th(k,sh(k,97,0,n,0)|0,b,0);sh(k,147,e,n,0)|0}while(0);i=o;return}function Yr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=b+52|0;i=c[h>>2]|0;e=i+1|0;c[h>>2]=e;g=(i<<2)+8|0;f=b+56|0;g=no(a,c[f>>2]|0,g,((g|0)<0)<<31>>31)|0;if(!g){if((i|0)>0){b=0;do{ig(a,c[(c[f>>2]|0)+(b<<2)>>2]|0);b=b+1|0}while((b|0)!=(i|0))}ig(a,d);ig(a,c[f>>2]|0);c[h>>2]=0}else{c[g+(i<<2)>>2]=d;c[g+(e<<2)>>2]=0}c[f>>2]=g;return}function Zr(b){b=b|0;var d=0,e=0,f=0,g=0;d=c[b+512>>2]|0;if((d|0)!=0?(g=c[b+484>>2]|0,(g|0)!=0):0){e=c[b+516>>2]|0;f=c[b>>2]|0;b=fw(e|0,((e|0)<0)<<31>>31|0,1,0)|0;b=ih(f,b,C)|0;if(!b)b=0;else{gw(b|0,d|0,e|0)|0;a[b+e>>0]=0}Yr(f,g,b)}return}function _r(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();l=o;m=c[b>>2]|0;n=Sq(m,e)|0;k=(d|0)!=0;if((n|0)!=0&k?(h=c[d>>2]|0,(h|0)>0):0){e=h;h=0;do{if(!($c(n,c[d+(h<<4)+8>>2]|0)|0)){c[l>>2]=n;ph(b,25184,l);e=c[d>>2]|0}h=h+1|0}while((h|0)<(e|0))}if(k){h=(c[d>>2]<<4)+24|0;h=no(m,d,h,((h|0)<0)<<31>>31)|0;if(!h)e=10;else{d=h;e=11}}else{e=ih(m,24,0)|0;if(!e)e=10;else{h=e+0|0;d=h+24|0;do{a[h>>0]=0;h=h+1|0}while((h|0)<(d|0));d=e;e=11}}if((e|0)==10){Jk(m,f);Ik(m,g,1);ig(m,n)}else if((e|0)==11){m=d+8|0;c[m+(c[d>>2]<<4)+8>>2]=g;g=c[d>>2]|0;c[m+(g<<4)+4>>2]=f;c[m+(g<<4)>>2]=n;c[m+(g<<4)+12>>2]=0;c[d>>2]=g+1}i=o;return d|0}function $r(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+96|0;if((i|0)>=(j|0))ba();m=n+48|0;f=n;g=c[c[b+32>>2]>>2]|0;h=m+0|0;k=g+0|0;l=h+48|0;do{a[h>>0]=a[k>>0]|0;h=h+1|0;k=k+1|0}while((h|0)<(l|0));if((a[b+43>>0]|0)!=2){h=c[b+4>>2]|0;_b[c[(c[h>>2]|0)+60>>2]&31](h)}h=f+0|0;k=g+48|0;l=h+48|0;do{a[h>>0]=a[k>>0]|0;h=h+1|0;k=k+1|0}while((h|0)<(l|0));if((Vv(m,f,48)|0)==0?(a[m+12>>0]|0)!=0:0){k=m+40|0;l=m;g=0;f=0;do{g=g+f+(c[l>>2]|0)|0;f=g+f+(c[l+4>>2]|0)|0;l=l+8|0}while(l>>>0<k>>>0);if((g|0)==(c[k>>2]|0)?(f|0)==(c[m+44>>2]|0):0){f=b+52|0;if(!(Vv(f,m,48)|0))f=0;else{c[d>>2]=1;h=f+0|0;k=m+0|0;l=h+48|0;do{c[h>>2]=c[k>>2];h=h+4|0;k=k+4|0}while((h|0)<(l|0));f=e[b+66>>1]|0;c[b+36>>2]=f<<16&65536|f&65024;f=0}}else f=1}else f=1;i=n;return f|0}function as(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;b=pc[c[(c[a>>2]|0)+8>>2]&31](a,g,4,b,e)|0;if(!b)c[f>>2]=(d[g+1>>0]|0)<<16|(d[g>>0]|0)<<24|(d[g+2>>0]|0)<<8|(d[g+3>>0]|0);i=h;return b|0}function bs(a,b){a=a|0;b=b|0;var c=0,d=0,f=0;if(b>>>0<0|(b|0)==0&a>>>0<8)if(b>>>0<0|(b|0)==0&a>>>0<2)a=0;else{c=40;do{c=(c&65535)+65526|0;a=ew(a|0,b|0,1)|0;b=C}while(b>>>0<0|(b|0)==0&a>>>0<8);c=c&65535;d=11}else{if(b>>>0>0|(b|0)==0&a>>>0>255){f=a;d=b;c=40;while(1){c=(c&65535)+40|0;a=iw(f|0,d|0,4)|0;b=C;if(d>>>0>0|(d|0)==0&f>>>0>4095){f=a;d=b}else break}c=c&65535}else c=40;if(b>>>0>0|(b|0)==0&a>>>0>15){f=a;while(1){c=(c&65535)+10&65535;a=iw(f|0,b|0,1)|0;if(b>>>0>0|(b|0)==0&f>>>0>31){f=a;b=C}else break}d=11}else d=11}if((d|0)==11)a=(c&65535)+65526+(e[13496+((a&7)<<1)>>1]|0)&65535;return a|0}function cs(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;k=c[b+408>>2]|0;k=(k|0)==0?b:k;i=k+396|0;h=c[i>>2]|0;j=c[k+400>>2]|0;a:do if((h|0)>0){b=0;while(1){if((c[j+(b<<4)>>2]|0)==(d|0)?(c[j+(b<<4)+4>>2]|0)==(e|0):0)break;b=b+1|0;if((b|0)>=(h|0)){l=8;break a}}b=j+(b<<4)+8|0;if(!(a[b>>0]|0))h=f<<24>>24!=0&1;else h=1;a[b>>0]=h}else l=8;while(0);do if((l|0)==8){b=(h<<4)+16|0;b=Sl(c[k>>2]|0,j,b,((b|0)<0)<<31>>31)|0;c[k+400>>2]=b;if(!b){c[i>>2]=0;a[(c[k>>2]|0)+65>>0]=1;break}else{h=c[i>>2]|0;c[i>>2]=h+1;c[b+(h<<4)>>2]=d;c[b+(h<<4)+4>>2]=e;a[b+(h<<4)+8>>0]=f;c[b+(h<<4)+12>>2]=g;break}}while(0);return}function ds(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=b[f+48>>1]|0;l=i&65535;h=e[f+46>>1]|0;m=d+64|0;if(!(c[m>>2]|0)){g=c[d>>2]|0;if(!(a[f+51>>0]&8))k=Ns(g,l,0)|0;else k=Ns(g,h,l-h|0)|0;if(k){if(i<<16>>16){j=f+32|0;f=f+28|0;h=k+16|0;g=0;do{i=c[(c[j>>2]|0)+(g<<2)>>2]|0;if(!(Wv(i,11152)|0))i=0;else i=_q(d,i)|0;c[k+(g<<2)+20>>2]=i;a[(c[h>>2]|0)+g>>0]=a[(c[f>>2]|0)+g>>0]|0;g=g+1|0}while((g|0)<(l|0))}g=(c[m>>2]|0)==0;if(!g){g=(c[k>>2]|0)+-1|0;c[k>>2]=g;if(!g){Sc(k);g=0}else g=0}else g=g?k:0}else g=0}else g=0;return g|0}function es(d,f,g){d=d|0;f=f|0;g=g|0;var h=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;F=i;i=i+112|0;if((i|0)>=(j|0))baba();k=p;o=p+4|0;do if(!d)f=0;else{l=c[a>>2]|0;n=d+24|0;h=l+460|0;g=(c[h>>2]|0)+(c[n>>2]|0)|0;f=c[(c[l>>2]|0)+100>>2]|0;if((f|0)<(g|0)){c[k>>2]=f;ph(l,27152,k);f=1;break}c[h>>2]=g;k=a+28|0;h=e[k>>1]|0;m=h&4098;b[k>>1]=h&61437;c[o+0>>2]=0;c[o+4>>2]=0;c[o+8>>2]=0;c[o+12>>2]=0;c[o+16>>2]=0;c[o+20>>2]=0;c[o>>2]=82;c[o+4>>2]=83;h=o+12|0;c[h>>2]=l;c[o+24>>2]=a;ns(o,d)|0;o=(c[a>>2]|0)+460|0;c[o>>2]=(c[o>>2]|0)-(c[n>>2]|0);if(!((c[a+24>>2]|0)<=0?(c[(c[h>>2]|0)+64>>2]|0)<=0:0)){o=d+4|0;c[o>>2]=c[o>>2]|8}h=b[k>>1]|0;g=d+4|0;f=c[g>>2]|0;if(h&2){f=f|2;c[g>>2]=f}b[k>>1]=h&65535|m;f=f>>>3&1}while(0);i=p;return f|0}function is(a){a=a|0;var e=0,f=0,g=0,h=0,i=0,j=0;i=c[(c[a+12>>2]|0)+4>>2]|0;f=b[a+48>>1]|0;if(!(f<<16>>16)){e=0;f=0}else{j=c[a+4>>2]|0;g=f&65535;h=0;e=0;do{f=b[j+(h<<1)>>1]|0;if(f<<16>>16<0)f=1;else f=d[i+((f<<16>>16)*24|0)+22>>0]|0;e=f+e|0;h=h+1|0}while((h|0)<(g|0));e=e<<2;f=0}b[a+44>>1]=bs(e,f)|0;return}function js(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;j=c[d>>2]|0;g=j+24|0;i=c[g>>2]|0;c[g>>2]=i&-97|64;zs(d,e,0);if(!(c[d+64>>2]|0)){while(1){f=c[e+52>>2]|0;if(!f){h=e;break}else e=f}c[g>>2]=i;e=ih(j,76,0)|0;if(e){f=e+0|0;g=f+76|0;do{a[f>>0]=0;f=f+1|0}while((f|0)<(g|0));b[e+40>>1]=1;c[e>>2]=0;b[e+28>>1]=200;eu(d,c[h>>2]|0,e+38|0,e+4|0);fu(d,e,h);b[e+36>>1]=-1;if(a[j+65>>0]|0){gg(j,e);e=0}}else e=0}else e=0;return e|0}function ks(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=c[d>>2]|0;g=a[e>>0]|0;a:do if(!(g<<24>>24)){i=0;h=0}else{i=g;j=0;while(1){h=j+1|0;if(!(i<<24>>24==95?1:(a[10368+(i&255)>>0]&6)!=0)){h=j;break a}i=a[e+h>>0]|0;if(!(i<<24>>24)){i=0;break}else j=h}}while(0);if((((g&255)+-48|0)>>>0>=10?(bi(e,h)|0)==27:0)?!((h|0)==0|i<<24>>24!=0):0)k=0;else{a[b+f>>0]=34;k=1;g=a[e>>0]|0;f=f+1|0}if(g<<24>>24){h=e;j=0;do{i=f+1|0;a[b+f>>0]=g;if((a[h>>0]|0)==34){a[b+i>>0]=34;f=f+2|0}else f=i;j=j+1|0;h=e+j|0;g=a[h>>0]|0}while(g<<24>>24!=0)}if(k){a[b+f>>0]=34;f=f+1|0}a[b+f>>0]=0;c[d>>2]=f;return}function ls(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;f=b+20|0;g=a[f>>0]|0;if(g<<24>>24==2?(c[e+4>>2]&1|0)!=0:0){a[f>>0]=0;f=2}else h=4;a:do if((h|0)==4)switch(d[e>>0]|0|0){case 135:if(g<<24>>24==5){a[e>>0]=101;f=0;break a}else if(g<<24>>24==4){a[f>>0]=0;f=2;break a}else{f=0;break a}case 153:{if((g&255)>3){f=0;break a}if(c[e+4>>2]&524288){f=0;break a}a[f>>0]=0;f=2;break a}case 156:case 155:case 154:case 27:{if(g<<24>>24==3?(c[e+28>>2]|0)==(c[b+24>>2]|0):0){f=0;break a}a[f>>0]=0;f=2;break a}default:{f=0;break a}}while(0);return f|0}function ms(b,c){b=b|0;c=c|0;a[b+20>>0]=0;return 2}function ns(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if(!b)b=0;else{d=nc[c[a>>2]&127](a,b)|0;do if((d|0)==0?(e=b+4|0,(c[e>>2]&16384|0)==0):0){if(ns(a,c[b+12>>2]|0)|0){b=2;break a}if(ns(a,c[b+16>>2]|0)|0){b=2;break a}b=b+20|0;if(!(c[e>>2]&2048))if(!(hu(a,c[b>>2]|0)|0))break;else{b=2;break a}else if(!(gu(a,c[b>>2]|0)|0))break;else{b=2;break a}}while(0);b=d&2}while(0);return b|0}function os(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;do if(e)if(!f)g=e;else{if((iu(e)|0)==0?(iu(f)|0)==0:0){g=ih(d,48,0)|0;if(g){h=g+0|0;i=h+48|0;do{a[h>>0]=0;h=h+1|0}while((h|0)<(i|0));a[g>>0]=72;b[g+34>>1]=-1;c[g+24>>2]=1}ps(d,g,e,f);break}Ck(d,e);Ck(d,f);g=jr(d,132,20616,0)|0}else g=f;while(0);return g|0}function ps(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;if(!b){Ck(a,d);Ck(a,e)}else{if(e){c[b+16>>2]=e;a=b+4|0;c[a>>2]=c[a>>2]|c[e+4>>2]&2097408}if(d){c[b+12>>2]=d;a=b+4|0;c[a>>2]=c[a>>2]|c[d+4>>2]&2097408}Et(b)}return}function qs(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;h=d<<16>>16;j=(h<<2)+63&-8;k=h<<1;l=k+2|0;i=(h+7+k+l&-8)+j|0;g=i+e|0;e=ih(a,g,((g|0)<0)<<31>>31)|0;if(e){bw(e|0,0,g|0)|0;c[e+32>>2]=e+56;c[e+8>>2]=e+j;g=j+l|0;c[e+4>>2]=e+g;c[e+28>>2]=e+(g+k);b[e+48>>1]=d;b[e+46>>1]=h+65535;c[f>>2]=e+i}return e|0}function rs(b,d,f){b=b|0;d=d|0;f=f|0;var g=0,h=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;z=i;i=i+16|0;if((i|0)>=(j|0))ba();t=z;p=c[d+12>>2]|0;o=b+68|0;w=c[o>>2]|0;y=w+1|0;c[o>>2]=w+2;n=c[b>>2]|0;l=c[d+24>>2]|0;a:do if(l){h=c[n+20>>2]|0;if((h|0)>0){g=c[n+16>>2]|0;m=0;while(1){k=m+1|0;if((c[g+(m<<4)+12>>2]|0)==(l|0)){k=m;break a}if((k|0)<(h|0))m=k;else break}}else k=0}else k=-1e6;while(0);if((Oq(b,27,c[d>>2]|0,0,c[(c[n+16>>2]|0)+(k<<4)>>2]|0)|0)==0?(cs(b,k,c[p+32>>2]|0,1,c[p>>2]|0),x=Kq(b)|0,(x|0)!=0):0){if((f|0)>-1)q=f;else q=c[d+40>>2]|0;u=ds(b,d)|0;v=c[o>>2]|0;c[o>>2]=v+1;s=d+46|0;h=e[s>>1]|0;if(u)c[u>>2]=(c[u>>2]|0)+1;th(x,sh(x,58,v,0,h)|0,u,-6);Mq(b,w,k,p,54);n=sh(x,108,w,0,0)|0;h=b+19|0;g=a[h>>0]|0;if(!(g<<24>>24)){p=b+72|0;r=(c[p>>2]|0)+1|0;c[p>>2]=r}else{r=g+-1<<24>>24;a[h>>0]=r;r=c[b+((r&255)<<2)+24>>2]|0}Lt(b,d,w,r,0,t,0,0)|0;sh(x,109,v,r,0)|0;Mt(b,c[t>>2]|0);sh(x,9,w,n+1|0,0)|0;p=x+32|0;m=c[p>>2]|0;if(m>>>0>n>>>0)c[(c[x+4>>2]|0)+(n*20|0)+8>>2]=m;l=x+24|0;c[(c[l>>2]|0)+88>>2]=m+-1;if((f|0)<0)sh(x,118,q,k,0)|0;th(x,sh(x,55,y,q,k)|0,u,-6);o=x+4|0;h=c[o>>2]|0;if(h)a[h+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=(f>>31)+4&252|1;n=sh(x,106,v,0,0)|0;h=c[p>>2]|0;if((a[d+50>>0]|0)!=0&(u|0)!=0){m=h+3|0;sh(x,16,0,m,0)|0;h=c[p>>2]|0;q=e[s>>1]|0;th(x,sh(x,99,v,m,r)|0,q,-14);ju(b,2,d)}sh(x,100,v,r,y)|0;sh(x,110,y,r,1)|0;g=c[o>>2]|0;if(g)a[g+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=16;Wr(b,r);sh(x,5,v,h,0)|0;g=c[p>>2]|0;if(g>>>0>n>>>0)c[(c[o>>2]|0)+(n*20|0)+8>>2]=g;c[(c[l>>2]|0)+88>>2]=g+-1;sh(x,61,w,0,0)|0;sh(x,61,y,0,0)|0;sh(x,61,v,0,0)|0}i=z;return}function ss(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();q=r;p=c[e>>2]|0;if(!g){g=Un(p,f,h,0)|0;if(!g)n=4;else n=3}else n=3;if((n|0)==3)if(!(c[g+12>>2]|0))n=4;else n=14;if((n|0)==4){l=f&255;k=p+224|0;if(c[k>>2]|0){m=gh(p,h)|0;if(m){mc[c[k>>2]&15](c[p+232>>2]|0,p,l,m);ig(p,m);n=7}}else n=7;if((n|0)==7?(o=p+228|0,(c[o>>2]|0)!=0):0){k=ih(p,40,0)|0;if(!k)k=0;else{m=k+0|0;l=m+40|0;do{a[m>>0]=0;m=m+1|0}while((m|0)<(l|0));b[k+8>>1]=1;c[k+32>>2]=p;Tg(k,h,-1,1,0)|0}g=Og(k,2)|0;if(g)mc[c[o>>2]&15](c[p+232>>2]|0,p,d[p+62>>0]|0,g);Ih(k)}g=Un(p,f,h,0)|0;if(!g)n=19;else n=14}a:do if((n|0)==14)if(!(c[g+12>>2]|0)){l=c[g>>2]|0;m=0;while(1){k=Un(p,a[26816+m>>0]|0,l,0)|0;m=m+1|0;if(c[k+12>>2]|0)break;if((m|0)>=3){n=19;break a}}c[g+0>>2]=c[k+0>>2];c[g+4>>2]=c[k+4>>2];c[g+8>>2]=c[k+8>>2];c[g+12>>2]=c[k+12>>2];c[g+16>>2]=0}while(0);if((n|0)==19){c[q>>2]=h;ph(e,26784,q);g=0}i=r;return g|0}function ts(a){a=a|0;var b=0,d=0;a=c[a+24>>2]|0;d=a+108|0;b=c[d>>2]|0;c[d>>2]=b+1;if(!(b+-1&b)){d=a+112|0;a=Sl(c[a>>2]|0,c[d>>2]|0,b<<3|4,0)|0;c[d>>2]=a}else a=c[a+112>>2]|0;if(a)c[a+(b<<2)>>2]=-1;return ~b|0}function us(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;if(e){g=c[e>>2]|0;if((g|0)>0){h=(g*72|0)+8|0;g=h;h=((h|0)<0)<<31>>31}else{g=80;h=0}g=ih(d,g,h)|0;if(g){h=c[e>>2]|0;c[g+4>>2]=h;c[g>>2]=h;if((c[e>>2]|0)>0){h=g+8|0;j=0;do{c[h+(j*72|0)>>2]=c[e+(j*72|0)+8>>2];c[h+(j*72|0)+4>>2]=gh(d,c[e+(j*72|0)+12>>2]|0)|0;c[h+(j*72|0)+8>>2]=gh(d,c[e+(j*72|0)+16>>2]|0)|0;c[h+(j*72|0)+12>>2]=gh(d,c[e+(j*72|0)+20>>2]|0)|0;a[h+(j*72|0)+36>>0]=a[e+(j*72|0)+44>>0]|0;c[h+(j*72|0)+40>>2]=c[e+(j*72|0)+48>>2];c[h+(j*72|0)+24>>2]=c[e+(j*72|0)+32>>2];c[h+(j*72|0)+28>>2]=c[e+(j*72|0)+36>>2];k=e+(j*72|0)+45|0;i=h+(j*72|0)+37|0;l=a[i>>0]&-3|a[k>>0]&2;a[i>>0]=l;l=l&-5|a[k>>0]&4;a[i>>0]=l;a[i>>0]=l&-9|a[k>>0]&8;c[h+(j*72|0)+64>>2]=gh(d,c[e+(j*72|0)+72>>2]|0)|0;a[i>>0]=a[i>>0]&-2|a[k>>0]&1;c[h+(j*72|0)+68>>2]=c[e+(j*72|0)+76>>2];i=c[e+(j*72|0)+24>>2]|0;c[h+(j*72|0)+16>>2]=i;if(i){i=i+40|0;b[i>>1]=(b[i>>1]|0)+1<<16>>16}c[h+(j*72|0)+20>>2]=cr(d,c[e+(j*72|0)+28>>2]|0,f)|0;c[h+(j*72|0)+44>>2]=Ir(d,c[e+(j*72|0)+52>>2]|0,f,0)|0;c[h+(j*72|0)+48>>2]=Jr(d,c[e+(j*72|0)+56>>2]|0)|0;l=e+(j*72|0)+64|0;k=c[l+4>>2]|0;i=h+(j*72|0)+56|0;c[i>>2]=c[l>>2];c[i+4>>2]=k;j=j+1|0}while((j|0)<(c[e>>2]|0))}}else g=0}else g=0;return g|0}function vs(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0;i=Kq(b)|0;if((e|0)==2){k=c[b+408>>2]|0;a[((k|0)==0?b:k)+21>>0]=1}th(i,sh(i,24,d,e,0)|0,f,g<<24>>24);if(h<<24>>24!=0?(j=c[i+4>>2]|0,(j|0)!=0):0)a[j+(((c[i+32>>2]|0)+-1|0)*20|0)+3>>0]=h;return}function ws(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[(c[(c[b>>2]|0)+16>>2]|0)+28>>2]|0;do if(!(a[b+438>>0]|0)){h=c[d+68>>2]|0;if((e|0)!=(h|0)?(f=c[e+48>>2]|0,(f|0)!=0):0){g=d+64|0;e=0;while(1){b=c[f+8>>2]|0;if((c[b+24>>2]|0)==(h|0)?($c(c[b+4>>2]|0,c[d>>2]|0)|0)==0:0){if(!e)e=c[g>>2]|0;c[b+32>>2]=e}else b=e;f=c[f>>2]|0;if(!f)break;else e=b}if(b)break}b=c[d+64>>2]|0}else b=0;while(0);return b|0}function xs(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;j=c[b+32>>2]|0;k=b+8|0;i=b+68|0;f=0;while(1){g=(f|0)==0;b=g|(j|0)<(f|0)?j:0;d=c[k>>2]|0;if(!d)h=b;else{do{e=c[d+40>>2]|0;b=(g|(e|0)<(f|0))&(e|0)>(b|0)?e:b;d=c[d+20>>2]|0}while((d|0)!=0);h=b}if(!h)break;b=c[a>>2]|0;f=c[i>>2]|0;a:do if(f){g=c[b+20>>2]|0;if((g|0)>0){d=c[b+16>>2]|0;e=0;while(1){b=e+1|0;if((c[d+(e<<4)+12>>2]|0)==(f|0)){b=e;break a}if((b|0)<(g|0))e=b;else break}}else b=0}else b=-1e6;while(0);Ar(a,h,b);f=h}return}function ys(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;a:do if((b|0)!=0?(d=c[b>>2]|0,(d|0)>0):0){h=a+68|0;f=0;g=b+8|0;while(1){e=g+40|0;if((c[e>>2]|0)>-1)break a;i=c[h>>2]|0;c[h>>2]=i+1;c[e>>2]=i;e=c[g+20>>2]|0;if(e){ys(a,c[e+32>>2]|0);d=c[b>>2]|0}f=f+1|0;if((f|0)>=(d|0))break;else g=g+72|0}}while(0);return}function zs(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+32|0;if((i|0)>=(j|0))baba();f=g;if(!(b[e+6>>1]&128)){e=d[e+4>>0]|0;if((e|0)==117)e=35352;else if((e|0)==118)e=35336;else if((e|0)==116)e=35320;else e=35360;c[f>>2]=e;ph(a,35232,f)}else ph(a,35184,f);i=g;return}function Gs(d,f,g){d=d|0;f=f|0;g=g|0;var h=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;E=i;i=i+32|0;if((i|0)>=(j|0))ba();v=E;k=c[f+32>>2]|0;n=c[c[f>>2]>>2]|0;s=c[d+8>>2]|0;t=f+52|0;u=c[t>>2]|0;if(!(Oq(d,33,0,0,0)|0)){w=ts(s)|0;Ks(d,f,w);x=f+60|0;y=c[x>>2]|0;z=f+64|0;A=c[z>>2]|0;B=f+8|0;p=c[B>>2]|0;C=f+12|0;q=c[C>>2]|0;c[z>>2]=0;c[x>>2]=0;c[C>>2]=0;c[B>>2]=0;B=f+48|0;C=c[B>>2]|0;l=c[k>>2]|0;a:do if((l|0)>0){m=0;while(1){if(a[k+(m*72|0)+45>>0]&8)break;m=m+1|0;if((m|0)>=(l|0)){o=0;break a}}o=c[k+(m*72|0)+48>>2]|0}else o=0;while(0);m=d+68|0;k=c[m>>2]|0;l=k+1|0;c[m>>2]=l;h=(C|0)!=0;if((a[f+4>>0]|0)==115){c[m>>2]=k+2;m=h?8:6}else{m=h?7:5;l=0}a[v>>0]=m;c[v+4>>2]=k;a[v+1>>0]=0;c[v+8>>2]=0;c[v+12>>2]=0;F=d+72|0;m=(c[F>>2]|0)+1|0;c[F>>2]=m;sh(s,60,o,m,n)|0;if(h){n=ru(d,f)|0;th(s,sh(s,57,k,(c[C>>2]|0)+2|0,0)|0,n,-6);c[v+16>>2]=C}else sh(s,57,k,n,0)|0;if(l){c[f+16>>2]=sh(s,57,l,0,0)|0;l=f+6|0;b[l>>1]=e[l>>1]|8}c[B>>2]=0;n=u+56|0;c[n>>2]=0;l=er(d,u,v)|0;c[n>>2]=f;if(!l){n=sh(s,108,k,w,0)|0;sh(s,104,o,0,0)|0;if(h)sh(s,47,k,(c[C>>2]|0)+1|0,m)|0;else sh(s,102,k,m,0)|0;sh(s,95,k,0,0)|0;l=ts(s)|0;et(s,q,l);Ls(d,f,c[f>>2]|0,o,0,0,g,l,w);if(p)sh(s,140,p,w,0)|0;h=s+24|0;m=c[h>>2]|0;k=~l;if((l|0)<0?(r=c[m+112>>2]|0,(r|0)!=0):0)c[r+(k<<2)>>2]=c[s+32>>2];l=s+32|0;c[m+88>>2]=(c[l>>2]|0)+-1;c[t>>2]=0;er(d,f,v)|0;c[t>>2]=u;sh(s,16,0,n,0)|0;h=c[h>>2]|0;k=~w;if((w|0)<0?(D=c[h+112>>2]|0,(D|0)!=0):0)c[D+(k<<2)>>2]=c[l>>2];c[h+88>>2]=(c[l>>2]|0)+-1}Jk(c[d>>2]|0,c[B>>2]|0);c[B>>2]=C;c[x>>2]=y;c[z>>2]=A}i=E;return}function Hs(f,g,h){f=f|0;g=g|0;h=h|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,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;Y=i;i=i+48|0;if((i|0)>=(j|0))ba();r=Y+40|0;K=Y+20|0;L=Y;U=c[f>>2]|0;R=c[f+8>>2]|0;T=ts(R)|0;Q=ts(R)|0;V=g+4|0;M=a[V>>0]|0;W=g+52|0;X=c[W>>2]|0;t=g+48|0;m=c[t>>2]|0;l=c[m>>2]|0;O=M<<24>>24==116;a:do if(!O?(p=U+65|0,(a[p>>0]|0)==0):0){n=r+4|0;q=1;while(1){if((q|0)>(c[c[g>>2]>>2]|0)){N=l;s=14;break a}b:do if((l|0)>0){k=0;o=c[m+4>>2]|0;while(1){if((e[o+16>>1]|0)==(q|0))break b;k=k+1|0;if((k|0)<(l|0))o=o+20|0;else break}}else k=0;while(0);if((k|0)==(l|0)){c[r>>2]=0;c[n>>2]=0;k=jr(U,132,r,0)|0;if(!k){k=7;break a}G=k+4|0;c[G>>2]=c[G>>2]|1024;c[k+8>>2]=q;k=hr(f,m,k)|0;if(!k)k=0;else{b[(c[k+4>>2]|0)+(l*20|0)+16>>1]=q;l=l+1|0}}else k=m;if(!(a[p>>0]|0)){q=q+1|0;m=k}else{N=l;m=k;s=14;break}}}else{N=l;s=14}while(0);if((s|0)==14){J=ih(U,N<<2,0)|0;if(!J)H=0;else{if((N|0)>0){l=0;k=c[m+4>>2]|0;while(1){c[J+(l<<2)>>2]=(e[k+16>>1]|0)+-1;l=l+1|0;if((l|0)==(N|0))break;else k=k+20|0}}H=ru(f,g)|0}c[t>>2]=m;p=X+48|0;c[p>>2]=Lr(c[f>>2]|0,m,0)|0;if(!O){m=c[c[g>>2]>>2]|0;l=f+72|0;G=c[l>>2]|0;o=G+1|0;c[l>>2]=m+1+G;sh(R,25,0,o,0)|0;l=Ns(U,m,1)|0;if(l)if((m|0)>0){k=l+16|0;n=0;do{c[l+(n<<2)+20>>2]=Os(f,g,n)|0;a[(c[k>>2]|0)+n>>0]=0;n=n+1|0}while((n|0)!=(m|0));u=l}else u=l;else u=0}else{u=0;o=0}c[W>>2]=0;I=X+56|0;c[I>>2]=0;su(f,g,c[t>>2]|0,26880)|0;if(!(c[X+52>>2]|0))su(f,X,c[p>>2]|0,26880)|0;Ks(f,g,T);n=g+8|0;l=c[n>>2]|0;p=f+72|0;if((l|0)!=0&O){s=c[p>>2]|0;q=s+1|0;s=s+2|0;c[p>>2]=s;G=c[g+12>>2]|0;sh(R,33,(G|0)==0?l:G+1|0,q,0)|0;sh(R,33,q,s,0)|0}else{q=0;s=0}x=g+60|0;Ck(U,c[x>>2]|0);c[x>>2]=0;x=g+64|0;Ck(U,c[x>>2]|0);c[x>>2]=0;x=c[p>>2]|0;y=x+1|0;z=x+2|0;v=x+3|0;x=x+4|0;c[p>>2]=x;a[K>>0]=13;c[K+4>>2]=y;a[K+1>>0]=0;B=K+8|0;c[B>>2]=0;c[K+12>>2]=0;a[L>>0]=13;c[L+4>>2]=z;a[L+1>>0]=0;D=L+8|0;c[D>>2]=0;c[L+12>>2]=0;F=R+32|0;r=sh(R,20,y,0,(c[F>>2]|0)+1|0)|0;c[X+8>>2]=q;p=f+468|0;G=c[p>>2]|0;er(f,X,K)|0;sh(R,21,y,0,0)|0;q=c[F>>2]|0;if(q>>>0>r>>>0)c[(c[R+4>>2]|0)+(r*20|0)+8>>2]=q;A=R+24|0;c[(c[A>>2]|0)+88>>2]=q+-1;w=sh(R,20,z,0,q+1|0)|0;k=c[n>>2]|0;m=g+12|0;t=c[m>>2]|0;c[n>>2]=s;c[m>>2]=0;E=c[p>>2]|0;er(f,g,L)|0;c[n>>2]=k;c[m>>2]=t;sh(R,21,z,0,0)|0;m=tu(f,g,K,h,v,o,u,T)|0;t=(M+-115&255)<2;if(t)k=tu(f,g,L,h,x,o,u,T)|0;else k=0;if((u|0)!=0?(l=(c[u>>2]|0)+-1|0,c[u>>2]=l,(l|0)==0):0)Sc(u);o=M<<24>>24==118;if((M+-117&255)<2){s=T;l=T}else{s=sh(R,17,x,k,0)|0;l=sh(R,22,z,T,0)|0;sh(R,16,0,s,0)|0;n=X+24|0;u=g+24|0;p=u;n=fw(c[p>>2]|0,c[p+4>>2]|0,c[n>>2]|0,c[n+4>>2]|0)|0;c[u>>2]=n;c[u+4>>2]=C}if(o){r=g+24|0;u=r;n=c[u+4>>2]|0;p=X+24|0;q=c[p>>2]|0;p=c[p+4>>2]|0;if(n>>>0>p>>>0|((n|0)==(p|0)?(c[u>>2]|0)>>>0>q>>>0:0)){n=r;c[n>>2]=q;c[n+4>>2]=p;n=s}else n=s}else{n=sh(R,17,v,m,0)|0;sh(R,22,y,T,0)|0;sh(R,16,0,n,0)|0}r=sh(R,17,v,m,0)|0;sh(R,22,y,s,0)|0;sh(R,16,0,Q,0)|0;do if(!O)if(o){s=r;r=r+1|0;break}else{s=sh(R,22,y,s,0)|0;sh(R,16,0,Q,0)|0;break}else s=r;while(0);q=c[F>>2]|0;if(t)sh(R,17,x,k,0)|0;sh(R,22,z,n,0)|0;sh(R,16,0,Q,0)|0;p=c[F>>2]|0;if(p>>>0>w>>>0)c[(c[R+4>>2]|0)+(w*20|0)+8>>2]=p;c[(c[A>>2]|0)+88>>2]=p+-1;sh(R,22,y,l,0)|0;sh(R,22,z,n,0)|0;n=c[A>>2]|0;m=~Q;if((Q|0)<0?(P=c[n+112>>2]|0,(P|0)!=0):0)c[P+(m<<2)>>2]=c[F>>2];c[n+88>>2]=(c[F>>2]|0)+-1;th(R,sh(R,41,0,0,0)|0,J,-15);th(R,sh(R,42,c[B>>2]|0,c[D>>2]|0,N)|0,H,-6);l=c[R+4>>2]|0;if(l)a[l+(((c[F>>2]|0)+-1|0)*20|0)+3>>0]=1;sh(R,43,r,s,q)|0;l=c[A>>2]|0;k=~T;if((T|0)<0?(S=c[l+112>>2]|0,(S|0)!=0):0)c[S+(k<<2)>>2]=c[F>>2];c[l+88>>2]=(c[F>>2]|0)+-1;if((a[h>>0]|0)==9){k=X;while(1){l=c[k+52>>2]|0;if(!l)break;else k=l}Js(f,0,c[k>>2]|0)}k=c[W>>2]|0;if(k)Ik(U,k,1);c[W>>2]=X;c[I>>2]=g;Ms(f,d[V>>0]|0,G,E,0);k=0}i=Y;return k|0}function Is(a,b){a=a|0;b=b|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;do if(!(c[a+4>>2]&1024)){e=d[a>>0]|0;if((e|0)==158){e=Is(c[a+12>>2]|0,b)|0;break}else if((e|0)!=157){e=0;break}if(!(Is(c[a+12>>2]|0,f)|0))e=0;else{c[b>>2]=0-(c[f>>2]|0);e=1}}else{c[b>>2]=c[a+8>>2];e=1}while(0);i=g;return e|0}function Js(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=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;A=i;i=i+32|0;if((i|0)>=(j|0))ba();z=A;y=d+8|0;v=c[y>>2]|0;w=c[d>>2]|0;if(((a[d+450>>0]|0)==0?(k=d+16|0,!((a[k>>0]|0)!=0|(v|0)==0)):0)?(a[w+65>>0]|0)==0:0){a[k>>0]=1;k=c[w+24>>2]|0;u=(k&32|0)==0;eq(v,c[f>>2]|0);h=c[f>>2]|0;if((h|0)>0){t=f+4|0;s=(e|0)==0;p=(k&96|0)==0;q=(e|0)!=0;r=0;do{o=c[t>>2]|0;h=c[o+(r*20|0)>>2]|0;do if(h){k=c[o+(r*20|0)+4>>2]|0;if(k){fq(v,r,0,k,-1);break}k=a[h>>0]|0;if(k<<24>>24==-102){if(s)x=25}else if(!(k<<24>>24==-100&q))x=25;if((x|0)==25){x=0;k=c[o+(r*20|0)+8>>2]|0;if(!k){c[z>>2]=r+1;k=qh(w,34880,z)|0}else k=gh(w,k)|0;fq(v,r,0,k,75);break}n=b[h+32>>1]|0;k=n<<16>>16;m=c[e>>2]|0;a:do if((m|0)>0){g=c[h+28>>2]|0;l=0;while(1){h=l+1|0;if((c[e+(l*72|0)+48>>2]|0)==(g|0)){h=l;break a}if((h|0)<(m|0))l=h;else break}}else h=0;while(0);h=c[e+(h*72|0)+24>>2]|0;if(n<<16>>16<0)k=b[h+36>>1]|0;if((k|0)<0)k=20456;else k=c[(c[h+4>>2]|0)+(k*24|0)>>2]|0;if(p){fq(v,r,0,gh(w,c[o+(r*20|0)+8>>2]|0)|0,75);break}if(u){fq(v,r,0,k,-1);break}else{c[z>>2]=c[h>>2];c[z+4>>2]=k;fq(v,r,0,qh(w,27824,z)|0,75);break}}while(0);r=r+1|0;h=c[f>>2]|0}while((r|0)<(h|0))}k=c[y>>2]|0;c[z+4>>2]=e;c[z>>2]=d;if((h|0)>0){g=f+4|0;h=0;do{fq(k,h,1,uu(z,c[(c[g>>2]|0)+(h*20|0)>>2]|0,0)|0,-1);h=h+1|0}while((h|0)<(c[f>>2]|0))}}i=A;return}function Ks(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();f=o;h=b+8|0;if((c[h>>2]|0)==0?(Ys(a),g=b+60|0,(c[g>>2]|0)!=0):0){l=a+72|0;m=(c[l>>2]|0)+1|0;c[l>>2]=m;c[h>>2]=m;n=Kq(a)|0;do if(Is(c[g>>2]|0,f)|0){f=c[f>>2]|0;sh(n,25,f,m,0)|0;if(!f){sh(n,16,0,d,0)|0;break}if((f|0)>-1?(e=b+24|0,d=e,h=c[d+4>>2]|0,k=((f|0)<0)<<31>>31,h>>>0>k>>>0|((h|0)==(k|0)?(c[d>>2]|0)>>>0>f>>>0:0)):0){d=e;c[d>>2]=f;c[d+4>>2]=k}}else{Nq(a,c[g>>2]|0,m);sh(n,38,m,0,0)|0;sh(n,46,m,d,0)|0}while(0);f=c[b+64>>2]|0;if(f){k=c[l>>2]|0;d=k+1|0;c[b+12>>2]=d;c[l>>2]=k+2;Nq(a,f,d);sh(n,38,d,0,0)|0;f=sh(n,137,d,0,0)|0;sh(n,25,0,d,0)|0;g=n+32|0;e=c[g>>2]|0;if(e>>>0>f>>>0)c[(c[n+4>>2]|0)+(f*20|0)+8>>2]=e;h=n+24|0;c[(c[h>>2]|0)+88>>2]=e+-1;e=k+2|0;sh(n,89,m,d,e)|0;f=sh(n,137,m,0,0)|0;sh(n,25,-1,e,0)|0;e=c[g>>2]|0;if(e>>>0>f>>>0)c[(c[n+4>>2]|0)+(f*20|0)+8>>2]=e;c[(c[h>>2]|0)+88>>2]=e+-1}}i=o;return}function Ls(b,f,g,h,i,j,k,l,m){b=b|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;var 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;F=c[b+8>>2]|0;A=a[k>>0]|0;u=A&255;w=k+4|0;D=c[w>>2]|0;if(!j)n=0;else n=d[j+1>>0]|0;if(!i)E=0;else E=(c[i>>2]|0)==0?0:i;z=(E|0)!=0;v=(n|0)!=0;if(!(z|v))et(F,c[f+12>>2]|0,l);B=c[g>>2]|0;q=k+8|0;i=c[q>>2]|0;if(i){p=b+72|0;o=c[p>>2]|0;if((i+B|0)>(o|0)){c[p>>2]=o+B;C=i;x=0}else{C=i;x=0}}else{if(z){o=((a[E+24>>0]&1^1)&255)+(c[c[E>>2]>>2]|0)|0;C=b+72|0;p=o+(c[C>>2]|0)|0;c[C>>2]=p}else{p=c[b+72>>2]|0;o=0}C=p+1|0;c[q>>2]=C;c[b+72>>2]=p+B;x=o}c[k+12>>2]=B;do if((h|0)>-1){if((B|0)>0){p=0;do{sh(F,47,h,p,p+C|0)|0;p=p+1|0}while((p|0)!=(B|0))}}else{if(A<<24>>24==3)break;else if(A<<24>>24==9)o=1;else o=A<<24>>24==13&1;Zs(b,g,C,o)}while(0);if(v){o=d[j+1>>0]|0;if((o|0)==2){o=b+72|0;h=c[o>>2]|0;t=h+1|0;c[o>>2]=h+B;o=j+8|0;vh(F,c[o>>2]|0);o=c[o>>2]|0;if((o|0)<0)o=(c[F+32>>2]|0)+-1|0;if(!(a[(c[F>>2]|0)+65>>0]|0))o=(c[F+4>>2]|0)+(o*20|0)|0;else o=29120;a[o>>0]=28;c[o+4>>2]=1;c[o+8>>2]=t;h=F+32|0;i=(c[h>>2]|0)+B|0;if((B|0)>0){p=g+4|0;o=B+-1|0;q=F+4|0;s=0;do{v=_t(b,c[(c[p>>2]|0)+(s*20|0)>>2]|0)|0;j=s+C|0;n=s+t|0;if((s|0)<(o|0))sh(F,78,j,i,n)|0;else sh(F,79,j,l,n)|0;th(F,-1,v,-4);r=c[q>>2]|0;if(r)a[r+(((c[h>>2]|0)+-1|0)*20|0)+3>>0]=-128;s=s+1|0}while((s|0)!=(B|0))}else o=B+-1|0;sh(F,33,C,t,o)|0}else if((o|0)==1)vh(F,c[j+8>>2]|0);else vu(b,c[j+4>>2]|0,l,B,C);if(!E)et(F,c[f+12>>2]|0,l)}a:do switch(u|0){case 12:case 14:case 6:case 5:{p=x+1|0;o=b+60|0;i=c[o>>2]|0;q=b+56|0;n=c[q>>2]|0;if((n|0)<(p|0)){y=b+72|0;i=c[y>>2]|0;c[y>>2]=i+p;i=i+1|0}else{c[o>>2]=i+p;c[q>>2]=n-p}n=i+x|0;sh(F,49,C,B,n)|0;if(A<<24>>24==6){C=D+1|0;th(F,sh(F,69,C,(c[F+32>>2]|0)+4|0,i)|0,0,-14);sh(F,110,C,i,0)|0}if(z)wu(b,E,f,n,1,x);else{n=b+19|0;j=a[n>>0]|0;if(!(j<<24>>24)){C=b+72|0;j=(c[C>>2]|0)+1|0;c[C>>2]=j}else{j=j+-1<<24>>24;a[n>>0]=j;j=c[b+((j&255)<<2)+24>>2]|0}sh(F,74,D,j,0)|0;sh(F,75,D,i,j)|0;n=c[F+4>>2]|0;if(n)a[n+(((c[F+32>>2]|0)+-1|0)*20|0)+3>>0]=8;Wr(b,j)}$s(b,i,p);if((c[q>>2]|0)<(p|0)){c[q>>2]=p;c[o>>2]=i;y=94}else y=94;break}case 1:{n=b+19|0;j=a[n>>0]|0;if(!(j<<24>>24)){A=b+72|0;j=(c[A>>2]|0)+1|0;c[A>>2]=j}else{j=j+-1<<24>>24;a[n>>0]=j;j=c[b+((j&255)<<2)+24>>2]|0}sh(F,49,C,B,j)|0;sh(F,110,D,j,0)|0;Wr(b,j);y=94;break}case 2:{sh(F,111,D,C,B)|0;y=94;break}case 11:{i=k+1|0;a[i>>0]=xu(c[c[g+4>>2]>>2]|0,a[i>>0]|0)|0;if(z){wu(b,E,f,C,1,x);break a}j=b+19|0;n=a[j>>0]|0;if(!(n<<24>>24)){B=b+72|0;j=(c[B>>2]|0)+1|0;c[B>>2]=j}else{B=n+-1<<24>>24;a[j>>0]=B;j=c[b+((B&255)<<2)+24>>2]|0}th(F,sh(F,49,C,1,j)|0,i,1);$s(b,C,1);sh(F,110,D,j,0)|0;Wr(b,j);y=94;break}case 3:{sh(F,25,1,D,0)|0;y=94;break}case 10:{if(z)wu(b,E,f,C,1,x);else y=95;break}case 9:case 13:{if(z){wu(b,E,f,C,B,x);break a}if(A<<24>>24==13){sh(F,22,c[w>>2]|0,0,0)|0;y=95;break a}else{sh(F,35,C,B,0)|0;$s(b,C,B);y=94;break a}}case 7:case 8:{r=c[k+16>>2]|0;h=c[r>>2]|0;n=b+19|0;j=a[n>>0]|0;if(!(j<<24>>24)){z=b+72|0;s=(c[z>>2]|0)+1|0;c[z>>2]=s}else{s=j+-1<<24>>24;a[n>>0]=s;s=c[b+((s&255)<<2)+24>>2]|0}t=h+2|0;u=b+60|0;i=c[u>>2]|0;v=b+56|0;n=c[v>>2]|0;if((n|0)<(t|0)){z=b+72|0;i=c[z>>2]|0;c[z>>2]=i+t;i=i+1|0}else{c[u>>2]=i+t;c[v>>2]=n-t}q=i+h|0;o=q+1|0;if(A<<24>>24==8){n=D+1|0;j=sh(F,69,n,0,C)|0;th(F,j,B,-14);sh(F,49,C,B,o)|0;sh(F,110,n,o,0)|0;n=c[F+4>>2]|0;if(!n)p=j;else{a[n+(((c[F+32>>2]|0)+-1|0)*20|0)+3>>0]=16;p=j}}else{sh(F,49,C,B,o)|0;p=0}if((h|0)>0){o=r+4|0;n=C+-1|0;j=0;do{sh(F,34,n+(e[(c[o>>2]|0)+(j*20|0)+16>>1]|0)|0,j+i|0,0)|0;j=j+1|0}while((j|0)!=(h|0))}sh(F,73,D,q,0)|0;sh(F,49,i,t,s)|0;sh(F,110,D,s,0)|0;if(p){n=c[F+32>>2]|0;if(n>>>0>p>>>0)c[(c[F+4>>2]|0)+(p*20|0)+8>>2]=n;c[(c[F+24>>2]|0)+88>>2]=n+-1}Wr(b,s);$s(b,i,t);if((c[v>>2]|0)<(t|0)){c[v>>2]=t;c[u>>2]=i;y=94}else y=94;break}default:y=94}while(0);if((y|0)==94?(E|0)==0:0)y=95;if((y|0)==95?(G=c[f+8>>2]|0,(G|0)!=0):0)sh(F,140,G,m,0)|0;return}function Ms(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;if((a[b+450>>0]|0)==2){k=c[b+8>>2]|0;l=c[b>>2]|0;h=(g|0)!=0?35160:10360;if((d|0)==117)g=35352;else if((d|0)==118)g=35336;else if((d|0)==116)g=35320;else g=35360;c[m>>2]=e;c[m+4>>2]=f;c[m+8>>2]=h;c[m+12>>2]=g;g=qh(l,35120,m)|0;th(k,sh(k,157,c[b+464>>2]|0,0,0)|0,g,-1)}i=n;return}function Ns(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=f+e|0;h=(g*5|0)+24|0;i=mg(h,0)|0;if(!i)a[d+65>>0]=1;else{bw(i|0,0,h|0)|0;c[i+16>>2]=i+20+(g<<2);b[i+6>>1]=e;b[i+8>>1]=f;a[i+4>>0]=a[d+62>>0]|0;c[i+12>>2]=d;c[i>>2]=1}return i|0}function Os(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=c[b+52>>2]|0;if(!((f|0)!=0?(e=Os(a,f,d)|0,(e|0)!=0):0)){e=c[b>>2]|0;if((c[e>>2]|0)>(d|0))e=_t(a,c[(c[e+4>>2]|0)+(d*20|0)>>2]|0)|0;else e=0}return e|0}function Ps(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=(b|0)==0;f=(d|0)==0;a:do if(!(g&f))if(!(g|f)?(h=c[b>>2]|0,(h|0)==(c[d>>2]|0)):0)if((h|0)>0){b=c[b+4>>2]|0;f=c[d+4>>2]|0;g=0;while(1){if((a[b+(g*20|0)+12>>0]|0)!=(a[f+(g*20|0)+12>>0]|0)){f=1;break a}if(yu(c[b+(g*20|0)>>2]|0,c[f+(g*20|0)>>2]|0,e)|0){f=1;break a}g=g+1|0;if((g|0)>=(h|0)){f=0;break}}}else f=0;else f=1;else f=0;while(0);return f|0}function Qs(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;g=c[b>>2]|0;l=c[d>>2]|0;k=Ns(g,l-e|0,f+1|0)|0;if((k|0)!=0&(l|0)>(e|0)){h=g+8|0;i=k+16|0;j=e;f=(c[d+4>>2]|0)+(e*20|0)|0;while(1){g=_t(b,c[f>>2]|0)|0;if(!g)g=c[h>>2]|0;d=j-e|0;c[k+(d<<2)+20>>2]=g;a[(c[i>>2]|0)+d>>0]=a[f+12>>0]|0;j=j+1|0;if((j|0)==(l|0))break;else f=f+20|0}}return k|0}function Rs(f,g,h,k,l,m,n){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;var 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,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,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0;Ma=i;i=i+64|0;if((i|0)>=(j|0))baBa=ts(ea)|0;Aa=k+48|0;c[Aa>>2]=Ba;q=k+52|0;c[q>>2]=Ba;Ba=k+34|0;b[Ba>>1]=m;Ca=f+424|0;Da=k+56|0;c[Da>>2]=c[Ca>>2];Ea=k+68|0;c[Y>>2]=k;Fa=k+328|0;X=Y+4|0;c[X>>2]=Fa;S=Y+12|0;c[S>>2]=k+u;c[k+(u+48)>>2]=k+(u+56);b[k+(u+40)>>1]=0;b[k+(u+44)>>1]=3;c[k+(u+36)>>2]=0;c[Ea>>2]=0;c[Fa>>2]=k;c[k+332>>2]=0;va=k+340|0;c[va>>2]=0;c[k+344>>2]=8;wa=k+348|0;c[wa>>2]=k+352;zu(Fa,h,72);y=(U|0)==0;if((c[k+340>>2]|0)>0){x=Ka+20|0;w=Ka+4|0;o=Ka+24|0;h=Fa;p=0;do{if(!y){h=c[(c[h+20>>2]|0)+(p*48|0)>>2]|0;c[Ka+0>>2]=0;c[Ka+4>>2]=0;c[Ka+8>>2]=0;c[Ka+12>>2]=0;c[Ka+16>>2]=0;c[Ka+20>>2]=0;a[x>>0]=2;c[Ka>>2]=78;c[w>>2]=79;c[o>>2]=0;ns(Ka,h)|0;h=c[X>>2]|0;if(a[x>>0]|0)ua=15}else ua=15;if((ua|0)==15){ua=0;ct(f,c[(c[h+20>>2]|0)+(p*48|0)>>2]|0,c[q>>2]|0,16);h=c[X>>2]|0;aa=(c[h+20>>2]|0)+(p*48|0)+20|0;b[aa>>1]=e[aa>>1]|4}p=p+1|0}while((p|0)<(c[h+12>>2]|0))}if(y){if(P)a[k+36>>0]=c[P>>2];if(I&1024)a[k+40>>0]=1}if((c[g>>2]|0)>0){u=0;do{O=c[g+(u*72|0)+48>>2]|0;aa=c[Ea>>2]|0;c[Ea>>2]=aa+1;c[Ea+(aa<<2)+4>>2]=O;u=u+1|0}while((u|0)<(c[g>>2]|0))}r=c[va>>2]|0;if((r|0)>0)do{r=r+-1|0;Au(Fa,r)}while((r|0)>0);b:do if(!(a[xa>>0]|0)){aa=(I&1024|0)==0;c:do if(!aa){d:do if((c[g>>2]|0)==1){H=c[g+48>>2]|0;p=c[g+24>>2]|0;x=c[l>>2]|0;e:do if((x|0)>0){w=c[l+4>>2]|0;o=0;while(1){h=c[w+(o*20|0)>>2]|0;f:do if(!h)h=0;else while(1){y=c[h+4>>2]|0;if(!(y&4096))break f;if(!(y&262144))h=h+12|0;else h=c[(c[h+20>>2]|0)+4>>2]|0;h=c[h>>2]|0;if(!h){h=0;break}}while(0);do if((a[h>>0]|0)==-102){if((c[h+28>>2]|0)!=(H|0))break;if((b[h+32>>1]|0)<0)break e}while(0);o=o+1|0;if((o|0)>=(x|0)){ua=41;break}}}else ua=41;while(0);g:do if((ua|0)==41){h=c[p+8>>2]|0;if(!h)break d;q=l+4|0;p=p+4|0;while(1){if(a[h+50>>0]|0){D=h+46|0;h:do if(!(b[D>>1]|0))y=0;else{F=h+4|0;E=h+32|0;y=0;do{B=b[(c[F>>2]|0)+(y<<1)>>1]|0;if(!(Bu(Fa,H,B,-1,-1,2,h)|0)){o=c[(c[E>>2]|0)+(y<<2)>>2]|0;if((c[l>>2]|0)>0)x=0;else break h;i:while(1){z=c[(c[q>>2]|0)+(x*20|0)>>2]|0;j:do if(!z)w=0;else{w=z;while(1){A=c[w+4>>2]|0;if(!(A&4096))break j;if(!(A&262144))w=w+12|0;else w=c[(c[w+20>>2]|0)+4>>2]|0;w=c[w>>2]|0;if(!w){w=0;break}}}while(0);do if((a[w>>0]|0)==-102){if((b[w+32>>1]|0)!=(b[(c[F>>2]|0)+(y<<1)>>1]|0))break;if((c[w+28>>2]|0)!=(H|0))break;w=_t(f,z)|0;if(!w)break;if(!($c(c[w>>2]|0,o)|0))break i}while(0);x=x+1|0;if((x|0)>=(c[l>>2]|0))break h}if((x|0)<0)break h;if(!(a[(c[p>>2]|0)+(B*24|0)+20>>0]|0))break h}y=y+1|0}while((y|0)<(e[D>>1]|0))}while(0);if((y|0)==(e[D>>1]|0))break g}h=c[h+20>>2]|0;if(!h)break d}}while(0);a[k+40>>0]=1;break c}while(0);if(!P){b[Ba>>1]=e[Ba>>1]|512;c[$>>2]=l}}while(0);k:do if((((U|0)==1?(W=c[Y>>2]|0,V=W+34|0,(b[V>>1]&32)==0):0)?(R=c[W+4>>2]|0,N=c[R+24>>2]|0,(a[N+44>>0]&16)==0):0)?(c[R+72>>2]|0)==0:0){P=c[R+48>>2]|0;z=W+328|0;O=c[S>>2]|0;H=O+36|0;c[H>>2]=0;b[O+42>>1]=0;v=Bu(z,P,-1,0,0,2,0)|0;l:do if(!v){x=c[N+8>>2]|0;m:do if(x){A=O+48|0;n:while(1){do if(a[x+50>>0]|0){if(c[x+36>>2]|0)break;w=x+46|0;h=b[w>>1]|0;if((h&65535)>3)break;q=x+4|0;o:do if(!(h<<16>>16)){h=0;y=0}else{y=0;while(1){h=Bu(z,P,b[(c[q>>2]|0)+(y<<1)>>1]|0,0,0,2,x)|0;if(!h)break;c[(c[A>>2]|0)+(y<<2)>>2]=h;y=y+1|0;h=b[w>>1]|0;if((y|0)>=(h&65535|0))break o}h=b[w>>1]|0}while(0);if((y|0)==(h&65535|0)){A=y;break n}}while(0);x=c[x+20>>2]|0;if(!x)break m}c[H>>2]=4609;if(!(a[x+51>>0]&32)){p=R+64|0;o=c[p>>2]|0;p=c[p+4>>2]|0;w=0;v=0;h=e[x+48>>1]|0;p:while(1){y=h;while(1){h=y+-1|0;if((y|0)<=0)break p;y=b[(c[q>>2]|0)+(h<<1)>>1]|0;if((y&65535)<63)break;else y=h}Y=ew(1,0,y<<16>>16|0)|0;w=Y|w;v=C|v}if((o&~w|0)==0&(p&~v|0)==0)ua=91}else ua=91;if((ua|0)==91)c[H>>2]=4673;Y=A&65535;b[O+40>>1]=Y;b[O+24>>1]=Y;c[O+28>>2]=x;b[O+20>>1]=39;break l}while(0);if(!(c[H>>2]|0)){ua=103;break k}}else{c[H>>2]=4353;c[c[O+48>>2]>>2]=v;b[O+40>>1]=1;b[O+24>>1]=1;b[O+20>>1]=33}while(0);b[O+22>>1]=1;c[W+800>>2]=O;q=c[W+68>>2]|0;q:do if((q|0)>0){r=0;while(1){if((c[W+(r<<2)+72>>2]|0)==(P|0))break;r=r+1|0;if((r|0)>=(q|0)){r=0;q=0;break q}}r=ew(1,0,r|0)|0;q=C}else{r=0;q=0}while(0);p=O+8|0;c[p>>2]=r;c[p+4>>2]=q;c[W+740>>2]=P;b[W+32>>1]=1;p=c[W+8>>2]|0;if(p)a[W+36>>0]=c[p>>2];if(!(b[V>>1]&1024)){ua=120;break}a[W+40>>0]=1;ua=120}else ua=103;while(0);if((ua|0)==103){D=c[Y>>2]|0;h=c[D+4>>2]|0;E=c[c[D>>2]>>2]|0;W=a[D+41>>0]|0;F=W&255;w=c[S>>2]|0;c[w+48>>2]=w+56;b[w+40>>1]=0;b[w+44>>1]=3;c[w+36>>2]=0;o=E+65|0;r:do if(W<<24>>24){p=w+16|0;q=D+68|0;r=w+8|0;s=0;t=0;u=0;v=0;B=0;A=h+8|0;z=0;while(1){a[p>>0]=B;y=c[A+40>>2]|0;x=c[q>>2]|0;s:do if((x|0)>0){h=0;while(1){if((c[D+(h<<2)+72>>2]|0)==(y|0))break;h=h+1|0;if((h|0)>=(x|0)){h=0;y=0;break s}}h=ew(1,0,h|0)|0;y=C}else{h=0;y=0}while(0);W=r;c[W>>2]=h;c[W+4>>2]=y;W=z;z=a[A+36>>0]|0;W=((z|W)&10)==0;t=W?t:s;v=W?v:u;if(!(a[(c[A+16>>2]|0)+44>>0]&16))h=Du(Y,t,v)|0;else h=Cu(Y,t,v)|0;if(h)break;W=Eu(Y,t,v)|0;h=r;if(W)break;if(a[o>>0]|0)break r;B=B+1|0;if((B|0)>=(F|0))break r;else{s=c[h>>2]|s;u=c[h+4>>2]|u;A=A+72|0}}Fu(E,w);break b}while(0);Fu(E,w);Gu(k,0);if(a[xa>>0]|0)break;if(c[$>>2]|0){Gu(k,(e[k+32>>1]|0)+1&65535);if(!(a[xa>>0]|0))ua=120;else break}else ua=121}if((ua|0)==120?(c[$>>2]|0)==0:0)ua=121;if((ua|0)==121?(c[Ia+24>>2]&131072|0)!=0:0){$=k+24|0;c[$>>2]=-1;c[$+4>>2]=-1}if((c[f+64>>2]|0)==0?(a[xa>>0]|0)==0:0){u=a[ya>>0]|0;t:do if((u&255)>1&(l|0)!=0?(b[_>>1]&1024)==0:0){p=Hu(Ea,l)|0;q=C;o=c[Z>>2]|0;if(o){$=Hu(Ea,o)|0;p=$|p;q=C|q}y=k+736|0;h=c[za>>2]|0;x=c[X>>2]|0;w=x+20|0;x=x+12|0;v=u;o=U;do{r=c[y+(((v&255)+-1|0)*80|0)+64>>2]|0;if(!(a[h+((d[r+16>>0]|0)*72|0)+44>>0]&8))break t;if(aa?(c[r+36>>2]&4096|0)==0:0)break t;t=r+8|0;s=c[t>>2]|0;t=c[t+4>>2]|0;if(!((s&p|0)==0&(t&q|0)==0))break t;r=c[w>>2]|0;$=c[x>>2]|0;u=r+($*48|0)|0;if(($|0)>0)do{$=r+40|0;if(!((s&c[$>>2]|0)==0?(t&c[$+4>>2]|0)==0:0)?(c[(c[r>>2]|0)+4>>2]&1|0)==0:0)break t;r=r+48|0}while(r>>>0<u>>>0);v=v+-1<<24>>24;a[ya>>0]=v;o=o+-1|0}while((v&255)>1)}else o=U;while(0);aa=(c[k>>2]|0)+424|0;c[aa>>2]=(c[aa>>2]|0)+(b[k+32>>1]|0);do if((I&4|0)!=0?(T=(c[k+800>>2]|0)+36|0,Q=c[T>>2]|0,(Q&4096|0)!=0):0){a[k+38>>0]=1;if(a[(c[g+24>>2]|0)+44>>0]&32)break;c[T>>2]=Q&-65}while(0);ta=k+736|0;P=(o|0)>0;if(P){M=I&16;N=k+38|0;O=ea+32|0;J=L^1;L=(n|0)==0|J;K=f+68|0;H=54-(I>>>12&1)|0;G=ea+4|0;B=Ia+20|0;z=Ia+16|0;s=0;I=ta;while(1){A=d[I+44>>0]|0;D=g+(A*72|0)+24|0;q=c[D>>2]|0;h=c[q+68>>2]|0;u:do if(!h)w=-1e6;else{y=c[B>>2]|0;if((y|0)<=0){w=0;break}x=c[z>>2]|0;p=0;while(1){w=p+1|0;if((c[x+(p<<4)+12>>2]|0)==(h|0)){w=p;break u}if((w|0)<(y|0))p=w;else break}}while(0);F=c[I+64>>2]|0;E=q+44|0;h=d[E>>0]|0;do if(!(h&2)){if(c[q+12>>2]|0)break;y=c[F+36>>2]|0;if(y&1024){v=c[q+60>>2]|0;v:do if(!v)v=0;else while(1){if((c[v>>2]|0)==(Ia|0))break v;v=c[v+24>>2]|0;if(!v){v=0;break}}while(0);th(ea,sh(ea,149,c[g+(A*72|0)+48>>2]|0,0,0)|0,v,-10);break}if(h&16)break;if(y&64|M){cs(f,w,c[q+32>>2]|0,0,c[q>>2]|0);break}x=g+(A*72|0)+48|0;if(!(a[N>>0]|0))h=54;else{c[ca>>2]=c[x>>2];h=55}Mq(f,c[x>>2]|0,w,q,h);if(a[N>>0]|0)break;if((b[q+38>>1]|0)>=64)break;if(a[E>>0]&32)break;x=g+(A*72|0)+64|0;v=c[x>>2]|0;x=c[x+4>>2]|0;if((v|0)==0&(x|0)==0)u=0;else{u=0;do{v=iw(v|0,x|0,1)|0;x=C;u=u+1|0}while(!((v|0)==0&(x|0)==0))}th(ea,(c[O>>2]|0)+-1|0,u,-14)}while(0);y=F+36|0;w:do if(c[y>>2]&512){h=c[F+28>>2]|0;do if(a[E>>0]&32){if((a[h+51>>0]&3)!=2|J)break;c[I+8>>2]=c[I+4>>2];break w}while(0);do if(!(a[N>>0]|0)){if(!L){u=n;t=H;break}u=c[K>>2]|0;c[K>>2]=u+1;t=54}else{t=c[(c[D>>2]|0)+8>>2]|0;if((t|0)==0|(t|0)==(h|0))u=n;else{u=n;do{u=u+1|0;t=c[t+20>>2]|0}while(!((t|0)==0|(t|0)==(h|0)))}c[da>>2]=u;t=55}while(0);c[I+8>>2]=u;sh(ea,t,u,c[h+40>>2]|0,w)|0;aa=c[Ha>>2]|0;th(aa,-1,ds(f,h)|0,-6);aa=c[y>>2]|0;if(!((aa&15|0)!=0&(aa&32770|0)==0))break;if(b[Ba>>1]&1)break;r=c[G>>2]|0;if(!r)break;a[r+(((c[O>>2]|0)+-1|0)*20|0)+3>>0]=2}while(0);if((w|0)>-1)wr(f,w);s=s+1|0;if((s|0)==(o|0))break;else I=I+80|0}da=(a[xa>>0]|0)==0;c[k+44>>2]=c[O>>2];if(!da)break}else{O=ea+32|0;c[k+44>>2]=c[O>>2]}if(!P)break a;ha=k+24|0;ia=k+36|0;ja=k+39|0;ka=f+80|0;la=f+68|0;ma=f+100|0;na=f+19|0;oa=f+72|0;pa=Ka+20|0;qa=Ka+4|0;ra=Ka+24|0;q=-1;p=-1;sa=0;while(1){V=ta+(sa*80|0)|0;h=ta+(sa*80|0)+64|0;X=ta+(sa*80|0)+44|0;if(c[(c[h>>2]|0)+36>>2]&16384){H=d[X>>0]|0;R=g+(H*72|0)+8|0;W=c[Ha>>2]|0;v=Kq(f)|0;Y=c[ka>>2]|0;c[ka>>2]=Y+1;Y=sh(v,44,Y,0,0)|0;v=c[g+(H*72|0)+24>>2]|0;da=c[va>>2]|0;y=c[wa>>2]|0;Q=y+(da*48|0)|0;J=c[h>>2]|0;x:do if((da|0)>0){w=g+(H*72|0)+48|0;s=v+4|0;t=J+48|0;D=0;z=0;x=0;r=0;B=0;while(1){A=c[y>>2]|0;da=J;do if((c[da>>2]|0)==0&(c[da+4>>2]|0)==0){if(b[y+20>>1]&2)break;if(c[A+4>>2]&1)break;da=c[w>>2]|0;c[Ka+0>>2]=0;c[Ka+4>>2]=0;c[Ka+8>>2]=0;c[Ka+12>>2]=0;c[Ka+16>>2]=0;c[Ka+20>>2]=0;a[pa>>0]=3;c[Ka>>2]=78;c[qa>>2]=79;c[ra>>2]=da;ns(Ka,A)|0;if(!(a[pa>>0]|0))break;da=c[f>>2]|0;r=os(da,r,Ir(da,A,0,0)|0)|0}while(0);do if(!(Iu(y,R,q,p)|0)){F=D;A=z;h=x}else{A=c[y+12>>2]|0;if((A|0)>63){F=0;E=-2147483648}else{F=ew(1,0,A|0)|0;E=C}if(!(B<<24>>24)){B=c[(c[s>>2]|0)+(A*24|0)>>2]|0;c[Ka>>2]=c[v>>2];c[Ka+4>>2]=B;Zc(284,33960,Ka);B=1}if(!((F&D|0)==0&(E&z|0)==0)){F=D;A=z;h=x;break}h=x+1|0;if(Ju(c[f>>2]|0,J,h)|0)break x;c[(c[t>>2]|0)+(x<<2)>>2]=y;F=F|D;A=E|z}while(0);y=y+48|0;if(y>>>0>=Q>>>0){y=F;ua=207;break}else{D=F;z=A;x=h}}}else{A=0;y=0;h=0;r=0;ua=207}while(0);do if((ua|0)==207){ua=0;s=h&65535;b[J+40>>1]=s;b[J+24>>1]=s;s=J+36|0;c[s>>2]=16961;I=g+(H*72|0)+64|0;K=I;E=c[K+4>>2]|0;K=c[K>>2]&~y;M=E&((A|-2147483648)^2147483647);u=v+38|0;N=b[u>>1]|0;F=N<<16>>16;N=N<<16>>16>63?63:F;P=(N|0)>0;if(P){A=0;do{da=ew(1,0,A|0)|0;h=(((da&K|0)!=0|(C&M|0)!=0)&1)+h|0;A=A+1|0}while((A|0)!=(N|0))}if((E|0)<0)h=h+-63+F|0;L=h+1|0;G=qs(c[f>>2]|0,L&65535,0,La)|0;if(!G)break;c[J+28>>2]=G;c[G>>2]=33992;c[G+12>>2]=v;A=c[wa>>2]|0;if(A>>>0<Q>>>0){h=G+4|0;y=G+32|0;E=0;F=0;x=0;do{do if(Iu(A,R,q,p)|0){D=c[A+12>>2]|0;if((D|0)>63){B=0;z=-2147483648}else{B=ew(1,0,D|0)|0;z=C}if(!((B&E|0)==0&(z&F|0)==0))break;da=c[A>>2]|0;b[(c[h>>2]|0)+(x<<1)>>1]=D;D=Ku(f,c[da+12>>2]|0,c[da+16>>2]|0)|0;if(!D)D=11152;else D=c[D>>2]|0;c[(c[y>>2]|0)+(x<<2)>>2]=D;E=B|E;F=z|F;x=x+1|0}while(0);A=A+48|0}while(A>>>0<Q>>>0)}else x=0;if(P){A=G+4|0;z=G+32|0;h=0;do{da=ew(1,0,h|0)|0;if(!((da&K|0)==0&(C&M|0)==0)){b[(c[A>>2]|0)+(x<<1)>>1]=h;c[(c[z>>2]|0)+(x<<2)>>2]=11152;x=x+1|0}h=h+1|0}while((h|0)!=(N|0))}do if((c[I+4>>2]|0)<0){if((b[u>>1]|0)<=63)break;h=G+4|0;y=G+32|0;w=63;do{b[(c[h>>2]|0)+(x<<1)>>1]=w;c[(c[y>>2]|0)+(x<<2)>>2]=11152;x=x+1|0;w=w+1|0}while((w|0)<(b[u>>1]|0))}while(0);b[(c[G+4>>2]|0)+(x<<1)>>1]=-1;c[(c[G+32>>2]|0)+(x<<2)>>2]=11152;A=c[la>>2]|0;c[la>>2]=A+1;y=ta+(sa*80|0)+8|0;c[y>>2]=A;sh(W,56,A,L,0)|0;A=c[Ha>>2]|0;th(A,-1,ds(f,G)|0,-6);c[ma>>2]=(c[ma>>2]|0)+1;A=ta+(sa*80|0)+4|0;t=sh(W,108,c[A>>2]|0,0,0)|0;x=(r|0)!=0;if(x){w=ts(W)|0;ct(f,r,w,16);c[s>>2]=c[s>>2]|131072}else w=0;h=a[na>>0]|0;if(!(h<<24>>24)){s=(c[oa>>2]|0)+1|0;c[oa>>2]=s}else{s=h+-1<<24>>24;a[na>>0]=s;s=c[f+((s&255)<<2)+24>>2]|0}Lt(f,G,c[A>>2]|0,s,0,0,0,0)|0;sh(W,110,c[y>>2]|0,s,0)|0;z=W+4|0;h=c[z>>2]|0;if(h)a[h+(((c[W+32>>2]|0)+-1|0)*20|0)+3>>0]=16;if(x){y=c[W+24>>2]|0;x=~w;do if((w|0)<0){h=c[y+112>>2]|0;if(!h)break;c[h+(x<<2)>>2]=c[W+32>>2]}while(0);c[y+88>>2]=(c[W+32>>2]|0)+-1}sh(W,9,c[A>>2]|0,t+1|0,0)|0;h=c[z>>2]|0;y=c[W+32>>2]|0;if(h)a[h+((y+-1|0)*20|0)+3>>0]=3;if(y>>>0>t>>>0)c[h+(t*20|0)+8>>2]=y;h=W+24|0;c[(c[h>>2]|0)+88>>2]=y+-1;Wr(f,s);Zt(f);u=c[W+32>>2]|0;if(u>>>0>Y>>>0)c[(c[z>>2]|0)+(Y*20|0)+8>>2]=u;c[(c[h>>2]|0)+88>>2]=u+-1}while(0);Ck(c[f>>2]|0,r);if(a[xa>>0]|0)break b}Lu(f,g,V,sa,d[X>>0]|0,m);c[ta+(sa*80|0)+32>>2]=c[O>>2];ga=c[k>>2]|0;L=ga+8|0;ca=c[L>>2]|0;ea=c[ga>>2]|0;r=k+(sa*80|0)+736|0;K=c[k+(sa*80|0)+800>>2]|0;$=k+(sa*80|0)+780|0;H=d[$>>0]|0;F=c[za>>2]|0;N=F+(H*72|0)+8|0;n=c[F+(H*72|0)+48>>2]|0;y=c[Ea>>2]|0;y:do if((y|0)>0){h=0;while(1){if((c[Ea+(h<<2)+4>>2]|0)==(n|0))break;h=h+1|0;if((h|0)>=(y|0)){h=-1;y=-1;break y}}h=ew(1,0,h|0)|0;h=~h;y=~C}else{h=-1;y=-1}while(0);fa=k+(sa*80|0)+808|0;M=fa;c[M>>2]=h&q;c[M+4>>2]=y&p;M=ha;M=iw(c[M>>2]|0,c[M+4>>2]|0,sa|0)|0;_=M&1;T=K+36|0;if(!(c[T>>2]&64))v=0;else v=(b[Ba>>1]&32)==0;G=ts(ca)|0;P=k+(sa*80|0)+752|0;c[P>>2]=G;aa=k+(sa*80|0)+748|0;c[aa>>2]=G;da=ts(ca)|0;c[k+(sa*80|0)+760>>2]=da;do if(a[$>>0]|0){if(!(a[F+(H*72|0)+44>>0]&8))break;Z=ga+72|0;l=(c[Z>>2]|0)+1|0;c[Z>>2]=l;c[r>>2]=l;sh(ca,25,0,l,0)|0}while(0);A=a[F+(H*72|0)+45>>0]|0;z:do if(!(A&4)){D=c[T>>2]|0;if(D&1024){s=b[K+40>>1]|0;t=s&65535;v=ga+100|0;c[v>>2]=(c[v>>2]|0)+1;v=t+2|0;G=ga+60|0;h=c[G>>2]|0;H=ga+56|0;y=c[H>>2]|0;if((y|0)<(v|0)){$=ga+72|0;u=c[$>>2]|0;c[$>>2]=u+v;u=u+1|0}else{c[G>>2]=h+v;c[H>>2]=y-v;u=h}h=c[aa>>2]|0;B=s<<16>>16==0;if(!B){E=u+2|0;D=K+48|0;F=0;do{A=E+F|0;z=c[(c[D>>2]|0)+(F<<2)>>2]|0;do if(z)if(!(b[z+18>>1]&1)){Nq(ga,c[(c[z>>2]|0)+16>>2]|0,A);break}else{Mu(ga,z,r,F,_,A)|0;h=c[P>>2]|0;break}while(0);F=F+1|0}while((F|0)<(t|0))}sh(ca,25,c[K+24>>2]|0,u,0)|0;sh(ca,25,t,u+1|0,0)|0;_=c[K+32>>2]|0;aa=K+28|0;$=(a[aa>>0]|0)!=0?-11:-2;th(ca,sh(ca,14,n,h,u)|0,_,$);a[aa>>0]=0;if(!B){w=K+30|0;x=K+48|0;h=(s&65535)>1?0-t|0:-1;h=h>>>0>4294967280?0-h|0:16;y=0;do{if(e[w>>1]&1<<y)Nu(r,c[(c[x>>2]|0)+(y<<2)>>2]|0);y=y+1|0}while((y|0)!=(h|0))}a[k+(sa*80|0)+781>>0]=-105;c[k+(sa*80|0)+784>>2]=n;c[k+(sa*80|0)+788>>2]=c[ca+32>>2];$s(ga,u,v);if((c[H>>2]|0)<(v|0)){c[H>>2]=v;c[G>>2]=u}Zt(ga);ua=459;break}if(!((D&256|0)==0|(D&5|0)==0)){v=c[c[K+48>>2]>>2]|0;aa=ga+72|0;x=(c[aa>>2]|0)+1|0;c[aa>>2]=x;v=Mu(ga,v,r,0,_,x)|0;if((v|0)!=(x|0))Wr(ga,x);ua=c[P>>2]|0;sh(ca,38,v,ua,0)|0;sh(ca,70,n,ua,v)|0;$s(ga,v,1);Ou(ga,n,-1,v);a[k+(sa*80|0)+781>>0]=-100;ua=459;break}if((D&258|0)==258){if(!(D&32)){h=0;x=0}else{h=1;x=c[c[K+48>>2]>>2]|0}if(!(D&16))h=0;else h=c[(c[K+48>>2]|0)+(h<<2)>>2]|0;y=(_|0)!=0;w=y?x:h;h=y?h:x;if(!h)sh(ca,y?105:108,n,G,0)|0;else{$=c[h>>2]|0;aa=Xt(ga,c[$+16>>2]|0,Ka)|0;sh(ca,d[33536+((d[$>>0]|0)+-80)>>0]|0,n,G,aa)|0;$s(ga,aa,1);Wr(ga,c[Ka>>2]|0);Nu(r,h)}if(!w){h=0;y=156}else{aa=c[w>>2]|0;$=ga+72|0;h=(c[$>>2]|0)+1|0;c[$>>2]=h;Nq(ga,c[aa+16>>2]|0,h);aa=a[aa>>0]|0;if(aa<<24>>24==80|aa<<24>>24==82)y=_<<1^83;else y=_<<1|80;Nu(r,w)}x=ca+32|0;aa=c[x>>2]|0;a[k+(sa*80|0)+781>>0]=_^9;c[k+(sa*80|0)+784>>2]=n;c[k+(sa*80|0)+788>>2]=aa;if((y|0)==156){ua=459;break}aa=ga+72|0;u=(c[aa>>2]|0)+1|0;c[aa>>2]=u;sh(ca,103,n,u,0)|0;Ou(ga,n,-1,u);sh(ca,y,h,G,u)|0;u=c[ca+4>>2]|0;if(!u){ua=459;break}a[u+(((c[x>>2]|0)+-1|0)*20|0)+3>>0]=83;ua=459;break}if(D&512){L=b[K+24>>1]|0;a[Ja>>0]=0;S=c[K+28>>2]|0;U=c[k+(sa*80|0)+744>>2]|0;do if(!(b[BaBa>>1]&8)){if(!(a[W+44>>0]&32)){A=(c[X>>2]|0)+1|0;c[X>>2]=A;sh(ca,28,0,A,0)|0}else{A=c[W+8>>2]|0;C:do if(!A)A=0;else while(1){if((a[A+51>>0]&3)==2)break C;A=c[A+20>>2]|0;if(!A){A=0;break}}while(0);U=c[G>>2]|0;c[G>>2]=U+1;sh(ca,57,U,e[A+46>>1]|0,0)|0;T=c[L>>2]|0;th(T,-1,ds(ga,A)|0,-6);A=U}T=(c[X>>2]|0)+1|0;c[X>>2]=T}else{T=0;A=0}U=sh(ca,25,0,Y,0)|0;z=c[va>>2]|0;do if((z|0)>1){B=0;F=0;do{E=c[wa>>2]|0;S=E+(B*48|0)|0;D=c[S>>2]|0;do if((S|0)!=(l|0)){if(c[D+4>>2]&1)break;if(b[E+(B*48|0)+20>>1]&2)break;if(!(b[E+(B*48|0)+18>>1]&4095))break;F=os(ea,F,Ir(ea,D,0,0)|0)|0;z=c[va>>2]|0}while(0);B=B+1|0}while((B|0)<(z|0));z=F;if(!z){S=0;break}S=Vq(ga,72,0,z,0)|0}else S=0;while(0);R=P+12|0;do if((c[R>>2]|0)>0){u=P+20|0;t=(S|0)==0;s=W+44|0;w=ca+32|0;x=ca+4|0;z=ca+24|0;B=W+8|0;D=ga+60|0;E=ga+56|0;F=S+12|0;Q=0;y=0;h=0;v=240;while(1){H=c[u>>2]|0;if((c[H+(Q*48|0)+8>>2]|0)!=(n|0)?(b[H+(Q*48|0)+18>>1]&512)==0:0)H=v;else ua=407;do if((ua|0)==407){ua=0;H=c[H+(Q*48|0)>>2]|0;do if(!t){if(c[H+4>>2]&1)break;c[F>>2]=H;H=S}while(0);I=Rs(ga,V,H,0,0,v,Z)|0;if(!I){H=v;break}Lu(ga,V,I+736|0,sa,d[$>>0]|0,0);do if(!(b[Ba>>1]&8)){L=(Q|0)==((c[R>>2]|0)+-1|0)?-1:Q;do if(!(a[s>>0]&32)){G=sh(ca,130,A,0,_s(ga,W,-1,n,T,0)|0)|0;th(ca,G,L,-14)}else{H=c[B>>2]|0;D:do if(!H)H=0;else while(1){if((a[H+51>>0]&3)==2)break D;H=c[H+20>>2]|0;if(!H){H=0;break}}while(0);M=b[H+46>>1]|0;J=M&65535;P=c[D>>2]|0;N=c[E>>2]|0;if((N|0)<(J|0)){K=c[X>>2]|0;c[X>>2]=K+J;K=K+1|0}else{c[D>>2]=P+J;c[E>>2]=N-J;K=P}if(M<<16>>16){N=H+4|0;P=0;do{_s(ga,W,b[(c[N>>2]|0)+(P<<1)>>1]|0,n,P+K|0,0)|0;P=P+1|0}while((P|0)<(J|0))}P=(L|0)!=0;if(P){G=sh(ca,69,A,0,K)|0;th(ca,G,J,-14);if((L|0)>-1)ua=426}else{G=0;ua=426}do if((ua|0)==426){ua=0;sh(ca,49,K,J,T)|0;sh(ca,110,A,T,0)|0;if(!P)break;L=c[x>>2]|0;if(!L)break;a[L+(((c[w>>2]|0)+-1|0)*20|0)+3>>0]=16}while(0);$s(ga,K,J);if((c[E>>2]|0)>=(J|0))break;c[E>>2]=J;c[D>>2]=K}while(0);sh(ca,17,Y,_,0)|0;if(!G)break;H=c[w>>2]|0;if(H>>>0>G>>>0)c[(c[x>>2]|0)+(G*20|0)+8>>2]=H;c[(c[z>>2]|0)+88>>2]=H+-1}else sh(ca,17,Y,_,0)|0;while(0);h=(a[I+39>>0]|0)==0?h:1;H=c[I+800>>2]|0;do if(!(c[H+36>>2]&512)){y=0;H=v}else{if((Q|0)!=0?(c[H+28>>2]|0)!=(y|0):0){y=0;H=v;break}y=c[H+28>>2]|0;if((a[s>>0]&32)!=0?(a[y+51>>0]&3)==2:0){y=0;H=v;break}H=(v&65535|4096)&65535}while(0);Ts(I)}while(0);Q=Q+1|0;if((Q|0)>=(c[R>>2]|0))break;else v=H}c[k+(sa*80|0)+792>>2]=y;if(!y){s=h;break}c[k+(sa*80|0)+744>>2]=Z;s=h}else{c[k+(sa*80|0)+792>>2]=0;s=0}while(0);if(S){c[S+12>>2]=0;Ck(ea,S)}w=ca+32|0;h=c[w>>2]|0;if(h>>>0>U>>>0)c[(c[ca+4>>2]|0)+(U*20|0)+4>>2]=h;sh(ca,16,0,c[aa>>2]|0,0)|0;y=c[ca+24>>2]|0;x=~_;do if((_|0)<0){h=c[y+112>>2]|0;if(!h)break;c[h+(x<<2)>>2]=c[w>>2]}while(0);c[y+88>>2]=(c[w>>2]|0)+-1;if((d[ya>>0]|0)>1)ig(ea,V);if(s){ua=459;break}Nu(r,l);ua=459}else{ua=c[F+(H*72|0)+36>>2]|0;sh(ca,20,ua,0,c[F+(H*72|0)+32>>2]|0)|0;c[k+(sa*80|0)+788>>2]=sh(ca,22,ua,G,0)|0;a[k+(sa*80|0)+781>>0]=16;ua=459}while(0);if((ua|0)==459){ua=0;h=c[va>>2]|0;do if((h|0)>0){u=k+(sa*80|0)+772|0;v=ca+32|0;z=ca+4|0;A=ca+24|0;t=c[wa>>2]|0;while(1){s=t+20|0;y=b[s>>1]|0;do if(!(y&6)){aa=t+40|0;$=fa;if(!((c[$>>2]&c[aa>>2]|0)==0?(c[$+4>>2]&c[aa+4>>2]|0)==0:0)){a[ja>>0]=1;break}x=c[t>>2]|0;if((c[r>>2]|0)!=0?(c[x+4>>2]&1|0)==0:0)break;do if(!(y&512))ct(ga,x,da,16);else{w=sh(ca,46,c[u>>2]|0,0,0)|0;ct(ga,x,da,16);if(!w)break;y=c[v>>2]|0;if(y>>>0>w>>>0)c[(c[z>>2]|0)+(w*20|0)+8>>2]=y;c[(c[A>>2]|0)+88>>2]=y+-1}while(0);b[s>>1]=e[s>>1]|4}while(0);h=h+-1|0;if((h|0)<=0)break;else t=t+48|0}u=c[va>>2]|0;if((u|0)<=0){ua=475;break}w=c[wa>>2]|0;while(1){do if(!(b[w+20>>1]&6)){if((b[w+18>>1]|0)!=1026)break;if((c[w+8>>2]|0)!=(n|0))break;if(c[r>>2]|0)break;y=c[w>>2]|0;h=Bu(Fa,n,c[w+12>>2]|0,q,p,3,0)|0;if(!h)break;if(b[h+20>>1]&4)break;x=ih(ea,48,0)|0;if(!x)break;H=x+0|0;z=(c[h>>2]|0)+0|0;h=H+48|0;do{c[H>>2]=c[z>>2];H=H+4|0;z=z+4|0}while((H|0)<(h|0));c[x+12>>2]=c[y+12>>2];ct(ga,x,da,16);ig(ea,x)}while(0);u=u+-1|0;if((u|0)<=0)break;else w=w+48|0}}else ua=475;while(0);if((ua|0)==475)ua=0;r=c[r>>2]|0;do if(r){c[k+(sa*80|0)+764>>2]=c[ca+32>>2];sh(ca,25,1,r,0)|0;Ys(ga);r=c[va>>2]|0;if((r|0)<=0)break;u=0;t=c[wa>>2]|0;while(1){q=t+20|0;do if(!(b[q>>1]&6)){ca=t+40|0;aa=fa;if(!((c[aa>>2]&c[ca>>2]|0)==0?(c[aa+4>>2]&c[ca+4>>2]|0)==0:0))break;ct(ga,c[t>>2]|0,da,16);b[q>>1]=e[q>>1]|4;r=c[va>>2]|0}while(0);u=u+1|0;if((u|0)>=(r|0))break;else t=t+48|0}}while(0);p=fa;q=c[p>>2]|0;p=c[p+4>>2]|0}c[Aa>>2]=c[ta+(sa*80|0)+24>>2];sa=sa+1|0;if((sa|0)>=(o|0))break a}}}while(0);if(Ga)k=0;else{c[Ca>>2]=c[Da>>2];Tu(Ia,k);k=0}}else{c[Ka>>2]=64;ph(f,33504,Ka);k=0}while(0);i=Ma;return k|0}function Ss(a){a=a|0;var b=0,c=0,d=0,e=0;e=a<<16>>16;do if(a<<16>>16>=10){a=(e|0)%10|0;b=((a|0)<0)<<31>>31;if(a>>>0>4){c=fw(a|0,b|0,-2,-1)|0;d=C}else{c=((a|0)!=0)<<31>>31;c=fw(c|0,((c|0)<0)<<31>>31|0,a|0,b|0)|0;d=C}b=((e|0)/10|0)<<16;a=b>>16;if((b|0)<=131072){b=fw(c|0,d|0,8,0)|0;a=iw(b|0,C|0,3-a|0)|0;b=C;break}if((b|0)>3932160){b=2147483647;a=-1}else{b=fw(c|0,d|0,8,0)|0;a=ew(b|0,C|0,a+-3|0)|0;b=C}}else{b=0;a=1}while(0);C=b;return a|0}function Ts(e){e=e|0;var 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;C=c[e>>2]|0;D=c[C+8>>2]|0;F=c[e+4>>2]|0;G=c[C>>2]|0;Ys(C);H=e+41|0;g=a[H>>0]|0;if(!(g<<24>>24))f=D+24|0;else{f=D+24|0;p=D+32|0;r=D+4|0;o=g&255;do{o=o+-1|0;i=c[e+(o*80|0)+800>>2]|0;A=c[e+(o*80|0)+760>>2]|0;g=c[f>>2]|0;h=~A;if((A|0)<0?(s=c[g+112>>2]|0,(s|0)!=0):0)c[s+(h<<2)>>2]=c[p>>2];c[g+88>>2]=(c[p>>2]|0)+-1;B=e+(o*80|0)+781|0;h=a[B>>0]|0;if(h<<24>>24!=-100?(sh(D,h&255,c[e+(o*80|0)+784>>2]|0,c[e+(o*80|0)+788>>2]|0,d[e+(o*80|0)+782>>0]|0)|0,u=c[r>>2]|0,(u|0)!=0):0)a[u+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=a[e+(o*80|0)+783>>0]|0;t=i+36|0;if((c[t>>2]&2048|0)!=0?(v=e+(o*80|0)+792|0,w=c[v>>2]|0,(w|0)>0):0){A=c[e+(o*80|0)+752>>2]|0;k=c[f>>2]|0;h=~A;if((A|0)<0?(x=c[k+112>>2]|0,(x|0)!=0):0){c[x+(h<<2)>>2]=c[p>>2];l=c[v>>2]|0;j=c[p>>2]|0;c[k+88>>2]=j+-1;g=e+(o*80|0)+796|0;if((l|0)>0)I=16}else{j=c[p>>2]|0;c[k+88>>2]=j+-1;g=e+(o*80|0)+796|0;l=w;I=16}if((I|0)==16){I=0;h=k;n=l;m=(c[g>>2]|0)+((l+-1|0)*12|0)|0;while(1){l=m+4|0;k=c[l>>2]|0;i=k+1|0;if(j>>>0>i>>>0)c[(c[r>>2]|0)+(i*20|0)+8>>2]=j;c[h+88>>2]=j+-1;sh(D,d[m+8>>0]|0,c[m>>2]|0,k,0)|0;l=(c[l>>2]|0)+-1|0;j=c[p>>2]|0;if(j>>>0>l>>>0)c[(c[r>>2]|0)+(l*20|0)+8>>2]=j;h=c[f>>2]|0;c[h+88>>2]=j+-1;n=n+-1|0;if((n|0)<=0)break;else m=m+-12|0}}ig(G,c[g>>2]|0)}A=c[e+(o*80|0)+748>>2]|0;i=c[f>>2]|0;h=~A;if((A|0)<0?(q=c[i+112>>2]|0,(q|0)!=0):0)c[q+(h<<2)>>2]=c[p>>2];h=c[p>>2]|0;c[i+88>>2]=h+-1;i=e+(o*80|0)+756|0;g=c[i>>2]|0;if(g){sh(D,16,0,g,0)|0;i=c[i>>2]|0;h=c[p>>2]|0;if(h>>>0>i>>>0)c[(c[r>>2]|0)+(i*20|0)+8>>2]=h;j=h+-1|0;g=(c[f>>2]|0)+88|0;c[g>>2]=j;i=i+-2|0;if(h>>>0>i>>>0)c[(c[r>>2]|0)+(i*20|0)+8>>2]=h;c[g>>2]=j}i=c[e+(o*80|0)+776>>2]|0;if(i){if(!(a[(c[D>>2]|0)+65>>0]|0))h=(c[r>>2]|0)+((((i|0)<1?h:i)+-1|0)*20|0)|0;else h=29120;sh(D,(c[h+4>>2]|0)==0?141:140,c[e+(o*80|0)+772>>2]|0,i,0)|0}g=c[e+(o*80|0)+736>>2]|0;if(g){j=sh(D,137,g,0,0)|0;g=c[t>>2]|0;if(!(g&64)){sh(D,104,c[F+(o*72|0)+48>>2]|0,0,0)|0;g=c[t>>2]|0}if(g&512)sh(D,104,c[e+(o*80|0)+744>>2]|0,0,0)|0;g=c[e+(o*80|0)+764>>2]|0;if((a[B>>0]|0)==18)sh(D,17,c[e+(o*80|0)+784>>2]|0,g,0)|0;else sh(D,16,0,g,0)|0;g=c[p>>2]|0;if(g>>>0>j>>>0)c[(c[r>>2]|0)+(j*20|0)+8>>2]=g;c[(c[f>>2]|0)+88>>2]=g+-1}}while((o|0)>0)}A=c[e+52>>2]|0;g=c[f>>2]|0;f=~A;if((A|0)<0?(y=c[g+112>>2]|0,(y|0)!=0):0)c[y+(f<<2)>>2]=c[D+32>>2];B=D+32|0;c[g+88>>2]=(c[B>>2]|0)+-1;if(a[H>>0]|0){u=e+34|0;v=e+38|0;w=e+64|0;x=G+65|0;y=D+4|0;z=0;A=e+736|0;while(1){i=d[A+44>>0]|0;j=c[F+(i*72|0)+24>>2]|0;h=c[A+64>>2]|0;if((a[F+(i*72|0)+45>>0]&4)!=0?(a[x>>0]|0)==0:0){k=c[B>>2]|0;h=c[A+32>>2]|0;if(!(a[(c[D>>2]|0)+65>>0]|0))g=(c[y>>2]|0)+(((h|0)<0?k+-1|0:h)*20|0)|0;else g=29120;if((h|0)<(k|0)){l=c[A+4>>2]|0;j=F+(i*72|0)+40|0;i=g;while(1){g=i+4|0;do if((c[g>>2]|0)==(l|0)){f=a[i>>0]|0;if(f<<24>>24==47){a[i>>0]=33;s=i+8|0;c[g>>2]=(c[j>>2]|0)+(c[s>>2]|0);t=i+12|0;c[s>>2]=c[t>>2];c[t>>2]=0;break}else if(f<<24>>24==103){a[i>>0]=28;c[g>>2]=0;c[i+12>>2]=0;break}else break}while(0);h=h+1|0;if((h|0)==(k|0))break;else i=i+20|0}}}else I=64;do if((I|0)==64){I=0;t=j+44|0;if(((a[t>>0]&2)==0?(c[j+12>>2]|0)==0:0)?(b[u>>1]&16)==0:0){g=c[h+36>>2]|0;if((a[v>>0]|0)==0&(g&64|0)==0)sh(D,61,c[F+(i*72|0)+48>>2]|0,0,0)|0;if((g&17152|0)==512?(E=c[A+8>>2]|0,(E|0)!=(c[w>>2]|0)):0)sh(D,61,E,0,0)|0}g=c[h+36>>2]|0;if(!(g&576)){if(!(g&8192))break;g=A+56|0}else g=h+28|0;h=c[g>>2]|0;if((h|0)!=0?(a[x>>0]|0)==0:0){r=c[B>>2]|0;l=c[A+32>>2]|0;if(!(a[(c[D>>2]|0)+65>>0]|0))k=(c[y>>2]|0)+(((l|0)<0?r+-1|0:l)*20|0)|0;else k=29120;if((l|0)<(r|0)){s=h+48|0;p=h+4|0;q=A+8|0;o=j+8|0;f=c[A+4>>2]|0;g=k;while(1){h=g+4|0;a:do if((c[h>>2]|0)==(f|0)){k=a[g>>0]|0;if(k<<24>>24==103){c[h>>2]=c[q>>2];a[g>>0]=112;break}else if(k<<24>>24!=47)break;i=g+8|0;k=c[i>>2]|0;if(a[t>>0]&32){j=o;while(1){j=c[j>>2]|0;if((a[j+51>>0]&3)==2)break;else j=j+20|0}k=b[(c[j+4>>2]|0)+(k<<1)>>1]|0}n=k&65535;k=b[s>>1]|0;if(k<<16>>16){j=c[p>>2]|0;m=k&65535;k=0;while(1){if((b[j+(k<<1)>>1]|0)==n<<16>>16)break;k=k+1|0;if((k|0)>=(m|0))break a}if((k&65535)<<16>>16>-1){c[i>>2]=k<<16>>16;c[h>>2]=c[q>>2]}}}while(0);l=l+1|0;if((l|0)==(r|0))break;else g=g+20|0}}}}while(0);z=z+1|0;if((z|0)>=(d[H>>0]|0))break;else A=A+80|0}}c[C+424>>2]=c[e+56>>2];Tu(G,e);return}function Us(a,b){a=a|0;b=b|0;var d=0,e=0;if((b|0)!=0?(c[b>>2]|0)>0:0){d=0;e=c[b+4>>2]|0;while(1){Uu(a,c[e>>2]|0);d=d+1|0;if((d|0)>=(c[b>>2]|0))break;else e=e+20|0}}return}function Vs(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))ba();r=u;h=c[e+24>>2]|0;s=c[h>>2]|0;m=c[h+4>>2]|0;t=c[h+12>>2]|0;g=d[f>>0]|0;a:do if((g|0)==154|(g|0)==156)if((m|0)!=0?(l=c[m>>2]|0,(l|0)>0):0){p=f+28|0;o=c[p>>2]|0;g=0;h=m+8|0;while(1){if((o|0)==(c[h+40>>2]|0))break;g=g+1|0;if((g|0)>=(l|0)){e=1;break a}else h=h+72|0}n=t+28|0;k=t+32|0;h=c[k>>2]|0;b:do if((h|0)>0){m=f+32|0;e=0;l=c[n>>2]|0;while(1){if((c[l+4>>2]|0)==(o|0)?(c[l+8>>2]|0)==(b[m>>1]|0):0)break b;e=e+1|0;if((e|0)<(h|0))l=l+24|0;else break}}else e=0;while(0);c:do if((e|0)>=(h|0)){h=Dt(c[s>>2]|0,c[n>>2]|0,24,k,r)|0;c[n>>2]=h;e=c[r>>2]|0;if((e|0)>-1){c[h+(e*24|0)>>2]=c[f+44>>2];k=c[p>>2]|0;c[h+(e*24|0)+4>>2]=k;l=b[f+32>>1]|0;c[h+(e*24|0)+8>>2]=l<<16>>16;p=s+72|0;m=(c[p>>2]|0)+1|0;c[p>>2]=m;c[h+(e*24|0)+16>>2]=m;m=h+(e*24|0)+12|0;c[m>>2]=-1;c[h+(e*24|0)+20>>2]=f;h=c[t+24>>2]|0;d:do if((h|0)!=0?(q=c[h>>2]|0,(q|0)>0):0){g=0;h=c[h+4>>2]|0;while(1){p=c[h>>2]|0;if(((a[p>>0]|0)==-102?(c[p+28>>2]|0)==(k|0):0)?(b[p+32>>1]|0)==l<<16>>16:0)break;g=g+1|0;if((g|0)>=(q|0))break d;else h=h+20|0}c[m>>2]=g;if((g|0)>=0)break c}while(0);p=t+12|0;q=c[p>>2]|0;c[p>>2]=q+1;c[m>>2]=q}}while(0);c[f+40>>2]=t;a[f>>0]=-100;b[f+34>>1]=e;e=1}else e=1;else if(((g|0)==155?(b[h+28>>1]&8)==0:0)?(c[e+16>>2]|0)==(d[f+38>>0]|0):0){l=t+40|0;m=t+44|0;g=c[m>>2]|0;e:do if((g|0)>0){e=0;h=c[l>>2]|0;while(1){if(!(yu(c[h>>2]|0,f,-1)|0))break e;e=e+1|0;if((e|0)<(g|0))h=h+16|0;else break}}else e=0;while(0);do if((e|0)>=(g|0)){k=c[s>>2]|0;n=a[k+62>>0]|0;k=Dt(k,c[l>>2]|0,16,m,r)|0;c[l>>2]=k;e=c[r>>2]|0;if((e|0)>-1){c[k+(e<<4)>>2]=f;l=s+72|0;m=(c[l>>2]|0)+1|0;c[l>>2]=m;c[k+(e<<4)+8>>2]=m;m=c[s>>2]|0;l=c[f+8>>2]|0;if(!l)g=0;else{h=l;while(1)if(!(a[h>>0]|0))break;else h=h+1|0;g=h-l&1073741823}h=c[f+20>>2]|0;if(!h)h=0;else h=c[h>>2]|0;c[k+(e<<4)+4>>2]=Oh(m,l,g,h,n,0)|0;if(!(c[f+4>>2]&16)){c[k+(e<<4)+12>>2]=-1;break}else{p=s+68|0;q=c[p>>2]|0;c[p>>2]=q+1;c[k+(e<<4)+12>>2]=q;break}}}while(0);b[f+34>>1]=e;c[f+40>>2]=t;e=1}else e=0;while(0);i=u;return e|0}function Ws(a,b){a=a|0;b=b|0;return 0}function Xs(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;if((a[b+450>>0]|0)==2){g=c[b+8>>2]|0;h=c[b>>2]|0;c[e>>2]=d;e=qh(h,35e3,e)|0;th(g,sh(g,157,c[b+464>>2]|0,0,0)|0,e,-1)}i=f;return}function Ys(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=b+19|0;i=0;j=b+116|0;while(1){e=j+12|0;f=c[e>>2]|0;if(f){g=j+6|0;if(a[g>>0]|0){h=a[d>>0]|0;if((h&255)<8){a[d>>0]=h+1<<24>>24;c[b+((h&255)<<2)+24>>2]=f}a[g>>0]=0}c[e>>2]=0}i=i+1|0;if((i|0)==10)break;else j=j+20|0}return}function Zs(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=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;z=i;i=i+32|0;if((i|0)>=(j|0))baba();n=p+4|0;o=p;m=c[b+8>>2]|0;c[n>>2]=0;c[o>>2]=0;if(!((m|0)==0|(e|0)==0)){q=d[e>>0]|0;h=q^1;a:do switch(q|0){case 71:{l=ts(m)|0;Vu(b,c[e+12>>2]|0,l,g^16);h=b+100|0;c[h>>2]=(c[h>>2]|0)+1;ct(b,c[e+16>>2]|0,f,g);f=c[m+24>>2]|0;h=~l;if((l|0)<0?(k=c[f+112>>2]|0,(k|0)!=0):0)c[k+(h<<2)>>2]=c[m+32>>2];c[f+88>>2]=(c[m+32>>2]|0)+-1;Zt(b);break}case 74:{Wu(b,e,f,0,g);break}case 19:{Vu(b,c[e+12>>2]|0,f,g);break}case 72:{ct(b,c[e+12>>2]|0,f,g);m=b+100|0;c[m>>2]=(c[m>>2]|0)+1;ct(b,c[e+16>>2]|0,f,g);Zt(b);break}case 77:case 76:{sh(m,h,Xt(b,c[e+12>>2]|0,n)|0,f,0)|0;break}case 79:case 78:case 83:case 80:case 81:case 82:{q=e+12|0;l=Xt(b,c[q>>2]|0,n)|0;k=e+16|0;m=Xt(b,c[k>>2]|0,o)|0;Yt(b,c[q>>2]|0,c[k>>2]|0,h,l,m,f,g);break}case 148:case 73:{g=e+12|0;l=Xt(b,c[g>>2]|0,n)|0;k=e+16|0;m=Xt(b,c[k>>2]|0,o)|0;Yt(b,c[g>>2]|0,c[k>>2]|0,(a[e>>0]|0)==73?78:79,l,m,f,128);break}case 75:{if(g){bu(b,e,f,f);break a}k=ts(m)|0;bu(b,e,f,k);h=c[m+24>>2]|0;f=~k;if((k|0)<0?(l=c[h+112>>2]|0,(l|0)!=0):0)c[l+(f<<2)>>2]=c[m+32>>2];c[h+88>>2]=(c[m+32>>2]|0)+-1;break}default:{if(iu(e)|0){sh(m,16,0,f,0)|0;break a}if(!(Xu(e)|0))sh(m,46,Xt(b,e,n)|0,f,(g|0)!=0&1)|0}}while(0);Wr(b,c[n>>2]|0);Wr(b,c[o>>2]|0)}i=p;return}function dt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;f=c[a+8>>2]|0;g=b+44|0;if((c[g>>2]|0)!=(0-(c[b+32>>2]|0)|0)?(sh(f,28,0,c[b+16>>2]|0,c[b+20>>2]|0)|0,(c[g>>2]|0)>0):0){h=0;e=c[b+40>>2]|0;while(1){b=e+12|0;do if((c[b>>2]|0)>-1){d=c[(c[e>>2]|0)+20>>2]|0;if((d|0)!=0?(c[d>>2]|0)==1:0){d=Qs(a,d,0,0)|0;th(f,sh(f,57,c[b>>2]|0,0,0)|0,d,-6);break}ph(a,34944,k);c[b>>2]=-1}while(0);h=h+1|0;if((h|0)>=(c[g>>2]|0))break;else e=e+16|0}}i=l;return}function et(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if((b|0)>0){e=sh(a,138,b,0,-1)|0;sh(a,16,0,d,0)|0;b=c[a+32>>2]|0;if(b>>>0>e>>>0)c[(c[a+4>>2]|0)+(e*20|0)+8>>2]=b;c[(c[a+24>>2]|0)+88>>2]=b+-1}return}function ft(a,b,e,f,g){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;var h=0;if((c[(c[a>>2]|0)+24>>2]&8388608|0)!=0?(h=ws(a,b)|0,(h|0)!=0):0){a=0;b=h;do{if((d[b+8>>0]|0|0)==(e|0)?(Yu(c[b+16>>2]|0,f)|0)!=0:0)a=d[b+9>>0]|0|a;b=c[b+32>>2]|0}while((b|0)!=0)}else{a=0;h=0}if(g)c[g>>2]=a;return ((a|0)!=0?h:0)|0}function gt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;h=a[d+44>>0]|0;if(h&16){g=c[b>>2]|0;f=d+60|0;while(1){f=c[f>>2]|0;if((c[f>>2]|0)==(g|0))break;else f=f+24|0}if(!(c[(c[c[f+4>>2]>>2]|0)+52>>2]|0))g=8;else g=5}else g=5;do if((g|0)==5){if(((h&1)!=0?(c[(c[b>>2]|0)+24>>2]&2048|0)==0:0)?(a[b+18>>0]|0)==0:0){g=8;break}if((e|0)==0?(c[d+12>>2]|0)!=0:0){c[k>>2]=c[d>>2];ph(b,34456,k);f=1}else f=0}while(0);if((g|0)==8){c[k>>2]=c[d>>2];ph(b,34424,k);f=1}i=l;return f|0}function ht(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+32|0;if((i|0)>=(j|0))ba();o=p;n=c[b>>2]|0;h=c[d+68>>2]|0;a:do if(h){g=c[n+20>>2]|0;if((g|0)>0){l=c[n+16>>2]|0;m=0;while(1){k=m+1|0;if((c[l+(m<<4)+12>>2]|0)==(h|0)){k=m;break a}if((k|0)<(g|0))m=k;else break}}else k=0}else k=-1e6;while(0);g=Ir(n,e,0,0)|0;h=lr(n,0,0,0)|0;if(h){c[h+16>>2]=gh(n,c[d>>2]|0)|0;c[h+12>>2]=gh(n,c[(c[n+16>>2]|0)+(k<<4)>>2]|0)|0}e=gr(b,0,h,g,0,0,0,0,0,0)|0;a[o>>0]=12;c[o+4>>2]=f;a[o+1>>0]=0;c[o+8>>2]=0;c[o+12>>2]=0;er(b,e,o)|0;Ik(n,e,1);i=p;return}function it(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+16|0;if((i|0)>=(j|0))ba();o=p+4|0;h=p;a:do if(c[(c[a>>2]|0)+24>>2]&524288){if(!e){f=Zm((c[d+68>>2]|0)+56|0,c[d>>2]|0,h)|0;if((f|0)!=0?(c[f+8>>2]|0)!=0:0)g=1;else g=(c[d+16>>2]|0)!=0;g=g&1;break}a=c[d+16>>2]|0;if(a){m=d+36|0;n=(f|0)!=0;do{h=c[a+20>>2]|0;if((h|0)>0){l=0;do{k=c[a+(l<<3)+36>>2]|0;if((c[e+(k<<2)>>2]|0)>-1){g=1;break a}l=l+1|0;if((k|0)==(b[m>>1]|0)&n){g=1;break a}}while((l|0)<(h|0))}a=c[a+4>>2]|0}while((a|0)!=0)}h=Zm((c[d+68>>2]|0)+56|0,c[d>>2]|0,o)|0;if((h|0)!=0?(g=c[h+8>>2]|0,(g|0)!=0):0)while(1){if(Zu(d,g,e,f)|0){g=1;break a}g=c[g+12>>2]|0;if(!g){g=0;break}}else g=0}else g=0;while(0);i=p;return g|0}function jt(e,f,g,h,i){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0;if((h|0)>=0?(b[f+36>>1]|0)!=(h|0):0){j=d[f+44>>0]|0;n=(j&16|0)!=0?150:47;if(!(j&32))j=h;else{j=c[f+8>>2]|0;a:do if(!j)j=0;else while(1){if((a[j+51>>0]&3)==2)break a;j=c[j+20>>2]|0;if(!j){j=0;break}}while(0);m=h&65535;k=b[j+48>>1]|0;b:do if(!(k<<16>>16))j=-1;else{l=c[j+4>>2]|0;k=k&65535;j=0;while(1){if((b[l+(j<<1)>>1]|0)==m<<16>>16)break b;j=j+1|0;if((j|0)>=(k|0)){j=-1;break}}}while(0);j=j<<16>>16}sh(e,n,g,j,i)|0}else sh(e,103,g,i,0)|0;if((h|0)>-1)Jt(e,f,h,i);return}function kt(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0;j=f+16|0;g=c[j>>2]|0;do if(!g){h=c[f+12>>2]|0;g=c[d>>2]|0;i=f+48|0;d=mg((e[i>>1]|0)+1|0,0)|0;c[j>>2]=d;if(!d){a[g+65>>0]=1;g=0;break}if(!(b[i>>1]|0))g=0;else{f=f+4|0;h=h+4|0;g=0;do{d=b[(c[f>>2]|0)+(g<<1)>>1]|0;if(d<<16>>16<0)d=68;else d=a[(c[h>>2]|0)+((d<<16>>16)*24|0)+21>>0]|0;a[(c[j>>2]|0)+g>>0]=d;g=g+1|0}while((g|0)<(e[i>>1]|0));d=c[j>>2]|0}a[d+g>>0]=0;g=c[j>>2]|0}while(0);return g|0}function lt(b,d,e,f,g,h,i){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=d+44|0;if(!(a[r>>0]&16)){k=c[b>>2]|0;m=c[d+68>>2]|0;a:do if(m){n=c[k+20>>2]|0;if((n|0)>0){k=c[k+16>>2]|0;l=0;while(1){j=l+1|0;if((c[k+(l<<4)+12>>2]|0)==(m|0))break a;if((j|0)<(n|0))l=j;else{l=j;break}}}else l=0}else l=-1e6;while(0);q=Kq(b)|0;if((f|0)<0)f=c[b+68>>2]|0;k=f+1|0;p=(h|0)!=0;if(p)c[h>>2]=f;do if(!(a[r>>0]&32)){if((g|0)!=0?(a[g>>0]|0)==0:0){o=15;break}Mq(b,f,l,d,e)}else o=15;while(0);if((o|0)==15)cs(b,l,c[d+32>>2]|0,(e|0)==55&1,c[d>>2]|0);if(i)c[i>>2]=k;f=c[d+8>>2]|0;if(!f)j=0;else{m=(g|0)==0;d=b+8|0;n=k;j=0;while(1){k=n+1|0;if((a[f+51>>0]&3)==2?(a[r>>0]&32)!=0&p:0)c[h>>2]=n;j=j+1|0;if(!(!m?(a[g+j>>0]|0)==0:0)){sh(q,e,n,c[f+40>>2]|0,l)|0;o=c[d>>2]|0;th(o,-1,ds(b,f)|0,-6)}f=c[f+20>>2]|0;if(!f)break;else n=k}}f=b+68|0;if((k|0)>(c[f>>2]|0))c[f>>2]=k}else j=0;return j|0}function mt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=c[b+408>>2]|0;h=(h|0)==0?b:h;g=h+452|0;b=c[g>>2]|0;e=c[h+520>>2]|0;a:do if((b|0)>0){f=0;while(1){if((c[e+(f<<2)>>2]|0)==(d|0))break a;f=f+1|0;if((f|0)>=(b|0)){i=4;break}}}else i=4;while(0);do if((i|0)==4){b=Tc(e,(b<<2)+4|0)|0;if(!b){a[(c[h>>2]|0)+65>>0]=1;break}else{c[h+520>>2]=b;e=c[g>>2]|0;c[g>>2]=e+1;c[b+(e<<2)>>2]=d;break}}while(0);return}function nt(d,e,f,g,h,i,j,k,l,m){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;w=c[d+8>>2]|0;x=ts(w)|0;u=(a[e+44>>0]&32)>>>4^70;if(!(m<<24>>24))th(w,sh(w,u,g,x,i)|0,j<<16>>16,-14);if((it(d,e,0,0)|0)!=0|(f|0)!=0){q=l&255;r=rt(d,f,0,0,3,e,q)|0;r=qt(d,e)|0|r;o=d+72|0;n=c[o>>2]|0;m=n+1|0;s=e+38|0;c[o>>2]=m+(b[s>>1]|0);sh(w,33,i,m,0)|0;o=b[s>>1]|0;if(o<<16>>16>0){t=(r|0)==-1;p=n+2|0;n=0;do{if(!t){if((n|0)<32?(1<<n&r|0)!=0:0)v=9}else v=9;if((v|0)==9){v=0;jt(w,e,g,n,p+n|0);o=b[s>>1]|0}n=n+1|0}while((n|0)<(o<<16>>16|0))}t=w+32|0;s=c[t>>2]|0;tt(d,f,109,0,1,e,m,q,x);if((s|0)<(c[t>>2]|0))th(w,sh(w,u,g,x,i)|0,j<<16>>16,-14);vt(d,e,m,0,0,0)}else m=0;if((c[e+12>>2]|0)==0?(wt(d,e,g,h,0),sh(w,95,g,k<<24>>24!=0&1,0)|0,k<<24>>24!=0):0)th(w,-1,c[e>>2]|0,0);yt(d,e,0,m,0,0);tt(d,f,109,0,2,e,m,l&255,x);n=c[w+24>>2]|0;m=~x;if((x|0)<0?(y=c[n+112>>2]|0,(y|0)!=0):0)c[y+(m<<2)>>2]=c[w+32>>2];c[n+88>>2]=(c[w+32>>2]|0)+-1;return}function ot(b){b=b|0;var 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;j=c[b+8>>2]|0;d=c[b+404>>2]|0;if(d){l=(c[b>>2]|0)+16|0;m=b+19|0;n=b+72|0;o=j+32|0;p=j+4|0;k=j+24|0;do{f=c[d+8>>2]|0;g=c[l>>2]|0;i=c[d+12>>2]|0;e=a[m>>0]|0;if(!(e<<24>>24)){h=(c[n>>2]|0)+1|0;c[n>>2]=h}else{h=e+-1<<24>>24;a[m>>0]=h;h=c[b+((h&255)<<2)+24>>2]|0}Mq(b,0,f,c[(c[g+(f<<4)+12>>2]|0)+72>>2]|0,55);g=i+1|0;f=sh(j,77,g,0,0)|0;sh(j,74,0,g,0)|0;e=c[o>>2]|0;if(e>>>0>f>>>0)c[(c[p>>2]|0)+(f*20|0)+8>>2]=e;c[(c[k>>2]|0)+88>>2]=e+-1;sh(j,49,i+-1|0,2,h)|0;sh(j,75,0,h,g)|0;e=c[p>>2]|0;if(e)a[e+(((c[o>>2]|0)+-1|0)*20|0)+3>>0]=8;sh(j,61,0,0,0)|0;Wr(b,h);d=c[d>>2]|0}while((d|0)!=0)}return}function pt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;c[g>>2]=e;if(!e)f=0;else{f=e;while(1)if(!(a[f>>0]|0))break;else f=f+1|0;f=f-e&1073741823}c[g+4>>2]=f;f=jr(b,d,g,0)|0;i=h;return f|0}function qt(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();k=o+4|0;n=o;if(c[(c[a>>2]|0)+24>>2]&524288){f=c[d+16>>2]|0;if(!f)e=0;else{e=0;do{g=c[f+20>>2]|0;if((g|0)>0){h=0;do{p=c[f+(h<<3)+36>>2]|0;e=((p|0)>31?-1:1<<p)|e;h=h+1|0}while((h|0)<(g|0))}f=c[f+4>>2]|0}while((f|0)!=0)}f=Zm((c[d+68>>2]|0)+56|0,c[d>>2]|0,k)|0;if((f|0)!=0?(l=c[f+8>>2]|0,(l|0)!=0):0)do{c[n>>2]=0;It(a,d,l,n,0)|0;f=c[n>>2]|0;if((f|0)!=0?(m=b[f+46>>1]|0,m<<16>>16!=0):0){k=m&65535;h=c[f+4>>2]|0;g=0;do{f=b[h+(g<<1)>>1]|0;if(f<<16>>16>31)f=-1;else f=1<<(f<<16>>16);e=f|e;g=g+1|0}while((g|0)<(k|0))}l=c[l+12>>2]|0}while((l|0)!=0)}else e=0;i=o;return e|0}function rt(a,b,e,f,g,h,i){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0;k=(e|0)!=0?110:109;if(!b)j=0;else{j=0;do{if((((d[b+8>>0]|0|0)==(k|0)?((d[b+9>>0]|0)&g|0)!=0:0)?(Yu(c[b+16>>2]|0,e)|0)!=0:0)?(l=_u(a,b,h,i)|0,(l|0)!=0):0)j=c[l+(f<<2)+16>>2]|j;b=c[b+32>>2]|0}while((b|0)!=0)}return j|0}function st(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;l=e+20|0;g=c[l>>2]|0;do if(!g){i=c[d>>2]|0;k=e+38|0;h=(b[k>>1]|0)+1|0;h=mg(h,((h|0)<0)<<31>>31)|0;if(!h){a[i+65>>0]=1;break}if((b[k>>1]|0)>0){i=e+4|0;g=0;do{a[h+g>>0]=a[(c[i>>2]|0)+(g*24|0)+21>>0]|0;g=g+1|0}while((g|0)<(b[k>>1]|0))}else g=0;do{a[h+g>>0]=0;if((g|0)<=0)break;g=g+-1|0}while((a[h+g>>0]|0)==65);c[l>>2]=h;j=10}else{h=g;j=10}while(0);do if((j|0)==10){g=h;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;g=g-h&1073741823;if(g)if(!f){th(d,-1,h,g);break}else{th(d,sh(d,48,f,g,0)|0,h,g);break}}while(0);return}function tt(a,b,e,f,g,h,i,j,k){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;if(b)do{if(((d[b+8>>0]|0|0)==(e|0)?(d[b+9>>0]|0|0)==(g|0):0)?(Yu(c[b+16>>2]|0,f)|0)!=0:0)$u(a,b,h,i,j,k);b=c[b+32>>2]|0}while((b|0)!=0);return}function ut(d,f,g,h,k,l,m,n,o,p,q){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;var 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,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0;la=i;i=i+16|0;if((i|0)>=(j|0))baba();Q=Z+20|0;O=Z+16|0;M=Z+12|0;N=Z+8|0;X=Z+4|0;W=Z;S=c[e>>2]|0;L=e+438|0;R=a[L>>0]|0;V=S+24|0;a:do if(c[V>>2]&524288){P=f+68|0;m=c[P>>2]|0;b:do if(m){o=c[S+20>>2]|0;if((o|0)>0){n=c[S+16>>2]|0;r=0;while(1){q=r+1|0;if((c[n+(r<<4)+12>>2]|0)==(m|0)){q=r;break b}if((q|0)<(o|0))r=q;else break}}else q=0}else q=-1e6;while(0);K=c[(c[S+16>>2]|0)+(q<<4)>>2]|0;x=c[f+16>>2]|0;if(!x)n=f;else{z=(k|0)==0;A=R<<24>>24==0;B=S+65|0;C=g+1|0;D=e+68|0;E=(g|0)==0;F=(h|0)==0;G=e+408|0;H=f+36|0;I=S+284|0;J=(l|0)!=0;y=x;do{c[O>>2]=0;c[M>>2]=0;c:do if(!z){x=c[y+8>>2]|0;if($c(c[f>>2]|0,x)|0){w=c[y+20>>2]|0;if((w|0)>0){n=0;do{m=c[y+(n<<3)+36>>2]|0;if((c[k+(m<<2)>>2]|0)>-1){Y=17;break c}n=n+1|0;if((m|0)==(b[H>>1]|0)&J){Y=17;break c}}while((n|0)<(w|0))}}else Y=17}else{x=c[y+8>>2]|0;Y=17}while(0);do if((Y|0)==17){Y=0;if(!(a[L>>0]|0))v=oh(e,0,x,K)|0;else v=Wh(S,x,K)|0;x=(v|0)==0;if(!x?(It(e,v,y,O,M)|0)==0:0){x=c[M>>2]|0;if(!x){c[N>>2]=c[y+36>>2];x=N}n=y+20|0;if((c[n>>2]|0)>0){t=c[O>>2]|0;o=(t|0)==0;r=v+36|0;s=v+4|0;t=t+4|0;m=0;u=0;do{w=x+(u<<2)|0;if((c[w>>2]|0)==(b[H>>1]|0))c[w>>2]=-1;if(c[I>>2]|0){if(o)w=r;else w=(c[t>>2]|0)+(u<<1)|0;m=(av(e,c[v>>2]|0,c[(c[s>>2]|0)+((b[w>>1]|0)*24|0)>>2]|0,q)|0)==2&1}u=u+1|0}while((u|0)<(c[n>>2]|0));w=v}else{w=v;m=0}cs(e,q,c[v+32>>2]|0,0,c[w>>2]|0);c[D>>2]=(c[D>>2]|0)+1;if(!E)bv(e,q,v,c[O>>2]|0,y,x,g,-1,m);d:do if(!F){w=c[G>>2]|0;w=c[((w|0)==0?e:w)+528>>2]|0;do if(w){w=c[w>>2]|0;if((w|0)==(c[y+28>>2]|0)?(a[y+25>>0]|0)==7:0)break d;if((w|0)!=(c[y+32>>2]|0))break;if((a[y+26>>0]|0)==7)break d}while(0);bv(e,q,v,c[O>>2]|0,y,x,h,1,m)}while(0);ig(S,c[M>>2]|0);break}if(A)break a;if(a[B>>0]|0)break a;if(x){x=Kq(e)|0;w=y+20|0;n=c[w>>2]|0;m=(c[x+32>>2]|0)+1+n|0;if((n|0)>0){n=0;do{sh(x,76,C+(c[y+(n<<3)+36>>2]|0)|0,m,0)|0;n=n+1|0}while((n|0)<(c[w>>2]|0))}sh(x,134,d[y+24>>0]|0,-1,0)|0}}while(0);y=c[y+4>>2]|0}while((y|0)!=0);n=f;m=c[P>>2]|0}m=Zm(m+56|0,c[n>>2]|0,Q)|0;if((m|0)!=0?(p=c[m+8>>2]|0,T=S+65|0,(p|0)!=0):0){r=(k|0)!=0;s=e+408|0;t=e+20|0;u=e+68|0;v=(h|0)==0;w=(g|0)==0;x=r&1;q=R<<24>>24==0;do{c[X>>2]=0;c[W>>2]=0;if(!(r?(Zu(f,p,k,l)|0)==0:0))Y=57;do if((Y|0)==57){Y=0;n=p+24|0;if((((a[n>>0]|0)==0?(c[V>>2]&16777216|0)==0:0)?(c[s>>2]|0)==0:0)?(a[t>>0]|0)==0:0)break;if(It(e,f,p,X,W)|0){if(q)break a;if(!(a[T>>0]|0))break;else break a}m=lr(S,0,0,0)|0;if(m){H=c[p>>2]|0;c[m+24>>2]=H;o=m+16|0;c[o>>2]=c[H>>2];H=H+40|0;b[H>>1]=(b[H>>1]|0)+1<<16>>16;H=c[u>>2]|0;c[u>>2]=H+1;c[m+48>>2]=H;if(!v)cv(e,m,f,c[X>>2]|0,p,c[W>>2]|0,h,-1);if((!w?(U=a[p+x+25>>0]|0,cv(e,m,f,c[X>>2]|0,p,c[W>>2]|0,g,1),(a[n>>0]|0)==0):0)?!(U<<24>>24==7|U<<24>>24==9):0){H=c[s>>2]|0;a[((H|0)==0?e:H)+21>>0]=1}c[o>>2]=0;zo(S,m)}ig(S,c[W>>2]|0)}while(0);p=c[p+12>>2]|0}while((p|0)!=0)}}while(0);i=Z;return}function wt(b,d,f,g,h){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))ba();r=s;q=c[b+8>>2]|0;l=c[d+8>>2]|0;a:do if(a[d+44>>0]&32){if(l){k=l;while(1){if((a[k+51>>0]&3)==2){p=5;break a}k=c[k+20>>2]|0;if(!k){k=0;p=5;break}}}}else{k=0;p=5}while(0);if((p|0)==5?(l|0)!=0:0){n=(h|0)==0;o=0;d=0;m=-1;while(1){if(n){if((l|0)!=(k|0))p=10}else if(!((l|0)==(k|0)?1:(c[h+(o<<2)>>2]|0)==0))p=10;if((p|0)==10){p=0;m=Lt(b,l,f,0,1,r,d,m)|0;sh(q,111,o+g|0,m,e[((a[l+51>>0]&8)==0?l+48|0:l+46|0)>>1]|0)|0;Mt(b,c[r>>2]|0);d=l}l=c[l+20>>2]|0;if(!l)break;else o=o+1|0}}i=s;return}function xt(d,e,f,g,h,i,j,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=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;w=Kq(d)|0;q=c[e+8>>2]|0;if(!q){n=e+44|0;p=0}else{r=(l|0)!=0;n=e+44|0;s=r?17:1;t=w+4|0;u=w+32|0;p=0;v=0;m=q;while(1){o=i+(v<<2)|0;q=c[o>>2]|0;do if(q){if(c[m+36>>2]|0){sh(w,76,q,(c[u>>2]|0)+2|0,0)|0;q=c[o>>2]|0}sh(w,110,v+g|0,q,0)|0;if((a[m+51>>0]&3)==2){q=(a[n>>0]&32)!=0;if(q|r)p=q?s:16;else{p=1;break}}else if(r)p=16;else{p=1;break}q=c[t>>2]|0;if(!q)p=1;else{a[q+(((c[u>>2]|0)+-1|0)*20|0)+3>>0]=p;p=1}}while(0);m=c[m+20>>2]|0;if(!m)break;else v=v+1|0}}if(!(a[n>>0]&32)){o=h+1|0;n=d+19|0;m=a[n>>0]|0;if(!(m<<24>>24)){i=d+72|0;q=(c[i>>2]|0)+1|0;c[i>>2]=q}else{q=m+-1<<24>>24;a[n>>0]=q;q=c[d+((q&255)<<2)+24>>2]|0}n=e+38|0;sh(w,49,o,b[n>>1]|0,q)|0;if(!(p<<24>>24))st(w,e,0);$s(d,o,b[n>>1]|0);o=d+18|0;if(!(a[o>>0]|0))m=(j|0)!=0?5:3;else m=0;if(k)m=(m&255|8)&255;if(!l)n=m;else n=(m&255|16)&255;sh(w,75,f,q,h)|0;if(!(a[o>>0]|0))th(w,-1,c[e>>2]|0,0);m=c[w+4>>2]|0;if(m)a[m+(((c[w+32>>2]|0)+-1|0)*20|0)+3>>0]=n}return}function yt(d,e,f,g,h,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var 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;Y=i;i=i+64|0;if((i|0)>=(j|0))ba();R=Y+52|0;Q=Y+48|0;V=Y+8|0;U=Y;T=Y+40|0;W=Y+32|0;S=Y+24|0;if(((c[(c[d>>2]|0)+24>>2]&524288|0)!=0?(P=e+68|0,l=Zm((c[P>>2]|0)+56|0,c[e>>2]|0,Y+16|0)|0,(l|0)!=0):0)?(m=c[l+8>>2]|0,(m|0)!=0):0){O=(h|0)==0;H=(f|0)!=0;I=H&1;J=W+4|0;K=T+4|0;L=e+4|0;M=S+4|0;N=H?110:109;do{if(!(!O?(Zu(e,m,h,k)|0)==0:0)){E=c[d>>2]|0;D=a[m+I+25>>0]|0;F=D&255;G=m+(I<<2)+28|0;f=c[G>>2]|0;do if(!(D<<24>>24==0|(f|0)!=0)){c[R>>2]=0;c[Q>>2]=0;if(!(It(d,e,m,R,Q)|0)){r=m+20|0;if((c[r>>2]|0)>0){x=34352;w=c[x>>2]|0;x=c[x+4>>2]|0;z=34360;y=c[z>>2]|0;z=c[z+4>>2]|0;A=m+36|0;C=D<<24>>24!=6&(D<<24>>24!=9|H);B=0;o=0;l=0;n=0;do{f=V;c[f>>2]=w;c[f+4>>2]=x;f=U;c[f>>2]=y;c[f+4>>2]=z;f=c[Q>>2]|0;if(!f)f=A;else f=f+(B<<2)|0;q=c[f>>2]|0;s=c[R>>2]|0;if(!s)u=34368;else u=c[(c[L>>2]|0)+((b[(c[s+4>>2]|0)+(B<<1)>>1]|0)*24|0)>>2]|0;c[W>>2]=u;f=c[(c[(c[m>>2]|0)+4>>2]|0)+(q*24|0)>>2]|0;c[T>>2]=f;if(!u)t=0;else{v=u;while(1)if(!(a[v>>0]|0))break;else v=v+1|0;t=v-u&1073741823}c[J>>2]=t;if(!f)p=0;else{u=f;while(1)if(!(a[u>>0]|0))break;else u=u+1|0;p=u-f&1073741823}c[K>>2]=p;v=Vq(d,27,0,0,V)|0;v=Vq(d,122,v,Vq(d,27,0,0,W)|0,0)|0;n=os(E,n,Vq(d,79,v,Vq(d,27,0,0,T)|0,0)|0)|0;if(H){u=Vq(d,27,0,0,V)|0;u=Vq(d,122,u,Vq(d,27,0,0,W)|0,0)|0;v=Vq(d,27,0,0,U)|0;l=os(E,l,Vq(d,73,u,Vq(d,122,v,Vq(d,27,0,0,W)|0,0)|0,0)|0)|0}if(C){do if(D<<24>>24==8){f=c[(c[(c[m>>2]|0)+4>>2]|0)+(q*24|0)+4>>2]|0;if(!f){f=Vq(d,101,0,0,0)|0;break}else{f=Ir(E,f,0,0)|0;break}}else if(D<<24>>24==9){f=Vq(d,27,0,0,U)|0;f=Vq(d,122,f,Vq(d,27,0,0,W)|0,0)|0}else f=Vq(d,101,0,0,0)|0;while(0);o=hr(d,o,f)|0;ir(d,o,T,0)}B=B+1|0}while((B|0)<(c[r>>2]|0));f=m}else{f=m;o=0;l=0;n=0}ig(E,c[Q>>2]|0);v=c[c[f>>2]>>2]|0;if(!v)p=0;else{f=v;while(1)if(!(a[f>>0]|0))break;else f=f+1|0;p=f-v&1073741823}if(D<<24>>24==6){c[S>>2]=v;c[M>>2]=p;f=pt(E,57,34376)|0;if(f)a[f+1>>0]=2;u=hr(d,0,f)|0;u=gr(d,u,lr(E,0,S,0)|0,n,0,0,0,0,0,0)|0;t=0}else{u=0;t=n}q=E+250|0;r=a[q>>0]|0;a[q>>0]=0;f=p+77|0;s=ih(E,f,0)|0;if(s){bw(s|0,0,f|0)|0;n=s+36|0;c[s+28>>2]=n;D=s+76|0;c[s+48>>2]=D;c[s+52>>2]=p;gw(D|0,v|0,p|0)|0;c[s+56>>2]=Ir(E,t,1,0)|0;c[s+60>>2]=Lr(E,o,1)|0;c[s+44>>2]=cr(E,u,1)|0;if(!l){f=s;l=0}else{l=Vq(d,19,l,0,0)|0;c[s+12>>2]=Ir(E,l,1,0)|0;f=s}}else{f=0;n=0}a[q>>0]=r;Ck(E,t);Ck(E,l);Jk(E,o);Ik(E,u,1);if((a[E+65>>0]|0)==1){Gk(E,f);f=0;break}if((F|0)==6)a[n>>0]=119;else if((F|0)==9?!H:0)a[n>>0]=109;else X=49;if((X|0)==49){X=0;a[n>>0]=110}c[n+4>>2]=f;F=c[P>>2]|0;c[s+20>>2]=F;c[s+24>>2]=F;c[G>>2]=f;a[s+8>>0]=N}else f=0}while(0);if(f)$u(d,f,e,g,2,0)}m=c[m+12>>2]|0}while((m|0)!=0)}i=Y;return}function zt(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;f=b[d+46>>1]|0;a:do if(f<<16>>16==(b[e+46>>1]|0)?(a[d+50>>0]|0)==(a[e+50>>0]|0):0){if(f<<16>>16){g=c[e+4>>2]|0;h=c[d+4>>2]|0;i=e+28|0;j=d+28|0;k=e+32|0;l=d+32|0;p=0;do{if((b[g+(p<<1)>>1]|0)!=(b[h+(p<<1)>>1]|0)){f=0;break a}if((a[(c[i>>2]|0)+p>>0]|0)!=(a[(c[j>>2]|0)+p>>0]|0)){f=0;break a}m=c[(c[k>>2]|0)+(p<<2)>>2]|0;n=c[(c[l>>2]|0)+(p<<2)>>2]|0;o=(n|0)==0;if(!m){if(!o){f=0;break a}}else{if(o){f=0;break a}if($c(m,n)|0){f=0;break a}}p=p+1|0}while((p|0)<(f&65535|0))}f=(yu(c[e+36>>2]|0,c[d+36>>2]|0,-1)|0)==0&1}else f=0;while(0);return f|0}function At(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;do if(!(a[e+44>>0]&8))f=0;else{h=c[b+408>>2]|0;h=(h|0)==0?b:h;g=h+404|0;f=c[g>>2]|0;a:do if(!f)i=5;else while(1){if((c[f+4>>2]|0)==(e|0))break a;f=c[f>>2]|0;if(!f){i=5;break}}while(0);if((i|0)==5){f=ih(c[b>>2]|0,16,0)|0;if(!f){f=0;break}c[f>>2]=c[g>>2];c[g>>2]=f;c[f+4>>2]=e;c[f+8>>2]=d;b=h+72|0;g=c[b>>2]|0;c[f+12>>2]=g+2;c[b>>2]=g+3}f=c[f+12>>2]|0}while(0);return f|0}function Bt(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;g=b[e+36>>1]|0;h=c[a>>2]|0;f=c[e>>2]|0;if(g<<16>>16>-1){g=c[(c[e+4>>2]|0)+((g<<16>>16)*24|0)>>2]|0;c[k>>2]=f;c[k+4>>2]=g;g=1555;f=qh(h,27824,k)|0}else{c[k>>2]=f;g=2579;f=qh(h,34408,k)|0}vs(a,g,d,f,-1,2);i=l;return}function Ct(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=b+316|0;h=c[g>>2]|0;d=hr(b,h,Ir(c[b>>2]|0,d,0,0)|0)|0;if(d){b=(c[d>>2]|0)+-1|0;h=c[d+4>>2]|0;c[h+(b*20|0)+16>>2]=e;b=h+(b*20|0)+13|0;a[b>>0]=a[b>>0]&-5|f<<2&4}c[g>>2]=d;return}function Dt(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=c[e>>2]|0;if(!(g+-1&g)){i=_((g|0)==0?1:g<<1,d)|0;a=no(a,b,i,((i|0)<0)<<31>>31)|0;if(!a){c[f>>2]=-1;a=b}else h=4}else{a=b;h=4}if((h|0)==4){bw(a+(_(g,d)|0)|0,0,d|0)|0;c[f>>2]=g;c[e>>2]=(c[e>>2]|0)+1}return a|0}function Et(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;c[h>>2]=0;b=c[a+12>>2]|0;if((b|0)!=0?(d=c[b+24>>2]|0,(d|0)>0):0){c[h>>2]=d;b=d}else b=0;d=c[a+16>>2]|0;if((d|0)!=0?(e=c[d+24>>2]|0,(e|0)>(b|0)):0)c[h>>2]=e;f=a+4|0;b=a+20|0;if(!(c[f>>2]&2048)){d=c[b>>2]|0;if(d){pu(d,h);b=c[b>>2]|0;if((b|0)!=0?(g=c[b>>2]|0,(g|0)>0):0){e=c[b+4>>2]|0;d=0;b=0;do{b=c[(c[e+(d*20|0)>>2]|0)+4>>2]|b;d=d+1|0}while((d|0)!=(g|0));b=b&2097408}else b=0;c[f>>2]=c[f>>2]|b}}else As(c[b>>2]|0,h);c[a+24>>2]=(c[h>>2]|0)+1;i=k;return}function Ft(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=Kq(b)|0;i=b+72|0;h=(c[i>>2]|0)+1|0;c[i>>2]=h;b=ih(c[b>>2]|0,8,0)|0;if(b){i=b;c[i>>2]=e;c[i+4>>2]=f}th(g,sh(g,26,0,h,0)|0,b,-13);eq(g,1);if(!(a[(c[g>>2]|0)+65>>0]|0))Tg(c[g+16>>2]|0,d,-1,1,0)|0;sh(g,35,h,1,0)|0;return}function Gt(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;d=c[b>>2]|0;e=d+16|0;f=c[(c[e>>2]|0)+20>>2]|0;do if(!f)d=0;else{if((a[d+63>>0]|0)!=0?(a[f+8>>0]|0)==0:0){Il(f);c[(c[e>>2]|0)+20>>2]=0;Ag(d);d=0;break}ph(b,32128,g);d=1}while(0);i=h;return d|0}function Ht(b){b=b|0;var e=0,f=0,g=0;if((a[b+63>>0]|0)!=0?(e=c[b+20>>2]|0,(e|0)>0):0){g=b+24|0;f=c[b+16>>2]|0;while(1){e=e+-1|0;b=c[f+4>>2]|0;if(b)po(b,c[g>>2]&28|d[f+8>>0]);if((e|0)<=0)break;else f=f+16|0}}return}function It(d,f,g,h,k){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;var 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;z=i;i=i+16|0;if((i|0)>=(j|0))ba();w=z;x=c[g+20>>2]|0;m=c[g+40>>2]|0;if((x|0)==1){s=b[f+36>>1]|0;l=s<<16>>16;if(s<<16>>16>-1)if((m|0)!=0?($c(c[(c[f+4>>2]|0)+(l*24|0)>>2]|0,m)|0)!=0:0){v=0;y=8}else k=0;else{v=0;y=8}}else if(k){l=ih(c[d>>2]|0,x<<2,0)|0;if(!l)k=1;else{c[k>>2]=l;v=l;y=8}}else{v=0;y=8}a:do if((y|0)==8){k=c[f+8>>2]|0;b:do if(k){s=(m|0)==0;u=(x|0)>0;r=f+4|0;t=(v|0)==0;c:while(1){do if((e[k+46>>1]|0)==(x|0)?(a[k+50>>0]|0)!=0:0){if(s)if((a[k+51>>0]&3)==2){y=16;break c}else break;d:do if(u){n=c[k+4>>2]|0;o=c[r>>2]|0;p=c[k+32>>2]|0;q=0;while(1){f=b[n+(q<<1)>>1]|0;m=c[o+(f*24|0)+16>>2]|0;if($c(c[p+(q<<2)>>2]|0,(m|0)!=0?m:11152)|0){m=q;break d}m=c[o+(f*24|0)>>2]|0;l=0;while(1){f=l+1|0;if(!($c(c[g+(l<<3)+40>>2]|0,m)|0)){f=l;y=23;break}if((f|0)<(x|0))l=f;else break}if((y|0)==23){y=0;if(!t)c[v+(q<<2)>>2]=c[g+(f<<3)+36>>2]}m=q+1|0;if((f|0)==(x|0)){m=q;break d}if((m|0)<(x|0))q=m;else break}}else m=0;while(0);if((m|0)==(x|0))break c}while(0);k=c[k+20>>2]|0;if(!k)break b}if((y|0)==16)if(!(t|u^1)){l=0;do{c[v+(l<<2)>>2]=c[g+(l<<3)+36>>2];l=l+1|0}while((l|0)!=(x|0))}c[h>>2]=k;k=0;break a}while(0);if(!(a[d+438>>0]|0)){s=c[g+8>>2]|0;c[w>>2]=c[c[g>>2]>>2];c[w+4>>2]=s;ph(d,32008,w)}ig(c[d>>2]|0,v);k=1}while(0);i=z;return k|0}function Jt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;if(!(c[d+12>>2]|0)){c[h>>2]=0;l=c[b>>2]|0;g=d+4|0;d=c[g>>2]|0;Vr(l,c[d+(e*24|0)+4>>2]|0,a[l+62>>0]|0,a[d+(e*24|0)+21>>0]|0,h)|0;d=c[h>>2]|0;if(d)th(b,-1,d,-8);if((a[(c[g>>2]|0)+(e*24|0)+21>>0]|0)==69)sh(b,39,f,0,0)|0}i=k;return}function Kt(c,d,f){c=c|0;d=d|0;f=f|0;var g=0;if(!d)g=0;else{g=d;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;g=g-d&1073741823}g=Oh(c,d,g,2,1,0)|0;if(g){g=g+2|0;b[g>>1]=e[g>>1]|f&255}return}function Lt(d,e,f,g,h,i,j,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;q=c[d+8>>2]|0;r=c[e+12>>2]|0;do if(i){l=e+36|0;if(!(c[l>>2]|0)){c[i>>2]=0;break}else{c[i>>2]=ts(q)|0;c[d+96>>2]=f;p=d+100|0;c[p>>2]=(c[p>>2]|0)+1;ct(d,c[l>>2]|0,c[i>>2]|0,16);break}}while(0);if((h|0)!=0?(a[e+51>>0]&8)!=0:0)l=e+46|0;else l=e+48|0;l=b[l>>1]|0;n=l&65535;o=d+60|0;h=c[o>>2]|0;p=d+56|0;i=c[p>>2]|0;if((i|0)<(n|0)){h=d+72|0;m=c[h>>2]|0;c[h>>2]=m+n;m=m+1|0}else{c[o>>2]=h+n;c[p>>2]=i-n;m=h}do if(!j)h=0;else{if((m|0)==(k|0)?(c[j+36>>2]|0)==0:0){h=j;break}h=0}while(0);if(l<<16>>16){j=(h|0)==0;k=e+4|0;i=h+4|0;l=0;do{if(!j){h=b[(c[k>>2]|0)+(l<<1)>>1]|0;if((b[(c[i>>2]|0)+(l<<1)>>1]|0)!=h<<16>>16)s=21}else{h=b[(c[k>>2]|0)+(l<<1)>>1]|0;s=21}if((s|0)==21){s=0;jt(q,r,f,h<<16>>16,l+m|0);Lq(q,39)|0}l=l+1|0}while((l|0)<(n|0))}if(g)sh(q,49,m,n,g)|0;$s(d,m,n);if((c[p>>2]|0)<(n|0)){c[p>>2]=n;c[o>>2]=m}return m|0}function Mt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;if(b){d=c[a+8>>2]|0;e=c[d+24>>2]|0;f=~b;if((b|0)<0?(g=c[e+112>>2]|0,(g|0)!=0):0)c[g+(f<<2)>>2]=c[d+32>>2];c[e+88>>2]=(c[d+32>>2]|0)+-1;Zt(a)}return}function Nt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;e=c[d+16>>2]|0;a:do if((e|0)!=0?(f=c[d+64>>2]|0,(f|0)!=0):0){e=c[e+8>>2]|0;b:do if(e){while(1){if(!($c(c[e>>2]|0,f)|0))break;e=c[e+20>>2]|0;if(!e)break b}c[d+68>>2]=e;e=0;break a}while(0);c[g>>2]=f;c[g+4>>2]=0;ph(b,28104,g);a[b+17>>0]=1;e=1}else e=0;while(0);i=h;return e|0}function Ot(a,b){a=a|0;b=b|0;var d=0,e=0;if(a){d=Pt(a,b)|0;if(b&1){e=Ot(c[a+12>>2]|0,b)|0;return e+d+(Ot(c[a+16>>2]|0,b)|0)|0}}else d=0;return d|0}
7 ba();h=m+8|0;l=m;k=c[b+8>>2]|0;g=d+8|0;do if(!(c[d+4>>2]&1024)){g=c[g>>2]|0;d=fi(g,l)|0;if((d|0)!=0?!((d|0)==2&(e|0)!=0):0)if(!(Bc(g,29144,2)|0)){c[h>>2]=g;ph(b,29152,h);break}else{Wt(k,g,e,f);break}if(e){if((d|0)==2){d=0;g=-2147483648}else{d=l;d=$v(0,0,c[d>>2]|0,c[d+4>>2]|0)|0;g=C}e=l;c[e>>2]=d;c[e+4>>2]=g}d=ih(c[k>>2]|0,8,0)|0;if(d){e=l;h=c[e>>2]|0;e=c[e+4>>2]|0;g=d;b=g;a[b>>0]=h;a[b+1>>0]=h>>8;a[b+2>>0]=h>>16;a[b+3>>0]=h>>24;g=g+4|0;a[g>>0]=e;a[g+1>>0]=e>>8;a[g+2>>0]=e>>16;a[g+3>>0]=e>>24}th(k,sh(k,26,0,f,0)|0,d,-13)}else{d=c[g>>2]|0;sh(k,25,(e|0)==0?d:0-d|0,f,0)|0}while(0);i=m;return}function Wt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,k=0,l=0,m=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;if(d){g=d;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;Pl(d,k,g-d&1073741823,1)|0;if(e)h[k>>3]=-+h[k>>3];g=ih(c[b>>2]|0,8,0)|0;if(g){d=k;m=c[d>>2]|0;d=c[d+4>>2]|0;e=g;k=e;a[k>>0]=m;a[k+1>>0]=m>>8;a[k+2>>0]=m>>16;a[k+3>>0]=m>>24;e=e+4|0;a[e>>0]=d;a[e+1>>0]=d>>8;a[e+2>>0]=d>>16;a[e+3>>0]=d>>24}th(b,sh(b,133,0,f,0)|0,g,-12)}i=l;return}function Xt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+32|0;if((i|0)>=(j|0))ba();g=m;a:do if(!d)k=0;else while(1){f=c[d+4>>2]|0;if(!(f&4096)){k=d;break a}if(!(f&262144))d=d+12|0;else d=c[(c[d+20>>2]|0)+4>>2]|0;d=c[d>>2]|0;if(!d){k=0;break}}while(0);b:do if(((a[b+23>>0]|0)!=0?(a[k>>0]|0)!=-97:0)?(c[g+0>>2]=0,c[g+4>>2]=0,c[g+8>>2]=0,c[g+12>>2]=0,c[g+16>>2]=0,c[g+20>>2]=0,f=g+20|0,a[f>>0]=2,c[g>>2]=78,c[g+4>>2]=79,c[g+24>>2]=0,ns(g,k)|0,(a[f>>0]|0)!=0):0){f=c[b+316>>2]|0;c[e>>2]=0;c:do if((f|0)!=0?(h=c[f>>2]|0,(h|0)>0):0){d=h;f=c[f+4>>2]|0;while(1){if((a[f+13>>0]&4)!=0?(yu(c[f>>2]|0,k,-1)|0)==0:0)break;d=d+-1|0;if((d|0)<=0)break c;else f=f+20|0}f=c[f+16>>2]|0;break b}while(0);d=b+72|0;f=(c[d>>2]|0)+1|0;c[d>>2]=f;Ct(b,k,f,1)}else l=18;while(0);do if((l|0)==18){d=b+19|0;f=a[d>>0]|0;if(!(f<<24>>24)){d=b+72|0;f=(c[d>>2]|0)+1|0;c[d>>2]=f}else{f=f+-1<<24>>24;a[d>>0]=f;f=c[b+((f&255)<<2)+24>>2]|0}d=es(b,k,f)|0;if((d|0)==(f|0)){c[e>>2]=f;break}else{Wr(b,f);c[e>>2]=0;f=d;break}}while(0);i=m;return f|0}function Yt(b,d,e,f,g,h,i,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0;l=Ku(b,d,e)|0;k=xu(d,gv(e)|0)|0;e=b+8|0;d=c[e>>2]|0;th(d,sh(d,f,h,i,g)|0,l,-4);e=c[e>>2]|0;d=c[e+4>>2]|0;if(d)a[d+(((c[e+32>>2]|0)+-1|0)*20|0)+3>>0]=k&255|j;return}function Zt(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=b+100|0;c[d>>2]=(c[d>>2]|0)+-1;g=b+19|0;j=0;k=b+116|0;while(1){h=k+12|0;i=c[h>>2]|0;if((i|0)!=0?(c[k+8>>2]|0)>(c[d>>2]|0):0){e=k+6|0;if(a[e>>0]|0){f=a[g>>0]|0;if((f&255)<8){a[g>>0]=f+1<<24>>24;c[b+((f&255)<<2)+24>>2]=i}a[e>>0]=0}c[h>>2]=0}j=j+1|0;if((j|0)==10)break;else k=k+20|0}return}function _t(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;j=c[d>>2]|0;a:do if(e){b:while(1){g=c[e+4>>2]|0;if(g&512){e=0;k=21;break a}switch(a[e>>0]|0){case -97:{if((a[e+38>>0]|0)==95){k=7;break b}else k=8;break}case 38:case -98:{e=c[e+12>>2]|0;break}case 95:{k=7;break b}case 62:case -102:case -100:{k=8;break}default:k=11}if((k|0)==8){f=c[e+44>>2]|0;if(!f)k=11;else{k=9;break}}c:do if((k|0)==11){k=0;if(!(g&256)){e=0;k=21;break a}f=c[e+12>>2]|0;if((f|0)!=0?(c[f+4>>2]&256|0)!=0:0){e=f;continue b}h=c[e+16>>2]|0;f=c[e+20>>2]|0;if((f|0)!=0&(g&2048|0)==0?(i=c[f>>2]|0,(i|0)>0):0){f=c[f+4>>2]|0;g=0;while(1){e=c[f+(g*20|0)>>2]|0;g=g+1|0;if(c[e+4>>2]&256)break c;if((g|0)>=(i|0)){e=h;break}}}else e=h}while(0);if(!e){e=0;k=21;break a}}if((k|0)==7)e=ss(d,a[j+62>>0]|0,0,c[e+8>>2]|0)|0;else if((k|0)==9){e=b[e+32>>1]|0;if(e<<16>>16<=-1){e=0;k=21;break}e=Un(j,a[j+62>>0]|0,c[(c[f+4>>2]|0)+((e<<16>>16)*24|0)+16>>2]|0,0)|0}if(e)if(!(ss(d,a[(c[d>>2]|0)+62>>0]|0,e,c[e>>2]|0)|0))e=0;else k=21;else{e=0;k=21}}else{e=0;k=21}while(0);return e|0}function $t(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();q=r+4|0;p=r;c[q>>2]=0;c[p>>2]=0;if((((h|0)!=0?(a[h>>0]|0)==-102:0)?(m=c[h+44>>2]|0,(m|0)!=0):0)?(a[m+44>>0]&16)!=0:0){h=m+60|0;while(1){h=c[h>>2]|0;if((c[h>>2]|0)==(d|0))break;else h=h+24|0}l=c[h+8>>2]|0;k=(c[l>>2]|0)+72|0;if((c[k>>2]|0)!=0?(o=f+24|0,n=gh(d,c[o>>2]|0)|0,(n|0)!=0):0){m=a[n>>0]|0;if(m<<24>>24){h=n;do{a[h>>0]=a[9328+(m&255)>>0]|0;h=h+1|0;m=a[h>>0]|0}while(m<<24>>24!=0)}g=pc[c[k>>2]&31](l,g,n,q,p)|0;ig(d,n);if(g){h=c[o>>2]|0;if(!h){h=37;l=0}else{l=h;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;h=(l-h&1073741823)+37|0;l=0}k=ih(d,h,l)|0;if(k){bw(k|0,0,h|0)|0;m=k+0|0;l=f+0|0;h=m+36|0;do{c[m>>2]=c[l>>2];m=m+4|0;l=l+4|0}while((m|0)<(h|0));m=k+36|0;c[k+24>>2]=m;h=c[o>>2]|0;if(!h)l=1;else{l=h;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;l=(l-h&1073741823)+1|0}gw(m|0,h|0,l|0)|0;c[k+12>>2]=c[q>>2];c[k+4>>2]=c[p>>2];p=k+2|0;b[p>>1]=e[p>>1]|16}else k=f}else k=f}else k=f}else k=f;i=r;return k|0}function au(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=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;z=i;i=i+80|0;if((i|0)>=(j|0))ba();x=z;v=z+72|0;o=z+52|0;w=z+48|0;n=z+28|0;y=Kq(b)|0;a:do if(!y)g=0;else{g=b+100|0;c[g>>2]=(c[g>>2]|0)+1;g=d+4|0;if(!(c[g>>2]&32)){q=Kq(b)|0;m=b+80|0;h=c[m>>2]|0;c[m>>2]=h+1;h=sh(q,44,h,0,0)|0}else h=-1;if((a[b+450>>0]|0)==2){l=c[b>>2]|0;m=(a[d>>0]|0)==75?29104:29112;q=c[b+468>>2]|0;c[x>>2]=(h|0)>-1?10360:29088;c[x+4>>2]=m;c[x+8>>2]=q;l=qh(l,29056,x)|0;th(y,sh(y,157,c[b+464>>2]|0,0,0)|0,l,-1);l=d}else l=d;m=a[l>>0]|0;b:do if(m<<24>>24==75){n=d+12|0;k=gv(c[n>>2]|0)|0;a[v>>0]=k;s=b+68|0;t=c[s>>2]|0;c[s>>2]=t+1;s=d+28|0;c[s>>2]=t;r=(f|0)!=0;t=sh(y,57,t,r&1^1,0)|0;if(r)u=0;else u=Ns(c[b>>2]|0,1,1)|0;m=d+20|0;do if(!(c[g>>2]&2048)){m=c[m>>2]|0;if(m){if(!(k<<24>>24))a[v>>0]=65;if(u)c[u+20>>2]=_t(b,c[n>>2]|0)|0;f=b+19|0;k=a[f>>0]|0;if(k<<24>>24){q=k+-1<<24>>24;a[f>>0]=q;l=c[b+((q&255)<<2)+24>>2]|0;if(!(q<<24>>24))p=24;else{q=k+-2<<24>>24;a[f>>0]=q;q=c[b+((q&255)<<2)+24>>2]|0}}else{p=b+72|0;l=(c[p>>2]|0)+1|0;c[p>>2]=l;p=24}if((p|0)==24){p=b+72|0;q=(c[p>>2]|0)+1|0;c[p>>2]=q}if(r)sh(y,28,0,q,0)|0;n=c[m>>2]|0;if((n|0)>0){k=x+20|0;g=x+4|0;p=x+24|0;o=y+32|0;f=c[m+4>>2]|0;while(1){m=c[f>>2]|0;do if((h|0)>-1){c[x+0>>2]=0;c[x+4>>2]=0;c[x+8>>2]=0;c[x+12>>2]=0;c[x+16>>2]=0;c[x+20>>2]=0;a[k>>0]=1;c[x>>2]=78;c[g>>2]=79;c[p>>2]=0;ns(x,m)|0;if(a[k>>0]|0)break;vh(y,h);h=-1}while(0);do if(r)if(!(Is(m,w)|0)){m=es(b,m,l)|0;sh(y,38,m,(c[o>>2]|0)+2|0,0)|0;sh(y,75,c[s>>2]|0,q,m)|0;break}else{sh(y,84,c[s>>2]|0,q,c[w>>2]|0)|0;break}else{m=es(b,m,l)|0;th(y,sh(y,49,m,1,q)|0,v,1);$s(b,m,1);sh(y,110,c[s>>2]|0,q,0)|0}while(0);n=n+-1|0;if((n|0)<=0)break;else f=f+20|0}}Wr(b,l);Wr(b,q)}if(!u){k=h;g=0;break b}}else{l=c[m>>2]|0;q=c[s>>2]|0;a[o>>0]=11;c[o+4>>2]=q;c[o+8>>2]=0;c[o+12>>2]=0;a[o+1>>0]=k;c[l+8>>2]=0;if(!(er(b,l,o)|0)){c[u+20>>2]=Ku(b,c[n>>2]|0,c[c[(c[l>>2]|0)+4>>2]>>2]|0)|0;break}if(!u){g=0;break a}q=(c[u>>2]|0)+-1|0;c[u>>2]=q;if(q){g=0;break a}Sc(u);g=0;break a}while(0);th(y,t,u,-6);k=h;g=0}else{k=c[d+20>>2]|0;l=b+72|0;g=(c[l>>2]|0)+1|0;c[l>>2]=g;a[n>>0]=0;l=n+4|0;c[l>>2]=g;a[n+1>>0]=0;f=n+8|0;c[f>>2]=0;c[n+12>>2]=0;if(m<<24>>24==119){a[n>>0]=10;c[f>>2]=g;sh(y,28,0,g,0)|0}else{a[n>>0]=3;sh(y,25,0,g,0)|0}q=k+60|0;Ck(c[b>>2]|0,c[q>>2]|0);c[q>>2]=Vq(b,132,0,0,20624)|0;c[k+8>>2]=0;if(er(b,k,n)|0){g=0;break a}k=h;g=c[l>>2]|0}while(0);if(e)hv(y,c[d+28>>2]|0,e);if((k|0)>-1){h=c[y+32>>2]|0;if(h>>>0>k>>>0)c[(c[y+4>>2]|0)+(k*20|0)+8>>2]=h;c[(c[y+24>>2]|0)+88>>2]=h+-1}Zt(b)}while(0);i=z;return g|0}function bu(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=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;y=i;i=i+16|0;if((i|0)>=(j|0))ba();m=y+4|0;v=y+8|0;t=y;c[m>>2]=0;x=c[b+8>>2]|0;h=(f|0)==(g|0);l=iv(b,e,3,h?0:m)|0;a[v>>0]=jv(e)|0;n=b+100|0;c[n>>2]=(c[n>>2]|0)+1;n=b+19|0;k=a[n>>0]|0;if(!(k<<24>>24)){r=b+72|0;w=(c[r>>2]|0)+1|0;c[r>>2]=w}else{w=k+-1<<24>>24;a[n>>0]=w;w=c[b+((w&255)<<2)+24>>2]|0}k=e+12|0;Nq(b,c[k>>2]|0,w);do if((l|0)==5){r=c[e+20>>2]|0;p=_t(b,c[k>>2]|0)|0;s=ts(x)|0;q=(g|0)!=(f|0);if(q){k=a[n>>0]|0;if(!(k<<24>>24)){o=b+72|0;k=(c[o>>2]|0)+1|0;c[o>>2]=k}else{k=k+-1<<24>>24;a[n>>0]=k;k=c[b+((k&255)<<2)+24>>2]|0}sh(x,85,w,w,k)|0;o=k}else o=0;if((c[r>>2]|0)>0){n=r+4|0;m=(o|0)==0;l=x+4|0;k=x+32|0;h=0;do{e=Xt(b,c[(c[n>>2]|0)+(h*20|0)>>2]|0,t)|0;if(!m?(Qu(c[(c[n>>2]|0)+(h*20|0)>>2]|0)|0)!=0:0)sh(x,85,o,e,o)|0;if((h|0)<((c[r>>2]|0)+-1|0)|q){th(x,sh(x,79,w,s,e)|0,p,-4);e=c[l>>2]|0;if(e)a[e+(((c[k>>2]|0)+-1|0)*20|0)+3>>0]=a[v>>0]|0}else{th(x,sh(x,78,w,f,e)|0,p,-4);e=c[l>>2]|0;if(e)a[e+(((c[k>>2]|0)+-1|0)*20|0)+3>>0]=d[v>>0]|0|16}Wr(b,c[t>>2]|0);h=h+1|0}while((h|0)<(c[r>>2]|0))}if(o){sh(x,76,o,g,0)|0;sh(x,16,0,f,0)|0}k=c[x+24>>2]|0;h=~s;if((s|0)<0?(u=c[k+112>>2]|0,(u|0)!=0):0)c[u+(h<<2)>>2]=c[x+32>>2];c[k+88>>2]=(c[x+32>>2]|0)+-1;Wr(b,o)}else{do if(Qu(c[k>>2]|0)|0){if(h){sh(x,76,w,f,0)|0;break}k=sh(x,77,w,0,0)|0;sh(x,108,c[e+28>>2]|0,f,0)|0;sh(x,16,0,g,0)|0;h=c[x+32>>2]|0;if(h>>>0>k>>>0)c[(c[x+4>>2]|0)+(k*20|0)+8>>2]=h;c[(c[x+24>>2]|0)+88>>2]=h+-1}while(0);if((l|0)==1){sh(x,38,w,f,0)|0;sh(x,70,c[e+28>>2]|0,f,w)|0;break}th(x,sh(x,48,w,1,0)|0,v,1);h=c[e+28>>2]|0;if(!(c[m>>2]|0)){th(x,sh(x,68,h,f,w)|0,1,-14);break}k=sh(x,69,h,0,w)|0;th(x,k,1,-14);sh(x,76,c[m>>2]|0,g,0)|0;sh(x,16,0,f,0)|0;h=c[x+32>>2]|0;if(h>>>0>k>>>0)c[(c[x+4>>2]|0)+(k*20|0)+8>>2]=h;c[(c[x+24>>2]|0)+88>>2]=h+-1}while(0);Wr(b,w);Zt(b);i=y;return}function cu(f,g){f=f|0;g=g|0;var k=0,l=0,m=0,n=0,o=0,p=0.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;C=i;i=i+48|0;if((i|0)>=(j|0))ba();B=C;z=C+28|0;k=c[f+24>>2]|0;A=c[k>>2]|0;x=g+4|0;n=c[x>>2]|0;a:do if(!(n&4)){c[x>>2]=n|4;switch(d[g>>0]|0){case 27:{k=kv(A,0,0,c[g+8>>2]|0,k,g)|0;break a}case 122:{l=c[g+16>>2]|0;if((a[l>>0]|0)==27){n=l;l=g;m=0}else{n=c[l+16>>2]|0;m=c[(c[g+12>>2]|0)+8>>2]|0}k=kv(A,m,c[(c[l+12>>2]|0)+8>>2]|0,c[n+8>>2]|0,k,g)|0;break a}case 135:{l=k+28|0;k=b[l>>1]|0;if(k&4){c[B>>2]=27456;ph(A,27472,B);k=b[l>>1]|0}if(k&16){c[B>>2]=27456;ph(A,27512,B)}break}case 153:{w=g+20|0;t=c[w>>2]|0;if(!t)m=0;else m=c[t>>2]|0;n=a[(c[A>>2]|0)+62>>0]|0;y=k+28|0;if(b[y>>1]&16){c[B>>2]=27200;ph(A,27512,B)}u=c[g+8>>2]|0;if(!u)r=0;else{o=u;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;r=o-u&1073741823}l=Oh(c[A>>2]|0,u,r,m,n,0)|0;do if(!l){if(Oh(c[A>>2]|0,u,r,-2,n,0)|0){c[B>>2]=r;c[B+4>>2]=u;ph(A,27392,B);u=k+24|0;c[u>>2]=(c[u>>2]|0)+1;break}if(!(a[(c[A>>2]|0)+145>>0]|0)){c[B>>2]=r;c[B+4>>2]=u;ph(A,27368,B);u=k+24|0;c[u>>2]=(c[u>>2]|0)+1}}else{q=(c[l+12>>2]|0)==0;v=l+2|0;do if(b[v>>1]&1024){c[x>>2]=c[x>>2]|266240;if((m|0)!=2){c[g+28>>2]=(a[c[l+24>>2]>>0]|0)==117?8388608:125829120;break}o=c[(c[t+4>>2]|0)+20>>2]|0;h[B>>3]=-1.0;if((a[o>>0]|0)==-123){n=c[o+8>>2]|0;if(!n)o=0;else{o=n;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;o=o-n&1073741823}Pl(n,B,o,1)|0;p=+h[B>>3];if(!(p>1.0)){o=~~(p*134217728.0);c[g+28>>2]=o;if((o|0)>=0)break}else s=22}else s=22;if((s|0)==22)c[g+28>>2]=-1;ph(A,27216,B);s=k+24|0;c[s>>2]=(c[s>>2]|0)+1}while(0);o=l+24|0;n=Oq(A,31,0,c[o>>2]|0,0)|0;if(!n){if(b[v>>1]&2048)c[x>>2]=c[x>>2]|524288;if(!q)break;o=b[y>>1]|0;if(!(o&1)){c[B>>2]=r;c[B+4>>2]=u;ph(A,27328,B);u=k+24|0;c[u>>2]=(c[u>>2]|0)+1;break}b[y>>1]=o&65534;hu(f,t)|0;a[g>>0]=-101;n=g+38|0;a[n>>0]=0;b:do if(k){m=B+24|0;l=z+4|0;o=z+8|0;while(1){u=c[k+4>>2]|0;c[B+0>>2]=0;c[B+4>>2]=0;c[B+8>>2]=0;c[B+12>>2]=0;c[B+16>>2]=0;c[B+20>>2]=0;c[B>>2]=87;c[m>>2]=z;c[z>>2]=u;c[l>>2]=0;c[o>>2]=0;hu(B,c[w>>2]|0)|0;if((c[l>>2]|0)>0)break;if(!(c[o>>2]|0))break;a[n>>0]=(a[n>>0]|0)+1<<24>>24;k=c[k+16>>2]|0;if(!k)break b}u=k+28|0;b[u>>1]=e[v>>1]&4096|e[u>>1]|2}while(0);b[y>>1]=e[y>>1]|1;k=1;break a}else if((n|0)==1){c[B>>2]=c[o>>2];ph(A,27288,B);u=k+24|0;c[u>>2]=(c[u>>2]|0)+1}a[g>>0]=101;k=1;break a}while(0);hu(f,t)|0;k=1;break a}case 75:case 20:case 119:{if(n&2048){o=k+20|0;l=c[o>>2]|0;m=k+28|0;n=b[m>>1]|0;if(n&4){c[B>>2]=27440;ph(A,27472,B);n=b[m>>1]|0}if(n&16){c[B>>2]=27440;ph(A,27512,B)}gu(f,c[g+20>>2]|0)|0;if((l|0)!=(c[o>>2]|0))c[x>>2]=c[x>>2]|32}break}default:{}}if(!(c[A+64>>2]|0))k=(a[(c[A>>2]|0)+65>>0]|0)!=0?2:0;else k=2}else k=1;while(0);i=C;return k|0}function du(d,f){d=d|0;f=f|0;var g=0,h=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;M=i;i=i+80|0;if((i|0)>=(j|0))baba();w=z;x=c[e>>2]|0;a:do if(f){s=c[f>>2]|0;e=s*24|0;k=ih(x,e,0)|0;if(k)bw(k|0,0,e|0)|0;b[g>>1]=s;c[h>>2]=k;if((s|0)>0){q=f+4|0;t=x+65|0;e=0;r=k;while(1){n=c[q>>2]|0;f=c[n+(e*20|0)>>2]|0;b:do if(!f)f=0;else while(1){l=c[f+4>>2]|0;if(!(l&4096))break b;if(!(l&262144))f=f+12|0;else f=c[(c[f+20>>2]|0)+4>>2]|0;f=c[f>>2]|0;if(!f){f=0;break}}while(0);l=c[n+(e*20|0)+4>>2]|0;do if(!l){while(1){l=a[f>>0]|0;if(l<<24>>24==27){y=24;break}else if(l<<24>>24==-102){v=f;y=18;break}else if(l<<24>>24!=122)break;f=c[f+16>>2]|0}if((y|0)==24){y=0;c[w>>2]=c[f+8>>2];f=qh(x,10344,w)|0;break}if((y|0)==18?(y=0,u=c[v+44>>2]|0,(u|0)!=0):0){f=b[v+32>>1]|0;if(f<<16>>16<0)f=b[u+36>>1]|0;else f=f<<16>>16;if((f|0)>-1)f=c[(c[u+4>>2]|0)+(f*24|0)>>2]|0;else f=20456;c[w>>2]=f;f=qh(x,10344,w)|0;break}c[w>>2]=c[n+(e*20|0)+8>>2];f=qh(x,10344,w)|0}else f=gh(x,l)|0;while(0);if(a[t>>0]|0)break;if(!f){m=0;f=0}else{l=f;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;m=l-f&1073741823}c:do if((e|0)>0){l=0;n=0;o=m;p=f;while(1){if(!($c(c[k+(n*24|0)>>2]|0,p)|0)){f=o;while(1){m=f+-1|0;if((m|0)<=1)break;if(((d[p+m>>0]|0)+-48|0)>>>0<10)f=m;else break}if((f|0)>0)m=(a[p+m>>0]|0)==58?m:o;else m=o;a[p+m>>0]=0;l=l+1|0;c[w>>2]=p;c[w+4>>2]=l;f=qh(x,26824,w)|0;ig(x,p);if(!f){f=0;break c}else n=-1}else{m=o;f=p}n=n+1|0;if((n|0)>=(e|0))break;else{o=m;p=f}}}while(0);c[r>>2]=f;e=e+1|0;if((e|0)<(s|0))r=r+24|0;else{f=t;break a}}ig(x,f);f=t}else y=6}else{b[g>>1]=0;c[h>>2]=0;k=0;y=6}while(0);if((y|0)==6){f=x+65|0;e=0}if(a[f>>0]|0){if((e|0)>0){f=0;do{ig(x,c[k+(f*24|0)>>2]|0);f=f+1|0}while((f|0)!=(e|0))}ig(x,k);c[h>>2]=0;b[g>>1]=0}i=z;return}function fu(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;r=i;i=i+32|0;if((i|0)>=(j|0))ba();q=r;p=c[e>>2]|0;if(!(a[p+65>>0]|0)){c[q+0>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;c[q+12>>2]=0;c[q+16>>2]=0;c[q+20>>2]=0;c[q+24>>2]=0;c[q+28>>2]=0;c[q+4>>2]=c[g+32>>2];m=c[(c[g>>2]|0)+4>>2]|0;l=f+38|0;if((b[l>>1]|0)>0){g=0;h=0;n=0;o=c[f+4>>2]|0;while(1){k=c[m+(n*20|0)>>2]|0;s=o+22|0;c[o+12>>2]=gh(p,uu(q,k,s)|0)|0;g=fw(d[s>>0]|0,0,g|0,h|0)|0;h=C;s=gv(k)|0;a[o+21>>0]=s<<24>>24==0?65:s;k=_t(e,k)|0;if(k)c[o+16>>2]=gh(p,c[k>>2]|0)|0;n=n+1|0;if((n|0)>=(b[l>>1]|0))break;else o=o+24|0}h=ew(g|0,h|0,2)|0;g=C}else{h=0;g=0}b[f+42>>1]=bs(h,g)|0}i=r;return}function gu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;do if(!b)d=0;else{g=a+4|0;e=c[g>>2]|0;if((e|0)==0?(c[a+8>>2]|0)==0:0){d=0;break}j=a+16|0;c[j>>2]=(c[j>>2]|0)+1;h=a+8|0;a:while(1){if((e|0)!=0?(d=nc[e&127](a,b)|0,(d|0)!=0):0){k=24;break}if(hu(a,c[b>>2]|0)|0){k=19;break}if(ns(a,c[b+36>>2]|0)|0){k=19;break}if(hu(a,c[b+40>>2]|0)|0){k=19;break}if(ns(a,c[b+44>>2]|0)|0){k=19;break}if(hu(a,c[b+48>>2]|0)|0){k=19;break}if(ns(a,c[b+60>>2]|0)|0){k=19;break}if(ns(a,c[b+64>>2]|0)|0){k=19;break}e=c[b+32>>2]|0;if((e|0)!=0?(i=c[e>>2]|0,(i|0)>0):0){f=i;e=e+8|0;while(1){if(gu(a,c[e+20>>2]|0)|0){k=19;break a}f=f+-1|0;if((f|0)<=0)break;else e=e+72|0}}e=c[h>>2]|0;if(e)fc[e&15](a,b);b=c[b+52>>2]|0;if(!b){d=0;break}e=c[g>>2]|0}if((k|0)==19){c[j>>2]=(c[j>>2]|0)+-1;d=2;break}else if((k|0)==24)d=d&2;c[j>>2]=(c[j>>2]|0)+-1}while(0);return d|0}function hu(a,b){a=a|0;b=b|0;var d=0;a:do if((b|0)!=0?(d=c[b>>2]|0,(d|0)>0):0){b=c[b+4>>2]|0;while(1){if(ns(a,c[b>>2]|0)|0){d=2;break a}d=d+-1|0;if((d|0)<=0){d=0;break}else b=b+20|0}}else d=0;while(0);return d|0}function iu(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();b=d;c[b>>2]=0;if((c[a+4>>2]&1|0)==0?(Is(a,b)|0)!=0:0)a=(c[b>>2]|0)==0&1;else a=0;i=d;return a|0}function ju(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))ba();q=s;l=c[g+12>>2]|0;c[q+0>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;c[q+12>>2]=0;c[q+16>>2]=0;c[q+20>>2]=200;a[q+24>>0]=1;a[q+25>>0]=0;c[q>>2]=c[d>>2];o=g+46|0;if(b[o>>1]|0){p=g+4|0;m=l+4|0;r=0;do{n=c[(c[m>>2]|0)+((b[(c[p>>2]|0)+(r<<1)>>1]|0)*24|0)>>2]|0;if(r)Ok(q,28920,2);k=c[l>>2]|0;if(!k)h=0;else{h=k;while(1)if(!(a[h>>0]|0))break;else h=h+1|0;h=h-k&1073741823}Ok(q,k,h);Ok(q,28928,1);if(!n)h=0;else{h=n;while(1)if(!(a[h>>0]|0))break;else h=h+1|0;h=h-n&1073741823}Ok(q,n,h);r=r+1|0}while((r|0)<(e[o>>1]|0))}r=pg(q)|0;vs(d,(a[g+51>>0]&3)==2?1555:2067,f,r,-1,2);i=s;return}function ku(a,b){a=a|0;b=b|0;return 0}function lu(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();q=r+8|0;o=r;p=f+52|0;a:do if((c[p>>2]|0)!=0?(h=c[f+48>>2]|0,!((h|0)==0|(f|0)==0)):0){g=f;while(1){n=a[g+4>>0]|0;if(!(n<<24>>24==119|n<<24>>24==116))break;g=c[g+52>>2]|0;if(!g){g=0;break a}}k=c[h+4>>2]|0;g=c[h>>2]|0;while(1){h=g+-1|0;if((g|0)<=0){g=0;break a}if(!(c[(c[k+(h*20|0)>>2]|0)+4>>2]&256))g=h;else break}if((g|0)>=1){g=c[d+12>>2]|0;l=c[g>>2]|0;d=ih(l,72,0)|0;if(d){m=d+0|0;n=m+72|0;do{a[m>>0]=0;m=m+1|0}while((m|0)<(n|0));k=o;c[k>>2]=0;c[k+4>>2]=0;k=fr(g,0,0,0,o,d,0,0)|0;if(k){m=d+0|0;h=f+0|0;n=m+72|0;do{c[m>>2]=c[h>>2];m=m+4|0;h=h+4|0}while((m|0)<(n|0));c[f+32>>2]=k;c[q>>2]=0;c[q+4>>2]=0;c[f>>2]=hr(g,0,jr(l,116,q,0)|0)|0;a[f+4>>0]=119;c[f+36>>2]=0;c[d+40>>2]=0;c[d+44>>2]=0;c[d+48>>2]=0;c[p>>2]=0;c[f+56>>2]=0;g=f+6|0;b[g>>1]=(e[g>>1]|0)&57279|8192;c[(c[d+52>>2]|0)+56>>2]=d;c[d+60>>2]=0;c[d+64>>2]=0;g=0}else g=2}else g=2}else g=0}else g=0;while(0);i=r;return g|0}function mu(f,g){f=f|0;g=g|0;var h=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;X=i;i=i+32|0;if((i|0)>=(j|0))ba();W=X;T=X+16|0;G=f+12|0;V=c[G>>2]|0;U=c[V>>2]|0;R=g+6|0;n=e[R>>1]|0;b[R>>1]=n|16;S=U+65|0;a:do if(!(a[S>>0]|0)){F=g+32|0;P=c[F>>2]|0;if((P|0)!=0&(n&16|0)==0){Q=c[g>>2]|0;if((c[f+8>>2]|0)==9){n=g;while(1){m=c[n+56>>2]|0;if(!m)break;else n=m}n=c[n+68>>2]|0;if(n){C=V+532|0;c[n+4>>2]=c[C>>2];c[C>>2]=n;a[V+449>>0]=0}}ys(V,P);O=P+8|0;n=c[P>>2]|0;b:do if((n|0)>0){B=0;v=O;c:while(1){if(!(a[v+37>>0]&8)){C=v+16|0;h=c[G>>2]|0;if(c[C>>2]|0){k=h;N=10;break}s=c[h>>2]|0;m=h+532|0;o=c[m>>2]|0;d:do if((c[v+4>>2]|0)==0?(E=c[v+8>>2]|0,!((E|0)==0|(o|0)==0)):0){e:while(1){p=c[o>>2]|0;if((p|0)>0){l=0;do{n=o+(l<<4)+8|0;k=c[n>>2]|0;if(!($c(E,k)|0)){z=l;break e}l=l+1|0}while((l|0)<(p|0))}o=c[o+4>>2]|0;if(!o){N=46;break d}}w=o+(z<<4)+20|0;p=c[w>>2]|0;if(p){g=p;N=21;break c}y=ih(s,76,0)|0;if(!y){g=C;N=23;break c}q=y+0|0;p=q+76|0;do{a[q>>0]=0;q=q+1|0}while((q|0)<(p|0));c[C>>2]=y;t=y+40|0;b[t>>1]=1;c[y>>2]=gh(s,c[n>>2]|0)|0;b[y+36>>1]=-1;b[y+28>>1]=200;A=y+44|0;a[A>>0]=d[A>>0]|2;A=cr(s,c[o+(z<<4)+16>>2]|0,0)|0;c[v+20>>2]=A;if(a[s+65>>0]|0){g=2;break a}x=((a[A+4>>0]|0)+-115&255)<2;if(x?(u=c[A+32>>2]|0,D=c[u>>2]|0,(D|0)>0):0){p=A+6|0;q=D;s=0;do{do if(!(c[u+(s*72|0)+12>>2]|0)){r=c[u+(s*72|0)+16>>2]|0;if(!r)break;if($c(r,c[n>>2]|0)|0)break;c[u+(s*72|0)+24>>2]=y;q=u+(s*72|0)+45|0;a[q>>0]=a[q>>0]|8;b[t>>1]=(b[t>>1]|0)+1<<16>>16;b[p>>1]=e[p>>1]|2048;q=c[u>>2]|0}while(0);s=s+1|0}while((s|0)<(q|0))}if((e[t>>1]|0)>2){g=n;N=34;break c}c[w>>2]=28176;l=c[m>>2]|0;c[m>>2]=o;if(x)p=c[A+52>>2]|0;else p=A;gu(f,p)|0;p=A;while(1){k=c[p+52>>2]|0;if(!k)break;else p=k}k=c[p>>2]|0;p=c[o+(z<<4)+12>>2]|0;do if(p){if(!k)break;r=c[k>>2]|0;k=c[p>>2]|0;if((r|0)!=(k|0)){g=r;N=42;break c}}else p=k;while(0);eu(h,p,y+38|0,y+4|0);if(x){c[w>>2]=(b[A+6>>1]&2048)==0?28280:28240;gu(f,A)|0}c[w>>2]=0;c[m>>2]=l;if(!(c[C>>2]|0))N=46}else N=46;while(0);do if((N|0)==46){N=0;if(!(c[v+8>>2]|0)){o=c[v+20>>2]|0;if(gu(f,o)|0){g=2;break a}m=ih(U,76,0)|0;if(!m){g=C;N=49;break c}q=m+0|0;p=q+76|0;do{a[q>>0]=0;q=q+1|0}while((q|0)<(p|0));c[C>>2]=m;b[m+40>>1]=1;c[W>>2]=m;c[m>>2]=qh(U,27760,W)|0;while(1){n=c[o+52>>2]|0;if(!n)break;else o=n}eu(V,c[o>>2]|0,m+38|0,m+4|0);b[m+36>>1]=-1;b[m+28>>1]=200;C=m+44|0;a[C>>0]=d[C>>0]|2;break}h=Qr(V,0,v)|0;c[C>>2]=h;if(!h){g=2;break a}o=h+40|0;n=b[o>>1]|0;if(n<<16>>16==-1){g=C;N=55;break c}b[o>>1]=n+1<<16>>16;o=h+12|0;if((c[o>>2]|0)==0?(a[h+44>>0]&16)==0:0)break;if(dr(V,h)|0){g=2;break a}C=cr(U,c[o>>2]|0,0)|0;c[v+20>>2]=C;gu(f,C)|0}while(0);if(Nt(V,v)|0){g=2;break a}n=c[P>>2]|0}B=B+1|0;if((B|0)>=(n|0))break b;else v=v+72|0}if((N|0)==10){while(1){h=c[g+56>>2]|0;if(!h)break;else g=h}g=c[g+68>>2]|0;if(!g){g=1;break a}c[k+532>>2]=c[g+4>>2];g=1;break a}else if((N|0)==21){c[W>>2]=k;ph(h,g,W);g=2;break a}else if((N|0)==23){c[g>>2]=0;g=2;break a}else if((N|0)==34){c[W>>2]=c[g>>2];ph(h,28128,W);g=2;break a}else if((N|0)==42){c[W>>2]=c[n>>2];c[W+4>>2]=g;c[W+8>>2]=k;ph(h,28200,W);c[m>>2]=l;g=2;break a}else if((N|0)==49){c[g>>2]=0;g=2;break a}else if((N|0)==55){c[W>>2]=c[h>>2];ph(V,27776,W);c[g>>2]=0;g=2;break a}}while(0);if(!(a[S>>0]|0)){v=c[F>>2]|0;f:do if(((c[v>>2]|0)+-1|0)>0){w=g+36|0;y=0;z=v+8|0;A=v+80|0;g:while(1){x=c[A+16>>2]|0;if(!((c[z+16>>2]|0)==0|(x|0)==0)){D=d[A+36>>0]|0;u=D&32;s=(u|0)==0;u=u>>>5;t=A+44|0;if(D&4){if(c[t>>2]|0){N=73;break}n=A+48|0;if(c[n>>2]|0){N=73;break}k=x+38|0;o=b[k>>1]|0;if(o<<16>>16>0){h=x+4|0;r=y+1|0;q=0;do{m=c[(c[h>>2]|0)+(q*24|0)>>2]|0;l=0;do{p=ov(c[v+(l*72|0)+24>>2]|0,m)|0;if((p|0)>-1){o=l;N=77;break}l=l+1|0}while((l|0)<(r|0));if((N|0)==77){N=0;pv(V,v,o,p,r,q,u,w);o=b[k>>1]|0}q=q+1|0}while((q|0)<(o<<16>>16|0))}}else n=A+48|0;o=c[t>>2]|0;if(o){if(c[n>>2]|0){N=81;break}if(!s){qv(o,c[A+40>>2]|0);o=c[t>>2]|0}c[w>>2]=os(c[V>>2]|0,c[w>>2]|0,o)|0;c[t>>2]=0}m=c[n>>2]|0;if((m|0)!=0?(M=m+4|0,(c[M>>2]|0)>0):0){l=y+1|0;p=0;do{h=c[(c[m>>2]|0)+(p<<3)>>2]|0;k=ov(x,h)|0;if((k|0)<0){N=91;break g}else o=0;while(1){n=ov(c[v+(o*72|0)+24>>2]|0,h)|0;if((n|0)>-1)break;o=o+1|0;if((o|0)>=(l|0)){N=91;break g}}pv(V,v,o,n,l,k,u,w);p=p+1|0}while((p|0)<(c[M>>2]|0))}}y=y+1|0;if((y|0)>=((c[v>>2]|0)+-1|0))break f;else{z=z+72|0;A=A+72|0}}if((N|0)==73){c[W>>2]=0;ph(V,27928,W);g=2;break a}else if((N|0)==81){ph(V,27984,W);g=2;break a}else if((N|0)==91){c[W>>2]=h;ph(V,28040,W);g=2;break a}}while(0);h=c[Q>>2]|0;o=(h|0)>0;h:do if(o){k=c[Q+4>>2]|0;n=0;do{m=c[k+(n*20|0)>>2]|0;l=a[m>>0]|0;if(l<<24>>24==122){if((a[c[m+16>>2]>>0]|0)==116)break h}else if(l<<24>>24==116)break h;n=n+1|0}while((n|0)<(h|0))}else n=0;while(0);if((n|0)<(h|0)){M=c[Q+4>>2]|0;n=c[(c[V>>2]|0)+24>>2]|0;if(!(n&32))L=0;else L=(n&64|0)==0;if(o){H=U+20|0;I=U+16|0;J=T+4|0;K=0;h=0;do{m=M+(K*20|0)|0;o=c[m>>2]|0;n=a[o>>0]|0;if(n<<24>>24==122)if((a[c[o+16>>2]>>0]|0)==116){f=c[(c[o+12>>2]|0)+8>>2]|0;N=110}else N=106;else if(n<<24>>24==116){f=0;N=110}else N=106;do if((N|0)==106){h=hr(V,h,o)|0;if(h){C=M+(K*20|0)+4|0;B=(c[h>>2]|0)+-1|0;A=c[h+4>>2]|0;c[A+(B*20|0)+4>>2]=c[C>>2];D=M+(K*20|0)+8|0;c[A+(B*20|0)+8>>2]=c[D>>2];c[C>>2]=0;c[D>>2]=0}c[m>>2]=0}else if((N|0)==110){if((c[P>>2]|0)>0){D=(f|0)==0;E=(f|0)!=0;F=0;G=O;n=0;while(1){s=c[G+16>>2]|0;m=c[G+20>>2]|0;o=c[G+12>>2]|0;if(!o)o=c[s>>2]|0;if(a[S>>0]|0)break;if((m|0)!=0?(b[m+6>>1]&512)!=0:0){C=0;N=125}else N=117;do if((N|0)==117){N=0;if(!D?($c(f,o)|0)!=0:0)break;p=c[s+68>>2]|0;if(!p){m=0;C=27816;N=125;break}l=c[H>>2]|0;q=c[I>>2]|0;if((l|0)>0){k=0;while(1){m=k+1|0;if((c[q+(k<<4)+12>>2]|0)==(p|0)){m=k;break}if((m|0)<(l|0))k=m;else break}if((m|0)>-1)l=m;else{m=0;C=27816;N=125;break}}else l=0;m=0;C=c[q+(l<<4)>>2]|0;N=125}while(0);do if((N|0)==125){N=0;B=s+38|0;t=b[B>>1]|0;if(t<<16>>16<=0)break;x=s+4|0;w=(m|0)!=0;q=E&w;y=(F|0)>0;r=y&D;v=G+36|0;y=y^1;u=G+48|0;p=(C|0)==0;z=0;do{s=c[x>>2]|0;k=c[s+(z*24|0)>>2]|0;if(!(q?(rv(c[(c[(c[m>>2]|0)+4>>2]|0)+(z*20|0)+8>>2]|0,0,f,0)|0)==0:0))N=129;i:do if((N|0)==129){N=0;if(a[s+(z*24|0)+23>>0]&2)break;if(r){if(!((a[v>>0]&4)==0|y)){s=0;do{if((ov(c[P+(s*72|0)+24>>2]|0,k)|0)>-1){n=1;break i}s=s+1|0}while((s|0)<(F|0))}if((sv(c[u>>2]|0,k)|0)>-1){n=1;break}}t=pt(U,27,k)|0;if(!L?(c[P>>2]|0)<=1:0){l=k;A=0}else N=137;do if((N|0)==137){N=0;t=Vq(V,122,pt(U,27,o)|0,t,0)|0;if(!p)t=Vq(V,122,pt(U,27,C)|0,t,0)|0;if(!L){l=k;A=0;break}c[W>>2]=o;c[W+4>>2]=k;A=qh(U,27824,W)|0;l=A}while(0);h=hr(V,h,t)|0;c[T>>2]=l;if(!l)t=0;else{t=l;while(1)if(!(a[t>>0]|0))break;else t=t+1|0;t=t-l&1073741823}c[J>>2]=t;ir(V,h,T,0);do if(h){if(!(b[R>>1]&512))break;s=(c[h>>2]|0)+-1|0;k=c[h+4>>2]|0;if(w)t=gh(U,c[(c[(c[m>>2]|0)+4>>2]|0)+(z*20|0)+8>>2]|0)|0;else{c[W>>2]=C;c[W+4>>2]=o;c[W+8>>2]=l;t=qh(U,27832,W)|0}c[k+(s*20|0)+8>>2]=t;t=k+(s*20|0)+13|0;a[t>>0]=a[t>>0]|2}while(0);ig(U,A);t=b[B>>1]|0;n=1}while(0);z=z+1|0}while((z|0)<(t<<16>>16|0))}while(0);F=F+1|0;if((F|0)>=(c[P>>2]|0))break;else G=G+72|0}if(n)break}if(!f){ph(V,27872,W);break}else{c[W>>2]=f;ph(V,27848,W);break}}while(0);K=K+1|0}while((K|0)<(c[Q>>2]|0))}else h=0;Jk(U,Q);c[g>>2]=h}else h=c[g>>2]|0;if((h|0)!=0?(c[h>>2]|0)>(c[U+96>>2]|0):0){ph(V,27896,W);g=0}else g=0}else g=2}else g=1}else g=2;while(0);i=X;return g|0}function nu(a,b){a=a|0;b=b|0;var d=0;d=c[a+12>>2]|0;while(1){a=c[b+56>>2]|0;if(!a)break;else b=a}b=c[b+68>>2]|0;if(b)c[d+532>>2]=c[b+4>>2];return}function ou(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;h=f+6|0;i=e[h>>1]|0;if((i&32|0)==0?(b[h>>1]=i|32,l=c[d+12>>2]|0,j=c[f+32>>2]|0,g=c[j>>2]|0,(g|0)>0):0){f=0;h=j+8|0;while(1){d=c[h+16>>2]|0;if(((d|0)!=0?(a[d+44>>0]&2)!=0:0)?(k=c[h+20>>2]|0,(k|0)!=0):0){g=k;while(1){i=c[g+52>>2]|0;if(!i)break;else g=i}fu(l,d,g);g=c[j>>2]|0}f=f+1|0;if((f|0)>=(g|0))break;else h=h+72|0}}return}function pu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;if((a|0)!=0?(d=c[a>>2]|0,(d|0)>0):0){g=c[a+4>>2]|0;f=0;do{e=c[g+(f*20|0)>>2]|0;if((e|0)!=0?(h=c[e+24>>2]|0,(h|0)>(c[b>>2]|0)):0){c[b>>2]=h;d=c[a>>2]|0}f=f+1|0}while((f|0)<(d|0))}return}function qu(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;if(((b|0)!=0?(Cs(a,c[b>>2]|0,d,e),Cs(a,c[b+40>>2]|0,d,e),Cs(a,c[b+48>>2]|0,d,e),g=b+44|0,c[g>>2]=Ds(a,c[g>>2]|0,d,e)|0,g=b+36|0,c[g>>2]=Ds(a,c[g>>2]|0,d,e)|0,qu(a,c[b+52>>2]|0,d,e),g=c[b+32>>2]|0,(g|0)!=0):0)?(f=c[g>>2]|0,(f|0)>0):0){b=f;f=g+8|0;while(1){qu(a,c[f+20>>2]|0,d,e);b=b+-1|0;if((b|0)<=0)break;else f=f+72|0}}return}function ru(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=c[d+48>>2]|0;l=c[f>>2]|0;g=c[b>>2]|0;m=Ns(g,l+1|0,1)|0;if((m|0)!=0&(l|0)>0){k=f+4|0;i=g+8|0;h=m+16|0;j=0;do{g=c[k>>2]|0;f=c[g+(j*20|0)>>2]|0;if(!(c[f+4>>2]&256)){g=Os(b,d,(e[g+(j*20|0)+16>>1]|0)+-1|0)|0;if(!g)g=c[i>>2]|0;f=tv(b,f,c[g>>2]|0)|0;c[(c[k>>2]|0)+(j*20|0)>>2]=f}else g=_t(b,f)|0;c[m+(j<<2)+20>>2]=g;a[(c[h>>2]|0)+j>>0]=a[(c[k>>2]|0)+(j*20|0)+12>>0]|0;j=j+1|0}while((j|0)!=(l|0))}return m|0}function su(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))baba();r=s+64|0;q=s+32|0;h=s;a[r>>0]=1;if((f|0)!=0?(c[e+4>>2]|0)!=0:0){k=d[f>>0]|0;a:do if((k|0)==154|(k|0)==156){p=b[f+32>>1]|0;h=p<<16>>16;if(e){o=f+28|0;b:while(1){while(1){n=c[e+4>>2]|0;m=c[n>>2]|0;c:do if((m|0)>0){f=c[o>>2]|0;k=0;while(1){l=k+1|0;if((c[n+(k*72|0)+48>>2]|0)==(f|0)){l=k;break c}if((l|0)<(m|0))k=l;else break}}else l=0;while(0);if((l|0)>=(m|0))break;m=c[n+(l*72|0)+24>>2]|0;l=c[n+(l*72|0)+28>>2]|0;f=(m|0)==0;if(!((e|0)!=0&f))break b}e=c[e+16>>2]|0;if(!e){h=0;break a}}if(!f){if(l){if(p<<16>>16<=-1){h=0;break}k=c[l>>2]|0;if((h|0)>=(c[k>>2]|0)){h=0;break}h=c[(c[k+4>>2]|0)+(h*20|0)>>2]|0;c[q+4>>2]=c[l+32>>2];c[q+16>>2]=e;c[q>>2]=c[e>>2];h=uu(q,h,r)|0;break}if(c[m+68>>2]|0){if(p<<16>>16<0)h=b[m+36>>1]|0;if((h|0)<0)h=11144;else{p=c[m+4>>2]|0;q=c[p+(h*24|0)+12>>2]|0;a[r>>0]=a[p+(h*24|0)+22>>0]|0;h=q}}else h=0}else h=0}else h=0}else if((k|0)==119){p=c[f+20>>2]|0;q=c[c[(c[p>>2]|0)+4>>2]>>2]|0;c[h+4>>2]=c[p+32>>2];c[h+16>>2]=e;c[h>>2]=c[e>>2];h=uu(h,q,r)|0}else h=0;while(0);if(g)a[g>>0]=a[r>>0]|0}else h=0;i=s;return h|0}function vu(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;j=c[b+8>>2]|0;h=b+19|0;i=a[h>>0]|0;if(!(i<<24>>24)){i=b+72|0;h=(c[i>>2]|0)+1|0;c[i>>2]=h}else{i=i+-1<<24>>24;a[h>>0]=i;h=c[b+((i&255)<<2)+24>>2]|0}th(j,sh(j,69,d,e,g)|0,f,-14);sh(j,49,g,f,h)|0;sh(j,110,d,h,0)|0;Wr(b,h);return}function wu(b,d,f,g,h,i){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;i=i|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;u=b+8|0;z=c[u>>2]|0;y=d+24|0;k=a[y>>0]&1;n=k<<24>>24==0;k=(k^1)&255;j=c[d>>2]|0;o=c[j>>2]|0;p=o+h+k|0;s=b+72|0;m=c[s>>2]|0;x=m+1|0;c[s>>2]=x;v=d+4|0;q=c[v>>2]|0;i=(i|0)==0;if(i){c[s>>2]=x+p;t=m+2|0}else t=g-o-k|0;Zs(b,j,t,1);if(n)sh(z,73,c[d+8>>2]|0,t+o|0,0)|0;if(i){sh(c[u>>2]|0,32,g,k+o+t|0,h)|0;$s(b,g,h)}sh(z,49,t+q|0,p-q|0,x)|0;if((q|0)>0){j=c[s>>2]|0;h=j+1|0;i=c[v>>2]|0;c[s>>2]=i+j;if(n)g=sh(z,46,t+o|0,0,0)|0;else g=sh(z,59,c[d+8>>2]|0,0,0)|0;sh(z,42,h,t,c[v>>2]|0)|0;m=c[d+20>>2]|0;if((m|0)<0)m=(c[z+32>>2]|0)+-1|0;if(!(a[(c[z>>2]|0)+65>>0]|0))m=(c[z+4>>2]|0)+(m*20|0)|0;else m=29120;if(!(a[(c[b>>2]|0)+65>>0]|0)){c[m+8>>2]=p-i;m=m+16|0;i=c[m>>2]|0;bw(c[i+16>>2]|0,0,e[i+6>>1]|0)|0;th(z,-1,i,-6);c[m>>2]=Qs(b,c[d>>2]|0,q,(e[i+8>>1]|0)+-1|0)|0;m=z+32|0;i=c[m>>2]|0;l=i+1|0;sh(z,43,l,0,l)|0;l=ts(z)|0;c[d+16>>2]=l;k=(c[s>>2]|0)+1|0;c[s>>2]=k;c[d+12>>2]=k;sh(z,17,k,l,0)|0;l=d+8|0;sh(z,119,c[l>>2]|0,0,0)|0;k=c[m>>2]|0;if(k>>>0>g>>>0)c[(c[z+4>>2]|0)+(g*20|0)+8>>2]=k;j=z+24|0;c[(c[j>>2]|0)+88>>2]=k+-1;k=c[v>>2]|0;sh(c[u>>2]|0,32,t,h,k)|0;$s(b,t,k);k=c[m>>2]|0;if(k>>>0>i>>>0)c[(c[z+4>>2]|0)+(i*20|0)+8>>2]=k;c[(c[j>>2]|0)+88>>2]=k+-1;r=23}}else{l=d+8|0;r=23}if((r|0)==23?(sh(z,110-(a[y>>0]&1)|0,c[l>>2]|0,x,0)|0,w=c[f+8>>2]|0,(w|0)!=0):0){k=c[f+12>>2]|0;k=sh(z,139,(k|0)==0?w:k+1|0,0,-1)|0;sh(z,105,c[l>>2]|0,0,0)|0;sh(z,95,c[l>>2]|0,0,0)|0;j=c[z+32>>2]|0;if(j>>>0>k>>>0)c[(c[z+4>>2]|0)+(k*20|0)+8>>2]=j;c[(c[z+24>>2]|0)+88>>2]=j+-1}return}function xu(a,b){a=a|0;b=b|0;a=gv(a)|0;if(!(a<<24>>24==0|b<<24>>24==0))return (a<<24>>24>66|b<<24>>24>66?67:65)|0;if(!((a|b)<<24>>24))a=65;else a=(b&255)+(a&255)&255;return a|0}function yu(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;do if(!((d|0)==0|(e|0)==0)){j=c[d+4>>2]|0;k=c[e+4>>2]|0;l=k|j;if(l&1024){if((j&1024&k|0)!=0?(c[d+8>>2]|0)==(c[e+8>>2]|0):0){g=0;break}g=2;break}g=a[d>>0]|0;h=a[e>>0]|0;if(g<<24>>24!=h<<24>>24){if(g<<24>>24==95?(yu(c[d+12>>2]|0,e,f)|0)<2:0){g=1;break}if(h<<24>>24==95?(yu(d,c[e+12>>2]|0,f)|0)<2:0){g=1;break}g=2;break}if((!(g<<24>>24==-100|g<<24>>24==-102)?(i=c[d+8>>2]|0,(i|0)!=0):0)?(Wv(i,c[e+8>>2]|0)|0)!=0:0){g=g<<24>>24==95?1:2;break}if(!((k^j)&16)){if(!(l&16384)){if(l&2048){g=2;break}if(yu(c[d+12>>2]|0,c[e+12>>2]|0,f)|0){g=2;break}if(yu(c[d+16>>2]|0,c[e+16>>2]|0,f)|0){g=2;break}if(Ps(c[d+20>>2]|0,c[e+20>>2]|0,f)|0){g=2;break}if(!(l&8192)){if((b[d+32>>1]|0)!=(b[e+32>>1]|0)){g=2;break}h=c[d+28>>2]|0;g=c[e+28>>2]|0;if((h|0)!=(g|0)?(h|0)!=(f|0)|(g|0)>-1:0){g=2;break}}}g=0}else g=2}else g=(e|0)==(d|0)?0:2;while(0);return g|0}function zu(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;f=b+8|0;a[f>>0]=e;a:do if(d){while(1){if((a[d>>0]|0)!=e<<24>>24)break;zu(b,c[d+12>>2]|0,e);d=c[d+16>>2]|0;a[f>>0]=e;if(!d)break a}vv(b,d,0)|0}while(0);return}function Au(f,g){f=f|0;g=g|0;var 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,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;D=c[f>>2]|0;Q=c[D>>2]|0;S=c[Q>>2]|0;L=S+65|0;do if(!(a[L>>0]|0)){T=f+20|0;k=c[T>>2]|0;h=k+(g*48|0)|0;_=D+68|0;R=c[h>>2]|0;s=R+12|0;l=c[s>>2]|0;x=wv(_,l)|0;w=C;j=a[R>>0]|0;u=j&255;do if(j<<24>>24==76){i=k+(g*48|0)+32|0;c[i>>2]=0;c[i+4>>2]=0;i=0;t=0}else if(j<<24>>24==75){m=R+20|0;if(!(c[R+4>>2]&2048)){i=Hu(_,c[m>>2]|0)|0;t=C;P=k+(g*48|0)+32|0;c[P>>2]=i;c[P+4>>2]=t;break}else{i=xv(_,c[m>>2]|0)|0;t=C;P=k+(g*48|0)+32|0;c[P>>2]=i;c[P+4>>2]=t;break}}else{i=wv(_,c[R+16>>2]|0)|0;t=C;P=k+(g*48|0)+32|0;c[P>>2]=i;c[P+4>>2]=t}while(0);q=wv(_,R)|0;m=C;N=R+4|0;if(!(c[N>>2]&1)){O=0;P=0;v=m}else{o=b[R+36>>1]|0;n=c[_>>2]|0;a:do if((n|0)>0){p=0;while(1){if((c[D+(p<<2)+72>>2]|0)==(o|0))break;p=p+1|0;if((p|0)>=(n|0)){p=0;o=0;break a}}p=ew(1,0,p|0)|0;o=C}else{p=0;o=0}while(0);O=fw(p|0,o|0,-1,-1)|0;P=C;q=p|q;v=o|m}r=k+(g*48|0)+40|0;c[r>>2]=q;c[r+4>>2]=v;r=k+(g*48|0)+8|0;c[r>>2]=-1;c[k+(g*48|0)+4>>2]=-1;z=k+(g*48|0)+18|0;b[z>>1]=0;p=u+-75|0;if(p>>>0<9?(499>>>(p&511)&1)!=0:0){b:do if(!l)l=0;else while(1){p=c[l+4>>2]|0;if(!(p&4096))break b;if(!(p&262144))n=l+12|0;else n=c[(c[l+20>>2]|0)+4>>2]|0;l=c[n>>2]|0;if(!l){l=0;break}}while(0);p=c[R+16>>2]|0;c:do if(!p)p=0;else while(1){o=c[p+4>>2]|0;if(!(o&4096))break c;if(!(o&262144))p=p+12|0;else p=c[(c[p+20>>2]|0)+4>>2]|0;p=c[p>>2]|0;if(!p){p=0;break}}while(0);t=(i&x|0)==0&(t&w|0)==0?4095:1024;if((a[l>>0]|0)==-102){m=c[l+28>>2]|0;c[r>>2]=m;c[k+(g*48|0)+12>>2]=b[l+32>>1];if((u|0)==75)n=1;else if((u|0)==76)n=128;else n=2<<u+-79&65535;b[z>>1]=n&t}else m=-1;if((p|0)!=0?(a[p>>0]|0)==-102:0){if((m|0)>-1){l=Ir(S,R,0,0)|0;if(a[L>>0]|0){Ck(S,l);break}m=vv(f,l,3)|0;if(!m)break;n=c[T>>2]|0;k=n+(m*48|0)|0;c[n+(m*48|0)+4>>2]=g;b[n+(m*48|0)+16>>1]=b[n+(g*48|0)+16>>1]|0;h=n+(g*48|0)+22|0;a[h>>0]=(a[h>>0]|0)+1<<24>>24;h=n+(g*48|0)|0;p=n+(g*48|0)+20|0;b[p>>1]=e[p>>1]|8;if(((a[R>>0]|0)==79?(c[N>>2]&1|0)==0:0)?(b[S+60>>1]&512)==0:0){s=n+(g*48|0)+18|0;b[s>>1]=e[s>>1]|1024;s=1024}else s=0}else{s=0;l=R;k=h}j=l+16|0;o=(c[j>>2]|0)+4|0;n=c[o>>2]|0;m=n&256;i=l+12|0;p=c[i>>2]|0;do if((m|0)==(c[p+4>>2]&256|0)){if(m){c[o>>2]=n&-257;break}p=(_t(Q,p)|0)==0;n=c[i>>2]|0;if(p)p=n;else{p=n+4|0;c[p>>2]=c[p>>2]|256;p=n}}while(0);n=c[j>>2]|0;c[j>>2]=p;c[i>>2]=n;m=a[l>>0]|0;if((m&255)>79){m=((m&255)+176^2)+80&255;a[l>>0]=m}l=c[n+4>>2]|0;if(l&4096)do{if(!(l&262144))n=n+12|0;else n=c[(c[n+20>>2]|0)+4>>2]|0;n=c[n>>2]|0;l=c[n+4>>2]|0}while((l&4096|0)!=0);c[k+8>>2]=c[n+28>>2];c[k+12>>2]=b[n+32>>1];l=k+32|0;c[l>>2]=O|x;c[l+4>>2]=P|w;l=k+40|0;c[l>>2]=q;c[l+4>>2]=v;l=m&255;if((l|0)==76)l=128;else if((l|0)==75)l=1;else l=2<<l+-79&65535;b[k+18>>1]=l+s&(t&65535)}}else H=59;do if((H|0)==59){if(j<<24>>24==74){if((a[f+8>>0]|0)!=72)break;m=(c[R+20>>2]|0)+4|0;i=R+36|0;j=0;while(1){q=d[34144+j>>0]|0;l=Ir(S,l,0,0)|0;l=Vq(Q,q,l,Ir(S,c[(c[m>>2]|0)+(j*20|0)>>2]|0,0,0)|0,0)|0;if(l){q=l+4|0;c[q>>2]=c[q>>2]|c[N>>2]&1;b[l+36>>1]=b[i>>1]|0}q=vv(f,l,3)|0;Au(f,q);k=c[T>>2]|0;c[k+(q*48|0)+4>>2]=g;b[k+(q*48|0)+16>>1]=b[k+(g*48|0)+16>>1]|0;q=k+(g*48|0)+22|0;a[q>>0]=(a[q>>0]|0)+1<<24>>24;j=j+1|0;if((j|0)==2)break;l=c[s>>2]|0}h=k+(g*48|0)|0;break}else if(j<<24>>24!=71)break;x=ih(S,416,0)|0;d:do if(x){bw(x|0,0,416)|0;c[k+(g*48|0)+12>>2]=x;A=k+(g*48|0)+20|0;b[A>>1]=e[A>>1]|16;c[x>>2]=D;c[x+4>>2]=0;A=x+12|0;c[A>>2]=0;c[x+16>>2]=8;B=x+20|0;c[B>>2]=x+24;zu(x,R,71);m=c[A>>2]|0;if((m|0)>0)do{m=m+-1|0;Au(x,m)}while((m|0)>0);if(!(a[L>>0]|0)){p=c[A>>2]|0;if((p|0)>0){w=D+68|0;v=-1;u=-1;i=-1;h=-1;t=c[B>>2]|0;while(1){p=p+-1|0;o=t+18|0;s=b[o>>1]|0;if(!(s&255)){l=ih(S,408,0)|0;if(!l){m=v;n=u;i=0;h=0}else{c[t+12>>2]=l;n=t+20|0;b[n>>1]=e[n>>1]|32;b[o>>1]=512;c[l>>2]=c[f>>2];n=l+4|0;c[n>>2]=0;m=l+12|0;c[m>>2]=0;c[l+16>>2]=8;q=l+20|0;c[q>>2]=l+24;zu(l,c[t>>2]|0,72);o=c[m>>2]|0;if((o|0)>0)do{o=o+-1|0;Au(l,o)}while((o|0)>0);c[n>>2]=f;if((a[L>>0]|0)==0?(y=c[m>>2]|0,(y|0)>0):0){o=0;n=0;h=0;r=c[q>>2]|0;while(1){m=(d[c[r>>2]>>0]|0)+-75|0;do if(m>>>0<9){if(!(499>>>(m&511)&1))break;l=c[r+8>>2]|0;j=c[w>>2]|0;e:do if((j|0)>0){m=0;while(1){if((c[D+(m<<2)+72>>2]|0)==(l|0))break;m=m+1|0;if((m|0)>=(j|0)){m=0;l=0;break e}}m=ew(1,0,m|0)|0;l=C}else{m=0;l=0}while(0);o=m|o;n=l|n}while(0);h=h+1|0;if((h|0)>=(y|0))break;else r=r+48|0}}else{o=0;n=0}m=o&v;n=n&u;i=0;h=0}}else{n=b[t+20>>1]|0;if(!(n&8)){q=c[t+8>>2]|0;l=c[w>>2]|0;m=(l|0)>0;f:do if(m){o=0;while(1){if((c[D+(o<<2)+72>>2]|0)==(q|0))break;o=o+1|0;if((o|0)>=(l|0)){j=0;r=0;break f}}j=ew(1,0,o|0)|0;r=C}else{j=0;r=0}while(0);if(!(n&2)){o=j;q=r}else{q=c[(c[B>>2]|0)+((c[t+4>>2]|0)*48|0)+8>>2]|0;g:do if(m){o=0;while(1){if((c[D+(o<<2)+72>>2]|0)==(q|0))break;o=o+1|0;if((o|0)>=(l|0)){o=0;q=0;break g}}o=ew(1,0,o|0)|0;q=C}else{o=0;q=0}while(0);o=o|j;q=q|r}l=(s&2)==0;m=o&v;n=q&u;i=l?0:o&i;h=l?0:q&h}else{m=v;n=u}}o=(m|0)!=0|(n|0)!=0;if(!((p|0)>0&o))break;else{v=m;u=n;t=t+48|0}}q=x+408|0;c[q>>2]=m;c[q+4>>2]=n;b[z>>1]=(m|0)==0&(n|0)==0?0:256;if(o)H=104}else{i=x+408|0;c[i>>2]=-1;c[i+4>>2]=-1;b[z>>1]=256;i=-1;h=-1;H=104}h:do if((H|0)==104)if((c[A>>2]|0)==2){l=c[B>>2]|0;m=0;i:while(1){j=m+1|0;if((b[l+18>>1]|0)!=512)if(!m)o=l;else break h;else{n=c[l+12>>2]|0;if((c[n+12>>2]|0)<=(m|0))break h;o=(c[n+20>>2]|0)+(m*48|0)|0}if(!o)break h;else p=0;while(1){if((b[l+66>>1]|0)==512){n=c[l+60>>2]|0;if((c[n+12>>2]|0)<=(p|0)){m=j;continue i}n=(c[n+20>>2]|0)+(p*48|0)|0;if(!n){m=j;continue i}}else if(!p)n=l+48|0;else{m=j;continue i}yv(f,o,n);l=c[B>>2]|0;p=p+1|0}}}while(0);if(!((i|0)==0&(h|0)==0)){r=D+68|0;q=-1;s=0;while(1){n=c[A>>2]|0;if((n|0)<=0)break d;p=c[B>>2]|0;while(1){j=n;n=n+-1|0;l=p+20|0;b[l>>1]=e[l>>1]&65471;l=c[p+8>>2]|0;if((l|0)!=(q|0)){m=c[r>>2]|0;j:do if((m|0)>0){o=0;while(1){if((c[D+(o<<2)+72>>2]|0)==(l|0))break;o=o+1|0;if((o|0)>=(m|0)){o=0;m=0;break j}}o=ew(1,0,o|0)|0;m=C}else{o=0;m=0}while(0);if(!((o&i|0)==0&(m&h|0)==0)){o=j;break}}if((n|0)<=0)break d;else p=p+48|0}m=c[p+12>>2]|0;if((o|0)<1)break d;else o=l;while(1){if((o|0)==(l|0)){if((c[p+12>>2]|0)!=(m|0)){n=l;m=1;break}q=gv(c[(c[p>>2]|0)+16>>2]|0)|0;if(!(q<<24>>24==0|q<<24>>24==(gv(c[(c[p>>2]|0)+12>>2]|0)|0)<<24>>24)){n=l;m=1;break}q=p+20|0;b[q>>1]=e[q>>1]|64}else{q=p+20|0;b[q>>1]=e[q>>1]&65471}if((n|0)<=0){n=l;m=0;break}o=c[p+56>>2]|0;n=n+-1|0;p=p+48|0}s=s+1|0;if(!((s|0)<2&m))break;else q=n}if(!m){l=c[A>>2]|0;if((l|0)>0){m=0;i=0;j=c[B>>2]|0;while(1){l=l+-1|0;if(b[j+20>>1]&64){m=Ir(S,c[(c[j>>2]|0)+16>>2]|0,0,0)|0;i=hr(c[D>>2]|0,i,m)|0;m=c[(c[j>>2]|0)+12>>2]|0}if((l|0)<=0){l=m;break}else j=j+48|0}}else{l=0;i=0}j=Vq(Q,75,Ir(S,l,0,0)|0,0,0)|0;if(!j)Jk(S,i);else{q=j+4|0;c[q>>2]=c[q>>2]|c[N>>2]&1;b[j+36>>1]=b[R+36>>1]|0;c[j+20>>2]=i;q=vv(f,j,3)|0;Au(f,q);k=c[T>>2]|0;c[k+(q*48|0)+4>>2]=g;b[k+(q*48|0)+16>>1]=b[k+(g*48|0)+16>>1]|0;q=k+(g*48|0)+22|0;a[q>>0]=(a[q>>0]|0)+1<<24>>24}b[k+(g*48|0)+18>>1]=2048}}}}else c[k+(g*48|0)+12>>2]=0;while(0);h=(c[T>>2]|0)+(g*48|0)|0}while(0);k:do if((a[f+8>>0]|0)==72){u=c[Q>>2]|0;if((a[R>>0]|0)==-103){t=R+20|0;q=c[t>>2]|0;if((q|0)!=0?(c[q>>2]|0)==2:0){m=c[R+8>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;l=l-m&1073741823}l=Oh(u,m,l,2,1,0)|0;if(((((l|0)!=0?(E=b[l+2>>1]|0,(E&4)!=0):0)?(K=c[l+4>>2]|0,I=a[K>>0]|0,J=a[K+1>>0]|0,K=a[K+2>>0]|0,M=(E&65535)>>>3&1,F=(c[t>>2]|0)+4|0,G=c[(c[F>>2]|0)+20>>2]|0,(a[G>>0]|0)==-102):0)?(gv(G)|0)<<24>>24==66:0)?(a[(c[G+44>>2]|0)+44>>0]&16)==0:0){k=c[c[F>>2]>>2]|0;l:do if(!k)k=0;else while(1){j=c[k+4>>2]|0;if(!(j&4096))break l;if(!(j&262144))k=k+12|0;else k=c[(c[k+20>>2]|0)+4>>2]|0;k=c[k>>2]|0;if(!k){k=0;break}}while(0);j=a[k>>0]|0;r=j<<24>>24==-121;do if(r){l=c[Q+476>>2]|0;o=b[k+32>>1]|0;p=o<<16>>16;do if(!l){i=0;m=0}else{H=p+-1|0;G=c[l+60>>2]|0;i=G+(H*40|0)|0;if(b[G+(H*40|0)+8>>1]&1){i=0;m=0;break}m=c[l>>2]|0;n=ih(m,40,0)|0;if(!n){i=0;m=0;break}l=n+0|0;j=l+40|0;do{a[l>>0]=0;l=l+1|0}while((l|0)<(j|0));H=n+8|0;b[H>>1]=1;c[n+32>>2]=m;Wg(n,i)|0;if((b[H>>1]&15)!=2){i=n;m=0;break}i=n;m=Og(n,1)|0}while(0);l=c[Q+8>>2]|0;if(o<<16>>16>32){c[l+188>>2]=-1;q=m;H=177;break}else{q=l+188|0;c[q>>2]=c[q>>2]|1<<p+-1;q=m;H=177;break}}else if(j<<24>>24==97){i=0;q=c[k+8>>2]|0;H=177}else i=0;while(0);do if((H|0)==177)if(q){m=0;while(1){H=a[q+m>>0]|0;j=H<<24>>24==I<<24>>24;l=m+1|0;if(H<<24>>24!=K<<24>>24&((H<<24>>24==0|j|H<<24>>24==J<<24>>24)^1))m=l;else break}if(m){if((a[q+(m+-1)>>0]|0)==-1)break;if(j)l=(a[q+l>>0]|0)==0;else l=0;n=l&1;s=pt(u,97,q)|0;if(s)a[(c[s+8>>2]|0)+m>>0]=0;do if(r){m=c[Q+8>>2]|0;j=b[k+32>>1]|0;if(j<<16>>16>32)c[m+188>>2]=-1;else{K=m+188|0;c[K>>2]=c[K>>2]|1<<(j<<16>>16)+-1}if(!l){n=0;break}if(!(a[(c[k+8>>2]|0)+1>>0]|0))break;j=Q+19|0;l=a[j>>0]|0;if(!(l<<24>>24)){K=Q+72|0;j=(c[K>>2]|0)+1|0;c[K>>2]=j}else{K=l+-1<<24>>24;a[j>>0]=K;j=c[Q+((K&255)<<2)+24>>2]|0}es(Q,k,j)|0;k=c[m+32>>2]|0;if(k>>>0>0)c[(c[m+4>>2]|0)+((k+-1|0)*20|0)+12>>2]=0;Wr(Q,j)}while(0);Ih(i);if(!q){H=217;break k}o=c[(c[(c[t>>2]|0)+4>>2]|0)+20>>2]|0;m=Ir(S,s,0,0)|0;p=M<<16>>16!=0;do if(!p){if(a[(c[Q>>2]|0)+65>>0]|0)break;i=h+20|0;b[i>>1]=e[i>>1]|1024;i=s+8|0;l=c[i>>2]|0;k=a[l>>0]|0;if(!(k<<24>>24))break;h=m+8|0;j=0;do{K=k&255;a[l>>0]=((d[10368+K>>0]|223)^32)&K;a[(c[h>>2]|0)+j>>0]=a[9328+K>>0]|0;j=j+1|0;l=(c[i>>2]|0)+j|0;k=a[l>>0]|0}while(k<<24>>24!=0)}while(0);if(!(a[L>>0]|0)){k=c[m+8>>2]|0;if(!k)j=-1;else{j=k;while(1)if(!(a[j>>0]|0))break;else j=j+1|0;j=(j-k&1073741823)+-1|0}k=k+j|0;j=a[k>>0]|0;if(p)i=n;else{i=j<<24>>24==64?0:n;j=a[9328+(j&255)>>0]|0}a[k>>0]=(j&255)+1;l=i}else l=n;i=M<<16>>16==0?13752:11152;j=Vq(Q,83,tv(Q,Ir(S,o,0,0)|0,i)|0,s,0)|0;if(j){M=j+4|0;c[M>>2]=c[M>>2]|c[N>>2]&1;b[j+36>>1]=b[R+36>>1]|0}k=vv(f,j,259)|0;Au(f,k);i=Vq(Q,82,tv(Q,Ir(S,o,0,0)|0,i)|0,m,0)|0;if(i){M=i+4|0;c[M>>2]=c[M>>2]|c[N>>2]&1;b[i+36>>1]=b[R+36>>1]|0}i=vv(f,i,259)|0;Au(f,i);j=c[T>>2]|0;h=j+(g*48|0)|0;if(!l){H=217;break k}c[j+(k*48|0)+4>>2]=g;N=j+(g*48|0)+16|0;b[j+(k*48|0)+16>>1]=b[N>>1]|0;H=j+(g*48|0)+22|0;a[H>>0]=(a[H>>0]|0)+1<<24>>24;c[j+(i*48|0)+4>>2]=g;b[j+(i*48|0)+16>>1]=b[N>>1]|0;a[H>>0]=(a[H>>0]|0)+1<<24>>24;H=217;break k}}while(0);Ih(i);H=217}else H=217}else H=217}}else H=217;while(0);if((H|0)==217)if(((((a[R>>0]|0)==-103?($c(c[R+8>>2]|0,31416)|0)==0:0)?(U=c[R+20>>2]|0,(c[U>>2]|0)==2):0)?(V=c[U+4>>2]|0,W=c[V+20>>2]|0,(a[W>>0]|0)==-102):0)?(X=c[V>>2]|0,Y=wv(_,X)|0,Z=C,_=wv(_,W)|0,(_&Y|0)==0&(C&Z|0)==0):0){_=vv(f,Vq(Q,51,0,Ir(S,X,0,0)|0,0)|0,3)|0;h=c[T>>2]|0;X=h+(_*48|0)+32|0;c[X>>2]=Y;c[X+4>>2]=Z;c[h+(_*48|0)+8>>2]=c[W+28>>2];c[h+(_*48|0)+12>>2]=b[W+32>>1];b[h+(_*48|0)+18>>1]=64;c[h+(_*48|0)+4>>2]=g;b[h+(_*48|0)+16>>1]=b[h+(g*48|0)+16>>1]|0;Y=h+(g*48|0)+22|0;a[Y>>0]=(a[Y>>0]|0)+1<<24>>24;Y=h+(g*48|0)+20|0;b[Y>>1]=e[Y>>1]|8;Y=h+(g*48|0)+40|0;Z=c[Y+4>>2]|0;_=h+(_*48|0)+40|0;c[_>>2]=c[Y>>2];c[_+4>>2]=Z;h=h+(g*48|0)|0}g=h+32|0;Z=g;_=c[Z+4>>2]|P;c[g>>2]=c[Z>>2]|O;c[g+4>>2]=_}while(0);return}function Bu(a,d,e,f,g,h,k){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0;m=i;i=i+112|0;if((i|0)>=(j|0))ba();l=m;h=zv(l,a,d,e,h,k)|0;a:do if(!h)h=0;else{k=h;h=0;do{d=k+32|0;e=c[d>>2]|0;d=c[d+4>>2]|0;if((e&f|0)==0&(d&g|0)==0){if((e|0)==0&(d|0)==0?(b[k+18>>1]&2)!=0:0){h=k;break a}h=(h|0)==0?k:h}k=Av(l)|0}while((k|0)!=0)}while(0);i=m;return h|0}function Cu(e,f,g){e=e|0;f=f|0;g=g|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0.0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,_=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;la=i;i=i+16|0;if((i|0)>=(j|0))baba();p=da;o=da+56|0;n=da+52|0;b[n>>1]=-1;$=c[f+12>>2]|0;aa=c[f>>2]|0;G=c[aa+4>>2]|0;H=d[$+16>>0]|0;W=G+(H*72|0)+8|0;m=G+(H*72|0)+24|0;I=c[m>>2]|0;X=c[f+4>>2]|0;Y=G+(H*72|0)+76|0;k=c[Y>>2]|0;do if(!k){if(a[I+44>>0]&32){p=c[I+8>>2]|0;break}k=p+0|0;l=k+52|0;do{c[k>>2]=0;k=k+4|0}while((k|0)<(l|0));b[p+46>>1]=1;b[p+48>>1]=1;c[p+4>>2]=n;c[p+8>>2]=o;a[p+50>>0]=5;c[p+12>>2]=I;b[p+44>>1]=b[I+42>>1]|0;b[o>>1]=b[I+28>>1]|0;b[o+2>>1]=0;if(!(a[G+(H*72|0)+45>>0]&1))c[p+20>>2]=c[(c[m>>2]|0)+8>>2]}else p=k;while(0);o=b[I+28>>1]|0;if(o<<16>>16<11)B=0;else{B=o<<16>>16;B=((bs(B,((B|0)<0)<<31>>31)|0)&65535)+65503&65535}if(((((((c[f+16>>2]|0)==0?(b[aa+34>>1]&128)==0:0)?(c[(c[c[aa>>2]>>2]|0)+24>>2]&1048576|0)!=0:0)?(c[Y>>2]|0)==0:0)?(q=a[G+(H*72|0)+45>>0]|0,(q&5)==0):0)?(F=I+44|0,(q&10|a[F>>0]&32)<<24>>24==0):0)?(D=c[X+20>>2]|0,V=c[X+12>>2]|0,E=D+(V*48|0)|0,(V|0)>0):0){v=$+8|0;w=$+24|0;x=$+42|0;y=$+28|0;z=$+40|0;A=$+48|0;r=(B&65535)+(o&65535)|0;n=r+4&65535;m=$+18|0;l=I+12|0;r=r+28&65535;s=$+22|0;t=$+20|0;u=$+36|0;o=D;do{q=o+32|0;V=q;U=v;if(((c[U>>2]&c[V>>2]|0)==0?(c[U+4>>2]&c[V+4>>2]|0)==0:0)?(Iu(o,W,0,0)|0)!=0:0){b[w>>1]=1;b[x>>1]=0;c[y>>2]=0;b[z>>1]=1;c[c[A>>2]>>2]=o;b[m>>1]=n;if((c[l>>2]|0)==0?(a[F>>0]&2)==0:0)b[m>>1]=r;b[s>>1]=43;b[t>>1]=Cv(B,43)|0;c[u>>2]=16384;U=q;V=c[U+4>>2]|h;k=$;c[k>>2]=c[U>>2]|g;c[k+4>>2]=V;k=Bv(f,$)|0}else k=0;o=o+48|0}while((k|0)==0&o>>>0<E>>>0)}else k=0;V=$+36|0;a:do if((k|0)==0&(p|0)!=0){M=$+24|0;N=$+42|0;O=$+40|0;P=$+17|0;Q=$+18|0;R=$+22|0;S=$+28|0;T=G+(H*72|0)+48|0;U=$+20|0;K=G+(H*72|0)+64|0;L=I+42|0;t=I+44|0;s=aa+34|0;r=X+12|0;G=X+20|0;J=1;while(1){u=c[p+36>>2]|0;v=c[T>>2]|0;b:do if(u){k=c[r>>2]|0;if((k|0)>0){m=0;n=c[G>>2]|0;while(1){l=c[n>>2]|0;if(Dv(l,u,v)|0){if(!(c[l+4>>2]&1)){ca=32;break b}if((b[l+36>>1]|0)==(v|0)){ca=32;break b}}m=m+1|0;if((m|0)>=(k|0)){k=0;break}else n=n+48|0}}else k=0}else ca=32;while(0);if((ca|0)==32){ca=0;H=b[c[p+8>>2]>>1]|0;b[M>>1]=0;b[N>>1]=0;b[O>>1]=0;a[P>>0]=0;b[Q>>1]=0;I=$;c[I>>2]=g;c[I+4>>2]=h;b[R>>1]=H;c[S>>2]=p;I=p+51|0;w=a[I>>0]|0;c:do if(((w&4)==0?(Z=c[(c[f>>2]|0)+8>>2]|0,(Z|0)!=0):0)?(_=c[Z>>2]|0,(_|0)>0):0){F=c[Z+4>>2]|0;E=p+46|0;y=p+4|0;x=0;while(1){B=c[F+(x*20|0)>>2]|0;d:do if(!B)B=0;else while(1){A=c[B+4>>2]|0;if(!(A&4096))break d;if(!(A&262144))B=B+12|0;else B=c[(c[B+20>>2]|0)+4>>2]|0;B=c[B>>2]|0;if(!B){B=0;break}}while(0);if((a[B>>0]|0)!=-102){x=0;break c}if((c[B+28>>2]|0)==(v|0)){A=b[B+32>>1]|0;if(A<<16>>16<0){x=1;break c}B=b[E>>1]|0;if(B<<16>>16){z=c[y>>2]|0;B=B&65535;D=0;do{if(A<<16>>16==(b[z+(D<<1)>>1]|0)){x=1;break c}D=D+1|0}while((D|0)<(B|0))}}x=x+1|0;if((x|0)>=(_|0)){x=0;break}}}else x=0;while(0);do if((c[p+40>>2]|0)<1){c[V>>2]=256;a[P>>0]=(x|0)!=0?J&255:0;b[U>>1]=(H&65535)+16;Ev(X,$,H);k=Bv(f,$)|0;b[R>>1]=H;if(k)break a}else{if(!(w&32)){E=K;F=c[E>>2]|0;E=c[E+4>>2]|0;D=p+4|0;B=0;A=0;z=e[p+48>>1]|0;e:while(1){y=z;while(1){z=y+-1|0;if((y|0)<=0)break e;y=b[(c[D>>2]|0)+(z<<1)>>1]|0;if((y&65535)<63)break;else y=z}q=ew(1,0,y<<16>>16|0)|0;B=q|B;A=C|A}q=F&~B;u=E&~A;B=q;A=u;u=(q|0)==0&(u|0)==0?576:512}else{B=0;A=0;u=576}c[V>>2]=u;q=(x|0)!=0;if(!q?(a[t>>0]&32)==0:0){if(!((B|0)==0&(A|0)==0))break;if(a[I>>0]&4)break;if((b[p+44>>1]|0)>=(b[L>>1]|0))break;if(!((b[s>>1]&4)==0&(c[2190]|0)!=0))break;if(b[(c[c[aa>>2]>>2]|0)+60>>1]&64)break}a[P>>0]=q?J&255:0;o=H<<16>>16;q=o+1+(((b[p+44>>1]|0)*15|0)/(b[L>>1]|0)|0)&65535;if(!((B|0)==0&(A|0)==0))q=Cv(q,o+16&65535)|0;b[U>>1]=q;Ev(X,$,H);k=Bv(f,$)|0;b[R>>1]=H;if(k)break a}while(0);k=Fv(f,W,p,0)|0;if(c[Y>>2]|0)break a}p=c[p+20>>2]|0;if(!((k|0)==0&(p|0)!=0))break;else J=J+1|0}}while(0);i=da;return k|0}function Eu(f,g,h){f=f|0;g=g|0;h=h|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,$=0,aa=0,ca=0;$=i;i=i+608|0;if((i|0)>=(j|0))ba();Z=$+168|0;X=$+576|0;Y=$+112|0;V=$+56|0;W=$;k=c[f>>2]|0;S=c[f+4>>2]|0;o=c[S+20>>2]|0;n=c[S+12>>2]|0;U=o+(n*48|0)|0;R=c[f+12>>2]|0;l=Y+0|0;m=l+56|0;do{c[l>>2]=0;l=l+4|0}while((l|0)<(m|0));m=c[k+4>>2]|0;l=d[R+16>>0]|0;Q=c[m+(l*72|0)+48>>2]|0;a:do if((n|0)>0){A=R+8|0;B=X+8|0;C=X+16|0;D=R+40|0;E=R+48|0;F=R+36|0;G=R+18|0;H=R+17|0;I=R+24|0;J=R+20|0;K=R+22|0;L=Z+4|0;M=Z+8|0;N=Z+12|0;O=Z+20|0;P=X+4|0;w=m+(l*72|0)+24|0;x=W+8|0;y=Y+8|0;z=V+8|0;while(1){b:do if((b[o+18>>1]&256)!=0?(T=c[o+12>>2]|0,t=T+408|0,s=A,!((c[s>>2]&c[t>>2]|0)==0?(c[s+4>>2]&c[t+4>>2]|0)==0:0)):0){n=T+20|0;v=(c[n>>2]|0)+((c[T+12>>2]|0)*48|0)|0;c[X+0>>2]=c[f+0>>2];c[X+4>>2]=c[f+4>>2];c[X+8>>2]=c[f+8>>2];c[X+12>>2]=c[f+12>>2];c[B>>2]=0;c[C>>2]=V;n=c[n>>2]|0;c:do if(n>>>0<v>>>0){l=1;k=0;d:while(1){if(!(b[n+18>>1]&512))if((c[n+8>>2]|0)==(Q|0)){c[Z>>2]=c[S>>2];c[L>>2]=S;a[M>>0]=72;c[N>>2]=1;c[O>>2]=n;m=Z;_=10}else m=l;else{m=c[n+12>>2]|0;_=10}do if((_|0)==10){_=0;c[P>>2]=m;b[V>>1]=0;if(!(a[(c[w>>2]|0)+44>>0]&16))k=Du(X,g,h)|0;else k=Cu(X,g,h)|0;if(!k)k=Eu(X,g,h)|0;m=b[V>>1]|0;if(!(m<<16>>16))break d;if(l){b[Y>>1]=m;gw(y|0,z|0,(m&65535)<<4|0)|0;m=0;break}t=b[Y>>1]|0;b[W>>1]=t;u=t&65535;gw(x|0,y|0,u<<4|0)|0;b[Y>>1]=0;if(!(t<<16>>16))m=0;else{t=0;do{if(!(m<<16>>16))m=0;else{p=W+(t<<4)+8|0;l=c[p>>2]|0;p=c[p+4>>2]|0;q=b[W+(t<<4)+16>>1]|0;r=b[W+(t<<4)+18>>1]|0;s=0;do{aa=V+(s<<4)+8|0;ca=c[aa>>2]|l;aa=c[aa+4>>2]|p;m=Cv(q,b[V+(s<<4)+16>>1]|0)|0;Gv(Y,ca,aa,m,Cv(r,b[V+(s<<4)+18>>1]|0)|0);s=s+1|0;m=b[V>>1]|0}while((s|0)<(m&65535|0))}t=t+1|0}while((t|0)<(u|0));m=0}}while(0);n=n+48|0;if(n>>>0>=v>>>0)break c;else l=m}b[Y>>1]=0}else k=0;while(0);b[D>>1]=1;c[c[E>>2]>>2]=o;c[F>>2]=8192;b[G>>1]=0;a[H>>0]=0;c[I+0>>2]=0;c[I+4>>2]=0;c[I+8>>2]=0;if(k)break a;n=e[Y>>1]|0;m=0;while(1){if((m|0)>=(n|0))break b;b[J>>1]=(e[Y+(m<<4)+16>>1]|0)+1;b[K>>1]=b[Y+(m<<4)+18>>1]|0;s=Y+(m<<4)+8|0;t=c[s+4>>2]|0;k=R;c[k>>2]=c[s>>2];c[k+4>>2]=t;k=Bv(f,R)|0;if(!k)m=m+1|0;else break a}}while(0);o=o+48|0;if(o>>>0>=U>>>0){k=0;break}}}else k=0;while(0);i=$;return k|0}function Fu(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=d+48|0;f=c[e>>2]|0;g=d+56|0;if((f|0)!=(g|0))ig(a,f);Hv(a,d);c[e>>2]=g;b[d+40>>1]=0;b[d+44>>1]=3;c[d+36>>2]=0;return}function Gu(d,f){d=d|0;f=f|0;var g=0,h=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,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0;la=i;i=i+32|0;if((i|0)>=(j|0))ba();ca=la+24|0;Z=la+16|0;fa=la+8|0;ka=la;aa=c[d>>2]|0;ha=c[aa>>2]|0;o=a[d+41>>0]|0;ia=o&255;if((o&255)<2)V=1;else V=o<<24>>24==2?5:10;ja=d+8|0;l=c[ja>>2]|0;da=f<<16>>16==0;if((l|0)==0|da)U=0;else U=c[l>>2]|0;m=U<<1;ga=m+(_((ia<<3)+64|0,V)|0)|0;ga=ih(ha,ga,((ga|0)<0)<<31>>31)|0;do if(ga){l=ga+(V<<5)|0;c[l+0>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;c[l+12>>2]=0;c[l+16>>2]=0;c[l+20>>2]=0;c[l+24>>2]=0;c[l+28>>2]=0;g=V<<1;n=_(V,-2)|0;n=ga+((_((((n|0)>-1?n:1073741823)+(V<<1)<<2)+4|0,ia)|0)+(V<<6))|0;k=g;h=ga;g=ga+(g<<5)|0;while(1){c[h+24>>2]=g;k=k+-1|0;if((k|0)<=0)break;else{h=h+32|0;g=g+(ia<<2)|0}}k=(U|0)!=0;if(k)bw(n|0,0,m|0)|0;else n=0;T=c[aa+424>>2]|0;b[ga+(V<<5)+16>>1]=T>>>0<48?T&65535:48;if(k)a[ga+(V<<5)+22>>0]=o<<24>>24!=0?-1:U&255;T=o<<24>>24==0;if(!T){P=d+16|0;Q=d+34|0;R=f<<16>>16<11;S=(f&65535)+16|0;M=f<<16>>16;N=((M|0)<0)<<31>>31;O=V>>>0>1;g=ga;L=0;m=0;o=0;f=0;h=1;while(1){if((h|0)>0){G=L&65535;H=L<<2;I=g+18|0;J=g+16|0;K=0;k=0;F=l;while(1){p=c[P>>2]|0;if(p){A=F+22|0;B=F+16|0;C=F+20|0;D=F+24|0;E=F+8|0;z=k;while(1){r=a[A>>0]|0;s=Z;c[s>>2]=0;c[s+4>>2]=0;s=p;k=F;q=c[k>>2]|0;k=c[k+4>>2]|0;a:do if(((c[s>>2]&~q|0)==0?(c[s+4>>2]&~k|0)==0:0)?(W=p+8|0,Y=W,X=c[Y>>2]|0,Y=c[Y+4>>2]|0,(X&q|0)==0&(Y&k|0)==0):0){v=e[B>>1]|0;x=Cv(b[p+18>>1]|0,v+(e[p+20>>1]|0)&65535)|0;x=Cv(x,b[C>>1]|0)|0;v=(e[p+22>>1]|0)+v|0;y=v&65535;u=X|q;s=Y|k;if(r<<24>>24<0)w=Iv(d,c[ja>>2]|0,F,b[Q>>1]|0,G,p,Z)|0;else{k=E;q=c[k+4>>2]|0;w=Z;c[w>>2]=c[k>>2];c[w+4>>2]=q;w=r}r=w<<24>>24;if(w<<24>>24>-1&(U|0)>(r|0)){t=n+(r<<1)|0;q=b[t>>1]|0;if(!(q<<16>>16)){r=((U-r|0)*100|0)/(U|0)|0;r=(bs(r,((r|0)<0)<<31>>31)|0)&65535;if(R)k=0;else k=((bs(M,N)|0)&65535)+65503&65535;r=S+(((r<<16)+-4325376|0)>>>16)+k|0;if(b[Q>>1]&1024)r=(r&65535)+16|0;q=r&65535;b[t>>1]=q}t=Cv(x,q)|0}else t=x;b:do if((z|0)>0){r=0;q=g;while(1){k=q;if(((c[k>>2]|0)==(u|0)?(c[k+4>>2]|0)==(s|0):0)?(a[q+22>>0]^w)<<24>>24>-1:0)break;r=r+1|0;if((r|0)>=(z|0)){$=35;break b}else q=q+32|0}k=b[q+18>>1]|0;if(k<<16>>16<t<<16>>16){k=z;break a}if(k<<16>>16!=t<<16>>16){k=z;break}if((b[q+16>>1]|0)>(v<<16>>16|0))k=z;else{k=z;break a}}else $=35;while(0);if(($|0)==35){$=0;q=(z|0)<(V|0);if(!q){if(t<<16>>16>m<<16>>16){k=z;break}if(!(t<<16>>16!=m<<16>>16?1:x<<16>>16<f<<16>>16)){k=z;break}}k=(q&1)+z|0;q=g+((q?z:o)<<5)|0}r=F;v=W;s=c[v+4>>2]|c[r+4>>2];u=q;c[u>>2]=c[v>>2]|c[r>>2];c[u+4>>2]=s;u=Z;s=c[u+4>>2]|0;r=q+8|0;c[r>>2]=c[u>>2];c[r+4>>2]=s;b[q+16>>1]=y;b[q+18>>1]=t;b[q+20>>1]=x;a[q+22>>0]=w;q=q+24|0;gw(c[q>>2]|0,c[D>>2]|0,H|0)|0;c[(c[q>>2]|0)+(L<<2)>>2]=p;if((k|0)<(V|0))break;m=b[I>>1]|0;f=b[J>>1]|0;if(O){s=g;t=1;r=m;o=0;q=f}else{o=0;break}while(1){m=b[s+50>>1]|0;do if(m<<16>>16<=r<<16>>16){if(m<<16>>16!=r<<16>>16){m=r;f=q;break}f=b[s+52>>1]|0;if(f<<16>>16>q<<16>>16)$=48;else{m=r;f=q}}else{f=b[s+52>>1]|0;$=48}while(0);s=s+32|0;if(($|0)==48){$=0;o=t}t=t+1|0;if((t|0)>=(V|0))break;else{r=m;q=f}}}else k=z;while(0);p=c[p+52>>2]|0;if(!p)break;else z=k}}K=K+1|0;if((K|0)==(h|0)){h=k;break}else F=F+32|0}}else h=0;L=L+1|0;if((L|0)>=(ia|0))break;else{K=g;g=l;l=K}}if(!h){ph(aa,34008,ca);ig(ha,ga);break}if((h|0)>1){k=1;l=g;do{if((b[l+18>>1]|0)>(b[g+(k<<5)+18>>1]|0))l=g+(k<<5)|0;k=k+1|0}while((k|0)!=(h|0))}else l=g;if(!T){h=d+4|0;k=c[l+24>>2]|0;g=0;do{$=c[k+(g<<2)>>2]|0;c[d+(g*80|0)+800>>2]=$;$=a[$+16>>0]|0;a[d+(g*80|0)+780>>0]=$;c[d+(g*80|0)+740>>2]=c[(c[h>>2]|0)+(($&255)*72|0)+48>>2];g=g+1|0}while((g|0)<(ia|0))}}h=d+34|0;if(((b[h>>1]&1536)==1024?(ea=d+40|0,!((a[ea>>0]|0)!=0|da)):0)?($=d+12|0,Z=ia+-1|0,Z=(Iv(d,c[$>>2]|0,l,512,Z&65535,c[(c[l+24>>2]|0)+(Z<<2)>>2]|0,fa)|0)<<24>>24,(Z|0)==(c[c[$>>2]>>2]|0)):0)a[ea>>0]=2;k=c[ja>>2]|0;if(k){g=b[h>>1]|0;h=a[l+22>>0]|0;if(g&512){if((h<<24>>24|0)==(c[k>>2]|0))a[d+40>>0]=2}else{a[d+36>>0]=h<<24>>24<0?0:h;Y=l+8|0;Z=c[Y+4>>2]|0;$=d+24|0;c[$>>2]=c[Y>>2];c[$+4>>2]=Z}if(((g&2048)!=0?(a[d+36>>0]|0)==(c[k>>2]|0):0)?($=ka,c[$>>2]=0,c[$+4>>2]=0,$=ia+-1|0,$=(Iv(d,k,l,0,$&65535,c[(c[l+24>>2]|0)+($<<2)>>2]|0,ka)|0)<<24>>24,($|0)==(c[c[ja>>2]>>2]|0)):0){a[d+37>>0]=1;Y=ka;Z=c[Y+4>>2]|0;$=d+24|0;c[$>>2]=c[Y>>2];c[$+4>>2]=Z}}b[d+32>>1]=b[l+16>>1]|0;ig(ha,ga)}while(0);i=la;return}function Hu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;if((b|0)!=0?(g=c[b>>2]|0,(g|0)>0):0){e=c[b+4>>2]|0;d=0;b=0;f=0;do{h=wv(a,c[e+(f*20|0)>>2]|0)|0;d=h|d;b=C|b;f=f+1|0}while((f|0)<(g|0))}else{b=0;d=0}C=b;return d|0}function Iu(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0;do if((((c[d+8>>2]|0)==(c[e+40>>2]|0)?(b[d+18>>1]&2)!=0:0)?(i=d+32|0,(c[i>>2]&f|0)==0?(c[i+4>>2]&g|0)==0:0):0)?(h=c[d+12>>2]|0,(h|0)>=0):0){f=a[(c[(c[e+16>>2]|0)+4>>2]|0)+(h*24|0)+21>>0]|0;g=(jv(c[d>>2]|0)|0)<<24>>24;if((g|0)==65){g=1;break}else if((g|0)==66){g=f<<24>>24==66&1;break}else{g=f<<24>>24>66&1;break}}else g=0;while(0);return g|0}function Ju(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0;j=d+44|0;if((e[j>>1]|0|0)<(f|0)){g=f+7&-8;h=ih(a,g<<2,0)|0;if(!h)f=7;else{i=d+48|0;gw(h|0,c[i>>2]|0,(e[j>>1]|0)<<2|0)|0;f=c[i>>2]|0;if((f|0)!=(d+56|0))ig(a,f);c[i>>2]=h;b[j>>1]=g;f=0}}else f=0;return f|0}function Ku(a,b,d){a=a|0;b=b|0;d=d|0;do if(!(c[b+4>>2]&256)){if((d|0)!=0?(c[d+4>>2]&256|0)!=0:0){b=_t(a,d)|0;break}b=_t(a,b)|0;if(!b)b=_t(a,d)|0}else b=_t(a,b)|0;while(0);return b|0}function Lu(e,f,g,h,k,l){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=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;y=i;i=i+144|0;if((i|0)>=(j|0))baba();e=d;c[e+0>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;c[e+12>>2]=0;c[e+16>>2]=0;c[e+20>>2]=0;c[e>>2]=80;c[e+4>>2]=81;c[e+24>>2]=a;ns(e,b)|0;i=d;return}function Vu(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+16|0;if((i|0)>=(j|0))ba();n=p+4|0;o=p;m=c[b+8>>2]|0;c[n>>2]=0;c[o>>2]=0;if(!((m|0)==0|(d|0)==0)){h=a[d>>0]|0;g=h&255;a:do switch(g|0){case 72:{l=ts(m)|0;ct(b,c[d+12>>2]|0,l,f^16);g=b+100|0;c[g>>2]=(c[g>>2]|0)+1;Vu(b,c[d+16>>2]|0,e,f);g=c[m+24>>2]|0;h=~l;if((l|0)<0?(k=c[g+112>>2]|0,(k|0)!=0):0)c[k+(h<<2)>>2]=c[m+32>>2];c[g+88>>2]=(c[m+32>>2]|0)+-1;Zt(b);break}case 71:{Vu(b,c[d+12>>2]|0,e,f);m=b+100|0;c[m>>2]=(c[m>>2]|0)+1;Vu(b,c[d+16>>2]|0,e,f);Zt(b);break}case 19:{ct(b,c[d+12>>2]|0,e,f);break}case 148:case 73:{f=d+12|0;l=Xt(b,c[f>>2]|0,n)|0;k=d+16|0;m=Xt(b,c[k>>2]|0,o)|0;Yt(b,c[f>>2]|0,c[k>>2]|0,h<<24>>24==73?79:78,l,m,e,128);break}case 75:{k=ts(m)|0;bu(b,d,k,(f|0)!=0?e:k);sh(m,16,0,e,0)|0;h=c[m+24>>2]|0;g=~k;if((k|0)<0?(l=c[h+112>>2]|0,(l|0)!=0):0)c[l+(g<<2)>>2]=c[m+32>>2];c[h+88>>2]=(c[m+32>>2]|0)+-1;break}case 79:case 78:case 83:case 80:case 81:case 82:{h=d+12|0;l=Xt(b,c[h>>2]|0,n)|0;k=d+16|0;m=Xt(b,c[k>>2]|0,o)|0;Yt(b,c[h>>2]|0,c[k>>2]|0,g,l,m,e,f);break}case 77:case 76:{sh(m,g,Xt(b,c[d+12>>2]|0,n)|0,e,0)|0;break}case 74:{Wu(b,d,e,1,f);break}default:{if(Xu(d)|0){sh(m,16,0,e,0)|0;break a}if(!(iu(d)|0))sh(m,45,Xt(b,d,n)|0,e,(f|0)!=0&1)|0}}while(0);Wr(b,c[n>>2]|0);Wr(b,c[o>>2]|0)}i=p;return}function Wu(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;p=i;i=i+208|0;if((i|0)>=(j|0))ba();l=p+152|0;h=p+104|0;k=p+56|0;m=p+8|0;n=p;c[n>>2]=0;o=m+0|0;q=(c[d+12>>2]|0)+0|0;r=o+48|0;do{c[o>>2]=c[q>>2];o=o+4|0;q=q+4|0}while((o|0)<(r|0));a[l>>0]=72;c[l+12>>2]=h;c[l+16>>2]=k;a[h>>0]=83;c[h+12>>2]=m;d=c[(c[d+20>>2]|0)+4>>2]|0;c[h+16>>2]=c[d>>2];a[k>>0]=81;c[k+12>>2]=m;c[k+16>>2]=c[d+20>>2];d=Xt(b,m,n)|0;a[m+38>>0]=a[m>>0]|0;a[m>>0]=-97;c[m+28>>2]=d;d=m+4|0;c[d>>2]=c[d>>2]&-4097;if(!f)ct(b,l,e,g);else Vu(b,l,e,g);Wr(b,c[n>>2]|0);i=p;return}function Xu(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();b=d;c[b>>2]=0;if((c[a+4>>2]&1|0)==0?(Is(a,b)|0)!=0:0)a=(c[b>>2]|0)!=0&1;else a=0;i=d;return a|0}function Yu(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if(!((a|0)==0|(b|0)==0)){e=c[b>>2]|0;if((e|0)>0){b=c[b+4>>2]|0;d=0;while(1){if((sv(a,c[b+(d*20|0)+4>>2]|0)|0)>-1){b=1;break a}d=d+1|0;if((d|0)>=(e|0)){b=0;break}}}else b=0}else b=1;while(0);return b|0}function Zu(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;m=c[e+20>>2]|0;a:do if((m|0)>0){n=b[d+38>>1]|0;o=n<<16>>16>0;p=d+4|0;l=d+36|0;i=(g|0)!=0;j=0;while(1){g=c[e+(j<<3)+40>>2]|0;if(o){d=(g|0)==0;k=0;do{if(!((c[f+(k<<2)>>2]|0)<=-1?!((k|0)==(b[l>>1]|0)&i):0))q=7;do if((q|0)==7){q=0;h=c[p>>2]|0;if(d)if(!(a[h+(k*24|0)+23>>0]&1))break;else{d=1;break a}else if(!($c(c[h+(k*24|0)>>2]|0,g)|0)){d=1;break a}else break}while(0);k=k+1|0}while((k|0)<(n<<16>>16|0))}j=j+1|0;if((j|0)>=(m|0)){d=0;break}}}else d=0;while(0);return d|0}function _u(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=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;v=i;i=i+48|0;if((i|0)>=(j|0))ba();m=v;q=v+8|0;u=c[b+408>>2]|0;u=(u|0)==0?b:u;l=u+528|0;g=c[l>>2]|0;a:do if(!g)k=5;else while(1){if((c[g>>2]|0)==(d|0)?(c[g+12>>2]|0)==(f|0):0)break a;g=c[g+4>>2]|0;if(!g){k=5;break}}while(0);do if((k|0)==5){s=c[b>>2]|0;g=ih(s,24,0)|0;if(g){k=g+0|0;h=k+24|0;do{a[k>>0]=0;k=k+1|0}while((k|0)<(h|0));c[g+4>>2]=c[l>>2];c[l>>2]=g;r=ih(s,28,0)|0;if(!r){c[g+8>>2]=0;g=0;break}k=r+0|0;h=k+24|0;do{a[k>>0]=0;k=k+1|0}while((k|0)<(h|0));c[g+8>>2]=r;n=(c[u+8>>2]|0)+192|0;c[r+24>>2]=c[n>>2];c[n>>2]=r;c[g>>2]=d;c[g+12>>2]=f;n=g+16|0;c[n>>2]=-1;o=g+20|0;c[o>>2]=-1;p=ih(s,536,0)|0;if(p){bw(p|0,0,536)|0;c[q+0>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;c[q+12>>2]=0;c[q+16>>2]=0;c[q+20>>2]=0;c[q+24>>2]=0;c[q+28>>2]=0;c[q>>2]=p;c[p>>2]=s;c[p+412>>2]=e;c[p+408>>2]=u;c[p+492>>2]=c[d>>2];a[p+436>>0]=a[d+8>>0]|0;c[p+424>>2]=c[b+424>>2];e=Kq(p)|0;if(e){c[m>>2]=c[d>>2];th(e,-1,qh(s,34152,m)|0,-1);k=c[d+12>>2]|0;if(!k)l=0;else{h=Ir(s,k,0,0)|0;if((hs(q,h)|0)==0?(a[s+65>>0]|0)==0:0){k=ts(e)|0;ct(p,h,k,16)}else k=0;Ck(s,h);l=k}Lv(p,c[d+28>>2]|0,f);if(l){k=c[e+24>>2]|0;h=~l;if((l|0)<0?(t=c[k+112>>2]|0,(t|0)!=0):0)c[t+(h<<2)>>2]=c[e+32>>2];c[k+88>>2]=(c[e+32>>2]|0)+-1}sh(e,24,0,0,0)|0;h=b+64|0;k=c[p+4>>2]|0;if(!(c[h>>2]|0)){c[b+4>>2]=k;c[h>>2]=c[p+64>>2]}else ig(c[p>>2]|0,k);if(!(a[s+65>>0]|0)){m=e+4|0;q=c[m>>2]|0;Fn(e,u+392|0);c[r+4>>2]=c[e+32>>2];c[m>>2]=0;c[r>>2]=q}c[r+8>>2]=c[p+72>>2];c[r+12>>2]=c[p+68>>2];c[r+16>>2]=c[p+80>>2];c[r+20>>2]=d;c[n>>2]=c[p+428>>2];c[o>>2]=c[p+432>>2];Ll(e)}yh(p);ig(s,p)}else g=0}else g=0}while(0);i=v;return g|0}function $u(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0;i=Kq(b)|0;e=_u(b,d,e,g)|0;if(e){if(!(c[d>>2]|0))g=0;else g=((c[(c[b>>2]|0)+24>>2]|0)>>>18&1^1)&255;b=b+72|0;d=(c[b>>2]|0)+1|0;c[b>>2]=d;sh(i,131,f,h,d)|0;th(i,-1,c[e+8>>2]|0,-18);e=c[i+4>>2]|0;if(e)a[e+(((c[i+32>>2]|0)+-1|0)*20|0)+3>>0]=g}return}function av(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;f=c[a>>2]|0;h=c[(c[f+16>>2]|0)+(e<<4)>>2]|0;g=gc[c[f+284>>2]&7](c[f+288>>2]|0,20,b,d,h,c[a+492>>2]|0)|0;if((g|0)==1){if((e|0)!=0?1:(c[f+20>>2]|0)>2){c[k>>2]=h;c[k+4>>2]=b;c[k+8>>2]=d;ph(a,27688,k)}else{c[k>>2]=b;c[k+4>>2]=d;ph(a,27728,k)}c[a+12>>2]=23}else if(!((g|0)==0|(g|0)==2)){ph(a,25232,k);c[a+12>>2]=1}i=l;return g|0}function bv(e,f,g,h,i,j,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;var 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;y=Kq(e)|0;A=(c[e+68>>2]|0)+-1|0;B=ts(y)|0;if((l|0)<0)sh(y,135,d[i+24>>0]|0,B,0)|0;n=i+20|0;o=c[n>>2]|0;if((o|0)>0){q=k+1|0;p=0;do{sh(y,76,q+(c[j+(p<<2)>>2]|0)|0,B,0)|0;p=p+1|0;o=c[n>>2]|0}while((p|0)<(o|0))}do if(!m){if(!h){o=e+19|0;n=a[o>>0]|0;if(!(n<<24>>24)){h=e+72|0;q=(c[h>>2]|0)+1|0;c[h>>2]=q}else{q=n+-1<<24>>24;a[o>>0]=q;q=c[e+((q&255)<<2)+24>>2]|0}sh(y,34,k+1+(c[j>>2]|0)|0,q,0)|0;p=sh(y,38,q,0,0)|0;if(((l|0)==1?(c[i>>2]|0)==(g|0):0)?(sh(y,79,k,B,q)|0,r=c[y+4>>2]|0,(r|0)!=0):0)a[r+(((c[y+32>>2]|0)+-1|0)*20|0)+3>>0]=-112;Mq(e,A,f,g,54);sh(y,70,A,0,q)|0;sh(y,16,0,B,0)|0;n=c[y+32>>2]|0;if(n>>>0>1)c[(c[y+4>>2]|0)+((n+-2|0)*20|0)+8>>2]=n;m=n+-1|0;o=(c[y+24>>2]|0)+88|0;c[o>>2]=m;if(n>>>0>p>>>0)c[(c[y+4>>2]|0)+(p*20|0)+8>>2]=n;c[o>>2]=m;Wr(e,q);break}w=e+60|0;q=c[w>>2]|0;x=e+56|0;p=c[x>>2]|0;if((p|0)<(o|0)){v=e+72|0;q=c[v>>2]|0;c[v>>2]=q+o;q=q+1|0}else{c[w>>2]=q+o;c[x>>2]=p-o}p=e+19|0;n=a[p>>0]|0;if(!(n<<24>>24)){m=e+72|0;v=(c[m>>2]|0)+1|0;c[m>>2]=v}else{v=n+-1<<24>>24;a[p>>0]=v;v=c[e+((v&255)<<2)+24>>2]|0}sh(y,54,A,c[h+40>>2]|0,f)|0;m=c[e+8>>2]|0;th(m,-1,ds(e,h)|0,-6);m=(o|0)>0;if(m){p=k+1|0;n=0;do{sh(y,33,p+(c[j+(n<<2)>>2]|0)|0,n+q|0,0)|0;n=n+1|0}while((n|0)!=(o|0))}if((l|0)==1?(c[i>>2]|0)==(g|0):0){t=y+32|0;u=o+1+(c[t>>2]|0)|0;if(m){f=k+1|0;s=h+4|0;p=g+36|0;n=y+4|0;r=0;do{m=b[(c[s>>2]|0)+(r<<1)>>1]|0;sh(y,78,f+(c[j+(r<<2)>>2]|0)|0,u,(m<<16>>16==(b[p>>1]|0)?0:(m<<16>>16)+1|0)+k|0)|0;m=c[n>>2]|0;if(m)a[m+(((c[t>>2]|0)+-1|0)*20|0)+3>>0]=16;r=r+1|0}while((r|0)!=(o|0))}sh(y,16,0,B,0)|0}k=kt(y,h)|0;th(y,sh(y,49,q,o,v)|0,k,o);th(y,sh(y,69,A,B,v)|0,0,-14);Wr(e,v);$s(e,q,o);if((c[x>>2]|0)<(o|0)){c[x>>2]=o;c[w>>2]=q}}while(0);n=a[i+24>>0]|0;m=n<<24>>24==0;if(((m?(c[(c[e>>2]|0)+24>>2]&16777216|0)==0:0)?(c[e+408>>2]|0)==0:0)?(a[e+20>>0]|0)==0:0)vs(e,787,2,0,-2,4);else{if(!((l|0)<1|m^1)){i=c[e+408>>2]|0;a[((i|0)==0?e:i)+21>>0]=1}sh(y,134,n&255,l,0)|0}m=c[y+24>>2]|0;n=~B;if((B|0)<0?(z=c[m+112>>2]|0,(z|0)!=0):0)c[z+(n<<2)>>2]=c[y+32>>2];c[m+88>>2]=(c[y+32>>2]|0)+-1;sh(y,61,A,0,0)|0;return}function cv(f,g,h,k,l,m,n,o){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;var 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;D=i;i=i+48|0;if((i|0)>=(j|0))ba();y=D+32|0;z=D;A=c[f>>2]|0;B=Kq(f)|0;if((o|0)<0)C=sh(B,135,d[l+24>>0]|0,0,0)|0;else C=0;x=l+20|0;if((c[x>>2]|0)>0){w=(k|0)==0;v=(m|0)==0;u=l+36|0;t=k+4|0;s=0;p=0;do{if(w)r=-1;else r=b[(c[t>>2]|0)+(s<<1)>>1]|0;q=Mv(f,h,n,r)|0;if(v)r=u;else r=m+(s<<2)|0;p=os(A,p,Vq(f,79,q,pt(A,27,c[(c[(c[l>>2]|0)+4>>2]|0)+((c[r>>2]<<16>>16)*24|0)>>2]|0)|0,0)|0)|0;s=s+1|0}while((s|0)<(c[x>>2]|0));r=l}else{r=l;p=0}if((o|0)>0?(c[r>>2]|0)==(h|0):0){if(!(a[h+44>>0]&32)){m=c[f>>2]|0;c[y>>2]=0;c[y+4>>2]=0;m=jr(m,159,y,0)|0;if(!m)m=0;else{c[m+28>>2]=n;a[m+1>>0]=68}r=c[g+48>>2]|0;c[y>>2]=0;c[y+4>>2]=0;q=jr(A,154,y,0)|0;if(q){c[q+44>>2]=h;c[q+28>>2]=r;b[q+32>>1]=-1}m=Vq(f,78,m,q,0)|0}else{r=h+8|0;while(1){r=c[r>>2]|0;if((a[r+51>>0]&3)==2)break;r=r+20|0}x=r+46|0;if(!(b[x>>1]|0))m=0;else{t=k+4|0;u=g+48|0;v=y+4|0;w=0;m=0;do{r=b[(c[t>>2]|0)+(w<<1)>>1]|0;q=Mv(f,h,n,r)|0;s=c[u>>2]|0;c[y>>2]=0;c[v>>2]=0;k=jr(A,154,y,0)|0;if(k){c[k+44>>2]=h;c[k+28>>2]=s;b[k+32>>1]=r}m=os(A,m,Vq(f,79,q,k,0)|0)|0;w=w+1|0}while((w|0)<(e[x>>1]|0))}m=Vq(f,19,m,0,0)|0}p=os(A,p,m)|0};c[z+0>>2]=0;c[z+4>>2]=0;c[z+8>>2]=0;c[z+12>>2]=0;c[z+16>>2]=0;c[z+20>>2]=0;c[z+24>>2]=0;c[z+28>>2]=0;c[z+4>>2]=g;c[z>>2]=f;hs(z,p)|0;m=Rs(f,g,p,0,0,0,0)|0;sh(B,134,d[l+24>>0]|0,o,0)|0;if(m)Ts(m);Ck(A,p);if(C){m=c[B+32>>2]|0;if(m>>>0>C>>>0)c[(c[B+4>>2]|0)+(C*20|0)+8>>2]=m;c[(c[B+24>>2]|0)+88>>2]=m+-1}i=D;return}function dv(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+32|0;if((i|0)>=(j|0))baba();z=E;C=e+68|0;D=c[C>>2]|0;c[C>>2]=D+1;C=Kq(e)|0;A=(g&4|0)!=0;B=f+4|0;a:do if((((((((((((c[B>>2]&2048|0)!=0?(n=c[f+20>>2]|0,!((c[e+64>>2]|0)!=0|(n|0)==0)):0)?(c[n+52>>2]|0)==0:0)?(b[n+6>>1]&5)==0:0)?(c[n+60>>2]|0)==0:0)?(c[n+36>>2]|0)==0:0)?(m=c[n+32>>2]|0,(c[m>>2]|0)==1):0)?(c[m+28>>2]|0)==0:0)?(t=c[m+24>>2]|0,(t|0)!=0):0)?(a[t+44>>0]&16)==0:0)?(l=c[n>>2]|0,(c[l>>2]|0)==1):0)?(p=c[c[l+4>>2]>>2]|0,(a[p>>0]|0)==-102):0){x=c[e>>2]|0;y=b[p+32>>1]|0;o=c[t+68>>2]|0;b:do if(o){m=c[x+20>>2]|0;if((m|0)>0){l=c[x+16>>2]|0;k=0;while(1){n=k+1|0;if((c[l+(k<<4)+12>>2]|0)==(o|0)){n=k;break b}if((n|0)<(m|0))k=n;else break}}else n=0}else n=-1e6;while(0);v=n<<16>>16;wr(e,v);cs(e,v,c[t+32>>2]|0,0,c[t>>2]|0);w=y<<16>>16;if(y<<16>>16<0){k=Kq(e)|0;h=e+80|0;l=c[h>>2]|0;c[h>>2]=l+1;l=sh(k,44,l,0,0)|0;Mq(e,D,v,t,54);k=c[C+32>>2]|0;if(k>>>0>l>>>0)c[(c[C+4>>2]|0)+(l*20|0)+8>>2]=k;c[(c[C+24>>2]|0)+88>>2]=k+-1;k=1;o=49;break}k=Ku(e,c[f+12>>2]|0,p)|0;u=t+4|0;o=a[(c[u>>2]|0)+(w*24|0)+21>>0]|0;n=(jv(f)|0)<<24>>24;if((n|0)==66)n=o<<24>>24==66&1;else if((n|0)==65)n=1;else n=o<<24>>24>66&1;o=c[t+8>>2]|0;if((o|0)!=0&(n|0)!=0){p=x+62|0;n=e+80|0;m=e+8|0;l=(h|0)==0;q=C+32|0;s=C+4|0;t=C+24|0;r=e+72|0;c:while(1){do if((b[c[o+4>>2]>>1]|0)==y<<16>>16?(Un(x,a[p>>0]|0,c[c[o+32>>2]>>2]|0,0)|0)==(k|0):0){if(!A)break c;if((b[o+46>>1]|0)!=1)break;if(a[o+50>>0]|0)break c}while(0);o=c[o+20>>2]|0;if(!o){o=38;break a}}B=Kq(e)|0;k=c[n>>2]|0;c[n>>2]=k+1;n=sh(B,44,k,0,0)|0;sh(C,54,D,c[o+40>>2]|0,v)|0;k=c[m>>2]|0;th(k,-1,ds(e,o)|0,-6);k=(d[c[o+28>>2]>>0]|0)+3|0;if(!l?(a[(c[u>>2]|0)+(w*24|0)+20>>0]|0)==0:0){B=(c[r>>2]|0)+1|0;c[r>>2]=B;c[h>>2]=B;hv(C,D,B)}l=c[q>>2]|0;if(l>>>0>n>>>0)c[(c[s>>2]|0)+(n*20|0)+8>>2]=l;c[(c[t>>2]|0)+88>>2]=l+-1;o=49}else o=38}else o=38;while(0);do if((o|0)==38){if((g&1|0)!=0?(c[B>>2]&2048|0)==0:0){g=f+12|0;y=c[g>>2]|0;c[g>>2]=0;c[z+0>>2]=0;c[z+4>>2]=0;c[z+8>>2]=0;c[z+12>>2]=0;c[z+16>>2]=0;c[z+20>>2]=0;C=z+20|0;a[C>>0]=1;c[z>>2]=78;c[z+4>>2]=79;c[z+24>>2]=0;ns(z,f)|0;C=a[C>>0]|0;c[g>>2]=y;if(!(C<<24>>24)){k=5;o=49;break}if((c[c[f+20>>2]>>2]|0)<3){k=5;o=49;break}}m=e+424|0;n=c[m>>2]|0;if(A){c[m>>2]=0;if((b[(c[f+12>>2]|0)+32>>1]|0)<0){k=((c[B>>2]|0)>>>11&1)+1|0;l=0}else{k=2;l=0}}else if(!h){k=2;l=0}else{k=e+72|0;l=(c[k>>2]|0)+1|0;c[k>>2]=l;c[h>>2]=l;k=2}au(e,f,l,(k|0)==1&1)|0;c[m>>2]=n}while(0);if((o|0)==49)c[f+28>>2]=D;i=E;return k|0}function jv(a){a=a|0;var b=0,d=0;b=gv(c[a+12>>2]|0)|0;d=c[a+16>>2]|0;do if(!d)if(!(c[a+4>>2]&2048))return (b<<24>>24==0?65:b)|0;else{b=xu(c[c[(c[c[a+20>>2]>>2]|0)+4>>2]>>2]|0,b)|0;break}else b=xu(d,b)|0;while(0);return b|0}function kv(d,e,f,g,h,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var 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,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;Z=i;i=i+16|0;if((i|0)>=(j|0))ba();W=Z;U=c[d>>2]|0;X=k+28|0;c[X>>2]=-1;T=k+44|0;c[T>>2]=0;a:do if((e|0)!=0?(b[h+28>>1]&20)==0:0){q=c[U+20>>2]|0;if((q|0)>0){o=c[U+16>>2]|0;p=0;while(1){if(!($c(c[o+(p<<4)>>2]|0,e)|0))break;p=p+1|0;if((p|0)>=(q|0)){S=e;e=0;break a}}S=e;e=c[o+(p<<4)+12>>2]|0}else{S=e;e=0}}else{S=0;e=0}while(0);Q=(S|0)==0;N=Q&(f|0)!=0;m=d+412|0;J=d+436|0;K=k+1|0;Y=k+32|0;L=d+428|0;M=d+432|0;R=(f|0)==0;P=k+4|0;l=h;r=0;n=0;q=0;p=0;b:while(1){I=(l|0)!=0;o=l+4|0;H=l+8|0;s=0;t=r;while(1){r=(s|0)==0;if(!(I&r)){V=82;break b}s=c[o>>2]|0;if(s){G=c[s>>2]|0;if((G|0)>0){r=0;F=0;E=s+8|0;while(1){D=c[E+16>>2]|0;u=c[E+20>>2]|0;if((u|0)!=0?(b[u+6>>1]&512)!=0:0){u=c[u>>2]|0;A=c[u>>2]|0;if((A|0)>0){B=c[u+4>>2]|0;u=0;w=0;do{if(rv(c[B+(w*20|0)+8>>2]|0,g,f,S)|0){b[Y>>1]=w;r=r+1|0;t=2;u=1;p=E}w=w+1|0}while((w|0)<(A|0))}else u=0;if(!((u|0)!=0|R)){v=t;V=21}}else{v=t;V=21}c:do if((V|0)==21){V=0;if(!Q?(c[D+68>>2]|0)!=(e|0):0){t=v;break}if(!R){u=c[E+12>>2]|0;if(!u)u=c[D>>2]|0;if($c(u,f)|0){t=v;break}}t=v+1|0;p=(v|0)==0?E:p;u=b[D+38>>1]|0;if(u<<16>>16>0){s=(r|0)==1;x=E+36|0;y=E+48|0;A=0;B=c[D+4>>2]|0;d:while(1){e:do if(!($c(c[B>>2]|0,g)|0)){if(!s){p=A;break d}if(!(a[x>>0]&4)){w=c[y>>2]|0;if(!w){p=A;break d}z=c[w+4>>2]|0;if((z|0)<=0){p=A;break d}w=c[w>>2]|0;v=0;while(1){if(!($c(c[w+(v<<3)>>2]|0,g)|0))break e;v=v+1|0;if((v|0)>=(z|0)){p=A;break d}}}}while(0);A=A+1|0;if((A|0)>=(u<<16>>16|0))break c;else B=B+24|0}b[Y>>1]=(p|0)==(b[D+36>>1]|0)?-1:p&65535;r=r+1|0;p=E}}while(0);F=F+1|0;if((F|0)>=(G|0))break;else E=E+72|0}}else r=0;if(!p)B=0;else{c[X>>2]=c[p+40>>2];s=c[p+16>>2]|0;c[T>>2]=s;if(a[p+36>>0]&8)c[P>>2]=c[P>>2]|1048576;B=p;e=c[s+68>>2]|0}}else{r=0;B=p}do if(N&(t|0)==0)if(c[m>>2]|0){s=a[J>>0]|0;if(s<<24>>24!=109)if($c(27560,f)|0)if(s<<24>>24==108){v=r;t=0;w=n;break}else V=49;else w=1;else V=49;if((V|0)==49){V=0;if(!($c(27568,f)|0))w=0;else{v=r;t=0;w=n;break}}c[X>>2]=w;v=c[m>>2]|0;if(v){e=c[v+68>>2]|0;u=b[v+38>>1]|0;f:do if(u<<16>>16>0){s=0;t=c[v+4>>2]|0;while(1){if(!($c(c[t>>2]|0,g)|0))break;s=s+1|0;if((s|0)<(u<<16>>16|0))t=t+24|0;else break f}s=(s|0)==(b[v+36>>1]|0)?-1:s}else s=0;while(0);p=u<<16>>16;if((s|0)>=(p|0)?(Xh(g)|0)!=0:0)t=(a[v+44>>0]&32)==0?-1:s;else t=s;if((t|0)<(p|0)){r=r+1|0;do if((t|0)>=0){s=(t|0)>31?-1:1<<t;if(!w){c[L>>2]=c[L>>2]|s;break}else{c[M>>2]=c[M>>2]|s;break}}else a[K>>0]=68;while(0);b[Y>>1]=t;c[T>>2]=v;t=1;n=1;V=66}else{t=1;V=66}}else{v=r;t=0;w=n}}else{v=r;t=0;w=n}else V=66;while(0);if((V|0)==66){V=0;if((r|0)==0&(t|0)==1&(B|0)!=0)if((Xh(g)|0)!=0?(a[(c[B+16>>2]|0)+44>>0]&32)==0:0){b[Y>>1]=-1;a[K>>0]=68;s=1;p=B;continue}else{v=0;w=n}else{v=r;w=n}}r=c[H>>2]|0;u=(v|0)==0;if((r|0)!=0&R&u?(O=c[r>>2]|0,(O|0)>0):0){n=c[r+4>>2]|0;p=0;do{s=c[n+(p*20|0)+4>>2]|0;if((s|0)!=0?($c(s,g)|0)==0:0){V=75;break b}p=p+1|0}while((p|0)<(O|0))}if(u){s=t;n=w;p=B;break}else{s=v;n=w;p=B}}l=c[l+16>>2]|0;r=s;q=q+1|0}do if((V|0)==75){if((b[l+28>>1]&1)==0?(c[(c[n+(p*20|0)>>2]|0)+4>>2]&2|0)!=0:0){c[W>>2]=s;ph(d,27576,W);h=2;break}uv(d,r,p,k,10360,q);if((a[k>>0]|0)==24)V=115;else V=96}else if((V|0)==82){if(r&R?(c[P>>2]&64|0)!=0:0){a[k>>0]=97;c[T>>2]=0;h=1;break}s=(s|0)==1;if(!s){r=r?27608:27624;do if(Q)if(R){c[W>>2]=r;c[W+4>>2]=g;ph(d,27680,W);break}else{c[W>>2]=r;c[W+4>>2]=f;c[W+8>>2]=g;ph(d,27664,W);break}else{c[W>>2]=r;c[W+4>>2]=S;c[W+8>>2]=f;c[W+12>>2]=g;ph(d,27648,W)}while(0);a[d+17>>0]=1;F=h+24|0;c[F>>2]=(c[F>>2]|0)+1}q=b[Y>>1]|0;if(q<<16>>16>-1&(p|0)!=0){B=q<<16>>16>63;D=ew(1,0,q<<16>>16|0)|0;F=p+56|0;A=F;E=c[A+4>>2]|(B?-2147483648:C);c[F>>2]=c[A>>2]|(B?0:D);c[F+4>>2]=E}F=k+12|0;Ck(U,c[F>>2]|0);c[F>>2]=0;F=k+16|0;Ck(U,c[F>>2]|0);c[F>>2]=0;a[k>>0]=(n|0)!=0?62:-102;if(s)V=96;else h=2}while(0);g:do if((V|0)==96){r=c[o>>2]|0;n=c[d>>2]|0;if(!((c[n+284>>2]|0)==0|(e|0)==0)){q=c[n+20>>2]|0;if((q|0)>0){o=c[n+16>>2]|0;p=0;while(1){n=p+1|0;if((c[o+(p<<4)+12>>2]|0)==(e|0)){n=p;break}if((n|0)<(q|0))p=n;else break}if((n|0)<0){V=115;break}else e=n}else e=0;if((a[k>>0]|0)!=62){o=c[r>>2]|0;if((o|0)<=0){V=115;break}m=c[X>>2]|0;n=0;while(1){if((m|0)==(c[r+(n*72|0)+48>>2]|0))break;n=n+1|0;if((n|0)>=(o|0)){V=115;break g}}m=r+(n*72|0)+24|0}o=c[m>>2]|0;m=b[Y>>1]|0;n=m<<16>>16;if(o){if(m<<16>>16<=-1){m=b[o+36>>1]|0;if(m<<16>>16>-1)m=c[(c[o+4>>2]|0)+((m<<16>>16)*24|0)>>2]|0;else m=12944}else m=c[(c[o+4>>2]|0)+(n*24|0)>>2]|0;if((av(d,c[o>>2]|0,m,e)|0)==2){a[k>>0]=101;V=115}else V=115}else V=115}else V=115}while(0);if((V|0)==115){F=h+20|0;c[F>>2]=(c[F>>2]|0)+1;if((l|0)==(h|0))h=1;else{do{h=c[h+16>>2]|0;F=h+20|0;c[F>>2]=(c[F>>2]|0)+1}while((h|0)!=(l|0));h=1}}i=Z;return h|0}function lv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=a[d>>0]|0;a:do if(e<<24>>24==-100|e<<24>>24==-102){e=c[b+24>>2]|0;f=c[e>>2]|0;b:do if((f|0)!=0?(g=c[f>>2]|0,(g|0)>0):0){b=c[d+28>>2]|0;d=0;while(1){if((b|0)==(c[f+(d*72|0)+48>>2]|0))break;d=d+1|0;if((d|0)>=(g|0))break b}b=e+4|0;c[b>>2]=(c[b>>2]|0)+1;break a}while(0);b=e+8|0;c[b>>2]=(c[b>>2]|0)+1}while(0);return 0}function mv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=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;w=i;i=i+16|0;if((i|0)>=(j|0))ba();v=w;q=w+12|0;a:do if(!f)h=0;else{t=c[c[e>>2]>>2]|0;u=c[d>>2]|0;b:do if((c[f>>2]|0)>0){h=0;r=c[f+4>>2]|0;c:while(1){o=c[r>>2]|0;d:do if(!o)k=0;else{k=o;while(1){l=c[k+4>>2]|0;if(!(l&4096))break d;if(!(l&262144))k=k+12|0;else k=c[(c[k+20>>2]|0)+4>>2]|0;k=c[k>>2]|0;if(!k){k=0;break}}}while(0);if((a[g>>0]|0)!=71?(p=nv(c[e>>2]|0,k)|0,c[q>>2]=p,(p|0)>0):0)b[r+16>>1]=p;else s=13;do if((s|0)==13){s=0;if(Is(k,q)|0){k=c[q>>2]|0;if((k+-1|0)>>>0>65534)break c;b[r+16>>1]=k;break}m=r+16|0;b[m>>1]=0;if(hs(d,o)|0){h=1;break a}l=c[e>>2]|0;n=c[l>>2]|0;if((n|0)>0){l=c[l+4>>2]|0;k=0;do{x=k;k=k+1|0;if(!(yu(o,c[l+(x*20|0)>>2]|0,-1)|0))b[m>>1]=k}while((k|0)<(n|0))}}while(0);h=h+1|0;if((h|0)>=(c[f>>2]|0))break b;else r=r+20|0}c[v>>2]=h+1;c[v+4>>2]=g;c[v+8>>2]=t;ph(u,27064,v);h=1;break a}while(0);h=su(u,e,f,g)|0}while(0);i=w;return h|0}function nv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;a:do if((a[d>>0]|0)==27?(f=c[d+8>>2]|0,g=c[b>>2]|0,(g|0)>0):0){b=c[b+4>>2]|0;d=0;while(1){e=c[b+(d*20|0)+4>>2]|0;if((e|0)!=0?($c(e,f)|0)==0:0)break;d=d+1|0;if((d|0)>=(g|0)){d=0;break a}}d=d+1|0}else d=0;while(0);return d|0}function ov(a,d){a=a|0;d=d|0;var e=0,f=0;e=b[a+38>>1]|0;a:do if(e<<16>>16>0){f=c[a+4>>2]|0;e=e<<16>>16;a=0;while(1){if(!($c(c[f+(a*24|0)>>2]|0,d)|0))break a;a=a+1|0;if((a|0)>=(e|0)){a=-1;break}}}else a=-1;while(0);return a|0}function pv(a,d,e,f,g,h,i,j){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0;k=c[a>>2]|0;e=Nv(k,d,e,f)|0;f=Nv(k,d,g,h)|0;h=Vq(a,79,e,f,0)|0;if((h|0)!=0&(i|0)!=0){e=h+4|0;c[e>>2]=c[e>>2]|1;b[h+36>>1]=c[f+28>>2]}c[j>>2]=os(k,c[j>>2]|0,h)|0;return}function qv(a,d){a=a|0;d=d|0;var e=0,f=0;if(a){e=d&65535;do{f=a+4|0;c[f>>2]=c[f>>2]|1;b[a+36>>1]=e;qv(c[a+12>>2]|0,d);a=c[a+16>>2]|0}while((a|0)!=0)}return}function rv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=0;while(1){g=a[b+f>>0]|0;if(g<<24>>24==46|g<<24>>24==0)break;f=f+1|0}if(e)if((Bc(b,e,f)|0)==0?(a[e+f>>0]|0)==0:0)h=7;else f=0;else h=7;do if((h|0)==7){e=f+1|0;h=b+e|0;g=0;while(1){i=a[b+(g+e)>>0]|0;if(i<<24>>24==46|i<<24>>24==0)break;g=g+1|0}if(d){if(Bc(h,d,g)|0){f=0;break}if(a[d+g>>0]|0){f=0;break}}if((c|0)!=0?($c(b+(f+2+g)|0,c)|0)!=0:0){f=0;break}f=1}while(0);return f|0}function sv(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((a|0)!=0?(e=c[a+4>>2]|0,(e|0)>0):0){d=c[a>>2]|0;a=0;while(1){if(!($c(c[d+(a<<3)>>2]|0,b)|0))break a;a=a+1|0;if((a|0)>=(e|0)){a=-1;break}}}else a=-1;while(0);return a|0}function tv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;c[g>>2]=e;if(!e)f=0;else{f=e;while(1)if(!(a[f>>0]|0))break;else f=f+1|0;f=f-e&1073741823}c[g+4>>2]=f;f=rr(b,d,g,0)|0;i=h;return f|0}function uv(d,e,f,g,h,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))ba
8 function Pn(d,f,g,h,k,l,m,n,o){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;var 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,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;aa=i;i=i+160|0;if((i|0)>=(j|0))ba();O=aa+16|0;K=aa+152|0;M=aa+48|0;J=aa+40|0;N=aa+36|0;L=aa+32|0;R=aa+8|0;Q=aa;W=aa+28|0;_=aa+24|0;c[_>>2]=0;do if(!(a[d+46>>0]|0)){$=d+43|0;if((a[$>>0]|0)==0?(p=c[d+4>>2]|0,p=lc[c[(c[p>>2]|0)+56>>2]&31](p,1,1,10)|0,(p|0)!=0):0)break;Z=d+45|0;a[Z>>0]=1;a:do if(!f){t=0;X=11}else{r=d+4|0;p=(g|0)!=0;while(1){if(a[$>>0]|0)break;t=c[r>>2]|0;t=lc[c[(c[t>>2]|0)+56>>2]&31](t,0,1,10)|0;if(!(p&(t|0)==5)){X=9;break}if(!(hc[g&127](h)|0)){t=0;g=0;X=11;break a}}if((X|0)==9)if((t|0)==5){t=0;g=0;X=11;break}else if(t){Y=f;break}a[d+44>>0]=1;t=f;X=11}while(0);if((X|0)==11){Y=t;t=jq(d,_)|0}do if(!t){V=d+68|0;t=b[d+66>>1]|0;if((c[V>>2]|0)!=0?(U=t&65535,(U<<16&65536|U&65024|0)!=(l|0)):0){c[O>>2]=51863;c[O+4>>2]=10788;Zc(11,13600,O);q=11;break}S=t&65535;S=S<<16&65536|S&65024;U=d+32|0;T=(c[c[U>>2]>>2]|0)+96|0;w=c[V>>2]|0;b:do if((c[T>>2]|0)>>>0<w>>>0){H=(w+33|0)>>>12;I=H+1|0;l=w<<1;v=l+28+(H*20|0)|0;p=Pc(v)|0;c:do if(!p){t=7;p=0}else{bw(p|0,0,v|0)|0;v=p+4|0;c[v>>2]=I;l=Pc(w>>>0>4096?8192:l)|0;do if(l){G=p+8|0;u=0;while(1){t=Lo(d,u,J,L,N)|0;if(t){X=21;break}F=(c[L>>2]|0)+4|0;c[L>>2]=F;if((u|0)==(H|0)){E=c[N>>2]|0;t=E;E=w-E|0}else{t=c[N>>2]|0;E=(c[J>>2]|0)-F>>2}r=G+((c[v>>2]|0)*20|0)|0;D=r+(t<<1)|0;B=t+1|0;c[N>>2]=B;if((E|0)>0){y=0;do{b[r+(y+t<<1)>>1]=y;y=y+1|0}while((y|0)!=(E|0));c[O>>2]=0;c[K>>2]=0;z=M+0|0;y=z+104|0;do{c[z>>2]=0;z=z+4|0}while((z|0)<(y|0));A=0;do{c[O>>2]=1;z=r+(A+t<<1)|0;c[K>>2]=z;if(!(A&1)){x=1;y=0}else{y=0;do{kq(F,c[M+(y<<3)+4>>2]|0,c[M+(y<<3)>>2]|0,K,O,l);y=y+1|0}while((1<<y&A|0)!=0);x=c[O>>2]|0;z=c[K>>2]|0}c[M+(y<<3)+4>>2]=z;c[M+(y<<3)>>2]=x;A=A+1|0}while((A|0)!=(E|0));y=y+1|0;if((y|0)<13)X=34}else{c[O>>2]=0;c[K>>2]=0;z=M+0|0;y=z+104|0;do{c[z>>2]=0;z=z+4|0}while((z|0)<(y|0));y=1;X=34}if((X|0)==34){while(1){X=0;if(1<<y&E)kq(F,c[M+(y<<3)+4>>2]|0,c[M+(y<<3)>>2]|0,K,O,l);y=y+1|0;if((y|0)==13)break;else X=34}x=c[O>>2]|0}c[G+(u*20|0)+16>>2]=B;c[G+(u*20|0)+12>>2]=x;c[G+(u*20|0)+4>>2]=D;c[G+(u*20|0)+8>>2]=F;u=u+1|0;if((u|0)>=(I|0)){X=39;break}}if((X|0)==21){Sc(l);break}else if((X|0)==39){Sc(l);t=0;break c}}else{Sc(0);t=7}while(0);Sc(p)}while(0);if(!t){O=d+72|0;N=c[O>>2]|0;M=d+4|0;x=1;w=c[V>>2]|0;t=0;while(1){l=T+(x<<2)+4|0;r=c[l>>2]|0;d:do if(w>>>0>r>>>0){v=x+3|0;u=(g|0)!=0;while(1){if(a[$>>0]|0)break;t=c[M>>2]|0;t=lc[c[(c[t>>2]|0)+56>>2]&31](t,v,1,10)|0;if(!(u&(t|0)==5)){X=49;break}if(!(hc[g&127](h)|0)){g=0;t=5;break d}}if((X|0)==49){X=0;if((t|0)==5){g=0;t=5;break}else if(t){q=t;X=100;break b}}c[l>>2]=(x|0)==1?w:-1;if(!(a[$>>0]|0)){r=c[M>>2]|0;lc[c[(c[r>>2]|0)+56>>2]&31](r,v,1,9)|0;r=w;t=0}else{r=w;t=0}}else r=w;while(0);x=x+1|0;if((x|0)>=5){I=r;break}else w=r}e:do if((c[T>>2]|0)>>>0<I>>>0){t=(g|0)!=0;while(1){if(a[$>>0]|0)break;r=c[M>>2]|0;r=lc[c[(c[r>>2]|0)+56>>2]&31](r,3,1,10)|0;if(!(t&(r|0)==5)){s=r;X=58;break}if(!(hc[g&127](h)|0)){s=5;break e}}if((X|0)==58?(s|0)!=0:0)break;F=c[T>>2]|0;G=(k|0)!=0;if(G?(P=c[d+8>>2]|0,P=nc[c[(c[P>>2]|0)+20>>2]&127](P,k)|0,(P|0)!=0):0)s=P;else X=61;f:do if((X|0)==61){P=ow(N|0,0,S|0,0)|0;s=Q;c[s>>2]=P;c[s+4>>2]=C;s=c[M>>2]|0;s=nc[c[(c[s>>2]|0)+24>>2]&127](s,R)|0;if(!s){P=R;K=c[P+4>>2]|0;R=Q;L=c[R+4>>2]|0;if((K|0)<(L|0)|((K|0)==(L|0)?(c[P>>2]|0)>>>0<(c[R>>2]|0)>>>0:0)){R=c[M>>2]|0;Yb[c[(c[R>>2]|0)+40>>2]&63](R,5,Q)|0}B=p+4|0;D=S|24;E=d+8|0;t=c[B>>2]|0;g:do if((t|0)>0){s=0;while(1){A=c[p>>2]|0;z=-1;h:while(1){i:while(1){t=t+-1|0;x=p+(t*20|0)+8|0;l=c[x>>2]|0;r=c[p+(t*20|0)+20>>2]|0;j:do if((l|0)<(r|0)){w=c[p+(t*20|0)+12>>2]|0;y=c[p+(t*20|0)+16>>2]|0;while(1){u=e[w+(l<<1)>>1]|0;v=c[y+(u<<2)>>2]|0;if(v>>>0>A>>>0)break;l=l+1|0;c[x>>2]=l;if((l|0)>=(r|0))break j}if(v>>>0<z>>>0)break i}while(0);if((t|0)<=0){l=s;t=z;break h}}s=(c[p+(t*20|0)+24>>2]|0)+u|0;if((t|0)>0)z=v;else{l=s;t=v;break}}c[p>>2]=t;if((t|0)==-1)break g;if(!(l>>>0<=F>>>0|l>>>0>I>>>0|t>>>0>N>>>0)){s=ow(l+-1|0,0,D|0,0)|0;s=fw(s|0,C|0,56,0)|0;R=c[E>>2]|0;s=pc[c[(c[R>>2]|0)+8>>2]&31](R,m,S,s,C)|0;if(s)break f;s=ow(t+-1|0,0,S|0,0)|0;R=c[M>>2]|0;s=pc[c[(c[R>>2]|0)+12>>2]&31](R,m,S,s,C)|0;if(s)break f}t=c[B>>2]|0;if((t|0)<=0){X=66;break}else s=l}}else X=66;while(0);if((X|0)==66)c[p>>2]=-1;if((I|0)==(c[(c[c[U>>2]>>2]|0)+16>>2]|0)){s=ow(c[O>>2]|0,0,S|0,0)|0;X=c[M>>2]|0;s=Yb[c[(c[X>>2]|0)+16>>2]&63](X,s,C)|0;if((s|0)==0&G){s=c[M>>2]|0;s=nc[c[(c[s>>2]|0)+20>>2]&127](s,k)|0}if(s)break}c[T>>2]=I;s=0}}while(0);if(!(a[$>>0]|0)){X=c[M>>2]|0;lc[c[(c[X>>2]|0)+56>>2]&31](X,3,1,9)|0}}else s=t;while(0);s=(s|0)==5?0:s;X=88}else q=t}else{p=0;s=0;X=88}while(0);k:do if((X|0)==88)if((s|0)==0&(Y|0)!=0)if((c[T>>2]|0)>>>0>=(c[V>>2]|0)>>>0)if((Y|0)>1){_c(4,W);t=d+4|0;r=(g|0)!=0;while(1){if(a[$>>0]|0)break;s=c[t>>2]|0;s=lc[c[(c[s>>2]|0)+56>>2]&31](s,4,4,10)|0;if(!(r&(s|0)==5)){q=s;X=95;break}if(!(hc[g&127](h)|0)){q=5;X=100;break k}}if((X|0)==95?(q|0)!=0:0){X=100;break}if((Y|0)==3){To(d,c[W>>2]|0);q=c[d+8>>2]|0;q=Yb[c[(c[q>>2]|0)+16>>2]&63](q,0,0)|0}else q=0;if(!(a[$>>0]|0)){X=c[t>>2]|0;lc[c[(c[X>>2]|0)+56>>2]&31](X,4,4,9)|0;X=100}else X=100}else{q=0;X=100}else{q=5;X=100}else{q=s;X=100}while(0);if((X|0)==100)Sc(p);if((q|0)==0|(q|0)==5){if(n)c[n>>2]=c[V>>2];if(o)c[o>>2]=c[(c[c[U>>2]>>2]|0)+96>>2]}}else q=t;while(0);if(c[_>>2]|0){z=d+52|0;y=z+48|0;do{c[z>>2]=0;z=z+4|0}while((z|0)<(y|0))}p=d+44|0;if(a[p>>0]|0){if(!(a[$>>0]|0)){_=c[d+4>>2]|0;lc[c[(c[_>>2]|0)+56>>2]&31](_,0,1,9)|0}a[p>>0]=0;a[d+47>>0]=0}if(!(a[$>>0]|0)){$=c[d+4>>2]|0;lc[c[(c[$>>2]|0)+56>>2]&31]($,1,1,9)|0}a[Z>>0]=0;p=(q|0)!=0|(Y|0)==(f|0)?q:5}else p=8;while(0);i=aa;return p|0}function Qn(b,c,d,e,f){b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=(c|0)<(e|0)?c:e;g=Vv(d,f,h)|0;a:do if(!g){b:do if(b){g=c-h|0;while(1){if((g|0)<=0)break;g=g+-1|0;if((a[d+(g+h)>>0]|0)!=32)break b}if(!g){g=e-h|0;while(1){if((g|0)<=0)break;g=g+-1|0;if((a[f+(g+h)>>0]|0)!=32)break b}if(!g){g=0;break a}}}while(0);g=c-e|0}while(0);return g|0}function Rn(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=Bc(c,e,(b|0)<(d|0)?b:d)|0;return ((a|0)==0?b-d|0:a)|0}function Sn(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|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;y=i;i=i+16|0;if((i|0)>=(j|0))ba();w=y;p=c[e>>2]|0;a:do if(d){n=d;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;o=n-d&1073741823;if((c[2189]|p&64|0)!=0&o>>>0>4?(Vv(d,14984,5)|0)==0:0){n=o+2|0;m=p|64;if(o){p=0;do{n=((a[d+p>>0]|0)==38&1)+n|0;p=p+1|0}while((p|0)<(o|0))}l=Pc(n)|0;if(l){do if((a[d+5>>0]|0)==47?(a[d+6>>0]|0)==47:0){n=7;while(1){s=a[d+n>>0]|0;if(s<<24>>24==0|s<<24>>24==47)break;n=n+1|0}if((n|0)==16){k=d+7|0;if(!(Vv(14992,k,9)|0)){n=0;p=16;k=0;break}}else if((n|0)==7){n=0;p=7;k=0;break}else k=d+7|0;c[w>>2]=n+-7;c[w+4>>2]=k;c[h>>2]=Wc(15008,w)|0;k=1;x=74;break a}else{n=0;p=5;k=0}while(0);b:while(1){u=l+(k+-1)|0;c:while(1){d:while(1){o=a[d+p>>0]|0;if(o<<24>>24==35|o<<24>>24==0)break b;q=p+1|0;if((o<<24>>24==37?(v=a[d+q>>0]|0,(a[10368+(v&255)>>0]&8)!=0):0)?(t=a[d+(p+2)>>0]|0,(a[10368+(t&255)>>0]&8)!=0):0){o=v;q=t;break}if(!n){p=q;x=38;break c}else if((n|0)==2){p=q;x=39;break c}else if((n|0)!=1){p=q;break c}if(!(o<<24>>24==38|o<<24>>24==61)){n=1;p=q;break c}if(!(a[u>>0]|0))p=q;else{p=q;x=36;break c}while(1){s=a[d+p>>0]|0;if(s<<24>>24==35|s<<24>>24==0)continue d;if((a[d+(p+-1)>>0]|0)==38)continue d;else p=p+1|0}}o=o<<24>>24;p=p+3|0;s=q<<24>>24;o=(0-(s>>>6&1)&9)+s&15|(0-(o>>>6&1)&9)+o<<4&240;if(o){x=30;break}q=(n|0)==0;while(1){o=a[d+p>>0]|0;if(o<<24>>24==35|o<<24>>24==0)continue c;if(q&o<<24>>24==63){n=0;continue c}if((n|0)==1){if(o<<24>>24==38|o<<24>>24==61){n=1;continue c}}else if((n|0)==2?o<<24>>24==38:0){n=2;continue c}p=p+1|0}}if((x|0)==30){x=0;o=o&255}else if((x|0)==36){x=0;if(o<<24>>24==38){a[l+k>>0]=0;o=0;n=1;k=k+1|0}else{o=0;n=2}}else if((x|0)==38){x=0;if(o<<24>>24==63)x=40;else n=0}else if((x|0)==39){x=0;if(o<<24>>24==38)x=40;else n=2}if((x|0)==40){x=0;o=0;n=1}a[l+k>>0]=o;k=k+1|0}if((n|0)==1){a[l+k>>0]=0;k=k+1|0}a[l+k>>0]=0;a[l+(k+1)>>0]=0;k=l;while(1)if(!(a[k>>0]|0))break;else k=k+1|0;k=(k-l&1073741823)+1|0;n=a[l+k>>0]|0;if(n<<24>>24){v=l+k|0;e:while(1){o=v;while(1){k=o+1|0;if(!(n<<24>>24)){n=o;break}n=a[k>>0]|0;o=k}u=n-v&1073741823;n=v+(u+1)|0;o=n;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;t=o-n&1073741823;if((u|0)==5)if(!(Vv(15048,v,5)|0)){d=15056;r=393216;s=-393217;k=15048;x=58}else k=b;else if((u|0)==4)if(!(Vv(15096,v,4)|0)){d=15104;r=m&135;s=-136;k=15176;x=58}else k=b;else if((u|0)==3){k=(Vv(15040,v,3)|0)==0;k=k?n:b}else k=b;if((x|0)==58){x=0;p=c[d>>2]|0;if(!p){x=65;break}else o=0;while(1){q=p;while(1)if(!(a[q>>0]|0))break;else q=q+1|0;if((t|0)==(q-p&1073741823|0)?(Vv(n,p,t)|0)==0:0){p=o;break}o=o+1|0;p=c[d+(o<<3)>>2]|0;if(!p){x=65;break e}}p=c[d+(p<<3)+4>>2]|0;if(!p){x=65;break}if((p&-129|0)>(r|0)){x=67;break}m=p|s&m;k=b}v=v+(u+2+t)|0;n=a[v>>0]|0;if(!(n<<24>>24)){x=72;break a}else b=k}if((x|0)==65){c[w>>2]=k;c[w+4>>2]=n;c[h>>2]=Wc(15184,w)|0;k=1;x=74;break}else if((x|0)==67){c[w>>2]=k;c[w+4>>2]=n;c[h>>2]=Wc(15208,w)|0;k=3;x=74;break}}else{k=b;x=72}}else k=7}else{m=o;x=70}}else{m=0;x=70}while(0);if((x|0)==70){l=Pc(m+2|0)|0;if(!l)k=7;else{gw(l|0,d|0,m|0)|0;a[l+m>>0]=0;a[l+(m+1)>>0]=0;m=p&-65;k=b;x=72}}if((x|0)==72){s=Gc(k)|0;c[f>>2]=s;if(!s){c[w>>2]=k;c[h>>2]=Wc(15232,w)|0;k=1;x=74}else{k=0;x=75}}if((x|0)==74){Sc(l);l=0;x=75}if((x|0)==75){c[e>>2]=m;c[g>>2]=l}i=y;return k|0}function Tn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;do if(!d){d=mg(84,0)|0;if(!d)e=8;else{b=d+0|0;g=b+84|0;do{a[b>>0]=0;b=b+1|0}while((b|0)<(g|0));e=9}}else{f=c[d+4>>2]|0;c[f+4>>2]=c[d>>2];e=f+48|0;d=c[e>>2]|0;if(!d){d=mg(84,0)|0;if(!d){c[e>>2]=0;c[f+52>>2]=22;e=8;break}else{b=d+0|0;g=b+84|0;do{a[b>>0]=0;b=b+1|0}while((b|0)<(g|0));c[e>>2]=d;c[f+52>>2]=22;e=9;break}}else e=9}while(0);if((e|0)==8){a[b+65>>0]=1;d=0}else if((e|0)==9)if(!(a[d+76>>0]|0)){e=d+77|0;b=d+8|0;g=b+64|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(g|0));a[e>>0]=1}return d|0}function Un(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();if(e){k=b+428|0;h=Zm(k,e,m)|0;if(!h)g=0;else g=c[h+8>>2]|0;if((g|0)==0&(f|0)!=0){h=e;while(1)if(!(a[h>>0]|0))break;else h=h+1|0;h=h-e&1073741823;f=h+61|0;g=ih(b,f,0)|0;if(g){bw(g|0,0,f|0)|0;f=g+60|0;c[g>>2]=f;a[g+4>>0]=1;c[g+20>>2]=f;a[g+24>>0]=2;c[g+40>>2]=f;a[g+44>>0]=3;gw(f|0,e|0,h|0)|0;a[g+(h+60)>>0]=0;h=Ek(k,c[g>>2]|0,g)|0;if(!h)l=10;else{a[b+65>>0]=1;ig(b,h);g=0}}else g=0}else l=10}else{g=c[b+8>>2]|0;l=10}if((l|0)==10)if(!g)g=0;else g=g+(((d&255)+-1|0)*20|0)|0;i=m;return g|0}function Vn(f,g,h){f=f|0;g=g|0;h=h|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;A=i;i=i+64|0;if((i|0)>=(j|0))ba();y=A;m=A+48|0;q=A+24|0;v=A+8|0;n=(g|0)==1;t=n?13184:13208;c[m>>2]=t;c[m+4>>2]=13224;c[m+8>>2]=n?13064:12960;c[m+12>>2]=0;c[v>>2]=f;c[v+8>>2]=g;u=v+12|0;c[u>>2]=0;c[v+4>>2]=h;Xm(v,3,m,0)|0;m=c[u>>2]|0;a:do if(!m){w=f+16|0;m=Wh(f,t,c[(c[w>>2]|0)+(g<<4)>>2]|0)|0;if(m){s=m+44|0;a[s>>0]=d[s>>0]|1}l=c[w>>2]|0;x=l+(g<<4)+4|0;m=c[x>>2]|0;if(!m){if(!n){k=0;break}k=(c[l+28>>2]|0)+78|0;b[k>>1]=e[k>>1]|1;k=0;break}c[(c[m+4>>2]|0)+4>>2]=c[m>>2];do if(!(a[m+8>>0]|0)){m=ug(m,0)|0;if((m|0)==516)k=16344;else if(!m){m=c[x>>2]|0;s=1;break}else z=10;if((z|0)==10){k=m&255;if(k>>>0>26|(k|0)==2)k=16328;else k=c[15488+(k<<2)>>2]|0}c[y>>2]=k;$g(h,f,10344,y);k=m;z=38;break a}else s=0;while(0);sm(m,1,q);r=q+4|0;sm(c[x>>2]|0,2,r);o=q+8|0;sm(c[x>>2]|0,3,o);sm(c[x>>2]|0,4,q+12|0);n=q+16|0;sm(c[x>>2]|0,5,n);p=l+(g<<4)+12|0;m=c[p>>2]|0;c[m>>2]=c[q>>2];l=c[n>>2]|0;do if(l){if(!g){n=l&3;n=(n|0)==0?1:n&255;a[f+62>>0]=n;z=19;break}n=a[f+62>>0]|0;if((l|0)==(n&255|0))z=19;else{$g(h,f,13232,y);k=1}}else{n=(c[(c[w>>2]|0)+(g<<4)+12>>2]|0)+78|0;b[n>>1]=e[n>>1]|4;n=a[f+62>>0]|0;z=19}while(0);do if((z|0)==19){a[m+77>>0]=n;n=m+80|0;if(!(c[n>>2]|0)){m=c[o>>2]|0;if((m|0)<=-1)m=(m|0)==-2147483648?2147483647:0-m|0;m=(m|0)==0?2e3:m;c[n>>2]=m;lq(c[x>>2]|0,m);m=c[p>>2]|0}l=c[r>>2]|0;n=l&255;m=m+76|0;if(n<<24>>24){a[m>>0]=n;if((n&255)>4){$g(h,f,13304,y);k=1;break}}else a[m>>0]=1;if((g|0)==0&(l|0)>3){r=f+24|0;c[r>>2]=c[r>>2]&-32769}c[y>>2]=c[(c[w>>2]|0)+(g<<4)>>2];c[y+4>>2]=t;m=qh(f,13328,y)|0;t=f+284|0;r=c[t>>2]|0;c[t>>2]=0;l=Me(f,m,22,v,0)|0;c[t>>2]=r;l=(l|0)==0?c[u>>2]|0:l;ig(f,m);m=(l|0)==0;if(m)Ym(f,g)|0;if(!(a[f+65>>0]|0)){if(!m){k=l;z=34}}else{Ag(f);k=7;z=34}if((z|0)==34?(c[f+24>>2]&65536|0)==0:0)break;k=(c[(c[w>>2]|0)+(g<<4)+12>>2]|0)+78|0;b[k>>1]=e[k>>1]|1;k=0}while(0);if(!s)z=38;else{qn(c[x>>2]|0)|0;z=38}}else{k=m;z=38}while(0);if((z|0)==38)if((k|0)==7|(k|0)==3082)a[f+65>>0]=1;i=A;return k|0}function Wn(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+80|0;if((i|0)>=(j|0))ba();n=o;c[12066]=c[2708];if(!(c[12067]|0))c[12067]=Hb(48336)|0;if(!(c[12068]|0))c[12068]=Hb(48352)|0;g=n+12|0;h=0;f=0;do{if((((f|0)!=0?(nc[c[47552+52>>2]&127](f,n)|0)==0:0)?(c[g>>2]&61440|0)==16384:0)?(nc[c[47552+28>>2]&127](f,7)|0)==0:0)break;f=c[48264+(h<<2)>>2]|0;h=h+1|0}while(h>>>0<7);m=(f|0)==0?28928:f;if(((cw(m|0)|0)+25|0)>>>0<b>>>0){b=b+-18|0;do{c[n>>2]=m;Yc(b,e,48248,n)|0;g=cw(e|0)|0;f=e+g|0;_c(15,f);l=e+(g+15)|0;k=0;h=g;while(1){a[f>>0]=a[48184+(((d[f>>0]|0)%62|0)&255)>>0]|0;k=k+1|0;h=h+1|0;if((k|0)==15)break;else f=e+h|0}a[l>>0]=0;a[e+(g+16)>>0]=0}while((nc[c[47552+28>>2]&127](e,0)|0)==0);f=0}else f=1;i=o;return f|0}function Xn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+80|0;if((i|0)>=(j|0))ba();k=m;h=(d|0)!=0;f=h?d:420;g=b|524288;while(1){e=Yb[c[47552+4>>2]&63](a,g,f)|0;if((e|0)<0)if((c[(Db()|0)>>2]|0)==4)continue;else break;if((e|0)>2){l=6;break}hc[c[47552+16>>2]&127](e)|0;c[k>>2]=a;c[k+4>>2]=e;Zc(28,48120,k);if((Yb[c[47552+4>>2]&63](48168,b,d)|0)<0){e=-1;break}}if((l|0)==6)if(((h?(nc[c[47552+64>>2]&127](e,k)|0)==0:0)?(c[k+36>>2]|0)==0:0)?(c[k+12>>2]&511|0)!=(d|0):0)nc[c[47552+172>>2]&127](e,d)|0;i=m;return e|0}function Yn(a,b,d){a=a|0;b=b|0;d=d|0;if(hc[c[47552+16>>2]&127](b)|0){if(!a)b=0;else b=c[a+32>>2]|0;_n(4106,47856,b,d)|0}return}function Zn(a){a=a|0;var d=0,f=0,g=0,h=0;h=i;i=i+80|0;if((i|0)>=(j|0))ba();g=h;d=h+4|0;f=a+18|0;do if(!(b[f>>1]&256)){if(nc[c[47552+64>>2]&127](c[a+12>>2]|0,d)|0){c[g>>2]=c[a+32>>2];Zc(28,48592,g);b[f>>1]=e[f>>1]|0|256;break}d=c[d+16>>2]|0;if(!d){if(!(b[f>>1]&32)){c[g>>2]=c[a+32>>2];Zc(28,48616,g);b[f>>1]=e[f>>1]|0|256;break}}else if(d>>>0>1){c[g>>2]=c[a+32>>2];Zc(28,48648,g);b[f>>1]=e[f>>1]|0|256;break}if(to(a)|0){c[g>>2]=c[a+32>>2];Zc(28,48680,g);b[f>>1]=e[f>>1]|0|256}}while(0);i=h;return}function _n(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;f=i;i=i+32|0;if((i|0)>=(j|0))baba();P=S+64|0;q=S+132|0;p=S+128|0;o=S+124|0;r=S+56|0;L=S+48|0;Q=S+136|0;O=S;n=k+0|0;m=n+48|0;do{c[n>>2]=0;n=n+4|0}while((n|0)<(m|0));a:do if(f){l=c[g>>2]|0;b:do if(((d[10064+(e[l+8>>1]&31)>>0]|0)+-1|0)>>>0>=2){n=Og(l,1)|0;if(!n){l=1;break a}m=(a[n>>0]|0)==45;l=m?n+1|0:n;c[P>>2]=4;c[P+4>>2]=0;c[P+8>>2]=9999;c[P+12>>2]=45;c[P+16>>2]=q;c[P+20>>2]=2;c[P+24>>2]=1;c[P+28>>2]=12;c[P+32>>2]=45;c[P+36>>2]=p;c[P+40>>2]=2;c[P+44>>2]=1;c[P+48>>2]=31;c[P+52>>2]=0;c[P+56>>2]=o;do if((nq(l,P)|0)==3){l=l+10|0;while(1){I=a[l>>0]|0;if(I<<24>>24==84?1:(a[10368+(I&255)>>0]&1)!=0)l=l+1|0;else break}if(oq(l,k)|0){if(a[l>>0]|0)break;a[k+41>>0]=0}a[k+42>>0]=0;a[k+40>>0]=1;I=c[q>>2]|0;c[k+8>>2]=m?0-I|0:I;c[k+12>>2]=c[p>>2];c[k+16>>2]=c[o>>2];if(!(a[k+43>>0]|0))break b;jo(k);break b}while(0);if(oq(n,k)|0){if(!($c(n,20080)|0))if(!(mq(b,k)|0))break;else{l=1;break a}else l=n;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;if(!(Pl(n,r,l-n&1073741823,1)|0)){l=1;break a}s=+h[r>>3]*864.0e5+.5;H=+N(s)>=1.0?(s>0.0?~~+$(+M(s/4294967296.0),4294967295.0)>>>0:~~+Z((s-+(~~s>>>0))/4294967296.0)>>>0):0;I=k;c[I>>2]=~~s>>>0;c[I+4>>2]=H;a[k+42>>0]=1}}else{s=+Qg(l)*864.0e5+.5;H=+N(s)>=1.0?(s>0.0?~~+$(+M(s/4294967296.0),4294967295.0)>>>0:~~+Z((s-+(~~s>>>0))/4294967296.0)>>>0):0;I=k;c[I>>2]=~~s>>>0;c[I+4>>2]=H;a[k+42>>0]=1}while(0);if((f|0)>1){l=k+40|0;v=k+41|0;w=k+43|0;x=k+42|0;y=Q+8|0;z=y;A=Q+9|0;B=k+24|0;D=k+20|0;E=k+32|0;F=k+16|0;G=k+12|0;H=Q+1|0;I=k+8|0;J=1;while(1){p=Og(c[g+(J<<2)>>2]|0,1)|0;if(!p){l=1;break a}c[P>>2]=1;r=0;do{q=a[p+r>>0]|0;if(!(q<<24>>24))break;a[Q+r>>0]=a[9328+(q&255)>>0]|0;r=r+1|0}while((r|0)<29);a[Q+r>>0]=0;c:do switch(a[Q>>0]|0){case 108:{if(!(Wv(Q,19936)|0)){jo(k);m=pq(k,b,P)|0;R=k;m=fw(c[R>>2]|0,c[R+4>>2]|0,m|0,C|0)|0;R=k;c[R>>2]=m;c[R+4>>2]=C;a[l>>0]=0;a[v>>0]=0;a[w>>0]=0;R=82}else R=82;break}case 117:{if((Wv(Q,19952)|0)==0?(a[x>>0]|0)!=0:0){m=k;m=fw(c[m>>2]|0,c[m+4>>2]|0,43200,0)|0;m=mw(m|0,C|0,86400,0)|0;m=fw(m|0,C|0,1045635584,49096)|0;r=k;c[r>>2]=m;c[r+4>>2]=C;a[l>>0]=0;a[v>>0]=0;a[w>>0]=0;c[P>>2]=0;r=0;break c}if(!(Wv(Q,19968)|0)){jo(k);q=pq(k,b,P)|0;p=C;r=c[P>>2]|0;if(!r){m=k;m=$v(c[m>>2]|0,c[m+4>>2]|0,q|0,p|0)|0;R=k;c[R>>2]=m;c[R+4>>2]=C;a[l>>0]=0;a[v>>0]=0;a[w>>0]=0;R=pq(k,b,P)|0;R=$v(q|0,p|0,R|0,C|0)|0;m=k;m=fw(R|0,C|0,c[m>>2]|0,c[m+4>>2]|0)|0;R=k;c[R>>2]=m;c[R+4>>2]=C;R=82}}else R=82;break}case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:case 45:case 43:{p=1;while(1){r=Q+p|0;q=a[r>>0]|0;if(q<<24>>24==58|q<<24>>24==0){q=r;break}if(!(a[10368+(q&255)>>0]&1))p=p+1|0;else{q=r;break}}if(!(Pl(Q,L,p,1)|0)){c[P>>2]=1;r=1;break c}r=a[q>>0]|0;if(r<<24>>24==58){r=((d[Q>>0]|0)+-48|0)>>>0<10?Q:H;n=O+0|0;m=n+48|0;do{c[n>>2]=0;n=n+4|0}while((n|0)<(m|0));if(oq(r,O)|0){R=82;break c}jo(O);r=O;r=fw(c[r>>2]|0,c[r+4>>2]|0,-432e5,-1)|0;r=nw(r|0,C|0,864e5,0)|0;q=C;m=O;c[m>>2]=r;c[m+4>>2]=q;if((a[Q>>0]|0)==45){r=$v(0,0,r|0,q|0)|0;q=C;m=O;c[m>>2]=r;c[m+4>>2]=q}jo(k);a[l>>0]=0;a[v>>0]=0;a[w>>0]=0;m=k;m=fw(c[m>>2]|0,c[m+4>>2]|0,r|0,q|0)|0;r=k;c[r>>2]=m;c[r+4>>2]=C;c[P>>2]=0;r=0;break c}if(a[10368+(r&255)>>0]&1){q=Q+(p+1)|0;while(1){r=a[q>>0]|0;if(!(a[10368+(r&255)>>0]&1))break;else q=q+1|0}}if(!(r<<24>>24))r=q;else{r=q;do r=r+1|0;while((a[r>>0]|0)!=0)}r=r-q&1073741823;if((r+-3|0)>>>0>7)R=82;else{p=r+-1|0;o=q+p|0;if((a[o>>0]|0)==115){a[o>>0]=0;r=p}jo(k);c[P>>2]=0;t=+h[L>>3];u=t<0.0?-.5:.5;do if((r|0)==3)if(!(Wv(q,20024)|0)){s=t*864.0e5+u;n=+N(s)>=1.0?(s>0.0?~~+$(+M(s/4294967296.0),4294967295.0)>>>0:~~+Z((s-+(~~s>>>0))/4294967296.0)>>>0):0;m=k;n=fw(c[m>>2]|0,c[m+4>>2]|0,~~s>>>0|0,n|0)|0;m=k;c[m>>2]=n;c[m+4>>2]=C}else R=80;else if((r|0)==4){if(!(Wv(q,20032)|0)){s=t*36.0e5+u;n=+N(s)>=1.0?(s>0.0?~~+$(+M(s/4294967296.0),4294967295.0)>>>0:~~+Z((s-+(~~s>>>0))/4294967296.0)>>>0):0;m=k;n=fw(c[m>>2]|0,c[m+4>>2]|0,~~s>>>0|0,n|0)|0;m=k;c[m>>2]=n;c[m+4>>2]=C;break}if(!(Wv(q,20016)|0)){m=~~t;ko(k);lo(k);c[I>>2]=(c[I>>2]|0)+m;a[x>>0]=0;jo(k);s=+(m|0);if(s!=t){s=u+(t-s)*365.0*864.0e5;n=+N(s)>=1.0?(s>0.0?~~+$(+M(s/4294967296.0),4294967295.0)>>>0:~~+Z((s-+(~~s>>>0))/4294967296.0)>>>0):0;m=k;n=fw(c[m>>2]|0,c[m+4>>2]|0,~~s>>>0|0,n|0)|0;m=k;c[m>>2]=n;c[m+4>>2]=C}}else R=80}else if((r|0)==6){if(!(Wv(q,20040)|0)){s=t*6.0e4+u;n=+N(s)>=1.0?(s>0.0?~~+$(+M(s/4294967296.0),4294967295.0)>>>0:~~+Z((s-+(~~s>>>0))/4294967296.0)>>>0):0;m=k;n=fw(c[m>>2]|0,c[m+4>>2]|0,~~s>>>0|0,n|0)|0;m=k;c[m>>2]=n;c[m+4>>2]=C;break}if(!(Wv(q,20048)|0)){s=t*1.0e3+u;n=+N(s)>=1.0?(s>0.0?~~+$(+M(s/4294967296.0),4294967295.0)>>>0:~~+Z((s-+(~~s>>>0))/4294967296.0)>>>0):0;m=k;n=fw(c[m>>2]|0,c[m+4>>2]|0,~~s>>>0|0,n|0)|0;m=k;c[m>>2]=n;c[m+4>>2]=C}else R=80}else if((r|0)==5?(Wv(q,20008)|0)==0:0){ko(k);lo(k);m=~~t;n=(c[G>>2]|0)+m|0;o=(((n|0)>0?-1:-12)+n|0)/12|0;c[I>>2]=(c[I>>2]|0)+o;c[G>>2]=(_(o,-12)|0)+n;a[x>>0]=0;jo(k);s=+(m|0);if(s!=t){s=u+(t-s)*30.0*864.0e5;n=+N(s)>=1.0?(s>0.0?~~+$(+M(s/4294967296.0),4294967295.0)>>>0:~~+Z((s-+(~~s>>>0))/4294967296.0)>>>0):0;m=k;n=fw(c[m>>2]|0,c[m+4>>2]|0,~~s>>>0|0,n|0)|0;m=k;c[m>>2]=n;c[m+4>>2]=C}}else R=80;while(0);if((R|0)==80)c[P>>2]=1;a[l>>0]=0;a[v>>0]=0;a[w>>0]=0;R=82}break}case 119:{if(!(Xv(Q,19976,8)|0)){r=y;while(1)if(!(a[r>>0]|0))break;else r=r+1|0;if((Pl(y,L,r-z&1073741823,1)|0)!=0?(s=+h[L>>3],K=~~s,+(K|0)==s&(K|0)>-1&s<7.0):0){ko(k);lo(k);a[w>>0]=0;a[x>>0]=0;jo(k);m=k;r=c[m>>2]|0;m=c[m+4>>2]|0;p=fw(r|0,m|0,1296e5,0)|0;p=mw(p|0,C|0,864e5,0)|0;p=nw(p|0,C|0,7,0)|0;n=C;T=((K|0)<0)<<31>>31;o=(n|0)>(T|0)|(n|0)==(T|0)&p>>>0>K>>>0;q=fw(p|0,n|0,-7,-1)|0;n=$v(K|0,T|0,(o?q:p)|0,(o?C:n)|0)|0;n=ow(n|0,C|0,864e5,0)|0;m=fw(n|0,C|0,r|0,m|0)|0;r=k;c[r>>2]=m;c[r+4>>2]=C;a[l>>0]=0;a[v>>0]=0;a[w>>0]=0;c[P>>2]=0;r=0}else R=82}else R=82;break}case 115:{if(!(Xv(Q,19992,9)|0)){ko(k);a[v>>0]=1;c[B>>2]=0;c[D>>2]=0;h[E>>3]=0.0;a[w>>0]=0;a[x>>0]=0;if(!(Wv(A,20008)|0)){c[F>>2]=1;c[P>>2]=0;r=0;break c}if(!(Wv(A,20016)|0)){ko(k);c[G>>2]=1;c[F>>2]=1;c[P>>2]=0;r=0;break c}if(!(Wv(A,20024)|0)){c[P>>2]=0;r=0}else R=82}else R=82;break}default:R=82}while(0);if((R|0)==82){R=0;r=c[P>>2]|0}J=J+1|0;if(r){l=1;break a}if((J|0)>=(f|0)){l=0;break a}}}else l=0}else l=mq(b,k)|0;while(0);i=S;return l|0}function jo(b){b=b|0;var d=0,e=0,f=0,g=0,i=0,j=0,k=0,l=0,m=0,n=0.0;i=b+42|0;if(!(a[i>>0]|0)){j=b+40|0;if(a[j>>0]|0){e=c[b+8>>2]|0;d=c[b+12>>2]|0;f=c[b+16>>2]|0;if((d|0)<3)g=4}else{f=1;d=1;e=2e3;g=4}if((g|0)==4){d=d+12|0;e=e+-1|0}n=(+(f+2+((e|0)/-100|0)+((e|0)/400|0)+(((e*36525|0)+172251900|0)/100|0)+(((d*306001|0)+306001|0)/1e4|0)|0)+-1524.5)*864.0e5;e=~~n>>>0;f=+N(n)>=1.0?(n>0.0?~~+$(+M(n/4294967296.0),4294967295.0)>>>0:~~+Z((n-+(~~n>>>0))/4294967296.0)>>>0):0;d=b;c[d>>2]=e;c[d+4>>2]=f;a[i>>0]=1;d=b+41|0;if((a[d>>0]|0)!=0?(k=_(c[b+20>>2]|0,36e5)|0,k=((c[b+24>>2]|0)*6e4|0)+k|0,n=+h[b+32>>3]*1.0e3,l=fw(~~n>>>0|0,(+N(n)>=1.0?(n>0.0?~~+$(+M(n/4294967296.0),4294967295.0)>>>0:~~+Z((n-+(~~n>>>0))/4294967296.0)>>>0):0)|0,e|0,f|0)|0,k=fw(l|0,C|0,k|0,((k|0)<0)<<31>>31|0)|0,l=C,m=b,c[m>>2]=k,c[m+4>>2]=l,m=b+43|0,(a[m>>0]|0)!=0):0){f=(c[b+28>>2]|0)*6e4|0;f=$v(k|0,l|0,f|0,((f|0)<0)<<31>>31|0)|0;e=b;c[e>>2]=f;c[e+4>>2]=C;a[j>>0]=0;a[d>>0]=0;a[m>>0]=0}}return}function ko(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;g=b+40|0;if(!(a[g>>0]|0)){if(!(a[b+42>>0]|0)){d=2e3;e=1;f=1}else{d=b;d=fw(c[d>>2]|0,c[d+4>>2]|0,432e5,0)|0;d=mw(d|0,C|0,864e5,0)|0;h=~~((+(d|0)+-1867216.25)/36524.25);h=d+1525+h+((h|0)/-4|0)|0;d=~~((+(h|0)+-122.1)/365.25);h=h-((d*36525|0)/100|0)|0;f=~~(+(h|0)/30.6001);e=((f|0)<14?-1:-13)+f|0;d=((e|0)>2?-4716:-4715)+d|0;f=h-~~(+(f|0)*30.6001)|0}c[b+16>>2]=f;c[b+12>>2]=e;c[b+8>>2]=d;a[g>>0]=1}return}function lo(b){b=b|0;var d=0,e=0,f=0,g=0,i=0.0;d=b+41|0;if(!(a[d>>0]|0)){jo(b);g=b;g=fw(c[g>>2]|0,c[g+4>>2]|0,432e5,0)|0;g=nw(g|0,C|0,864e5,0)|0;i=+(g|0)/1.0e3;g=~~i;f=(g|0)/3600|0;c[b+20>>2]=f;f=(_(f,-3600)|0)+g|0;e=(f|0)/60|0;c[b+24>>2]=e;h[b+32>>3]=i-+(g|0)+ +(f+(_(e,-60)|0)|0);a[d>>0]=1}return}function mo(a){a=a|0;ig(c[a+52>>2]|0,a);return}function no(b,d,f,g){b=b|0;d=d|0;f=f|0;g=g|0;var h=0,i=0;i=b+65|0;do if(!(a[i>>0]|0)){if(!d){h=ih(b,f,g)|0;break}if((c[b+276>>2]|0)>>>0<=d>>>0?(c[b+280>>2]|0)>>>0>d>>>0:0){i=b+248|0;if(!(0<g>>>0|(0==(g|0)?(e[i>>1]|0)>>>0<f>>>0:0))){h=d;break}h=ih(b,f,g)|0;if(!h){h=0;break}gw(h|0,d|0,e[i>>1]|0)|0;ig(b,d);break}if((Hc()|0)==0?(h=ng(d,f,g)|0,(h|0)!=0):0)break;a[i>>0]=1;h=0}else h=0;while(0);return h|0}function oo(a,d){a=a|0;d=d|0;var e=0,f=0;if(!a)a=0;else{f=c[a+4>>2]|0;c[f+4>>2]=c[a>>2];f=f+22|0;a=b[f>>1]|0;if((d|0)>-1){e=a&65535;a=e&65531;b[f>>1]=a;if(d){a=(e|4)&65535;b[f>>1]=a}}a=(a&65535)>>>2&1}return a|0}function po(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;h=c[b+4>>2]|0;c[h+4>>2]=c[b>>2];h=c[h>>2]|0;f=e&3;if((f|0)!=1){g=a[h+12>>0]|0;b=h+7|0;a[b>>0]=g<<24>>24!=0&1;if((f|0)==3)g=g<<24>>24==0&1;else g=0}else{b=h+7|0;a[b>>0]=1;g=0}a[h+8>>0]=g;do if(!(a[b>>0]|0)){if(e&4){a[h+11>>0]=3;a[h+9>>0]=3;b=3;break}a[h+11>>0]=2;b=h+9|0;if(!(e&8)){a[b>>0]=2;b=2;break}else{a[b>>0]=3;b=2;break}}else{a[h+11>>0]=0;a[h+9>>0]=0;b=0}while(0);if(g<<24>>24)b=(b&255|32)&255;a[h+10>>0]=b;b=h+20|0;f=d[b>>0]|0;a[b>>0]=(e&16|0)==0?f|1:f&254;return}function qo(a){a=a|0;var b=0,d=0;d=a+12|0;b=c[d>>2]|0;if((b|0)>-1){Yn(a,b,27311);c[d>>2]=-1}Sc(c[a+28>>2]|0);b=a+0|0;d=b+44|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(d|0));return}function ro(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;i=f&131071;while(1){h=_a(a|0,b|0,0)|0;if(!((h|0)==(b|0)&(((h|0)<0)<<31>>31|0)==(d|0))){j=3;break}h=Yb[c[47552+136>>2]&63](a,e,i)|0;if((h|0)>=0)break;f=c[(Db()|0)>>2]|0;if((f|0)!=4){j=9;break}}if((j|0)==3)if(!g)h=-1;else{if((h|0)==-1)h=c[(Db()|0)>>2]|0;else h=0;c[g>>2]=h;h=-1}else if((j|0)==9)if(g)c[g>>2]=f;return h|0}function so(a,d,f){a=a|0;d=d|0;f=f|0;var g=0;g=c[f>>2]|0;do if((g|0)>=0){d=d&255;if(!g){f=a+18|0;b[f>>1]=(e[f>>1]|0)&(d^65535);break}else{f=a+18|0;b[f>>1]=e[f>>1]|0|d;break}}else c[f>>2]=((e[a+18>>1]|0)&(d&255)|0)!=0&1;while(0);return}function to(a){a=a|0;var b=0,d=0,e=0;e=i;i=i+80|0;if((i|0)>=(j|0))ba();d=e;b=a+8|0;if(c[b>>2]|0)if(!(nc[c[47552+52>>2]&127](c[a+32>>2]|0,d)|0))b=(c[d+72>>2]|0)!=(c[(c[b>>2]|0)+4>>2]|0);else b=1;else b=0;i=e;return b&1|0}function uo(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+32|0;if((i|0)>=(j|0))ba();l=m;k=m+8|0;h=(c[(c[a+8>>2]|0)+20>>2]|0)+12|0;if((c[h>>2]|0)>-1){c[k+0>>2]=0;c[k+4>>2]=0;c[k+8>>2]=0;c[k+12>>2]=0;b[k>>1]=d;b[k+2>>1]=0;c[k+4>>2]=f;c[k+8>>2]=g;d=a+18|0;g=((b[d>>1]&512)>>>9)+13|0;f=c[11910]|0;h=c[h>>2]|0;c[l>>2]=k;h=(Yb[f&63](h,g,l)|0)!=-1;b[d>>1]=(e[d>>1]|0)&65023;h=h?0:5}else h=0;i=m;return h|0}function vo(a){a=a|0;var d=0,f=0,g=0,h=0,i=0,j=0,k=0;k=c[(c[a+8>>2]|0)+20>>2]|0;if((k|0)!=0?(c[k+28>>2]|0)==0:0){d=dc[c[47552+292>>2]&7]()|0;if((d|0)<32768)g=1;else g=(d|0)/32768|0;h=k+20|0;if(!(b[h>>1]|0)){f=k+12|0;d=k+24|0}else{f=k+12|0;d=k+24|0;i=k+16|0;j=0;do{if((c[f>>2]|0)>-1)nc[c[47552+268>>2]&127](c[(c[d>>2]|0)+(j<<2)>>2]|0,c[i>>2]|0)|0;else Sc(c[(c[d>>2]|0)+(j<<2)>>2]|0);j=j+g|0}while((j|0)<(e[h>>1]|0))}Sc(c[d>>2]|0);d=c[f>>2]|0;if((d|0)>-1){Yn(a,d,29591);c[f>>2]=-1}c[(c[k>>2]|0)+20>>2]=0;Sc(k)}return}function wo(a){a=a|0;var b=0,d=0,e=0;d=(c[a+8>>2]|0)+28|0;b=c[d>>2]|0;if(b)do{e=b;b=c[b+8>>2]|0;Yn(a,c[e>>2]|0,26573);Sc(e)}while((b|0)!=0);c[d>>2]=0;return}function xo(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;l=i;i=i+32|0;if((i|0)>=(j|0))baba();g=k;f=c[a+208>>2]|0;if(((f|0)!=0?(b[f+40>>1]|0)>-1:0)?(e=c[f+72>>2]|0,(e|0)!=0):0){f=e;h=8}else h=4;do if((h|0)==4){f=g;c[f>>2]=0;c[f+4>>2]=0;f=c[a+60>>2]|0;e=c[f>>2]|0;if(!e){e=-1;f=-1}else{e=nc[c[e+24>>2]&127](f,g)|0;if(e)break;e=g;e=fw(c[e>>2]|0,c[e+4>>2]|0,-1,-1)|0;f=C}g=c[a+152>>2]|0;h=((g|0)<0)<<31>>31;f=fw(e|0,f|0,g|0,h|0)|0;f=mw(f|0,C|0,g|0,h|0)|0;h=8}while(0);if((h|0)==8){e=a+156|0;if(f>>>0>(c[e>>2]|0)>>>0)c[e>>2]=f;c[d>>2]=f;e=0}i=k;return e|0}function Fo(b){b=b|0;var d=0,e=0;e=b+64|0;if(!((a[b+7>>0]|0)==0?(d=c[e>>2]|0,d=nc[c[(c[d>>2]|0)+20>>2]&127](d,2)|0,(d|0)!=0):0)){d=c[e>>2]|0;d=nc[c[(c[d>>2]|0)+24>>2]&127](d,b+80|0)|0}return d|0}function Go(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=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,D=0,E=0,F=0,G=0;G=i;i=i+48|0;if((i|0)>=(j|0))ba();E=G+16|0;D=G+8|0;B=G+36|0;w=G;v=G+32|0;u=G+28|0;A=G+24|0;g=c[b>>2]|0;c[u>>2]=0;c[A>>2]=1;y=b+64|0;e=c[y>>2]|0;e=nc[c[(c[e>>2]|0)+24>>2]&127](e,w)|0;a:do if(!e){x=b+200|0;f=c[x>>2]|0;e=qq(c[y>>2]|0,f,(c[(c[b>>2]|0)+8>>2]|0)+1|0)|0;if(!e){if(!(a[f>>0]|0))e=0;else e=lc[c[g+32>>2]&31](g,f,0,A)|0;b:do if((e|0)==0&(c[A>>2]|0)!=0){t=b+72|0;r=t;c[r>>2]=0;c[r+4>>2]=0;r=b+148|0;k=b+152|0;n=b+80|0;p=b+24|0;f=0;s=d;c:while(1){do{e=w;e=rq(b,d,c[e>>2]|0,c[e+4>>2]|0,v,u)|0;if((e|0)==101)break c;else if(e){F=27;break b}g=c[v>>2]|0;if((g|0)==-1){q=w;q=$v(c[q>>2]|0,c[q+4>>2]|0,c[r>>2]|0,0)|0;g=(c[k>>2]|0)+8|0;g=mw(q|0,C|0,g|0,((g|0)<0)<<31>>31|0)|0;c[v>>2]=g}if(!(g|d)){h=n;l=c[r>>2]|0;h=fw(l|0,0,c[h>>2]|0,c[h+4>>2]|0)|0;o=C;m=t;q=c[m>>2]|0;m=c[m+4>>2]|0;if((h|0)==(q|0)&(o|0)==(m|0)){m=w;m=$v(c[m>>2]|0,c[m+4>>2]|0,h|0,o|0)|0;g=(c[k>>2]|0)+8|0;g=mw(m|0,C|0,g|0,((g|0)<0)<<31>>31|0)|0;c[v>>2]=g;m=o}else h=q}else{h=t;l=c[r>>2]|0;m=c[h+4>>2]|0;h=c[h>>2]|0}if((h|0)==(l|0)&(m|0)==0){h=c[u>>2]|0;e=xl(b,h)|0;if(e){F=25;break a}c[p>>2]=h}}while((g|0)==0);e=s;h=0;while(1){if(e)tn(b);e=sq(b,t,0,1,0)|0;if((e|0)==101)break;else if((e|0)==522)break c;else if(e){F=27;break b}f=f+1|0;h=h+1|0;if(h>>>0<g>>>0)e=0;else{s=0;continue c}}e=w;q=c[e+4>>2]|0;s=t;c[s>>2]=c[e>>2];c[s+4>>2]=q;s=0}a[b+18>>0]=a[b+12>>0]|0;u=f}else{f=0;F=27}while(0);if((F|0)==27){a[b+18>>0]=a[b+12>>0]|0;if(!e)u=f;else break}t=c[x>>2]|0;e=qq(c[y>>2]|0,t,(c[(c[b>>2]|0)+8>>2]|0)+1|0)|0;if(!e){if(((a[b+16>>0]|0)+-1&255)>2?(z=Eg(b,0)|0,(z|0)!=0):0){f=u;e=z;break}e=yl(b,(a[t>>0]|0)!=0&1,0)|0;if(!e)if((a[t>>0]|0)!=0&(c[A>>2]|0)!=0){r=c[b>>2]|0;f=r+4|0;e=c[f>>2]<<1;s=mg(e,((e|0)<0)<<31>>31)|0;if(!s){f=u;e=7}else{bw(s|0,0,e|0)|0;p=s+(c[f>>2]|0)|0;q=r+24|0;e=pc[c[q>>2]&31](r,t,s,16385,0)|0;d:do if(!e){e=nc[c[(c[s>>2]|0)+24>>2]&127](s,D)|0;if(!e){n=(c[r+8>>2]|0)+1|0;f=D;f=fw(c[f>>2]|0,c[f+4>>2]|0,1,0)|0;f=fw(f|0,C|0,n|0,((n|0)<0)<<31>>31|0)|0;f=mg(f,C)|0;if(f){o=D;e=c[o>>2]|0;o=fw(e|0,c[o+4>>2]|0,1,0)|0;o=f+o|0;e=pc[c[(c[s>>2]|0)+8>>2]&31](s,f,e,0,0)|0;if(!e){a[f+(c[D>>2]|0)>>0]=0;k=f;A=D;z=c[A+4>>2]|0;if((z|0)>0|(z|0)==0&(c[A>>2]|0)>>>0>0){l=r+32|0;h=k;m=f;do{e=lc[c[l>>2]&31](r,m,0,B)|0;if(e){F=55;break d}do if(c[B>>2]|0){e=pc[c[q>>2]&31](r,m,p,2049,0)|0;if(e){F=55;break d}e=qq(p,o,n)|0;g=c[p>>2]|0;if(g){hc[c[g+4>>2]&127](p)|0;c[p>>2]=0}if(e){F=55;break d}if(!(a[o>>0]|0))break;if(!(Wv(o,t)|0)){e=0;F=55;break d}}while(0);if(!m)g=1;else{g=m;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;g=(g-h&1073741823)+1|0}m=m+g|0;h=m;z=h-k|0;x=((z|0)<0)<<31>>31;A=D;y=c[A+4>>2]|0}while((x|0)<(y|0)|((x|0)==(y|0)?z>>>0<(c[A>>2]|0)>>>0:0))}e=c[s>>2]|0;if(e){hc[c[e+4>>2]&127](s)|0;c[s>>2]=0}e=Yb[c[r+28>>2]&63](r,t,0)|0;Sc(f)}else F=55}else{e=7;f=0;F=55}}else{f=0;F=55}}else{f=0;F=55}while(0);if((F|0)==55)Sc(f);f=c[s>>2]|0;if(f){hc[c[f+4>>2]&127](s)|0;c[s>>2]=0}Sc(s);f=u}}else{f=u;e=0}else f=u}else f=u}else{f=0;F=25}}else{f=0;F=25}while(0);if((F|0)==25)a[b+18>>0]=a[b+12>>0]|0;if((d|0)!=0&(f|0)!=0){B=c[b+172>>2]|0;c[E>>2]=f;c[E+4>>2]=B;Zc(539,14776,E)}sp(b);i=G;return e|0}function Ho(d){d=d|0;var e=0,f=0;e=d+44|0;if(a[e>>0]|0){if(!(a[d+43>>0]|0)){f=c[d+4>>2]|0;lc[c[(c[f>>2]|0)+56>>2]&31](f,0,1,9)|0}a[e>>0]=0;a[d+47>>0]=0}e=d+40|0;f=b[e>>1]|0;if(f<<16>>16>-1){if(!(a[d+43>>0]|0)){d=c[d+4>>2]|0;lc[c[(c[d>>2]|0)+56>>2]&31](d,(f<<16>>16)+3|0,1,5)|0}b[e>>1]=-1}return}function Io(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0;if((g|0)>5)if((g|0)>100)f=15;else{if((g|0)>9){g=g+-9|0;g=_(g*39|0,g)|0}else g=1;h=c[d>>2]|0;nc[c[h+60>>2]&127](h,g)|0;h=6}else h=6;a:do if((h|0)==6){do if(!f){f=jq(d,e)|0;do if((f|0)==5){if(!(c[c[d+32>>2]>>2]|0)){f=-1;break a}e=d+43|0;if(a[e>>0]|0){f=-1;break a}g=d+4|0;f=c[g>>2]|0;f=lc[c[(c[f>>2]|0)+56>>2]&31](f,2,1,6)|0;if((f|0)==5){f=261;break a}else if(f)break;if(a[e>>0]|0){f=-1;break a}f=c[g>>2]|0;lc[c[(c[f>>2]|0)+56>>2]&31](f,2,1,5)|0;f=-1;break a}while(0);if(f)break a;g=d+32|0;j=(c[c[g>>2]>>2]|0)+96|0;e=d+52|0;if((c[j>>2]|0)==(c[d+68>>2]|0)){i=d+43|0;h=a[i>>0]|0;if(!(h<<24>>24)){f=c[d+4>>2]|0;f=lc[c[(c[f>>2]|0)+56>>2]&31](f,3,1,6)|0;h=a[i>>0]|0}else f=0;if(h<<24>>24!=2){n=c[d+4>>2]|0;_b[c[(c[n>>2]|0)+60>>2]&31](n)}if((f|0)==5){n=g;g=5;break}else if(f)break a;if(!(Vv(c[c[g>>2]>>2]|0,e,48)|0)){b[d+40>>1]=0;f=0;break a}if(a[i>>0]|0){f=-1;break a}f=c[d+4>>2]|0;lc[c[(c[f>>2]|0)+56>>2]&31](f,3,1,5)|0;f=-1;break a}else{n=g;g=0}}else{j=d+32|0;n=j;j=(c[c[j>>2]>>2]|0)+96|0;g=0}while(0);m=d+68|0;e=c[j+8>>2]|0;i=e>>>0>(c[m>>2]|0)>>>0;e=i?0:e;i=i&1^1;h=c[j+12>>2]|0;if(e>>>0<=h>>>0){l=h>>>0>(c[m>>2]|0)>>>0;i=l?i:2;e=l?e:h}h=c[j+16>>2]|0;if(e>>>0<=h>>>0){l=h>>>0>(c[m>>2]|0)>>>0;i=l?i:3;e=l?e:h}h=c[j+20>>2]|0;if(e>>>0<=h>>>0){l=h>>>0>(c[m>>2]|0)>>>0;i=l?i:4;e=l?e:h}b:do if((a[d+46>>0]&2)==0?((i|0)==0?1:e>>>0<(c[m>>2]|0)>>>0):0){l=d+43|0;k=d+4|0;h=1;while(1){g=h+3|0;if(a[l>>0]|0){i=h;break}f=c[k>>2]|0;f=lc[c[(c[f>>2]|0)+56>>2]&31](f,g,1,10)|0;if(!f){i=h;break}else if((f|0)!=5)break a;h=h+1|0;if((h|0)>=5){g=5;break b}}h=c[m>>2]|0;c[j+(i<<2)+4>>2]=h;if(!(a[l>>0]|0)){e=c[k>>2]|0;lc[c[(c[e>>2]|0)+56>>2]&31](e,g,1,9)|0;e=h;g=0}else{e=h;g=0}}while(0);if(!i){f=(g|0)==5?-1:520;break}g=i+3|0;f=d+43|0;h=a[f>>0]|0;do if(!(h<<24>>24)){h=c[d+4>>2]|0;h=lc[c[(c[h>>2]|0)+56>>2]&31](h,g,1,6)|0;if(!h){h=a[f>>0]|0;break}else{f=(h|0)==5?-1:h;break a}}while(0);if(h<<24>>24!=2){m=c[d+4>>2]|0;_b[c[(c[m>>2]|0)+60>>2]&31](m)}if((c[j+(i<<2)+4>>2]|0)==(e|0)?(Vv(c[c[n>>2]>>2]|0,d+52|0,48)|0)==0:0){b[d+40>>1]=i;f=0;break}if(!(a[f>>0]|0)){f=c[d+4>>2]|0;lc[c[(c[f>>2]|0)+56>>2]&31](f,g,1,5)|0;f=-1}else f=-1}while(0);return f|0}function Jo(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;e=b+56|0;ai(c[e>>2]|0);c[e>>2]=0;_o(b);e=c[b+208>>2]|0;if(!e){if(!(a[b+4>>0]|0)){f=b+60|0;e=c[f>>2]|0;d=c[e>>2]|0;if(!(((d|0)!=0?((hc[c[d+48>>2]&127](e)|0)&2048|0)!=0:0)?(a[b+5>>0]&5)==1:0))i=7;if((i|0)==7?(g=c[b+64>>2]|0,h=c[g>>2]|0,(h|0)!=0):0){hc[c[h+4>>2]&127](g)|0;c[g>>2]=0}d=c[f>>2]|0;e=c[d>>2]|0;if(e){if(!(a[b+13>>0]|0))d=nc[c[e+32>>2]&127](d,0)|0;else d=0;e=b+17|0;if((a[e>>0]|0)!=5)a[e>>0]=0;if((d|0)!=0?(a[b+16>>0]|0)==6:0)a[e>>0]=5}a[b+18>>0]=0;a[b+16>>0]=0}}else{Ho(e);a[b+16>>0]=0}d=b+40|0;if(c[d>>2]|0){tn(b);a[b+18>>0]=a[b+12>>0]|0;a[b+16>>0]=0;c[d>>2]=0}d=b+72|0;a[b+19>>0]=0;c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;return}function Ko(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=c[d+4>>2]|0;f=e+0|0;g=f+40|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(g|0));c[e>>2]=d;c[e+4>>2]=c[d>>2];f=e+40|0;c[e+8>>2]=f;bw(f|0,0,c[a+24>>2]|0)|0;c[e+28>>2]=a;c[e+20>>2]=b;return el(a,b,d)|0}function Lo(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();g=l;h=tq(a,b,g)|0;if(!h){k=c[g>>2]|0;if(!b){a=k+136|0;c[g>>2]=a;g=a;a=0}else{g=k;a=(b<<12)+-34|0}c[e>>2]=g+-4;c[d>>2]=k+16384;c[f>>2]=a}i=l;return h|0}function Mo(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;k=c[d+28>>2]|0;j=e&255;if(j&1){f=k+8|0;if((c[f>>2]|0)==(d|0)){e=d;do{e=c[e+36>>2]|0;if(!e){e=0;break}}while((b[e+24>>1]&4)!=0);c[f>>2]=e}e=d+32|0;g=c[e>>2]|0;h=(g|0)==0;i=d+36|0;f=c[i>>2]|0;if(h)c[k+4>>2]=f;else c[g+36>>2]=f;f=c[i>>2]|0;if(!f){c[k>>2]=g;if(h?(a[k+28>>0]|0)!=0:0)a[k+29>>0]=2}else c[f+32>>2]=g;c[e>>2]=0;c[i>>2]=0}if(j&2){e=c[k>>2]|0;c[d+32>>2]=e;if(!e){c[k+4>>2]=d;if(a[k+28>>0]|0)a[k+29>>0]=1}else c[e+36>>2]=d;c[k>>2]=d;e=k+8|0;if((c[e>>2]|0)==0?(b[d+24>>1]&4)==0:0)c[e>>2]=d}return}function No(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();h=l;f=e>>>3;g=f&255;a[d+5>>0]=g;e=e&-9;a[d+7>>0]=4-(f<<2);f=c[d+52>>2]|0;if((e|0)==5){a[d+2>>0]=1;a[d+3>>0]=g;a[d+4>>0]=g<<24>>24==0&1;b[d+10>>1]=b[f+28>>1]|0;b[d+12>>1]=b[f+30>>1]|0;k=5}else if((e|0)==2){a[d+2>>0]=0;a[d+3>>0]=0;a[d+4>>0]=0;b[d+10>>1]=b[f+24>>1]|0;b[d+12>>1]=b[f+26>>1]|0;k=5}else{c[h>>2]=54521;c[h+4>>2]=10788;Zc(11,13600,h);e=11}if((k|0)==5){a[d+8>>0]=a[f+21>>0]|0;e=0}i=l;return e|0}function Oo(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;l=c[b+200>>2]|0;j=b+152|0;k=c[j>>2]|0;m=b+148|0;i=c[m>>2]|0;k=k>>>0>i>>>0?i:k;g=c[b+96>>2]|0;if((g|0)>0){f=c[b+92>>2]|0;e=b+72|0;h=0;do{d=f+(h*48|0)+8|0;n=d;if((c[n>>2]|0)==0&(c[n+4>>2]|0)==0){o=e;n=c[o+4>>2]|0;c[d>>2]=c[o>>2];c[d+4>>2]=n}h=h+1|0}while((h|0)<(g|0));h=e}else h=b+72|0;e=h;f=c[e>>2]|0;e=c[e+4>>2]|0;if((f|0)==0&(e|0)==0){f=0;e=0}else{f=fw(f|0,e|0,-1,-1)|0;f=mw(f|0,C|0,i|0,0)|0;f=fw(f|0,C|0,1,0)|0;f=ow(f|0,C|0,i|0,0)|0;e=C}i=h;c[i>>2]=f;c[i+4>>2]=e;i=b+80|0;c[i>>2]=f;c[i+4>>2]=e;if(((a[b+7>>0]|0)==0?(a[b+5>>0]|0)!=4:0)?(i=c[b+60>>2]|0,((hc[c[(c[i>>2]|0)+48>>2]&127](i)|0)&512|0)==0):0){f=l+0|0;e=f+12|0;do{a[f>>0]=0;f=f+1|0}while((f|0)<(e|0))}else{i=l;g=i;a[g>>0]=-117058087;a[g+1>>0]=-117058087>>8;a[g+2>>0]=-117058087>>16;a[g+3>>0]=-117058087>>24;i=i+4|0;a[i>>0]=-681336544;a[i+1>>0]=-681336544>>8;a[i+2>>0]=-681336544>>16;a[i+3>>0]=-681336544>>24;i=l+8|0;a[i>>0]=-1;a[i+1>>0]=-1>>8;a[i+2>>0]=-1>>16;a[i+3>>0]=-1>>24}e=b+48|0;_c(4,e);e=c[e>>2]|0;a[l+12>>0]=e>>>24;a[l+13>>0]=e>>>16;a[l+14>>0]=e>>>8;a[l+15>>0]=e;e=c[b+28>>2]|0;a[l+16>>0]=e>>>24;a[l+17>>0]=e>>>16;a[l+18>>0]=e>>>8;a[l+19>>0]=e;e=c[m>>2]|0;a[l+20>>0]=e>>>24;a[l+21>>0]=e>>>16;a[l+22>>0]=e>>>8;a[l+23>>0]=e;e=c[j>>2]|0;a[l+24>>0]=e>>>24;a[l+25>>0]=e>>>16;a[l+26>>0]=e>>>8;a[l+27>>0]=e;bw(l+28|0,0,k+-28|0)|0;e=b+64|0;f=0;while(1){if(f>>>0>=(c[m>>2]|0)>>>0){d=0;break}j=c[e>>2]|0;d=h;d=pc[c[(c[j>>2]|0)+12>>2]&31](j,l,k,c[d>>2]|0,c[d+4>>2]|0)|0;j=h;j=fw(c[j>>2]|0,c[j+4>>2]|0,k|0,0)|0;b=h;c[b>>2]=j;c[b+4>>2]=C;if(!d)f=f+k|0;else break}return d|0}function Po(a){a=a|0;var c=0,d=0,f=0;c=a+24|0;f=e[c>>1]|0;d=f&65503;b[c>>1]=d;if(!(f&2)){b[c>>1]=d|2;Mo(a,2)}return}function Qo(a){a=a|0;var b=0,d=0,e=0;b=c[a+16>>2]|0;d=c[a+20>>2]|0;e=c[b+96>>2]|0;a:do if((e|0)>0){b=c[b+92>>2]|0;a=0;while(1){if((c[b+(a*48|0)+20>>2]|0)>>>0>=d>>>0?($h(c[b+(a*48|0)+16>>2]|0,d)|0)==0:0){a=1;break a}a=a+1|0;if((a|0)>=(e|0)){a=0;break}}}else a=0;while(0);return a|0}function Ro(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();m=q;o=c[b+16>>2]|0;e=a[o+5>>0]|0;a:do if(e<<24>>24!=2){n=o+68|0;f=c[n>>2]|0;do if(!(c[f>>2]|0)){if(e<<24>>24!=4?(a[o+21>>0]|0)==0:0){d=c[o>>2]|0;d=pc[c[d+24>>2]&31](d,0,f,8222,0)|0;if(!d)break;else break a}e=f+0|0;d=e+40|0;do{c[e>>2]=0;e=e+4|0}while((e|0)<(d|0));c[f>>2]=14696}while(0);f=c[b+4>>2]|0;l=o+52|0;g=o+152|0;h=(c[g>>2]|0)+4|0;h=ow(h|0,((h|0)<0)<<31>>31|0,c[l>>2]|0,0)|0;k=C;d=c[n>>2]|0;e=b+20|0;b=c[e>>2]|0;a[m>>0]=b>>>24;a[m+1>>0]=b>>>16;a[m+2>>0]=b>>>8;a[m+3>>0]=b;d=pc[c[(c[d>>2]|0)+12>>2]&31](d,m,4,h,k)|0;if(!d){m=c[n>>2]|0;n=c[g>>2]|0;d=fw(h|0,k|0,4,0)|0;d=pc[c[(c[m>>2]|0)+12>>2]&31](m,f,n,d,C)|0;if(!d){d=l;p=10}}}else{e=b+20|0;d=o+52|0;p=10}while(0);if((p|0)==10){c[d>>2]=(c[d>>2]|0)+1;d=fl(o,c[e>>2]|0)|0}i=q;return d|0}function So(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+48|0;if((i|0)>=(j|0))ba();g=h;d=(a|0)!=0;a:do if(d&(b|0)!=0){d=g;while(1){f=c[b+20>>2]|0;e=a;a=d;while(1){a=a+12|0;if((c[e+20>>2]|0)>>>0>=f>>>0)break;c[a>>2]=e;a=c[e+12>>2]|0;if(!a){d=b;a=e;e=8;break a}else{d=e;e=a;a=d}}c[a>>2]=b;f=c[b+12>>2]|0;d=(e|0)!=0;if(d&(f|0)!=0){d=b;a=e;b=f}else{a=e;e=6;break}}}else{f=b;b=g;e=6}while(0);if((e|0)==6)if(d)c[b+12>>2]=a;else{d=f;a=b;e=8}do if((e|0)==8){a=a+12|0;if(!d){c[a>>2]=0;break}else{c[a>>2]=d;break}}while(0);i=h;return c[g+12>>2]|0}function To(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=c[c[b+32>>2]>>2]|0;k=b+84|0;j=b+104|0;c[j>>2]=(c[j>>2]|0)+1;c[b+68>>2]=0;j=k+1|0;i=k+2|0;g=k+3|0;h=((d[j>>0]|0)<<16|(d[k>>0]|0)<<24|(d[i>>0]|0)<<8|(d[g>>0]|0))+1|0;a[k>>0]=h>>>24;a[j>>0]=h>>>16;a[i>>0]=h>>>8;a[g>>0]=h;c[b+88>>2]=e;Xo(b);c[f+96>>2]=0;c[f+104>>2]=0;c[f+108>>2]=-1;c[f+112>>2]=-1;c[f+116>>2]=-1;return}function Uo(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0;l=i;i=i+32|0;if((i|0)>=(j|0))ba();m=l;k=c[e+4>>2]|0;n=c[b>>2]|0;o=c[e+20>>2]|0;e=n+76|0;a[m>>0]=o>>>24;a[m+1>>0]=o>>>16;a[m+2>>0]=o>>>8;a[m+3>>0]=o;a[m+4>>0]=f>>>24;a[m+5>>0]=f>>>16;a[m+6>>0]=f>>>8;a[m+7>>0]=f;o=n+84|0;q=o;q=d[q>>0]|d[q+1>>0]<<8|d[q+2>>0]<<16|d[q+3>>0]<<24;o=o+4|0;o=d[o>>0]|d[o+1>>0]<<8|d[o+2>>0]<<16|d[o+3>>0]<<24;f=m+8|0;p=f;a[p>>0]=q;a[p+1>>0]=q>>8;a[p+2>>0]=q>>16;a[p+3>>0]=q>>24;f=f+4|0;a[f>>0]=o;a[f+1>>0]=o>>8;a[f+2>>0]=o>>16;a[f+3>>0]=o>>24;f=(a[n+65>>0]|0)==0&1;uq(f,m,8,e,e);uq(f,k,c[n+36>>2]|0,e,e);f=c[e>>2]|0;a[m+16>>0]=f>>>24;a[m+17>>0]=f>>>16;a[m+18>>0]=f>>>8;a[m+19>>0]=f;f=c[n+80>>2]|0;a[m+20>>0]=f>>>24;a[m+21>>0]=f>>>16;a[m+22>>0]=f>>>8;a[m+23>>0]=f;f=vq(b,m,24,g,h)|0;if(!f){o=c[b+20>>2]|0;f=fw(g|0,h|0,24,0)|0;f=vq(b,k,o,f,C)|0}i=l;return f|0}function Vo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k+8|0;g=k;f=c[3164]|0;if(f)jc[f&3]();e=a+8|0;f=c[e>>2]|0;f=nc[c[(c[f>>2]|0)+24>>2]&127](f,g)|0;l=c[g+4>>2]|0;if((f|0)==0&((l|0)>(d|0)|((l|0)==(d|0)?(c[g>>2]|0)>>>0>b>>>0:0))){f=c[e>>2]|0;f=Yb[c[(c[f>>2]|0)+16>>2]&63](f,b,d)|0}e=c[3166]|0;if(e)jc[e&3]();if(f){c[h>>2]=c[a+100>>2];Zc(f,14816,h)}i=k;return}function Wo(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+32|0;if((i|0)>=(j|0))baba();n=o;k=o+8|0;if(e>>>0<2)m=0;else{m=e+-2|0;m=m-((m>>>0)%(((((c[b+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;m=((m+1|0)==(((c[2514]|0)>>>0)/((c[b+32>>2]|0)>>>0)|0|0)?3:2)+m|0}h=vg(c[b>>2]|0,m,k,0)|0;do if(!h){k=c[k>>2]|0;l=c[k+4>>2]|0;h=(e-m|0)*5|0;b=h+-5|0;if((b|0)<0){if(k)xg(k);c[n>>2]=53912;c[n+4>>2]=10788;Zc(11,13600,n);h=11;break}a[f>>0]=a[l+b>>0]|0;if(g)c[g>>2]=(d[l+(h+-3)>>0]|0)<<16|(d[l+(h+-4)>>0]|0)<<24|(d[l+(h+-2)>>0]|0)<<8|(d[l+(h+-1)>>0]|0);if(k)xg(k);if(((a[f>>0]|0)+-1&255)>4){c[n>>2]=53920;c[n+4>>2]=10788;Zc(11,13600,n);h=11}else h=0}while(0);i=o;return h|0}function ep(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var 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;K=i;i=i+32|0;if((i|0)>=(j|0))ba();J=K;I=K+16|0;p=K+20|0;H=K+12|0;q=K+8|0;c[I>>2]=0;s=e+12|0;o=c[s>>2]|0;r=e+44|0;F=c[r>>2]|0;G=o+56|0;n=c[G>>2]|0;n=d[n+37>>0]<<16|d[n+36>>0]<<24|d[n+38>>0]<<8|d[n+39>>0];do if(n>>>0<F>>>0){if(!n){k=(a[e+19>>0]|0)==0&1;o=Cg(c[o+68>>2]|0)|0;if(o){l=o;break}p=c[r>>2]|0;n=p+1|0;c[r>>2]=n;m=e+32|0;o=c[m>>2]|0;if((p|0)==(((c[2514]|0)>>>0)/(o>>>0)|0|0)){n=p+2|0;c[r>>2]=n}if(a[e+17>>0]|0){if(n>>>0<2)p=0;else{p=n+-2|0;p=p-((p>>>0)%(((((c[e+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;p=((p+1|0)==(((c[2514]|0)>>>0)/(o>>>0)|0|0)?3:2)+p|0}if((p|0)==(n|0)){c[q>>2]=0;p=$k(e,n,q,k)|0;if(p){l=p;break}F=c[q>>2]|0;p=F+68|0;o=Cg(c[p>>2]|0)|0;if(F)xg(c[p>>2]|0);if(o){l=o;break}p=c[r>>2]|0;n=p+1|0;c[r>>2]=n;if((p|0)==(((c[2514]|0)>>>0)/((c[m>>2]|0)>>>0)|0|0)){n=p+2|0;c[r>>2]=n}}}m=c[(c[s>>2]|0)+56>>2]|0;a[m+28>>0]=n>>>24;a[m+29>>0]=n>>>16;a[m+30>>0]=n>>>8;a[m+31>>0]=n;m=c[r>>2]|0;c[g>>2]=m;m=$k(e,m,f,k)|0;if(m){l=m;break}m=Cg(c[(c[f>>2]|0)+68>>2]|0)|0;if(m){l=c[f>>2]|0;if(!l){l=m;A=98}else{xg(c[l+68>>2]|0);l=m;A=92}}}else{if(k<<24>>24==2)p=1;else if(k<<24>>24==1?F>>>0>=h>>>0:0){l=dp(e,h,p,0)|0;if(l)break;p=(a[p>>0]|0)==2&1}else p=0;l=Cg(c[o+68>>2]|0)|0;if(l)break;C=c[G>>2]|0;D=n+-1|0;a[C+36>>0]=D>>>24;a[C+37>>0]=D>>>16;a[C+38>>0]=D>>>8;a[C+39>>0]=D;C=e+36|0;D=(h|0)==0;E=e+60|0;B=k<<24>>24==2;m=0;a:while(1){t=(m|0)!=0;if(t){s=c[m+56>>2]|0;s=d[s+1>>0]<<16|d[s>>0]<<24|d[s+2>>0]<<8|d[s+3>>0]}else{s=c[G>>2]|0;s=d[s+33>>0]<<16|d[s+32>>0]<<24|d[s+34>>0]<<8|d[s+35>>0]}if(s>>>0>F>>>0){A=15;break}l=$k(e,s,I,0)|0;if(l){A=17;break}n=c[I>>2]|0;u=n+56|0;y=c[u>>2]|0;z=y+4|0;v=y+5|0;w=y+6|0;x=y+7|0;A=d[v>>0]<<16|d[z>>0]<<24|d[w>>0]<<8|d[x>>0];q=p<<24>>24!=0;do if((A|0)!=0|q){if(A>>>0>(((c[C>>2]|0)>>>2)+-2|0)>>>0){l=n;A=22;break a}if(p<<24>>24!=0?(s|0)==(h|0)|s>>>0<h>>>0&B:0){c[g>>2]=s;c[f>>2]=n;l=Cg(c[n+68>>2]|0)|0;if(l){A=88;break a}do if(!A){if(!t){A=(c[G>>2]|0)+32|0;z=c[u>>2]|0;z=d[z>>0]|d[z+1>>0]<<8|d[z+2>>0]<<16|d[z+3>>0]<<24;a[A>>0]=z;a[A+1>>0]=z>>8;a[A+2>>0]=z>>16;a[A+3>>0]=z>>24;break}l=Cg(c[m+68>>2]|0)|0;if(l){A=88;break a}A=c[m+56>>2]|0;z=c[u>>2]|0;z=d[z>>0]|d[z+1>>0]<<8|d[z+2>>0]<<16|d[z+3>>0]<<24;a[A>>0]=z;a[A+1>>0]=z>>8;a[A+2>>0]=z>>16;a[A+3>>0]=z>>24}else{s=c[u>>2]|0;q=a[s+8>>0]|0;k=a[s+9>>0]|0;r=a[s+10>>0]|0;s=a[s+11>>0]|0;p=(k&255)<<16|(q&255)<<24|(r&255)<<8|s&255;if(p>>>0>F>>>0){l=n;A=32;break a}l=$k(e,p,H,0)|0;if(l){A=88;break a}p=c[H>>2]|0;o=p+68|0;l=Cg(c[o>>2]|0)|0;if(l){A=35;break a}z=p+56|0;y=c[z>>2]|0;x=c[u>>2]|0;x=d[x>>0]|d[x+1>>0]<<8|d[x+2>>0]<<16|d[x+3>>0]<<24;a[y>>0]=x;a[y+1>>0]=x>>8;a[y+2>>0]=x>>16;a[y+3>>0]=x>>24;y=c[z>>2]|0;A=A+-1|0;a[y+4>>0]=A>>>24;a[y+5>>0]=A>>>16;a[y+6>>0]=A>>>8;a[y+7>>0]=A;gw((c[z>>2]|0)+8|0,(c[u>>2]|0)+12|0,A<<2|0)|0;if(p)xg(c[o>>2]|0);if(!t){A=c[G>>2]|0;a[A+32>>0]=q;a[A+33>>0]=k;a[A+34>>0]=r;a[A+35>>0]=s;break}l=Cg(c[m+68>>2]|0)|0;if(l){A=88;break a}A=c[m+56>>2]|0;a[A>>0]=q;a[A+1>>0]=k;a[A+2>>0]=r;a[A+3>>0]=s}while(0);c[I>>2]=0;n=0;l=0;p=0;break}if(A){b:do if(!D){if(B){k=0;while(1){u=k<<2;if((d[y+(u+9)>>0]<<16|d[y+(u+8)>>0]<<24|d[y+(u+10)>>0]<<8|d[y+(u+11)>>0])>>>0<=h>>>0)break b;k=k+1|0;if(k>>>0>=A>>>0){k=0;break b}}}o=(d[y+9>>0]<<16|d[y+8>>0]<<24|d[y+10>>0]<<8|d[y+11>>0])-h|0;if((o|0)<=-1)o=(o|0)==-2147483648?2147483647:0-o|0;if(A>>>0>1){k=0;r=1;while(1){l=r<<2;l=(d[y+(l+9)>>0]<<16|d[y+(l+8)>>0]<<24|d[y+(l+10)>>0]<<8|d[y+(l+11)>>0])-h|0;if((l|0)<=-1)l=(l|0)==-2147483648?2147483647:0-l|0;s=(l|0)<(o|0);k=s?r:k;r=r+1|0;if((r|0)==(A|0))break;else o=s?l:o}}else k=0}else k=0;while(0);o=k<<2;s=y+(o+8)|0;o=d[y+(o+9)>>0]<<16|d[s>>0]<<24|d[y+(o+10)>>0]<<8|d[y+(o+11)>>0];if(o>>>0>F>>>0){l=n;A=56;break a}if((o|0)==(h|0)|q^1|o>>>0<h>>>0&B){c[g>>2]=o;l=Cg(c[n+68>>2]|0)|0;if(l){A=88;break a}p=A+-1|0;if(k>>>0<p>>>0){A=y+((A<<2)+4)|0;A=d[A>>0]|d[A+1>>0]<<8|d[A+2>>0]<<16|d[A+3>>0]<<24;a[s>>0]=A;a[s+1>>0]=A>>8;a[s+2>>0]=A>>16;a[s+3>>0]=A>>24}a[z>>0]=p>>>24;a[v>>0]=p>>>16;a[w>>0]=p>>>8;a[x>>0]=p;o=c[g>>2]|0;p=c[E>>2]|0;do if(!p)p=0;else{if((c[p>>2]|0)>>>0<o>>>0){p=1;break}p=($h(p,o)|0)!=0}while(0);l=$k(e,o,f,p&1^1)|0;if(l){p=0;break}l=Cg(c[(c[f>>2]|0)+68>>2]|0)|0;if(!l){l=0;p=0;break}p=c[f>>2]|0;if(!p){p=0;break}xg(c[p+68>>2]|0);p=0}else l=0}else l=0}else{l=Cg(c[n+68>>2]|0)|0;if(l){A=89;break a}c[g>>2]=s;l=(c[G>>2]|0)+32|0;p=c[u>>2]|0;p=d[p>>0]|d[p+1>>0]<<8|d[p+2>>0]<<16|d[p+3>>0]<<24;a[l>>0]=p;a[l+1>>0]=p>>8;a[l+2>>0]=p>>16;a[l+3>>0]=p>>24;c[f>>2]=n;c[I>>2]=0;n=0;l=0;p=0}while(0);if(m)xg(c[m+68>>2]|0);if(!(p<<24>>24)){m=0;A=88;break}else m=n}if((A|0)==15){c[J>>2]=58314;c[J+4>>2]=10788;Zc(11,13600,J);l=11;A=17}else if((A|0)==22){c[J>>2]=58343;c[J+4>>2]=10788;Zc(11,13600,J);n=l;l=11;A=88}else if((A|0)==32){c[J>>2]=58377;c[J+4>>2]=10788;Zc(11,13600,J);n=l;l=11;A=88}else if((A|0)==35)if(!p)A=88;else{xg(c[o>>2]|0);A=88}else if((A|0)==56){c[J>>2]=58442;c[J+4>>2]=10788;Zc(11,13600,J);n=l;l=11;A=88}if((A|0)==17)c[I>>2]=0;else if((A|0)==88)if(n)A=89;if((A|0)==89)xg(c[n+68>>2]|0);if(!m)A=92;else{xg(c[m+68>>2]|0);A=92}}if((A|0)==92?(l|0)!=0:0)A=98;if((A|0)==98){c[f>>2]=0;break}l=c[f>>2]|0;m=c[l+68>>2]|0;if((b[m+26>>1]|0)<=1){a[l>>0]=0;l=0;break}if(l)xg(m);c[f>>2]=0;c[J>>2]=58541;c[J+4>>2]=10788;Zc(11,13600,J);l=11}else{c[J>>2]=58259;c[J+4>>2]=10788;Zc(11,13600,J);l=11}while(0);i=K;return l|0}function fp(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=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;y=i;i=i+16|0;if((i|0)>=(j|0))ba();t=y+12|0;s=y+8|0;x=y;f=c[b+40>>2]|0;a:do if(!f){h=b+96|0;g=c[h>>2]|0;if((g|0)>(e|0)){f=(d|0)==1;e=(f&1^1)+e|0;if((e|0)<(g|0)){d=b+92|0;g=e;do{ai(c[(c[d>>2]|0)+(g*48|0)+16>>2]|0);g=g+1|0}while((g|0)<(c[h>>2]|0))}c[h>>2]=e;if(f){if(e){f=0;break}f=c[b+68>>2]|0;g=c[f>>2]|0;if(!g){f=0;break}if((g|0)==14696)f=Ci(f,0,0)|0;else f=0;c[b+52>>2]=0;break}r=b+208|0;if((c[r>>2]|0)==0?(c[c[b+64>>2]>>2]|0)==0:0){f=0;break}if(!e)u=0;else u=(c[b+92>>2]|0)+((e+-1|0)*48|0)|0;q=(u|0)!=0;f=u+20|0;if(q){d=c[f>>2]|0;g=mg(512,0)|0;if(!g){f=7;break}bw(g|0,0,512)|0;c[g>>2]=d;w=g}else w=0;h=b+28|0;e=b+24|0;c[e>>2]=c[(q?f:h)>>2];a[b+18>>0]=a[b+12>>0]|0;b:do if(q){h=b+72|0;e=h;k=c[e>>2]|0;e=c[e+4>>2]|0;if(!(c[r>>2]|0)){g=u+8|0;l=c[g>>2]|0;g=c[g+4>>2]|0;d=(l|0)==0&(g|0)==0;l=d?k:l;g=d?e:g;d=u;f=c[d>>2]|0;d=c[d+4>>2]|0;o=h;c[o>>2]=f;c[o+4>>2]=d;if((d|0)<(g|0)|(d|0)==(g|0)&f>>>0<l>>>0)while(1){f=sq(b,h,w,1,1)|0;if(f){n=k;m=e;break b}d=h;f=c[d>>2]|0;d=c[d+4>>2]|0;if(!((d|0)<(g|0)|(d|0)==(g|0)&f>>>0<l>>>0)){v=39;break}}else v=39}else v=38}else{p=c[r>>2]|0;if(!p){h=b+72|0;e=h;k=c[e>>2]|0;e=c[e+4>>2]|0;v=38;break}c[e>>2]=c[h>>2];if(a[p+44>>0]|0){k=p+68|0;m=c[k>>2]|0;l=p+32|0;e=c[l>>2]|0;g=p+52|0;f=(c[e>>2]|0)+0|0;d=g+48|0;do{a[g>>0]=a[f>>0]|0;g=g+1|0;f=f+1|0}while((g|0)<(d|0));g=c[k>>2]|0;f=g+1|0;if(f>>>0>m>>>0)f=0;else{h=f;while(1){g=g+34|0;f=g>>>12;if(!f)g=(c[e>>2]|0)+(g<<2)|0;else g=(c[e+(f<<2)>>2]|0)+((g&4095)<<2)|0;f=xq(b,c[g>>2]|0)|0;g=h+1|0;if((f|0)!=0|g>>>0>m>>>0)break;o=h;e=c[l>>2]|0;h=g;g=o}g=c[k>>2]|0}if((m|0)!=(g|0))wq(p)}else f=0;g=rl(c[b+204>>2]|0)|0;if(!((g|0)!=0&(f|0)==0))break a;while(1){f=g;g=c[g+12>>2]|0;f=xq(b,c[f+20>>2]|0)|0;if(!((g|0)!=0&(f|0)==0))break a}}while(0);if((v|0)==38){d=h;c[d>>2]=0;c[d+4>>2]=0;d=0;f=0;v=39}c:do if((v|0)==39){n=b+80|0;o=b+148|0;p=b+152|0;if((d|0)<(e|0)|(d|0)==(e|0)&f>>>0<k>>>0)while(1){c[t>>2]=0;f=rq(b,0,k,e,t,s)|0;d=c[t>>2]|0;if(!d){d=n;d=fw(c[o>>2]|0,0,c[d>>2]|0,c[d+4>>2]|0)|0;g=C;m=h;if((d|0)==(c[m>>2]|0)?(g|0)==(c[m+4>>2]|0):0){v=$v(k|0,e|0,d|0,g|0)|0;d=(c[p>>2]|0)+8|0;d=mw(v|0,C|0,d|0,((d|0)<0)<<31>>31|0)|0;c[t>>2]=d;v=46}else v=40}else v=46;d:do if((v|0)==46){v=0;if((f|0)==0&(d|0)!=0){m=0;while(1){g=h;l=c[g>>2]|0;g=c[g+4>>2]|0;if(!((g|0)<(e|0)|(g|0)==(e|0)&l>>>0<k>>>0)){d=l;break d}f=sq(b,h,w,1,1)|0;m=m+1|0;if(!((f|0)==0&m>>>0<d>>>0)){v=40;break}}}else v=40}while(0);if((v|0)==40){v=0;if(f){n=k;m=e;break c}d=h;g=c[d+4>>2]|0;d=c[d>>2]|0}if(!((g|0)<(e|0)|(g|0)==(e|0)&d>>>0<k>>>0)){n=k;m=e;f=0;break}}else{n=k;m=e;f=0}}while(0);e:do if(!q){ai(w);if(f)break a}else{l=u+24|0;g=c[l>>2]|0;o=(c[b+152>>2]|0)+4|0;o=ow(o|0,((o|0)<0)<<31>>31|0,g|0,0)|0;k=x;c[k>>2]=o;c[k+4>>2]=C;k=c[r>>2]|0;if(!k){if(!f)v=57}else{e=u+28|0;d=u+40|0;f=k+104|0;if((c[d>>2]|0)==(c[f>>2]|0))d=c[e>>2]|0;else{c[e>>2]=0;c[d>>2]=c[f>>2];d=0}e=k+68|0;if(d>>>0<(c[e>>2]|0)>>>0){c[e>>2]=d;c[k+76>>2]=c[u+32>>2];c[k+80>>2]=c[u+36>>2];wq(k);g=c[l>>2]|0;v=57}else v=57}f:do if((v|0)==57){d=b+52|0;while(1){if(g>>>0>=(c[d>>2]|0)>>>0)break;f=sq(b,x,w,0,1)|0;if(!f)g=g+1|0;else break f}ai(w);break e}while(0);ai(w);break a}while(0);f=h;c[f>>2]=n;c[f+4>>2]=m;f=0}else f=0}while(0);i=y;return f|0}function gp(d){d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=c[d>>2]|0;if(e){i=c[d+4>>2]|0;c[(c[e+4>>2]|0)+4>>2]=c[e>>2];g=d+56|0;Sc(c[g>>2]|0);c[g>>2]=0;a[d+73>>0]=0;g=c[d+12>>2]|0;f=d+8|0;e=c[f>>2]|0;if(!g)c[i+8>>2]=e;else{c[g+8>>2]=e;e=c[f>>2]|0}if(e)c[e+12>>2]=g;h=d+76|0;e=b[h>>1]|0;if(e<<16>>16>=0){f=0;while(1){g=c[d+(f<<2)+120>>2]|0;if(g){xg(c[g+68>>2]|0);e=b[h>>1]|0}if((f|0)<(e<<16>>16|0))f=f+1|0;else break}}if((a[i+20>>0]|0)==0?(j=i+12|0,k=c[j>>2]|0,(k|0)!=0):0){c[j>>2]=0;xg(c[k+68>>2]|0)}Sc(c[d+20>>2]|0)}return}function hp(b){b=b|0;var e=0,f=0,g=0,h=0;h=c[b+200>>2]|0;e=c[3164]|0;if(e)jc[e&3]();f=c[b+136>>2]|0;if(f)do{e=f;f=c[f+12>>2]|0;Sc(e)}while((f|0)!=0);a[b+4>>0]=0;e=b+208|0;nn(c[e>>2]|0,d[b+9>>0]|0,c[b+152>>2]|0,h)|0;c[e>>2]=0;tn(b);if(!(a[b+15>>0]|0)){if((c[c[b+64>>2]>>2]|0)!=0?(g=Fo(b)|0,e=g&255,(e|0)==10|(e|0)==13):0){c[b+40>>2]=g;a[b+16>>0]=6}jl(b)}else Jo(b);e=c[3166]|0;if(e)jc[e&3]();e=c[b+64>>2]|0;f=c[e>>2]|0;if(f){hc[c[f+4>>2]&127](e)|0;c[e>>2]=0}f=c[b+60>>2]|0;e=c[f>>2]|0;if(e){hc[c[e+4>>2]&127](f)|0;c[f>>2]=0}Xk(h);_b[c[8744+148>>2]&31](c[(c[b+204>>2]|0)+40>>2]|0);Sc(b);return}function ip(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=c[a+4>>2]|0;h=mg(g,((g|0)<0)<<31>>31)|0;do if(h){bw(h|0,0,g|0)|0;g=pc[c[a+24>>2]&31](a,b,h,e&556927,f)|0;if(!g){c[d>>2]=h;g=0;break}else{Sc(h);break}}else g=7;while(0);return g|0}function jp(b){b=b|0;var d=0,e=0,f=0;d=b+16|0;e=b+12|0;f=b+10|0;if(!(Pl(c[d>>2]|0,b,c[e>>2]|0,a[f>>0]|0)|0))d=0;else{d=(Ql(c[d>>2]|0,b,c[e>>2]|0,a[f>>0]|0)|0)==0;d=d?4:8}return d|0}function kp(d){d=d|0;var f=0,g=0;g=d+8|0;f=b[g>>1]|0;do if(!(f&13))if(!(Ql(c[d+16>>2]|0,d,c[d+12>>2]|0,a[d+10>>0]|0)|0)){f=((e[g>>1]|0)&48640|4)&65535;b[g>>1]=f;break}else{h[d>>3]=+Qg(d);b[g>>1]=(e[g>>1]|0)&48640|8;$l(d);f=b[g>>1]|0;break}while(0);b[g>>1]=f&65517;return}function lp(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;t=i;i=i+80|0;if((i|0)>=(j|0))ba();r=t+40|0;s=t;h=f+4|0;if((a[d+10>>0]|0)!=(a[h>>0]|0)){q=c[d+32>>2]|0;n=r+8|0;b[n>>1]=1;c[r+32>>2]=q;o=r+24|0;c[o>>2]=0;p=s+8|0;b[p>>1]=1;c[s+32>>2]=q;q=s+24|0;c[q>>2]=0;Vl(r,d,4096);Vl(s,e,4096);d=Og(r,a[h>>0]|0)|0;m=(d|0)==0;if(m)l=0;else l=c[r+12>>2]|0;h=Og(s,a[h>>0]|0)|0;k=(h|0)==0;if(k)e=0;else e=c[s+12>>2]|0;d=pc[c[f+12>>2]&31](c[f+8>>2]|0,l,d,e,h)|0;if(!((b[n>>1]&9312)==0&(c[o>>2]|0)==0))Mg(r);if(!((b[p>>1]&9312)==0&(c[q>>2]|0)==0))Mg(s);if((m|k)&(g|0)!=0)a[g>>0]=7}else d=pc[c[f+12>>2]&31](c[f+8>>2]|0,c[d+12>>2]|0,c[d+16>>2]|0,c[e+12>>2]|0,c[e+16>>2]|0)|0;i=t;return d|0}function mp(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[a+12>>2]|0;d=c[b+12>>2]|0;a=Vv(c[a+16>>2]|0,c[b+16>>2]|0,(e|0)>(d|0)?d:e)|0;return ((a|0)==0?e-d|0:a)|0}function np(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();n=o;do if(!(a[f+3>>0]|0)){if(a[f+4>>0]|0){b[h+20>>1]=((op(g+4|0,h)|0)&255)+4;l=h+8|0;c[l+0>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;break}m=d[f+7>>0]|0;l=g+m|0;k=a[l>>0]|0;if(k<<24>>24>-1){l=k&255;c[n>>2]=l;k=1}else{k=im(l,n)|0;l=c[n>>2]|0}n=h;c[n>>2]=l;c[n+4>>2]=0;m=(k&255)+m|0;k=12}else{k=a[g>>0]|0;if(k<<24>>24>-1){l=k&255;c[n>>2]=l;k=1}else{k=im(g,n)|0;l=c[n>>2]|0}m=k&255;m=((op(g+m|0,h)|0)&255)+m|0;k=12}while(0);do if((k|0)==12){c[h+12>>2]=l;c[h+8>>2]=g+m;k=e[f+10>>1]|0;if(l>>>0>k>>>0){n=b[f+12>>1]|0;g=n&65535;l=(((l-g|0)>>>0)%(((c[(c[f+52>>2]|0)+36>>2]|0)+-4|0)>>>0)|0)+g|0;k=(l|0)>(k|0)?n:l&65535;b[h+16>>1]=k;k=m+(k&65535)|0;b[h+18>>1]=k;b[h+20>>1]=k+4;break}else{k=l+m|0;b[h+20>>1]=(k&65532)>>>0<4?4:k&65535;b[h+16>>1]=l;b[h+18>>1]=0;break}}while(0);i=o;return}function op(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=a[b>>0]|0;g=f&255;do if(g&128){f=d[b+1>>0]|0;if(!(f&128)){h=e;c[h>>2]=f|g<<7&16256;c[h+4>>2]=0;f=2;break}h=d[b+2>>0]|0;g=(h|g<<14)&2080895;if(!(h&128)){h=e;c[h>>2]=g|f<<7&16256;c[h+4>>2]=0;f=3;break}h=d[b+3>>0]|0;f=(h|f<<14)&2080895;if(!(h&128)){h=e;c[h>>2]=f|g<<7;c[h+4>>2]=0;f=4;break}k=d[b+4>>0]|0;h=k|g<<14;if(!(k&128)){i=e;c[i>>2]=h|f<<7;c[i+4>>2]=g>>>18;f=5;break}j=f|g<<7;g=d[b+5>>0]|0;i=g|f<<14;if(!(g&128)){f=e;c[f>>2]=i|h<<7&266354560;c[f+4>>2]=j>>>18;f=6;break}f=d[b+6>>0]|0;g=f|h<<14;if(!(f&128)){f=e;c[f>>2]=g&-266354561|i<<7&266354560;c[f+4>>2]=j>>>11;f=7;break}f=g&2080895;h=d[b+7>>0]|0;g=h|i<<14;if(!(h&128)){h=e;c[h>>2]=g&-266354561|f<<7;c[h+4>>2]=j>>>4;f=8;break}else{h=e;c[h>>2]=g<<8&532709120|f<<15|(d[b+8>>0]|0);c[h+4>>2]=k>>>3&15|j<<4;f=9;break}}else{g=e;c[g>>2]=f&255;c[g+4>>2]=0;f=1}while(0);return f|0}function pp(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,l=0,m=0,n=0,o=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();l=n+8|0;m=n;g=(d[a+1>>0]|0)<<16|(d[a>>0]|0)<<24|(d[a+2>>0]|0)<<8|(d[a+3>>0]|0);a=(d[a+5>>0]|0)<<16|(d[a+4>>0]|0)<<24|(d[a+6>>0]|0)<<8|(d[a+7>>0]|0);o=f;c[o>>2]=a;c[o+4>>2]=g;if((e|0)==6)a=4;else{c[k>>2]=a;c[k+4>>2]=g;h[l>>3]=+h[k>>3];h[m>>3]=+h[l>>3];a=+h[l>>3]!=+h[m>>3]?1:8}b[f+8>>1]=a;i=n;return}function qp(b,c,e){b=b|0;c=c|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))baba();h=k;if((c[b+44>>2]|0)>>>0>=d>>>0){f=$k(b,d,e,f)|0;if(!f){f=c[e>>2]|0;if((a[f>>0]|0)==0?(g=Xp(f)|0,(g|0)!=0):0){f=c[e>>2]|0;if(f)xg(c[f+68>>2]|0)}else g=0}else g=f}else{c[h>>2]=54788;c[h+4>>2]=10788;Zc(11,13600,h);g=11}i=k;return g|0}function sp(b){b=b|0;var d=0,e=0,f=0;if((a[b+12>>0]|0)==0?(d=b+60|0,e=c[d>>2]|0,((hc[c[(c[e>>2]|0)+48>>2]&127](e)|0)&4096|0)==0):0){d=c[d>>2]|0;e=c[(c[d>>2]|0)+44>>2]|0;if(e){d=hc[e&127](d)|0;if((d|0)<32)d=512;else f=6}else{d=4096;f=6}if((f|0)==6)d=(d|0)>65536?65536:d;c[b+148>>2]=d}else c[b+148>>2]=512;return}function tp(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;j=d+40|0;do if(!(c[j>>2]|0)){i=a[d+20>>0]|0;if(i<<24>>24){if(i&3){f=0;break}if(b[e+24>>1]&4){f=0;break}}c[e+12>>2]=0;do if(!(c[d+208>>2]|0)){if(!((b[e+24>>1]&4)==0?(a[d+16>>0]|0)!=3:0))k=11;if((k|0)==11?(g=vl(d,1)|0,(g|0)!=0):0){f=g;break}if(((c[e+20>>2]|0)>>>0>(c[d+24>>2]|0)>>>0?(Qo(e)|0)!=0:0)?(h=Ro(e)|0,(h|0)!=0):0){f=h;break}f=wl(d,e)|0;k=16}else{if((Qo(e)|0)!=0?(f=Ro(e)|0,(f|0)!=0):0)break;f=sl(d,e,0,0)|0;k=16}while(0);if((k|0)==16)if(!f){tl(e);f=0;break}g=f&255;if((g|0)==10|(g|0)==13){c[j>>2]=f;a[d+16>>0]=6}}else f=0;while(0);return f|0}function up(d){d=d|0;var e=0;e=c[d+8>>2]|0;if((a[e>>0]|0)!=0?(a[e>>0]=0,(b[d+26>>1]|0)>1):0)Xp(e)|0;return}function vp(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();n=o;m=o+8|0;do if(!(c[h>>2]|0)){if(!e){c[n>>2]=53856;c[n+4>>2]=10788;Zc(11,13600,n);c[h>>2]=11;break}if(e>>>0<2)k=0;else{k=e+-2|0;k=k-((k>>>0)%(((((c[b+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(((c[2514]|0)>>>0)/((c[b+32>>2]|0)>>>0)|0|0)?3:2)+k|0}l=vg(c[b>>2]|0,k,m,0)|0;if(l){c[h>>2]=l;break}e=(e-k|0)*5|0;l=e+-5|0;do if((l|0)>=0){k=c[m>>2]|0;b=c[k+4>>2]|0;l=b+l|0;if((a[l>>0]|0)==f<<24>>24?(d[b+(e+-3)>>0]<<16|d[b+(e+-4)>>0]<<24|d[b+(e+-2)>>0]<<8|d[b+(e+-1)>>0]|0)==(g|0):0)break;m=Cg(k)|0;c[h>>2]=m;if(!m){a[l>>0]=f;a[b+(e+-4)>>0]=g>>>24;a[b+(e+-3)>>0]=g>>>16;a[b+(e+-2)>>0]=g>>>8;a[b+(e+-1)>>0]=g}}else{c[n>>2]=53867;c[n+4>>2]=10788;Zc(11,13600,n);c[h>>2]=11;k=c[m>>2]|0}while(0);if(k)xg(k)}while(0);i=o;return}function wp(a,b,c){a=a|0;b=b|0;c=c|0;return Gm(a,b,c,0)|0}function xp(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;j=d[f>>0]&63;h=f+j|0;l=c[g+8>>2]|0;k=c[l>>2]|0;l=c[l+4>>2]|0;switch(d[f+1>>0]|0){case 1:{h=a[h>>0]|0;i=((h|0)<0)<<31>>31;m=11;break}case 6:{i=d[f+(j+1)>>0]<<16|d[h>>0]<<24|d[f+(j+2)>>0]<<8|d[f+(j+3)>>0];h=d[f+(j+5)>>0]<<16|d[f+(j+4)>>0]<<24|d[f+(j+6)>>0]<<8|d[f+(j+7)>>0];m=11;break}case 7:case 0:{h=Gm(b,f,g,0)|0;break}case 9:{i=0;h=1;m=11;break}case 3:{h=d[f+(j+1)>>0]<<8|a[h>>0]<<16|d[f+(j+2)>>0];i=((h|0)<0)<<31>>31;m=11;break}case 4:{h=d[f+(j+1)>>0]<<16|d[h>>0]<<24|d[f+(j+2)>>0]<<8|d[f+(j+3)>>0];i=((h|0)<0)<<31>>31;m=11;break}case 8:{i=0;h=0;m=11;break}case 2:{h=a[h>>0]<<8|d[f+(j+1)>>0];i=((h|0)<0)<<31>>31;m=11;break}case 5:{i=a[h>>0]<<8|d[f+(j+1)>>0];h=d[f+(j+3)>>0]<<16|d[f+(j+2)>>0]<<24|d[f+(j+4)>>0]<<8|d[f+(j+5)>>0];m=11;break}default:h=Gm(b,f,g,0)|0}do if((m|0)==11){if((l|0)>(i|0)|(l|0)==(i|0)&k>>>0>h>>>0){h=c[g+12>>2]|0;break}if((l|0)<(i|0)|(l|0)==(i|0)&k>>>0<h>>>0){h=c[g+16>>2]|0;break}if((e[g+4>>1]|0)>1){h=Gm(b,f,g,1)|0;break}else{h=a[g+6>>0]|0;break}}while(0);return h|0}function yp(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();n=o;l=o+8|0;h=f+1|0;k=a[h>>0]|0;if(k<<24>>24>-1){h=k&255;c[l>>2]=h}else{im(h,l)|0;h=c[l>>2]|0}do if((h|0)>=12){if(!(h&1)){h=c[g+16>>2]|0;break}l=d[f>>0]|0;m=(h+-12|0)/2|0;if((l+m|0)>(b|0)){c[n>>2]=68550;c[n+4>>2]=10788;Zc(11,13600,n);a[g+7>>0]=11;h=0;break}h=c[g+8>>2]|0;k=c[h+12>>2]|0;h=Vv(f+l|0,c[h+16>>2]|0,(m|0)>(k|0)?k:m)|0;if(h)if((h|0)>0){h=c[g+16>>2]|0;break}else{h=c[g+12>>2]|0;break}if((m|0)==(k|0))if((e[g+4>>1]|0)>1){h=Gm(b,f,g,1)|0;break}else{h=a[g+6>>0]|0;break}else if((m-k|0)>0){h=c[g+16>>2]|0;break}else{h=c[g+12>>2]|0;break}}else h=c[g+12>>2]|0;while(0);i=o;return h|0}function zp(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;m=f+73|0;h=a[m>>0]|0;do if(h<<24>>24!=1){if((h&255)>2){h=Gn(f)|0;if(h)break;h=a[m>>0]|0}if(!(h<<24>>24)){c[g>>2]=1;h=0;break}h=f+68|0;i=c[h>>2]|0;if((i|0)!=0?(a[m>>0]=1,c[h>>2]=0,(i|0)>0):0)h=0;else n=9}else n=9;while(0);do if((n|0)==9){l=f+76|0;h=b[l>>1]|0;i=c[f+(h<<2)+120>>2]|0;h=f+(h<<1)+78|0;j=(b[h>>1]|0)+1<<16>>16;b[h>>1]=j;h=(a[i+5>>0]|0)!=0;if((j&65535)<(e[i+18>>1]|0)){if(h){h=0;break}h=Rm(f)|0;break}if(!h){h=d[i+6>>0]|0;i=c[i+56>>2]|0;h=nm(f,d[i+(h+9)>>0]<<16|d[i+(h+8)>>0]<<24|d[i+(h+10)>>0]<<8|d[i+(h+11)>>0])|0;if(h)break;h=Rm(f)|0;break}j=f+44|0;k=f+72|0;i=b[l>>1]|0;do{if(!(i<<16>>16)){n=15;break}h=c[f+(i<<16>>16<<2)+120>>2]|0;if(h){xg(c[h+68>>2]|0);i=b[l>>1]|0}i=i+-1<<16>>16;b[l>>1]=i;b[j>>1]=0;a[k>>0]=d[k>>0]&249;o=i<<16>>16;h=c[f+(o<<2)+120>>2]|0}while((e[f+(o<<1)+78>>1]|0)>=(e[h+18>>1]|0));if((n|0)==15){c[g>>2]=1;a[m>>0]=0;h=0;break}if(!(a[h+2>>0]|0))h=0;else h=zm(f,g)|0}while(0);return h|0}function Ap(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;p=f+73|0;h=a[p>>0]|0;do if(h<<24>>24!=1){if((h&255)>2){h=Gn(f)|0;if(h)break;h=a[p>>0]|0}if(!(h<<24>>24)){c[g>>2]=1;h=0;break}h=f+68|0;i=c[h>>2]|0;if((i|0)!=0?(a[p>>0]=1,c[h>>2]=0,(i|0)<0):0)h=0;else j=9}else j=9;while(0);a:do if((j|0)==9){o=f+76|0;k=b[o>>1]|0;l=k<<16>>16;j=c[f+(l<<2)+120>>2]|0;i=f+(l<<1)+78|0;h=b[i>>1]|0;if(!(a[j+5>>0]|0)){g=c[j+56>>2]|0;h=(h&65535)<<1;p=c[j+64>>2]|0;h=(d[p+h>>0]<<8|d[p+(h|1)>>0])&e[j+20>>1];h=nm(f,d[g+(h+1)>>0]<<16|d[g+h>>0]<<24|d[g+(h+2)>>0]<<8|d[g+(h+3)>>0])|0;if(h)break;h=Bp(f)|0;break}b:do if(!(h<<16>>16)){m=f+44|0;n=f+72|0;j=l;while(1){if(!(k<<16>>16))break;i=c[f+(j<<2)+120>>2]|0;if(!i)i=k;else{xg(c[i+68>>2]|0);i=b[o>>1]|0}k=i+-1<<16>>16;b[o>>1]=k;b[m>>1]=0;a[n>>0]=d[n>>0]&249;j=k<<16>>16;i=f+(j<<1)+78|0;h=b[i>>1]|0;if(h<<16>>16)break b}a[p>>0]=0;c[g>>2]=1;h=0;break a}while(0);b[i>>1]=h+-1<<16>>16;p=c[f+(b[o>>1]<<2)+120>>2]|0;if((a[p+2>>0]|0)!=0?(a[p+5>>0]|0)==0:0)h=Am(f,g)|0;else h=0}while(0);return h|0}function Bp(f){f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;i=f+76|0;do{h=b[i>>1]|0;g=c[f+(h<<2)+120>>2]|0;if(a[g+5>>0]|0){j=4;break}k=d[g+6>>0]|0;l=c[g+56>>2]|0;k=d[l+(k+9)>>0]<<16|d[l+(k+8)>>0]<<24|d[l+(k+10)>>0]<<8|d[l+(k+11)>>0];b[f+(h<<1)+78>>1]=b[g+18>>1]|0;g=nm(f,k)|0}while((g|0)==0);if((j|0)==4){b[f+(h<<1)+78>>1]=(e[g+18>>1]|0)+65535;g=0}return g|0}function Cp(a,d,e,f,g,h){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0;o=i;i=i+224|0;if((i|0)>=(j|0))ba();m=o;k=o+8|0;c[k>>2]=0;do if(d){l=a+16|0;n=Bm(c[l>>2]|0,o+16|0,200,k)|0;if(n){Cm(c[l>>2]|0,e,d,n);if(!(b[n+4>>1]|0)){ig(c[(c[l>>2]|0)+12>>2]|0,c[k>>2]|0);c[m>>2]=53713;c[m+4>>2]=10788;Zc(11,13600,m);k=11;break}l=c[k>>2]|0;k=ym(a,n,e,f,g,h)|0;if(l)ig(c[(c[a+16>>2]|0)+12>>2]|0,l)}else k=7}else k=ym(a,0,e,f,g,h)|0;while(0);i=o;return k|0}function Dp(a,f,g){a=a|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+48|0;if((i|0)>=(j|0))ba();r=s+24|0;h=s;p=s+36|0;q=s+32|0;n=c[a+52>>2]|0;np(a,f,h);b[g>>1]=b[h+20>>1]|0;g=b[h+18>>1]|0;a:do if(g<<16>>16){k=g&65535;l=f+(k+3)|0;if(l>>>0>((c[a+56>>2]|0)+(e[a+20>>1]|0)|0)>>>0){c[r>>2]=58720;c[r+4>>2]=10788;Zc(11,13600,r);g=11;break}g=(c[n+36>>2]|0)+-4|0;g=(((c[h+12>>2]|0)+-1+g-(e[h+16>>1]|0)|0)>>>0)/(g>>>0)|0;if(g){m=n+44|0;a=g;k=d[f+(k+1)>>0]<<16|d[f+k>>0]<<24|d[f+(k+2)>>0]<<8|d[l>>0];while(1){a=a+-1|0;c[p>>2]=0;c[q>>2]=0;if(k>>>0<2)break;if(k>>>0>(c[m>>2]|0)>>>0)break;f=(a|0)==0;if(!f){g=Ip(n,k,q,p)|0;if(g)break a;g=c[q>>2]|0;if(g)l=13;else l=12}else l=12;if((l|0)==12){g=Up(n,k)|0;c[q>>2]=g;if(!g){g=0;l=15}else l=13}if((l|0)==13){l=0;if((b[(c[g+68>>2]|0)+26>>1]|0)==1)l=15;else{c[r>>2]=58754;c[r+4>>2]=10788;Zc(11,13600,r);g=11}}if((l|0)==15)g=Um(n,g,k)|0;h=c[q>>2]|0;if((h|0)!=0?(o=c[h+68>>2]|0,(o|0)!=0):0)xg(o);if(g)break a;if(f){g=0;break a}else k=c[p>>2]|0}c[r>>2]=58734;c[r+4>>2]=10788;Zc(11,13600,r);g=11}else g=0}else g=0;while(0);i=s;return g|0}function Ep(f,g,h,k){f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))ba();m=w;do if(!(c[k>>2]|0)){s=c[f+56>>2]|0;t=g<<1;u=c[f+64>>2]|0;v=u+t|0;l=(d[v>>0]|0)<<8|(d[u+(t|1)>>0]|0);n=f+6|0;o=d[n>>0]|0;p=s+(o+5)|0;q=s+(o+6)|0;if(l>>>0>=((d[p>>0]|0)<<8|(d[q>>0]|0))>>>0?(r=f+52|0,(l+h|0)>>>0<=(c[(c[r>>2]|0)+36>>2]|0)>>>0):0){h=yq(f,l&65535,h&65535)|0;if(h){c[k>>2]=h;break}h=f+18|0;l=(b[h>>1]|0)+-1<<16>>16;b[h>>1]=l;if(!(l<<16>>16)){k=s+(o+1)|0;a[k>>0]=0;a[k+1>>0]=0;a[k+2>>0]=0;a[k+3>>0]=0;a[s+(o+7)>>0]=0;a[p>>0]=(c[(c[r>>2]|0)+36>>2]|0)>>>8;a[q>>0]=c[(c[r>>2]|0)+36>>2];b[f+16>>1]=(c[(c[r>>2]|0)+36>>2]|0)+65528-(d[n>>0]|0)-(d[f+7>>0]|0);break}else{hw(v|0,u+(t+2)|0,(l&65535)-g<<1|0)|0;a[s+(o+3)>>0]=(e[h>>1]|0)>>>8;a[s+(o+4)>>0]=b[h>>1];s=f+16|0;b[s>>1]=(e[s>>1]|0)+2;break}}c[m>>2]=58991;c[m+4>>2]=10788;Zc(11,13600,m);c[k>>2]=11}while(0);i=w;return}function Fp(f,g,h,k,l,m,n){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;var 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;D=i;i=i+16|0;if((i|0)>=(j|0))ba();p=D;z=D+12|0;v=D+8|0;a:do if(!(c[n>>2]|0)){o=f+1|0;if((a[o>>0]|0)==0?(B=k+2|0,C=f+16|0,(B|0)<=(e[C>>1]|0)):0){l=Cg(c[f+68>>2]|0)|0;if(l){c[n>>2]=l;break}w=c[f+56>>2]|0;q=e[f+14>>1]|0;x=f+18|0;y=e[x>>1]<<1;s=g<<1;t=q+s|0;u=f+6|0;l=d[u>>0]|0;c[z>>2]=0;g=y+q|0;q=w+(l+5)|0;r=w+(l+6)|0;o=((d[q>>0]<<8|d[r>>0])+65535&65535)+1|0;b:do if((g|0)>(o|0)){c[p>>2]=54326;c[p+4>>2]=10788;Zc(11,13600,p);l=11}else{p=g+2|0;do if((p|0)<=(o|0)){if((a[w+(l+1)>>0]|0)==0?(a[w+(l+2)>>0]|0)==0:0){A=20;break}c[v>>2]=0;g=zq(f,k,z,v)|0;l=c[z>>2]|0;if(l)break b;if(!(c[v>>2]|0))if(!g)A=20;else o=g-w|0;else A=21}else A=20;while(0);if((A|0)==20)if((p+k|0)>(o|0))A=21;else A=23;if((A|0)==21){l=Aq(f)|0;c[z>>2]=l;if(l)break;o=((d[q>>0]<<8|d[r>>0])+65535&65535)+1|0;A=23}if((A|0)==23){o=o-k|0;a[q>>0]=o>>>8;a[r>>0]=o}b[x>>1]=(b[x>>1]|0)+1<<16>>16;b[C>>1]=(e[C>>1]|0)-B;l=w+o|0;gw(l|0,h|0,k|0)|0;if(m){a[l>>0]=m>>>24;a[w+(o+1)>>0]=m>>>16;a[w+(o+2)>>0]=m>>>8;a[w+(o+3)>>0]=m}m=w+t|0;hw(w+(t+2)|0,m|0,y-s|0)|0;a[m>>0]=o>>>8;a[w+(t+1)>>0]=o;a[w+((d[u>>0]|0)+3)>>0]=(e[x>>1]|0)>>>8;a[w+((d[u>>0]|0)+4)>>0]=b[x>>1];if(!(a[(c[f+52>>2]|0)+17>>0]|0))break a;Bq(f,h,n);break a}while(0);c[n>>2]=l;break}if(!l)l=h;else gw(l|0,h|0,k|0)|0;if(m){a[l>>0]=m>>>24;a[l+1>>0]=m>>>16;a[l+2>>0]=m>>>8;a[l+3>>0]=m}n=a[o>>0]|0;a[o>>0]=n+1<<24>>24;n=n&255;c[f+(n<<2)+32>>2]=l;b[f+(n<<1)+22>>1]=g}while(0);i=D;return}function Gp(f){f=f|0;var g=0,h=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,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0;Oa=i;i=i+240|0;if((i|0)>=(j|0))ba();Na=Oa+24|0;Ka=Oa+200|0;Aa=Oa+188|0;za=Oa+168|0;ya=Oa+160|0;BaBa+(k<<2)>>2]=m;if((k|0)>3){ca=91;break}else{m=m+r|0;k=k+1|0;n=0}}else n=g;m=m+1|0}while((m|0)<(p|0));if((ca|0)==91){ca=0;c[Na>>2]=59904;c[Na+4>>2]=10788;Zc(11,13600,Na);c[Ka>>2]=11;m=W;n=0;break}c[Ma+(k<<2)>>2]=n;c[Ba+(k<<2)>>2]=p;if((k|0)>0){B=(K|0)==0;m=k;do{s=Ma+(m<<2)|0;m=m+-1|0;g=Ma+(m<<2)|0;t=Ba+(m<<2)|0;x=c[t>>2]|0;A=c[g>>2]|0;r=n;while(1){w=x+-1|0;v=x-C|0;if(r){if(!B){n=A;break}y=b[U+(v<<1)>>1]|0;z=r+2|0;v=b[U+(w<<1)>>1]|0;u=A+-2|0;if(((y&65535)+z|0)>(u-(v&65535)|0)){n=A;break}}else{u=A+-2|0;z=2;y=b[U+(v<<1)>>1]|0;v=b[U+(w<<1)>>1]|0}c[t>>2]=w;x=w;A=u-(v&65535)|0;r=(y&65535)+z|0}c[s>>2]=r;c[g>>2]=n}while((m|0)>0);I=1;M=q;L=p}else{I=1;M=q;L=p}}else ca=93}else{q=R+-12+(c[N>>2]|0)|0;p=0;ca=93}if((ca|0)==93){ca=0;c[Ma>>2]=0;c[Ba>>2]=p;I=0;M=q;k=0;L=p}if((c[J+72>>2]|0)>>>0<2){c[Na>>2]=59963;c[Na+4>>2]=10788;Zc(11,13600,Na);c[Ka>>2]=11;m=W;n=0;break}E=d[c[J+56>>2]>>0]|0;if((k|0)>-1){s=(K|0)!=0;g=Z+17|0;m=aa+72|0;u=0;n=0;while(1){do if((u|0)<($|0)){J=Aa+(u<<2)|0;K=c[J>>2]|0;c[za+(u<<2)>>2]=K;c[Ga>>2]=K;c[J>>2]=0;K=Cg(c[K+68>>2]|0)|0;c[Ka>>2]=K;n=n+1|0;if(K){m=W;break a}}else{K=ep(Z,Ga,Ha,s?1:c[Ha>>2]|0,0)|0;c[Ka>>2]=K;if(K){m=W;break a}q=c[Ga>>2]|0;ll(q,E);c[za+(u<<2)>>2]=q;n=n+1|0;c[Ca+(u<<2)>>2]=L;if(!(a[g>>0]|0))break;vp(Z,c[q+72>>2]|0,5,c[m>>2]|0,Ka);if(c[Ka>>2]|0){m=W;break a}}while(0);if((u|0)<(k|0))u=u+1|0;else break}if((n|0)>0){p=0;c:do{K=c[za+(p<<2)>>2]|0;q=c[K+72>>2]|0;c[wa+(p<<2)>>2]=q;c[va+(p<<2)>>2]=q;b[ua+(p<<1)>>1]=b[(c[K+68>>2]|0)+24>>1]|0;if((p|0)>0){m=0;do{if((c[wa+(m<<2)>>2]|0)==(q|0)){ca=118;break c}m=m+1|0}while((m|0)<(p|0))}p=p+1|0}while((p|0)<(n|0));if((ca|0)==118){ca=0;c[Na>>2]=60018;c[Na+4>>2]=10788;Zc(11,13600,Na);c[Ka>>2]=11;m=W;break}r=(n|0)>1;m=Z+44|0;k=0;do{if(r){p=0;q=1;do{p=(c[va+(q<<2)>>2]|0)>>>0<(c[va+(p<<2)>>2]|0)>>>0?q:p;q=q+1|0}while((q|0)!=(n|0))}else p=0;K=va+(p<<2)|0;q=c[K>>2]|0;c[K>>2]=-1;if((p|0)!=(k|0)){if((p|0)>(k|0)){J=c[(c[za+(p<<2)>>2]|0)+68>>2]|0;K=p+1+(c[m>>2]|0)|0;b[J+24>>1]=0;Vp(J,K)}K=c[za+(k<<2)>>2]|0;J=c[K+68>>2]|0;b[J+24>>1]=b[ua+(p<<1)>>1]|0;Vp(J,q);c[K+72>>2]=q}k=k+1|0}while((k|0)!=(n|0));c[Ha>>2]=q;K=0}else K=1}else{K=1;n=0}H=n+-1|0;q=c[za+(H<<2)>>2]|0;J=c[q+72>>2]|0;a[Q>>0]=J>>>24;a[O>>0]=J>>>16;a[P>>0]=J>>>8;a[D>>0]=J;if(!((E&8|0)!=0|($|0)==(n|0))){Q=(c[q+56>>2]|0)+8|0;P=(c[(c[((n|0)>($|0)?za:Aa)+(_<<2)>>2]|0)+56>>2]|0)+8|0;P=d[P>>0]|d[P+1>>0]<<8|d[P+2>>0]<<16|d[P+3>>0]<<24;a[Q>>0]=P;a[Q+1>>0]=P>>8;a[Q+2>>0]=P>>16;a[Q+3>>0]=P>>24}J=Z+17|0;if((a[J>>0]|0)!=0?(oa=c[za>>2]|0,pa=c[N>>2]|0,I):0){A=S<<24>>24==0;y=A&1;x=V<<16>>16==0;v=c[oa+56>>2]|0;u=(e[oa+18>>1]|0)+(d[oa+1>>0]|0)|0;w=0;t=0;p=0;r=oa;while(1){z=c[W+(w<<2)>>2]|0;if((w|0)==(u|0)){p=p+1|0;if((p|0)<(n|0))q=za+(p<<2)|0;else q=Aa+(p<<2)|0;u=c[q>>2]|0;v=c[u+56>>2]|0;u=w+y+(e[u+18>>1]|0)+(d[u+1>>0]|0)|0}if((w|0)==(c[Ba+(t<<2)>>2]|0)){q=t+1|0;r=c[za+(q<<2)>>2]|0;if(!A)ca=142}else{q=t;ca=142}do if((ca|0)==142){ca=0;if((p|0)<(n|0)?(z>>>0>=v>>>0?(c[r+72>>2]|0)==(c[wa+(p<<2)>>2]|0):0)&z>>>0<(v+pa|0)>>>0:0)break;if(x)vp(Z,d[z+1>>0]<<16|d[z>>0]<<24|d[z+2>>0]<<8|d[z+3>>0],5,c[r+72>>2]|0,Ka);if((e[U+(w<<1)>>1]|0)<=(e[r+12>>1]|0))break;Bq(r,z,Ka)}while(0);w=w+1|0;if((w|0)==(L|0))break;else t=q}}if((H|0)>0){s=S<<24>>24==0;u=0;v=0;while(1){t=c[za+(u<<2)>>2]|0;p=c[Ba+(u<<2)>>2]|0;m=c[W+(p<<2)>>2]|0;k=b[U+(p<<1)>>1]|0;q=(k&65535)+R|0;r=h+v|0;do if(!(a[t+5>>0]|0)){p=(c[t+56>>2]|0)+8|0;Q=d[m>>0]|d[m+1>>0]<<8|d[m+2>>0]<<16|d[m+3>>0]<<24;a[p>>0]=Q;a[p+1>>0]=Q>>8;a[p+2>>0]=Q>>16;a[p+3>>0]=Q>>24;p=r}else{if(!s){np(t,c[W+(p+-1<<2)>>2]|0,Da);q=Da;m=r;p=0;q=(lm(h+(v+4)|0,c[q>>2]|0,c[q+4>>2]|0)|0)+4|0;break}g=m+-4|0;if(k<<16>>16!=4){m=g;p=r;break}m=g;p=r;q=(Hp(aa,g)|0)&65535}while(0);Fp(aa,u+T|0,m,q,p,c[t+72>>2]|0,Ka);if(c[Ka>>2]|0){m=W;break a}u=u+1|0;if((u|0)>=(H|0))break;else v=q+v|0}}q=1-n|0;if((q|0)<(n|0)){I=c[Ba>>2]|0;H=S<<24>>24==0&1;do{F=(q|0)<0?0-q|0:q;G=xa+F|0;do if(!(a[G>>0]|0)){if((q|0)<=-1?(T=F+-1|0,(c[Ca+(T<<2)>>2]|0)<(c[Ba+(T<<2)>>2]|0)):0)break;if(!F){E=0;m=0;D=I}else{p=F+-1|0;if((F|0)<($|0))m=(c[Ca+(p<<2)>>2]|0)+H|0;else m=L;D=(c[Ba+(p<<2)>>2]|0)+H|0;E=D;D=(c[Ba+(F<<2)>>2]|0)-D|0}B=c[za+(F<<2)>>2]|0;s=c[B+56>>2]|0;g=d[B+6>>0]|0;k=B+64|0;p=(c[k>>2]|0)+(D<<1)|0;r=B+18|0;v=e[r>>1]|0;C=B+1|0;u=v+m+(d[C>>0]|0)|0;t=D+E|0;if((m|0)<(E|0)){T=Eq(B,E-m|0,W+(m<<2)|0,U+(m<<1)|0)|0;S=c[k>>2]|0;hw(S|0,S+(T<<1)|0,v<<1|0)|0;v=v-T|0}if((u|0)>(t|0))v=v-(Eq(B,u-t|0,W+(t<<2)|0,U+(t<<1)|0)|0)|0;x=s+(g+5)|0;w=s+(g+6)|0;T=s+(((d[x>>0]<<8|d[w>>0])+65535&65535)+1)|0;c[Na>>2]=T;d:do if(T>>>0<p>>>0)ca=181;else{if((E|0)<(m|0)){u=m-E|0;u=(u|0)>(D|0)?D:u;T=c[k>>2]|0;hw(T+(u<<1)|0,T|0,v<<1|0)|0;if(Fq(B,p,Na,T,u,W+(E<<2)|0,U+(E<<1)|0)|0){ca=181;break}v=v+u|0}u=a[C>>0]|0;if(u<<24>>24){A=0;do{z=(e[B+(A<<1)+22>>1]|0)+m|0;y=z-E|0;if((y|0)>-1&(y|0)<(D|0)){S=y<<1;R=c[k>>2]|0;T=R+S|0;hw(R+(S+2)|0,T|0,v-y<<1|0)|0;if(Fq(B,p,Na,T,1,W+(z<<2)|0,U+(z<<1)|0)|0){ca=181;break d}u=a[C>>0]|0;v=v+1|0}A=A+1|0}while((A|0)<(u&255|0))}T=v+E|0;if(Fq(B,p,Na,(c[k>>2]|0)+(v<<1)|0,D-v|0,W+(T<<2)|0,U+(T<<1)|0)|0){ca=181;break}T=D&65535;b[r>>1]=T;a[C>>0]=0;a[s+(g+3)>>0]=(T&65535)>>>8;a[s+(g+4)>>0]=b[r>>1];T=(c[Na>>2]|0)-s|0;a[x>>0]=T>>>8;a[w>>0]=T}while(0);if((ca|0)==181){ca=0;Dq(B,D,W+(E<<2)|0,U+(E<<1)|0)}a[G>>0]=1;b[B+16>>1]=M-(c[Ma+(F<<2)>>2]|0)}while(0);q=q+1|0}while((q|0)!=(n|0))}do if(X){if(b[Y>>1]|0){ca=191;break}m=c[za>>2]|0;if((d[aa+6>>0]|0)>>>0>(e[m+16>>1]|0)>>>0){ca=191;break}c[Ka>>2]=Aq(m)|0;Cq(m,aa,Ka);if(c[Ka>>2]|0)break;c[Ka>>2]=Um(c[m+52>>2]|0,m,c[m+72>>2]|0)|0}else ca=191;while(0);do if((ca|0)==191){ca=0;if((a[J>>0]|0)==0|V<<16>>16!=0|K)break;else m=0;do{Y=c[za+(m<<2)>>2]|0;X=c[Y+56>>2]|0;vp(Z,d[X+9>>0]<<16|d[X+8>>0]<<24|d[X+10>>0]<<8|d[X+11>>0],5,c[Y+72>>2]|0,Ka);m=m+1|0}while((m|0)!=(n|0))}while(0);if((n|0)>=($|0)){m=W;break}m=c[Ka>>2]|0;g=n;do{k=c[Aa+(g<<2)>>2]|0;if(!m){m=Um(c[k+52>>2]|0,k,c[k+72>>2]|0)|0;c[Ka>>2]=m}g=g+1|0}while((g|0)!=($|0));m=W}else{k=_;ca=47}while(0);if((ca|0)==47){ca=0;bw(Aa|0,0,(k<<2)+4|0)|0;m=0;n=0}di(m);if((_|0)>-1){k=0;do{m=c[Aa+(k<<2)>>2]|0;if(m)xg(c[m+68>>2]|0);k=k+1|0}while((k|0)<($|0))}if((n|0)>0){k=0;do{g=c[za+(k<<2)>>2]|0;if(g)xg(c[g+68>>2]|0);k=k+1|0}while((k|0)!=(n|0))}g=c[Ka>>2]|0}if(da)Xk(da)}else h=da;while(0);a[o>>0]=0;if(l)xg(c[l+68>>2]|0);l=(b[na>>1]|0)+-1<<16>>16;b[na>>1]=l;if(g)break;else da=h}if(h)Xk(h);i=Oa;return g|0}function Hp(b,f){b=b|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=d[b+7>>0]|0;h=f+g|0;do if(!(a[b+4>>0]|0)){j=a[h>>0]|0;i=j&255;if(j<<24>>24<0){j=f+(g+9)|0;g=i&127;do{h=h+1|0;i=a[h>>0]|0;g=i&127|g<<7}while(i<<24>>24<0&h>>>0<j>>>0)}else g=i;i=h+1|0;if(a[b+2>>0]|0){k=h+10|0;j=i;while(1){i=h+2|0;if((a[j>>0]|0)<0&i>>>0<k>>>0){h=j;j=i}else break}}h=e[b+10>>1]|0;if(g>>>0>h>>>0){j=e[b+12>>1]|0;g=(((g-j|0)>>>0)%(((c[(c[b+52>>2]|0)+36>>2]|0)+-4|0)>>>0)|0)+j|0;g=(i-f&65535)+4+(g>>>0>h>>>0?j:g)|0;break}else{g=i-f+g|0;g=g>>>0<4?4:g;break}}else{i=f+(g+9)|0;while(1){g=h+1|0;if((a[h>>0]|0)<0&g>>>0<i>>>0)h=g;else break}g=g-f|0}while(0);return g&65535|0}function Ip(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))ba();q=s+4|0;p=s;o=s+8|0;c[q>>2]=0;if(a[b+17>>0]|0){h=((c[2514]|0)>>>0)/((c[b+32>>2]|0)>>>0)|0;m=b+36|0;n=e;while(1){l=n+1|0;if(l>>>0<2)k=0;else{k=n+-1|0;k=k-((k>>>0)%(((((c[m>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(h|0)?3:2)+k|0}if((k|0)==(l|0)|(n|0)==(h|0))n=l;else break}if(l>>>0<=(c[b+44>>2]|0)>>>0){n=dp(b,l,o,p)|0;m=(n|0)==0;k=m&(a[o>>0]|0)==4&(c[p>>2]|0)==(e|0);l=k?l:0;if(k|m^1){h=0;k=k?101:n}else r=8}else{l=0;r=8}}else{l=0;r=8}if((r|0)==8){k=$k(b,e,q,(f|0)==0?2:0)|0;h=c[q>>2]|0;if(!k){l=c[h+56>>2]|0;l=d[l+1>>0]<<16|d[l>>0]<<24|d[l+2>>0]<<8|d[l+3>>0];k=0}}c[g>>2]=l;if(!f){if(h)xg(c[h+68>>2]|0)}else c[f>>2]=h;i=s;return ((k|0)==101?0:k)|0}function Jp(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;c[h>>2]=0;f=(b|0)!=0;a:do if(d)if(f){f=h;while(1){g=d+8|0;while(1){if((Sp(a,b+8|0,c[b>>2]|0,g,c[d>>2]|0)|0)>=1)break;c[f>>2]=b;f=b+4|0;b=c[f>>2]|0;if(!b){b=0;g=0;break a}else g=0}c[f>>2]=d;f=d+4|0;d=c[f>>2]|0;if(!d){d=0;g=1;break a}if(!b){b=0;g=0;break}}}else{g=f;f=h}else{d=0;g=f;f=h}while(0);c[f>>2]=g?b:d;c[e>>2]=c[h>>2];i=k;return}function Kp(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g+8|0;e=g;d=c[2252]|0;if((d|0)!=0?(hc[d&127](202)|0)!=0:0)d=3338;else{d=ip(c[a>>2]|0,0,b,4126,f)|0;c[f>>2]=d;if(!d){d=e;c[d>>2]=0;c[d+4>>2]=0;d=c[b>>2]|0;Yb[c[(c[d>>2]|0)+40>>2]&63](d,18,e)|0;d=c[f>>2]|0}}i=g;return d|0}function Lp(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=b+0|0;h=g+40|0;do{c[g>>2]=0;g=g+4|0}while((g|0)<(h|0));g=((d|0)<0)<<31>>31;h=mg(d,g)|0;c[b+4>>2]=h;if(!h)c[b>>2]=7;else{h=nw(e|0,f|0,d|0,g|0)|0;c[b+12>>2]=h;c[b+16>>2]=h;h=$v(e|0,f|0,h|0,((h|0)<0)<<31>>31|0)|0;g=b+24|0;c[g>>2]=h;c[g+4>>2]=C;c[b+8>>2]=d;c[b+32>>2]=a}return}function Mp(a,b,d){a=a|0;b=b|0;d=d|0;var 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;a:do if((d|0)>0){f=a+8|0;h=a+16|0;i=a+4|0;j=a+32|0;k=a+12|0;l=a+24|0;m=d;do{if(c[a>>2]|0)break a;g=c[h>>2]|0;e=(c[f>>2]|0)-g|0;e=(m|0)>(e|0)?e:m;gw((c[i>>2]|0)+g|0,b+(d-m)|0,e|0)|0;g=(c[h>>2]|0)+e|0;c[h>>2]=g;if((g|0)==(c[f>>2]|0)){q=c[j>>2]|0;o=c[k>>2]|0;p=(c[i>>2]|0)+o|0;n=l;n=fw(c[n>>2]|0,c[n+4>>2]|0,o|0,((o|0)<0)<<31>>31|0)|0;c[a>>2]=pc[c[(c[q>>2]|0)+12>>2]&31](q,p,g-o|0,n,C)|0;c[h>>2]=0;c[k>>2]=0;n=c[f>>2]|0;g=l;n=fw(c[g>>2]|0,c[g+4>>2]|0,n|0,((n|0)<0)<<31>>31|0)|0;g=l;c[g>>2]=n;c[g+4>>2]=C}m=m-e|0}while((m|0)>0)}while(0);return}function Np(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;f=a+4|0;if(((c[a>>2]|0)==0?(e=c[f>>2]|0,(e|0)!=0):0)?(d=c[a+16>>2]|0,g=c[a+12>>2]|0,(d|0)>(g|0)):0){i=c[a+32>>2]|0;h=a+24|0;h=fw(c[h>>2]|0,c[h+4>>2]|0,g|0,((g|0)<0)<<31>>31|0)|0;c[a>>2]=pc[c[(c[i>>2]|0)+12>>2]&31](i,e+g|0,d-g|0,h,C)|0}e=a+24|0;d=c[a+16>>2]|0;e=fw(d|0,((d|0)<0)<<31>>31|0,c[e>>2]|0,c[e+4>>2]|0)|0;d=b;c[d>>2]=e;c[d+4>>2]=C;Sc(c[f>>2]|0);f=c[a>>2]|0;d=a+0|0;e=d+40|0;do{c[d>>2]=0;d=d+4|0}while((d|0)<(e|0));return f|0}function Op(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=c[2252]|0;if((g|0)!=0?(hc[g&127](201)|0)!=0:0)g=266;else{h=b+44|0;if(c[h>>2]|0)c[h>>2]=0;n=b;c[n>>2]=e;c[n+4>>2]=f;n=d+8|0;l=c[n>>2]|0;n=c[n+4>>2]|0;j=b+8|0;k=j;c[k>>2]=l;c[k+4>>2]=n;d=c[d>>2]|0;k=b+24|0;c[k>>2]=d;a=a+8|0;g=c[a>>2]|0;i=c[(c[g+24>>2]|0)+136>>2]|0;m=((i|0)<0)<<31>>31;if(!((n|0)>(m|0)|(n|0)==(m|0)&l>>>0>i>>>0)?(c[c[d>>2]>>2]|0)>2:0){c[h>>2]=0;g=c[a>>2]|0}i=c[g+12>>2]|0;d=((i|0)<0)<<31>>31;f=nw(e|0,f|0,i|0,d|0)|0;a=b+36|0;g=c[a>>2]|0;if(!g){g=mg(i,d)|0;c[a>>2]=g;c[b+40>>2]=i;e=g;g=(g|0)==0?7:0}else{e=g;g=0}if((g|0)==0&(f|0)!=0){g=i-f|0;i=b;h=c[i>>2]|0;i=c[i+4>>2]|0;b=fw(h|0,i|0,g|0,((g|0)<0)<<31>>31|0)|0;l=C;d=j;a=c[d>>2]|0;d=c[d+4>>2]|0;if((l|0)>(d|0)|(l|0)==(d|0)&b>>>0>a>>>0)g=$v(a|0,d|0,h|0,i|0)|0;k=c[k>>2]|0;g=pc[c[(c[k>>2]|0)+8>>2]&31](k,e+f|0,g,h,i)|0}}return g|0}function Pp(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))ba();k=l+8|0;h=l;f=c[b+44>>2]|0;e=b;g=c[e>>2]|0;a:do if(!f){f=c[b+40>>2]|0;e=nw(g|0,c[e+4>>2]|0,f|0,((f|0)<0)<<31>>31|0)|0;if((e|0)!=0&(f-e|0)>8){f=(op((c[b+36>>2]|0)+e|0,d)|0)&255;e=b;f=fw(c[e>>2]|0,c[e+4>>2]|0,f|0,0)|0;e=b;c[e>>2]=f;c[e+4>>2]=C;e=0;break}else f=0;while(1){e=Gq(b,1,h)|0;if(e)break a;e=a[c[h>>2]>>0]|0;a[k+(f&15)>>0]=e;if(e<<24>>24<0)f=f+1|0;else break}op(k,d)|0;e=0}else{f=(op(f+g|0,d)|0)&255;e=b;f=fw(c[e>>2]|0,c[e+4>>2]|0,f|0,0)|0;e=b;c[e>>2]=f;c[e+4>>2]=C;e=0}while(0);i=l;return e|0}function Qp(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();g=k;d=g;c[d>>2]=0;c[d+4>>2]=0;d=a;f=c[d+4>>2]|0;b=a+8|0;e=c[b+4>>2]|0;do if((f|0)<(e|0)|((f|0)==(e|0)?(c[d>>2]|0)>>>0<(c[b>>2]|0)>>>0:0))h=9;else{d=c[a+48>>2]|0;if(d){b=Hq(d)|0;l=d+32|0;f=d+48|0;c[l+0>>2]=c[f+0>>2];c[l+4>>2]=c[f+4>>2];c[l+8>>2]=c[f+8>>2];c[l+12>>2]=c[f+12>>2];l=d+40|0;f=d+8|0;e=c[f>>2]|0;f=c[f+4>>2]|0;if((c[l>>2]|0)==(e|0)?(c[l+4>>2]|0)==(f|0):0)c[d+20>>2]=1;if(!b)if(!(c[d+20>>2]|0)){b=Op(c[d>>2]|0,a,d+32|0,e,f)|0;if(!b){h=9;break}else break}else b=0}else b=0;Rp(a)}while(0);if((h|0)==9){b=Pp(a,g)|0;if(!b){b=c[g>>2]|0;c[a+20>>2]=b;b=Gq(a,b,a+32|0)|0}}i=k;return b|0}function Rp(a){a=a|0;var b=0;Sc(c[a+28>>2]|0);Sc(c[a+36>>2]|0);Om(c[a+48>>2]|0);a=a+0|0;b=a+56|0;do{c[a>>2]=0;a=a+4|0}while((a|0)<(b|0));return}function Sp(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0;g=c[a+12>>2]|0;if(e)Cm(c[(c[a+8>>2]|0)+28>>2]|0,f,e,g);return Gm(d,b,g,0)|0}function Tp(f,g,h,k){f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))ba();m=w;l=w+8|0;s=w+12|0;do if((c[f+44>>2]|0)>>>0>=g>>>0){g=rp(f,g,l,0)|0;if(!g){u=c[l>>2]|0;t=u+9|0;a:do if(!(a[t>>0]|0)){a[t>>0]=1;q=d[u+6>>0]|0;o=u+18|0;l=b[o>>1]|0;if(!(l<<16>>16)){l=l&65535;g=u+5|0}else{n=0;while(1){m=c[u+56>>2]|0;l=n<<1;g=c[u+64>>2]|0;l=(d[g+l>>0]<<8|d[g+(l|1)>>0])&e[u+20>>1];g=m+l|0;p=u+5|0;if((a[p>>0]|0)==0?(r=Tp(f,d[m+(l+1)>>0]<<16|d[g>>0]<<24|d[m+(l+2)>>0]<<8|d[m+(l+3)>>0],1,k)|0,(r|0)!=0):0){g=r;v=21;break a}g=Dp(u,g,s)|0;n=n+1|0;if(g){v=21;break a}l=e[o>>1]|0;if((n|0)>=(l|0)){g=p;break}}}if(!(a[g>>0]|0)){g=c[u+56>>2]|0;g=Tp(f,d[g+(q+9)>>0]<<16|d[g+(q+8)>>0]<<24|d[g+(q+10)>>0]<<8|d[g+(q+11)>>0],1,k)|0;if(!g)v=16}else if(!k)v=16;else{c[k>>2]=(c[k>>2]|0)+l;v=16}if((v|0)==16){if(h){g=Um(c[u+52>>2]|0,u,c[u+72>>2]|0)|0;v=21;break}g=Cg(c[u+68>>2]|0)|0;if(!g){ll(u,d[(c[u+56>>2]|0)+q>>0]|8);g=0;v=21;break}}a[t>>0]=0}else{c[m>>2]=60971;c[m+4>>2]=10788;Zc(11,13600,m);g=11;v=21}while(0);if((v|0)==21){a[t>>0]=0;if(!u)break}xg(c[u+68>>2]|0)}}else{c[m>>2]=60966;c[m+4>>2]=10788;Zc(11,13600,m);g=11}while(0);i=w;return g|0}function Up(b,d){b=b|0;d=d|0;var e=0,f=0;f=(c[b>>2]|0)+204|0;e=Yb[c[8744+132>>2]&63](c[(c[f>>2]|0)+40>>2]|0,d,0)|0;e=el(c[f>>2]|0,d,e)|0;if(!e)e=0;else{f=c[e+8>>2]|0;c[f+56>>2]=c[e+4>>2];c[f+68>>2]=e;c[f+52>>2]=b;c[f+72>>2]=d;a[f+6>>0]=(d|0)==1?100:0;e=f}return e|0}function Vp(a,d){a=a|0;d=d|0;var e=0;e=a+20|0;mc[c[8744+140>>2]&15](c[(c[a+28>>2]|0)+40>>2]|0,c[a>>2]|0,c[e>>2]|0,d);c[e>>2]=d;if((b[a+24>>1]&6)==6)Mo(a,3);return}function Wp(f){f=f|0;var g=0,h=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;v=i;i=i+16|0;if((i|0)>=(j|0))ba();u=v;r=c[f+52>>2]|0;s=a[f>>0]|0;t=c[f+72>>2]|0;q=Xp(f)|0;c[u>>2]=q;if(!q){q=b[f+18>>1]|0;p=q&65535;if(!(q<<16>>16))g=f+5|0;else{h=f+56|0;k=f+20|0;l=f+64|0;g=f+5|0;q=0;do{m=c[h>>2]|0;n=q<<1;o=c[l>>2]|0;n=(d[o+n>>0]<<8|d[o+(n|1)>>0])&e[k>>1];o=m+n|0;Bq(f,o,u);if(!(a[g>>0]|0))vp(r,d[m+(n+1)>>0]<<16|d[o>>0]<<24|d[m+(n+2)>>0]<<8|d[m+(n+3)>>0],5,t,u);q=q+1|0}while((q|0)<(p|0))}if(!(a[g>>0]|0)){q=d[f+6>>0]|0;p=c[f+56>>2]|0;vp(r,d[p+(q+9)>>0]<<16|d[p+(q+8)>>0]<<24|d[p+(q+10)>>0]<<8|d[p+(q+11)>>0],5,t,u)}}a[f>>0]=s;i=v;return c[u>>2]|0}function Xp(e){e=e|0;var f=0,g=0,h=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;v=i;i=i+16|0;if((i|0)>=(j|0))ba();u=v;a:do if(!(a[e>>0]|0)){f=c[e+52>>2]|0;r=c[e+56>>2]|0;l=d[e+6>>0]|0;if(No(e,d[r+l>>0]|0)|0){c[u>>2]=54562;c[u+4>>2]=10788;Zc(11,13600,u);f=11;break}n=c[f+32>>2]|0;b[e+20>>1]=n+65535;a[e+1>>0]=0;q=c[f+36>>2]|0;f=l+8+(d[e+7>>0]|0)|0;b[e+14>>1]=f;c[e+60>>2]=r+q;f=f&65535;c[e+64>>2]=r+f;k=a[r+(l+5)>>0]|0;h=a[r+(l+6)>>0]|0;g=d[r+(l+3)>>0]<<8|d[r+(l+4)>>0];b[e+18>>1]=g;if(g>>>0>(((n+-8|0)>>>0)/6|0)>>>0){c[u>>2]=54579;c[u+4>>2]=10788;Zc(11,13600,u);f=11;break}n=(g<<1)+f|0;m=q+-4|0;g=d[r+(l+1)>>0]<<8|d[r+(l+2)>>0];f=(((k&255)<<8|h&255)+65535&65535)+1+(d[r+(l+7)>>0]|0)|0;do if(g){while(1){if((g|0)<(n|0)|(g|0)>(m|0)){t=8;break}h=d[r+g>>0]<<8|d[r+(g+1)>>0];k=d[r+(g+2)>>0]<<8|d[r+(g+3)>>0];g=k+g|0;if(!h){o=k;p=g;s=f;t=12;break}if((h|0)<=(g+3|0)|(g|0)>(q|0))break;g=h;f=k+f|0}if((t|0)==8){c[u>>2]=54634;c[u+4>>2]=10788;Zc(11,13600,u);f=11;break a}if((t|0)==12?(p|0)<=(q|0):0){f=o+s|0;break}c[u>>2]=54641;c[u+4>>2]=10788;Zc(11,13600,u);f=11;break a}while(0);if((f|0)>(q|0)){c[u>>2]=54655;c[u+4>>2]=10788;Zc(11,13600,u);f=11;break}else{b[e+16>>1]=f-n;a[e>>0]=1;f=0;break}}else f=0;while(0);i=v;return f|0}function Yp(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;f=c[b>>2]|0;g=f+65|0;if(!(a[g>>0]|0)){if((c[f+24>>2]&65536|0)==0?(h=b+4|0,m=c[h>>2]|0,c[k>>2]=(d|0)==0?13552:d,$g(m,f,13560,k),(e|0)!=0):0){d=c[c[h>>2]>>2]|0;c[k>>2]=d;c[k+4>>2]=e;f=Iq(f,d,0,k)|0;c[c[h>>2]>>2]=f}if(!(a[g>>0]|0)){c[k>>2]=105209;c[k+4>>2]=10788;Zc(11,13600,k);f=11}else f=7}else f=7;c[b+12>>2]=f;i=l;return}function Zp(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))baba();n=p;a:do if((((g|0)!=0?(l=c[g>>2]|0,(l|0)!=0):0)?(o=g+8|0,(c[o>>2]|0)!=0):0)?(k=d+4|0,q=Wh(c[d>>2]|0,l,c[k>>2]|0)|0,(q|0)!=0):0){h=c[g+4>>2]|0;b:do if(!h)m=11;else{if(!($c(c[g>>2]|0,h)|0)){k=c[q+8>>2]|0;if(!k){m=11;break}while(1){l=a[k+51>>0]|0;if((l&3)==2)break;k=c[k+20>>2]|0;if(!k){m=11;break b}}h=c[o>>2]|0;f=k}else{f=Zp(c[d>>2]|0,h,c[k>>2]|0)|0;k=c[o>>2]|0;if(!f)break;l=a[f+51>>0]|0;h=k}o=(e[f+46>>1]|0)+1|0;a[f+51>>0]=l&-5;k=f+8|0;Jq(h,o,c[k>>2]|0,f);if(c[f+36>>2]|0)break a;b[q+28>>1]=b[c[k>>2]>>1]|0;break a}while(0);if((m|0)==11)k=c[o>>2]|0;o=q+42|0;m=n+44|0;b[m>>1]=b[o>>1]|0;Jq(k,1,q+28|0,n);b[o>>1]=b[m>>1]|0}while(0);i=p;return 0}function aq(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;do if(e){if((c[b+12>>2]|0)>>>0<e>>>0){c[k>>2]=e;bn(b,44408,k);f=1;break}g=(c[b+8>>2]|0)+(e>>>3)|0;h=d[g>>0]|0;f=1<<(e&7);if(!(h&f)){a[g>>0]=h|f;f=0;break}else{c[k>>2]=e;bn(b,44432,k);f=1;break}}else f=1;while(0);i=l;return f|0}function bq(a,b){a=a|0;b=b|0;var d=0,e=0;d=c[a>>2]|0;do if(d){if((b|0)==1){b=d+8|0;c[a>>2]=c[b>>2];c[b>>2]=0;c[d+12>>2]=0;break}b=b+-1|0;d=bq(a,b)|0;e=c[a>>2]|0;if(e){c[e+12>>2]=d;d=e+8|0;c[a>>2]=c[d>>2];c[d>>2]=bq(a,b)|0;return e|0}}else d=0;while(0);return d|0}function cq(b,d){b=b|0;d=d|0;var e=0;if((a[b+43>>0]|0)==2){e=b+24|0;if((c[e>>2]|0)>0){d=b+32|0;b=0;do{Sc(c[(c[d>>2]|0)+(b<<2)>>2]|0);c[(c[d>>2]|0)+(b<<2)>>2]=0;b=b+1|0}while((b|0)<(c[e>>2]|0))}}else{b=c[b+4>>2]|0;nc[c[(c[b>>2]|0)+64>>2]&127](b,d)|0}return}function dq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();b=Jg(b)|0;if(b)$g(c,a,Oe(a)|0,d);i=d;return b|0}function eq(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;f=c[a>>2]|0;g=a+16|0;h=a+84|0;_g(c[g>>2]|0,(e[h>>1]|0)<<1);ig(f,c[g>>2]|0);b[h>>1]=d;h=d*80|0;f=ih(f,h,0)|0;if(f){bw(f|0,0,h|0)|0;c[g>>2]=f;if((d|0)>0){h=c[a>>2]|0;g=d<<1;while(1){g=g+-1|0;b[f+8>>1]=1;c[f+32>>2]=h;if((g|0)<=0)break;else f=f+40|0}}}else c[g>>2]=0;return}function fq(b,d,f,g,h){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;if(!(a[(c[b>>2]|0)+65>>0]|0)){d=(_(e[b+84>>1]|0,f)|0)+d|0;Tg((c[b+16>>2]|0)+(d*40|0)|0,g,-1,1,h)|0}return}function gq(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();l=m;k=c[d>>2]|0;h=k+1|0;c[d>>2]=h;if((k|0)>98){f=d+8|0;h=c[f>>2]|0;c[d>>2]=k;do Ln(d);while((c[d>>2]|0)>-1);ph(h,37160,l);c[f>>2]=h}else{b[d+(h<<4)+12>>1]=e;a[d+(h<<4)+14>>0]=f;f=d+(h<<4)+16|0;c[f+0>>2]=c[g+0>>2];c[f+4>>2]=c[g+4>>2];c[f+8>>2]=c[g+8>>2]}i=m;return}function hq(a,b,d){a=a|0;b=b|0;d=d|0;a=c[a+8>>2]|0;switch(b&255|0){case 207:case 196:case 195:case 163:{Ik(c[a>>2]|0,c[d>>2]|0,1);break}case 223:case 219:case 217:{Dk(c[a>>2]|0,c[d>>2]|0);break}case 243:case 238:case 229:case 227:case 216:case 204:case 202:{Ck(c[a>>2]|0,c[d>>2]|0);break}case 175:case 174:{Ck(c[a>>2]|0,c[d>>2]|0);break}case 236:{Dk(c[a>>2]|0,c[d+4>>2]|0);break}case 213:case 212:case 201:case 194:{zo(c[a>>2]|0,c[d>>2]|0);break}case 228:case 221:case 220:case 210:case 209:case 208:case 205:case 203:case 200:case 188:case 179:{Jk(c[a>>2]|0,c[d>>2]|0);break}case 252:case 197:{Mn(c[a>>2]|0,c[d>>2]|0);break}case 239:case 234:{Bk(c[a>>2]|0,c[d>>2]|0);break}default:{}}return}
9 function yl(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();n=q;p=b+16|0;if((d[p>>0]|0)<2?(d[b+17>>0]|0)<2:0)g=0;else{_o(b);o=b+64|0;l=c[o>>2]|0;h=c[l>>2]|0;do if(!h)h=0;else{if((h|0)==14696){Ci(l,0,0)|0;c[l>>2]=0;h=0;break}k=a[b+5>>0]|0;if(k<<24>>24==3){k=b+72|0;n=k;if(!((c[n>>2]|0)==0&(c[n+4>>2]|0)==0)){h=Yb[c[h+16>>2]&63](l,0,0)|0;if(!h)if(!(a[b+8>>0]|0))h=0;else{h=c[o>>2]|0;h=nc[c[(c[h>>2]|0)+20>>2]&127](h,d[b+11>>0]|0)|0}}else h=0;o=k;c[o>>2]=0;c[o+4>>2]=0;break}else if(k<<24>>24!=1?(a[b+4>>0]|0)==0|k<<24>>24==5:0){o=(a[b+12>>0]|0)==0;hc[c[h+4>>2]&127](l)|0;c[l>>2]=0;if(!o){h=0;break}h=c[b>>2]|0;h=Yb[c[h+28>>2]&63](h,c[b+172>>2]|0,0)|0;break}m=b+72|0;k=m;if(!((c[k>>2]|0)==0&(c[k+4>>2]|0)==0)){g=b+160|0;k=c[g>>2]|0;g=c[g+4>>2]|0;if((e|0)!=0|(k|0)==0&(g|0)==0)h=Yb[c[h+16>>2]&63](l,0,0)|0;else h=pc[c[h+12>>2]&31](l,14664,28,0,0)|0;if(!h){if(!(a[b+7>>0]|0)){h=c[o>>2]|0;h=nc[c[(c[h>>2]|0)+20>>2]&127](h,d[b+11>>0]|16)|0}else h=0;if((h|0)==0&((g|0)>0|(g|0)==0&k>>>0>0)){h=c[o>>2]|0;h=nc[c[(c[h>>2]|0)+24>>2]&127](h,n)|0;l=c[n+4>>2]|0;if((h|0)==0&((l|0)>(g|0)|((l|0)==(g|0)?(c[n>>2]|0)>>>0>k>>>0:0))){h=c[o>>2]|0;h=Yb[c[(c[h>>2]|0)+16>>2]&63](h,k,g)|0}}}}else h=0;o=m;c[o>>2]=0;c[o+4>>2]=0}while(0);k=b+56|0;ai(c[k>>2]|0);c[k>>2]=0;c[b+44>>2]=0;k=b+204|0;g=c[k>>2]|0;e=c[g>>2]|0;if(e){do{tl(e);e=c[g>>2]|0}while((e|0)!=0);g=c[k>>2]|0}k=b+24|0;$o(g,c[k>>2]|0);l=b+208|0;g=c[l>>2]|0;if(!g){if((h|0)==0&(f|0)!=0){g=c[k>>2]|0;if((c[b+32>>2]|0)>>>0>g>>>0)h=xl(b,g)|0;else h=0}}else{e=g+44|0;if(a[e>>0]|0){if(!(a[g+43>>0]|0)){o=c[g+4>>2]|0;lc[c[(c[o>>2]|0)+56>>2]&31](o,0,1,9)|0}a[e>>0]=0;a[g+47>>0]=0}}if((h|0)==0&(f|0)!=0){g=c[b+60>>2]|0;h=c[g>>2]|0;if(!h)k=0;else{k=Yb[c[h+40>>2]&63](g,22,0)|0;k=(k|0)==12?0:k}}else k=h;do if(!(a[b+4>>0]|0)){g=c[l>>2]|0;if((g|0)!=0?(ap(g,0)|0)==0:0){g=0;break}h=c[b+60>>2]|0;g=c[h>>2]|0;if(g){if(!(a[b+13>>0]|0))g=nc[c[g+32>>2]&127](h,1)|0;else g=0;h=b+17|0;if((a[h>>0]|0)!=5)a[h>>0]=1}else g=0;a[b+18>>0]=0}else g=0;while(0);a[p>>0]=1;a[b+19>>0]=0;g=(k|0)==0?g:k}i=q;return g|0}function zl(d){d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;j=c[d+4>>2]|0;g=c[d>>2]|0;a[j+19>>0]=0;k=d+8|0;do if(a[k>>0]|0){if((c[g+152>>2]|0)>1){g=j+76|0;if((c[g>>2]|0)==(d|0)?(c[g>>2]=0,f=j+22|0,b[f>>1]=e[f>>1]&65439,f=c[j+72>>2]|0,(f|0)!=0):0)do{a[f+8>>0]=1;f=c[f+12>>2]|0}while((f|0)!=0);a[k>>0]=1;break}g=j+72|0;f=c[g>>2]|0;a:do if(f)do while(1){h=f+12|0;i=c[h>>2]|0;if((c[f>>2]|0)!=(d|0)){g=h;f=i;break}c[g>>2]=i;if((c[f+4>>2]|0)==1)f=i;else{Sc(f);f=c[g>>2]|0}if(!f)break a}while((f|0)!=0);while(0);f=j+76|0;if((c[f>>2]|0)!=(d|0)){f=c[j+40>>2]|0;if((f|0)==2){i=j+22|0;b[i>>1]=e[i>>1]&65471;c[j+40>>2]=1;i=20;break}}else{c[f>>2]=0;f=j+22|0;b[f>>1]=e[f>>1]&65439;f=c[j+40>>2]|0}f=f+-1|0;c[j+40>>2]=f;if(!f){a[j+20>>0]=0;i=20}else i=20}else i=20;while(0);if(((i|0)==20?(a[k>>0]=0,(a[j+20>>0]|0)==0):0)?(l=j+12|0,m=c[l>>2]|0,(m|0)!=0):0){c[l>>2]=0;xg(c[m+68>>2]|0)}return}function Al(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=((c[a+36>>2]|0)>>>0)/5|0;if(b>>>0<2){e=0;g=c[a+32>>2]|0;i=c[2514]|0}else{e=b+-2|0;e=e-((e>>>0)%((h+1|0)>>>0)|0)|0;i=c[2514]|0;g=c[a+32>>2]|0;e=((e+1|0)==((i>>>0)/(g>>>0)|0|0)?3:2)+e|0}e=b-d-(((d-b+h+e|0)>>>0)/(h>>>0)|0)|0;f=a+32|0;a=((i>>>0)/(g>>>0)|0)+1|0;d=((i>>>0)/(g>>>0)|0)+1|0;a=((a>>>0<b>>>0&e>>>0<a>>>0)<<31>>31)+e|0;while(1){if(a>>>0<2)e=0;else{e=a+-2|0;e=e-((e>>>0)%((h+1|0)>>>0)|0)|0;e=((e+1|0)==((i>>>0)/((c[f>>2]|0)>>>0)|0|0)?3:2)+e|0}if(!((e|0)==(a|0)|(a|0)==(d|0)))break;a=a+-1|0}return a|0}function Bl(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=(d|0)==0;f=b;a:while(1){do if((f|0)!=(e|0)){if(!g?(c[f+60>>2]|0)!=(d|0):0)break;if(((a[f+73>>0]|0)+-1&255)<2){b=bp(f)|0;if(!b)break;else break a}else{cp(f);break}}while(0);f=c[f+8>>2]|0;if(!f){b=0;break}}return b|0}function Cl(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=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;v=i;i=i+48|0;if((i|0)>=(j|0))ba();k=v;m=v+32|0;s=v+28|0;l=v+24|0;o=v+20|0;q=v+16|0;t=v+12|0;r=v+8|0;if(f>>>0<2)n=0;else{n=f+-2|0;n=n-((n>>>0)%(((((c[b+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;n=((n+1|0)==(((c[2514]|0)>>>0)/((c[b+32>>2]|0)>>>0)|0|0)?3:2)+n|0}do if((n|0)!=(f|0)?((((c[2514]|0)>>>0)/((c[b+32>>2]|0)>>>0)|0)+1|0)!=(f|0):0){p=c[(c[b+12>>2]|0)+56>>2]|0;if((d[p+37>>0]|0)<<16|(d[p+36>>0]|0)<<24|(d[p+38>>0]|0)<<8|(d[p+39>>0]|0)){h=dp(b,f,m,s)|0;if(!h){p=a[m>>0]|0;if(p<<24>>24==2){if(g){h=0;break}h=ep(b,o,l,f,1)|0;if(h)break;k=c[o>>2]|0;if(!k){u=24;break}xg(c[k+68>>2]|0);u=24;break}else if(p<<24>>24!=1){h=$k(b,f,t,0)|0;if(h)break;k=(g|0)==0;m=k?2:0;k=k?e:0;l=(g|0)!=0;do{h=ep(b,r,q,k,m)|0;if(h){u=16;break}n=c[r>>2]|0;if(n)xg(c[n+68>>2]|0);n=c[q>>2]|0}while(l&n>>>0>e>>>0);if((u|0)==16){k=c[t>>2]|0;if(!k)break;xg(c[k+68>>2]|0);break}m=c[t>>2]|0;h=Vm(b,m,p,c[s>>2]|0,n,g)|0;if(m)xg(c[m+68>>2]|0);if(!h){u=24;break}else break}else{c[k>>2]=56228;c[k+4>>2]=10788;Zc(11,13600,k);h=11;break}}}else h=101}else u=24;while(0);if((u|0)==24)if(!g){l=((c[2514]|0)>>>0)/((c[b+32>>2]|0)>>>0)|0;m=l+1|0;n=b+36|0;k=f;while(1){h=k+-1|0;if((h|0)==(m|0)){k=h;continue}if(h>>>0<2)k=0;else{k=k+-3|0;k=k-((k>>>0)%(((((c[n>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(l|0)?3:2)+k|0}if((k|0)==(h|0))k=h;else break}a[b+19>>0]=1;c[b+44>>2]=h;h=0}else h=0;i=v;return h|0}function Dl(b){b=b|0;var e=0,f=0,g=0;g=b+16|0;f=a[g>>0]|0;a:do if(f<<24>>24!=6)if((f&255)>=2){do if(!(c[b+208>>2]|0)){if(!(f<<24>>24==2?1:(c[c[b+64>>2]>>2]|0)==0)){e=Go(b,0)|0;break}e=yl(b,0,0)|0;if((a[b+15>>0]|0)==0&(f&255)>2){c[b+40>>2]=4;a[g>>0]=6;break a}}else{e=fp(b,2,-1)|0;f=yl(b,d[b+19>>0]|0,0)|0;e=(e|0)==0?f:e}while(0);f=e&255;if((f|0)==10|(f|0)==13){c[b+40>>2]=e;a[g>>0]=6}}else e=0;else e=c[b+40>>2]|0;while(0);return e|0}function El(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;a:do if((d|0)!=0?(h=c[d+4>>2]|0,c[h+4>>2]=c[d>>2],h=c[h+8>>2]|0,(h|0)!=0):0){l=(f|0)==0;while(1){if(!l?(a[h+72>>0]&1)==0:0){if(((a[h+73>>0]|0)+-1&255)<2?(g=bp(h)|0,(g|0)!=0):0)break}else{f=h+56|0;Sc(c[f>>2]|0);c[f>>2]=0;a[h+73>>0]=4;c[h+68>>2]=e}f=h+76|0;if((b[f>>1]|0)>=0){k=0;while(1){i=h+(k<<2)+120|0;j=c[i>>2]|0;if(j)xg(c[j+68>>2]|0);c[i>>2]=0;if((k|0)<(b[f>>1]|0))k=k+1|0;else break}}h=c[h+8>>2]|0;if(!h)break a}El(d,g,0)|0;return g|0}while(0);return 0}function Fl(a){a=a|0;var b=0,d=0,e=0;a:do if(!(c[a+4>>2]|0)){d=c[a+20>>2]|0;if((d|0)>0){a=c[a+16>>2]|0;b=0;while(1){e=c[a+(b<<4)+4>>2]|0;if((e|0)!=0?(c[e+16>>2]|0)!=0:0){a=1;break a}b=b+1|0;if((b|0)>=(d|0)){a=0;break}}}else a=0}else a=1;while(0);return a|0}function Gl(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=c[3164]|0;if(f)jc[f&3]();l=d+20|0;j=c[l>>2]|0;i=(j|0)>0;if(i){f=c[d+16>>2]|0;h=0;do{g=c[f+(h<<4)+4>>2]|0;if(g)c[(c[g+4>>2]|0)+4>>2]=c[g>>2];h=h+1|0}while((h|0)!=(j|0))}m=d+24|0;if(!(c[m>>2]&2))f=1;else f=(a[d+145>>0]|0)!=0;if(i){k=d+16|0;f=f&1;i=j;j=0;h=0;while(1){g=c[(c[k>>2]|0)+(j<<4)+4>>2]|0;if(!g)g=i;else{h=(a[g+8>>0]|0)==2?1:h;Hg(g,e,f);g=c[l>>2]|0}j=j+1|0;if((j|0)>=(g|0))break;else i=g}}else h=0;Nn(d,68);f=c[3166]|0;if(f)jc[f&3]();f=c[m>>2]|0;if((f&2|0)!=0?(a[d+145>>0]|0)==0:0){f=c[d+4>>2]|0;if(f)do{g=f+88|0;b[g>>1]=b[g>>1]|8;f=c[f+52>>2]|0}while((f|0)!=0);Ag(d);f=c[m>>2]|0}g=d+504|0;c[g+0>>2]=0;c[g+4>>2]=0;c[g+8>>2]=0;c[g+12>>2]=0;c[m>>2]=f&-16777217;f=c[d+204>>2]|0;do if(f){if((h|0)==0?(a[d+63>>0]|0)!=0:0)break;_b[f&31](c[d+200>>2]|0)}while(0);return}function Hl(b){b=b|0;var d=0,e=0;e=b+488|0;d=c[e>>2]|0;if(d)do{c[e>>2]=c[d+24>>2];ig(b,d);d=c[e>>2]|0}while((d|0)!=0);c[b+496>>2]=0;c[b+500>>2]=0;a[b+70>>0]=0;return}function Il(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=c[b+4>>2]|0;c[h+4>>2]=c[b>>2];e=c[h+8>>2]|0;if(e)do{d=e;e=c[e+8>>2]|0;if((c[d>>2]|0)==(b|0))gp(d)}while((e|0)!=0);Hg(b,0,0);a:do if(a[b+9>>0]|0){e=h+64|0;d=c[e>>2]|0;c[e>>2]=d+-1;if((d|0)<2){d=c[3664]|0;if((d|0)==(h|0)){c[3664]=c[h+68>>2];f=12;break}else e=d;do{if(!e){f=12;break a}d=e+68|0;e=c[d>>2]|0}while((e|0)!=(h|0));c[d>>2]=c[h+68>>2];f=12}}else f=12;while(0);if((f|0)==12){hp(c[h>>2]|0);d=c[h+52>>2]|0;e=h+48|0;if((d|0)!=0?(g=c[e>>2]|0,(g|0)!=0):0)_b[d&31](g);d=c[e>>2]|0;if(d)Sc(d);d=h+80|0;e=c[d>>2]|0;if(e){e=e+-4|0;c[d>>2]=e;Xk(e);c[d>>2]=0}Sc(h)}e=c[b+28>>2]|0;d=b+24|0;if(e)c[e+24>>2]=c[d>>2];d=c[d>>2]|0;if(d)c[d+28>>2]=e;Sc(b);return}function Jl(a,b){a=a|0;b=b|0;var d=0;b=c[b+32>>2]|0;if((b|0)!=0?(d=(c[b>>2]|0)+-1|0,c[b>>2]=d,(d|0)==0):0){_b[c[b+4>>2]&31](c[b+8>>2]|0);ig(a,b)}return}function Kl(a){a=a|0;var b=0,d=0;d=a+8|0;b=c[d>>2]|0;c[d>>2]=0;d=a+12|0;Sc(c[d>>2]|0);c[d>>2]=0;c[a>>2]=0;if(b)do{d=b;b=c[b>>2]|0;Sc(d)}while((b|0)!=0);c[a+4>>2]=0;return}function Ll(a){a=a|0;var b=0,d=0,e=0,f=0;if(a){e=c[a>>2]|0;hg(e,a);f=c[a+48>>2]|0;d=a+52|0;b=c[d>>2]|0;if(!f)c[e+4>>2]=b;else{c[f+52>>2]=b;b=c[d>>2]|0}if(b)c[b+48>>2]=f;c[a+40>>2]=-1241070648;c[a>>2]=0;ig(e,a)}return}function Ml(d){d=d|0;var e=0;a[d+65>>0]=0;c[d+52>>2]=7;d=c[d+236>>2]|0;do if(d){e=d+8|0;if(!(b[e>>1]&9312)){b[e>>1]=1;break}else{rg(d);break}}while(0);return}function Nl(d){d=d|0;var f=0,g=0,h=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,D=0,E=0,F=0;F=i;i=i+32|0;if((i|0)>=(j|0))baba();o=q;p=d+8|0;m=b[p>>1]|0;if(!(bh(d,32)|0)){l=d+16|0;n=c[l>>2]|0;if(!(m&4)){h[k>>3]=+h[d>>3];c[o>>2]=c[k>>2];c[o+4>>2]=c[k+4>>2];Yc(32,n,20272,o)|0}else{s=d;r=c[s+4>>2]|0;m=o;c[m>>2]=c[s>>2];c[m+4>>2]=r;Yc(32,n,19920,o)|0}m=c[l>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;l=l-m&1073741823}c[d+12>>2]=l;a[d+10>>0]=1;l=e[p>>1]|514;b[p>>1]=g<<24>>24==0?l:l&65523;Ul(d,f&255)|0;l=0}else l=7;i=q;return l|0}function _l(a){a=a|0;var b=0,c=0;b=e[a+8>>1]|0;c=b&12;if(!c)if(!(b&18))b=0;else b=jp(a)|0;else b=c&65535;return b|0}function $l(a){a=a|0;var d=0.0,f=0,g=0,i=0,j=0;d=+h[a>>3];if(!(d<=-9223372036854775808.0)&!(d>=9223372036854775808.0)?(f=~~d>>>0,g=+N(d)>=1.0?(d>0.0?~~+$(+M(d/4294967296.0),4294967295.0)>>>0:~~+Z((d-+(~~d>>>0))/4294967296.0)>>>0):0,i=fw(f|0,g|0,1,-2147483648)|0,j=C,!(d!=+(f>>>0)+4294967296.0*+(g|0)|(j>>>0<0|(j|0)==0&i>>>0<2))):0){i=a;c[i>>2]=f;c[i+4>>2]=g;f=a+8|0;b[f>>1]=(e[f>>1]|0)&48640|4}return}function am(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;f=a+204|0;e=c[f>>2]|0;a:do if(e){h=(b|0)<0;do{while(1){if(!h){if((c[e>>2]|0)!=(b|0))break;g=c[e+4>>2]|0;if((g|0)<=31?(1<<g&d|0)!=0:0)break}g=c[e+12>>2]|0;if(g)_b[g&31](c[e+8>>2]|0);c[f>>2]=c[e+16>>2];ig(c[a>>2]|0,e);e=c[f>>2]|0;if(!e)break a}f=e+16|0;e=c[f>>2]|0}while((e|0)!=0)}while(0);return}function bm(a,b,c){a=a|0;b=b|0;c=c|0;do if(b<<24>>24>66){b=e[a+8>>1]|0;if(!(b&4)){if(b&8){$l(a);break}if(b&2)nh(a,1)}}else if(b<<24>>24==66?(b=e[a+8>>1]|0,!((b&2|0)!=0|(b&12|0)==0)):0)Zl(a,c,1)|0;while(0);return}function cm(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,i=0,j=0;j=a+8|0;g=b[j>>1]|0;i=g&65535;do if(!(i&1)){d=d&255;if((d|0)==67){kp(a);break}else if((d|0)==65){if(i&16){b[j>>1]=i&65040;break}if(!((i&2|0)!=0|(i&12|0)==0)){Zl(a,f,1)|0;g=b[j>>1]|0}b[j>>1]=g&48640|16;break}else if((d|0)==68){d=Rg(a)|0;g=a;c[g>>2]=d;c[g+4>>2]=C;b[j>>1]=(e[j>>1]|0)&48640|4;break}else if((d|0)==69){h[a>>3]=+Qg(a);b[j>>1]=(e[j>>1]|0)&48640|8;break}else{d=i>>>3&2|i;g=d&65535;b[j>>1]=g;if(!((d&2|0)!=0|(i&12|0)==0)){Zl(a,f,1)|0;g=b[j>>1]|0}b[j>>1]=g&49123;break}}while(0);return}function dm(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0.0,i=0,j=0.0,k=0,l=0,m=0;l=b[a+8>>1]|0;k=l&65535;i=b[d+8>>1]|0;m=i&65535;f=(i|l)&65535;do if(!(f&1)){if(!(f&12)){if(f&2){if(!(k&2)){f=1;break}if(!(m&2)){f=-1;break}if(e){f=lp(a,d,e,0)|0;break}}f=mp(a,d)|0;break}if((l&4&i)<<16>>16){l=a;k=c[l>>2]|0;l=c[l+4>>2]|0;i=d;f=c[i>>2]|0;i=c[i+4>>2]|0;if((l|0)<(i|0)|(l|0)==(i|0)&k>>>0<f>>>0){f=-1;break}f=((l|0)>(i|0)|(l|0)==(i|0)&k>>>0>f>>>0)&1;break}if(!(k&8)){if(!(k&4)){f=1;break}f=a;j=+((c[f>>2]|0)>>>0)+4294967296.0*+(c[f+4>>2]|0)}else j=+h[a>>3];if(!(m&8)){if(!(m&4)){f=-1;break}f=d;g=+((c[f>>2]|0)>>>0)+4294967296.0*+(c[f+4>>2]|0)}else g=+h[d>>3];if(j<g)f=-1;else f=j>g&1}else f=(m&1)-(k&1)|0;while(0);return f|0}function em(b){b=b|0;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;e=g+8|0;d=b+48|0;d=ym(c[b>>2]|0,0,c[d>>2]|0,c[d+4>>2]|0,0,e)|0;do if(!d)if(!(c[e>>2]|0)){a[b+26>>0]=0;c[b+60>>2]=0;d=0;break}else{c[f>>2]=67421;c[f+4>>2]=10788;Zc(11,13600,f);d=11;break}while(0);i=g;return d|0}function fm(b){b=b|0;var d=0,e=0,f=0;e=c[b>>2]|0;f=e+73|0;d=a[f>>0]|0;do if((d&255)>2){d=Gn(e)|0;if(!d){d=a[f>>0]|0;f=5;break}else{c[b+60>>2]=0;f=6;break}}else f=5;while(0);if((f|0)==5){c[b+60>>2]=0;if(d<<24>>24==1)d=0;else{d=0;f=6}}if((f|0)==6)a[b+25>>0]=1;return d|0}function gm(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0;h=f+24|0;if(!(b[f+44>>1]|0)){j=b[f+76>>1]|0;i=c[f+(j<<2)+120>>2]|0;j=e[f+(j<<1)+78>>1]<<1;k=c[i+64>>2]|0;np(i,(c[i+56>>2]|0)+((d[k+j>>0]<<8|d[k+(j|1)>>0])&e[i+20>>1])|0,h);f=f+72|0;a[f>>0]=d[f>>0]|2}i=h;f=c[i+4>>2]|0;h=g;c[h>>2]=c[i>>2];c[h+4>>2]=f;return}function hm(f,g){f=f|0;g=g|0;var h=0,i=0,j=0;if(!(b[f+44>>1]|0)){i=b[f+76>>1]|0;h=c[f+(i<<2)+120>>2]|0;i=e[f+(i<<1)+78>>1]<<1;j=c[h+64>>2]|0;np(h,(c[h+56>>2]|0)+((d[j+i>>0]<<8|d[j+(i|1)>>0])&e[h+20>>1])|0,f+24|0);h=f+72|0;a[h>>0]=d[h>>0]|2}c[g>>2]=c[f+36>>2];return}function im(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;e=d[a>>0]|0;g=d[a+1>>0]|0;do if(g&128){f=d[a+2>>0]|0;if(!(f&128)){c[b>>2]=(f|e<<14)&2080895|g<<7&16256;e=3;break}else{e=op(a,h)|0;g=h;f=c[g>>2]|0;c[b>>2]=((f|0)==(f|0)?0==(c[g+4>>2]|0):0)?f:-1;break}}else{c[b>>2]=e<<7&16256|g;e=2}while(0);i=k;return e|0}function jm(d,f,g,h,i){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0;j=(h|0)==0;do if((g+f|0)>>>0>(e[d+40>>1]|0)>>>0){l=i+8|0;b[l>>1]=1;h=bh(i,g+2|0)|0;if(!h){k=i+16|0;h=c[k>>2]|0;if(j)h=zh(d,f,g,h)|0;else h=Hm(d,f,g,h,0)|0;if(!h){a[(c[k>>2]|0)+g>>0]=0;a[(c[k>>2]|0)+(g+1)>>0]=0;b[l>>1]=528;c[i+12>>2]=g;h=0;break}if((b[l>>1]&9312)==0?(c[i+24>>2]|0)==0:0)break;Mg(i)}}else{c[i+16>>2]=(c[d+32>>2]|0)+f;b[i+8>>1]=4112;c[i+12>>2]=g;h=0}while(0);return h|0}function km(e,f,g){e=e|0;f=f|0;g=g|0;var h=0;switch(f|0){case 3:{f=d[e+1>>0]<<8|a[e>>0]<<16|d[e+2>>0];e=g;c[e>>2]=f;c[e+4>>2]=((f|0)<0)<<31>>31;b[g+8>>1]=4;e=3;break}case 9:case 8:{e=g;c[e>>2]=f+-8;c[e+4>>2]=0;b[g+8>>1]=4;e=0;break}case 5:{h=a[e>>0]<<8|d[e+1>>0];f=g;c[f>>2]=d[e+3>>0]<<16|d[e+2>>0]<<24|d[e+4>>0]<<8|d[e+5>>0];c[f+4>>2]=h;b[g+8>>1]=4;e=6;break}case 7:case 6:{pp(e,f,g);e=8;break}case 2:{f=a[e>>0]<<8|d[e+1>>0];e=g;c[e>>2]=f;c[e+4>>2]=((f|0)<0)<<31>>31;b[g+8>>1]=4;e=2;break}case 4:{f=d[e+1>>0]<<16|a[e>>0]<<24|d[e+2>>0]<<8|d[e+3>>0];e=g;c[e>>2]=f;c[e+4>>2]=((f|0)<0)<<31>>31;b[g+8>>1]=4;e=4;break}case 0:case 11:case 10:{b[g+8>>1]=1;e=0;break}case 1:{f=a[e>>0]|0;e=g;c[e>>2]=f;c[e+4>>2]=((f|0)<0)<<31>>31;b[g+8>>1]=4;e=1;break}default:{c[g+16>>2]=e;e=(f+-12|0)>>>1;c[g+12>>2]=e;b[g+8>>1]=b[34328+((f&1)<<1)>>1]|0}}return e|0}function lm(b,c,d){b=b|0;c=c|0;d=d|0;do if(!(d>>>0<0|(d|0)==0&c>>>0<128))if(d>>>0<0|(d|0)==0&c>>>0<16384){d=iw(c|0,d|0,7)|0;a[b>>0]=d|128;a[b+1>>0]=c&127;c=2;break}else{c=qp(b,c,d)|0;break}else{a[b>>0]=c&127;c=1}while(0);return c|0}function mm(e){e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))baba();m=n;l=n+8|0;g=e+76|0;k=b[g>>1]|0;h=k<<16>>16;do if(k<<16>>16<=18){k=e+72|0;f=rp(c[e+4>>2]|0,f,l,(a[k>>0]&1)<<1^2)|0;if(!f){f=c[l>>2]|0;l=h+1|0;c[e+(l<<2)+120>>2]=f;b[e+(l<<1)+78>>1]=0;b[g>>1]=(b[g>>1]|0)+1<<16>>16;b[e+44>>1]=0;a[k>>0]=d[k>>0]&249;if((b[f+18>>1]|0)!=0?(a[f+2>>0]|0)==(a[(c[e+(h<<2)+120>>2]|0)+2>>0]|0):0){f=0;break}c[m>>2]=57499;c[m+4>>2]=10788;Zc(11,13600,m);f=11}}else{c[m>>2]=57487;c[m+4>>2]=10788;Zc(11,13600,m);f=11}while(0);i=n;return f|0}function om(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;j=a+328|0;a:do if(!(c[j>>2]|0))a=0;else{g=a+304|0;h=d+1|0;i=0;while(1){if((i|0)>=(c[g>>2]|0)){a=0;break a}f=c[(c[j>>2]|0)+(i<<2)>>2]|0;a=c[c[f+4>>2]>>2]|0;e=c[f+8>>2]|0;if((e|0)!=0?(c[a>>2]|0)>1:0){if(!b){a=c[a+80>>2]|0;c[f+20>>2]=h}else if((b|0)==2)a=c[a+88>>2]|0;else a=c[a+84>>2]|0;if((a|0)!=0?(c[f+20>>2]|0)>(d|0):0){a=nc[a&127](e,d)|0;if(!a){i=i+1|0;continue}else break a}}i=i+1|0}}while(0);return a|0}function pm(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();f=h;e=c[b>>2]|0;if(!d){d=b+144|0;k=c[d+4>>2]|0;if((k|0)>0|(k|0)==0&(c[d>>2]|0)>>>0>0)g=4;else e=0}else{d=e+504|0;k=e+512|0;d=fw(c[k>>2]|0,c[k+4>>2]|0,c[d>>2]|0,c[d+4>>2]|0)|0;k=C;if((k|0)>0|(k|0)==0&d>>>0>0)g=4;else e=0}if((g|0)==4){c[b+80>>2]=787;a[b+86>>0]=2;$g(b+44|0,e,34376,f);e=1}i=h;return e|0}function qm(e,f,g){e=e|0;f=f|0;g=g|0;var h=0;if((e|0)!=0?(a[e+8>>0]|0)==2:0){h=c[e+4>>2]|0;c[h+4>>2]=c[e>>2];f=fp(c[h>>2]|0,f,g)|0;if(!f){if((g|0)<0?(b[h+22>>1]&8)!=0:0)c[h+44>>2]=0;f=yg(h)|0;e=c[(c[h+12>>2]|0)+56>>2]|0;c[h+44>>2]=d[e+29>>0]<<16|d[e+28>>0]<<24|d[e+30>>0]<<8|d[e+31>>0]}}else f=0;return f|0}function rm(a,b){a=a|0;b=b|0;a=a+16|0;ml(c[(c[a>>2]|0)+(b<<4)+12>>2]|0);if((b|0)!=1)ml(c[(c[a>>2]|0)+28>>2]|0);return}function sm(a,b,e){a=a|0;b=b|0;e=e|0;var f=0;f=c[a+4>>2]|0;c[f+4>>2]=c[a>>2];if((b|0)==15)f=(c[a+20>>2]|0)+(c[(c[f>>2]|0)+100>>2]|0)|0;else{b=b<<2;f=c[(c[f+12>>2]|0)+56>>2]|0;f=(d[f+(b+37)>>0]|0)<<16|(d[f+(b+36)>>0]|0)<<24|(d[f+(b+38)>>0]|0)<<8|(d[f+(b+39)>>0]|0)}c[e>>2]=f;return}function tm(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0;k=(c[d+28>>2]|0)-e|0;i=c[d+8>>2]|0;n=(f<<3)+88|0;m=(h|0)!=0;l=d+56|0;j=c[(c[l>>2]|0)+(e<<2)>>2]|0;if(j){xm(d,j);c[(c[l>>2]|0)+(e<<2)>>2]=0}if(!(bh(i+(k*40|0)|0,(m?200:0)+n|0)|0)){k=i+(k*40|0)+16|0;h=c[k>>2]|0;c[(c[l>>2]|0)+(e<<2)>>2]=h;i=h+0|0;j=i+88|0;do{c[i>>2]=0;i=i+4|0}while((i|0)<(j|0));a[h+24>>0]=g;b[h+20>>1]=f;c[h+80>>2]=h+84+(f<<2);if(m){i=(c[k>>2]|0)+n|0;c[h>>2]=i;i=i+0|0;j=i+76|0;do{c[i>>2]=0;i=i+4|0}while((i|0)<(j|0))}}else h=0;return h|0}function um(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0;k=c[d+4>>2]|0;c[k+4>>2]=c[d>>2];if(f)if(!(b[k+22>>1]&1)){j=k+80|0;if(!(c[j>>2]|0)){i=Co(c[k+32>>2]|0)|0;c[j>>2]=i;if(!i)i=7;else{l=i;i=l;a[i>>0]=0;a[i+1>>0]=0;a[i+2>>0]=0;a[i+3>>0]=0;l=l+4|0;a[l>>0]=0;a[l+1>>0]=0;a[l+2>>0]=0;a[l+3>>0]=0;c[j>>2]=(c[j>>2]|0)+4;l=6}}else l=6}else i=8;else l=6;if((l|0)==6){if((e|0)==1)e=(c[k+44>>2]|0)!=0&1;c[h+60>>2]=e;b[h+76>>1]=-1;c[h+16>>2]=g;c[h>>2]=d;c[h+4>>2]=k;a[h+72>>0]=f;i=k+8|0;e=c[i>>2]|0;c[h+8>>2]=e;if(e)c[e+12>>2]=h;c[i>>2]=h;a[h+73>>0]=0;i=0}return i|0}function vm(f,g,h,k,l,m){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var 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;P=i;i=i+128|0;if((i|0)>=(j|0))ba();A=P;H=P+12|0;E=P+8|0;M=P+16|0;K=(g|0)==0;if(!K){o=(a[g>>0]|0)==0;if(Wv(g,14640)|0)if(o)G=4;else{o=0;G=5}else L=1}else G=4;if((G|0)==4)if((a[h+64>>0]|0)==2){L=1;o=1}else{o=1;G=5}if((G|0)==5)L=(m&128|0)!=0;J=L?l|2:l;if((m&256|0)!=0&(L|o))m=m&-769|512;O=mg(48,0)|0;a:do if(O){u=O+0|0;t=u+48|0;do{a[u>>0]=0;u=u+1|0}while((u|0)<(t|0));c[O>>2]=h;c[O+32>>2]=O;c[O+36>>2]=1;b:do if(!o?!(L&(m&64|0)==0|(m&131072|0)==0):0){if(K)o=1;else{o=g;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;o=(o-g&1073741823)+1|0}l=(c[f+8>>2]|0)+1|0;r=(l|0)>(o|0)?l:o;r=mg(r,((r|0)<0)<<31>>31)|0;q=O+9|0;a[q>>0]=1;if(!r){Sc(O);n=7;break a}if(!L){a[r>>0]=0;o=lc[c[f+36>>2]&31](f,g,l,r)|0;if(o){Sc(r);Sc(O);n=o;break a}}else gw(r|0,g|0,o|0)|0;o=c[3664]|0;c:do if(o){while(1){l=c[o>>2]|0;if((Wv(r,c[l+168>>2]|0)|0)==0?(c[l>>2]|0)==(f|0):0)break;o=c[o+68>>2]|0;if(!o)break c}l=c[h+20>>2]|0;d:do if((l|0)>0){p=c[h+16>>2]|0;while(1){l=l+-1|0;D=c[p+(l<<4)+4>>2]|0;if((D|0)!=0?(c[D+4>>2]|0)==(o|0):0)break;if((l|0)<=0)break d}Sc(r);Sc(O);n=19;break a}while(0);c[O+4>>2]=o;D=o+64|0;c[D>>2]=(c[D>>2]|0)+1;Sc(r);if(!o){G=32;break b}if(!(a[q>>0]|0))break b;else{G=105;break b}}while(0);Sc(r);G=32}else G=32;while(0);e:do if((G|0)==32){I=mg(84,0)|0;if(I){u=I+0|0;t=u+84|0;do{a[u>>0]=0;u=u+1|0}while((u|0)<(t|0));C=J&1;D=(C|0)==0;c[H>>2]=1024;B=f+4|0;o=c[B>>2]|0;if((o|0)>40)l=o+7&-8;else l=40;c[I>>2]=0;do if(!(J&2))if(!K)if(a[g>>0]|0){v=f+8|0;q=(c[v>>2]|0)+1|0;x=q<<1;x=mg(x,((x|0)<0)<<31>>31)|0;if(!x)n=7;else{a[x>>0]=0;o=lc[c[f+36>>2]&31](f,g,q,x)|0;q=x;while(1)if(!(a[q>>0]|0))break;else q=q+1|0;u=q-x&1073741823;r=g;while(1)if(!(a[r>>0]|0))break;else r=r+1|0;t=(r-g&1073741823)+1|0;r=a[g+t>>0]|0;t=g+t|0;if(!(r<<24>>24))q=t;else{q=t;do{if(!(r<<24>>24))r=q;else{r=q;do r=r+1|0;while((a[r>>0]|0)!=0)}r=r-q&1073741823;p=q+(r+1)|0;s=p;while(1)if(!(a[s>>0]|0))break;else s=s+1|0;q=q+(r+2+(s-p&1073741823))|0;r=a[q>>0]|0}while(r<<24>>24!=0)}if(!o){if((u+8|0)<=(c[v>>2]|0)){w=1;A=0;v=u;u=q+1-t|0;r=x;G=58;break}c[A>>2]=46171;c[A+4>>2]=10788;Zc(14,14848,A);o=14}Sc(x);G=89}}else{w=1;A=0;v=0;u=0;r=0;t=0;G=58}else{g=0;w=0;A=0;v=0;u=0;r=0;t=0;G=58}else if(!K)if(a[g>>0]|0){r=gh(0,g)|0;if(!r)n=7;else{o=r;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;g=0;w=0;A=1;v=o-r&1073741823;u=0;t=0;G=58}}else{w=1;A=1;v=0;u=0;r=0;t=0;G=58}else{g=0;w=0;A=1;v=0;u=0;r=0;t=0;G=58}while(0);do if((G|0)==58){q=(l<<1)+17+(v*3|0)+u+((c[B>>2]|0)+271&-8)|0;z=mg(q,0)|0;if(!z){if(!r){n=7;break}Sc(r);n=7;break}bw(z|0,0,q|0)|0;x=z+204|0;c[x>>2]=z+216;y=z+60|0;c[y>>2]=z+264;s=(c[B>>2]|0)+271&-8;c[z+68>>2]=z+s;s=s+l|0;c[z+64>>2]=z+s;s=s+l|0;q=z+s|0;o=z+168|0;c[o>>2]=q;if(r){p=v+1|0;l=z+172|0;c[l>>2]=z+(u+p+s);gw(q|0,r|0,v|0)|0;if(u)gw((c[o>>2]|0)+p|0,t|0,u|0)|0;gw(c[l>>2]|0,r|0,v|0)|0;u=(c[l>>2]|0)+v+0|0;s=14928;t=u+10|0;do{a[u>>0]=a[s>>0]|0;u=u+1|0;s=s+1|0}while((u|0)<(t|0));l=(c[l>>2]|0)+(v+9)|0;B=z+212|0;c[B>>2]=l;gw(l|0,r|0,v|0)|0;B=(c[B>>2]|0)+v|0;a[B+0>>0]=a[14944]|0;a[B+1>>0]=a[14945]|0;a[B+2>>0]=a[14946]|0;a[B+3>>0]=a[14947]|0;a[B+4>>0]=a[14948]|0;Sc(r)}c[z>>2]=f;c[z+144>>2]=m;do if(w?(a[g>>0]|0)!=0:0){c[E>>2]=0;o=pc[c[f+24>>2]&31](f,c[o>>2]|0,c[y>>2]|0,m&556927,E)|0;p=c[E>>2]&1;if(!o){o=c[y>>2]|0;o=hc[c[(c[o>>2]|0)+48>>2]&127](o)|0;do if((p|0)==0?(sp(z),F=c[z+148>>2]|0,F>>>0>1024):0)if(F>>>0>8192){c[H>>2]=8192;break}else{c[H>>2]=F;break}while(0);a[z+13>>0]=bg(g,14952,0)|0;if((o&8192|0)==0?(bg(g,14960,0)|0)==0:0){s=0;G=77;break}o=m|1;G=76}}else{o=m;G=76}while(0);if((G|0)==76){a[z+16>>0]=1;a[z+17>>0]=4;a[z+13>>0]=1;p=o&1;s=1;G=77}if((G|0)==77){o=Yk(z,H,-1)|0;if(!o){l=c[H>>2]|0;r=(A|0)==0;m=A^1;q=r?75:0;o=c[x>>2]|0;u=o+0|0;t=u+48|0;do{c[u>>2]=0;u=u+4|0}while((u|0)<(t|0));c[o+20>>2]=1;c[o+24>>2]=80;a[o+28>>0]=m;a[o+29>>0]=2;c[o+32>>2]=q;c[o+36>>2]=z;c[o+16>>2]=100;o=Do(o,l)|0;if(!o){a[z+6>>0]=C^1;c[z+156>>2]=1073741823;a[z+12>>0]=s;a[z+4>>0]=s;a[z+18>>0]=s;a[z+15>>0]=A;a[z+14>>0]=p;a[z+7>>0]=s;if(!(s<<24>>24)){a[z+8>>0]=1;a[z+11>>0]=2;a[z+10>>0]=34;a[z+9>>0]=2}b[z+140>>1]=80;E=z+160|0;c[E>>2]=-1;c[E+4>>2]=-1;sp(z);do if(D){if(r)break;a[z+5>>0]=4}else a[z+5>>0]=2;while(0);c[z+196>>2]=21;c[I>>2]=z;G=90;break}}}l=c[y>>2]|0;m=c[l>>2]|0;if(m){hc[c[m+4>>2]&127](l)|0;c[l>>2]=0}Xk(c[z+200>>2]|0);Sc(z);G=89}while(0);if((G|0)==89)if(!o)G=90;else n=o;do if((G|0)==90){o=c[I>>2]|0;E=h+40|0;t=c[E+4>>2]|0;u=o+128|0;c[u>>2]=c[E>>2];c[u+4>>2]=t;u=M+0|0;t=u+100|0;do{a[u>>0]=0;u=u+1|0}while((u|0)<(t|0));o=c[o+60>>2]|0;l=c[o>>2]|0;if((l|0)!=0?(n=pc[c[l+8>>2]&31](o,M,100,0,0)|0,!((n|0)==0|(n|0)==522)):0)break;a[I+16>>0]=J;c[I+4>>2]=h;o=c[I>>2]|0;l=o+176|0;c[l>>2]=76;c[o+180>>2]=I;m=c[o+60>>2]|0;n=c[m>>2]|0;if(!n)l=o;else{Yb[c[n+40>>2]&63](m,15,l)|0;l=c[I>>2]|0}c[O+4>>2]=I;c[I+8>>2]=0;c[I+12>>2]=0;if(a[l+14>>0]|0){E=I+22|0;b[E>>1]=e[E>>1]|1}E=d[M+17>>0]<<16|d[M+16>>0]<<8;m=I+32|0;c[m>>2]=E;if((E+-512|0)>>>0<=65024?(E+16777215&E|0)==0:0){o=a[M+20>>0]|0;E=I+22|0;b[E>>1]=e[E>>1]|2;a[I+17>>0]=(d[M+53>>0]<<16|d[M+52>>0]<<24|d[M+54>>0]<<8|d[M+55>>0]|0)!=0&1;a[I+18>>0]=(d[M+65>>0]<<16|d[M+64>>0]<<24|d[M+66>>0]<<8|d[M+67>>0]|0)!=0&1}else{c[m>>2]=0;if(K|L)o=0;else{a[I+17>>0]=0;a[I+18>>0]=0;o=0}}o=o&255;n=Yk(l,m,o)|0;if(!n){c[I+36>>2]=(c[m>>2]|0)-o;if(!(a[O+9>>0]|0))break e;c[I+64>>2]=1;c[I+68>>2]=c[3664];c[3664]=I;G=105;break e}}while(0);if(I){m=c[I>>2]|0;if(!m)m=I;else{hp(m);m=I}}else m=0}else{m=0;n=7}Sc(m);Sc(O);c[k>>2]=0;break a}while(0);f:do if((G|0)==105?(N=c[h+20>>2]|0,(N|0)>0):0){m=c[h+16>>2]|0;l=0;while(1){n=c[m+(l<<4)+4>>2]|0;if((n|0)!=0?(a[n+9>>0]|0)!=0:0){l=n;break}l=l+1|0;if((l|0)>=(N|0))break f}while(1){n=l+28|0;m=c[n>>2]|0;if(!m){m=l;break}else l=m}o=c[O+4>>2]|0;if(o>>>0<(c[m+4>>2]|0)>>>0){c[O+24>>2]=m;c[O+28>>2]=0;c[n>>2]=O;break}while(1){n=m+24|0;l=c[n>>2]|0;if(!l){G=113;break}if((c[l+4>>2]|0)>>>0<o>>>0)m=l;else{G=115;break}}if((G|0)==113){c[O+24>>2]=0;c[O+28>>2]=m}else if((G|0)==115){c[O+24>>2]=l;c[O+28>>2]=m;c[l+28>>2]=O}c[n>>2]=O}while(0);c[k>>2]=O;n=c[O+4>>2]|0;c[n+4>>2]=c[O>>2];if(!(c[n+48>>2]|0)){n=c[(c[n>>2]|0)+204>>2]|0;c[n+16>>2]=2e3;fc[c[8744+124>>2]&15](c[n+40>>2]|0,2e3);n=0}else n=0}else n=7;while(0);i=P;return n|0}function wm(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=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;y=i;i=i+48|0;if((i|0)>=(j|0))ba();r=y;v=y+28|0;w=y+24|0;u=y+20|0;n=y+16|0;p=y+12|0;q=y+32|0;s=y+8|0;h=c[b>>2]|0;t=c[b+4>>2]|0;g=t+4|0;c[g>>2]=h;a:do if(!(a[t+17>>0]|0)){g=ep(t,v,w,1,0)|0;c[u>>2]=g;if(!g){h=c[v>>2]|0;x=39}}else{o=t+8|0;k=c[o>>2]|0;if(k)do{m=k+72|0;a[m>>0]=d[m>>0]&251;k=c[k+8>>2]|0}while((k|0)!=0);c[g>>2]=h;m=c[(c[t+12>>2]|0)+56>>2]|0;m=d[m+53>>0]<<16|d[m+52>>0]<<24|d[m+54>>0]<<8|d[m+55>>0];c[w>>2]=m;h=((c[2514]|0)>>>0)/((c[t+32>>2]|0)>>>0)|0;g=t+36|0;while(1){l=m+1|0;if(l>>>0<2)k=0;else{k=m+-1|0;k=k-((k>>>0)%(((((c[g>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(h|0)?3:2)+k|0}if((l|0)==(k|0)|(m|0)==(h|0))m=l;else break}c[w>>2]=l;g=ep(t,p,n,l,1)|0;c[u>>2]=g;if(!g){m=c[n>>2]|0;do if((m|0)==(l|0)){h=c[p>>2]|0;c[v>>2]=h}else{a[q>>0]=0;c[s>>2]=0;k=c[o>>2]|0;b:do if(!k)g=0;else{while(1){if(k)break;k=c[2]|0;if(!k){g=0;break b}}g=Bl(k,0,0)|0}while(0);c[u>>2]=g;k=c[p>>2]|0;if(k)xg(c[k+68>>2]|0);if(g)break a;g=$k(t,l,v,0)|0;c[u>>2]=g;if(g)break a;g=dp(t,l,q,s)|0;c[u>>2]=g;k=a[q>>0]|0;if((k+-1&255)>=2){h=c[v>>2]|0;if(!g){g=Vm(t,h,k,c[s>>2]|0,m,0)|0;c[u>>2]=g;if(h)xg(c[h+68>>2]|0);if(g)break a;g=$k(t,l,v,0)|0;c[u>>2]=g;if(g)break a;h=c[v>>2]|0;k=h+68|0;g=Cg(c[k>>2]|0)|0;c[u>>2]=g;if(!g)break;if(!h)break a;xg(c[k>>2]|0);break a}}else{c[r>>2]=60876;c[r+4>>2]=10788;Zc(11,13600,r);c[u>>2]=11;g=11;h=c[v>>2]|0}if(!h)break a;xg(c[h+68>>2]|0);break a}while(0);vp(t,l,1,0,u);g=c[u>>2]|0;if(g){if(!h)break;xg(c[h+68>>2]|0);break}g=zg(b,4,l)|0;c[u>>2]=g;if(g){if(h)xg(c[h+68>>2]|0)}else x=39}}while(0);if((x|0)==39){ll(h,(f&1|0)==0?10:13);g=c[(c[v>>2]|0)+68>>2]|0;if(g)xg(g);c[e>>2]=c[w>>2];g=0}i=y;return g|0}function xm(a,b){a=a|0;b=b|0;var d=0,e=0;do if(b){a=c[a>>2]|0;d=b+56|0;e=c[d>>2]|0;if(e){Wm(a,e);Sc(c[e+40>>2]|0);ig(a,e);c[d>>2]=0}a=c[b+4>>2]|0;if(a){Il(a);break}a=c[b>>2]|0;if(a){gp(a);break}a=c[b+32>>2]|0;if(a){e=c[a>>2]|0;d=c[e>>2]|0;e=e+4|0;c[e>>2]=(c[e>>2]|0)+-1;hc[c[d+28>>2]&127](a)|0}}while(0);return}function ym(f,g,h,k,l,m){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var 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;N=i;i=i+16|0;if((i|0)>=(j|0))ba();L=N+8|0;K=N;q=f+73|0;do if(((a[q>>0]|0)==1?(p=d[f+72>>0]|0,(p&2|0)!=0):0)?(a[(c[f+120>>2]|0)+2>>0]|0)!=0:0){n=f+24|0;o=c[n>>2]|0;n=c[n+4>>2]|0;if((o|0)==(h|0)&(n|0)==(k|0)){c[m>>2]=0;n=0;break}if((p&8|0)!=0&((n|0)<(k|0)|(n|0)==(k|0)&o>>>0<h>>>0)){c[m>>2]=-1;n=0}else M=8}else M=8;while(0);do if((M|0)==8){if(!g)G=0;else{o=c[g>>2]|0;if(((e[o+8>>1]|0)+(e[o+6>>1]|0)|0)<14){n=e[(c[g+8>>2]|0)+8>>1]|0;H=(a[c[o+16>>2]>>0]|0)==0;c[g+12>>2]=H?-1:1;c[g+16>>2]=H?1:-1;if(!(n&4))if((n&25|0)==0?(c[o+20>>2]|0)==0:0)o=39;else M=13;else o=38}else M=13;if((M|0)==13)o=40;a[g+7>>0]=0;G=o}n=mm(f)|0;if(!n){if(!(a[q>>0]|0)){c[m>>2]=-1;n=0;break}H=f+76|0;C=1-l|0;D=(G|0)==0;I=f+72|0;E=f+24|0;F=f+24|0;a:do{l=b[H>>1]|0;A=c[f+(l<<2)+120>>2]|0;B=A+18|0;p=(e[B>>1]|0)+-1|0;o=p>>C;b[f+(l<<1)+78>>1]=o;l=A+56|0;x=A+20|0;y=A+64|0;z=A+7|0;b:do if(D){s=A+3|0;r=A+60|0;q=0;t=p;while(1){p=o<<1;w=c[y>>2]|0;p=(c[l>>2]|0)+(((d[w+p>>0]<<8|d[w+(p|1)>>0])&e[x>>1])+(d[z>>0]|0))|0;c:do if(a[s>>0]|0)while(1){w=p;p=p+1|0;if((a[w>>0]|0)>=0)break c;if(p>>>0>=(c[r>>2]|0)>>>0){M=25;break a}}while(0);op(p,K)|0;n=K;p=c[n>>2]|0;n=c[n+4>>2]|0;if((n|0)<(k|0)|(n|0)==(k|0)&p>>>0<h>>>0){q=o+1|0;if((o|0)<(t|0))p=t;else{n=-1;M=49;break b}}else{if(!((n|0)>(k|0)|(n|0)==(k|0)&p>>>0>h>>>0)){q=n;break}p=o+-1|0;if((q|0)>(p|0)){n=1;M=49;break b}}o=p+q>>1;t=p}a[I>>0]=d[I>>0]|2;z=E;c[z>>2]=p;c[z+4>>2]=q;b[f+(b[H>>1]<<1)+78>>1]=o;if(a[A+5>>0]|0){M=31;break a}}else{u=A+8|0;v=A+10|0;w=o;q=0;while(1){n=c[l>>2]|0;s=w<<1;o=c[y>>2]|0;s=(d[o+s>>0]<<8|d[o+(s|1)>>0])&e[x>>1];o=s+(d[z>>0]|0)|0;O=a[n+o>>0]|0;t=O&255;r=n+(o+1)|0;do if((O&255)>(d[u>>0]|0)){r=d[r>>0]|0;if((r&128|0)==0?(J=r+(t<<7&16256)|0,(J|0)<=(e[v>>1]|0)):0){n=Yb[G&63](J,n+(o+2)|0,g)|0;break}np(A,n+s|0,F);r=c[F>>2]|0;o=mg(r,((r|0)<0)<<31>>31)|0;if(!o){n=7;break a}b[f+(b[H>>1]<<1)+78>>1]=w;n=Hm(f,0,r,o,2)|0;if(n){M=40;break a}n=Yb[G&63](r,o,g)|0;Sc(o)}else n=Yb[G&63](t,r,g)|0;while(0);if((n|0)<0)q=w+1|0;else{if((n|0)<=0){o=w;M=46;break a}p=w+-1|0}if((q|0)>(p|0)){o=w;M=49;break b}w=p+q>>1}}while(0);if((M|0)==49){M=0;if(a[A+5>>0]|0){M=51;break}l=A+56|0;o=q}q=c[l>>2]|0;if((o|0)<(e[B>>1]|0)){p=o<<1;B=c[A+64>>2]|0;p=(d[B+p>>0]<<8|d[B+(p|1)>>0])&e[A+20>>1];p=d[q+(p+1)>>0]<<16|d[q+p>>0]<<24|d[q+(p+2)>>0]<<8|d[q+(p+3)>>0]}else{p=d[A+6>>0]|0;p=d[q+(p+9)>>0]<<16|d[q+(p+8)>>0]<<24|d[q+(p+10)>>0]<<8|d[q+(p+11)>>0]}b[f+(b[H>>1]<<1)+78>>1]=o;n=nm(f,p)|0}while((n|0)==0);if((M|0)==25){c[L>>2]=57865;c[L+4>>2]=10788;Zc(11,13600,L);n=11;break}else if((M|0)==31){c[m>>2]=0;n=0}else if((M|0)==40)Sc(o);else if((M|0)==46){c[m>>2]=0;b[f+(b[H>>1]<<1)+78>>1]=o;n=(a[g+7>>0]|0)==0?0:11}else if((M|0)==51){b[f+(b[H>>1]<<1)+78>>1]=o;c[m>>2]=n;n=0}b[f+44>>1]=0;a[I>>0]=d[I>>0]&249}}while(0);i=N;return n|0}function zm(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0;b[f+44>>1]=0;h=f+72|0;a[h>>0]=d[h>>0]&249;c[g>>2]=0;do if((a[f+73>>0]|0)==1){h=f+76|0;k=b[h>>1]|0;i=c[f+(k<<2)+120>>2]|0;k=f+(k<<1)+78|0;j=(b[k>>1]|0)+1<<16>>16;b[k>>1]=j;if((j&65535)>=(e[i+18>>1]|0)){h=f+(b[h>>1]<<1)+78|0;b[h>>1]=(b[h>>1]|0)+-1<<16>>16;h=zp(f,g)|0;break}if(!(a[i+5>>0]|0))h=Rm(f)|0;else h=0}else h=zp(f,g)|0;while(0);return h|0}function Am(e,f){e=e|0;f=f|0;var g=0,h=0,i=0,j=0;c[f>>2]=0;j=e+72|0;a[j>>0]=d[j>>0]&241;b[e+44>>1]=0;if(((a[e+73>>0]|0)==1?(g=b[e+76>>1]|0,h=e+(g<<1)+78|0,i=b[h>>1]|0,i<<16>>16!=0):0)?(a[(c[e+(g<<2)+120>>2]|0)+5>>0]|0)!=0:0){b[h>>1]=i+-1<<16>>16;g=0}else g=Ap(e,f)|0;return g|0}function Bm(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;i=0-d&7;j=a+6|0;h=b[j>>1]|0;g=((h&65535)*40|0)+64|0;if((g|0)>(i+e|0)){g=ih(c[a+12>>2]|0,g,0)|0;c[f>>2]=g;if(!g)g=0;else{h=b[j>>1]|0;k=5}}else{c[f>>2]=0;g=d+i|0;k=5}if((k|0)==5){c[g+8>>2]=g+24;c[g>>2]=a;b[g+4>>1]=(h&65535)+1}return g|0}function Cm(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))baba();u=L;A=L+24|0;B=L+20|0;z=L+16|0;K=L+12|0;H=L+8|0;I=L+28|0;c[H>>2]=p;r=(c[f>>2]|0)+4|0;t=c[r>>2]|0;J=f+73|0;do if((a[J>>0]|0)!=4){s=Hn(t,c[f+60>>2]|0,f)|0;c[K>>2]=s;if(!s){if(!(c[f+16>>2]|0)){s=c[(c[r>>2]|0)+8>>2]|0;if(s)do{if((a[s+72>>0]&16)!=0?(E=s+24|0,(c[E>>2]|0)==(h|0)?(c[E+4>>2]|0)==(k|0):0):0)a[s+73>>0]=0;s=c[s+8>>2]|0}while((s|0)!=0);if((a[f+72>>0]&2)!=0&((k|0)>0|(k|0)==0&h>>>0>0)?(E=f+24|0,x=c[E>>2]|0,E=c[E+4>>2]|0,y=fw(h|0,k|0,-1,-1)|0,(x|0)==(y|0)&(E|0)==(C|0)):0)c[H>>2]=-1;else D=13}else D=13;if(((D|0)==13?(p|0)==0:0)?(q=Cp(f,g,h,k,o,H)|0,c[K>>2]=q,(q|0)!=0):0)break;F=f+76|0;G=c[f+(b[F>>1]<<2)+120>>2]|0;E=c[t+80>>2]|0;c[B>>2]=0;o=G+52|0;y=c[o>>2]|0;c[z>>2]=0;s=d[G+7>>0]|0;t=n+m|0;if(a[G+3>>0]|0){if(t>>>0<128){a[E+s>>0]=t;r=1}else r=(lm(E+s|0,t,((t|0)<0)<<31>>31)|0)&255;s=r+s|0}p=(lm(E+s|0,h,k)|0)+s|0;do if(!(a[G+2>>0]|0))if((k|0)>0|(k|0)==0&h>>>0>2147483647|(g|0)==0){c[u>>2]=58825;c[u+4>>2]=10788;Zc(11,13600,u);q=11;s=0;break}else{x=m;t=h;m=h;n=g;D=24;break}else{x=0;n=l;D=24}while(0);do if((D|0)==24){s=e[G+10>>1]|0;if((t|0)>(s|0)){r=e[G+12>>1]|0;o=(((t-r|0)>>>0)%(((c[(c[o>>2]|0)+36>>2]|0)+-4|0)>>>0)|0)+r|0;o=(o|0)>(s|0)?r:o;r=o+p|0;s=r+4|0;r=E+r|0}else{s=t+p|0;s=(s|0)<4?4:s;r=E;o=t}if((t|0)>0){h=y+17|0;v=y+36|0;w=y+32|0;g=m;u=E+p|0;k=r;p=0;m=o;while(1){if(!m){u=c[z>>2]|0;if(!(a[h>>0]|0))r=u;else{q=((c[2514]|0)>>>0)/((c[w>>2]|0)>>>0)|0;m=u;while(1){r=m+1|0;if(r>>>0<2)o=0;else{o=m+-1|0;o=o-((o>>>0)%(((((c[v>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;o=((o+1|0)==(q|0)?3:2)+o|0}if((o|0)==(r|0)|(m|0)==(q|0))m=r;else break}c[z>>2]=r}q=ep(y,B,z,r,0)|0;c[A>>2]=q;r=(q|0)==0;if((a[h>>0]|0)!=0&r){r=c[z>>2]|0;vp(y,r,(u|0)!=0?4:3,u,A);q=c[A>>2]|0;if(q){o=p;D=38;break}}else{if(!r)break;r=c[z>>2]|0}a[k>>0]=r>>>24;a[k+1>>0]=r>>>16;a[k+2>>0]=r>>>8;a[k+3>>0]=r;if(p)xg(c[p+68>>2]|0);q=c[B>>2]|0;u=q+56|0;k=c[u>>2]|0;a[k>>0]=0;a[k+1>>0]=0;a[k+2>>0]=0;a[k+3>>0]=0;u=(c[u>>2]|0)+4|0;m=(c[v>>2]|0)+-4|0}else q=p;r=(t|0)>(m|0)?m:t;if((g|0)>0){r=(r|0)>(g|0)?g:r;gw(u|0,n|0,r|0)|0}else bw(u|0,0,r|0)|0;t=t-r|0;o=(g|0)==(r|0);if((t|0)<=0){D=51;break}else{g=o?x:g-r|0;u=u+r|0;n=o?l:n+r|0;p=q;m=m-r|0}}if((D|0)==38){p=c[B>>2]|0;if(!p)p=o;else{xg(c[p+68>>2]|0);p=o}}else if((D|0)==51){if(!q){q=0;break}xg(c[q+68>>2]|0);q=0;break}if(p)xg(c[p+68>>2]|0)}else q=0}while(0);c[K>>2]=q;if(!q){q=f+(b[F>>1]<<1)+78|0;o=b[q>>1]|0;r=o&65535;p=c[H>>2]|0;if(!p){q=Cg(c[G+68>>2]|0)|0;c[K>>2]=q;if(q)break;q=r<<1;D=c[G+64>>2]|0;q=(c[G+56>>2]|0)+((d[D+q>>0]<<8|d[D+(q|1)>>0])&e[G+20>>1])|0;if(!(a[G+5>>0]|0)){D=d[q>>0]|d[q+1>>0]<<8|d[q+2>>0]<<16|d[q+3>>0]<<24;a[E>>0]=D;a[E+1>>0]=D>>8;a[E+2>>0]=D>>16;a[E+3>>0]=D>>24}c[K>>2]=Dp(G,q,I)|0;Ep(G,r,e[I>>1]|0,K);q=c[K>>2]|0;if(!q)q=r;else break}else if((p|0)<0?(b[G+18>>1]|0)!=0:0){D=o+1<<16>>16;b[q>>1]=D;q=D&65535}else q=r;Fp(G,q,E,s,0,0,K);b[f+44>>1]=0;q=c[K>>2]|0;if(!q)if(!(a[G+1>>0]|0))q=0;else{q=f+72|0;a[q>>0]=d[q>>0]&253;q=Gp(f)|0;c[K>>2]=q;a[(c[f+(b[F>>1]<<2)+120>>2]|0)+1>>0]=0;a[J>>0]=0}}}else q=s}else q=c[f+68>>2]|0;while(0);i=L;return q|0}function Fm(f){f=f|0;var g=0,h=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;z=i;i=i+16|0;if((i|0)>=(j|0))ba();y=z+4|0;q=z+8|0;l=z;m=(c[f>>2]|0)+4|0;s=c[m>>2]|0;w=f+76|0;x=b[w>>1]|0;u=x<<16>>16;p=b[f+(u<<1)+78>>1]|0;v=p&65535;r=c[f+(u<<2)+120>>2]|0;do if((p&65535)<(e[r+18>>1]|0)?(a[f+73>>0]|0)==1:0){p=v<<1;t=c[r+64>>2]|0;p=(c[r+56>>2]|0)+((d[t+p>>0]<<8|d[t+(p|1)>>0])&e[r+20>>1])|0;t=r+5|0;if((a[t>>0]|0)==0?(c[l>>2]=0,k=Am(f,l)|0,c[y>>2]=k,(k|0)!=0):0){g=k;break}k=Hn(s,c[f+60>>2]|0,f)|0;c[y>>2]=k;if(!k){if((c[f+16>>2]|0)==0?(o=f+24|0,n=c[o>>2]|0,o=c[o+4>>2]|0,h=c[(c[m>>2]|0)+8>>2]|0,(h|0)!=0):0)do{if((a[h+72>>0]&16)!=0?(m=h+24|0,(c[m>>2]|0)==(n|0)?(c[m+4>>2]|0)==(o|0):0):0)a[h+73>>0]=0;h=c[h+8>>2]|0}while((h|0)!=0);h=Cg(c[r+68>>2]|0)|0;c[y>>2]=h;if(!h){c[y>>2]=Dp(r,p,q)|0;Ep(r,v,e[q>>1]|0,y);h=c[y>>2]|0;if(!h){if((a[t>>0]|0)==0?(p=c[f+(b[w>>1]<<2)+120>>2]|0,o=c[(c[f+(u+1<<2)+120>>2]|0)+72>>2]|0,l=c[p+56>>2]|0,q=p+18|0,m=e[q>>1]<<1,g=c[p+64>>2]|0,m=(d[g+(m+-2)>>0]<<8|d[g+(m+-1)>>0])&e[p+20>>1],g=(Hp(p,l+m|0)|0)&65535,n=c[s+80>>2]|0,c[y>>2]=Cg(c[p+68>>2]|0)|0,Fp(r,v,l+(m+-4)|0,g+4|0,n,o,y),Ep(p,(e[q>>1]|0)+-1|0,g,y),g=c[y>>2]|0,(g|0)!=0):0)break;g=Gp(f)|0;c[y>>2]=g;if(!g){g=b[w>>1]|0;if(g<<16>>16>x<<16>>16){do{h=g+-1<<16>>16;b[w>>1]=h;g=c[f+(g<<16>>16<<2)+120>>2]|0;if(!g)g=h;else{xg(c[g+68>>2]|0);g=b[w>>1]|0}}while(g<<16>>16>x<<16>>16);g=Gp(f)|0;c[y>>2]=g;if(g)break}mm(f)|0;g=0}}else g=h}else g=h}else g=k}else g=1;while(0);i=z;return g|0}function Gm(f,g,k,l){f=f|0;g=g|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0.0,r=0.0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0;L=i;i=i+64|0;if((i|0)>=(j|0))ba();J=L+40|0;p=L+56|0;H=L;n=L+52|0;I=L+48|0;s=c[k+8>>2]|0;K=c[k>>2]|0;do if(!l){l=a[g>>0]|0;if(l<<24>>24>-1){l=l&255;c[p>>2]=l;m=1}else{m=im(g,p)|0;l=c[p>>2]|0}if(l>>>0>f>>>0){c[J>>2]=68267;c[J+4>>2]=10788;Zc(11,13600,J);a[k+7>>0]=11;m=0;break}else{G=l;p=l;l=0;n=m&255;o=15;break}}else{l=g+1|0;m=a[l>>0]|0;if(m<<24>>24>-1){l=m&255;c[n>>2]=l;o=1}else{o=im(l,n)|0;l=c[n>>2]|0}m=d[g>>0]|0;c[p>>2]=m;if(l>>>0>11)l=(l+-12|0)>>>1;else l=d[34336+l>>0]|0;G=m;p=l+m|0;l=1;n=(o&255)+1|0;s=s+40|0;o=15}while(0);do if((o|0)==15){w=H+12|0;x=K+4|0;y=H+10|0;z=K+12|0;A=H+32|0;B=H+8|0;D=H+16|0;F=k+7|0;E=k+4|0;v=p;u=n;a:while(1){n=e[s+8>>1]|0;do if(!(n&4)){if(n&8){o=a[g+u>>0]|0;p=o&255;c[I>>2]=p;if((o&255)>11){m=1;o=62;break a}if(!(o<<24>>24)){m=-1;o=62;break a}q=+h[s>>3];km(g+v|0,p,H)|0;if(o<<24>>24==7)r=+h[H>>3];else{m=H;r=+((c[m>>2]|0)>>>0)+4294967296.0*+(c[m+4>>2]|0)}if(r<q){m=-1;o=62;break a}if(r>q){m=1;o=62;break a}else break}do if(!(n&2)){o=g+u|0;t=a[o>>0]|0;p=t&255;if(!(n&16)){c[I>>2]=p;m=t<<24>>24!=0&1;break}if(t<<24>>24>-1)c[I>>2]=p;else{im(o,I)|0;p=c[I>>2]|0}if(!(p>>>0>11&(p&1|0)==0)){m=-1;o=62;break a}t=(p+-12|0)>>>1;if((t+v|0)>>>0>f>>>0){o=57;break a}o=c[s+12>>2]|0;m=Vv(g+v|0,c[s+16>>2]|0,(t|0)<(o|0)?t:o)|0;if(m){o=62;break a}m=t-o|0}else{p=g+u|0;o=a[p>>0]|0;if(o<<24>>24>-1){p=o&255;c[I>>2]=p}else{im(p,I)|0;p=c[I>>2]|0}if(p>>>0<12){m=-1;o=62;break a}if(!(p&1)){m=1;o=62;break a}n=(p+-12|0)>>>1;c[w>>2]=n;if((n+v|0)>>>0>f>>>0){o=46;break a}o=c[K+(l<<2)+20>>2]|0;if(o){a[y>>0]=a[x>>0]|0;c[A>>2]=c[z>>2];b[B>>1]=2;c[D>>2]=g+v;m=lp(H,s,o,F)|0;break}t=c[s+12>>2]|0;m=Vv(g+v|0,c[s+16>>2]|0,(n|0)<(t|0)?n:t)|0;if(m){o=62;break a}m=n-t|0}while(0);if(m){o=62;break a}}else{o=a[g+u>>0]|0;p=o&255;c[I>>2]=p;if((o&255)>11){m=1;o=62;break a}if(o<<24>>24==7){m=s;q=+((c[m>>2]|0)>>>0)+4294967296.0*+(c[m+4>>2]|0);km(g+v|0,p,H)|0;r=+h[H>>3];if(r<q){m=-1;o=62;break a}if(r>q){m=1;o=62;break a}else break}else if(!(o<<24>>24)){m=-1;o=62;break a}o=g+v|0;switch(p|0){case 1:case 0:{t=a[o>>0]|0;m=((t|0)<0)<<31>>31;break}case 4:{t=d[g+(v+1)>>0]<<16|d[o>>0]<<24|d[g+(v+2)>>0]<<8|d[g+(v+3)>>0];m=((t|0)<0)<<31>>31;break}case 3:{t=d[g+(v+1)>>0]<<8|a[o>>0]<<16|d[g+(v+2)>>0];m=((t|0)<0)<<31>>31;break}case 6:{m=d[g+(v+1)>>0]<<16|d[o>>0]<<24|d[g+(v+2)>>0]<<8|d[g+(v+3)>>0];t=d[g+(v+5)>>0]<<16|d[g+(v+4)>>0]<<24|d[g+(v+6)>>0]<<8|d[g+(v+7)>>0];break}case 2:{t=a[o>>0]<<8|d[g+(v+1)>>0];m=((t|0)<0)<<31>>31;break}case 5:{m=a[o>>0]<<8|d[g+(v+1)>>0];t=d[g+(v+3)>>0]<<16|d[g+(v+2)>>0]<<24|d[g+(v+4)>>0]<<8|d[g+(v+5)>>0];break}default:{m=0;t=p+-8|0}}n=s;o=c[n>>2]|0;n=c[n+4>>2]|0;if((m|0)<(n|0)|(m|0)==(n|0)&t>>>0<o>>>0){m=-1;o=62;break a}if((m|0)>(n|0)|(m|0)==(n|0)&t>>>0>o>>>0){m=1;o=62;break a}}while(0);l=l+1|0;s=s+40|0;if(p>>>0>11)n=(p+-12|0)>>>1;else n=d[34336+p>>0]|0;t=p;o=0;p=0;do{p=p+1|0;t=iw(t|0,o|0,7)|0;o=C}while(((t|0)!=0|(o|0)!=0)&(p|0)<9);v=n+v|0;u=p+u|0;if(u>>>0>=G>>>0){o=70;break}if(v>>>0>f>>>0?1:(l|0)>=(e[E>>1]|0)){o=70;break}}if((o|0)==46){c[J>>2]=68346;c[J+4>>2]=10788;Zc(11,13600,J);a[F>>0]=11;m=0;break}else if((o|0)==57){c[J>>2]=68375;c[J+4>>2]=10788;Zc(11,13600,J);a[F>>0]=11;m=0;break}else if((o|0)==62){m=(a[(c[K+16>>2]|0)+l>>0]|0)==0?m:0-m|0;break}else if((o|0)==70){m=a[k+6>>0]|0;break}}while(0);i=L;return m|0}function Hm(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=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;B=i;i=i+16|0;if((i|0)>=(j|0))ba();A=B;y=B+12|0;z=B+8|0;m=b[f+76>>1]|0;o=c[f+(m<<2)+120>>2]|0;x=c[f+4>>2]|0;if(!(b[f+44>>1]|0)){s=o+56|0;m=e[f+(m<<1)+78>>1]<<1;r=c[o+64>>2]|0;np(o,(c[s>>2]|0)+((d[r+m>>0]<<8|d[r+(m|1)>>0])&e[o+20>>1])|0,f+24|0);m=f+72|0;a[m>>0]=d[m>>0]|2;m=s}else m=o+56|0;s=c[f+32>>2]|0;q=f+40|0;n=e[q>>1]|0;r=x+36|0;if((s+n|0)>>>0<=((c[m>>2]|0)+(c[r>>2]|0)|0)>>>0){if(n>>>0>g>>>0){p=(h+g|0)>>>0>n>>>0?n-g|0:h;n=s+g|0;if(l&1){m=Cg(c[o+68>>2]|0)|0;if(!m){gw(n|0,k|0,p|0)|0;m=0}}else{gw(k|0,n|0,p|0)|0;m=0}k=k+p|0;t=0;h=h-p|0}else{t=g-n|0;m=0}a:do if((m|0)==0&(h|0)!=0){m=c[r>>2]|0;w=m+-4|0;n=e[q>>1]|0;q=d[s+(n+1)>>0]<<16|d[s+n>>0]<<24|d[s+(n+2)>>0]<<8|d[s+(n+3)>>0];c[y>>2]=q;s=f+72|0;do if((l|0)!=2?(a[s>>0]&4)==0:0){m=((m+-5+(c[f+36>>2]|0)-n|0)>>>0)/(w>>>0)|0;g=f+64|0;if((m|0)>(c[g>>2]|0)){o=f+20|0;n=ng(c[o>>2]|0,m<<3,0)|0;if(!n){m=7;break}c[g>>2]=m<<1;c[o>>2]=n}bw(c[f+20>>2]|0,0,m<<2|0)|0;a[s>>0]=d[s>>0]|4;m=0}else m=0;while(0);g=a[s>>0]|0;if((g&4)!=0?(v=(t>>>0)/(w>>>0)|0,u=c[(c[f+20>>2]|0)+(v<<2)>>2]|0,(u|0)!=0):0){c[y>>2]=u;p=(t>>>0)%(w>>>0)|0;o=u;q=v}else{p=t;o=q;q=0}if((m|0)==0&(o|0)!=0){u=l&1;v=u<<1^2;u=(u|0)==0;l=f+20|0;while(1){if(g&4)c[(c[l>>2]|0)+(q<<2)>>2]=o;if(p>>>0<w>>>0){r=(p+h|0)>>>0>w>>>0?w-p|0:h;m=vg(c[x>>2]|0,o,z,v)|0;if(!m){g=c[z>>2]|0;n=c[g+4>>2]|0;o=d[n+1>>0]<<16|d[n>>0]<<24|d[n+2>>0]<<8|d[n+3>>0];c[y>>2]=o;n=n+(p+4)|0;if(!u){m=Cg(g)|0;if(!m){gw(n|0,k|0,r|0)|0;m=0}}else{gw(k|0,n|0,r|0)|0;m=0}if(!g)p=0;else{xg(g);p=0}}h=h-r|0;k=k+r|0;q=q+1|0}else{g=q+1|0;m=c[(c[l>>2]|0)+(g<<2)>>2]|0;if(!m){m=Ip(x,o,0,y)|0;o=c[y>>2]|0}else{c[y>>2]=m;o=m;m=0}p=p-w|0;q=g}if(!((m|0)==0&(h|0)!=0&(o|0)!=0))break a;g=a[s>>0]|0}}}while(0);if((m|0)==0&(h|0)!=0){c[A>>2]=57357;c[A+4>>2]=10788;Zc(11,13600,A);m=11}}else{c[A>>2]=57202;c[A+4>>2]=10788;Zc(11,13600,A);m=11}i=B;return m|0}function Im(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[a>>2]|0;d=a+44|0;ig(e,c[d>>2]|0);a=b+8|0;c[d>>2]=gh(e,c[a>>2]|0)|0;Sc(c[a>>2]|0);c[a>>2]=0;return}function Jm(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();k=r+4|0;p=r;q=e+12|0;if(!(c[q>>2]|0)){h=e+8|0;g=Bm(c[(c[h>>2]|0)+28>>2]|0,0,0,k)|0;c[q>>2]=g;if(!(c[k>>2]|0))g=7;else{b[g+4>>1]=b[(c[(c[h>>2]|0)+28>>2]|0)+6>>1]|0;a[g+7>>0]=0;l=4}}else l=4;if((l|0)==4){o=mg(256,0)|0;if(!o)g=7;else{bw(o|0,0,256)|0;g=c[f>>2]|0;c[p>>2]=g;if(g){n=f+4|0;while(1){h=c[n>>2]|0;if(h)if((g|0)==(h|0))m=0;else m=h+(c[g+4>>2]|0)|0;else m=c[g+4>>2]|0;c[g+4>>2]=0;l=c[o>>2]|0;k=c[p>>2]|0;if(!l)l=o;else{h=o;g=0;do{Jp(e,k,l,p);c[h>>2]=0;g=g+1|0;h=o+(g<<2)|0;l=c[h>>2]|0;k=c[p>>2]|0}while((l|0)!=0);l=h}c[l>>2]=k;c[p>>2]=m;if(!m)break;else g=m}}c[p>>2]=0;g=0;h=0;do{Jp(e,g,c[o+(h<<2)>>2]|0,p);h=h+1|0;g=c[p>>2]|0}while((h|0)!=64);c[f>>2]=g;Sc(o);g=d[(c[q>>2]|0)+7>>0]|0}}i=r;return g|0}function Km(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+64|0;if((i|0)>=(j|0))ba();m=o+40|0;n=o;a[b+56>>0]=1;g=b+64|0;l=b+36|0;k=b+72|0;h=c[(c[k>>2]|0)+24>>2]|0;f=n+0|0;e=f+40|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(e|0));f=b+96|0;if(!((c[f>>2]|0)==0?(d=Kp(h,f)|0,(d|0)!=0):0)){d=Jm(g,l)|0;if(!d){g=b+104|0;d=g;Lp(c[f>>2]|0,n,c[(c[k>>2]|0)+12>>2]|0,c[d>>2]|0,c[d+4>>2]|0);d=b+92|0;c[d>>2]=(c[d>>2]|0)+1;d=c[b+44>>2]|0;Mp(n,m,lm(m,d,((d|0)<0)<<31>>31)|0);d=c[l>>2]|0;if(d){f=b+40|0;do{e=d;d=c[d+4>>2]|0;b=c[e>>2]|0;Mp(n,m,lm(m,b,((b|0)<0)<<31>>31)|0);Mp(n,e+8|0,c[e>>2]|0);if(!(c[f>>2]|0))Sc(e)}while((d|0)!=0)}c[l>>2]=0;d=Np(n,g)|0}}i=o;return d|0}function Lm(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))baba();q=z;y=z+16|0;x=z+12|0;w=z+8|0;c[y>>2]=0;m=c[f+12>>2]|0;if(!g){g=Up(f,h)|0;c[x>>2]=g}else{c[x>>2]=g;r=(c[g+68>>2]|0)+26|0;b[r>>1]=(b[r>>1]|0)+1<<16>>16}l=Cg(c[m+68>>2]|0)|0;c[w>>2]=l;do if(!l){r=m+56|0;p=c[r>>2]|0;A=p+36|0;l=p+37|0;m=p+38|0;p=p+39|0;n=d[l>>0]<<16|d[A>>0]<<24|d[m>>0]<<8|d[p>>0];o=n+1|0;a[A>>0]=o>>>24;a[l>>0]=o>>>16;a[m>>0]=o>>>8;a[p>>0]=o;p=f+22|0;if(b[p>>1]&4){if(!g){m=$k(f,h,x,0)|0;c[w>>2]=m;if(m){k=m;break}g=c[x>>2]|0}m=Cg(c[g+68>>2]|0)|0;c[w>>2]=m;if(m){k=m;break}bw(c[g+56>>2]|0,0,c[(c[g+52>>2]|0)+32>>2]|0)|0}if((a[f+17>>0]|0)!=0?(vp(f,h,2,0,w),k=c[w>>2]|0,(k|0)!=0):0)break;if(n){l=c[r>>2]|0;l=d[l+33>>0]<<16|d[l+32>>0]<<24|d[l+34>>0]<<8|d[l+35>>0];k=$k(f,l,y,0)|0;c[w>>2]=k;if(k)break;k=c[y>>2]|0;o=k+56|0;n=c[o>>2]|0;n=d[n+5>>0]<<16|d[n+4>>0]<<24|d[n+6>>0]<<8|d[n+7>>0];m=(c[f+36>>2]|0)>>>2;if(n>>>0>(m+-2|0)>>>0){c[q>>2]=58627;c[q+4>>2]=10788;Zc(11,13600,q);c[w>>2]=11;k=11;break}if(n>>>0<(m+-8|0)>>>0){k=Cg(c[k+68>>2]|0)|0;c[w>>2]=k;if(k)break;r=c[o>>2]|0;q=n+1|0;a[r+4>>0]=q>>>24;a[r+5>>0]=q>>>16;a[r+6>>0]=q>>>8;a[r+7>>0]=q;r=n<<2;q=c[o>>2]|0;a[q+(r+8)>>0]=h>>>24;a[q+(r+9)>>0]=h>>>16;a[q+(r+10)>>0]=h>>>8;a[q+(r+11)>>0]=h;if((((g|0)!=0?(b[p>>1]&4)==0:0)?(s=c[g+68>>2]|0,t=s+24|0,u=e[t>>1]|0,(u&2|0)!=0):0)?(c[(c[s+16>>2]|0)+96>>2]|0)==0:0)b[t>>1]=u|32;l=f+60|0;k=c[l>>2]|0;do if(!k){g=c[f+44>>2]|0;k=mg(512,0)|0;if(!k){c[l>>2]=0;k=7;break}else{bw(k|0,0,512)|0;c[k>>2]=g;c[l>>2]=k;v=28;break}}else v=28;while(0);if((v|0)==28)if((c[k>>2]|0)>>>0<h>>>0)k=0;else k=Zh(k,h)|0;c[w>>2]=k;break}}else l=0;if(!g){k=$k(f,h,x,0)|0;c[w>>2]=k;if(k)break;g=c[x>>2]|0}k=Cg(c[g+68>>2]|0)|0;c[w>>2]=k;if(!k){k=g+56|0;s=c[k>>2]|0;a[s>>0]=l>>>24;a[s+1>>0]=l>>>16;a[s+2>>0]=l>>>8;a[s+3>>0]=l;k=(c[k>>2]|0)+4|0;a[k>>0]=0;a[k+1>>0]=0;a[k+2>>0]=0;a[k+3>>0]=0;k=c[r>>2]|0;a[k+32>>0]=h>>>24;a[k+33>>0]=h>>>16;a[k+34>>0]=h>>>8;a[k+35>>0]=h;k=0}}else k=l;while(0);g=c[x>>2]|0;if(g){a[g>>0]=0;xg(c[g+68>>2]|0)}g=c[y>>2]|0;if(g)xg(c[g+68>>2]|0);i=z;return k|0}function Vm(f,g,h,k,l,m){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var 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;P=i;i=i+48|0;if((i|0)>=(j|0))ba();M=P+24|0;D=P;w=P+36|0;N=P+32|0;t=g+72|0;L=c[t>>2]|0;u=c[f>>2]|0;r=c[g+68>>2]|0;s=u+15|0;if((a[s>>0]|0)!=0?(n=Cg(r)|0,(n|0)!=0):0)O=20;else O=3;a:do if((O|0)==3){o=r+24|0;q=b[o>>1]|0;if((q&2)!=0?(Qo(r)|0)!=0:0){n=Ro(r)|0;if(n){O=20;break}q=b[o>>1]|0}if((q&4)==0|(m|0)!=0)p=0;else p=c[r+20>>2]|0;b[o>>1]=q&65531;A=u+204|0;m=Yb[c[8744+132>>2]&63](c[(c[A>>2]|0)+40>>2]|0,l,0)|0;m=el(c[A>>2]|0,l,m)|0;do if(m){b[o>>1]=e[o>>1]|e[m+24>>1]&4;if(!(a[s>>0]|0)){il(m);break}else{Vp(m,(c[u+24>>2]|0)+1|0);break}}while(0);q=c[r+20>>2]|0;Vp(r,l);Po(r);if(a[s>>0]|0){Vp(m,q);xg(m)}do if(p){n=vg(u,p,M,0)|0;if(!n){A=c[M>>2]|0;z=A+24|0;b[z>>1]=e[z>>1]|4;Po(A);xg(A);break}if(p>>>0>(c[u+28>>2]|0)>>>0){O=20;break a}_h(c[u+56>>2]|0,p,c[u+200>>2]|0);O=20;break a}while(0);c[N>>2]=0;c[t>>2]=l;if(h<<24>>24==1|h<<24>>24==5){n=Wp(g)|0;c[N>>2]=n;if(!n)O=25;else break}else{m=c[g+56>>2]|0;m=d[m+1>>0]<<16|d[m>>0]<<24|d[m+2>>0]<<8|d[m+3>>0];if(m){vp(f,m,4,l,N);n=c[N>>2]|0;if(!n)O=25;else break}}if((O|0)==25?h<<24>>24==1:0){n=0;break}n=$k(f,k,w,0)|0;c[N>>2]=n;if(!n){z=c[w>>2]|0;A=z+68|0;n=Cg(c[A>>2]|0)|0;c[N>>2]=n;if(n){if(!z)break;xg(c[A>>2]|0);break}b:do if(h<<24>>24==4){n=c[z+56>>2]|0;o=n+1|0;p=n+2|0;m=n+3|0;if((d[o>>0]<<16|d[n>>0]<<24|d[p>>0]<<8|d[m>>0]|0)==(L|0)){a[n>>0]=l>>>24;a[o>>0]=l>>>16;a[p>>0]=l>>>8;a[m>>0]=l;n=0;break}else{c[M>>2]=56060;c[M+4>>2]=10788;Zc(11,13600,M);n=11;break}}else{x=a[z>>0]|0;Xp(z)|0;w=b[z+18>>1]|0;y=w&65535;c:do if(w<<16>>16){g=z+56|0;u=z+20|0;r=z+64|0;v=h<<24>>24==3;w=D+18|0;m=0;while(1){t=c[g>>2]|0;s=m<<1;q=c[r>>2]|0;s=(d[q+s>>0]<<8|d[q+(s|1)>>0])&e[u>>1];q=t+s|0;if(v){np(z,q,D);q=b[w>>1]|0;if((q<<16>>16!=0?(B=(q&65535)+s|0,C=t+(B+3)|0,C>>>0<=((c[g>>2]|0)+(e[u>>1]|0)|0)>>>0):0)?(E=t+B|0,F=t+(B+1)|0,G=t+(B+2)|0,(d[F>>0]<<16|d[E>>0]<<24|d[G>>0]<<8|d[C>>0]|0)==(L|0)):0){q=C;n=E;o=F;p=G;O=40;break}}else{n=t+(s+1)|0;o=t+(s+2)|0;p=t+(s+3)|0;if((d[n>>0]<<16|d[q>>0]<<24|d[o>>0]<<8|d[p>>0]|0)==(L|0)){O=42;break}}m=m+1|0;if((m|0)>=(y|0))break c}if((O|0)==40){a[n>>0]=l>>>24;a[o>>0]=l>>>16;a[p>>0]=l>>>8;a[q>>0]=l;break}else if((O|0)==42){a[q>>0]=l>>>24;a[n>>0]=l>>>16;a[o>>0]=l>>>8;a[p>>0]=l;break}}else m=0;while(0);do if((m|0)==(y|0)){if(h<<24>>24==5?(K=d[z+6>>0]|0,G=c[z+56>>2]|0,H=G+(K+8)|0,I=G+(K+9)|0,J=G+(K+10)|0,K=G+(K+11)|0,(d[I>>0]<<16|d[H>>0]<<24|d[J>>0]<<8|d[K>>0]|0)==(L|0)):0){a[H>>0]=l>>>24;a[I>>0]=l>>>16;a[J>>0]=l>>>8;a[K>>0]=l;break}c[M>>2]=56094;c[M+4>>2]=10788;Zc(11,13600,M);n=11;break b}while(0);a[z>>0]=x;n=0}while(0);c[N>>2]=n;if(z)xg(c[A>>2]|0);if(!n){vp(f,l,h,k,N);n=c[N>>2]|0}}}while(0);if((O|0)==20)c[N>>2]=n;i=P;return n|0}function Wm(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;j=e+20|0;Pm(c[j>>2]|0);c[j>>2]=0;j=e+59|0;if(a[j>>0]|0){k=0;do{g=e+(k<<6)+76|0;ig(b,c[g>>2]|0);c[g>>2]=0;g=e+(k<<6)+80|0;h=c[g>>2]|0;if(h)do{i=h;h=c[h+4>>2]|0;if(i)Sc(i)}while((h|0)!=0);c[g>>2]=0;h=e+(k<<6)+96|0;g=c[h>>2]|0;if(g){i=c[g>>2]|0;if(i){hc[c[i+4>>2]&127](g)|0;c[g>>2]=0}Sc(g);c[h>>2]=0;g=e+(k<<6)+104|0;c[g>>2]=0;c[g+4>>2]=0}i=e+(k<<6)+112|0;h=c[i>>2]|0;if(h){g=c[h>>2]|0;if(g){hc[c[g+4>>2]&127](h)|0;c[h>>2]=0}Sc(h);c[i>>2]=0;g=e+(k<<6)+120|0;c[g>>2]=0;c[g+4>>2]=0}k=k+1|0}while((k|0)<(d[j>>0]|0))}h=e+36|0;if((c[e+40>>2]|0)==0?(f=c[h>>2]|0,(f|0)!=0):0)do{g=f;f=c[f+4>>2]|0;if(g)Sc(g)}while((f|0)!=0);c[h>>2]=0;c[e+44>>2]=0;a[e+56>>0]=0;c[e+48>>2]=0;c[e+8>>2]=0;f=e+32|0;ig(b,c[f>>2]|0);c[f>>2]=0;return}function Xm(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();k=r+4|0;o=r;p=c[d>>2]|0;m=c[d+8>>2]|0;n=c[p+16>>2]|0;l=(c[n+(m<<4)+12>>2]|0)+78|0;b[l>>1]=e[l>>1]&65531;l=p+65|0;do if(!(a[l>>0]|0))if(g){q=g+4|0;f=c[q>>2]|0;if(!f){Yp(d,c[g>>2]|0,0);h=0;break}h=g+8|0;s=c[h>>2]|0;if((s|0)!=0?(a[s>>0]|0)!=0:0){n=p+144|0;a[n>>0]=m;c[k>>2]=0;zn(f,k)|0;f=c[h>>2]|0;c[p+140>>2]=c[k>>2];q=p+146|0;a[q>>0]=0;eh(p,f,-1,0,0,o,0)|0;f=c[p+52>>2]|0;a[n>>0]=0;do if((f|0)!=0?(a[q>>0]|0)==0:0){c[d+12>>2]=f;if((f|0)==7){a[l>>0]=1;break}else if((f|0)==9)break;if((f&255|0)!=6){q=c[g>>2]|0;Yp(d,q,Oe(p)|0)}}while(0);id(c[o>>2]|0)|0;h=0;break}f=c[g>>2]|0;if(!f){Yp(d,0,0);h=0;break}f=Zp(p,f,c[n+(m<<4)>>2]|0)|0;if((f|0)!=0?(zn(c[q>>2]|0,f+40|0)|0)==0:0){Yp(d,c[g>>2]|0,13528);h=0}else h=0}else h=0;else{Yp(d,c[g>>2]|0,0);h=1}while(0);i=r;return h|0}function Ym(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();k=m;l=m+8|0;h=b+16|0;f=c[h>>2]|0;g=c[(c[f+(d<<4)+12>>2]|0)+32>>2]|0;if(g){f=g;do{_p(c[f+8>>2]|0);f=c[f>>2]|0}while((f|0)!=0);f=c[h>>2]|0}c[l>>2]=b;f=c[f+(d<<4)>>2]|0;c[l+4>>2]=f;do if(!(Wh(b,13384,f)|0))e=1;else{c[k>>2]=f;f=qh(b,13400,k)|0;if((f|0)!=0?(e=Me(b,f,23,l,0)|0,ig(b,f),(e|0)!=7):0)break;a[b+65>>0]=1;e=7}while(0);i=m;return e|0}function Zm(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;j=c[b+12>>2]|0;if(!j){h=b+4|0;g=b+8|0;i=0}else{h=a[e>>0]|0;if(!(h<<24>>24))h=0;else{g=e;i=h;h=0;do{g=g+1|0;h=h<<3^h^(d[9328+(i&255)>>0]|0);i=a[g>>0]|0}while(i<<24>>24!=0)}i=(h>>>0)%((c[b>>2]|0)>>>0)|0;h=j+(i<<3)|0;g=j+(i<<3)+4|0}h=c[h>>2]|0;g=c[g>>2]|0;c[f>>2]=i;a:do if(!h)g=0;else while(1){h=h+-1|0;if(!($c(c[g+12>>2]|0,e)|0))break a;if(!h){g=0;break}else g=c[g>>2]|0}while(0);return g|0}function _m(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))ba();t=u;s=u+12|0;a:do if((g|0)>0){q=b+16|0;r=b+4|0;p=(e|0)==0;h=f;e=g;while(1){m=e+-1|0;if(!(c[q>>2]|0))break a;if((h|0)<1){h=e;e=5;break}if(aq(b,h)|0)break a;if(vg(c[r>>2]|0,h,s,0)|0){e=8;break}n=c[s>>2]|0;o=c[n+4>>2]|0;do if(p)if((m|0)>0?(a[(c[b>>2]|0)+17>>0]|0)!=0:0){$m(b,d[o+1>>0]<<16|d[o>>0]<<24|d[o+2>>0]<<8|d[o+3>>0],4,h);e=m}else e=m;else{l=d[o+5>>0]<<16|d[o+4>>0]<<24|d[o+6>>0]<<8|d[o+7>>0];k=c[b>>2]|0;if(a[k+17>>0]|0){$m(b,h,2,0);k=c[b>>2]|0}if((l|0)>(((c[k+36>>2]|0)/4|0)+-2|0)){c[t>>2]=h;bn(b,44640,t);e=e+-2|0;break}b:do if((l|0)>0){e=0;while(1){h=e<<2;h=d[o+(h+9)>>0]<<16|d[o+(h+8)>>0]<<24|d[o+(h+10)>>0]<<8|d[o+(h+11)>>0];if(a[k+17>>0]|0)$m(b,h,2,0);aq(b,h)|0;e=e+1|0;if((e|0)==(l|0))break b;k=c[b>>2]|0}}while(0);e=m-l|0}while(0);h=d[o+1>>0]<<16|d[o>>0]<<24|d[o+2>>0]<<8|d[o+3>>0];if(n)xg(n);if((e|0)<=0)break a}if((e|0)==5){c[t>>2]=h;c[t+4>>2]=g;c[t+8>>2]=f;bn(b,44552,t);break}else if((e|0)==8){c[t>>2]=h;bn(b,44616,t);break}}while(0);i=u;return}function $m(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+32|0;if((i|0)>=(j|0))ba();l=n;h=n+24|0;k=n+20|0;g=dp(c[b>>2]|0,d,h,k)|0;if((g|0)==7|(g|0)==3082){c[b+24>>2]=1;m=3}else if(!g){h=a[h>>0]|0;g=c[k>>2]|0;if(!((g|0)==(f|0)?h<<24>>24==e<<24>>24:0)){c[l>>2]=d;c[l+4>>2]=e&255;c[l+8>>2]=f;c[l+12>>2]=h&255;c[l+16>>2]=g;bn(b,44496,l)}}else m=3;if((m|0)==3){c[l>>2]=d;bn(b,44464,l)}i=n;return}function an(f,g,h,k){f=f|0;g=g|0;h=h|0;k=k|0;var 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;Z=i;i=i+64|0;if((i|0)>=(j|0))ba();S=Z+40|0;o=Z+56|0;N=Z+32|0;O=Z+24|0;K=Z;X=N;c[X>>2]=0;c[X+4>>2]=0;X=O;c[X>>2]=0;c[X+4>>2]=0;X=f+28|0;Y=c[X>>2]|0;T=f+32|0;U=c[T>>2]|0;V=f+36|0;W=c[V>>2]|0;P=c[f>>2]|0;J=P+36|0;Q=c[J>>2]|0;if((g|0)!=0?(aq(f,g)|0)==0:0){c[X>>2]=43768;c[T>>2]=g;p=$k(P,g,o,0)|0;do if(!p){R=c[o>>2]|0;a[R>>0]=0;p=Xp(R)|0;if(p){c[S>>2]=p;bn(f,43824,S);if(!R){l=-1;break}xg(c[R+68>>2]|0);l=-1;break}w=f+16|0;L=R+18|0;p=b[L>>1]|0;a:do if(!(p<<16>>16)){q=R+5|0;p=0;l=0}else{x=R+56|0;y=R+20|0;z=R+64|0;A=K+12|0;B=R+2|0;C=K+16|0;D=Q+-5|0;E=Q+-4|0;F=P+17|0;G=R+5|0;t=0;u=0;while(1){if(!(c[w>>2]|0)){q=G;l=t;break a}c[X>>2]=43864;c[T>>2]=g;c[V>>2]=u;o=c[x>>2]|0;p=u<<1;q=c[z>>2]|0;p=(d[q+p>>0]<<8|d[q+(p|1)>>0])&e[y>>1];q=o+p|0;np(R,q,K);r=c[A>>2]|0;if(a[B>>0]|0){l=K;v=c[l>>2]|0;l=c[l+4>>2]|0;if(u){n=O;m=c[n>>2]|0;n=c[n+4>>2]|0;if(!((l|0)>(n|0)|(l|0)==(n|0)&v>>>0>m>>>0)){s=S;c[s>>2]=v;c[s+4>>2]=l;s=S+8|0;c[s>>2]=m;c[s+4>>2]=n;bn(f,43896,S)}}else{m=O;c[m>>2]=v;c[m+4>>2]=l;m=N;c[m>>2]=v;c[m+4>>2]=l}m=O;c[m>>2]=v;c[m+4>>2]=l}v=c[C>>2]|0;l=v&65535;if(r>>>0>l>>>0?(H=(v>>>16)+p|0,I=o+H|0,I>>>0<=((c[x>>2]|0)+(c[J>>2]|0)|0)>>>0):0){v=d[o+(H+1)>>0]<<16|d[I>>0]<<24|d[o+(H+2)>>0]<<8|d[o+(H+3)>>0];if(a[F>>0]|0)$m(f,v,3,g);_m(f,0,v,((D+r-l|0)>>>0)/(E>>>0)|0)}if(!(a[G>>0]|0)){s=d[o+(p+1)>>0]<<16|d[q>>0]<<24|d[o+(p+2)>>0]<<8|d[o+(p+3)>>0];if(a[F>>0]|0)$m(f,s,5,g);l=an(f,s,N,(u|0)==0?0:O)|0;if(!((u|0)<1|(l|0)==(t|0)))bn(f,43944,S)}else l=t;u=u+1|0;p=b[L>>1]|0;if((u|0)>=(p&65535|0)){q=G;break}else t=l}}while(0);if(!(a[q>>0]|0)){o=d[R+6>>0]|0;G=c[R+56>>2]|0;o=d[G+(o+9)>>0]<<16|d[G+(o+8)>>0]<<24|d[G+(o+10)>>0]<<8|d[G+(o+11)>>0];c[X>>2]=43976;c[T>>2]=g;if(a[P+17>>0]|0){$m(f,o,5,g);p=b[L>>1]|0}an(f,o,0,p<<16>>16!=0?O:0)|0;G=a[q>>0]|0;c[X>>2]=43768;c[T>>2]=g;if(G<<24>>24)M=34}else{c[X>>2]=43768;c[T>>2]=g;M=34}do if((M|0)==34?(a[R+2>>0]|0)!=0:0){o=(k|0)!=0;if(!h){if(!o)break;o=N;p=c[o>>2]|0;o=c[o+4>>2]|0;m=k;n=c[m>>2]|0;m=c[m+4>>2]|0;if((o|0)>(m|0)|(o|0)==(m|0)&p>>>0>n>>>0)break;G=S;c[G>>2]=p;c[G+4>>2]=o;G=S+8|0;c[G>>2]=n;c[G+4>>2]=m;bn(f,44200,S);break}if(!o){p=O;o=c[p>>2]|0;p=c[p+4>>2]|0;m=h;n=c[m>>2]|0;m=c[m+4>>2]|0;if(!((p|0)>(m|0)|(p|0)==(m|0)&o>>>0>n>>>0))break;G=S;c[G>>2]=o;c[G+4>>2]=p;G=S+8|0;c[G>>2]=n;c[G+4>>2]=m;bn(f,44008,S);break}o=N;p=c[o>>2]|0;o=c[o+4>>2]|0;m=h;n=c[m>>2]|0;m=c[m+4>>2]|0;if(!((o|0)>(m|0)|(o|0)==(m|0)&p>>>0>n>>>0)){G=S;c[G>>2]=p;c[G+4>>2]=o;G=S+8|0;c[G>>2]=n;c[G+4>>2]=m;bn(f,44072,S)}n=O;m=c[n>>2]|0;n=c[n+4>>2]|0;o=k;p=c[o>>2]|0;o=c[o+4>>2]|0;if((n|0)>(o|0)|(n|0)==(o|0)&m>>>0>p>>>0){G=S;c[G>>2]=m;c[G+4>>2]=n;n=S+8|0;c[n>>2]=p;c[n+4>>2]=o;bn(f,44136,S);n=O;m=c[n>>2]|0;n=c[n+4>>2]|0}G=h;c[G>>2]=m;c[G+4>>2]=n}while(0);t=c[R+56>>2]|0;u=d[R+6>>0]|0;v=Co(c[P+32>>2]|0)|0;c[X>>2]=0;if(v){s=((d[t+(u+5)>>0]<<8|d[t+(u+6)>>0])+65535&65535)+1|0;bw(v+s|0,0,Q-s|0)|0;bw(v|0,1,s|0)|0;s=d[t+(u+3)>>0]<<8|d[t+(u+4)>>0];n=u+12-(d[q>>0]<<2)|0;if(s){m=Q+-4|0;r=0;do{q=n+(r<<1)|0;q=d[t+q>>0]<<8|d[t+(q+1)>>0];if((q|0)>(m|0))o=65536;else o=(Hp(R,t+q|0)|0)&65535;p=o+q|0;if((p|0)<=(Q|0)){if(o)do{p=p+-1|0;G=v+p|0;a[G>>0]=(a[G>>0]|0)+1<<24>>24}while((p|0)>(q|0))}else{c[X>>2]=0;c[S>>2]=r;c[S+4>>2]=g;bn(f,44264,S)}r=r+1|0}while((r|0)<(s|0))}m=d[t+(u+1)>>0]<<8|d[t+(u+2)>>0];if(m)do{n=d[t+(m+2)>>0]<<8|d[t+(m+3)>>0];if(n){n=n+m|0;do{n=n+-1|0;G=v+n|0;a[G>>0]=(a[G>>0]|0)+1<<24>>24}while((n|0)>(m|0))}m=d[t+m>>0]<<8|d[t+(m+1)>>0]}while((m|0)!=0);b:do if((Q|0)>0){n=0;m=0;while(1){o=a[v+m>>0]|0;if(o<<24>>24){if(o<<24>>24>1)break}else n=n+1|0;m=m+1|0;if((m|0)>=(Q|0))break b}c[S>>2]=m;c[S+4>>2]=g;bn(f,44312,S)}else n=0;while(0);m=d[t+(u+7)>>0]|0;if((n|0)!=(m|0)){c[S>>2]=n;c[S+4>>2]=m;c[S+8>>2]=g;bn(f,44352,S)}}else c[f+24>>2]=1;Xk(v);if(R)xg(c[R+68>>2]|0)}else{c[S>>2]=p;bn(f,43784,S);l=-1}while(0);c[X>>2]=Y;c[T>>2]=U;c[V>>2]=W;l=l+1|0}else l=0;i=Z;return l|0}function bn(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+224|0;if((i|0)>=(j|0))ba();h=m;k=m+8|0;l=m+24|0;f=b+16|0;g=c[f>>2]|0;if(g){c[f>>2]=g+-1;f=b+20|0;c[f>>2]=(c[f>>2]|0)+1;c[k>>2]=e;e=b+40|0;if(c[b+52>>2]|0)Ok(e,43760,1);f=c[b+28>>2]|0;if(f){g=c[b+36>>2]|0;c[h>>2]=c[b+32>>2];c[h+4>>2]=g;Yc(200,l,f,h)|0;f=l;while(1)if(!(a[f>>0]|0))break;else f=f+1|0;Ok(e,l,f-l&1073741823)}og(e,1,d,k);if((a[b+65>>0]|0)==1)c[b+24>>2]=1}i=m;return}function cn(b){b=b|0;var d=0,e=0;d=b+8|0;e=c[d>>2]|0;do if((e|0)!=(c[b+4>>2]|0))if((a[b+24>>0]|0)==1){ig(c[b>>2]|0,e);break}else{Sc(e);break}while(0);c[d>>2]=0;return}function dn(d){d=d|0;var f=0,g=0,h=0,i=0;g=c[d+32>>2]|0;i=d+8|0;if(!((b[i>>1]&9312)==0?(c[d+24>>2]|0)==0:0))Mg(d);f=ih(g,64,0)|0;h=d+20|0;c[h>>2]=f;if(!(a[g+65>>0]|0)){do if(!g)f=hc[c[8744+48>>2]&127](f)|0;else{if((c[g+276>>2]|0)>>>0<=f>>>0?(c[g+280>>2]|0)>>>0>f>>>0:0){f=e[g+248>>1]|0;break}f=hc[c[8744+48>>2]&127](f)|0}while(0);c[d+24>>2]=f;h=c[h>>2]|0;c[h>>2]=0;c[h+4>>2]=g;c[h+8>>2]=0;c[h+12>>2]=0;c[h+20>>2]=0;c[h+16>>2]=h+32;b[h+24>>1]=(f+1048544|0)>>>4;b[h+26>>1]=1;c[h+28>>2]=0;c[d>>2]=h;b[i>>1]=32}else{b[i>>1]=1;c[d+24>>2]=0}return}function en(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;i=kn(a)|0;if(i){j=i;c[j>>2]=d;c[j+4>>2]=f;c[i+8>>2]=0;j=a+12|0;h=c[j>>2]|0;if(!h)c[a+8>>2]=i;else{a=a+26|0;g=e[a>>1]|0;if((g&1|0)!=0?(k=h,l=c[k+4>>2]|0,!((l|0)<(f|0)|((l|0)==(f|0)?(c[k>>2]|0)>>>0<d>>>0:0))):0)b[a>>1]=g&65534;c[h+8>>2]=i}c[j>>2]=i}return}function fn(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=i;i=i+160|0;if((i|0)>=(j|0))ba();g=h;bw(g|0,0,160)|0;a:do if(!a){a=0;b=0}else{b=0;while(1){d=a+8|0;f=c[d>>2]|0;c[d>>2]=0;if(!b)b=g;else{d=b;b=g;e=0;do{a=hn(d,a)|0;c[b>>2]=0;e=e+1|0;b=g+(e<<2)|0;d=c[b>>2]|0}while((d|0)!=0)}c[b>>2]=a;if(!f){a=0;b=0;break a}a=f;b=c[g>>2]|0}}while(0);do{a=hn(a,c[g+(b<<2)>>2]|0)|0;b=b+1|0}while((b|0)!=40);i=h;return a|0}function gn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();e=g;f=c[a+12>>2]|0;if(!f)c[b>>2]=a;else{gn(f,b,e);c[(c[e>>2]|0)+8>>2]=a}e=a+8|0;f=c[e>>2]|0;if(!f)c[d>>2]=a;else gn(f,e,d);i=g;return}function hn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();l=m;d=(a|0)!=0;a:do if(d&(b|0)!=0){e=a;a=l;while(1){h=e;g=c[h>>2]|0;h=c[h+4>>2]|0;while(1){f=b;d=c[f>>2]|0;f=c[f+4>>2]|0;if((h|0)<(f|0)|(h|0)==(f|0)&g>>>0<d>>>0){k=4;break}if(!((f|0)<(h|0)|(f|0)==(h|0)&d>>>0<g>>>0))break;c[a+8>>2]=b;d=c[b+8>>2]|0;if(!d){f=0;d=1;break a}else{a=b;b=d}}if((k|0)==4){k=0;c[a+8>>2]=e;a=e}e=c[e+8>>2]|0;d=(e|0)!=0;if(!(d&(b|0)!=0)){f=b;b=a;break}}}else{f=b;e=a;b=l}while(0);c[b+8>>2]=d?e:f;i=m;return c[l+8>>2]|0}function jn(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;d=a+8|0;b=c[d>>2]|0;c[e>>2]=b;c[d>>2]=0;c[a+12>>2]=0;if(!b)b=a;else{d=1;while(1){g=b+8|0;c[e>>2]=c[g>>2];c[b+12>>2]=a;c[g>>2]=bq(e,d)|0;a=c[e>>2]|0;if(!a)break;else{g=b;b=a;d=d+1|0;a=g}}}i=f;return b|0}function kn(a){a=a|0;var d=0,e=0,f=0,g=0;f=a+24|0;d=b[f>>1]|0;if(!(d<<16>>16)){d=ih(c[a+4>>2]|0,1016,0)|0;if(!d)d=0;else{c[d>>2]=c[a>>2];c[a>>2]=d;d=d+8|0;c[a+16>>2]=d;b[f>>1]=63;e=62;g=5}}else{e=d+-1<<16>>16;d=c[a+16>>2]|0;g=5}if((g|0)==5){b[f>>1]=e;c[a+16>>2]=d+16}return d|0}function ln(d){d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;q=i;i=i+16|0;if((i|0)>=(j|0))baba();l=m;if(!b)g=0;else{k=b+4|0;g=c[k>>2]|0;g=nc[c[(c[g>>2]|0)+28>>2]&127](g,4)|0;if(!g){h=b+43|0;if(!(a[h>>0]|0))a[h>>0]=1;g=Pn(b,0,0,0,d,e,f,0,0)|0;if(!g){c[l>>2]=-1;g=c[k>>2]|0;Yb[c[(c[g>>2]|0)+40>>2]&63](g,10,l)|0;if((c[l>>2]|0)==1){g=b+16|0;d=c[g+4>>2]|0;if((d|0)>-1|(d|0)==-1&(c[g>>2]|0)>>>0>4294967295){Vo(b,0,0);e=0;g=0}else{e=0;g=0}}else{e=1;g=0}}else e=0}else e=0;cq(b,e);d=c[b+8>>2]|0;h=c[d>>2]|0;if(h){hc[c[h+4>>2]&127](d)|0;c[d>>2]=0}if(e){d=c[3164]|0;if(d)jc[d&3]();d=c[b>>2]|0;Yb[c[d+28>>2]&63](d,c[b+100>>2]|0,0)|0;d=c[3166]|0;if(d)jc[d&3]()}Sc(c[b+32>>2]|0);Sc(b)}i=m;return g|0}function on(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;k=b+5|0;g=a[k>>0]|0;if(!((a[b+15>>0]|0)!=0?!((e|0)==2|(e|0)==4):0))h=3;do if(((h|0)==3?(f=g&255,(f|0)!=(e|0)):0)?(a[k>>0]=e,(a[b+4>>0]|0)==0&(f&5|0)==1&(e&1|0)==0):0){f=c[b+64>>2]|0;g=c[f>>2]|0;if(g){hc[c[g+4>>2]&127](f)|0;c[f>>2]=0}j=b+17|0;if((d[j>>0]|0)>1){f=c[b>>2]|0;Yb[c[f+28>>2]&63](f,c[b+172>>2]|0,0)|0;break}g=b+16|0;f=a[g>>0]|0;i=f<<24>>24==0;if(i){e=_k(b)|0;h=a[g>>0]|0}else{h=f;e=0}if(h<<24>>24==1)e=bl(b,2)|0;if((e|0)==0?(g=c[b>>2]|0,Yb[c[g+28>>2]&63](g,c[b+172>>2]|0,0)|0,f<<24>>24==1):0){g=c[b+60>>2]|0;f=c[g>>2]|0;if(!f)break;if(!(a[b+13>>0]|0))nc[c[f+32>>2]&127](g,1)|0;if((a[j>>0]|0)==5)break;a[j>>0]=1;break}if(i)Jo(b)}while(0);return d[k>>0]|0}function pn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;e=g+4|0;do if(d)if(!(eh(a,d,-1,0,0,e,0)|0)){e=c[e>>2]|0;Od(e)|0;a=dq(a,e,b)|0;break}else{$g(b,a,Oe(a)|0,f);a=Jf(a)|0;break}else a=7;while(0);i=g;return a|0}function qn(a){a=a|0;var b=0;c[(c[a+4>>2]|0)+4>>2]=c[a>>2];b=Gg(a,0)|0;if(!b)b=Fg(a,0)|0;return b|0}function rn(e,f){e=e|0;f=f|0;var g=0,h=0;g=c[e+4>>2]|0;c[g+4>>2]=c[e>>2];e=f&255;if(b[g+22>>1]&2){f=g+17|0;if(((e|0)!=0|0)==(d[f>>0]|0|0))h=4;else f=8}else{f=g+17|0;h=4}if((h|0)==4){a[f>>0]=(e|0)!=0&1;a[g+18>>0]=(e|0)==2&1;f=0}return f|0}function sn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();e=g;d=eh(a,d,-1,0,0,e,0)|0;do if(!d){e=c[e>>2]|0;while(1){if((Od(e)|0)!=100){f=6;break}d=pn(a,b,be(e,0)|0)|0;if(d){f=5;break}}if((f|0)==5){dq(a,e,b)|0;break}else if((f|0)==6){d=dq(a,e,b)|0;break}}while(0);i=g;return d|0}function tn(a){a=a|0;var b=0;b=a+100|0;c[b>>2]=(c[b>>2]|0)+1;b=c[a+88>>2]|0;if(b)do{c[b+16>>2]=1;b=c[b+44>>2]|0}while((b|0)!=0);$o(c[a+204>>2]|0,0);return}function un(a){a=a|0;var b=0,d=0,e=0;e=a+304|0;b=c[e>>2]|0;if(!((b|0)%5|0)){b=(b<<2)+20|0;d=a+328|0;b=no(a,c[d>>2]|0,b,((b|0)<0)<<31>>31)|0;if(!b)b=7;else{a=b+(c[e>>2]<<2)|0;c[a+0>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;c[a+12>>2]=0;c[a+16>>2]=0;c[d>>2]=b;b=0}}else b=0;return b|0}function vn(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var 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;z=i;i=i+16|0;if((i|0)>=(j|0))ba();w=z;r=z+8|0;u=z+4|0;l=f+56|0;s=c[l>>2]|0;t=c[f+52>>2]|0;c[u>>2]=0;c[w>>2]=c[f>>2];y=qh(e,10344,w)|0;do if(!y)l=7;else{v=ih(e,28,0)|0;if(!v){ig(e,y);l=7;break}p=v+0|0;o=p+28|0;do{a[p>>0]=0;p=p+1|0}while((p|0)<(o|0));c[v>>2]=e;c[v+4>>2]=g;q=c[f+68>>2]|0;a:do if(q){p=c[e+20>>2]|0;if((p|0)>0){n=c[e+16>>2]|0;m=0;while(1){o=m+1|0;if((c[n+(m<<4)+12>>2]|0)==(q|0)){o=m;break a}if((o|0)<(p|0))m=o;else break}}else o=0}else o=-1e6;while(0);c[(c[l>>2]|0)+4>>2]=c[(c[e+16>>2]|0)+(o<<4)>>2];p=r+4|0;c[p>>2]=f;c[r>>2]=v;q=e+324|0;n=c[q>>2]|0;c[q>>2]=r;o=v+8|0;l=gc[h&7](e,c[g+8>>2]|0,t,s,o,u)|0;c[q>>2]=n;do if(!l){n=c[o>>2]|0;if(n){c[n+0>>2]=0;c[n+4>>2]=0;c[n+8>>2]=0;c[c[o>>2]>>2]=c[g>>2];c[v+12>>2]=1;if(c[p>>2]|0){c[w>>2]=c[f>>2];c[k>>2]=qh(e,28376,w)|0;wn(v);l=1;break}u=f+60|0;c[v+24>>2]=c[u>>2];c[u>>2]=v;u=f+38|0;l=b[u>>1]|0;if(l<<16>>16>0){t=f+4|0;m=c[t>>2]|0;h=0;while(1){r=c[m+(h*24|0)+12>>2]|0;if(r){n=r;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;o=n-r|0;q=o&1073741823;if((Bc(28424,r,6)|0)==0?(s=a[r+6>>0]|0,s<<24>>24==32|s<<24>>24==0):0)n=0;else x=24;b:do if((x|0)==24){x=0;if(!q)n=0;else{n=0;while(1){if((Bc(28432,r+n|0,7)|0)==0?(s=a[r+(n+7)>>0]|0,s<<24>>24==32|s<<24>>24==0):0)break;n=n+1|0;if((n|0)>=(q|0))break b}n=n+1|0}}while(0);if((n|0)<(q|0)){p=(a[r+(n+6)>>0]|0)!=0|6;m=n+p|0;if((m|0)<=(q|0)){o=(o&1073741823)+1-p|0;l=m;m=n;while(1){a[r+m>>0]=a[r+l>>0]|0;m=m+1|0;if((m|0)==(o|0))break;else l=m+p|0}}if((a[r+n>>0]|0)==0&(n|0)>0)a[r+(n+-1)>>0]=0;m=c[t>>2]|0;l=m+(h*24|0)+23|0;a[l>>0]=d[l>>0]|2;l=b[u>>1]|0}}h=h+1|0;if((h|0)>=(l<<16>>16|0)){l=0;break}}}else l=0}else l=0}else if((l|0)==7){a[e+65>>0]=1;x=11}else x=11;while(0);if((x|0)==11){m=c[u>>2]|0;if(!m){c[w>>2]=y;c[k>>2]=qh(e,28344,w)|0}else{c[w>>2]=m;c[k>>2]=qh(e,10344,w)|0;Sc(c[u>>2]|0)}ig(e,v)}ig(e,y)}while(0);i=z;return l|0}function wn(a){a=a|0;var b=0,d=0,e=0;b=c[a>>2]|0;e=a+12|0;d=(c[e>>2]|0)+-1|0;c[e>>2]=d;if(!d){d=c[a+8>>2]|0;if(d)hc[c[(c[d>>2]|0)+16>>2]&127](d)|0;ig(b,a)}return}function xn(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=f+10|0;i=g<<24>>24==1;if((a[s>>0]|0)==1|i){o=f+12|0;h=c[o>>2]|0;if(i){i=h&-2;c[o>>2]=i;l=i;i=i<<1|1}else{l=h;i=(h<<1)+2|0}p=f+16|0;h=c[p>>2]|0;n=h+l|0;q=f+32|0;r=ih(c[q>>2]|0,i,((i|0)<0)<<31>>31)|0;if(!r)h=7;else{i=a[s>>0]|0;if(i<<24>>24==2)if((l|0)>0){i=r;do{j=d[h>>0]|0;l=h+2|0;m=d[h+1>>0]<<8;k=m|j;if((m&63488|0)==55296&l>>>0<n>>>0){k=(k<<10&983040)+65536|j<<10&64512|d[l>>0]|d[h+3>>0]<<8&768;h=h+4|0}else h=l;do if(k>>>0>=128){if(k>>>0<2048){a[i>>0]=k>>>6&31|192;a[i+1>>0]=k&63|128;i=i+2|0;break}if(k>>>0<65536){a[i>>0]=k>>>12&15|224;a[i+1>>0]=k>>>6&63|128;a[i+2>>0]=k&63|128;i=i+3|0;break}else{a[i>>0]=k>>>18&7|240;a[i+1>>0]=k>>>12&63|128;a[i+2>>0]=k>>>6&63|128;a[i+3>>0]=k&63|128;i=i+4|0;break}}else{a[i>>0]=k;i=i+1|0}while(0)}while(h>>>0<n>>>0);m=55}else{i=r;m=55}else if(i<<24>>24!=1)if((l|0)>0){i=r;do{m=d[h>>0]<<8;l=h+2|0;k=d[h+1>>0]|0;j=m|k;if((m&63488|0)==55296&l>>>0<n>>>0){j=(j<<10&983040)+65536|k<<10&64512|d[h+3>>0]|d[l>>0]<<8&768;h=h+4|0}else h=l;do if(j>>>0>=128){if(j>>>0<2048){a[i>>0]=j>>>6&31|192;a[i+1>>0]=j&63|128;i=i+2|0;break}if(j>>>0<65536){a[i>>0]=j>>>12&15|224;a[i+1>>0]=j>>>6&63|128;a[i+2>>0]=j&63|128;i=i+3|0;break}else{a[i>>0]=j>>>18&7|240;a[i+1>>0]=j>>>12&63|128;a[i+2>>0]=j>>>6&63|128;a[i+3>>0]=j&63|128;i=i+4|0;break}}else{a[i>>0]=j;i=i+1|0}while(0)}while(h>>>0<n>>>0);m=55}else{i=r;m=55}else{i=(l|0)>0;if(g<<24>>24==2)if(i){i=r;l=h;while(1){h=l+1|0;j=a[l>>0]|0;k=j&255;if((j&255)>191){k=d[15360+(k+-192)>>0]|0;a:do if((h|0)==(n|0))h=n;else while(1){j=a[h>>0]|0;if((j&-64)<<24>>24!=-128)break a;l=l+2|0;k=j&63|k<<6;if((l|0)==(n|0)){h=n;break}else{j=h;h=l;l=j}}while(0);if(!(k>>>0<128|(k&-2048|0)==55296|(k&-2|0)==65534))if(k>>>0<65536)m=22;else{l=k+-65536|0;a[i>>0]=l>>>10&192|k>>>10&63;a[i+1>>0]=l>>>18&3|216;a[i+2>>0]=k;a[i+3>>0]=k>>>8&3|220;i=i+4|0}else{k=65533;m=22}}else m=22;if((m|0)==22){m=0;a[i>>0]=k;a[i+1>>0]=k>>>8;i=i+2|0}if(h>>>0<n>>>0)l=h;else break}}else i=r;else if(i){i=r;do{l=h+1|0;k=a[h>>0]|0;j=k&255;if((k&255)>191){j=d[15360+(j+-192)>>0]|0;b:do if((l|0)==(n|0))h=n;else{k=h;h=l;while(1){l=a[h>>0]|0;if((l&-64)<<24>>24!=-128)break b;k=k+2|0;j=l&63|j<<6;if((k|0)==(n|0)){h=n;break}else{l=h;h=k;k=l}}}while(0);if(!(j>>>0<128|(j&-2048|0)==55296|(j&-2|0)==65534))if(j>>>0<65536)m=31;else{l=j+-65536|0;a[i>>0]=l>>>18&3|216;a[i+1>>0]=l>>>10&192|j>>>10&63;a[i+2>>0]=j>>>8&3|220;a[i+3>>0]=j;i=i+4|0}else{j=65533;m=31}}else{h=l;m=31}if((m|0)==31){m=0;a[i>>0]=j>>>8;a[i+1>>0]=j;i=i+2|0}}while(h>>>0<n>>>0)}else i=r;c[o>>2]=i-r;a[i>>0]=0;i=i+1|0}if((m|0)==55)c[o>>2]=i-r;a[i>>0]=0;i=f+8|0;o=b[i>>1]|0;h=o&65535;if(!((o&9312)==0?(c[f+24>>2]|0)==0:0))Mg(f);b[i>>1]=h&29|514;a[s>>0]=g;c[p>>2]=r;c[f+20>>2]=r;h=c[q>>2]|0;do if(!h)h=hc[c[8744+48>>2]&127](r)|0;else{if((c[h+276>>2]|0)>>>0<=r>>>0?(c[h+280>>2]|0)>>>0>r>>>0:0){h=e[h+248>>1]|0;break}h=hc[c[8744+48>>2]&127](r)|0}while(0);c[f+24>>2]=h;h=0}}else if(!(Rl(f)|0)){h=c[f+16>>2]|0;q=c[f+12>>2]&-2;i=h+q|0;if((q|0)>0)do{p=a[h>>0]|0;q=h+1|0;a[h>>0]=a[q>>0]|0;h=h+2|0;a[q>>0]=p}while(h>>>0<i>>>0);a[s>>0]=g;h=0}else h=7;return h|0}function yn(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;i=a[b>>0]|0;g=i&255;a:do switch(g|0){case 13:case 12:case 10:case 9:case 32:{f=1;while(1)if(!(a[10368+(d[b+f>>0]|0)>>0]&1))break;else f=f+1|0;c[e>>2]=151;break}case 91:{f=1;while(1){g=a[b+f>>0]|0;if(!(g<<24>>24)){g=g&255;break}f=f+1|0;if(g<<24>>24==93){g=93;break}}c[e>>2]=(g|0)==93?27:150;break}case 37:{c[e>>2]=93;f=1;break}case 61:{c[e>>2]=79;f=(a[b+1>>0]|0)==61?2:1;break}case 62:{f=a[b+1>>0]|0;if(f<<24>>24==61){c[e>>2]=83;f=2;break a}else if(f<<24>>24==62){c[e>>2]=88;f=2;break a}else{c[e>>2]=80;f=1;break a}}case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:{j=51;break}case 40:{c[e>>2]=22;f=1;break}case 41:{c[e>>2]=23;f=1;break}case 34:case 39:case 96:{g=a[b+1>>0]|0;b:do if(g<<24>>24){f=1;while(1){if(g<<24>>24==i<<24>>24){f=f+1|0;if((a[b+f>>0]|0)!=i<<24>>24)break}f=f+1|0;g=a[b+f>>0]|0;if(!(g<<24>>24))break b}if(i<<24>>24==39){c[e>>2]=97;break a}else{c[e>>2]=27;break a}}else f=1;while(0);c[e>>2]=150;break}case 60:{f=a[b+1>>0]|0;if(f<<24>>24==60){c[e>>2]=87;f=2;break a}else if(f<<24>>24==61){c[e>>2]=81;f=2;break a}else if(f<<24>>24==62){c[e>>2]=78;f=2;break a}else{c[e>>2]=82;f=1;break a}}case 63:{c[e>>2]=135;f=1;while(1)if(((d[b+f>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break;break}case 58:case 35:case 64:case 36:{c[e>>2]=135;g=a[b+1>>0]|0;if(g<<24>>24){f=1;i=0;while(1){if(!(a[10368+(g&255)>>0]&70)){if(g<<24>>24==40&(i|0)>0){g=i;j=78;break}if(g<<24>>24!=58){g=i;break}g=f+1|0;if((a[b+g>>0]|0)==58)f=g;else{g=i;break}}else i=i+1|0;f=f+1|0;g=a[b+f>>0]|0;if(!(g<<24>>24)){g=i;break}}do if((j|0)==78){h=f;while(1){f=h+1|0;i=a[b+f>>0]|0;if(!(i<<24>>24))break;if(i<<24>>24!=41?(a[10368+(i&255)>>0]&1)==0:0)h=f;else{j=81;break}}if((j|0)==81)if(i<<24>>24==41){f=h+2|0;break}c[e>>2]=150}while(0);if(g)break a}else f=1;c[e>>2]=150;break}case 44:{c[e>>2]=26;f=1;break}case 38:{c[e>>2]=85;f=1;break}case 126:{c[e>>2]=96;f=1;break}case 33:if((a[b+1>>0]|0)==61){c[e>>2]=78;f=2;break a}else{c[e>>2]=150;f=2;break a}case 45:{if((a[b+1>>0]|0)==45)f=2;else{c[e>>2]=90;f=1;break a}while(1){g=a[b+f>>0]|0;if(g<<24>>24==0|g<<24>>24==10)break;f=f+1|0}c[e>>2]=151;break}case 88:case 120:{if((a[b+1>>0]|0)==39){c[e>>2]=134;f=2;while(1){g=a[b+f>>0]|0;if(!(a[10368+(g&255)>>0]&8))break;else f=f+1|0}if(g<<24>>24==39&(f&1|0)==0)g=1;else{c[e>>2]=150;while(1){g=a[b+f>>0]|0;if(g<<24>>24==39|g<<24>>24==0)break;f=f+1|0}g=g<<24>>24!=0}f=(g&1)+f|0}else j=98;break}case 59:{c[e>>2]=1;f=1;break}case 43:{c[e>>2]=89;f=1;break}case 124:if((a[b+1>>0]|0)==124){c[e>>2]=94;f=2;break a}else{c[e>>2]=86;f=1;break a}case 42:{c[e>>2]=91;f=1;break}case 47:{if((a[b+1>>0]|0)==42?(f=a[b+2>>0]|0,f<<24>>24!=0):0){f=f&255;g=3;while(1){i=a[b+g>>0]|0;if((f|0)==42&i<<24>>24==47){f=42;break}f=i&255;if(!(i<<24>>24))break;else g=g+1|0}c[e>>2]=151;f=((f|0)!=0&1)+g|0;break a}c[e>>2]=92;f=1;break}case 46:{if(((d[b+1>>0]|0)+-48|0)>>>0<10)j=51;else{c[e>>2]=122;f=1}break}default:j=98}while(0);c:do if((j|0)==51){c[e>>2]=132;f=a[b>>0]|0;if(f<<24>>24==48){g=a[b+1>>0]|0;if(g<<24>>24==88|g<<24>>24==120)if(!(a[10368+(d[b+2>>0]|0)>>0]&8))h=0;else{f=3;while(1)if(!(a[10368+(d[b+f>>0]|0)>>0]&8))break c;else f=f+1|0}else{f=48;h=0}}else h=0;while(1){g=h+1|0;if(((f&255)+-48|0)>>>0>=10){g=h;break}f=a[b+g>>0]|0;h=g}if(f<<24>>24==46){f=g;do{f=f+1|0;g=b+f|0}while(((d[g>>0]|0)+-48|0)>>>0<10);c[e>>2]=133;h=a[g>>0]|0;i=f}else{h=f;i=g}do if(h<<24>>24==69|h<<24>>24==101){g=a[b+(i+1)>>0]|0;if(((g&255)+-48|0)>>>0>=10){if(!(g<<24>>24==45|g<<24>>24==43)){g=h;f=i;break}f=i+2|0;if(((d[b+f>>0]|0)+-48|0)>>>0>=10){g=h;f=i;break}}else f=i+2|0;while(1){g=b+f|0;if(((d[g>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break}c[e>>2]=133;g=a[g>>0]|0}else{g=h;f=i}while(0);if(a[10368+(g&255)>>0]&70)do{c[e>>2]=150;f=f+1|0}while((a[10368+(d[b+f>>0]|0)>>0]&70)!=0)}else if((j|0)==98){if(!(a[10368+g>>0]&70)){c[e>>2]=150;f=1;break}else f=1;while(1)if(!(a[10368+(d[b+f>>0]|0)>>0]&70))break;else f=f+1|0;c[e>>2]=bi(b,f)|0}while(0);return f|0}function zn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;f=a[b>>0]|0;if(f<<24>>24==45){b=b+1|0;i=1;j=13}else if(f<<24>>24==43){b=b+1|0;i=0;j=13}else if((f<<24>>24==48?(f=a[b+1>>0]|0,f<<24>>24==88|f<<24>>24==120):0)?(g=b+2|0,e=a[g>>0]|0,(a[10368+(e&255)>>0]&8)!=0):0){while(1){f=g+1|0;if(e<<24>>24!=48)break;g=f;e=a[f>>0]|0}if(!(a[10368+(e&255)>>0]&8)){e=0;f=0}else{h=e;b=0;f=0;do{e=h<<24>>24;f=(0-(e>>>6&1)&9)+e&15|f<<4;b=b+1|0;h=a[g+b>>0]|0;e=(a[10368+(h&255)>>0]&8)==0}while((b|0)<8&(e^1));e=e^1}if((f|0)<0|e)e=0;else{c[d>>2]=f;e=1}}else{i=0;j=13}a:do if((j|0)==13){e=0;f=0;h=0;while(1){g=(a[b+h>>0]|0)+-48|0;if(g>>>0>=10)break;f=ow(e|0,f|0,10,0)|0;e=fw(g|0,((g|0)<0)<<31>>31|0,f|0,C|0)|0;h=h+1|0;if((h|0)>=11){e=0;break a}else f=C}g=$v(e|0,f|0,i|0,0)|0;b=C;if((b|0)>0|(b|0)==0&g>>>0>2147483647)e=0;else{if(i)e=$v(0,0,e|0,f|0)|0;c[d>>2]=e;e=1}}while(0);return e|0}function An(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();g=f;c[g>>2]=e;og(a,b,d,g);i=f;return}function Bn(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var 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,D=0,E=0,F=0;F=i;i=i+16|0;if((i|0)>=(j|0))baba();g=h;e=b+73|0;if((a[e>>0]|0)!=4){a[e>>0]=0;f=b+56|0;d=b+48|0;d=Cp(b,c[f>>2]|0,c[d>>2]|0,c[d+4>>2]|0,0,g)|0;if(!d){Sc(c[f>>2]|0);c[f>>2]=0;f=b+68|0;d=c[f>>2]|c[g>>2];c[f>>2]=d;if((d|0)!=0?(a[e>>0]|0)==1:0){a[e>>0]=2;d=0}else d=0}}else d=c[b+68>>2]|0;i=h;return d|0}function Hn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=c[a+8>>2]|0;a:do if(!a)a=0;else{e=(b|0)==0;while(1){if((a|0)!=(d|0)){if(e)break;if((c[a+60>>2]|0)==(b|0))break}a=c[a+8>>2]|0;if(!a){a=0;break a}}a=Bl(a,b,d)|0}while(0);return a|0}function In(b){b=b|0;var e=0,f=0,g=0,h=0;f=c[b>>2]|0;g=f+1|0;c[b>>2]=g;h=a[f>>0]|0;e=h&255;if((h&255)<=191)return e|0;e=d[15360+(e+-192)>>0]|0;if((a[g>>0]&-64)<<24>>24==-128)while(1){f=f+2|0;c[b>>2]=f;e=(d[g>>0]|0)&63|e<<6;if((a[f>>0]&-64)<<24>>24==-128){h=g;g=f;f=h}else break}return (e>>>0<128|(e&-2048|0)==55296|(e&-2|0)==65534?65533:e)|0}function Jn(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;if((c|0)>-1)g=b+c|0;else g=-1;c=a[b>>0]|0;if(c<<24>>24!=0&g>>>0>b>>>0){d=c;c=0;do{f=b+1|0;if((d&255)>191){e=b;b=f;while(1){d=a[b>>0]|0;if((d&-64)<<24>>24==-128){d=b;b=e+2|0;e=d}else break}}else{d=a[f>>0]|0;b=f}c=c+1|0}while(d<<24>>24!=0&b>>>0<g>>>0)}else c=0;return c|0}function Kn(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|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;x=i;i=i+48|0;if((i|0)>=(j|0))ba();t=x+32|0;u=x+16|0;v=x;k=c[d>>2]|0;if((k|0)<0){c[d>>2]=0;c[d+4>>2]=-1;b[d+12>>1]=0;a[d+14>>0]=0;k=0}p=g;o=c[p+4>>2]|0;q=v;c[q>>2]=c[p>>2];c[q+4>>2]=o;q=d+8|0;c[q>>2]=h;o=f&255;p=(f|0)==254;do{n=b[d+(k<<4)+12>>1]|0;h=n&65535;g=37184+(h<<1)|0;a:do if((n&65535)>429)w=6;else{n=o;while(1){m=b[g>>1]|0;l=m<<16>>16;if(m<<16>>16==-86){w=6;break a}m=n&255;k=l+m|0;if(k>>>0<=1496?(a[39336+k>>0]|0)==n<<24>>24:0){w=16;break}if(!(n<<24>>24))break;if((n&255)>=70){r=l;w=12;break}n=a[40840+m>>0]|0;if(!(n<<24>>24)){r=l;w=12;break}}if((w|0)==16){w=0;k=e[22184+(k<<1)>>1]|0;break}if(((w|0)==12?(w=0,s=r+70|0,(s|0)>-1):0)?(a[39336+s>>0]|0)==70:0){k=e[22184+(s<<1)>>1]|0;break}k=e[38048+(h<<1)>>1]|0}while(0);if((w|0)==6){w=0;k=e[38048+(h<<1)>>1]|0}if(k>>>0<642){w=18;break}if(k>>>0>=969){w=20;break}iq(d,k+-642|0);if(p)break;k=c[d>>2]|0}while((k|0)>-1);if((w|0)==18){gq(d,k,f,v);r=d+4|0;c[r>>2]=(c[r>>2]|0)+-1}else if((w|0)==20){c[u+0>>2]=c[v+0>>2];c[u+4>>2]=c[v+4>>2];c[u+8>>2]=c[v+8>>2];r=c[q>>2]|0;c[t>>2]=u;ph(r,20432,t);c[q>>2]=r;hq(d,o,v)}i=x;return}function Ln(b){b=b|0;var d=0;d=c[b>>2]|0;if((d|0)>=0){hq(b,a[b+(d<<4)+14>>0]|0,b+(d<<4)+16|0);c[b>>2]=(c[b>>2]|0)+-1}return}function Mn(a,b){a=a|0;b=b|0;var d=0;if(b){if((c[b>>2]|0)>0){d=0;do{Jk(a,c[b+(d<<4)+12>>2]|0);Ik(a,c[b+(d<<4)+16>>2]|0,1);ig(a,c[b+(d<<4)+8>>2]|0);d=d+1|0}while((d|0)<(c[b>>2]|0))}ig(a,b)}return}function Nn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+328|0;d=c[h>>2]|0;if(d){i=a+304|0;if((c[i>>2]|0)>0){f=0;do{e=c[d+(f<<2)>>2]|0;d=c[e+8>>2]|0;if((d|0)!=0?(g=c[(c[d>>2]|0)+b>>2]|0,(g|0)!=0):0)hc[g&127](d)|0;c[e+20>>2]=0;wn(e);f=f+1|0;d=c[h>>2]|0}while((f|0)<(c[i>>2]|0))}ig(a,d);c[i>>2]=0;c[h>>2]=0}return}function On(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0;do if((d|0)==-2)if(!(c[a+12>>2]|0))d=(c[a+16>>2]|0)==0?0:6;else d=6;else{h=b[a>>1]|0;g=h<<16>>16;if(!((g|0)!=(d|0)&h<<16>>16>-1)){h=(g|0)==(d|0)?4:1;g=f&255;d=e[a+2>>1]|0;if((g|0)==(d&3|0)){d=h|2;break}else return ((d&g)>>>1&1)+h|0}else d=0}while(0);return d|0}
10 function qc(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+15&-16;if((i|0)>=(j|0))ba();return b|0}function rc(){return i|0}function sc(a){a=a|0;i=a}function tc(a,b){a=a|0;b=b|0;if(!n){n=a;o=b}}function uc(b){b=b|0;a[k>>0]=a[b>>0];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 vc(b){b=b|0;a[k>>0]=a[b>>0];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 wc(a){a=a|0;C=a}function xc(){return C|0}function yc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();e=h+4|0;f=h;g=0;a:while(1){c[e>>2]=0;c[f>>2]=0;a[280]=0;if(Nf(14640,e)|0){d=4;break}d=c[e>>2]|0;b=0;do{if(Me(d,c[8+(b<<2)>>2]|0,17,0,f)|0){d=7;break a}b=b+1|0;d=c[e>>2]|0}while((b|0)!=5);pf(d)|0;if(Wv(280,8504)|0){d=9;break}g=g+1|0;if((g|0)>=3){d=11;break}}if((d|0)==4)eb(8472,8488,47,8496);else if((d|0)==7)eb(8472,8488,50,8496);else if((d|0)==9)eb(8600,8488,53,8496);else if((d|0)==11){i=h;return 0}return 0}function zc(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;if((d|0)>0)while(1){d=d+-1|0;dw(280,c[f>>2]|0)|0;b=280+(cw(280)|0)|0;a[b>>0]=61;a[b+1>>0]=0;b=c[e>>2]|0;dw(280,((b|0)==0?20304:b)|0)|0;if((d|0)<=0)break;else{e=e+4|0;f=f+4|0}}return 0}function Ac(b){b=b|0;var e=0,f=0,g=0;g=(Bc(b,8640,7)|0)==0;g=g?b+7|0:b;if(!g)b=0;else{b=g;while(1)if(!(a[b>>0]|0))break;else b=b+1|0;b=b-g&1073741823}f=0;while(1){e=c[8648+(f<<2)>>2]|0;if((Bc(g,e,b)|0)==0?(a[10368+(d[e+b>>0]|0)>>0]&70)==0:0){b=1;break}f=f+1|0;if((f|0)>=4){b=0;break}}return b|0}function Bc(b,c,e){b=b|0;c=c|0;e=e|0;var f=0;a:do if(b)if(c)if((e|0)>0){f=b;while(1){b=a[f>>0]|0;if(!(b<<24>>24))break;if((a[9328+(b&255)>>0]|0)!=(a[9328+(d[c>>0]|0)>>0]|0))break;e=e+-1|0;if((e|0)<=0){e=0;break a}else{f=f+1|0;c=c+1|0}}if((e|0)>=1)e=(d[9328+(b&255)>>0]|0)-(d[9328+(d[c>>0]|0)>>0]|0)|0;else e=0}else e=0;else e=1;else e=((c|0)!=0)<<31>>31;while(0);return e|0}function Cc(a){a=a|0;if(a>>>0<4)a=c[8648+(a<<2)>>2]|0;else a=0;return a|0}function Dc(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();f=h;if(a>>>0<=9){g=c[8664+(a<<2)>>2]|0;f=b;c[f>>2]=g;c[f+4>>2]=0;f=8704+(a<<2)|0;a=d;c[a>>2]=c[f>>2];c[a+4>>2]=0;if(!e)f=0;else{c[f>>2]=g;f=0}}else{c[f>>2]=15033;c[f+4>>2]=10788;Zc(21,13648,f);f=21}i=h;return f|0}function Ec(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();f=h+8|0;g=h;a=Dc(a,f,g,e)|0;if(!a){c[b>>2]=c[f>>2];c[d>>2]=c[g>>2]}i=h;return a|0}function Fc(a,b,d,f,g){a=a|0;b=b|0;d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+16|0;if((i|0)>=(j|0))ba();n=p+4|0;l=p;switch(b|0){case 2:{c[n>>2]=0;o=a+20|0;g=c[o>>2]|0;h=(g|0)>0;if(h){l=c[a+16>>2]|0;k=0;do{b=c[l+(k<<4)+4>>2]|0;if(b)c[(c[b+4>>2]|0)+4>>2]=c[b>>2];k=k+1|0}while((k|0)!=(g|0));k=a+520|0;c[k>>2]=n;if(h){m=a+16|0;h=0;do{b=c[(c[m>>2]|0)+(h<<4)+12>>2]|0;if(b){l=hc[c[8744+52>>2]&127](16)|0;l=_((c[b+44>>2]|0)+(c[b+12>>2]|0)+(c[b+28>>2]|0)+(c[b+60>>2]|0)|0,l)|0;c[n>>2]=l+(c[n>>2]|0);l=hc[c[8744+48>>2]&127](c[b+20>>2]|0)|0;c[n>>2]=(c[n>>2]|0)+l;l=hc[c[8744+48>>2]&127](c[b+52>>2]|0)|0;c[n>>2]=(c[n>>2]|0)+l;l=hc[c[8744+48>>2]&127](c[b+36>>2]|0)|0;c[n>>2]=(c[n>>2]|0)+l;l=hc[c[8744+48>>2]&127](c[b+68>>2]|0)|0;c[n>>2]=(c[n>>2]|0)+l;l=c[b+48>>2]|0;if(l)do{fg(a,c[l+8>>2]|0);l=c[l>>2]|0}while((l|0)!=0);l=c[b+16>>2]|0;if(l)do{gg(a,c[l+8>>2]|0);l=c[l>>2]|0}while((l|0)!=0);g=c[o>>2]|0}h=h+1|0}while((h|0)<(g|0));h=c[n>>2]|0}else h=0}else{k=a+520|0;c[k>>2]=n;h=0}c[k>>2]=0;c[f>>2]=0;c[d>>2]=h;h=0;break}case 9:case 8:case 7:{o=a+20|0;l=c[o>>2]|0;if((l|0)>0){n=c[a+16>>2]|0;m=b+-7|0;k=(g|0)==0;h=0;b=l;g=0;while(1){l=c[n+(g<<4)+4>>2]|0;if(l){l=(c[c[l+4>>2]>>2]|0)+(m<<2)+184|0;h=(c[l>>2]|0)+h|0;if(k)l=b;else{c[l>>2]=0;l=c[o>>2]|0}}else l=b;g=g+1|0;if((g|0)>=(l|0))break;else b=l}}else h=0;c[f>>2]=0;c[d>>2]=h;h=0;break}case 0:{k=a+252|0;c[d>>2]=c[k>>2];h=a+256|0;c[f>>2]=c[h>>2];if(!g)h=0;else{c[h>>2]=c[k>>2];h=0}break}case 6:case 5:case 4:{c[d>>2]=0;h=a+(b+-4<<2)+260|0;c[f>>2]=c[h>>2];if(!g)h=0;else{c[h>>2]=0;h=0}break}case 1:{m=a+20|0;k=c[m>>2]|0;g=(k|0)>0;if(g){h=c[a+16>>2]|0;l=0;do{b=c[h+(l<<4)+4>>2]|0;if(b)c[(c[b+4>>2]|0)+4>>2]=c[b>>2];l=l+1|0}while((l|0)!=(k|0));if(g){b=a+16|0;l=0;h=0;while(1){g=c[(c[b>>2]|0)+(l<<4)+4>>2]|0;if(!g)g=k;else{o=c[c[g+4>>2]>>2]|0;a=o+152|0;n=(c[a>>2]|0)+60+(e[o+140>>1]|0)|0;n=_(hc[c[8744+128>>2]&127](c[(c[o+204>>2]|0)+40>>2]|0)|0,n)|0;o=hc[c[8744+48>>2]&127](o)|0;g=c[m>>2]|0;h=n+h+o+(c[a>>2]|0)|0}l=l+1|0;if((l|0)>=(g|0))break;else k=g}}else h=0}else h=0;c[d>>2]=h;c[f>>2]=0;h=0;break}case 3:{c[l>>2]=0;g=a+520|0;c[g>>2]=l;k=c[a+4>>2]|0;if(!k)h=0;else{do{hg(a,k);ig(a,k);k=c[k+52>>2]|0}while((k|0)!=0);h=c[l>>2]|0}c[g>>2]=0;c[f>>2]=0;c[d>>2]=h;h=0;break}case 10:{c[f>>2]=0;o=a+512|0;n=c[o+4>>2]|0;if((n|0)>0|(n|0)==0&(c[o>>2]|0)>>>0>0)h=1;else{h=a+504|0;a=c[h+4>>2]|0;h=(a|0)>0|(a|0)==0&(c[h>>2]|0)>>>0>0}c[d>>2]=h&1;h=0;break}default:h=1}i=p;return h|0}function Gc(a){a=a|0;var b=0;a:do if(!(Hc()|0)){b=c[2254]|0;if(!((b|0)==0|(a|0)==0))while(1){if(!(Wv(a,c[b+16>>2]|0)|0))break a;b=c[b+12>>2]|0;if(!b){b=0;break}}}else b=0;while(0);return b|0}function Hc(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();k=m;do if(!(c[2243]|0)){c[2245]=1;if(!(c[2246]|0)){if(!(c[2195]|0)){c[k>>2]=16496;hf(4,k)|0}b=9024|0;d=b+40|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(d|0));if(c[2187]|0)c[2256]=8;h=c[2234]|0;d=c[2235]|0;b=c[2236]|0;if((h|0)!=0&(d|0)>99&(b|0)>0){g=d&-8;c[2235]=g;c[2263]=h;c[2264]=b;f=b+-1|0;if((f|0)>0){b=h+(_(d>>>3,(b<<3)+-8|0)|0)|0;e=0;d=h;do{a=d;d=d+g|0;c[a>>2]=d;e=e+1|0}while((e|0)!=(f|0))}else b=h;c[b>>2]=0;c[2262]=b+4}else{c[2262]=0;c[2234]=0;c[2235]=0;c[2236]=0}if((c[2237]|0)==0|(c[2238]|0)<512|(c[2239]|0)<1){c[2237]=0;c[2238]=0;c[2239]=0}a=hc[c[8744+56>>2]&127](c[2202]|0)|0;if(a){b=9024|0;d=b+40|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(d|0));break}}c[2246]=1;if(!(c[2249]|0))c[2249]=8;a=(c[2248]|0)+1|0;c[2248]=a;if(!(c[2244]|c[2243])){c[2244]=1;b=10840|0;d=b+92|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(d|0));b=0;do{jg(10840,16608+(b*36|0)|0);b=b+1|0}while((b|0)!=59);b=0;do{jg(10840,19480+(b*36|0)|0);b=b+1|0}while((b|0)!=8);jg(10840,19256);jg(10840,19292|0);jg(10840,19328|0);if(!(c[2247]|0)){a=c[2214]|0;if(!a){c[k>>2]=16440;hf(18,k)|0;a=c[2214]|0}a=hc[a&127](c[2213]|0)|0;if(!a)l=28}else l=28;if((l|0)==28){c[2247]=1;a=Pc(10)|0;if(!a)a=7;else{Sc(a);Ic(9584,1)|0;Ic(9672|0,0)|0;Ic(9760|0,0)|0;Ic(9848|0,0)|0;a=c[2237]|0;b=c[2238]|0;d=c[2239]|0;if(c[3153]|0){k=b&-8;c[3154]=k;c[3161]=d;c[3155]=d;if((d|0)<=90){c[3156]=((d|0)/10|0)+1;c[3157]=a;c[3160]=0;c[3162]=0;if(d)l=33}else{c[3156]=10;c[3157]=a;c[3160]=0;c[3162]=0;l=33}if((l|0)==33){f=b>>>3;g=d<<3;h=_(f<<3,d+-1|0)|0;b=a;e=0;while(1){d=d+-1|0;c[b>>2]=e;if(!d)break;else{e=b;b=b+k|0}}b=a+(_(g,f)|0)|0;c[3160]=a+h;a=b}c[3158]=a}c[2243]=1;a=0}}c[2244]=0;b=c[2248]|0}else{b=a;a=0}c[2248]=b+-1;if((b|0)<2)c[2249]=0}else a=0;while(0);i=m;return a|0}function Ic(a,b){a=a|0;b=b|0;var d=0;d=Hc()|0;do if(!d){kg(a);d=c[2254]|0;if((b|0)!=0|(d|0)==0){c[a+12>>2]=d;c[2254]=a;d=0;break}else{c[a+12>>2]=c[d+12>>2];c[(c[2254]|0)+12>>2]=a;d=0;break}}while(0);return d|0}function Jc(a){a=a|0;kg(a);return 0}function Kc(a){a=a|0;return 0}function Lc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;do if(!(Hc()|0)){e=9032|0;d=c[e>>2]|0;e=c[e+4>>2]|0;if((b|0)>=0)if((b|0)>0|(b|0)==0&a>>>0>0){c[2260]=9;c[2261]=0;f=9032|0;c[f>>2]=a;c[f+4>>2]=b;c[2265]=(0>(b|0)|0==(b|0)&(c[2166]|0)>>>0>=a>>>0)&1;break}else{c[2265]=0;c[2258]=0;c[2259]=0;c[2260]=0;c[2261]=0;break}}else{e=-1;d=-1}while(0);C=e;return d|0}function Mc(){var a=0;a=c[2166]|0;C=((a|0)<0)<<31>>31;return a|0}function Nc(a){a=a|0;var b=0;b=(a|0)<0;Lc(b?0:a,b?0:((a|0)<0)<<31>>31)|0;return}function Oc(a){a=a|0;var b=0;b=c[2176]|0;if(a)c[2176]=c[2166];C=((b|0)<0)<<31>>31;return b|0}function Pc(a){a=a|0;if((Hc()|0)!=0|(a|0)<1)a=0;else a=mg(a,((a|0)<0)<<31>>31)|0;return a|0}function Qc(a,b){a=a|0;b=b|0;if(!(Hc()|0))a=mg(a,b)|0;else a=0;return a|0}function Rc(a){a=a|0;a=hc[c[8744+48>>2]&127](a)|0;C=((a|0)<0)<<31>>31;return a|0}function Sc(a){a=a|0;var b=0;do if(a)if(!(c[2186]|0)){_b[c[8744+40>>2]&31](a);break}else{b=hc[c[8744+48>>2]&127](a)|0;c[2166]=(c[2166]|0)-b;c[2175]=(c[2175]|0)+-1;_b[c[8744+40>>2]&31](a);break}while(0);return}function Tc(a,b){a=a|0;b=b|0;var c=0;if(!(Hc()|0)){c=(b|0)<0;b=ng(a,c?0:b,c?0:((b|0)<0)<<31>>31)|0}else b=0;return b|0}function Uc(a,b,c){a=a|0;b=b|0;c=c|0;if(!(Hc()|0))b=ng(a,b,c)|0;else b=0;return b|0}function Vc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+112|0;if((i|0)>=(j|0))ba();f=g+28|0;e=g;if(!(Hc()|0)){c[e+4>>2]=f;c[e+8>>2]=f;c[e>>2]=0;c[e+12>>2]=0;c[e+16>>2]=70;c[e+20>>2]=1e9;a[e+25>>0]=0;a[e+24>>0]=2;og(e,0,b,d);e=pg(e)|0}else e=0;i=g;return e|0}function Wc(a,b){a=a|0;b=b|0;var d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();d=e;if(!(Hc()|0)){c[d>>2]=b;d=Vc(a,d)|0}else d=0;i=e;return d|0}function Xc(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+32|0;if((i|0)>=(j|0))ba();g=h;if((b|0)>=1){c[g+4>>2]=d;c[g+8>>2]=d;c[g>>2]=0;c[g+12>>2]=0;c[g+16>>2]=b;c[g+20>>2]=0;a[g+25>>0]=0;a[g+24>>0]=0;og(g,0,e,f);d=pg(g)|0}i=h;return d|0}function Yc(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();g=f;c[g>>2]=e;a=Xc(a,b,d,g)|0;i=f;return a|0}function Zc(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+256|0;if((i|0)>=(j|0))ba();f=k+16|0;h=k+44|0;g=k;if(c[2250]|0){c[g>>2]=e;c[f+4>>2]=h;c[f+8>>2]=h;c[f>>2]=0;c[f+12>>2]=0;c[f+16>>2]=210;c[f+20>>2]=0;a[f+25>>0]=0;a[f+24>>0]=0;og(f,0,d,g);e=c[2250]|0;g=c[2251]|0;f=pg(f)|0;ic[e&63](g,b,f)}i=k;return}function _c(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;h=i;i=i+256|0;if((i|0)>=(j|0))ba();g=h;do if(!(Hc()|0)){if((b|0)<1|(e|0)==0){a[9064]=0;break}if(!(a[9064]|0)){a[9066]=0;a[9065]=0;f=(Hc()|0)==0;f=f?c[2254]|0:0;Yb[c[f+56>>2]&63](f,256,g)|0;f=0;do{a[9067+f>>0]=f;f=f+1|0}while((f|0)!=256);f=0;do{k=9067+f|0;m=(d[g+f>>0]|0)+(d[k>>0]|0)+(d[9066]|0)|0;a[9066]=m;m=9067+(m&255)|0;l=a[m>>0]|0;a[m>>0]=a[k>>0]|0;a[k>>0]=l;f=f+1|0}while((f|0)!=256);a[9064]=1}while(1){k=(a[9065]|0)+1<<24>>24;a[9065]=k;k=9067+(k&255)|0;g=a[k>>0]|0;f=g&255;l=(d[9066]|0)+f|0;a[9066]=l;a[k>>0]=a[9067+(l&255)>>0]|0;a[9067+(d[9066]|0)>>0]=g;a[e>>0]=a[9067+((d[9067+(d[9065]|0)>>0]|0)+f&255)>>0]|0;b=b+-1|0;if(!b)break;else e=e+1|0}}while(0);i=h;return}function $c(b,c){b=b|0;c=c|0;var e=0;if(b)if(!c)c=1;else{e=a[b>>0]|0;a:do if(!(e<<24>>24))e=0;else while(1){if((a[9328+(e&255)>>0]|0)!=(a[9328+(d[c>>0]|0)>>0]|0))break a;b=b+1|0;c=c+1|0;e=a[b>>0]|0;if(!(e<<24>>24)){e=0;break}}while(0);c=(d[9328+(e&255)>>0]|0)-(d[9328+(d[c>>0]|0)>>0]|0)|0}else c=((c|0)!=0)<<31>>31;return c|0}function ad(a){a=a|0;c[2241]=a;return 0}function bd(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))baba();z=E;p=E+16|0;s=E+12|0;w=E+8|0;B=b+24|0;g=c[B>>2]|0;h=c[g+4>>2]|0;c[h+4>>2]=c[g>>2];D=b+28|0;f=c[D>>2]|0;if(f>>>0<7?(30>>>(f&127)&1)==0:0){v=c[h>>2]|0;A=b+4|0;f=c[A>>2]|0;y=c[c[f+4>>2]>>2]|0;if((c[b>>2]|0)!=0?(a[h+20>>0]|0)==2:0){x=0;g=5}else t=5;do if((t|0)==5){h=b+12|0;if(!(c[h>>2]|0)){g=ug(f,2)|0;if(g){x=0;break}c[h>>2]=1;x=c[A>>2]|0;g=c[x+4>>2]|0;c[g+4>>2]=c[x>>2];g=c[(c[g+12>>2]|0)+56>>2]|0;c[b+8>>2]=d[g+41>>0]<<16|d[g+40>>0]<<24|d[g+42>>0]<<8|d[g+43>>0];g=c[B>>2]|0}if(!(a[g+8>>0]|0)){x=1;g=ug(g,0)|0}else{x=0;g=0}}while(0);l=c[(c[B>>2]|0)+4>>2]|0;u=c[l+32>>2]|0;o=c[(c[A>>2]|0)+4>>2]|0;r=c[o+32>>2]|0;o=(a[(c[o>>2]|0)+5>>0]|0)==5;f=(u|0)==(r|0)|(g|0)==0&o^1?g:8;l=c[l+44>>2]|0;h=(e|0)<0;a:do if(e){g=b+16|0;m=c[g>>2]|0;n=0;do{if(!(m>>>0<=l>>>0&(f|0)==0))break a;if((m|0)!=((((c[2514]|0)>>>0)/((c[(c[(c[B>>2]|0)+4>>2]|0)+32>>2]|0)>>>0)|0)+1|0)){f=vg(v,m,p,2)|0;if(!f){k=c[p>>2]|0;f=wg(b,m,c[k+4>>2]|0,0)|0;if(k)xg(k)}}else f=0;m=(c[g>>2]|0)+1|0;c[g>>2]=m;n=n+1|0}while(h|(n|0)<(e|0))}while(0);if(!f){c[b+36>>2]=l;f=c[b+16>>2]|0;c[b+32>>2]=l+1-f;if(f>>>0<=l>>>0){f=b+40|0;if(!(c[f>>2]|0)){A=(c[c[(c[B>>2]|0)+4>>2]>>2]|0)+88|0;c[b+44>>2]=c[A>>2];c[A>>2]=b;c[f>>2]=1;f=0}else f=0}else t=22}else if((f|0)==101)t=22;do if((t|0)==22){if(!l){g=c[A>>2]|0;f=c[g+4>>2]|0;c[f+4>>2]=c[g>>2];c[f+44>>2]=0;f=yg(f)|0;if((f|0)==0|(f|0)==101)l=1;else break}f=zg(c[A>>2]|0,1,(c[b+8>>2]|0)+1|0)|0;if(!f){g=c[b>>2]|0;if(g)Ag(g);if(o?(q=Bg(c[A>>2]|0,2)|0,(q|0)!=0):0){f=q;break}if((u|0)<(r|0)){g=(r|0)/(u|0)|0;g=(l+-1+g|0)/(g|0)|0;h=c[2514]|0;k=c[(c[(c[A>>2]|0)+4>>2]|0)+32>>2]|0;g=(((g|0)==(((h>>>0)/(k>>>0)|0)+1|0))<<31>>31)+g|0;b=((u|0)<0)<<31>>31;q=ow(l|0,((l|0)<0)<<31>>31|0,u|0,b|0)|0;o=C;e=c[y+60>>2]|0;n=c[y+24>>2]|0;b:do if(g>>>0<=n>>>0){f=0;while(1){if((g|0)!=(((h>>>0)/(k>>>0)|0)+1|0)){f=vg(y,g,s,0)|0;if(f)break b;h=c[s>>2]|0;f=Cg(h)|0;if(h)xg(h)}g=g+1|0;h=(f|0)==0;if(g>>>0>n>>>0|h^1)break;k=c[(c[(c[A>>2]|0)+4>>2]|0)+32>>2]|0;h=c[2514]|0}if(h)t=38}else t=38;while(0);if((t|0)==38)f=Dg(y,0,1)|0;h=c[2514]|0;l=h+r|0;m=((l|0)<0)<<31>>31;k=(m|0)<(o|0)|(m|0)==(o|0)&l>>>0<q>>>0;l=k?l:q;m=k?m:o;h=h+u|0;k=((h|0)<0)<<31>>31;g=(f|0)==0;if(g&((k|0)<(m|0)|(k|0)==(m|0)&h>>>0<l>>>0))do{c[w>>2]=0;f=mw(h|0,k|0,u|0,b|0)|0;f=fw(f|0,C|0,1,0)|0;f=vg(v,f,w,0)|0;g=c[w>>2]|0;if(!f)f=pc[c[(c[e>>2]|0)+12>>2]&31](e,c[g+4>>2]|0,u,h,k)|0;if(g)xg(g);h=fw(h|0,k|0,u|0,b|0)|0;k=C;g=(f|0)==0}while(g&((k|0)<(m|0)|(k|0)==(m|0)&h>>>0<l>>>0));if(!g)break;f=nc[c[(c[e>>2]|0)+24>>2]&127](e,z)|0;w=c[z+4>>2]|0;if((f|0)==0&((w|0)>(o|0)|((w|0)==(o|0)?(c[z>>2]|0)>>>0>q>>>0:0)))f=Yb[c[(c[e>>2]|0)+16>>2]&63](e,q,o)|0;if(f)break;f=Eg(y,0)|0}else{c[y+24>>2]=_((u|0)/(r|0)|0,l)|0;f=Dg(y,0,0)|0}if(!f){f=Fg(c[A>>2]|0,0)|0;f=(f|0)==0?101:f}}}while(0);if(x){Gg(c[B>>2]|0,0)|0;Fg(c[B>>2]|0,0)|0}f=(f|0)==3082?7:f;c[D>>2]=f}i=E;return f|0}function dd(a){a=a|0;var d=0,e=0,f=0,g=0,h=0;if(!a)d=0;else{h=c[a+20>>2]|0;e=c[a+24>>2]|0;d=c[e+4>>2]|0;c[d+4>>2]=c[e>>2];if(c[a>>2]|0){e=e+16|0;c[e>>2]=(c[e>>2]|0)+-1}if(c[a+40>>2]|0){d=(c[d>>2]|0)+88|0;while(1){e=c[d>>2]|0;if((e|0)==(a|0))break;else d=e+44|0}c[d>>2]=c[a+44>>2]}Hg(c[a+4>>2]|0,0,0);d=c[a+28>>2]|0;d=(d|0)==101?0:d;e=c[a>>2]|0;if(e){c[e+52>>2]=d;f=c[e+236>>2]|0;do if(f){g=f+8|0;if(!(b[g>>1]&9312)){b[g>>1]=1;break}else{rg(f);e=c[a>>2]|0;break}}while(0);Ig(e);if(c[a>>2]|0)Sc(a)}Ig(h)}return d|0}function ed(a){a=a|0;return c[a+32>>2]|0}function fd(a){a=a|0;return c[a+36>>2]|0}function gd(a){a=a|0;if((a|0)!=0?(b[a+88>>1]&256)!=0:0)a=c[a+168>>2]|0;else a=0;return a|0}function hd(a){a=a|0;if(!a)a=1;else a=(b[a+88>>1]&8)!=0;return a&1|0}function id(a){a=a|0;var b=0,d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();d=e;do if(a){b=c[a>>2]|0;if(!b){Zc(21,47360,d);c[d>>2]=68910;c[d+4>>2]=10788;Zc(21,13648,d);b=21;break}else{a=Kg(b,Jg(a)|0)|0;Ig(b);b=a;break}}else b=0;while(0);i=e;return b|0}function jd(b){b=b|0;var d=0,e=0;if(!b)b=0;else{d=Lg(b)|0;c[b+76>>2]=-1;c[b+80>>2]=0;a[b+86>>0]=2;c[b+40>>2]=-1108210269;c[b+92>>2]=0;c[b+72>>2]=1;a[b+87>>0]=-1;c[b+104>>2]=0;e=b+144|0;c[e>>2]=0;c[e+4>>2]=0;b=Kg(c[b>>2]|0,d)|0}return b|0}function kd(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+68|0;e=b[h>>1]|0;if(e<<16>>16>0){i=a+60|0;d=c[i>>2]|0;g=0;do{f=d+(g*40|0)|0;if(!((b[d+(g*40|0)+8>>1]&9312)==0?(c[d+(g*40|0)+24>>2]|0)==0:0)){Mg(f);d=c[i>>2]|0;e=b[h>>1]|0}b[d+(g*40|0)+8>>1]=1;g=g+1|0}while((g|0)<(e<<16>>16|0))}d=a+88|0;e=b[d>>1]|0;if((e&256)!=0?(c[a+188>>2]|0)!=0:0)b[d>>1]=e|8;return 0}function ld(a){a=a|0;var d=0;d=a+8|0;if(b[d>>1]&18){Ng(a)|0;b[d>>1]=e[d>>1]|0|16;if(!(c[a+12>>2]|0))d=0;else d=c[a+16>>2]|0}else d=Og(a,1)|0;return d|0}function md(a){a=a|0;return Og(a,1)|0}function nd(a){a=a|0;return Pg(a,1)|0}function od(a){a=a|0;return Pg(a,2)|0}function pd(a){a=a|0;return +(+Qg(a))}function qd(a){a=a|0;a=Rg(a)|0;return a|0}function rd(a){a=a|0;a=Rg(a)|0;return a|0}function sd(a){a=a|0;return Og(a,2)|0}function td(a){a=a|0;return Og(a,3)|0}function ud(a){a=a|0;return Og(a,2)|0}function vd(a){a=a|0;return d[10064+((e[a+8>>1]|0)&31)>>0]|0|0}function wd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Sg(a,b,c,0,d);return}function xd(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;if(f>>>0>0|(f|0)==0&e>>>0>2147483647){e=g;if(!((e|0)==0|(e|0)==-1))_b[g&31](d);if(b){c[b+20>>2]=18;a[b+25>>0]=1;Tg(c[b>>2]|0,10096,-1,1,0)|0}}else Sg(b,d,e,0,g);return}function yd(a,b){a=a|0;b=+b;Ug(c[a>>2]|0,b);return}function zd(b,d,e){b=b|0;d=d|0;e=e|0;c[b+20>>2]=1;a[b+25>>0]=1;Tg(c[b>>2]|0,d,e,1,-1)|0;return}function Ad(b,d,e){b=b|0;d=d|0;e=e|0;c[b+20>>2]=1;a[b+25>>0]=1;Tg(c[b>>2]|0,d,e,2,-1)|0;return}function Bd(a,d){a=a|0;d=d|0;var e=0,f=0;a=c[a>>2]|0;e=((d|0)<0)<<31>>31;f=a+8|0;if(!(b[f>>1]&9312)){c[a>>2]=d;c[a+4>>2]=e;b[f>>1]=4}else Vg(a,d,e);return}function Cd(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;a=c[a>>2]|0;f=a+8|0;if(!(b[f>>1]&9312)){c[a>>2]=d;c[a+4>>2]=e;b[f>>1]=4}else Vg(a,d,e);return}function Dd(a){a=a|0;var d=0;a=c[a>>2]|0;d=a+8|0;if(!(b[d>>1]&9312))b[d>>1]=1;else rg(a);return}function Ed(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Sg(a,b,c,1,d);return}function Fd(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;if(f>>>0>0|(f|0)==0&e>>>0>2147483647){e=g;if(!((e|0)==0|(e|0)==-1))_b[g&31](d);if(b){c[b+20>>2]=18;a[b+25>>0]=1;Tg(c[b>>2]|0,10096,-1,1,0)|0}}else Sg(b,d,e,h<<24>>24==4?2:h,g);return}function Gd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Sg(a,b,c,2,d);return}function Hd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Sg(a,b,c,3,d);return}function Id(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Sg(a,b,c,2,d);return}function Jd(a,b){a=a|0;b=b|0;Wg(c[a>>2]|0,b)|0;return}function Kd(a,b){a=a|0;b=b|0;Xg(c[a>>2]|0,b);return}function Ld(d,e){d=d|0;e=e|0;var f=0;c[d+20>>2]=e;a[d+25>>0]=1;f=c[d>>2]|0;if(b[f+8>>1]&1){if((e|0)!=516){d=e&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[15488+(d<<2)>>2]|0}else d=16344;Tg(f,d,-1,1,0)|0}return}function Md(b){b=b|0;c[b+20>>2]=18;a[b+25>>0]=1;Tg(c[b>>2]|0,10096,-1,1,0)|0;return}function Nd(d){d=d|0;var e=0,f=0;e=c[d>>2]|0;f=e+8|0;if(!(b[f>>1]&9312))b[f>>1]=1;else{rg(e);e=c[d>>2]|0}c[d+20>>2]=7;a[d+25>>0]=1;a[(c[e+32>>2]|0)+65>>0]=1;return}function Od(f){f=f|0;var g=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,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;W=i;i=i+224|0;if((i|0)>=(j|0))baba();P=R;Q=R+4|0;c[Q>>2]=0;c[m>>2]=0;K=(l|0)!=0;L=K&1;N=ih(d,28,0)|0;do if(N){l=N+0|0;p=l+28|0;do{a[l>>0]=0;l=l+1|0}while((l|0)<(p|0));p=ih(d,536,0)|0;if(p){H=d+20|0;I=d+16|0;y=d+24|0;l=N+20|0;z=N+12|0;A=N+24|0;B=d+65|0;C=L^3;D=L|2;E=p+440|0;F=p+72|0;G=p+68|0;o=0;J=1;n=0;while(1){bw(p|0,0,536)|0;c[p>>2]=d;ig(d,o);c[Q>>2]=0;o=c[H>>2]|0;if((o|0)>0){q=c[I>>2]|0;s=0;do{r=c[q+(s<<4)+4>>2]|0;if(r)c[(c[r+4>>2]|0)+4>>2]=c[r>>2];s=s+1|0}while((s|0)!=(o|0))}x=oh(p,0,f,e)|0;if(!x)break;o=a[x+44>>0]|0;if(o&16){O=11;break}if(o&32){O=13;break}if(c[x+12>>2]|0){O=17;break}w=x+38|0;t=b[w>>1]|0;a:do if(t<<16>>16>0){s=c[x+4>>2]|0;r=t<<16>>16;o=0;while(1){q=o+1|0;if(!($c(c[s+(o*24|0)>>2]|0,g)|0)){q=o;break a}if((q|0)<(r|0))o=q;else break}}else q=0;while(0);if((q|0)==(t<<16>>16|0)){O=23;break}if(K){if((c[y>>2]&524288|0)!=0?(M=c[x+16>>2]|0,(M|0)!=0):0){u=M;o=0;do{t=c[u+20>>2]|0;if((t|0)>0){s=0;do{o=(c[u+(s<<3)+36>>2]|0)==(q|0)?10280:o;s=s+1|0}while((s|0)<(t|0))}u=c[u+4>>2]|0}while((u|0)!=0)}else o=0;s=c[x+8>>2]|0;if(s)do{r=b[s+46>>1]|0;if(r<<16>>16){v=c[s+4>>2]|0;t=r&65535;u=0;do{o=(b[v+(u<<1)>>1]|0)==(q|0)?10296:o;u=u+1|0}while((u|0)<(t|0))}s=c[s+20>>2]|0}while((s|0)!=0);if(o){O=36;break}}v=rh(p)|0;c[l>>2]=v;if(v){u=c[x+68>>2]|0;b:do if(u){t=c[H>>2]|0;if((t|0)>0){s=c[I>>2]|0;o=0;while(1){r=o+1|0;if((c[s+(o<<4)+12>>2]|0)==(u|0)){r=o;break b}if((r|0)<(t|0))o=r;else break}}else r=0}else r=-1e6;while(0);o=c[u+4>>2]|0;th(v,sh(v,4,r,L,c[u>>2]|0)|0,o,-14);o=v+4|0;s=c[o>>2]|0;t=v+32|0;if(s)a[s+(((c[t>>2]|0)+-1|0)*20|0)+3>>0]=1;uh(v,10,10120)|0;s=v+96|0;c[s>>2]=c[s>>2]|1<<r;if((c[t>>2]|0)>>>0>1){u=c[o>>2]|0;c[u+24>>2]=r;s=x+32|0;c[u+28>>2]=c[s>>2];c[(c[o>>2]|0)+32>>2]=L}else s=x+32|0;th(v,1,c[x>>2]|0,0);vh(v,C);if((c[t>>2]|0)>>>0>D>>>0){c[(c[o>>2]|0)+(D*20|0)+8>>2]=c[s>>2];c[(c[o>>2]|0)+(D*20|0)+12>>2]=r}th(v,D,(b[w>>1]|0)+1|0,-14);if((c[t>>2]|0)>>>0>6)c[(c[o>>2]|0)+128>>2]=b[w>>1];if(!(a[B>>0]|0)){c[E>>2]=1;c[F>>2]=1;c[G>>2]=1;wh(v,p)}}c[N>>2]=L;c[z>>2]=q;c[A>>2]=d;if(a[B>>0]|0){O=57;break}ne(c[l>>2]|0,1,h,k)|0;n=xh(N,h,k,Q)|0;if(!((J|0)<50&(n|0)==17)){O=57;break}o=c[Q>>2]|0;J=J+1|0;n=17}if((O|0)==11){c[P>>2]=f;ph(p,10160,P)}else if((O|0)==13){c[P>>2]=f;ph(p,10192,P)}else if((O|0)==17){c[P>>2]=f;ph(p,10232,P)}else if((O|0)==23){ig(d,0);c[P>>2]=g;c[Q>>2]=qh(d,10256,P)|0;n=1;O=62;break}else if((O|0)==36){ig(d,0);c[P>>2]=o;c[Q>>2]=qh(d,10304,P)|0;n=1;O=62;break}else if((O|0)==57)if(!n){n=1;o=p;O=58;break}else{o=p;O=61;break}o=p+4|0;if(!(c[o>>2]|0)){n=1;O=62}else{ig(d,0);c[Q>>2]=c[o>>2];c[o>>2]=0;n=1;O=62}}else{n=1;o=p;O=58}}else{n=0;o=0;O=58}while(0);do if((O|0)==58)if(a[d+65>>0]|0)if(n){n=0;O=61;break}else{n=0;O=64;break}else{c[m>>2]=N;n=0;break}while(0);if((O|0)==61){l=N+20|0;p=o;O=62}if((O|0)==62){o=c[l>>2]|0;if(!o){o=p;O=64}else{Jg(o)|0;o=p;O=64}}if((O|0)==64)ig(d,N);H=c[Q>>2]|0;c[P>>2]=H;qg(d,n,(H|0)!=0?10344:0,P);ig(d,H);yh(o);ig(d,o);H=Kg(d,n)|0;i=R;return H|0}function Fe(a){a=a|0;var b=0,d=0;if(!a)a=0;else{d=c[a+24>>2]|0;b=id(c[a+20>>2]|0)|0;ig(d,a);a=b}return a|0}function Ge(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Ah(a,b,c,d,18)|0}function He(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Ah(a,b,c,d,19)|0}function Ie(a){a=a|0;if((a|0)!=0?(c[a+20>>2]|0)!=0:0)a=c[a+4>>2]|0;else a=0;return a|0}function Je(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();e=h;f=h+8|0;if(!a){c[e>>2]=77720;c[e+4>>2]=10788;Zc(21,13648,e);b=21}else{g=c[a+24>>2]|0;if(c[a+20>>2]|0){b=xh(a,b,d,f)|0;if(!b)b=0;else{d=c[f>>2]|0;c[e>>2]=d;qg(g,b,(d|0)!=0?10344:0,e);ig(g,d)}}else b=4;b=Kg(g,b)|0}i=h;return b|0}function Ke(a,d,e){a=a|0;d=d|0;e=e|0;c[a+284>>2]=d;c[a+288>>2]=e;a=c[a+4>>2]|0;if(a)do{e=a+88|0;b[e>>1]=b[e>>1]|8;a=c[a+52>>2]|0}while((a|0)!=0);return 0}function Le(a,b){a=a|0;b=b|0;return (Ch(a,b,10352,0)|0)==0|0}function Me(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var 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;B=i;i=i+16|0;if((i|0)>=(j|0))ba();m=B;x=B+12|0;y=B+8|0;c[y>>2]=0;do if(Dh(e)|0){l=(f|0)==0?10360:f;z=e+52|0;c[z>>2]=0;A=e+236|0;m=c[A>>2]|0;do if(m){f=m+8|0;if(!(b[f>>1]&9312)){b[f>>1]=1;break}else{rg(m);break}}while(0);u=(g|0)==0;v=e+24|0;m=0;a:while(1){do{if(m){n=39;break a}if(!(a[l>>0]|0)){m=0;n=39;break a}c[y>>2]=0;m=eh(e,l,-1,1,0,y,x)|0}while((m|0)!=0);l=c[y>>2]|0;if(!l){l=c[x>>2]|0;m=0;continue}t=b[l+84>>1]|0;r=t&65535;s=r<<3|1;t=t<<16>>16==0;f=0;n=0;o=0;b:do{m=Od(l)|0;do if(!u){p=(m|0)==100;if(!p){if((m|0)!=101|(o|0)!=0)break b;if(!(c[v>>2]&256)){o=0;break}}if(!o){f=ih(e,s,0)|0;if(!f){f=0;n=40;break a}bw(f|0,0,s|0)|0;if(t)q=1;else{o=0;do{c[f+(o<<2)>>2]=fe(l,o)|0;o=o+1|0}while((o|0)<(r|0));q=1}}else q=o;c:do if(p){n=f+(r<<2)|0;if(!t){o=0;while(1){p=be(l,o)|0;c[f+(o+r<<2)>>2]=p;if((p|0)==0?(w=c[y>>2]|0,(ee(w,o)|0)!=5):0){m=w;n=27;break a}o=o+1|0;if((o|0)>=(r|0))break c;l=c[y>>2]|0}}}while(0);if(!(lc[g&31](h,r,n,f)|0))o=q;else{l=f;n=31;break a}}while(0);l=c[y>>2]|0}while((m|0)==100);m=Jg(l)|0;c[y>>2]=0;l=c[x>>2]|0;while(1)if(!(a[10368+(d[l>>0]|0)>>0]&1))break;else l=l+1|0;ig(e,f)}do if((n|0)==27){a[e+65>>0]=1;l=m;m=100;n=40}else if((n|0)==31){Jg(c[y>>2]|0)|0;c[y>>2]=0;c[z>>2]=4;m=c[A>>2]|0;if(m){f=m+8|0;if(!(b[f>>1]&9312)){b[f>>1]=1;f=l;m=4;break}else{rg(m);f=l;m=4;break}}else{f=l;m=4}}else if((n|0)==39){l=c[y>>2]|0;f=0;n=40}while(0);if((n|0)==40)if(l)Jg(l)|0;ig(e,f);l=Kg(e,m)|0;f=(k|0)!=0;if(!((l|0)!=0&f)){if(!f)break;c[k>>2]=0;break}f=Oe(e)|0;if(!f)f=1;else{m=f;while(1)if(!(a[m>>0]|0))break;else m=m+1|0;f=(m-f&1073741823)+1|0}m=mg(f,((f|0)<0)<<31>>31)|0;c[k>>2]=m;if(m){gw(m|0,Oe(e)|0,f|0)|0;break}c[z>>2]=7;l=c[A>>2]|0;if(l){f=l+8|0;if(!(b[f>>1]&9312)){b[f>>1]=1;l=7;break}else{rg(l);l=7;break}}else l=7}else{c[m>>2]=101334;c[m+4>>2]=10788;Zc(21,13648,m);l=21}while(0);i=B;return l|0}function Ne(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return eh(a,b,c,1,0,d,e)|0}function Oe(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();d=e;do if(b){f=c[b+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[d>>2]=15248;Zc(21,15256,d);c[d>>2]=129635;c[d+4>>2]=10788;Zc(21,13648,d);d=16120;break}if(!(a[b+65>>0]|0)){d=Og(c[b+236>>2]|0,1)|0;if(!d){d=c[b+52>>2]|0;if((d|0)!=516){d=d&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[15488+(d<<2)>>2]|0}else d=16344}}else d=15776}else d=15776;while(0);i=e;return d|0}function Pe(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))ba();s=u;t=u+8|0;r=c[b>>2]|0;c[t>>2]=0;m=(d|0)==0;if(m)g=0;else{l=d;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;g=l-d&1073741823}p=g+300|0;o=(f|0)!=0;if(o)c[f>>2]=0;do if(!(c[b+24>>2]&4194304))if(o){c[f>>2]=Wc(25216,s)|0;g=1}else g=1;else{n=(e|0)!=0?e:41192;k=r+40|0;l=nc[c[k>>2]&127](r,d)|0;if(!l){c[s>>2]=d;c[s+4>>2]=41184;h=Wc(27824,s)|0;if(!h){g=7;break}l=nc[c[k>>2]&127](r,h)|0;Sc(h);if(!l){if(!o){g=1;break}l=Pc(p)|0;c[t>>2]=l;c[f>>2]=l;if(!l){g=1;break}c[s>>2]=d;Yc(p,l,41216,s)|0;ic[c[r+44>>2]&63](r,g+299|0,l);g=1;break}else q=l}else q=l;g=r+48|0;l=Yb[c[g>>2]&63](r,q,n)|0;if((l|0)==0&(e|0)==0){if(m)l=0;else{l=d;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;l=l-d&1073741823}e=Pc(l+30|0)|0;if(!e){fc[c[r+52>>2]&15](r,q);g=7;break}n=e;m=n;a[m>>0]=115;a[m+1>>0]=113;a[m+2>>0]=108;a[m+3>>0]=105;n=n+4|0;a[n>>0]=116;a[n+1>>0]=101;a[n+2>>0]=51;a[n+3>>0]=95;while(1){k=l+-1|0;if((l|0)<=0)break;if((a[d+k>>0]|0)==47)break;else l=k}h=(Bc(d+l|0,41256,3)|0)==0;k=8;h=h?l+3|0:l;while(1){l=a[d+h>>0]|0;if(l<<24>>24==0|l<<24>>24==46){l=k;break}if(!(a[10368+(l&255)>>0]&2))l=k;else{a[e+k>>0]=a[9328+(l<<24>>24)>>0]|0;l=k+1|0}k=l;h=h+1|0}l=e+l|0;a[l+0>>0]=a[41264]|0;a[l+1>>0]=a[41265]|0;a[l+2>>0]=a[41266]|0;a[l+3>>0]=a[41267]|0;a[l+4>>0]=a[41268]|0;a[l+5>>0]=a[41269]|0;l=Yb[c[g>>2]&63](r,q,e)|0;g=e;h=e}else{g=0;h=n}if(!l){if(o){if(!h)l=0;else{l=h;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;l=l-h&1073741823}l=l+p|0;k=Pc(l)|0;c[t>>2]=k;c[f>>2]=k;if(k){c[s>>2]=h;c[s+4>>2]=d;Yc(l,k,41272,s)|0;ic[c[r+44>>2]&63](r,l+-1|0,k)}}fc[c[r+52>>2]&15](r,q);Sc(g);g=1;break}Sc(g);if(Yb[l&63](b,t,13776)|0){if(o){c[s>>2]=c[t>>2];c[f>>2]=Wc(41320,s)|0}Sc(c[t>>2]|0);fc[c[r+52>>2]&15](r,q);g=1;break}k=b+168|0;g=(c[k>>2]<<2)+4|0;l=ih(b,g,0)|0;if(!l)g=7;else{bw(l|0,0,g|0)|0;g=c[k>>2]|0;h=b+172|0;if((g|0)>0)gw(l|0,c[h>>2]|0,g<<2|0)|0;ig(b,c[h>>2]|0);c[h>>2]=l;g=c[k>>2]|0;c[k>>2]=g+1;c[l+(g<<2)>>2]=q;g=0}}while(0);q=Kg(b,g)|0;i=u;return q|0}function Qe(a){a=a|0;var b=0,d=0,e=0,f=0;b=Hc()|0;if(!b){f=c[2656]|0;a:do if((f|0)>0){d=c[2658]|0;e=0;while(1){b=e+1|0;if((c[d+(e<<2)>>2]|0)==(a|0)){b=e;break a}if((b|0)<(f|0))e=b;else break}}else b=0;while(0);if((b|0)==(f|0)){b=Tc(c[2658]|0,(f<<2)+4|0)|0;if(!b)b=7;else{c[2658]=b;d=c[2656]|0;c[b+(d<<2)>>2]=a;c[2656]=d+1;b=0}}else b=0}return b|0}function Re(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;e=c[2656]|0;f=c[2658]|0;d=e;while(1){if((d|0)<=0){b=0;break}d=d+-1|0;b=f+(d<<2)|0;if((c[b>>2]|0)==(a|0)){g=4;break}}if((g|0)==4){d=e+-1|0;c[2656]=d;c[b>>2]=c[f+(d<<2)>>2];b=1}return b|0}function Se(){if(!(Hc()|0)){Sc(c[2658]|0);c[2658]=0;c[2656]=0}return}function Te(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return eh(a,b,c,0,0,d,e)|0}function Ue(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Eh(a,b,c,0,d,e)|0}function Ve(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Eh(a,b,c,1,d,e)|0}function We(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=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;v=i;i=i+32|0;if((i|0)>=(j|0))ba();n=v;q=v+4|0;c[d>>2]=0;r=(f|0)!=0;if(r)c[f>>2]=0;s=(e|0)!=0;if(s)c[e>>2]=0;l=(g|0)!=0;if(l)c[g>>2]=0;m=q+4|0;c[m>>2]=0;t=q+12|0;c[t>>2]=0;u=q+16|0;c[u>>2]=0;k=q+20|0;c[k>>2]=1;o=q+8|0;c[o>>2]=20;p=q+24|0;c[p>>2]=0;h=Pc(80)|0;c[q>>2]=h;a:do if(h){c[h>>2]=0;b=Me(a,b,20,q,g)|0;c[c[q>>2]>>2]=c[k>>2];if((b&255|0)==4){Xe((c[q>>2]|0)+4|0);b=c[m>>2]|0;if(b){if(l){Sc(c[g>>2]|0);c[n>>2]=c[m>>2];c[g>>2]=Wc(10344,n)|0;b=c[m>>2]|0}Sc(b)}b=c[p>>2]|0;c[a+52>>2]=b;break}Sc(c[m>>2]|0);if(b){Xe((c[q>>2]|0)+4|0);break}h=c[k>>2]|0;b=c[q>>2]|0;do if((c[o>>2]|0)>>>0>h>>>0){b=Tc(b,h<<2)|0;if(!b){Xe((c[q>>2]|0)+4|0);c[a+52>>2]=7;b=7;break a}else{c[q>>2]=b;break}}while(0);c[d>>2]=b+4;if(r)c[f>>2]=c[u>>2];if(s){c[e>>2]=c[t>>2];b=0}else b=0}else{c[a+52>>2]=7;b=7}while(0);i=v;return b|0}function Xe(a){a=a|0;var b=0,d=0,e=0,f=0;if(a){b=a+-4|0;e=c[b>>2]|0;d=e;if((e|0)>1){f=1;do{e=c[a+(f+-1<<2)>>2]|0;if(e)Sc(e);f=f+1|0}while((f|0)<(d|0))}Sc(b)}return}function Ye(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Gh(a,b,c,d,0)|0}function Ze(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Gh(a,b,c,d,e)|0}function _e(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+16|0;if((i|0)>=(j|0))ba();o=p;g=p+8|0;c[g>>2]=0;h=d+324|0;f=c[h>>2]|0;if((f|0)!=0?(m=c[f+4>>2]|0,(m|0)!=0):0){n=ih(d,536,0)|0;if(!n)e=7;else{bw(n|0,0,536)|0;k=n+451|0;a[k>>0]=1;c[n>>2]=d;c[n+424>>2]=1;if(((((Hh(n,e,g)|0)==0?(l=c[n+484>>2]|0,(l|0)!=0):0)?(a[d+65>>0]|0)==0:0)?(c[l+12>>2]|0)==0:0)?(a[l+44>>0]&16)==0:0){f=m+4|0;if(!(c[f>>2]|0)){o=l+4|0;c[f>>2]=c[o>>2];l=l+38|0;b[m+38>>1]=b[l>>1]|0;b[l>>1]=0;c[o>>2]=0}c[(c[h>>2]|0)+4>>2]=0;e=0}else{e=c[g>>2]|0;c[o>>2]=e;qg(d,1,(e|0)!=0?10344:0,o);ig(d,e);e=1}a[k>>0]=0;f=c[n+8>>2]|0;if(f)Jg(f)|0;gg(d,c[n+484>>2]|0);yh(n);ig(d,n)}e=Kg(d,e)|0}else{c[d+52>>2]=21;f=c[d+236>>2]|0;do if(f){e=f+8|0;if(!(b[e>>1]&9312)){b[e>>1]=1;break}else{rg(f);break}}while(0);c[o>>2]=114865;c[o+4>>2]=10788;Zc(21,13648,o);e=21}i=p;return e|0}function $e(a){a=a|0;return d[10640+((d[a+69>>0]|0)+-1)>>0]|0|0}function af(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))baba();d=f;e=f+8|0;if(!(c[2243]|0)){c[e>>2]=b;do switch(a|0){case 5:{if(!(c[2195]|0)){c[d>>2]=16496;hf(4,d)|0}a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[d+0>>2]=c[2195];c[d+4>>2]=c[2196];c[d+8>>2]=c[2197];c[d+12>>2]=c[2198];c[d+16>>2]=c[2199];c[d+20>>2]=c[2200];c[d+24>>2]=c[2201];c[d+28>>2]=c[2202];d=0;break}case 17:{a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[2189]=d;d=0;break}case 20:{a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[2190]=d;d=0;break}case 19:{if(!(c[2214]|0)){c[d>>2]=16440;hf(18,d)|0}a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;d=d+0|0;a=8848|0;e=d+52|0;do{c[d>>2]=c[a>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));d=0;break}case 16:{d=c[e>>2]|0;a=c[d>>2]|0;c[e>>2]=d+4;c[2250]=a;a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[2251]=d;d=0;break}case 13:{d=c[e>>2]|0;a=c[d>>2]|0;c[e>>2]=d+4;c[2193]=a;a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[2194]=d;d=0;break}case 7:{a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[2237]=d;d=c[e>>2]|0;a=c[d>>2]|0;c[e>>2]=d+4;c[2238]=a;a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[2239]=d;d=0;break}case 24:{a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[d>>2]=152;d=0;break}case 15:{d=1;break}case 4:{a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[2195]=c[d+0>>2];c[2196]=c[d+4>>2];c[2197]=c[d+8>>2];c[2198]=c[d+12>>2];c[2199]=c[d+16>>2];c[2200]=c[d+20>>2];c[2201]=c[d+24>>2];c[2202]=c[d+28>>2];d=0;break}case 18:{d=c[e>>2]|0;a=c[d>>2]|0;c[e>>2]=d+4;d=8848|0;a=a+0|0;e=d+52|0;do{c[d>>2]=c[a>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));d=0;break}case 6:{a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[2234]=d;d=c[e>>2]|0;a=c[d>>2]|0;c[e>>2]=d+4;c[2235]=a;a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[2236]=d;d=0;break}case 9:{a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[2186]=d;d=0;break}case 22:{c[e>>2]=(c[e>>2]|0)+8;c[e>>2]=(c[e>>2]|0)+8;c[2230]=0;c[2231]=0;c[2232]=0;c[2233]=0;d=0;break}case 25:{a=c[e>>2]|0;d=c[a>>2]|0;c[e>>2]=a+4;c[2242]=d;d=0;break}case 14:{d=0;break}default:d=1}while(0)}else{c[d>>2]=127883;c[d+4>>2]=10788;Zc(21,13648,d);d=21}i=f;return d|0}function jf(a){a=a|0;return c[a+12>>2]|0}function kf(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=a+20|0;b=c[h>>2]|0;f=(b|0)>0;if(f){e=c[a+16>>2]|0;g=0;do{d=c[e+(g<<4)+4>>2]|0;if(d)c[(c[d+4>>2]|0)+4>>2]=c[d>>2];g=g+1|0}while((g|0)!=(b|0));if(f){f=a+16|0;e=0;do{d=c[(c[f>>2]|0)+(e<<4)+4>>2]|0;if(d){_b[c[8744+152>>2]&31](c[(c[(c[c[d+4>>2]>>2]|0)+204>>2]|0)+40>>2]|0);b=c[h>>2]|0}e=e+1|0}while((e|0)<(b|0))}}return 0}function lf(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();h=l;c[h>>2]=e;a:do if((d|0)!=1001){e=0;while(1){if((c[10936+(e<<3)>>2]|0)==(d|0))break;e=e+1|0;if(e>>>0>=2){f=1;break a}}g=c[h>>2]|0;d=c[g>>2]|0;c[h>>2]=g+4;g=c[h>>2]|0;k=c[g>>2]|0;c[h>>2]=g+4;h=a+24|0;g=c[h>>2]|0;if((d|0)<=0)if(!d){d=g&~c[10940+(e<<3)>>2];c[h>>2]=d}else d=g;else{d=c[10940+(e<<3)>>2]|g;c[h>>2]=d}if((g|0)!=(d|0)?(f=c[a+4>>2]|0,(f|0)!=0):0)do{d=f+88|0;b[d>>1]=b[d>>1]|8;f=c[f+52>>2]|0}while((f|0)!=0);if(!k)f=0;else{c[k>>2]=(c[10940+(e<<3)>>2]&c[h>>2]|0)!=0&1;f=0}}else{g=c[h>>2]|0;d=c[g>>2]|0;c[h>>2]=g+4;g=c[h>>2]|0;e=c[g>>2]|0;c[h>>2]=g+4;g=c[h>>2]|0;f=c[g>>2]|0;c[h>>2]=g+4;f=Jh(a,d,e,f)|0}while(0);i=l;return f|0}function mf(a){a=a|0;a=a+32|0;C=c[a+4>>2]|0;return c[a>>2]|0}function nf(a){a=a|0;return c[a+80>>2]|0}function of(a){a=a|0;return c[a+84>>2]|0}function pf(a){a=a|0;return Kh(a,0)|0}function qf(a){a=a|0;return Kh(a,1)|0}function rf(a,b,d){a=a|0;b=b|0;d=d|0;c[a+444>>2]=b;c[a+448>>2]=d;c[a+452>>2]=0;c[a+492>>2]=0;return 0}function sf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=(b|0)>0;c[a+292>>2]=f?d:0;c[a+300>>2]=f?b:0;c[a+296>>2]=f?e:0;return}function tf(a,b){a=a|0;b=b|0;var d=0;d=(b|0)>0;c[a+444>>2]=d?74:0;c[a+448>>2]=d?a:0;c[a+452>>2]=0;c[a+492>>2]=d?b:0;return 0}function uf(a){a=a|0;c[a+240>>2]=1;return}function vf(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return Kg(a,Mh(a,b,c,d,e,f,g,h,0)|0)|0}function wf(b,d,e,f,g,h,i,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0;do if(k){l=ih(b,12,0)|0;if(!l){_b[k&31](g);f=1;break}m=l;n=m;a[n>>0]=0;a[n+1>>0]=0;a[n+2>>0]=0;a[n+3>>0]=0;m=m+4|0;a[m>>0]=0;a[m+1>>0]=0;a[m+2>>0]=0;a[m+3>>0]=0;c[l+4>>2]=k;c[l+8>>2]=g;f=Mh(b,d,e,f,g,h,i,j,l)|0;if(!(c[l>>2]|0)){_b[k&31](g);ig(b,l)}}else f=Mh(b,d,e,f,g,h,i,j,0)|0;while(0);return Kg(b,f)|0}function xf(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;b=Nh(a,b,-1)|0;d=Mh(a,b,c,d,e,f,g,h,0)|0;ig(a,b);return Kg(a,d)|0}function yf(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;if(!c)e=0;else{e=c;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;e=e-c&1073741823}if(!(Oh(b,c,e,d,1,0)|0))e=Mh(b,c,d,1,0,57,0,0,0)|0;else e=0;return Kg(b,e)|0}function zf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+180|0;e=c[f>>2]|0;c[a+176>>2]=b;c[f>>2]=d;return e|0}function Af(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+188|0;e=c[f>>2]|0;c[a+184>>2]=b;c[f>>2]=d;return e|0}function Bf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+192|0;e=c[f>>2]|0;c[a+196>>2]=b;c[f>>2]=d;return e|0}function Cf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+208|0;e=c[f>>2]|0;c[a+212>>2]=b;c[f>>2]=d;return e|0}function Df(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+200|0;e=c[f>>2]|0;c[a+204>>2]=b;c[f>>2]=d;return e|0}function Ef(a,b){a=a|0;b=b|0;var d=0;if((b|0)>0)d=21;else{b=0;d=0}c[a+216>>2]=d;c[a+220>>2]=b;return 0}function Ff(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+220|0;e=c[f>>2]|0;c[a+216>>2]=b;c[f>>2]=d;return e|0}function Gf(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();k=n;if(g)c[g>>2]=-1;if(h)c[h>>2]=-1;if(f>>>0>3)e=21;else{if((e|0)!=0?(a[e>>0]|0)!=0:0){l=Rh(d,e)|0;if((l|0)<0){c[k>>2]=e;qg(d,1,10952,k);e=1}else m=10}else{l=10;m=10}do if((m|0)==10){c[d+452>>2]=0;e=Sh(d,l,f,g,h)|0;c[d+52>>2]=e;k=c[d+236>>2]|0;if(k){l=k+8|0;if(!(b[l>>1]&9312)){b[l>>1]=1;break}else{rg(k);break}}}while(0);e=Kg(d,e)|0}i=n;return e|0}function Hf(a,b){a=a|0;b=b|0;return Gf(a,b,0,0,0)|0}function If(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();g=k;do if(b){d=c[b+76>>2]|0;if(!((d|0)==1266094736|(d|0)==-1607883113|(d|0)==-264537850)){c[g>>2]=15248;Zc(21,15256,g);d=11008;break}h=b+65|0;if(!(a[h>>0]|0)){f=b+236|0;d=Og(c[f>>2]|0,2)|0;if(!d){e=c[b+52>>2]|0;if((e|0)!=516){d=e&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[15488+(d<<2)>>2]|0}else d=16344;qg(b,e,d,g);d=Og(c[f>>2]|0,2)|0}a[h>>0]=0}else d=10976}else d=10976;while(0);i=k;return d|0}function Jf(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();d=e;do if(b){f=c[b+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[d>>2]=15248;Zc(21,15256,d);c[d>>2]=129704;c[d+4>>2]=10788;Zc(21,13648,d);b=21;break}if(!(a[b+65>>0]|0))b=c[b+56>>2]&c[b+52>>2];else b=7}else b=7;while(0);i=e;return b|0}function Kf(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();d=e;do if(b){f=c[b+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[d>>2]=15248;Zc(21,15256,d);c[d>>2]=129713;c[d+4>>2]=10788;Zc(21,13648,d);b=21;break}if(!(a[b+65>>0]|0))b=c[b+52>>2]|0;else b=7}else b=7;while(0);i=e;return b|0}function Lf(a){a=a|0;if((a|0)!=516){a=a&255;if(a>>>0>26|(a|0)==2)a=16328;else a=c[15488+(a<<2)>>2]|0}else a=16344;return a|0}function Mf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if(b>>>0<=11){e=a+(b<<2)+88|0;a=c[e>>2]|0;if((d|0)>-1){b=c[11088+(b<<2)>>2]|0;c[e>>2]=(b|0)<(d|0)?b:d}}else a=-1;return a|0}function Nf(a,b){a=a|0;b=b|0;return Th(a,b,6,0)|0}function Of(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Th(a,b,c,d)|0}function Pf(d,e){d=d|0;e=e|0;var f=0,g=0,h=0;c[e>>2]=0;f=Hc()|0;if(!f){h=mg(40,0)|0;if(h){d=(d|0)==0?11136:d;f=h+0|0;g=f+40|0;do{a[f>>0]=0;f=f+1|0}while((f|0)<(g|0));b[h+8>>1]=1;c[h+32>>2]=0;Tg(h,d,-1,2,0)|0}d=Og(h,1)|0;if(d){f=Th(d,e,6,0)|0;if(!f){f=c[e>>2]|0;d=c[(c[f+16>>2]|0)+12>>2]|0;if(!(b[d+78>>1]&1)){a[f+62>>0]=2;a[d+77>>0]=2;f=0}else f=0}}else f=7;Ih(h);f=f&255}return f|0}function Qf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Kg(a,Uh(a,b,c&255,d,e,0)|0)|0}function Rf(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return Kg(a,Uh(a,b,c&255,d,e,f)|0)|0}function Sf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;b=Nh(a,b,-1)|0;if(!b)b=0;else{c=Uh(a,b,c&255,d,e,0)|0;ig(a,b);b=c}return Kg(a,b)|0}function Tf(a,b,d){a=a|0;b=b|0;d=d|0;c[a+224>>2]=d;c[a+228>>2]=0;c[a+232>>2]=b;return 0}function Uf(a,b,d){a=a|0;b=b|0;d=d|0;c[a+224>>2]=0;c[a+228>>2]=d;c[a+232>>2]=b;return 0}function Vf(a){a=a|0;return d[a+63>>0]|0|0}function Wf(){return}function Xf(d,e,f,g,h,k,l,m,n){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))ba();x=z;y=z+8|0;c[y>>2]=0;p=c[d+20>>2]|0;if((p|0)>0){o=c[d+16>>2]|0;r=0;do{q=c[o+(r<<4)+4>>2]|0;if(q)c[(c[q+4>>2]|0)+4>>2]=c[q>>2];r=r+1|0}while((r|0)!=(p|0))}o=Vh(d,y)|0;w=(o|0)!=0;a:do if((!w?(u=Wh(d,f,e)|0,(u|0)!=0):0)?(c[u+12>>2]|0)==0:0){do if(g){t=b[u+38>>1]|0;b:do if(t<<16>>16>0){e=c[u+4>>2]|0;p=t<<16>>16;s=0;while(1){q=e+(s*24|0)|0;r=s+1|0;if(!($c(c[q>>2]|0,g)|0)){r=s;break b}if((r|0)<(p|0))s=r;else break}}else{r=0;q=0}while(0);if((r|0)==(t<<16>>16|0)){if(a[u+44>>0]&32){e=0;t=0;u=0;q=0;s=0;r=0;break a}if(!(Xh(g)|0)){e=0;t=0;u=0;q=0;s=0;r=0;break a}v=b[u+36>>1]|0;p=v<<16>>16;if(v<<16>>16<=-1){e=0;s=0;p=1;v=0;r=11144;break}r=p;q=(c[u+4>>2]|0)+(p*24|0)|0}if(q){if((b[u+36>>1]|0)==(r|0))p=(a[u+44>>0]&8)!=0;else p=0;e=p&1;s=(a[q+20>>0]|0)!=0&1;p=a[q+23>>0]&1;v=c[q+16>>2]|0;r=c[q+12>>2]|0}else{e=0;s=0;p=1;v=0;r=11144}}else{e=0;s=0;p=1;v=0;r=11144}while(0);t=s;q=p;s=(v|0)==0?11152:v}else{e=0;t=0;u=0;q=0;s=0;r=0}while(0);if(h)c[h>>2]=r;if(k)c[k>>2]=s;if(l)c[l>>2]=t;if(m)c[m>>2]=q;if(n)c[n>>2]=e;p=c[y>>2]|0;if(!(w|(u|0)!=0)){ig(d,p);c[x>>2]=f;c[x+4>>2]=g;p=qh(d,11160,x)|0;c[y>>2]=p;o=1}c[x>>2]=p;qg(d,o,(p|0)!=0?10344:0,x);ig(d,c[y>>2]|0);w=Kg(d,o)|0;i=z;return w|0}function Yf(a){a=a|0;var b=0;if((Hc()|0)==0?(b=c[2254]|0,(b|0)!=0):0)a=(nc[c[b+60>>2]&127](b,a*1e3|0)|0)/1e3|0;else a=0;return a|0}function Zf(a,b){a=a|0;b=b|0;c[a+56>>2]=(b|0)!=0?-1:255;return 0}function _f(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;b=Yh(a,b)|0;do if(b){a=c[b+4>>2]|0;c[a+4>>2]=c[b>>2];a=c[(c[a>>2]|0)+60>>2]|0;if((d|0)==7){c[e>>2]=a;b=0;break}b=c[a>>2]|0;if(!b)b=12;else b=Yb[c[b+40>>2]&63](a,d,e)|0}else b=1;while(0);return b|0}function $f(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;q=i;i=i+32|0;if((i|0)>=(j|0))ba();p=q+24|0;h=q+8|0;g=q;c[h>>2]=f;do switch(e|0){case 8:{o=c[h>>2]|0;n=c[o>>2]|0;c[h>>2]=o+4;o=c[h>>2]|0;k=c[o>>2]|0;c[h>>2]=o+4;o=mg(512,0)|0;g=(o|0)==0;if(!g){bw(o|0,0,512)|0;c[o>>2]=n}e=((n+7|0)/8|0)+1|0;m=mg(e,((e|0)<0)<<31>>31)|0;f=(m|0)==0;if(!f)bw(m|0,0,e|0)|0;l=Pc(512)|0;a:do if(!(g|f|(l|0)==0)){h=0;while(1){g=c[k+(h<<2)>>2]|0;if((g|0)==5|(g|0)==2|(g|0)==1){f=k+(h+2<<2)|0;r=c[f>>2]|0;e=r+-1|0;c[p>>2]=e;c[f>>2]=(c[k+(h+3<<2)>>2]|0)+r;f=4}else if(!g)break;else{_c(4,p);e=c[p>>2]|0;f=2}s=k+((h|1)<<2)|0;r=(c[s>>2]|0)+-1|0;c[s>>2]=r;h=((r|0)>0?0:f)+h|0;e=(e&2147483647|0)%(n|0)|0;c[p>>2]=e;e=e+1|0;f=1<<(e&7);if(!(g&1)){e=m+(e>>>3)|0;a[e>>0]=d[e>>0]&(f^255);_h(o,(c[p>>2]|0)+1|0,l);continue}e=m+(e>>>3)|0;a[e>>0]=d[e>>0]|f;if((g|0)==5)continue;if(Zh(o,(c[p>>2]|0)+1|0)|0){g=-1;break a}}k=$h(o,n+1|0)|0;g=$h(o,0)|0;g=k-n+g+(c[o>>2]|0)|0;c[p>>2]=1;if((n|0)>=1){e=1;do{k=(d[m+(e>>3)>>0]&1<<(e&7)|0)!=0&1;f=e;e=e+1|0;if((k|0)!=($h(o,f)|0)){g=f;break a}c[p>>2]=e}while((f|0)<(n|0))}}else g=-1;while(0);Sc(l);Sc(m);ai(o);break}case 11:{g=c[2514]|0;p=c[h>>2]|0;f=c[p>>2]|0;c[h>>2]=p+4;if(f)c[2514]=f;break}case 12:{c[g>>2]=0;g=c[g>>2]|0;break}case 13:{p=c[h>>2]|0;g=c[p>>2]|0;c[h>>2]=p+4;break}case 22:{g=10;break}case 5:{gw(12672,9064,259)|0;g=0;break}case 6:{gw(9064,12672,259)|0;g=0;break}case 7:{if(!(Hc()|0)){a[9064]=0;g=0}else g=0;break}case 14:{o=c[h>>2]|0;p=c[o>>2]|0;c[h>>2]=o+4;o=c[h>>2]|0;g=c[o>>2]|0;c[h>>2]=o+4;tg(c[(c[p+16>>2]|0)+4>>2]|0,0,g,0)|0;g=0;break}case 15:{o=c[h>>2]|0;g=c[o>>2]|0;c[h>>2]=o+4;o=c[h>>2]|0;p=c[o>>2]|0;c[h>>2]=o+4;b[g+60>>1]=p;g=0;break}case 16:{p=c[h>>2]|0;e=c[p>>2]|0;c[h>>2]=p+4;if(!e)g=0;else{g=e;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;g=g-e&1073741823}g=(bi(e,g)|0)!=27;g=g?124:0;break}case 24:{o=c[h>>2]|0;g=c[o>>2]|0;c[h>>2]=o+4;o=c[h>>2]|0;p=c[o>>2]|0;c[h>>2]=o+4;c[g+136>>2]=p;g=0;break}case 23:{g=(c[2243]|0)==0&1;break}case 25:{n=c[h>>2]|0;g=c[n>>2]|0;c[h>>2]=n+4;n=c[h>>2]|0;o=c[n>>2]|0;c[h>>2]=n+4;a[g+144>>0]=Rh(g,o)|0;o=c[h>>2]|0;n=c[o>>2]|0;c[h>>2]=o+4;n=n&255;a[g+147>>0]=n;o=g+145|0;a[o>>0]=n;n=c[h>>2]|0;p=c[n>>2]|0;c[h>>2]=n+4;c[g+140>>2]=p;if((a[o>>0]|0)==0&(p|0)>0){Ag(g);g=0}else g=0;break}case 17:{p=c[h>>2]|0;f=c[p>>2]|0;c[h>>2]=p+4;p=c[h>>2]|0;g=c[p>>2]|0;c[h>>2]=p+4;p=c[h>>2]|0;e=c[p>>2]|0;c[h>>2]=p+4;if(f)c[g>>2]=ci(f)|0;di(e);g=0;break}case 18:{p=c[h>>2]|0;g=c[p>>2]|0;c[h>>2]=p+4;c[2253]=g;g=0;break}case 20:{p=c[h>>2]|0;g=c[p>>2]|0;c[h>>2]=p+4;c[2192]=g;g=0;break}case 9:{p=c[h>>2]|0;g=c[p>>2]|0;c[h>>2]=p+4;c[2252]=g;if(!g)g=0;else g=hc[g&127](0)|0;break}case 10:{o=c[h>>2]|0;p=c[o>>2]|0;c[h>>2]=o+4;o=c[h>>2]|0;g=c[o>>2]|0;c[h>>2]=o+4;c[3164]=p;c[3166]=g;g=0;break}default:g=0}while(0);i=q;return g|0}function ag(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:do if(!((b|0)==0|(c|0)==0)){d=b;while(1)if(!(a[d>>0]|0))break;else d=d+1|0;e=(d-b&1073741823)+1|0;d=a[b+e>>0]|0;if(d<<24>>24){g=b+e|0;while(1){f=Wv(g,c)|0;e=g;while(1){b=e+1|0;if(!(d<<24>>24))break;d=a[b>>0]|0;e=b}b=e-g&1073741823;d=g+(b+1)|0;if(!f)break a;else e=d;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;g=g+(b+2+(e-d&1073741823))|0;d=a[g>>0]|0;if(!(d<<24>>24)){d=0;break}}}else d=0}else d=0;while(0);return d|0}function bg(a,b,c){a=a|0;b=b|0;c=c|0;a=ag(a,b)|0;b=(c|0)!=0;if(a)b=(ei(a,1,b&1)|0)<<24>>24!=0;return b&1|0}function cg(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))baba();W=Y+8|0;X=Y;V=Y+16|0;if(!e){l=0;m=0;Q=0}else{l=e&2;if(!l)m=0;else{G=c[g>>2]|0;m=c[G>>2]|0;c[g>>2]=G+4}l=l&255;Q=(e&1|0)!=0}P=l<<24>>24==0;M=l<<24>>24!=0;N=m+4|0;O=m+8|0;L=b+12|0;l=0;a:while(1){e=a[f>>0]|0;if(e<<24>>24==37){e=f;f=l}else if(e<<24>>24){e=f;do{e=e+1|0;G=a[e>>0]|0}while(!(G<<24>>24==37|G<<24>>24==0));Ok(b,f,e-f|0);if(!(a[e>>0]|0))break}else break;l=e+1|0;n=a[l>>0]|0;if(!(n<<24>>24)){R=10;break}o=n<<24>>24;s=0;p=0;v=0;n=0;x=0;y=0;b:while(1){switch(o|0){case 45:{w=p;n=1;break}case 32:{w=p;v=1;break}case 35:{s=1;w=p;break}case 33:{w=1;break}case 48:{w=p;y=1;break}case 43:{w=p;x=1;break}default:{z=s;w=p;break b}}p=e+2|0;G=a[p>>0]|0;o=G<<24>>24;if(!(G<<24>>24)){l=p;z=s;break}else{e=l;l=p;p=w}}if((o|0)!=42)if((o+-48|0)>>>0<10){p=0;do{p=o+-48+(p*10|0)|0;l=l+1|0;o=a[l>>0]|0}while((o+-48|0)>>>0<10);K=n;J=p&2147483647}else{K=n;J=0}else{if(P){G=c[g>>2]|0;p=c[G>>2]|0;c[g>>2]=G+4}else p=Pk(m)|0;if((p|0)<0){n=1;p=(p|0)==-2147483648?0:0-p|0}o=l+1|0;l=o;o=a[o>>0]|0;K=n;J=p}do if((o|0)==46){p=l+1|0;n=a[p>>0]|0;if(n<<24>>24!=42){o=n<<24>>24;if((n+-48&255)<10)n=0;else{l=p;D=0;break}while(1){n=o+-48+(n*10|0)|0;l=l+2|0;G=a[l>>0]|0;o=G<<24>>24;if((G+-48&255)<10){G=p;p=l;l=G}else break}D=n&2147483647;break}if(P){G=c[g>>2]|0;p=c[G>>2]|0;c[g>>2]=G+4}else p=Pk(m)|0;l=l+2|0;o=a[l>>0]|0;if((p|0)<0)D=(p|0)==-2147483648?-1:0-p|0;else D=p}else D=-1;while(0);do if((o|0)==108){p=l+1|0;o=a[p>>0]|0;if(o<<24>>24==108){o=l+2|0;l=o;o=a[o>>0]|0;p=1;break}else{l=p;o=o<<24>>24;p=0;break}}else p=0;while(0);s=0;while(1){n=48752+(s*6|0)|0;if((o|0)==(a[n>>0]|0)){o=n;n=s;R=46;break}s=s+1|0;if((s|0)>=23){I=48752;G=0;break}}if((R|0)==46){R=0;if(!(Q|n>>>0<20))break;I=o;G=a[48755+(n*6|0)>>0]|0}c:do switch(G&255|0){case 14:{p=0;R=50;break}case 1:case 16:{R=50;break}case 13:{p=c[g>>2]|0;e=c[p>>2]|0;c[g>>2]=p+4;p=c[g>>2]|0;o=c[p>>2]|0;c[g>>2]=p+4;p=c[e+(o*72|0)+12>>2]|0;if(p){n=p;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;Ok(b,p,n-p&1073741823);Ok(b,28928,1)}n=c[e+(o*72|0)+16>>2]|0;if(!n)e=0;else{e=n;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;e=e-n&1073741823}Ok(b,n,e);v=f;o=0;e=0;p=0;break}case 4:case 3:case 2:{do if(!P){p=c[N>>2]|0;if((c[m>>2]|0)>(p|0)){c[N>>2]=p+1;q=+Qg(c[(c[O>>2]|0)+(p<<2)>>2]|0);R=92;break}else{p=(D|0)<0?6:D;q=0.0;R=94;break}}else{R=c[g>>2]|0;c[k>>2]=c[R>>2];c[k+4>>2]=c[R+4>>2];q=+h[k>>3];c[g>>2]=R+8;R=92}while(0);if((R|0)==92){R=0;p=(D|0)<0?6:D;if(q<0.0){q=-q;H=45}else R=94}if((R|0)==94){R=0;if(!(x<<24>>24))H=v<<24>>24==0?0:32;else H=43}D=G<<24>>24==4;n=((D&(p|0)>0)<<31>>31)+p|0;p=n&4095;if(!p)r=.5;else{r=.5;do{p=p+-1|0;r=r*.1}while((p|0)>0)}B=G<<24>>24==2;if(B)q=q+r;h[W>>3]=q;h[X>>3]=+h[W>>3];if(+h[W>>3]!=+h[X>>3]){v=48960;o=3;e=J;p=0}else{if(q>0.0){s=0;t=1.0;while(1){u=t*1.e+100;if(q>=u&(s|0)<351){s=s+100|0;t=u}else break}while(1){u=t*1.e+64;if(q>=u&(s|0)<351){s=s+64|0;t=u}else break}while(1){u=t*1.0e8;if(q>=u&(s|0)<351){s=s+8|0;t=u}else break}while(1){u=t*10.0;if((s|0)<351&q>=u){s=s+1|0;t=u}else break}q=q/t;if(q<1.0e-08)do{q=q*1.0e8;s=s+-8|0}while(q<1.0e-08);if(q<1.0)do{q=q*10.0;s=s+-1|0}while(q<1.0);if((s|0)>350){if(H<<24>>24==43)n=48976;else if(H<<24>>24==45)n=48968;else n=48984;f=n;while(1)if(!(a[f>>0]|0))break;else f=f+1|0;v=n;o=f-n&1073741823;e=J;p=0;break c}}else s=0;if(!B){q=r+q;if(!(q>=10.0))F=s;else{q=q*.1;F=s+1|0}}else F=s;if(D){p=(F|0)<-4|(n|0)<(F|0);D=z<<24>>24==0&1;n=n-(p?0:F)|0;p=p?3:2}else{D=w;p=G}E=p<<24>>24==3;f=E?0:F;s=(f|0)>0;p=fw(n|0,((n|0)<0)<<31>>31|0,J|0,((J|0)<0)<<31>>31|0)|0;s=fw(p|0,C|0,(s?f:0)|0,(s?((f|0)<0)<<31>>31:0)|0)|0;p=C;if((p|0)>0|(p|0)==0&s>>>0>55){s=fw(s|0,p|0,15,0)|0;s=mg(s,C)|0;if(!s){R=124;break a}else{v=s;G=s}}else{v=V;G=0}s=((w&255)*10|0)+16|0;A=(w|z)&255|(n|0)>0;if(!(H<<24>>24))B=v;else{a[v>>0]=H;B=v+1|0}if((f|0)<0){a[B>>0]=48;e=2;p=B+1|0;x=f}else{z=~f;z=(z|0)>-1?z:-1;x=-2-z|0;z=f+z|0;o=B;while(1){if((s|0)<1)e=48;else{p=~~q;e=p+48&255;q=(q-+(p|0))*10.0;s=s+-1|0}a[o>>0]=e;if((f|0)>0){o=o+1|0;f=f+-1|0}else break}e=z+3|0;p=B+(z+2)|0}o=(A|0)==0;if(!o){a[p>>0]=46;p=B+e|0}if((x+1|0)<0){bw(p|0,48,~x|0)|0;p=p+~x|0;n=n+1+x|0}if((n|0)>0){e=p;f=n;while(1){f=f+-1|0;if((s|0)<1)x=48;else{B=~~q;x=B+48&255;q=(q-+(B|0))*10.0;s=s+-1|0}a[e>>0]=x;if((f|0)<=0)break;else e=e+1|0}p=p+n|0}d:do if(!(D<<24>>24==0|o)){o=p;while(1){p=o+-1|0;n=a[p>>0]|0;if(n<<24>>24==46)break;else if(n<<24>>24!=48){p=o;break d}a[p>>0]=0;o=p}if(!(w<<24>>24)){a[p>>0]=0;break}else{a[o>>0]=48;p=o+1|0;break}}while(0);if(E){o=p+1|0;a[p>>0]=a[48912+(d[I+4>>0]|0)>>0]|0;n=p+2|0;if((F|0)<0){a[o>>0]=45;o=0-F|0}else{a[o>>0]=43;o=F}if((o|0)>99){a[n>>0]=((o|0)/100|0)+48;f=4;e=5;n=p+3|0;o=(o|0)%100|0}else{f=3;e=4}a[n>>0]=((o|0)/10|0)+48;a[p+f>>0]=((o|0)%10|0)+48;p=p+e|0}a[p>>0]=0;e=v;o=p-e|0;if(!(K<<24>>24==0&y<<24>>24!=0&(J|0)>(o|0))){e=J;p=G;break c}n=J-o|0;if((o|0)>=0){f=J;while(1){a[v+f>>0]=a[v+(f-n)>>0]|0;if((f|0)>(n|0))f=f+-1|0;else break}}if((J|0)==(o|0)){o=J;e=J;p=G;break c}bw(v+(H<<24>>24!=0&1)|0,48,J+e-p|0)|0;o=J;e=J;p=G}break}case 5:{if(P){o=c[L>>2]|0;e=c[g>>2]|0;v=c[e>>2]|0;c[g>>2]=e+4;c[v>>2]=o;v=f;o=0;e=0;p=0}else{v=f;o=0;e=0;p=0}break}case 8:{a[V>>0]=37;v=V;o=1;e=J;p=0;break}case 9:{if(!P){e=Qk(m)|0;if(!e)p=0;else p=a[e>>0]|0}else{G=c[g>>2]|0;p=c[G>>2]|0;c[g>>2]=G+4}if((D|0)>1){n=D+-1|0;e=J-n|0;if(!((e|0)<2|K<<24>>24!=0)){Rk(b,e+-1|0,32);e=0}f=p&255;Rk(b,n,f)}else{f=p&255;e=J}a[V>>0]=f;v=V;o=1;p=0;break}case 7:case 6:{if(M)n=Qk(m)|0;else{F=c[g>>2]|0;n=c[F>>2]|0;c[g>>2]=F+4}if(!n){f=10360;p=0}else{f=n;p=G<<24>>24!=7|M?0:n}if((D|0)>-1){if((D|0)>0)n=0;else{v=f;o=0;e=J;break c}while(1){o=n+1|0;if(!(a[f+n>>0]|0)){v=f;o=n;e=J;break c}if((o|0)<(D|0))n=o;else{v=f;e=J;break}}}else{if(!f){v=0;o=0;e=J;break c}else n=f;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;v=f;o=n-f&1073741823;e=J;break c}break}case 15:case 11:case 10:{z=G<<24>>24==15?34:39;if(P){F=c[g>>2]|0;p=c[F>>2]|0;c[g>>2]=F+4}else p=Qk(m)|0;v=(p|0)==0;if(v)p=G<<24>>24==11?20304:48992;e:do if(!D){y=0;o=0}else{s=z&255;n=0;e=D;o=0;while(1){f=a[p+n>>0]|0;if(!(f<<24>>24)){y=n;break e}o=((f<<24>>24|0)==(s|0)&1)+o|0;n=n+1|0;e=e+-1|0;if(!e){y=n;break}}}while(0);w=G<<24>>24==11&(v^1);n=((w&1)<<1|1)+y+o|0;if((n|0)>70){o=mg(n,((n|0)<0)<<31>>31)|0;if(!o){R=197;break a}else{v=o;x=o}}else{v=V;x=0}if(w){a[v>>0]=z;n=1}else n=0;if((y|0)>0){s=z&255;e=0;do{o=a[p+e>>0]|0;f=n+1|0;a[v+n>>0]=o;if((o<<24>>24|0)==(s|0)){a[v+f>>0]=o;n=n+2|0}else n=f;e=e+1|0}while((e|0)!=(y|0))}if(w){a[v+n>>0]=z;n=n+1|0}a[v+n>>0]=0;o=n;e=J;p=x;break}case 12:{G=c[g>>2]|0;e=c[G>>2]|0;c[g>>2]=G+4;if((e|0)!=0?(U=c[e+4>>2]|0,(U|0)!=0):0){Ok(b,c[e>>2]|0,U);v=f;o=0;e=0;p=0}else{v=f;o=0;e=0;p=0}break}default:break a}while(0);if((R|0)==50){R=0;do if(!(a[I+2>>0]&1)){if(M){f=Pk(m)|0;s=C;B=0;break}if(!(p<<24>>24)){s=c[g>>2]|0;f=c[s>>2]|0;c[g>>2]=s+4;s=0;B=0;break}else{B=c[g>>2]|0;s=B;f=c[s>>2]|0;s=c[s+4>>2]|0;c[g>>2]=B+8;B=0;break}}else{do if(!M)if(!(p<<24>>24)){o=c[g>>2]|0;p=c[o>>2]|0;c[g>>2]=o+4;o=((p|0)<0)<<31>>31;break}else{F=c[g>>2]|0;o=F;p=c[o>>2]|0;o=c[o+4>>2]|0;c[g>>2]=F+8;break}else{p=Pk(m)|0;o=C}while(0);if((o|0)<0){f=$v(0,0,p|0,o|0)|0;s=C;B=45;break}if(!(x<<24>>24)){f=p;s=o;B=v<<24>>24==0?0:32}else{f=p;s=o;B=43}}while(0);A=(f|0)==0&(s|0)==0;if(!(y<<24>>24))x=D;else{x=J-(B<<24>>24!=0&1)|0;x=(D|0)<(x|0)?x:D}if((x|0)>=60){p=x+10|0;o=mg(p,((p|0)<0)<<31>>31)|0;if(!o){R=69;break}else{e=p;p=o;n=o}}else{e=70;p=0;n=V}y=n+(e+-1)|0;if(G<<24>>24==16){o=qw(f|0,s|0,10,0)|0;if(!(o>>>0<=3?(G=pw(f|0,s|0,10,0)|0,G=qw(G|0,C|0,10,0)|0,!((G|0)==1&(C|0)==0)):0))o=0;G=o<<1;a[n+(e+-2)>>0]=a[48896+(G|1)>>0]|0;o=n+(e+-3)|0;a[o>>0]=a[48896+G>>0]|0}else o=y;e=d[I+4>>0]|0;v=d[I+1>>0]|0;while(1){G=qw(f|0,s|0,v|0,0)|0;n=o+-1|0;a[n>>0]=a[48912+(G+e)>>0]|0;f=pw(f|0,s|0,v|0,0)|0;s=C;if((f|0)==0&(s|0)==0)break;else o=n}f=x-y+n|0;if((f|0)>0){e=o;o=n;while(1){n=e+-2|0;a[n>>0]=48;f=f+-1|0;if((f|0)<=0)break;else{e=o;o=n}}}if(B<<24>>24){n=o+-2|0;a[n>>0]=B}if((!(A|z<<24>>24==0)?(S=a[I+5>>0]|0,S<<24>>24!=0):0)?(T=48952+(S&255)|0,!(S<<24>>24==3|S<<24>>24==6)):0){f=a[T>>0]|0;o=T;do{n=n+-1|0;a[n>>0]=f;o=o+1|0;f=a[o>>0]|0}while(f<<24>>24!=0)}v=n;o=y-n|0;e=J}n=e-o|0;f=(n|0)<1;if(!(f|K<<24>>24!=0))Rk(b,n,32);Ok(b,v,o);if(!(f|K<<24>>24==0))Rk(b,n,32);if(p)Sc(p);f=l+1|0;l=v}if((R|0)==10)Ok(b,48744,1);else if((R|0)==69){a[b+25>>0]=1;c[b+16>>2]=0}else if((R|0)==124){a[b+25>>0]=1;c[b+16>>2]=0}else if((R|0)==197){a[b+25>>0]=1;c[b+16>>2]=0}i=Y;return}function pg(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;f=b+8|0;d=c[f>>2]|0;do if(((d|0)!=0?(h=b+12|0,a[d+(c[h>>2]|0)>>0]=0,e=a[b+24>>0]|0,e<<24>>24!=0):0)?(g=b+4|0,(c[f>>2]|0)==(c[g>>2]|0)):0){if(e<<24>>24==1){d=(c[h>>2]|0)+1|0;d=ih(c[b>>2]|0,d,((d|0)<0)<<31>>31)|0}else d=Pc((c[h>>2]|0)+1|0)|0;c[f>>2]=d;if(!d){a[b+25>>0]=1;c[b+16>>2]=0;break}else{gw(d|0,c[g>>2]|0,(c[h>>2]|0)+1|0)|0;break}}while(0);return c[f>>2]|0}function qg(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;h=d+52|0;c[h>>2]=e;a:do if(!f){c[h>>2]=e;e=c[d+236>>2]|0;if(e){h=e+8|0;if(!(b[h>>1]&9312)){b[h>>1]=1;break}else{rg(e);break}}}else{l=d+236|0;do if(!(c[l>>2]|0)){h=ih(d,40,0)|0;if(!h){c[l>>2]=h;break a}else{e=h+0|0;k=e+40|0;do{a[e>>0]=0;e=e+1|0}while((e|0)<(k|0));b[h+8>>1]=1;c[h+32>>2]=d;c[l>>2]=h;break}}while(0);c[m>>2]=g;h=Sk(d,f,m)|0;e=c[l>>2]|0;if(e)Tg(e,h,-1,1,75)|0}while(0);i=n;return}function rg(a){a=a|0;var d=0,e=0;e=a+8|0;d=b[e>>1]|0;if(d&8192){Uk(a,c[a>>2]|0)|0;d=b[e>>1]|0}d=d&65535;do if(!(d&1024)){if(d&32){Vk(c[a>>2]|0);break}if(d&64){a=c[a>>2]|0;d=(c[a>>2]|0)+180|0;c[a+4>>2]=c[d>>2];c[d>>2]=a}}else _b[c[a+36>>2]&31](c[a+16>>2]|0);while(0);b[e>>1]=1;return}function sg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();g=k;e=Rh(b,d)|0;do if((e|0)==1){f=ih(a,536,0)|0;if(!f){qg(a,7,15776,g);e=0;break}bw(f|0,0,536)|0;c[f>>2]=b;if(!(Wk(f)|0)){ig(a,c[f+4>>2]|0);yh(f);ig(a,f);h=7;break}else{b=c[f+12>>2]|0;e=f+4|0;c[g>>2]=c[e>>2];qg(a,b,10344,g);ig(a,c[e>>2]|0);yh(f);ig(a,f);e=0;break}}else h=7;while(0);do if((h|0)==7)if((e|0)<0){c[g>>2]=d;qg(a,1,47448,g);e=0;break}else{e=c[(c[b+16>>2]|0)+(e<<4)+4>>2]|0;break}while(0);i=k;return e|0}function tg(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0;k=c[a+4>>2]|0;c[k+4>>2]=c[a>>2];j=k+22|0;if(!(b[j>>1]&2)){if((f|0)<0)f=(c[k+32>>2]|0)-(c[k+36>>2]|0)|0;if(((d+-512|0)>>>0<65025?(d+-1&d|0)==0:0)?(c[k+32>>2]=d,h=k+80|0,i=c[h>>2]|0,(i|0)!=0):0){a=i+-4|0;c[h>>2]=a;Xk(a);c[h>>2]=0}h=k+32|0;a=Yk(c[k>>2]|0,h,f)|0;c[k+36>>2]=(c[h>>2]|0)-(f&65535);if(g)b[j>>1]=e[j>>1]|0|2}else a=8;return a|0}function ug(f,g){f=f|0;g=g|0;var h=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;Q=i;i=i+16|0;if((i|0)>=(j|0))baba();r=v;t=v+8|0;c[t>>2]=0;q=h&1;a:do if(!f){c[r>>2]=46865;c[r+4>>2]=10788;Zc(11,13600,r);k=11}else{a[e+23>>0]=1;h=c[e+40>>2]|0;do if(!h){p=e+204|0;h=c[p>>2]|0;h=Yb[c[8744+132>>2]&63](c[h+40>>2]|0,f,d[h+29>>0]&3)|0;if(!h){m=c[p>>2]|0;if((a[m+29>>0]|0)!=2){l=m+8|0;h=c[l>>2]|0;b:do if(!h)u=11;else{while(1){if((b[h+26>>1]|0)==0?(b[h+24>>1]&4)==0:0)break;h=c[h+36>>2]|0;if(!h){u=11;break b}}c[l>>2]=h;o=h;u=14}while(0);c:do if((u|0)==11?(c[l>>2]=0,n=c[m+4>>2]|0,(n|0)!=0):0){h=n;do{if(!(b[h+26>>1]|0)){o=h;u=14;break c}h=c[h+36>>2]|0}while((h|0)!=0)}while(0);if((u|0)==14?(k=nc[c[m+32>>2]&127](c[m+36>>2]|0,o)|0,!((k|0)==0|(k|0)==5)):0)break;k=Yb[c[8744+132>>2]&63](c[m+40>>2]|0,f,2)|0;if(!k){k=7;break}}else k=0}else k=h;m=el(c[p>>2]|0,f,k)|0;c[g>>2]=m;if(!m)k=7;else{h=m+16|0;k=(q|0)!=0;if(!((c[h>>2]|0)==0|k)){k=e+184|0;c[k>>2]=(c[k>>2]|0)+1;k=0;break a}c[h>>2]=e;do if((f|0)>=0?(s=e+152|0,(((c[2514]|0)/(c[s>>2]|0)|0)+1|0)!=(f|0)):0){if(((a[e+15>>0]|0)==0?!((c[e+24>>2]|0)>>>0<f>>>0|k):0)?(c[c[e+60>>2]>>2]|0)!=0:0){k=c[e+208>>2]|0;if(!k)k=0;else{k=gl(k,f,t)|0;if(k)break;k=c[t>>2]|0}s=e+188|0;c[s>>2]=(c[s>>2]|0)+1;k=hl(m,k)|0;if(!k){k=0;break a}else break}if((c[e+156>>2]|0)>>>0<f>>>0)k=13;else{if(k){k=c[3164]|0;if(k)jc[k&3]();if((c[e+28>>2]|0)>>>0>=f>>>0)Zh(c[e+56>>2]|0,f)|0;fl(e,f)|0;k=c[3166]|0;if(k)jc[k&3]()}bw(c[m+4>>2]|0,0,c[s>>2]|0)|0;k=0;break a}}else u=21;while(0);if((u|0)==21){c[r>>2]=46945;c[r+4>>2]=10788;Zc(11,13600,r);k=11}il(m)}}else k=h;while(0);if((c[e+120>>2]|0)==0?(c[(c[e+204>>2]|0)+12>>2]|0)==0:0)jl(e);c[g>>2]=0}while(0);i=v;return k|0}function wg(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=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;w=i;i=i+16|0;if((i|0)>=(j|0))ba();v=w;t=b+4|0;p=c[(c[t>>2]|0)+4>>2]|0;u=c[p>>2]|0;s=b+24|0;o=c[(c[(c[s>>2]|0)+4>>2]|0)+32>>2]|0;p=c[p+32>>2]|0;q=(o|0)<(p|0)?o:p;r=((o|0)<0)<<31>>31;m=ow(o|0,r|0,d|0,0)|0;n=C;if((o|0)==(p|0))b=0;else b=(a[u+15>>0]|0)==0?0:8;a:do if((b|0)==0&(o|0)>0){d=$v(m|0,n|0,o|0,r|0)|0;l=((p|0)<0)<<31>>31;k=(f|0)==0;h=C;b=p;while(1){c[v>>2]=0;f=mw(d|0,h|0,p|0,l|0)|0;if((f|0)!=(((c[2514]|0)>>>0)/(b>>>0)|0|0)){b=vg(u,f+1|0,v,0)|0;g=c[v>>2]|0;if(!b){b=Cg(g)|0;if(!b){x=nw(d|0,h|0,o|0,r|0)|0;f=c[g+4>>2]|0;b=nw(d|0,h|0,p|0,l|0)|0;gw(f+b|0,e+x|0,q|0)|0;a[c[g+8>>2]>>0]=0;if((d|0)==0&(h|0)==0&k){x=c[(c[(c[s>>2]|0)+4>>2]|0)+44>>2]|0;a[f+(b+28)>>0]=x>>>24;a[f+(b+29)>>0]=x>>>16;a[f+(b+30)>>0]=x>>>8;a[f+(b+31)>>0]=x;b=0}else b=0}}if(g)xg(g)}else b=0;d=fw(d|0,h|0,p|0,l|0)|0;f=C;if(!((b|0)==0&((f|0)<(n|0)|(f|0)==(n|0)&d>>>0<m>>>0)))break a;h=f;b=c[(c[(c[t>>2]|0)+4>>2]|0)+32>>2]|0}}while(0);i=w;return b|0}function xg(a){a=a|0;var d=0,e=0,f=0;d=c[a+16>>2]|0;if(!(b[a+24>>1]&64)){kl(a);a=c[d+120>>2]|0}else{f=d+120|0;e=(c[f>>2]|0)+-1|0;c[f>>2]=e;f=d+136|0;c[a+12>>2]=c[f>>2];c[f>>2]=a;a=e}if((a|0)==0?(c[(c[d+204>>2]|0)+12>>2]|0)==0:0)jl(d);return}function yg(d){d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;i=d+44|0;if(!(c[i>>2]|0)){j=c[d+12>>2]|0;k=c[j+56>>2]|0;f=Cg(c[j+68>>2]|0)|0;if(!f){f=k+0|0;g=44680|0;h=f+16|0;do{a[f>>0]=a[g>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=d+32|0;a[k+16>>0]=(c[f>>2]|0)>>>8;a[k+17>>0]=(c[f>>2]|0)>>>16;a[k+18>>0]=1;a[k+19>>0]=1;a[k+20>>0]=(c[f>>2]|0)-(c[d+36>>2]|0);a[k+21>>0]=64;a[k+22>>0]=32;a[k+23>>0]=32;f=k+24|0;h=f+76|0;do{a[f>>0]=0;f=f+1|0}while((f|0)<(h|0));ll(j,13);f=d+22|0;b[f>>1]=e[f>>1]|0|2;f=a[d+17>>0]|0;a[k+52>>0]=0;a[k+53>>0]=0;a[k+54>>0]=0;a[k+55>>0]=f;f=a[d+18>>0]|0;a[k+64>>0]=0;a[k+65>>0]=0;a[k+66>>0]=0;a[k+67>>0]=f;c[i>>2]=1;a[k+31>>0]=1;f=0}}else f=0;return f|0}function zg(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;g=c[b+4>>2]|0;c[g+4>>2]=c[b>>2];b=c[g+12>>2]|0;f=c[b+56>>2]|0;b=Cg(c[b+68>>2]|0)|0;if((b|0)==0?(i=d<<2,a[f+(i+36)>>0]=e>>>24,a[f+(i+37)>>0]=e>>>16,a[f+(i+38)>>0]=e>>>8,h=e&255,a[f+(i+39)>>0]=h,(d|0)==7):0)a[g+18>>0]=h;return b|0}function Ag(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=a+20|0;b=c[h>>2]|0;d=(b|0)>0;if(d){e=c[a+16>>2]|0;g=0;do{f=c[e+(g<<4)+4>>2]|0;if(f)c[(c[f+4>>2]|0)+4>>2]=c[f>>2];g=g+1|0}while((g|0)!=(b|0));if(d){g=a+16|0;f=0;do{d=c[(c[g>>2]|0)+(f<<4)+12>>2]|0;if(d){ml(d);b=c[h>>2]|0}f=f+1|0}while((f|0)<(b|0))}}b=a+24|0;c[b>>2]=c[b>>2]&-3;nl(a);ol(a);return}function Bg(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;h=c[d+4>>2]|0;k=h+22|0;g=e[k>>1]|0;b[k>>1]=(f|0)==1?g|16:g&65519;g=ug(d,0)|0;do if(!g){h=h+12|0;i=c[(c[h>>2]|0)+56>>2]|0;j=i+18|0;g=a[j>>0]|0;f=f&255;if(g<<24>>24==f<<24>>24?(a[i+19>>0]|0)==g<<24>>24:0){g=0;break}g=ug(d,2)|0;if(!g){g=Cg(c[(c[h>>2]|0)+68>>2]|0)|0;if(!g){a[j>>0]=f;a[i+19>>0]=f;g=0}}}while(0);b[k>>1]=e[k>>1]&65519;return g|0}function Cg(a){a=a|0;var b=0;b=c[a+16>>2]|0;if((c[b+148>>2]|0)>>>0>(c[b+152>>2]|0)>>>0)a=pl(a)|0;else a=ql(a)|0;return a|0}function Dg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=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;y=i;i=i+32|0;if((i|0)>=(j|0))ba();s=y+16|0;t=y;k=y+12|0;m=y+8|0;g=c[b+40>>2]|0;a:do if(!g){x=b+16|0;if((d[x>>0]|0)>=3){b:do if(!(a[b+15>>0]|0)){if(c[b+208>>2]|0){l=b+204|0;h=rl(c[l>>2]|0)|0;c[m>>2]=0;if(!h){g=vg(b,1,m,0)|0;h=c[m>>2]|0;c[h+12>>2]=0;if(h){k=h;w=9}}else{k=0;w=9}if((w|0)==9){g=sl(b,h,c[b+24>>2]|0,1)|0;if(k)xg(k)}if(g)break a;h=c[l>>2]|0;g=c[h>>2]|0;if(!g)break;while(1){tl(g);g=c[h>>2]|0;if(!g)break b}}l=b+18|0;if((a[l>>0]|0)==0?(c[b+24>>2]|0)!=0:0){g=vg(b,1,k,0)|0;k=c[k>>2]|0;if(!g){g=Cg(k)|0;if(!g){ul(k);a[l>>0]=1;g=0}}if(k)xg(k);if(g)break a}if(((e|0)!=0?(a[b+5>>0]|0)!=4:0)?(v=b+64|0,r=c[v>>2]|0,(c[r>>2]|0)!=0):0){a[b+19>>0]=1;k=a[e>>0]|0;if(!(k<<24>>24)){l=0;h=0}else{l=0;h=0;do{l=(k<<24>>24)+l|0;h=h+1|0;k=a[e+h>>0]|0}while(k<<24>>24!=0)}q=b+72|0;g=q;k=c[g>>2]|0;g=c[g+4>>2]|0;if(!(a[b+8>>0]|0))m=g;else{if((k|0)==0&(g|0)==0){k=0;g=0}else{g=fw(k|0,g|0,-1,-1)|0;k=c[b+148>>2]|0;g=mw(g|0,C|0,k|0,0)|0;g=fw(g|0,C|0,1,0)|0;k=ow(g|0,C|0,k|0,0)|0;g=C}m=q;c[m>>2]=k;c[m+4>>2]=g;m=g}g=((c[2514]|0)/(c[b+152>>2]|0)|0)+1|0;a[s>>0]=g>>>24;n=s+1|0;a[n>>0]=g>>>16;o=s+2|0;a[o>>0]=g>>>8;p=s+3|0;a[p>>0]=g;g=pc[c[(c[r>>2]|0)+12>>2]&31](r,s,4,k,m)|0;if(g)break a;g=c[v>>2]|0;m=fw(k|0,m|0,4,0)|0;k=C;g=pc[c[(c[g>>2]|0)+12>>2]&31](g,e,h,m,k)|0;if(g)break a;g=c[v>>2]|0;m=fw(m|0,k|0,h|0,((h|0)<0)<<31>>31|0)|0;k=C;a[s>>0]=h>>>24;a[n>>0]=h>>>16;a[o>>0]=h>>>8;a[p>>0]=h;g=pc[c[(c[g>>2]|0)+12>>2]&31](g,s,4,m,k)|0;if(g)break a;r=c[v>>2]|0;g=fw(m|0,k|0,4,0)|0;a[s>>0]=l>>>24;a[n>>0]=l>>>16;a[o>>0]=l>>>8;a[p>>0]=l;g=pc[c[(c[r>>2]|0)+12>>2]&31](r,s,4,g,C)|0;if(g)break a;r=c[v>>2]|0;g=fw(m|0,k|0,8,0)|0;g=pc[c[(c[r>>2]|0)+12>>2]&31](r,14808,8,g,C)|0;if(g)break a;r=h+20|0;g=q;r=fw(c[g>>2]|0,c[g+4>>2]|0,r|0,((r|0)<0)<<31>>31|0)|0;g=q;c[g>>2]=r;c[g+4>>2]=C;g=c[v>>2]|0;g=nc[c[(c[g>>2]|0)+24>>2]&127](g,t)|0;if(g)break a;r=t;p=c[r+4>>2]|0;g=q;h=c[g>>2]|0;g=c[g+4>>2]|0;if((p|0)>(g|0)|((p|0)==(g|0)?(c[r>>2]|0)>>>0>h>>>0:0)?(u=c[v>>2]|0,u=Yb[c[(c[u>>2]|0)+16>>2]&63](u,h,g)|0,(u|0)!=0):0){g=u;break a}}g=vl(b,0)|0;if(g)break a;h=b+204|0;g=wl(b,rl(c[h>>2]|0)|0)|0;if(g)break a;g=c[h>>2]|0;h=c[g>>2]|0;if(h)do{tl(h);h=c[g>>2]|0}while((h|0)!=0);h=c[b+24>>2]|0;if(h>>>0>(c[b+32>>2]|0)>>>0){g=xl(b,h-((h|0)==(((c[2514]|0)/(c[b+152>>2]|0)|0)+1|0)&1)|0)|0;if(!(g|f))w=46}else if(!f)w=46;else break;if((w|0)==46)g=Eg(b,e)|0;if(g)break a}else{g=c[b+88>>2]|0;if(g)do{c[g+16>>2]=1;g=c[g+44>>2]|0}while((g|0)!=0)}while(0);if(!(c[b+208>>2]|0)){a[x>>0]=5;g=0}else g=0}else g=0}while(0);i=y;return g|0}function Eg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0;g=b+60|0;h=c[g>>2]|0;i=c[h>>2]|0;if(!((i|0)!=0?(f=Yb[c[i+40>>2]&63](h,21,e)|0,!((f|0)==0|(f|0)==12)):0))if(!(a[b+7>>0]|0)){f=c[g>>2]|0;f=nc[c[(c[f>>2]|0)+20>>2]&127](f,d[b+11>>0]|0)|0}else f=0;return f|0}function Fg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;g=a[b+8>>0]|0;do if(!(g<<24>>24))f=0;else{k=c[b+4>>2]|0;c[k+4>>2]=c[b>>2];if(g<<24>>24==2){h=c[k>>2]|0;i=h+40|0;g=c[i>>2]|0;do if(!g){g=h+16|0;if(((a[g>>0]|0)==2?(a[h+4>>0]|0)!=0:0)?(a[h+5>>0]|0)==1:0){a[g>>0]=1;break}f=h+100|0;c[f>>2]=(c[f>>2]|0)+1;f=yl(h,d[h+19>>0]|0,1)|0;h=f&255;if((h|0)==10|(h|0)==13){c[i>>2]=f;a[g>>0]=6;j=10}else j=10}else{f=g;j=10}while(0);if((j|0)==10?(f|0)!=0&(e|0)==0:0)break;f=b+20|0;c[f>>2]=(c[f>>2]|0)+-1;a[k+20>>0]=1;f=k+60|0;ai(c[f>>2]|0);c[f>>2]=0}zl(b);f=0}while(0);return f|0}function Gg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();h=q;a:do if((a[b+8>>0]|0)==2){p=c[b+4>>2]|0;c[p+4>>2]=c[b>>2];do if(a[p+17>>0]|0){o=c[p>>2]|0;f=p+8|0;b=c[f>>2]|0;if(b)do{n=b+72|0;a[n>>0]=d[n>>0]&251;b=c[b+8>>2]|0}while((b|0)!=0);if(!(a[p+18>>0]|0)){n=p+44|0;g=c[n>>2]|0;if(g>>>0<2)b=0;else{b=g+-2|0;b=b-((b>>>0)%(((((c[p+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;b=((b+1|0)==(((c[2514]|0)>>>0)/((c[p+32>>2]|0)>>>0)|0|0)?3:2)+b|0}if((b|0)!=(g|0)?(g|0)!=((((c[2514]|0)>>>0)/((c[p+32>>2]|0)>>>0)|0)+1|0):0){k=p+12|0;l=c[(c[k>>2]|0)+56>>2]|0;l=d[l+37>>0]<<16|d[l+36>>0]<<24|d[l+38>>0]<<8|d[l+39>>0];m=Al(p,g,l)|0;if(m>>>0>g>>>0){c[h>>2]=56396;c[h+4>>2]=10788;Zc(11,13600,h);b=11;break a}b:do if(m>>>0<g>>>0){b=c[f>>2]|0;c:do if(b){while(1){if(b)break;b=c[2]|0;if(!b)break c}b=Bl(b,0,0)|0;if(b){f=0;break b}}while(0);do{b=Cl(p,m,g,1)|0;g=g+-1|0;f=(b|0)==0}while(g>>>0>m>>>0&f)}else{f=1;b=0}while(0);if(((b|0)==101|f)&(l|0)!=0){b=Cg(c[(c[k>>2]|0)+68>>2]|0)|0;l=(c[(c[k>>2]|0)+56>>2]|0)+32|0;a[l>>0]=0;a[l+1>>0]=0;a[l+2>>0]=0;a[l+3>>0]=0;l=(c[(c[k>>2]|0)+56>>2]|0)+36|0;a[l>>0]=0;a[l+1>>0]=0;a[l+2>>0]=0;a[l+3>>0]=0;l=c[(c[k>>2]|0)+56>>2]|0;a[l+28>>0]=m>>>24;a[l+29>>0]=m>>>16;a[l+30>>0]=m>>>8;a[l+31>>0]=m;a[p+19>>0]=1;c[n>>2]=m}if(!b)break;Dl(o)|0;break a}c[h>>2]=56391;c[h+4>>2]=10788;Zc(11,13600,h);b=11;break a}}while(0);b=c[p>>2]|0;if(a[p+19>>0]|0)c[b+24>>2]=c[p+44>>2];b=Dg(b,e,0)|0}else b=0;while(0);i=q;return b|0}function Hg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();h=m;l=c[b+4>>2]|0;c[l+4>>2]=c[b>>2];a:do if(!e){e=c[l+8>>2]|0;if(e){while(1){if(e)break;e=c[2]|0;if(!e)break a}e=Bl(e,0,0)|0;g=(e|0)==0;if(!g){g=g?f:0;k=6}}}else{g=f;k=6}while(0);if((k|0)==6)El(b,e,g)|0;if((a[b+8>>0]|0)==2){Dl(c[l>>2]|0)|0;if(!($k(l,1,h,0)|0)){e=c[h>>2]|0;g=c[e+56>>2]|0;g=d[g+29>>0]<<16|d[g+28>>0]<<24|d[g+30>>0]<<8|d[g+31>>0];if(!g)g=c[(c[l>>2]|0)+24>>2]|0;c[l+44>>2]=g;if(e)xg(c[e+68>>2]|0)}a[l+20>>0]=1;g=l+60|0;ai(c[g>>2]|0);c[g>>2]=0}zl(b);i=m;return}function Ig(d){d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;j=d+76|0;if((c[j>>2]|0)==1691352191?(Fl(d)|0)==0:0){Gl(d,0);Hl(d);i=d+20|0;k=d+16|0;e=c[k>>2]|0;if((c[i>>2]|0)>0){h=0;do{g=e+(h<<4)+4|0;f=c[g>>2]|0;if((f|0)!=0?(Il(f),c[g>>2]=0,(h|0)!=1):0)c[e+(h<<4)+12>>2]=0;h=h+1|0;e=c[k>>2]|0}while((h|0)<(c[i>>2]|0))}e=c[e+28>>2]|0;if(e)ml(e);nl(d);ol(d);h=0;do{e=c[d+(h<<2)+336>>2]|0;if(e)do{g=e;e=c[e+28>>2]|0;if(g)do{Jl(d,g);f=g;g=c[g+8>>2]|0;ig(d,f)}while((g|0)!=0)}while((e|0)!=0);h=h+1|0}while((h|0)!=23);f=d+428|0;e=c[d+436>>2]|0;if(e)do{h=c[e+8>>2]|0;g=c[h+16>>2]|0;if(g)_b[g&31](c[h+8>>2]|0);g=c[h+36>>2]|0;if(g)_b[g&31](c[h+28>>2]|0);g=c[h+56>>2]|0;if(g)_b[g&31](c[h+48>>2]|0);ig(d,h);e=c[e>>2]|0}while((e|0)!=0);Kl(f);h=d+308|0;e=c[d+316>>2]|0;if(e)do{g=c[e+8>>2]|0;f=c[g+12>>2]|0;if(f)_b[f&31](c[g+8>>2]|0);ig(d,g);e=c[e>>2]|0}while((e|0)!=0);Kl(h);c[d+52>>2]=0;f=d+236|0;e=c[f>>2]|0;do if(e){g=e+8|0;if(!(b[g>>1]&9312)){b[g>>1]=1;break}else{rg(e);e=c[f>>2]|0;break}}else e=0;while(0);Ih(e);g=d+168|0;if((c[g>>2]|0)>0){e=d+172|0;f=0;do{h=c[d>>2]|0;fc[c[h+52>>2]&15](h,c[(c[e>>2]|0)+(f<<2)>>2]|0);f=f+1|0}while((f|0)<(c[g>>2]|0))}else e=d+172|0;ig(d,c[e>>2]|0);c[j>>2]=-1254786768;ig(d,c[(c[k>>2]|0)+28>>2]|0);c[j>>2]=-1623446221;if(a[d+251>>0]|0)Sc(c[d+276>>2]|0);Sc(d)}return}function Jg(a){a=a|0;var b=0;b=c[a+40>>2]|0;if((b|0)==1369188723|(b|0)==-1108210269)b=Lg(a)|0;else b=0;Ll(a);return b|0}function Kg(b,d){b=b|0;d=d|0;do if(b)if((a[b+65>>0]|0)!=0|(d|0)==3082){Ml(b);b=7;break}else{b=c[b+56>>2]&d;break}else b=d&255;while(0);return b|0}function Lg(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,k=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();e=g;f=c[a>>2]|0;Nl(a)|0;if((c[a+76>>2]|0)>-1){dh(a)|0;d=a+44|0;ig(f,c[d>>2]|0);c[d>>2]=0;d=a+88|0;e=b[d>>1]|0;if(e&16)b[d>>1]=e|8}else{d=c[a+80>>2]|0;if((d|0)!=0?(b[a+88>>1]&8)!=0:0){h=a+44|0;k=c[h>>2]|0;c[e>>2]=k;qg(f,d,(k|0)!=0?10344:0,e);ig(f,c[h>>2]|0);c[h>>2]=0}}d=a+44|0;ig(c[a>>2]|0,c[d>>2]|0);c[d>>2]=0;c[a+20>>2]=0;d=a+136|0;c[d>>2]=0;c[d+4>>2]=0;c[a+40>>2]=649915045;i=g;return c[f+56>>2]&c[a+80>>2]|0}function Mg(a){a=a|0;var d=0;if(b[a+8>>1]&9312)rg(a);d=a+24|0;if(c[d>>2]|0){ig(c[a+32>>2]|0,c[a+20>>2]|0);c[d>>2]=0}c[a+16>>2]=0;return}function Ng(a){a=a|0;var d=0,f=0,g=0;d=a+8|0;if(b[d>>1]&16384){f=a+12|0;g=(c[a>>2]|0)+(c[f>>2]|0)|0;if(!(ah(a,(g|0)<1?1:g,1)|0)){bw((c[a+16>>2]|0)+(c[f>>2]|0)|0,0,c[a>>2]|0)|0;c[f>>2]=(c[f>>2]|0)+(c[a>>2]|0);b[d>>1]=(e[d>>1]|0)&48639;d=0}else d=7}else d=0;return d|0}function Og(d,e){d=d|0;e=e|0;var f=0;do if(d){f=b[d+8>>1]|0;if((f&514)==514?(a[d+10>>0]|0)==e<<24>>24:0){f=c[d+16>>2]|0;break}if(!(f&1))f=Ol(d,e)|0;else f=0}else f=0;while(0);return f|0}function Pg(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=a+8|0;f=b[e>>1]|0;if(!(f&16))if(!(Og(a,d)|0))e=0;else{f=b[e>>1]|0;g=4}else g=4;if((g|0)==4){e=c[a+12>>2]|0;if(f&16384)e=(c[a>>2]|0)+e|0}return e|0}function Qg(b){b=b|0;var d=0.0,f=0,g=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();g=k;f=e[b+8>>1]|0;do if(!(f&8)){if(f&4){f=b;d=+((c[f>>2]|0)>>>0)+4294967296.0*+(c[f+4>>2]|0);break}if(!(f&18))d=0.0;else{h[g>>3]=0.0;Pl(c[b+16>>2]|0,g,c[b+12>>2]|0,a[b+10>>0]|0)|0;d=+h[g>>3]}}else d=+h[b>>3];while(0);i=k;return +d}function Rg(b){b=b|0;var d=0.0,f=0,g=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))baba();e=g+8|0;f=g;d=a+8|0;if(!(b[d>>1]&9312))b[d>>1]=1;else rg(a);h[e>>3]=c;h[f>>3]=+h[e>>3];if(!(+h[e>>3]!=+h[f>>3])){h[a>>3]=c;b[d>>1]=8}i=g;return}function Vg(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;f=a+8|0;if(!(b[f>>1]&9312))b[f>>1]=1;else rg(a);c[a>>2]=d;c[a+4>>2]=e;b[f>>1]=4;return}function Wg(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;f=a+8|0;if(b[f>>1]&9312)rg(a);c[a+0>>2]=c[d+0>>2];c[a+4>>2]=c[d+4>>2];c[a+8>>2]=c[d+8>>2];c[a+12>>2]=c[d+12>>2];c[a+16>>2]=c[d+16>>2];h=e[f>>1]|0;g=h&64511;b[f>>1]=g;if((h&18|0)!=0?(b[d+8>>1]&2048)==0:0){b[f>>1]=g|4096;f=Rl(a)|0}else f=0;return f|0}function Xg(d,e){d=d|0;e=e|0;var f=0;f=d+8|0;if(!((b[f>>1]&9312)==0?(c[d+24>>2]|0)==0:0))Mg(d);b[f>>1]=16400;c[d+12>>2]=0;c[d>>2]=(e|0)<0?0:e;a[d+10>>0]=1;c[d+16>>2]=0;return}function Yg(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();b=d;if(a)if(!(c[a>>2]|0)){Zc(21,47360,b);a=1}else a=0;else{Zc(21,47320,b);a=1}i=d;return a|0}function Zg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0.0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;if((c[a>>2]|0)>1?(d=c[a+72>>2]|0,(d|0)!=0):0)d=nc[d&127](a,b)|0;else{d=nc[c[a+64>>2]&127](a,e)|0;g=+h[e>>3]*864.0e5;a=+N(g)>=1.0?(g>0.0?~~+$(+M(g/4294967296.0),4294967295.0)>>>0:~~+Z((g-+(~~g>>>0))/4294967296.0)>>>0):0;c[b>>2]=~~g>>>0;c[b+4>>2]=a}i=f;return d|0}function _g(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a:do if((d|0)!=0&(e|0)!=0){i=d+(e*40|0)|0;j=c[d+32>>2]|0;g=j+65|0;h=a[g>>0]|0;if(c[j+520>>2]|0){e=d;while(1){if(c[e+24>>2]|0)ig(j,c[e+20>>2]|0);e=e+40|0;if(e>>>0>=i>>>0)break a}}do{e=d+8|0;if(!(b[e>>1]&9312)){f=d+24|0;if(c[f>>2]|0){ig(j,c[d+20>>2]|0);c[f>>2]=0}}else Mg(d);b[e>>1]=128;d=d+40|0}while(d>>>0<i>>>0);a[g>>0]=h}while(0);return}function $g(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();g=f;c[g>>2]=e;e=Sk(b,d,g)|0;ig(b,c[a>>2]|0);c[a>>2]=e;i=f;return}function ah(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;l=a+24|0;g=c[l>>2]|0;do if((g|0)<(d|0)){k=(d|0)<32?32:d;d=(g|0)>0;if((f|0)!=0&d?(h=a+16|0,i=c[h>>2]|0,j=a+20|0,(i|0)==(c[j>>2]|0)):0){g=Sl(c[a+32>>2]|0,i,k,((k|0)<0)<<31>>31)|0;c[j>>2]=g;c[h>>2]=g;f=0}else{g=a+32|0;if(d){d=a+20|0;ig(c[g>>2]|0,c[d>>2]|0)}else d=a+20|0;g=ih(c[g>>2]|0,k,((k|0)<0)<<31>>31)|0;c[d>>2]=g}if(!g){f=a+8|0;if(!(b[f>>1]&9312))b[f>>1]=1;else rg(a);c[a+16>>2]=0;c[l>>2]=0;f=7;break}d=c[a+32>>2]|0;do if(!d)d=hc[c[8744+48>>2]&127](g)|0;else{if((c[d+276>>2]|0)>>>0<=g>>>0?(c[d+280>>2]|0)>>>0>g>>>0:0){d=e[d+248>>1]|0;break}d=hc[c[8744+48>>2]&127](g)|0}while(0);c[l>>2]=d;o=21}else o=21;while(0);if((o|0)==21){if(((f|0)!=0?(m=c[a+16>>2]|0,(m|0)!=0):0)?(n=c[a+20>>2]|0,(m|0)!=(n|0)):0)gw(n|0,m|0,c[a+12>>2]|0)|0;d=a+8|0;f=b[d>>1]|0;if(!(f&1024))g=a+16|0;else{g=a+16|0;_b[c[a+36>>2]&31](c[g>>2]|0);f=b[d>>1]|0}c[g>>2]=c[a+20>>2];b[d>>1]=f&58367;f=0}return f|0}function bh(a,d){a=a|0;d=d|0;if((c[a+24>>2]|0)<(d|0))a=ah(a,d,0)|0;else{c[a+16>>2]=c[a+20>>2];a=a+8|0;b[a>>1]=(e[a>>1]|0)&13;a=0}return a|0}
11 function iq(f,g){f=f|0;g=g|0;var h=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,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,ca=0,da=0,ea=0;ea=i;i=i+192|0;if((i|0)>=(j|0))baase 203:case 202:case 201:case 200:case 199:case 198:{_=aa+-2|0;c[ca>>2]=Vq($,d[f+(aa+-1<<4)+14>>0]|0,c[f+(_<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0,0)|0;c[ca+4>>2]=c[f+(_<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 206:{Z=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;c[ca+8>>2]=0;break}case 207:{Z=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;c[ca+8>>2]=1;break}case 208:{l=aa+-2|0;_=aa+-1|0;h=sr($,hr($,hr($,0,c[f+(aa<<4)+16>>2]|0)|0,c[f+(l<<4)+16>>2]|0)|0,f+(_<<4)+16|0)|0;c[ca>>2]=h;if(c[f+(_<<4)+24>>2]|0){h=Vq($,19,h,0,0)|0;c[ca>>2]=h}c[ca+4>>2]=c[f+(l<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];if(h){$=h+4|0;c[$>>2]=c[$>>2]|128}break}case 210:{_=aa+-1|0;c[ca>>2]=Vq($,d[f+(aa<<4)+14>>0]|0,c[f+(_<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(_<<4)+20>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 209:{l=aa+-4|0;_=aa+-3|0;h=sr($,hr($,hr($,hr($,0,c[f+(aa+-2<<4)+16>>2]|0)|0,c[f+(l<<4)+16>>2]|0)|0,c[f+(aa<<4)+16>>2]|0)|0,f+(_<<4)+16|0)|0;c[ca>>2]=h;if(c[f+(_<<4)+24>>2]|0){h=Vq($,19,h,0,0)|0;c[ca>>2]=h}c[ca+4>>2]=c[f+(l<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];if(h){$=h+4|0;c[$>>2]=c[$>>2]|128}break}case 223:{l=f+(aa+-1<<4)+16|0;h=c[l>>2]|0;do if(h){if((c[h>>2]|0)==1){_=c[h+4>>2]|0;h=c[_>>2]|0;c[_>>2]=0;Jk(c[$>>2]|0,c[l>>2]|0);if(h){_=h+4|0;c[_>>2]=c[_>>2]&-769|512}c[ca>>2]=Vq($,(c[f+(aa+-3<<4)+16>>2]|0)!=0?78:79,c[f+(aa+-4<<4)+16>>2]|0,h,0)|0;break}h=Vq($,75,c[f+(aa+-4<<4)+16>>2]|0,0,0)|0;c[ca>>2]=h;if(!h){Jk(c[$>>2]|0,c[l>>2]|0);h=0}else{c[h+20>>2]=c[l>>2];h=c[ca>>2]|0;ur($,h)}if(c[f+(aa+-3<<4)+16>>2]|0)c[ca>>2]=Vq($,19,h,0,0)|0}else{c[ca>>2]=Vq($,132,0,0,20616+(c[f+(aa+-3<<4)+16>>2]<<3)|0)|0;Ck(c[$>>2]|0,c[f+(aa+-4<<4)+16>>2]|0)}while(0);c[ca+4>>2]=c[f+(aa+-4<<4)+20>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 211:{_=aa+-2|0;c[ca>>2]=Vq($,77,c[f+(_<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(_<<4)+20>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 212:{Y=aa+-2|0;Z=f+(aa<<4)+16|0;_=Vq($,73,c[f+(Y<<4)+16>>2]|0,c[Z>>2]|0,0)|0;c[ca>>2]=_;c[ca+4>>2]=c[f+(Y<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];tr($,c[Z>>2]|0,_,76);break}case 213:{Y=aa+-3|0;Z=f+(aa<<4)+16|0;_=Vq($,148,c[f+(Y<<4)+16>>2]|0,c[Z>>2]|0,0)|0;c[ca>>2]=_;c[ca+4>>2]=c[f+(Y<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];tr($,c[Z>>2]|0,_,77);break}case 215:case 214:{_=aa+-1|0;c[ca>>2]=Vq($,d[f+(_<<4)+14>>0]|0,c[f+(aa<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(_<<4)+16>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 216:{c[ca>>2]=Vq($,157,c[f+(aa<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(aa+-1<<4)+16>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 217:{c[ca>>2]=Vq($,158,c[f+(aa<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(aa+-1<<4)+16>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 220:{k=hr($,hr($,0,c[f+(aa+-2<<4)+16>>2]|0)|0,c[f+(aa<<4)+16>>2]|0)|0;l=aa+-4|0;h=Vq($,74,c[f+(l<<4)+16>>2]|0,0,0)|0;c[ca>>2]=h;if(!h)Jk(c[$>>2]|0,k);else c[h+20>>2]=k;if(c[f+(aa+-3<<4)+16>>2]|0)c[ca>>2]=Vq($,19,c[ca>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(l<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 116:{c[ca>>2]=116;break}case 121:{h=gr($,c[f+(aa+-1<<4)+16>>2]|0,0,0,0,0,0,128,0,0)|0;if(!h){c[ca>>2]=c[f+(aa+-4<<4)+16>>2];break a}else{a[h+4>>0]=116;c[h+52>>2]=c[f+(aa+-4<<4)+16>>2];c[ca>>2]=h;break a}}case 122:{b[ca>>1]=1;break}case 124:case 123:{b[ca>>1]=0;break}case 243:case 125:{c[ca>>2]=c[f+(aa+-1<<4)+16>>2];break}case 242:case 236:case 161:case 154:case 126:{c[ca>>2]=0;break}case 127:{l=aa+-1|0;n=hr($,c[f+(aa+-2<<4)+16>>2]|0,c[f+(l<<4)+16>>2]|0)|0;c[ca>>2]=n;if(c[f+(aa<<4)+20>>2]|0)ir($,n,f+(aa<<4)+16|0,1);p=c[$>>2]|0;if(n){o=(c[n+4>>2]|0)+(((c[n>>2]|0)+-1|0)*20|0)+8|0;ig(p,c[o>>2]|0);m=c[f+(l<<4)+20>>2]|0;n=(c[f+(l<<4)+24>>2]|0)-m|0;if((m|0)!=0?(h=fw(n|0,((n|0)<0)<<31>>31|0,1,0)|0,h=ih(p,h,C)|0,(h|0)!=0):0){gw(h|0,m|0,n|0)|0;a[h+n>>0]=0}else h=0;c[o>>2]=h}break}case 133:{l=ih(c[$>>2]|0,80,0)|0;if(l){v=l+0|0;k=v+80|0;do{a[v>>0]=0;v=v+1|0}while((v|0)<(k|0))}c[ca>>2]=l;break}case 134:{n=c[f+(aa<<4)+16>>2]|0;c[ca>>2]=n;if(n){l=c[n>>2]|0;k=l+-1|0;if((k|0)>0)while(1){a[n+(k*72|0)+44>>0]=a[n+((l+-2|0)*72|0)+44>>0]|0;l=k+-1|0;if((l|0)>0){$=k;k=l;l=$}else break}a[n+44>>0]=0}break}case 128:{Z=c[$>>2]|0;c[_>>2]=0;c[_+4>>2]=0;_=jr(Z,116,_,0)|0;c[ca>>2]=hr($,c[f+(aa+-1<<4)+16>>2]|0,_)|0;break}case 132:{c[ca+4>>2]=0;break}case 129:{_=Vq($,116,0,0,f+(aa<<4)+16|0)|0;_=Vq($,122,Vq($,27,0,0,f+(aa+-2<<4)+16|0)|0,_,0)|0;c[ca>>2]=hr($,c[f+(aa+-3<<4)+16>>2]|0,_)|0;break}case 136:{c[ca>>2]=0;break}case 137:{_=fr($,c[f+(aa+-6<<4)+16>>2]|0,f+(aa+-5<<4)+16|0,f+(aa+-4<<4)+16|0,f+(aa+-3<<4)+16|0,0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;c[ca>>2]=_;kr($,_,f+(aa+-2<<4)+16|0);break}case 135:{h=c[f+(aa+-1<<4)+16>>2]|0;c[ca>>2]=h;if((h|0)!=0?(t=c[h>>2]|0,(t|0)>0):0)a[h+((t+-1|0)*72|0)+44>>0]=c[f+(aa<<4)+16>>2];break}case 138:{c[ca>>2]=fr($,c[f+(aa+-6<<4)+16>>2]|0,0,0,f+(aa+-2<<4)+16|0,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 139:{l=f+(aa+-6<<4)+16|0;n=c[l>>2]|0;if((((n|0)==0?(c[f+(aa+-2<<4)+20>>2]|0)==0:0)?(c[f+(aa+-1<<4)+16>>2]|0)==0:0)?(c[f+(aa<<4)+16>>2]|0)==0:0){c[ca>>2]=c[f+(aa+-4<<4)+16>>2];break a}p=f+(aa+-4<<4)+16|0;k=c[p>>2]|0;o=c[k>>2]|0;if((o|0)==1){l=fr($,n,0,0,f+(aa+-2<<4)+16|0,0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;c[ca>>2]=l;if(l){X=(c[l>>2]|0)+-1|0;_=c[p>>2]|0;Z=_+16|0;c[l+(X*72|0)+16>>2]=c[Z>>2];Y=_+12|0;c[l+(X*72|0)+12>>2]=c[Y>>2];_=_+28|0;c[l+(X*72|0)+28>>2]=c[_>>2];c[Y>>2]=0;c[Z>>2]=0;c[_>>2]=0}zo(c[$>>2]|0,c[p>>2]|0);break a}if(k){m=o+-1|0;if((m|0)>0){n=o;while(1){a[k+(m*72|0)+44>>0]=a[k+((n+-2|0)*72|0)+44>>0]|0;n=m+-1|0;if((n|0)>0){_=m;m=n;n=_}else break}}a[k+44>>0]=0}_=gr($,0,k,0,0,0,0,512,0,0)|0;c[ca>>2]=fr($,c[l>>2]|0,0,0,f+(aa+-2<<4)+16|0,_,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 149:case 140:{c[ca>>2]=0;c[ca+4>>2]=0;break}case 144:{c[ca>>2]=mr($,f+(aa+-1<<4)+16|0,0,0)|0;break}case 145:{c[ca>>2]=mr($,f+(aa+-2<<4)+16|0,f+(aa+-1<<4)+16|0,0)|0;break}case 146:{c[ca>>2]=mr($,f+(aa+-3<<4)+16|0,f+(aa+-2<<4)+16|0,f+(aa+-1<<4)+16|0)|0;break}case 233:case 231:case 171:case 164:case 147:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 234:case 232:case 170:case 163:case 148:{c[ca>>2]=0;break}case 151:{c[ca>>2]=0;c[ca+4>>2]=1;break}case 143:{c[ca>>2]=1;break}case 142:{c[ca>>2]=lr(c[$>>2]|0,0,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0)|0;break}case 156:{h=hr($,c[f+(aa+-3<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0)|0;c[ca>>2]=h;if(h)a[(c[h+4>>2]|0)+(((c[h>>2]|0)+-1|0)*20|0)+12>>0]=c[f+(aa<<4)+16>>2];break}case 157:{h=hr($,0,c[f+(aa+-1<<4)+16>>2]|0)|0;c[ca>>2]=h;if((h|0)!=0?(k=c[h+4>>2]|0,(k|0)!=0):0)a[k+12>>0]=c[f+(aa<<4)+16>>2];break}case 179:case 153:{c[ca>>2]=0;break}case 180:case 152:{c[ca>>2]=c[f+(aa+-1<<4)+16>>2];break}case 166:{c[ca>>2]=c[f+(aa<<4)+16>>2];c[ca+4>>2]=0;break}case 167:{c[ca>>2]=c[f+(aa+-2<<4)+16>>2];c[ca+4>>2]=c[f+(aa<<4)+16>>2];break}case 168:{c[ca+4>>2]=c[f+(aa+-2<<4)+16>>2];c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 169:{h=c[f+(aa+-5<<4)+16>>2]|0;if(h){_=$+532|0;c[h+4>>2]=c[_>>2];c[_>>2]=h;a[$+449>>0]=1}_=f+(aa+-2<<4)+16|0;kr($,c[_>>2]|0,f+(aa+-1<<4)+16|0);nr($,c[_>>2]|0,c[f+(aa<<4)+16>>2]|0);break}case 235:case 162:case 155:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}default:{}}while(0);h=a[20912+(g<<1)>>0]|0;o=h&255;n=a[20913+(g<<1)>>0]|0;m=n&255;p=(c[f>>2]|0)-m|0;c[f>>2]=p;l=b[22184+((b[21568+(e[f+(aa-m<<4)+12>>1]<<1)>>1]|0)+o<<1)>>1]|0;k=l&65535;do if((l&65535)<642)if(!(n<<24>>24)){gq(f,k,o,ca);break}else{c[f>>2]=p+1;aa=1-m+aa|0;b[f+(aa<<4)+12>>1]=l;a[f+(aa<<4)+14>>0]=h;aa=f+(aa<<4)+16|0;c[aa+0>>2]=c[ca+0>>2];c[aa+4>>2]=c[ca+4>>2];c[aa+8>>2]=c[ca+8>>2];break}else{h=c[da>>2]|0;if((p|0)>-1)do Ln(f);while((c[f>>2]|0)>-1);c[da>>2]=h}while(0);i=ea;return}function jq(e,f){e=e|0;f=f|0;var g=0,h=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,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,ca=0,da=0;aa=i;i=i+64|0;if((i|0)>=(j|0))ba();$=aa+8|0;W=aa;n=aa+24|0;h=aa+16|0;l=tq(e,0,h)|0;do if(!l){if(c[h>>2]|0){l=$r(e,f)|0;if(!l)g=0;else k=4}else{l=1;k=4}if((k|0)==4){_=e+43|0;k=(a[_>>0]|0)==0;do if(!(a[e+46>>0]&2)){if(k?(m=e+4|0,Z=c[m>>2]|0,Yb[c[(c[Z>>2]|0)+40>>2]&63](Z,24,0)|0,m=c[m>>2]|0,m=lc[c[(c[m>>2]|0)+56>>2]&31](m,0,1,10)|0,(m|0)!=0):0){h=l;g=m;break}Z=e+44|0;a[Z>>0]=1;k=tq(e,0,h)|0;if(!k){h=$r(e,f)|0;if(!h){h=0;g=0}else{Y=d[e+45>>0]|0;X=Y+1|0;Y=7-Y|0;if(!((a[_>>0]|0)==0?(g=c[e+4>>2]|0,g=lc[c[(c[g>>2]|0)+56>>2]&31](g,X,Y,10)|0,(g|0)!=0):0)){l=e+52|0;k=l+48|0;do{c[l>>2]=0;l=l+4|0}while((l|0)<(k|0));Q=e+8|0;g=c[Q>>2]|0;g=nc[c[(c[g>>2]|0)+24>>2]&127](g,W)|0;a:do if(!g){R=W;P=c[R+4>>2]|0;b:do if((P|0)>0|(P|0)==0&(c[R>>2]|0)>>>0>32){g=c[Q>>2]|0;g=pc[c[(c[g>>2]|0)+8>>2]&31](g,n,32,0,0)|0;if(g)break a;m=d[n+3>>0]|0;k=d[n+9>>0]<<16|d[n+8>>0]<<24;g=d[n+10>>0]<<8;l=k|g|d[n+11>>0];if(((d[n+1>>0]<<16|d[n>>0]<<24|d[n+2>>0]<<8|m&254|0)==931071618?!((l+-1&l|0)!=0|(l|0)>65536|(l|0)<512):0)?(R=m&1,S=e+65|0,a[S>>0]=R,T=e+36|0,c[T>>2]=l,c[e+104>>2]=d[n+13>>0]<<16|d[n+12>>0]<<24|d[n+14>>0]<<8|d[n+15>>0],U=e+84|0,P=n+16|0,N=P,N=d[N>>0]|d[N+1>>0]<<8|d[N+2>>0]<<16|d[N+3>>0]<<24,P=P+4|0,P=d[P>>0]|d[P+1>>0]<<8|d[P+2>>0]<<16|d[P+3>>0]<<24,V=U,O=V,a[O>>0]=N,a[O+1>>0]=N>>8,a[O+2>>0]=N>>16,a[O+3>>0]=N>>24,V=V+4|0,a[V>>0]=P,a[V+1>>0]=P>>8,a[V+2>>0]=P>>16,a[V+3>>0]=P>>24,V=e+76|0,uq(R^1,n,24,0,V),(c[V>>2]|0)==(d[n+25>>0]<<16|d[n+24>>0]<<24|d[n+26>>0]<<8|d[n+27>>0]|0)):0){P=e+80|0;if((c[P>>2]|0)!=(d[n+29>>0]<<16|d[n+28>>0]<<24|d[n+30>>0]<<8|d[n+31>>0]|0)){l=0;g=0;break}if((d[n+5>>0]<<16|d[n+4>>0]<<24|d[n+6>>0]<<8|d[n+7>>0]|0)!=3007e3){c[$>>2]=49983;c[$+4>>2]=10788;Zc(14,14848,$);g=14;break a}t=l+24|0;R=Pc(t)|0;if(!R){g=7;break a}u=R+24|0;v=((t|0)<0)<<31>>31;n=fw(t|0,v|0,32,0)|0;m=C;O=W;N=c[O+4>>2]|0;c:do if(!((m|0)>(N|0)|((m|0)==(N|0)?n>>>0>(c[O>>2]|0)>>>0:0))){w=R+8|0;x=R+1|0;y=R+2|0;z=R+3|0;A=R+16|0;B=R+17|0;D=R+18|0;E=R+19|0;F=R+20|0;G=R+21|0;H=R+22|0;I=R+23|0;J=R+4|0;K=R+5|0;L=R+6|0;M=R+7|0;N=e+68|0;O=e+72|0;r=(k>>>16|g)&65535;s=e+66|0;o=32;k=0;l=0;p=0;q=1;while(1){g=c[Q>>2]|0;g=pc[c[(c[g>>2]|0)+8>>2]&31](g,R,t,o,k)|0;if(g){k=36;break}if(Vv(U,w,8)|0){g=p;k=37;break}k=d[x>>0]<<16|d[R>>0]<<24|d[y>>0]<<8|d[z>>0];if(!k){g=p;k=37;break}o=(a[S>>0]|0)==0&1;uq(o,R,8,V,V);uq(o,u,c[T>>2]|0,V,V);if((c[V>>2]|0)!=(d[B>>0]<<16|d[A>>0]<<24|d[D>>0]<<8|d[E>>0]|0)){g=p;k=37;break}if((c[P>>2]|0)!=(d[G>>0]<<16|d[F>>0]<<24|d[H>>0]<<8|d[I>>0]|0)){g=p;break c}o=d[K>>0]<<16|d[J>>0]<<24|d[L>>0]<<8|d[M>>0];g=Wo(e,q,k)|0;if(g){k=36;break}if(!o)g=p;else{c[N>>2]=q;c[O>>2]=o;b[s>>1]=r;l=c[V>>2]|0;g=c[P>>2]|0}k=fw(n|0,m|0,t|0,v|0)|0;o=C;p=W;ca=c[p+4>>2]|0;if((o|0)>(ca|0)|((o|0)==(ca|0)?k>>>0>(c[p>>2]|0)>>>0:0))break c;else{da=m;ca=n;n=k;m=o;p=g;q=q+1|0;k=da;o=ca}}if((k|0)==36){Sc(R);break a}else if((k|0)==37){Sc(R);break b}}else{l=0;g=0}while(0);Sc(R)}else{l=0;g=0}}else{l=0;g=0}while(0);c[e+76>>2]=l;c[e+80>>2]=g;Xo(e);k=c[c[e+32>>2]>>2]|0;c[k+96>>2]=0;c[k+100>>2]=0;g=k+104|0;c[g>>2]=-1;c[k+108>>2]=-1;c[k+112>>2]=-1;c[k+116>>2]=-1;k=e+68|0;l=c[k>>2]|0;if(l)c[g>>2]=l;if(!(c[e+72>>2]|0))g=0;else{g=c[e+100>>2]|0;c[$>>2]=c[k>>2];c[$+4>>2]=g;Zc(283,14888,$);g=0}}while(0);if(!(a[_>>0]|0)){W=c[e+4>>2]|0;lc[c[(c[W>>2]|0)+56>>2]&31](W,X,Y,9)|0}}c[f>>2]=1}}else{h=l;g=k}a[Z>>0]=0;if(!(a[_>>0]|0)){_=c[e+4>>2]|0;lc[c[(c[_>>2]|0)+56>>2]&31](_,0,1,9)|0}}else if(k){h=e+4|0;g=c[h>>2]|0;g=lc[c[(c[g>>2]|0)+56>>2]&31](g,0,1,6)|0;if(!g)if(!(a[_>>0]|0)){h=c[h>>2]|0;lc[c[(c[h>>2]|0)+56>>2]&31](h,0,1,5)|0;h=l;g=264}else{h=l;g=264}else h=l}else{h=l;g=264}while(0);if(h)break}if((c[e+52>>2]|0)!=3007e3){c[$>>2]=50909;c[$+4>>2]=10788;Zc(14,14848,$);g=14}}else g=l;while(0);i=aa;return g|0}function kq(a,d,f,g,h,i){a=a|0;d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;p=c[h>>2]|0;q=c[g>>2]|0;k=(p|0)>0;j=(f|0)>0;if(k|j){n=j;l=0;o=0;m=0;while(1){do if(n){j=d+(l<<1)|0;if(k?(r=q+(m<<1)|0,(c[a+((e[j>>1]|0)<<2)>>2]|0)>>>0>=(c[a+((e[r>>1]|0)<<2)>>2]|0)>>>0):0){k=r;s=7;break}l=l+1|0;k=j}else{k=q+(m<<1)|0;s=7}while(0);if((s|0)==7){s=0;m=m+1|0}n=b[k>>1]|0;k=c[a+((n&65535)<<2)>>2]|0;j=o+1|0;b[i+(o<<1)>>1]=n;if((l|0)<(f|0))l=((c[a+((e[d+(l<<1)>>1]|0)<<2)>>2]|0)==(k|0)&1)+l|0;k=(m|0)<(p|0);n=(l|0)<(f|0);if(!(k|n))break;else o=j}}else j=0;c[g>>2]=d;c[h>>2]=j;gw(d|0,i|0,j<<1|0)|0;return}function lq(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[a+4>>2]|0;c[e+4>>2]=c[a>>2];a=c[(c[e>>2]|0)+204>>2]|0;c[a+16>>2]=b;e=c[2217]|0;d=c[a+40>>2]|0;if((b|0)>-1)a=b;else{b=ow(b|0,((b|0)<0)<<31>>31|0,-1024,-1)|0;a=(c[a+24>>2]|0)+(c[a+20>>2]|0)|0;a=mw(b|0,C|0,a|0,((a|0)<0)<<31>>31|0)|0}fc[e&15](d,a);return}function mq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;g=(c[b+12>>2]|0)+136|0;e=g;f=c[e>>2]|0;e=c[e+4>>2]|0;do if((f|0)==0&(e|0)==0)if(!(Zg(c[c[(c[b>>2]|0)+32>>2]>>2]|0,g)|0)){e=g;f=c[e>>2]|0;e=c[e+4>>2]|0;h=5;break}else{e=g;c[e>>2]=0;c[e+4>>2]=0;e=d;c[e>>2]=0;c[e+4>>2]=0;e=1;break}else h=5;while(0);if((h|0)==5){g=d;c[g>>2]=f;c[g+4>>2]=e;if((e|0)>0|(e|0)==0&f>>>0>0){a[d+42>>0]=1;e=0}else e=1}return e|0}function nq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+16|0;if((i|0)>=(j|0))baba();s=u;q=u+56|0;r=u+52|0;f=u+48|0;o=u+44|0;p=u+40|0;c[s>>2]=2;c[s+4>>2]=0;c[s+8>>2]=24;c[s+12>>2]=58;c[s+16>>2]=f;c[s+20>>2]=2;c[s+24>>2]=0;c[s+28>>2]=59;c[s+32>>2]=0;c[s+36>>2]=o;do if((nq(b,s)|0)==2){m=b+5|0;if((a[m>>0]|0)==58){c[s>>2]=2;c[s+4>>2]=0;c[s+8>>2]=59;c[s+12>>2]=0;c[s+16>>2]=p;if((nq(b+6|0,s)|0)!=1){f=1;break}m=b+8|0;if((a[m>>0]|0)==46?(g=b+9|0,k=a[g>>0]|0,((k&255)+-48|0)>>>0<10):0){n=0.0;l=1.0;do{n=n*10.0+ +(k<<24>>24)+-48.0;l=l*10.0;g=g+1|0;k=a[g>>0]|0}while(((k&255)+-48|0)>>>0<10);l=n/l}else{g=m;l=0.0}}else{c[p>>2]=0;g=m;l=0.0}a[e+42>>0]=0;a[e+41>>0]=1;c[e+20>>2]=c[f>>2];c[e+24>>2]=c[o>>2];h[e+32>>3]=l+ +(c[p>>2]|0);while(1){f=g+1|0;if(!(a[10368+(d[g>>0]|0)>>0]&1)){m=g;break}else g=f}b=e+28|0;c[b>>2]=0;g=a[m>>0]|0;if(g<<24>>24==43){k=1;t=14}else if(g<<24>>24!=45)if((g&-33)<<24>>24==90){k=0;t=16}else f=0;else{k=-1;t=14}if((t|0)==14){c[s>>2]=2;c[s+4>>2]=0;c[s+8>>2]=14;c[s+12>>2]=58;c[s+16>>2]=q;c[s+20>>2]=2;c[s+24>>2]=0;c[s+28>>2]=59;c[s+32>>2]=0;c[s+36>>2]=r;if((nq(f,s)|0)!=2){f=1;break}k=_(((c[q>>2]|0)*60|0)+(c[r>>2]|0)|0,k)|0;c[b>>2]=k;f=m+6|0;t=16}if((t|0)==16)while(1){g=a[f>>0]|0;if(!(a[10368+(g&255)>>0]&1)){f=k;break}else f=f+1|0}if(!(g<<24>>24)){a[e+43>>0]=(f|0)!=0&1;f=0}else f=1}else f=1;while(0);i=u;return f|0}function pq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,k=0,l=0,m=0,n=0,o=0.0,p=0;n=i;i=i+112|0;if((i|0)>=(j|0))ba();k=n+48|0;m=n;l=n+96|0;f=k+0|0;b=b+0|0;g=f+48|0;do{c[f>>2]=c[b>>2];f=f+4|0;b=b+4|0}while((f|0)<(g|0));ko(k);lo(k);g=k+8|0;if(((c[g>>2]|0)+-1971|0)>>>0>66){c[g>>2]=2e3;c[k+12>>2]=1;c[k+16>>2]=1;c[k+20>>2]=0;c[k+24>>2]=0;h[k+32>>3]=0.0}else{f=k+32|0;h[f>>3]=+(~~(+h[f>>3]+.5)|0)}c[k+28>>2]=0;a[k+42>>0]=0;jo(k);b=k;f=c[b>>2]|0;b=c[b+4>>2]|0;g=mw(f|0,b|0,1e3,0)|0;g=fw(g|0,C|0,-413362496,0)|0;c[l>>2]=g;g=Rb(l|0)|0;g=(c[2253]|0)!=0?0:g;if(!g){c[d+20>>2]=1;a[d+25>>0]=1;Tg(c[d>>2]|0,20056,-1,1,-1)|0;c[e>>2]=1;f=0;g=0}else{k=c[g+4>>2]|0;l=c[g+8>>2]|0;d=c[g+12>>2]|0;p=(c[g+16>>2]|0)+1|0;o=+(c[g>>2]|0);c[m+8>>2]=(c[g+20>>2]|0)+1900;c[m+12>>2]=p;c[m+16>>2]=d;c[m+20>>2]=l;c[m+24>>2]=k;h[m+32>>3]=o;a[m+40>>0]=1;a[m+41>>0]=1;a[m+42>>0]=0;a[m+43>>0]=0;jo(m);c[e>>2]=0;g=m;g=$v(c[g>>2]|0,c[g+4>>2]|0,f|0,b|0)|0;f=C}C=f;i=n;return g|0}function qq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+32|0;if((i|0)>=(j|0))ba();o=p+12|0;l=p;n=p+8|0;k=p+16|0;a[d>>0]=0;f=nc[c[(c[b>>2]|0)+24>>2]&127](b,l)|0;h=l;g=c[h>>2]|0;h=c[h+4>>2]|0;if(!((f|0)!=0|((h|0)<0|(h|0)==0&g>>>0<16))){f=fw(g|0,h|0,-16,-1)|0;f=as(b,f,C,o)|0;if(!f){m=c[o>>2]|0;if(!(m>>>0>=e>>>0|(m|0)==0)){f=l;f=fw(c[f>>2]|0,c[f+4>>2]|0,-12,-1)|0;f=as(b,f,C,n)|0;if(!f){f=l;f=fw(c[f>>2]|0,c[f+4>>2]|0,-8,-1)|0;f=pc[c[(c[b>>2]|0)+8>>2]&31](b,k,8,f,C)|0;if(!f)if(!(Vv(k,14808,8)|0)){f=l;f=fw(c[f>>2]|0,c[f+4>>2]|0,-16,-1)|0;f=$v(f|0,C|0,m|0,0)|0;f=pc[c[(c[b>>2]|0)+8>>2]&31](b,d,m,f,C)|0;if(!f){g=c[n>>2]|0;h=0;while(1){e=a[d+h>>0]|0;f=g-e|0;h=h+1|0;if(h>>>0>=m>>>0)break;else g=f}c[n>>2]=f;if((g|0)==(e|0))f=m;else{c[o>>2]=0;f=0}a[d+f>>0]=0;f=0}}else f=0}}else f=0}}i=p;return f|0}function rq(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))ba();l=s+8|0;q=s+4|0;o=s;r=a+72|0;h=r;k=c[h>>2]|0;h=c[h+4>>2]|0;if((k|0)==0&(h|0)==0){m=0;n=0;k=c[a+148>>2]|0}else{m=fw(k|0,h|0,-1,-1)|0;k=c[a+148>>2]|0;m=mw(m|0,C|0,k|0,0)|0;m=fw(m|0,C|0,1,0)|0;m=ow(m|0,C|0,k|0,0)|0;n=C}p=r;c[p>>2]=m;c[p+4>>2]=n;p=a+148|0;k=fw(k|0,0,m|0,n|0)|0;h=C;do if(!((h|0)>(e|0)|(h|0)==(e|0)&k>>>0>d>>>0)){if((b|0)==0?(b=a+80|0,(m|0)==(c[b>>2]|0)?(n|0)==(c[b+4>>2]|0):0):0)d=a+64|0;else{k=a+64|0;e=c[k>>2]|0;e=pc[c[(c[e>>2]|0)+8>>2]&31](e,l,8,m,n)|0;if(e)break;if(!(Vv(l,14808,8)|0))d=k;else{e=101;break}}l=c[d>>2]|0;e=fw(m|0,n|0,8,0)|0;e=as(l,e,C,f)|0;if(!e){f=c[d>>2]|0;e=fw(m|0,n|0,12,0)|0;e=as(f,e,C,a+48|0)|0;if(!e){f=c[d>>2]|0;e=fw(m|0,n|0,16,0)|0;e=as(f,e,C,g)|0;if(!e){h=r;k=c[h>>2]|0;h=c[h+4>>2]|0;if((k|0)==0&(h|0)==0){g=c[d>>2]|0;e=fw(m|0,n|0,20,0)|0;e=as(g,e,C,o)|0;if(e)break;g=c[d>>2]|0;e=fw(m|0,n|0,24,0)|0;e=as(g,e,C,q)|0;if(e)break;d=c[q>>2]|0;if(!d){h=c[a+152>>2]|0;c[q>>2]=h}else h=d;d=c[o>>2]|0;if(h>>>0<512|d>>>0<32|h>>>0>65536|d>>>0>65536){e=101;break}if(h+-1&h){e=101;break}if(d+-1&d){e=101;break}e=Yk(a,q,-1)|0;c[p>>2]=d;h=r;k=c[h>>2]|0;h=c[h+4>>2]|0}else{d=c[p>>2]|0;e=0}m=fw(k|0,h|0,d|0,0)|0;n=r;c[n>>2]=m;c[n+4>>2]=C}}}}else e=101;while(0);i=s;return e|0}function sq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=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;A=i;i=i+16|0;if((i|0)>=(j|0))ba();v=A+8|0;o=A+4|0;r=A;y=c[f+200>>2]|0;z=(k|0)!=0;n=c[(z?f+64|0:f+68|0)>>2]|0;q=g;q=as(n,c[q>>2]|0,c[q+4>>2]|0,o)|0;do if(!q){x=f+152|0;u=c[x>>2]|0;q=g;q=fw(c[q>>2]|0,c[q+4>>2]|0,4,0)|0;q=pc[c[(c[n>>2]|0)+8>>2]&31](n,y,u,q,C)|0;if(!q){B=c[x>>2]|0;p=(k<<2)+4+B|0;q=g;q=fw(p|0,((p|0)<0)<<31>>31|0,c[q>>2]|0,c[q+4>>2]|0)|0;p=C;u=g;c[u>>2]=q;c[u+4>>2]=p;u=c[o>>2]|0;if((u|0)!=0?(u|0)!=(((c[2514]|0)/(B|0)|0)+1|0):0)if(u>>>0<=(c[f+24>>2]|0)>>>0?($h(h,u)|0)==0:0){if(z){q=fw(q|0,p|0,-4,-1)|0;q=as(n,q,C,r)|0;if(q){m=q;break}if(!l){q=c[f+48>>2]|0;p=(c[x>>2]|0)+-200|0;if((p|0)>0)do{q=(d[y+p>>0]|0)+q|0;p=p+-200|0}while((p|0)>0);if((q|0)!=(c[r>>2]|0)){m=101;break}}}if((h|0)!=0?(m=Zh(h,u)|0,(m|0)!=0):0)break;r=(u|0)==1;if(r?(s=f+142|0,t=a[y+20>>0]|0,(b[s>>1]|0)!=(t&255|0)):0)b[s>>1]=t&255;if(!(c[f+208>>2]|0)){t=f+204|0;q=Yb[c[8744+132>>2]&63](c[(c[t>>2]|0)+40>>2]|0,u,0)|0;q=el(c[t>>2]|0,u,q)|0}else q=0;c[v>>2]=q;if(z)if(!(a[f+7>>0]|0)){t=g;h=c[t+4>>2]|0;p=f+80|0;s=c[p+4>>2]|0;p=(h|0)<(s|0)|((h|0)==(s|0)?(c[t>>2]|0)>>>0<=(c[p>>2]|0)>>>0:0)}else p=1;else if(!q)p=1;else p=(b[q+24>>1]&4)==0;o=c[f+60>>2]|0;n=c[o>>2]|0;do if(n){m=a[f+16>>0]|0;if((m&255)>3){if(!p){w=33;break}}else if(!(m<<24>>24==0&p)){w=33;break}p=c[x>>2]|0;m=ow(p|0,((p|0)<0)<<31>>31|0,u+-1|0,0)|0;m=pc[c[n+12>>2]&31](o,y,p,m,C)|0;p=f+32|0;if(u>>>0>(c[p>>2]|0)>>>0)c[p>>2]=u;p=c[f+88>>2]|0;if(p)Yo(p,u,y)}else w=33;while(0);if((w|0)==33)if((k|0)==0&(q|0)==0){t=f+20|0;a[t>>0]=d[t>>0]|2;m=vg(f,u,v,1)|0;a[t>>0]=d[t>>0]&253;if(m)break;q=c[v>>2]|0;m=q+24|0;b[m>>1]=e[m>>1]&65527;Po(q);m=0}else m=0;if(q){o=c[q+4>>2]|0;gw(o|0,y|0,c[x>>2]|0)|0;_b[c[f+196>>2]&31](q);do if(z){if((l|0)!=0?(t=g,h=c[t+4>>2]|0,u=f+80|0,s=c[u+4>>2]|0,(h|0)>(s|0)|((h|0)==(s|0)?(c[t>>2]|0)>>>0>(c[u>>2]|0)>>>0:0)):0)break;tl(q)}while(0);if(r){p=f+104|0;n=o+24|0;o=p+16|0;do{a[p>>0]=a[n>>0]|0;p=p+1|0;n=n+1|0}while((p|0)<(o|0))}kl(q)}}else m=0;else m=101}else m=q}else m=q;while(0);i=A;return m|0}function tq(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=b+24|0;if((c[g>>2]|0)<=(e|0)){i=e+1|0;j=b+32|0;h=Tc(c[j>>2]|0,i<<2)|0;if(!h){g=7;h=0}else{k=c[g>>2]|0;bw(h+(k<<2)|0,0,i-k<<2|0)|0;c[j>>2]=h;c[g>>2]=i;k=5}}else{h=c[b+32>>2]|0;k=5}if((k|0)==5){j=b+32|0;h=h+(e<<2)|0;do if(!(c[h>>2]|0)){if((a[b+43>>0]|0)!=2){g=c[b+4>>2]|0;g=pc[c[(c[g>>2]|0)+52>>2]&31](g,e,32768,d[b+44>>0]|0,h)|0;if((g|0)!=8)break;g=b+46|0;a[g>>0]=d[g>>0]|2;g=0;break}g=mg(32768,0)|0;if(g)bw(g|0,0,32768)|0;c[(c[j>>2]|0)+(e<<2)>>2]=g;g=(c[(c[j>>2]|0)+(e<<2)>>2]|0)==0?7:0}else g=0;while(0);h=c[(c[j>>2]|0)+(e<<2)>>2]|0}c[f>>2]=h;return g|0}function uq(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=b+d|0;if(!e){g=0;d=0}else{g=c[e>>2]|0;d=c[e+4>>2]|0}if(!a)do{g=g+d+(jw(c[b>>2]|0)|0)|0;d=g+d+(jw(c[b+4>>2]|0)|0)|0;b=b+8|0}while(b>>>0<h>>>0);else do{g=g+d+(c[b>>2]|0)|0;d=g+d+(c[b+4>>2]|0)|0;b=b+8|0}while(b>>>0<h>>>0);c[f>>2]=g;c[f+4>>2]=d;return}function vq(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;h=a+8|0;g=c[h>>2]|0;h=c[h+4>>2]|0;if((h|0)>(f|0)|(h|0)==(f|0)&g>>>0>e>>>0?(i=fw(d|0,((d|0)<0)<<31>>31|0,e|0,f|0)|0,k=C,!((k|0)<(h|0)|(k|0)==(h|0)&i>>>0<g>>>0)):0){i=$v(g|0,h|0,e|0,f|0)|0;h=a+4|0;g=c[h>>2]|0;g=pc[c[(c[g>>2]|0)+12>>2]&31](g,b,i,e,f)|0;if(!g){e=fw(i|0,((i|0)<0)<<31>>31|0,e|0,f|0)|0;f=C;g=c[h>>2]|0;g=nc[c[(c[g>>2]|0)+20>>2]&127](g,c[a+16>>2]&19)|0;if(!((i|0)==(d|0)|(g|0)!=0)){d=d-i|0;h=b+i|0;g=f;j=5}}}else{h=b;g=f;j=5}if((j|0)==5){f=c[a+4>>2]|0;g=pc[c[(c[f>>2]|0)+12>>2]&31](f,h,d,e,g)|0}return g|0}function wq(a){a=a|0;var d=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();h=l+8|0;k=l+4|0;g=l;c[h>>2]=0;c[k>>2]=0;c[g>>2]=0;f=a+68|0;d=c[f>>2]|0;if(d){Lo(a,(d+33|0)>>>12,h,k,g)|0;g=(c[f>>2]|0)-(c[g>>2]|0)|0;a=c[h>>2]|0;f=0;do{d=a+(f<<1)|0;if((e[d>>1]|0|0)>(g|0))b[d>>1]=0;f=f+1|0}while((f|0)!=8192);d=(c[k>>2]|0)+(g+1<<2)|0;bw(d|0,0,a-d|0)|0}i=l;return}function xq(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();e=g;h=a+204|0;f=Yb[c[8744+132>>2]&63](c[(c[h>>2]|0)+40>>2]|0,d,0)|0;f=el(c[h>>2]|0,d,f)|0;do if(!f)e=0;else{if((b[f+26>>1]|0)==1){il(f);e=0;break}c[e>>2]=0;d=gl(c[a+208>>2]|0,c[f+20>>2]|0,e)|0;if(!d){d=hl(f,c[e>>2]|0)|0;if(!d){_b[c[a+196>>2]&31](f);d=0}}xg(f);e=d}while(0);d=c[a+88>>2]|0;if(d)do{c[d+16>>2]=1;d=c[d+44>>2]|0}while((d|0)!=0);i=g;return e|0}function yq(f,g,h){f=f|0;g=g|0;h=h|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;D=i;i=i+16|0;if((i|0)>=(j|0))ba();C=D;z=c[f+52>>2]|0;q=(c[z+36>>2]|0)+-4|0;v=g&65535;A=h&65535;u=A+v|0;B=c[f+56>>2]|0;if(b[z+22>>1]&4)bw(B+v|0,0,A|0)|0;y=d[f+6>>0]|0;z=y+1|0;n=z&65535;x=z&65535;if((a[B+(x+1)>>0]|0)==0?(a[B+x>>0]|0)==0:0){s=h&255;q=(h&65535)>>>8&255;r=u;p=0;o=0;x=23}else{s=n;x=6}a:do if((x|0)==6){while(1){x=0;m=s&65535;o=a[B+(m+1)>>0]|0;l=o&255;r=d[B+m>>0]<<8|l;n=s;s=r&65535;if(!(r>>>0<v>>>0&(r|0)!=0)){p=o;t=r;break}if(r>>>0<(m+4|0)>>>0){x=8;break}else x=6}if((x|0)==8){c[C>>2]=54420;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break}if(t>>>0>q>>>0){c[C>>2]=54423;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break}k=h&255;q=(h&65535)>>>8&255;o=(s&65535)>>>8&255;do if((t+-1|0)>>>0<(u+3|0)>>>0)if(u>>>0>t>>>0){c[C>>2]=54434;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break a}else{r=(d[B+(t+2)>>0]<<8|d[B+(t+3)>>0])+t|0;q=r-v|0;s=q&255;q=(q&65535)>>>8&255;p=a[B+(t+1)>>0]|0;o=a[B+t>>0]|0;k=l-u&255;break}else{s=k;r=u;k=0}while(0);do if(m>>>0>z>>>0?(w=(d[B+(m+2)>>0]<<8|d[B+(m+3)>>0])+m|0,(w+3|0)>=(v|0)):0)if((v|0)<(w|0)){c[C>>2]=54447;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break a}else{q=r-m|0;g=n;s=q&255;q=(q&65535)>>>8&255;k=(k&255)+v-w&255;break}while(0);m=B+(y+7)|0;l=a[m>>0]|0;if((l&255)<(k&255)){c[C>>2]=54453;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break}else{a[m>>0]=(l&255)-(k&255);x=23;break}}while(0);b:do if((x|0)==23){k=g&65535;l=B+(y+5)|0;m=B+(y+6)|0;do if((k|0)==(d[l>>0]<<8|d[m>>0]|0))if((n&65535|0)==(z|0)){a[B+z>>0]=o;a[B+(y+2)>>0]=p;a[l>>0]=r>>>8;a[m>>0]=r;break}else{c[C>>2]=54460;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break b}else{C=n&65535;a[B+C>>0]=(g&65535)>>>8;a[B+(C+1)>>0]=g;a[B+k>>0]=o;a[B+(k+1)>>0]=p;a[B+(k+2)>>0]=q;a[B+(k+3)>>0]=s}while(0);k=f+16|0;b[k>>1]=(e[k>>1]|0)+A;k=0}while(0);i=D;return k|0}function zq(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))ba();r=u;q=d[b+6>>0]|0;t=c[b+56>>2]|0;p=c[(c[b+52>>2]|0)+36>>2]|0;l=p+-4|0;b=q+1|0;while(1){m=t+b|0;n=(d[m>>0]|0)<<8|(d[t+(b+1)>>0]|0);if(!n){b=0;break}if((n|0)>(l|0)|(n|0)<(b+4|0)){s=4;break}h=t+(n+2)|0;k=t+(n+3)|0;b=(d[h>>0]|0)<<8|(d[k>>0]|0);if((b|0)<(e|0))b=n;else{o=h;l=n;s=6;break}}a:do if((s|0)==4){c[r>>2]=54252;c[r+4>>2]=10788;Zc(11,13600,r);c[f>>2]=11;b=0}else if((s|0)==6){h=b-e|0;do if((h|0)>=4)if((b+l|0)>(p|0)){c[r>>2]=54275;c[r+4>>2]=10788;Zc(11,13600,r);c[f>>2]=11;b=0;break a}else{a[o>>0]=h>>>8;a[k>>0]=h;break}else{b=t+(q+7)|0;if((d[b>>0]|0)<=59){q=t+l|0;q=d[q>>0]|d[q+1>>0]<<8;a[m>>0]=q;a[m+1>>0]=q>>8;a[b>>0]=(d[b>>0]|0)+h;break}if(!g){b=0;break a}c[g>>2]=1;b=0;break a}while(0);b=t+(h+l)|0}while(0);i=u;return b|0}function Aq(f){f=f|0;var g=0,h=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;D=i;i=i+16|0;if((i|0)>=(j|0))ba();B=D;y=c[f+56>>2]|0;A=d[f+6>>0]|0;u=e[f+14>>1]|0;v=b[f+18>>1]|0;q=v&65535;r=f+52|0;s=c[(c[r>>2]|0)+36>>2]|0;z=(q<<1)+u|0;t=s+-4|0;w=y+(A+5)|0;x=y+(A+6)|0;a:do if(v<<16>>16){p=s;v=0;h=y;k=0;while(1){m=(v<<1)+u|0;l=y+m|0;m=y+(m+1)|0;n=(d[l>>0]|0)<<8|(d[m>>0]|0);if((n|0)<(z|0)|(n|0)>(t|0)){C=3;break}o=(Hp(f,h+n|0)|0)&65535;g=p-o|0;if((g|0)<(z|0)|(o+n|0)>(s|0)){C=5;break}a[l>>0]=g>>>8;a[m>>0]=g;if(!k)if((g|0)==(n|0))k=0;else{k=c[(c[c[r>>2]>>2]|0)+200>>2]|0;h=(d[w>>0]|0)<<8|(d[x>>0]|0);gw(k+h|0,y+h|0,p-h|0)|0;h=k;C=9}else C=9;if((C|0)==9){C=0;gw(y+g|0,h+n|0,o|0)|0}v=v+1|0;if((v|0)>=(q|0)){C=11;break a}else p=g}if((C|0)==3){c[B>>2]=54184;c[B+4>>2]=10788;Zc(11,13600,B);g=11;break}else if((C|0)==5){c[B>>2]=54196;c[B+4>>2]=10788;Zc(11,13600,B);g=11;break}}else{g=s;C=11}while(0);if((C|0)==11){a[w>>0]=g>>>8;a[x>>0]=g;a[y+(A+1)>>0]=0;a[y+(A+2)>>0]=0;a[y+(A+7)>>0]=0;C=g-z|0;bw(y+z|0,0,C|0)|0;if((C|0)==(e[f+16>>1]|0|0))g=0;else{c[B>>2]=54221;c[B+4>>2]=10788;Zc(11,13600,B);g=11}}i=D;return g|0}function Bq(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+32|0;if((i|0)>=(j|0))ba();h=k;if((c[f>>2]|0)==0?(np(a,e,h),g=b[h+18>>1]|0,g<<16>>16!=0):0){g=g&65535;vp(c[a+52>>2]|0,(d[e+(g+1)>>0]|0)<<16|(d[e+g>>0]|0)<<24|(d[e+(g+2)>>0]|0)<<8|(d[e+(g+3)>>0]|0),3,c[a+72>>2]|0,f)}i=k;return}function Cq(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;do if(!(c[g>>2]|0)){h=c[b+52>>2]|0;j=c[b+56>>2]|0;l=c[f+56>>2]|0;i=d[b+6>>0]|0;k=(c[f+72>>2]|0)==1?100:0;m=d[j+(i+5)>>0]<<8|d[j+(i+6)>>0];gw(l+m|0,j+m|0,(c[h+36>>2]|0)-m|0)|0;gw(l+k|0,j+i|0,(e[b+18>>1]<<1)+(e[b+14>>1]|0)|0)|0;a[f>>0]=0;b=Xp(f)|0;if(b){c[g>>2]=b;break}if(a[h+17>>0]|0)c[g>>2]=Wp(f)|0}while(0);return}function Dq(f,g,h,i){f=f|0;g=g|0;h=h|0;i=i|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;q=d[f+6>>0]|0;t=c[f+56>>2]|0;m=c[f+52>>2]|0;o=c[m+36>>2]|0;n=t+o|0;j=c[f+64>>2]|0;m=c[(c[m>>2]|0)+200>>2]|0;p=t+(q+5)|0;r=t+(q+6)|0;s=(d[p>>0]|0)<<8|(d[r>>0]|0);gw(m+s|0,t+s|0,o-s|0)|0;s=t;if((g|0)>0){o=0;l=j;j=n;while(1){k=c[h+(o<<2)>>2]|0;if(k>>>0>t>>>0&k>>>0<n>>>0)k=m+(k-s)|0;u=e[i+(o<<1)>>1]|0;j=j+(0-u)|0;gw(j|0,k|0,u|0)|0;k=j-s|0;a[l>>0]=k>>>8;a[l+1>>0]=k;o=o+1|0;if((o|0)==(g|0))break;else l=l+2|0}}else j=n;i=f+18|0;b[i>>1]=g;a[f+1>>0]=0;a[t+(q+1)>>0]=0;a[t+(q+2)>>0]=0;a[t+(q+3)>>0]=(e[i>>1]|0)>>>8;a[t+(q+4)>>0]=b[i>>1];i=j-s|0;a[p>>0]=i>>>8;a[r>>0]=i;a[t+(q+7)>>0]=0;return}function Eq(a,b,f,g){a=a|0;b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=c[a+56>>2]|0;p=r+(c[(c[a+52>>2]|0)+36>>2]|0)|0;n=r+((d[a+6>>0]|0)+8+(d[a+7>>0]|0))|0;a:do if((b|0)>0){o=r;q=0;h=0;l=0;m=0;while(1){j=c[f+(q<<2)>>2]|0;if(j>>>0>=n>>>0&j>>>0<p>>>0){i=e[g+(q<<1)>>1]|0;k=j+i|0;if((l|0)!=(k|0)){if(l)yq(a,l-o&65535,m&65535)|0;if(k>>>0>p>>>0){h=0;break a}}else i=i+m|0;h=h+1|0}else{j=l;i=m}q=q+1|0;if((q|0)>=(b|0))break;else{l=j;m=i}}if(j)yq(a,j-r&65535,i&65535)|0}else h=0;while(0);return h|0}function Fq(b,d,f,g,h,k,l){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();t=v;n=c[b+56>>2]|0;m=c[f>>2]|0;if(!(a[n+1>>0]|0))s=(a[n+2>>0]|0)!=0;else s=1;a:do if((h|0)>0){q=0;while(1){p=e[l+(q<<1)>>1]|0;if(s?(r=zq(b,p,t,0)|0,(r|0)!=0):0)o=r;else{o=m+(0-p)|0;if(o>>>0<d>>>0){m=1;break a}else m=o}gw(o|0,c[k+(q<<2)>>2]|0,p|0)|0;p=o-n|0;a[g>>0]=p>>>8;a[g+1>>0]=p;q=q+1|0;if((q|0)>=(h|0)){u=9;break}else g=g+2|0}}else u=9;while(0);if((u|0)==9){c[f>>2]=m;m=0}i=v;return m|0}function Gq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;o=i;i=i+16|0;if((i|0)>=(j|0))baba();w=z+44|0;y=z;x=z+40|0;u=a+8|0;t=c[u>>2]|0;u=c[u+4>>2]|0;v=a+4|0;p=c[v>>2]|0;Lp(c[a+48>>2]|0,y,c[(c[(c[a>>2]|0)+8>>2]|0)+12>>2]|0,t,u);o=p+8|0;p=p+12|0;q=y+24|0;r=y+16|0;s=a+16|0;while(1){f=c[(c[o>>2]|0)+4>>2]|0;g=c[p>>2]|0;h=c[g+(f*56|0)+20>>2]|0;if(!(c[g+(f*56|0)+24>>2]|0)){d=1;b=0;break}l=q;k=c[l>>2]|0;l=c[l+4>>2]|0;m=c[r>>2]|0;n=((h|0)<0)<<31>>31;b=h;e=n;d=0;do{d=d+1|0;b=iw(b|0,e|0,7)|0;e=C}while(((b|0)!=0|(e|0)!=0)&(d|0)<9);k=fw(k|0,l|0,h|0,n|0)|0;k=fw(k|0,C|0,m|0,((m|0)<0)<<31>>31|0)|0;d=fw(k|0,C|0,d|0,((d|0)<0)<<31>>31|0)|0;k=C;b=c[s>>2]|0;b=fw(b|0,((b|0)<0)<<31>>31|0,t|0,u|0)|0;e=C;if((k|0)>(e|0)|(k|0)==(e|0)&d>>>0>b>>>0){d=1;b=0;break}Mp(y,w,lm(w,h,n)|0);Mp(y,c[g+(f*56|0)+32>>2]|0,h);b=Sm(c[v>>2]|0,x)|0;if(b){d=0;break}}y=Np(y,a+56|0)|0;i=z;return (d?y:b)|0}function Iq(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();f=d;c[f>>2]=e;e=Sk(a,13592,f)|0;ig(a,b);i=d;return e|0}function Jq(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;h=a[d>>0]|0;if(h<<24>>24!=0&(e|0)>0){l=0;do{if((h+-48&255)<10){k=0;do{k=(k*10|0)+-48+(h<<24>>24)|0;d=d+1|0;h=a[d>>0]|0}while((h+-48&255)<10);h=0}else{k=0;h=0}b[f+(l<<1)>>1]=bs(k,h)|0;d=(a[d>>0]|0)==32?d+1|0:d;l=l+1|0;h=a[d>>0]|0}while(h<<24>>24!=0&(l|0)<(e|0))}l=g+51|0;a[l>>0]=a[l>>0]&-69;a:do if(a[d>>0]|0){f=g+44|0;b:while(1){do if(!(Ch(13448,d,10352,0)|0)){if(Ch(13464,d,10352,0)|0){c[m>>2]=0;zn(d+3|0,m)|0;h=c[m>>2]|0;b[f>>1]=bs(h,((h|0)<0)<<31>>31)|0;break}if(Ch(13480,d,10352,0)|0)a[l>>0]=a[l>>0]|64}else a[l>>0]=a[l>>0]|4;while(0);while(1){h=a[d>>0]|0;if(h<<24>>24==32|h<<24>>24==0)break;d=d+1|0}while(1){k=d+1|0;if(!(h<<24>>24))break a;else if(h<<24>>24!=32)continue b;h=a[k>>0]|0;d=k}}}while(0);i=n;return}function Kq(d){d=d|0;var e=0,f=0;f=d+8|0;e=c[f>>2]|0;if(!e){e=rh(d)|0;c[f>>2]=e;if(e)sh(e,155,0,0,0)|0;if((c[d+408>>2]|0)==0?(b[(c[d>>2]|0)+60>>1]&8)==0:0)a[d+23>>0]=1}return e|0}function Lq(b,d){b=b|0;d=d|0;var e=0;e=(c[b+32>>2]|0)+-1|0;if((e|0)>(c[(c[b+24>>2]|0)+88>>2]|0)?(a[(c[b+4>>2]|0)+(e*20|0)>>0]|0)==d<<24>>24:0){vh(b,e);e=1}else e=0;return e|0}function Mq(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;j=Kq(d)|0;i=g+32|0;cs(d,f,c[i>>2]|0,(h|0)==55&1,c[g>>2]|0);if(!(a[g+44>>0]&32)){g=b[g+38>>1]|0;th(j,sh(j,h,e,c[i>>2]|0,f)|0,g,-14)}else{i=c[g+8>>2]|0;a:do if(!i)i=0;else while(1){if((a[i+51>>0]&3)==2)break a;i=c[i+20>>2]|0;if(!i){i=0;break}}while(0);sh(j,h,e,c[i+40>>2]|0,f)|0;g=c[d+8>>2]|0;th(g,-1,ds(d,i)|0,-6)}return}function Nq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;if((d|0)!=0?(a[d>>0]|0)==-97:0)sh(c[b+8>>2]|0,33,c[d+28>>2]|0,e,0)|0;else h=4;if(((h|0)==4?(g=es(b,d,e)|0,(g|0)!=(e|0)):0)?(f=c[b+8>>2]|0,(f|0)!=0):0)sh(f,34,g,e,0)|0;return}function Oq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();l=m;h=c[b>>2]|0;do if(((a[h+145>>0]|0)==0?(a[b+451>>0]|0)==0:0)?(k=c[h+284>>2]|0,(k|0)!=0):0){h=gc[k&7](c[h+288>>2]|0,d,e,f,g,c[b+492>>2]|0)|0;if((h|0)==0|(h|0)==2)break;else if((h|0)==1){ph(b,25216,l);c[b+12>>2]=23;h=1;break}else{ph(b,25232,l);c[b+12>>2]=1;h=1;break}}else h=0;while(0);i=m;return h|0}function Pq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;d=Sq(c[a>>2]|0,d)|0;do if(d){e=Kq(a)|0;if((e|0)!=0?(Oq(a,32,c[37088+(b<<2)>>2]|0,d,0)|0)==0:0){th(e,sh(e,2,b,0,0)|0,d,-1);break}ig(c[a>>2]|0,d)}while(0);return}function Qq(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();r=v;p=v+4|0;u=c[e>>2]|0;f=ar(e,f,g,p)|0;a:do if((f|0)>=0){q=(h|0)!=0;if(q?(c[g+4>>2]|0)!=0&(f|0)!=1:0){ph(e,36976,r);break}t=q?1:f;g=c[p>>2]|0;q=g;f=c[q+4>>2]|0;p=e+496|0;c[p>>2]=c[q>>2];c[p+4>>2]=f;p=Sq(u,g)|0;if(p){b:do if((Hr(e,p)|0)==0?(o=(a[u+144>>0]|0)==1?1:h,s=u+16|0,n=c[(c[s>>2]|0)+(t<<4)>>2]|0,(Oq(e,18,(o|0)==1?13184:13208,0,n)|0)==0):0){h=(o|0)!=0;if(!k)f=h?4:2;else f=h?6:8;q=(l|0)!=0;if(!q?(Oq(e,f,p,0,n)|0)!=0:0)break;do if(!(a[e+451>>0]|0)){h=c[(c[s>>2]|0)+(t<<4)>>2]|0;if(Cn(e)|0)break b;if(!(Wh(u,p,h)|0)){if(!(Zp(u,p,h)|0))break;c[r>>2]=p;ph(e,37048,r);break b}if(!m){c[r>>2]=g;ph(e,37024,r);break b}else{wr(e,t);break b}}while(0);o=ih(u,76,0)|0;if(!o){a[u+65>>0]=1;c[e+12>>2]=7;s=e+64|0;c[s>>2]=(c[s>>2]|0)+1;break}n=o+0|0;h=n+76|0;do{a[n>>0]=0;n=n+1|0}while((n|0)<(h|0));c[o>>2]=p;b[o+36>>1]=-1;n=c[(c[s>>2]|0)+(t<<4)+12>>2]|0;c[o+68>>2]=n;b[o+40>>1]=1;b[o+28>>1]=200;c[e+484>>2]=o;if((a[e+18>>0]|0)==0?(Wv(p,26576)|0)==0:0)c[n+72>>2]=o;if(a[u+145>>0]|0)break a;g=Kq(e)|0;if(!g)break a;s=c[e+408>>2]|0;wr(e,t);n=1<<t;s=((s|0)==0?e:s)+328|0;c[s>>2]=c[s>>2]|n;if(q)sh(g,146,0,0,0)|0;o=e+72|0;f=c[o>>2]|0;p=f+1|0;c[e+384>>2]=p;q=f+2|0;c[e+388>>2]=q;f=f+3|0;c[o>>2]=f;sh(g,51,t,f,2)|0;o=g+96|0;c[o>>2]=c[o>>2]|n;o=sh(g,45,f,0,0)|0;sh(g,25,(c[u+24>>2]&32768|0)!=0?1:4,f,0)|0;sh(g,52,t,2,f)|0;sh(g,25,d[u+62>>0]|0,f,0)|0;sh(g,52,t,5,f)|0;h=g+32|0;n=c[h>>2]|0;if(n>>>0>o>>>0)c[(c[g+4>>2]|0)+(o*20|0)+8>>2]=n;c[(c[g+24>>2]|0)+88>>2]=n+-1;if(!(l|k))c[e+416>>2]=sh(g,121,t,q,0)|0;else sh(g,25,0,q,0)|0;fs(e,t);sh(g,74,0,p,0)|0;sh(g,28,0,f,0)|0;sh(g,75,0,f,p)|0;n=c[g+4>>2]|0;if(n)a[n+(((c[h>>2]|0)+-1|0)*20|0)+3>>0]=8;sh(g,61,0,0,0)|0;break a}while(0);ig(u,p)}}while(0);i=v;return}function Rq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=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,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0;O=i;i=i+176|0;if((i|0)>=(j|0))ba();J=O+80|0;G=O+168|0;D=O;E=O+136|0;F=O+112|0;K=c[f>>2]|0;a:do if((!((h|0)==0&(l|0)==0)?(L=K+65|0,(a[L>>0]|0)==0):0)?(M=f+484|0,N=c[M>>2]|0,(N|0)!=0):0){I=K+145|0;if(a[I>>0]|0)c[N+32>>2]=c[K+140>>2];b:do if(k&32){p=N+44|0;o=d[p>>0]|0;if(o&8){ph(f,36584,J);break a}if(!(o&4)){c[J>>2]=c[N>>2];ph(f,36640,J);break}a[p>>0]=o|32;q=c[f+8>>2]|0;p=c[f+416>>2]|0;if(p){if((p|0)<0)p=(c[q+32>>2]|0)+-1|0;if(!(a[(c[q>>2]|0)+65>>0]|0))p=(c[q+4>>2]|0)+(p*20|0)|0;else p=29120;a[p>>0]=120}p=c[f+420>>2]|0;if(p){if((p|0)<0)p=(c[q+32>>2]|0)+-1|0;if(!(a[(c[q>>2]|0)+65>>0]|0))o=(c[q+4>>2]|0)+(p*20|0)|0;else o=29120;a[o>>0]=16}o=N+36|0;if((b[o>>1]|0)>-1){p=hr(f,0,0)|0;if(!p)break;z=gh(c[f>>2]|0,c[(c[N+4>>2]|0)+((b[o>>1]|0)*24|0)>>2]|0)|0;A=c[p+4>>2]|0;c[A+4>>2]=z;a[A+12>>0]=a[f+448>>0]|0;p=Xq(f,0,0,0,p,d[N+45>>0]|0,0,0,0,0)|0;if(!p)break;u=p+51|0;a[u>>0]=a[u>>0]&-4|2;b[o>>1]=-1;u=b[p+46>>1]|0}else{p=c[N+8>>2]|0;c:do if(!p)p=0;else while(1){if((a[p+51>>0]&3)==2)break c;p=c[p+20>>2]|0;if(!p){p=0;break}}while(0);v=p+46|0;q=b[v>>1]|0;if((q&65535)>1){t=c[p+4>>2]|0;s=p+48|0;u=1;o=1;do{m=b[t+(u<<1)>>1]|0;r=o;n=t;while(1){if((r|0)<=0){C=36;break}if((b[n>>1]|0)==m<<16>>16){C=35;break}else{r=r+-1|0;n=n+2|0}}if((C|0)==35){C=0;b[s>>1]=(b[s>>1]|0)+-1<<16>>16}else if((C|0)==36){C=0;b[t+(o<<1)>>1]=m;q=b[v>>1]|0;o=o+1|0}u=u+1|0}while((u|0)<(q&65535|0))}else o=1;u=o&65535;b[v>>1]=u}r=p+51|0;q=a[r>>0]|32;a[r>>0]=q;A=u&65535;if(!(a[K+147>>0]|0)){if(u<<16>>16){q=c[p+4>>2]|0;o=c[N+4>>2]|0;n=0;do{a[o+((b[q+(n<<1)>>1]|0)*24|0)+20>>0]=1;n=n+1|0}while((n|0)<(A|0));q=a[r>>0]|0}a[r>>0]=q|8}c[p+40>>2]=c[N+32>>2];r=c[N+8>>2]|0;if(r){x=u<<16>>16==0;y=p+4|0;z=p+32|0;do{d:do if((a[r+51>>0]&3)!=2){do if(x)q=b[r+46>>1]|0;else{s=c[r+4>>2]|0;q=b[r+46>>1]|0;n=q&65535;m=c[y>>2]|0;w=0;o=0;do{t=b[m+(w<<1)>>1]|0;v=n;u=s;while(1){if((v|0)<=0){u=1;break}if((b[u>>1]|0)==t<<16>>16){u=0;break}else{v=v+-1|0;u=u+2|0}}o=u+o|0;w=w+1|0}while((w|0)<(A|0));n=r+46|0;if(!o)break;if(gs(K,r,(q&65535)+o|0)|0)break b;if(x)break d;t=b[n>>1]|0;w=r+4|0;m=r+32|0;v=t;u=0;t=t&65535;while(1){q=c[w>>2]|0;o=b[(c[y>>2]|0)+(u<<1)>>1]|0;v=v&65535;s=q;while(1){if((v|0)<=0){C=63;break}if((b[s>>1]|0)==o<<16>>16)break;else{v=v+-1|0;s=s+2|0}}if((C|0)==63){C=0;b[q+(t<<1)>>1]=o;c[(c[m>>2]|0)+(t<<2)>>2]=c[(c[z>>2]|0)+(u<<2)>>2];t=t+1|0}u=u+1|0;if((u|0)>=(A|0))break d;v=b[n>>1]|0}}while(0);b[r+48>>1]=q}while(0);r=c[r+20>>2]|0}while((r|0)!=0)}v=N+38|0;q=b[v>>1]|0;o=q<<16>>16;if((A|0)>=(o|0)){b[p+48>>1]=q;break}if((gs(K,p,o)|0)==0?(B=b[v>>1]|0,B<<16>>16>0):0){s=p+4|0;u=p+32|0;q=B;t=0;p=A;do{n=c[s>>2]|0;r=p;o=n;while(1){if((r|0)<=0){C=74;break}if((b[o>>1]|0)==(t|0))break;else{r=r+-1|0;o=o+2|0}}if((C|0)==74){C=0;b[n+(p<<1)>>1]=t;c[(c[u>>2]|0)+(p<<2)>>2]=11152;q=b[v>>1]|0;p=p+1|0}t=t+1|0}while((t|0)<(q<<16>>16|0))}}while(0);C=N+68|0;p=c[C>>2]|0;e:do if(p){o=c[K+20>>2]|0;if((o|0)>0){n=c[K+16>>2]|0;q=0;while(1){m=q+1|0;if((c[n+(q<<4)+12>>2]|0)==(p|0))break e;if((m|0)<(o|0))q=m;else{q=m;break}}}else q=0}else q=-1e6;while(0);n=c[N+24>>2]|0;f:do if(n){c[E+0>>2]=0;c[E+4>>2]=0;c[E+8>>2]=0;c[E+12>>2]=0;c[E+16>>2]=0;c[E+20>>2]=0;c[E+24>>2]=0;c[E+28>>2]=0;p=D+0|0;o=p+80|0;do{c[p>>2]=0;p=p+4|0}while((p|0)<(o|0));c[D>>2]=1;c[D+16>>2]=c[N>>2];c[D+24>>2]=N;c[D+48>>2]=-1;c[E>>2]=f;c[E+4>>2]=D;b[E+28>>1]=4;p=n+4|0;if((c[n>>2]|0)>0){o=0;do{if(hs(E,c[(c[p>>2]|0)+(o*20|0)>>2]|0)|0)break f;o=o+1|0}while((o|0)<(c[n>>2]|0))}}while(0);A=N+38|0;m=b[A>>1]|0;if(m<<16>>16>0){p=m<<16>>16;o=c[N+4>>2]|0;n=0;while(1){n=(d[o+22>>0]|0)+n|0;p=p+-1|0;if((p|0)<=0)break;else o=o+24|0}}else n=0;b[N+42>>1]=bs(((e[N+36>>1]|0)>>>15&65535)+n<<2,0)|0;n=c[N+8>>2]|0;if(n)do{is(n);n=c[n+20>>2]|0}while((n|0)!=0);if(!(a[I>>0]|0)){B=Kq(f)|0;if(!B)break;sh(B,61,0,0,0)|0;y=(c[N+12>>2]|0)==0;o=y?36672:36680;y=y?31232:35480;do if(!l){n=k<<24>>24==0?h:f+504|0;l=c[n>>2]|0;p=c[f+496>>2]|0;m=l-p|0;if((a[l>>0]|0)!=59)m=(c[n+4>>2]|0)+m|0;c[J>>2]=o;c[J+4>>2]=m;c[J+8>>2]=p;p=f+388|0;m=N;o=qh(K,36688,J)|0}else{p=f+388|0;sh(B,55,1,c[p>>2]|0,q)|0;o=c[B+4>>2]|0;if(o)a[o+(((c[B+32>>2]|0)+-1|0)*20|0)+3>>0]=4;c[f+68>>2]=2;a[F>>0]=14;c[F+4>>2]=1;a[F+1>>0]=0;c[F+8>>2]=0;c[F+12>>2]=0;er(f,l,F)|0;sh(B,61,1,0,0)|0;if(!(c[f+64>>2]|0)){m=js(f,l)|0;if(!m)break a;F=m+38|0;b[A>>1]=b[F>>1]|0;l=m+4|0;c[N+4>>2]=c[l>>2];b[F>>1]=0;c[l>>2]=0;gg(K,m)}z=N+4|0;w=b[A>>1]|0;if(w<<16>>16>0){s=w<<16>>16;t=0;o=0;u=c[z>>2]|0;while(1){m=c[u>>2]|0;n=0;while(1){r=a[m>>0]|0;if(!(r<<24>>24))break;else if(r<<24>>24==34)n=n+1|0;m=m+1|0;n=n+1|0}o=o+7+n|0;t=t+1|0;if((t|0)==(s|0))break;else u=u+24|0}r=o+2|0}else r=2;m=c[N>>2]|0;o=0;while(1){n=a[m>>0]|0;if(n<<24>>24==34)o=o+1|0;else if(!(n<<24>>24))break;m=m+1|0;o=o+1|0}u=o+r|0;x=(u|0)<50;r=x?10360:36880;v=x?20240:36888;x=x?33952:36896;u=((w<<16>>16)*6|0)+35+u|0;o=mg(u,((u|0)<0)<<31>>31)|0;if(!o){a[L>>0]=1;m=N;o=0;break}Yc(u,o,36904,J)|0;n=o;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;c[G>>2]=n-o&1073741823;ks(o,G,c[N>>2]|0);m=c[G>>2]|0;s=m+1|0;c[G>>2]=s;a[o+m>>0]=40;m=u-s|0;n=o+s|0;if((b[A>>1]|0)>0){w=0;t=c[z>>2]|0;while(1){Yc(m,n,r,J)|0;n=o+s|0;if(!n)n=0;else{r=n;while(1)if(!(a[r>>0]|0))break;else r=r+1|0;n=r-n&1073741823}c[G>>2]=n+s;ks(o,G,c[t>>2]|0);n=c[36920+((a[t+21>>0]|0)+-65<<2)>>2]|0;r=n;while(1)if(!(a[r>>0]|0))break;else r=r+1|0;s=r-n&1073741823;r=c[G>>2]|0;gw(o+r|0,n|0,s|0)|0;s=r+s|0;c[G>>2]=s;r=w+1|0;m=u-s|0;n=o+s|0;if((r|0)<(b[A>>1]|0)){w=r;t=t+24|0;r=v}else break}}c[J>>2]=x;Yc(m,n,10344,J)|0;m=N}while(0);n=K+16|0;k=c[m>>2]|0;F=c[p>>2]|0;l=c[f+384>>2]|0;c[J>>2]=c[(c[n>>2]|0)+(q<<4)>>2];c[J+4>>2]=(q|0)==1?13184:13208;c[J+8>>2]=y;c[J+12>>2]=k;c[J+16>>2]=k;c[J+20>>2]=F;c[J+24>>2]=o;c[J+28>>2]=l;xr(f,36704,J);ig(K,o);zr(f,q);if((a[N+44>>0]&8)!=0?(H=c[n>>2]|0,(c[(c[H+(q<<4)+12>>2]|0)+72>>2]|0)==0):0){c[J>>2]=c[H+(q<<4)>>2];xr(f,36792,J)}c[J>>2]=c[m>>2];Er(B,q,qh(K,36840,J)|0);if(!(a[I>>0]|0))break}else m=N;if(Ek((c[C>>2]|0)+8|0,c[m>>2]|0,N)|0){a[L>>0]=1;break}c[M>>2]=0;l=K+24|0;c[l>>2]=c[l>>2]|2;if(!(c[N+12>>2]|0)){l=c[f+496>>2]|0;c[N+48>>2]=(Jn(l,(c[((c[g>>2]|0)==0?h:g)>>2]|0)-l|0)|0)+13}}while(0);i=O;return}function Sq(b,d){b=b|0;d=d|0;var e=0,f=0;if(!d)e=0;else{f=c[d>>2]|0;d=c[d+4>>2]|0;if((f|0)!=0?(e=fw(d|0,0,1,0)|0,e=ih(b,e,C)|0,(e|0)!=0):0){gw(e|0,f|0,d|0)|0;a[e+d>>0]=0}else e=0;ho(e)}return e|0}function Tq(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;a:do if(b){g=a[b>>0]|0;b:do if(!(g<<24>>24)){f=67;g=0}else{k=g;f=67;h=0;g=0;do{h=d[9328+(k&255)>>0]|0|h<<8;b=b+1|0;if((h|0)==1919246700)if(f<<24>>24==67){f=69;h=1919246700;l=5}else l=14;else if((h|0)==1952807028){f=66;l=5}else if((h|0)==1668050786){f=66;l=5}else if((h|0)==1718382433)if(f<<24>>24==67){f=69;h=1718382433;l=5}else l=13;else if((h|0)==1667785074){f=66;h=1667785074;g=b;l=5}else if((h|0)==1651273570)if(f<<24>>24==69|f<<24>>24==67){o=a[b>>0]|0;k=o;f=65;h=1651273570;g=o<<24>>24==40?b:g}else l=14;else if((h|0)==1685026146)if(f<<24>>24==67){f=69;h=1685026146;l=5}else l=13;else if((h&16777215|0)==6909556){f=68;break b}else l=5;if((l|0)==13)l=5;else if((l|0)==14)l=5;if((l|0)==5){l=0;k=a[b>>0]|0}}while(k<<24>>24!=0)}while(0);if((e|0)!=0?(a[e>>0]=1,f<<24>>24<67):0){if(!g){a[e>>0]=5;break}b=a[g>>0]|0;if(b<<24>>24){while(1){if(((b&255)+-48|0)>>>0<10)break;g=g+1|0;b=a[g>>0]|0;if(!(b<<24>>24))break a}c[m>>2]=0;zn(g,m)|0;g=((c[m>>2]|0)/4|0)+1|0;g=(g|0)>255?255:g;c[m>>2]=g;a[e>>0]=g}}}else f=67;while(0);i=n;return f|0}function Uq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;o=i;i=i+32|0;if((i|0)>=(j|0))ba();m=o;n=c[e>>2]|0;k=c[e+484>>2]|0;do if(k){h=(b[k+38>>1]|0)+-1|0;l=c[k+4>>2]|0;p=c[f>>2]|0;q=(d[n+145>>0]|0)+4|0;c[m+0>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;c[m+16>>2]=0;c[m+20>>2]=0;k=m+20|0;a[k>>0]=q;c[m>>2]=78;c[m+4>>2]=79;c[m+24>>2]=0;ns(m,p)|0;if(!(a[k>>0]|0)){c[m>>2]=c[l+(h*24|0)>>2];ph(e,36480,m);break}k=l+(h*24|0)+4|0;Ck(n,c[k>>2]|0);c[k>>2]=Ir(n,c[f>>2]|0,1,0)|0;l=l+(h*24|0)+8|0;ig(n,c[l>>2]|0);h=c[f+4>>2]|0;k=(c[f+8>>2]|0)-h|0;if((h|0)!=0?(g=fw(k|0,((k|0)<0)<<31>>31|0,1,0)|0,g=ih(n,g,C)|0,(g|0)!=0):0){gw(g|0,h|0,k|0)|0;a[g+k>>0]=0}else g=0;c[l>>2]=g}while(0);Ck(n,c[f>>2]|0);i=o;return}function Vq(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;if((b|0)==72&(d|0)!=0&(e|0)!=0?(c[a+64>>2]|0)==0:0)b=os(c[a>>2]|0,d,e)|0;else{b=jr(c[a>>2]|0,b,f,1)|0;ps(c[a>>2]|0,b,d,e)}if((b|0)!=0?(g=c[(c[a>>2]|0)+100>>2]|0,(g|0)<(c[b+24>>2]|0)):0){c[h>>2]=g;ph(a,27152,h)}i=k;return b|0}function Wq(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var 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;A=i;i=i+16|0;if((i|0)>=(j|0))ba();z=A;x=c[e+484>>2]|0;do if((x|0)!=0?(a[e+451>>0]|0)==0:0){y=x+44|0;m=d[y>>0]|0;if(m&4){c[z>>2]=c[x>>2];ph(e,36376,z);break}v=m|4;a[y>>0]=v;w=(f|0)==0;if(w){m=(b[x+38>>1]|0)+-1|0;t=c[x+4>>2]|0;l=t+(m*24|0)+23|0;a[l>>0]=d[l>>0]|1;l=m;n=1;m=c[t+(m*24|0)+12>>2]|0}else{u=c[f>>2]|0;if((u|0)>0){r=f+4|0;s=x+4|0;q=b[x+38>>1]|0;t=0;m=0;do{a:do if(q<<16>>16>0){o=c[(c[r>>2]|0)+(t*20|0)+4>>2]|0;p=c[s>>2]|0;n=0;while(1){l=n+1|0;if(!($c(o,c[p+(n*24|0)>>2]|0)|0))break;if((l|0)<(q<<16>>16|0))n=l;else break a}l=p+(n*24|0)+23|0;a[l>>0]=d[l>>0]|1;l=n;m=c[p+(n*24|0)+12>>2]|0}else l=0;while(0);t=t+1|0}while((t|0)!=(u|0))}else{l=-1;m=0}n=(u|0)==1}if(n&(m|0)!=0?($c(m,11144)|0|k|0)==0:0){b[x+36>>1]=l;a[x+45>>0]=g;a[y>>0]=v|h<<3;if(w){f=0;break}a[e+448>>0]=a[(c[f+4>>2]|0)+12>>0]|0;break}if(h){ph(e,36424,z);break}m=c[e+8>>2]|0;l=(m|0)!=0;if(l)c[e+420>>2]=sh(m,156,0,0,0)|0;f=Xq(e,0,0,0,f,g,0,0,k,0)|0;if((f|0)!=0?(t=f+51|0,a[t>>0]=a[t>>0]&-4|2,l):0){f=c[e+420>>2]|0;l=c[m+32>>2]|0;if(l>>>0>f>>>0)c[(c[m+4>>2]|0)+(f*20|0)+8>>2]=l;c[(c[m+24>>2]|0)+88>>2]=l+-1;f=0}else f=0}while(0);Jk(c[e>>2]|0,f);i=A;return}function Xq(f,g,h,k,l,m,n,o,p,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;var 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;V=i;i=i+144|0;if((i|0)>=(j|0))baba();z=C;B=c[d>>2]|0;A=c[d+484>>2]|0;a:do if((A|0)!=0?(a[d+451>>0]|0)==0:0){w=(e|0)==0;do if(w){y=b[A+38>>1]|0;l=(y<<16>>16)+-1|0;if(y<<16>>16<1){k=0;break a}if(g)if((c[g>>2]|0)==1){l=1;k=13}else{c[z>>2]=c[(c[A+4>>2]|0)+(l*24|0)>>2];c[z+4>>2]=f;ph(d,35712,z);k=0;break a}else{l=1;k=12}}else{if(!g){l=c[e>>2]|0;k=12;break}l=c[g>>2]|0;if((l|0)==(c[e>>2]|0))k=13;else{ph(d,35776,z);k=0;break a}}while(0);if((k|0)==12){m=f+4|0;p=m;t=0;m=(l<<3)+37+(c[m>>2]|0)|0;y=l}else if((k|0)==13){p=f+4|0;m=(l<<3)+37+(c[p>>2]|0)|0;q=c[g>>2]|0;if((q|0)>0){r=c[g+4>>2]|0;s=0;do{o=c[r+(s*20|0)+4>>2]|0;if(!o)k=1;else{n=o;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;k=(n-o&1073741823)+1|0}m=k+m|0;s=s+1|0}while((s|0)<(q|0));t=1;y=l}else{t=1;y=l}}k=ih(B,m,((m|0)<0)<<31>>31)|0;if(k){bw(k|0,0,m|0)|0;c[k>>2]=A;x=A+16|0;c[k+4>>2]=c[x>>2];u=k+36|0;n=u+(y<<3)|0;v=k+8|0;c[v>>2]=n;gw(n|0,c[f>>2]|0,c[p>>2]|0)|0;a[n+(c[p>>2]|0)>>0]=0;ho(n);n=n+((c[p>>2]|0)+1)|0;c[k+20>>2]=y;b:do if(!w){if((y|0)>0){m=A+4|0;f=e+4|0;o=b[A+38>>1]|0;l=0;while(1){c:do if(o<<16>>16>0){s=c[m>>2]|0;r=c[(c[f>>2]|0)+(l*20|0)+4>>2]|0;q=0;while(1){p=q+1|0;if(!($c(c[s+(q*24|0)>>2]|0,r)|0)){p=q;break}if((p|0)<(o<<16>>16|0))q=p;else break c}c[u+(l<<3)>>2]=p}else p=0;while(0);if((p|0)>=(o<<16>>16|0))break;l=l+1|0;if((l|0)>=(y|0))break b}c[z>>2]=c[(c[f>>2]|0)+(l*20|0)+4>>2];ph(d,35872,z);break a}}else c[u>>2]=(b[A+38>>1]|0)+-1;while(0);if(t&(y|0)>0){o=g+4|0;p=0;while(1){m=c[(c[o>>2]|0)+(p*20|0)+4>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;l=l-m&1073741823}c[u+(p<<3)+4>>2]=n;gw(n|0,m|0,l|0)|0;a[n+l>>0]=0;p=p+1|0;if((p|0)==(y|0))break;else n=n+(l+1)|0}}a[k+24>>0]=0;a[k+25>>0]=h;a[k+26>>0]=h>>>8;l=Ek((c[A+68>>2]|0)+56|0,c[v>>2]|0,k)|0;if((l|0)==(k|0)){a[B+65>>0]=1;break}if(l){c[k+12>>2]=l;c[l+16>>2]=k}c[x>>2]=k;k=0}else k=0}else k=0;while(0);ig(B,k);Jk(B,e);Jk(B,g);i=C;return}function _q(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=c[b>>2]|0;f=a[e+62>>0]|0;g=a[e+145>>0]|0;e=Un(e,f,d,g&255)|0;do if(!(g<<24>>24)){if((e|0)!=0?(c[e+12>>2]|0)!=0:0)break;e=ss(b,f,e,d)|0}while(0);return e|0}function $q(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|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;y=i;i=i+16|0;if((i|0)>=(j|0))ba();w=y;s=y+12|0;x=c[e>>2]|0;do if(!(a[x+65>>0]|0)){h=(h|0)!=0;if(h){r=x+68|0;a[r>>0]=(a[r>>0]|0)+1<<24>>24;v=Qr(e,g,f+8|0)|0;a[r>>0]=(a[r>>0]|0)+-1<<24>>24}else v=Qr(e,g,f+8|0)|0;if(!v){if(!h)break;vr(e,c[f+12>>2]|0);break}p=v+68|0;l=c[p>>2]|0;a:do if(l){h=c[x+20>>2]|0;if((h|0)>0){k=c[x+16>>2]|0;n=0;while(1){m=n+1|0;if((c[k+(n<<4)+12>>2]|0)==(l|0)){m=n;break a}if((m|0)<(h|0))n=m;else break}}else m=0}else m=-1e6;while(0);t=v+44|0;if((a[t>>0]&16)!=0?(dr(e,v)|0)!=0:0)break;n=(m|0)==1;u=n?13184:13208;h=c[(c[x+16>>2]|0)+(m<<4)>>2]|0;if(!(Oq(e,9,u,0,h)|0)){k=(g|0)!=0;do if(k){l=n?15:17;n=0}else{if(!(a[t>>0]&16)){l=n?13:11;n=0;break}n=v+60|0;while(1){n=c[n>>2]|0;if((c[n>>2]|0)==(x|0))break;else n=n+24|0}l=30;n=c[(c[n+4>>2]|0)+4>>2]|0}while(0);if((Oq(e,l,c[v>>2]|0,n,h)|0)==0?(Oq(e,9,c[v>>2]|0,0,h)|0)==0:0){n=c[v>>2]|0;if((Bc(n,25568,7)|0)==0?(Bc(n,35488,11)|0)!=0:0){c[w>>2]=n;ph(e,35504,w);break}h=v+12|0;l=(c[h>>2]|0)==0;if(k){if(l){c[w>>2]=n;ph(e,35536,w);break}}else if(!l){c[w>>2]=n;ph(e,35576,w);break}if(Kq(e)|0){q=e+408|0;l=c[q>>2]|0;l=(l|0)==0?e:l;wr(e,m);r=1<<m;k=l+328|0;c[k>>2]=c[k>>2]|r;l=l+20|0;a[l>>0]=d[l>>0]|1;yr(e,m,28544,c[v>>2]|0);l=c[e>>2]|0;k=l+24|0;b:do if(((c[k>>2]&524288|0)!=0?(a[t>>0]&16)==0:0)?(c[h>>2]|0)==0:0){o=Kq(e)|0;s=Zm((c[p>>2]|0)+56|0,c[v>>2]|0,s)|0;if((s|0)!=0?(c[s+8>>2]|0)!=0:0)n=0;else{n=c[v+16>>2]|0;if(!n)break;while(1){if(a[n+24>>0]|0)break;if(c[k>>2]&16777216)break;n=c[n+4>>2]|0;if(!n)break b}n=ts(o)|0;sh(o,135,1,n,0)|0}s=e+438|0;a[s>>0]=1;nr(e,us(l,f,0)|0,0);a[s>>0]=0;if(!(c[k>>2]&16777216)){sh(o,135,0,(c[o+32>>2]|0)+2|0,0)|0;vs(e,787,2,0,-2,4)}if(n){l=c[o+24>>2]|0;h=~n;do if((n|0)<0){n=c[l+112>>2]|0;if(!n)break;c[n+(h<<2)>>2]=c[o+32>>2]}while(0);c[l+88>>2]=(c[o+32>>2]|0)+-1}}while(0);o=c[e>>2]|0;p=o+16|0;l=c[p>>2]|0;h=Kq(e)|0;s=c[q>>2]|0;s=(s|0)==0?e:s;wr(e,m);q=s+328|0;c[q>>2]=c[q>>2]|r;s=s+20|0;a[s>>0]=d[s>>0]|1;if(a[t>>0]&16)sh(h,146,0,0,0)|0;n=ws(e,v)|0;if(n)do{Mr(e,n);n=c[n+32>>2]|0}while((n|0)!=0);l=l+(m<<4)|0;if(a[t>>0]&8){s=c[v>>2]|0;c[w>>2]=c[l>>2];c[w+4>>2]=s;xr(e,35608,w)}s=c[v>>2]|0;c[w>>2]=c[l>>2];c[w+4>>2]=u;c[w+8>>2]=s;xr(e,35656,w);if((g|0)==0?(a[t>>0]&16)==0:0)xs(e,v);if(a[t>>0]&16){s=c[v>>2]|0;th(h,sh(h,148,m,0,0)|0,s,0)}k=c[v>>2]|0;th(h,sh(h,124,m,0,0)|0,k,0);zr(e,m);h=c[(c[p>>2]|0)+(m<<4)+12>>2]|0;k=b[h+78>>1]|0;if(k&2){l=c[h+16>>2]|0;if(l){k=l;do{h=c[k+8>>2]|0;if(c[h+12>>2]|0){Hk(o,h);c[h+4>>2]=0;b[h+38>>1]=0}k=c[k>>2]|0}while((k|0)!=0);k=c[(c[p>>2]|0)+(m<<4)+12>>2]|0;h=k;k=b[k+78>>1]|0}b[h+78>>1]=k&65533}}}}}while(0);zo(x,f);i=y;return}function ar(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();k=m;h=c[b>>2]|0;do if((f|0)!=0?(c[f+4>>2]|0)!=0:0){if(a[h+145>>0]|0){ph(b,28488,k);f=b+64|0;c[f>>2]=(c[f>>2]|0)+1;f=-1;break}c[g>>2]=f;g=Sq(h,e)|0;f=Rh(h,g)|0;ig(h,g);if((f|0)<0){c[k>>2]=e;ph(b,28512,k);f=b+64|0;c[f>>2]=(c[f>>2]|0)+1;f=-1}}else l=7;while(0);if((l|0)==7){f=d[h+144>>0]|0;c[g>>2]=e}i=m;return f|0}function br(a,b){a=a|0;b=b|0;a:do if(!b)b=0;else while(1){if(Dr(a,c[b>>2]|0)|0){b=1;break a}if(Gr(a,c[b+32>>2]|0)|0){b=1;break a}if(Cr(a,c[b+36>>2]|0)|0){b=1;break a}if(Dr(a,c[b+40>>2]|0)|0){b=1;break a}if(Cr(a,c[b+44>>2]|0)|0){b=1;break a}if(Dr(a,c[b+48>>2]|0)|0){b=1;break a}if(Cr(a,c[b+60>>2]|0)|0){b=1;break a}if(Cr(a,c[b+64>>2]|0)|0){b=1;break a}b=c[b+52>>2]|0;if(!b){b=0;break}}while(0);return b|0}function cr(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;if((f|0)!=0?(h=ih(d,72,0)|0,(h|0)!=0):0){c[h>>2]=Lr(d,c[f>>2]|0,g)|0;c[h+32>>2]=us(d,c[f+32>>2]|0,g)|0;c[h+36>>2]=Ir(d,c[f+36>>2]|0,g,0)|0;c[h+40>>2]=Lr(d,c[f+40>>2]|0,g)|0;c[h+44>>2]=Ir(d,c[f+44>>2]|0,g,0)|0;c[h+48>>2]=Lr(d,c[f+48>>2]|0,g)|0;a[h+4>>0]=a[f+4>>0]|0;j=cr(d,c[f+52>>2]|0,g)|0;c[h+52>>2]=j;if(j)c[j+56>>2]=h;c[h+56>>2]=0;c[h+60>>2]=Ir(d,c[f+60>>2]|0,g,0)|0;c[h+64>>2]=Ir(d,c[f+64>>2]|0,g,0)|0;c[h+8>>2]=0;c[h+12>>2]=0;b[h+6>>1]=(e[f+6>>1]|0)&65527;c[h+16>>2]=-1;c[h+20>>2]=-1;l=f+24|0;j=c[l+4>>2]|0;g=h+24|0;c[g>>2]=c[l>>2];c[g+4>>2]=j;g=c[f+68>>2]|0;if((g|0)!=0?(k=c[g>>2]<<4|8,i=ih(d,k,((k|0)<0)<<31>>31)|0,(i|0)!=0):0){bw(i|0,0,k|0)|0;c[i>>2]=c[g>>2];if((c[g>>2]|0)>0){f=i+8|0;j=0;do{c[f+(j<<4)+8>>2]=cr(d,c[g+(j<<4)+16>>2]|0,0)|0;c[f+(j<<4)+4>>2]=Lr(d,c[g+(j<<4)+12>>2]|0,0)|0;c[f+(j<<4)>>2]=gh(d,c[g+(j<<4)+8>>2]|0)|0;j=j+1|0}while((j|0)<(c[g>>2]|0))}}else i=0;c[h+68>>2]=i}else h=0;return h|0}function dr(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))ba();p=t;k=t+8|0;m=t+4|0;s=c[d>>2]|0;n=f+44|0;h=a[n>>0]|0;a:do if(!(h&16))q=11;else{g=c[f+60>>2]|0;if(g)do{if((c[g>>2]|0)==(s|0)){q=11;break a}g=c[g+24>>2]|0}while((g|0)!=0);g=f+56|0;h=Zm(s+308|0,c[c[g>>2]>>2]|0,k)|0;if((h|0)!=0?(l=c[h+8>>2]|0,(l|0)!=0):0){c[m>>2]=0;l=(vn(s,f,l,c[(c[l>>2]|0)+8>>2]|0,m)|0)==0;h=c[m>>2]|0;if(l){ig(s,h);h=a[n>>0]|0;q=11;break}else{c[p>>2]=h;ph(d,10344,p);ig(s,h);g=1;break}}c[p>>2]=c[c[g>>2]>>2];ph(d,28320,p);g=1}while(0);do if((q|0)==11)if((h&16)==0?(r=f+38|0,o=b[r>>1]|0,o<<16>>16<=0):0){if(o<<16>>16<0){c[p>>2]=c[f>>2];ph(d,26752,p);g=1;break}h=cr(s,c[f+12>>2]|0,0)|0;if(!h)g=1;else{o=s+250|0;n=a[o>>0]|0;q=d+68|0;p=c[q>>2]|0;ys(d,c[h+32>>2]|0);b[r>>1]=-1;a[o>>0]=0;m=s+284|0;l=c[m>>2]|0;c[m>>2]=0;g=js(d,h)|0;c[m>>2]=l;a[o>>0]=n;c[q>>2]=p;if(!g){b[r>>1]=0;g=1}else{d=g+38|0;b[r>>1]=b[d>>1]|0;q=g+4|0;c[f+4>>2]=c[q>>2];b[d>>1]=0;c[q>>2]=0;gg(s,g);g=(c[f+68>>2]|0)+78|0;b[g>>1]=e[g>>1]|0|2;g=0}Ik(s,h,1)}}else g=0;while(0);i=t;return g|0}
12 function er(f,g,h){f=f|0;g=g|0;h=h|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,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,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0;za=i;i=i+240|0;if((i|0)>=(j|0))baba();m=q;o=c[a>>2]|0;if((b|0)==0?(l=(h|0)!=0,l|(k|0)!=0):0){c[m>>2]=l?34792:34800;ph(a,34752,m);p=9}else{b=lr(o,b,d,e)|0;if((b|0)!=0?(n=c[b>>2]|0,(n|0)!=0):0){l=n+-1|0;if(c[f+4>>2]|0)c[b+(l*72|0)+20>>2]=Sq(o,f)|0;c[b+(l*72|0)+28>>2]=g;c[b+(l*72|0)+52>>2]=h;c[b+(l*72|0)+56>>2]=k}else p=9}if((p|0)==9){Ck(o,h);Dk(o,k);Ik(o,g,1);b=0}i=q;return b|0}function gr(d,e,f,g,h,k,l,m,n,o){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+80|0;if((i|0)>=(j|0))ba();q=v+72|0;u=v;t=c[d>>2]|0;p=ih(t,72,0)|0;if(!p){r=u+0|0;s=r+72|0;do{c[r>>2]=0;r=r+4|0}while((r|0)<(s|0));p=u}else{r=p+0|0;s=r+72|0;do{a[r>>0]=0;r=r+1|0}while((r|0)<(s|0))}if(!e){c[q>>2]=0;c[q+4>>2]=0;e=hr(d,0,jr(t,116,q,0)|0)|0}c[p>>2]=e;if(!f){f=ih(t,80,0)|0;if(f){r=f+0|0;s=r+80|0;do{a[r>>0]=0;r=r+1|0}while((r|0)<(s|0))}}c[p+32>>2]=f;c[p+36>>2]=g;c[p+40>>2]=h;c[p+44>>2]=k;c[p+48>>2]=l;b[p+6>>1]=m;a[p+4>>0]=119;c[p+60>>2]=n;c[p+64>>2]=o;c[p+16>>2]=-1;c[p+20>>2]=-1;if(a[t+65>>0]|0){Ik(t,p,(p|0)!=(u|0)&1);p=0}i=v;return p|0}function hr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=c[b>>2]|0;if(!d){d=ih(g,8,0)|0;if(d){b=d;f=b;a[f>>0]=0;a[f+1>>0]=0;a[f+2>>0]=0;a[f+3>>0]=0;b=b+4|0;a[b>>0]=0;a[b+1>>0]=0;a[b+2>>0]=0;a[b+3>>0]=0;b=ih(g,20,0)|0;c[d+4>>2]=b;if(!b)f=8;else f=7}else{d=0;f=8}}else{b=c[d>>2]|0;if(!(b+-1&b)){f=d+4|0;b=no(g,c[f>>2]|0,b*40|0,0)|0;if(!b)f=8;else{c[f>>2]=b;f=7}}else f=7}if((f|0)==7){b=c[d>>2]|0;c[d>>2]=b+1;b=(c[d+4>>2]|0)+(b*20|0)|0;c[b+0>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[b+12>>2]=0;c[b+16>>2]=0;c[b>>2]=e}else if((f|0)==8){Ck(g,e);Jk(g,d);d=0}return d|0}function ir(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;do if(d){j=(c[d>>2]|0)+-1|0;g=c[d+4>>2]|0;h=c[e>>2]|0;d=c[e+4>>2]|0;if((h|0)!=0?(e=c[b>>2]|0,i=fw(d|0,0,1,0)|0,i=ih(e,i,C)|0,(i|0)!=0):0){gw(i|0,h|0,d|0)|0;a[i+d>>0]=0;c[g+(j*20|0)+4>>2]=i;if(!f)break;ho(i);break}c[g+(j*20|0)+4>>2]=0}while(0);return}function jr(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();m=q;c[m>>2]=0;k=(f|0)!=0;do if(k){if(((e|0)==132?(h=c[f>>2]|0,(h|0)!=0):0)?(zn(h,m)|0)!=0:0){o=0;break}o=(c[f+4>>2]|0)+1|0}else o=0;while(0);l=o+48|0;n=ih(d,l,0)|0;if(n){bw(n|0,0,l|0)|0;a[n>>0]=e;b[n+34>>1]=-1;do if(k){if(!o){g=n+4|0;c[g>>2]=c[g>>2]|1024;c[n+8>>2]=c[m>>2];break}h=n+48|0;l=n+8|0;c[l>>2]=h;k=f+4|0;d=c[k>>2]|0;if(!d)h=48;else{gw(h|0,c[f>>2]|0,d|0)|0;h=(c[k>>2]|0)+48|0}a[n+h>>0]=0;if(((g|0)!=0&(o|0)>2?(g=a[c[f>>2]>>0]|0,p=g<<24>>24==34,g<<24>>24==34|g<<24>>24==39|g<<24>>24==91|g<<24>>24==96):0)?(ho(c[l>>2]|0),p):0){g=n+4|0;c[g>>2]=c[g>>2]|64}}while(0);c[n+24>>2]=1}i=q;return n|0}function kr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;do if((d|0)!=0?(f=c[d>>2]|0,(f|0)>0):0){f=f+-1|0;if((c[e+4>>2]|0)==1?(c[e>>2]|0)==0:0){f=d+(f*72|0)+45|0;a[f>>0]=a[f>>0]|1;break}c[d+(f*72|0)+72>>2]=Sq(c[b>>2]|0,e)|0}while(0);return}function lr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;if(!d){d=ih(b,80,0)|0;if(!d)d=0;else{h=d+0|0;g=h+80|0;do{a[h>>0]=0;h=h+1|0}while((h|0)<(g|0));c[d+4>>2]=1;h=4}}else h=4;do if((h|0)==4){d=Bs(b,d,1,c[d>>2]|0)|0;if(a[b+65>>0]|0){zo(b,d);d=0;break}h=(c[d>>2]|0)+-1|0;if(!f)g=0;else g=(c[f>>2]|0)==0?0:f;f=(g|0)==0;c[d+(h*72|0)+16>>2]=Sq(b,f?e:g)|0;c[d+(h*72|0)+12>>2]=Sq(b,f?0:e)|0}while(0);return d|0}function mr(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+32|0;if((i|0)>=(j|0))ba();o=q;m=q+16|0;c[m>>2]=b;c[m+4>>2]=e;c[m+8>>2]=f;l=b;n=1;g=0;a:while(1){if(!l)break;k=c[l+4>>2]|0;h=0;while(1){if((k|0)==(d[34625+(h*3|0)>>0]|0|0)?(Bc(c[l>>2]|0,34584+(d[34624+(h*3|0)>>0]|0)|0,k)|0)==0:0)break;h=h+1|0;if((h|0)>=7){p=10;break a}}g=d[34626+(h*3|0)>>0]|0|g;if((h|0)>6){p=10;break}if((n|0)>=3)break;l=c[m+(n<<2)>>2]|0;n=n+1|0}if((p|0)==10)g=g|64;if((g&33|0)!=33&(g&64|0)==0){if(!((g&32|0)==0|(g&24|0)==8)){ph(a,34696,o);g=1}}else{c[o>>2]=b;c[o+4>>2]=e;c[o+8>>2]=(f|0)==0?20377|0:20376;c[o+12>>2]=f;ph(a,34648,o);g=1}i=q;return g|0}function nr(e,f,g){e=e|0;f=f|0;g=g|0;var h=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;Q=i;i=i+48|0;if((i|0)>=(j|0))ba();N=Q+36|0;O=Q+32|0;o=Q;c[N>>2]=0;c[O>>2]=0;P=c[e>>2]|0;if(((((c[e+64>>2]|0)==0?(a[P+65>>0]|0)==0:0)?(E=Fr(e,f)|0,(E|0)!=0):0)?(D=ft(e,E,109,0,0)|0,M=(c[E+12>>2]|0)!=0,(dr(e,E)|0)==0):0)?(q=(D|0)!=0,(gt(e,E,q&1)|0)==0):0){l=c[E+68>>2]|0;a:do if(l){k=c[P+20>>2]|0;if((k|0)>0){h=c[P+16>>2]|0;n=0;while(1){m=n+1|0;if((c[h+(n<<4)+12>>2]|0)==(l|0)){m=n;break a}if((m|0)<(k|0))n=m;else break}}else m=0}else m=-1e6;while(0);h=Oq(e,9,c[E>>2]|0,0,c[(c[P+16>>2]|0)+(m<<4)>>2]|0)|0;if((h|0)!=1){p=e+68|0;z=c[p>>2]|0;r=z+1|0;c[p>>2]=r;c[f+48>>2]=z;F=E+8|0;l=c[F>>2]|0;if(!l)n=0;else{k=r;n=0;do{k=k+1|0;c[p>>2]=k;n=n+1|0;l=c[l+20>>2]|0}while((l|0)!=0)}if(M){K=e+492|0;L=c[K>>2]|0;c[K>>2]=c[E>>2];K=e}else{K=0;L=0}I=Kq(e)|0;b:do if(I){J=e+18|0;if(!(a[J>>0]|0)){B=I+88|0;b[B>>1]=b[B>>1]|4}A=e+408|0;B=c[A>>2]|0;B=(B|0)==0?e:B;wr(e,m);y=B+328|0;c[y>>2]=c[y>>2]|1<<m;B=B+20|0;a[B>>0]=d[B>>0]|1;if(M){ht(e,E,g,z);c[O>>2]=z;c[N>>2]=z};c[o+0>>2]=0;c[o+4>>2]=0;c[o+8>>2]=0;c[o+12>>2]=0;c[o+16>>2]=0;c[o+20>>2]=0;c[o+24>>2]=0;c[o+28>>2]=0;c[o>>2]=e;c[o+4>>2]=f;if(!(hs(o,g)|0)){G=P+24|0;if(!(c[G>>2]&128))H=-1;else{B=e+72|0;H=(c[B>>2]|0)+1|0;c[B>>2]=H;sh(I,25,0,H,0)|0}B=E+44|0;do if((!((g|0)!=0|(h|0)!=0|q)?(a[B>>0]&16)==0:0)?(it(e,E,0,0)|0)==0:0){l=E+32|0;cs(e,m,c[l>>2]|0,1,c[E>>2]|0);if(!(a[B>>0]&32)){E=c[E>>2]|0;th(I,sh(I,118,c[l>>2]|0,m,H)|0,E,-2)}h=c[F>>2]|0;if(!h){h=0;break}do{sh(I,118,c[h+40>>2]|0,m,0)|0;h=c[h+20>>2]|0}while((h|0)!=0);h=0}else C=31;while(0);do if((C|0)==31){if(!(a[B>>0]&32)){s=e+72|0;w=(c[s>>2]|0)+1|0;c[s>>2]=w;sh(I,28,0,w,0)|0;s=0;x=0;h=0;u=1;m=0}else{m=c[F>>2]|0;c:do if(!m)m=0;else while(1){if((a[m+51>>0]&3)==2)break c;m=c[m+20>>2]|0;if(!m){m=0;break}}while(0);u=b[m+46>>1]|0;x=e+72|0;h=c[x>>2]|0;s=u<<16>>16;c[x>>2]=h+s;x=c[p>>2]|0;c[p>>2]=x+1;s=sh(I,57,x,s,0)|0;w=c[e+8>>2]|0;th(w,-1,ds(e,m)|0,-6);h=h+1|0;w=0}t=Rs(e,f,g,0,0,12,r)|0;if(!t){h=0;break b}r=t+60|0;q=c[r>>2]|0;r=c[r+4>>2]|0;v=a[t+38>>0]|0;if(c[G>>2]&128)sh(I,37,H,1,0)|0;y=(m|0)!=0;do if(y){if(u<<16>>16<=0){k=h;break}o=m+4|0;l=u<<16>>16;p=0;do{jt(I,E,z,b[(c[o>>2]|0)+(p<<1)>>1]|0,p+h|0);p=p+1|0}while((p|0)!=(l|0));k=h}else{l=e+72|0;k=_s(e,E,-1,z,(c[l>>2]|0)+1|0,0)|0;if((k|0)<=(c[l>>2]|0))break;c[l>>2]=k}while(0);o=v<<24>>24!=0;do if(!o)if(y){l=e+72|0;k=(c[l>>2]|0)+1|0;c[l>>2]=k;l=u<<16>>16;p=kt(I,m)|0;th(I,sh(I,49,h,l,k)|0,p,l);sh(I,110,x,k,0)|0;h=0;l=0;p=0;C=59;break}else{sh(I,128,w,k,0)|0;Ts(t);h=0;r=0;m=1;break}else{h=n+2|0;h=ih(P,h,((h|0)<0)<<31>>31)|0;if(!h){Ts(t);h=0;break b}C=n+1|0;bw(h|0,1,C|0)|0;a[h+C>>0]=0;if((q|0)>-1)a[h+(q-z)>>0]=0;if((r|0)>-1)a[h+(r-z)>>0]=0;if(s)vh(I,s);l=sh(I,16,0,0,0)|0;p=u;C=59}while(0);do if((C|0)==59){Ts(t);if(!o){r=0;m=p;break}m=ts(I)|0;sh(I,16,0,m,0)|0;n=c[I+32>>2]|0;if(n>>>0>l>>>0)c[(c[I+4>>2]|0)+(l*20|0)+8>>2]=n;c[(c[I+24>>2]|0)+88>>2]=n+-1;r=m;m=p}while(0);if(!M)lt(e,E,55,z,h,N,O)|0;do if(!o)if(y){l=sh(I,108,x,0,0)|0;sh(I,101,x,k,0)|0;break}else{l=sh(I,129,w,0,k)|0;break}else{n=c[N>>2]|0;if(!(a[h+(n-z)>>0]|0)){l=0;break}th(I,sh(I,68,n,r,k)|0,m<<16>>16,-14);l=0}while(0);if(!(a[B>>0]&16))nt(e,E,D,c[N>>2]|0,c[O>>2]|0,k,m,(a[J>>0]|0)==0&1,10,v);else{n=c[E+60>>2]|0;d:do if(!n)n=0;else while(1){if((c[n>>2]|0)==(P|0))break d;n=c[n+24>>2]|0;if(!n){n=0;break}}while(0);mt(e,E);th(I,sh(I,15,0,1,k)|0,n,-10);n=c[I+4>>2]|0;if(n)a[n+(((c[I+32>>2]|0)+-1|0)*20|0)+3>>0]=2;E=c[A>>2]|0;a[((E|0)==0?e:E)+21>>0]=1}do if(!o)if(y){sh(I,9,x,l+1|0,0)|0;n=c[I+32>>2]|0;if(n>>>0>l>>>0)c[(c[I+4>>2]|0)+(l*20|0)+8>>2]=n;c[(c[I+24>>2]|0)+88>>2]=n+-1;break}else{sh(I,16,0,l,0)|0;n=c[I+32>>2]|0;if(n>>>0>l>>>0)c[(c[I+4>>2]|0)+(l*20|0)+8>>2]=n;c[(c[I+24>>2]|0)+88>>2]=n+-1;break}else{m=c[I+24>>2]|0;l=~r;do if((r|0)<0){n=c[m+112>>2]|0;if(!n)break;c[n+(l<<2)>>2]=c[I+32>>2]}while(0);c[m+88>>2]=(c[I+32>>2]|0)+-1}while(0);if(M)break;if(a[B>>0]&16)break;if(!y)sh(I,61,c[N>>2]|0,0,0)|0;k=c[F>>2]|0;if(!k)break;else l=0;while(1){sh(I,61,(c[O>>2]|0)+l|0,0,0)|0;k=c[k+20>>2]|0;if(!k)break;else l=l+1|0}}while(0);if((a[J>>0]|0)==0?(c[e+412>>2]|0)==0:0)ot(e);if((c[G>>2]&128|0)!=0?(a[J>>0]|0)==0:0){if(c[e+412>>2]|0)break;sh(I,35,H,1,0)|0;eq(I,1);if(a[(c[I>>2]|0)+65>>0]|0)break;Tg(c[I+16>>2]|0,34568,-1,1,0)|0}}else h=0}else h=0;while(0);if(K)c[K+492>>2]=L}else h=0}else h=0;zo(P,f);Ck(P,g);ig(P,h);i=Q;return}function or(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var 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,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0;ja=i;i=i+64|0;if((i|0)>=(j|0))bababa();f=h;if(!d){d=ih(b,8,0)|0;if(!d)d=0;else{g=d;k=g;a[k>>0]=0;a[k+1>>0]=0;a[k+2>>0]=0;a[k+3>>0]=0;g=g+4|0;a[g>>0]=0;a[g+1>>0]=0;a[g+2>>0]=0;a[g+3>>0]=0;g=4}}else g=4;do if((g|0)==4){c[d>>2]=Dt(b,c[d>>2]|0,8,d+4|0,f)|0;f=c[f>>2]|0;if((f|0)<0){Dk(b,d);d=0;break}else{b=Sq(b,e)|0;c[(c[d>>2]|0)+(f<<3)>>2]=b;break}}while(0);i=h;return d|0}function rr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;if((c[d+4>>2]|0)!=0?(f=jr(c[a>>2]|0,95,d,e)|0,(f|0)!=0):0){c[f+12>>2]=b;b=f+4|0;c[b>>2]=c[b>>2]|4352;b=f}return b|0}function sr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=c[a>>2]|0;d=jr(e,153,d,1)|0;if(!d){Jk(e,b);d=0}else{c[d+20>>2]=b;ur(a,d)}return d|0}function tr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;b=c[b>>2]|0;if((d|0)!=0&(e|0)!=0?(a[d>>0]|0)==101:0){a[e>>0]=f;f=e+16|0;Ck(b,c[f>>2]|0);c[f>>2]=0}return}function ur(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;if((c[a+64>>2]|0)==0?(Et(b),d=c[(c[a>>2]|0)+100>>2]|0,(d|0)<(c[b+24>>2]|0)):0){c[e>>2]=d;ph(a,27152,e)}i=f;return}function vr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;d=c[a>>2]|0;i=d+20|0;e=c[i>>2]|0;if((e|0)>0){g=d+16|0;h=(b|0)==0;d=e;f=0;do{e=c[g>>2]|0;do if(c[e+(f<<4)+4>>2]|0){if(!h?($c(b,c[e+(f<<4)>>2]|0)|0)!=0:0)break;wr(a,f);d=c[i>>2]|0}while(0);f=f+1|0}while((f|0)<(d|0))}return}function wr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;f=c[a+408>>2]|0;f=(f|0)==0?a:f;a=f+332|0;d=c[a>>2]|0;e=1<<b;if((d&e|0)==0?(g=c[f>>2]|0,c[a>>2]=d|e,c[f+(b<<2)+336>>2]=c[c[(c[g+16>>2]|0)+(b<<4)+12>>2]>>2],(b|0)==1):0)Wk(f)|0;return}function xr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+128|0;if((i|0)>=(j|0))ba();f=o+8|0;n=o;m=o+24|0;c[n>>2]=0;k=c[b>>2]|0;if((c[b+64>>2]|0)==0?(c[f>>2]=e,l=Sk(k,d,f)|0,(l|0)!=0):0){d=b+18|0;a[d>>0]=(a[d>>0]|0)+1<<24>>24;e=b+440|0;f=m+0|0;g=e+0|0;h=f+96|0;do{a[f>>0]=a[g>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=e+0|0;h=f+96|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(h|0));Hh(b,l,n)|0;ig(k,c[n>>2]|0);ig(k,l);f=e+0|0;g=m+0|0;h=f+96|0;do{a[f>>0]=a[g>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));a[d>>0]=(a[d>>0]|0)+-1<<24>>24}i=o;return}function yr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+48|0;if((i|0)>=(j|0))ba();g=k;h=k+16|0;b=c[(c[(c[a>>2]|0)+16>>2]|0)+(b<<4)>>2]|0;f=1;do{c[g>>2]=f;Yc(24,h,33272,g)|0;if(Wh(c[a>>2]|0,h,b)|0){c[g>>2]=b;c[g+4>>2]=h;c[g+8>>2]=d;c[g+12>>2]=e;xr(a,28840,g)}f=f+1|0}while((f|0)!=5);i=k;return}function zr(b,d){b=b|0;d=d|0;var e=0,f=0;e=b+19|0;f=a[e>>0]|0;if(!(f<<24>>24)){f=b+72|0;e=(c[f>>2]|0)+1|0;c[f>>2]=e}else{f=f+-1<<24>>24;a[e>>0]=f;e=c[b+((f&255)<<2)+24>>2]|0}f=c[b+8>>2]|0;sh(f,25,(c[c[(c[(c[b>>2]|0)+16>>2]|0)+(d<<4)+12>>2]>>2]|0)+1|0,e,0)|0;sh(f,52,d,1,e)|0;Wr(b,e);return}function Ar(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))ba();k=l;h=Kq(b)|0;f=b+19|0;g=a[f>>0]|0;if(!(g<<24>>24)){g=b+72|0;f=(c[g>>2]|0)+1|0;c[g>>2]=f}else{g=g+-1<<24>>24;a[f>>0]=g;f=c[b+((g&255)<<2)+24>>2]|0}sh(h,117,d,f,e)|0;g=c[b+408>>2]|0;a[((g|0)==0?b:g)+21>>0]=1;c[k>>2]=c[(c[(c[b>>2]|0)+16>>2]|0)+(e<<4)>>2];c[k+4>>2]=(e|0)==1?13184:13208;c[k+8>>2]=d;c[k+12>>2]=f;c[k+16>>2]=f;xr(b,33216,k);Wr(b,f);i=l;return}function Br(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=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,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;U=i;i=i+96|0;if((i|0)>=(j|0))ba3;if(((a[(c[Q>>2]|0)+65>>0]|0)==0?(Tg(c[Q+16>>2]|0,31912,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)?(Tg((c[Q+16>>2]|0)+40|0,31920,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)Tg((c[Q+16>>2]|0)+80|0,31928,-1,1,0)|0;sh(Q,11,m,l,1)|0;sh(Q,35,1,3,0)|0;break a}case 26:{kf(T)|0;break a}case 34:{if(!R)l=c[T+216>>2]|0;else{c[D>>2]=0;zn(R,D)|0;l=c[D>>2]|0;if((l|0)>0)m=21;else{l=0;m=0}c[T+216>>2]=m;c[T+220>>2]=l;l=m}if((l|0)==21){l=c[T+220>>2]|0;m=l;l=((l|0)<0)<<31>>31}else{m=0;l=0}Ft(f,31944,m,l);break a}case 27:{if((R|0)!=0?(fi(R,u)|0)==0:0){D=u;Lc(c[D>>2]|0,c[D+4>>2]|0)|0}C=(Hc()|0)==0;D=9032;Ft(f,31976,C?c[D>>2]|0:-1,C?c[D+4>>2]|0:-1);break a}case 33:{if((R|0)!=0?(B=(fi(R,p)|0)==0,D=p,C=c[D+4>>2]|0,B&((C|0)>-1|(C|0)==-1&(c[D>>2]|0)>>>0>4294967295)):0)c[T+132>>2]=0;D=c[T+132>>2]|0;Ft(f,31992,D,((D|0)<0)<<31>>31);break a}case 12:{g=c[P>>2]|0;E=g+1|0;F=g+5|0;G=g+6|0;c[P>>2]=G;H=Kq(f)|0;eq(H,4);if((((a[(c[H>>2]|0)+65>>0]|0)==0?(Tg(c[H+16>>2]|0,31232,-1,1,0)|0,(a[(c[H>>2]|0)+65>>0]|0)==0):0)?(Tg((c[H+16>>2]|0)+40|0,20456,-1,1,0)|0,(a[(c[H>>2]|0)+65>>0]|0)==0):0)?(Tg((c[H+16>>2]|0)+80|0,31432,-1,1,0)|0,(a[(c[H>>2]|0)+65>>0]|0)==0):0)Tg((c[H+16>>2]|0)+120|0,31440,-1,1,0)|0;wr(f,N);t=c[(c[(c[O>>2]|0)+(N<<4)+12>>2]|0)+16>>2]|0;if(!t)break a;r=(R|0)==0;h=f+68|0;s=H+32|0;A=H+4|0;B=H+24|0;C=g+2|0;D=g+3|0;x=g+4|0;q=f+8|0;while(1){if(r){y=c[t>>2]|0;z=c[t+8>>2]|0}else{y=0;z=oh(f,0,R,I)|0}if((z|0)!=0?(J=z+16|0,(c[J>>2]|0)!=0):0){cs(f,N,c[z+32>>2]|0,0,c[z>>2]|0);g=(b[z+38>>1]|0)+G|0;if((g|0)>(c[P>>2]|0))c[P>>2]=g;Mq(f,0,N,z,54);t=c[z>>2]|0;th(H,sh(H,97,0,E,0)|0,t,0);t=c[J>>2]|0;if(!t)g=1;else{g=1;do{l=Wh(T,c[t+8>>2]|0,I)|0;do if(l){c[L>>2]=0;cs(f,N,c[l+32>>2]|0,0,c[l>>2]|0);if(It(f,l,t,L,0)|0)break a;m=c[L>>2]|0;if(!m){Mq(f,g,N,l,54);break}else{sh(H,54,g,c[m+40>>2]|0,N)|0;w=c[q>>2]|0;th(w,-1,ds(f,m)|0,-6);break}}while(0);g=g+1|0;t=c[t+4>>2]|0}while((t|0)!=0)}if((c[h>>2]|0)<(g|0))c[h>>2]=g;p=sh(H,108,0,0,0)|0;g=c[J>>2]|0;if(g){w=z+36|0;v=1;while(1){u=g+8|0;t=Wh(T,c[u>>2]|0,I)|0;c[L>>2]=0;c[K>>2]=0;o=(t|0)!=0;do if(o){It(f,t,g,L,K)|0;l=c[L>>2]|0;m=ts(H)|0;if(!(o&(l|0)==0)){t=m;M=306;break}t=c[g+36>>2]|0;if((t|0)==(b[w>>1]|0))sh(H,103,0,G,0)|0;else{sh(H,47,0,t,G)|0;Jt(H,z,t,G);sh(H,76,G,m,0)|0;sh(H,38,G,(c[s>>2]|0)+3|0,0)|0}sh(H,70,v,0,G)|0;sh(H,16,0,m,0)|0;t=c[s>>2]|0;if(t>>>0>1)c[(c[A>>2]|0)+((t+-2|0)*20|0)+8>>2]=t;c[(c[B>>2]|0)+88>>2]=t+-1;t=m}else{t=ts(H)|0;l=0;M=306}while(0);do if((M|0)==306){M=0;n=g+20|0;m=c[n>>2]|0;if((m|0)>0){k=0;do{m=c[K>>2]|0;if(!m)m=g+(k<<3)+36|0;else m=m+(k<<2)|0;O=k+G|0;jt(H,z,0,c[m>>2]|0,O);sh(H,76,O,t,0)|0;k=k+1|0;m=c[n>>2]|0}while((k|0)<(m|0))}if(!o)break;k=kt(H,l)|0;l=c[n>>2]|0;th(H,sh(H,49,G,m,F)|0,k,l);th(H,sh(H,69,v,t,F)|0,0,-14)}while(0);sh(H,103,0,C,0)|0;l=c[u>>2]|0;th(H,sh(H,97,0,D,0)|0,l,0);sh(H,25,v+-1|0,x,0)|0;sh(H,35,E,4,0)|0;l=c[B>>2]|0;m=~t;do if((t|0)<0){t=c[l+112>>2]|0;if(!t)break;c[t+(m<<2)>>2]=c[s>>2]}while(0);c[l+88>>2]=(c[s>>2]|0)+-1;ig(T,c[K>>2]|0);g=c[g+4>>2]|0;if(!g)break;else v=v+1|0}}sh(H,9,0,p+1|0,0)|0;g=c[s>>2]|0;if(g>>>0>p>>>0)c[(c[A>>2]|0)+(p*20|0)+8>>2]=g;c[(c[B>>2]|0)+88>>2]=g+-1}if(!y)break;else t=y}break}case 10:{n=1<<N;C=Q+96|0;c[C>>2]=c[C>>2]|n;if(R){c[D>>2]=0;zn(R,D)|0;k=c[D>>2]|0;if((k|0)<=-1)k=(k|0)==-2147483648?2147483647:0-k|0;D=c[f+408>>2]|0;wr(f,N);D=((D|0)==0?f:D)+328|0;c[D>>2]=c[D>>2]|n;sh(Q,25,k,1,0)|0;sh(Q,52,N,3,1)|0;c[(c[z+(N<<4)+12>>2]|0)+80>>2]=k;lq(c[z+(N<<4)+4>>2]|0,k);break a}eq(Q,1);if(!(a[(c[Q>>2]|0)+65>>0]|0))Tg(c[Q+16>>2]|0,30848,-1,1,0)|0;c[P>>2]=(c[P>>2]|0)+2;k=uh(Q,9,30808)|0;l=c[Q+32>>2]|0;if(l>>>0>k>>>0)c[(c[Q+4>>2]|0)+(k*20|0)+4>>2]=N;m=k+1|0;if(l>>>0>m>>>0)c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=N;m=k+6|0;if(l>>>0<=m>>>0)break a;c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=2e3;break a}case 1:{k=c[z+(N<<4)+4>>2]|0;if(!R){m=c[k+4>>2]|0;c[m+4>>2]=c[k>>2];if(!(a[m+17>>0]|0)){m=0;l=0}else{l=(a[m+18>>0]|0)==0;m=l?1:2;l=l?0:0}Ft(f,30976,m,l);break a}if($c(R,32192)|0)if($c(R,31880)|0)if(!($c(R,32200)|0))m=2;else{c[D>>2]=0;zn(R,D)|0;m=c[D>>2]|0;m=m>>>0<3?m&255:0}else m=1;else m=0;a[T+67>>0]=m;o=m+-1|0;if(!((rn(k,m)|0)==0&o>>>0<2))break a;l=uh(Q,6,30992)|0;n=c[Q+32>>2]|0;if(n>>>0>l>>>0)c[(c[Q+4>>2]|0)+(l*20|0)+4>>2]=N;k=l+1|0;if(n>>>0>k>>>0)c[(c[Q+4>>2]|0)+(k*20|0)+4>>2]=N;k=l+2|0;m=l+4|0;if(n>>>0>k>>>0)c[(c[Q+4>>2]|0)+(k*20|0)+8>>2]=m;if(n>>>0>m>>>0)c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=o;m=l+5|0;if(n>>>0>m>>>0)c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=N;D=Q+96|0;c[D>>2]=c[D>>2]|1<<N;break a}case 14:{if(!((R|0)!=0?(D=(zn(R,q)|0)==0,m=c[q>>2]|0,!(D|(m|0)<1)):0)){c[q>>2]=2147483647;m=2147483647}l=c[f+408>>2]|0;wr(f,N);l=((l|0)==0?f:l)+328|0;c[l>>2]=c[l>>2]|1<<N;sh(Q,25,m,1,0)|0;m=sh(Q,143,N,0,0)|0;sh(Q,35,1,0,0)|0;sh(Q,37,1,-1,0)|0;sh(Q,137,1,m,0)|0;l=c[Q+32>>2]|0;if(l>>>0>m>>>0)c[(c[Q+4>>2]|0)+(m*20|0)+8>>2]=l;c[(c[Q+24>>2]|0)+88>>2]=l+-1;break a}case 18:{eq(Q,1);if(!(a[(c[Q>>2]|0)+65>>0]|0))Tg(c[Q+16>>2]|0,30936,-1,1,0)|0;f:do if(R){k=R;while(1)if(!(a[k>>0]|0))break;else k=k+1|0;m=k-R&1073741823;k=0;while(1){if(!(Bc(R,c[32216+(k<<2)>>2]|0,m)|0))break;k=k+1|0;if((k|0)==6){M=91;break f}}if((k|0)!=-1)n=N;else M=91}else M=91;while(0);if((M|0)==91)if(!(c[y>>2]|0)){c[y>>2]=1;k=-1;n=0}else{k=-1;n=N}m=c[T+20>>2]|0;if((m|0)>0){l=Q+96|0;do{m=m+-1|0;do if(c[(c[O>>2]|0)+(m<<4)+4>>2]|0){if((m|0)!=(n|0)?(c[y>>2]|0)!=0:0)break;c[l>>2]=c[l>>2]|1<<m;sh(Q,12,m,1,k)|0}while(0)}while((m|0)>0)}sh(Q,35,1,1,0)|0;break a}default:{if(!R)l=c[T+492>>2]|0;else{c[D>>2]=0;zn(R,D)|0;l=c[D>>2]|0;D=(l|0)>0;l=D?l:0;c[T+444>>2]=D?74:0;c[T+448>>2]=D?T:0;c[o>>2]=0;c[T+492>>2]=l}Ft(f,31968,l,((l|0)<0)<<31>>31);break a}}while(0)}else{k=c[n>>2]|0;if(k){c[D>>2]=k;ph(f,10344,D);Sc(c[n>>2]|0)}D=f+64|0;c[D>>2]=(c[D>>2]|0)+1;c[f+12>>2]=g;break}}while(0);ig(T,S);ig(T,R)}}while(0);i=U;return}function Cr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;a:do if(!d)d=0;else{f=d;while(1){if((a[f>>0]|0)==-121){d=c[b>>2]|0;if(!(a[(c[d>>2]|0)+145>>0]|0))break;a[f>>0]=101}d=c[f+4>>2]|0;if(d&16384){d=0;break a}e=f+20|0;if(!(d&2048)){if(Dr(b,c[e>>2]|0)|0){d=1;break a}}else if(br(b,c[e>>2]|0)|0){d=1;break a}if(Cr(b,c[f+16>>2]|0)|0){d=1;break a}f=c[f+12>>2]|0;if(!f){d=0;break a}}c[g>>2]=c[b+16>>2];ph(d,29984,g);d=1}while(0);i=h;return d|0}function Dr(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((b|0)!=0?(c[b>>2]|0)>0:0){d=0;e=c[b+4>>2]|0;while(1){if(Cr(a,c[e>>2]|0)|0){d=1;break a}d=d+1|0;if((d|0)>=(c[b>>2]|0)){d=0;break}else e=e+20|0}}else d=0;while(0);return d|0}function Er(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;th(a,sh(a,122,b,0,0)|0,d,-1);d=c[(c[a>>2]|0)+20>>2]|0;if((d|0)>0){e=a+96|0;b=c[e>>2]|0;a=0;do{b=b|1<<a;a=a+1|0}while((a|0)<(d|0));c[e>>2]=b}return}function Fr(a,d){a=a|0;d=d|0;var e=0,f=0;e=d+8|0;f=Qr(a,0,e)|0;d=d+24|0;gg(c[a>>2]|0,c[d>>2]|0);c[d>>2]=f;if(f){d=f+40|0;b[d>>1]=(b[d>>1]|0)+1<<16>>16}e=(Nt(a,e)|0)==0;return (e?f:0)|0}function Gr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;a:do if((b|0)!=0?(f=c[a+12>>2]|0,(c[b>>2]|0)>0):0){g=a+8|0;h=a+4|0;k=0;l=b+8|0;while(1){if(!(c[g>>2]|0)){e=l+4|0;d=c[e>>2]|0;if((d|0)!=0?($c(d,f)|0)!=0:0)break;ig(c[c[a>>2]>>2]|0,d);c[e>>2]=0;c[l>>2]=c[h>>2]}if(br(a,c[l+20>>2]|0)|0){d=1;break a}if(Cr(a,c[l+44>>2]|0)|0){d=1;break a}k=k+1|0;if((k|0)>=(c[b>>2]|0)){d=0;break a}else l=l+72|0}b=c[a>>2]|0;l=c[a+20>>2]|0;c[m>>2]=c[a+16>>2];c[m+4>>2]=l;c[m+8>>2]=d;ph(b,29936,m);d=1}else d=0;while(0);i=n;return d|0}function Hr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;g=c[b>>2]|0;if((((a[g+145>>0]|0)==0?(a[b+18>>0]|0)==0:0)?(c[g+24>>2]&2048|0)==0:0)?(Bc(d,25568,7)|0)==0:0){c[e>>2]=d;ph(b,28440,e);b=1}else b=0;i=f;return b|0}function Ir(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=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;v=i;i=i+16|0;if((i|0)>=(j|0))ba();u=v;do if(d){r=e&1;t=(f|0)!=0;if(t){g=c[f>>2]|0;p=32768}else{g=Ot(d,e)|0;g=ih(b,g,((g|0)<0)<<31>>31)|0;p=0}c[u>>2]=g;if(g){l=(r|0)==0;if(!l)if(!(c[d+12>>2]|0))o=(c[d+20>>2]|0)==0?16396:8220;else o=8220;else o=48;q=o&60;s=d+4|0;m=c[s>>2]|0;if((m&1024|0)==0?(h=c[d+8>>2]|0,(h|0)!=0):0){k=h;while(1)if(!(a[k>>0]|0))break;else k=k+1|0;n=(k-h&1073741823)+1|0}else n=0;if(l){if(!(m&16384))k=(m&8192|0)==0?48:28;else k=12;gw(g|0,d|0,k|0)|0;bw(g+k|0,0,48-k|0)|0}else gw(g|0,d|0,q|0)|0;m=g+4|0;h=o&24576|p|c[m>>2]&-122881;c[m>>2]=h;if(n){h=g+q|0;c[g+8>>2]=h;gw(h|0,c[d+8>>2]|0,n|0)|0;h=c[m>>2]|0}k=c[s>>2]|0;do if(!((h|k)&16384)){h=d+20|0;if(!(k&2048)){c[g+20>>2]=Lr(b,c[h>>2]|0,r)|0;break}else{c[g+20>>2]=cr(b,c[h>>2]|0,r)|0;break}}while(0);h=c[m>>2]|0;if(!(h&24576)){if(c[s>>2]&16384)break;c[g+12>>2]=Ir(b,c[d+12>>2]|0,0,0)|0;c[g+16>>2]=Ir(b,c[d+16>>2]|0,0,0)|0;break}r=Pt(d,e)|0;c[u>>2]=(c[u>>2]|0)+r;if(h&8192){c[g+12>>2]=Ir(b,c[d+12>>2]|0,1,u)|0;c[g+16>>2]=Ir(b,c[d+16>>2]|0,1,u)|0}if(t)c[f>>2]=c[u>>2]}}else g=0;while(0);i=v;return g|0}function Jr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(d=ih(a,8,0)|0,(d|0)!=0):0){g=b+4|0;c[d+4>>2]=c[g>>2];e=ih(a,c[g>>2]<<3,0)|0;c[d>>2]=e;if(!e){ig(a,d);d=0;break}if((c[g>>2]|0)>0){f=0;while(1){h=c[b>>2]|0;c[e+(f<<3)>>2]=gh(a,c[h+(f<<3)>>2]|0)|0;c[e+(f<<3)+4>>2]=c[h+(f<<3)+4>>2];f=f+1|0;if((f|0)>=(c[g>>2]|0))break a;e=c[d>>2]|0}}}else d=0;while(0);return d|0}function Kr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=e+4|0;g=(c[f>>2]|0)+40|0;b=ih(b,g,0)|0;if(b){bw(b|0,0,g|0)|0;g=b+40|0;gw(g|0,c[e>>2]|0,c[f>>2]|0)|0;c[b+12>>2]=g;c[b+16>>2]=c[f>>2];a[b>>0]=d}return b|0}function Lr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;do if((d|0)!=0?(f=ih(b,8,0)|0,(f|0)!=0):0){g=c[d>>2]|0;c[f>>2]=g;if(!(e&1)){h=c[d>>2]|0;g=1;while(1)if((g|0)<(h|0))g=g<<1;else break}g=ih(b,g*20|0,0)|0;c[f+4>>2]=g;if(!g){ig(b,f);f=0;break}if((c[d>>2]|0)>0){i=0;h=c[d+4>>2]|0;while(1){c[g>>2]=Ir(b,c[h>>2]|0,e,0)|0;c[g+4>>2]=gh(b,c[h+4>>2]|0)|0;c[g+8>>2]=gh(b,c[h+8>>2]|0)|0;a[g+12>>0]=a[h+12>>0]|0;j=g+13|0;k=a[j>>0]|0;a[j>>0]=k&-2;a[j>>0]=a[h+13>>0]&2|k&-4;c[g+16>>2]=c[h+16>>2];i=i+1|0;if((i|0)>=(c[d>>2]|0))break;else{g=g+20|0;h=h+20|0}}}}else f=0;while(0);return f|0}function Mr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();k=o;l=c[a>>2]|0;f=c[b+20>>2]|0;a:do if(f){e=c[l+20>>2]|0;if((e|0)>0){d=c[l+16>>2]|0;h=0;while(1){g=h+1|0;if((c[d+(h<<4)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=Zm((c[b+24>>2]|0)+8|0,c[b+4>>2]|0,k)|0;if(!d)f=0;else f=c[d+8>>2]|0;d=c[(c[l+16>>2]|0)+(g<<4)>>2]|0;e=(g|0)==1;if((((Oq(a,e?14:16,c[b>>2]|0,c[f>>2]|0,d)|0)==0?(Oq(a,9,e?13184:13208,0,d)|0)==0:0)?(m=Kq(a)|0,(m|0)!=0):0)?(n=c[a+408>>2]|0,wr(a,g),n=((n|0)==0?a:n)+328|0,c[n>>2]=c[n>>2]|1<<g,fs(a,g),n=uh(m,9,29624)|0,th(m,n+1|0,c[b>>2]|0,0),th(m,n+4|0,10720,-2),zr(a,g),sh(m,61,0,0,0)|0,n=c[b>>2]|0,th(m,sh(m,126,g,0,0)|0,n,0),n=a+72|0,(c[n>>2]|0)<3):0)c[n>>2]=3;i=o;return}function Nr(d,e,f,g,h,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))ba();m=s;q=c[d>>2]|0;c[m+0>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;c[m+16>>2]=0;c[m+20>>2]=0;c[m+24>>2]=0;c[m+28>>2]=0;c[m>>2]=d;do if(h)if((a[h>>0]|0)!=27)if(!(hs(m,h)|0)){r=5;break}else{r=13;break}else{a[h>>0]=97;r=5;break}else r=5;while(0);a:do if((r|0)==5){do if(k)if((a[k>>0]|0)!=27)if(!(hs(m,k)|0))break;else{r=13;break a}else{a[k>>0]=97;break}while(0);do if(l)if((a[l>>0]|0)!=27)if(!(hs(m,l)|0))break;else{r=13;break a}else{a[l>>0]=97;break}while(0);if(g){if((a[g>>0]|0)==97)g=c[g+8>>2]|0;else g=0;if(Oq(d,e,g,0,0)|0)break}p=Kq(d)|0;m=d+60|0;g=c[m>>2]|0;n=d+56|0;o=c[n>>2]|0;if((o|0)<4){o=d+72|0;g=c[o>>2]|0;c[o>>2]=g+4;g=g+1|0}else{c[m>>2]=g+4;c[n>>2]=o+-4}Nq(d,h,g);Nq(d,k,g+1|0);Nq(d,l,g+2|0);if(p){g=g+3|0;sh(p,1,0,g-(b[f>>1]|0)|0,g)|0;g=c[p+4>>2]|0;if(g)a[g+(((c[p+32>>2]|0)+-1|0)*20|0)+3>>0]=b[f>>1];th(p,-1,f,-5);sh(p,144,(e|0)==24&1,0,0)|0}}while(0);if((r|0)==13){f=d+64|0;c[f>>2]=(c[f>>2]|0)+1}Ck(q,h);Ck(q,k);Ck(q,l);i=s;return}function Or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))baba();f=h;g=c[a>>2]|0;if(!(Cn(a)|0)){do if(!b){b=g+20|0;e=c[b>>2]|0;if((e|0)>0){d=0;do{if((d|0)!=1){St(a,d);e=c[b>>2]|0}d=d+1|0}while((d|0)<(e|0))}}else{if(c[d+4>>2]|0){e=ar(a,b,d,f)|0;if((e|0)<=-1)break;e=c[(c[g+16>>2]|0)+(e<<4)>>2]|0;b=Sq(g,c[f>>2]|0)|0;if(!b)break;d=Zp(g,b,e)|0;if(!d){e=oh(a,0,b,e)|0;if(e)Tt(a,e,0)}else Tt(a,c[d+12>>2]|0,d);ig(g,b);break}d=Sq(g,b)|0;e=Rh(g,d)|0;ig(g,d);if((e|0)>-1){St(a,e);break}d=Sq(g,b)|0;if(d){e=Zp(g,d,0)|0;if(!e){e=oh(a,0,d,0)|0;if(e)Tt(a,e,0)}else Tt(a,c[e+12>>2]|0,e);ig(g,d)}}while(0);e=Kq(a)|0;if(e)sh(e,144,0,0,0)|0}i=h;return}function Qr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[d>>2]|0;if(!f)e=d+4|0;else{i=c[a>>2]|0;g=c[i+20>>2]|0;i=c[i+16>>2]|0;a:do if((g|0)>0){h=0;while(1){e=h+1|0;if((c[i+(h<<4)+12>>2]|0)==(f|0)){e=h;break a}if((e|0)<(g|0))h=e;else break}}else e=0;while(0);e=i+(e<<4)|0}return oh(a,b,c[d+8>>2]|0,c[e>>2]|0)|0}function Rr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;if(d){e=d;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;if((e-d&1073741823)>>>0>6?(Bc(d,25568,7)|0)==0:0){c[f>>2]=d;ph(b,25576,f);e=1}else e=0}else e=0;i=g;return e|0}function Sr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;if(!b){c[e>>2]=d;a=qh(a,25992,e)|0}else{c[e>>2]=b;c[e+4>>2]=d;e=qh(a,26e3,e)|0;ig(a,b);a=e}i=f;return a|0}function Tr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;e=c[a>>2]|0;f=c[(c[e+16>>2]|0)+28>>2]|0;if((c[b+68>>2]|0)!=(f|0)?(d=ws(a,b)|0,(d|0)!=0):0){b=d;d=0;do{if((c[b+20>>2]|0)==(f|0))d=Sr(e,d,c[b>>2]|0)|0;b=c[b+32>>2]|0}while((b|0)!=0);if(d){b=c[a>>2]|0;c[g>>2]=d;b=qh(b,25968,g)|0;ig(c[a>>2]|0,d);d=b}else d=0}else d=0;i=h;return d|0}function Ur(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();n=q;o=Kq(a)|0;if(o){e=c[a>>2]|0;h=c[b+68>>2]|0;a:do if(h){k=c[e+20>>2]|0;if((k|0)>0){f=c[e+16>>2]|0;g=0;while(1){e=g+1|0;if((c[f+(g<<4)+12>>2]|0)==(h|0))break a;if((e|0)<(k|0))g=e;else{g=e;break}}}else g=0}else g=-1e6;while(0);e=ws(a,b)|0;if(e)do{f=c[a>>2]|0;l=c[e+20>>2]|0;b:do if(l){m=c[f+20>>2]|0;if((m|0)>0){k=c[f+16>>2]|0;h=0;while(1){f=h+1|0;if((c[k+(h<<4)+12>>2]|0)==(l|0)){f=h;break b}if((f|0)<(m|0))h=f;else break}}else f=0}else f=-1e6;while(0);m=c[e>>2]|0;th(o,sh(o,126,f,0,0)|0,m,0);e=c[e+32>>2]|0}while((e|0)!=0);e=c[b>>2]|0;th(o,sh(o,124,g,0,0)|0,e,0);e=c[a>>2]|0;c[n>>2]=d;e=qh(e,25952,n)|0;if((e|0)!=0?(Er(o,g,e),p=Tr(a,b)|0,(p|0)!=0):0)Er(o,1,p)}i=q;return}
13 function ch(f){f=f|0;var g=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.0,z=0,A=0.0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0,lb=0,mb=0,nb=0,ob=0,pb=0,qb=0,rb=0,sb=0,tb=0,ub=0,vb=0,wb=0,xb=0,yb=0,zb=0,Ab=0,Bb=0,Cb=0,Db=0,Eb=0,Fb=0,Gb=0,Hb=0,Ib=0,Jb=0,Kb=0,Lb=0,Mb=0,Nb=0,Ob=0,Pb=0,Qb=0,Rb=0,Sb=0,Tb=0,Ub=0,Vb=0,Wb=0,Xb=0,_b=0,$b=0,ac=0,bc=0,cc=0,dc=0,ec=0,gc=0,jc=0,kc=0,mc=0,oc=0,qc=0,rc=0,sc=0,tc=0,uc=0,vc=0,wc=0,xc=0,yc=0,zc=0,Ac=0,Bc=0,Cc=0,Dc=0,Ec=0,Fc=0,Gc=0,Hc=0,Ic=0,Jc=0,Kc=0,Lc=0,Mc=0,Nc=0,Oc=0,Pc=0,Qc=0,Rc=0,Tc=0,Uc=0,Vc=0,Wc=0,Xc=0,Yc=0,ad=0,bd=0,ed=0,fd=0,gd=0,hd=0,id=0,jd=0,kd=0,ld=0,md=0,nd=0,od=0,pd=0,qd=0,rd=0,sd=0,td=0,ud=0,vd=0,wd=0,xd=0,yd=0,zd=0,Ad=0,Bd=0,Cd=0,Dd=0,Ed=0,Fd=0,Gd=0,Hd=0,Id=0,Jd=0,Kd=0,Ld=0,Md=0,Nd=0,Od=0,Pd=0,Qd=0,Rd=0,Sd=0,Td=0,Ud=0,Vd=0,Wd=0,Xd=0,Yd=0,Zd=0,_d=0,$d=0,ae=0,be=0,ce=0,de=0,ee=0,fe=0,ge=0,he=0,ie=0,je=0,ke=0,le=0,me=0;ke=i;i=i+1040|0;if((i|0)>=(j|0))ba();ge=ke+400|0;Qc=ke+792|0;fd=ke+392|0;ad=ke+788|0;Pd=ke+320|0;jd=ke+784|0;md=ke+780|0;nd=ke+280|0;Kd=ke+680|0;Yc=ke+240|0;Nd=ke+200|0;Xc=ke+676|0;Uc=ke+672|0;Ld=ke+160|0;Rc=ke+644|0;qd=ke+152|0;Gd=ke+112|0;hd=ke+640|0;Id=ke+636|0;Vc=ke+632|0;rd=ke+628|0;xd=ke+624|0;td=ke+604|0;yd=ke+600|0;ld=ke+596|0;ud=ke+576|0;Pc=ke+840|0;zd=ke+572|0;Md=ke+104|0;Ad=ke+568|0;bd=ke+564|0;ed=ke+96|0;Od=ke+88|0;Bd=ke+560|0;Cd=ke+556|0;Dd=ke+552|0;vd=ke+532|0;wd=ke+512|0;gd=ke+508|0;sd=ke+504|0;Wc=ke+488|0;Jd=ke+48|0;Tc=ke+456|0;Oc=ke+444|0;Hd=ke+8|0;pd=ke+440|0;Fd=ke+412|0;Ed=ke;wc=f+4|0;o=c[wc>>2]|0;he=c[f>>2]|0;Gc=a[he+62>>0]|0;Kc=f+8|0;v=c[Kc>>2]|0;je=he+32|0;l=je;m=c[l>>2]|0;l=c[l+4>>2]|0;ie=f+80|0;a:do if((c[ie>>2]|0)==7){u=he+65|0;v=f+44|0;n=m;g=0;p=0;m=0;ee=1317}else{c[ie>>2]=0;$d=f+136|0;c[$d>>2]=0;c[$d+4>>2]=0;$d=f+20|0;c[$d>>2]=0;c[he+452>>2]=0;zc=he+240|0;b:do if(!(c[zc>>2]|0)){Zd=he+292|0;if(c[Zd>>2]|0){n=c[f+124>>2]|0;g=he+300|0;u=c[g>>2]|0;if(!n)vc=g;else{vc=g;u=(n>>>0)%(u>>>0)|0}}else{vc=he+300|0;u=0}de=f+76|0;ce=he+65|0;Vd=he+296|0;pb=f+176|0;qb=f+184|0;rb=f+92|0;sb=he+80|0;tb=he+84|0;ub=Gc&255;vb=Gc<<24>>24==1;wb=he+88|0;xb=f+60|0;Wd=f+144|0;be=f+86|0;fe=f+44|0;yb=f+12|0;zb=Rc+4|0;Ab=Rc+16|0;Bb=Rc+12|0;Cb=Rc+25|0;Db=Rc+20|0;Eb=f+200|0;Fb=f+56|0;Xd=f+72|0;Gb=Gd+16|0;Hb=Gd+8|0;Ib=Gd+24|0;Jb=f+87|0;Yd=he+156|0;Kb=he+500|0;Lb=he+496|0;ae=he+63|0;Mb=he+488|0;Nb=he+504|0;Ob=he+512|0;Pb=he+70|0;Qb=he+24|0;Rb=he+20|0;Td=he+16|0;Sb=he+4|0;Ud=f+88|0;Tb=f+104|0;Ub=f+152|0;Vb=f+160|0;Wb=he+152|0;Xb=he+64|0;_b=td+4|0;$b=td+6|0;ac=td+8|0;bc=ud+4|0;cc=ud+8|0;dc=he+212|0;ec=he+208|0;gc=f+116|0;jc=vd+4|0;kc=vd+6|0;mc=vd+8|0;oc=Yc+8|0;qc=Yc+32|0;rc=Yc+24|0;sc=Yc+16|0;tc=Yc+12|0;uc=wd+4|0;V=wd+6|0;W=wd+8|0;X=nd+8|0;Y=nd+32|0;aa=nd+24|0;ca=nd+12|0;da=nd+16|0;ea=he+164|0;fa=Wc+8|0;ga=Wc+4|0;ha=he+145|0;ia=Wc+12|0;ja=Pd+4|0;ka=Pd+12|0;la=Pd+16|0;ma=Pd+20|0;na=Pd+24|0;oa=Pd+28|0;pa=Pd+8|0;qa=Pd+40|0;ra=Pd+44|0;sa=Pd+48|0;ta=Pd+52|0;ua=Pd+56|0;va=Pd+60|0;wa=Pd+64|0;xa=Pd+65|0;ya=he+128|0;za=f+28|0;Aa=f+36|0;Bac|0)){Q=v;w=o;R=T;S=U;break q}w=c[w+4>>2]|0;if(!w){p=n;break}}}else p=n;n=c[qb>>2]|0;if((n|0)>=(c[ya>>2]|0)){q=t;ee=998;break c}B=v+(F*40|0)+8|0;if(!(b[B>>1]&64)){z=s+12|0;x=c[z>>2]|0;w=x+(c[s+8>>2]|0)|0;o=s+16|0;x=(x<<2)+80+(c[o>>2]|0)+(w*40|0)|0;G=ih(he,x,((x|0)<0)<<31>>31)|0;if(!G){u=ce;v=fe;n=m;m=t;ee=1317;break a}bw(G|0,0,x|0)|0;if(!((b[B>>1]&9312)==0?(c[v+(F*40|0)+24>>2]|0)==0:0))Mg(J);b[B>>1]=64;c[J>>2]=G;c[G>>2]=f;c[G+60>>2]=w;c[G+64>>2]=c[z>>2];c[G+44>>2]=p;c[G+16>>2]=c[Kc>>2];c[G+52>>2]=c[za>>2];c[G+24>>2]=c[Fb>>2];c[G+40>>2]=c[Aa>>2];c[G+8>>2]=c[wc>>2];c[G+48>>2]=c[Ba>>2];c[G+28>>2]=c[s+20>>2];c[G+20>>2]=c[Eb>>2];c[G+56>>2]=c[Ca>>2];v=G+80|0;n=v+(w*40|0)|0;if((v|0)!=(n|0))do{b[v+8>>1]=128;c[v+32>>2]=he;v=v+40|0}while((v|0)!=(n|0));n=c[qb>>2]|0;v=G}else{o=s+16|0;v=c[J>>2]|0}c[qb>>2]=n+1;c[v+4>>2]=c[pb>>2];Q=v+32|0;c[Q>>2]=m;c[Q+4>>2]=l;c[v+68>>2]=c[rb>>2];c[v+72>>2]=c[(c[f>>2]|0)+80>>2];c[rb>>2]=0;c[pb>>2]=v;Q=v+40|0;c[Kc>>2]=Q;R=c[v+60>>2]|0;c[za>>2]=R;S=c[v+64>>2]&65535;c[Aa>>2]=S;R=Q+((R+1|0)*40|0)|0;c[Fb>>2]=R;w=c[s>>2]|0;c[wc>>2]=w;c[Ba
14 function Av(e){e=e|0;var 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;A=e+20|0;r=e+14|0;f=a[r>>0]|0;w=e+13|0;g=a[w>>0]|0;a:do if((f&255)>(g&255))f=0;else{y=e+4|0;z=e+16|0;s=e+8|0;t=e+12|0;u=e+24|0;v=e+28|0;i=f&255;j=c[y>>2]|0;h=c[A>>2]|0;b:while(1){q=c[e+(i+-2<<2)+24>>2]|0;p=c[e+(i+-1<<2)+24>>2]|0;if(j){while(1){o=j+12|0;if((h|0)<(c[o>>2]|0)){g=h;f=(c[j+20>>2]|0)+(h*48|0)|0;while(1){do if((c[f+8>>2]|0)==(q|0)?(c[f+12>>2]|0)==(p|0):0){if((d[r>>0]|0)>=3?(c[(c[f>>2]|0)+4>>2]&1|0)!=0:0)break;n=f+18|0;h=b[n>>1]|0;if((h&1024)!=0?(x=a[w>>0]|0,(x&255)<22):0){i=c[(c[f>>2]|0)+16>>2]|0;c:do if(!i)i=0;else while(1){k=c[i+4>>2]|0;if(!(k&4096))break c;if(!(k&262144))i=i+12|0;else i=c[(c[i+20>>2]|0)+4>>2]|0;i=c[i>>2]|0;if(!i){i=0;break}}while(0);d:do if(!(x<<24>>24)){m=0;k=0}else{l=c[i+28>>2]|0;m=i+32|0;k=0;while(1){if((c[e+(k<<2)+24>>2]|0)==(l|0)?(c[e+((k|1)<<2)+24>>2]|0)==(b[m>>1]|0):0){m=x;break d}k=k+2|0;if((k|0)>=(x&255|0)){m=x;break}}}while(0);if((k|0)==(m&255|0)){c[e+(k<<2)+24>>2]=c[i+28>>2];c[e+((k|1)<<2)+24>>2]=b[i+32>>1];a[w>>0]=(d[w>>0]|0)+2}}i=h&65535;if(i&c[z>>2]){if((c[s>>2]|0)!=0&(i&128|0)==0){l=c[c[j>>2]>>2]|0;k=c[f>>2]|0;i=a[t>>0]|0;h=(jv(k)|0)<<24>>24;if((h|0)==66){if(i<<24>>24!=66)break}else if((h|0)!=65?i<<24>>24<=66:0)break;h=Ku(l,c[k+12>>2]|0,c[k+16>>2]|0)|0;if(!h)h=c[(c[l>>2]|0)+8>>2]|0;if($c(c[h>>2]|0,c[s>>2]|0)|0)break;h=b[n>>1]|0}if(!(h&2))break b;h=c[(c[f>>2]|0)+16>>2]|0;if((a[h>>0]|0)!=-102)break b;if((c[h+28>>2]|0)!=(c[u>>2]|0))break b;if((b[h+32>>1]|0)!=(c[v>>2]|0))break b}}while(0);g=g+1|0;if((g|0)>=(c[o>>2]|0))break;else f=f+48|0}g=c[y>>2]|0}else g=j;j=c[g+4>>2]|0;c[y>>2]=j;if(!j)break;else h=0}f=a[r>>0]|0;g=a[w>>0]|0}j=c[e>>2]|0;c[y>>2]=j;h=(f&255)+2|0;f=h&255;a[r>>0]=f;if((f&255)>(g&255)){f=0;break a}else{i=h&255;h=0}}c[A>>2]=g+1}while(0);return f|0}function Bv(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=c[d>>2]|0;l=c[c[g>>2]>>2]|0;d=c[d+16>>2]|0;a:do if(!d){g=g+16|0;i=c[g>>2]|0;k=f+36|0;if((c[k>>2]&512|0)!=0&(i|0)!=0){d=f+20|0;j=f+22|0;h=a[f+16>>0]|0;do{do if((a[i+16>>0]|0)==h<<24>>24?(c[i+36>>2]&512|0)!=0:0){if(Pv(i,f)|0){b[d>>1]=b[i+20>>1]|0;b[j>>1]=(e[i+22>>1]|0)+65535;break}if(Pv(f,i)|0){b[d>>1]=b[i+20>>1]|0;b[j>>1]=(e[i+22>>1]|0)+1}}while(0);i=c[i+52>>2]|0}while((i|0)!=0)}d=Qv(g,f)|0;if(d){g=c[d>>2]|0;b:do if(g){d=g+52|0;if(c[d>>2]|0)do{d=Qv(d,f)|0;if(!d)break b;h=c[d>>2]|0;if(!h)break b;c[d>>2]=c[h+52>>2];Fu(l,h);ig(l,h)}while((c[d>>2]|0)!=0)}else{g=ih(l,72,0)|0;c[d>>2]=g;if(!g){d=7;break a}c[g+48>>2]=g+56;b[g+40>>1]=0;b[g+44>>1]=3;c[g+36>>2]=0;c[g+52>>2]=0}while(0);Hv(l,g);do if(!(Ju(l,g,e[f+40>>1]|0)|0)){h=g+0|0;d=f+0|0;i=h+44|0;do{c[h>>2]=c[d>>2];h=h+4|0;d=d+4|0}while((h|0)<(i|0));gw(c[g+48>>2]|0,c[f+48>>2]|0,e[g+40>>1]<<2|0)|0;d=c[k>>2]|0;if(d&1024){a[f+28>>0]=0;break}if(d&16384)c[f+28>>2]=0}else{d=g+24|0;c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0}while(0);if(((c[g+36>>2]&1024|0)==0?(m=g+28|0,n=c[m>>2]|0,(n|0)!=0):0)?(c[n+40>>2]|0)==0:0){c[m>>2]=0;d=0}else d=0}else d=0}else{g=f;Gv(d,c[g>>2]|0,c[g+4>>2]|0,b[f+20>>1]|0,b[f+22>>1]|0);d=0}while(0);return d|0}function Cv(a,b){a=a|0;b=b|0;var c=0,e=0;c=a<<16>>16;e=b<<16>>16;do if(a<<16>>16<b<<16>>16)if((e|0)<=(c+49|0))if((e|0)>(c+31|0)){a=e+1&65535;break}else{a=(d[34032+(e-c)>>0]|0)+e&65535;break}else a=b;else if((c|0)<=(e+49|0))if((c|0)>(e+31|0)){a=c+1&65535;break}else{a=(d[34032+(c-e)>>0]|0)+c&65535;break}while(0);return a|0}function Dv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;do if(!(yu(b,d,e)|0))f=1;else{f=a[d>>0]|0;if(f<<24>>24==77)g=6;else if(f<<24>>24==71){if(Dv(b,c[d+12>>2]|0,e)|0){f=1;break}if(Dv(b,c[d+16>>2]|0,e)|0){f=1;break}if(f<<24>>24==77)g=6}if(((g|0)==6?(yu(c[b+12>>2]|0,c[d+12>>2]|0,e)|0)==0:0)?(f=a[b>>0]|0,!(f<<24>>24==73|f<<24>>24==76)):0){f=1;break}f=0}while(0);return f|0}function Ev(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=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;v=i;i=i+16|0;if((i|0)>=(j|0))ba();u=v;s=d;t=d+8|0;g=t;r=~(c[g>>2]|c[s>>2]);s=~(c[g+4>>2]|c[s+4>>2]);g=c[a+12>>2]|0;p=a+20|0;a:do if((g|0)>0){q=d+40|0;a=d+22|0;o=d+48|0;d=0;n=c[p>>2]|0;while(1){if(b[n+20>>1]&2)break a;m=n+40|0;l=c[m>>2]|0;m=c[m+4>>2]|0;k=t;b:do if(((c[k>>2]&l|0)!=0?1:(c[k+4>>2]&m|0)!=0)&((l&r|0)==0&(m&s|0)==0)){h=b[q>>1]|0;c:do if(h<<16>>16){m=c[o>>2]|0;l=h&65535;while(1){h=l;l=l+-1|0;k=c[m+(l<<2)>>2]|0;if(k){if((k|0)==(n|0))break;k=c[k+4>>2]|0;if((k|0)>-1?((c[p>>2]|0)+(k*48|0)|0)==(n|0):0)break}if((l|0)<=0)break c}if((h|0)>=1)break b}while(0);h=b[n+16>>1]|0;if(h<<16>>16<1){b[a>>1]=(e[a>>1]|0)+(h&65535);break}b[a>>1]=(b[a>>1]|0)+-1<<16>>16;if(b[n+18>>1]&2){l=(Is(c[(c[n>>2]|0)+16>>2]|0,u)|0)!=0;m=c[u>>2]|0;m=l&(m|0)>-2&(m|0)<2?10:20;c[u>>2]=m;d=(d<<16>>16|0)<(m|0)?m&65535:d}}while(0);g=g+-1|0;if((g|0)<=0)break;else n=n+48|0}}else{a=d+22|0;d=0}while(0);d=(f<<16>>16)-(d<<16>>16)|0;if((b[a>>1]|0)>(d|0))b[a>>1]=d;i=v;return}function Fv(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|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,$=0,aa=0,ca=0,da=0,ea=0;ea=i;i=i+112|0;if((i|0)>=(j|0))ba();O=ea;S=c[c[c[d>>2]>>2]>>2]|0;ca=c[d+12>>2]|0;if(!(a[S+65>>0]|0)){da=ca+36|0;if(!(c[da>>2]&32))if((c[g+40>>2]|0)<1)k=63;else k=(a[f+36>>0]&8)<<4^191;else k=24;T=g+51|0;$=ca+24|0;l=b[(c[g+4>>2]|0)+(e[$>>1]<<1)>>1]|0;K=l<<16>>16;L=d+4|0;k=zv(O,c[L>>2]|0,c[f+40>>2]|0,K,(a[T>>0]&4)==0?k:k&131,g)|0;U=b[$>>1]|0;V=ca+42|0;Q=b[V>>1]|0;W=ca+40|0;R=b[W>>1]|0;X=c[da>>2]|0;N=ca;M=c[N>>2]|0;N=c[N+4>>2]|0;Y=ca+22|0;Z=b[Y>>1]|0;b[ca+18>>1]=0;_=g+8|0;A=b[c[_>>2]>>1]|0;if(A<<16>>16<11)z=0;else{z=A<<16>>16;z=((bs(z,((z|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!k)k=0;else{B=l<<16>>16<0;C=f+16|0;D=ca+8|0;E=(R&65535)+1|0;F=ca+48|0;G=h<<16>>16==0;H=g+46|0;t=l<<16>>16>-1;u=g+50|0;v=g+44|0;w=ca+20|0;x=h<<16>>16;y=g+48|0;o=0;r=k;p=0;while(1){l=b[r+18>>1]|0;q=l&65535;if(l<<16>>16==128)if(!B?(a[(c[(c[C>>2]|0)+4>>2]|0)+(K*24|0)+20>>0]|0)==0:0)P=12;else{m=o;l=p;k=0}else P=12;if((P|0)==12){P=0;m=r+32|0;s=m;n=D;if(((c[n>>2]&c[s>>2]|0)==0?(c[n+4>>2]&c[s+4>>2]|0)==0:0)?(I=r+20|0,!((b[I>>1]&256)!=0&l<<16>>16==16)):0){c[da>>2]=X;b[$>>1]=U;b[W>>1]=R;if(Ju(S,ca,E)|0){k=0;break a}k=b[W>>1]|0;n=k+1<<16>>16;b[W>>1]=n;c[(c[F>>2]|0)+((k&65535)<<2)>>2]=r;k=m;l=D;m=(c[k+4>>2]|N)&~c[l+4>>2];s=ca;c[s>>2]=(c[k>>2]|M)&~c[l>>2];c[s+4>>2]=m;b:do if(!(q&1)){if(q&2){k=c[da>>2]|0;l=k|1;c[da>>2]=l;do if(!B){if(!G){s=0;break b}if((e[$>>1]|0)!=((e[H>>1]|0)+-1|0)){s=0;break b}if(!t)break;if(a[u>>0]|0)break;l=k|65537;c[da>>2]=l;s=0;break b}while(0);l=k|4097;c[da>>2]=l;s=0;break}if(q&128){l=c[da>>2]|8;c[da>>2]=l;s=0;break}k=c[da>>2]|0;if(!(q&36)){l=k|18;c[da>>2]=l;if(!(k&32)){s=0;o=0;p=r;break}s=0;o=c[(c[F>>2]|0)+((n&65535)+-2<<2)>>2]|0;p=r;break}l=k|34;c[da>>2]=l;if(!(b[I>>1]&256)){s=0;o=r;p=0}else{k=r+48|0;if(Ju(S,ca,(n&65535)+1|0)|0){k=0;break a}l=b[W>>1]|0;b[W>>1]=l+1<<16>>16;c[(c[F>>2]|0)+((l&65535)<<2)>>2]=k;l=c[da>>2]|16;c[da>>2]=l;s=0;o=r;p=k}}else{k=c[r>>2]|0;l=c[da>>2]|4;c[da>>2]=l;if(!(c[k+4>>2]&2048)){k=c[k+20>>2]|0;if((k|0)!=0?(J=c[k>>2]|0,(J|0)!=0):0)s=(bs(J,((J|0)<0)<<31>>31)|0)<<16>>16;else s=0}else s=46}while(0);do if(!(l&2)){k=(b[$>>1]|0)+1<<16>>16;b[$>>1]=k;k=k&65535;m=b[r+16>>1]|0;if(m<<16>>16<1&t){n=(m&65535)-s+(e[Y>>1]|0)&65535;b[Y>>1]=n;break}m=c[_>>2]|0;m=(e[Y>>1]|0)+((e[m+(k<<1)>>1]|0)-(e[m+(k+-1<<1)>>1]|0))|0;k=m&65535;b[Y>>1]=k;if(!(q&128))n=k;else{n=m+10&65535;b[Y>>1]=n}}else{k=b[Y>>1]|0;n=k<<16>>16;do if(o){m=b[o+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);do if(p){m=b[p+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);m=(o|0)!=0;do if(m?(b[o+16>>1]|0)>0&(p|0)!=0:0){if((b[p+16>>1]|0)<=0)break;k=(k&65535)+65516&65535}while(0);n=(((p|0)!=0)<<31>>31)+(m<<31>>31)+n|0;r=k<<16>>16<10?10:k<<16>>16;n=((r|0)<(n|0)?r:n)&65535;b[Y>>1]=n}while(0);k=n&65535;m=Cv(z,k+1+(((b[v>>1]|0)*15|0)/(b[(c[C>>2]|0)+42>>1]|0)|0)&65535)|0;if(!(l&320))m=Cv(m,k+16&65535)|0;l=s+x|0;b[w>>1]=(m&65535)+l;b[Y>>1]=k+l;Ev(c[L>>2]|0,ca,A);k=Bv(d,ca)|0;s=c[da>>2]|0;b[Y>>1]=(s&2|0)==0?n:Z;if((s&16|0)==0?(e[$>>1]|0)<(e[y>>1]|0):0)Fv(d,f,g,l&65535)|0;b[Y>>1]=Z;m=o;l=p}else{m=o;l=p;k=0}}r=Av(O)|0;if(!((k|0)==0&(r|0)!=0))break;else{o=m;p=l}}}while(0);l=ca;c[l>>2]=M;c[l+4>>2]=N;b[$>>1]=U;b[V>>1]=Q;c[da>>2]=X;b[Y>>1]=Z;b[W>>1]=R;l=U&65535;if(((U<<16>>16==Q<<16>>16?(aa=l+1|0,aa>>>0<(e[g+46>>1]|0)>>>0):0)?(a[T>>0]&64)==0:0)?(b[(c[_>>2]|0)+(aa<<1)>>1]|0)>41:0){k=Ju(S,ca,(R&65535)+1|0)|0;if(!k){b[$>>1]=(b[$>>1]|0)+1<<16>>16;b[V>>1]=(b[V>>1]|0)+1<<16>>16;k=b[W>>1]|0;b[W>>1]=k+1<<16>>16;c[(c[ca+48>>2]|0)+((k&65535)<<2)>>2]=0;c[da>>2]=c[da>>2]|32768;k=c[_>>2]|0;k=(e[k+(l<<1)>>1]|0)-(e[k+(aa<<1)>>1]|0)|0;b[Y>>1]=(e[Y>>1]|0)-k;Fv(d,f,g,(((k<<16)+327680|0)>>>16)+(h&65535)&65535)|0;b[Y>>1]=Z;b[$>>1]=U;b[V>>1]=U;c[da>>2]=X;k=0}}}else k=7;i=ea;return k|0}function Gv(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;l=b[a>>1]|0;h=a+8|0;a:do if(l<<16>>16){j=l;k=h;while(1){i=b[k+8>>1]|0;if(i<<16>>16>=f<<16>>16?(p=k,(c[p>>2]&d|0)==(d|0)?(c[p+4>>2]&e|0)==(e|0):0):0){n=k;o=14;break a}if(i<<16>>16<=f<<16>>16?(i=k,p=c[i>>2]|0,i=c[i+4>>2]|0,(p&d|0)==(p|0)&(i&e|0)==(i|0)):0)break a;j=j+-1<<16>>16;if(!(j<<16>>16))break;else k=k+16|0}if((l&65535)>=3){i=b[a+16>>1]|0;k=1;do{if(i<<16>>16>(b[a+(k<<4)+16>>1]|0))h=a+(k<<4)+8|0;k=k+1|0;i=b[h+8>>1]|0}while((k&65535)<(l&65535));if(i<<16>>16>f<<16>>16){n=h;o=14}}else o=9}else o=9;while(0);if((o|0)==9){n=l&65535;b[a>>1]=l+1<<16>>16;b[a+(n<<4)+18>>1]=g;n=a+(n<<4)+8|0;o=14}if((o|0)==14?(m=n,c[m>>2]=d,c[m+4>>2]=e,b[n+8>>1]=f,m=n+10|0,(b[m>>1]|0)>g<<16>>16):0)b[m>>1]=g;return}function Hv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[d+36>>2]|0;do if(e&17408){if((e&1024|0)!=0?(h=d+28|0,(a[h>>0]|0)!=0):0){e=d+32|0;Sc(c[e>>2]|0);a[h>>0]=0;c[e>>2]=0;break}if((e&16384|0)!=0?(f=d+28|0,g=c[f>>2]|0,(g|0)!=0):0){ig(b,c[g+16>>2]|0);ig(b,c[f>>2]|0);c[f>>2]=0}}while(0);return}function Iv(f,g,h,k,l,m,n){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;var 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,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,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0;qa=i;i=i+32|0;if((i|0)>=(j|0))ba();la=qa;p=c[c[f>>2]>>2]|0;ka=l&65535;if(l<<16>>16!=0?(b[p+60>>1]&128)!=0:0)o=0;else ma=3;a:do if((ma|0)==3){pa=c[g>>2]|0;o=pa&65535;if(o>>>0<=63){na=ew(1,0,o|0)|0;na=fw(na|0,C|0,-1,-1)|0;oa=C;b:do if((na|0)==0&(oa|0)==0){g=0;h=0;p=1}else{ea=h+24|0;fa=f+4|0;ga=(o|0)==0;ca=g+4|0;da=(k&768)==0;aa=p+8|0;T=(k&256)==0;U=f+68|0;V=la+20|0;W=la+4|0;Z=la+24|0;_=f+328|0;X=0;Y=0;g=0;h=0;k=0;q=0;$=0;p=1;l=0;while(1){if(($|0)>0){R=l+8|0;S=c[R>>2]|k;q=c[R+4>>2]|q}else S=k;if(($|0)<(ka|0))l=c[(c[ea>>2]|0)+($<<2)>>2]|0;else l=m;y=l+36|0;k=c[y>>2]|0;if(k&1024)break;R=c[(c[fa>>2]|0)+((d[l+16>>0]|0)*72|0)+48>>2]|0;if(!ga){k=~S;s=~q;v=0;do{x=ew(1,0,v|0)|0;w=C;c:do if((x&g|0)==0&(w&h|0)==0){r=c[(c[ca>>2]|0)+(v*20|0)>>2]|0;u=c[r+4>>2]|0;if(u&4096)do{if(!(u&262144))r=r+12|0;else r=c[(c[r+20>>2]|0)+4>>2]|0;r=c[r>>2]|0;u=c[r+4>>2]|0}while((u&4096|0)!=0);if(((a[r>>0]|0)==-102?(c[r+28>>2]|0)==(R|0):0)?(ha=r+32|0,ia=Bu(_,R,b[ha>>1]|0,k,s,130,0)|0,(ia|0)!=0):0){do if(b[ia+18>>1]&2){if((b[ha>>1]|0)<=-1)break;r=_t(c[f>>2]|0,c[(c[ca>>2]|0)+(v*20|0)>>2]|0)|0;if(!r)r=c[aa>>2]|0;u=c[r>>2]|0;t=_t(c[f>>2]|0,c[ia>>2]|0)|0;if(!t)t=c[aa>>2]|0;if($c(u,c[t>>2]|0)|0)break c}while(0);g=x|g;h=w|h}}while(0);v=v+1|0}while((v|0)<(o|0));k=c[y>>2]|0}do if(!(k&4096)){if(!(k&256)){r=c[l+28>>2]|0;if(!r){o=0;break a}if(a[r+51>>0]&4){o=0;break a}k=b[r+48>>1]|0;p=(a[r+50>>0]|0)!=0&1;if(!(k<<16>>16)){ma=71;break}else{P=k&65535;Q=b[r+46>>1]|0}}else{P=1;Q=0;r=0}G=l+24|0;H=l+42|0;I=l+48|0;J=(r|0)==0;K=r+32|0;L=ew(1,0,$|0)|0;M=C;N=r+4|0;O=r+28|0;F=r+12|0;k=0;r=0;x=0;E=0;d:while(1){w=(r|0)<(e[G>>1]|0);if((w?(b[H>>1]|0)==0:0)?(ja=e[(c[(c[I>>2]|0)+(r<<2)>>2]|0)+18>>1]|0,(ja&130|0)!=0):0){p=(ja&128|0)==0?p:0;w=E}else{if(!J){u=b[(c[N>>2]|0)+(r<<1)>>1]|0;t=a[(c[O>>2]|0)+r>>0]|0;s=c[F>>2]|0;u=u<<16>>16==(b[s+36>>1]|0)?-1:u<<16>>16;v=(u|0)>-1;if(p<<24>>24!=0&v)if(w){v=1;D=u}else{v=1;D=u;p=(a[(c[s+4>>2]|0)+(u*24|0)+20>>0]|0)==0?0:p}else D=u}else{v=0;D=-1;t=0}if(ga){ma=68;break}else{w=1;B=0}e:while(1){z=ew(1,0,B|0)|0;A=C;do if((z&g|0)==0&(A&h|0)==0){s=c[(c[ca>>2]|0)+(B*20|0)>>2]|0;u=c[s+4>>2]|0;if(!(u&4096))y=s;else{y=s;do{if(!(u&262144))u=y+12|0;else u=c[(c[y+20>>2]|0)+4>>2]|0;y=c[u>>2]|0;u=c[y+4>>2]|0}while((u&4096|0)!=0)}w=da?0:w;if((a[y>>0]|0)!=-102)break;if((c[y+28>>2]|0)!=(R|0))break;if((b[y+32>>1]|0)!=(D|0))break;if(!v){y=z;v=A;w=B;break e}u=_t(c[f>>2]|0,s)|0;if(!u)u=c[aa>>2]|0;if(!($c(c[u>>2]|0,c[(c[K>>2]|0)+(r<<2)>>2]|0)|0)){y=z;v=A;w=B;break e}}while(0);B=B+1|0;if(!(w<<24>>24!=0&(B|0)<(o|0))){ma=68;break d}}do if(T){if(E<<24>>24)if((t^x)<<24>>24==(a[(c[ca>>2]|0)+(w*20|0)+12>>0]|0)){w=E;break}else{ma=68;break d}s=a[(c[ca>>2]|0)+(w*20|0)+12>>0]|0;x=s^t;if(t<<24>>24==s<<24>>24){w=1;break}s=n;t=c[s+4>>2]|M;w=n;c[w>>2]=c[s>>2]|L;c[w+4>>2]=t;w=1}else w=E;while(0);g=y|g;h=v|h;k=(D|0)<0?1:k}r=r+1|0;if((r|0)>=(P|0))break;else E=w}if((ma|0)==68){ma=0;p=(r|0)==0|(r|0)<(Q&65535|0)?0:p}if(!(k<<24>>24))ma=71;else p=1}else ma=71;while(0);if((ma|0)==71){ma=0;if(!(p<<24>>24)){p=0;break b}}R=l+8|0;X=c[R>>2]|X;Y=c[R+4>>2]|Y;if(!ga){w=~X;x=~Y;v=0;do{r=ew(1,0,v|0)|0;u=C;do if((r&g|0)==0&(u&h|0)==0){k=c[(c[ca>>2]|0)+(v*20|0)>>2]|0;s=wv(U,k)|0;t=C;if((s|0)==0&(t|0)==0?(c[la+0>>2]=0,c[la+4>>2]=0,c[la+8>>2]=0,c[la+12>>2]=0,c[la+16>>2]=0,c[la+20>>2]=0,a[V>>0]=1,c[la>>2]=78,c[W>>2]=79,c[Z>>2]=0,ns(la,k)|0,(a[V>>0]|0)==0):0)break;R=(s&w|0)==0&(t&x|0)==0;g=(R?r:0)|g;h=(R?u:0)|h}while(0);v=v+1|0}while((v|0)<(o|0))}if(h>>>0>oa>>>0|(h|0)==(oa|0)&g>>>0>=na>>>0|p<<24>>24==0|($|0)>=(ka|0))break b;else{k=S;$=$+1|0}}da=(a[l+29>>0]|0)==0;g=da?g:na;h=da?h:oa}while(0);if((g|0)==(na|0)&(h|0)==(oa|0)){o=pa&255;break}if(!(p<<24>>24)){do{o=o+-1|0;if((o|0)<=0){o=0;break a}ca=ew(1,0,o|0)|0;ca=fw(ca|0,C|0,-1,-1)|0;da=C}while(!((ca&g|0)==(ca|0)&(da&h|0)==(da|0)));o=o&255}else o=-1}else o=0}while(0);i=qa;return o|0}function Jv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;if(c)Ok(b,33920,5);if(!d)c=0;else{c=d;while(1)if(!(a[c>>0]|0))break;else c=c+1|0;c=c-d&1073741823}Ok(b,d,c);Ok(b,e,1);Ok(b,13552,1);return}function Kv(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;i=c[c[c[a>>2]>>2]>>2]|0;d=c[a+12>>2]|0;g=a+20|0;if((d|0)>0){h=c[g>>2]|0;while(1){d=d+-1|0;f=h+20|0;e=b[f>>1]|0;if(e&1){Ck(i,c[h>>2]|0);e=b[f>>1]|0}e=e&65535;if(!(e&16)){if(e&32){e=c[h+12>>2]|0;Kv(e);ig(i,e)}}else{e=c[h+12>>2]|0;Kv(e);ig(i,e)}if((d|0)<=0)break;else h=h+48|0}}d=c[g>>2]|0;if((d|0)!=(a+24|0))ig(i,d);return}function Lv(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;s=i;i=i+32|0;if((i|0)>=(j|0))baban (C=l,m)|0}else{a=kw(k|0)|0;l=m>>>(a>>>0)|0;m=m<<32-a|n>>>(a>>>0)|0;return (C=l,m)|0}}else{if(j){if(f){c[f>>2]=(m>>>0)%(k>>>0);c[f+4>>2]=0}l=0;m=(m>>>0)/(k>>>0)>>>0;return (C=l,m)|0}if(!n){if(f){c[f>>2]=0;c[f+4>>2]=(m>>>0)%(i>>>0)}l=0;m=(m>>>0)/(i>>>0)>>>0;return (C=l,m)|0}j=i-1|0;if(!(j&i)){if(f){c[f>>2]=a|0;c[f+4>>2]=j&m|b&0}l=0;m=m>>>((kw(i|0)|0)>>>0);return (C=l,m)|0}h=(aa(i|0)|0)-(aa(m|0)|0)|0;if(h>>>0<=30){k=h+1|0;h=31-h|0;i=k;j=m<<h|n>>>(k>>>0);k=m>>>(k>>>0);g=0;h=n<<h;break}if(!f){l=0;m=0;return (C=l,m)|0}c[f>>2]=a|0;c[f+4>>2]=l|b&0;l=0;m=0;return (C=l,m)|0}while(0);if(!i){l=h;i=0;h=0}else{m=d|0|0;l=o|e&0;b=fw(m,l,-1,-1)|0;a=C;d=h;h=0;do{p=d;d=g>>>31|d<<1;g=h|g<<1;p=j<<1|p>>>31|0;o=j>>>31|k<<1|0;$v(b,a,p,o)|0;n=C;e=n>>31|((n|0)<0?-1:0)<<1;h=e&1;j=$v(p,o,e&m,(((n|0)<0?-1:0)>>31|((n|0)<0?-1:0)<<1)&l)|0;k=C;i=i-1|0}while((i|0)!=0);l=d;i=0}d=0;if(f){c[f>>2]=j;c[f+4>>2]=k}l=(g|0)>>>31|(l|d)<<1|(d<<1|g>>>31)&0|i;m=(g<<1|0>>>31)&-2|h;return (C=l,m)|0}function sw(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return Xb[a&1](b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function tw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Yb[a&63](b|0,c|0,d|0)|0}function uw(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Zb[a&1](b|0,c|0,d|0,e|0,f|0,g|0)}function vw(a,b){a=a|0;b=b|0;_b[a&31](b|0)}function ww(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;$b[a&1](b|0,c|0,d|0,e|0,f|0)}function xw(a,b,c){a=a|0;b=b|0;c=c|0;return +ac[a&1](b|0,c|0)}function yw(a,b,c){a=a|0;b=b|0;c=+c;bc[a&1](b|0,+c)}function zw(a,b){a=a|0;b=b|0;return +cc[a&1](b|0)}function Aw(a){a=a|0;return dc[a&7]()|0}function Bw(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;return ec[a&3](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)|0}function Cw(a,b,c){a=a|0;b=b|0;c=c|0;fc[a&15](b|0,c|0)}function Dw(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return gc[a&7](b|0,c|0,d|0,e|0,f|0,g|0)|0}function Ew(a,b){a=a|0;b=b|0;return hc[a&127](b|0)|0}function Fw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ic[a&63](b|0,c|0,d|0)}function Gw(a){a=a|0;jc[a&3]()}function Hw(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;return kc[a&3](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)|0}function Iw(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return lc[a&31](b|0,c|0,d|0,e|0)|0}function Jw(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;mc[a&15](b|0,c|0,d|0,e|0)}function Kw(a,b,c){a=a|0;b=b|0;c=c|0;return nc[a&127](b|0,c|0)|0}function Lw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return oc[a&1](b|0,c|0,+d)|0}function Mw(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return pc[a&31](b|0,c|0,d|0,e|0,f|0)|0}function Nw(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;da(0);return 0}function Ow(a,b,c){a=a|0;b=b|0;c=c|0;ea(1);return 0}function Pw(a,b,c){a=a|0;b=b|0;c=c|0;return pb(a|0,b|0,c|0)|0}function Qw(a,b,c){a=a|0;b=b|0;c=c|0;return Ub(a|0,b|0,c|0)|0}function Rw(a,b,c){a=a|0;b=b|0;c=c|0;return Bb(a|0,b|0,c|0)|0}function Sw(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;fa(2)}function Tw(a){a=a|0;ga(3)}function Uw(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ha(4)}function Vw(a,b){a=a|0;b=b|0;ia(5);return 0.0}function Ww(a,b){a=a|0;b=+b;ja(6)}function Xw(a){a=a|0;ka(7);return 0.0}function Yw(){la(8);return 0}function Zw(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;ma(9);return 0}function _w(a,b){a=a|0;b=b|0;na(10)}function $w(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;oa(11);return 0}function ax(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return Qb(a|0,b|0,c|0,d|0,e|0,f|0)|0}function bx(a){a=a|0;pa(12);return 0}function cx(a){a=a|0;return Tb(a|0)|0}function dx(a){a=a|0;return rb(a|0)|0}function ex(a){a=a|0;return db(a|0)|0}function fx(a,b,c){a=a|0;b=b|0;c=c|0;qa(13)}function gx(){ra(14)}function hx(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;sa(15);return 0}function ix(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ta(16);return 0}function jx(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ua(17)}function kx(a,b){a=a|0;b=b|0;va(18);return 0}function lx(a,b){a=a|0;b=b|0;return ab(a|0,b|0)|0}function mx(a,b){a=a|0;b=b|0;return Sb(a|0,b|0)|0}function nx(a,b){a=a|0;b=b|0;return Eb(a|0,b|0)|0}function ox(a,b){a=a|0;b=b|0;return bb(a|0,b|0)|0}function px(a,b){a=a|0;b=b|0;return vb(a|0,b|0)|0}function qx(a,b){a=a|0;b=b|0;return tb(a|0,b|0)|0}function rx(a,b){a=a|0;b=b|0;return wb(a|0,b|0)|0}function sx(a,b){a=a|0;b=b|0;return Pb(a|0,b|0)|0}function tx(a,b,c){a=a|0;b=b|0;c=+c;wa(19);return 0}function ux(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;xa(20);return 0}