Lines Matching refs:iq

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))ba();u=F;x=F+16|0;q=F+12|0;r=F+8|0;E=c[d>>2]|0;if(a[E+65>>0]|0)c[d+80>>2]=7;g=c[d+200>>2]|0;if(g)bw(g|0,0,c[d+196>>2]|0)|0;k=d+176|0;g=c[k>>2]|0;if(g){while(1){h=c[g+4>>2]|0;if(!h)break;else g=h}Tl(g)|0;c[k>>2]=0;c[d+184>>2]=0}o=d+56|0;g=c[o>>2]|0;a:do if((g|0)!=0?(p=d+36|0,f=c[p>>2]|0,(f|0)>0):0){k=0;while(1){h=c[g+(k<<2)>>2]|0;if(!h)h=f;else{xm(d,h);c[(c[o>>2]|0)+(k<<2)>>2]=0;h=c[p>>2]|0}k=k+1|0;if((k|0)>=(h|0))break a;g=c[o>>2]|0;f=h}}while(0);g=c[d+8>>2]|0;if(g)_g(g+40|0,c[d+28>>2]|0);p=d+180|0;g=c[p>>2]|0;if(g)do{c[p>>2]=c[g+4>>2];o=g+80|0;f=g+60|0;h=c[f>>2]|0;m=o+(h*40|0)|0;n=g+64|0;if((c[n>>2]|0)>0){k=0;do{xm(c[g>>2]|0,c[m+(k<<2)>>2]|0);k=k+1|0}while((k|0)<(c[n>>2]|0));h=c[f>>2]|0}_g(o,h);ig(c[c[g>>2]>>2]|0,g);g=c[p>>2]|0}while((g|0)!=0);if(c[d+204>>2]|0)am(d,-1,0);B=d+40|0;b:do if((c[B>>2]|0)==-1108210269){z=d+76|0;if((c[z>>2]|0)>-1){A=d+88|0;n=b[A>>1]|0;if(n&128){y=d+80|0;k=c[y>>2]|0;m=k&255;h=m+-7|0;do if(h>>>0<7?(l=(77>>>(h&127)&1)!=0,l):0)if((n&64)==0|(m|0)!=9){if((m|0)==7|(m|0)==13?(n&32)!=0:0){f=2;break}Gl(E,516);Hl(E);a[E+63>>0]=1;c[d+92>>2]=0;k=c[y>>2]|0;f=0}else{l=1;f=0}else{l=0;f=0}while(0);if((k|0)==0?(w=d+144|0,v=c[w+4>>2]|0,(v|0)>0|(v|0)==0&(c[w>>2]|0)>>>0>0):0){w=c[d>>2]|0;c[y>>2]=787;a[d+86>>0]=2;$g(d+44|0,w,34376,u)}m=E+304|0;if((c[m>>2]|0)>0?(c[E+328>>2]|0)==0:0)D=141;else if((a[E+63>>0]|0)!=0?(c[E+156>>2]|0)==(((e[A>>1]|0)>>>6&1^1)&65535|0):0){do if(!(c[y>>2]|0))D=41;else{if(!((a[d+86>>0]|0)!=3|l)){D=41;break}Gl(E,0);c[d+92>>2]=0}while(0);c:do if((D|0)==41){d:do if(pm(d,1)|0)if(!(b[A>>1]&64))g=787;else{f=1;break b}else{l=E+328|0;h=c[l>>2]|0;c[l>>2]=0;k=c[m>>2]|0;e:do if((k|0)>0){n=0;f:while(1){p=c[(c[h+(n<<2)>>2]|0)+8>>2]|0;do if(p){o=c[(c[p>>2]|0)+60>>2]|0;if(!o)break;g=hc[o&127](p)|0;Im(d,p);if(g)break f;k=c[m>>2]|0}while(0);n=n+1|0;if((n|0)>=(k|0)){D=50;break e}}c[l>>2]=h;D=135}else D=50;while(0);g:do if((D|0)==50){c[l>>2]=h;v=E+20|0;w=E+16|0;o=0;k=0;n=0;h:while(1){m=c[v>>2]|0;if((o|0)>=(m|0)){h=k;break}l=c[w>>2]|0;p=o;while(1){o=c[l+(p<<4)+4>>2]|0;if((o|0)!=0?(a[o+8>>0]|0)==2:0)break;p=p+1|0;if((p|0)>=(m|0)){h=k;break h}}g=c[o+4>>2]|0;c[g+4>>2]=c[o>>2];g=Zo(c[g>>2]|0)|0;if(!g){o=p+1|0;k=((p|0)!=1&1)+k|0;n=1}else{D=135;break g}}do if(n){l=c[E+196>>2]|0;if(!l)break;if(hc[l&127](c[E+192>>2]|0)|0){g=531;break d}}while(0);k=c[(c[w>>2]|0)+4>>2]|0;n=c[c[k+4>>2]>>2]|0;m=(a[n+15>>0]|0)==0;if(m){p=c[n+168>>2]|0;if(p)D=62}else{p=10360;D=62}do if((D|0)==62){o=p;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;if((o-p&1073741823|0)==0|(h|0)<2)break;t=c[E>>2]|0;if(m){l=c[n+168>>2]|0;c[x>>2]=0;if(!l){p=0;l=0}else D=80}else{c[x>>2]=0;l=10360;D=80}if((D|0)==80){n=l;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;p=n-l&1073741823}c[u>>2]=l;s=qh(E,44696,u)|0;if(!s){g=7;break d}p=s+p|0;o=t+32|0;n=0;i:while(1){do if(n){if((n|0)>100){D=87;break i}if((n|0)!=1)break;c[u>>2]=s;Zc(13,44728,u)}while(0);_c(4,r);g=c[r>>2]|0;c[u>>2]=g>>>8;c[u+4>>2]=g&255;Yc(13,p,44744,u)|0;g=lc[c[o>>2]&31](t,s,0,q)|0;m=(g|0)==0;if(m&(c[q>>2]|0)!=0)n=n+1|0;else{D=91;break}}if((D|0)==87){c[u>>2]=s;Zc(13,44712,u);Yb[c[t+28>>2]&63](t,s,0)|0;D=92}else if((D|0)==91)if(m)D=92;do if((D|0)==92){g=ip(t,s,x,16406,0)|0;if(g)break;l=c[v>>2]|0;j:do if((l|0)>0){q=0;o=0;r=0;n=0;k:while(1){p=c[(c[w>>2]|0)+(r<<4)+4>>2]|0;do if(!p)p=q;else{if((a[p+8>>0]|0)!=2){p=q;break}m=c[p+4>>2]|0;k=c[m>>2]|0;h=c[k+172>>2]|0;if(!h){p=q;break}if(!n){c[m+4>>2]=c[p>>2];n=(a[k+7>>0]|0)==0&1}k=c[x>>2]|0;p=h;while(1)if(!(a[p>>0]|0))break;else p=p+1|0;m=h;g=pc[c[(c[k>>2]|0)+12>>2]&31](k,h,(p-m&1073741823)+1|0,q,o)|0;p=h;while(1)if(!(a[p>>0]|0))break;else p=p+1|0;if(g){l=k;D=106;break k}p=fw((p-m&1073741823)+1|0,0,q|0,o|0)|0;l=c[v>>2]|0;o=C}while(0);r=r+1|0;if((r|0)>=(l|0))break;else q=p}if((D|0)==106){h=c[l>>2]|0;if(h){hc[c[h+4>>2]&127](k)|0;c[l>>2]=0}Sc(k);Yb[c[t+28>>2]&63](t,s,0)|0;ig(E,s);D=135;break g}do if(!n)n=0;else{m=c[x>>2]|0;if((hc[c[(c[m>>2]|0)+48>>2]&127](m)|0)&1024)break;g=nc[c[(c[m>>2]|0)+20>>2]&127](m,2)|0;if(!g)break;h=c[m>>2]|0;if(h){hc[c[h+4>>2]&127](m)|0;c[m>>2]=0}Sc(m);Yb[c[t+28>>2]&63](t,s,0)|0;ig(E,s);D=135;break g}while(0);k=c[v>>2]|0;if((k|0)>0)p=0;else{p=1;g=0;break}while(1){m=c[(c[w>>2]|0)+(p<<4)+4>>2]|0;if(m){g=Gg(m,s)|0;if(g){p=0;break j}k=c[v>>2]|0}p=p+1|0;if((p|0)>=(k|0)){p=1;g=0;break}}}else{p=1;n=0;g=0}while(0);m=c[x>>2]|0;l=c[m>>2]|0;if(l){hc[c[l+4>>2]&127](m)|0;c[m>>2]=0}Sc(m);if(!p){ig(E,s);D=135;break g}g=Yb[c[t+28>>2]&63](t,s,n)|0;ig(E,s);if(g){D=135;break g}g=c[3164]|0;if(g)jc[g&3]();g=c[v>>2]|0;if((g|0)>0){k=0;do{h=c[(c[w>>2]|0)+(k<<4)+4>>2]|0;if(h){Fg(h,1)|0;g=c[v>>2]|0}k=k+1|0}while((k|0)<(g|0))}g=c[3166]|0;if(g)jc[g&3]();Nn(E,64);break g}while(0);ig(E,s);D=135;break g}while(0);g=c[v>>2]|0;do if((g|0)>0){h=1;while(1){if(k){g=Gg(k,0)|0;if(g){D=135;break g}g=c[v>>2]|0}if((h|0)>=(g|0))break;k=c[(c[w>>2]|0)+(h<<4)+4>>2]|0;h=h+1|0}if((g|0)>0)k=0;else break;do{h=c[(c[w>>2]|0)+(k<<4)+4>>2]|0;if(h){g=Fg(h,0)|0;if(g){D=135;break g}g=c[v>>2]|0}k=k+1|0}while((k|0)<(g|0))}while(0);Nn(E,64)}while(0);do if((D|0)==135){if(!g)break;else if((g|0)!=5)break d;if(!(b[A>>1]&64)){g=5;break d}else{f=5;break b}}while(0);x=E+504|0;D=E+24|0;c[x+0>>2]=0;c[x+4>>2]=0;c[x+8>>2]=0;c[x+12>>2]=0;c[D>>2]=c[D>>2]&-16777219;break c}while(0);c[y>>2]=g;Gl(E,0);c[d+92>>2]=0}while(0);c[E+500>>2]=0;D=146}else D=141;do if((D|0)==141)if(!f)if(c[y>>2]|0){g=a[d+86>>0]|0;if(g<<24>>24==2){f=2;D=147;break}else if(g<<24>>24==3){f=1;D=147;break}else{Gl(E,516);Hl(E);a[E+63>>0]=1;c[d+92>>2]=0;D=146;break}}else{f=1;D=147}else D=147;while(0);if((D|0)==146)if(!f)f=0;else D=147;if((D|0)==147){g=Xl(d,f)|0;if(g){D=c[y>>2]|0;if((D|0)==0|(D&255|0)==19){c[y>>2]=g;D=d+44|0;ig(E,c[D>>2]|0);c[D>>2]=0}Gl(E,516);Hl(E);a[E+63>>0]=1;c[d+92>>2]=0}}if(b[A>>1]&4){if((f|0)==2){c[E+80>>2]=0;f=d+92|0}else{f=d+92|0;y=c[f>>2]|0;c[E+80>>2]=y;D=E+84|0;c[D>>2]=(c[D>>2]|0)+y}c[f>>2]=0}}if((c[z>>2]|0)>-1){f=E+148|0;c[f>>2]=(c[f>>2]|0)+-1;f=b[A>>1]|0;if(!(f&64)){f=E+156|0;c[f>>2]=(c[f>>2]|0)+-1;f=b[A>>1]|0}if(f&128){D=E+152|0;c[D>>2]=(c[D>>2]|0)+-1}}}c[B>>2]=1369188723;f=d+80|0;if(!(a[(c[d>>2]|0)+65>>0]|0)){f=(c[f>>2]|0)==5?5:0;break}else{c[f>>2]=7;f=0;break}}else f=0;while(0);i=F;return f|0}function Ol(a,f){a=a|0;f=f|0;var g=0,h=0,i=0,j=0;i=a+8|0;h=e[i>>1]|0;do if(h&18){b[i>>1]=h|2;if(h&16384)Ng(a)|0;g=a+10|0;f=f&255;h=f&247;if((d[g>>0]|0|0)!=(h|0))Ul(a,h)|0;if(((f&8|0)!=0?(c[a+16>>2]&1|0)!=0:0)?(Rl(a)|0)!=0:0){g=0;break}if((b[i>>1]&514)==2){Yl(a)|0;j=12}else j=12}else{Zl(a,f,0)|0;h=f&247;g=a+10|0;j=12}while(0);if((j|0)==12)if((d[g>>0]|0|0)==(h|0))g=c[a+16>>2]|0;else g=0;return g|0}function Pl(b,c,e,f){b=b|0;c=c|0;e=e|0;f=f|0;var g=0,i=0.0,j=0,k=0.0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,t=0;h[c>>3]=0.0;j=f&255;if(f<<24>>24==1){f=b;g=e;p=1;t=0}else{g=3-j|0;a:do if((g|0)<(e|0))while(1){f=g+2|0;if(a[b+g>>0]|0){e=1;break a}if((f|0)<(e|0))g=f;else{e=0;g=f;break}}else e=0;while(0);f=b+(j&1)|0;g=j+-3+g|0;p=2;t=e}r=b+g|0;b:do if(f>>>0<r>>>0){while(1){g=a[f>>0]|0;if(!(a[10368+(g&255)>>0]&1))break;f=f+p|0;if(f>>>0>=r>>>0){f=0;break b}}if(g<<24>>24==43){f=f+p|0;q=1}else if(g<<24>>24==45){f=f+p|0;q=-1}else q=1;c:do if(f>>>0<r>>>0){g=0;do{if((a[f>>0]|0)!=48)break c;f=f+p|0;g=g+1|0}while(f>>>0<r>>>0)}else g=0;while(0);d:do if(f>>>0<r>>>0){b=0;j=0;while(1){e=a[f>>0]|0;if(!(((e&255)+-48|0)>>>0<10&((b|0)<214748364|(b|0)==214748364&j>>>0<3435973835))){l=b;break d}j=ow(j|0,b|0,10,0)|0;b=(e<<24>>24)+-48|0;j=fw(b|0,((b|0)<0)<<31>>31|0,j|0,C|0)|0;b=C;f=f+p|0;g=g+1|0;if(f>>>0>=r>>>0){l=b;break}}}else{j=0;l=0}while(0);e:do if(f>>>0<r>>>0){e=0;while(1){b=a[f>>0]|0;if(((b&255)+-48|0)>>>0>=10){m=e;break}f=f+p|0;g=g+1|0;b=e+1|0;if(f>>>0<r>>>0)e=b;else{n=l;m=b;b=0;l=1;e=1;break e}}f:do if(b<<24>>24==46){e=f+p|0;g:do if(e>>>0<r>>>0){n=e;while(1){b=a[n>>0]|0;if(!(((b&255)+-48|0)>>>0<10&((l|0)<214748364|(l|0)==214748364&j>>>0<3435973835))){e=n;n=l;break g}j=ow(j|0,l|0,10,0)|0;l=(b<<24>>24)+-48|0;j=fw(l|0,((l|0)<0)<<31>>31|0,j|0,C|0)|0;l=C;g=g+1|0;b=m+-1|0;e=f+(p<<1)|0;if(e>>>0<r>>>0){f=n;n=e;m=b}else{f=n;n=l;m=b;break}}}else n=l;while(0);if(e>>>0<r>>>0){l=p<<1;while(1){if(((d[e>>0]|0)+-48|0)>>>0>=10)break f;b=f+l|0;g=g+1|0;if(b>>>0<r>>>0){f=e;e=b}else{e=b;break}}}}else{e=f;n=l}while(0);if(e>>>0<r>>>0){o=a[e>>0]|0;h:do if(o<<24>>24==69|o<<24>>24==101){f=e+p|0;if(f>>>0>=r>>>0){b=0;l=0;e=1;break e}b=a[f>>0]|0;if(b<<24>>24==45){f=e+(p<<1)|0;o=-1}else if(b<<24>>24==43){f=e+(p<<1)|0;o=1}else o=1;if(f>>>0<r>>>0){e=0;l=0}else{b=0;l=0;e=o;break e}while(1){b=a[f>>0]|0;if(((b&255)+-48|0)>>>0>=10){b=e;e=o;break h}if((e|0)<1e4)b=(e*10|0)+-48+(b<<24>>24)|0;else b=1e4;f=f+p|0;if(f>>>0<r>>>0){e=b;l=1}else{l=1;e=o;break}}}else{f=e;b=0;l=1;e=1}while(0);if((g|0)!=0&(l|0)!=0&f>>>0<r>>>0)do{if(!(a[10368+(d[f>>0]|0)>>0]&1))break e;f=f+p|0}while(f>>>0<r>>>0)}else{f=e;b=0;l=1;e=1}}else{n=l;m=0;b=0;l=1;e=1}while(0);b=(_(b,e)|0)+m|0;o=(b|0)<0;e=o?0-b|0:b;do if((j|0)==0&(n|0)==0)if((q|0)<0)i=(g|0)!=0?-0.0:0.0;else i=0.0;else{if((b>>31|1|0)>0)if(((n|0)<214748364|(n|0)==214748364&j>>>0<3435973836)&(e|0)>0){b=n;do{e=e+-1|0;j=ow(j|0,b|0,10,0)|0;b=C}while(((b|0)<214748364|(b|0)==214748364&j>>>0<3435973836)&(e|0)>0)}else b=n;else{m=nw(j|0,n|0,10,0)|0;if((m|0)==0&(C|0)==0&(e|0)>0){b=n;do{e=e+-1|0;j=mw(j|0,b|0,10,0)|0;b=C;n=nw(j|0,b|0,10,0)|0}while((n|0)==0&(C|0)==0&(e|0)>0)}else b=n}n=(q|0)<0;m=$v(0,0,j|0,b|0)|0;m=n?m:j;n=n?C:b;if(!e){i=+(m>>>0)+4294967296.0*+(n|0);break}if((e+-308|0)>>>0<34){if(!((e|0)%308|0))k=1.0;else{i=1.0;do{i=i*10.0;e=e+-1|0}while(((e|0)%308|0|0)!=0);k=i}i=+(m>>>0)+4294967296.0*+(n|0);if(o){i=i/k/1.e+308;break}else{i=i*k*1.e+308;break}}if((e|0)>341){i=+(m>>>0)+4294967296.0*+(n|0);if(o){i=i*0.0;break}else{i=i*s;break}}if(!((e|0)%22|0)){j=e;i=1.0}else{j=e;i=1.0;do{i=i*10.0;j=j+-1|0}while(((j|0)%22|0|0)!=0)}if((j|0)>0){do{i=i*1.0e22;j=j+-22|0}while((j|0)>0);k=i}else k=i;i=+(m>>>0)+4294967296.0*+(n|0);if(o){i=i/k;break}else{i=i*k;break}}while(0);h[c>>3]=i;f=f>>>0>=r>>>0&(g|0)>0&(l|0)!=0&(t|0)==0&1}else f=0;while(0);return f|0}function Ql(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,m=0,n=0,o=0,p=0;i=f&255;if(f<<24>>24==1){g=b;h=e;n=1;e=0}else{h=3-i|0;a:do if((h|0)<(e|0))while(1){f=h+2|0;if(a[b+h>>0]|0){e=1;break a}if((f|0)<(e|0))h=f;else{e=0;h=f;break}}else e=0;while(0);g=b+(i&1)|0;h=i+-3+h|0;n=2}k=b+h|0;b:do if(g>>>0<k>>>0){while(1){h=a[g>>0]|0;if(!(a[10368+(h&255)>>0]&1))break;g=g+n|0;if(g>>>0>=k>>>0){l=0;break b}}if(h<<24>>24==45){g=g+n|0;l=1;break}else if(h<<24>>24==43){g=g+n|0;l=0;break}else{l=0;break}}else l=0;while(0);c:do if(g>>>0<k>>>0){h=g;while(1){if((a[h>>0]|0)!=48){m=h;break c}h=h+n|0;if(h>>>0>=k>>>0){m=h;break}}}else m=g;while(0);do if(m>>>0<k>>>0){b=m;j=0;i=0;h=0;while(1){f=a[b>>0]|0;if((f+-48&255)>=10){b=0;k=i;break}i=ow(j|0,i|0,10,0)|0;j=f<<24>>24;i=fw(i|0,C|0,-48,-1)|0;j=fw(i|0,C|0,j|0,((j|0)<0)<<31>>31|0)|0;i=C;h=h+n|0;b=m+h|0;if(b>>>0>=k>>>0){b=1;k=i;break}}i=f<<24>>24;f=(l|0)!=0;if((k|0)>=0)if(f){f=k;p=22;break}else{f=k;p=23;break}else{j=d;c[j>>2]=f?0:-1;c[j+4>>2]=f?-2147483648:2147483647;j=f?0:2;break}}else if(!l){b=1;j=0;f=0;i=0;h=0;p=23}else{b=1;j=0;f=0;i=0;h=0;p=22}while(0);if((p|0)==22){l=$v(0,0,j|0,f|0)|0;j=d;c[j>>2]=l;c[j+4>>2]=C;j=0}else if((p|0)==23){l=d;c[l>>2]=j;c[l+4>>2]=f;j=2}if(((i|0)==0|b?!((h|0)==0&(g|0)==(m|0)):0)?(o=n*19|0,!((h|0)>(o|0)|(e|0)!=0)):0)if((h|0)>=(o|0)){h=0;do{g=a[m+(_(h,n)|0)>>0]|0;e=a[11192+h>>0]|0;h=h+1|0;f=g<<24>>24==e<<24>>24}while(f&(h|0)<18);if(f)g=(a[m+(n*18|0)>>0]|0)+-56|0;else g=((g<<24>>24)-(e<<24>>24)|0)*10|0;if((g|0)>=0)return ((g|0)>0?1:j)|0;else g=0}else g=0;else g=1;return g|0}function Rl(d){d=d|0;var f=0,g=0;g=d+8|0;f=b[g>>1]|0;if(f&16384){Ng(d)|0;f=b[g>>1]|0}do if(f&18){if((c[d+24>>2]|0)!=0?(c[d+16>>2]|0)==(c[d+20>>2]|0):0){f=0;break}f=d+12|0;if(!(ah(d,(c[f>>2]|0)+2|0,1)|0)){d=d+16|0;a[(c[d>>2]|0)+(c[f>>2]|0)>>0]=0;a[(c[d>>2]|0)+((c[f>>2]|0)+1)>>0]=0;b[g>>1]=e[g>>1]|0|512;f=0}else f=7}else f=0;while(0);return f|0}function Sl(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;c=no(a,b,c,d)|0;if(!c)ig(a,b);return c|0}function Tl(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;d=c[a>>2]|0;c[d+200>>2]=c[a+20>>2];c[d+196>>2]=c[a+56>>2];c[d+4>>2]=c[a+8>>2];c[d+32>>2]=c[a+48>>2];c[d+8>>2]=c[a+16>>2];c[d+28>>2]=c[a+52>>2];c[d+56>>2]=c[a+24>>2];c[d+36>>2]=c[a+40>>2];g=a+32|0;f=c[g+4>>2]|0;b=c[d>>2]|0;e=b+32|0;c[e>>2]=c[g>>2];c[e+4>>2]=f;c[d+92>>2]=c[a+68>>2];c[b+80>>2]=c[a+72>>2];return c[a+44>>2]|0}function Ul(a,c){a=a|0;c=c|0;if((b[a+8>>1]&2)!=0?(d[a+10>>0]|0|0)!=(c|0):0)c=xn(a,c&255)|0;else c=0;return c|0}function Vl(a,d,f){a=a|0;d=d|0;f=f|0;var g=0;g=a+8|0;if(b[g>>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];if(!(b[d+8>>1]&2048))b[g>>1]=(e[g>>1]|0)&58367|f;return}function Wl(a,d){a=a|0;d=d|0;var e=0,f=0;if(!((b[a+8>>1]&9312)==0?(c[a+24>>2]|0)==0:0))Mg(a);a=a+0|0;e=d+0|0;f=a+40|0;do{c[a>>2]=c[e>>2];a=a+4|0;e=e+4|0}while((a|0)<(f|0));b[d+8>>1]=1;c[d+24>>2]=0;return}function Xl(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,l=0,m=0,n=0,o=0,p=0;p=c[a>>2]|0;m=p+500|0;f=c[m>>2]|0;do if((f|0)!=0?(n=a+104|0,e=c[n>>2]|0,(e|0)!=0):0){o=e+-1|0;k=p+20|0;e=c[k>>2]|0;if((e|0)>0){i=p+16|0;j=(b|0)==2;g=e;h=0;e=0;do{f=c[(c[i>>2]|0)+(h<<4)+4>>2]|0;if(f){if(j?(l=qm(f,2,o)|0,(l|0)!=0):0)f=l;else f=qm(f,1,o)|0;g=c[k>>2]|0;e=(e|0)==0?f:e}h=h+1|0}while((h|0)<(g|0));c[m>>2]=(c[m>>2]|0)+-1;c[n>>2]=0;if(!e)e=13;else{d=e;e=16}}else{c[m>>2]=f+-1;c[n>>2]=0;e=13}do if((e|0)==13){if((b|0)==2?(d=om(p,2,o)|0,(d|0)!=0):0)break;d=om(p,1,o)|0;e=16}while(0);if((e|0)==16)if((b|0)!=2)break;m=a+152|0;l=c[m+4>>2]|0;k=p+504|0;c[k>>2]=c[m>>2];c[k+4>>2]=l;k=a+160|0;l=c[k+4>>2]|0;m=p+512|0;c[m>>2]=c[k>>2];c[m+4>>2]=l}else d=0;while(0);return d|0}function Yl(d){d=d|0;var f=0,g=0;f=d+12|0;if(!(ah(d,(c[f>>2]|0)+2|0,1)|0)){g=d+16|0;a[(c[g>>2]|0)+(c[f>>2]|0)>>0]=0;a[(c[g>>2]|0)+((c[f>>2]|0)+1)>>0]=0;f=d+8|0;b[f>>1]=e[f>>1]|0|512;f=0}else f=7;return f|0}function Zl(d,f,g){d=d|0;f=f|0;g=g|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();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))ba();l=m;k=e+73|0;f=a[k>>0]|0;do if((f&255)>2)if(f<<24>>24==4){f=c[e+68>>2]|0;break}else{g=e+56|0;Sc(c[g>>2]|0);c[g>>2]=0;a[k>>0]=0;g=5;break}else g=5;while(0);a:do if((g|0)==5){h=e+76|0;f=b[h>>1]|0;do if(f<<16>>16<=-1){f=c[e+60>>2]|0;if(!f){a[k>>0]=0;f=0;break a}g=e+120|0;f=rp(c[(c[e>>2]|0)+4>>2]|0,f,g,(a[e+72>>0]&1)<<1^2)|0;if(!f){b[h>>1]=0;f=g;break}else{a[k>>0]=0;break a}}else{if(f<<16>>16)do{g=f+-1<<16>>16;b[h>>1]=g;f=c[e+(f<<16>>16<<2)+120>>2]|0;if(!f)f=g;else{xg(c[f+68>>2]|0);f=b[h>>1]|0}}while(f<<16>>16!=0);f=e+120|0}while(0);f=c[f>>2]|0;if((a[f>>0]|0)!=0?((c[e+16>>2]|0)==0|0)==(d[f+2>>0]|0):0){b[e+78>>1]=0;b[e+44>>1]=0;g=e+72|0;a[g>>0]=d[g>>0]&241;if(b[f+18>>1]|0){a[k>>0]=1;f=0;break}if(a[f+5>>0]|0){a[k>>0]=0;f=0;break}if((c[f+72>>2]|0)==1){g=d[f+6>>0]|0;f=c[f+56>>2]|0;f=d[f+(g+9)>>0]<<16|d[f+(g+8)>>0]<<24|d[f+(g+10)>>0]<<8|d[f+(g+11)>>0];a[k>>0]=1;f=nm(e,f)|0;break}else{c[l>>2]=57629;c[l+4>>2]=10788;Zc(11,13600,l);f=11;break}}c[l>>2]=57618;c[l+4>>2]=10788;Zc(11,13600,l);f=11}while(0);i=m;return f|0}function nm(e,f){e=e|0;f=f|0;var 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;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))ba();t=u+4|0;s=u;m=c[h+8>>2]|0;a[h+6>>0]=0;k=a[g>>0]|0;if(k<<24>>24>-1){k=k&255;c[t>>2]=k;l=1}else{l=im(g,t)|0;k=c[t>>2]|0}r=d+4|0;p=d+12|0;q=h+4|0;d=k;o=k;n=l&255;k=0;while(1){if(n>>>0>=d>>>0|(o|0)>(f|0))break;h=g+n|0;d=a[h>>0]|0;if(d<<24>>24>-1){c[s>>2]=d&255;h=1}else h=im(h,s)|0;a[m+10>>0]=a[r>>0]|0;c[m+32>>2]=c[p>>2];c[m+24>>2]=0;l=km(g+o|0,c[s>>2]|0,m)|0;k=k+1<<16>>16;if((k&65535)>=(e[q>>1]|0))break;d=c[t>>2]|0;o=l+o|0;n=(h&255)+n|0;m=m+40|0}b[q>>1]=k;i=u;return}function Dm(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;g=b+73|0;if((a[g>>0]|0)==1?(a[b+72>>0]&8)!=0:0)f=0;else h=3;do if((h|0)==3){f=mm(b)|0;if(!f){if(!(a[g>>0]|0)){c[e>>2]=1;f=0;break}c[e>>2]=0;f=Bp(b)|0;e=b+72|0;g=d[e>>0]|0;if(!f){a[e>>0]=g|8;f=0;break}else{a[e>>0]=g&247;break}}}while(0);return f|0}function Em(f,g,h,k,l,m,n,o,p){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;var 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;L=i;i=i+32|0;if((i|0)>=(j|0))ba();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))ba();p=r;g=d;k=c[g>>2]|0;g=c[g+4>>2]|0;q=Mm(b)|0;c[e>>2]=q;h=(q|0)==0;f=h?7:0;h=h^1;if((b|0)>0&h){o=q+12|0;n=a+32|0;m=0;do{h=c[o>>2]|0;l=h+(m*56|0)|0;f=Op(a,l,n,k,g)|0;if(!f){f=Pp(l,p)|0;g=l;k=p;g=fw(c[k>>2]|0,c[k+4>>2]|0,c[g>>2]|0,c[g+4>>2]|0)|0;k=h+(m*56|0)+8|0;h=k;c[h>>2]=g;c[h+4>>2]=C;if(!f)f=Qp(l)|0}else k=h+(m*56|0)+8|0;g=k;k=c[g>>2]|0;g=c[g+4>>2]|0;m=m+1|0;h=(f|0)==0}while((m|0)<(b|0)&h)}if(!h){Pm(q);c[e>>2]=0}b=d;c[b>>2]=k;c[b+4>>2]=g;i=r;return f|0}function Mm(a){a=a|0;var b=0,d=0;b=2;while(1)if((b|0)<(a|0))b=b<<1;else{d=b;break}b=c[2252]|0;if((b|0)!=0?(hc[b&127](100)|0)!=0:0)b=0;else{a=(d*60|0)+16|0;b=mg(a,((a|0)<0)<<31>>31)|0;if(!b)b=0;else{bw(b|0,0,a|0)|0;c[b>>2]=d;c[b+4>>2]=0;a=b+16|0;c[b+12>>2]=a;c[b+8>>2]=a+(d*56|0)}}return b|0}function Nm(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=c[2252]|0;if((f|0)!=0?(hc[f&127](100)|0)!=0:0){f=0;i=6}else i=3;do if((i|0)==3){f=mg(64,0)|0;if(!f){i=6;break}else{g=f+0|0;h=g+64|0;do{a[g>>0]=0;g=g+1|0}while((g|0)<(h|0));c[e>>2]=f;c[f+4>>2]=d;c[f>>2]=b;h=c[b+8>>2]|0;g=(c[h+8>>2]|0)+9|0;h=(c[h+4>>2]|0)/2|0;h=(g|0)>(h|0)?g:h;c[f+16>>2]=h;f=b+56|0;g=f;g=fw(h|0,((h|0)<0)<<31>>31|0,c[g>>2]|0,c[g+4>>2]|0)|0;c[f>>2]=g;c[f+4>>2]=C;f=0;break}}while(0);if((i|0)==6){c[e>>2]=f;Pm(d);f=7}return f|0}function Om(a){a=a|0;if(a){Pm(c[a+4>>2]|0);Sc(a)}return}function Pm(a){a=a|0;var b=0,d=0;if((a|0)!=0?(c[a>>2]|0)>0:0){b=a+12|0;d=0;do{Rp((c[b>>2]|0)+(d*56|0)|0);d=d+1|0}while((d|0)<(c[a>>2]|0))}Sc(a);return}function Qm(a,b){a=a|0;b=b|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,r=0;n=c[b>>2]|0;r=b+4|0;c[r>>2]=a;a:do if((n|0)>0){o=b+12|0;p=0;do{l=c[o>>2]|0;j=l+(p*56|0)|0;l=c[l+(p*56|0)+48>>2]|0;if(l){m=c[l>>2]|0;i=c[(c[m+8>>2]|0)+24>>2]|0;e=Qm(m,c[l+4>>2]|0)|0;if(e)break a;k=c[l+16>>2]|0;g=m+48|0;h=c[g>>2]|0;f=m+56|0;if(!h){e=Kp(i,g)|0;i=f;c[i>>2]=0;c[i+4>>2]=0;if(e)break a;h=c[g>>2]|0;g=0;f=0}else{g=c[f>>2]|0;f=c[f+4>>2]|0}c[l+48>>2]=h;l=l+8|0;c[l>>2]=g;c[l+4>>2]=f;l=fw(g|0,f|0,k|0,((k|0)<0)<<31>>31|0)|0;e=m+56|0;c[e>>2]=l;c[e+4>>2]=C;e=Qp(j)|0;if(e)break a}p=p+1|0}while((p|0)<(n|0));e=c[b>>2]|0;q=12}else{e=n;q=12}while(0);if((q|0)==12){f=e+-1|0;b:do if((f|0)>0){j=b+12|0;k=b+8|0;h=e;g=e;i=f;while(1){e=(h|0)/2|0;if((g|0)>(e|0)){g=i-e<<1;e=g;g=g|1}else{g=i<<1;n=c[k>>2]|0;e=c[n+(g<<2)>>2]|0;g=c[n+((g|1)<<2)>>2]|0}f=c[j>>2]|0;if(c[f+(e*56|0)+24>>2]|0){if(c[f+(g*56|0)+24>>2]|0){n=(Sp(c[r>>2]|0,c[f+(e*56|0)+32>>2]|0,c[f+(e*56|0)+20>>2]|0,c[f+(g*56|0)+32>>2]|0,c[f+(g*56|0)+20>>2]|0)|0)<1;e=n?e:g}}else e=g;c[(c[k>>2]|0)+(i<<2)>>2]=e;e=i+-1|0;if((e|0)<=0)break b;g=i;h=c[b>>2]|0;i=e}}while(0);e=d[(c[a+12>>2]|0)+7>>0]|0}return e|0}function Rm(f){f=f|0;var g=0,h=0,i=0,j=0,k=0;i=f+76|0;do{g=b[i>>1]|0;h=c[f+(g<<2)+120>>2]|0;if(a[h+5>>0]|0){g=0;break}j=c[h+56>>2]|0;g=e[f+(g<<1)+78>>1]<<1;k=c[h+64>>2]|0;g=(d[k+g>>0]<<8|d[k+(g|1)>>0])&e[h+20>>1];g=nm(f,d[j+(g+1)>>0]<<16|d[j+g>>0]<<24|d[j+(g+2)>>0]<<8|d[j+(g+3)>>0])|0}while((g|0)==0);return g|0}function Sm(a,b){a=a|0;b=b|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,r=0,s=0,t=0,u=0;q=a+8|0;g=c[(c[q>>2]|0)+4>>2]|0;u=c[a+4>>2]|0;s=a+12|0;e=Qp((c[s>>2]|0)+(g*56|0)|0)|0;if(!e){e=c[s>>2]|0;f=g|1;a=(c[a>>2]|0)+g|0;a:do if((a|0)>1){m=e;n=a;i=c[e+(f*56|0)+32>>2]|0;o=e+((g&65534)*56|0)|0;g=e+(f*56|0)|0;while(1){p=o+24|0;j=o;k=o+32|0;l=o+20|0;e=m;h=n;a=i;while(1){f=h;h=(h|0)/2|0;if(!(c[p>>2]|0)){i=a;break}if(((c[g+24>>2]|0)!=0?(r=Sp(u,c[k>>2]|0,c[l>>2]|0,a,c[g+20>>2]|0)|0,(r|0)>=0):0)?!((r|0)==0&o>>>0<g>>>0):0){t=10;break}i=c[s>>2]|0;a=c[q>>2]|0;c[a+(h<<2)>>2]=(j-i|0)/56|0;g=c[a+((h^1)<<2)>>2]|0;if((f|0)<=3){e=i;break a}else{e=i;a=c[i+(g*56|0)+32>>2]|0;g=i+(g*56|0)|0}}if((t|0)==10){t=0;e=c[s>>2]|0;i=(c[p>>2]|0)==0?a:0}a=c[q>>2]|0;c[a+(h<<2)>>2]=(g-e|0)/56|0;if((f|0)>3){m=e;n=h;o=e+((c[a+((h^1)<<2)>>2]|0)*56|0)|0}else break}}else a=c[q>>2]|0;while(0);c[b>>2]=(c[e+((c[a+4>>2]|0)*56|0)+24>>2]|0)==0&1;e=d[(c[u+12>>2]|0)+7>>0]|0}return e|0}function Tm(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=b+4|0;g=c[f>>2]|0;c[g+4>>2]=c[b>>2];b=Hn(g,d,0)|0;if(!b){b=c[(c[f>>2]|0)+8>>2]|0;if(b)do{if(a[b+72>>0]&16)a[b+73>>0]=0;b=c[b+8>>2]|0}while((b|0)!=0);b=Tp(g,d,0,e)|0}return b|0}function Um(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;z=i;i=i+32|0;if((i|0)>=(j|0))ba();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))ba();p=q;g=d+4|0;if(a[g>>0]|0){e=mn(d)|0;if(!e){m=a[g>>0]|0;f=4}}else{m=0;f=4}do if((f|0)==4){h=c[d>>2]|0;n=c[d+60>>2]|0;k=c[d+212>>2]|0;e=d+160|0;f=c[e>>2]|0;e=c[e+4>>2]|0;l=d+208|0;c[l>>2]=0;g=(c[h+4>>2]|0)+112|0;o=mg(g,0)|0;if(!o)e=7;else{bw(o|0,0,g|0)|0;c[o>>2]=h;r=o+112|0;g=o+8|0;c[g>>2]=r;c[o+4>>2]=n;b[o+40>>1]=-1;d=o+16|0;c[d>>2]=f;c[d+4>>2]=e;c[o+100>>2]=k;d=o+48|0;a[d>>0]=1;f=o+49|0;a[f>>0]=1;a[o+43>>0]=m<<24>>24!=0?2:0;c[p>>2]=524294;e=pc[c[h+24>>2]&31](h,k,r,524294,p)|0;if(e){cq(o,0);f=c[g>>2]|0;g=c[f>>2]|0;if(g){hc[c[g+4>>2]&127](f)|0;c[f>>2]=0}Sc(o);break}if(c[p>>2]&1)a[o+46>>0]=1;g=hc[c[(c[n>>2]|0)+48>>2]&127](n)|0;if(g&1024)a[d>>0]=0;if(g&4096)a[f>>0]=0;c[l>>2]=o;e=0}}while(0);i=q;return e|0}function mn(b){b=b|0;var d=0,e=0,f=0;f=bl(b,4)|0;if((f|0)!=0?(d=c[b+60>>2]|0,e=c[d>>2]|0,(e|0)!=0):0){if(!(a[b+13>>0]|0))nc[c[e+32>>2]&127](d,1)|0;d=b+17|0;if((a[d>>0]|0)!=5)a[d>>0]=1}return f|0}function nn(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();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))ba();D=F;A=F+4|0;c[A>>2]=0;E=ih(e,536,0)|0;a:do if(E){bw(E|0,0,536)|0;c[E+476>>2]=k;r=e+20|0;k=c[r>>2]|0;b:do if((k|0)>0){s=e+16|0;p=0;while(1){q=c[(c[s>>2]|0)+(p<<4)+4>>2]|0;if(q){c[(c[q+4>>2]|0)+4>>2]=c[q>>2];n=Zk(q,1,1)|0;if(n)break;k=c[r>>2]|0}p=p+1|0;if((p|0)>=(k|0))break b}c[D>>2]=c[(c[s>>2]|0)+(p<<4)>>2];qg(e,n,40984,D);p=E;break a}while(0);nl(e);c[E>>2]=e;c[E+424>>2]=0;do if((g|0)>-1){if((g|0)!=0?(a[f+(g+-1)>>0]|0)==0:0){B=21;break}if((c[e+92>>2]|0)<(g|0)){qg(e,18,41016,D);if(!e){p=E;n=18;break a}if(!(a[e+65>>0]|0)){p=E;n=c[e+56>>2]&18;break a}else{Ml(e);p=E;n=7;break a}}else{if((f|0)!=0?(o=fw(g|0,((g|0)<0)<<31>>31|0,1,0)|0,o=ih(e,o,C)|0,(o|0)!=0):0){gw(o|0,f|0,g|0)|0;a[o+g>>0]=0;Hh(E,o,A)|0;ig(e,o);n=E+480|0;c[n>>2]=f+((c[n>>2]|0)-o);break}c[E+480>>2]=f+g;break}}else B=21;while(0);if((B|0)==21)Hh(E,f,A)|0;s=e+65|0;k=E+12|0;if(!(a[s>>0]|0)){p=E+12|0;if((c[k>>2]|0)==101)c[p>>2]=0}else{c[k>>2]=7;p=E+12|0}c:do if((a[E+17>>0]|0)!=0?(t=c[E>>2]|0,u=t+20|0,(c[u>>2]|0)>0):0){o=t+16|0;r=0;while(1){k=c[o>>2]|0;n=c[k+(r<<4)+4>>2]|0;if(n){if(!(a[n+8>>0]|0)){k=ug(n,0)|0;if((k|0)==7|(k|0)==3082)break;else if(k)break c;k=c[o>>2]|0;q=1}else q=0;g=c[n+4>>2]|0;c[g+4>>2]=c[n>>2];g=c[(c[g+12>>2]|0)+56>>2]|0;if((d[g+41>>0]<<16|d[g+40>>0]<<24|d[g+42>>0]<<8|d[g+43>>0]|0)!=(c[c[k+(r<<4)+12>>2]>>2]|0)){rm(t,r);c[p>>2]=17}if(q)qn(n)|0}r=r+1|0;if((r|0)>=(c[u>>2]|0))break c}a[t+65>>0]=1}while(0);if(a[s>>0]|0)c[p>>2]=7;if(m)c[m>>2]=c[E+480>>2];n=c[p>>2]|0;q=(n|0)==0;do if(q?(w=E+8|0,v=c[w>>2]|0,(v|0)!=0):0){p=a[E+450>>0]|0;if(!(p<<24>>24))break;else if(p<<24>>24==2){eq(v,4);o=8;k=12}else{eq(v,8);o=0;k=8}p=o;do{fq(c[w>>2]|0,p-o|0,0,c[41040+(p<<2)>>2]|0,0);p=p+1|0}while((p|0)<(k|0))}while(0);o=E+8|0;if((a[e+145>>0]|0)==0?(z=c[o>>2]|0,x=(c[E+480>>2]|0)-f|0,(z|0)!=0):0){if((f|0)!=0?(w=c[z>>2]|0,y=fw(x|0,((x|0)<0)<<31>>31|0,1,0)|0,y=ih(w,y,C)|0,(y|0)!=0):0){gw(y|0,f|0,x|0)|0;a[y+x>>0]=0;p=y}else p=0;c[z+168>>2]=p;z=z+88|0;b[z>>1]=b[z>>1]&-257|(h&65535)<<8&256}p=c[o>>2]|0;do if(!p)B=60;else{if(q?(a[s>>0]|0)==0:0){B=60;break}Jg(p)|0}while(0);if((B|0)==60)c[l>>2]=p;o=c[A>>2]|0;do if(!o){c[e+52>>2]=n;o=c[e+236>>2]|0;if(o){p=o+8|0;if(!(b[p>>1]&9312)){b[p>>1]=1;break}else{rg(o);break}}}else{c[D>>2]=o;qg(e,n,10344,D);ig(e,o)}while(0);o=E+528|0;p=c[o>>2]|0;if(!p)p=E;else{do{c[o>>2]=c[p+4>>2];ig(e,p);p=c[o>>2]|0}while((p|0)!=0);p=E}}else{p=0;n=7}while(0);yh(p);ig(e,E);D=Kg(e,n)|0;i=F;return D|0}function Cn(b){b=b|0;var d=0,e=0;e=c[b>>2]|0;if((a[e+145>>0]|0)==0?(d=Vh(e,b+4|0)|0,(d|0)!=0):0){c[b+12>>2]=d;e=b+64|0;c[e>>2]=(c[e>>2]|0)+1}else d=0;return d|0}function Dn(a){a=a|0;var b=0,d=0,f=0,g=0,h=0;f=c[a+24>>2]|0;h=f+84|0;b=c[h>>2]|0;if(!b){b=1020;d=0}else{b=b*40|0;d=0}g=a+4|0;a=no(c[f>>2]|0,c[g>>2]|0,b,d)|0;d=(a|0)!=0;if(d){b=c[f>>2]|0;do if(!b)b=hc[c[8744+48>>2]&127](a)|0;else{if((c[b+276>>2]|0)>>>0<=a>>>0?(c[b+280>>2]|0)>>>0>a>>>0:0){b=e[b+248>>1]|0;break}b=hc[c[8744+48>>2]&127](a)|0}while(0);c[h>>2]=(b>>>0)/20|0;c[g>>2]=a}return (d?0:7)|0}function En(a,d,e){a=a|0;d=d|0;e=e|0;a:do if(e)switch(d|0){case -10:{if(c[a+520>>2]|0)break a;wn(e);break a}case -11:{if(c[a+520>>2]|0)break a;Sc(e);break a}case -15:case -1:case -13:case -12:{ig(a,e);break a}case -5:{if(!(b[e+2>>1]&16))break a;ig(a,e);break a}case -6:{if(c[a+520>>2]|0)break a;a=(c[e>>2]|0)+-1|0;c[e>>2]=a;if(a)break a;Sc(e);break a}case -8:{if(!(c[a+520>>2]|0)){Ih(e);break a}if(c[e+24>>2]|0)ig(a,c[e+20>>2]|0);ig(a,e);break a}default:break a}while(0);return}function Fn(e,f){e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;g=c[f>>2]|0;p=c[e+24>>2]|0;q=p+112|0;k=c[q>>2]|0;n=e+88|0;b[n>>1]=b[n>>1]&-193|64;h=c[e+32>>2]|0;a:do if((h|0)>0){j=c[e+4>>2]|0;while(1){h=h+-1|0;i=d[j>>0]|0;switch(i|0){case 2:case 3:{o=7;break}case 12:case 13:case 11:{b[n>>1]=b[n>>1]&-193|128;break}case 15:{r=c[j+8>>2]|0;g=(r|0)>(g|0)?r:g;break}case 6:case 8:{c[j+16>>2]=77;a[j+1>>0]=-19;break}case 5:case 7:case 9:{c[j+16>>2]=76;a[j+1>>0]=-19;break}case 10:case 1:{r=d[j+3>>0]|0;g=(r|0)>(g|0)?r:g;break}case 14:{r=c[j+-16>>2]|0;g=(r|0)>(g|0)?r:g;break}case 4:{if(!(c[j+8>>2]|0))o=7;else{b[n>>1]=b[n>>1]&-65;o=7}break}default:{}}if((o|0)==7){o=0;b[n>>1]=b[n>>1]|128}i=a[34168+i>>0]|0;a[j+2>>0]=i;if((i&1)!=0?(l=j+8|0,m=c[l>>2]|0,(m|0)<0):0)c[l>>2]=c[k+(~m<<2)>>2];if((h|0)<=0)break a;else j=j+20|0}}while(0);ig(c[e>>2]|0,c[q>>2]|0);c[q>>2]=0;c[p+108>>2]=0;c[f>>2]=g;return}function Gn(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;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}
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))ba();_=ea+48|0;Y=ea+24|0;X=ea+160|0;F=ea+156|0;P=ea+152|0;I=ea+148|0;S=ea+144|0;L=ea+140|0;E=ea+16|0;ca=ea;v=ea+128|0;u=ea+116|0;w=ea+96|0;l=ea+88|0;da=f+8|0;$=c[da>>2]|0;aa=c[f>>2]|0;c[ca+0>>2]=c[9286];c[ca+4>>2]=c[9287];c[ca+8>>2]=c[9288];a:do switch(g|0){case 5:{a[$+450>>0]=0;c[$+440>>2]=0;break}case 7:{a[$+450>>0]=2;c[$+440>>2]=0;break}case 6:{a[$+450>>0]=1;c[$+440>>2]=0;break}case 38:{_=c[f+(aa+-2<<4)+16>>2]|0;c[ca>>2]=_;c[ca+4>>2]=(c[$+504>>2]|0)-_+(c[$+508>>2]|0);break}case 39:{u=f+(aa<<4)+16|0;s=c[$>>2]|0;k=c[$+484>>2]|0;b:do if(k){t=k+38|0;if((b[t>>1]|0)>=(c[s+96>>2]|0)){c[_>>2]=c[k>>2];ph($,36528,_);break}r=Sq(s,u)|0;if(r){p=b[t>>1]|0;h=p<<16>>16;c:do if(p<<16>>16>0){q=a[9328+(d[r>>0]|0)>>0]|0;n=c[k+4>>2]|0;o=r+1|0;l=0;while(1){m=c[n+(l*24|0)>>2]|0;if(q<<24>>24==(a[9328+(d[m>>0]|0)>>0]|0)?($c(o,m+1|0)|0)==0:0)break;l=l+1|0;if((l|0)>=(h|0))break c}c[_>>2]=r;ph($,36552,_);ig(s,r);break b}else n=c[k+4>>2]|0;while(0);o=k+4|0;do if(!(h&7)){n=no(s,n,(h*24|0)+192|0,0)|0;if(!n){ig(s,r);break b}else{c[o>>2]=n;p=b[t>>1]|0;break}}while(0);_=p<<16>>16;Z=n+(_*24|0)|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>>2]=r;a[n+(_*24|0)+21>>0]=65;a[n+(_*24|0)+22>>0]=1;b[t>>1]=(b[t>>1]|0)+1<<16>>16}}while(0);Y=u;Z=c[Y+4>>2]|0;_=ca;c[_>>2]=c[Y>>2];c[_+4>>2]=Z;c[$+324>>2]=0;break}case 22:{Pq($,0,f+(aa<<4)+16|0);break}case 23:{Pq($,1,f+(aa<<4)+16|0);break}case 8:{v=c[$>>2]|0;z=v+65|0;if(((a[z>>0]|0)==0?(a[$+18>>0]|0)==0:0)?(V=$+64|0,(c[V>>2]|0)==0):0){y=Kq($)|0;if(y){do{}while((Lq(y,61)|0)!=0);sh(y,24,0,0,0)|0;do if(!(a[z>>0]|0)){o=$+332|0;s=c[o>>2]|0;if((s|0)==0?(c[$+316>>2]|0)==0:0)break;p=y+32|0;q=c[p>>2]|0;if(q)c[(c[y+4>>2]|0)+8>>2]=q;c[(c[y+24>>2]|0)+88>>2]=q+-1;t=v+20|0;d:do if((c[t>>2]|0)>0){h=y+96|0;k=$+328|0;l=v+16|0;m=v+145|0;n=y+4|0;r=0;while(1){u=1<<r;if(((u&s|0)!=0?(c[h>>2]=c[h>>2]|u,_=c[(c[(c[l>>2]|0)+(r<<4)+12>>2]|0)+4>>2]|0,th(y,sh(y,4,r,(c[k>>2]&u|0)!=0&1,c[$+(r<<2)+336>>2]|0)|0,_,-14),(a[m>>0]|0)==0):0)?(K=c[n>>2]|0,(K|0)!=0):0)a[K+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=1;r=r+1|0;if((r|0)>=(c[t>>2]|0))break d;s=c[o>>2]|0}}while(0);p=$+452|0;if((c[p>>2]|0)>0){o=$+520|0;n=0;do{q=c[(c[(c[o>>2]|0)+(n<<2)>>2]|0)+60>>2]|0;e:do if(!q)q=0;else while(1){if((c[q>>2]|0)==(v|0))break e;q=c[q+24>>2]|0;if(!q){q=0;break}}while(0);th(y,sh(y,146,0,0,0)|0,q,-10);n=n+1|0}while((n|0)<(c[p>>2]|0))}c[p>>2]=0;p=Kq($)|0;o=$+396|0;if((c[o>>2]|0)>0){n=$+400|0;m=0;do{Y=c[n>>2]|0;_=c[Y+(m<<4)+12>>2]|0;th(p,sh(p,145,c[Y+(m<<4)>>2]|0,c[Y+(m<<4)+4>>2]|0,d[Y+(m<<4)+8>>0]|0)|0,_,-2);m=m+1|0}while((m|0)<(c[o>>2]|0))}k=c[$+8>>2]|0;q=c[$+404>>2]|0;if(q){h=(c[$>>2]|0)+16|0;r=k+32|0;s=k+4|0;do{o=c[q+8>>2]|0;p=c[q+12>>2]|0;Mq($,0,o,c[(c[(c[h>>2]|0)+(o<<4)+12>>2]|0)+72>>2]|0,54);o=p+1|0;sh(k,28,0,p,o)|0;n=c[r>>2]|0;l=p+-1|0;m=c[c[q+4>>2]>>2]|0;th(k,sh(k,97,0,l,0)|0,m,0);m=n+9|0;sh(k,108,0,m,0)|0;sh(k,47,0,0,p)|0;sh(k,78,l,n+7|0,p)|0;l=c[s>>2]|0;if(l)a[l+(((c[r>>2]|0)+-1|0)*20|0)+3>>0]=16;sh(k,103,0,o,0)|0;sh(k,47,0,1,p)|0;sh(k,16,0,m,0)|0;sh(k,9,0,n+2|0,0)|0;sh(k,25,0,p,0)|0;sh(k,61,0,0,0)|0;q=c[q>>2]|0}while((q|0)!=0)}p=c[$+316>>2]|0;if((p|0)!=0?(a[$+23>>0]=0,(c[p>>2]|0)>0):0){o=p+4|0;n=0;do{_=c[o>>2]|0;Nq($,c[_+(n*20|0)>>2]|0,c[_+(n*20|0)+16>>2]|0);n=n+1|0}while((n|0)<(c[p>>2]|0))}sh(y,16,0,1,0)|0}while(0);if((c[V>>2]|0)==0?(a[z>>0]|0)==0:0){if((c[$+404>>2]|0)!=0?(W=$+68|0,(c[W>>2]|0)==0):0)c[W>>2]=1;wh(y,$);c[$+12>>2]=101;a[$+16>>0]=0}else Z=48}else Z=48;if((Z|0)==48)c[$+12>>2]=1;c[$+68>>2]=0;c[$+72>>2]=0;c[$+76>>2]=0;c[$+440>>2]=0;c[$+332>>2]=0}break}case 58:{c[v>>2]=Vq($,157,c[f+(aa<<4)+16>>2]|0,0,0)|0;c[v+4>>2]=c[f+(aa+-1<<4)+16>>2];c[v+8>>2]=c[f+(aa<<4)+24>>2];Uq($,v);break}case 59:{_=f+(aa<<4)+16|0;c[u>>2]=Vq($,97,0,0,_)|0;_=c[_>>2]|0;c[u+4>>2]=_;c[u+8>>2]=_+(c[f+(aa<<4)+20>>2]|0);Uq($,u);break}case 61:{k=c[f+(aa<<4)+16>>2]|0;l=c[$+484>>2]|0;if((l|0)!=0?(s=b[l+38>>1]|0,s<<16>>16>=1):0)a[(c[l+4>>2]|0)+(((s<<16>>16)+-1|0)*24|0)+20>>0]=k;break}case 70:{c[ca>>2]=0;break}case 62:{Wq($,0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0,c[f+(aa+-2<<4)+16>>2]|0);break}case 63:{Xq($,0,0,0,0,c[f+(aa<<4)+16>>2]|0,0,0,0,0)|0;break}case 64:{Yq($,c[f+(aa+-1<<4)+16>>2]|0);break}case 9:{l=c[f+(aa+-1<<4)+16>>2]|0;k=c[$>>2]|0;if((Oq($,22,37104,0,0)|0)==0?(B=Kq($)|0,(B|0)!=0):0){if((l|0)!=7?(D=k+20|0,(c[D>>2]|0)>0):0){l=(l|0)==9?2:1;k=B+96|0;n=0;do{sh(B,4,n,l,0)|0;c[k>>2]=c[k>>2]|1<<n;n=n+1|0}while((n|0)<(c[D>>2]|0))}sh(B,3,0,0,0)|0}break}case 24:{Pq($,2,f+(aa<<4)+16|0);break}case 26:{Qq($,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0,c[f+(aa+-4<<4)+16>>2]|0,0,0,c[f+(aa+-2<<4)+16>>2]|0);break}case 221:case 218:case 108:case 97:case 85:case 83:case 81:case 68:case 31:case 28:{c[ca>>2]=0;break}case 27:{a[(c[$>>2]|0)+250>>0]=0;Z=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break}case 222:case 219:case 107:case 84:case 69:case 30:case 29:{c[ca>>2]=1;break}case 32:{Rq($,f+(aa+-2<<4)+16|0,f+(aa+-1<<4)+16|0,a[f+(aa<<4)+16>>0]|0,0);break}case 33:{_=f+(aa<<4)+16|0;Rq($,0,0,0,c[_>>2]|0);Ik(c[$>>2]|0,c[_>>2]|0,1);break}case 34:{a[ca>>0]=0;break}case 35:{l=c[f+(aa<<4)+20>>2]|0;k=c[f+(aa<<4)+16>>2]|0;if((l|0)==5?(Bc(k,20456,5)|0)==0:0){a[ca>>0]=32;break a}a[ca>>0]=0;c[_>>2]=l;c[_+4>>2]=k;ph($,20464,_);break}case 44:{l=f+(aa<<4)+16|0;k=c[$+484>>2]|0;if((k|0)!=0?(G=b[k+38>>1]|0,G<<16>>16>=1):0){_=(G<<16>>16)+-1|0;Z=c[k+4>>2]|0;$=Sq(c[$>>2]|0,l)|0;c[Z+(_*24|0)+12>>2]=$;a[Z+(_*24|0)+21>>0]=Tq($,Z+(_*24|0)+22|0)|0}break}case 65:{Zq($,0,f+(aa+-2<<4)+16|0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0);break}case 66:{k=c[f+(aa<<4)+16>>2]|0;l=c[$+484>>2]|0;if((l|0)!=0?(r=c[l+16>>2]|0,(r|0)!=0):0)a[r+24>>0]=k;break}case 67:{n=c[$+484>>2]|0;if((n|0)!=0?(A=(b[n+38>>1]|0)+-1|0,o=c[$>>2]|0,m=Sq(o,f+(aa<<4)+16|0)|0,(m|0)!=0):0){if(!(_q($,m)|0)){ig(o,m);break a}p=n+4|0;ig(o,c[(c[p>>2]|0)+(A*24|0)+16>>2]|0);c[(c[p>>2]|0)+(A*24|0)+16>>2]=m;l=c[n+8>>2]|0;if(l)do{if((b[c[l+4>>2]>>1]|0)==(A|0))c[c[l+32>>2]>>2]=c[(c[p>>2]|0)+(A*24|0)+16>>2];l=c[l+20>>2]|0}while((l|0)!=0)}break}case 47:{$=c[f+(aa+-5<<4)+16>>2]|0;c[ca>>2]=$;c[ca+4>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0)-$;break}case 49:{$=c[f+(aa+-1<<4)+16>>2]|0;c[ca>>2]=$;c[ca+4>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0)-$;break}case 92:case 54:{Z=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=$+320|0;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break}case 57:case 55:{Uq($,f+(aa<<4)+16|0);break}case 56:{Uq($,f+(aa+-1<<4)+16|0);break}case 279:case 263:case 262:case 261:case 260:case 259:case 258:case 257:case 256:case 247:case 150:case 141:case 131:case 130:case 48:case 45:case 42:case 41:case 40:{Z=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break}case 46:{$=c[f+(aa+-3<<4)+16>>2]|0;c[ca>>2]=$;c[ca+4>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0)-$;break}case 224:{h=Vq($,119,0,0,0)|0;c[ca>>2]=h;if(!h)Ik(c[$>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,1);else{c[h+20>>2]=c[f+(aa+-1<<4)+16>>2];_=c[ca>>2]|0;Z=_+4|0;c[Z>>2]=c[Z>>2]|2099200;ur($,_)}c[ca+4>>2]=c[f+(aa+-2<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 226:{l=aa+-1|0;k=f+(l<<4)+16|0;o=f+(aa<<4)+16|0;n=lr(c[$>>2]|0,0,k,o)|0;p=aa+-3|0;m=Vq($,75,c[f+(p<<4)+16>>2]|0,0,0)|0;c[ca>>2]=m;if(!m){zo(c[$>>2]|0,n);n=0}else{c[m+20>>2]=gr($,0,n,0,0,0,0,0,0,0)|0;n=c[ca>>2]|0;_=n+4|0;c[_>>2]=c[_>>2]|2099200;ur($,n)}if(c[f+(aa+-2<<4)+16>>2]|0)c[ca>>2]=Vq($,19,n,0,0)|0;c[ca+4>>2]=c[f+(p<<4)+20>>2];h=c[o>>2]|0;if(!h)h=(c[k>>2]|0)+(c[f+(l<<4)+20>>2]|0)|0;else h=h+(c[f+(aa<<4)+20>>2]|0)|0;c[ca+8>>2]=h;break}case 225:{l=aa+-4|0;h=Vq($,75,c[f+(l<<4)+16>>2]|0,0,0)|0;c[ca>>2]=h;if(!h){Ik(c[$>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,1);h=0}else{c[h+20>>2]=c[f+(aa+-1<<4)+16>>2];h=c[ca>>2]|0;_=h+4|0;c[_>>2]=c[_>>2]|2099200;ur($,h)}if(c[f+(aa+-3<<4)+16>>2]|0)c[ca>>2]=Vq($,19,h,0,0)|0;c[ca+4>>2]=c[f+(l<<4)+20>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 227:{h=Vq($,20,0,0,0)|0;c[ca>>2]=h;if(!h)Ik(c[$>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,1);else{c[h+20>>2]=c[f+(aa+-1<<4)+16>>2];_=h+4|0;c[_>>2]=c[_>>2]|2099200;ur($,h)}c[ca+4>>2]=c[f+(aa+-3<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 228:{k=Vq($,136,c[f+(aa+-3<<4)+16>>2]|0,0,0)|0;c[ca>>2]=k;if(!k){Jk(c[$>>2]|0,c[f+(aa+-2<<4)+16>>2]|0);Ck(c[$>>2]|0,c[f+(aa+-1<<4)+16>>2]|0)}else{l=c[f+(aa+-1<<4)+16>>2]|0;h=c[f+(aa+-2<<4)+16>>2]|0;if(l)h=hr($,h,l)|0;c[k+20>>2]=h;ur($,c[ca>>2]|0)}c[ca+4>>2]=c[f+(aa+-4<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 291:case 240:{c[ca>>2]=2;break}case 241:{c[ca>>2]=0;break}case 239:{Xq($,f+(aa+-7<<4)+16|0,f+(aa+-6<<4)+16|0,lr(c[$>>2]|0,0,f+(aa+-4<<4)+16|0,0)|0,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa+-10<<4)+16>>2]|0,f+(aa+-11<<4)+16|0,c[f+(aa<<4)+16>>2]|0,0,c[f+(aa+-8<<4)+16>>2]|0)|0;break}case 229:{c[ca>>2]=hr($,hr($,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa+-2<<4)+16>>2]|0)|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 230:{c[ca>>2]=hr($,hr($,0,c[f+(aa+-2<<4)+16>>2]|0)|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 237:{c[ca>>2]=hr($,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 238:{c[ca>>2]=hr($,0,c[f+(aa<<4)+16>>2]|0)|0;break}case 245:{h=hr($,0,rr($,0,f+(aa+-1<<4)+16|0,1)|0)|0;c[ca>>2]=h;ir($,h,f+(aa+-2<<4)+16|0,1);if(h){if((c[h>>2]|0)>(c[(c[$>>2]|0)+96>>2]|0)){c[_>>2]=20632;ph($,34544,_)}a[(c[h+4>>2]|0)+(((c[h>>2]|0)+-1|0)*20|0)+12>>0]=c[f+(aa<<4)+16>>2]}break}case 244:{h=rr($,0,f+(aa+-1<<4)+16|0,1)|0;h=hr($,c[f+(aa+-4<<4)+16>>2]|0,h)|0;c[ca>>2]=h;ir($,h,f+(aa+-2<<4)+16|0,1);if(h){if((c[h>>2]|0)>(c[(c[$>>2]|0)+96>>2]|0)){c[_>>2]=20632;ph($,34544,_)}a[(c[h+4>>2]|0)+(((c[h>>2]|0)+-1|0)*20|0)+12>>0]=c[f+(aa<<4)+16>>2]}break}case 248:{s=c[f+(aa<<4)+16>>2]|0;p=c[f+(aa+-1<<4)+16>>2]|0;r=c[$>>2]|0;do if((a[r+65>>0]|0)==0?(Cn($)|0)==0:0){o=s+12|0;k=Zp(r,c[s+16>>2]|0,c[o>>2]|0)|0;if(!k){if(!p){c[_>>2]=s;c[_+4>>2]=0;ph($,33056,_)}else vr($,c[o>>2]|0);a[$+17>>0]=1;break}if(a[k+51>>0]&3){c[_>>2]=0;ph($,33080,_);break}p=c[k+24>>2]|0;f:do if(p){o=c[r+20>>2]|0;if((o|0)>0){n=c[r+16>>2]|0;q=0;while(1){m=q+1|0;if((c[n+(q<<4)+12>>2]|0)==(p|0)){m=q;break f}if((m|0)<(o|0))q=m;else break}}else m=0}else m=-1e6;while(0);p=c[k+12>>2]|0;o=r+16|0;n=c[(c[o>>2]|0)+(m<<4)>>2]|0;l=(m|0)==1?13184:13208;if(((Oq($,9,l,0,n)|0)==0?(Oq($,(m|0)==0?10:12,c[k>>2]|0,c[p>>2]|0,n)|0)==0:0)?(H=Kq($)|0,(H|0)!=0):0){Z=c[$+408>>2]|0;Z=(Z|0)==0?$:Z;wr($,m);Y=Z+328|0;c[Y>>2]=c[Y>>2]|1<<m;Z=Z+20|0;a[Z>>0]=d[Z>>0]|1;Z=c[k>>2]|0;c[_>>2]=c[(c[o>>2]|0)+(m<<4)>>2];c[_+4>>2]=l;c[_+8>>2]=Z;xr($,33160,_);yr($,m,28536,c[k>>2]|0);zr($,m);Ar($,c[k+40>>2]|0,m);$=c[k>>2]|0;th(H,sh(H,125,m,0,0)|0,$,0)}}while(0);zo(r,s);break}case 246:{c[ca>>2]=0;c[ca+4>>2]=0;break}case 250:case 249:{h=Kq($)|0;if(h){sh(h,13,0,0,0)|0;$=h+96|0;c[$>>2]=c[$>>2]|1}break}case 251:{Br($,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0,0,0);break}case 252:{Br($,f+(aa+-3<<4)+16|0,f+(aa+-2<<4)+16|0,f+(aa<<4)+16|0,0);break}case 253:{Br($,f+(aa+-4<<4)+16|0,f+(aa+-3<<4)+16|0,f+(aa+-1<<4)+16|0,0);break}case 254:{Br($,f+(aa+-3<<4)+16|0,f+(aa+-2<<4)+16|0,f+(aa<<4)+16|0,1);break}case 255:{Br($,f+(aa+-4<<4)+16|0,f+(aa+-3<<4)+16|0,f+(aa+-1<<4)+16|0,1);break}case 264:{h=c[f+(aa+-3<<4)+16>>2]|0;l=(c[f+(aa<<4)+16>>2]|0)-h+(c[f+(aa<<4)+20>>2]|0)|0;k=c[f+(aa+-1<<4)+16>>2]|0;Z=$+488|0;w=c[Z>>2]|0;x=c[$>>2]|0;c[Z>>2]=0;g:do if((c[$+64>>2]|0)==0&(w|0)!=0){v=c[w>>2]|0;m=w+20|0;s=c[m>>2]|0;h:do if(s){r=c[x+20>>2]|0;if((r|0)>0){p=c[x+16>>2]|0;n=0;while(1){o=n+1|0;if((c[p+(n<<4)+12>>2]|0)==(s|0))break h;if((o|0)<(r|0))n=o;else{n=o;break}}}else n=0}else n=-1e6;while(0);c[w+28>>2]=k;u=(k|0)==0;if(!u){p=k;do{c[p+4>>2]=w;p=c[p+32>>2]|0}while((p|0)!=0)}c[X>>2]=v;if(!v)p=0;else{p=v;while(1)if(!(a[p>>0]|0))break;else p=p+1|0;p=p-v&1073741823}c[X+4>>2]=p;c[Y>>2]=$;t=x+16|0;s=c[t>>2]|0;c[Y+12>>2]=c[s+(n<<4)>>2];c[Y+4>>2]=c[s+(n<<4)+12>>2];c[Y+16>>2]=10720;c[Y+20>>2]=X;s=(n|0)==1;c[Y+8>>2]=s&1;if(!u)do{if(br(Y,c[k+8>>2]|0)|0){k=0;l=w;break g}if(Cr(Y,c[k+20>>2]|0)|0){k=0;l=w;break g}if(Dr(Y,c[k+24>>2]|0)|0){k=0;l=w;break g}k=c[k+32>>2]|0}while((k|0)!=0);if(!(Cr(Y,c[w+12>>2]|0)|0)){p=x+145|0;if(!(a[p>>0]|0)){o=Kq($)|0;if(!o){k=0;l=w;break}Z=c[$+408>>2]|0;wr($,n);Z=((Z|0)==0?$:Z)+328|0;c[Z>>2]=c[Z>>2]|1<<n;if((h|0)!=0?(q=fw(l|0,0,1,0)|0,q=ih(x,q,C)|0,(q|0)!=0):0){gw(q|0,h|0,l|0)|0;a[q+l>>0]=0}else q=0;Z=c[w+4>>2]|0;c[_>>2]=c[(c[t>>2]|0)+(n<<4)>>2];c[_+4>>2]=s?13184:13208;c[_+8>>2]=v;c[_+12>>2]=Z;c[_+16>>2]=q;xr($,30008,_);ig(x,q);zr($,n);c[_>>2]=v;Er(o,n,qh(x,30072,_)|0);if(!(a[p>>0]|0)){k=0;l=w;break}}l=Ek((c[(c[t>>2]|0)+(n<<4)+12>>2]|0)+40|0,v,w)|0;if(l){a[x+65>>0]=1;k=0;break}k=c[m>>2]|0;if((k|0)==(c[w+24>>2]|0)){k=Zm(k+8|0,c[w+4>>2]|0,_)|0;if(!k)k=0;else k=c[k+8>>2]|0;k=k+64|0;c[w+32>>2]=c[k>>2];c[k>>2]=w;k=0}else k=0}else{k=0;l=w}}else l=w;while(0);fg(x,l);Bk(x,k);break}case 265:{A=f+(aa+-7<<4)+16|0;z=aa+-6|0;B=f+(z<<4)+16|0;o=c[f+(aa+-5<<4)+16>>2]|0;D=aa+-4|0;y=c[f+(D<<4)+16>>2]|0;D=c[f+(D<<4)+20>>2]|0;E=c[f+(aa+-2<<4)+16>>2]|0;F=c[f+(aa<<4)+16>>2]|0;k=c[f+(aa+-8<<4)+16>>2]|0;G=c[$>>2]|0;w=(c[f+(aa+-10<<4)+16>>2]|0)!=0;do if(w)if(!(c[f+(z<<4)+20>>2]|0)){c[Y>>2]=A;if(!E){p=0;q=0;break}else{s=1;Z=483;break}}else{ph($,29664,_);p=0;q=0;break}else{s=ar($,A,B,Y)|0;if((s|0)>-1&(E|0)!=0)Z=483;else{p=0;q=0}}while(0);do if((Z|0)==483){h=G+65|0;if(!(a[h>>0]|0)){u=G+145|0;if((a[u>>0]|0)!=0&(s|0)!=1){Z=E+12|0;ig(G,c[Z>>2]|0);c[Z>>2]=0}t=Fr($,E)|0;if((a[u>>0]|0)==0?((t|0)!=0?(c[f+(z<<4)+20>>2]|0)==0:0):0)s=(c[t+68>>2]|0)==(c[(c[G+16>>2]|0)+28>>2]|0)?1:s;if((a[h>>0]|0)==0?(O=c[Y>>2]|0,Z=c[$>>2]|0,c[X>>2]=$,Z=c[Z+16>>2]|0,c[X+12>>2]=c[Z+(s<<4)>>2],c[X+4>>2]=c[Z+(s<<4)+12>>2],c[X+16>>2]=10720,c[X+20>>2]=O,c[X+8>>2]=(s|0)==1&1,(Gr(X,E)|0)==0):0){u=Fr($,E)|0;if(!u){if((a[G+144>>0]|0)!=1){p=0;q=0;break}a[G+146>>0]=1;p=0;q=0;break}if(a[u+44>>0]&16){ph($,29712,_);p=0;q=0;break}q=Sq(G,O)|0;if(q)if(!(Hr($,q)|0)){x=G+16|0;Z=Zm((c[(c[x>>2]|0)+(s<<4)+12>>2]|0)+40|0,q,P)|0;if((Z|0)!=0?(c[Z+8>>2]|0)!=0:0)if(!k){c[_>>2]=O;ph($,29760,_);p=0;break}else{wr($,s);p=0;break}v=c[u>>2]|0;if(!(Bc(v,25568,7)|0)){ph($,29792,_);p=$+64|0;c[p>>2]=(c[p>>2]|0)+1;p=0;break}r=c[u+12>>2]|0;if((r|0)!=0&(o|0)!=49){c[_>>2]=(o|0)==35?29872:29880;c[_+4>>2]=E;c[_+8>>2]=0;ph($,29832,_);p=0;break}n=(o|0)==49;if((r|0)==0&n){c[_>>2]=E;c[_+4>>2]=0;ph($,29888,_);p=0;break}m=u+68|0;u=c[m>>2]|0;i:do if(u){t=c[G+20>>2]|0;if((t|0)>0){k=c[x>>2]|0;l=0;while(1){h=l+1|0;if((c[k+(l<<4)+12>>2]|0)==(u|0)){h=l;break i}if((h|0)<(t|0))l=h;else break}}else h=0}else h=-1e6;while(0);u=c[x>>2]|0;k=c[u+(h<<4)>>2]|0;if(w)t=c[u+16>>2]|0;else t=k;u=(h|0)==1;if((Oq($,u|w?5:7,q,v,t)|0)==0?(Oq($,18,u?13184:13208,0,k)|0)==0:0){p=ih(G,36,0)|0;if(!p){p=0;break}v=p+0|0;k=v+36|0;do{a[v>>0]=0;v=v+1|0}while((v|0)<(k|0));c[p>>2]=q;c[p+4>>2]=gh(G,c[E+16>>2]|0)|0;c[p+20>>2]=c[(c[x>>2]|0)+(s<<4)+12>>2];c[p+24>>2]=c[m>>2];a[p+8>>0]=y;a[p+9>>0]=n|(o|0)==35?1:2;c[p+12>>2]=Ir(G,F,1,0)|0;c[p+16>>2]=Jr(G,D)|0;c[$+488>>2]=p;q=0}else p=0}else p=0;else{p=0;q=0}}else{p=0;q=0}}else{p=0;q=0}}while(0);ig(G,q);zo(G,E);Dk(G,D);Ck(G,F);if(!(c[$+488>>2]|0))fg(G,p);if(!(c[f+(z<<4)+20>>2]|0)){Z=A;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break a}else{Z=B;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break a}}case 269:case 266:{c[ca>>2]=35;break}case 267:{c[ca>>2]=31;break}case 268:{c[ca>>2]=49;break}case 284:{l=c[$>>2]|0;k=c[f+(aa+-1<<4)+16>>2]|0;h=c[f+(aa<<4)+16>>2]|0;m=a[f+(aa+-5<<4)+16>>0]|0;n=Kr(l,110,f+(aa+-4<<4)+16|0)|0;if(n){c[n+24>>2]=Lr(l,k,1)|0;c[n+20>>2]=Ir(l,h,1,0)|0;a[n+1>>0]=m}Jk(l,k);Ck(l,h);c[ca>>2]=n;break}case 271:case 270:{c[ca>>2]=d[f+(aa<<4)+14>>0];c[ca+4>>2]=0;break}case 272:{c[ca>>2]=110;c[ca+4>>2]=c[f+(aa<<4)+16>>2];break}case 296:case 275:{c[ca>>2]=0;break}case 297:case 276:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 277:{_=f+(aa+-1<<4)+16|0;$=f+(aa+-2<<4)+16|0;c[(c[(c[$>>2]|0)+36>>2]|0)+32>>2]=c[_>>2];c[(c[$>>2]|0)+36>>2]=c[_>>2];c[ca>>2]=c[$>>2];break}case 278:{$=f+(aa+-1<<4)+16|0;_=c[$>>2]|0;c[_+36>>2]=_;c[ca>>2]=c[$>>2];break}case 282:{ph($,20736,_);break}case 280:{X=f+(aa<<4)+16|0;Y=c[X+4>>2]|0;Z=ca;c[Z>>2]=c[X>>2];c[Z+4>>2]=Y;ph($,20640,_);break}case 283:{ph($,20824,_);break}case 286:{h=c[$>>2]|0;k=c[f+(aa<<4)+16>>2]|0;l=Kr(h,109,f+(aa+-2<<4)+16|0)|0;if(l){c[l+20>>2]=Ir(h,k,1,0)|0;a[l+1>>0]=10}Ck(h,k);c[ca>>2]=l;break}case 287:{l=c[$>>2]|0;n=c[f+(aa<<4)+16>>2]|0;h=ih(l,40,0)|0;if(!h){Ik(l,n,1);h=0}else{v=h+0|0;k=v+40|0;do{a[v>>0]=0;v=v+1|0}while((v|0)<(k|0));a[h>>0]=119;c[h+8>>2]=n;a[h+1>>0]=10}c[ca>>2]=h;break}case 285:{n=c[$>>2]|0;m=c[f+(aa+-1<<4)+16>>2]|0;l=c[f+(aa<<4)+16>>2]|0;k=a[f+(aa+-4<<4)+16>>0]|0;h=Kr(n,108,f+(aa+-2<<4)+16|0)|0;if(!h)Dk(n,m);else{c[h+8>>2]=cr(n,l,1)|0;c[h+28>>2]=m;a[h+1>>0]=k}Ik(n,l,1);c[ca>>2]=h;break}case 288:{h=Vq($,57,0,0,0)|0;c[ca>>2]=h;if(h)a[h+1>>0]=4;c[ca+4>>2]=c[f+(aa+-3<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 289:{h=Vq($,57,0,0,f+(aa+-1<<4)+16|0)|0;c[ca>>2]=h;if(h)a[h+1>>0]=c[f+(aa+-3<<4)+16>>2];c[ca+4>>2]=c[f+(aa+-5<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 290:{c[ca>>2]=1;break}case 292:{c[ca>>2]=3;break}case 293:{k=c[f+(aa<<4)+16>>2]|0;h=c[f+(aa+-1<<4)+16>>2]|0;t=c[$>>2]|0;do if((a[t+65>>0]|0)==0?(Cn($)|0)==0:0){u=c[k+12>>2]|0;s=c[k+16>>2]|0;r=t+20|0;if((c[r>>2]|0)>0){n=(u|0)==0;m=t+16|0;l=0;p=0;do{o=(l|0)<2^l;q=c[m>>2]|0;if(!(!n?($c(c[q+(o<<4)>>2]|0,u)|0)!=0:0)){q=Zm((c[q+(o<<4)+12>>2]|0)+40|0,s,I)|0;if(q){p=c[q+8>>2]|0;if(p)break}else p=0}l=l+1|0}while((l|0)<(c[r>>2]|0));if(p){Mr($,p);break}}if(!h){c[_>>2]=k;c[_+4>>2]=0;ph($,29600,_)}else vr($,u);a[$+17>>0]=1}while(0);zo(t,k);break}case 294:{_=c[f+(aa+-3<<4)+16>>2]|0;Nr($,24,29360,_,_,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0);break}case 303:{Pr($,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0);break}case 304:{w=c[f+(aa+-3<<4)+16>>2]|0;u=f+(aa<<4)+16|0;v=c[$>>2]|0;k=v+24|0;l=c[k>>2]|0;do if((a[v+65>>0]|0)==0?(U=Qr($,0,w+8|0)|0,(U|0)!=0):0){q=c[$>>2]|0;x=U+68|0;s=c[x>>2]|0;j:do if(s){r=c[q+20>>2]|0;if((r|0)>0){q=c[q+16>>2]|0;o=0;while(1){p=o+1|0;if((c[q+(o<<4)+12>>2]|0)==(s|0)){p=o;break j}if((p|0)<(r|0))o=p;else break}}else p=0}else p=-1e6;while(0);h=c[(c[v+16>>2]|0)+(p<<4)>>2]|0;c[k>>2]=c[k>>2]|2097152;n=Sq(v,u)|0;if(n){if((Wh(v,n,h)|0)==0?(Zp(v,n,h)|0)==0:0){if(Rr($,c[U>>2]|0)|0)break;if(Hr($,n)|0)break;q=c[U>>2]|0;if(c[U+12>>2]|0){c[_>>2]=q;ph($,26088,_);break}if(Oq($,26,h,q,0)|0)break;if(dr($,U)|0)break;if(!(a[U+44>>0]&16))m=0;else{q=c[U+60>>2]|0;k:do if(!q)q=0;else while(1){if((c[q>>2]|0)==(v|0))break k;q=c[q+24>>2]|0;if(!q){q=0;break}}while(0);m=(c[(c[c[q+8>>2]>>2]|0)+76>>2]|0)==0?0:q}q=Kq($)|0;if(!q)break;Z=(m|0)!=0;o=$+408|0;Y=c[o>>2]|0;Y=(Y|0)==0?$:Y;wr($,p);X=Y+328|0;c[X>>2]=c[X>>2]|1<<p;Y=Y+20|0;a[Y>>0]=d[Y>>0]|Z&1;zr($,p);if(Z){Y=$+72|0;Z=(c[Y>>2]|0)+1|0;c[Y>>2]=Z;th(q,sh(q,97,0,Z,0)|0,n,0);th(q,sh(q,152,Z,0,0)|0,m,-10);Z=c[o>>2]|0;a[((Z|0)==0?$:Z)+21>>0]=1}u=c[U>>2]|0;t=Jn(u,-1)|0;do if((c[k>>2]&524288|0)!=0?(Q=Zm((c[x>>2]|0)+56|0,u,S)|0,(Q|0)!=0):0){q=c[Q+8>>2]|0;if(!q)break;o=q;q=0;do{q=Sr(c[$>>2]|0,q,c[c[o>>2]>>2]|0)|0;o=c[o+12>>2]|0}while((o|0)!=0);if(!q)break;c[_>>2]=h;c[_+4>>2]=(p|0)==1?13184:13208;c[_+8>>2]=u;c[_+12>>2]=n;c[_+16>>2]=q;xr($,26120,_);ig(v,q)}while(0);c[_>>2]=h;c[_+4>>2]=(p|0)==1?13184:13208;c[_+8>>2]=n;c[_+12>>2]=n;c[_+16>>2]=n;c[_+20>>2]=n;c[_+24>>2]=n;c[_+28>>2]=t;c[_+32>>2]=u;xr($,26192,_);if(Wh(v,26576,h)|0){Z=c[U>>2]|0;c[_>>2]=h;c[_+4>>2]=n;c[_+8>>2]=Z;xr($,26592,_)}p=Tr($,U)|0;if(p){c[_>>2]=n;c[_+4>>2]=n;c[_+8>>2]=p;xr($,26656,_);ig(v,p)}do if(c[k>>2]&524288){p=Zm((c[x>>2]|0)+56|0,c[U>>2]|0,_)|0;if(!p)break;p=c[p+8>>2]|0;if(!p)break;do{o=c[p>>2]|0;if((o|0)!=(U|0))Ur($,o,c[o>>2]|0);p=c[p+12>>2]|0}while((p|0)!=0)}while(0);Ur($,U,n);break}c[_>>2]=n;ph($,26024,_)}else n=0}else n=0;while(0);zo(v,w);ig(v,n);c[k>>2]=l;break}case 295:{_=c[f+(aa<<4)+16>>2]|0;Nr($,25,29176,_,0,0,_);break}case 300:{Or($,0,0);break}case 302:{Pr($,0,0);break}case 301:{Or($,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0);break}case 305:{v=c[$>>2]|0;if((c[$+64>>2]|0)==0?(J=v+65|0,(a[J>>0]|0)==0):0){l=c[$+484>>2]|0;q=c[l+68>>2]|0;l:do if(q){p=c[v+20>>2]|0;if((p|0)>0){o=c[v+16>>2]|0;m=0;while(1){n=m+1|0;if((c[o+(m<<4)+12>>2]|0)==(q|0)){x=m;break l}if((n|0)<(p|0))m=n;else{x=n;break}}}else x=0}else x=-1e6;while(0);h=c[(c[v+16>>2]|0)+(x<<4)>>2]|0;k=(c[l>>2]|0)+16|0;r=(b[l+38>>1]|0)+-1|0;p=c[l+4>>2]|0;q=c[p+(r*24|0)+4>>2]|0;w=Wh(v,k,h)|0;if(!(Oq($,26,h,c[w>>2]|0,0)|0)){if(!q)s=0;else s=(a[q>>0]|0)==101?0:q;if(a[p+(r*24|0)+23>>0]&1){ph($,25608,_);break a}if(c[l+8>>2]|0){ph($,25640,_);break a}u=v+24|0;if((c[u>>2]&524288|0)!=0?(c[l+16>>2]|0)!=0&(s|0)!=0:0){ph($,25672,_);break a}t=(s|0)!=0;if(!((a[p+(r*24|0)+20>>0]|0)==0|t)){ph($,25736,_);break a}do if(t){c[L>>2]=0;if(Vr(v,s,1,65,L)|0){a[J>>0]=1;break a}q=c[L>>2]|0;if(!q){ph($,25792,_);break a}else{Ih(q);break}}while(0);q=c[f+(aa<<4)+16>>2]|0;p=f+(aa<<4)+20|0;o=c[p>>2]|0;if((q|0)!=0?(R=fw(o|0,0,1,0)|0,R=ih(v,R,C)|0,(R|0)!=0):0){gw(R|0,q|0,o|0)|0;a[R+o>>0]=0;q=(c[p>>2]|0)+-1|0;p=c[u>>2]|0;m:do if((q|0)>0){q=R+q|0;do{Y=a[q>>0]|0;if(Y<<24>>24!=59?(a[10368+(Y&255)>>0]&1)==0:0)break m;a[q>>0]=0;q=q+-1|0}while(q>>>0>R>>>0)}while(0);c[u>>2]=c[u>>2]|2097152;Y=c[l+48>>2]|0;c[_>>2]=h;c[_+4>>2]=(x|0)==1?13184:13208;c[_+8>>2]=Y;c[_+12>>2]=R;c[_+16>>2]=Y+1;c[_+20>>2]=k;xr($,25840,_);ig(v,R);c[u>>2]=p}q=t?3:2;s=Kq($)|0;if(s){p=$+19|0;n=a[p>>0]|0;do if(n<<24>>24){_=n+-1<<24>>24;a[p>>0]=_;o=c[$+((_&255)<<2)+24>>2]|0;if(!(_<<24>>24)){p=c[$+72>>2]|0;Z=663;break}else{k=n+-2<<24>>24;a[p>>0]=k;k=c[$+((k&255)<<2)+24>>2]|0;break}}else{o=$+72|0;p=(c[o>>2]|0)+1|0;c[o>>2]=p;o=p;Z=663}while(0);if((Z|0)==663){k=p+1|0;c[$+72>>2]=k}sh(s,51,x,o,2)|0;m=s+96|0;c[m>>2]=c[m>>2]|1<<x;sh(s,25,q,k,0)|0;m=sh(s,83,k,0,o)|0;l=s+4|0;n=c[l>>2]|0;p=s+32|0;if(n)a[n+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=-112;sh(s,52,x,2,k)|0;p=c[p>>2]|0;if(p>>>0>m>>>0)c[(c[l>>2]|0)+(m*20|0)+8>>2]=p;c[(c[s+24>>2]|0)+88>>2]=p+-1;Wr($,o);Wr($,k)}Ur($,w,c[w>>2]|0)}}break}case 306:{t=c[$>>2]|0;a[t+250>>0]=0;h=c[f+(aa<<4)+16>>2]|0;u=t+65|0;do if((a[u>>0]|0)==0?(N=Qr($,0,h+8|0)|0,(N|0)!=0):0){if(a[N+44>>0]&16){ph($,25400,_);break}if(c[N+12>>2]|0){ph($,25440,_);break}if(!(Rr($,c[N>>2]|0)|0)){p=c[N+68>>2]|0;n:do if(p){o=c[t+20>>2]|0;if((o|0)>0){n=c[t+16>>2]|0;q=0;while(1){m=q+1|0;if((c[n+(q<<4)+12>>2]|0)==(p|0)){m=q;break n}if((m|0)<(o|0))q=m;else break}}else m=0}else m=-1e6;while(0);s=ih(t,76,0)|0;if(s){v=s+0|0;k=v+76|0;do{a[v>>0]=0;v=v+1|0}while((v|0)<(k|0));c[$+484>>2]=s;o=s+40|0;b[o>>1]=1;q=b[N+38>>1]|0;n=s+38|0;b[n>>1]=q;q=((((q<<16>>16)+-1|0)/8|0)*192|0)+192|0;p=ih(t,q,0)|0;if(p)bw(p|0,0,q|0)|0;q=s+4|0;c[q>>2]=p;c[_>>2]=c[N>>2];_=qh(t,25472,_)|0;c[s>>2]=_;p=c[q>>2]|0;if((p|0)==0|(_|0)==0){a[u>>0]=1;break}gw(p|0,c[N+4>>2]|0,(b[n>>1]|0)*24|0)|0;if((b[n>>1]|0)>0){p=0;do{_=c[q>>2]|0;Z=_+(p*24|0)|0;c[Z>>2]=gh(t,c[Z>>2]|0)|0;_=_+(p*24|0)+4|0;p=p+1|0;c[_+0>>2]=0;c[_+4>>2]=0;c[_+8>>2]=0;c[_+12>>2]=0}while((p|0)<(b[n>>1]|0))}c[s+68>>2]=c[(c[t+16>>2]|0)+(m<<4)+12>>2];c[s+48>>2]=c[N+48>>2];b[o>>1]=1;_=c[$+408>>2]|0;wr($,m);_=((_|0)==0?$:_)+328|0;c[_>>2]=c[_>>2]|1<<m;if(Kq($)|0)zr($,m)}}}while(0);zo(t,h);break}case 309:{Xr($,0);break}case 310:{Xr($,f+(aa<<4)+16|0);break}case 311:{k=f+(aa<<4)+16|0;Qq($,f+(aa+-3<<4)+16|0,f+(aa+-2<<4)+16|0,0,0,1,c[f+(aa+-4<<4)+16>>2]|0);q=c[$+484>>2]|0;if(q){h=c[$>>2]|0;p=c[q+68>>2]|0;o:do if(p){o=c[h+20>>2]|0;if((o|0)>0){m=c[h+16>>2]|0;l=0;while(1){n=l+1|0;if((c[m+(l<<4)+12>>2]|0)==(p|0)){n=l;break o}if((n|0)<(o|0))l=n;else break}}else n=0}else n=-1e6;while(0);l=q+44|0;a[l>>0]=d[l>>0]|16;c[q+52>>2]=0;Yr(h,q,Sq(h,k)|0);Yr(h,q,0);Yr(h,q,gh(h,c[q>>2]|0)|0);c[$+500>>2]=(c[k>>2]|0)+(c[f+(aa<<4)+20>>2]|0)-(c[$+496>>2]|0);l=c[q+56>>2]|0;if(l)Oq($,29,c[q>>2]|0,c[l>>2]|0,c[(c[(c[$>>2]|0)+16>>2]|0)+(n<<4)>>2]|0)|0}break}case 322:{c[ca>>2]=0;break}case 324:case 323:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 325:{c[ca>>2]=_r($,0,f+(aa+-5<<4)+16|0,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0)|0;break}case 326:{c[ca>>2]=_r($,c[f+(aa+-7<<4)+16>>2]|0,f+(aa+-5<<4)+16|0,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0)|0;break}case 314:{Zr($);c[$+512>>2]=0;c[$+516>>2]=0;break}case 318:case 317:case 316:{l=$+512|0;k=c[l>>2]|0;h=c[f+(aa<<4)+16>>2]|0;if(!k){c[l>>2]=h;h=c[f+(aa<<4)+20>>2]|0}else h=h+(c[f+(aa<<4)+20>>2]|0)-k|0;c[$+516>>2]=h;break}case 13:{c[ca>>2]=7;break}case 117:case 115:case 16:case 15:case 14:{c[ca>>2]=d[f+(aa<<4)+14>>0];break}case 18:case 17:{if((Oq($,22,37136,0,0)|0)==0?(y=Kq($)|0,(y|0)!=0):0)sh(y,3,1,0,0)|0;break}case 19:{if((Oq($,22,37120,0,0)|0)==0?(x=Kq($)|0,(x|0)!=0):0)sh(x,3,1,1,0)|0;break}case 74:{c[ca>>2]=c[f+(aa<<4)+16>>2];c[ca+4>>2]=255;break}case 76:{c[ca>>2]=7;break}case 75:{c[ca>>2]=c[f+(aa<<4)+16>>2]<<8;c[ca+4>>2]=65280;break}case 77:{c[ca>>2]=8;break}case 78:{c[ca>>2]=9;break}case 79:{c[ca>>2]=6;break}case 80:{c[ca>>2]=0;break}case 103:case 100:case 98:case 82:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 86:{c[ca+4>>2]=0;c[ca>>2]=0;break}case 71:{c[ca>>2]=c[f+(aa+-1<<4)+16>>2]&~c[f+(aa<<4)+20>>2]|c[f+(aa<<4)+16>>2];break}case 73:case 72:{c[ca>>2]=0;c[ca+4>>2]=0;break}case 93:{Wq($,c[f+(aa+-3<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0,c[f+(aa+-2<<4)+16>>2]|0,0);break}case 94:{Xq($,0,0,0,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0,0,0,0,0)|0;break}case 95:{Yq($,c[f+(aa+-2<<4)+16>>2]|0);break}case 87:{Z=f+(aa+-1<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break}case 90:{c[$+324>>2]=0;break}case 104:{c[ca>>2]=4;break}case 105:{c[ca>>2]=5;break}case 106:{$q($,c[f+(aa<<4)+16>>2]|0,0,c[f+(aa+-1<<4)+16>>2]|0);break}case 109:{h=aa+-7|0;o=f+(aa+-3<<4)+16|0;n=f+(aa+-2<<4)+16|0;u=c[f+(aa<<4)+16>>2]|0;q=c[f+(aa+-6<<4)+16>>2]|0;p=c[f+(aa+-4<<4)+16>>2]|0;c[F>>2]=0;t=c[$>>2]|0;if((c[$+440>>2]|0)>0){ph($,35440,_);Ik(t,u,1);break a}Qq($,o,n,q,1,0,p);l=c[$+484>>2]|0;if((l|0)!=0?(c[$+64>>2]|0)==0:0){ar($,o,n,F)|0;q=c[l+68>>2]|0;p:do if(q){o=c[t+20>>2]|0;if((o|0)>0){n=c[t+16>>2]|0;m=0;while(1){p=m+1|0;if((c[n+(m<<4)+12>>2]|0)==(q|0)){p=m;break p}if((p|0)<(o|0))m=p;else break}}else p=0}else p=-1e6;while(0);_=c[F>>2]|0;Z=c[$>>2]|0;c[X>>2]=$;Z=c[Z+16>>2]|0;c[X+12>>2]=c[Z+(p<<4)>>2];c[X+4>>2]=c[Z+(p<<4)+12>>2];c[X+16>>2]=35480;c[X+20>>2]=_;c[X+8>>2]=(p|0)==1&1;if(br(X,u)|0){Ik(t,u,1);break a}c[l+12>>2]=cr(t,u,1)|0;Ik(t,u,1);if(a[t+65>>0]|0)break a;if(!(a[t+145>>0]|0))dr($,l)|0;n=$+504|0;m=c[n>>2]|0;n=c[n+4>>2]|0;_=Y;c[_>>2]=m;c[_+4>>2]=n;_=a[m>>0]|0;if(!(_<<24>>24==59|_<<24>>24==0)){m=m+n|0;c[Y>>2]=m}o=Y+4|0;c[o>>2]=0;p=c[f+(h<<4)+16>>2]|0;n=m-p|0;do{_=n;n=n+-1|0;l=p+n|0;if((_|0)<=0)break}while((a[10368+(d[l>>0]|0)>>0]&1)!=0);c[Y>>2]=l;c[o>>2]=1;Rq($,0,Y,0,0);break a}Ik(t,u,1);break}case 96:{Zq($,c[f+(aa+-6<<4)+16>>2]|0,f+(aa+-3<<4)+16|0,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0);k=c[f+(aa<<4)+16>>2]|0;l=c[$+484>>2]|0;if((l|0)!=0?(n=c[l+16>>2]|0,(n|0)!=0):0)a[n+24>>0]=k;break}case 99:{c[ca>>2]=10;break}case 101:{a[ca>>0]=10;break}case 102:{a[ca>>0]=c[f+(aa<<4)+16>>2];break}case 110:{$q($,c[f+(aa<<4)+16>>2]|0,1,c[f+(aa+-1<<4)+16>>2]|0);break}case 111:{c[w+0>>2]=c[5124];c[w+4>>2]=c[5125];c[w+8>>2]=c[5126];c[w+12>>2]=c[5127];c[w+16>>2]=c[5128];_=f+(aa<<4)+16|0;er($,c[_>>2]|0,w)|0;Ik(c[$>>2]|0,c[_>>2]|0,1);break}case 112:{q=c[f+(aa<<4)+16>>2]|0;do if(q){c[q+68>>2]=c[f+(aa+-1<<4)+16>>2];l=c[q+52>>2]|0;if(l){m=128;n=1;o=q;p=0;while(1){c[o+56>>2]=p;Y=o+6|0;Z=e[Y>>1]|64;b[Y>>1]=Z;m=Z&m;if(!l)break;Z=l;l=c[l+52>>2]|0;n=n+1|0;p=o;o=Z}if(m){$=q+6|0;b[$>>1]=e[$>>1]|256;break}Z=c[(c[$>>2]|0)+104>>2]|0;if((Z|0)>0&(n|0)>(Z|0))ph($,20520,_)}}else Mn(c[$>>2]|0,c[f+(aa+-1<<4)+16>>2]|0);while(0);c[ca>>2]=q;break}case 120:{c[ca>>2]=gr($,c[f+(aa+-1<<4)+16>>2]|0,0,0,0,0,0,128,0,0)|0;break}case 118:{c[ca>>2]=gr($,c[f+(aa+-6<<4)+16>>2]|0,c[f+(aa+-5<<4)+16>>2]|0,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa+-3<<4)+16>>2]|0,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,b[f+(aa+-7<<4)+16>>1]|0,c[f+(aa<<4)+16>>2]|0,c[f+(aa<<4)+20>>2]|0)|0;break}case 119:case 113:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 114:{h=c[f+(aa<<4)+16>>2]|0;do if(h){if(c[h+52>>2]|0){c[l+4>>2]=0;h=gr($,0,fr($,0,0,0,l,h,0,0)|0,0,0,0,0,0,0,0)|0;if(!h){Z=192;break}}_=c[f+(aa+-1<<4)+16>>2]|0;a[h+4>>0]=_;c[h+52>>2]=c[f+(aa+-2<<4)+16>>2];if((_|0)!=116)a[$+22>>0]=1}else Z=192;while(0);if((Z|0)==192){Ik(c[$>>2]|0,c[f+(aa+-2<<4)+16>>2]|0,1);h=0}c[ca>>2]=h;break}case 160:case 158:{c[ca>>2]=0;break}case 159:{c[ca>>2]=1;break}case 165:{c[ca>>2]=0;c[ca+4>>2]=0;break}case 172:{l=c[f+(aa+-7<<4)+16>>2]|0;if(l){Z=$+532|0;c[l+4>>2]=c[Z>>2];c[Z>>2]=l;a[$+449>>0]=1}m=f+(aa+-4<<4)+16|0;kr($,c[m>>2]|0,f+(aa+-3<<4)+16|0);n=f+(aa+-1<<4)+16|0;l=c[n>>2]|0;if(l){if((c[l>>2]|0)>(c[(c[$>>2]|0)+96>>2]|0)){c[_>>2]=20560;ph($,34544,_);l=c[n>>2]|0}}else l=0;or($,c[m>>2]|0,l,c[f+(aa<<4)+16>>2]|0,d[f+(aa+-5<<4)+16>>0]|0);break}case 176:{h=c[f+(aa+-6<<4)+16>>2]|0;if(h){_=$+532|0;c[h+4>>2]=c[_>>2];c[_>>2]=h;a[$+449>>0]=1}pr($,c[f+(aa+-3<<4)+16>>2]|0,0,c[f+(aa+-2<<4)+16>>2]|0,d[f+(aa+-5<<4)+16>>0]|0);break}case 173:{_=hr($,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;c[ca>>2]=_;ir($,_,f+(aa+-2<<4)+16|0,1);break}case 174:{_=hr($,0,c[f+(aa<<4)+16>>2]|0)|0;c[ca>>2]=_;ir($,_,f+(aa+-2<<4)+16|0,1);break}case 175:{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}pr($,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,d[f+(aa+-4<<4)+16>>0]|0);break}case 181:{c[ca>>2]=qr(c[$>>2]|0,c[f+(aa+-2<<4)+16>>2]|0,f+(aa<<4)+16|0)|0;break}case 182:{c[ca>>2]=qr(c[$>>2]|0,0,f+(aa<<4)+16|0)|0;break}case 183:{$=f+(aa<<4)+16|0;c[ca+0>>2]=c[$+0>>2];c[ca+4>>2]=c[$+4>>2];c[ca+8>>2]=c[$+8>>2];break}case 177:{a[ca>>0]=a[f+(aa<<4)+16>>0]|0;break}case 178:{a[ca>>0]=5;break}case 184:{c[ca>>2]=c[f+(aa+-1<<4)+16>>2];c[ca+4>>2]=c[f+(aa+-2<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 191:case 190:case 185:{_=f+(aa<<4)+16|0;c[ca>>2]=Vq($,d[f+(aa<<4)+14>>0]|0,0,0,_)|0;$=c[_>>2]|0;c[ca+4>>2]=$;c[ca+8>>2]=$+(c[f+(aa<<4)+20>>2]|0);break}case 187:case 186:{_=f+(aa<<4)+16|0;c[ca>>2]=Vq($,27,0,0,_)|0;$=c[_>>2]|0;c[ca+4>>2]=$;c[ca+8>>2]=$+(c[f+(aa<<4)+20>>2]|0);break}case 188:{Z=f+(aa+-2<<4)+16|0;_=f+(aa<<4)+16|0;c[ca>>2]=Vq($,122,Vq($,27,0,0,Z)|0,Vq($,27,0,0,_)|0,0)|0;c[ca+4>>2]=c[Z>>2];c[ca+8>>2]=(c[_>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 189:{Z=f+(aa+-4<<4)+16|0;_=f+(aa<<4)+16|0;c[ca>>2]=Vq($,122,Vq($,27,0,0,Z)|0,Vq($,122,Vq($,27,0,0,f+(aa+-2<<4)+16|0)|0,Vq($,27,0,0,_)|0,0)|0,0)|0;c[ca+4>>2]=c[Z>>2];c[ca+8>>2]=(c[_>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 192:{u=f+(aa<<4)+16|0;t=f+(aa<<4)+20|0;do if(((c[t>>2]|0)>>>0>1?(z=c[u>>2]|0,(a[z>>0]|0)==35):0)?((d[z+1>>0]|0)+-48|0)>>>0<10:0){if(!(a[$+18>>0]|0)){c[_>>2]=u;ph($,20432,_);c[ca>>2]=0;break}o=Vq($,159,0,0,u)|0;c[ca>>2]=o;if(o)zn((c[u>>2]|0)+1|0,o+28|0)|0}else Z=298;while(0);q:do if((Z|0)==298?(M=Vq($,135,0,0,u)|0,c[ca>>2]=M,T=c[u>>2]|0,c[ca+4>>2]=T,c[ca+8>>2]=T+(c[t>>2]|0),T=c[$>>2]|0,(M|0)!=0):0){w=c[M+8>>2]|0;o=w+1|0;do if(a[o>>0]|0){v=(w|0)==0;if(v)x=0;else{q=w;while(1)if(!(a[q>>0]|0))break;else q=q+1|0;x=q-w&1073741823}r:do if((a[w>>0]|0)==63){Y=Ql(o,E,x+-1|0,1)|0;m=E;n=c[m>>2]|0;m=c[m+4>>2]|0;q=n&65535;b[M+32>>1]=q;o=c[T+124>>2]|0;Z=((o|0)<0)<<31>>31;if((m|0)<0|(m|0)==0&n>>>0<1|(Y|0)!=0|((m|0)>(Z|0)|(m|0)==(Z|0)&n>>>0>o>>>0)){c[_>>2]=o;ph($,33296,_);q=0}o=$+440|0;Z=c[o>>2]|0;Y=((Z|0)<0)<<31>>31;if((m|0)>(Y|0)|(m|0)==(Y|0)&n>>>0>Z>>>0)c[o>>2]=n}else{o=c[$+444>>2]|0;s:do if((o|0)>0){n=c[$+472>>2]|0;q=0;l=0;while(1){m=c[n+(q<<2)>>2]|0;if((m|0)!=0?(Wv(m,w)|0)==0:0)break;l=l+1<<16>>16;q=l<<16>>16;if((q|0)>=(o|0)){Z=315;break s}}q=q+1&65535;o=M+32|0;b[o>>1]=q;if(q<<16>>16)break r}else Z=315;while(0);if((Z|0)==315)o=M+32|0;Z=$+440|0;q=(c[Z>>2]|0)+1|0;c[Z>>2]=q;q=q&65535;b[o>>1]=q}while(0);m=q<<16>>16;if(q<<16>>16>0){q=$+444|0;if((m|0)>(c[q>>2]|0)){o=$+472|0;n=no(T,c[o>>2]|0,m<<2,0)|0;if(!n)break q;c[o>>2]=n;Z=c[q>>2]|0;bw(n+(Z<<2)|0,0,m-Z<<2|0)|0;c[q>>2]=m}if((a[w>>0]|0)==63){o=m+-1|0;if(!(c[(c[$+472>>2]|0)+(o<<2)>>2]|0))q=0;else break}else{q=m+-1|0;o=q;q=c[(c[$+472>>2]|0)+(q<<2)>>2]|0}n=$+472|0;ig(T,q);if(!v?(p=fw(x|0,0,1,0)|0,p=ih(T,p,C)|0,(p|0)!=0):0){gw(p|0,w|0,x|0)|0;a[p+x>>0]=0}else p=0;c[(c[n>>2]|0)+(o<<2)>>2]=p}}else{Y=$+440|0;Z=(c[Y>>2]|0)+1|0;c[Y>>2]=Z;b[M+32>>1]=Z}while(0);if((c[$+64>>2]|0)==0?(c[$+440>>2]|0)>(c[T+124>>2]|0):0)ph($,33344,_)}while(0);$=c[u>>2]|0;c[ca+4>>2]=$;c[ca+8>>2]=$+(c[t>>2]|0);break}case 196:{_=f+(aa+-3<<4)+16|0;c[ca>>2]=sr($,0,_)|0;c[ca+4>>2]=c[_>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 197:{_=f+(aa<<4)+16|0;c[ca>>2]=sr($,0,_)|0;$=c[_>>2]|0;c[ca+4>>2]=$;c[ca+8>>2]=$+(c[f+(aa<<4)+20>>2]|0);break}case 193:{Z=aa+-2|0;_=f+(aa<<4)+16|0;c[ca>>2]=rr($,c[f+(Z<<4)+16>>2]|0,_,1)|0;c[ca+4>>2]=c[f+(Z<<4)+20>>2];c[ca+8>>2]=(c[_>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 194:{c[ca>>2]=Vq($,38,c[f+(aa+-3<<4)+16>>2]|0,0,f+(aa+-1<<4)+16|0)|0;c[ca+4>>2]=c[f+(aa+-5<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 195:{l=f+(aa+-1<<4)+16|0;h=c[l>>2]|0;if(h){if((c[h>>2]|0)>(c[(c[$>>2]|0)+112>>2]|0)){c[_>>2]=f+(aa+-4<<4)+16;ph($,20576,_);h=c[l>>2]|0}}else h=0;_=f+(aa+-4<<4)+16|0;h=sr($,h,_)|0;c[ca>>2]=h;c[ca+4>>2]=c[_>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);if(!((h|0)==0?1:(b[f+(aa+-2<<4)+16>>1]|0)==0)){$=h+4|0;c[$>>2]=c[$>>2]|16}break}case 205:case 204:case 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))ba();n=p;c[n>>2]=d;d=b;b=0;a:while(1){h=c[n>>2]|0;g=c[h>>2]|0;c[n>>2]=h+4;h=c[n>>2]|0;k=c[h>>2]|0;c[n>>2]=h+4;h=c[n>>2]|0;l=c[h>>2]|0;c[n>>2]=h+4;h=c[n>>2]|0;m=c[h>>2]|0;c[n>>2]=h+4;h=c[n>>2]|0;e=c[h>>2]|0;c[n>>2]=h+4;if(!g){f=d;d=0}else{f=d;d=0;do{g=g+-1|0;h=a[f>>0]|0;if(((h&255)+-48|0)>>>0>=10)break a;d=(d*10|0)+-48+(h<<24>>24)|0;f=f+1|0}while((g|0)!=0)}if((d|0)<(k|0)|(d|0)>(l|0))break;if(!m){o=9;break}if((m|0)!=(a[f>>0]|0))break;c[e>>2]=d;d=f+1|0;b=b+1|0}if((o|0)==9){c[e>>2]=d;b=b+1|0}i=p;return b|0}function oq(b,e){b=b|0;e=e|0;var f=0,g=0,k=0,l=0.0,m=0,n=0.0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+64|0;if((i|0)>=(j|0))ba();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))ba();n=o;e=c[a+44>>2]|0;h=a;f=c[h>>2]|0;h=c[h+4>>2]|0;a:do if(!e){m=a+40|0;e=c[m>>2]|0;g=((e|0)<0)<<31>>31;l=nw(f|0,h|0,e|0,g|0)|0;if(!l){k=a+8|0;k=$v(c[k>>2]|0,c[k+4>>2]|0,f|0,h|0)|0;p=C;q=c[a+24>>2]|0;e=pc[c[(c[q>>2]|0)+8>>2]&31](q,c[a+36>>2]|0,(p|0)>(g|0)|(p|0)==(g|0)&k>>>0>e>>>0?e:k,f,h)|0;if(e)break;e=c[m>>2]|0}k=e-l|0;if((k|0)>=(b|0)){c[d>>2]=(c[a+36>>2]|0)+l;e=a;b=fw(c[e>>2]|0,c[e+4>>2]|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[e>>2]=b;c[e+4>>2]=C;e=0;break}e=a+16|0;f=c[e>>2]|0;if((f|0)<(b|0)){f=f<<1;f=(f|0)<128?128:f;while(1)if((f|0)<(b|0))f=f<<1;else{h=f;break}g=a+28|0;f=ng(c[g>>2]|0,h,((h|0)<0)<<31>>31)|0;if(!f){e=7;break}c[e>>2]=h;c[g>>2]=f}else f=c[a+28>>2]|0;h=a+28|0;gw(f|0,(c[a+36>>2]|0)+l|0,k|0)|0;l=a;l=fw(c[l>>2]|0,c[l+4>>2]|0,k|0,((k|0)<0)<<31>>31|0)|0;e=a;c[e>>2]=l;c[e+4>>2]=C;e=b-k|0;if((e|0)>0){g=e;do{f=c[m>>2]|0;f=(g|0)>(f|0)?f:g;e=Gq(a,f,n)|0;if(e)break a;gw((c[h>>2]|0)+(b-g)|0,c[n>>2]|0,f|0)|0;g=g-f|0}while((g|0)>0)}c[d>>2]=c[h>>2];e=0}else{c[d>>2]=e+f;b=fw(f|0,h|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[e>>2]=b;c[e+4>>2]=C;e=0}while(0);i=o;return e|0}function Hq(a){a=a|0;var b=0,d=0,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;z=i;i=i+64|0;if((i|0)>=(j|0))ba();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))ba();S=V;B=V+112|0;u=V+88|0;Q=V+84|0;K=V+80|0;U=c[f>>2]|0;c[Q>>2]=0;c[K>>2]=0;P=U+65|0;a:do if(((a[P>>0]|0)==0?(a[f+451>>0]|0)==0:0)?(Cn(f)|0)==0:0){R=(k|0)!=0;b:do if(R){g=ar(f,g,h,Q)|0;if((g|0)<0){r=0;h=0;break a}if((a[U+145>>0]|0)==0?(r=Fr(f,k)|0,(c[h+4>>2]|0)==0&(r|0)!=0):0)g=(c[r+68>>2]|0)==(c[(c[U+16>>2]|0)+28>>2]|0)?1:g;h=c[Q>>2]|0;r=c[f>>2]|0;c[u>>2]=f;r=c[r+16>>2]|0;c[u+12>>2]=c[r+(g<<4)>>2];c[u+4>>2]=c[r+(g<<4)+12>>2];c[u+16>>2]=20632;c[u+20>>2]=h;r=(g|0)==1;c[u+8>>2]=r&1;Gr(u,k)|0;t=Qr(f,0,k+8|0)|0;if(!t){r=0;h=0;break a}if(r?(c[(c[U+16>>2]|0)+28>>2]|0)!=(c[t+68>>2]|0):0){c[S>>2]=c[t>>2];ph(f,35920,S);r=0;h=0;break a}if((a[t+44>>0]&32)!=0?(s=c[t+8>>2]|0,(s|0)!=0):0){r=s;while(1){if((a[r+51>>0]&3)==2){s=g;J=r;u=t;break b}r=c[r+20>>2]|0;if(!r){s=g;J=0;u=t;break}}}else{s=g;J=0;u=t}}else{u=c[f+484>>2]|0;if(!u){r=0;h=0;break a}g=c[u+68>>2]|0;if(g){r=c[U+20>>2]|0;if((r|0)>0){h=c[U+16>>2]|0;t=0;while(1){s=t+1|0;if((c[h+(t<<4)+12>>2]|0)==(g|0)){h=0;s=t;J=0;break b}if((s|0)<(r|0))t=s;else{h=0;J=0;break}}}else{h=0;s=0;J=0}}else{h=0;s=-1e6;J=0}}while(0);O=U+16|0;C=c[O>>2]|0;g=C+(s<<4)|0;x=c[u>>2]|0;if(((Bc(x,25568,7)|0)==0?(a[U+145>>0]|0)==0:0)?(Bc(x+7|0,35976,9)|0)!=0:0){c[S>>2]=x;ph(f,35992,S);r=0;h=0;break}if(c[u+12>>2]|0){ph(f,36024,S);r=0;h=0;break}N=u+44|0;if(a[N>>0]&16){ph(f,36056,S);r=0;h=0;break}D=(h|0)==0;if(!D){h=Sq(U,h)|0;if(!h){r=0;h=0;break}if(Hr(f,h)|0){r=0;break}if((a[U+145>>0]|0)==0?(Wh(U,h,0)|0)!=0:0){c[S>>2]=h;ph(f,36096,S);r=0;break}if(Zp(U,h,c[g>>2]|0)|0)if(!q){c[S>>2]=h;ph(f,36136,S);r=0;break}else{wr(f,s);r=0;break}else t=h}else{r=c[u+8>>2]|0;if(!r)t=1;else{t=1;do{t=t+1|0;r=c[r+20>>2]|0}while((r|0)!=0)}c[S>>2]=x;c[S+4>>2]=t;t=qh(U,36160,S)|0;if(!t){r=0;h=0;break}}g=c[g>>2]|0;r=(s|0)==1;L=r?13184:13208;if((Oq(f,18,L,0,g)|0)==0?(Oq(f,r?3:1,t,c[u>>2]|0,g)|0)==0:0){if(!l){l=hr(f,0,0)|0;if(!l){l=0;r=0;h=t;break}F=gh(c[f>>2]|0,c[(c[u+4>>2]|0)+(((b[u+38>>1]|0)+-1|0)*24|0)>>2]|0)|0;G=c[l+4>>2]|0;c[G+4>>2]=F;a[G+12>>0]=p}A=c[l>>2]|0;if((A|0)>0){x=c[l+4>>2]|0;v=0;g=0;do{r=c[x+(v*20|0)>>2]|0;if(r){h=c[r+8>>2]|0;if(!h)r=1;else{r=h;while(1)if(!(a[r>>0]|0))break;else r=r+1|0;r=(r-h&1073741823)+1|0}g=r+g|0}v=v+1|0}while((v|0)<(A|0));h=g}else h=0;if(!t)r=0;else{g=t;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;r=g-t&1073741823}F=(J|0)!=0;if(F)g=e[J+46>>1]|0;else g=1;M=qs(U,A+g&65535,h+1+r|0,K)|0;c:do if(!(a[P>>0]|0)){E=c[K>>2]|0;c[M>>2]=E;I=r+1|0;z=E+I|0;c[K>>2]=z;gw(E|0,t|0,I|0)|0;c[M+12>>2]=u;I=M+50|0;a[I>>0]=m;E=M+51|0;a[E>>0]=a[E>>0]&-12|((m|0)!=0&1)<<3&255|D&1;H=M+24|0;c[H>>2]=c[(c[O>>2]|0)+(s<<4)+12>>2];g=c[l>>2]|0;G=M+46|0;b[G>>1]=g;if(o){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+24>>2]=0;c[B+28>>2]=0;x=S+0|0;h=x+80|0;do{c[x>>2]=0;x=x+4|0}while((x|0)<(h|0));c[S>>2]=1;c[S+16>>2]=c[u>>2];c[S+24>>2]=u;c[S+48>>2]=-1;c[B>>2]=f;c[B+4>>2]=S;b[B+28>>1]=16;hs(B,o)|0;c[M+36>>2]=o;g=c[l>>2]|0}w=(d[(c[C+(s<<4)+12>>2]|0)+76>>0]|0)>3;d:do if((g|0)>0){D=u+4|0;C=u+38|0;B=M+4|0;o=U+145|0;g=M+32|0;v=M+28|0;h=0;p=c[l+4>>2]|0;while(1){r=c[p+4>>2]|0;x=b[C>>1]|0;e:do if(x<<16>>16>0){A=0;y=c[D>>2]|0;while(1){if(!($c(r,c[y>>2]|0)|0)){q=A;break e}A=A+1|0;if((A|0)<(x<<16>>16|0))y=y+24|0;else{q=A;break}}}else q=0;while(0);if((q|0)>=(x<<16>>16|0))break;b[(c[B>>2]|0)+(h<<1)>>1]=q;A=c[p>>2]|0;if(!A){A=c[(c[D>>2]|0)+(q*24|0)+16>>2]|0;A=(A|0)!=0?A:11152}else{y=c[A+8>>2]|0;if(!y)A=1;else{A=y;while(1)if(!(a[A>>0]|0))break;else A=A+1|0;A=(A-y&1073741823)+1|0}gw(z|0,y|0,A|0)|0;y=c[K>>2]|0;z=y+A|0;c[K>>2]=z;A=y}if((a[o>>0]|0)==0?(_q(f,A)|0)==0:0){h=0;r=0;T=134;break c}c[(c[g>>2]|0)+(h<<2)>>2]=A;a[(c[v>>2]|0)+h>>0]=w?a[p+12>>0]|0:0;if(!(a[(c[D>>2]|0)+(q*24|0)+20>>0]|0))a[E>>0]=a[E>>0]&-9;h=h+1|0;if((h|0)<(c[l>>2]|0))p=p+20|0;else break d}c[S>>2]=c[u>>2];c[S+4>>2]=r;ph(f,36184,S);a[f+17>>0]=1;h=0;r=0;T=134;break c}else h=0;while(0);do if(F){w=J+46|0;x=b[w>>1]|0;if(!(x<<16>>16))break;B=J+4|0;C=M+4|0;D=M+48|0;p=J+32|0;q=M+32|0;g=J+28|0;v=M+28|0;o=0;do{y=b[(c[B>>2]|0)+(o<<1)>>1]|0;r=c[C>>2]|0;A=e[G>>1]|0;z=r;while(1){if((A|0)<=0){T=92;break}if((b[z>>1]|0)==y<<16>>16){T=91;break}else{A=A+-1|0;z=z+2|0}}if((T|0)==91){T=0;b[D>>1]=(b[D>>1]|0)+-1<<16>>16}else if((T|0)==92){T=0;b[r+(h<<1)>>1]=y;c[(c[q>>2]|0)+(h<<2)>>2]=c[(c[p>>2]|0)+(o<<2)>>2];a[(c[v>>2]|0)+h>>0]=a[(c[g>>2]|0)+o>>0]|0;x=b[w>>1]|0;h=h+1|0}o=o+1|0}while((o|0)<(x&65535|0))}else{b[(c[M+4>>2]|0)+(h<<1)>>1]=-1;c[(c[M+32>>2]|0)+(h<<2)>>2]=11152}while(0);_p(M);o=f+484|0;g=c[o>>2]|0;if(!g){is(M);g=c[o>>2]|0}f:do if((u|0)==(g|0)){r=c[u+8>>2]|0;if(!r)break;y=b[G>>1]|0;z=M+4|0;A=M+32|0;while(1){if((b[r+46>>1]|0)==y<<16>>16){g:do if(!(y<<16>>16)){o=0;g=0}else{v=c[r+4>>2]|0;w=c[z>>2]|0;x=r+32|0;g=0;while(1){if((b[v+(g<<1)>>1]|0)!=(b[w+(g<<1)>>1]|0)){o=y;break g}o=c[(c[x>>2]|0)+(g<<2)>>2]|0;h=c[(c[A>>2]|0)+(g<<2)>>2]|0;if((o|0)!=(h|0)?($c(o,h)|0)!=0:0){o=y;break g}g=g+1|0;if((g|0)>=(y&65535|0)){o=y;break}}}while(0);if((g|0)==(o&65535|0))break}r=c[r+20>>2]|0;if(!r)break f}g=r+50|0;h=a[g>>0]|0;o=a[I>>0]|0;if(h<<24>>24==o<<24>>24){h=0;break c}if(!(h<<24>>24==10|o<<24>>24==10)){c[S>>2]=0;ph(f,36216,S);h=a[g>>0]|0}if(h<<24>>24!=10){h=0;T=134;break c}a[g>>0]=a[I>>0]|0;h=0;break c}while(0);h=U+145|0;do if(!(a[h>>0]|0)){if(c[f+64>>2]|0){T=126;break}if(!((a[N>>0]&32)==0|R)){T=126;break}r=f+72|0;o=(c[r>>2]|0)+1|0;c[r>>2]=o;r=Kq(f)|0;if(!r){h=0;r=0;T=134;break c}G=c[f+408>>2]|0;G=(G|0)==0?f:G;wr(f,s);F=G+328|0;c[F>>2]=c[F>>2]|1<<s;G=G+20|0;a[G>>0]=d[G>>0]|1;sh(r,120,s,o,0)|0;if(!n)g=0;else{g=c[c[Q>>2]>>2]|0;G=(c[f+504>>2]|0)-g+(c[f+508>>2]|0)|0;F=G+-1|0;G=(a[g+F>>0]|0)==59?F:G;c[S>>2]=(m|0)==0?10360:36288;c[S+4>>2]=G;c[S+8>>2]=g;g=qh(U,36264,S)|0}F=c[M>>2]|0;G=c[u>>2]|0;c[S>>2]=c[(c[O>>2]|0)+(s<<4)>>2];c[S+4>>2]=L;c[S+8>>2]=F;c[S+12>>2]=G;c[S+16>>2]=o;c[S+20>>2]=g;xr(f,36296,S);ig(U,g);if(!R)break;rs(f,M,o);zr(f,s);c[S>>2]=c[M>>2];Er(r,s,qh(U,36344,S)|0);sh(r,144,0,0,0)|0;T=126}else{if(Ek((c[H>>2]|0)+24|0,c[M>>2]|0,M)|0){a[P>>0]=1;h=0;r=0;T=134;break c}G=U+24|0;c[G>>2]=c[G>>2]|2;if(!R)break;c[M+40>>2]=c[U+140>>2];T=126}while(0);if((T|0)==126?!((a[h>>0]|0)!=0|(k|0)==0):0){h=0;r=0;T=134;break}h=c[u+8>>2]|0;do if((m|0)==5){if(!h){h=0;break}if((a[h+50>>0]|0)==5)break;do{r=h+20|0;h=c[r>>2]|0;if(!h){h=0;break}}while((a[h+50>>0]|0)!=5);c[M+20>>2]=h;c[r>>2]=M;o=0;r=M;h=t;break a}while(0);c[M+20>>2]=h;c[u+8>>2]=M;o=0;r=M;h=t;break a}else{h=o;r=0;T=134}while(0);if((T|0)==134)if(!M){o=h;h=t;break}Fk(U,M);o=h;h=t}else{r=0;h=t}}else{r=0;h=0}while(0);Ck(U,o);Jk(U,l);zo(U,k);ig(U,h);i=V;return r|0}function Yq(e,f){e=e|0;f=f|0;var g=0,h=0;g=c[e+484>>2]|0;h=c[e>>2]|0;if(((g|0)!=0?(a[e+451>>0]|0)==0:0)?(b[(c[(c[(c[h+16>>2]|0)+(d[h+144>>0]<<4)+4>>2]|0)+4>>2]|0)+22>>1]&1)==0:0){h=g+24|0;g=hr(e,c[h>>2]|0,f)|0;c[h>>2]=g;if(c[e+324>>2]|0)ir(e,g,e+320|0,1)}else Ck(h,f);return}function Zq(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,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;C=i;i=i+16|0;if((i|0)>=(j|0))ba();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}