Home | History | Annotate | Download | only in sqlite3

Lines Matching refs:Rh

5 function mh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,l=0;h=k[a>>2]|0;l=k[a+80>>2]|0;e=a+44|0;do if(!(k[e>>2]|0)){k[h+52>>2]=l;b=k[h+236>>2]|0;if(b){a=b+8|0;if(!(j[a>>1]&9312)){j[a>>1]=1;break}else{Ag(b);break}}}else{f=h+65|0;g=i[f>>0]|0;a=k[3164]|0;if(a)sc[a&3]();d=h+236|0;a=k[d>>2]|0;do if(!a){a=rh(h,40,0)|0;if(!a){k[d>>2]=a;break}else{b=a+0|0;c=b+40|0;do{i[b>>0]=0;b=b+1|0}while((b|0)<(c|0));j[a+8>>1]=1;k[a+32>>2]=h;k[d>>2]=a;c=8;break}}else c=8;while(0);if((c|0)==8)ah(a,k[e>>2]|0,-1,1,-1)|0;a=k[3166]|0;if(a)sc[a&3]();i[f>>0]=g;k[h+52>>2]=l}while(0);return l|0}function nh(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,l=0,m=0;m=r;r=r+16|0;if((r|0)>=(s|0))ka();h=m;k[f>>2]=0;if(!((Mh(a)|0)==0|(b|0)==0)){h=k[a+20>>2]|0;if((h|0)>0){i=k[a+16>>2]|0;l=0;do{j=k[i+(l<<4)+4>>2]|0;if(j)k[(k[j+4>>2]|0)+4>>2]=k[j>>2];l=l+1|0}while((l|0)!=(h|0))}h=Kn(a,b,c,d,e,f,g)|0;if((h|0)==17){rd(k[f>>2]|0)|0;h=Kn(a,b,c,d,e,f,g)|0}}else{k[h>>2]=105892;k[h+4>>2]=10788;gd(21,13648,h);h=21}r=m;return h|0}function oh(a,b){a=a|0;b=b|0;var c=0,d=0;d=a+68|0;if((j[d>>1]|0)>0){c=b+60|0;b=a+60|0;a=0;do{dm((k[c>>2]|0)+(a*40|0)|0,(k[b>>2]|0)+(a*40|0)|0);a=a+1|0}while((a|0)<(j[d>>1]|0))}return}function ph(a,b){a=a|0;b=b|0;var c=0,d=0;if(b){c=b;while(1)if(!(i[c>>0]|0))break;else c=c+1|0;d=(c-b&1073741823)+1|0;c=rh(a,d,0)|0;if(c)pw(c|0,b|0,d|0)|0;else c=0}else c=0;return c|0}function qh(a,b){a=a|0;b=b|0;var c=0,d=0;d=k[a+8>>2]|0;if((b|0)>=1){kh(d,b)|0;j[d+8>>1]=8192;k[d>>2]=k[a+4>>2];c=d+16|0;a=k[c>>2]|0;if(!a)c=0;else{kw(a|0,0,b|0)|0;c=k[c>>2]|0}}else{c=d+8|0;if(!(j[c>>1]&9312))j[c>>1]=1;else Ag(d);k[d+16>>2]=0;c=0}return c|0}function rh(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:do if(a){f=a+65|0;if(!(i[f>>0]|0)){do if(i[a+250>>0]|0){if(0<c>>>0|(0==(c|0)?(m[a+248>>1]|0)>>>0<b>>>0:0)){d=a+264|0;k[d>>2]=(k[d>>2]|0)+1;break}e=a+272|0;d=k[e>>2]|0;if(!d){d=a+268|0;k[d>>2]=(k[d>>2]|0)+1;break}k[e>>2]=k[d>>2];c=a+252|0;e=k[c>>2]|0;b=e+1|0;k[c>>2]=b;c=a+260|0;k[c>>2]=(k[c>>2]|0)+1;c=a+256|0;if((e|0)>=(k[c>>2]|0))k[c>>2]=b;break a}while(0);d=vg(b,c)|0;if(!d){i[f>>0]=1;d=0}}else d=0}else d=vg(b,c)|0;while(0);return d|0}function sh(a,b){a=a|0;b=b|0;var c=0,d=0;do if(a){c=k[a+20>>2]|0;if((c|0)!=0?((b|0)>-1?(m[a+84>>1]|0|0)>(b|0):0):0){c=c+(b*40|0)|0;break}c=k[a>>2]|0;if((c|0)!=0?(k[c+52>>2]=25,d=k[c+236>>2]|0,(d|0)!=0):0){c=d+8|0;if(!(j[c>>1]&9312)){j[c>>1]=1;c=41496;break}else{Ag(d);c=41496;break}}else c=41496}else c=41496;while(0);return c|0}function th(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0;g=uh(a,b)|0;if(!g)if(!c)g=0;else{b=(k[a+60>>2]|0)+((b+-1|0)*40|0)|0;g=ah(b,c,d,f,e)|0;if((g|0)!=0|f<<24>>24==0)b=g;else b=bm(b,l[(k[a>>2]|0)+62>>0]|0)|0;g=k[a>>2]|0;k[g+52>>2]=b;e=k[g+236>>2]|0;do if(e){d=e+8|0;if(!(j[d>>1]&9312)){j[d>>1]=1;break}else{Ag(e);g=k[a>>2]|0;break}}while(0);g=Tg(g,b)|0}else{d=e;if(!((d|0)==0|(d|0)==-1))hc[e&31](c)}return g|0}function uh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();e=g;do if(!(fh(a)|0)){if((k[a+40>>2]|0)==-1108210269?(k[a+76>>2]|0)<=-1:0){if((b|0)>=1?(j[a+68>>1]|0)>=(b|0):0){f=b+-1|0;e=k[a+60>>2]|0;d=e+(f*40|0)|0;c=e+(f*40|0)+8|0;if(!((j[c>>1]&9312)==0?(k[e+(f*40|0)+24>>2]|0)==0:0))Vg(d);j[c>>1]=1;d=k[a>>2]|0;k[d+52>>2]=0;d=k[d+236>>2]|0;do if(d){c=d+8|0;if(!(j[c>>1]&9312)){j[c>>1]=1;break}else{Ag(d);break}}while(0);e=a+88|0;c=j[e>>1]|0;if(!(c&256)){c=0;break}d=k[a+188>>2]|0;if((b|0)<33){if(!((d&1<<f|0)!=0|(d|0)==-1)){c=0;break}}else if((d|0)!=-1){c=0;break}j[e>>1]=c|8;c=0;break}c=k[a>>2]|0;k[c+52>>2]=25;c=k[c+236>>2]|0;if(!c){c=25;break}d=c+8|0;if(!(j[d>>1]&9312)){j[d>>1]=1;c=25;break}else{Ag(c);c=25;break}}d=k[a>>2]|0;k[d+52>>2]=21;d=k[d+236>>2]|0;do if(d){c=d+8|0;if(!(j[c>>1]&9312)){j[c>>1]=1;break}else{Ag(d);break}}while(0);k[e>>2]=k[a+168>>2];gd(21,41456,e);k[e>>2]=69987;k[e+4>>2]=10788;gd(21,13648,e);c=21}else{k[e>>2]=69979;k[e+4>>2]=10788;gd(21,13648,e);c=21}while(0);r=g;return c|0}function vh(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:do if(!((a|0)==0|(b|0)==0)?(f=j[a+70>>1]|0,f<<16>>16>0):0){d=k[a+64>>2]|0;a=0;while(1){e=k[d+(a<<2)>>2]|0;if(((e|0)!=0?(ew(e,b,c)|0)==0:0)?(i[e+c>>0]|0)==0:0)break;a=a+1|0;if((a|0)>=(f<<16>>16|0)){a=0;break a}}a=a+1|0}else a=0;while(0);return a|0}function wh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();g=h+8|0;f=h;c=i[a+10>>0]|0;d=a+16|0;e=a+12|0;do if(Yl(k[d>>2]|0,g,k[e>>2]|0,c)|0){if(!(Zl(k[d>>2]|0,f,k[e>>2]|0,c)|0)){e=f;d=k[e+4>>2]|0;c=a;k[c>>2]=k[e>>2];k[c+4>>2]=d;c=a+8|0;j[c>>1]=m[c>>1]|0|4;break}p[a>>3]=+p[g>>3];c=a+8|0;j[c>>1]=m[c>>1]|0|8;if(b)im(a)}while(0);r=h;return}function xh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();f=g;if(!(Ln(a)|0)){e=di(k[a>>2]|0,c,d)|0;if(!e){e=(b|0)!=0?41368:41384;if(!d){k[f>>2]=e;k[f+4>>2]=c;yh(a,27680,f)}else{k[f>>2]=e;k[f+4>>2]=d;k[f+8>>2]=c;yh(a,27664,f)}i[a+17>>0]=1;e=0}}else e=0;r=g;return e|0}function yh(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=r;r=r+16|0;if((r|0)>=(s|0))ka();f=e;d=k[a>>2]|0;k[f>>2]=c;c=$k(d,b,f)|0;if(!(i[d+68>>0]|0)){b=a+64|0;k[b>>2]=(k[b>>2]|0)+1;b=a+4|0;rg(d,k[b>>2]|0);k[b>>2]=c;k[a+12>>2]=1}else rg(d,c);r=e;return}function zh(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=r;r=r+16|0;if((r|0)>=(s|0))ka();e=d;k[e>>2]=c;a=$k(a,b,e)|0;r=d;return a|0}function Ah(a){a=a|0;var b=0,c=0,d=0;c=k[a>>2]|0;b=rh(c,208,0)|0;if(!b)b=0;else{kw(b|0,0,208)|0;k[b>>2]=c;c=c+4|0;d=k[c>>2]|0;if(d)k[d+48>>2]=b;k[b+52>>2]=d;k[b+48>>2]=0;k[c>>2]=b;k[b+40>>2]=649915045;k[b+24>>2]=a}return b|0}function Bh(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;g=a+32|0;f=k[g>>2]|0;if((k[(k[a+24>>2]|0)+84>>2]|0)<=(f|0))if(!(Mn(a)|0)){h=k[g>>2]|0;j=4}else f=1;else{h=f;j=4}if((j|0)==4){k[g>>2]=h+1;g=k[a+4>>2]|0;i[g+(f*20|0)>>0]=b;i[g+(f*20|0)+3>>0]=0;k[g+(f*20|0)+4>>2]=c;k[g+(f*20|0)+8>>2]=d;k[g+(f*20|0)+12>>2]=e;k[g+(f*20|0)+16>>2]=0;i[g+(f*20|0)+1>>0]=0}return f|0}function Ch(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;h=k[a>>2]|0;e=k[a+4>>2]|0;do if((e|0)!=0?(i[h+65>>0]|0)==0:0){if((b|0)<0)b=(k[a+32>>2]|0)+-1|0;g=e+(b*20|0)+1|0;f=e+(b*20|0)+16|0;Nn(h,i[g>>0]|0,k[f>>2]|0);k[f>>2]=0;if((d|0)==-14){k[f>>2]=c;i[g>>0]=-14;break}if(!c){k[f>>2]=0;i[g>>0]=0;break}if((d|0)==-6){k[f>>2]=c;i[g>>0]=-6;break}else if((d|0)==-10){k[f>>2]=c;i[g>>0]=-10;b=c+12|0;k[b>>2]=(k[b>>2]|0)+1;break}else{if((d|0)<0){k[f>>2]=c;i[g>>0]=d;break}if(!d){b=c;while(1)if(!(i[b>>0]|0))break;else b=b+1|0;e=b-c&1073741823}else e=d;a=k[a>>2]|0;b=ow(e|0,((e|0)<0)<<31>>31|0,1,0)|0;b=rhrh(I,c,((c|0)<0)<<31>>31)|0;if(!d)e=0;else{kw(d|0,0,c|0)|0;e=d}k[t>>2]=e;if(!(i[u>>0]|0)){f=d;g=d+c|0}else break}k[a+36>>2]=B;k[a+196>>2]=A;d=k[w>>2]|0;if((d|0)!=0?(j[a+68>>1]=C,(C|0)>0):0){c=0;do{j[d+(c*40|0)+8>>1]=1;k[d+(c*40|0)+32>>2]=I;c=c+1|0}while((c|0)!=(C|0))}d=k[z>>2]|0;if((d|0)!=0?(F=b+444|0,G=k[F>>2]|0,(G|0)>0):0){j[a+70>>1]=G;C=b+472|0;pw(d|0,k[C>>2]|0,G<<16>>14|0)|0;kw(k[C>>2]|0,0,k[F>>2]<<2|0)|0}d=k[D>>2]|0;if((d|0)!=0?(k[D>>2]=d+-40,k[a+28>>2]=E,(E|0)>=1):0){c=1;while(1){j[d+((c+-1|0)*40|0)+8>>1]=128;k[d+((c+-1|0)*40|0)+32>>2]=I;if((c|0)==(E|0))break;else c=c+1|0}}j[J>>1]=j[J>>1]&-4|l[H>>0]&3;k[a+76>>2]=-1;k[a+80>>2]=0;i[a+86>>0]=2;k[a+40>>2]=-1108210269;k[a+92>>2]=0;k[a+72>>2]=1;i[a+87>>0]=-1;k[a+104>>2]=0;D=a+144|0;k[D>>2]=0;k[D+4>>2]=0;r=K;return}function Gh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,m=0,n=0;n=r;r=r+16|0;if((r|0)>=(s|0))ka();m=n;h=a+20|0;g=k[h>>2]|0;f=k[g+60>>2]|0;k[f>>2]=b;k[f+4>>2]=c;f=Xd(g)|0;do if((f|0)!=100){e=k[h>>2]|0;if(e){f=rd(e)|0;k[h>>2]=0;e=k[a+24>>2]|0;if(!f){f=m;k[f>>2]=b;k[f+4>>2]=c;f=1;e=zh(e,41432,m)|0;break}else{g=Xe(e)|0;k[m>>2]=g;e=zh(e,10344,m)|0;break}}else e=0}else{f=k[k[g+56>>2]>>2]|0;e=k[a+12>>2]|0;g=k[f+(e<<2)+84>>2]|0;if(g>>>0>=12){k[a+8>>2]=k[f+((j[f+20>>1]|0)+e<<2)+84>>2];k[a+4>>2]=(g+-12|0)>>>1;f=k[f>>2]|0;k[a+16>>2]=f;f=f+72|0;i[f>>0]=l[f>>0]|16;f=0;e=0;break}f=k[a+24>>2]|0;if(!g)e=20352;else e=(g|0)==7?20336:20320;k[m>>2]=e;e=zh(f,41400,m)|0;rd(k[h>>2]|0)|0;k[h>>2]=0;f=1}while(0);k[d>>2]=e;r=n;return f|0}function Hh(a){a=a|0;var b=0;if(a){b=k[a>>2]|0;rg(b,k[a+112>>2]|0);Sk(b,k[a+316>>2]|0)}return}function Ih(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;f=i[a+73>>0]|0;do if(!(f<<24>>24))e=4;else{if((f&255)>2?(e=Pn(a)|0,(e|0)!=0):0)break;e=Qm(a,b,c,d,0)|0}while(0);return e|0}function Jh(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,l=0,m=0,n=0,o=0;i=r;r=r+16|0;if((r|0)>=(s|0))ka();g=i;if(!a){k[g>>2]=77646;k[g+4>>2]=10788;gd(21,13648,g);d=21}else{h=k[a+24>>2]|0;g=a+20|0;f=k[g>>2]|0;do if((d|c|0)>=0?(m=ow(d|0,((d|0)<0)<<31>>31|0,c|0,((c|0)<0)<<31>>31|0)|0,o=L,l=k[a+4>>2]|0,n=((l|0)<0)<<31>>31,!((o|0)>(n|0)|(o|0)==(n|0)&m>>>0>l>>>0)):0)if(f){d=uc[e&31](k[a+16>>2]|0,(k[a+8>>2]|0)+d|0,c,b)|0;if((d|0)==4){Sg(f)|0;k[g>>2]=0;d=4;break}else{k[f+80>>2]=d;break}}else d=4;else d=1;while(0);k[h+52>>2]=d;f=k[h+236>>2]|0;do if(f){g=f+8|0;if(!(j[g>>1]&9312)){j[g>>1]=1;break}else{Ag(f);break}}while(0);d=Tg(h,d)|0}r=i;return d|0}function Kh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=a+73|0;e=i[f>>0]|0;if((e&255)>2){e=Pn(a)|0;if(!e){e=i[f>>0]|0;g=4}}else g=4;if((g|0)==4)if(e<<24>>24==1){Qn(k[a+4>>2]|0,k[a+60>>2]|0,a)|0;if(!(i[a+72>>0]&1))e=8;else e=Qm(a,b,c,d,1)|0}else e=4;return e|0}function Lh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0;y=r;r=r+16|0;if((r|0)>=(s|0))ka();w=y+4|0;x=y;k[w>>2]=a;k[x>>2]=b;p=l[c+1>>0]|0;q=l[c>>0]|0;v=i[c+3>>0]|0;u=(d|0)!=0;if(u)t=d;else t=l[c+2>>0]|0;m=v<<24>>24!=0;h=0;a:while(1){while(1){f=Rn(w)|0;if(!f){o=60;break a}if((f|0)==(q|0)){o=7;break a}if((f|0)!=(t|0))break;if(u){o=40;break}b=Rn(x)|0;if(!b){e=0;break a}g=Rn(w)|0;if((g|0)==94){g=Rn(w)|0;e=1}else e=0;if((g|0)==93){g=Rn(w)|0;j=(b|0)==93&1}else j=0;f=(g|0)==0;if((g|0)!=93&(f^1)){f=0;while(1){if(((g|0)==45?(n=i[k[w>>2]>>0]|0,n<<24>>24!=93):0)?n<<24>>24!=0&(f|0)!=0:0){g=b>>>0<f>>>0|b>>>0>(Rn(w)|0)>>>0;a=0;j=g?j:1}else{a=g;j=(b|0)==(g|0)?1:j}g=Rn(w)|0;f=(g|0)==0;if(!((g|0)!=93&(f^1))){g=f;break}else f=a}}else g=f;if(g|(j|0)==(e|0)){e=0;break a}}if((o|0)==40){o=0;f=Rn(w)|0;if(!f){e=0;break}h=k[w>>2]|0}g=Rn(x)|0;if((f|0)==(g|0))continue;if(m&f>>>0<128&g>>>0<128?(i[9328+(f&255)>>0]|0)==(i[9328+(g&255)>>0]|0):0)continue;if((f|0)!=(p|0)){e=0;break}if(!((g|0)!=0?(k[w>>2]|0)!=(h|0):0)){e=0;break}}b:do if((o|0)==7){b=Rn(w)|0;a=(b|0)==(p|0);if((b|0)==(q|0)|a)do{if(a?(Rn(x)|0)==0:0){e=0;break b}b=Rn(w)|0;a=(b|0)==(p|0)}while((b|0)==(q|0)|a);if(b){do if((b|0)==(t|0)){if(u){b=Rn(w)|0;if(!b){e=0;break b}else break}e=k[x>>2]|0;c:do if(!(i[e>>0]|0))e=0;else{a=k[w>>2]|0;while(1){if(Lh(a+-1|0,e,c,0)|0)break;b=e+1|0;k[x>>2]=b;if((l[e>>0]|0)>191?(i[b>>0]&-64)<<24>>24==-128:0){while(1){e=e+2|0;if((i[e>>0]&-64)<<24>>24==-128){o=b;b=e;e=o}else break}k[x>>2]=e}else e=b;if(!(i[e>>0]|0)){e=0;break c}}e=(i[e>>0]|0)!=0}while(0);e=e&1;break b}while(0);if(b>>>0>=129){e=Rn(x)|0;if(!e){e=0;break}a=k[w>>2]|0;while(1){if((e|0)==(b|0)?(Lh(a,k[x>>2]|0,c,d)|0)!=0:0){e=1;break b}e=Rn(x)|0;if(!e){e=0;break b}}}if(!(v<<24>>24)){j=b;h=b}else{h=b&255;j=l[9328+h>>0]|0;h=((l[10368+h>>0]|-33)^32)&b}a=k[x>>2]|0;e=a+1|0;k[x>>2]=e;b=i[a>>0]|0;if(!(b<<24>>24))e=0;else{g=k[w>>2]|0;f=b&255;while(1){if((f|0)==(j|0)|(f|0)==(h|0)?(Lh(g,e,c,d)|0)!=0:0){e=1;break b}b=a+2|0;k[x>>2]=b;a=i[e>>0]|0;if(!(a<<24>>24)){e=0;break}else{o=e;f=a&255;e=b;a=o}}}}else e=1}else if((o|0)==60)e=(i[k[x>>2]>>0]|0)==0&1;while(0);r=y;return e|0}function Mh(a){a=a|0;var b=0,c=0;c=r;r=r+16|0;if((r|0)>=(s|0))ka();b=c;do if(a){a=k[a+76>>2]|0;if((a|0)==-1607883113){a=1;break}else if((a|0)==1266094736|(a|0)==-264537850){k[b>>2]=41352;gd(21,15256,b);a=0;break}else{k[b>>2]=15248;gd(21,15256,b);a=0;break}}else{k[b>>2]=20304;gd(21,15256,b);a=0}while(0);r=c;return a|0}function Nh(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,l=0;l=r;r=r+16|0;if((r|0)>=(s|0))ka();g=l;h=l+8|0;k[h>>2]=0;k[e>>2]=0;if((Mh(a)|0)==0|(b|0)==0){k[g>>2]=106003;k[g+4>>2]=10788;gd(21,13648,g);d=21}else{a:do if((c|0)>-1)if((c|0)>0){g=0;do{if((i[b+g>>0]|0)==0?(i[b+(g|1)>>0]|0)==0:0)break a;g=g+2|0}while((g|0)<(c|0))}else g=0;else g=c;while(0);j=Wh(a,b,g)|0;if(j){d=nh(a,j,-1,d,0,e,h)|0;g=k[h>>2]|0;if((g|0)!=0&(f|0)!=0){e=Sn(j,g-j|0)|0;if((e|0)>0){c=0;g=b;do{g=(i[g+1>>0]&-8)<<24>>24==-40?g+4|0:g+2|0;c=c+1|0}while((c|0)!=(e|0))}else g=b;k[f>>2]=b+(g-b)}}else d=0;rg(a,j);d=Tg(a,d)|0}r=l;return d|0}function Oh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0;p=r;r=r+16|0;if((r|0)>=(s|0))ka();m=p;n=a+12|0;f=k[n>>2]|0;l=(c|0)!=0;e=b<<((f|0)==0&l&1);o=a+20|0;h=a+8|0;g=k[h>>2]|0;if((e+(k[o>>2]|0)|0)>>>0>g>>>0){e=e+(g<<1)|0;k[h>>2]=e;f=k[a>>2]|0;if((Qc()|0)==0?(j=wg(f,e<<2,0)|0,(j|0)!=0):0){k[a>>2]=j;f=k[n>>2]|0;j=5}else j=21}else j=5;a:do if((j|0)==5){e=a+16|0;if(!f){k[e>>2]=b;if((b|0)>0){e=0;do{k[m>>2]=k[d+(e<<2)>>2];f=dd(10344,m)|0;if(!f){j=21;break a}h=k[o>>2]|0;k[o>>2]=h+1;k[(k[a>>2]|0)+(h<<2)>>2]=f;e=e+1|0}while((e|0)<(b|0))}}else if((k[e>>2]|0)!=(b|0)){e=a+4|0;$c(k[e>>2]|0);o=dd(40912,m)|0;k[e>>2]=o;k[a+24>>2]=1;e=1;break}if(l){if((b|0)>0){h=0;do{g=c+(h<<2)|0;e=k[g>>2]|0;if(!e)e=0;else{f=e;while(1)if(!(i[f>>0]|0))break;else f=f+1|0;f=(f-e&1073741823)+1|0;e=Yc(f)|0;if(!e){j=21;break a}pw(e|0,k[g>>2]|0,f|0)|0}m=k[o>>2]|0;k[o>>2]=m+1;k[(k[a>>2]|0)+(m<<2)>>2]=e;h=h+1|0}while((h|0)<(b|0))}k[n>>2]=(k[n>>2]|0)+1;e=0}else e=0}while(0);if((j|0)==21){k[a+24>>2]=7;e=1}r=p;return e|0}function Ph(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,l=0,m=0;m=r;r=r+16|0;if((r|0)>=(s|0))ka();j=m;if(!b)g=0;else{f=b;while(1)if(!(i[f>>0]|0))break;else f=f+1|0;g=f-b&1073741823}h=a+308|0;f=gn(h,b,j)|0;if((f|0)!=0?(k[f+8>>2]|0)!=0:0){k[j>>2]=114188;k[j+4>>2]=10788;gd(21,13648,j);f=21}else{f=rh(a,g+17|0,0)|0;if((f|0)!=0?(l=f+16|0,pw(l|0,b|0,g+1|0)|0,k[f+4>>2]=l,k[f>>2]=c,k[f+8>>2]=d,k[f+12>>2]=e,l=Nk(h,l,f)|0,(l|0)!=0):0){i[a+65>>0]=1;rg(a,l);f=0}else f=0}f=Tg(a,f)|0;if((f|0)!=0&(e|0)!=0)hc[e&31](d);r=m;return f|0}function Qh(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=r;r=r+16|0;if((r|0)>=(s|0))ka();x=A;l=A+8|0;y=k[a>>2]|0;h=k[y+92>>2]|0;if(!(k[y+148>>2]|0))k[y+240>>2]=0;z=a+12|0;k[z>>2]=0;n=a+480|0;k[n>>2]=b;t=vg(1612,0)|0;if(t){k[t>>2]=-1;o=y+250|0;p=i[o>>0]|0;if(k[y+276>>2]|0)i[o>>0]=1;q=y+65|0;m=a+504|0;d=a+508|0;j=y+240|0;g=0;f=-1;a:while(1){while(1){if(i[q>>0]|0){v=19;break a}e=b+g|0;if(!(i[e>>0]|0)){v=19;break a}k[m>>2]=e;e=Hn(e,l)|0;k[d>>2]=e;g=e+g|0;if((g|0)>(h|0)){v=12;break a}e=k[l>>2]|0;if((e|0)==1){f=e;v=17;break}else if((e|0)==150){v=16;break a}else if((e|0)!=151){f=e;break}if(k[j>>2]|0){v=15;break a}}if((v|0)==17){v=0;k[n>>2]=b+g};k[x+0>>2]=k[m+0>>2];k[x+4>>2]=k[m+4>>2];Tn(t,f,x,a);f=k[l>>2]|0;if(k[z>>2]|0){v=19;break}}if((v|0)==12){k[z>>2]=18;v=19}else if((v|0)==15){yh(a,20384,x);k[z>>2]=9;v=19}else if((v|0)==16){rg(y,k[c>>2]|0);k[x>>2]=m;d=zh(y,20400,x)|0;k[c>>2]=d;d=1}if((v|0)==19){g=b+g|0;if((i[g>>0]|0)==0?(k[z>>2]|0)==0:0){if((f|0)!=1){k[x+0>>2]=k[m+0>>2];k[x+4>>2]=k[m+4>>2];Tn(t,1,x,a);k[n>>2]=g};k[x+0>>2]=k[m+0>>2];k[x+4>>2]=k[m+4>>2];Tn(t,0,x,a);d=0}else d=0}if((k[t>>2]|0)>-1)do Un(t);while((k[t>>2]|0)>-1);$c(t);i[o>>0]=p;if(!(i[q>>0]|0)){f=k[z>>2]|0;if(!((f|0)==101|(f|0)==0)){u=f;v=29}}else{k[z>>2]=7;u=7;v=29}if((v|0)==29?(w=a+4|0,(k[w>>2]|0)==0):0){if((u|0)!=516){f=u&255;if(f>>>0>26|(f|0)==2)f=16328;else f=k[15488+(f<<2)>>2]|0}else f=16344;k[x>>2]=f;ih(w,y,10344,x)}f=a+4|0;e=k[f>>2]|0;if(e){k[c>>2]=e;c=k[z>>2]|0;k[x>>2]=e;gd(c,10344,x);k[f>>2]=0;d=d+1|0}f=a+8|0;e=k[f>>2]|0;if(((e|0)!=0?(k[a+64>>2]|0)>0:0)?(i[a+18>>0]|0)==0:0){Ul(e);k[f>>2]=0}if(!(i[a+18>>0]|0)){c=a+400|0;rg(y,k[c>>2]|0);k[c>>2]=0;k[a+396>>2]=0}$c(k[a+520>>2]|0);if(!(i[a+451>>0]|0))pg(y,k[a+484>>2]|0);if(i[a+449>>0]|0)Vn(y,k[a+532>>2]|0);og(y,k[a+488>>2]|0);f=k[a+444>>2]|0;g=a+472|0;e=k[g>>2]|0;if((f|0)>0)do{f=f+-1|0;rg(y,k[e+(f<<2)>>2]|0);e=k[g>>2]|0}while((f|0)>0);rg(y,e);f=a+404|0;e=k[f>>2]|0;if(e)do{k[f>>2]=k[e>>2];rg(y,e);e=k[f>>2]|0}while((e|0)!=0);f=a+524|0;e=k[f>>2]|0;if(e)do{k[f>>2]=k[e+72>>2];pg(y,e);e=k[f>>2]|0}while((e|0)!=0);if((d|0)>0?(k[z>>2]|0)==0:0)k[z>>2]=1}else{i[y+65>>0]=1;d=7}r=A;return d|0}function Rh(a){a=a|0;if(a){if(!((j[a+8>>1]&9312)==0?(k[a+24>>2]|0)==0:0))Vg(a);rg(k[a+32>>2]|0,a)}return}function Sh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,m=0,n=0;if(!(k[a+252>>2]|0)){n=a+251|0;if(i[n>>0]|0)$c(k[a+276>>2]|0);g=c&-8;e=(g|0)<5?0:g;f=(d|0)<0?0:d;if(!((e|0)==0|(f|0)==0))if(!b){c=k[3164]|0;if(c)sc[c&3]();c=ha(e,f)|0;c=vg(c,((c|0)<0)<<31>>31)|0;d=k[3166]|0;if(d)sc[d&3]();if(!c)c=0;else f=(qc[k[8744+48>>2]&127](c)|0)/(g|0)|0}else c=b;else{e=0;c=0}d=a+276|0;k[d>>2]=c;m=a+272|0;k[m>>2]=0;j[a+248>>1]=e;if(!c){k[d>>2]=a;k[a+280>>2]=a;i[a+250>>0]=0;c=0}else{if((f|0)>0){d=ha(e,f)|0;l=c+(ha(e,f+-1|0)|0)|0;h=0;g=c;while(1){f=f+-1|0;k[g>>2]=h;if((f|0)<=0)break;else{h=g;g=g+e|0}}k[m>>2]=l;c=c+d|0}k[a+280>>2]=c;i[a+250>>0]=1;c=(b|0)==0&1}i[n>>0]=c;c=0}else c=5;return c|0}function Th(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0;o=r;r=r+16|0;if((r|0)>=(s|0))ka();n=o;do if(!a)c=0;else{h=a+76|0;l=k[h>>2]|0;if(!((l|0)==1266094736|(l|0)==-1607883113|(l|0)==-264537850)){k[n>>2]=15248;gd(21,15256,n);k[n>>2]=128509;k[n+4>>2]=10788;gd(21,13648,n);c=21;break}j=a+20|0;c=k[j>>2]|0;a:do if((c|0)>0){l=a+16|0;d=k[l>>2]|0;f=0;do{e=k[d+(f<<4)+4>>2]|0;if(e)k[(k[e+4>>2]|0)+4>>2]=k[e>>2];f=f+1|0}while((f|0)!=(c|0));g=0;while(1){c=k[d+(g<<4)+12>>2]|0;if((c|0)!=0?(m=k[c+16>>2]|0,(m|0)!=0):0){c=m;do{d=k[c+8>>2]|0;b:do if(i[d+44>>0]&16){e=d+60|0;while(1){d=k[e>>2]|0;if(!d)break b;f=d+24|0;if((k[d>>2]|0)==(a|0))break;else e=f}k[e>>2]=k[f>>2];Fn(d)}while(0);c=k[c>>2]|0}while((c|0)!=0)}c=g+1|0;if((c|0)>=(k[j>>2]|0))break a;d=k[l>>2]|0;g=c}}while(0);wl(a);Wn(a,68);if((b|0)==0?(Ol(a)|0)!=0:0){zg(a,5,16368,n);c=5;break}k[h>>2]=1691352191;Rg(a);c=0}while(0);r=o;return c|0}function Uh(a,b){a=a|0;b=b|0;if(((b*1e3|0)+1e3|0)>(k[a+492>>2]|0))b=0;else{b=k[a>>2]|0;wc[k[b+60>>2]&127](b,1e6)|0;b=1}return b|0}function Vh(a,b,c,d,e,f,g,h,l){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;l=l|0;var n=0,o=0,p=0,q=0,t=0,u=0,v=0;v=r;r=r+16|0;if((r|0)>=(s|0))ka();t=v;do if(b){p=(f|0)!=0;n=(h|0)!=0;if(p)if(n|(g|0)!=0){u=8;break}else{n=0;o=0}else{o=(g|0)!=0;if(!(o|n^1)){u=8;break}}if(!(o&((p|n)^1)|(c|0)<-1|(c|0)>127)){n=b;while(1)if(!(i[n>>0]|0))break;else n=n+1|0;o=n-b&1073741823;if(o>>>0<=255){q=d&2048;n=d&7;if((n|0)!=4){if((n|0)==5){n=Vh(a,b,c,q|1,e,f,g,h,l)|0;if(n)break;n=Vh(a,b,c,q|2,e,f,g,h,l)|0;if(!n)n=3;else break}}else n=2;p=n&255;d=Xh(a,b,o,c,p,0)|0;if(((d|0)!=0?(m[d+2>>1]&3|0)==(n|0):0)?(j[d>>1]|0)==(c|0):0){if(k[a+148>>2]|0){zg(a,5,15424,t);n=5;break}n=k[a+4>>2]|0;if(n)do{t=n+88|0;j[t>>1]=j[t>>1]|8;n=k[n+52>>2]|0}while((n|0)!=0)}n=Xh(a,b,o,c,p,1)|0;if(!n)n=7;else{Sl(a,n);if(l)k[l>>2]=(k[l>>2]|0)+1;k[n+32>>2]=l;l=n+2|0;j[l>>1]=m[l>>1]&3|q;k[n+12>>2]=f;k[n+16>>2]=g;k[n+20>>2]=h;k[n+4>>2]=e;j[n>>1]=c;n=0}}else u=8}else u=8}else u=8;while(0);if((u|0)==8){k[t>>2]=129075;k[t+4>>2]=10788;gd(21,13648,t);n=21}r=v;return n|0}function Wh(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;g=r;r=r+48|0;if((r|0)>=(s|0))ka();f=g;d=f+0|0;e=d+40|0;do{k[d>>2]=0;d=d+4|0}while((d|0)<(e|0));k[f+32>>2]=a;ah(f,b,c,2,0)|0;c=f+8|0;b=k[c>>2]|0;if(!((b&2|0)==0|(b&16711680|0)==65536))Gn(f,1)|0;if(!(i[a+65>>0]|0))c=k[f+16>>2]|0;else{if(!((j[c>>1]&9312)==0?(k[f+24>>2]|0)==0:0))Vg(f);k[f+16>>2]=0;c=0}r=g;return c|0}function Xh(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,m=0,n=0,o=0,p=0,q=0;n=((l[9328+(l[b>>0]|0)>>0]|0)+c|0)%23|0;o=a+336|0;h=Wk(o,n,b,c)|0;if(!h){m=0;g=0}else{m=0;g=0;do{q=Xn(h,d,e)|0;p=(q|0)>(m|0);m=p?q:m;g=p?h:g;h=k[h+8>>2]|0}while((h|0)!=0)}do if(!(f<<24>>24)){if((g|0)!=0?(k[a+24>>2]&2097152|0)==0:0){h=0;n=12;break}h=Wk(10840,n,b,c)|0;if(!h){m=0;n=8}else{m=0;do{p=Xn(h,d,e)|0;n=(p|0)>(m|0);m=n?p:m;g=n?h:g;h=k[h+8>>2]|0}while((h|0)!=0);n=8}}else n=8;while(0);do if((n|0)==8){h=f<<24>>24!=0;if(h&(m|0)<6){h=c+37|0;g=rhrh(n,h,L)|0;if(!h)break a;pw(h|0,e|0,f|0)|0;i[h+f>>0]=0;qo(h);if(!(id(l,h)|0)){k[o>>2]=(b|0)!=0?b:10360;k[o+4>>2]=e-d;k[o+8>>2]=d;k[o+12>>2]=j;q=zh(n,19440,o)|0;rg(n,b);d=g+(f+c)|0;b=q}rg(n,h);c=f}e=e+c|0}while((i[e>>0]|0)!=0)}while(0);k[o>>2]=(b|0)!=0?b:10360;k[o+4>>2]=d;$g(a,zh(n,19456,o)|0,-1,1,75);rg(n,b)}r=p;return}function Vj(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=r;r=r+48|0;if((r|0)>=(s|0))ka();d=e;if(!(ro(a,b,c,d)|0)){so(d);b=d;bh(k[a>>2]|0,(+((k[b>>2]|0)>>>0)+4294967296.0*+(k[b+4>>2]|0))/864.0e5)}r=e;return}function Wj(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;g=r;r=r+160|0;if((r|0)>=(s|0))ka();d=g+48|0;e=g;f=g+60|0;if(!(ro(a,b,c,e)|0)){to(e);c=k[e+12>>2]|0;b=k[e+16>>2]|0;k[d>>2]=k[e+8>>2];k[d+4>>2]=c;k[d+8>>2]=b;fd(100,f,20136,d)|0;$g(a,f,-1,1,-1)}r=g;return}function Xj(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;g=r;r=r+160|0;if((r|0)>=(s|0))ka();d=g+48|0;e=g;f=g+60|0;if(!(ro(a,b,c,e)|0)){uo(e);c=k[e+24>>2]|0;b=~~+p[e+32>>3];k[d>>2]=k[e+20>>2];k[d+4>>2]=c;k[d+8>>2]=b;fd(100,f,20120,d)|0;$g(a,f,-1,1,-1)}r=g;return}function Yj(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=r;r=r+176|0;if((r|0)>=(s|0))ka();d=g+48|0;e=g;f=g+72|0;if(!(ro(a,b,c,e)|0)){to(e);uo(e);j=k[e+12>>2]|0;i=k[e+16>>2]|0;h=k[e+20>>2]|0;c=k[e+24>>2]|0;b=~~+p[e+32>>3];k[d>>2]=k[e+8>>2];k[d+4>>2]=j;k[d+8>>2]=i;k[d+12>>2]=h;k[d+16>>2]=c;k[d+20>>2]=b;fd(100,f,20088,d)|0;$g(a,f,-1,1,-1)}r=g;return}function Zj(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,q=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0.0;C=r;r=r+208|0;if((r|0)>=(s|0))ka();y=C+96|0;z=C+48|0;B=C+104|0;A=C;a:do if(((b|0)!=0?(x=Xg(k[c>>2]|0,1)|0,(x|0)!=0):0)?(ro(a,b+-1|0,c+4|0,z)|0)==0:0){g=k[a>>2]|0;f=k[g+32>>2]|0;c=1;b=0;e=0;b:while(1){d=i[x+e>>0]|0;c:do if(d<<24>>24==37){d=e+1|0;switch(i[x+d>>0]|0){case 87:case 83:case 77:case 109:case 72:case 100:{c=ow(c|0,b|0,1,0)|0;b=L;break c}case 102:{c=ow(c|0,b|0,8,0)|0;b=L;break c}case 106:{c=ow(c|0,b|0,3,0)|0;b=L;break c}case 89:{c=ow(c|0,b|0,8,0)|0;b=L;break c}case 74:case 115:{c=ow(c|0,b|0,50,0)|0;b=L;break c}case 37:case 119:break c;default:break a}}else if(!(d<<24>>24))break b;else d=e;while(0);c=ow(c|0,b|0,1,0)|0;b=L;e=d+1|0}if(!(b>>>0<0|(b|0)==0&c>>>0<100)){w=k[f+88>>2]|0;v=((w|0)<0)<<31>>31;if(b>>>0>v>>>0|(b|0)==(v|0)&c>>>0>w>>>0){k[a+20>>2]=18;i[a+25>>0]=1;ah(g,10096,-1,1,0)|0;break}b=jw(0,c|0,32)|0;b=rh(f,b,L)|0;if(!b){Wd(a);break}else w=b}else w=B;so(z);to(z);uo(z);h=z+16|0;j=z+32|0;l=z+20|0;m=A+42|0;n=A+12|0;o=A+16|0;q=z+12|0;u=z+24|0;v=z+8|0;f=0;b=0;d:while(1){g=i[x+f>>0]|0;e:do if(g<<24>>24==37){f=f+1|0;c=x+f|0;do switch(i[c>>0]|0){case 106:case 87:{g=A+0|0;e=z+0|0;d=g+48|0;do{k[g>>2]=k[e>>2];g=g+4|0;e=e+4|0}while((g|0)<(d|0));i[m>>0]=0;k[n>>2]=1;k[o>>2]=1;so(A);g=z;d=A;D=k[d>>2]|0;d=k[d+4>>2]|0;g=ow(k[g>>2]|0,k[g+4>>2]|0,432e5,0)|0;e=L;d=vw(iw(g|0,e|0,D|0,d|0)|0,L|0,864e5,0)|0;if((i[c>>0]|0)==87){c=vw(g|0,e|0,864e5,0)|0;c=ww(c|0,L|0,7,0)|0;k[y>>2]=(d+7-c|0)/7|0;fd(3,w+b|0,19888,y)|0;b=b+2|0;break e}else{k[y>>2]=d+1;fd(4,w+b|0,19904,y)|0;b=b+3|0;break e}}case 102:{E=+p[j>>3];e=w+b|0;p[t>>3]=E>59.999?59.999:E;k[y>>2]=k[t>>2];k[y+4>>2]=k[t+4>>2];fd(7,e,19896,y)|0;if(!e)g=0;else{g=e;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;g=g-e&1073741823}b=g+b|0;break e}case 100:{k[y>>2]=k[h>>2];fd(3,w+b|0,19888,y)|0;b=b+2|0;break e}case 83:{k[y>>2]=~~+p[j>>3];fd(3,w+b|0,19888,y)|0;b=b+2|0;break e}case 119:{c=z;c=ow(k[c>>2]|0,k[c+4>>2]|0,1296e5,0)|0;c=vw(c|0,L|0,864e5,0)|0;c=ww(c|0,L|0,7,0)|0;i[w+b>>0]=c+48;b=b+1|0;break e}case 89:{e=w+b|0;k[y>>2]=k[v>>2];fd(5,e,19928,y)|0;if(!e)g=0;else{g=e;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;g=g-e&1073741823}b=g+b|0;break e}case 72:{k[y>>2]=k[l>>2];fd(3,w+b|0,19888,y)|0;b=b+2|0;break e}case 109:{k[y>>2]=k[q>>2];fd(3,w+b|0,19888,y)|0;b=b+2|0;break e}case 77:{k[y>>2]=k[u>>2];fd(3,w+b|0,19888,y)|0;b=b+2|0;break e}case 74:{e=w+b|0;c=z;p[t>>3]=(+((k[c>>2]|0)>>>0)+4294967296.0*+(k[c+4>>2]|0))/864.0e5;k[y>>2]=k[t>>2];k[y+4>>2]=k[t+4>>2];fd(20,e,19912,y)|0;if(!e)g=0;else{g=e;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;g=g-e&1073741823}b=g+b|0;break e}case 115:{e=w+b|0;d=z;d=vw(k[d>>2]|0,k[d+4>>2]|0,1e3,0)|0;d=ow(d|0,L|0,-413362496,-50)|0;c=y;k[c>>2]=d;k[c+4>>2]=L;fd(30,e,19920,y)|0;if(!e)g=0;else{g=e;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;g=g-e&1073741823}b=g+b|0;break e}default:{i[w+b>>0]=37;b=b+1|0;break e}}while(0)}else if(!(g<<24>>24))break d;else{i[w+b>>0]=g;b=b+1|0}while(0);f=f+1|0}i[w+b>>0]=0;$g(a,w,-1,1,(w|0)==(B|0)?-1:75)}while(0);r=C;return}function _j(a,b,c){a=a|0;b=b|0;c=c|0;Xj(a,0,0);return}function $j(a,b,c){a=a|0;b=b|0;c=c|0;Yj(a,0,0);return}function ak(a,b,c){a=a|0;b=b|0;c=c|0;Wj(a,0,0);return}function bk(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=_g(k[c>>2]|0)|0;g=f+1&-2;d=_g(k[c+4>>2]|0)|0;e=(g<<3)+56|0;c=k[(k[a>>2]|0)+32>>2]|0;b=rh(c,e,((e|0)<0)<<31>>31)|0;if(!b)Wd(a);else{kw(b|0,0,e|0)|0;k[b+52>>2]=c;k[b>>2]=0;k[b+8>>2]=f;k[b+12>>2]=d;c=b+56|0;k[b+24>>2]=c;k[b+20>>2]=c+(g<<2);$g(a,b,56,0,20)}return}function ck(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=ud(k[c>>2]|0)|0;e=_g(k[c+4>>2]|0)|0;if(!(k[f>>2]|0)){a=f+8|0;if((k[a>>2]|0)>0){b=k[f+20>>2]|0;c=0;do{k[b+(c<<2)>>2]=1;c=c+1|0}while((c|0)<(k[a>>2]|0))}}else{if((e|0)>0){a=k[f+20>>2]|0;c=0;do{b=a+(c<<2)|0;k[b>>2]=(k[b>>2]|0)+1;c=c+1|0}while((c|0)!=(e|0))}a=f+8|0;if((e|0)<(k[a>>2]|0)){b=k[f+24>>2]|0;d=k[f+20>>2]|0;c=e;do{e=b+(c<<2)|0;k[e>>2]=(k[e>>2]|0)+1;k[d+(c<<2)>>2]=1;c=c+1|0}while((c|0)<(k[a>>2]|0))}}k[f>>2]=(k[f>>2]|0)+1;return}function dk(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0;l=r;r=r+16|0;if((r|0)>=(s|0))ka();j=l;f=ud(k[c>>2]|0)|0;g=f+12|0;c=((k[g>>2]|0)*25|0)+25|0;h=vg(c,((c|0)<0)<<31>>31)|0;if(!h)Wd(a);else{kw(h|0,0,c|0)|0;c=j;k[c>>2]=k[f>>2];k[c+4>>2]=0;fd(24,h,28696,j)|0;c=h;while(1)if(!(i[c>>0]|0))break;else c=c+1|0;if((k[g>>2]|0)>0){d=f+24|0;e=0;b=h+(c-h&1073741823)|0;while(1){m=(k[(k[d>>2]|0)+(e<<2)>>2]|0)+1|0;c=k[f>>2]|0;n=ow(m|0,0,-1,-1)|0;c=ow(n|0,L|0,c|0,0)|0;m=yw(c|0,L|0,m|0,0)|0;c=j;k[c>>2]=m;k[c+4>>2]=L;fd(24,b,28704,j)|0;if(!b)c=0;else{c=b;while(1)if(!(i[c>>0]|0))break;else c=c+1|0;c=c-b&1073741823}e=e+1|0;if((e|0)>=(k[g>>2]|0))break;else b=b+c|0}}$g(a,h,-1,1,1)}r=l;return}function ek(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0;l=r;r=r+144|0;if((r|0)>=(s|0))ka();h=l;j=l+8|0;f=Xg(k[c>>2]|0,1)|0;g=k[(k[a>>2]|0)+32>>2]|0;f=(f|0)==0?10360:f;e=k[g+20>>2]|0;a:do if((e|0)>0){b=k[g+16>>2]|0;c=0;do{d=b+(c<<4)|0;if((k[b+(c<<4)+4>>2]|0)!=0?(id(k[d>>2]|0,f)|0)==0:0)break a;c=c+1|0}while((c|0)<(e|0))}else{c=0;d=0}while(0);do if((c|0)<(e|0)){if((c|0)<2){k[h>>2]=f;fd(128,j,29256,h)|0;m=16;break}if(!(i[g+63>>0]|0)){fd(128,j,29288,h)|0;m=16;break}c=d+4|0;b=k[c>>2]|0;if((i[b+8>>0]|0)==0?(k[b+16>>2]|0)==0:0){Rl(b);k[c>>2]=0;k[d+12>>2]=0;Jg(g);break}k[h>>2]=f;fd(128,j,29336,h)|0;m=16}else{k[h>>2]=f;fd(128,j,29232,h)|0;m=16}while(0);if((m|0)==16){k[a+20>>2]=1;i[a+25>>0]=1;ah(k[a>>2]|0,j,-1,1,-1)|0}r=l;return}function fk(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=r;r=r+32|0;if((r|0)>=(s|0))ka();v=z;g=z+20|0;b=z+16|0;f=z+12|0;y=z+8|0;h=z+4|0;x=k[(k[a>>2]|0)+32>>2]|0;k[g>>2]=0;k[b>>2]=0;k[y>>2]=0;u=Xg(k[c>>2]|0,1)|0;o=Xg(k[c+4>>2]|0,1)|0;u=(u|0)==0?10360:u;o=(o|0)==0?10360:o;t=x+20|0;d=k[t>>2]|0;e=k[x+116>>2]|0;a:do if((d|0)<(e+2|0)){if(!(i[x+63>>0]|0)){d=zh(x,29456,v)|0;k[y>>2]=d;b=0;w=42;break}p=x+16|0;e=k[p>>2]|0;b:do if((d|0)>0){c=0;while(1){if(!(id(k[e+(c<<4)>>2]|0,o)|0))break;c=c+1|0;if((c|0)>=(d|0))break b}k[v>>2]=o;d=zh(x,29504,v)|0;k[y>>2]=d;b=0;w=42;break a}while(0);if((e|0)!=(x+456|0)){e=wo(x,e,(d<<4)+16|0,0)|0;if(!e)break;else n=e}else{e=rh
6 function cs(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,n=0,o=0,q=0,t=0,u=0,v=0,w=0,x=0;x=r;r=r+16|0;if((r|0)>=(s|0))ka();u=x;v=x+8|0;k[v>>2]=0;a:do if(!b){k[e>>2]=0;f=0}else{g=i[b>>0]|0;if(g<<24>>24==-98)do{b=k[b+12>>2]|0;g=i[b>>0]|0}while(g<<24>>24==-98);if(g<<24>>24==-97)n=l[b+38>>0]|0;else n=g&255;if((n|0)==157){b=k[b+12>>2]|0;n=i[b>>0]|0;if((n&-2)<<24>>24==-124){h=-1;g=-1;t=n&255;n=26016;w=12}else w=30}else if((n|0)==38){h=ar(k[b+8>>2]|0,0)|0;f=cs(a,k[b+12>>2]|0,c,h,e)|0;g=k[e>>2]|0;if(!g)break;lm(g,h,1);km(k[e>>2]|0,d,1);break}else{h=1;g=0;t=n;n=10360;w=12}b:do if((w|0)==12){c:do switch(t|0){case 97:case 132:case 133:{f=rh(a,40,0)|0;if(!f){k[v>>2]=f;break c}o=f+0|0;q=o+40|0;do{i[o>>0]=0;o=o+1|0}while((o|0)<(q|0));j[f+8>>1]=1;k[f+32>>2]=a;k[v>>2]=f;do if(!(k[b+4>>2]&1024)){h=k[b+8>>2]|0;k[u>>2]=n;k[u+4>>2]=h;h=zh(a,19456,u)|0;if(!h)break c;if(f)ah(f,h,-1,1,75)|0}else{n=k[b+8>>2]|0;n=xw(n|0,((n|0)<0)<<31>>31|0,h|0,g|0)|0;h=L;b=f+8|0;if(!(j[b>>1]&9312)){v=f;k[v>>2]=n;k[v+4>>2]=h;j[b>>1]=4;break}else{ch(f,n,h);break}}while(0);if((t&-2|0)==132&d<<24>>24==65)km(f,67,1);else km(f,d,1);g=f+8|0;b=m[g>>1]|0;if(b&12)j[g>>1]=b&65533;if(c<<24>>24==1){g=f;f=0;break b}g=f;f=bm(f,c&255)|0;break b}case 101:{f=rh(a,40,0)|0;if(!f){k[v>>2]=f;break c}else{o=f+0|0;q=o+40|0;do{i[o>>0]=0;o=o+1|0}while((o|0)<(q|0));j[f+8>>1]=1;k[f+32>>2]=a;k[v>>2]=f;g=f;f=0;break b}}case 157:{b=k[b+12>>2]|0;w=30;break b}case 134:{f=rh(a,40,0)|0;if(!f){k[v>>2]=f;break c}o=f+0|0;q=o+40|0;do{i[o>>0]=0;o=o+1|0}while((o|0)<(q|0));j[f+8>>1]=1;k[f+32>>2]=a;k[v>>2]=f;g=(k[b+8>>2]|0)+2|0;b=g;while(1)if(!(i[b>>0]|0))break;else b=b+1|0;v=(b-g&1073741823)+-1|0;ah(f,bu(a,g,v)|0,(v|0)/2|0,0,75)|0;g=f;f=0;break b}default:{g=0;f=0;break b}}while(0);i[a+65>>0]=1;rg(a,0);Rh(f);f=7;break a}while(0);if((w|0)==30){u=(cs(a,b,c,d,v)|0)==0;g=k[v>>2]|0;if(u&(g|0)!=0){tp(g);h=g+8|0;b=j[h>>1]|0;do if(!(b&8)){n=g;f=k[n>>2]|0;n=k[n+4>>2]|0;if((f|0)==0&(n|0)==-2147483648){p[g>>3]=9223372036854775808.0;j[h>>1]=b&48640|8;break}else{u=iw(0,0,f|0,n|0)|0;v=g;k[v>>2]=u;k[v+4>>2]=L;break}}else p[g>>3]=-+p[g>>3];while(0);km(g,d,c);f=0}else f=0}k[e>>2]=g}while(0);r=x;return f|0}function ds(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;do if((b|0)!=0?(e=a+19|0,f=i[e>>0]|0,(f&255)<8):0){d=0;c=a+116|0;while(1){if((k[c+12>>2]|0)==(b|0)){d=5;break}d=d+1|0;if((d|0)>=10){d=7;break}else c=c+20|0}if((d|0)==5){i[c+6>>0]=1;break}else if((d|0)==7){i[e>>0]=f+1<<24>>24;k[a+((f&255)<<2)+24>>2]=b;break}}while(0);return}function es(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0;m=r;r=r+32|0;if((r|0)>=(s|0))ka();l=m;c=a+484|0;h=k[c>>2]|0;j=k[a>>2]|0;do if((h|0)!=0?(gs(a),k[a+512>>2]=0,(k[h+52>>2]|0)>=1):0){if(i[j+145>>0]|0)if(!(Nk((k[h+68>>2]|0)+8|0,k[h>>2]|0,h)|0)){k[c>>2]=0;break}else{i[j+65>>0]=1;break}if(b)k[a+500>>2]=(k[b>>2]|0)-(k[a+496>>2]|0)+(k[b+4>>2]|0);k[l>>2]=a+496;g=zh(j,25256,l)|0;b=k[h+68>>2]|0;a:do if(b){d=k[j+20>>2]|0;if((d|0)>0){e=k[j+16>>2]|0;f=0;while(1){c=f+1|0;if((k[e+(f<<4)+12>>2]|0)==(b|0)){c=f;break a}if((c|0)<(d|0))f=c;else break}}else c=0}else c=-1e6;while(0);e=k[h>>2]|0;f=k[a+384>>2]|0;k[l>>2]=k[(k[j+16>>2]|0)+(c<<4)>>2];k[l+4>>2]=(c|0)==1?13184:13208;k[l+8>>2]=e;k[l+12>>2]=e;k[l+16>>2]=g;k[l+20>>2]=f;Gr(a,25280,l);rg(j,g);g=Tq(a)|0;Ir(a,c);Bh(g,144,0,0,0)|0;k[l>>2]=k[h>>2];Nr(g,c,zh(j,25368,l)|0);a=a+72|0;l=(k[a>>2]|0)+1|0;k[a>>2]=l;a=k[h>>2]|0;Ch(g,Bh(g,97,0,l,0)|0,a,0);Bh(g,147,c,l,0)|0}while(0);r=m;return}function fs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;g=b+52|0;h=k[g>>2]|0;d=h+1|0;k[g>>2]=d;f=(h<<2)+8|0;e=b+56|0;f=wo(a,k[e>>2]|0,f,((f|0)<0)<<31>>31)|0;if(!f){if((h|0)>0){b=0;do{rg(a,k[(k[e>>2]|0)+(b<<2)>>2]|0);b=b+1|0}while((b|0)!=(h|0))}rg(a,c);rg(a,k[e>>2]|0);k[g>>2]=0}else{k[f+(h<<2)>>2]=c;k[f+(d<<2)>>2]=0}k[e>>2]=f;return}function gs(a){a=a|0;var b=0,c=0,d=0,e=0;b=k[a+512>>2]|0;if((b|0)!=0?(e=k[a+484>>2]|0,(e|0)!=0):0){c=k[a+516>>2]|0;d=k[a>>2]|0;a=ow(c|0,((c|0)<0)<<31>>31|0,1,0)|0;a=rh(d,a,L)|0;if(!a)a=0;else{pw(a|0,b|0,c|0)|0;i[a+c>>0]=0}fs(d,e,a)}return}function hs(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,l=0,m=0;m=r;r=r+16|0;if((r|0)>=(s|0))ka();h=m;j=k[a>>2]|0;l=$q(j,c)|0;g=(b|0)!=0;if((l|0)!=0&g?(f=k[b>>2]|0,(f|0)>0):0){c=f;f=0;do{if(!(id(l,k[b+(f<<4)+8>>2]|0)|0)){k[h>>2]=l;yh(a,25184,h);c=k[b>>2]|0}f=f+1|0}while((f|0)<(c|0))}if(g){f=(k[b>>2]<<4)+24|0;f=wo(j,b,f,((f|0)<0)<<31>>31)|0;if(!f)c=10;else{b=f;c=11}}else{c=rhrh(a,e,((e|0)<0)<<31>>31)|0;if(!a)a=7;else{kw(a|0,0,e|0)|0;f=b+32|0;pw(a|0,k[f>>2]|0,(m[d>>1]|0)<<2|0)|0;k[f>>2]=a;f=a+(c<<2)|0;e=b+4|0;pw(f|0,k[e>>2]|0,(m[d>>1]|0)<<1|0)|0;k[e>>2]=f;e=a+(c*6|0)|0;a=b+28|0;pw(e|0,k[a>>2]|0,m[d>>1]|0|0)|0;k[a>>2]=e;j[d>>1]=c;a=b+51|0;i[a>>0]=i[a>>0]|16;a=0}}else a=0;return a|0}function qs(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,l=0,n=0;n=r;r=r+32|0;if((r|0)>=(s|0))ka();f=n;l=n+4|0;do if(!b)c=0;else{g=k[a>>2]|0;i=b+24|0;e=g+460|0;d=(k[e>>2]|0)+(k[i>>2]|0)|0;c=k[(k[g>>2]|0)+100>>2]|0;if((c|0)<(d|0)){k[f>>2]=c;yh(g,27152,f);c=1;break}k[e>>2]=d;f=a+28|0;e=m[f>>1]|0;h=e&4098;j[f>>1]=e&61437;k[l+0>>2]=0;k[l+4>>2]=0;k[l+8>>2]=0;k[l+12>>2]=0;k[l+16>>2]=0;k[l+20>>2]=0;k[l>>2]=82;k[l+4>>2]=83;e=l+12|0;k[e>>2]=g;k[l+24>>2]=a;ws(l,b)|0;l=(k[a>>2]|0)+460|0;k[l>>2]=(k[l>>2]|0)-(k[i>>2]|0);if(!((k[a+24>>2]|0)<=0?(k[(k[e>>2]|0)+64>>2]|0)<=0:0)){l=b+4|0;k[l>>2]=k[l>>2]|8}e=j[f>>1]|0;d=b+4|0;c=k[d>>2]|0;if(e&2){c=c|2;k[d>>2]=c}j[f>>1]=e&65535|h;c=c>>>3&1}while(0);r=n;return c|0}function rs(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;f=k[(k[a+12>>2]|0)+4>>2]|0;c=j[a+48>>1]|0;if(!(c<<16>>16)){b=0;c=0}else{g=k[a+4>>2]|0;d=c&65535;e=0;b=0;do{c=j[g+(e<<1)>>1]|0;if(c<<16>>16<0)c=1;else c=l[f+((c<<16>>16)*24|0)+22>>0]|0;b=c+b|0;e=e+1|0}while((e|0)<(d|0));b=b<<2;c=0}b=ks(b,c)|0;j[a+44>>1]=b;return}function ss(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=k[a>>2]|0;d=g+24|0;f=k[d>>2]|0;k[d>>2]=f&-97|64;Is(a,b,0);if(!(k[a+64>>2]|0)){while(1){c=k[b+52>>2]|0;if(!c){e=b;break}else b=c}k[d>>2]=f;b=rh(g,76,0)|0;if(b){c=b+0|0;d=c+76|0;do{i[c>>0]=0;c=c+1|0}while((c|0)<(d|0));j[b+40>>1]=1;k[b>>2]=0;j[b+28>>1]=200;nu(a,k[e>>2]|0,b+38|0,b+4|0);ou(a,b,e);j[b+36>>1]=-1;if(i[g+65>>0]|0){pg(g,b);b=0}}else b=0}else b=0;return b|0}function ts(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=k[b>>2]|0;e=i[c>>0]|0;a:do if(!(e<<24>>24)){g=0;f=0}else{g=e;h=0;while(1){f=h+1|0;if(!(g<<24>>24==95?1:(i[10368+(g&255)>>0]&6)!=0)){f=h;break a}g=i[c+f>>0]|0;if(!(g<<24>>24)){g=0;break}else h=f}}while(0);if((((e&255)+-48|0)>>>0>=10?(ki(c,f)|0)==27:0)?!((f|0)==0|g<<24>>24!=0):0)j=0;else{i[a+d>>0]=34;j=1;e=i[c>>0]|0;d=d+1|0}if(e<<24>>24){f=c;h=0;do{g=d+1|0;i[a+d>>0]=e;if((i[f>>0]|0)==34){i[a+g>>0]=34;d=d+2|0}else d=g;h=h+1|0;f=c+h|0;e=i[f>>0]|0}while(e<<24>>24!=0)}if(j){i[a+d>>0]=34;d=d+1|0}i[a+d>>0]=0;k[b>>2]=d;return}function us(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=a+20|0;d=i[c>>0]|0;if(d<<24>>24==2?(k[b+4>>2]&1|0)!=0:0){i[c>>0]=0;c=2}else e=4;a:do if((e|0)==4)switch(l[b>>0]|0|0){case 135:if(d<<24>>24==4){i[c>>0]=0;c=2;break a}else if(d<<24>>24==5){i[b>>0]=101;c=0;break a}else{c=0;break a}case 153:{if((d&255)>3){c=0;break a}if(k[b+4>>2]&524288){c=0;break a}i[c>>0]=0;c=2;break a}case 156:case 155:case 154:case 27:{if(d<<24>>24==3?(k[b+28>>2]|0)==(k[a+24>>2]|0):0){c=0;break a}i[c>>0]=0;c=2;break a}default:{c=0;break a}}while(0);return c|0}function vs(a,b){a=a|0;b=b|0;i[a+20>>0]=0;return 2}function ws(a,b){a=a|0;b=b|0;var c=0,d=0;a:do if(!b)b=0;else{c=wc[k[a>>2]&127](a,b)|0;do if((c|0)==0?(d=b+4|0,(k[d>>2]&16384|0)==0):0){if(ws(a,k[b+12>>2]|0)|0){b=2;break a}if(ws(a,k[b+16>>2]|0)|0){b=2;break a}b=b+20|0;if(!(k[d>>2]&2048))if(!(qu(a,k[b>>2]|0)|0))break;else{b=2;break a}else if(!(pu(a,k[b>>2]|0)|0))break;else{b=2;break a}}while(0);b=c&2}while(0);return b|0}function xs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;do if(b){if(c){if((ru(b)|0)==0?(ru(c)|0)==0:0){d=rh(a,48,0)|0;if(d){e=d+0|0;f=e+48|0;do{i[e>>0]=0;e=e+1|0}while((e|0)<(f|0));i[d>>0]=72;j[d+34>>1]=-1;k[d+24>>2]=1}ys(a,d,b,c);b=d;break}Lk(a,b);Lk(a,c);b=sr(a,132,20616,0)|0}}else b=c;while(0);return b|0}function ys(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(!b){Lk(a,c);Lk(a,d)}else{if(d){k[b+16>>2]=d;a=b+4|0;k[a>>2]=k[a>>2]|k[d+4>>2]&2097408}if(c){k[b+12>>2]=c;a=b+4|0;k[a>>2]=k[a>>2]|k[c+4>>2]&2097408}Nt(b)}return}function zs(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,l=0;f=b<<16>>16;h=(f<<2)+63&-8;i=f<<1;l=i+2|0;g=(f+7+i+l&-8)+h|0;e=g+c|0;c=rh(a,e,((e|0)<0)<<31>>31)|0;if(c){kw(c|0,0,e|0)|0;k[c+32>>2]=c+56;k[c+8>>2]=c+h;e=h+l|0;k[c+4>>2]=c+e;k[c+28>>2]=c+(e+i);j[c+48>>1]=b;j[c+46>>1]=f+65535;k[d>>2]=c+g}return c|0}function As(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=r;r=r+16|0;if((r|0)>=(s|0))ka();t=z;n=k[b+12>>2]|0;l=a+68|0;w=k[l>>2]|0;y=w+1|0;k[l>>2]=w+2;j=k[a>>2]|0;g=k[b+24>>2]|0;a:do if(g){e=k[j+20>>2]|0;if((e|0)>0){d=k[j+16>>2]|0;h=0;while(1){f=h+1|0;if((k[d+(h<<4)+12>>2]|0)==(g|0)){f=h;break a}if((f|0)<(e|0))h=f;else break}}else f=0}else f=-1e6;while(0);if((Xq(a,27,k[b>>2]|0,0,k[(k[j+16>>2]|0)+(f<<4)>>2]|0)|0)==0?(ls(a,f,k[n+32>>2]|0,1,k[n>>2]|0),x=Tq(a)|0,(x|0)!=0):0){if((c|0)>-1)o=c;else o=k[b+40>>2]|0;u=ms(a,b)|0;v=k[l>>2]|0;k[l>>2]=v+1;q=b+46|0;e=m[q>>1]|0;if(u)k[u>>2]=(k[u>>2]|0)+1;Ch(x,Bh(x,58,v,0,e)|0,u,-6);Vq(a,w,f,n,54);j=Bh(x,108,w,0,0)|0;e=a+19|0;d=i[e>>0]|0;if(!(d<<24>>24)){n=a+72|0;p=(k[n>>2]|0)+1|0;k[n>>2]=p}else{p=d+-1<<24>>24;i[e>>0]=p;p=k[a+((p&255)<<2)+24>>2]|0}Ut(a,b,w,p,0,t,0,0)|0;Bh(x,109,v,p,0)|0;Vt(a,k[t>>2]|0);Bh(x,9,w,j+1|0,0)|0;n=x+32|0;h=k[n>>2]|0;if(h>>>0>j>>>0)k[(k[x+4>>2]|0)+(j*20|0)+8>>2]=h;g=x+24|0;k[(k[g>>2]|0)+88>>2]=h+-1;if((c|0)<0)Bh(x,118,o,f,0)|0;Ch(x,Bh(x,55,y,o,f)|0,u,-6);l=x+4|0;e=k[l>>2]|0;if(e)i[e+(((k[n>>2]|0)+-1|0)*20|0)+3>>0]=(c>>31)+4&252|1;j=Bh(x,106,v,0,0)|0;e=k[n>>2]|0;if((i[b+50>>0]|0)!=0&(u|0)!=0){h=e+3|0;Bh(x,16,0,h,0)|0;e=k[n>>2]|0;o=m[q>>1]|0;Ch(x,Bh(x,99,v,h,p)|0,o,-14);su(a,2,b)}Bh(x,100,v,p,y)|0;Bh(x,110,y,p,1)|0;d=k[l>>2]|0;if(d)i[d+(((k[n>>2]|0)+-1|0)*20|0)+3>>0]=16;ds(a,p);Bh(x,5,v,e,0)|0;d=k[n>>2]|0;if(d>>>0>j>>>0)k[(k[l>>2]|0)+(j*20|0)+8>>2]=d;k[(k[g>>2]|0)+88>>2]=d+-1;Bh(x,61,w,0,0)|0;Bh(x,61,y,0,0)|0;Bh(x,61,v,0,0)|0}r=z;return}function Bs(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0;p=r;r=r+16|0;if((r|0)>=(s|0))ka();o=p;n=k[a>>2]|0;if(!c){c=bo(n,b,d,0)|0;if(!c)h=4;else h=3}else h=3;if((h|0)==3)if(!(k[c+12>>2]|0))h=4;else h=14;if((h|0)==4){f=b&255;e=n+224|0;if(k[e>>2]|0){g=ph(n,d)|0;if(g){vc[k[e>>2]&15](k[n+232>>2]|0,n,f,g);rg(n,g);h=7}}else h=7;if((h|0)==7?(m=n+228|0,(k[m>>2]|0)!=0):0){e=rh(n,40,0)|0;if(!e)e=0;else{g=e+0|0;f=g+40|0;do{i[g>>0]=0;g=g+1|0}while((g|0)<(f|0));j[e+8>>1]=1;k[e+32>>2]=n;ah(e,d,-1,1,0)|0}c=Xg(e,2)|0;if(c)vc[k[m>>2]&15](k[n+232>>2]|0,n,l[n+62>>0]|0,c);Rh(e)}c=bo(n,b,d,0)|0;if(!c)h=19;else h=14}a:do if((h|0)==14)if(!(k[c+12>>2]|0)){f=k[c>>2]|0;g=0;while(1){e=bo(n,i[26816+g>>0]|0,f,0)|0;g=g+1|0;if(k[e+12>>2]|0)break;if((g|0)>=3){h=19;break a}}k[c+0>>2]=k[e+0>>2];k[c+4>>2]=k[e+4>>2];k[c+8>>2]=k[e+8>>2];k[c+12>>2]=k[e+12>>2];k[c+16>>2]=0}while(0);if((h|0)==19){k[o>>2]=d;yh(a,26784,o);c=0}r=p;return c|0}function Cs(a){a=a|0;var b=0,c=0;a=k[a+24>>2]|0;c=a+108|0;b=k[c>>2]|0;k[c>>2]=b+1;if(!(b+-1&b)){c=a+112|0;a=$l(k[a>>2]|0,k[c>>2]|0,b<<3|4,0)|0;k[c>>2]=a}else a=k[a+112>>2]|0;if(a)k[a+(b<<2)>>2]=-1;return ~b|0}function Ds(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0;if(b){d=k[b>>2]|0;if((d|0)>0){e=(d*72|0)+8|0;d=e;e=((e|0)<0)<<31>>31}else{d=80;e=0}d=rhrhrh;break}if((g|0)==(U|0))break;c=k[c+8>>2]|0;A:do if(!c)A=0;else while(1){if((i[c+51>>0]&3)==2){A=c;break A}c=k[c+20>>2]|0;if(!c){A=0;break}}while(0);E=A+46|0;t=j[E>>1]|0;c=t&65535;y=fa+60|0;x=k[y>>2]|0;w=fa+56|0;q=k[w>>2]|0;if((q|0)<(c|0)){aa=fa+72|0;x=k[aa>>2]|0;k[aa>>2]=x+c;x=x+1|0}else{k[y>>2]=x+c;k[w>>2]=q-c}if(t<<16>>16){q=A+4|0;t=S+48|0;w=S+4|0;B=0;do{A=j[(k[q>>2]|0)+(B<<1)>>1]|0;c=j[t>>1]|0;B:do if(!(c<<16>>16))c=-1;else{z=k[w>>2]|0;y=c&65535;c=0;while(1){if((j[z+(c<<1)>>1]|0)==A<<16>>16)break B;c=c+1|0;if((c|0)>=(y|0)){c=-1;break}}}while(0);Bh(ba,47,U,c<<16>>16,B+x|0)|0;B=B+1|0;c=m[E>>1]|0}while((B|0)<(c|0))}Ch(ba,Bh(ba,68,g,ca,x)|0,c,-14)}while(0);x=k[T>>2]|0;do if(!(x&4096)){w=d+(sa*80|0)+781|0;if(!_){i[w>>0]=9;break}else{i[w>>0]=8;break}}else i[d+(sa*80|0)+781>>0]=-100;while(0);k[d+(sa*80|0)+784>>2]=U;i[d+(sa*80|0)+782>>0]=x>>>16&1;if(x&15){ua=459;break}i[d+(sa*80|0)+783>>0]=1;ua=459;break}if(!(C&8192))if(!(A&8)){i[d+(sa*80|0)+781>>0]=i[33560+_>>0]|0;k[d+(sa*80|0)+784>>2]=g;ua=(Bh(ba,l[33568+_>>0]|0,g,F,0)|0)+1|0;k[d+(sa*80|0)+788>>2]=ua;i[d+(sa*80|0)+783>>0]=1;ua=459;break}else{i[d+(sa*80|0)+781>>0]=-100;ua=459;break}F=fa+68|0;Z=k[F>>2]|0;k[F>>2]=Z+1;X=fa+72|0;Y=(k[X>>2]|0)+1|0;k[X>>2]=Y;_=Cs(ba)|0;W=k[E+(G*72|0)+24>>2]|0;e=k[k[J+48>>2]>>2]|0;P=k[e+12>>2]|0;i[d+(sa*80|0)+781>>0]=18;k[d+(sa*80|0)+784>>2]=Y;A=i[ya>>0]|0;do if((A&255)>1){E=(A&255)-sa|0;C=E+-1|0;B=rh(da,(C*72|0)+80|0,0)|0;if(!B)break z;A=E&255;k[B+4>>2]=A;k[B>>2]=A;A=B+8|0;G=A+0|0;z=N+0|0;c=G+72|0;do{k[G>>2]=k[z>>2];G=G+4|0;z=z+4|0}while((G|0)<(c|0));D=k[za>>2]|0;if((E|0)<2){V=B;break}else E=1;while(1){G=A+(E*72|0)+0|0;z=D+((l[d+((E+sa|0)*80|0)+780>>0]|0)*72|0)+8|0;c=G+72|0;do{k[G>>2]=k[z>>2];G=G+4|0;z=z+4|0}while((G|0)<(c|0));if((E|0)<(C|0))E=E+1|0;else{V=B;break}}}else V=k[za>>2]|0;while(0);if(!(j[Ba>>1]&8)){if(!(i[W+44>>0]&32)){A=(k[X>>2]|0)+1|0;k[X>>2]=A;Bh(ba,28,0,A,0)|0}else{A=k[W+8>>2]|0;C:do if(!A)A=0;else while(1){if((i[A+51>>0]&3)==2)break C;A=k[A+20>>2]|0;if(!A){A=0;break}}while(0);U=k[F>>2]|0;k[F>>2]=U+1;Bh(ba,57,U,m[A+46>>1]|0,0)|0;T=k[K>>2]|0;Ch(T,-1,ms(fa,A)|0,-6);A=U}T=(k[X>>2]|0)+1|0;k[X>>2]=T}else{T=0;A=0}U=Bh(ba,25,0,Y,0)|0;z=k[va>>2]|0;do if((z|0)>1){B=0;E=0;do{D=k[wa>>2]|0;S=D+(B*48|0)|0;C=k[S>>2]|0;do if((S|0)!=(e|0)){if(k[C+4>>2]&1)break;if(j[D+(B*48|0)+20>>1]&2)break;if(!(j[D+(B*48|0)+18>>1]&4095))break;E=xs(da,E,Rr(da,C,0,0)|0)|0;z=k[va>>2]|0}while(0);B=B+1|0}while((B|0)<(z|0));z=E;if(!z){S=0;break}S=cr(fa,72,0,z,0)|0}else S=0;while(0);R=P+12|0;do if((k[R>>2]|0)>0){u=P+20|0;t=(S|0)==0;q=W+44|0;w=ba+32|0;x=ba+4|0;z=ba+24|0;B=W+8|0;C=fa+60|0;D=fa+56|0;E=S+12|0;Q=0;y=0;c=0;v=240;while(1){G=k[u>>2]|0;if((k[G+(Q*48|0)+8>>2]|0)!=(g|0)?(j[G+(Q*48|0)+18>>1]&512)==0:0)G=v;else ua=407;do if((ua|0)==407){ua=0;G=k[G+(Q*48|0)>>2]|0;do if(!t){if(k[G+4>>2]&1)break;k[E>>2]=G;G=S}while(0);H=_s(fa,V,G,0,0,v,Z)|0;if(!H){G=v;break}Uu(fa,V,H+736|0,sa,l[$>>0]|0,0);do if(!(j[Ba>>1]&8)){K=(Q|0)==((k[R>>2]|0)+-1|0)?-1:Q;do if(!(i[q>>0]&32)){F=Bh(ba,130,A,0,ht(fa,W,-1,g,T,0)|0)|0;Ch(ba,F,K,-14)}else{G=k[B>>2]|0;D:do if(!G)G=0;else while(1){if((i[G+51>>0]&3)==2)break D;G=k[G+20>>2]|0;if(!G){G=0;break}}while(0);M=j[G+46>>1]|0;I=M&65535;P=k[C>>2]|0;N=k[D>>2]|0;if((N|0)<(I|0)){J=k[X>>2]|0;k[X>>2]=J+I;J=J+1|0}else{k[C>>2]=P+I;k[D>>2]=N-I;J=P}if(M<<16>>16){N=G+4|0;P=0;do{ht(fa,W,j[(k[N>>2]|0)+(P<<1)>>1]|0,g,P+J|0,0)|0;P=P+1|0}while((P|0)<(I|0))}P=(K|0)!=0;if(P){F=Bh(ba,69,A,0,J)|0;Ch(ba,F,I,-14);if((K|0)>-1)ua=426}else{F=0;ua=426}do if((ua|0)==426){ua=0;Bh(ba,49,J,I,T)|0;Bh(ba,110,A,T,0)|0;if(!P)break;K=k[x>>2]|0;if(!K)break;i[K+(((k[w>>2]|0)+-1|0)*20|0)+3>>0]=16}while(0);it(fa,J,I);if((k[D>>2]|0)>=(I|0))break;k[D>>2]=I;k[C>>2]=J}while(0);Bh(ba,17,Y,_,0)|0;if(!F)break;G=k[w>>2]|0;if(G>>>0>F>>>0)k[(k[x>>2]|0)+(F*20|0)+8>>2]=G;k[(k[z>>2]|0)+88>>2]=G+-1}else Bh(ba,17,Y,_,0)|0;while(0);c=(i[H+39>>0]|0)==0?c:1;G=k[H+800>>2]|0;do if(!(k[G+36>>2]&512)){y=0;G=v}else{if((Q|0)!=0?(k[G+28>>2]|0)!=(y|0):0){y=0;G=v;break}y=k[G+28>>2]|0;if((i[q>>0]&32)!=0?(i[y+51>>0]&3)==2:0){y=0;G=v;break}G=(v&65535|4096)&65535}while(0);at(H)}while(0);Q=Q+1|0;if((Q|0)>=(k[R>>2]|0))break;else v=G}k[d+(sa*80|0)+792>>2]=y;if(!y){q=c;break}k[d+(sa*80|0)+744>>2]=Z;q=c}else{k[d+(sa*80|0)+792>>2]=0;q=0}while(0);if(S){k[S+12>>2]=0;Lk(da,S)}w=ba+32|0;c=k[w>>2]|0;if(c>>>0>U>>>0)k[(k[ba+4>>2]|0)+(U*20|0)+4>>2]=c;Bh(ba,16,0,k[aa>>2]|0,0)|0;y=k[ba+24>>2]|0;x=~_;do if((_|0)<0){c=k[y+112>>2]|0;if(!c)break;k[c+(x<<2)>>2]=k[w>>2]}while(0);k[y+88>>2]=(k[w>>2]|0)+-1;if((l[ya>>0]|0)>1)rg(da,V);if(q){ua=459;break}Wu(p,e);ua=459}else{ua=k[E+(G*72|0)+36>>2]|0;Bh(ba,20,ua,0,k[E+(G*72|0)+32>>2]|0)|0;ua=Bh(ba,22,ua,F,0)|0;k[d+(sa*80|0)+788>>2]=ua;i[d+(sa*80|0)+781>>0]=16;ua=459}while(0);if((ua|0)==459){ua=0;c=k[va>>2]|0;do if((c|0)>0){u=d+(sa*80|0)+772|0;v=ba+32|0;z=ba+4|0;A=ba+24|0;t=k[wa>>2]|0;while(1){q=t+20|0;y=j[q>>1]|0;do if(!(y&6)){aa=t+40|0;$=ea;if(!((k[$>>2]&k[aa>>2]|0)==0?(k[$+4>>2]&k[aa+4>>2]|0)==0:0)){i[ia>>0]=1;break}x=k[t>>2]|0;if((k[p>>2]|0)!=0?(k[x+4>>2]&1|0)==0:0)break;do if(!(y&512))lt(fa,x,ca,16);else{w=Bh(ba,46,k[u>>2]|0,0,0)|0;lt(fa,x,ca,16);if(!w)break;y=k[v>>2]|0;if(y>>>0>w>>>0)k[(k[z>>2]|0)+(w*20|0)+8>>2]=y;k[(k[A>>2]|0)+88>>2]=y+-1}while(0);j[q>>1]=m[q>>1]|4}while(0);c=c+-1|0;if((c|0)<=0)break;else t=t+48|0}u=k[va>>2]|0;if((u|0)<=0){ua=475;break}w=k[wa>>2]|0;while(1){do if(!(j[w+20>>1]&6)){if((j[w+18>>1]|0)!=1026)break;if((k[w+8>>2]|0)!=(g|0))break;if(k[p>>2]|0)break;y=k[w>>2]|0;c=Ku(Fa,g,k[w+12>>2]|0,o,n,3,0)|0;if(!c)break;if(j[c+20>>1]&4)break;x=rh=(e|0)==0;H=(c|0)!=0;I=H&1;J=W+4|0;K=T+4|0;L=b+4|0;M=S+4|0;N=H?110:109;do{if(!(!O?(gv(b,h,e,f)|0)==0:0)){E=k[a>>2]|0;D=i[h+I+25>>0]|0;F=D&255;G=h+(I<<2)+28|0;c=k[G>>2]|0;do if(!(D<<24>>24==0|(c|0)!=0)){k[R>>2]=0;k[Q>>2]=0;if(!(Rt(a,b,h,R,Q)|0)){p=h+20|0;if((k[p>>2]|0)>0){x=34352;w=k[x>>2]|0;x=k[x+4>>2]|0;z=34360;y=k[z>>2]|0;z=k[z+4>>2]|0;A=h+36|0;C=D<<24>>24!=6&(D<<24>>24!=9|H);B=0;m=0;g=0;l=0;do{c=V;k[c>>2]=w;k[c+4>>2]=x;c=U;k[c>>2]=y;k[c+4>>2]=z;c=k[Q>>2]|0;if(!c)c=A;else c=c+(B<<2)|0;o=k[c>>2]|0;q=k[R>>2]|0;if(!q)u=34368;else u=k[(k[L>>2]|0)+((j[(k[q+4>>2]|0)+(B<<1)>>1]|0)*24|0)>>2]|0;k[W>>2]=u;c=k[(k[(k[h>>2]|0)+4>>2]|0)+(o*24|0)>>2]|0;k[T>>2]=c;if(!u)t=0;else{v=u;while(1)if(!(i[v>>0]|0))break;else v=v+1|0;t=v-u&1073741823}k[J>>2]=t;if(!c)n=0;else{u=c;while(1)if(!(i[u>>0]|0))break;else u=u+1|0;n=u-c&1073741823}k[K>>2]=n;v=cr(a,27,0,0,V)|0;v=cr(a,122,v,cr(a,27,0,0,W)|0,0)|0;l=xs(E,l,cr(a,79,v,cr(a,27,0,0,T)|0,0)|0)|0;if(H){u=cr(a,27,0,0,V)|0;u=cr(a,122,u,cr(a,27,0,0,W)|0,0)|0;v=cr(a,27,0,0,U)|0;g=xs(E,g,cr(a,73,u,cr(a,122,v,cr(a,27,0,0,W)|0,0)|0,0)|0)|0}if(C){do if(D<<24>>24==9){c=cr(a,27,0,0,U)|0;c=cr(a,122,c,cr(a,27,0,0,W)|0,0)|0}else if(D<<24>>24==8){c=k[(k[(k[h>>2]|0)+4>>2]|0)+(o*24|0)+4>>2]|0;if(!c){c=cr(a,101,0,0,0)|0;break}else{c=Rr(E,c,0,0)|0;break}}else c=cr(a,101,0,0,0)|0;while(0);m=qr(a,m,c)|0;rr(a,m,T,0)}B=B+1|0}while((B|0)<(k[p>>2]|0));c=h}else{c=h;m=0;g=0;l=0}rg(E,k[Q>>2]|0);v=k[k[c>>2]>>2]|0;if(!v)n=0;else{c=v;while(1)if(!(i[c>>0]|0))break;else c=c+1|0;n=c-v&1073741823}if(D<<24>>24==6){k[S>>2]=v;k[M>>2]=n;c=yt(E,57,34376)|0;if(c)i[c+1>>0]=2;u=qr(a,0,c)|0;u=pr(a,u,ur(E,0,S,0)|0,l,0,0,0,0,0,0)|0;t=0}else{u=0;t=l}o=E+250|0;p=i[o>>0]|0;i[o>>0]=0;c=n+77|0;q=rh(E,c,0)|0;if(q){kw(q|0,0,c|0)|0;l=q+36|0;k[q+28>>2]=l;D=q+76|0;k[q+48>>2]=D;k[q+52>>2]=n;pw(D|0,v|0,n|0)|0;D=Rr(E,t,1,0)|0;k[q+56>>2]=D;D=Ur(E,m,1)|0;k[q+60>>2]=D;D=lr(E,u,1)|0;k[q+44>>2]=D;if(!g){c=q;g=0}else{g=cr(a,19,g,0,0)|0;c=Rr(E,g,1,0)|0;k[q+12>>2]=c;c=q}}else{c=0;l=0}i[o>>0]=p;Lk(E,t);Lk(E,g);Sk(E,m);Rk(E,u,1);if((i[E+65>>0]|0)==1){Pk(E,c);c=0;break}if((F|0)==6)i[l>>0]=119;else if((F|0)==9?!H:0)i[l>>0]=109;else X=49;if((X|0)==49){X=0;i[l>>0]=110}k[l+4>>2]=c;F=k[P>>2]|0;k[q+20>>2]=F;k[q+24>>2]=F;k[G>>2]=c;i[q+8>>0]=N}else c=0}while(0);if(c)iv(a,c,b,d,2,0)}h=k[h+12>>2]|0}while((h|0)!=0)}r=Y;return}function It(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0;c=j[a+46>>1]|0;a:do if(c<<16>>16==(j[b+46>>1]|0)?(i[a+50>>0]|0)==(i[b+50>>0]|0):0){if(c<<16>>16){d=k[b+4>>2]|0;e=k[a+4>>2]|0;f=b+28|0;g=a+28|0;h=b+32|0;l=a+32|0;p=0;do{if((j[d+(p<<1)>>1]|0)!=(j[e+(p<<1)>>1]|0)){c=0;break a}if((i[(k[f>>2]|0)+p>>0]|0)!=(i[(k[g>>2]|0)+p>>0]|0)){c=0;break a}m=k[(k[h>>2]|0)+(p<<2)>>2]|0;n=k[(k[l>>2]|0)+(p<<2)>>2]|0;o=(n|0)==0;if(!m){if(!o){c=0;break a}}else{if(o){c=0;break a}if(id(m,n)|0){c=0;break a}}p=p+1|0}while((p|0)<(c&65535|0))}c=(Hu(k[b+36>>2]|0,k[a+36>>2]|0,-1)|0)==0&1}else c=0;while(0);return c|0}function Jt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;do if(!(i[c+44>>0]&8))d=0;else{f=k[a+408>>2]|0;f=(f|0)==0?a:f;e=f+404|0;d=k[e>>2]|0;a:do if(!d)g=5;else while(1){if((k[d+4>>2]|0)==(c|0))break a;d=k[d>>2]|0;if(!d){g=5;break}}while(0);if((g|0)==5){d=rh(k[a>>2]|0,16,0)|0;if(!d){d=0;break}k[d>>2]=k[e>>2];k[e>>2]=d;k[d+4>>2]=c;k[d+8>>2]=b;a=f+72|0;e=k[a>>2]|0;k[d+12>>2]=e+2;k[a>>2]=e+3}d=k[d+12>>2]|0}while(0);return d|0}function Kt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();g=h;e=j[c+36>>1]|0;f=k[a>>2]|0;d=k[c>>2]|0;if(e<<16>>16>-1){e=k[(k[c+4>>2]|0)+((e<<16>>16)*24|0)>>2]|0;k[g>>2]=d;k[g+4>>2]=e;e=1555;d=zh(f,27824,g)|0}else{k[g>>2]=d;e=2579;d=zh(f,34408,g)|0}Es(a,e,b,d,-1,2);r=h;return}function Lt(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=a+316|0;f=k[e>>2]|0;b=qr(a,f,Rr(k[a>>2]|0,b,0,0)|0)|0;if(b){a=(k[b>>2]|0)+-1|0;f=k[b+4>>2]|0;k[f+(a*20|0)+16>>2]=c;a=f+(a*20|0)+13|0;i[a>>0]=i[a>>0]&-5|d<<2&4}k[e>>2]=b;return}function Mt(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=k[d>>2]|0;if(!(f+-1&f)){h=ha((f|0)==0?1:f<<1,c)|0;a=wo(a,b,h,((h|0)<0)<<31>>31)|0;if(!a){k[e>>2]=-1;a=b}else g=4}else{a=b;g=4}if((g|0)==4){kw(a+(ha(f,c)|0)|0,0,c|0)|0;k[e>>2]=f;k[d>>2]=(k[d>>2]|0)+1}return a|0}function Nt(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();g=h;k[g>>2]=0;b=k[a+12>>2]|0;if((b|0)!=0?(c=k[b+24>>2]|0,(c|0)>0):0){k[g>>2]=c;b=c}else b=0;c=k[a+16>>2]|0;if((c|0)!=0?(d=k[c+24>>2]|0,(d|0)>(b|0)):0)k[g>>2]=d;e=a+4|0;b=a+20|0;if(!(k[e>>2]&2048)){c=k[b>>2]|0;if(c){yu(c,g);b=k[b>>2]|0;if((b|0)!=0?(f=k[b>>2]|0,(f|0)>0):0){d=k[b+4>>2]|0;c=0;b=0;do{b=k[(k[d+(c*20|0)>>2]|0)+4>>2]|b;c=c+1|0}while((c|0)!=(f|0));b=b&2097408}else b=0;k[e>>2]=k[e>>2]|b}}else Js(k[b>>2]|0,g);k[a+24>>2]=(k[g>>2]|0)+1;r=h;return}function Ot(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=Tq(a)|0;g=a+72|0;f=(k[g>>2]|0)+1|0;k[g>>2]=f;a=rh(k[a>>2]|0,8,0)|0;if(a){g=a;k[g>>2]=c;k[g+4>>2]=d}Ch(e,Bh(e,26,0,f,0)|0,a,-13);nq(e,1);if(!(i[(k[e>>2]|0)+65>>0]|0))ah(k[e+16>>2]|0,b,-1,1,0)|0;Bh(e,35,f,1,0)|0;return}function Pt(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;f=r;r=r+16|0;if((r|0)>=(s|0))ka();e=f;b=k[a>>2]|0;c=b+16|0;d=k[(k[c>>2]|0)+20>>2]|0;do if(!d)b=0;else{if((i[b+63>>0]|0)!=0?(i[d+8>>0]|0)==0:0){Rl(d);k[(k[c>>2]|0)+20>>2]=0;Jg(b);b=0;break}yh(a,32128,e);b=1}while(0);r=f;return b|0}function Qt(a){a=a|0;var b=0,c=0,d=0;if((i[a+63>>0]|0)!=0?(b=k[a+20>>2]|0,(b|0)>0):0){d=a+24|0;c=k[a+16>>2]|0;while(1){b=b+-1|0;a=k[c+4>>2]|0;if(a)yo(a,k[d>>2]&28|l[c+8>>0]);if((b|0)<=0)break;else c=c+16|0}}return}function Rt(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=r;r=r+16|0;if((r|0)>=(s|0))ka();w=z;x=k[c+20>>2]|0;g=k[c+40>>2]|0;if((x|0)==1){q=j[b+36>>1]|0;f=q<<16>>16;if(q<<16>>16>-1)if((g|0)!=0?(id(k[(k[b+4>>2]|0)+(f*24|0)>>2]|0,g)|0)!=0:0){v=0;y=8}else e=0;else{v=0;y=8}}else if(e){f=rh
7 function Yt(a,b){a=a|0;b=b|0;var c=0;if(b&1)if(!(k[a+12>>2]|0))b=(k[a+20>>2]|0)==0?12:28;else b=28;else b=48;if((k[a+4>>2]&1024|0)==0?(c=k[a+8>>2]|0,(c|0)!=0):0){a=c;while(1)if(!(i[a>>0]|0))break;else a=a+1|0;b=(b|1)+(a-c&1073741823)|0}return b+7&-8|0}function Zt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=k[a>>2]|0;g=d+20|0;c=k[g>>2]|0;if((c|0)>0){f=0;e=k[d+16>>2]|0;while(1){d=k[(k[e+12>>2]|0)+16>>2]|0;if(d){c=d;do{_t(a,k[c+8>>2]|0,b);c=k[c>>2]|0}while((c|0)!=0);c=k[g>>2]|0}f=f+1|0;if((f|0)>=(c|0))break;else e=e+16|0}}return}function _t(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,l=0,m=0,n=0;d=k[b+8>>2]|0;if(d){m=(c|0)==0;i=b+68|0;l=a+408|0;do{a:do if(!m){g=d+32|0;b=j[d+48>>1]|0;if(b<<16>>16){f=k[d+4>>2]|0;b=b&65535;e=0;do{if((j[f+(e<<1)>>1]|0)>-1?(id(k[(k[g>>2]|0)+(e<<2)>>2]|0,c)|0)==0:0){n=9;break a}e=e+1|0}while((e|0)<(b|0))}}else n=9;while(0);if((n|0)==9){n=0;b=k[a>>2]|0;e=k[i>>2]|0;b:do if(e){h=k[b+20>>2]|0;if((h|0)>0){f=k[b+16>>2]|0;g=0;while(1){b=g+1|0;if((k[f+(g<<4)+12>>2]|0)==(e|0)){b=g;break b}if((b|0)<(h|0))g=b;else break}}else b=0}else b=-1e6;while(0);h=k[l>>2]|0;Fr(a,b);h=((h|0)==0?a:h)+328|0;k[h>>2]=k[h>>2]|1<<b;As(a,d,-1)}d=k[d+20>>2]|0}while((d|0)!=0)}return}function $t(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=k[(k[(k[a>>2]|0)+16>>2]|0)+(b<<4)+12>>2]|0;f=k[a+408>>2]|0;Fr(a,b);f=((f|0)==0?a:f)+328|0;k[f>>2]=k[f>>2]|1<<b;f=a+68|0;d=k[f>>2]|0;k[f>>2]=d+3;mv(a,b,d,0,0);e=(k[a+72>>2]|0)+1|0;f=k[f>>2]|0;c=k[c+16>>2]|0;if(c)do{nv(a,k[c+8>>2]|0,0,d,e,f);c=k[c>>2]|0}while((c|0)!=0);ov(a,b);return}function au(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=k[a>>2]|0;g=k[b+68>>2]|0;a:do if(g){h=k[d+20>>2]|0;if((h|0)>0){e=k[d+16>>2]|0;d=0;while(1){f=d+1|0;if((k[e+(d<<4)+12>>2]|0)==(g|0)){f=d;break a}if((f|0)<(h|0))d=f;else break}}else f=0}else f=-1e6;while(0);d=k[a+408>>2]|0;Fr(a,f);d=((d|0)==0?a:d)+328|0;k[d>>2]=k[d>>2]|1<<f;d=a+68|0;e=k[d>>2]|0;k[d>>2]=e+3;if(!c)mv(a,f,e,k[b>>2]|0,28544);else mv(a,f,e,k[c>>2]|0,28536);nv(a,b,c,e,(k[a+72>>2]|0)+1|0,k[d>>2]|0);ov(a,f);return}function bu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=((c|0)/2|0)+1|0;e=rh(a,e,((e|0)<0)<<31>>31)|0;a=c+-1|0;if(e){if((a|0)>0){d=0;do{f=i[b+d>>0]|0;g=i[b+(d|1)>>0]|0;i[e+((d|0)/2|0)>>0]=(0-(g>>>6&1)&9)+g&15|(0-(f>>>6&1)&9)+f<<4;d=d+2|0}while((d|0)<(a|0));a=(c&-2|0)/2|0}else a=0;i[e+a>>0]=0}return e|0}function cu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;j=r;r=r+16|0;if((r|0)>=(s|0))ka();f=j+8|0;h=j;g=k[a+8>>2]|0;e=b+8|0;do if(!(k[b+4>>2]&1024)){e=k[e>>2]|0;b=oi(e,h)|0;if((b|0)!=0?!((b|0)==2&(c|0)!=0):0)if(!(Kc(e,29144,2)|0)){k[f>>2]=e;yh(a,29152,f);break}else{du(g,e,c,d);break}if(c){if((b|0)==2){b=0;e=-2147483648}else{b=h;b=iw(0,0,k[b>>2]|0,k[b+4>>2]|0)|0;e=L}c=h;k[c>>2]=b;k[c+4>>2]=e}b=rh(k[g>>2]|0,8,0)|0;if(b){c=h;f=k[c>>2]|0;c=k[c+4>>2]|0;e=b;a=e;i[a>>0]=f;i[a+1>>0]=f>>8;i[a+2>>0]=f>>16;i[a+3>>0]=f>>24;e=e+4|0;i[e>>0]=c;i[e+1>>0]=c>>8;i[e+2>>0]=c>>16;i[e+3>>0]=c>>24}Ch(g,Bh(g,26,0,d,0)|0,b,-13)}else{b=k[e>>2]|0;Bh(g,25,(c|0)==0?b:0-b|0,d,0)|0}while(0);r=j;return}function du(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();f=g;if(b){e=b;while(1)if(!(i[e>>0]|0))break;else e=e+1|0;Yl(b,f,e-b&1073741823,1)|0;if(c)p[f>>3]=-+p[f>>3];e=rh(k[a>>2]|0,8,0)|0;if(e){b=f;h=k[b>>2]|0;b=k[b+4>>2]|0;c=e;f=c;i[f>>0]=h;i[f+1>>0]=h>>8;i[f+2>>0]=h>>16;i[f+3>>0]=h>>24;c=c+4|0;i[c>>0]=b;i[c+1>>0]=b>>8;i[c+2>>0]=b>>16;i[c+3>>0]=b>>24}Ch(a,Bh(a,133,0,d,0)|0,e,-12)}r=g;return}function eu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=r;r=r+32|0;if((r|0)>=(s|0))ka();e=j;a:do if(!b)g=0;else while(1){d=k[b+4>>2]|0;if(!(d&4096)){g=b;break a}if(!(d&262144))b=b+12|0;else b=k[(k[b+20>>2]|0)+4>>2]|0;b=k[b>>2]|0;if(!b){g=0;break}}while(0);b:do if(((i[a+23>>0]|0)!=0?(i[g>>0]|0)!=-97:0)?(k[e+0>>2]=0,k[e+4>>2]=0,k[e+8>>2]=0,k[e+12>>2]=0,k[e+16>>2]=0,k[e+20>>2]=0,d=e+20|0,i[d>>0]=2,k[e>>2]=78,k[e+4>>2]=79,k[e+24>>2]=0,ws(e,g)|0,(i[d>>0]|0)!=0):0){d=k[a+316>>2]|0;k[c>>2]=0;c:do if((d|0)!=0?(f=k[d>>2]|0,(f|0)>0):0){b=f;d=k[d+4>>2]|0;while(1){if((i[d+13>>0]&4)!=0?(Hu(k[d>>2]|0,g,-1)|0)==0:0)break;b=b+-1|0;if((b|0)<=0)break c;else d=d+20|0}d=k[d+16>>2]|0;break b}while(0);b=a+72|0;d=(k[b>>2]|0)+1|0;k[b>>2]=d;Lt(a,g,d,1)}else h=18;while(0);do if((h|0)==18){b=a+19|0;d=i[b>>0]|0;if(!(d<<24>>24)){b=a+72|0;d=(k[b>>2]|0)+1|0;k[b>>2]=d}else{d=d+-1<<24>>24;i[b>>0]=d;d=k[a+((d&255)<<2)+24>>2]|0}b=ns(a,g,d)|0;if((b|0)==(d|0)){k[c>>2]=d;break}else{ds(a,d);k[c>>2]=0;d=b;break}}while(0);r=j;return d|0}function fu(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,l=0;l=Tu(a,b,c)|0;j=Gu(b,pv(c)|0)|0;c=a+8|0;b=k[c>>2]|0;Ch(b,Bh(b,d,f,g,e)|0,l,-4);c=k[c>>2]|0;b=k[c+4>>2]|0;if(b)i[b+(((k[c+32>>2]|0)+-1|0)*20|0)+3>>0]=j&255|h;return}function gu(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0;b=a+100|0;k[b>>2]=(k[b>>2]|0)+-1;e=a+19|0;h=0;j=a+116|0;while(1){f=j+12|0;g=k[f>>2]|0;if((g|0)!=0?(k[j+8>>2]|0)>(k[b>>2]|0):0){c=j+6|0;if(i[c>>0]|0){d=i[e>>0]|0;if((d&255)<8){i[e>>0]=d+1<<24>>24;k[a+((d&255)<<2)+24>>2]=g}i[c>>0]=0}k[f>>2]=0}h=h+1|0;if((h|0)==10)break;else j=j+20|0}return}function hu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;g=k[a>>2]|0;a:do if(b){b:while(1){d=k[b+4>>2]|0;if(d&512){b=0;h=21;break a}switch(i[b>>0]|0){case 62:case -102:case -100:{h=8;break}case 38:case -98:{b=k[b+12>>2]|0;break}case 95:{h=7;break b}case -97:{if((i[b+38>>0]|0)==95){h=7;break b}else h=8;break}default:h=11}if((h|0)==8){c=k[b+44>>2]|0;if(!c)h=11;else{h=9;break}}c:do if((h|0)==11){h=0;if(!(d&256)){b=0;h=21;break a}c=k[b+12>>2]|0;if((c|0)!=0?(k[c+4>>2]&256|0)!=0:0){b=c;continue b}e=k[b+16>>2]|0;c=k[b+20>>2]|0;if((c|0)!=0&(d&2048|0)==0?(f=k[c>>2]|0,(f|0)>0):0){c=k[c+4>>2]|0;d=0;while(1){b=k[c+(d*20|0)>>2]|0;d=d+1|0;if(k[b+4>>2]&256)break c;if((d|0)>=(f|0)){b=e;break}}}else b=e}while(0);if(!b){b=0;h=21;break a}}if((h|0)==7)b=Bs(a,i[g+62>>0]|0,0,k[b+8>>2]|0)|0;else if((h|0)==9){b=j[b+32>>1]|0;if(b<<16>>16<=-1){b=0;h=21;break}b=bo(g,i[g+62>>0]|0,k[(k[c+4>>2]|0)+((b<<16>>16)*24|0)+16>>2]|0,0)|0}if(b)if(!(Bs(a,i[(k[a>>2]|0)+62>>0]|0,b,k[b>>2]|0)|0))b=0;else h=21;else{b=0;h=21}}else{b=0;h=21}while(0);return b|0}function iu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0;p=r;r=r+16|0;if((r|0)>=(s|0))ka();o=p+4|0;n=p;k[o>>2]=0;k[n>>2]=0;if((((d|0)!=0?(i[d>>0]|0)==-102:0)?(g=k[d+44>>2]|0,(g|0)!=0):0)?(i[g+44>>0]&16)!=0:0){d=g+60|0;while(1){d=k[d>>2]|0;if((k[d>>2]|0)==(a|0))break;else d=d+24|0}f=k[d+8>>2]|0;e=(k[f>>2]|0)+72|0;if((k[e>>2]|0)!=0?(l=b+24|0,h=ph(a,k[l>>2]|0)|0,(h|0)!=0):0){g=i[h>>0]|0;if(g<<24>>24){d=h;do{i[d>>0]=i[9328+(g&255)>>0]|0;d=d+1|0;g=i[d>>0]|0}while(g<<24>>24!=0)}c=yc[k[e>>2]&31](f,c,h,o,n)|0;rg(a,h);if(c){d=k[l>>2]|0;if(!d){d=37;f=0}else{f=d;while(1)if(!(i[f>>0]|0))break;else f=f+1|0;d=(f-d&1073741823)+37|0;f=0}e=rhrh(x,a,0)|0;if(e)kw(e|0,0,a|0)|0;j[c>>1]=q;k[d>>2]=e;if((q|0)>0){o=b+4|0;t=x+65|0;a=0;p=e;while(1){m=k[o>>2]|0;b=k[m+(a*20|0)>>2]|0;b:do if(!b)b=0;else while(1){f=k[b+4>>2]|0;if(!(f&4096))break b;if(!(f&262144))b=b+12|0;else b=k[(k[b+20>>2]|0)+4>>2]|0;b=k[b>>2]|0;if(!b){b=0;break}}while(0);f=k[m+(a*20|0)+4>>2]|0;do if(!f){while(1){f=i[b>>0]|0;if(f<<24>>24==-102){v=b;y=18;break}else if(f<<24>>24==27){y=24;break}else if(f<<24>>24!=122)break;b=k[b+16>>2]|0}if((y|0)==24){y=0;k[w>>2]=k[b+8>>2];b=zh(x,10344,w)|0;break}if((y|0)==18?(y=0,u=k[v+44>>2]|0,(u|0)!=0):0){b=j[v+32>>1]|0;if(b<<16>>16<0)b=j[u+36>>1]|0;else b=b<<16>>16;if((b|0)>-1)b=k[(k[u+4>>2]|0)+(b*24|0)>>2]|0;else b=20456;k[w>>2]=b;b=zh(x,10344,w)|0;break}k[w>>2]=k[m+(a*20|0)+8>>2];b=zh(x,10344,w)|0}else b=ph(x,f)|0;while(0);if(i[t>>0]|0)break;if(!b){h=0;b=0}else{f=b;while(1)if(!(i[f>>0]|0))break;else f=f+1|0;h=f-b&1073741823}c:do if((a|0)>0){f=0;m=0;n=h;while(1){if(!(id(k[e+(m*24|0)>>2]|0,b)|0)){g=n;while(1){h=g+-1|0;if((h|0)<=1)break;if(((l[b+h>>0]|0)+-48|0)>>>0<10)g=h;else break}if((g|0)>0)g=(i[b+h>>0]|0)==58?h:n;else g=n;i[b+g>>0]=0;f=f+1|0;k[w>>2]=b;k[w+4>>2]=f;h=zh(x,26824,w)|0;rg(x,b);if(!h){b=0;break c}else{m=-1;b=h}}else g=n;m=m+1|0;if((m|0)>=(a|0))break;else n=g}}while(0);k[p>>2]=b;a=a+1|0;if((a|0)<(q|0))p=p+24|0;else{b=t;break a}}rg(x,b);b=t}else y=6}else{j[c>>1]=0;k[d>>2]=0;e=0;y=6}while(0);if((y|0)==6){b=x+65|0;a=0}if(i[b>>0]|0){if((a|0)>0){b=0;do{rg(x,k[e+(b*24|0)>>2]|0);b=b+1|0}while((b|0)!=(a|0))}rg(x,e);k[d>>2]=0;j[c>>1]=0}r=z;return}function ou(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0;p=r;r=r+32|0;if((r|0)>=(s|0))ka();o=p;n=k[a>>2]|0;if(!(i[n+65>>0]|0)){k[o+0>>2]=0;k[o+4>>2]=0;k[o+8>>2]=0;k[o+12>>2]=0;k[o+16>>2]=0;k[o+20>>2]=0;k[o+24>>2]=0;k[o+28>>2]=0;k[o+4>>2]=k[c+32>>2];g=k[(k[c>>2]|0)+4>>2]|0;f=b+38|0;if((j[f>>1]|0)>0){c=0;d=0;h=0;m=k[b+4>>2]|0;while(1){e=k[g+(h*20|0)>>2]|0;q=m+22|0;t=ph(n,Du(o,e,q)|0)|0;k[m+12>>2]=t;c=ow(l[q>>0]|0,0,c|0,d|0)|0;d=L;q=pv(e)|0;i[m+21>>0]=q<<24>>24==0?65:q;e=hu(a,e)|0;if(e){e=ph(n,k[e>>2]|0)|0;k[m+16>>2]=e}h=h+1|0;if((h|0)>=(j[f>>1]|0))break;else m=m+24|0}d=nw(c|0,d|0,2)|0;c=L}else{d=0;c=0}o=ks(d,c)|0;j[b+42>>1]=o}r=p;return}function pu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;do if(!b)c=0;else{f=a+4|0;d=k[f>>2]|0;if((d|0)==0?(k[a+8>>2]|0)==0:0){c=0;break}i=a+16|0;k[i>>2]=(k[i>>2]|0)+1;g=a+8|0;a:while(1){if((d|0)!=0?(c=wc[d&127](a,b)|0,(c|0)!=0):0){j=24;break}if(qu(a,k[b>>2]|0)|0){j=19;break}if(ws(a,k[b+36>>2]|0)|0){j=19;break}if(qu(a,k[b+40>>2]|0)|0){j=19;break}if(ws(a,k[b+44>>2]|0)|0){j=19;break}if(qu(a,k[b+48>>2]|0)|0){j=19;break}if(ws(a,k[b+60>>2]|0)|0){j=19;break}if(ws(a,k[b+64>>2]|0)|0){j=19;break}d=k[b+32>>2]|0;if((d|0)!=0?(h=k[d>>2]|0,(h|0)>0):0){e=h;d=d+8|0;while(1){if(pu(a,k[d+20>>2]|0)|0){j=19;break a}e=e+-1|0;if((e|0)<=0)break;else d=d+72|0}}d=k[g>>2]|0;if(d)oc[d&15](a,b);b=k[b+52>>2]|0;if(!b){c=0;break}d=k[f>>2]|0}if((j|0)==19){k[i>>2]=(k[i>>2]|0)+-1;c=2;break}else if((j|0)==24)c=c&2;k[i>>2]=(k[i>>2]|0)+-1}while(0);return c|0}function qu(a,b){a=a|0;b=b|0;var c=0;a:do if((b|0)!=0?(c=k[b>>2]|0,(c|0)>0):0){b=k[b+4>>2]|0;while(1){if(ws(a,k[b>>2]|0)|0){c=2;break a}c=c+-1|0;if((c|0)<=0){c=0;break}else b=b+20|0}}else c=0;while(0);return c|0}function ru(a){a=a|0;var b=0,c=0;c=r;r=r+16|0;if((r|0)>=(s|0))ka();b=c;k[b>>2]=0;if((k[a+4>>2]&1|0)==0?(Rs(a,b)|0)!=0:0)a=(k[b>>2]|0)==0&1;else a=0;r=c;return a|0}function su(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0,q=0;q=r;r=r+32|0;if((r|0)>=(s|0))ka();o=q;f=k[c+12>>2]|0;k[o+0>>2]=0;k[o+4>>2]=0;k[o+8>>2]=0;k[o+12>>2]=0;k[o+16>>2]=0;k[o+20>>2]=200;i[o+24>>0]=1;i[o+25>>0]=0;k[o>>2]=k[a>>2];l=c+46|0;if(j[l>>1]|0){n=c+4|0;g=f+4|0;p=0;do{h=k[(k[g>>2]|0)+((j[(k[n>>2]|0)+(p<<1)>>1]|0)*24|0)>>2]|0;if(p)Xk(o,28920,2);e=k[f>>2]|0;if(!e)d=0;else{d=e;while(1)if(!(i[d>>0]|0))break;else d=d+1|0;d=d-e&1073741823}Xk(o,e,d);Xk(o,28928,1);if(!h)d=0;else{d=h;while(1)if(!(i[d>>0]|0))break;else d=d+1|0;d=d-h&1073741823}Xk(o,h,d);p=p+1|0}while((p|0)<(m[l>>1]|0))}p=yg(o)|0;Es(a,(i[c+51>>0]&3)==2?1555:2067,b,p,-1,2);r=q;return}function tu(a,b){a=a|0;b=b|0;return 0}function uu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0;p=r;r=r+16|0;if((r|0)>=(s|0))ka();o=p+8|0;l=p;n=b+52|0;a:do if((k[n>>2]|0)!=0?(d=k[b+48>>2]|0,!((d|0)==0|(b|0)==0)):0){c=b;while(1){h=i[c+4>>0]|0;if(!(h<<24>>24==119|h<<24>>24==116))break;c=k[c+52>>2]|0;if(!c){c=0;break a}}e=k[d+4>>2]|0;c=k[d>>2]|0;while(1){d=c+-1|0;if((c|0)<=0){c=0;break a}if(!(k[(k[e+(d*20|0)>>2]|0)+4>>2]&256))c=d;else break}if((c|0)>=1){c=k[a+12>>2]|0;f=k[c>>2]|0;a=rh(f,72,0)|0;if(a){g=a+0|0;h=g+72|0;do{i[g>>0]=0;g=g+1|0}while((g|0)<(h|0));e=l;k[e>>2]=0;k[e+4>>2]=0;e=or(c,0,0,0,l,a,0,0)|0;if(e){g=a+0|0;d=b+0|0;h=g+72|0;do{k[g>>2]=k[d>>2];g=g+4|0;d=d+4|0}while((g|0)<(h|0));k[b+32>>2]=e;k[o>>2]=0;k[o+4>>2]=0;c=qr(c,0,sr(f,116,o,0)|0)|0;k[b>>2]=c;i[b+4>>0]=119;k[b+36>>2]=0;k[a+40>>2]=0;k[a+44>>2]=0;k[a+48>>2]=0;k[n>>2]=0;k[b+56>>2]=0;c=b+6|0;j[c>>1]=(m[c>>1]|0)&57279|8192;k[(k[a+52>>2]|0)+56>>2]=a;k[a+60>>2]=0;k[a+64>>2]=0;c=0}else c=2}else c=2}else c=0}else c=0;while(0);r=p;return c|0}function vu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0;X=r;r=r+32|0;if((r|0)>=(s|0))ka();W=X;T=X+16|0;G=a+12|0;V=k[G>>2]|0;U=k[V>>2]|0;R=b+6|0;g=m[R>>1]|0;j[R>>1]=g|16;S=U+65|0;a:do if(!(i[S>>0]|0)){F=b+32|0;P=k[F>>2]|0;if((P|0)!=0&(g&16|0)==0){Q=k[b>>2]|0;if((k[a+8>>2]|0)==9){g=b;while(1){f=k[g+56>>2]|0;if(!f)break;else g=f}g=k[g+68>>2]|0;if(g){C=V+532|0;k[g+4>>2]=k[C>>2];k[C>>2]=g;i[V+449>>0]=0}}Hs(V,P);O=P+8|0;g=k[P>>2]|0;b:do if((g|0)>0){B=0;v=O;c:while(1){if(!(i[v+37>>0]&8)){C=v+16|0;c=k[G>>2]|0;if(k[C>>2]|0){d=c;N=10;break}q=k[c>>2]|0;f=c+532|0;h=k[f>>2]|0;d:do if((k[v+4>>2]|0)==0?(E=k[v+8>>2]|0,!((E|0)==0|(h|0)==0)):0){e:while(1){n=k[h>>2]|0;if((n|0)>0){e=0;do{g=h+(e<<4)+8|0;d=k[g>>2]|0;if(!(id(E,d)|0)){z=e;break e}e=e+1|0}while((e|0)<(n|0))}h=k[h+4>>2]|0;if(!h){N=46;break d}}w=h+(z<<4)+20|0;n=k[w>>2]|0;if(n){b=n;N=21;break c}y=rh(q,76,0)|0;if(!y){b=C;N=23;break c}o=y+0|0;n=o+76|0;do{i[o>>0]=0;o=o+1|0}while((o|0)<(n|0));k[C>>2]=y;t=y+40|0;j[t>>1]=1;A=ph(q,k[g>>2]|0)|0;k[y>>2]=A;j[y+36>>1]=-1;j[y+28>>1]=200;A=y+44|0;i[A>>0]=l[A>>0]|2;A=lr(q,k[h+(z<<4)+16>>2]|0,0)|0;k[v+20>>2]=A;if(i[q+65>>0]|0){b=2;break a}x=((i[A+4>>0]|0)+-115&255)<2;if(x?(u=k[A+32>>2]|0,D=k[u>>2]|0,(D|0)>0):0){n=A+6|0;o=D;q=0;do{do if(!(k[u+(q*72|0)+12>>2]|0)){p=k[u+(q*72|0)+16>>2]|0;if(!p)break;if(id(p,k[g>>2]|0)|0)break;k[u+(q*72|0)+24>>2]=y;o=u+(q*72|0)+45|0;i[o>>0]=i[o>>0]|8;j[t>>1]=(j[t>>1]|0)+1<<16>>16;j[n>>1]=m[n>>1]|2048;o=k[u>>2]|0}while(0);q=q+1|0}while((q|0)<(o|0))}if((m[t>>1]|0)>2){b=g;N=34;break c}k[w>>2]=28176;e=k[f>>2]|0;k[f>>2]=h;if(x)n=k[A+52>>2]|0;else n=A;pu(a,n)|0;n=A;while(1){d=k[n+52>>2]|0;if(!d)break;else n=d}d=k[n>>2]|0;n=k[h+(z<<4)+12>>2]|0;do if(n){if(!d)break;p=k[d>>2]|0;d=k[n>>2]|0;if((p|0)!=(d|0)){b=p;N=42;break c}}else n=d;while(0);nu(c,n,y+38|0,y+4|0);if(x){k[w>>2]=(j[A+6>>1]&2048)==0?28280:28240;pu(a,A)|0}k[w>>2]=0;k[f>>2]=e;if(!(k[C>>2]|0))N=46}else N=46;while(0);do if((N|0)==46){N=0;if(!(k[v+8>>2]|0)){h=k[v+20>>2]|0;if(pu(a,h)|0){b=2;break a}f=rh0;d=R+36|0;e=0;while(1){q=l[34144+e>>0]|0;g=Rr(S,g,0,0)|0;g=cr(Q,q,g,Rr(S,k[(k[h>>2]|0)+(e*20|0)>>2]|0,0,0)|0,0)|0;if(g){q=g+4|0;k[q>>2]=k[q>>2]|k[N>>2]&1;j[g+36>>1]=j[d>>1]|0}q=Ev(a,g,3)|0;Ju(a,q);f=k[T>>2]|0;k[f+(q*48|0)+4>>2]=b;j[f+(q*48|0)+16>>1]=j[f+(b*48|0)+16>>1]|0;q=f+(b*48|0)+22|0;i[q>>0]=(i[q>>0]|0)+1<<24>>24;e=e+1|0;if((e|0)==2)break;g=k[s>>2]|0}c=f+(b*48|0)|0;break}else if(e<<24>>24!=71)break;x=rh(S,416,0)|0;d:do if(x){kw(x|0,0,416)|0;k[f+(b*48|0)+12>>2]=x;A=f+(b*48|0)+20|0;j[A>>1]=m[A>>1]|16;k[x>>2]=C;k[x+4>>2]=0;A=x+12|0;k[A>>2]=0;k[x+16>>2]=8;B=x+20|0;k[B>>2]=x+24;Iu(x,R,71);h=k[A>>2]|0;if((h|0)>0)do{h=h+-1|0;Ju(x,h)}while((h|0)>0);if(!(i[K>>0]|0)){p=k[A>>2]|0;if((p|0)>0){w=C+68|0;v=-1;u=-1;d=-1;c=-1;t=k[B>>2]|0;while(1){p=p+-1|0;o=t+18|0;s=j[o>>1]|0;if(!(s&255)){g=rh(S,408,0)|0;if(!g){h=v;n=u;d=0;c=0}else{k[t+12>>2]=g;n=t+20|0;j[n>>1]=m[n>>1]|32;j[o>>1]=512;k[g>>2]=k[a>>2];n=g+4|0;k[n>>2]=0;h=g+12|0;k[h>>2]=0;k[g+16>>2]=8;q=g+20|0;k[q>>2]=g+24;Iu(g,k[t>>2]|0,72);o=k[h>>2]|0;if((o|0)>0)do{o=o+-1|0;Ju(g,o)}while((o|0)>0);k[n>>2]=a;if((i[K>>0]|0)==0?(y=k[h>>2]|0,(y|0)>0):0){o=0;n=0;c=0;r=k[q>>2]|0;while(1){h=(l[k[r>>2]>>0]|0)+-75|0;do if(h>>>0<9){if(!(499>>>(h&511)&1))break;g=k[r+8>>2]|0;e=k[w>>2]|0;e:do if((e|0)>0){h=0;while(1){if((k[C+(h<<2)+72>>2]|0)==(g|0))break;h=h+1|0;if((h|0)>=(e|0)){h=0;g=0;break e}}h=nw(1,0,h|0)|0;g=L}else{h=0;g=0}while(0);o=h|o;n=g|n}while(0);c=c+1|0;if((c|0)>=(y|0))break;else r=r+48|0}}else{o=0;n=0}h=o&v;n=n&u;d=0;c=0}}else{n=j[t+20>>1]|0;if(!(n&8)){q=k[t+8>>2]|0;g=k[w>>2]|0;h=(g|0)>0;f:do if(h){o=0;while(1){if((k[C+(o<<2)+72>>2]|0)==(q|0))break;o=o+1|0;if((o|0)>=(g|0)){e=0;r=0;break f}}e=nw(1,0,o|0)|0;r=L}else{e=0;r=0}while(0);if(!(n&2)){o=e;q=r}else{q=k[(k[B>>2]|0)+((k[t+4>>2]|0)*48|0)+8>>2]|0;g:do if(h){o=0;while(1){if((k[C+(o<<2)+72>>2]|0)==(q|0))break;o=o+1|0;if((o|0)>=(g|0)){o=0;q=0;break g}}o=nw(1,0,o|0)|0;q=L}else{o=0;q=0}while(0);o=o|e;q=q|r}g=(s&2)==0;h=o&v;n=q&u;d=g?0:o&d;c=g?0:q&c}else{h=v;n=u}}o=(h|0)!=0|(n|0)!=0;if(!((p|0)>0&o))break;else{v=h;u=n;t=t+48|0}}q=x+408|0;k[q>>2]=h;k[q+4>>2]=n;j[z>>1]=(h|0)==0&(n|0)==0?0:256;if(o)G=104}else{d=x+408|0;k[d>>2]=-1;k[d+4>>2]=-1;j[z>>1]=256;d=-1;c=-1;G=104}h:do if((G|0)==104)if((k[A>>2]|0)==2){g=k[B>>2]|0;h=0;i:while(1){e=h+1|0;if((j[g+18>>1]|0)!=512)if(!h)o=g;else break h;else{n=k[g+12>>2]|0;if((k[n+12>>2]|0)<=(h|0))break h;o=(k[n+20>>2]|0)+(h*48|0)|0}if(!o)break h;else p=0;while(1){if((j[g+66>>1]|0)==512){n=k[g+60>>2]|0;if((k[n+12>>2]|0)<=(p|0)){h=e;continue i}n=(k[n+20>>2]|0)+(p*48|0)|0;if(!n){h=e;continue i}}else if(!p)n=g+48|0;else{h=e;continue i}Hv(a,o,n);g=k[B>>2]|0;p=p+1|0}}}while(0);if(!((d|0)==0&(c|0)==0)){r=C+68|0;q=-1;s=0;while(1){n=k[A>>2]|0;if((n|0)<=0)break d;p=k[B>>2]|0;while(1){e=n;n=n+-1|0;g=p+20|0;j[g>>1]=m[g>>1]&65471;g=k[p+8>>2]|0;if((g|0)!=(q|0)){h=k[r>>2]|0;j:do if((h|0)>0){o=0;while(1){if((k[C+(o<<2)+72>>2]|0)==(g|0))break;o=o+1|0;if((o|0)>=(h|0)){o=0;h=0;break j}}o=nw(1,0,o|0)|0;h=L}else{o=0;h=0}while(0);if(!((o&d|0)==0&(h&c|0)==0)){o=e;break}}if((n|0)<=0)break d;else p=p+48|0}h=k[p+12>>2]|0;if((o|0)<1)break d;else o=g;while(1){if((o|0)==(g|0)){if((k[p+12>>2]|0)!=(h|0)){n=g;h=1;break}q=pv(k[(k[p>>2]|0)+16>>2]|0)|0;if(!(q<<24>>24==0|q<<24>>24==(pv(k[(k[p>>2]|0)+12>>2]|0)|0)<<24>>24)){n=g;h=1;break}q=p+20|0;j[q>>1]=m[q>>1]|64}else{q=p+20|0;j[q>>1]=m[q>>1]&65471}if((n|0)<=0){n=g;h=0;break}o=k[p+56>>2]|0;n=n+-1|0;p=p+48|0}s=s+1|0;if(!((s|0)<2&h))break;else q=n}if(!h){g=k[A>>2]|0;if((g|0)>0){h=0;d=0;e=k[B>>2]|0;while(1){g=g+-1|0;if(j[e+20>>1]&64){h=Rr(S,k[(k[e>>2]|0)+16>>2]|0,0,0)|0;d=qr(k[C>>2]|0,d,h)|0;h=k[(k[e>>2]|0)+12>>2]|0}if((g|0)<=0){g=h;break}else e=e+48|0}}else{g=0;d=0}e=cr(Q,75,Rr(S,g,0,0)|0,0,0)|0;if(!e)Sk(S,d);else{q=e+4|0;k[q>>2]=k[q>>2]|k[N>>2]&1;j[e+36>>1]=j[R+36>>1]|0;k[e+20>>2]=d;q=Ev(a,e,3)|0;Ju(a,q);f=k[T>>2]|0;k[f+(q*48|0)+4>>2]=b;j[f+(q*48|0)+16>>1]=j[f+(b*48|0)+16>>1]|0;q=f+(b*48|0)+22|0;i[q>>0]=(i[q>>0]|0)+1<<24>>24}j[f+(b*48|0)+18>>1]=2048}}}}else k[f+(b*48|0)+12>>2]=0;while(0);c=(k[T>>2]|0)+(b*48|0)|0}while(0);k:do if((i[a+8>>0]|0)==72){u=k[Q>>2]|0;if((i[R>>0]|0)==-103){t=R+20|0;q=k[t>>2]|0;if((q|0)!=0?(k[q>>2]|0)==2:0){h=k[R+8>>2]|0;if(!h)g=0;else{g=h;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;g=g-h&1073741823}g=Xh(u,h,g,2,1,0)|0;if(((((g|0)!=0?(D=j[g+2>>1]|0,(D&4)!=0):0)?(J=k[g+4>>2]|0,H=i[J>>0]|0,I=i[J+1>>0]|0,J=i[J+2>>0]|0,M=(D&65535)>>>3&1,E=(k[t>>2]|0)+4|0,F=k[(k[E>>2]|0)+20>>2]|0,(i[F>>0]|0)==-102):0)?(pv(F)|0)<<24>>24==66:0)?(i[(k[F+44>>2]|0)+44>>0]&16)==0:0){f=k[k[E>>2]>>2]|0;l:do if(!f)f=0;else while(1){e=k[f+4>>2]|0;if(!(e&4096))break l;if(!(e&262144))f=f+12|0;else f=k[(k[f+20>>2]|0)+4>>2]|0;f=k[f>>2]|0;if(!f){f=0;break}}while(0);e=i[f>>0]|0;r=e<<24>>24==-121;do if(r){g=k[Q+476>>2]|0;o=j[f+32>>1]|0;p=o<<16>>16;do if(!g){d=0;h=0}else{G=p+-1|0;F=k[g+60>>2]|0;d=F+(G*40|0)|0;if(j[F+(G*40|0)+8>>1]&1){d=0;h=0;break}h=k[g>>2]|0;n=rh(h,40,0)|0;if(!n){d=0;h=0;break}g=n+0|0;e=g+40|0;do{i[g>>0]=0;g=g+1|0}while((g|0)<(e|0));G=n+8|0;j[G>>1]=1;k[n+32>>2]=h;dh(n,d)|0;if((j[G>>1]&15)!=2){d=n;h=0;break}d=n;h=Xg(n,1)|0}while(0);g=k[Q+8>>2]|0;if(o<<16>>16>32){k[g+188>>2]=-1;q=h;G=177;break}else{q=g+188|0;k[q>>2]=k[q>>2]|1<<p+-1;q=h;G=177;break}}else if(e<<24>>24==97){d=0;q=k[f+8>>2]|0;G=177}else d=0;while(0);do if((G|0)==177)if(q){h=0;while(1){G=i[q+h>>0]|0;e=G<<24>>24==H<<24>>24;g=h+1|0;if(G<<24>>24!=J<<24>>24&((G<<24>>24==0|e|G<<24>>24==I<<24>>24)^1))h=g;else break}if(h){if((i[q+(h+-1)>>0]|0)==-1)break;if(e)g=(i[q+g>>0]|0)==0;else g=0;n=g&1;s=yt(u,97,q)|0;if(s)i[(k[s+8>>2]|0)+h>>0]=0;do if(r){h=k[Q+8>>2]|0;e=j[f+32>>1]|0;if(e<<16>>16>32)k[h+188>>2]=-1;else{J=h+188|0;k[J>>2]=k[J>>2]|1<<(e<<16>>16)+-1}if(!g){n=0;break}if(!(i[(k[f+8>>2]|0)+1>>0]|0))break;e=Q+19|0;g=i[e>>0]|0;if(!(g<<24>>24)){J=Q+72|0;e=(k[J>>2]|0)+1|0;k[J>>2]=e}else{J=g+-1<<24>>24;i[e>>0]=J;e=k[Q+((J&255)<<2)+24>>2]|0}ns(Q,f,e)|0;f=k[h+32>>2]|0;if(f>>>0>0)k[(k[h+4>>2]|0)+((f+-1|0)*20|0)+12>>2]=0;ds(Q,e)}while(0);RhRh(d);G=217}else G=217}else G=217}}else G=217;while(0);if((G|0)==217)if(((((i[R>>0]|0)==-103?(id(k[R+8>>2]|0,31416)|0)==0:0)?(U=k[R+20>>2]|0,(k[U>>2]|0)==2):0)?(V=k[U+4>>2]|0,W=k[V+20>>2]|0,(i[W>>0]|0)==-102):0)?(X=k[V>>2]|0,Y=Fv(_,X)|0,Z=L,_=Fv(_,W)|0,(_&Y|0)==0&(L&Z|0)==0):0){_=Ev(a,cr(Q,51,0,Rr(S,X,0,0)|0,0)|0,3)|0;c=k[T>>2]|0;X=c+(_*48|0)+32|0;k[X>>2]=Y;k[X+4>>2]=Z;k[c+(_*48|0)+8>>2]=k[W+28>>2];k[c+(_*48|0)+12>>2]=j[W+32>>1];j[c+(_*48|0)+18>>1]=64;k[c+(_*48|0)+4>>2]=b;j[c+(_*48|0)+16>>1]=j[c+(b*48|0)+16>>1]|0;Y=c+(b*48|0)+22|0;i[Y>>0]=(i[Y>>0]|0)+1<<24>>24;Y=c+(b*48|0)+20|0;j[Y>>1]=m[Y>>1]|8;Y=c+(b*48|0)+40|0;Z=k[Y+4>>2]|0;_=c+(_*48|0)+40|0;k[_>>2]=k[Y>>2];k[_+4>>2]=Z;c=c+(b*48|0)|0}b=c+32|0;Z=b;_=k[Z+4>>2]|P;k[b>>2]=k[Z>>2]|O;k[b+4>>2]=_}while(0);return}function Ku(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0;i=r;r=r+112|0;if((r|0)>=(s|0))ka();h=i;f=Iv(h,a,b,c,f,g)|0;a:do if(!f)f=0;else{g=f;f=0;do{b=g+32|0;c=k[b>>2]|0;b=k[b+4>>2]|0;if((c&d|0)==0&(b&e|0)==0){if((c|0)==0&(b|0)==0?(j[g+18>>1]&2)!=0:0){f=g;break a}f=(f|0)==0?g:f}g=Jv(h)|0}while((g|0)!=0)}while(0);r=i;return f|0}function Lu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,q=0,u=0,v=0,w=0.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,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ha=0,ja=0,la=0,ma=0;la=r;r=r+16|0;if((r|0)>=(s|0))ka();fa=la;v=k[a>>2]|0;da=k[v>>2]|0;ha=k[da>>2]|0;ca=k[a+4>>2]|0;ea=k[a+12>>2]|0;u=l[ea+16>>0]|0;v=k[v+4>>2]|0;aa=k[v+(u*72|0)+24>>2]|0;x=k[a+8>>2]|0;ba=ca+20|0;ca=ca+12|0;d=k[ca>>2]|0;if((d|0)>0){f=k[v+(u*72|0)+48>>2]|0;g=0;e=0;h=k[ba>>2]|0;while(1){if((k[h+8>>2]|0)==(f|0))e=((j[h+18>>1]&-1153)<<16>>16!=0&1)+e|0;g=g+1|0;if((g|0)==(d|0))break;else h=h+48|0}}else e=0;if(!x)q=0;else{n=k[x>>2]|0;a:do if((n|0)>0){h=k[x+4>>2]|0;g=v+(u*72|0)+48|0;m=0;while(1){f=k[h+(m*20|0)>>2]|0;if((i[f>>0]|0)!=-102){d=m;break a}d=m+1|0;if((k[f+28>>2]|0)!=(k[g>>2]|0)){d=m;break a}if((d|0)<(n|0))m=d;else break}}else d=0;while(0);q=(d|0)==(n|0)?n:0}d=(e*20|0)+56+(q<<3)|0;$=rh(ha,d,0)|0;do if(!$){yh(da,15776,fa);d=7}else{kw($|0,0,d|0)|0;d=$+56|0;o=d+(e*12|0)|0;k[$>>2]=e;Y=$+8|0;k[Y>>2]=q;Z=$+4|0;k[Z>>2]=d;k[$+12>>2]=o;_=$+16|0;k[_>>2]=o+(q<<3);f=k[ca>>2]|0;if((f|0)>0){m=k[v+(u*72|0)+48>>2]|0;h=0;n=0;g=k[ba>>2]|0;while(1){if((k[g+8>>2]|0)==(m|0)?(y=j[g+18>>1]|0,(y&-1153)<<16>>16!=0):0){k[d+(n*12|0)>>2]=k[g+12>>2];k[d+(n*12|0)+8>>2]=h;i[d+(n*12|0)+4>>0]=(y&255)==1?2:y&255;n=n+1|0}h=h+1|0;if((h|0)==(f|0))break;else g=g+48|0}}if((q|0)>0){d=k[x+4>>2]|0;e=0;do{k[o+(e<<3)>>2]=j[(k[d+(e*20|0)>>2]|0)+32>>1];i[o+(e<<3)+4>>0]=i[d+(e*20|0)+12>>0]|0;e=e+1|0}while((e|0)!=(q|0))}A=ea;k[A>>2]=0;k[A+4>>2]=0;A=ea+18|0;j[A>>1]=0;k[ea+36>>2]=1024;B=ea+40|0;j[B>>1]=0;C=ea+28|0;i[C>>0]=0;D=k[_>>2]|0;E=k[$>>2]|0;if(Su(ha,ea,E)|0){rg(ha,$);d=7;break}U=$+28|0;X=$+24|0;F=$+20|0;G=$+32|0;H=$+40|0;I=$+48|0;J=aa+60|0;K=da+64|0;M=(E|0)>0;N=ea+30|0;O=ea+24|0;P=ea+32|0;Q=ea+29|0;R=ea+20|0;S=ea+22|0;T=ea+48|0;v=0;y=0;x=0;b:while(1){if(!((y|0)!=0|(v&1|0)==0))if((v|0)>2){d=0;break}else z=v+1|0;else z=v;if((x|0)==0&(z|0)>1){d=0;break}h=k[$>>2]|0;if((h|0)>0){e=k[ba>>2]|0;f=0;g=k[Z>>2]|0;while(1){v=k[g+8>>2]|0;if((z|0)==2)i[g+5>>0]=j[e+(v*48|0)+18>>1]&1^1;else if((z|0)==1){u=e+(v*48|0)+32|0;i[g+5>>0]=(k[u>>2]|0)==0&(k[u+4>>2]|0)==0&1}else if(!z){d=g+5|0;i[d>>0]=0;u=(j[e+(v*48|0)+18>>1]&1)==0;y=u?y:1;v=e+(v*48|0)+32|0;v=(k[v>>2]|0)!=0|(k[v+4>>2]|0)!=0;if(v|u^1)x=v?1:x;else i[d>>0]=1}else i[g+5>>0]=1;f=f+1|0;if((f|0)>=(h|0)){u=y;break}else g=g+12|0}}else u=y;kw(D|0,0,h<<3|0)|0;if(k[U>>2]|0)$c(k[X>>2]|0);k[F+0>>2]=0;k[F+4>>2]=0;k[F+8>>2]=0;k[F+12>>2]=0;p[H>>3]=5.e+98;d=I;k[d>>2]=25;k[d+4>>2]=0;d=k[da>>2]|0;v=J;while(1){v=k[v>>2]|0;if((k[v>>2]|0)==(d|0))break;else v=v+24|0}y=k[v+8>>2]|0;v=wc[k[(k[y>>2]|0)+12>>2]&127](y,$)|0;do if((v|0)==7)i[(k[da>>2]|0)+65>>0]=1;else if(v){d=k[y+8>>2]|0;if(d){k[fa>>2]=d;yh(da,10344,fa);break}if((v|0)!=516){v=v&255;if(v>>>0>26|(v|0)==2)v=16328;else v=k[15488+(v<<2)>>2]|0}else v=16344;k[fa>>2]=v;yh(da,10344,fa)}while(0);v=y+8|0;$c(k[v>>2]|0);k[v>>2]=0;v=k[$>>2]|0;if((v|0)>0){d=0;do{if((i[(k[Z>>2]|0)+(d*12|0)+5>>0]|0)==0?(k[(k[_>>2]|0)+(d<<3)>>2]|0)>0:0){k[fa>>2]=k[aa>>2];yh(da,34096,fa);v=k[$>>2]|0}d=d+1|0}while((d|0)<(v|0))}d=k[K>>2]|0;if(d)break;y=k[Z>>2]|0;q=ea;k[q>>2]=b;k[q+4>>2]=c;c:do if(M){v=0;do{k[(k[T>>2]|0)+(v<<2)>>2]=0;v=v+1|0}while((v|0)!=(E|0));j[N>>1]=0;if(M){f=b;e=c;d=0;q=0;v=-1;while(1){h=k[D+(q<<3)>>2]|0;m=h+-1|0;do if((h|0)>0){n=k[y+8>>2]|0;if((h|0)>(E|0)|(n|0)<0){ja=65;break b}if((n|0)>=(k[ca>>2]|0)){ja=65;break b}g=(k[T>>2]|0)+(m<<2)|0;if(k[g>>2]|0){ja=65;break b}o=k[ba>>2]|0;ma=o+(n*48|0)+32|0;f=f|k[ma>>2];e=e|k[ma+4>>2];ma=ea;k[ma>>2]=f;k[ma+4>>2]=e;k[g>>2]=o+(n*48|0);v=(m|0)>(v|0)?m:v;do if((h|0)<17){if(!(i[D+(q<<3)+4>>0]|0))break;d=(d&65535|1<<m)&65535;j[N>>1]=d}while(0);if(!(j[o+(n*48|0)+18>>1]&1))break;if(!(i[D+(q<<3)+4>>0]|0))break c;k[G>>2]=0}while(0);q=q+1|0;if((q|0)>=(E|0)){ja=73;break}else y=y+12|0}}else{v=-1;ja=73}}else{j[N>>1]=0;v=-1;ja=73}while(0);if((ja|0)==73){ja=0;j[B>>1]=v+1;k[O>>2]=k[F>>2];i[C>>0]=k[U>>2];k[U>>2]=0;k[P>>2]=k[X>>2];if(!(k[G>>2]|0))v=0;else v=k[Y>>2]&255;i[Q>>0]=v;j[A>>1]=0;w=+p[H>>3];p[t>>3]=w;v=k[t>>2]|0;d=k[t+4>>2]|0;do if(!(w<=1.0))if(!(w<=2.0e9)){v=rw(v|0,d|0,52)|0;v=ow(v|0,L|0,64514,0)|0;v=(v<<16>>16)*10&65535;break}else{v=ks(~~w>>>0,+W(w)>=1.0?(w>0.0?~~+ia(+V(w/4294967296.0),4294967295.0)>>>0:~~+ga((w-+(~~w>>>0))/4294967296.0)>>>0):0)|0;break}else v=0;while(0);j[R>>1]=v;q=I;q=ks(k[q>>2]|0,k[q+4>>2]|0)|0;j[S>>1]=q;Kv(a,ea)|0;if(i[C>>0]|0){$c(k[P>>2]|0);i[C>>0]=0}}v=z+1|0;if((v|0)>=4){d=0;break}else y=u}if((ja|0)==65){k[fa>>2]=k[aa>>2];yh(da,34064,fa);d=1}if(k[U>>2]|0)$c(k[X>>2]|0);rg(ha,$)}while(0);r=la;return d|0}function Mu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=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,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,ba=0,ca=0;ca=r;r=r+64|0;if((r|0)>=(s|0))ka();n=ca;h=ca+56|0;g=ca+52|0;j[g>>1]=-1;$=k[a+12>>2]|0;aa=k[a>>2]|0;F=k[aa+4>>2]|0;G=l[$+16>>0]|0;W=F+(G*72|0)+8|0;f=F+(G*72|0)+24|0;H=k[f>>2]|0;X=k[a+4>>2]|0;Y=F+(G*72|0)+76|0;d=k[Y>>2]|0;do if(!d){if(i[H+44>>0]&32){n=k[H+8>>2]|0;break}d=n+0|0;e=d+52|0;do{k[d>>2]=0;d=d+4|0}while((d|0)<(e|0));j[n+46>>1]=1;j[n+48>>1]=1;k[n+4>>2]=g;k[n+8>>2]=h;i[n+50>>0]=5;k[n+12>>2]=H;j[n+44>>1]=j[H+42>>1]|0;j[h>>1]=j[H+28>>1]|0;j[h+2>>1]=0;if(!(i[F+(G*72|0)+45>>0]&1))k[n+20>>2]=k[(k[f>>2]|0)+8>>2]}else n=d;while(0);h=j[H+28>>1]|0;if(h<<16>>16<11)B=0;else{B=h<<16>>16;B=((ks(B,((B|0)<0)<<31>>31)|0)&65535)+65503&65535}if(((((((k[a+16>>2]|0)==0?(j[aa+34>>1]&128)==0:0)?(k[(k[k[aa>>2]>>2]|0)+24>>2]&1048576|0)!=0:0)?(k[Y>>2]|0)==0:0)?(o=i[F+(G*72|0)+45>>0]|0,(o&5)==0):0)?(E=H+44|0,(o&10|i[E>>0]&32)<<24>>24==0):0)?(C=k[X+20>>2]|0,V=k[X+12>>2]|0,D=C+(V*48|0)|0,(V|0)>0):0){v=$+8|0;w=$+24|0;x=$+42|0;y=$+28|0;z=$+40|0;A=$+48|0;p=(B&65535)+(h&65535)|0;g=p+4&65535;f=$+18|0;e=H+12|0;p=p+28&65535;q=$+22|0;t=$+20|0;u=$+36|0;h=C;do{o=h+32|0;V=o;U=v;if(((k[U>>2]&k[V>>2]|0)==0?(k[U+4>>2]&k[V+4>>2]|0)==0:0)?(Ru(h,W,0,0)|0)!=0:0){j[w>>1]=1;j[x>>1]=0;k[y>>2]=0;j[z>>1]=1;k[k[A>>2]>>2]=h;j[f>>1]=g;if((k[e>>2]|0)==0?(i[E>>0]&2)==0:0)j[f>>1]=p;j[q>>1]=43;U=Lv(B,43)|0;j[t>>1]=U;k[u>>2]=16384;U=o;V=k[U+4>>2]|c;d=$;k[d>>2]=k[U>>2]|b;k[d+4>>2]=V;d=Kv(a,$)|0}else d=0;h=h+48|0}while((d|0)==0&h>>>0<D>>>0)}else d=0;V=$+36|0;a:do if((d|0)==0&(n|0)!=0){M=$+24|0;N=$+42|0;O=$+40|0;P=$+17|0;Q=$+18|0;R=$+22|0;S=$+28|0;T=F+(G*72|0)+48|0;U=$+20|0;J=F+(G*72|0)+64|0;K=H+42|0;t=H+44|0;q=aa+34|0;p=X+12|0;F=X+20|0;I=1;while(1){u=k[n+36>>2]|0;v=k[T>>2]|0;b:do if(u){d=k[p>>2]|0;if((d|0)>0){f=0;g=k[F>>2]|0;while(1){e=k[g>>2]|0;if(Mv(e,u,v)|0){if(!(k[e+4>>2]&1)){ba=32;break b}if((j[e+36>>1]|0)==(v|0)){ba=32;break b}}f=f+1|0;if((f|0)>=(d|0)){d=0;break}else g=g+48|0}}else d=0}else ba=32;while(0);if((ba|0)==32){ba=0;G=j[k[n+8>>2]>>1]|0;j[M>>1]=0;j[N>>1]=0;j[O>>1]=0;i[P>>0]=0;j[Q>>1]=0;H=$;k[H>>2]=b;k[H+4>>2]=c;j[R>>1]=G;k[S>>2]=n;H=n+51|0;w=i[H>>0]|0;c:do if(((w&4)==0?(Z=k[(k[a>>2]|0)+8>>2]|0,(Z|0)!=0):0)?(_=k[Z>>2]|0,(_|0)>0):0){E=k[Z+4>>2]|0;D=n+46|0;y=n+4|0;x=0;while(1){B=k[E+(x*20|0)>>2]|0;d:do if(!B)B=0;else while(1){A=k[B+4>>2]|0;if(!(A&4096))break d;if(!(A&262144))B=B+12|0;else B=k[(k[B+20>>2]|0)+4>>2]|0;B=k[B>>2]|0;if(!B){B=0;break}}while(0);if((i[B>>0]|0)!=-102){x=0;break c}if((k[B+28>>2]|0)==(v|0)){A=j[B+32>>1]|0;if(A<<16>>16<0){x=1;break c}B=j[D>>1]|0;if(B<<16>>16){z=k[y>>2]|0;B=B&65535;C=0;do{if(A<<16>>16==(j[z+(C<<1)>>1]|0)){x=1;break c}C=C+1|0}while((C|0)<(B|0))}}x=x+1|0;if((x|0)>=(_|0)){x=0;break}}}else x=0;while(0);do if((k[n+40>>2]|0)<1){k[V>>2]=256;i[P>>0]=(x|0)!=0?I&255:0;j[U>>1]=(G&65535)+16;Nv(X,$,G);d=Kv(a,$)|0;j[R>>1]=G;if(d)break a}else{if(!(w&32)){D=J;E=k[D>>2]|0;D=k[D+4>>2]|0;C=n+4|0;B=0;A=0;z=m[n+48>>1]|0;e:while(1){y=z;while(1){z=y+-1|0;if((y|0)<=0)break e;y=j[(k[C>>2]|0)+(z<<1)>>1]|0;if((y&65535)<63)break;else y=z}o=nw(1,0,y<<16>>16|0)|0;B=o|B;A=L|A}o=E&~B;u=D&~A;B=o;A=u;u=(o|0)==0&(u|0)==0?576:512}else{B=0;A=0;u=576}k[V>>2]=u;o=(x|0)!=0;if(!o?(i[t>>0]&32)==0:0){if(!((B|0)==0&(A|0)==0))break;if(i[H>>0]&4)break;if((j[n+44>>1]|0)>=(j[K>>1]|0))break;if(!((j[q>>1]&4)==0&(k[2190]|0)!=0))break;if(j[(k[k[aa>>2]>>2]|0)+60>>1]&64)break}i[P>>0]=o?I&255:0;h=G<<16>>16;o=h+1+(((j[n+44>>1]|0)*15|0)/(j[K>>1]|0)|0)&65535;if(!((B|0)==0&(A|0)==0))o=Lv(o,h+16&65535)|0;j[U>>1]=o;Nv(X,$,G);d=Kv(a,$)|0;j[R>>1]=G;if(d)break a}while(0);d=Ov(a,W,n,0)|0;if(k[Y>>2]|0)break a}n=k[n+20>>2]|0;if(!((d|0)==0&(n|0)!=0))break;else I=I+1|0}}while(0);r=ca;return d|0}function Nu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0;$=r;r=r+608|0;if((r|0)>=(s|0))ka();Z=$+168|0;X=$+576|0;Y=$+112|0;V=$+56|0;W=$;d=k[a>>2]|0;S=k[a+4>>2]|0;h=k[S+20>>2]|0;g=k[S+12>>2]|0;U=h+(g*48|0)|0;R=k[a+12>>2]|0;e=Y+0|0;f=e+56|0;do{k[e>>2]=0;e=e+4|0}while((e|0)<(f|0));f=k[d+4>>2]|0;e=l[R+16>>0]|0;Q=k[f+(e*72|0)+48>>2]|0;a:do if((g|0)>0){A=R+8|0;B=X+8|0;C=X+16|0;D=R+40|0;E=R+48|0;F=R+36|0;G=R+18|0;H=R+17|0;I=R+24|0;J=R+20|0;K=R+22|0;L=Z+4|0;M=Z+8|0;N=Z+12|0;O=Z+20|0;P=X+4|0;w=f+(e*72|0)+24|0;x=W+8|0;y=Y+8|0;z=V+8|0;while(1){b:do if((j[h+18>>1]&256)!=0?(T=k[h+12>>2]|0,t=T+408|0,q=A,!((k[q>>2]&k[t>>2]|0)==0?(k[q+4>>2]&k[t+4>>2]|0)==0:0)):0){g=T+20|0;v=(k[g>>2]|0)+((k[T+12>>2]|0)*48|0)|0;k[X+0>>2]=k[a+0>>2];k[X+4>>2]=k[a+4>>2];k[X+8>>2]=k[a+8>>2];k[X+12>>2]=k[a+12>>2];k[B>>2]=0;k[C>>2]=V;g=k[g>>2]|0;c:do if(g>>>0<v>>>0){e=1;d=0;d:while(1){if(!(j[g+18>>1]&512))if((k[g+8>>2]|0)==(Q|0)){k[Z>>2]=k[S>>2];k[L>>2]=S;i[M>>0]=72;k[N>>2]=1;k[O>>2]=g;f=Z;_=10}else f=e;else{f=k[g+12>>2]|0;_=10}do if((_|0)==10){_=0;k[P>>2]=f;j[V>>1]=0;if(!(i[(k[w>>2]|0)+44>>0]&16))d=Mu(X,b,c)|0;else d=Lu(X,b,c)|0;if(!d)d=Nu(X,b,c)|0;f=j[V>>1]|0;if(!(f<<16>>16))break d;if(e){j[Y>>1]=f;pw(y|0,z|0,(f&65535)<<4|0)|0;f=0;break}t=j[Y>>1]|0;j[W>>1]=t;u=t&65535;pw(x|0,y|0,u<<4|0)|0;j[Y>>1]=0;if(!(t<<16>>16))f=0;else{t=0;do{if(!(f<<16>>16))f=0;else{n=W+(t<<4)+8|0;e=k[n>>2]|0;n=k[n+4>>2]|0;o=j[W+(t<<4)+16>>1]|0;p=j[W+(t<<4)+18>>1]|0;q=0;do{aa=V+(q<<4)+8|0;ba=k[aa>>2]|e;aa=k[aa+4>>2]|n;f=Lv(o,j[V+(q<<4)+16>>1]|0)|0;Pv(Y,ba,aa,f,Lv(p,j[V+(q<<4)+18>>1]|0)|0);q=q+1|0;f=j[V>>1]|0}while((q|0)<(f&65535|0))}t=t+1|0}while((t|0)<(u|0));f=0}}while(0);g=g+48|0;if(g>>>0>=v>>>0)break c;else e=f}j[Y>>1]=0}else d=0;while(0);j[D>>1]=1;k[k[E>>2]>>2]=h;k[F>>2]=8192;j[G>>1]=0;i[H>>0]=0;k[I+0>>2]=0;k[I+4>>2]=0;k[I+8>>2]=0;if(d)break a;g=m[Y>>1]|0;f=0;while(1){if((f|0)>=(g|0))break b;j[J>>1]=(m[Y+(f<<4)+16>>1]|0)+1;j[K>>1]=j[Y+(f<<4)+18>>1]|0;q=Y+(f<<4)+8|0;t=k[q+4>>2]|0;d=R;k[d>>2]=k[q>>2];k[d+4>>2]=t;d=Kv(a,R)|0;if(!d)f=f+1|0;else break a}}while(0);h=h+48|0;if(h>>>0>=U>>>0){d=0;break}}}else d=0;while(0);r=$;return d|0}function Ou(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=b+48|0;d=k[c>>2]|0;e=b+56|0;if((d|0)!=(e|0))rg(a,d);Qv(a,b);k[c>>2]=e;j[b+40>>1]=0;j[b+44>>1]=3;k[b+36>>2]=0;return}function Pu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ia=0,ja=0,la=0;la=r;r=r+32|0;if((r|0)>=(s|0))ka();aa=la+24|0;Z=la+16|0;da=la+8|0;ja=la;$=k[a>>2]|0;fa=k[$>>2]|0;l=i[a+41>>0]|0;ga=l&255;if((l&255)<2)V=1;else V=l<<24>>24==2?5:10;ia=a+8|0;f=k[ia>>2]|0;ba=b<<16>>16==0;if((f|0)==0|ba)U=0;else U=k[f>>2]|0;g=U<<1;ea=g+(ha((ga<<3)+64|0,V)|0)|0;ea=rhrh(a,d<<2,0)|0;if(!e)c=7;else{f=b+48|0;pw(e|0,k[f>>2]|0,(m[g>>1]|0)<<2|0)|0;c=k[f>>2]|0;if((c|0)!=(b+56|0))rg(a,c);k[f>>2]=e;j[g>>1]=d;c=0}}else c=0;return c|0}function Tu(a,b,c){a=a|0;b=b|0;c=c|0;do if(!(k[b+4>>2]&256)){if((c|0)!=0?(k[c+4>>2]&256|0)!=0:0){b=hu(a,c)|0;break}b=hu(a,b)|0;if(!b)b=hu(a,c)|0}else b=hu(a,b)|0;while(0);return b|0}function Uu(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0;y=r;r=r+144|0;if((r|0)>=(s|0))ka();t=y;x=y+8|0;m=y+36|0;if(((i[a+450>>0]|0)==2?(o=l[c+44>>0]|0,w=k[a+8>>2]|0,h=k[a>>2]|0,v=k[a+464>>2]|0,q=k[c+64>>2]|0,u=q+36|0,p=k[u>>2]|0,(p&8192|0)==0):0)?(g=f&65535,(g&64|0)==0):0){f=p&48;do if(!f){if((p&1024|0)==0?(j[q+24>>1]|0)!=0:0){n=1;break}n=(g&3|0)!=0}else n=1;while(0);k[x+4>>2]=m;k[x+8>>2]=m;k[x+12>>2]=0;k[x+16>>2]=100;k[x+20>>2]=1e9;i[x+24>>0]=1;i[x+25>>0]=0;k[x>>2]=h;a=n?33576:33584;c=a;while(1)if(!(i[c>>0]|0))break;else c=c+1|0;Xk(x,a,c-a&1073741823);if(!(k[b+(o*72|0)+28>>2]|0)){k[t>>2]=k[b+(o*72|0)+16>>2];Jn(x,0,33608,t)}else{k[t>>2]=l[b+(o*72|0)+46>>0];Jn(x,0,33592,t)}a=k[b+(o*72|0)+20>>2]|0;if(a){k[t>>2]=a;Jn(x,0,33624,t)}do if(!(p&1280)){g=q+28|0;c=k[g>>2]|0;f=b+(o*72|0)+24|0;if((i[(k[f>>2]|0)+44>>0]&32)!=0?(i[c+51>>0]&3)==2:0)if(n)a=33632;else break;else if(!(p&131072))if(!(p&16384))a=(p&64|0)==0?33744:33720;else a=33688;else a=33648;Xk(x,33760,7);k[t>>2]=k[c>>2];Jn(x,0,a,t);p=j[q+24>>1]|0;n=k[(k[f>>2]|0)+4>>2]|0;m=k[(k[g>>2]|0)+4>>2]|0;c=p&65535;if(!(p<<16>>16)){if(!(k[u>>2]&48))break;Xk(x,33904,2);g=0}else{f=j[q+42>>1]|0;Xk(x,33904,2);f=f&65535;g=0;do{a=j[m+(g<<1)>>1]|0;if(a<<16>>16<0)a=20456;else a=k[n+((a<<16>>16)*24|0)>>2]|0;if((g|0)<(f|0)){if(g)Xk(x,33920,5);k[t>>2]=a;Jn(x,0,33928,t)}else Sv(x,g,a,33912);g=g+1|0}while((g|0)<(c|0));g=c>>>0>1?c:1}f=k[u>>2]|0;if(!(f&32))a=g;else{f=j[m+(g<<1)>>1]|0;if(f<<16>>16<0)f=20456;else f=k[n+((f<<16>>16)*24|0)>>2]|0;Sv(x,g,f,33936);f=k[u>>2]|0;a=g+1|0}if(f&16){g=j[m+(g<<1)>>1]|0;if(g<<16>>16<0)g=20456;else g=k[n+((g<<16>>16)*24|0)>>2]|0;Sv(x,a,g,33944)}Xk(x,33952,1)}else{if((p&256|0)==0|(p&15|0)==0){if(!(p&1024))break;p=k[q+32>>2]|0;k[t>>2]=k[q+24>>2];k[t+4>>2]=p;Jn(x,0,33872,t);break}if(!(p&5))if((f|0)==48)f=33784;else f=(p&32|0)==0?33824:33808;else f=33768;Xk(x,33840,27);g=f;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;Xk(x,f,g-f&1073741823)}while(0);p=yg(x)|0;Ch(w,Bh(w,157,v,d,e)|0,p,-1)}r=y;return}function Vu(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,l=0,m=0,n=0;l=k[b>>2]|0;n=k[a+8>>2]|0;g=i[l>>0]|0;do if(g<<24>>24==76)Bh(n,28,0,f,0)|0;else if(g<<24>>24==79)f=ns(a,k[l+16>>2]|0,f)|0;else{h=k[c+64>>2]|0;g=h+36|0;if(((k[g>>2]&1024|0)==0?(j=k[h+28>>2]|0,(j|0)!=0):0)?(i[(k[j+28>>2]|0)+d>>0]|0)!=0:0)e=(e|0)==0&1;m=rv(a,l,4,0)|0;if((m|0)==4)e=(e|0)==0&1;l=k[l+28>>2]|0;d=(e|0)!=0;Bh(n,d?105:108,l,0,0)|0;k[g>>2]=k[g>>2]|2048;j=c+56|0;g=k[j>>2]|0;if(!g){g=Cs(n)|0;k[c+16>>2]=g;g=k[j>>2]|0}h=g+1|0;k[j>>2]=h;g=c+60|0;h=$l(k[a>>2]|0,k[g>>2]|0,h*12|0,0)|0;k[g>>2]=h;if(!h){k[j>>2]=0;break}g=(k[j>>2]|0)+-1|0;k[h+(g*12|0)>>2]=l;if((m|0)==1)e=Bh(n,103,l,f,0)|0;else e=Bh(n,47,l,0,f)|0;k[h+(g*12|0)+4>>2]=e;i[h+(g*12|0)+8>>0]=d?6:7;Bh(n,76,f,0,0)|0}while(0);Wu(c,b);return f|0}function Wu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:do if(b){f=a+72|0;e=0;while(1){c=b+20|0;d=j[c>>1]|0;if(d&4)break a;if((k[a>>2]|0)!=0?(k[(k[b>>2]|0)+4>>2]&1|0)==0:0)break a;g=f;h=b+40|0;if(!((k[h>>2]&k[g>>2]|0)==0?(k[h+4>>2]&k[g+4>>2]|0)==0:0))break a;d=d&65535;j[c>>1]=d|((e|0)==0|(d&1024|0)==0?4:512);d=k[b+4>>2]|0;if((d|0)<0)break a;b=k[(k[b+24>>2]|0)+20>>2]|0;g=b+(d*48|0)+22|0;c=(i[g>>0]|0)+-1<<24>>24;i[g>>0]=c;if(c<<24>>24)break a;b=b+(d*48|0)|0;if(!b)break;else e=e+1|0}}while(0);return}function Xu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,m=0,n=0;do if(!(j[(k[a>>2]|0)+60>>1]&2)){h=a+116|0;g=0;e=h;while(1){f=e+12|0;if(!(k[f>>2]|0)){n=4;break}g=g+1|0;if((g|0)>=10){l=0;e=-1;m=2147483647;break}else e=e+20|0}if((n|0)==4){k[e+8>>2]=k[a+100>>2];k[e>>2]=b;j[e+4>>1]=c;k[f>>2]=d;i[e+6>>0]=0;d=a+104|0;b=k[d>>2]|0;k[d>>2]=b+1;k[e+16>>2]=b;break}while(1){g=k[h+16>>2]|0;f=(g|0)<(m|0);e=f?l:e;l=l+1|0;if((l|0)==10)break;else{m=f?g:m;h=h+20|0}}if((e|0)>-1){k[a+(e*20|0)+124>>2]=k[a+100>>2];k[a+(e*20|0)+116>>2]=b;j[a+(e*20|0)+120>>1]=c;k[a+(e*20|0)+128>>2]=d;i[a+(e*20|0)+122>>0]=0;d=a+104|0;b=k[d>>2]|0;k[d>>2]=b+1;k[a+(e*20|0)+132>>2]=b}}while(0);return}function Yu(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;r=k[a+8>>2]|0;m=k[b+64>>2]|0;n=j[m+24>>1]|0;p=j[m+42>>1]|0;t=k[m+28>>2]|0;q=a+72|0;l=k[q>>2]|0;f=l+1|0;s=n&65535;o=s+d|0;k[q>>2]=l+o;q=k[a>>2]|0;t=ph(q,tt(r,t)|0)|0;q=(t|0)!=0;if(!q)i[(k[a>>2]|0)+65>>0]=1;if(p<<16>>16){d=k[b+8>>2]|0;g=(c|0)!=0;Bh(r,g?105:108,d,0,0)|0;h=Bh(r,16,0,0,0)|0;l=p&65535;g=Bh(r,g?62:65,d,0,f)|0;Ch(r,g,l,-14);k[b+20>>2]=g;g=k[r+32>>2]|0;if(g>>>0>h>>>0)k[(k[r+4>>2]|0)+(h*20|0)+8>>2]=g;k[(k[r+24>>2]|0)+88>>2]=g+-1;h=0;do{Bh(r,47,d,h,h+f|0)|0;h=h+1|0}while((h|0)<(l|0))}if((p&65535)<(n&65535)){m=m+48|0;l=b+12|0;n=(o|0)==1;o=p&65535;h=f;while(1){g=k[(k[m>>2]|0)+(o<<2)>>2]|0;d=o+h|0;f=Vu(a,g,b,o,c,d)|0;do if((f|0)!=(d|0))if(n){ds(a,h);break}else{Bh(r,34,f,d,0)|0;f=h;break}else f=h;while(0);if(!(j[g+18>>1]&129)){d=k[(k[g>>2]|0)+16>>2]|0;if(Zu(d)|0)Bh(r,76,f+o|0,k[l>>2]|0,0)|0;if(q){g=t+o|0;if((Gu(d,i[g>>0]|0)|0)<<24>>24==65){i[g>>0]=65;h=65}else h=i[g>>0]|0;if(_u(d,h)|0)i[g>>0]=65}}o=o+1|0;if((o|0)>=(s|0))break;else h=f}}k[e>>2]=t;return f|0}function Zu(a){a=a|0;var b=0;b=i[a>>0]|0;if((b+99&255)<2)do{a=k[a+12>>2]|0;b=i[a>>0]|0}while((b+99&255)<2);if(b<<24>>24==-97)b=i[a+38>>0]|0;switch(b&255|0){case 134:case 133:case 97:case 132:{a=0;break}case 154:{if(!(k[a+4>>2]&1048576)){b=j[a+32>>1]|0;if(b<<16>>16>-1)a=(i[(k[(k[a+44>>2]|0)+4>>2]|0)+((b<<16>>16)*24|0)+20>>0]|0)==0;else a=0}else a=1;a=a&1;break}default:a=1}return a|0}function _u(a,b){a=a|0;b=b|0;var c=0;a:do if(b<<24>>24==65)a=1;else{c=i[a>>0]|0;if((c+99&255)<2)do{a=k[a+12>>2]|0;c=i[a>>0]|0}while((c+99&255)<2);if(c<<24>>24==-97)c=i[a+38>>0]|0;switch(c&255|0){case 133:{a=(b<<24>>24==69|b<<24>>24==67)&1;break a}case 134:{a=1;break a}case 132:{a=(b+-67&255)<2&1;break a}case 154:{if((j[a+32>>1]|0)<0)a=(b+-67&255)<2;else a=0;a=a&1;break a}case 97:{a=b<<24>>24==66&1;break a}default:{a=0;break a}}}while(0);return a|0}function $u(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=k[a+8>>2]|0;do if(d){a:do if((c|0)>0)while(1){if((i[d>>0]|0)!=65){e=d;break a}c=c+-1|0;b=b+1|0;d=d+1|0;if((c|0)<=0){e=d;break}}else e=d;while(0);while(1){if((c|0)<=1){g=8;break}d=c+-1|0;if((i[e+d>>0]|0)==65)c=d;else break}if((g|0)==8)if((c|0)<=0)break;Bh(f,48,b,c,0)|0;Ch(f,-1,e,c);it(a,b,c)}while(0);return}function av(a,b){a=a|0;b=b|0;var c=0,d=0;if(b){Tv(b+328|0);d=b+16|0;c=k[d>>2]|0;if(c)do{k[d>>2]=k[c+52>>2];Ou(a,c);rg(a,c);c=k[d>>2]|0}while((c|0)!=0);rg(a,b)}return}function bv(a,b){a=a|0;b=b|0;var c=0,d=0;c=r;r=r+32|0;if((r|0)>=(s|0))ka();d=c;k[d+0>>2]=0;k[d+4>>2]=0;k[d+8>>2]=0;k[d+12>>2]=0;k[d+16>>2]=0;k[d+20>>2]=0;k[d>>2]=80;k[d+4>>2]=81;k[d+24>>2]=a;ws(d,b)|0;r=c;return}function cv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0;n=r;r=r+16|0;if((r|0)>=(s|0))ka();l=n+4|0;m=n;j=k[a+8>>2]|0;k[l>>2]=0;k[m>>2]=0;if(!((j|0)==0|(b|0)==0)){f=i[b>>0]|0;e=f&255;a:do switch(e|0){case 74:{dv(a,b,c,1,d);break}case 77:case 76:{Bh(j,e,eu(a,k[b+12>>2]|0,l)|0,c,0)|0;break}case 79:case 78:case 83:case 80:case 81:case 82:{f=b+12|0;h=eu(a,k[f>>2]|0,l)|0;g=b+16|0;j=eu(a,k[g>>2]|0,m)|0;fu(a,k[f>>2]|0,k[g>>2]|0,e,h,j,c,d);break}case 72:{h=Cs(j)|0;lt(a,k[b+12>>2]|0,h,d^16);e=a+100|0;k[e>>2]=(k[e>>2]|0)+1;cv(a,k[b+16>>2]|0,c,d);e=k[j+24>>2]|0;f=~h;if((h|0)<0?(g=k[e+112>>2]|0,(g|0)!=0):0)k[g+(f<<2)>>2]=k[j+32>>2];k[e+88>>2]=(k[j+32>>2]|0)+-1;gu(a);break}case 71:{cv(a,k[b+12>>2]|0,c,d);j=a+100|0;k[j>>2]=(k[j>>2]|0)+1;cv(a,k[b+16>>2]|0,c,d);gu(a);break}case 19:{lt(a,k[b+12>>2]|0,c,d);break}case 148:case 73:{d=b+12|0;h=eu(a,k[d>>2]|0,l)|0;g=b+16|0;j=eu(a,k[g>>2]|0,m)|0;fu(a,k[d>>2]|0,k[g>>2]|0,f<<24>>24==73?79:78,h,j,c,128);break}case 75:{g=Cs(j)|0;ku(a,b,g,(d|0)!=0?c:g);Bh(j,16,0,c,0)|0;f=k[j+24>>2]|0;e=~g;if((g|0)<0?(h=k[f+112>>2]|0,(h|0)!=0):0)k[h+(e<<2)>>2]=k[j+32>>2];k[f+88>>2]=(k[j+32>>2]|0)+-1;break}default:{if(ev(b)|0){Bh(j,16,0,c,0)|0;break a}if(!(ru(b)|0))Bh(j,45,eu(a,b,l)|0,c,(d|0)!=0&1)|0}}while(0);ds(a,k[l>>2]|0);ds(a,k[m>>2]|0)}r=n;return}function dv(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0;n=r;r=r+208|0;if((r|0)>=(s|0))ka();h=n+152|0;f=n+104|0;g=n+56|0;j=n+8|0;l=n;k[l>>2]=0;m=j+0|0;o=(k[b+12>>2]|0)+0|0;p=m+48|0;do{k[m>>2]=k[o>>2];m=m+4|0;o=o+4|0}while((m|0)<(p|0));i[h>>0]=72;k[h+12>>2]=f;k[h+16>>2]=g;i[f>>0]=83;k[f+12>>2]=j;b=k[(k[b+20>>2]|0)+4>>2]|0;k[f+16>>2]=k[b>>2];i[g>>0]=81;k[g+12>>2]=j;k[g+16>>2]=k[b+20>>2];b=eu(a,j,l)|0;i[j+38>>0]=i[j>>0]|0;i[j>>0]=-97;k[j+28>>2]=b;b=j+4|0;k[b>>2]=k[b>>2]&-4097;if(!d)lt(a,h,c,e);else cv(a,h,c,e);ds(a,k[l>>2]|0);r=n;return}function ev(a){a=a|0;var b=0,c=0;c=r;r=r+16|0;if((r|0)>=(s|0))ka();b=c;k[b>>2]=0;if((k[a+4>>2]&1|0)==0?(Rs(a,b)|0)!=0:0)a=(k[b>>2]|0)!=0&1;else a=0;r=c;return a|0}function fv(a,b){a=a|0;b=b|0;var c=0,d=0;a:do if(!((a|0)==0|(b|0)==0)){d=k[b>>2]|0;if((d|0)>0){b=k[b+4>>2]|0;c=0;while(1){if((Bv(a,k[b+(c*20|0)+4>>2]|0)|0)>-1){b=1;break a}c=c+1|0;if((c|0)>=(d|0)){b=0;break}}}else b=0}else b=1;while(0);return b|0}function gv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0;m=k[b+20>>2]|0;a:do if((m|0)>0){n=j[a+38>>1]|0;o=n<<16>>16>0;p=a+4|0;l=a+36|0;f=(d|0)!=0;g=0;while(1){d=k[b+(g<<3)+40>>2]|0;if(o){a=(d|0)==0;h=0;do{if(!((k[c+(h<<2)>>2]|0)<=-1?!((h|0)==(j[l>>1]|0)&f):0))q=7;do if((q|0)==7){q=0;e=k[p>>2]|0;if(a)if(!(i[e+(h*24|0)+23>>0]&1))break;else{a=1;break a}else if(!(id(k[e+(h*24|0)>>2]|0,d)|0)){a=1;break a}else break}while(0);h=h+1|0}while((h|0)<(n<<16>>16|0))}g=g+1|0;if((g|0)>=(m|0)){a=0;break}}}else a=0;while(0);return a|0}function hv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0;v=r;r=r+48|0;if((r|0)>=(s|0))ka();j=v;o=v+8|0;u=k[a+408>>2]|0;u=(u|0)==0?a:u;h=u+528|0;e=k[h>>2]|0;a:do if(!e)g=5;else while(1){if((k[e>>2]|0)==(b|0)?(k[e+12>>2]|0)==(d|0):0)break a;e=k[e+4>>2]|0;if(!e){g=5;break}}while(0);do if((g|0)==5){q=k[a>>2]|0;e=rh(q,24,0)|0;if(e){g=e+0|0;f=g+24|0;do{i[g>>0]=0;g=g+1|0}while((g|0)<(f|0));k[e+4>>2]=k[h>>2];k[h>>2]=e;p=rh(q,28,0)|0;if(!p){k[e+8>>2]=0;e=0;break}g=p+0|0;f=g+24|0;do{i[g>>0]=0;g=g+1|0}while((g|0)<(f|0));k[e+8>>2]=p;l=(k[u+8>>2]|0)+192|0;k[p+24>>2]=k[l>>2];k[l>>2]=p;k[e>>2]=b;k[e+12>>2]=d;l=e+16|0;k[l>>2]=-1;m=e+20|0;k[m>>2]=-1;n=rhrhrh(g,f*96|0,0)|0;k[l>>2]=e;if(!e){if(c&1)Lk(g,b);k[l>>2]=d;d=0;break}pw(e|0,d|0,(k[n>>2]|0)*48|0)|0;if((d|0)!=(a+24|0))rg(g,d);e=k[l>>2]|0;do if(!g)e=qc[k[8744+48>>2]&127](e)|0;else{if((k[g+276>>2]|0)>>>0<=e>>>0?(k[g+280>>2]|0)>>>0>e>>>0:0){e=m[g+248>>1]|0;break}e=qc[k[8744+48>>2]&127](e)|0}while(0);i=(e>>>0)/48|0;k[h>>2]=i;d=k[n>>2]|0;kw((k[l>>2]|0)+(d*48|0)|0,0,(i-d|0)*48|0)|0;d=k[n>>2]|0;i=15}while(0);if((i|0)==15){k[n>>2]=d+1;f=k[l>>2]|0;a:do if(!b){j[f+(d*48|0)+16>>1]=1;b=0}else{if(!(k[b+4>>2]&262144))e=1;else{e=k[b+28>>2]|0;e=((ks(e,((e|0)<0)<<31>>31)|0)&65535)+65266&65535}j[f+(d*48|0)+16>>1]=e;while(1){e=k[b+4>>2]|0;if(!(e&4096))break a;if(!(e&262144))b=b+12|0;else b=k[(k[b+20>>2]|0)+4>>2]|0;b=k[b>>2]|0;if(!b){b=0;break}}}while(0);k[f+(d*48|0)>>2]=b;j[f+(d*48|0)+20>>1]=c;k[f+(d*48|0)+24>>2]=a;k[f+(d*48|0)+4>>2]=-1}return d|0}function Fv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:do if(b)if((i[b>>0]|0)==-102){b=k[b+28>>2]|0;d=k[a>>2]|0;if((d|0)>0)c=0;else{d=0;c=0;break}while(1){if((k[a+(c<<2)+4>>2]|0)==(b|0))break;c=c+1|0;if((c|0)>=(d|0)){d=0;c=0;break a}}c=nw(1,0,c|0)|0;d=L;break}else{e=Fv(a,k[b+16>>2]|0)|0;c=L;f=Fv(a,k[b+12>>2]|0)|0;c=L|c;d=b+20|0;if(!(k[b+4>>2]&2048)){b=Qu(a,k[d>>2]|0)|0;d=L}else{b=Gv(a,k[d>>2]|0)|0;d=L}d=c|d;c=f|e|b;break}else{d=0;c=0}while(0);L=d;return c|0}function Gv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0;if(!b){b=0;c=0}else{f=b;c=0;b=0;do{e=k[f+32>>2]|0;l=Qu(a,k[f>>2]|0)|0;b=L|b;j=Qu(a,k[f+40>>2]|0)|0;b=b|L;i=Qu(a,k[f+48>>2]|0)|0;b=b|L;h=Fv(a,k[f+36>>2]|0)|0;b=b|L;d=Fv(a,k[f+44>>2]|0)|0;c=l|c|j|i|h|d;b=b|L;if((e|0)!=0?(g=k[e>>2]|0,(g|0)>0):0){d=0;do{i=Gv(a,k[e+(d*72|0)+28>>2]|0)|0;b=L|b;j=Fv(a,k[e+(d*72|0)+52>>2]|0)|0;c=i|c|j;b=b|L;d=d+1|0}while((d|0)<(g|0))}f=k[f+52>>2]|0}while((f|0)!=0)}L=b;return c|0}function Hv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0;l=j[b+18>>1]|0;h=j[c+18>>1]|0;e=h|l;if(((!((l&62)==0|(h&62)==0)?(d=e&65535,(d&26|0)==(d|0)|(d&38|0)==(d|0)):0)?(g=k[b>>2]|0,f=k[c>>2]|0,(Hu(k[g+12>>2]|0,k[f+12>>2]|0,-1)|0)==0):0)?(Hu(k[g+16>>2]|0,k[f+16>>2]|0,-1)|0)==0:0){if(d+65535&d)e=(d&24|0)==0?32:8;f=Rr(k[k[k[a>>2]>>2]>>2]|0,g,0,0)|0;if(f){e=e&65535;d=79;while(1)if((e|0)==(2<<d+-79|0))break;else d=d+1|0;i[f>>0]=d;Ju(a,Ev(a,f,3)|0)}}return}function Iv(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,l=0,n=0;k[a>>2]=b;k[a+4>>2]=b;a:do if((f|0)!=0&(d|0)>-1){i[a+12>>0]=i[(k[(k[f+12>>2]|0)+4>>2]|0)+(d*24|0)+21>>0]|0;g=k[f+4>>2]|0;if((j[g>>1]|0)==(d|0))b=0;else{h=m[f+48>>1]|0;l=0;while(1){b=l+1|0;if((l|0)>(h|0)){b=0;break a}if((j[g+(b<<1)>>1]|0)==(d|0))break;else l=b}}k[a+8>>2]=k[(k[f+32>>2]|0)+(b<<2)>>2];n=8}else{i[a+12>>0]=0;k[a+8>>2]=0;n=8}while(0);if((n|0)==8){k[a+16>>2]=e;k[a+20>>2]=0;k[a+24>>2]=c;k[a+28>>2]=d;i[a+13>>0]=2;i[a+14>>0]=2;b=Jv(a)|0}return b|0}
8 function Yn(a,b,c,d,e,f,g,h,l){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;l=l|0;var n=0,o=0,p=0,q=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,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0;aa=r;r=r+160|0;if((r|0)>=(s|0))ka();O=aa+16|0;J=aa+152|0;M=aa+48|0;I=aa+40|0;N=aa+36|0;K=aa+32|0;R=aa+8|0;Q=aa;W=aa+28|0;_=aa+24|0;k[_>>2]=0;do if(!(i[a+46>>0]|0)){$=a+43|0;if((i[$>>0]|0)==0?(n=k[a+4>>2]|0,n=uc[k[(k[n>>2]|0)+56>>2]&31](n,1,1,10)|0,(n|0)!=0):0)break;Z=a+45|0;i[Z>>0]=1;a:do if(!b){t=0;X=11}else{p=a+4|0;n=(c|0)!=0;while(1){if(i[$>>0]|0)break;t=k[p>>2]|0;t=uc[k[(k[t>>2]|0)+56>>2]&31](t,0,1,10)|0;if(!(n&(t|0)==5)){X=9;break}if(!(qc[c&127](d)|0)){t=0;c=0;X=11;break a}}if((X|0)==9)if((t|0)==5){t=0;c=0;X=11;break}else if(t){Y=b;break}i[a+44>>0]=1;t=b;X=11}while(0);if((X|0)==11){Y=t;t=sq(a,_)|0}do if(!t){V=a+68|0;t=j[a+66>>1]|0;if((k[V>>2]|0)!=0?(U=t&65535,(U<<16&65536|U&65024|0)!=(f|0)):0){k[O>>2]=51863;k[O+4>>2]=10788;gd(11,13600,O);o=11;break}S=t&65535;S=S<<16&65536|S&65024;U=a+32|0;T=(k[k[U>>2]>>2]|0)+96|0;w=k[V>>2]|0;b:do if((k[T>>2]|0)>>>0<w>>>0){G=(w+33|0)>>>12;H=G+1|0;f=w<<1;v=f+28+(G*20|0)|0;n=Yc(v)|0;c:do if(!n){t=7;n=0}else{kw(n|0,0,v|0)|0;v=n+4|0;k[v>>2]=H;f=Yc(w>>>0>4096?8192:f)|0;do if(f){F=n+8|0;u=0;while(1){t=Uo(a,u,I,K,N)|0;if(t){X=21;break}E=(k[K>>2]|0)+4|0;k[K>>2]=E;if((u|0)==(G|0)){D=k[N>>2]|0;t=D;D=w-D|0}else{t=k[N>>2]|0;D=(k[I>>2]|0)-E>>2}p=F+((k[v>>2]|0)*20|0)|0;C=p+(t<<1)|0;B=t+1|0;k[N>>2]=B;if((D|0)>0){y=0;do{j[p+(y+t<<1)>>1]=y;y=y+1|0}while((y|0)!=(D|0));k[O>>2]=0;k[J>>2]=0;z=M+0|0;y=z+104|0;do{k[z>>2]=0;z=z+4|0}while((z|0)<(y|0));A=0;do{k[O>>2]=1;z=p+(A+t<<1)|0;k[J>>2]=z;if(!(A&1)){x=1;y=0}else{y=0;do{tq(E,k[M+(y<<3)+4>>2]|0,k[M+(y<<3)>>2]|0,J,O,f);y=y+1|0}while((1<<y&A|0)!=0);x=k[O>>2]|0;z=k[J>>2]|0}k[M+(y<<3)+4>>2]=z;k[M+(y<<3)>>2]=x;A=A+1|0}while((A|0)!=(D|0));y=y+1|0;if((y|0)<13)X=34}else{k[O>>2]=0;k[J>>2]=0;z=M+0|0;y=z+104|0;do{k[z>>2]=0;z=z+4|0}while((z|0)<(y|0));y=1;X=34}if((X|0)==34){while(1){X=0;if(1<<y&D)tq(E,k[M+(y<<3)+4>>2]|0,k[M+(y<<3)>>2]|0,J,O,f);y=y+1|0;if((y|0)==13)break;else X=34}x=k[O>>2]|0}k[F+(u*20|0)+16>>2]=B;k[F+(u*20|0)+12>>2]=x;k[F+(u*20|0)+4>>2]=C;k[F+(u*20|0)+8>>2]=E;u=u+1|0;if((u|0)>=(H|0)){X=39;break}}if((X|0)==21){$c(f);break}else if((X|0)==39){$c(f);t=0;break c}}else{$c(0);t=7}while(0);$c(n)}while(0);if(!t){O=a+72|0;N=k[O>>2]|0;M=a+4|0;x=1;w=k[V>>2]|0;t=0;while(1){f=T+(x<<2)+4|0;p=k[f>>2]|0;d:do if(w>>>0>p>>>0){v=x+3|0;u=(c|0)!=0;while(1){if(i[$>>0]|0)break;t=k[M>>2]|0;t=uc[k[(k[t>>2]|0)+56>>2]&31](t,v,1,10)|0;if(!(u&(t|0)==5)){X=49;break}if(!(qc[c&127](d)|0)){c=0;t=5;break d}}if((X|0)==49){X=0;if((t|0)==5){c=0;t=5;break}else if(t){o=t;X=100;break b}}k[f>>2]=(x|0)==1?w:-1;if(!(i[$>>0]|0)){p=k[M>>2]|0;uc[k[(k[p>>2]|0)+56>>2]&31](p,v,1,9)|0;p=w;t=0}else{p=w;t=0}}else p=w;while(0);x=x+1|0;if((x|0)>=5){H=p;break}else w=p}e:do if((k[T>>2]|0)>>>0<H>>>0){t=(c|0)!=0;while(1){if(i[$>>0]|0)break;p=k[M>>2]|0;p=uc[k[(k[p>>2]|0)+56>>2]&31](p,3,1,10)|0;if(!(t&(p|0)==5)){q=p;X=58;break}if(!(qc[c&127](d)|0)){q=5;break e}}if((X|0)==58?(q|0)!=0:0)break;E=k[T>>2]|0;F=(e|0)!=0;if(F?(P=k[a+8>>2]|0,P=wc[k[(k[P>>2]|0)+20>>2]&127](P,e)|0,(P|0)!=0):0)q=P;else X=61;f:do if((X|0)==61){P=xw(N|0,0,S|0,0)|0;q=Q;k[q>>2]=P;k[q+4>>2]=L;q=k[M>>2]|0;q=wc[k[(k[q>>2]|0)+24>>2]&127](q,R)|0;if(!q){P=R;J=k[P+4>>2]|0;R=Q;K=k[R+4>>2]|0;if((J|0)<(K|0)|((J|0)==(K|0)?(k[P>>2]|0)>>>0<(k[R>>2]|0)>>>0:0)){R=k[M>>2]|0;fc[k[(k[R>>2]|0)+40>>2]&63](R,5,Q)|0}B=n+4|0;C=S|24;D=a+8|0;t=k[B>>2]|0;g:do if((t|0)>0){q=0;while(1){A=k[n>>2]|0;z=-1;h:while(1){i:while(1){t=t+-1|0;x=n+(t*20|0)+8|0;f=k[x>>2]|0;p=k[n+(t*20|0)+20>>2]|0;j:do if((f|0)<(p|0)){w=k[n+(t*20|0)+12>>2]|0;y=k[n+(t*20|0)+16>>2]|0;while(1){u=m[w+(f<<1)>>1]|0;v=k[y+(u<<2)>>2]|0;if(v>>>0>A>>>0)break;f=f+1|0;k[x>>2]=f;if((f|0)>=(p|0))break j}if(v>>>0<z>>>0)break i}while(0);if((t|0)<=0){f=q;t=z;break h}}q=(k[n+(t*20|0)+24>>2]|0)+u|0;if((t|0)>0)z=v;else{f=q;t=v;break}}k[n>>2]=t;if((t|0)==-1)break g;if(!(f>>>0<=E>>>0|f>>>0>H>>>0|t>>>0>N>>>0)){q=xw(f+-1|0,0,C|0,0)|0;q=ow(q|0,L|0,56,0)|0;R=k[D>>2]|0;q=yc[k[(k[R>>2]|0)+8>>2]&31](R,g,S,q,L)|0;if(q)break f;q=xw(t+-1|0,0,S|0,0)|0;R=k[M>>2]|0;q=yc[k[(k[R>>2]|0)+12>>2]&31](R,g,S,q,L)|0;if(q)break f}t=k[B>>2]|0;if((t|0)<=0){X=66;break}else q=f}}else X=66;while(0);if((X|0)==66)k[n>>2]=-1;if((H|0)==(k[(k[k[U>>2]>>2]|0)+16>>2]|0)){q=xw(k[O>>2]|0,0,S|0,0)|0;X=k[M>>2]|0;q=fc[k[(k[X>>2]|0)+16>>2]&63](X,q,L)|0;if((q|0)==0&F){q=k[M>>2]|0;q=wc[k[(k[q>>2]|0)+20>>2]&127](q,e)|0}if(q)break}k[T>>2]=H;q=0}}while(0);if(!(i[$>>0]|0)){X=k[M>>2]|0;uc[k[(k[X>>2]|0)+56>>2]&31](X,3,1,9)|0}}else q=t;while(0);q=(q|0)==5?0:q;X=88}else o=t}else{n=0;q=0;X=88}while(0);k:do if((X|0)==88)if((q|0)==0&(Y|0)!=0)if((k[T>>2]|0)>>>0>=(k[V>>2]|0)>>>0)if((Y|0)>1){hd(4,W);t=a+4|0;p=(c|0)!=0;while(1){if(i[$>>0]|0)break;q=k[t>>2]|0;q=uc[k[(k[q>>2]|0)+56>>2]&31](q,4,4,10)|0;if(!(p&(q|0)==5)){o=q;X=95;break}if(!(qc[c&127](d)|0)){o=5;X=100;break k}}if((X|0)==95?(o|0)!=0:0){X=100;break}if((Y|0)==3){ap(a,k[W>>2]|0);o=k[a+8>>2]|0;o=fc[k[(k[o>>2]|0)+16>>2]&63](o,0,0)|0}else o=0;if(!(i[$>>0]|0)){X=k[t>>2]|0;uc[k[(k[X>>2]|0)+56>>2]&31](X,4,4,9)|0;X=100}else X=100}else{o=0;X=100}else{o=5;X=100}else{o=q;X=100}while(0);if((X|0)==100)$c(n);if((o|0)==0|(o|0)==5){if(h)k[h>>2]=k[V>>2];if(l)k[l>>2]=k[(k[k[U>>2]>>2]|0)+96>>2]}}else o=t;while(0);if(k[_>>2]|0){z=a+52|0;y=z+48|0;do{k[z>>2]=0;z=z+4|0}while((z|0)<(y|0))}n=a+44|0;if(i[n>>0]|0){if(!(i[$>>0]|0)){_=k[a+4>>2]|0;uc[k[(k[_>>2]|0)+56>>2]&31](_,0,1,9)|0}i[n>>0]=0;i[a+47>>0]=0}if(!(i[$>>0]|0)){$=k[a+4>>2]|0;uc[k[(k[$>>2]|0)+56>>2]&31]($,1,1,9)|0}i[Z>>0]=0;n=(o|0)!=0|(Y|0)==(b|0)?o:5}else n=8;while(0);r=aa;return n|0}function Zn(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=(b|0)<(d|0)?b:d;f=cw(c,e,g)|0;a:do if(!f){b:do if(a){f=b-g|0;while(1){if((f|0)<=0)break;f=f+-1|0;if((i[c+(f+g)>>0]|0)!=32)break b}if(!f){f=d-g|0;while(1){if((f|0)<=0)break;f=f+-1|0;if((i[e+(f+g)>>0]|0)!=32)break b}if(!f){f=0;break a}}}while(0);f=b-d|0}while(0);return f|0}function _n(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=Kc(c,e,(b|0)<(d|0)?b:d)|0;return ((a|0)==0?b-d|0:a)|0}function $n(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0;y=r;r=r+16|0;if((r|0)>=(s|0))ka();w=y;n=k[c>>2]|0;a:do if(b){l=b;while(1)if(!(i[l>>0]|0))break;else l=l+1|0;m=l-b&1073741823;if((k[2189]|n&64|0)!=0&m>>>0>4?(cw(b,14984,5)|0)==0:0){l=m+2|0;j=n|64;if(m){n=0;do{l=((i[b+n>>0]|0)==38&1)+l|0;n=n+1|0}while((n|0)<(m|0))}h=Yc(l)|0;if(h){do if((i[b+5>>0]|0)==47?(i[b+6>>0]|0)==47:0){l=7;while(1){q=i[b+l>>0]|0;if(q<<24>>24==0|q<<24>>24==47)break;l=l+1|0}if((l|0)==7){l=0;n=7;g=0;break}else if((l|0)==16){g=b+7|0;if(!(cw(14992,g,9)|0)){l=0;n=16;g=0;break}}else g=b+7|0;k[w>>2]=l+-7;k[w+4>>2]=g;g=dd(15008,w)|0;k[f>>2]=g;g=1;x=74;break a}else{l=0;n=5;g=0}while(0);b:while(1){u=h+(g+-1)|0;c:while(1){d:while(1){m=i[b+n>>0]|0;if(m<<24>>24==35|m<<24>>24==0)break b;o=n+1|0;if((m<<24>>24==37?(v=i[b+o>>0]|0,(i[10368+(v&255)>>0]&8)!=0):0)?(t=i[b+(n+2)>>0]|0,(i[10368+(t&255)>>0]&8)!=0):0){m=v;o=t;break}if(!l){n=o;x=38;break c}else if((l|0)==2){n=o;x=39;break c}else if((l|0)!=1){n=o;break c}if(!(m<<24>>24==38|m<<24>>24==61)){l=1;n=o;break c}if(!(i[u>>0]|0))n=o;else{n=o;x=36;break c}while(1){q=i[b+n>>0]|0;if(q<<24>>24==35|q<<24>>24==0)continue d;if((i[b+(n+-1)>>0]|0)==38)continue d;else n=n+1|0}}m=m<<24>>24;n=n+3|0;q=o<<24>>24;m=(0-(q>>>6&1)&9)+q&15|(0-(m>>>6&1)&9)+m<<4&240;if(m){x=30;break}o=(l|0)==0;while(1){m=i[b+n>>0]|0;if(m<<24>>24==35|m<<24>>24==0)continue c;if(o&m<<24>>24==63){l=0;continue c}if((l|0)==1){if(m<<24>>24==38|m<<24>>24==61){l=1;continue c}}else if((l|0)==2?m<<24>>24==38:0){l=2;continue c}n=n+1|0}}if((x|0)==30){x=0;m=m&255}else if((x|0)==36){x=0;if(m<<24>>24==38){i[h+g>>0]=0;m=0;l=1;g=g+1|0}else{m=0;l=2}}else if((x|0)==38){x=0;if(m<<24>>24==63)x=40;else l=0}else if((x|0)==39){x=0;if(m<<24>>24==38)x=40;else l=2}if((x|0)==40){x=0;m=0;l=1}i[h+g>>0]=m;g=g+1|0}if((l|0)==1){i[h+g>>0]=0;g=g+1|0}i[h+g>>0]=0;i[h+(g+1)>>0]=0;g=h;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;g=(g-h&1073741823)+1|0;l=i[h+g>>0]|0;if(l<<24>>24){v=h+g|0;e:while(1){m=v;while(1){g=m+1|0;if(!(l<<24>>24)){l=m;break}l=i[g>>0]|0;m=g}u=l-v&1073741823;l=v+(u+1)|0;m=l;while(1)if(!(i[m>>0]|0))break;else m=m+1|0;t=m-l&1073741823;if((u|0)==3){g=(cw(15040,v,3)|0)==0;g=g?l:a}else if((u|0)==5)if(!(cw(15048,v,5)|0)){b=15056;p=393216;q=-393217;g=15048;x=58}else g=a;else if((u|0)==4?(cw(15096,v,4)|0)==0:0){b=15104;p=j&135;q=-136;g=15176;x=58}else g=a;if((x|0)==58){x=0;n=k[b>>2]|0;if(!n){x=65;break}else m=0;while(1){o=n;while(1)if(!(i[o>>0]|0))break;else o=o+1|0;if((t|0)==(o-n&1073741823|0)?(cw(l,n,t)|0)==0:0){n=m;break}m=m+1|0;n=k[b+(m<<3)>>2]|0;if(!n){x=65;break e}}n=k[b+(n<<3)+4>>2]|0;if(!n){x=65;break}if((n&-129|0)>(p|0)){x=67;break}j=n|q&j;g=a}v=v+(u+2+t)|0;l=i[v>>0]|0;if(!(l<<24>>24)){x=72;break a}else a=g}if((x|0)==65){k[w>>2]=g;k[w+4>>2]=l;g=dd(15184,w)|0;k[f>>2]=g;g=1;x=74;break}else if((x|0)==67){k[w>>2]=g;k[w+4>>2]=l;g=dd(15208,w)|0;k[f>>2]=g;g=3;x=74;break}}else{g=a;x=72}}else g=7}else{j=m;x=70}}else{j=0;x=70}while(0);if((x|0)==70){h=Yc(j+2|0)|0;if(!h)g=7;else{pw(h|0,b|0,j|0)|0;i[h+j>>0]=0;i[h+(j+1)>>0]=0;j=n&-65;g=a;x=72}}if((x|0)==72){q=Pc(g)|0;k[d>>2]=q;if(!q){k[w>>2]=g;g=dd(15232,w)|0;k[f>>2]=g;g=1;x=74}else{g=0;x=75}}if((x|0)==74){$c(h);h=0;x=75}if((x|0)==75){k[c>>2]=j;k[e>>2]=h}r=y;return g|0}function ao(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;do if(!b){b=vg(84,0)|0;if(!b)c=8;else{a=b+0|0;e=a+84|0;do{i[a>>0]=0;a=a+1|0}while((a|0)<(e|0));c=9}}else{d=k[b+4>>2]|0;k[d+4>>2]=k[b>>2];c=d+48|0;b=k[c>>2]|0;if(!b){b=vg(84,0)|0;if(!b){k[c>>2]=0;k[d+52>>2]=22;c=8;break}else{a=b+0|0;e=a+84|0;do{i[a>>0]=0;a=a+1|0}while((a|0)<(e|0));k[c>>2]=b;k[d+52>>2]=22;c=9;break}}else c=9}while(0);if((c|0)==8){i[a+65>>0]=1;b=0}else if((c|0)==9)if(!(i[b+76>>0]|0)){c=b+77|0;a=b+8|0;e=a+64|0;do{k[a>>2]=0;a=a+4|0}while((a|0)<(e|0));i[c>>0]=1}return b|0}function bo(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;j=r;r=r+16|0;if((r|0)>=(s|0))ka();if(c){g=a+428|0;f=gn(g,c,j)|0;if(!f)e=0;else e=k[f+8>>2]|0;if((e|0)==0&(d|0)!=0){f=c;while(1)if(!(i[f>>0]|0))break;else f=f+1|0;f=f-c&1073741823;d=f+61|0;e=rh)+ +(e+(ha(d,-60)|0)|0);p[a+32>>3]=c;i[b>>0]=1}return}function vo(a){a=a|0;rg(k[a+52>>2]|0,a);return}function wo(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;f=a+65|0;do if(!(i[f>>0]|0)){if(!b){e=rh(a,c,d)|0;break}if((k[a+276>>2]|0)>>>0<=b>>>0?(k[a+280>>2]|0)>>>0>b>>>0:0){f=a+248|0;if(!(0<d>>>0|(0==(d|0)?(m[f>>1]|0)>>>0<c>>>0:0))){e=b;break}e=rhrh(c,e,0)|0;if(c){kw(c|0,0,e|0)|0;k[d>>2]=c;if((b|0)>0){e=k[a>>2]|0;d=b<<1;while(1){d=d+-1|0;j[c+8>>1]=1;k[c+32>>2]=e;if((d|0)<=0)break;else c=c+40|0}}}else k[d>>2]=0;return}function oq(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(!(i[(k[a>>2]|0)+65>>0]|0)){b=(ha(m[a+84>>1]|0,c)|0)+b|0;ah((k[a+16>>2]|0)+(b*40|0)|0,d,-1,1,e)|0}return}function pq(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();g=h;f=k[a>>2]|0;e=f+1|0;k[a>>2]=e;if((f|0)>98){c=a+8|0;e=k[c>>2]|0;k[a>>2]=f;do Un(a);while((k[a>>2]|0)>-1);yh(e,37160,g);k[c>>2]=e}else{j[a+(e<<4)+12>>1]=b;i[a+(e<<4)+14>>0]=c;c=a+(e<<4)+16|0;k[c+0>>2]=k[d+0>>2];k[c+4>>2]=k[d+4>>2];k[c+8>>2]=k[d+8>>2]}r=h;return}function qq(a,b,c){a=a|0;b=b|0;c=c|0;a=k[a+8>>2]|0;switch(b&255|0){case 236:{Mk(k[a>>2]|0,k[c+4>>2]|0);break}case 243:case 238:case 229:case 227:case 216:case 204:case 202:{Lk(k[a>>2]|0,k[c>>2]|0);break}case 213:case 212:case 201:case 194:{Io(k[a>>2]|0,k[c>>2]|0);break}case 207:case 196:case 195:case 163:{Rk(k[a>>2]|0,k[c>>2]|0,1);break}case 223:case 219:case 217:{Mk(k[a>>2]|0,k[c>>2]|0);break}case 175:case 174:{Lk(k[a>>2]|0,k[c>>2]|0);break}case 239:case 234:{Kk(k[a>>2]|0,k[c>>2]|0);break}case 252:case 197:{Vn(k[a>>2]|0,k[c>>2]|0);break}case 228:case 221:case 220:case 210:case 209:case 208:case 205:case 203:case 200:case 188:case 179:{Sk(k[a>>2]|0,k[c>>2]|0);break}default:{}}return}
9 rh56|0)|0}}if((t|0)==10){t=0;c=k[s>>2]|0;g=(k[p>>2]|0)==0?a:0}a=k[q>>2]|0;k[a+(f<<2)>>2]=(e-c|0)/56|0;if((d|0)>3){m=c;n=f;o=c+((k[a+((f^1)<<2)>>2]|0)*56|0)|0}else break}}else a=k[q>>2]|0;while(0);k[b>>2]=(k[c+((k[a+4>>2]|0)*56|0)+24>>2]|0)==0&1;c=l[(k[u+12>>2]|0)+7>>0]|0}return c|0}function an(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=a+4|0;e=k[d>>2]|0;k[e+4>>2]=k[a>>2];a=Qn(e,b,0)|0;if(!a){a=k[(k[d>>2]|0)+8>>2]|0;if(a)do{if(i[a+72>>0]&16)i[a+73>>0]=0;a=k[a+8>>2]|0}while((a|0)!=0);a=aq(e,b,0,c)|0}return a|0}function bn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;z=r;r=r+32|0;if((r|0)>=(s|0))ka();o=z;y=z+16|0;x=z+12|0;w=z+8|0;k[y>>2]=0;f=k[a+12>>2]|0;if(!b){b=bq(a,c)|0;k[x>>2]=b}else{k[x>>2]=b;p=(k[b+68>>2]|0)+26|0;j[p>>1]=(j[p>>1]|0)+1<<16>>16}e=Lg(k[f+68>>2]|0)|0;k[w>>2]=e;do if(!e){p=f+56|0;n=k[p>>2]|0;A=n+36|0;e=n+37|0;f=n+38|0;n=n+39|0;g=l[e>>0]<<16|l[A>>0]<<24|l[f>>0]<<8|l[n>>0];h=g+1|0;i[A>>0]=h>>>24;i[e>>0]=h>>>16;i[f>>0]=h>>>8;i[n>>0]=h;n=a+22|0;if(j[n>>1]&4){if(!b){f=il(a,c,x,0)|0;k[w>>2]=f;if(f){d=f;break}b=k[x>>2]|0}f=Lg(k[b+68>>2]|0)|0;k[w>>2]=f;if(f){d=f;break}kw(k[b+56>>2]|0,0,k[(k[b+52>>2]|0)+32>>2]|0)|0}if((i[a+17>>0]|0)!=0?(Ep(a,c,2,0,w),d=k[w>>2]|0,(d|0)!=0):0)break;if(g){e=k[p>>2]|0;e=l[e+33>>0]<<16|l[e+32>>0]<<24|l[e+34>>0]<<8|l[e+35>>0];d=il(a,e,y,0)|0;k[w>>2]=d;if(d)break;d=k[y>>2]|0;h=d+56|0;g=k[h>>2]|0;g=l[g+5>>0]<<16|l[g+4>>0]<<24|l[g+6>>0]<<8|l[g+7>>0];f=(k[a+36>>2]|0)>>>2;if(g>>>0>(f+-2|0)>>>0){k[o>>2]=58627;k[o+4>>2]=10788;gd(11,13600,o);k[w>>2]=11;d=11;break}if(g>>>0<(f+-8|0)>>>0){d=Lg(k[d+68>>2]|0)|0;k[w>>2]=d;if(d)break;p=k[h>>2]|0;o=g+1|0;i[p+4>>0]=o>>>24;i[p+5>>0]=o>>>16;i[p+6>>0]=o>>>8;i[p+7>>0]=o;p=g<<2;o=k[h>>2]|0;i[o+(p+8)>>0]=c>>>24;i[o+(p+9)>>0]=c>>>16;i[o+(p+10)>>0]=c>>>8;i[o+(p+11)>>0]=c;if((((b|0)!=0?(j[n>>1]&4)==0:0)?(q=k[b+68>>2]|0,t=q+24|0,u=m[t>>1]|0,(u&2|0)!=0):0)?(k[(k[q+16>>2]|0)+96>>2]|0)==0:0)j[t>>1]=u|32;e=a+60|0;d=k[e>>2]|0;do if(!d){b=k[a+44>>2]|0;d=vg(512,0)|0;if(!d){k[e>>2]=0;d=7;break}else{kw(d|0,0,512)|0;k[d>>2]=b;k[e>>2]=d;v=28;break}}else v=28;while(0);if((v|0)==28)if((k[d>>2]|0)>>>0<c>>>0)d=0;else d=gi(d,c)|0;k[w>>2]=d;break}}else e=0;if(!b){d=il(a,c,x,0)|0;k[w>>2]=d;if(d)break;b=k[x>>2]|0}d=Lg(k[b+68>>2]|0)|0;k[w>>2]=d;if(!d){d=b+56|0;q=k[d>>2]|0;i[q>>0]=e>>>24;i[q+1>>0]=e>>>16;i[q+2>>0]=e>>>8;i[q+3>>0]=e;d=(k[d>>2]|0)+4|0;i[d>>0]=0;i[d+1>>0]=0;i[d+2>>0]=0;i[d+3>>0]=0;d=k[p>>2]|0;i[d+32>>0]=c>>>24;i[d+33>>0]=c>>>16;i[d+34>>0]=c>>>8;i[d+35>>0]=c;d=0}}else d=e;while(0);b=k[x>>2]|0;if(b){i[b>>0]=0;Gg(k[b+68>>2]|0)}b=k[y>>2]|0;if(b)Gg(k[b+68>>2]|0);r=z;return d|0}function cn(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,n=0,o=0,p=0,q=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=r;r=r+48|0;if((r|0)>=(s|0))ka();M=P+24|0;D=P;w=P+36|0;N=P+32|0;t=b+72|0;L=k[t>>2]|0;u=k[a>>2]|0;p=k[b+68>>2]|0;q=u+15|0;if((i[q>>0]|0)!=0?(g=Lg(p)|0,(g|0)!=0):0)O=20;else O=3;a:do if((O|0)==3){h=p+24|0;o=j[h>>1]|0;if((o&2)!=0?(Zo(p)|0)!=0:0){g=_o(p)|0;if(g){O=20;break}o=j[h>>1]|0}if((o&4)==0|(f|0)!=0)n=0;else n=k[p+20>>2]|0;j[h>>1]=o&65531;A=u+204|0;f=fc[k[8744+132>>2]&63](k[(k[A>>2]|0)+40>>2]|0,e,0)|0;f=nl(k[A>>2]|0,e,f)|0;do if(f){j[h>>1]=m[h>>1]|m[f+24>>1]&4;if(!(i[q>>0]|0)){rl(f);break}else{cq(f,(k[u+24>>2]|0)+1|0);break}}while(0);o=k[p+20>>2]|0;cq(p,e);Yo(p);if(i[q>>0]|0){cq(f,o);Gg(f)}do if(n){g=Eg(u,n,M,0)|0;if(!g){A=k[M>>2]|0;z=A+24|0;j[z>>1]=m[z>>1]|4;Yo(A);Gg(A);break}if(n>>>0>(k[u+28>>2]|0)>>>0){O=20;break a}hi(k[u+56>>2]|0,n,k[u+200>>2]|0);O=20;break a}while(0);k[N>>2]=0;k[t>>2]=e;if(c<<24>>24==1|c<<24>>24==5){g=dq(b)|0;k[N>>2]=g;if(!g)O=25;else break}else{f=k[b+56>>2]|0;f=l[f+1>>0]<<16|l[f>>0]<<24|l[f+2>>0]<<8|l[f+3>>0];if(f){Ep(a,f,4,e,N);g=k[N>>2]|0;if(!g)O=25;else break}}if((O|0)==25?c<<24>>24==1:0){g=0;break}g=il(a,d,w,0)|0;k[N>>2]=g;if(!g){z=k[w>>2]|0;A=z+68|0;g=Lg(k[A>>2]|0)|0;k[N>>2]=g;if(g){if(!z)break;Gg(k[A>>2]|0);break}b:do if(c<<24>>24==4){g=k[z+56>>2]|0;h=g+1|0;n=g+2|0;f=g+3|0;if((l[h>>0]<<16|l[g>>0]<<24|l[n>>0]<<8|l[f>>0]|0)==(L|0)){i[g>>0]=e>>>24;i[h>>0]=e>>>16;i[n>>0]=e>>>8;i[f>>0]=e;g=0;break}else{k[M>>2]=56060;k[M+4>>2]=10788;gd(11,13600,M);g=11;break}}else{x=i[z>>0]|0;eq(z)|0;w=j[z+18>>1]|0;y=w&65535;c:do if(w<<16>>16){b=z+56|0;u=z+20|0;p=z+64|0;v=c<<24>>24==3;w=D+18|0;f=0;while(1){t=k[b>>2]|0;q=f<<1;o=k[p>>2]|0;q=(l[o+q>>0]<<8|l[o+(q|1)>>0])&m[u>>1];o=t+q|0;if(v){wp(z,o,D);o=j[w>>1]|0;if((o<<16>>16!=0?(B=(o&65535)+q|0,C=t+(B+3)|0,C>>>0<=((k[b>>2]|0)+(m[u>>1]|0)|0)>>>0):0)?(E=t+B|0,F=t+(B+1)|0,G=t+(B+2)|0,(l[F>>0]<<16|l[E>>0]<<24|l[G>>0]<<8|l[C>>0]|0)==(L|0)):0){o=C;g=E;h=F;n=G;O=40;break}}else{g=t+(q+1)|0;h=t+(q+2)|0;n=t+(q+3)|0;if((l[g>>0]<<16|l[o>>0]<<24|l[h>>0]<<8|l[n>>0]|0)==(L|0)){O=42;break}}f=f+1|0;if((f|0)>=(y|0))break c}if((O|0)==40){i[g>>0]=e>>>24;i[h>>0]=e>>>16;i[n>>0]=e>>>8;i[o>>0]=e;break}else if((O|0)==42){i[o>>0]=e>>>24;i[g>>0]=e>>>16;i[h>>0]=e>>>8;i[n>>0]=e;break}}else f=0;while(0);do if((f|0)==(y|0)){if(c<<24>>24==5?(K=l[z+6>>0]|0,G=k[z+56>>2]|0,H=G+(K+8)|0,I=G+(K+9)|0,J=G+(K+10)|0,K=G+(K+11)|0,(l[I>>0]<<16|l[H>>0]<<24|l[J>>0]<<8|l[K>>0]|0)==(L|0)):0){i[H>>0]=e>>>24;i[I>>0]=e>>>16;i[J>>0]=e>>>8;i[K>>0]=e;break}k[M>>2]=56094;k[M+4>>2]=10788;gd(11,13600,M);g=11;break b}while(0);i[z>>0]=x;g=0}while(0);k[N>>2]=g;if(z)Gg(k[A>>2]|0);if(!g){Ep(a,e,c,d,N);g=k[N>>2]|0}}}while(0);if((O|0)==20)k[N>>2]=g;r=P;return g|0}function dn(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;g=b+20|0;Ym(k[g>>2]|0);k[g>>2]=0;g=b+59|0;if(i[g>>0]|0){h=0;do{d=b+(h<<6)+76|0;rg(a,k[d>>2]|0);k[d>>2]=0;d=b+(h<<6)+80|0;e=k[d>>2]|0;if(e)do{f=e;e=k[e+4>>2]|0;if(f)$c(f)}while((e|0)!=0);k[d>>2]=0;e=b+(h<<6)+96|0;d=k[e>>2]|0;if(d){f=k[d>>2]|0;if(f){qc[k[f+4>>2]&127](d)|0;k[d>>2]=0}$c(d);k[e>>2]=0;d=b+(h<<6)+104|0;k[d>>2]=0;k[d+4>>2]=0}f=b+(h<<6)+112|0;e=k[f>>2]|0;if(e){d=k[e>>2]|0;if(d){qc[k[d+4>>2]&127](e)|0;k[e>>2]=0}$c(e);k[f>>2]=0;d=b+(h<<6)+120|0;k[d>>2]=0;k[d+4>>2]=0}h=h+1|0}while((h|0)<(l[g>>0]|0))}e=b+36|0;if((k[b+40>>2]|0)==0?(c=k[e>>2]|0,(c|0)!=0):0)do{d=c;c=k[c+4>>2]|0;if(d)$c(d)}while((c|0)!=0);k[e>>2]=0;k[b+44>>2]=0;i[b+56>>0]=0;k[b+48>>2]=0;k[b+8>>2]=0;c=b+32|0;rg(a,k[c>>2]|0);k[c>>2]=0;return}function en(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0,q=0;p=r;r=r+16|0;if((r|0)>=(s|0))ka();e=p+4|0;l=p;n=k[a>>2]|0;g=k[a+8>>2]|0;h=k[n+16>>2]|0;f=(k[h+(g<<4)+12>>2]|0)+78|0;j[f>>1]=m[f>>1]&65531;f=n+65|0;do if(!(i[f>>0]|0))if(c){o=c+4|0;b=k[o>>2]|0;if(!b){fq(a,k[c>>2]|0,0);d=0;break}d=c+8|0;q=k[d>>2]|0;if((q|0)!=0?(i[q>>0]|0)!=0:0){h=n+144|0;i[h>>0]=g;k[e>>2]=0;In(b,e)|0;b=k[d>>2]|0;k[n+140>>2]=k[e>>2];o=n+146|0;i[o>>0]=0;nh(n,b,-1,0,0,l,0)|0;b=k[n+52>>2]|0;i[h>>0]=0;do if((b|0)!=0?(i[o>>0]|0)==0:0){k[a+12>>2]=b;if((b|0)==7){i[f>>0]=1;break}else if((b|0)==9)break;if((b&255|0)!=6){o=k[c>>2]|0;fq(a,o,Xe(n)|0)}}while(0);rd(k[l>>2]|0)|0;d=0;break}b=k[c>>2]|0;if(!b){fq(a,0,0);d=0;break}b=gq(n,b,k[h+(g<<4)>>2]|0)|0;if((b|0)!=0?(In(k[o>>2]|0,b+40|0)|0)==0:0){fq(a,k[c>>2]|0,13528);d=0}else d=0}else d=0;else{fq(a,k[c>>2]|0,0);d=1}while(0);r=p;return d|0}function fn(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0;j=r;r=r+16|0;if((r|0)>=(s|0))ka();g=j;h=j+8|0;f=a+16|0;d=k[f>>2]|0;e=k[(k[d+(b<<4)+12>>2]|0)+32>>2]|0;if(e){d=e;do{hq(k[d+8>>2]|0);d=k[d>>2]|0}while((d|0)!=0);d=k[f>>2]|0}k[h>>2]=a;d=k[d+(b<<4)>>2]|0;k[h+4>>2]=d;do if(!(di(a,13384,d)|0))c=1;else{k[g>>2]=d;d=zh(a,13400,g)|0;if((d|0)!=0?(c=Ve(a,d,23,h,0)|0,rg(a,d),(c|0)!=7):0)break;i[a+65>>0]=1;c=7}while(0);r=j;return c|0}function gn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;g=k[a+12>>2]|0;if(!g){e=a+4|0;d=a+8|0;f=0}else{e=i[b>>0]|0;if(!(e<<24>>24))e=0;else{d=b;f=e;e=0;do{d=d+1|0;e=e<<3^e^(l[9328+(f&255)>>0]|0);f=i[d>>0]|0}while(f<<24>>24!=0)}f=(e>>>0)%((k[a>>2]|0)>>>0)|0;e=g+(f<<3)|0;d=g+(f<<3)+4|0}e=k[e>>2]|0;d=k[d>>2]|0;k[c>>2]=f;a:do if(!e)d=0;else while(1){e=e+-1|0;if(!(id(k[d+12>>2]|0,b)|0))break a;if(!e){d=0;break}else d=k[d>>2]|0}while(0);return d|0}function hn(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0;u=r;r=r+16|0;if((r|0)>=(s|0))ka();t=u;q=u+12|0;a:do if((d|0)>0){o=a+16|0;p=a+4|0;n=(b|0)==0;e=c;b=d;while(1){h=b+-1|0;if(!(k[o>>2]|0))break a;if((e|0)<1){e=b;b=5;break}if(jq(a,e)|0)break a;if(Eg(k[p>>2]|0,e,q,0)|0){b=8;break}j=k[q>>2]|0;m=k[j+4>>2]|0;do if(n)if((h|0)>0?(i[(k[a>>2]|0)+17>>0]|0)!=0:0){jn(a,l[m+1>>0]<<16|l[m>>0]<<24|l[m+2>>0]<<8|l[m+3>>0],4,e);b=h}else b=h;else{g=l[m+5>>0]<<16|l[m+4>>0]<<24|l[m+6>>0]<<8|l[m+7>>0];f=k[a>>2]|0;if(i[f+17>>0]|0){jn(a,e,2,0);f=k[a>>2]|0}if((g|0)>(((k[f+36>>2]|0)/4|0)+-2|0)){k[t>>2]=e;ln(a,44640,t);b=b+-2|0;break}b:do if((g|0)>0){b=0;while(1){e=b<<2;e=l[m+(e+9)>>0]<<16|l[m+(e+8)>>0]<<24|l[m+(e+10)>>0]<<8|l[m+(e+11)>>0];if(i[f+17>>0]|0)jn(a,e,2,0);jq(a,e)|0;b=b+1|0;if((b|0)==(g|0))break b;f=k[a>>2]|0}}while(0);b=h-g|0}while(0);e=l[m+1>>0]<<16|l[m>>0]<<24|l[m+2>>0]<<8|l[m+3>>0];if(j)Gg(j);if((b|0)<=0)break a}if((b|0)==5){k[t>>2]=e;k[t+4>>2]=d;k[t+8>>2]=c;ln(a,44552,t);break}else if((b|0)==8){k[t>>2]=e;ln(a,44616,t);break}}while(0);r=u;return}function jn(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0;l=r;r=r+32|0;if((r|0)>=(s|0))ka();h=l;f=l+24|0;g=l+20|0;e=mp(k[a>>2]|0,b,f,g)|0;if((e|0)==7|(e|0)==3082){k[a+24>>2]=1;j=3}else if(!e){f=i[f>>0]|0;e=k[g>>2]|0;if(!((e|0)==(d|0)?f<<24>>24==c<<24>>24:0)){k[h>>2]=b;k[h+4>>2]=c&255;k[h+8>>2]=d;k[h+12>>2]=f&255;k[h+16>>2]=e;ln(a,44496,h)}}else j=3;if((j|0)==3){k[h>>2]=b;ln(a,44464,h)}r=l;return}function kn(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=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=r;r=r+64|0;if((r|0)>=(s|0))ka();S=Z+40|0;h=Z+56|0;N=Z+32|0;O=Z+24|0;K=Z;X=N;k[X>>2]=0;k[X+4>>2]=0;X=O;k[X>>2]=0;k[X+4>>2]=0;X=a+28|0;Y=k[X>>2]|0;T=a+32|0;U=k[T>>2]|0;V=a+36|0;W=k[V>>2]|0;P=k[a>>2]|0;J=P+36|0;Q=k[J>>2]|0;if((b|0)!=0?(jq(a,b)|0)==0:0){k[X>>2]=43768;k[T>>2]=b;n=il(P,b,h,0)|0;do if(!n){R=k[h>>2]|0;i[R>>0]=0;n=eq(R)|0;if(n){k[S>>2]=n;ln(a,43824,S);if(!R){e=-1;break}Gg(k[R+68>>2]|0);e=-1;break}w=a+16|0;L=R+18|0;n=j[L>>1]|0;a:do if(!(n<<16>>16)){o=R+5|0;n=0;e=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(!(k[w>>2]|0)){o=G;e=t;break a}k[X>>2]=43864;k[T>>2]=b;k[V>>2]=u;h=k[x>>2]|0;n=u<<1;o=k[z>>2]|0;n=(l[o+n>>0]<<8|l[o+(n|1)>>0])&m[y>>1];o=h+n|0;wp(R,o,K);p=k[A>>2]|0;if(i[B>>0]|0){e=K;v=k[e>>2]|0;e=k[e+4>>2]|0;if(u){g=O;f=k[g>>2]|0;g=k[g+4>>2]|0;if(!((e|0)>(g|0)|(e|0)==(g|0)&v>>>0>f>>>0)){q=S;k[q>>2]=v;k[q+4>>2]=e;q=S+8|0;k[q>>2]=f;k[q+4>>2]=g;ln(a,43896,S)}}else{f=O;k[f>>2]=v;k[f+4>>2]=e;f=N;k[f>>2]=v;k[f+4>>2]=e}f=O;k[f>>2]=v;k[f+4>>2]=e}v=k[C>>2]|0;e=v&65535;if(p>>>0>e>>>0?(H=(v>>>16)+n|0,I=h+H|0,I>>>0<=((k[x>>2]|0)+(k[J>>2]|0)|0)>>>0):0){v=l[h+(H+1)>>0]<<16|l[I>>0]<<24|l[h+(H+2)>>0]<<8|l[h+(H+3)>>0];if(i[F>>0]|0)jn(a,v,3,b);hn(a,0,v,((D+p-e|0)>>>0)/(E>>>0)|0)}if(!(i[G>>0]|0)){q=l[h+(n+1)>>0]<<16|l[o>>0]<<24|l[h+(n+2)>>0]<<8|l[h+(n+3)>>0];if(i[F>>0]|0)jn(a,q,5,b);e=kn(a,q,N,(u|0)==0?0:O)|0;if(!((u|0)<1|(e|0)==(t|0)))ln(a,43944,S)}else e=t;u=u+1|0;n=j[L>>1]|0;if((u|0)>=(n&65535|0)){o=G;break}else t=e}}while(0);if(!(i[o>>0]|0)){h=l[R+6>>0]|0;G=k[R+56>>2]|0;h=l[G+(h+9)>>0]<<16|l[G+(h+8)>>0]<<24|l[G+(h+10)>>0]<<8|l[G+(h+11)>>0];k[X>>2]=43976;k[T>>2]=b;if(i[P+17>>0]|0){jn(a,h,5,b);n=j[L>>1]|0}kn(a,h,0,n<<16>>16!=0?O:0)|0;G=i[o>>0]|0;k[X>>2]=43768;k[T>>2]=b;if(G<<24>>24)M=34}else{k[X>>2]=43768;k[T>>2]=b;M=34}do if((M|0)==34?(i[R+2>>0]|0)!=0:0){h=(d|0)!=0;if(!c){if(!h)break;h=N;n=k[h>>2]|0;h=k[h+4>>2]|0;f=d;g=k[f>>2]|0;f=k[f+4>>2]|0;if((h|0)>(f|0)|(h|0)==(f|0)&n>>>0>g>>>0)break;G=S;k[G>>2]=n;k[G+4>>2]=h;G=S+8|0;k[G>>2]=g;k[G+4>>2]=f;ln(a,44200,S);break}if(!h){n=O;h=k[n>>2]|0;n=k[n+4>>2]|0;f=c;g=k[f>>2]|0;f=k[f+4>>2]|0;if(!((n|0)>(f|0)|(n|0)==(f|0)&h>>>0>g>>>0))break;G=S;k[G>>2]=h;k[G+4>>2]=n;G=S+8|0;k[G>>2]=g;k[G+4>>2]=f;ln(a,44008,S);break}h=N;n=k[h>>2]|0;h=k[h+4>>2]|0;f=c;g=k[f>>2]|0;f=k[f+4>>2]|0;if(!((h|0)>(f|0)|(h|0)==(f|0)&n>>>0>g>>>0)){G=S;k[G>>2]=n;k[G+4>>2]=h;G=S+8|0;k[G>>2]=g;k[G+4>>2]=f;ln(a,44072,S)}g=O;f=k[g>>2]|0;g=k[g+4>>2]|0;h=d;n=k[h>>2]|0;h=k[h+4>>2]|0;if((g|0)>(h|0)|(g|0)==(h|0)&f>>>0>n>>>0){G=S;k[G>>2]=f;k[G+4>>2]=g;g=S+8|0;k[g>>2]=n;k[g+4>>2]=h;ln(a,44136,S);g=O;f=k[g>>2]|0;g=k[g+4>>2]|0}G=c;k[G>>2]=f;k[G+4>>2]=g}while(0);t=k[R+56>>2]|0;u=l[R+6>>0]|0;v=Lo(k[P+32>>2]|0)|0;k[X>>2]=0;if(v){q=((l[t+(u+5)>>0]<<8|l[t+(u+6)>>0])+65535&65535)+1|0;kw(v+q|0,0,Q-q|0)|0;kw(v|0,1,q|0)|0;q=l[t+(u+3)>>0]<<8|l[t+(u+4)>>0];g=u+12-(l[o>>0]<<2)|0;if(q){f=Q+-4|0;p=0;do{o=g+(p<<1)|0;o=l[t+o>>0]<<8|l[t+(o+1)>>0];if((o|0)>(f|0))h=65536;else h=(Qp(R,t+o|0)|0)&65535;n=h+o|0;if((n|0)<=(Q|0)){if(h)do{n=n+-1|0;G=v+n|0;i[G>>0]=(i[G>>0]|0)+1<<24>>24}while((n|0)>(o|0))}else{k[X>>2]=0;k[S>>2]=p;k[S+4>>2]=b;ln(a,44264,S)}p=p+1|0}while((p|0)<(q|0))}f=l[t+(u+1)>>0]<<8|l[t+(u+2)>>0];if(f)do{g=l[t+(f+2)>>0]<<8|l[t+(f+3)>>0];if(g){g=g+f|0;do{g=g+-1|0;G=v+g|0;i[G>>0]=(i[G>>0]|0)+1<<24>>24}while((g|0)>(f|0))}f=l[t+f>>0]<<8|l[t+(f+1)>>0]}while((f|0)!=0);b:do if((Q|0)>0){g=0;f=0;while(1){h=i[v+f>>0]|0;if(h<<24>>24){if(h<<24>>24>1)break}else g=g+1|0;f=f+1|0;if((f|0)>=(Q|0))break b}k[S>>2]=f;k[S+4>>2]=b;ln(a,44312,S)}else g=0;while(0);f=l[t+(u+7)>>0]|0;if((g|0)!=(f|0)){k[S>>2]=g;k[S+4>>2]=f;k[S+8>>2]=b;ln(a,44352,S)}}else k[a+24>>2]=1;el(v);if(R)Gg(k[R+68>>2]|0)}else{k[S>>2]=n;ln(a,43784,S);e=-1}while(0);k[X>>2]=Y;k[T>>2]=U;k[V>>2]=W;e=e+1|0}else e=0;r=Z;return e|0}function ln(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=r;r=r+224|0;if((r|0)>=(s|0))ka();f=j;g=j+8|0;h=j+24|0;d=a+16|0;e=k[d>>2]|0;if(e){k[d>>2]=e+-1;d=a+20|0;k[d>>2]=(k[d>>2]|0)+1;k[g>>2]=c;c=a+40|0;if(k[a+52>>2]|0)Xk(c,43760,1);d=k[a+28>>2]|0;if(d){e=k[a+36>>2]|0;k[f>>2]=k[a+32>>2];k[f+4>>2]=e;fd(200,h,d,f)|0;d=h;while(1)if(!(i[d>>0]|0))break;else d=d+1|0;Xk(c,h,d-h&1073741823)}xg(c,1,b,g);if((i[a+65>>0]|0)==1)k[a+24>>2]=1}r=j;return}function mn(a){a=a|0;var b=0,c=0;b=a+8|0;c=k[b>>2]|0;do if((c|0)!=(k[a+4>>2]|0))if((i[a+24>>0]|0)==1){rg(k[a>>2]|0,c);break}else{$c(c);break}while(0);k[b>>2]=0;return}function nn(a){a=a|0;var b=0,c=0,d=0,e=0;c=k[a+32>>2]|0;e=a+8|0;if(!((j[e>>1]&9312)==0?(k[a+24>>2]|0)==0:0))Vg(a);b=rhrh(k[a+4>>2]|0,1016,0)|0;if(!b)b=0;else{k[b>>2]=k[a>>2];k[a>>2]=b;b=b+8|0;k[a+16>>2]=b;j[d>>1]=63;c=62;e=5}}else{c=b+-1<<16>>16;b=k[a+16>>2]|0;e=5}if((e|0)==5){j[d>>1]=c;k[a+16>>2]=b+16}return b|0}function un(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0;o=r;r=r+16|0;if((r|0)>=(s|0))ka();n=o;d=a+4|0;if(i[d>>0]|0){b=vn(a)|0;if(!b){h=i[d>>0]|0;c=4}}else{h=0;c=4}do if((c|0)==4){e=k[a>>2]|0;l=k[a+60>>2]|0;f=k[a+212>>2]|0;b=a+160|0;c=k[b>>2]|0;b=k[b+4>>2]|0;g=a+208|0;k[g>>2]=0;d=(k[e+4>>2]|0)+112|0;m=vg(d,0)|0;if(!m)b=7;else{kw(m|0,0,d|0)|0;k[m>>2]=e;p=m+112|0;d=m+8|0;k[d>>2]=p;k[m+4>>2]=l;j[m+40>>1]=-1;a=m+16|0;k[a>>2]=c;k[a+4>>2]=b;k[m+100>>2]=f;a=m+48|0;i[a>>0]=1;c=m+49|0;i[c>>0]=1;i[m+43>>0]=h<<24>>24!=0?2:0;k[n>>2]=524294;b=yc[k[e+24>>2]&31](e,f,p,524294,n)|0;if(b){lq(m,0);c=k[d>>2]|0;d=k[c>>2]|0;if(d){qc[k[d+4>>2]&127](c)|0;k[c>>2]=0}$c(m);break}if(k[n>>2]&1)i[m+46>>0]=1;d=qc[k[(k[l>>2]|0)+48>>2]&127](l)|0;if(d&1024)i[a>>0]=0;if(d&4096)i[c>>0]=0;k[g>>2]=m;b=0}}while(0);r=o;return b|0}function vn(a){a=a|0;var b=0,c=0,d=0;d=kl(a,4)|0;if((d|0)!=0?(b=k[a+60>>2]|0,c=k[b>>2]|0,(c|0)!=0):0){if(!(i[a+13>>0]|0))wc[k[c+32>>2]&127](b,1)|0;b=a+17|0;if((i[b>>0]|0)!=5)i[b>>0]=1}return d|0}function wn(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;j=r;r=r+16|0;if((r|0)>=(s|0))ka();h=j;if(!a)e=0;else{g=a+4|0;e=k[g>>2]|0;e=wc[k[(k[e>>2]|0)+28>>2]&127](e,4)|0;if(!e){f=a+43|0;if(!(i[f>>0]|0))i[f>>0]=1;e=Yn(a,0,0,0,b,c,d,0,0)|0;if(!e){k[h>>2]=-1;e=k[g>>2]|0;fc[k[(k[e>>2]|0)+40>>2]&63](e,10,h)|0;if((k[h>>2]|0)==1){e=a+16|0;b=k[e+4>>2]|0;if((b|0)>-1|(b|0)==-1&(k[e>>2]|0)>>>0>4294967295){cp(a,0,0);c=0;e=0}else{c=0;e=0}}else{c=1;e=0}}else c=0}else c=0;lq(a,c);b=k[a+8>>2]|0;f=k[b>>2]|0;if(f){qc[k[f+4>>2]&127](b)|0;k[b>>2]=0}if(c){b=k[3164]|0;if(b)sc[b&3]();b=k[a>>2]|0;fc[k[b+28>>2]&63](b,k[a+100>>2]|0,0)|0;b=k[3166]|0;if(b)sc[b&3]()}$c(k[a+32>>2]|0);$c(a)}r=j;return e|0}function xn(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;h=a+5|0;d=i[h>>0]|0;if(!((i[a+15>>0]|0)!=0?!((b|0)==2|(b|0)==4):0))e=3;do if(((e|0)==3?(c=d&255,(c|0)!=(b|0)):0)?(i[h>>0]=b,(i[a+4>>0]|0)==0&(c&5|0)==1&(b&1|0)==0):0){c=k[a+64>>2]|0;d=k[c>>2]|0;if(d){qc[k[d+4>>2]&127](c)|0;k[c>>2]=0}g=a+17|0;if((l[g>>0]|0)>1){c=k[a>>2]|0;fc[k[c+28>>2]&63](c,k[a+172>>2]|0,0)|0;break}d=a+16|0;c=i[d>>0]|0;f=c<<24>>24==0;if(f){b=hl(a)|0;e=i[d>>0]|0}else{e=c;b=0}if(e<<24>>24==1)b=kl(a,2)|0;if((b|0)==0?(d=k[a>>2]|0,fc[k[d+28>>2]&63](d,k[a+172>>2]|0,0)|0,c<<24>>24==1):0){d=k[a+60>>2]|0;c=k[d>>2]|0;if(!c)break;if(!(i[a+13>>0]|0))wc[k[c+32>>2]&127](d,1)|0;if((i[g>>0]|0)==5)break;i[g>>0]=1;break}if(f)So(a)}while(0);return l[h>>0]|0}function yn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=r;r=r+16|0;if((r|0)>=(s|0))ka();e=f;d=f+4|0;do if(c)if(!(nh(a,c,-1,0,0,d,0)|0)){d=k[d>>2]|0;Xd(d)|0;a=mq(a,d,b)|0;break}else{ih(b,a,Xe(a)|0,e);a=Sf(a)|0;break}else a=7;while(0);r=f;return a|0}function zn(a){a=a|0;var b=0;k[(k[a+4>>2]|0)+4>>2]=k[a>>2];b=Pg(a,0)|0;if(!b)b=Og(a,0)|0;return b|0}function An(a,b){a=a|0;b=b|0;var c=0,d=0;c=k[a+4>>2]|0;k[c+4>>2]=k[a>>2];a=b&255;if(j[c+22>>1]&2){b=c+17|0;if(((a|0)!=0|0)==(l[b>>0]|0|0))d=4;else b=8}else{b=c+17|0;d=4}if((d|0)==4){i[b>>0]=(a|0)!=0&1;i[c+18>>0]=(a|0)==2&1;b=0}return b|0}function Bn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=r;r=r+16|0;if((r|0)>=(s|0))ka();d=f;c=nh(a,c,-1,0,0,d,0)|0;do if(!c){d=k[d>>2]|0;while(1){if((Xd(d)|0)!=100){e=6;break}c=yn(a,b,ke(d,0)|0)|0;if(c){e=5;break}}if((e|0)==5){mq(a,d,b)|0;break}else if((e|0)==6){c=mq(a,d,b)|0;break}}while(0);r=f;return c|0}function Cn(a){a=a|0;var b=0;b=a+100|0;k[b>>2]=(k[b>>2]|0)+1;b=k[a+88>>2]|0;if(b)do{k[b+16>>2]=1;b=k[b+44>>2]|0}while((b|0)!=0);ip(k[a+204>>2]|0,0);return}function Dn(a){a=a|0;var b=0,c=0,d=0;d=a+304|0;b=k[d>>2]|0;if(!((b|0)%5|0)){b=(b<<2)+20|0;c=a+328|0;b=wo(a,k[c>>2]|0,b,((b|0)<0)<<31>>31)|0;if(!b)b=7;else{a=b+(k[d>>2]<<2)|0;k[a+0>>2]=0;k[a+4>>2]=0;k[a+8>>2]=0;k[a+12>>2]=0;k[a+16>>2]=0;k[c>>2]=b;b=0}}else b=0;return b|0}function En(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=r;r=r+16|0;if((r|0)>=(s|0))ka();w=z;p=z+8|0;u=z+4|0;f=b+56|0;q=k[f>>2]|0;t=k[b+52>>2]|0;k[u>>2]=0;k[w>>2]=k[b>>2];y=zh(a,10344,w)|0;do if(!y)f=7;else{v=rh(a,28,0)|0;if(!v){rg(a,y);f=7;break}n=v+0|0;m=n+28|0;do{i[n>>0]=0;n=n+1|0}while((n|0)<(m|0));k[v>>2]=a;k[v+4>>2]=c;o=k[b+68>>2]|0;a:do if(o){n=k[a+20>>2]|0;if((n|0)>0){h=k[a+16>>2]|0;g=0;while(1){m=g+1|0;if((k[h+(g<<4)+12>>2]|0)==(o|0)){m=g;break a}if((m|0)<(n|0))g=m;else break}}else m=0}else m=-1e6;while(0);k[(k[f>>2]|0)+4>>2]=k[(k[a+16>>2]|0)+(m<<4)>>2];n=p+4|0;k[n>>2]=b;k[p>>2]=v;o=a+324|0;h=k[o>>2]|0;k[o>>2]=p;m=v+8|0;f=pc[d&7](a,k[c+8>>2]|0,t,q,m,u)|0;k[o>>2]=h;do if((f|0)==7){i[a+65>>0]=1;x=11}else if(!f){h=k[m>>2]|0;if(h){k[h+0>>2]=0;k[h+4>>2]=0;k[h+8>>2]=0;k[k[m>>2]>>2]=k[c>>2];k[v+12>>2]=1;if(k[n>>2]|0){k[w>>2]=k[b>>2];f=zh(a,28376,w)|0;k[e>>2]=f;Fn(v);f=1;break}u=b+60|0;k[v+24>>2]=k[u>>2];k[u>>2]=v;u=b+38|0;f=j[u>>1]|0;if(f<<16>>16>0){t=b+4|0;g=k[t>>2]|0;d=0;while(1){p=k[g+(d*24|0)+12>>2]|0;if(p){h=p;while(1)if(!(i[h>>0]|0))break;else h=h+1|0;m=h-p|0;o=m&1073741823;if((Kc(28424,p,6)|0)==0?(q=i[p+6>>0]|0,q<<24>>24==32|q<<24>>24==0):0)h=0;else x=24;b:do if((x|0)==24){x=0;if(!o)h=0;else{h=0;while(1){if((Kc(28432,p+h|0,7)|0)==0?(q=i[p+(h+7)>>0]|0,q<<24>>24==32|q<<24>>24==0):0)break;h=h+1|0;if((h|0)>=(o|0))break b}h=h+1|0}}while(0);if((h|0)<(o|0)){n=(i[p+(h+6)>>0]|0)!=0|6;g=h+n|0;if((g|0)<=(o|0)){m=(m&1073741823)+1-n|0;f=g;g=h;while(1){i[p+g>>0]=i[p+f>>0]|0;g=g+1|0;if((g|0)==(m|0))break;else f=g+n|0}}if((i[p+h>>0]|0)==0&(h|0)>0)i[p+(h+-1)>>0]=0;g=k[t>>2]|0;f=g+(d*24|0)+23|0;i[f>>0]=l[f>>0]|2;f=j[u>>1]|0}}d=d+1|0;if((d|0)>=(f<<16>>16|0)){f=0;break}}}else f=0}else f=0}else x=11;while(0);if((x|0)==11){g=k[u>>2]|0;if(!g){k[w>>2]=y;d=zh(a,28344,w)|0;k[e>>2]=d}else{k[w>>2]=g;d=zh(a,10344,w)|0;k[e>>2]=d;$c(k[u>>2]|0)}rg(a,v)}rg(a,y)}while(0);r=z;return f|0}function Fn(a){a=a|0;var b=0,c=0,d=0;b=k[a>>2]|0;d=a+12|0;c=(k[d>>2]|0)+-1|0;k[d>>2]=c;if(!c){c=k[a+8>>2]|0;if(c)qc[k[(k[c>>2]|0)+16>>2]&127](c)|0;rg(b,a)}return}function Gn(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,r=0,s=0;s=a+10|0;d=b<<24>>24==1;if((i[s>>0]|0)==1|d){o=a+12|0;c=k[o>>2]|0;if(d){d=c&-2;k[o>>2]=d;g=d;d=d<<1|1}else{g=c;d=(c<<1)+2|0}p=a+16|0;c=k[p>>2]|0;n=c+g|0;q=a+32|0;r=rh(k[q>>2]|0,d,((d|0)<0)<<31>>31)|0;if(!r)c=7;else{d=i[s>>0]|0;if(d<<24>>24==2)if((g|0)>0){d=r;do{e=l[c>>0]|0;g=c+2|0;h=l[c+1>>0]<<8;f=h|e;if((h&63488|0)==55296&g>>>0<n>>>0){f=(f<<10&983040)+65536|e<<10&64512|l[g>>0]|l[c+3>>0]<<8&768;c=c+4|0}else c=g;do if(f>>>0>=128){if(f>>>0<2048){i[d>>0]=f>>>6&31|192;i[d+1>>0]=f&63|128;d=d+2|0;break}if(f>>>0<65536){i[d>>0]=f>>>12&15|224;i[d+1>>0]=f>>>6&63|128;i[d+2>>0]=f&63|128;d=d+3|0;break}else{i[d>>0]=f>>>18&7|240;i[d+1>>0]=f>>>12&63|128;i[d+2>>0]=f>>>6&63|128;i[d+3>>0]=f&63|128;d=d+4|0;break}}else{i[d>>0]=f;d=d+1|0}while(0)}while(c>>>0<n>>>0);h=55}else{d=r;h=55}else if(d<<24>>24!=1)if((g|0)>0){d=r;do{h=l[c>>0]<<8;g=c+2|0;f=l[c+1>>0]|0;e=h|f;if((h&63488|0)==55296&g>>>0<n>>>0){e=(e<<10&983040)+65536|f<<10&64512|l[c+3>>0]|l[g>>0]<<8&768;c=c+4|0}else c=g;do if(e>>>0>=128){if(e>>>0<2048){i[d>>0]=e>>>6&31|192;i[d+1>>0]=e&63|128;d=d+2|0;break}if(e>>>0<65536){i[d>>0]=e>>>12&15|224;i[d+1>>0]=e>>>6&63|128;i[d+2>>0]=e&63|128;d=d+3|0;break}else{i[d>>0]=e>>>18&7|240;i[d+1>>0]=e>>>12&63|128;i[d+2>>0]=e>>>6&63|128;i[d+3>>0]=e&63|128;d=d+4|0;break}}else{i[d>>0]=e;d=d+1|0}while(0)}while(c>>>0<n>>>0);h=55}else{d=r;h=55}else{d=(g|0)>0;if(b<<24>>24==2)if(d){d=r;g=c;while(1){c=g+1|0;e=i[g>>0]|0;f=e&255;if((e&255)>191){f=l[15360+(f+-192)>>0]|0;a:do if((c|0)==(n|0))c=n;else while(1){e=i[c>>0]|0;if((e&-64)<<24>>24!=-128)break a;g=g+2|0;f=e&63|f<<6;if((g|0)==(n|0)){c=n;break}else{e=c;c=g;g=e}}while(0);if(!(f>>>0<128|(f&-2048|0)==55296|(f&-2|0)==65534))if(f>>>0<65536)h=22;else{g=f+-65536|0;i[d>>0]=g>>>10&192|f>>>10&63;i[d+1>>0]=g>>>18&3|216;i[d+2>>0]=f;i[d+3>>0]=f>>>8&3|220;d=d+4|0}else{f=65533;h=22}}else h=22;if((h|0)==22){h=0;i[d>>0]=f;i[d+1>>0]=f>>>8;d=d+2|0}if(c>>>0<n>>>0)g=c;else break}}else d=r;else if(d){d=r;do{g=c+1|0;f=i[c>>0]|0;e=f&255;if((f&255)>191){e=l[15360+(e+-192)>>0]|0;b:do if((g|0)==(n|0))c=n;else{f=c;c=g;while(1){g=i[c>>0]|0;if((g&-64)<<24>>24!=-128)break b;f=f+2|0;e=g&63|e<<6;if((f|0)==(n|0)){c=n;break}else{g=c;c=f;f=g}}}while(0);if(!(e>>>0<128|(e&-2048|0)==55296|(e&-2|0)==65534))if(e>>>0<65536)h=31;else{g=e+-65536|0;i[d>>0]=g>>>18&3|216;i[d+1>>0]=g>>>10&192|e>>>10&63;i[d+2>>0]=e>>>8&3|220;i[d+3>>0]=e;d=d+4|0}else{e=65533;h=31}}else{c=g;h=31}if((h|0)==31){h=0;i[d>>0]=e>>>8;i[d+1>>0]=e;d=d+2|0}}while(c>>>0<n>>>0)}else d=r;k[o>>2]=d-r;i[d>>0]=0;d=d+1|0}if((h|0)==55)k[o>>2]=d-r;i[d>>0]=0;d=a+8|0;o=j[d>>1]|0;c=o&65535;if(!((o&9312)==0?(k[a+24>>2]|0)==0:0))Vg(a);j[d>>1]=c&29|514;i[s>>0]=b;k[p>>2]=r;k[a+20>>2]=r;c=k[q>>2]|0;do if(!c)c=qc[k[8744+48>>2]&127](r)|0;else{if((k[c+276>>2]|0)>>>0<=r>>>0?(k[c+280>>2]|0)>>>0>r>>>0:0){c=m[c+248>>1]|0;break}c=qc[k[8744+48>>2]&127](r)|0}while(0);k[a+24>>2]=c;c=0}}else if(!(_l(a)|0)){c=k[a+16>>2]|0;q=k[a+12>>2]&-2;d=c+q|0;if((q|0)>0)do{p=i[c>>0]|0;q=c+1|0;i[c>>0]=i[q>>0]|0;c=c+2|0;i[q>>0]=p}while(c>>>0<d>>>0);i[s>>0]=b;c=0}else c=7;return c|0}function Hn(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=i[a>>0]|0;d=f&255;a:do switch(d|0){case 41:{k[b>>2]=23;c=1;break}case 58:case 35:case 64:case 36:{k[b>>2]=135;d=i[a+1>>0]|0;if(d<<24>>24){c=1;f=0;while(1){if(!(i[10368+(d&255)>>0]&70)){if(d<<24>>24==40&(f|0)>0){d=f;g=78;break}if(d<<24>>24!=58){d=f;break}d=c+1|0;if((i[a+d>>0]|0)==58)c=d;else{d=f;break}}else f=f+1|0;c=c+1|0;d=i[a+c>>0]|0;if(!(d<<24>>24)){d=f;break}}do if((g|0)==78){e=c;while(1){c=e+1|0;f=i[a+c>>0]|0;if(!(f<<24>>24))break;if(f<<24>>24!=41?(i[10368+(f&255)>>0]&1)==0:0)e=c;else{g=81;break}}if((g|0)==81)if(f<<24>>24==41){c=e+2|0;break}k[b>>2]=150}while(0);if(d)break a}else c=1;k[b>>2]=150;break}case 61:{k[b>>2]=79;c=(i[a+1>>0]|0)==61?2:1;break}case 60:{c=i[a+1>>0]|0;if(c<<24>>24==61){k[b>>2]=81;c=2;break a}else if(c<<24>>24==62){k[b>>2]=78;c=2;break a}else if(c<<24>>24==60){k[b>>2]=87;c=2;break a}else{k[b>>2]=82;c=1;break a}}case 43:{k[b>>2]=89;c=1;break}case 42:{k[b>>2]=91;c=1;break}case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:{g=51;break}case 46:{if(((l[a+1>>0]|0)+-48|0)>>>0<10)g=51;else{k[b>>2]=122;c=1}break}case 124:if((i[a+1>>0]|0)==124){k[b>>2]=94;c=2;break a}else{k[b>>2]=86;c=1;break a}case 59:{k[b>>2]=1;c=1;break}case 47:{if((i[a+1>>0]|0)==42?(c=i[a+2>>0]|0,c<<24>>24!=0):0){c=c&255;d=3;while(1){f=i[a+d>>0]|0;if((c|0)==42&f<<24>>24==47){c=42;break}c=f&255;if(!(f<<24>>24))break;else d=d+1|0}k[b>>2]=151;c=((c|0)!=0&1)+d|0;break a}k[b>>2]=92;c=1;break}case 44:{k[b>>2]=26;c=1;break}case 88:case 120:{if((i[a+1>>0]|0)==39){k[b>>2]=134;c=2;while(1){d=i[a+c>>0]|0;if(!(i[10368+(d&255)>>0]&8))break;else c=c+1|0}if(d<<24>>24==39&(c&1|0)==0)d=1;else{k[b>>2]=150;while(1){d=i[a+c>>0]|0;if(d<<24>>24==39|d<<24>>24==0)break;c=c+1|0}d=d<<24>>24!=0}c=(d&1)+c|0}else g=98;break}case 33:if((i[a+1>>0]|0)==61){k[b>>2]=78;c=2;break a}else{k[b>>2]=150;c=2;break a}case 37:{k[b>>2]=93;c=1;break}case 63:{k[b>>2]=135;c=1;while(1)if(((l[a+c>>0]|0)+-48|0)>>>0<10)c=c+1|0;else break;break}case 38:{k[b>>2]=85;c=1;break}case 126:{k[b>>2]=96;c=1;break}case 34:case 39:case 96:{d=i[a+1>>0]|0;b:do if(d<<24>>24){c=1;while(1){if(d<<24>>24==f<<24>>24){c=c+1|0;if((i[a+c>>0]|0)!=f<<24>>24)break}c=c+1|0;d=i[a+c>>0]|0;if(!(d<<24>>24))break b}if(f<<24>>24==39){k[b>>2]=97;break a}else{k[b>>2]=27;break a}}else c=1;while(0);k[b>>2]=150;break}case 62:{c=i[a+1>>0]|0;if(c<<24>>24==62){k[b>>2]=88;c=2;break a}else if(c<<24>>24==61){k[b>>2]=83;c=2;break a}else{k[b>>2]=80;c=1;break a}}case 91:{c=1;while(1){d=i[a+c>>0]|0;if(!(d<<24>>24)){d=d&255;break}c=c+1|0;if(d<<24>>24==93){d=93;break}}k[b>>2]=(d|0)==93?27:150;break}case 13:case 12:case 10:case 9:case 32:{c=1;while(1)if(!(i[10368+(l[a+c>>0]|0)>>0]&1))break;else c=c+1|0;k[b>>2]=151;break}case 40:{k[b>>2]=22;c=1;break}case 45:{if((i[a+1>>0]|0)==45)c=2;else{k[b>>2]=90;c=1;break a}while(1){d=i[a+c>>0]|0;if(d<<24>>24==0|d<<24>>24==10)break;c=c+1|0}k[b>>2]=151;break}default:g=98}while(0);c:do if((g|0)==51){k[b>>2]=132;c=i[a>>0]|0;if(c<<24>>24==48){d=i[a+1>>0]|0;if(d<<24>>24==88|d<<24>>24==120)if(!(i[10368+(l[a+2>>0]|0)>>0]&8))e=0;else{c=3;while(1)if(!(i[10368+(l[a+c>>0]|0)>>0]&8))break c;else c=c+1|0}else{c=48;e=0}}else e=0;while(1){d=e+1|0;if(((c&255)+-48|0)>>>0>=10){d=e;break}c=i[a+d>>0]|0;e=d}if(c<<24>>24==46){c=d;do{c=c+1|0;d=a+c|0}while(((l[d>>0]|0)+-48|0)>>>0<10);k[b>>2]=133;e=i[d>>0]|0;f=c}else{e=c;f=d}do if(e<<24>>24==69|e<<24>>24==101){d=i[a+(f+1)>>0]|0;if(((d&255)+-48|0)>>>0>=10){if(!(d<<24>>24==45|d<<24>>24==43)){d=e;c=f;break}c=f+2|0;if(((l[a+c>>0]|0)+-48|0)>>>0>=10){d=e;c=f;break}}else c=f+2|0;while(1){d=a+c|0;if(((l[d>>0]|0)+-48|0)>>>0<10)c=c+1|0;else break}k[b>>2]=133;d=i[d>>0]|0}else{d=e;c=f}while(0);if(i[10368+(d&255)>>0]&70)do{k[b>>2]=150;c=c+1|0}while((i[10368+(l[a+c>>0]|0)>>0]&70)!=0)}else if((g|0)==98){if(!(i[10368+d>>0]&70)){k[b>>2]=150;c=1;break}else c=1;while(1)if(!(i[10368+(l[a+c>>0]|0)>>0]&70))break;else c=c+1|0;d=ki(a,c)|0;k[b>>2]=d}while(0);return c|0}function In(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=i[a>>0]|0;if(d<<24>>24==43){a=a+1|0;g=0;h=13}else if(d<<24>>24==45){a=a+1|0;g=1;h=13}else if((d<<24>>24==48?(d=i[a+1>>0]|0,d<<24>>24==88|d<<24>>24==120):0)?(e=a+2|0,c=i[e>>0]|0,(i[10368+(c&255)>>0]&8)!=0):0){while(1){d=e+1|0;if(c<<24>>24!=48)break;e=d;c=i[d>>0]|0}if(!(i[10368+(c&255)>>0]&8)){c=0;d=0}else{f=c;a=0;d=0;do{c=f<<24>>24;d=(0-(c>>>6&1)&9)+c&15|d<<4;a=a+1|0;f=i[e+a>>0]|0;c=(i[10368+(f&255)>>0]&8)==0}while((a|0)<8&(c^1));c=c^1}if((d|0)<0|c)c=0;else{k[b>>2]=d;c=1}}else{g=0;h=13}a:do if((h|0)==13){c=0;d=0;f=0;while(1){e=(i[a+f>>0]|0)+-48|0;if(e>>>0>=10)break;d=xw(c|0,d|0,10,0)|0;c=ow(e|0,((e|0)<0)<<31>>31|0,d|0,L|0)|0;f=f+1|0;if((f|0)>=11){c=0;break a}else d=L}e=iw(c|0,d|0,g|0,0)|0;a=L;if((a|0)>0|(a|0)==0&e>>>0>2147483647)c=0;else{if(g)c=iw(0,0,c|0,d|0)|0;k[b>>2]=c;c=1}}while(0);return c|0}function Jn(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=r;r=r+16|0;if((r|0)>=(s|0))ka();f=e;k[f>>2]=d;xg(a,b,c,f);r=e;return}function Kn(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,m=0,n=0,o=0,p=0,q=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;E=r;r=r+16|0;if((r|0)>=(s|0))ka();C=E;A=E+4|0;k[A>>2]=0;D=rhrh(a,m,L)|0,(m|0)!=0):0){pw(m|0,b|0,c|0)|0;i[m+c>>0]=0;Qh(D,m,A)|0;rg(a,m);h=D+480|0;k[h>>2]=b+((k[h>>2]|0)-m);break}k[D+480>>2]=b+c;break}}else B=21;while(0);if((B|0)==21)Qh(D,b,A)|0;q=a+65|0;e=D+12|0;if(!(i[q>>0]|0)){n=D+12|0;if((k[e>>2]|0)==101)k[n>>2]=0}else{k[e>>2]=7;n=D+12|0}c:do if((i[D+17>>0]|0)!=0?(t=k[D>>2]|0,u=t+20|0,(k[u>>2]|0)>0):0){m=t+16|0;p=0;while(1){e=k[m>>2]|0;h=k[e+(p<<4)+4>>2]|0;if(h){if(!(i[h+8>>0]|0)){e=Dg(h,0)|0;if((e|0)==7|(e|0)==3082)break;else if(e)break c;e=k[m>>2]|0;o=1}else o=0;c=k[h+4>>2]|0;k[c+4>>2]=k[h>>2];c=k[(k[c+12>>2]|0)+56>>2]|0;if((l[c+41>>0]<<16|l[c+40>>0]<<24|l[c+42>>0]<<8|l[c+43>>0]|0)!=(k[k[e+(p<<4)+12>>2]>>2]|0)){Am(t,p);k[n>>2]=17}if(o)zn(h)|0}p=p+1|0;if((p|0)>=(k[u>>2]|0))break c}i[t+65>>0]=1}while(0);if(i[q>>0]|0)k[n>>2]=7;if(g)k[g>>2]=k[D+480>>2];h=k[n>>2]|0;o=(h|0)==0;do if(o?(w=D+8|0,v=k[w>>2]|0,(v|0)!=0):0){n=i[D+450>>0]|0;if(n<<24>>24==2){nq(v,4);m=8;e=12}else if(!(n<<24>>24))break;else{nq(v,8);m=0;e=8}n=m;do{oq(k[w>>2]|0,n-m|0,0,k[41040+(n<<2)>>2]|0,0);n=n+1|0}while((n|0)<(e|0))}while(0);m=D+8|0;if((i[a+145>>0]|0)==0?(z=k[m>>2]|0,x=(k[D+480>>2]|0)-b|0,(z|0)!=0):0){if((b|0)!=0?(w=k[z>>2]|0,y=ow(x|0,((x|0)<0)<<31>>31|0,1,0)|0,y=rh(w,y,L)|0,(y|0)!=0):0){pw(y|0,b|0,x|0)|0;i[y+x>>0]=0;n=y}else n=0;k[z+168>>2]=n;z=z+88|0;j[z>>1]=j[z>>1]&-257|(d&65535)<<8&256}n=k[m>>2]|0;do if(!n)B=60;else{if(o?(i[q>>0]|0)==0:0){B=60;break}Sg(n)|0}while(0);if((B|0)==60)k[f>>2]=n;m=k[A>>2]|0;do if(!m){k[a+52>>2]=h;m=k[a+236>>2]|0;if(m){n=m+8|0;if(!(j[n>>1]&9312)){j[n>>1]=1;break}else{Ag(m);break}}}else{k[C>>2]=m;zg(a,h,10344,C);rg(a,m)}while(0);m=D+528|0;n=k[m>>2]|0;if(!n)n=D;else{do{k[m>>2]=k[n+4>>2];rg(a,n);n=k[m>>2]|0}while((n|0)!=0);n=D}}else{n=0;h=7}while(0);Hh(n);rg(a,D);C=Tg(a,h)|0;r=E;return C|0}function Ln(a){a=a|0;var b=0,c=0;c=k[a>>2]|0;if((i[c+145>>0]|0)==0?(b=ci(c,a+4|0)|0,(b|0)!=0):0){k[a+12>>2]=b;c=a+64|0;k[c>>2]=(k[c>>2]|0)+1}else b=0;return b|0}function Mn(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;d=k[a+24>>2]|0;f=d+84|0;b=k[f>>2]|0;if(!b){b=1020;c=0}else{b=b*40|0;c=0}e=a+4|0;a=wo(k[d>>2]|0,k[e>>2]|0,b,c)|0;c=(a|0)!=0;if(c){b=k[d>>2]|0;do if(!b)b=qc[k[8744+48>>2]&127](a)|0;else{if((k[b+276>>2]|0)>>>0<=a>>>0?(k[b+280>>2]|0)>>>0>a>>>0:0){b=m[b+248>>1]|0;break}b=qc[k[8744+48>>2]&127](a)|0}while(0);k[f>>2]=(b>>>0)/20|0;k[e>>2]=a}return (c?0:7)|0}function Nn(a,b,c){a=a|0;b=b|0;c=c|0;a:do if(c)switch(b|0){case -11:{if(k[a+520>>2]|0)break a;$c(c);break a}case -5:{if(!(j[c+2>>1]&16))break a;rg(a,c);break a}case -10:{if(k[a+520>>2]|0)break a;Fn(c);break a}case -15:case -1:case -13:case -12:{rg(a,c);break a}case -8:{if(!(k[a+520>>2]|0)){Rh(c);break a}if(k[c+24>>2]|0)rg(a,k[c+20>>2]|0);rg(a,c);break a}case -6:{if(k[a+520>>2]|0)break a;a=(k[c>>2]|0)+-1|0;k[c>>2]=a;if(a)break a;$c(c);break a}default:break a}while(0);return}function On(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0;c=k[b>>2]|0;p=k[a+24>>2]|0;q=p+112|0;g=k[q>>2]|0;n=a+88|0;j[n>>1]=j[n>>1]&-193|64;d=k[a+32>>2]|0;a:do if((d|0)>0){f=k[a+4>>2]|0;while(1){d=d+-1|0;e=l[f>>0]|0;switch(e|0){case 4:{if(!(k[f+8>>2]|0))o=7;else{j[n>>1]=j[n>>1]&-65;o=7}break}case 14:{r=k[f+-16>>2]|0;c=(r|0)>(c|0)?r:c;break}case 2:case 3:{o=7;break}case 5:case 7:case 9:{k[f+16>>2]=76;i[f+1>>0]=-19;break}case 12:case 13:case 11:{j[n>>1]=j[n>>1]&-193|128;break}case 6:case 8:{k[f+16>>2]=77;i[f+1>>0]=-19;break}case 15:{r=k[f+8>>2]|0;c=(r|0)>(c|0)?r:c;break}case 10:case 1:{r=l[f+3>>0]|0;c=(r|0)>(c|0)?r:c;break}default:{}}if((o|0)==7){o=0;j[n>>1]=j[n>>1]|128}e=i[34168+e>>0]|0;i[f+2>>0]=e;if((e&1)!=0?(h=f+8|0,m=k[h>>2]|0,(m|0)<0):0)k[h>>2]=k[g+(~m<<2)>>2];if((d|0)<=0)break a;else f=f+20|0}}while(0);rg(k[a>>2]|0,k[q>>2]|0);k[q>>2]=0;k[p+108>>2]=0;k[b>>2]=c;return}function Pn(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;f=r;r=r+16|0;if((r|0)>=(s|0))ka();e=f;c=a+73|0;if((i[c>>0]|0)!=4){i[c>>0]=0;d=a+56|0;b=a+48|0;b=Lp(a,k[d>>2]|0,k[b>>2]|0,k[b+4>>2]|0,0,e)|0;if(!b){$c(k[d>>2]|0);k[d>>2]=0;d=a+68|0;b=k[d>>2]|k[e>>2];k[d>>2]=b;if((b|0)!=0?(i[c>>0]|0)==1:0){i[c>>0]=2;b=0}else b=0}}else b=k[a+68>>2]|0;r=f;return b|0}function Qn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=k[a+8>>2]|0;a:do if(!a)a=0;else{d=(b|0)==0;while(1){if((a|0)!=(c|0)){if(d)break;if((k[a+60>>2]|0)==(b|0))break}a=k[a+8>>2]|0;if(!a){a=0;break a}}a=Kl(a,b,c)|0}while(0);return a|0}function Rn(a){a=a|0;var b=0,c=0,d=0,e=0;c=k[a>>2]|0;d=c+1|0;k[a>>2]=d;e=i[c>>0]|0;b=e&255;if((e&255)<=191)return b|0;b=l[15360+(b+-192)>>0]|0;if((i[d>>0]&-64)<<24>>24==-128)while(1){c=c+2|0;k[a>>2]=c;b=(l[d>>0]|0)&63|b<<6;if((i[c>>0]&-64)<<24>>24==-128){e=d;d=c;c=e}else break}return (b>>>0<128|(b&-2048|0)==55296|(b&-2|0)==65534?65533:b)|0}function Sn(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;if((b|0)>-1)f=a+b|0;else f=-1;b=i[a>>0]|0;if(b<<24>>24!=0&f>>>0>a>>>0){c=b;b=0;do{e=a+1|0;if((c&255)>191){d=a;a=e;while(1){c=i[a>>0]|0;if((c&-64)<<24>>24==-128){c=a;a=d+2|0;d=c}else break}}else{c=i[e>>0]|0;a=e}b=b+1|0}while(c<<24>>24!=0&a>>>0<f>>>0)}else b=0;return b|0}function Tn(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0;x=r;r=r+48|0;if((r|0)>=(s|0))ka();t=x+32|0;u=x+16|0;v=x;e=k[a>>2]|0;if((e|0)<0){k[a>>2]=0;k[a+4>>2]=-1;j[a+12>>1]=0;i[a+14>>0]=0;e=0}n=c;l=k[n+4>>2]|0;o=v;k[o>>2]=k[n>>2];k[o+4>>2]=l;o=a+8|0;k[o>>2]=d;l=b&255;n=(b|0)==254;do{h=j[a+(e<<4)+12>>1]|0;d=h&65535;c=37184+(d<<1)|0;a:do if((h&65535)>429)w=6;else{h=l;while(1){g=j[c>>1]|0;f=g<<16>>16;if(g<<16>>16==-86){w=6;break a}g=h&255;e=f+g|0;if(e>>>0<=1496?(i[39336+e>>0]|0)==h<<24>>24:0){w=16;break}if(!(h<<24>>24))break;if((h&255)>=70){p=f;w=12;break}h=i[40840+g>>0]|0;if(!(h<<24>>24)){p=f;w=12;break}}if((w|0)==16){w=0;e=m[22184+(e<<1)>>1]|0;break}if(((w|0)==12?(w=0,q=p+70|0,(q|0)>-1):0)?(i[39336+q>>0]|0)==70:0){e=m[22184+(q<<1)>>1]|0;break}e=m[38048+(d<<1)>>1]|0}while(0);if((w|0)==6){w=0;e=m[38048+(d<<1)>>1]|0}if(e>>>0<642){w=18;break}if(e>>>0>=969){w=20;break}rq(a,e+-642|0);if(n)break;e=k[a>>2]|0}while((e|0)>-1);if((w|0)==18){pq(a,e,b,v);p=a+4|0;k[p>>2]=(k[p>>2]|0)+-1}else if((w|0)==20){k[u+0>>2]=k[v+0>>2];k[u+4>>2]=k[v+4>>2];k[u+8>>2]=k[v+8>>2];p=k[o>>2]|0;k[t>>2]=u;yh(p,20432,t);k[o>>2]=p;qq(a,l,v)}r=x;return}function Un(a){a=a|0;var b=0;b=k[a>>2]|0;if((b|0)>=0){qq(a,i[a+(b<<4)+14>>0]|0,a+(b<<4)+16|0);k[a>>2]=(k[a>>2]|0)+-1}return}function Vn(a,b){a=a|0;b=b|0;var c=0;if(b){if((k[b>>2]|0)>0){c=0;do{Sk(a,k[b+(c<<4)+12>>2]|0);Rk(a,k[b+(c<<4)+16>>2]|0,1);rg(a,k[b+(c<<4)+8>>2]|0);c=c+1|0}while((c|0)<(k[b>>2]|0))}rg(a,b)}return}function Wn(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;g=a+328|0;c=k[g>>2]|0;if(c){h=a+304|0;if((k[h>>2]|0)>0){e=0;do{d=k[c+(e<<2)>>2]|0;c=k[d+8>>2]|0;if((c|0)!=0?(f=k[(k[c>>2]|0)+b>>2]|0,(f|0)!=0):0)qc[f&127](c)|0;k[d+20>>2]=0;Fn(d);e=e+1|0;c=k[g>>2]|0}while((e|0)<(k[h>>2]|0))}rg(a,c);k[h>>2]=0;k[g>>2]=0}return}function Xn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;do if((b|0)==-2)if(!(k[a+12>>2]|0))b=(k[a+16>>2]|0)==0?0:6;else b=6;else{e=j[a>>1]|0;d=e<<16>>16;if(!((d|0)!=(b|0)&e<<16>>16>-1)){e=(d|0)==(b|0)?4:1;d=c&255;b=m[a+2>>1]|0;if((d|0)==(b&3|0)){b=e|2;break}else return ((b&d)>>>1&1)+e|0}else b=0}while(0);return b|0}
10 rh(k[f>>2]|0,20,0)|0;if(!e){j=14;break}f=e+0|0;g=f+16|0;do{i[f>>0]=0;f=f+1|0}while((f|0)<(g|0));k[e>>2]=k[a+16>>2];k[e+4>>2]=b;k[e+16>>2]=k[h>>2];k[h>>2]=e;f=a+25|0;if(!(i[f>>0]|0)){k[a+20>>2]=0;i[f>>0]=1}}k[e+8>>2]=c;k[e+12>>2]=d}while(0);if((j|0)==14?(d|0)!=0:0)hc[d&31](c);return}function be(a){a=a|0;return k[(k[a+8>>2]|0)+12>>2]|0}function ce(a){a=a|0;if(!a)a=0;else a=m[a+84>>1]|0;return a|0}function de(a){a=a|0;if((a|0)!=0?(k[a+20>>2]|0)!=0:0)a=m[a+84>>1]|0;else a=0;return a|0}function ee(a,b){a=a|0;b=b|0;var c=0;b=ud(sh(a,b)|0)|0;if(a){c=a+80|0;a=Tg(k[a>>2]|0,k[c>>2]|0)|0;k[c>>2]=a}return b|0}function fe(a,b){a=a|0;b=b|0;var c=0;b=Yg(sh(a,b)|0,1)|0;if(a){c=a+80|0;a=Tg(k[a>>2]|0,k[c>>2]|0)|0;k[c>>2]=a}return b|0}function ge(a,b){a=a|0;b=b|0;var c=0;b=Yg(sh(a,b)|0,2)|0;if(a){c=a+80|0;a=Tg(k[a>>2]|0,k[c>>2]|0)|0;k[c>>2]=a}return b|0}function he(a,b){a=a|0;b=b|0;var c=0.0;c=+Zg(sh(a,b)|0);if(a){b=a+80|0;a=Tg(k[a>>2]|0,k[b>>2]|0)|0;k[b>>2]=a}return +c}function ie(a,b){a=a|0;b=b|0;var c=0;b=_g(sh(a,b)|0)|0;if(a){c=a+80|0;a=Tg(k[a>>2]|0,k[c>>2]|0)|0;k[c>>2]=a}return b|0}function je(a,b){a=a|0;b=b|0;var c=0,d=0;b=_g(sh(a,b)|0)|0;c=L;if(a){d=a+80|0;a=Tg(k[a>>2]|0,k[d>>2]|0)|0;k[d>>2]=a}L=c;return b|0}function ke(a,b){a=a|0;b=b|0;var c=0;b=Xg(sh(a,b)|0,1)|0;if(a){c=a+80|0;a=Tg(k[a>>2]|0,k[c>>2]|0)|0;k[c>>2]=a}return b|0}function le(a,b){a=a|0;b=b|0;var c=0,d=0;b=sh(a,b)|0;c=b+8|0;d=m[c>>1]|0;if(d&2048)j[c>>1]=d&59391|4096;if(a){c=a+80|0;d=Tg(k[a>>2]|0,k[c>>2]|0)|0;k[c>>2]=d}return b|0}function me(a,b){a=a|0;b=b|0;var c=0;b=Xg(sh(a,b)|0,2)|0;if(a){c=a+80|0;a=Tg(k[a>>2]|0,k[c>>2]|0)|0;k[c>>2]=a}return b|0}function ne(a,b){a=a|0;b=b|0;var c=0;b=(sh(a,b)|0)+8|0;b=l[10064+((m[b>>1]|0)&31)>>0]|0;if(a){c=a+80|0;a=Tg(k[a>>2]|0,k[c>>2]|0)|0;k[c>>2]=a}return b|0}function oe(a,b){a=a|0;b=b|0;var c=0,d=0;d=k[a>>2]|0;if(!a)c=0;else c=m[a+84>>1]|0;if((c|0)>(b|0)&(b|0)>-1){b=Xg((k[a+16>>2]|0)+(b*40|0)|0,1)|0;c=d+65|0;if(i[c>>0]|0){i[c>>0]=0;b=0}}else b=0;return b|0}function pe(a,b){a=a|0;b=b|0;var c=0,d=0;d=k[a>>2]|0;if(!a)c=0;else c=m[a+84>>1]|0;if((c|0)>(b|0)&(b|0)>-1){b=Xg((k[a+16>>2]|0)+(b*40|0)|0,2)|0;c=d+65|0;if(i[c>>0]|0){i[c>>0]=0;b=0}}else b=0;return b|0}function qe(a,b){a=a|0;b=b|0;var c=0,d=0;d=k[a>>2]|0;if(!a)c=0;else c=m[a+84>>1]|0;if((c|0)>(b|0)&(b|0)>-1){b=Xg((k[a+16>>2]|0)+((c+b|0)*40|0)|0,1)|0;c=d+65|0;if(i[c>>0]|0){i[c>>0]=0;b=0}}else b=0;return b|0}function re(a,b){a=a|0;b=b|0;var c=0,d=0;d=k[a>>2]|0;if(!a)c=0;else c=m[a+84>>1]|0;if((c|0)>(b|0)&(b|0)>-1){b=Xg((k[a+16>>2]|0)+((c+b|0)*40|0)|0,2)|0;c=d+65|0;if(i[c>>0]|0){i[c>>0]=0;b=0}}else b=0;return b|0}function se(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return th(a,b,c,d,e,0)|0}function te(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(e>>>0>0|(e|0)==0&d>>>0>2147483647){d=f;if((d|0)==0|(d|0)==-1)d=18;else{hc[f&31](c);d=18}}else d=th(a,b,c,d,f,0)|0;return d|0}function ue(a,b,c){a=a|0;b=b|0;c=+c;var d=0;d=uh(a,b)|0;if(!d)bh((k[a+60>>2]|0)+((b+-1|0)*40|0)|0,c);return d|0}function ve(a,b,c){a=a|0;b=b|0;c=c|0;return we(a,b,c,((c|0)<0)<<31>>31)|0}function we(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=uh(a,b)|0;do if(!e){b=b+-1|0;f=k[a+60>>2]|0;a=f+(b*40|0)|0;b=f+(b*40|0)+8|0;if(!(j[b>>1]&9312)){k[a>>2]=c;k[a+4>>2]=d;j[b>>1]=4;break}else{ch(a,c,d);break}}while(0);return e|0}function xe(a,b){a=a|0;b=b|0;return uh(a,b)|0}function ye(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return th(a,b,c,d,e,1)|0}function ze(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;if(e>>>0>0|(e|0)==0&d>>>0>2147483647){d=f;if((d|0)==0|(d|0)==-1)d=18;else{hc[f&31](c);d=18}}else d=th(a,b,c,d,f,g<<24>>24==4?2:g)|0;return d|0}function Ae(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return th(a,b,c,d,e,2)|0}function Be(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=j[c+8>>1]|0;e=l[10064+(d&31)>>0]|0;do if((e|0)==3)d=th(a,b,k[c+16>>2]|0,k[c+12>>2]|0,-1,i[c+10>>0]|0)|0;else if((e|0)==2)d=ue(a,b,+p[c>>3])|0;else if((e|0)==4)if(!(d&16384)){d=th(a,b,k[c+16>>2]|0,k[c+12>>2]|0,-1,0)|0;break}else{d=Ce(a,b,k[c>>2]|0)|0;break}else if((e|0)==1){d=c;d=we(a,b,k[d>>2]|0,k[d+4>>2]|0)|0}else d=uh(a,b)|0;while(0);return d|0}function Ce(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=uh(a,b)|0;if(!d)eh((k[a+60>>2]|0)+((b+-1|0)*40|0)|0,c);return d|0}function De(a){a=a|0;if(!a)a=0;else a=j[a+68>>1]|0;return a|0}function Ee(a,b){a=a|0;b=b|0;if(!((a|0)==0|(b|0)<1)?(j[a+70>>1]|0)>=(b|0):0)b=k[(k[a+64>>2]|0)+(b+-1<<2)>>2]|0;else b=0;return b|0}function Fe(a,b){a=a|0;b=b|0;var c=0;if(!b)c=0;else{c=b;while(1)if(!(i[c>>0]|0))break;else c=c+1|0;c=c-b&1073741823}return vh(a,b,c)|0}function Ge(a,b){a=a|0;b=b|0;var c=0,d=0;if((j[a+68>>1]|0)==(j[b+68>>1]|0)){d=b+88|0;c=j[d>>1]|0;if((c&256)!=0?(k[b+188>>2]|0)!=0:0)j[d>>1]=c|8;c=a+88|0;d=j[c>>1]|0;if((d&256)!=0?(k[a+188>>2]|0)!=0:0)j[c>>1]=d|8;oh(a,b);c=0}else c=1;return c|0}function He(a){a=a|0;if(!a)a=0;else a=k[a>>2]|0;return a|0}function Ie(a){a=a|0;if(!a)a=1;else a=(m[a+88>>1]|0)>>>6&1;return a|0}function Je(a){a=a|0;if((a|0)!=0?(k[a+76>>2]|0)>-1:0)a=(k[a+40>>2]|0)==-1108210269;else a=0;return a&1|0}function Ke(a,b){a=a|0;b=b|0;if(!b)a=a+4|0;else a=b+52|0;return k[a>>2]|0}function Le(a,b,c){a=a|0;b=b|0;c=c|0;a=a+(b<<2)+108|0;b=k[a>>2]|0;if(c)k[a>>2]=0;return b|0}function Me(a){a=a|0;var b=0,c=0,d=0;c=a+8|0;d=m[c>>1]|0;b=l[10064+(d&31)>>0]|0;if((d&15|0)==2){wh(a,0);b=l[10064+((m[c>>1]|0)&31)>>0]|0}return b|0}function Ne(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var l=0,m=0,n=0,o=0,p=0,q=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;R=r;r=r+16|0;if((r|0)>=(s|0))ka();P=R;Q=R+4|0;k[Q>>2]=0;k[h>>2]=0;K=(g|0)!=0;L=K&1;N=rh(a,28,0)|0;do if(N){g=N+0|0;n=g+28|0;do{i[g>>0]=0;g=g+1|0}while((g|0)<(n|0));n=rh(a,536,0)|0;if(n){H=a+20|0;I=a+16|0;y=a+24|0;g=N+20|0;z=N+12|0;A=N+24|0;B=a+65|0;C=L^3;D=L|2;E=n+440|0;F=n+72|0;G=n+68|0;m=0;J=1;l=0;while(1){kw(n|0,0,536)|0;k[n>>2]=a;rg(a,m);k[Q>>2]=0;m=k[H>>2]|0;if((m|0)>0){o=k[I>>2]|0;q=0;do{p=k[o+(q<<4)+4>>2]|0;if(p)k[(k[p+4>>2]|0)+4>>2]=k[p>>2];q=q+1|0}while((q|0)!=(m|0))}x=xh(n,0,c,b)|0;if(!x)break;m=i[x+44>>0]|0;if(m&16){O=11;break}if(m&32){O=13;break}if(k[x+12>>2]|0){O=17;break}w=x+38|0;t=j[w>>1]|0;a:do if(t<<16>>16>0){q=k[x+4>>2]|0;p=t<<16>>16;m=0;while(1){o=m+1|0;if(!(id(k[q+(m*24|0)>>2]|0,d)|0)){o=m;break a}if((o|0)<(p|0))m=o;else break}}else o=0;while(0);if((o|0)==(t<<16>>16|0)){O=23;break}if(K){if((k[y>>2]&524288|0)!=0?(M=k[x+16>>2]|0,(M|0)!=0):0){u=M;m=0;do{t=k[u+20>>2]|0;if((t|0)>0){q=0;do{m=(k[u+(q<<3)+36>>2]|0)==(o|0)?10280:m;q=q+1|0}while((q|0)<(t|0))}u=k[u+4>>2]|0}while((u|0)!=0)}else m=0;q=k[x+8>>2]|0;if(q)do{p=j[q+46>>1]|0;if(p<<16>>16){v=k[q+4>>2]|0;t=p&65535;u=0;do{m=(j[v+(u<<1)>>1]|0)==(o|0)?10296:m;u=u+1|0}while((u|0)<(t|0))}q=k[q+20>>2]|0}while((q|0)!=0);if(m){O=36;break}}v=Ah(n)|0;k[g>>2]=v;if(v){u=k[x+68>>2]|0;b:do if(u){t=k[H>>2]|0;if((t|0)>0){q=k[I>>2]|0;m=0;while(1){p=m+1|0;if((k[q+(m<<4)+12>>2]|0)==(u|0)){p=m;break b}if((p|0)<(t|0))m=p;else break}}else p=0}else p=-1e6;while(0);m=k[u+4>>2]|0;Ch(v,Bh(v,4,p,L,k[u>>2]|0)|0,m,-14);m=v+4|0;q=k[m>>2]|0;t=v+32|0;if(q)i[q+(((k[t>>2]|0)+-1|0)*20|0)+3>>0]=1;Dh(v,10,10120)|0;q=v+96|0;k[q>>2]=k[q>>2]|1<<p;if((k[t>>2]|0)>>>0>1){u=k[m>>2]|0;k[u+24>>2]=p;q=x+32|0;k[u+28>>2]=k[q>>2];k[(k[m>>2]|0)+32>>2]=L}else q=x+32|0;Ch(v,1,k[x>>2]|0,0);Eh(v,C);if((k[t>>2]|0)>>>0>D>>>0){k[(k[m>>2]|0)+(D*20|0)+8>>2]=k[q>>2];k[(k[m>>2]|0)+(D*20|0)+12>>2]=p}Ch(v,D,(j[w>>1]|0)+1|0,-14);if((k[t>>2]|0)>>>0>6)k[(k[m>>2]|0)+128>>2]=j[w>>1];if(!(i[B>>0]|0)){k[E>>2]=1;k[F>>2]=1;k[G>>2]=1;Fh(v,n)}}k[N>>2]=L;k[z>>2]=o;k[A>>2]=a;if(i[B>>0]|0){O=57;break}we(k[g>>2]|0,1,e,f)|0;l=Gh(N,e,f,Q)|0;if(!((J|0)<50&(l|0)==17)){O=57;break}m=k[Q>>2]|0;J=J+1|0;l=17}if((O|0)==11){k[P>>2]=c;yh(n,10160,P)}else if((O|0)==13){k[P>>2]=c;yh(n,10192,P)}else if((O|0)==17){k[P>>2]=c;yh(n,10232,P)}else if((O|0)==23){rg(a,0);k[P>>2]=d;l=zh(a,10256,P)|0;k[Q>>2]=l;l=1;O=62;break}else if((O|0)==36){rg(a,0);k[P>>2]=m;l=zh(a,10304,P)|0;k[Q>>2]=l;l=1;O=62;break}else if((O|0)==57)if(!l){l=1;m=n;O=58;break}else{m=n;O=61;break}m=n+4|0;if(!(k[m>>2]|0)){l=1;O=62}else{rg(a,0);k[Q>>2]=k[m>>2];k[m>>2]=0;l=1;O=62}}else{l=1;m=n;O=58}}else{l=0;m=0;O=58}while(0);do if((O|0)==58)if(i[a+65>>0]|0)if(l){l=0;O=61;break}else{l=0;O=64;break}else{k[h>>2]=N;l=0;break}while(0);if((O|0)==61){g=N+20|0;n=m;O=62}if((O|0)==62){m=k[g>>2]|0;if(!m){m=n;O=64}else{Sg(m)|0;m=n;O=64}}if((O|0)==64)rg(a,N);H=k[Q>>2]|0;k[P>>2]=H;zg(a,l,(H|0)!=0?10344:0,P);rg(a,H);Hh(m);rg(a,m);H=Tg(a,l)|0;r=R;return H|0}function Oe(a){a=a|0;var b=0,c=0;if(!a)a=0;else{c=k[a+24>>2]|0;b=rd(k[a+20>>2]|0)|0;rg(c,a);a=b}return a|0}function Pe(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Jh(a,b,c,d,18)|0}function Qe(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Jh(a,b,c,d,19)|0}function Re(a){a=a|0;if((a|0)!=0?(k[a+20>>2]|0)!=0:0)a=k[a+4>>2]|0;else a=0;return a|0}function Se(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();d=g;e=g+8|0;if(!a){k[d>>2]=77720;k[d+4>>2]=10788;gd(21,13648,d);b=21}else{f=k[a+24>>2]|0;if(k[a+20>>2]|0){b=Gh(a,b,c,e)|0;if(!b)b=0;else{c=k[e>>2]|0;k[d>>2]=c;zg(f,b,(c|0)!=0?10344:0,d);rg(f,c)}}else b=4;b=Tg(f,b)|0}r=g;return b|0}function Te(a,b,c){a=a|0;b=b|0;c=c|0;k[a+284>>2]=b;k[a+288>>2]=c;a=k[a+4>>2]|0;if(a)do{c=a+88|0;j[c>>1]=j[c>>1]|8;a=k[a+52>>2]|0}while((a|0)!=0);return 0}function Ue(a,b){a=a|0;b=b|0;return (Lh(a,b,10352,0)|0)==0|0}function Ve(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;B=r;r=r+16|0;if((r|0)>=(s|0))ka();g=B;x=B+12|0;y=B+8|0;k[y>>2]=0;do if(Mh(a)|0){f=(b|0)==0?10360:b;z=a+52|0;k[z>>2]=0;A=a+236|0;g=k[A>>2]|0;do if(g){b=g+8|0;if(!(j[b>>1]&9312)){j[b>>1]=1;break}else{Ag(g);break}}while(0);u=(c|0)==0;v=a+24|0;g=0;a:while(1){do{if(g){h=39;break a}if(!(i[f>>0]|0)){g=0;h=39;break a}k[y>>2]=0;g=nh(a,f,-1,1,0,y,x)|0}while((g|0)!=0);f=k[y>>2]|0;if(!f){f=k[x>>2]|0;g=0;continue}t=j[f+84>>1]|0;p=t&65535;q=p<<3|1;t=t<<16>>16==0;b=0;h=0;m=0;b:do{g=Xd(f)|0;do if(!u){n=(g|0)==100;if(!n){if((g|0)!=101|(m|0)!=0)break b;if(!(k[v>>2]&256)){m=0;break}}if(!m){b=rh(a,q,0)|0;if(!b){b=0;h=40;break a}kw(b|0,0,q|0)|0;if(t)o=1;else{m=0;do{o=oe(f,m)|0;k[b+(m<<2)>>2]=o;m=m+1|0}while((m|0)<(p|0));o=1}}else o=m;c:do if(n){h=b+(p<<2)|0;if(!t){m=0;while(1){n=ke(f,m)|0;k[b+(m+p<<2)>>2]=n;if((n|0)==0?(w=k[y>>2]|0,(ne(w,m)|0)!=5):0){g=w;h=27;break a}m=m+1|0;if((m|0)>=(p|0))break c;f=k[y>>2]|0}}}while(0);if(!(uc[c&31](d,p,h,b)|0))m=o;else{f=b;h=31;break a}}while(0);f=k[y>>2]|0}while((g|0)==100);g=Sg(f)|0;k[y>>2]=0;f=k[x>>2]|0;while(1)if(!(i[10368+(l[f>>0]|0)>>0]&1))break;else f=f+1|0;rg(a,b)}do if((h|0)==27){i[a+65>>0]=1;f=g;g=100;h=40}else if((h|0)==31){Sg(k[y>>2]|0)|0;k[y>>2]=0;k[z>>2]=4;g=k[A>>2]|0;if(g){b=g+8|0;if(!(j[b>>1]&9312)){j[b>>1]=1;b=f;g=4;break}else{Ag(g);b=f;g=4;break}}else{b=f;g=4}}else if((h|0)==39){f=k[y>>2]|0;b=0;h=40}while(0);if((h|0)==40)if(f)Sg(f)|0;rg(a,b);f=Tg(a,g)|0;b=(e|0)!=0;if(!((f|0)!=0&b)){if(!b)break;k[e>>2]=0;break}b=Xe(a)|0;if(!b)b=1;else{g=b;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;b=(g-b&1073741823)+1|0}g=vg(b,((b|0)<0)<<31>>31)|0;k[e>>2]=g;if(g){pw(g|0,Xe(a)|0,b|0)|0;break}k[z>>2]=7;f=k[A>>2]|0;if(f){b=f+8|0;if(!(j[b>>1]&9312)){j[b>>1]=1;f=7;break}else{Ag(f);f=7;break}}else f=7}else{k[g>>2]=101334;k[g+4>>2]=10788;gd(21,13648,g);f=21}while(0);r=B;return f|0}function We(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return nh(a,b,c,1,0,d,e)|0}function Xe(a){a=a|0;var b=0,c=0,d=0;c=r;r=r+16|0;if((r|0)>=(s|0))ka();b=c;do if(a){d=k[a+76>>2]|0;if(!((d|0)==1266094736|(d|0)==-1607883113|(d|0)==-264537850)){k[b>>2]=15248;gd(21,15256,b);k[b>>2]=129635;k[b+4>>2]=10788;gd(21,13648,b);b=16120;break}if(!(i[a+65>>0]|0)){b=Xg(k[a+236>>2]|0,1)|0;if(!b){b=k[a+52>>2]|0;if((b|0)!=516){b=b&255;if(b>>>0>26|(b|0)==2)b=16328;else b=k[15488+(b<<2)>>2]|0}else b=16344}}else b=15776}else b=15776;while(0);r=c;return b|0}function Ye(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0;u=r;r=r+16|0;if((r|0)>=(s|0))ka();q=u;t=u+8|0;p=k[a>>2]|0;k[t>>2]=0;j=(b|0)==0;if(j)e=0;else{h=b;while(1)if(!(i[h>>0]|0))break;else h=h+1|0;e=h-b&1073741823}n=e+300|0;m=(d|0)!=0;if(m)k[d>>2]=0;do if(!(k[a+24>>2]&4194304))if(m){e=dd(25216,q)|0;k[d>>2]=e;e=1}else e=1;else{l=(c|0)!=0?c:41192;g=p+40|0;h=wc[k[g>>2]&127](p,b)|0;if(!h){k[q>>2]=b;k[q+4>>2]=41184;f=dd(27824,q)|0;if(!f){e=7;break}h=wc[k[g>>2]&127](p,f)|0;$c(f);if(!h){if(!m){e=1;break}h=Yc(n)|0;k[t>>2]=h;k[d>>2]=h;if(!h){e=1;break}k[q>>2]=b;fd(n,h,41216,q)|0;rc[k[p+44>>2]&63](p,e+299|0,h);e=1;break}else o=h}else o=h;e=p+48|0;h=fc[k[e>>2]&63](p,o,l)|0;if((h|0)==0&(c|0)==0){if(j)h=0;else{h=b;while(1)if(!(i[h>>0]|0))break;else h=h+1|0;h=h-b&1073741823}c=Yc(h+30|0)|0;if(!c){oc[k[p+52>>2]&15](p,o);e=7;break}l=c;j=l;i[j>>0]=115;i[j+1>>0]=113;i[j+2>>0]=108;i[j+3>>0]=105;l=l+4|0;i[l>>0]=116;i[l+1>>0]=101;i[l+2>>0]=51;i[l+3>>0]=95;while(1){g=h+-1|0;if((h|0)<=0)break;if((i[b+g>>0]|0)==47)break;else h=g}f=(Kc(b+h|0,41256,3)|0)==0;g=8;f=f?h+3|0:h;while(1){h=i[b+f>>0]|0;if(h<<24>>24==0|h<<24>>24==46){h=g;break}if(!(i[10368+(h&255)>>0]&2))h=g;else{i[c+g>>0]=i[9328+(h<<24>>24)>>0]|0;h=g+1|0}g=h;f=f+1|0}h=c+h|0;i[h+0>>0]=i[41264]|0;i[h+1>>0]=i[41265]|0;i[h+2>>0]=i[41266]|0;i[h+3>>0]=i[41267]|0;i[h+4>>0]=i[41268]|0;i[h+5>>0]=i[41269]|0;h=fc[k[e>>2]&63](p,o,c)|0;e=c;f=c}else{e=0;f=l}if(!h){if(m){if(!f)h=0;else{h=f;while(1)if(!(i[h>>0]|0))break;else h=h+1|0;h=h-f&1073741823}h=h+n|0;g=Yc(h)|0;k[t>>2]=g;k[d>>2]=g;if(g){k[q>>2]=f;k[q+4>>2]=b;fd(h,g,41272,q)|0;rc[k[p+44>>2]&63](p,h+-1|0,g)}}oc[k[p+52>>2]&15](p,o);$c(e);e=1;break}$c(e);if(fc[h&63](a,t,13776)|0){if(m){k[q>>2]=k[t>>2];n=dd(41320,q)|0;k[d>>2]=n}$c(k[t>>2]|0);oc[k[p+52>>2]&15](p,o);e=1;break}g=a+168|0;e=(k[g>>2]<<2)+4|0;h=rhrh(a,536,0)|0;if(!l)b=7;else{kw(l|0,0,536)|0;f=l+451|0;i[f>>0]=1;k[l>>2]=a;k[l+424>>2]=1;if(((((Qh(l,b,d)|0)==0?(g=k[l+484>>2]|0,(g|0)!=0):0)?(i[a+65>>0]|0)==0:0)?(k[g+12>>2]|0)==0:0)?(i[g+44>>0]&16)==0:0){c=h+4|0;if(!(k[c>>2]|0)){m=g+4|0;k[c>>2]=k[m>>2];g=g+38|0;j[h+38>>1]=j[g>>1]|0;j[g>>1]=0;k[m>>2]=0}k[(k[e>>2]|0)+4>>2]=0;b=0}else{b=k[d>>2]|0;k[m>>2]=b;zg(a,1,(b|0)!=0?10344:0,m);rg(a,b);b=1}i[f>>0]=0;c=k[l+8>>2]|0;if(c)Sg(c)|0;pg(a,k[l+484>>2]|0);Hh(l);rg(a,l)}b=Tg(a,b)|0}else{k[a+52>>2]=21;c=k[a+236>>2]|0;do if(c){b=c+8|0;if(!(j[b>>1]&9312)){j[b>>1]=1;break}else{Ag(c);break}}while(0);k[m>>2]=114865;k[m+4>>2]=10788;gd(21,13648,m);b=21}r=n;return b|0}function jf(a){a=a|0;return l[10640+((l[a+69>>0]|0)+-1)>>0]|0|0}function kf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;g=r;r=r+32|0;if((r|0)>=(s|0))ka();e=g;d=g+8|0;k[d>>2]=c;do if((b|0)==1){b=k[a+324>>2]|0;if(!b){k[e>>2]=115248;k[e+4>>2]=10788;gd(21,13648,e);f=6;break}else{a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;i[(k[b>>2]|0)+16>>0]=c;b=0;break}}else{k[e>>2]=115256;k[e+4>>2]=10788;gd(21,13648,e);f=6}while(0);do if((f|0)==6){k[a+52>>2]=21;b=k[a+236>>2]|0;if(b){c=b+8|0;if(!(j[c>>1]&9312)){j[c>>1]=1;b=21;break}else{Ag(b);b=21;break}}else b=21}while(0);r=g;return b|0}function lf(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=i[a>>0]|0;a:do if(b<<24>>24){e=b;b=0;b:while(1){d=e<<24>>24;switch(d|0){case 45:{if((i[a+1>>0]|0)==45){c=e;while(1){d=c<<24>>24==0;e=a+1|0;if(!(c<<24>>24!=10&(d^1)))break;a=e;c=i[e>>0]|0}if(d){f=13;break b}else c=1}else c=2;break}case 91:{do{a=a+1|0;d=i[a>>0]|0;c=d<<24>>24==0}while(d<<24>>24!=93&(c^1));if(c){b=0;break a}else c=2;break}case 12:case 10:case 9:case 13:case 32:{c=1;break}case 39:case 34:case 96:{do{a=a+1|0;d=i[a>>0]|0;c=d<<24>>24==0}while(d<<24>>24!=e<<24>>24&(c^1));if(c){b=0;break a}else c=2;break}case 47:{if((i[a+1>>0]|0)==42){a=a+2|0;while(1){c=i[a>>0]|0;if(c<<24>>24==42){a=a+1|0;if((i[a>>0]|0)==47){c=1;break}else continue}else if(!(c<<24>>24)){b=0;break a}else{a=a+1|0;continue}}}else c=2;break}case 59:{c=0;break}default:if(!(i[10368+(e&255)>>0]&70))c=2;else{c=1;while(1)if(!(i[10368+(l[a+c>>0]|0)>>0]&70)){e=c;break}else c=c+1|0;c:do switch(d|0){case 67:case 99:{if((e|0)==6?(Kc(a,10712,6)|0)==0:0){c=4;break c}c=2;break}case 84:case 116:{if((e|0)==7){if(!(Kc(a,10720,7)|0)){c=6;break c}}else if((e|0)==4){if(!(Kc(a,10728,4)|0)){c=5;break c}}else if((e|0)==9?(Kc(a,10736,9)|0)==0:0){c=5;break c}c=2;break}case 69:case 101:{if((e|0)==3){if(!(Kc(a,10752,3)|0)){c=7;break c}}else if((e|0)==7?(Kc(a,10760,7)|0)==0:0){c=3;break c}c=2;break}default:c=2}while(0);a=a+(e+-1)|0}}b=i[(c&255)+(10648+((b&255)<<3))>>0]|0;a=a+1|0;e=i[a>>0]|0;if(!(e<<24>>24)){f=35;break}}if((f|0)==13){b=b<<24>>24==1&1;break}else if((f|0)==35){b=b<<24>>24==1;f=36;break}}else{b=0;f=36}while(0);if((f|0)==36)b=b&1;return b|0}function mf(a){a=a|0;var b=0,c=0,d=0;b=Qc()|0;if(!b){c=vg(40,0)|0;if(c){b=c+0|0;d=b+40|0;do{i[b>>0]=0;b=b+1|0}while((b|0)<(d|0));j[c+8>>1]=1;k[c+32>>2]=0;ah(c,a,-1,2,0)|0}b=Xg(c,1)|0;if(!b)b=7;else b=(lf(b)|0)&255;Rh(c)}return b|0}function nf(){return 8632}function of(){return 10768}function pf(){return 3008009}function qf(){return 0}function rf(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=r;r=r+32|0;if((r|0)>=(s|0))ka();c=e;d=e+8|0;if(!(k[2243]|0)){k[d>>2]=b;do switch(a|0){case 5:{if(!(k[2195]|0)){k[c>>2]=16496;rf(4,c)|0}a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[c+0>>2]=k[2195];k[c+4>>2]=k[2196];k[c+8>>2]=k[2197];k[c+12>>2]=k[2198];k[c+16>>2]=k[2199];k[c+20>>2]=k[2200];k[c+24>>2]=k[2201];k[c+28>>2]=k[2202];c=0;break}case 17:{a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[2189]=c;c=0;break}case 20:{a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[2190]=c;c=0;break}case 19:{if(!(k[2214]|0)){k[c>>2]=16440;rf(18,c)|0}a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;c=c+0|0;a=8848|0;d=c+52|0;do{k[c>>2]=k[a>>2];c=c+4|0;a=a+4|0}while((c|0)<(d|0));c=0;break}case 16:{c=k[d>>2]|0;a=k[c>>2]|0;k[d>>2]=c+4;k[2250]=a;a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[2251]=c;c=0;break}case 13:{c=k[d>>2]|0;a=k[c>>2]|0;k[d>>2]=c+4;k[2193]=a;a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[2194]=c;c=0;break}case 7:{a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[2237]=c;c=k[d>>2]|0;a=k[c>>2]|0;k[d>>2]=c+4;k[2238]=a;a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[2239]=c;c=0;break}case 24:{a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[c>>2]=152;c=0;break}case 15:{c=1;break}case 4:{a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[2195]=k[c+0>>2];k[2196]=k[c+4>>2];k[2197]=k[c+8>>2];k[2198]=k[c+12>>2];k[2199]=k[c+16>>2];k[2200]=k[c+20>>2];k[2201]=k[c+24>>2];k[2202]=k[c+28>>2];c=0;break}case 18:{c=k[d>>2]|0;a=k[c>>2]|0;k[d>>2]=c+4;c=8848|0;a=a+0|0;d=c+52|0;do{k[c>>2]=k[a>>2];c=c+4|0;a=a+4|0}while((c|0)<(d|0));c=0;break}case 6:{a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[2234]=c;c=k[d>>2]|0;a=k[c>>2]|0;k[d>>2]=c+4;k[2235]=a;a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[2236]=c;c=0;break}case 9:{a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[2186]=c;c=0;break}case 22:{k[d>>2]=(k[d>>2]|0)+8;k[d>>2]=(k[d>>2]|0)+8;k[2230]=0;k[2231]=0;k[2232]=0;k[2233]=0;c=0;break}case 25:{a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[2242]=c;c=0;break}case 14:{c=0;break}default:c=1}while(0)}else{k[c>>2]=127883;k[c+4>>2]=10788;gd(21,13648,c);c=21}r=e;return c|0}function sf(a){a=a|0;return k[a+12>>2]|0}function tf(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;g=a+20|0;b=k[g>>2]|0;e=(b|0)>0;if(e){d=k[a+16>>2]|0;f=0;do{c=k[d+(f<<4)+4>>2]|0;if(c)k[(k[c+4>>2]|0)+4>>2]=k[c>>2];f=f+1|0}while((f|0)!=(b|0));if(e){e=a+16|0;d=0;do{c=k[(k[e>>2]|0)+(d<<4)+4>>2]|0;if(c){hc[k[8744+152>>2]&31](k[(k[(k[k[c+4>>2]>>2]|0)+204>>2]|0)+40>>2]|0);b=k[g>>2]|0}d=d+1|0}while((d|0)<(b|0))}}return 0}function uf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();f=h;k[f>>2]=c;a:do if((b|0)!=1001){c=0;while(1){if((k[10936+(c<<3)>>2]|0)==(b|0))break;c=c+1|0;if(c>>>0>=2){d=1;break a}}e=k[f>>2]|0;b=k[e>>2]|0;k[f>>2]=e+4;e=k[f>>2]|0;g=k[e>>2]|0;k[f>>2]=e+4;f=a+24|0;e=k[f>>2]|0;if((b|0)<=0)if(!b){b=e&~k[10940+(c<<3)>>2];k[f>>2]=b}else b=e;else{b=k[10940+(c<<3)>>2]|e;k[f>>2]=b}if((e|0)!=(b|0)?(d=k[a+4>>2]|0,(d|0)!=0):0)do{b=d+88|0;j[b>>1]=j[b>>1]|8;d=k[d+52>>2]|0}while((d|0)!=0);if(!g)d=0;else{k[g>>2]=(k[10940+(c<<3)>>2]&k[f>>2]|0)!=0&1;d=0}}else{e=k[f>>2]|0;b=k[e>>2]|0;k[f>>2]=e+4;e=k[f>>2]|0;c=k[e>>2]|0;k[f>>2]=e+4;e=k[f>>2]|0;d=k[e>>2]|0;k[f>>2]=e+4;d=Sh(a,b,c,d)|0}while(0);r=h;return d|0}function vf(a){a=a|0;a=a+32|0;L=k[a+4>>2]|0;return k[a>>2]|0}function wf(a){a=a|0;return k[a+80>>2]|0}function xf(a){a=a|0;return k[a+84>>2]|0}function yf(a){a=a|0;return Th(a,0)|0}function zf(a){a=a|0;return Th(a,1)|0}function Af(a,b,c){a=a|0;b=b|0;c=c|0;k[a+444>>2]=b;k[a+448>>2]=c;k[a+452>>2]=0;k[a+492>>2]=0;return 0}function Bf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=(b|0)>0;k[a+292>>2]=e?c:0;k[a+300>>2]=e?b:0;k[a+296>>2]=e?d:0;return}function Cf(a,b){a=a|0;b=b|0;var c=0;c=(b|0)>0;k[a+444>>2]=c?74:0;k[a+448>>2]=c?a:0;k[a+452>>2]=0;k[a+492>>2]=c?b:0;return 0}function Df(a){a=a|0;k[a+240>>2]=1;return}function Ef(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return Tg(a,Vh(a,b,c,d,e,f,g,h,0)|0)|0}function Ff(a,b,c,d,e,f,g,h,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var l=0,m=0,n=0;do if(j){l=rh(a,12,0)|0;if(!l){hc[j&31](e);d=1;break}m=l;n=m;i[n>>0]=0;i[n+1>>0]=0;i[n+2>>0]=0;i[n+3>>0]=0;m=m+4|0;i[m>>0]=0;i[m+1>>0]=0;i[m+2>>0]=0;i[m+3>>0]=0;k[l+4>>2]=j;k[l+8>>2]=e;d=Vh(a,b,c,d,e,f,g,h,l)|0;if(!(k[l>>2]|0)){hc[j&31](e);rg(a,l)}}else d=Vh(a,b,c,d,e,f,g,h,0)|0;while(0);return Tg(a,d)|0}function Gf(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;b=Wh(a,b,-1)|0;d=Vh(a,b,c,d,e,f,g,h,0)|0;rg(a,b);return Tg(a,d)|0}function Hf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(!b)d=0;else{d=b;while(1)if(!(i[d>>0]|0))break;else d=d+1|0;d=d-b&1073741823}if(!(Xh(a,b,d,c,1,0)|0))d=Vh(a,b,c,1,0,57,0,0,0)|0;else d=0;return Tg(a,d)|0}function If(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=a+180|0;d=k[e>>2]|0;k[a+176>>2]=b;k[e>>2]=c;return d|0}function Jf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=a+188|0;d=k[e>>2]|0;k[a+184>>2]=b;k[e>>2]=c;return d|0}function Kf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=a+192|0;d=k[e>>2]|0;k[a+196>>2]=b;k[e>>2]=c;return d|0}function Lf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=a+208|0;d=k[e>>2]|0;k[a+212>>2]=b;k[e>>2]=c;return d|0}function Mf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=a+200|0;d=k[e>>2]|0;k[a+204>>2]=b;k[e>>2]=c;return d|0}function Nf(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0)c=21;else{b=0;c=0}k[a+216>>2]=c;k[a+220>>2]=b;return 0}function Of(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=a+220|0;d=k[e>>2]|0;k[a+216>>2]=b;k[e>>2]=c;return d|0}function Pf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,l=0;l=r;r=r+16|0;if((r|0)>=(s|0))ka();f=l;if(d)k[d>>2]=-1;if(e)k[e>>2]=-1;if(c>>>0>3)b=21;else{if((b|0)!=0?(i[b>>0]|0)!=0:0){g=_h(a,b)|0;if((g|0)<0){k[f>>2]=b;zg(a,1,10952,f);b=1}else h=10}else{g=10;h=10}do if((h|0)==10){k[a+452>>2]=0;b=$h(a,g,c,d,e)|0;k[a+52>>2]=b;f=k[a+236>>2]|0;if(f){g=f+8|0;if(!(j[g>>1]&9312)){j[g>>1]=1;break}else{Ag(f);break}}}while(0);b=Tg(a,b)|0}r=l;return b|0}function Qf(a,b){a=a|0;b=b|0;return Pf(a,b,0,0,0)|0}function Rf(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();e=g;do if(a){b=k[a+76>>2]|0;if(!((b|0)==1266094736|(b|0)==-1607883113|(b|0)==-264537850)){k[e>>2]=15248;gd(21,15256,e);b=11008;break}f=a+65|0;if(!(i[f>>0]|0)){d=a+236|0;b=Xg(k[d>>2]|0,2)|0;if(!b){c=k[a+52>>2]|0;if((c|0)!=516){b=c&255;if(b>>>0>26|(b|0)==2)b=16328;else b=k[15488+(b<<2)>>2]|0}else b=16344;zg(a,c,b,e);b=Xg(k[d>>2]|0,2)|0}i[f>>0]=0}else b=10976}else b=10976;while(0);r=g;return b|0}function Sf(a){a=a|0;var b=0,c=0,d=0;c=r;r=r+16|0;if((r|0)>=(s|0))ka();b=c;do if(a){d=k[a+76>>2]|0;if(!((d|0)==1266094736|(d|0)==-1607883113|(d|0)==-264537850)){k[b>>2]=15248;gd(21,15256,b);k[b>>2]=129704;k[b+4>>2]=10788;gd(21,13648,b);a=21;break}if(!(i[a+65>>0]|0))a=k[a+56>>2]&k[a+52>>2];else a=7}else a=7;while(0);r=c;return a|0}function Tf(a){a=a|0;var b=0,c=0,d=0;c=r;r=r+16|0;if((r|0)>=(s|0))ka();b=c;do if(a){d=k[a+76>>2]|0;if(!((d|0)==1266094736|(d|0)==-1607883113|(d|0)==-264537850)){k[b>>2]=15248;gd(21,15256,b);k[b>>2]=129713;k[b+4>>2]=10788;gd(21,13648,b);a=21;break}if(!(i[a+65>>0]|0))a=k[a+52>>2]|0;else a=7}else a=7;while(0);r=c;return a|0}function Uf(a){a=a|0;if((a|0)!=516){a=a&255;if(a>>>0>26|(a|0)==2)a=16328;else a=k[15488+(a<<2)>>2]|0}else a=16344;return a|0}function Vf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(b>>>0<=11){d=a+(b<<2)+88|0;a=k[d>>2]|0;if((c|0)>-1){b=k[11088+(b<<2)>>2]|0;k[d>>2]=(b|0)<(c|0)?b:c}}else a=-1;return a|0}function Wf(a,b){a=a|0;b=b|0;return ai(a,b,6,0)|0}function Xf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ai(a,b,c,d)|0}function Yf(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;k[b>>2]=0;c=Qc()|0;if(!c){e=vg(40,0)|0;if(e){a=(a|0)==0?11136:a;c=e+0|0;d=c+40|0;do{i[c>>0]=0;c=c+1|0}while((c|0)<(d|0));j[e+8>>1]=1;k[e+32>>2]=0;ah(e,a,-1,2,0)|0}a=Xg(e,1)|0;if(a){c=ai(a,b,6,0)|0;if(!c){c=k[b>>2]|0;a=k[(k[c+16>>2]|0)+12>>2]|0;if(!(j[a+78>>1]&1)){i[c+62>>0]=2;i[a+77>>0]=2;c=0}else c=0}}else c=7;Rh>24==11&(v^1);g=((w&1)<<1|1)+y+h|0;if((g|0)>70){h=vg(g,((g|0)<0)<<31>>31)|0;if(!h){R=197;break a}else{v=h;x=h}}else{v=V;x=0}if(w){i[v>>0]=z;g=1}else g=0;if((y|0)>0){o=z&255;b=0;do{h=i[j+b>>0]|0;c=g+1|0;i[v+g>>0]=h;if((h<<24>>24|0)==(o|0)){i[v+c>>0]=h;g=g+2|0}else g=c;b=b+1|0}while((b|0)!=(y|0))}if(w){i[v+g>>0]=z;g=g+1|0}i[v+g>>0]=0;h=g;b=I;j=x;break}case 12:{F=k[d>>2]|0;b=k[F>>2]|0;k[d>>2]=F+4;if((b|0)!=0?(U=k[b+4>>2]|0,(U|0)!=0):0){Xk(a,k[b>>2]|0,U);v=c;h=0;b=0;j=0}else{v=c;h=0;b=0;j=0}break}default:break a}while(0);if((R|0)==50){R=0;do if(!(i[H+2>>0]&1)){if(M){c=Yk(f)|0;o=L;B=0;break}if(!(j<<24>>24)){o=k[d>>2]|0;c=k[o>>2]|0;k[d>>2]=o+4;o=0;B=0;break}else{B=k[d>>2]|0;o=B;c=k[o>>2]|0;o=k[o+4>>2]|0;k[d>>2]=B+8;B=0;break}}else{do if(!M)if(!(j<<24>>24)){h=k[d>>2]|0;j=k[h>>2]|0;k[d>>2]=h+4;h=((j|0)<0)<<31>>31;break}else{E=k[d>>2]|0;h=E;j=k[h>>2]|0;h=k[h+4>>2]|0;k[d>>2]=E+8;break}else{j=Yk(f)|0;h=L}while(0);if((h|0)<0){c=iw(0,0,j|0,h|0)|0;o=L;B=45;break}if(!(x<<24>>24)){c=j;o=h;B=v<<24>>24==0?0:32}else{c=j;o=h;B=43}}while(0);A=(c|0)==0&(o|0)==0;if(!(y<<24>>24))x=C;else{x=I-(B<<24>>24!=0&1)|0;x=(C|0)<(x|0)?x:C}if((x|0)>=60){j=x+10|0;h=vg(j,((j|0)<0)<<31>>31)|0;if(!h){R=69;break}else{b=j;j=h;g=h}}else{b=70;j=0;g=V}y=g+(b+-1)|0;if(F<<24>>24==16){h=zw(c|0,o|0,10,0)|0;if(!(h>>>0<=3?(F=yw(c|0,o|0,10,0)|0,F=zw(F|0,L|0,10,0)|0,!((F|0)==1&(L|0)==0)):0))h=0;F=h<<1;i[g+(b+-2)>>0]=i[48896+(F|1)>>0]|0;h=g+(b+-3)|0;i[h>>0]=i[48896+F>>0]|0}else h=y;b=l[H+4>>0]|0;v=l[H+1>>0]|0;while(1){F=zw(c|0,o|0,v|0,0)|0;g=h+-1|0;i[g>>0]=i[48912+(F+b)>>0]|0;c=yw(c|0,o|0,v|0,0)|0;o=L;if((c|0)==0&(o|0)==0)break;else h=g}c=x-y+g|0;if((c|0)>0){b=h;h=g;while(1){g=b+-2|0;i[g>>0]=48;c=c+-1|0;if((c|0)<=0)break;else{b=h;h=g}}}if(B<<24>>24){g=h+-2|0;i[g>>0]=B}if((!(A|z<<24>>24==0)?(S=i[H+5>>0]|0,S<<24>>24!=0):0)?(T=48952+(S&255)|0,!(S<<24>>24==3|S<<24>>24==6)):0){c=i[T>>0]|0;h=T;do{g=g+-1|0;i[g>>0]=c;h=h+1|0;c=i[h>>0]|0}while(c<<24>>24!=0)}v=g;h=y-g|0;b=I}g=b-h|0;c=(g|0)<1;if(!(c|J<<24>>24!=0))_k(a,g,32);Xk(a,v,h);if(!(c|J<<24>>24==0))_k(a,g,32);if(j)$c(j);c=e+1|0;e=v}if((R|0)==10)Xk(a,48744,1);else if((R|0)==69){i[a+25>>0]=1;k[a+16>>2]=0}else if((R|0)==124){i[a+25>>0]=1;k[a+16>>2]=0}else if((R|0)==197){i[a+25>>0]=1;k[a+16>>2]=0}r=Y;return}function yg(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;d=a+8|0;b=k[d>>2]|0;do if(((b|0)!=0?(f=a+12|0,i[b+(k[f>>2]|0)>>0]=0,c=i[a+24>>0]|0,c<<24>>24!=0):0)?(e=a+4|0,(k[d>>2]|0)==(k[e>>2]|0)):0){if(c<<24>>24==1){b=(k[f>>2]|0)+1|0;b=rh(k[a>>2]|0,b,((b|0)<0)<<31>>31)|0}else b=Yc((k[f>>2]|0)+1|0)|0;k[d>>2]=b;if(!b){i[a+25>>0]=1;k[a+16>>2]=0;break}else{pw(b|0,k[e>>2]|0,(k[f>>2]|0)+1|0)|0;break}}while(0);return k[d>>2]|0}function zg(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0;l=r;r=r+16|0;if((r|0)>=(s|0))ka();h=l;e=a+52|0;k[e>>2]=b;a:do if(!c){k[e>>2]=b;b=k[a+236>>2]|0;if(b){e=b+8|0;if(!(j[e>>1]&9312)){j[e>>1]=1;break}else{Ag(b);break}}}else{g=a+236|0;do if(!(k[g>>2]|0)){e=rh(a,40,0)|0;if(!e){k[g>>2]=e;break a}else{b=e+0|0;f=b+40|0;do{i[b>>0]=0;b=b+1|0}while((b|0)<(f|0));j[e+8>>1]=1;k[e+32>>2]=a;k[g>>2]=e;break}}while(0);k[h>>2]=d;e=$k(a,c,h)|0;b=k[g>>2]|0;if(b)ah(b,e,-1,1,75)|0}while(0);r=l;return}function Ag(a){a=a|0;var b=0,c=0;c=a+8|0;b=j[c>>1]|0;if(b&8192){bl(a,k[a>>2]|0)|0;b=j[c>>1]|0}b=b&65535;do if(!(b&1024)){if(b&32){cl(k[a>>2]|0);break}if(b&64){a=k[a>>2]|0;b=(k[a>>2]|0)+180|0;k[a+4>>2]=k[b>>2];k[b>>2]=a}}else hc[k[a+36>>2]&31](k[a+16>>2]|0);while(0);j[c>>1]=1;return}function Bg(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();f=h;d=_h(b,c)|0;do if((d|0)==1){e=rhRhrh(k[d>>2]|0,h,((h|0)<0)<<31>>31)|0;k[b>>2]=d}if(!d){c=a+8|0;if(!(j[c>>1]&9312))j[c>>1]=1;else Ag(a);k[a+16>>2]=0;k[i>>2]=0;c=7;break}b=k[a+32>>2]|0;do if(!b)b=qc[k[8744+48>>2]&127](d)|0;else{if((k[b+276>>2]|0)>>>0<=d>>>0?(k[b+280>>2]|0)>>>0>d>>>0:0){b=m[b+248>>1]|0;break}b=qc[k[8744+48>>2]&127](d)|0}while(0);k[i>>2]=b;o=21}else o=21;while(0);if((o|0)==21){if(((c|0)!=0?(l=k[a+16>>2]|0,(l|0)!=0):0)?(n=k[a+20>>2]|0,(l|0)!=(n|0)):0)pw(n|0,l|0,k[a+12>>2]|0)|0;b=a+8|0;c=j[b>>1]|0;if(!(c&1024))d=a+16|0;else{d=a+16|0;hc[k[a+36>>2]&31](k[d>>2]|0);c=j[b>>1]|0}k[d>>2]=k[a+20>>2];j[b>>1]=c&58367;c=0}return c|0}function kh(a,b){a=a|0;b=b|0;if((k[a+24>>2]|0)<(b|0))a=jh(a,b,0)|0;else{k[a+16>>2]=k[a+20>>2];a=a+8|0;j[a>>1]=(m[a>>1]|0)&13;a=0}return a|0}
11 rh(x,o,L)|0,(o|0)!=0):0){pw(o|0,c|0,e|0)|0;i[o+e>>0]=0}else o=0;Z=k[w+4>>2]|0;k[_>>2]=k[(k[t>>2]|0)+(g<<4)>>2];k[_+4>>2]=q?13184:13208;k[_+8>>2]=v;k[_+12>>2]=Z;k[_+16>>2]=o;Gr($,30008,_);rg(x,o);Ir($,g);k[_>>2]=v;Nr(h,g,zh(x,30072,_)|0);if(!(i[n>>0]|0)){d=0;e=w;break}}e=Nk((k[(k[t>>2]|0)+(g<<4)+12>>2]|0)+40|0,v,w)|0;if(e){i[x+65>>0]=1;d=0;break}d=k[f>>2]|0;if((d|0)==(k[w+24>>2]|0)){d=gn(d+8|0,k[w+4>>2]|0,_)|0;if(!d)d=0;else d=k[d+8>>2]|0;d=d+64|0;k[w+32>>2]=k[d>>2];k[d>>2]=w;d=0}else d=0}else{d=0;e=w}}else e=w;while(0);og(x,e);Kk(x,d);break}case 265:{A=a+(aa+-7<<4)+16|0;z=aa+-6|0;B=a+(z<<4)+16|0;h=k[a+(aa+-5<<4)+16>>2]|0;C=aa+-4|0;y=k[a+(C<<4)+16>>2]|0;C=k[a+(C<<4)+20>>2]|0;D=k[a+(aa+-2<<4)+16>>2]|0;E=k[a+(aa<<4)+16>>2]|0;d=k[a+(aa+-8<<4)+16>>2]|0;F=k[$>>2]|0;w=(k[a+(aa+-10<<4)+16>>2]|0)!=0;do if(w)if(!(k[a+(z<<4)+20>>2]|0)){k[Y>>2]=A;if(!D){n=0;o=0;break}else{q=1;Z=483;break}}else{yh($,29664,_);n=0;o=0;break}else{q=jr($,A,B,Y)|0;if((q|0)>-1&(D|0)!=0)Z=483;else{n=0;o=0}}while(0);do if((Z|0)==483){c=F+65|0;if(!(i[c>>0]|0)){u=F+145|0;if((i[u>>0]|0)!=0&(q|0)!=1){Z=D+12|0;rg(F,k[Z>>2]|0);k[Z>>2]=0}t=Or($,D)|0;if((i[u>>0]|0)==0?((t|0)!=0?(k[a+(z<<4)+20>>2]|0)==0:0):0)q=(k[t+68>>2]|0)==(k[(k[F+16>>2]|0)+28>>2]|0)?1:q;if((i[c>>0]|0)==0?(O=k[Y>>2]|0,Z=k[$>>2]|0,k[X>>2]=$,Z=k[Z+16>>2]|0,k[X+12>>2]=k[Z+(q<<4)>>2],k[X+4>>2]=k[Z+(q<<4)+12>>2],k[X+16>>2]=10720,k[X+20>>2]=O,k[X+8>>2]=(q|0)==1&1,(Pr(X,D)|0)==0):0){u=Or($,D)|0;if(!u){if((i[F+144>>0]|0)!=1){n=0;o=0;break}i[F+146>>0]=1;n=0;o=0;break}if(i[u+44>>0]&16){yh($,29712,_);n=0;o=0;break}o=$q(F,O)|0;if(o)if(!(Qr($,o)|0)){x=F+16|0;Z=gn((k[(k[x>>2]|0)+(q<<4)+12>>2]|0)+40|0,o,P)|0;if((Z|0)!=0?(k[Z+8>>2]|0)!=0:0)if(!d){k[_>>2]=O;yh($,29760,_);n=0;break}else{Fr($,q);n=0;break}v=k[u>>2]|0;if(!(Kc(v,25568,7)|0)){yh($,29792,_);n=$+64|0;k[n>>2]=(k[n>>2]|0)+1;n=0;break}p=k[u+12>>2]|0;if((p|0)!=0&(h|0)!=49){k[_>>2]=(h|0)==35?29872:29880;k[_+4>>2]=D;k[_+8>>2]=0;yh($,29832,_);n=0;break}g=(h|0)==49;if((p|0)==0&g){k[_>>2]=D;k[_+4>>2]=0;yh($,29888,_);n=0;break}f=u+68|0;u=k[f>>2]|0;i:do if(u){t=k[F+20>>2]|0;if((t|0)>0){d=k[x>>2]|0;e=0;while(1){c=e+1|0;if((k[d+(e<<4)+12>>2]|0)==(u|0)){c=e;break i}if((c|0)<(t|0))e=c;else break}}else c=0}else c=-1e6;while(0);u=k[x>>2]|0;d=k[u+(c<<4)>>2]|0;if(w)t=k[u+16>>2]|0;else t=d;u=(c|0)==1;if((Xq($,u|w?5:7,o,v,t)|0)==0?(Xq($,18,u?13184:13208,0,d)|0)==0:0){n=rh(F,36,0)|0;if(!n){n=0;break}v=n+0|0;d=v+36|0;do{i[v>>0]=0;v=v+1|0}while((v|0)<(d|0));k[n>>2]=o;o=ph(F,k[D+16>>2]|0)|0;k[n+4>>2]=o;k[n+20>>2]=k[(k[x>>2]|0)+(q<<4)+12>>2];k[n+24>>2]=k[f>>2];i[n+8>>0]=y;i[n+9>>0]=g|(h|0)==35?1:2;o=Rr(F,E,1,0)|0;k[n+12>>2]=o;o=Sr(F,C)|0;k[n+16>>2]=o;k[$+488>>2]=n;o=0}else n=0}else n=0;else{n=0;o=0}}else{n=0;o=0}}else{n=0;o=0}}while(0);rg(F,o);Io(F,D);Mk(F,C);Lk(F,E);if(!(k[$+488>>2]|0))og(F,n);if(!(k[a+(z<<4)+20>>2]|0)){Z=A;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break a}else{Z=B;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break a}}case 269:case 266:{k[ba>>2]=35;break}case 267:{k[ba>>2]=31;break}case 268:{k[ba>>2]=49;break}case 284:{e=k[$>>2]|0;d=k[a+(aa+-1<<4)+16>>2]|0;c=k[a+(aa<<4)+16>>2]|0;f=i[a+(aa+-5<<4)+16>>0]|0;g=Tr(e,110,a+(aa+-4<<4)+16|0)|0;if(g){$=Ur(e,d,1)|0;k[g+24>>2]=$;$=Rr(e,c,1,0)|0;k[g+20>>2]=$;i[g+1>>0]=f}Sk(e,d);Lk(e,c);k[ba>>2]=g;break}case 271:case 270:{k[ba>>2]=l[a+(aa<<4)+14>>0];k[ba+4>>2]=0;break}case 272:{k[ba>>2]=110;k[ba+4>>2]=k[a+(aa<<4)+16>>2];break}case 296:case 275:{k[ba>>2]=0;break}case 297:case 276:{k[ba>>2]=k[a+(aa<<4)+16>>2];break}case 277:{_=a+(aa+-1<<4)+16|0;$=a+(aa+-2<<4)+16|0;k[(k[(k[$>>2]|0)+36>>2]|0)+32>>2]=k[_>>2];k[(k[$>>2]|0)+36>>2]=k[_>>2];k[ba>>2]=k[$>>2];break}case 278:{$=a+(aa+-1<<4)+16|0;_=k[$>>2]|0;k[_+36>>2]=_;k[ba>>2]=k[$>>2];break}case 282:{yh($,20736,_);break}case 280:{X=a+(aa<<4)+16|0;Y=k[X+4>>2]|0;Z=ba;k[Z>>2]=k[X>>2];k[Z+4>>2]=Y;yh($,20640,_);break}case 283:{yh($,20824,_);break}case 286:{c=k[$>>2]|0;d=k[a+(aa<<4)+16>>2]|0;e=Tr(c,109,a+(aa+-2<<4)+16|0)|0;if(e){$=Rr(c,d,1,0)|0;k[e+20>>2]=$;i[e+1>>0]=10}Lk(c,d);k[ba>>2]=e;break}case 287:{e=k[$>>2]|0;g=k[a+(aa<<4)+16>>2]|0;c=rh(e,40,0)|0;if(!c){Rk(e,g,1);c=0}else{v=c+0|0;d=v+40|0;do{i[v>>0]=0;v=v+1|0}while((v|0)<(d|0));i[c>>0]=119;k[c+8>>2]=g;i[c+1>>0]=10}k[ba>>2]=c;break}case 285:{g=k[$>>2]|0;f=k[a+(aa+-1<<4)+16>>2]|0;e=k[a+(aa<<4)+16>>2]|0;d=i[a+(aa+-4<<4)+16>>0]|0;c=Tr(g,108,a+(aa+-2<<4)+16|0)|0;if(!c)Mk(g,f);else{$=lr(g,e,1)|0;k[c+8>>2]=$;k[c+28>>2]=f;i[c+1>>0]=d}Rk(g,e,1);k[ba>>2]=c;break}case 288:{c=cr($,57,0,0,0)|0;k[ba>>2]=c;if(c)i[c+1>>0]=4;k[ba+4>>2]=k[a+(aa+-3<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 289:{c=cr($,57,0,0,a+(aa+-1<<4)+16|0)|0;k[ba>>2]=c;if(c)i[c+1>>0]=k[a+(aa+-3<<4)+16>>2];k[ba+4>>2]=k[a+(aa+-5<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 290:{k[ba>>2]=1;break}case 292:{k[ba>>2]=3;break}case 293:{d=k[a+(aa<<4)+16>>2]|0;c=k[a+(aa+-1<<4)+16>>2]|0;t=k[$>>2]|0;do if((i[t+65>>0]|0)==0?(Ln($)|0)==0:0){u=k[d+12>>2]|0;q=k[d+16>>2]|0;p=t+20|0;if((k[p>>2]|0)>0){g=(u|0)==0;f=t+16|0;e=0;n=0;do{h=(e|0)<2^e;o=k[f>>2]|0;if(!(!g?(id(k[o+(h<<4)>>2]|0,u)|0)!=0:0)){o=gn((k[o+(h<<4)+12>>2]|0)+40|0,q,H)|0;if(o){n=k[o+8>>2]|0;if(n)break}else n=0}e=e+1|0}while((e|0)<(k[p>>2]|0));if(n){Vr($,n);break}}if(!c){k[_>>2]=d;k[_+4>>2]=0;yh($,29600,_)}else Er($,u);i[$+17>>0]=1}while(0);Io(t,d);break}case 294:{_=k[a+(aa+-3<<4)+16>>2]|0;Wr($,24,29360,_,_,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0);break}case 303:{Yr($,a+(aa+-1<<4)+16|0,a+(aa<<4)+16|0);break}case 304:{w=k[a+(aa+-3<<4)+16>>2]|0;u=a+(aa<<4)+16|0;v=k[$>>2]|0;d=v+24|0;e=k[d>>2]|0;do if((i[v+65>>0]|0)==0?(U=Zr($,0,w+8|0)|0,(U|0)!=0):0){o=k[$>>2]|0;x=U+68|0;q=k[x>>2]|0;j:do if(q){p=k[o+20>>2]|0;if((p|0)>0){o=k[o+16>>2]|0;h=0;while(1){n=h+1|0;if((k[o+(h<<4)+12>>2]|0)==(q|0)){n=h;break j}if((n|0)<(p|0))h=n;else break}}else n=0}else n=-1e6;while(0);c=k[(k[v+16>>2]|0)+(n<<4)>>2]|0;k[d>>2]=k[d>>2]|2097152;g=$q(v,u)|0;if(g){if((di(v,g,c)|0)==0?(gq(v,g,c)|0)==0:0){if(_r($,k[U>>2]|0)|0)break;if(Qr($,g)|0)break;o=k[U>>2]|0;if(k[U+12>>2]|0){k[_>>2]=o;yh($,26088,_);break}if(Xq($,26,c,o,0)|0)break;if(mr($,U)|0)break;if(!(i[U+44>>0]&16))f=0;else{o=k[U+60>>2]|0;k:do if(!o)o=0;else while(1){if((k[o>>2]|0)==(v|0))break k;o=k[o+24>>2]|0;if(!o){o=0;break}}while(0);f=(k[(k[k[o+8>>2]>>2]|0)+76>>2]|0)==0?0:o}o=Tq($)|0;if(!o)break;Z=(f|0)!=0;h=$+408|0;Y=k[h>>2]|0;Y=(Y|0)==0?$:Y;Fr($,n);X=Y+328|0;k[X>>2]=k[X>>2]|1<<n;Y=Y+20|0;i[Y>>0]=l[Y>>0]|Z&1;Ir($,n);if(Z){Y=$+72|0;Z=(k[Y>>2]|0)+1|0;k[Y>>2]=Z;Ch(o,Bh(o,97,0,Z,0)|0,g,0);Ch(o,Bh(o,152,Z,0,0)|0,f,-10);Z=k[h>>2]|0;i[((Z|0)==0?$:Z)+21>>0]=1}u=k[U>>2]|0;t=Sn(u,-1)|0;do if((k[d>>2]&524288|0)!=0?(Q=gn((k[x>>2]|0)+56|0,u,S)|0,(Q|0)!=0):0){o=k[Q+8>>2]|0;if(!o)break;h=o;o=0;do{o=$r(k[$>>2]|0,o,k[k[h>>2]>>2]|0)|0;h=k[h+12>>2]|0}while((h|0)!=0);if(!o)break;k[_>>2]=c;k[_+4>>2]=(n|0)==1?13184:13208;k[_+8>>2]=u;k[_+12>>2]=g;k[_+16>>2]=o;Gr($,26120,_);rg(v,o)}while(0);k[_>>2]=c;k[_+4>>2]=(n|0)==1?13184:13208;k[_+8>>2]=g;k[_+12>>2]=g;k[_+16>>2]=g;k[_+20>>2]=g;k[_+24>>2]=g;k[_+28>>2]=t;k[_+32>>2]=u;Gr($,26192,_);if(di(v,26576,c)|0){Z=k[U>>2]|0;k[_>>2]=c;k[_+4>>2]=g;k[_+8>>2]=Z;Gr($,26592,_)}n=as($,U)|0;if(n){k[_>>2]=g;k[_+4>>2]=g;k[_+8>>2]=n;Gr($,26656,_);rg(v,n)}do if(k[d>>2]&524288){n=gn((k[x>>2]|0)+56|0,k[U>>2]|0,_)|0;if(!n)break;n=k[n+8>>2]|0;if(!n)break;do{h=k[n>>2]|0;if((h|0)!=(U|0))bs($,h,k[h>>2]|0);n=k[n+12>>2]|0}while((n|0)!=0)}while(0);bs($,U,g);break}k[_>>2]=g;yh($,26024,_)}else g=0}else g=0;while(0);Io(v,w);rg(v,g);k[d>>2]=e;break}case 295:{_=k[a+(aa<<4)+16>>2]|0;Wr($,25,29176,_,0,0,_);break}case 300:{Xr($,0,0);break}case 302:{Yr($,0,0);break}case 301:{Xr($,a+(aa+-1<<4)+16|0,a+(aa<<4)+16|0);break}case 305:{v=k[$>>2]|0;if((k[$+64>>2]|0)==0?(I=v+65|0,(i[I>>0]|0)==0):0){e=k[$+484>>2]|0;o=k[e+68>>2]|0;l:do if(o){n=k[v+20>>2]|0;if((n|0)>0){h=k[v+16>>2]|0;f=0;while(1){g=f+1|0;if((k[h+(f<<4)+12>>2]|0)==(o|0)){x=f;break l}if((g|0)<(n|0))f=g;else{x=g;break}}}else x=0}else x=-1e6;while(0);c=k[(k[v+16>>2]|0)+(x<<4)>>2]|0;d=(k[e>>2]|0)+16|0;p=(j[e+38>>1]|0)+-1|0;n=k[e+4>>2]|0;o=k[n+(p*24|0)+4>>2]|0;w=di(v,d,c)|0;if(!(Xq($,26,c,k[w>>2]|0,0)|0)){if(!o)q=0;else q=(i[o>>0]|0)==101?0:o;if(i[n+(p*24|0)+23>>0]&1){yh($,25608,_);break a}if(k[e+8>>2]|0){yh($,25640,_);break a}u=v+24|0;if((k[u>>2]&524288|0)!=0?(k[e+16>>2]|0)!=0&(q|0)!=0:0){yh($,25672,_);break a}t=(q|0)!=0;if(!((i[n+(p*24|0)+20>>0]|0)==0|t)){yh($,25736,_);break a}do if(t){k[K>>2]=0;if(cs(v,q,1,65,K)|0){i[I>>0]=1;break a}o=k[K>>2]|0;if(!o){yh($,25792,_);break a}else{Rh(o);break}}while(0);o=k[a+(aa<<4)+16>>2]|0;n=a+(aa<<4)+20|0;h=k[n>>2]|0;if((o|0)!=0?(R=ow(h|0,0,1,0)|0,R=rh(v,R,L)|0,(R|0)!=0):0){pw(R|0,o|0,h|0)|0;i[R+h>>0]=0;o=(k[n>>2]|0)+-1|0;n=k[u>>2]|0;m:do if((o|0)>0){o=R+o|0;do{Y=i[o>>0]|0;if(Y<<24>>24!=59?(i[10368+(Y&255)>>0]&1)==0:0)break m;i[o>>0]=0;o=o+-1|0}while(o>>>0>R>>>0)}while(0);k[u>>2]=k[u>>2]|2097152;Y=k[e+48>>2]|0;k[_>>2]=c;k[_+4>>2]=(x|0)==1?13184:13208;k[_+8>>2]=Y;k[_+12>>2]=R;k[_+16>>2]=Y+1;k[_+20>>2]=d;Gr($,25840,_);rg(v,R);k[u>>2]=n}o=t?3:2;q=Tq($)|0;if(q){n=$+19|0;g=i[n>>0]|0;do if(g<<24>>24){_=g+-1<<24>>24;i[n>>0]=_;h=k[$+((_&255)<<2)+24>>2]|0;if(!(_<<24>>24)){n=k[$+72>>2]|0;Z=663;break}else{d=g+-2<<24>>24;i[n>>0]=d;d=k[$+((d&255)<<2)+24>>2]|0;break}}else{h=$+72|0;n=(k[h>>2]|0)+1|0;k[h>>2]=n;h=n;Z=663}while(0);if((Z|0)==663){d=n+1|0;k[$+72>>2]=d}Bh(q,51,x,h,2)|0;f=q+96|0;k[f>>2]=k[f>>2]|1<<x;Bh(q,25,o,d,0)|0;f=Bh(q,83,d,0,h)|0;e=q+4|0;g=k[e>>2]|0;n=q+32|0;if(g)i[g+(((k[n>>2]|0)+-1|0)*20|0)+3>>0]=-112;Bh(q,52,x,2,d)|0;n=k[n>>2]|0;if(n>>>0>f>>>0)k[(k[e>>2]|0)+(f*20|0)+8>>2]=n;k[(k[q+24>>2]|0)+88>>2]=n+-1;ds($,h);ds($,d)}bs($,w,k[w>>2]|0)}}break}case 306:{t=k[$>>2]|0;i[t+250>>0]=0;c=k[a+(aa<<4)+16>>2]|0;u=t+65|0;do if((i[u>>0]|0)==0?(N=Zr($,0,c+8|0)|0,(N|0)!=0):0){if(i[N+44>>0]&16){yh($,25400,_);break}if(k[N+12>>2]|0){yh($,25440,_);break}if(!(_r($,k[N>>2]|0)|0)){n=k[N+68>>2]|0;n:do if(n){h=k[t+20>>2]|0;if((h|0)>0){g=k[t+16>>2]|0;o=0;while(1){f=o+1|0;if((k[g+(o<<4)+12>>2]|0)==(n|0)){f=o;break n}if((f|0)<(h|0))o=f;else break}}else f=0}else f=-1e6;while(0);q=rh(t,76,0)|0;if(q){v=q+0|0;d=v+76|0;do{i[v>>0]=0;v=v+1|0}while((v|0)<(d|0));k[$+484>>2]=q;h=q+40|0;j[h>>1]=1;o=j[N+38>>1]|0;g=q+38|0;j[g>>1]=o;o=((((o<<16>>16)+-1|0)/8|0)*192|0)+192|0;n=rhrh(T,n,L)|0,(n|0)!=0):0){pw(n|0,w|0,x|0)|0;i[n+x>>0]=0}else n=0;k[(k[g>>2]|0)+(h<<2)>>2]=n}}else{Y=$+440|0;Z=(k[Y>>2]|0)+1|0;k[Y>>2]=Z;j[M+32>>1]=Z}while(0);if((k[$+64>>2]|0)==0?(k[$+440>>2]|0)>(k[T+124>>2]|0):0)yh($,33344,_)}while(0);$=k[u>>2]|0;k[ba+4>>2]=$;k[ba+8>>2]=$+(k[t>>2]|0);break}case 196:{_=a+(aa+-3<<4)+16|0;$=Br($,0,_)|0;k[ba>>2]=$;k[ba+4>>2]=k[_>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 197:{_=a+(aa<<4)+16|0;$=Br($,0,_)|0;k[ba>>2]=$;$=k[_>>2]|0;k[ba+4>>2]=$;k[ba+8>>2]=$+(k[a+(aa<<4)+20>>2]|0);break}case 193:{Z=aa+-2|0;_=a+(aa<<4)+16|0;$=Ar($,k[a+(Z<<4)+16>>2]|0,_,1)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(Z<<4)+20>>2];k[ba+8>>2]=(k[_>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 194:{$=cr($,38,k[a+(aa+-3<<4)+16>>2]|0,0,a+(aa+-1<<4)+16|0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(aa+-5<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 195:{e=a+(aa+-1<<4)+16|0;c=k[e>>2]|0;if(c){if((k[c>>2]|0)>(k[(k[$>>2]|0)+112>>2]|0)){k[_>>2]=a+(aa+-4<<4)+16;yh($,20576,_);c=k[e>>2]|0}}else c=0;_=a+(aa+-4<<4)+16|0;c=Br($,c,_)|0;k[ba>>2]=c;k[ba+4>>2]=k[_>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);if(!((c|0)==0?1:(j[a+(aa+-2<<4)+16>>1]|0)==0)){$=c+4|0;k[$>>2]=k[$>>2]|16}break}case 205:case 204:case 203:case 202:case 201:case 200:case 199:case 198:{_=aa+-2|0;$=cr($,l[a+(aa+-1<<4)+14>>0]|0,k[a+(_<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(_<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 206:{Z=a+(aa<<4)+16|0;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;k[ba+8>>2]=0;break}case 207:{Z=a+(aa<<4)+16|0;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;k[ba+8>>2]=1;break}case 208:{e=aa+-2|0;_=aa+-1|0;c=Br($,qr($,qr($,0,k[a+(aa<<4)+16>>2]|0)|0,k[a+(e<<4)+16>>2]|0)|0,a+(_<<4)+16|0)|0;k[ba>>2]=c;if(k[a+(_<<4)+24>>2]|0){c=cr($,19,c,0,0)|0;k[ba>>2]=c}k[ba+4>>2]=k[a+(e<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];if(c){$=c+4|0;k[$>>2]=k[$>>2]|128}break}case 210:{_=aa+-1|0;$=cr($,l[a+(aa<<4)+14>>0]|0,k[a+(_<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(_<<4)+20>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 209:{e=aa+-4|0;_=aa+-3|0;c=Br($,qr($,qr($,qr($,0,k[a+(aa+-2<<4)+16>>2]|0)|0,k[a+(e<<4)+16>>2]|0)|0,k[a+(aa<<4)+16>>2]|0)|0,a+(_<<4)+16|0)|0;k[ba>>2]=c;if(k[a+(_<<4)+24>>2]|0){c=cr($,19,c,0,0)|0;k[ba>>2]=c}k[ba+4>>2]=k[a+(e<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];if(c){$=c+4|0;k[$>>2]=k[$>>2]|128}break}case 223:{e=a+(aa+-1<<4)+16|0;c=k[e>>2]|0;do if(c){if((k[c>>2]|0)==1){_=k[c+4>>2]|0;c=k[_>>2]|0;k[_>>2]=0;Sk(k[$>>2]|0,k[e>>2]|0);if(c){_=c+4|0;k[_>>2]=k[_>>2]&-769|512}$=cr($,(k[a+(aa+-3<<4)+16>>2]|0)!=0?78:79,k[a+(aa+-4<<4)+16>>2]|0,c,0)|0;k[ba>>2]=$;break}c=cr($,75,k[a+(aa+-4<<4)+16>>2]|0,0,0)|0;k[ba>>2]=c;if(!c){Sk(k[$>>2]|0,k[e>>2]|0);c=0}else{k[c+20>>2]=k[e>>2];c=k[ba>>2]|0;Dr($,c)}if(k[a+(aa+-3<<4)+16>>2]|0){$=cr($,19,c,0,0)|0;k[ba>>2]=$}}else{_=cr($,132,0,0,20616+(k[a+(aa+-3<<4)+16>>2]<<3)|0)|0;k[ba>>2]=_;Lk(k[$>>2]|0,k[a+(aa+-4<<4)+16>>2]|0)}while(0);k[ba+4>>2]=k[a+(aa+-4<<4)+20>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 211:{_=aa+-2|0;$=cr($,77,k[a+(_<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(_<<4)+20>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 212:{Y=aa+-2|0;Z=a+(aa<<4)+16|0;_=cr($,73,k[a+(Y<<4)+16>>2]|0,k[Z>>2]|0,0)|0;k[ba>>2]=_;k[ba+4>>2]=k[a+(Y<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];Cr($,k[Z>>2]|0,_,76);break}case 213:{Y=aa+-3|0;Z=a+(aa<<4)+16|0;_=cr($,148,k[a+(Y<<4)+16>>2]|0,k[Z>>2]|0,0)|0;k[ba>>2]=_;k[ba+4>>2]=k[a+(Y<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];Cr($,k[Z>>2]|0,_,77);break}case 215:case 214:{_=aa+-1|0;$=cr($,l[a+(_<<4)+14>>0]|0,k[a+(aa<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(_<<4)+16>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 216:{$=cr($,157,k[a+(aa<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(aa+-1<<4)+16>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 217:{$=cr($,158,k[a+(aa<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(aa+-1<<4)+16>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 220:{d=qr($,qr($,0,k[a+(aa+-2<<4)+16>>2]|0)|0,k[a+(aa<<4)+16>>2]|0)|0;e=aa+-4|0;c=cr($,74,k[a+(e<<4)+16>>2]|0,0,0)|0;k[ba>>2]=c;if(!c)Sk(k[$>>2]|0,d);else k[c+20>>2]=d;if(k[a+(aa+-3<<4)+16>>2]|0){$=cr($,19,k[ba>>2]|0,0,0)|0;k[ba>>2]=$}k[ba+4>>2]=k[a+(e<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 224:{c=cr($,119,0,0,0)|0;k[ba>>2]=c;if(!c)Rk(k[$>>2]|0,k[a+(aa+-1<<4)+16>>2]|0,1);else{k[c+20>>2]=k[a+(aa+-1<<4)+16>>2];_=k[ba>>2]|0;Z=_+4|0;k[Z>>2]=k[Z>>2]|2099200;Dr($,_)}k[ba+4>>2]=k[a+(aa+-2<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 118:{$=pr($,k[a+(aa+-6<<4)+16>>2]|0,k[a+(aa+-5<<4)+16>>2]|0,k[a+(aa+-4<<4)+16>>2]|0,k[a+(aa+-3<<4)+16>>2]|0,k[a+(aa+-2<<4)+16>>2]|0,k[a+(aa+-1<<4)+16>>2]|0,j[a+(aa+-7<<4)+16>>1]|0,k[a+(aa<<4)+16>>2]|0,k[a+(aa<<4)+20>>2]|0)|0;k[ba>>2]=$;break}case 120:{$=pr($,k[a+(aa+-1<<4)+16>>2]|0,0,0,0,0,0,128,0,0)|0;k[ba>>2]=$;break}case 121:{c=pr($,k[a+(aa+-1<<4)+16>>2]|0,0,0,0,0,0,128,0,0)|0;if(!c){k[ba>>2]=k[a+(aa+-4<<4)+16>>2];break a}else{i[c+4>>0]=116;k[c+52>>2]=k[a+(aa+-4<<4)+16>>2];k[ba>>2]=c;break a}}case 122:{j[ba>>1]=1;break}case 124:case 123:{j[ba>>1]=0;break}case 243:case 125:{k[ba>>2]=k[a+(aa+-1<<4)+16>>2];break}case 242:case 236:case 161:case 154:case 126:{k[ba>>2]=0;break}case 127:{e=aa+-1|0;g=qr($,k[a+(aa+-2<<4)+16>>2]|0,k[a+(e<<4)+16>>2]|0)|0;k[ba>>2]=g;if(k[a+(aa<<4)+20>>2]|0)rr($,g,a+(aa<<4)+16|0,1);n=k[$>>2]|0;if(g){h=(k[g+4>>2]|0)+(((k[g>>2]|0)+-1|0)*20|0)+8|0;rg(n,k[h>>2]|0);f=k[a+(e<<4)+20>>2]|0;g=(k[a+(e<<4)+24>>2]|0)-f|0;if((f|0)!=0?(c=ow(g|0,((g|0)<0)<<31>>31|0,1,0)|0,c=rh(n,c,L)|0,(c|0)!=0):0){pw(c|0,f|0,g|0)|0;i[c+g>>0]=0}else c=0;k[h>>2]=c}break}case 133:{e=rhrh(u,76,0)|0;if(!m){i[u+65>>0]=1;k[a+12>>2]=7;q=a+64|0;k[q>>2]=(k[q>>2]|0)+1;break}h=m+0|0;d=h+76|0;do{i[h>>0]=0;h=h+1|0}while((h|0)<(d|0));k[m>>2]=n;j[m+36>>1]=-1;h=k[(k[q>>2]|0)+(t<<4)+12>>2]|0;k[m+68>>2]=h;j[m+40>>1]=1;j[m+28>>1]=200;k[a+484>>2]=m;if((i[a+18>>0]|0)==0?(dw(n,26576)|0)==0:0)k[h+72>>2]=m;if(i[u+145>>0]|0)break a;c=Tq(a)|0;if(!c)break a;q=k[a+408>>2]|0;Fr(a,t);h=1<<t;q=((q|0)==0?a:q)+328|0;k[q>>2]=k[q>>2]|h;if(o)Bh(c,146,0,0,0)|0;m=a+72|0;b=k[m>>2]|0;n=b+1|0;k[a+384>>2]=n;o=b+2|0;k[a+388>>2]=o;b=b+3|0;k[m>>2]=b;Bh(c,51,t,b,2)|0;m=c+96|0;k[m>>2]=k[m>>2]|h;m=Bh(c,45,b,0,0)|0;Bh(c,25,(k[u+24>>2]&32768|0)!=0?1:4,b,0)|0;Bh(c,52,t,2,b)|0;Bh(c,25,l[u+62>>0]|0,b,0)|0;Bh(c,52,t,5,b)|0;d=c+32|0;h=k[d>>2]|0;if(h>>>0>m>>>0)k[(k[c+4>>2]|0)+(m*20|0)+8>>2]=h;k[(k[c+24>>2]|0)+88>>2]=h+-1;if(!(f|e)){q=Bh(c,121,t,o,0)|0;k[a+416>>2]=q}else Bh(c,25,0,o,0)|0;os(a,t);Bh(c,74,0,n,0)|0;Bh(c,28,0,b,0)|0;Bh(c,75,0,b,n)|0;h=k[c+4>>2]|0;if(h)i[h+(((k[d>>2]|0)+-1|0)*20|0)+3>>0]=8;Bh(c,61,0,0,0)|0;break a}while(0);rg(u,n)}}while(0);r=v;return}function _q(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,n=0,o=0,p=0,q=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=r;r=r+176|0;if((r|0)>=(s|0))ka();J=O+80|0;G=O+168|0;D=O;E=O+136|0;F=O+112|0;K=k[a>>2]|0;a:do if((!((c|0)==0&(e|0)==0)?(L=K+65|0,(i[L>>0]|0)==0):0)?(M=a+484|0,N=k[M>>2]|0,(N|0)!=0):0){I=K+145|0;if(i[I>>0]|0)k[N+32>>2]=k[K+140>>2];b:do if(d&32){n=N+44|0;h=l[n>>0]|0;if(h&8){yh(a,36584,J);break a}if(!(h&4)){k[J>>2]=k[N>>2];yh(a,36640,J);break}i[n>>0]=h|32;o=k[a+8>>2]|0;n=k[a+416>>2]|0;if(n){if((n|0)<0)n=(k[o+32>>2]|0)+-1|0;if(!(i[(k[o>>2]|0)+65>>0]|0))n=(k[o+4>>2]|0)+(n*20|0)|0;else n=29120;i[n>>0]=120}n=k[a+420>>2]|0;if(n){if((n|0)<0)n=(k[o+32>>2]|0)+-1|0;if(!(i[(k[o>>2]|0)+65>>0]|0))h=(k[o+4>>2]|0)+(n*20|0)|0;else h=29120;i[h>>0]=16}h=N+36|0;if((j[h>>1]|0)>-1){n=qr(a,0,0)|0;if(!n)break;z=ph(k[a>>2]|0,k[(k[N+4>>2]|0)+((j[h>>1]|0)*24|0)>>2]|0)|0;A=k[n+4>>2]|0;k[A+4>>2]=z;i[A+12>>0]=i[a+448>>0]|0;n=er(a,0,0,0,n,l[N+45>>0]|0,0,0,0,0)|0;if(!n)break;u=n+51|0;i[u>>0]=i[u>>0]&-4|2;j[h>>1]=-1;u=j[n+46>>1]|0}else{n=k[N+8>>2]|0;c:do if(!n)n=0;else while(1){if((i[n+51>>0]&3)==2)break c;n=k[n+20>>2]|0;if(!n){n=0;break}}while(0);v=n+46|0;o=j[v>>1]|0;if((o&65535)>1){t=k[n+4>>2]|0;q=n+48|0;u=1;h=1;do{f=j[t+(u<<1)>>1]|0;p=h;g=t;while(1){if((p|0)<=0){C=36;break}if((j[g>>1]|0)==f<<16>>16){C=35;break}else{p=p+-1|0;g=g+2|0}}if((C|0)==35){C=0;j[q>>1]=(j[q>>1]|0)+-1<<16>>16}else if((C|0)==36){C=0;j[t+(h<<1)>>1]=f;o=j[v>>1]|0;h=h+1|0}u=u+1|0}while((u|0)<(o&65535|0))}else h=1;u=h&65535;j[v>>1]=u}p=n+51|0;o=i[p>>0]|32;i[p>>0]=o;A=u&65535;if(!(i[K+147>>0]|0)){if(u<<16>>16){o=k[n+4>>2]|0;h=k[N+4>>2]|0;g=0;do{i[h+((j[o+(g<<1)>>1]|0)*24|0)+20>>0]=1;g=g+1|0}while((g|0)<(A|0));o=i[p>>0]|0}i[p>>0]=o|8}k[n+40>>2]=k[N+32>>2];p=k[N+8>>2]|0;if(p){x=u<<16>>16==0;y=n+4|0;z=n+32|0;do{d:do if((i[p+51>>0]&3)!=2){do if(x)o=j[p+46>>1]|0;else{q=k[p+4>>2]|0;o=j[p+46>>1]|0;g=o&65535;f=k[y>>2]|0;w=0;h=0;do{t=j[f+(w<<1)>>1]|0;v=g;u=q;while(1){if((v|0)<=0){u=1;break}if((j[u>>1]|0)==t<<16>>16){u=0;break}else{v=v+-1|0;u=u+2|0}}h=u+h|0;w=w+1|0}while((w|0)<(A|0));g=p+46|0;if(!h)break;if(ps(K,p,(o&65535)+h|0)|0)break b;if(x)break d;t=j[g>>1]|0;w=p+4|0;f=p+32|0;v=t;u=0;t=t&65535;while(1){o=k[w>>2]|0;h=j[(k[y>>2]|0)+(u<<1)>>1]|0;v=v&65535;q=o;while(1){if((v|0)<=0){C=63;break}if((j[q>>1]|0)==h<<16>>16)break;else{v=v+-1|0;q=q+2|0}}if((C|0)==63){C=0;j[o+(t<<1)>>1]=h;k[(k[f>>2]|0)+(t<<2)>>2]=k[(k[z>>2]|0)+(u<<2)>>2];t=t+1|0}u=u+1|0;if((u|0)>=(A|0))break d;v=j[g>>1]|0}}while(0);j[p+48>>1]=o}while(0);p=k[p+20>>2]|0}while((p|0)!=0)}v=N+38|0;o=j[v>>1]|0;h=o<<16>>16;if((A|0)>=(h|0)){j[n+48>>1]=o;break}if((ps(K,n,h)|0)==0?(B=j[v>>1]|0,B<<16>>16>0):0){q=n+4|0;u=n+32|0;o=B;t=0;n=A;do{g=k[q>>2]|0;p=n;h=g;while(1){if((p|0)<=0){C=74;break}if((j[h>>1]|0)==(t|0))break;else{p=p+-1|0;h=h+2|0}}if((C|0)==74){C=0;j[g+(n<<1)>>1]=t;k[(k[u>>2]|0)+(n<<2)>>2]=11152;o=j[v>>1]|0;n=n+1|0}t=t+1|0}while((t|0)<(o<<16>>16|0))}}while(0);C=N+68|0;n=k[C>>2]|0;e:do if(n){h=k[K+20>>2]|0;if((h|0)>0){g=k[K+16>>2]|0;o=0;while(1){f=o+1|0;if((k[g+(o<<4)+12>>2]|0)==(n|0))break e;if((f|0)<(h|0))o=f;else{o=f;break}}}else o=0}else o=-1e6;while(0);g=k[N+24>>2]|0;f:do if(g){k[E+0>>2]=0;k[E+4>>2]=0;k[E+8>>2]=0;k[E+12>>2]=0;k[E+16>>2]=0;k[E+20>>2]=0;k[E+24>>2]=0;k[E+28>>2]=0;n=D+0|0;h=n+80|0;do{k[n>>2]=0;n=n+4|0}while((n|0)<(h|0));k[D>>2]=1;k[D+16>>2]=k[N>>2];k[D+24>>2]=N;k[D+48>>2]=-1;k[E>>2]=a;k[E+4>>2]=D;j[E+28>>1]=4;n=g+4|0;if((k[g>>2]|0)>0){h=0;do{if(qs(E,k[(k[n>>2]|0)+(h*20|0)>>2]|0)|0)break f;h=h+1|0}while((h|0)<(k[g>>2]|0))}}while(0);A=N+38|0;f=j[A>>1]|0;if(f<<16>>16>0){n=f<<16>>16;h=k[N+4>>2]|0;g=0;while(1){g=(l[h+22>>0]|0)+g|0;n=n+-1|0;if((n|0)<=0)break;else h=h+24|0}}else g=0;g=ks(((m[N+36>>1]|0)>>>15&65535)+g<<2,0)|0;j[N+42>>1]=g;g=k[N+8>>2]|0;if(g)do{rs(g);g=k[g+20>>2]|0}while((g|0)!=0);if(!(i[I>>0]|0)){B=Tq(a)|0;if(!B)break;Bh(B,61,0,0,0)|0;y=(k[N+12>>2]|0)==0;h=y?36672:36680;y=y?31232:35480;do if(!e){g=d<<24>>24==0?c:a+504|0;e=k[g>>2]|0;n=k[a+496>>2]|0;f=e-n|0;if((i[e>>0]|0)!=59)f=(k[g+4>>2]|0)+f|0;k[J>>2]=h;k[J+4>>2]=f;k[J+8>>2]=n;n=a+388|0;f=N;h=zh(K,36688,J)|0}else{n=a+388|0;Bh(B,55,1,k[n>>2]|0,o)|0;h=k[B+4>>2]|0;if(h)i[h+(((k[B+32>>2]|0)+-1|0)*20|0)+3>>0]=4;k[a+68>>2]=2;i[F>>0]=14;k[F+4>>2]=1;i[F+1>>0]=0;k[F+8>>2]=0;k[F+12>>2]=0;nr(a,e,F)|0;Bh(B,61,1,0,0)|0;if(!(k[a+64>>2]|0)){f=ss(a,e)|0;if(!f)break a;F=f+38|0;j[A>>1]=j[F>>1]|0;e=f+4|0;k[N+4>>2]=k[e>>2];j[F>>1]=0;k[e>>2]=0;pg(K,f)}z=N+4|0;w=j[A>>1]|0;if(w<<16>>16>0){q=w<<16>>16;t=0;h=0;u=k[z>>2]|0;while(1){f=k[u>>2]|0;g=0;while(1){p=i[f>>0]|0;if(p<<24>>24==34)g=g+1|0;else if(!(p<<24>>24))break;f=f+1|0;g=g+1|0}h=h+7+g|0;t=t+1|0;if((t|0)==(q|0))break;else u=u+24|0}p=h+2|0}else p=2;f=k[N>>2]|0;h=0;while(1){g=i[f>>0]|0;if(!(g<<24>>24))break;else if(g<<24>>24==34)h=h+1|0;f=f+1|0;h=h+1|0}u=h+p|0;x=(u|0)<50;p=x?10360:36880;v=x?20240:36888;x=x?33952:36896;u=((w<<16>>16)*6|0)+35+u|0;h=vg(u,((u|0)<0)<<31>>31)|0;if(!h){i[L>>0]=1;f=N;h=0;break}fd(u,h,36904,J)|0;g=h;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;k[G>>2]=g-h&1073741823;ts(h,G,k[N>>2]|0);f=k[G>>2]|0;q=f+1|0;k[G>>2]=q;i[h+f>>0]=40;f=u-q|0;g=h+q|0;if((j[A>>1]|0)>0){w=0;t=k[z>>2]|0;while(1){fd(f,g,p,J)|0;g=h+q|0;if(!g)g=0;else{p=g;while(1)if(!(i[p>>0]|0))break;else p=p+1|0;g=p-g&1073741823}k[G>>2]=g+q;ts(h,G,k[t>>2]|0);g=k[36920+((i[t+21>>0]|0)+-65<<2)>>2]|0;p=g;while(1)if(!(i[p>>0]|0))break;else p=p+1|0;q=p-g&1073741823;p=k[G>>2]|0;pw(h+p|0,g|0,q|0)|0;q=p+q|0;k[G>>2]=q;p=w+1|0;f=u-q|0;g=h+q|0;if((p|0)<(j[A>>1]|0)){w=p;t=t+24|0;p=v}else break}}k[J>>2]=x;fd(f,g,10344,J)|0;f=N}while(0);g=K+16|0;d=k[f>>2]|0;F=k[n>>2]|0;e=k[a+384>>2]|0;k[J>>2]=k[(k[g>>2]|0)+(o<<4)>>2];k[J+4>>2]=(o|0)==1?13184:13208;k[J+8>>2]=y;k[J+12>>2]=d;k[J+16>>2]=d;k[J+20>>2]=F;k[J+24>>2]=h;k[J+28>>2]=e;Gr(a,36704,J);rg(K,h);Ir(a,o);if((i[N+44>>0]&8)!=0?(H=k[g>>2]|0,(k[(k[H+(o<<4)+12>>2]|0)+72>>2]|0)==0):0){k[J>>2]=k[H+(o<<4)>>2];Gr(a,36792,J)}k[J>>2]=k[f>>2];Nr(B,o,zh(K,36840,J)|0);if(!(i[I>>0]|0))break}else f=N;if(Nk((k[C>>2]|0)+8|0,k[f>>2]|0,N)|0){i[L>>0]=1;break}k[M>>2]=0;e=K+24|0;k[e>>2]=k[e>>2]|2;if(!(k[N+12>>2]|0)){e=k[a+496>>2]|0;e=(Sn(e,(k[((k[b>>2]|0)==0?c:b)>>2]|0)-e|0)|0)+13|0;k[N+48>>2]=e}}while(0);r=O;return}function $q(a,b){a=a|0;b=b|0;var c=0,d=0;if(!b)c=0;else{d=k[b>>2]|0;b=k[b+4>>2]|0;if((d|0)!=0?(c=ow(b|0,0,1,0)|0,c=rh(a,c,L)|0,(c|0)!=0):0){pw(c|0,d|0,b|0)|0;i[c+b>>0]=0}else c=0;qo(c)}return c|0}function ar(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,m=0;j=r;r=r+16|0;if((r|0)>=(s|0))ka();h=j;a:do if(a){d=i[a>>0]|0;b:do if(!(d<<24>>24)){c=67;d=0}else{f=d;c=67;e=0;d=0;do{e=l[9328+(f&255)>>0]|0|e<<8;a=a+1|0;if((e|0)==1651273570)if(c<<24>>24==69|c<<24>>24==67){m=i[a>>0]|0;f=m;c=65;e=1651273570;d=m<<24>>24==40?a:d}else g=14;else if((e|0)==1718382433)if(c<<24>>24==67){c=69;e=1718382433;g=5}else g=13;else if((e|0)==1667785074){c=66;e=1667785074;d=a;g=5}else if((e|0)==1952807028){c=66;g=5}else if((e|0)==1685026146)if(c<<24>>24==67){c=69;e=1685026146;g=5}else g=13;else if((e|0)==1919246700)if(c<<24>>24==67){c=69;e=1919246700;g=5}else g=14;else if((e|0)!=1668050786)if((e&16777215|0)==6909556){c=68;break b}else g=5;else{c=66;g=5}if((g|0)==13)g=5;else if((g|0)==14)g=5;if((g|0)==5){g=0;f=i[a>>0]|0}}while(f<<24>>24!=0)}while(0);if((b|0)!=0?(i[b>>0]=1,c<<24>>24<67):0){if(!d){i[b>>0]=5;break}a=i[d>>0]|0;if(a<<24>>24){while(1){if(((a&255)+-48|0)>>>0<10)break;d=d+1|0;a=i[d>>0]|0;if(!(a<<24>>24))break a}k[h>>2]=0;In(d,h)|0;d=((k[h>>2]|0)/4|0)+1|0;d=(d|0)>255?255:d;k[h>>2]=d;i[b>>0]=d}}}else c=67;while(0);r=j;return c|0}function br(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0;m=r;r=r+32|0;if((r|0)>=(s|0))ka();g=m;h=k[a>>2]|0;e=k[a+484>>2]|0;do if(e){d=(j[e+38>>1]|0)+-1|0;f=k[e+4>>2]|0;n=k[b>>2]|0;o=(l[h+145>>0]|0)+4|0;k[g+0>>2]=0;k[g+4>>2]=0;k[g+8>>2]=0;k[g+12>>2]=0;k[g+16>>2]=0;k[g+20>>2]=0;e=g+20|0;i[e>>0]=o;k[g>>2]=78;k[g+4>>2]=79;k[g+24>>2]=0;ws(g,n)|0;if(!(i[e>>0]|0)){k[g>>2]=k[f+(d*24|0)>>2];yh(a,36480,g);break}e=f+(d*24|0)+4|0;Lk(h,k[e>>2]|0);n=Rr(h,k[b>>2]|0,1,0)|0;k[e>>2]=n;f=f+(d*24|0)+8|0;rg(h,k[f>>2]|0);d=k[b+4>>2]|0;e=(k[b+8>>2]|0)-d|0;if((d|0)!=0?(c=ow(e|0,((e|0)<0)<<31>>31|0,1,0)|0,c=rhrh(B,h,((h|0)<0)<<31>>31)|0;if(f){kw(f|0,0,h|0)|0;k[f>>2]=A;x=A+16|0;k[f+4>>2]=k[x>>2];u=f+36|0;l=u+(y<<3)|0;v=f+8|0;k[v>>2]=l;pw(l|0,k[c>>2]|0,k[n>>2]|0)|0;i[l+(k[n>>2]|0)>>0]=0;qo(l);l=l+((k[n>>2]|0)+1)|0;k[f+20>>2]=y;b:do if(!w){if((y|0)>0){h=A+4|0;c=b+4|0;m=j[A+38>>1]|0;g=0;while(1){c:do if(m<<16>>16>0){q=k[h>>2]|0;p=k[(k[c>>2]|0)+(g*20|0)+4>>2]|0;o=0;while(1){n=o+1|0;if(!(id(k[q+(o*24|0)>>2]|0,p)|0)){n=o;break}if((n|0)<(m<<16>>16|0))o=n;else break c}k[u+(g<<3)>>2]=n}else n=0;while(0);if((n|0)>=(m<<16>>16|0))break;g=g+1|0;if((g|0)>=(y|0))break b}k[z>>2]=k[(k[c>>2]|0)+(g*20|0)+4>>2];yh(a,35872,z);break a}}else k[u>>2]=(j[A+38>>1]|0)+-1;while(0);if(t&(y|0)>0){m=d+4|0;n=0;while(1){h=k[(k[m>>2]|0)+(n*20|0)+4>>2]|0;if(!h)g=0;else{g=h;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;g=g-h&1073741823}k[u+(n<<3)+4>>2]=l;pw(l|0,h|0,g|0)|0;i[l+g>>0]=0;n=n+1|0;if((n|0)==(y|0))break;else l=l+(g+1)|0}}i[f+24>>0]=0;i[f+25>>0]=e;i[f+26>>0]=e>>>8;g=Nk((k[A+68>>2]|0)+56|0,k[v>>2]|0,f)|0;if((g|0)==(f|0)){i[B+65>>0]=1;break}if(g){k[f+12>>2]=g;k[g+16>>2]=f}k[x>>2]=f;f=0}else f=0}else f=0;while(0);rg(B,f);Sk(B,b);Sk(B,d);r=C;return}function hr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=k[a>>2]|0;d=i[c+62>>0]|0;e=i[c+145>>0]|0;c=bo(c,d,b,e&255)|0;do if(!(e<<24>>24)){if((c|0)!=0?(k[c+12>>2]|0)!=0:0)break;c=Bs(a,d,c,b)|0}while(0);return c|0}function ir(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0;y=r;r=r+16|0;if((r|0)>=(s|0))ka();w=y;q=y+12|0;x=k[a>>2]|0;do if(!(i[x+65>>0]|0)){d=(d|0)!=0;if(d){p=x+68|0;i[p>>0]=(i[p>>0]|0)+1<<24>>24;v=Zr(a,c,b+8|0)|0;i[p>>0]=(i[p>>0]|0)+-1<<24>>24}else v=Zr(a,c,b+8|0)|0;if(!v){if(!d)break;Er(a,k[b+12>>2]|0);break}n=v+68|0;f=k[n>>2]|0;a:do if(f){d=k[x+20>>2]|0;if((d|0)>0){e=k[x+16>>2]|0;h=0;while(1){g=h+1|0;if((k[e+(h<<4)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(d|0))h=g;else break}}else g=0}else g=-1e6;while(0);t=v+44|0;if((i[t>>0]&16)!=0?(mr(a,v)|0)!=0:0)break;h=(g|0)==1;u=h?13184:13208;d=k[(k[x+16>>2]|0)+(g<<4)>>2]|0;if(!(Xq(a,9,u,0,d)|0)){e=(c|0)!=0;do if(e){f=h?15:17;h=0}else{if(!(i[t>>0]&16)){f=h?13:11;h=0;break}h=v+60|0;while(1){h=k[h>>2]|0;if((k[h>>2]|0)==(x|0))break;else h=h+24|0}f=30;h=k[(k[h+4>>2]|0)+4>>2]|0}while(0);if((Xq(a,f,k[v>>2]|0,h,d)|0)==0?(Xq(a,9,k[v>>2]|0,0,d)|0)==0:0){h=k[v>>2]|0;if((Kc(h,25568,7)|0)==0?(Kc(h,35488,11)|0)!=0:0){k[w>>2]=h;yh(a,35504,w);break}d=v+12|0;f=(k[d>>2]|0)==0;if(e){if(f){k[w>>2]=h;yh(a,35536,w);break}}else if(!f){k[w>>2]=h;yh(a,35576,w);break}if(Tq(a)|0){o=a+408|0;f=k[o>>2]|0;f=(f|0)==0?a:f;Fr(a,g);p=1<<g;e=f+328|0;k[e>>2]=k[e>>2]|p;f=f+20|0;i[f>>0]=l[f>>0]|1;Hr(a,g,28544,k[v>>2]|0);f=k[a>>2]|0;e=f+24|0;b:do if(((k[e>>2]&524288|0)!=0?(i[t>>0]&16)==0:0)?(k[d>>2]|0)==0:0){m=Tq(a)|0;q=gn((k[n>>2]|0)+56|0,k[v>>2]|0,q)|0;if((q|0)!=0?(k[q+8>>2]|0)!=0:0)h=0;else{h=k[v+16>>2]|0;if(!h)break;while(1){if(i[h+24>>0]|0)break;if(k[e>>2]&16777216)break;h=k[h+4>>2]|0;if(!h)break b}h=Cs(m)|0;Bh(m,135,1,h,0)|0}q=a+438|0;i[q>>0]=1;wr(a,Ds(f,b,0)|0,0);i[q>>0]=0;if(!(k[e>>2]&16777216)){Bh(m,135,0,(k[m+32>>2]|0)+2|0,0)|0;Es(a,787,2,0,-2,4)}if(h){f=k[m+24>>2]|0;d=~h;do if((h|0)<0){h=k[f+112>>2]|0;if(!h)break;k[h+(d<<2)>>2]=k[m+32>>2]}while(0);k[f+88>>2]=(k[m+32>>2]|0)+-1}}while(0);m=k[a>>2]|0;n=m+16|0;f=k[n>>2]|0;d=Tq(a)|0;q=k[o>>2]|0;q=(q|0)==0?a:q;Fr(a,g);o=q+328|0;k[o>>2]=k[o>>2]|p;q=q+20|0;i[q>>0]=l[q>>0]|1;if(i[t>>0]&16)Bh(d,146,0,0,0)|0;h=Fs(a,v)|0;if(h)do{Vr(a,h);h=k[h+32>>2]|0}while((h|0)!=0);f=f+(g<<4)|0;if(i[t>>0]&8){q=k[v>>2]|0;k[w>>2]=k[f>>2];k[w+4>>2]=q;Gr(a,35608,w)}q=k[v>>2]|0;k[w>>2]=k[f>>2];k[w+4>>2]=u;k[w+8>>2]=q;Gr(a,35656,w);if((c|0)==0?(i[t>>0]&16)==0:0)Gs(a,v);if(i[t>>0]&16){q=k[v>>2]|0;Ch(d,Bh(d,148,g,0,0)|0,q,0)}e=k[v>>2]|0;Ch(d,Bh(d,124,g,0,0)|0,e,0);Ir(a,g);d=k[(k[n>>2]|0)+(g<<4)+12>>2]|0;e=j[d+78>>1]|0;if(e&2){f=k[d+16>>2]|0;if(f){e=f;do{d=k[e+8>>2]|0;if(k[d+12>>2]|0){Qk(m,d);k[d+4>>2]=0;j[d+38>>1]=0}e=k[e>>2]|0}while((e|0)!=0);e=k[(k[n>>2]|0)+(g<<4)+12>>2]|0;d=e;e=j[e+78>>1]|0}j[d+78>>1]=e&65533}}}}}while(0);Io(x,b);r=y;return}function jr(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();f=h;e=k[a>>2]|0;do if((c|0)!=0?(k[c+4>>2]|0)!=0:0){if(i[e+145>>0]|0){yh(a,28488,f);c=a+64|0;k[c>>2]=(k[c>>2]|0)+1;c=-1;break}k[d>>2]=c;d=$q(e,b)|0;c=_h(e,d)|0;rg(e,d);if((c|0)<0){k[f>>2]=b;yh(a,28512,f);c=a+64|0;k[c>>2]=(k[c>>2]|0)+1;c=-1}}else g=7;while(0);if((g|0)==7){c=l[e+144>>0]|0;k[d>>2]=b}r=h;return c|0}function kr(a,b){a=a|0;b=b|0;a:do if(!b)b=0;else while(1){if(Mr(a,k[b>>2]|0)|0){b=1;break a}if(Pr(a,k[b+32>>2]|0)|0){b=1;break a}if(Lr(a,k[b+36>>2]|0)|0){b=1;break a}if(Mr(a,k[b+40>>2]|0)|0){b=1;break a}if(Lr(a,k[b+44>>2]|0)|0){b=1;break a}if(Mr(a,k[b+48>>2]|0)|0){b=1;break a}if(Lr(a,k[b+60>>2]|0)|0){b=1;break a}if(Lr(a,k[b+64>>2]|0)|0){b=1;break a}b=k[b+52>>2]|0;if(!b){b=0;break}}while(0);return b|0}function lr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;if((b|0)!=0?(d=rh(a,72,0)|0,(d|0)!=0):0){f=Ur(a,k[b>>2]|0,c)|0;k[d>>2]=f;f=Ds(a,k[b+32>>2]|0,c)|0;k[d+32>>2]=f;f=Rr(a,k[b+36>>2]|0,c,0)|0;k[d+36>>2]=f;f=Ur(a,k[b+40>>2]|0,c)|0;k[d+40>>2]=f;f=Rr(a,k[b+44>>2]|0,c,0)|0;k[d+44>>2]=f;f=Ur(a,k[b+48>>2]|0,c)|0;k[d+48>>2]=f;i[d+4>>0]=i[b+4>>0]|0;f=lr(a,k[b+52>>2]|0,c)|0;k[d+52>>2]=f;if(f)k[f+56>>2]=d;k[d+56>>2]=0;h=Rr(a,k[b+60>>2]|0,c,0)|0;k[d+60>>2]=h;h=Rr(a,k[b+64>>2]|0,c,0)|0;k[d+64>>2]=h;k[d+8>>2]=0;k[d+12>>2]=0;j[d+6>>1]=(m[b+6>>1]|0)&65527;k[d+16>>2]=-1;k[d+20>>2]=-1;h=b+24|0;f=k[h+4>>2]|0;c=d+24|0;k[c>>2]=k[h>>2];k[c+4>>2]=f;c=k[b+68>>2]|0;if((c|0)!=0?(g=k[c>>2]<<4|8,e=rh
12 o{if(u)Bh(ta,47,v,f,f+n|0)|0;else{i[va>>0]=1;Wq(a,k[(k[e>>2]|0)+(f*20|0)>>2]|0,f+n|0)}f=f+1|0;d=k[t>>2]|0}while((f|0)<(d|0))}if(D)k[D>>2]=(k[D>>2]|0)+1;Ch(ta,Bh(ta,42,h,n,d)|0,D,-6);d=k[x>>2]|0;ba=d+1|0;Bh(ta,43,ba,0,ba)|0;t=k[t>>2]|0;Bh(k[a+8>>2]|0,32,n,h,t)|0;it(a,n,t);Bh(ta,17,J,H,0)|0;Bh(ta,137,F,P,0)|0;Bh(ta,17,N,K,0)|0;t=k[x>>2]|0;if(t>>>0>d>>>0)k[(k[ta+4>>2]|0)+(d*20|0)+8>>2]=t;h=ta+24|0;k[(k[h>>2]|0)+88>>2]=t+-1;jt(a,va);Bh(ta,25,1,I,0)|0;if(u)Bh(ta,5,k[q>>2]|0,g,0)|0;else{at(o);Eh(ta,p)}Bh(ta,17,J,H,0)|0;Bh(ta,16,0,P,0)|0;f=k[x>>2]|0;Bh(ta,25,1,F,0)|0;Bh(ta,18,J,0,0)|0;d=k[h>>2]|0;e=~H;do if((H|0)<0){t=k[d+112>>2]|0;if(!t)break;k[t+(e<<2)>>2]=k[x>>2]}while(0);q=k[x>>2]|0;k[d+88>>2]=q+-1;Bh(ta,137,I,q+2|0,0)|0;Bh(ta,18,J,0,0)|0;kt(a,va);q=q+1|0;lt(a,ca,q,16);Us(a,b,k[b>>2]|0,-1,sa,ra,c,q,f);Bh(ta,18,J,0,0)|0;q=k[h>>2]|0;p=~K;do if((K|0)<0){o=k[q+112>>2]|0;if(!o)break;k[o+(p<<2)>>2]=k[x>>2]}while(0);k[q+88>>2]=(k[x>>2]|0)+-1;mt(a,va);Bh(ta,18,N,0,0)|0}else{do if(!(k[D>>2]|0)){p=k[b>>2]|0;if((k[p>>2]|0)!=1){wa=372;break}q=k[ja>>2]|0;if((k[q>>2]|0)!=1){wa=372;break}if(k[q+28>>2]|0){wa=372;break}x=k[q+24>>2]|0;q=k[k[p+4>>2]>>2]|0;w=x+44|0;if(i[w>>0]&16){wa=372;break}if((i[q>>0]|0)!=-101|(d|0)==0){wa=372;break}v=va+40|0;if(!(j[(k[(k[v>>2]|0)+4>>2]|0)+2>>1]&256)){wa=372;break}if((x|0)==0?1:(k[q+4>>2]&16|0)!=0){wa=372;break}q=k[a>>2]|0;d=k[x+68>>2]|0;i:do if(!d)p=-1e6;else{e=k[q+20>>2]|0;if((e|0)<=0){p=0;break}q=k[q+16>>2]|0;t=0;while(1){p=t+1|0;if((k[q+(t<<4)+12>>2]|0)==(d|0)){p=t;break i}if((p|0)<(e|0))t=p;else break}}while(0);t=a+68|0;g=k[t>>2]|0;k[t>>2]=g+1;t=x+32|0;d=k[t>>2]|0;Fr(a,p);ls(a,p,k[t>>2]|0,0,k[x>>2]|0);t=k[x+8>>2]|0;j:do if(!(i[w>>0]&32)){q=0;wa=351}else{if(!t){e=1;f=0;t=0;break}else q=t;while(1){if((i[q+51>>0]&3)==2){wa=351;break j}q=k[q+20>>2]|0;if(!q){q=0;wa=351;break}}}while(0);do if((wa|0)==351){if(t){f=x+42|0;e=t;do{do if(!(i[e+51>>0]&4)){t=j[e+44>>1]|0;if(t<<16>>16>=(j[f>>1]|0))break;if(k[e+36>>2]|0)break;if((q|0)!=0?t<<16>>16>=(j[q+44>>1]|0):0)break;q=e}while(0);e=k[e+20>>2]|0}while((e|0)!=0)}if(!q){e=1;f=0;t=0;break}d=k[q+40>>2]|0;e=0;f=q;t=ms(a,q)|0}while(0);Ch(ta,Bh(ta,54,g,d,p)|0,1,-14);if(t)Ch(ta,-1,t,-6);Bh(ta,50,g,k[(k[v>>2]|0)+8>>2]|0,0)|0;Bh(ta,61,g,0,0)|0;if((i[a+450>>0]|0)!=2){o=0;break}do if(e){q=k[x>>2]|0;p=10360;n=10360;o=k[a>>2]|0}else{if(i[w>>0]&32){ba=(i[f+51>>0]&3)!=2;o=k[a>>2]|0;q=k[x>>2]|0;p=ba?34920:10360;if(!ba){n=10360;break}}else{p=34920;q=k[x>>2]|0;o=k[a>>2]|0}n=k[f>>2]|0}while(0);k[oa>>2]=q;k[oa+4>>2]=p;k[oa+8>>2]=n;o=zh(o,34896,oa)|0;ba=k[a+8>>2]|0;Ch(ba,Bh(ba,157,k[xa>>2]|0,0,0)|0,o,-1);o=0}else wa=372;while(0);if((wa|0)==372){do if((k[E>>2]|0)==0&(d|0)==1){o=k[k[va+40>>2]>>2]|0;q=k[o+20>>2]|0;if(!q){o=0;n=0;break}if((k[q>>2]|0)!=1){o=0;n=0;break}if((i[k[k[q+4>>2]>>2]>>0]|0)!=-100){o=0;n=0;break}o=k[o+8>>2]|0;if(id(o,18760)|0)if(!(id(o,18768)|0))n=2;else{o=0;n=0;break}else n=1;o=Ur(ua,q,0)|0;if(!o){o=0;break}if(i[ma>>0]|0)break;ba=k[o+4>>2]|0;i[ba+12>>0]=n<<24>>24!=1&1;i[k[ba>>2]>>0]=-102}else{o=0;n=0}while(0);mt(a,va);n=_s(a,R,y,o,0,n&255,0)|0;if(!n){Sk(ua,o);wa=444;break}jt(a,va);if((i[n+36>>0]|0)>0)Bh(ta,16,0,k[n+52>>2]|0,0)|0;at(n);kt(a,va)}k[sa>>2]=0;lt(a,ca,P,16);Us(a,b,k[b>>2]|0,-1,0,0,c,P,P);Sk(ua,o);h=ta+24|0}o=k[h>>2]|0;n=~P;do if((P|0)<0){h=k[o+112>>2]|0;if(!h)break;k[h+(n<<2)>>2]=k[ta+32>>2]}while(0);k[o+88>>2]=(k[ta+32>>2]|0)+-1}if((i[ra+1>>0]|0)==3)et(a,34808);if(k[sa>>2]|0){u=sa+4|0;et(a,(k[u>>2]|0)>0?34840:34864);x=k[Q>>2]|0;q=a+8|0;D=k[q>>2]|0;E=Cs(D)|0;C=Cs(D)|0;g=k[sa>>2]|0;f=i[c>>0]|0;y=f&255;z=c+4|0;A=k[z>>2]|0;v=sa+16|0;t=k[v>>2]|0;if(t){Bh(D,17,k[sa+12>>2]|0,t,0)|0;Bh(D,16,0,E,0)|0;ba=k[v>>2]|0;t=k[D+24>>2]|0;d=~ba;do if((ba|0)<0){e=k[t+112>>2]|0;if(!e)break;k[e+(d<<2)>>2]=k[D+32>>2]}while(0);k[t+88>>2]=(k[D+32>>2]|0)+-1}B=k[sa+8>>2]|0;o=f<<24>>24==9;k:do if((f&-5)<<24>>24==9){n=x;p=k[c+8>>2]|0;d=0}else{t=a+19|0;d=i[t>>0]|0;do if(d<<24>>24){ba=d+-1<<24>>24;i[t>>0]=ba;e=k[a+((ba&255)<<2)+24>>2]|0;if(!(ba<<24>>24)){d=e;t=k[a+72>>2]|0;break}else{p=d+-2<<24>>24;i[t>>0]=p;n=1;p=k[a+((p&255)<<2)+24>>2]|0;d=e;break k}}else{d=a+72|0;t=(k[d>>2]|0)+1|0;k[d>>2]=t;d=t}while(0);p=t+1|0;k[a+72>>2]=p;n=1}while(0);h=(k[g>>2]|0)-(k[u>>2]|0)|0;w=sa+24|0;if(!(i[w>>0]&1)){t=Bh(D,107,B,E,0)|0;nt(D,k[b+12>>2]|0,C);e=1;f=B}else{ba=a+72|0;f=(k[ba>>2]|0)+1|0;k[ba>>2]=f;ba=a+68|0;g=k[ba>>2]|0;k[ba>>2]=g+1;if(!(k[v>>2]|0))e=0;else{ba=Tq(a)|0;aa=a+80|0;e=k[aa>>2]|0;k[aa>>2]=e+1;e=Bh(ba,44,e,0,0)|0}Bh(D,60,g,f,n+1+h|0)|0;if(e){t=k[D+32>>2]|0;if(t>>>0>e>>>0)k[(k[D+4>>2]|0)+(e*20|0)+8>>2]=t;k[(k[D+24>>2]|0)+88>>2]=t+-1}t=Bh(D,106,B,E,0)|0;nt(D,k[b+12>>2]|0,C);Bh(D,100,B,f,g)|0;e=0;f=g}u=t+1|0;if((n|0)>0){t=e+h|0;e=0;do{Bh(D,47,f,t+e|0,e+p|0)|0;e=e+1|0}while((e|0)!=(n|0))}do if((y|0)==12|(y|0)==14){Bh(D,74,A,d,0)|0;Bh(D,75,A,p,d)|0;o=k[D+4>>2]|0;if(!o)break;i[o+(((k[D+32>>2]|0)+-1|0)*20|0)+3>>0]=8}else if((y|0)==11){Ch(D,Bh(D,49,p,1,d)|0,c+1|0,1);it(a,p,1);Bh(D,110,A,d,0)|0}else if((y|0)!=10)if(o){ba=c+8|0;Bh(D,35,k[ba>>2]|0,x,0)|0;it(a,k[ba>>2]|0,x);break}else{Bh(D,22,k[z>>2]|0,0,0)|0;break}else{Bh(k[q>>2]|0,32,p,A,1)|0;it(a,p,1)}while(0);if(d){ds(a,p);ds(a,d)}n=D+24|0;p=k[n>>2]|0;q=~C;do if((C|0)<0){o=k[p+112>>2]|0;if(!o)break;k[o+(q<<2)>>2]=k[D+32>>2]}while(0);q=D+32|0;k[p+88>>2]=(k[q>>2]|0)+-1;if(!(i[w>>0]&1))Bh(D,9,B,u,0)|0;else Bh(D,5,B,u,0)|0;h=k[sa+12>>2]|0;if(h)Bh(D,18,h,0,0)|0;h=k[n>>2]|0;g=~E;do if((E|0)<0){f=k[h+112>>2]|0;if(!f)break;k[f+(g<<2)>>2]=k[q>>2]}while(0);k[h+88>>2]=(k[q>>2]|0)+-1}e=k[ta+24>>2]|0;f=~na;do if((na|0)<0){d=k[e+112>>2]|0;if(!d)break;k[d+(f<<2)>>2]=k[ta+32>>2]}while(0);k[e+88>>2]=(k[ta+32>>2]|0)+-1;k[xa>>2]=ya;if((i[c>>0]|0)!=9){d=0;break}Ss(a,R,Q);d=0}else wa=444;while(0);if((wa|0)==444){k[xa>>2]=ya;d=1}rg(ua,k[va+28>>2]|0);rg(ua,k[va+40>>2]|0)}else d=1;while(0);r=za;return d|0}function or(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,l=0,m=0,n=0,o=0;o=r;r=r+16|0;if((r|0)>=(s|0))ka();j=o;m=k[a>>2]|0;if((b|0)==0?(i=(g|0)!=0,i|(h|0)!=0):0){k[j>>2]=i?34792:34800;yh(a,34752,j);n=9}else{b=ur(m,b,c,d)|0;if((b|0)!=0?(l=k[b>>2]|0,(l|0)!=0):0){i=l+-1|0;if(k[e+4>>2]|0){e=$q(m,e)|0;k[b+(i*72|0)+20>>2]=e}k[b+(i*72|0)+28>>2]=f;k[b+(i*72|0)+52>>2]=g;k[b+(i*72|0)+56>>2]=h}else n=9}if((n|0)==9){Lk(m,g);Mk(m,h);Rk(m,f,1);b=0}r=o;return b|0}function pr(a,b,c,d,e,f,g,h,l,m){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,t=0,u=0,v=0;v=r;r=r+80|0;if((r|0)>=(s|0))ka();o=v+72|0;u=v;t=k[a>>2]|0;n=rh(t,72,0)|0;if(!n){p=u+0|0;q=p+72|0;do{k[p>>2]=0;p=p+4|0}while((p|0)<(q|0));n=u}else{p=n+0|0;q=p+72|0;do{i[p>>0]=0;p=p+1|0}while((p|0)<(q|0))}if(!b){k[o>>2]=0;k[o+4>>2]=0;b=qr(a,0,sr(t,116,o,0)|0)|0}k[n>>2]=b;if(!c){c=rh(t,80,0)|0;if(c){p=c+0|0;q=p+80|0;do{i[p>>0]=0;p=p+1|0}while((p|0)<(q|0))}}k[n+32>>2]=c;k[n+36>>2]=d;k[n+40>>2]=e;k[n+44>>2]=f;k[n+48>>2]=g;j[n+6>>1]=h;i[n+4>>0]=119;k[n+60>>2]=l;k[n+64>>2]=m;k[n+16>>2]=-1;k[n+20>>2]=-1;if(i[t+65>>0]|0){Rk(t,n,(n|0)!=(u|0)&1);n=0}r=v;return n|0}function qr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=k[a>>2]|0;if(!b){b=rh(e,8,0)|0;if(b){a=b;d=a;i[d>>0]=0;i[d+1>>0]=0;i[d+2>>0]=0;i[d+3>>0]=0;a=a+4|0;i[a>>0]=0;i[a+1>>0]=0;i[a+2>>0]=0;i[a+3>>0]=0;a=rh(e,20,0)|0;k[b+4>>2]=a;if(!a)d=8;else d=7}else{b=0;d=8}}else{a=k[b>>2]|0;if(!(a+-1&a)){d=b+4|0;a=wo(e,k[d>>2]|0,a*40|0,0)|0;if(!a)d=8;else{k[d>>2]=a;d=7}}else d=7}if((d|0)==7){a=k[b>>2]|0;k[b>>2]=a+1;a=(k[b+4>>2]|0)+(a*20|0)|0;k[a+0>>2]=0;k[a+4>>2]=0;k[a+8>>2]=0;k[a+12>>2]=0;k[a+16>>2]=0;k[a>>2]=c}else if((d|0)==8){Lk(e,c);Sk(e,b);b=0}return b|0}function rr(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;do if(b){h=(k[b>>2]|0)+-1|0;e=k[b+4>>2]|0;f=k[c>>2]|0;b=k[c+4>>2]|0;if((f|0)!=0?(c=k[a>>2]|0,g=ow(b|0,0,1,0)|0,g=rh(c,g,L)|0,(g|0)!=0):0){pw(g|0,f|0,b|0)|0;i[g+b>>0]=0;k[e+(h*20|0)+4>>2]=g;if(!d)break;qo(g);break}k[e+(h*20|0)+4>>2]=0}while(0);return}function sr(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0;o=r;r=r+16|0;if((r|0)>=(s|0))ka();h=o;k[h>>2]=0;f=(c|0)!=0;do if(f){if(((b|0)==132?(e=k[c>>2]|0,(e|0)!=0):0)?(In(e,h)|0)!=0:0){m=0;break}m=(k[c+4>>2]|0)+1|0}else m=0;while(0);g=m+48|0;l=rh(a,g,0)|0;if(l){kw(l|0,0,g|0)|0;i[l>>0]=b;j[l+34>>1]=-1;do if(f){if(!m){d=l+4|0;k[d>>2]=k[d>>2]|1024;k[l+8>>2]=k[h>>2];break}e=l+48|0;g=l+8|0;k[g>>2]=e;f=c+4|0;a=k[f>>2]|0;if(!a)e=48;else{pw(e|0,k[c>>2]|0,a|0)|0;e=(k[f>>2]|0)+48|0}i[l+e>>0]=0;if(((d|0)!=0&(m|0)>2?(d=i[k[c>>2]>>0]|0,n=d<<24>>24==34,d<<24>>24==34|d<<24>>24==39|d<<24>>24==91|d<<24>>24==96):0)?(qo(k[g>>2]|0),n):0){d=l+4|0;k[d>>2]=k[d>>2]|64}}while(0);k[l+24>>2]=1}r=o;return l|0}function tr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;do if((b|0)!=0?(d=k[b>>2]|0,(d|0)>0):0){d=d+-1|0;if((k[c+4>>2]|0)==1?(k[c>>2]|0)==0:0){d=b+(d*72|0)+45|0;i[d>>0]=i[d>>0]|1;break}c=$q(k[a>>2]|0,c)|0;k[b+(d*72|0)+72>>2]=c}while(0);return}function ur(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;if(!b){b=rh(a,80,0)|0;if(!b)b=0;else{f=b+0|0;e=f+80|0;do{i[f>>0]=0;f=f+1|0}while((f|0)<(e|0));k[b+4>>2]=1;f=4}}else f=4;do if((f|0)==4){b=Ks(a,b,1,k[b>>2]|0)|0;if(i[a+65>>0]|0){Io(a,b);b=0;break}f=(k[b>>2]|0)+-1|0;if(!d)e=0;else e=(k[d>>2]|0)==0?0:d;d=(e|0)==0;e=$q(a,d?c:e)|0;k[b+(f*72|0)+16>>2]=e;e=$q(a,d?0:c)|0;k[b+(f*72|0)+12>>2]=e}while(0);return b|0}function vr(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,m=0,n=0,o=0;o=r;r=r+32|0;if((r|0)>=(s|0))ka();m=o;i=o+16|0;k[i>>2]=b;k[i+4>>2]=c;k[i+8>>2]=d;h=b;j=1;e=0;a:while(1){if(!h)break;g=k[h+4>>2]|0;f=0;while(1){if((g|0)==(l[34625+(f*3|0)>>0]|0|0)?(Kc(k[h>>2]|0,34584+(l[34624+(f*3|0)>>0]|0)|0,g)|0)==0:0)break;f=f+1|0;if((f|0)>=7){n=10;break a}}e=l[34626+(f*3|0)>>0]|0|e;if((f|0)>6){n=10;break}if((j|0)>=3)break;h=k[i+(j<<2)>>2]|0;j=j+1|0}if((n|0)==10)e=e|64;if((e&33|0)!=33&(e&64|0)==0){if(!((e&32|0)==0|(e&24|0)==8)){yh(a,34696,m);e=1}}else{k[m>>2]=b;k[m+4>>2]=c;k[m+8>>2]=(d|0)==0?20377|0:20376;k[m+12>>2]=d;yh(a,34648,m);e=1}r=o;return e|0}function wr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0;Q=r;r=r+48|0;if((r|0)>=(s|0))ka();N=Q+36|0;O=Q+32|0;m=Q;k[N>>2]=0;k[O>>2]=0;P=k[a>>2]|0;if(((((k[a+64>>2]|0)==0?(i[P+65>>0]|0)==0:0)?(E=Or(a,b)|0,(E|0)!=0):0)?(D=ot(a,E,109,0,0)|0,M=(k[E+12>>2]|0)!=0,(mr(a,E)|0)==0):0)?(o=(D|0)!=0,(pt(a,E,o&1)|0)==0):0){f=k[E+68>>2]|0;a:do if(f){e=k[P+20>>2]|0;if((e|0)>0){d=k[P+16>>2]|0;h=0;while(1){g=h+1|0;if((k[d+(h<<4)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=Xq(a,9,k[E>>2]|0,0,k[(k[P+16>>2]|0)+(g<<4)>>2]|0)|0;if((d|0)!=1){n=a+68|0;z=k[n>>2]|0;p=z+1|0;k[n>>2]=p;k[b+48>>2]=z;F=E+8|0;f=k[F>>2]|0;if(!f)h=0;else{e=p;h=0;do{e=e+1|0;k[n>>2]=e;h=h+1|0;f=k[f+20>>2]|0}while((f|0)!=0)}if(M){K=a+492|0;L=k[K>>2]|0;k[K>>2]=k[E>>2];K=a}else{K=0;L=0}I=Tq(a)|0;b:do if(I){J=a+18|0;if(!(i[J>>0]|0)){B=I+88|0;j[B>>1]=j[B>>1]|4}A=a+408|0;B=k[A>>2]|0;B=(B|0)==0?a:B;Fr(a,g);y=B+328|0;k[y>>2]=k[y>>2]|1<<g;B=B+20|0;i[B>>0]=l[B>>0]|1;if(M){qt(a,E,c,z);k[O>>2]=z;k[N>>2]=z};k[m+0>>2]=0;k[m+4>>2]=0;k[m+8>>2]=0;k[m+12>>2]=0;k[m+16>>2]=0;k[m+20>>2]=0;k[m+24>>2]=0;k[m+28>>2]=0;k[m>>2]=a;k[m+4>>2]=b;if(!(qs(m,c)|0)){G=P+24|0;if(!(k[G>>2]&128))H=-1;else{B=a+72|0;H=(k[B>>2]|0)+1|0;k[B>>2]=H;Bh(I,25,0,H,0)|0}B=E+44|0;do if((!((c|0)!=0|(d|0)!=0|o)?(i[B>>0]&16)==0:0)?(rt(a,E,0,0)|0)==0:0){f=E+32|0;ls(a,g,k[f>>2]|0,1,k[E>>2]|0);if(!(i[B>>0]&32)){E=k[E>>2]|0;Ch(I,Bh(I,118,k[f>>2]|0,g,H)|0,E,-2)}d=k[F>>2]|0;if(!d){d=0;break}do{Bh(I,118,k[d+40>>2]|0,g,0)|0;d=k[d+20>>2]|0}while((d|0)!=0);d=0}else C=31;while(0);do if((C|0)==31){if(!(i[B>>0]&32)){q=a+72|0;w=(k[q>>2]|0)+1|0;k[q>>2]=w;Bh(I,28,0,w,0)|0;q=0;x=0;d=0;u=1;g=0}else{g=k[F>>2]|0;c:do if(!g)g=0;else while(1){if((i[g+51>>0]&3)==2)break c;g=k[g+20>>2]|0;if(!g){g=0;break}}while(0);u=j[g+46>>1]|0;x=a+72|0;d=k[x>>2]|0;q=u<<16>>16;k[x>>2]=d+q;x=k[n>>2]|0;k[n>>2]=x+1;q=Bh(I,57,x,q,0)|0;w=k[a+8>>2]|0;Ch(w,-1,ms(a,g)|0,-6);d=d+1|0;w=0}t=_s(a,b,c,0,0,12,p)|0;if(!t){d=0;break b}p=t+60|0;o=k[p>>2]|0;p=k[p+4>>2]|0;v=i[t+38>>0]|0;if(k[G>>2]&128)Bh(I,37,H,1,0)|0;y=(g|0)!=0;do if(y){if(u<<16>>16<=0){e=d;break}m=g+4|0;f=u<<16>>16;n=0;do{st(I,E,z,j[(k[m>>2]|0)+(n<<1)>>1]|0,n+d|0);n=n+1|0}while((n|0)!=(f|0));e=d}else{f=a+72|0;e=ht(a,E,-1,z,(k[f>>2]|0)+1|0,0)|0;if((e|0)<=(k[f>>2]|0))break;k[f>>2]=e}while(0);m=v<<24>>24!=0;do if(!m)if(y){f=a+72|0;e=(k[f>>2]|0)+1|0;k[f>>2]=e;f=u<<16>>16;n=tt(I,g)|0;Ch(I,Bh(I,49,d,f,e)|0,n,f);Bh(I,110,x,e,0)|0;d=0;f=0;n=0;C=59;break}else{Bh(I,128,w,e,0)|0;at(t);d=0;p=0;g=1;break}else{d=h+2|0;d=rh(P,d,((d|0)<0)<<31>>31)|0;if(!d){at(t);d=0;break b}C=h+1|0;kw(d|0,1,C|0)|0;i[d+C>>0]=0;if((o|0)>-1)i[d+(o-z)>>0]=0;if((p|0)>-1)i[d+(p-z)>>0]=0;if(q)Eh(I,q);f=Bh(I,16,0,0,0)|0;n=u;C=59}while(0);do if((C|0)==59){at(t);if(!m){p=0;g=n;break}g=Cs(I)|0;Bh(I,16,0,g,0)|0;h=k[I+32>>2]|0;if(h>>>0>f>>>0)k[(k[I+4>>2]|0)+(f*20|0)+8>>2]=h;k[(k[I+24>>2]|0)+88>>2]=h+-1;p=g;g=n}while(0);if(!M)ut(a,E,55,z,d,N,O)|0;do if(!m)if(y){f=Bh(I,108,x,0,0)|0;Bh(I,101,x,e,0)|0;break}else{f=Bh(I,129,w,0,e)|0;break}else{h=k[N>>2]|0;if(!(i[d+(h-z)>>0]|0)){f=0;break}Ch(I,Bh(I,68,h,p,e)|0,g<<16>>16,-14);f=0}while(0);if(!(i[B>>0]&16))wt(a,E,D,k[N>>2]|0,k[O>>2]|0,e,g,(i[J>>0]|0)==0&1,10,v);else{h=k[E+60>>2]|0;d:do if(!h)h=0;else while(1){if((k[h>>2]|0)==(P|0))break d;h=k[h+24>>2]|0;if(!h){h=0;break}}while(0);vt(a,E);Ch(I,Bh(I,15,0,1,e)|0,h,-10);h=k[I+4>>2]|0;if(h)i[h+(((k[I+32>>2]|0)+-1|0)*20|0)+3>>0]=2;E=k[A>>2]|0;i[((E|0)==0?a:E)+21>>0]=1}do if(!m)if(y){Bh(I,9,x,f+1|0,0)|0;h=k[I+32>>2]|0;if(h>>>0>f>>>0)k[(k[I+4>>2]|0)+(f*20|0)+8>>2]=h;k[(k[I+24>>2]|0)+88>>2]=h+-1;break}else{Bh(I,16,0,f,0)|0;h=k[I+32>>2]|0;if(h>>>0>f>>>0)k[(k[I+4>>2]|0)+(f*20|0)+8>>2]=h;k[(k[I+24>>2]|0)+88>>2]=h+-1;break}else{g=k[I+24>>2]|0;f=~p;do if((p|0)<0){h=k[g+112>>2]|0;if(!h)break;k[h+(f<<2)>>2]=k[I+32>>2]}while(0);k[g+88>>2]=(k[I+32>>2]|0)+-1}while(0);if(M)break;if(i[B>>0]&16)break;if(!y)Bh(I,61,k[N>>2]|0,0,0)|0;e=k[F>>2]|0;if(!e)break;else f=0;while(1){Bh(I,61,(k[O>>2]|0)+f|0,0,0)|0;e=k[e+20>>2]|0;if(!e)break;else f=f+1|0}}while(0);if((i[J>>0]|0)==0?(k[a+412>>2]|0)==0:0)xt(a);if((k[G>>2]&128|0)!=0?(i[J>>0]|0)==0:0){if(k[a+412>>2]|0)break;Bh(I,35,H,1,0)|0;nq(I,1);if(i[(k[I>>2]|0)+65>>0]|0)break;ah(k[I+16>>2]|0,34568,-1,1,0)|0}}else d=0}else d=0;while(0);if(K)k[K+492>>2]=L}else d=0}else d=0;Io(P,b);Lk(P,c);rg(P,d);r=Q;return}function xr(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0;ia=r;r=r+64|0;if((r|0)>=(s|0))ka();Q=ia;V=ia+32|0;ba=ia+24|0;da=ia+20|0;ha=k[a>>2]|0;a:do if(((k[a+64>>2]|0)==0?(i[ha+65>>0]|0)==0:0)?(ga=Or(a,b)|0,(ga|0)!=0):0){g=k[a>>2]|0;m=k[ga+68>>2]|0;b:do if(m){n=k[g+20>>2]|0;if((n|0)>0){g=k[g+16>>2]|0;h=0;while(1){f=h+1|0;if((k[g+(h<<4)+12>>2]|0)==(m|0))break b;if((f|0)<(n|0))h=f;else{h=f;break}}}else h=0}else h=-1e6;while(0);ca=ot(a,ga,110,c,ba)|0;$=(k[ga+12>>2]|0)!=0;if((mr(a,ga)|0)==0?(pt(a,ga,k[ba>>2]|0)|0)==0:0){X=a+68|0;Y=k[X>>2]|0;ea=Y+1|0;k[X>>2]=ea;m=b+48|0;k[m>>2]=Y;H=ga+44|0;p=k[ga+8>>2]|0;c:do if(!(i[H>>0]&32)){n=0;_=16}else{if(!p){t=ga+8|0;n=0;o=Y;q=0;break}else n=p;while(1){if((i[n+51>>0]&3)==2){_=16;break c}n=k[n+20>>2]|0;if(!n){n=0;_=16;break}}}while(0);if((_|0)==16){t=ga+8|0;if(!p){o=Y;q=0}else{f=(n|0)!=0;g=ea;o=Y;q=0;do{if((i[p+51>>0]&3)==2&f){k[m>>2]=g;o=g}g=g+1|0;k[X>>2]=g;q=q+1|0;p=k[p+20>>2]|0}while((p|0)!=0)}}fa=ga+38|0;f=rhrhrh|0,(i[(k[Q>>2]|0)+65>>0]|0)==0):0)?(ah((k[Q+16>>2]|0)+40|0,31184,-1,1,0)|0,(i[(k[Q>>2]|0)+65>>0]|0)==0):0)ah((k[Q+16>>2]|0)+80|0,31352,-1,1,0)|0;e=T+20|0;f=k[e>>2]|0;if((f|0)>0)g=0;else break a;do{if(k[(k[O>>2]|0)+(g<<4)+4>>2]|0){Bh(Q,25,g,1,0)|0;d=k[(k[O>>2]|0)+(g<<4)>>2]|0;Ch(Q,Bh(Q,97,0,2,0)|0,d,0);d=k[k[(k[(k[O>>2]|0)+(g<<4)+4>>2]|0)+4>>2]>>2]|0;if(!(i[d+15>>0]|0))d=k[d+168>>2]|0;else d=10360;Ch(Q,Bh(Q,97,0,3,0)|0,d,0);Bh(Q,35,1,3,0)|0;f=k[e>>2]|0}g=g+1|0}while((g|0)<(f|0));break}case 6:{nq(Q,2);k[P>>2]=2;if((i[(k[Q>>2]|0)+65>>0]|0)==0?(ah(k[Q+16>>2]|0,31288,-1,1,0)|0,(i[(k[Q>>2]|0)+65>>0]|0)==0):0)ah((k[Q+16>>2]|0)+40|0,31184,-1,1,0)|0;f=k[T+436>>2]|0;if(!f)break a;else e=0;while(1){D=k[f+8>>2]|0;Bh(Q,25,e,1,0)|0;D=k[D>>2]|0;Ch(Q,Bh(Q,97,0,2,0)|0,D,0);Bh(Q,35,1,2,0)|0;f=k[f>>2]|0;if(!f)break;else e=e+1|0}break}case 13:{if(!R)break a;d=di(T,R,I)|0;if(!d)break a;b=Tq(a)|0;g=k[d+16>>2]|0;if(!g)break a;nq(b,8);k[P>>2]=8;Fr(a,N);do if((((i[(k[b>>2]|0)+65>>0]|0)==0?(ah(k[b+16>>2]|0,31360,-1,1,0)|0,(i[(k[b>>2]|0)+65>>0]|0)==0):0)?(ah((k[b+16>>2]|0)+40|0,31288,-1,1,0)|0,(i[(k[b>>2]|0)+65>>0]|0)==0):0)?(ah((k[b+16>>2]|0)+80|0,31232,-1,1,0)|0,(i[(k[b>>2]|0)+65>>0]|0)==0):0){ah((k[b+16>>2]|0)+120|0,31368,-1,1,0)|0;if(i[(k[b>>2]|0)+65>>0]|0)break;ah((k[b+16>>2]|0)+160|0,31376,-1,1,0)|0;if(i[(k[b>>2]|0)+65>>0]|0)break;ah((k[b+16>>2]|0)+200|0,31384,-1,1,0)|0;if(i[(k[b>>2]|0)+65>>0]|0)break;ah((k[b+16>>2]|0)+240|0,31400,-1,1,0)|0;if(i[(k[b>>2]|0)+65>>0]|0)break;ah((k[b+16>>2]|0)+280|0,31416,-1,1,0)|0}while(0);q=d+4|0;t=0;while(1){d=g+20|0;if((k[d>>2]|0)>0){f=g+25|0;e=g+26|0;o=g+8|0;c=0;do{p=k[g+(c<<3)+40>>2]|0;n=l[f>>0]|0;if((n|0)==8)h=32072;else if((n|0)==9)h=32088;else if((n|0)==6)h=32096;else if((n|0)==7)h=32056;else h=32112;n=l[e>>0]|0;if((n|0)==8)n=32072;else if((n|0)==9)n=32088;else if((n|0)==6)n=32096;else if((n|0)==7)n=32056;else n=32112;Bh(b,25,t,1,0)|0;Bh(b,25,c,2,0)|0;D=k[o>>2]|0;Ch(b,Bh(b,97,0,3,0)|0,D,0);D=k[(k[q>>2]|0)+((k[g+(c<<3)+36>>2]|0)*24|0)>>2]|0;Ch(b,Bh(b,97,0,4,0)|0,D,0);Ch(b,Bh(b,(p|0)!=0?97:28,0,5,0)|0,p,0);Ch(b,Bh(b,97,0,6,0)|0,n,0);Ch(b,Bh(b,97,0,7,0)|0,h,0);Ch(b,Bh(b,97,0,8,0)|0,31424,0);Bh(b,35,1,8,0)|0;c=c+1|0}while((c|0)<(k[d>>2]|0))}g=k[g+4>>2]|0;if(!g)break;else t=t+1|0}break}case 12:{b=k[P>>2]|0;E=b+1|0;F=b+5|0;G=b+6|0;k[P>>2]=G;H=Tq(a)|0;nq(H,4);if((((i[(k[H>>2]|0)+65>>0]|0)==0?(ah(k[H+16>>2]|0,31232,-1,1,0)|0,(i[(k[H>>2]|0)+65>>0]|0)==0):0)?(ah((k[H+16>>2]|0)+40|0,20456,-1,1,0)|0,(i[(k[H>>2]|0)+65>>0]|0)==0):0)?(ah((k[H+16>>2]|0)+80|0,31432,-1,1,0)|0,(i[(k[H>>2]|0)+65>>0]|0)==0):0)ah((k[H+16>>2]|0)+120|0,31440,-1,1,0)|0;Fr(a,N);t=k[(k[(k[O>>2]|0)+(N<<4)+12>>2]|0)+16>>2]|0;if(!t)break a;p=(R|0)==0;c=a+68|0;q=H+32|0;A=H+4|0;B=H+24|0;C=b+2|0;D=b+3|0;x=b+4|0;o=a+8|0;while(1){if(p){y=k[t>>2]|0;z=k[t+8>>2]|0}else{y=0;z=xh(a,0,R,I)|0}if((z|0)!=0?(J=z+16|0,(k[J>>2]|0)!=0):0){ls(a,N,k[z+32>>2]|0,0,k[z>>2]|0);b=(j[z+38>>1]|0)+G|0;if((b|0)>(k[P>>2]|0))k[P>>2]=b;Vq(a,0,N,z,54);t=k[z>>2]|0;Ch(H,Bh(H,97,0,E,0)|0,t,0);t=k[J>>2]|0;if(!t)b=1;else{b=1;do{e=di(T,k[t+8>>2]|0,I)|0;do if(e){k[L>>2]=0;ls(a,N,k[e+32>>2]|0,0,k[e>>2]|0);if(Rt(a,e,t,L,0)|0)break a;f=k[L>>2]|0;if(!f){Vq(a,b,N,e,54);break}else{Bh(H,54,b,k[f+40>>2]|0,N)|0;w=k[o>>2]|0;Ch(w,-1,ms(a,f)|0,-6);break}}while(0);b=b+1|0;t=k[t+4>>2]|0}while((t|0)!=0)}if((k[c>>2]|0)<(b|0))k[c>>2]=b;n=Bh(H,108,0,0,0)|0;b=k[J>>2]|0;if(b){w=z+36|0;v=1;while(1){u=b+8|0;t=di(T,k[u>>2]|0,I)|0;k[L>>2]=0;k[K>>2]=0;h=(t|0)!=0;do if(h){Rt(a,t,b,L,K)|0;e=k[L>>2]|0;f=Cs(H)|0;if(!(h&(e|0)==0)){t=f;M=306;break}t=k[b+36>>2]|0;if((t|0)==(j[w>>1]|0))Bh(H,103,0,G,0)|0;else{Bh(H,47,0,t,G)|0;St(H,z,t,G);Bh(H,76,G,f,0)|0;Bh(H,38,G,(k[q>>2]|0)+3|0,0)|0}Bh(H,70,v,0,G)|0;Bh(H,16,0,f,0)|0;t=k[q>>2]|0;if(t>>>0>1)k[(k[A>>2]|0)+((t+-2|0)*20|0)+8>>2]=t;k[(k[B>>2]|0)+88>>2]=t+-1;t=f}else{t=Cs(H)|0;e=0;M=306}while(0);do if((M|0)==306){M=0;g=b+20|0;f=k[g>>2]|0;if((f|0)>0){d=0;do{f=k[K>>2]|0;if(!f)f=b+(d<<3)+36|0;else f=f+(d<<2)|0;O=d+G|0;st(H,z,0,k[f>>2]|0,O);Bh(H,76,O,t,0)|0;d=d+1|0;f=k[g>>2]|0}while((d|0)<(f|0))}if(!h)break;d=tt(H,e)|0;e=k[g>>2]|0;Ch(H,Bh(H,49,G,f,F)|0,d,e);Ch(H,Bh(H,69,v,t,F)|0,0,-14)}while(0);Bh(H,103,0,C,0)|0;e=k[u>>2]|0;Ch(H,Bh(H,97,0,D,0)|0,e,0);Bh(H,25,v+-1|0,x,0)|0;Bh(H,35,E,4,0)|0;e=k[B>>2]|0;f=~t;do if((t|0)<0){t=k[e+112>>2]|0;if(!t)break;k[t+(f<<2)>>2]=k[q>>2]}while(0);k[e+88>>2]=(k[q>>2]|0)+-1;rg(T,k[K>>2]|0);b=k[b+4>>2]|0;if(!b)break;else v=v+1|0}}Bh(H,9,0,n+1|0,0)|0;b=k[q>>2]|0;if(b>>>0>n>>>0)k[(k[A>>2]|0)+(n*20|0)+8>>2]=b;k[(k[B>>2]|0)+88>>2]=b+-1}if(!y)break;else t=y}break}case 11:{if(!R){if(Ln(a)|0)break a;nq(Q,1);if(!(i[(k[Q>>2]|0)+65>>0]|0))ah(k[Q+16>>2]|0,31784,-1,1,0)|0;Bh(Q,97,0,1,0)|0;Ch(Q,-1,k[31632+(l[(k[a>>2]|0)+62>>0]<<3)>>2]|0,-2);Bh(Q,35,1,1,0)|0;break a}d=k[(k[O>>2]|0)+12>>2]|0;if((j[d+78>>1]&5)==1)break a;else{f=31632;e=31704}do{if(!(id(R,e)|0)){q=f;M=415;break}f=f+8|0;e=k[f>>2]|0}while((e|0)!=0);if((M|0)==415?(C=i[q+4>>0]|0,C=C<<24>>24==0?2:C,i[T+62>>0]=C,i[d+77>>0]=C,(k[q>>2]|0)!=0):0)break a;k[D>>2]=R;yh(a,31800,D);break a}case 0:{n=k[30128+(t*12|0)>>2]|0;C=Q+96|0;k[C>>2]=k[C>>2]|1<<N;if((R|0)!=0?!((t|0)==11|(t|0)==20):0){f=Dh(Q,3,31832)|0;d=Q+32|0;if((k[d>>2]|0)>>>0>f>>>0)k[(k[Q+4>>2]|0)+(f*20|0)+4>>2]=N;e=f+1|0;k[D>>2]=0;In(R,D)|0;d=k[d>>2]|0;if(d>>>0>e>>>0)k[(k[Q+4>>2]|0)+(e*20|0)+4>>2]=k[D>>2];f=f+2|0;if(d>>>0<=f>>>0)break a;k[(k[Q+4>>2]|0)+(f*20|0)+4>>2]=N;k[(k[Q+4>>2]|0)+(f*20|0)+8>>2]=n;break a}f=Dh(Q,3,31848)|0;d=k[Q+32>>2]|0;if(d>>>0>f>>>0)k[(k[Q+4>>2]|0)+(f*20|0)+4>>2]=N;f=f+1|0;if(d>>>0>f>>>0){k[(k[Q+4>>2]|0)+(f*20|0)+4>>2]=N;k[(k[Q+4>>2]|0)+(f*20|0)+12>>2]=n}nq(Q,1);if(i[(k[Q>>2]|0)+65>>0]|0)break a;ah(k[Q+16>>2]|0,S,-1,1,-1)|0;break a}case 7:{nq(Q,1);k[P>>2]=1;if(!(i[(k[Q>>2]|0)+65>>0]|0)){ah(k[Q+16>>2]|0,31864,-1,1,0)|0;e=0}else e=0;do{D=k[8648+(e<<2)>>2]|0;e=e+1|0;Ch(Q,Bh(Q,97,0,1,0)|0,D,0);Bh(Q,35,1,1,0)|0}while((e|0)!=4);break}case 35:{f=(k[c>>2]|0)!=0?N:10;if(R)if(id(R,31880)|0)if(!(id(R,31888)|0))e=2;else{e=(id(R,31896)|0)==0;e=e?3:0}else e=1;else e=0;nq(Q,3);k[P>>2]=3;if(((i[(k[Q>>2]|0)+65>>0]|0)==0?(ah(k[Q+16>>2]|0,31912,-1,1,0)|0,(i[(k[Q>>2]|0)+65>>0]|0)==0):0)?(ah((k[Q+16>>2]|0)+40|0,31920,-1,1,0)|0,(i[(k[Q>>2]|0)+65>>0]|0)==0):0)ah((k[Q+16>>2]|0)+80|0,31928,-1,1,0)|0;Bh(Q,11,f,e,1)|0;Bh(Q,35,1,3,0)|0;break a}case 26:{tf(T)|0;break a}case 34:{if(!R)e=k[T+216>>2]|0;else{k[D>>2]=0;In(R,D)|0;e=k[D>>2]|0;if((e|0)>0)f=21;else{e=0;f=0}k[T+216>>2]=f;k[T+220>>2]=e;e=f}if((e|0)==21){e=k[T+220>>2]|0;f=e;e=((e|0)<0)<<31>>31}else{f=0;e=0}Ot(a,31944,f,e);break a}case 27:{if((R|0)!=0?(oi(R,u)|0)==0:0){D=u;Uc(k[D>>2]|0,k[D+4>>2]|0)|0}C=(Qc()|0)==0;D=9032;Ot(a,31976,C?k[D>>2]|0:-1,C?k[D+4>>2]|0:-1);break a}case 33:{if((R|0)!=0?(B=(oi(R,n)|0)==0,D=n,C=k[D+4>>2]|0,B&((C|0)>-1|(C|0)==-1&(k[D>>2]|0)>>>0>4294967295)):0)k[T+132>>2]=0;D=k[T+132>>2]|0;Ot(a,31992,D,((D|0)<0)<<31>>31);break a}case 16:{if(!R)break a;d=di(T,R,I)|0;if(!d)break a;g=Tq(a)|0;nq(g,5);k[P>>2]=5;Fr(a,N);if(((((i[(k[g>>2]|0)+65>>0]|0)==0?(ah(k[g+16>>2]|0,31288,-1,1,0)|0,(i[(k[g>>2]|0)+65>>0]|0)==0):0)?(ah((k[g+16>>2]|0)+40|0,31184,-1,1,0)|0,(i[(k[g>>2]|0)+65>>0]|0)==0):0)?(ah((k[g+16>>2]|0)+80|0,31296,-1,1,0)|0,(i[(k[g>>2]|0)+65>>0]|0)==0):0)?(ah((k[g+16>>2]|0)+120|0,31304,-1,1,0)|0,(i[(k[g>>2]|0)+65>>0]|0)==0):0)ah((k[g+16>>2]|0)+160|0,31312,-1,1,0)|0;f=k[d+8>>2]|0;if(!f)break a;else e=0;while(1){Bh(g,25,e,1,0)|0;D=k[f>>2]|0;Ch(g,Bh(g,97,0,2,0)|0,D,0);Bh(g,25,(i[f+50>>0]|0)!=0&1,3,0)|0;D=k[31336+((i[f+51>>0]&3)<<2)>>2]|0;Ch(g,Bh(g,97,0,4,0)|0,D,0);Bh(g,25,(k[f+36>>2]|0)!=0&1,5,0)|0;Bh(g,35,1,5,0)|0;f=k[f+20>>2]|0;if(!f)break;else e=e+1|0}break}case 10:{g=1<<N;C=Q+96|0;k[C>>2]=k[C>>2]|g;if(R){k[D>>2]=0;In(R,D)|0;d=k[D>>2]|0;if((d|0)<=-1)d=(d|0)==-2147483648?2147483647:0-d|0;D=k[a+408>>2]|0;Fr(a,N);D=((D|0)==0?a:D)+328|0;k[D>>2]=k[D>>2]|g;Bh(Q,25,d,1,0)|0;Bh(Q,52,N,3,1)|0;k[(k[z+(N<<4)+12>>2]|0)+80>>2]=d;uq(k[z+(N<<4)+4>>2]|0,d);break a}nq(Q,1);if(!(i[(k[Q>>2]|0)+65>>0]|0))ah(k[Q+16>>2]|0,30848,-1,1,0)|0;k[P>>2]=(k[P>>2]|0)+2;d=Dh(Q,9,30808)|0;e=k[Q+32>>2]|0;if(e>>>0>d>>>0)k[(k[Q+4>>2]|0)+(d*20|0)+4>>2]=N;f=d+1|0;if(e>>>0>f>>>0)k[(k[Q+4>>2]|0)+(f*20|0)+4>>2]=N;f=d+6|0;if(e>>>0<=f>>>0)break a;k[(k[Q+4>>2]|0)+(f*20|0)+4>>2]=2e3;break a}case 2:{if(!R){Ot(a,b,(k[30128+(t*12|0)>>2]&k[T+24>>2]|0)!=0&1,0);break a}e=k[30128+(t*12|0)>>2]|0;e=(i[T+63>>0]|0)==0?e&-524289:e;if(!((ni(R,1,0)|0)<<24>>24)){D=T+24|0;k[D>>2]=k[D>>2]&~e;if((e|0)==16777216){D=T+512|0;k[D>>2]=0;k[D+4>>2]=0}}else{D=T+24|0;k[D>>2]=k[D>>2]|e}Bh(Q,144,0,0,0)|0;Qt(T);break a}default:{if(!R)e=k[T+492>>2]|0;else{k[D>>2]=0;In(R,D)|0;e=k[D>>2]|0;D=(e|0)>0;e=D?e:0;k[T+444>>2]=D?74:0;k[T+448>>2]=D?T:0;k[h>>2]=0;k[T+492>>2]=e}Ot(a,31968,e,((e|0)<0)<<31>>31);break a}}while(0)}else if(!b){d=k[g>>2]|0;if(!d)break;f=(k[P>>2]|0)+1|0;k[P>>2]=f;Ch(Q,Bh(Q,97,0,f,0)|0,d,0);nq(Q,1);if(!(i[(k[Q>>2]|0)+65>>0]|0))ah(k[Q+16>>2]|0,30112,-1,1,0)|0;Bh(Q,35,f,1,0)|0;$c(k[g>>2]|0);break}else{d=k[g>>2]|0;if(d){k[D>>2]=d;yh(a,10344,D);$c(k[g>>2]|0)}D=a+64|0;k[D>>2]=(k[D>>2]|0)+1;k[a+12>>2]=b;break}}while(0);rg(T,S);rg(T,R)}}while(0);r=U;return}function Lr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=r;r=r+16|0;if((r|0)>=(s|0))ka();e=f;a:do if(!b)b=0;else{d=b;while(1){if((i[d>>0]|0)==-121){b=k[a>>2]|0;if(!(i[(k[b>>2]|0)+145>>0]|0))break;i[d>>0]=101}b=k[d+4>>2]|0;if(b&16384){b=0;break a}c=d+20|0;if(!(b&2048)){if(Mr(a,k[c>>2]|0)|0){b=1;break a}}else if(kr(a,k[c>>2]|0)|0){b=1;break a}if(Lr(a,k[d+16>>2]|0)|0){b=1;break a}d=k[d+12>>2]|0;if(!d){b=0;break a}}k[e>>2]=k[a+16>>2];yh(b,29984,e);b=1}while(0);r=f;return b|0}function Mr(a,b){a=a|0;b=b|0;var c=0,d=0;a:do if((b|0)!=0?(k[b>>2]|0)>0:0){c=0;d=k[b+4>>2]|0;while(1){if(Lr(a,k[d>>2]|0)|0){c=1;break a}c=c+1|0;if((c|0)>=(k[b>>2]|0)){c=0;break}else d=d+20|0}}else c=0;while(0);return c|0}function Nr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;Ch(a,Bh(a,122,b,0,0)|0,c,-1);c=k[(k[a>>2]|0)+20>>2]|0;if((c|0)>0){d=a+96|0;b=k[d>>2]|0;a=0;do{b=b|1<<a;a=a+1|0}while((a|0)<(c|0));k[d>>2]=b}return}function Or(a,b){a=a|0;b=b|0;var c=0,d=0;c=b+8|0;d=Zr(a,0,c)|0;b=b+24|0;pg(k[a>>2]|0,k[b>>2]|0);k[b>>2]=d;if(d){b=d+40|0;j[b>>1]=(j[b>>1]|0)+1<<16>>16}c=(Wt(a,c)|0)==0;return (c?d:0)|0}function Pr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0;l=r;r=r+16|0;if((r|0)>=(s|0))ka();j=l;a:do if((b|0)!=0?(e=k[a+12>>2]|0,(k[b>>2]|0)>0):0){f=a+8|0;g=a+4|0;h=0;i=b+8|0;while(1){if(!(k[f>>2]|0)){d=i+4|0;c=k[d>>2]|0;if((c|0)!=0?(id(c,e)|0)!=0:0)break;rg(k[k[a>>2]>>2]|0,c);k[d>>2]=0;k[i>>2]=k[g>>2]}if(kr(a,k[i+20>>2]|0)|0){c=1;break a}if(Lr(a,k[i+44>>2]|0)|0){c=1;break a}h=h+1|0;if((h|0)>=(k[b>>2]|0)){c=0;break a}else i=i+72|0}b=k[a>>2]|0;i=k[a+20>>2]|0;k[j>>2]=k[a+16>>2];k[j+4>>2]=i;k[j+8>>2]=c;yh(b,29936,j);c=1}else c=0;while(0);r=l;return c|0}function Qr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=r;r=r+16|0;if((r|0)>=(s|0))ka();c=d;e=k[a>>2]|0;if((((i[e+145>>0]|0)==0?(i[a+18>>0]|0)==0:0)?(k[e+24>>2]&2048|0)==0:0)?(Kc(b,25568,7)|0)==0:0){k[c>>2]=b;yh(a,28440,c);a=1}else a=0;r=d;return a|0}function Rr(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0;v=r;r=r+16|0;if((r|0)>=(s|0))ka();u=v;do if(b){p=c&1;t=(d|0)!=0;if(t){e=k[d>>2]|0;n=32768}else{e=Xt(b,c)|0;e=rh(a,e,((e|0)<0)<<31>>31)|0;n=0}k[u>>2]=e;if(e){h=(p|0)==0;if(!h)if(!(k[b+12>>2]|0))m=(k[b+20>>2]|0)==0?16396:8220;else m=8220;else m=48;o=m&60;q=b+4|0;j=k[q>>2]|0;if((j&1024|0)==0?(f=k[b+8>>2]|0,(f|0)!=0):0){g=f;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;l=(g-f&1073741823)+1|0}else l=0;if(h){if(!(j&16384))g=(j&8192|0)==0?48:28;else g=12;pw(e|0,b|0,g|0)|0;kw(e+g|0,0,48-g|0)|0}else pw(e|0,b|0,o|0)|0;j=e+4|0;f=m&24576|n|k[j>>2]&-122881;k[j>>2]=f;if(l){f=e+o|0;k[e+8>>2]=f;pw(f|0,k[b+8>>2]|0,l|0)|0;f=k[j>>2]|0}g=k[q>>2]|0;do if(!((f|g)&16384)){f=b+20|0;if(!(g&2048)){p=Ur(a,k[f>>2]|0,p)|0;k[e+20>>2]=p;break}else{p=lr(a,k[f>>2]|0,p)|0;k[e+20>>2]=p;break}}while(0);f=k[j>>2]|0;if(!(f&24576)){if(k[q>>2]&16384)break;p=Rr(a,k[b+12>>2]|0,0,0)|0;k[e+12>>2]=p;p=Rr(a,k[b+16>>2]|0,0,0)|0;k[e+16>>2]=p;break}p=Yt(b,c)|0;k[u>>2]=(k[u>>2]|0)+p;if(f&8192){p=Rr(a,k[b+12>>2]|0,1,u)|0;k[e+12>>2]=p;p=Rr(a,k[b+16>>2]|0,1,u)|0;k[e+16>>2]=p}if(t)k[d>>2]=k[u>>2]}}else e=0;while(0);r=v;return e|0}function Sr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(c=rh(a,8,0)|0,(c|0)!=0):0){f=b+4|0;k[c+4>>2]=k[f>>2];d=rh(a,k[f>>2]<<3,0)|0;k[c>>2]=d;if(!d){rg(a,c);c=0;break}if((k[f>>2]|0)>0){e=0;while(1){g=k[b>>2]|0;h=ph(a,k[g+(e<<3)>>2]|0)|0;k[d+(e<<3)>>2]=h;k[d+(e<<3)+4>>2]=k[g+(e<<3)+4>>2];e=e+1|0;if((e|0)>=(k[f>>2]|0))break a;d=k[c>>2]|0}}}else c=0;while(0);return c|0}function Tr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=c+4|0;e=(k[d>>2]|0)+40|0;a=rh(a,e,0)|0;if(a){kw(a|0,0,e|0)|0;e=a+40|0;pw(e|0,k[c>>2]|0,k[d>>2]|0)|0;k[a+12>>2]=e;k[a+16>>2]=k[d>>2];i[a>>0]=b}return a|0}function Ur(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;do if((b|0)!=0?(d=rh(a,8,0)|0,(d|0)!=0):0){e=k[b>>2]|0;k[d>>2]=e;if(!(c&1)){f=k[b>>2]|0;e=1;while(1)if((e|0)<(f|0))e=e<<1;else break}e=rh
13 e=0;g=k[f+(e*20|0)+4>>2]|0;if(!(j[v+(g*40|0)+8>>1]&1)){g=+Zg(v+(g*40|0)|0)!=0.0;g=(g^(i[z>>0]|0)==46)&1}else g=k[f+(e*20|0)+12>>2]|0;if(!g){O=v;w=f;P=R;Q=S}else{O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0}break}case 286:{ee=0;if(!(j[v+((k[f+(e*20|0)+4>>2]|0)*40|0)+8>>1]&1)){O=v;w=f;P=R;Q=S}else{O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0}break}case 288:{ee=0;if(!(j[v+((k[f+(e*20|0)+4>>2]|0)*40|0)+8>>1]&1)){O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0}else{O=v;w=f;P=R;Q=S}break}case 290:{ee=0;P=k[f+(g*20|0)+8>>2]|0;x=k[f+(g*20|0)+12>>2]|0;B=v+(x*40|0)|0;O=k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0;H=k[O+80>>2]|0;w=k[O>>2]|0;if(!(i[O+26>>0]|0)){if((w|0)!=0?(i[w+73>>0]|0)!=1:0){Qd=om(O)|0;ee=295}}else{Qd=nm(O)|0;ee=295}if((ee|0)==295?(ee=0,(Qd|0)!=0):0){h=Qd;ee=1318;break c}I=O+60|0;z=k[Xd>>2]|0;u:do if((k[I>>2]|0)==(z|0)){z=j[O+22>>1]|0;if((z&65535|0)>(P|0))ee=350;else{E=O+72|0;ee=318}}else{do if(i[O+25>>0]|0){if(!w){F=k[O+16>>2]|0;C=k[v+(F*40|0)+12>>2]|0;k[O+68>>2]=C;k[O+64>>2]=C;F=k[v+(F*40|0)+16>>2]|0;o=O+76|0;k[o>>2]=F;break}e=v+(x*40|0)+8|0;if(!(j[e>>1]&9312)){j[e>>1]=1;break u}else{Ag(B);break u}}else{if(!(i[O+27>>0]&4)){pm(w,qd);E=m[w+40>>1]|0;F=k[w+32>>2]|0;k[O+76>>2]=F;z=k[qd>>2]|0;k[O+64>>2]=z}else{z=O+64|0;qm(w,z);E=m[w+40>>1]|0;F=k[w+32>>2]|0;k[O+76>>2]=F;z=k[z>>2]|0}k[O+68>>2]=z>>>0>E>>>0?E:z;if(z>>>0>(k[wb>>2]|0)>>>0){h=q;ee=1316;break c}o=O+76|0;z=k[Xd>>2]|0;C=E}while(0);k[I>>2]=z;z=i[F>>0]|0;if(z<<24>>24>-1){D=z&255;k[cd>>2]=D;F=1}else{F=rm(F,cd)|0;D=k[cd>>2]|0}E=O+72|0;k[E>>2]=F&255;j[O+22>>1]=0;k[H>>2]=D;if(D>>>0>98307){h=q;ee=313;break c}if(D>>>0>(k[O+64>>2]|0)>>>0){h=q;ee=313;break c}if(C>>>0<D>>>0){k[o>>2]=0;k[O+68>>2]=0;z=0;ee=318}else{z=0;ee=318}}while(0);do if((ee|0)==318){ee=0;F=k[E>>2]|0;D=k[H>>2]|0;if(F>>>0<D>>>0){N=O+76|0;C=k[N>>2]|0;if(!C){Q=Gd+0|0;C=Q+40|0;do{k[Q>>2]=0;Q=Q+4|0}while((Q|0)<(C|0));F=sm(w,0,k[H>>2]|0,((l[O+27>>0]|0)>>>2&1^1)&255,Gd)|0;if(F){f=F;h=q;ee=1309;break c}z=O+22|0;M=z;z=j[z>>1]|0;F=k[E>>2]|0;D=k[H>>2]|0;K=k[Gb>>2]|0}else{M=O+22|0;K=C}o=z&65535;J=k[H+(o<<2)>>2]|0;k[cd>>2]=J;e=K+D|0;F=K+F|0;while(1){C=i[F>>0]|0;if(C<<24>>24>-1){I=C&255;k[Id>>2]=I;F=F+1|0}else{F=F+((rm(F,Id)|0)&255)|0;I=k[Id>>2]|0}k[O+(o<<2)+84>>2]=I;if(I>>>0>11)C=(I+-12|0)>>>1;else C=l[34336+I>>0]|0;I=J+C|0;k[cd>>2]=I;if(I>>>0<J>>>0){F=I;C=o;ee=331;break}C=o+1|0;k[H+(C<<2)>>2]=I;if((o|0)<(P|0)&F>>>0<e>>>0){J=I;o=C}else break}if((ee|0)==331){ee=0;I=F;F=K+(D+1)|0}j[M>>1]=C;k[E>>2]=F-K;if(!(k[N>>2]|0)){if(!((j[Hb>>1]&9312)==0&(k[Ib>>2]|0)==0))Vg(Gd);j[Hb>>1]=1}if(F>>>0>=e>>>0){if(F>>>0>e>>>0){h=q;ee=343;break c}if((I|0)==(k[O+64>>2]|0))z=I;else{h=q;ee=343;break c}}else z=k[O+64>>2]|0;if(I>>>0>z>>>0){h=q;ee=343;break c}z=j[M>>1]|0}if((z&65535|0)<=(P|0)){if((i[f+(g*20|0)+1>>0]|0)==-8){cm(B,k[f+(g*20|0)+16>>2]|0,2048);e=v+(x*40|0)+8|0;break}e=v+(x*40|0)+8|0;if(!(j[e>>1]&9312)){j[e>>1]=1;break}else{Ag(B);break}}else ee=350}while(0);if((ee|0)==350){ee=0;e=v+(x*40|0)+8|0;if(j[e>>1]&9312)Ag(B);F=k[O+(P<<2)+84>>2]|0;k[Id>>2]=F;do if((k[O+68>>2]|0)>>>0<(k[H+(P+1<<2)>>2]|0)>>>0){Q=i[f+(g*20|0)+3>>0]|0;if(!((Q&255)>63?F>>>0>11&(F&1|0)==0|Q<<24>>24<0:0)){if(F>>>0>11)z=(F+-12|0)>>>1;else z=l[34336+F>>0]|0;if(z){z=sm(w,k[H+(P<<2)>>2]|0,z,((l[O+27>>0]|0)>>>2&1^1)&255,B)|0;if(z){f=z;h=q;ee=1309;break c}tm(k[v+(x*40|0)+16>>2]|0,F,B)|0;j[e>>1]=m[e>>1]&61439;break}}tm(F>>>0<14?qd:0,F,B)|0}else tm((k[O+76>>2]|0)+(k[H+(P<<2)>>2]|0)|0,F,B)|0;while(0);i[v+(x*40|0)+10>>0]=Gc}w=m[e>>1]|0;if((w&4096|0)!=0?(vc=v+(x*40|0)+16|0,xc=k[vc>>2]|0,(xc|0)!=0):0){o=k[v+(x*40|0)+12>>2]|0;if(kh(B,o+2|0)|0){u=ce;v=fe;e=d;d=q;ee=1317;break a}pw(k[vc>>2]|0,xc|0,o|0)|0;i[(k[vc>>2]|0)+o>>0]=0;i[(k[vc>>2]|0)+(o+1)>>0]=0;j[e>>1]=w&18|512;O=v;w=f;P=R;Q=S;e=g}else{O=v;w=f;P=R;Q=S;e=g}break}case 368:{ee=0;o=k[f+(e*20|0)+16>>2]|0;g=i[o>>0]|0;if(!(g<<24>>24)){O=v;w=f;P=R;Q=S}else{w=v+((k[f+(e*20|0)+4>>2]|0)*40|0)|0;while(1){o=o+1|0;km(w,g,Gc);g=i[o>>0]|0;if(!(g<<24>>24)){O=v;w=f;P=R;Q=S;break}else w=w+40|0}}break}case 371:{ee=0;P=k[f+(g*20|0)+4>>2]|0;z=k[f+(g*20|0)+16>>2]|0;Q=v+(P*40|0)|0;P=v+((P+-1+(k[f+(g*20|0)+8>>2]|0)|0)*40|0)|0;x=i[Jb>>0]|0;O=k[f+(g*20|0)+12>>2]|0;n=v+(O*40|0)|0;if(z){w=i[z>>0]|0;e=Q;while(1){z=z+1|0;km(e,w,Gc);w=i[z>>0]|0;if(!(w<<24>>24))break;else e=e+40|0}}K=(x&255)>3;I=0;o=0;M=0;e=0;H=P;while(1){J=j[H+8>>1]|0;E=J&65535;v:do if(!(E&1)){do if(!(E&4)){if(E&8){F=7;ee=388;break v}F=k[H+12>>2]|0;if(E&16384)F=(k[H>>2]|0)+F|0;F=(F<<1)+12|E>>>1&1}else{E=H;F=k[E>>2]|0;E=k[E+4>>2]|0;D=jw(F|0,E|0,63)|0;D=D^F;C=L^E;if(C>>>0<0|(C|0)==0&D>>>0<128){if(!((F&1|0)==(F|0)&0==(E|0)&K)){F=1;ee=388;break v}F=D+8|0;break}if(C>>>0<0|(C|0)==0&D>>>0<32768){F=2;ee=388;break v}if(C>>>0<0|(C|0)==0&D>>>0<8388608){F=3;ee=388;break v}if(C>>>0<0|(C|0)==0&D>>>0<2147483648){F=4;ee=388;break v}F=C>>>0<32768|(C|0)==32768&D>>>0<0?5:6;ee=388;break v}while(0);k[H+28>>2]=F;if(F>>>0>11){E=F;F=(F+-12|0)>>>1}else ee=391}else{F=0;ee=388}while(0);if((ee|0)==388){k[H+28>>2]=F;ee=391}if((ee|0)==391){ee=0;E=F;F=l[34336+F>>0]|0}do if(J&16384)if((I|0)==0&(o|0)==0){J=k[H>>2]|0;F=F-J|0;J=J+e|0;break}else{Wg(H)|0;J=e;break}else J=e;while(0);I=ow(F|0,((F|0)<0)<<31>>31|0,I|0,o|0)|0;o=L;if(E>>>0<128)F=1;else{D=0;F=0;do{F=F+1|0;E=rw(E|0,D|0,7)|0;D=L}while(((E|0)!=0|(D|0)!=0)&(F|0)<9)}F=F+M|0;H=H+-40|0;if(H>>>0<Q>>>0){C=F;break}else{M=F;e=J}}if((C|0)<127)E=C+1|0;else{E=C;D=((C|0)<0)<<31>>31;F=0;do{F=F+1|0;E=rw(E|0,D|0,7)|0;D=L}while(((E|0)!=0|(D|0)!=0)&(F|0)<9);C=F+C|0;E=C;D=((C|0)<0)<<31>>31;z=0;do{z=z+1|0;E=rw(E|0,D|0,7)|0;D=L}while(((E|0)!=0|(D|0)!=0)&(z|0)<9);E=((F|0)<(z|0)&1)+C|0}F=((E|0)<0)<<31>>31;e=ow(E|0,F|0,I|0,o|0)|0;K=L;N=k[wb>>2]|0;M=((N|0)<0)<<31>>31;if((K|0)>(M|0)|(K|0)==(M|0)&e>>>0>N>>>0){h=q;ee=1316;break c}if(kh(n,e)|0){u=ce;v=fe;e=d;d=q;ee=1317;break a}H=k[v+(O*40|0)+16>>2]|0;if(E>>>0<128){i[H>>0]=E;o=1;I=Q}else{o=(um(H,E,F)|0)&255;I=Q}while(1){D=k[I+28>>2]|0;if(D>>>0<128){i[H+o>>0]=D;F=1}else F=(um(H+o|0,D,0)|0)&255;o=F+o|0;F=H+E|0;if(!(D>>>0<8&(D|0)!=0))if(D>>>0>11){z=k[I+12>>2]|0;pw(F|0,k[I+16>>2]|0,z|0)|0}else z=0;else{F=I;if(D>>>0>11)z=(D+-12|0)>>>1;else z=l[34336+D>>0]|0;C=k[F>>2]|0;F=k[F+4>>2]|0;D=z;while(1){D=D+-1|0;i[H+(D+E)>>0]=C;C=rw(C|0,F|0,8)|0;if(!D)break;else F=L}}I=I+40|0;if(I>>>0>P>>>0)break;else E=z+E|0}k[v+(O*40|0)+12>>2]=e;e=v+(O*40|0)+8|0;j[e>>1]=16;if(J){k[n>>2]=J;j[e>>1]=16400}i[v+(O*40|0)+10>>0]=1;O=v;w=f;P=R;Q=S;e=g;break}case 446:{ee=0;if((k[Yd>>2]|0)>0){h=q;ee=447;break c}if(!o)w=0;else{g=o;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;w=g-o&1073741823}z=xm(he,0,(k[Lb>>2]|0)+(k[Kb>>2]|0)|0)|0;if(z){g=e;h=z;ee=1318;break c}g=rh(he,w+33|0,0)|0;if(!g){O=v;w=f;P=R;Q=S}else{Q=g+32|0;k[g>>2]=Q;pw(Q|0,o|0,w+1|0)|0;if(!(i[ae>>0]|0))k[Lb>>2]=(k[Lb>>2]|0)+1;else{i[ae>>0]=0;i[Pb>>0]=1}k[g+24>>2]=k[Mb>>2];k[Mb>>2]=g;O=Nb;w=k[O+4>>2]|0;P=g+8|0;k[P>>2]=k[O>>2];k[P+4>>2]=w;P=Ob;w=k[P+4>>2]|0;O=g+16|0;k[O>>2]=k[P>>2];k[O+4>>2]=w;O=v;w=f;P=R;Q=S}break}case 486:{k[Lb>>2]=(k[Lb>>2]|0)+-1;ee=488;break}case 525:{ee=0;Bm(k[(k[Td>>2]|0)+(k[f+(e*20|0)+4>>2]<<4)+4>>2]|0,k[f+(e*20|0)+12>>2]|0,Uc);w=k[Uc>>2]|0;O=n;k[O>>2]=w;k[O+4>>2]=((w|0)<0)<<31>>31;O=v;w=f;P=R;Q=S;break}case 558:{ee=0;n=Cm(a,k[f+(g*20|0)+4>>2]|0,k[f+(g*20|0)+8>>2]|0,-1,1)|0;if(!n){u=ce;v=fe;e=d;d=q;ee=1317;break a}w=k[f+(g*20|0)+16>>2]|0;z=n+8|0;k[z>>2]=w;x=k[f+(g*20|0)+12>>2]|0;w=m[w+6>>1]<<2;e=w+148|0;o=rhrh(he,(J<<2)+4|0,0)|0;if(!e){u=ce;v=fe;e=d;d=q;ee=1317;break a}x=k[f+(g*20|0)+12>>2]|0;H=k[f+(g*20|0)+4>>2]|0;G=v+(H*40|0)|0;if((J|0)>0){z=0;do{Q=_g(v+((z+H|0)*40|0)|0)|0;k[e+(z<<2)>>2]=Q;z=z+1|0}while((z|0)!=(J|0));z=J}else z=0;k[e+(z<<2)>>2]=0;E=k[(k[Td>>2]|0)+(l[f+(g*20|0)+3>>0]<<4)+4>>2]|0;N=v+(x*40|0)|0;Q=k[N>>2]|0;M=k[E+4>>2]|0;k[M+4>>2]=k[E>>2];E=k[M>>2]|0;o=k[(k[E+204>>2]|0)+12>>2]|0;k[Pd>>2]=M;k[fa>>2]=E;E=k[M+44>>2]|0;k[ja>>2]=E;k[la>>2]=Q;k[ma+0>>2]=0;k[ma+4>>2]=0;k[ma+8>>2]=0;k[ma+12>>2]=0;k[ma+16>>2]=0;do if(!E){x=0;z=0}else{F=(E>>>3)+1|0;D=vg(F,0)|0;if(!D){k[pa>>2]=0;x=0;z=1;break}kw(D|0,0,F|0)|0;k[pa>>2]=D;K=M+32|0;F=(((k[2514]|0)>>>0)/((k[K>>2]|0)>>>0)|0)+1|0;if(F>>>0<=E>>>0){Q=D+(F>>>3)|0;i[Q>>0]=l[Q>>0]|1<<(F&7)}k[ra>>2]=Kd;k[sa>>2]=Kd;k[qa>>2]=0;k[ta>>2]=0;k[ua>>2]=100;k[va>>2]=1e9;i[xa>>0]=0;i[wa>>0]=2;k[oa>>2]=43592;z=k[(k[M+12>>2]|0)+56>>2]|0;hn(Pd,1,l[z+33>>0]<<16|l[z+32>>0]<<24|l[z+34>>0]<<8|l[z+35>>0],l[z+37>>0]<<16|l[z+36>>0]<<24|l[z+38>>0]<<8|l[z+39>>0]);k[oa>>2]=0;z=k[la>>2]|0;if(!((J|0)<1|(z|0)==0)){C=M+17|0;D=0;do{E=e+(D<<2)|0;F=k[E>>2]|0;if(F){if((i[C>>0]|0)!=0&(F|0)>1){jn(Pd,F,1,0);F=k[E>>2]|0}k[oa>>2]=43608;kn(Pd,F,0,0)|0;k[oa>>2]=0;z=k[la>>2]|0}D=D+1|0}while(!((D|0)>=(J|0)|(z|0)==0))}if(!((k[ja>>2]|0)==0|(z|0)==0)){B=M+17|0;z=M+36|0;I=1;do{D=I>>>3;F=i[(k[pa>>2]|0)+D>>0]|0;C=1<<(I&7);do if(!(F&255&C)){if(I>>>0<2)E=0;else{E=I+-2|0;E=E-((E>>>0)%(((((k[z>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;E=((E+1|0)==(((k[2514]|0)>>>0)/((k[K>>2]|0)>>>0)|0|0)?3:2)+E|0}if((E|0)==(I|0)?(i[B>>0]|0)!=0:0)break;k[ge>>2]=I;ln(Pd,43632,ge);F=i[(k[pa>>2]|0)+D>>0]|0}while(0);do if(F&255&C){if(I>>>0<2)F=0;else{F=I+-2|0;F=F-((F>>>0)%(((((k[z>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;F=((F+1|0)==(((k[2514]|0)>>>0)/((k[K>>2]|0)>>>0)|0|0)?3:2)+F|0}if((F|0)!=(I|0))break;if(!(i[B>>0]|0))break;k[ge>>2]=I;ln(Pd,43656,ge)}while(0);I=I+1|0}while(!((k[la>>2]|0)==0?1:I>>>0>(k[ja>>2]|0)>>>0))}z=k[(k[(k[M>>2]|0)+204>>2]|0)+12>>2]|0;if((o|0)!=(z|0)){k[ge>>2]=o;k[ge+4>>2]=z;ln(Pd,43696,ge)}$c(k[pa>>2]|0);if(k[na>>2]|0){mn(qa);x=0;z=(k[ma>>2]|0)+1|0;break}z=k[ma>>2]|0;if(!z)mn(qa);x=yg(qa)|0}while(0);rg(he,e);Q=N;Q=iw(k[Q>>2]|0,k[Q+4>>2]|0,z|0,((z|0)<0)<<31>>31|0)|0;w=N;k[w>>2]=Q;k[w+4>>2]=L;w=v+(H*40|0)+8|0;if(!(j[w>>1]&9312))j[w>>1]=1;else Ag(G);if(z){if(!x){u=ce;v=fe;e=d;d=q;ee=1317;break a}ah(G,x,-1,1,1)|0}bm(G,ub)|0;O=v;w=f;P=R;Q=S;e=g;break}case 947:{ee=0;o=k[f+(g*20|0)+4>>2]|0;e=v+(o*40|0)|0;n=k[f+(g*20|0)+8>>2]|0;o=v+(o*40|0)+8|0;if((j[o>>1]&32)==0?(nn(e),(j[o>>1]&32)==0):0){u=ce;v=fe;e=d;d=q;ee=1317;break a}O=v+(n*40|0)|0;on(k[e>>2]|0,k[O>>2]|0,k[O+4>>2]|0);O=v;w=f;P=R;Q=S;n=F;e=g;break}case 966:{ee=0;w=k[f+(g*20|0)+4>>2]|0;N=v+(w*40|0)|0;M=v+((k[f+(g*20|0)+12>>2]|0)*40|0)|0;K=k[f+(g*20|0)+16>>2]|0;w=v+(w*40|0)+8|0;if((j[w>>1]&32)==0?(nn(N),(j[w>>1]&32)==0):0){u=ce;v=fe;e=d;d=q;ee=1317;break a}if(K){I=k[N>>2]|0;G=M;J=k[G>>2]|0;G=k[G+4>>2]|0;o=I+28|0;if((k[o>>2]|0)!=(K|0)){e=I+8|0;F=k[e>>2]|0;if(F){E=I+20|0;H=I+26|0;if(!(j[H>>1]&1))F=pn(F)|0;D=k[E>>2]|0;A:do if(!D){dd=F;od=E;ee=978}else{while(1){E=D+12|0;C=k[E>>2]|0;if(!C)break;B=D+8|0;qn(C,ge,Pd);k[E>>2]=0;F=rn(k[ge>>2]|0,F)|0;D=k[B>>2]|0;if(!D){dd=F;od=B;ee=978;break A}}Q=sn(F)|0;k[E>>2]=Q}while(0);if((ee|0)==978?(ee=0,Hc=tn(I)|0,k[od>>2]=Hc,(Hc|0)!=0):0){Q=Hc;k[Q>>2]=0;k[Q+4>>2]=0;k[Hc+8>>2]=0;Q=sn(dd)|0;k[Hc+12>>2]=Q}k[e>>2]=0;k[I+12>>2]=0;j[H>>1]=m[H>>1]|1}k[o>>2]=K}z=k[I+20>>2]|0;B:do if(z){C:while(1){x=k[z+12>>2]|0;if(x)do{w=x;B=k[w>>2]|0;w=k[w+4>>2]|0;if((w|0)<(G|0)|(w|0)==(G|0)&B>>>0<J>>>0)x=x+8|0;else{if(!((w|0)>(G|0)|(w|0)==(G|0)&B>>>0>J>>>0))break C;x=x+12|0}x=k[x>>2]|0}while((x|0)!=0);z=k[z+8>>2]|0;if(!z)break B}O=v;w=f;P=R;Q=S;e=(k[f+(g*20|0)+8>>2]|0)+-1|0;break q}while(0);if((K|0)>-1)z=M;else{O=v;w=f;P=R;Q=S;e=g;break}}else z=M;O=z;on(k[N>>2]|0,k[O>>2]|0,k[O+4>>2]|0);O=v;w=f;P=R;Q=S;e=g;break}case 993:{ee=0;o=k[f+(e*20|0)+16>>2]|0;E=k[f+(e*20|0)+12>>2]|0;I=v+(E*40|0)|0;if((i[f+(e*20|0)+3>>0]|0)!=0?(Ic=k[o+20>>2]|0,fd=k[pb>>2]|0,(fd|0)!=0):0){w=fd;while(1){if((k[w+28>>2]|0)==(Ic|0)){O=v;w=f;P=R;Q=S;break q}w=k[w+4>>2]|0;if(!w){g=e;break}}}else g=e;e=k[qb>>2]|0;if((e|0)>=(k[ya>>2]|0)){h=q;ee=998;break c}B=v+(E*40|0)+8|0;if(!(j[B>>1]&64)){z=o+12|0;x=k[z>>2]|0;w=x+(k[o+8>>2]|0)|0;f=o+16|0;x=(x<<2)+80+(k[f>>2]|0)+(w*40|0)|0;F=rh
14 function Jv(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=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=a+20|0;r=a+14|0;b=i[r>>0]|0;w=a+13|0;c=i[w>>0]|0;a:do if((b&255)>(c&255))b=0;else{y=a+4|0;z=a+16|0;s=a+8|0;t=a+12|0;u=a+24|0;v=a+28|0;e=b&255;f=k[y>>2]|0;d=k[A>>2]|0;b:while(1){q=k[a+(e+-2<<2)+24>>2]|0;p=k[a+(e+-1<<2)+24>>2]|0;if(f){while(1){o=f+12|0;if((d|0)<(k[o>>2]|0)){c=d;b=(k[f+20>>2]|0)+(d*48|0)|0;while(1){do if((k[b+8>>2]|0)==(q|0)?(k[b+12>>2]|0)==(p|0):0){if((l[r>>0]|0)>=3?(k[(k[b>>2]|0)+4>>2]&1|0)!=0:0)break;n=b+18|0;d=j[n>>1]|0;if((d&1024)!=0?(x=i[w>>0]|0,(x&255)<22):0){e=k[(k[b>>2]|0)+16>>2]|0;c:do if(!e)e=0;else while(1){g=k[e+4>>2]|0;if(!(g&4096))break c;if(!(g&262144))e=e+12|0;else e=k[(k[e+20>>2]|0)+4>>2]|0;e=k[e>>2]|0;if(!e){e=0;break}}while(0);d:do if(!(x<<24>>24)){m=0;g=0}else{h=k[e+28>>2]|0;m=e+32|0;g=0;while(1){if((k[a+(g<<2)+24>>2]|0)==(h|0)?(k[a+((g|1)<<2)+24>>2]|0)==(j[m>>1]|0):0){m=x;break d}g=g+2|0;if((g|0)>=(x&255|0)){m=x;break}}}while(0);if((g|0)==(m&255|0)){k[a+(g<<2)+24>>2]=k[e+28>>2];k[a+((g|1)<<2)+24>>2]=j[e+32>>1];i[w>>0]=(l[w>>0]|0)+2}}e=d&65535;if(e&k[z>>2]){if((k[s>>2]|0)!=0&(e&128|0)==0){h=k[k[f>>2]>>2]|0;g=k[b>>2]|0;e=i[t>>0]|0;d=(sv(g)|0)<<24>>24;if((d|0)==66){if(e<<24>>24!=66)break}else if((d|0)!=65?e<<24>>24<=66:0)break;d=Tu(h,k[g+12>>2]|0,k[g+16>>2]|0)|0;if(!d)d=k[(k[h>>2]|0)+8>>2]|0;if(id(k[d>>2]|0,k[s>>2]|0)|0)break;d=j[n>>1]|0}if(!(d&2))break b;d=k[(k[b>>2]|0)+16>>2]|0;if((i[d>>0]|0)!=-102)break b;if((k[d+28>>2]|0)!=(k[u>>2]|0))break b;if((j[d+32>>1]|0)!=(k[v>>2]|0))break b}}while(0);c=c+1|0;if((c|0)>=(k[o>>2]|0))break;else b=b+48|0}c=k[y>>2]|0}else c=f;f=k[c+4>>2]|0;k[y>>2]=f;if(!f)break;else d=0}b=i[r>>0]|0;c=i[w>>0]|0}f=k[a>>2]|0;k[y>>2]=f;d=(b&255)+2|0;b=d&255;i[r>>0]=b;if((b&255)>(c&255)){b=0;break a}else{e=d&255;d=0}}k[A>>2]=c+1}while(0);return b|0}function Kv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,n=0;c=k[a>>2]|0;h=k[k[c>>2]>>2]|0;a=k[a+16>>2]|0;a:do if(!a){c=c+16|0;e=k[c>>2]|0;g=b+36|0;if((k[g>>2]&512|0)!=0&(e|0)!=0){a=b+20|0;f=b+22|0;d=i[b+16>>0]|0;do{do if((i[e+16>>0]|0)==d<<24>>24?(k[e+36>>2]&512|0)!=0:0){if(Yv(e,b)|0){j[a>>1]=j[e+20>>1]|0;j[f>>1]=(m[e+22>>1]|0)+65535;break}if(Yv(b,e)|0){j[a>>1]=j[e+20>>1]|0;j[f>>1]=(m[e+22>>1]|0)+1}}while(0);e=k[e+52>>2]|0}while((e|0)!=0)}a=Zv(c,b)|0;if(a){c=k[a>>2]|0;b:do if(c){a=c+52|0;if(k[a>>2]|0)do{a=Zv(a,b)|0;if(!a)break b;d=k[a>>2]|0;if(!d)break b;k[a>>2]=k[d+52>>2];Ou(h,d);rg(h,d)}while((k[a>>2]|0)!=0)}else{c=rhrh,m)|0}g=(ja(h|0)|0)-(ja(m|0)|0)|0;if(g>>>0<=30){j=g+1|0;g=31-g|0;h=j;i=m<<g|n>>>(j>>>0);j=m>>>(j>>>0);f=0;g=n<<g;break}if(!e){l=0;m=0;return (L=l,m)|0}k[e>>2]=a|0;k[e+4>>2]=l|b&0;l=0;m=0;return (L=l,m)|0}while(0);if(!h){l=g;h=0;g=0}else{m=c|0|0;l=o|d&0;b=ow(m,l,-1,-1)|0;a=L;c=g;g=0;do{p=c;c=f>>>31|c<<1;f=g|f<<1;p=i<<1|p>>>31|0;o=i>>>31|j<<1|0;iw(b,a,p,o)|0;n=L;d=n>>31|((n|0)<0?-1:0)<<1;g=d&1;i=iw(p,o,d&m,(((n|0)<0?-1:0)>>31|((n|0)<0?-1:0)<<1)&l)|0;j=L;h=h-1|0}while((h|0)!=0);l=c;h=0}c=0;if(e){k[e>>2]=i;k[e+4>>2]=j}l=(f|0)>>>31|(l|c)<<1|(c<<1|f>>>31)&0|h;m=(f<<1|0>>>31)&-2|g;return (L=l,m)|0}function Bw(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return ec[a&1](b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function Cw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return fc[a&63](b|0,c|0,d|0)|0}function Dw(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;gc[a&1](b|0,c|0,d|0,e|0,f|0,g|0)}function Ew(a,b){a=a|0;b=b|0;hc[a&31](b|0)}function Fw(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ic[a&1](b|0,c|0,d|0,e|0,f|0)}function Gw(a,b,c){a=a|0;b=b|0;c=c|0;return +jc[a&1](b|0,c|0)}function Hw(a,b,c){a=a|0;b=b|0;c=+c;kc[a&1](b|0,+c)}function Iw(a,b){a=a|0;b=b|0;return +lc[a&1](b|0)}function Jw(a){a=a|0;return mc[a&7]()|0}function Kw(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;return nc[a&3](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)|0}function Lw(a,b,c){a=a|0;b=b|0;c=c|0;oc[a&15](b|0,c|0)}function Mw(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return pc[a&7](b|0,c|0,d|0,e|0,f|0,g|0)|0}function Nw(a,b){a=a|0;b=b|0;return qc[a&127](b|0)|0}function Ow(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;rc[a&63](b|0,c|0,d|0)}function Pw(a){a=a|0;sc[a&3]()}function Qw(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;return tc[a&3](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)|0}function Rw(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return uc[a&31](b|0,c|0,d|0,e|0)|0}function Sw(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;vc[a&15](b|0,c|0,d|0,e|0)}function Tw(a,b,c){a=a|0;b=b|0;c=c|0;return wc[a&127](b|0,c|0)|0}function Uw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return xc[a&1](b|0,c|0,+d)|0}function Vw(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return yc[a&31](b|0,c|0,d|0,e|0,f|0)|0}function Ww(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;ma(0);return 0}function Xw(a,b,c){a=a|0;b=b|0;c=c|0;na(1);return 0}function Yw(a,b,c){a=a|0;b=b|0;c=c|0;return yb(a|0,b|0,c|0)|0}function Zw(a,b,c){a=a|0;b=b|0;c=c|0;return bc(a|0,b|0,c|0)|0}function _w(a,b,c){a=a|0;b=b|0;c=c|0;return Kb(a|0,b|0,c|0)|0}function $w(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;oa(2)}function ax(a){a=a|0;pa(3)}function bx(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;qa(4)}function cx(a,b){a=a|0;b=b|0;ra(5);return 0.0}function dx(a,b){a=a|0;b=+b;sa(6)}function ex(a){a=a|0;ta(7);return 0.0}function fx(){ua(8);return 0}function gx(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;va(9);return 0}function hx(a,b){a=a|0;b=b|0;wa(10)}function ix(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;xa(11);return 0}function jx(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return Zb(a|0,b|0,c|0,d|0,e|0,f|0)|0}function kx(a){a=a|0;ya(12);return 0}function lx(a){a=a|0;return ac(a|0)|0}function mx(a){a=a|0;return Ab(a|0)|0}function nx(a){a=a|0;return mb(a|0)|0}function ox(a,b,c){a=a|0;b=b|0;c=c|0;za(13)}function px(){Aa(14)}function qx(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;Ba(15);return 0}function rx(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Ca(16);return 0}function sx(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Da(17)}function tx(a,b){a=a|0;b=b|0;Ea(18);return 0}function ux(a,b){a=a|0;b=b|0;return jb(a|0,b|0)|0}function vx(a,b){a=a|0;b=b|0;return $b(a|0,b|0)|0}function wx(a,b){a=a|0;b=b|0;return Nb(a|0,b|0)|0}function xx(a,b){a=a|0;b=b|0;return kb(a|0,b|0)|0}function yx(a,b){a=a|0;b=b|0;return Eb(a|0,b|0)|0}function zx(a,b){a=a|0;b=b|0;return Cb(a|0,b|0)|0}function Ax(a,b){a=a|0;b=b|0;return Fb(a|0,b|0)|0}function Bx(a,b){a=a|0;b=b|0;return Yb(a|0,b|0)|0}function Cx(a,b,c){a=a|0;b=b|0;c=+c;Fa(19);return 0}function Dx(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;Ga(20);return 0}