/external/fdlibm/ |
H A D | k_rem_pio2.c | 112 * iq[] integer array by breaking up q[] in 24-bits chunk. 170 int jz,jx,jv,jp,jk,carry,n,iq[20],i,j,k,m,q0,ih; local 193 /* distill q[] into iq[] reversingly */ 196 iq[i] = (int)(z-two24*fw); 206 if(q0>0) { /* need iq[jz-1] to determine n */ 207 i = (iq[jz-1]>>(24-q0)); n += i; 208 iq[jz-1] -= i<<(24-q0); 209 ih = iq[jz-1]>>(23-q0); 211 else if(q0==0) ih = iq[jz-1]>>23; 217 j = iq[ [all...] |
/external/webrtc/webrtc/libjingle/xmpp/ |
H A D | xmpplogintask.cc | 256 XmlElement iq(QN_IQ); 257 iq.AddAttr(QN_TYPE, "set"); 260 iq.AddAttr(QN_ID, iqId_); 261 iq.AddElement(new XmlElement(QN_BIND_BIND, true)); 264 iq.AddElement(new XmlElement(QN_BIND_RESOURCE), 1); 265 iq.AddText(pctx_->requested_resource_, 2); 267 pctx_->InternalSendStanza(&iq); 290 XmlElement iq(QN_IQ); 291 iq.AddAttr(QN_TYPE, "set"); 294 iq [all...] |
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/services/ |
H A D | bs.py | 71 iq = self.sd.get_obj('input_queue') 72 if iq: 75 m = iq.read() 78 iq.delete_message(m) 79 m = iq.read() 129 iq = self.sd.get_obj('input_queue') 130 if iq: 131 print('The input_queue (%s) contains approximately %s messages' % (iq.id, iq.count()))
|
/external/v8/src/base/ |
H A D | ieee754.cc | 490 * iq[] integer array by breaking up q[] in 24-bits chunk. 525 int32_t jz, jx, jv, jp, jk, carry, n, iq[20], i, j, k, m, q0, ih; local 553 /* distill q[] into iq[] reversingly */ 556 iq[i] = static_cast<int32_t>(z - two24 * fw); 566 if (q0 > 0) { /* need iq[jz-1] to determine n */ 567 i = (iq[jz - 1] >> (24 - q0)); 569 iq[jz - 1] -= i << (24 - q0); 570 ih = iq[jz - 1] >> (23 - q0); 572 ih = iq[jz - 1] >> 23; 581 j = iq[ [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
H A D | TransliteratorParser.java | 502 int iq = rule.indexOf(QUOTE, pos); 503 if (iq == pos) { 515 if (iq < 0) { 518 buf.append(rule.substring(pos, iq)); 519 pos = iq+1; 522 iq = rule.indexOf(QUOTE, pos+1); 530 for (iq=quoteStart; iq<quoteLimit; ++iq) { 531 parser.checkVariableRange(buf.charAt(iq), rul [all...] |
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/ |
H A D | TransliteratorParser.java | 501 int iq = rule.indexOf(QUOTE, pos); 502 if (iq == pos) { 514 if (iq < 0) { 517 buf.append(rule.substring(pos, iq)); 518 pos = iq+1; 521 iq = rule.indexOf(QUOTE, pos+1); 529 for (iq=quoteStart; iq<quoteLimit; ++iq) { 530 parser.checkVariableRange(buf.charAt(iq), rul [all...] |
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
H A D | XMPSerializerRDF.java | 518 for (Iterator iq = node.iterateQualifier(); iq.hasNext();) 520 XMPNode qualifier = (XMPNode) iq.next(); 757 for (Iterator iq = node.iterateQualifier(); iq.hasNext();) 759 XMPNode qualifier = (XMPNode) iq.next();
|
/external/icu/icu4c/source/i18n/ |
H A D | rbt_pars.cpp | 458 int32_t iq = rule.indexOf(QUOTE, pos); local 459 if (iq == pos) { 471 if (iq < 0) { 475 rule.extractBetween(pos, iq, scratch); 477 pos = iq+1; 480 iq = rule.indexOf(QUOTE, pos+1); 488 for (iq=quoteStart; iq<quoteLimit; ++iq) { 489 if (!parser.checkVariableRange(buf.charAt(iq))) { [all...] |
/external/mesa3d/src/gallium/drivers/radeon/ |
H A D | AMDILISelLowering.cpp | 544 // int iq = (int)fq; 545 SDValue iq = DAG.getNode(ISD::FP_TO_SINT, DL, INTTY, fq); local 563 // dst = iq + jq; 564 iq = DAG.getSExtOrTrunc(iq, DL, OVT); 565 iq = DAG.getNode(ISD::ADD, DL, OVT, iq, jq); 566 return iq;
|
/external/webp/src/dsp/ |
H A D | enc_neon.c | 824 const uint16x8_t iq = vld1q_u16(&mtx->iq_[offset]); local 832 const uint32x4_t m0 = vmull_u16(vget_low_u16(c), vget_low_u16(iq)); 833 const uint32x4_t m1 = vmull_u16(vget_high_u16(c), vget_high_u16(iq));
|
/external/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUISelLowering.cpp | 1611 // int iq = (int)fq; 1612 SDValue iq = DAG.getNode(ToInt, DL, IntVT, fq); local 1629 iq = sign ? DAG.getSExtOrTrunc(iq, DL, VT) : DAG.getZExtOrTrunc(iq, DL, VT); 1631 // dst = iq + jq; 1632 SDValue Div = DAG.getNode(ISD::ADD, DL, VT, iq, jq);
|
/external/libavc/common/arm/ |
H A D | ih264_iquant_itrans_recon_a9.s | 336 vmov.16 d0[0], r9 @ Restore dc value since its chroma iq-it
|
/external/v8/test/mjsunit/asm/sqlite3/ |
H A D | sqlite-pointer-masking.js | 6 function Zr(f,g,k,l,m){f=f|0;g=g|0;k=k|0;l=l|0;m=m|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;B=i;i=i+16|0;if((i|0)>=(j|0))fa();y=B;z=B+8|0;c[(z&p)>>2]=0;a:do if(!g){c[(m&p)>>2]=0;r=0}else{s=a[(g&n)>>0]|0;if(s<<24>>24==-98)do{g=c[(g&p)+12>>2]|0;s=a[(g&n)>>0]|0}while(s<<24>>24==-98);if(s<<24>>24==-97)u=d[(g&n)+38>>0]|0;else u=s&255;if((u|0)==38){t=Xq(c[(g&p)+8>>2]|0,0)|0;r=Zr(f,c[(g&p)+12>>2]|0,k,t,m)|0;s=c[(m&p)>>2]|0;if(!s)break;gm(s,t,1);fm(c[(m&p)>>2]|0,l,1);break}else if((u|0)==157){g=c[(g&p)+12>>2]|0;u=a[(g&n)>>0]|0;if((u&-2)<<24>>24==-124){t=-1;s=-1;x=u&255;u=26016;A=12}else A=30}else{t=1;s=0;x=u;u=10360;A=12}b:do if((A|0)==12){c:do switch(x|0){case 157:{g=c[(g&p)+12>>2]|0;A=30;break b}case 97:case 132:case 133:{r=mh(f,40,0)|0;if(!r){c[(z&p)>>2]=r;break c}v=r+0|0;w=v+40|0;do{a[(v&n)>>0]=0;v=v+1|0}while((v|0)<(w|0));b[(r&o)+8>>1]=1;c[(r&p)+32>>2]=f;c[(z&p)>>2]=r;do if(!(c[(g&p)+4>>2]&1024)){t=c[(g&p)+8>>2]|0;c[(y&p)>>2]=u;c[(y&p)+4>>2]=t;t=uh(f,19456,y)|0;if(!t)break c;if(r)Xg(r,t,-1,1,75)|0}else{u=c[(g&p)+8>>2]|0;u=sw(u|0,((u|0)<0)<<31>>31|0,t|0,s|0)|0;t=G;g=r+8|0;if(!(b[(g&o)>>1]&9312)){z=r;c[(z&p)>>2]=u;c[(z&p)+4>>2]=t;b[(g&o)>>1]=4;break}else{Zg(r,u,t);break}}while(0);if((x&-2|0)==132&l<<24>>24==65)fm(r,67,1);else fm(r,l,1);s=r+8|0;g=e[(s&o)>>1]|0;if(g&12)b[(s&o)>>1]=g&65533;if(k<<24>>24==1){s=r;r=0;break b}s=r;r=Yl(r,k&255)|0;break b}case 101:{r=mh(f,40,0)|0;if(!r){c[(z&p)>>2]=r;break c}else{v=r+0|0;w=v+40|0;do{a[(v&n)>>0]=0;v=v+1|0}while((v|0)<(w|0));b[(r&o)+8>>1]=1;c[(r&p)+32>>2]=f;c[(z&p)>>2]=r;s=r;r=0;break b}}case 134:{r=mh(f,40,0)|0;if(!r){c[(z&p)>>2]=r;break c}v=r+0|0;w=v+40|0;do{a[(v&n)>>0]=0;v=v+1|0}while((v|0)<(w|0));b[(r&o)+8>>1]=1;c[(r&p)+32>>2]=f;c[(z&p)>>2]=r;s=(c[(g&p)+8>>2]|0)+2|0;g=s;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;z=(g-s&1073741823)+-1|0;Xg(r,Yt(f,s,z)|0,(z|0)/2|0,0,75)|0;s=r;r=0;break b}default:{s=0;r=0;break b}}while(0);a[(f&n)+65>>0]=1;mg(f,0);Mh(r);r=7;break a}while(0);if((A|0)==30){y=(Zr(f,g,k,l,z)|0)==0;s=c[(z&p)>>2]|0;if(y&(s|0)!=0){op(s);t=s+8|0;g=b[(t&o)>>1]|0;do if(!(g&8)){u=s;r=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if((r|0)==0&(u|0)==-2147483648){h[(s&q)>>3]=9223372036854775808.0;b[(t&o)>>1]=g&48640|8;break}else{y=dw(0,0,r|0,u|0)|0;z=s;c[(z&p)>>2]=y;c[(z&p)+4>>2]=G;break}}else h[(s&q)>>3]=-+h[(s&q)>>3];while(0);fm(s,l,k);r=0}else r=0}c[(m&p)>>2]=s}while(0);i=B;return r|0}function _r(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;do if((d|0)!=0?(g=b+19|0,h=a[(g&n)>>0]|0,(h&255)<8):0){f=0;e=b+116|0;while(1){if((c[(e&p)+12>>2]|0)==(d|0)){f=5;break}f=f+1|0;if((f|0)>=10){f=7;break}else e=e+20|0}if((f|0)==5){a[(e&n)+6>>0]=1;break}else if((f|0)==7){a[(g&n)>>0]=h+1<<24>>24;c[(b+((h&255)<<2)&p)+24>>2]=d;break}}while(0);return}function $r(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+32|0;if((i|0)>=(j|0))fa();o=q;e=b+484|0;l=c[(e&p)>>2]|0;m=c[(b&p)>>2]|0;do if((l|0)!=0?(bs(b),c[(b&p)+512>>2]=0,(c[(l&p)+52>>2]|0)>=1):0){if(a[(m&n)+145>>0]|0)if(!(Ik((c[(l&p)+68>>2]|0)+8|0,c[(l&p)>>2]|0,l)|0)){c[(e&p)>>2]=0;break}else{a[(m&n)+65>>0]=1;break}if(d)c[(b&p)+500>>2]=(c[(d&p)>>2]|0)-(c[(b&p)+496>>2]|0)+(c[(d&p)+4>>2]|0);c[(o&p)>>2]=b+496;k=uh(m,25256,o)|0;d=c[(l&p)+68>>2]|0;a:do if(d){f=c[(m&p)+20>>2]|0;if((f|0)>0){g=c[(m&p)+16>>2]|0;h=0;while(1){e=h+1|0;if((c[(g+(h<<4)&p)+12>>2]|0)==(d|0)){e=h;break a}if((e|0)<(f|0))h=e;else break}}else e=0}else e=-1e6;while(0);g=c[(l&p)>>2]|0;h=c[(b&p)+384>>2]|0;c[(o&p)>>2]=c[((c[(m&p)+16>>2]|0)+(e<<4)&p)>>2];c[(o&p)+4>>2]=(e|0)==1?13184:13208;c[(o&p)+8>>2]=g;c[(o&p)+12>>2]=g;c[(o&p)+16>>2]=k;c[(o&p)+20>>2]=h;Br(b,25280,o);mg(m,k);k=Oq(b)|0;Dr(b,e);wh(k,144,0,0,0)|0;c[(o&p)>>2]=c[(l&p)>>2];Ir(k,e,uh(m,25368,o)|0);b=b+72|0;o=(c[(b&p)>>2]|0)+1|0;c[(b&p)>>2]=o;b=c[(l&p)>>2]|0;xh(k,wh(k,97,0,o,0)|0,b,0);wh(k,147,e,o,0)|0}while(0);i=q;return}function as(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=b+52|0;i=c[(h&p)>>2]|0;e=i+1|0;c[(h&p)>>2]=e;g=(i<<2)+8|0;f=b+56|0;g=ro(a,c[(f&p)>>2]|0,g,((g|0)<0)<<31>>31)|0;if(!g){if((i|0)>0){b=0;do{mg(a,c[((c[(f&p)>>2]|0)+(b<<2)&p)>>2]|0);b=b+1|0}while((b|0)!=(i|0))}mg(a,d);mg(a,c[(f&p)>>2]|0);c[(h&p)>>2]=0}else{c[(g+(i<<2)&p)>>2]=d;c[(g+(e<<2)&p)>>2]=0}c[(f&p)>>2]=g;return}function bs(b){b=b|0;var d=0,e=0,f=0,g=0;d=c[(b&p)+512>>2]|0;if((d|0)!=0?(g=c[(b&p)+484>>2]|0,(g|0)!=0):0){e=c[(b&p)+516>>2]|0;f=c[(b&p)>>2]|0;b=jw(e|0,((e|0)<0)<<31>>31|0,1,0)|0;b=mh(f,b,G)|0;if(!b)b=0;else{kw(b|0,d|0,e|0)|0;a[(b+e&n)>>0]=0}as(f,g,b)}return}function cs(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();l=q;m=c[(b&p)>>2]|0;o=Wq(m,e)|0;k=(d|0)!=0;if((o|0)!=0&k?(h=c[(d&p)>>2]|0,(h|0)>0):0){e=h;h=0;do{if(!(dd(o,c[(d+(h<<4)&p)+8>>2]|0)|0)){c[(l&p)>>2]=o;th(b,25184,l);e=c[(d&p)>>2]|0}h=h+1|0}while((h|0)<(e|0))}if(k){h=(c[(d&p)>>2]<<4)+24|0;h=ro(m,d,h,((h|0)<0)<<31>>31)|0;if(!h)e=10;else{d=h;e=11}}else{e=mh(m,24,0)|0;if(!e)e=10;else{h=e+0|0;d=h+24|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(d|0));d=e;e=11}}if((e|0)==10){Nk(m,f);Mk(m,g,1);mg(m,o)}else if((e|0)==11){m=d+8|0;c[(m+(c[(d&p)>>2]<<4)&p)+8>>2]=g;g=c[(d&p)>>2]|0;c[(m+(g<<4)&p)+4>>2]=f;c[(m+(g<<4)&p)>>2]=o;c[(m+(g<<4)&p)+12>>2]=0;c[(d&p)>>2]=g+1}i=q;return d|0}function ds(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,k=0,l=0,m=0,q=0;q=i;i=i+96|0;if((i|0)>=(j|0))fa();m=q+48|0;f=q;g=c[(c[(b&p)+32>>2]&p)>>2]|0;h=m+0|0;k=g+0|0;l=h+48|0;do{a[(h&n)>>0]=a[(k&n)>>0]|0;h=h+1|0;k=k+1|0}while((h|0)<(l|0));if((a[(b&n)+43>>0]|0)!=2){h=c[(b&p)+4>>2]|0;cc[c[((c[(h&p)>>2]|0)&p)+60>>2]&31](h)}h=f+0|0;k=g+48|0;l=h+48|0;do{a[(h&n)>>0]=a[(k&n)>>0]|0;h=h+1|0;k=k+1|0}while((h|0)<(l|0));if((Zv(m,f,48)|0)==0?(a[(m&n)+12>>0]|0)!=0:0){k=m+40|0;l=m;g=0;f=0;do{g=g+f+(c[(l&p)>>2]|0)|0;f=g+f+(c[(l&p)+4>>2]|0)|0;l=l+8|0}while(l>>>0<k>>>0);if((g|0)==(c[(k&p)>>2]|0)?(f|0)==(c[(m&p)+44>>2]|0):0){f=b+52|0;if(!(Zv(f,m,48)|0))f=0;else{c[(d&p)>>2]=1;h=f+0|0;k=m+0|0;l=h+48|0;do{c[(h&p)>>2]=c[(k&p)>>2];h=h+4|0;k=k+4|0}while((h|0)<(l|0));f=e[(b&o)+66>>1]|0;c[(b&p)+36>>2]=f<<16&65536|f&65024;f=0}}else f=1}else f=1;i=q;return f|0}function es(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;b=tc[c[((c[(a&p)>>2]|0)&p)+8>>2]&31](a,g,4,b,e)|0;if(!b)c[(f&p)>>2]=(d[(g&n)+1>>0]|0)<<16|(d[(g&n)>>0]|0)<<24|(d[(g&n)+2>>0]|0)<<8|(d[(g&n)+3>>0]|0);i=h;return b|0}function fs(a,b){a=a|0;b=b|0;var c=0,d=0,f=0;if(b>>>0<0|(b|0)==0&a>>>0<8)if(b>>>0<0|(b|0)==0&a>>>0<2)a=0;else{c=40;do{c=(c&65535)+65526|0;a=iw(a|0,b|0,1)|0;b=G}while(b>>>0<0|(b|0)==0&a>>>0<8);c=c&65535;f=11}else{if(b>>>0>0|(b|0)==0&a>>>0>255){d=b;c=40;while(1){c=(c&65535)+40|0;f=mw(a|0,d|0,4)|0;b=G;if(d>>>0>0|(d|0)==0&a>>>0>4095){a=f;d=b}else{a=f;break}}c=c&65535}else c=40;if(b>>>0>0|(b|0)==0&a>>>0>15){while(1){c=(c&65535)+10&65535;d=mw(a|0,b|0,1)|0;if(b>>>0>0|(b|0)==0&a>>>0>31){a=d;b=G}else{a=d;break}}f=11}else f=11}if((f|0)==11)a=(c&65535)+65526+(e[((a&7)<<1&o)+13496>>1]|0)&65535;return a|0}function gs(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;k=c[(b&p)+408>>2]|0;k=(k|0)==0?b:k;i=k+396|0;h=c[(i&p)>>2]|0;j=c[(k&p)+400>>2]|0;a:do if((h|0)>0){b=0;while(1){if((c[(j+(b<<4)&p)>>2]|0)==(d|0)?(c[(j+(b<<4)&p)+4>>2]|0)==(e|0):0)break;b=b+1|0;if((b|0)>=(h|0)){l=8;break a}}b=j+(b<<4)+8|0;if(!(a[(b&n)>>0]|0))h=f<<24>>24!=0&1;else h=1;a[(b&n)>>0]=h}else l=8;while(0);do if((l|0)==8){b=(h<<4)+16|0;b=Wl(c[(k&p)>>2]|0,j,b,((b|0)<0)<<31>>31)|0;c[(k&p)+400>>2]=b;if(!b){c[(i&p)>>2]=0;a[((c[(k&p)>>2]|0)&n)+65>>0]=1;break}else{h=c[(i&p)>>2]|0;c[(i&p)>>2]=h+1;c[(b+(h<<4)&p)>>2]=d;c[(b+(h<<4)&p)+4>>2]=e;a[(b+(h<<4)&n)+8>>0]=f;c[(b+(h<<4)&p)+12>>2]=g;break}}while(0);return}function hs(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=b[(f&o)+48>>1]|0;l=i&65535;h=e[(f&o)+46>>1]|0;m=d+64|0;if(!(c[(m&p)>>2]|0)){g=c[(d&p)>>2]|0;if(!(a[(f&n)+51>>0]&8))k=Rs(g,l,0)|0;else k=Rs(g,h,l-h|0)|0;if(k){if(i<<16>>16){j=f+32|0;f=f+28|0;h=k+16|0;g=0;do{i=c[((c[(j&p)>>2]|0)+(g<<2)&p)>>2]|0;if(!(_v(i,11152)|0))i=0;else i=cr(d,i)|0;c[(k+(g<<2)&p)+20>>2]=i;a[((c[(h&p)>>2]|0)+g&n)>>0]=a[((c[(f&p)>>2]|0)+g&n)>>0]|0;g=g+1|0}while((g|0)<(l|0))}g=(c[(m&p)>>2]|0)==0;if(!g){g=(c[(k&p)>>2]|0)+-1|0;c[(k&p)>>2]=g;if(!g){Wc(k);g=0}else g=0}else g=g?k:0}else g=0}else g=0;return g|0}function is(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;I=i;i=i+112|0;if((i|0)>=(j|0))fa();D=I;F=I+100|0;G=I+96|0;m=I+48|0;E=c[(d&p)+8>>2]|0;c[(F&p)>>2]=0;c[(G&p)>>2]=0;C=c[(d&p)>>2]|0;a:do if(!E)g=0;else{b:do if(!f)H=16;else{t=a[(f&n)>>0]|0;s=t&255;do switch(s|0){case 94:case 88:case 87:case 92:case 86:case 85:case 93:case 90:case 91:case 89:case 71:case 72:{D=$t(d,c[(f&p)+12>>2]|0,F)|0;wh(E,s,$t(d,c[(f&p)+16>>2]|0,G)|0,D,g)|0;break b}case 156:{h=c[(f&p)+40>>2]|0;k=b[(f&o)+34>>1]|0;l=c[(h&p)+28>>2]|0;if(!(a[(h&n)>>0]|0)){g=c[(l+(k*24|0)&p)+16>>2]|0;break b}if(a[(h&n)+1>>0]|0){wh(E,47,c[(h&p)+8>>2]|0,c[(l+(k*24|0)&p)+12>>2]|0,g)|0;break b}break}case 79:case 78:case 83:case 80:case 81:case 82:{B=f+12|0;D=$t(d,c[(B&p)>>2]|0,F)|0;C=f+16|0;E=$t(d,c[(C&p)>>2]|0,G)|0;au(d,c[(B&p)>>2]|0,c[(C&p)>>2]|0,s,D,E,g,32);break b}case 133:{_t(E,c[(f&p)+8>>2]|0,0,g);break b}case 97:{D=c[(f&p)+8>>2]|0;xh(E,wh(E,97,0,g,0)|0,D,0);break b}case 158:case 95:{g=is(d,c[(f&p)+12>>2]|0,g)|0;break b}case 38:{k=is(d,c[(f&p)+12>>2]|0,g)|0;if((k|0)!=(g|0))wh(E,34,k,g,0)|0;wh(E,40,g,(Xq(c[(f&p)+8>>2]|0,0)|0)<<24>>24,0)|0;dt(d,g,1);break b}case 119:case 20:{g=eu(d,f,0,0)|0;break b}case 75:{D=xs(E)|0;q=xs(E)|0;wh(E,28,0,g,0)|0;fu(d,f,D,q);wh(E,25,1,g,0)|0;k=E+24|0;h=c[(k&p)>>2]|0;l=~D;if((D|0)<0?(r=c[(h&p)+112>>2]|0,(r|0)!=0):0)c[(r+(l<<2)&p)>>2]=c[(E&p)+32>>2];m=E+32|0;c[(h&p)+88>>2]=(c[(m&p)>>2]|0)+-1;wh(E,37,g,0,0)|0;l=c[(k&p)>>2]|0;k=~q;if((q|0)<0?(u=c[(l&p)+112>>2]|0,(u|0)!=0):0)c[(u+(k<<2)&p)>>2]=c[(m&p)>>2];c[(l&p)+88>>2]=(c[(m&p)>>2]|0)+-1;break b}case 155:{k=c[(f&p)+40>>2]|0;if(!k){c[(D&p)>>2]=c[(f&p)+8>>2];th(d,28936,D);break b}else{g=c[((c[(k&p)+40>>2]|0)+(b[(f&o)+34>>1]<<4)&p)+8>>2]|0;break b}}case 19:case 96:{wh(E,s,$t(d,c[(f&p)+12>>2]|0,F)|0,g,0)|0;break b}case 77:case 76:{wh(E,25,1,g,0)|0;h=wh(E,s,$t(d,c[(f&p)+12>>2]|0,F)|0,0,0)|0;wh(E,25,0,g,0)|0;k=c[(E&p)+32>>2]|0;if(k>>>0>h>>>0)c[((c[(E&p)+4>>2]|0)+(h*20|0)&p)+8>>2]=k;c[((c[(E&p)+24>>2]|0)&p)+88>>2]=k+-1;break b}case 157:{k=f+12|0;h=c[(k&p)>>2]|0;l=a[(h&n)>>0]|0;if(l<<24>>24==-124){Zt(d,h,1,g);break b}else if(l<<24>>24==-123){_t(E,c[(h&p)+8>>2]|0,1,g);break b}else{a[(m&n)>>0]=-124;c[(m&p)+4>>2]=17408;c[(m&p)+8>>2]=0;D=$t(d,m,F)|0;wh(E,90,$t(d,c[(k&p)>>2]|0,G)|0,D,g)|0;break b}}case 57:{if(!(c[(d&p)+412>>2]|0)){th(d,29e3,D);g=0;break a}l=a[(f&n)+1>>0]|0;if(l<<24>>24!=2){h=c[(f&p)+8>>2]|0;if(l<<24>>24==4){xh(E,wh(E,24,0,4,0)|0,h,0);break b}}else{h=c[(d&p)+408>>2]|0;a[(((h|0)==0?d:h)&n)+21>>0]=1;h=c[(f&p)+8>>2]|0}zs(d,1811,l<<24>>24,h,0,0);break b}case 148:case 73:{B=f+12|0;D=$t(d,c[(B&p)>>2]|0,F)|0;C=f+16|0;E=$t(d,c[(C&p)>>2]|0,G)|0;au(d,c[(B&p)>>2]|0,c[(C&p)>>2]|0,t<<24>>24==73?79:78,D,E,g,160);break b}case 135:{k=f+32|0;wh(E,31,b[(k&o)>>1]|0,g,0)|0;if(!(a[((c[(f&p)+8>>2]|0)&n)+1>>0]|0))break b;xh(E,-1,c[((c[(d&p)+472>>2]|0)+((b[(k&o)>>1]|0)+-1<<2)&p)>>2]|0,-2);break b}case 154:break;case 153:{r=a[(C&n)+62>>0]|0;A=f+4|0;if((c[(A&p)>>2]&16384|0)==0?(q=c[(f&p)+20>>2]|0,(q|0)!=0):0){B=c[(q&p)>>2]|0;y=1;z=q}else{B=0;y=0;z=0}t=c[(f&p)+8>>2]|0;if(!t)s=0;else{s=t;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-t&1073741823}m=Sh(C,t,s,B,r,0)|0;if((m|0)!=0?(c[(m&p)+12>>2]|0)!=0:0){x=m+2|0;q=e[(x&o)>>1]|0;if(q&512){m=xs(E)|0;l=z+4|0;Rq(d,c[(c[(l&p)>>2]&p)>>2]|0,g);if((B|0)>1){k=d+100|0;h=1;do{wh(E,77,g,m,0)|0;dt(d,g,1);c[(k&p)>>2]=(c[(k&p)>>2]|0)+1;Rq(d,c[((c[(l&p)>>2]|0)+(h*20|0)&p)>>2]|0,g);bu(d);h=h+1|0}while((h|0)!=(B|0))}l=c[(E&p)+24>>2]|0;k=~m;if((m|0)<0?(w=c[(l&p)+112>>2]|0,(w|0)!=0):0)c[(w+(k<<2)&p)>>2]=c[(E&p)+32>>2];c[(l&p)+88>>2]=(c[(E&p)+32>>2]|0)+-1;break b}if(q&1024){Rq(d,c[(c[(z&p)+4>>2]&p)>>2]|0,g);break b}w=(B|0)>0;if(w){s=z+4|0;r=D+20|0;q=D+4|0;k=D+24|0;t=0;h=0;l=0;do{if((h|0)<32?(f=c[((c[(s&p)>>2]|0)+(h*20|0)&p)>>2]|0,c[(D&p)>>2]=0,c[(D&p)+4>>2]=0,c[(D&p)+8>>2]=0,c[(D&p)+12>>2]=0,c[(D&p)+16>>2]=0,c[(D&p)+20>>2]=0,a[(r&n)>>0]=1,c[(D&p)>>2]=78,c[(q&p)>>2]=79,c[(k&p)>>2]=0,rs(D,f)|0,(a[(r&n)>>0]|0)!=0):0)t=t|1<<h;if(!((b[(x&o)>>1]&32)==0|(l|0)!=0))l=cu(d,c[((c[(s&p)>>2]|0)+(h*20|0)&p)>>2]|0)|0;h=h+1|0}while((h|0)!=(B|0));u=t}else{u=0;l=0}if(y){do if(!u){s=d+60|0;t=c[(s&p)>>2]|0;r=d+56|0;q=c[(r&p)>>2]|0;if((q|0)<(B|0)){D=d+72|0;t=c[(D&p)>>2]|0;c[(D&p)>>2]=t+B;t=t+1|0;break}else{c[(s&p)>>2]=t+B;c[(r&p)>>2]=q-B;break}}else{D=d+72|0;t=c[(D&p)>>2]|0;c[(D&p)>>2]=t+B;t=t+1|0}while(0);q=b[(x&o)>>1]|0;if((q&192)!=0?(v=c[(c[(z&p)+4>>2]&p)>>2]|0,D=a[(v&n)>>0]|0,D<<24>>24==-100|D<<24>>24==-102):0)a[(v&n)+38>>0]=q&192;D=d+100|0;c[(D&p)>>2]=(c[(D&p)>>2]|0)+1;bt(d,z,t,3);bu(d)}else t=0;if((B|0)>1?(c[(A&p)>>2]&128|0)!=0:0)m=du(C,m,B,c[((c[(z&p)+4>>2]|0)&p)+20>>2]|0)|0;else if(w)m=du(C,m,B,c[(c[(z&p)+4>>2]&p)>>2]|0)|0;if(b[(m&o)+2>>1]&32){if(!l)l=c[(C&p)+8>>2]|0;xh(E,wh(E,36,0,0,0)|0,l,-4)}xh(E,wh(E,1,u,t,g)|0,m,-5);l=c[(E&p)+4>>2]|0;if(l)a[(l+(((c[(E&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=B;if(!((B|0)!=0&(u|0)==0))break b;dt(d,t,B);k=d+56|0;if((c[(k&p)>>2]|0)>=(B|0))break b;c[(k&p)>>2]=B;c[(d&p)+60>>2]=t;break b}c[(D&p)>>2]=s;c[(D&p)+4>>2]=t;th(d,28968,D);break b}case 101:{H=16;break b}case 24:{g=is(d,c[(f&p)+12>>2]|0,g)|0;break b}case 74:{t=c[(f&p)+12>>2]|0;q=c[((c[(f&p)+20>>2]|0)&p)+4>>2]|0;h=c[(q&p)>>2]|0;r=$t(d,t,F)|0;s=$t(d,h,G)|0;m=d+19|0;k=a[(m&n)>>0]|0;if(k<<24>>24){D=k+-1<<24>>24;a[(m&n)>>0]=D;l=c[(d+((D&255)<<2)&p)+24>>2]|0;if(!(D<<24>>24))H=103;else{D=k+-2<<24>>24;a[(m&n)>>0]=D;m=c[(d+((D&255)<<2)&p)+24>>2]|0}}else{H=d+72|0;l=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=l;H=103}if((H|0)==103){D=d+72|0;m=(c[(D&p)>>2]|0)+1|0;c[(D&p)>>2]=m}au(d,t,h,83,r,s,l,32);D=c[(q&p)+20>>2]|0;_r(d,c[(G&p)>>2]|0);au(d,t,D,81,r,$t(d,D,G)|0,m,32);wh(E,72,l,m,g)|0;_r(d,l);_r(d,m);break b}case 159:{g=c[(f&p)+28>>2]|0;break b}case 132:{Zt(d,f,0,g);break b}case 134:{h=(c[(f&p)+8>>2]|0)+2|0;k=h;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;C=(k-h&1073741823)+-1|0;D=Yt(c[(E&p)>>2]|0,h,C)|0;xh(E,wh(E,30,(C|0)/2|0,g,0)|0,D,-1);break b}case 62:{h=c[(f&p)+44>>2]|0;D=ca((b[(h&o)+38>>1]|0)+1|0,c[(f&p)+28>>2]|0)|0;k=f+32|0;wh(E,132,(b[(k&o)>>1]|0)+1+D|0,g,0)|0;k=b[(k&o)>>1]|0;if(k<<16>>16<=-1)break b;if((a[((c[(h&p)+4>>2]|0)+((k<<16>>16)*24|0)&n)+21>>0]|0)!=69)break b;wh(E,39,g,0,0)|0;break b}default:{x=c[(f&p)+20>>2]|0;v=x+4|0;w=c[(v&p)>>2]|0;x=c[(x&p)>>2]|0;y=xs(E)|0;t=c[(f&p)+12>>2]|0;f=(t|0)!=0;if(f){s=m+0|0;r=t+0|0;q=s+48|0;do{c[(s&p)>>2]=c[(r&p)>>2];s=s+4|0;r=r+4|0}while((s|0)<(q|0));t=$t(d,t,F)|0;a[(m&n)+38>>0]=a[(m&n)>>0]|0;a[(m&n)>>0]=-97;c[(m&p)+28>>2]=t;t=m+4|0;c[(t&p)>>2]=c[(t&p)>>2]&-4097;a[(D&n)>>0]=79;c[(D&p)+12>>2]=m;c[(F&p)>>2]=0;t=D}else t=0;u=x+-1|0;if((u|0)>0){h=d+100|0;q=D+16|0;m=E+24|0;l=E+32|0;k=0;s=t;while(1){c[(h&p)>>2]=(c[(h&p)>>2]|0)+1;t=c[(w+(k*20|0)&p)>>2]|0;if(f){c[(q&p)>>2]=t;t=s}D=xs(E)|0;gt(d,t,D,16);Rq(d,c[(w+((k|1)*20|0)&p)>>2]|0,g);wh(E,16,0,y,0)|0;bu(d);s=c[(m&p)>>2]|0;r=~D;if((D|0)<0?(z=c[(s&p)+112>>2]|0,(z|0)!=0):0)c[(z+(r<<2)&p)>>2]=c[(l&p)>>2];c[(s&p)+88>>2]=(c[(l&p)>>2]|0)+-1;k=k+2|0;if((k|0)>=(u|0))break;else s=t}}if(!(x&1))wh(E,28,0,g,0)|0;else{D=d+100|0;c[(D&p)>>2]=(c[(D&p)>>2]|0)+1;Rq(d,c[((c[(v&p)>>2]|0)+(u*20|0)&p)>>2]|0,g);bu(d)}l=c[(E&p)+24>>2]|0;k=~y;if((y|0)<0?(A=c[(l&p)+112>>2]|0,(A|0)!=0):0)c[(A+(k<<2)&p)>>2]=c[(E&p)+32>>2];c[(l&p)+88>>2]=(c[(E&p)+32>>2]|0)+-1;break b}}while(0);h=c[(f&p)+28>>2]|0;do if((h|0)<0){h=c[(d&p)+92>>2]|0;if((h|0)>0){g=(b[(f&o)+32>>1]|0)+h|0;break b}else{h=c[(d&p)+96>>2]|0;break}}while(0);g=ct(d,c[(f&p)+44>>2]|0,b[(f&o)+32>>1]|0,h,g,a[(f&n)+38>>0]|0)|0}while(0);if((H|0)==16)wh(E,28,0,g,0)|0;_r(d,c[(F&p)>>2]|0);_r(d,c[(G&p)>>2]|0)}while(0);i=I;return g|0}function js(a,b){a=a|0;b=b|0;var d=0;d=Oq(a)|0;gs(a,b,1,1,(b|0)==1?13184:13208);xh(d,wh(d,55,0,1,b)|0,5,-14);b=a+68|0;if(!(c[(b&p)>>2]|0))c[(b&p)>>2]=1;return}function ks(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0;h=f+48|0;if((e[(h&o)>>1]|0|0)<(g|0)){i=g*7|0;d=mh(d,i,((i|0)<0)<<31>>31)|0;if(!d)d=7;else{fw(d|0,0,i|0)|0;j=f+32|0;kw(d|0,c[(j&p)>>2]|0,(e[(h&o)>>1]|0)<<2|0)|0;c[(j&p)>>2]=d;j=d+(g<<2)|0;i=f+4|0;kw(j|0,c[(i&p)>>2]|0,(e[(h&o)>>1]|0)<<1|0)|0;c[(i&p)>>2]=j;i=d+(g*6|0)|0;d=f+28|0;kw(i|0,c[(d&p)>>2]|0,e[(h&o)>>1]|0|0)|0;c[(d&p)>>2]=i;b[(h&o)>>1]=g;d=f+51|0;a[(d&n)>>0]=a[(d&n)>>0]|16;d=0}}else d=0;return d|0}function ls(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();k=r;q=r+4|0;do if(!d)f=0;else{l=c[(a&p)>>2]|0;n=d+24|0;h=l+460|0;g=(c[(h&p)>>2]|0)+(c[(n&p)>>2]|0)|0;f=c[((c[(l&p)>>2]|0)&p)+100>>2]|0;if((f|0)<(g|0)){c[(k&p)>>2]=f;th(l,27152,k);f=1;break}c[(h&p)>>2]=g;k=a+28|0;h=e[(k&o)>>1]|0;m=h&4098;b[(k&o)>>1]=h&61437;c[(q&p)>>2]=0;c[(q&p)+4>>2]=0;c[(q&p)+8>>2]=0;c[(q&p)+12>>2]=0;c[(q&p)+16>>2]=0;c[(q&p)+20>>2]=0;c[(q&p)>>2]=82;c[(q&p)+4>>2]=83;h=q+12|0;c[(h&p)>>2]=l;c[(q&p)+24>>2]=a;rs(q,d)|0;q=(c[(a&p)>>2]|0)+460|0;c[(q&p)>>2]=(c[(q&p)>>2]|0)-(c[(n&p)>>2]|0);if(!((c[(a&p)+24>>2]|0)<=0?(c[((c[(h&p)>>2]|0)&p)+64>>2]|0)<=0:0)){q=d+4|0;c[(q&p)>>2]=c[(q&p)>>2]|8}h=b[(k&o)>>1]|0;g=d+4|0;f=c[(g&p)>>2]|0;if(h&2){f=f|2;c[(g&p)>>2]=f}b[(k&o)>>1]=h&65535|m;f=f>>>3&1}while(0);i=r;return f|0}function ms(a){a=a|0;var e=0,f=0,g=0,h=0,i=0,j=0;i=c[((c[(a&p)+12>>2]|0)&p)+4>>2]|0;f=b[(a&o)+48>>1]|0;if(!(f<<16>>16)){e=0;f=0}else{j=c[(a&p)+4>>2]|0;g=f&65535;h=0;e=0;do{f=b[(j+(h<<1)&o)>>1]|0;if(f<<16>>16<0)f=1;else f=d[(i+((f<<16>>16)*24|0)&n)+22>>0]|0;e=f+e|0;h=h+1|0}while((h|0)<(g|0));e=e<<2;f=0}b[(a&o)+44>>1]=fs(e,f)|0;return}function ns(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;j=c[(d&p)>>2]|0;g=j+24|0;i=c[(g&p)>>2]|0;c[(g&p)>>2]=i&-97|64;Ds(d,e,0);if(!(c[(d&p)+64>>2]|0)){while(1){f=c[(e&p)+52>>2]|0;if(!f){h=e;break}else e=f}c[(g&p)>>2]=i;e=mh(j,76,0)|0;if(e){f=e+0|0;g=f+76|0;do{a[(f&n)>>0]=0;f=f+1|0}while((f|0)<(g|0));b[(e&o)+40>>1]=1;c[(e&p)>>2]=0;b[(e&o)+28>>1]=200;iu(d,c[(h&p)>>2]|0,e+38|0,e+4|0);ju(d,e,h);b[(e&o)+36>>1]=-1;if(a[(j&n)+65>>0]|0){kg(j,e);e=0}}else e=0}else e=0;return e|0}function os(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=c[(d&p)>>2]|0;g=a[(e&n)>>0]|0;a:do if(!(g<<24>>24)){i=0;h=0}else{i=g;j=0;while(1){h=j+1|0;if(!(i<<24>>24==95?1:(a[(i&255&n)+10368>>0]&6)!=0)){h=j;break a}i=a[(e+h&n)>>0]|0;if(!(i<<24>>24)){i=0;break}else j=h}}while(0);if((((g&255)+-48|0)>>>0>=10?(fi(e,h)|0)==27:0)?!((h|0)==0|i<<24>>24!=0):0)k=0;else{a[(b+f&n)>>0]=34;k=1;g=a[(e&n)>>0]|0;f=f+1|0}if(g<<24>>24){h=e;j=0;do{i=f+1|0;a[(b+f&n)>>0]=g;if((a[(h&n)>>0]|0)==34){a[(b+i&n)>>0]=34;f=f+2|0}else f=i;j=j+1|0;h=e+j|0;g=a[(h&n)>>0]|0}while(g<<24>>24!=0)}if(k){a[(b+f&n)>>0]=34;f=f+1|0}a[(b+f&n)>>0]=0;c[(d&p)>>2]=f;return}function ps(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;f=b+20|0;g=a[(f&n)>>0]|0;if(g<<24>>24==2?(c[(e&p)+4>>2]&1|0)!=0:0){a[(f&n)>>0]=0;f=2}else h=4;a:do if((h|0)==4)switch(d[(e&n)>>0]|0|0){case 153:{if((g&255)>3){f=0;break a}if(c[(e&p)+4>>2]&524288){f=0;break a}a[(f&n)>>0]=0;f=2;break a}case 135:if(g<<24>>24==4){a[(f&n)>>0]=0;f=2;break a}else if(g<<24>>24==5){a[(e&n)>>0]=101;f=0;break a}else{f=0;break a}case 156:case 155:case 154:case 27:{if(g<<24>>24==3?(c[(e&p)+28>>2]|0)==(c[(b&p)+24>>2]|0):0){f=0;break a}a[(f&n)>>0]=0;f=2;break a}default:{f=0;break a}}while(0);return f|0}function qs(b,c){b=b|0;c=c|0;a[(b&n)+20>>0]=0;return 2}function rs(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if(!b)b=0;else{d=rc[c[(a&p)>>2]&127](a,b)|0;do if((d|0)==0?(e=b+4|0,(c[(e&p)>>2]&16384|0)==0):0){if(rs(a,c[(b&p)+12>>2]|0)|0){b=2;break a}if(rs(a,c[(b&p)+16>>2]|0)|0){b=2;break a}b=b+20|0;if(!(c[(e&p)>>2]&2048))if(!(lu(a,c[(b&p)>>2]|0)|0))break;else{b=2;break a}else if(!(ku(a,c[(b&p)>>2]|0)|0))break;else{b=2;break a}}while(0);b=d&2}while(0);return b|0}function ss(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;do if(e)if(!f)g=e;else{if((mu(e)|0)==0?(mu(f)|0)==0:0){g=mh(d,48,0)|0;if(g){h=g+0|0;i=h+48|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));a[(g&n)>>0]=72;b[(g&o)+34>>1]=-1;c[(g&p)+24>>2]=1}ts(d,g,e,f);break}Gk(d,e);Gk(d,f);g=nr(d,132,20616,0)|0}else g=f;while(0);return g|0}function ts(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;if(!b){Gk(a,d);Gk(a,e)}else{if(e){c[(b&p)+16>>2]=e;a=b+4|0;c[(a&p)>>2]=c[(a&p)>>2]|c[(e&p)+4>>2]&2097408}if(d){c[(b&p)+12>>2]=d;a=b+4|0;c[(a&p)>>2]=c[(a&p)>>2]|c[(d&p)+4>>2]&2097408}It(b)}return}function us(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;h=d<<16>>16;j=(h<<2)+63&-8;k=h<<1;l=k+2|0;i=(h+7+k+l&-8)+j|0;g=i+e|0;e=mh(a,g,((g|0)<0)<<31>>31)|0;if(e){fw(e|0,0,g|0)|0;c[(e&p)+32>>2]=e+56;c[(e&p)+8>>2]=e+j;g=j+l|0;c[(e&p)+4>>2]=e+g;c[(e&p)+28>>2]=e+(g+k);b[(e&o)+48>>1]=d;b[(e&o)+46>>1]=h+65535;c[(f&p)>>2]=e+i}return e|0}function vs(b,d,f){b=b|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=i;i=i+16|0;if((i|0)>=(j|0))fa();w=C;s=c[(d&p)+12>>2]|0;r=b+68|0;z=c[(r&p)>>2]|0;B=z+1|0;c[(r&p)>>2]=z+2;q=c[(b&p)>>2]|0;l=c[(d&p)+24>>2]|0;a:do if(l){h=c[(q&p)+20>>2]|0;if((h|0)>0){g=c[(q&p)+16>>2]|0;m=0;while(1){k=m+1|0;if((c[(g+(m<<4)&p)+12>>2]|0)==(l|0)){k=m;break a}if((k|0)<(h|0))m=k;else break}}else k=0}else k=-1e6;while(0);if((Sq(b,27,c[(d&p)>>2]|0,0,c[((c[(q&p)+16>>2]|0)+(k<<4)&p)>>2]|0)|0)==0?(gs(b,k,c[(s&p)+32>>2]|0,1,c[(s&p)>>2]|0),A=Oq(b)|0,(A|0)!=0):0){if((f|0)>-1)t=f;else t=c[(d&p)+40>>2]|0;x=hs(b,d)|0;y=c[(r&p)>>2]|0;c[(r&p)>>2]=y+1;v=d+46|0;h=e[(v&o)>>1]|0;if(x)c[(x&p)>>2]=(c[(x&p)>>2]|0)+1;xh(A,wh(A,58,y,0,h)|0,x,-6);Qq(b,z,k,s,54);q=wh(A,108,z,0,0)|0;h=b+19|0;g=a[(h&n)>>0]|0;if(!(g<<24>>24)){s=b+72|0;u=(c[(s&p)>>2]|0)+1|0;c[(s&p)>>2]=u}else{u=g+-1<<24>>24;a[(h&n)>>0]=u;u=c[(b+((u&255)<<2)&p)+24>>2]|0}Pt(b,d,z,u,0,w,0,0)|0;wh(A,109,y,u,0)|0;Qt(b,c[(w&p)>>2]|0);wh(A,9,z,q+1|0,0)|0;s=A+32|0;m=c[(s&p)>>2]|0;if(m>>>0>q>>>0)c[((c[(A&p)+4>>2]|0)+(q*20|0)&p)+8>>2]=m;l=A+24|0;c[((c[(l&p)>>2]|0)&p)+88>>2]=m+-1;if((f|0)<0)wh(A,118,t,k,0)|0;xh(A,wh(A,55,B,t,k)|0,x,-6);r=A+4|0;h=c[(r&p)>>2]|0;if(h)a[(h+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=(f>>31)+4&252|1;q=wh(A,106,y,0,0)|0;h=c[(s&p)>>2]|0;if((a[(d&n)+50>>0]|0)!=0&(x|0)!=0){m=h+3|0;wh(A,16,0,m,0)|0;h=c[(s&p)>>2]|0;t=e[(v&o)>>1]|0;xh(A,wh(A,99,y,m,u)|0,t,-14);nu(b,2,d)}wh(A,100,y,u,B)|0;wh(A,110,B,u,1)|0;g=c[(r&p)>>2]|0;if(g)a[(g+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;_r(b,u);wh(A,5,y,h,0)|0;g=c[(s&p)>>2]|0;if(g>>>0>q>>>0)c[((c[(r&p)>>2]|0)+(q*20|0)&p)+8>>2]=g;c[((c[(l&p)>>2]|0)&p)+88>>2]=g+-1;wh(A,61,z,0,0)|0;wh(A,61,B,0,0)|0;wh(A,61,y,0,0)|0}i=C;return}function ws(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))fa();t=u;s=c[(e&p)>>2]|0;if(!g){g=Yn(s,f,h,0)|0;if(!g)q=4;else q=3}else q=3;if((q|0)==3)if(!(c[(g&p)+12>>2]|0))q=4;else q=14;if((q|0)==4){l=f&255;k=s+224|0;if(c[(k&p)>>2]|0){m=kh(s,h)|0;if(m){qc[c[(k&p)>>2]&15](c[(s&p)+232>>2]|0,s,l,m);mg(s,m);q=7}}else q=7;if((q|0)==7?(r=s+228|0,(c[(r&p)>>2]|0)!=0):0){k=mh(s,40,0)|0;if(!k)k=0;else{m=k+0|0;l=m+40|0;do{a[(m&n)>>0]=0;m=m+1|0}while((m|0)<(l|0));b[(k&o)+8>>1]=1;c[(k&p)+32>>2]=s;Xg(k,h,-1,1,0)|0}g=Sg(k,2)|0;if(g)qc[c[(r&p)>>2]&15](c[(s&p)+232>>2]|0,s,d[(s&n)+62>>0]|0,g);Mh(k)}g=Yn(s,f,h,0)|0;if(!g)q=19;else q=14}a:do if((q|0)==14)if(!(c[(g&p)+12>>2]|0)){l=c[(g&p)>>2]|0;m=0;while(1){k=Yn(s,a[(m&n)+26816>>0]|0,l,0)|0;m=m+1|0;if(c[(k&p)+12>>2]|0)break;if((m|0)>=3){q=19;break a}}c[(g&p)>>2]=c[(k&p)>>2];c[(g&p)+4>>2]=c[(k&p)+4>>2];c[(g&p)+8>>2]=c[(k&p)+8>>2];c[(g&p)+12>>2]=c[(k&p)+12>>2];c[(g&p)+16>>2]=0}while(0);if((q|0)==19){c[(t&p)>>2]=h;th(e,26784,t);g=0}i=u;return g|0}function xs(a){a=a|0;var b=0,d=0;a=c[(a&p)+24>>2]|0;d=a+108|0;b=c[(d&p)>>2]|0;c[(d&p)>>2]=b+1;if(!(b+-1&b)){d=a+112|0;a=Wl(c[(a&p)>>2]|0,c[(d&p)>>2]|0,b<<3|4,0)|0;c[(d&p)>>2]=a}else a=c[(a&p)+112>>2]|0;if(a)c[(a+(b<<2)&p)>>2]=-1;return ~b|0}function ys(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;if(e){g=c[(e&p)>>2]|0;if((g|0)>0){h=(g*72|0)+8|0;g=h;h=((h|0)<0)<<31>>31}else{g=80;h=0}g=mh(d,g,h)|0;if(g){h=c[(e&p)>>2]|0;c[(g&p)+4>>2]=h;c[(g&p)>>2]=h;if((c[(e&p)>>2]|0)>0){h=g+8|0;j=0;do{c[(h+(j*72|0)&p)>>2]=c[(e+(j*72|0)&p)+8>>2];c[(h+(j*72|0)&p)+4>>2]=kh(d,c[(e+(j*72|0)&p)+12>>2]|0)|0;c[(h+(j*72|0)&p)+8>>2]=kh(d,c[(e+(j*72|0)&p)+16>>2]|0)|0;c[(h+(j*72|0)&p)+12>>2]=kh(d,c[(e+(j*72|0)&p)+20>>2]|0)|0;a[(h+(j*72|0)&n)+36>>0]=a[(e+(j*72|0)&n)+44>>0]|0;c[(h+(j*72|0)&p)+40>>2]=c[(e+(j*72|0)&p)+48>>2];c[(h+(j*72|0)&p)+24>>2]=c[(e+(j*72|0)&p)+32>>2];c[(h+(j*72|0)&p)+28>>2]=c[(e+(j*72|0)&p)+36>>2];k=e+(j*72|0)+45|0;i=h+(j*72|0)+37|0;l=a[(i&n)>>0]&-3|a[(k&n)>>0]&2;a[(i&n)>>0]=l;l=l&-5|a[(k&n)>>0]&4;a[(i&n)>>0]=l;a[(i&n)>>0]=l&-9|a[(k&n)>>0]&8;c[(h+(j*72|0)&p)+64>>2]=kh(d,c[(e+(j*72|0)&p)+72>>2]|0)|0;a[(i&n)>>0]=a[(i&n)>>0]&-2|a[(k&n)>>0]&1;c[(h+(j*72|0)&p)+68>>2]=c[(e+(j*72|0)&p)+76>>2];i=c[(e+(j*72|0)&p)+24>>2]|0;c[(h+(j*72|0)&p)+16>>2]=i;if(i){i=i+40|0;b[(i&o)>>1]=(b[(i&o)>>1]|0)+1<<16>>16}c[(h+(j*72|0)&p)+20>>2]=gr(d,c[(e+(j*72|0)&p)+28>>2]|0,f)|0;c[(h+(j*72|0)&p)+44>>2]=Mr(d,c[(e+(j*72|0)&p)+52>>2]|0,f,0)|0;c[(h+(j*72|0)&p)+48>>2]=Nr(d,c[(e+(j*72|0)&p)+56>>2]|0)|0;l=e+(j*72|0)+64|0;k=c[(l&p)+4>>2]|0;i=h+(j*72|0)+56|0;c[(i&p)>>2]=c[(l&p)>>2];c[(i&p)+4>>2]=k;j=j+1|0}while((j|0)<(c[(e&p)>>2]|0))}}else g=0}else g=0;return g|0}function zs(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0;i=Oq(b)|0;if((e|0)==2){k=c[(b&p)+408>>2]|0;a[(((k|0)==0?b:k)&n)+21>>0]=1}xh(i,wh(i,24,d,e,0)|0,f,g<<24>>24);if(h<<24>>24!=0?(j=c[(i&p)+4>>2]|0,(j|0)!=0):0)a[(j+(((c[(i&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=h;return}function As(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)&p)+28>>2]|0;do if(!(a[(b&n)+438>>0]|0)){h=c[(d&p)+68>>2]|0;if((e|0)!=(h|0)?(f=c[(e&p)+48>>2]|0,(f|0)!=0):0){g=d+64|0;e=0;while(1){b=c[(f&p)+8>>2]|0;if((c[(b&p)+24>>2]|0)==(h|0)?(dd(c[(b&p)+4>>2]|0,c[(d&p)>>2]|0)|0)==0:0){if(!e)e=c[(g&p)>>2]|0;c[(b&p)+32>>2]=e}else b=e;f=c[(f&p)>>2]|0;if(!f)break;else e=b}if(b)break}b=c[(d&p)+64>>2]|0}else b=0;while(0);return b|0}function Bs(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;j=c[(b&p)+32>>2]|0;k=b+8|0;i=b+68|0;f=0;while(1){g=(f|0)==0;b=g|(j|0)<(f|0)?j:0;d=c[(k&p)>>2]|0;if(!d)h=b;else{do{e=c[(d&p)+40>>2]|0;b=(g|(e|0)<(f|0))&(e|0)>(b|0)?e:b;d=c[(d&p)+20>>2]|0}while((d|0)!=0);h=b}if(!h)break;b=c[(a&p)>>2]|0;f=c[(i&p)>>2]|0;a:do if(f){g=c[(b&p)+20>>2]|0;if((g|0)>0){d=c[(b&p)+16>>2]|0;e=0;while(1){b=e+1|0;if((c[(d+(e<<4)&p)+12>>2]|0)==(f|0)){b=e;break a}if((b|0)<(g|0))e=b;else break}}else b=0}else b=-1e6;while(0);Er(a,h,b);f=h}return}function Cs(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;a:do if((b|0)!=0?(d=c[(b&p)>>2]|0,(d|0)>0):0){h=a+68|0;f=0;g=b+8|0;while(1){e=g+40|0;if((c[(e&p)>>2]|0)>-1)break a;i=c[(h&p)>>2]|0;c[(h&p)>>2]=i+1;c[(e&p)>>2]=i;e=c[(g&p)+20>>2]|0;if(e){Cs(a,c[(e&p)+32>>2]|0);d=c[(b&p)>>2]|0}f=f+1|0;if((f|0)>=(d|0))break;else g=g+72|0}}while(0);return}function Ds(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0;q=i;i=i+32|0;if((i|0)>=(j|0))fa();m=q;if(((e|0)!=0?(l=(c[(d&p)>>2]|0)+65|0,(a[(l&n)>>0]|0)==0):0)?(h=e+6|0,g=b[(h&o)>>1]|0,(g&32)==0):0){c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)>>2]=84;c[(m&p)+12>>2]=d;k=m+4|0;if(a[(d&n)+22>>0]|0){c[(k&p)>>2]=85;ku(m,e)|0;g=b[(h&o)>>1]|0}c[(k&p)>>2]=86;if(!(g&256))c[(m&p)+8>>2]=9;ku(m,e)|0;g=d+64|0;if((((c[(g&p)>>2]|0)==0?(a[(l&n)>>0]|0)==0:0)?(c[(m&p)>>2]=0,c[(m&p)+4>>2]=0,c[(m&p)+8>>2]=0,c[(m&p)+12>>2]=0,c[(m&p)+16>>2]=0,c[(m&p)+20>>2]=0,c[(m&p)>>2]=82,c[(m&p)+4>>2]=83,c[(m&p)+12>>2]=d,c[(m&p)+24>>2]=f,ku(m,e)|0,(c[(g&p)>>2]|0)==0):0)?(a[(l&n)>>0]|0)==0:0){c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)+8>>2]=10;c[(m&p)>>2]=84;c[(m&p)+12>>2]=d;ku(m,e)|0}}i=q;return}function Es(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;if(a)do{d=c[(a&p)+36>>2]|0;if((d|0)!=0?(h=c[(d&p)+24>>2]|0,(h|0)>(c[(b&p)>>2]|0)):0)c[(b&p)>>2]=h;d=c[(a&p)+44>>2]|0;if((d|0)!=0?(e=c[(d&p)+24>>2]|0,(e|0)>(c[(b&p)>>2]|0)):0)c[(b&p)>>2]=e;d=c[(a&p)+60>>2]|0;if((d|0)!=0?(f=c[(d&p)+24>>2]|0,(f|0)>(c[(b&p)>>2]|0)):0)c[(b&p)>>2]=f;d=c[(a&p)+64>>2]|0;if((d|0)!=0?(g=c[(d&p)+24>>2]|0,(g|0)>(c[(b&p)>>2]|0)):0)c[(b&p)>>2]=g;tu(c[(a&p)>>2]|0,b);tu(c[(a&p)+40>>2]|0,b);tu(c[(a&p)+48>>2]|0,b);a=c[(a&p)+52>>2]|0}while((a|0)!=0);return}function Fs(a,b,d,f){a=a|0;b=b|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0;g=c[(b&p)>>2]|0;h=g+d|0;if(h>>>0>(c[(b&p)+4>>2]|0)>>>0){i=ro(a,b,(h*72|0)+8|0,0)|0;if(i){do if(!a)b=lc[c[8792>>2]&127](i)|0;else{if((c[(a&p)+276>>2]|0)>>>0<=i>>>0?(c[(a&p)+280>>2]|0)>>>0>i>>>0:0){b=e[(a&o)+248>>1]|0;break}b=lc[c[8792>>2]&127](i)|0}while(0);c[(i&p)+4>>2]=(((b+-80|0)>>>0)/72|0)+1;b=i;g=c[(i&p)>>2]|0;j=10}}else j=10;if((j|0)==10){if((g|0)>(f|0)){do{g=g+-1|0;h=b+((g+d|0)*72|0)+8|0;a=b+(g*72|0)+8|0;i=h+72|0;do{c[(h&p)>>2]=c[(a&p)>>2];h=h+4|0;a=a+4|0}while((h|0)<(i|0))}while((g|0)>(f|0));g=c[(b&p)>>2]|0}c[(b&p)>>2]=g+d;fw(b+(f*72|0)+8|0,0,d*72|0)|0;g=f+d|0;if((d|0)>0)do{c[(b+(f*72|0)&p)+48>>2]=-1;f=f+1|0}while((f|0)<(g|0))}return b|0}function Gs(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){f=b+4|0;g=c[(f&p)>>2]|0;h=0;do{i=Hs(a,c[(g+(h*20|0)&p)>>2]|0,d,e)|0;g=c[(f&p)>>2]|0;c[(g+(h*20|0)&p)>>2]=i;h=h+1|0}while((h|0)<(c[(b&p)>>2]|0))}return}function Hs(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0;do if(e){if((a[(e&n)>>0]|0)==-102?(c[(e&p)+28>>2]|0)==(f|0):0){h=b[(e&o)+32>>1]|0;if(h<<16>>16<0){a[(e&n)>>0]=101;break}else{h=Mr(d,c[((c[(g&p)+4>>2]|0)+((h<<16>>16)*20|0)&p)>>2]|0,0,0)|0;Gk(d,e);e=h;break}}h=e+12|0;c[(h&p)>>2]=Hs(d,c[(h&p)>>2]|0,f,g)|0;h=e+16|0;c[(h&p)>>2]=Hs(d,c[(h&p)>>2]|0,f,g)|0;h=e+20|0;if(!(c[(e&p)+4>>2]&2048)){Gs(d,c[(h&p)>>2]|0,f,g);break}else{uu(d,c[(h&p)>>2]|0,f,g);break}}else e=0;while(0);return e|0}function Is(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[(c[(b&p)>>2]&p)>>2]|0;e=b;g=1;while(1){b=c[(e&p)+52>>2]|0;if(!b){f=5;break}if((c[(c[(b&p)>>2]&p)>>2]|0)==(f|0)){e=b;g=g+1|0}else{f=3;break}}a:do if((f|0)==3){Js(a,b);b=1}else if((f|0)==5)if(!e)b=0;else{h=((g|0)<0)<<31>>31;f=0;while(1){i=e+52|0;c[(i&p)>>2]=0;b=ir(a,e,d)|0;c[(i&p)>>2]=f;if(b)break a;b=e+24|0;c[(b&p)>>2]=g;c[(b&p)+4>>2]=h;b=c[(e&p)+56>>2]|0;if(!b){b=0;break a}e=b;f=c[(b&p)+52>>2]|0}}while(0);return b|0}function Js(a,e){a=a|0;e=e|0;var f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;if(!(b[(e&o)+6>>1]&128)){e=d[(e&n)+4>>0]|0;if((e|0)==118)e=35336;else if((e|0)==116)e=35320;else if((e|0)==117)e=35352;else e=35360;c[(f&p)>>2]=e;th(a,35232,f)}else th(a,35184,f);i=g;return}function Ks(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;H=i;i=i+32|0;if((i|0)>=(j|0))fa();y=H;k=c[(f&p)+32>>2]|0;q=c[(c[(f&p)>>2]&p)>>2]|0;v=c[(d&p)+8>>2]|0;w=f+52|0;x=c[(w&p)>>2]|0;if(!(Sq(d,33,0,0,0)|0)){z=xs(v)|0;Os(d,f,z);A=f+60|0;B=c[(A&p)>>2]|0;C=f+64|0;D=c[(C&p)>>2]|0;E=f+8|0;s=c[(E&p)>>2]|0;F=f+12|0;t=c[(F&p)>>2]|0;c[(C&p)>>2]=0;c[(A&p)>>2]=0;c[(F&p)>>2]=0;c[(E&p)>>2]=0;E=f+48|0;F=c[(E&p)>>2]|0;l=c[(k&p)>>2]|0;a:do if((l|0)>0){m=0;while(1){if(a[(k+(m*72|0)&n)+45>>0]&8)break;m=m+1|0;if((m|0)>=(l|0)){r=0;break a}}r=c[(k+(m*72|0)&p)+48>>2]|0}else r=0;while(0);m=d+68|0;k=c[(m&p)>>2]|0;l=k+1|0;c[(m&p)>>2]=l;h=(F|0)!=0;if((a[(f&n)+4>>0]|0)==115){c[(m&p)>>2]=k+2;m=h?8:6}else{m=h?7:5;l=0}a[(y&n)>>0]=m;c[(y&p)+4>>2]=k;a[(y&n)+1>>0]=0;c[(y&p)+8>>2]=0;c[(y&p)+12>>2]=0;I=d+72|0;m=(c[(I&p)>>2]|0)+1|0;c[(I&p)>>2]=m;wh(v,60,r,m,q)|0;if(h){q=vu(d,f)|0;xh(v,wh(v,57,k,(c[(F&p)>>2]|0)+2|0,0)|0,q,-6);c[(y&p)+16>>2]=F}else wh(v,57,k,q,0)|0;if(l){c[(f&p)+16>>2]=wh(v,57,l,0,0)|0;l=f+6|0;b[(l&o)>>1]=e[(l&o)>>1]|8}c[(E&p)>>2]=0;q=x+56|0;c[(q&p)>>2]=0;l=ir(d,x,y)|0;c[(q&p)>>2]=f;if(!l){q=wh(v,108,k,z,0)|0;wh(v,104,r,0,0)|0;if(h)wh(v,47,k,(c[(F&p)>>2]|0)+1|0,m)|0;else wh(v,102,k,m,0)|0;wh(v,95,k,0,0)|0;l=xs(v)|0;it(v,t,l);Ps(d,f,c[(f&p)>>2]|0,r,0,0,g,l,z);if(s)wh(v,140,s,z,0)|0;h=v+24|0;m=c[(h&p)>>2]|0;k=~l;if((l|0)<0?(u=c[(m&p)+112>>2]|0,(u|0)!=0):0)c[(u+(k<<2)&p)>>2]=c[(v&p)+32>>2];l=v+32|0;c[(m&p)+88>>2]=(c[(l&p)>>2]|0)+-1;c[(w&p)>>2]=0;ir(d,f,y)|0;c[(w&p)>>2]=x;wh(v,16,0,q,0)|0;h=c[(h&p)>>2]|0;k=~z;if((z|0)<0?(G=c[(h&p)+112>>2]|0,(G|0)!=0):0)c[(G+(k<<2)&p)>>2]=c[(l&p)>>2];c[(h&p)+88>>2]=(c[(l&p)>>2]|0)+-1}Nk(c[(d&p)>>2]|0,c[(E&p)>>2]|0);c[(E&p)>>2]=F;c[(A&p)>>2]=B;c[(C&p)>>2]=D}i=H;return}function Ls(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,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;$=i;i=i+48|0;if((i|0)>=(j|0))fa();u=$+40|0;N=$+20|0;O=$;X=c[(f&p)>>2]|0;U=c[(f&p)+8>>2]|0;W=xs(U)|0;T=xs(U)|0;Y=g+4|0;P=a[(Y&n)>>0]|0;Z=g+52|0;_=c[(Z&p)>>2]|0;w=g+48|0;m=c[(w&p)>>2]|0;l=c[(m&p)>>2]|0;R=P<<24>>24==116;a:do if(!R?(s=X+65|0,(a[(s&n)>>0]|0)==0):0){q=u+4|0;t=1;while(1){if((t|0)>(c[(c[(g&p)>>2]&p)>>2]|0)){Q=l;v=14;break a}b:do if((l|0)>0){k=0;r=c[(m&p)+4>>2]|0;while(1){if((e[(r&o)+16>>1]|0)==(t|0))break b;k=k+1|0;if((k|0)<(l|0))r=r+20|0;else break}}else k=0;while(0);if((k|0)==(l|0)){c[(u&p)>>2]=0;c[(q&p)>>2]=0;k=nr(X,132,u,0)|0;if(!k){k=7;break a}J=k+4|0;c[(J&p)>>2]=c[(J&p)>>2]|1024;c[(k&p)+8>>2]=t;k=lr(f,m,k)|0;if(!k)k=0;else{b[((c[(k&p)+4>>2]|0)+(l*20|0)&o)+16>>1]=t;l=l+1|0}}else k=m;if(!(a[(s&n)>>0]|0)){t=t+1|0;m=k}else{Q=l;m=k;v=14;break}}}else{Q=l;v=14}while(0);if((v|0)==14){M=mh(X,Q<<2,0)|0;if(!M)K=0;else{if((Q|0)>0){l=0;k=c[(m&p)+4>>2]|0;while(1){c[(M+(l<<2)&p)>>2]=(e[(k&o)+16>>1]|0)+-1;l=l+1|0;if((l|0)==(Q|0))break;else k=k+20|0}}K=vu(f,g)|0}c[(w&p)>>2]=m;s=_+48|0;c[(s&p)>>2]=Pr(c[(f&p)>>2]|0,m,0)|0;if(!R){m=c[(c[(g&p)>>2]&p)>>2]|0;l=f+72|0;J=c[(l&p)>>2]|0;r=J+1|0;c[(l&p)>>2]=m+1+J;wh(U,25,0,r,0)|0;l=Rs(X,m,1)|0;if(l)if((m|0)>0){k=l+16|0;q=0;do{c[(l+(q<<2)&p)+20>>2]=Ss(f,g,q)|0;a[((c[(k&p)>>2]|0)+q&n)>>0]=0;q=q+1|0}while((q|0)!=(m|0));x=l}else x=l;else x=0}else{x=0;r=0}c[(Z&p)>>2]=0;L=_+56|0;c[(L&p)>>2]=0;wu(f,g,c[(w&p)>>2]|0,26880)|0;if(!(c[(_&p)+52>>2]|0))wu(f,_,c[(s&p)>>2]|0,26880)|0;Os(f,g,W);q=g+8|0;l=c[(q&p)>>2]|0;s=f+72|0;if((l|0)!=0&R){v=c[(s&p)>>2]|0;t=v+1|0;v=v+2|0;c[(s&p)>>2]=v;J=c[(g&p)+12>>2]|0;wh(U,33,(J|0)==0?l:J+1|0,t,0)|0;wh(U,33,t,v,0)|0}else{t=0;v=0}A=g+60|0;Gk(X,c[(A&p)>>2]|0);c[(A&p)>>2]=0;A=g+64|0;Gk(X,c[(A&p)>>2]|0);c[(A&p)>>2]=0;A=c[(s&p)>>2]|0;B=A+1|0;C=A+2|0;y=A+3|0;A=A+4|0;c[(s&p)>>2]=A;a[(N&n)>>0]=13;c[(N&p)+4>>2]=B;a[(N&n)+1>>0]=0;E=N+8|0;c[(E&p)>>2]=0;c[(N&p)+12>>2]=0;a[(O&n)>>0]=13;c[(O&p)+4>>2]=C;a[(O&n)+1>>0]=0;F=O+8|0;c[(F&p)>>2]=0;c[(O&p)+12>>2]=0;I=U+32|0;u=wh(U,20,B,0,(c[(I&p)>>2]|0)+1|0)|0;c[(_&p)+8>>2]=t;s=f+468|0;J=c[(s&p)>>2]|0;ir(f,_,N)|0;wh(U,21,B,0,0)|0;t=c[(I&p)>>2]|0;if(t>>>0>u>>>0)c[((c[(U&p)+4>>2]|0)+(u*20|0)&p)+8>>2]=t;D=U+24|0;c[((c[(D&p)>>2]|0)&p)+88>>2]=t+-1;z=wh(U,20,C,0,t+1|0)|0;k=c[(q&p)>>2]|0;m=g+12|0;w=c[(m&p)>>2]|0;c[(q&p)>>2]=v;c[(m&p)>>2]=0;H=c[(s&p)>>2]|0;ir(f,g,O)|0;c[(q&p)>>2]=k;c[(m&p)>>2]=w;wh(U,21,C,0,0)|0;m=xu(f,g,N,h,y,r,x,W)|0;w=(P+-115&255)<2;if(w)k=xu(f,g,O,h,A,r,x,W)|0;else k=0;if((x|0)!=0?(l=(c[(x&p)>>2]|0)+-1|0,c[(x&p)>>2]=l,(l|0)==0):0)Wc(x);r=P<<24>>24==118;if((P+-117&255)<2){v=W;l=W}else{v=wh(U,17,A,k,0)|0;l=wh(U,22,C,W,0)|0;wh(U,16,0,v,0)|0;q=_+24|0;x=g+24|0;s=x;q=jw(c[(s&p)>>2]|0,c[(s&p)+4>>2]|0,c[(q&p)>>2]|0,c[(q&p)+4>>2]|0)|0;c[(x&p)>>2]=q;c[(x&p)+4>>2]=G}if(r){u=g+24|0;x=u;q=c[(x&p)+4>>2]|0;s=_+24|0;t=c[(s&p)>>2]|0;s=c[(s&p)+4>>2]|0;if(q>>>0>s>>>0|((q|0)==(s|0)?(c[(x&p)>>2]|0)>>>0>t>>>0:0)){q=u;c[(q&p)>>2]=t;c[(q&p)+4>>2]=s;q=v}else q=v}else{q=wh(U,17,y,m,0)|0;wh(U,22,B,W,0)|0;wh(U,16,0,q,0)|0}u=wh(U,17,y,m,0)|0;wh(U,22,B,v,0)|0;wh(U,16,0,T,0)|0;do if(!R)if(r){v=u;u=u+1|0;break}else{v=wh(U,22,B,v,0)|0;wh(U,16,0,T,0)|0;break}else v=u;while(0);t=c[(I&p)>>2]|0;if(w)wh(U,17,A,k,0)|0;wh(U,22,C,q,0)|0;wh(U,16,0,T,0)|0;s=c[(I&p)>>2]|0;if(s>>>0>z>>>0)c[((c[(U&p)+4>>2]|0)+(z*20|0)&p)+8>>2]=s;c[((c[(D&p)>>2]|0)&p)+88>>2]=s+-1;wh(U,22,B,l,0)|0;wh(U,22,C,q,0)|0;q=c[(D&p)>>2]|0;m=~T;if((T|0)<0?(S=c[(q&p)+112>>2]|0,(S|0)!=0):0)c[(S+(m<<2)&p)>>2]=c[(I&p)>>2];c[(q&p)+88>>2]=(c[(I&p)>>2]|0)+-1;xh(U,wh(U,41,0,0,0)|0,M,-15);xh(U,wh(U,42,c[(E&p)>>2]|0,c[(F&p)>>2]|0,Q)|0,K,-6);l=c[(U&p)+4>>2]|0;if(l)a[(l+(((c[(I&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;wh(U,43,u,v,t)|0;l=c[(D&p)>>2]|0;k=~W;if((W|0)<0?(V=c[(l&p)+112>>2]|0,(V|0)!=0):0)c[(V+(k<<2)&p)>>2]=c[(I&p)>>2];c[(l&p)+88>>2]=(c[(I&p)>>2]|0)+-1;if((a[(h&n)>>0]|0)==9){k=_;while(1){l=c[(k&p)+52>>2]|0;if(!l)break;else k=l}Ns(f,0,c[(k&p)>>2]|0)}k=c[(Z&p)>>2]|0;if(k)Mk(X,k,1);c[(Z&p)>>2]=_;c[(L&p)>>2]=g;Qs(f,d[(Y&n)>>0]|0,J,H,0);k=0}i=$;return k|0}function Ms(a,b){a=a|0;b=b|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;do if(!(c[(a&p)+4>>2]&1024)){e=d[(a&n)>>0]|0;if((e|0)==158){e=Ms(c[(a&p)+12>>2]|0,b)|0;break}else if((e|0)!=157){e=0;break}if(!(Ms(c[(a&p)+12>>2]|0,f)|0))e=0;else{c[(b&p)>>2]=0-(c[(f&p)>>2]|0);e=1}}else{c[(b&p)>>2]=c[(a&p)+8>>2];e=1}while(0);i=g;return e|0}function Ns(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=i;i=i+32|0;if((i|0)>=(j|0))fa();C=D;B=d+8|0;y=c[(B&p)>>2]|0;z=c[(d&p)>>2]|0;if(((a[(d&n)+450>>0]|0)==0?(k=d+16|0,!((a[(k&n)>>0]|0)!=0|(y|0)==0)):0)?(a[(z&n)+65>>0]|0)==0:0){a[(k&n)>>0]=1;k=c[(z&p)+24>>2]|0;x=(k&32|0)==0;iq(y,c[(f&p)>>2]|0);h=c[(f&p)>>2]|0;if((h|0)>0){w=f+4|0;v=(e|0)==0;s=(k&96|0)==0;t=(e|0)!=0;u=0;do{r=c[(w&p)>>2]|0;h=c[(r+(u*20|0)&p)>>2]|0;do if(h){k=c[(r+(u*20|0)&p)+4>>2]|0;if(k){jq(y,u,0,k,-1);break}k=a[(h&n)>>0]|0;if(k<<24>>24==-102){if(v)A=25}else if(!(k<<24>>24==-100&t))A=25;if((A|0)==25){A=0;k=c[(r+(u*20|0)&p)+8>>2]|0;if(!k){c[(C&p)>>2]=u+1;k=uh(z,34880,C)|0}else k=kh(z,k)|0;jq(y,u,0,k,75);break}q=b[(h&o)+32>>1]|0;k=q<<16>>16;m=c[(e&p)>>2]|0;a:do if((m|0)>0){g=c[(h&p)+28>>2]|0;l=0;while(1){h=l+1|0;if((c[(e+(l*72|0)&p)+48>>2]|0)==(g|0)){h=l;break a}if((h|0)<(m|0))l=h;else break}}else h=0;while(0);h=c[(e+(h*72|0)&p)+24>>2]|0;if(q<<16>>16<0)k=b[(h&o)+36>>1]|0;if((k|0)<0)k=20456;else k=c[((c[(h&p)+4>>2]|0)+(k*24|0)&p)>>2]|0;if(s){jq(y,u,0,kh(z,c[(r+(u*20|0)&p)+8>>2]|0)|0,75);break}if(x){jq(y,u,0,k,-1);break}else{c[(C&p)>>2]=c[(h&p)>>2];c[(C&p)+4>>2]=k;jq(y,u,0,uh(z,27824,C)|0,75);break}}while(0);u=u+1|0;h=c[(f&p)>>2]|0}while((u|0)<(h|0))}k=c[(B&p)>>2]|0;c[(C&p)+4>>2]=e;c[(C&p)>>2]=d;if((h|0)>0){g=f+4|0;h=0;do{jq(k,h,1,yu(C,c[((c[(g&p)>>2]|0)+(h*20|0)&p)>>2]|0,0)|0,-1);h=h+1|0}while((h|0)<(c[(f&p)>>2]|0))}}i=D;return}function Os(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();f=o;h=b+8|0;if((c[(h&p)>>2]|0)==0?(at(a),g=b+60|0,(c[(g&p)>>2]|0)!=0):0){l=a+72|0;m=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=m;c[(h&p)>>2]=m;n=Oq(a)|0;do if(Ms(c[(g&p)>>2]|0,f)|0){f=c[(f&p)>>2]|0;wh(n,25,f,m,0)|0;if(!f){wh(n,16,0,d,0)|0;break}if((f|0)>-1?(e=b+24|0,d=e,h=c[(d&p)+4>>2]|0,k=((f|0)<0)<<31>>31,h>>>0>k>>>0|((h|0)==(k|0)?(c[(d&p)>>2]|0)>>>0>f>>>0:0)):0){d=e;c[(d&p)>>2]=f;c[(d&p)+4>>2]=k}}else{Rq(a,c[(g&p)>>2]|0,m);wh(n,38,m,0,0)|0;wh(n,46,m,d,0)|0}while(0);f=c[(b&p)+64>>2]|0;if(f){k=c[(l&p)>>2]|0;d=k+1|0;c[(b&p)+12>>2]=d;c[(l&p)>>2]=k+2;Rq(a,f,d);wh(n,38,d,0,0)|0;f=wh(n,137,d,0,0)|0;wh(n,25,0,d,0)|0;g=n+32|0;e=c[(g&p)>>2]|0;if(e>>>0>f>>>0)c[((c[(n&p)+4>>2]|0)+(f*20|0)&p)+8>>2]=e;h=n+24|0;c[((c[(h&p)>>2]|0)&p)+88>>2]=e+-1;e=k+2|0;wh(n,89,m,d,e)|0;f=wh(n,137,m,0,0)|0;wh(n,25,-1,e,0)|0;e=c[(g&p)>>2]|0;if(e>>>0>f>>>0)c[((c[(n&p)+4>>2]|0)+(f*20|0)&p)+8>>2]=e;c[((c[(h&p)>>2]|0)&p)+88>>2]=e+-1}}i=o;return}function Ps(b,f,g,h,i,j,k,l,m){b=b|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0;I=c[(b&p)+8>>2]|0;D=a[(k&n)>>0]|0;x=D&255;z=k+4|0;G=c[(z&p)>>2]|0;if(!j)q=0;else q=d[(j&n)+1>>0]|0;if(!i)H=0;else H=(c[(i&p)>>2]|0)==0?0:i;C=(H|0)!=0;y=(q|0)!=0;if(!(C|y))it(I,c[(f&p)+12>>2]|0,l);E=c[(g&p)>>2]|0;t=k+8|0;i=c[(t&p)>>2]|0;if(i){s=b+72|0;r=c[(s&p)>>2]|0;if((i+E|0)>(r|0)){c[(s&p)>>2]=r+E;F=i;A=0}else{F=i;A=0}}else{if(C){r=((a[(H&n)+24>>0]&1^1)&255)+(c[(c[(H&p)>>2]&p)>>2]|0)|0;F=b+72|0;s=r+(c[(F&p)>>2]|0)|0;c[(F&p)>>2]=s}else{s=c[(b&p)+72>>2]|0;r=0}F=s+1|0;c[(t&p)>>2]=F;c[(b&p)+72>>2]=s+E;A=r}c[(k&p)+12>>2]=E;do if((h|0)>-1){if((E|0)>0){s=0;do{wh(I,47,h,s,s+F|0)|0;s=s+1|0}while((s|0)!=(E|0))}}else{if(D<<24>>24==9)r=1;else if(D<<24>>24==3)break;else r=D<<24>>24==13&1;bt(b,g,F,r)}while(0);if(y){r=d[(j&n)+1>>0]|0;if((r|0)==1)zh(I,c[(j&p)+8>>2]|0);else if((r|0)==2){r=b+72|0;h=c[(r&p)>>2]|0;w=h+1|0;c[(r&p)>>2]=h+E;r=j+8|0;zh(I,c[(r&p)>>2]|0);r=c[(r&p)>>2]|0;if((r|0)<0)r=(c[(I&p)+32>>2]|0)+-1|0;if(!(a[((c[(I&p)>>2]|0)&n)+65>>0]|0))r=(c[(I&p)+4>>2]|0)+(r*20|0)|0;else r=29120;a[(r&n)>>0]=28;c[(r&p)+4>>2]=1;c[(r&p)+8>>2]=w;h=I+32|0;i=(c[(h&p)>>2]|0)+E|0;if((E|0)>0){s=g+4|0;r=E+-1|0;t=I+4|0;v=0;do{y=cu(b,c[((c[(s&p)>>2]|0)+(v*20|0)&p)>>2]|0)|0;j=v+F|0;q=v+w|0;if((v|0)<(r|0))wh(I,78,j,i,q)|0;else wh(I,79,j,l,q)|0;xh(I,-1,y,-4);u=c[(t&p)>>2]|0;if(u)a[(u+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-128;v=v+1|0}while((v|0)!=(E|0))}else r=E+-1|0;wh(I,33,F,w,r)|0}else zu(b,c[(j&p)+4>>2]|0,l,E,F);if(!H)it(I,c[(f&p)+12>>2]|0,l)}a:do switch(x|0){case 11:{i=k+1|0;a[(i&n)>>0]=Bu(c[(c[(g&p)+4>>2]&p)>>2]|0,a[(i&n)>>0]|0)|0;if(C){Au(b,H,f,F,1,A);break a}j=b+19|0;q=a[(j&n)>>0]|0;if(!(q<<24>>24)){E=b+72|0;j=(c[(E&p)>>2]|0)+1|0;c[(E&p)>>2]=j}else{E=q+-1<<24>>24;a[(j&n)>>0]=E;j=c[(b+((E&255)<<2)&p)+24>>2]|0}xh(I,wh(I,49,F,1,j)|0,i,1);dt(b,F,1);wh(I,110,G,j,0)|0;_r(b,j);B=94;break}case 3:{wh(I,25,1,G,0)|0;B=94;break}case 10:{if(C)Au(b,H,f,F,1,A);else B=95;break}case 2:{wh(I,111,G,F,E)|0;B=94;break}case 12:case 14:case 6:case 5:{s=A+1|0;r=b+60|0;i=c[(r&p)>>2]|0;t=b+56|0;q=c[(t&p)>>2]|0;if((q|0)<(s|0)){B=b+72|0;i=c[(B&p)>>2]|0;c[(B&p)>>2]=i+s;i=i+1|0}else{c[(r&p)>>2]=i+s;c[(t&p)>>2]=q-s}q=i+A|0;wh(I,49,F,E,q)|0;if(D<<24>>24==6){F=G+1|0;xh(I,wh(I,69,F,(c[(I&p)+32>>2]|0)+4|0,i)|0,0,-14);wh(I,110,F,i,0)|0}if(C)Au(b,H,f,q,1,A);else{q=b+19|0;j=a[(q&n)>>0]|0;if(!(j<<24>>24)){F=b+72|0;j=(c[(F&p)>>2]|0)+1|0;c[(F&p)>>2]=j}else{j=j+-1<<24>>24;a[(q&n)>>0]=j;j=c[(b+((j&255)<<2)&p)+24>>2]|0}wh(I,74,G,j,0)|0;wh(I,75,G,i,j)|0;q=c[(I&p)+4>>2]|0;if(q)a[(q+(((c[(I&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;_r(b,j)}dt(b,i,s);if((c[(t&p)>>2]|0)<(s|0)){c[(t&p)>>2]=s;c[(r&p)>>2]=i;B=94}else B=94;break}case 1:{q=b+19|0;j=a[(q&n)>>0]|0;if(!(j<<24>>24)){D=b+72|0;j=(c[(D&p)>>2]|0)+1|0;c[(D&p)>>2]=j}else{j=j+-1<<24>>24;a[(q&n)>>0]=j;j=c[(b+((j&255)<<2)&p)+24>>2]|0}wh(I,49,F,E,j)|0;wh(I,110,G,j,0)|0;_r(b,j);B=94;break}case 9:case 13:{if(C){Au(b,H,f,F,E,A);break a}if(D<<24>>24==13){wh(I,22,c[(z&p)>>2]|0,0,0)|0;B=95;break a}else{wh(I,35,F,E,0)|0;dt(b,F,E);B=94;break a}}case 7:case 8:{u=c[(k&p)+16>>2]|0;h=c[(u&p)>>2]|0;q=b+19|0;j=a[(q&n)>>0]|0;if(!(j<<24>>24)){C=b+72|0;v=(c[(C&p)>>2]|0)+1|0;c[(C&p)>>2]=v}else{v=j+-1<<24>>24;a[(q&n)>>0]=v;v=c[(b+((v&255)<<2)&p)+24>>2]|0}w=h+2|0;x=b+60|0;i=c[(x&p)>>2]|0;y=b+56|0;q=c[(y&p)>>2]|0;if((q|0)<(w|0)){C=b+72|0;i=c[(C&p)>>2]|0;c[(C&p)>>2]=i+w;i=i+1|0}else{c[(x&p)>>2]=i+w;c[(y&p)>>2]=q-w}t=i+h|0;r=t+1|0;if(D<<24>>24==8){q=G+1|0;j=wh(I,69,q,0,F)|0;xh(I,j,E,-14);wh(I,49,F,E,r)|0;wh(I,110,q,r,0)|0;q=c[(I&p)+4>>2]|0;if(!q)s=j;else{a[(q+(((c[(I&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;s=j}}else{wh(I,49,F,E,r)|0;s=0}if((h|0)>0){r=u+4|0;q=F+-1|0;j=0;do{wh(I,34,q+(e[((c[(r&p)>>2]|0)+(j*20|0)&o)+16>>1]|0)|0,j+i|0,0)|0;j=j+1|0}while((j|0)!=(h|0))}wh(I,73,G,t,0)|0;wh(I,49,i,w,v)|0;wh(I,110,G,v,0)|0;if(s){q=c[(I&p)+32>>2]|0;if(q>>>0>s>>>0)c[((c[(I&p)+4>>2]|0)+(s*20|0)&p)+8>>2]=q;c[((c[(I&p)+24>>2]|0)&p)+88>>2]=q+-1}_r(b,v);dt(b,i,w);if((c[(y&p)>>2]|0)<(w|0)){c[(y&p)>>2]=w;c[(x&p)>>2]=i;B=94}else B=94;break}default:B=94}while(0);if((B|0)==94?(H|0)==0:0)B=95;if((B|0)==95?(J=c[(f&p)+8>>2]|0,(J|0)!=0):0)wh(I,140,J,m,0)|0;return}function Qs(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();m=o;if((a[(b&n)+450>>0]|0)==2){k=c[(b&p)+8>>2]|0;l=c[(b&p)>>2]|0;h=(g|0)!=0?35160:10360;if((d|0)==118)g=35336;else if((d|0)==116)g=35320;else if((d|0)==117)g=35352;else g=35360;c[(m&p)>>2]=e;c[(m&p)+4>>2]=f;c[(m&p)+8>>2]=h;c[(m&p)+12>>2]=g;g=uh(l,35120,m)|0;xh(k,wh(k,157,c[(b&p)+464>>2]|0,0,0)|0,g,-1)}i=o;return}function Rs(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=f+e|0;h=(g*5|0)+24|0;i=qg(h,0)|0;if(!i)a[(d&n)+65>>0]=1;else{fw(i|0,0,h|0)|0;c[(i&p)+16>>2]=i+20+(g<<2);b[(i&o)+6>>1]=e;b[(i&o)+8>>1]=f;a[(i&n)+4>>0]=a[(d&n)+62>>0]|0;c[(i&p)+12>>2]=d;c[(i&p)>>2]=1}return i|0}function Ss(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=c[(b&p)+52>>2]|0;if(!((f|0)!=0?(e=Ss(a,f,d)|0,(e|0)!=0):0)){e=c[(b&p)>>2]|0;if((c[(e&p)>>2]|0)>(d|0))e=cu(a,c[((c[(e&p)+4>>2]|0)+(d*20|0)&p)>>2]|0)|0;else e=0}return e|0}function Ts(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=(b|0)==0;f=(d|0)==0;a:do if(!(g&f))if(!(g|f)?(h=c[(b&p)>>2]|0,(h|0)==(c[(d&p)>>2]|0)):0)if((h|0)>0){b=c[(b&p)+4>>2]|0;f=c[(d&p)+4>>2]|0;g=0;while(1){if((a[(b+(g*20|0)&n)+12>>0]|0)!=(a[(f+(g*20|0)&n)+12>>0]|0)){f=1;break a}if(Cu(c[(b+(g*20|0)&p)>>2]|0,c[(f+(g*20|0)&p)>>2]|0,e)|0){f=1;break a}g=g+1|0;if((g|0)>=(h|0)){f=0;break}}}else f=0;else f=1;else f=0;while(0);return f|0}function Us(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;g=c[(b&p)>>2]|0;l=c[(d&p)>>2]|0;k=Rs(g,l-e|0,f+1|0)|0;if((k|0)!=0&(l|0)>(e|0)){h=g+8|0;i=k+16|0;j=e;f=(c[(d&p)+4>>2]|0)+(e*20|0)|0;while(1){g=cu(b,c[(f&p)>>2]|0)|0;if(!g)g=c[(h&p)>>2]|0;d=j-e|0;c[(k+(d<<2)&p)+20>>2]=g;a[((c[(i&p)>>2]|0)+d&n)>>0]=a[(f&n)+12>>0]|0;j=j+1|0;if((j|0)==(l|0))break;else f=f+20|0}}return k|0}function Vs(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0;Pa=i;i=i+64|0;if((i|0)>=(j|0))fa();Na=Pa;Oa=Pa+48|0;Ma=Pa+52|0;$=Pa+28|0;Ka=f+8|0;ha=c[(Ka&p)>>2]|0;La=c[(f&p)>>2]|0;c[($&p)>>2]=0;c[($&p)+4>>2]=0;c[($&p)+8>>2]=0;c[($&p)+12>>2]=0;c[($&p)+16>>2]=0;if(!k)S=0;else S=(c[(k&p)>>2]|0)>63?0:k;aa=$+8|0;c[(aa&p)>>2]=S;ba=La+60|0;if(b[(ba&o)>>1]&32)m=m&64511;k=c[(g&p)>>2]|0;a:do if((k|0)<=64){L=m&65535;O=(L&64|0)!=0;X=O?1:k;x=(X*80|0)+743&-16;r=x+72|0;k=mh(La,r,0)|0;Ja=(k|0)==0;if(!Ja)fw(k|0,0,r|0)|0;Aa=La+65|0;if(a[(Aa&n)>>0]|0){mg(La,k);k=0;break}ea=k+60|0;ga=k+64|0;c[(ga&p)>>2]=-1;c[(ea&p)>>2]=-1;Ba=k+41|0;a[(Ba&n)>>0]=X;c[(k&p)>>2]=f;Ca=k+4|0;c[(Ca&p)>>2]=g;ca=k+8|0;c[(ca&p)>>2]=S;c[(k&p)+12>>2]=l;Ea=xs(ha)|0;Da=k+48|0;c[(Da&p)>>2]=Ea;t=k+52|0;c[(t&p)>>2]=Ea;Ea=k+34|0;b[(Ea&o)>>1]=m;Fa=f+424|0;Ga=k+56|0;c[(Ga&p)>>2]=c[(Fa&p)>>2];Ha=k+68|0;c[($&p)>>2]=k;Ia=k+328|0;_=$+4|0;c[(_&p)>>2]=Ia;V=$+12|0;c[(V&p)>>2]=k+x;c[(k+x&p)+48>>2]=k+(x+56);b[(k+x&o)+40>>1]=0;b[(k+x&o)+44>>1]=3;c[(k+x&p)+36>>2]=0;c[(Ha&p)>>2]=0;c[(Ia&p)>>2]=k;c[(k&p)+332>>2]=0;ya=k+340|0;c[(ya&p)>>2]=0;c[(k&p)+344>>2]=8;za=k+348|0;c[(za&p)>>2]=k+352;Du(Ia,h,72);B=(X|0)==0;if((c[(k&p)+340>>2]|0)>0){A=Na+20|0;z=Na+4|0;r=Na+24|0;h=Ia;s=0;do{if(!B){h=c[((c[(h&p)+20>>2]|0)+(s*48|0)&p)>>2]|0;c[(Na&p)>>2]=0;c[(Na&p)+4>>2]=0;c[(Na&p)+8>>2]=0;c[(Na&p)+12>>2]=0;c[(Na&p)+16>>2]=0;c[(Na&p)+20>>2]=0;a[(A&n)>>0]=2;c[(Na&p)>>2]=78;c[(z&p)>>2]=79;c[(r&p)>>2]=0;rs(Na,h)|0;h=c[(_&p)>>2]|0;if(a[(A&n)>>0]|0)xa=15}else xa=15;if((xa|0)==15){xa=0;gt(f,c[((c[(h&p)+20>>2]|0)+(s*48|0)&p)>>2]|0,c[(t&p)>>2]|0,16);h=c[(_&p)>>2]|0;da=(c[(h&p)+20>>2]|0)+(s*48|0)+20|0;b[(da&o)>>1]=e[(da&o)>>1]|4}s=s+1|0}while((s|0)<(c[(h&p)+12>>2]|0))}if(B){if(S)a[(k&n)+36>>0]=c[(S&p)>>2];if(L&1024)a[(k&n)+40>>0]=1}if((c[(g&p)>>2]|0)>0){x=0;do{R=c[(g+(x*72|0)&p)+48>>2]|0;da=c[(Ha&p)>>2]|0;c[(Ha&p)>>2]=da+1;c[(Ha+(da<<2)&p)+4>>2]=R;x=x+1|0}while((x|0)<(c[(g&p)>>2]|0))}u=c[(ya&p)>>2]|0;if((u|0)>0)do{u=u+-1|0;Eu(Ia,u)}while((u|0)>0);b:do if(!(a[(Aa&n)>>0]|0)){da=(L&1024|0)==0;c:do if(!da){d:do if((c[(g&p)>>2]|0)==1){K=c[(g&p)+48>>2]|0;s=c[(g&p)+24>>2]|0;A=c[(l&p)>>2]|0;e:do if((A|0)>0){z=c[(l&p)+4>>2]|0;r=0;while(1){h=c[(z+(r*20|0)&p)>>2]|0;f:do if(!h)h=0;else while(1){B=c[(h&p)+4>>2]|0;if(!(B&4096))break f;if(!(B&262144))h=h+12|0;else h=c[((c[(h&p)+20>>2]|0)&p)+4>>2]|0;h=c[(h&p)>>2]|0;if(!h){h=0;break}}while(0);do if((a[(h&n)>>0]|0)==-102){if((c[(h&p)+28>>2]|0)!=(K|0))break;if((b[(h&o)+32>>1]|0)<0)break e}while(0);r=r+1|0;if((r|0)>=(A|0)){xa=41;break}}}else xa=41;while(0);g:do if((xa|0)==41){h=c[(s&p)+8>>2]|0;if(!h)break d;t=l+4|0;s=s+4|0;while(1){if(a[(h&n)+50>>0]|0){F=h+46|0;h:do if(!(b[(F&o)>>1]|0))B=0;else{I=h+4|0;H=h+32|0;B=0;do{E=b[((c[(I&p)>>2]|0)+(B<<1)&o)>>1]|0;if(!(Fu(Ia,K,E,-1,-1,2,h)|0)){r=c[((c[(H&p)>>2]|0)+(B<<2)&p)>>2]|0;if((c[(l&p)>>2]|0)>0)A=0;else break h;i:while(1){C=c[((c[(t&p)>>2]|0)+(A*20|0)&p)>>2]|0;j:do if(!C)z=0;else{z=C;while(1){D=c[(z&p)+4>>2]|0;if(!(D&4096))break j;if(!(D&262144))z=z+12|0;else z=c[((c[(z&p)+20>>2]|0)&p)+4>>2]|0;z=c[(z&p)>>2]|0;if(!z){z=0;break}}}while(0);do if((a[(z&n)>>0]|0)==-102){if((b[(z&o)+32>>1]|0)!=(b[((c[(I&p)>>2]|0)+(B<<1)&o)>>1]|0))break;if((c[(z&p)+28>>2]|0)!=(K|0))break;z=cu(f,C)|0;if(!z)break;if(!(dd(c[(z&p)>>2]|0,r)|0))break i}while(0);A=A+1|0;if((A|0)>=(c[(l&p)>>2]|0))break h}if((A|0)<0)break h;if(!(a[((c[(s&p)>>2]|0)+(E*24|0)&n)+20>>0]|0))break h}B=B+1|0}while((B|0)<(e[(F&o)>>1]|0))}while(0);if((B|0)==(e[(F&o)>>1]|0))break g}h=c[(h&p)+20>>2]|0;if(!h)break d}}while(0);a[(k&n)+40>>0]=1;break c}while(0);if(!S){b[(Ea&o)>>1]=e[(Ea&o)>>1]|512;c[(ca&p)>>2]=l}}while(0);k:do if((((X|0)==1?(Z=c[($&p)>>2]|0,Y=Z+34|0,(b[(Y&o)>>1]&32)==0):0)?(U=c[(Z&p)+4>>2]|0,Q=c[(U&p)+24>>2]|0,(a[(Q&n)+44>>0]&16)==0):0)?(c[(U&p)+72>>2]|0)==0:0){S=c[(U&p)+48>>2]|0;C=Z+328|0;R=c[(V&p)>>2]|0;K=R+36|0;c[(K&p)>>2]=0;b[(R&o)+42>>1]=0;y=Fu(C,S,-1,0,0,2,0)|0;l:do if(!y){A=c[(Q&p)+8>>2]|0;m:do if(A){D=R+48|0;n:while(1){do if(a[(A&n)+50>>0]|0){if(c[(A&p)+36>>2]|0)break;z=A+46|0;h=b[(z&o)>>1]|0;if((h&65535)>3)break;t=A+4|0;o:do if(!(h<<16>>16)){h=0;B=0}else{B=0;while(1){h=Fu(C,S,b[((c[(t&p)>>2]|0)+(B<<1)&o)>>1]|0,0,0,2,A)|0;if(!h)break;c[((c[(D&p)>>2]|0)+(B<<2)&p)>>2]=h;B=B+1|0;h=b[(z&o)>>1]|0;if((B|0)>=(h&65535|0))break o}h=b[(z&o)>>1]|0}while(0);if((B|0)==(h&65535|0)){D=B;break n}}while(0);A=c[(A&p)+20>>2]|0;if(!A)break m}c[(K&p)>>2]=4609;if(!(a[(A&n)+51>>0]&32)){s=U+64|0;r=c[(s&p)>>2]|0;s=c[(s&p)+4>>2]|0;z=0;y=0;h=e[(A&o)+48>>1]|0;p:while(1){B=h;while(1){h=B+-1|0;if((B|0)<=0)break p;B=b[((c[(t&p)>>2]|0)+(h<<1)&o)>>1]|0;if((B&65535)<63)break;else B=h}$=iw(1,0,B<<16>>16|0)|0;z=$|z;y=G|y}if((r&~z|0)==0&(s&~y|0)==0)xa=91}else xa=91;if((xa|0)==91)c[(K&p)>>2]=4673;$=D&65535;b[(R&o)+40>>1]=$;b[(R&o)+24>>1]=$;c[(R&p)+28>>2]=A;b[(R&o)+20>>1]=39;break l}while(0);if(!(c[(K&p)>>2]|0)){xa=103;break k}}else{c[(K&p)>>2]=4353;c[(c[(R&p)+48>>2]&p)>>2]=y;b[(R&o)+40>>1]=1;b[(R&o)+24>>1]=1;b[(R&o)+20>>1]=33}while(0);b[(R&o)+22>>1]=1;c[(Z&p)+800>>2]=R;t=c[(Z&p)+68>>2]|0;q:do if((t|0)>0){u=0;while(1){if((c[(Z+(u<<2)&p)+72>>2]|0)==(S|0))break;u=u+1|0;if((u|0)>=(t|0)){u=0;t=0;break q}}u=iw(1,0,u|0)|0;t=G}else{u=0;t=0}while(0);s=R+8|0;c[(s&p)>>2]=u;c[(s&p)+4>>2]=t;c[(Z&p)+740>>2]=S;b[(Z&o)+32>>1]=1;s=c[(Z&p)+8>>2]|0;if(s)a[(Z&n)+36>>0]=c[(s&p)>>2];if(!(b[(Y&o)>>1]&1024)){xa=120;break}a[(Z&n)+40>>0]=1;xa=120}else xa=103;while(0);if((xa|0)==103){F=c[($&p)>>2]|0;h=c[(F&p)+4>>2]|0;H=c[(c[(F&p)>>2]&p)>>2]|0;Z=a[(F&n)+41>>0]|0;I=Z&255;z=c[(V&p)>>2]|0;c[(z&p)+48>>2]=z+56;b[(z&o)+40>>1]=0;b[(z&o)+44>>1]=3;c[(z&p)+36>>2]=0;r=H+65|0;r:do if(Z<<24>>24){s=z+16|0;t=F+68|0;u=z+8|0;v=0;w=0;x=0;y=0;E=0;D=h+8|0;C=0;while(1){a[(s&n)>>0]=E;B=c[(D&p)+40>>2]|0;A=c[(t&p)>>2]|0;s:do if((A|0)>0){h=0;while(1){if((c[(F+(h<<2)&p)+72>>2]|0)==(B|0))break;h=h+1|0;if((h|0)>=(A|0)){h=0;B=0;break s}}h=iw(1,0,h|0)|0;B=G}else{h=0;B=0}while(0);Z=u;c[(Z&p)>>2]=h;c[(Z&p)+4>>2]=B;Z=C;C=a[(D&n)+36>>0]|0;Z=((C|Z)&10)==0;w=Z?w:v;y=Z?y:x;if(!(a[((c[(D&p)+16>>2]|0)&n)+44>>0]&16))h=Hu($,w,y)|0;else h=Gu($,w,y)|0;if(h)break;Z=Iu($,w,y)|0;h=u;if(Z)break;if(a[(r&n)>>0]|0)break r;E=E+1|0;if((E|0)>=(I|0))break r;else{v=c[(h&p)>>2]|v;x=c[(h&p)+4>>2]|x;D=D+72|0}}Ju(H,z);break b}while(0);Ju(H,z);Ku(k,0);if(a[(Aa&n)>>0]|0)break;if(c[(ca&p)>>2]|0){Ku(k,(e[(k&o)+32>>1]|0)+1&65535);if(!(a[(Aa&n)>>0]|0))xa=120;else break}else xa=121}if((xa|0)==120?(c[(ca&p)>>2]|0)==0:0)xa=121;if((xa|0)==121?(c[(La&p)+24>>2]&131072|0)!=0:0){ca=k+24|0;c[(ca&p)>>2]=-1;c[(ca&p)+4>>2]=-1}if((c[(f&p)+64>>2]|0)==0?(a[(Aa&n)>>0]|0)==0:0){x=a[(Ba&n)>>0]|0;t:do if((x&255)>1&(l|0)!=0?(b[(ba&o)>>1]&1024)==0:0){s=Lu(Ha,l)|0;t=G;r=c[(aa&p)>>2]|0;if(r){ca=Lu(Ha,r)|0;s=ca|s;t=G|t}B=k+736|0;h=c[(Ca&p)>>2]|0;A=c[(_&p)>>2]|0;z=A+20|0;A=A+12|0;y=x;r=X;do{u=c[(B+(((y&255)+-1|0)*80|0)&p)+64>>2]|0;if(!(a[(h+((d[(u&n)+16>>0]|0)*72|0)&n)+44>>0]&8))break t;if(da?(c[(u&p)+36>>2]&4096|0)==0:0)break t;w=u+8|0;v=c[(w&p)>>2]|0;w=c[(w&p)+4>>2]|0;if(!((v&s|0)==0&(w&t|0)==0))break t;u=c[(z&p)>>2]|0;ca=c[(A&p)>>2]|0;x=u+(ca*48|0)|0;if((ca|0)>0)do{ca=u+40|0;if(!((v&c[(ca&p)>>2]|0)==0?(w&c[(ca&p)+4>>2]|0)==0:0)?(c[((c[(u&p)>>2]|0)&p)+4>>2]&1|0)==0:0)break t;u=u+48|0}while(u>>>0<x>>>0);y=y+-1<<24>>24;a[(Ba&n)>>0]=y;r=r+-1|0}while((y&255)>1)}else r=X;while(0);da=(c[(k&p)>>2]|0)+424|0;c[(da&p)>>2]=(c[(da&p)>>2]|0)+(b[(k&o)+32>>1]|0);do if((L&4|0)!=0?(W=(c[(k&p)+800>>2]|0)+36|0,T=c[(W&p)>>2]|0,(T&4096|0)!=0):0){a[(k&n)+38>>0]=1;if(a[((c[(g&p)+24>>2]|0)&n)+44>>0]&32)break;c[(W&p)>>2]=T&-65}while(0);wa=k+736|0;S=(r|0)>0;if(S){P=L&16;Q=k+38|0;R=ha+32|0;M=O^1;O=(q|0)==0|M;N=f+68|0;K=54-(L>>>12&1)|0;J=ha+4|0;E=La+20|0;C=La+16|0;v=0;L=wa;while(1){D=d[(L&n)+44>>0]|0;F=g+(D*72|0)+24|0;t=c[(F&p)>>2]|0;h=c[(t&p)+68>>2]|0;u:do if(!h)z=-1e6;else{B=c[(E&p)>>2]|0;if((B|0)<=0){z=0;break}A=c[(C&p)>>2]|0;s=0;while(1){z=s+1|0;if((c[(A+(s<<4)&p)+12>>2]|0)==(h|0)){z=s;break u}if((z|0)<(B|0))s=z;else break}}while(0);I=c[(L&p)+64>>2]|0;H=t+44|0;h=d[(H&n)>>0]|0;do if(!(h&2)){if(c[(t&p)+12>>2]|0)break;B=c[(I&p)+36>>2]|0;if(B&1024){y=c[(t&p)+60>>2]|0;v:do if(!y)y=0;else while(1){if((c[(y&p)>>2]|0)==(La|0))break v;y=c[(y&p)+24>>2]|0;if(!y){y=0;break}}while(0);xh(ha,wh(ha,149,c[(g+(D*72|0)&p)+48>>2]|0,0,0)|0,y,-10);break}if(h&16)break;if(B&64|P){gs(f,z,c[(t&p)+32>>2]|0,0,c[(t&p)>>2]|0);break}A=g+(D*72|0)+48|0;if(!(a[(Q&n)>>0]|0))h=54;else{c[(ea&p)>>2]=c[(A&p)>>2];h=55}Qq(f,c[(A&p)>>2]|0,z,t,h);if(a[(Q&n)>>0]|0)break;if((b[(t&o)+38>>1]|0)>=64)break;if(a[(H&n)>>0]&32)break;A=g+(D*72|0)+64|0;y=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;if((y|0)==0&(A|0)==0)x=0;else{x=0;do{y=mw(y|0,A|0,1)|0;A=G;x=x+1|0}while(!((y|0)==0&(A|0)==0))}xh(ha,(c[(R&p)>>2]|0)+-1|0,x,-14)}while(0);B=I+36|0;w:do if(c[(B&p)>>2]&512){h=c[(I&p)+28>>2]|0;do if(a[(H&n)>>0]&32){if((a[(h&n)+51>>0]&3)!=2|M)break;c[(L&p)+8>>2]=c[(L&p)+4>>2];break w}while(0);do if(!(a[(Q&n)>>0]|0)){if(!O){x=q;w=K;break}x=c[(N&p)>>2]|0;c[(N&p)>>2]=x+1;w=54}else{w=c[((c[(F&p)>>2]|0)&p)+8>>2]|0;if((w|0)==0|(w|0)==(h|0))x=q;else{x=q;do{x=x+1|0;w=c[(w&p)+20>>2]|0}while(!((w|0)==0|(w|0)==(h|0)))}c[(ga&p)>>2]=x;w=55}while(0);c[(L&p)+8>>2]=x;wh(ha,w,x,c[(h&p)+40>>2]|0,z)|0;da=c[(Ka&p)>>2]|0;xh(da,-1,hs(f,h)|0,-6);da=c[(B&p)>>2]|0;if(!((da&15|0)!=0&(da&32770|0)==0))break;if(b[(Ea&o)>>1]&1)break;u=c[(J&p)>>2]|0;if(!u)break;a[(u+(((c[(R&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=2}while(0);if((z|0)>-1)Ar(f,z);v=v+1|0;if((v|0)==(r|0))break;else L=L+80|0}ga=(a[(Aa&n)>>0]|0)==0;c[(k&p)+44>>2]=c[(R&p)>>2];if(!ga)break}else{R=ha+32|0;c[(k&p)+44>>2]=c[(R&p)>>2]}if(!S)break a;ka=k+24|0;la=k+36|0;ma=k+39|0;na=f+80|0;oa=f+68|0;pa=f+100|0;qa=f+19|0;ra=f+72|0;sa=Na+20|0;ta=Na+4|0;ua=Na+24|0;t=-1;s=-1;va=0;while(1){Y=wa+(va*80|0)|0;h=wa+(va*80|0)+64|0;_=wa+(va*80|0)+44|0;if(c[((c[(h&p)>>2]|0)&p)+36>>2]&16384){K=d[(_&n)>>0]|0;U=g+(K*72|0)+8|0;Z=c[(Ka&p)>>2]|0;y=Oq(f)|0;$=c[(na&p)>>2]|0;c[(na&p)>>2]=$+1;$=wh(y,44,$,0,0)|0;y=c[(g+(K*72|0)&p)+24>>2]|0;ga=c[(ya&p)>>2]|0;B=c[(za&p)>>2]|0;T=B+(ga*48|0)|0;M=c[(h&p)>>2]|0;x:do if((ga|0)>0){z=g+(K*72|0)+48|0;v=y+4|0;w=M+48|0;F=0;C=0;A=0;u=0;E=0;while(1){D=c[(B&p)>>2]|0;ga=M;do if((c[(ga&p)>>2]|0)==0&(c[(ga&p)+4>>2]|0)==0){if(b[(B&o)+20>>1]&2)break;if(c[(D&p)+4>>2]&1)break;ga=c[(z&p)>>2]|0;c[(Na&p)>>2]=0;c[(Na&p)+4>>2]=0;c[(Na&p)+8>>2]=0;c[(Na&p)+12>>2]=0;c[(Na&p)+16>>2]=0;c[(Na&p)+20>>2]=0;a[(sa&n)>>0]=3;c[(Na&p)>>2]=78;c[(ta&p)>>2]=79;c[(ua&p)>>2]=ga;rs(Na,D)|0;if(!(a[(sa&n)>>0]|0))break;ga=c[(f&p)>>2]|0;u=ss(ga,u,Mr(ga,D,0,0)|0)|0}while(0);do if(!(Mu(B,U,t,s)|0)){I=F;D=C;h=A}else{D=c[(B&p)+12>>2]|0;if((D|0)>63){I=0;H=-2147483648}else{I=iw(1,0,D|0)|0;H=G}if(!(E<<24>>24)){E=c[((c[(v&p)>>2]|0)+(D*24|0)&p)>>2]|0;c[(Na&p)>>2]=c[(y&p)>>2];c[(Na&p)+4>>2]=E;bd(284,33960,Na);E=1}if(!((I&F|0)==0&(H&C|0)==0)){I=F;D=C;h=A;break}h=A+1|0;if(Nu(c[(f&p)>>2]|0,M,h)|0)break x;c[((c[(w&p)>>2]|0)+(A<<2)&p)>>2]=B;I=I|F;D=H|C}while(0);B=B+48|0;if(B>>>0>=T>>>0){B=I;xa=207;break}else{F=I;C=D;A=h}}}else{D=0;B=0;h=0;u=0;xa=207}while(0);do if((xa|0)==207){xa=0;v=h&65535;b[(M&o)+40>>1]=v;b[(M&o)+24>>1]=v;v=M+36|0;c[(v&p)>>2]=16961;L=g+(K*72|0)+64|0;N=L;H=c[(N&p)+4>>2]|0;N=c[(N&p)>>2]&~B;P=H&((D|-2147483648)^2147483647);x=y+38|0;Q=b[(x&o)>>1]|0;I=Q<<16>>16;Q=Q<<16>>16>63?63:I;S=(Q|0)>0;if(S){D=0;do{ga=iw(1,0,D|0)|0;h=(((ga&N|0)!=0|(G&P|0)!=0)&1)+h|0;D=D+1|0}while((D|0)!=(Q|0))}if((H|0)<0)h=h+-63+I|0;O=h+1|0;J=us(c[(f&p)>>2]|0,O&65535,0,Oa)|0;if(!J)break;c[(M&p)+28>>2]=J;c[(J&p)>>2]=33992;c[(J&p)+12>>2]=y;D=c[(za&p)>>2]|0;if(D>>>0<T>>>0){h=J+4|0;B=J+32|0;H=0;I=0;A=0;do{do if(Mu(D,U,t,s)|0){F=c[(D&p)+12>>2]|0;if((F|0)>63){E=0;C=-2147483648}else{E=iw(1,0,F|0)|0;C=G}if(!((E&H|0)==0&(C&I|0)==0))break;ga=c[(D&p)>>2]|0;b[((c[(h&p)>>2]|0)+(A<<1)&o)>>1]=F;F=Ou(f,c[(ga&p)+12>>2]|0,c[(ga&p)+16>>2]|0)|0;if(!F)F=11152;else F=c[(F&p)>>2]|0;c[((c[(B&p)>>2]|0)+(A<<2)&p)>>2]=F;H=E|H;I=C|I;A=A+1|0}while(0);D=D+48|0}while(D>>>0<T>>>0)}else A=0;if(S){D=J+4|0;C=J+32|0;h=0;do{ga=iw(1,0,h|0)|0;if(!((ga&N|0)==0&(G&P|0)==0)){b[((c[(D&p)>>2]|0)+(A<<1)&o)>>1]=h;c[((c[(C&p)>>2]|0)+(A<<2)&p)>>2]=11152;A=A+1|0}h=h+1|0}while((h|0)!=(Q|0))}do if((c[(L&p)+4>>2]|0)<0){if((b[(x&o)>>1]|0)<=63)break;h=J+4|0;B=J+32|0;z=63;do{b[((c[(h&p)>>2]|0)+(A<<1)&o)>>1]=z;c[((c[(B&p)>>2]|0)+(A<<2)&p)>>2]=11152;A=A+1|0;z=z+1|0}while((z|0)<(b[(x&o)>>1]|0))}while(0);b[((c[(J&p)+4>>2]|0)+(A<<1)&o)>>1]=-1;c[((c[(J&p)+32>>2]|0)+(A<<2)&p)>>2]=11152;D=c[(oa&p)>>2]|0;c[(oa&p)>>2]=D+1;B=wa+(va*80|0)+8|0;c[(B&p)>>2]=D;wh(Z,56,D,O,0)|0;D=c[(Ka&p)>>2]|0;xh(D,-1,hs(f,J)|0,-6);c[(pa&p)>>2]=(c[(pa&p)>>2]|0)+1;D=wa+(va*80|0)+4|0;w=wh(Z,108,c[(D&p)>>2]|0,0,0)|0;A=(u|0)!=0;if(A){z=xs(Z)|0;gt(f,u,z,16);c[(v&p)>>2]=c[(v&p)>>2]|131072}else z=0;h=a[(qa&n)>>0]|0;if(!(h<<24>>24)){v=(c[(ra&p)>>2]|0)+1|0;c[(ra&p)>>2]=v}else{v=h+-1<<24>>24;a[(qa&n)>>0]=v;v=c[(f+((v&255)<<2)&p)+24>>2]|0}Pt(f,J,c[(D&p)>>2]|0,v,0,0,0,0)|0;wh(Z,110,c[(B&p)>>2]|0,v,0)|0;C=Z+4|0;h=c[(C&p)>>2]|0;if(h)a[(h+(((c[(Z&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;if(A){B=c[(Z&p)+24>>2]|0;A=~z;do if((z|0)<0){h=c[(B&p)+112>>2]|0;if(!h)break;c[(h+(A<<2)&p)>>2]=c[(Z&p)+32>>2]}while(0);c[(B&p)+88>>2]=(c[(Z&p)+32>>2]|0)+-1}wh(Z,9,c[(D&p)>>2]|0,w+1|0,0)|0;h=c[(C&p)>>2]|0;B=c[(Z&p)+32>>2]|0;if(h)a[(h+((B+-1|0)*20|0)&n)+3>>0]=3;if(B>>>0>w>>>0)c[(h+(w*20|0)&p)+8>>2]=B;h=Z+24|0;c[((c[(h&p)>>2]|0)&p)+88>>2]=B+-1;_r(f,v);bu(f);x=c[(Z&p)+32>>2]|0;if(x>>>0>$>>>0)c[((c[(C&p)>>2]|0)+($*20|0)&p)+8>>2]=x;c[((c[(h&p)>>2]|0)&p)+88>>2]=x+-1}while(0);Gk(c[(f&p)>>2]|0,u);if(a[(Aa&n)>>0]|0)break b}Pu(f,g,Y,va,d[(_&n)>>0]|0,m);c[(wa+(va*80|0)&p)+32>>2]=c[(R&p)>>2];ja=c[(k&p)>>2]|0;O=ja+8|0;ea=c[(O&p)>>2]|0;ha=c[(ja&p)>>2]|0;u=k+(va*80|0)+736|0;N=c[(k+(va*80|0)&p)+800>>2]|0;ca=k+(va*80|0)+780|0;K=d[(ca&n)>>0]|0;I=c[(Ca&p)>>2]|0;Q=I+(K*72|0)+8|0;q=c[(I+(K*72|0)&p)+48>>2]|0;B=c[(Ha&p)>>2]|0;y:do if((B|0)>0){h=0;while(1){if((c[(Ha+(h<<2)&p)+4>>2]|0)==(q|0))break;h=h+1|0;if((h|0)>=(B|0)){h=-1;B=-1;break y}}h=iw(1,0,h|0)|0;h=~h;B=~G}else{h=-1;B=-1}while(0);ia=k+(va*80|0)+808|0;P=ia;c[(P&p)>>2]=h&t;c[(P&p)+4>>2]=B&s;P=ka;P=mw(c[(P&p)>>2]|0,c[(P&p)+4>>2]|0,va|0)|0;ba=P&1;W=N+36|0;if(!(c[(W&p)>>2]&64))y=0;else y=(b[(Ea&o)>>1]&32)==0;J=xs(ea)|0;S=k+(va*80|0)+752|0;c[(S&p)>>2]=J;da=k+(va*80|0)+748|0;c[(da&p)>>2]=J;ga=xs(ea)|0;c[(k+(va*80|0)&p)+760>>2]=ga;do if(a[(ca&n)>>0]|0){if(!(a[(I+(K*72|0)&n)+44>>0]&8))break;aa=ja+72|0;l=(c[(aa&p)>>2]|0)+1|0;c[(aa&p)>>2]=l;c[(u&p)>>2]=l;wh(ea,25,0,l,0)|0}while(0);D=a[(I+(K*72|0)&n)+45>>0]|0;z:do if(!(D&4)){F=c[(W&p)>>2]|0;if(F&1024){v=b[(N&o)+40>>1]|0;w=v&65535;y=ja+100|0;c[(y&p)>>2]=(c[(y&p)>>2]|0)+1;y=w+2|0;J=ja+60|0;h=c[(J&p)>>2]|0;K=ja+56|0;B=c[(K&p)>>2]|0;if((B|0)<(y|0)){ca=ja+72|0;x=c[(ca&p)>>2]|0;c[(ca&p)>>2]=x+y;x=x+1|0}else{c[(J&p)>>2]=h+y;c[(K&p)>>2]=B-y;x=h}h=c[(da&p)>>2]|0;E=v<<16>>16==0;if(!E){H=x+2|0;F=N+48|0;I=0;do{D=H+I|0;C=c[((c[(F&p)>>2]|0)+(I<<2)&p)>>2]|0;do if(C)if(!(b[(C&o)+18>>1]&1)){Rq(ja,c[((c[(C&p)>>2]|0)&p)+16>>2]|0,D);break}else{Qu(ja,C,u,I,ba,D)|0;h=c[(S&p)>>2]|0;break}while(0);I=I+1|0}while((I|0)<(w|0))}wh(ea,25,c[(N&p)+24>>2]|0,x,0)|0;wh(ea,25,w,x+1|0,0)|0;ba=c[(N&p)+32>>2]|0;da=N+28|0;ca=(a[(da&n)>>0]|0)!=0?-11:-2;xh(ea,wh(ea,14,q,h,x)|0,ba,ca);a[(da&n)>>0]=0;if(!E){z=N+30|0;A=N+48|0;h=(v&65535)>1?0-w|0:-1;h=h>>>0>4294967280?0-h|0:16;B=0;do{if(e[(z&o)>>1]&1<<B)Ru(u,c[((c[(A&p)>>2]|0)+(B<<2)&p)>>2]|0);B=B+1|0}while((B|0)!=(h|0))}a[(k+(va*80|0)&n)+781>>0]=-105;c[(k+(va*80|0)&p)+784>>2]=q;c[(k+(va*80|0)&p)+788>>2]=c[(ea&p)+32>>2];dt(ja,x,y);if((c[(K&p)>>2]|0)<(y|0)){c[(K&p)>>2]=y;c[(J&p)>>2]=x}bu(ja);xa=459;break}if(!((F&256|0)==0|(F&5|0)==0)){y=c[(c[(N&p)+48>>2]&p)>>2]|0;da=ja+72|0;A=(c[(da&p)>>2]|0)+1|0;c[(da&p)>>2]=A;y=Qu(ja,y,u,0,ba,A)|0;if((y|0)!=(A|0))_r(ja,A);xa=c[(S&p)>>2]|0;wh(ea,38,y,xa,0)|0;wh(ea,70,q,xa,y)|0;dt(ja,y,1);Su(ja,q,-1,y);a[(k+(va*80|0)&n)+781>>0]=-100;xa=459;break}if((F&258|0)==258){if(!(F&32)){h=0;A=0}else{h=1;A=c[(c[(N&p)+48>>2]&p)>>2]|0}if(!(F&16))h=0;else h=c[((c[(N&p)+48>>2]|0)+(h<<2)&p)>>2]|0;B=(ba|0)!=0;z=B?A:h;h=B?h:A;if(!h)wh(ea,B?105:108,q,J,0)|0;else{ca=c[(h&p)>>2]|0;da=$t(ja,c[(ca&p)+16>>2]|0,Na)|0;wh(ea,d[((d[(ca&n)>>0]|0)+-80&n)+33536>>0]|0,q,J,da)|0;dt(ja,da,1);_r(ja,c[(Na&p)>>2]|0);Ru(u,h)}if(!z){h=0;B=156}else{da=c[(z&p)>>2]|0;ca=ja+72|0;h=(c[(ca&p)>>2]|0)+1|0;c[(ca&p)>>2]=h;Rq(ja,c[(da&p)+16>>2]|0,h);da=a[(da&n)>>0]|0;if(da<<24>>24==80|da<<24>>24==82)B=ba<<1^83;else B=ba<<1|80;Ru(u,z)}A=ea+32|0;da=c[(A&p)>>2]|0;a[(k+(va*80|0)&n)+781>>0]=ba^9;c[(k+(va*80|0)&p)+784>>2]=q;c[(k+(va*80|0)&p)+788>>2]=da;if((B|0)==156){xa=459;break}da=ja+72|0;x=(c[(da&p)>>2]|0)+1|0;c[(da&p)>>2]=x;wh(ea,103,q,x,0)|0;Su(ja,q,-1,x);wh(ea,B,h,J,x)|0;x=c[(ea&p)+4>>2]|0;if(!x){xa=459;break}a[(x+(((c[(A&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=83;xa=459;break}if(F&512){O=b[(N&o)+24>>1]|0;a[(Ma&n)>>0]=0;V=c[(N&p)+28>>2]|0;X=c[(k+(va*80|0)&p)+744>>2]|0;do if(!(b[(Ea&o)>>1]&1)){H=0;D=0}else{if((a[(la&n)>>0]|0)<=0){H=0;D=0;break}D=(e[(V&o)+46>>1]|0)>(O&65535);H=D&1;D=D&1}while(0);h=O&65535;if(!(F&32)){I=h;K=0}else{I=h+1|0;D=1;K=c[((c[(N&p)+48>>2]|0)+(h<<2)&p)>>2]|0}do if(!(F&16))C=0;else{C=c[((c[(N&p)+48>>2]|0)+(I<<2)&p)>>2]|0;if(b[(C&o)+20>>1]&256){ca=ja+72|0;da=(c[(ca&p)>>2]|0)+1|0;c[(ca&p)>>2]=da;c[(k+(va*80|0)&p)+772>>2]=da;wh(ea,25,(a[((c[(V&p)+28>>2]|0)+h&n)>>0]|0)==1^ba,da,0)|0;c[(k+(va*80|0)&p)+776>>2]=c[(ea&p)+32>>2]}if(K){D=1;break}D=b[((c[(V&p)+4>>2]|0)+(h<<1)&o)>>1]|0;if(D<<16>>16<=-1){D=1;break}H=(a[((c[((c[(V&p)+12>>2]|0)&p)+4>>2]|0)+((D<<16>>16)*24|0)&n)+20>>0]|0)==0?1:H;D=1}while(0);M=Tu(ja,u,ba,D,Oa)|0;L=c[(Oa&p)>>2]|0;J=(L|0)==0;if(!J)a[(Ma&n)>>0]=a[(L+h&n)>>0]|0;N=c[(S&p)>>2]|0;E=b[(V&o)+46>>1]|0;if((O&65535)<(E&65535)?!((a[((c[(V&p)+28>>2]|0)+h&n)>>0]|0)==0^((P&1|0)!=0|0!=0)):0)xa=318;else if((ba|0)!=0?E<<16>>16==O<<16>>16:0)xa=318;else{Q=H;H=0;P=C;S=K}if((xa|0)==318){Q=0;P=K;S=C}C=(S|0)!=0;if(C)E=(b[(S&o)+18>>1]&40)!=0;else E=1;F=E&1;K=(P|0)!=0;if(K)I=(b[(P&o)+18>>1]&40)!=0;else I=1;D=I&1;I=(C|O<<16>>16!=0)&1;do if(C){B=c[((c[(S&p)>>2]|0)&p)+16>>2]|0;C=M+h|0;Rq(ja,B,C);if(b[(S&o)+20>>1]&256){if(!(a[((c[(ea&p)>>2]|0)&n)+65>>0]|0))E=(c[(ea&p)+4>>2]|0)+(((c[(ea&p)+32>>2]|0)+-1|0)*20|0)|0;else E=29120;c[(E&p)+12>>2]=c[(k+(va*80|0)&p)+772>>2];a[(E&n)+3>>0]=1}if(Uu(B)|0)wh(ea,76,C,N,0)|0;do if(!J){E=L+h|0;if((Bu(B,a[(E&n)>>0]|0)|0)<<24>>24==65){a[(E&n)>>0]=65;C=65}else C=a[(E&n)>>0]|0;if(!(Vu(B,C)|0))break;a[(E&n)>>0]=65}while(0);E=h+1|0}else{if(!(Q<<24>>24)){E=h;break}wh(ea,28,0,M+h|0,0)|0;E=h+1|0;F=0;I=1}while(0);Wu(ja,M,E-(Q&255)|0,L);xh(ea,wh(ea,d[((I<<2|ba|F<<1)&n)+33544>>0]|0,X,N,M)|0,E,-14);do if(K){B=c[((c[(P&p)>>2]|0)&p)+16>>2]|0;A=M+h|0;dt(ja,A,1);Rq(ja,B,A);if(b[(P&o)+20>>1]&256){if(!(a[((c[(ea&p)>>2]|0)&n)+65>>0]|0))C=(c[(ea&p)+4>>2]|0)+(((c[(ea&p)+32>>2]|0)+-1|0)*20|0)|0;else C=29120;c[(C&p)+12>>2]=c[(k+(va*80|0)&p)+772>>2];a[(C&n)+3>>0]=1}if(Uu(B)|0)wh(ea,76,A,N,0)|0;do if((Bu(B,a[(Ma&n)>>0]|0)|0)<<24>>24!=65){if(Vu(B,a[(Ma&n)>>0]|0)|0)break;Wu(ja,A,1,Ma)}while(0);h=h+1|0}else{if(!(H<<24>>24))break;wh(ea,28,0,M+h|0,0)|0;D=0;h=h+1|0}while(0);mg(ha,L);c[(k+(va*80|0)&p)+788>>2]=c[(ea&p)+32>>2];if(h)xh(ea,wh(ea,d[((D|ba<<1)&n)+33552>>0]|0,X,N,M)|0,h,-14);Ru(u,S);Ru(u,P);do if(!y){h=c[(V&p)+12>>2]|0;if(!(a[(h&n)+44>>0]&32)){ca=ja+72|0;da=(c[(ca&p)>>2]|0)+1|0;c[(ca&p)>>2]=da;wh(ea,112,X,da,0)|0;Su(ja,q,-1,da);wh(ea,66,q,da,0)|0;break}if((q|0)==(X|0))break;h=c[(h&p)+8>>2]|0;A:do if(!h)D=0;else while(1){if((a[(h&n)+51>>0]&3)==2){D=h;break A}h=c[(h&p)+20>>2]|0;if(!h){D=0;break}}while(0);I=D+46|0;w=b[(I&o)>>1]|0;h=w&65535;B=ja+60|0;A=c[(B&p)>>2]|0;z=ja+56|0;v=c[(z&p)>>2]|0;if((v|0)<(h|0)){da=ja+72|0;A=c[(da&p)>>2]|0;c[(da&p)>>2]=A+h;A=A+1|0}else{c[(B&p)>>2]=A+h;c[(z&p)>>2]=v-h}if(w<<16>>16){v=D+4|0;w=V+48|0;z=V+4|0;E=0;do{D=b[((c[(v&p)>>2]|0)+(E<<1)&o)>>1]|0;h=b[(w&o)>>1]|0;B:do if(!(h<<16>>16))h=-1;else{C=c[(z&p)>>2]|0;B=h&65535;h=0;while(1){if((b[(C+(h<<1)&o)>>1]|0)==D<<16>>16)break B;h=h+1|0;if((h|0)>=(B|0)){h=-1;break}}}while(0);wh(ea,47,X,h<<16>>16,E+A|0)|0;E=E+1|0;h=e[(I&o)>>1]|0}while((E|0)<(h|0))}xh(ea,wh(ea,68,q,ga,A)|0,h,-14)}while(0);A=c[(W&p)>>2]|0;do if(!(A&4096)){z=k+(va*80|0)+781|0;if(!ba){a[(z&n)>>0]=9;break}else{a[(z&n)>>0]=8;break}}else a[(k+(va*80|0)&n)+781>>0]=-100;while(0);c[(k+(va*80|0)&p)+784>>2]=X;a[(k+(va*80|0)&n)+782>>0]=A>>>16&1;if(A&15){xa=459;break}a[(k+(va*80|0)&n)+783>>0]=1;xa=459;break}if(!(F&8192))if(!(D&8)){a[(k+(va*80|0)&n)+781>>0]=a[(ba&n)+33560>>0]|0;c[(k+(va*80|0)&p)+784>>2]=q;c[(k+(va*80|0)&p)+788>>2]=(wh(ea,d[(ba&n)+33568>>0]|0,q,J,0)|0)+1;a[(k+(va*80|0)&n)+783>>0]=1;xa=459;break}else{a[(k+(va*80|0)&n)+781>>0]=-100;xa=459;break}J=ja+68|0;aa=c[(J&p)>>2]|0;c[(J&p)>>2]=aa+1;_=ja+72|0;$=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=$;ba=xs(ea)|0;Z=c[(I+(K*72|0)&p)+24>>2]|0;l=c[(c[(N&p)+48>>2]&p)>>2]|0;S=c[(l&p)+12>>2]|0;a[(k+(va*80|0)&n)+781>>0]=18;c[(k+(va*80|0)&p)+784>>2]=$;D=a[(Ba&n)>>0]|0;do if((D&255)>1){I=(D&255)-va|0;F=I+-1|0;E=mh(ha,(F*72|0)+80|0,0)|0;if(!E)break z;D=I&255;c[(E&p)+4>>2]=D;c[(E&p)>>2]=D;D=E+8|0;K=D+0|0;C=Q+0|0;h=K+72|0;do{c[(K&p)>>2]=c[(C&p)>>2];K=K+4|0;C=C+4|0}while((K|0)<(h|0));H=c[(Ca&p)>>2]|0;if((I|0)<2){Y=E;break}else I=1;while(1){K=D+(I*72|0)+0|0;C=H+((d[(k+((I+va|0)*80|0)&n)+780>>0]|0)*72|0)+8|0;h=K+72|0;do{c[(K&p)>>2]=c[(C&p)>>2];K=K+4|0;C=C+4|0}while((K|0)<(h|0));if((I|0)<(F|0))I=I+1|0;else{Y=E;break}}}else Y=c[(Ca&p)>>2]|0;while(0);if(!(b[(Ea&o)>>1]&8)){if(!(a[(Z&n)+44>>0]&32)){D=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=D;wh(ea,28,0,D,0)|0}else{D=c[(Z&p)+8>>2]|0;C:do if(!D)D=0;else while(1){if((a[(D&n)+51>>0]&3)==2)break C;D=c[(D&p)+20>>2]|0;if(!D){D=0;break}}while(0);X=c[(J&p)>>2]|0;c[(J&p)>>2]=X+1;wh(ea,57,X,e[(D&o)+46>>1]|0,0)|0;W=c[(O&p)>>2]|0;xh(W,-1,hs(ja,D)|0,-6);D=X}W=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=W}else{W=0;D=0}X=wh(ea,25,0,$,0)|0;C=c[(ya&p)>>2]|0;do if((C|0)>1){E=0;I=0;do{H=c[(za&p)>>2]|0;V=H+(E*48|0)|0;F=c[(V&p)>>2]|0;do if((V|0)!=(l|0)){if(c[(F&p)+4>>2]&1)break;if(b[(H+(E*48|0)&o)+20>>1]&2)break;if(!(b[(H+(E*48|0)&o)+18>>1]&4095))break;I=ss(ha,I,Mr(ha,F,0,0)|0)|0;C=c[(ya&p)>>2]|0}while(0);E=E+1|0}while((E|0)<(C|0));C=I;if(!C){V=0;break}V=Zq(ja,72,0,C,0)|0}else V=0;while(0);U=S+12|0;do if((c[(U&p)>>2]|0)>0){x=S+20|0;w=(V|0)==0;v=Z+44|0;z=ea+32|0;A=ea+4|0;C=ea+24|0;E=Z+8|0;F=ja+60|0;H=ja+56|0;I=V+12|0;T=0;B=0;h=0;y=240;while(1){K=c[(x&p)>>2]|0;if((c[(K+(T*48|0)&p)+8>>2]|0)!=(q|0)?(b[(K+(T*48|0)&o)+18>>1]&512)==0:0)K=y;else xa=407;do if((xa|0)==407){xa=0;K=c[(K+(T*48|0)&p)>>2]|0;do if(!w){if(c[(K&p)+4>>2]&1)break;c[(I&p)>>2]=K;K=V}while(0);L=Vs(ja,Y,K,0,0,y,aa)|0;if(!L){K=y;break}Pu(ja,Y,L+736|0,va,d[(ca&n)>>0]|0,0);do if(!(b[(Ea&o)>>1]&8)){O=(T|0)==((c[(U&p)>>2]|0)+-1|0)?-1:T;do if(!(a[(v&n)>>0]&32)){J=wh(ea,130,D,0,ct(ja,Z,-1,q,W,0)|0)|0;xh(ea,J,O,-14)}else{K=c[(E&p)>>2]|0;D:do if(!K)K=0;else while(1){if((a[(K&n)+51>>0]&3)==2)break D;K=c[(K&p)+20>>2]|0;if(!K){K=0;break}}while(0);P=b[(K&o)+46>>1]|0;M=P&65535;S=c[(F&p)>>2]|0;Q=c[(H&p)>>2]|0;if((Q|0)<(M|0)){N=c[(_&p)>>2]|0;c[(_&p)>>2]=N+M;N=N+1|0}else{c[(F&p)>>2]=S+M;c[(H&p)>>2]=Q-M;N=S}if(P<<16>>16){Q=K+4|0;S=0;do{ct(ja,Z,b[((c[(Q&p)>>2]|0)+(S<<1)&o)>>1]|0,q,S+N|0,0)|0;S=S+1|0}while((S|0)<(M|0))}S=(O|0)!=0;if(S){J=wh(ea,69,D,0,N)|0;xh(ea,J,M,-14);if((O|0)>-1)xa=426}else{J=0;xa=426}do if((xa|0)==426){xa=0;wh(ea,49,N,M,W)|0;wh(ea,110,D,W,0)|0;if(!S)break;O=c[(A&p)>>2]|0;if(!O)break;a[(O+(((c[(z&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=16}while(0);dt(ja,N,M);if((c[(H&p)>>2]|0)>=(M|0))break;c[(H&p)>>2]=M;c[(F&p)>>2]=N}while(0);wh(ea,17,$,ba,0)|0;if(!J)break;K=c[(z&p)>>2]|0;if(K>>>0>J>>>0)c[((c[(A&p)>>2]|0)+(J*20|0)&p)+8>>2]=K;c[((c[(C&p)>>2]|0)&p)+88>>2]=K+-1}else wh(ea,17,$,ba,0)|0;while(0);h=(a[(L&n)+39>>0]|0)==0?h:1;K=c[(L&p)+800>>2]|0;do if(!(c[(K&p)+36>>2]&512)){B=0;K=y}else{if((T|0)!=0?(c[(K&p)+28>>2]|0)!=(B|0):0){B=0;K=y;break}B=c[(K&p)+28>>2]|0;if((a[(v&n)>>0]&32)!=0?(a[(B&n)+51>>0]&3)==2:0){B=0;K=y;break}K=(y&65535|4096)&65535}while(0);Xs(L)}while(0);T=T+1|0;if((T|0)>=(c[(U&p)>>2]|0))break;else y=K}c[(k+(va*80|0)&p)+792>>2]=B;if(!B){v=h;break}c[(k+(va*80|0)&p)+744>>2]=aa;v=h}else{c[(k+(va*80|0)&p)+792>>2]=0;v=0}while(0);if(V){c[(V&p)+12>>2]=0;Gk(ha,V)}z=ea+32|0;h=c[(z&p)>>2]|0;if(h>>>0>X>>>0)c[((c[(ea&p)+4>>2]|0)+(X*20|0)&p)+4>>2]=h;wh(ea,16,0,c[(da&p)>>2]|0,0)|0;B=c[(ea&p)+24>>2]|0;A=~ba;do if((ba|0)<0){h=c[(B&p)+112>>2]|0;if(!h)break;c[(h+(A<<2)&p)>>2]=c[(z&p)>>2]}while(0);c[(B&p)+88>>2]=(c[(z&p)>>2]|0)+-1;if((d[(Ba&n)>>0]|0)>1)mg(ha,Y);if(v){xa=459;break}Ru(u,l);xa=459}else{xa=c[(I+(K*72|0)&p)+36>>2]|0;wh(ea,20,xa,0,c[(I+(K*72|0)&p)+32>>2]|0)|0;c[(k+(va*80|0)&p)+788>>2]=wh(ea,22,xa,J,0)|0;a[(k+(va*80|0)&n)+781>>0]=16;xa=459}while(0);if((xa|0)==459){xa=0;h=c[(ya&p)>>2]|0;do if((h|0)>0){x=k+(va*80|0)+772|0;y=ea+32|0;C=ea+4|0;D=ea+24|0;w=c[(za&p)>>2]|0;while(1){v=w+20|0;B=b[(v&o)>>1]|0;do if(!(B&6)){da=w+40|0;ca=ia;if(!((c[(ca&p)>>2]&c[(da&p)>>2]|0)==0?(c[(ca&p)+4>>2]&c[(da&p)+4>>2]|0)==0:0)){a[(ma&n)>>0]=1;break}A=c[(w&p)>>2]|0;if((c[(u&p)>>2]|0)!=0?(c[(A&p)+4>>2]&1|0)==0:0)break;do if(!(B&512))gt(ja,A,ga,16);else{z=wh(ea,46,c[(x&p)>>2]|0,0,0)|0;gt(ja,A,ga,16);if(!z)break;B=c[(y&p)>>2]|0;if(B>>>0>z>>>0)c[((c[(C&p)>>2]|0)+(z*20|0)&p)+8>>2]=B;c[((c[(D&p)>>2]|0)&p)+88>>2]=B+-1}while(0);b[(v&o)>>1]=e[(v&o)>>1]|4}while(0);h=h+-1|0;if((h|0)<=0)break;else w=w+48|0}x=c[(ya&p)>>2]|0;if((x|0)<=0){xa=475;break}z=c[(za&p)>>2]|0;while(1){do if(!(b[(z&o)+20>>1]&6)){if((b[(z&o)+18>>1]|0)!=1026)break;if((c[(z&p)+8>>2]|0)!=(q|0))break;if(c[(u&p)>>2]|0)break;B=c[(z&p)>>2]|0;h=Fu(Ia,q,c[(z&p)+12>>2]|0,t,s,3,0)|0;if(!h)break;if(b[(h&o)+20>>1]&4)break;A=mh(ha,48,0)|0;if(!A)break;K=A+0|0;C=(c[(h&p)>>2]|0)+0|0;h=K+48|0;do{c[(K&p)>>2]=c[(C&p)>>2];K=K+4|0;C=C+4|0}while((K|0)<(h|0));c[(A&p)+12>>2]=c[(B&p)+12>>2];gt(ja,A,ga,16);mg(ha,A)}while(0);x=x+-1|0;if((x|0)<=0)break;else z=z+48|0}}else xa=475;while(0);if((xa|0)==475)xa=0;u=c[(u&p)>>2]|0;do if(u){c[(k+(va*80|0)&p)+764>>2]=c[(ea&p)+32>>2];wh(ea,25,1,u,0)|0;at(ja);u=c[(ya&p)>>2]|0;if((u|0)<=0)break;x=0;w=c[(za&p)>>2]|0;while(1){t=w+20|0;do if(!(b[(t&o)>>1]&6)){ea=w+40|0;da=ia;if(!((c[(da&p)>>2]&c[(ea&p)>>2]|0)==0?(c[(da&p)+4>>2]&c[(ea&p)+4>>2]|0)==0:0))break;gt(ja,c[(w&p)>>2]|0,ga,16);b[(t&o)>>1]=e[(t&o)>>1]|4;u=c[(ya&p)>>2]|0}while(0);x=x+1|0;if((x|0)>=(u|0))break;else w=w+48|0}}while(0);s=ia;t=c[(s&p)>>2]|0;s=c[(s&p)+4>>2]|0}c[(Da&p)>>2]=c[(wa+(va*80|0)&p)+24>>2];va=va+1|0;if((va|0)>=(r|0))break a}}}while(0);if(Ja)k=0;else{c[(Fa&p)>>2]=c[(Ga&p)>>2];Xu(La,k);k=0}}else{c[(Na&p)>>2]=64;th(f,33504,Na);k=0}while(0);i=Pa;return k|0}function Ws(a){a=a|0;var b=0,c=0,d=0,e=0;e=a<<16>>16;do if(a<<16>>16>=10){a=(e|0)%10|0;b=((a|0)<0)<<31>>31;if(a>>>0>4){c=jw(a|0,b|0,-2,-1)|0;d=G}else{c=((a|0)!=0)<<31>>31;c=jw(c|0,((c|0)<0)<<31>>31|0,a|0,b|0)|0;d=G}b=((e|0)/10|0)<<16;a=b>>16;if((b|0)<=131072){b=jw(c|0,d|0,8,0)|0;a=mw(b|0,G|0,3-a|0)|0;b=G;break}if((b|0)>3932160){b=2147483647;a=-1}else{b=jw(c|0,d|0,8,0)|0;a=iw(b|0,G|0,a+-3|0)|0;b=G}}else{b=0;a=1}while(0);G=b;return a|0}function Xs(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0;F=c[(e&p)>>2]|0;G=c[(F&p)+8>>2]|0;I=c[(e&p)+4>>2]|0;J=c[(F&p)>>2]|0;at(F);K=e+41|0;g=a[(K&n)>>0]|0;if(!(g<<24>>24))f=G+24|0;else{f=G+24|0;s=G+32|0;u=G+4|0;r=g&255;do{r=r+-1|0;i=c[(e+(r*80|0)&p)+800>>2]|0;D=c[(e+(r*80|0)&p)+760>>2]|0;g=c[(f&p)>>2]|0;h=~D;if((D|0)<0?(v=c[(g&p)+112>>2]|0,(v|0)!=0):0)c[(v+(h<<2)&p)>>2]=c[(s&p)>>2];c[(g&p)+88>>2]=(c[(s&p)>>2]|0)+-1;E=e+(r*80|0)+781|0;h=a[(E&n)>>0]|0;if(h<<24>>24!=-100?(wh(G,h&255,c[(e+(r*80|0)&p)+784>>2]|0,c[(e+(r*80|0)&p)+788>>2]|0,d[(e+(r*80|0)&n)+782>>0]|0)|0,x=c[(u&p)>>2]|0,(x|0)!=0):0)a[(x+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=a[(e+(r*80|0)&n)+783>>0]|0;w=i+36|0;if((c[(w&p)>>2]&2048|0)!=0?(y=e+(r*80|0)+792|0,z=c[(y&p)>>2]|0,(z|0)>0):0){D=c[(e+(r*80|0)&p)+752>>2]|0;k=c[(f&p)>>2]|0;h=~D;if((D|0)<0?(A=c[(k&p)+112>>2]|0,(A|0)!=0):0){c[(A+(h<<2)&p)>>2]=c[(s&p)>>2];l=c[(y&p)>>2]|0;j=c[(s&p)>>2]|0;c[(k&p)+88>>2]=j+-1;g=e+(r*80|0)+796|0;if((l|0)>0)L=16}else{j=c[(s&p)>>2]|0;c[(k&p)+88>>2]=j+-1;g=e+(r*80|0)+796|0;l=z;L=16}if((L|0)==16){L=0;h=k;q=l;m=(c[(g&p)>>2]|0)+((l+-1|0)*12|0)|0;while(1){l=m+4|0;k=c[(l&p)>>2]|0;i=k+1|0;if(j>>>0>i>>>0)c[((c[(u&p)>>2]|0)+(i*20|0)&p)+8>>2]=j;c[(h&p)+88>>2]=j+-1;wh(G,d[(m&n)+8>>0]|0,c[(m&p)>>2]|0,k,0)|0;l=(c[(l&p)>>2]|0)+-1|0;j=c[(s&p)>>2]|0;if(j>>>0>l>>>0)c[((c[(u&p)>>2]|0)+(l*20|0)&p)+8>>2]=j;h=c[(f&p)>>2]|0;c[(h&p)+88>>2]=j+-1;q=q+-1|0;if((q|0)<=0)break;else m=m+-12|0}}mg(J,c[(g&p)>>2]|0)}D=c[(e+(r*80|0)&p)+748>>2]|0;i=c[(f&p)>>2]|0;h=~D;if((D|0)<0?(t=c[(i&p)+112>>2]|0,(t|0)!=0):0)c[(t+(h<<2)&p)>>2]=c[(s&p)>>2];h=c[(s&p)>>2]|0;c[(i&p)+88>>2]=h+-1;i=e+(r*80|0)+756|0;g=c[(i&p)>>2]|0;if(g){wh(G,16,0,g,0)|0;i=c[(i&p)>>2]|0;h=c[(s&p)>>2]|0;if(h>>>0>i>>>0)c[((c[(u&p)>>2]|0)+(i*20|0)&p)+8>>2]=h;j=h+-1|0;g=(c[(f&p)>>2]|0)+88|0;c[(g&p)>>2]=j;i=i+-2|0;if(h>>>0>i>>>0)c[((c[(u&p)>>2]|0)+(i*20|0)&p)+8>>2]=h;c[(g&p)>>2]=j}i=c[(e+(r*80|0)&p)+776>>2]|0;if(i){if(!(a[((c[(G&p)>>2]|0)&n)+65>>0]|0))h=(c[(u&p)>>2]|0)+((((i|0)<1?h:i)+-1|0)*20|0)|0;else h=29120;wh(G,(c[(h&p)+4>>2]|0)==0?141:140,c[(e+(r*80|0)&p)+772>>2]|0,i,0)|0}g=c[(e+(r*80|0)&p)+736>>2]|0;if(g){j=wh(G,137,g,0,0)|0;g=c[(w&p)>>2]|0;if(!(g&64)){wh(G,104,c[(I+(r*72|0)&p)+48>>2]|0,0,0)|0;g=c[(w&p)>>2]|0}if(g&512)wh(G,104,c[(e+(r*80|0)&p)+744>>2]|0,0,0)|0;g=c[(e+(r*80|0)&p)+764>>2]|0;if((a[(E&n)>>0]|0)==18)wh(G,17,c[(e+(r*80|0)&p)+784>>2]|0,g,0)|0;else wh(G,16,0,g,0)|0;g=c[(s&p)>>2]|0;if(g>>>0>j>>>0)c[((c[(u&p)>>2]|0)+(j*20|0)&p)+8>>2]=g;c[((c[(f&p)>>2]|0)&p)+88>>2]=g+-1}}while((r|0)>0)}D=c[(e&p)+52>>2]|0;g=c[(f&p)>>2]|0;f=~D;if((D|0)<0?(B=c[(g&p)+112>>2]|0,(B|0)!=0):0)c[(B+(f<<2)&p)>>2]=c[(G&p)+32>>2];E=G+32|0;c[(g&p)+88>>2]=(c[(E&p)>>2]|0)+-1;if(a[(K&n)>>0]|0){x=e+34|0;y=e+38|0;z=e+64|0;A=J+65|0;B=G+4|0;C=0;D=e+736|0;while(1){i=d[(D&n)+44>>0]|0;j=c[(I+(i*72|0)&p)+24>>2]|0;h=c[(D&p)+64>>2]|0;if((a[(I+(i*72|0)&n)+45>>0]&4)!=0?(a[(A&n)>>0]|0)==0:0){k=c[(E&p)>>2]|0;h=c[(D&p)+32>>2]|0;if(!(a[((c[(G&p)>>2]|0)&n)+65>>0]|0))g=(c[(B&p)>>2]|0)+(((h|0)<0?k+-1|0:h)*20|0)|0;else g=29120;if((h|0)<(k|0)){l=c[(D&p)+4>>2]|0;j=I+(i*72|0)+40|0;i=g;while(1){g=i+4|0;do if((c[(g&p)>>2]|0)==(l|0)){f=a[(i&n)>>0]|0;if(f<<24>>24==103){a[(i&n)>>0]=28;c[(g&p)>>2]=0;c[(i&p)+12>>2]=0;break}else if(f<<24>>24==47){a[(i&n)>>0]=33;v=i+8|0;c[(g&p)>>2]=(c[(j&p)>>2]|0)+(c[(v&p)>>2]|0);w=i+12|0;c[(v&p)>>2]=c[(w&p)>>2];c[(w&p)>>2]=0;break}else break}while(0);h=h+1|0;if((h|0)==(k|0))break;else i=i+20|0}}}else L=64;do if((L|0)==64){L=0;w=j+44|0;if(((a[(w&n)>>0]&2)==0?(c[(j&p)+12>>2]|0)==0:0)?(b[(x&o)>>1]&16)==0:0){g=c[(h&p)+36>>2]|0;if((a[(y&n)>>0]|0)==0&(g&64|0)==0)wh(G,61,c[(I+(i*72|0)&p)+48>>2]|0,0,0)|0;if((g&17152|0)==512?(H=c[(D&p)+8>>2]|0,(H|0)!=(c[(z&p)>>2]|0)):0)wh(G,61,H,0,0)|0}g=c[(h&p)+36>>2]|0;if(!(g&576)){if(!(g&8192))break;g=D+56|0}else g=h+28|0;h=c[(g&p)>>2]|0;if((h|0)!=0?(a[(A&n)>>0]|0)==0:0){u=c[(E&p)>>2]|0;l=c[(D&p)+32>>2]|0;if(!(a[((c[(G&p)>>2]|0)&n)+65>>0]|0))k=(c[(B&p)>>2]|0)+(((l|0)<0?u+-1|0:l)*20|0)|0;else k=29120;if((l|0)<(u|0)){v=h+48|0;s=h+4|0;t=D+8|0;r=j+8|0;f=c[(D&p)+4>>2]|0;g=k;while(1){h=g+4|0;a:do if((c[(h&p)>>2]|0)==(f|0)){k=a[(g&n)>>0]|0;if(k<<24>>24==103){c[(h&p)>>2]=c[(t&p)>>2];a[(g&n)>>0]=112;break}else if(k<<24>>24!=47)break;i=g+8|0;k=c[(i&p)>>2]|0;if(a[(w&n)>>0]&32){j=r;while(1){j=c[(j&p)>>2]|0;if((a[(j&n)+51>>0]&3)==2)break;else j=j+20|0}k=b[((c[(j&p)+4>>2]|0)+(k<<1)&o)>>1]|0}q=k&65535;k=b[(v&o)>>1]|0;if(k<<16>>16){j=c[(s&p)>>2]|0;m=k&65535;k=0;while(1){if((b[(j+(k<<1)&o)>>1]|0)==q<<16>>16)break;k=k+1|0;if((k|0)>=(m|0))break a}if((k&65535)<<16>>16>-1){c[(i&p)>>2]=k<<16>>16;c[(h&p)>>2]=c[(t&p)>>2]}}}while(0);l=l+1|0;if((l|0)==(u|0))break;else g=g+20|0}}}}while(0);C=C+1|0;if((C|0)>=(d[(K&n)>>0]|0))break;else D=D+80|0}}c[(F&p)+424>>2]=c[(e&p)+56>>2];Xu(J,e);return}function Ys(a,b){a=a|0;b=b|0;var d=0,e=0;if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){d=0;e=c[(b&p)+4>>2]|0;while(1){Yu(a,c[(e&p)>>2]|0);d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0))break;else e=e+20|0}}return}function Zs(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();u=x;h=c[(e&p)+24>>2]|0;v=c[(h&p)>>2]|0;m=c[(h&p)+4>>2]|0;w=c[(h&p)+12>>2]|0;g=d[(f&n)>>0]|0;a:do if((g|0)==154|(g|0)==156)if((m|0)!=0?(l=c[(m&p)>>2]|0,(l|0)>0):0){s=f+28|0;r=c[(s&p)>>2]|0;g=0;h=m+8|0;while(1){if((r|0)==(c[(h&p)+40>>2]|0))break;g=g+1|0;if((g|0)>=(l|0)){e=1;break a}else h=h+72|0}q=w+28|0;k=w+32|0;h=c[(k&p)>>2]|0;b:do if((h|0)>0){m=f+32|0;e=0;l=c[(q&p)>>2]|0;while(1){if((c[(l&p)+4>>2]|0)==(r|0)?(c[(l&p)+8>>2]|0)==(b[(m&o)>>1]|0):0)break b;e=e+1|0;if((e|0)<(h|0))l=l+24|0;else break}}else e=0;while(0);c:do if((e|0)>=(h|0)){h=Ht(c[(v&p)>>2]|0,c[(q&p)>>2]|0,24,k,u)|0;c[(q&p)>>2]=h;e=c[(u&p)>>2]|0;if((e|0)>-1){c[(h+(e*24|0)&p)>>2]=c[(f&p)+44>>2];k=c[(s&p)>>2]|0;c[(h+(e*24|0)&p)+4>>2]=k;l=b[(f&o)+32>>1]|0;c[(h+(e*24|0)&p)+8>>2]=l<<16>>16;s=v+72|0;m=(c[(s&p)>>2]|0)+1|0;c[(s&p)>>2]=m;c[(h+(e*24|0)&p)+16>>2]=m;m=h+(e*24|0)+12|0;c[(m&p)>>2]=-1;c[(h+(e*24|0)&p)+20>>2]=f;h=c[(w&p)+24>>2]|0;d:do if((h|0)!=0?(t=c[(h&p)>>2]|0,(t|0)>0):0){g=0;h=c[(h&p)+4>>2]|0;while(1){s=c[(h&p)>>2]|0;if(((a[(s&n)>>0]|0)==-102?(c[(s&p)+28>>2]|0)==(k|0):0)?(b[(s&o)+32>>1]|0)==l<<16>>16:0)break;g=g+1|0;if((g|0)>=(t|0))break d;else h=h+20|0}c[(m&p)>>2]=g;if((g|0)>=0)break c}while(0);s=w+12|0;t=c[(s&p)>>2]|0;c[(s&p)>>2]=t+1;c[(m&p)>>2]=t}}while(0);c[(f&p)+40>>2]=w;a[(f&n)>>0]=-100;b[(f&o)+34>>1]=e;e=1}else e=1;else if(((g|0)==155?(b[(h&o)+28>>1]&8)==0:0)?(c[(e&p)+16>>2]|0)==(d[(f&n)+38>>0]|0):0){l=w+40|0;m=w+44|0;g=c[(m&p)>>2]|0;e:do if((g|0)>0){e=0;h=c[(l&p)>>2]|0;while(1){if(!(Cu(c[(h&p)>>2]|0,f,-1)|0))break e;e=e+1|0;if((e|0)<(g|0))h=h+16|0;else break}}else e=0;while(0);do if((e|0)>=(g|0)){k=c[(v&p)>>2]|0;q=a[(k&n)+62>>0]|0;k=Ht(k,c[(l&p)>>2]|0,16,m,u)|0;c[(l&p)>>2]=k;e=c[(u&p)>>2]|0;if((e|0)>-1){c[(k+(e<<4)&p)>>2]=f;l=v+72|0;m=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=m;c[(k+(e<<4)&p)+8>>2]=m;m=c[(v&p)>>2]|0;l=c[(f&p)+8>>2]|0;if(!l)g=0;else{h=l;while(1)if(!(a[(h&n)>>0]|0))break;else h=h+1|0;g=h-l&1073741823}h=c[(f&p)+20>>2]|0;if(!h)h=0;else h=c[(h&p)>>2]|0;c[(k+(e<<4)&p)+4>>2]=Sh(m,l,g,h,q,0)|0;if(!(c[(f&p)+4>>2]&16)){c[(k+(e<<4)&p)+12>>2]=-1;break}else{s=v+68|0;t=c[(s&p)>>2]|0;c[(s&p)>>2]=t+1;c[(k+(e<<4)&p)+12>>2]=t;break}}}while(0);b[(f&o)+34>>1]=e;c[(f&p)+40>>2]=w;e=1}else e=0;while(0);i=x;return e|0}function _s(a,b){a=a|0;b=b|0;return 0}function $s(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((a[(b&n)+450>>0]|0)==2){g=c[(b&p)+8>>2]|0;h=c[(b&p)>>2]|0;c[(e&p)>>2]=d;e=uh(h,35e3,e)|0;xh(g,wh(g,157,c[(b&p)+464>>2]|0,0,0)|0,e,-1)}i=f;return}function at(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=b+19|0;i=0;j=b+116|0;while(1){e=j+12|0;f=c[(e&p)>>2]|0;if(f){g=j+6|0;if(a[(g&n)>>0]|0){h=a[(d&n)>>0]|0;if((h&255)<8){a[(d&n)>>0]=h+1<<24>>24;c[(b+((h&255)<<2)&p)+24>>2]=f}a[(g&n)>>0]=0}c[(e&p)>>2]=0}i=i+1|0;if((i|0)==10)break;else j=j+20|0}return}function bt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;B=i;i=i+32|0;if((i|0)>=(j|0))fa();z=B;g=f&255;s=34-(g&1)|0;v=c[(d&p)>>2]|0;if(!(a[(b&n)+23>>0]|0))f=g&253;if((v|0)>0){h=(f&2)==0;k=b+8|0;l=(s|0)==33;m=z+20|0;o=z+4|0;q=z+24|0;r=0;d=c[(d&p)+4>>2]|0;while(1){g=c[(d&p)>>2]|0;if(!h?(c[(z&p)>>2]=0,c[(z&p)+4>>2]=0,c[(z&p)+8>>2]=0,c[(z&p)+12>>2]=0,c[(z&p)+16>>2]=0,c[(z&p)+20>>2]=0,a[(m&n)>>0]=1,c[(z&p)>>2]=78,c[(o&p)>>2]=79,c[(q&p)>>2]=0,rs(z,g)|0,(a[(m&n)>>0]|0)!=0):0)Gt(b,g,r+e|0,0);else A=8;do if((A|0)==8?(A=0,t=r+e|0,u=is(b,g,t)|0,(u|0)!=(t|0)):0){f=c[(k&p)>>2]|0;if(l){if(!(a[((c[(f&p)>>2]|0)&n)+65>>0]|0))g=(c[(f&p)+4>>2]|0)+(((c[(f&p)+32>>2]|0)+-1|0)*20|0)|0;else g=29120;if(((a[(g&n)>>0]|0)==33?(w=g+12|0,x=c[(w&p)>>2]|0,((c[(g&p)+4>>2]|0)+1+x|0)==(u|0)):0)?(y=x+1|0,(y+(c[(g&p)+8>>2]|0)|0)==(t|0)):0){c[(w&p)>>2]=y;break}}wh(f,s,u,t,0)|0}while(0);r=r+1|0;if((r|0)==(v|0))break;else d=d+20|0}}i=B;return}function ct(d,e,f,g,h,i){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0;q=c[(d&p)+8>>2]|0;j=d+116|0;m=0;k=j;while(1){l=c[(k&p)+12>>2]|0;if(((l|0)>0?(c[(k&p)>>2]|0)==(g|0):0)?(b[(k&o)+4>>1]|0)==(f|0):0){h=l;m=5;break}m=m+1|0;if((m|0)>=10){m=10;break}else k=k+20|0}do if((m|0)==5){q=d+104|0;i=c[(q&p)>>2]|0;c[(q&p)>>2]=i+1;c[(k&p)+16>>2]=i;k=0;while(1){if((c[(j&p)+12>>2]|0)==(h|0))a[(j&n)+6>>0]=0;k=k+1|0;if((k|0)==10)break;else j=j+20|0}}else if((m|0)==10){nt(q,e,g,f,h);if(!(i<<24>>24)){Su(d,g,f,h);break}j=c[(q&p)+4>>2]|0;if(j)a[(j+(((c[(q&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=i}while(0);return h|0}function dt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=d+-1+e|0;g=b+19|0;k=0;l=b+116|0;while(1){h=l+12|0;i=c[(h&p)>>2]|0;if(!((i|0)<(d|0)|(i|0)>(e|0))){j=l+6|0;if(a[(j&n)>>0]|0){f=a[(g&n)>>0]|0;if((f&255)<8){a[(g&n)>>0]=f+1<<24>>24;c[(b+((f&255)<<2)&p)+24>>2]=i}a[(j&n)>>0]=0}c[(h&p)>>2]=0}k=k+1|0;if((k|0)==10)break;else l=l+20|0}return}function et(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=c[(d&p)+8>>2]|0;a[(e&n)>>0]=1;v=e+44|0;if((c[(v&p)>>2]|0)>0){w=D+4|0;y=d+56|0;z=d+60|0;r=D+24|0;s=D+32|0;t=e+36|0;u=d+72|0;A=0;B=c[(e&p)+40>>2]|0;f=0;while(1){k=c[((c[(B&p)>>2]|0)&p)+20>>2]|0;if(!k){g=0;i=0}else{g=c[(k&p)>>2]|0;i=c[(z&p)>>2]|0;h=c[(y&p)>>2]|0;if((h|0)<(g|0)){i=c[(u&p)>>2]|0;c[(u&p)>>2]=i+g;i=i+1|0}else{c[(z&p)>>2]=i+g;c[(y&p)>>2]=h-g}bt(d,k,i,1)}h=B+12|0;if((c[(h&p)>>2]|0)>-1){q=xs(D)|0;zu(d,c[(h&p)>>2]|0,q,1,i)}else q=0;m=B+4|0;h=c[(m&p)>>2]|0;if(b[(h&o)+2>>1]&32){if((g|0)>0){l=0;k=c[(k&p)+4>>2]|0;while(1){h=cu(d,c[(k&p)>>2]|0)|0;l=l+1|0;j=(h|0)!=0;if(!((l|0)<(g|0)&(j^1)))break;else k=k+20|0}if(!j)C=15}else C=15;if((C|0)==15){C=0;h=c[((c[(d&p)>>2]|0)&p)+8>>2]|0}if(!f)if(!(c[(t&p)>>2]|0))f=0;else{f=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=f}xh(D,wh(D,36,f,0,0)|0,h,-4);h=c[(m&p)>>2]|0}xh(D,wh(D,10,0,i,c[(B&p)+8>>2]|0)|0,h,-5);h=c[(w&p)>>2]|0;if(h)a[(h+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=g;dt(d,i,g);dt(d,i,g);if((c[(y&p)>>2]|0)<(g|0)){c[(y&p)>>2]=g;c[(z&p)>>2]=i}if(q){i=c[(r&p)>>2]|0;h=~q;if((q|0)<0?(x=c[(i&p)+112>>2]|0,(x|0)!=0):0)c[(x+(h<<2)&p)>>2]=c[(s&p)>>2];c[(i&p)+88>>2]=(c[(s&p)>>2]|0)+-1;at(d)}A=A+1|0;if((A|0)>=(c[(v&p)>>2]|0))break;else B=B+16|0}if(f)i=wh(D,45,f,0,0)|0;else i=0}else i=0;at(d);f=e+36|0;if((c[(f&p)>>2]|0)>0){g=0;h=c[(e&p)+28>>2]|0;while(1){Rq(d,c[(h&p)+20>>2]|0,c[(h&p)+16>>2]|0);g=g+1|0;if((g|0)>=(c[(f&p)>>2]|0))break;else h=h+24|0}}a[(e&n)>>0]=0;at(d);if(i){f=c[(D&p)+32>>2]|0;if(f>>>0>i>>>0)c[((c[(D&p)+4>>2]|0)+(i*20|0)&p)+8>>2]=f;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=f+-1}return}function ft(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=c[(a&p)+8>>2]|0;e=b+44|0;if((c[(e&p)>>2]|0)>0){f=0;b=c[(b&p)+40>>2]|0;while(1){a=c[((c[(b&p)>>2]|0)&p)+20>>2]|0;if(!a)a=0;else a=c[(a&p)>>2]|0;g=c[(b&p)+4>>2]|0;xh(d,wh(d,142,c[(b&p)+8>>2]|0,a,0)|0,g,-5);f=f+1|0;if((f|0)>=(c[(e&p)>>2]|0))break;else b=b+16|0}}return}function gt(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();o=r+4|0;q=r;m=c[(b&p)+8>>2]|0;c[(o&p)>>2]=0;c[(q&p)>>2]=0;if(!((m|0)==0|(e|0)==0)){s=d[(e&n)>>0]|0;h=s^1;a:do switch(s|0){case 75:{if(g){fu(b,e,f,f);break a}k=xs(m)|0;fu(b,e,f,k);h=c[(m&p)+24>>2]|0;f=~k;if((k|0)<0?(l=c[(h&p)+112>>2]|0,(l|0)!=0):0)c[(l+(f<<2)&p)>>2]=c[(m&p)+32>>2];c[(h&p)+88>>2]=(c[(m&p)+32>>2]|0)+-1;break}case 71:{l=xs(m)|0;Zu(b,c[(e&p)+12>>2]|0,l,g^16);h=b+100|0;c[(h&p)>>2]=(c[(h&p)>>2]|0)+1;gt(b,c[(e&p)+16>>2]|0,f,g);f=c[(m&p)+24>>2]|0;h=~l;if((l|0)<0?(k=c[(f&p)+112>>2]|0,(k|0)!=0):0)c[(k+(h<<2)&p)>>2]=c[(m&p)+32>>2];c[(f&p)+88>>2]=(c[(m&p)+32>>2]|0)+-1;bu(b);break}case 72:{gt(b,c[(e&p)+12>>2]|0,f,g);m=b+100|0;c[(m&p)>>2]=(c[(m&p)>>2]|0)+1;gt(b,c[(e&p)+16>>2]|0,f,g);bu(b);break}case 79:case 78:case 83:case 80:case 81:case 82:{s=e+12|0;l=$t(b,c[(s&p)>>2]|0,o)|0;k=e+16|0;m=$t(b,c[(k&p)>>2]|0,q)|0;au(b,c[(s&p)>>2]|0,c[(k&p)>>2]|0,h,l,m,f,g);break}case 148:case 73:{g=e+12|0;l=$t(b,c[(g&p)>>2]|0,o)|0;k=e+16|0;m=$t(b,c[(k&p)>>2]|0,q)|0;au(b,c[(g&p)>>2]|0,c[(k&p)>>2]|0,(a[(e&n)>>0]|0)==73?78:79,l,m,f,128);break}case 19:{Zu(b,c[(e&p)+12>>2]|0,f,g);break}case 77:case 76:{wh(m,h,$t(b,c[(e&p)+12>>2]|0,o)|0,f,0)|0;break}case 74:{_u(b,e,f,0,g);break}default:{if(mu(e)|0){wh(m,16,0,f,0)|0;break a}if(!($u(e)|0))wh(m,46,$t(b,e,o)|0,f,(g|0)!=0&1)|0}}while(0);_r(b,c[(o&p)>>2]|0);_r(b,c[(q&p)>>2]|0)}i=r;return}function ht(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;f=c[(a&p)+8>>2]|0;g=b+44|0;if((c[(g&p)>>2]|0)!=(0-(c[(b&p)+32>>2]|0)|0)?(wh(f,28,0,c[(b&p)+16>>2]|0,c[(b&p)+20>>2]|0)|0,(c[(g&p)>>2]|0)>0):0){h=0;e=c[(b&p)+40>>2]|0;while(1){b=e+12|0;do if((c[(b&p)>>2]|0)>-1){d=c[((c[(e&p)>>2]|0)&p)+20>>2]|0;if((d|0)!=0?(c[(d&p)>>2]|0)==1:0){d=Us(a,d,0,0)|0;xh(f,wh(f,57,c[(b&p)>>2]|0,0,0)|0,d,-6);break}th(a,34944,k);c[(b&p)>>2]=-1}while(0);h=h+1|0;if((h|0)>=(c[(g&p)>>2]|0))break;else e=e+16|0}}i=l;return}function it(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if((b|0)>0){e=wh(a,138,b,0,-1)|0;wh(a,16,0,d,0)|0;b=c[(a&p)+32>>2]|0;if(b>>>0>e>>>0)c[((c[(a&p)+4>>2]|0)+(e*20|0)&p)+8>>2]=b;c[((c[(a&p)+24>>2]|0)&p)+88>>2]=b+-1}return}function jt(a,b,e,f,g){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;var h=0;if((c[((c[(a&p)>>2]|0)&p)+24>>2]&8388608|0)!=0?(h=As(a,b)|0,(h|0)!=0):0){a=0;b=h;do{if((d[(b&n)+8>>0]|0|0)==(e|0)?(av(c[(b&p)+16>>2]|0,f)|0)!=0:0)a=d[(b&n)+9>>0]|0|a;b=c[(b&p)+32>>2]|0}while((b|0)!=0)}else{a=0;h=0}if(g)c[(g&p)>>2]=a;return ((a|0)!=0?h:0)|0}function kt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;h=a[(d&n)+44>>0]|0;if(h&16){g=c[(b&p)>>2]|0;f=d+60|0;while(1){f=c[(f&p)>>2]|0;if((c[(f&p)>>2]|0)==(g|0))break;else f=f+24|0}if(!(c[((c[(c[(f&p)+4>>2]&p)>>2]|0)&p)+52>>2]|0))g=8;else g=5}else g=5;do if((g|0)==5){if(((h&1)!=0?(c[((c[(b&p)>>2]|0)&p)+24>>2]&2048|0)==0:0)?(a[(b&n)+18>>0]|0)==0:0){g=8;break}if((e|0)==0?(c[(d&p)+12>>2]|0)!=0:0){c[(k&p)>>2]=c[(d&p)>>2];th(b,34456,k);f=1}else f=0}while(0);if((g|0)==8){c[(k&p)>>2]=c[(d&p)>>2];th(b,34424,k);f=1}i=l;return f|0}function lt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();q=r;o=c[(b&p)>>2]|0;h=c[(d&p)+68>>2]|0;a:do if(h){g=c[(o&p)+20>>2]|0;if((g|0)>0){l=c[(o&p)+16>>2]|0;m=0;while(1){k=m+1|0;if((c[(l+(m<<4)&p)+12>>2]|0)==(h|0)){k=m;break a}if((k|0)<(g|0))m=k;else break}}else k=0}else k=-1e6;while(0);g=Mr(o,e,0,0)|0;h=pr(o,0,0,0)|0;if(h){c[(h&p)+16>>2]=kh(o,c[(d&p)>>2]|0)|0;c[(h&p)+12>>2]=kh(o,c[((c[(o&p)+16>>2]|0)+(k<<4)&p)>>2]|0)|0}e=kr(b,0,h,g,0,0,0,0,0,0)|0;a[(q&n)>>0]=12;c[(q&p)+4>>2]=f;a[(q&n)+1>>0]=0;c[(q&p)+8>>2]=0;c[(q&p)+12>>2]=0;ir(b,e,q)|0;Mk(o,e,1);i=r;return}function mt(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();q=r+4|0;h=r;a:do if(c[((c[(a&p)>>2]|0)&p)+24>>2]&524288){if(!e){f=bn((c[(d&p)+68>>2]|0)+56|0,c[(d&p)>>2]|0,h)|0;if((f|0)!=0?(c[(f&p)+8>>2]|0)!=0:0)g=1;else g=(c[(d&p)+16>>2]|0)!=0;g=g&1;break}a=c[(d&p)+16>>2]|0;if(a){m=d+36|0;n=(f|0)!=0;do{h=c[(a&p)+20>>2]|0;if((h|0)>0){l=0;do{k=c[(a+(l<<3)&p)+36>>2]|0;if((c[(e+(k<<2)&p)>>2]|0)>-1){g=1;break a}l=l+1|0;if((k|0)==(b[(m&o)>>1]|0)&n){g=1;break a}}while((l|0)<(h|0))}a=c[(a&p)+4>>2]|0}while((a|0)!=0)}h=bn((c[(d&p)+68>>2]|0)+56|0,c[(d&p)>>2]|0,q)|0;if((h|0)!=0?(g=c[(h&p)+8>>2]|0,(g|0)!=0):0)while(1){if(bv(d,g,e,f)|0){g=1;break a}g=c[(g&p)+12>>2]|0;if(!g){g=0;break}}else g=0}else g=0;while(0);i=r;return g|0}function nt(e,f,g,h,i){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0;if((h|0)>=0?(b[(f&o)+36>>1]|0)!=(h|0):0){j=d[(f&n)+44>>0]|0;q=(j&16|0)!=0?150:47;if(!(j&32))j=h;else{j=c[(f&p)+8>>2]|0;a:do if(!j)j=0;else while(1){if((a[(j&n)+51>>0]&3)==2)break a;j=c[(j&p)+20>>2]|0;if(!j){j=0;break}}while(0);m=h&65535;k=b[(j&o)+48>>1]|0;b:do if(!(k<<16>>16))j=-1;else{l=c[(j&p)+4>>2]|0;k=k&65535;j=0;while(1){if((b[(l+(j<<1)&o)>>1]|0)==m<<16>>16)break b;j=j+1|0;if((j|0)>=(k|0)){j=-1;break}}}while(0);j=j<<16>>16}wh(e,q,g,j,i)|0}else wh(e,103,g,i,0)|0;if((h|0)>-1)Nt(e,f,h,i);return}function ot(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0;j=f+16|0;g=c[(j&p)>>2]|0;do if(!g){h=c[(f&p)+12>>2]|0;g=c[(d&p)>>2]|0;i=f+48|0;d=qg((e[(i&o)>>1]|0)+1|0,0)|0;c[(j&p)>>2]=d;if(!d){a[(g&n)+65>>0]=1;g=0;break}if(!(b[(i&o)>>1]|0))g=0;else{f=f+4|0;h=h+4|0;g=0;do{d=b[((c[(f&p)>>2]|0)+(g<<1)&o)>>1]|0;if(d<<16>>16<0)d=68;else d=a[((c[(h&p)>>2]|0)+((d<<16>>16)*24|0)&n)+21>>0]|0;a[((c[(j&p)>>2]|0)+g&n)>>0]=d;g=g+1|0}while((g|0)<(e[(i&o)>>1]|0));d=c[(j&p)>>2]|0}a[(d+g&n)>>0]=0;g=c[(j&p)>>2]|0}while(0);return g|0}function pt(b,d,e,f,g,h,i){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0;t=d+44|0;if(!(a[(t&n)>>0]&16)){k=c[(b&p)>>2]|0;m=c[(d&p)+68>>2]|0;a:do if(m){o=c[(k&p)+20>>2]|0;if((o|0)>0){k=c[(k&p)+16>>2]|0;l=0;while(1){j=l+1|0;if((c[(k+(l<<4)&p)+12>>2]|0)==(m|0))break a;if((j|0)<(o|0))l=j;else{l=j;break}}}else l=0}else l=-1e6;while(0);s=Oq(b)|0;if((f|0)<0)f=c[(b&p)+68>>2]|0;k=f+1|0;r=(h|0)!=0;if(r)c[(h&p)>>2]=f;do if(!(a[(t&n)>>0]&32)){if((g|0)!=0?(a[(g&n)>>0]|0)==0:0){q=15;break}Qq(b,f,l,d,e)}else q=15;while(0);if((q|0)==15)gs(b,l,c[(d&p)+32>>2]|0,(e|0)==55&1,c[(d&p)>>2]|0);if(i)c[(i&p)>>2]=k;f=c[(d&p)+8>>2]|0;if(!f)j=0;else{m=(g|0)==0;d=b+8|0;o=k;j=0;while(1){k=o+1|0;if((a[(f&n)+51>>0]&3)==2?(a[(t&n)>>0]&32)!=0&r:0)c[(h&p)>>2]=o;j=j+1|0;if(!(!m?(a[(g+j&n)>>0]|0)==0:0)){wh(s,e,o,c[(f&p)+40>>2]|0,l)|0;q=c[(d&p)>>2]|0;xh(q,-1,hs(b,f)|0,-6)}f=c[(f&p)+20>>2]|0;if(!f)break;else o=k}}f=b+68|0;if((k|0)>(c[(f&p)>>2]|0))c[(f&p)>>2]=k}else j=0;return j|0}function qt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=c[(b&p)+408>>2]|0;h=(h|0)==0?b:h;g=h+452|0;b=c[(g&p)>>2]|0;e=c[(h&p)+520>>2]|0;a:do if((b|0)>0){f=0;while(1){if((c[(e+(f<<2)&p)>>2]|0)==(d|0))break a;f=f+1|0;if((f|0)>=(b|0)){i=4;break}}}else i=4;while(0);do if((i|0)==4){b=Xc(e,(b<<2)+4|0)|0;if(!b){a[((c[(h&p)>>2]|0)&n)+65>>0]=1;break}else{c[(h&p)+520>>2]=b;e=c[(g&p)>>2]|0;c[(g&p)>>2]=e+1;c[(b+(e<<2)&p)>>2]=d;break}}while(0);return}function rt(d,e,f,g,h,i,j,k,l,m){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;z=c[(d&p)+8>>2]|0;A=xs(z)|0;x=(a[(e&n)+44>>0]&32)>>>4^70;if(!(m<<24>>24))xh(z,wh(z,x,g,A,i)|0,j<<16>>16,-14);if((mt(d,e,0,0)|0)!=0|(f|0)!=0){t=l&255;u=vt(d,f,0,0,3,e,t)|0;u=ut(d,e)|0|u;r=d+72|0;q=c[(r&p)>>2]|0;m=q+1|0;v=e+38|0;c[(r&p)>>2]=m+(b[(v&o)>>1]|0);wh(z,33,i,m,0)|0;r=b[(v&o)>>1]|0;if(r<<16>>16>0){w=(u|0)==-1;s=q+2|0;q=0;do{if(!w){if((q|0)<32?(1<<q&u|0)!=0:0)y=9}else y=9;if((y|0)==9){y=0;nt(z,e,g,q,s+q|0);r=b[(v&o)>>1]|0}q=q+1|0}while((q|0)<(r<<16>>16|0))}w=z+32|0;v=c[(w&p)>>2]|0;xt(d,f,109,0,1,e,m,t,A);if((v|0)<(c[(w&p)>>2]|0))xh(z,wh(z,x,g,A,i)|0,j<<16>>16,-14);zt(d,e,m,0,0,0)}else m=0;if((c[(e&p)+12>>2]|0)==0?(At(d,e,g,h,0),wh(z,95,g,k<<24>>24!=0&1,0)|0,k<<24>>24!=0):0)xh(z,-1,c[(e&p)>>2]|0,0);Ct(d,e,0,m,0,0);xt(d,f,109,0,2,e,m,l&255,A);q=c[(z&p)+24>>2]|0;m=~A;if((A|0)<0?(B=c[(q&p)+112>>2]|0,(B|0)!=0):0)c[(B+(m<<2)&p)>>2]=c[(z&p)+32>>2];c[(q&p)+88>>2]=(c[(z&p)+32>>2]|0)+-1;return}function st(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,o=0,q=0,r=0;j=c[(b&p)+8>>2]|0;d=c[(b&p)+404>>2]|0;if(d){l=(c[(b&p)>>2]|0)+16|0;m=b+19|0;o=b+72|0;q=j+32|0;r=j+4|0;k=j+24|0;do{f=c[(d&p)+8>>2]|0;g=c[(l&p)>>2]|0;i=c[(d&p)+12>>2]|0;e=a[(m&n)>>0]|0;if(!(e<<24>>24)){h=(c[(o&p)>>2]|0)+1|0;c[(o&p)>>2]=h}else{h=e+-1<<24>>24;a[(m&n)>>0]=h;h=c[(b+((h&255)<<2)&p)+24>>2]|0}Qq(b,0,f,c[((c[(g+(f<<4)&p)+12>>2]|0)&p)+72>>2]|0,55);g=i+1|0;f=wh(j,77,g,0,0)|0;wh(j,74,0,g,0)|0;e=c[(q&p)>>2]|0;if(e>>>0>f>>>0)c[((c[(r&p)>>2]|0)+(f*20|0)&p)+8>>2]=e;c[((c[(k&p)>>2]|0)&p)+88>>2]=e+-1;wh(j,49,i+-1|0,2,h)|0;wh(j,75,0,h,g)|0;e=c[(r&p)>>2]|0;if(e)a[(e+(((c[(q&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;wh(j,61,0,0,0)|0;_r(b,h);d=c[(d&p)>>2]|0}while((d|0)!=0)}return}function tt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;c[(g&p)>>2]=e;if(!e)f=0;else{f=e;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;f=f-e&1073741823}c[(g&p)+4>>2]=f;f=nr(b,d,g,0)|0;i=h;return f|0}function ut(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();k=q+4|0;n=q;if(c[((c[(a&p)>>2]|0)&p)+24>>2]&524288){f=c[(d&p)+16>>2]|0;if(!f)e=0;else{e=0;do{g=c[(f&p)+20>>2]|0;if((g|0)>0){h=0;do{r=c[(f+(h<<3)&p)+36>>2]|0;e=((r|0)>31?-1:1<<r)|e;h=h+1|0}while((h|0)<(g|0))}f=c[(f&p)+4>>2]|0}while((f|0)!=0)}f=bn((c[(d&p)+68>>2]|0)+56|0,c[(d&p)>>2]|0,k)|0;if((f|0)!=0?(l=c[(f&p)+8>>2]|0,(l|0)!=0):0)do{c[(n&p)>>2]=0;Mt(a,d,l,n,0)|0;f=c[(n&p)>>2]|0;if((f|0)!=0?(m=b[(f&o)+46>>1]|0,m<<16>>16!=0):0){k=m&65535;h=c[(f&p)+4>>2]|0;g=0;do{f=b[(h+(g<<1)&o)>>1]|0;if(f<<16>>16>31)f=-1;else f=1<<(f<<16>>16);e=f|e;g=g+1|0}while((g|0)<(k|0))}l=c[(l&p)+12>>2]|0}while((l|0)!=0)}else e=0;i=q;return e|0}function vt(a,b,e,f,g,h,i){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0;k=(e|0)!=0?110:109;if(!b)j=0;else{j=0;do{if((((d[(b&n)+8>>0]|0|0)==(k|0)?((d[(b&n)+9>>0]|0)&g|0)!=0:0)?(av(c[(b&p)+16>>2]|0,e)|0)!=0:0)?(l=cv(a,b,h,i)|0,(l|0)!=0):0)j=c[(l+(f<<2)&p)+16>>2]|j;b=c[(b&p)+32>>2]|0}while((b|0)!=0)}return j|0}function wt(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;l=e+20|0;g=c[(l&p)>>2]|0;do if(!g){i=c[(d&p)>>2]|0;k=e+38|0;h=(b[(k&o)>>1]|0)+1|0;h=qg(h,((h|0)<0)<<31>>31)|0;if(!h){a[(i&n)+65>>0]=1;break}if((b[(k&o)>>1]|0)>0){i=e+4|0;g=0;do{a[(h+g&n)>>0]=a[((c[(i&p)>>2]|0)+(g*24|0)&n)+21>>0]|0;g=g+1|0}while((g|0)<(b[(k&o)>>1]|0))}else g=0;do{a[(h+g&n)>>0]=0;if((g|0)<=0)break;g=g+-1|0}while((a[(h+g&n)>>0]|0)==65);c[(l&p)>>2]=h;j=10}else{h=g;j=10}while(0);do if((j|0)==10){g=h;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-h&1073741823;if(g)if(!f){xh(d,-1,h,g);break}else{xh(d,wh(d,48,f,g,0)|0,h,g);break}}while(0);return}function xt(a,b,e,f,g,h,i,j,k){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;if(b)do{if(((d[(b&n)+8>>0]|0|0)==(e|0)?(d[(b&n)+9>>0]|0|0)==(g|0):0)?(av(c[(b&p)+16>>2]|0,f)|0)!=0:0)dv(a,b,h,i,j,k);b=c[(b&p)+32>>2]|0}while((b|0)!=0);return}function yt(d,f,g,h,k,l,m,q,r,s,t){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;s=s|0;t=t|0;var 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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;oa=i;i=i+16|0;if((i|0)>=(j|0))fa();L=oa;ia=(m|0)!=0;Q=c[(d&p)>>2]|0;na=Oq(d)|0;D=b[(f&o)+38>>1]|0;la=f+44|0;if(!(a[(la&n)>>0]&32)){ha=1;ga=0}else{x=f+8|0;while(1){x=c[(x&p)>>2]|0;if((a[(x&n)+51>>0]&3)==2)break;else x=x+20|0}ha=e[(x&o)+46>>1]|0;ga=x}if(D<<16>>16>0){z=f+36|0;y=f+4|0;x=r<<24>>24==10;w=d+408|0;v=l+1|0;E=na+4|0;F=na+32|0;G=na+24|0;H=r&255;B=D<<16>>16;A=0;do{a:do if((A|0)!=(b[(z&o)>>1]|0)?(I=c[(y&p)>>2]|0,J=a[(I+(A*24|0)&n)+20>>0]|0,K=J&255,J<<24>>24!=0):0){if(x)if(J<<24>>24==10)ma=14;else{D=K;ma=11}else{D=H;ma=11}do if((ma|0)==11){ma=0;if((D|0)==5)D=(c[(I+(A*24|0)&p)+4>>2]|0)==0?2:5;if((D|0)==2){ma=14;break}else if((D|0)==3|(D|0)==1)break;else if((D|0)==4){wh(na,76,v+A|0,s,0)|0;break a}C=v+A|0;D=wh(na,77,C,0,0)|0;Rq(d,c[((c[(y&p)>>2]|0)+(A*24|0)&p)+4>>2]|0,C);C=c[(F&p)>>2]|0;if(C>>>0>D>>>0)c[((c[(E&p)>>2]|0)+(D*20|0)&p)+8>>2]=C;c[((c[(G&p)>>2]|0)&p)+88>>2]=C+-1;break a}while(0);if((ma|0)==14){ma=0;D=c[(w&p)>>2]|0;a[(((D|0)==0?d:D)&n)+21>>0]=1;D=2}ea=c[(I+(A*24|0)&p)>>2]|0;c[(L&p)>>2]=c[(f&p)>>2];c[(L&p)+4>>2]=ea;ea=uh(Q,27824,L)|0;xh(na,wh(na,23,1299,D,v+A|0)|0,ea,-1);D=c[(E&p)>>2]|0;if(D)a[(D+(((c[(F&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1}while(0);A=A+1|0}while((A|0)!=(B|0))}A=c[(f&p)+24>>2]|0;if(((A|0)!=0?(c[(Q&p)+24>>2]&8192|0)==0:0)?(c[(d&p)+92>>2]=l+1,(c[(A&p)>>2]|0)>0):0){z=A+4|0;v=na+24|0;B=na+32|0;D=0;x=r<<24>>24==10?2:r&255;while(1){C=xs(na)|0;Zu(d,c[((c[(z&p)>>2]|0)+(D*20|0)&p)>>2]|0,C,16);if((x|0)==4){wh(na,16,0,s,0)|0;w=4}else{y=c[((c[(z&p)>>2]|0)+(D*20|0)&p)+4>>2]|0;if(!y)y=c[(f&p)>>2]|0;w=(x|0)==5?2:x;zs(d,275,w,y,0,3)}y=c[(v&p)>>2]|0;x=~C;if((C|0)<0?(M=c[(y&p)+112>>2]|0,(M|0)!=0):0)c[(M+(x<<2)&p)>>2]=c[(B&p)>>2];c[(y&p)+88>>2]=(c[(B&p)>>2]|0)+-1;D=D+1|0;if((D|0)>=(c[(A&p)>>2]|0))break;else x=w}}if(q<<24>>24!=0&(ga|0)==0){z=xs(na)|0;v=a[(f&n)+45>>0]|0;if(r<<24>>24==10)v=v<<24>>24==10?2:v&255;else v=r&255;if(ia?(wh(na,79,l,z,m)|0,N=c[(na&p)+4>>2]|0,(N|0)!=0):0)a[(N+(((c[(na&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;b:do if(!((v|0)!=5|r<<24>>24==5)?(u=c[(f&p)+8>>2]|0,(u|0)!=0):0){while(1){if(((a[(u&n)+50>>0]|0)+-3&255)<2)break;u=c[(u&p)+20>>2]|0;if(!u){A=0;break b}}A=wh(na,16,0,0,0)|0}else A=0;while(0);wh(na,70,h,z,l)|0;c:do switch(v|0){case 4:{wh(na,16,0,s,0)|0;v=0;break}case 3:case 2:case 1:{ma=49;break}case 5:{if((c[(Q&p)+24>>2]&262144|0)!=0?(O=jt(d,f,109,0,0)|0,(O|0)!=0):0)v=O;else if(!(mt(d,f,0,0)|0)){if(!(c[(f&p)+8>>2]|0)){v=1;break c}v=c[(d&p)+408>>2]|0;a[(((v|0)==0?d:v)&n)+20>>0]=1;At(d,f,h,k,0);v=1;break c}else v=0;ea=c[(d&p)+408>>2]|0;a[(((ea|0)==0?d:ea)&n)+20>>0]=1;rt(d,f,v,h,k,l,1,0,5,1);v=1;break}default:{v=2;ma=49}}while(0);if((ma|0)==49){Ft(d,v,f);v=0}y=na+24|0;x=c[(y&p)>>2]|0;w=~z;if((z|0)<0?(P=c[(x&p)+112>>2]|0,(P|0)!=0):0)c[(P+(w<<2)&p)>>2]=c[(na&p)+32>>2];u=na+32|0;c[(x&p)+88>>2]=(c[(u&p)>>2]|0)+-1;if(!A){w=0;A=0}else{w=wh(na,16,0,0,0)|0;u=c[(u&p)>>2]|0;if(u>>>0>A>>>0)c[((c[(na&p)+4>>2]|0)+(A*20|0)&p)+8>>2]=u;c[((c[(y&p)>>2]|0)&p)+88>>2]=u+-1}}else{w=0;A=0;v=0}D=c[(f&p)+8>>2]|0;if(D){ba=l+1|0;ca=d+60|0;da=d+56|0;ea=d+72|0;T=q<<24>>24==0;U=na+24|0;V=na+32|0;W=r<<24>>24==10;X=na+4|0;Y=ga+46|0;Z=ga+32|0;_=ga+4|0;$=m+1|0;aa=d+408|0;R=Q+24|0;S=ha&65535;z=r&255;y=f+36|0;x=d+92|0;H=0;u=0;C=-1;while(1){O=g+(u<<2)|0;do if(c[(O&p)>>2]|0){if(!(H<<24>>24)){wt(na,f,ba);H=1}P=u+k|0;r=xs(na)|0;N=D+36|0;if(c[(N&p)>>2]|0){wh(na,28,0,c[(O&p)>>2]|0,0)|0;c[(x&p)>>2]=ba;gt(d,c[(N&p)>>2]|0,r,16);c[(x&p)>>2]=0}Q=D+48|0;I=b[(Q&o)>>1]|0;L=I&65535;K=c[(ca&p)>>2]|0;J=c[(da&p)>>2]|0;if((J|0)<(L|0)){q=c[(ea&p)>>2]|0;c[(ea&p)>>2]=q+L;q=q+1|0}else{c[(ca&p)>>2]=K+L;c[(da&p)>>2]=J-L;q=K}if(!(I<<16>>16))M=C;else{M=D+4|0;J=0;do{B=b[((c[(M&p)>>2]|0)+(J<<1)&o)>>1]|0;L=B<<16>>16;if(B<<16>>16>=0?B<<16>>16!=(b[(y&o)>>1]|0):0){K=J+q|0;L=ba+L|0;ma=81}else{L=J+q|0;if((C|0)!=(L|0)){K=L;C=(c[(N&p)>>2]|0)==0?L:-1;L=l;ma=81}}if((ma|0)==81){ma=0;wh(na,34,L,K,0)|0;I=b[(Q&o)>>1]|0}J=J+1|0;L=I&65535}while((J|0)<(L|0));M=C}wh(na,49,q,L,c[(O&p)>>2]|0)|0;dt(d,q,e[(Q&o)>>1]|0);N=(ga|0)==(D|0);if(ia&N&T){C=c[(U&p)>>2]|0;B=~r;if((r|0)<0?(ja=c[(C&p)+112>>2]|0,(ja|0)!=0):0)c[(ja+(B<<2)&p)>>2]=c[(V&p)>>2];c[(C&p)+88>>2]=(c[(V&p)>>2]|0)+-1;C=M;break}G=a[(D&n)+50>>0]|0;F=G&255;if(!(G<<24>>24)){C=e[(Q&o)>>1]|0;dt(d,q,C);if((c[(da&p)>>2]|0)<(C|0)){c[(da&p)>>2]=C;c[(ca&p)>>2]=q}C=c[(U&p)>>2]|0;B=~r;if((r|0)<0?(ka=c[(C&p)+112>>2]|0,(ka|0)!=0):0)c[(ka+(B<<2)&p)>>2]=c[(V&p)>>2];c[(C&p)+88>>2]=(c[(V&p)>>2]|0)+-1;C=M;break}if(W)O=G<<24>>24==10?2:F;else O=z;C=e[(D&o)+46>>1]|0;xh(na,wh(na,67,P,r,q)|0,C,-14);do if(!N){L=c[(ca&p)>>2]|0;K=c[(da&p)>>2]|0;if((K|0)<(ha|0)){L=c[(ea&p)>>2]|0;c[(ea&p)>>2]=L+ha;L=L+1|0;break}else{c[(ca&p)>>2]=L+ha;c[(da&p)>>2]=K-ha;break}}else L=q;while(0);do if(ia|(O|0)==5){if(!(a[(la&n)>>0]&32)){wh(na,112,P,L,0)|0;if(!ia)break;wh(na,79,L,r,m)|0;G=c[(X&p)>>2]|0;if(!G)break;a[(G+(((c[(V&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;break}do if(!N){if(!(b[(Y&o)>>1]|0))break;F=D+4|0;E=0;do{I=b[((c[(_&p)>>2]|0)+(E<<1)&o)>>1]|0;K=b[(Q&o)>>1]|0;d:do if(!(K<<16>>16))K=-1;else{G=c[(F&p)>>2]|0;J=K&65535;K=0;while(1){if((b[(G+(K<<1)&o)>>1]|0)==I<<16>>16)break d;K=K+1|0;if((K|0)>=(J|0)){K=-1;break}}}while(0);wh(na,47,P,K<<16>>16,E+L|0)|0;E=E+1|0}while((E|0)<(e[(Y&o)>>1]|0))}while(0);if(!ia)break;F=(a[(D&n)+51>>0]&3)==2?q:L;K=b[(Y&o)>>1]|0;if(!(K<<16>>16))break;J=(K&65535)+(c[(V&p)>>2]|0)|0;I=0;G=78;do{K=cr(d,c[((c[(Z&p)>>2]|0)+(I<<2)&p)>>2]|0)|0;C=(I|0)==((e[(Y&o)>>1]|0)+-1|0);J=C?r:J;G=C?79:G;xh(na,wh(na,G,$+(b[((c[(_&p)>>2]|0)+(I<<1)&o)>>1]|0)|0,J,I+F|0)|0,K,-4);K=c[(X&p)>>2]|0;if(K)a[(K+(((c[(V&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;I=I+1|0}while((I|0)<(e[(Y&o)>>1]|0))}while(0);if((O|0)==3|(O|0)==2|(O|0)==1)nu(d,O,D);else if((O|0)==4)wh(na,16,0,s,0)|0;else{C=c[(aa&p)>>2]|0;a[(((C|0)==0?d:C)&n)+20>>0]=1;if(!(c[(R&p)>>2]&262144))G=0;else G=jt(d,f,109,0,0)|0;rt(d,f,G,h,k,L,S,0,5,N&1);v=1}K=c[(U&p)>>2]|0;J=~r;do if((r|0)<0){G=c[(K&p)+112>>2]|0;if(!G)break;c[(G+(J<<2)&p)>>2]=c[(V&p)>>2]}while(0);c[(K&p)+88>>2]=(c[(V&p)>>2]|0)+-1;C=e[(Q&o)>>1]|0;dt(d,q,C);if((c[(da&p)>>2]|0)<(C|0)){c[(da&p)>>2]=C;c[(ca&p)>>2]=q}if((L|0)==(q|0)){C=M;break}dt(d,L,ha);if((c[(da&p)>>2]|0)>=(ha|0)){C=M;break}c[(da&p)>>2]=ha;c[(ca&p)>>2]=L;C=M}while(0);D=c[(D&p)+20>>2]|0;if(!D)break;else u=u+1|0}}if(A){wh(na,16,0,A+1|0,0)|0;u=c[(na&p)+32>>2]|0;if(u>>>0>w>>>0)c[((c[(na&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=u;c[((c[(na&p)+24>>2]|0)&p)+88>>2]=u+-1}c[(t&p)>>2]=v;i=oa;return}function zt(e,f,g,h,k,l){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0;aa=i;i=i+32|0;if((i|0)>=(j|0))fa();T=aa+20|0;R=aa+16|0;P=aa+12|0;Q=aa+8|0;_=aa+4|0;Z=aa;V=c[(e&p)>>2]|0;O=e+438|0;U=a[(O&n)>>0]|0;Y=V+24|0;a:do if(c[(Y&p)>>2]&524288){S=f+68|0;m=c[(S&p)>>2]|0;b:do if(m){r=c[(V&p)+20>>2]|0;if((r|0)>0){q=c[(V&p)+16>>2]|0;u=0;while(1){t=u+1|0;if((c[(q+(u<<4)&p)+12>>2]|0)==(m|0)){t=u;break b}if((t|0)<(r|0))u=t;else break}}else t=0}else t=-1e6;while(0);N=c[((c[(V&p)+16>>2]|0)+(t<<4)&p)>>2]|0;A=c[(f&p)+16>>2]|0;if(!A)q=f;else{C=(k|0)==0;D=U<<24>>24==0;E=V+65|0;F=g+1|0;G=e+68|0;H=(g|0)==0;I=(h|0)==0;J=e+408|0;K=f+36|0;L=V+284|0;M=(l|0)!=0;B=A;do{c[(R&p)>>2]=0;c[(P&p)>>2]=0;c:do if(!C){A=c[(B&p)+8>>2]|0;if(dd(c[(f&p)>>2]|0,A)|0){z=c[(B&p)+20>>2]|0;if((z|0)>0){q=0;do{m=c[(B+(q<<3)&p)+36>>2]|0;if((c[(k+(m<<2)&p)>>2]|0)>-1){$=17;break c}q=q+1|0;if((m|0)==(b[(K&o)>>1]|0)&M){$=17;break c}}while((q|0)<(z|0))}}else $=17}else{A=c[(B&p)+8>>2]|0;$=17}while(0);do if(($|0)==17){$=0;if(!(a[(O&n)>>0]|0))y=sh(e,0,A,N)|0;else y=_h(V,A,N)|0;A=(y|0)==0;if(!A?(Mt(e,y,B,R,P)|0)==0:0){A=c[(P&p)>>2]|0;if(!A){c[(Q&p)>>2]=c[(B&p)+36>>2];A=Q}q=B+20|0;if((c[(q&p)>>2]|0)>0){w=c[(R&p)>>2]|0;r=(w|0)==0;u=y+36|0;v=y+4|0;w=w+4|0;m=0;x=0;do{z=A+(x<<2)|0;if((c[(z&p)>>2]|0)==(b[(K&o)>>1]|0))c[(z&p)>>2]=-1;if(c[(L&p)>>2]|0){if(r)z=u;else z=(c[(w&p)>>2]|0)+(x<<1)|0;m=(ev(e,c[(y&p)>>2]|0,c[((c[(v&p)>>2]|0)+((b[(z&o)>>1]|0)*24|0)&p)>>2]|0,t)|0)==2&1}x=x+1|0}while((x|0)<(c[(q&p)>>2]|0));z=y}else{z=y;m=0}gs(e,t,c[(y&p)+32>>2]|0,0,c[(z&p)>>2]|0);c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;if(!H)fv(e,t,y,c[(R&p)>>2]|0,B,A,g,-1,m);d:do if(!I){z=c[(J&p)>>2]|0;z=c[(((z|0)==0?e:z)&p)+528>>2]|0;do if(z){z=c[(z&p)>>2]|0;if((z|0)==(c[(B&p)+28>>2]|0)?(a[(B&n)+25>>0]|0)==7:0)break d;if((z|0)!=(c[(B&p)+32>>2]|0))break;if((a[(B&n)+26>>0]|0)==7)break d}while(0);fv(e,t,y,c[(R&p)>>2]|0,B,A,h,1,m)}while(0);mg(V,c[(P&p)>>2]|0);break}if(D)break a;if(a[(E&n)>>0]|0)break a;if(A){A=Oq(e)|0;z=B+20|0;q=c[(z&p)>>2]|0;m=(c[(A&p)+32>>2]|0)+1+q|0;if((q|0)>0){q=0;do{wh(A,76,F+(c[(B+(q<<3)&p)+36>>2]|0)|0,m,0)|0;q=q+1|0}while((q|0)<(c[(z&p)>>2]|0))}wh(A,134,d[(B&n)+24>>0]|0,-1,0)|0}}while(0);B=c[(B&p)+4>>2]|0}while((B|0)!=0);q=f;m=c[(S&p)>>2]|0}m=bn(m+56|0,c[(q&p)>>2]|0,T)|0;if((m|0)!=0?(s=c[(m&p)+8>>2]|0,W=V+65|0,(s|0)!=0):0){u=(k|0)!=0;v=e+408|0;w=e+20|0;x=e+68|0;y=(h|0)==0;z=(g|0)==0;A=u&1;t=U<<24>>24==0;do{c[(_&p)>>2]=0;c[(Z&p)>>2]=0;if(!(u?(bv(f,s,k,l)|0)==0:0))$=57;do if(($|0)==57){$=0;q=s+24|0;if((((a[(q&n)>>0]|0)==0?(c[(Y&p)>>2]&16777216|0)==0:0)?(c[(v&p)>>2]|0)==0:0)?(a[(w&n)>>0]|0)==0:0)break;if(Mt(e,f,s,_,Z)|0){if(t)break a;if(!(a[(W&n)>>0]|0))break;else break a}m=pr(V,0,0,0)|0;if(m){K=c[(s&p)>>2]|0;c[(m&p)+24>>2]=K;r=m+16|0;c[(r&p)>>2]=c[(K&p)>>2];K=K+40|0;b[(K&o)>>1]=(b[(K&o)>>1]|0)+1<<16>>16;K=c[(x&p)>>2]|0;c[(x&p)>>2]=K+1;c[(m&p)+48>>2]=K;if(!y)gv(e,m,f,c[(_&p)>>2]|0,s,c[(Z&p)>>2]|0,h,-1);if((!z?(X=a[(s+A&n)+25>>0]|0,gv(e,m,f,c[(_&p)>>2]|0,s,c[(Z&p)>>2]|0,g,1),(a[(q&n)>>0]|0)==0):0)?!(X<<24>>24==7|X<<24>>24==9):0){K=c[(v&p)>>2]|0;a[(((K|0)==0?e:K)&n)+21>>0]=1}c[(r&p)>>2]=0;Do(V,m)}mg(V,c[(Z&p)>>2]|0)}while(0);s=c[(s&p)+12>>2]|0}while((s|0)!=0)}}while(0);i=aa;return}function At(b,d,f,g,h){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))fa();u=v;t=c[(b&p)+8>>2]|0;l=c[(d&p)+8>>2]|0;a:do if(a[(d&n)+44>>0]&32){if(l){k=l;while(1){if((a[(k&n)+51>>0]&3)==2){s=5;break a}k=c[(k&p)+20>>2]|0;if(!k){k=0;s=5;break}}}}else{k=0;s=5}while(0);if((s|0)==5?(l|0)!=0:0){q=(h|0)==0;r=0;d=0;m=-1;while(1){if(q){if((l|0)!=(k|0))s=10}else if(!((l|0)==(k|0)?1:(c[(h+(r<<2)&p)>>2]|0)==0))s=10;if((s|0)==10){s=0;m=Pt(b,l,f,0,1,u,d,m)|0;wh(t,111,r+g|0,m,e[(((a[(l&n)+51>>0]&8)==0?l+48|0:l+46|0)&o)>>1]|0)|0;Qt(b,c[(u&p)>>2]|0);d=l}l=c[(l&p)+20>>2]|0;if(!l)break;else r=r+1|0}}i=v;return}function Bt(d,e,f,g,h,i,j,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=Oq(d)|0;t=c[(e&p)+8>>2]|0;if(!t){q=e+44|0;s=0}else{u=(l|0)!=0;q=e+44|0;v=u?17:1;w=z+4|0;x=z+32|0;s=0;y=0;m=t;while(1){r=i+(y<<2)|0;t=c[(r&p)>>2]|0;do if(t){if(c[(m&p)+36>>2]|0){wh(z,76,t,(c[(x&p)>>2]|0)+2|0,0)|0;t=c[(r&p)>>2]|0}wh(z,110,y+g|0,t,0)|0;if((a[(m&n)+51>>0]&3)==2){t=(a[(q&n)>>0]&32)!=0;if(t|u)s=t?v:16;else{s=1;break}}else if(u)s=16;else{s=1;break}t=c[(w&p)>>2]|0;if(!t)s=1;else{a[(t+(((c[(x&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=s;s=1}}while(0);m=c[(m&p)+20>>2]|0;if(!m)break;else y=y+1|0}}if(!(a[(q&n)>>0]&32)){r=h+1|0;q=d+19|0;m=a[(q&n)>>0]|0;if(!(m<<24>>24)){i=d+72|0;t=(c[(i&p)>>2]|0)+1|0;c[(i&p)>>2]=t}else{t=m+-1<<24>>24;a[(q&n)>>0]=t;t=c[(d+((t&255)<<2)&p)+24>>2]|0}q=e+38|0;wh(z,49,r,b[(q&o)>>1]|0,t)|0;if(!(s<<24>>24))wt(z,e,0);dt(d,r,b[(q&o)>>1]|0);r=d+18|0;if(!(a[(r&n)>>0]|0))m=(j|0)!=0?5:3;else m=0;if(k)m=(m&255|8)&255;if(!l)q=m;else q=(m&255|16)&255;wh(z,75,f,t,h)|0;if(!(a[(r&n)>>0]|0))xh(z,-1,c[(e&p)>>2]|0,0);m=c[(z&p)+4>>2]|0;if(m)a[(m+(((c[(z&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=q}return}function Ct(d,e,f,g,h,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0;$=i;i=i+64|0;if((i|0)>=(j|0))fa();U=$+52|0;T=$+48|0;Y=$+8|0;X=$;W=$+40|0;Z=$+32|0;V=$+24|0;if(((c[((c[(d&p)>>2]|0)&p)+24>>2]&524288|0)!=0?(S=e+68|0,l=bn((c[(S&p)>>2]|0)+56|0,c[(e&p)>>2]|0,$+16|0)|0,(l|0)!=0):0)?(m=c[(l&p)+8>>2]|0,(m|0)!=0):0){R=(h|0)==0;K=(f|0)!=0;L=K&1;M=Z+4|0;N=W+4|0;O=e+4|0;P=V+4|0;Q=K?110:109;do{if(!(!R?(bv(e,m,h,k)|0)==0:0)){H=c[(d&p)>>2]|0;G=a[(m+L&n)+25>>0]|0;I=G&255;J=m+(L<<2)+28|0;f=c[(J&p)>>2]|0;do if(!(G<<24>>24==0|(f|0)!=0)){c[(U&p)>>2]=0;c[(T&p)>>2]=0;if(!(Mt(d,e,m,U,T)|0)){u=m+20|0;if((c[(u&p)>>2]|0)>0){A=34352;z=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;C=34360;B=c[(C&p)>>2]|0;C=c[(C&p)+4>>2]|0;D=m+36|0;F=G<<24>>24!=6&(G<<24>>24!=9|K);E=0;r=0;l=0;q=0;do{f=Y;c[(f&p)>>2]=z;c[(f&p)+4>>2]=A;f=X;c[(f&p)>>2]=B;c[(f&p)+4>>2]=C;f=c[(T&p)>>2]|0;if(!f)f=D;else f=f+(E<<2)|0;t=c[(f&p)>>2]|0;v=c[(U&p)>>2]|0;if(!v)x=34368;else x=c[((c[(O&p)>>2]|0)+((b[((c[(v&p)+4>>2]|0)+(E<<1)&o)>>1]|0)*24|0)&p)>>2]|0;c[(Z&p)>>2]=x;f=c[((c[((c[(m&p)>>2]|0)&p)+4>>2]|0)+(t*24|0)&p)>>2]|0;c[(W&p)>>2]=f;if(!x)w=0;else{y=x;while(1)if(!(a[(y&n)>>0]|0))break;else y=y+1|0;w=y-x&1073741823}c[(M&p)>>2]=w;if(!f)s=0;else{x=f;while(1)if(!(a[(x&n)>>0]|0))break;else x=x+1|0;s=x-f&1073741823}c[(N&p)>>2]=s;y=Zq(d,27,0,0,Y)|0;y=Zq(d,122,y,Zq(d,27,0,0,Z)|0,0)|0;q=ss(H,q,Zq(d,79,y,Zq(d,27,0,0,W)|0,0)|0)|0;if(K){x=Zq(d,27,0,0,Y)|0;x=Zq(d,122,x,Zq(d,27,0,0,Z)|0,0)|0;y=Zq(d,27,0,0,X)|0;l=ss(H,l,Zq(d,73,x,Zq(d,122,y,Zq(d,27,0,0,Z)|0,0)|0,0)|0)|0}if(F){do if(G<<24>>24==8){f=c[((c[((c[(m&p)>>2]|0)&p)+4>>2]|0)+(t*24|0)&p)+4>>2]|0;if(!f){f=Zq(d,101,0,0,0)|0;break}else{f=Mr(H,f,0,0)|0;break}}else if(G<<24>>24==9){f=Zq(d,27,0,0,X)|0;f=Zq(d,122,f,Zq(d,27,0,0,Z)|0,0)|0}else f=Zq(d,101,0,0,0)|0;while(0);r=lr(d,r,f)|0;mr(d,r,W,0)}E=E+1|0}while((E|0)<(c[(u&p)>>2]|0));f=m}else{f=m;r=0;l=0;q=0}mg(H,c[(T&p)>>2]|0);y=c[(c[(f&p)>>2]&p)>>2]|0;if(!y)s=0;else{f=y;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;s=f-y&1073741823}if(G<<24>>24==6){c[(V&p)>>2]=y;c[(P&p)>>2]=s;f=tt(H,57,34376)|0;if(f)a[(f&n)+1>>0]=2;x=lr(d,0,f)|0;x=kr(d,x,pr(H,0,V,0)|0,q,0,0,0,0,0,0)|0;w=0}else{x=0;w=q}t=H+250|0;u=a[(t&n)>>0]|0;a[(t&n)>>0]=0;f=s+77|0;v=mh(H,f,0)|0;if(v){fw(v|0,0,f|0)|0;q=v+36|0;c[(v&p)+28>>2]=q;G=v+76|0;c[(v&p)+48>>2]=G;c[(v&p)+52>>2]=s;kw(G|0,y|0,s|0)|0;c[(v&p)+56>>2]=Mr(H,w,1,0)|0;c[(v&p)+60>>2]=Pr(H,r,1)|0;c[(v&p)+44>>2]=gr(H,x,1)|0;if(!l){f=v;l=0}else{l=Zq(d,19,l,0,0)|0;c[(v&p)+12>>2]=Mr(H,l,1,0)|0;f=v}}else{f=0;q=0}a[(t&n)>>0]=u;Gk(H,w);Gk(H,l);Nk(H,r);Mk(H,x,1);if((a[(H&n)+65>>0]|0)==1){Kk(H,f);f=0;break}if((I|0)==6)a[(q&n)>>0]=119;else if((I|0)==9?!K:0)a[(q&n)>>0]=109;else _=49;if((_|0)==49){_=0;a[(q&n)>>0]=110}c[(q&p)+4>>2]=f;I=c[(S&p)>>2]|0;c[(v&p)+20>>2]=I;c[(v&p)+24>>2]=I;c[(J&p)>>2]=f;a[(v&n)+8>>0]=Q}else f=0}while(0);if(f)dv(d,f,e,g,2,0)}m=c[(m&p)+12>>2]|0}while((m|0)!=0)}i=$;return}function Dt(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0;f=b[(d&o)+46>>1]|0;a:do if(f<<16>>16==(b[(e&o)+46>>1]|0)?(a[(d&n)+50>>0]|0)==(a[(e&n)+50>>0]|0):0){if(f<<16>>16){g=c[(e&p)+4>>2]|0;h=c[(d&p)+4>>2]|0;i=e+28|0;j=d+28|0;k=e+32|0;l=d+32|0;s=0;do{if((b[(g+(s<<1)&o)>>1]|0)!=(b[(h+(s<<1)&o)>>1]|0)){f=0;break a}if((a[((c[(i&p)>>2]|0)+s&n)>>0]|0)!=(a[((c[(j&p)>>2]|0)+s&n)>>0]|0)){f=0;break a}m=c[((c[(k&p)>>2]|0)+(s<<2)&p)>>2]|0;q=c[((c[(l&p)>>2]|0)+(s<<2)&p)>>2]|0;r=(q|0)==0;if(!m){if(!r){f=0;break a}}else{if(r){f=0;break a}if(dd(m,q)|0){f=0;break a}}s=s+1|0}while((s|0)<(f&65535|0))}f=(Cu(c[(e&p)+36>>2]|0,c[(d&p)+36>>2]|0,-1)|0)==0&1}else f=0;while(0);return f|0}function Et(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;do if(!(a[(e&n)+44>>0]&8))f=0;else{h=c[(b&p)+408>>2]|0;h=(h|0)==0?b:h;g=h+404|0;f=c[(g&p)>>2]|0;a:do if(!f)i=5;else while(1){if((c[(f&p)+4>>2]|0)==(e|0))break a;f=c[(f&p)>>2]|0;if(!f){i=5;break}}while(0);if((i|0)==5){f=mh(c[(b&p)>>2]|0,16,0)|0;if(!f){f=0;break}c[(f&p)>>2]=c[(g&p)>>2];c[(g&p)>>2]=f;c[(f&p)+4>>2]=e;c[(f&p)+8>>2]=d;b=h+72|0;g=c[(b&p)>>2]|0;c[(f&p)+12>>2]=g+2;c[(b&p)>>2]=g+3}f=c[(f&p)+12>>2]|0}while(0);return f|0}function Ft(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;g=b[(e&o)+36>>1]|0;h=c[(a&p)>>2]|0;f=c[(e&p)>>2]|0;if(g<<16>>16>-1){g=c[((c[(e&p)+4>>2]|0)+((g<<16>>16)*24|0)&p)>>2]|0;c[(k&p)>>2]=f;c[(k&p)+4>>2]=g;g=1555;f=uh(h,27824,k)|0}else{c[(k&p)>>2]=f;g=2579;f=uh(h,34408,k)|0}zs(a,g,d,f,-1,2);i=l;return}function Gt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=b+316|0;h=c[(g&p)>>2]|0;d=lr(b,h,Mr(c[(b&p)>>2]|0,d,0,0)|0)|0;if(d){b=(c[(d&p)>>2]|0)+-1|0;h=c[(d&p)+4>>2]|0;c[(h+(b*20|0)&p)+16>>2]=e;b=h+(b*20|0)+13|0;a[(b&n)>>0]=a[(b&n)>>0]&-5|f<<2&4}c[(g&p)>>2]=d;return}function Ht(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=c[(e&p)>>2]|0;if(!(g+-1&g)){i=ca((g|0)==0?1:g<<1,d)|0;a=ro(a,b,i,((i|0)<0)<<31>>31)|0;if(!a){c[(f&p)>>2]=-1;a=b}else h=4}else{a=b;h=4}if((h|0)==4){fw(a+(ca(g,d)|0)|0,0,d|0)|0;c[(f&p)>>2]=g;c[(e&p)>>2]=(c[(e&p)>>2]|0)+1}return a|0}function It(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;c[(h&p)>>2]=0;b=c[(a&p)+12>>2]|0;if((b|0)!=0?(d=c[(b&p)+24>>2]|0,(d|0)>0):0){c[(h&p)>>2]=d;b=d}else b=0;d=c[(a&p)+16>>2]|0;if((d|0)!=0?(e=c[(d&p)+24>>2]|0,(e|0)>(b|0)):0)c[(h&p)>>2]=e;f=a+4|0;b=a+20|0;if(!(c[(f&p)>>2]&2048)){d=c[(b&p)>>2]|0;if(d){tu(d,h);b=c[(b&p)>>2]|0;if((b|0)!=0?(g=c[(b&p)>>2]|0,(g|0)>0):0){e=c[(b&p)+4>>2]|0;d=0;b=0;do{b=c[((c[(e+(d*20|0)&p)>>2]|0)&p)+4>>2]|b;d=d+1|0}while((d|0)!=(g|0));b=b&2097408}else b=0;c[(f&p)>>2]=c[(f&p)>>2]|b}}else Es(c[(b&p)>>2]|0,h);c[(a&p)+24>>2]=(c[(h&p)>>2]|0)+1;i=k;return}function Jt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=Oq(b)|0;i=b+72|0;h=(c[(i&p)>>2]|0)+1|0;c[(i&p)>>2]=h;b=mh(c[(b&p)>>2]|0,8,0)|0;if(b){i=b;c[(i&p)>>2]=e;c[(i&p)+4>>2]=f}xh(g,wh(g,26,0,h,0)|0,b,-13);iq(g,1);if(!(a[((c[(g&p)>>2]|0)&n)+65>>0]|0))Xg(c[(g&p)+16>>2]|0,d,-1,1,0)|0;wh(g,35,h,1,0)|0;return}function Kt(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;d=c[(b&p)>>2]|0;e=d+16|0;f=c[((c[(e&p)>>2]|0)&p)+20>>2]|0;do if(!f)d=0;else{if((a[(d&n)+63>>0]|0)!=0?(a[(f&n)+8>>0]|0)==0:0){Ml(f);c[((c[(e&p)>>2]|0)&p)+20>>2]=0;Eg(d);d=0;break}th(b,32128,g);d=1}while(0);i=h;return d|0}function Lt(b){b=b|0;var e=0,f=0,g=0;if((a[(b&n)+63>>0]|0)!=0?(e=c[(b&p)+20>>2]|0,(e|0)>0):0){g=b+24|0;f=c[(b&p)+16>>2]|0;while(1){e=e+-1|0;b=c[(f&p)+4>>2]|0;if(b)to(b,c[(g&p)>>2]&28|d[(f&n)+8>>0]);if((e|0)<=0)break;else f=f+16|0}}return}function Mt(d,f,g,h,k){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=i;i=i+16|0;if((i|0)>=(j|0))fa();z=C;A=c[(g&p)+20>>2]|0;m=c[(g&p)+40>>2]|0;if((A|0)==1){v=b[(f&o)+36>>1]|0;l=v<<16>>16;if(v<<16>>16>-1)if((m|0)!=0?(dd(c[((c[(f&p)+4>>2]|0)+(l*24|0)&p)>>2]|0,m)|0)!=0:0){y=0;B=8}else k=0;else{y=0;B=8}}else if(k){l=mh(c[(d&p)>>2]|0,A<<2,0)|0;if(!l)k=1;else{c[(k&p)>>2]=l;y=l;B=8}}else{y=0;B=8}a:do if((B|0)==8){k=c[(f&p)+8>>2]|0;b:do if(k){v=(m|0)==0;x=(A|0)>0;u=f+4|0;w=(y|0)==0;c:while(1){do if((e[(k&o)+46>>1]|0)==(A|0)?(a[(k&n)+50>>0]|0)!=0:0){if(v)if((a[(k&n)+51>>0]&3)==2){B=16;break c}else break;d:do if(x){q=c[(k&p)+4>>2]|0;r=c[(u&p)>>2]|0;s=c[(k&p)+32>>2]|0;t=0;while(1){f=b[(q+(t<<1)&o)>>1]|0;m=c[(r+(f*24|0)&p)+16>>2]|0;if(dd(c[(s+(t<<2)&p)>>2]|0,(m|0)!=0?m:11152)|0){m=t;break d}m=c[(r+(f*24|0)&p)>>2]|0;l=0;while(1){f=l+1|0;if(!(dd(c[(g+(l<<3)&p)+40>>2]|0,m)|0)){f=l;B=23;break}if((f|0)<(A|0))l=f;else break}if((B|0)==23){B=0;if(!w)c[(y+(t<<2)&p)>>2]=c[(g+(f<<3)&p)+36>>2]}m=t+1|0;if((f|0)==(A|0)){m=t;break d}if((m|0)<(A|0))t=m;else break}}else m=0;while(0);if((m|0)==(A|0))break c}while(0);k=c[(k&p)+20>>2]|0;if(!k)break b}if((B|0)==16)if(!(w|x^1)){l=0;do{c[(y+(l<<2)&p)>>2]=c[(g+(l<<3)&p)+36>>2];l=l+1|0}while((l|0)!=(A|0))}c[(h&p)>>2]=k;k=0;break a}while(0);if(!(a[(d&n)+438>>0]|0)){v=c[(g&p)+8>>2]|0;c[(z&p)>>2]=c[(c[(g&p)>>2]&p)>>2];c[(z&p)+4>>2]=v;th(d,32008,z)}mg(c[(d&p)>>2]|0,y);k=1}while(0);i=C;return k|0}function Nt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;if(!(c[(d&p)+12>>2]|0)){c[(h&p)>>2]=0;l=c[(b&p)>>2]|0;g=d+4|0;d=c[(g&p)>>2]|0;Zr(l,c[(d+(e*24|0)&p)+4>>2]|0,a[(l&n)+62>>0]|0,a[(d+(e*24|0)&n)+21>>0]|0,h)|0;d=c[(h&p)>>2]|0;if(d)xh(b,-1,d,-8);if((a[((c[(g&p)>>2]|0)+(e*24|0)&n)+21>>0]|0)==69)wh(b,39,f,0,0)|0}i=k;return}function Ot(c,d,f){c=c|0;d=d|0;f=f|0;var g=0;if(!d)g=0;else{g=d;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-d&1073741823}g=Sh(c,d,g,2,1,0)|0;if(g){g=g+2|0;b[(g&o)>>1]=e[(g&o)>>1]|f&255}return}function Pt(d,e,f,g,h,i,j,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;t=c[(d&p)+8>>2]|0;u=c[(e&p)+12>>2]|0;do if(i){l=e+36|0;if(!(c[(l&p)>>2]|0)){c[(i&p)>>2]=0;break}else{c[(i&p)>>2]=xs(t)|0;c[(d&p)+96>>2]=f;s=d+100|0;c[(s&p)>>2]=(c[(s&p)>>2]|0)+1;gt(d,c[(l&p)>>2]|0,c[(i&p)>>2]|0,16);break}}while(0);if((h|0)!=0?(a[(e&n)+51>>0]&8)!=0:0)l=e+46|0;else l=e+48|0;l=b[(l&o)>>1]|0;q=l&65535;r=d+60|0;h=c[(r&p)>>2]|0;s=d+56|0;i=c[(s&p)>>2]|0;if((i|0)<(q|0)){h=d+72|0;m=c[(h&p)>>2]|0;c[(h&p)>>2]=m+q;m=m+1|0}else{c[(r&p)>>2]=h+q;c[(s&p)>>2]=i-q;m=h}do if(!j)h=0;else{if((m|0)==(k|0)?(c[(j&p)+36>>2]|0)==0:0){h=j;break}h=0}while(0);if(l<<16>>16){j=(h|0)==0;k=e+4|0;i=h+4|0;l=0;do{if(!j){h=b[((c[(k&p)>>2]|0)+(l<<1)&o)>>1]|0;if((b[((c[(i&p)>>2]|0)+(l<<1)&o)>>1]|0)!=h<<16>>16)v=21}else{h=b[((c[(k&p)>>2]|0)+(l<<1)&o)>>1]|0;v=21}if((v|0)==21){v=0;nt(t,u,f,h<<16>>16,l+m|0);Pq(t,39)|0}l=l+1|0}while((l|0)<(q|0))}if(g)wh(t,49,m,q,g)|0;dt(d,m,q);if((c[(s&p)>>2]|0)<(q|0)){c[(s&p)>>2]=q;c[(r&p)>>2]=m}return m|0}function Qt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;if(b){d=c[(a&p)+8>>2]|0;e=c[(d&p)+24>>2]|0;f=~b;if((b|0)<0?(g=c[(e&p)+112>>2]|0,(g|0)!=0):0)c[(g+(f<<2)&p)>>2]=c[(d&p)+32>>2];c[(e&p)+88>>2]=(c[(d&p)+32>>2]|0)+-1;bu(a)}return}function Rt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=c[(d&p)+16>>2]|0;a:do if((e|0)!=0?(f=c[(d&p)+64>>2]|0,(f|0)!=0):0){e=c[(e&p)+8>>2]|0;b:do if(e){while(1){if(!(dd(c[(e&p)>>2]|0,f)|0))break;e=c[(e&p)+20>>2]|0;if(!e)break b}c[(d&p)+68>>2]=e;e=0;break a}while(0);c[(g&p)>>2]=f;c[(g&p)+4>>2]=0;th(b,28104,g);a[(b&n)+17>>0]=1;e=1}else e=0;while(0);i=h;return e|0}function St(a,b){a=a|0;b=b|0;var d=0,e=0;if(a){d=Tt(a,b)|0;if(b&1){e=St(c[(a&p)+12>>2]|0,b)|0;return e+d+(St(c[(a&p)+16>>2]|0,b)|0)|0}}else d=0;return d|0} 8 function Tn(d,f,g,h,k,l,m,q,r){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;var s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,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;da=i;i=i+160|0;if((i|0)>=(j|0))fa();R=da+16|0;N=da+152|0;P=da+48|0;M=da+40|0;Q=da+36|0;O=da+32|0;U=da+8|0;T=da;Z=da+28|0;ba=da+24|0;c[(ba&p)>>2]=0;do if(!(a[(d&n)+46>>0]|0)){ca=d+43|0;if((a[(ca&n)>>0]|0)==0?(s=c[(d&p)+4>>2]|0,s=pc[c[((c[(s&p)>>2]|0)&p)+56>>2]&31](s,1,1,10)|0,(s|0)!=0):0)break;aa=d+45|0;a[(aa&n)>>0]=1;a:do if(!f){w=0;_=11}else{u=d+4|0;s=(g|0)!=0;while(1){if(a[(ca&n)>>0]|0)break;w=c[(u&p)>>2]|0;w=pc[c[((c[(w&p)>>2]|0)&p)+56>>2]&31](w,0,1,10)|0;if(!(s&(w|0)==5)){_=9;break}if(!(lc[g&127](h)|0)){w=0;g=0;_=11;break a}}if((_|0)==9)if((w|0)==5){w=0;g=0;_=11;break}else if(w){$=f;break}a[(d&n)+44>>0]=1;w=f;_=11}while(0);if((_|0)==11){$=w;w=nq(d,ba)|0}do if(!w){Y=d+68|0;w=b[(d&o)+66>>1]|0;if((c[(Y&p)>>2]|0)!=0?(X=w&65535,(X<<16&65536|X&65024|0)!=(l|0)):0){c[(R&p)>>2]=51863;c[(R&p)+4>>2]=10788;bd(11,13600,R);t=11;break}V=w&65535;V=V<<16&65536|V&65024;X=d+32|0;W=(c[(c[(X&p)>>2]&p)>>2]|0)+96|0;z=c[(Y&p)>>2]|0;b:do if((c[(W&p)>>2]|0)>>>0<z>>>0){K=(z+33|0)>>>12;L=K+1|0;l=z<<1;y=l+28+(K*20|0)|0;s=Tc(y)|0;c:do if(!s){w=7;s=0}else{fw(s|0,0,y|0)|0;y=s+4|0;c[(y&p)>>2]=L;l=Tc(z>>>0>4096?8192:l)|0;do if(l){J=s+8|0;x=0;while(1){w=Po(d,x,M,O,Q)|0;if(w){_=21;break}I=(c[(O&p)>>2]|0)+4|0;c[(O&p)>>2]=I;if((x|0)==(K|0)){H=c[(Q&p)>>2]|0;w=H;H=z-H|0}else{w=c[(Q&p)>>2]|0;H=(c[(M&p)>>2]|0)-I>>2}u=J+((c[(y&p)>>2]|0)*20|0)|0;F=u+(w<<1)|0;E=w+1|0;c[(Q&p)>>2]=E;if((H|0)>0){B=0;do{b[(u+(B+w<<1)&o)>>1]=B;B=B+1|0}while((B|0)!=(H|0));c[(R&p)>>2]=0;c[(N&p)>>2]=0;C=P+0|0;B=C+104|0;do{c[(C&p)>>2]=0;C=C+4|0}while((C|0)<(B|0));D=0;do{c[(R&p)>>2]=1;C=u+(D+w<<1)|0;c[(N&p)>>2]=C;if(!(D&1)){A=1;B=0}else{B=0;do{oq(I,c[(P+(B<<3)&p)+4>>2]|0,c[(P+(B<<3)&p)>>2]|0,N,R,l);B=B+1|0}while((1<<B&D|0)!=0);A=c[(R&p)>>2]|0;C=c[(N&p)>>2]|0}c[(P+(B<<3)&p)+4>>2]=C;c[(P+(B<<3)&p)>>2]=A;D=D+1|0}while((D|0)!=(H|0));B=B+1|0;if((B|0)<13)_=34}else{c[(R&p)>>2]=0;c[(N&p)>>2]=0;C=P+0|0;B=C+104|0;do{c[(C&p)>>2]=0;C=C+4|0}while((C|0)<(B|0));B=1;_=34}if((_|0)==34){while(1){_=0;if(1<<B&H)oq(I,c[(P+(B<<3)&p)+4>>2]|0,c[(P+(B<<3)&p)>>2]|0,N,R,l);B=B+1|0;if((B|0)==13)break;else _=34}A=c[(R&p)>>2]|0}c[(J+(x*20|0)&p)+16>>2]=E;c[(J+(x*20|0)&p)+12>>2]=A;c[(J+(x*20|0)&p)+4>>2]=F;c[(J+(x*20|0)&p)+8>>2]=I;x=x+1|0;if((x|0)>=(L|0)){_=39;break}}if((_|0)==21){Wc(l);break}else if((_|0)==39){Wc(l);w=0;break c}}else{Wc(0);w=7}while(0);Wc(s)}while(0);if(!w){R=d+72|0;Q=c[(R&p)>>2]|0;P=d+4|0;A=1;z=c[(Y&p)>>2]|0;w=0;while(1){l=W+(A<<2)+4|0;u=c[(l&p)>>2]|0;d:do if(z>>>0>u>>>0){y=A+3|0;x=(g|0)!=0;while(1){if(a[(ca&n)>>0]|0)break;w=c[(P&p)>>2]|0;w=pc[c[((c[(w&p)>>2]|0)&p)+56>>2]&31](w,y,1,10)|0;if(!(x&(w|0)==5)){_=49;break}if(!(lc[g&127](h)|0)){g=0;w=5;break d}}if((_|0)==49){_=0;if((w|0)==5){g=0;w=5;break}else if(w){t=w;_=100;break b}}c[(l&p)>>2]=(A|0)==1?z:-1;if(!(a[(ca&n)>>0]|0)){u=c[(P&p)>>2]|0;pc[c[((c[(u&p)>>2]|0)&p)+56>>2]&31](u,y,1,9)|0;u=z;w=0}else{u=z;w=0}}else u=z;while(0);A=A+1|0;if((A|0)>=5){L=u;break}else z=u}e:do if((c[(W&p)>>2]|0)>>>0<L>>>0){w=(g|0)!=0;while(1){if(a[(ca&n)>>0]|0)break;u=c[(P&p)>>2]|0;u=pc[c[((c[(u&p)>>2]|0)&p)+56>>2]&31](u,3,1,10)|0;if(!(w&(u|0)==5)){v=u;_=58;break}if(!(lc[g&127](h)|0)){v=5;break e}}if((_|0)==58?(v|0)!=0:0)break;I=c[(W&p)>>2]|0;J=(k|0)!=0;if(J?(S=c[(d&p)+8>>2]|0,S=rc[c[((c[(S&p)>>2]|0)&p)+20>>2]&127](S,k)|0,(S|0)!=0):0)v=S;else _=61;f:do if((_|0)==61){S=sw(Q|0,0,V|0,0)|0;v=T;c[(v&p)>>2]=S;c[(v&p)+4>>2]=G;v=c[(P&p)>>2]|0;v=rc[c[((c[(v&p)>>2]|0)&p)+24>>2]&127](v,U)|0;if(!v){S=U;N=c[(S&p)+4>>2]|0;U=T;O=c[(U&p)+4>>2]|0;if((N|0)<(O|0)|((N|0)==(O|0)?(c[(S&p)>>2]|0)>>>0<(c[(U&p)>>2]|0)>>>0:0)){U=c[(P&p)>>2]|0;ac[c[((c[(U&p)>>2]|0)&p)+40>>2]&63](U,5,T)|0}E=s+4|0;F=V|24;H=d+8|0;w=c[(E&p)>>2]|0;g:do if((w|0)>0){v=0;while(1){D=c[(s&p)>>2]|0;C=-1;h:while(1){i:while(1){w=w+-1|0;A=s+(w*20|0)+8|0;l=c[(A&p)>>2]|0;u=c[(s+(w*20|0)&p)+20>>2]|0;j:do if((l|0)<(u|0)){z=c[(s+(w*20|0)&p)+12>>2]|0;B=c[(s+(w*20|0)&p)+16>>2]|0;while(1){x=e[(z+(l<<1)&o)>>1]|0;y=c[(B+(x<<2)&p)>>2]|0;if(y>>>0>D>>>0)break;l=l+1|0;c[(A&p)>>2]=l;if((l|0)>=(u|0))break j}if(y>>>0<C>>>0)break i}while(0);if((w|0)<=0){l=v;w=C;break h}}v=(c[(s+(w*20|0)&p)+24>>2]|0)+x|0;if((w|0)>0)C=y;else{l=v;w=y;break}}c[(s&p)>>2]=w;if((w|0)==-1)break g;if(!(l>>>0<=I>>>0|l>>>0>L>>>0|w>>>0>Q>>>0)){v=sw(l+-1|0,0,F|0,0)|0;v=jw(v|0,G|0,56,0)|0;U=c[(H&p)>>2]|0;v=tc[c[((c[(U&p)>>2]|0)&p)+8>>2]&31](U,m,V,v,G)|0;if(v)break f;v=sw(w+-1|0,0,V|0,0)|0;U=c[(P&p)>>2]|0;v=tc[c[((c[(U&p)>>2]|0)&p)+12>>2]&31](U,m,V,v,G)|0;if(v)break f}w=c[(E&p)>>2]|0;if((w|0)<=0){_=66;break}else v=l}}else _=66;while(0);if((_|0)==66)c[(s&p)>>2]=-1;if((L|0)==(c[((c[(c[(X&p)>>2]&p)>>2]|0)&p)+16>>2]|0)){v=sw(c[(R&p)>>2]|0,0,V|0,0)|0;_=c[(P&p)>>2]|0;v=ac[c[((c[(_&p)>>2]|0)&p)+16>>2]&63](_,v,G)|0;if((v|0)==0&J){v=c[(P&p)>>2]|0;v=rc[c[((c[(v&p)>>2]|0)&p)+20>>2]&127](v,k)|0}if(v)break}c[(W&p)>>2]=L;v=0}}while(0);if(!(a[(ca&n)>>0]|0)){_=c[(P&p)>>2]|0;pc[c[((c[(_&p)>>2]|0)&p)+56>>2]&31](_,3,1,9)|0}}else v=w;while(0);v=(v|0)==5?0:v;_=88}else t=w}else{s=0;v=0;_=88}while(0);k:do if((_|0)==88)if((v|0)==0&($|0)!=0)if((c[(W&p)>>2]|0)>>>0>=(c[(Y&p)>>2]|0)>>>0)if(($|0)>1){cd(4,Z);w=d+4|0;u=(g|0)!=0;while(1){if(a[(ca&n)>>0]|0)break;v=c[(w&p)>>2]|0;v=pc[c[((c[(v&p)>>2]|0)&p)+56>>2]&31](v,4,4,10)|0;if(!(u&(v|0)==5)){t=v;_=95;break}if(!(lc[g&127](h)|0)){t=5;_=100;break k}}if((_|0)==95?(t|0)!=0:0){_=100;break}if(($|0)==3){Xo(d,c[(Z&p)>>2]|0);t=c[(d&p)+8>>2]|0;t=ac[c[((c[(t&p)>>2]|0)&p)+16>>2]&63](t,0,0)|0}else t=0;if(!(a[(ca&n)>>0]|0)){_=c[(w&p)>>2]|0;pc[c[((c[(_&p)>>2]|0)&p)+56>>2]&31](_,4,4,9)|0;_=100}else _=100}else{t=0;_=100}else{t=5;_=100}else{t=v;_=100}while(0);if((_|0)==100)Wc(s);if((t|0)==0|(t|0)==5){if(q)c[(q&p)>>2]=c[(Y&p)>>2];if(r)c[(r&p)>>2]=c[((c[(c[(X&p)>>2]&p)>>2]|0)&p)+96>>2]}}else t=w;while(0);if(c[(ba&p)>>2]|0){C=d+52|0;B=C+48|0;do{c[(C&p)>>2]=0;C=C+4|0}while((C|0)<(B|0))}s=d+44|0;if(a[(s&n)>>0]|0){if(!(a[(ca&n)>>0]|0)){ba=c[(d&p)+4>>2]|0;pc[c[((c[(ba&p)>>2]|0)&p)+56>>2]&31](ba,0,1,9)|0}a[(s&n)>>0]=0;a[(d&n)+47>>0]=0}if(!(a[(ca&n)>>0]|0)){ca=c[(d&p)+4>>2]|0;pc[c[((c[(ca&p)>>2]|0)&p)+56>>2]&31](ca,1,1,9)|0}a[(aa&n)>>0]=0;s=(t|0)!=0|($|0)==(f|0)?t:5}else s=8;while(0);i=da;return s|0}function Un(b,c,d,e,f){b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=(c|0)<(e|0)?c:e;g=Zv(d,f,h)|0;a:do if(!g){b:do if(b){g=c-h|0;while(1){if((g|0)<=0)break;g=g+-1|0;if((a[(d+g+h&n)>>0]|0)!=32)break b}if(!g){g=e-h|0;while(1){if((g|0)<=0)break;g=g+-1|0;if((a[(f+g+h&n)>>0]|0)!=32)break b}if(!g){g=0;break a}}}while(0);g=c-e|0}while(0);return g|0}function Vn(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=Fc(c,e,(b|0)<(d|0)?b:d)|0;return ((a|0)==0?b-d|0:a)|0}function Wn(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+16|0;if((i|0)>=(j|0))fa();y=A;r=c[(e&p)>>2]|0;a:do if(d){o=d;while(1)if(!(a[(o&n)>>0]|0))break;else o=o+1|0;q=o-d&1073741823;if((c[2189]|r&64|0)!=0&q>>>0>4?(Zv(d,14984,5)|0)==0:0){o=q+2|0;m=r|64;if(q){r=0;do{o=((a[(d+r&n)>>0]|0)==38&1)+o|0;r=r+1|0}while((r|0)<(q|0))}l=Tc(o)|0;if(l){do if((a[(d&n)+5>>0]|0)==47?(a[(d&n)+6>>0]|0)==47:0){o=7;while(1){u=a[(d+o&n)>>0]|0;if(u<<24>>24==0|u<<24>>24==47)break;o=o+1|0}if((o|0)==16){k=d+7|0;if(!(Zv(14992,k,9)|0)){o=0;r=16;k=0;break}}else if((o|0)==7){o=0;r=7;k=0;break}else k=d+7|0;c[(y&p)>>2]=o+-7;c[(y&p)+4>>2]=k;c[(h&p)>>2]=_c(15008,y)|0;k=1;z=74;break a}else{o=0;r=5;k=0}while(0);b:while(1){w=l+(k+-1)|0;c:while(1){d:while(1){q=a[(d+r&n)>>0]|0;if(q<<24>>24==35|q<<24>>24==0)break b;s=r+1|0;if((q<<24>>24==37?(x=a[(d+s&n)>>0]|0,(a[(x&255&n)+10368>>0]&8)!=0):0)?(v=a[(d+r&n)+2>>0]|0,(a[(v&255&n)+10368>>0]&8)!=0):0){q=x;s=v;break}if(!o){r=s;z=38;break c}else if((o|0)==2){r=s;z=39;break c}else if((o|0)!=1){r=s;break c}if(!(q<<24>>24==38|q<<24>>24==61)){o=1;r=s;break c}if(!(a[(w&n)>>0]|0))r=s;else{r=s;z=36;break c}while(1){u=a[(d+r&n)>>0]|0;if(u<<24>>24==35|u<<24>>24==0)continue d;if((a[(d+r+-1&n)>>0]|0)==38)continue d;else r=r+1|0}}q=q<<24>>24;r=r+3|0;u=s<<24>>24;q=(0-(u>>>6&1)&9)+u&15|(0-(q>>>6&1)&9)+q<<4&240;if(q){z=30;break}s=(o|0)==0;while(1){q=a[(d+r&n)>>0]|0;if(q<<24>>24==35|q<<24>>24==0)continue c;if(s&q<<24>>24==63){o=0;continue c}if((o|0)==1){if(q<<24>>24==38|q<<24>>24==61){o=1;continue c}}else if((o|0)==2?q<<24>>24==38:0){o=2;continue c}r=r+1|0}}if((z|0)==30){z=0;q=q&255}else if((z|0)==36){z=0;if(q<<24>>24==38){a[(l+k&n)>>0]=0;q=0;o=1;k=k+1|0}else{q=0;o=2}}else if((z|0)==38){z=0;if(q<<24>>24==63)z=40;else o=0}else if((z|0)==39){z=0;if(q<<24>>24==38)z=40;else o=2}if((z|0)==40){z=0;q=0;o=1}a[(l+k&n)>>0]=q;k=k+1|0}if((o|0)==1){a[(l+k&n)>>0]=0;k=k+1|0}a[(l+k&n)>>0]=0;a[(l+k&n)+1>>0]=0;k=l;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;k=(k-l&1073741823)+1|0;o=a[(l+k&n)>>0]|0;if(o<<24>>24){x=l+k|0;e:while(1){q=x;while(1){k=q+1|0;if(!(o<<24>>24)){o=q;break}o=a[(k&n)>>0]|0;q=k}w=o-x&1073741823;o=x+(w+1)|0;q=o;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;v=q-o&1073741823;if((w|0)==3){k=(Zv(15040,x,3)|0)==0;k=k?o:b}else if((w|0)==5)if(!(Zv(15048,x,5)|0)){d=15056;t=393216;u=-393217;k=15048;z=58}else k=b;else if((w|0)==4?(Zv(15096,x,4)|0)==0:0){d=15104;t=m&135;u=-136;k=15176;z=58}else k=b;if((z|0)==58){z=0;r=c[(d&p)>>2]|0;if(!r){z=65;break}else q=0;while(1){s=r;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;if((v|0)==(s-r&1073741823|0)?(Zv(o,r,v)|0)==0:0){r=q;break}q=q+1|0;r=c[(d+(q<<3)&p)>>2]|0;if(!r){z=65;break e}}r=c[(d+(r<<3)&p)+4>>2]|0;if(!r){z=65;break}if((r&-129|0)>(t|0)){z=67;break}m=r|u&m;k=b}x=x+(w+2+v)|0;o=a[(x&n)>>0]|0;if(!(o<<24>>24)){z=72;break a}else b=k}if((z|0)==65){c[(y&p)>>2]=k;c[(y&p)+4>>2]=o;c[(h&p)>>2]=_c(15184,y)|0;k=1;z=74;break}else if((z|0)==67){c[(y&p)>>2]=k;c[(y&p)+4>>2]=o;c[(h&p)>>2]=_c(15208,y)|0;k=3;z=74;break}}else{k=b;z=72}}else k=7}else{m=q;z=70}}else{m=0;z=70}while(0);if((z|0)==70){l=Tc(m+2|0)|0;if(!l)k=7;else{kw(l|0,d|0,m|0)|0;a[(l+m&n)>>0]=0;a[(l+m&n)+1>>0]=0;m=r&-65;k=b;z=72}}if((z|0)==72){u=Kc(k)|0;c[(f&p)>>2]=u;if(!u){c[(y&p)>>2]=k;c[(h&p)>>2]=_c(15232,y)|0;k=1;z=74}else{k=0;z=75}}if((z|0)==74){Wc(l);l=0;z=75}if((z|0)==75){c[(e&p)>>2]=m;c[(g&p)>>2]=l}i=A;return k|0}function Xn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;do if(!d){d=qg(84,0)|0;if(!d)e=8;else{b=d+0|0;g=b+84|0;do{a[(b&n)>>0]=0;b=b+1|0}while((b|0)<(g|0));e=9}}else{f=c[(d&p)+4>>2]|0;c[(f&p)+4>>2]=c[(d&p)>>2];e=f+48|0;d=c[(e&p)>>2]|0;if(!d){d=qg(84,0)|0;if(!d){c[(e&p)>>2]=0;c[(f&p)+52>>2]=22;e=8;break}else{b=d+0|0;g=b+84|0;do{a[(b&n)>>0]=0;b=b+1|0}while((b|0)<(g|0));c[(e&p)>>2]=d;c[(f&p)+52>>2]=22;e=9;break}}else e=9}while(0);if((e|0)==8){a[(b&n)+65>>0]=1;d=0}else if((e|0)==9)if(!(a[(d&n)+76>>0]|0)){e=d+77|0;b=d+8|0;g=b+64|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(g|0));a[(e&n)>>0]=1}return d|0}function Yn(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();if(e){k=b+428|0;h=bn(k,e,m)|0;if(!h)g=0;else g=c[(h&p)+8>>2]|0;if((g|0)==0&(f|0)!=0){h=e;while(1)if(!(a[(h&n)>>0]|0))break;else h=h+1|0;h=h-e&1073741823;f=h+61|0;g=mh(b,f,0)|0;if(g){fw(g|0,0,f|0)|0;f=g+60|0;c[(g&p)>>2]=f;a[(g&n)+4>>0]=1;c[(g&p)+20>>2]=f;a[(g&n)+24>>0]=2;c[(g&p)+40>>2]=f;a[(g&n)+44>>0]=3;kw(f|0,e|0,h|0)|0;a[(g+h&n)+60>>0]=0;h=Ik(k,c[(g&p)>>2]|0,g)|0;if(!h)l=10;else{a[(b&n)+65>>0]=1;mg(b,h);g=0}}else g=0}else l=10}else{g=c[(b&p)+8>>2]|0;l=10}if((l|0)==10)if(!g)g=0;else g=g+(((d&255)+-1|0)*20|0)|0;i=m;return g|0}function Zn(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=i;i=i+64|0;if((i|0)>=(j|0))fa();B=D;k=D+48|0;s=D+24|0;x=D+8|0;m=(g|0)==1;v=m?13184:13208;c[(k&p)>>2]=v;c[(k&p)+4>>2]=13224;c[(k&p)+8>>2]=m?13064:12960;c[(k&p)+12>>2]=0;c[(x&p)>>2]=f;c[(x&p)+8>>2]=g;w=x+12|0;c[(w&p)>>2]=0;c[(x&p)+4>>2]=h;$m(x,3,k,0)|0;k=c[(w&p)>>2]|0;a:do if(!k){y=f+16|0;l=_h(f,v,c[((c[(y&p)>>2]|0)+(g<<4)&p)>>2]|0)|0;if(l){u=l+44|0;a[(u&n)>>0]=d[(u&n)>>0]|1}q=c[(y&p)>>2]|0;z=q+(g<<4)+4|0;l=c[(z&p)>>2]|0;if(!l){if(!m){k=0;break}k=(c[(q&p)+28>>2]|0)+78|0;b[(k&o)>>1]=e[(k&o)>>1]|1;k=0;break}c[((c[(l&p)+4>>2]|0)&p)+4>>2]=c[(l&p)>>2];do if(!(a[(l&n)+8>>0]|0)){k=yg(l,0)|0;if((k|0)==516)l=16344;else if(!k){l=c[(z&p)>>2]|0;u=1;break}else C=10;if((C|0)==10){l=k&255;if(l>>>0>26|(l|0)==2)l=16328;else l=c[(l<<2&p)+15488>>2]|0}c[(B&p)>>2]=l;dh(h,f,10344,B);C=38;break a}else u=0;while(0);wm(l,1,s);t=s+4|0;wm(c[(z&p)>>2]|0,2,t);r=s+8|0;wm(c[(z&p)>>2]|0,3,r);wm(c[(z&p)>>2]|0,4,s+12|0);k=s+16|0;wm(c[(z&p)>>2]|0,5,k);q=q+(g<<4)+12|0;l=c[(q&p)>>2]|0;c[(l&p)>>2]=c[(s&p)>>2];k=c[(k&p)>>2]|0;do if(k){if(!g){m=k&3;m=(m|0)==0?1:m&255;a[(f&n)+62>>0]=m;C=19;break}m=a[(f&n)+62>>0]|0;if((k|0)==(m&255|0))C=19;else{dh(h,f,13232,B);k=1}}else{m=(c[((c[(y&p)>>2]|0)+(g<<4)&p)+12>>2]|0)+78|0;b[(m&o)>>1]=e[(m&o)>>1]|4;m=a[(f&n)+62>>0]|0;C=19}while(0);do if((C|0)==19){a[(l&n)+77>>0]=m;m=l+80|0;if(!(c[(m&p)>>2]|0)){l=c[(r&p)>>2]|0;if((l|0)<=-1)l=(l|0)==-2147483648?2147483647:0-l|0;l=(l|0)==0?2e3:l;c[(m&p)>>2]=l;pq(c[(z&p)>>2]|0,l);l=c[(q&p)>>2]|0}k=c[(t&p)>>2]|0;m=k&255;l=l+76|0;if(m<<24>>24){a[(l&n)>>0]=m;if((m&255)>4){dh(h,f,13304,B);k=1;break}}else a[(l&n)>>0]=1;if((g|0)==0&(k|0)>3){t=f+24|0;c[(t&p)>>2]=c[(t&p)>>2]&-32769}c[(B&p)>>2]=c[((c[(y&p)>>2]|0)+(g<<4)&p)>>2];c[(B&p)+4>>2]=v;k=uh(f,13328,B)|0;v=f+284|0;t=c[(v&p)>>2]|0;c[(v&p)>>2]=0;l=Qe(f,k,22,x,0)|0;c[(v&p)>>2]=t;l=(l|0)==0?c[(w&p)>>2]|0:l;mg(f,k);k=(l|0)==0;if(k)an(f,g)|0;if(!(a[(f&n)+65>>0]|0)){if(!k){A=l;C=34}}else{Eg(f);A=7;C=34}if((C|0)==34?(c[(f&p)+24>>2]&65536|0)==0:0){k=A;break}k=(c[((c[(y&p)>>2]|0)+(g<<4)&p)+12>>2]|0)+78|0;b[(k&o)>>1]=e[(k&o)>>1]|1;k=0}while(0);if(!u)C=38;else{un(c[(z&p)>>2]|0)|0;C=38}}else C=38;while(0);if((C|0)==38)if((k|0)==7|(k|0)==3082)a[(f&n)+65>>0]=1;i=D;return k|0}function _n(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+80|0;if((i|0)>=(j|0))fa();o=q;c[12066]=c[2708];if(!(c[12067]|0))c[12067]=Lb(48336)|0;if(!(c[12068]|0))c[12068]=Lb(48352)|0;g=o+12|0;h=0;f=0;do{if((((f|0)!=0?(rc[c[47604>>2]&127](f,o)|0)==0:0)?(c[(g&p)>>2]&61440|0)==16384:0)?(rc[c[47580>>2]&127](f,7)|0)==0:0)break;f=c[(h<<2&p)+48264>>2]|0;h=h+1|0}while(h>>>0<7);m=(f|0)==0?28928:f;if(((gw(m|0)|0)+25|0)>>>0<b>>>0){b=b+-18|0;do{c[(o&p)>>2]=m;ad(b,e,48248,o)|0;g=gw(e|0)|0;f=e+g|0;cd(15,f);l=e+(g+15)|0;k=0;h=g;while(1){a[(f&n)>>0]=a[(((d[(f&n)>>0]|0)%62|0)&255&n)+48184>>0]|0;k=k+1|0;h=h+1|0;if((k|0)==15)break;else f=e+h|0}a[(l&n)>>0]=0;a[(e+g&n)+16>>0]=0}while((rc[c[47580>>2]&127](e,0)|0)==0);f=0}else f=1;i=q;return f|0}function $n(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+80|0;if((i|0)>=(j|0))fa();k=m;h=(d|0)!=0;f=h?d:420;g=b|524288;while(1){e=ac[c[47556>>2]&63](a,g,f)|0;if((e|0)<0)if((c[((Hb()|0)&p)>>2]|0)==4)continue;else break;if((e|0)>2){l=6;break}lc[c[47568>>2]&127](e)|0;c[(k&p)>>2]=a;c[(k&p)+4>>2]=e;bd(28,48120,k);if((ac[c[47556>>2]&63](48168,b,d)|0)<0){e=-1;break}}if((l|0)==6)if(((h?(rc[c[47616>>2]&127](e,k)|0)==0:0)?(c[(k&p)+36>>2]|0)==0:0)?(c[(k&p)+12>>2]&511|0)!=(d|0):0)rc[c[47724>>2]&127](e,d)|0;i=m;return e|0}function ao(a,b,d){a=a|0;b=b|0;d=d|0;if(lc[c[47568>>2]&127](b)|0){if(!a)b=0;else b=c[(a&p)+32>>2]|0;co(4106,47856,b,d)|0}return}function bo(a){a=a|0;var d=0,f=0,g=0,h=0;h=i;i=i+80|0;if((i|0)>=(j|0))fa();g=h;d=h+4|0;f=a+18|0;do if(!(b[(f&o)>>1]&256)){if(rc[c[47616>>2]&127](c[(a&p)+12>>2]|0,d)|0){c[(g&p)>>2]=c[(a&p)+32>>2];bd(28,48592,g);b[(f&o)>>1]=e[(f&o)>>1]|0|256;break}d=c[(d&p)+16>>2]|0;if(!d){if(!(b[(f&o)>>1]&32)){c[(g&p)>>2]=c[(a&p)+32>>2];bd(28,48616,g);b[(f&o)>>1]=e[(f&o)>>1]|0|256;break}}else if(d>>>0>1){c[(g&p)>>2]=c[(a&p)+32>>2];bd(28,48648,g);b[(f&o)>>1]=e[(f&o)>>1]|0|256;break}if(xo(a)|0){c[(g&p)>>2]=c[(a&p)+32>>2];bd(28,48680,g);b[(f&o)>>1]=e[(f&o)>>1]|0|256}}while(0);i=h;return}function co(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;f=i;i=i+32|0;if((i|0)>=(j|0))fa();g=f;k=c[((Hb()|0)&p)>>2]|0;h=Rb(k|0)|0;c[(g&p)>>2]=e;c[(g&p)+4>>2]=k;c[(g&p)+8>>2]=b;c[(g&p)+12>>2]=(d|0)==0?10360:d;c[(g&p)+16>>2]=h;bd(a,47864,g);i=f;return a|0}function eo(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;i=a+40|0;d=c[(i&p)>>2]|0;h=d<<1;h=h>>>0<256?256:h;if((d|0)!=0?(b=c[3164]|0,(b|0)!=0):0)nc[b&3]();b=h<<2;g=qg(b,0)|0;d=(g|0)==0;if(!d)fw(g|0,0,b|0)|0;if((c[(i&p)>>2]|0)!=0?(e=c[3166]|0,(e|0)!=0):0)nc[e&3]();if(!d){e=c[(i&p)>>2]|0;f=a+44|0;b=c[(f&p)>>2]|0;if(e){a=0;do{d=c[(b+(a<<2)&p)>>2]|0;if(d){do{k=d+16|0;j=d;d=c[(k&p)>>2]|0;b=g+((((c[(j&p)+8>>2]|0)>>>0)%(h>>>0)|0)<<2)|0;c[(k&p)>>2]=c[(b&p)>>2];c[(b&p)>>2]=j}while((d|0)!=0);b=c[(f&p)>>2]|0}a=a+1|0}while(a>>>0<e>>>0)}Wc(b);c[(f&p)>>2]=g;c[(i&p)>>2]=h}return}function fo(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0;g=a+24|0;h=a+16|0;d=a+4|0;a:do if((c[(h&p)>>2]|0)>>>0>(c[(d&p)>>2]|0)>>>0)do{e=c[(g&p)>>2]|0;if(!e)break a;go(e);f=c[(e&p)+20>>2]|0;b=(c[(f&p)+44>>2]|0)+((((c[(e&p)+8>>2]|0)>>>0)%((c[(f&p)+40>>2]|0)>>>0)|0)<<2)|0;while(1){i=c[(b&p)>>2]|0;a=i+16|0;if((i|0)==(e|0))break;else b=a}c[(b&p)>>2]=c[(a&p)>>2];a=f+36|0;c[(a&p)>>2]=(c[(a&p)>>2]|0)+-1;io(e)}while((c[(h&p)>>2]|0)>>>0>(c[(d&p)>>2]|0)>>>0);while(0);return}function go(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;e=c[(b&p)+20>>2]|0;f=c[(e&p)>>2]|0;g=b+28|0;h=c[(g&p)>>2]|0;i=b+24|0;d=c[(i&p)>>2]|0;if(!h)c[(f&p)+20>>2]=d;else{c[(h&p)+24>>2]=d;d=c[(i&p)>>2]|0}if(!d)c[(f&p)+24>>2]=h;else c[(d&p)+28>>2]=h;c[(i&p)>>2]=0;c[(g&p)>>2]=0;a[(b&n)+12>>0]=1;d=e+32|0;c[(d&p)>>2]=(c[(d&p)>>2]|0)+-1;return}function ho(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0;k=c[(b&p)>>2]|0;s=b+36|0;i=c[(s&p)>>2]|0;g=c[(b&p)+32>>2]|0;h=i-g|0;q=(e|0)==1;if(q)if(h>>>0<(c[(k&p)+12>>2]|0)>>>0?h>>>0<(c[(b&p)+24>>2]|0)>>>0:0){if((c[3155]|0)!=0?((c[(b&p)+8>>2]|0)+(c[(b&p)+4>>2]|0)|0)<=(c[3154]|0):0)e=12648|0;else e=9060|0;if(!((c[(e&p)>>2]|0)!=0&g>>>0<h>>>0))o=8;else f=0}else f=0;else o=8;do if((o|0)==8){m=b+40|0;if(i>>>0>=(c[(m&p)>>2]|0)>>>0)eo(b);j=b+12|0;do if((c[(j&p)>>2]|0)!=0?(f=c[(k&p)+24>>2]|0,(f|0)!=0):0){if(((c[(s&p)>>2]|0)+1|0)>>>0<(c[(b&p)+20>>2]|0)>>>0?(c[(k&p)+16>>2]|0)>>>0<(c[(k&p)+4>>2]|0)>>>0:0){if((c[3155]|0)!=0?((c[(b&p)+8>>2]|0)+(c[(b&p)+4>>2]|0)|0)<=(c[3154]|0):0)e=12648|0;else e=9060|0;if(!(c[(e&p)>>2]|0)){o=23;break}}e=f+20|0;g=c[(e&p)>>2]|0;h=(c[(g&p)+44>>2]|0)+((((c[(f&p)+8>>2]|0)>>>0)%((c[(g&p)+40>>2]|0)>>>0)|0)<<2)|0;while(1){t=c[(h&p)>>2]|0;i=t+16|0;if((t|0)==(f|0))break;else h=i}c[(h&p)>>2]=c[(i&p)>>2];i=g+36|0;c[(i&p)>>2]=(c[(i&p)>>2]|0)+-1;go(f);e=c[(e&p)>>2]|0;if(((c[(e&p)+8>>2]|0)+(c[(e&p)+4>>2]|0)|0)==((c[(b&p)+8>>2]|0)+(c[(b&p)+4>>2]|0)|0)){l=k+16|0;c[(l&p)>>2]=(c[(j&p)>>2]|0)-(c[(e&p)+12>>2]|0)+(c[(l&p)>>2]|0);break}else{io(f);o=23;break}}else o=23;while(0);if((o|0)==23){if(q?(l=c[3164]|0,(l|0)!=0):0)nc[l&3]();e=b+4|0;g=Go((c[(e&p)>>2]|0)+32+(c[(b&p)+8>>2]|0)|0)|0;e=c[(e&p)>>2]|0;f=g+e|0;if(g){c[(f&p)>>2]=g;c[(g+e&p)+4>>2]=g+(e+32);if(c[(j&p)>>2]|0){o=(c[(b&p)>>2]|0)+16|0;c[(o&p)>>2]=(c[(o&p)>>2]|0)+1}}else f=0;if(q?(r=c[3166]|0,(r|0)!=0):0)nc[r&3]();if(!f){f=0;break}}g=(d>>>0)%((c[(m&p)>>2]|0)>>>0)|0;c[(s&p)>>2]=(c[(s&p)>>2]|0)+1;c[(f&p)+8>>2]=d;o=b+44|0;c[(f&p)+16>>2]=c[((c[(o&p)>>2]|0)+(g<<2)&p)>>2];c[(f&p)+20>>2]=b;c[(f&p)+28>>2]=0;c[(f&p)+24>>2]=0;a[(f&n)+12>>0]=1;c[(c[(f&p)+4>>2]&p)>>2]=0;c[((c[(o&p)>>2]|0)+(g<<2)&p)>>2]=f;g=b+28|0;if((c[(g&p)>>2]|0)>>>0<d>>>0)c[(g&p)>>2]=d}while(0);return f|0}function io(a){a=a|0;var b=0;if((a|0)!=0?(b=c[(a&p)+20>>2]|0,$k(c[(a&p)>>2]|0),(c[(b&p)+12>>2]|0)!=0):0){b=(c[(b&p)>>2]|0)+16|0;c[(b&p)>>2]=(c[(b&p)>>2]|0)+-1}return}function jo(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=b+40|0;if(c[(h&p)>>2]|0){i=b+44|0;f=b+36|0;g=0;do{e=(c[(i&p)>>2]|0)+(g<<2)|0;b=c[(e&p)>>2]|0;a:do if(b)do{while(1){if((c[(b&p)+8>>2]|0)>>>0<d>>>0)break;c[(f&p)>>2]=(c[(f&p)>>2]|0)+-1;c[(e&p)>>2]=c[(b&p)+16>>2];if(!(a[(b&n)+12>>0]|0))go(b);io(b);b=c[(e&p)>>2]|0;if(!b)break a}e=b+16|0;b=c[(e&p)>>2]|0}while((b|0)!=0);while(0);g=g+1|0}while(g>>>0<(c[(h&p)>>2]|0)>>>0)}return}function ko(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=c[(b&p)>>2]|0;g=c[((c[(f&p)+32>>2]|0)&p)+88>>2]|0;h=((g|0)<0)<<31>>31;if(!((h|0)<(e|0)|(h|0)==(e|0)&g>>>0<d>>>0)){d=qg(d,e)|0;if(!d){Rd(b);d=0}}else{c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(f,10096,-1,1,0)|0;d=0}return d|0}function lo(b){b=b|0;var c=0,d=0,e=0,f=0;do if(b){c=a[(b&n)>>0]|0;d=c<<24>>24;if((d|0)==91)f=93;else if((d|0)==96|(d|0)==34|(d|0)==39)f=c;else break;d=1;e=0;while(1){c=a[(b+d&n)>>0]|0;if(c<<24>>24==f<<24>>24){d=d+1|0;c=b+e|0;if((a[(b+d&n)>>0]|0)!=f<<24>>24)break;a[(c&n)>>0]=f}else a[(b+e&n)>>0]=c;d=d+1|0;e=e+1|0}a[(c&n)>>0]=0}while(0);return}function mo(b,f,g,k){b=b|0;f=f|0;g=g|0;k=k|0;var l=0,m=0,r=0,s=0,t=0,u=0,v=0,w=0.0,x=0.0,y=0.0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0;W=i;i=i+176|0;if((i|0)>=(j|0))fa();T=W+64|0;u=W+132|0;t=W+128|0;s=W+124|0;v=W+56|0;P=W+48|0;U=W+136|0;S=W;r=k+0|0;m=r+48|0;do{c[(r&p)>>2]=0;r=r+4|0}while((r|0)<(m|0));a:do if(f){l=c[(g&p)>>2]|0;b:do if(((d[(e[(l&o)+8>>1]&31&n)+10064>>0]|0)+-1|0)>>>0>=2){r=Sg(l,1)|0;if(!r){l=1;break a}m=(a[(r&n)>>0]|0)==45;l=m?r+1|0:r;c[(T&p)>>2]=4;c[(T&p)+4>>2]=0;c[(T&p)+8>>2]=9999;c[(T&p)+12>>2]=45;c[(T&p)+16>>2]=u;c[(T&p)+20>>2]=2;c[(T&p)+24>>2]=1;c[(T&p)+28>>2]=12;c[(T&p)+32>>2]=45;c[(T&p)+36>>2]=t;c[(T&p)+40>>2]=2;c[(T&p)+44>>2]=1;c[(T&p)+48>>2]=31;c[(T&p)+52>>2]=0;c[(T&p)+56>>2]=s;do if((rq(l,T)|0)==3){l=l+10|0;while(1){M=a[(l&n)>>0]|0;if(M<<24>>24==84?1:(a[(M&255&n)+10368>>0]&1)!=0)l=l+1|0;else break}if(sq(l,k)|0){if(a[(l&n)>>0]|0)break;a[(k&n)+41>>0]=0}a[(k&n)+42>>0]=0;a[(k&n)+40>>0]=1;M=c[(u&p)>>2]|0;c[(k&p)+8>>2]=m?0-M|0:M;c[(k&p)+12>>2]=c[(t&p)>>2];c[(k&p)+16>>2]=c[(s&p)>>2];if(!(a[(k&n)+43>>0]|0))break b;no(k);break b}while(0);if(sq(r,k)|0){if(!(dd(r,20080)|0))if(!(qq(b,k)|0))break;else{l=1;break a}else l=r;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;if(!(Tl(r,v,l-r&1073741823,1)|0)){l=1;break a}w=+h[(v&q)>>3]*864.0e5+.5;L=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;M=k;c[(M&p)>>2]=~~w>>>0;c[(M&p)+4>>2]=L;a[(k&n)+42>>0]=1}}else{w=+Ug(l)*864.0e5+.5;L=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;M=k;c[(M&p)>>2]=~~w>>>0;c[(M&p)+4>>2]=L;a[(k&n)+42>>0]=1}while(0);if((f|0)>1){l=k+40|0;z=k+41|0;A=k+43|0;B=k+42|0;C=U+8|0;D=C;E=U+9|0;F=k+24|0;H=k+20|0;I=k+32|0;J=k+16|0;K=k+12|0;L=U+1|0;M=k+8|0;N=1;while(1){t=Sg(c[(g+(N<<2)&p)>>2]|0,1)|0;if(!t){l=1;break a}c[(T&p)>>2]=1;v=0;do{u=a[(t+v&n)>>0]|0;if(!(u<<24>>24))break;a[(U+v&n)>>0]=a[(u&255&n)+9328>>0]|0;v=v+1|0}while((v|0)<29);a[(U+v&n)>>0]=0;c:do switch(a[(U&n)>>0]|0){case 119:{if(!($v(U,19976,8)|0)){v=C;while(1)if(!(a[(v&n)>>0]|0))break;else v=v+1|0;if((Tl(C,P,v-D&1073741823,1)|0)!=0?(w=+h[(P&q)>>3],O=~~w,+(O|0)==w&(O|0)>-1&w<7.0):0){oo(k);po(k);a[(A&n)>>0]=0;a[(B&n)>>0]=0;no(k);m=k;v=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;t=jw(v|0,m|0,1296e5,0)|0;t=qw(t|0,G|0,864e5,0)|0;t=rw(t|0,G|0,7,0)|0;r=G;X=((O|0)<0)<<31>>31;s=(r|0)>(X|0)|(r|0)==(X|0)&t>>>0>O>>>0;u=jw(t|0,r|0,-7,-1)|0;r=dw(O|0,X|0,(s?u:t)|0,(s?G:r)|0)|0;r=sw(r|0,G|0,864e5,0)|0;m=jw(r|0,G|0,v|0,m|0)|0;v=k;c[(v&p)>>2]=m;c[(v&p)+4>>2]=G;a[(l&n)>>0]=0;a[(z&n)>>0]=0;a[(A&n)>>0]=0;c[(T&p)>>2]=0;v=0}else V=82}else V=82;break}case 108:{if(!(_v(U,19936)|0)){no(k);m=tq(k,b,T)|0;V=k;m=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]|0,m|0,G|0)|0;V=k;c[(V&p)>>2]=m;c[(V&p)+4>>2]=G;a[(l&n)>>0]=0;a[(z&n)>>0]=0;a[(A&n)>>0]=0;V=82}else V=82;break}case 115:{if(!($v(U,19992,9)|0)){oo(k);a[(z&n)>>0]=1;c[(F&p)>>2]=0;c[(H&p)>>2]=0;h[(I&q)>>3]=0.0;a[(A&n)>>0]=0;a[(B&n)>>0]=0;if(!(_v(E,20008)|0)){c[(J&p)>>2]=1;c[(T&p)>>2]=0;v=0;break c}if(!(_v(E,20016)|0)){oo(k);c[(K&p)>>2]=1;c[(J&p)>>2]=1;c[(T&p)>>2]=0;v=0;break c}if(!(_v(E,20024)|0)){c[(T&p)>>2]=0;v=0}else V=82}else V=82;break}case 117:{if((_v(U,19952)|0)==0?(a[(B&n)>>0]|0)!=0:0){m=k;m=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,43200,0)|0;m=qw(m|0,G|0,86400,0)|0;m=jw(m|0,G|0,1045635584,49096)|0;v=k;c[(v&p)>>2]=m;c[(v&p)+4>>2]=G;a[(l&n)>>0]=0;a[(z&n)>>0]=0;a[(A&n)>>0]=0;c[(T&p)>>2]=0;v=0;break c}if(!(_v(U,19968)|0)){no(k);u=tq(k,b,T)|0;t=G;v=c[(T&p)>>2]|0;if(!v){m=k;m=dw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,u|0,t|0)|0;V=k;c[(V&p)>>2]=m;c[(V&p)+4>>2]=G;a[(l&n)>>0]=0;a[(z&n)>>0]=0;a[(A&n)>>0]=0;V=tq(k,b,T)|0;V=dw(u|0,t|0,V|0,G|0)|0;m=k;m=jw(V|0,G|0,c[(m&p)>>2]|0,c[(m&p)+4>>2]|0)|0;V=k;c[(V&p)>>2]=m;c[(V&p)+4>>2]=G;V=82}}else V=82;break}case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:case 45:case 43:{t=1;while(1){v=U+t|0;u=a[(v&n)>>0]|0;if(u<<24>>24==58|u<<24>>24==0){u=v;break}if(!(a[(u&255&n)+10368>>0]&1))t=t+1|0;else{u=v;break}}if(!(Tl(U,P,t,1)|0)){c[(T&p)>>2]=1;v=1;break c}v=a[(u&n)>>0]|0;if(v<<24>>24==58){v=((d[(U&n)>>0]|0)+-48|0)>>>0<10?U:L;r=S+0|0;m=r+48|0;do{c[(r&p)>>2]=0;r=r+4|0}while((r|0)<(m|0));if(sq(v,S)|0){V=82;break c}no(S);v=S;v=jw(c[(v&p)>>2]|0,c[(v&p)+4>>2]|0,-432e5,-1)|0;v=rw(v|0,G|0,864e5,0)|0;u=G;m=S;c[(m&p)>>2]=v;c[(m&p)+4>>2]=u;if((a[(U&n)>>0]|0)==45){v=dw(0,0,v|0,u|0)|0;u=G;m=S;c[(m&p)>>2]=v;c[(m&p)+4>>2]=u}no(k);a[(l&n)>>0]=0;a[(z&n)>>0]=0;a[(A&n)>>0]=0;m=k;m=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,v|0,u|0)|0;v=k;c[(v&p)>>2]=m;c[(v&p)+4>>2]=G;c[(T&p)>>2]=0;v=0;break c}if(a[(v&255&n)+10368>>0]&1){u=U+(t+1)|0;while(1){v=a[(u&n)>>0]|0;if(!(a[(v&255&n)+10368>>0]&1))break;else u=u+1|0}}if(!(v<<24>>24))v=u;else{v=u;do v=v+1|0;while((a[(v&n)>>0]|0)!=0)}v=v-u&1073741823;if((v+-3|0)>>>0>7)V=82;else{t=v+-1|0;s=u+t|0;if((a[(s&n)>>0]|0)==115){a[(s&n)>>0]=0;v=t}no(k);c[(T&p)>>2]=0;x=+h[(P&q)>>3];y=x<0.0?-.5:.5;do if((v|0)==4){if(!(_v(u,20032)|0)){w=x*36.0e5+y;r=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;m=k;r=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,~~w>>>0|0,r|0)|0;m=k;c[(m&p)>>2]=r;c[(m&p)+4>>2]=G;break}if(!(_v(u,20016)|0)){m=~~x;oo(k);po(k);c[(M&p)>>2]=(c[(M&p)>>2]|0)+m;a[(B&n)>>0]=0;no(k);w=+(m|0);if(w!=x){w=y+(x-w)*365.0*864.0e5;r=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;m=k;r=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,~~w>>>0|0,r|0)|0;m=k;c[(m&p)>>2]=r;c[(m&p)+4>>2]=G}}else V=80}else if((v|0)==6){if(!(_v(u,20040)|0)){w=x*6.0e4+y;r=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;m=k;r=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,~~w>>>0|0,r|0)|0;m=k;c[(m&p)>>2]=r;c[(m&p)+4>>2]=G;break}if(!(_v(u,20048)|0)){w=x*1.0e3+y;r=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;m=k;r=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,~~w>>>0|0,r|0)|0;m=k;c[(m&p)>>2]=r;c[(m&p)+4>>2]=G}else V=80}else if((v|0)==5)if(!(_v(u,20008)|0)){oo(k);po(k);m=~~x;r=(c[(K&p)>>2]|0)+m|0;s=(((r|0)>0?-1:-12)+r|0)/12|0;c[(M&p)>>2]=(c[(M&p)>>2]|0)+s;c[(K&p)>>2]=(ca(s,-12)|0)+r;a[(B&n)>>0]=0;no(k);w=+(m|0);if(w!=x){w=y+(x-w)*30.0*864.0e5;r=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;m=k;r=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,~~w>>>0|0,r|0)|0;m=k;c[(m&p)>>2]=r;c[(m&p)+4>>2]=G}}else V=80;else if((v|0)==3?(_v(u,20024)|0)==0:0){w=x*864.0e5+y;r=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;m=k;r=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,~~w>>>0|0,r|0)|0;m=k;c[(m&p)>>2]=r;c[(m&p)+4>>2]=G}else V=80;while(0);if((V|0)==80)c[(T&p)>>2]=1;a[(l&n)>>0]=0;a[(z&n)>>0]=0;a[(A&n)>>0]=0;V=82}break}default:V=82}while(0);if((V|0)==82){V=0;v=c[(T&p)>>2]|0}N=N+1|0;if(v){l=1;break a}if((N|0)>=(f|0)){l=0;break a}}}else l=0}else l=qq(b,k)|0;while(0);i=W;return l|0}function no(b){b=b|0;var d=0,e=0,f=0,g=0,i=0,j=0,k=0,l=0,m=0,o=0.0;i=b+42|0;if(!(a[(i&n)>>0]|0)){j=b+40|0;if(a[(j&n)>>0]|0){e=c[(b&p)+8>>2]|0;d=c[(b&p)+12>>2]|0;f=c[(b&p)+16>>2]|0;if((d|0)<3)g=4}else{f=1;d=1;e=2e3;g=4}if((g|0)==4){d=d+12|0;e=e+-1|0}o=(+(f+2+((e|0)/-100|0)+((e|0)/400|0)+(((e*36525|0)+172251900|0)/100|0)+(((d*306001|0)+306001|0)/1e4|0)|0)+-1524.5)*864.0e5;e=~~o>>>0;f=+R(o)>=1.0?(o>0.0?~~+da(+Q(o/4294967296.0),4294967295.0)>>>0:~~+ba((o-+(~~o>>>0))/4294967296.0)>>>0):0;d=b;c[(d&p)>>2]=e;c[(d&p)+4>>2]=f;a[(i&n)>>0]=1;d=b+41|0;if((a[(d&n)>>0]|0)!=0?(k=ca(c[(b&p)+20>>2]|0,36e5)|0,k=((c[(b&p)+24>>2]|0)*6e4|0)+k|0,o=+h[(b&q)+32>>3]*1.0e3,l=jw(~~o>>>0|0,(+R(o)>=1.0?(o>0.0?~~+da(+Q(o/4294967296.0),4294967295.0)>>>0:~~+ba((o-+(~~o>>>0))/4294967296.0)>>>0):0)|0,e|0,f|0)|0,k=jw(l|0,G|0,k|0,((k|0)<0)<<31>>31|0)|0,l=G,m=b,c[(m&p)>>2]=k,c[(m&p)+4>>2]=l,m=b+43|0,(a[(m&n)>>0]|0)!=0):0){f=(c[(b&p)+28>>2]|0)*6e4|0;f=dw(k|0,l|0,f|0,((f|0)<0)<<31>>31|0)|0;e=b;c[(e&p)>>2]=f;c[(e&p)+4>>2]=G;a[(j&n)>>0]=0;a[(d&n)>>0]=0;a[(m&n)>>0]=0}}return}function oo(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;g=b+40|0;if(!(a[(g&n)>>0]|0)){if(!(a[(b&n)+42>>0]|0)){d=2e3;e=1;f=1}else{d=b;d=jw(c[(d&p)>>2]|0,c[(d&p)+4>>2]|0,432e5,0)|0;d=qw(d|0,G|0,864e5,0)|0;h=~~((+(d|0)+-1867216.25)/36524.25);h=d+1525+h+((h|0)/-4|0)|0;d=~~((+(h|0)+-122.1)/365.25);h=h-((d*36525|0)/100|0)|0;f=~~(+(h|0)/30.6001);e=((f|0)<14?-1:-13)+f|0;d=((e|0)>2?-4716:-4715)+d|0;f=h-~~(+(f|0)*30.6001)|0}c[(b&p)+16>>2]=f;c[(b&p)+12>>2]=e;c[(b&p)+8>>2]=d;a[(g&n)>>0]=1}return}function po(b){b=b|0;var d=0,e=0,f=0,g=0,i=0.0;d=b+41|0;if(!(a[(d&n)>>0]|0)){no(b);g=b;g=jw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,432e5,0)|0;g=rw(g|0,G|0,864e5,0)|0;i=+(g|0)/1.0e3;g=~~i;f=(g|0)/3600|0;c[(b&p)+20>>2]=f;f=(ca(f,-3600)|0)+g|0;e=(f|0)/60|0;c[(b&p)+24>>2]=e;h[(b&q)+32>>3]=i-+(g|0)+ +(f+(ca(e,-60)|0)|0);a[(d&n)>>0]=1}return}function qo(a){a=a|0;mg(c[(a&p)+52>>2]|0,a);return}function ro(b,d,f,g){b=b|0;d=d|0;f=f|0;g=g|0;var h=0,i=0;i=b+65|0;do if(!(a[(i&n)>>0]|0)){if(!d){h=mh(b,f,g)|0;break}if((c[(b&p)+276>>2]|0)>>>0<=d>>>0?(c[(b&p)+280>>2]|0)>>>0>d>>>0:0){i=b+248|0;if(!(0<g>>>0|(0==(g|0)?(e[(i&o)>>1]|0)>>>0<f>>>0:0))){h=d;break}h=mh(b,f,g)|0;if(!h){h=0;break}kw(h|0,d|0,e[(i&o)>>1]|0)|0;mg(b,d);break}if((Lc()|0)==0?(h=rg(d,f,g)|0,(h|0)!=0):0)break;a[(i&n)>>0]=1;h=0}else h=0;while(0);return h|0}function so(a,d){a=a|0;d=d|0;var e=0,f=0;if(!a)a=0;else{f=c[(a&p)+4>>2]|0;c[(f&p)+4>>2]=c[(a&p)>>2];f=f+22|0;a=b[(f&o)>>1]|0;if((d|0)>-1){e=a&65535;a=e&65531;b[(f&o)>>1]=a;if(d){a=(e|4)&65535;b[(f&o)>>1]=a}}a=(a&65535)>>>2&1}return a|0}function to(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;h=c[(b&p)+4>>2]|0;c[(h&p)+4>>2]=c[(b&p)>>2];h=c[(h&p)>>2]|0;f=e&3;if((f|0)!=1){g=a[(h&n)+12>>0]|0;b=h+7|0;a[(b&n)>>0]=g<<24>>24!=0&1;if((f|0)==3)g=g<<24>>24==0&1;else g=0}else{b=h+7|0;a[(b&n)>>0]=1;g=0}a[(h&n)+8>>0]=g;do if(!(a[(b&n)>>0]|0)){if(e&4){a[(h&n)+11>>0]=3;a[(h&n)+9>>0]=3;b=3;break}a[(h&n)+11>>0]=2;b=h+9|0;if(!(e&8)){a[(b&n)>>0]=2;b=2;break}else{a[(b&n)>>0]=3;b=2;break}}else{a[(h&n)+11>>0]=0;a[(h&n)+9>>0]=0;b=0}while(0);if(g<<24>>24)b=(b&255|32)&255;a[(h&n)+10>>0]=b;b=h+20|0;f=d[(b&n)>>0]|0;a[(b&n)>>0]=(e&16|0)==0?f|1:f&254;return}function uo(a){a=a|0;var b=0,d=0;d=a+12|0;b=c[(d&p)>>2]|0;if((b|0)>-1){ao(a,b,27311);c[(d&p)>>2]=-1}Wc(c[(a&p)+28>>2]|0);b=a+0|0;d=b+44|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));return}function vo(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;i=f&131071;while(1){h=cb(a|0,b|0,0)|0;if(!((h|0)==(b|0)&(((h|0)<0)<<31>>31|0)==(d|0))){j=3;break}h=ac[c[47688>>2]&63](a,e,i)|0;if((h|0)>=0)break;f=c[((Hb()|0)&p)>>2]|0;if((f|0)!=4){j=9;break}}if((j|0)==3)if(!g)h=-1;else{if((h|0)==-1)h=c[((Hb()|0)&p)>>2]|0;else h=0;c[(g&p)>>2]=h;h=-1}else if((j|0)==9)if(g)c[(g&p)>>2]=f;return h|0}function wo(a,d,f){a=a|0;d=d|0;f=f|0;var g=0;g=c[(f&p)>>2]|0;do if((g|0)>=0){d=d&255;if(!g){f=a+18|0;b[(f&o)>>1]=(e[(f&o)>>1]|0)&(d^65535);break}else{f=a+18|0;b[(f&o)>>1]=e[(f&o)>>1]|0|d;break}}else c[(f&p)>>2]=((e[(a&o)+18>>1]|0)&(d&255)|0)!=0&1;while(0);return}function xo(a){a=a|0;var b=0,d=0,e=0;e=i;i=i+80|0;if((i|0)>=(j|0))fa();d=e;b=a+8|0;if(c[(b&p)>>2]|0)if(!(rc[c[47604>>2]&127](c[(a&p)+32>>2]|0,d)|0))b=(c[(d&p)+72>>2]|0)!=(c[((c[(b&p)>>2]|0)&p)+4>>2]|0);else b=1;else b=0;i=e;return b&1|0}function yo(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+32|0;if((i|0)>=(j|0))fa();l=m;k=m+8|0;h=(c[((c[(a&p)+8>>2]|0)&p)+20>>2]|0)+12|0;if((c[(h&p)>>2]|0)>-1){c[(k&p)>>2]=0;c[(k&p)+4>>2]=0;c[(k&p)+8>>2]=0;c[(k&p)+12>>2]=0;b[(k&o)>>1]=d;b[(k&o)+2>>1]=0;c[(k&p)+4>>2]=f;c[(k&p)+8>>2]=g;d=a+18|0;g=((b[(d&o)>>1]&512)>>>9)+13|0;f=c[11910]|0;h=c[(h&p)>>2]|0;c[(l&p)>>2]=k;h=(ac[f&63](h,g,l)|0)!=-1;b[(d&o)>>1]=(e[(d&o)>>1]|0)&65023;h=h?0:5}else h=0;i=m;return h|0}function zo(a){a=a|0;var d=0,f=0,g=0,h=0,i=0,j=0,k=0;k=c[((c[(a&p)+8>>2]|0)&p)+20>>2]|0;if((k|0)!=0?(c[(k&p)+28>>2]|0)==0:0){d=hc[c[47844>>2]&7]()|0;if((d|0)<32768)g=1;else g=(d|0)/32768|0;h=k+20|0;if(!(b[(h&o)>>1]|0)){f=k+12|0;d=k+24|0}else{f=k+12|0;d=k+24|0;i=k+16|0;j=0;do{if((c[(f&p)>>2]|0)>-1)rc[c[47820>>2]&127](c[((c[(d&p)>>2]|0)+(j<<2)&p)>>2]|0,c[(i&p)>>2]|0)|0;else Wc(c[((c[(d&p)>>2]|0)+(j<<2)&p)>>2]|0);j=j+g|0}while((j|0)<(e[(h&o)>>1]|0))}Wc(c[(d&p)>>2]|0);d=c[(f&p)>>2]|0;if((d|0)>-1){ao(a,d,29591);c[(f&p)>>2]=-1}c[((c[(k&p)>>2]|0)&p)+20>>2]=0;Wc(k)}return}function Ao(a){a=a|0;var b=0,d=0,e=0;d=(c[(a&p)+8>>2]|0)+28|0;b=c[(d&p)>>2]|0;if(b)do{e=b;b=c[(b&p)+8>>2]|0;ao(a,c[(e&p)>>2]|0,26573);Wc(e)}while((b|0)!=0);c[(d&p)>>2]=0;return}function Bo(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();h=l;g=l+8|0;k=c[(d&p)+8>>2]|0;f=b[(d&o)+18>>1]|0;if(!(f&1))if((a[(k&n)+13>>0]|0)!=0&(f&2)==0)f=4;else f=7;else if(!(f&2))f=4;else f=7;if((f|0)==4){f=k+13|0;if(!(a[(f&n)>>0]|0)){b[(g&o)+2>>1]=0;c[(g&p)+4>>2]=(c[2514]|0)+2;c[(g&p)+8>>2]=510;b[(g&o)>>1]=1;m=c[11910]|0;e=c[(d&p)+12>>2]|0;c[(h&p)>>2]=g;e=ac[m&63](e,13,h)|0;if((e|0)>=0){a[(f&n)>>0]=1;f=k+24|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1}}else e=0}else if((f|0)==7){g=c[11910]|0;f=c[(d&p)+12>>2]|0;c[(h&p)>>2]=e;e=ac[g&63](f,13,h)|0}i=l;return e|0}function Co(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;do if(b){f=c[(b&p)>>2]|0;if(!f){c[(b&p)>>2]=1;c[(b&p)+4>>2]=d;g=9;break}h=b+4|0;e=c[(h&p)>>2]|0;c[(b&p)>>2]=f+1;c[(h&p)>>2]=d;if(e){c[(d&p)>>2]=e;e=e+4|0;c[(d&p)+4>>2]=c[(e&p)>>2];f=c[(e&p)>>2]|0;if(!f)c[(a&p)+8>>2]=d;else c[(f&p)>>2]=d;c[(e&p)>>2]=d}else g=9}else g=9;while(0);if((g|0)==9){e=a+8|0;f=c[(e&p)>>2]|0;c[(d&p)>>2]=f;if(f)c[(f&p)+4>>2]=d;c[(d&p)+4>>2]=0;c[(e&p)>>2]=d}return}function Do(a,b){a=a|0;b=b|0;var d=0,e=0;if(b){if((c[(b&p)>>2]|0)>0){d=0;e=b+8|0;while(1){mg(a,c[(e&p)+4>>2]|0);mg(a,c[(e&p)+8>>2]|0);mg(a,c[(e&p)+12>>2]|0);mg(a,c[(e&p)+64>>2]|0);kg(a,c[(e&p)+16>>2]|0);Mk(a,c[(e&p)+20>>2]|0,1);Gk(a,c[(e&p)+44>>2]|0);Hk(a,c[(e&p)+48>>2]|0);d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0))break;else e=e+72|0}}mg(a,b)}return}function Eo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;d=Fo(a,d)|0;if((d|0)>0){e=a+12|0;kw((c[(a&p)+8>>2]|0)+(c[(e&p)>>2]|0)|0,b|0,d|0)|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+d}return}function Fo(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;i=b+25|0;do if(!(a[(i&n)>>0]|0)){g=a[(b&n)+24>>0]|0;if(!(g<<24>>24)){f=b+16|0;d=(c[(f&p)>>2]|0)+-1-(c[(b&p)+12>>2]|0)|0;a[(i&n)>>0]=2;c[(f&p)>>2]=0;break}j=b+8|0;h=c[(j&p)>>2]|0;h=(h|0)==(c[(b&p)+4>>2]|0)?0:h;k=b+12|0;r=c[(k&p)>>2]|0;f=((r|0)<0)<<31>>31;u=d+1|0;u=jw(r|0,f|0,u|0,((u|0)<0)<<31>>31|0)|0;s=G;f=jw(u|0,s|0,r|0,f|0)|0;r=G;m=c[(b&p)+20>>2]|0;q=((m|0)<0)<<31>>31;t=(r|0)>(q|0)|(r|0)==(q|0)&f>>>0>m>>>0;f=t?u:f;r=t?s:r;if((r|0)>(q|0)|(r|0)==(q|0)&f>>>0>m>>>0){gn(b);a[(i&n)>>0]=2;c[(b&p)+16>>2]=0;d=0;break}m=b+16|0;c[(m&p)>>2]=f;if(g<<24>>24==1)g=ro(c[(b&p)>>2]|0,h,f,((f|0)<0)<<31>>31)|0;else g=Xc(h,f)|0;if(!g){gn(b);a[(i&n)>>0]=1;c[(m&p)>>2]=0;d=0;break}if((h|0)==0?(l=c[(k&p)>>2]|0,(l|0)>0):0)kw(g|0,c[(j&p)>>2]|0,l|0)|0;c[(j&p)>>2]=g;f=c[(b&p)>>2]|0;do if(!f)f=lc[c[8792>>2]&127](g)|0;else{if((c[(f&p)+276>>2]|0)>>>0<=g>>>0?(c[(f&p)+280>>2]|0)>>>0>g>>>0:0){f=e[(f&o)+248>>1]|0;break}f=lc[c[8792>>2]&127](g)|0}while(0);c[(m&p)>>2]=f}else d=0;while(0);return d|0}function Go(a){a=a|0;var b=0,d=0;if((c[3154]|0)>=(a|0)?(b=c[3160]|0,(b|0)!=0):0){c[3160]=c[(b&p)>>2];d=c[3161]|0;c[3161]=d+-1;c[3162]=(d|0)<=(c[3156]|0)&1;c[2173]=a;if((c[2183]|0)>>>0<a>>>0)c[2183]=a;d=(c[2167]|0)+1|0;c[2167]=d;if(d>>>0>(c[2177]|0)>>>0)c[2177]=d}else{b=qg(a,((a|0)<0)<<31>>31)|0;if(b){d=lc[c[8792>>2]&127](b)|0;c[2173]=a;if((c[2183]|0)>>>0<a>>>0)c[2183]=a;d=(c[2168]|0)+d|0;c[2168]=d;if(d>>>0>(c[2178]|0)>>>0)c[2178]=d}else b=0}return b|0}function Ho(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,i=0,j=0;h=a+20|0;if(c[(h&p)>>2]|0){f=a+24|0;i=ac[c[8864>>2]&63](b,(c[(f&p)>>2]|0)+40|0,d[(a&n)+28>>0]|0)|0;if(!i)e=7;else{g=c[2217]|0;e=c[(a&p)+16>>2]|0;if((e|0)<=-1){j=sw(e|0,((e|0)<0)<<31>>31|0,-1024,-1)|0;e=(c[(f&p)>>2]|0)+(c[(h&p)>>2]|0)|0;e=qw(j|0,G|0,e|0,((e|0)<0)<<31>>31|0)|0}jc[g&15](i,e);e=a+40|0;f=c[(e&p)>>2]|0;if(f)cc[c[8892>>2]&31](f);c[(e&p)>>2]=i;c[(a&p)+44>>2]=0;c[(h&p)>>2]=b;e=0}}else e=0;return e|0}function Io(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;f=c[(a&p)+208>>2]|0;if(((f|0)!=0?(b[(f&o)+40>>1]|0)>-1:0)?(e=c[(f&p)+72>>2]|0,(e|0)!=0):0){f=e;h=8}else h=4;do if((h|0)==4){f=g;c[(f&p)>>2]=0;c[(f&p)+4>>2]=0;f=c[(a&p)+60>>2]|0;e=c[(f&p)>>2]|0;if(!e){e=-1;f=-1}else{e=rc[c[(e&p)+24>>2]&127](f,g)|0;if(e)break;e=g;e=jw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,-1,-1)|0;f=G}g=c[(a&p)+152>>2]|0;h=((g|0)<0)<<31>>31;f=jw(e|0,f|0,g|0,h|0)|0;f=qw(f|0,G|0,g|0,h|0)|0;h=8}while(0);if((h|0)==8){e=a+156|0;if(f>>>0>(c[(e&p)>>2]|0)>>>0)c[(e&p)>>2]=f;c[(d&p)>>2]=f;e=0}i=k;return e|0}function Jo(b){b=b|0;var d=0,e=0;e=b+64|0;if(!((a[(b&n)+7>>0]|0)==0?(d=c[(e&p)>>2]|0,d=rc[c[((c[(d&p)>>2]|0)&p)+20>>2]&127](d,2)|0,(d|0)!=0):0)){d=c[(e&p)>>2]|0;d=rc[c[((c[(d&p)>>2]|0)&p)+24>>2]&127](d,b+80|0)|0}return d|0}function Ko(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,H=0;H=i;i=i+48|0;if((i|0)>=(j|0))fa();E=H+16|0;D=H+8|0;C=H+36|0;y=H;x=H+32|0;w=H+28|0;B=H+24|0;f=c[(b&p)>>2]|0;c[(w&p)>>2]=0;c[(B&p)>>2]=1;A=b+64|0;g=c[(A&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+24>>2]&127](g,y)|0;a:do if(!g){z=b+200|0;g=c[(z&p)>>2]|0;h=uq(c[(A&p)>>2]|0,g,(c[((c[(b&p)>>2]|0)&p)+8>>2]|0)+1|0)|0;if(!h){if(!(a[(g&n)>>0]|0))g=0;else g=pc[c[(f&p)+32>>2]&31](f,g,0,B)|0;b:do if((g|0)==0&(c[(B&p)>>2]|0)!=0){v=b+72|0;u=v;c[(u&p)>>2]=0;c[(u&p)+4>>2]=0;u=b+148|0;t=b+152|0;o=b+80|0;r=b+24|0;f=0;k=d;c:while(1){do{g=y;g=vq(b,d,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,x,w)|0;if((g|0)==101)break c;else if(g){F=27;break b}h=c[(x&p)>>2]|0;if((h|0)==-1){s=y;s=dw(c[(s&p)>>2]|0,c[(s&p)+4>>2]|0,c[(u&p)>>2]|0,0)|0;h=(c[(t&p)>>2]|0)+8|0;h=qw(s|0,G|0,h|0,((h|0)<0)<<31>>31|0)|0;c[(x&p)>>2]=h}if(!(h|d)){s=o;g=c[(u&p)>>2]|0;s=jw(g|0,0,c[(s&p)>>2]|0,c[(s&p)+4>>2]|0)|0;q=G;m=v;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if((s|0)==(l|0)&(q|0)==(m|0)){m=y;m=dw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,s|0,q|0)|0;h=(c[(t&p)>>2]|0)+8|0;h=qw(m|0,G|0,h|0,((h|0)<0)<<31>>31|0)|0;c[(x&p)>>2]=h;m=q;l=s}}else{l=v;g=c[(u&p)>>2]|0;m=c[(l&p)+4>>2]|0;l=c[(l&p)>>2]|0}if((l|0)==(g|0)&(m|0)==0){g=c[(w&p)>>2]|0;l=Bl(b,g)|0;if(l){e=l;F=25;break a}c[(r&p)>>2]=g}}while((h|0)==0);l=0;while(1){if(k)xn(b);g=wq(b,v,0,1,0)|0;if((g|0)==522)break c;else if((g|0)==101)break;else if(g){F=27;break b}f=f+1|0;g=l+1|0;if(g>>>0<h>>>0){k=0;l=g}else{k=0;continue c}}g=y;s=c[(g&p)+4>>2]|0;k=v;c[(k&p)>>2]=c[(g&p)>>2];c[(k&p)+4>>2]=s;k=0}a[(b&n)+18>>0]=a[(b&n)+12>>0]|0;w=f}else{f=0;F=27}while(0);if((F|0)==27){a[(b&n)+18>>0]=a[(b&n)+12>>0]|0;if(!g)w=f;else{e=g;break}}v=c[(z&p)>>2]|0;g=uq(c[(A&p)>>2]|0,v,(c[((c[(b&p)>>2]|0)&p)+8>>2]|0)+1|0)|0;if(!g){if(((a[(b&n)+16>>0]|0)+-1&255)>2?(e=Ig(b,0)|0,(e|0)!=0):0){f=w;break}e=Cl(b,(a[(v&n)>>0]|0)!=0&1,0)|0;if(!e)if((a[(v&n)>>0]|0)!=0&(c[(B&p)>>2]|0)!=0){t=c[(b&p)>>2]|0;g=t+4|0;f=c[(g&p)>>2]<<1;u=qg(f,((f|0)<0)<<31>>31)|0;if(!u){f=w;e=7}else{fw(u|0,0,f|0)|0;r=u+(c[(g&p)>>2]|0)|0;s=t+24|0;e=tc[c[(s&p)>>2]&31](t,v,u,16385,0)|0;d:do if(!e){e=rc[c[((c[(u&p)>>2]|0)&p)+24>>2]&127](u,D)|0;if(!e){o=(c[(t&p)+8>>2]|0)+1|0;f=D;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,1,0)|0;f=jw(f|0,G|0,o|0,((o|0)<0)<<31>>31|0)|0;f=qg(f,G)|0;if(f){q=D;e=c[(q&p)>>2]|0;q=jw(e|0,c[(q&p)+4>>2]|0,1,0)|0;q=f+q|0;e=tc[c[((c[(u&p)>>2]|0)&p)+8>>2]&31](u,f,e,0,0)|0;if(!e){a[(f+(c[(D&p)>>2]|0)&n)>>0]=0;k=f;B=D;A=c[(B&p)+4>>2]|0;if((A|0)>0|(A|0)==0&(c[(B&p)>>2]|0)>>>0>0){g=t+32|0;l=k;m=f;do{e=pc[c[(g&p)>>2]&31](t,m,0,C)|0;if(e){F=55;break d}do if(c[(C&p)>>2]|0){e=tc[c[(s&p)>>2]&31](t,m,r,2049,0)|0;if(e){F=55;break d}e=uq(r,q,o)|0;h=c[(r&p)>>2]|0;if(h){lc[c[(h&p)+4>>2]&127](r)|0;c[(r&p)>>2]=0}if(e){F=55;break d}if(!(a[(q&n)>>0]|0))break;if(!(_v(q,v)|0)){e=0;F=55;break d}}while(0);if(!m)h=1;else{h=m;while(1)if(!(a[(h&n)>>0]|0))break;else h=h+1|0;h=(h-l&1073741823)+1|0}m=m+h|0;l=m;A=l-k|0;y=((A|0)<0)<<31>>31;B=D;z=c[(B&p)+4>>2]|0}while((y|0)<(z|0)|((y|0)==(z|0)?A>>>0<(c[(B&p)>>2]|0)>>>0:0))}e=c[(u&p)>>2]|0;if(e){lc[c[(e&p)+4>>2]&127](u)|0;c[(u&p)>>2]=0}e=ac[c[(t&p)+28>>2]&63](t,v,0)|0;Wc(f)}else F=55}else{e=7;f=0;F=55}}else{f=0;F=55}}else{f=0;F=55}while(0);if((F|0)==55)Wc(f);f=c[(u&p)>>2]|0;if(f){lc[c[(f&p)+4>>2]&127](u)|0;c[(u&p)>>2]=0}Wc(u);f=w}}else{f=w;e=0}else f=w}else{f=w;e=g}}else{f=0;e=h;F=25}}else{f=0;e=g;F=25}while(0);if((F|0)==25)a[(b&n)+18>>0]=a[(b&n)+12>>0]|0;if((d|0)!=0&(f|0)!=0){D=c[(b&p)+172>>2]|0;c[(E&p)>>2]=f;c[(E&p)+4>>2]=D;bd(539,14776,E)}wp(b);i=H;return e|0}function Lo(d){d=d|0;var e=0,f=0;e=d+44|0;if(a[(e&n)>>0]|0){if(!(a[(d&n)+43>>0]|0)){f=c[(d&p)+4>>2]|0;pc[c[((c[(f&p)>>2]|0)&p)+56>>2]&31](f,0,1,9)|0}a[(e&n)>>0]=0;a[(d&n)+47>>0]=0}e=d+40|0;f=b[(e&o)>>1]|0;if(f<<16>>16>-1){if(!(a[(d&n)+43>>0]|0)){d=c[(d&p)+4>>2]|0;pc[c[((c[(d&p)>>2]|0)&p)+56>>2]&31](d,(f<<16>>16)+3|0,1,5)|0}b[(e&o)>>1]=-1}return}function Mo(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0;if((g|0)>5)if((g|0)>100)f=15;else{if((g|0)>9){g=g+-9|0;g=ca(g*39|0,g)|0}else g=1;h=c[(d&p)>>2]|0;rc[c[(h&p)+60>>2]&127](h,g)|0;h=6}else h=6;a:do if((h|0)==6){do if(!f){f=nq(d,e)|0;do if((f|0)==5){if(!(c[(c[(d&p)+32>>2]&p)>>2]|0)){f=-1;break a}e=d+43|0;if(a[(e&n)>>0]|0){f=-1;break a}g=d+4|0;f=c[(g&p)>>2]|0;f=pc[c[((c[(f&p)>>2]|0)&p)+56>>2]&31](f,2,1,6)|0;if((f|0)==5){f=261;break a}else if(f)break;if(a[(e&n)>>0]|0){f=-1;break a}f=c[(g&p)>>2]|0;pc[c[((c[(f&p)>>2]|0)&p)+56>>2]&31](f,2,1,5)|0;f=-1;break a}while(0);if(f)break a;g=d+32|0;j=(c[(c[(g&p)>>2]&p)>>2]|0)+96|0;e=d+52|0;if((c[(j&p)>>2]|0)==(c[(d&p)+68>>2]|0)){i=d+43|0;h=a[(i&n)>>0]|0;if(!(h<<24>>24)){f=c[(d&p)+4>>2]|0;f=pc[c[((c[(f&p)>>2]|0)&p)+56>>2]&31](f,3,1,6)|0;h=a[(i&n)>>0]|0}else f=0;if(h<<24>>24!=2){q=c[(d&p)+4>>2]|0;cc[c[((c[(q&p)>>2]|0)&p)+60>>2]&31](q)}if((f|0)==5){q=g;g=5;break}else if(f)break a;if(!(Zv(c[(c[(g&p)>>2]&p)>>2]|0,e,48)|0)){b[(d&o)+40>>1]=0;f=0;break a}if(a[(i&n)>>0]|0){f=-1;break a}f=c[(d&p)+4>>2]|0;pc[c[((c[(f&p)>>2]|0)&p)+56>>2]&31](f,3,1,5)|0;f=-1;break a}else{q=g;g=0}}else{j=d+32|0;q=j;j=(c[(c[(j&p)>>2]&p)>>2]|0)+96|0;g=0}while(0);m=d+68|0;e=c[(j&p)+8>>2]|0;i=e>>>0>(c[(m&p)>>2]|0)>>>0;e=i?0:e;i=i&1^1;h=c[(j&p)+12>>2]|0;if(e>>>0<=h>>>0){l=h>>>0>(c[(m&p)>>2]|0)>>>0;i=l?i:2;e=l?e:h}h=c[(j&p)+16>>2]|0;if(e>>>0<=h>>>0){l=h>>>0>(c[(m&p)>>2]|0)>>>0;i=l?i:3;e=l?e:h}h=c[(j&p)+20>>2]|0;if(e>>>0<=h>>>0){l=h>>>0>(c[(m&p)>>2]|0)>>>0;i=l?i:4;e=l?e:h}b:do if((a[(d&n)+46>>0]&2)==0?((i|0)==0?1:e>>>0<(c[(m&p)>>2]|0)>>>0):0){l=d+43|0;k=d+4|0;h=1;while(1){g=h+3|0;if(a[(l&n)>>0]|0){i=h;break}f=c[(k&p)>>2]|0;f=pc[c[((c[(f&p)>>2]|0)&p)+56>>2]&31](f,g,1,10)|0;if(!f){i=h;break}else if((f|0)!=5)break a;h=h+1|0;if((h|0)>=5){g=5;break b}}h=c[(m&p)>>2]|0;c[(j+(i<<2)&p)+4>>2]=h;if(!(a[(l&n)>>0]|0)){e=c[(k&p)>>2]|0;pc[c[((c[(e&p)>>2]|0)&p)+56>>2]&31](e,g,1,9)|0;e=h;g=0}else{e=h;g=0}}while(0);if(!i){f=(g|0)==5?-1:520;break}g=i+3|0;f=d+43|0;h=a[(f&n)>>0]|0;do if(!(h<<24>>24)){h=c[(d&p)+4>>2]|0;h=pc[c[((c[(h&p)>>2]|0)&p)+56>>2]&31](h,g,1,6)|0;if(!h){h=a[(f&n)>>0]|0;break}else{f=(h|0)==5?-1:h;break a}}while(0);if(h<<24>>24!=2){m=c[(d&p)+4>>2]|0;cc[c[((c[(m&p)>>2]|0)&p)+60>>2]&31](m)}if((c[(j+(i<<2)&p)+4>>2]|0)==(e|0)?(Zv(c[(c[(q&p)>>2]&p)>>2]|0,d+52|0,48)|0)==0:0){b[(d&o)+40>>1]=i;f=0;break}if(!(a[(f&n)>>0]|0)){f=c[(d&p)+4>>2]|0;pc[c[((c[(f&p)>>2]|0)&p)+56>>2]&31](f,g,1,5)|0;f=-1}else f=-1}while(0);return f|0}function No(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;e=b+56|0;ei(c[(e&p)>>2]|0);c[(e&p)>>2]=0;cp(b);e=c[(b&p)+208>>2]|0;if(!e){if(!(a[(b&n)+4>>0]|0)){f=b+60|0;e=c[(f&p)>>2]|0;d=c[(e&p)>>2]|0;if(!(((d|0)!=0?((lc[c[(d&p)+48>>2]&127](e)|0)&2048|0)!=0:0)?(a[(b&n)+5>>0]&5)==1:0))i=7;if((i|0)==7?(g=c[(b&p)+64>>2]|0,h=c[(g&p)>>2]|0,(h|0)!=0):0){lc[c[(h&p)+4>>2]&127](g)|0;c[(g&p)>>2]=0}d=c[(f&p)>>2]|0;e=c[(d&p)>>2]|0;if(e){if(!(a[(b&n)+13>>0]|0))d=rc[c[(e&p)+32>>2]&127](d,0)|0;else d=0;e=b+17|0;if((a[(e&n)>>0]|0)!=5)a[(e&n)>>0]=0;if((d|0)!=0?(a[(b&n)+16>>0]|0)==6:0)a[(e&n)>>0]=5}a[(b&n)+18>>0]=0;a[(b&n)+16>>0]=0}}else{Lo(e);a[(b&n)+16>>0]=0}d=b+40|0;if(c[(d&p)>>2]|0){xn(b);a[(b&n)+18>>0]=a[(b&n)+12>>0]|0;a[(b&n)+16>>0]=0;c[(d&p)>>2]=0}d=b+72|0;a[(b&n)+19>>0]=0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(d&p)+8>>2]=0;c[(d&p)+12>>2]=0;return}function Oo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=c[(d&p)+4>>2]|0;f=e+0|0;g=f+40|0;do{c[(f&p)>>2]=0;f=f+4|0}while((f|0)<(g|0));c[(e&p)>>2]=d;c[(e&p)+4>>2]=c[(d&p)>>2];f=e+40|0;c[(e&p)+8>>2]=f;fw(f|0,0,c[(a&p)+24>>2]|0)|0;c[(e&p)+28>>2]=a;c[(e&p)+20>>2]=b;return il(a,b,d)|0}function Po(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();g=l;h=xq(a,b,g)|0;if(!h){k=c[(g&p)>>2]|0;if(!b){a=k+136|0;c[(g&p)>>2]=a;g=a;a=0}else{g=k;a=(b<<12)+-34|0}c[(e&p)>>2]=g+-4;c[(d&p)>>2]=k+16384;c[(f&p)>>2]=a}i=l;return h|0}function Qo(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;k=c[(d&p)+28>>2]|0;j=e&255;if(j&1){f=k+8|0;if((c[(f&p)>>2]|0)==(d|0)){e=d;do{e=c[(e&p)+36>>2]|0;if(!e){e=0;break}}while((b[(e&o)+24>>1]&4)!=0);c[(f&p)>>2]=e}e=d+32|0;g=c[(e&p)>>2]|0;h=(g|0)==0;i=d+36|0;f=c[(i&p)>>2]|0;if(h)c[(k&p)+4>>2]=f;else c[(g&p)+36>>2]=f;f=c[(i&p)>>2]|0;if(!f){c[(k&p)>>2]=g;if(h?(a[(k&n)+28>>0]|0)!=0:0)a[(k&n)+29>>0]=2}else c[(f&p)+32>>2]=g;c[(e&p)>>2]=0;c[(i&p)>>2]=0}if(j&2){e=c[(k&p)>>2]|0;c[(d&p)+32>>2]=e;if(!e){c[(k&p)+4>>2]=d;if(a[(k&n)+28>>0]|0)a[(k&n)+29>>0]=1}else c[(e&p)+36>>2]=d;c[(k&p)>>2]=d;e=k+8|0;if((c[(e&p)>>2]|0)==0?(b[(d&o)+24>>1]&4)==0:0)c[(e&p)>>2]=d}return}function Ro(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();h=l;f=e>>>3;g=f&255;a[(d&n)+5>>0]=g;e=e&-9;a[(d&n)+7>>0]=4-(f<<2);f=c[(d&p)+52>>2]|0;if((e|0)==2){a[(d&n)+2>>0]=0;a[(d&n)+3>>0]=0;a[(d&n)+4>>0]=0;b[(d&o)+10>>1]=b[(f&o)+24>>1]|0;b[(d&o)+12>>1]=b[(f&o)+26>>1]|0;k=5}else if((e|0)==5){a[(d&n)+2>>0]=1;a[(d&n)+3>>0]=g;a[(d&n)+4>>0]=g<<24>>24==0&1;b[(d&o)+10>>1]=b[(f&o)+28>>1]|0;b[(d&o)+12>>1]=b[(f&o)+30>>1]|0;k=5}else{c[(h&p)>>2]=54521;c[(h&p)+4>>2]=10788;bd(11,13600,h);e=11}if((k|0)==5){a[(d&n)+8>>0]=a[(f&n)+21>>0]|0;e=0}i=l;return e|0}function So(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,o=0,q=0;l=c[(b&p)+200>>2]|0;j=b+152|0;k=c[(j&p)>>2]|0;m=b+148|0;i=c[(m&p)>>2]|0;k=k>>>0>i>>>0?i:k;g=c[(b&p)+96>>2]|0;if((g|0)>0){f=c[(b&p)+92>>2]|0;e=b+72|0;h=0;do{d=f+(h*48|0)+8|0;o=d;if((c[(o&p)>>2]|0)==0&(c[(o&p)+4>>2]|0)==0){q=e;o=c[(q&p)+4>>2]|0;c[(d&p)>>2]=c[(q&p)>>2];c[(d&p)+4>>2]=o}h=h+1|0}while((h|0)<(g|0));h=e}else h=b+72|0;e=h;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;if((f|0)==0&(e|0)==0){f=0;e=0}else{f=jw(f|0,e|0,-1,-1)|0;f=qw(f|0,G|0,i|0,0)|0;f=jw(f|0,G|0,1,0)|0;f=sw(f|0,G|0,i|0,0)|0;e=G}i=h;c[(i&p)>>2]=f;c[(i&p)+4>>2]=e;i=b+80|0;c[(i&p)>>2]=f;c[(i&p)+4>>2]=e;if(((a[(b&n)+7>>0]|0)==0?(a[(b&n)+5>>0]|0)!=4:0)?(i=c[(b&p)+60>>2]|0,((lc[c[((c[(i&p)>>2]|0)&p)+48>>2]&127](i)|0)&512|0)==0):0){f=l+0|0;e=f+12|0;do{a[(f&n)>>0]=0;f=f+1|0}while((f|0)<(e|0))}else{i=l;g=i;a[(g&n)>>0]=-117058087;a[(g&n)+1>>0]=-117058087>>8;a[(g&n)+2>>0]=-117058087>>16;a[(g&n)+3>>0]=-117058087>>24;i=i+4|0;a[(i&n)>>0]=-681336544;a[(i&n)+1>>0]=-681336544>>8;a[(i&n)+2>>0]=-681336544>>16;a[(i&n)+3>>0]=-681336544>>24;i=l+8|0;a[(i&n)>>0]=-1;a[(i&n)+1>>0]=-1>>8;a[(i&n)+2>>0]=-1>>16;a[(i&n)+3>>0]=-1>>24}e=b+48|0;cd(4,e);e=c[(e&p)>>2]|0;a[(l&n)+12>>0]=e>>>24;a[(l&n)+13>>0]=e>>>16;a[(l&n)+14>>0]=e>>>8;a[(l&n)+15>>0]=e;e=c[(b&p)+28>>2]|0;a[(l&n)+16>>0]=e>>>24;a[(l&n)+17>>0]=e>>>16;a[(l&n)+18>>0]=e>>>8;a[(l&n)+19>>0]=e;e=c[(m&p)>>2]|0;a[(l&n)+20>>0]=e>>>24;a[(l&n)+21>>0]=e>>>16;a[(l&n)+22>>0]=e>>>8;a[(l&n)+23>>0]=e;e=c[(j&p)>>2]|0;a[(l&n)+24>>0]=e>>>24;a[(l&n)+25>>0]=e>>>16;a[(l&n)+26>>0]=e>>>8;a[(l&n)+27>>0]=e;fw(l+28|0,0,k+-28|0)|0;e=b+64|0;f=0;while(1){if(f>>>0>=(c[(m&p)>>2]|0)>>>0){d=0;break}j=c[(e&p)>>2]|0;d=h;d=tc[c[((c[(j&p)>>2]|0)&p)+12>>2]&31](j,l,k,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0)|0;j=h;j=jw(c[(j&p)>>2]|0,c[(j&p)+4>>2]|0,k|0,0)|0;b=h;c[(b&p)>>2]=j;c[(b&p)+4>>2]=G;if(!d)f=f+k|0;else break}return d|0}function To(a){a=a|0;var c=0,d=0,f=0;c=a+24|0;f=e[(c&o)>>1]|0;d=f&65503;b[(c&o)>>1]=d;if(!(f&2)){b[(c&o)>>1]=d|2;Qo(a,2)}return}function Uo(a){a=a|0;var b=0,d=0,e=0;b=c[(a&p)+16>>2]|0;d=c[(a&p)+20>>2]|0;e=c[(b&p)+96>>2]|0;a:do if((e|0)>0){b=c[(b&p)+92>>2]|0;a=0;while(1){if((c[(b+(a*48|0)&p)+20>>2]|0)>>>0>=d>>>0?(di(c[(b+(a*48|0)&p)+16>>2]|0,d)|0)==0:0){a=1;break a}a=a+1|0;if((a|0)>=(e|0)){a=0;break}}}else a=0;while(0);return a|0}function Vo(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();m=s;q=c[(b&p)+16>>2]|0;e=a[(q&n)+5>>0]|0;a:do if(e<<24>>24!=2){o=q+68|0;f=c[(o&p)>>2]|0;do if(!(c[(f&p)>>2]|0)){if(e<<24>>24!=4?(a[(q&n)+21>>0]|0)==0:0){d=c[(q&p)>>2]|0;d=tc[c[(d&p)+24>>2]&31](d,0,f,8222,0)|0;if(!d)break;else break a}e=f+0|0;d=e+40|0;do{c[(e&p)>>2]=0;e=e+4|0}while((e|0)<(d|0));c[(f&p)>>2]=14696}while(0);f=c[(b&p)+4>>2]|0;l=q+52|0;g=q+152|0;h=(c[(g&p)>>2]|0)+4|0;h=sw(h|0,((h|0)<0)<<31>>31|0,c[(l&p)>>2]|0,0)|0;k=G;d=c[(o&p)>>2]|0;e=b+20|0;b=c[(e&p)>>2]|0;a[(m&n)>>0]=b>>>24;a[(m&n)+1>>0]=b>>>16;a[(m&n)+2>>0]=b>>>8;a[(m&n)+3>>0]=b;d=tc[c[((c[(d&p)>>2]|0)&p)+12>>2]&31](d,m,4,h,k)|0;if(!d){m=c[(o&p)>>2]|0;o=c[(g&p)>>2]|0;d=jw(h|0,k|0,4,0)|0;d=tc[c[((c[(m&p)>>2]|0)&p)+12>>2]&31](m,f,o,d,G)|0;if(!d){d=l;r=10}}}else{e=b+20|0;d=q+52|0;r=10}while(0);if((r|0)==10){c[(d&p)>>2]=(c[(d&p)>>2]|0)+1;d=jl(q,c[(e&p)>>2]|0)|0}i=s;return d|0}function Wo(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+48|0;if((i|0)>=(j|0))fa();g=h;d=(a|0)!=0;a:do if(d&(b|0)!=0){d=g;while(1){f=c[(b&p)+20>>2]|0;e=a;a=d;while(1){a=a+12|0;if((c[(e&p)+20>>2]|0)>>>0>=f>>>0)break;c[(a&p)>>2]=e;a=c[(e&p)+12>>2]|0;if(!a){d=b;a=e;e=8;break a}else{d=e;e=a;a=d}}c[(a&p)>>2]=b;f=c[(b&p)+12>>2]|0;d=(e|0)!=0;if(d&(f|0)!=0){d=b;a=e;b=f}else{a=e;e=6;break}}}else{f=b;b=g;e=6}while(0);if((e|0)==6)if(d)c[(b&p)+12>>2]=a;else{d=f;a=b;e=8}do if((e|0)==8){a=a+12|0;if(!d){c[(a&p)>>2]=0;break}else{c[(a&p)>>2]=d;break}}while(0);i=h;return c[(g&p)+12>>2]|0}function Xo(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=c[(c[(b&p)+32>>2]&p)>>2]|0;k=b+84|0;j=b+104|0;c[(j&p)>>2]=(c[(j&p)>>2]|0)+1;c[(b&p)+68>>2]=0;j=k+1|0;i=k+2|0;g=k+3|0;h=((d[(j&n)>>0]|0)<<16|(d[(k&n)>>0]|0)<<24|(d[(i&n)>>0]|0)<<8|(d[(g&n)>>0]|0))+1|0;a[(k&n)>>0]=h>>>24;a[(j&n)>>0]=h>>>16;a[(i&n)>>0]=h>>>8;a[(g&n)>>0]=h;c[(b&p)+88>>2]=e;$o(b);c[(f&p)+96>>2]=0;c[(f&p)+104>>2]=0;c[(f&p)+108>>2]=-1;c[(f&p)+112>>2]=-1;c[(f&p)+116>>2]=-1;return}function Yo(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,o=0,q=0,r=0,s=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();m=l;k=c[(e&p)+4>>2]|0;o=c[(b&p)>>2]|0;q=c[(e&p)+20>>2]|0;e=o+76|0;a[(m&n)>>0]=q>>>24;a[(m&n)+1>>0]=q>>>16;a[(m&n)+2>>0]=q>>>8;a[(m&n)+3>>0]=q;a[(m&n)+4>>0]=f>>>24;a[(m&n)+5>>0]=f>>>16;a[(m&n)+6>>0]=f>>>8;a[(m&n)+7>>0]=f;q=o+84|0;s=q;s=d[(s&n)>>0]|d[(s&n)+1>>0]<<8|d[(s&n)+2>>0]<<16|d[(s&n)+3>>0]<<24;q=q+4|0;q=d[(q&n)>>0]|d[(q&n)+1>>0]<<8|d[(q&n)+2>>0]<<16|d[(q&n)+3>>0]<<24;f=m+8|0;r=f;a[(r&n)>>0]=s;a[(r&n)+1>>0]=s>>8;a[(r&n)+2>>0]=s>>16;a[(r&n)+3>>0]=s>>24;f=f+4|0;a[(f&n)>>0]=q;a[(f&n)+1>>0]=q>>8;a[(f&n)+2>>0]=q>>16;a[(f&n)+3>>0]=q>>24;f=(a[(o&n)+65>>0]|0)==0&1;yq(f,m,8,e,e);yq(f,k,c[(o&p)+36>>2]|0,e,e);f=c[(e&p)>>2]|0;a[(m&n)+16>>0]=f>>>24;a[(m&n)+17>>0]=f>>>16;a[(m&n)+18>>0]=f>>>8;a[(m&n)+19>>0]=f;f=c[(o&p)+80>>2]|0;a[(m&n)+20>>0]=f>>>24;a[(m&n)+21>>0]=f>>>16;a[(m&n)+22>>0]=f>>>8;a[(m&n)+23>>0]=f;f=zq(b,m,24,g,h)|0;if(!f){q=c[(b&p)+20>>2]|0;f=jw(g|0,h|0,24,0)|0;f=zq(b,k,q,f,G)|0}i=l;return f|0}function Zo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k+8|0;g=k;f=c[3164]|0;if(f)nc[f&3]();e=a+8|0;f=c[(e&p)>>2]|0;f=rc[c[((c[(f&p)>>2]|0)&p)+24>>2]&127](f,g)|0;l=c[(g&p)+4>>2]|0;if((f|0)==0&((l|0)>(d|0)|((l|0)==(d|0)?(c[(g&p)>>2]|0)>>>0>b>>>0:0))){f=c[(e&p)>>2]|0;f=ac[c[((c[(f&p)>>2]|0)&p)+16>>2]&63](f,b,d)|0}e=c[3166]|0;if(e)nc[e&3]();if(f){c[(h&p)>>2]=c[(a&p)+100>>2];bd(f,14816,h)}i=k;return}function _o(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+32|0;if((i|0)>=(j|0))fa();k=n;g=n+16|0;m=n+12|0;l=n+8|0;c[(g&p)>>2]=0;c[(m&p)>>2]=0;c[(l&p)>>2]=0;f=Po(a,(d+33|0)>>>12,l,m,g)|0;a:do if(!f){h=d-(c[(g&p)>>2]|0)|0;if((h|0)==1){f=c[(m&p)>>2]|0;d=f+4|0;fw(d|0,0,(c[(l&p)>>2]|0)+16384-d|0)|0}else f=c[(m&p)>>2]|0;if(c[(f+(h<<2)&p)>>2]|0)Aq(a);f=e*383&8191;b:do if(b[((c[(l&p)>>2]|0)+(f<<1)&o)>>1]|0){d=c[(l&p)>>2]|0;g=h;while(1){if(!g)break;f=f+1&8191;if(!(b[(d+(f<<1)&o)>>1]|0))break b;else g=g+-1|0}c[(k&p)>>2]=49852;c[(k&p)+4>>2]=10788;bd(11,13600,k);f=11;break a}while(0);c[((c[(m&p)>>2]|0)+(h<<2)&p)>>2]=e;b[((c[(l&p)>>2]|0)+(f<<1)&o)>>1]=h;f=0}while(0);i=n;return f|0}function $o(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;j=c[(c[(b&p)+32>>2]&p)>>2]|0;k=b+52|0;a[(b&n)+64>>0]=1;c[(k&p)>>2]=3007e3;i=b+92|0;g=3007e3;h=k;f=0;d=0;while(1){f=f+d+g|0;e=h+8|0;d=f+d+(c[(h&p)+4>>2]|0)|0;if(e>>>0>=i>>>0)break;g=c[(e&p)>>2]|0;h=e}c[(i&p)>>2]=f;c[(b&p)+96>>2]=d;d=j+48|0;e=k+0|0;f=d+48|0;do{a[(d&n)>>0]=a[(e&n)>>0]|0;d=d+1|0;e=e+1|0}while((d|0)<(f|0));if((a[(b&n)+43>>0]|0)!=2){d=c[(b&p)+4>>2]|0;cc[c[((c[(d&p)>>2]|0)&p)+60>>2]&31](d)}d=j+0|0;e=k+0|0;f=d+48|0;do{a[(d&n)>>0]=a[(e&n)>>0]|0;d=d+1|0;e=e+1|0}while((d|0)<(f|0));return}function ap(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;if(a)do{e=a+28|0;g=c[(e&p)>>2]|0;if(((g>>>0<7?(30>>>(g&127)&1)==0:0)?(c[(a&p)+16>>2]|0)>>>0>b>>>0:0)?(f=Ag(a,b,d,1)|0,(f|0)!=0):0)c[(e&p)>>2]=f;a=c[(a&p)+44>>2]|0}while((a|0)!=0);return}function bp(a){a=a|0;var b=0,d=0,e=0;a:do if(!(c[(a&p)+208>>2]|0)){d=a+176|0;e=a+180|0;while(1){b=fl(a,4)|0;if((b|0)!=5)break a;if(!(lc[c[(d&p)>>2]&127](c[(e&p)>>2]|0)|0)){b=5;break}}}else b=0;while(0);return b|0}function cp(b){b=b|0;var d=0,e=0,f=0,g=0;f=b+96|0;if((c[(f&p)>>2]|0)>0){d=b+92|0;e=0;do{ei(c[((c[(d&p)>>2]|0)+(e*48|0)&p)+16>>2]|0);e=e+1|0}while((e|0)<(c[(f&p)>>2]|0))}e=c[(b&p)+68>>2]|0;d=c[(e&p)>>2]|0;if(!(a[(b&n)+4>>0]|0)){if(d)g=7}else if((d|0)==14696){d=14696;g=7}if((g|0)==7){lc[c[(d&p)+4>>2]&127](e)|0;c[(e&p)>>2]=0}d=b+92|0;Wc(c[(d&p)>>2]|0);c[(d&p)>>2]=0;c[(f&p)>>2]=0;c[(b&p)+52>>2]=0;return}function dp(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=a+40|0;if(c[(f&p)>>2]|0){d=c[(a&p)>>2]|0;if(d)do{e=d;d=c[(d&p)+32>>2]|0;if((c[(e&p)+20>>2]|0)>>>0>b>>>0)xl(e)}while((d|0)!=0);if(!b){b=c[(a&p)+44>>2]|0;if(!b)b=0;else{fw(c[(b&p)+4>>2]|0,0,c[(a&p)+20>>2]|0)|0;b=1}}jc[c[8888>>2]&15](c[(f&p)>>2]|0,b+1|0)}return}function ep(d,e){d=d|0;e=e|0;var f=0,g=0;do if(!e){f=d+43|0;if(!(a[(f&n)>>0]|0))f=0;else{a[(f&n)>>0]=0;g=c[(d&p)+4>>2]|0;if(!(pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,(b[(d&o)+40>>1]|0)+3|0,1,6)|0))f=(a[(f&n)>>0]|0)==0;else{a[(f&n)>>0]=1;f=0}f=f&1}}else{f=d+43|0;g=(a[(f&n)>>0]|0)==0;if((e|0)<=0){f=g&1;break}if(g){g=c[(d&p)+4>>2]|0;pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,(b[(d&o)+40>>1]|0)+3|0,1,5)|0}a[(f&n)>>0]=1;f=1}while(0);return f|0}function fp(b){b=b|0;var e=0,f=0,g=0,h=0;f=b+73|0;if((a[(f&n)>>0]|0)==2)a[(f&n)>>0]=1;else c[(b&p)+68>>2]=0;e=b+48|0;km(b,e);do if(!(a[((c[(b&p)+120>>2]|0)&n)+2>>0]|0)){g=e;g=qg(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0)|0;if(g){e=Lm(b,0,c[(e&p)>>2]|0,g,0)|0;if(!e){c[(b&p)+56>>2]=g;h=9;break}else{Wc(g);break}}else e=7}else h=9;while(0);if((h|0)==9){gp(b);a[(f&n)>>0]=3;e=0}f=b+72|0;a[(f&n)>>0]=d[(f&n)>>0]&251;return e|0}function gp(a){a=a|0;var d=0,e=0,f=0,g=0;d=a+76|0;if((b[(d&o)>>1]|0)>=0){g=0;while(1){e=a+(g<<2)+120|0;f=c[(e&p)>>2]|0;if(f)Bg(c[(f&p)+68>>2]|0);c[(e&p)>>2]=0;if((g|0)<(b[(d&o)>>1]|0))g=g+1|0;else break}}b[(d&o)>>1]=-1;return}function hp(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();o=q;k=q+8|0;if(e>>>0<2)m=0;else{m=e+-2|0;m=m-((m>>>0)%(((((c[(b&p)+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;m=((m+1|0)==(((c[2514]|0)>>>0)/((c[(b&p)+32>>2]|0)>>>0)|0|0)?3:2)+m|0}h=zg(c[(b&p)>>2]|0,m,k,0)|0;do if(!h){k=c[(k&p)>>2]|0;l=c[(k&p)+4>>2]|0;h=(e-m|0)*5|0;b=h+-5|0;if((b|0)<0){if(k)Bg(k);c[(o&p)>>2]=53912;c[(o&p)+4>>2]=10788;bd(11,13600,o);h=11;break}a[(f&n)>>0]=a[(l+b&n)>>0]|0;if(g)c[(g&p)>>2]=(d[(l+h+-3&n)>>0]|0)<<16|(d[(l+h+-4&n)>>0]|0)<<24|(d[(l+h+-2&n)>>0]|0)<<8|(d[(l+h+-1&n)>>0]|0);if(k)Bg(k);if(((a[(f&n)>>0]|0)+-1&255)>4){c[(o&p)>>2]=53920;c[(o&p)+4>>2]=10788;bd(11,13600,o);h=11}else h=0}while(0);i=q;return h|0}function ip(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0;N=i;i=i+32|0;if((i|0)>=(j|0))fa();M=N;L=N+16|0;s=N+20|0;K=N+12|0;t=N+8|0;c[(L&p)>>2]=0;v=e+12|0;r=c[(v&p)>>2]|0;u=e+44|0;I=c[(u&p)>>2]|0;J=r+56|0;q=c[(J&p)>>2]|0;q=d[(q&n)+37>>0]<<16|d[(q&n)+36>>0]<<24|d[(q&n)+38>>0]<<8|d[(q&n)+39>>0];do if(q>>>0<I>>>0){if(!q){k=(a[(e&n)+19>>0]|0)==0&1;r=Gg(c[(r&p)+68>>2]|0)|0;if(r){l=r;break}s=c[(u&p)>>2]|0;q=s+1|0;c[(u&p)>>2]=q;m=e+32|0;r=c[(m&p)>>2]|0;if((s|0)==(((c[2514]|0)>>>0)/(r>>>0)|0|0)){q=s+2|0;c[(u&p)>>2]=q}if(a[(e&n)+17>>0]|0){if(q>>>0<2)s=0;else{s=q+-2|0;s=s-((s>>>0)%(((((c[(e&p)+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;s=((s+1|0)==(((c[2514]|0)>>>0)/(r>>>0)|0|0)?3:2)+s|0}if((s|0)==(q|0)){c[(t&p)>>2]=0;s=dl(e,q,t,k)|0;if(s){l=s;break}I=c[(t&p)>>2]|0;s=I+68|0;r=Gg(c[(s&p)>>2]|0)|0;if(I)Bg(c[(s&p)>>2]|0);if(r){l=r;break}s=c[(u&p)>>2]|0;q=s+1|0;c[(u&p)>>2]=q;if((s|0)==(((c[2514]|0)>>>0)/((c[(m&p)>>2]|0)>>>0)|0|0)){q=s+2|0;c[(u&p)>>2]=q}}}m=c[((c[(v&p)>>2]|0)&p)+56>>2]|0;a[(m&n)+28>>0]=q>>>24;a[(m&n)+29>>0]=q>>>16;a[(m&n)+30>>0]=q>>>8;a[(m&n)+31>>0]=q;m=c[(u&p)>>2]|0;c[(g&p)>>2]=m;m=dl(e,m,f,k)|0;if(m){l=m;break}m=Gg(c[((c[(f&p)>>2]|0)&p)+68>>2]|0)|0;if(m){l=c[(f&p)>>2]|0;if(!l){l=m;D=98}else{Bg(c[(l&p)+68>>2]|0);l=m;D=92}}}else{if(k<<24>>24==2)s=1;else if(k<<24>>24==1?I>>>0>=h>>>0:0){l=hp(e,h,s,0)|0;if(l)break;s=(a[(s&n)>>0]|0)==2&1}else s=0;l=Gg(c[(r&p)+68>>2]|0)|0;if(l)break;F=c[(J&p)>>2]|0;G=q+-1|0;a[(F&n)+36>>0]=G>>>24;a[(F&n)+37>>0]=G>>>16;a[(F&n)+38>>0]=G>>>8;a[(F&n)+39>>0]=G;F=e+36|0;G=(h|0)==0;H=e+60|0;E=k<<24>>24==2;m=0;a:while(1){w=(m|0)!=0;if(w){v=c[(m&p)+56>>2]|0;v=d[(v&n)+1>>0]<<16|d[(v&n)>>0]<<24|d[(v&n)+2>>0]<<8|d[(v&n)+3>>0]}else{v=c[(J&p)>>2]|0;v=d[(v&n)+33>>0]<<16|d[(v&n)+32>>0]<<24|d[(v&n)+34>>0]<<8|d[(v&n)+35>>0]}if(v>>>0>I>>>0){D=15;break}l=dl(e,v,L,0)|0;if(l){D=17;break}q=c[(L&p)>>2]|0;x=q+56|0;B=c[(x&p)>>2]|0;C=B+4|0;y=B+5|0;z=B+6|0;A=B+7|0;D=d[(y&n)>>0]<<16|d[(C&n)>>0]<<24|d[(z&n)>>0]<<8|d[(A&n)>>0];t=s<<24>>24!=0;do if((D|0)!=0|t){if(D>>>0>(((c[(F&p)>>2]|0)>>>2)+-2|0)>>>0){l=q;D=22;break a}if(s<<24>>24!=0?(v|0)==(h|0)|v>>>0<h>>>0&E:0){c[(g&p)>>2]=v;c[(f&p)>>2]=q;l=Gg(c[(q&p)+68>>2]|0)|0;if(l){D=88;break a}do if(!D){if(!w){D=(c[(J&p)>>2]|0)+32|0;C=c[(x&p)>>2]|0;C=d[(C&n)>>0]|d[(C&n)+1>>0]<<8|d[(C&n)+2>>0]<<16|d[(C&n)+3>>0]<<24;a[(D&n)>>0]=C;a[(D&n)+1>>0]=C>>8;a[(D&n)+2>>0]=C>>16;a[(D&n)+3>>0]=C>>24;break}l=Gg(c[(m&p)+68>>2]|0)|0;if(l){D=88;break a}D=c[(m&p)+56>>2]|0;C=c[(x&p)>>2]|0;C=d[(C&n)>>0]|d[(C&n)+1>>0]<<8|d[(C&n)+2>>0]<<16|d[(C&n)+3>>0]<<24;a[(D&n)>>0]=C;a[(D&n)+1>>0]=C>>8;a[(D&n)+2>>0]=C>>16;a[(D&n)+3>>0]=C>>24}else{v=c[(x&p)>>2]|0;t=a[(v&n)+8>>0]|0;k=a[(v&n)+9>>0]|0;u=a[(v&n)+10>>0]|0;v=a[(v&n)+11>>0]|0;s=(k&255)<<16|(t&255)<<24|(u&255)<<8|v&255;if(s>>>0>I>>>0){l=q;D=32;break a}l=dl(e,s,K,0)|0;if(l){D=88;break a}s=c[(K&p)>>2]|0;r=s+68|0;l=Gg(c[(r&p)>>2]|0)|0;if(l){D=35;break a}C=s+56|0;B=c[(C&p)>>2]|0;A=c[(x&p)>>2]|0;A=d[(A&n)>>0]|d[(A&n)+1>>0]<<8|d[(A&n)+2>>0]<<16|d[(A&n)+3>>0]<<24;a[(B&n)>>0]=A;a[(B&n)+1>>0]=A>>8;a[(B&n)+2>>0]=A>>16;a[(B&n)+3>>0]=A>>24;B=c[(C&p)>>2]|0;D=D+-1|0;a[(B&n)+4>>0]=D>>>24;a[(B&n)+5>>0]=D>>>16;a[(B&n)+6>>0]=D>>>8;a[(B&n)+7>>0]=D;kw((c[(C&p)>>2]|0)+8|0,(c[(x&p)>>2]|0)+12|0,D<<2|0)|0;if(s)Bg(c[(r&p)>>2]|0);if(!w){D=c[(J&p)>>2]|0;a[(D&n)+32>>0]=t;a[(D&n)+33>>0]=k;a[(D&n)+34>>0]=u;a[(D&n)+35>>0]=v;break}l=Gg(c[(m&p)+68>>2]|0)|0;if(l){D=88;break a}D=c[(m&p)+56>>2]|0;a[(D&n)>>0]=t;a[(D&n)+1>>0]=k;a[(D&n)+2>>0]=u;a[(D&n)+3>>0]=v}while(0);c[(L&p)>>2]=0;q=0;l=0;s=0;break}if(D){b:do if(!G){if(E){k=0;while(1){x=k<<2;if((d[(B+x&n)+9>>0]<<16|d[(B+x&n)+8>>0]<<24|d[(B+x&n)+10>>0]<<8|d[(B+x&n)+11>>0])>>>0<=h>>>0)break b;k=k+1|0;if(k>>>0>=D>>>0){k=0;break b}}}r=(d[(B&n)+9>>0]<<16|d[(B&n)+8>>0]<<24|d[(B&n)+10>>0]<<8|d[(B&n)+11>>0])-h|0;if((r|0)<=-1)r=(r|0)==-2147483648?2147483647:0-r|0;if(D>>>0>1){k=0;u=1;while(1){l=u<<2;l=(d[(B+l&n)+9>>0]<<16|d[(B+l&n)+8>>0]<<24|d[(B+l&n)+10>>0]<<8|d[(B+l&n)+11>>0])-h|0;if((l|0)<=-1)l=(l|0)==-2147483648?2147483647:0-l|0;v=(l|0)<(r|0);k=v?u:k;u=u+1|0;if((u|0)==(D|0))break;else r=v?l:r}}else k=0}else k=0;while(0);r=k<<2;v=B+(r+8)|0;r=d[(B+r&n)+9>>0]<<16|d[(v&n)>>0]<<24|d[(B+r&n)+10>>0]<<8|d[(B+r&n)+11>>0];if(r>>>0>I>>>0){l=q;D=56;break a}if((r|0)==(h|0)|t^1|r>>>0<h>>>0&E){c[(g&p)>>2]=r;l=Gg(c[(q&p)+68>>2]|0)|0;if(l){D=88;break a}s=D+-1|0;if(k>>>0<s>>>0){D=B+((D<<2)+4)|0;D=d[(D&n)>>0]|d[(D&n)+1>>0]<<8|d[(D&n)+2>>0]<<16|d[(D&n)+3>>0]<<24;a[(v&n)>>0]=D;a[(v&n)+1>>0]=D>>8;a[(v&n)+2>>0]=D>>16;a[(v&n)+3>>0]=D>>24}a[(C&n)>>0]=s>>>24;a[(y&n)>>0]=s>>>16;a[(z&n)>>0]=s>>>8;a[(A&n)>>0]=s;r=c[(g&p)>>2]|0;s=c[(H&p)>>2]|0;do if(!s)s=0;else{if((c[(s&p)>>2]|0)>>>0<r>>>0){s=1;break}s=(di(s,r)|0)!=0}while(0);l=dl(e,r,f,s&1^1)|0;if(l){s=0;break}l=Gg(c[((c[(f&p)>>2]|0)&p)+68>>2]|0)|0;if(!l){l=0;s=0;break}s=c[(f&p)>>2]|0;if(!s){s=0;break}Bg(c[(s&p)+68>>2]|0);s=0}else l=0}else l=0}else{l=Gg(c[(q&p)+68>>2]|0)|0;if(l){D=89;break a}c[(g&p)>>2]=v;l=(c[(J&p)>>2]|0)+32|0;s=c[(x&p)>>2]|0;s=d[(s&n)>>0]|d[(s&n)+1>>0]<<8|d[(s&n)+2>>0]<<16|d[(s&n)+3>>0]<<24;a[(l&n)>>0]=s;a[(l&n)+1>>0]=s>>8;a[(l&n)+2>>0]=s>>16;a[(l&n)+3>>0]=s>>24;c[(f&p)>>2]=q;c[(L&p)>>2]=0;q=0;l=0;s=0}while(0);if(m)Bg(c[(m&p)+68>>2]|0);if(!(s<<24>>24)){m=0;D=88;break}else m=q}if((D|0)==15){c[(M&p)>>2]=58314;c[(M&p)+4>>2]=10788;bd(11,13600,M);l=11;D=17}else if((D|0)==22){c[(M&p)>>2]=58343;c[(M&p)+4>>2]=10788;bd(11,13600,M);q=l;l=11;D=88}else if((D|0)==32){c[(M&p)>>2]=58377;c[(M&p)+4>>2]=10788;bd(11,13600,M);q=l;l=11;D=88}else if((D|0)==35)if(!s)D=88;else{Bg(c[(r&p)>>2]|0);D=88}else if((D|0)==56){c[(M&p)>>2]=58442;c[(M&p)+4>>2]=10788;bd(11,13600,M);q=l;l=11;D=88}if((D|0)==17)c[(L&p)>>2]=0;else if((D|0)==88)if(q)D=89;if((D|0)==89)Bg(c[(q&p)+68>>2]|0);if(!m)D=92;else{Bg(c[(m&p)+68>>2]|0);D=92}}if((D|0)==92?(l|0)!=0:0)D=98;if((D|0)==98){c[(f&p)>>2]=0;break}l=c[(f&p)>>2]|0;m=c[(l&p)+68>>2]|0;if((b[(m&o)+26>>1]|0)<=1){a[(l&n)>>0]=0;l=0;break}if(l)Bg(m);c[(f&p)>>2]=0;c[(M&p)>>2]=58541;c[(M&p)+4>>2]=10788;bd(11,13600,M);l=11}else{c[(M&p)>>2]=58259;c[(M&p)+4>>2]=10788;bd(11,13600,M);l=11}while(0);i=N;return l|0}function jp(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+16|0;if((i|0)>=(j|0))fa();v=A+12|0;u=A+8|0;z=A;f=c[(b&p)+40>>2]|0;a:do if(!f){h=b+96|0;g=c[(h&p)>>2]|0;if((g|0)>(e|0)){f=(d|0)==1;e=(f&1^1)+e|0;if((e|0)<(g|0)){d=b+92|0;g=e;do{ei(c[((c[(d&p)>>2]|0)+(g*48|0)&p)+16>>2]|0);g=g+1|0}while((g|0)<(c[(h&p)>>2]|0))}c[(h&p)>>2]=e;if(f){if(e){f=0;break}f=c[(b&p)+68>>2]|0;g=c[(f&p)>>2]|0;if(!g){f=0;break}if((g|0)==14696)f=Gi(f,0,0)|0;else f=0;c[(b&p)+52>>2]=0;break}t=b+208|0;if((c[(t&p)>>2]|0)==0?(c[(c[(b&p)+64>>2]&p)>>2]|0)==0:0){f=0;break}if(!e)w=0;else w=(c[(b&p)+92>>2]|0)+((e+-1|0)*48|0)|0;s=(w|0)!=0;f=w+20|0;if(s){d=c[(f&p)>>2]|0;g=qg(512,0)|0;if(!g){f=7;break}fw(g|0,0,512)|0;c[(g&p)>>2]=d;y=g}else y=0;h=b+28|0;e=b+24|0;c[(e&p)>>2]=c[((s?f:h)&p)>>2];a[(b&n)+18>>0]=a[(b&n)+12>>0]|0;b:do if(s){h=b+72|0;e=h;k=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;if(!(c[(t&p)>>2]|0)){g=w+8|0;l=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;d=(l|0)==0&(g|0)==0;l=d?k:l;g=d?e:g;d=w;f=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;q=h;c[(q&p)>>2]=f;c[(q&p)+4>>2]=d;if((d|0)<(g|0)|(d|0)==(g|0)&f>>>0<l>>>0)while(1){f=wq(b,h,y,1,1)|0;if(f){o=k;m=e;break b}d=h;f=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;if(!((d|0)<(g|0)|(d|0)==(g|0)&f>>>0<l>>>0)){x=39;break}}else x=39}else x=38}else{r=c[(t&p)>>2]|0;if(!r){h=b+72|0;e=h;k=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;x=38;break}c[(e&p)>>2]=c[(h&p)>>2];if(a[(r&n)+44>>0]|0){k=r+68|0;m=c[(k&p)>>2]|0;l=r+32|0;e=c[(l&p)>>2]|0;g=r+52|0;f=(c[(e&p)>>2]|0)+0|0;d=g+48|0;do{a[(g&n)>>0]=a[(f&n)>>0]|0;g=g+1|0;f=f+1|0}while((g|0)<(d|0));g=c[(k&p)>>2]|0;f=g+1|0;if(f>>>0>m>>>0)f=0;else{h=f;while(1){g=g+34|0;f=g>>>12;if(!f)g=(c[(e&p)>>2]|0)+(g<<2)|0;else g=(c[(e+(f<<2)&p)>>2]|0)+((g&4095)<<2)|0;f=Bq(b,c[(g&p)>>2]|0)|0;g=h+1|0;if((f|0)!=0|g>>>0>m>>>0)break;q=h;e=c[(l&p)>>2]|0;h=g;g=q}g=c[(k&p)>>2]|0}if((m|0)!=(g|0))Aq(r)}else f=0;g=vl(c[(b&p)+204>>2]|0)|0;if(!((g|0)!=0&(f|0)==0))break a;while(1){f=g;g=c[(g&p)+12>>2]|0;f=Bq(b,c[(f&p)+20>>2]|0)|0;if(!((g|0)!=0&(f|0)==0))break a}}while(0);if((x|0)==38){d=h;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;d=0;f=0;x=39}c:do if((x|0)==39){o=b+80|0;q=b+148|0;r=b+152|0;if((d|0)<(e|0)|(d|0)==(e|0)&f>>>0<k>>>0)while(1){c[(v&p)>>2]=0;f=vq(b,0,k,e,v,u)|0;d=c[(v&p)>>2]|0;if(!d){d=o;d=jw(c[(q&p)>>2]|0,0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0)|0;g=G;m=h;if((d|0)==(c[(m&p)>>2]|0)?(g|0)==(c[(m&p)+4>>2]|0):0){x=dw(k|0,e|0,d|0,g|0)|0;d=(c[(r&p)>>2]|0)+8|0;d=qw(x|0,G|0,d|0,((d|0)<0)<<31>>31|0)|0;c[(v&p)>>2]=d;x=46}else x=40}else x=46;d:do if((x|0)==46){x=0;if((f|0)==0&(d|0)!=0){m=0;while(1){g=h;l=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;if(!((g|0)<(e|0)|(g|0)==(e|0)&l>>>0<k>>>0)){d=l;break d}f=wq(b,h,y,1,1)|0;m=m+1|0;if(!((f|0)==0&m>>>0<d>>>0)){x=40;break}}}else x=40}while(0);if((x|0)==40){x=0;if(f){o=k;m=e;break c}d=h;g=c[(d&p)+4>>2]|0;d=c[(d&p)>>2]|0}if(!((g|0)<(e|0)|(g|0)==(e|0)&d>>>0<k>>>0)){o=k;m=e;f=0;break}}else{o=k;m=e;f=0}}while(0);e:do if(!s){ei(y);if(f)break a}else{l=w+24|0;g=c[(l&p)>>2]|0;q=(c[(b&p)+152>>2]|0)+4|0;q=sw(q|0,((q|0)<0)<<31>>31|0,g|0,0)|0;k=z;c[(k&p)>>2]=q;c[(k&p)+4>>2]=G;k=c[(t&p)>>2]|0;if(!k){if(!f)x=57}else{e=w+28|0;d=w+40|0;f=k+104|0;if((c[(d&p)>>2]|0)==(c[(f&p)>>2]|0))d=c[(e&p)>>2]|0;else{c[(e&p)>>2]=0;c[(d&p)>>2]=c[(f&p)>>2];d=0}e=k+68|0;if(d>>>0<(c[(e&p)>>2]|0)>>>0){c[(e&p)>>2]=d;c[(k&p)+76>>2]=c[(w&p)+32>>2];c[(k&p)+80>>2]=c[(w&p)+36>>2];Aq(k);g=c[(l&p)>>2]|0;x=57}else x=57}f:do if((x|0)==57){d=b+52|0;while(1){if(g>>>0>=(c[(d&p)>>2]|0)>>>0)break;f=wq(b,z,y,0,1)|0;if(!f)g=g+1|0;else break f}ei(y);break e}while(0);ei(y);break a}while(0);f=h;c[(f&p)>>2]=o;c[(f&p)+4>>2]=m;f=0}else f=0}while(0);i=A;return f|0}function kp(d){d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=c[(d&p)>>2]|0;if(e){i=c[(d&p)+4>>2]|0;c[((c[(e&p)+4>>2]|0)&p)+4>>2]=c[(e&p)>>2];g=d+56|0;Wc(c[(g&p)>>2]|0);c[(g&p)>>2]=0;a[(d&n)+73>>0]=0;g=c[(d&p)+12>>2]|0;f=d+8|0;e=c[(f&p)>>2]|0;if(!g)c[(i&p)+8>>2]=e;else{c[(g&p)+8>>2]=e;e=c[(f&p)>>2]|0}if(e)c[(e&p)+12>>2]=g;h=d+76|0;e=b[(h&o)>>1]|0;if(e<<16>>16>=0){f=0;while(1){g=c[(d+(f<<2)&p)+120>>2]|0;if(g){Bg(c[(g&p)+68>>2]|0);e=b[(h&o)>>1]|0}if((f|0)<(e<<16>>16|0))f=f+1|0;else break}}if((a[(i&n)+20>>0]|0)==0?(j=i+12|0,k=c[(j&p)>>2]|0,(k|0)!=0):0){c[(j&p)>>2]=0;Bg(c[(k&p)+68>>2]|0)}Wc(c[(d&p)+20>>2]|0)}return}function lp(b){b=b|0;var e=0,f=0,g=0,h=0;h=c[(b&p)+200>>2]|0;e=c[3164]|0;if(e)nc[e&3]();f=c[(b&p)+136>>2]|0;if(f)do{e=f;f=c[(f&p)+12>>2]|0;Wc(e)}while((f|0)!=0);a[(b&n)+4>>0]=0;e=b+208|0;rn(c[(e&p)>>2]|0,d[(b&n)+9>>0]|0,c[(b&p)+152>>2]|0,h)|0;c[(e&p)>>2]=0;xn(b);if(!(a[(b&n)+15>>0]|0)){if((c[(c[(b&p)+64>>2]&p)>>2]|0)!=0?(g=Jo(b)|0,e=g&255,(e|0)==10|(e|0)==13):0){c[(b&p)+40>>2]=g;a[(b&n)+16>>0]=6}nl(b)}else No(b);e=c[3166]|0;if(e)nc[e&3]();e=c[(b&p)+64>>2]|0;f=c[(e&p)>>2]|0;if(f){lc[c[(f&p)+4>>2]&127](e)|0;c[(e&p)>>2]=0}f=c[(b&p)+60>>2]|0;e=c[(f&p)>>2]|0;if(e){lc[c[(e&p)+4>>2]&127](f)|0;c[(f&p)>>2]=0}$k(h);cc[c[8892>>2]&31](c[((c[(b&p)+204>>2]|0)&p)+40>>2]|0);Wc(b);return}function mp(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=c[(a&p)+4>>2]|0;h=qg(g,((g|0)<0)<<31>>31)|0;do if(h){fw(h|0,0,g|0)|0;g=tc[c[(a&p)+24>>2]&31](a,b,h,e&556927,f)|0;if(!g){c[(d&p)>>2]=h;g=0;break}else{Wc(h);break}}else g=7;while(0);return g|0}function np(b){b=b|0;var d=0,e=0,f=0;d=b+16|0;e=b+12|0;f=b+10|0;if(!(Tl(c[(d&p)>>2]|0,b,c[(e&p)>>2]|0,a[(f&n)>>0]|0)|0))d=0;else{d=(Ul(c[(d&p)>>2]|0,b,c[(e&p)>>2]|0,a[(f&n)>>0]|0)|0)==0;d=d?4:8}return d|0}function op(d){d=d|0;var f=0,g=0;g=d+8|0;f=b[(g&o)>>1]|0;do if(!(f&13))if(!(Ul(c[(d&p)+16>>2]|0,d,c[(d&p)+12>>2]|0,a[(d&n)+10>>0]|0)|0)){f=((e[(g&o)>>1]|0)&48640|4)&65535;b[(g&o)>>1]=f;break}else{h[(d&q)>>3]=+Ug(d);b[(g&o)>>1]=(e[(g&o)>>1]|0)&48640|8;dm(d);f=b[(g&o)>>1]|0;break}while(0);b[(g&o)>>1]=f&65517;return}function pp(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+80|0;if((i|0)>=(j|0))fa();u=w+40|0;v=w;h=f+4|0;if((a[(d&n)+10>>0]|0)!=(a[(h&n)>>0]|0)){t=c[(d&p)+32>>2]|0;q=u+8|0;b[(q&o)>>1]=1;c[(u&p)+32>>2]=t;r=u+24|0;c[(r&p)>>2]=0;s=v+8|0;b[(s&o)>>1]=1;c[(v&p)+32>>2]=t;t=v+24|0;c[(t&p)>>2]=0;Zl(u,d,4096);Zl(v,e,4096);d=Sg(u,a[(h&n)>>0]|0)|0;m=(d|0)==0;if(m)l=0;else l=c[(u&p)+12>>2]|0;h=Sg(v,a[(h&n)>>0]|0)|0;k=(h|0)==0;if(k)e=0;else e=c[(v&p)+12>>2]|0;d=tc[c[(f&p)+12>>2]&31](c[(f&p)+8>>2]|0,l,d,e,h)|0;if(!((b[(q&o)>>1]&9312)==0&(c[(r&p)>>2]|0)==0))Qg(u);if(!((b[(s&o)>>1]&9312)==0&(c[(t&p)>>2]|0)==0))Qg(v);if((m|k)&(g|0)!=0)a[(g&n)>>0]=7}else d=tc[c[(f&p)+12>>2]&31](c[(f&p)+8>>2]|0,c[(d&p)+12>>2]|0,c[(d&p)+16>>2]|0,c[(e&p)+12>>2]|0,c[(e&p)+16>>2]|0)|0;i=w;return d|0}function qp(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[(a&p)+12>>2]|0;d=c[(b&p)+12>>2]|0;a=Zv(c[(a&p)+16>>2]|0,c[(b&p)+16>>2]|0,(e|0)>(d|0)?d:e)|0;return ((a|0)==0?e-d|0:a)|0}function rp(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();q=r;do if(!(a[(f&n)+3>>0]|0)){if(a[(f&n)+4>>0]|0){b[(h&o)+20>>1]=((sp(g+4|0,h)|0)&255)+4;l=h+8|0;c[(l&p)>>2]=0;c[(l&p)+4>>2]=0;c[(l&p)+8>>2]=0;break}m=d[(f&n)+7>>0]|0;l=g+m|0;k=a[(l&n)>>0]|0;if(k<<24>>24>-1){l=k&255;c[(q&p)>>2]=l;k=1}else{k=mm(l,q)|0;l=c[(q&p)>>2]|0}q=h;c[(q&p)>>2]=l;c[(q&p)+4>>2]=0;m=(k&255)+m|0;k=12}else{k=a[(g&n)>>0]|0;if(k<<24>>24>-1){l=k&255;c[(q&p)>>2]=l;k=1}else{k=mm(g,q)|0;l=c[(q&p)>>2]|0}m=k&255;m=((sp(g+m|0,h)|0)&255)+m|0;k=12}while(0);do if((k|0)==12){c[(h&p)+12>>2]=l;c[(h&p)+8>>2]=g+m;k=e[(f&o)+10>>1]|0;if(l>>>0>k>>>0){q=b[(f&o)+12>>1]|0;g=q&65535;l=(((l-g|0)>>>0)%(((c[((c[(f&p)+52>>2]|0)&p)+36>>2]|0)+-4|0)>>>0)|0)+g|0;k=(l|0)>(k|0)?q:l&65535;b[(h&o)+16>>1]=k;k=m+(k&65535)|0;b[(h&o)+18>>1]=k;b[(h&o)+20>>1]=k+4;break}else{k=l+m|0;b[(h&o)+20>>1]=(k&65532)>>>0<4?4:k&65535;b[(h&o)+16>>1]=l;b[(h&o)+18>>1]=0;break}}while(0);i=r;return}function sp(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=a[(b&n)>>0]|0;g=f&255;do if(g&128){f=d[(b&n)+1>>0]|0;if(!(f&128)){h=e;c[(h&p)>>2]=f|g<<7&16256;c[(h&p)+4>>2]=0;f=2;break}h=d[(b&n)+2>>0]|0;g=(h|g<<14)&2080895;if(!(h&128)){h=e;c[(h&p)>>2]=g|f<<7&16256;c[(h&p)+4>>2]=0;f=3;break}h=d[(b&n)+3>>0]|0;f=(h|f<<14)&2080895;if(!(h&128)){h=e;c[(h&p)>>2]=f|g<<7;c[(h&p)+4>>2]=0;f=4;break}k=d[(b&n)+4>>0]|0;h=k|g<<14;if(!(k&128)){i=e;c[(i&p)>>2]=h|f<<7;c[(i&p)+4>>2]=g>>>18;f=5;break}j=f|g<<7;g=d[(b&n)+5>>0]|0;i=g|f<<14;if(!(g&128)){f=e;c[(f&p)>>2]=i|h<<7&266354560;c[(f&p)+4>>2]=j>>>18;f=6;break}f=d[(b&n)+6>>0]|0;g=f|h<<14;if(!(f&128)){f=e;c[(f&p)>>2]=g&-266354561|i<<7&266354560;c[(f&p)+4>>2]=j>>>11;f=7;break}f=g&2080895;h=d[(b&n)+7>>0]|0;g=h|i<<14;if(!(h&128)){h=e;c[(h&p)>>2]=g&-266354561|f<<7;c[(h&p)+4>>2]=j>>>4;f=8;break}else{h=e;c[(h&p)>>2]=g<<8&532709120|f<<15|(d[(b&n)+8>>0]|0);c[(h&p)+4>>2]=k>>>3&15|j<<4;f=9;break}}else{g=e;c[(g&p)>>2]=f&255;c[(g&p)+4>>2]=0;f=1}while(0);return f|0}function tp(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,l=0,m=0,r=0,s=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();l=r+8|0;m=r;g=(d[(a&n)+1>>0]|0)<<16|(d[(a&n)>>0]|0)<<24|(d[(a&n)+2>>0]|0)<<8|(d[(a&n)+3>>0]|0);a=(d[(a&n)+5>>0]|0)<<16|(d[(a&n)+4>>0]|0)<<24|(d[(a&n)+6>>0]|0)<<8|(d[(a&n)+7>>0]|0);s=f;c[(s&p)>>2]=a;c[(s&p)+4>>2]=g;if((e|0)==6)a=4;else{c[(k&p)>>2]=a;c[(k&p)+4>>2]=g;h[(l&q)>>3]=+h[(k&q)>>3];h[(m&q)>>3]=+h[(l&q)>>3];a=+h[(l&q)>>3]!=+h[(m&q)>>3]?1:8}b[(f&o)+8>>1]=a;i=r;return}function up(b,c,e){b=b|0;c=c|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;if(!(e>>>0>16777215|(e|0)==16777215&c>>>0>4294967295)){f=c;g=0;while(1){c=g+1|0;a[(h+g&n)>>0]=f|128;f=mw(f|0,e|0,7)|0;e=G;if((f|0)==0&(e|0)==0){e=g;break}else g=c}a[(h&n)>>0]=(d[(h&n)>>0]|0)&127;if((e|0)>-1){f=0;while(1){a[(b+f&n)>>0]=a[(h+e&n)>>0]|0;if((e|0)>0){f=f+1|0;e=e+-1|0}else break}}}else{a[(b&n)+8>>0]=c;c=mw(c|0,e|0,8)|0;f=G;e=7;while(1){a[(b+e&n)>>0]=c|128;c=mw(c|0,f|0,7)|0;if((e|0)<=0){c=9;break}else{f=G;e=e+-1|0}}}i=k;return c|0}function vp(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;if((c[(b&p)+44>>2]|0)>>>0>=d>>>0){f=dl(b,d,e,f)|0;if(!f){f=c[(e&p)>>2]|0;if((a[(f&n)>>0]|0)==0?(g=$p(f)|0,(g|0)!=0):0){f=c[(e&p)>>2]|0;if(f)Bg(c[(f&p)+68>>2]|0)}else g=0}else g=f}else{c[(h&p)>>2]=54788;c[(h&p)+4>>2]=10788;bd(11,13600,h);g=11}i=k;return g|0}function wp(b){b=b|0;var d=0,e=0,f=0;if((a[(b&n)+12>>0]|0)==0?(d=b+60|0,e=c[(d&p)>>2]|0,((lc[c[((c[(e&p)>>2]|0)&p)+48>>2]&127](e)|0)&4096|0)==0):0){d=c[(d&p)>>2]|0;e=c[((c[(d&p)>>2]|0)&p)+44>>2]|0;if(e){d=lc[e&127](d)|0;if((d|0)<32)d=512;else f=6}else{d=4096;f=6}if((f|0)==6)d=(d|0)>65536?65536:d;c[(b&p)+148>>2]=d}else c[(b&p)+148>>2]=512;return}function xp(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;j=d+40|0;do if(!(c[(j&p)>>2]|0)){i=a[(d&n)+20>>0]|0;if(i<<24>>24){if(i&3){f=0;break}if(b[(e&o)+24>>1]&4){f=0;break}}c[(e&p)+12>>2]=0;do if(!(c[(d&p)+208>>2]|0)){if(!((b[(e&o)+24>>1]&4)==0?(a[(d&n)+16>>0]|0)!=3:0))k=11;if((k|0)==11?(g=zl(d,1)|0,(g|0)!=0):0){f=g;break}if(((c[(e&p)+20>>2]|0)>>>0>(c[(d&p)+24>>2]|0)>>>0?(Uo(e)|0)!=0:0)?(h=Vo(e)|0,(h|0)!=0):0){f=h;break}f=Al(d,e)|0;k=16}else{if((Uo(e)|0)!=0?(f=Vo(e)|0,(f|0)!=0):0)break;f=wl(d,e,0,0)|0;k=16}while(0);if((k|0)==16)if(!f){xl(e);f=0;break}g=f&255;if((g|0)==10|(g|0)==13){c[(j&p)>>2]=f;a[(d&n)+16>>0]=6}}else f=0;while(0);return f|0}function yp(d){d=d|0;var e=0;e=c[(d&p)+8>>2]|0;if((a[(e&n)>>0]|0)!=0?(a[(e&n)>>0]=0,(b[(d&o)+26>>1]|0)>1):0)$p(e)|0;return}function zp(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,o=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();o=q;m=q+8|0;do if(!(c[(h&p)>>2]|0)){if(!e){c[(o&p)>>2]=53856;c[(o&p)+4>>2]=10788;bd(11,13600,o);c[(h&p)>>2]=11;break}if(e>>>0<2)k=0;else{k=e+-2|0;k=k-((k>>>0)%(((((c[(b&p)+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(((c[2514]|0)>>>0)/((c[(b&p)+32>>2]|0)>>>0)|0|0)?3:2)+k|0}l=zg(c[(b&p)>>2]|0,k,m,0)|0;if(l){c[(h&p)>>2]=l;break}e=(e-k|0)*5|0;l=e+-5|0;do if((l|0)>=0){k=c[(m&p)>>2]|0;b=c[(k&p)+4>>2]|0;l=b+l|0;if((a[(l&n)>>0]|0)==f<<24>>24?(d[(b+e+-3&n)>>0]<<16|d[(b+e+-4&n)>>0]<<24|d[(b+e+-2&n)>>0]<<8|d[(b+e+-1&n)>>0]|0)==(g|0):0)break;m=Gg(k)|0;c[(h&p)>>2]=m;if(!m){a[(l&n)>>0]=f;a[(b+e+-4&n)>>0]=g>>>24;a[(b+e+-3&n)>>0]=g>>>16;a[(b+e+-2&n)>>0]=g>>>8;a[(b+e+-1&n)>>0]=g}}else{c[(o&p)>>2]=53867;c[(o&p)+4>>2]=10788;bd(11,13600,o);c[(h&p)>>2]=11;k=c[(m&p)>>2]|0}while(0);if(k)Bg(k)}while(0);i=q;return}function Ap(a,b,c){a=a|0;b=b|0;c=c|0;return Km(a,b,c,0)|0}function Bp(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;j=d[(f&n)>>0]&63;h=f+j|0;l=c[(g&p)+8>>2]|0;k=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;switch(d[(f&n)+1>>0]|0){case 3:{h=d[(f+j&n)+1>>0]<<8|a[(h&n)>>0]<<16|d[(f+j&n)+2>>0];i=((h|0)<0)<<31>>31;m=11;break}case 4:{h=d[(f+j&n)+1>>0]<<16|d[(h&n)>>0]<<24|d[(f+j&n)+2>>0]<<8|d[(f+j&n)+3>>0];i=((h|0)<0)<<31>>31;m=11;break}case 8:{i=0;h=0;m=11;break}case 5:{i=a[(h&n)>>0]<<8|d[(f+j&n)+1>>0];h=d[(f+j&n)+3>>0]<<16|d[(f+j&n)+2>>0]<<24|d[(f+j&n)+4>>0]<<8|d[(f+j&n)+5>>0];m=11;break}case 7:case 0:{h=Km(b,f,g,0)|0;break}case 6:{i=d[(f+j&n)+1>>0]<<16|d[(h&n)>>0]<<24|d[(f+j&n)+2>>0]<<8|d[(f+j&n)+3>>0];h=d[(f+j&n)+5>>0]<<16|d[(f+j&n)+4>>0]<<24|d[(f+j&n)+6>>0]<<8|d[(f+j&n)+7>>0];m=11;break}case 9:{i=0;h=1;m=11;break}case 2:{h=a[(h&n)>>0]<<8|d[(f+j&n)+1>>0];i=((h|0)<0)<<31>>31;m=11;break}case 1:{h=a[(h&n)>>0]|0;i=((h|0)<0)<<31>>31;m=11;break}default:h=Km(b,f,g,0)|0}do if((m|0)==11){if((l|0)>(i|0)|(l|0)==(i|0)&k>>>0>h>>>0){h=c[(g&p)+12>>2]|0;break}if((l|0)<(i|0)|(l|0)==(i|0)&k>>>0<h>>>0){h=c[(g&p)+16>>2]|0;break}if((e[(g&o)+4>>1]|0)>1){h=Km(b,f,g,1)|0;break}else{h=a[(g&n)+6>>0]|0;break}}while(0);return h|0}function Cp(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();q=r;l=r+8|0;h=f+1|0;k=a[(h&n)>>0]|0;if(k<<24>>24>-1){h=k&255;c[(l&p)>>2]=h}else{mm(h,l)|0;h=c[(l&p)>>2]|0}do if((h|0)>=12){if(!(h&1)){h=c[(g&p)+16>>2]|0;break}l=d[(f&n)>>0]|0;m=(h+-12|0)/2|0;if((l+m|0)>(b|0)){c[(q&p)>>2]=68550;c[(q&p)+4>>2]=10788;bd(11,13600,q);a[(g&n)+7>>0]=11;h=0;break}h=c[(g&p)+8>>2]|0;k=c[(h&p)+12>>2]|0;h=Zv(f+l|0,c[(h&p)+16>>2]|0,(m|0)>(k|0)?k:m)|0;if(h)if((h|0)>0){h=c[(g&p)+16>>2]|0;break}else{h=c[(g&p)+12>>2]|0;break}if((m|0)==(k|0))if((e[(g&o)+4>>1]|0)>1){h=Km(b,f,g,1)|0;break}else{h=a[(g&n)+6>>0]|0;break}else if((m-k|0)>0){h=c[(g&p)+16>>2]|0;break}else{h=c[(g&p)+12>>2]|0;break}}else h=c[(g&p)+12>>2]|0;while(0);i=r;return h|0}function Dp(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0;m=f+73|0;h=a[(m&n)>>0]|0;do if(h<<24>>24!=1){if((h&255)>2){h=Kn(f)|0;if(h)break;h=a[(m&n)>>0]|0}if(!(h<<24>>24)){c[(g&p)>>2]=1;h=0;break}h=f+68|0;i=c[(h&p)>>2]|0;if((i|0)!=0?(a[(m&n)>>0]=1,c[(h&p)>>2]=0,(i|0)>0):0)h=0;else q=9}else q=9;while(0);do if((q|0)==9){l=f+76|0;h=b[(l&o)>>1]|0;i=c[(f+(h<<2)&p)+120>>2]|0;h=f+(h<<1)+78|0;j=(b[(h&o)>>1]|0)+1<<16>>16;b[(h&o)>>1]=j;h=(a[(i&n)+5>>0]|0)!=0;if((j&65535)<(e[(i&o)+18>>1]|0)){if(h){h=0;break}h=Vm(f)|0;break}if(!h){h=d[(i&n)+6>>0]|0;i=c[(i&p)+56>>2]|0;h=rm(f,d[(i+h&n)+9>>0]<<16|d[(i+h&n)+8>>0]<<24|d[(i+h&n)+10>>0]<<8|d[(i+h&n)+11>>0])|0;if(h)break;h=Vm(f)|0;break}j=f+44|0;k=f+72|0;i=b[(l&o)>>1]|0;do{if(!(i<<16>>16)){q=15;break}h=c[(f+(i<<16>>16<<2)&p)+120>>2]|0;if(h){Bg(c[(h&p)+68>>2]|0);i=b[(l&o)>>1]|0}i=i+-1<<16>>16;b[(l&o)>>1]=i;b[(j&o)>>1]=0;a[(k&n)>>0]=d[(k&n)>>0]&249;r=i<<16>>16;h=c[(f+(r<<2)&p)+120>>2]|0}while((e[(f+(r<<1)&o)+78>>1]|0)>=(e[(h&o)+18>>1]|0));if((q|0)==15){c[(g&p)>>2]=1;a[(m&n)>>0]=0;h=0;break}if(!(a[(h&n)+2>>0]|0))h=0;else h=Dm(f,g)|0}while(0);return h|0}function Ep(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0;s=f+73|0;h=a[(s&n)>>0]|0;do if(h<<24>>24!=1){if((h&255)>2){h=Kn(f)|0;if(h)break;h=a[(s&n)>>0]|0}if(!(h<<24>>24)){c[(g&p)>>2]=1;h=0;break}h=f+68|0;i=c[(h&p)>>2]|0;if((i|0)!=0?(a[(s&n)>>0]=1,c[(h&p)>>2]=0,(i|0)<0):0)h=0;else j=9}else j=9;while(0);a:do if((j|0)==9){r=f+76|0;k=b[(r&o)>>1]|0;l=k<<16>>16;j=c[(f+(l<<2)&p)+120>>2]|0;i=f+(l<<1)+78|0;h=b[(i&o)>>1]|0;if(!(a[(j&n)+5>>0]|0)){g=c[(j&p)+56>>2]|0;h=(h&65535)<<1;s=c[(j&p)+64>>2]|0;h=(d[(s+h&n)>>0]<<8|d[(s+(h|1)&n)>>0])&e[(j&o)+20>>1];h=rm(f,d[(g+h&n)+1>>0]<<16|d[(g+h&n)>>0]<<24|d[(g+h&n)+2>>0]<<8|d[(g+h&n)+3>>0])|0;if(h)break;h=Fp(f)|0;break}b:do if(!(h<<16>>16)){m=f+44|0;q=f+72|0;j=l;while(1){if(!(k<<16>>16))break;i=c[(f+(j<<2)&p)+120>>2]|0;if(!i)i=k;else{Bg(c[(i&p)+68>>2]|0);i=b[(r&o)>>1]|0}k=i+-1<<16>>16;b[(r&o)>>1]=k;b[(m&o)>>1]=0;a[(q&n)>>0]=d[(q&n)>>0]&249;j=k<<16>>16;i=f+(j<<1)+78|0;h=b[(i&o)>>1]|0;if(h<<16>>16)break b}a[(s&n)>>0]=0;c[(g&p)>>2]=1;h=0;break a}while(0);b[(i&o)>>1]=h+-1<<16>>16;s=c[(f+(b[(r&o)>>1]<<2)&p)+120>>2]|0;if((a[(s&n)+2>>0]|0)!=0?(a[(s&n)+5>>0]|0)==0:0)h=Em(f,g)|0;else h=0}while(0);return h|0}function Fp(f){f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;i=f+76|0;do{h=b[(i&o)>>1]|0;g=c[(f+(h<<2)&p)+120>>2]|0;if(a[(g&n)+5>>0]|0){j=4;break}k=d[(g&n)+6>>0]|0;l=c[(g&p)+56>>2]|0;k=d[(l+k&n)+9>>0]<<16|d[(l+k&n)+8>>0]<<24|d[(l+k&n)+10>>0]<<8|d[(l+k&n)+11>>0];b[(f+(h<<1)&o)+78>>1]=b[(g&o)+18>>1]|0;g=rm(f,k)|0}while((g|0)==0);if((j|0)==4){b[(f+(h<<1)&o)+78>>1]=(e[(g&o)+18>>1]|0)+65535;g=0}return g|0}function Gp(a,d,e,f,g,h){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,q=0;q=i;i=i+224|0;if((i|0)>=(j|0))fa();m=q;k=q+8|0;c[(k&p)>>2]=0;do if(d){l=a+16|0;n=Fm(c[(l&p)>>2]|0,q+16|0,200,k)|0;if(n){Gm(c[(l&p)>>2]|0,e,d,n);if(!(b[(n&o)+4>>1]|0)){mg(c[((c[(l&p)>>2]|0)&p)+12>>2]|0,c[(k&p)>>2]|0);c[(m&p)>>2]=53713;c[(m&p)+4>>2]=10788;bd(11,13600,m);k=11;break}l=c[(k&p)>>2]|0;k=Cm(a,n,e,f,g,h)|0;if(l)mg(c[((c[(a&p)+16>>2]|0)&p)+12>>2]|0,l)}else k=7}else k=Cm(a,0,e,f,g,h)|0;while(0);i=q;return k|0}function Hp(a,f,g){a=a|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+48|0;if((i|0)>=(j|0))fa();u=v+24|0;h=v;s=v+36|0;t=v+32|0;q=c[(a&p)+52>>2]|0;rp(a,f,h);b[(g&o)>>1]=b[(h&o)+20>>1]|0;g=b[(h&o)+18>>1]|0;a:do if(g<<16>>16){k=g&65535;l=f+(k+3)|0;if(l>>>0>((c[(a&p)+56>>2]|0)+(e[(a&o)+20>>1]|0)|0)>>>0){c[(u&p)>>2]=58720;c[(u&p)+4>>2]=10788;bd(11,13600,u);g=11;break}g=(c[(q&p)+36>>2]|0)+-4|0;g=(((c[(h&p)+12>>2]|0)+-1+g-(e[(h&o)+16>>1]|0)|0)>>>0)/(g>>>0)|0;if(g){m=q+44|0;a=g;k=d[(f+k&n)+1>>0]<<16|d[(f+k&n)>>0]<<24|d[(f+k&n)+2>>0]<<8|d[(l&n)>>0];while(1){a=a+-1|0;c[(s&p)>>2]=0;c[(t&p)>>2]=0;if(k>>>0<2)break;if(k>>>0>(c[(m&p)>>2]|0)>>>0)break;f=(a|0)==0;if(!f){g=Mp(q,k,t,s)|0;if(g)break a;g=c[(t&p)>>2]|0;if(g)l=13;else l=12}else l=12;if((l|0)==12){g=Yp(q,k)|0;c[(t&p)>>2]=g;if(!g){g=0;l=15}else l=13}if((l|0)==13){l=0;if((b[((c[(g&p)+68>>2]|0)&o)+26>>1]|0)==1)l=15;else{c[(u&p)>>2]=58754;c[(u&p)+4>>2]=10788;bd(11,13600,u);g=11}}if((l|0)==15)g=Ym(q,g,k)|0;h=c[(t&p)>>2]|0;if((h|0)!=0?(r=c[(h&p)+68>>2]|0,(r|0)!=0):0)Bg(r);if(g)break a;if(f){g=0;break a}else k=c[(s&p)>>2]|0}c[(u&p)>>2]=58734;c[(u&p)+4>>2]=10788;bd(11,13600,u);g=11}else g=0}else g=0;while(0);i=v;return g|0}function Ip(f,g,h,k){f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))fa();m=z;do if(!(c[(k&p)>>2]|0)){v=c[(f&p)+56>>2]|0;w=g<<1;x=c[(f&p)+64>>2]|0;y=x+w|0;l=(d[(y&n)>>0]|0)<<8|(d[(x+(w|1)&n)>>0]|0);q=f+6|0;r=d[(q&n)>>0]|0;s=v+(r+5)|0;t=v+(r+6)|0;if(l>>>0>=((d[(s&n)>>0]|0)<<8|(d[(t&n)>>0]|0))>>>0?(u=f+52|0,(l+h|0)>>>0<=(c[((c[(u&p)>>2]|0)&p)+36>>2]|0)>>>0):0){h=Cq(f,l&65535,h&65535)|0;if(h){c[(k&p)>>2]=h;break}h=f+18|0;l=(b[(h&o)>>1]|0)+-1<<16>>16;b[(h&o)>>1]=l;if(!(l<<16>>16)){k=v+(r+1)|0;a[(k&n)>>0]=0;a[(k&n)+1>>0]=0;a[(k&n)+2>>0]=0;a[(k&n)+3>>0]=0;a[(v+r&n)+7>>0]=0;a[(s&n)>>0]=(c[((c[(u&p)>>2]|0)&p)+36>>2]|0)>>>8;a[(t&n)>>0]=c[((c[(u&p)>>2]|0)&p)+36>>2];b[(f&o)+16>>1]=(c[((c[(u&p)>>2]|0)&p)+36>>2]|0)+65528-(d[(q&n)>>0]|0)-(d[(f&n)+7>>0]|0);break}else{lw(y|0,x+(w+2)|0,(l&65535)-g<<1|0)|0;a[(v+r&n)+3>>0]=(e[(h&o)>>1]|0)>>>8;a[(v+r&n)+4>>0]=b[(h&o)>>1];v=f+16|0;b[(v&o)>>1]=(e[(v&o)>>1]|0)+2;break}}c[(m&p)>>2]=58991;c[(m&p)+4>>2]=10788;bd(11,13600,m);c[(k&p)>>2]=11}while(0);i=z;return}function Jp(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;G=i;i=i+16|0;if((i|0)>=(j|0))fa();s=G;C=G+12|0;y=G+8|0;a:do if(!(c[(q&p)>>2]|0)){r=f+1|0;if((a[(r&n)>>0]|0)==0?(E=k+2|0,F=f+16|0,(E|0)<=(e[(F&o)>>1]|0)):0){l=Gg(c[(f&p)+68>>2]|0)|0;if(l){c[(q&p)>>2]=l;break}z=c[(f&p)+56>>2]|0;t=e[(f&o)+14>>1]|0;A=f+18|0;B=e[(A&o)>>1]<<1;v=g<<1;w=t+v|0;x=f+6|0;l=d[(x&n)>>0]|0;c[(C&p)>>2]=0;g=B+t|0;t=z+(l+5)|0;u=z+(l+6)|0;r=((d[(t&n)>>0]<<8|d[(u&n)>>0])+65535&65535)+1|0;b:do if((g|0)>(r|0)){c[(s&p)>>2]=54326;c[(s&p)+4>>2]=10788;bd(11,13600,s);l=11}else{s=g+2|0;do if((s|0)<=(r|0)){if((a[(z+l&n)+1>>0]|0)==0?(a[(z+l&n)+2>>0]|0)==0:0){D=20;break}c[(y&p)>>2]=0;g=Dq(f,k,C,y)|0;l=c[(C&p)>>2]|0;if(l)break b;if(!(c[(y&p)>>2]|0))if(!g)D=20;else r=g-z|0;else D=21}else D=20;while(0);if((D|0)==20)if((s+k|0)>(r|0))D=21;else D=23;if((D|0)==21){l=Eq(f)|0;c[(C&p)>>2]=l;if(l)break;r=((d[(t&n)>>0]<<8|d[(u&n)>>0])+65535&65535)+1|0;D=23}if((D|0)==23){r=r-k|0;a[(t&n)>>0]=r>>>8;a[(u&n)>>0]=r}b[(A&o)>>1]=(b[(A&o)>>1]|0)+1<<16>>16;b[(F&o)>>1]=(e[(F&o)>>1]|0)-E;l=z+r|0;kw(l|0,h|0,k|0)|0;if(m){a[(l&n)>>0]=m>>>24;a[(z+r&n)+1>>0]=m>>>16;a[(z+r&n)+2>>0]=m>>>8;a[(z+r&n)+3>>0]=m}m=z+w|0;lw(z+(w+2)|0,m|0,B-v|0)|0;a[(m&n)>>0]=r>>>8;a[(z+w&n)+1>>0]=r;a[(z+(d[(x&n)>>0]|0)&n)+3>>0]=(e[(A&o)>>1]|0)>>>8;a[(z+(d[(x&n)>>0]|0)&n)+4>>0]=b[(A&o)>>1];if(!(a[((c[(f&p)+52>>2]|0)&n)+17>>0]|0))break a;Fq(f,h,q);break a}while(0);c[(q&p)>>2]=l;break}if(!l)l=h;else kw(l|0,h|0,k|0)|0;if(m){a[(l&n)>>0]=m>>>24;a[(l&n)+1>>0]=m>>>16;a[(l&n)+2>>0]=m>>>8;a[(l&n)+3>>0]=m}q=a[(r&n)>>0]|0;a[(r&n)>>0]=q+1<<24>>24;q=q&255;c[(f+(q<<2)&p)+32>>2]=l;b[(f+(q<<1)&o)+22>>1]=g}while(0);i=G;return}function Kp(f){f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0;Ra=i;i=i+240|0;if((i|0)>=(j|0))fa();Qa=Ra+24|0;Na=Ra+200|0;Da=Ra+188|0;Ca=Ra+168|0;Ba=Ra+160|0;Ea=Ra+136|0;Fa=Ra+116|0;Pa=Ra+96|0;Ka=Ra+92|0;Aa=Ra+229|0;za=Ra+72|0;ya=Ra+52|0;xa=Ra+206|0;Ja=Ra+48|0;Ga=Ra;Ia=Ra+44|0;Ma=Ra+40|0;La=Ra+36|0;Ha=Ra+32|0;Oa=Ra+204|0;wa=Ra+216|0;ha=f+4|0;pa=(c[((c[(ha&p)>>2]|0)&p)+36>>2]<<1>>>0)/3|0;qa=f+76|0;ta=f+74|0;ua=wa+4|0;va=wa;ia=f+124|0;na=f+78|0;oa=f+80|0;l=b[(qa&o)>>1]|0;ga=0;while(1){m=l<<16>>16;q=c[(f+(m<<2)&p)+120>>2]|0;r=q+1|0;h=(a[(r&n)>>0]|0)==0;if(!(l<<16>>16)){if(h){h=ga;g=0;break}c[(Na&p)>>2]=0;c[(Da&p)>>2]=0;k=c[(q&p)+52>>2]|0;g=Gg(c[(q&p)+68>>2]|0)|0;c[(Qa&p)>>2]=g;do if(!g){h=q+72|0;c[(Qa&p)>>2]=ip(k,Na,Da,c[(h&p)>>2]|0,0)|0;l=c[(Na&p)>>2]|0;Gq(q,l,Qa);if(a[(k&n)+17>>0]|0)zp(k,c[(Da&p)>>2]|0,5,c[(h&p)>>2]|0,Qa);g=c[(Qa&p)>>2]|0;if(!g){kw(l+22|0,q+22|0,d[(r&n)>>0]<<1|0)|0;kw(l+32|0,q+32|0,d[(r&n)>>0]<<2|0)|0;a[(l&n)+1>>0]=a[(r&n)>>0]|0;pl(q,d[(c[(l&p)+56>>2]&n)>>0]&247);g=d[(q&n)+6>>0]|0;ca=c[(q&p)+56>>2]|0;ba=c[(Da&p)>>2]|0;a[(ca+g&n)+8>>0]=ba>>>24;a[(ca+g&n)+9>>0]=ba>>>16;a[(ca+g&n)+10>>0]=ba>>>8;a[(ca+g&n)+11>>0]=ba;c[(ia&p)>>2]=l;g=0;break}c[(ia&p)>>2]=0;if(l)Bg(c[(l&p)+68>>2]|0)}else c[(ia&p)>>2]=0;while(0);if(g){h=ga;break}b[(qa&o)>>1]=1;b[(na&o)>>1]=0;b[(oa&o)>>1]=0;l=c[(ia&p)>>2]|0;k=l+1|0;if(!(a[(k&n)>>0]|0)){h=1;m=1;ea=15}else{s=1;m=1;r=k}}else if(h){h=l;l=q;k=r;ea=15}else{s=l;l=q}if((ea|0)==15){ea=0;if((e[(l&o)+16>>1]|0)>>>0>pa>>>0){s=h;r=k}else{h=ga;g=0;break}}k=m+-1|0;da=c[(f+(k<<2)&p)+120>>2]|0;k=b[(f+(k<<1)&o)+78>>1]|0;t=k&65535;g=Gg(c[(da&p)+68>>2]|0)|0;do if(!g){if(((((a[(l&n)+3>>0]|0)!=0?(a[(r&n)>>0]|0)==1:0)?(ja=b[(l&o)+22>>1]|0,ka=l+18|0,ja<<16>>16==(b[(ka&o)>>1]|0)):0)?(la=da+72|0,(c[(la&p)>>2]|0)!=1):0)?(ma=da+18|0,(b[(ma&o)>>1]|0)==k<<16>>16):0){k=c[(l&p)+52>>2]|0;if(!(ja<<16>>16)){c[(Qa&p)>>2]=59423;c[(Qa&p)+4>>2]=10788;bd(11,13600,Qa);h=ga;g=11;break}ca=ip(k,Ia,La,0,0)|0;c[(Ma&p)>>2]=ca;if(!ca){h=c[(l&p)+32>>2]|0;c[(Ha&p)>>2]=h;g=Lp(l,h)|0;b[(Oa&o)>>1]=g;m=c[(Ia&p)>>2]|0;pl(m,13);Hq(m,1,Ha,Oa);b[(m&o)+16>>1]=65534-(g&65535)+(c[(k&p)+36>>2]|0)-(e[(m&o)+14>>1]|0);if((a[(k&n)+17>>0]|0)!=0?(zp(k,c[(La&p)>>2]|0,5,c[(la&p)>>2]|0,Ma),(g&65535)>(e[(m&o)+12>>1]|0)):0)Fq(m,h,Ma);ca=c[(l&p)+56>>2]|0;k=e[(ka&o)>>1]<<1;h=c[(l&p)+64>>2]|0;k=(d[(h+k+-2&n)>>0]<<8|d[(h+k+-1&n)>>0])&e[(l&o)+20>>1];h=ca+k|0;c[(Ha&p)>>2]=h;k=ca+(k+9)|0;while(1){g=h+1|0;if((a[(h&n)>>0]|0)<0&g>>>0<k>>>0)h=g;else break}c[(Ha&p)>>2]=g;k=h+10|0;m=ua;while(1){c[(Ha&p)>>2]=g+1;ca=a[(g&n)>>0]|0;h=m+1|0;a[(m&n)>>0]=ca;g=c[(Ha&p)>>2]|0;if(!(ca<<24>>24<0&g>>>0<k>>>0))break;else m=h}Jp(da,e[(ma&o)>>1]|0,wa,h-va|0,0,c[(l&p)+72>>2]|0,Ma);h=d[(da&n)+6>>0]|0;ca=c[(da&p)+56>>2]|0;ba=c[(La&p)>>2]|0;a[(ca+h&n)+8>>0]=ba>>>24;a[(ca+h&n)+9>>0]=ba>>>16;a[(ca+h&n)+10>>0]=ba>>>8;a[(ca+h&n)+11>>0]=ba;h=c[(Ia&p)>>2]|0;if(h)Bg(c[(h&p)+68>>2]|0)}h=ga;g=c[(Ma&p)>>2]|0;break}h=Go(c[((c[(ha&p)>>2]|0)&p)+32>>2]|0)|0;_=s<<16>>16==1;q=d[(ta&n)>>0]|0;N=q&1;c[(Na&p)>>2]=0;a[(Aa&n)>>0]=0;a[(Aa&n)+1>>0]=0;a[(Aa&n)+2>>0]=0;a[(Aa&n)+3>>0]=0;a[(Aa&n)+4>>0]=0;aa=c[(da&p)+52>>2]|0;if(!h)g=7;else{E=da+1|0;s=d[(E&n)>>0]|0;$=da+18|0;g=e[($&o)>>1]|0;m=g+s|0;if((m|0)<2){ba=m;W=0}else{do if(k<<16>>16)if((m|0)==(t|0)){q=(q|-2)+t|0;break}else{q=t+-1|0;break}else q=0;while(0);ba=2-N|0;W=q}ca=ba+1|0;q=W-s+ba|0;D=da+56|0;s=c[(D&p)>>2]|0;if((q|0)==(g|0))t=(d[(da&n)+6>>0]|0)+8|0;else{t=q<<1;Z=c[(da&p)+64>>2]|0;t=(d[(Z+t&n)>>0]<<8|d[(Z+(t|1)&n)>>0])&e[(da&o)+20>>1]}T=s+t|0;R=s+(t+1)|0;S=s+(t+2)|0;G=s+(t+3)|0;Z=d[(R&n)>>0]<<16|d[(T&n)>>0]<<24|d[(S&n)>>0]<<8|d[(G&n)>>0];c[(Ka&p)>>2]=Z;t=Da+(ba<<2)|0;Z=vp(aa,Z,t,0)|0;c[(Na&p)>>2]=Z;a:do if(!Z){w=da+22|0;z=da+32|0;A=da+20|0;B=da+64|0;C=aa+22|0;Q=aa+36|0;x=ba;s=0;while(1){k=c[(t&p)>>2]|0;s=s+1+(e[(k&o)+18>>1]|0)+(d[(k&n)+1>>0]|0)|0;k=x+-1|0;if(!x)break;y=k+W|0;t=a[(E&n)>>0]|0;if((y|0)==(e[(w&o)>>1]|0))if(!(t<<24>>24)){t=0;ea=52}else{Z=c[(z&p)>>2]|0;c[(Ba+(k<<2)&p)>>2]=Z;q=d[(Z&n)+1>>0]<<16|d[(Z&n)>>0]<<24|d[(Z&n)+2>>0]<<8|d[(Z&n)+3>>0];c[(Ka&p)>>2]=q;c[(Pa+(k<<2)&p)>>2]=(Lp(da,Z)|0)&65535;a[(E&n)>>0]=0}else ea=52;if((ea|0)==52){ea=0;q=c[(D&p)>>2]|0;u=y-(t&255)<<1;m=c[(B&p)>>2]|0;u=(d[(m+u&n)>>0]<<8|d[(m+(u|1)&n)>>0])&e[(A&o)>>1];m=q+u|0;g=Ba+(k<<2)|0;c[(g&p)>>2]=m;q=d[(q+u&n)+1>>0]<<16|d[(m&n)>>0]<<24|d[(q+u&n)+2>>0]<<8|d[(q+u&n)+3>>0];c[(Ka&p)>>2]=q;v=(Lp(da,m)|0)&65535;c[(Pa+(k<<2)&p)>>2]=v;if(b[(C&o)>>1]&4){if((v+u|0)>(c[(Q&p)>>2]|0)){k=x;ea=54;break}kw(h+u|0,m|0,v|0)|0;c[(g&p)>>2]=h+(m-(c[(D&p)>>2]|0));t=a[(E&n)>>0]|0}Ip(da,y-(t&255)|0,v,Na)}t=Da+(k<<2)|0;Z=vp(aa,q,t,0)|0;c[(Na&p)>>2]=Z;if(Z){ea=47;break a}else x=k}if((ea|0)==54){ea=0;c[(Qa&p)>>2]=59766;c[(Qa&p)+4>>2]=10788;bd(11,13600,Qa);c[(Na&p)>>2]=11;fw(Da|0,0,k<<2|0)|0;m=0;q=0;break}t=s+3&-4;Z=gi((c[(aa&p)+32>>2]|0)+(t*6|0)|0)|0;if(!Z){c[(Na&p)>>2]=7;m=Z;q=0;break}X=Z+(t<<2)|0;J=X+(t<<1)|0;M=c[(Da&p)>>2]|0;U=d[(M&n)+5>>0]<<2;Y=U&65535;V=a[(M&n)+3>>0]|0;F=V&255;if((ba|0)>-1){I=V<<24>>24!=0;K=M;q=0;L=0;s=0;while(1){H=e[(K&o)+18>>1]|0;P=a[(K&n)+1>>0]|0;D=P&255;E=D+H|0;if(!(P<<24>>24)){g=c[(K&p)+56>>2]|0;if((E|0)>0){y=e[(K&o)+20>>1]|0;x=e[(K&o)+14>>1]|0;w=0;v=s;while(1){P=(w<<1)+x|0;P=g+((d[(g+P&n)>>0]<<8|d[(g+P&n)+1>>0])&y)|0;c[(Z+(v<<2)&p)>>2]=P;b[(X+(v<<1)&o)>>1]=Lp(K,P)|0;w=w+1|0;if((w|0)==(H|0))break;else v=v+1|0}s=H+s|0}}else if((E|0)>0){z=K+56|0;x=K+20|0;w=K+64|0;v=0;g=s;while(1){y=v;C=D;b:while(1){while(1){A=C+-1|0;if((C|0)<=0){ea=72;break b}C=e[(K+(A<<1)&o)+22>>1]|0;if((C|0)>(y|0))C=A;else{B=C;C=A;break}}if((B|0)==(y|0)){ea=71;break}else y=y+-1|0}if((ea|0)==71){ea=0;y=c[(K+(C<<2)&p)+32>>2]|0}else if((ea|0)==72){ea=0;y=y<<1;P=c[(w&p)>>2]|0;y=(c[(z&p)>>2]|0)+((d[(P+y&n)>>0]<<8|d[(P+(y|1)&n)>>0])&e[(x&o)>>1])|0}c[(Z+(g<<2)&p)>>2]=y;b[(X+(g<<1)&o)>>1]=Lp(K,y)|0;v=v+1|0;if((v|0)==(E|0))break;else g=g+1|0}s=H+s+D|0}c[(Fa+(q<<2)&p)>>2]=s;if((q|0)>=(ba|0)|I)t=L;else{k=c[(Pa+(q<<2)&p)>>2]|0;u=X+(s<<1)|0;b[(u&o)>>1]=k;k=k&65535;t=k+L|0;kw(J+L|0,c[(Ba+(q<<2)&p)>>2]|0,k|0)|0;k=Z+(s<<2)|0;c[(k&p)>>2]=J+(L+U);m=(e[(u&o)>>1]|0)-U|0;b[(u&o)>>1]=m;do if(!(a[(K&n)+5>>0]|0)){P=c[(k&p)>>2]|0;O=(c[(K&p)+56>>2]|0)+8|0;O=d[(O&n)>>0]|d[(O&n)+1>>0]<<8|d[(O&n)+2>>0]<<16|d[(O&n)+3>>0]<<24;a[(P&n)>>0]=O;a[(P&n)+1>>0]=O>>8;a[(P&n)+2>>0]=O>>16;a[(P&n)+3>>0]=O>>24}else{if((m&65532)>>>0>=4)break;a[(J+t&n)>>0]=0;b[(u&o)>>1]=4;t=t+1|0}while(0);s=s+1|0}q=q+1|0;if((q|0)>=(ca|0))break;K=c[(Da+(q<<2)&p)>>2]|0;L=t}t=U+-12+(c[(Q&p)>>2]|0)|0;if((s|0)>0){u=I<<31>>31;m=0;k=0;q=0;do{g=q+2+(e[(X+(m<<1)&o)>>1]|0)|0;if((g|0)>(t|0)){c[(Pa+(k<<2)&p)>>2]=q;c[(Ea+(k<<2)&p)>>2]=m;if((k|0)>3){ea=91;break}else{m=m+u|0;k=k+1|0;q=0}}else q=g;m=m+1|0}while((m|0)<(s|0));if((ea|0)==91){ea=0;c[(Qa&p)>>2]=59904;c[(Qa&p)+4>>2]=10788;bd(11,13600,Qa);c[(Na&p)>>2]=11;m=Z;q=0;break}c[(Pa+(k<<2)&p)>>2]=q;c[(Ea+(k<<2)&p)>>2]=s;if((k|0)>0){E=(N|0)==0;m=k;do{v=Pa+(m<<2)|0;m=m+-1|0;g=Pa+(m<<2)|0;w=Ea+(m<<2)|0;A=c[(w&p)>>2]|0;D=c[(g&p)>>2]|0;u=q;while(1){z=A+-1|0;y=A-F|0;if(u){if(!E){q=D;break}B=b[(X+(y<<1)&o)>>1]|0;C=u+2|0;y=b[(X+(z<<1)&o)>>1]|0;x=D+-2|0;if(((B&65535)+C|0)>(x-(y&65535)|0)){q=D;break}}else{x=D+-2|0;C=2;B=b[(X+(y<<1)&o)>>1]|0;y=b[(X+(z<<1)&o)>>1]|0}c[(w&p)>>2]=z;A=z;D=x-(y&65535)|0;u=(B&65535)+C|0}c[(v&p)>>2]=u;c[(g&p)>>2]=q}while((m|0)>0);L=1;P=t;O=s}else{L=1;P=t;O=s}}else ea=93}else{t=U+-12+(c[(Q&p)>>2]|0)|0;s=0;ea=93}if((ea|0)==93){ea=0;c[(Pa&p)>>2]=0;c[(Ea&p)>>2]=s;L=0;P=t;k=0;O=s}if((c[(M&p)+72>>2]|0)>>>0<2){c[(Qa&p)>>2]=59963;c[(Qa&p)+4>>2]=10788;bd(11,13600,Qa);c[(Na&p)>>2]=11;m=Z;q=0;break}H=d[(c[(M&p)+56>>2]&n)>>0]|0;if((k|0)>-1){v=(N|0)!=0;g=aa+17|0;m=da+72|0;x=0;q=0;while(1){do if((x|0)<(ca|0)){M=Da+(x<<2)|0;N=c[(M&p)>>2]|0;c[(Ca+(x<<2)&p)>>2]=N;c[(Ja&p)>>2]=N;c[(M&p)>>2]=0;N=Gg(c[(N&p)+68>>2]|0)|0;c[(Na&p)>>2]=N;q=q+1|0;if(N){m=Z;break a}}else{N=ip(aa,Ja,Ka,v?1:c[(Ka&p)>>2]|0,0)|0;c[(Na&p)>>2]=N;if(N){m=Z;break a}t=c[(Ja&p)>>2]|0;pl(t,H);c[(Ca+(x<<2)&p)>>2]=t;q=q+1|0;c[(Fa+(x<<2)&p)>>2]=O;if(!(a[(g&n)>>0]|0))break;zp(aa,c[(t&p)+72>>2]|0,5,c[(m&p)>>2]|0,Na);if(c[(Na&p)>>2]|0){m=Z;break a}}while(0);if((x|0)<(k|0))x=x+1|0;else break}if((q|0)>0){s=0;c:do{N=c[(Ca+(s<<2)&p)>>2]|0;t=c[(N&p)+72>>2]|0;c[(za+(s<<2)&p)>>2]=t;c[(ya+(s<<2)&p)>>2]=t;b[(xa+(s<<1)&o)>>1]=b[((c[(N&p)+68>>2]|0)&o)+24>>1]|0;if((s|0)>0){m=0;do{if((c[(za+(m<<2)&p)>>2]|0)==(t|0)){ea=118;break c}m=m+1|0}while((m|0)<(s|0))}s=s+1|0}while((s|0)<(q|0));if((ea|0)==118){ea=0;c[(Qa&p)>>2]=60018;c[(Qa&p)+4>>2]=10788;bd(11,13600,Qa);c[(Na&p)>>2]=11;m=Z;break}u=(q|0)>1;m=aa+44|0;k=0;do{if(u){s=0;t=1;do{s=(c[(ya+(t<<2)&p)>>2]|0)>>>0<(c[(ya+(s<<2)&p)>>2]|0)>>>0?t:s;t=t+1|0}while((t|0)!=(q|0))}else s=0;N=ya+(s<<2)|0;t=c[(N&p)>>2]|0;c[(N&p)>>2]=-1;if((s|0)!=(k|0)){if((s|0)>(k|0)){M=c[((c[(Ca+(s<<2)&p)>>2]|0)&p)+68>>2]|0;N=s+1+(c[(m&p)>>2]|0)|0;b[(M&o)+24>>1]=0;Zp(M,N)}N=c[(Ca+(k<<2)&p)>>2]|0;M=c[(N&p)+68>>2]|0;b[(M&o)+24>>1]=b[(xa+(s<<1)&o)>>1]|0;Zp(M,t);c[(N&p)+72>>2]=t}k=k+1|0}while((k|0)!=(q|0));c[(Ka&p)>>2]=t;N=0}else N=1}else{N=1;q=0}K=q+-1|0;t=c[(Ca+(K<<2)&p)>>2]|0;M=c[(t&p)+72>>2]|0;a[(T&n)>>0]=M>>>24;a[(R&n)>>0]=M>>>16;a[(S&n)>>0]=M>>>8;a[(G&n)>>0]=M;if(!((H&8|0)!=0|(ca|0)==(q|0))){T=(c[(t&p)+56>>2]|0)+8|0;S=(c[((c[(((q|0)>(ca|0)?Ca:Da)+(ba<<2)&p)>>2]|0)&p)+56>>2]|0)+8|0;S=d[(S&n)>>0]|d[(S&n)+1>>0]<<8|d[(S&n)+2>>0]<<16|d[(S&n)+3>>0]<<24;a[(T&n)>>0]=S;a[(T&n)+1>>0]=S>>8;a[(T&n)+2>>0]=S>>16;a[(T&n)+3>>0]=S>>24}M=aa+17|0;if((a[(M&n)>>0]|0)!=0?(ra=c[(Ca&p)>>2]|0,sa=c[(Q&p)>>2]|0,L):0){D=V<<24>>24==0;B=D&1;A=Y<<16>>16==0;y=c[(ra&p)+56>>2]|0;x=(e[(ra&o)+18>>1]|0)+(d[(ra&n)+1>>0]|0)|0;z=0;w=0;s=0;u=ra;while(1){C=c[(Z+(z<<2)&p)>>2]|0;if((z|0)==(x|0)){s=s+1|0;if((s|0)<(q|0))t=Ca+(s<<2)|0;else t=Da+(s<<2)|0;x=c[(t&p)>>2]|0;y=c[(x&p)+56>>2]|0;x=z+B+(e[(x&o)+18>>1]|0)+(d[(x&n)+1>>0]|0)|0}if((z|0)==(c[(Ea+(w<<2)&p)>>2]|0)){t=w+1|0;u=c[(Ca+(t<<2)&p)>>2]|0;if(!D)ea=142}else{t=w;ea=142}do if((ea|0)==142){ea=0;if((s|0)<(q|0)?(C>>>0>=y>>>0?(c[(u&p)+72>>2]|0)==(c[(za+(s<<2)&p)>>2]|0):0)&C>>>0<(y+sa|0)>>>0:0)break;if(A)zp(aa,d[(C&n)+1>>0]<<16|d[(C&n)>>0]<<24|d[(C&n)+2>>0]<<8|d[(C&n)+3>>0],5,c[(u&p)+72>>2]|0,Na);if((e[(X+(z<<1)&o)>>1]|0)<=(e[(u&o)+12>>1]|0))break;Fq(u,C,Na)}while(0);z=z+1|0;if((z|0)==(O|0))break;else w=t}}if((K|0)>0){v=V<<24>>24==0;x=0;y=0;while(1){w=c[(Ca+(x<<2)&p)>>2]|0;s=c[(Ea+(x<<2)&p)>>2]|0;m=c[(Z+(s<<2)&p)>>2]|0;k=b[(X+(s<<1)&o)>>1]|0;t=(k&65535)+U|0;u=h+y|0;do if(!(a[(w&n)+5>>0]|0)){s=(c[(w&p)+56>>2]|0)+8|0;T=d[(m&n)>>0]|d[(m&n)+1>>0]<<8|d[(m&n)+2>>0]<<16|d[(m&n)+3>>0]<<24;a[(s&n)>>0]=T;a[(s&n)+1>>0]=T>>8;a[(s&n)+2>>0]=T>>16;a[(s&n)+3>>0]=T>>24;s=u}else{if(!v){rp(w,c[(Z+(s+-1<<2)&p)>>2]|0,Ga);t=Ga;m=u;s=0;t=(pm(h+(y+4)|0,c[(t&p)>>2]|0,c[(t&p)+4>>2]|0)|0)+4|0;break}g=m+-4|0;if(k<<16>>16!=4){m=g;s=u;break}m=g;s=u;t=(Lp(da,g)|0)&65535}while(0);Jp(da,x+W|0,m,t,s,c[(w&p)+72>>2]|0,Na);if(c[(Na&p)>>2]|0){m=Z;break a}x=x+1|0;if((x|0)>=(K|0))break;else y=t+y|0}}t=1-q|0;if((t|0)<(q|0)){L=c[(Ea&p)>>2]|0;K=V<<24>>24==0&1;do{I=(t|0)<0?0-t|0:t;J=Aa+I|0;do if(!(a[(J&n)>>0]|0)){if((t|0)<=-1?(W=I+-1|0,(c[(Fa+(W<<2)&p)>>2]|0)<(c[(Ea+(W<<2)&p)>>2]|0)):0)break;if(!I){H=0;m=0;G=L}else{s=I+-1|0;if((I|0)<(ca|0))m=(c[(Fa+(s<<2)&p)>>2]|0)+K|0;else m=O;G=(c[(Ea+(s<<2)&p)>>2]|0)+K|0;H=G;G=(c[(Ea+(I<<2)&p)>>2]|0)-G|0}E=c[(Ca+(I<<2)&p)>>2]|0;v=c[(E&p)+56>>2]|0;g=d[(E&n)+6>>0]|0;k=E+64|0;s=(c[(k&p)>>2]|0)+(G<<1)|0;u=E+18|0;y=e[(u&o)>>1]|0;F=E+1|0;x=y+m+(d[(F&n)>>0]|0)|0;w=G+H|0;if((m|0)<(H|0)){W=Iq(E,H-m|0,Z+(m<<2)|0,X+(m<<1)|0)|0;V=c[(k&p)>>2]|0;lw(V|0,V+(W<<1)|0,y<<1|0)|0;y=y-W|0}if((x|0)>(w|0))y=y-(Iq(E,x-w|0,Z+(w<<2)|0,X+(w<<1)|0)|0)|0;A=v+(g+5)|0;z=v+(g+6)|0;W=v+(((d[(A&n)>>0]<<8|d[(z&n)>>0])+65535&65535)+1)|0;c[(Qa&p)>>2]=W;d:do if(W>>>0<s>>>0)ea=181;else{if((H|0)<(m|0)){x=m-H|0;x=(x|0)>(G|0)?G:x;W=c[(k&p)>>2]|0;lw(W+(x<<1)|0,W|0,y<<1|0)|0;if(Jq(E,s,Qa,W,x,Z+(H<<2)|0,X+(H<<1)|0)|0){ea=181;break}y=y+x|0}x=a[(F&n)>>0]|0;if(x<<24>>24){D=0;do{C=(e[(E+(D<<1)&o)+22>>1]|0)+m|0;B=C-H|0;if((B|0)>-1&(B|0)<(G|0)){V=B<<1;U=c[(k&p)>>2]|0;W=U+V|0;lw(U+(V+2)|0,W|0,y-B<<1|0)|0;if(Jq(E,s,Qa,W,1,Z+(C<<2)|0,X+(C<<1)|0)|0){ea=181;break d}x=a[(F&n)>>0]|0;y=y+1|0}D=D+1|0}while((D|0)<(x&255|0))}W=y+H|0;if(Jq(E,s,Qa,(c[(k&p)>>2]|0)+(y<<1)|0,G-y|0,Z+(W<<2)|0,X+(W<<1)|0)|0){ea=181;break}W=G&65535;b[(u&o)>>1]=W;a[(F&n)>>0]=0;a[(v+g&n)+3>>0]=(W&65535)>>>8;a[(v+g&n)+4>>0]=b[(u&o)>>1];W=(c[(Qa&p)>>2]|0)-v|0;a[(A&n)>>0]=W>>>8;a[(z&n)>>0]=W}while(0);if((ea|0)==181){ea=0;Hq(E,G,Z+(H<<2)|0,X+(H<<1)|0)}a[(J&n)>>0]=1;b[(E&o)+16>>1]=P-(c[(Pa+(I<<2)&p)>>2]|0)}while(0);t=t+1|0}while((t|0)!=(q|0))}do if(_){if(b[($&o)>>1]|0){ea=191;break}m=c[(Ca&p)>>2]|0;if((d[(da&n)+6>>0]|0)>>>0>(e[(m&o)+16>>1]|0)>>>0){ea=191;break}c[(Na&p)>>2]=Eq(m)|0;Gq(m,da,Na);if(c[(Na&p)>>2]|0)break;c[(Na&p)>>2]=Ym(c[(m&p)+52>>2]|0,m,c[(m&p)+72>>2]|0)|0}else ea=191;while(0);do if((ea|0)==191){ea=0;if((a[(M&n)>>0]|0)==0|Y<<16>>16!=0|N)break;else m=0;do{$=c[(Ca+(m<<2)&p)>>2]|0;_=c[($&p)+56>>2]|0;zp(aa,d[(_&n)+9>>0]<<16|d[(_&n)+8>>0]<<24|d[(_&n)+10>>0]<<8|d[(_&n)+11>>0],5,c[($&p)+72>>2]|0,Na);m=m+1|0}while((m|0)!=(q|0))}while(0);if((q|0)>=(ca|0)){m=Z;break}m=c[(Na&p)>>2]|0;g=q;do{k=c[(Da+(g<<2)&p)>>2]|0;if(!m){m=Ym(c[(k&p)+52>>2]|0,k,c[(k&p)+72>>2]|0)|0;c[(Na&p)>>2]=m}g=g+1|0}while((g|0)!=(ca|0));m=Z}else{k=ba;ea=47}while(0);if((ea|0)==47){ea=0;fw(Da|0,0,(k<<2)+4|0)|0;m=0;q=0}hi(m);if((ba|0)>-1){k=0;do{m=c[(Da+(k<<2)&p)>>2]|0;if(m)Bg(c[(m&p)+68>>2]|0);k=k+1|0}while((k|0)<(ca|0))}if((q|0)>0){k=0;do{g=c[(Ca+(k<<2)&p)>>2]|0;if(g)Bg(c[(g&p)+68>>2]|0);k=k+1|0}while((k|0)!=(q|0))}g=c[(Na&p)>>2]|0}if(ga)$k(ga)}else h=ga;while(0);a[(r&n)>>0]=0;if(l)Bg(c[(l&p)+68>>2]|0);l=(b[(qa&o)>>1]|0)+-1<<16>>16;b[(qa&o)>>1]=l;if(g)break;else ga=h}if(h)$k(h);i=Ra;return g|0}function Lp(b,f){b=b|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=d[(b&n)+7>>0]|0;h=f+g|0;do if(!(a[(b&n)+4>>0]|0)){j=a[(h&n)>>0]|0;i=j&255;if(j<<24>>24<0){j=f+(g+9)|0;g=i&127;do{h=h+1|0;i=a[(h&n)>>0]|0;g=i&127|g<<7}while(i<<24>>24<0&h>>>0<j>>>0)}else g=i;i=h+1|0;if(a[(b&n)+2>>0]|0){k=h+10|0;j=i;while(1){i=h+2|0;if((a[(j&n)>>0]|0)<0&i>>>0<k>>>0){h=j;j=i}else break}}h=e[(b&o)+10>>1]|0;if(g>>>0>h>>>0){j=e[(b&o)+12>>1]|0;g=(((g-j|0)>>>0)%(((c[((c[(b&p)+52>>2]|0)&p)+36>>2]|0)+-4|0)>>>0)|0)+j|0;g=(i-f&65535)+4+(g>>>0>h>>>0?j:g)|0;break}else{g=i-f+g|0;g=g>>>0<4?4:g;break}}else{i=f+(g+9)|0;while(1){g=h+1|0;if((a[(h&n)>>0]|0)<0&g>>>0<i>>>0)h=g;else break}g=g-f|0}while(0);return g&65535|0}function Mp(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))fa();s=u+4|0;r=u;q=u+8|0;c[(s&p)>>2]=0;if(a[(b&n)+17>>0]|0){h=((c[2514]|0)>>>0)/((c[(b&p)+32>>2]|0)>>>0)|0;m=b+36|0;o=e;while(1){l=o+1|0;if(l>>>0<2)k=0;else{k=o+-1|0;k=k-((k>>>0)%(((((c[(m&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(h|0)?3:2)+k|0}if((k|0)==(l|0)|(o|0)==(h|0))o=l;else break}if(l>>>0<=(c[(b&p)+44>>2]|0)>>>0){o=hp(b,l,q,r)|0;m=(o|0)==0;k=m&(a[(q&n)>>0]|0)==4&(c[(r&p)>>2]|0)==(e|0);l=k?l:0;if(k|m^1){h=0;k=k?101:o}else t=8}else{l=0;t=8}}else{l=0;t=8}if((t|0)==8){k=dl(b,e,s,(f|0)==0?2:0)|0;h=c[(s&p)>>2]|0;if(!k){l=c[(h&p)+56>>2]|0;l=d[(l&n)+1>>0]<<16|d[(l&n)>>0]<<24|d[(l&n)+2>>0]<<8|d[(l&n)+3>>0];k=0}}c[(g&p)>>2]=l;if(!f){if(h)Bg(c[(h&p)+68>>2]|0)}else c[(f&p)>>2]=h;i=u;return ((k|0)==101?0:k)|0}function Np(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;c[(h&p)>>2]=0;f=(b|0)!=0;a:do if(d)if(f){f=h;while(1){g=d+8|0;while(1){if((Wp(a,b+8|0,c[(b&p)>>2]|0,g,c[(d&p)>>2]|0)|0)>=1)break;c[(f&p)>>2]=b;f=b+4|0;b=c[(f&p)>>2]|0;if(!b){b=0;g=0;break a}else g=0}c[(f&p)>>2]=d;f=d+4|0;d=c[(f&p)>>2]|0;if(!d){d=0;g=1;break a}if(!b){b=0;g=0;break}}}else{g=f;f=h}else{d=0;g=f;f=h}while(0);c[(f&p)>>2]=g?b:d;c[(e&p)>>2]=c[(h&p)>>2];i=k;return}function Op(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g+8|0;e=g;d=c[2252]|0;if((d|0)!=0?(lc[d&127](202)|0)!=0:0)d=3338;else{d=mp(c[(a&p)>>2]|0,0,b,4126,f)|0;c[(f&p)>>2]=d;if(!d){d=e;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;d=c[(b&p)>>2]|0;ac[c[((c[(d&p)>>2]|0)&p)+40>>2]&63](d,18,e)|0;d=c[(f&p)>>2]|0}}i=g;return d|0}function Pp(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=b+0|0;h=g+40|0;do{c[(g&p)>>2]=0;g=g+4|0}while((g|0)<(h|0));g=((d|0)<0)<<31>>31;h=qg(d,g)|0;c[(b&p)+4>>2]=h;if(!h)c[(b&p)>>2]=7;else{h=rw(e|0,f|0,d|0,g|0)|0;c[(b&p)+12>>2]=h;c[(b&p)+16>>2]=h;h=dw(e|0,f|0,h|0,((h|0)<0)<<31>>31|0)|0;g=b+24|0;c[(g&p)>>2]=h;c[(g&p)+4>>2]=G;c[(b&p)+8>>2]=d;c[(b&p)+32>>2]=a}return}function Qp(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;a:do if((d|0)>0){f=a+8|0;h=a+16|0;i=a+4|0;j=a+32|0;k=a+12|0;l=a+24|0;m=d;do{if(c[(a&p)>>2]|0)break a;g=c[(h&p)>>2]|0;e=(c[(f&p)>>2]|0)-g|0;e=(m|0)>(e|0)?e:m;kw((c[(i&p)>>2]|0)+g|0,b+(d-m)|0,e|0)|0;g=(c[(h&p)>>2]|0)+e|0;c[(h&p)>>2]=g;if((g|0)==(c[(f&p)>>2]|0)){r=c[(j&p)>>2]|0;o=c[(k&p)>>2]|0;q=(c[(i&p)>>2]|0)+o|0;n=l;n=jw(c[(n&p)>>2]|0,c[(n&p)+4>>2]|0,o|0,((o|0)<0)<<31>>31|0)|0;c[(a&p)>>2]=tc[c[((c[(r&p)>>2]|0)&p)+12>>2]&31](r,q,g-o|0,n,G)|0;c[(h&p)>>2]=0;c[(k&p)>>2]=0;n=c[(f&p)>>2]|0;g=l;n=jw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,n|0,((n|0)<0)<<31>>31|0)|0;g=l;c[(g&p)>>2]=n;c[(g&p)+4>>2]=G}m=m-e|0}while((m|0)>0)}while(0);return}function Rp(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;f=a+4|0;if(((c[(a&p)>>2]|0)==0?(e=c[(f&p)>>2]|0,(e|0)!=0):0)?(d=c[(a&p)+16>>2]|0,g=c[(a&p)+12>>2]|0,(d|0)>(g|0)):0){i=c[(a&p)+32>>2]|0;h=a+24|0;h=jw(c[(h&p)>>2]|0,c[(h&p)+4>>2]|0,g|0,((g|0)<0)<<31>>31|0)|0;c[(a&p)>>2]=tc[c[((c[(i&p)>>2]|0)&p)+12>>2]&31](i,e+g|0,d-g|0,h,G)|0}e=a+24|0;d=c[(a&p)+16>>2]|0;e=jw(d|0,((d|0)<0)<<31>>31|0,c[(e&p)>>2]|0,c[(e&p)+4>>2]|0)|0;d=b;c[(d&p)>>2]=e;c[(d&p)+4>>2]=G;Wc(c[(f&p)>>2]|0);f=c[(a&p)>>2]|0;d=a+0|0;e=d+40|0;do{c[(d&p)>>2]=0;d=d+4|0}while((d|0)<(e|0));return f|0}function Sp(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=c[2252]|0;if((g|0)!=0?(lc[g&127](201)|0)!=0:0)g=266;else{h=b+44|0;if(c[(h&p)>>2]|0)c[(h&p)>>2]=0;n=b;c[(n&p)>>2]=e;c[(n&p)+4>>2]=f;n=d+8|0;l=c[(n&p)>>2]|0;n=c[(n&p)+4>>2]|0;j=b+8|0;k=j;c[(k&p)>>2]=l;c[(k&p)+4>>2]=n;d=c[(d&p)>>2]|0;k=b+24|0;c[(k&p)>>2]=d;a=a+8|0;g=c[(a&p)>>2]|0;i=c[((c[(g&p)+24>>2]|0)&p)+136>>2]|0;m=((i|0)<0)<<31>>31;if(!((n|0)>(m|0)|(n|0)==(m|0)&l>>>0>i>>>0)?(c[(c[(d&p)>>2]&p)>>2]|0)>2:0){c[(h&p)>>2]=0;g=c[(a&p)>>2]|0}i=c[(g&p)+12>>2]|0;d=((i|0)<0)<<31>>31;f=rw(e|0,f|0,i|0,d|0)|0;a=b+36|0;g=c[(a&p)>>2]|0;if(!g){g=qg(i,d)|0;c[(a&p)>>2]=g;c[(b&p)+40>>2]=i;e=g;g=(g|0)==0?7:0}else{e=g;g=0}if((g|0)==0&(f|0)!=0){g=i-f|0;i=b;h=c[(i&p)>>2]|0;i=c[(i&p)+4>>2]|0;b=jw(h|0,i|0,g|0,((g|0)<0)<<31>>31|0)|0;l=G;d=j;a=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;if((l|0)>(d|0)|(l|0)==(d|0)&b>>>0>a>>>0)g=dw(a|0,d|0,h|0,i|0)|0;k=c[(k&p)>>2]|0;g=tc[c[((c[(k&p)>>2]|0)&p)+8>>2]&31](k,e+f|0,g,h,i)|0}}return g|0}function Tp(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();k=l+8|0;h=l;f=c[(b&p)+44>>2]|0;e=b;g=c[(e&p)>>2]|0;a:do if(!f){f=c[(b&p)+40>>2]|0;e=rw(g|0,c[(e&p)+4>>2]|0,f|0,((f|0)<0)<<31>>31|0)|0;if((e|0)!=0&(f-e|0)>8){f=(sp((c[(b&p)+36>>2]|0)+e|0,d)|0)&255;e=b;f=jw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,f|0,0)|0;e=b;c[(e&p)>>2]=f;c[(e&p)+4>>2]=G;e=0;break}else f=0;while(1){e=Kq(b,1,h)|0;if(e)break a;e=a[(c[(h&p)>>2]&n)>>0]|0;a[(k+(f&15)&n)>>0]=e;if(e<<24>>24<0)f=f+1|0;else break}sp(k,d)|0;e=0}else{f=(sp(f+g|0,d)|0)&255;e=b;f=jw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,f|0,0)|0;e=b;c[(e&p)>>2]=f;c[(e&p)+4>>2]=G;e=0}while(0);i=l;return e|0}function Up(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;d=g;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;d=a;f=c[(d&p)+4>>2]|0;b=a+8|0;e=c[(b&p)+4>>2]|0;do if((f|0)<(e|0)|((f|0)==(e|0)?(c[(d&p)>>2]|0)>>>0<(c[(b&p)>>2]|0)>>>0:0))h=9;else{d=c[(a&p)+48>>2]|0;if(d){b=Lq(d)|0;l=d+32|0;f=d+48|0;c[(l&p)>>2]=c[(f&p)>>2];c[(l&p)+4>>2]=c[(f&p)+4>>2];c[(l&p)+8>>2]=c[(f&p)+8>>2];c[(l&p)+12>>2]=c[(f&p)+12>>2];l=d+40|0;f=d+8|0;e=c[(f&p)>>2]|0;f=c[(f&p)+4>>2]|0;if((c[(l&p)>>2]|0)==(e|0)?(c[(l&p)+4>>2]|0)==(f|0):0)c[(d&p)+20>>2]=1;if(!b)if(!(c[(d&p)+20>>2]|0)){b=Sp(c[(d&p)>>2]|0,a,d+32|0,e,f)|0;if(!b){h=9;break}else break}else b=0}else b=0;Vp(a)}while(0);if((h|0)==9){b=Tp(a,g)|0;if(!b){b=c[(g&p)>>2]|0;c[(a&p)+20>>2]=b;b=Kq(a,b,a+32|0)|0}}i=k;return b|0}function Vp(a){a=a|0;var b=0;Wc(c[(a&p)+28>>2]|0);Wc(c[(a&p)+36>>2]|0);Sm(c[(a&p)+48>>2]|0);a=a+0|0;b=a+56|0;do{c[(a&p)>>2]=0;a=a+4|0}while((a|0)<(b|0));return}function Wp(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0;g=c[(a&p)+12>>2]|0;if(e)Gm(c[((c[(a&p)+8>>2]|0)&p)+28>>2]|0,f,e,g);return Km(d,b,g,0)|0}function Xp(f,g,h,k){f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))fa();m=z;l=z+8|0;v=z+12|0;do if((c[(f&p)+44>>2]|0)>>>0>=g>>>0){g=vp(f,g,l,0)|0;if(!g){x=c[(l&p)>>2]|0;w=x+9|0;a:do if(!(a[(w&n)>>0]|0)){a[(w&n)>>0]=1;t=d[(x&n)+6>>0]|0;r=x+18|0;l=b[(r&o)>>1]|0;if(!(l<<16>>16)){l=l&65535;g=x+5|0}else{q=0;while(1){m=c[(x&p)+56>>2]|0;l=q<<1;g=c[(x&p)+64>>2]|0;l=(d[(g+l&n)>>0]<<8|d[(g+(l|1)&n)>>0])&e[(x&o)+20>>1];g=m+l|0;s=x+5|0;if((a[(s&n)>>0]|0)==0?(u=Xp(f,d[(m+l&n)+1>>0]<<16|d[(g&n)>>0]<<24|d[(m+l&n)+2>>0]<<8|d[(m+l&n)+3>>0],1,k)|0,(u|0)!=0):0){g=u;y=21;break a}g=Hp(x,g,v)|0;q=q+1|0;if(g){y=21;break a}l=e[(r&o)>>1]|0;if((q|0)>=(l|0)){g=s;break}}}if(!(a[(g&n)>>0]|0)){g=c[(x&p)+56>>2]|0;g=Xp(f,d[(g+t&n)+9>>0]<<16|d[(g+t&n)+8>>0]<<24|d[(g+t&n)+10>>0]<<8|d[(g+t&n)+11>>0],1,k)|0;if(!g)y=16}else if(!k)y=16;else{c[(k&p)>>2]=(c[(k&p)>>2]|0)+l;y=16}if((y|0)==16){if(h){g=Ym(c[(x&p)+52>>2]|0,x,c[(x&p)+72>>2]|0)|0;y=21;break}g=Gg(c[(x&p)+68>>2]|0)|0;if(!g){pl(x,d[((c[(x&p)+56>>2]|0)+t&n)>>0]|8);g=0;y=21;break}}a[(w&n)>>0]=0}else{c[(m&p)>>2]=60971;c[(m&p)+4>>2]=10788;bd(11,13600,m);g=11;y=21}while(0);if((y|0)==21){a[(w&n)>>0]=0;if(!x)break}Bg(c[(x&p)+68>>2]|0)}}else{c[(m&p)>>2]=60966;c[(m&p)+4>>2]=10788;bd(11,13600,m);g=11}while(0);i=z;return g|0}function Yp(b,d){b=b|0;d=d|0;var e=0,f=0;f=(c[(b&p)>>2]|0)+204|0;e=ac[c[8876>>2]&63](c[((c[(f&p)>>2]|0)&p)+40>>2]|0,d,0)|0;e=il(c[(f&p)>>2]|0,d,e)|0;if(!e)e=0;else{f=c[(e&p)+8>>2]|0;c[(f&p)+56>>2]=c[(e&p)+4>>2];c[(f&p)+68>>2]=e;c[(f&p)+52>>2]=b;c[(f&p)+72>>2]=d;a[(f&n)+6>>0]=(d|0)==1?100:0;e=f}return e|0}function Zp(a,d){a=a|0;d=d|0;var e=0;e=a+20|0;qc[c[8884>>2]&15](c[((c[(a&p)+28>>2]|0)&p)+40>>2]|0,c[(a&p)>>2]|0,c[(e&p)>>2]|0,d);c[(e&p)>>2]=d;if((b[(a&o)+24>>1]&6)==6)Qo(a,3);return}function _p(f){f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();x=y;u=c[(f&p)+52>>2]|0;v=a[(f&n)>>0]|0;w=c[(f&p)+72>>2]|0;t=$p(f)|0;c[(x&p)>>2]=t;if(!t){t=b[(f&o)+18>>1]|0;s=t&65535;if(!(t<<16>>16))g=f+5|0;else{h=f+56|0;k=f+20|0;l=f+64|0;g=f+5|0;t=0;do{m=c[(h&p)>>2]|0;q=t<<1;r=c[(l&p)>>2]|0;q=(d[(r+q&n)>>0]<<8|d[(r+(q|1)&n)>>0])&e[(k&o)>>1];r=m+q|0;Fq(f,r,x);if(!(a[(g&n)>>0]|0))zp(u,d[(m+q&n)+1>>0]<<16|d[(r&n)>>0]<<24|d[(m+q&n)+2>>0]<<8|d[(m+q&n)+3>>0],5,w,x);t=t+1|0}while((t|0)<(s|0))}if(!(a[(g&n)>>0]|0)){t=d[(f&n)+6>>0]|0;s=c[(f&p)+56>>2]|0;zp(u,d[(s+t&n)+9>>0]<<16|d[(s+t&n)+8>>0]<<24|d[(s+t&n)+10>>0]<<8|d[(s+t&n)+11>>0],5,w,x)}}a[(f&n)>>0]=v;i=y;return c[(x&p)>>2]|0}function $p(e){e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();x=y;a:do if(!(a[(e&n)>>0]|0)){f=c[(e&p)+52>>2]|0;u=c[(e&p)+56>>2]|0;l=d[(e&n)+6>>0]|0;if(Ro(e,d[(u+l&n)>>0]|0)|0){c[(x&p)>>2]=54562;c[(x&p)+4>>2]=10788;bd(11,13600,x);f=11;break}q=c[(f&p)+32>>2]|0;b[(e&o)+20>>1]=q+65535;a[(e&n)+1>>0]=0;t=c[(f&p)+36>>2]|0;f=l+8+(d[(e&n)+7>>0]|0)|0;b[(e&o)+14>>1]=f;c[(e&p)+60>>2]=u+t;f=f&65535;c[(e&p)+64>>2]=u+f;k=a[(u+l&n)+5>>0]|0;h=a[(u+l&n)+6>>0]|0;g=d[(u+l&n)+3>>0]<<8|d[(u+l&n)+4>>0];b[(e&o)+18>>1]=g;if(g>>>0>(((q+-8|0)>>>0)/6|0)>>>0){c[(x&p)>>2]=54579;c[(x&p)+4>>2]=10788;bd(11,13600,x);f=11;break}q=(g<<1)+f|0;m=t+-4|0;g=d[(u+l&n)+1>>0]<<8|d[(u+l&n)+2>>0];f=(((k&255)<<8|h&255)+65535&65535)+1+(d[(u+l&n)+7>>0]|0)|0;do if(g){while(1){if((g|0)<(q|0)|(g|0)>(m|0)){w=8;break}h=d[(u+g&n)>>0]<<8|d[(u+g&n)+1>>0];k=d[(u+g&n)+2>>0]<<8|d[(u+g&n)+3>>0];g=k+g|0;if(!h){r=k;s=g;v=f;w=12;break}if((h|0)<=(g+3|0)|(g|0)>(t|0))break;g=h;f=k+f|0}if((w|0)==8){c[(x&p)>>2]=54634;c[(x&p)+4>>2]=10788;bd(11,13600,x);f=11;break a}if((w|0)==12?(s|0)<=(t|0):0){f=r+v|0;break}c[(x&p)>>2]=54641;c[(x&p)+4>>2]=10788;bd(11,13600,x);f=11;break a}while(0);if((f|0)>(t|0)){c[(x&p)>>2]=54655;c[(x&p)+4>>2]=10788;bd(11,13600,x);f=11;break}else{b[(e&o)+16>>1]=f-q;a[(e&n)>>0]=1;f=0;break}}else f=0;while(0);i=y;return f|0}function aq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;f=c[(b&p)>>2]|0;g=f+65|0;if(!(a[(g&n)>>0]|0)){if((c[(f&p)+24>>2]&65536|0)==0?(h=b+4|0,m=c[(h&p)>>2]|0,c[(k&p)>>2]=(d|0)==0?13552:d,dh(m,f,13560,k),(e|0)!=0):0){d=c[(c[(h&p)>>2]&p)>>2]|0;c[(k&p)>>2]=d;c[(k&p)+4>>2]=e;f=Mq(f,d,0,k)|0;c[(c[(h&p)>>2]&p)>>2]=f}if(!(a[(g&n)>>0]|0)){c[(k&p)>>2]=105209;c[(k&p)+4>>2]=10788;bd(11,13600,k);f=11}else f=7}else f=7;c[(b&p)+12>>2]=f;i=l;return}function bq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();n=o;m=a+20|0;a:do if((c[(m&p)>>2]|0)>0){h=a+16|0;k=(d|0)==0;l=0;a=0;do{f=(l|0)<2^l;g=c[(h&p)>>2]|0;e=c[(g+(f<<4)&p)+12>>2]|0;if(!(!k?(dd(d,c[(g+(f<<4)&p)>>2]|0)|0)!=0:0)){a=bn(e+24|0,b,n)|0;if(a){a=c[(a&p)+8>>2]|0;if(a)break a}else a=0}l=l+1|0}while((l|0)<(c[(m&p)>>2]|0))}else a=0;while(0);i=o;return a|0}function cq(d){d=d|0;var f=0,g=0,h=0,i=0;i=c[(d&p)+8>>2]|0;h=d+46|0;g=b[(h&o)>>1]|0;g=(g&65535)>5?5:g&65535;f=b[((c[(d&p)+12>>2]|0)&o)+28>>1]|0;b[(i&o)>>1]=f<<16>>16<33?33:f;kw(i+2|0,13512,g<<1|0)|0;f=e[(h&o)>>1]|0;if(g>>>0<f>>>0)do{g=g+1|0;b[(i+(g<<1)&o)>>1]=23;f=e[(h&o)>>1]|0}while((g|0)<(f|0));if(a[(d&n)+50>>0]|0)b[(i+(f<<1)&o)>>1]=0;return}function dq(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0;s=i;i=i+64|0;if((i|0)>=(j|0))fa();q=s;a:do if((((g|0)!=0?(l=c[(g&p)>>2]|0,(l|0)!=0):0)?(r=g+8|0,(c[(r&p)>>2]|0)!=0):0)?(k=d+4|0,t=_h(c[(d&p)>>2]|0,l,c[(k&p)>>2]|0)|0,(t|0)!=0):0){h=c[(g&p)+4>>2]|0;b:do if(!h)m=11;else{if(!(dd(c[(g&p)>>2]|0,h)|0)){k=c[(t&p)+8>>2]|0;if(!k){m=11;break}while(1){l=a[(k&n)+51>>0]|0;if((l&3)==2)break;k=c[(k&p)+20>>2]|0;if(!k){m=11;break b}}h=c[(r&p)>>2]|0;f=k}else{f=bq(c[(d&p)>>2]|0,h,c[(k&p)>>2]|0)|0;k=c[(r&p)>>2]|0;if(!f)break;l=a[(f&n)+51>>0]|0;h=k}r=(e[(f&o)+46>>1]|0)+1|0;a[(f&n)+51>>0]=l&-5;k=f+8|0;Nq(h,r,c[(k&p)>>2]|0,f);if(c[(f&p)+36>>2]|0)break a;b[(t&o)+28>>1]=b[(c[(k&p)>>2]&o)>>1]|0;break a}while(0);if((m|0)==11)k=c[(r&p)>>2]|0;r=t+42|0;m=q+44|0;b[(m&o)>>1]=b[(r&o)>>1]|0;Nq(k,1,t+28|0,q);b[(r&o)>>1]=b[(m&o)>>1]|0}while(0);i=s;return 0}function eq(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;do if(e){if((c[(b&p)+12>>2]|0)>>>0<e>>>0){c[(k&p)>>2]=e;fn(b,44408,k);f=1;break}g=(c[(b&p)+8>>2]|0)+(e>>>3)|0;h=d[(g&n)>>0]|0;f=1<<(e&7);if(!(h&f)){a[(g&n)>>0]=h|f;f=0;break}else{c[(k&p)>>2]=e;fn(b,44432,k);f=1;break}}else f=1;while(0);i=l;return f|0}function fq(a,b){a=a|0;b=b|0;var d=0,e=0;d=c[(a&p)>>2]|0;do if(d){if((b|0)==1){b=d+8|0;c[(a&p)>>2]=c[(b&p)>>2];c[(b&p)>>2]=0;c[(d&p)+12>>2]=0;break}b=b+-1|0;d=fq(a,b)|0;e=c[(a&p)>>2]|0;if(e){c[(e&p)+12>>2]=d;d=e+8|0;c[(a&p)>>2]=c[(d&p)>>2];c[(d&p)>>2]=fq(a,b)|0;return e|0}}else d=0;while(0);return d|0}function gq(b,d){b=b|0;d=d|0;var e=0;if((a[(b&n)+43>>0]|0)==2){e=b+24|0;if((c[(e&p)>>2]|0)>0){d=b+32|0;b=0;do{Wc(c[((c[(d&p)>>2]|0)+(b<<2)&p)>>2]|0);c[((c[(d&p)>>2]|0)+(b<<2)&p)>>2]=0;b=b+1|0}while((b|0)<(c[(e&p)>>2]|0))}}else{b=c[(b&p)+4>>2]|0;rc[c[((c[(b&p)>>2]|0)&p)+64>>2]&127](b,d)|0}return}function hq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();b=Ng(b)|0;if(b)dh(c,a,Se(a)|0,d);i=d;return b|0}function iq(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;f=c[(a&p)>>2]|0;g=a+16|0;h=a+84|0;ch(c[(g&p)>>2]|0,(e[(h&o)>>1]|0)<<1);mg(f,c[(g&p)>>2]|0);b[(h&o)>>1]=d;h=d*80|0;f=mh(f,h,0)|0;if(f){fw(f|0,0,h|0)|0;c[(g&p)>>2]=f;if((d|0)>0){h=c[(a&p)>>2]|0;g=d<<1;while(1){g=g+-1|0;b[(f&o)+8>>1]=1;c[(f&p)+32>>2]=h;if((g|0)<=0)break;else f=f+40|0}}}else c[(g&p)>>2]=0;return}function jq(b,d,f,g,h){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;if(!(a[((c[(b&p)>>2]|0)&n)+65>>0]|0)){d=(ca(e[(b&o)+84>>1]|0,f)|0)+d|0;Xg((c[(b&p)+16>>2]|0)+(d*40|0)|0,g,-1,1,h)|0}return}function kq(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;k=c[(d&p)>>2]|0;h=k+1|0;c[(d&p)>>2]=h;if((k|0)>98){f=d+8|0;h=c[(f&p)>>2]|0;c[(d&p)>>2]=k;do Pn(d);while((c[(d&p)>>2]|0)>-1);th(h,37160,l);c[(f&p)>>2]=h}else{b[(d+(h<<4)&o)+12>>1]=e;a[(d+(h<<4)&n)+14>>0]=f;f=d+(h<<4)+16|0;c[(f&p)>>2]=c[(g&p)>>2];c[(f&p)+4>>2]=c[(g&p)+4>>2];c[(f&p)+8>>2]=c[(g&p)+8>>2]}i=m;return}function lq(a,b,d){a=a|0;b=b|0;d=d|0;a=c[(a&p)+8>>2]|0;switch(b&255|0){case 228:case 221:case 220:case 210:case 209:case 208:case 205:case 203:case 200:case 188:case 179:{Nk(c[(a&p)>>2]|0,c[(d&p)>>2]|0);break}case 239:case 234:{Fk(c[(a&p)>>2]|0,c[(d&p)>>2]|0);break}case 236:{Hk(c[(a&p)>>2]|0,c[(d&p)+4>>2]|0);break}case 243:case 238:case 229:case 227:case 216:case 204:case 202:{Gk(c[(a&p)>>2]|0,c[(d&p)>>2]|0);break}case 175:case 174:{Gk(c[(a&p)>>2]|0,c[(d&p)>>2]|0);break}case 252:case 197:{Qn(c[(a&p)>>2]|0,c[(d&p)>>2]|0);break}case 223:case 219:case 217:{Hk(c[(a&p)>>2]|0,c[(d&p)>>2]|0);break}case 213:case 212:case 201:case 194:{Do(c[(a&p)>>2]|0,c[(d&p)>>2]|0);break}case 207:case 196:case 195:case 163:{Mk(c[(a&p)>>2]|0,c[(d&p)>>2]|0,1);break}default:{}}return} 9 function Cl(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();o=s;r=b+16|0;if((d[(r&n)>>0]|0)<2?(d[(b&n)+17>>0]|0)<2:0)g=0;else{cp(b);q=b+64|0;l=c[(q&p)>>2]|0;h=c[(l&p)>>2]|0;do if(!h)h=0;else{if((h|0)==14696){Gi(l,0,0)|0;c[(l&p)>>2]=0;h=0;break}k=a[(b&n)+5>>0]|0;if(k<<24>>24==3){k=b+72|0;o=k;if(!((c[(o&p)>>2]|0)==0&(c[(o&p)+4>>2]|0)==0)){h=ac[c[(h&p)+16>>2]&63](l,0,0)|0;if(!h)if(!(a[(b&n)+8>>0]|0))h=0;else{h=c[(q&p)>>2]|0;h=rc[c[((c[(h&p)>>2]|0)&p)+20>>2]&127](h,d[(b&n)+11>>0]|0)|0}}else h=0;q=k;c[(q&p)>>2]=0;c[(q&p)+4>>2]=0;break}else if(k<<24>>24!=1?(a[(b&n)+4>>0]|0)==0|k<<24>>24==5:0){q=(a[(b&n)+12>>0]|0)==0;lc[c[(h&p)+4>>2]&127](l)|0;c[(l&p)>>2]=0;if(!q){h=0;break}h=c[(b&p)>>2]|0;h=ac[c[(h&p)+28>>2]&63](h,c[(b&p)+172>>2]|0,0)|0;break}m=b+72|0;k=m;if(!((c[(k&p)>>2]|0)==0&(c[(k&p)+4>>2]|0)==0)){g=b+160|0;k=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;if((e|0)!=0|(k|0)==0&(g|0)==0)h=ac[c[(h&p)+16>>2]&63](l,0,0)|0;else h=tc[c[(h&p)+12>>2]&31](l,14664,28,0,0)|0;if(!h){if(!(a[(b&n)+7>>0]|0)){h=c[(q&p)>>2]|0;h=rc[c[((c[(h&p)>>2]|0)&p)+20>>2]&127](h,d[(b&n)+11>>0]|16)|0}else h=0;if((h|0)==0&((g|0)>0|(g|0)==0&k>>>0>0)){h=c[(q&p)>>2]|0;h=rc[c[((c[(h&p)>>2]|0)&p)+24>>2]&127](h,o)|0;l=c[(o&p)+4>>2]|0;if((h|0)==0&((l|0)>(g|0)|((l|0)==(g|0)?(c[(o&p)>>2]|0)>>>0>k>>>0:0))){h=c[(q&p)>>2]|0;h=ac[c[((c[(h&p)>>2]|0)&p)+16>>2]&63](h,k,g)|0}}}}else h=0;q=m;c[(q&p)>>2]=0;c[(q&p)+4>>2]=0}while(0);k=b+56|0;ei(c[(k&p)>>2]|0);c[(k&p)>>2]=0;c[(b&p)+44>>2]=0;k=b+204|0;g=c[(k&p)>>2]|0;e=c[(g&p)>>2]|0;if(e){do{xl(e);e=c[(g&p)>>2]|0}while((e|0)!=0);g=c[(k&p)>>2]|0}k=b+24|0;dp(g,c[(k&p)>>2]|0);l=b+208|0;g=c[(l&p)>>2]|0;if(!g){if((h|0)==0&(f|0)!=0){g=c[(k&p)>>2]|0;if((c[(b&p)+32>>2]|0)>>>0>g>>>0)h=Bl(b,g)|0;else h=0}}else{e=g+44|0;if(a[(e&n)>>0]|0){if(!(a[(g&n)+43>>0]|0)){q=c[(g&p)+4>>2]|0;pc[c[((c[(q&p)>>2]|0)&p)+56>>2]&31](q,0,1,9)|0}a[(e&n)>>0]=0;a[(g&n)+47>>0]=0}}if((h|0)==0&(f|0)!=0){g=c[(b&p)+60>>2]|0;h=c[(g&p)>>2]|0;if(!h)k=0;else{k=ac[c[(h&p)+40>>2]&63](g,22,0)|0;k=(k|0)==12?0:k}}else k=h;do if(!(a[(b&n)+4>>0]|0)){g=c[(l&p)>>2]|0;if((g|0)!=0?(ep(g,0)|0)==0:0){g=0;break}h=c[(b&p)+60>>2]|0;g=c[(h&p)>>2]|0;if(g){if(!(a[(b&n)+13>>0]|0))g=rc[c[(g&p)+32>>2]&127](h,1)|0;else g=0;h=b+17|0;if((a[(h&n)>>0]|0)!=5)a[(h&n)>>0]=1}else g=0;a[(b&n)+18>>0]=0}else g=0;while(0);a[(r&n)>>0]=1;a[(b&n)+19>>0]=0;g=(k|0)==0?g:k}i=s;return g|0}function Dl(d){d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;j=c[(d&p)+4>>2]|0;g=c[(d&p)>>2]|0;a[(j&n)+19>>0]=0;k=d+8|0;do if(a[(k&n)>>0]|0){if((c[(g&p)+152>>2]|0)>1){g=j+76|0;if((c[(g&p)>>2]|0)==(d|0)?(c[(g&p)>>2]=0,f=j+22|0,b[(f&o)>>1]=e[(f&o)>>1]&65439,f=c[(j&p)+72>>2]|0,(f|0)!=0):0)do{a[(f&n)+8>>0]=1;f=c[(f&p)+12>>2]|0}while((f|0)!=0);a[(k&n)>>0]=1;break}g=j+72|0;f=c[(g&p)>>2]|0;a:do if(f)do while(1){h=f+12|0;i=c[(h&p)>>2]|0;if((c[(f&p)>>2]|0)!=(d|0)){g=h;f=i;break}c[(g&p)>>2]=i;if((c[(f&p)+4>>2]|0)==1)f=i;else{Wc(f);f=c[(g&p)>>2]|0}if(!f)break a}while((f|0)!=0);while(0);f=j+76|0;if((c[(f&p)>>2]|0)!=(d|0)){f=c[(j&p)+40>>2]|0;if((f|0)==2){i=j+22|0;b[(i&o)>>1]=e[(i&o)>>1]&65471;c[(j&p)+40>>2]=1;i=20;break}}else{c[(f&p)>>2]=0;f=j+22|0;b[(f&o)>>1]=e[(f&o)>>1]&65439;f=c[(j&p)+40>>2]|0}f=f+-1|0;c[(j&p)+40>>2]=f;if(!f){a[(j&n)+20>>0]=0;i=20}else i=20}else i=20;while(0);if(((i|0)==20?(a[(k&n)>>0]=0,(a[(j&n)+20>>0]|0)==0):0)?(l=j+12|0,m=c[(l&p)>>2]|0,(m|0)!=0):0){c[(l&p)>>2]=0;Bg(c[(m&p)+68>>2]|0)}return}function El(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=((c[(a&p)+36>>2]|0)>>>0)/5|0;if(b>>>0<2){e=0;g=c[(a&p)+32>>2]|0;i=c[2514]|0}else{e=b+-2|0;e=e-((e>>>0)%((h+1|0)>>>0)|0)|0;i=c[2514]|0;g=c[(a&p)+32>>2]|0;e=((e+1|0)==((i>>>0)/(g>>>0)|0|0)?3:2)+e|0}e=b-d-(((d-b+h+e|0)>>>0)/(h>>>0)|0)|0;f=a+32|0;a=((i>>>0)/(g>>>0)|0)+1|0;d=((i>>>0)/(g>>>0)|0)+1|0;a=((a>>>0<b>>>0&e>>>0<a>>>0)<<31>>31)+e|0;while(1){if(a>>>0<2)e=0;else{e=a+-2|0;e=e-((e>>>0)%((h+1|0)>>>0)|0)|0;e=((e+1|0)==((i>>>0)/((c[(f&p)>>2]|0)>>>0)|0|0)?3:2)+e|0}if(!((e|0)==(a|0)|(a|0)==(d|0)))break;a=a+-1|0}return a|0}function Fl(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=(d|0)==0;f=b;a:while(1){do if((f|0)!=(e|0)){if(!g?(c[(f&p)+60>>2]|0)!=(d|0):0)break;if(((a[(f&n)+73>>0]|0)+-1&255)<2){b=fp(f)|0;if(!b)break;else break a}else{gp(f);break}}while(0);f=c[(f&p)+8>>2]|0;if(!f){b=0;break}}return b|0}function Gl(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+48|0;if((i|0)>=(j|0))fa();k=x;m=x+32|0;u=x+28|0;l=x+24|0;q=x+20|0;s=x+16|0;v=x+12|0;t=x+8|0;if(f>>>0<2)o=0;else{o=f+-2|0;o=o-((o>>>0)%(((((c[(b&p)+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;o=((o+1|0)==(((c[2514]|0)>>>0)/((c[(b&p)+32>>2]|0)>>>0)|0|0)?3:2)+o|0}do if((o|0)!=(f|0)?((((c[2514]|0)>>>0)/((c[(b&p)+32>>2]|0)>>>0)|0)+1|0)!=(f|0):0){r=c[((c[(b&p)+12>>2]|0)&p)+56>>2]|0;if((d[(r&n)+37>>0]|0)<<16|(d[(r&n)+36>>0]|0)<<24|(d[(r&n)+38>>0]|0)<<8|(d[(r&n)+39>>0]|0)){h=hp(b,f,m,u)|0;if(!h){r=a[(m&n)>>0]|0;if(r<<24>>24==2){if(g){h=0;break}h=ip(b,q,l,f,1)|0;if(h)break;k=c[(q&p)>>2]|0;if(!k){w=24;break}Bg(c[(k&p)+68>>2]|0);w=24;break}else if(r<<24>>24!=1){h=dl(b,f,v,0)|0;if(h)break;k=(g|0)==0;m=k?2:0;k=k?e:0;l=(g|0)!=0;do{h=ip(b,t,s,k,m)|0;if(h){w=16;break}o=c[(t&p)>>2]|0;if(o)Bg(c[(o&p)+68>>2]|0);o=c[(s&p)>>2]|0}while(l&o>>>0>e>>>0);if((w|0)==16){k=c[(v&p)>>2]|0;if(!k)break;Bg(c[(k&p)+68>>2]|0);break}m=c[(v&p)>>2]|0;h=Zm(b,m,r,c[(u&p)>>2]|0,o,g)|0;if(m)Bg(c[(m&p)+68>>2]|0);if(!h){w=24;break}else break}else{c[(k&p)>>2]=56228;c[(k&p)+4>>2]=10788;bd(11,13600,k);h=11;break}}}else h=101}else w=24;while(0);if((w|0)==24)if(!g){l=((c[2514]|0)>>>0)/((c[(b&p)+32>>2]|0)>>>0)|0;m=l+1|0;o=b+36|0;k=f;while(1){h=k+-1|0;if((h|0)==(m|0)){k=h;continue}if(h>>>0<2)k=0;else{k=k+-3|0;k=k-((k>>>0)%(((((c[(o&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(l|0)?3:2)+k|0}if((k|0)==(h|0))k=h;else break}a[(b&n)+19>>0]=1;c[(b&p)+44>>2]=h;h=0}else h=0;i=x;return h|0}function Hl(b){b=b|0;var e=0,f=0,g=0;g=b+16|0;f=a[(g&n)>>0]|0;a:do if(f<<24>>24!=6)if((f&255)>=2){do if(!(c[(b&p)+208>>2]|0)){if(!(f<<24>>24==2?1:(c[(c[(b&p)+64>>2]&p)>>2]|0)==0)){e=Ko(b,0)|0;break}e=Cl(b,0,0)|0;if((a[(b&n)+15>>0]|0)==0&(f&255)>2){c[(b&p)+40>>2]=4;a[(g&n)>>0]=6;break a}}else{e=jp(b,2,-1)|0;f=Cl(b,d[(b&n)+19>>0]|0,0)|0;e=(e|0)==0?f:e}while(0);f=e&255;if((f|0)==10|(f|0)==13){c[(b&p)+40>>2]=e;a[(g&n)>>0]=6}}else e=0;else e=c[(b&p)+40>>2]|0;while(0);return e|0}function Il(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;a:do if((d|0)!=0?(h=c[(d&p)+4>>2]|0,c[(h&p)+4>>2]=c[(d&p)>>2],h=c[(h&p)+8>>2]|0,(h|0)!=0):0){l=(f|0)==0;while(1){if(!l?(a[(h&n)+72>>0]&1)==0:0){if(((a[(h&n)+73>>0]|0)+-1&255)<2?(g=fp(h)|0,(g|0)!=0):0)break}else{f=h+56|0;Wc(c[(f&p)>>2]|0);c[(f&p)>>2]=0;a[(h&n)+73>>0]=4;c[(h&p)+68>>2]=e}f=h+76|0;if((b[(f&o)>>1]|0)>=0){k=0;while(1){i=h+(k<<2)+120|0;j=c[(i&p)>>2]|0;if(j)Bg(c[(j&p)+68>>2]|0);c[(i&p)>>2]=0;if((k|0)<(b[(f&o)>>1]|0))k=k+1|0;else break}}h=c[(h&p)+8>>2]|0;if(!h)break a}Il(d,g,0)|0;return g|0}while(0);return 0}function Jl(a){a=a|0;var b=0,d=0,e=0;a:do if(!(c[(a&p)+4>>2]|0)){d=c[(a&p)+20>>2]|0;if((d|0)>0){a=c[(a&p)+16>>2]|0;b=0;while(1){e=c[(a+(b<<4)&p)+4>>2]|0;if((e|0)!=0?(c[(e&p)+16>>2]|0)!=0:0){a=1;break a}b=b+1|0;if((b|0)>=(d|0)){a=0;break}}}else a=0}else a=1;while(0);return a|0}function Kl(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=c[3164]|0;if(f)nc[f&3]();l=d+20|0;j=c[(l&p)>>2]|0;i=(j|0)>0;if(i){f=c[(d&p)+16>>2]|0;h=0;do{g=c[(f+(h<<4)&p)+4>>2]|0;if(g)c[((c[(g&p)+4>>2]|0)&p)+4>>2]=c[(g&p)>>2];h=h+1|0}while((h|0)!=(j|0))}m=d+24|0;if(!(c[(m&p)>>2]&2))f=1;else f=(a[(d&n)+145>>0]|0)!=0;if(i){k=d+16|0;f=f&1;i=j;j=0;h=0;while(1){g=c[((c[(k&p)>>2]|0)+(j<<4)&p)+4>>2]|0;if(!g)g=i;else{h=(a[(g&n)+8>>0]|0)==2?1:h;Lg(g,e,f);g=c[(l&p)>>2]|0}j=j+1|0;if((j|0)>=(g|0))break;else i=g}}else h=0;Rn(d,68);f=c[3166]|0;if(f)nc[f&3]();f=c[(m&p)>>2]|0;if((f&2|0)!=0?(a[(d&n)+145>>0]|0)==0:0){f=c[(d&p)+4>>2]|0;if(f)do{g=f+88|0;b[(g&o)>>1]=b[(g&o)>>1]|8;f=c[(f&p)+52>>2]|0}while((f|0)!=0);Eg(d);f=c[(m&p)>>2]|0}g=d+504|0;c[(g&p)>>2]=0;c[(g&p)+4>>2]=0;c[(g&p)+8>>2]=0;c[(g&p)+12>>2]=0;c[(m&p)>>2]=f&-16777217;f=c[(d&p)+204>>2]|0;do if(f){if((h|0)==0?(a[(d&n)+63>>0]|0)!=0:0)break;cc[f&31](c[(d&p)+200>>2]|0)}while(0);return}function Ll(b){b=b|0;var d=0,e=0;e=b+488|0;d=c[(e&p)>>2]|0;if(d)do{c[(e&p)>>2]=c[(d&p)+24>>2];mg(b,d);d=c[(e&p)>>2]|0}while((d|0)!=0);c[(b&p)+496>>2]=0;c[(b&p)+500>>2]=0;a[(b&n)+70>>0]=0;return}function Ml(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=c[(b&p)+4>>2]|0;c[(h&p)+4>>2]=c[(b&p)>>2];e=c[(h&p)+8>>2]|0;if(e)do{d=e;e=c[(e&p)+8>>2]|0;if((c[(d&p)>>2]|0)==(b|0))kp(d)}while((e|0)!=0);Lg(b,0,0);a:do if(a[(b&n)+9>>0]|0){e=h+64|0;d=c[(e&p)>>2]|0;c[(e&p)>>2]=d+-1;if((d|0)<2){d=c[3664]|0;if((d|0)==(h|0)){c[3664]=c[(h&p)+68>>2];f=12;break}else e=d;do{if(!e){f=12;break a}d=e+68|0;e=c[(d&p)>>2]|0}while((e|0)!=(h|0));c[(d&p)>>2]=c[(h&p)+68>>2];f=12}}else f=12;while(0);if((f|0)==12){lp(c[(h&p)>>2]|0);d=c[(h&p)+52>>2]|0;e=h+48|0;if((d|0)!=0?(g=c[(e&p)>>2]|0,(g|0)!=0):0)cc[d&31](g);d=c[(e&p)>>2]|0;if(d)Wc(d);d=h+80|0;e=c[(d&p)>>2]|0;if(e){e=e+-4|0;c[(d&p)>>2]=e;$k(e);c[(d&p)>>2]=0}Wc(h)}e=c[(b&p)+28>>2]|0;d=b+24|0;if(e)c[(e&p)+24>>2]=c[(d&p)>>2];d=c[(d&p)>>2]|0;if(d)c[(d&p)+28>>2]=e;Wc(b);return}function Nl(a,b){a=a|0;b=b|0;var d=0;b=c[(b&p)+32>>2]|0;if((b|0)!=0?(d=(c[(b&p)>>2]|0)+-1|0,c[(b&p)>>2]=d,(d|0)==0):0){cc[c[(b&p)+4>>2]&31](c[(b&p)+8>>2]|0);mg(a,b)}return}function Ol(a){a=a|0;var b=0,d=0;d=a+8|0;b=c[(d&p)>>2]|0;c[(d&p)>>2]=0;d=a+12|0;Wc(c[(d&p)>>2]|0);c[(d&p)>>2]=0;c[(a&p)>>2]=0;if(b)do{d=b;b=c[(b&p)>>2]|0;Wc(d)}while((b|0)!=0);c[(a&p)+4>>2]=0;return}function Pl(a){a=a|0;var b=0,d=0,e=0,f=0;if(a){e=c[(a&p)>>2]|0;lg(e,a);f=c[(a&p)+48>>2]|0;d=a+52|0;b=c[(d&p)>>2]|0;if(!f)c[(e&p)+4>>2]=b;else{c[(f&p)+52>>2]=b;b=c[(d&p)>>2]|0}if(b)c[(b&p)+48>>2]=f;c[(a&p)+40>>2]=-1241070648;c[(a&p)>>2]=0;mg(e,a)}return}function Ql(d){d=d|0;var e=0;a[(d&n)+65>>0]=0;c[(d&p)+52>>2]=7;d=c[(d&p)+236>>2]|0;do if(d){e=d+8|0;if(!(b[(e&o)>>1]&9312)){b[(e&o)>>1]=1;break}else{vg(d);break}}while(0);return}function Rl(d){d=d|0;var f=0,g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,H=0,I=0;I=i;i=i+32|0;if((i|0)>=(j|0))fa();x=I;A=I+16|0;t=I+12|0;u=I+8|0;H=c[(d&p)>>2]|0;if(a[(H&n)+65>>0]|0)c[(d&p)+80>>2]=7;g=c[(d&p)+200>>2]|0;if(g)fw(g|0,0,c[(d&p)+196>>2]|0)|0;k=d+176|0;g=c[(k&p)>>2]|0;if(g){while(1){h=c[(g&p)+4>>2]|0;if(!h)break;else g=h}Xl(g)|0;c[(k&p)>>2]=0;c[(d&p)+184>>2]=0}r=d+56|0;g=c[(r&p)>>2]|0;a:do if((g|0)!=0?(s=d+36|0,f=c[(s&p)>>2]|0,(f|0)>0):0){k=0;while(1){h=c[(g+(k<<2)&p)>>2]|0;if(!h)h=f;else{Bm(d,h);c[((c[(r&p)>>2]|0)+(k<<2)&p)>>2]=0;h=c[(s&p)>>2]|0}k=k+1|0;if((k|0)>=(h|0))break a;g=c[(r&p)>>2]|0;f=h}}while(0);g=c[(d&p)+8>>2]|0;if(g)ch(g+40|0,c[(d&p)+28>>2]|0);s=d+180|0;g=c[(s&p)>>2]|0;if(g)do{c[(s&p)>>2]=c[(g&p)+4>>2];r=g+80|0;f=g+60|0;h=c[(f&p)>>2]|0;m=r+(h*40|0)|0;q=g+64|0;if((c[(q&p)>>2]|0)>0){k=0;do{Bm(c[(g&p)>>2]|0,c[(m+(k<<2)&p)>>2]|0);k=k+1|0}while((k|0)<(c[(q&p)>>2]|0));h=c[(f&p)>>2]|0}ch(r,h);mg(c[(c[(g&p)>>2]&p)>>2]|0,g);g=c[(s&p)>>2]|0}while((g|0)!=0);if(c[(d&p)+204>>2]|0)em(d,-1,0);E=d+40|0;b:do if((c[(E&p)>>2]|0)==-1108210269){C=d+76|0;if((c[(C&p)>>2]|0)>-1){D=d+88|0;q=b[(D&o)>>1]|0;if(q&128){B=d+80|0;k=c[(B&p)>>2]|0;m=k&255;h=m+-7|0;do if(h>>>0<7?(l=(77>>>(h&127)&1)!=0,l):0)if((q&64)==0|(m|0)!=9){if((m|0)==7|(m|0)==13?(q&32)!=0:0){f=2;break}Kl(H,516);Ll(H);a[(H&n)+63>>0]=1;c[(d&p)+92>>2]=0;k=c[(B&p)>>2]|0;f=0}else{l=1;f=0}else{l=0;f=0}while(0);if((k|0)==0?(z=d+144|0,y=c[(z&p)+4>>2]|0,(y|0)>0|(y|0)==0&(c[(z&p)>>2]|0)>>>0>0):0){z=c[(d&p)>>2]|0;c[(B&p)>>2]=787;a[(d&n)+86>>0]=2;dh(d+44|0,z,34376,x)}m=H+304|0;if((c[(m&p)>>2]|0)>0?(c[(H&p)+328>>2]|0)==0:0)F=141;else if((a[(H&n)+63>>0]|0)!=0?(c[(H&p)+156>>2]|0)==(((e[(D&o)>>1]|0)>>>6&1^1)&65535|0):0){do if(!(c[(B&p)>>2]|0))F=41;else{if(!((a[(d&n)+86>>0]|0)!=3|l)){F=41;break}Kl(H,0);c[(d&p)+92>>2]=0}while(0);c:do if((F|0)==41){d:do if(tm(d,1)|0)if(!(b[(D&o)>>1]&64))g=787;else{f=1;break b}else{l=H+328|0;h=c[(l&p)>>2]|0;c[(l&p)>>2]=0;k=c[(m&p)>>2]|0;e:do if((k|0)>0){q=0;f:while(1){s=c[((c[(h+(q<<2)&p)>>2]|0)&p)+8>>2]|0;do if(s){r=c[((c[(s&p)>>2]|0)&p)+60>>2]|0;if(!r)break;g=lc[r&127](s)|0;Mm(d,s);if(g)break f;k=c[(m&p)>>2]|0}while(0);q=q+1|0;if((q|0)>=(k|0)){F=50;break e}}c[(l&p)>>2]=h;F=135}else F=50;while(0);g:do if((F|0)==50){c[(l&p)>>2]=h;y=H+20|0;z=H+16|0;r=0;k=0;q=0;h:while(1){m=c[(y&p)>>2]|0;if((r|0)>=(m|0)){h=k;break}l=c[(z&p)>>2]|0;s=r;while(1){r=c[(l+(s<<4)&p)+4>>2]|0;if((r|0)!=0?(a[(r&n)+8>>0]|0)==2:0)break;s=s+1|0;if((s|0)>=(m|0)){h=k;break h}}g=c[(r&p)+4>>2]|0;c[(g&p)+4>>2]=c[(r&p)>>2];g=bp(c[(g&p)>>2]|0)|0;if(!g){r=s+1|0;k=((s|0)!=1&1)+k|0;q=1}else{F=135;break g}}do if(q){l=c[(H&p)+196>>2]|0;if(!l)break;if(lc[l&127](c[(H&p)+192>>2]|0)|0){g=531;break d}}while(0);k=c[((c[(z&p)>>2]|0)&p)+4>>2]|0;q=c[(c[(k&p)+4>>2]&p)>>2]|0;m=(a[(q&n)+15>>0]|0)==0;if(m){s=c[(q&p)+168>>2]|0;if(s)F=62}else{s=10360;F=62}do if((F|0)==62){r=s;while(1)if(!(a[(r&n)>>0]|0))break;else r=r+1|0;if((r-s&1073741823|0)==0|(h|0)<2)break;w=c[(H&p)>>2]|0;if(m){l=c[(q&p)+168>>2]|0;c[(A&p)>>2]=0;if(!l){s=0;l=0}else F=80}else{c[(A&p)>>2]=0;l=10360;F=80}if((F|0)==80){q=l;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;s=q-l&1073741823}c[(x&p)>>2]=l;v=uh(H,44696,x)|0;if(!v){g=7;break d}s=v+s|0;r=w+32|0;q=0;i:while(1){do if(q){if((q|0)>100){F=87;break i}if((q|0)!=1)break;c[(x&p)>>2]=v;bd(13,44728,x)}while(0);cd(4,u);g=c[(u&p)>>2]|0;c[(x&p)>>2]=g>>>8;c[(x&p)+4>>2]=g&255;ad(13,s,44744,x)|0;g=pc[c[(r&p)>>2]&31](w,v,0,t)|0;m=(g|0)==0;if(m&(c[(t&p)>>2]|0)!=0)q=q+1|0;else{F=91;break}}if((F|0)==87){c[(x&p)>>2]=v;bd(13,44712,x);ac[c[(w&p)+28>>2]&63](w,v,0)|0;F=92}else if((F|0)==91)if(m)F=92;do if((F|0)==92){g=mp(w,v,A,16406,0)|0;if(g)break;l=c[(y&p)>>2]|0;j:do if((l|0)>0){t=0;r=0;u=0;q=0;k:while(1){s=c[((c[(z&p)>>2]|0)+(u<<4)&p)+4>>2]|0;do if(!s)s=t;else{if((a[(s&n)+8>>0]|0)!=2){s=t;break}m=c[(s&p)+4>>2]|0;k=c[(m&p)>>2]|0;h=c[(k&p)+172>>2]|0;if(!h){s=t;break}if(!q){c[(m&p)+4>>2]=c[(s&p)>>2];q=(a[(k&n)+7>>0]|0)==0&1}k=c[(A&p)>>2]|0;s=h;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;m=h;g=tc[c[((c[(k&p)>>2]|0)&p)+12>>2]&31](k,h,(s-m&1073741823)+1|0,t,r)|0;s=h;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;if(g){l=k;F=106;break k}s=jw((s-m&1073741823)+1|0,0,t|0,r|0)|0;l=c[(y&p)>>2]|0;r=G}while(0);u=u+1|0;if((u|0)>=(l|0))break;else t=s}if((F|0)==106){h=c[(l&p)>>2]|0;if(h){lc[c[(h&p)+4>>2]&127](k)|0;c[(l&p)>>2]=0}Wc(k);ac[c[(w&p)+28>>2]&63](w,v,0)|0;mg(H,v);F=135;break g}do if(!q)q=0;else{m=c[(A&p)>>2]|0;if((lc[c[((c[(m&p)>>2]|0)&p)+48>>2]&127](m)|0)&1024)break;g=rc[c[((c[(m&p)>>2]|0)&p)+20>>2]&127](m,2)|0;if(!g)break;h=c[(m&p)>>2]|0;if(h){lc[c[(h&p)+4>>2]&127](m)|0;c[(m&p)>>2]=0}Wc(m);ac[c[(w&p)+28>>2]&63](w,v,0)|0;mg(H,v);F=135;break g}while(0);k=c[(y&p)>>2]|0;if((k|0)>0)s=0;else{s=1;g=0;break}while(1){m=c[((c[(z&p)>>2]|0)+(s<<4)&p)+4>>2]|0;if(m){g=Kg(m,v)|0;if(g){s=0;break j}k=c[(y&p)>>2]|0}s=s+1|0;if((s|0)>=(k|0)){s=1;g=0;break}}}else{s=1;q=0;g=0}while(0);m=c[(A&p)>>2]|0;l=c[(m&p)>>2]|0;if(l){lc[c[(l&p)+4>>2]&127](m)|0;c[(m&p)>>2]=0}Wc(m);if(!s){mg(H,v);F=135;break g}g=ac[c[(w&p)+28>>2]&63](w,v,q)|0;mg(H,v);if(g){F=135;break g}g=c[3164]|0;if(g)nc[g&3]();g=c[(y&p)>>2]|0;if((g|0)>0){k=0;do{h=c[((c[(z&p)>>2]|0)+(k<<4)&p)+4>>2]|0;if(h){Jg(h,1)|0;g=c[(y&p)>>2]|0}k=k+1|0}while((k|0)<(g|0))}g=c[3166]|0;if(g)nc[g&3]();Rn(H,64);break g}while(0);mg(H,v);F=135;break g}while(0);g=c[(y&p)>>2]|0;do if((g|0)>0){h=1;while(1){if(k){g=Kg(k,0)|0;if(g){F=135;break g}g=c[(y&p)>>2]|0}if((h|0)>=(g|0))break;k=c[((c[(z&p)>>2]|0)+(h<<4)&p)+4>>2]|0;h=h+1|0}if((g|0)>0)k=0;else break;do{h=c[((c[(z&p)>>2]|0)+(k<<4)&p)+4>>2]|0;if(h){g=Jg(h,0)|0;if(g){F=135;break g}g=c[(y&p)>>2]|0}k=k+1|0}while((k|0)<(g|0))}while(0);Rn(H,64)}while(0);do if((F|0)==135){if(!g)break;else if((g|0)!=5)break d;if(!(b[(D&o)>>1]&64)){g=5;break d}else{f=5;break b}}while(0);A=H+504|0;F=H+24|0;c[(A&p)>>2]=0;c[(A&p)+4>>2]=0;c[(A&p)+8>>2]=0;c[(A&p)+12>>2]=0;c[(F&p)>>2]=c[(F&p)>>2]&-16777219;break c}while(0);c[(B&p)>>2]=g;Kl(H,0);c[(d&p)+92>>2]=0}while(0);c[(H&p)+500>>2]=0;F=146}else F=141;do if((F|0)==141)if(!f)if(c[(B&p)>>2]|0){g=a[(d&n)+86>>0]|0;if(g<<24>>24==2){f=2;F=147;break}else if(g<<24>>24==3){f=1;F=147;break}else{Kl(H,516);Ll(H);a[(H&n)+63>>0]=1;c[(d&p)+92>>2]=0;F=146;break}}else{f=1;F=147}else F=147;while(0);if((F|0)==146)if(!f)f=0;else F=147;if((F|0)==147){g=$l(d,f)|0;if(g){F=c[(B&p)>>2]|0;if((F|0)==0|(F&255|0)==19){c[(B&p)>>2]=g;F=d+44|0;mg(H,c[(F&p)>>2]|0);c[(F&p)>>2]=0}Kl(H,516);Ll(H);a[(H&n)+63>>0]=1;c[(d&p)+92>>2]=0}}if(b[(D&o)>>1]&4){if((f|0)==2){c[(H&p)+80>>2]=0;f=d+92|0}else{f=d+92|0;B=c[(f&p)>>2]|0;c[(H&p)+80>>2]=B;F=H+84|0;c[(F&p)>>2]=(c[(F&p)>>2]|0)+B}c[(f&p)>>2]=0}}if((c[(C&p)>>2]|0)>-1){f=H+148|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+-1;f=b[(D&o)>>1]|0;if(!(f&64)){f=H+156|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+-1;f=b[(D&o)>>1]|0}if(f&128){F=H+152|0;c[(F&p)>>2]=(c[(F&p)>>2]|0)+-1}}}c[(E&p)>>2]=1369188723;f=d+80|0;if(!(a[((c[(d&p)>>2]|0)&n)+65>>0]|0)){f=(c[(f&p)>>2]|0)==5?5:0;break}else{c[(f&p)>>2]=7;f=0;break}}else f=0;while(0);i=I;return f|0}function Sl(a,f){a=a|0;f=f|0;var g=0,h=0,i=0,j=0;i=a+8|0;h=e[(i&o)>>1]|0;do if(h&18){b[(i&o)>>1]=h|2;if(h&16384)Rg(a)|0;g=a+10|0;f=f&255;h=f&247;if((d[(g&n)>>0]|0|0)!=(h|0))Yl(a,h)|0;if(((f&8|0)!=0?(c[(a&p)+16>>2]&1|0)!=0:0)?(Vl(a)|0)!=0:0){g=0;break}if((b[(i&o)>>1]&514)==2){am(a)|0;j=12}else j=12}else{bm(a,f,0)|0;h=f&247;g=a+10|0;j=12}while(0);if((j|0)==12)if((d[(g&n)>>0]|0|0)==(h|0))g=c[(a&p)+16>>2]|0;else g=0;return g|0}function Tl(b,c,e,f){b=b|0;c=c|0;e=e|0;f=f|0;var g=0,i=0.0,j=0,k=0.0,l=0,m=0,o=0,p=0,r=0,s=0,t=0,u=0;h[(c&q)>>3]=0.0;j=f&255;if(f<<24>>24==1){f=b;g=e;r=1;u=0}else{g=3-j|0;a:do if((g|0)<(e|0))while(1){f=g+2|0;if(a[(b+g&n)>>0]|0){e=1;break a}if((f|0)<(e|0))g=f;else{e=0;g=f;break}}else e=0;while(0);f=b+(j&1)|0;g=j+-3+g|0;r=2;u=e}t=b+g|0;b:do if(f>>>0<t>>>0){while(1){g=a[(f&n)>>0]|0;if(!(a[(g&255&n)+10368>>0]&1))break;f=f+r|0;if(f>>>0>=t>>>0){f=0;break b}}if(g<<24>>24==45){f=f+r|0;s=-1}else if(g<<24>>24==43){f=f+r|0;s=1}else s=1;c:do if(f>>>0<t>>>0){g=0;do{if((a[(f&n)>>0]|0)!=48)break c;f=f+r|0;g=g+1|0}while(f>>>0<t>>>0)}else g=0;while(0);d:do if(f>>>0<t>>>0){b=0;j=0;while(1){e=a[(f&n)>>0]|0;if(!(((e&255)+-48|0)>>>0<10&((b|0)<214748364|(b|0)==214748364&j>>>0<3435973835))){l=b;break d}j=sw(j|0,b|0,10,0)|0;b=(e<<24>>24)+-48|0;j=jw(b|0,((b|0)<0)<<31>>31|0,j|0,G|0)|0;b=G;f=f+r|0;g=g+1|0;if(f>>>0>=t>>>0){l=b;break}}}else{j=0;l=0}while(0);e:do if(f>>>0<t>>>0){e=0;while(1){b=a[(f&n)>>0]|0;if(((b&255)+-48|0)>>>0>=10){m=e;break}f=f+r|0;g=g+1|0;b=e+1|0;if(f>>>0<t>>>0)e=b;else{o=l;m=b;b=0;l=1;e=1;break e}}f:do if(b<<24>>24==46){e=f+r|0;g:do if(e>>>0<t>>>0){o=e;while(1){b=a[(o&n)>>0]|0;if(!(((b&255)+-48|0)>>>0<10&((l|0)<214748364|(l|0)==214748364&j>>>0<3435973835))){e=o;o=l;break g}j=sw(j|0,l|0,10,0)|0;l=(b<<24>>24)+-48|0;j=jw(l|0,((l|0)<0)<<31>>31|0,j|0,G|0)|0;l=G;g=g+1|0;b=m+-1|0;e=f+(r<<1)|0;if(e>>>0<t>>>0){f=o;o=e;m=b}else{f=o;o=l;m=b;break}}}else o=l;while(0);if(e>>>0<t>>>0){l=r<<1;b=e;while(1){if(((d[(b&n)>>0]|0)+-48|0)>>>0>=10){e=b;break f}e=f+l|0;g=g+1|0;if(e>>>0<t>>>0){f=b;b=e}else break}}}else{e=f;o=l}while(0);if(e>>>0<t>>>0){p=a[(e&n)>>0]|0;h:do if(p<<24>>24==69|p<<24>>24==101){f=e+r|0;if(f>>>0>=t>>>0){b=0;l=0;e=1;break e}b=a[(f&n)>>0]|0;if(b<<24>>24==45){f=e+(r<<1)|0;p=-1}else if(b<<24>>24==43){f=e+(r<<1)|0;p=1}else p=1;if(f>>>0<t>>>0){e=0;l=0}else{b=0;l=0;e=p;break e}while(1){b=a[(f&n)>>0]|0;if(((b&255)+-48|0)>>>0>=10){b=e;e=p;break h}if((e|0)<1e4)b=(e*10|0)+-48+(b<<24>>24)|0;else b=1e4;f=f+r|0;if(f>>>0<t>>>0){e=b;l=1}else{l=1;e=p;break}}}else{f=e;b=0;l=1;e=1}while(0);if((g|0)!=0&(l|0)!=0&f>>>0<t>>>0)do{if(!(a[((d[(f&n)>>0]|0)&n)+10368>>0]&1))break e;f=f+r|0}while(f>>>0<t>>>0)}else{f=e;b=0;l=1;e=1}}else{o=l;m=0;b=0;l=1;e=1}while(0);b=(ca(b,e)|0)+m|0;p=(b|0)<0;e=p?0-b|0:b;do if((j|0)==0&(o|0)==0)if((s|0)<0)i=(g|0)!=0?-0.0:0.0;else i=0.0;else{if((b>>31|1|0)>0)if(((o|0)<214748364|(o|0)==214748364&j>>>0<3435973836)&(e|0)>0){b=o;do{e=e+-1|0;j=sw(j|0,b|0,10,0)|0;b=G}while(((b|0)<214748364|(b|0)==214748364&j>>>0<3435973836)&(e|0)>0)}else b=o;else{m=rw(j|0,o|0,10,0)|0;if((m|0)==0&(G|0)==0&(e|0)>0){b=o;do{e=e+-1|0;j=qw(j|0,b|0,10,0)|0;b=G;o=rw(j|0,b|0,10,0)|0}while((o|0)==0&(G|0)==0&(e|0)>0)}else b=o}o=(s|0)<0;m=dw(0,0,j|0,b|0)|0;m=o?m:j;o=o?G:b;if(!e){i=+(m>>>0)+4294967296.0*+(o|0);break}if((e+-308|0)>>>0<34){if(!((e|0)%308|0))k=1.0;else{i=1.0;do{i=i*10.0;e=e+-1|0}while(((e|0)%308|0|0)!=0);k=i}i=+(m>>>0)+4294967296.0*+(o|0);if(p){i=i/k/1.e+308;break}else{i=i*k*1.e+308;break}}if((e|0)>341){i=+(m>>>0)+4294967296.0*+(o|0);if(p){i=i*0.0;break}else{i=i*w;break}}if(!((e|0)%22|0)){j=e;i=1.0}else{j=e;i=1.0;do{i=i*10.0;j=j+-1|0}while(((j|0)%22|0|0)!=0)}if((j|0)>0){do{i=i*1.0e22;j=j+-22|0}while((j|0)>0);k=i}else k=i;i=+(m>>>0)+4294967296.0*+(o|0);if(p){i=i/k;break}else{i=i*k;break}}while(0);h[(c&q)>>3]=i;f=f>>>0>=t>>>0&(g|0)>0&(l|0)!=0&(u|0)==0&1}else f=0;while(0);return f|0}function Ul(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,o=0,q=0,r=0;i=f&255;if(f<<24>>24==1){g=b;h=e;o=1;e=0}else{h=3-i|0;a:do if((h|0)<(e|0))while(1){f=h+2|0;if(a[(b+h&n)>>0]|0){e=1;break a}if((f|0)<(e|0))h=f;else{e=0;h=f;break}}else e=0;while(0);g=b+(i&1)|0;h=i+-3+h|0;o=2}k=b+h|0;b:do if(g>>>0<k>>>0){while(1){h=a[(g&n)>>0]|0;if(!(a[(h&255&n)+10368>>0]&1))break;g=g+o|0;if(g>>>0>=k>>>0){l=0;break b}}if(h<<24>>24==45){g=g+o|0;l=1;break}else if(h<<24>>24==43){g=g+o|0;l=0;break}else{l=0;break}}else l=0;while(0);c:do if(g>>>0<k>>>0){h=g;while(1){if((a[(h&n)>>0]|0)!=48){m=h;break c}h=h+o|0;if(h>>>0>=k>>>0){m=h;break}}}else m=g;while(0);do if(m>>>0<k>>>0){b=m;j=0;i=0;h=0;while(1){f=a[(b&n)>>0]|0;if((f+-48&255)>=10){b=0;k=i;break}i=sw(j|0,i|0,10,0)|0;j=f<<24>>24;i=jw(i|0,G|0,-48,-1)|0;j=jw(i|0,G|0,j|0,((j|0)<0)<<31>>31|0)|0;i=G;h=h+o|0;b=m+h|0;if(b>>>0>=k>>>0){b=1;k=i;break}}i=f<<24>>24;f=(l|0)!=0;if((k|0)>=0)if(f){f=k;r=22;break}else{f=k;r=23;break}else{j=d;c[(j&p)>>2]=f?0:-1;c[(j&p)+4>>2]=f?-2147483648:2147483647;j=f?0:2;break}}else if(!l){b=1;j=0;f=0;i=0;h=0;r=23}else{b=1;j=0;f=0;i=0;h=0;r=22}while(0);if((r|0)==22){l=dw(0,0,j|0,f|0)|0;j=d;c[(j&p)>>2]=l;c[(j&p)+4>>2]=G;j=0}else if((r|0)==23){l=d;c[(l&p)>>2]=j;c[(l&p)+4>>2]=f;j=2}if(((i|0)==0|b?!((h|0)==0&(g|0)==(m|0)):0)?(q=o*19|0,!((h|0)>(q|0)|(e|0)!=0)):0)if((h|0)>=(q|0)){h=0;do{g=a[(m+(ca(h,o)|0)&n)>>0]|0;e=a[(h&n)+11192>>0]|0;h=h+1|0;f=g<<24>>24==e<<24>>24}while(f&(h|0)<18);if(f)g=(a[(m+(o*18|0)&n)>>0]|0)+-56|0;else g=((g<<24>>24)-(e<<24>>24)|0)*10|0;if((g|0)>=0)return ((g|0)>0?1:j)|0;else g=0}else g=0;else g=1;return g|0}function Vl(d){d=d|0;var f=0,g=0;g=d+8|0;f=b[(g&o)>>1]|0;if(f&16384){Rg(d)|0;f=b[(g&o)>>1]|0}do if(f&18){if((c[(d&p)+24>>2]|0)!=0?(c[(d&p)+16>>2]|0)==(c[(d&p)+20>>2]|0):0){f=0;break}f=d+12|0;if(!(eh(d,(c[(f&p)>>2]|0)+2|0,1)|0)){d=d+16|0;a[((c[(d&p)>>2]|0)+(c[(f&p)>>2]|0)&n)>>0]=0;a[((c[(d&p)>>2]|0)+(c[(f&p)>>2]|0)&n)+1>>0]=0;b[(g&o)>>1]=e[(g&o)>>1]|0|512;f=0}else f=7}else f=0;while(0);return f|0}function Wl(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;c=ro(a,b,c,d)|0;if(!c)mg(a,b);return c|0}function Xl(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;d=c[(a&p)>>2]|0;c[(d&p)+200>>2]=c[(a&p)+20>>2];c[(d&p)+196>>2]=c[(a&p)+56>>2];c[(d&p)+4>>2]=c[(a&p)+8>>2];c[(d&p)+32>>2]=c[(a&p)+48>>2];c[(d&p)+8>>2]=c[(a&p)+16>>2];c[(d&p)+28>>2]=c[(a&p)+52>>2];c[(d&p)+56>>2]=c[(a&p)+24>>2];c[(d&p)+36>>2]=c[(a&p)+40>>2];g=a+32|0;f=c[(g&p)+4>>2]|0;b=c[(d&p)>>2]|0;e=b+32|0;c[(e&p)>>2]=c[(g&p)>>2];c[(e&p)+4>>2]=f;c[(d&p)+92>>2]=c[(a&p)+68>>2];c[(b&p)+80>>2]=c[(a&p)+72>>2];return c[(a&p)+44>>2]|0}function Yl(a,c){a=a|0;c=c|0;if((b[(a&o)+8>>1]&2)!=0?(d[(a&n)+10>>0]|0|0)!=(c|0):0)c=Bn(a,c&255)|0;else c=0;return c|0}function Zl(a,d,f){a=a|0;d=d|0;f=f|0;var g=0;g=a+8|0;if(b[(g&o)>>1]&9312)vg(a);c[(a&p)>>2]=c[(d&p)>>2];c[(a&p)+4>>2]=c[(d&p)+4>>2];c[(a&p)+8>>2]=c[(d&p)+8>>2];c[(a&p)+12>>2]=c[(d&p)+12>>2];c[(a&p)+16>>2]=c[(d&p)+16>>2];if(!(b[(d&o)+8>>1]&2048))b[(g&o)>>1]=(e[(g&o)>>1]|0)&58367|f;return}function _l(a,d){a=a|0;d=d|0;var e=0,f=0;if(!((b[(a&o)+8>>1]&9312)==0?(c[(a&p)+24>>2]|0)==0:0))Qg(a);a=a+0|0;e=d+0|0;f=a+40|0;do{c[(a&p)>>2]=c[(e&p)>>2];a=a+4|0;e=e+4|0}while((a|0)<(f|0));b[(d&o)+8>>1]=1;c[(d&p)+24>>2]=0;return}function $l(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,q=0;q=c[(a&p)>>2]|0;m=q+500|0;f=c[(m&p)>>2]|0;do if((f|0)!=0?(n=a+104|0,e=c[(n&p)>>2]|0,(e|0)!=0):0){o=e+-1|0;k=q+20|0;e=c[(k&p)>>2]|0;if((e|0)>0){i=q+16|0;j=(b|0)==2;g=e;h=0;e=0;do{f=c[((c[(i&p)>>2]|0)+(h<<4)&p)+4>>2]|0;if(f){if(j?(l=um(f,2,o)|0,(l|0)!=0):0)f=l;else f=um(f,1,o)|0;g=c[(k&p)>>2]|0;e=(e|0)==0?f:e}h=h+1|0}while((h|0)<(g|0));c[(m&p)>>2]=(c[(m&p)>>2]|0)+-1;c[(n&p)>>2]=0;if(!e)e=13;else{d=e;e=16}}else{c[(m&p)>>2]=f+-1;c[(n&p)>>2]=0;e=13}do if((e|0)==13){if((b|0)==2?(d=sm(q,2,o)|0,(d|0)!=0):0)break;d=sm(q,1,o)|0;e=16}while(0);if((e|0)==16)if((b|0)!=2)break;m=a+152|0;l=c[(m&p)+4>>2]|0;k=q+504|0;c[(k&p)>>2]=c[(m&p)>>2];c[(k&p)+4>>2]=l;k=a+160|0;l=c[(k&p)+4>>2]|0;m=q+512|0;c[(m&p)>>2]=c[(k&p)>>2];c[(m&p)+4>>2]=l}else d=0;while(0);return d|0}function am(d){d=d|0;var f=0,g=0;f=d+12|0;if(!(eh(d,(c[(f&p)>>2]|0)+2|0,1)|0)){g=d+16|0;a[((c[(g&p)>>2]|0)+(c[(f&p)>>2]|0)&n)>>0]=0;a[((c[(g&p)>>2]|0)+(c[(f&p)>>2]|0)&n)+1>>0]=0;f=d+8|0;b[(f&o)>>1]=e[(f&o)>>1]|0|512;f=0}else f=7;return f|0}function bm(d,f,g){d=d|0;f=f|0;g=g|0;var l=0,m=0,r=0,s=0,t=0,u=0,v=0,w=0;u=i;i=i+16|0;if((i|0)>=(j|0))fa();s=u;t=d+8|0;m=b[(t&o)>>1]|0;if(!(fh(d,32)|0)){l=d+16|0;r=c[(l&p)>>2]|0;if(!(m&4)){h[(k&q)>>3]=+h[(d&q)>>3];c[(s&p)>>2]=c[(k&p)>>2];c[(s&p)+4>>2]=c[(k&p)+4>>2];ad(32,r,20272,s)|0}else{w=d;v=c[(w&p)+4>>2]|0;m=s;c[(m&p)>>2]=c[(w&p)>>2];c[(m&p)+4>>2]=v;ad(32,r,19920,s)|0}m=c[(l&p)>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-m&1073741823}c[(d&p)+12>>2]=l;a[(d&n)+10>>0]=1;l=e[(t&o)>>1]|514;b[(t&o)>>1]=g<<24>>24==0?l:l&65523;Yl(d,f&255)|0;l=0}else l=7;i=u;return l|0}function cm(a){a=a|0;var b=0,c=0;b=e[(a&o)+8>>1]|0;c=b&12;if(!c)if(!(b&18))b=0;else b=np(a)|0;else b=c&65535;return b|0}function dm(a){a=a|0;var d=0.0,f=0,g=0,i=0,j=0;d=+h[(a&q)>>3];if(!(d<=-9223372036854775808.0)&!(d>=9223372036854775808.0)?(f=~~d>>>0,g=+R(d)>=1.0?(d>0.0?~~+da(+Q(d/4294967296.0),4294967295.0)>>>0:~~+ba((d-+(~~d>>>0))/4294967296.0)>>>0):0,i=jw(f|0,g|0,1,-2147483648)|0,j=G,!(d!=+(f>>>0)+4294967296.0*+(g|0)|(j>>>0<0|(j|0)==0&i>>>0<2))):0){i=a;c[(i&p)>>2]=f;c[(i&p)+4>>2]=g;f=a+8|0;b[(f&o)>>1]=(e[(f&o)>>1]|0)&48640|4}return}function em(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;f=a+204|0;e=c[(f&p)>>2]|0;a:do if(e){h=(b|0)<0;do{while(1){if(!h){if((c[(e&p)>>2]|0)!=(b|0))break;g=c[(e&p)+4>>2]|0;if((g|0)<=31?(1<<g&d|0)!=0:0)break}g=c[(e&p)+12>>2]|0;if(g)cc[g&31](c[(e&p)+8>>2]|0);c[(f&p)>>2]=c[(e&p)+16>>2];mg(c[(a&p)>>2]|0,e);e=c[(f&p)>>2]|0;if(!e)break a}f=e+16|0;e=c[(f&p)>>2]|0}while((e|0)!=0)}while(0);return}function fm(a,b,c){a=a|0;b=b|0;c=c|0;do if(b<<24>>24>66){b=e[(a&o)+8>>1]|0;if(!(b&4)){if(b&8){dm(a);break}if(b&2)rh(a,1)}}else if(b<<24>>24==66?(b=e[(a&o)+8>>1]|0,!((b&2|0)!=0|(b&12|0)==0)):0)bm(a,c,1)|0;while(0);return}function gm(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,i=0,j=0;j=a+8|0;g=b[(j&o)>>1]|0;i=g&65535;do if(!(i&1)){d=d&255;if((d|0)==68){d=Vg(a)|0;g=a;c[(g&p)>>2]=d;c[(g&p)+4>>2]=G;b[(j&o)>>1]=(e[(j&o)>>1]|0)&48640|4;break}else if((d|0)==67){op(a);break}else if((d|0)==69){h[(a&q)>>3]=+Ug(a);b[(j&o)>>1]=(e[(j&o)>>1]|0)&48640|8;break}else if((d|0)==65){if(i&16){b[(j&o)>>1]=i&65040;break}if(!((i&2|0)!=0|(i&12|0)==0)){bm(a,f,1)|0;g=b[(j&o)>>1]|0}b[(j&o)>>1]=g&48640|16;break}else{d=i>>>3&2|i;g=d&65535;b[(j&o)>>1]=g;if(!((d&2|0)!=0|(i&12|0)==0)){bm(a,f,1)|0;g=b[(j&o)>>1]|0}b[(j&o)>>1]=g&49123;break}}while(0);return}function hm(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0.0,i=0,j=0.0,k=0,l=0,m=0;l=b[(a&o)+8>>1]|0;k=l&65535;i=b[(d&o)+8>>1]|0;m=i&65535;f=(i|l)&65535;do if(!(f&1)){if(!(f&12)){if(f&2){if(!(k&2)){f=1;break}if(!(m&2)){f=-1;break}if(e){f=pp(a,d,e,0)|0;break}}f=qp(a,d)|0;break}if((l&4&i)<<16>>16){l=a;k=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;i=d;f=c[(i&p)>>2]|0;i=c[(i&p)+4>>2]|0;if((l|0)<(i|0)|(l|0)==(i|0)&k>>>0<f>>>0){f=-1;break}f=((l|0)>(i|0)|(l|0)==(i|0)&k>>>0>f>>>0)&1;break}if(!(k&8)){if(!(k&4)){f=1;break}f=a;j=+((c[(f&p)>>2]|0)>>>0)+4294967296.0*+(c[(f&p)+4>>2]|0)}else j=+h[(a&q)>>3];if(!(m&8)){if(!(m&4)){f=-1;break}f=d;g=+((c[(f&p)>>2]|0)>>>0)+4294967296.0*+(c[(f&p)+4>>2]|0)}else g=+h[(d&q)>>3];if(j<g)f=-1;else f=j>g&1}else f=(m&1)-(k&1)|0;while(0);return f|0}function im(b){b=b|0;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;e=g+8|0;d=b+48|0;d=Cm(c[(b&p)>>2]|0,0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0,0,e)|0;do if(!d)if(!(c[(e&p)>>2]|0)){a[(b&n)+26>>0]=0;c[(b&p)+60>>2]=0;d=0;break}else{c[(f&p)>>2]=67421;c[(f&p)+4>>2]=10788;bd(11,13600,f);d=11;break}while(0);i=g;return d|0}function jm(b){b=b|0;var d=0,e=0,f=0;e=c[(b&p)>>2]|0;f=e+73|0;d=a[(f&n)>>0]|0;do if((d&255)>2){d=Kn(e)|0;if(!d){d=a[(f&n)>>0]|0;f=5;break}else{c[(b&p)+60>>2]=0;f=6;break}}else f=5;while(0);if((f|0)==5){c[(b&p)+60>>2]=0;if(d<<24>>24==1)d=0;else{d=0;f=6}}if((f|0)==6)a[(b&n)+25>>0]=1;return d|0}function km(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0;h=f+24|0;if(!(b[(f&o)+44>>1]|0)){j=b[(f&o)+76>>1]|0;i=c[(f+(j<<2)&p)+120>>2]|0;j=e[(f+(j<<1)&o)+78>>1]<<1;k=c[(i&p)+64>>2]|0;rp(i,(c[(i&p)+56>>2]|0)+((d[(k+j&n)>>0]<<8|d[(k+(j|1)&n)>>0])&e[(i&o)+20>>1])|0,h);f=f+72|0;a[(f&n)>>0]=d[(f&n)>>0]|2}i=h;f=c[(i&p)+4>>2]|0;h=g;c[(h&p)>>2]=c[(i&p)>>2];c[(h&p)+4>>2]=f;return}function lm(f,g){f=f|0;g=g|0;var h=0,i=0,j=0;if(!(b[(f&o)+44>>1]|0)){i=b[(f&o)+76>>1]|0;h=c[(f+(i<<2)&p)+120>>2]|0;i=e[(f+(i<<1)&o)+78>>1]<<1;j=c[(h&p)+64>>2]|0;rp(h,(c[(h&p)+56>>2]|0)+((d[(j+i&n)>>0]<<8|d[(j+(i|1)&n)>>0])&e[(h&o)+20>>1])|0,f+24|0);h=f+72|0;a[(h&n)>>0]=d[(h&n)>>0]|2}c[(g&p)>>2]=c[(f&p)+36>>2];return}function mm(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;e=d[(a&n)>>0]|0;g=d[(a&n)+1>>0]|0;do if(g&128){f=d[(a&n)+2>>0]|0;if(!(f&128)){c[(b&p)>>2]=(f|e<<14)&2080895|g<<7&16256;e=3;break}else{e=sp(a,h)|0;g=h;f=c[(g&p)>>2]|0;c[(b&p)>>2]=((f|0)==(f|0)?0==(c[(g&p)+4>>2]|0):0)?f:-1;break}}else{c[(b&p)>>2]=e<<7&16256|g;e=2}while(0);i=k;return e|0}function nm(d,f,g,h,i){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0;j=(h|0)==0;do if((g+f|0)>>>0>(e[(d&o)+40>>1]|0)>>>0){l=i+8|0;b[(l&o)>>1]=1;h=fh(i,g+2|0)|0;if(!h){k=i+16|0;h=c[(k&p)>>2]|0;if(j)h=Dh(d,f,g,h)|0;else h=Lm(d,f,g,h,0)|0;if(!h){a[((c[(k&p)>>2]|0)+g&n)>>0]=0;a[((c[(k&p)>>2]|0)+g&n)+1>>0]=0;b[(l&o)>>1]=528;c[(i&p)+12>>2]=g;h=0;break}if((b[(l&o)>>1]&9312)==0?(c[(i&p)+24>>2]|0)==0:0)break;Qg(i)}}else{c[(i&p)+16>>2]=(c[(d&p)+32>>2]|0)+f;b[(i&o)+8>>1]=4112;c[(i&p)+12>>2]=g;h=0}while(0);return h|0}function om(e,f,g){e=e|0;f=f|0;g=g|0;var h=0;switch(f|0){case 9:case 8:{e=g;c[(e&p)>>2]=f+-8;c[(e&p)+4>>2]=0;b[(g&o)+8>>1]=4;e=0;break}case 1:{f=a[(e&n)>>0]|0;e=g;c[(e&p)>>2]=f;c[(e&p)+4>>2]=((f|0)<0)<<31>>31;b[(g&o)+8>>1]=4;e=1;break}case 0:case 11:case 10:{b[(g&o)+8>>1]=1;e=0;break}case 3:{f=d[(e&n)+1>>0]<<8|a[(e&n)>>0]<<16|d[(e&n)+2>>0];e=g;c[(e&p)>>2]=f;c[(e&p)+4>>2]=((f|0)<0)<<31>>31;b[(g&o)+8>>1]=4;e=3;break}case 4:{f=d[(e&n)+1>>0]<<16|a[(e&n)>>0]<<24|d[(e&n)+2>>0]<<8|d[(e&n)+3>>0];e=g;c[(e&p)>>2]=f;c[(e&p)+4>>2]=((f|0)<0)<<31>>31;b[(g&o)+8>>1]=4;e=4;break}case 2:{f=a[(e&n)>>0]<<8|d[(e&n)+1>>0];e=g;c[(e&p)>>2]=f;c[(e&p)+4>>2]=((f|0)<0)<<31>>31;b[(g&o)+8>>1]=4;e=2;break}case 7:case 6:{tp(e,f,g);e=8;break}case 5:{h=a[(e&n)>>0]<<8|d[(e&n)+1>>0];f=g;c[(f&p)>>2]=d[(e&n)+3>>0]<<16|d[(e&n)+2>>0]<<24|d[(e&n)+4>>0]<<8|d[(e&n)+5>>0];c[(f&p)+4>>2]=h;b[(g&o)+8>>1]=4;e=6;break}default:{c[(g&p)+16>>2]=e;e=(f+-12|0)>>>1;c[(g&p)+12>>2]=e;b[(g&o)+8>>1]=b[((f&1)<<1&o)+34328>>1]|0}}return e|0}function pm(b,c,d){b=b|0;c=c|0;d=d|0;do if(!(d>>>0<0|(d|0)==0&c>>>0<128))if(d>>>0<0|(d|0)==0&c>>>0<16384){d=mw(c|0,d|0,7)|0;a[(b&n)>>0]=d|128;a[(b&n)+1>>0]=c&127;c=2;break}else{c=up(b,c,d)|0;break}else{a[(b&n)>>0]=c&127;c=1}while(0);return c|0}function qm(e){e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;k=e+73|0;f=a[(k&n)>>0]|0;do if((f&255)>2)if(f<<24>>24==4){f=c[(e&p)+68>>2]|0;break}else{g=e+56|0;Wc(c[(g&p)>>2]|0);c[(g&p)>>2]=0;a[(k&n)>>0]=0;g=5;break}else g=5;while(0);a:do if((g|0)==5){h=e+76|0;f=b[(h&o)>>1]|0;do if(f<<16>>16<=-1){f=c[(e&p)+60>>2]|0;if(!f){a[(k&n)>>0]=0;f=0;break a}g=e+120|0;f=vp(c[((c[(e&p)>>2]|0)&p)+4>>2]|0,f,g,(a[(e&n)+72>>0]&1)<<1^2)|0;if(!f){b[(h&o)>>1]=0;f=g;break}else{a[(k&n)>>0]=0;break a}}else{if(f<<16>>16)do{g=f+-1<<16>>16;b[(h&o)>>1]=g;f=c[(e+(f<<16>>16<<2)&p)+120>>2]|0;if(!f)f=g;else{Bg(c[(f&p)+68>>2]|0);f=b[(h&o)>>1]|0}}while(f<<16>>16!=0);f=e+120|0}while(0);f=c[(f&p)>>2]|0;if((a[(f&n)>>0]|0)!=0?((c[(e&p)+16>>2]|0)==0|0)==(d[(f&n)+2>>0]|0):0){b[(e&o)+78>>1]=0;b[(e&o)+44>>1]=0;g=e+72|0;a[(g&n)>>0]=d[(g&n)>>0]&241;if(b[(f&o)+18>>1]|0){a[(k&n)>>0]=1;f=0;break}if(a[(f&n)+5>>0]|0){a[(k&n)>>0]=0;f=0;break}if((c[(f&p)+72>>2]|0)==1){g=d[(f&n)+6>>0]|0;f=c[(f&p)+56>>2]|0;f=d[(f+g&n)+9>>0]<<16|d[(f+g&n)+8>>0]<<24|d[(f+g&n)+10>>0]<<8|d[(f+g&n)+11>>0];a[(k&n)>>0]=1;f=rm(e,f)|0;break}else{c[(l&p)>>2]=57629;c[(l&p)+4>>2]=10788;bd(11,13600,l);f=11;break}}c[(l&p)>>2]=57618;c[(l&p)+4>>2]=10788;bd(11,13600,l);f=11}while(0);i=m;return f|0}function rm(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();m=q;l=q+8|0;g=e+76|0;k=b[(g&o)>>1]|0;h=k<<16>>16;do if(k<<16>>16<=18){k=e+72|0;f=vp(c[(e&p)+4>>2]|0,f,l,(a[(k&n)>>0]&1)<<1^2)|0;if(!f){f=c[(l&p)>>2]|0;l=h+1|0;c[(e+(l<<2)&p)+120>>2]=f;b[(e+(l<<1)&o)+78>>1]=0;b[(g&o)>>1]=(b[(g&o)>>1]|0)+1<<16>>16;b[(e&o)+44>>1]=0;a[(k&n)>>0]=d[(k&n)>>0]&249;if((b[(f&o)+18>>1]|0)!=0?(a[(f&n)+2>>0]|0)==(a[((c[(e+(h<<2)&p)+120>>2]|0)&n)+2>>0]|0):0){f=0;break}c[(m&p)>>2]=57499;c[(m&p)+4>>2]=10788;bd(11,13600,m);f=11}}else{c[(m&p)>>2]=57487;c[(m&p)+4>>2]=10788;bd(11,13600,m);f=11}while(0);i=q;return f|0}function sm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;j=a+328|0;a:do if(!(c[(j&p)>>2]|0))a=0;else{g=a+304|0;h=d+1|0;i=0;while(1){if((i|0)>=(c[(g&p)>>2]|0)){a=0;break a}f=c[((c[(j&p)>>2]|0)+(i<<2)&p)>>2]|0;a=c[(c[(f&p)+4>>2]&p)>>2]|0;e=c[(f&p)+8>>2]|0;if((e|0)!=0?(c[(a&p)>>2]|0)>1:0){if(!b){a=c[(a&p)+80>>2]|0;c[(f&p)+20>>2]=h}else if((b|0)==2)a=c[(a&p)+88>>2]|0;else a=c[(a&p)+84>>2]|0;if((a|0)!=0?(c[(f&p)+20>>2]|0)>(d|0):0){a=rc[a&127](e,d)|0;if(!a){i=i+1|0;continue}else break a}}i=i+1|0}}while(0);return a|0}function tm(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;e=c[(b&p)>>2]|0;if(!d){d=b+144|0;k=c[(d&p)+4>>2]|0;if((k|0)>0|(k|0)==0&(c[(d&p)>>2]|0)>>>0>0)g=4;else e=0}else{d=e+504|0;k=e+512|0;d=jw(c[(k&p)>>2]|0,c[(k&p)+4>>2]|0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0)|0;k=G;if((k|0)>0|(k|0)==0&d>>>0>0)g=4;else e=0}if((g|0)==4){c[(b&p)+80>>2]=787;a[(b&n)+86>>0]=2;dh(b+44|0,e,34376,f);e=1}i=h;return e|0}function um(e,f,g){e=e|0;f=f|0;g=g|0;var h=0;if((e|0)!=0?(a[(e&n)+8>>0]|0)==2:0){h=c[(e&p)+4>>2]|0;c[(h&p)+4>>2]=c[(e&p)>>2];f=jp(c[(h&p)>>2]|0,f,g)|0;if(!f){if((g|0)<0?(b[(h&o)+22>>1]&8)!=0:0)c[(h&p)+44>>2]=0;f=Cg(h)|0;e=c[((c[(h&p)+12>>2]|0)&p)+56>>2]|0;c[(h&p)+44>>2]=d[(e&n)+29>>0]<<16|d[(e&n)+28>>0]<<24|d[(e&n)+30>>0]<<8|d[(e&n)+31>>0]}}else f=0;return f|0}function vm(a,b){a=a|0;b=b|0;a=a+16|0;ql(c[((c[(a&p)>>2]|0)+(b<<4)&p)+12>>2]|0);if((b|0)!=1)ql(c[((c[(a&p)>>2]|0)&p)+28>>2]|0);return}function wm(a,b,e){a=a|0;b=b|0;e=e|0;var f=0;f=c[(a&p)+4>>2]|0;c[(f&p)+4>>2]=c[(a&p)>>2];if((b|0)==15)f=(c[(a&p)+20>>2]|0)+(c[((c[(f&p)>>2]|0)&p)+100>>2]|0)|0;else{b=b<<2;f=c[((c[(f&p)+12>>2]|0)&p)+56>>2]|0;f=(d[(f+b&n)+37>>0]|0)<<16|(d[(f+b&n)+36>>0]|0)<<24|(d[(f+b&n)+38>>0]|0)<<8|(d[(f+b&n)+39>>0]|0)}c[(e&p)>>2]=f;return}function xm(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,q=0;k=(c[(d&p)+28>>2]|0)-e|0;i=c[(d&p)+8>>2]|0;q=(f<<3)+88|0;m=(h|0)!=0;l=d+56|0;j=c[((c[(l&p)>>2]|0)+(e<<2)&p)>>2]|0;if(j){Bm(d,j);c[((c[(l&p)>>2]|0)+(e<<2)&p)>>2]=0}if(!(fh(i+(k*40|0)|0,(m?200:0)+q|0)|0)){k=i+(k*40|0)+16|0;h=c[(k&p)>>2]|0;c[((c[(l&p)>>2]|0)+(e<<2)&p)>>2]=h;i=h+0|0;j=i+88|0;do{c[(i&p)>>2]=0;i=i+4|0}while((i|0)<(j|0));a[(h&n)+24>>0]=g;b[(h&o)+20>>1]=f;c[(h&p)+80>>2]=h+84+(f<<2);if(m){i=(c[(k&p)>>2]|0)+q|0;c[(h&p)>>2]=i;i=i+0|0;j=i+76|0;do{c[(i&p)>>2]=0;i=i+4|0}while((i|0)<(j|0))}}else h=0;return h|0}function ym(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0;k=c[(d&p)+4>>2]|0;c[(k&p)+4>>2]=c[(d&p)>>2];if(f)if(!(b[(k&o)+22>>1]&1)){j=k+80|0;if(!(c[(j&p)>>2]|0)){i=Go(c[(k&p)+32>>2]|0)|0;c[(j&p)>>2]=i;if(!i)i=7;else{l=i;i=l;a[(i&n)>>0]=0;a[(i&n)+1>>0]=0;a[(i&n)+2>>0]=0;a[(i&n)+3>>0]=0;l=l+4|0;a[(l&n)>>0]=0;a[(l&n)+1>>0]=0;a[(l&n)+2>>0]=0;a[(l&n)+3>>0]=0;c[(j&p)>>2]=(c[(j&p)>>2]|0)+4;l=6}}else l=6}else i=8;else l=6;if((l|0)==6){if((e|0)==1)e=(c[(k&p)+44>>2]|0)!=0&1;c[(h&p)+60>>2]=e;b[(h&o)+76>>1]=-1;c[(h&p)+16>>2]=g;c[(h&p)>>2]=d;c[(h&p)+4>>2]=k;a[(h&n)+72>>0]=f;i=k+8|0;e=c[(i&p)>>2]|0;c[(h&p)+8>>2]=e;if(e)c[(e&p)+12>>2]=h;c[(i&p)>>2]=h;a[(h&n)+73>>0]=0;i=0}return i|0}function zm(f,g,h,k,l,m){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;S=i;i=i+128|0;if((i|0)>=(j|0))fa();D=S;K=S+12|0;H=S+8|0;P=S+16|0;N=(g|0)==0;if(!N){r=(a[(g&n)>>0]|0)==0;if(_v(g,14640)|0)if(r)J=4;else{r=0;J=5}else O=1}else J=4;if((J|0)==4)if((a[(h&n)+64>>0]|0)==2){O=1;r=1}else{r=1;J=5}if((J|0)==5)O=(m&128|0)!=0;M=O?l|2:l;if((m&256|0)!=0&(O|r))m=m&-769|512;R=qg(48,0)|0;a:do if(R){x=R+0|0;w=x+48|0;do{a[(x&n)>>0]=0;x=x+1|0}while((x|0)<(w|0));c[(R&p)>>2]=h;c[(R&p)+32>>2]=R;c[(R&p)+36>>2]=1;b:do if(!r?!(O&(m&64|0)==0|(m&131072|0)==0):0){if(N)r=1;else{r=g;while(1)if(!(a[(r&n)>>0]|0))break;else r=r+1|0;r=(r-g&1073741823)+1|0}l=(c[(f&p)+8>>2]|0)+1|0;u=(l|0)>(r|0)?l:r;u=qg(u,((u|0)<0)<<31>>31)|0;t=R+9|0;a[(t&n)>>0]=1;if(!u){Wc(R);q=7;break a}if(!O){a[(u&n)>>0]=0;r=pc[c[(f&p)+36>>2]&31](f,g,l,u)|0;if(r){Wc(u);Wc(R);q=r;break a}}else kw(u|0,g|0,r|0)|0;r=c[3664]|0;c:do if(r){while(1){l=c[(r&p)>>2]|0;if((_v(u,c[(l&p)+168>>2]|0)|0)==0?(c[(l&p)>>2]|0)==(f|0):0)break;r=c[(r&p)+68>>2]|0;if(!r)break c}l=c[(h&p)+20>>2]|0;d:do if((l|0)>0){s=c[(h&p)+16>>2]|0;while(1){l=l+-1|0;G=c[(s+(l<<4)&p)+4>>2]|0;if((G|0)!=0?(c[(G&p)+4>>2]|0)==(r|0):0)break;if((l|0)<=0)break d}Wc(u);Wc(R);q=19;break a}while(0);c[(R&p)+4>>2]=r;G=r+64|0;c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;Wc(u);if(!r){J=32;break b}if(!(a[(t&n)>>0]|0))break b;else{J=105;break b}}while(0);Wc(u);J=32}else J=32;while(0);e:do if((J|0)==32){L=qg(84,0)|0;if(L){x=L+0|0;w=x+84|0;do{a[(x&n)>>0]=0;x=x+1|0}while((x|0)<(w|0));F=M&1;G=(F|0)==0;c[(K&p)>>2]=1024;E=f+4|0;r=c[(E&p)>>2]|0;if((r|0)>40)l=r+7&-8;else l=40;c[(L&p)>>2]=0;do if(!(M&2))if(!N)if(a[(g&n)>>0]|0){y=f+8|0;t=(c[(y&p)>>2]|0)+1|0;A=t<<1;A=qg(A,((A|0)<0)<<31>>31)|0;if(!A)q=7;else{a[(A&n)>>0]=0;r=pc[c[(f&p)+36>>2]&31](f,g,t,A)|0;t=A;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;x=t-A&1073741823;u=g;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;w=(u-g&1073741823)+1|0;u=a[(g+w&n)>>0]|0;w=g+w|0;if(!(u<<24>>24))t=w;else{t=w;do{if(!(u<<24>>24))u=t;else{u=t;do u=u+1|0;while((a[(u&n)>>0]|0)!=0)}u=u-t&1073741823;s=t+(u+1)|0;v=s;while(1)if(!(a[(v&n)>>0]|0))break;else v=v+1|0;t=t+(u+2+(v-s&1073741823))|0;u=a[(t&n)>>0]|0}while(u<<24>>24!=0)}if(!r){if((x+8|0)<=(c[(y&p)>>2]|0)){z=1;D=0;y=x;x=t+1-w|0;u=A;J=58;break}c[(D&p)>>2]=46171;c[(D&p)+4>>2]=10788;bd(14,14848,D);r=14}Wc(A);J=89}}else{z=1;D=0;y=0;x=0;u=0;w=0;J=58}else{g=0;z=0;D=0;y=0;x=0;u=0;w=0;J=58}else if(!N)if(a[(g&n)>>0]|0){u=kh(0,g)|0;if(!u)q=7;else{r=u;while(1)if(!(a[(r&n)>>0]|0))break;else r=r+1|0;g=0;z=0;D=1;y=r-u&1073741823;x=0;w=0;J=58}}else{z=1;D=1;y=0;x=0;u=0;w=0;J=58}else{g=0;z=0;D=1;y=0;x=0;u=0;w=0;J=58}while(0);do if((J|0)==58){t=(l<<1)+17+(y*3|0)+x+((c[(E&p)>>2]|0)+271&-8)|0;C=qg(t,0)|0;if(!C){if(!u){q=7;break}Wc(u);q=7;break}fw(C|0,0,t|0)|0;A=C+204|0;c[(A&p)>>2]=C+216;B=C+60|0;c[(B&p)>>2]=C+264;v=(c[(E&p)>>2]|0)+271&-8;c[(C&p)+68>>2]=C+v;v=v+l|0;c[(C&p)+64>>2]=C+v;v=v+l|0;t=C+v|0;r=C+168|0;c[(r&p)>>2]=t;if(u){s=y+1|0;l=C+172|0;c[(l&p)>>2]=C+(x+s+v);kw(t|0,u|0,y|0)|0;if(x)kw((c[(r&p)>>2]|0)+s|0,w|0,x|0)|0;kw(c[(l&p)>>2]|0,u|0,y|0)|0;x=(c[(l&p)>>2]|0)+y+0|0;v=14928;w=x+10|0;do{a[(x&n)>>0]=a[(v&n)>>0]|0;x=x+1|0;v=v+1|0}while((x|0)<(w|0));l=(c[(l&p)>>2]|0)+(y+9)|0;E=C+212|0;c[(E&p)>>2]=l;kw(l|0,u|0,y|0)|0;E=(c[(E&p)>>2]|0)+y|0;a[(E&n)>>0]=a[14944]|0;a[(E&n)+1>>0]=a[14945]|0;a[(E&n)+2>>0]=a[14946]|0;a[(E&n)+3>>0]=a[14947]|0;a[(E&n)+4>>0]=a[14948]|0;Wc(u)}c[(C&p)>>2]=f;c[(C&p)+144>>2]=m;do if(z?(a[(g&n)>>0]|0)!=0:0){c[(H&p)>>2]=0;r=tc[c[(f&p)+24>>2]&31](f,c[(r&p)>>2]|0,c[(B&p)>>2]|0,m&556927,H)|0;s=c[(H&p)>>2]&1;if(!r){r=c[(B&p)>>2]|0;r=lc[c[((c[(r&p)>>2]|0)&p)+48>>2]&127](r)|0;do if((s|0)==0?(wp(C),I=c[(C&p)+148>>2]|0,I>>>0>1024):0)if(I>>>0>8192){c[(K&p)>>2]=8192;break}else{c[(K&p)>>2]=I;break}while(0);a[(C&n)+13>>0]=fg(g,14952,0)|0;if((r&8192|0)==0?(fg(g,14960,0)|0)==0:0){v=0;J=77;break}r=m|1;J=76}}else{r=m;J=76}while(0);if((J|0)==76){a[(C&n)+16>>0]=1;a[(C&n)+17>>0]=4;a[(C&n)+13>>0]=1;s=r&1;v=1;J=77}if((J|0)==77){r=al(C,K,-1)|0;if(!r){l=c[(K&p)>>2]|0;u=(D|0)==0;m=D^1;t=u?75:0;r=c[(A&p)>>2]|0;x=r+0|0;w=x+48|0;do{c[(x&p)>>2]=0;x=x+4|0}while((x|0)<(w|0));c[(r&p)+20>>2]=1;c[(r&p)+24>>2]=80;a[(r&n)+28>>0]=m;a[(r&n)+29>>0]=2;c[(r&p)+32>>2]=t;c[(r&p)+36>>2]=C;c[(r&p)+16>>2]=100;r=Ho(r,l)|0;if(!r){a[(C&n)+6>>0]=F^1;c[(C&p)+156>>2]=1073741823;a[(C&n)+12>>0]=v;a[(C&n)+4>>0]=v;a[(C&n)+18>>0]=v;a[(C&n)+15>>0]=D;a[(C&n)+14>>0]=s;a[(C&n)+7>>0]=v;if(!(v<<24>>24)){a[(C&n)+8>>0]=1;a[(C&n)+11>>0]=2;a[(C&n)+10>>0]=34;a[(C&n)+9>>0]=2}b[(C&o)+140>>1]=80;H=C+160|0;c[(H&p)>>2]=-1;c[(H&p)+4>>2]=-1;wp(C);do if(G){if(u)break;a[(C&n)+5>>0]=4}else a[(C&n)+5>>0]=2;while(0);c[(C&p)+196>>2]=21;c[(L&p)>>2]=C;J=90;break}}}l=c[(B&p)>>2]|0;m=c[(l&p)>>2]|0;if(m){lc[c[(m&p)+4>>2]&127](l)|0;c[(l&p)>>2]=0}$k(c[(C&p)+200>>2]|0);Wc(C);J=89}while(0);if((J|0)==89)if(!r)J=90;else q=r;do if((J|0)==90){r=c[(L&p)>>2]|0;H=h+40|0;w=c[(H&p)+4>>2]|0;x=r+128|0;c[(x&p)>>2]=c[(H&p)>>2];c[(x&p)+4>>2]=w;x=P+0|0;w=x+100|0;do{a[(x&n)>>0]=0;x=x+1|0}while((x|0)<(w|0));r=c[(r&p)+60>>2]|0;l=c[(r&p)>>2]|0;if((l|0)!=0?(q=tc[c[(l&p)+8>>2]&31](r,P,100,0,0)|0,!((q|0)==0|(q|0)==522)):0)break;a[(L&n)+16>>0]=M;c[(L&p)+4>>2]=h;r=c[(L&p)>>2]|0;l=r+176|0;c[(l&p)>>2]=76;c[(r&p)+180>>2]=L;m=c[(r&p)+60>>2]|0;q=c[(m&p)>>2]|0;if(!q)l=r;else{ac[c[(q&p)+40>>2]&63](m,15,l)|0;l=c[(L&p)>>2]|0}c[(R&p)+4>>2]=L;c[(L&p)+8>>2]=0;c[(L&p)+12>>2]=0;if(a[(l&n)+14>>0]|0){H=L+22|0;b[(H&o)>>1]=e[(H&o)>>1]|1}H=d[(P&n)+17>>0]<<16|d[(P&n)+16>>0]<<8;m=L+32|0;c[(m&p)>>2]=H;if((H+-512|0)>>>0<=65024?(H+16777215&H|0)==0:0){r=a[(P&n)+20>>0]|0;H=L+22|0;b[(H&o)>>1]=e[(H&o)>>1]|2;a[(L&n)+17>>0]=(d[(P&n)+53>>0]<<16|d[(P&n)+52>>0]<<24|d[(P&n)+54>>0]<<8|d[(P&n)+55>>0]|0)!=0&1;a[(L&n)+18>>0]=(d[(P&n)+65>>0]<<16|d[(P&n)+64>>0]<<24|d[(P&n)+66>>0]<<8|d[(P&n)+67>>0]|0)!=0&1}else{c[(m&p)>>2]=0;if(N|O)r=0;else{a[(L&n)+17>>0]=0;a[(L&n)+18>>0]=0;r=0}}r=r&255;q=al(l,m,r)|0;if(!q){c[(L&p)+36>>2]=(c[(m&p)>>2]|0)-r;if(!(a[(R&n)+9>>0]|0))break e;c[(L&p)+64>>2]=1;c[(L&p)+68>>2]=c[3664];c[3664]=L;J=105;break e}}while(0);if(L){m=c[(L&p)>>2]|0;if(!m)m=L;else{lp(m);m=L}}else m=0}else{m=0;q=7}Wc(m);Wc(R);c[(k&p)>>2]=0;break a}while(0);f:do if((J|0)==105?(Q=c[(h&p)+20>>2]|0,(Q|0)>0):0){m=c[(h&p)+16>>2]|0;l=0;while(1){q=c[(m+(l<<4)&p)+4>>2]|0;if((q|0)!=0?(a[(q&n)+9>>0]|0)!=0:0){l=q;break}l=l+1|0;if((l|0)>=(Q|0))break f}while(1){q=l+28|0;m=c[(q&p)>>2]|0;if(!m){m=l;break}else l=m}r=c[(R&p)+4>>2]|0;if(r>>>0<(c[(m&p)+4>>2]|0)>>>0){c[(R&p)+24>>2]=m;c[(R&p)+28>>2]=0;c[(q&p)>>2]=R;break}while(1){q=m+24|0;l=c[(q&p)>>2]|0;if(!l){J=113;break}if((c[(l&p)+4>>2]|0)>>>0<r>>>0)m=l;else{J=115;break}}if((J|0)==113){c[(R&p)+24>>2]=0;c[(R&p)+28>>2]=m}else if((J|0)==115){c[(R&p)+24>>2]=l;c[(R&p)+28>>2]=m;c[(l&p)+28>>2]=R}c[(q&p)>>2]=R}while(0);c[(k&p)>>2]=R;q=c[(R&p)+4>>2]|0;c[(q&p)+4>>2]=c[(R&p)>>2];if(!(c[(q&p)+48>>2]|0)){q=c[((c[(q&p)>>2]|0)&p)+204>>2]|0;c[(q&p)+16>>2]=2e3;jc[c[8868>>2]&15](c[(q&p)+40>>2]|0,2e3);q=0}else q=0}else q=7;while(0);i=S;return q|0}function Am(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+48|0;if((i|0)>=(j|0))fa();t=A;x=A+28|0;y=A+24|0;w=A+20|0;o=A+16|0;r=A+12|0;s=A+32|0;u=A+8|0;h=c[(b&p)>>2]|0;v=c[(b&p)+4>>2]|0;g=v+4|0;c[(g&p)>>2]=h;a:do if(!(a[(v&n)+17>>0]|0)){g=ip(v,x,y,1,0)|0;c[(w&p)>>2]=g;if(!g){h=c[(x&p)>>2]|0;z=39}}else{q=v+8|0;k=c[(q&p)>>2]|0;if(k)do{m=k+72|0;a[(m&n)>>0]=d[(m&n)>>0]&251;k=c[(k&p)+8>>2]|0}while((k|0)!=0);c[(g&p)>>2]=h;m=c[((c[(v&p)+12>>2]|0)&p)+56>>2]|0;m=d[(m&n)+53>>0]<<16|d[(m&n)+52>>0]<<24|d[(m&n)+54>>0]<<8|d[(m&n)+55>>0];c[(y&p)>>2]=m;h=((c[2514]|0)>>>0)/((c[(v&p)+32>>2]|0)>>>0)|0;g=v+36|0;while(1){l=m+1|0;if(l>>>0<2)k=0;else{k=m+-1|0;k=k-((k>>>0)%(((((c[(g&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(h|0)?3:2)+k|0}if((l|0)==(k|0)|(m|0)==(h|0))m=l;else break}c[(y&p)>>2]=l;g=ip(v,r,o,l,1)|0;c[(w&p)>>2]=g;if(!g){m=c[(o&p)>>2]|0;do if((m|0)==(l|0)){h=c[(r&p)>>2]|0;c[(x&p)>>2]=h}else{a[(s&n)>>0]=0;c[(u&p)>>2]=0;k=c[(q&p)>>2]|0;b:do if(!k)g=0;else{while(1){if(k)break;k=c[2]|0;if(!k){g=0;break b}}g=Fl(k,0,0)|0}while(0);c[(w&p)>>2]=g;k=c[(r&p)>>2]|0;if(k)Bg(c[(k&p)+68>>2]|0);if(g)break a;g=dl(v,l,x,0)|0;c[(w&p)>>2]=g;if(g)break a;g=hp(v,l,s,u)|0;c[(w&p)>>2]=g;k=a[(s&n)>>0]|0;if((k+-1&255)>=2){h=c[(x&p)>>2]|0;if(!g){g=Zm(v,h,k,c[(u&p)>>2]|0,m,0)|0;c[(w&p)>>2]=g;if(h)Bg(c[(h&p)+68>>2]|0);if(g)break a;g=dl(v,l,x,0)|0;c[(w&p)>>2]=g;if(g)break a;h=c[(x&p)>>2]|0;k=h+68|0;g=Gg(c[(k&p)>>2]|0)|0;c[(w&p)>>2]=g;if(!g)break;if(!h)break a;Bg(c[(k&p)>>2]|0);break a}}else{c[(t&p)>>2]=60876;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(w&p)>>2]=11;g=11;h=c[(x&p)>>2]|0}if(!h)break a;Bg(c[(h&p)+68>>2]|0);break a}while(0);zp(v,l,1,0,w);g=c[(w&p)>>2]|0;if(g){if(!h)break;Bg(c[(h&p)+68>>2]|0);break}g=Dg(b,4,l)|0;c[(w&p)>>2]=g;if(g){if(h)Bg(c[(h&p)+68>>2]|0)}else z=39}}while(0);if((z|0)==39){pl(h,(f&1|0)==0?10:13);g=c[((c[(x&p)>>2]|0)&p)+68>>2]|0;if(g)Bg(g);c[(e&p)>>2]=c[(y&p)>>2];g=0}i=A;return g|0}function Bm(a,b){a=a|0;b=b|0;var d=0,e=0;do if(b){a=c[(a&p)>>2]|0;d=b+56|0;e=c[(d&p)>>2]|0;if(e){_m(a,e);Wc(c[(e&p)+40>>2]|0);mg(a,e);c[(d&p)>>2]=0}a=c[(b&p)+4>>2]|0;if(a){Ml(a);break}a=c[(b&p)>>2]|0;if(a){kp(a);break}a=c[(b&p)+32>>2]|0;if(a){e=c[(a&p)>>2]|0;d=c[(e&p)>>2]|0;e=e+4|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+-1;lc[c[(d&p)+28>>2]&127](a)|0}}while(0);return}function Cm(f,g,h,k,l,m){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0;Q=i;i=i+16|0;if((i|0)>=(j|0))fa();O=Q+8|0;N=Q;t=f+73|0;do if(((a[(t&n)>>0]|0)==1?(s=d[(f&n)+72>>0]|0,(s&2|0)!=0):0)?(a[((c[(f&p)+120>>2]|0)&n)+2>>0]|0)!=0:0){q=f+24|0;r=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;if((r|0)==(h|0)&(q|0)==(k|0)){c[(m&p)>>2]=0;q=0;break}if((s&8|0)!=0&((q|0)<(k|0)|(q|0)==(k|0)&r>>>0<h>>>0)){c[(m&p)>>2]=-1;q=0}else P=8}else P=8;while(0);do if((P|0)==8){if(!g)J=0;else{r=c[(g&p)>>2]|0;if(((e[(r&o)+8>>1]|0)+(e[(r&o)+6>>1]|0)|0)<14){q=e[((c[(g&p)+8>>2]|0)&o)+8>>1]|0;K=(a[(c[(r&p)+16>>2]&n)>>0]|0)==0;c[(g&p)+12>>2]=K?-1:1;c[(g&p)+16>>2]=K?1:-1;if(!(q&4))if((q&25|0)==0?(c[(r&p)+20>>2]|0)==0:0)r=39;else P=13;else r=38}else P=13;if((P|0)==13)r=40;a[(g&n)+7>>0]=0;J=r}q=qm(f)|0;if(!q){if(!(a[(t&n)>>0]|0)){c[(m&p)>>2]=-1;q=0;break}K=f+76|0;F=1-l|0;G=(J|0)==0;L=f+72|0;H=f+24|0;I=f+24|0;a:do{l=b[(K&o)>>1]|0;D=c[(f+(l<<2)&p)+120>>2]|0;E=D+18|0;s=(e[(E&o)>>1]|0)+-1|0;r=s>>F;b[(f+(l<<1)&o)+78>>1]=r;l=D+56|0;A=D+20|0;B=D+64|0;C=D+7|0;b:do if(G){v=D+3|0;u=D+60|0;t=0;w=s;while(1){s=r<<1;z=c[(B&p)>>2]|0;s=(c[(l&p)>>2]|0)+(((d[(z+s&n)>>0]<<8|d[(z+(s|1)&n)>>0])&e[(A&o)>>1])+(d[(C&n)>>0]|0))|0;c:do if(a[(v&n)>>0]|0)while(1){z=s;s=s+1|0;if((a[(z&n)>>0]|0)>=0)break c;if(s>>>0>=(c[(u&p)>>2]|0)>>>0){P=25;break a}}while(0);sp(s,N)|0;q=N;s=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;if((q|0)<(k|0)|(q|0)==(k|0)&s>>>0<h>>>0){t=r+1|0;if((r|0)<(w|0))s=w;else{q=-1;P=49;break b}}else{if(!((q|0)>(k|0)|(q|0)==(k|0)&s>>>0>h>>>0)){t=q;break}s=r+-1|0;if((t|0)>(s|0)){q=1;P=49;break b}}r=s+t>>1;w=s}a[(L&n)>>0]=d[(L&n)>>0]|2;C=H;c[(C&p)>>2]=s;c[(C&p)+4>>2]=t;b[(f+(b[(K&o)>>1]<<1)&o)+78>>1]=r;if(a[(D&n)+5>>0]|0){P=31;break a}}else{x=D+8|0;y=D+10|0;z=r;t=0;while(1){q=c[(l&p)>>2]|0;v=z<<1;r=c[(B&p)>>2]|0;v=(d[(r+v&n)>>0]<<8|d[(r+(v|1)&n)>>0])&e[(A&o)>>1];r=v+(d[(C&n)>>0]|0)|0;R=a[(q+r&n)>>0]|0;w=R&255;u=q+(r+1)|0;do if((R&255)>(d[(x&n)>>0]|0)){u=d[(u&n)>>0]|0;if((u&128|0)==0?(M=u+(w<<7&16256)|0,(M|0)<=(e[(y&o)>>1]|0)):0){q=ac[J&63](M,q+(r+2)|0,g)|0;break}rp(D,q+v|0,I);u=c[(I&p)>>2]|0;r=qg(u,((u|0)<0)<<31>>31)|0;if(!r){q=7;break a}b[(f+(b[(K&o)>>1]<<1)&o)+78>>1]=z;q=Lm(f,0,u,r,2)|0;if(q){P=40;break a}q=ac[J&63](u,r,g)|0;Wc(r)}else q=ac[J&63](w,u,g)|0;while(0);if((q|0)<0)t=z+1|0;else{if((q|0)<=0){r=z;P=46;break a}s=z+-1|0}if((t|0)>(s|0)){r=z;P=49;break b}z=s+t>>1}}while(0);if((P|0)==49){P=0;if(a[(D&n)+5>>0]|0){P=51;break}l=D+56|0;r=t}t=c[(l&p)>>2]|0;if((r|0)<(e[(E&o)>>1]|0)){s=r<<1;E=c[(D&p)+64>>2]|0;s=(d[(E+s&n)>>0]<<8|d[(E+(s|1)&n)>>0])&e[(D&o)+20>>1];s=d[(t+s&n)+1>>0]<<16|d[(t+s&n)>>0]<<24|d[(t+s&n)+2>>0]<<8|d[(t+s&n)+3>>0]}else{s=d[(D&n)+6>>0]|0;s=d[(t+s&n)+9>>0]<<16|d[(t+s&n)+8>>0]<<24|d[(t+s&n)+10>>0]<<8|d[(t+s&n)+11>>0]}b[(f+(b[(K&o)>>1]<<1)&o)+78>>1]=r;q=rm(f,s)|0}while((q|0)==0);if((P|0)==25){c[(O&p)>>2]=57865;c[(O&p)+4>>2]=10788;bd(11,13600,O);q=11;break}else if((P|0)==31){c[(m&p)>>2]=0;q=0}else if((P|0)==40)Wc(r);else if((P|0)==46){c[(m&p)>>2]=0;b[(f+(b[(K&o)>>1]<<1)&o)+78>>1]=r;q=(a[(g&n)+7>>0]|0)==0?0:11}else if((P|0)==51){b[(f+(b[(K&o)>>1]<<1)&o)+78>>1]=r;c[(m&p)>>2]=q;q=0}b[(f&o)+44>>1]=0;a[(L&n)>>0]=d[(L&n)>>0]&249}}while(0);i=Q;return q|0}function Dm(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0;b[(f&o)+44>>1]=0;h=f+72|0;a[(h&n)>>0]=d[(h&n)>>0]&249;c[(g&p)>>2]=0;do if((a[(f&n)+73>>0]|0)==1){h=f+76|0;k=b[(h&o)>>1]|0;i=c[(f+(k<<2)&p)+120>>2]|0;k=f+(k<<1)+78|0;j=(b[(k&o)>>1]|0)+1<<16>>16;b[(k&o)>>1]=j;if((j&65535)>=(e[(i&o)+18>>1]|0)){h=f+(b[(h&o)>>1]<<1)+78|0;b[(h&o)>>1]=(b[(h&o)>>1]|0)+-1<<16>>16;h=Dp(f,g)|0;break}if(!(a[(i&n)+5>>0]|0))h=Vm(f)|0;else h=0}else h=Dp(f,g)|0;while(0);return h|0}function Em(e,f){e=e|0;f=f|0;var g=0,h=0,i=0,j=0;c[(f&p)>>2]=0;j=e+72|0;a[(j&n)>>0]=d[(j&n)>>0]&241;b[(e&o)+44>>1]=0;if(((a[(e&n)+73>>0]|0)==1?(g=b[(e&o)+76>>1]|0,h=e+(g<<1)+78|0,i=b[(h&o)>>1]|0,i<<16>>16!=0):0)?(a[((c[(e+(g<<2)&p)+120>>2]|0)&n)+5>>0]|0)!=0:0){b[(h&o)>>1]=i+-1<<16>>16;g=0}else g=Ep(e,f)|0;return g|0}function Fm(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;i=0-d&7;j=a+6|0;h=b[(j&o)>>1]|0;g=((h&65535)*40|0)+64|0;if((g|0)>(i+e|0)){g=mh(c[(a&p)+12>>2]|0,g,0)|0;c[(f&p)>>2]=g;if(!g)g=0;else{h=b[(j&o)>>1]|0;k=5}}else{c[(f&p)>>2]=0;g=d+i|0;k=5}if((k|0)==5){c[(g&p)+8>>2]=g+24;c[(g&p)>>2]=a;b[(g&o)+4>>1]=(h&65535)+1}return g|0}function Gm(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x+4|0;v=x;m=c[(h&p)+8>>2]|0;a[(h&n)+6>>0]=0;k=a[(g&n)>>0]|0;if(k<<24>>24>-1){k=k&255;c[(w&p)>>2]=k;l=1}else{l=mm(g,w)|0;k=c[(w&p)>>2]|0}u=d+4|0;s=d+12|0;t=h+4|0;d=k;r=k;q=l&255;k=0;while(1){if(q>>>0>=d>>>0|(r|0)>(f|0))break;h=g+q|0;d=a[(h&n)>>0]|0;if(d<<24>>24>-1){c[(v&p)>>2]=d&255;h=1}else h=mm(h,v)|0;a[(m&n)+10>>0]=a[(u&n)>>0]|0;c[(m&p)+32>>2]=c[(s&p)>>2];c[(m&p)+24>>2]=0;l=om(g+r|0,c[(v&p)>>2]|0,m)|0;k=k+1<<16>>16;if((k&65535)>=(e[(t&o)>>1]|0))break;d=c[(w&p)>>2]|0;r=l+r|0;q=(h&255)+q|0;m=m+40|0}b[(t&o)>>1]=k;i=x;return}function Hm(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;g=b+73|0;if((a[(g&n)>>0]|0)==1?(a[(b&n)+72>>0]&8)!=0:0)f=0;else h=3;do if((h|0)==3){f=qm(b)|0;if(!f){if(!(a[(g&n)>>0]|0)){c[(e&p)>>2]=1;f=0;break}c[(e&p)>>2]=0;f=Fp(b)|0;e=b+72|0;g=d[(e&n)>>0]|0;if(!f){a[(e&n)>>0]=g|8;f=0;break}else{a[(e&n)>>0]=g&247;break}}}while(0);return f|0}function Im(f,g,h,k,l,m,q,r,s){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;s=s|0;var 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,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0;O=i;i=i+32|0;if((i|0)>=(j|0))fa();x=O;D=O+24|0;E=O+20|0;C=O+16|0;N=O+12|0;K=O+8|0;L=O+28|0;c[(K&p)>>2]=s;u=(c[(f&p)>>2]|0)+4|0;w=c[(u&p)>>2]|0;M=f+73|0;do if((a[(M&n)>>0]|0)!=4){v=Ln(w,c[(f&p)+60>>2]|0,f)|0;c[(N&p)>>2]=v;if(!v){if(!(c[(f&p)+16>>2]|0)){v=c[((c[(u&p)>>2]|0)&p)+8>>2]|0;if(v)do{if((a[(v&n)+72>>0]&16)!=0?(H=v+24|0,(c[(H&p)>>2]|0)==(h|0)?(c[(H&p)+4>>2]|0)==(k|0):0):0)a[(v&n)+73>>0]=0;v=c[(v&p)+8>>2]|0}while((v|0)!=0);if((a[(f&n)+72>>0]&2)!=0&((k|0)>0|(k|0)==0&h>>>0>0)?(H=f+24|0,A=c[(H&p)>>2]|0,H=c[(H&p)+4>>2]|0,B=jw(h|0,k|0,-1,-1)|0,(A|0)==(B|0)&(H|0)==(G|0)):0)c[(K&p)>>2]=-1;else F=13}else F=13;if(((F|0)==13?(s|0)==0:0)?(t=Gp(f,g,h,k,r,K)|0,c[(N&p)>>2]=t,(t|0)!=0):0)break;I=f+76|0;J=c[(f+(b[(I&o)>>1]<<2)&p)+120>>2]|0;H=c[(w&p)+80>>2]|0;c[(E&p)>>2]=0;r=J+52|0;B=c[(r&p)>>2]|0;c[(C&p)>>2]=0;v=d[(J&n)+7>>0]|0;w=q+m|0;if(a[(J&n)+3>>0]|0){if(w>>>0<128){a[(H+v&n)>>0]=w;u=1}else u=(pm(H+v|0,w,((w|0)<0)<<31>>31)|0)&255;v=u+v|0}s=(pm(H+v|0,h,k)|0)+v|0;do if(!(a[(J&n)+2>>0]|0))if((k|0)>0|(k|0)==0&h>>>0>2147483647|(g|0)==0){c[(x&p)>>2]=58825;c[(x&p)+4>>2]=10788;bd(11,13600,x);t=11;v=0;break}else{A=m;w=h;m=h;q=g;F=24;break}else{A=0;q=l;F=24}while(0);do if((F|0)==24){v=e[(J&o)+10>>1]|0;if((w|0)>(v|0)){u=e[(J&o)+12>>1]|0;r=(((w-u|0)>>>0)%(((c[((c[(r&p)>>2]|0)&p)+36>>2]|0)+-4|0)>>>0)|0)+u|0;r=(r|0)>(v|0)?u:r;u=r+s|0;v=u+4|0;u=H+u|0}else{v=w+s|0;v=(v|0)<4?4:v;u=H;r=w}if((w|0)>0){h=B+17|0;y=B+36|0;z=B+32|0;g=m;x=H+s|0;k=u;s=0;m=r;while(1){if(!m){x=c[(C&p)>>2]|0;if(!(a[(h&n)>>0]|0))u=x;else{t=((c[2514]|0)>>>0)/((c[(z&p)>>2]|0)>>>0)|0;m=x;while(1){u=m+1|0;if(u>>>0<2)r=0;else{r=m+-1|0;r=r-((r>>>0)%(((((c[(y&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;r=((r+1|0)==(t|0)?3:2)+r|0}if((r|0)==(u|0)|(m|0)==(t|0))m=u;else break}c[(C&p)>>2]=u}t=ip(B,E,C,u,0)|0;c[(D&p)>>2]=t;u=(t|0)==0;if((a[(h&n)>>0]|0)!=0&u){u=c[(C&p)>>2]|0;zp(B,u,(x|0)!=0?4:3,x,D);t=c[(D&p)>>2]|0;if(t){r=s;F=38;break}}else{if(!u)break;u=c[(C&p)>>2]|0}a[(k&n)>>0]=u>>>24;a[(k&n)+1>>0]=u>>>16;a[(k&n)+2>>0]=u>>>8;a[(k&n)+3>>0]=u;if(s)Bg(c[(s&p)+68>>2]|0);t=c[(E&p)>>2]|0;x=t+56|0;k=c[(x&p)>>2]|0;a[(k&n)>>0]=0;a[(k&n)+1>>0]=0;a[(k&n)+2>>0]=0;a[(k&n)+3>>0]=0;x=(c[(x&p)>>2]|0)+4|0;m=(c[(y&p)>>2]|0)+-4|0}else t=s;u=(w|0)>(m|0)?m:w;if((g|0)>0){u=(u|0)>(g|0)?g:u;kw(x|0,q|0,u|0)|0}else fw(x|0,0,u|0)|0;w=w-u|0;r=(g|0)==(u|0);if((w|0)<=0){F=51;break}else{g=r?A:g-u|0;x=x+u|0;q=r?l:q+u|0;s=t;m=m-u|0}}if((F|0)==38){s=c[(E&p)>>2]|0;if(!s)s=r;else{Bg(c[(s&p)+68>>2]|0);s=r}}else if((F|0)==51){if(!t){t=0;break}Bg(c[(t&p)+68>>2]|0);t=0;break}if(s)Bg(c[(s&p)+68>>2]|0)}else t=0}while(0);c[(N&p)>>2]=t;if(!t){t=f+(b[(I&o)>>1]<<1)+78|0;r=b[(t&o)>>1]|0;u=r&65535;s=c[(K&p)>>2]|0;if(!s){t=Gg(c[(J&p)+68>>2]|0)|0;c[(N&p)>>2]=t;if(t)break;t=u<<1;F=c[(J&p)+64>>2]|0;t=(c[(J&p)+56>>2]|0)+((d[(F+t&n)>>0]<<8|d[(F+(t|1)&n)>>0])&e[(J&o)+20>>1])|0;if(!(a[(J&n)+5>>0]|0)){F=d[(t&n)>>0]|d[(t&n)+1>>0]<<8|d[(t&n)+2>>0]<<16|d[(t&n)+3>>0]<<24;a[(H&n)>>0]=F;a[(H&n)+1>>0]=F>>8;a[(H&n)+2>>0]=F>>16;a[(H&n)+3>>0]=F>>24}c[(N&p)>>2]=Hp(J,t,L)|0;Ip(J,u,e[(L&o)>>1]|0,N);t=c[(N&p)>>2]|0;if(!t)t=u;else break}else if((s|0)<0?(b[(J&o)+18>>1]|0)!=0:0){F=r+1<<16>>16;b[(t&o)>>1]=F;t=F&65535}else t=u;Jp(J,t,H,v,0,0,N);b[(f&o)+44>>1]=0;t=c[(N&p)>>2]|0;if(!t)if(!(a[(J&n)+1>>0]|0))t=0;else{t=f+72|0;a[(t&n)>>0]=d[(t&n)>>0]&253;t=Kp(f)|0;c[(N&p)>>2]=t;a[((c[(f+(b[(I&o)>>1]<<2)&p)+120>>2]|0)&n)+1>>0]=0;a[(M&n)>>0]=0}}}else t=v}else t=c[(f&p)+68>>2]|0;while(0);i=O;return t|0}function Jm(f){f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=i;i=i+16|0;if((i|0)>=(j|0))fa();B=C+4|0;t=C+8|0;l=C;m=(c[(f&p)>>2]|0)+4|0;v=c[(m&p)>>2]|0;z=f+76|0;A=b[(z&o)>>1]|0;x=A<<16>>16;s=b[(f+(x<<1)&o)+78>>1]|0;y=s&65535;u=c[(f+(x<<2)&p)+120>>2]|0;do if((s&65535)<(e[(u&o)+18>>1]|0)?(a[(f&n)+73>>0]|0)==1:0){s=y<<1;w=c[(u&p)+64>>2]|0;s=(c[(u&p)+56>>2]|0)+((d[(w+s&n)>>0]<<8|d[(w+(s|1)&n)>>0])&e[(u&o)+20>>1])|0;w=u+5|0;if((a[(w&n)>>0]|0)==0?(c[(l&p)>>2]=0,k=Em(f,l)|0,c[(B&p)>>2]=k,(k|0)!=0):0){g=k;break}k=Ln(v,c[(f&p)+60>>2]|0,f)|0;c[(B&p)>>2]=k;if(!k){if((c[(f&p)+16>>2]|0)==0?(r=f+24|0,q=c[(r&p)>>2]|0,r=c[(r&p)+4>>2]|0,h=c[((c[(m&p)>>2]|0)&p)+8>>2]|0,(h|0)!=0):0)do{if((a[(h&n)+72>>0]&16)!=0?(m=h+24|0,(c[(m&p)>>2]|0)==(q|0)?(c[(m&p)+4>>2]|0)==(r|0):0):0)a[(h&n)+73>>0]=0;h=c[(h&p)+8>>2]|0}while((h|0)!=0);h=Gg(c[(u&p)+68>>2]|0)|0;c[(B&p)>>2]=h;if(!h){c[(B&p)>>2]=Hp(u,s,t)|0;Ip(u,y,e[(t&o)>>1]|0,B);h=c[(B&p)>>2]|0;if(!h){if((a[(w&n)>>0]|0)==0?(s=c[(f+(b[(z&o)>>1]<<2)&p)+120>>2]|0,r=c[((c[(f+(x+1<<2)&p)+120>>2]|0)&p)+72>>2]|0,l=c[(s&p)+56>>2]|0,t=s+18|0,m=e[(t&o)>>1]<<1,g=c[(s&p)+64>>2]|0,m=(d[(g+m+-2&n)>>0]<<8|d[(g+m+-1&n)>>0])&e[(s&o)+20>>1],g=(Lp(s,l+m|0)|0)&65535,q=c[(v&p)+80>>2]|0,c[(B&p)>>2]=Gg(c[(s&p)+68>>2]|0)|0,Jp(u,y,l+(m+-4)|0,g+4|0,q,r,B),Ip(s,(e[(t&o)>>1]|0)+-1|0,g,B),g=c[(B&p)>>2]|0,(g|0)!=0):0)break;g=Kp(f)|0;c[(B&p)>>2]=g;if(!g){g=b[(z&o)>>1]|0;if(g<<16>>16>A<<16>>16){do{h=g+-1<<16>>16;b[(z&o)>>1]=h;g=c[(f+(g<<16>>16<<2)&p)+120>>2]|0;if(!g)g=h;else{Bg(c[(g&p)+68>>2]|0);g=b[(z&o)>>1]|0}}while(g<<16>>16>A<<16>>16);g=Kp(f)|0;c[(B&p)>>2]=g;if(g)break}qm(f)|0;g=0}}else g=h}else g=h}else g=k}else g=1;while(0);i=C;return g|0}function Km(f,g,k,l){f=f|0;g=g|0;k=k|0;l=l|0;var m=0,r=0,s=0,t=0,u=0.0,v=0.0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;P=i;i=i+64|0;if((i|0)>=(j|0))fa();N=P+40|0;t=P+56|0;L=P;r=P+52|0;M=P+48|0;w=c[(k&p)+8>>2]|0;O=c[(k&p)>>2]|0;do if(!l){l=a[(g&n)>>0]|0;if(l<<24>>24>-1){l=l&255;c[(t&p)>>2]=l;m=1}else{m=mm(g,t)|0;l=c[(t&p)>>2]|0}if(l>>>0>f>>>0){c[(N&p)>>2]=68267;c[(N&p)+4>>2]=10788;bd(11,13600,N);a[(k&n)+7>>0]=11;m=0;break}else{K=l;t=l;l=0;r=m&255;s=15;break}}else{l=g+1|0;m=a[(l&n)>>0]|0;if(m<<24>>24>-1){l=m&255;c[(r&p)>>2]=l;s=1}else{s=mm(l,r)|0;l=c[(r&p)>>2]|0}m=d[(g&n)>>0]|0;c[(t&p)>>2]=m;if(l>>>0>11)l=(l+-12|0)>>>1;else l=d[(l&n)+34336>>0]|0;K=m;t=l+m|0;l=1;r=(s&255)+1|0;w=w+40|0;s=15}while(0);do if((s|0)==15){A=L+12|0;B=O+4|0;C=L+10|0;D=O+12|0;E=L+32|0;F=L+8|0;H=L+16|0;J=k+7|0;I=k+4|0;z=t;y=r;a:while(1){r=e[(w&o)+8>>1]|0;do if(!(r&4)){if(r&8){s=a[(g+y&n)>>0]|0;t=s&255;c[(M&p)>>2]=t;if((s&255)>11){m=1;s=62;break a}if(!(s<<24>>24)){m=-1;s=62;break a}u=+h[(w&q)>>3];om(g+z|0,t,L)|0;if(s<<24>>24==7)v=+h[(L&q)>>3];else{m=L;v=+((c[(m&p)>>2]|0)>>>0)+4294967296.0*+(c[(m&p)+4>>2]|0)}if(v<u){m=-1;s=62;break a}if(v>u){m=1;s=62;break a}else break}do if(!(r&2)){s=g+y|0;x=a[(s&n)>>0]|0;t=x&255;if(!(r&16)){c[(M&p)>>2]=t;m=x<<24>>24!=0&1;break}if(x<<24>>24>-1)c[(M&p)>>2]=t;else{mm(s,M)|0;t=c[(M&p)>>2]|0}if(!(t>>>0>11&(t&1|0)==0)){m=-1;s=62;break a}x=(t+-12|0)>>>1;if((x+z|0)>>>0>f>>>0){s=57;break a}s=c[(w&p)+12>>2]|0;m=Zv(g+z|0,c[(w&p)+16>>2]|0,(x|0)<(s|0)?x:s)|0;if(m){s=62;break a}m=x-s|0}else{t=g+y|0;s=a[(t&n)>>0]|0;if(s<<24>>24>-1){t=s&255;c[(M&p)>>2]=t}else{mm(t,M)|0;t=c[(M&p)>>2]|0}if(t>>>0<12){m=-1;s=62;break a}if(!(t&1)){m=1;s=62;break a}r=(t+-12|0)>>>1;c[(A&p)>>2]=r;if((r+z|0)>>>0>f>>>0){s=46;break a}s=c[(O+(l<<2)&p)+20>>2]|0;if(s){a[(C&n)>>0]=a[(B&n)>>0]|0;c[(E&p)>>2]=c[(D&p)>>2];b[(F&o)>>1]=2;c[(H&p)>>2]=g+z;m=pp(L,w,s,J)|0;break}x=c[(w&p)+12>>2]|0;m=Zv(g+z|0,c[(w&p)+16>>2]|0,(r|0)<(x|0)?r:x)|0;if(m){s=62;break a}m=r-x|0}while(0);if(m){s=62;break a}}else{s=a[(g+y&n)>>0]|0;t=s&255;c[(M&p)>>2]=t;if((s&255)>11){m=1;s=62;break a}if(s<<24>>24==7){m=w;u=+((c[(m&p)>>2]|0)>>>0)+4294967296.0*+(c[(m&p)+4>>2]|0);om(g+z|0,t,L)|0;v=+h[(L&q)>>3];if(v<u){m=-1;s=62;break a}if(v>u){m=1;s=62;break a}else break}else if(!(s<<24>>24)){m=-1;s=62;break a}s=g+z|0;switch(t|0){case 6:{m=d[(g+z&n)+1>>0]<<16|d[(s&n)>>0]<<24|d[(g+z&n)+2>>0]<<8|d[(g+z&n)+3>>0];x=d[(g+z&n)+5>>0]<<16|d[(g+z&n)+4>>0]<<24|d[(g+z&n)+6>>0]<<8|d[(g+z&n)+7>>0];break}case 3:{x=d[(g+z&n)+1>>0]<<8|a[(s&n)>>0]<<16|d[(g+z&n)+2>>0];m=((x|0)<0)<<31>>31;break}case 5:{m=a[(s&n)>>0]<<8|d[(g+z&n)+1>>0];x=d[(g+z&n)+3>>0]<<16|d[(g+z&n)+2>>0]<<24|d[(g+z&n)+4>>0]<<8|d[(g+z&n)+5>>0];break}case 1:case 0:{x=a[(s&n)>>0]|0;m=((x|0)<0)<<31>>31;break}case 4:{x=d[(g+z&n)+1>>0]<<16|d[(s&n)>>0]<<24|d[(g+z&n)+2>>0]<<8|d[(g+z&n)+3>>0];m=((x|0)<0)<<31>>31;break}case 2:{x=a[(s&n)>>0]<<8|d[(g+z&n)+1>>0];m=((x|0)<0)<<31>>31;break}default:{m=0;x=t+-8|0}}r=w;s=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;if((m|0)<(r|0)|(m|0)==(r|0)&x>>>0<s>>>0){m=-1;s=62;break a}if((m|0)>(r|0)|(m|0)==(r|0)&x>>>0>s>>>0){m=1;s=62;break a}}while(0);l=l+1|0;w=w+40|0;if(t>>>0>11)r=(t+-12|0)>>>1;else r=d[(t&n)+34336>>0]|0;x=t;s=0;t=0;do{t=t+1|0;x=mw(x|0,s|0,7)|0;s=G}while(((x|0)!=0|(s|0)!=0)&(t|0)<9);z=r+z|0;y=t+y|0;if(y>>>0>=K>>>0){s=70;break}if(z>>>0>f>>>0?1:(l|0)>=(e[(I&o)>>1]|0)){s=70;break}}if((s|0)==46){c[(N&p)>>2]=68346;c[(N&p)+4>>2]=10788;bd(11,13600,N);a[(J&n)>>0]=11;m=0;break}else if((s|0)==57){c[(N&p)>>2]=68375;c[(N&p)+4>>2]=10788;bd(11,13600,N);a[(J&n)>>0]=11;m=0;break}else if((s|0)==62){m=(a[((c[(O&p)+16>>2]|0)+l&n)>>0]|0)==0?m:0-m|0;break}else if((s|0)==70){m=a[(k&n)+6>>0]|0;break}}while(0);i=P;return m|0}function Lm(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;E=i;i=i+16|0;if((i|0)>=(j|0))fa();D=E;B=E+12|0;C=E+8|0;m=b[(f&o)+76>>1]|0;r=c[(f+(m<<2)&p)+120>>2]|0;A=c[(f&p)+4>>2]|0;if(!(b[(f&o)+44>>1]|0)){v=r+56|0;m=e[(f+(m<<1)&o)+78>>1]<<1;u=c[(r&p)+64>>2]|0;rp(r,(c[(v&p)>>2]|0)+((d[(u+m&n)>>0]<<8|d[(u+(m|1)&n)>>0])&e[(r&o)+20>>1])|0,f+24|0);m=f+72|0;a[(m&n)>>0]=d[(m&n)>>0]|2;m=v}else m=r+56|0;v=c[(f&p)+32>>2]|0;t=f+40|0;q=e[(t&o)>>1]|0;u=A+36|0;if((v+q|0)>>>0<=((c[(m&p)>>2]|0)+(c[(u&p)>>2]|0)|0)>>>0){if(q>>>0>g>>>0){s=(h+g|0)>>>0>q>>>0?q-g|0:h;q=v+g|0;if(l&1){m=Gg(c[(r&p)+68>>2]|0)|0;if(!m){kw(q|0,k|0,s|0)|0;m=0}}else{kw(k|0,q|0,s|0)|0;m=0}k=k+s|0;w=0;h=h-s|0}else{w=g-q|0;m=0}a:do if((m|0)==0&(h|0)!=0){m=c[(u&p)>>2]|0;z=m+-4|0;q=e[(t&o)>>1]|0;t=d[(v+q&n)+1>>0]<<16|d[(v+q&n)>>0]<<24|d[(v+q&n)+2>>0]<<8|d[(v+q&n)+3>>0];c[(B&p)>>2]=t;v=f+72|0;do if((l|0)!=2?(a[(v&n)>>0]&4)==0:0){m=((m+-5+(c[(f&p)+36>>2]|0)-q|0)>>>0)/(z>>>0)|0;g=f+64|0;if((m|0)>(c[(g&p)>>2]|0)){r=f+20|0;q=rg(c[(r&p)>>2]|0,m<<3,0)|0;if(!q){m=7;break}c[(g&p)>>2]=m<<1;c[(r&p)>>2]=q}fw(c[(f&p)+20>>2]|0,0,m<<2|0)|0;a[(v&n)>>0]=d[(v&n)>>0]|4;m=0}else m=0;while(0);g=a[(v&n)>>0]|0;if((g&4)!=0?(y=(w>>>0)/(z>>>0)|0,x=c[((c[(f&p)+20>>2]|0)+(y<<2)&p)>>2]|0,(x|0)!=0):0){c[(B&p)>>2]=x;s=(w>>>0)%(z>>>0)|0;r=x;t=y}else{s=w;r=t;t=0}if((m|0)==0&(r|0)!=0){x=l&1;y=x<<1^2;x=(x|0)==0;l=f+20|0;while(1){if(g&4)c[((c[(l&p)>>2]|0)+(t<<2)&p)>>2]=r;if(s>>>0<z>>>0){u=(s+h|0)>>>0>z>>>0?z-s|0:h;m=zg(c[(A&p)>>2]|0,r,C,y)|0;if(!m){g=c[(C&p)>>2]|0;q=c[(g&p)+4>>2]|0;r=d[(q&n)+1>>0]<<16|d[(q&n)>>0]<<24|d[(q&n)+2>>0]<<8|d[(q&n)+3>>0];c[(B&p)>>2]=r;q=q+(s+4)|0;if(!x){m=Gg(g)|0;if(!m){kw(q|0,k|0,u|0)|0;m=0}}else{kw(k|0,q|0,u|0)|0;m=0}if(!g)s=0;else{Bg(g);s=0}}h=h-u|0;k=k+u|0;t=t+1|0}else{g=t+1|0;m=c[((c[(l&p)>>2]|0)+(g<<2)&p)>>2]|0;if(!m){m=Mp(A,r,0,B)|0;r=c[(B&p)>>2]|0}else{c[(B&p)>>2]=m;r=m;m=0}s=s-z|0;t=g}if(!((m|0)==0&(h|0)!=0&(r|0)!=0))break a;g=a[(v&n)>>0]|0}}}while(0);if((m|0)==0&(h|0)!=0){c[(D&p)>>2]=57357;c[(D&p)+4>>2]=10788;bd(11,13600,D);m=11}}else{c[(D&p)>>2]=57202;c[(D&p)+4>>2]=10788;bd(11,13600,D);m=11}i=E;return m|0}function Mm(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[(a&p)>>2]|0;d=a+44|0;mg(e,c[(d&p)>>2]|0);a=b+8|0;c[(d&p)>>2]=kh(e,c[(a&p)>>2]|0)|0;Wc(c[(a&p)>>2]|0);c[(a&p)>>2]=0;return}function Nm(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))fa();k=u+4|0;s=u;t=e+12|0;if(!(c[(t&p)>>2]|0)){h=e+8|0;g=Fm(c[((c[(h&p)>>2]|0)&p)+28>>2]|0,0,0,k)|0;c[(t&p)>>2]=g;if(!(c[(k&p)>>2]|0))g=7;else{b[(g&o)+4>>1]=b[((c[((c[(h&p)>>2]|0)&p)+28>>2]|0)&o)+6>>1]|0;a[(g&n)+7>>0]=0;l=4}}else l=4;if((l|0)==4){r=qg(256,0)|0;if(!r)g=7;else{fw(r|0,0,256)|0;g=c[(f&p)>>2]|0;c[(s&p)>>2]=g;if(g){q=f+4|0;while(1){h=c[(q&p)>>2]|0;if(h)if((g|0)==(h|0))m=0;else m=h+(c[(g&p)+4>>2]|0)|0;else m=c[(g&p)+4>>2]|0;c[(g&p)+4>>2]=0;l=c[(r&p)>>2]|0;k=c[(s&p)>>2]|0;if(!l)l=r;else{h=r;g=0;do{Np(e,k,l,s);c[(h&p)>>2]=0;g=g+1|0;h=r+(g<<2)|0;l=c[(h&p)>>2]|0;k=c[(s&p)>>2]|0}while((l|0)!=0);l=h}c[(l&p)>>2]=k;c[(s&p)>>2]=m;if(!m)break;else g=m}}c[(s&p)>>2]=0;g=0;h=0;do{Np(e,g,c[(r+(h<<2)&p)>>2]|0,s);h=h+1|0;g=c[(s&p)>>2]|0}while((h|0)!=64);c[(f&p)>>2]=g;Wc(r);g=d[((c[(t&p)>>2]|0)&n)+7>>0]|0}}i=u;return g|0}function Om(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+64|0;if((i|0)>=(j|0))fa();m=q+40|0;o=q;a[(b&n)+56>>0]=1;g=b+64|0;l=b+36|0;k=b+72|0;h=c[((c[(k&p)>>2]|0)&p)+24>>2]|0;f=o+0|0;e=f+40|0;do{c[(f&p)>>2]=0;f=f+4|0}while((f|0)<(e|0));f=b+96|0;if(!((c[(f&p)>>2]|0)==0?(d=Op(h,f)|0,(d|0)!=0):0)){d=Nm(g,l)|0;if(!d){g=b+104|0;d=g;Pp(c[(f&p)>>2]|0,o,c[((c[(k&p)>>2]|0)&p)+12>>2]|0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0);d=b+92|0;c[(d&p)>>2]=(c[(d&p)>>2]|0)+1;d=c[(b&p)+44>>2]|0;Qp(o,m,pm(m,d,((d|0)<0)<<31>>31)|0);d=c[(l&p)>>2]|0;if(d){f=b+40|0;do{e=d;d=c[(d&p)+4>>2]|0;b=c[(e&p)>>2]|0;Qp(o,m,pm(m,b,((b|0)<0)<<31>>31)|0);Qp(o,e+8|0,c[(e&p)>>2]|0);if(!(c[(f&p)>>2]|0))Wc(e)}while((d|0)!=0)}c[(l&p)>>2]=0;d=Rp(o,g)|0}}i=q;return d|0}function Pm(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();q=s;g=d;k=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;r=Qm(b)|0;c[(e&p)>>2]=r;h=(r|0)==0;f=h?7:0;h=h^1;if((b|0)>0&h){o=r+12|0;n=a+32|0;m=0;do{h=c[(o&p)>>2]|0;l=h+(m*56|0)|0;f=Sp(a,l,n,k,g)|0;if(!f){f=Tp(l,q)|0;g=l;k=q;g=jw(c[(k&p)>>2]|0,c[(k&p)+4>>2]|0,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0)|0;k=h+(m*56|0)+8|0;h=k;c[(h&p)>>2]=g;c[(h&p)+4>>2]=G;if(!f)f=Up(l)|0}else k=h+(m*56|0)+8|0;g=k;k=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;m=m+1|0;h=(f|0)==0}while((m|0)<(b|0)&h)}if(!h){Tm(r);c[(e&p)>>2]=0}b=d;c[(b&p)>>2]=k;c[(b&p)+4>>2]=g;i=s;return f|0}function Qm(a){a=a|0;var b=0,d=0;b=2;while(1)if((b|0)<(a|0))b=b<<1;else{d=b;break}b=c[2252]|0;if((b|0)!=0?(lc[b&127](100)|0)!=0:0)b=0;else{a=(d*60|0)+16|0;b=qg(a,((a|0)<0)<<31>>31)|0;if(!b)b=0;else{fw(b|0,0,a|0)|0;c[(b&p)>>2]=d;c[(b&p)+4>>2]=0;a=b+16|0;c[(b&p)+12>>2]=a;c[(b&p)+8>>2]=a+(d*56|0)}}return b|0}function Rm(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=c[2252]|0;if((f|0)!=0?(lc[f&127](100)|0)!=0:0){f=0;i=6}else i=3;do if((i|0)==3){f=qg(64,0)|0;if(!f){i=6;break}else{g=f+0|0;h=g+64|0;do{a[(g&n)>>0]=0;g=g+1|0}while((g|0)<(h|0));c[(e&p)>>2]=f;c[(f&p)+4>>2]=d;c[(f&p)>>2]=b;h=c[(b&p)+8>>2]|0;g=(c[(h&p)+8>>2]|0)+9|0;h=(c[(h&p)+4>>2]|0)/2|0;h=(g|0)>(h|0)?g:h;c[(f&p)+16>>2]=h;f=b+56|0;g=f;g=jw(h|0,((h|0)<0)<<31>>31|0,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0)|0;c[(f&p)>>2]=g;c[(f&p)+4>>2]=G;f=0;break}}while(0);if((i|0)==6){c[(e&p)>>2]=f;Tm(d);f=7}return f|0}function Sm(a){a=a|0;if(a){Tm(c[(a&p)+4>>2]|0);Wc(a)}return}function Tm(a){a=a|0;var b=0,d=0;if((a|0)!=0?(c[(a&p)>>2]|0)>0:0){b=a+12|0;d=0;do{Vp((c[(b&p)>>2]|0)+(d*56|0)|0);d=d+1|0}while((d|0)<(c[(a&p)>>2]|0))}Wc(a);return}function Um(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0;o=c[(b&p)>>2]|0;t=b+4|0;c[(t&p)>>2]=a;a:do if((o|0)>0){q=b+12|0;r=0;do{l=c[(q&p)>>2]|0;j=l+(r*56|0)|0;l=c[(l+(r*56|0)&p)+48>>2]|0;if(l){m=c[(l&p)>>2]|0;i=c[((c[(m&p)+8>>2]|0)&p)+24>>2]|0;e=Um(m,c[(l&p)+4>>2]|0)|0;if(e)break a;k=c[(l&p)+16>>2]|0;g=m+48|0;h=c[(g&p)>>2]|0;f=m+56|0;if(!h){e=Op(i,g)|0;i=f;c[(i&p)>>2]=0;c[(i&p)+4>>2]=0;if(e)break a;h=c[(g&p)>>2]|0;g=0;f=0}else{g=c[(f&p)>>2]|0;f=c[(f&p)+4>>2]|0}c[(l&p)+48>>2]=h;l=l+8|0;c[(l&p)>>2]=g;c[(l&p)+4>>2]=f;l=jw(g|0,f|0,k|0,((k|0)<0)<<31>>31|0)|0;e=m+56|0;c[(e&p)>>2]=l;c[(e&p)+4>>2]=G;e=Up(j)|0;if(e)break a}r=r+1|0}while((r|0)<(o|0));e=c[(b&p)>>2]|0;s=12}else{e=o;s=12}while(0);if((s|0)==12){f=e+-1|0;b:do if((f|0)>0){j=b+12|0;k=b+8|0;h=e;g=e;i=f;while(1){e=(h|0)/2|0;if((g|0)>(e|0)){g=i-e<<1;e=g;g=g|1}else{g=i<<1;o=c[(k&p)>>2]|0;e=c[(o+(g<<2)&p)>>2]|0;g=c[(o+((g|1)<<2)&p)>>2]|0}f=c[(j&p)>>2]|0;if(c[(f+(e*56|0)&p)+24>>2]|0){if(c[(f+(g*56|0)&p)+24>>2]|0){o=(Wp(c[(t&p)>>2]|0,c[(f+(e*56|0)&p)+32>>2]|0,c[(f+(e*56|0)&p)+20>>2]|0,c[(f+(g*56|0)&p)+32>>2]|0,c[(f+(g*56|0)&p)+20>>2]|0)|0)<1;e=o?e:g}}else e=g;c[((c[(k&p)>>2]|0)+(i<<2)&p)>>2]=e;e=i+-1|0;if((e|0)<=0)break b;g=i;h=c[(b&p)>>2]|0;i=e}}while(0);e=d[((c[(a&p)+12>>2]|0)&n)+7>>0]|0}return e|0}function Vm(f){f=f|0;var g=0,h=0,i=0,j=0,k=0;i=f+76|0;do{g=b[(i&o)>>1]|0;h=c[(f+(g<<2)&p)+120>>2]|0;if(a[(h&n)+5>>0]|0){g=0;break}j=c[(h&p)+56>>2]|0;g=e[(f+(g<<1)&o)+78>>1]<<1;k=c[(h&p)+64>>2]|0;g=(d[(k+g&n)>>0]<<8|d[(k+(g|1)&n)>>0])&e[(h&o)+20>>1];g=rm(f,d[(j+g&n)+1>>0]<<16|d[(j+g&n)>>0]<<24|d[(j+g&n)+2>>0]<<8|d[(j+g&n)+3>>0])|0}while((g|0)==0);return g|0}function Wm(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;s=a+8|0;g=c[((c[(s&p)>>2]|0)&p)+4>>2]|0;w=c[(a&p)+4>>2]|0;u=a+12|0;e=Up((c[(u&p)>>2]|0)+(g*56|0)|0)|0;if(!e){e=c[(u&p)>>2]|0;f=g|1;a=(c[(a&p)>>2]|0)+g|0;a:do if((a|0)>1){m=e;o=a;i=c[(e+(f*56|0)&p)+32>>2]|0;q=e+((g&65534)*56|0)|0;g=e+(f*56|0)|0;while(1){r=q+24|0;j=q;k=q+32|0;l=q+20|0;e=m;h=o;a=i;while(1){f=h;h=(h|0)/2|0;if(!(c[(r&p)>>2]|0)){i=a;break}if(((c[(g&p)+24>>2]|0)!=0?(t=Wp(w,c[(k&p)>>2]|0,c[(l&p)>>2]|0,a,c[(g&p)+20>>2]|0)|0,(t|0)>=0):0)?!((t|0)==0&q>>>0<g>>>0):0){v=10;break}i=c[(u&p)>>2]|0;a=c[(s&p)>>2]|0;c[(a+(h<<2)&p)>>2]=(j-i|0)/56|0;g=c[(a+((h^1)<<2)&p)>>2]|0;if((f|0)<=3){e=i;break a}else{e=i;a=c[(i+(g*56|0)&p)+32>>2]|0;g=i+(g*56|0)|0}}if((v|0)==10){v=0;e=c[(u&p)>>2]|0;i=(c[(r&p)>>2]|0)==0?a:0}a=c[(s&p)>>2]|0;c[(a+(h<<2)&p)>>2]=(g-e|0)/56|0;if((f|0)>3){m=e;o=h;q=e+((c[(a+((h^1)<<2)&p)>>2]|0)*56|0)|0}else break}}else a=c[(s&p)>>2]|0;while(0);c[(b&p)>>2]=(c[(e+((c[(a&p)+4>>2]|0)*56|0)&p)+24>>2]|0)==0&1;e=d[((c[(w&p)+12>>2]|0)&n)+7>>0]|0}return e|0}function Xm(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=b+4|0;g=c[(f&p)>>2]|0;c[(g&p)+4>>2]=c[(b&p)>>2];b=Ln(g,d,0)|0;if(!b){b=c[((c[(f&p)>>2]|0)&p)+8>>2]|0;if(b)do{if(a[(b&n)+72>>0]&16)a[(b&n)+73>>0]=0;b=c[(b&p)+8>>2]|0}while((b|0)!=0);b=Xp(g,d,0,e)|0}return b|0}function Ym(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;C=i;i=i+32|0;if((i|0)>=(j|0))fa();t=C;B=C+16|0;A=C+12|0;z=C+8|0;c[(B&p)>>2]=0;m=c[(f&p)+12>>2]|0;if(!g){g=Yp(f,h)|0;c[(A&p)>>2]=g}else{c[(A&p)>>2]=g;u=(c[(g&p)+68>>2]|0)+26|0;b[(u&o)>>1]=(b[(u&o)>>1]|0)+1<<16>>16}l=Gg(c[(m&p)+68>>2]|0)|0;c[(z&p)>>2]=l;do if(!l){u=m+56|0;s=c[(u&p)>>2]|0;D=s+36|0;l=s+37|0;m=s+38|0;s=s+39|0;q=d[(l&n)>>0]<<16|d[(D&n)>>0]<<24|d[(m&n)>>0]<<8|d[(s&n)>>0];r=q+1|0;a[(D&n)>>0]=r>>>24;a[(l&n)>>0]=r>>>16;a[(m&n)>>0]=r>>>8;a[(s&n)>>0]=r;s=f+22|0;if(b[(s&o)>>1]&4){if(!g){m=dl(f,h,A,0)|0;c[(z&p)>>2]=m;if(m){k=m;break}g=c[(A&p)>>2]|0}m=Gg(c[(g&p)+68>>2]|0)|0;c[(z&p)>>2]=m;if(m){k=m;break}fw(c[(g&p)+56>>2]|0,0,c[((c[(g&p)+52>>2]|0)&p)+32>>2]|0)|0}if((a[(f&n)+17>>0]|0)!=0?(zp(f,h,2,0,z),k=c[(z&p)>>2]|0,(k|0)!=0):0)break;if(q){l=c[(u&p)>>2]|0;l=d[(l&n)+33>>0]<<16|d[(l&n)+32>>0]<<24|d[(l&n)+34>>0]<<8|d[(l&n)+35>>0];k=dl(f,l,B,0)|0;c[(z&p)>>2]=k;if(k)break;k=c[(B&p)>>2]|0;r=k+56|0;q=c[(r&p)>>2]|0;q=d[(q&n)+5>>0]<<16|d[(q&n)+4>>0]<<24|d[(q&n)+6>>0]<<8|d[(q&n)+7>>0];m=(c[(f&p)+36>>2]|0)>>>2;if(q>>>0>(m+-2|0)>>>0){c[(t&p)>>2]=58627;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(z&p)>>2]=11;k=11;break}if(q>>>0<(m+-8|0)>>>0){k=Gg(c[(k&p)+68>>2]|0)|0;c[(z&p)>>2]=k;if(k)break;u=c[(r&p)>>2]|0;t=q+1|0;a[(u&n)+4>>0]=t>>>24;a[(u&n)+5>>0]=t>>>16;a[(u&n)+6>>0]=t>>>8;a[(u&n)+7>>0]=t;u=q<<2;t=c[(r&p)>>2]|0;a[(t+u&n)+8>>0]=h>>>24;a[(t+u&n)+9>>0]=h>>>16;a[(t+u&n)+10>>0]=h>>>8;a[(t+u&n)+11>>0]=h;if((((g|0)!=0?(b[(s&o)>>1]&4)==0:0)?(v=c[(g&p)+68>>2]|0,w=v+24|0,x=e[(w&o)>>1]|0,(x&2|0)!=0):0)?(c[((c[(v&p)+16>>2]|0)&p)+96>>2]|0)==0:0)b[(w&o)>>1]=x|32;l=f+60|0;k=c[(l&p)>>2]|0;do if(!k){g=c[(f&p)+44>>2]|0;k=qg(512,0)|0;if(!k){c[(l&p)>>2]=0;k=7;break}else{fw(k|0,0,512)|0;c[(k&p)>>2]=g;c[(l&p)>>2]=k;y=28;break}}else y=28;while(0);if((y|0)==28)if((c[(k&p)>>2]|0)>>>0<h>>>0)k=0;else k=bi(k,h)|0;c[(z&p)>>2]=k;break}}else l=0;if(!g){k=dl(f,h,A,0)|0;c[(z&p)>>2]=k;if(k)break;g=c[(A&p)>>2]|0}k=Gg(c[(g&p)+68>>2]|0)|0;c[(z&p)>>2]=k;if(!k){k=g+56|0;v=c[(k&p)>>2]|0;a[(v&n)>>0]=l>>>24;a[(v&n)+1>>0]=l>>>16;a[(v&n)+2>>0]=l>>>8;a[(v&n)+3>>0]=l;k=(c[(k&p)>>2]|0)+4|0;a[(k&n)>>0]=0;a[(k&n)+1>>0]=0;a[(k&n)+2>>0]=0;a[(k&n)+3>>0]=0;k=c[(u&p)>>2]|0;a[(k&n)+32>>0]=h>>>24;a[(k&n)+33>>0]=h>>>16;a[(k&n)+34>>0]=h>>>8;a[(k&n)+35>>0]=h;k=0}}else k=l;while(0);g=c[(A&p)>>2]|0;if(g){a[(g&n)>>0]=0;Bg(c[(g&p)+68>>2]|0)}g=c[(B&p)>>2]|0;if(g)Bg(c[(g&p)+68>>2]|0);i=C;return k|0}function Zm(f,g,h,k,l,m){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;S=i;i=i+48|0;if((i|0)>=(j|0))fa();P=S+24|0;G=S;z=S+36|0;Q=S+32|0;w=g+72|0;O=c[(w&p)>>2]|0;x=c[(f&p)>>2]|0;u=c[(g&p)+68>>2]|0;v=x+15|0;if((a[(v&n)>>0]|0)!=0?(q=Gg(u)|0,(q|0)!=0):0)R=20;else R=3;a:do if((R|0)==3){r=u+24|0;t=b[(r&o)>>1]|0;if((t&2)!=0?(Uo(u)|0)!=0:0){q=Vo(u)|0;if(q){R=20;break}t=b[(r&o)>>1]|0}if((t&4)==0|(m|0)!=0)s=0;else s=c[(u&p)+20>>2]|0;b[(r&o)>>1]=t&65531;D=x+204|0;m=ac[c[8876>>2]&63](c[((c[(D&p)>>2]|0)&p)+40>>2]|0,l,0)|0;m=il(c[(D&p)>>2]|0,l,m)|0;do if(m){b[(r&o)>>1]=e[(r&o)>>1]|e[(m&o)+24>>1]&4;if(!(a[(v&n)>>0]|0)){ml(m);break}else{Zp(m,(c[(x&p)+24>>2]|0)+1|0);break}}while(0);t=c[(u&p)+20>>2]|0;Zp(u,l);To(u);if(a[(v&n)>>0]|0){Zp(m,t);Bg(m)}do if(s){q=zg(x,s,P,0)|0;if(!q){D=c[(P&p)>>2]|0;C=D+24|0;b[(C&o)>>1]=e[(C&o)>>1]|4;To(D);Bg(D);break}if(s>>>0>(c[(x&p)+28>>2]|0)>>>0){R=20;break a}ci(c[(x&p)+56>>2]|0,s,c[(x&p)+200>>2]|0);R=20;break a}while(0);c[(Q&p)>>2]=0;c[(w&p)>>2]=l;if(h<<24>>24==1|h<<24>>24==5){q=_p(g)|0;c[(Q&p)>>2]=q;if(!q)R=25;else break}else{m=c[(g&p)+56>>2]|0;m=d[(m&n)+1>>0]<<16|d[(m&n)>>0]<<24|d[(m&n)+2>>0]<<8|d[(m&n)+3>>0];if(m){zp(f,m,4,l,Q);q=c[(Q&p)>>2]|0;if(!q)R=25;else break}}if((R|0)==25?h<<24>>24==1:0){q=0;break}q=dl(f,k,z,0)|0;c[(Q&p)>>2]=q;if(!q){C=c[(z&p)>>2]|0;D=C+68|0;q=Gg(c[(D&p)>>2]|0)|0;c[(Q&p)>>2]=q;if(q){if(!C)break;Bg(c[(D&p)>>2]|0);break}b:do if(h<<24>>24==4){q=c[(C&p)+56>>2]|0;r=q+1|0;s=q+2|0;m=q+3|0;if((d[(r&n)>>0]<<16|d[(q&n)>>0]<<24|d[(s&n)>>0]<<8|d[(m&n)>>0]|0)==(O|0)){a[(q&n)>>0]=l>>>24;a[(r&n)>>0]=l>>>16;a[(s&n)>>0]=l>>>8;a[(m&n)>>0]=l;q=0;break}else{c[(P&p)>>2]=56060;c[(P&p)+4>>2]=10788;bd(11,13600,P);q=11;break}}else{A=a[(C&n)>>0]|0;$p(C)|0;z=b[(C&o)+18>>1]|0;B=z&65535;c:do if(z<<16>>16){g=C+56|0;x=C+20|0;u=C+64|0;y=h<<24>>24==3;z=G+18|0;m=0;while(1){w=c[(g&p)>>2]|0;v=m<<1;t=c[(u&p)>>2]|0;v=(d[(t+v&n)>>0]<<8|d[(t+(v|1)&n)>>0])&e[(x&o)>>1];t=w+v|0;if(y){rp(C,t,G);t=b[(z&o)>>1]|0;if((t<<16>>16!=0?(E=(t&65535)+v|0,F=w+(E+3)|0,F>>>0<=((c[(g&p)>>2]|0)+(e[(x&o)>>1]|0)|0)>>>0):0)?(H=w+E|0,I=w+(E+1)|0,J=w+(E+2)|0,(d[(I&n)>>0]<<16|d[(H&n)>>0]<<24|d[(J&n)>>0]<<8|d[(F&n)>>0]|0)==(O|0)):0){t=F;q=H;r=I;s=J;R=40;break}}else{q=w+(v+1)|0;r=w+(v+2)|0;s=w+(v+3)|0;if((d[(q&n)>>0]<<16|d[(t&n)>>0]<<24|d[(r&n)>>0]<<8|d[(s&n)>>0]|0)==(O|0)){R=42;break}}m=m+1|0;if((m|0)>=(B|0))break c}if((R|0)==40){a[(q&n)>>0]=l>>>24;a[(r&n)>>0]=l>>>16;a[(s&n)>>0]=l>>>8;a[(t&n)>>0]=l;break}else if((R|0)==42){a[(t&n)>>0]=l>>>24;a[(q&n)>>0]=l>>>16;a[(r&n)>>0]=l>>>8;a[(s&n)>>0]=l;break}}else m=0;while(0);do if((m|0)==(B|0)){if(h<<24>>24==5?(N=d[(C&n)+6>>0]|0,J=c[(C&p)+56>>2]|0,K=J+(N+8)|0,L=J+(N+9)|0,M=J+(N+10)|0,N=J+(N+11)|0,(d[(L&n)>>0]<<16|d[(K&n)>>0]<<24|d[(M&n)>>0]<<8|d[(N&n)>>0]|0)==(O|0)):0){a[(K&n)>>0]=l>>>24;a[(L&n)>>0]=l>>>16;a[(M&n)>>0]=l>>>8;a[(N&n)>>0]=l;break}c[(P&p)>>2]=56094;c[(P&p)+4>>2]=10788;bd(11,13600,P);q=11;break b}while(0);a[(C&n)>>0]=A;q=0}while(0);c[(Q&p)>>2]=q;if(C)Bg(c[(D&p)>>2]|0);if(!q){zp(f,l,h,k,Q);q=c[(Q&p)>>2]|0}}}while(0);if((R|0)==20)c[(Q&p)>>2]=q;i=S;return q|0}function _m(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;j=e+20|0;Tm(c[(j&p)>>2]|0);c[(j&p)>>2]=0;j=e+59|0;if(a[(j&n)>>0]|0){k=0;do{g=e+(k<<6)+76|0;mg(b,c[(g&p)>>2]|0);c[(g&p)>>2]=0;g=e+(k<<6)+80|0;h=c[(g&p)>>2]|0;if(h)do{i=h;h=c[(h&p)+4>>2]|0;if(i)Wc(i)}while((h|0)!=0);c[(g&p)>>2]=0;h=e+(k<<6)+96|0;g=c[(h&p)>>2]|0;if(g){i=c[(g&p)>>2]|0;if(i){lc[c[(i&p)+4>>2]&127](g)|0;c[(g&p)>>2]=0}Wc(g);c[(h&p)>>2]=0;g=e+(k<<6)+104|0;c[(g&p)>>2]=0;c[(g&p)+4>>2]=0}i=e+(k<<6)+112|0;h=c[(i&p)>>2]|0;if(h){g=c[(h&p)>>2]|0;if(g){lc[c[(g&p)+4>>2]&127](h)|0;c[(h&p)>>2]=0}Wc(h);c[(i&p)>>2]=0;g=e+(k<<6)+120|0;c[(g&p)>>2]=0;c[(g&p)+4>>2]=0}k=k+1|0}while((k|0)<(d[(j&n)>>0]|0))}h=e+36|0;if((c[(e&p)+40>>2]|0)==0?(f=c[(h&p)>>2]|0,(f|0)!=0):0)do{g=f;f=c[(f&p)+4>>2]|0;if(g)Wc(g)}while((f|0)!=0);c[(h&p)>>2]=0;c[(e&p)+44>>2]=0;a[(e&n)+56>>0]=0;c[(e&p)+48>>2]=0;c[(e&p)+8>>2]=0;f=e+32|0;mg(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0;return}function $m(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;u=i;i=i+16|0;if((i|0)>=(j|0))fa();k=u+4|0;r=u;s=c[(d&p)>>2]|0;m=c[(d&p)+8>>2]|0;q=c[(s&p)+16>>2]|0;l=(c[(q+(m<<4)&p)+12>>2]|0)+78|0;b[(l&o)>>1]=e[(l&o)>>1]&65531;l=s+65|0;do if(!(a[(l&n)>>0]|0))if(g){t=g+4|0;f=c[(t&p)>>2]|0;if(!f){aq(d,c[(g&p)>>2]|0,0);h=0;break}h=g+8|0;v=c[(h&p)>>2]|0;if((v|0)!=0?(a[(v&n)>>0]|0)!=0:0){q=s+144|0;a[(q&n)>>0]=m;c[(k&p)>>2]=0;Dn(f,k)|0;f=c[(h&p)>>2]|0;c[(s&p)+140>>2]=c[(k&p)>>2];t=s+146|0;a[(t&n)>>0]=0;ih(s,f,-1,0,0,r,0)|0;f=c[(s&p)+52>>2]|0;a[(q&n)>>0]=0;do if((f|0)!=0?(a[(t&n)>>0]|0)==0:0){c[(d&p)+12>>2]=f;if((f|0)==7){a[(l&n)>>0]=1;break}else if((f|0)==9)break;if((f&255|0)!=6){t=c[(g&p)>>2]|0;aq(d,t,Se(s)|0)}}while(0);md(c[(r&p)>>2]|0)|0;h=0;break}f=c[(g&p)>>2]|0;if(!f){aq(d,0,0);h=0;break}f=bq(s,f,c[(q+(m<<4)&p)>>2]|0)|0;if((f|0)!=0?(Dn(c[(t&p)>>2]|0,f+40|0)|0)==0:0){aq(d,c[(g&p)>>2]|0,13528);h=0}else h=0}else h=0;else{aq(d,c[(g&p)>>2]|0,0);h=1}while(0);i=u;return h|0}function an(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;l=m+8|0;h=b+16|0;f=c[(h&p)>>2]|0;g=c[((c[(f+(d<<4)&p)+12>>2]|0)&p)+32>>2]|0;if(g){f=g;do{cq(c[(f&p)+8>>2]|0);f=c[(f&p)>>2]|0}while((f|0)!=0);f=c[(h&p)>>2]|0}c[(l&p)>>2]=b;f=c[(f+(d<<4)&p)>>2]|0;c[(l&p)+4>>2]=f;do if(!(_h(b,13384,f)|0))e=1;else{c[(k&p)>>2]=f;f=uh(b,13400,k)|0;if((f|0)!=0?(e=Qe(b,f,23,l,0)|0,mg(b,f),(e|0)!=7):0)break;a[(b&n)+65>>0]=1;e=7}while(0);i=m;return e|0}function bn(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;j=c[(b&p)+12>>2]|0;if(!j){h=b+4|0;g=b+8|0;i=0}else{h=a[(e&n)>>0]|0;if(!(h<<24>>24))h=0;else{g=e;i=h;h=0;do{g=g+1|0;h=h<<3^h^(d[(i&255&n)+9328>>0]|0);i=a[(g&n)>>0]|0}while(i<<24>>24!=0)}i=(h>>>0)%((c[(b&p)>>2]|0)>>>0)|0;h=j+(i<<3)|0;g=j+(i<<3)+4|0}h=c[(h&p)>>2]|0;g=c[(g&p)>>2]|0;c[(f&p)>>2]=i;a:do if(!h)g=0;else while(1){h=h+-1|0;if(!(dd(c[(g&p)+12>>2]|0,e)|0))break a;if(!h){g=0;break}else g=c[(g&p)>>2]|0}while(0);return g|0}function cn(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();v=w;u=w+12|0;a:do if((g|0)>0){s=b+16|0;t=b+4|0;r=(e|0)==0;h=f;e=g;while(1){m=e+-1|0;if(!(c[(s&p)>>2]|0))break a;if((h|0)<1){h=e;e=5;break}if(eq(b,h)|0)break a;if(zg(c[(t&p)>>2]|0,h,u,0)|0){e=8;break}o=c[(u&p)>>2]|0;q=c[(o&p)+4>>2]|0;do if(r)if((m|0)>0?(a[((c[(b&p)>>2]|0)&n)+17>>0]|0)!=0:0){dn(b,d[(q&n)+1>>0]<<16|d[(q&n)>>0]<<24|d[(q&n)+2>>0]<<8|d[(q&n)+3>>0],4,h);e=m}else e=m;else{l=d[(q&n)+5>>0]<<16|d[(q&n)+4>>0]<<24|d[(q&n)+6>>0]<<8|d[(q&n)+7>>0];k=c[(b&p)>>2]|0;if(a[(k&n)+17>>0]|0){dn(b,h,2,0);k=c[(b&p)>>2]|0}if((l|0)>(((c[(k&p)+36>>2]|0)/4|0)+-2|0)){c[(v&p)>>2]=h;fn(b,44640,v);e=e+-2|0;break}b:do if((l|0)>0){e=0;while(1){h=e<<2;h=d[(q+h&n)+9>>0]<<16|d[(q+h&n)+8>>0]<<24|d[(q+h&n)+10>>0]<<8|d[(q+h&n)+11>>0];if(a[(k&n)+17>>0]|0)dn(b,h,2,0);eq(b,h)|0;e=e+1|0;if((e|0)==(l|0))break b;k=c[(b&p)>>2]|0}}while(0);e=m-l|0}while(0);h=d[(q&n)+1>>0]<<16|d[(q&n)>>0]<<24|d[(q&n)+2>>0]<<8|d[(q&n)+3>>0];if(o)Bg(o);if((e|0)<=0)break a}if((e|0)==5){c[(v&p)>>2]=h;c[(v&p)+4>>2]=g;c[(v&p)+8>>2]=f;fn(b,44552,v);break}else if((e|0)==8){c[(v&p)>>2]=h;fn(b,44616,v);break}}while(0);i=w;return}function dn(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0;o=i;i=i+32|0;if((i|0)>=(j|0))fa();l=o;h=o+24|0;k=o+20|0;g=hp(c[(b&p)>>2]|0,d,h,k)|0;if(!g){h=a[(h&n)>>0]|0;g=c[(k&p)>>2]|0;if(!((g|0)==(f|0)?h<<24>>24==e<<24>>24:0)){c[(l&p)>>2]=d;c[(l&p)+4>>2]=e&255;c[(l&p)+8>>2]=f;c[(l&p)+12>>2]=h&255;c[(l&p)+16>>2]=g;fn(b,44496,l)}}else if((g|0)==7|(g|0)==3082){c[(b&p)+24>>2]=1;m=3}else m=3;if((m|0)==3){c[(l&p)>>2]=d;fn(b,44464,l)}i=o;return}function en(f,g,h,k){f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0;aa=i;i=i+64|0;if((i|0)>=(j|0))fa();V=aa+40|0;r=aa+56|0;Q=aa+32|0;R=aa+24|0;N=aa;_=Q;c[(_&p)>>2]=0;c[(_&p)+4>>2]=0;_=R;c[(_&p)>>2]=0;c[(_&p)+4>>2]=0;_=f+28|0;$=c[(_&p)>>2]|0;W=f+32|0;X=c[(W&p)>>2]|0;Y=f+36|0;Z=c[(Y&p)>>2]|0;S=c[(f&p)>>2]|0;M=S+36|0;T=c[(M&p)>>2]|0;if((g|0)!=0?(eq(f,g)|0)==0:0){c[(_&p)>>2]=43768;c[(W&p)>>2]=g;s=dl(S,g,r,0)|0;do if(!s){U=c[(r&p)>>2]|0;a[(U&n)>>0]=0;s=$p(U)|0;if(s){c[(V&p)>>2]=s;fn(f,43824,V);if(!U){l=-1;break}Bg(c[(U&p)+68>>2]|0);l=-1;break}z=f+16|0;O=U+18|0;s=b[(O&o)>>1]|0;a:do if(!(s<<16>>16)){t=U+5|0;s=0;l=0}else{A=U+56|0;B=U+20|0;C=U+64|0;D=N+12|0;E=U+2|0;F=N+16|0;G=T+-5|0;H=T+-4|0;I=S+17|0;J=U+5|0;w=0;x=0;while(1){if(!(c[(z&p)>>2]|0)){t=J;l=w;break a}c[(_&p)>>2]=43864;c[(W&p)>>2]=g;c[(Y&p)>>2]=x;r=c[(A&p)>>2]|0;s=x<<1;t=c[(C&p)>>2]|0;s=(d[(t+s&n)>>0]<<8|d[(t+(s|1)&n)>>0])&e[(B&o)>>1];t=r+s|0;rp(U,t,N);u=c[(D&p)>>2]|0;if(a[(E&n)>>0]|0){l=N;y=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;if(x){q=R;m=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;if(!((l|0)>(q|0)|(l|0)==(q|0)&y>>>0>m>>>0)){v=V;c[(v&p)>>2]=y;c[(v&p)+4>>2]=l;v=V+8|0;c[(v&p)>>2]=m;c[(v&p)+4>>2]=q;fn(f,43896,V)}}else{m=R;c[(m&p)>>2]=y;c[(m&p)+4>>2]=l;m=Q;c[(m&p)>>2]=y;c[(m&p)+4>>2]=l}m=R;c[(m&p)>>2]=y;c[(m&p)+4>>2]=l}y=c[(F&p)>>2]|0;l=y&65535;if(u>>>0>l>>>0?(K=(y>>>16)+s|0,L=r+K|0,L>>>0<=((c[(A&p)>>2]|0)+(c[(M&p)>>2]|0)|0)>>>0):0){y=d[(r+K&n)+1>>0]<<16|d[(L&n)>>0]<<24|d[(r+K&n)+2>>0]<<8|d[(r+K&n)+3>>0];if(a[(I&n)>>0]|0)dn(f,y,3,g);cn(f,0,y,((G+u-l|0)>>>0)/(H>>>0)|0)}if(!(a[(J&n)>>0]|0)){v=d[(r+s&n)+1>>0]<<16|d[(t&n)>>0]<<24|d[(r+s&n)+2>>0]<<8|d[(r+s&n)+3>>0];if(a[(I&n)>>0]|0)dn(f,v,5,g);l=en(f,v,Q,(x|0)==0?0:R)|0;if(!((x|0)<1|(l|0)==(w|0)))fn(f,43944,V)}else l=w;x=x+1|0;s=b[(O&o)>>1]|0;if((x|0)>=(s&65535|0)){t=J;break}else w=l}}while(0);if(!(a[(t&n)>>0]|0)){r=d[(U&n)+6>>0]|0;J=c[(U&p)+56>>2]|0;r=d[(J+r&n)+9>>0]<<16|d[(J+r&n)+8>>0]<<24|d[(J+r&n)+10>>0]<<8|d[(J+r&n)+11>>0];c[(_&p)>>2]=43976;c[(W&p)>>2]=g;if(a[(S&n)+17>>0]|0){dn(f,r,5,g);s=b[(O&o)>>1]|0}en(f,r,0,s<<16>>16!=0?R:0)|0;J=a[(t&n)>>0]|0;c[(_&p)>>2]=43768;c[(W&p)>>2]=g;if(J<<24>>24)P=34}else{c[(_&p)>>2]=43768;c[(W&p)>>2]=g;P=34}do if((P|0)==34?(a[(U&n)+2>>0]|0)!=0:0){r=(k|0)!=0;if(!h){if(!r)break;r=Q;s=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;m=k;q=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if((r|0)>(m|0)|(r|0)==(m|0)&s>>>0>q>>>0)break;J=V;c[(J&p)>>2]=s;c[(J&p)+4>>2]=r;J=V+8|0;c[(J&p)>>2]=q;c[(J&p)+4>>2]=m;fn(f,44200,V);break}if(!r){s=R;r=c[(s&p)>>2]|0;s=c[(s&p)+4>>2]|0;m=h;q=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if(!((s|0)>(m|0)|(s|0)==(m|0)&r>>>0>q>>>0))break;J=V;c[(J&p)>>2]=r;c[(J&p)+4>>2]=s;J=V+8|0;c[(J&p)>>2]=q;c[(J&p)+4>>2]=m;fn(f,44008,V);break}r=Q;s=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;m=h;q=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if(!((r|0)>(m|0)|(r|0)==(m|0)&s>>>0>q>>>0)){J=V;c[(J&p)>>2]=s;c[(J&p)+4>>2]=r;J=V+8|0;c[(J&p)>>2]=q;c[(J&p)+4>>2]=m;fn(f,44072,V)}q=R;m=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;r=k;s=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;if((q|0)>(r|0)|(q|0)==(r|0)&m>>>0>s>>>0){J=V;c[(J&p)>>2]=m;c[(J&p)+4>>2]=q;q=V+8|0;c[(q&p)>>2]=s;c[(q&p)+4>>2]=r;fn(f,44136,V);q=R;m=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0}J=h;c[(J&p)>>2]=m;c[(J&p)+4>>2]=q}while(0);w=c[(U&p)+56>>2]|0;x=d[(U&n)+6>>0]|0;y=Go(c[(S&p)+32>>2]|0)|0;c[(_&p)>>2]=0;if(y){v=((d[(w+x&n)+5>>0]<<8|d[(w+x&n)+6>>0])+65535&65535)+1|0;fw(y+v|0,0,T-v|0)|0;fw(y|0,1,v|0)|0;v=d[(w+x&n)+3>>0]<<8|d[(w+x&n)+4>>0];q=x+12-(d[(t&n)>>0]<<2)|0;if(v){m=T+-4|0;u=0;do{t=q+(u<<1)|0;t=d[(w+t&n)>>0]<<8|d[(w+t&n)+1>>0];if((t|0)>(m|0))r=65536;else r=(Lp(U,w+t|0)|0)&65535;s=r+t|0;if((s|0)<=(T|0)){if(r)do{s=s+-1|0;J=y+s|0;a[(J&n)>>0]=(a[(J&n)>>0]|0)+1<<24>>24}while((s|0)>(t|0))}else{c[(_&p)>>2]=0;c[(V&p)>>2]=u;c[(V&p)+4>>2]=g;fn(f,44264,V)}u=u+1|0}while((u|0)<(v|0))}m=d[(w+x&n)+1>>0]<<8|d[(w+x&n)+2>>0];if(m)do{q=d[(w+m&n)+2>>0]<<8|d[(w+m&n)+3>>0];if(q){q=q+m|0;do{q=q+-1|0;J=y+q|0;a[(J&n)>>0]=(a[(J&n)>>0]|0)+1<<24>>24}while((q|0)>(m|0))}m=d[(w+m&n)>>0]<<8|d[(w+m&n)+1>>0]}while((m|0)!=0);b:do if((T|0)>0){q=0;m=0;while(1){r=a[(y+m&n)>>0]|0;if(r<<24>>24){if(r<<24>>24>1)break}else q=q+1|0;m=m+1|0;if((m|0)>=(T|0))break b}c[(V&p)>>2]=m;c[(V&p)+4>>2]=g;fn(f,44312,V)}else q=0;while(0);m=d[(w+x&n)+7>>0]|0;if((q|0)!=(m|0)){c[(V&p)>>2]=q;c[(V&p)+4>>2]=m;c[(V&p)+8>>2]=g;fn(f,44352,V)}}else c[(f&p)+24>>2]=1;$k(y);if(U)Bg(c[(U&p)+68>>2]|0)}else{c[(V&p)>>2]=s;fn(f,43784,V);l=-1}while(0);c[(_&p)>>2]=$;c[(W&p)>>2]=X;c[(Y&p)>>2]=Z;l=l+1|0}else l=0;i=aa;return l|0}function fn(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+224|0;if((i|0)>=(j|0))fa();h=m;k=m+8|0;l=m+24|0;f=b+16|0;g=c[(f&p)>>2]|0;if(g){c[(f&p)>>2]=g+-1;f=b+20|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;c[(k&p)>>2]=e;e=b+40|0;if(c[(b&p)+52>>2]|0)Sk(e,43760,1);f=c[(b&p)+28>>2]|0;if(f){g=c[(b&p)+36>>2]|0;c[(h&p)>>2]=c[(b&p)+32>>2];c[(h&p)+4>>2]=g;ad(200,l,f,h)|0;f=l;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;Sk(e,l,f-l&1073741823)}sg(e,1,d,k);if((a[(b&n)+65>>0]|0)==1)c[(b&p)+24>>2]=1}i=m;return}function gn(b){b=b|0;var d=0,e=0;d=b+8|0;e=c[(d&p)>>2]|0;do if((e|0)!=(c[(b&p)+4>>2]|0))if((a[(b&n)+24>>0]|0)==1){mg(c[(b&p)>>2]|0,e);break}else{Wc(e);break}while(0);c[(d&p)>>2]=0;return}function hn(d){d=d|0;var f=0,g=0,h=0,i=0;g=c[(d&p)+32>>2]|0;i=d+8|0;if(!((b[(i&o)>>1]&9312)==0?(c[(d&p)+24>>2]|0)==0:0))Qg(d);f=mh(g,64,0)|0;h=d+20|0;c[(h&p)>>2]=f;if(!(a[(g&n)+65>>0]|0)){do if(!g)f=lc[c[8792>>2]&127](f)|0;else{if((c[(g&p)+276>>2]|0)>>>0<=f>>>0?(c[(g&p)+280>>2]|0)>>>0>f>>>0:0){f=e[(g&o)+248>>1]|0;break}f=lc[c[8792>>2]&127](f)|0}while(0);c[(d&p)+24>>2]=f;h=c[(h&p)>>2]|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=g;c[(h&p)+8>>2]=0;c[(h&p)+12>>2]=0;c[(h&p)+20>>2]=0;c[(h&p)+16>>2]=h+32;b[(h&o)+24>>1]=(f+1048544|0)>>>4;b[(h&o)+26>>1]=1;c[(h&p)+28>>2]=0;c[(d&p)>>2]=h;b[(i&o)>>1]=32}else{b[(i&o)>>1]=1;c[(d&p)+24>>2]=0}return}function jn(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;i=on(a)|0;if(i){j=i;c[(j&p)>>2]=d;c[(j&p)+4>>2]=f;c[(i&p)+8>>2]=0;j=a+12|0;h=c[(j&p)>>2]|0;if(!h)c[(a&p)+8>>2]=i;else{a=a+26|0;g=e[(a&o)>>1]|0;if((g&1|0)!=0?(k=h,l=c[(k&p)+4>>2]|0,!((l|0)<(f|0)|((l|0)==(f|0)?(c[(k&p)>>2]|0)>>>0<d>>>0:0))):0)b[(a&o)>>1]=g&65534;c[(h&p)+8>>2]=i}c[(j&p)>>2]=i}return}function kn(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=i;i=i+160|0;if((i|0)>=(j|0))fa();g=h;fw(g|0,0,160)|0;a:do if(!a){a=0;b=0}else{b=0;while(1){d=a+8|0;f=c[(d&p)>>2]|0;c[(d&p)>>2]=0;if(!b)b=g;else{d=b;b=g;e=0;do{a=mn(d,a)|0;c[(b&p)>>2]=0;e=e+1|0;b=g+(e<<2)|0;d=c[(b&p)>>2]|0}while((d|0)!=0)}c[(b&p)>>2]=a;if(!f){a=0;b=0;break a}a=f;b=c[(g&p)>>2]|0}}while(0);do{a=mn(a,c[(g+(b<<2)&p)>>2]|0)|0;b=b+1|0}while((b|0)!=40);i=h;return a|0}function ln(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;f=c[(a&p)+12>>2]|0;if(!f)c[(b&p)>>2]=a;else{ln(f,b,e);c[((c[(e&p)>>2]|0)&p)+8>>2]=a}e=a+8|0;f=c[(e&p)>>2]|0;if(!f)c[(d&p)>>2]=a;else ln(f,e,d);i=g;return}function mn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;d=(a|0)!=0;a:do if(d&(b|0)!=0){e=a;a=l;while(1){h=e;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;while(1){f=b;d=c[(f&p)>>2]|0;f=c[(f&p)+4>>2]|0;if((h|0)<(f|0)|(h|0)==(f|0)&g>>>0<d>>>0){k=4;break}if(!((f|0)<(h|0)|(f|0)==(h|0)&d>>>0<g>>>0))break;c[(a&p)+8>>2]=b;d=c[(b&p)+8>>2]|0;if(!d){f=0;d=1;break a}else{a=b;b=d}}if((k|0)==4){k=0;c[(a&p)+8>>2]=e;a=e}e=c[(e&p)+8>>2]|0;d=(e|0)!=0;if(!(d&(b|0)!=0)){f=b;b=a;break}}}else{f=b;e=a;b=l}while(0);c[(b&p)+8>>2]=d?e:f;i=m;return c[(l&p)+8>>2]|0}function nn(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;d=a+8|0;b=c[(d&p)>>2]|0;c[(e&p)>>2]=b;c[(d&p)>>2]=0;c[(a&p)+12>>2]=0;if(!b)b=a;else{d=1;while(1){g=b+8|0;c[(e&p)>>2]=c[(g&p)>>2];c[(b&p)+12>>2]=a;c[(g&p)>>2]=fq(e,d)|0;a=c[(e&p)>>2]|0;if(!a)break;else{g=b;b=a;d=d+1|0;a=g}}}i=f;return b|0}function on(a){a=a|0;var d=0,e=0,f=0,g=0;f=a+24|0;d=b[(f&o)>>1]|0;if(!(d<<16>>16)){d=mh(c[(a&p)+4>>2]|0,1016,0)|0;if(!d)d=0;else{c[(d&p)>>2]=c[(a&p)>>2];c[(a&p)>>2]=d;d=d+8|0;c[(a&p)+16>>2]=d;b[(f&o)>>1]=63;e=62;g=5}}else{e=d+-1<<16>>16;d=c[(a&p)+16>>2]|0;g=5}if((g|0)==5){b[(f&o)>>1]=e;c[(a&p)+16>>2]=d+16}return d|0}function pn(d){d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();s=t;g=d+4|0;if(a[(g&n)>>0]|0){e=qn(d)|0;if(!e){m=a[(g&n)>>0]|0;f=4}}else{m=0;f=4}do if((f|0)==4){h=c[(d&p)>>2]|0;q=c[(d&p)+60>>2]|0;k=c[(d&p)+212>>2]|0;e=d+160|0;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;l=d+208|0;c[(l&p)>>2]=0;g=(c[(h&p)+4>>2]|0)+112|0;r=qg(g,0)|0;if(!r)e=7;else{fw(r|0,0,g|0)|0;c[(r&p)>>2]=h;u=r+112|0;g=r+8|0;c[(g&p)>>2]=u;c[(r&p)+4>>2]=q;b[(r&o)+40>>1]=-1;d=r+16|0;c[(d&p)>>2]=f;c[(d&p)+4>>2]=e;c[(r&p)+100>>2]=k;d=r+48|0;a[(d&n)>>0]=1;f=r+49|0;a[(f&n)>>0]=1;a[(r&n)+43>>0]=m<<24>>24!=0?2:0;c[(s&p)>>2]=524294;e=tc[c[(h&p)+24>>2]&31](h,k,u,524294,s)|0;if(e){gq(r,0);f=c[(g&p)>>2]|0;g=c[(f&p)>>2]|0;if(g){lc[c[(g&p)+4>>2]&127](f)|0;c[(f&p)>>2]=0}Wc(r);break}if(c[(s&p)>>2]&1)a[(r&n)+46>>0]=1;g=lc[c[((c[(q&p)>>2]|0)&p)+48>>2]&127](q)|0;if(g&1024)a[(d&n)>>0]=0;if(g&4096)a[(f&n)>>0]=0;c[(l&p)>>2]=r;e=0}}while(0);i=t;return e|0}function qn(b){b=b|0;var d=0,e=0,f=0;f=fl(b,4)|0;if((f|0)!=0?(d=c[(b&p)+60>>2]|0,e=c[(d&p)>>2]|0,(e|0)!=0):0){if(!(a[(b&n)+13>>0]|0))rc[c[(e&p)+32>>2]&127](d,1)|0;d=b+17|0;if((a[(d&n)>>0]|0)!=5)a[(d&n)>>0]=1}return f|0}function rn(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;if(!b)g=0;else{k=b+4|0;g=c[(k&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+28>>2]&127](g,4)|0;if(!g){h=b+43|0;if(!(a[(h&n)>>0]|0))a[(h&n)>>0]=1;g=Tn(b,0,0,0,d,e,f,0,0)|0;if(!g){c[(l&p)>>2]=-1;g=c[(k&p)>>2]|0;ac[c[((c[(g&p)>>2]|0)&p)+40>>2]&63](g,10,l)|0;if((c[(l&p)>>2]|0)==1){g=b+16|0;d=c[(g&p)+4>>2]|0;if((d|0)>-1|(d|0)==-1&(c[(g&p)>>2]|0)>>>0>4294967295){Zo(b,0,0);e=0;g=0}else{e=0;g=0}}else{e=1;g=0}}else e=0}else e=0;gq(b,e);d=c[(b&p)+8>>2]|0;h=c[(d&p)>>2]|0;if(h){lc[c[(h&p)+4>>2]&127](d)|0;c[(d&p)>>2]=0}if(e){d=c[3164]|0;if(d)nc[d&3]();d=c[(b&p)>>2]|0;ac[c[(d&p)+28>>2]&63](d,c[(b&p)+100>>2]|0,0)|0;d=c[3166]|0;if(d)nc[d&3]()}Wc(c[(b&p)+32>>2]|0);Wc(b)}i=m;return g|0}function sn(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;k=b+5|0;g=a[(k&n)>>0]|0;if(!((a[(b&n)+15>>0]|0)!=0?!((e|0)==2|(e|0)==4):0))h=3;do if(((h|0)==3?(f=g&255,(f|0)!=(e|0)):0)?(a[(k&n)>>0]=e,(a[(b&n)+4>>0]|0)==0&(f&5|0)==1&(e&1|0)==0):0){f=c[(b&p)+64>>2]|0;g=c[(f&p)>>2]|0;if(g){lc[c[(g&p)+4>>2]&127](f)|0;c[(f&p)>>2]=0}j=b+17|0;if((d[(j&n)>>0]|0)>1){f=c[(b&p)>>2]|0;ac[c[(f&p)+28>>2]&63](f,c[(b&p)+172>>2]|0,0)|0;break}g=b+16|0;f=a[(g&n)>>0]|0;i=f<<24>>24==0;if(i){e=cl(b)|0;h=a[(g&n)>>0]|0}else{h=f;e=0}if(h<<24>>24==1)e=fl(b,2)|0;if((e|0)==0?(g=c[(b&p)>>2]|0,ac[c[(g&p)+28>>2]&63](g,c[(b&p)+172>>2]|0,0)|0,f<<24>>24==1):0){g=c[(b&p)+60>>2]|0;f=c[(g&p)>>2]|0;if(!f)break;if(!(a[(b&n)+13>>0]|0))rc[c[(f&p)+32>>2]&127](g,1)|0;if((a[(j&n)>>0]|0)==5)break;a[(j&n)>>0]=1;break}if(i)No(b)}while(0);return d[(k&n)>>0]|0}function tn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;e=g+4|0;do if(d)if(!(ih(a,d,-1,0,0,e,0)|0)){e=c[(e&p)>>2]|0;Sd(e)|0;a=hq(a,e,b)|0;break}else{dh(b,a,Se(a)|0,f);a=Nf(a)|0;break}else a=7;while(0);i=g;return a|0}function un(a){a=a|0;var b=0;c[((c[(a&p)+4>>2]|0)&p)+4>>2]=c[(a&p)>>2];b=Kg(a,0)|0;if(!b)b=Jg(a,0)|0;return b|0}function vn(e,f){e=e|0;f=f|0;var g=0,h=0;g=c[(e&p)+4>>2]|0;c[(g&p)+4>>2]=c[(e&p)>>2];e=f&255;if(b[(g&o)+22>>1]&2){f=g+17|0;if(((e|0)!=0|0)==(d[(f&n)>>0]|0|0))h=4;else f=8}else{f=g+17|0;h=4}if((h|0)==4){a[(f&n)>>0]=(e|0)!=0&1;a[(g&n)+18>>0]=(e|0)==2&1;f=0}return f|0}function wn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;d=ih(a,d,-1,0,0,e,0)|0;do if(!d){e=c[(e&p)>>2]|0;while(1){if((Sd(e)|0)!=100){f=6;break}d=tn(a,b,fe(e,0)|0)|0;if(d){f=5;break}}if((f|0)==5){hq(a,e,b)|0;break}else if((f|0)==6){d=hq(a,e,b)|0;break}}while(0);i=g;return d|0}function xn(a){a=a|0;var b=0;b=a+100|0;c[(b&p)>>2]=(c[(b&p)>>2]|0)+1;b=c[(a&p)+88>>2]|0;if(b)do{c[(b&p)+16>>2]=1;b=c[(b&p)+44>>2]|0}while((b|0)!=0);dp(c[(a&p)+204>>2]|0,0);return}function yn(a){a=a|0;var b=0,d=0,e=0;e=a+304|0;b=c[(e&p)>>2]|0;if(!((b|0)%5|0)){b=(b<<2)+20|0;d=a+328|0;b=ro(a,c[(d&p)>>2]|0,b,((b|0)<0)<<31>>31)|0;if(!b)b=7;else{a=b+(c[(e&p)>>2]<<2)|0;c[(a&p)>>2]=0;c[(a&p)+4>>2]=0;c[(a&p)+8>>2]=0;c[(a&p)+12>>2]=0;c[(a&p)+16>>2]=0;c[(d&p)>>2]=b;b=0}}else b=0;return b|0}function zn(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=i;i=i+16|0;if((i|0)>=(j|0))fa();z=C;u=C+8|0;x=C+4|0;l=f+56|0;v=c[(l&p)>>2]|0;w=c[(f&p)+52>>2]|0;c[(x&p)>>2]=0;c[(z&p)>>2]=c[(f&p)>>2];B=uh(e,10344,z)|0;do if(!B)l=7;else{y=mh(e,28,0)|0;if(!y){mg(e,B);l=7;break}s=y+0|0;r=s+28|0;do{a[(s&n)>>0]=0;s=s+1|0}while((s|0)<(r|0));c[(y&p)>>2]=e;c[(y&p)+4>>2]=g;t=c[(f&p)+68>>2]|0;a:do if(t){s=c[(e&p)+20>>2]|0;if((s|0)>0){q=c[(e&p)+16>>2]|0;m=0;while(1){r=m+1|0;if((c[(q+(m<<4)&p)+12>>2]|0)==(t|0)){r=m;break a}if((r|0)<(s|0))m=r;else break}}else r=0}else r=-1e6;while(0);c[((c[(l&p)>>2]|0)&p)+4>>2]=c[((c[(e&p)+16>>2]|0)+(r<<4)&p)>>2];s=u+4|0;c[(s&p)>>2]=f;c[(u&p)>>2]=y;t=e+324|0;q=c[(t&p)>>2]|0;c[(t&p)>>2]=u;r=y+8|0;l=kc[h&7](e,c[(g&p)+8>>2]|0,w,v,r,x)|0;c[(t&p)>>2]=q;do if((l|0)==7){a[(e&n)+65>>0]=1;A=11}else if(!l){q=c[(r&p)>>2]|0;if(q){c[(q&p)>>2]=0;c[(q&p)+4>>2]=0;c[(q&p)+8>>2]=0;c[(c[(r&p)>>2]&p)>>2]=c[(g&p)>>2];c[(y&p)+12>>2]=1;if(c[(s&p)>>2]|0){c[(z&p)>>2]=c[(f&p)>>2];c[(k&p)>>2]=uh(e,28376,z)|0;An(y);l=1;break}x=f+60|0;c[(y&p)+24>>2]=c[(x&p)>>2];c[(x&p)>>2]=y;x=f+38|0;l=b[(x&o)>>1]|0;if(l<<16>>16>0){w=f+4|0;m=c[(w&p)>>2]|0;h=0;while(1){u=c[(m+(h*24|0)&p)+12>>2]|0;if(u){q=u;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;r=q-u|0;t=r&1073741823;if((Fc(28424,u,6)|0)==0?(v=a[(u&n)+6>>0]|0,v<<24>>24==32|v<<24>>24==0):0)q=0;else A=24;b:do if((A|0)==24){A=0;if(!t)q=0;else{q=0;while(1){if((Fc(28432,u+q|0,7)|0)==0?(v=a[(u+q&n)+7>>0]|0,v<<24>>24==32|v<<24>>24==0):0)break;q=q+1|0;if((q|0)>=(t|0))break b}q=q+1|0}}while(0);if((q|0)<(t|0)){s=(a[(u+q&n)+6>>0]|0)!=0|6;m=q+s|0;if((m|0)<=(t|0)){r=(r&1073741823)+1-s|0;l=m;m=q;while(1){a[(u+m&n)>>0]=a[(u+l&n)>>0]|0;m=m+1|0;if((m|0)==(r|0))break;else l=m+s|0}}if((a[(u+q&n)>>0]|0)==0&(q|0)>0)a[(u+q+-1&n)>>0]=0;m=c[(w&p)>>2]|0;l=m+(h*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|2;l=b[(x&o)>>1]|0}}h=h+1|0;if((h|0)>=(l<<16>>16|0)){l=0;break}}}else l=0}else l=0}else A=11;while(0);if((A|0)==11){m=c[(x&p)>>2]|0;if(!m){c[(z&p)>>2]=B;c[(k&p)>>2]=uh(e,28344,z)|0}else{c[(z&p)>>2]=m;c[(k&p)>>2]=uh(e,10344,z)|0;Wc(c[(x&p)>>2]|0)}mg(e,y)}mg(e,B)}while(0);i=C;return l|0}function An(a){a=a|0;var b=0,d=0,e=0;b=c[(a&p)>>2]|0;e=a+12|0;d=(c[(e&p)>>2]|0)+-1|0;c[(e&p)>>2]=d;if(!d){d=c[(a&p)+8>>2]|0;if(d)lc[c[((c[(d&p)>>2]|0)&p)+16>>2]&127](d)|0;mg(b,a)}return}function Bn(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=f+10|0;i=g<<24>>24==1;if((a[(v&n)>>0]|0)==1|i){r=f+12|0;h=c[(r&p)>>2]|0;if(i){i=h&-2;c[(r&p)>>2]=i;l=i;i=i<<1|1}else{l=h;i=(h<<1)+2|0}s=f+16|0;h=c[(s&p)>>2]|0;q=h+l|0;t=f+32|0;u=mh(c[(t&p)>>2]|0,i,((i|0)<0)<<31>>31)|0;if(!u)h=7;else{i=a[(v&n)>>0]|0;if(i<<24>>24==2)if((l|0)>0){i=u;do{j=d[(h&n)>>0]|0;l=h+2|0;m=d[(h&n)+1>>0]<<8;k=m|j;if((m&63488|0)==55296&l>>>0<q>>>0){k=(k<<10&983040)+65536|j<<10&64512|d[(l&n)>>0]|d[(h&n)+3>>0]<<8&768;h=h+4|0}else h=l;do if(k>>>0>=128){if(k>>>0<2048){a[(i&n)>>0]=k>>>6&31|192;a[(i&n)+1>>0]=k&63|128;i=i+2|0;break}if(k>>>0<65536){a[(i&n)>>0]=k>>>12&15|224;a[(i&n)+1>>0]=k>>>6&63|128;a[(i&n)+2>>0]=k&63|128;i=i+3|0;break}else{a[(i&n)>>0]=k>>>18&7|240;a[(i&n)+1>>0]=k>>>12&63|128;a[(i&n)+2>>0]=k>>>6&63|128;a[(i&n)+3>>0]=k&63|128;i=i+4|0;break}}else{a[(i&n)>>0]=k;i=i+1|0}while(0)}while(h>>>0<q>>>0);m=55}else{i=u;m=55}else if(i<<24>>24!=1)if((l|0)>0){i=u;do{m=d[(h&n)>>0]<<8;l=h+2|0;k=d[(h&n)+1>>0]|0;j=m|k;if((m&63488|0)==55296&l>>>0<q>>>0){j=(j<<10&983040)+65536|k<<10&64512|d[(h&n)+3>>0]|d[(l&n)>>0]<<8&768;h=h+4|0}else h=l;do if(j>>>0>=128){if(j>>>0<2048){a[(i&n)>>0]=j>>>6&31|192;a[(i&n)+1>>0]=j&63|128;i=i+2|0;break}if(j>>>0<65536){a[(i&n)>>0]=j>>>12&15|224;a[(i&n)+1>>0]=j>>>6&63|128;a[(i&n)+2>>0]=j&63|128;i=i+3|0;break}else{a[(i&n)>>0]=j>>>18&7|240;a[(i&n)+1>>0]=j>>>12&63|128;a[(i&n)+2>>0]=j>>>6&63|128;a[(i&n)+3>>0]=j&63|128;i=i+4|0;break}}else{a[(i&n)>>0]=j;i=i+1|0}while(0)}while(h>>>0<q>>>0);m=55}else{i=u;m=55}else{i=(l|0)>0;if(g<<24>>24==2)if(i){i=u;l=h;while(1){h=l+1|0;j=a[(l&n)>>0]|0;k=j&255;if((j&255)>191){k=d[(k+-192&n)+15360>>0]|0;a:do if((h|0)==(q|0))h=q;else while(1){j=a[(h&n)>>0]|0;if((j&-64)<<24>>24!=-128)break a;l=l+2|0;k=j&63|k<<6;if((l|0)==(q|0)){h=q;break}else{j=h;h=l;l=j}}while(0);if(!(k>>>0<128|(k&-2048|0)==55296|(k&-2|0)==65534))if(k>>>0<65536)m=22;else{l=k+-65536|0;a[(i&n)>>0]=l>>>10&192|k>>>10&63;a[(i&n)+1>>0]=l>>>18&3|216;a[(i&n)+2>>0]=k;a[(i&n)+3>>0]=k>>>8&3|220;i=i+4|0}else{k=65533;m=22}}else m=22;if((m|0)==22){m=0;a[(i&n)>>0]=k;a[(i&n)+1>>0]=k>>>8;i=i+2|0}if(h>>>0<q>>>0)l=h;else break}}else i=u;else if(i){i=u;do{l=h+1|0;k=a[(h&n)>>0]|0;j=k&255;if((k&255)>191){j=d[(j+-192&n)+15360>>0]|0;b:do if((l|0)==(q|0))h=q;else{k=h;h=l;while(1){l=a[(h&n)>>0]|0;if((l&-64)<<24>>24!=-128)break b;k=k+2|0;j=l&63|j<<6;if((k|0)==(q|0)){h=q;break}else{l=h;h=k;k=l}}}while(0);if(!(j>>>0<128|(j&-2048|0)==55296|(j&-2|0)==65534))if(j>>>0<65536)m=31;else{l=j+-65536|0;a[(i&n)>>0]=l>>>18&3|216;a[(i&n)+1>>0]=l>>>10&192|j>>>10&63;a[(i&n)+2>>0]=j>>>8&3|220;a[(i&n)+3>>0]=j;i=i+4|0}else{j=65533;m=31}}else{h=l;m=31}if((m|0)==31){m=0;a[(i&n)>>0]=j>>>8;a[(i&n)+1>>0]=j;i=i+2|0}}while(h>>>0<q>>>0)}else i=u;c[(r&p)>>2]=i-u;a[(i&n)>>0]=0;i=i+1|0}if((m|0)==55)c[(r&p)>>2]=i-u;a[(i&n)>>0]=0;i=f+8|0;r=b[(i&o)>>1]|0;h=r&65535;if(!((r&9312)==0?(c[(f&p)+24>>2]|0)==0:0))Qg(f);b[(i&o)>>1]=h&29|514;a[(v&n)>>0]=g;c[(s&p)>>2]=u;c[(f&p)+20>>2]=u;h=c[(t&p)>>2]|0;do if(!h)h=lc[c[8792>>2]&127](u)|0;else{if((c[(h&p)+276>>2]|0)>>>0<=u>>>0?(c[(h&p)+280>>2]|0)>>>0>u>>>0:0){h=e[(h&o)+248>>1]|0;break}h=lc[c[8792>>2]&127](u)|0}while(0);c[(f&p)+24>>2]=h;h=0}}else if(!(Vl(f)|0)){h=c[(f&p)+16>>2]|0;t=c[(f&p)+12>>2]&-2;i=h+t|0;if((t|0)>0)do{s=a[(h&n)>>0]|0;t=h+1|0;a[(h&n)>>0]=a[(t&n)>>0]|0;h=h+2|0;a[(t&n)>>0]=s}while(h>>>0<i>>>0);a[(v&n)>>0]=g;h=0}else h=7;return h|0}function Cn(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;i=a[(b&n)>>0]|0;g=i&255;a:do switch(g|0){case 46:{if(((d[(b&n)+1>>0]|0)+-48|0)>>>0<10)j=51;else{c[(e&p)>>2]=122;f=1}break}case 47:{if((a[(b&n)+1>>0]|0)==42?(f=a[(b&n)+2>>0]|0,f<<24>>24!=0):0){f=f&255;g=3;while(1){i=a[(b+g&n)>>0]|0;if((f|0)==42&i<<24>>24==47){f=42;break}f=i&255;if(!(i<<24>>24))break;else g=g+1|0}c[(e&p)>>2]=151;f=((f|0)!=0&1)+g|0;break a}c[(e&p)>>2]=92;f=1;break}case 45:{if((a[(b&n)+1>>0]|0)==45)f=2;else{c[(e&p)>>2]=90;f=1;break a}while(1){g=a[(b+f&n)>>0]|0;if(g<<24>>24==0|g<<24>>24==10)break;f=f+1|0}c[(e&p)>>2]=151;break}case 41:{c[(e&p)>>2]=23;f=1;break}case 59:{c[(e&p)>>2]=1;f=1;break}case 43:{c[(e&p)>>2]=89;f=1;break}case 42:{c[(e&p)>>2]=91;f=1;break}case 40:{c[(e&p)>>2]=22;f=1;break}case 124:if((a[(b&n)+1>>0]|0)==124){c[(e&p)>>2]=94;f=2;break a}else{c[(e&p)>>2]=86;f=1;break a}case 91:{f=1;while(1){g=a[(b+f&n)>>0]|0;if(!(g<<24>>24)){g=g&255;break}f=f+1|0;if(g<<24>>24==93){g=93;break}}c[(e&p)>>2]=(g|0)==93?27:150;break}case 44:{c[(e&p)>>2]=26;f=1;break}case 38:{c[(e&p)>>2]=85;f=1;break}case 126:{c[(e&p)>>2]=96;f=1;break}case 34:case 39:case 96:{g=a[(b&n)+1>>0]|0;b:do if(g<<24>>24){f=1;while(1){if(g<<24>>24==i<<24>>24){f=f+1|0;if((a[(b+f&n)>>0]|0)!=i<<24>>24)break}f=f+1|0;g=a[(b+f&n)>>0]|0;if(!(g<<24>>24))break b}if(i<<24>>24==39){c[(e&p)>>2]=97;break a}else{c[(e&p)>>2]=27;break a}}else f=1;while(0);c[(e&p)>>2]=150;break}case 88:case 120:{if((a[(b&n)+1>>0]|0)==39){c[(e&p)>>2]=134;f=2;while(1){g=a[(b+f&n)>>0]|0;if(!(a[(g&255&n)+10368>>0]&8))break;else f=f+1|0}if(g<<24>>24==39&(f&1|0)==0)g=1;else{c[(e&p)>>2]=150;while(1){g=a[(b+f&n)>>0]|0;if(g<<24>>24==39|g<<24>>24==0)break;f=f+1|0}g=g<<24>>24!=0}f=(g&1)+f|0}else j=98;break}case 61:{c[(e&p)>>2]=79;f=(a[(b&n)+1>>0]|0)==61?2:1;break}case 60:{f=a[(b&n)+1>>0]|0;if(f<<24>>24==62){c[(e&p)>>2]=78;f=2;break a}else if(f<<24>>24==60){c[(e&p)>>2]=87;f=2;break a}else if(f<<24>>24==61){c[(e&p)>>2]=81;f=2;break a}else{c[(e&p)>>2]=82;f=1;break a}}case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:{j=51;break}case 62:{f=a[(b&n)+1>>0]|0;if(f<<24>>24==61){c[(e&p)>>2]=83;f=2;break a}else if(f<<24>>24==62){c[(e&p)>>2]=88;f=2;break a}else{c[(e&p)>>2]=80;f=1;break a}}case 63:{c[(e&p)>>2]=135;f=1;while(1)if(((d[(b+f&n)>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break;break}case 33:if((a[(b&n)+1>>0]|0)==61){c[(e&p)>>2]=78;f=2;break a}else{c[(e&p)>>2]=150;f=2;break a}case 58:case 35:case 64:case 36:{c[(e&p)>>2]=135;g=a[(b&n)+1>>0]|0;if(g<<24>>24){f=1;i=0;while(1){if(!(a[(g&255&n)+10368>>0]&70)){if(g<<24>>24==40&(i|0)>0){g=i;j=78;break}if(g<<24>>24!=58){g=i;break}g=f+1|0;if((a[(b+g&n)>>0]|0)==58)f=g;else{g=i;break}}else i=i+1|0;f=f+1|0;g=a[(b+f&n)>>0]|0;if(!(g<<24>>24)){g=i;break}}do if((j|0)==78){h=f;while(1){f=h+1|0;i=a[(b+f&n)>>0]|0;if(!(i<<24>>24))break;if(i<<24>>24!=41?(a[(i&255&n)+10368>>0]&1)==0:0)h=f;else{j=81;break}}if((j|0)==81)if(i<<24>>24==41){f=h+2|0;break}c[(e&p)>>2]=150}while(0);if(g)break a}else f=1;c[(e&p)>>2]=150;break}case 37:{c[(e&p)>>2]=93;f=1;break}case 13:case 12:case 10:case 9:case 32:{f=1;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&1))break;else f=f+1|0;c[(e&p)>>2]=151;break}default:j=98}while(0);c:do if((j|0)==51){c[(e&p)>>2]=132;f=a[(b&n)>>0]|0;if(f<<24>>24==48){g=a[(b&n)+1>>0]|0;if(g<<24>>24==88|g<<24>>24==120)if(!(a[((d[(b&n)+2>>0]|0)&n)+10368>>0]&8))h=0;else{f=3;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&8))break c;else f=f+1|0}else{f=48;h=0}}else h=0;while(1){g=h+1|0;if(((f&255)+-48|0)>>>0>=10){g=h;break}f=a[(b+g&n)>>0]|0;h=g}if(f<<24>>24==46){f=g;do{f=f+1|0;g=b+f|0}while(((d[(g&n)>>0]|0)+-48|0)>>>0<10);c[(e&p)>>2]=133;h=a[(g&n)>>0]|0;i=f}else{h=f;i=g}do if(h<<24>>24==69|h<<24>>24==101){g=a[(b+i&n)+1>>0]|0;if(((g&255)+-48|0)>>>0>=10){if(!(g<<24>>24==45|g<<24>>24==43)){g=h;f=i;break}f=i+2|0;if(((d[(b+f&n)>>0]|0)+-48|0)>>>0>=10){g=h;f=i;break}}else f=i+2|0;while(1){g=b+f|0;if(((d[(g&n)>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break}c[(e&p)>>2]=133;g=a[(g&n)>>0]|0}else{g=h;f=i}while(0);if(a[(g&255&n)+10368>>0]&70)do{c[(e&p)>>2]=150;f=f+1|0}while((a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&70)!=0)}else if((j|0)==98){if(!(a[(g&n)+10368>>0]&70)){c[(e&p)>>2]=150;f=1;break}else f=1;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&70))break;else f=f+1|0;c[(e&p)>>2]=fi(b,f)|0}while(0);return f|0}function Dn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;f=a[(b&n)>>0]|0;if(f<<24>>24==43){b=b+1|0;i=0;j=13}else if(f<<24>>24==45){b=b+1|0;i=1;j=13}else if((f<<24>>24==48?(f=a[(b&n)+1>>0]|0,f<<24>>24==88|f<<24>>24==120):0)?(g=b+2|0,e=a[(g&n)>>0]|0,(a[(e&255&n)+10368>>0]&8)!=0):0){while(1){f=g+1|0;if(e<<24>>24!=48)break;g=f;e=a[(f&n)>>0]|0}if(!(a[(e&255&n)+10368>>0]&8)){e=0;f=0}else{h=e;b=0;f=0;do{e=h<<24>>24;f=(0-(e>>>6&1)&9)+e&15|f<<4;b=b+1|0;h=a[(g+b&n)>>0]|0;e=(a[(h&255&n)+10368>>0]&8)==0}while((b|0)<8&(e^1));e=e^1}if((f|0)<0|e)e=0;else{c[(d&p)>>2]=f;e=1}}else{i=0;j=13}a:do if((j|0)==13){e=0;f=0;h=0;while(1){g=(a[(b+h&n)>>0]|0)+-48|0;if(g>>>0>=10)break;f=sw(e|0,f|0,10,0)|0;e=jw(g|0,((g|0)<0)<<31>>31|0,f|0,G|0)|0;h=h+1|0;if((h|0)>=11){e=0;break a}else f=G}g=dw(e|0,f|0,i|0,0)|0;b=G;if((b|0)>0|(b|0)==0&g>>>0>2147483647)e=0;else{if(i)e=dw(0,0,e|0,f|0)|0;c[(d&p)>>2]=e;e=1}}while(0);return e|0}function En(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;sg(a,b,d,g);i=f;return}function Fn(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,H=0,I=0;I=i;i=i+16|0;if((i|0)>=(j|0))fa();F=I;D=I+4|0;c[(D&p)>>2]=0;H=mh(e,536,0)|0;a:do if(H){fw(H|0,0,536)|0;c[(H&p)+476>>2]=k;u=e+20|0;k=c[(u&p)>>2]|0;b:do if((k|0)>0){v=e+16|0;s=0;while(1){t=c[((c[(v&p)>>2]|0)+(s<<4)&p)+4>>2]|0;if(t){c[((c[(t&p)+4>>2]|0)&p)+4>>2]=c[(t&p)>>2];q=bl(t,1,1)|0;if(q)break;k=c[(u&p)>>2]|0}s=s+1|0;if((s|0)>=(k|0))break b}c[(F&p)>>2]=c[((c[(v&p)>>2]|0)+(s<<4)&p)>>2];ug(e,q,40984,F);s=H;break a}while(0);rl(e);c[(H&p)>>2]=e;c[(H&p)+424>>2]=0;do if((g|0)>-1){if((g|0)!=0?(a[(f+g+-1&n)>>0]|0)==0:0){E=21;break}if((c[(e&p)+92>>2]|0)<(g|0)){ug(e,18,41016,F);if(!e){s=H;q=18;break a}if(!(a[(e&n)+65>>0]|0)){s=H;q=c[(e&p)+56>>2]&18;break a}else{Ql(e);s=H;q=7;break a}}else{if((f|0)!=0?(r=jw(g|0,((g|0)<0)<<31>>31|0,1,0)|0,r=mh(e,r,G)|0,(r|0)!=0):0){kw(r|0,f|0,g|0)|0;a[(r+g&n)>>0]=0;Lh(H,r,D)|0;mg(e,r);q=H+480|0;c[(q&p)>>2]=f+((c[(q&p)>>2]|0)-r);break}c[(H&p)+480>>2]=f+g;break}}else E=21;while(0);if((E|0)==21)Lh(H,f,D)|0;v=e+65|0;k=H+12|0;if(!(a[(v&n)>>0]|0)){s=H+12|0;if((c[(k&p)>>2]|0)==101)c[(s&p)>>2]=0}else{c[(k&p)>>2]=7;s=H+12|0}c:do if((a[(H&n)+17>>0]|0)!=0?(w=c[(H&p)>>2]|0,x=w+20|0,(c[(x&p)>>2]|0)>0):0){r=w+16|0;u=0;while(1){k=c[(r&p)>>2]|0;q=c[(k+(u<<4)&p)+4>>2]|0;if(q){if(!(a[(q&n)+8>>0]|0)){k=yg(q,0)|0;if((k|0)==7|(k|0)==3082)break;else if(k)break c;k=c[(r&p)>>2]|0;t=1}else t=0;g=c[(q&p)+4>>2]|0;c[(g&p)+4>>2]=c[(q&p)>>2];g=c[((c[(g&p)+12>>2]|0)&p)+56>>2]|0;if((d[(g&n)+41>>0]<<16|d[(g&n)+40>>0]<<24|d[(g&n)+42>>0]<<8|d[(g&n)+43>>0]|0)!=(c[(c[(k+(u<<4)&p)+12>>2]&p)>>2]|0)){vm(w,u);c[(s&p)>>2]=17}if(t)un(q)|0}u=u+1|0;if((u|0)>=(c[(x&p)>>2]|0))break c}a[(w&n)+65>>0]=1}while(0);if(a[(v&n)>>0]|0)c[(s&p)>>2]=7;if(m)c[(m&p)>>2]=c[(H&p)+480>>2];q=c[(s&p)>>2]|0;t=(q|0)==0;do if(t?(z=H+8|0,y=c[(z&p)>>2]|0,(y|0)!=0):0){s=a[(H&n)+450>>0]|0;if(!(s<<24>>24))break;else if(s<<24>>24==2){iq(y,4);r=8;k=12}else{iq(y,8);r=0;k=8}s=r;do{jq(c[(z&p)>>2]|0,s-r|0,0,c[(s<<2&p)+41040>>2]|0,0);s=s+1|0}while((s|0)<(k|0))}while(0);r=H+8|0;if((a[(e&n)+145>>0]|0)==0?(C=c[(r&p)>>2]|0,A=(c[(H&p)+480>>2]|0)-f|0,(C|0)!=0):0){if((f|0)!=0?(z=c[(C&p)>>2]|0,B=jw(A|0,((A|0)<0)<<31>>31|0,1,0)|0,B=mh(z,B,G)|0,(B|0)!=0):0){kw(B|0,f|0,A|0)|0;a[(B+A&n)>>0]=0;s=B}else s=0;c[(C&p)+168>>2]=s;C=C+88|0;b[(C&o)>>1]=b[(C&o)>>1]&-257|(h&65535)<<8&256}s=c[(r&p)>>2]|0;do if(!s)E=60;else{if(t?(a[(v&n)>>0]|0)==0:0){E=60;break}Ng(s)|0}while(0);if((E|0)==60)c[(l&p)>>2]=s;r=c[(D&p)>>2]|0;do if(!r){c[(e&p)+52>>2]=q;r=c[(e&p)+236>>2]|0;if(r){s=r+8|0;if(!(b[(s&o)>>1]&9312)){b[(s&o)>>1]=1;break}else{vg(r);break}}}else{c[(F&p)>>2]=r;ug(e,q,10344,F);mg(e,r)}while(0);r=H+528|0;s=c[(r&p)>>2]|0;if(!s)s=H;else{do{c[(r&p)>>2]=c[(s&p)+4>>2];mg(e,s);s=c[(r&p)>>2]|0}while((s|0)!=0);s=H}}else{s=0;q=7}while(0);Ch(s);mg(e,H);F=Og(e,q)|0;i=I;return F|0}function Gn(b){b=b|0;var d=0,e=0;e=c[(b&p)>>2]|0;if((a[(e&n)+145>>0]|0)==0?(d=Zh(e,b+4|0)|0,(d|0)!=0):0){c[(b&p)+12>>2]=d;e=b+64|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+1}else d=0;return d|0}function Hn(a){a=a|0;var b=0,d=0,f=0,g=0,h=0;f=c[(a&p)+24>>2]|0;h=f+84|0;b=c[(h&p)>>2]|0;if(!b){b=1020;d=0}else{b=b*40|0;d=0}g=a+4|0;a=ro(c[(f&p)>>2]|0,c[(g&p)>>2]|0,b,d)|0;d=(a|0)!=0;if(d){b=c[(f&p)>>2]|0;do if(!b)b=lc[c[8792>>2]&127](a)|0;else{if((c[(b&p)+276>>2]|0)>>>0<=a>>>0?(c[(b&p)+280>>2]|0)>>>0>a>>>0:0){b=e[(b&o)+248>>1]|0;break}b=lc[c[8792>>2]&127](a)|0}while(0);c[(h&p)>>2]=(b>>>0)/20|0;c[(g&p)>>2]=a}return (d?0:7)|0}function In(a,d,e){a=a|0;d=d|0;e=e|0;a:do if(e)switch(d|0){case -6:{if(c[(a&p)+520>>2]|0)break a;a=(c[(e&p)>>2]|0)+-1|0;c[(e&p)>>2]=a;if(a)break a;Wc(e);break a}case -8:{if(!(c[(a&p)+520>>2]|0)){Mh(e);break a}if(c[(e&p)+24>>2]|0)mg(a,c[(e&p)+20>>2]|0);mg(a,e);break a}case -10:{if(c[(a&p)+520>>2]|0)break a;An(e);break a}case -15:case -1:case -13:case -12:{mg(a,e);break a}case -11:{if(c[(a&p)+520>>2]|0)break a;Wc(e);break a}case -5:{if(!(b[(e&o)+2>>1]&16))break a;mg(a,e);break a}default:break a}while(0);return}function Jn(e,f){e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;g=c[(f&p)>>2]|0;s=c[(e&p)+24>>2]|0;t=s+112|0;k=c[(t&p)>>2]|0;q=e+88|0;b[(q&o)>>1]=b[(q&o)>>1]&-193|64;h=c[(e&p)+32>>2]|0;a:do if((h|0)>0){j=c[(e&p)+4>>2]|0;while(1){h=h+-1|0;i=d[(j&n)>>0]|0;switch(i|0){case 5:case 7:case 9:{c[(j&p)+16>>2]=76;a[(j&n)+1>>0]=-19;break}case 6:case 8:{c[(j&p)+16>>2]=77;a[(j&n)+1>>0]=-19;break}case 14:{u=c[(j+-16&p)>>2]|0;g=(u|0)>(g|0)?u:g;break}case 2:case 3:{r=7;break}case 4:{if(!(c[(j&p)+8>>2]|0))r=7;else{b[(q&o)>>1]=b[(q&o)>>1]&-65;r=7}break}case 12:case 13:case 11:{b[(q&o)>>1]=b[(q&o)>>1]&-193|128;break}case 15:{u=c[(j&p)+8>>2]|0;g=(u|0)>(g|0)?u:g;break}case 10:case 1:{u=d[(j&n)+3>>0]|0;g=(u|0)>(g|0)?u:g;break}default:{}}if((r|0)==7){r=0;b[(q&o)>>1]=b[(q&o)>>1]|128}i=a[(i&n)+34168>>0]|0;a[(j&n)+2>>0]=i;if((i&1)!=0?(l=j+8|0,m=c[(l&p)>>2]|0,(m|0)<0):0)c[(l&p)>>2]=c[(k+(~m<<2)&p)>>2];if((h|0)<=0)break a;else j=j+20|0}}while(0);mg(c[(e&p)>>2]|0,c[(t&p)>>2]|0);c[(t&p)>>2]=0;c[(s&p)+108>>2]=0;c[(f&p)>>2]=g;return}function Kn(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=b+73|0;if((a[(e&n)>>0]|0)!=4){a[(e&n)>>0]=0;f=b+56|0;d=b+48|0;d=Gp(b,c[(f&p)>>2]|0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0,0,g)|0;if(!d){Wc(c[(f&p)>>2]|0);c[(f&p)>>2]=0;f=b+68|0;d=c[(f&p)>>2]|c[(g&p)>>2];c[(f&p)>>2]=d;if((d|0)!=0?(a[(e&n)>>0]|0)==1:0){a[(e&n)>>0]=2;d=0}else d=0}}else d=c[(b&p)+68>>2]|0;i=h;return d|0}function Ln(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=c[(a&p)+8>>2]|0;a:do if(!a)a=0;else{e=(b|0)==0;while(1){if((a|0)!=(d|0)){if(e)break;if((c[(a&p)+60>>2]|0)==(b|0))break}a=c[(a&p)+8>>2]|0;if(!a){a=0;break a}}a=Fl(a,b,d)|0}while(0);return a|0}function Mn(b){b=b|0;var e=0,f=0,g=0,h=0;f=c[(b&p)>>2]|0;g=f+1|0;c[(b&p)>>2]=g;h=a[(f&n)>>0]|0;e=h&255;if((h&255)<=191)return e|0;e=d[(e+-192&n)+15360>>0]|0;if((a[(g&n)>>0]&-64)<<24>>24==-128)while(1){f=f+2|0;c[(b&p)>>2]=f;e=(d[(g&n)>>0]|0)&63|e<<6;if((a[(f&n)>>0]&-64)<<24>>24==-128){h=g;g=f;f=h}else break}return (e>>>0<128|(e&-2048|0)==55296|(e&-2|0)==65534?65533:e)|0}function Nn(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;if((c|0)>-1)g=b+c|0;else g=-1;c=a[(b&n)>>0]|0;if(c<<24>>24!=0&g>>>0>b>>>0){d=c;c=0;do{f=b+1|0;if((d&255)>191){e=b;b=f;while(1){d=a[(b&n)>>0]|0;if((d&-64)<<24>>24==-128){d=b;b=e+2|0;e=d}else break}}else{d=a[(f&n)>>0]|0;b=f}c=c+1|0}while(d<<24>>24!=0&b>>>0<g>>>0)}else c=0;return c|0}function On(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+48|0;if((i|0)>=(j|0))fa();w=A+32|0;x=A+16|0;y=A;k=c[(d&p)>>2]|0;if((k|0)<0){c[(d&p)>>2]=0;c[(d&p)+4>>2]=-1;b[(d&o)+12>>1]=0;a[(d&n)+14>>0]=0;k=0}s=g;r=c[(s&p)+4>>2]|0;t=y;c[(t&p)>>2]=c[(s&p)>>2];c[(t&p)+4>>2]=r;t=d+8|0;c[(t&p)>>2]=h;r=f&255;s=(f|0)==254;do{q=b[(d+(k<<4)&o)+12>>1]|0;h=q&65535;g=37184+(h<<1)|0;a:do if((q&65535)>429)z=6;else{q=r;while(1){m=b[(g&o)>>1]|0;l=m<<16>>16;if(m<<16>>16==-86){z=6;break a}m=q&255;k=l+m|0;if(k>>>0<=1496?(a[(k&n)+39336>>0]|0)==q<<24>>24:0){z=16;break}if(!(q<<24>>24))break;if((q&255)>=70){u=l;z=12;break}q=a[(m&n)+40840>>0]|0;if(!(q<<24>>24)){u=l;z=12;break}}if((z|0)==16){z=0;k=e[(k<<1&o)+22184>>1]|0;break}if(((z|0)==12?(z=0,v=u+70|0,(v|0)>-1):0)?(a[(v&n)+39336>>0]|0)==70:0){k=e[(v<<1&o)+22184>>1]|0;break}k=e[(h<<1&o)+38048>>1]|0}while(0);if((z|0)==6){z=0;k=e[(h<<1&o)+38048>>1]|0}if(k>>>0<642){z=18;break}if(k>>>0>=969){z=20;break}mq(d,k+-642|0);if(s)break;k=c[(d&p)>>2]|0}while((k|0)>-1);if((z|0)==18){kq(d,k,f,y);u=d+4|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+-1}else if((z|0)==20){c[(x&p)>>2]=c[(y&p)>>2];c[(x&p)+4>>2]=c[(y&p)+4>>2];c[(x&p)+8>>2]=c[(y&p)+8>>2];u=c[(t&p)>>2]|0;c[(w&p)>>2]=x;th(u,20432,w);c[(t&p)>>2]=u;lq(d,r,y)}i=A;return}function Pn(b){b=b|0;var d=0;d=c[(b&p)>>2]|0;if((d|0)>=0){lq(b,a[(b+(d<<4)&n)+14>>0]|0,b+(d<<4)+16|0);c[(b&p)>>2]=(c[(b&p)>>2]|0)+-1}return}function Qn(a,b){a=a|0;b=b|0;var d=0;if(b){if((c[(b&p)>>2]|0)>0){d=0;do{Nk(a,c[(b+(d<<4)&p)+12>>2]|0);Mk(a,c[(b+(d<<4)&p)+16>>2]|0,1);mg(a,c[(b+(d<<4)&p)+8>>2]|0);d=d+1|0}while((d|0)<(c[(b&p)>>2]|0))}mg(a,b)}return}function Rn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+328|0;d=c[(h&p)>>2]|0;if(d){i=a+304|0;if((c[(i&p)>>2]|0)>0){f=0;do{e=c[(d+(f<<2)&p)>>2]|0;d=c[(e&p)+8>>2]|0;if((d|0)!=0?(g=c[((c[(d&p)>>2]|0)+b&p)>>2]|0,(g|0)!=0):0)lc[g&127](d)|0;c[(e&p)+20>>2]=0;An(e);f=f+1|0;d=c[(h&p)>>2]|0}while((f|0)<(c[(i&p)>>2]|0))}mg(a,d);c[(i&p)>>2]=0;c[(h&p)>>2]=0}return}function Sn(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0;do if((d|0)==-2)if(!(c[(a&p)+12>>2]|0))d=(c[(a&p)+16>>2]|0)==0?0:6;else d=6;else{h=b[(a&o)>>1]|0;g=h<<16>>16;if(!((g|0)!=(d|0)&h<<16>>16>-1)){h=(g|0)==(d|0)?4:1;g=f&255;d=e[(a&o)+2>>1]|0;if((g|0)==(d&3|0)){d=h|2;break}else return ((d&g)>>>1&1)+h|0}else d=0}while(0);return d|0} [all...] |
H A D | sqlite-safe-heap.js | 6 function Yr(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();o=r;p=r+8|0;ea(p|0,0|0,4,0);a:do if(!b){ea(e|0,0|0,4,0);f=0}else{g=da(b>>0|0,1,0,0)|0|0;if(g<<24>>24==-98)do{b=da(b+12|0,4,0,0)|0|0;g=da(b>>0|0,1,0,0)|0|0}while(g<<24>>24==-98);if(g<<24>>24==-97)k=da(b+38>>0|0,1,0,1)|0|0;else k=g&255;if((k|0)==157){b=da(b+12|0,4,0,0)|0|0;k=da(b>>0|0,1,0,0)|0|0;if((k&-2)<<24>>24==-124){h=-1;g=-1;n=k&255;k=26016;q=12}else q=30}else if((k|0)==38){h=Wq(da(b+8|0,4,0,0)|0|0,0)|0;f=Yr(a,da(b+12|0,4,0,0)|0|0,c,h,e)|0;g=da(e|0,4,0,0)|0|0;if(!g)break;fm(g,h,1);em(da(e|0,4,0,0)|0|0,d,1);break}else{h=1;g=0;n=k;k=10360;q=12}b:do if((q|0)==12){c:do switch(n|0){case 101:{f=lh(a,40,0)|0;if(!f){ea(p|0,f|0,4,0);break c}else{l=f+0|0;m=l+40|0;do{ea(l>>0|0,0|0,1,0);l=l+1|0}while((l|0)<(m|0));ea(f+8|0,1|0,2,0);ea(f+32|0,a|0,4,0);ea(p|0,f|0,4,0);g=f;f=0;break b}}case 157:{b=da(b+12|0,4,0,0)|0|0;q=30;break b}case 134:{f=lh(a,40,0)|0;if(!f){ea(p|0,f|0,4,0);break c}l=f+0|0;m=l+40|0;do{ea(l>>0|0,0|0,1,0);l=l+1|0}while((l|0)<(m|0));ea(f+8|0,1|0,2,0);ea(f+32|0,a|0,4,0);ea(p|0,f|0,4,0);g=(da(b+8|0,4,0,0)|0|0)+2|0;b=g;while(1)if(!(da(b>>0|0,1,0,0)|0))break;else b=b+1|0;p=(b-g&1073741823)+-1|0;Wg(f,Xt(a,g,p)|0,(p|0)/2|0,0,75)|0;g=f;f=0;break b}case 97:case 132:case 133:{f=lh(a,40,0)|0;if(!f){ea(p|0,f|0,4,0);break c}l=f+0|0;m=l+40|0;do{ea(l>>0|0,0|0,1,0);l=l+1|0}while((l|0)<(m|0));ea(f+8|0,1|0,2,0);ea(f+32|0,a|0,4,0);ea(p|0,f|0,4,0);do if(!((da(b+4|0,4,0,0)|0)&1024)){h=da(b+8|0,4,0,0)|0|0;ea(o|0,k|0,4,0);ea(o+4|0,h|0,4,0);h=th(a,19456,o)|0;if(!h)break c;if(f)Wg(f,h,-1,1,75)|0}else{k=da(b+8|0,4,0,0)|0|0;k=rw(k|0,((k|0)<0)<<31>>31|0,h|0,g|0)|0;h=C;b=f+8|0;if(!((da(b|0,2,0,0)|0)&9312)){p=f;ea(p|0,k|0,4,0);ea(p+4|0,h|0,4,0);ea(b|0,4|0,2,0);break}else{Yg(f,k,h);break}}while(0);if((n&-2|0)==132&d<<24>>24==65)em(f,67,1);else em(f,d,1);g=f+8|0;b=da(g|0,2,0,1)|0|0;if(b&12)ea(g|0,b&65533|0,2,0);if(c<<24>>24==1){g=f;f=0;break b}g=f;f=Xl(f,c&255)|0;break b}default:{g=0;f=0;break b}}while(0);ea(a+65>>0|0,1|0,1,0);lg(a,0);Lh(f);f=7;break a}while(0);if((q|0)==30){o=(Yr(a,b,c,d,p)|0)==0;g=da(p|0,4,0,0)|0|0;if(o&(g|0)!=0){np(g);h=g+8|0;b=da(h|0,2,0,0)|0|0;do if(!(b&8)){k=g;f=da(k|0,4,0,0)|0|0;k=da(k+4|0,4,0,0)|0|0;if((f|0)==0&(k|0)==-2147483648){ea(g|0,+(9223372036854775808.0),8,1);ea(h|0,b&48640|8|0,2,0);break}else{o=cw(0,0,f|0,k|0)|0;p=g;ea(p|0,o|0,4,0);ea(p+4|0,C|0,4,0);break}}else ea(g|0,+-+(+da(g|0,8,1,0)),8,1);while(0);em(g,d,c);f=0}else f=0}ea(e|0,g|0,4,0)}while(0);i=r;return f|0}function Zr(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=da(e>>0|0,1,0,0)|0|0,(f&255)<8):0){d=0;c=a+116|0;while(1){if((da(c+12|0,4,0,0)|0|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){ea(c+6>>0|0,1|0,1,0);break}else if((d|0)==7){ea(e>>0|0,f+1<<24>>24|0,1,0);ea(a+((f&255)<<2)+24|0,b|0,4,0);break}}while(0);return}function _r(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+32|0;if((i|0)>=(j|0))ba();l=m;c=a+484|0;h=da(c|0,4,0,0)|0|0;k=da(a|0,4,0,0)|0|0;do if((h|0)!=0?(as(a),ea(a+512|0,0|0,4,0),(da(h+52|0,4,0,0)|0|0)>=1):0){if(da(k+145>>0|0,1,0,0)|0)if(!(Hk((da(h+68|0,4,0,0)|0|0)+8|0,da(h|0,4,0,0)|0|0,h)|0)){ea(c|0,0|0,4,0);break}else{ea(k+65>>0|0,1|0,1,0);break}if(b)ea(a+500|0,(da(b|0,4,0,0)|0|0)-(da(a+496|0,4,0,0)|0|0)+(da(b+4|0,4,0,0)|0|0)|0,4,0);ea(l|0,a+496|0,4,0);g=th(k,25256,l)|0;b=da(h+68|0,4,0,0)|0|0;a:do if(b){d=da(k+20|0,4,0,0)|0|0;if((d|0)>0){e=da(k+16|0,4,0,0)|0|0;f=0;while(1){c=f+1|0;if((da(e+(f<<4)+12|0,4,0,0)|0|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=da(h|0,4,0,0)|0|0;f=da(a+384|0,4,0,0)|0|0;ea(l|0,da((da(k+16|0,4,0,0)|0|0)+(c<<4)|0,4,0,0)|0|0,4,0);ea(l+4|0,((c|0)==1?13184:13208)|0,4,0);ea(l+8|0,e|0,4,0);ea(l+12|0,e|0,4,0);ea(l+16|0,g|0,4,0);ea(l+20|0,f|0,4,0);Ar(a,25280,l);lg(k,g);g=Nq(a)|0;Cr(a,c);vh(g,144,0,0,0)|0;ea(l|0,da(h|0,4,0,0)|0|0,4,0);Hr(g,c,th(k,25368,l)|0);a=a+72|0;l=(da(a|0,4,0,0)|0|0)+1|0;ea(a|0,l|0,4,0);a=da(h|0,4,0,0)|0|0;wh(g,vh(g,97,0,l,0)|0,a,0);vh(g,147,c,l,0)|0}while(0);i=m;return}function $r(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=da(g|0,4,0,0)|0|0;d=h+1|0;ea(g|0,d|0,4,0);f=(h<<2)+8|0;e=b+56|0;f=qo(a,da(e|0,4,0,0)|0|0,f,((f|0)<0)<<31>>31)|0;if(!f){if((h|0)>0){b=0;do{lg(a,da((da(e|0,4,0,0)|0|0)+(b<<2)|0,4,0,0)|0|0);b=b+1|0}while((b|0)!=(h|0))}lg(a,c);lg(a,da(e|0,4,0,0)|0|0);ea(g|0,0|0,4,0)}else{ea(f+(h<<2)|0,c|0,4,0);ea(f+(d<<2)|0,0|0,4,0)}ea(e|0,f|0,4,0);return}function as(a){a=a|0;var b=0,c=0,d=0,e=0;b=da(a+512|0,4,0,0)|0|0;if((b|0)!=0?(e=da(a+484|0,4,0,0)|0|0,(e|0)!=0):0){c=da(a+516|0,4,0,0)|0|0;d=da(a|0,4,0,0)|0|0;a=iw(c|0,((c|0)<0)<<31>>31|0,1,0)|0;a=lh(d,a,C)|0;if(!a)a=0;else{jw(a|0,b|0,c|0)|0;ea(a+c>>0|0,0|0,1,0)}$r(d,e,a)}return}function bs(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,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();h=m;k=da(a|0,4,0,0)|0|0;l=Vq(k,c)|0;g=(b|0)!=0;if((l|0)!=0&g?(f=da(b|0,4,0,0)|0|0,(f|0)>0):0){c=f;f=0;do{if(!(cd(l,da(b+(f<<4)+8|0,4,0,0)|0|0)|0)){ea(h|0,l|0,4,0);sh(a,25184,h);c=da(b|0,4,0,0)|0|0}f=f+1|0}while((f|0)<(c|0))}if(g){f=((da(b|0,4,0,0)|0)<<4)+24|0;f=qo(k,b,f,((f|0)<0)<<31>>31)|0;if(!f)c=10;else{b=f;c=11}}else{c=lh(k,24,0)|0;if(!c)c=10;else{f=c+0|0;b=f+24|0;do{ea(f>>0|0,0|0,1,0);f=f+1|0}while((f|0)<(b|0));b=c;c=11}}if((c|0)==10){Mk(k,d);Lk(k,e,1);lg(k,l)}else if((c|0)==11){k=b+8|0;ea(k+((da(b|0,4,0,0)|0)<<4)+8|0,e|0,4,0);e=da(b|0,4,0,0)|0|0;ea(k+(e<<4)+4|0,d|0,4,0);ea(k+(e<<4)|0,l|0,4,0);ea(k+(e<<4)+12|0,0|0,4,0);ea(b|0,e+1|0,4,0)}i=m;return b|0}function cs(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+96|0;if((i|0)>=(j|0))ba();h=k+48|0;c=k;d=da(da(a+32|0,4,0,0)|0|0,4,0,0)|0|0;e=h+0|0;f=d+0|0;g=e+48|0;do{ea(e>>0|0,da(f>>0|0,1,0,0)|0|0|0,1,0);e=e+1|0;f=f+1|0}while((e|0)<(g|0));if((da(a+43>>0|0,1,0,0)|0|0)!=2){e=da(a+4|0,4,0,0)|0|0;bc[(fa(da((da(e|0,4,0,0)|0|0)+60|0,4,0,0)|0|0,31|0)|0)&31](e)}e=c+0|0;f=d+48|0;g=e+48|0;do{ea(e>>0|0,da(f>>0|0,1,0,0)|0|0|0,1,0);e=e+1|0;f=f+1|0}while((e|0)<(g|0));if((Yv(h,c,48)|0)==0?(da(h+12>>0|0,1,0,0)|0|0)!=0:0){f=h+40|0;g=h;d=0;c=0;do{d=d+c+(da(g|0,4,0,0)|0|0)|0;c=d+c+(da(g+4|0,4,0,0)|0|0)|0;g=g+8|0}while(g>>>0<f>>>0);if((d|0)==(da(f|0,4,0,0)|0|0)?(c|0)==(da(h+44|0,4,0,0)|0|0):0){c=a+52|0;if(!(Yv(c,h,48)|0))c=0;else{ea(b|0,1|0,4,0);e=c+0|0;f=h+0|0;g=e+48|0;do{ea(e|0,da(f|0,4,0,0)|0|0,4,0);e=e+4|0;f=f+4|0}while((e|0)<(g|0));c=da(a+66|0,2,0,1)|0|0;ea(a+36|0,c<<16&65536|c&65024|0,4,0);c=0}}else c=1}else c=1;i=k;return c|0}function ds(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;b=sc[(fa(da((da(a|0,4,0,0)|0|0)+8|0,4,0,0)|0|0,31|0)|0)&31](a,e,4,b,c)|0;if(!b)ea(d|0,(da(e+1>>0|0,1,0,1)|0|0)<<16|(da(e>>0|0,1,0,1)|0|0)<<24|(da(e+2>>0|0,1,0,1)|0|0)<<8|(da(e+3>>0|0,1,0,1)|0|0)|0,4,0);i=f;return b|0}function es(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;if(b>>>0<0|(b|0)==0&a>>>0<8)if(b>>>0<0|(b|0)==0&a>>>0<2)a=0;else{c=40;do{c=(c&65535)+65526|0;a=hw(a|0,b|0,1)|0;b=C}while(b>>>0<0|(b|0)==0&a>>>0<8);c=c&65535;e=11}else{if(b>>>0>0|(b|0)==0&a>>>0>255){d=b;c=40;while(1){c=(c&65535)+40|0;e=lw(a|0,d|0,4)|0;b=C;if(d>>>0>0|(d|0)==0&a>>>0>4095){a=e;d=b}else{a=e;break}}c=c&65535}else c=40;if(b>>>0>0|(b|0)==0&a>>>0>15){e=a;while(1){c=(c&65535)+10&65535;a=lw(e|0,b|0,1)|0;if(b>>>0>0|(b|0)==0&e>>>0>31){e=a;b=C}else break}e=11}else e=11}if((e|0)==11)a=(c&65535)+65526+(da(13496+((a&7)<<1)|0,2,0,1)|0|0)&65535;return a|0}function fs(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,j=0;i=da(a+408|0,4,0,0)|0|0;i=(i|0)==0?a:i;g=i+396|0;f=da(g|0,4,0,0)|0|0;h=da(i+400|0,4,0,0)|0|0;a:do if((f|0)>0){a=0;while(1){if((da(h+(a<<4)|0,4,0,0)|0|0)==(b|0)?(da(h+(a<<4)+4|0,4,0,0)|0|0)==(c|0):0)break;a=a+1|0;if((a|0)>=(f|0)){j=8;break a}}a=h+(a<<4)+8|0;if(!(da(a>>0|0,1,0,0)|0))f=d<<24>>24!=0&1;else f=1;ea(a>>0|0,f|0,1,0)}else j=8;while(0);do if((j|0)==8){a=(f<<4)+16|0;a=Vl(da(i|0,4,0,0)|0|0,h,a,((a|0)<0)<<31>>31)|0;ea(i+400|0,a|0,4,0);if(!a){ea(g|0,0|0,4,0);ea((da(i|0,4,0,0)|0|0)+65>>0|0,1|0,1,0);break}else{f=da(g|0,4,0,0)|0|0;ea(g|0,f+1|0,4,0);ea(a+(f<<4)|0,b|0,4,0);ea(a+(f<<4)+4|0,c|0,4,0);ea(a+(f<<4)+8>>0|0,d|0,1,0);ea(a+(f<<4)+12|0,e|0,4,0);break}}while(0);return}function gs(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=da(b+48|0,2,0,0)|0|0;h=e&65535;d=da(b+46|0,2,0,1)|0|0;i=a+64|0;if(!(da(i|0,4,0,0)|0)){c=da(a|0,4,0,0)|0|0;if(!((da(b+51>>0|0,1,0,0)|0)&8))g=Qs(c,h,0)|0;else g=Qs(c,d,h-d|0)|0;if(g){if(e<<16>>16){f=b+32|0;b=b+28|0;d=g+16|0;c=0;do{e=da((da(f|0,4,0,0)|0|0)+(c<<2)|0,4,0,0)|0|0;if(!(Zv(e,11152)|0))e=0;else e=br(a,e)|0;ea(g+(c<<2)+20|0,e|0,4,0);ea((da(d|0,4,0,0)|0|0)+c>>0|0,da((da(b|0,4,0,0)|0|0)+c>>0|0,1,0,0)|0|0|0,1,0);c=c+1|0}while((c|0)<(h|0))}c=(da(i|0,4,0,0)|0|0)==0;if(!c){c=(da(g|0,4,0,0)|0|0)+-1|0;ea(g|0,c|0,4,0);if(!c){Vc(g);c=0}else c=0}else c=c?g:0}else c=0}else c=0;return c|0}function hs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;B=i;i=i+112|0;if((i|0)>=(j|0))ba();w=B;y=B+100|0;z=B+96|0;g=B+48|0;x=da(a+8|0,4,0,0)|0|0;ea(y|0,0|0,4,0);ea(z|0,0|0,4,0);v=da(a|0,4,0,0)|0|0;a:do if(!x)c=0;else{b:do if(!b)A=16;else{m=da(b>>0|0,1,0,0)|0|0;l=m&255;do switch(l|0){case 155:{e=da(b+40|0,4,0,0)|0|0;if(!e){ea(w|0,da(b+8|0,4,0,0)|0|0,4,0);sh(a,28936,w);break b}else{c=da((da(e+40|0,4,0,0)|0|0)+((da(b+34|0,2,0,0)|0)<<4)+8|0,4,0,0)|0|0;break b}}case 132:{Yt(a,b,0,c);break b}case 79:case 78:case 83:case 80:case 81:case 82:{u=b+12|0;w=_t(a,da(u|0,4,0,0)|0|0,y)|0;v=b+16|0;x=_t(a,da(v|0,4,0,0)|0|0,z)|0;$t(a,da(u|0,4,0,0)|0|0,da(v|0,4,0,0)|0|0,l,w,x,c,32);break b}case 97:{w=da(b+8|0,4,0,0)|0|0;wh(x,vh(x,97,0,c,0)|0,w,0);break b}case 119:case 20:{c=du(a,b,0,0)|0;break b}case 75:{w=ws(x)|0;h=ws(x)|0;vh(x,28,0,c,0)|0;eu(a,b,w,h);vh(x,25,1,c,0)|0;e=x+24|0;d=da(e|0,4,0,0)|0|0;f=~w;if((w|0)<0?(k=da(d+112|0,4,0,0)|0|0,(k|0)!=0):0)ea(k+(f<<2)|0,da(x+32|0,4,0,0)|0|0,4,0);g=x+32|0;ea(d+88|0,(da(g|0,4,0,0)|0|0)+-1|0,4,0);vh(x,37,c,0,0)|0;f=da(e|0,4,0,0)|0|0;e=~h;if((h|0)<0?(n=da(f+112|0,4,0,0)|0|0,(n|0)!=0):0)ea(n+(e<<2)|0,da(g|0,4,0,0)|0|0,4,0);ea(f+88|0,(da(g|0,4,0,0)|0|0)+-1|0,4,0);break b}case 24:{c=hs(a,da(b+12|0,4,0,0)|0|0,c)|0;break b}case 77:case 76:{vh(x,25,1,c,0)|0;d=vh(x,l,_t(a,da(b+12|0,4,0,0)|0|0,y)|0,0,0)|0;vh(x,25,0,c,0)|0;e=da(x+32|0,4,0,0)|0|0;if(e>>>0>d>>>0)ea((da(x+4|0,4,0,0)|0|0)+(d*20|0)+8|0,e|0,4,0);ea((da(x+24|0,4,0,0)|0|0)+88|0,e+-1|0,4,0);break b}case 159:{c=da(b+28|0,4,0,0)|0|0;break b}case 158:case 95:{c=hs(a,da(b+12|0,4,0,0)|0|0,c)|0;break b}case 62:{d=da(b+44|0,4,0,0)|0|0;e=b+32|0;vh(x,132,(_((da(d+38|0,2,0,0)|0|0)+1|0,da(b+28|0,4,0,0)|0|0)|0)+((da(e|0,2,0,0)|0|0)+1)|0,c,0)|0;e=da(e|0,2,0,0)|0|0;if(e<<16>>16<=-1)break b;if((da((da(d+4|0,4,0,0)|0|0)+((e<<16>>16)*24|0)+21>>0|0,1,0,0)|0|0)!=69)break b;vh(x,39,c,0,0)|0;break b}case 153:{k=da(v+62>>0|0,1,0,0)|0|0;t=b+4|0;if(((da(t|0,4,0,0)|0)&16384|0)==0?(h=da(b+20|0,4,0,0)|0|0,(h|0)!=0):0){u=da(h|0,4,0,0)|0|0;r=1;s=h}else{u=0;r=0;s=0}m=da(b+8|0,4,0,0)|0|0;if(!m)l=0;else{l=m;while(1)if(!(da(l>>0|0,1,0,0)|0))break;else l=l+1|0;l=l-m&1073741823}g=Rh(v,m,l,u,k,0)|0;if((g|0)!=0?(da(g+12|0,4,0,0)|0|0)!=0:0){q=g+2|0;h=da(q|0,2,0,1)|0|0;if(h&512){g=ws(x)|0;f=s+4|0;Qq(a,da(da(f|0,4,0,0)|0|0,4,0,0)|0|0,c);if((u|0)>1){e=a+100|0;d=1;do{vh(x,77,c,g,0)|0;ct(a,c,1);ea(e|0,(da(e|0,4,0,0)|0|0)+1|0,4,0);Qq(a,da((da(f|0,4,0,0)|0|0)+(d*20|0)|0,4,0,0)|0|0,c);au(a);d=d+1|0}while((d|0)!=(u|0))}f=da(x+24|0,4,0,0)|0|0;e=~g;if((g|0)<0?(p=da(f+112|0,4,0,0)|0|0,(p|0)!=0):0)ea(p+(e<<2)|0,da(x+32|0,4,0,0)|0|0,4,0);ea(f+88|0,(da(x+32|0,4,0,0)|0|0)+-1|0,4,0);break b}if(h&1024){Qq(a,da(da(s+4|0,4,0,0)|0|0,4,0,0)|0|0,c);break b}p=(u|0)>0;if(p){l=s+4|0;k=w+20|0;h=w+4|0;e=w+24|0;m=0;d=0;f=0;do{if((d|0)<32?(b=da((da(l|0,4,0,0)|0|0)+(d*20|0)|0,4,0,0)|0|0,ea(w+0|0,0|0,4,0),ea(w+4|0,0|0,4,0),ea(w+8|0,0|0,4,0),ea(w+12|0,0|0,4,0),ea(w+16|0,0|0,4,0),ea(w+20|0,0|0,4,0),ea(k>>0|0,1|0,1,0),ea(w|0,78|0,4,0),ea(h|0,79|0,4,0),ea(e|0,0|0,4,0),qs(w,b)|0,(da(k>>0|0,1,0,0)|0|0)!=0):0)m=m|1<<d;if(!(((da(q|0,2,0,0)|0)&32)==0|(f|0)!=0))f=bu(a,da((da(l|0,4,0,0)|0|0)+(d*20|0)|0,4,0,0)|0|0)|0;d=d+1|0}while((d|0)!=(u|0));n=m}else{n=0;f=0}if(r){do if(!n){l=a+60|0;m=da(l|0,4,0,0)|0|0;k=a+56|0;h=da(k|0,4,0,0)|0|0;if((h|0)<(u|0)){w=a+72|0;m=da(w|0,4,0,0)|0|0;ea(w|0,m+u|0,4,0);m=m+1|0;break}else{ea(l|0,m+u|0,4,0);ea(k|0,h-u|0,4,0);break}}else{w=a+72|0;m=da(w|0,4,0,0)|0|0;ea(w|0,m+u|0,4,0);m=m+1|0}while(0);h=da(q|0,2,0,0)|0|0;if((h&192)!=0?(o=da(da(s+4|0,4,0,0)|0|0,4,0,0)|0|0,w=da(o>>0|0,1,0,0)|0|0,w<<24>>24==-100|w<<24>>24==-102):0)ea(o+38>>0|0,h&192|0,1,0);w=a+100|0;ea(w|0,(da(w|0,4,0,0)|0|0)+1|0,4,0);at(a,s,m,3);au(a)}else m=0;if((u|0)>1?((da(t|0,4,0,0)|0)&128|0)!=0:0)g=cu(v,g,u,da((da(s+4|0,4,0,0)|0|0)+20|0,4,0,0)|0|0)|0;else if(p)g=cu(v,g,u,da(da(s+4|0,4,0,0)|0|0,4,0,0)|0|0)|0;if((da(g+2|0,2,0,0)|0)&32){if(!f)f=da(v+8|0,4,0,0)|0|0;wh(x,vh(x,36,0,0,0)|0,f,-4)}wh(x,vh(x,1,n,m,c)|0,g,-5);f=da(x+4|0,4,0,0)|0|0;if(f)ea(f+(((da(x+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,u|0,1,0);if(!((u|0)!=0&(n|0)==0))break b;ct(a,m,u);e=a+56|0;if((da(e|0,4,0,0)|0|0)>=(u|0))break b;ea(e|0,u|0,4,0);ea(a+60|0,m|0,4,0);break b}ea(w|0,l|0,4,0);ea(w+4|0,m|0,4,0);sh(a,28968,w);break b}case 19:case 96:{vh(x,l,_t(a,da(b+12|0,4,0,0)|0|0,y)|0,c,0)|0;break b}case 154:break;case 148:case 73:{u=b+12|0;w=_t(a,da(u|0,4,0,0)|0|0,y)|0;v=b+16|0;x=_t(a,da(v|0,4,0,0)|0|0,z)|0;$t(a,da(u|0,4,0,0)|0|0,da(v|0,4,0,0)|0|0,m<<24>>24==73?79:78,w,x,c,160);break b}case 135:{e=b+32|0;vh(x,31,da(e|0,2,0,0)|0|0,c,0)|0;if(!(da((da(b+8|0,4,0,0)|0|0)+1>>0|0,1,0,0)|0))break b;wh(x,-1,da((da(a+472|0,4,0,0)|0|0)+((da(e|0,2,0,0)|0|0)+-1<<2)|0,4,0,0)|0|0,-2);break b}case 133:{Zt(x,da(b+8|0,4,0,0)|0|0,0,c);break b}case 74:{m=da(b+12|0,4,0,0)|0|0;h=da((da(b+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;d=da(h|0,4,0,0)|0|0;k=_t(a,m,y)|0;l=_t(a,d,z)|0;g=a+19|0;e=da(g>>0|0,1,0,0)|0|0;if(e<<24>>24){w=e+-1<<24>>24;ea(g>>0|0,w|0,1,0);f=da(a+((w&255)<<2)+24|0,4,0,0)|0|0;if(!(w<<24>>24))A=103;else{w=e+-2<<24>>24;ea(g>>0|0,w|0,1,0);g=da(a+((w&255)<<2)+24|0,4,0,0)|0|0}}else{A=a+72|0;f=(da(A|0,4,0,0)|0|0)+1|0;ea(A|0,f|0,4,0);A=103}if((A|0)==103){w=a+72|0;g=(da(w|0,4,0,0)|0|0)+1|0;ea(w|0,g|0,4,0)}$t(a,m,d,83,k,l,f,32);w=da(h+20|0,4,0,0)|0|0;Zr(a,da(z|0,4,0,0)|0|0);$t(a,m,w,81,k,_t(a,w,z)|0,g,32);vh(x,72,f,g,c)|0;Zr(a,f);Zr(a,g);break b}case 94:case 88:case 87:case 92:case 86:case 85:case 93:case 90:case 91:case 89:case 71:case 72:{w=_t(a,da(b+12|0,4,0,0)|0|0,y)|0;vh(x,l,_t(a,da(b+16|0,4,0,0)|0|0,z)|0,w,c)|0;break b}case 157:{e=b+12|0;d=da(e|0,4,0,0)|0|0;f=da(d>>0|0,1,0,0)|0|0;if(f<<24>>24==-123){Zt(x,da(d+8|0,4,0,0)|0|0,1,c);break b}else if(f<<24>>24==-124){Yt(a,d,1,c);break b}else{ea(g>>0|0,-124|0,1,0);ea(g+4|0,17408|0,4,0);ea(g+8|0,0|0,4,0);w=_t(a,g,y)|0;vh(x,90,_t(a,da(e|0,4,0,0)|0|0,z)|0,w,c)|0;break b}}case 101:{A=16;break b}case 156:{d=da(b+40|0,4,0,0)|0|0;e=da(b+34|0,2,0,0)|0|0;f=da(d+28|0,4,0,0)|0|0;if(!(da(d>>0|0,1,0,0)|0)){c=da(f+(e*24|0)+16|0,4,0,0)|0|0;break b}if(da(d+1>>0|0,1,0,0)|0){vh(x,47,da(d+8|0,4,0,0)|0|0,da(f+(e*24|0)+12|0,4,0,0)|0|0,c)|0;break b}break}case 38:{e=hs(a,da(b+12|0,4,0,0)|0|0,c)|0;if((e|0)!=(c|0))vh(x,34,e,c,0)|0;vh(x,40,c,(Wq(da(b+8|0,4,0,0)|0|0,0)|0)<<24>>24,0)|0;ct(a,c,1);break b}case 57:{if(!(da(a+412|0,4,0,0)|0)){sh(a,29e3,w);c=0;break a}f=da(b+1>>0|0,1,0,0)|0|0;if(f<<24>>24!=2){d=da(b+8|0,4,0,0)|0|0;if(f<<24>>24==4){wh(x,vh(x,24,0,4,0)|0,d,0);break b}}else{d=da(a+408|0,4,0,0)|0|0;ea(((d|0)==0?a:d)+21>>0|0,1|0,1,0);d=da(b+8|0,4,0,0)|0|0}ys(a,1811,f<<24>>24,d,0,0);break b}case 134:{d=(da(b+8|0,4,0,0)|0|0)+2|0;e=d;while(1)if(!(da(e>>0|0,1,0,0)|0))break;else e=e+1|0;v=(e-d&1073741823)+-1|0;w=Xt(da(x|0,4,0,0)|0|0,d,v)|0;wh(x,vh(x,30,(v|0)/2|0,c,0)|0,w,-1);break b}default:{q=da(b+20|0,4,0,0)|0|0;o=q+4|0;p=da(o|0,4,0,0)|0|0;q=da(q|0,4,0,0)|0|0;r=ws(x)|0;m=da(b+12|0,4,0,0)|0|0;b=(m|0)!=0;if(b){l=g+0|0;k=m+0|0;h=l+48|0;do{ea(l|0,da(k|0,4,0,0)|0|0,4,0);l=l+4|0;k=k+4|0}while((l|0)<(h|0));m=_t(a,m,y)|0;ea(g+38>>0|0,da(g>>0|0,1,0,0)|0|0|0,1,0);ea(g>>0|0,-97|0,1,0);ea(g+28|0,m|0,4,0);m=g+4|0;ea(m|0,(da(m|0,4,0,0)|0)&-4097|0,4,0);ea(w>>0|0,79|0,1,0);ea(w+12|0,g|0,4,0);ea(y|0,0|0,4,0);m=w}else m=0;n=q+-1|0;if((n|0)>0){d=a+100|0;h=w+16|0;g=x+24|0;f=x+32|0;e=0;l=m;while(1){ea(d|0,(da(d|0,4,0,0)|0|0)+1|0,4,0);m=da(p+(e*20|0)|0,4,0,0)|0|0;if(b){ea(h|0,m|0,4,0);m=l}w=ws(x)|0;ft(a,m,w,16);Qq(a,da(p+((e|1)*20|0)|0,4,0,0)|0|0,c);vh(x,16,0,r,0)|0;au(a);l=da(g|0,4,0,0)|0|0;k=~w;if((w|0)<0?(s=da(l+112|0,4,0,0)|0|0,(s|0)!=0):0)ea(s+(k<<2)|0,da(f|0,4,0,0)|0|0,4,0);ea(l+88|0,(da(f|0,4,0,0)|0|0)+-1|0,4,0);e=e+2|0;if((e|0)>=(n|0))break;else l=m}}if(!(q&1))vh(x,28,0,c,0)|0;else{w=a+100|0;ea(w|0,(da(w|0,4,0,0)|0|0)+1|0,4,0);Qq(a,da((da(o|0,4,0,0)|0|0)+(n*20|0)|0,4,0,0)|0|0,c);au(a)}f=da(x+24|0,4,0,0)|0|0;e=~r;if((r|0)<0?(t=da(f+112|0,4,0,0)|0|0,(t|0)!=0):0)ea(t+(e<<2)|0,da(x+32|0,4,0,0)|0|0,4,0);ea(f+88|0,(da(x+32|0,4,0,0)|0|0)+-1|0,4,0);break b}}while(0);d=da(b+28|0,4,0,0)|0|0;do if((d|0)<0){d=da(a+92|0,4,0,0)|0|0;if((d|0)>0){c=(da(b+32|0,2,0,0)|0|0)+d|0;break b}else{d=da(a+96|0,4,0,0)|0|0;break}}while(0);c=bt(a,da(b+44|0,4,0,0)|0|0,da(b+32|0,2,0,0)|0|0,d,c,da(b+38>>0|0,1,0,0)|0|0)|0}while(0);if((A|0)==16)vh(x,28,0,c,0)|0;Zr(a,da(y|0,4,0,0)|0|0);Zr(a,da(z|0,4,0,0)|0|0)}while(0);i=B;return c|0}function is(a,b){a=a|0;b=b|0;var c=0;c=Nq(a)|0;fs(a,b,1,1,(b|0)==1?13184:13208);wh(c,vh(c,55,0,1,b)|0,5,-14);b=a+68|0;if(!(da(b|0,4,0,0)|0))ea(b|0,1|0,4,0);return}function js(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=b+48|0;if((da(d|0,2,0,1)|0|0|0)<(c|0)){e=c*7|0;a=lh(a,e,((e|0)<0)<<31>>31)|0;if(!a)a=7;else{ew(a|0,0,e|0)|0;e=b+32|0;jw(a|0,da(e|0,4,0,0)|0|0,(da(d|0,2,0,1)|0|0)<<2|0)|0;ea(e|0,a|0,4,0);e=a+(c<<2)|0;f=b+4|0;jw(e|0,da(f|0,4,0,0)|0|0,(da(d|0,2,0,1)|0|0)<<1|0)|0;ea(f|0,e|0,4,0);a=a+(c*6|0)|0;e=b+28|0;jw(a|0,da(e|0,4,0,0)|0|0,da(d|0,2,0,1)|0|0|0)|0;ea(e|0,a|0,4,0);ea(d|0,c|0,2,0);a=b+51|0;ea(a>>0|0,da(a>>0|0,1,0,0)|0|16|0,1,0);a=0}}else a=0;return a|0}function ks(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+32|0;if((i|0)>=(j|0))ba();f=m;l=m+4|0;do if(!b)c=0;else{g=da(a|0,4,0,0)|0|0;k=b+24|0;e=g+460|0;d=(da(e|0,4,0,0)|0|0)+(da(k|0,4,0,0)|0|0)|0;c=da((da(g|0,4,0,0)|0|0)+100|0,4,0,0)|0|0;if((c|0)<(d|0)){ea(f|0,c|0,4,0);sh(g,27152,f);c=1;break}ea(e|0,d|0,4,0);f=a+28|0;e=da(f|0,2,0,1)|0|0;h=e&4098;ea(f|0,e&61437|0,2,0);ea(l+0|0,0|0,4,0);ea(l+4|0,0|0,4,0);ea(l+8|0,0|0,4,0);ea(l+12|0,0|0,4,0);ea(l+16|0,0|0,4,0);ea(l+20|0,0|0,4,0);ea(l|0,82|0,4,0);ea(l+4|0,83|0,4,0);e=l+12|0;ea(e|0,g|0,4,0);ea(l+24|0,a|0,4,0);qs(l,b)|0;l=(da(a|0,4,0,0)|0|0)+460|0;ea(l|0,(da(l|0,4,0,0)|0|0)-(da(k|0,4,0,0)|0|0)|0,4,0);if(!((da(a+24|0,4,0,0)|0|0)<=0?(da((da(e|0,4,0,0)|0|0)+64|0,4,0,0)|0|0)<=0:0)){l=b+4|0;ea(l|0,da(l|0,4,0,0)|0|8|0,4,0)}e=da(f|0,2,0,0)|0|0;d=b+4|0;c=da(d|0,4,0,0)|0|0;if(e&2){c=c|2;ea(d|0,c|0,4,0)}ea(f|0,e&65535|h|0,2,0);c=c>>>3&1}while(0);i=m;return c|0}function ls(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;f=da((da(a+12|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;c=da(a+48|0,2,0,0)|0|0;if(!(c<<16>>16)){b=0;c=0}else{g=da(a+4|0,4,0,0)|0|0;d=c&65535;e=0;b=0;do{c=da(g+(e<<1)|0,2,0,0)|0|0;if(c<<16>>16<0)c=1;else c=da(f+((c<<16>>16)*24|0)+22>>0|0,1,0,1)|0|0;b=c+b|0;e=e+1|0}while((e|0)<(d|0));b=b<<2;c=0}ea(a+44|0,es(b,c)|0|0,2,0);return}function ms(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=da(a|0,4,0,0)|0|0;d=g+24|0;f=da(d|0,4,0,0)|0|0;ea(d|0,f&-97|64|0,4,0);Cs(a,b,0);if(!(da(a+64|0,4,0,0)|0)){while(1){c=da(b+52|0,4,0,0)|0|0;if(!c){e=b;break}else b=c}ea(d|0,f|0,4,0);b=lh(g,76,0)|0;if(b){c=b+0|0;d=c+76|0;do{ea(c>>0|0,0|0,1,0);c=c+1|0}while((c|0)<(d|0));ea(b+40|0,1|0,2,0);ea(b|0,0|0,4,0);ea(b+28|0,200|0,2,0);hu(a,da(e|0,4,0,0)|0|0,b+38|0,b+4|0);iu(a,b,e);ea(b+36|0,-1|0,2,0);if(da(g+65>>0|0,1,0,0)|0){jg(g,b);b=0}}else b=0}else b=0;return b|0}function ns(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;d=da(b|0,4,0,0)|0|0;e=da(c>>0|0,1,0,0)|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:((da(10368+(g&255)>>0|0,1,0,0)|0)&6)!=0)){f=h;break a}g=da(c+f>>0|0,1,0,0)|0|0;if(!(g<<24>>24)){g=0;break}else h=f}}while(0);if((((e&255)+-48|0)>>>0>=10?(ei(c,f)|0)==27:0)?!((f|0)==0|g<<24>>24!=0):0)i=0;else{ea(a+d>>0|0,34|0,1,0);i=1;e=da(c>>0|0,1,0,0)|0|0;d=d+1|0}if(e<<24>>24){f=c;h=0;do{g=d+1|0;ea(a+d>>0|0,e|0,1,0);if((da(f>>0|0,1,0,0)|0|0)==34){ea(a+g>>0|0,34|0,1,0);d=d+2|0}else d=g;h=h+1|0;f=c+h|0;e=da(f>>0|0,1,0,0)|0|0}while(e<<24>>24!=0)}if(i){ea(a+d>>0|0,34|0,1,0);d=d+1|0}ea(a+d>>0|0,0|0,1,0);ea(b|0,d|0,4,0);return}function os(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=a+20|0;d=da(c>>0|0,1,0,0)|0|0;if(d<<24>>24==2?((da(b+4|0,4,0,0)|0)&1|0)!=0:0){ea(c>>0|0,0|0,1,0);c=2}else e=4;a:do if((e|0)==4)switch(da(b>>0|0,1,0,1)|0|0|0){case 153:{if((d&255)>3){c=0;break a}if((da(b+4|0,4,0,0)|0)&524288){c=0;break a}ea(c>>0|0,0|0,1,0);c=2;break a}case 135:if(d<<24>>24==5){ea(b>>0|0,101|0,1,0);c=0;break a}else if(d<<24>>24==4){ea(c>>0|0,0|0,1,0);c=2;break a}else{c=0;break a}case 156:case 155:case 154:case 27:{if(d<<24>>24==3?(da(b+28|0,4,0,0)|0|0)==(da(a+24|0,4,0,0)|0|0):0){c=0;break a}ea(c>>0|0,0|0,1,0);c=2;break a}default:{c=0;break a}}while(0);return c|0}function ps(a,b){a=a|0;b=b|0;ea(a+20>>0|0,0|0,1,0);return 2}function qs(a,b){a=a|0;b=b|0;var c=0,d=0;a:do if(!b)b=0;else{c=qc[(fa(da(a|0,4,0,0)|0|0,127|0)|0)&127](a,b)|0;do if((c|0)==0?(d=b+4|0,((da(d|0,4,0,0)|0)&16384|0)==0):0){if(qs(a,da(b+12|0,4,0,0)|0|0)|0){b=2;break a}if(qs(a,da(b+16|0,4,0,0)|0|0)|0){b=2;break a}b=b+20|0;if(!((da(d|0,4,0,0)|0)&2048))if(!(ku(a,da(b|0,4,0,0)|0|0)|0))break;else{b=2;break a}else if(!(ju(a,da(b|0,4,0,0)|0|0)|0))break;else{b=2;break a}}while(0);b=c&2}while(0);return b|0}function rs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;do if(b)if(!c)d=b;else{if((lu(b)|0)==0?(lu(c)|0)==0:0){d=lh(a,48,0)|0;if(d){e=d+0|0;f=e+48|0;do{ea(e>>0|0,0|0,1,0);e=e+1|0}while((e|0)<(f|0));ea(d>>0|0,72|0,1,0);ea(d+34|0,-1|0,2,0);ea(d+24|0,1|0,4,0)}ss(a,d,b,c);break}Fk(a,b);Fk(a,c);d=mr(a,132,20616,0)|0}else d=c;while(0);return d|0}function ss(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(!b){Fk(a,c);Fk(a,d)}else{if(d){ea(b+16|0,d|0,4,0);a=b+4|0;ea(a|0,da(a|0,4,0,0)|0|(da(d+4|0,4,0,0)|0)&2097408|0,4,0)}if(c){ea(b+12|0,c|0,4,0);a=b+4|0;ea(a|0,da(a|0,4,0,0)|0|(da(c+4|0,4,0,0)|0)&2097408|0,4,0)}Ht(b)}return}function ts(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;f=b<<16>>16;h=(f<<2)+63&-8;i=f<<1;j=i+2|0;g=(f+7+i+j&-8)+h|0;e=g+c|0;c=lh(a,e,((e|0)<0)<<31>>31)|0;if(c){ew(c|0,0,e|0)|0;ea(c+32|0,c+56|0,4,0);ea(c+8|0,c+h|0,4,0);e=h+j|0;ea(c+4|0,c+e|0,4,0);ea(c+28|0,c+(e+i)|0,4,0);ea(c+48|0,b|0,2,0);ea(c+46|0,f+65535|0,2,0);ea(d|0,c+g|0,4,0)}return c|0}function us(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))ba();q=w;m=da(b+12|0,4,0,0)|0|0;l=a+68|0;t=da(l|0,4,0,0)|0|0;v=t+1|0;ea(l|0,t+2|0,4,0);k=da(a|0,4,0,0)|0|0;g=da(b+24|0,4,0,0)|0|0;a:do if(g){e=da(k+20|0,4,0,0)|0|0;if((e|0)>0){d=da(k+16|0,4,0,0)|0|0;h=0;while(1){f=h+1|0;if((da(d+(h<<4)+12|0,4,0,0)|0|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((Rq(a,27,da(b|0,4,0,0)|0|0,0,da((da(k+16|0,4,0,0)|0|0)+(f<<4)|0,4,0,0)|0|0)|0)==0?(fs(a,f,da(m+32|0,4,0,0)|0|0,1,da(m|0,4,0,0)|0|0),u=Nq(a)|0,(u|0)!=0):0){if((c|0)>-1)n=c;else n=da(b+40|0,4,0,0)|0|0;r=gs(a,b)|0;s=da(l|0,4,0,0)|0|0;ea(l|0,s+1|0,4,0);p=b+46|0;e=da(p|0,2,0,1)|0|0;if(r)ea(r|0,(da(r|0,4,0,0)|0|0)+1|0,4,0);wh(u,vh(u,58,s,0,e)|0,r,-6);Pq(a,t,f,m,54);k=vh(u,108,t,0,0)|0;e=a+19|0;d=da(e>>0|0,1,0,0)|0|0;if(!(d<<24>>24)){m=a+72|0;o=(da(m|0,4,0,0)|0|0)+1|0;ea(m|0,o|0,4,0)}else{o=d+-1<<24>>24;ea(e>>0|0,o|0,1,0);o=da(a+((o&255)<<2)+24|0,4,0,0)|0|0}Ot(a,b,t,o,0,q,0,0)|0;vh(u,109,s,o,0)|0;Pt(a,da(q|0,4,0,0)|0|0);vh(u,9,t,k+1|0,0)|0;m=u+32|0;h=da(m|0,4,0,0)|0|0;if(h>>>0>k>>>0)ea((da(u+4|0,4,0,0)|0|0)+(k*20|0)+8|0,h|0,4,0);g=u+24|0;ea((da(g|0,4,0,0)|0|0)+88|0,h+-1|0,4,0);if((c|0)<0)vh(u,118,n,f,0)|0;wh(u,vh(u,55,v,n,f)|0,r,-6);l=u+4|0;e=da(l|0,4,0,0)|0|0;if(e)ea(e+(((da(m|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,(c>>31)+4&252|1|0,1,0);k=vh(u,106,s,0,0)|0;e=da(m|0,4,0,0)|0|0;if((da(b+50>>0|0,1,0,0)|0|0)!=0&(r|0)!=0){h=e+3|0;vh(u,16,0,h,0)|0;e=da(m|0,4,0,0)|0|0;n=da(p|0,2,0,1)|0|0;wh(u,vh(u,99,s,h,o)|0,n,-14);mu(a,2,b)}vh(u,100,s,o,v)|0;vh(u,110,v,o,1)|0;d=da(l|0,4,0,0)|0|0;if(d)ea(d+(((da(m|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,16|0,1,0);Zr(a,o);vh(u,5,s,e,0)|0;d=da(m|0,4,0,0)|0|0;if(d>>>0>k>>>0)ea((da(l|0,4,0,0)|0|0)+(k*20|0)+8|0,d|0,4,0);ea((da(g|0,4,0,0)|0|0)+88|0,d+-1|0,4,0);vh(u,61,t,0,0)|0;vh(u,61,v,0,0)|0;vh(u,61,s,0,0)|0}i=w;return}function vs(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,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;l=da(a|0,4,0,0)|0|0;if(!c){c=Xn(l,b,d,0)|0;if(!c)h=4;else h=3}else h=3;if((h|0)==3)if(!(da(c+12|0,4,0,0)|0))h=4;else h=14;if((h|0)==4){f=b&255;e=l+224|0;if(da(e|0,4,0,0)|0){g=jh(l,d)|0;if(g){pc[(fa(da(e|0,4,0,0)|0|0,15|0)|0)&15](da(l+232|0,4,0,0)|0|0,l,f,g);lg(l,g);h=7}}else h=7;if((h|0)==7?(k=l+228|0,(da(k|0,4,0,0)|0|0)!=0):0){e=lh(l,40,0)|0;if(!e)e=0;else{g=e+0|0;f=g+40|0;do{ea(g>>0|0,0|0,1,0);g=g+1|0}while((g|0)<(f|0));ea(e+8|0,1|0,2,0);ea(e+32|0,l|0,4,0);Wg(e,d,-1,1,0)|0}c=Rg(e,2)|0;if(c)pc[(fa(da(k|0,4,0,0)|0|0,15|0)|0)&15](da(l+232|0,4,0,0)|0|0,l,da(l+62>>0|0,1,0,1)|0|0,c);Lh(e)}c=Xn(l,b,d,0)|0;if(!c)h=19;else h=14}a:do if((h|0)==14)if(!(da(c+12|0,4,0,0)|0)){f=da(c|0,4,0,0)|0|0;g=0;while(1){e=Xn(l,da(26816+g>>0|0,1,0,0)|0|0,f,0)|0;g=g+1|0;if(da(e+12|0,4,0,0)|0)break;if((g|0)>=3){h=19;break a}}ea(c+0|0,da(e+0|0,4,0,0)|0|0,4,0);ea(c+4|0,da(e+4|0,4,0,0)|0|0,4,0);ea(c+8|0,da(e+8|0,4,0,0)|0|0,4,0);ea(c+12|0,da(e+12|0,4,0,0)|0|0,4,0);ea(c+16|0,0|0,4,0)}while(0);if((h|0)==19){ea(m|0,d|0,4,0);sh(a,26784,m);c=0}i=n;return c|0}function ws(a){a=a|0;var b=0,c=0;a=da(a+24|0,4,0,0)|0|0;c=a+108|0;b=da(c|0,4,0,0)|0|0;ea(c|0,b+1|0,4,0);if(!(b+-1&b)){c=a+112|0;a=Vl(da(a|0,4,0,0)|0|0,da(c|0,4,0,0)|0|0,b<<3|4,0)|0;ea(c|0,a|0,4,0)}else a=da(a+112|0,4,0,0)|0|0;if(a)ea(a+(b<<2)|0,-1|0,4,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,g=0,h=0,i=0;if(b){d=da(b|0,4,0,0)|0|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=lh(a,d,e)|0;if(d){e=da(b|0,4,0,0)|0|0;ea(d+4|0,e|0,4,0);ea(d|0,e|0,4,0);if((da(b|0,4,0,0)|0|0)>0){e=d+8|0;g=0;do{ea(e+(g*72|0)|0,da(b+(g*72|0)+8|0,4,0,0)|0|0,4,0);ea(e+(g*72|0)+4|0,jh(a,da(b+(g*72|0)+12|0,4,0,0)|0|0)|0|0,4,0);ea(e+(g*72|0)+8|0,jh(a,da(b+(g*72|0)+16|0,4,0,0)|0|0)|0|0,4,0);ea(e+(g*72|0)+12|0,jh(a,da(b+(g*72|0)+20|0,4,0,0)|0|0)|0|0,4,0);ea(e+(g*72|0)+36>>0|0,da(b+(g*72|0)+44>>0|0,1,0,0)|0|0|0,1,0);ea(e+(g*72|0)+40|0,da(b+(g*72|0)+48|0,4,0,0)|0|0,4,0);ea(e+(g*72|0)+24|0,da(b+(g*72|0)+32|0,4,0,0)|0|0,4,0);ea(e+(g*72|0)+28|0,da(b+(g*72|0)+36|0,4,0,0)|0|0,4,0);f=b+(g*72|0)+45|0;h=e+(g*72|0)+37|0;i=(da(h>>0|0,1,0,0)|0)&-3|(da(f>>0|0,1,0,0)|0)&2;ea(h>>0|0,i|0,1,0);i=i&-5|(da(f>>0|0,1,0,0)|0)&4;ea(h>>0|0,i|0,1,0);ea(h>>0|0,i&-9|(da(f>>0|0,1,0,0)|0)&8|0,1,0);ea(e+(g*72|0)+64|0,jh(a,da(b+(g*72|0)+72|0,4,0,0)|0|0)|0|0,4,0);ea(h>>0|0,(da(h>>0|0,1,0,0)|0)&-2|(da(f>>0|0,1,0,0)|0)&1|0,1,0);ea(e+(g*72|0)+68|0,da(b+(g*72|0)+76|0,4,0,0)|0|0,4,0);f=da(b+(g*72|0)+24|0,4,0,0)|0|0;ea(e+(g*72|0)+16|0,f|0,4,0);if(f){f=f+40|0;ea(f|0,(da(f|0,2,0,0)|0|0)+1<<16>>16|0,2,0)}ea(e+(g*72|0)+20|0,fr(a,da(b+(g*72|0)+28|0,4,0,0)|0|0,c)|0|0,4,0);ea(e+(g*72|0)+44|0,Lr(a,da(b+(g*72|0)+52|0,4,0,0)|0|0,c,0)|0|0,4,0);ea(e+(g*72|0)+48|0,Mr(a,da(b+(g*72|0)+56|0,4,0,0)|0|0)|0|0,4,0);i=b+(g*72|0)+64|0;f=da(i+4|0,4,0,0)|0|0;h=e+(g*72|0)+56|0;ea(h|0,da(i|0,4,0,0)|0|0,4,0);ea(h+4|0,f|0,4,0);g=g+1|0}while((g|0)<(da(b|0,4,0,0)|0|0))}}else d=0}else d=0;return d|0}function ys(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,i=0;g=Nq(a)|0;if((c|0)==2){i=da(a+408|0,4,0,0)|0|0;ea(((i|0)==0?a:i)+21>>0|0,1|0,1,0)}wh(g,vh(g,24,b,c,0)|0,d,e<<24>>24);if(f<<24>>24!=0?(h=da(g+4|0,4,0,0)|0|0,(h|0)!=0):0)ea(h+(((da(g+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,f|0,1,0);return}function zs(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=da((da((da(a|0,4,0,0)|0|0)+16|0,4,0,0)|0|0)+28|0,4,0,0)|0|0;do if(!(da(a+438>>0|0,1,0,0)|0)){f=da(b+68|0,4,0,0)|0|0;if((c|0)!=(f|0)?(d=da(c+48|0,4,0,0)|0|0,(d|0)!=0):0){e=b+64|0;c=0;while(1){a=da(d+8|0,4,0,0)|0|0;if((da(a+24|0,4,0,0)|0|0)==(f|0)?(cd(da(a+4|0,4,0,0)|0|0,da(b|0,4,0,0)|0|0)|0)==0:0){if(!c)c=da(e|0,4,0,0)|0|0;ea(a+32|0,c|0,4,0)}else a=c;d=da(d|0,4,0,0)|0|0;if(!d)break;else c=a}if(a)break}a=da(b+64|0,4,0,0)|0|0}else a=0;while(0);return a|0}function As(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;i=da(b+32|0,4,0,0)|0|0;j=b+8|0;h=b+68|0;e=0;while(1){f=(e|0)==0;b=f|(i|0)<(e|0)?i:0;c=da(j|0,4,0,0)|0|0;if(!c)g=b;else{do{d=da(c+40|0,4,0,0)|0|0;b=(f|(d|0)<(e|0))&(d|0)>(b|0)?d:b;c=da(c+20|0,4,0,0)|0|0}while((c|0)!=0);g=b}if(!g)break;b=da(a|0,4,0,0)|0|0;e=da(h|0,4,0,0)|0|0;a:do if(e){f=da(b+20|0,4,0,0)|0|0;if((f|0)>0){c=da(b+16|0,4,0,0)|0|0;d=0;while(1){b=d+1|0;if((da(c+(d<<4)+12|0,4,0,0)|0|0)==(e|0)){b=d;break a}if((b|0)<(f|0))d=b;else break}}else b=0}else b=-1e6;while(0);Dr(a,g,b);e=g}return}function Bs(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=da(b|0,4,0,0)|0|0,(c|0)>0):0){g=a+68|0;e=0;f=b+8|0;while(1){d=f+40|0;if((da(d|0,4,0,0)|0|0)>-1)break a;h=da(g|0,4,0,0)|0|0;ea(g|0,h+1|0,4,0);ea(d|0,h|0,4,0);d=da(f+20|0,4,0,0)|0|0;if(d){Bs(a,da(d+32|0,4,0,0)|0|0);c=da(b|0,4,0,0)|0|0}e=e+1|0;if((e|0)>=(c|0))break;else f=f+72|0}}while(0);return}function Cs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+32|0;if((i|0)>=(j|0))ba();h=k;if(((b|0)!=0?(g=(da(a|0,4,0,0)|0|0)+65|0,(da(g>>0|0,1,0,0)|0|0)==0):0)?(e=b+6|0,d=da(e|0,2,0,0)|0|0,(d&32)==0):0){ea(h+0|0,0|0,4,0);ea(h+4|0,0|0,4,0);ea(h+8|0,0|0,4,0);ea(h+12|0,0|0,4,0);ea(h+16|0,0|0,4,0);ea(h+20|0,0|0,4,0);ea(h+24|0,0|0,4,0);ea(h|0,84|0,4,0);ea(h+12|0,a|0,4,0);f=h+4|0;if(da(a+22>>0|0,1,0,0)|0){ea(f|0,85|0,4,0);ju(h,b)|0;d=da(e|0,2,0,0)|0|0}ea(f|0,86|0,4,0);if(!(d&256))ea(h+8|0,9|0,4,0);ju(h,b)|0;d=a+64|0;if((((da(d|0,4,0,0)|0|0)==0?(da(g>>0|0,1,0,0)|0|0)==0:0)?(ea(h+0|0,0|0,4,0),ea(h+4|0,0|0,4,0),ea(h+8|0,0|0,4,0),ea(h+12|0,0|0,4,0),ea(h+16|0,0|0,4,0),ea(h+20|0,0|0,4,0),ea(h|0,82|0,4,0),ea(h+4|0,83|0,4,0),ea(h+12|0,a|0,4,0),ea(h+24|0,c|0,4,0),ju(h,b)|0,(da(d|0,4,0,0)|0|0)==0):0)?(da(g>>0|0,1,0,0)|0|0)==0:0){ea(h+0|0,0|0,4,0);ea(h+4|0,0|0,4,0);ea(h+8|0,0|0,4,0);ea(h+12|0,0|0,4,0);ea(h+16|0,0|0,4,0);ea(h+20|0,0|0,4,0);ea(h+24|0,0|0,4,0);ea(h+8|0,10|0,4,0);ea(h|0,84|0,4,0);ea(h+12|0,a|0,4,0);ju(h,b)|0}}i=k;return}function Ds(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;if(a)do{c=da(a+36|0,4,0,0)|0|0;if((c|0)!=0?(g=da(c+24|0,4,0,0)|0|0,(g|0)>(da(b|0,4,0,0)|0|0)):0)ea(b|0,g|0,4,0);c=da(a+44|0,4,0,0)|0|0;if((c|0)!=0?(d=da(c+24|0,4,0,0)|0|0,(d|0)>(da(b|0,4,0,0)|0|0)):0)ea(b|0,d|0,4,0);c=da(a+60|0,4,0,0)|0|0;if((c|0)!=0?(e=da(c+24|0,4,0,0)|0|0,(e|0)>(da(b|0,4,0,0)|0|0)):0)ea(b|0,e|0,4,0);c=da(a+64|0,4,0,0)|0|0;if((c|0)!=0?(f=da(c+24|0,4,0,0)|0|0,(f|0)>(da(b|0,4,0,0)|0|0)):0)ea(b|0,f|0,4,0);su(da(a|0,4,0,0)|0|0,b);su(da(a+40|0,4,0,0)|0|0,b);su(da(a+48|0,4,0,0)|0|0,b);a=da(a+52|0,4,0,0)|0|0}while((a|0)!=0);return}function Es(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;e=da(b|0,4,0,0)|0|0;f=e+c|0;if(f>>>0>(da(b+4|0,4,0,0)|0|0)>>>0){g=qo(a,b,(f*72|0)+8|0,0)|0;if(g){do if(!a)b=kc[(fa(da(8744+48|0,4,0,0)|0|0,127|0)|0)&127](g)|0;else{if((da(a+276|0,4,0,0)|0|0)>>>0<=g>>>0?(da(a+280|0,4,0,0)|0|0)>>>0>g>>>0:0){b=da(a+248|0,2,0,1)|0|0;break}b=kc[(fa(da(8744+48|0,4,0,0)|0|0,127|0)|0)&127](g)|0}while(0);ea(g+4|0,(((b+-80|0)>>>0)/72|0)+1|0,4,0);b=g;e=da(g|0,4,0,0)|0|0;h=10}}else h=10;if((h|0)==10){if((e|0)>(d|0)){do{e=e+-1|0;f=b+((e+c|0)*72|0)+8|0;a=b+(e*72|0)+8|0;g=f+72|0;do{ea(f|0,da(a|0,4,0,0)|0|0,4,0);f=f+4|0;a=a+4|0}while((f|0)<(g|0))}while((e|0)>(d|0));e=da(b|0,4,0,0)|0|0}ea(b|0,e+c|0,4,0);ew(b+(d*72|0)+8|0,0,c*72|0)|0;e=d+c|0;if((c|0)>0)do{ea(b+(d*72|0)+48|0,-1|0,4,0);d=d+1|0}while((d|0)<(e|0))}return b|0}function Fs(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;if((b|0)!=0?(da(b|0,4,0,0)|0|0)>0:0){e=b+4|0;f=da(e|0,4,0,0)|0|0;g=0;do{h=Gs(a,da(f+(g*20|0)|0,4,0,0)|0|0,c,d)|0;f=da(e|0,4,0,0)|0|0;ea(f+(g*20|0)|0,h|0,4,0);g=g+1|0}while((g|0)<(da(b|0,4,0,0)|0|0))}return}function Gs(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;do if(b){if((da(b>>0|0,1,0,0)|0|0)==-102?(da(b+28|0,4,0,0)|0|0)==(c|0):0){e=da(b+32|0,2,0,0)|0|0;if(e<<16>>16<0){ea(b>>0|0,101|0,1,0);break}else{e=Lr(a,da((da(d+4|0,4,0,0)|0|0)+((e<<16>>16)*20|0)|0,4,0,0)|0|0,0,0)|0;Fk(a,b);b=e;break}}e=b+12|0;ea(e|0,Gs(a,da(e|0,4,0,0)|0|0,c,d)|0|0,4,0);e=b+16|0;ea(e|0,Gs(a,da(e|0,4,0,0)|0|0,c,d)|0|0,4,0);e=b+20|0;if(!((da(b+4|0,4,0,0)|0)&2048)){Fs(a,da(e|0,4,0,0)|0|0,c,d);break}else{tu(a,da(e|0,4,0,0)|0|0,c,d);break}}else b=0;while(0);return b|0}function Hs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=da(da(b|0,4,0,0)|0|0,4,0,0)|0|0;d=b;f=1;while(1){b=da(d+52|0,4,0,0)|0|0;if(!b){e=5;break}if((da(da(b|0,4,0,0)|0|0,4,0,0)|0|0)==(e|0)){d=b;f=f+1|0}else{e=3;break}}a:do if((e|0)==3){Is(a,b);b=1}else if((e|0)==5)if(!d)b=0;else{g=((f|0)<0)<<31>>31;e=0;while(1){h=d+52|0;ea(h|0,0|0,4,0);b=hr(a,d,c)|0;ea(h|0,e|0,4,0);if(b)break a;b=d+24|0;ea(b|0,f|0,4,0);ea(b+4|0,g|0,4,0);b=da(d+56|0,4,0,0)|0|0;if(!b){b=0;break a}d=b;e=da(b+52|0,4,0,0)|0|0}}while(0);return b|0}function Is(a,b){a=a|0;b=b|0;var c=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();c=d;if(!((da(b+6|0,2,0,0)|0)&128)){b=da(b+4>>0|0,1,0,1)|0|0;if((b|0)==116)b=35320;else if((b|0)==118)b=35336;else if((b|0)==117)b=35352;else b=35360;ea(c|0,b|0,4,0);sh(a,35232,c)}else sh(a,35184,c);i=d;return}function Js(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;A=i;i=i+32|0;if((i|0)>=(j|0))ba();r=A;e=da(b+32|0,4,0,0)|0|0;h=da(da(b|0,4,0,0)|0|0,4,0,0)|0|0;o=da(a+8|0,4,0,0)|0|0;p=b+52|0;q=da(p|0,4,0,0)|0|0;if(!(Rq(a,33,0,0,0)|0)){s=ws(o)|0;Ns(a,b,s);t=b+60|0;u=da(t|0,4,0,0)|0|0;v=b+64|0;w=da(v|0,4,0,0)|0|0;x=b+8|0;l=da(x|0,4,0,0)|0|0;y=b+12|0;m=da(y|0,4,0,0)|0|0;ea(v|0,0|0,4,0);ea(t|0,0|0,4,0);ea(y|0,0|0,4,0);ea(x|0,0|0,4,0);x=b+48|0;y=da(x|0,4,0,0)|0|0;f=da(e|0,4,0,0)|0|0;a:do if((f|0)>0){g=0;while(1){if((da(e+(g*72|0)+45>>0|0,1,0,0)|0)&8)break;g=g+1|0;if((g|0)>=(f|0)){k=0;break a}}k=da(e+(g*72|0)+48|0,4,0,0)|0|0}else k=0;while(0);g=a+68|0;e=da(g|0,4,0,0)|0|0;f=e+1|0;ea(g|0,f|0,4,0);d=(y|0)!=0;if((da(b+4>>0|0,1,0,0)|0|0)==115){ea(g|0,e+2|0,4,0);g=d?8:6}else{g=d?7:5;f=0}ea(r>>0|0,g|0,1,0);ea(r+4|0,e|0,4,0);ea(r+1>>0|0,0|0,1,0);ea(r+8|0,0|0,4,0);ea(r+12|0,0|0,4,0);B=a+72|0;g=(da(B|0,4,0,0)|0|0)+1|0;ea(B|0,g|0,4,0);vh(o,60,k,g,h)|0;if(d){h=uu(a,b)|0;wh(o,vh(o,57,e,(da(y|0,4,0,0)|0|0)+2|0,0)|0,h,-6);ea(r+16|0,y|0,4,0)}else vh(o,57,e,h,0)|0;if(f){ea(b+16|0,vh(o,57,f,0,0)|0|0,4,0);f=b+6|0;ea(f|0,da(f|0,2,0,1)|0|8|0,2,0)}ea(x|0,0|0,4,0);h=q+56|0;ea(h|0,0|0,4,0);f=hr(a,q,r)|0;ea(h|0,b|0,4,0);if(!f){h=vh(o,108,e,s,0)|0;vh(o,104,k,0,0)|0;if(d)vh(o,47,e,(da(y|0,4,0,0)|0|0)+1|0,g)|0;else vh(o,102,e,g,0)|0;vh(o,95,e,0,0)|0;f=ws(o)|0;ht(o,m,f);Os(a,b,da(b|0,4,0,0)|0|0,k,0,0,c,f,s);if(l)vh(o,140,l,s,0)|0;d=o+24|0;g=da(d|0,4,0,0)|0|0;e=~f;if((f|0)<0?(n=da(g+112|0,4,0,0)|0|0,(n|0)!=0):0)ea(n+(e<<2)|0,da(o+32|0,4,0,0)|0|0,4,0);f=o+32|0;ea(g+88|0,(da(f|0,4,0,0)|0|0)+-1|0,4,0);ea(p|0,0|0,4,0);hr(a,b,r)|0;ea(p|0,q|0,4,0);vh(o,16,0,h,0)|0;d=da(d|0,4,0,0)|0|0;e=~s;if((s|0)<0?(z=da(d+112|0,4,0,0)|0|0,(z|0)!=0):0)ea(z+(e<<2)|0,da(f|0,4,0,0)|0|0,4,0);ea(d+88|0,(da(f|0,4,0,0)|0|0)+-1|0,4,0)}Mk(da(a|0,4,0,0)|0|0,da(x|0,4,0,0)|0|0);ea(x|0,y|0,4,0);ea(t|0,u|0,4,0);ea(v|0,w|0,4,0)}i=A;return}function Ks(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;S=i;i=i+48|0;if((i|0)>=(j|0))ba();m=S+40|0;o=S+20|0;F=S;O=da(a|0,4,0,0)|0|0;L=da(a+8|0,4,0,0)|0|0;N=ws(L)|0;K=ws(L)|0;P=b+4|0;G=da(P>>0|0,1,0,0)|0|0;Q=b+52|0;R=da(Q|0,4,0,0)|0|0;p=b+48|0;f=da(p|0,4,0,0)|0|0;e=da(f|0,4,0,0)|0|0;I=G<<24>>24==116;a:do if(!I?(k=O+65|0,(da(k>>0|0,1,0,0)|0|0)==0):0){g=m+4|0;l=1;while(1){if((l|0)>(da(da(b|0,4,0,0)|0|0,4,0,0)|0|0)){H=e;n=14;break a}b:do if((e|0)>0){d=0;h=da(f+4|0,4,0,0)|0|0;while(1){if((da(h+16|0,2,0,1)|0|0)==(l|0))break b;d=d+1|0;if((d|0)<(e|0))h=h+20|0;else break}}else d=0;while(0);if((d|0)==(e|0)){ea(m|0,0|0,4,0);ea(g|0,0|0,4,0);d=mr(O,132,m,0)|0;if(!d){d=7;break a}A=d+4|0;ea(A|0,da(A|0,4,0,0)|0|1024|0,4,0);ea(d+8|0,l|0,4,0);d=kr(a,f,d)|0;if(!d)d=0;else{ea((da(d+4|0,4,0,0)|0|0)+(e*20|0)+16|0,l|0,2,0);e=e+1|0}}else d=f;if(!(da(k>>0|0,1,0,0)|0)){l=l+1|0;f=d}else{H=e;f=d;n=14;break}}}else{H=e;n=14}while(0);if((n|0)==14){E=lh(O,H<<2,0)|0;if(!E)B=0;else{if((H|0)>0){e=0;d=da(f+4|0,4,0,0)|0|0;while(1){ea(E+(e<<2)|0,(da(d+16|0,2,0,1)|0|0)+-1|0,4,0);e=e+1|0;if((e|0)==(H|0))break;else d=d+20|0}}B=uu(a,b)|0}ea(p|0,f|0,4,0);k=R+48|0;ea(k|0,Or(da(a|0,4,0,0)|0|0,f,0)|0|0,4,0);if(!I){f=da(da(b|0,4,0,0)|0|0,4,0,0)|0|0;A=a+72|0;e=da(A|0,4,0,0)|0|0;h=e+1|0;ea(A|0,f+1+e|0,4,0);vh(L,25,0,h,0)|0;e=Qs(O,f,1)|0;if(e)if((f|0)>0){d=e+16|0;g=0;do{ea(e+(g<<2)+20|0,Rs(a,b,g)|0|0,4,0);ea((da(d|0,4,0,0)|0|0)+g>>0|0,0|0,1,0);g=g+1|0}while((g|0)!=(f|0));d=e}else d=e;else d=0}else{d=0;h=0}ea(Q|0,0|0,4,0);D=R+56|0;ea(D|0,0|0,4,0);vu(a,b,da(p|0,4,0,0)|0|0,26880)|0;if(!(da(R+52|0,4,0,0)|0))vu(a,R,da(k|0,4,0,0)|0|0,26880)|0;Ns(a,b,N);g=b+8|0;e=da(g|0,4,0,0)|0|0;k=a+72|0;if((e|0)!=0&I){n=da(k|0,4,0,0)|0|0;l=n+1|0;n=n+2|0;ea(k|0,n|0,4,0);A=da(b+12|0,4,0,0)|0|0;vh(L,33,(A|0)==0?e:A+1|0,l,0)|0;vh(L,33,l,n,0)|0}else{l=0;n=0}s=b+60|0;Fk(O,da(s|0,4,0,0)|0|0);ea(s|0,0|0,4,0);s=b+64|0;Fk(O,da(s|0,4,0,0)|0|0);ea(s|0,0|0,4,0);s=da(k|0,4,0,0)|0|0;t=s+1|0;u=s+2|0;q=s+3|0;s=s+4|0;ea(k|0,s|0,4,0);ea(o>>0|0,13|0,1,0);ea(o+4|0,t|0,4,0);ea(o+1>>0|0,0|0,1,0);w=o+8|0;ea(w|0,0|0,4,0);ea(o+12|0,0|0,4,0);ea(F>>0|0,13|0,1,0);ea(F+4|0,u|0,4,0);ea(F+1>>0|0,0|0,1,0);x=F+8|0;ea(x|0,0|0,4,0);ea(F+12|0,0|0,4,0);z=L+32|0;m=vh(L,20,t,0,(da(z|0,4,0,0)|0|0)+1|0)|0;ea(R+8|0,l|0,4,0);k=a+468|0;A=da(k|0,4,0,0)|0|0;hr(a,R,o)|0;vh(L,21,t,0,0)|0;l=da(z|0,4,0,0)|0|0;if(l>>>0>m>>>0)ea((da(L+4|0,4,0,0)|0|0)+(m*20|0)+8|0,l|0,4,0);v=L+24|0;ea((da(v|0,4,0,0)|0|0)+88|0,l+-1|0,4,0);r=vh(L,20,u,0,l+1|0)|0;f=da(g|0,4,0,0)|0|0;p=b+12|0;e=da(p|0,4,0,0)|0|0;ea(g|0,n|0,4,0);ea(p|0,0|0,4,0);y=da(k|0,4,0,0)|0|0;hr(a,b,F)|0;ea(g|0,f|0,4,0);ea(p|0,e|0,4,0);vh(L,21,u,0,0)|0;e=wu(a,b,o,c,q,h,d,N)|0;p=(G+-115&255)<2;if(p)o=wu(a,b,F,c,s,h,d,N)|0;else o=0;if((d|0)!=0?(f=(da(d|0,4,0,0)|0|0)+-1|0,ea(d|0,f|0,4,0),(f|0)==0):0)Vc(d);f=G<<24>>24==118;if((G+-117&255)<2){h=N;d=N}else{h=vh(L,17,s,o,0)|0;d=vh(L,22,u,N,0)|0;vh(L,16,0,h,0)|0;k=R+24|0;g=b+24|0;l=g;k=iw(da(l|0,4,0,0)|0|0,da(l+4|0,4,0,0)|0|0,da(k|0,4,0,0)|0|0,da(k+4|0,4,0,0)|0|0)|0;ea(g|0,k|0,4,0);ea(g+4|0,C|0,4,0)}if(f){n=b+24|0;m=n;g=da(m+4|0,4,0,0)|0|0;k=R+24|0;l=da(k|0,4,0,0)|0|0;k=da(k+4|0,4,0,0)|0|0;if(g>>>0>k>>>0|((g|0)==(k|0)?(da(m|0,4,0,0)|0|0)>>>0>l>>>0:0)){g=n;ea(g|0,l|0,4,0);ea(g+4|0,k|0,4,0);g=h}else g=h}else{g=vh(L,17,q,e,0)|0;vh(L,22,t,N,0)|0;vh(L,16,0,g,0)|0}m=vh(L,17,q,e,0)|0;vh(L,22,t,h,0)|0;vh(L,16,0,K,0)|0;do if(!I)if(f){n=m;m=m+1|0;break}else{n=vh(L,22,t,h,0)|0;vh(L,16,0,K,0)|0;break}else n=m;while(0);l=da(z|0,4,0,0)|0|0;if(p)vh(L,17,s,o,0)|0;vh(L,22,u,g,0)|0;vh(L,16,0,K,0)|0;k=da(z|0,4,0,0)|0|0;if(k>>>0>r>>>0)ea((da(L+4|0,4,0,0)|0|0)+(r*20|0)+8|0,k|0,4,0);ea((da(v|0,4,0,0)|0|0)+88|0,k+-1|0,4,0);vh(L,22,t,d,0)|0;vh(L,22,u,g,0)|0;g=da(v|0,4,0,0)|0|0;f=~K;if((K|0)<0?(J=da(g+112|0,4,0,0)|0|0,(J|0)!=0):0)ea(J+(f<<2)|0,da(z|0,4,0,0)|0|0,4,0);ea(g+88|0,(da(z|0,4,0,0)|0|0)+-1|0,4,0);wh(L,vh(L,41,0,0,0)|0,E,-15);wh(L,vh(L,42,da(w|0,4,0,0)|0|0,da(x|0,4,0,0)|0|0,H)|0,B,-6);e=da(L+4|0,4,0,0)|0|0;if(e)ea(e+(((da(z|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,1|0,1,0);vh(L,43,m,n,l)|0;e=da(v|0,4,0,0)|0|0;d=~N;if((N|0)<0?(M=da(e+112|0,4,0,0)|0|0,(M|0)!=0):0)ea(M+(d<<2)|0,da(z|0,4,0,0)|0|0,4,0);ea(e+88|0,(da(z|0,4,0,0)|0|0)+-1|0,4,0);if((da(c>>0|0,1,0,0)|0|0)==9){d=R;while(1){e=da(d+52|0,4,0,0)|0|0;if(!e)break;else d=e}Ms(a,0,da(d|0,4,0,0)|0|0)}d=da(Q|0,4,0,0)|0|0;if(d)Lk(O,d,1);ea(Q|0,R|0,4,0);ea(D|0,b|0,4,0);Ps(a,da(P>>0|0,1,0,1)|0|0,A,y,0);d=0}i=S;return d|0}function Ls(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();d=e;do if(!((da(a+4|0,4,0,0)|0)&1024)){c=da(a>>0|0,1,0,1)|0|0;if((c|0)==158){c=Ls(da(a+12|0,4,0,0)|0|0,b)|0;break}else if((c|0)!=157){c=0;break}if(!(Ls(da(a+12|0,4,0,0)|0|0,d)|0))c=0;else{ea(b|0,0-(da(d|0,4,0,0)|0|0)|0,4,0);c=1}}else{ea(b|0,da(a+8|0,4,0,0)|0|0,4,0);c=1}while(0);i=e;return c|0}function Ms(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+32|0;if((i|0)>=(j|0))ba();w=x;v=a+8|0;s=da(v|0,4,0,0)|0|0;t=da(a|0,4,0,0)|0|0;if(((da(a+450>>0|0,1,0,0)|0|0)==0?(f=a+16|0,!((da(f>>0|0,1,0,0)|0|0)!=0|(s|0)==0)):0)?(da(t+65>>0|0,1,0,0)|0|0)==0:0){ea(f>>0|0,1|0,1,0);f=da(t+24|0,4,0,0)|0|0;r=(f&32|0)==0;hq(s,da(c|0,4,0,0)|0|0);e=da(c|0,4,0,0)|0|0;if((e|0)>0){q=c+4|0;p=(b|0)==0;m=(f&96|0)==0;n=(b|0)!=0;o=0;do{l=da(q|0,4,0,0)|0|0;e=da(l+(o*20|0)|0,4,0,0)|0|0;do if(e){f=da(l+(o*20|0)+4|0,4,0,0)|0|0;if(f){iq(s,o,0,f,-1);break}f=da(e>>0|0,1,0,0)|0|0;if(f<<24>>24==-102){if(p)u=25}else if(!(f<<24>>24==-100&n))u=25;if((u|0)==25){u=0;f=da(l+(o*20|0)+8|0,4,0,0)|0|0;if(!f){ea(w|0,o+1|0,4,0);f=th(t,34880,w)|0}else f=jh(t,f)|0;iq(s,o,0,f,75);break}k=da(e+32|0,2,0,0)|0|0;f=k<<16>>16;h=da(b|0,4,0,0)|0|0;a:do if((h|0)>0){d=da(e+28|0,4,0,0)|0|0;g=0;while(1){e=g+1|0;if((da(b+(g*72|0)+48|0,4,0,0)|0|0)==(d|0)){e=g;break a}if((e|0)<(h|0))g=e;else break}}else e=0;while(0);e=da(b+(e*72|0)+24|0,4,0,0)|0|0;if(k<<16>>16<0)f=da(e+36|0,2,0,0)|0|0;if((f|0)<0)f=20456;else f=da((da(e+4|0,4,0,0)|0|0)+(f*24|0)|0,4,0,0)|0|0;if(m){iq(s,o,0,jh(t,da(l+(o*20|0)+8|0,4,0,0)|0|0)|0,75);break}if(r){iq(s,o,0,f,-1);break}else{ea(w|0,da(e|0,4,0,0)|0|0,4,0);ea(w+4|0,f|0,4,0);iq(s,o,0,th(t,27824,w)|0,75);break}}while(0);o=o+1|0;e=da(c|0,4,0,0)|0|0}while((o|0)<(e|0))}f=da(v|0,4,0,0)|0|0;ea(w+4|0,b|0,4,0);ea(w|0,a|0,4,0);if((e|0)>0){d=c+4|0;e=0;do{iq(f,e,1,xu(w,da((da(d|0,4,0,0)|0|0)+(e*20|0)|0,4,0,0)|0|0,0)|0,-1);e=e+1|0}while((e|0)<(da(c|0,4,0,0)|0|0))}}i=x;return}function Ns(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();e=n;g=b+8|0;if((da(g|0,4,0,0)|0|0)==0?($s(a),f=b+60|0,(da(f|0,4,0,0)|0|0)!=0):0){k=a+72|0;l=(da(k|0,4,0,0)|0|0)+1|0;ea(k|0,l|0,4,0);ea(g|0,l|0,4,0);m=Nq(a)|0;do if(Ls(da(f|0,4,0,0)|0|0,e)|0){g=da(e|0,4,0,0)|0|0;vh(m,25,g,l,0)|0;if(!g){vh(m,16,0,c,0)|0;break}if((g|0)>-1?(h=b+24|0,e=h,c=da(e+4|0,4,0,0)|0|0,d=((g|0)<0)<<31>>31,c>>>0>d>>>0|((c|0)==(d|0)?(da(e|0,4,0,0)|0|0)>>>0>g>>>0:0)):0){c=h;ea(c|0,g|0,4,0);ea(c+4|0,d|0,4,0)}}else{Qq(a,da(f|0,4,0,0)|0|0,l);vh(m,38,l,0,0)|0;vh(m,46,l,c,0)|0}while(0);e=da(b+64|0,4,0,0)|0|0;if(e){h=da(k|0,4,0,0)|0|0;c=h+1|0;ea(b+12|0,c|0,4,0);ea(k|0,h+2|0,4,0);Qq(a,e,c);vh(m,38,c,0,0)|0;e=vh(m,137,c,0,0)|0;vh(m,25,0,c,0)|0;f=m+32|0;d=da(f|0,4,0,0)|0|0;if(d>>>0>e>>>0)ea((da(m+4|0,4,0,0)|0|0)+(e*20|0)+8|0,d|0,4,0);g=m+24|0;ea((da(g|0,4,0,0)|0|0)+88|0,d+-1|0,4,0);d=h+2|0;vh(m,89,l,c,d)|0;e=vh(m,137,l,0,0)|0;vh(m,25,-1,d,0)|0;d=da(f|0,4,0,0)|0|0;if(d>>>0>e>>>0)ea((da(m+4|0,4,0,0)|0|0)+(e*20|0)+8|0,d|0,4,0);ea((da(g|0,4,0,0)|0|0)+88|0,d+-1|0,4,0)}}i=n;return}function Os(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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;B=da(a+8|0,4,0,0)|0|0;w=da(g>>0|0,1,0,0)|0|0;q=w&255;s=g+4|0;z=da(s|0,4,0,0)|0|0;if(!f)j=0;else j=da(f+1>>0|0,1,0,1)|0|0;if(!e)A=0;else A=(da(e|0,4,0,0)|0|0)==0?0:e;v=(A|0)!=0;r=(j|0)!=0;if(!(v|r))ht(B,da(b+12|0,4,0,0)|0|0,h);x=da(c|0,4,0,0)|0|0;m=g+8|0;e=da(m|0,4,0,0)|0|0;if(e){l=a+72|0;k=da(l|0,4,0,0)|0|0;if((e+x|0)>(k|0)){ea(l|0,k+x|0,4,0);y=e;t=0}else{y=e;t=0}}else{if(v){k=(((da(A+24>>0|0,1,0,0)|0)&1^1)&255)+(da(da(A|0,4,0,0)|0|0,4,0,0)|0|0)|0;y=a+72|0;l=k+(da(y|0,4,0,0)|0|0)|0;ea(y|0,l|0,4,0)}else{l=da(a+72|0,4,0,0)|0|0;k=0}y=l+1|0;ea(m|0,y|0,4,0);ea(a+72|0,l+x|0,4,0);t=k}ea(g+12|0,x|0,4,0);do if((d|0)>-1){if((x|0)>0){l=0;do{vh(B,47,d,l,l+y|0)|0;l=l+1|0}while((l|0)!=(x|0))}}else{if(w<<24>>24==3)break;else if(w<<24>>24==9)k=1;else k=w<<24>>24==13&1;at(a,c,y,k)}while(0);if(r){k=da(f+1>>0|0,1,0,1)|0|0;if((k|0)==1)yh(B,da(f+8|0,4,0,0)|0|0);else if((k|0)==2){d=a+72|0;k=da(d|0,4,0,0)|0|0;p=k+1|0;ea(d|0,k+x|0,4,0);k=f+8|0;yh(B,da(k|0,4,0,0)|0|0);k=da(k|0,4,0,0)|0|0;if((k|0)<0)k=(da(B+32|0,4,0,0)|0|0)+-1|0;if(!(da((da(B|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0))k=(da(B+4|0,4,0,0)|0|0)+(k*20|0)|0;else k=29120;ea(k>>0|0,28|0,1,0);ea(k+4|0,1|0,4,0);ea(k+8|0,p|0,4,0);d=B+32|0;e=(da(d|0,4,0,0)|0|0)+x|0;if((x|0)>0){l=c+4|0;k=x+-1|0;m=B+4|0;o=0;do{r=bu(a,da((da(l|0,4,0,0)|0|0)+(o*20|0)|0,4,0,0)|0|0)|0;f=o+y|0;j=o+p|0;if((o|0)<(k|0))vh(B,78,f,e,j)|0;else vh(B,79,f,h,j)|0;wh(B,-1,r,-4);n=da(m|0,4,0,0)|0|0;if(n)ea(n+(((da(d|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,-128|0,1,0);o=o+1|0}while((o|0)!=(x|0))}else k=x+-1|0;vh(B,33,y,p,k)|0}else yu(a,da(f+4|0,4,0,0)|0|0,h,x,y);if(!A)ht(B,da(b+12|0,4,0,0)|0|0,h)}a:do switch(q|0){case 7:case 8:{n=da(g+16|0,4,0,0)|0|0;d=da(n|0,4,0,0)|0|0;j=a+19|0;f=da(j>>0|0,1,0,0)|0|0;if(!(f<<24>>24)){v=a+72|0;o=(da(v|0,4,0,0)|0|0)+1|0;ea(v|0,o|0,4,0)}else{o=f+-1<<24>>24;ea(j>>0|0,o|0,1,0);o=da(a+((o&255)<<2)+24|0,4,0,0)|0|0}p=d+2|0;q=a+60|0;e=da(q|0,4,0,0)|0|0;r=a+56|0;j=da(r|0,4,0,0)|0|0;if((j|0)<(p|0)){v=a+72|0;e=da(v|0,4,0,0)|0|0;ea(v|0,e+p|0,4,0);e=e+1|0}else{ea(q|0,e+p|0,4,0);ea(r|0,j-p|0,4,0)}m=e+d|0;k=m+1|0;if(w<<24>>24==8){j=z+1|0;f=vh(B,69,j,0,y)|0;wh(B,f,x,-14);vh(B,49,y,x,k)|0;vh(B,110,j,k,0)|0;j=da(B+4|0,4,0,0)|0|0;if(!j)l=f;else{ea(j+(((da(B+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,16|0,1,0);l=f}}else{vh(B,49,y,x,k)|0;l=0}if((d|0)>0){k=n+4|0;j=y+-1|0;f=0;do{vh(B,34,j+(da((da(k|0,4,0,0)|0|0)+(f*20|0)+16|0,2,0,1)|0|0)|0,f+e|0,0)|0;f=f+1|0}while((f|0)!=(d|0))}vh(B,73,z,m,0)|0;vh(B,49,e,p,o)|0;vh(B,110,z,o,0)|0;if(l){j=da(B+32|0,4,0,0)|0|0;if(j>>>0>l>>>0)ea((da(B+4|0,4,0,0)|0|0)+(l*20|0)+8|0,j|0,4,0);ea((da(B+24|0,4,0,0)|0|0)+88|0,j+-1|0,4,0)}Zr(a,o);ct(a,e,p);if((da(r|0,4,0,0)|0|0)<(p|0)){ea(r|0,p|0,4,0);ea(q|0,e|0,4,0);u=94}else u=94;break}case 2:{vh(B,111,z,y,x)|0;u=94;break}case 3:{vh(B,25,1,z,0)|0;u=94;break}case 12:case 14:case 6:case 5:{l=t+1|0;k=a+60|0;e=da(k|0,4,0,0)|0|0;m=a+56|0;j=da(m|0,4,0,0)|0|0;if((j|0)<(l|0)){u=a+72|0;e=da(u|0,4,0,0)|0|0;ea(u|0,e+l|0,4,0);e=e+1|0}else{ea(k|0,e+l|0,4,0);ea(m|0,j-l|0,4,0)}j=e+t|0;vh(B,49,y,x,j)|0;if(w<<24>>24==6){y=z+1|0;wh(B,vh(B,69,y,(da(B+32|0,4,0,0)|0|0)+4|0,e)|0,0,-14);vh(B,110,y,e,0)|0}if(v)zu(a,A,b,j,1,t);else{j=a+19|0;f=da(j>>0|0,1,0,0)|0|0;if(!(f<<24>>24)){y=a+72|0;f=(da(y|0,4,0,0)|0|0)+1|0;ea(y|0,f|0,4,0)}else{f=f+-1<<24>>24;ea(j>>0|0,f|0,1,0);f=da(a+((f&255)<<2)+24|0,4,0,0)|0|0}vh(B,74,z,f,0)|0;vh(B,75,z,e,f)|0;j=da(B+4|0,4,0,0)|0|0;if(j)ea(j+(((da(B+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,8|0,1,0);Zr(a,f)}ct(a,e,l);if((da(m|0,4,0,0)|0|0)<(l|0)){ea(m|0,l|0,4,0);ea(k|0,e|0,4,0);u=94}else u=94;break}case 10:{if(v)zu(a,A,b,y,1,t);else u=95;break}case 9:case 13:{if(v){zu(a,A,b,y,x,t);break a}if(w<<24>>24==13){vh(B,22,da(s|0,4,0,0)|0|0,0,0)|0;u=95;break a}else{vh(B,35,y,x,0)|0;ct(a,y,x);u=94;break a}}case 1:{j=a+19|0;f=da(j>>0|0,1,0,0)|0|0;if(!(f<<24>>24)){w=a+72|0;f=(da(w|0,4,0,0)|0|0)+1|0;ea(w|0,f|0,4,0)}else{f=f+-1<<24>>24;ea(j>>0|0,f|0,1,0);f=da(a+((f&255)<<2)+24|0,4,0,0)|0|0}vh(B,49,y,x,f)|0;vh(B,110,z,f,0)|0;Zr(a,f);u=94;break}case 11:{e=g+1|0;ea(e>>0|0,Au(da(da(c+4|0,4,0,0)|0|0,4,0,0)|0|0,da(e>>0|0,1,0,0)|0|0)|0|0,1,0);if(v){zu(a,A,b,y,1,t);break a}f=a+19|0;j=da(f>>0|0,1,0,0)|0|0;if(!(j<<24>>24)){x=a+72|0;f=(da(x|0,4,0,0)|0|0)+1|0;ea(x|0,f|0,4,0)}else{x=j+-1<<24>>24;ea(f>>0|0,x|0,1,0);f=da(a+((x&255)<<2)+24|0,4,0,0)|0|0}wh(B,vh(B,49,y,1,f)|0,e,1);ct(a,y,1);vh(B,110,z,f,0)|0;Zr(a,f);u=94;break}default:u=94}while(0);if((u|0)==94?(A|0)==0:0)u=95;if((u|0)==95?(C=da(b+8|0,4,0,0)|0|0,(C|0)!=0):0)vh(B,140,C,i,0)|0;return}function Ps(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,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;if((da(a+450>>0|0,1,0,0)|0|0)==2){g=da(a+8|0,4,0,0)|0|0;h=da(a|0,4,0,0)|0|0;f=(e|0)!=0?35160:10360;if((b|0)==116)e=35320;else if((b|0)==118)e=35336;else if((b|0)==117)e=35352;else e=35360;ea(k|0,c|0,4,0);ea(k+4|0,d|0,4,0);ea(k+8|0,f|0,4,0);ea(k+12|0,e|0,4,0);e=th(h,35120,k)|0;wh(g,vh(g,157,da(a+464|0,4,0,0)|0|0,0,0)|0,e,-1)}i=l;return}function Qs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=c+b|0;e=(d*5|0)+24|0;f=pg(e,0)|0;if(!f)ea(a+65>>0|0,1|0,1,0);else{ew(f|0,0,e|0)|0;ea(f+16|0,f+20+(d<<2)|0,4,0);ea(f+6|0,b|0,2,0);ea(f+8|0,c|0,2,0);ea(f+4>>0|0,da(a+62>>0|0,1,0,0)|0|0|0,1,0);ea(f+12|0,a|0,4,0);ea(f|0,1|0,4,0)}return f|0}function Rs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=da(b+52|0,4,0,0)|0|0;if(!((e|0)!=0?(d=Rs(a,e,c)|0,(d|0)!=0):0)){d=da(b|0,4,0,0)|0|0;if((da(d|0,4,0,0)|0|0)>(c|0))d=bu(a,da((da(d+4|0,4,0,0)|0|0)+(c*20|0)|0,4,0,0)|0|0)|0;else d=0}return d|0}function Ss(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=(a|0)==0;d=(b|0)==0;a:do if(!(e&d))if(!(e|d)?(f=da(a|0,4,0,0)|0|0,(f|0)==(da(b|0,4,0,0)|0|0)):0)if((f|0)>0){a=da(a+4|0,4,0,0)|0|0;d=da(b+4|0,4,0,0)|0|0;e=0;while(1){if((da(a+(e*20|0)+12>>0|0,1,0,0)|0|0)!=(da(d+(e*20|0)+12>>0|0,1,0,0)|0|0)){d=1;break a}if(Bu(da(a+(e*20|0)|0,4,0,0)|0|0,da(d+(e*20|0)|0,4,0,0)|0|0,c)|0){d=1;break a}e=e+1|0;if((e|0)>=(f|0)){d=0;break}}}else d=0;else d=1;else d=0;while(0);return d|0}function Ts(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;e=da(a|0,4,0,0)|0|0;j=da(b|0,4,0,0)|0|0;i=Qs(e,j-c|0,d+1|0)|0;if((i|0)!=0&(j|0)>(c|0)){f=e+8|0;g=i+16|0;h=c;d=(da(b+4|0,4,0,0)|0|0)+(c*20|0)|0;while(1){e=bu(a,da(d|0,4,0,0)|0|0)|0;if(!e)e=da(f|0,4,0,0)|0|0;b=h-c|0;ea(i+(b<<2)+20|0,e|0,4,0);ea((da(g|0,4,0,0)|0|0)+b>>0|0,da(d+12>>0|0,1,0,0)|0|0|0,1,0);h=h+1|0;if((h|0)==(j|0))break;else d=d+20|0}}return i|0}function Us(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0;Ja=i;i=i+64|0;if((i|0)>=(j|0))ba();Ha=Ja;Ia=Ja+48|0;Ga=Ja+52|0;T=Ja+28|0;Ea=a+8|0;_=da(Ea|0,4,0,0)|0|0;Fa=da(a|0,4,0,0)|0|0;ea(T+0|0,0|0,4,0);ea(T+4|0,0|0,4,0);ea(T+8|0,0|0,4,0);ea(T+12|0,0|0,4,0);ea(T+16|0,0|0,4,0);if(!d)J=0;else J=(da(d|0,4,0,0)|0|0)>63?0:d;U=T+8|0;ea(U|0,J|0,4,0);X=Fa+60|0;if((da(X|0,2,0,0)|0)&32)f=f&64511;d=da(b|0,4,0,0)|0|0;a:do if((d|0)<=64){B=f&65535;K=(B&64|0)!=0;P=K?1:d;n=(P*80|0)+743&-16;h=n+72|0;d=lh(Fa,h,0)|0;Da=(d|0)==0;if(!Da)ew(d|0,0,h|0)|0;ua=Fa+65|0;if(da(ua>>0|0,1,0,0)|0){lg(Fa,d);d=0;break}Y=d+60|0;Z=d+64|0;ea(Z|0,-1|0,4,0);ea(Y|0,-1|0,4,0);va=d+41|0;ea(va>>0|0,P|0,1,0);ea(d|0,a|0,4,0);wa=d+4|0;ea(wa|0,b|0,4,0);W=d+8|0;ea(W|0,J|0,4,0);ea(d+12|0,e|0,4,0);ya=ws(_)|0;xa=d+48|0;ea(xa|0,ya|0,4,0);k=d+52|0;ea(k|0,ya|0,4,0);ya=d+34|0;ea(ya|0,f|0,2,0);za=a+424|0;Aa=d+56|0;ea(Aa|0,da(za|0,4,0,0)|0|0,4,0);Ba=d+68|0;ea(T|0,d|0,4,0);Ca=d+328|0;S=T+4|0;ea(S|0,Ca|0,4,0);N=T+12|0;ea(N|0,d+n|0,4,0);ea(d+(n+48)|0,d+(n+56)|0,4,0);ea(d+(n+40)|0,0|0,2,0);ea(d+(n+44)|0,3|0,2,0);ea(d+(n+36)|0,0|0,4,0);ea(Ba|0,0|0,4,0);ea(Ca|0,d|0,4,0);ea(d+332|0,0|0,4,0);sa=d+340|0;ea(sa|0,0|0,4,0);ea(d+344|0,8|0,4,0);ta=d+348|0;ea(ta|0,d+352|0,4,0);Cu(Ca,c,72);c=(P|0)==0;if((da(d+340|0,4,0,0)|0|0)>0){u=Ha+20|0;s=Ha+4|0;r=Ha+24|0;t=Ca;h=0;do{if(!c){t=da((da(t+20|0,4,0,0)|0|0)+(h*48|0)|0,4,0,0)|0|0;ea(Ha+0|0,0|0,4,0);ea(Ha+4|0,0|0,4,0);ea(Ha+8|0,0|0,4,0);ea(Ha+12|0,0|0,4,0);ea(Ha+16|0,0|0,4,0);ea(Ha+20|0,0|0,4,0);ea(u>>0|0,2|0,1,0);ea(Ha|0,78|0,4,0);ea(s|0,79|0,4,0);ea(r|0,0|0,4,0);qs(Ha,t)|0;t=da(S|0,4,0,0)|0|0;if(da(u>>0|0,1,0,0)|0)ra=15}else ra=15;if((ra|0)==15){ra=0;ft(a,da((da(t+20|0,4,0,0)|0|0)+(h*48|0)|0,4,0,0)|0|0,da(k|0,4,0,0)|0|0,16);t=da(S|0,4,0,0)|0|0;V=(da(t+20|0,4,0,0)|0|0)+(h*48|0)+20|0;ea(V|0,da(V|0,2,0,1)|0|4|0,2,0)}h=h+1|0}while((h|0)<(da(t+12|0,4,0,0)|0|0))}if(c){if(J)ea(d+36>>0|0,da(J|0,4,0,0)|0|0,1,0);if(B&1024)ea(d+40>>0|0,1|0,1,0)}if((da(b|0,4,0,0)|0|0)>0){n=0;do{V=da(b+(n*72|0)+48|0,4,0,0)|0|0;I=da(Ba|0,4,0,0)|0|0;ea(Ba|0,I+1|0,4,0);ea(Ba+(I<<2)+4|0,V|0,4,0);n=n+1|0}while((n|0)<(da(b|0,4,0,0)|0|0))}m=da(sa|0,4,0,0)|0|0;if((m|0)>0)do{m=m+-1|0;Du(Ca,m)}while((m|0)>0);b:do if(!(da(ua>>0|0,1,0,0)|0)){V=(B&1024|0)==0;c:do if(!V){d:do if((da(b|0,4,0,0)|0|0)==1){A=da(b+48|0,4,0,0)|0|0;h=da(b+24|0,4,0,0)|0|0;u=da(e|0,4,0,0)|0|0;e:do if((u|0)>0){s=da(e+4|0,4,0,0)|0|0;r=0;while(1){t=da(s+(r*20|0)|0,4,0,0)|0|0;f:do if(!t)t=0;else while(1){c=da(t+4|0,4,0,0)|0|0;if(!(c&4096))break f;if(!(c&262144))t=t+12|0;else t=da((da(t+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;t=da(t|0,4,0,0)|0|0;if(!t){t=0;break}}while(0);do if((da(t>>0|0,1,0,0)|0|0)==-102){if((da(t+28|0,4,0,0)|0|0)!=(A|0))break;if((da(t+32|0,2,0,0)|0|0)<0)break e}while(0);r=r+1|0;if((r|0)>=(u|0)){ra=41;break}}}else ra=41;while(0);g:do if((ra|0)==41){t=da(h+8|0,4,0,0)|0|0;if(!t)break d;l=e+4|0;k=h+4|0;while(1){if(da(t+50>>0|0,1,0,0)|0){x=t+46|0;h:do if(!(da(x|0,2,0,0)|0))c=0;else{z=t+4|0;y=t+32|0;c=0;do{w=da((da(z|0,4,0,0)|0|0)+(c<<1)|0,2,0,0)|0|0;if(!(Eu(Ca,A,w,-1,-1,2,t)|0)){h=da((da(y|0,4,0,0)|0|0)+(c<<2)|0,4,0,0)|0|0;if((da(e|0,4,0,0)|0|0)>0)u=0;else break h;i:while(1){v=da((da(l|0,4,0,0)|0|0)+(u*20|0)|0,4,0,0)|0|0;j:do if(!v)s=0;else{s=v;while(1){r=da(s+4|0,4,0,0)|0|0;if(!(r&4096))break j;if(!(r&262144))s=s+12|0;else s=da((da(s+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;s=da(s|0,4,0,0)|0|0;if(!s){s=0;break}}}while(0);do if((da(s>>0|0,1,0,0)|0|0)==-102){if((da(s+32|0,2,0,0)|0|0)!=(da((da(z|0,4,0,0)|0|0)+(c<<1)|0,2,0,0)|0|0))break;if((da(s+28|0,4,0,0)|0|0)!=(A|0))break;s=bu(a,v)|0;if(!s)break;if(!(cd(da(s|0,4,0,0)|0|0,h)|0))break i}while(0);u=u+1|0;if((u|0)>=(da(e|0,4,0,0)|0|0))break h}if((u|0)<0)break h;if(!(da((da(k|0,4,0,0)|0|0)+(w*24|0)+20>>0|0,1,0,0)|0))break h}c=c+1|0}while((c|0)<(da(x|0,2,0,1)|0|0))}while(0);if((c|0)==(da(x|0,2,0,1)|0|0))break g}t=da(t+20|0,4,0,0)|0|0;if(!t)break d}}while(0);ea(d+40>>0|0,1|0,1,0);break c}while(0);if(!J){ea(ya|0,da(ya|0,2,0,1)|0|512|0,2,0);ea(W|0,e|0,4,0)}}while(0);k:do if((((P|0)==1?(R=da(T|0,4,0,0)|0|0,Q=R+34|0,((da(Q|0,2,0,0)|0)&32)==0):0)?(M=da(R+4|0,4,0,0)|0|0,H=da(M+24|0,4,0,0)|0|0,((da(H+44>>0|0,1,0,0)|0)&16)==0):0)?(da(M+72|0,4,0,0)|0|0)==0:0){J=da(M+48|0,4,0,0)|0|0;v=R+328|0;I=da(N|0,4,0,0)|0|0;A=I+36|0;ea(A|0,0|0,4,0);ea(I+42|0,0|0,2,0);q=Eu(v,J,-1,0,0,2,0)|0;l:do if(!q){r=da(H+8|0,4,0,0)|0|0;m:do if(r){s=I+48|0;n:while(1){do if(da(r+50>>0|0,1,0,0)|0){if(da(r+36|0,4,0,0)|0)break;t=r+46|0;c=da(t|0,2,0,0)|0|0;if((c&65535)>3)break;k=r+4|0;o:do if(!(c<<16>>16)){c=0;u=0}else{u=0;while(1){c=Eu(v,J,da((da(k|0,4,0,0)|0|0)+(u<<1)|0,2,0,0)|0|0,0,0,2,r)|0;if(!c)break;ea((da(s|0,4,0,0)|0|0)+(u<<2)|0,c|0,4,0);u=u+1|0;c=da(t|0,2,0,0)|0|0;if((u|0)>=(c&65535|0))break o}c=da(t|0,2,0,0)|0|0}while(0);if((u|0)==(c&65535|0)){l=u;break n}}while(0);r=da(r+20|0,4,0,0)|0|0;if(!r)break m}ea(A|0,4609|0,4,0);if(!((da(r+51>>0|0,1,0,0)|0)&32)){s=M+64|0;t=da(s|0,4,0,0)|0|0;s=da(s+4|0,4,0,0)|0|0;h=0;q=0;c=da(r+48|0,2,0,1)|0|0;p:while(1){u=c;while(1){c=u+-1|0;if((u|0)<=0)break p;u=da((da(k|0,4,0,0)|0|0)+(c<<1)|0,2,0,0)|0|0;if((u&65535)<63)break;else u=c}T=hw(1,0,u<<16>>16|0)|0;h=T|h;q=C|q}if((t&~h|0)==0&(s&~q|0)==0)ra=91}else ra=91;if((ra|0)==91)ea(A|0,4673|0,4,0);T=l&65535;ea(I+40|0,T|0,2,0);ea(I+24|0,T|0,2,0);ea(I+28|0,r|0,4,0);ea(I+20|0,39|0,2,0);break l}while(0);if(!(da(A|0,4,0,0)|0)){ra=103;break k}}else{ea(A|0,4353|0,4,0);ea(da(I+48|0,4,0,0)|0|0,q|0,4,0);ea(I+40|0,1|0,2,0);ea(I+24|0,1|0,2,0);ea(I+20|0,33|0,2,0)}while(0);ea(I+22|0,1|0,2,0);ea(R+800|0,I|0,4,0);l=da(R+68|0,4,0,0)|0|0;q:do if((l|0)>0){m=0;while(1){if((da(R+(m<<2)+72|0,4,0,0)|0|0)==(J|0))break;m=m+1|0;if((m|0)>=(l|0)){m=0;l=0;break q}}m=hw(1,0,m|0)|0;l=C}else{m=0;l=0}while(0);k=I+8|0;ea(k|0,m|0,4,0);ea(k+4|0,l|0,4,0);ea(R+740|0,J|0,4,0);ea(R+32|0,1|0,2,0);k=da(R+8|0,4,0,0)|0|0;if(k)ea(R+36>>0|0,da(k|0,4,0,0)|0|0,1,0);if(!((da(Q|0,2,0,0)|0)&1024)){ra=120;break}ea(R+40>>0|0,1|0,1,0);ra=120}else ra=103;while(0);if((ra|0)==103){x=da(T|0,4,0,0)|0|0;c=da(x+4|0,4,0,0)|0|0;y=da(da(x|0,4,0,0)|0|0,4,0,0)|0|0;R=da(x+41>>0|0,1,0,0)|0|0;z=R&255;r=da(N|0,4,0,0)|0|0;ea(r+48|0,r+56|0,4,0);ea(r+40|0,0|0,2,0);ea(r+44|0,3|0,2,0);ea(r+36|0,0|0,4,0);h=y+65|0;r:do if(R<<24>>24){k=r+16|0;l=x+68|0;m=r+8|0;n=0;o=0;p=0;q=0;w=0;v=c+8|0;s=0;while(1){ea(k>>0|0,w|0,1,0);u=da(v+40|0,4,0,0)|0|0;t=da(l|0,4,0,0)|0|0;s:do if((t|0)>0){c=0;while(1){if((da(x+(c<<2)+72|0,4,0,0)|0|0)==(u|0))break;c=c+1|0;if((c|0)>=(t|0)){c=0;u=0;break s}}c=hw(1,0,c|0)|0;u=C}else{c=0;u=0}while(0);R=m;ea(R|0,c|0,4,0);ea(R+4|0,u|0,4,0);R=s;s=da(v+36>>0|0,1,0,0)|0|0;R=((s|R)&10)==0;o=R?o:n;q=R?q:p;if(!((da((da(v+16|0,4,0,0)|0|0)+44>>0|0,1,0,0)|0)&16))c=Gu(T,o,q)|0;else c=Fu(T,o,q)|0;if(c)break;R=Hu(T,o,q)|0;c=m;if(R)break;if(da(h>>0|0,1,0,0)|0)break r;w=w+1|0;if((w|0)>=(z|0))break r;else{n=da(c|0,4,0,0)|0|n;p=da(c+4|0,4,0,0)|0|p;v=v+72|0}}Iu(y,r);break b}while(0);Iu(y,r);Ju(d,0);if(da(ua>>0|0,1,0,0)|0)break;if(da(W|0,4,0,0)|0){Ju(d,(da(d+32|0,2,0,1)|0|0)+1&65535);if(!(da(ua>>0|0,1,0,0)|0))ra=120;else break}else ra=121}if((ra|0)==120?(da(W|0,4,0,0)|0|0)==0:0)ra=121;if((ra|0)==121?((da(Fa+24|0,4,0,0)|0)&131072|0)!=0:0){W=d+24|0;ea(W|0,-1|0,4,0);ea(W+4|0,-1|0,4,0)}if((da(a+64|0,4,0,0)|0|0)==0?(da(ua>>0|0,1,0,0)|0|0)==0:0){q=da(va>>0|0,1,0,0)|0|0;t:do if((q&255)>1&(e|0)!=0?((da(X|0,2,0,0)|0)&1024)==0:0){k=Ku(Ba,e)|0;l=C;h=da(U|0,4,0,0)|0|0;if(h){X=Ku(Ba,h)|0;k=X|k;l=C|l}u=d+736|0;c=da(wa|0,4,0,0)|0|0;t=da(S|0,4,0,0)|0|0;s=t+20|0;t=t+12|0;r=q;h=P;do{m=da(u+(((r&255)+-1|0)*80|0)+64|0,4,0,0)|0|0;if(!((da(c+((da(m+16>>0|0,1,0,1)|0|0)*72|0)+44>>0|0,1,0,0)|0)&8))break t;if(V?((da(m+36|0,4,0,0)|0)&4096|0)==0:0)break t;p=m+8|0;o=da(p|0,4,0,0)|0|0;p=da(p+4|0,4,0,0)|0|0;if(!((o&k|0)==0&(p&l|0)==0))break t;m=da(s|0,4,0,0)|0|0;X=da(t|0,4,0,0)|0|0;q=m+(X*48|0)|0;if((X|0)>0)do{n=m+40|0;if(!((o&(da(n|0,4,0,0)|0)|0)==0?(p&(da(n+4|0,4,0,0)|0)|0)==0:0)?((da((da(m|0,4,0,0)|0|0)+4|0,4,0,0)|0)&1|0)==0:0)break t;m=m+48|0}while(m>>>0<q>>>0);r=r+-1<<24>>24;ea(va>>0|0,r|0,1,0);h=h+-1|0}while((r&255)>1)}else h=P;while(0);X=(da(d|0,4,0,0)|0|0)+424|0;ea(X|0,(da(X|0,4,0,0)|0|0)+(da(d+32|0,2,0,0)|0|0)|0,4,0);do if((B&4|0)!=0?(O=(da(d+800|0,4,0,0)|0|0)+36|0,L=da(O|0,4,0,0)|0|0,(L&4096|0)!=0):0){ea(d+38>>0|0,1|0,1,0);if((da((da(b+24|0,4,0,0)|0|0)+44>>0|0,1,0,0)|0)&32)break;ea(O|0,L&-65|0,4,0)}while(0);qa=d+736|0;J=(h|0)>0;if(J){G=B&16;H=d+38|0;I=_+32|0;D=K^1;F=(g|0)==0|D;E=a+68|0;A=54-(B>>>12&1)|0;w=_+4|0;v=Fa+20|0;n=Fa+16|0;o=0;B=qa;while(1){u=da(B+44>>0|0,1,0,1)|0|0;x=b+(u*72|0)+24|0;c=da(x|0,4,0,0)|0|0;t=da(c+68|0,4,0,0)|0|0;u:do if(!t)k=-1e6;else{s=da(v|0,4,0,0)|0|0;if((s|0)<=0){k=0;break}r=da(n|0,4,0,0)|0|0;l=0;while(1){k=l+1|0;if((da(r+(l<<4)+12|0,4,0,0)|0|0)==(t|0)){k=l;break u}if((k|0)<(s|0))l=k;else break}}while(0);z=da(B+64|0,4,0,0)|0|0;y=c+44|0;t=da(y>>0|0,1,0,1)|0|0;do if(!(t&2)){if(da(c+12|0,4,0,0)|0)break;s=da(z+36|0,4,0,0)|0|0;if(s&1024){q=da(c+60|0,4,0,0)|0|0;v:do if(!q)q=0;else while(1){if((da(q|0,4,0,0)|0|0)==(Fa|0))break v;q=da(q+24|0,4,0,0)|0|0;if(!q){q=0;break}}while(0);wh(_,vh(_,149,da(b+(u*72|0)+48|0,4,0,0)|0|0,0,0)|0,q,-10);break}if(t&16)break;if(s&64|G){fs(a,k,da(c+32|0,4,0,0)|0|0,0,da(c|0,4,0,0)|0|0);break}r=b+(u*72|0)+48|0;if(!(da(H>>0|0,1,0,0)|0))t=54;else{ea(Y|0,da(r|0,4,0,0)|0|0,4,0);t=55}Pq(a,da(r|0,4,0,0)|0|0,k,c,t);if(da(H>>0|0,1,0,0)|0)break;if((da(c+38|0,2,0,0)|0|0)>=64)break;if((da(y>>0|0,1,0,0)|0)&32)break;r=b+(u*72|0)+64|0;q=da(r|0,4,0,0)|0|0;r=da(r+4|0,4,0,0)|0|0;if((q|0)==0&(r|0)==0)q=0;else{c=q;q=0;do{c=lw(c|0,r|0,1)|0;r=C;q=q+1|0}while(!((c|0)==0&(r|0)==0))}wh(_,(da(I|0,4,0,0)|0|0)+-1|0,q,-14)}while(0);u=z+36|0;w:do if((da(u|0,4,0,0)|0)&512){c=da(z+28|0,4,0,0)|0|0;do if((da(y>>0|0,1,0,0)|0)&32){if(((da(c+51>>0|0,1,0,0)|0)&3)!=2|D)break;ea(B+8|0,da(B+4|0,4,0,0)|0|0,4,0);break w}while(0);do if(!(da(H>>0|0,1,0,0)|0)){if(!F){q=g;p=A;break}q=da(E|0,4,0,0)|0|0;ea(E|0,q+1|0,4,0);p=54}else{p=da((da(x|0,4,0,0)|0|0)+8|0,4,0,0)|0|0;if((p|0)==0|(p|0)==(c|0))q=g;else{q=g;do{q=q+1|0;p=da(p+20|0,4,0,0)|0|0}while(!((p|0)==0|(p|0)==(c|0)))}ea(Z|0,q|0,4,0);p=55}while(0);ea(B+8|0,q|0,4,0);vh(_,p,q,da(c+40|0,4,0,0)|0|0,k)|0;X=da(Ea|0,4,0,0)|0|0;wh(X,-1,gs(a,c)|0,-6);X=da(u|0,4,0,0)|0|0;if(!((X&15|0)!=0&(X&32770|0)==0))break;if((da(ya|0,2,0,0)|0)&1)break;m=da(w|0,4,0,0)|0|0;if(!m)break;ea(m+(((da(I|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,2|0,1,0)}while(0);if((k|0)>-1)zr(a,k);o=o+1|0;if((o|0)==(h|0))break;else B=B+80|0}Z=(da(ua>>0|0,1,0,0)|0|0)==0;ea(d+44|0,da(I|0,4,0,0)|0|0,4,0);if(!Z)break}else{I=_+32|0;ea(d+44|0,da(I|0,4,0,0)|0|0,4,0)}if(!J)break a;ca=d+24|0;fa=d+36|0;ga=d+39|0;ha=a+80|0;ia=a+68|0;ja=a+100|0;ka=a+19|0;la=a+72|0;ma=Ha+20|0;na=Ha+4|0;oa=Ha+24|0;l=-1;k=-1;pa=0;while(1){Q=qa+(pa*80|0)|0;t=qa+(pa*80|0)+64|0;S=qa+(pa*80|0)+44|0;if((da((da(t|0,4,0,0)|0|0)+36|0,4,0,0)|0)&16384){A=da(S>>0|0,1,0,1)|0|0;M=b+(A*72|0)+8|0;R=da(Ea|0,4,0,0)|0|0;p=Nq(a)|0;T=da(ha|0,4,0,0)|0|0;ea(ha|0,T+1|0,4,0);T=vh(p,44,T,0,0)|0;p=da(b+(A*72|0)+24|0,4,0,0)|0|0;Z=da(sa|0,4,0,0)|0|0;c=da(ta|0,4,0,0)|0|0;L=c+(Z*48|0)|0;D=da(t|0,4,0,0)|0|0;x:do if((Z|0)>0){r=b+(A*72|0)+48|0;n=p+4|0;o=D+48|0;u=0;t=0;x=0;m=0;s=c;w=0;while(1){c=da(s|0,4,0,0)|0|0;Z=D;do if((da(Z|0,4,0,0)|0|0)==0&(da(Z+4|0,4,0,0)|0|0)==0){if((da(s+20|0,2,0,0)|0)&2)break;if((da(c+4|0,4,0,0)|0)&1)break;Z=da(r|0,4,0,0)|0|0;ea(Ha+0|0,0|0,4,0);ea(Ha+4|0,0|0,4,0);ea(Ha+8|0,0|0,4,0);ea(Ha+12|0,0|0,4,0);ea(Ha+16|0,0|0,4,0);ea(Ha+20|0,0|0,4,0);ea(ma>>0|0,3|0,1,0);ea(Ha|0,78|0,4,0);ea(na|0,79|0,4,0);ea(oa|0,Z|0,4,0);qs(Ha,c)|0;if(!(da(ma>>0|0,1,0,0)|0))break;Z=da(a|0,4,0,0)|0|0;m=rs(Z,m,Lr(Z,c,0,0)|0)|0}while(0);do if(!(Lu(s,M,l,k)|0))c=x;else{v=da(s+12|0,4,0,0)|0|0;if((v|0)>63){z=0;y=-2147483648}else{z=hw(1,0,v|0)|0;y=C}if(!(w<<24>>24)){w=da((da(n|0,4,0,0)|0|0)+(v*24|0)|0,4,0,0)|0|0;ea(Ha|0,da(p|0,4,0,0)|0|0,4,0);ea(Ha+4|0,w|0,4,0);ad(284,33960,Ha);w=1}if(!((z&u|0)==0&(y&t|0)==0)){c=x;break}c=x+1|0;if(Mu(da(a|0,4,0,0)|0|0,D,c)|0)break x;ea((da(o|0,4,0,0)|0|0)+(x<<2)|0,s|0,4,0);u=z|u;t=y|t}while(0);s=s+48|0;if(s>>>0>=L>>>0){ra=207;break}else x=c}}else{t=0;u=0;c=0;m=0;ra=207}while(0);do if((ra|0)==207){ra=0;s=c&65535;ea(D+40|0,s|0,2,0);ea(D+24|0,s|0,2,0);s=D+36|0;ea(s|0,16961|0,4,0);q=b+(A*72|0)+64|0;E=q;y=da(E+4|0,4,0,0)|0|0;E=(da(E|0,4,0,0)|0)&~u;G=y&((t|-2147483648)^2147483647);o=p+38|0;H=da(o|0,2,0,0)|0|0;z=H<<16>>16;H=H<<16>>16>63?63:z;J=(H|0)>0;if(J){v=0;do{Z=hw(1,0,v|0)|0;c=(((Z&E|0)!=0|(C&G|0)!=0)&1)+c|0;v=v+1|0}while((v|0)!=(H|0))}if((y|0)<0)c=c+-63+z|0;F=c+1|0;n=ts(da(a|0,4,0,0)|0|0,F&65535,0,Ia)|0;if(!n)break;ea(D+28|0,n|0,4,0);ea(n|0,33992|0,4,0);ea(n+12|0,p|0,4,0);v=da(ta|0,4,0,0)|0|0;if(v>>>0<L>>>0){u=n+4|0;t=n+32|0;y=0;z=0;r=0;do{do if(Lu(v,M,l,k)|0){x=da(v+12|0,4,0,0)|0|0;if((x|0)>63){w=0;c=-2147483648}else{w=hw(1,0,x|0)|0;c=C}if(!((w&y|0)==0&(c&z|0)==0))break;Z=da(v|0,4,0,0)|0|0;ea((da(u|0,4,0,0)|0|0)+(r<<1)|0,x|0,2,0);x=Nu(a,da(Z+12|0,4,0,0)|0|0,da(Z+16|0,4,0,0)|0|0)|0;if(!x)x=11152;else x=da(x|0,4,0,0)|0|0;ea((da(t|0,4,0,0)|0|0)+(r<<2)|0,x|0,4,0);y=w|y;z=c|z;r=r+1|0}while(0);v=v+48|0}while(v>>>0<L>>>0)}else r=0;if(J){c=n+4|0;u=n+32|0;t=0;do{Z=hw(1,0,t|0)|0;if(!((Z&E|0)==0&(C&G|0)==0)){ea((da(c|0,4,0,0)|0|0)+(r<<1)|0,t|0,2,0);ea((da(u|0,4,0,0)|0|0)+(r<<2)|0,11152|0,4,0);r=r+1|0}t=t+1|0}while((t|0)!=(H|0))}do if((da(q+4|0,4,0,0)|0|0)<0){if((da(o|0,2,0,0)|0|0)<=63)break;c=n+4|0;u=n+32|0;t=63;do{ea((da(c|0,4,0,0)|0|0)+(r<<1)|0,t|0,2,0);ea((da(u|0,4,0,0)|0|0)+(r<<2)|0,11152|0,4,0);r=r+1|0;t=t+1|0}while((t|0)<(da(o|0,2,0,0)|0|0))}while(0);ea((da(n+4|0,4,0,0)|0|0)+(r<<1)|0,-1|0,2,0);ea((da(n+32|0,4,0,0)|0|0)+(r<<2)|0,11152|0,4,0);r=da(ia|0,4,0,0)|0|0;ea(ia|0,r+1|0,4,0);u=qa+(pa*80|0)+8|0;ea(u|0,r|0,4,0);vh(R,56,r,F,0)|0;r=da(Ea|0,4,0,0)|0|0;wh(r,-1,gs(a,n)|0,-6);ea(ja|0,(da(ja|0,4,0,0)|0|0)+1|0,4,0);r=qa+(pa*80|0)+4|0;v=vh(R,108,da(r|0,4,0,0)|0|0,0,0)|0;t=(m|0)!=0;if(t){Z=ws(R)|0;ft(a,m,Z,16);ea(s|0,da(s|0,4,0,0)|0|131072|0,4,0);s=Z}else s=0;c=da(ka>>0|0,1,0,0)|0|0;if(!(c<<24>>24)){o=(da(la|0,4,0,0)|0|0)+1|0;ea(la|0,o|0,4,0)}else{o=c+-1<<24>>24;ea(ka>>0|0,o|0,1,0);o=da(a+((o&255)<<2)+24|0,4,0,0)|0|0}Ot(a,n,da(r|0,4,0,0)|0|0,o,0,0,0,0)|0;vh(R,110,da(u|0,4,0,0)|0|0,o,0)|0;n=R+4|0;c=da(n|0,4,0,0)|0|0;if(c)ea(c+(((da(R+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,16|0,1,0);if(t){u=da(R+24|0,4,0,0)|0|0;t=~s;do if((s|0)<0){c=da(u+112|0,4,0,0)|0|0;if(!c)break;ea(c+(t<<2)|0,da(R+32|0,4,0,0)|0|0,4,0)}while(0);ea(u+88|0,(da(R+32|0,4,0,0)|0|0)+-1|0,4,0)}vh(R,9,da(r|0,4,0,0)|0|0,v+1|0,0)|0;t=da(n|0,4,0,0)|0|0;s=da(R+32|0,4,0,0)|0|0;if(t)ea(t+((s+-1|0)*20|0)+3>>0|0,3|0,1,0);if(s>>>0>v>>>0)ea(t+(v*20|0)+8|0,s|0,4,0);t=R+24|0;ea((da(t|0,4,0,0)|0|0)+88|0,s+-1|0,4,0);Zr(a,o);au(a);q=da(R+32|0,4,0,0)|0|0;if(q>>>0>T>>>0)ea((da(n|0,4,0,0)|0|0)+(T*20|0)+8|0,q|0,4,0);ea((da(t|0,4,0,0)|0|0)+88|0,q+-1|0,4,0)}while(0);Fk(da(a|0,4,0,0)|0|0,m);if(da(ua>>0|0,1,0,0)|0)break b}Ou(a,b,Q,pa,da(S>>0|0,1,0,1)|0|0,f);ea(qa+(pa*80|0)+32|0,da(I|0,4,0,0)|0|0,4,0);aa=da(d|0,4,0,0)|0|0;F=aa+8|0;Y=da(F|0,4,0,0)|0|0;_=da(aa|0,4,0,0)|0|0;m=d+(pa*80|0)+736|0;E=da(d+(pa*80|0)+800|0,4,0,0)|0|0;W=d+(pa*80|0)+780|0;y=da(W>>0|0,1,0,1)|0|0;z=da(wa|0,4,0,0)|0|0;H=z+(y*72|0)+8|0;g=da(z+(y*72|0)+48|0,4,0,0)|0|0;u=da(Ba|0,4,0,0)|0|0;y:do if((u|0)>0){c=0;while(1){if((da(Ba+(c<<2)+4|0,4,0,0)|0|0)==(g|0))break;c=c+1|0;if((c|0)>=(u|0)){c=-1;u=-1;break y}}c=hw(1,0,c|0)|0;c=~c;u=~C}else{c=-1;u=-1}while(0);$=d+(pa*80|0)+808|0;G=$;ea(G|0,c&l|0,4,0);ea(G+4|0,u&k|0,4,0);G=ca;G=lw(da(G|0,4,0,0)|0|0,da(G+4|0,4,0,0)|0|0,pa|0)|0;V=G&1;P=E+36|0;if(!((da(P|0,4,0,0)|0)&64))K=0;else K=((da(ya|0,2,0,0)|0)&32)==0;x=ws(Y)|0;J=d+(pa*80|0)+752|0;ea(J|0,x|0,4,0);X=d+(pa*80|0)+748|0;ea(X|0,x|0,4,0);Z=ws(Y)|0;ea(d+(pa*80|0)+760|0,Z|0,4,0);do if(da(W>>0|0,1,0,0)|0){if(!((da(z+(y*72|0)+44>>0|0,1,0,0)|0)&8))break;U=aa+72|0;e=(da(U|0,4,0,0)|0|0)+1|0;ea(U|0,e|0,4,0);ea(m|0,e|0,4,0);vh(Y,25,0,e,0)|0}while(0);v=da(z+(y*72|0)+45>>0|0,1,0,0)|0|0;z:do if(!(v&4)){w=da(P|0,4,0,0)|0|0;if(w&1024){r=da(E+40|0,2,0,0)|0|0;n=r&65535;p=aa+100|0;ea(p|0,(da(p|0,4,0,0)|0|0)+1|0,4,0);p=n+2|0;q=aa+60|0;c=da(q|0,4,0,0)|0|0;A=aa+56|0;u=da(A|0,4,0,0)|0|0;if((u|0)<(p|0)){W=aa+72|0;o=da(W|0,4,0,0)|0|0;ea(W|0,o+p|0,4,0);o=o+1|0}else{ea(q|0,c+p|0,4,0);ea(A|0,u-p|0,4,0);o=c}t=da(X|0,4,0,0)|0|0;w=r<<16>>16==0;if(!w){y=o+2|0;x=E+48|0;z=0;do{v=y+z|0;c=da((da(x|0,4,0,0)|0|0)+(z<<2)|0,4,0,0)|0|0;do if(c)if(!((da(c+18|0,2,0,0)|0)&1)){Qq(aa,da((da(c|0,4,0,0)|0|0)+16|0,4,0,0)|0|0,v);break}else{Pu(aa,c,m,z,V,v)|0;t=da(J|0,4,0,0)|0|0;break}while(0);z=z+1|0}while((z|0)<(n|0))}vh(Y,25,da(E+24|0,4,0,0)|0|0,o,0)|0;vh(Y,25,n,o+1|0,0)|0;c=da(E+32|0,4,0,0)|0|0;u=E+28|0;X=(da(u>>0|0,1,0,0)|0|0)!=0?-11:-2;wh(Y,vh(Y,14,g,t,o)|0,c,X);ea(u>>0|0,0|0,1,0);if(!w){s=E+30|0;t=E+48|0;c=(r&65535)>1?0-n|0:-1;c=c>>>0>4294967280?0-c|0:16;u=0;do{if((da(s|0,2,0,1)|0)&1<<u)Qu(m,da((da(t|0,4,0,0)|0|0)+(u<<2)|0,4,0,0)|0|0);u=u+1|0}while((u|0)!=(c|0))}ea(d+(pa*80|0)+781>>0|0,-105|0,1,0);ea(d+(pa*80|0)+784|0,g|0,4,0);ea(d+(pa*80|0)+788|0,da(Y+32|0,4,0,0)|0|0,4,0);ct(aa,o,p);if((da(A|0,4,0,0)|0|0)<(p|0)){ea(A|0,p|0,4,0);ea(q|0,o|0,4,0)}au(aa);ra=459;break}if(!((w&256|0)==0|(w&5|0)==0)){q=da(da(E+48|0,4,0,0)|0|0,4,0,0)|0|0;X=aa+72|0;r=(da(X|0,4,0,0)|0|0)+1|0;ea(X|0,r|0,4,0);q=Pu(aa,q,m,0,V,r)|0;if((q|0)!=(r|0))Zr(aa,r);ra=da(J|0,4,0,0)|0|0;vh(Y,38,q,ra,0)|0;vh(Y,70,g,ra,q)|0;ct(aa,q,1);Ru(aa,g,-1,q);ea(d+(pa*80|0)+781>>0|0,-100|0,1,0);ra=459;break}if((w&258|0)==258){if(!(w&32)){c=0;t=0}else{c=1;t=da(da(E+48|0,4,0,0)|0|0,4,0,0)|0|0}if(!(w&16))c=0;else c=da((da(E+48|0,4,0,0)|0|0)+(c<<2)|0,4,0,0)|0|0;u=(V|0)!=0;s=u?t:c;c=u?c:t;if(!c)vh(Y,u?105:108,g,x,0)|0;else{W=da(c|0,4,0,0)|0|0;X=_t(aa,da(W+16|0,4,0,0)|0|0,Ha)|0;vh(Y,da(33536+((da(W>>0|0,1,0,1)|0|0)+-80)>>0|0,1,0,1)|0|0,g,x,X)|0;ct(aa,X,1);Zr(aa,da(Ha|0,4,0,0)|0|0);Qu(m,c)}if(!s){t=0;c=156}else{X=da(s|0,4,0,0)|0|0;W=aa+72|0;t=(da(W|0,4,0,0)|0|0)+1|0;ea(W|0,t|0,4,0);Qq(aa,da(X+16|0,4,0,0)|0|0,t);X=da(X>>0|0,1,0,0)|0|0;if(X<<24>>24==80|X<<24>>24==82)c=V<<1^83;else c=V<<1|80;Qu(m,s)}u=Y+32|0;X=da(u|0,4,0,0)|0|0;ea(d+(pa*80|0)+781>>0|0,V^9|0,1,0);ea(d+(pa*80|0)+784|0,g|0,4,0);ea(d+(pa*80|0)+788|0,X|0,4,0);if((c|0)==156){ra=459;break}X=aa+72|0;q=(da(X|0,4,0,0)|0|0)+1|0;ea(X|0,q|0,4,0);vh(Y,103,g,q,0)|0;Ru(aa,g,-1,q);vh(Y,c,t,x,q)|0;q=da(Y+4|0,4,0,0)|0|0;if(!q){ra=459;break}ea(q+(((da(u|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,83|0,1,0);ra=459;break}if(w&512){F=da(E+24|0,2,0,0)|0|0;ea(Ga>>0|0,0|0,1,0);N=da(E+28|0,4,0,0)|0|0;Q=da(d+(pa*80|0)+744|0,4,0,0)|0|0;do if(!((da(ya|0,2,0,0)|0)&1)){y=0;v=0}else{if((da(fa>>0|0,1,0,0)|0|0)<=0){y=0;v=0;break}v=(da(N+46|0,2,0,1)|0|0)>(F&65535);y=v&1;v=v&1}while(0);c=F&65535;if(!(w&32)){z=c;A=0}else{z=c+1|0;v=1;A=da((da(E+48|0,4,0,0)|0|0)+(c<<2)|0,4,0,0)|0|0}do if(!(w&16))t=0;else{t=da((da(E+48|0,4,0,0)|0|0)+(z<<2)|0,4,0,0)|0|0;if((da(t+20|0,2,0,0)|0)&256){W=aa+72|0;X=(da(W|0,4,0,0)|0|0)+1|0;ea(W|0,X|0,4,0);ea(d+(pa*80|0)+772|0,X|0,4,0);vh(Y,25,(da((da(N+28|0,4,0,0)|0|0)+c>>0|0,1,0,0)|0|0)==1^V,X,0)|0;ea(d+(pa*80|0)+776|0,da(Y+32|0,4,0,0)|0|0,4,0)}if(A){v=1;break}u=da((da(N+4|0,4,0,0)|0|0)+(c<<1)|0,2,0,0)|0|0;if(u<<16>>16<=-1){v=1;break}y=(da((da((da(N+12|0,4,0,0)|0|0)+4|0,4,0,0)|0|0)+((u<<16>>16)*24|0)+20>>0|0,1,0,0)|0|0)==0?1:y;v=1}while(0);D=Su(aa,m,V,v,Ia)|0;q=da(Ia|0,4,0,0)|0|0;s=(q|0)==0;if(!s)ea(Ga>>0|0,da(q+c>>0|0,1,0,0)|0|0|0,1,0);E=da(J|0,4,0,0)|0|0;w=da(N+46|0,2,0,0)|0|0;if((F&65535)<(w&65535)?!((da((da(N+28|0,4,0,0)|0|0)+c>>0|0,1,0,0)|0|0)==0^((G&1|0)!=0|0!=0)):0)ra=318;else if((V|0)!=0?w<<16>>16==F<<16>>16:0)ra=318;else{H=y;y=0;G=t;J=A}if((ra|0)==318){H=0;G=A;J=t}v=(J|0)!=0;if(v)w=((da(J+18|0,2,0,0)|0)&40)!=0;else w=1;x=w&1;A=(G|0)!=0;if(A)z=((da(G+18|0,2,0,0)|0)&40)!=0;else z=1;u=z&1;z=(v|F<<16>>16!=0)&1;do if(v){t=da((da(J|0,4,0,0)|0|0)+16|0,4,0,0)|0|0;v=D+c|0;Qq(aa,t,v);if((da(J+20|0,2,0,0)|0)&256){if(!(da((da(Y|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0))w=(da(Y+4|0,4,0,0)|0|0)+(((da(Y+32|0,4,0,0)|0|0)+-1|0)*20|0)|0;else w=29120;ea(w+12|0,da(d+(pa*80|0)+772|0,4,0,0)|0|0,4,0);ea(w+3>>0|0,1|0,1,0)}if(Tu(t)|0)vh(Y,76,v,E,0)|0;do if(!s){w=q+c|0;if((Au(t,da(w>>0|0,1,0,0)|0|0)|0)<<24>>24==65){ea(w>>0|0,65|0,1,0);v=65}else v=da(w>>0|0,1,0,0)|0|0;if(!(Uu(t,v)|0))break;ea(w>>0|0,65|0,1,0)}while(0);w=c+1|0}else{if(!(H<<24>>24)){w=c;break}vh(Y,28,0,D+c|0,0)|0;w=c+1|0;x=0;z=1}while(0);Vu(aa,D,w-(H&255)|0,q);wh(Y,vh(Y,da(33544+(z<<2|V|x<<1)>>0|0,1,0,1)|0|0,Q,E,D)|0,w,-14);do if(A){s=da((da(G|0,4,0,0)|0|0)+16|0,4,0,0)|0|0;r=D+c|0;ct(aa,r,1);Qq(aa,s,r);if((da(G+20|0,2,0,0)|0)&256){if(!(da((da(Y|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0))t=(da(Y+4|0,4,0,0)|0|0)+(((da(Y+32|0,4,0,0)|0|0)+-1|0)*20|0)|0;else t=29120;ea(t+12|0,da(d+(pa*80|0)+772|0,4,0,0)|0|0,4,0);ea(t+3>>0|0,1|0,1,0)}if(Tu(s)|0)vh(Y,76,r,E,0)|0;do if((Au(s,da(Ga>>0|0,1,0,0)|0|0)|0)<<24>>24!=65){if(Uu(s,da(Ga>>0|0,1,0,0)|0|0)|0)break;Vu(aa,r,1,Ga)}while(0);c=c+1|0}else{if(!(y<<24>>24))break;vh(Y,28,0,D+c|0,0)|0;u=0;c=c+1|0}while(0);lg(_,q);ea(d+(pa*80|0)+788|0,da(Y+32|0,4,0,0)|0|0,4,0);if(c)wh(Y,vh(Y,da(33552+(u|V<<1)>>0|0,1,0,1)|0|0,Q,E,D)|0,c,-14);Qu(m,J);Qu(m,G);do if(!K){t=da(N+12|0,4,0,0)|0|0;if(!((da(t+44>>0|0,1,0,0)|0)&32)){W=aa+72|0;X=(da(W|0,4,0,0)|0|0)+1|0;ea(W|0,X|0,4,0);vh(Y,112,Q,X,0)|0;Ru(aa,g,-1,X);vh(Y,66,g,X,0)|0;break}if((g|0)==(Q|0))break;c=da(t+8|0,4,0,0)|0|0;A:do if(!c)c=0;else while(1){if(((da(c+51>>0|0,1,0,0)|0)&3)==2)break A;c=da(c+20|0,4,0,0)|0|0;if(!c){c=0;break}}while(0);z=c+46|0;o=da(z|0,2,0,0)|0|0;t=o&65535;u=aa+60|0;s=da(u|0,4,0,0)|0|0;r=aa+56|0;n=da(r|0,4,0,0)|0|0;if((n|0)<(t|0)){X=aa+72|0;s=da(X|0,4,0,0)|0|0;ea(X|0,s+t|0,4,0);s=s+1|0}else{ea(u|0,s+t|0,4,0);ea(r|0,n-t|0,4,0)}if(o<<16>>16){n=c+4|0;o=N+48|0;v=N+4|0;w=0;do{t=da((da(n|0,4,0,0)|0|0)+(w<<1)|0,2,0,0)|0|0;c=da(o|0,2,0,0)|0|0;B:do if(!(c<<16>>16))c=-1;else{r=da(v|0,4,0,0)|0|0;u=c&65535;c=0;while(1){if((da(r+(c<<1)|0,2,0,0)|0|0)==t<<16>>16)break B;c=c+1|0;if((c|0)>=(u|0)){c=-1;break}}}while(0);vh(Y,47,Q,c<<16>>16,w+s|0)|0;w=w+1|0;t=da(z|0,2,0,1)|0|0}while((w|0)<(t|0))}wh(Y,vh(Y,68,g,Z,s)|0,t,-14)}while(0);r=da(P|0,4,0,0)|0|0;do if(!(r&4096)){n=d+(pa*80|0)+781|0;if(!V){ea(n>>0|0,9|0,1,0);break}else{ea(n>>0|0,8|0,1,0);break}}else ea(d+(pa*80|0)+781>>0|0,-100|0,1,0);while(0);ea(d+(pa*80|0)+784|0,Q|0,4,0);ea(d+(pa*80|0)+782>>0|0,r>>>16&1|0,1,0);if(r&15){ra=459;break}ea(d+(pa*80|0)+783>>0|0,1|0,1,0);ra=459;break}if(!(w&8192))if(!(v&8)){ea(d+(pa*80|0)+781>>0|0,da(33560+V>>0|0,1,0,0)|0|0|0,1,0);ea(d+(pa*80|0)+784|0,g|0,4,0);ea(d+(pa*80|0)+788|0,(vh(Y,da(33568+V>>0|0,1,0,1)|0|0,g,x,0)|0)+1|0,4,0);ea(d+(pa*80|0)+783>>0|0,1|0,1,0);ra=459;break}else{ea(d+(pa*80|0)+781>>0|0,-100|0,1,0);ra=459;break}A=aa+68|0;U=da(A|0,4,0,0)|0|0;ea(A|0,U+1|0,4,0);S=aa+72|0;T=(da(S|0,4,0,0)|0|0)+1|0;ea(S|0,T|0,4,0);V=ws(Y)|0;R=da(z+(y*72|0)+24|0,4,0,0)|0|0;e=da(da(E+48|0,4,0,0)|0|0,4,0,0)|0|0;J=da(e+12|0,4,0,0)|0|0;ea(d+(pa*80|0)+781>>0|0,18|0,1,0);ea(d+(pa*80|0)+784|0,T|0,4,0);c=da(va>>0|0,1,0,0)|0|0;do if((c&255)>1){z=(c&255)-pa|0;x=z+-1|0;w=lh(_,(x*72|0)+80|0,0)|0;if(!w)break z;v=z&255;ea(w+4|0,v|0,4,0);ea(w|0,v|0,4,0);v=w+8|0;n=v+0|0;c=H+0|0;r=n+72|0;do{ea(n|0,da(c|0,4,0,0)|0|0,4,0);n=n+4|0;c=c+4|0}while((n|0)<(r|0));y=da(wa|0,4,0,0)|0|0;if((z|0)<2)break;else z=1;while(1){n=v+(z*72|0)+0|0;c=y+((da(d+((z+pa|0)*80|0)+780>>0|0,1,0,1)|0|0)*72|0)+8|0;r=n+72|0;do{ea(n|0,da(c|0,4,0,0)|0|0,4,0);n=n+4|0;c=c+4|0}while((n|0)<(r|0));if((z|0)<(x|0))z=z+1|0;else break}}else w=da(wa|0,4,0,0)|0|0;while(0);if(!((da(ya|0,2,0,0)|0)&8)){if(!((da(R+44>>0|0,1,0,0)|0)&32)){c=(da(S|0,4,0,0)|0|0)+1|0;ea(S|0,c|0,4,0);vh(Y,28,0,c,0)|0}else{c=da(R+8|0,4,0,0)|0|0;C:do if(!c)c=0;else while(1){if(((da(c+51>>0|0,1,0,0)|0)&3)==2)break C;c=da(c+20|0,4,0,0)|0|0;if(!c){c=0;break}}while(0);Q=da(A|0,4,0,0)|0|0;ea(A|0,Q+1|0,4,0);vh(Y,57,Q,da(c+46|0,2,0,1)|0|0,0)|0;P=da(F|0,4,0,0)|0|0;wh(P,-1,gs(aa,c)|0,-6);c=Q}P=(da(S|0,4,0,0)|0|0)+1|0;ea(S|0,P|0,4,0);O=c}else{P=0;O=0}Q=vh(Y,25,0,T,0)|0;c=da(sa|0,4,0,0)|0|0;do if((c|0)>1){x=0;v=0;do{z=da(ta|0,4,0,0)|0|0;N=z+(x*48|0)|0;y=da(N|0,4,0,0)|0|0;do if((N|0)!=(e|0)){if((da(y+4|0,4,0,0)|0)&1)break;if((da(z+(x*48|0)+20|0,2,0,0)|0)&2)break;if(!((da(z+(x*48|0)+18|0,2,0,0)|0)&4095))break;v=rs(_,v,Lr(_,y,0,0)|0)|0;c=da(sa|0,4,0,0)|0|0}while(0);x=x+1|0}while((x|0)<(c|0));if(!v){N=0;break}N=Yq(aa,72,0,v,0)|0}else N=0;while(0);M=J+12|0;do if((da(M|0,4,0,0)|0|0)>0){o=J+20|0;n=(N|0)==0;r=R+44|0;s=Y+32|0;t=Y+4|0;v=Y+24|0;x=R+8|0;y=aa+60|0;B=aa+56|0;K=N+12|0;L=0;u=0;c=0;p=240;while(1){A=da(o|0,4,0,0)|0|0;if((da(A+(L*48|0)+8|0,4,0,0)|0|0)!=(g|0)?((da(A+(L*48|0)+18|0,2,0,0)|0)&512)==0:0)A=p;else ra=407;do if((ra|0)==407){ra=0;A=da(A+(L*48|0)|0,4,0,0)|0|0;do if(!n){if((da(A+4|0,4,0,0)|0)&1)break;ea(K|0,A|0,4,0);A=N}while(0);q=Us(aa,w,A,0,0,p,U)|0;if(!q){A=p;break}Ou(aa,w,q+736|0,pa,da(W>>0|0,1,0,1)|0|0,0);do if(!((da(ya|0,2,0,0)|0)&8)){F=(L|0)==((da(M|0,4,0,0)|0|0)+-1|0)?-1:L;do if(!((da(r>>0|0,1,0,0)|0)&32)){z=vh(Y,130,O,0,bt(aa,R,-1,g,P,0)|0)|0;wh(Y,z,F,-14)}else{A=da(x|0,4,0,0)|0|0;D:do if(!A)A=0;else while(1){if(((da(A+51>>0|0,1,0,0)|0)&3)==2)break D;A=da(A+20|0,4,0,0)|0|0;if(!A){A=0;break}}while(0);G=da(A+46|0,2,0,0)|0|0;D=G&65535;J=da(y|0,4,0,0)|0|0;H=da(B|0,4,0,0)|0|0;if((H|0)<(D|0)){E=da(S|0,4,0,0)|0|0;ea(S|0,E+D|0,4,0);E=E+1|0}else{ea(y|0,J+D|0,4,0);ea(B|0,H-D|0,4,0);E=J}if(G<<16>>16){H=A+4|0;J=0;do{bt(aa,R,da((da(H|0,4,0,0)|0|0)+(J<<1)|0,2,0,0)|0|0,g,J+E|0,0)|0;J=J+1|0}while((J|0)<(D|0))}J=(F|0)!=0;if(J){z=vh(Y,69,O,0,E)|0;wh(Y,z,D,-14);if((F|0)>-1)ra=426}else{z=0;ra=426}do if((ra|0)==426){ra=0;vh(Y,49,E,D,P)|0;vh(Y,110,O,P,0)|0;if(!J)break;F=da(t|0,4,0,0)|0|0;if(!F)break;ea(F+(((da(s|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,16|0,1,0)}while(0);ct(aa,E,D);if((da(B|0,4,0,0)|0|0)>=(D|0))break;ea(B|0,D|0,4,0);ea(y|0,E|0,4,0)}while(0);vh(Y,17,T,V,0)|0;if(!z)break;A=da(s|0,4,0,0)|0|0;if(A>>>0>z>>>0)ea((da(t|0,4,0,0)|0|0)+(z*20|0)+8|0,A|0,4,0);ea((da(v|0,4,0,0)|0|0)+88|0,A+-1|0,4,0)}else vh(Y,17,T,V,0)|0;while(0);c=(da(q+39>>0|0,1,0,0)|0|0)==0?c:1;A=da(q+800|0,4,0,0)|0|0;do if(!((da(A+36|0,4,0,0)|0)&512)){u=0;A=p}else{if((L|0)!=0?(da(A+28|0,4,0,0)|0|0)!=(u|0):0){u=0;A=p;break}u=da(A+28|0,4,0,0)|0|0;if(((da(r>>0|0,1,0,0)|0)&32)!=0?((da(u+51>>0|0,1,0,0)|0)&3)==2:0){u=0;A=p;break}A=(p&65535|4096)&65535}while(0);Ws(q)}while(0);L=L+1|0;if((L|0)>=(da(M|0,4,0,0)|0|0))break;else p=A}ea(d+(pa*80|0)+792|0,u|0,4,0);if(!u){r=c;break}ea(d+(pa*80|0)+744|0,U|0,4,0);r=c}else{ea(d+(pa*80|0)+792|0,0|0,4,0);r=0}while(0);if(N){ea(N+12|0,0|0,4,0);Fk(_,N)}s=Y+32|0;c=da(s|0,4,0,0)|0|0;if(c>>>0>Q>>>0)ea((da(Y+4|0,4,0,0)|0|0)+(Q*20|0)+4|0,c|0,4,0);vh(Y,16,0,da(X|0,4,0,0)|0|0,0)|0;u=da(Y+24|0,4,0,0)|0|0;t=~V;do if((V|0)<0){c=da(u+112|0,4,0,0)|0|0;if(!c)break;ea(c+(t<<2)|0,da(s|0,4,0,0)|0|0,4,0)}while(0);ea(u+88|0,(da(s|0,4,0,0)|0|0)+-1|0,4,0);if((da(va>>0|0,1,0,1)|0|0)>1)lg(_,w);if(r){ra=459;break}Qu(m,e);ra=459}else{ra=da(z+(y*72|0)+36|0,4,0,0)|0|0;vh(Y,20,ra,0,da(z+(y*72|0)+32|0,4,0,0)|0|0)|0;ea(d+(pa*80|0)+788|0,vh(Y,22,ra,x,0)|0|0,4,0);ea(d+(pa*80|0)+781>>0|0,16|0,1,0);ra=459}while(0);if((ra|0)==459){ra=0;c=da(sa|0,4,0,0)|0|0;do if((c|0)>0){o=d+(pa*80|0)+772|0;p=Y+32|0;q=Y+4|0;v=Y+24|0;n=da(ta|0,4,0,0)|0|0;while(1){r=n+20|0;s=da(r|0,2,0,0)|0|0;do if(!(s&6)){u=n+40|0;t=$;if(!(((da(t|0,4,0,0)|0)&(da(u|0,4,0,0)|0)|0)==0?((da(t+4|0,4,0,0)|0)&(da(u+4|0,4,0,0)|0)|0)==0:0)){ea(ga>>0|0,1|0,1,0);break}u=da(n|0,4,0,0)|0|0;if((da(m|0,4,0,0)|0|0)!=0?((da(u+4|0,4,0,0)|0)&1|0)==0:0)break;do if(!(s&512))ft(aa,u,Z,16);else{t=vh(Y,46,da(o|0,4,0,0)|0|0,0,0)|0;ft(aa,u,Z,16);if(!t)break;u=da(p|0,4,0,0)|0|0;if(u>>>0>t>>>0)ea((da(q|0,4,0,0)|0|0)+(t*20|0)+8|0,u|0,4,0);ea((da(v|0,4,0,0)|0|0)+88|0,u+-1|0,4,0)}while(0);ea(r|0,da(r|0,2,0,1)|0|4|0,2,0)}while(0);c=c+-1|0;if((c|0)<=0)break;else n=n+48|0}q=da(sa|0,4,0,0)|0|0;if((q|0)<=0){ra=475;break}s=da(ta|0,4,0,0)|0|0;while(1){do if(!((da(s+20|0,2,0,0)|0)&6)){if((da(s+18|0,2,0,0)|0|0)!=1026)break;if((da(s+8|0,4,0,0)|0|0)!=(g|0))break;if(da(m|0,4,0,0)|0)break;u=da(s|0,4,0,0)|0|0;c=Eu(Ca,g,da(s+12|0,4,0,0)|0|0,l,k,3,0)|0;if(!c)break;if((da(c+20|0,2,0,0)|0)&4)break;t=lh(_,48,0)|0;if(!t)break;n=t+0|0;c=(da(c|0,4,0,0)|0|0)+0|0;r=n+48|0;do{ea(n|0,da(c|0,4,0,0)|0|0,4,0);n=n+4|0;c=c+4|0}while((n|0)<(r|0));ea(t+12|0,da(u+12|0,4,0,0)|0|0,4,0);ft(aa,t,Z,16);lg(_,t)}while(0);q=q+-1|0;if((q|0)<=0)break;else s=s+48|0}}else ra=475;while(0);if((ra|0)==475)ra=0;m=da(m|0,4,0,0)|0|0;do if(m){ea(d+(pa*80|0)+764|0,da(Y+32|0,4,0,0)|0|0,4,0);vh(Y,25,1,m,0)|0;$s(aa);m=da(sa|0,4,0,0)|0|0;if((m|0)<=0)break;n=0;l=da(ta|0,4,0,0)|0|0;while(1){q=l+20|0;do if(!((da(q|0,2,0,0)|0)&6)){p=l+40|0;o=$;if(!(((da(o|0,4,0,0)|0)&(da(p|0,4,0,0)|0)|0)==0?((da(o+4|0,4,0,0)|0)&(da(p+4|0,4,0,0)|0)|0)==0:0))break;ft(aa,da(l|0,4,0,0)|0|0,Z,16);ea(q|0,da(q|0,2,0,1)|0|4|0,2,0);m=da(sa|0,4,0,0)|0|0}while(0);n=n+1|0;if((n|0)>=(m|0))break;else l=l+48|0}}while(0);k=$;l=da(k|0,4,0,0)|0|0;k=da(k+4|0,4,0,0)|0|0}ea(xa|0,da(qa+(pa*80|0)+24|0,4,0,0)|0|0,4,0);pa=pa+1|0;if((pa|0)>=(h|0))break a}}}while(0);if(Da)d=0;else{ea(za|0,da(Aa|0,4,0,0)|0|0,4,0);Wu(Fa,d);d=0}}else{ea(Ha|0,64|0,4,0);sh(a,33504,Ha);d=0}while(0);i=Ja;return d|0}function Vs(a){a=a|0;var b=0,c=0,d=0,e=0;e=a<<16>>16;do if(a<<16>>16>=10){a=(e|0)%10|0;b=((a|0)<0)<<31>>31;if(a>>>0>4){c=iw(a|0,b|0,-2,-1)|0;d=C}else{c=((a|0)!=0)<<31>>31;c=iw(c|0,((c|0)<0)<<31>>31|0,a|0,b|0)|0;d=C}b=((e|0)/10|0)<<16;a=b>>16;if((b|0)<=131072){b=iw(c|0,d|0,8,0)|0;a=lw(b|0,C|0,3-a|0)|0;b=C;break}if((b|0)>3932160){b=2147483647;a=-1}else{b=iw(c|0,d|0,8,0)|0;a=hw(b|0,C|0,a+-3|0)|0;b=C}}else{b=0;a=1}while(0);C=b;return a|0}function Ws(a){a=a|0;var 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,A=0,B=0,C=0,D=0,E=0;y=da(a|0,4,0,0)|0|0;z=da(y+8|0,4,0,0)|0|0;B=da(a+4|0,4,0,0)|0|0;C=da(y|0,4,0,0)|0|0;$s(y);D=a+41|0;c=da(D>>0|0,1,0,0)|0|0;if(!(c<<24>>24))b=z+24|0;else{b=z+24|0;l=z+32|0;n=z+4|0;k=c&255;do{k=k+-1|0;e=da(a+(k*80|0)+800|0,4,0,0)|0|0;w=da(a+(k*80|0)+760|0,4,0,0)|0|0;c=da(b|0,4,0,0)|0|0;d=~w;if((w|0)<0?(o=da(c+112|0,4,0,0)|0|0,(o|0)!=0):0)ea(o+(d<<2)|0,da(l|0,4,0,0)|0|0,4,0);ea(c+88|0,(da(l|0,4,0,0)|0|0)+-1|0,4,0);x=a+(k*80|0)+781|0;d=da(x>>0|0,1,0,0)|0|0;if(d<<24>>24!=-100?(vh(z,d&255,da(a+(k*80|0)+784|0,4,0,0)|0|0,da(a+(k*80|0)+788|0,4,0,0)|0|0,da(a+(k*80|0)+782>>0|0,1,0,1)|0|0)|0,q=da(n|0,4,0,0)|0|0,(q|0)!=0):0)ea(q+(((da(l|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,da(a+(k*80|0)+783>>0|0,1,0,0)|0|0|0,1,0);p=e+36|0;if(((da(p|0,4,0,0)|0)&2048|0)!=0?(r=a+(k*80|0)+792|0,s=da(r|0,4,0,0)|0|0,(s|0)>0):0){w=da(a+(k*80|0)+752|0,4,0,0)|0|0;g=da(b|0,4,0,0)|0|0;d=~w;if((w|0)<0?(t=da(g+112|0,4,0,0)|0|0,(t|0)!=0):0){ea(t+(d<<2)|0,da(l|0,4,0,0)|0|0,4,0);h=da(r|0,4,0,0)|0|0;f=da(l|0,4,0,0)|0|0;ea(g+88|0,f+-1|0,4,0);c=a+(k*80|0)+796|0;if((h|0)>0)E=16}else{f=da(l|0,4,0,0)|0|0;ea(g+88|0,f+-1|0,4,0);c=a+(k*80|0)+796|0;h=s;E=16}if((E|0)==16){E=0;d=g;j=h;i=(da(c|0,4,0,0)|0|0)+((h+-1|0)*12|0)|0;while(1){h=i+4|0;g=da(h|0,4,0,0)|0|0;e=g+1|0;if(f>>>0>e>>>0)ea((da(n|0,4,0,0)|0|0)+(e*20|0)+8|0,f|0,4,0);ea(d+88|0,f+-1|0,4,0);vh(z,da(i+8>>0|0,1,0,1)|0|0,da(i|0,4,0,0)|0|0,g,0)|0;h=(da(h|0,4,0,0)|0|0)+-1|0;f=da(l|0,4,0,0)|0|0;if(f>>>0>h>>>0)ea((da(n|0,4,0,0)|0|0)+(h*20|0)+8|0,f|0,4,0);d=da(b|0,4,0,0)|0|0;ea(d+88|0,f+-1|0,4,0);j=j+-1|0;if((j|0)<=0)break;else i=i+-12|0}}lg(C,da(c|0,4,0,0)|0|0)}w=da(a+(k*80|0)+748|0,4,0,0)|0|0;e=da(b|0,4,0,0)|0|0;d=~w;if((w|0)<0?(m=da(e+112|0,4,0,0)|0|0,(m|0)!=0):0)ea(m+(d<<2)|0,da(l|0,4,0,0)|0|0,4,0);d=da(l|0,4,0,0)|0|0;ea(e+88|0,d+-1|0,4,0);e=a+(k*80|0)+756|0;c=da(e|0,4,0,0)|0|0;if(c){vh(z,16,0,c,0)|0;e=da(e|0,4,0,0)|0|0;d=da(l|0,4,0,0)|0|0;if(d>>>0>e>>>0)ea((da(n|0,4,0,0)|0|0)+(e*20|0)+8|0,d|0,4,0);f=d+-1|0;c=(da(b|0,4,0,0)|0|0)+88|0;ea(c|0,f|0,4,0);e=e+-2|0;if(d>>>0>e>>>0)ea((da(n|0,4,0,0)|0|0)+(e*20|0)+8|0,d|0,4,0);ea(c|0,f|0,4,0)}e=da(a+(k*80|0)+776|0,4,0,0)|0|0;if(e){if(!(da((da(z|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0))d=(da(n|0,4,0,0)|0|0)+((((e|0)<1?d:e)+-1|0)*20|0)|0;else d=29120;vh(z,(da(d+4|0,4,0,0)|0|0)==0?141:140,da(a+(k*80|0)+772|0,4,0,0)|0|0,e,0)|0}c=da(a+(k*80|0)+736|0,4,0,0)|0|0;if(c){f=vh(z,137,c,0,0)|0;c=da(p|0,4,0,0)|0|0;if(!(c&64)){vh(z,104,da(B+(k*72|0)+48|0,4,0,0)|0|0,0,0)|0;c=da(p|0,4,0,0)|0|0}if(c&512)vh(z,104,da(a+(k*80|0)+744|0,4,0,0)|0|0,0,0)|0;c=da(a+(k*80|0)+764|0,4,0,0)|0|0;if((da(x>>0|0,1,0,0)|0|0)==18)vh(z,17,da(a+(k*80|0)+784|0,4,0,0)|0|0,c,0)|0;else vh(z,16,0,c,0)|0;c=da(l|0,4,0,0)|0|0;if(c>>>0>f>>>0)ea((da(n|0,4,0,0)|0|0)+(f*20|0)+8|0,c|0,4,0);ea((da(b|0,4,0,0)|0|0)+88|0,c+-1|0,4,0)}}while((k|0)>0)}w=da(a+52|0,4,0,0)|0|0;c=da(b|0,4,0,0)|0|0;b=~w;if((w|0)<0?(u=da(c+112|0,4,0,0)|0|0,(u|0)!=0):0)ea(u+(b<<2)|0,da(z+32|0,4,0,0)|0|0,4,0);x=z+32|0;ea(c+88|0,(da(x|0,4,0,0)|0|0)+-1|0,4,0);if(da(D>>0|0,1,0,0)|0){q=a+34|0;r=a+38|0;s=a+64|0;t=C+65|0;u=z+4|0;v=0;w=a+736|0;while(1){e=da(w+44>>0|0,1,0,1)|0|0;f=da(B+(e*72|0)+24|0,4,0,0)|0|0;d=da(w+64|0,4,0,0)|0|0;if(((da(B+(e*72|0)+45>>0|0,1,0,0)|0)&4)!=0?(da(t>>0|0,1,0,0)|0|0)==0:0){g=da(x|0,4,0,0)|0|0;d=da(w+32|0,4,0,0)|0|0;if(!(da((da(z|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0))c=(da(u|0,4,0,0)|0|0)+(((d|0)<0?g+-1|0:d)*20|0)|0;else c=29120;if((d|0)<(g|0)){h=da(w+4|0,4,0,0)|0|0;f=B+(e*72|0)+40|0;e=c;while(1){c=e+4|0;do if((da(c|0,4,0,0)|0|0)==(h|0)){b=da(e>>0|0,1,0,0)|0|0;if(b<<24>>24==47){ea(e>>0|0,33|0,1,0);o=e+8|0;ea(c|0,(da(f|0,4,0,0)|0|0)+(da(o|0,4,0,0)|0|0)|0,4,0);p=e+12|0;ea(o|0,da(p|0,4,0,0)|0|0,4,0);ea(p|0,0|0,4,0);break}else if(b<<24>>24==103){ea(e>>0|0,28|0,1,0);ea(c|0,0|0,4,0);ea(e+12|0,0|0,4,0);break}else break}while(0);d=d+1|0;if((d|0)==(g|0))break;else e=e+20|0}}}else E=64;do if((E|0)==64){E=0;p=f+44|0;if((((da(p>>0|0,1,0,0)|0)&2)==0?(da(f+12|0,4,0,0)|0|0)==0:0)?((da(q|0,2,0,0)|0)&16)==0:0){c=da(d+36|0,4,0,0)|0|0;if((da(r>>0|0,1,0,0)|0|0)==0&(c&64|0)==0)vh(z,61,da(B+(e*72|0)+48|0,4,0,0)|0|0,0,0)|0;if((c&17152|0)==512?(A=da(w+8|0,4,0,0)|0|0,(A|0)!=(da(s|0,4,0,0)|0|0)):0)vh(z,61,A,0,0)|0}c=da(d+36|0,4,0,0)|0|0;if(!(c&576)){if(!(c&8192))break;c=w+56|0}else c=d+28|0;d=da(c|0,4,0,0)|0|0;if((d|0)!=0?(da(t>>0|0,1,0,0)|0|0)==0:0){n=da(x|0,4,0,0)|0|0;h=da(w+32|0,4,0,0)|0|0;if(!(da((da(z|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0))g=(da(u|0,4,0,0)|0|0)+(((h|0)<0?n+-1|0:h)*20|0)|0;else g=29120;if((h|0)<(n|0)){o=d+48|0;l=d+4|0;m=w+8|0;k=f+8|0;b=da(w+4|0,4,0,0)|0|0;c=g;while(1){d=c+4|0;a:do if((da(d|0,4,0,0)|0|0)==(b|0)){g=da(c>>0|0,1,0,0)|0|0;if(g<<24>>24==103){ea(d|0,da(m|0,4,0,0)|0|0,4,0);ea(c>>0|0,112|0,1,0);break}else if(g<<24>>24!=47)break;e=c+8|0;g=da(e|0,4,0,0)|0|0;if((da(p>>0|0,1,0,0)|0)&32){f=k;while(1){f=da(f|0,4,0,0)|0|0;if(((da(f+51>>0|0,1,0,0)|0)&3)==2)break;else f=f+20|0}g=da((da(f+4|0,4,0,0)|0|0)+(g<<1)|0,2,0,0)|0|0}j=g&65535;g=da(o|0,2,0,0)|0|0;if(g<<16>>16){f=da(l|0,4,0,0)|0|0;i=g&65535;g=0;while(1){if((da(f+(g<<1)|0,2,0,0)|0|0)==j<<16>>16)break;g=g+1|0;if((g|0)>=(i|0))break a}if((g&65535)<<16>>16>-1){ea(e|0,g<<16>>16|0,4,0);ea(d|0,da(m|0,4,0,0)|0|0,4,0)}}}while(0);h=h+1|0;if((h|0)==(n|0))break;else c=c+20|0}}}}while(0);v=v+1|0;if((v|0)>=(da(D>>0|0,1,0,1)|0|0))break;else w=w+80|0}}ea(y+424|0,da(a+56|0,4,0,0)|0|0,4,0);Wu(C,a);return}function Xs(a,b){a=a|0;b=b|0;var c=0,d=0;if((b|0)!=0?(da(b|0,4,0,0)|0|0)>0:0){c=0;d=da(b+4|0,4,0,0)|0|0;while(1){Xu(a,da(d|0,4,0,0)|0|0);c=c+1|0;if((c|0)>=(da(b|0,4,0,0)|0|0))break;else d=d+20|0}}return}function Ys(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();n=q;e=da(a+24|0,4,0,0)|0|0;o=da(e|0,4,0,0)|0|0;f=da(e+4|0,4,0,0)|0|0;p=da(e+12|0,4,0,0)|0|0;d=da(b>>0|0,1,0,1)|0|0;a:do if((d|0)==155)if(((da(e+28|0,2,0,0)|0)&8)==0?(da(a+16|0,4,0,0)|0|0)==(da(b+38>>0|0,1,0,1)|0|0):0){h=p+40|0;d=p+44|0;a=da(d|0,4,0,0)|0|0;b:do if((a|0)>0){c=0;e=da(h|0,4,0,0)|0|0;while(1){if(!(Bu(da(e|0,4,0,0)|0|0,b,-1)|0))break b;c=c+1|0;if((c|0)<(a|0))e=e+16|0;else break}}else c=0;while(0);do if((c|0)>=(a|0)){g=da(o|0,4,0,0)|0|0;k=da(g+62>>0|0,1,0,0)|0|0;g=Gt(g,da(h|0,4,0,0)|0|0,16,d,n)|0;ea(h|0,g|0,4,0);c=da(n|0,4,0,0)|0|0;if((c|0)>-1){ea(g+(c<<4)|0,b|0,4,0);f=o+72|0;d=(da(f|0,4,0,0)|0|0)+1|0;ea(f|0,d|0,4,0);ea(g+(c<<4)+8|0,d|0,4,0);d=da(o|0,4,0,0)|0|0;f=da(b+8|0,4,0,0)|0|0;if(!f)a=0;else{e=f;while(1)if(!(da(e>>0|0,1,0,0)|0))break;else e=e+1|0;a=e-f&1073741823}e=da(b+20|0,4,0,0)|0|0;if(!e)e=0;else e=da(e|0,4,0,0)|0|0;ea(g+(c<<4)+4|0,Rh(d,f,a,e,k,0)|0|0,4,0);if(!((da(b+4|0,4,0,0)|0)&16)){ea(g+(c<<4)+12|0,-1|0,4,0);break}else{l=o+68|0;m=da(l|0,4,0,0)|0|0;ea(l|0,m+1|0,4,0);ea(g+(c<<4)+12|0,m|0,4,0);break}}}while(0);ea(b+34|0,c|0,2,0);ea(b+40|0,p|0,4,0);c=1}else c=0;else if((d|0)==154|(d|0)==156)if((f|0)!=0?(h=da(f|0,4,0,0)|0|0,(h|0)>0):0){l=b+28|0;d=da(l|0,4,0,0)|0|0;a=0;e=f+8|0;while(1){if((d|0)==(da(e+40|0,4,0,0)|0|0))break;a=a+1|0;if((a|0)>=(h|0)){c=1;break a}else e=e+72|0}k=p+28|0;f=p+32|0;a=da(f|0,4,0,0)|0|0;c:do if((a|0)>0){h=b+32|0;c=0;g=da(k|0,4,0,0)|0|0;while(1){if((da(g+4|0,4,0,0)|0|0)==(d|0)?(da(g+8|0,4,0,0)|0|0)==(da(h|0,2,0,0)|0|0):0)break c;c=c+1|0;if((c|0)<(a|0))g=g+24|0;else break}}else c=0;while(0);d:do if((c|0)>=(a|0)){a=Gt(da(o|0,4,0,0)|0|0,da(k|0,4,0,0)|0|0,24,f,n)|0;ea(k|0,a|0,4,0);c=da(n|0,4,0,0)|0|0;if((c|0)>-1){ea(a+(c*24|0)|0,da(b+44|0,4,0,0)|0|0,4,0);f=da(l|0,4,0,0)|0|0;ea(a+(c*24|0)+4|0,f|0,4,0);g=da(b+32|0,2,0,0)|0|0;ea(a+(c*24|0)+8|0,g<<16>>16|0,4,0);e=o+72|0;h=(da(e|0,4,0,0)|0|0)+1|0;ea(e|0,h|0,4,0);ea(a+(c*24|0)+16|0,h|0,4,0);h=a+(c*24|0)+12|0;ea(h|0,-1|0,4,0);ea(a+(c*24|0)+20|0,b|0,4,0);e=da(p+24|0,4,0,0)|0|0;e:do if((e|0)!=0?(m=da(e|0,4,0,0)|0|0,(m|0)>0):0){d=0;a=da(e+4|0,4,0,0)|0|0;while(1){e=da(a|0,4,0,0)|0|0;if(((da(e>>0|0,1,0,0)|0|0)==-102?(da(e+28|0,4,0,0)|0|0)==(f|0):0)?(da(e+32|0,2,0,0)|0|0)==g<<16>>16:0)break;d=d+1|0;if((d|0)>=(m|0))break e;else a=a+20|0}ea(h|0,d|0,4,0);if((d|0)>=0)break d}while(0);l=p+12|0;m=da(l|0,4,0,0)|0|0;ea(l|0,m+1|0,4,0);ea(h|0,m|0,4,0)}}while(0);ea(b+40|0,p|0,4,0);ea(b>>0|0,-100|0,1,0);ea(b+34|0,c|0,2,0);c=1}else c=1;else c=0;while(0);i=q;return c|0}function Zs(a,b){a=a|0;b=b|0;return 0}function _s(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();c=d;if((da(a+450>>0|0,1,0,0)|0|0)==2){e=da(a+8|0,4,0,0)|0|0;f=da(a|0,4,0,0)|0|0;ea(c|0,b|0,4,0);c=th(f,35e3,c)|0;wh(e,vh(e,157,da(a+464|0,4,0,0)|0|0,0,0)|0,c,-1)}i=d;return}function $s(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=a+19|0;g=0;h=a+116|0;while(1){c=h+12|0;d=da(c|0,4,0,0)|0|0;if(d){e=h+6|0;if(da(e>>0|0,1,0,0)|0){f=da(b>>0|0,1,0,0)|0|0;if((f&255)<8){ea(b>>0|0,f+1<<24>>24|0,1,0);ea(a+((f&255)<<2)+24|0,d|0,4,0)}ea(e>>0|0,0|0,1,0)}ea(c|0,0|0,4,0)}g=g+1|0;if((g|0)==10)break;else h=h+20|0}return}function at(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+32|0;if((i|0)>=(j|0))ba();v=x;e=d&255;o=34-(e&1)|0;r=da(b|0,4,0,0)|0|0;if(!(da(a+23>>0|0,1,0,0)|0))d=e&253;if((r|0)>0){f=(d&2)==0;g=a+8|0;h=(o|0)==33;k=v+20|0;l=v+4|0;m=v+24|0;n=0;b=da(b+4|0,4,0,0)|0|0;while(1){e=da(b|0,4,0,0)|0|0;if(!f?(ea(v+0|0,0|0,4,0),ea(v+4|0,0|0,4,0),ea(v+8|0,0|0,4,0),ea(v+12|0,0|0,4,0),ea(v+16|0,0|0,4,0),ea(v+20|0,0|0,4,0),ea(k>>0|0,1|0,1,0),ea(v|0,78|0,4,0),ea(l|0,79|0,4,0),ea(m|0,0|0,4,0),qs(v,e)|0,(da(k>>0|0,1,0,0)|0|0)!=0):0)Ft(a,e,n+c|0,0);else w=8;do if((w|0)==8?(w=0,p=n+c|0,q=hs(a,e,p)|0,(q|0)!=(p|0)):0){d=da(g|0,4,0,0)|0|0;if(h){if(!(da((da(d|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0))e=(da(d+4|0,4,0,0)|0|0)+(((da(d+32|0,4,0,0)|0|0)+-1|0)*20|0)|0;else e=29120;if(((da(e>>0|0,1,0,0)|0|0)==33?(s=e+12|0,t=da(s|0,4,0,0)|0|0,((da(e+4|0,4,0,0)|0|0)+1+t|0)==(q|0)):0)?(u=t+1|0,(u+(da(e+8|0,4,0,0)|0|0)|0)==(p|0)):0){ea(s|0,u|0,4,0);break}}vh(d,o,q,p,0)|0}while(0);n=n+1|0;if((n|0)==(r|0))break;else b=b+20|0}}i=x;return}function bt(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,i=0,j=0,k=0;k=da(a+8|0,4,0,0)|0|0;g=a+116|0;j=0;h=g;while(1){i=da(h+12|0,4,0,0)|0|0;if(((i|0)>0?(da(h|0,4,0,0)|0|0)==(d|0):0)?(da(h+4|0,2,0,0)|0|0)==(c|0):0){e=i;j=5;break}j=j+1|0;if((j|0)>=10){j=10;break}else h=h+20|0}do if((j|0)==5){k=a+104|0;f=da(k|0,4,0,0)|0|0;ea(k|0,f+1|0,4,0);ea(h+16|0,f|0,4,0);h=0;while(1){if((da(g+12|0,4,0,0)|0|0)==(e|0))ea(g+6>>0|0,0|0,1,0);h=h+1|0;if((h|0)==10)break;else g=g+20|0}}else if((j|0)==10){mt(k,b,d,c,e);if(!(f<<24>>24)){Ru(a,d,c,e);break}g=da(k+4|0,4,0,0)|0|0;if(g)ea(g+(((da(k+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,f|0,1,0)}while(0);return e|0}function ct(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;c=b+-1+c|0;e=a+19|0;i=0;j=a+116|0;while(1){f=j+12|0;g=da(f|0,4,0,0)|0|0;if(!((g|0)<(b|0)|(g|0)>(c|0))){h=j+6|0;if(da(h>>0|0,1,0,0)|0){d=da(e>>0|0,1,0,0)|0|0;if((d&255)<8){ea(e>>0|0,d+1<<24>>24|0,1,0);ea(a+((d&255)<<2)+24|0,g|0,4,0)}ea(h>>0|0,0|0,1,0)}ea(f|0,0|0,4,0)}i=i+1|0;if((i|0)==10)break;else j=j+20|0}return}function dt(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,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=da(a+8|0,4,0,0)|0|0;ea(b>>0|0,1|0,1,0);p=b+44|0;if((da(p|0,4,0,0)|0|0)>0){q=x+4|0;s=a+56|0;t=a+60|0;l=x+24|0;m=x+32|0;n=b+36|0;o=a+72|0;u=0;v=da(b+40|0,4,0,0)|0|0;c=0;while(1){h=da((da(v|0,4,0,0)|0|0)+20|0,4,0,0)|0|0;if(!h){d=0;f=0}else{d=da(h|0,4,0,0)|0|0;f=da(t|0,4,0,0)|0|0;e=da(s|0,4,0,0)|0|0;if((e|0)<(d|0)){f=da(o|0,4,0,0)|0|0;ea(o|0,f+d|0,4,0);f=f+1|0}else{ea(t|0,f+d|0,4,0);ea(s|0,e-d|0,4,0)}at(a,h,f,1)}e=v+12|0;if((da(e|0,4,0,0)|0|0)>-1){k=ws(x)|0;yu(a,da(e|0,4,0,0)|0|0,k,1,f)}else k=0;j=v+4|0;e=da(j|0,4,0,0)|0|0;if((da(e+2|0,2,0,0)|0)&32){if((d|0)>0){i=0;h=da(h+4|0,4,0,0)|0|0;while(1){e=bu(a,da(h|0,4,0,0)|0|0)|0;i=i+1|0;g=(e|0)!=0;if(!((i|0)<(d|0)&(g^1)))break;else h=h+20|0}if(!g)w=15}else w=15;if((w|0)==15){w=0;e=da((da(a|0,4,0,0)|0|0)+8|0,4,0,0)|0|0}if(!c)if(!(da(n|0,4,0,0)|0))c=0;else{c=(da(o|0,4,0,0)|0|0)+1|0;ea(o|0,c|0,4,0)}wh(x,vh(x,36,c,0,0)|0,e,-4);e=da(j|0,4,0,0)|0|0}wh(x,vh(x,10,0,f,da(v+8|0,4,0,0)|0|0)|0,e,-5);e=da(q|0,4,0,0)|0|0;if(e)ea(e+(((da(m|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,d|0,1,0);ct(a,f,d);ct(a,f,d);if((da(s|0,4,0,0)|0|0)<(d|0)){ea(s|0,d|0,4,0);ea(t|0,f|0,4,0)}if(k){f=da(l|0,4,0,0)|0|0;e=~k;if((k|0)<0?(r=da(f+112|0,4,0,0)|0|0,(r|0)!=0):0)ea(r+(e<<2)|0,da(m|0,4,0,0)|0|0,4,0);ea(f+88|0,(da(m|0,4,0,0)|0|0)+-1|0,4,0);$s(a)}u=u+1|0;if((u|0)>=(da(p|0,4,0,0)|0|0))break;else v=v+16|0}if(c)f=vh(x,45,c,0,0)|0;else f=0}else f=0;$s(a);c=b+36|0;if((da(c|0,4,0,0)|0|0)>0){d=0;e=da(b+28|0,4,0,0)|0|0;while(1){Qq(a,da(e+20|0,4,0,0)|0|0,da(e+16|0,4,0,0)|0|0);d=d+1|0;if((d|0)>=(da(c|0,4,0,0)|0|0))break;else e=e+24|0}}ea(b>>0|0,0|0,1,0);$s(a);if(f){c=da(x+32|0,4,0,0)|0|0;if(c>>>0>f>>>0)ea((da(x+4|0,4,0,0)|0|0)+(f*20|0)+8|0,c|0,4,0);ea((da(x+24|0,4,0,0)|0|0)+88|0,c+-1|0,4,0)}return}function et(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=da(a+8|0,4,0,0)|0|0;d=b+44|0;if((da(d|0,4,0,0)|0|0)>0){e=0;b=da(b+40|0,4,0,0)|0|0;while(1){a=da((da(b|0,4,0,0)|0|0)+20|0,4,0,0)|0|0;if(!a)a=0;else a=da(a|0,4,0,0)|0|0;f=da(b+4|0,4,0,0)|0|0;wh(c,vh(c,142,da(b+8|0,4,0,0)|0|0,a,0)|0,f,-5);e=e+1|0;if((e|0)>=(da(d|0,4,0,0)|0|0))break;else b=b+16|0}}return}function ft(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,k=0,l=0,m=0,n=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();k=m+4|0;l=m;h=da(a+8|0,4,0,0)|0|0;ea(k|0,0|0,4,0);ea(l|0,0|0,4,0);if(!((h|0)==0|(b|0)==0)){n=da(b>>0|0,1,0,1)|0|0;e=n^1;a:do switch(n|0){case 75:{if(d){eu(a,b,c,c);break a}f=ws(h)|0;eu(a,b,c,f);e=da(h+24|0,4,0,0)|0|0;d=~f;if((f|0)<0?(g=da(e+112|0,4,0,0)|0|0,(g|0)!=0):0)ea(g+(d<<2)|0,da(h+32|0,4,0,0)|0|0,4,0);ea(e+88|0,(da(h+32|0,4,0,0)|0|0)+-1|0,4,0);break}case 72:{ft(a,da(b+12|0,4,0,0)|0|0,c,d);h=a+100|0;ea(h|0,(da(h|0,4,0,0)|0|0)+1|0,4,0);ft(a,da(b+16|0,4,0,0)|0|0,c,d);au(a);break}case 19:{Yu(a,da(b+12|0,4,0,0)|0|0,c,d);break}case 148:case 73:{g=b+12|0;e=_t(a,da(g|0,4,0,0)|0|0,k)|0;h=b+16|0;d=_t(a,da(h|0,4,0,0)|0|0,l)|0;$t(a,da(g|0,4,0,0)|0|0,da(h|0,4,0,0)|0|0,(da(b>>0|0,1,0,0)|0|0)==73?78:79,e,d,c,128);break}case 74:{Zu(a,b,c,0,d);break}case 77:case 76:{vh(h,e,_t(a,da(b+12|0,4,0,0)|0|0,k)|0,c,0)|0;break}case 71:{g=ws(h)|0;Yu(a,da(b+12|0,4,0,0)|0|0,g,d^16);e=a+100|0;ea(e|0,(da(e|0,4,0,0)|0|0)+1|0,4,0);ft(a,da(b+16|0,4,0,0)|0|0,c,d);d=da(h+24|0,4,0,0)|0|0;e=~g;if((g|0)<0?(f=da(d+112|0,4,0,0)|0|0,(f|0)!=0):0)ea(f+(e<<2)|0,da(h+32|0,4,0,0)|0|0,4,0);ea(d+88|0,(da(h+32|0,4,0,0)|0|0)+-1|0,4,0);au(a);break}case 79:case 78:case 83:case 80:case 81:case 82:{f=b+12|0;g=_t(a,da(f|0,4,0,0)|0|0,k)|0;b=b+16|0;h=_t(a,da(b|0,4,0,0)|0|0,l)|0;$t(a,da(f|0,4,0,0)|0|0,da(b|0,4,0,0)|0|0,e,g,h,c,d);break}default:{if(lu(b)|0){vh(h,16,0,c,0)|0;break a}if(!(_u(b)|0))vh(h,46,_t(a,b,k)|0,c,(d|0)!=0&1)|0}}while(0);Zr(a,da(k|0,4,0,0)|0|0);Zr(a,da(l|0,4,0,0)|0|0)}i=m;return}function gt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;e=da(a+8|0,4,0,0)|0|0;f=b+44|0;if((da(f|0,4,0,0)|0|0)!=(0-(da(b+32|0,4,0,0)|0|0)|0)?(vh(e,28,0,da(b+16|0,4,0,0)|0|0,da(b+20|0,4,0,0)|0|0)|0,(da(f|0,4,0,0)|0|0)>0):0){g=0;d=da(b+40|0,4,0,0)|0|0;while(1){b=d+12|0;do if((da(b|0,4,0,0)|0|0)>-1){c=da((da(d|0,4,0,0)|0|0)+20|0,4,0,0)|0|0;if((c|0)!=0?(da(c|0,4,0,0)|0|0)==1:0){c=Ts(a,c,0,0)|0;wh(e,vh(e,57,da(b|0,4,0,0)|0|0,0,0)|0,c,-6);break}sh(a,34944,h);ea(b|0,-1|0,4,0)}while(0);g=g+1|0;if((g|0)>=(da(f|0,4,0,0)|0|0))break;else d=d+16|0}}i=k;return}function ht(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if((b|0)>0){d=vh(a,138,b,0,-1)|0;vh(a,16,0,c,0)|0;b=da(a+32|0,4,0,0)|0|0;if(b>>>0>d>>>0)ea((da(a+4|0,4,0,0)|0|0)+(d*20|0)+8|0,b|0,4,0);ea((da(a+24|0,4,0,0)|0|0)+88|0,b+-1|0,4,0)}return}function it(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;if(((da((da(a|0,4,0,0)|0|0)+24|0,4,0,0)|0)&8388608|0)!=0?(f=zs(a,b)|0,(f|0)!=0):0){a=0;b=f;do{if((da(b+8>>0|0,1,0,1)|0|0|0)==(c|0)?($u(da(b+16|0,4,0,0)|0|0,d)|0)!=0:0)a=da(b+9>>0|0,1,0,1)|0|0|a;b=da(b+32|0,4,0,0)|0|0}while((b|0)!=0)}else{a=0;f=0}if(e)ea(e|0,a|0,4,0);return ((a|0)!=0?f:0)|0}function jt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;f=da(b+44>>0|0,1,0,0)|0|0;if(f&16){e=da(a|0,4,0,0)|0|0;d=b+60|0;while(1){d=da(d|0,4,0,0)|0|0;if((da(d|0,4,0,0)|0|0)==(e|0))break;else d=d+24|0}if(!(da((da(da(d+4|0,4,0,0)|0|0,4,0,0)|0|0)+52|0,4,0,0)|0))e=8;else e=5}else e=5;do if((e|0)==5){if(((f&1)!=0?((da((da(a|0,4,0,0)|0|0)+24|0,4,0,0)|0)&2048|0)==0:0)?(da(a+18>>0|0,1,0,0)|0|0)==0:0){e=8;break}if((c|0)==0?(da(b+12|0,4,0,0)|0|0)!=0:0){ea(g|0,da(b|0,4,0,0)|0|0,4,0);sh(a,34456,g);d=1}else d=0}while(0);if((e|0)==8){ea(g|0,da(b|0,4,0,0)|0|0,4,0);sh(a,34424,g);d=1}i=h;return d|0}function kt(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,k=0,l=0,m=0,n=0;n=i;i=i+32|0;if((i|0)>=(j|0))ba();m=n;l=da(a|0,4,0,0)|0|0;f=da(b+68|0,4,0,0)|0|0;a:do if(f){e=da(l+20|0,4,0,0)|0|0;if((e|0)>0){h=da(l+16|0,4,0,0)|0|0;k=0;while(1){g=k+1|0;if((da(h+(k<<4)+12|0,4,0,0)|0|0)==(f|0)){g=k;break a}if((g|0)<(e|0))k=g;else break}}else g=0}else g=-1e6;while(0);e=Lr(l,c,0,0)|0;f=or(l,0,0,0)|0;if(f){ea(f+16|0,jh(l,da(b|0,4,0,0)|0|0)|0|0,4,0);ea(f+12|0,jh(l,da((da(l+16|0,4,0,0)|0|0)+(g<<4)|0,4,0,0)|0|0)|0|0,4,0)}c=jr(a,0,f,e,0,0,0,0,0,0)|0;ea(m>>0|0,12|0,1,0);ea(m+4|0,d|0,4,0);ea(m+1>>0|0,0|0,1,0);ea(m+8|0,0|0,4,0);ea(m+12|0,0|0,4,0);hr(a,c,m)|0;Lk(l,c,1);i=n;return}function lt(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,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n+4|0;f=n;a:do if((da((da(a|0,4,0,0)|0|0)+24|0,4,0,0)|0)&524288){if(!c){e=an((da(b+68|0,4,0,0)|0|0)+56|0,da(b|0,4,0,0)|0|0,f)|0;if((e|0)!=0?(da(e+8|0,4,0,0)|0|0)!=0:0)e=1;else e=(da(b+16|0,4,0,0)|0|0)!=0;e=e&1;break}a=da(b+16|0,4,0,0)|0|0;if(a){k=b+36|0;l=(d|0)!=0;do{f=da(a+20|0,4,0,0)|0|0;if((f|0)>0){h=0;do{g=da(a+(h<<3)+36|0,4,0,0)|0|0;if((da(c+(g<<2)|0,4,0,0)|0|0)>-1){e=1;break a}h=h+1|0;if((g|0)==(da(k|0,2,0,0)|0|0)&l){e=1;break a}}while((h|0)<(f|0))}a=da(a+4|0,4,0,0)|0|0}while((a|0)!=0)}f=an((da(b+68|0,4,0,0)|0|0)+56|0,da(b|0,4,0,0)|0|0,m)|0;if((f|0)!=0?(e=da(f+8|0,4,0,0)|0|0,(e|0)!=0):0)while(1){if(av(b,e,c,d)|0){e=1;break a}e=da(e+12|0,4,0,0)|0|0;if(!e){e=0;break}}else e=0}else e=0;while(0);i=n;return e|0}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,i=0,j=0;if((d|0)>=0?(da(b+36|0,2,0,0)|0|0)!=(d|0):0){f=da(b+44>>0|0,1,0,1)|0|0;j=(f&16|0)!=0?150:47;if(!(f&32))f=d;else{f=da(b+8|0,4,0,0)|0|0;a:do if(!f)f=0;else while(1){if(((da(f+51>>0|0,1,0,0)|0)&3)==2)break a;f=da(f+20|0,4,0,0)|0|0;if(!f){f=0;break}}while(0);i=d&65535;g=da(f+48|0,2,0,0)|0|0;b:do if(!(g<<16>>16))f=-1;else{h=da(f+4|0,4,0,0)|0|0;g=g&65535;f=0;while(1){if((da(h+(f<<1)|0,2,0,0)|0|0)==i<<16>>16)break b;f=f+1|0;if((f|0)>=(g|0)){f=-1;break}}}while(0);f=f<<16>>16}vh(a,j,c,f,e)|0}else vh(a,103,c,e,0)|0;if((d|0)>-1)Mt(a,b,d,e);return}function nt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=b+16|0;c=da(f|0,4,0,0)|0|0;do if(!c){d=da(b+12|0,4,0,0)|0|0;c=da(a|0,4,0,0)|0|0;e=b+48|0;a=pg((da(e|0,2,0,1)|0|0)+1|0,0)|0;ea(f|0,a|0,4,0);if(!a){ea(c+65>>0|0,1|0,1,0);c=0;break}if(!(da(e|0,2,0,0)|0))c=0;else{b=b+4|0;d=d+4|0;c=0;do{a=da((da(b|0,4,0,0)|0|0)+(c<<1)|0,2,0,0)|0|0;if(a<<16>>16<0)a=68;else a=da((da(d|0,4,0,0)|0|0)+((a<<16>>16)*24|0)+21>>0|0,1,0,0)|0|0;ea((da(f|0,4,0,0)|0|0)+c>>0|0,a|0,1,0);c=c+1|0}while((c|0)<(da(e|0,2,0,1)|0|0));a=da(f|0,4,0,0)|0|0}ea(a+c>>0|0,0|0,1,0);c=da(f|0,4,0,0)|0|0}while(0);return c|0}function ot(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,k=0,l=0,m=0,n=0,o=0,p=0;p=b+44|0;if(!((da(p>>0|0,1,0,0)|0)&16)){i=da(a|0,4,0,0)|0|0;k=da(b+68|0,4,0,0)|0|0;a:do if(k){l=da(i+20|0,4,0,0)|0|0;if((l|0)>0){i=da(i+16|0,4,0,0)|0|0;j=0;while(1){h=j+1|0;if((da(i+(j<<4)+12|0,4,0,0)|0|0)==(k|0))break a;if((h|0)<(l|0))j=h;else{j=h;break}}}else j=0}else j=-1e6;while(0);o=Nq(a)|0;if((d|0)<0)d=da(a+68|0,4,0,0)|0|0;i=d+1|0;n=(f|0)!=0;if(n)ea(f|0,d|0,4,0);do if(!((da(p>>0|0,1,0,0)|0)&32)){if((e|0)!=0?(da(e>>0|0,1,0,0)|0|0)==0:0){m=15;break}Pq(a,d,j,b,c)}else m=15;while(0);if((m|0)==15)fs(a,j,da(b+32|0,4,0,0)|0|0,(c|0)==55&1,da(b|0,4,0,0)|0|0);if(g)ea(g|0,i|0,4,0);d=da(b+8|0,4,0,0)|0|0;if(!d)h=0;else{k=(e|0)==0;b=a+8|0;l=i;h=0;while(1){i=l+1|0;if(((da(d+51>>0|0,1,0,0)|0)&3)==2?((da(p>>0|0,1,0,0)|0)&32)!=0&n:0)ea(f|0,l|0,4,0);h=h+1|0;if(!(!k?(da(e+h>>0|0,1,0,0)|0|0)==0:0)){vh(o,c,l,da(d+40|0,4,0,0)|0|0,j)|0;m=da(b|0,4,0,0)|0|0;wh(m,-1,gs(a,d)|0,-6)}d=da(d+20|0,4,0,0)|0|0;if(!d)break;else l=i}}d=a+68|0;if((i|0)>(da(d|0,4,0,0)|0|0))ea(d|0,i|0,4,0)}else h=0;return h|0}function pt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=da(a+408|0,4,0,0)|0|0;f=(f|0)==0?a:f;e=f+452|0;a=da(e|0,4,0,0)|0|0;c=da(f+520|0,4,0,0)|0|0;a:do if((a|0)>0){d=0;while(1){if((da(c+(d<<2)|0,4,0,0)|0|0)==(b|0))break a;d=d+1|0;if((d|0)>=(a|0)){g=4;break}}}else g=4;while(0);do if((g|0)==4){a=Wc(c,(a<<2)+4|0)|0;if(!a){ea((da(f|0,4,0,0)|0|0)+65>>0|0,1|0,1,0);break}else{ea(f+520|0,a|0,4,0);c=da(e|0,4,0,0)|0|0;ea(e|0,c+1|0,4,0);ea(a+(c<<2)|0,b|0,4,0);break}}while(0);return}function qt(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;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;t=da(a+8|0,4,0,0)|0|0;u=ws(t)|0;r=((da(b+44>>0|0,1,0,0)|0)&32)>>>4^70;if(!(j<<24>>24))wh(t,vh(t,r,d,u,f)|0,g<<16>>16,-14);if((lt(a,b,0,0)|0)!=0|(c|0)!=0){n=i&255;o=ut(a,c,0,0,3,b,n)|0;o=tt(a,b)|0|o;l=a+72|0;k=da(l|0,4,0,0)|0|0;j=k+1|0;p=b+38|0;ea(l|0,j+(da(p|0,2,0,0)|0|0)|0,4,0);vh(t,33,f,j,0)|0;l=da(p|0,2,0,0)|0|0;if(l<<16>>16>0){q=(o|0)==-1;m=k+2|0;k=0;do{if(!q){if((k|0)<32?(1<<k&o|0)!=0:0)s=9}else s=9;if((s|0)==9){s=0;mt(t,b,d,k,m+k|0);l=da(p|0,2,0,0)|0|0}k=k+1|0}while((k|0)<(l<<16>>16|0))}q=t+32|0;p=da(q|0,4,0,0)|0|0;wt(a,c,109,0,1,b,j,n,u);if((p|0)<(da(q|0,4,0,0)|0|0))wh(t,vh(t,r,d,u,f)|0,g<<16>>16,-14);yt(a,b,j,0,0,0)}else j=0;if((da(b+12|0,4,0,0)|0|0)==0?(zt(a,b,d,e,0),vh(t,95,d,h<<24>>24!=0&1,0)|0,h<<24>>24!=0):0)wh(t,-1,da(b|0,4,0,0)|0|0,0);Bt(a,b,0,j,0,0);wt(a,c,109,0,2,b,j,i&255,u);k=da(t+24|0,4,0,0)|0|0;j=~u;if((u|0)<0?(v=da(k+112|0,4,0,0)|0|0,(v|0)!=0):0)ea(v+(j<<2)|0,da(t+32|0,4,0,0)|0|0,4,0);ea(k+88|0,(da(t+32|0,4,0,0)|0|0)+-1|0,4,0);return}function rt(a){a=a|0;var 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;h=da(a+8|0,4,0,0)|0|0;b=da(a+404|0,4,0,0)|0|0;if(b){j=(da(a|0,4,0,0)|0|0)+16|0;k=a+19|0;l=a+72|0;m=h+32|0;n=h+4|0;i=h+24|0;do{d=da(b+8|0,4,0,0)|0|0;e=da(j|0,4,0,0)|0|0;g=da(b+12|0,4,0,0)|0|0;c=da(k>>0|0,1,0,0)|0|0;if(!(c<<24>>24)){f=(da(l|0,4,0,0)|0|0)+1|0;ea(l|0,f|0,4,0)}else{f=c+-1<<24>>24;ea(k>>0|0,f|0,1,0);f=da(a+((f&255)<<2)+24|0,4,0,0)|0|0}Pq(a,0,d,da((da(e+(d<<4)+12|0,4,0,0)|0|0)+72|0,4,0,0)|0|0,55);e=g+1|0;d=vh(h,77,e,0,0)|0;vh(h,74,0,e,0)|0;c=da(m|0,4,0,0)|0|0;if(c>>>0>d>>>0)ea((da(n|0,4,0,0)|0|0)+(d*20|0)+8|0,c|0,4,0);ea((da(i|0,4,0,0)|0|0)+88|0,c+-1|0,4,0);vh(h,49,g+-1|0,2,f)|0;vh(h,75,0,f,e)|0;c=da(n|0,4,0,0)|0|0;if(c)ea(c+(((da(m|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,8|0,1,0);vh(h,61,0,0,0)|0;Zr(a,f);b=da(b|0,4,0,0)|0|0}while((b|0)!=0)}return}function st(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;ea(e|0,c|0,4,0);if(!c)d=0;else{d=c;while(1)if(!(da(d>>0|0,1,0,0)|0))break;else d=d+1|0;d=d-c&1073741823}ea(e+4|0,d|0,4,0);d=mr(a,b,e,0)|0;i=f;return d|0}function tt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();g=m+4|0;l=m;if((da((da(a|0,4,0,0)|0|0)+24|0,4,0,0)|0)&524288){d=da(b+16|0,4,0,0)|0|0;if(!d)c=0;else{c=0;do{e=da(d+20|0,4,0,0)|0|0;if((e|0)>0){f=0;do{n=da(d+(f<<3)+36|0,4,0,0)|0|0;c=((n|0)>31?-1:1<<n)|c;f=f+1|0}while((f|0)<(e|0))}d=da(d+4|0,4,0,0)|0|0}while((d|0)!=0)}d=an((da(b+68|0,4,0,0)|0|0)+56|0,da(b|0,4,0,0)|0|0,g)|0;if((d|0)!=0?(h=da(d+8|0,4,0,0)|0|0,(h|0)!=0):0)do{ea(l|0,0|0,4,0);Lt(a,b,h,l,0)|0;d=da(l|0,4,0,0)|0|0;if((d|0)!=0?(k=da(d+46|0,2,0,0)|0|0,k<<16>>16!=0):0){g=k&65535;f=da(d+4|0,4,0,0)|0|0;e=0;do{d=da(f+(e<<1)|0,2,0,0)|0|0;if(d<<16>>16>31)d=-1;else d=1<<(d<<16>>16);c=d|c;e=e+1|0}while((e|0)<(g|0))}h=da(h+12|0,4,0,0)|0|0}while((h|0)!=0)}else c=0;i=m;return c|0}function ut(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;i=(c|0)!=0?110:109;if(!b)h=0;else{h=0;do{if((((da(b+8>>0|0,1,0,1)|0|0|0)==(i|0)?((da(b+9>>0|0,1,0,1)|0|0)&e|0)!=0:0)?($u(da(b+16|0,4,0,0)|0|0,c)|0)!=0:0)?(j=bv(a,b,f,g)|0,(j|0)!=0):0)h=da(j+(d<<2)+16|0,4,0,0)|0|h;b=da(b+32|0,4,0,0)|0|0}while((b|0)!=0)}return h|0}function vt(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;i=b+20|0;d=da(i|0,4,0,0)|0|0;do if(!d){f=da(a|0,4,0,0)|0|0;h=b+38|0;e=(da(h|0,2,0,0)|0|0)+1|0;e=pg(e,((e|0)<0)<<31>>31)|0;if(!e){ea(f+65>>0|0,1|0,1,0);break}if((da(h|0,2,0,0)|0|0)>0){f=b+4|0;d=0;do{ea(e+d>>0|0,da((da(f|0,4,0,0)|0|0)+(d*24|0)+21>>0|0,1,0,0)|0|0|0,1,0);d=d+1|0}while((d|0)<(da(h|0,2,0,0)|0|0))}else d=0;do{ea(e+d>>0|0,0|0,1,0);if((d|0)<=0)break;d=d+-1|0}while((da(e+d>>0|0,1,0,0)|0|0)==65);ea(i|0,e|0,4,0);g=10}else{e=d;g=10}while(0);do if((g|0)==10){d=e;while(1)if(!(da(d>>0|0,1,0,0)|0))break;else d=d+1|0;d=d-e&1073741823;if(d)if(!c){wh(a,-1,e,d);break}else{wh(a,vh(a,48,c,d,0)|0,e,d);break}}while(0);return}function wt(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;if(b)do{if(((da(b+8>>0|0,1,0,1)|0|0|0)==(c|0)?(da(b+9>>0|0,1,0,1)|0|0|0)==(e|0):0)?($u(da(b+16|0,4,0,0)|0|0,d)|0)!=0:0)cv(a,b,f,g,h,i);b=da(b+32|0,4,0,0)|0|0}while((b|0)!=0);return}function xt(a,b,c,d,e,f,g,h,k,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;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,fa=0,ga=0,ha=0,ia=0,ja=0;ja=i;i=i+16|0;if((i|0)>=(j|0))ba();E=ja;aa=(g|0)!=0;J=da(a|0,4,0,0)|0|0;ia=Nq(a)|0;w=da(b+38|0,2,0,0)|0|0;ga=b+44|0;if(!((da(ga>>0|0,1,0,0)|0)&32)){$=1;_=0}else{q=b+8|0;while(1){q=da(q|0,4,0,0)|0|0;if(((da(q+51>>0|0,1,0,0)|0)&3)==2)break;else q=q+20|0}$=da(q+46|0,2,0,1)|0|0;_=q}if(w<<16>>16>0){s=b+36|0;r=b+4|0;q=k<<24>>24==10;p=a+408|0;o=f+1|0;x=ia+4|0;y=ia+32|0;z=ia+24|0;A=k&255;u=w<<16>>16;t=0;do{a:do if((t|0)!=(da(s|0,2,0,0)|0|0)?(B=da(r|0,4,0,0)|0|0,C=da(B+(t*24|0)+20>>0|0,1,0,0)|0|0,D=C&255,C<<24>>24!=0):0){if(q)if(C<<24>>24==10)ha=14;else{w=D;ha=11}else{w=A;ha=11}do if((ha|0)==11){ha=0;if((w|0)==5)w=(da(B+(t*24|0)+4|0,4,0,0)|0|0)==0?2:5;if((w|0)==3|(w|0)==1)break;else if((w|0)==2){ha=14;break}else if((w|0)==4){vh(ia,76,o+t|0,l,0)|0;break a}v=o+t|0;w=vh(ia,77,v,0,0)|0;Qq(a,da((da(r|0,4,0,0)|0|0)+(t*24|0)+4|0,4,0,0)|0|0,v);v=da(y|0,4,0,0)|0|0;if(v>>>0>w>>>0)ea((da(x|0,4,0,0)|0|0)+(w*20|0)+8|0,v|0,4,0);ea((da(z|0,4,0,0)|0|0)+88|0,v+-1|0,4,0);break a}while(0);if((ha|0)==14){ha=0;w=da(p|0,4,0,0)|0|0;ea(((w|0)==0?a:w)+21>>0|0,1|0,1,0);w=2}Z=da(B+(t*24|0)|0,4,0,0)|0|0;ea(E|0,da(b|0,4,0,0)|0|0,4,0);ea(E+4|0,Z|0,4,0);Z=th(J,27824,E)|0;wh(ia,vh(ia,23,1299,w,o+t|0)|0,Z,-1);w=da(x|0,4,0,0)|0|0;if(w)ea(w+(((da(y|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,1|0,1,0)}while(0);t=t+1|0}while((t|0)!=(u|0))}t=da(b+24|0,4,0,0)|0|0;if(((t|0)!=0?((da(J+24|0,4,0,0)|0)&8192|0)==0:0)?(ea(a+92|0,f+1|0,4,0),(da(t|0,4,0,0)|0|0)>0):0){s=t+4|0;o=ia+24|0;u=ia+32|0;w=0;q=k<<24>>24==10?2:k&255;while(1){v=ws(ia)|0;Yu(a,da((da(s|0,4,0,0)|0|0)+(w*20|0)|0,4,0,0)|0|0,v,16);if((q|0)==4){vh(ia,16,0,l,0)|0;p=4}else{r=da((da(s|0,4,0,0)|0|0)+(w*20|0)+4|0,4,0,0)|0|0;if(!r)r=da(b|0,4,0,0)|0|0;p=(q|0)==5?2:q;ys(a,275,p,r,0,3)}r=da(o|0,4,0,0)|0|0;q=~v;if((v|0)<0?(F=da(r+112|0,4,0,0)|0|0,(F|0)!=0):0)ea(F+(q<<2)|0,da(u|0,4,0,0)|0|0,4,0);ea(r+88|0,(da(u|0,4,0,0)|0|0)+-1|0,4,0);w=w+1|0;if((w|0)>=(da(t|0,4,0,0)|0|0))break;else q=p}}if(h<<24>>24!=0&(_|0)==0){s=ws(ia)|0;o=da(b+45>>0|0,1,0,0)|0|0;if(k<<24>>24==10)o=o<<24>>24==10?2:o&255;else o=k&255;if(aa?(vh(ia,79,f,s,g)|0,G=da(ia+4|0,4,0,0)|0|0,(G|0)!=0):0)ea(G+(((da(ia+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,-112|0,1,0);b:do if(!((o|0)!=5|k<<24>>24==5)?(n=da(b+8|0,4,0,0)|0|0,(n|0)!=0):0){while(1){if(((da(n+50>>0|0,1,0,0)|0|0)+-3&255)<2)break;n=da(n+20|0,4,0,0)|0|0;if(!n){t=0;break b}}t=vh(ia,16,0,0,0)|0}else t=0;while(0);vh(ia,70,d,s,f)|0;c:do switch(o|0){case 4:{vh(ia,16,0,l,0)|0;o=0;break}case 3:case 2:case 1:{ha=49;break}case 5:{if(((da(J+24|0,4,0,0)|0)&262144|0)!=0?(H=it(a,b,109,0,0)|0,(H|0)!=0):0)o=H;else if(!(lt(a,b,0,0)|0)){if(!(da(b+8|0,4,0,0)|0)){o=1;break c}o=da(a+408|0,4,0,0)|0|0;ea(((o|0)==0?a:o)+20>>0|0,1|0,1,0);zt(a,b,d,e,0);o=1;break c}else o=0;Z=da(a+408|0,4,0,0)|0|0;ea(((Z|0)==0?a:Z)+20>>0|0,1|0,1,0);qt(a,b,o,d,e,f,1,0,5,1);o=1;break}default:{o=2;ha=49}}while(0);if((ha|0)==49){Et(a,o,b);o=0}r=ia+24|0;q=da(r|0,4,0,0)|0|0;p=~s;if((s|0)<0?(I=da(q+112|0,4,0,0)|0|0,(I|0)!=0):0)ea(I+(p<<2)|0,da(ia+32|0,4,0,0)|0|0,4,0);n=ia+32|0;ea(q+88|0,(da(n|0,4,0,0)|0|0)+-1|0,4,0);if(!t){p=0;t=0}else{p=vh(ia,16,0,0,0)|0;n=da(n|0,4,0,0)|0|0;if(n>>>0>t>>>0)ea((da(ia+4|0,4,0,0)|0|0)+(t*20|0)+8|0,n|0,4,0);ea((da(r|0,4,0,0)|0|0)+88|0,n+-1|0,4,0)}}else{p=0;t=0;o=0}w=da(b+8|0,4,0,0)|0|0;if(w){W=f+1|0;X=a+60|0;Y=a+56|0;Z=a+72|0;M=h<<24>>24==0;N=ia+24|0;O=ia+32|0;P=k<<24>>24==10;Q=ia+4|0;R=_+46|0;S=_+32|0;T=_+4|0;U=g+1|0;V=a+408|0;K=J+24|0;L=$&65535;s=k&255;r=b+36|0;q=a+92|0;A=0;n=0;v=-1;while(1){H=c+(n<<2)|0;do if(da(H|0,4,0,0)|0){if(!(A<<24>>24)){vt(ia,b,W);A=1}I=n+e|0;k=ws(ia)|0;G=w+36|0;if(da(G|0,4,0,0)|0){vh(ia,28,0,da(H|0,4,0,0)|0|0,0)|0;ea(q|0,W|0,4,0);ft(a,da(G|0,4,0,0)|0|0,k,16);ea(q|0,0|0,4,0)}J=w+48|0;B=da(J|0,2,0,0)|0|0;E=B&65535;D=da(X|0,4,0,0)|0|0;C=da(Y|0,4,0,0)|0|0;if((C|0)<(E|0)){h=da(Z|0,4,0,0)|0|0;ea(Z|0,h+E|0,4,0);h=h+1|0}else{ea(X|0,D+E|0,4,0);ea(Y|0,C-E|0,4,0);h=D}if(!(B<<16>>16))F=v;else{z=w+4|0;F=0;do{E=da((da(z|0,4,0,0)|0|0)+(F<<1)|0,2,0,0)|0|0;C=E<<16>>16;if(E<<16>>16>=0?E<<16>>16!=(da(r|0,2,0,0)|0|0):0){D=F+h|0;E=W+C|0;ha=81}else{E=F+h|0;if((v|0)!=(E|0)){D=E;v=(da(G|0,4,0,0)|0|0)==0?E:-1;E=f;ha=81}}if((ha|0)==81){ha=0;vh(ia,34,E,D,0)|0;B=da(J|0,2,0,0)|0|0}F=F+1|0;E=B&65535}while((F|0)<(E|0));F=v}vh(ia,49,h,E,da(H|0,4,0,0)|0|0)|0;ct(a,h,da(J|0,2,0,1)|0|0);G=(_|0)==(w|0);if(aa&G&M){v=da(N|0,4,0,0)|0|0;u=~k;if((k|0)<0?(ca=da(v+112|0,4,0,0)|0|0,(ca|0)!=0):0)ea(ca+(u<<2)|0,da(O|0,4,0,0)|0|0,4,0);ea(v+88|0,(da(O|0,4,0,0)|0|0)+-1|0,4,0);v=F;break}z=da(w+50>>0|0,1,0,0)|0|0;y=z&255;if(!(z<<24>>24)){v=da(J|0,2,0,1)|0|0;ct(a,h,v);if((da(Y|0,4,0,0)|0|0)<(v|0)){ea(Y|0,v|0,4,0);ea(X|0,h|0,4,0)}v=da(N|0,4,0,0)|0|0;u=~k;if((k|0)<0?(fa=da(v+112|0,4,0,0)|0|0,(fa|0)!=0):0)ea(fa+(u<<2)|0,da(O|0,4,0,0)|0|0,4,0);ea(v+88|0,(da(O|0,4,0,0)|0|0)+-1|0,4,0);v=F;break}if(P)H=z<<24>>24==10?2:y;else H=s;v=da(w+46|0,2,0,1)|0|0;wh(ia,vh(ia,67,I,k,h)|0,v,-14);do if(!G){E=da(X|0,4,0,0)|0|0;D=da(Y|0,4,0,0)|0|0;if((D|0)<($|0)){E=da(Z|0,4,0,0)|0|0;ea(Z|0,E+$|0,4,0);E=E+1|0;break}else{ea(X|0,E+$|0,4,0);ea(Y|0,D-$|0,4,0);break}}else E=h;while(0);do if(aa|(H|0)==5){if(!((da(ga>>0|0,1,0,0)|0)&32)){vh(ia,112,I,E,0)|0;if(!aa)break;vh(ia,79,E,k,g)|0;z=da(Q|0,4,0,0)|0|0;if(!z)break;ea(z+(((da(O|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,-112|0,1,0);break}do if(!G){if(!(da(R|0,2,0,0)|0))break;y=w+4|0;x=0;do{B=da((da(T|0,4,0,0)|0|0)+(x<<1)|0,2,0,0)|0|0;D=da(J|0,2,0,0)|0|0;d:do if(!(D<<16>>16))D=-1;else{z=da(y|0,4,0,0)|0|0;C=D&65535;D=0;while(1){if((da(z+(D<<1)|0,2,0,0)|0|0)==B<<16>>16)break d;D=D+1|0;if((D|0)>=(C|0)){D=-1;break}}}while(0);vh(ia,47,I,D<<16>>16,x+E|0)|0;x=x+1|0}while((x|0)<(da(R|0,2,0,1)|0|0))}while(0);if(!aa)break;y=((da(w+51>>0|0,1,0,0)|0)&3)==2?h:E;D=da(R|0,2,0,0)|0|0;if(!(D<<16>>16))break;C=(D&65535)+(da(O|0,4,0,0)|0|0)|0;B=0;z=78;do{D=br(a,da((da(S|0,4,0,0)|0|0)+(B<<2)|0,4,0,0)|0|0)|0;v=(B|0)==((da(R|0,2,0,1)|0|0)+-1|0);C=v?k:C;z=v?79:z;wh(ia,vh(ia,z,U+(da((da(T|0,4,0,0)|0|0)+(B<<1)|0,2,0,0)|0|0)|0,C,B+y|0)|0,D,-4);D=da(Q|0,4,0,0)|0|0;if(D)ea(D+(((da(O|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,-112|0,1,0);B=B+1|0}while((B|0)<(da(R|0,2,0,1)|0|0))}while(0);if((H|0)==3|(H|0)==2|(H|0)==1)mu(a,H,w);else if((H|0)==4)vh(ia,16,0,l,0)|0;else{v=da(V|0,4,0,0)|0|0;ea(((v|0)==0?a:v)+20>>0|0,1|0,1,0);if(!((da(K|0,4,0,0)|0)&262144))z=0;else z=it(a,b,109,0,0)|0;qt(a,b,z,d,e,E,L,0,5,G&1);o=1}D=da(N|0,4,0,0)|0|0;C=~k;do if((k|0)<0){z=da(D+112|0,4,0,0)|0|0;if(!z)break;ea(z+(C<<2)|0,da(O|0,4,0,0)|0|0,4,0)}while(0);ea(D+88|0,(da(O|0,4,0,0)|0|0)+-1|0,4,0);v=da(J|0,2,0,1)|0|0;ct(a,h,v);if((da(Y|0,4,0,0)|0|0)<(v|0)){ea(Y|0,v|0,4,0);ea(X|0,h|0,4,0)}if((E|0)==(h|0)){v=F;break}ct(a,E,$);if((da(Y|0,4,0,0)|0|0)>=($|0)){v=F;break}ea(Y|0,$|0,4,0);ea(X|0,E|0,4,0);v=F}while(0);w=da(w+20|0,4,0,0)|0|0;if(!w)break;else n=n+1|0}}if(t){vh(ia,16,0,t+1|0,0)|0;n=da(ia+32|0,4,0,0)|0|0;if(n>>>0>p>>>0)ea((da(ia+4|0,4,0,0)|0|0)+(p*20|0)+8|0,n|0,4,0);ea((da(ia+24|0,4,0,0)|0|0)+88|0,n+-1|0,4,0)}ea(m|0,o|0,4,0);i=ja;return}function yt(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0;V=i;i=i+32|0;if((i|0)>=(j|0))ba();M=V+20|0;K=V+16|0;I=V+12|0;J=V+8|0;T=V+4|0;S=V;O=da(a|0,4,0,0)|0|0;H=a+438|0;N=da(H>>0|0,1,0,0)|0|0;R=O+24|0;a:do if((da(R|0,4,0,0)|0)&524288){L=b+68|0;g=da(L|0,4,0,0)|0|0;b:do if(g){k=da(O+20|0,4,0,0)|0|0;if((k|0)>0){h=da(O+16|0,4,0,0)|0|0;n=0;while(1){m=n+1|0;if((da(h+(n<<4)+12|0,4,0,0)|0|0)==(g|0)){m=n;break b}if((m|0)<(k|0))n=m;else break}}else m=0}else m=-1e6;while(0);G=da((da(O+16|0,4,0,0)|0|0)+(m<<4)|0,4,0,0)|0|0;t=da(b+16|0,4,0,0)|0|0;if(!t)h=b;else{v=(e|0)==0;w=N<<24>>24==0;x=O+65|0;y=c+1|0;z=a+68|0;A=(c|0)==0;B=(d|0)==0;C=a+408|0;D=b+36|0;E=O+284|0;F=(f|0)!=0;u=t;do{ea(K|0,0|0,4,0);ea(I|0,0|0,4,0);c:do if(!v){t=da(u+8|0,4,0,0)|0|0;if(cd(da(b|0,4,0,0)|0|0,t)|0){s=da(u+20|0,4,0,0)|0|0;if((s|0)>0){h=0;do{g=da(u+(h<<3)+36|0,4,0,0)|0|0;if((da(e+(g<<2)|0,4,0,0)|0|0)>-1){U=17;break c}h=h+1|0;if((g|0)==(da(D|0,2,0,0)|0|0)&F){U=17;break c}}while((h|0)<(s|0))}}else U=17}else{t=da(u+8|0,4,0,0)|0|0;U=17}while(0);do if((U|0)==17){U=0;if(!(da(H>>0|0,1,0,0)|0))r=rh(a,0,t,G)|0;else r=Zh(O,t,G)|0;t=(r|0)==0;if(!t?(Lt(a,r,u,K,I)|0)==0:0){t=da(I|0,4,0,0)|0|0;if(!t){ea(J|0,da(u+36|0,4,0,0)|0|0,4,0);t=J}h=u+20|0;if((da(h|0,4,0,0)|0|0)>0){p=da(K|0,4,0,0)|0|0;k=(p|0)==0;n=r+36|0;o=r+4|0;p=p+4|0;g=0;q=0;do{s=t+(q<<2)|0;if((da(s|0,4,0,0)|0|0)==(da(D|0,2,0,0)|0|0))ea(s|0,-1|0,4,0);if(da(E|0,4,0,0)|0){if(k)s=n;else s=(da(p|0,4,0,0)|0|0)+(q<<1)|0;g=(dv(a,da(r|0,4,0,0)|0|0,da((da(o|0,4,0,0)|0|0)+((da(s|0,2,0,0)|0|0)*24|0)|0,4,0,0)|0|0,m)|0)==2&1}q=q+1|0}while((q|0)<(da(h|0,4,0,0)|0|0));s=r}else{s=r;g=0}fs(a,m,da(r+32|0,4,0,0)|0|0,0,da(s|0,4,0,0)|0|0);ea(z|0,(da(z|0,4,0,0)|0|0)+1|0,4,0);if(!A)ev(a,m,r,da(K|0,4,0,0)|0|0,u,t,c,-1,g);d:do if(!B){s=da(C|0,4,0,0)|0|0;s=da(((s|0)==0?a:s)+528|0,4,0,0)|0|0;do if(s){s=da(s|0,4,0,0)|0|0;if((s|0)==(da(u+28|0,4,0,0)|0|0)?(da(u+25>>0|0,1,0,0)|0|0)==7:0)break d;if((s|0)!=(da(u+32|0,4,0,0)|0|0))break;if((da(u+26>>0|0,1,0,0)|0|0)==7)break d}while(0);ev(a,m,r,da(K|0,4,0,0)|0|0,u,t,d,1,g)}while(0);lg(O,da(I|0,4,0,0)|0|0);break}if(w)break a;if(da(x>>0|0,1,0,0)|0)break a;if(t){t=Nq(a)|0;s=u+20|0;h=da(s|0,4,0,0)|0|0;g=(da(t+32|0,4,0,0)|0|0)+1+h|0;if((h|0)>0){h=0;do{vh(t,76,y+(da(u+(h<<3)+36|0,4,0,0)|0|0)|0,g,0)|0;h=h+1|0}while((h|0)<(da(s|0,4,0,0)|0|0))}vh(t,134,da(u+24>>0|0,1,0,1)|0|0,-1,0)|0}}while(0);u=da(u+4|0,4,0,0)|0|0}while((u|0)!=0);h=b;g=da(L|0,4,0,0)|0|0}g=an(g+56|0,da(h|0,4,0,0)|0|0,M)|0;if((g|0)!=0?(l=da(g+8|0,4,0,0)|0|0,P=O+65|0,(l|0)!=0):0){n=(e|0)!=0;o=a+408|0;p=a+20|0;q=a+68|0;r=(d|0)==0;s=(c|0)==0;t=n&1;m=N<<24>>24==0;do{ea(T|0,0|0,4,0);ea(S|0,0|0,4,0);if(!(n?(av(b,l,e,f)|0)==0:0))U=57;do if((U|0)==57){U=0;h=l+24|0;if((((da(h>>0|0,1,0,0)|0|0)==0?((da(R|0,4,0,0)|0)&16777216|0)==0:0)?(da(o|0,4,0,0)|0|0)==0:0)?(da(p>>0|0,1,0,0)|0|0)==0:0)break;if(Lt(a,b,l,T,S)|0){if(m)break a;if(!(da(P>>0|0,1,0,0)|0))break;else break a}g=or(O,0,0,0)|0;if(g){D=da(l|0,4,0,0)|0|0;ea(g+24|0,D|0,4,0);k=g+16|0;ea(k|0,da(D|0,4,0,0)|0|0,4,0);D=D+40|0;ea(D|0,(da(D|0,2,0,0)|0|0)+1<<16>>16|0,2,0);D=da(q|0,4,0,0)|0|0;ea(q|0,D+1|0,4,0);ea(g+48|0,D|0,4,0);if(!r)fv(a,g,b,da(T|0,4,0,0)|0|0,l,da(S|0,4,0,0)|0|0,d,-1);if((!s?(Q=da(l+t+25>>0|0,1,0,0)|0|0,fv(a,g,b,da(T|0,4,0,0)|0|0,l,da(S|0,4,0,0)|0|0,c,1),(da(h>>0|0,1,0,0)|0|0)==0):0)?!(Q<<24>>24==7|Q<<24>>24==9):0){D=da(o|0,4,0,0)|0|0;ea(((D|0)==0?a:D)+21>>0|0,1|0,1,0)}ea(k|0,0|0,4,0);Co(O,g)}lg(O,da(S|0,4,0,0)|0|0)}while(0);l=da(l+12|0,4,0,0)|0|0}while((l|0)!=0)}}while(0);i=V;return}function zt(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,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+16|0;if((i|0)>=(j|0))ba();o=p;n=da(a+8|0,4,0,0)|0|0;g=da(b+8|0,4,0,0)|0|0;a:do if((da(b+44>>0|0,1,0,0)|0)&32){if(g){f=g;while(1){if(((da(f+51>>0|0,1,0,0)|0)&3)==2){m=5;break a}f=da(f+20|0,4,0,0)|0|0;if(!f){f=0;m=5;break}}}}else{f=0;m=5}while(0);if((m|0)==5?(g|0)!=0:0){k=(e|0)==0;l=0;h=0;b=-1;while(1){if(k){if((g|0)!=(f|0))m=10}else if(!((g|0)==(f|0)?1:(da(e+(l<<2)|0,4,0,0)|0|0)==0))m=10;if((m|0)==10){m=0;b=Ot(a,g,c,0,1,o,h,b)|0;vh(n,111,l+d|0,b,da((((da(g+51>>0|0,1,0,0)|0)&8)==0?g+48|0:g+46|0)|0,2,0,1)|0|0)|0;Pt(a,da(o|0,4,0,0)|0|0);h=g}g=da(g+20|0,4,0,0)|0|0;if(!g)break;else l=l+1|0}}i=p;return}function At(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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;t=Nq(a)|0;n=da(b+8|0,4,0,0)|0|0;if(!n){k=b+44|0;m=0}else{o=(i|0)!=0;k=b+44|0;p=o?17:1;q=t+4|0;r=t+32|0;m=0;s=0;j=n;while(1){l=f+(s<<2)|0;n=da(l|0,4,0,0)|0|0;do if(n){if(da(j+36|0,4,0,0)|0){vh(t,76,n,(da(r|0,4,0,0)|0|0)+2|0,0)|0;n=da(l|0,4,0,0)|0|0}vh(t,110,s+d|0,n,0)|0;if(((da(j+51>>0|0,1,0,0)|0)&3)==2){n=((da(k>>0|0,1,0,0)|0)&32)!=0;if(n|o)m=n?p:16;else{m=1;break}}else if(o)m=16;else{m=1;break}n=da(q|0,4,0,0)|0|0;if(!n)m=1;else{ea(n+(((da(r|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,m|0,1,0);m=1}}while(0);j=da(j+20|0,4,0,0)|0|0;if(!j)break;else s=s+1|0}}if(!((da(k>>0|0,1,0,0)|0)&32)){l=e+1|0;k=a+19|0;j=da(k>>0|0,1,0,0)|0|0;if(!(j<<24>>24)){f=a+72|0;n=(da(f|0,4,0,0)|0|0)+1|0;ea(f|0,n|0,4,0)}else{n=j+-1<<24>>24;ea(k>>0|0,n|0,1,0);n=da(a+((n&255)<<2)+24|0,4,0,0)|0|0}k=b+38|0;vh(t,49,l,da(k|0,2,0,0)|0|0,n)|0;if(!(m<<24>>24))vt(t,b,0);ct(a,l,da(k|0,2,0,0)|0|0);l=a+18|0;if(!(da(l>>0|0,1,0,0)|0))j=(g|0)!=0?5:3;else j=0;if(h)j=(j&255|8)&255;if(!i)k=j;else k=(j&255|16)&255;vh(t,75,c,n,e)|0;if(!(da(l>>0|0,1,0,0)|0))wh(t,-1,da(b|0,4,0,0)|0|0,0);j=da(t+4|0,4,0,0)|0|0;if(j)ea(j+(((da(t+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,k|0,1,0)}return}function Bt(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0;V=i;i=i+64|0;if((i|0)>=(j|0))ba();O=V+52|0;N=V+48|0;S=V+8|0;R=V;Q=V+40|0;T=V+32|0;P=V+24|0;if((((da((da(a|0,4,0,0)|0|0)+24|0,4,0,0)|0)&524288|0)!=0?(M=b+68|0,g=an((da(M|0,4,0,0)|0|0)+56|0,da(b|0,4,0,0)|0|0,V+16|0)|0,(g|0)!=0):0)?(h=da(g+8|0,4,0,0)|0|0,(h|0)!=0):0){L=(e|0)==0;E=(c|0)!=0;F=E&1;G=T+4|0;H=Q+4|0;I=b+4|0;J=P+4|0;K=E?110:109;do{if(!(!L?(av(b,h,e,f)|0)==0:0)){B=da(a|0,4,0,0)|0|0;A=da(h+F+25>>0|0,1,0,0)|0|0;C=A&255;D=h+(F<<2)+28|0;c=da(D|0,4,0,0)|0|0;do if(!(A<<24>>24==0|(c|0)!=0)){ea(O|0,0|0,4,0);ea(N|0,0|0,4,0);if(!(Lt(a,b,h,O,N)|0)){o=h+20|0;if((da(o|0,4,0,0)|0|0)>0){u=34352;t=da(u|0,4,0,0)|0|0;u=da(u+4|0,4,0,0)|0|0;w=34360;v=da(w|0,4,0,0)|0|0;w=da(w+4|0,4,0,0)|0|0;x=h+36|0;z=A<<24>>24!=6&(A<<24>>24!=9|E);y=0;l=0;g=0;k=0;do{c=S;ea(c|0,t|0,4,0);ea(c+4|0,u|0,4,0);c=R;ea(c|0,v|0,4,0);ea(c+4|0,w|0,4,0);c=da(N|0,4,0,0)|0|0;if(!c)c=x;else c=c+(y<<2)|0;n=da(c|0,4,0,0)|0|0;p=da(O|0,4,0,0)|0|0;if(!p)r=34368;else r=da((da(I|0,4,0,0)|0|0)+((da((da(p+4|0,4,0,0)|0|0)+(y<<1)|0,2,0,0)|0|0)*24|0)|0,4,0,0)|0|0;ea(T|0,r|0,4,0);c=da((da((da(h|0,4,0,0)|0|0)+4|0,4,0,0)|0|0)+(n*24|0)|0,4,0,0)|0|0;ea(Q|0,c|0,4,0);if(!r)q=0;else{s=r;while(1)if(!(da(s>>0|0,1,0,0)|0))break;else s=s+1|0;q=s-r&1073741823}ea(G|0,q|0,4,0);if(!c)m=0;else{r=c;while(1)if(!(da(r>>0|0,1,0,0)|0))break;else r=r+1|0;m=r-c&1073741823}ea(H|0,m|0,4,0);s=Yq(a,27,0,0,S)|0;s=Yq(a,122,s,Yq(a,27,0,0,T)|0,0)|0;k=rs(B,k,Yq(a,79,s,Yq(a,27,0,0,Q)|0,0)|0)|0;if(E){r=Yq(a,27,0,0,S)|0;r=Yq(a,122,r,Yq(a,27,0,0,T)|0,0)|0;s=Yq(a,27,0,0,R)|0;g=rs(B,g,Yq(a,73,r,Yq(a,122,s,Yq(a,27,0,0,T)|0,0)|0,0)|0)|0}if(z){do if(A<<24>>24==9){c=Yq(a,27,0,0,R)|0;c=Yq(a,122,c,Yq(a,27,0,0,T)|0,0)|0}else if(A<<24>>24==8){c=da((da((da(h|0,4,0,0)|0|0)+4|0,4,0,0)|0|0)+(n*24|0)+4|0,4,0,0)|0|0;if(!c){c=Yq(a,101,0,0,0)|0;break}else{c=Lr(B,c,0,0)|0;break}}else c=Yq(a,101,0,0,0)|0;while(0);l=kr(a,l,c)|0;lr(a,l,Q,0)}y=y+1|0}while((y|0)<(da(o|0,4,0,0)|0|0));c=h}else{c=h;l=0;g=0;k=0}lg(B,da(N|0,4,0,0)|0|0);s=da(da(c|0,4,0,0)|0|0,4,0,0)|0|0;if(!s)m=0;else{c=s;while(1)if(!(da(c>>0|0,1,0,0)|0))break;else c=c+1|0;m=c-s&1073741823}if(A<<24>>24==6){ea(P|0,s|0,4,0);ea(J|0,m|0,4,0);c=st(B,57,34376)|0;if(c)ea(c+1>>0|0,2|0,1,0);r=kr(a,0,c)|0;r=jr(a,r,or(B,0,P,0)|0,k,0,0,0,0,0,0)|0;q=0}else{r=0;q=k}n=B+250|0;o=da(n>>0|0,1,0,0)|0|0;ea(n>>0|0,0|0,1,0);c=m+77|0;p=lh(B,c,0)|0;if(p){ew(p|0,0,c|0)|0;k=p+36|0;ea(p+28|0,k|0,4,0);A=p+76|0;ea(p+48|0,A|0,4,0);ea(p+52|0,m|0,4,0);jw(A|0,s|0,m|0)|0;ea(p+56|0,Lr(B,q,1,0)|0|0,4,0);ea(p+60|0,Or(B,l,1)|0|0,4,0);ea(p+44|0,fr(B,r,1)|0|0,4,0);if(!g){c=p;g=0}else{g=Yq(a,19,g,0,0)|0;ea(p+12|0,Lr(B,g,1,0)|0|0,4,0);c=p}}else{c=0;k=0}ea(n>>0|0,o|0,1,0);Fk(B,q);Fk(B,g);Mk(B,l);Lk(B,r,1);if((da(B+65>>0|0,1,0,0)|0|0)==1){Jk(B,c);c=0;break}if((C|0)==6)ea(k>>0|0,119|0,1,0);else if((C|0)==9?!E:0)ea(k>>0|0,109|0,1,0);else U=49;if((U|0)==49){U=0;ea(k>>0|0,110|0,1,0)}ea(k+4|0,c|0,4,0);C=da(M|0,4,0,0)|0|0;ea(p+20|0,C|0,4,0);ea(p+24|0,C|0,4,0);ea(D|0,c|0,4,0);ea(p+8>>0|0,K|0,1,0)}else c=0}while(0);if(c)cv(a,c,b,d,2,0)}h=da(h+12|0,4,0,0)|0|0}while((h|0)!=0)}i=V;return}function Ct(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,k=0,l=0,m=0;c=da(a+46|0,2,0,0)|0|0;a:do if(c<<16>>16==(da(b+46|0,2,0,0)|0|0)?(da(a+50>>0|0,1,0,0)|0|0)==(da(b+50>>0|0,1,0,0)|0|0):0){if(c<<16>>16){d=da(b+4|0,4,0,0)|0|0;e=da(a+4|0,4,0,0)|0|0;f=b+28|0;g=a+28|0;h=b+32|0;i=a+32|0;m=0;do{if((da(d+(m<<1)|0,2,0,0)|0|0)!=(da(e+(m<<1)|0,2,0,0)|0|0)){c=0;break a}if((da((da(f|0,4,0,0)|0|0)+m>>0|0,1,0,0)|0|0)!=(da((da(g|0,4,0,0)|0|0)+m>>0|0,1,0,0)|0|0)){c=0;break a}j=da((da(h|0,4,0,0)|0|0)+(m<<2)|0,4,0,0)|0|0;k=da((da(i|0,4,0,0)|0|0)+(m<<2)|0,4,0,0)|0|0;l=(k|0)==0;if(!j){if(!l){c=0;break a}}else{if(l){c=0;break a}if(cd(j,k)|0){c=0;break a}}m=m+1|0}while((m|0)<(c&65535|0))}c=(Bu(da(b+36|0,4,0,0)|0|0,da(a+36|0,4,0,0)|0|0,-1)|0)==0&1}else c=0;while(0);return c|0}function Dt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;do if(!((da(c+44>>0|0,1,0,0)|0)&8))d=0;else{f=da(a+408|0,4,0,0)|0|0;f=(f|0)==0?a:f;e=f+404|0;d=da(e|0,4,0,0)|0|0;a:do if(!d)g=5;else while(1){if((da(d+4|0,4,0,0)|0|0)==(c|0))break a;d=da(d|0,4,0,0)|0|0;if(!d){g=5;break}}while(0);if((g|0)==5){d=lh(da(a|0,4,0,0)|0|0,16,0)|0;if(!d){d=0;break}ea(d|0,da(e|0,4,0,0)|0|0,4,0);ea(e|0,d|0,4,0);ea(d+4|0,c|0,4,0);ea(d+8|0,b|0,4,0);e=f+72|0;a=da(e|0,4,0,0)|0|0;ea(d+12|0,a+2|0,4,0);ea(e|0,a+3|0,4,0)}d=da(d+12|0,4,0,0)|0|0}while(0);return d|0}function Et(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;e=da(c+36|0,2,0,0)|0|0;f=da(a|0,4,0,0)|0|0;d=da(c|0,4,0,0)|0|0;if(e<<16>>16>-1){e=da((da(c+4|0,4,0,0)|0|0)+((e<<16>>16)*24|0)|0,4,0,0)|0|0;ea(g|0,d|0,4,0);ea(g+4|0,e|0,4,0);e=1555;d=th(f,27824,g)|0}else{ea(g|0,d|0,4,0);e=2579;d=th(f,34408,g)|0}ys(a,e,b,d,-1,2);i=h;return}function Ft(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=da(e|0,4,0,0)|0|0;b=kr(a,f,Lr(da(a|0,4,0,0)|0|0,b,0,0)|0)|0;if(b){a=(da(b|0,4,0,0)|0|0)+-1|0;f=da(b+4|0,4,0,0)|0|0;ea(f+(a*20|0)+16|0,c|0,4,0);a=f+(a*20|0)+13|0;ea(a>>0|0,(da(a>>0|0,1,0,0)|0)&-5|d<<2&4|0,1,0)}ea(e|0,b|0,4,0);return}function Gt(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=da(d|0,4,0,0)|0|0;if(!(f+-1&f)){h=_((f|0)==0?1:f<<1,c)|0;a=qo(a,b,h,((h|0)<0)<<31>>31)|0;if(!a){ea(e|0,-1|0,4,0);a=b}else g=4}else{a=b;g=4}if((g|0)==4){ew(a+(_(f,c)|0)|0,0,c|0)|0;ea(e|0,f|0,4,0);ea(d|0,(da(d|0,4,0,0)|0|0)+1|0,4,0)}return a|0}function Ht(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;ea(g|0,0|0,4,0);b=da(a+12|0,4,0,0)|0|0;if((b|0)!=0?(c=da(b+24|0,4,0,0)|0|0,(c|0)>0):0){ea(g|0,c|0,4,0);b=c}else b=0;c=da(a+16|0,4,0,0)|0|0;if((c|0)!=0?(d=da(c+24|0,4,0,0)|0|0,(d|0)>(b|0)):0)ea(g|0,d|0,4,0);e=a+4|0;b=a+20|0;if(!((da(e|0,4,0,0)|0)&2048)){c=da(b|0,4,0,0)|0|0;if(c){su(c,g);b=da(b|0,4,0,0)|0|0;if((b|0)!=0?(f=da(b|0,4,0,0)|0|0,(f|0)>0):0){d=da(b+4|0,4,0,0)|0|0;c=0;b=0;do{b=da((da(d+(c*20|0)|0,4,0,0)|0|0)+4|0,4,0,0)|0|b;c=c+1|0}while((c|0)!=(f|0));b=b&2097408}else b=0;ea(e|0,da(e|0,4,0,0)|0|b|0,4,0)}}else Ds(da(b|0,4,0,0)|0|0,g);ea(a+24|0,(da(g|0,4,0,0)|0|0)+1|0,4,0);i=h;return}function It(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=Nq(a)|0;g=a+72|0;f=(da(g|0,4,0,0)|0|0)+1|0;ea(g|0,f|0,4,0);a=lh(da(a|0,4,0,0)|0|0,8,0)|0;if(a){g=a;ea(g|0,c|0,4,0);ea(g+4|0,d|0,4,0)}wh(e,vh(e,26,0,f,0)|0,a,-13);hq(e,1);if(!(da((da(e|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0))Wg(da(e+16|0,4,0,0)|0|0,b,-1,1,0)|0;vh(e,35,f,1,0)|0;return}function Jt(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;b=da(a|0,4,0,0)|0|0;c=b+16|0;d=da((da(c|0,4,0,0)|0|0)+20|0,4,0,0)|0|0;do if(!d)b=0;else{if((da(b+63>>0|0,1,0,0)|0|0)!=0?(da(d+8>>0|0,1,0,0)|0|0)==0:0){Ll(d);ea((da(c|0,4,0,0)|0|0)+20|0,0|0,4,0);Dg(b);b=0;break}sh(a,32128,e);b=1}while(0);i=f;return b|0}function Kt(a){a=a|0;var b=0,c=0,d=0;if((da(a+63>>0|0,1,0,0)|0|0)!=0?(b=da(a+20|0,4,0,0)|0|0,(b|0)>0):0){d=a+24|0;c=da(a+16|0,4,0,0)|0|0;while(1){b=b+-1|0;a=da(c+4|0,4,0,0)|0|0;if(a)so(a,(da(d|0,4,0,0)|0)&28|(da(c+8>>0|0,1,0,1)|0));if((b|0)<=0)break;else c=c+16|0}}return}function Lt(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();s=v;t=da(c+20|0,4,0,0)|0|0;g=da(c+40|0,4,0,0)|0|0;if((t|0)==1){o=da(b+36|0,2,0,0)|0|0;f=o<<16>>16;if(o<<16>>16>-1)if((g|0)!=0?(cd(da((da(b+4|0,4,0,0)|0|0)+(f*24|0)|0,4,0,0)|0|0,g)|0)!=0:0){r=0;u=8}else e=0;else{r=0;u=8}}else if(e){f=lh(da(a|0,4,0,0)|0|0,t<<2,0)|0;if(!f)e=1;else{ea(e|0,f|0,4,0);r=f;u=8}}else{r=0;u=8}a:do if((u|0)==8){e=da(b+8|0,4,0,0)|0|0;b:do if(e){o=(g|0)==0;q=(t|0)>0;n=b+4|0;p=(r|0)==0;c:while(1){do if((da(e+46|0,2,0,1)|0|0)==(t|0)?(da(e+50>>0|0,1,0,0)|0|0)!=0:0){if(o)if(((da(e+51>>0|0,1,0,0)|0)&3)==2){u=16;break c}else break;d:do if(q){h=da(e+4|0,4,0,0)|0|0;k=da(n|0,4,0,0)|0|0;l=da(e+32|0,4,0,0)|0|0;m=0;while(1){b=da(h+(m<<1)|0,2,0,0)|0|0;g=da(k+(b*24|0)+16|0,4,0,0)|0|0;if(cd(da(l+(m<<2)|0,4,0,0)|0|0,(g|0)!=0?g:11152)|0){g=m;break d}g=da(k+(b*24|0)|0,4,0,0)|0|0;f=0;while(1){b=f+1|0;if(!(cd(da(c+(f<<3)+40|0,4,0,0)|0|0,g)|0)){b=f;u=23;break}if((b|0)<(t|0))f=b;else break}if((u|0)==23){u=0;if(!p)ea(r+(m<<2)|0,da(c+(b<<3)+36|0,4,0,0)|0|0,4,0)}g=m+1|0;if((b|0)==(t|0)){g=m;break d}if((g|0)<(t|0))m=g;else break}}else g=0;while(0);if((g|0)==(t|0))break c}while(0);e=da(e+20|0,4,0,0)|0|0;if(!e)break b}if((u|0)==16)if(!(p|q^1)){f=0;do{ea(r+(f<<2)|0,da(c+(f<<3)+36|0,4,0,0)|0|0,4,0);f=f+1|0}while((f|0)!=(t|0))}ea(d|0,e|0,4,0);e=0;break a}while(0);if(!(da(a+438>>0|0,1,0,0)|0)){o=da(c+8|0,4,0,0)|0|0;ea(s|0,da(da(c|0,4,0,0)|0|0,4,0,0)|0|0,4,0);ea(s+4|0,o|0,4,0);sh(a,32008,s)}lg(da(a|0,4,0,0)|0|0,r);e=1}while(0);i=v;return e|0}function Mt(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=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;if(!(da(b+12|0,4,0,0)|0)){ea(f|0,0|0,4,0);h=da(a|0,4,0,0)|0|0;e=b+4|0;b=da(e|0,4,0,0)|0|0;Yr(h,da(b+(c*24|0)+4|0,4,0,0)|0|0,da(h+62>>0|0,1,0,0)|0|0,da(b+(c*24|0)+21>>0|0,1,0,0)|0|0,f)|0;b=da(f|0,4,0,0)|0|0;if(b)wh(a,-1,b,-8);if((da((da(e|0,4,0,0)|0|0)+(c*24|0)+21>>0|0,1,0,0)|0|0)==69)vh(a,39,d,0,0)|0}i=g;return}function Nt(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(!(da(d>>0|0,1,0,0)|0))break;else d=d+1|0;d=d-b&1073741823}d=Rh(a,b,d,2,1,0)|0;if(d){d=d+2|0;ea(d|0,da(d|0,2,0,1)|0|c&255|0,2,0)}return}function Ot(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,k=0,l=0,m=0,n=0,o=0,p=0;n=da(a+8|0,4,0,0)|0|0;o=da(b+12|0,4,0,0)|0|0;do if(f){i=b+36|0;if(!(da(i|0,4,0,0)|0)){ea(f|0,0|0,4,0);break}else{ea(f|0,ws(n)|0|0,4,0);ea(a+96|0,c|0,4,0);m=a+100|0;ea(m|0,(da(m|0,4,0,0)|0|0)+1|0,4,0);ft(a,da(i|0,4,0,0)|0|0,da(f|0,4,0,0)|0|0,16);break}}while(0);if((e|0)!=0?((da(b+51>>0|0,1,0,0)|0)&8)!=0:0)i=b+46|0;else i=b+48|0;i=da(i|0,2,0,0)|0|0;k=i&65535;l=a+60|0;e=da(l|0,4,0,0)|0|0;m=a+56|0;f=da(m|0,4,0,0)|0|0;if((f|0)<(k|0)){e=a+72|0;j=da(e|0,4,0,0)|0|0;ea(e|0,j+k|0,4,0);j=j+1|0}else{ea(l|0,e+k|0,4,0);ea(m|0,f-k|0,4,0);j=e}do if(!g)e=0;else{if((j|0)==(h|0)?(da(g+36|0,4,0,0)|0|0)==0:0){e=g;break}e=0}while(0);if(i<<16>>16){g=(e|0)==0;h=b+4|0;f=e+4|0;i=0;do{if(!g){e=da((da(h|0,4,0,0)|0|0)+(i<<1)|0,2,0,0)|0|0;if((da((da(f|0,4,0,0)|0|0)+(i<<1)|0,2,0,0)|0|0)!=e<<16>>16)p=21}else{e=da((da(h|0,4,0,0)|0|0)+(i<<1)|0,2,0,0)|0|0;p=21}if((p|0)==21){p=0;mt(n,o,c,e<<16>>16,i+j|0);Oq(n,39)|0}i=i+1|0}while((i|0)<(k|0))}if(d)vh(n,49,j,k,d)|0;ct(a,j,k);if((da(m|0,4,0,0)|0|0)<(k|0)){ea(m|0,k|0,4,0);ea(l|0,j|0,4,0)}return j|0}function Pt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;if(b){c=da(a+8|0,4,0,0)|0|0;d=da(c+24|0,4,0,0)|0|0;e=~b;if((b|0)<0?(f=da(d+112|0,4,0,0)|0|0,(f|0)!=0):0)ea(f+(e<<2)|0,da(c+32|0,4,0,0)|0|0,4,0);ea(d+88|0,(da(c+32|0,4,0,0)|0|0)+-1|0,4,0);au(a)}return}function Qt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;c=da(b+16|0,4,0,0)|0|0;a:do if((c|0)!=0?(d=da(b+64|0,4,0,0)|0|0,(d|0)!=0):0){c=da(c+8|0,4,0,0)|0|0;b:do if(c){while(1){if(!(cd(da(c|0,4,0,0)|0|0,d)|0))break;c=da(c+20|0,4,0,0)|0|0;if(!c)break b}ea(b+68|0,c|0,4,0);c=0;break a}while(0);ea(e|0,d|0,4,0);ea(e+4|0,0|0,4,0);sh(a,28104,e);ea(a+17>>0|0,1|0,1,0);c=1}else c=0;while(0);i=f;return c|0}function Rt(a,b){a=a|0;b=b|0;var c=0,d=0;if(a){c=St(a,b)|0;if(b&1){d=Rt(da(a+12|0,4,0,0)|0|0,b)|0;return d+c+(Rt(da(a+16|0,4,0,0)|0|0,b)|0)|0}}else c=0;return c|0} 7 function Sn(a,b,c,d,e,f,g,h,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;Y=i;i=i+160|0;if((i|0)>=(j|0))ba();K=Y+16|0;G=Y+152|0;I=Y+48|0;F=Y+40|0;J=Y+36|0;H=Y+32|0;M=Y+8|0;N=Y;S=Y+28|0;W=Y+24|0;ea(W|0,0|0,4,0);do if(!(da(a+46>>0|0,1,0,0)|0)){X=a+43|0;if((da(X>>0|0,1,0,0)|0|0)==0?(l=da(a+4|0,4,0,0)|0|0,l=oc[(fa(da((da(l|0,4,0,0)|0|0)+56|0,4,0,0)|0|0,31|0)|0)&31](l,1,1,10)|0,(l|0)!=0):0)break;V=a+45|0;ea(V>>0|0,1|0,1,0);a:do if(!b){p=0;T=11}else{n=a+4|0;l=(c|0)!=0;while(1){if(da(X>>0|0,1,0,0)|0)break;p=da(n|0,4,0,0)|0|0;p=oc[(fa(da((da(p|0,4,0,0)|0|0)+56|0,4,0,0)|0|0,31|0)|0)&31](p,0,1,10)|0;if(!(l&(p|0)==5)){T=9;break}if(!(kc[(fa(c|0,127|0)|0)&127](d)|0)){p=0;c=0;T=11;break a}}if((T|0)==9)if((p|0)==5){p=0;c=0;T=11;break}else if(p){U=b;break}ea(a+44>>0|0,1|0,1,0);p=b;T=11}while(0);if((T|0)==11){U=p;p=mq(a,W)|0}do if(!p){R=a+68|0;p=da(a+66|0,2,0,0)|0|0;if((da(R|0,4,0,0)|0|0)!=0?(Q=p&65535,(Q<<16&65536|Q&65024|0)!=(f|0)):0){ea(K|0,51863|0,4,0);ea(K+4|0,10788|0,4,0);ad(11,13600,K);m=11;break}O=p&65535;O=O<<16&65536|O&65024;Q=a+32|0;P=(da(da(Q|0,4,0,0)|0|0,4,0,0)|0|0)+96|0;B=da(R|0,4,0,0)|0|0;b:do if((da(P|0,4,0,0)|0|0)>>>0<B>>>0){D=(B+33|0)>>>12;E=D+1|0;f=B<<1;r=f+28+(D*20|0)|0;l=Sc(r)|0;c:do if(!l){p=7;l=0}else{ew(l|0,0,r|0)|0;A=l+4|0;ea(A|0,E|0,4,0);s=Sc(B>>>0>4096?8192:f)|0;do if(s){r=l+8|0;f=0;while(1){p=Oo(a,f,F,H,J)|0;if(p){T=21;break}y=(da(H|0,4,0,0)|0|0)+4|0;ea(H|0,y|0,4,0);if((f|0)==(D|0)){z=da(J|0,4,0,0)|0|0;p=z;z=B-z|0}else{p=da(J|0,4,0,0)|0|0;z=(da(F|0,4,0,0)|0|0)-y>>2}n=r+((da(A|0,4,0,0)|0|0)*20|0)|0;x=n+(p<<1)|0;q=p+1|0;ea(J|0,q|0,4,0);if((z|0)>0){u=0;do{ea(n+(u+p<<1)|0,u|0,2,0);u=u+1|0}while((u|0)!=(z|0));ea(K|0,0|0,4,0);ea(G|0,0|0,4,0);v=I+0|0;u=v+104|0;do{ea(v|0,0|0,4,0);v=v+4|0}while((v|0)<(u|0));w=0;do{ea(K|0,1|0,4,0);v=n+(w+p<<1)|0;ea(G|0,v|0,4,0);if(!(w&1)){t=1;u=0}else{u=0;do{nq(y,da(I+(u<<3)+4|0,4,0,0)|0|0,da(I+(u<<3)|0,4,0,0)|0|0,G,K,s);u=u+1|0}while((1<<u&w|0)!=0);t=da(K|0,4,0,0)|0|0;v=da(G|0,4,0,0)|0|0}ea(I+(u<<3)+4|0,v|0,4,0);ea(I+(u<<3)|0,t|0,4,0);w=w+1|0}while((w|0)!=(z|0));u=u+1|0;if((u|0)<13)T=34}else{ea(K|0,0|0,4,0);ea(G|0,0|0,4,0);v=I+0|0;u=v+104|0;do{ea(v|0,0|0,4,0);v=v+4|0}while((v|0)<(u|0));u=1;T=34}if((T|0)==34){while(1){T=0;if(1<<u&z)nq(y,da(I+(u<<3)+4|0,4,0,0)|0|0,da(I+(u<<3)|0,4,0,0)|0|0,G,K,s);u=u+1|0;if((u|0)==13)break;else T=34}t=da(K|0,4,0,0)|0|0}ea(r+(f*20|0)+16|0,q|0,4,0);ea(r+(f*20|0)+12|0,t|0,4,0);ea(r+(f*20|0)+4|0,x|0,4,0);ea(r+(f*20|0)+8|0,y|0,4,0);f=f+1|0;if((f|0)>=(E|0)){T=39;break}}if((T|0)==21){Vc(s);break}else if((T|0)==39){Vc(s);p=0;break c}}else{Vc(0);p=7}while(0);Vc(l)}while(0);if(!p){K=a+72|0;J=da(K|0,4,0,0)|0|0;I=a+4|0;t=1;s=da(R|0,4,0,0)|0|0;p=0;while(1){f=P+(t<<2)+4|0;n=da(f|0,4,0,0)|0|0;d:do if(s>>>0>n>>>0){r=t+3|0;q=(c|0)!=0;while(1){if(da(X>>0|0,1,0,0)|0)break;p=da(I|0,4,0,0)|0|0;p=oc[(fa(da((da(p|0,4,0,0)|0|0)+56|0,4,0,0)|0|0,31|0)|0)&31](p,r,1,10)|0;if(!(q&(p|0)==5)){T=49;break}if(!(kc[(fa(c|0,127|0)|0)&127](d)|0)){c=0;p=5;break d}}if((T|0)==49){T=0;if((p|0)==5){c=0;p=5;break}else if(p){m=p;T=100;break b}}ea(f|0,((t|0)==1?s:-1)|0,4,0);if(!(da(X>>0|0,1,0,0)|0)){n=da(I|0,4,0,0)|0|0;oc[(fa(da((da(n|0,4,0,0)|0|0)+56|0,4,0,0)|0|0,31|0)|0)&31](n,r,1,9)|0;n=s;p=0}else{n=s;p=0}}else n=s;while(0);t=t+1|0;if((t|0)>=5){E=n;break}else s=n}e:do if((da(P|0,4,0,0)|0|0)>>>0<E>>>0){p=(c|0)!=0;while(1){if(da(X>>0|0,1,0,0)|0)break;n=da(I|0,4,0,0)|0|0;n=oc[(fa(da((da(n|0,4,0,0)|0|0)+56|0,4,0,0)|0|0,31|0)|0)&31](n,3,1,10)|0;if(!(p&(n|0)==5)){o=n;T=58;break}if(!(kc[(fa(c|0,127|0)|0)&127](d)|0)){o=5;break e}}if((T|0)==58?(o|0)!=0:0)break;A=da(P|0,4,0,0)|0|0;B=(e|0)!=0;if(B?(L=da(a+8|0,4,0,0)|0|0,L=qc[(fa(da((da(L|0,4,0,0)|0|0)+20|0,4,0,0)|0|0,127|0)|0)&127](L,e)|0,(L|0)!=0):0)o=L;else T=61;f:do if((T|0)==61){L=rw(J|0,0,O|0,0)|0;o=N;ea(o|0,L|0,4,0);ea(o+4|0,C|0,4,0);o=da(I|0,4,0,0)|0|0;o=qc[(fa(da((da(o|0,4,0,0)|0|0)+24|0,4,0,0)|0|0,127|0)|0)&127](o,M)|0;if(!o){p=M;L=da(p+4|0,4,0,0)|0|0;o=N;M=da(o+4|0,4,0,0)|0|0;if((L|0)<(M|0)|((L|0)==(M|0)?(da(p|0,4,0,0)|0|0)>>>0<(da(o|0,4,0,0)|0|0)>>>0:0)){M=da(I|0,4,0,0)|0|0;$b[(fa(da((da(M|0,4,0,0)|0|0)+40|0,4,0,0)|0|0,63|0)|0)&63](M,5,N)|0}x=l+4|0;y=O|24;z=a+8|0;p=da(x|0,4,0,0)|0|0;g:do if((p|0)>0){o=0;while(1){w=da(l|0,4,0,0)|0|0;v=-1;h:while(1){i:while(1){p=p+-1|0;t=l+(p*20|0)+8|0;f=da(t|0,4,0,0)|0|0;n=da(l+(p*20|0)+20|0,4,0,0)|0|0;j:do if((f|0)<(n|0)){s=da(l+(p*20|0)+12|0,4,0,0)|0|0;u=da(l+(p*20|0)+16|0,4,0,0)|0|0;while(1){q=da(s+(f<<1)|0,2,0,1)|0|0;r=da(u+(q<<2)|0,4,0,0)|0|0;if(r>>>0>w>>>0)break;f=f+1|0;ea(t|0,f|0,4,0);if((f|0)>=(n|0))break j}if(r>>>0<v>>>0)break i}while(0);if((p|0)<=0){f=o;p=v;break h}}o=(da(l+(p*20|0)+24|0,4,0,0)|0|0)+q|0;if((p|0)>0)v=r;else{f=o;p=r;break}}ea(l|0,p|0,4,0);if((p|0)==-1)break g;if(!(f>>>0<=A>>>0|f>>>0>E>>>0|p>>>0>J>>>0)){o=rw(f+-1|0,0,y|0,0)|0;o=iw(o|0,C|0,56,0)|0;N=da(z|0,4,0,0)|0|0;o=sc[(fa(da((da(N|0,4,0,0)|0|0)+8|0,4,0,0)|0|0,31|0)|0)&31](N,g,O,o,C)|0;if(o)break f;o=rw(p+-1|0,0,O|0,0)|0;N=da(I|0,4,0,0)|0|0;o=sc[(fa(da((da(N|0,4,0,0)|0|0)+12|0,4,0,0)|0|0,31|0)|0)&31](N,g,O,o,C)|0;if(o)break f}p=da(x|0,4,0,0)|0|0;if((p|0)<=0){T=66;break}else o=f}}else T=66;while(0);if((T|0)==66)ea(l|0,-1|0,4,0);if((E|0)==(da((da(da(Q|0,4,0,0)|0|0,4,0,0)|0|0)+16|0,4,0,0)|0|0)){o=rw(da(K|0,4,0,0)|0|0,0,O|0,0)|0;T=da(I|0,4,0,0)|0|0;o=$b[(fa(da((da(T|0,4,0,0)|0|0)+16|0,4,0,0)|0|0,63|0)|0)&63](T,o,C)|0;if((o|0)==0&B){o=da(I|0,4,0,0)|0|0;o=qc[(fa(da((da(o|0,4,0,0)|0|0)+20|0,4,0,0)|0|0,127|0)|0)&127](o,e)|0}if(o)break}ea(P|0,E|0,4,0);o=0}}while(0);if(!(da(X>>0|0,1,0,0)|0)){T=da(I|0,4,0,0)|0|0;oc[(fa(da((da(T|0,4,0,0)|0|0)+56|0,4,0,0)|0|0,31|0)|0)&31](T,3,1,9)|0}}else o=p;while(0);o=(o|0)==5?0:o;T=88}else m=p}else{l=0;o=0;T=88}while(0);k:do if((T|0)==88)if((o|0)==0&(U|0)!=0)if((da(P|0,4,0,0)|0|0)>>>0>=(da(R|0,4,0,0)|0|0)>>>0)if((U|0)>1){bd(4,S);p=a+4|0;n=(c|0)!=0;while(1){if(da(X>>0|0,1,0,0)|0)break;o=da(p|0,4,0,0)|0|0;o=oc[(fa(da((da(o|0,4,0,0)|0|0)+56|0,4,0,0)|0|0,31|0)|0)&31](o,4,4,10)|0;if(!(n&(o|0)==5)){m=o;T=95;break}if(!(kc[(fa(c|0,127|0)|0)&127](d)|0)){m=5;T=100;break k}}if((T|0)==95?(m|0)!=0:0){T=100;break}if((U|0)==3){Wo(a,da(S|0,4,0,0)|0|0);m=da(a+8|0,4,0,0)|0|0;m=$b[(fa(da((da(m|0,4,0,0)|0|0)+16|0,4,0,0)|0|0,63|0)|0)&63](m,0,0)|0}else m=0;if(!(da(X>>0|0,1,0,0)|0)){T=da(p|0,4,0,0)|0|0;oc[(fa(da((da(T|0,4,0,0)|0|0)+56|0,4,0,0)|0|0,31|0)|0)&31](T,4,4,9)|0;T=100}else T=100}else{m=0;T=100}else{m=5;T=100}else{m=o;T=100}while(0);if((T|0)==100)Vc(l);if((m|0)==0|(m|0)==5){if(h)ea(h|0,da(R|0,4,0,0)|0|0,4,0);if(k)ea(k|0,da((da(da(Q|0,4,0,0)|0|0,4,0,0)|0|0)+96|0,4,0,0)|0|0,4,0)}}else m=p;while(0);if(da(W|0,4,0,0)|0){v=a+52|0;u=v+48|0;do{ea(v|0,0|0,4,0);v=v+4|0}while((v|0)<(u|0))}l=a+44|0;if(da(l>>0|0,1,0,0)|0){if(!(da(X>>0|0,1,0,0)|0)){W=da(a+4|0,4,0,0)|0|0;oc[(fa(da((da(W|0,4,0,0)|0|0)+56|0,4,0,0)|0|0,31|0)|0)&31](W,0,1,9)|0}ea(l>>0|0,0|0,1,0);ea(a+47>>0|0,0|0,1,0)}if(!(da(X>>0|0,1,0,0)|0)){X=da(a+4|0,4,0,0)|0|0;oc[(fa(da((da(X|0,4,0,0)|0|0)+56|0,4,0,0)|0|0,31|0)|0)&31](X,1,1,9)|0}ea(V>>0|0,0|0,1,0);l=(m|0)!=0|(U|0)==(b|0)?m:5}else l=8;while(0);i=Y;return l|0}function Tn(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=Yv(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((da(c+(f+g)>>0|0,1,0,0)|0|0)!=32)break b}if(!f){f=d-g|0;while(1){if((f|0)<=0)break;f=f+-1|0;if((da(e+(f+g)>>0|0,1,0,0)|0|0)!=32)break b}if(!f){f=0;break a}}}while(0);f=b-d|0}while(0);return f|0}function Un(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=Ec(c,e,(b|0)<(d|0)?b:d)|0;return ((a|0)==0?b-d|0:a)|0}function Vn(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))ba();u=w;n=da(c|0,4,0,0)|0|0;a:do if(b){l=b;while(1)if(!(da(l>>0|0,1,0,0)|0))break;else l=l+1|0;m=l-b&1073741823;if((da(2189*4|0,4,0,0)|0|n&64|0)!=0&m>>>0>4?(Yv(b,14984,5)|0)==0:0){l=m+2|0;k=n|64;if(m){n=0;do{l=((da(b+n>>0|0,1,0,0)|0|0)==38&1)+l|0;n=n+1|0}while((n|0)<(m|0))}h=Sc(l)|0;if(h){do if((da(b+5>>0|0,1,0,0)|0|0)==47?(da(b+6>>0|0,1,0,0)|0|0)==47:0){l=7;while(1){q=da(b+l>>0|0,1,0,0)|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(!(Yv(14992,g,9)|0)){l=0;n=16;g=0;break}}else g=b+7|0;ea(u|0,l+-7|0,4,0);ea(u+4|0,g|0,4,0);ea(f|0,Zc(15008,u)|0|0,4,0);g=1;v=74;break a}else{l=0;n=5;g=0}while(0);b:while(1){s=h+(g+-1)|0;c:while(1){d:while(1){m=da(b+n>>0|0,1,0,0)|0|0;if(m<<24>>24==35|m<<24>>24==0)break b;o=n+1|0;if((m<<24>>24==37?(t=da(b+o>>0|0,1,0,0)|0|0,((da(10368+(t&255)>>0|0,1,0,0)|0)&8)!=0):0)?(r=da(b+(n+2)>>0|0,1,0,0)|0|0,((da(10368+(r&255)>>0|0,1,0,0)|0)&8)!=0):0){m=t;o=r;break}if(!l){n=o;v=38;break c}else if((l|0)==2){n=o;v=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(!(da(s>>0|0,1,0,0)|0))n=o;else{n=o;v=36;break c}while(1){q=da(b+n>>0|0,1,0,0)|0|0;if(q<<24>>24==35|q<<24>>24==0)continue d;if((da(b+(n+-1)>>0|0,1,0,0)|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){v=30;break}o=(l|0)==0;while(1){m=da(b+n>>0|0,1,0,0)|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((v|0)==30){v=0;m=m&255}else if((v|0)==36){v=0;if(m<<24>>24==38){ea(h+g>>0|0,0|0,1,0);m=0;l=1;g=g+1|0}else{m=0;l=2}}else if((v|0)==38){v=0;if(m<<24>>24==63)v=40;else l=0}else if((v|0)==39){v=0;if(m<<24>>24==38)v=40;else l=2}if((v|0)==40){v=0;m=0;l=1}ea(h+g>>0|0,m|0,1,0);g=g+1|0}if((l|0)==1){ea(h+g>>0|0,0|0,1,0);g=g+1|0}ea(h+g>>0|0,0|0,1,0);ea(h+(g+1)>>0|0,0|0,1,0);g=h;while(1)if(!(da(g>>0|0,1,0,0)|0))break;else g=g+1|0;g=(g-h&1073741823)+1|0;l=da(h+g>>0|0,1,0,0)|0|0;if(l<<24>>24){t=h+g|0;e:while(1){m=t;while(1){g=m+1|0;if(!(l<<24>>24)){l=m;break}l=da(g>>0|0,1,0,0)|0|0;m=g}s=l-t&1073741823;l=t+(s+1)|0;m=l;while(1)if(!(da(m>>0|0,1,0,0)|0))break;else m=m+1|0;r=m-l&1073741823;if((s|0)==3){g=(Yv(15040,t,3)|0)==0;g=g?l:a}else if((s|0)==5)if(!(Yv(15048,t,5)|0)){b=15056;p=393216;q=-393217;g=15048;v=58}else g=a;else if((s|0)==4?(Yv(15096,t,4)|0)==0:0){b=15104;p=k&135;q=-136;g=15176;v=58}else g=a;if((v|0)==58){v=0;n=da(b|0,4,0,0)|0|0;if(!n){v=65;break}else m=0;while(1){o=n;while(1)if(!(da(o>>0|0,1,0,0)|0))break;else o=o+1|0;if((r|0)==(o-n&1073741823|0)?(Yv(l,n,r)|0)==0:0){n=m;break}m=m+1|0;n=da(b+(m<<3)|0,4,0,0)|0|0;if(!n){v=65;break e}}n=da(b+(n<<3)+4|0,4,0,0)|0|0;if(!n){v=65;break}if((n&-129|0)>(p|0)){v=67;break}k=n|q&k;g=a}t=t+(s+2+r)|0;l=da(t>>0|0,1,0,0)|0|0;if(!(l<<24>>24)){v=72;break a}else a=g}if((v|0)==65){ea(u|0,g|0,4,0);ea(u+4|0,l|0,4,0);ea(f|0,Zc(15184,u)|0|0,4,0);g=1;v=74;break}else if((v|0)==67){ea(u|0,g|0,4,0);ea(u+4|0,l|0,4,0);ea(f|0,Zc(15208,u)|0|0,4,0);g=3;v=74;break}}else{g=a;v=72}}else g=7}else{k=m;v=70}}else{k=0;v=70}while(0);if((v|0)==70){h=Sc(k+2|0)|0;if(!h)g=7;else{jw(h|0,b|0,k|0)|0;ea(h+k>>0|0,0|0,1,0);ea(h+(k+1)>>0|0,0|0,1,0);k=n&-65;g=a;v=72}}if((v|0)==72){q=Jc(g)|0;ea(d|0,q|0,4,0);if(!q){ea(u|0,g|0,4,0);ea(f|0,Zc(15232,u)|0|0,4,0);g=1;v=74}else{g=0;v=75}}if((v|0)==74){Vc(h);h=0;v=75}if((v|0)==75){ea(c|0,k|0,4,0);ea(e|0,h|0,4,0)}i=w;return g|0}function Wn(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;do if(!b){b=pg(84,0)|0;if(!b)c=8;else{a=b+0|0;e=a+84|0;do{ea(a>>0|0,0|0,1,0);a=a+1|0}while((a|0)<(e|0));c=9}}else{d=da(b+4|0,4,0,0)|0|0;ea(d+4|0,da(b|0,4,0,0)|0|0,4,0);c=d+48|0;b=da(c|0,4,0,0)|0|0;if(!b){b=pg(84,0)|0;if(!b){ea(c|0,0|0,4,0);ea(d+52|0,22|0,4,0);c=8;break}else{a=b+0|0;e=a+84|0;do{ea(a>>0|0,0|0,1,0);a=a+1|0}while((a|0)<(e|0));ea(c|0,b|0,4,0);ea(d+52|0,22|0,4,0);c=9;break}}else c=9}while(0);if((c|0)==8){ea(a+65>>0|0,1|0,1,0);b=0}else if((c|0)==9)if(!(da(b+76>>0|0,1,0,0)|0)){c=b+77|0;a=b+8|0;e=a+64|0;do{ea(a|0,0|0,4,0);a=a+4|0}while((a|0)<(e|0));ea(c>>0|0,1|0,1,0)}return b|0}function Xn(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,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();if(c){g=a+428|0;f=an(g,c,k)|0;if(!f)e=0;else e=da(f+8|0,4,0,0)|0|0;if((e|0)==0&(d|0)!=0){f=c;while(1)if(!(da(f>>0|0,1,0,0)|0))break;else f=f+1|0;f=f-c&1073741823;d=f+61|0;e=lh(a,d,0)|0;if(e){ew(e|0,0,d|0)|0;d=e+60|0;ea(e|0,d|0,4,0);ea(e+4>>0|0,1|0,1,0);ea(e+20|0,d|0,4,0);ea(e+24>>0|0,2|0,1,0);ea(e+40|0,d|0,4,0);ea(e+44>>0|0,3|0,1,0);jw(d|0,c|0,f|0)|0;ea(e+(f+60)>>0|0,0|0,1,0);f=Hk(g,da(e|0,4,0,0)|0|0,e)|0;if(!f)h=10;else{ea(a+65>>0|0,1|0,1,0);lg(a,f);e=0}}else e=0}else h=10}else{e=da(a+8|0,4,0,0)|0|0;h=10}if((h|0)==10)if(!e)e=0;else e=e+(((b&255)+-1|0)*20|0)|0;i=k;return e|0}function Yn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+64|0;if((i|0)>=(j|0))ba();r=v;f=v+48|0;l=v+24|0;p=v+8|0;g=(b|0)==1;n=g?13184:13208;ea(f|0,n|0,4,0);ea(f+4|0,13224|0,4,0);ea(f+8|0,(g?13064:12960)|0,4,0);ea(f+12|0,0|0,4,0);ea(p|0,a|0,4,0);ea(p+8|0,b|0,4,0);q=p+12|0;ea(q|0,0|0,4,0);ea(p+4|0,c|0,4,0);_m(p,3,f,0)|0;f=da(q|0,4,0,0)|0|0;a:do if(!f){s=a+16|0;f=Zh(a,n,da((da(s|0,4,0,0)|0|0)+(b<<4)|0,4,0,0)|0|0)|0;if(f){o=f+44|0;ea(o>>0|0,da(o>>0|0,1,0,1)|0|1|0,1,0)}e=da(s|0,4,0,0)|0|0;t=e+(b<<4)+4|0;f=da(t|0,4,0,0)|0|0;if(!f){if(!g){d=0;break}d=(da(e+28|0,4,0,0)|0|0)+78|0;ea(d|0,da(d|0,2,0,1)|0|1|0,2,0);d=0;break}ea((da(f+4|0,4,0,0)|0|0)+4|0,da(f|0,4,0,0)|0|0,4,0);do if(!(da(f+8>>0|0,1,0,0)|0)){f=xg(f,0)|0;if((f|0)==516)d=16344;else if(!f){f=da(t|0,4,0,0)|0|0;o=1;break}else u=10;if((u|0)==10){d=f&255;if(d>>>0>26|(d|0)==2)d=16328;else d=da(15488+(d<<2)|0,4,0,0)|0|0}ea(r|0,d|0,4,0);ch(c,a,10344,r);d=f;u=38;break a}else o=0;while(0);vm(f,1,l);m=l+4|0;vm(da(t|0,4,0,0)|0|0,2,m);h=l+8|0;vm(da(t|0,4,0,0)|0|0,3,h);vm(da(t|0,4,0,0)|0|0,4,l+12|0);g=l+16|0;vm(da(t|0,4,0,0)|0|0,5,g);k=e+(b<<4)+12|0;f=da(k|0,4,0,0)|0|0;ea(f|0,da(l|0,4,0,0)|0|0,4,0);e=da(g|0,4,0,0)|0|0;do if(e){if(!b){g=e&3;g=(g|0)==0?1:g&255;ea(a+62>>0|0,g|0,1,0);u=19;break}g=da(a+62>>0|0,1,0,0)|0|0;if((e|0)==(g&255|0))u=19;else{ch(c,a,13232,r);d=1}}else{g=(da((da(s|0,4,0,0)|0|0)+(b<<4)+12|0,4,0,0)|0|0)+78|0;ea(g|0,da(g|0,2,0,1)|0|4|0,2,0);g=da(a+62>>0|0,1,0,0)|0|0;u=19}while(0);do if((u|0)==19){ea(f+77>>0|0,g|0,1,0);g=f+80|0;if(!(da(g|0,4,0,0)|0)){f=da(h|0,4,0,0)|0|0;if((f|0)<=-1)f=(f|0)==-2147483648?2147483647:0-f|0;f=(f|0)==0?2e3:f;ea(g|0,f|0,4,0);oq(da(t|0,4,0,0)|0|0,f);f=da(k|0,4,0,0)|0|0}e=da(m|0,4,0,0)|0|0;g=e&255;f=f+76|0;if(g<<24>>24){ea(f>>0|0,g|0,1,0);if((g&255)>4){ch(c,a,13304,r);d=1;break}}else ea(f>>0|0,1|0,1,0);if((b|0)==0&(e|0)>3){m=a+24|0;ea(m|0,(da(m|0,4,0,0)|0)&-32769|0,4,0)}ea(r|0,da((da(s|0,4,0,0)|0|0)+(b<<4)|0,4,0,0)|0|0,4,0);ea(r+4|0,n|0,4,0);e=th(a,13328,r)|0;m=a+284|0;n=da(m|0,4,0,0)|0|0;ea(m|0,0|0,4,0);f=Pe(a,e,22,p,0)|0;ea(m|0,n|0,4,0);f=(f|0)==0?da(q|0,4,0,0)|0|0:f;lg(a,e);e=(f|0)==0;if(e)$m(a,b)|0;if(!(da(a+65>>0|0,1,0,0)|0)){if(!e){d=f;u=34}}else{Dg(a);d=7;u=34}if((u|0)==34?((da(a+24|0,4,0,0)|0)&65536|0)==0:0)break;d=(da((da(s|0,4,0,0)|0|0)+(b<<4)+12|0,4,0,0)|0|0)+78|0;ea(d|0,da(d|0,2,0,1)|0|1|0,2,0);d=0}while(0);if(!o)u=38;else{tn(da(t|0,4,0,0)|0|0)|0;u=38}}else{d=f;u=38}while(0);if((u|0)==38)if((d|0)==7|(d|0)==3082)ea(a+65>>0|0,1|0,1,0);i=v;return d|0}function Zn(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+80|0;if((i|0)>=(j|0))ba();k=l;ea(12066*4|0,da(2708*4|0,4,0,0)|0|0,4,0);if(!(da(12067*4|0,4,0,0)|0))ea(12067*4|0,Kb(48336)|0|0,4,0);if(!(da(12068*4|0,4,0,0)|0))ea(12068*4|0,Kb(48352)|0|0,4,0);d=k+12|0;e=0;c=0;do{if((((c|0)!=0?(qc[(fa(da(47552+52|0,4,0,0)|0|0,127|0)|0)&127](c,k)|0)==0:0)?((da(d|0,4,0,0)|0)&61440|0)==16384:0)?(qc[(fa(da(47552+28|0,4,0,0)|0|0,127|0)|0)&127](c,7)|0)==0:0)break;c=da(48264+(e<<2)|0,4,0,0)|0|0;e=e+1|0}while(e>>>0<7);h=(c|0)==0?28928:c;if(((fw(h|0)|0)+25|0)>>>0<a>>>0){a=a+-18|0;do{ea(k|0,h|0,4,0);$c(a,b,48248,k)|0;d=fw(b|0)|0;c=b+d|0;bd(15,c);g=b+(d+15)|0;f=0;e=d;while(1){ea(c>>0|0,da(48184+(((da(c>>0|0,1,0,1)|0|0)%62|0)&255)>>0|0,1,0,0)|0|0|0,1,0);f=f+1|0;e=e+1|0;if((f|0)==15)break;else c=b+e|0}ea(g>>0|0,0|0,1,0);ea(b+(d+16)>>0|0,0|0,1,0)}while((qc[(fa(da(47552+28|0,4,0,0)|0|0,127|0)|0)&127](b,0)|0)==0);c=0}else c=1;i=l;return c|0}function _n(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+80|0;if((i|0)>=(j|0))ba();h=l;g=(c|0)!=0;e=g?c:420;f=b|524288;while(1){d=$b[(fa(da(47552+4|0,4,0,0)|0|0,63|0)|0)&63](a,f,e)|0;if((d|0)<0)if((da(Gb()|0|0,4,0,0)|0|0)==4)continue;else break;if((d|0)>2){k=6;break}kc[(fa(da(47552+16|0,4,0,0)|0|0,127|0)|0)&127](d)|0;ea(h|0,a|0,4,0);ea(h+4|0,d|0,4,0);ad(28,48120,h);if(($b[(fa(da(47552+4|0,4,0,0)|0|0,63|0)|0)&63](48168,b,c)|0)<0){d=-1;break}}if((k|0)==6)if(((g?(qc[(fa(da(47552+64|0,4,0,0)|0|0,127|0)|0)&127](d,h)|0)==0:0)?(da(h+36|0,4,0,0)|0|0)==0:0)?((da(h+12|0,4,0,0)|0)&511|0)!=(c|0):0)qc[(fa(da(47552+172|0,4,0,0)|0|0,127|0)|0)&127](d,c)|0;i=l;return d|0}function $n(a,b,c){a=a|0;b=b|0;c=c|0;if(kc[(fa(da(47552+16|0,4,0,0)|0|0,127|0)|0)&127](b)|0){if(!a)b=0;else b=da(a+32|0,4,0,0)|0|0;bo(4106,47856,b,c)|0}return}function ao(a){a=a|0;var b=0,c=0,d=0,e=0;e=i;i=i+80|0;if((i|0)>=(j|0))ba();d=e;b=e+4|0;c=a+18|0;do if(!((da(c|0,2,0,0)|0)&256)){if(qc[(fa(da(47552+64|0,4,0,0)|0|0,127|0)|0)&127](da(a+12|0,4,0,0)|0|0,b)|0){ea(d|0,da(a+32|0,4,0,0)|0|0,4,0);ad(28,48592,d);ea(c|0,da(c|0,2,0,1)|0|0|256|0,2,0);break}b=da(b+16|0,4,0,0)|0|0;if(!b){if(!((da(c|0,2,0,0)|0)&32)){ea(d|0,da(a+32|0,4,0,0)|0|0,4,0);ad(28,48616,d);ea(c|0,da(c|0,2,0,1)|0|0|256|0,2,0);break}}else if(b>>>0>1){ea(d|0,da(a+32|0,4,0,0)|0|0,4,0);ad(28,48648,d);ea(c|0,da(c|0,2,0,1)|0|0|256|0,2,0);break}if(wo(a)|0){ea(d|0,da(a+32|0,4,0,0)|0|0,4,0);ad(28,48680,d);ea(c|0,da(c|0,2,0,1)|0|0|256|0,2,0)}}while(0);i=e;return}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;e=i;i=i+32|0;if((i|0)>=(j|0))ba();f=e;h=da(Gb()|0|0,4,0,0)|0|0;g=Qb(h|0)|0;ea(f|0,d|0,4,0);ea(f+4|0,h|0,4,0);ea(f+8|0,b|0,4,0);ea(f+12|0,((c|0)==0?10360:c)|0,4,0);ea(f+16|0,g|0,4,0);ad(a,47864,f);i=e;return a|0}function co(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;h=a+40|0;c=da(h|0,4,0,0)|0|0;g=c<<1;g=g>>>0<256?256:g;if((c|0)!=0?(b=da(3164*4|0,4,0,0)|0|0,(b|0)!=0):0)mc[(fa(b|0,3|0)|0)&3]();b=g<<2;f=pg(b,0)|0;c=(f|0)==0;if(!c)ew(f|0,0,b|0)|0;if((da(h|0,4,0,0)|0|0)!=0?(d=da(3166*4|0,4,0,0)|0|0,(d|0)!=0):0)mc[(fa(d|0,3|0)|0)&3]();if(!c){d=da(h|0,4,0,0)|0|0;e=a+44|0;b=da(e|0,4,0,0)|0|0;if(d){a=0;do{c=da(b+(a<<2)|0,4,0,0)|0|0;if(c){do{j=c+16|0;b=c;c=da(j|0,4,0,0)|0|0;i=f+((((da(b+8|0,4,0,0)|0|0)>>>0)%(g>>>0)|0)<<2)|0;ea(j|0,da(i|0,4,0,0)|0|0,4,0);ea(i|0,b|0,4,0)}while((c|0)!=0);b=da(e|0,4,0,0)|0|0}a=a+1|0}while(a>>>0<d>>>0)}Vc(b);ea(e|0,f|0,4,0);ea(h|0,g|0,4,0)}return}function eo(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;f=a+24|0;g=a+16|0;c=a+4|0;a:do if((da(g|0,4,0,0)|0|0)>>>0>(da(c|0,4,0,0)|0|0)>>>0)do{d=da(f|0,4,0,0)|0|0;if(!d)break a;fo(d);e=da(d+20|0,4,0,0)|0|0;b=(da(e+44|0,4,0,0)|0|0)+((((da(d+8|0,4,0,0)|0|0)>>>0)%((da(e+40|0,4,0,0)|0|0)>>>0)|0)<<2)|0;while(1){h=da(b|0,4,0,0)|0|0;a=h+16|0;if((h|0)==(d|0))break;else b=a}ea(b|0,da(a|0,4,0,0)|0|0,4,0);a=e+36|0;ea(a|0,(da(a|0,4,0,0)|0|0)+-1|0,4,0);ho(d)}while((da(g|0,4,0,0)|0|0)>>>0>(da(c|0,4,0,0)|0|0)>>>0);while(0);return}function fo(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;c=da(a+20|0,4,0,0)|0|0;d=da(c|0,4,0,0)|0|0;e=a+28|0;f=da(e|0,4,0,0)|0|0;g=a+24|0;b=da(g|0,4,0,0)|0|0;if(!f)ea(d+20|0,b|0,4,0);else{ea(f+24|0,b|0,4,0);b=da(g|0,4,0,0)|0|0}if(!b)ea(d+24|0,f|0,4,0);else ea(b+28|0,f|0,4,0);ea(g|0,0|0,4,0);ea(e|0,0|0,4,0);ea(a+12>>0|0,1|0,1,0);b=c+32|0;ea(b|0,(da(b|0,4,0,0)|0|0)+-1|0,4,0);return}function go(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,k=0,l=0,m=0,n=0,o=0,p=0;i=da(a|0,4,0,0)|0|0;o=a+36|0;g=da(o|0,4,0,0)|0|0;e=da(a+32|0,4,0,0)|0|0;f=g-e|0;m=(c|0)==1;if(m)if(f>>>0<(da(i+12|0,4,0,0)|0|0)>>>0?f>>>0<(da(a+24|0,4,0,0)|0|0)>>>0:0){if((da(3155*4|0,4,0,0)|0|0)!=0?((da(a+8|0,4,0,0)|0|0)+(da(a+4|0,4,0,0)|0|0)|0)<=(da(3154*4|0,4,0,0)|0|0):0)c=12648|0;else c=9060|0;if(!((da(c|0,4,0,0)|0|0)!=0&e>>>0<f>>>0))l=8;else d=0}else d=0;else l=8;do if((l|0)==8){k=a+40|0;if(g>>>0>=(da(k|0,4,0,0)|0|0)>>>0)co(a);h=a+12|0;do if((da(h|0,4,0,0)|0|0)!=0?(d=da(i+24|0,4,0,0)|0|0,(d|0)!=0):0){if(((da(o|0,4,0,0)|0|0)+1|0)>>>0<(da(a+20|0,4,0,0)|0|0)>>>0?(da(i+16|0,4,0,0)|0|0)>>>0<(da(i+4|0,4,0,0)|0|0)>>>0:0){if((da(3155*4|0,4,0,0)|0|0)!=0?((da(a+8|0,4,0,0)|0|0)+(da(a+4|0,4,0,0)|0|0)|0)<=(da(3154*4|0,4,0,0)|0|0):0)c=12648|0;else c=9060|0;if(!(da(c|0,4,0,0)|0)){l=23;break}}c=d+20|0;e=da(c|0,4,0,0)|0|0;f=(da(e+44|0,4,0,0)|0|0)+((((da(d+8|0,4,0,0)|0|0)>>>0)%((da(e+40|0,4,0,0)|0|0)>>>0)|0)<<2)|0;while(1){p=da(f|0,4,0,0)|0|0;g=p+16|0;if((p|0)==(d|0))break;else f=g}ea(f|0,da(g|0,4,0,0)|0|0,4,0);g=e+36|0;ea(g|0,(da(g|0,4,0,0)|0|0)+-1|0,4,0);fo(d);c=da(c|0,4,0,0)|0|0;if(((da(c+8|0,4,0,0)|0|0)+(da(c+4|0,4,0,0)|0|0)|0)==((da(a+8|0,4,0,0)|0|0)+(da(a+4|0,4,0,0)|0|0)|0)){j=i+16|0;ea(j|0,(da(h|0,4,0,0)|0|0)-(da(c+12|0,4,0,0)|0|0)+(da(j|0,4,0,0)|0|0)|0,4,0);break}else{ho(d);l=23;break}}else l=23;while(0);if((l|0)==23){if(m?(j=da(3164*4|0,4,0,0)|0|0,(j|0)!=0):0)mc[(fa(j|0,3|0)|0)&3]();c=a+4|0;e=Fo((da(c|0,4,0,0)|0|0)+32+(da(a+8|0,4,0,0)|0|0)|0)|0;c=da(c|0,4,0,0)|0|0;d=e+c|0;if(e){ea(d|0,e|0,4,0);ea(e+(c+4)|0,e+(c+32)|0,4,0);if(da(h|0,4,0,0)|0){l=(da(a|0,4,0,0)|0|0)+16|0;ea(l|0,(da(l|0,4,0,0)|0|0)+1|0,4,0)}}else d=0;if(m?(n=da(3166*4|0,4,0,0)|0|0,(n|0)!=0):0)mc[(fa(n|0,3|0)|0)&3]();if(!d){d=0;break}}e=(b>>>0)%((da(k|0,4,0,0)|0|0)>>>0)|0;ea(o|0,(da(o|0,4,0,0)|0|0)+1|0,4,0);ea(d+8|0,b|0,4,0);l=a+44|0;ea(d+16|0,da((da(l|0,4,0,0)|0|0)+(e<<2)|0,4,0,0)|0|0,4,0);ea(d+20|0,a|0,4,0);ea(d+28|0,0|0,4,0);ea(d+24|0,0|0,4,0);ea(d+12>>0|0,1|0,1,0);ea(da(d+4|0,4,0,0)|0|0,0|0,4,0);ea((da(l|0,4,0,0)|0|0)+(e<<2)|0,d|0,4,0);e=a+28|0;if((da(e|0,4,0,0)|0|0)>>>0<b>>>0)ea(e|0,b|0,4,0)}while(0);return d|0}function ho(a){a=a|0;var b=0;if((a|0)!=0?(b=da(a+20|0,4,0,0)|0|0,_k(da(a|0,4,0,0)|0|0),(da(b+12|0,4,0,0)|0|0)!=0):0){b=(da(b|0,4,0,0)|0|0)+16|0;ea(b|0,(da(b|0,4,0,0)|0|0)+-1|0,4,0)}return}function io(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=a+40|0;if(da(f|0,4,0,0)|0){g=a+44|0;d=a+36|0;e=0;do{c=(da(g|0,4,0,0)|0|0)+(e<<2)|0;a=da(c|0,4,0,0)|0|0;a:do if(a)do{while(1){if((da(a+8|0,4,0,0)|0|0)>>>0<b>>>0)break;ea(d|0,(da(d|0,4,0,0)|0|0)+-1|0,4,0);ea(c|0,da(a+16|0,4,0,0)|0|0,4,0);if(!(da(a+12>>0|0,1,0,0)|0))fo(a);ho(a);a=da(c|0,4,0,0)|0|0;if(!a)break a}c=a+16|0;a=da(c|0,4,0,0)|0|0}while((a|0)!=0);while(0);e=e+1|0}while(e>>>0<(da(f|0,4,0,0)|0|0)>>>0)}return}function jo(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=da(a|0,4,0,0)|0|0;e=da((da(d+32|0,4,0,0)|0|0)+88|0,4,0,0)|0|0;f=((e|0)<0)<<31>>31;if(!((f|0)<(c|0)|(f|0)==(c|0)&e>>>0<b>>>0)){b=pg(b,c)|0;if(!b){Qd(a);b=0}}else{ea(a+20|0,18|0,4,0);ea(a+25>>0|0,1|0,1,0);Wg(d,10096,-1,1,0)|0;b=0}return b|0}function ko(a){a=a|0;var b=0,c=0,d=0,e=0;do if(a){b=da(a>>0|0,1,0,0)|0|0;c=b<<24>>24;if((c|0)==96|(c|0)==34|(c|0)==39)e=b;else if((c|0)==91)e=93;else break;c=1;d=0;while(1){b=da(a+c>>0|0,1,0,0)|0|0;if(b<<24>>24==e<<24>>24){c=c+1|0;b=a+d|0;if((da(a+c>>0|0,1,0,0)|0|0)!=e<<24>>24)break;ea(b>>0|0,e|0,1,0)}else ea(a+d>>0|0,b|0,1,0);c=c+1|0;d=d+1|0}ea(b>>0|0,0|0,1,0)}while(0);return}function lo(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,k=0,l=0,m=0,n=0,o=0.0,p=0.0,q=0.0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,O=0;L=i;i=i+176|0;if((i|0)>=(j|0))ba();I=L+64|0;m=L+132|0;l=L+128|0;k=L+124|0;n=L+56|0;G=L+48|0;J=L+136|0;H=L;h=d+0|0;g=h+48|0;do{ea(h|0,0|0,4,0);h=h+4|0}while((h|0)<(g|0));a:do if(b){e=da(c|0,4,0,0)|0|0;b:do if(((da(10064+((da(e+8|0,2,0,1)|0)&31)>>0|0,1,0,1)|0|0)+-1|0)>>>0>=2){h=Rg(e,1)|0;if(!h){e=1;break a}g=(da(h>>0|0,1,0,0)|0|0)==45;e=g?h+1|0:h;ea(I|0,4|0,4,0);ea(I+4|0,0|0,4,0);ea(I+8|0,9999|0,4,0);ea(I+12|0,45|0,4,0);ea(I+16|0,m|0,4,0);ea(I+20|0,2|0,4,0);ea(I+24|0,1|0,4,0);ea(I+28|0,12|0,4,0);ea(I+32|0,45|0,4,0);ea(I+36|0,l|0,4,0);ea(I+40|0,2|0,4,0);ea(I+44|0,1|0,4,0);ea(I+48|0,31|0,4,0);ea(I+52|0,0|0,4,0);ea(I+56|0,k|0,4,0);do if((qq(e,I)|0)==3){e=e+10|0;while(1){f=da(e>>0|0,1,0,0)|0|0;if(f<<24>>24==84?1:((da(10368+(f&255)>>0|0,1,0,0)|0)&1)!=0)e=e+1|0;else break}if(rq(e,d)|0){if(da(e>>0|0,1,0,0)|0)break;ea(d+41>>0|0,0|0,1,0)}ea(d+42>>0|0,0|0,1,0);ea(d+40>>0|0,1|0,1,0);D=da(m|0,4,0,0)|0|0;ea(d+8|0,(g?0-D|0:D)|0,4,0);ea(d+12|0,da(l|0,4,0,0)|0|0,4,0);ea(d+16|0,da(k|0,4,0,0)|0|0,4,0);if(!(da(d+43>>0|0,1,0,0)|0))break b;mo(d);break b}while(0);if(rq(h,d)|0){if(!(cd(h,20080)|0))if(!(pq(a,d)|0))break;else{e=1;break a}else e=h;while(1)if(!(da(e>>0|0,1,0,0)|0))break;else e=e+1|0;if(!(Sl(h,n,e-h&1073741823,1)|0)){e=1;break a}o=+(+da(n|0,8,1,0))*864.0e5+.5;D=+N(o)>=1.0?(o>0.0?~~+$(+M(o/4294967296.0),4294967295.0)>>>0:~~+Z((o-+(~~o>>>0))/4294967296.0)>>>0):0;B=d;ea(B|0,~~o>>>0|0,4,0);ea(B+4|0,D|0,4,0);ea(d+42>>0|0,1|0,1,0)}}else{o=+Tg(e)*864.0e5+.5;D=+N(o)>=1.0?(o>0.0?~~+$(+M(o/4294967296.0),4294967295.0)>>>0:~~+Z((o-+(~~o>>>0))/4294967296.0)>>>0):0;B=d;ea(B|0,~~o>>>0|0,4,0);ea(B+4|0,D|0,4,0);ea(d+42>>0|0,1|0,1,0)}while(0);if((b|0)>1){f=d+40|0;e=d+41|0;r=d+43|0;s=d+42|0;t=J+8|0;u=t;v=J+9|0;w=d+24|0;x=d+20|0;y=d+32|0;z=d+16|0;A=d+12|0;B=J+1|0;D=d+8|0;E=1;while(1){l=Rg(da(c+(E<<2)|0,4,0,0)|0|0,1)|0;if(!l){e=1;break a}ea(I|0,1|0,4,0);n=0;do{m=da(l+n>>0|0,1,0,0)|0|0;if(!(m<<24>>24))break;ea(J+n>>0|0,da(9328+(m&255)>>0|0,1,0,0)|0|0|0,1,0);n=n+1|0}while((n|0)<29);ea(J+n>>0|0,0|0,1,0);c:do switch(da(J>>0|0,1,0,0)|0|0){case 119:{if(!(_v(J,19976,8)|0)){n=t;while(1)if(!(da(n>>0|0,1,0,0)|0))break;else n=n+1|0;if((Sl(t,G,n-u&1073741823,1)|0)!=0?(o=+(+da(G|0,8,1,0)),F=~~o,+(F|0)==o&(F|0)>-1&o<7.0):0){no(d);oo(d);ea(r>>0|0,0|0,1,0);ea(s>>0|0,0|0,1,0);mo(d);g=d;n=da(g|0,4,0,0)|0|0;g=da(g+4|0,4,0,0)|0|0;l=iw(n|0,g|0,1296e5,0)|0;l=pw(l|0,C|0,864e5,0)|0;l=qw(l|0,C|0,7,0)|0;h=C;O=((F|0)<0)<<31>>31;k=(h|0)>(O|0)|(h|0)==(O|0)&l>>>0>F>>>0;m=iw(l|0,h|0,-7,-1)|0;h=cw(F|0,O|0,(k?m:l)|0,(k?C:h)|0)|0;h=rw(h|0,C|0,864e5,0)|0;g=iw(h|0,C|0,n|0,g|0)|0;n=d;ea(n|0,g|0,4,0);ea(n+4|0,C|0,4,0);ea(f>>0|0,0|0,1,0);ea(e>>0|0,0|0,1,0);ea(r>>0|0,0|0,1,0);ea(I|0,0|0,4,0);n=0}else K=82}else K=82;break}case 117:{if((Zv(J,19952)|0)==0?(da(s>>0|0,1,0,0)|0|0)!=0:0){g=d;g=iw(da(g|0,4,0,0)|0|0,da(g+4|0,4,0,0)|0|0,43200,0)|0;g=pw(g|0,C|0,86400,0)|0;g=iw(g|0,C|0,1045635584,49096)|0;n=d;ea(n|0,g|0,4,0);ea(n+4|0,C|0,4,0);ea(f>>0|0,0|0,1,0);ea(e>>0|0,0|0,1,0);ea(r>>0|0,0|0,1,0);ea(I|0,0|0,4,0);n=0;break c}if(!(Zv(J,19968)|0)){mo(d);m=sq(d,a,I)|0;l=C;n=da(I|0,4,0,0)|0|0;if(!n){g=d;g=cw(da(g|0,4,0,0)|0|0,da(g+4|0,4,0,0)|0|0,m|0,l|0)|0;K=d;ea(K|0,g|0,4,0);ea(K+4|0,C|0,4,0);ea(f>>0|0,0|0,1,0);ea(e>>0|0,0|0,1,0);ea(r>>0|0,0|0,1,0);K=sq(d,a,I)|0;K=cw(m|0,l|0,K|0,C|0)|0;g=d;g=iw(K|0,C|0,da(g|0,4,0,0)|0|0,da(g+4|0,4,0,0)|0|0)|0;K=d;ea(K|0,g|0,4,0);ea(K+4|0,C|0,4,0);K=82}}else K=82;break}case 108:{if(!(Zv(J,19936)|0)){mo(d);g=sq(d,a,I)|0;K=d;g=iw(da(K|0,4,0,0)|0|0,da(K+4|0,4,0,0)|0|0,g|0,C|0)|0;K=d;ea(K|0,g|0,4,0);ea(K+4|0,C|0,4,0);ea(f>>0|0,0|0,1,0);ea(e>>0|0,0|0,1,0);ea(r>>0|0,0|0,1,0);K=82}else K=82;break}case 115:{if(!(_v(J,19992,9)|0)){no(d);ea(e>>0|0,1|0,1,0);ea(w|0,0|0,4,0);ea(x|0,0|0,4,0);ea(y|0,+(0.0),8,1);ea(r>>0|0,0|0,1,0);ea(s>>0|0,0|0,1,0);if(!(Zv(v,20008)|0)){ea(z|0,1|0,4,0);ea(I|0,0|0,4,0);n=0;break c}if(!(Zv(v,20016)|0)){no(d);ea(A|0,1|0,4,0);ea(z|0,1|0,4,0);ea(I|0,0|0,4,0);n=0;break c}if(!(Zv(v,20024)|0)){ea(I|0,0|0,4,0);n=0}else K=82}else K=82;break}case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:case 45:case 43:{l=1;while(1){n=J+l|0;m=da(n>>0|0,1,0,0)|0|0;if(m<<24>>24==58|m<<24>>24==0){m=n;break}if(!((da(10368+(m&255)>>0|0,1,0,0)|0)&1))l=l+1|0;else{m=n;break}}if(!(Sl(J,G,l,1)|0)){ea(I|0,1|0,4,0);n=1;break c}n=da(m>>0|0,1,0,0)|0|0;if(n<<24>>24==58){n=((da(J>>0|0,1,0,1)|0|0)+-48|0)>>>0<10?J:B;h=H+0|0;g=h+48|0;do{ea(h|0,0|0,4,0);h=h+4|0}while((h|0)<(g|0));if(rq(n,H)|0){K=82;break c}mo(H);n=H;n=iw(da(n|0,4,0,0)|0|0,da(n+4|0,4,0,0)|0|0,-432e5,-1)|0;n=qw(n|0,C|0,864e5,0)|0;m=C;g=H;ea(g|0,n|0,4,0);ea(g+4|0,m|0,4,0);if((da(J>>0|0,1,0,0)|0|0)==45){n=cw(0,0,n|0,m|0)|0;m=C;g=H;ea(g|0,n|0,4,0);ea(g+4|0,m|0,4,0)}mo(d);ea(f>>0|0,0|0,1,0);ea(e>>0|0,0|0,1,0);ea(r>>0|0,0|0,1,0);g=d;g=iw(da(g|0,4,0,0)|0|0,da(g+4|0,4,0,0)|0|0,n|0,m|0)|0;n=d;ea(n|0,g|0,4,0);ea(n+4|0,C|0,4,0);ea(I|0,0|0,4,0);n=0;break c}if((da(10368+(n&255)>>0|0,1,0,0)|0)&1){m=J+(l+1)|0;while(1){n=da(m>>0|0,1,0,0)|0|0;if(!((da(10368+(n&255)>>0|0,1,0,0)|0)&1))break;else m=m+1|0}}if(!(n<<24>>24))n=m;else{n=m;do n=n+1|0;while((da(n>>0|0,1,0,0)|0|0)!=0)}n=n-m&1073741823;if((n+-3|0)>>>0>7)K=82;else{l=n+-1|0;k=m+l|0;if((da(k>>0|0,1,0,0)|0|0)==115){ea(k>>0|0,0|0,1,0);n=l}mo(d);ea(I|0,0|0,4,0);p=+(+da(G|0,8,1,0));q=p<0.0?-.5:.5;do if((n|0)==3)if(!(Zv(m,20024)|0)){o=p*864.0e5+q;h=+N(o)>=1.0?(o>0.0?~~+$(+M(o/4294967296.0),4294967295.0)>>>0:~~+Z((o-+(~~o>>>0))/4294967296.0)>>>0):0;g=d;h=iw(da(g|0,4,0,0)|0|0,da(g+4|0,4,0,0)|0|0,~~o>>>0|0,h|0)|0;g=d;ea(g|0,h|0,4,0);ea(g+4|0,C|0,4,0)}else K=80;else if((n|0)==4){if(!(Zv(m,20032)|0)){o=p*36.0e5+q;h=+N(o)>=1.0?(o>0.0?~~+$(+M(o/4294967296.0),4294967295.0)>>>0:~~+Z((o-+(~~o>>>0))/4294967296.0)>>>0):0;g=d;h=iw(da(g|0,4,0,0)|0|0,da(g+4|0,4,0,0)|0|0,~~o>>>0|0,h|0)|0;g=d;ea(g|0,h|0,4,0);ea(g+4|0,C|0,4,0);break}if(!(Zv(m,20016)|0)){g=~~p;no(d);oo(d);ea(D|0,(da(D|0,4,0,0)|0|0)+g|0,4,0);ea(s>>0|0,0|0,1,0);mo(d);o=+(g|0);if(o!=p){o=q+(p-o)*365.0*864.0e5;h=+N(o)>=1.0?(o>0.0?~~+$(+M(o/4294967296.0),4294967295.0)>>>0:~~+Z((o-+(~~o>>>0))/4294967296.0)>>>0):0;g=d;h=iw(da(g|0,4,0,0)|0|0,da(g+4|0,4,0,0)|0|0,~~o>>>0|0,h|0)|0;g=d;ea(g|0,h|0,4,0);ea(g+4|0,C|0,4,0)}}else K=80}else if((n|0)==6){if(!(Zv(m,20040)|0)){o=p*6.0e4+q;h=+N(o)>=1.0?(o>0.0?~~+$(+M(o/4294967296.0),4294967295.0)>>>0:~~+Z((o-+(~~o>>>0))/4294967296.0)>>>0):0;g=d;h=iw(da(g|0,4,0,0)|0|0,da(g+4|0,4,0,0)|0|0,~~o>>>0|0,h|0)|0;g=d;ea(g|0,h|0,4,0);ea(g+4|0,C|0,4,0);break}if(!(Zv(m,20048)|0)){o=p*1.0e3+q;h=+N(o)>=1.0?(o>0.0?~~+$(+M(o/4294967296.0),4294967295.0)>>>0:~~+Z((o-+(~~o>>>0))/4294967296.0)>>>0):0;g=d;h=iw(da(g|0,4,0,0)|0|0,da(g+4|0,4,0,0)|0|0,~~o>>>0|0,h|0)|0;g=d;ea(g|0,h|0,4,0);ea(g+4|0,C|0,4,0)}else K=80}else if((n|0)==5?(Zv(m,20008)|0)==0:0){no(d);oo(d);g=~~p;h=(da(A|0,4,0,0)|0|0)+g|0;k=(((h|0)>0?-1:-12)+h|0)/12|0;ea(D|0,(da(D|0,4,0,0)|0|0)+k|0,4,0);ea(A|0,(_(k,-12)|0)+h|0,4,0);ea(s>>0|0,0|0,1,0);mo(d);o=+(g|0);if(o!=p){o=q+(p-o)*30.0*864.0e5;h=+N(o)>=1.0?(o>0.0?~~+$(+M(o/4294967296.0),4294967295.0)>>>0:~~+Z((o-+(~~o>>>0))/4294967296.0)>>>0):0;g=d;h=iw(da(g|0,4,0,0)|0|0,da(g+4|0,4,0,0)|0|0,~~o>>>0|0,h|0)|0;g=d;ea(g|0,h|0,4,0);ea(g+4|0,C|0,4,0)}}else K=80;while(0);if((K|0)==80)ea(I|0,1|0,4,0);ea(f>>0|0,0|0,1,0);ea(e>>0|0,0|0,1,0);ea(r>>0|0,0|0,1,0);K=82}break}default:K=82}while(0);if((K|0)==82){K=0;n=da(I|0,4,0,0)|0|0}E=E+1|0;if(n){e=1;break a}if((E|0)>=(b|0)){e=0;break a}}}else e=0}else e=pq(a,d)|0;while(0);i=L;return e|0}function mo(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0.0;f=a+42|0;if(!(da(f>>0|0,1,0,0)|0)){g=a+40|0;if(da(g>>0|0,1,0,0)|0){c=da(a+8|0,4,0,0)|0|0;b=da(a+12|0,4,0,0)|0|0;d=da(a+16|0,4,0,0)|0|0;if((b|0)<3)e=4}else{d=1;b=1;c=2e3;e=4}if((e|0)==4){b=b+12|0;c=c+-1|0}k=(+(d+2+((c|0)/-100|0)+((c|0)/400|0)+(((c*36525|0)+172251900|0)/100|0)+(((b*306001|0)+306001|0)/1e4|0)|0)+-1524.5)*864.0e5;c=~~k>>>0;d=+N(k)>=1.0?(k>0.0?~~+$(+M(k/4294967296.0),4294967295.0)>>>0:~~+Z((k-+(~~k>>>0))/4294967296.0)>>>0):0;b=a;ea(b|0,c|0,4,0);ea(b+4|0,d|0,4,0);ea(f>>0|0,1|0,1,0);b=a+41|0;if((da(b>>0|0,1,0,0)|0|0)!=0?(h=_(da(a+20|0,4,0,0)|0|0,36e5)|0,h=((da(a+24|0,4,0,0)|0|0)*6e4|0)+h|0,k=+(+da(a+32|0,8,1,0))*1.0e3,i=iw(~~k>>>0|0,(+N(k)>=1.0?(k>0.0?~~+$(+M(k/4294967296.0),4294967295.0)>>>0:~~+Z((k-+(~~k>>>0))/4294967296.0)>>>0):0)|0,c|0,d|0)|0,h=iw(i|0,C|0,h|0,((h|0)<0)<<31>>31|0)|0,i=C,j=a,ea(j|0,h|0,4,0),ea(j+4|0,i|0,4,0),j=a+43|0,(da(j>>0|0,1,0,0)|0|0)!=0):0){d=(da(a+28|0,4,0,0)|0|0)*6e4|0;d=cw(h|0,i|0,d|0,((d|0)<0)<<31>>31|0)|0;c=a;ea(c|0,d|0,4,0);ea(c+4|0,C|0,4,0);ea(g>>0|0,0|0,1,0);ea(b>>0|0,0|0,1,0);ea(j>>0|0,0|0,1,0)}}return}function no(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;e=a+40|0;if(!(da(e>>0|0,1,0,0)|0)){if(!(da(a+42>>0|0,1,0,0)|0)){b=2e3;c=1;d=1}else{b=a;b=iw(da(b|0,4,0,0)|0|0,da(b+4|0,4,0,0)|0|0,432e5,0)|0;b=pw(b|0,C|0,864e5,0)|0;f=~~((+(b|0)+-1867216.25)/36524.25);f=b+1525+f+((f|0)/-4|0)|0;b=~~((+(f|0)+-122.1)/365.25);f=f-((b*36525|0)/100|0)|0;d=~~(+(f|0)/30.6001);c=((d|0)<14?-1:-13)+d|0;b=((c|0)>2?-4716:-4715)+b|0;d=f-~~(+(d|0)*30.6001)|0}ea(a+16|0,d|0,4,0);ea(a+12|0,c|0,4,0);ea(a+8|0,b|0,4,0);ea(e>>0|0,1|0,1,0)}return}function oo(a){a=a|0;var b=0,c=0,d=0,e=0,f=0.0;b=a+41|0;if(!(da(b>>0|0,1,0,0)|0)){mo(a);e=a;e=iw(da(e|0,4,0,0)|0|0,da(e+4|0,4,0,0)|0|0,432e5,0)|0;e=qw(e|0,C|0,864e5,0)|0;f=+(e|0)/1.0e3;e=~~f;d=(e|0)/3600|0;ea(a+20|0,d|0,4,0);d=(_(d,-3600)|0)+e|0;c=(d|0)/60|0;ea(a+24|0,c|0,4,0);ea(a+32|0,+(f-+(e|0)+ +(d+(_(c,-60)|0)|0)),8,1);ea(b>>0|0,1|0,1,0)}return}function po(a){a=a|0;lg(da(a+52|0,4,0,0)|0|0,a);return}function qo(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(!(da(f>>0|0,1,0,0)|0)){if(!b){e=lh(a,c,d)|0;break}if((da(a+276|0,4,0,0)|0|0)>>>0<=b>>>0?(da(a+280|0,4,0,0)|0|0)>>>0>b>>>0:0){f=a+248|0;if(!(0<d>>>0|(0==(d|0)?(da(f|0,2,0,1)|0|0)>>>0<c>>>0:0))){e=b;break}e=lh(a,c,d)|0;if(!e){e=0;break}jw(e|0,b|0,da(f|0,2,0,1)|0|0)|0;lg(a,b);break}if((Kc()|0)==0?(e=qg(b,c,d)|0,(e|0)!=0):0)break;ea(f>>0|0,1|0,1,0);e=0}else e=0;while(0);return e|0}function ro(a,b){a=a|0;b=b|0;var c=0,d=0;if(!a)a=0;else{d=da(a+4|0,4,0,0)|0|0;ea(d+4|0,da(a|0,4,0,0)|0|0,4,0);d=d+22|0;a=da(d|0,2,0,0)|0|0;if((b|0)>-1){c=a&65535;a=c&65531;ea(d|0,a|0,2,0);if(b){a=(c|4)&65535;ea(d|0,a|0,2,0)}}a=(a&65535)>>>2&1}return a|0}function so(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=da(a+4|0,4,0,0)|0|0;ea(e+4|0,da(a|0,4,0,0)|0|0,4,0);e=da(e|0,4,0,0)|0|0;c=b&3;if((c|0)!=1){d=da(e+12>>0|0,1,0,0)|0|0;a=e+7|0;ea(a>>0|0,d<<24>>24!=0&1|0,1,0);if((c|0)==3)d=d<<24>>24==0&1;else d=0}else{a=e+7|0;ea(a>>0|0,1|0,1,0);d=0}ea(e+8>>0|0,d|0,1,0);do if(!(da(a>>0|0,1,0,0)|0)){if(b&4){ea(e+11>>0|0,3|0,1,0);ea(e+9>>0|0,3|0,1,0);a=3;break}ea(e+11>>0|0,2|0,1,0);a=e+9|0;if(!(b&8)){ea(a>>0|0,2|0,1,0);a=2;break}else{ea(a>>0|0,3|0,1,0);a=2;break}}else{ea(e+11>>0|0,0|0,1,0);ea(e+9>>0|0,0|0,1,0);a=0}while(0);if(d<<24>>24)a=(a&255|32)&255;ea(e+10>>0|0,a|0,1,0);c=e+20|0;a=da(c>>0|0,1,0,1)|0|0;ea(c>>0|0,((b&16|0)==0?a|1:a&254)|0,1,0);return}function to(a){a=a|0;var b=0,c=0;c=a+12|0;b=da(c|0,4,0,0)|0|0;if((b|0)>-1){$n(a,b,27311);ea(c|0,-1|0,4,0)}Vc(da(a+28|0,4,0,0)|0|0);b=a+0|0;c=b+44|0;do{ea(b|0,0|0,4,0);b=b+4|0}while((b|0)<(c|0));return}function uo(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,i=0;h=e&131071;while(1){g=bb(a|0,b|0,0)|0;if(!((g|0)==(b|0)&(((g|0)<0)<<31>>31|0)==(c|0))){i=3;break}g=$b[(fa(da(47552+136|0,4,0,0)|0|0,63|0)|0)&63](a,d,h)|0;if((g|0)>=0)break;e=da(Gb()|0|0,4,0,0)|0|0;if((e|0)!=4){i=9;break}}if((i|0)==3)if(!f)g=-1;else{if((g|0)==-1)g=da(Gb()|0|0,4,0,0)|0|0;else g=0;ea(f|0,g|0,4,0);g=-1}else if((i|0)==9)if(f)ea(f|0,e|0,4,0);return g|0}function vo(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=da(c|0,4,0,0)|0|0;do if((d|0)>=0){b=b&255;if(!d){c=a+18|0;ea(c|0,(da(c|0,2,0,1)|0|0)&(b^65535)|0,2,0);break}else{c=a+18|0;ea(c|0,da(c|0,2,0,1)|0|0|b|0,2,0);break}}else ea(c|0,((da(a+18|0,2,0,1)|0|0)&(b&255)|0)!=0&1|0,4,0);while(0);return}function wo(a){a=a|0;var b=0,c=0,d=0;d=i;i=i+80|0;if((i|0)>=(j|0))ba();c=d;b=a+8|0;if(da(b|0,4,0,0)|0)if(!(qc[(fa(da(47552+52|0,4,0,0)|0|0,127|0)|0)&127](da(a+32|0,4,0,0)|0|0,c)|0))b=(da(c+72|0,4,0,0)|0|0)!=(da((da(b|0,4,0,0)|0|0)+4|0,4,0,0)|0|0);else b=1;else b=0;i=d;return b&1|0}function xo(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=i;i=i+32|0;if((i|0)>=(j|0))ba();g=h;f=h+8|0;e=(da((da(a+8|0,4,0,0)|0|0)+20|0,4,0,0)|0|0)+12|0;if((da(e|0,4,0,0)|0|0)>-1){ea(f+0|0,0|0,4,0);ea(f+4|0,0|0,4,0);ea(f+8|0,0|0,4,0);ea(f+12|0,0|0,4,0);ea(f|0,b|0,2,0);ea(f+2|0,0|0,2,0);ea(f+4|0,c|0,4,0);ea(f+8|0,d|0,4,0);b=a+18|0;d=(((da(b|0,2,0,0)|0)&512)>>>9)+13|0;c=da(11910*4|0,4,0,0)|0|0;e=da(e|0,4,0,0)|0|0;ea(g|0,f|0,4,0);e=($b[(fa(c|0,63|0)|0)&63](e,d,g)|0)!=-1;ea(b|0,(da(b|0,2,0,1)|0|0)&65023|0,2,0);e=e?0:5}else e=0;i=h;return e|0}function yo(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;h=da((da(a+8|0,4,0,0)|0|0)+20|0,4,0,0)|0|0;if((h|0)!=0?(da(h+28|0,4,0,0)|0|0)==0:0){b=gc[(fa(da(47552+292|0,4,0,0)|0|0,7|0)|0)&7]()|0;if((b|0)<32768)d=1;else d=(b|0)/32768|0;e=h+20|0;if(!(da(e|0,2,0,0)|0)){c=h+12|0;b=h+24|0}else{c=h+12|0;b=h+24|0;f=h+16|0;g=0;do{if((da(c|0,4,0,0)|0|0)>-1)qc[(fa(da(47552+268|0,4,0,0)|0|0,127|0)|0)&127](da((da(b|0,4,0,0)|0|0)+(g<<2)|0,4,0,0)|0|0,da(f|0,4,0,0)|0|0)|0;else Vc(da((da(b|0,4,0,0)|0|0)+(g<<2)|0,4,0,0)|0|0);g=g+d|0}while((g|0)<(da(e|0,2,0,1)|0|0))}Vc(da(b|0,4,0,0)|0|0);b=da(c|0,4,0,0)|0|0;if((b|0)>-1){$n(a,b,29591);ea(c|0,-1|0,4,0)}ea((da(h|0,4,0,0)|0|0)+20|0,0|0,4,0);Vc(h)}return}function zo(a){a=a|0;var b=0,c=0,d=0;c=(da(a+8|0,4,0,0)|0|0)+28|0;b=da(c|0,4,0,0)|0|0;if(b)do{d=b;b=da(b+8|0,4,0,0)|0|0;$n(a,da(d|0,4,0,0)|0|0,26573);Vc(d)}while((b|0)!=0);ea(c|0,0|0,4,0);return}function Ao(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;g=i;i=i+32|0;if((i|0)>=(j|0))ba();e=g;d=g+8|0;f=da(a+8|0,4,0,0)|0|0;c=da(a+18|0,2,0,0)|0|0;if(!(c&1))if((da(f+13>>0|0,1,0,0)|0|0)!=0&(c&2)==0)c=4;else c=7;else if(!(c&2))c=4;else c=7;if((c|0)==4){c=f+13|0;if(!(da(c>>0|0,1,0,0)|0)){ea(d+2|0,0|0,2,0);ea(d+4|0,(da(2514*4|0,4,0,0)|0|0)+2|0,4,0);ea(d+8|0,510|0,4,0);ea(d|0,1|0,2,0);h=da(11910*4|0,4,0,0)|0|0;b=da(a+12|0,4,0,0)|0|0;ea(e|0,d|0,4,0);b=$b[(fa(h|0,63|0)|0)&63](b,13,e)|0;if((b|0)>=0){ea(c>>0|0,1|0,1,0);c=f+24|0;ea(c|0,(da(c|0,4,0,0)|0|0)+1|0,4,0)}}else b=0}else if((c|0)==7){d=da(11910*4|0,4,0,0)|0|0;c=da(a+12|0,4,0,0)|0|0;ea(e|0,b|0,4,0);b=$b[(fa(d|0,63|0)|0)&63](c,13,e)|0}i=g;return b|0}function Bo(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;do if(b){e=da(b|0,4,0,0)|0|0;if(!e){ea(b|0,1|0,4,0);ea(b+4|0,c|0,4,0);f=9;break}g=b+4|0;d=da(g|0,4,0,0)|0|0;ea(b|0,e+1|0,4,0);ea(g|0,c|0,4,0);if(d){ea(c|0,d|0,4,0);d=d+4|0;ea(c+4|0,da(d|0,4,0,0)|0|0,4,0);e=da(d|0,4,0,0)|0|0;if(!e)ea(a+8|0,c|0,4,0);else ea(e|0,c|0,4,0);ea(d|0,c|0,4,0)}else f=9}else f=9;while(0);if((f|0)==9){d=a+8|0;e=da(d|0,4,0,0)|0|0;ea(c|0,e|0,4,0);if(e)ea(e+4|0,c|0,4,0);ea(c+4|0,0|0,4,0);ea(d|0,c|0,4,0)}return}function Co(a,b){a=a|0;b=b|0;var c=0,d=0;if(b){if((da(b|0,4,0,0)|0|0)>0){c=0;d=b+8|0;while(1){lg(a,da(d+4|0,4,0,0)|0|0);lg(a,da(d+8|0,4,0,0)|0|0);lg(a,da(d+12|0,4,0,0)|0|0);lg(a,da(d+64|0,4,0,0)|0|0);jg(a,da(d+16|0,4,0,0)|0|0);Lk(a,da(d+20|0,4,0,0)|0|0,1);Fk(a,da(d+44|0,4,0,0)|0|0);Gk(a,da(d+48|0,4,0,0)|0|0);c=c+1|0;if((c|0)>=(da(b|0,4,0,0)|0|0))break;else d=d+72|0}}lg(a,b)}return}function Do(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;c=Eo(a,c)|0;if((c|0)>0){d=a+12|0;jw((da(a+8|0,4,0,0)|0|0)+(da(d|0,4,0,0)|0|0)|0,b|0,c|0)|0;ea(d|0,(da(d|0,4,0,0)|0|0)+c|0,4,0)}return}function Eo(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,k=0,l=0,m=0,n=0,o=0;g=a+25|0;do if(!(da(g>>0|0,1,0,0)|0)){d=da(a+24>>0|0,1,0,0)|0|0;if(!(d<<24>>24)){c=a+16|0;b=(da(c|0,4,0,0)|0|0)+-1-(da(a+12|0,4,0,0)|0|0)|0;ea(g>>0|0,2|0,1,0);ea(c|0,0|0,4,0);break}h=a+8|0;c=da(h|0,4,0,0)|0|0;e=(c|0)==(da(a+4|0,4,0,0)|0|0)?0:c;f=a+12|0;l=da(f|0,4,0,0)|0|0;c=((l|0)<0)<<31>>31;o=b+1|0;o=iw(l|0,c|0,o|0,((o|0)<0)<<31>>31|0)|0;m=C;c=iw(o|0,m|0,l|0,c|0)|0;l=C;j=da(a+20|0,4,0,0)|0|0;k=((j|0)<0)<<31>>31;n=(l|0)>(k|0)|(l|0)==(k|0)&c>>>0>j>>>0;c=n?o:c;l=n?m:l;if((l|0)>(k|0)|(l|0)==(k|0)&c>>>0>j>>>0){fn(a);ea(g>>0|0,2|0,1,0);ea(a+16|0,0|0,4,0);b=0;break}j=a+16|0;ea(j|0,c|0,4,0);if(d<<24>>24==1)d=qo(da(a|0,4,0,0)|0|0,e,c,((c|0)<0)<<31>>31)|0;else d=Wc(e,c)|0;if(!d){fn(a);ea(g>>0|0,1|0,1,0);ea(j|0,0|0,4,0);b=0;break}if((e|0)==0?(i=da(f|0,4,0,0)|0|0,(i|0)>0):0)jw(d|0,da(h|0,4,0,0)|0|0,i|0)|0;ea(h|0,d|0,4,0);c=da(a|0,4,0,0)|0|0;do if(!c)c=kc[(fa(da(8744+48|0,4,0,0)|0|0,127|0)|0)&127](d)|0;else{if((da(c+276|0,4,0,0)|0|0)>>>0<=d>>>0?(da(c+280|0,4,0,0)|0|0)>>>0>d>>>0:0){c=da(c+248|0,2,0,1)|0|0;break}c=kc[(fa(da(8744+48|0,4,0,0)|0|0,127|0)|0)&127](d)|0}while(0);ea(j|0,c|0,4,0)}else b=0;while(0);return b|0}function Fo(a){a=a|0;var b=0,c=0;if((da(3154*4|0,4,0,0)|0|0)>=(a|0)?(b=da(3160*4|0,4,0,0)|0|0,(b|0)!=0):0){ea(3160*4|0,da(b|0,4,0,0)|0|0,4,0);c=da(3161*4|0,4,0,0)|0|0;ea(3161*4|0,c+-1|0,4,0);ea(3162*4|0,(c|0)<=(da(3156*4|0,4,0,0)|0|0)&1|0,4,0);ea(2173*4|0,a|0,4,0);if((da(2183*4|0,4,0,0)|0|0)>>>0<a>>>0)ea(2183*4|0,a|0,4,0);c=(da(2167*4|0,4,0,0)|0|0)+1|0;ea(2167*4|0,c|0,4,0);if(c>>>0>(da(2177*4|0,4,0,0)|0|0)>>>0)ea(2177*4|0,c|0,4,0)}else{b=pg(a,((a|0)<0)<<31>>31)|0;if(b){c=kc[(fa(da(8744+48|0,4,0,0)|0|0,127|0)|0)&127](b)|0;ea(2173*4|0,a|0,4,0);if((da(2183*4|0,4,0,0)|0|0)>>>0<a>>>0)ea(2183*4|0,a|0,4,0);c=(da(2168*4|0,4,0,0)|0|0)+c|0;ea(2168*4|0,c|0,4,0);if(c>>>0>(da(2178*4|0,4,0,0)|0|0)>>>0)ea(2178*4|0,c|0,4,0)}else b=0}return b|0}function Go(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;f=a+20|0;if(da(f|0,4,0,0)|0){d=a+24|0;g=$b[(fa(da(8744+120|0,4,0,0)|0|0,63|0)|0)&63](b,(da(d|0,4,0,0)|0|0)+40|0,da(a+28>>0|0,1,0,1)|0|0)|0;if(!g)c=7;else{e=da(2217*4|0,4,0,0)|0|0;c=da(a+16|0,4,0,0)|0|0;if((c|0)<=-1){h=rw(c|0,((c|0)<0)<<31>>31|0,-1024,-1)|0;c=(da(d|0,4,0,0)|0|0)+(da(f|0,4,0,0)|0|0)|0;c=pw(h|0,C|0,c|0,((c|0)<0)<<31>>31|0)|0}ic[(fa(e|0,15|0)|0)&15](g,c);c=a+40|0;d=da(c|0,4,0,0)|0|0;if(d)bc[(fa(da(8744+148|0,4,0,0)|0|0,31|0)|0)&31](d);ea(c|0,g|0,4,0);ea(a+44|0,0|0,4,0);ea(f|0,b|0,4,0);c=0}}else c=0;return c|0}function Ho(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();e=g;d=da(a+208|0,4,0,0)|0|0;if(((d|0)!=0?(da(d+40|0,2,0,0)|0|0)>-1:0)?(c=da(d+72|0,4,0,0)|0|0,(c|0)!=0):0){d=c;f=8}else f=4;do if((f|0)==4){d=e;ea(d|0,0|0,4,0);ea(d+4|0,0|0,4,0);d=da(a+60|0,4,0,0)|0|0;c=da(d|0,4,0,0)|0|0;if(!c){c=-1;d=-1}else{c=qc[(fa(da(c+24|0,4,0,0)|0|0,127|0)|0)&127](d,e)|0;if(c)break;c=e;c=iw(da(c|0,4,0,0)|0|0,da(c+4|0,4,0,0)|0|0,-1,-1)|0;d=C}e=da(a+152|0,4,0,0)|0|0;f=((e|0)<0)<<31>>31;d=iw(c|0,d|0,e|0,f|0)|0;d=pw(d|0,C|0,e|0,f|0)|0;f=8}while(0);if((f|0)==8){c=a+156|0;if(d>>>0>(da(c|0,4,0,0)|0|0)>>>0)ea(c|0,d|0,4,0);ea(b|0,d|0,4,0);c=0}i=g;return c|0}function Io(a){a=a|0;var b=0,c=0;c=a+64|0;if(!((da(a+7>>0|0,1,0,0)|0|0)==0?(b=da(c|0,4,0,0)|0|0,b=qc[(fa(da((da(b|0,4,0,0)|0|0)+20|0,4,0,0)|0|0,127|0)|0)&127](b,2)|0,(b|0)!=0):0)){b=da(c|0,4,0,0)|0|0;b=qc[(fa(da((da(b|0,4,0,0)|0|0)+24|0,4,0,0)|0|0,127|0)|0)&127](b,a+80|0)|0}return b|0}function Jo(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0;D=i;i=i+48|0;if((i|0)>=(j|0))ba();A=D+16|0;z=D+8|0;y=D+36|0;u=D;m=D+32|0;t=D+28|0;x=D+24|0;d=da(a|0,4,0,0)|0|0;ea(t|0,0|0,4,0);ea(x|0,1|0,4,0);w=a+64|0;e=da(w|0,4,0,0)|0|0;e=qc[(fa(da((da(e|0,4,0,0)|0|0)+24|0,4,0,0)|0|0,127|0)|0)&127](e,u)|0;a:do if(!e){v=a+200|0;e=da(v|0,4,0,0)|0|0;f=tq(da(w|0,4,0,0)|0|0,e,(da((da(a|0,4,0,0)|0|0)+8|0,4,0,0)|0|0)+1|0)|0;if(!f){if(!(da(e>>0|0,1,0,0)|0))e=0;else e=oc[(fa(da(d+32|0,4,0,0)|0|0,31|0)|0)&31](d,e,0,x)|0;b:do if((e|0)==0&(da(x|0,4,0,0)|0|0)!=0){s=a+72|0;r=s;ea(r|0,0|0,4,0);ea(r+4|0,0|0,4,0);r=a+148|0;q=a+152|0;p=a+80|0;o=a+24|0;d=0;g=b;c:while(1){do{e=u;e=uq(a,b,da(e|0,4,0,0)|0|0,da(e+4|0,4,0,0)|0|0,m,t)|0;if((e|0)==101)break c;else if(e){B=27;break b}f=da(m|0,4,0,0)|0|0;if((f|0)==-1){e=u;e=cw(da(e|0,4,0,0)|0|0,da(e+4|0,4,0,0)|0|0,da(r|0,4,0,0)|0|0,0)|0;f=(da(q|0,4,0,0)|0|0)+8|0;f=pw(e|0,C|0,f|0,((f|0)<0)<<31>>31|0)|0;ea(m|0,f|0,4,0)}if(!(f|b)){h=p;e=da(r|0,4,0,0)|0|0;h=iw(e|0,0,da(h|0,4,0,0)|0|0,da(h+4|0,4,0,0)|0|0)|0;l=C;k=s;n=da(k|0,4,0,0)|0|0;k=da(k+4|0,4,0,0)|0|0;if((h|0)==(n|0)&(l|0)==(k|0)){k=u;k=cw(da(k|0,4,0,0)|0|0,da(k+4|0,4,0,0)|0|0,h|0,l|0)|0;f=(da(q|0,4,0,0)|0|0)+8|0;f=pw(k|0,C|0,f|0,((f|0)<0)<<31>>31|0)|0;ea(m|0,f|0,4,0);k=l}else h=n}else{h=s;e=da(r|0,4,0,0)|0|0;k=da(h+4|0,4,0,0)|0|0;h=da(h|0,4,0,0)|0|0}if((h|0)==(e|0)&(k|0)==0){e=da(t|0,4,0,0)|0|0;h=Al(a,e)|0;if(h){c=h;B=25;break a}ea(o|0,e|0,4,0)}}while((f|0)==0);h=0;while(1){if(g)wn(a);e=vq(a,s,0,1,0)|0;if((e|0)==101)break;else if((e|0)==522)break c;else if(e){B=27;break b}d=d+1|0;e=h+1|0;if(e>>>0<f>>>0){g=0;h=e}else{g=0;continue c}}f=u;g=da(f+4|0,4,0,0)|0|0;e=s;ea(e|0,da(f|0,4,0,0)|0|0,4,0);ea(e+4|0,g|0,4,0);g=0}ea(a+18>>0|0,da(a+12>>0|0,1,0,0)|0|0|0,1,0);t=d}else{d=0;B=27}while(0);if((B|0)==27){ea(a+18>>0|0,da(a+12>>0|0,1,0,0)|0|0|0,1,0);if(!e)t=d;else{c=e;break}}s=da(v|0,4,0,0)|0|0;e=tq(da(w|0,4,0,0)|0|0,s,(da((da(a|0,4,0,0)|0|0)+8|0,4,0,0)|0|0)+1|0)|0;if(!e){if(((da(a+16>>0|0,1,0,0)|0|0)+-1&255)>2?(c=Hg(a,0)|0,(c|0)!=0):0){d=t;break}c=Bl(a,(da(s>>0|0,1,0,0)|0|0)!=0&1,0)|0;if(!c)if((da(s>>0|0,1,0,0)|0|0)!=0&(da(x|0,4,0,0)|0|0)!=0){q=da(a|0,4,0,0)|0|0;e=q+4|0;d=(da(e|0,4,0,0)|0)<<1;r=pg(d,((d|0)<0)<<31>>31)|0;if(!r){d=t;c=7}else{ew(r|0,0,d|0)|0;o=r+(da(e|0,4,0,0)|0|0)|0;p=q+24|0;c=sc[(fa(da(p|0,4,0,0)|0|0,31|0)|0)&31](q,s,r,16385,0)|0;d:do if(!c){c=qc[(fa(da((da(r|0,4,0,0)|0|0)+24|0,4,0,0)|0|0,127|0)|0)&127](r,z)|0;if(!c){m=(da(q+8|0,4,0,0)|0|0)+1|0;d=z;d=iw(da(d|0,4,0,0)|0|0,da(d+4|0,4,0,0)|0|0,1,0)|0;d=iw(d|0,C|0,m|0,((m|0)<0)<<31>>31|0)|0;d=pg(d,C)|0;if(d){n=z;c=da(n|0,4,0,0)|0|0;n=iw(c|0,da(n+4|0,4,0,0)|0|0,1,0)|0;n=d+n|0;c=sc[(fa(da((da(r|0,4,0,0)|0|0)+8|0,4,0,0)|0|0,31|0)|0)&31](r,d,c,0,0)|0;if(!c){ea(d+(da(z|0,4,0,0)|0|0)>>0|0,0|0,1,0);l=d;x=z;w=da(x+4|0,4,0,0)|0|0;if((w|0)>0|(w|0)==0&(da(x|0,4,0,0)|0|0)>>>0>0){h=q+32|0;k=l;g=d;do{c=oc[(fa(da(h|0,4,0,0)|0|0,31|0)|0)&31](q,g,0,y)|0;if(c){B=55;break d}do if(da(y|0,4,0,0)|0){c=sc[(fa(da(p|0,4,0,0)|0|0,31|0)|0)&31](q,g,o,2049,0)|0;if(c){B=55;break d}c=tq(o,n,m)|0;f=da(o|0,4,0,0)|0|0;if(f){kc[(fa(da(f+4|0,4,0,0)|0|0,127|0)|0)&127](o)|0;ea(o|0,0|0,4,0)}if(c){B=55;break d}if(!(da(n>>0|0,1,0,0)|0))break;if(!(Zv(n,s)|0)){c=0;B=55;break d}}while(0);if(!g)f=1;else{f=g;while(1)if(!(da(f>>0|0,1,0,0)|0))break;else f=f+1|0;f=(f-k&1073741823)+1|0}g=g+f|0;k=g;f=k-l|0;w=((f|0)<0)<<31>>31;e=z;x=da(e+4|0,4,0,0)|0|0}while((w|0)<(x|0)|((w|0)==(x|0)?f>>>0<(da(e|0,4,0,0)|0|0)>>>0:0))}c=da(r|0,4,0,0)|0|0;if(c){kc[(fa(da(c+4|0,4,0,0)|0|0,127|0)|0)&127](r)|0;ea(r|0,0|0,4,0)}c=$b[(fa(da(q+28|0,4,0,0)|0|0,63|0)|0)&63](q,s,0)|0;Vc(d)}else B=55}else{c=7;d=0;B=55}}else{d=0;B=55}}else{d=0;B=55}while(0);if((B|0)==55)Vc(d);d=da(r|0,4,0,0)|0|0;if(d){kc[(fa(da(d+4|0,4,0,0)|0|0,127|0)|0)&127](r)|0;ea(r|0,0|0,4,0)}Vc(r);d=t}}else{d=t;c=0}else d=t}else{d=t;c=e}}else{d=0;c=f;B=25}}else{d=0;c=e;B=25}while(0);if((B|0)==25)ea(a+18>>0|0,da(a+12>>0|0,1,0,0)|0|0|0,1,0);if((b|0)!=0&(d|0)!=0){z=da(a+172|0,4,0,0)|0|0;ea(A|0,d|0,4,0);ea(A+4|0,z|0,4,0);ad(539,14776,A)}vp(a);i=D;return c|0}function Ko(a){a=a|0;var b=0,c=0;b=a+44|0;if(da(b>>0|0,1,0,0)|0){if(!(da(a+43>>0|0,1,0,0)|0)){c=da(a+4|0,4,0,0)|0|0;oc[(fa(da((da(c|0,4,0,0)|0|0)+56|0,4,0,0)|0|0,31|0)|0)&31](c,0,1,9)|0}ea(b>>0|0,0|0,1,0);ea(a+47>>0|0,0|0,1,0)}b=a+40|0;c=da(b|0,2,0,0)|0|0;if(c<<16>>16>-1){if(!(da(a+43>>0|0,1,0,0)|0)){a=da(a+4|0,4,0,0)|0|0;oc[(fa(da((da(a|0,4,0,0)|0|0)+56|0,4,0,0)|0|0,31|0)|0)&31](a,(c<<16>>16)+3|0,1,5)|0}ea(b|0,-1|0,2,0)}return}function Lo(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,k=0;if((d|0)>5)if((d|0)>100)c=15;else{if((d|0)>9){d=d+-9|0;d=_(d*39|0,d)|0}else d=1;e=da(a|0,4,0,0)|0|0;qc[(fa(da(e+60|0,4,0,0)|0|0,127|0)|0)&127](e,d)|0;e=6}else e=6;a:do if((e|0)==6){do if(!c){c=mq(a,b)|0;do if((c|0)==5){if(!(da(da(a+32|0,4,0,0)|0|0,4,0,0)|0)){c=-1;break a}b=a+43|0;if(da(b>>0|0,1,0,0)|0){c=-1;break a}d=a+4|0;c=da(d|0,4,0,0)|0|0;c=oc[(fa(da((da(c|0,4,0,0)|0|0)+56|0,4,0,0)|0|0,31|0)|0)&31](c,2,1,6)|0;if((c|0)==5){c=261;break a}else if(c)break;if(da(b>>0|0,1,0,0)|0){c=-1;break a}c=da(d|0,4,0,0)|0|0;oc[(fa(da((da(c|0,4,0,0)|0|0)+56|0,4,0,0)|0|0,31|0)|0)&31](c,2,1,5)|0;c=-1;break a}while(0);if(c)break a;d=a+32|0;g=(da(da(d|0,4,0,0)|0|0,4,0,0)|0|0)+96|0;b=a+52|0;if((da(g|0,4,0,0)|0|0)==(da(a+68|0,4,0,0)|0|0)){f=a+43|0;e=da(f>>0|0,1,0,0)|0|0;if(!(e<<24>>24)){c=da(a+4|0,4,0,0)|0|0;c=oc[(fa(da((da(c|0,4,0,0)|0|0)+56|0,4,0,0)|0|0,31|0)|0)&31](c,3,1,6)|0;e=da(f>>0|0,1,0,0)|0|0}else c=0;if(e<<24>>24!=2){k=da(a+4|0,4,0,0)|0|0;bc[(fa(da((da(k|0,4,0,0)|0|0)+60|0,4,0,0)|0|0,31|0)|0)&31](k)}if((c|0)==5){k=d;d=5;break}else if(c)break a;if(!(Yv(da(da(d|0,4,0,0)|0|0,4,0,0)|0|0,b,48)|0)){ea(a+40|0,0|0,2,0);c=0;break a}if(da(f>>0|0,1,0,0)|0){c=-1;break a}c=da(a+4|0,4,0,0)|0|0;oc[(fa(da((da(c|0,4,0,0)|0|0)+56|0,4,0,0)|0|0,31|0)|0)&31](c,3,1,5)|0;c=-1;break a}else{k=d;d=0}}else{g=a+32|0;k=g;g=(da(da(g|0,4,0,0)|0|0,4,0,0)|0|0)+96|0;d=0}while(0);j=a+68|0;b=da(g+8|0,4,0,0)|0|0;f=b>>>0>(da(j|0,4,0,0)|0|0)>>>0;b=f?0:b;f=f&1^1;e=da(g+12|0,4,0,0)|0|0;if(b>>>0<=e>>>0){i=e>>>0>(da(j|0,4,0,0)|0|0)>>>0;f=i?f:2;b=i?b:e}e=da(g+16|0,4,0,0)|0|0;if(b>>>0<=e>>>0){i=e>>>0>(da(j|0,4,0,0)|0|0)>>>0;f=i?f:3;b=i?b:e}e=da(g+20|0,4,0,0)|0|0;if(b>>>0<=e>>>0){i=e>>>0>(da(j|0,4,0,0)|0|0)>>>0;f=i?f:4;b=i?b:e}b:do if(((da(a+46>>0|0,1,0,0)|0)&2)==0?((f|0)==0?1:b>>>0<(da(j|0,4,0,0)|0|0)>>>0):0){i=a+43|0;h=a+4|0;e=1;while(1){d=e+3|0;if(da(i>>0|0,1,0,0)|0){f=e;break}c=da(h|0,4,0,0)|0|0;c=oc[(fa(da((da(c|0,4,0,0)|0|0)+56|0,4,0,0)|0|0,31|0)|0)&31](c,d,1,10)|0;if(!c){f=e;break}else if((c|0)!=5)break a;e=e+1|0;if((e|0)>=5){d=5;break b}}e=da(j|0,4,0,0)|0|0;ea(g+(f<<2)+4|0,e|0,4,0);if(!(da(i>>0|0,1,0,0)|0)){b=da(h|0,4,0,0)|0|0;oc[(fa(da((da(b|0,4,0,0)|0|0)+56|0,4,0,0)|0|0,31|0)|0)&31](b,d,1,9)|0;b=e;d=0}else{b=e;d=0}}while(0);if(!f){c=(d|0)==5?-1:520;break}d=f+3|0;c=a+43|0;e=da(c>>0|0,1,0,0)|0|0;do if(!(e<<24>>24)){e=da(a+4|0,4,0,0)|0|0;e=oc[(fa(da((da(e|0,4,0,0)|0|0)+56|0,4,0,0)|0|0,31|0)|0)&31](e,d,1,6)|0;if(!e){e=da(c>>0|0,1,0,0)|0|0;break}else{c=(e|0)==5?-1:e;break a}}while(0);if(e<<24>>24!=2){j=da(a+4|0,4,0,0)|0|0;bc[(fa(da((da(j|0,4,0,0)|0|0)+60|0,4,0,0)|0|0,31|0)|0)&31](j)}if((da(g+(f<<2)+4|0,4,0,0)|0|0)==(b|0)?(Yv(da(da(k|0,4,0,0)|0|0,4,0,0)|0|0,a+52|0,48)|0)==0:0){ea(a+40|0,f|0,2,0);c=0;break}if(!(da(c>>0|0,1,0,0)|0)){c=da(a+4|0,4,0,0)|0|0;oc[(fa(da((da(c|0,4,0,0)|0|0)+56|0,4,0,0)|0|0,31|0)|0)&31](c,d,1,5)|0;c=-1}else c=-1}while(0);return c|0}function Mo(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;c=a+56|0;di(da(c|0,4,0,0)|0|0);ea(c|0,0|0,4,0);bp(a);c=da(a+208|0,4,0,0)|0|0;if(!c){if(!(da(a+4>>0|0,1,0,0)|0)){d=a+60|0;c=da(d|0,4,0,0)|0|0;b=da(c|0,4,0,0)|0|0;if(!(((b|0)!=0?((kc[(fa(da(b+48|0,4,0,0)|0|0,127|0)|0)&127](c)|0)&2048|0)!=0:0)?((da(a+5>>0|0,1,0,0)|0)&5)==1:0))g=7;if((g|0)==7?(e=da(a+64|0,4,0,0)|0|0,f=da(e|0,4,0,0)|0|0,(f|0)!=0):0){kc[(fa(da(f+4|0,4,0,0)|0|0,127|0)|0)&127](e)|0;ea(e|0,0|0,4,0)}b=da(d|0,4,0,0)|0|0;c=da(b|0,4,0,0)|0|0;if(c){if(!(da(a+13>>0|0,1,0,0)|0))b=qc[(fa(da(c+32|0,4,0,0)|0|0,127|0)|0)&127](b,0)|0;else b=0;c=a+17|0;if((da(c>>0|0,1,0,0)|0|0)!=5)ea(c>>0|0,0|0,1,0);if((b|0)!=0?(da(a+16>>0|0,1,0,0)|0|0)==6:0)ea(c>>0|0,5|0,1,0)}ea(a+18>>0|0,0|0,1,0);ea(a+16>>0|0,0|0,1,0)}}else{Ko(c);ea(a+16>>0|0,0|0,1,0)}b=a+40|0;if(da(b|0,4,0,0)|0){wn(a);ea(a+18>>0|0,da(a+12>>0|0,1,0,0)|0|0|0,1,0);ea(a+16>>0|0,0|0,1,0);ea(b|0,0|0,4,0)}b=a+72|0;ea(a+19>>0|0,0|0,1,0);ea(b+0|0,0|0,4,0);ea(b+4|0,0|0,4,0);ea(b+8|0,0|0,4,0);ea(b+12|0,0|0,4,0);return}function No(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=da(c+4|0,4,0,0)|0|0;e=d+0|0;f=e+40|0;do{ea(e|0,0|0,4,0);e=e+4|0}while((e|0)<(f|0));ea(d|0,c|0,4,0);ea(d+4|0,da(c|0,4,0,0)|0|0,4,0);e=d+40|0;ea(d+8|0,e|0,4,0);ew(e|0,0,da(a+24|0,4,0,0)|0|0)|0;ea(d+28|0,a|0,4,0);ea(d+20|0,b|0,4,0);return hl(a,b,c)|0}function Oo(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,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();f=k;g=wq(a,b,f)|0;if(!g){h=da(f|0,4,0,0)|0|0;if(!b){a=h+136|0;ea(f|0,a|0,4,0);f=a;a=0}else{f=h;a=(b<<12)+-34|0}ea(d|0,f+-4|0,4,0);ea(c|0,h+16384|0,4,0);ea(e|0,a|0,4,0)}i=k;return g|0}function Po(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;h=da(a+28|0,4,0,0)|0|0;g=b&255;if(g&1){c=h+8|0;if((da(c|0,4,0,0)|0|0)==(a|0)){b=a;do{b=da(b+36|0,4,0,0)|0|0;if(!b){b=0;break}}while(((da(b+24|0,2,0,0)|0)&4)!=0);ea(c|0,b|0,4,0)}b=a+32|0;d=da(b|0,4,0,0)|0|0;e=(d|0)==0;f=a+36|0;c=da(f|0,4,0,0)|0|0;if(e)ea(h+4|0,c|0,4,0);else ea(d+36|0,c|0,4,0);c=da(f|0,4,0,0)|0|0;if(!c){ea(h|0,d|0,4,0);if(e?(da(h+28>>0|0,1,0,0)|0|0)!=0:0)ea(h+29>>0|0,2|0,1,0)}else ea(c+32|0,d|0,4,0);ea(b|0,0|0,4,0);ea(f|0,0|0,4,0)}if(g&2){b=da(h|0,4,0,0)|0|0;ea(a+32|0,b|0,4,0);if(!b){ea(h+4|0,a|0,4,0);if(da(h+28>>0|0,1,0,0)|0)ea(h+29>>0|0,1|0,1,0)}else ea(b+36|0,a|0,4,0);ea(h|0,a|0,4,0);b=h+8|0;if((da(b|0,4,0,0)|0|0)==0?((da(a+24|0,2,0,0)|0)&4)==0:0)ea(b|0,a|0,4,0)}return}function Qo(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();e=g;c=b>>>3;d=c&255;ea(a+5>>0|0,d|0,1,0);b=b&-9;ea(a+7>>0|0,4-(c<<2)|0,1,0);c=da(a+52|0,4,0,0)|0|0;if((b|0)==5){ea(a+2>>0|0,1|0,1,0);ea(a+3>>0|0,d|0,1,0);ea(a+4>>0|0,d<<24>>24==0&1|0,1,0);ea(a+10|0,da(c+28|0,2,0,0)|0|0|0,2,0);ea(a+12|0,da(c+30|0,2,0,0)|0|0|0,2,0);f=5}else if((b|0)==2){ea(a+2>>0|0,0|0,1,0);ea(a+3>>0|0,0|0,1,0);ea(a+4>>0|0,0|0,1,0);ea(a+10|0,da(c+24|0,2,0,0)|0|0|0,2,0);ea(a+12|0,da(c+26|0,2,0,0)|0|0|0,2,0);f=5}else{ea(e|0,54521|0,4,0);ea(e+4|0,10788|0,4,0);ad(11,13600,e);b=11}if((f|0)==5){ea(a+8>>0|0,da(c+21>>0|0,1,0,0)|0|0|0,1,0);b=0}i=g;return b|0}function Ro(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;j=da(a+200|0,4,0,0)|0|0;h=a+152|0;i=da(h|0,4,0,0)|0|0;k=a+148|0;g=da(k|0,4,0,0)|0|0;i=i>>>0>g>>>0?g:i;e=da(a+96|0,4,0,0)|0|0;if((e|0)>0){d=da(a+92|0,4,0,0)|0|0;c=a+72|0;f=0;do{b=d+(f*48|0)+8|0;l=b;if((da(l|0,4,0,0)|0|0)==0&(da(l+4|0,4,0,0)|0|0)==0){m=c;l=da(m+4|0,4,0,0)|0|0;ea(b|0,da(m|0,4,0,0)|0|0,4,0);ea(b+4|0,l|0,4,0)}f=f+1|0}while((f|0)<(e|0));f=c}else f=a+72|0;c=f;d=da(c|0,4,0,0)|0|0;c=da(c+4|0,4,0,0)|0|0;if((d|0)==0&(c|0)==0){d=0;c=0}else{d=iw(d|0,c|0,-1,-1)|0;d=pw(d|0,C|0,g|0,0)|0;d=iw(d|0,C|0,1,0)|0;d=rw(d|0,C|0,g|0,0)|0;c=C}g=f;ea(g|0,d|0,4,0);ea(g+4|0,c|0,4,0);g=a+80|0;ea(g|0,d|0,4,0);ea(g+4|0,c|0,4,0);if(((da(a+7>>0|0,1,0,0)|0|0)==0?(da(a+5>>0|0,1,0,0)|0|0)!=4:0)?(g=da(a+60|0,4,0,0)|0|0,((kc[(fa(da((da(g|0,4,0,0)|0|0)+48|0,4,0,0)|0|0,127|0)|0)&127](g)|0)&512|0)==0):0){d=j+0|0;c=d+12|0;do{ea(d>>0|0,0|0,1,0);d=d+1|0}while((d|0)<(c|0))}else{g=j;e=g;ea(e>>0|0,-117058087|0,1,0);ea(e+1>>0|0,-117058087>>8|0,1,0);ea(e+2>>0|0,-117058087>>16|0,1,0);ea(e+3>>0|0,-117058087>>24|0,1,0);g=g+4|0;ea(g>>0|0,-681336544|0,1,0);ea(g+1>>0|0,-681336544>>8|0,1,0);ea(g+2>>0|0,-681336544>>16|0,1,0);ea(g+3>>0|0,-681336544>>24|0,1,0);g=j+8|0;ea(g>>0|0,-1|0,1,0);ea(g+1>>0|0,-1>>8|0,1,0);ea(g+2>>0|0,-1>>16|0,1,0);ea(g+3>>0|0,-1>>24|0,1,0)}c=a+48|0;bd(4,c);c=da(c|0,4,0,0)|0|0;ea(j+12>>0|0,c>>>24|0,1,0);ea(j+13>>0|0,c>>>16|0,1,0);ea(j+14>>0|0,c>>>8|0,1,0);ea(j+15>>0|0,c|0,1,0);c=da(a+28|0,4,0,0)|0|0;ea(j+16>>0|0,c>>>24|0,1,0);ea(j+17>>0|0,c>>>16|0,1,0);ea(j+18>>0|0,c>>>8|0,1,0);ea(j+19>>0|0,c|0,1,0);c=da(k|0,4,0,0)|0|0;ea(j+20>>0|0,c>>>24|0,1,0);ea(j+21>>0|0,c>>>16|0,1,0);ea(j+22>>0|0,c>>>8|0,1,0);ea(j+23>>0|0,c|0,1,0);c=da(h|0,4,0,0)|0|0;ea(j+24>>0|0,c>>>24|0,1,0);ea(j+25>>0|0,c>>>16|0,1,0);ea(j+26>>0|0,c>>>8|0,1,0);ea(j+27>>0|0,c|0,1,0);ew(j+28|0,0,i+-28|0)|0;c=a+64|0;d=0;while(1){if(d>>>0>=(da(k|0,4,0,0)|0|0)>>>0){b=0;break}h=da(c|0,4,0,0)|0|0;b=f;b=sc[(fa(da((da(h|0,4,0,0)|0|0)+12|0,4,0,0)|0|0,31|0)|0)&31](h,j,i,da(b|0,4,0,0)|0|0,da(b+4|0,4,0,0)|0|0)|0;h=f;h=iw(da(h|0,4,0,0)|0|0,da(h+4|0,4,0,0)|0|0,i|0,0)|0;a=f;ea(a|0,h|0,4,0);ea(a+4|0,C|0,4,0);if(!b)d=d+i|0;else break}return b|0}function So(a){a=a|0;var b=0,c=0,d=0;b=a+24|0;d=da(b|0,2,0,1)|0|0;c=d&65503;ea(b|0,c|0,2,0);if(!(d&2)){ea(b|0,c|2|0,2,0);Po(a,2)}return}function To(a){a=a|0;var b=0,c=0,d=0;b=da(a+16|0,4,0,0)|0|0;c=da(a+20|0,4,0,0)|0|0;d=da(b+96|0,4,0,0)|0|0;a:do if((d|0)>0){b=da(b+92|0,4,0,0)|0|0;a=0;while(1){if((da(b+(a*48|0)+20|0,4,0,0)|0|0)>>>0>=c>>>0?(ci(da(b+(a*48|0)+16|0,4,0,0)|0|0,c)|0)==0:0){a=1;break a}a=a+1|0;if((a|0)>=(d|0)){a=0;break}}}else a=0;while(0);return a|0}function Uo(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();k=o;m=da(a+16|0,4,0,0)|0|0;c=da(m+5>>0|0,1,0,0)|0|0;a:do if(c<<24>>24!=2){l=m+68|0;d=da(l|0,4,0,0)|0|0;do if(!(da(d|0,4,0,0)|0)){if(c<<24>>24!=4?(da(m+21>>0|0,1,0,0)|0|0)==0:0){b=da(m|0,4,0,0)|0|0;b=sc[(fa(da(b+24|0,4,0,0)|0|0,31|0)|0)&31](b,0,d,8222,0)|0;if(!b)break;else break a}c=d+0|0;b=c+40|0;do{ea(c|0,0|0,4,0);c=c+4|0}while((c|0)<(b|0));ea(d|0,14696|0,4,0)}while(0);d=da(a+4|0,4,0,0)|0|0;h=m+52|0;e=m+152|0;f=(da(e|0,4,0,0)|0|0)+4|0;f=rw(f|0,((f|0)<0)<<31>>31|0,da(h|0,4,0,0)|0|0,0)|0;g=C;b=da(l|0,4,0,0)|0|0;c=a+20|0;a=da(c|0,4,0,0)|0|0;ea(k>>0|0,a>>>24|0,1,0);ea(k+1>>0|0,a>>>16|0,1,0);ea(k+2>>0|0,a>>>8|0,1,0);ea(k+3>>0|0,a|0,1,0);b=sc[(fa(da((da(b|0,4,0,0)|0|0)+12|0,4,0,0)|0|0,31|0)|0)&31](b,k,4,f,g)|0;if(!b){k=da(l|0,4,0,0)|0|0;l=da(e|0,4,0,0)|0|0;b=iw(f|0,g|0,4,0)|0;b=sc[(fa(da((da(k|0,4,0,0)|0|0)+12|0,4,0,0)|0|0,31|0)|0)&31](k,d,l,b,C)|0;if(!b){b=h;n=10}}}else{c=a+20|0;b=m+52|0;n=10}while(0);if((n|0)==10){ea(b|0,(da(b|0,4,0,0)|0|0)+1|0,4,0);b=il(m,da(c|0,4,0,0)|0|0)|0}i=o;return b|0}function Vo(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=i;i=i+48|0;if((i|0)>=(j|0))ba();f=g;c=(a|0)!=0;a:do if(c&(b|0)!=0){c=f;while(1){e=da(b+20|0,4,0,0)|0|0;d=a;a=c;while(1){a=a+12|0;if((da(d+20|0,4,0,0)|0|0)>>>0>=e>>>0)break;ea(a|0,d|0,4,0);a=da(d+12|0,4,0,0)|0|0;if(!a){c=b;a=d;d=8;break a}else{c=d;d=a;a=c}}ea(a|0,b|0,4,0);e=da(b+12|0,4,0,0)|0|0;c=(d|0)!=0;if(c&(e|0)!=0){c=b;a=d;b=e}else{a=d;d=6;break}}}else{e=b;b=f;d=6}while(0);if((d|0)==6)if(c)ea(b+12|0,a|0,4,0);else{c=e;a=b;d=8}do if((d|0)==8){a=a+12|0;if(!c){ea(a|0,0|0,4,0);break}else{ea(a|0,c|0,4,0);break}}while(0);i=g;return da(f+12|0,4,0,0)|0|0}function Wo(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=da(da(a+32|0,4,0,0)|0|0,4,0,0)|0|0;h=a+84|0;g=a+104|0;ea(g|0,(da(g|0,4,0,0)|0|0)+1|0,4,0);ea(a+68|0,0|0,4,0);g=h+1|0;f=h+2|0;e=h+3|0;d=((da(g>>0|0,1,0,1)|0|0)<<16|(da(h>>0|0,1,0,1)|0|0)<<24|(da(f>>0|0,1,0,1)|0|0)<<8|(da(e>>0|0,1,0,1)|0|0))+1|0;ea(h>>0|0,d>>>24|0,1,0);ea(g>>0|0,d>>>16|0,1,0);ea(f>>0|0,d>>>8|0,1,0);ea(e>>0|0,d|0,1,0);ea(a+88|0,b|0,4,0);_o(a);ea(c+96|0,0|0,4,0);ea(c+104|0,0|0,4,0);ea(c+108|0,-1|0,4,0);ea(c+112|0,-1|0,4,0);ea(c+116|0,-1|0,4,0);return}function Xo(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,k=0,l=0,m=0,n=0;g=i;i=i+32|0;if((i|0)>=(j|0))ba();h=g;f=da(b+4|0,4,0,0)|0|0;k=da(a|0,4,0,0)|0|0;m=da(b+20|0,4,0,0)|0|0;b=k+76|0;ea(h>>0|0,m>>>24|0,1,0);ea(h+1>>0|0,m>>>16|0,1,0);ea(h+2>>0|0,m>>>8|0,1,0);ea(h+3>>0|0,m|0,1,0);ea(h+4>>0|0,c>>>24|0,1,0);ea(h+5>>0|0,c>>>16|0,1,0);ea(h+6>>0|0,c>>>8|0,1,0);ea(h+7>>0|0,c|0,1,0);c=k+84|0;m=c;m=da(m>>0|0,1,0,1)|0|(da(m+1>>0|0,1,0,1)|0)<<8|(da(m+2>>0|0,1,0,1)|0)<<16|(da(m+3>>0|0,1,0,1)|0)<<24;c=c+4|0;c=da(c>>0|0,1,0,1)|0|(da(c+1>>0|0,1,0,1)|0)<<8|(da(c+2>>0|0,1,0,1)|0)<<16|(da(c+3>>0|0,1,0,1)|0)<<24;l=h+8|0;n=l;ea(n>>0|0,m|0,1,0);ea(n+1>>0|0,m>>8|0,1,0);ea(n+2>>0|0,m>>16|0,1,0);ea(n+3>>0|0,m>>24|0,1,0);l=l+4|0;ea(l>>0|0,c|0,1,0);ea(l+1>>0|0,c>>8|0,1,0);ea(l+2>>0|0,c>>16|0,1,0);ea(l+3>>0|0,c>>24|0,1,0);c=(da(k+65>>0|0,1,0,0)|0|0)==0&1;xq(c,h,8,b,b);xq(c,f,da(k+36|0,4,0,0)|0|0,b,b);c=da(b|0,4,0,0)|0|0;ea(h+16>>0|0,c>>>24|0,1,0);ea(h+17>>0|0,c>>>16|0,1,0);ea(h+18>>0|0,c>>>8|0,1,0);ea(h+19>>0|0,c|0,1,0);c=da(k+80|0,4,0,0)|0|0;ea(h+20>>0|0,c>>>24|0,1,0);ea(h+21>>0|0,c>>>16|0,1,0);ea(h+22>>0|0,c>>>8|0,1,0);ea(h+23>>0|0,c|0,1,0);c=yq(a,h,24,d,e)|0;if(!c){l=da(a+20|0,4,0,0)|0|0;c=iw(d|0,e|0,24,0)|0;c=yq(a,f,l,c,C)|0}i=g;return c|0}function Yo(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h+8|0;d=h;e=da(3164*4|0,4,0,0)|0|0;if(e)mc[(fa(e|0,3|0)|0)&3]();f=a+8|0;e=da(f|0,4,0,0)|0|0;e=qc[(fa(da((da(e|0,4,0,0)|0|0)+24|0,4,0,0)|0|0,127|0)|0)&127](e,d)|0;k=da(d+4|0,4,0,0)|0|0;if((e|0)==0&((k|0)>(c|0)|((k|0)==(c|0)?(da(d|0,4,0,0)|0|0)>>>0>b>>>0:0))){e=da(f|0,4,0,0)|0|0;e=$b[(fa(da((da(e|0,4,0,0)|0|0)+16|0,4,0,0)|0|0,63|0)|0)&63](e,b,c)|0}d=da(3166*4|0,4,0,0)|0|0;if(d)mc[(fa(d|0,3|0)|0)&3]();if(e){ea(g|0,da(a+100|0,4,0,0)|0|0,4,0);ad(e,14816,g)}i=h;return}function Zo(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))ba();g=l;e=l+16|0;k=l+12|0;h=l+8|0;ea(e|0,0|0,4,0);ea(k|0,0|0,4,0);ea(h|0,0|0,4,0);d=Oo(a,(b+33|0)>>>12,h,k,e)|0;a:do if(!d){f=b-(da(e|0,4,0,0)|0|0)|0;if((f|0)==1){d=da(k|0,4,0,0)|0|0;b=d+4|0;ew(b|0,0,(da(h|0,4,0,0)|0|0)+16384-b|0)|0}else d=da(k|0,4,0,0)|0|0;if(da(d+(f<<2)|0,4,0,0)|0)zq(a);d=c*383&8191;b:do if(da((da(h|0,4,0,0)|0|0)+(d<<1)|0,2,0,0)|0){b=da(h|0,4,0,0)|0|0;e=f;while(1){if(!e)break;d=d+1&8191;if(!(da(b+(d<<1)|0,2,0,0)|0))break b;else e=e+-1|0}ea(g|0,49852|0,4,0);ea(g+4|0,10788|0,4,0);ad(11,13600,g);d=11;break a}while(0);ea((da(k|0,4,0,0)|0|0)+(f<<2)|0,c|0,4,0);ea((da(h|0,4,0,0)|0|0)+(d<<1)|0,f|0,2,0);d=0}while(0);i=l;return d|0}function _o(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;h=da(da(a+32|0,4,0,0)|0|0,4,0,0)|0|0;i=a+52|0;ea(a+64>>0|0,1|0,1,0);ea(i|0,3007e3|0,4,0);g=a+92|0;e=3007e3;f=i;d=0;b=0;while(1){d=d+b+e|0;c=f+8|0;b=d+b+(da(f+4|0,4,0,0)|0|0)|0;if(c>>>0>=g>>>0)break;e=da(c|0,4,0,0)|0|0;f=c}ea(g|0,d|0,4,0);ea(a+96|0,b|0,4,0);b=h+48|0;c=i+0|0;d=b+48|0;do{ea(b>>0|0,da(c>>0|0,1,0,0)|0|0|0,1,0);b=b+1|0;c=c+1|0}while((b|0)<(d|0));if((da(a+43>>0|0,1,0,0)|0|0)!=2){b=da(a+4|0,4,0,0)|0|0;bc[(fa(da((da(b|0,4,0,0)|0|0)+60|0,4,0,0)|0|0,31|0)|0)&31](b)}b=h+0|0;c=i+0|0;d=b+48|0;do{ea(b>>0|0,da(c>>0|0,1,0,0)|0|0|0,1,0);b=b+1|0;c=c+1|0}while((b|0)<(d|0));return}function $o(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;if(a)do{d=a+28|0;f=da(d|0,4,0,0)|0|0;if(((f>>>0<7?(30>>>(f&127)&1)==0:0)?(da(a+16|0,4,0,0)|0|0)>>>0>b>>>0:0)?(e=zg(a,b,c,1)|0,(e|0)!=0):0)ea(d|0,e|0,4,0);a=da(a+44|0,4,0,0)|0|0}while((a|0)!=0);return}function ap(a){a=a|0;var b=0,c=0,d=0;a:do if(!(da(a+208|0,4,0,0)|0)){c=a+176|0;d=a+180|0;while(1){b=el(a,4)|0;if((b|0)!=5)break a;if(!(kc[(fa(da(c|0,4,0,0)|0|0,127|0)|0)&127](da(d|0,4,0,0)|0|0)|0)){b=5;break}}}else b=0;while(0);return b|0}function bp(a){a=a|0;var b=0,c=0,d=0,e=0;d=a+96|0;if((da(d|0,4,0,0)|0|0)>0){b=a+92|0;c=0;do{di(da((da(b|0,4,0,0)|0|0)+(c*48|0)+16|0,4,0,0)|0|0);c=c+1|0}while((c|0)<(da(d|0,4,0,0)|0|0))}c=da(a+68|0,4,0,0)|0|0;b=da(c|0,4,0,0)|0|0;if(!(da(a+4>>0|0,1,0,0)|0)){if(b)e=7}else if((b|0)==14696){b=14696;e=7}if((e|0)==7){kc[(fa(da(b+4|0,4,0,0)|0|0,127|0)|0)&127](c)|0;ea(c|0,0|0,4,0)}b=a+92|0;Vc(da(b|0,4,0,0)|0|0);ea(b|0,0|0,4,0);ea(d|0,0|0,4,0);ea(a+52|0,0|0,4,0);return}function cp(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=a+40|0;if(da(e|0,4,0,0)|0){c=da(a|0,4,0,0)|0|0;if(c)do{d=c;c=da(c+32|0,4,0,0)|0|0;if((da(d+20|0,4,0,0)|0|0)>>>0>b>>>0)wl(d)}while((c|0)!=0);if(!b){b=da(a+44|0,4,0,0)|0|0;if(!b)b=0;else{ew(da(b+4|0,4,0,0)|0|0,0,da(a+20|0,4,0,0)|0|0)|0;b=1}}ic[(fa(da(8744+144|0,4,0,0)|0|0,15|0)|0)&15](da(e|0,4,0,0)|0|0,b+1|0)}return}function dp(a,b){a=a|0;b=b|0;var c=0,d=0;do if(!b){c=a+43|0;if(!(da(c>>0|0,1,0,0)|0))c=0;else{ea(c>>0|0,0|0,1,0);d=da(a+4|0,4,0,0)|0|0;if(!(oc[(fa(da((da(d|0,4,0,0)|0|0)+56|0,4,0,0)|0|0,31|0)|0)&31](d,(da(a+40|0,2,0,0)|0|0)+3|0,1,6)|0))c=(da(c>>0|0,1,0,0)|0|0)==0;else{ea(c>>0|0,1|0,1,0);c=0}c=c&1}}else{c=a+43|0;d=(da(c>>0|0,1,0,0)|0|0)==0;if((b|0)<=0){c=d&1;break}if(d){d=da(a+4|0,4,0,0)|0|0;oc[(fa(da((da(d|0,4,0,0)|0|0)+56|0,4,0,0)|0|0,31|0)|0)&31](d,(da(a+40|0,2,0,0)|0|0)+3|0,1,5)|0}ea(c>>0|0,1|0,1,0);c=1}while(0);return c|0}function ep(a){a=a|0;var b=0,c=0,d=0,e=0;c=a+73|0;if((da(c>>0|0,1,0,0)|0|0)==2)ea(c>>0|0,1|0,1,0);else ea(a+68|0,0|0,4,0);b=a+48|0;jm(a,b);do if(!(da((da(a+120|0,4,0,0)|0|0)+2>>0|0,1,0,0)|0)){d=b;d=pg(da(d|0,4,0,0)|0|0,da(d+4|0,4,0,0)|0|0)|0;if(d){b=Km(a,0,da(b|0,4,0,0)|0|0,d,0)|0;if(!b){ea(a+56|0,d|0,4,0);e=9;break}else{Vc(d);break}}else b=7}else e=9;while(0);if((e|0)==9){fp(a);ea(c>>0|0,3|0,1,0);b=0}c=a+72|0;ea(c>>0|0,(da(c>>0|0,1,0,1)|0)&251|0,1,0);return b|0}function fp(a){a=a|0;var b=0,c=0,d=0,e=0;b=a+76|0;if((da(b|0,2,0,0)|0|0)>=0){e=0;while(1){c=a+(e<<2)+120|0;d=da(c|0,4,0,0)|0|0;if(d)Ag(da(d+68|0,4,0,0)|0|0);ea(c|0,0|0,4,0);if((e|0)<(da(b|0,2,0,0)|0|0))e=e+1|0;else break}}ea(b|0,-1|0,2,0);return}function gp(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,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;g=k+8|0;if(b>>>0<2)e=0;else{e=b+-2|0;e=e-((e>>>0)%(((((da(a+36|0,4,0,0)|0|0)>>>0)/5|0)+1|0)>>>0)|0)|0;e=((e+1|0)==(((da(2514*4|0,4,0,0)|0|0)>>>0)/((da(a+32|0,4,0,0)|0|0)>>>0)|0|0)?3:2)+e|0}a=yg(da(a|0,4,0,0)|0|0,e,g,0)|0;do if(!a){f=da(g|0,4,0,0)|0|0;g=da(f+4|0,4,0,0)|0|0;a=(b-e|0)*5|0;e=a+-5|0;if((e|0)<0){if(f)Ag(f);ea(h|0,53912|0,4,0);ea(h+4|0,10788|0,4,0);ad(11,13600,h);a=11;break}ea(c>>0|0,da(g+e>>0|0,1,0,0)|0|0|0,1,0);if(d)ea(d|0,(da(g+(a+-3)>>0|0,1,0,1)|0|0)<<16|(da(g+(a+-4)>>0|0,1,0,1)|0|0)<<24|(da(g+(a+-2)>>0|0,1,0,1)|0|0)<<8|(da(g+(a+-1)>>0|0,1,0,1)|0|0)|0,4,0);if(f)Ag(f);if(((da(c>>0|0,1,0,0)|0|0)+-1&255)>4){ea(h|0,53920|0,4,0);ea(h+4|0,10788|0,4,0);ad(11,13600,h);a=11}else a=0}while(0);i=k;return a|0}function hp(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;G=i;i=i+32|0;if((i|0)>=(j|0))ba();F=G;E=G+16|0;k=G+20|0;D=G+12|0;o=G+8|0;ea(E|0,0|0,4,0);n=a+12|0;h=da(n|0,4,0,0)|0|0;m=a+44|0;B=da(m|0,4,0,0)|0|0;C=h+56|0;g=da(C|0,4,0,0)|0|0;g=(da(g+37>>0|0,1,0,1)|0)<<16|(da(g+36>>0|0,1,0,1)|0)<<24|(da(g+38>>0|0,1,0,1)|0)<<8|(da(g+39>>0|0,1,0,1)|0);do if(g>>>0<B>>>0){if(!g){l=(da(a+19>>0|0,1,0,0)|0|0)==0&1;h=Fg(da(h+68|0,4,0,0)|0|0)|0;if(h){f=h;break}k=da(m|0,4,0,0)|0|0;g=k+1|0;ea(m|0,g|0,4,0);e=a+32|0;h=da(e|0,4,0,0)|0|0;if((k|0)==(((da(2514*4|0,4,0,0)|0|0)>>>0)/(h>>>0)|0|0)){g=k+2|0;ea(m|0,g|0,4,0)}if(da(a+17>>0|0,1,0,0)|0){if(g>>>0<2)k=0;else{k=g+-2|0;k=k-((k>>>0)%(((((da(a+36|0,4,0,0)|0|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(((da(2514*4|0,4,0,0)|0|0)>>>0)/(h>>>0)|0|0)?3:2)+k|0}if((k|0)==(g|0)){ea(o|0,0|0,4,0);k=cl(a,g,o,l)|0;if(k){f=k;break}B=da(o|0,4,0,0)|0|0;k=B+68|0;h=Fg(da(k|0,4,0,0)|0|0)|0;if(B)Ag(da(k|0,4,0,0)|0|0);if(h){f=h;break}k=da(m|0,4,0,0)|0|0;g=k+1|0;ea(m|0,g|0,4,0);if((k|0)==(((da(2514*4|0,4,0,0)|0|0)>>>0)/((da(e|0,4,0,0)|0|0)>>>0)|0|0)){g=k+2|0;ea(m|0,g|0,4,0)}}}e=da((da(n|0,4,0,0)|0|0)+56|0,4,0,0)|0|0;ea(e+28>>0|0,g>>>24|0,1,0);ea(e+29>>0|0,g>>>16|0,1,0);ea(e+30>>0|0,g>>>8|0,1,0);ea(e+31>>0|0,g|0,1,0);e=da(m|0,4,0,0)|0|0;ea(c|0,e|0,4,0);e=cl(a,e,b,l)|0;if(e){f=e;break}e=Fg(da((da(b|0,4,0,0)|0|0)+68|0,4,0,0)|0|0)|0;if(e){f=da(b|0,4,0,0)|0|0;if(!f){f=e;w=98}else{Ag(da(f+68|0,4,0,0)|0|0);f=e;w=92}}}else{if(e<<24>>24==2)k=1;else if(e<<24>>24==1?B>>>0>=d>>>0:0){f=gp(a,d,k,0)|0;if(f)break;k=(da(k>>0|0,1,0,0)|0|0)==2&1}else k=0;f=Fg(da(h+68|0,4,0,0)|0|0)|0;if(f)break;z=da(C|0,4,0,0)|0|0;y=g+-1|0;ea(z+36>>0|0,y>>>24|0,1,0);ea(z+37>>0|0,y>>>16|0,1,0);ea(z+38>>0|0,y>>>8|0,1,0);ea(z+39>>0|0,y|0,1,0);y=a+36|0;z=(d|0)==0;A=a+60|0;x=e<<24>>24==2;e=0;a:while(1){p=(e|0)!=0;if(p){o=da(e+56|0,4,0,0)|0|0;o=(da(o+1>>0|0,1,0,1)|0)<<16|(da(o>>0|0,1,0,1)|0)<<24|(da(o+2>>0|0,1,0,1)|0)<<8|(da(o+3>>0|0,1,0,1)|0)}else{o=da(C|0,4,0,0)|0|0;o=(da(o+33>>0|0,1,0,1)|0)<<16|(da(o+32>>0|0,1,0,1)|0)<<24|(da(o+34>>0|0,1,0,1)|0)<<8|(da(o+35>>0|0,1,0,1)|0)}if(o>>>0>B>>>0){w=15;break}f=cl(a,o,E,0)|0;if(f){w=17;break}g=da(E|0,4,0,0)|0|0;q=g+56|0;u=da(q|0,4,0,0)|0|0;v=u+4|0;r=u+5|0;s=u+6|0;t=u+7|0;w=(da(r>>0|0,1,0,1)|0)<<16|(da(v>>0|0,1,0,1)|0)<<24|(da(s>>0|0,1,0,1)|0)<<8|(da(t>>0|0,1,0,1)|0);f=k<<24>>24!=0;do if((w|0)!=0|f){if(w>>>0>(((da(y|0,4,0,0)|0|0)>>>2)+-2|0)>>>0){f=g;w=22;break a}if(k<<24>>24!=0?(o|0)==(d|0)|o>>>0<d>>>0&x:0){ea(c|0,o|0,4,0);ea(b|0,g|0,4,0);f=Fg(da(g+68|0,4,0,0)|0|0)|0;if(f){w=88;break a}do if(!w){if(!p){v=(da(C|0,4,0,0)|0|0)+32|0;w=da(q|0,4,0,0)|0|0;w=da(w>>0|0,1,0,1)|0|(da(w+1>>0|0,1,0,1)|0)<<8|(da(w+2>>0|0,1,0,1)|0)<<16|(da(w+3>>0|0,1,0,1)|0)<<24;ea(v>>0|0,w|0,1,0);ea(v+1>>0|0,w>>8|0,1,0);ea(v+2>>0|0,w>>16|0,1,0);ea(v+3>>0|0,w>>24|0,1,0);break}f=Fg(da(e+68|0,4,0,0)|0|0)|0;if(f){w=88;break a}v=da(e+56|0,4,0,0)|0|0;w=da(q|0,4,0,0)|0|0;w=da(w>>0|0,1,0,1)|0|(da(w+1>>0|0,1,0,1)|0)<<8|(da(w+2>>0|0,1,0,1)|0)<<16|(da(w+3>>0|0,1,0,1)|0)<<24;ea(v>>0|0,w|0,1,0);ea(v+1>>0|0,w>>8|0,1,0);ea(v+2>>0|0,w>>16|0,1,0);ea(v+3>>0|0,w>>24|0,1,0)}else{o=da(q|0,4,0,0)|0|0;l=da(o+8>>0|0,1,0,0)|0|0;m=da(o+9>>0|0,1,0,0)|0|0;n=da(o+10>>0|0,1,0,0)|0|0;o=da(o+11>>0|0,1,0,0)|0|0;k=(m&255)<<16|(l&255)<<24|(n&255)<<8|o&255;if(k>>>0>B>>>0){f=g;w=32;break a}f=cl(a,k,D,0)|0;if(f){w=88;break a}k=da(D|0,4,0,0)|0|0;h=k+68|0;f=Fg(da(h|0,4,0,0)|0|0)|0;if(f){w=35;break a}v=k+56|0;t=da(v|0,4,0,0)|0|0;u=da(q|0,4,0,0)|0|0;u=da(u>>0|0,1,0,1)|0|(da(u+1>>0|0,1,0,1)|0)<<8|(da(u+2>>0|0,1,0,1)|0)<<16|(da(u+3>>0|0,1,0,1)|0)<<24;ea(t>>0|0,u|0,1,0);ea(t+1>>0|0,u>>8|0,1,0);ea(t+2>>0|0,u>>16|0,1,0);ea(t+3>>0|0,u>>24|0,1,0);u=da(v|0,4,0,0)|0|0;w=w+-1|0;ea(u+4>>0|0,w>>>24|0,1,0);ea(u+5>>0|0,w>>>16|0,1,0);ea(u+6>>0|0,w>>>8|0,1,0);ea(u+7>>0|0,w|0,1,0);jw((da(v|0,4,0,0)|0|0)+8|0,(da(q|0,4,0,0)|0|0)+12|0,w<<2|0)|0;if(k)Ag(da(h|0,4,0,0)|0|0);if(!p){w=da(C|0,4,0,0)|0|0;ea(w+32>>0|0,l|0,1,0);ea(w+33>>0|0,m|0,1,0);ea(w+34>>0|0,n|0,1,0);ea(w+35>>0|0,o|0,1,0);break}f=Fg(da(e+68|0,4,0,0)|0|0)|0;if(f){w=88;break a}w=da(e+56|0,4,0,0)|0|0;ea(w>>0|0,l|0,1,0);ea(w+1>>0|0,m|0,1,0);ea(w+2>>0|0,n|0,1,0);ea(w+3>>0|0,o|0,1,0)}while(0);ea(E|0,0|0,4,0);g=0;f=0;k=0;break}if(w){b:do if(!z){if(x){h=0;while(1){q=h<<2;if(((da(u+(q+9)>>0|0,1,0,1)|0)<<16|(da(u+(q+8)>>0|0,1,0,1)|0)<<24|(da(u+(q+10)>>0|0,1,0,1)|0)<<8|(da(u+(q+11)>>0|0,1,0,1)|0))>>>0<=d>>>0)break b;h=h+1|0;if(h>>>0>=w>>>0){h=0;break b}}}h=((da(u+9>>0|0,1,0,1)|0)<<16|(da(u+8>>0|0,1,0,1)|0)<<24|(da(u+10>>0|0,1,0,1)|0)<<8|(da(u+11>>0|0,1,0,1)|0))-d|0;if((h|0)<=-1)h=(h|0)==-2147483648?2147483647:0-h|0;if(w>>>0>1){o=0;m=1;while(1){l=m<<2;l=((da(u+(l+9)>>0|0,1,0,1)|0)<<16|(da(u+(l+8)>>0|0,1,0,1)|0)<<24|(da(u+(l+10)>>0|0,1,0,1)|0)<<8|(da(u+(l+11)>>0|0,1,0,1)|0))-d|0;if((l|0)<=-1)l=(l|0)==-2147483648?2147483647:0-l|0;n=(l|0)<(h|0);o=n?m:o;m=m+1|0;if((m|0)==(w|0)){h=o;break}else h=n?l:h}}else h=0}else h=0;while(0);l=h<<2;o=u+(l+8)|0;l=(da(u+(l+9)>>0|0,1,0,1)|0)<<16|(da(o>>0|0,1,0,1)|0)<<24|(da(u+(l+10)>>0|0,1,0,1)|0)<<8|(da(u+(l+11)>>0|0,1,0,1)|0);if(l>>>0>B>>>0){f=g;w=56;break a}if((l|0)==(d|0)|f^1|l>>>0<d>>>0&x){ea(c|0,l|0,4,0);f=Fg(da(g+68|0,4,0,0)|0|0)|0;if(f){w=88;break a}k=w+-1|0;if(h>>>0<k>>>0){w=u+((w<<2)+4)|0;w=da(w>>0|0,1,0,1)|0|(da(w+1>>0|0,1,0,1)|0)<<8|(da(w+2>>0|0,1,0,1)|0)<<16|(da(w+3>>0|0,1,0,1)|0)<<24;ea(o>>0|0,w|0,1,0);ea(o+1>>0|0,w>>8|0,1,0);ea(o+2>>0|0,w>>16|0,1,0);ea(o+3>>0|0,w>>24|0,1,0)}ea(v>>0|0,k>>>24|0,1,0);ea(r>>0|0,k>>>16|0,1,0);ea(s>>0|0,k>>>8|0,1,0);ea(t>>0|0,k|0,1,0);h=da(c|0,4,0,0)|0|0;k=da(A|0,4,0,0)|0|0;do if(!k)k=0;else{if((da(k|0,4,0,0)|0|0)>>>0<h>>>0){k=1;break}k=(ci(k,h)|0)!=0}while(0);f=cl(a,h,b,k&1^1)|0;if(f){k=0;break}f=Fg(da((da(b|0,4,0,0)|0|0)+68|0,4,0,0)|0|0)|0;if(!f){f=0;k=0;break}k=da(b|0,4,0,0)|0|0;if(!k){k=0;break}Ag(da(k+68|0,4,0,0)|0|0);k=0}else f=0}else f=0}else{f=Fg(da(g+68|0,4,0,0)|0|0)|0;if(f){w=89;break a}ea(c|0,o|0,4,0);k=(da(C|0,4,0,0)|0|0)+32|0;f=da(q|0,4,0,0)|0|0;f=da(f>>0|0,1,0,1)|0|(da(f+1>>0|0,1,0,1)|0)<<8|(da(f+2>>0|0,1,0,1)|0)<<16|(da(f+3>>0|0,1,0,1)|0)<<24;ea(k>>0|0,f|0,1,0);ea(k+1>>0|0,f>>8|0,1,0);ea(k+2>>0|0,f>>16|0,1,0);ea(k+3>>0|0,f>>24|0,1,0);ea(b|0,g|0,4,0);ea(E|0,0|0,4,0);g=0;f=0;k=0}while(0);if(e)Ag(da(e+68|0,4,0,0)|0|0);if(!(k<<24>>24)){e=0;w=88;break}else e=g}if((w|0)==15){ea(F|0,58314|0,4,0);ea(F+4|0,10788|0,4,0);ad(11,13600,F);f=11;w=17}else if((w|0)==22){ea(F|0,58343|0,4,0);ea(F+4|0,10788|0,4,0);ad(11,13600,F);g=f;f=11;w=88}else if((w|0)==32){ea(F|0,58377|0,4,0);ea(F+4|0,10788|0,4,0);ad(11,13600,F);g=f;f=11;w=88}else if((w|0)==35)if(!k)w=88;else{Ag(da(h|0,4,0,0)|0|0);w=88}else if((w|0)==56){ea(F|0,58442|0,4,0);ea(F+4|0,10788|0,4,0);ad(11,13600,F);g=f;f=11;w=88}if((w|0)==17)ea(E|0,0|0,4,0);else if((w|0)==88)if(g)w=89;if((w|0)==89)Ag(da(g+68|0,4,0,0)|0|0);if(!e)w=92;else{Ag(da(e+68|0,4,0,0)|0|0);w=92}}if((w|0)==92?(f|0)!=0:0)w=98;if((w|0)==98){ea(b|0,0|0,4,0);break}f=da(b|0,4,0,0)|0|0;e=da(f+68|0,4,0,0)|0|0;if((da(e+26|0,2,0,0)|0|0)<=1){ea(f>>0|0,0|0,1,0);f=0;break}if(f)Ag(e);ea(b|0,0|0,4,0);ea(F|0,58541|0,4,0);ea(F+4|0,10788|0,4,0);ad(11,13600,F);f=11}else{ea(F|0,58259|0,4,0);ea(F+4|0,10788|0,4,0);ad(11,13600,F);f=11}while(0);i=G;return f|0}function ip(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))ba();r=w+12|0;q=w+8|0;v=w;d=da(a+40|0,4,0,0)|0|0;a:do if(!d){f=a+96|0;e=da(f|0,4,0,0)|0|0;if((e|0)>(c|0)){d=(b|0)==1;c=(d&1^1)+c|0;if((c|0)<(e|0)){b=a+92|0;e=c;do{di(da((da(b|0,4,0,0)|0|0)+(e*48|0)+16|0,4,0,0)|0|0);e=e+1|0}while((e|0)<(da(f|0,4,0,0)|0|0))}ea(f|0,c|0,4,0);if(d){if(c){d=0;break}d=da(a+68|0,4,0,0)|0|0;e=da(d|0,4,0,0)|0|0;if(!e){d=0;break}if((e|0)==14696)d=Fi(d,0,0)|0;else d=0;ea(a+52|0,0|0,4,0);break}p=a+208|0;if((da(p|0,4,0,0)|0|0)==0?(da(da(a+64|0,4,0,0)|0|0,4,0,0)|0|0)==0:0){d=0;break}if(!c)s=0;else s=(da(a+92|0,4,0,0)|0|0)+((c+-1|0)*48|0)|0;o=(s|0)!=0;d=s+20|0;if(o){b=da(d|0,4,0,0)|0|0;e=pg(512,0)|0;if(!e){d=7;break}ew(e|0,0,512)|0;ea(e|0,b|0,4,0);u=e}else u=0;f=a+28|0;c=a+24|0;ea(c|0,da((o?d:f)|0,4,0,0)|0|0,4,0);ea(a+18>>0|0,da(a+12>>0|0,1,0,0)|0|0|0,1,0);b:do if(o){f=a+72|0;c=f;g=da(c|0,4,0,0)|0|0;c=da(c+4|0,4,0,0)|0|0;if(!(da(p|0,4,0,0)|0)){e=s+8|0;h=da(e|0,4,0,0)|0|0;e=da(e+4|0,4,0,0)|0|0;b=(h|0)==0&(e|0)==0;h=b?g:h;e=b?c:e;b=s;d=da(b|0,4,0,0)|0|0;b=da(b+4|0,4,0,0)|0|0;m=f;ea(m|0,d|0,4,0);ea(m+4|0,b|0,4,0);if((b|0)<(e|0)|(b|0)==(e|0)&d>>>0<h>>>0)while(1){d=vq(a,f,u,1,1)|0;if(d){l=g;k=c;break b}b=f;d=da(b|0,4,0,0)|0|0;b=da(b+4|0,4,0,0)|0|0;if(!((b|0)<(e|0)|(b|0)==(e|0)&d>>>0<h>>>0)){t=39;break}}else t=39}else t=38}else{n=da(p|0,4,0,0)|0|0;if(!n){f=a+72|0;c=f;g=da(c|0,4,0,0)|0|0;c=da(c+4|0,4,0,0)|0|0;t=38;break}ea(c|0,da(f|0,4,0,0)|0|0,4,0);if(da(n+44>>0|0,1,0,0)|0){g=n+68|0;k=da(g|0,4,0,0)|0|0;h=n+32|0;c=da(h|0,4,0,0)|0|0;e=n+52|0;d=(da(c|0,4,0,0)|0|0)+0|0;b=e+48|0;do{ea(e>>0|0,da(d>>0|0,1,0,0)|0|0|0,1,0);e=e+1|0;d=d+1|0}while((e|0)<(b|0));e=da(g|0,4,0,0)|0|0;d=e+1|0;if(d>>>0>k>>>0)d=0;else{f=d;while(1){e=e+34|0;d=e>>>12;if(!d)e=(da(c|0,4,0,0)|0|0)+(e<<2)|0;else e=(da(c+(d<<2)|0,4,0,0)|0|0)+((e&4095)<<2)|0;d=Aq(a,da(e|0,4,0,0)|0|0)|0;e=f+1|0;if((d|0)!=0|e>>>0>k>>>0)break;m=f;c=da(h|0,4,0,0)|0|0;f=e;e=m}e=da(g|0,4,0,0)|0|0}if((k|0)!=(e|0))zq(n)}else d=0;e=ul(da(a+204|0,4,0,0)|0|0)|0;if(!((e|0)!=0&(d|0)==0))break a;while(1){d=e;e=da(e+12|0,4,0,0)|0|0;d=Aq(a,da(d+20|0,4,0,0)|0|0)|0;if(!((e|0)!=0&(d|0)==0))break a}}while(0);if((t|0)==38){b=f;ea(b|0,0|0,4,0);ea(b+4|0,0|0,4,0);b=0;d=0;t=39}c:do if((t|0)==39){l=a+80|0;m=a+148|0;n=a+152|0;if((b|0)<(c|0)|(b|0)==(c|0)&d>>>0<g>>>0)while(1){ea(r|0,0|0,4,0);d=uq(a,0,g,c,r,q)|0;b=da(r|0,4,0,0)|0|0;if(!b){b=l;b=iw(da(m|0,4,0,0)|0|0,0,da(b|0,4,0,0)|0|0,da(b+4|0,4,0,0)|0|0)|0;e=C;h=f;if((b|0)==(da(h|0,4,0,0)|0|0)?(e|0)==(da(h+4|0,4,0,0)|0|0):0){t=cw(g|0,c|0,b|0,e|0)|0;b=(da(n|0,4,0,0)|0|0)+8|0;b=pw(t|0,C|0,b|0,((b|0)<0)<<31>>31|0)|0;ea(r|0,b|0,4,0);t=46}else t=40}else t=46;d:do if((t|0)==46){t=0;if((d|0)==0&(b|0)!=0){k=0;while(1){e=f;h=da(e|0,4,0,0)|0|0;e=da(e+4|0,4,0,0)|0|0;if(!((e|0)<(c|0)|(e|0)==(c|0)&h>>>0<g>>>0)){b=h;break d}d=vq(a,f,u,1,1)|0;k=k+1|0;if(!((d|0)==0&k>>>0<b>>>0)){t=40;break}}}else t=40}while(0);if((t|0)==40){t=0;if(d){l=g;k=c;break c}b=f;e=da(b+4|0,4,0,0)|0|0;b=da(b|0,4,0,0)|0|0}if(!((e|0)<(c|0)|(e|0)==(c|0)&b>>>0<g>>>0)){l=g;k=c;d=0;break}}else{l=g;k=c;d=0}}while(0);e:do if(!o){di(u);if(d)break a}else{h=s+24|0;e=da(h|0,4,0,0)|0|0;m=(da(a+152|0,4,0,0)|0|0)+4|0;m=rw(m|0,((m|0)<0)<<31>>31|0,e|0,0)|0;g=v;ea(g|0,m|0,4,0);ea(g+4|0,C|0,4,0);g=da(p|0,4,0,0)|0|0;if(!g){if(!d)t=57}else{c=s+28|0;b=s+40|0;d=g+104|0;if((da(b|0,4,0,0)|0|0)==(da(d|0,4,0,0)|0|0))b=da(c|0,4,0,0)|0|0;else{ea(c|0,0|0,4,0);ea(b|0,da(d|0,4,0,0)|0|0,4,0);b=0}c=g+68|0;if(b>>>0<(da(c|0,4,0,0)|0|0)>>>0){ea(c|0,b|0,4,0);ea(g+76|0,da(s+32|0,4,0,0)|0|0,4,0);ea(g+80|0,da(s+36|0,4,0,0)|0|0,4,0);zq(g);e=da(h|0,4,0,0)|0|0;t=57}else t=57}f:do if((t|0)==57){b=a+52|0;while(1){if(e>>>0>=(da(b|0,4,0,0)|0|0)>>>0)break;d=vq(a,v,u,0,1)|0;if(!d)e=e+1|0;else break f}di(u);break e}while(0);di(u);break a}while(0);d=f;ea(d|0,l|0,4,0);ea(d+4|0,k|0,4,0);d=0}else d=0}while(0);i=w;return d|0}function jp(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=da(a|0,4,0,0)|0|0;if(b){f=da(a+4|0,4,0,0)|0|0;ea((da(b+4|0,4,0,0)|0|0)+4|0,da(b|0,4,0,0)|0|0,4,0);d=a+56|0;Vc(da(d|0,4,0,0)|0|0);ea(d|0,0|0,4,0);ea(a+73>>0|0,0|0,1,0);d=da(a+12|0,4,0,0)|0|0;c=a+8|0;b=da(c|0,4,0,0)|0|0;if(!d)ea(f+8|0,b|0,4,0);else{ea(d+8|0,b|0,4,0);b=da(c|0,4,0,0)|0|0}if(b)ea(b+12|0,d|0,4,0);e=a+76|0;b=da(e|0,2,0,0)|0|0;if(b<<16>>16>=0){c=0;while(1){d=da(a+(c<<2)+120|0,4,0,0)|0|0;if(d){Ag(da(d+68|0,4,0,0)|0|0);b=da(e|0,2,0,0)|0|0}if((c|0)<(b<<16>>16|0))c=c+1|0;else break}}if((da(f+20>>0|0,1,0,0)|0|0)==0?(g=f+12|0,h=da(g|0,4,0,0)|0|0,(h|0)!=0):0){ea(g|0,0|0,4,0);Ag(da(h+68|0,4,0,0)|0|0)}Vc(da(a+20|0,4,0,0)|0|0)}return}function kp(a){a=a|0;var b=0,c=0,d=0,e=0;e=da(a+200|0,4,0,0)|0|0;b=da(3164*4|0,4,0,0)|0|0;if(b)mc[(fa(b|0,3|0)|0)&3]();c=da(a+136|0,4,0,0)|0|0;if(c)do{b=c;c=da(c+12|0,4,0,0)|0|0;Vc(b)}while((c|0)!=0);ea(a+4>>0|0,0|0,1,0);b=a+208|0;qn(da(b|0,4,0,0)|0|0,da(a+9>>0|0,1,0,1)|0|0,da(a+152|0,4,0,0)|0|0,e)|0;ea(b|0,0|0,4,0);wn(a);if(!(da(a+15>>0|0,1,0,0)|0)){if((da(da(a+64|0,4,0,0)|0|0,4,0,0)|0|0)!=0?(d=Io(a)|0,b=d&255,(b|0)==10|(b|0)==13):0){ea(a+40|0,d|0,4,0);ea(a+16>>0|0,6|0,1,0)}ml(a)}else Mo(a);b=da(3166*4|0,4,0,0)|0|0;if(b)mc[(fa(b|0,3|0)|0)&3]();b=da(a+64|0,4,0,0)|0|0;c=da(b|0,4,0,0)|0|0;if(c){kc[(fa(da(c+4|0,4,0,0)|0|0,127|0)|0)&127](b)|0;ea(b|0,0|0,4,0)}c=da(a+60|0,4,0,0)|0|0;b=da(c|0,4,0,0)|0|0;if(b){kc[(fa(da(b+4|0,4,0,0)|0|0,127|0)|0)&127](c)|0;ea(c|0,0|0,4,0)}_k(e);bc[(fa(da(8744+148|0,4,0,0)|0|0,31|0)|0)&31](da((da(a+204|0,4,0,0)|0|0)+40|0,4,0,0)|0|0);Vc(a);return}function lp(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;f=da(a+4|0,4,0,0)|0|0;g=pg(f,((f|0)<0)<<31>>31)|0;do if(g){ew(g|0,0,f|0)|0;f=sc[(fa(da(a+24|0,4,0,0)|0|0,31|0)|0)&31](a,b,g,d&556927,e)|0;if(!f){ea(c|0,g|0,4,0);f=0;break}else{Vc(g);break}}else f=7;while(0);return f|0}function mp(a){a=a|0;var b=0,c=0,d=0;b=a+16|0;c=a+12|0;d=a+10|0;if(!(Sl(da(b|0,4,0,0)|0|0,a,da(c|0,4,0,0)|0|0,da(d>>0|0,1,0,0)|0|0)|0))b=0;else{b=(Tl(da(b|0,4,0,0)|0|0,a,da(c|0,4,0,0)|0|0,da(d>>0|0,1,0,0)|0|0)|0)==0;b=b?4:8}return b|0}function np(a){a=a|0;var b=0,c=0;c=a+8|0;b=da(c|0,2,0,0)|0|0;do if(!(b&13))if(!(Tl(da(a+16|0,4,0,0)|0|0,a,da(a+12|0,4,0,0)|0|0,da(a+10>>0|0,1,0,0)|0|0)|0)){b=((da(c|0,2,0,1)|0|0)&48640|4)&65535;ea(c|0,b|0,2,0);break}else{ea(a|0,+(+Tg(a)),8,1);ea(c|0,(da(c|0,2,0,1)|0|0)&48640|8|0,2,0);cm(a);b=da(c|0,2,0,0)|0|0;break}while(0);ea(c|0,b&65517|0,2,0);return}function op(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+80|0;if((i|0)>=(j|0))ba();o=q+40|0;p=q;e=c+4|0;if((da(a+10>>0|0,1,0,0)|0|0)!=(da(e>>0|0,1,0,0)|0|0)){n=da(a+32|0,4,0,0)|0|0;k=o+8|0;ea(k|0,1|0,2,0);ea(o+32|0,n|0,4,0);l=o+24|0;ea(l|0,0|0,4,0);m=p+8|0;ea(m|0,1|0,2,0);ea(p+32|0,n|0,4,0);n=p+24|0;ea(n|0,0|0,4,0);Yl(o,a,4096);Yl(p,b,4096);a=Rg(o,da(e>>0|0,1,0,0)|0|0)|0;h=(a|0)==0;if(h)g=0;else g=da(o+12|0,4,0,0)|0|0;e=Rg(p,da(e>>0|0,1,0,0)|0|0)|0;f=(e|0)==0;if(f)b=0;else b=da(p+12|0,4,0,0)|0|0;a=sc[(fa(da(c+12|0,4,0,0)|0|0,31|0)|0)&31](da(c+8|0,4,0,0)|0|0,g,a,b,e)|0;if(!(((da(k|0,2,0,0)|0)&9312)==0&(da(l|0,4,0,0)|0|0)==0))Pg(o);if(!(((da(m|0,2,0,0)|0)&9312)==0&(da(n|0,4,0,0)|0|0)==0))Pg(p);if((h|f)&(d|0)!=0)ea(d>>0|0,7|0,1,0)}else a=sc[(fa(da(c+12|0,4,0,0)|0|0,31|0)|0)&31](da(c+8|0,4,0,0)|0|0,da(a+12|0,4,0,0)|0|0,da(a+16|0,4,0,0)|0|0,da(b+12|0,4,0,0)|0|0,da(b+16|0,4,0,0)|0|0)|0;i=q;return a|0}function pp(a,b){a=a|0;b=b|0;var c=0,d=0;d=da(a+12|0,4,0,0)|0|0;c=da(b+12|0,4,0,0)|0|0;a=Yv(da(a+16|0,4,0,0)|0|0,da(b+16|0,4,0,0)|0|0,(d|0)>(c|0)?c:d)|0;return ((a|0)==0?d-c|0:a)|0}function qp(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;do if(!(da(a+3>>0|0,1,0,0)|0)){if(da(a+4>>0|0,1,0,0)|0){ea(c+20|0,((rp(b+4|0,c)|0)&255)+4|0,2,0);e=c+8|0;ea(e+0|0,0|0,4,0);ea(e+4|0,0|0,4,0);ea(e+8|0,0|0,4,0);break}f=da(a+7>>0|0,1,0,1)|0|0;e=b+f|0;d=da(e>>0|0,1,0,0)|0|0;if(d<<24>>24>-1){e=d&255;ea(g|0,e|0,4,0);d=1}else{d=lm(e,g)|0;e=da(g|0,4,0,0)|0|0}g=c;ea(g|0,e|0,4,0);ea(g+4|0,0|0,4,0);f=(d&255)+f|0;d=12}else{d=da(b>>0|0,1,0,0)|0|0;if(d<<24>>24>-1){e=d&255;ea(g|0,e|0,4,0);d=1}else{d=lm(b,g)|0;e=da(g|0,4,0,0)|0|0}f=d&255;f=((rp(b+f|0,c)|0)&255)+f|0;d=12}while(0);do if((d|0)==12){ea(c+12|0,e|0,4,0);ea(c+8|0,b+f|0,4,0);d=da(a+10|0,2,0,1)|0|0;if(e>>>0>d>>>0){g=da(a+12|0,2,0,0)|0|0;b=g&65535;e=(((e-b|0)>>>0)%(((da((da(a+52|0,4,0,0)|0|0)+36|0,4,0,0)|0|0)+-4|0)>>>0)|0)+b|0;d=(e|0)>(d|0)?g:e&65535;ea(c+16|0,d|0,2,0);d=f+(d&65535)|0;ea(c+18|0,d|0,2,0);ea(c+20|0,d+4|0,2,0);break}else{d=e+f|0;ea(c+20|0,((d&65532)>>>0<4?4:d&65535)|0,2,0);ea(c+16|0,e|0,2,0);ea(c+18|0,0|0,2,0);break}}while(0);i=h;return}function rp(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=da(a>>0|0,1,0,0)|0|0;d=c&255;do if(d&128){c=da(a+1>>0|0,1,0,1)|0|0;if(!(c&128)){e=b;ea(e|0,c|d<<7&16256|0,4,0);ea(e+4|0,0|0,4,0);c=2;break}e=da(a+2>>0|0,1,0,1)|0|0;d=(e|d<<14)&2080895;if(!(e&128)){e=b;ea(e|0,d|c<<7&16256|0,4,0);ea(e+4|0,0|0,4,0);c=3;break}e=da(a+3>>0|0,1,0,1)|0|0;c=(e|c<<14)&2080895;if(!(e&128)){e=b;ea(e|0,c|d<<7|0,4,0);ea(e+4|0,0|0,4,0);c=4;break}h=da(a+4>>0|0,1,0,1)|0|0;e=h|d<<14;if(!(h&128)){f=b;ea(f|0,e|c<<7|0,4,0);ea(f+4|0,d>>>18|0,4,0);c=5;break}g=c|d<<7;d=da(a+5>>0|0,1,0,1)|0|0;f=d|c<<14;if(!(d&128)){c=b;ea(c|0,f|e<<7&266354560|0,4,0);ea(c+4|0,g>>>18|0,4,0);c=6;break}c=da(a+6>>0|0,1,0,1)|0|0;d=c|e<<14;if(!(c&128)){c=b;ea(c|0,d&-266354561|f<<7&266354560|0,4,0);ea(c+4|0,g>>>11|0,4,0);c=7;break}c=d&2080895;e=da(a+7>>0|0,1,0,1)|0|0;d=e|f<<14;if(!(e&128)){e=b;ea(e|0,d&-266354561|c<<7|0,4,0);ea(e+4|0,g>>>4|0,4,0);c=8;break}else{e=b;ea(e|0,d<<8&532709120|c<<15|(da(a+8>>0|0,1,0,1)|0|0)|0,4,0);ea(e+4|0,h>>>3&15|g<<4|0,4,0);c=9;break}}else{d=b;ea(d|0,c&255|0,4,0);ea(d+4|0,0|0,4,0);c=1}while(0);return c|0}function sp(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();e=g+8|0;f=g;d=(da(a+1>>0|0,1,0,1)|0|0)<<16|(da(a>>0|0,1,0,1)|0|0)<<24|(da(a+2>>0|0,1,0,1)|0|0)<<8|(da(a+3>>0|0,1,0,1)|0|0);a=(da(a+5>>0|0,1,0,1)|0|0)<<16|(da(a+4>>0|0,1,0,1)|0|0)<<24|(da(a+6>>0|0,1,0,1)|0|0)<<8|(da(a+7>>0|0,1,0,1)|0|0);h=c;ea(h|0,a|0,4,0);ea(h+4|0,d|0,4,0);if((b|0)==6)a=4;else{ea(k|0,a|0,4,0);ea(k+4|0,d|0,4,0);ea(e|0,+(+(+da(k|0,8,1,0))),8,1);ea(f|0,+(+(+da(e|0,8,1,0))),8,1);a=+(+da(e|0,8,1,0))!=+(+da(f|0,8,1,0))?1:8}ea(c+8|0,a|0,2,0);i=g;return}function tp(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;if(!(c>>>0>16777215|(c|0)==16777215&b>>>0>4294967295)){d=b;e=0;while(1){b=e+1|0;ea(f+e>>0|0,d|128|0,1,0);d=lw(d|0,c|0,7)|0;c=C;if((d|0)==0&(c|0)==0){c=e;break}else e=b}ea(f>>0|0,(da(f>>0|0,1,0,1)|0|0)&127|0,1,0);if((c|0)>-1){d=0;while(1){ea(a+d>>0|0,da(f+c>>0|0,1,0,0)|0|0|0,1,0);if((c|0)>0){d=d+1|0;c=c+-1|0}else break}}}else{ea(a+8>>0|0,b|0,1,0);b=lw(b|0,c|0,8)|0;d=C;c=7;while(1){ea(a+c>>0|0,b|128|0,1,0);b=lw(b|0,d|0,7)|0;if((c|0)<=0){b=9;break}else{d=C;c=c+-1|0}}}i=g;return b|0}function up(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;if((da(a+44|0,4,0,0)|0|0)>>>0>=b>>>0){d=cl(a,b,c,d)|0;if(!d){d=da(c|0,4,0,0)|0|0;if((da(d>>0|0,1,0,0)|0|0)==0?(e=_p(d)|0,(e|0)!=0):0){d=da(c|0,4,0,0)|0|0;if(d)Ag(da(d+68|0,4,0,0)|0|0)}else e=0}else e=d}else{ea(f|0,54788|0,4,0);ea(f+4|0,10788|0,4,0);ad(11,13600,f);e=11}i=g;return e|0}function vp(a){a=a|0;var b=0,c=0,d=0;if((da(a+12>>0|0,1,0,0)|0|0)==0?(b=a+60|0,c=da(b|0,4,0,0)|0|0,((kc[(fa(da((da(c|0,4,0,0)|0|0)+48|0,4,0,0)|0|0,127|0)|0)&127](c)|0)&4096|0)==0):0){b=da(b|0,4,0,0)|0|0;c=da((da(b|0,4,0,0)|0|0)+44|0,4,0,0)|0|0;if(c){b=kc[(fa(c|0,127|0)|0)&127](b)|0;if((b|0)<32)b=512;else d=6}else{b=4096;d=6}if((d|0)==6)b=(b|0)>65536?65536:b;ea(a+148|0,b|0,4,0)}else ea(a+148|0,512|0,4,0);return}function wp(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;g=a+40|0;do if(!(da(g|0,4,0,0)|0)){f=da(a+20>>0|0,1,0,0)|0|0;if(f<<24>>24){if(f&3){c=0;break}if((da(b+24|0,2,0,0)|0)&4){c=0;break}}ea(b+12|0,0|0,4,0);do if(!(da(a+208|0,4,0,0)|0)){if(!(((da(b+24|0,2,0,0)|0)&4)==0?(da(a+16>>0|0,1,0,0)|0|0)!=3:0))h=11;if((h|0)==11?(d=yl(a,1)|0,(d|0)!=0):0){c=d;break}if(((da(b+20|0,4,0,0)|0|0)>>>0>(da(a+24|0,4,0,0)|0|0)>>>0?(To(b)|0)!=0:0)?(e=Uo(b)|0,(e|0)!=0):0){c=e;break}c=zl(a,b)|0;h=16}else{if((To(b)|0)!=0?(c=Uo(b)|0,(c|0)!=0):0)break;c=vl(a,b,0,0)|0;h=16}while(0);if((h|0)==16)if(!c){wl(b);c=0;break}d=c&255;if((d|0)==10|(d|0)==13){ea(g|0,c|0,4,0);ea(a+16>>0|0,6|0,1,0)}}else c=0;while(0);return c|0}function xp(a){a=a|0;var b=0;b=da(a+8|0,4,0,0)|0|0;if((da(b>>0|0,1,0,0)|0|0)!=0?(ea(b>>0|0,0|0,1,0),(da(a+26|0,2,0,0)|0|0)>1):0)_p(b)|0;return}function yp(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,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;h=l+8|0;do if(!(da(e|0,4,0,0)|0)){if(!b){ea(k|0,53856|0,4,0);ea(k+4|0,10788|0,4,0);ad(11,13600,k);ea(e|0,11|0,4,0);break}if(b>>>0<2)g=0;else{f=b+-2|0;f=f-((f>>>0)%(((((da(a+36|0,4,0,0)|0|0)>>>0)/5|0)+1|0)>>>0)|0)|0;g=((f+1|0)==(((da(2514*4|0,4,0,0)|0|0)>>>0)/((da(a+32|0,4,0,0)|0|0)>>>0)|0|0)?3:2)+f|0}f=yg(da(a|0,4,0,0)|0|0,g,h,0)|0;if(f){ea(e|0,f|0,4,0);break}b=(b-g|0)*5|0;f=b+-5|0;do if((f|0)>=0){a=da(h|0,4,0,0)|0|0;g=da(a+4|0,4,0,0)|0|0;f=g+f|0;if((da(f>>0|0,1,0,0)|0|0)==c<<24>>24?((da(g+(b+-3)>>0|0,1,0,1)|0)<<16|(da(g+(b+-4)>>0|0,1,0,1)|0)<<24|(da(g+(b+-2)>>0|0,1,0,1)|0)<<8|(da(g+(b+-1)>>0|0,1,0,1)|0)|0)==(d|0):0)break;h=Fg(a)|0;ea(e|0,h|0,4,0);if(!h){ea(f>>0|0,c|0,1,0);ea(g+(b+-4)>>0|0,d>>>24|0,1,0);ea(g+(b+-3)>>0|0,d>>>16|0,1,0);ea(g+(b+-2)>>0|0,d>>>8|0,1,0);ea(g+(b+-1)>>0|0,d|0,1,0)}}else{ea(k|0,53867|0,4,0);ea(k+4|0,10788|0,4,0);ad(11,13600,k);ea(e|0,11|0,4,0);a=da(h|0,4,0,0)|0|0}while(0);if(a)Ag(a)}while(0);i=l;return}function zp(a,b,c){a=a|0;b=b|0;c=c|0;return Jm(a,b,c,0)|0}function Ap(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;f=(da(b>>0|0,1,0,1)|0)&63;d=b+f|0;h=da(c+8|0,4,0,0)|0|0;g=da(h|0,4,0,0)|0|0;h=da(h+4|0,4,0,0)|0|0;switch(da(b+1>>0|0,1,0,1)|0|0){case 2:{d=(da(d>>0|0,1,0,0)|0)<<8|(da(b+(f+1)>>0|0,1,0,1)|0);e=((d|0)<0)<<31>>31;i=11;break}case 4:{d=(da(b+(f+1)>>0|0,1,0,1)|0)<<16|(da(d>>0|0,1,0,1)|0)<<24|(da(b+(f+2)>>0|0,1,0,1)|0)<<8|(da(b+(f+3)>>0|0,1,0,1)|0);e=((d|0)<0)<<31>>31;i=11;break}case 3:{d=(da(b+(f+1)>>0|0,1,0,1)|0)<<8|(da(d>>0|0,1,0,0)|0)<<16|(da(b+(f+2)>>0|0,1,0,1)|0);e=((d|0)<0)<<31>>31;i=11;break}case 5:{e=(da(d>>0|0,1,0,0)|0)<<8|(da(b+(f+1)>>0|0,1,0,1)|0);d=(da(b+(f+3)>>0|0,1,0,1)|0)<<16|(da(b+(f+2)>>0|0,1,0,1)|0)<<24|(da(b+(f+4)>>0|0,1,0,1)|0)<<8|(da(b+(f+5)>>0|0,1,0,1)|0);i=11;break}case 7:case 0:{d=Jm(a,b,c,0)|0;break}case 6:{e=(da(b+(f+1)>>0|0,1,0,1)|0)<<16|(da(d>>0|0,1,0,1)|0)<<24|(da(b+(f+2)>>0|0,1,0,1)|0)<<8|(da(b+(f+3)>>0|0,1,0,1)|0);d=(da(b+(f+5)>>0|0,1,0,1)|0)<<16|(da(b+(f+4)>>0|0,1,0,1)|0)<<24|(da(b+(f+6)>>0|0,1,0,1)|0)<<8|(da(b+(f+7)>>0|0,1,0,1)|0);i=11;break}case 9:{e=0;d=1;i=11;break}case 8:{e=0;d=0;i=11;break}case 1:{d=da(d>>0|0,1,0,0)|0|0;e=((d|0)<0)<<31>>31;i=11;break}default:d=Jm(a,b,c,0)|0}do if((i|0)==11){if((h|0)>(e|0)|(h|0)==(e|0)&g>>>0>d>>>0){d=da(c+12|0,4,0,0)|0|0;break}if((h|0)<(e|0)|(h|0)==(e|0)&g>>>0<d>>>0){d=da(c+16|0,4,0,0)|0|0;break}if((da(c+4|0,2,0,1)|0|0)>1){d=Jm(a,b,c,1)|0;break}else{d=da(c+6>>0|0,1,0,0)|0|0;break}}while(0);return d|0}function Bp(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;f=k+8|0;d=b+1|0;e=da(d>>0|0,1,0,0)|0|0;if(e<<24>>24>-1){d=e&255;ea(f|0,d|0,4,0)}else{lm(d,f)|0;d=da(f|0,4,0,0)|0|0}do if((d|0)>=12){if(!(d&1)){d=da(c+16|0,4,0,0)|0|0;break}f=da(b>>0|0,1,0,1)|0|0;g=(d+-12|0)/2|0;if((f+g|0)>(a|0)){ea(h|0,68550|0,4,0);ea(h+4|0,10788|0,4,0);ad(11,13600,h);ea(c+7>>0|0,11|0,1,0);d=0;break}d=da(c+8|0,4,0,0)|0|0;e=da(d+12|0,4,0,0)|0|0;d=Yv(b+f|0,da(d+16|0,4,0,0)|0|0,(g|0)>(e|0)?e:g)|0;if(d)if((d|0)>0){d=da(c+16|0,4,0,0)|0|0;break}else{d=da(c+12|0,4,0,0)|0|0;break}if((g|0)==(e|0))if((da(c+4|0,2,0,1)|0|0)>1){d=Jm(a,b,c,1)|0;break}else{d=da(c+6>>0|0,1,0,0)|0|0;break}else if((g-e|0)>0){d=da(c+16|0,4,0,0)|0|0;break}else{d=da(c+12|0,4,0,0)|0|0;break}}else d=da(c+12|0,4,0,0)|0|0;while(0);i=k;return d|0}function Cp(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;h=a+73|0;c=da(h>>0|0,1,0,0)|0|0;do if(c<<24>>24!=1){if((c&255)>2){c=Jn(a)|0;if(c)break;c=da(h>>0|0,1,0,0)|0|0}if(!(c<<24>>24)){ea(b|0,1|0,4,0);c=0;break}c=a+68|0;d=da(c|0,4,0,0)|0|0;if((d|0)!=0?(ea(h>>0|0,1|0,1,0),ea(c|0,0|0,4,0),(d|0)>0):0)c=0;else i=9}else i=9;while(0);do if((i|0)==9){g=a+76|0;c=da(g|0,2,0,0)|0|0;d=da(a+(c<<2)+120|0,4,0,0)|0|0;c=a+(c<<1)+78|0;e=(da(c|0,2,0,0)|0|0)+1<<16>>16;ea(c|0,e|0,2,0);c=(da(d+5>>0|0,1,0,0)|0|0)!=0;if((e&65535)<(da(d+18|0,2,0,1)|0|0)){if(c){c=0;break}c=Um(a)|0;break}if(!c){c=da(d+6>>0|0,1,0,1)|0|0;d=da(d+56|0,4,0,0)|0|0;c=qm(a,(da(d+(c+9)>>0|0,1,0,1)|0)<<16|(da(d+(c+8)>>0|0,1,0,1)|0)<<24|(da(d+(c+10)>>0|0,1,0,1)|0)<<8|(da(d+(c+11)>>0|0,1,0,1)|0))|0;if(c)break;c=Um(a)|0;break}e=a+44|0;f=a+72|0;d=da(g|0,2,0,0)|0|0;do{if(!(d<<16>>16)){i=15;break}c=da(a+(d<<16>>16<<2)+120|0,4,0,0)|0|0;if(c){Ag(da(c+68|0,4,0,0)|0|0);d=da(g|0,2,0,0)|0|0}d=d+-1<<16>>16;ea(g|0,d|0,2,0);ea(e|0,0|0,2,0);ea(f>>0|0,(da(f>>0|0,1,0,1)|0)&249|0,1,0);j=d<<16>>16;c=da(a+(j<<2)+120|0,4,0,0)|0|0}while((da(a+(j<<1)+78|0,2,0,1)|0|0)>=(da(c+18|0,2,0,1)|0|0));if((i|0)==15){ea(b|0,1|0,4,0);ea(h>>0|0,0|0,1,0);c=0;break}if(!(da(c+2>>0|0,1,0,0)|0))c=0;else c=Cm(a,b)|0}while(0);return c|0}function Dp(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,k=0;k=a+73|0;c=da(k>>0|0,1,0,0)|0|0;do if(c<<24>>24!=1){if((c&255)>2){c=Jn(a)|0;if(c)break;c=da(k>>0|0,1,0,0)|0|0}if(!(c<<24>>24)){ea(b|0,1|0,4,0);c=0;break}c=a+68|0;d=da(c|0,4,0,0)|0|0;if((d|0)!=0?(ea(k>>0|0,1|0,1,0),ea(c|0,0|0,4,0),(d|0)<0):0)c=0;else e=9}else e=9;while(0);a:do if((e|0)==9){j=a+76|0;f=da(j|0,2,0,0)|0|0;g=f<<16>>16;e=da(a+(g<<2)+120|0,4,0,0)|0|0;d=a+(g<<1)+78|0;c=da(d|0,2,0,0)|0|0;if(!(da(e+5>>0|0,1,0,0)|0)){b=da(e+56|0,4,0,0)|0|0;c=(c&65535)<<1;k=da(e+64|0,4,0,0)|0|0;c=((da(k+c>>0|0,1,0,1)|0)<<8|(da(k+(c|1)>>0|0,1,0,1)|0))&(da(e+20|0,2,0,1)|0);c=qm(a,(da(b+(c+1)>>0|0,1,0,1)|0)<<16|(da(b+c>>0|0,1,0,1)|0)<<24|(da(b+(c+2)>>0|0,1,0,1)|0)<<8|(da(b+(c+3)>>0|0,1,0,1)|0))|0;if(c)break;c=Ep(a)|0;break}b:do if(!(c<<16>>16)){h=a+44|0;i=a+72|0;e=g;while(1){if(!(f<<16>>16))break;d=da(a+(e<<2)+120|0,4,0,0)|0|0;if(!d)d=f;else{Ag(da(d+68|0,4,0,0)|0|0);d=da(j|0,2,0,0)|0|0}f=d+-1<<16>>16;ea(j|0,f|0,2,0);ea(h|0,0|0,2,0);ea(i>>0|0,(da(i>>0|0,1,0,1)|0)&249|0,1,0);e=f<<16>>16;d=a+(e<<1)+78|0;c=da(d|0,2,0,0)|0|0;if(c<<16>>16)break b}ea(k>>0|0,0|0,1,0);ea(b|0,1|0,4,0);c=0;break a}while(0);ea(d|0,c+-1<<16>>16|0,2,0);c=da(a+((da(j|0,2,0,0)|0)<<2)+120|0,4,0,0)|0|0;if((da(c+2>>0|0,1,0,0)|0|0)!=0?(da(c+5>>0|0,1,0,0)|0|0)==0:0)c=Dm(a,b)|0;else c=0}while(0);return c|0}function Ep(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=a+76|0;do{c=da(d|0,2,0,0)|0|0;b=da(a+(c<<2)+120|0,4,0,0)|0|0;if(da(b+5>>0|0,1,0,0)|0){e=4;break}f=da(b+6>>0|0,1,0,1)|0|0;g=da(b+56|0,4,0,0)|0|0;f=(da(g+(f+9)>>0|0,1,0,1)|0)<<16|(da(g+(f+8)>>0|0,1,0,1)|0)<<24|(da(g+(f+10)>>0|0,1,0,1)|0)<<8|(da(g+(f+11)>>0|0,1,0,1)|0);ea(a+(c<<1)+78|0,da(b+18|0,2,0,0)|0|0|0,2,0);b=qm(a,f)|0}while((b|0)==0);if((e|0)==4){ea(a+(c<<1)+78|0,(da(b+18|0,2,0,1)|0|0)+65535|0,2,0);b=0}return b|0}function Fp(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,k=0,l=0,m=0;m=i;i=i+224|0;if((i|0)>=(j|0))ba();k=m;g=m+8|0;ea(g|0,0|0,4,0);do if(b){h=a+16|0;l=Em(da(h|0,4,0,0)|0|0,m+16|0,200,g)|0;if(l){Fm(da(h|0,4,0,0)|0|0,c,b,l);if(!(da(l+4|0,2,0,0)|0)){lg(da((da(h|0,4,0,0)|0|0)+12|0,4,0,0)|0|0,da(g|0,4,0,0)|0|0);ea(k|0,53713|0,4,0);ea(k+4|0,10788|0,4,0);ad(11,13600,k);g=11;break}h=da(g|0,4,0,0)|0|0;g=Bm(a,l,c,d,e,f)|0;if(h)lg(da((da(a+16|0,4,0,0)|0|0)+12|0,4,0,0)|0|0,h)}else g=7}else g=Bm(a,0,c,d,e,f)|0;while(0);i=m;return g|0}function Gp(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+48|0;if((i|0)>=(j|0))ba();n=o+24|0;d=o;l=o+36|0;m=o+32|0;h=da(a+52|0,4,0,0)|0|0;qp(a,b,d);ea(c|0,da(d+20|0,2,0,0)|0|0|0,2,0);c=da(d+18|0,2,0,0)|0|0;a:do if(c<<16>>16){e=c&65535;f=b+(e+3)|0;if(f>>>0>((da(a+56|0,4,0,0)|0|0)+(da(a+20|0,2,0,1)|0|0)|0)>>>0){ea(n|0,58720|0,4,0);ea(n+4|0,10788|0,4,0);ad(11,13600,n);c=11;break}c=(da(h+36|0,4,0,0)|0|0)+-4|0;c=(((da(d+12|0,4,0,0)|0|0)+-1+c-(da(d+16|0,2,0,1)|0|0)|0)>>>0)/(c>>>0)|0;if(c){g=h+44|0;a=c;e=(da(b+(e+1)>>0|0,1,0,1)|0)<<16|(da(b+e>>0|0,1,0,1)|0)<<24|(da(b+(e+2)>>0|0,1,0,1)|0)<<8|(da(f>>0|0,1,0,1)|0);while(1){a=a+-1|0;ea(l|0,0|0,4,0);ea(m|0,0|0,4,0);if(e>>>0<2)break;if(e>>>0>(da(g|0,4,0,0)|0|0)>>>0)break;b=(a|0)==0;if(!b){c=Lp(h,e,m,l)|0;if(c)break a;c=da(m|0,4,0,0)|0|0;if(c)f=13;else f=12}else f=12;if((f|0)==12){c=Xp(h,e)|0;ea(m|0,c|0,4,0);if(!c){c=0;f=15}else f=13}if((f|0)==13){f=0;if((da((da(c+68|0,4,0,0)|0|0)+26|0,2,0,0)|0|0)==1)f=15;else{ea(n|0,58754|0,4,0);ea(n+4|0,10788|0,4,0);ad(11,13600,n);c=11}}if((f|0)==15)c=Xm(h,c,e)|0;d=da(m|0,4,0,0)|0|0;if((d|0)!=0?(k=da(d+68|0,4,0,0)|0|0,(k|0)!=0):0)Ag(k);if(c)break a;if(b){c=0;break a}else e=da(l|0,4,0,0)|0|0}ea(n|0,58734|0,4,0);ea(n+4|0,10788|0,4,0);ad(11,13600,n);c=11}else c=0}else c=0;while(0);i=o;return c|0}function Hp(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();f=r;do if(!(da(d|0,4,0,0)|0)){n=da(a+56|0,4,0,0)|0|0;o=b<<1;p=da(a+64|0,4,0,0)|0|0;q=p+o|0;e=(da(q>>0|0,1,0,1)|0|0)<<8|(da(p+(o|1)>>0|0,1,0,1)|0|0);g=a+6|0;h=da(g>>0|0,1,0,1)|0|0;k=n+(h+5)|0;l=n+(h+6)|0;if(e>>>0>=((da(k>>0|0,1,0,1)|0|0)<<8|(da(l>>0|0,1,0,1)|0|0))>>>0?(m=a+52|0,(e+c|0)>>>0<=(da((da(m|0,4,0,0)|0|0)+36|0,4,0,0)|0|0)>>>0):0){c=Bq(a,e&65535,c&65535)|0;if(c){ea(d|0,c|0,4,0);break}c=a+18|0;e=(da(c|0,2,0,0)|0|0)+-1<<16>>16;ea(c|0,e|0,2,0);if(!(e<<16>>16)){d=n+(h+1)|0;ea(d>>0|0,0|0,1,0);ea(d+1>>0|0,0|0,1,0);ea(d+2>>0|0,0|0,1,0);ea(d+3>>0|0,0|0,1,0);ea(n+(h+7)>>0|0,0|0,1,0);ea(k>>0|0,(da((da(m|0,4,0,0)|0|0)+36|0,4,0,0)|0|0)>>>8|0,1,0);ea(l>>0|0,da((da(m|0,4,0,0)|0|0)+36|0,4,0,0)|0|0,1,0);ea(a+16|0,(da((da(m|0,4,0,0)|0|0)+36|0,4,0,0)|0|0)+65528-(da(g>>0|0,1,0,1)|0|0)-(da(a+7>>0|0,1,0,1)|0|0)|0,2,0);break}else{kw(q|0,p+(o+2)|0,(e&65535)-b<<1|0)|0;ea(n+(h+3)>>0|0,(da(c|0,2,0,1)|0|0)>>>8|0,1,0);ea(n+(h+4)>>0|0,da(c|0,2,0,0)|0|0,1,0);n=a+16|0;ea(n|0,(da(n|0,2,0,1)|0|0)+2|0,2,0);break}}ea(f|0,58991|0,4,0);ea(f+4|0,10788|0,4,0);ad(11,13600,f);ea(d|0,11|0,4,0)}while(0);i=r;return}function Ip(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))ba();k=y;u=y+12|0;q=y+8|0;a:do if(!(da(g|0,4,0,0)|0)){h=a+1|0;if((da(h>>0|0,1,0,0)|0|0)==0?(w=d+2|0,x=a+16|0,(w|0)<=(da(x|0,2,0,1)|0|0)):0){e=Fg(da(a+68|0,4,0,0)|0|0)|0;if(e){ea(g|0,e|0,4,0);break}r=da(a+56|0,4,0,0)|0|0;l=da(a+14|0,2,0,1)|0|0;s=a+18|0;t=(da(s|0,2,0,1)|0)<<1;n=b<<1;o=l+n|0;p=a+6|0;e=da(p>>0|0,1,0,1)|0|0;ea(u|0,0|0,4,0);b=t+l|0;l=r+(e+5)|0;m=r+(e+6)|0;h=(((da(l>>0|0,1,0,1)|0)<<8|(da(m>>0|0,1,0,1)|0))+65535&65535)+1|0;b:do if((b|0)>(h|0)){ea(k|0,54326|0,4,0);ea(k+4|0,10788|0,4,0);ad(11,13600,k);e=11}else{k=b+2|0;do if((k|0)<=(h|0)){if((da(r+(e+1)>>0|0,1,0,0)|0|0)==0?(da(r+(e+2)>>0|0,1,0,0)|0|0)==0:0){v=20;break}ea(q|0,0|0,4,0);b=Cq(a,d,u,q)|0;e=da(u|0,4,0,0)|0|0;if(e)break b;if(!(da(q|0,4,0,0)|0))if(!b)v=20;else h=b-r|0;else v=21}else v=20;while(0);if((v|0)==20)if((k+d|0)>(h|0))v=21;else v=23;if((v|0)==21){e=Dq(a)|0;ea(u|0,e|0,4,0);if(e)break;h=(((da(l>>0|0,1,0,1)|0)<<8|(da(m>>0|0,1,0,1)|0))+65535&65535)+1|0;v=23}if((v|0)==23){h=h-d|0;ea(l>>0|0,h>>>8|0,1,0);ea(m>>0|0,h|0,1,0)}ea(s|0,(da(s|0,2,0,0)|0|0)+1<<16>>16|0,2,0);ea(x|0,(da(x|0,2,0,1)|0|0)-w|0,2,0);e=r+h|0;jw(e|0,c|0,d|0)|0;if(f){ea(e>>0|0,f>>>24|0,1,0);ea(r+(h+1)>>0|0,f>>>16|0,1,0);ea(r+(h+2)>>0|0,f>>>8|0,1,0);ea(r+(h+3)>>0|0,f|0,1,0)}f=r+o|0;kw(r+(o+2)|0,f|0,t-n|0)|0;ea(f>>0|0,h>>>8|0,1,0);ea(r+(o+1)>>0|0,h|0,1,0);ea(r+((da(p>>0|0,1,0,1)|0|0)+3)>>0|0,(da(s|0,2,0,1)|0|0)>>>8|0,1,0);ea(r+((da(p>>0|0,1,0,1)|0|0)+4)>>0|0,da(s|0,2,0,0)|0|0,1,0);if(!(da((da(a+52|0,4,0,0)|0|0)+17>>0|0,1,0,0)|0))break a;Eq(a,c,g);break a}while(0);ea(g|0,e|0,4,0);break}if(!e)e=c;else jw(e|0,c|0,d|0)|0;if(f){ea(e>>0|0,f>>>24|0,1,0);ea(e+1>>0|0,f>>>16|0,1,0);ea(e+2>>0|0,f>>>8|0,1,0);ea(e+3>>0|0,f|0,1,0)}g=da(h>>0|0,1,0,0)|0|0;ea(h>>0|0,g+1<<24>>24|0,1,0);g=g&255;ea(a+(g<<2)+32|0,e|0,4,0);ea(a+(g<<1)+22|0,b|0,2,0)}while(0);i=y;return}function Jp(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0;La=i;i=i+240|0;if((i|0)>=(j|0))ba();Ka=La+24|0;Ha=La+200|0;xa=La+188|0;wa=La+168|0;va=La+160|0;ya=La+136|0;za=La+116|0;Ja=La+96|0;Ea=La+92|0;ua=La+229|0;ta=La+72|0;sa=La+52|0;ra=La+206|0;Da=La+48|0;Aa=La;Ca=La+44|0;Ga=La+40|0;Fa=La+36|0;Ba=La+32|0;Ia=La+204|0;qa=La+216|0;_=a+4|0;ja=((da((da(_|0,4,0,0)|0|0)+36|0,4,0,0)|0)<<1>>>0)/3|0;ka=a+76|0;na=a+74|0;oa=qa+4|0;pa=qa;$=a+124|0;ha=a+78|0;ia=a+80|0;e=da(ka|0,2,0,0)|0|0;Z=0;while(1){f=e<<16>>16;g=da(a+(f<<2)+120|0,4,0,0)|0|0;h=g+1|0;c=(da(h>>0|0,1,0,0)|0|0)==0;if(!(e<<16>>16)){if(c){c=Z;b=0;break}ea(Ha|0,0|0,4,0);ea(xa|0,0|0,4,0);d=da(g+52|0,4,0,0)|0|0;b=Fg(da(g+68|0,4,0,0)|0|0)|0;ea(Ka|0,b|0,4,0);do if(!b){c=g+72|0;ea(Ka|0,hp(d,Ha,xa,da(c|0,4,0,0)|0|0,0)|0|0,4,0);e=da(Ha|0,4,0,0)|0|0;Fq(g,e,Ka);if(da(d+17>>0|0,1,0,0)|0)yp(d,da(xa|0,4,0,0)|0|0,5,da(c|0,4,0,0)|0|0,Ka);b=da(Ka|0,4,0,0)|0|0;if(!b){jw(e+22|0,g+22|0,(da(h>>0|0,1,0,1)|0)<<1|0)|0;jw(e+32|0,g+32|0,(da(h>>0|0,1,0,1)|0)<<2|0)|0;ea(e+1>>0|0,da(h>>0|0,1,0,0)|0|0|0,1,0);ol(g,(da((da(e+56|0,4,0,0)|0)>>0|0,1,0,1)|0)&247);W=da(g+6>>0|0,1,0,1)|0|0;V=da(g+56|0,4,0,0)|0|0;b=da(xa|0,4,0,0)|0|0;ea(V+(W+8)>>0|0,b>>>24|0,1,0);ea(V+(W+9)>>0|0,b>>>16|0,1,0);ea(V+(W+10)>>0|0,b>>>8|0,1,0);ea(V+(W+11)>>0|0,b|0,1,0);ea($|0,e|0,4,0);b=0;break}ea($|0,0|0,4,0);if(e)Ag(da(e+68|0,4,0,0)|0|0)}else ea($|0,0|0,4,0);while(0);if(b){c=Z;break}ea(ka|0,1|0,2,0);ea(ha|0,0|0,2,0);ea(ia|0,0|0,2,0);e=da($|0,4,0,0)|0|0;d=e+1|0;if(!(da(d>>0|0,1,0,0)|0)){c=1;f=1;Y=15}else{k=1;f=1;h=d}}else if(c){c=e;e=g;d=h;Y=15}else{k=e;e=g}if((Y|0)==15){Y=0;if((da(e+16|0,2,0,1)|0|0)>>>0>ja>>>0){k=c;h=d}else{c=Z;b=0;break}}d=f+-1|0;X=da(a+(d<<2)+120|0,4,0,0)|0|0;d=da(a+(d<<1)+78|0,2,0,0)|0|0;l=d&65535;b=Fg(da(X+68|0,4,0,0)|0|0)|0;do if(!b){if(((((da(e+3>>0|0,1,0,0)|0|0)!=0?(da(h>>0|0,1,0,0)|0|0)==1:0)?(aa=da(e+22|0,2,0,0)|0|0,ca=e+18|0,aa<<16>>16==(da(ca|0,2,0,0)|0|0)):0)?(fa=X+72|0,(da(fa|0,4,0,0)|0|0)!=1):0)?(ga=X+18|0,(da(ga|0,2,0,0)|0|0)==d<<16>>16):0){d=da(e+52|0,4,0,0)|0|0;if(!(aa<<16>>16)){ea(Ka|0,59423|0,4,0);ea(Ka+4|0,10788|0,4,0);ad(11,13600,Ka);c=Z;b=11;break}W=hp(d,Ca,Fa,0,0)|0;ea(Ga|0,W|0,4,0);if(!W){c=da(e+32|0,4,0,0)|0|0;ea(Ba|0,c|0,4,0);b=Kp(e,c)|0;ea(Ia|0,b|0,2,0);f=da(Ca|0,4,0,0)|0|0;ol(f,13);Gq(f,1,Ba,Ia);ea(f+16|0,65534-(b&65535)+(da(d+36|0,4,0,0)|0|0)-(da(f+14|0,2,0,1)|0|0)|0,2,0);if((da(d+17>>0|0,1,0,0)|0|0)!=0?(yp(d,da(Fa|0,4,0,0)|0|0,5,da(fa|0,4,0,0)|0|0,Ga),(b&65535)>(da(f+12|0,2,0,1)|0|0)):0)Eq(f,c,Ga);W=da(e+56|0,4,0,0)|0|0;d=(da(ca|0,2,0,1)|0)<<1;c=da(e+64|0,4,0,0)|0|0;d=((da(c+(d+-2)>>0|0,1,0,1)|0)<<8|(da(c+(d+-1)>>0|0,1,0,1)|0))&(da(e+20|0,2,0,1)|0);c=W+d|0;ea(Ba|0,c|0,4,0);d=W+(d+9)|0;while(1){b=c+1|0;if((da(c>>0|0,1,0,0)|0|0)<0&b>>>0<d>>>0)c=b;else break}ea(Ba|0,b|0,4,0);d=c+10|0;f=oa;while(1){ea(Ba|0,b+1|0,4,0);W=da(b>>0|0,1,0,0)|0|0;c=f+1|0;ea(f>>0|0,W|0,1,0);b=da(Ba|0,4,0,0)|0|0;if(!(W<<24>>24<0&b>>>0<d>>>0))break;else f=c}Ip(X,da(ga|0,2,0,1)|0|0,qa,c-pa|0,0,da(e+72|0,4,0,0)|0|0,Ga);W=da(X+6>>0|0,1,0,1)|0|0;V=da(X+56|0,4,0,0)|0|0;c=da(Fa|0,4,0,0)|0|0;ea(V+(W+8)>>0|0,c>>>24|0,1,0);ea(V+(W+9)>>0|0,c>>>16|0,1,0);ea(V+(W+10)>>0|0,c>>>8|0,1,0);ea(V+(W+11)>>0|0,c|0,1,0);c=da(Ca|0,4,0,0)|0|0;if(c)Ag(da(c+68|0,4,0,0)|0|0)}c=Z;b=da(Ga|0,4,0,0)|0|0;break}c=Fo(da((da(_|0,4,0,0)|0|0)+32|0,4,0,0)|0|0)|0;S=k<<16>>16==1;g=da(na>>0|0,1,0,1)|0|0;F=g&1;ea(Ha|0,0|0,4,0);ea(ua+0>>0|0,0|0,1,0);ea(ua+1>>0|0,0|0,1,0);ea(ua+2>>0|0,0|0,1,0);ea(ua+3>>0|0,0|0,1,0);ea(ua+4>>0|0,0|0,1,0);U=da(X+52|0,4,0,0)|0|0;if(!c)b=7;else{w=X+1|0;k=da(w>>0|0,1,0,1)|0|0;T=X+18|0;b=da(T|0,2,0,1)|0|0;f=b+k|0;if((f|0)<2){V=f;O=0}else{do if(d<<16>>16)if((f|0)==(l|0)){g=(g|-2)+l|0;break}else{g=l+-1|0;break}else g=0;while(0);V=2-F|0;O=g}W=V+1|0;g=O-k+V|0;v=X+56|0;k=da(v|0,4,0,0)|0|0;if((g|0)==(b|0))l=(da(X+6>>0|0,1,0,1)|0|0)+8|0;else{l=g<<1;R=da(X+64|0,4,0,0)|0|0;l=((da(R+l>>0|0,1,0,1)|0)<<8|(da(R+(l|1)>>0|0,1,0,1)|0))&(da(X+20|0,2,0,1)|0)}L=k+l|0;J=k+(l+1)|0;K=k+(l+2)|0;y=k+(l+3)|0;R=(da(J>>0|0,1,0,1)|0)<<16|(da(L>>0|0,1,0,1)|0)<<24|(da(K>>0|0,1,0,1)|0)<<8|(da(y>>0|0,1,0,1)|0);ea(Ea|0,R|0,4,0);l=xa+(V<<2)|0;R=up(U,R,l,0)|0;ea(Ha|0,R|0,4,0);a:do if(!R){o=X+22|0;r=X+32|0;s=X+20|0;t=X+64|0;u=U+22|0;I=U+36|0;p=V;k=0;while(1){d=da(l|0,4,0,0)|0|0;k=k+1+(da(d+18|0,2,0,1)|0|0)+(da(d+1>>0|0,1,0,1)|0|0)|0;d=p+-1|0;if(!p)break;q=d+O|0;l=da(w>>0|0,1,0,0)|0|0;if((q|0)==(da(o|0,2,0,1)|0|0))if(!(l<<24>>24)){l=0;Y=52}else{R=da(r|0,4,0,0)|0|0;ea(va+(d<<2)|0,R|0,4,0);g=(da(R+1>>0|0,1,0,1)|0)<<16|(da(R>>0|0,1,0,1)|0)<<24|(da(R+2>>0|0,1,0,1)|0)<<8|(da(R+3>>0|0,1,0,1)|0);ea(Ea|0,g|0,4,0);ea(Ja+(d<<2)|0,(Kp(X,R)|0)&65535|0,4,0);ea(w>>0|0,0|0,1,0)}else Y=52;if((Y|0)==52){Y=0;g=da(v|0,4,0,0)|0|0;m=q-(l&255)<<1;f=da(t|0,4,0,0)|0|0;m=((da(f+m>>0|0,1,0,1)|0)<<8|(da(f+(m|1)>>0|0,1,0,1)|0))&(da(s|0,2,0,1)|0);f=g+m|0;b=va+(d<<2)|0;ea(b|0,f|0,4,0);g=(da(g+(m+1)>>0|0,1,0,1)|0)<<16|(da(f>>0|0,1,0,1)|0)<<24|(da(g+(m+2)>>0|0,1,0,1)|0)<<8|(da(g+(m+3)>>0|0,1,0,1)|0);ea(Ea|0,g|0,4,0);n=(Kp(X,f)|0)&65535;ea(Ja+(d<<2)|0,n|0,4,0);if((da(u|0,2,0,0)|0)&4){if((n+m|0)>(da(I|0,4,0,0)|0|0)){d=p;Y=54;break}jw(c+m|0,f|0,n|0)|0;ea(b|0,c+(f-(da(v|0,4,0,0)|0|0))|0,4,0);l=da(w>>0|0,1,0,0)|0|0}Hp(X,q-(l&255)|0,n,Ha)}l=xa+(d<<2)|0;R=up(U,g,l,0)|0;ea(Ha|0,R|0,4,0);if(R){Y=47;break a}else p=d}if((Y|0)==54){Y=0;ea(Ka|0,59766|0,4,0);ea(Ka+4|0,10788|0,4,0);ad(11,13600,Ka);ea(Ha|0,11|0,4,0);ew(xa|0,0,d<<2|0)|0;f=0;g=0;break}l=k+3&-4;R=fi((da(U+32|0,4,0,0)|0|0)+(l*6|0)|0)|0;if(!R){ea(Ha|0,7|0,4,0);f=R;g=0;break}P=R+(l<<2)|0;B=P+(l<<1)|0;E=da(xa|0,4,0,0)|0|0;M=(da(E+5>>0|0,1,0,1)|0)<<2;Q=M&65535;N=da(E+3>>0|0,1,0,0)|0|0;x=N&255;if((V|0)>-1){A=N<<24>>24!=0;C=E;g=0;D=0;k=0;while(1){z=da(C+18|0,2,0,1)|0|0;H=da(C+1>>0|0,1,0,0)|0|0;v=H&255;w=v+z|0;if(!(H<<24>>24)){b=da(C+56|0,4,0,0)|0|0;if((w|0)>0){q=da(C+20|0,2,0,1)|0|0;p=da(C+14|0,2,0,1)|0|0;o=0;n=k;while(1){H=(o<<1)+p|0;H=b+(((da(b+H>>0|0,1,0,1)|0)<<8|(da(b+(H+1)>>0|0,1,0,1)|0))&q)|0;ea(R+(n<<2)|0,H|0,4,0);ea(P+(n<<1)|0,Kp(C,H)|0|0,2,0);o=o+1|0;if((o|0)==(z|0))break;else n=n+1|0}k=z+k|0}}else if((w|0)>0){r=C+56|0;p=C+20|0;o=C+64|0;n=0;b=k;while(1){q=n;u=v;b:while(1){while(1){s=u+-1|0;if((u|0)<=0){Y=72;break b}u=da(C+(s<<1)+22|0,2,0,1)|0|0;if((u|0)>(q|0))u=s;else{t=u;u=s;break}}if((t|0)==(q|0)){Y=71;break}else q=q+-1|0}if((Y|0)==71){Y=0;q=da(C+(u<<2)+32|0,4,0,0)|0|0}else if((Y|0)==72){Y=0;q=q<<1;H=da(o|0,4,0,0)|0|0;q=(da(r|0,4,0,0)|0|0)+(((da(H+q>>0|0,1,0,1)|0)<<8|(da(H+(q|1)>>0|0,1,0,1)|0))&(da(p|0,2,0,1)|0))|0}ea(R+(b<<2)|0,q|0,4,0);ea(P+(b<<1)|0,Kp(C,q)|0|0,2,0);n=n+1|0;if((n|0)==(w|0))break;else b=b+1|0}k=z+k+v|0}ea(za+(g<<2)|0,k|0,4,0);if((g|0)>=(V|0)|A)l=D;else{d=da(Ja+(g<<2)|0,4,0,0)|0|0;m=P+(k<<1)|0;ea(m|0,d|0,2,0);d=d&65535;l=d+D|0;jw(B+D|0,da(va+(g<<2)|0,4,0,0)|0|0,d|0)|0;d=R+(k<<2)|0;ea(d|0,B+(D+M)|0,4,0);f=(da(m|0,2,0,1)|0|0)-M|0;ea(m|0,f|0,2,0);do if(!(da(C+5>>0|0,1,0,0)|0)){G=da(d|0,4,0,0)|0|0;H=(da(C+56|0,4,0,0)|0|0)+8|0;H=da(H>>0|0,1,0,1)|0|(da(H+1>>0|0,1,0,1)|0)<<8|(da(H+2>>0|0,1,0,1)|0)<<16|(da(H+3>>0|0,1,0,1)|0)<<24;ea(G>>0|0,H|0,1,0);ea(G+1>>0|0,H>>8|0,1,0);ea(G+2>>0|0,H>>16|0,1,0);ea(G+3>>0|0,H>>24|0,1,0)}else{if((f&65532)>>>0>=4)break;ea(B+l>>0|0,0|0,1,0);ea(m|0,4|0,2,0);l=l+1|0}while(0);k=k+1|0}g=g+1|0;if((g|0)>=(W|0))break;C=da(xa+(g<<2)|0,4,0,0)|0|0;D=l}l=M+-12+(da(I|0,4,0,0)|0|0)|0;if((k|0)>0){m=A<<31>>31;f=0;d=0;g=0;do{b=g+2+(da(P+(f<<1)|0,2,0,1)|0|0)|0;if((b|0)>(l|0)){ea(Ja+(d<<2)|0,g|0,4,0);ea(ya+(d<<2)|0,f|0,4,0);if((d|0)>3){Y=91;break}else{f=f+m|0;d=d+1|0;g=0}}else g=b;f=f+1|0}while((f|0)<(k|0));if((Y|0)==91){Y=0;ea(Ka|0,59904|0,4,0);ea(Ka+4|0,10788|0,4,0);ad(11,13600,Ka);ea(Ha|0,11|0,4,0);f=R;g=0;break}ea(Ja+(d<<2)|0,g|0,4,0);ea(ya+(d<<2)|0,k|0,4,0);if((d|0)>0){w=(F|0)==0;f=d;do{n=Ja+(f<<2)|0;f=f+-1|0;b=Ja+(f<<2)|0;o=ya+(f<<2)|0;s=da(o|0,4,0,0)|0|0;v=da(b|0,4,0,0)|0|0;m=g;while(1){r=s+-1|0;q=s-x|0;if(m){if(!w){g=v;break}t=da(P+(q<<1)|0,2,0,0)|0|0;u=m+2|0;q=da(P+(r<<1)|0,2,0,0)|0|0;p=v+-2|0;if(((t&65535)+u|0)>(p-(q&65535)|0)){g=v;break}}else{p=v+-2|0;u=2;t=da(P+(q<<1)|0,2,0,0)|0|0;q=da(P+(r<<1)|0,2,0,0)|0|0}ea(o|0,r|0,4,0);s=r;v=p-(q&65535)|0;m=(t&65535)+u|0}ea(n|0,m|0,4,0);ea(b|0,g|0,4,0)}while((f|0)>0);D=1;H=l;G=k}else{D=1;H=l;G=k}}else Y=93}else{l=M+-12+(da(I|0,4,0,0)|0|0)|0;k=0;Y=93}if((Y|0)==93){Y=0;ea(Ja|0,0|0,4,0);ea(ya|0,k|0,4,0);D=0;H=l;d=0;G=k}if((da(E+72|0,4,0,0)|0|0)>>>0<2){ea(Ka|0,59963|0,4,0);ea(Ka+4|0,10788|0,4,0);ad(11,13600,Ka);ea(Ha|0,11|0,4,0);f=R;g=0;break}z=da((da(E+56|0,4,0,0)|0)>>0|0,1,0,1)|0|0;if((d|0)>-1){n=(F|0)!=0;b=U+17|0;f=X+72|0;p=0;g=0;while(1){do if((p|0)<(W|0)){E=xa+(p<<2)|0;F=da(E|0,4,0,0)|0|0;ea(wa+(p<<2)|0,F|0,4,0);ea(Da|0,F|0,4,0);ea(E|0,0|0,4,0);F=Fg(da(F+68|0,4,0,0)|0|0)|0;ea(Ha|0,F|0,4,0);g=g+1|0;if(F){f=R;break a}}else{F=hp(U,Da,Ea,n?1:da(Ea|0,4,0,0)|0|0,0)|0;ea(Ha|0,F|0,4,0);if(F){f=R;break a}l=da(Da|0,4,0,0)|0|0;ol(l,z);ea(wa+(p<<2)|0,l|0,4,0);g=g+1|0;ea(za+(p<<2)|0,G|0,4,0);if(!(da(b>>0|0,1,0,0)|0))break;yp(U,da(l+72|0,4,0,0)|0|0,5,da(f|0,4,0,0)|0|0,Ha);if(da(Ha|0,4,0,0)|0){f=R;break a}}while(0);if((p|0)<(d|0))p=p+1|0;else break}if((g|0)>0){k=0;c:do{F=da(wa+(k<<2)|0,4,0,0)|0|0;l=da(F+72|0,4,0,0)|0|0;ea(ta+(k<<2)|0,l|0,4,0);ea(sa+(k<<2)|0,l|0,4,0);ea(ra+(k<<1)|0,da((da(F+68|0,4,0,0)|0|0)+24|0,2,0,0)|0|0|0,2,0);if((k|0)>0){f=0;do{if((da(ta+(f<<2)|0,4,0,0)|0|0)==(l|0)){Y=118;break c}f=f+1|0}while((f|0)<(k|0))}k=k+1|0}while((k|0)<(g|0));if((Y|0)==118){Y=0;ea(Ka|0,60018|0,4,0);ea(Ka+4|0,10788|0,4,0);ad(11,13600,Ka);ea(Ha|0,11|0,4,0);f=R;break}m=(g|0)>1;f=U+44|0;d=0;do{if(m){k=0;l=1;do{k=(da(sa+(l<<2)|0,4,0,0)|0|0)>>>0<(da(sa+(k<<2)|0,4,0,0)|0|0)>>>0?l:k;l=l+1|0}while((l|0)!=(g|0))}else k=0;F=sa+(k<<2)|0;l=da(F|0,4,0,0)|0|0;ea(F|0,-1|0,4,0);if((k|0)!=(d|0)){if((k|0)>(d|0)){E=da((da(wa+(k<<2)|0,4,0,0)|0|0)+68|0,4,0,0)|0|0;F=k+1+(da(f|0,4,0,0)|0|0)|0;ea(E+24|0,0|0,2,0);Yp(E,F)}F=da(wa+(d<<2)|0,4,0,0)|0|0;E=da(F+68|0,4,0,0)|0|0;ea(E+24|0,da(ra+(k<<1)|0,2,0,0)|0|0|0,2,0);Yp(E,l);ea(F+72|0,l|0,4,0)}d=d+1|0}while((d|0)!=(g|0));ea(Ea|0,l|0,4,0);F=0}else F=1}else{F=1;g=0}C=g+-1|0;l=da(wa+(C<<2)|0,4,0,0)|0|0;E=da(l+72|0,4,0,0)|0|0;ea(L>>0|0,E>>>24|0,1,0);ea(J>>0|0,E>>>16|0,1,0);ea(K>>0|0,E>>>8|0,1,0);ea(y>>0|0,E|0,1,0);if(!((z&8|0)!=0|(W|0)==(g|0))){K=(da(l+56|0,4,0,0)|0|0)+8|0;L=(da((da(((g|0)>(W|0)?wa:xa)+(V<<2)|0,4,0,0)|0|0)+56|0,4,0,0)|0|0)+8|0;L=da(L>>0|0,1,0,1)|0|(da(L+1>>0|0,1,0,1)|0)<<8|(da(L+2>>0|0,1,0,1)|0)<<16|(da(L+3>>0|0,1,0,1)|0)<<24;ea(K>>0|0,L|0,1,0);ea(K+1>>0|0,L>>8|0,1,0);ea(K+2>>0|0,L>>16|0,1,0);ea(K+3>>0|0,L>>24|0,1,0)}E=U+17|0;if((da(E>>0|0,1,0,0)|0|0)!=0?(la=da(wa|0,4,0,0)|0|0,ma=da(I|0,4,0,0)|0|0,D):0){v=N<<24>>24==0;t=v&1;s=Q<<16>>16==0;q=da(la+56|0,4,0,0)|0|0;p=(da(la+18|0,2,0,1)|0|0)+(da(la+1>>0|0,1,0,1)|0|0)|0;r=0;o=0;k=0;m=la;while(1){u=da(R+(r<<2)|0,4,0,0)|0|0;if((r|0)==(p|0)){k=k+1|0;if((k|0)<(g|0))l=wa+(k<<2)|0;else l=xa+(k<<2)|0;p=da(l|0,4,0,0)|0|0;q=da(p+56|0,4,0,0)|0|0;p=r+t+(da(p+18|0,2,0,1)|0|0)+(da(p+1>>0|0,1,0,1)|0|0)|0}if((r|0)==(da(ya+(o<<2)|0,4,0,0)|0|0)){l=o+1|0;m=da(wa+(l<<2)|0,4,0,0)|0|0;if(!v)Y=142}else{l=o;Y=142}do if((Y|0)==142){Y=0;if((k|0)<(g|0)?(u>>>0>=q>>>0?(da(m+72|0,4,0,0)|0|0)==(da(ta+(k<<2)|0,4,0,0)|0|0):0)&u>>>0<(q+ma|0)>>>0:0)break;if(s)yp(U,(da(u+1>>0|0,1,0,1)|0)<<16|(da(u>>0|0,1,0,1)|0)<<24|(da(u+2>>0|0,1,0,1)|0)<<8|(da(u+3>>0|0,1,0,1)|0),5,da(m+72|0,4,0,0)|0|0,Ha);if((da(P+(r<<1)|0,2,0,1)|0|0)<=(da(m+12|0,2,0,1)|0|0))break;Eq(m,u,Ha)}while(0);r=r+1|0;if((r|0)==(G|0))break;else o=l}}if((C|0)>0){n=N<<24>>24==0;p=0;q=0;while(1){o=da(wa+(p<<2)|0,4,0,0)|0|0;k=da(ya+(p<<2)|0,4,0,0)|0|0;f=da(R+(k<<2)|0,4,0,0)|0|0;d=da(P+(k<<1)|0,2,0,0)|0|0;l=(d&65535)+M|0;m=c+q|0;do if(!(da(o+5>>0|0,1,0,0)|0)){L=(da(o+56|0,4,0,0)|0|0)+8|0;k=da(f>>0|0,1,0,1)|0|(da(f+1>>0|0,1,0,1)|0)<<8|(da(f+2>>0|0,1,0,1)|0)<<16|(da(f+3>>0|0,1,0,1)|0)<<24;ea(L>>0|0,k|0,1,0);ea(L+1>>0|0,k>>8|0,1,0);ea(L+2>>0|0,k>>16|0,1,0);ea(L+3>>0|0,k>>24|0,1,0);k=m}else{if(!n){qp(o,da(R+(k+-1<<2)|0,4,0,0)|0|0,Aa);l=Aa;f=m;k=0;l=(om(c+(q+4)|0,da(l|0,4,0,0)|0|0,da(l+4|0,4,0,0)|0|0)|0)+4|0;break}b=f+-4|0;if(d<<16>>16!=4){f=b;k=m;break}f=b;k=m;l=(Kp(X,b)|0)&65535}while(0);Ip(X,p+O|0,f,l,k,da(o+72|0,4,0,0)|0|0,Ha);if(da(Ha|0,4,0,0)|0){f=R;break a}p=p+1|0;if((p|0)>=(C|0))break;else q=l+q|0}}l=1-g|0;if((l|0)<(g|0)){D=da(ya|0,4,0,0)|0|0;C=N<<24>>24==0&1;do{A=(l|0)<0?0-l|0:l;B=ua+A|0;do if(!(da(B>>0|0,1,0,0)|0)){if((l|0)<=-1?(O=A+-1|0,(da(za+(O<<2)|0,4,0,0)|0|0)<(da(ya+(O<<2)|0,4,0,0)|0|0)):0)break;if(!A){z=0;f=0;y=D}else{k=A+-1|0;if((A|0)<(W|0))f=(da(za+(k<<2)|0,4,0,0)|0|0)+C|0;else f=G;y=(da(ya+(k<<2)|0,4,0,0)|0|0)+C|0;z=y;y=(da(ya+(A<<2)|0,4,0,0)|0|0)-y|0}w=da(wa+(A<<2)|0,4,0,0)|0|0;n=da(w+56|0,4,0,0)|0|0;b=da(w+6>>0|0,1,0,1)|0|0;d=w+64|0;k=(da(d|0,4,0,0)|0|0)+(y<<1)|0;m=w+18|0;q=da(m|0,2,0,1)|0|0;x=w+1|0;p=q+f+(da(x>>0|0,1,0,1)|0|0)|0;o=y+z|0;if((f|0)<(z|0)){O=Hq(w,z-f|0,R+(f<<2)|0,P+(f<<1)|0)|0;N=da(d|0,4,0,0)|0|0;kw(N|0,N+(O<<1)|0,q<<1|0)|0;q=q-O|0}if((p|0)>(o|0))q=q-(Hq(w,p-o|0,R+(o<<2)|0,P+(o<<1)|0)|0)|0;s=n+(b+5)|0;r=n+(b+6)|0;O=n+((((da(s>>0|0,1,0,1)|0)<<8|(da(r>>0|0,1,0,1)|0))+65535&65535)+1)|0;ea(Ka|0,O|0,4,0);d:do if(O>>>0<k>>>0)Y=181;else{if((z|0)<(f|0)){p=f-z|0;p=(p|0)>(y|0)?y:p;O=da(d|0,4,0,0)|0|0;kw(O+(p<<1)|0,O|0,q<<1|0)|0;if(Iq(w,k,Ka,O,p,R+(z<<2)|0,P+(z<<1)|0)|0){Y=181;break}q=q+p|0}p=da(x>>0|0,1,0,0)|0|0;if(p<<24>>24){v=0;do{u=(da(w+(v<<1)+22|0,2,0,1)|0|0)+f|0;t=u-z|0;if((t|0)>-1&(t|0)<(y|0)){N=t<<1;M=da(d|0,4,0,0)|0|0;O=M+N|0;kw(M+(N+2)|0,O|0,q-t<<1|0)|0;if(Iq(w,k,Ka,O,1,R+(u<<2)|0,P+(u<<1)|0)|0){Y=181;break d}p=da(x>>0|0,1,0,0)|0|0;q=q+1|0}v=v+1|0}while((v|0)<(p&255|0))}O=q+z|0;if(Iq(w,k,Ka,(da(d|0,4,0,0)|0|0)+(q<<1)|0,y-q|0,R+(O<<2)|0,P+(O<<1)|0)|0){Y=181;break}O=y&65535;ea(m|0,O|0,2,0);ea(x>>0|0,0|0,1,0);ea(n+(b+3)>>0|0,(O&65535)>>>8|0,1,0);ea(n+(b+4)>>0|0,da(m|0,2,0,0)|0|0,1,0);O=(da(Ka|0,4,0,0)|0|0)-n|0;ea(s>>0|0,O>>>8|0,1,0);ea(r>>0|0,O|0,1,0)}while(0);if((Y|0)==181){Y=0;Gq(w,y,R+(z<<2)|0,P+(z<<1)|0)}ea(B>>0|0,1|0,1,0);ea(w+16|0,H-(da(Ja+(A<<2)|0,4,0,0)|0|0)|0,2,0)}while(0);l=l+1|0}while((l|0)!=(g|0))}do if(S){if(da(T|0,2,0,0)|0){Y=191;break}f=da(wa|0,4,0,0)|0|0;if((da(X+6>>0|0,1,0,1)|0|0)>>>0>(da(f+16|0,2,0,1)|0|0)>>>0){Y=191;break}ea(Ha|0,Dq(f)|0|0,4,0);Fq(f,X,Ha);if(da(Ha|0,4,0,0)|0)break;ea(Ha|0,Xm(da(f+52|0,4,0,0)|0|0,f,da(f+72|0,4,0,0)|0|0)|0|0,4,0)}else Y=191;while(0);do if((Y|0)==191){Y=0;if((da(E>>0|0,1,0,0)|0|0)==0|Q<<16>>16!=0|F)break;else f=0;do{T=da(wa+(f<<2)|0,4,0,0)|0|0;S=da(T+56|0,4,0,0)|0|0;yp(U,(da(S+9>>0|0,1,0,1)|0)<<16|(da(S+8>>0|0,1,0,1)|0)<<24|(da(S+10>>0|0,1,0,1)|0)<<8|(da(S+11>>0|0,1,0,1)|0),5,da(T+72|0,4,0,0)|0|0,Ha);f=f+1|0}while((f|0)!=(g|0))}while(0);if((g|0)>=(W|0)){f=R;break}f=da(Ha|0,4,0,0)|0|0;b=g;do{d=da(xa+(b<<2)|0,4,0,0)|0|0;if(!f){f=Xm(da(d+52|0,4,0,0)|0|0,d,da(d+72|0,4,0,0)|0|0)|0;ea(Ha|0,f|0,4,0)}b=b+1|0}while((b|0)!=(W|0));f=R}else{d=V;Y=47}while(0);if((Y|0)==47){Y=0;ew(xa|0,0,(d<<2)+4|0)|0;f=0;g=0}gi(f);if((V|0)>-1){d=0;do{f=da(xa+(d<<2)|0,4,0,0)|0|0;if(f)Ag(da(f+68|0,4,0,0)|0|0);d=d+1|0}while((d|0)<(W|0))}if((g|0)>0){d=0;do{b=da(wa+(d<<2)|0,4,0,0)|0|0;if(b)Ag(da(b+68|0,4,0,0)|0|0);d=d+1|0}while((d|0)!=(g|0))}b=da(Ha|0,4,0,0)|0|0}if(Z)_k(Z)}else c=Z;while(0);ea(h>>0|0,0|0,1,0);if(e)Ag(da(e+68|0,4,0,0)|0|0);e=(da(ka|0,2,0,0)|0|0)+-1<<16>>16;ea(ka|0,e|0,2,0);if(b)break;else Z=c}if(c)_k(c);i=La;return b|0}function Kp(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=da(a+7>>0|0,1,0,1)|0|0;d=b+c|0;do if(!(da(a+4>>0|0,1,0,0)|0)){f=da(d>>0|0,1,0,0)|0|0;e=f&255;if(f<<24>>24<0){f=b+(c+9)|0;c=e&127;do{d=d+1|0;e=da(d>>0|0,1,0,0)|0|0;c=e&127|c<<7}while(e<<24>>24<0&d>>>0<f>>>0)}else c=e;e=d+1|0;if(da(a+2>>0|0,1,0,0)|0){g=d+10|0;f=e;while(1){e=d+2|0;if((da(f>>0|0,1,0,0)|0|0)<0&e>>>0<g>>>0){d=f;f=e}else break}}d=da(a+10|0,2,0,1)|0|0;if(c>>>0>d>>>0){f=da(a+12|0,2,0,1)|0|0;c=(((c-f|0)>>>0)%(((da((da(a+52|0,4,0,0)|0|0)+36|0,4,0,0)|0|0)+-4|0)>>>0)|0)+f|0;c=(e-b&65535)+4+(c>>>0>d>>>0?f:c)|0;break}else{c=e-b+c|0;c=c>>>0<4?4:c;break}}else{e=b+(c+9)|0;while(1){c=d+1|0;if((da(d>>0|0,1,0,0)|0|0)<0&c>>>0<e>>>0)d=c;else break}c=c-b|0}while(0);return c&65535|0}function Lp(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,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+16|0;if((i|0)>=(j|0))ba();n=p+4|0;m=p;l=p+8|0;ea(n|0,0|0,4,0);if(da(a+17>>0|0,1,0,0)|0){e=((da(2514*4|0,4,0,0)|0|0)>>>0)/((da(a+32|0,4,0,0)|0|0)>>>0)|0;h=a+36|0;k=b;while(1){g=k+1|0;if(g>>>0<2)f=0;else{f=k+-1|0;f=f-((f>>>0)%(((((da(h|0,4,0,0)|0|0)>>>0)/5|0)+1|0)>>>0)|0)|0;f=((f+1|0)==(e|0)?3:2)+f|0}if((f|0)==(g|0)|(k|0)==(e|0))k=g;else break}if(g>>>0<=(da(a+44|0,4,0,0)|0|0)>>>0){k=gp(a,g,l,m)|0;h=(k|0)==0;f=h&(da(l>>0|0,1,0,0)|0|0)==4&(da(m|0,4,0,0)|0|0)==(b|0);g=f?g:0;if(f|h^1){e=0;f=f?101:k}else o=8}else{g=0;o=8}}else{g=0;o=8}if((o|0)==8){f=cl(a,b,n,(c|0)==0?2:0)|0;e=da(n|0,4,0,0)|0|0;if(!f){g=da(e+56|0,4,0,0)|0|0;g=(da(g+1>>0|0,1,0,1)|0)<<16|(da(g>>0|0,1,0,1)|0)<<24|(da(g+2>>0|0,1,0,1)|0)<<8|(da(g+3>>0|0,1,0,1)|0);f=0}}ea(d|0,g|0,4,0);if(!c){if(e)Ag(da(e+68|0,4,0,0)|0|0)}else ea(c|0,e|0,4,0);i=p;return ((f|0)==101?0:f)|0}function Mp(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=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;ea(g|0,0|0,4,0);e=(b|0)!=0;a:do if(c)if(e){e=g;while(1){f=c+8|0;while(1){if((Vp(a,b+8|0,da(b|0,4,0,0)|0|0,f,da(c|0,4,0,0)|0|0)|0)>=1)break;ea(e|0,b|0,4,0);e=b+4|0;b=da(e|0,4,0,0)|0|0;if(!b){b=0;f=0;break a}else f=0}ea(e|0,c|0,4,0);e=c+4|0;c=da(e|0,4,0,0)|0|0;if(!c){c=0;f=1;break a}if(!b){b=0;f=0;break}}}else{f=e;e=g}else{c=0;f=e;e=g}while(0);ea(e|0,(f?b:c)|0,4,0);ea(d|0,da(g|0,4,0,0)|0|0,4,0);i=h;return}function Np(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f+8|0;d=f;c=da(2252*4|0,4,0,0)|0|0;if((c|0)!=0?(kc[(fa(c|0,127|0)|0)&127](202)|0)!=0:0)c=3338;else{c=lp(da(a|0,4,0,0)|0|0,0,b,4126,e)|0;ea(e|0,c|0,4,0);if(!c){c=d;ea(c|0,0|0,4,0);ea(c+4|0,0|0,4,0);c=da(b|0,4,0,0)|0|0;$b[(fa(da((da(c|0,4,0,0)|0|0)+40|0,4,0,0)|0|0,63|0)|0)&63](c,18,d)|0;c=da(e|0,4,0,0)|0|0}}i=f;return c|0}function Op(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;f=b+0|0;g=f+40|0;do{ea(f|0,0|0,4,0);f=f+4|0}while((f|0)<(g|0));f=((c|0)<0)<<31>>31;g=pg(c,f)|0;ea(b+4|0,g|0,4,0);if(!g)ea(b|0,7|0,4,0);else{g=qw(d|0,e|0,c|0,f|0)|0;ea(b+12|0,g|0,4,0);ea(b+16|0,g|0,4,0);g=cw(d|0,e|0,g|0,((g|0)<0)<<31>>31|0)|0;f=b+24|0;ea(f|0,g|0,4,0);ea(f+4|0,C|0,4,0);ea(b+8|0,c|0,4,0);ea(b+32|0,a|0,4,0)}return}function Pp(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,k=0,l=0,m=0,n=0,o=0,p=0;a:do if((c|0)>0){e=a+8|0;g=a+16|0;h=a+4|0;i=a+32|0;j=a+12|0;k=a+24|0;l=c;do{if(da(a|0,4,0,0)|0)break a;f=da(g|0,4,0,0)|0|0;d=(da(e|0,4,0,0)|0|0)-f|0;d=(l|0)>(d|0)?d:l;jw((da(h|0,4,0,0)|0|0)+f|0,b+(c-l)|0,d|0)|0;f=(da(g|0,4,0,0)|0|0)+d|0;ea(g|0,f|0,4,0);if((f|0)==(da(e|0,4,0,0)|0|0)){p=da(i|0,4,0,0)|0|0;n=da(j|0,4,0,0)|0|0;o=(da(h|0,4,0,0)|0|0)+n|0;m=k;m=iw(da(m|0,4,0,0)|0|0,da(m+4|0,4,0,0)|0|0,n|0,((n|0)<0)<<31>>31|0)|0;ea(a|0,sc[(fa(da((da(p|0,4,0,0)|0|0)+12|0,4,0,0)|0|0,31|0)|0)&31](p,o,f-n|0,m,C)|0|0,4,0);ea(g|0,0|0,4,0);ea(j|0,0|0,4,0);m=da(e|0,4,0,0)|0|0;f=k;m=iw(da(f|0,4,0,0)|0|0,da(f+4|0,4,0,0)|0|0,m|0,((m|0)<0)<<31>>31|0)|0;f=k;ea(f|0,m|0,4,0);ea(f+4|0,C|0,4,0)}l=l-d|0}while((l|0)>0)}while(0);return}function Qp(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=a+4|0;if(((da(a|0,4,0,0)|0|0)==0?(d=da(e|0,4,0,0)|0|0,(d|0)!=0):0)?(c=da(a+16|0,4,0,0)|0|0,f=da(a+12|0,4,0,0)|0|0,(c|0)>(f|0)):0){h=da(a+32|0,4,0,0)|0|0;g=a+24|0;g=iw(da(g|0,4,0,0)|0|0,da(g+4|0,4,0,0)|0|0,f|0,((f|0)<0)<<31>>31|0)|0;ea(a|0,sc[(fa(da((da(h|0,4,0,0)|0|0)+12|0,4,0,0)|0|0,31|0)|0)&31](h,d+f|0,c-f|0,g,C)|0|0,4,0)}d=a+24|0;c=da(a+16|0,4,0,0)|0|0;d=iw(c|0,((c|0)<0)<<31>>31|0,da(d|0,4,0,0)|0|0,da(d+4|0,4,0,0)|0|0)|0;c=b;ea(c|0,d|0,4,0);ea(c+4|0,C|0,4,0);Vc(da(e|0,4,0,0)|0|0);e=da(a|0,4,0,0)|0|0;c=a+0|0;d=c+40|0;do{ea(c|0,0|0,4,0);c=c+4|0}while((c|0)<(d|0));return e|0}function Rp(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,j=0,k=0,l=0,m=0;f=da(2252*4|0,4,0,0)|0|0;if((f|0)!=0?(kc[(fa(f|0,127|0)|0)&127](201)|0)!=0:0)f=266;else{h=b+44|0;if(da(h|0,4,0,0)|0)ea(h|0,0|0,4,0);m=b;ea(m|0,d|0,4,0);ea(m+4|0,e|0,4,0);m=c+8|0;k=da(m|0,4,0,0)|0|0;m=da(m+4|0,4,0,0)|0|0;i=b+8|0;g=i;ea(g|0,k|0,4,0);ea(g+4|0,m|0,4,0);g=da(c|0,4,0,0)|0|0;j=b+24|0;ea(j|0,g|0,4,0);c=a+8|0;f=da(c|0,4,0,0)|0|0;a=da((da(f+24|0,4,0,0)|0|0)+136|0,4,0,0)|0|0;l=((a|0)<0)<<31>>31;if(!((m|0)>(l|0)|(m|0)==(l|0)&k>>>0>a>>>0)?(da(da(g|0,4,0,0)|0|0,4,0,0)|0|0)>2:0){ea(h|0,0|0,4,0);f=da(c|0,4,0,0)|0|0}a=da(f+12|0,4,0,0)|0|0;c=((a|0)<0)<<31>>31;e=qw(d|0,e|0,a|0,c|0)|0;f=b+36|0;d=da(f|0,4,0,0)|0|0;if(!d){h=pg(a,c)|0;ea(f|0,h|0,4,0);ea(b+40|0,a|0,4,0);d=h;f=(h|0)==0?7:0}else f=0;if((f|0)==0&(e|0)!=0){f=a-e|0;a=b;h=da(a|0,4,0,0)|0|0;a=da(a+4|0,4,0,0)|0|0;b=iw(h|0,a|0,f|0,((f|0)<0)<<31>>31|0)|0;k=C;c=i;g=da(c|0,4,0,0)|0|0;c=da(c+4|0,4,0,0)|0|0;if((k|0)>(c|0)|(k|0)==(c|0)&b>>>0>g>>>0)f=cw(g|0,c|0,h|0,a|0)|0;j=da(j|0,4,0,0)|0|0;f=sc[(fa(da((da(j|0,4,0,0)|0|0)+8|0,4,0,0)|0|0,31|0)|0)&31](j,d+e|0,f,h,a)|0}}return f|0}function Sp(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;h=i;i=i+32|0;if((i|0)>=(j|0))ba();g=h+8|0;f=h;d=da(a+44|0,4,0,0)|0|0;c=a;e=da(c|0,4,0,0)|0|0;a:do if(!d){d=da(a+40|0,4,0,0)|0|0;c=qw(e|0,da(c+4|0,4,0,0)|0|0,d|0,((d|0)<0)<<31>>31|0)|0;if((c|0)!=0&(d-c|0)>8){d=(rp((da(a+36|0,4,0,0)|0|0)+c|0,b)|0)&255;c=a;d=iw(da(c|0,4,0,0)|0|0,da(c+4|0,4,0,0)|0|0,d|0,0)|0;c=a;ea(c|0,d|0,4,0);ea(c+4|0,C|0,4,0);c=0;break}else d=0;while(1){c=Jq(a,1,f)|0;if(c)break a;c=da((da(f|0,4,0,0)|0)>>0|0,1,0,0)|0|0;ea(g+(d&15)>>0|0,c|0,1,0);if(c<<24>>24<0)d=d+1|0;else break}rp(g,b)|0;c=0}else{d=(rp(d+e|0,b)|0)&255;c=a;d=iw(da(c|0,4,0,0)|0|0,da(c+4|0,4,0,0)|0|0,d|0,0)|0;c=a;ea(c|0,d|0,4,0);ea(c+4|0,C|0,4,0);c=0}while(0);i=h;return c|0}function Tp(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();g=k;c=g;ea(c|0,0|0,4,0);ea(c+4|0,0|0,4,0);c=a;e=da(c+4|0,4,0,0)|0|0;b=a+8|0;d=da(b+4|0,4,0,0)|0|0;do if((e|0)<(d|0)|((e|0)==(d|0)?(da(c|0,4,0,0)|0|0)>>>0<(da(b|0,4,0,0)|0|0)>>>0:0))h=9;else{c=da(a+48|0,4,0,0)|0|0;if(c){b=Kq(c)|0;f=c+32|0;d=c+48|0;ea(f+0|0,da(d+0|0,4,0,0)|0|0,4,0);ea(f+4|0,da(d+4|0,4,0,0)|0|0,4,0);ea(f+8|0,da(d+8|0,4,0,0)|0|0,4,0);ea(f+12|0,da(d+12|0,4,0,0)|0|0,4,0);d=c+40|0;f=c+8|0;e=da(f|0,4,0,0)|0|0;f=da(f+4|0,4,0,0)|0|0;if((da(d|0,4,0,0)|0|0)==(e|0)?(da(d+4|0,4,0,0)|0|0)==(f|0):0)ea(c+20|0,1|0,4,0);if(!b)if(!(da(c+20|0,4,0,0)|0)){b=Rp(da(c|0,4,0,0)|0|0,a,c+32|0,e,f)|0;if(!b){h=9;break}else break}else b=0}else b=0;Up(a)}while(0);if((h|0)==9){b=Sp(a,g)|0;if(!b){b=da(g|0,4,0,0)|0|0;ea(a+20|0,b|0,4,0);b=Jq(a,b,a+32|0)|0}}i=k;return b|0}function Up(a){a=a|0;var b=0;Vc(da(a+28|0,4,0,0)|0|0);Vc(da(a+36|0,4,0,0)|0|0);Rm(da(a+48|0,4,0,0)|0|0);a=a+0|0;b=a+56|0;do{ea(a|0,0|0,4,0);a=a+4|0}while((a|0)<(b|0));return}function Vp(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=da(a+12|0,4,0,0)|0|0;if(d)Fm(da((da(a+8|0,4,0,0)|0|0)+28|0,4,0,0)|0|0,e,d,f);return Jm(c,b,f,0)|0}function Wp(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();f=r;e=r+8|0;n=r+12|0;do if((da(a+44|0,4,0,0)|0|0)>>>0>=b>>>0){b=up(a,b,e,0)|0;if(!b){p=da(e|0,4,0,0)|0|0;o=p+9|0;a:do if(!(da(o>>0|0,1,0,0)|0)){ea(o>>0|0,1|0,1,0);l=da(p+6>>0|0,1,0,1)|0|0;h=p+18|0;e=da(h|0,2,0,0)|0|0;if(!(e<<16>>16)){e=e&65535;b=p+5|0}else{g=0;while(1){f=da(p+56|0,4,0,0)|0|0;e=g<<1;b=da(p+64|0,4,0,0)|0|0;e=((da(b+e>>0|0,1,0,1)|0)<<8|(da(b+(e|1)>>0|0,1,0,1)|0))&(da(p+20|0,2,0,1)|0);b=f+e|0;k=p+5|0;if((da(k>>0|0,1,0,0)|0|0)==0?(m=Wp(a,(da(f+(e+1)>>0|0,1,0,1)|0)<<16|(da(b>>0|0,1,0,1)|0)<<24|(da(f+(e+2)>>0|0,1,0,1)|0)<<8|(da(f+(e+3)>>0|0,1,0,1)|0),1,d)|0,(m|0)!=0):0){b=m;q=21;break a}b=Gp(p,b,n)|0;g=g+1|0;if(b){q=21;break a}e=da(h|0,2,0,1)|0|0;if((g|0)>=(e|0)){b=k;break}}}if(!(da(b>>0|0,1,0,0)|0)){b=da(p+56|0,4,0,0)|0|0;b=Wp(a,(da(b+(l+9)>>0|0,1,0,1)|0)<<16|(da(b+(l+8)>>0|0,1,0,1)|0)<<24|(da(b+(l+10)>>0|0,1,0,1)|0)<<8|(da(b+(l+11)>>0|0,1,0,1)|0),1,d)|0;if(!b)q=16}else if(!d)q=16;else{ea(d|0,(da(d|0,4,0,0)|0|0)+e|0,4,0);q=16}if((q|0)==16){if(c){b=Xm(da(p+52|0,4,0,0)|0|0,p,da(p+72|0,4,0,0)|0|0)|0;q=21;break}b=Fg(da(p+68|0,4,0,0)|0|0)|0;if(!b){ol(p,da((da(p+56|0,4,0,0)|0|0)+l>>0|0,1,0,1)|0|8);b=0;q=21;break}}ea(o>>0|0,0|0,1,0)}else{ea(f|0,60971|0,4,0);ea(f+4|0,10788|0,4,0);ad(11,13600,f);b=11;q=21}while(0);if((q|0)==21){ea(o>>0|0,0|0,1,0);if(!p)break}Ag(da(p+68|0,4,0,0)|0|0)}}else{ea(f|0,60966|0,4,0);ea(f+4|0,10788|0,4,0);ad(11,13600,f);b=11}while(0);i=r;return b|0}function Xp(a,b){a=a|0;b=b|0;var c=0,d=0;d=(da(a|0,4,0,0)|0|0)+204|0;c=$b[(fa(da(8744+132|0,4,0,0)|0|0,63|0)|0)&63](da((da(d|0,4,0,0)|0|0)+40|0,4,0,0)|0|0,b,0)|0;c=hl(da(d|0,4,0,0)|0|0,b,c)|0;if(!c)c=0;else{d=da(c+8|0,4,0,0)|0|0;ea(d+56|0,da(c+4|0,4,0,0)|0|0,4,0);ea(d+68|0,c|0,4,0);ea(d+52|0,a|0,4,0);ea(d+72|0,b|0,4,0);ea(d+6>>0|0,((b|0)==1?100:0)|0,1,0);c=d}return c|0}function Yp(a,b){a=a|0;b=b|0;var c=0;c=a+20|0;pc[(fa(da(8744+140|0,4,0,0)|0|0,15|0)|0)&15](da((da(a+28|0,4,0,0)|0|0)+40|0,4,0,0)|0|0,da(a|0,4,0,0)|0|0,da(c|0,4,0,0)|0|0,b);ea(c|0,b|0,4,0);if(((da(a+24|0,2,0,0)|0)&6)==6)Po(a,3);return}function Zp(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();p=q;m=da(a+52|0,4,0,0)|0|0;n=da(a>>0|0,1,0,0)|0|0;o=da(a+72|0,4,0,0)|0|0;l=_p(a)|0;ea(p|0,l|0,4,0);if(!l){l=da(a+18|0,2,0,0)|0|0;k=l&65535;if(!(l<<16>>16))b=a+5|0;else{c=a+56|0;d=a+20|0;e=a+64|0;b=a+5|0;l=0;do{f=da(c|0,4,0,0)|0|0;g=l<<1;h=da(e|0,4,0,0)|0|0;g=((da(h+g>>0|0,1,0,1)|0)<<8|(da(h+(g|1)>>0|0,1,0,1)|0))&(da(d|0,2,0,1)|0);h=f+g|0;Eq(a,h,p);if(!(da(b>>0|0,1,0,0)|0))yp(m,(da(f+(g+1)>>0|0,1,0,1)|0)<<16|(da(h>>0|0,1,0,1)|0)<<24|(da(f+(g+2)>>0|0,1,0,1)|0)<<8|(da(f+(g+3)>>0|0,1,0,1)|0),5,o,p);l=l+1|0}while((l|0)<(k|0))}if(!(da(b>>0|0,1,0,0)|0)){l=da(a+6>>0|0,1,0,1)|0|0;k=da(a+56|0,4,0,0)|0|0;yp(m,(da(k+(l+9)>>0|0,1,0,1)|0)<<16|(da(k+(l+8)>>0|0,1,0,1)|0)<<24|(da(k+(l+10)>>0|0,1,0,1)|0)<<8|(da(k+(l+11)>>0|0,1,0,1)|0),5,o,p)}}ea(a>>0|0,n|0,1,0);i=q;return da(p|0,4,0,0)|0|0}function _p(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();q=r;a:do if(!(da(a>>0|0,1,0,0)|0)){b=da(a+52|0,4,0,0)|0|0;n=da(a+56|0,4,0,0)|0|0;f=da(a+6>>0|0,1,0,1)|0|0;if(Qo(a,da(n+f>>0|0,1,0,1)|0|0)|0){ea(q|0,54562|0,4,0);ea(q+4|0,10788|0,4,0);ad(11,13600,q);b=11;break}h=da(b+32|0,4,0,0)|0|0;ea(a+20|0,h+65535|0,2,0);ea(a+1>>0|0,0|0,1,0);m=da(b+36|0,4,0,0)|0|0;b=f+8+(da(a+7>>0|0,1,0,1)|0|0)|0;ea(a+14|0,b|0,2,0);ea(a+60|0,n+m|0,4,0);b=b&65535;ea(a+64|0,n+b|0,4,0);e=da(n+(f+5)>>0|0,1,0,0)|0|0;d=da(n+(f+6)>>0|0,1,0,0)|0|0;c=(da(n+(f+3)>>0|0,1,0,1)|0)<<8|(da(n+(f+4)>>0|0,1,0,1)|0);ea(a+18|0,c|0,2,0);if(c>>>0>(((h+-8|0)>>>0)/6|0)>>>0){ea(q|0,54579|0,4,0);ea(q+4|0,10788|0,4,0);ad(11,13600,q);b=11;break}h=(c<<1)+b|0;g=m+-4|0;c=(da(n+(f+1)>>0|0,1,0,1)|0)<<8|(da(n+(f+2)>>0|0,1,0,1)|0);b=(((e&255)<<8|d&255)+65535&65535)+1+(da(n+(f+7)>>0|0,1,0,1)|0|0)|0;do if(c){while(1){if((c|0)<(h|0)|(c|0)>(g|0)){p=8;break}d=(da(n+c>>0|0,1,0,1)|0)<<8|(da(n+(c+1)>>0|0,1,0,1)|0);e=(da(n+(c+2)>>0|0,1,0,1)|0)<<8|(da(n+(c+3)>>0|0,1,0,1)|0);c=e+c|0;if(!d){k=e;l=c;o=b;p=12;break}if((d|0)<=(c+3|0)|(c|0)>(m|0))break;c=d;b=e+b|0}if((p|0)==8){ea(q|0,54634|0,4,0);ea(q+4|0,10788|0,4,0);ad(11,13600,q);b=11;break a}if((p|0)==12?(l|0)<=(m|0):0){b=k+o|0;break}ea(q|0,54641|0,4,0);ea(q+4|0,10788|0,4,0);ad(11,13600,q);b=11;break a}while(0);if((b|0)>(m|0)){ea(q|0,54655|0,4,0);ea(q+4|0,10788|0,4,0);ad(11,13600,q);b=11;break}else{ea(a+16|0,b-h|0,2,0);ea(a>>0|0,1|0,1,0);b=0;break}}else b=0;while(0);i=r;return b|0}function $p(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;d=da(a|0,4,0,0)|0|0;e=d+65|0;if(!(da(e>>0|0,1,0,0)|0)){if(((da(d+24|0,4,0,0)|0)&65536|0)==0?(f=a+4|0,k=da(f|0,4,0,0)|0|0,ea(g|0,((b|0)==0?13552:b)|0,4,0),ch(k,d,13560,g),(c|0)!=0):0){b=da(da(f|0,4,0,0)|0|0,4,0,0)|0|0;ea(g|0,b|0,4,0);ea(g+4|0,c|0,4,0);d=Lq(d,b,0,g)|0;ea(da(f|0,4,0,0)|0|0,d|0,4,0)}if(!(da(e>>0|0,1,0,0)|0)){ea(g|0,105209|0,4,0);ea(g+4|0,10788|0,4,0);ad(11,13600,g);d=11}else d=7}else d=7;ea(a+12|0,d|0,4,0);i=h;return}function aq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;l=a+20|0;a:do if((da(l|0,4,0,0)|0|0)>0){g=a+16|0;h=(c|0)==0;k=0;a=0;do{e=(k|0)<2^k;f=da(g|0,4,0,0)|0|0;d=da(f+(e<<4)+12|0,4,0,0)|0|0;if(!(!h?(cd(c,da(f+(e<<4)|0,4,0,0)|0|0)|0)!=0:0)){a=an(d+24|0,b,m)|0;if(a){a=da(a+8|0,4,0,0)|0|0;if(a)break a}else a=0}k=k+1|0}while((k|0)<(da(l|0,4,0,0)|0|0))}else a=0;while(0);i=n;return a|0}function bq(a){a=a|0;var b=0,c=0,d=0,e=0;e=da(a+8|0,4,0,0)|0|0;d=a+46|0;c=da(d|0,2,0,0)|0|0;c=(c&65535)>5?5:c&65535;b=da((da(a+12|0,4,0,0)|0|0)+28|0,2,0,0)|0|0;ea(e|0,(b<<16>>16<33?33:b)|0,2,0);jw(e+2|0,13512,c<<1|0)|0;b=da(d|0,2,0,1)|0|0;if(c>>>0<b>>>0)do{c=c+1|0;ea(e+(c<<1)|0,23|0,2,0);b=da(d|0,2,0,1)|0|0}while((c|0)<(b|0));if(da(a+50>>0|0,1,0,0)|0)ea(e+(b<<1)|0,0|0,2,0);return}function cq(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,k=0,l=0,m=0;l=i;i=i+64|0;if((i|0)>=(j|0))ba();h=l;a:do if((((c|0)!=0?(f=da(c|0,4,0,0)|0|0,(f|0)!=0):0)?(k=c+8|0,(da(k|0,4,0,0)|0|0)!=0):0)?(e=a+4|0,m=Zh(da(a|0,4,0,0)|0|0,f,da(e|0,4,0,0)|0|0)|0,(m|0)!=0):0){d=da(c+4|0,4,0,0)|0|0;b:do if(!d)g=11;else{if(!(cd(da(c|0,4,0,0)|0|0,d)|0)){e=da(m+8|0,4,0,0)|0|0;if(!e){g=11;break}while(1){f=da(e+51>>0|0,1,0,0)|0|0;if((f&3)==2)break;e=da(e+20|0,4,0,0)|0|0;if(!e){g=11;break b}}d=da(k|0,4,0,0)|0|0;b=e}else{b=aq(da(a|0,4,0,0)|0|0,d,da(e|0,4,0,0)|0|0)|0;e=da(k|0,4,0,0)|0|0;if(!b)break;f=da(b+51>>0|0,1,0,0)|0|0;d=e}k=(da(b+46|0,2,0,1)|0|0)+1|0;ea(b+51>>0|0,f&-5|0,1,0);e=b+8|0;Mq(d,k,da(e|0,4,0,0)|0|0,b);if(da(b+36|0,4,0,0)|0)break a;ea(m+28|0,da(da(e|0,4,0,0)|0|0,2,0,0)|0|0|0,2,0);break a}while(0);if((g|0)==11)e=da(k|0,4,0,0)|0|0;g=m+42|0;k=h+44|0;ea(k|0,da(g|0,2,0,0)|0|0|0,2,0);Mq(e,1,m+28|0,h);ea(g|0,da(k|0,2,0,0)|0|0|0,2,0)}while(0);i=l;return 0}function dq(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;do if(b){if((da(a+12|0,4,0,0)|0|0)>>>0<b>>>0){ea(f|0,b|0,4,0);en(a,44408,f);c=1;break}d=(da(a+8|0,4,0,0)|0|0)+(b>>>3)|0;e=da(d>>0|0,1,0,1)|0|0;c=1<<(b&7);if(!(e&c)){ea(d>>0|0,e|c|0,1,0);c=0;break}else{ea(f|0,b|0,4,0);en(a,44432,f);c=1;break}}else c=1;while(0);i=g;return c|0}function eq(a,b){a=a|0;b=b|0;var c=0,d=0;c=da(a|0,4,0,0)|0|0;do if(c){if((b|0)==1){b=c+8|0;ea(a|0,da(b|0,4,0,0)|0|0,4,0);ea(b|0,0|0,4,0);ea(c+12|0,0|0,4,0);break}b=b+-1|0;c=eq(a,b)|0;d=da(a|0,4,0,0)|0|0;if(d){ea(d+12|0,c|0,4,0);c=d+8|0;ea(a|0,da(c|0,4,0,0)|0|0,4,0);ea(c|0,eq(a,b)|0|0,4,0);return d|0}}else c=0;while(0);return c|0}function fq(a,b){a=a|0;b=b|0;var c=0;if((da(a+43>>0|0,1,0,0)|0|0)==2){c=a+24|0;if((da(c|0,4,0,0)|0|0)>0){b=a+32|0;a=0;do{Vc(da((da(b|0,4,0,0)|0|0)+(a<<2)|0,4,0,0)|0|0);ea((da(b|0,4,0,0)|0|0)+(a<<2)|0,0|0,4,0);a=a+1|0}while((a|0)<(da(c|0,4,0,0)|0|0))}}else{a=da(a+4|0,4,0,0)|0|0;qc[(fa(da((da(a|0,4,0,0)|0|0)+64|0,4,0,0)|0|0,127|0)|0)&127](a,b)|0}return}function gq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();b=Mg(b)|0;if(b)ch(c,a,Re(a)|0,d);i=d;return b|0}function hq(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=da(a|0,4,0,0)|0|0;d=a+16|0;e=a+84|0;bh(da(d|0,4,0,0)|0|0,(da(e|0,2,0,1)|0|0)<<1);lg(c,da(d|0,4,0,0)|0|0);ea(e|0,b|0,2,0);e=b*80|0;c=lh(c,e,0)|0;if(c){ew(c|0,0,e|0)|0;ea(d|0,c|0,4,0);if((b|0)>0){e=da(a|0,4,0,0)|0|0;d=b<<1;while(1){d=d+-1|0;ea(c+8|0,1|0,2,0);ea(c+32|0,e|0,4,0);if((d|0)<=0)break;else c=c+40|0}}}else ea(d|0,0|0,4,0);return}function iq(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(!(da((da(a|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0)){b=(_(da(a+84|0,2,0,1)|0|0,c)|0)+b|0;Wg((da(a+16|0,4,0,0)|0|0)+(b*40|0)|0,d,-1,1,e)|0}return}function jq(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=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;f=da(a|0,4,0,0)|0|0;e=f+1|0;ea(a|0,e|0,4,0);if((f|0)>98){c=a+8|0;e=da(c|0,4,0,0)|0|0;ea(a|0,f|0,4,0);do On(a);while((da(a|0,4,0,0)|0|0)>-1);sh(e,37160,g);ea(c|0,e|0,4,0)}else{ea(a+(e<<4)+12|0,b|0,2,0);ea(a+(e<<4)+14>>0|0,c|0,1,0);c=a+(e<<4)+16|0;ea(c+0|0,da(d+0|0,4,0,0)|0|0,4,0);ea(c+4|0,da(d+4|0,4,0,0)|0|0,4,0);ea(c+8|0,da(d+8|0,4,0,0)|0|0,4,0)}i=h;return}function kq(a,b,c){a=a|0;b=b|0;c=c|0;a=da(a+8|0,4,0,0)|0|0;switch(b&255|0){case 228:case 221:case 220:case 210:case 209:case 208:case 205:case 203:case 200:case 188:case 179:{Mk(da(a|0,4,0,0)|0|0,da(c|0,4,0,0)|0|0);break}case 252:case 197:{Pn(da(a|0,4,0,0)|0|0,da(c|0,4,0,0)|0|0);break}case 236:{Gk(da(a|0,4,0,0)|0|0,da(c+4|0,4,0,0)|0|0);break}case 175:case 174:{Fk(da(a|0,4,0,0)|0|0,da(c|0,4,0,0)|0|0);break}case 223:case 219:case 217:{Gk(da(a|0,4,0,0)|0|0,da(c|0,4,0,0)|0|0);break}case 207:case 196:case 195:case 163:{Lk(da(a|0,4,0,0)|0|0,da(c|0,4,0,0)|0|0,1);break}case 213:case 212:case 201:case 194:{Co(da(a|0,4,0,0)|0|0,da(c|0,4,0,0)|0|0);break}case 239:case 234:{Ek(da(a|0,4,0,0)|0|0,da(c|0,4,0,0)|0|0);break}case 243:case 238:case 229:case 227:case 216:case 204:case 202:{Fk(da(a|0,4,0,0)|0|0,da(c|0,4,0,0)|0|0);break}default:{}}return} 8 function Bl(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();k=o;n=a+16|0;if((da(n>>0|0,1,0,1)|0|0)<2?(da(a+17>>0|0,1,0,1)|0|0)<2:0)d=0;else{bp(a);m=a+64|0;g=da(m|0,4,0,0)|0|0;e=da(g|0,4,0,0)|0|0;do if(!e)e=0;else{if((e|0)==14696){Fi(g,0,0)|0;ea(g|0,0|0,4,0);e=0;break}f=da(a+5>>0|0,1,0,0)|0|0;if(f<<24>>24==3){f=a+72|0;l=f;if(!((da(l|0,4,0,0)|0|0)==0&(da(l+4|0,4,0,0)|0|0)==0)){e=$b[(fa(da(e+16|0,4,0,0)|0|0,63|0)|0)&63](g,0,0)|0;if(!e)if(!(da(a+8>>0|0,1,0,0)|0))e=0;else{e=da(m|0,4,0,0)|0|0;e=qc[(fa(da((da(e|0,4,0,0)|0|0)+20|0,4,0,0)|0|0,127|0)|0)&127](e,da(a+11>>0|0,1,0,1)|0|0)|0}}else e=0;m=f;ea(m|0,0|0,4,0);ea(m+4|0,0|0,4,0);break}else if(f<<24>>24!=1?(da(a+4>>0|0,1,0,0)|0|0)==0|f<<24>>24==5:0){m=(da(a+12>>0|0,1,0,0)|0|0)==0;kc[(fa(da(e+4|0,4,0,0)|0|0,127|0)|0)&127](g)|0;ea(g|0,0|0,4,0);if(!m){e=0;break}e=da(a|0,4,0,0)|0|0;e=$b[(fa(da(e+28|0,4,0,0)|0|0,63|0)|0)&63](e,da(a+172|0,4,0,0)|0|0,0)|0;break}l=a+72|0;h=l;if(!((da(h|0,4,0,0)|0|0)==0&(da(h+4|0,4,0,0)|0|0)==0)){h=a+160|0;d=da(h|0,4,0,0)|0|0;h=da(h+4|0,4,0,0)|0|0;if((b|0)!=0|(d|0)==0&(h|0)==0)e=$b[(fa(da(e+16|0,4,0,0)|0|0,63|0)|0)&63](g,0,0)|0;else e=sc[(fa(da(e+12|0,4,0,0)|0|0,31|0)|0)&31](g,14664,28,0,0)|0;if(!e){if(!(da(a+7>>0|0,1,0,0)|0)){e=da(m|0,4,0,0)|0|0;e=qc[(fa(da((da(e|0,4,0,0)|0|0)+20|0,4,0,0)|0|0,127|0)|0)&127](e,da(a+11>>0|0,1,0,1)|0|16)|0}else e=0;if((e|0)==0&((h|0)>0|(h|0)==0&d>>>0>0)){e=da(m|0,4,0,0)|0|0;e=qc[(fa(da((da(e|0,4,0,0)|0|0)+24|0,4,0,0)|0|0,127|0)|0)&127](e,k)|0;f=k;k=da(f+4|0,4,0,0)|0|0;if((e|0)==0&((k|0)>(h|0)|((k|0)==(h|0)?(da(f|0,4,0,0)|0|0)>>>0>d>>>0:0))){e=da(m|0,4,0,0)|0|0;e=$b[(fa(da((da(e|0,4,0,0)|0|0)+16|0,4,0,0)|0|0,63|0)|0)&63](e,d,h)|0}}}}else e=0;m=l;ea(m|0,0|0,4,0);ea(m+4|0,0|0,4,0)}while(0);f=a+56|0;di(da(f|0,4,0,0)|0|0);ea(f|0,0|0,4,0);ea(a+44|0,0|0,4,0);f=a+204|0;d=da(f|0,4,0,0)|0|0;b=da(d|0,4,0,0)|0|0;if(b){do{wl(b);b=da(d|0,4,0,0)|0|0}while((b|0)!=0);d=da(f|0,4,0,0)|0|0}f=a+24|0;cp(d,da(f|0,4,0,0)|0|0);g=a+208|0;d=da(g|0,4,0,0)|0|0;if(!d){if((e|0)==0&(c|0)!=0){d=da(f|0,4,0,0)|0|0;if((da(a+32|0,4,0,0)|0|0)>>>0>d>>>0)e=Al(a,d)|0;else e=0}}else{b=d+44|0;if(da(b>>0|0,1,0,0)|0){if(!(da(d+43>>0|0,1,0,0)|0)){m=da(d+4|0,4,0,0)|0|0;oc[(fa(da((da(m|0,4,0,0)|0|0)+56|0,4,0,0)|0|0,31|0)|0)&31](m,0,1,9)|0}ea(b>>0|0,0|0,1,0);ea(d+47>>0|0,0|0,1,0)}}if((e|0)==0&(c|0)!=0){d=da(a+60|0,4,0,0)|0|0;e=da(d|0,4,0,0)|0|0;if(!e)f=0;else{f=$b[(fa(da(e+40|0,4,0,0)|0|0,63|0)|0)&63](d,22,0)|0;f=(f|0)==12?0:f}}else f=e;do if(!(da(a+4>>0|0,1,0,0)|0)){d=da(g|0,4,0,0)|0|0;if((d|0)!=0?(dp(d,0)|0)==0:0){d=0;break}e=da(a+60|0,4,0,0)|0|0;d=da(e|0,4,0,0)|0|0;if(d){if(!(da(a+13>>0|0,1,0,0)|0))d=qc[(fa(da(d+32|0,4,0,0)|0|0,127|0)|0)&127](e,1)|0;else d=0;e=a+17|0;if((da(e>>0|0,1,0,0)|0|0)!=5)ea(e>>0|0,1|0,1,0)}else d=0;ea(a+18>>0|0,0|0,1,0)}else d=0;while(0);ea(n>>0|0,1|0,1,0);ea(a+19>>0|0,0|0,1,0);d=(f|0)==0?d:f}i=o;return d|0}function Cl(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=da(a+4|0,4,0,0)|0|0;c=da(a|0,4,0,0)|0|0;ea(f+19>>0|0,0|0,1,0);g=a+8|0;do if(da(g>>0|0,1,0,0)|0){if((da(c+152|0,4,0,0)|0|0)>1){c=f+76|0;if((da(c|0,4,0,0)|0|0)==(a|0)?(ea(c|0,0|0,4,0),b=f+22|0,ea(b|0,(da(b|0,2,0,1)|0)&65439|0,2,0),b=da(f+72|0,4,0,0)|0|0,(b|0)!=0):0)do{ea(b+8>>0|0,1|0,1,0);b=da(b+12|0,4,0,0)|0|0}while((b|0)!=0);ea(g>>0|0,1|0,1,0);break}c=f+72|0;b=da(c|0,4,0,0)|0|0;a:do if(b)do while(1){d=b+12|0;e=da(d|0,4,0,0)|0|0;if((da(b|0,4,0,0)|0|0)!=(a|0)){c=d;b=e;break}ea(c|0,e|0,4,0);if((da(b+4|0,4,0,0)|0|0)==1)b=e;else{Vc(b);b=da(c|0,4,0,0)|0|0}if(!b)break a}while((b|0)!=0);while(0);b=f+76|0;if((da(b|0,4,0,0)|0|0)!=(a|0)){b=da(f+40|0,4,0,0)|0|0;if((b|0)==2){e=f+22|0;ea(e|0,(da(e|0,2,0,1)|0)&65471|0,2,0);ea(f+40|0,1|0,4,0);e=20;break}}else{ea(b|0,0|0,4,0);b=f+22|0;ea(b|0,(da(b|0,2,0,1)|0)&65439|0,2,0);b=da(f+40|0,4,0,0)|0|0}b=b+-1|0;ea(f+40|0,b|0,4,0);if(!b){ea(f+20>>0|0,0|0,1,0);e=20}else e=20}else e=20;while(0);if(((e|0)==20?(ea(g>>0|0,0|0,1,0),(da(f+20>>0|0,1,0,0)|0|0)==0):0)?(h=f+12|0,i=da(h|0,4,0,0)|0|0,(i|0)!=0):0){ea(h|0,0|0,4,0);Ag(da(i+68|0,4,0,0)|0|0)}return}function Dl(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=((da(a+36|0,4,0,0)|0|0)>>>0)/5|0;if(b>>>0<2){d=0;e=da(a+32|0,4,0,0)|0|0;g=da(2514*4|0,4,0,0)|0|0}else{d=b+-2|0;d=d-((d>>>0)%((f+1|0)>>>0)|0)|0;g=da(2514*4|0,4,0,0)|0|0;e=da(a+32|0,4,0,0)|0|0;d=((d+1|0)==((g>>>0)/(e>>>0)|0|0)?3:2)+d|0}c=b-c-(((c-b+f+d|0)>>>0)/(f>>>0)|0)|0;a=a+32|0;d=((g>>>0)/(e>>>0)|0)+1|0;e=((g>>>0)/(e>>>0)|0)+1|0;c=((d>>>0<b>>>0&c>>>0<d>>>0)<<31>>31)+c|0;while(1){if(c>>>0<2)d=0;else{d=c+-2|0;d=d-((d>>>0)%((f+1|0)>>>0)|0)|0;d=((d+1|0)==((g>>>0)/((da(a|0,4,0,0)|0|0)>>>0)|0|0)?3:2)+d|0}if(!((d|0)==(c|0)|(c|0)==(e|0)))break;c=c+-1|0}return c|0}function El(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=(b|0)==0;d=a;a:while(1){do if((d|0)!=(c|0)){if(!e?(da(d+60|0,4,0,0)|0|0)!=(b|0):0)break;if(((da(d+73>>0|0,1,0,0)|0|0)+-1&255)<2){a=ep(d)|0;if(!a)break;else break a}else{fp(d);break}}while(0);d=da(d+8|0,4,0,0)|0|0;if(!d){a=0;break}}return a|0}function Fl(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+48|0;if((i|0)>=(j|0))ba();f=s;h=s+32|0;p=s+28|0;g=s+24|0;l=s+20|0;n=s+16|0;q=s+12|0;o=s+8|0;if(c>>>0<2)k=0;else{k=c+-2|0;k=k-((k>>>0)%(((((da(a+36|0,4,0,0)|0|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(((da(2514*4|0,4,0,0)|0|0)>>>0)/((da(a+32|0,4,0,0)|0|0)>>>0)|0|0)?3:2)+k|0}do if((k|0)!=(c|0)?((((da(2514*4|0,4,0,0)|0|0)>>>0)/((da(a+32|0,4,0,0)|0|0)>>>0)|0)+1|0)!=(c|0):0){m=da((da(a+12|0,4,0,0)|0|0)+56|0,4,0,0)|0|0;if((da(m+37>>0|0,1,0,1)|0|0)<<16|(da(m+36>>0|0,1,0,1)|0|0)<<24|(da(m+38>>0|0,1,0,1)|0|0)<<8|(da(m+39>>0|0,1,0,1)|0|0)){e=gp(a,c,h,p)|0;if(!e){m=da(h>>0|0,1,0,0)|0|0;if(m<<24>>24==2){if(d){e=0;break}e=hp(a,l,g,c,1)|0;if(e)break;f=da(l|0,4,0,0)|0|0;if(!f){r=24;break}Ag(da(f+68|0,4,0,0)|0|0);r=24;break}else if(m<<24>>24!=1){e=cl(a,c,q,0)|0;if(e)break;f=(d|0)==0;h=f?2:0;f=f?b:0;g=(d|0)!=0;do{e=hp(a,o,n,f,h)|0;if(e){r=16;break}k=da(o|0,4,0,0)|0|0;if(k)Ag(da(k+68|0,4,0,0)|0|0);k=da(n|0,4,0,0)|0|0}while(g&k>>>0>b>>>0);if((r|0)==16){f=da(q|0,4,0,0)|0|0;if(!f)break;Ag(da(f+68|0,4,0,0)|0|0);break}h=da(q|0,4,0,0)|0|0;e=Ym(a,h,m,da(p|0,4,0,0)|0|0,k,d)|0;if(h)Ag(da(h+68|0,4,0,0)|0|0);if(!e){r=24;break}else break}else{ea(f|0,56228|0,4,0);ea(f+4|0,10788|0,4,0);ad(11,13600,f);e=11;break}}}else e=101}else r=24;while(0);if((r|0)==24)if(!d){g=((da(2514*4|0,4,0,0)|0|0)>>>0)/((da(a+32|0,4,0,0)|0|0)>>>0)|0;h=g+1|0;k=a+36|0;f=c;while(1){e=f+-1|0;if((e|0)==(h|0)){f=e;continue}if(e>>>0<2)f=0;else{f=f+-3|0;f=f-((f>>>0)%(((((da(k|0,4,0,0)|0|0)>>>0)/5|0)+1|0)>>>0)|0)|0;f=((f+1|0)==(g|0)?3:2)+f|0}if((f|0)==(e|0))f=e;else break}ea(a+19>>0|0,1|0,1,0);ea(a+44|0,e|0,4,0);e=0}else e=0;i=s;return e|0}function Gl(a){a=a|0;var b=0,c=0,d=0;d=a+16|0;c=da(d>>0|0,1,0,0)|0|0;a:do if(c<<24>>24!=6)if((c&255)>=2){do if(!(da(a+208|0,4,0,0)|0)){if(!(c<<24>>24==2?1:(da(da(a+64|0,4,0,0)|0|0,4,0,0)|0|0)==0)){b=Jo(a,0)|0;break}b=Bl(a,0,0)|0;if((da(a+15>>0|0,1,0,0)|0|0)==0&(c&255)>2){ea(a+40|0,4|0,4,0);ea(d>>0|0,6|0,1,0);break a}}else{b=ip(a,2,-1)|0;c=Bl(a,da(a+19>>0|0,1,0,1)|0|0,0)|0;b=(b|0)==0?c:b}while(0);c=b&255;if((c|0)==10|(c|0)==13){ea(a+40|0,b|0,4,0);ea(d>>0|0,6|0,1,0)}}else b=0;else b=da(a+40|0,4,0,0)|0|0;while(0);return b|0}function Hl(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;a:do if((a|0)!=0?(e=da(a+4|0,4,0,0)|0|0,ea(e+4|0,da(a|0,4,0,0)|0|0,4,0),e=da(e+8|0,4,0,0)|0|0,(e|0)!=0):0){i=(c|0)==0;while(1){if(!i?((da(e+72>>0|0,1,0,0)|0)&1)==0:0){if(((da(e+73>>0|0,1,0,0)|0|0)+-1&255)<2?(d=ep(e)|0,(d|0)!=0):0)break}else{c=e+56|0;Vc(da(c|0,4,0,0)|0|0);ea(c|0,0|0,4,0);ea(e+73>>0|0,4|0,1,0);ea(e+68|0,b|0,4,0)}c=e+76|0;if((da(c|0,2,0,0)|0|0)>=0){h=0;while(1){f=e+(h<<2)+120|0;g=da(f|0,4,0,0)|0|0;if(g)Ag(da(g+68|0,4,0,0)|0|0);ea(f|0,0|0,4,0);if((h|0)<(da(c|0,2,0,0)|0|0))h=h+1|0;else break}}e=da(e+8|0,4,0,0)|0|0;if(!e)break a}Hl(a,d,0)|0;return d|0}while(0);return 0}function Il(a){a=a|0;var b=0,c=0,d=0;a:do if(!(da(a+4|0,4,0,0)|0)){d=da(a+20|0,4,0,0)|0|0;if((d|0)>0){a=da(a+16|0,4,0,0)|0|0;c=0;while(1){b=da(a+(c<<4)+4|0,4,0,0)|0|0;if((b|0)!=0?(da(b+16|0,4,0,0)|0|0)!=0:0){a=1;break a}c=c+1|0;if((c|0)>=(d|0)){a=0;break}}}else a=0}else a=1;while(0);return a|0}function Jl(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;c=da(3164*4|0,4,0,0)|0|0;if(c)mc[(fa(c|0,3|0)|0)&3]();i=a+20|0;g=da(i|0,4,0,0)|0|0;f=(g|0)>0;if(f){c=da(a+16|0,4,0,0)|0|0;e=0;do{d=da(c+(e<<4)+4|0,4,0,0)|0|0;if(d)ea((da(d+4|0,4,0,0)|0|0)+4|0,da(d|0,4,0,0)|0|0,4,0);e=e+1|0}while((e|0)!=(g|0))}j=a+24|0;if(!((da(j|0,4,0,0)|0)&2))c=1;else c=(da(a+145>>0|0,1,0,0)|0|0)!=0;if(f){h=a+16|0;c=c&1;f=g;g=0;e=0;while(1){d=da((da(h|0,4,0,0)|0|0)+(g<<4)+4|0,4,0,0)|0|0;if(!d)d=f;else{e=(da(d+8>>0|0,1,0,0)|0|0)==2?1:e;Kg(d,b,c);d=da(i|0,4,0,0)|0|0}g=g+1|0;if((g|0)>=(d|0))break;else f=d}}else e=0;Qn(a,68);c=da(3166*4|0,4,0,0)|0|0;if(c)mc[(fa(c|0,3|0)|0)&3]();c=da(j|0,4,0,0)|0|0;if((c&2|0)!=0?(da(a+145>>0|0,1,0,0)|0|0)==0:0){c=da(a+4|0,4,0,0)|0|0;if(c)do{d=c+88|0;ea(d|0,da(d|0,2,0,0)|0|8|0,2,0);c=da(c+52|0,4,0,0)|0|0}while((c|0)!=0);Dg(a);c=da(j|0,4,0,0)|0|0}d=a+504|0;ea(d+0|0,0|0,4,0);ea(d+4|0,0|0,4,0);ea(d+8|0,0|0,4,0);ea(d+12|0,0|0,4,0);ea(j|0,c&-16777217|0,4,0);c=da(a+204|0,4,0,0)|0|0;do if(c){if((e|0)==0?(da(a+63>>0|0,1,0,0)|0|0)!=0:0)break;bc[(fa(c|0,31|0)|0)&31](da(a+200|0,4,0,0)|0|0)}while(0);return}function Kl(a){a=a|0;var b=0,c=0;c=a+488|0;b=da(c|0,4,0,0)|0|0;if(b)do{ea(c|0,da(b+24|0,4,0,0)|0|0,4,0);lg(a,b);b=da(c|0,4,0,0)|0|0}while((b|0)!=0);ea(a+496|0,0|0,4,0);ea(a+500|0,0|0,4,0);ea(a+70>>0|0,0|0,1,0);return}function Ll(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;f=da(a+4|0,4,0,0)|0|0;ea(f+4|0,da(a|0,4,0,0)|0|0,4,0);c=da(f+8|0,4,0,0)|0|0;if(c)do{b=c;c=da(c+8|0,4,0,0)|0|0;if((da(b|0,4,0,0)|0|0)==(a|0))jp(b)}while((c|0)!=0);Kg(a,0,0);a:do if(da(a+9>>0|0,1,0,0)|0){c=f+64|0;b=da(c|0,4,0,0)|0|0;ea(c|0,b+-1|0,4,0);if((b|0)<2){b=da(3664*4|0,4,0,0)|0|0;if((b|0)==(f|0)){ea(3664*4|0,da(f+68|0,4,0,0)|0|0,4,0);d=12;break}else c=b;do{if(!c){d=12;break a}b=c+68|0;c=da(b|0,4,0,0)|0|0}while((c|0)!=(f|0));ea(b|0,da(f+68|0,4,0,0)|0|0,4,0);d=12}}else d=12;while(0);if((d|0)==12){kp(da(f|0,4,0,0)|0|0);b=da(f+52|0,4,0,0)|0|0;c=f+48|0;if((b|0)!=0?(e=da(c|0,4,0,0)|0|0,(e|0)!=0):0)bc[(fa(b|0,31|0)|0)&31](e);b=da(c|0,4,0,0)|0|0;if(b)Vc(b);b=f+80|0;c=da(b|0,4,0,0)|0|0;if(c){c=c+-4|0;ea(b|0,c|0,4,0);_k(c);ea(b|0,0|0,4,0)}Vc(f)}c=da(a+28|0,4,0,0)|0|0;b=a+24|0;if(c)ea(c+24|0,da(b|0,4,0,0)|0|0,4,0);b=da(b|0,4,0,0)|0|0;if(b)ea(b+28|0,c|0,4,0);Vc(a);return}function Ml(a,b){a=a|0;b=b|0;var c=0;b=da(b+32|0,4,0,0)|0|0;if((b|0)!=0?(c=(da(b|0,4,0,0)|0|0)+-1|0,ea(b|0,c|0,4,0),(c|0)==0):0){bc[(fa(da(b+4|0,4,0,0)|0|0,31|0)|0)&31](da(b+8|0,4,0,0)|0|0);lg(a,b)}return}function Nl(a){a=a|0;var b=0,c=0;c=a+8|0;b=da(c|0,4,0,0)|0|0;ea(c|0,0|0,4,0);c=a+12|0;Vc(da(c|0,4,0,0)|0|0);ea(c|0,0|0,4,0);ea(a|0,0|0,4,0);if(b)do{c=b;b=da(b|0,4,0,0)|0|0;Vc(c)}while((b|0)!=0);ea(a+4|0,0|0,4,0);return}function Ol(a){a=a|0;var b=0,c=0,d=0,e=0;if(a){d=da(a|0,4,0,0)|0|0;kg(d,a);e=da(a+48|0,4,0,0)|0|0;c=a+52|0;b=da(c|0,4,0,0)|0|0;if(!e)ea(d+4|0,b|0,4,0);else{ea(e+52|0,b|0,4,0);b=da(c|0,4,0,0)|0|0}if(b)ea(b+48|0,e|0,4,0);ea(a+40|0,-1241070648|0,4,0);ea(a|0,0|0,4,0);lg(d,a)}return}function Pl(a){a=a|0;var b=0;ea(a+65>>0|0,0|0,1,0);ea(a+52|0,7|0,4,0);a=da(a+236|0,4,0,0)|0|0;do if(a){b=a+8|0;if(!((da(b|0,2,0,0)|0)&9312)){ea(b|0,1|0,2,0);break}else{ug(a);break}}while(0);return}function Ql(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+32|0;if((i|0)>=(j|0))ba();q=A;t=A+16|0;m=A+12|0;n=A+8|0;z=da(a|0,4,0,0)|0|0;if(da(z+65>>0|0,1,0,0)|0)ea(a+80|0,7|0,4,0);c=da(a+200|0,4,0,0)|0|0;if(c)ew(c|0,0,da(a+196|0,4,0,0)|0|0)|0;e=a+176|0;c=da(e|0,4,0,0)|0|0;if(c){while(1){d=da(c+4|0,4,0,0)|0|0;if(!d)break;else c=d}Wl(c)|0;ea(e|0,0|0,4,0);ea(a+184|0,0|0,4,0)}k=a+56|0;c=da(k|0,4,0,0)|0|0;a:do if((c|0)!=0?(l=a+36|0,b=da(l|0,4,0,0)|0|0,(b|0)>0):0){e=0;while(1){d=da(c+(e<<2)|0,4,0,0)|0|0;if(!d)d=b;else{Am(a,d);ea((da(k|0,4,0,0)|0|0)+(e<<2)|0,0|0,4,0);d=da(l|0,4,0,0)|0|0}e=e+1|0;if((e|0)>=(d|0))break a;c=da(k|0,4,0,0)|0|0;b=d}}while(0);c=da(a+8|0,4,0,0)|0|0;if(c)bh(c+40|0,da(a+28|0,4,0,0)|0|0);l=a+180|0;c=da(l|0,4,0,0)|0|0;if(c)do{ea(l|0,da(c+4|0,4,0,0)|0|0,4,0);k=c+80|0;b=c+60|0;d=da(b|0,4,0,0)|0|0;g=k+(d*40|0)|0;h=c+64|0;if((da(h|0,4,0,0)|0|0)>0){e=0;do{Am(da(c|0,4,0,0)|0|0,da(g+(e<<2)|0,4,0,0)|0|0);e=e+1|0}while((e|0)<(da(h|0,4,0,0)|0|0));d=da(b|0,4,0,0)|0|0}bh(k,d);lg(da(da(c|0,4,0,0)|0|0,4,0,0)|0|0,c);c=da(l|0,4,0,0)|0|0}while((c|0)!=0);if(da(a+204|0,4,0,0)|0)dm(a,-1,0);x=a+40|0;b:do if((da(x|0,4,0,0)|0|0)==-1108210269){v=a+76|0;if((da(v|0,4,0,0)|0|0)>-1){w=a+88|0;h=da(w|0,2,0,0)|0|0;if(h&128){u=a+80|0;e=da(u|0,4,0,0)|0|0;g=e&255;d=g+-7|0;do if(d>>>0<7?(f=(77>>>(d&127)&1)!=0,f):0)if((h&64)==0|(g|0)!=9){if((g|0)==7|(g|0)==13?(h&32)!=0:0){b=2;break}Jl(z,516);Kl(z);ea(z+63>>0|0,1|0,1,0);ea(a+92|0,0|0,4,0);e=da(u|0,4,0,0)|0|0;b=0}else{f=1;b=0}else{f=0;b=0}while(0);if((e|0)==0?(s=a+144|0,r=da(s+4|0,4,0,0)|0|0,(r|0)>0|(r|0)==0&(da(s|0,4,0,0)|0|0)>>>0>0):0){s=da(a|0,4,0,0)|0|0;ea(u|0,787|0,4,0);ea(a+86>>0|0,2|0,1,0);ch(a+44|0,s,34376,q)}g=z+304|0;if((da(g|0,4,0,0)|0|0)>0?(da(z+328|0,4,0,0)|0|0)==0:0)y=141;else if((da(z+63>>0|0,1,0,0)|0|0)!=0?(da(z+156|0,4,0,0)|0|0)==(((da(w|0,2,0,1)|0|0)>>>6&1^1)&65535|0):0){do if(!(da(u|0,4,0,0)|0))y=41;else{if(!((da(a+86>>0|0,1,0,0)|0|0)!=3|f)){y=41;break}Jl(z,0);ea(a+92|0,0|0,4,0)}while(0);c:do if((y|0)==41){d:do if(sm(a,1)|0)if(!((da(w|0,2,0,0)|0)&64))c=787;else{b=1;break b}else{f=z+328|0;d=da(f|0,4,0,0)|0|0;ea(f|0,0|0,4,0);e=da(g|0,4,0,0)|0|0;e:do if((e|0)>0){h=0;f:while(1){l=da((da(d+(h<<2)|0,4,0,0)|0|0)+8|0,4,0,0)|0|0;do if(l){k=da((da(l|0,4,0,0)|0|0)+60|0,4,0,0)|0|0;if(!k)break;c=kc[(fa(k|0,127|0)|0)&127](l)|0;Lm(a,l);if(c)break f;e=da(g|0,4,0,0)|0|0}while(0);h=h+1|0;if((h|0)>=(e|0)){y=50;break e}}ea(f|0,d|0,4,0);y=135}else y=50;while(0);g:do if((y|0)==50){ea(f|0,d|0,4,0);r=z+20|0;s=z+16|0;k=0;e=0;h=0;h:while(1){g=da(r|0,4,0,0)|0|0;if((k|0)>=(g|0)){d=e;break}f=da(s|0,4,0,0)|0|0;l=k;while(1){k=da(f+(l<<4)+4|0,4,0,0)|0|0;if((k|0)!=0?(da(k+8>>0|0,1,0,0)|0|0)==2:0)break;l=l+1|0;if((l|0)>=(g|0)){d=e;break h}}c=da(k+4|0,4,0,0)|0|0;ea(c+4|0,da(k|0,4,0,0)|0|0,4,0);c=ap(da(c|0,4,0,0)|0|0)|0;if(!c){k=l+1|0;e=((l|0)!=1&1)+e|0;h=1}else{y=135;break g}}do if(h){f=da(z+196|0,4,0,0)|0|0;if(!f)break;if(kc[(fa(f|0,127|0)|0)&127](da(z+192|0,4,0,0)|0|0)|0){c=531;break d}}while(0);e=da((da(s|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;h=da(da(e+4|0,4,0,0)|0|0,4,0,0)|0|0;g=(da(h+15>>0|0,1,0,0)|0|0)==0;if(g){l=da(h+168|0,4,0,0)|0|0;if(l)y=62}else{l=10360;y=62}do if((y|0)==62){k=l;while(1)if(!(da(k>>0|0,1,0,0)|0))break;else k=k+1|0;if((k-l&1073741823|0)==0|(d|0)<2)break;p=da(z|0,4,0,0)|0|0;if(g){f=da(h+168|0,4,0,0)|0|0;ea(t|0,0|0,4,0);if(!f){l=0;f=0}else y=80}else{ea(t|0,0|0,4,0);f=10360;y=80}if((y|0)==80){h=f;while(1)if(!(da(h>>0|0,1,0,0)|0))break;else h=h+1|0;l=h-f&1073741823}ea(q|0,f|0,4,0);o=th(z,44696,q)|0;if(!o){c=7;break d}l=o+l|0;k=p+32|0;h=0;i:while(1){do if(h){if((h|0)>100){y=87;break i}if((h|0)!=1)break;ea(q|0,o|0,4,0);ad(13,44728,q)}while(0);bd(4,n);c=da(n|0,4,0,0)|0|0;ea(q|0,c>>>8|0,4,0);ea(q+4|0,c&255|0,4,0);$c(13,l,44744,q)|0;c=oc[(fa(da(k|0,4,0,0)|0|0,31|0)|0)&31](p,o,0,m)|0;g=(c|0)==0;if(g&(da(m|0,4,0,0)|0|0)!=0)h=h+1|0;else{y=91;break}}if((y|0)==87){ea(q|0,o|0,4,0);ad(13,44712,q);$b[(fa(da(p+28|0,4,0,0)|0|0,63|0)|0)&63](p,o,0)|0;y=92}else if((y|0)==91)if(g)y=92;do if((y|0)==92){c=lp(p,o,t,16406,0)|0;if(c)break;f=da(r|0,4,0,0)|0|0;j:do if((f|0)>0){m=0;k=0;n=0;h=0;k:while(1){l=da((da(s|0,4,0,0)|0|0)+(n<<4)+4|0,4,0,0)|0|0;do if(!l)l=m;else{if((da(l+8>>0|0,1,0,0)|0|0)!=2){l=m;break}g=da(l+4|0,4,0,0)|0|0;e=da(g|0,4,0,0)|0|0;d=da(e+172|0,4,0,0)|0|0;if(!d){l=m;break}if(!h){ea(g+4|0,da(l|0,4,0,0)|0|0,4,0);h=(da(e+7>>0|0,1,0,0)|0|0)==0&1}e=da(t|0,4,0,0)|0|0;l=d;while(1)if(!(da(l>>0|0,1,0,0)|0))break;else l=l+1|0;g=d;c=sc[(fa(da((da(e|0,4,0,0)|0|0)+12|0,4,0,0)|0|0,31|0)|0)&31](e,d,(l-g&1073741823)+1|0,m,k)|0;l=d;while(1)if(!(da(l>>0|0,1,0,0)|0))break;else l=l+1|0;if(c){f=e;y=106;break k}l=iw((l-g&1073741823)+1|0,0,m|0,k|0)|0;f=da(r|0,4,0,0)|0|0;k=C}while(0);n=n+1|0;if((n|0)>=(f|0))break;else m=l}if((y|0)==106){d=da(f|0,4,0,0)|0|0;if(d){kc[(fa(da(d+4|0,4,0,0)|0|0,127|0)|0)&127](e)|0;ea(f|0,0|0,4,0)}Vc(e);$b[(fa(da(p+28|0,4,0,0)|0|0,63|0)|0)&63](p,o,0)|0;lg(z,o);y=135;break g}do if(!h)h=0;else{g=da(t|0,4,0,0)|0|0;if((kc[(fa(da((da(g|0,4,0,0)|0|0)+48|0,4,0,0)|0|0,127|0)|0)&127](g)|0)&1024)break;c=qc[(fa(da((da(g|0,4,0,0)|0|0)+20|0,4,0,0)|0|0,127|0)|0)&127](g,2)|0;if(!c)break;d=da(g|0,4,0,0)|0|0;if(d){kc[(fa(da(d+4|0,4,0,0)|0|0,127|0)|0)&127](g)|0;ea(g|0,0|0,4,0)}Vc(g);$b[(fa(da(p+28|0,4,0,0)|0|0,63|0)|0)&63](p,o,0)|0;lg(z,o);y=135;break g}while(0);e=da(r|0,4,0,0)|0|0;if((e|0)>0)l=0;else{l=1;c=0;break}while(1){g=da((da(s|0,4,0,0)|0|0)+(l<<4)+4|0,4,0,0)|0|0;if(g){c=Jg(g,o)|0;if(c){l=0;break j}e=da(r|0,4,0,0)|0|0}l=l+1|0;if((l|0)>=(e|0)){l=1;c=0;break}}}else{l=1;h=0;c=0}while(0);g=da(t|0,4,0,0)|0|0;f=da(g|0,4,0,0)|0|0;if(f){kc[(fa(da(f+4|0,4,0,0)|0|0,127|0)|0)&127](g)|0;ea(g|0,0|0,4,0)}Vc(g);if(!l){lg(z,o);y=135;break g}c=$b[(fa(da(p+28|0,4,0,0)|0|0,63|0)|0)&63](p,o,h)|0;lg(z,o);if(c){y=135;break g}c=da(3164*4|0,4,0,0)|0|0;if(c)mc[(fa(c|0,3|0)|0)&3]();c=da(r|0,4,0,0)|0|0;if((c|0)>0){e=0;do{d=da((da(s|0,4,0,0)|0|0)+(e<<4)+4|0,4,0,0)|0|0;if(d){Ig(d,1)|0;c=da(r|0,4,0,0)|0|0}e=e+1|0}while((e|0)<(c|0))}c=da(3166*4|0,4,0,0)|0|0;if(c)mc[(fa(c|0,3|0)|0)&3]();Qn(z,64);break g}while(0);lg(z,o);y=135;break g}while(0);c=da(r|0,4,0,0)|0|0;do if((c|0)>0){d=1;while(1){if(e){c=Jg(e,0)|0;if(c){y=135;break g}c=da(r|0,4,0,0)|0|0}if((d|0)>=(c|0))break;e=da((da(s|0,4,0,0)|0|0)+(d<<4)+4|0,4,0,0)|0|0;d=d+1|0}if((c|0)>0)e=0;else break;do{d=da((da(s|0,4,0,0)|0|0)+(e<<4)+4|0,4,0,0)|0|0;if(d){c=Ig(d,0)|0;if(c){y=135;break g}c=da(r|0,4,0,0)|0|0}e=e+1|0}while((e|0)<(c|0))}while(0);Qn(z,64)}while(0);do if((y|0)==135){if(!c)break;else if((c|0)!=5)break d;if(!((da(w|0,2,0,0)|0)&64)){c=5;break d}else{b=5;break b}}while(0);t=z+504|0;y=z+24|0;ea(t+0|0,0|0,4,0);ea(t+4|0,0|0,4,0);ea(t+8|0,0|0,4,0);ea(t+12|0,0|0,4,0);ea(y|0,(da(y|0,4,0,0)|0)&-16777219|0,4,0);break c}while(0);ea(u|0,c|0,4,0);Jl(z,0);ea(a+92|0,0|0,4,0)}while(0);ea(z+500|0,0|0,4,0);y=146}else y=141;do if((y|0)==141)if(!b)if(da(u|0,4,0,0)|0){c=da(a+86>>0|0,1,0,0)|0|0;if(c<<24>>24==2){b=2;y=147;break}else if(c<<24>>24==3){b=1;y=147;break}else{Jl(z,516);Kl(z);ea(z+63>>0|0,1|0,1,0);ea(a+92|0,0|0,4,0);y=146;break}}else{b=1;y=147}else y=147;while(0);if((y|0)==146)if(!b)b=0;else y=147;if((y|0)==147){c=_l(a,b)|0;if(c){y=da(u|0,4,0,0)|0|0;if((y|0)==0|(y&255|0)==19){ea(u|0,c|0,4,0);y=a+44|0;lg(z,da(y|0,4,0,0)|0|0);ea(y|0,0|0,4,0)}Jl(z,516);Kl(z);ea(z+63>>0|0,1|0,1,0);ea(a+92|0,0|0,4,0)}}if((da(w|0,2,0,0)|0)&4){if((b|0)==2){ea(z+80|0,0|0,4,0);b=a+92|0}else{b=a+92|0;y=da(b|0,4,0,0)|0|0;ea(z+80|0,y|0,4,0);u=z+84|0;ea(u|0,(da(u|0,4,0,0)|0|0)+y|0,4,0)}ea(b|0,0|0,4,0)}}if((da(v|0,4,0,0)|0|0)>-1){b=z+148|0;ea(b|0,(da(b|0,4,0,0)|0|0)+-1|0,4,0);b=da(w|0,2,0,0)|0|0;if(!(b&64)){b=z+156|0;ea(b|0,(da(b|0,4,0,0)|0|0)+-1|0,4,0);b=da(w|0,2,0,0)|0|0}if(b&128){y=z+152|0;ea(y|0,(da(y|0,4,0,0)|0|0)+-1|0,4,0)}}}ea(x|0,1369188723|0,4,0);b=a+80|0;if(!(da((da(a|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0)){b=(da(b|0,4,0,0)|0|0)==5?5:0;break}else{ea(b|0,7|0,4,0);b=0;break}}else b=0;while(0);i=A;return b|0}function Rl(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=a+8|0;d=da(e|0,2,0,1)|0|0;do if(d&18){ea(e|0,d|2|0,2,0);if(d&16384)Qg(a)|0;c=a+10|0;b=b&255;d=b&247;if((da(c>>0|0,1,0,1)|0|0|0)!=(d|0))Xl(a,d)|0;if(((b&8|0)!=0?((da(a+16|0,4,0,0)|0)&1|0)!=0:0)?(Ul(a)|0)!=0:0){c=0;break}if(((da(e|0,2,0,0)|0)&514)==2){$l(a)|0;f=12}else f=12}else{am(a,b,0)|0;d=b&247;c=a+10|0;f=12}while(0);if((f|0)==12)if((da(c>>0|0,1,0,1)|0|0|0)==(d|0))c=da(a+16|0,4,0,0)|0|0;else c=0;return c|0}function Sl(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0.0,g=0,h=0.0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;ea(b|0,+(0.0),8,1);g=d&255;if(d<<24>>24==1){d=a;e=c;m=1;p=0}else{e=3-g|0;a:do if((e|0)<(c|0))while(1){d=e+2|0;if(da(a+e>>0|0,1,0,0)|0){c=1;break a}if((d|0)<(c|0))e=d;else{c=0;e=d;break}}else c=0;while(0);d=a+(g&1)|0;e=g+-3+e|0;m=2;p=c}o=a+e|0;b:do if(d>>>0<o>>>0){while(1){e=da(d>>0|0,1,0,0)|0|0;if(!((da(10368+(e&255)>>0|0,1,0,0)|0)&1))break;d=d+m|0;if(d>>>0>=o>>>0){d=0;break b}}if(e<<24>>24==45){d=d+m|0;n=-1}else if(e<<24>>24==43){d=d+m|0;n=1}else n=1;c:do if(d>>>0<o>>>0){e=0;do{if((da(d>>0|0,1,0,0)|0|0)!=48)break c;d=d+m|0;e=e+1|0}while(d>>>0<o>>>0)}else e=0;while(0);d:do if(d>>>0<o>>>0){a=0;g=0;while(1){c=da(d>>0|0,1,0,0)|0|0;if(!(((c&255)+-48|0)>>>0<10&((a|0)<214748364|(a|0)==214748364&g>>>0<3435973835))){i=a;break d}g=rw(g|0,a|0,10,0)|0;a=(c<<24>>24)+-48|0;g=iw(a|0,((a|0)<0)<<31>>31|0,g|0,C|0)|0;a=C;d=d+m|0;e=e+1|0;if(d>>>0>=o>>>0){i=a;break}}}else{g=0;i=0}while(0);e:do if(d>>>0<o>>>0){c=0;while(1){a=da(d>>0|0,1,0,0)|0|0;if(((a&255)+-48|0)>>>0>=10){j=c;break}d=d+m|0;e=e+1|0;a=c+1|0;if(d>>>0<o>>>0)c=a;else{k=i;j=a;a=0;i=1;c=1;break e}}f:do if(a<<24>>24==46){c=d+m|0;g:do if(c>>>0<o>>>0){k=c;while(1){a=da(k>>0|0,1,0,0)|0|0;if(!(((a&255)+-48|0)>>>0<10&((i|0)<214748364|(i|0)==214748364&g>>>0<3435973835))){c=k;k=i;break g}g=rw(g|0,i|0,10,0)|0;i=(a<<24>>24)+-48|0;g=iw(i|0,((i|0)<0)<<31>>31|0,g|0,C|0)|0;i=C;e=e+1|0;a=j+-1|0;c=d+(m<<1)|0;if(c>>>0<o>>>0){d=k;k=c;j=a}else{d=k;k=i;j=a;break}}}else k=i;while(0);if(c>>>0<o>>>0){i=m<<1;while(1){if(((da(c>>0|0,1,0,1)|0|0)+-48|0)>>>0>=10)break f;a=d+i|0;e=e+1|0;if(a>>>0<o>>>0){d=c;c=a}else{c=a;break}}}}else{c=d;k=i}while(0);if(c>>>0<o>>>0){l=da(c>>0|0,1,0,0)|0|0;h:do if(l<<24>>24==69|l<<24>>24==101){d=c+m|0;if(d>>>0>=o>>>0){a=0;i=0;c=1;break e}a=da(d>>0|0,1,0,0)|0|0;if(a<<24>>24==45){d=c+(m<<1)|0;l=-1}else if(a<<24>>24==43){d=c+(m<<1)|0;l=1}else l=1;if(d>>>0<o>>>0){c=0;i=0}else{a=0;i=0;c=l;break e}while(1){a=da(d>>0|0,1,0,0)|0|0;if(((a&255)+-48|0)>>>0>=10){a=c;c=l;break h}if((c|0)<1e4)a=(c*10|0)+-48+(a<<24>>24)|0;else a=1e4;d=d+m|0;if(d>>>0<o>>>0){c=a;i=1}else{i=1;c=l;break}}}else{d=c;a=0;i=1;c=1}while(0);if((e|0)!=0&(i|0)!=0&d>>>0<o>>>0)do{if(!((da(10368+(da(d>>0|0,1,0,1)|0|0)>>0|0,1,0,0)|0)&1))break e;d=d+m|0}while(d>>>0<o>>>0)}else{d=c;a=0;i=1;c=1}}else{k=i;j=0;a=0;i=1;c=1}while(0);a=(_(a,c)|0)+j|0;l=(a|0)<0;c=l?0-a|0:a;do if((g|0)==0&(k|0)==0)if((n|0)<0)f=(e|0)!=0?-0.0:0.0;else f=0.0;else{if((a>>31|1|0)>0)if(((k|0)<214748364|(k|0)==214748364&g>>>0<3435973836)&(c|0)>0){a=k;do{c=c+-1|0;g=rw(g|0,a|0,10,0)|0;a=C}while(((a|0)<214748364|(a|0)==214748364&g>>>0<3435973836)&(c|0)>0)}else a=k;else{j=qw(g|0,k|0,10,0)|0;if((j|0)==0&(C|0)==0&(c|0)>0){a=k;do{c=c+-1|0;g=pw(g|0,a|0,10,0)|0;a=C;k=qw(g|0,a|0,10,0)|0}while((k|0)==0&(C|0)==0&(c|0)>0)}else a=k}k=(n|0)<0;j=cw(0,0,g|0,a|0)|0;j=k?j:g;k=k?C:a;if(!c){f=+(j>>>0)+4294967296.0*+(k|0);break}if((c+-308|0)>>>0<34){if(!((c|0)%308|0))h=1.0;else{f=1.0;do{f=f*10.0;c=c+-1|0}while(((c|0)%308|0|0)!=0);h=f}f=+(j>>>0)+4294967296.0*+(k|0);if(l){f=f/h/1.e+308;break}else{f=f*h*1.e+308;break}}if((c|0)>341){f=+(j>>>0)+4294967296.0*+(k|0);if(l){f=f*0.0;break}else{f=f*s;break}}if(!((c|0)%22|0)){g=c;f=1.0}else{g=c;f=1.0;do{f=f*10.0;g=g+-1|0}while(((g|0)%22|0|0)!=0)}if((g|0)>0){do{f=f*1.0e22;g=g+-22|0}while((g|0)>0);h=f}else h=f;f=+(j>>>0)+4294967296.0*+(k|0);if(l){f=f/h;break}else{f=f*h;break}}while(0);ea(b|0,+f,8,1);d=d>>>0>=o>>>0&(e|0)>0&(i|0)!=0&(p|0)==0&1}else d=0;while(0);return d|0}function Tl(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,k=0,l=0,m=0,n=0;g=d&255;if(d<<24>>24==1){e=a;f=c;l=1;c=0}else{f=3-g|0;a:do if((f|0)<(c|0))while(1){d=f+2|0;if(da(a+f>>0|0,1,0,0)|0){c=1;break a}if((d|0)<(c|0))f=d;else{c=0;f=d;break}}else c=0;while(0);e=a+(g&1)|0;f=g+-3+f|0;l=2}i=a+f|0;b:do if(e>>>0<i>>>0){while(1){f=da(e>>0|0,1,0,0)|0|0;if(!((da(10368+(f&255)>>0|0,1,0,0)|0)&1))break;e=e+l|0;if(e>>>0>=i>>>0){j=0;break b}}if(f<<24>>24==43){e=e+l|0;j=0;break}else if(f<<24>>24==45){e=e+l|0;j=1;break}else{j=0;break}}else j=0;while(0);c:do if(e>>>0<i>>>0){f=e;while(1){if((da(f>>0|0,1,0,0)|0|0)!=48){k=f;break c}f=f+l|0;if(f>>>0>=i>>>0){k=f;break}}}else k=e;while(0);do if(k>>>0<i>>>0){a=k;h=0;g=0;f=0;while(1){d=da(a>>0|0,1,0,0)|0|0;if((d+-48&255)>=10){a=0;i=g;break}g=rw(h|0,g|0,10,0)|0;h=d<<24>>24;g=iw(g|0,C|0,-48,-1)|0;h=iw(g|0,C|0,h|0,((h|0)<0)<<31>>31|0)|0;g=C;f=f+l|0;a=k+f|0;if(a>>>0>=i>>>0){a=1;i=g;break}}g=d<<24>>24;d=(j|0)!=0;if((i|0)>=0)if(d){d=i;n=22;break}else{d=i;n=23;break}else{h=b;ea(h|0,(d?0:-1)|0,4,0);ea(h+4|0,(d?-2147483648:2147483647)|0,4,0);h=d?0:2;break}}else if(!j){a=1;h=0;d=0;g=0;f=0;n=23}else{a=1;h=0;d=0;g=0;f=0;n=22}while(0);if((n|0)==22){j=cw(0,0,h|0,d|0)|0;h=b;ea(h|0,j|0,4,0);ea(h+4|0,C|0,4,0);h=0}else if((n|0)==23){j=b;ea(j|0,h|0,4,0);ea(j+4|0,d|0,4,0);h=2}if(((g|0)==0|a?!((f|0)==0&(e|0)==(k|0)):0)?(m=l*19|0,!((f|0)>(m|0)|(c|0)!=0)):0)if((f|0)>=(m|0)){f=0;do{e=da(k+(_(f,l)|0)>>0|0,1,0,0)|0|0;c=da(11192+f>>0|0,1,0,0)|0|0;f=f+1|0;d=e<<24>>24==c<<24>>24}while(d&(f|0)<18);if(d)e=(da(k+(l*18|0)>>0|0,1,0,0)|0|0)+-56|0;else e=((e<<24>>24)-(c<<24>>24)|0)*10|0;if((e|0)>=0)return ((e|0)>0?1:h)|0;else e=0}else e=0;else e=1;return e|0}function Ul(a){a=a|0;var b=0,c=0;c=a+8|0;b=da(c|0,2,0,0)|0|0;if(b&16384){Qg(a)|0;b=da(c|0,2,0,0)|0|0}do if(b&18){if((da(a+24|0,4,0,0)|0|0)!=0?(da(a+16|0,4,0,0)|0|0)==(da(a+20|0,4,0,0)|0|0):0){b=0;break}b=a+12|0;if(!(dh(a,(da(b|0,4,0,0)|0|0)+2|0,1)|0)){a=a+16|0;ea((da(a|0,4,0,0)|0|0)+(da(b|0,4,0,0)|0|0)>>0|0,0|0,1,0);ea((da(a|0,4,0,0)|0|0)+((da(b|0,4,0,0)|0|0)+1)>>0|0,0|0,1,0);ea(c|0,da(c|0,2,0,1)|0|0|512|0,2,0);b=0}else b=7}else b=0;while(0);return b|0}function Vl(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;c=qo(a,b,c,d)|0;if(!c)lg(a,b);return c|0}function Wl(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=da(a|0,4,0,0)|0|0;ea(c+200|0,da(a+20|0,4,0,0)|0|0,4,0);ea(c+196|0,da(a+56|0,4,0,0)|0|0,4,0);ea(c+4|0,da(a+8|0,4,0,0)|0|0,4,0);ea(c+32|0,da(a+48|0,4,0,0)|0|0,4,0);ea(c+8|0,da(a+16|0,4,0,0)|0|0,4,0);ea(c+28|0,da(a+52|0,4,0,0)|0|0,4,0);ea(c+56|0,da(a+24|0,4,0,0)|0|0,4,0);ea(c+36|0,da(a+40|0,4,0,0)|0|0,4,0);f=a+32|0;d=da(f+4|0,4,0,0)|0|0;b=da(c|0,4,0,0)|0|0;e=b+32|0;ea(e|0,da(f|0,4,0,0)|0|0,4,0);ea(e+4|0,d|0,4,0);ea(c+92|0,da(a+68|0,4,0,0)|0|0,4,0);ea(b+80|0,da(a+72|0,4,0,0)|0|0,4,0);return da(a+44|0,4,0,0)|0|0}function Xl(a,b){a=a|0;b=b|0;if(((da(a+8|0,2,0,0)|0)&2)!=0?(da(a+10>>0|0,1,0,1)|0|0|0)!=(b|0):0)b=An(a,b&255)|0;else b=0;return b|0}function Yl(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=a+8|0;if((da(d|0,2,0,0)|0)&9312)ug(a);ea(a+0|0,da(b+0|0,4,0,0)|0|0,4,0);ea(a+4|0,da(b+4|0,4,0,0)|0|0,4,0);ea(a+8|0,da(b+8|0,4,0,0)|0|0,4,0);ea(a+12|0,da(b+12|0,4,0,0)|0|0,4,0);ea(a+16|0,da(b+16|0,4,0,0)|0|0,4,0);if(!((da(b+8|0,2,0,0)|0)&2048))ea(d|0,(da(d|0,2,0,1)|0|0)&58367|c|0,2,0);return}function Zl(a,b){a=a|0;b=b|0;var c=0,d=0;if(!(((da(a+8|0,2,0,0)|0)&9312)==0?(da(a+24|0,4,0,0)|0|0)==0:0))Pg(a);a=a+0|0;c=b+0|0;d=a+40|0;do{ea(a|0,da(c|0,4,0,0)|0|0,4,0);a=a+4|0;c=c+4|0}while((a|0)<(d|0));ea(b+8|0,1|0,2,0);ea(b+24|0,0|0,4,0);return}function _l(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,k=0,l=0,m=0,n=0,o=0;o=da(a|0,4,0,0)|0|0;l=o+500|0;e=da(l|0,4,0,0)|0|0;do if((e|0)!=0?(m=a+104|0,d=da(m|0,4,0,0)|0|0,(d|0)!=0):0){n=d+-1|0;j=o+20|0;d=da(j|0,4,0,0)|0|0;if((d|0)>0){h=o+16|0;i=(b|0)==2;f=d;g=0;d=0;do{e=da((da(h|0,4,0,0)|0|0)+(g<<4)+4|0,4,0,0)|0|0;if(e){if(i?(k=tm(e,2,n)|0,(k|0)!=0):0)e=k;else e=tm(e,1,n)|0;f=da(j|0,4,0,0)|0|0;d=(d|0)==0?e:d}g=g+1|0}while((g|0)<(f|0));ea(l|0,(da(l|0,4,0,0)|0|0)+-1|0,4,0);ea(m|0,0|0,4,0);if(!d)d=13;else{c=d;d=16}}else{ea(l|0,e+-1|0,4,0);ea(m|0,0|0,4,0);d=13}do if((d|0)==13){if((b|0)==2?(c=rm(o,2,n)|0,(c|0)!=0):0)break;c=rm(o,1,n)|0;d=16}while(0);if((d|0)==16)if((b|0)!=2)break;k=a+152|0;j=da(k+4|0,4,0,0)|0|0;l=o+504|0;ea(l|0,da(k|0,4,0,0)|0|0,4,0);ea(l+4|0,j|0,4,0);j=a+160|0;l=da(j+4|0,4,0,0)|0|0;k=o+512|0;ea(k|0,da(j|0,4,0,0)|0|0,4,0);ea(k+4|0,l|0,4,0)}else c=0;while(0);return c|0}function $l(a){a=a|0;var b=0,c=0;b=a+12|0;if(!(dh(a,(da(b|0,4,0,0)|0|0)+2|0,1)|0)){c=a+16|0;ea((da(c|0,4,0,0)|0|0)+(da(b|0,4,0,0)|0|0)>>0|0,0|0,1,0);ea((da(c|0,4,0,0)|0|0)+((da(b|0,4,0,0)|0|0)+1)>>0|0,0|0,1,0);b=a+8|0;ea(b|0,da(b|0,2,0,1)|0|0|512|0,2,0);b=0}else b=7;return b|0}function am(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,m=0,n=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();g=l;h=a+8|0;e=da(h|0,2,0,0)|0|0;if(!(eh(a,32)|0)){d=a+16|0;f=da(d|0,4,0,0)|0|0;if(!(e&4)){ea(k|0,+(+(+da(a|0,8,1,0))),8,1);ea(g|0,da(k|0,4,0,0)|0|0,4,0);ea(g+4|0,da(k+4|0,4,0,0)|0|0,4,0);$c(32,f,20272,g)|0}else{n=a;e=da(n+4|0,4,0,0)|0|0;m=g;ea(m|0,da(n|0,4,0,0)|0|0,4,0);ea(m+4|0,e|0,4,0);$c(32,f,19920,g)|0}e=da(d|0,4,0,0)|0|0;if(!e)d=0;else{d=e;while(1)if(!(da(d>>0|0,1,0,0)|0))break;else d=d+1|0;d=d-e&1073741823}ea(a+12|0,d|0,4,0);ea(a+10>>0|0,1|0,1,0);d=da(h|0,2,0,1)|0|514;ea(h|0,(c<<24>>24==0?d:d&65523)|0,2,0);Xl(a,b&255)|0;d=0}else d=7;i=l;return d|0}function bm(a){a=a|0;var b=0,c=0;b=da(a+8|0,2,0,1)|0|0;c=b&12;if(!c)if(!(b&18))b=0;else b=mp(a)|0;else b=c&65535;return b|0}function cm(a){a=a|0;var b=0.0,c=0,d=0,e=0,f=0;b=+(+da(a|0,8,1,0));if(!(b<=-9223372036854775808.0)&!(b>=9223372036854775808.0)?(c=~~b>>>0,d=+N(b)>=1.0?(b>0.0?~~+$(+M(b/4294967296.0),4294967295.0)>>>0:~~+Z((b-+(~~b>>>0))/4294967296.0)>>>0):0,e=iw(c|0,d|0,1,-2147483648)|0,f=C,!(b!=+(c>>>0)+4294967296.0*+(d|0)|(f>>>0<0|(f|0)==0&e>>>0<2))):0){e=a;ea(e|0,c|0,4,0);ea(e+4|0,d|0,4,0);c=a+8|0;ea(c|0,(da(c|0,2,0,1)|0|0)&48640|4|0,2,0)}return}function dm(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=a+204|0;d=da(e|0,4,0,0)|0|0;a:do if(d){g=(b|0)<0;do{while(1){if(!g){if((da(d|0,4,0,0)|0|0)!=(b|0))break;f=da(d+4|0,4,0,0)|0|0;if((f|0)<=31?(1<<f&c|0)!=0:0)break}f=da(d+12|0,4,0,0)|0|0;if(f)bc[(fa(f|0,31|0)|0)&31](da(d+8|0,4,0,0)|0|0);ea(e|0,da(d+16|0,4,0,0)|0|0,4,0);lg(da(a|0,4,0,0)|0|0,d);d=da(e|0,4,0,0)|0|0;if(!d)break a}e=d+16|0;d=da(e|0,4,0,0)|0|0}while((d|0)!=0)}while(0);return}function em(a,b,c){a=a|0;b=b|0;c=c|0;do if(b<<24>>24>66){b=da(a+8|0,2,0,1)|0|0;if(!(b&4)){if(b&8){cm(a);break}if(b&2)qh(a,1)}}else if(b<<24>>24==66?(b=da(a+8|0,2,0,1)|0|0,!((b&2|0)!=0|(b&12|0)==0)):0)am(a,c,1)|0;while(0);return}function fm(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=a+8|0;d=da(f|0,2,0,0)|0|0;e=d&65535;do if(!(e&1)){b=b&255;if((b|0)==69){ea(a|0,+(+Tg(a)),8,1);ea(f|0,(da(f|0,2,0,1)|0|0)&48640|8|0,2,0);break}else if((b|0)==67){np(a);break}else if((b|0)==65){if(e&16){ea(f|0,e&65040|0,2,0);break}if(!((e&2|0)!=0|(e&12|0)==0)){am(a,c,1)|0;d=da(f|0,2,0,0)|0|0}ea(f|0,d&48640|16|0,2,0);break}else if((b|0)==68){b=Ug(a)|0;d=a;ea(d|0,b|0,4,0);ea(d+4|0,C|0,4,0);ea(f|0,(da(f|0,2,0,1)|0|0)&48640|4|0,2,0);break}else{b=e>>>3&2|e;d=b&65535;ea(f|0,d|0,2,0);if(!((b&2|0)!=0|(e&12|0)==0)){am(a,c,1)|0;d=da(f|0,2,0,0)|0|0}ea(f|0,d&49123|0,2,0);break}}while(0);return}function gm(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0.0,f=0,g=0.0,h=0,i=0,j=0;i=da(a+8|0,2,0,0)|0|0;h=i&65535;f=da(b+8|0,2,0,0)|0|0;j=f&65535;d=(f|i)&65535;do if(!(d&1)){if(!(d&12)){if(d&2){if(!(h&2)){d=1;break}if(!(j&2)){d=-1;break}if(c){d=op(a,b,c,0)|0;break}}d=pp(a,b)|0;break}if((i&4&f)<<16>>16){i=a;h=da(i|0,4,0,0)|0|0;i=da(i+4|0,4,0,0)|0|0;f=b;d=da(f|0,4,0,0)|0|0;f=da(f+4|0,4,0,0)|0|0;if((i|0)<(f|0)|(i|0)==(f|0)&h>>>0<d>>>0){d=-1;break}d=((i|0)>(f|0)|(i|0)==(f|0)&h>>>0>d>>>0)&1;break}if(!(h&8)){if(!(h&4)){d=1;break}d=a;g=+((da(d|0,4,0,0)|0|0)>>>0)+4294967296.0*+(da(d+4|0,4,0,0)|0|0)}else g=+(+da(a|0,8,1,0));if(!(j&8)){if(!(j&4)){d=-1;break}d=b;e=+((da(d|0,4,0,0)|0|0)>>>0)+4294967296.0*+(da(d+4|0,4,0,0)|0|0)}else e=+(+da(b|0,8,1,0));if(g<e)d=-1;else d=g>e&1}else d=(j&1)-(h&1)|0;while(0);return d|0}function hm(a){a=a|0;var b=0,c=0,d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();d=e;c=e+8|0;b=a+48|0;b=Bm(da(a|0,4,0,0)|0|0,0,da(b|0,4,0,0)|0|0,da(b+4|0,4,0,0)|0|0,0,c)|0;do if(!b)if(!(da(c|0,4,0,0)|0)){ea(a+26>>0|0,0|0,1,0);ea(a+60|0,0|0,4,0);b=0;break}else{ea(d|0,67421|0,4,0);ea(d+4|0,10788|0,4,0);ad(11,13600,d);b=11;break}while(0);i=e;return b|0}function im(a){a=a|0;var b=0,c=0,d=0;c=da(a|0,4,0,0)|0|0;d=c+73|0;b=da(d>>0|0,1,0,0)|0|0;do if((b&255)>2){b=Jn(c)|0;if(!b){b=da(d>>0|0,1,0,0)|0|0;d=5;break}else{ea(a+60|0,0|0,4,0);d=6;break}}else d=5;while(0);if((d|0)==5){ea(a+60|0,0|0,4,0);if(b<<24>>24==1)b=0;else{b=0;d=6}}if((d|0)==6)ea(a+25>>0|0,1|0,1,0);return b|0}function jm(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=a+24|0;if(!(da(a+44|0,2,0,0)|0)){e=da(a+76|0,2,0,0)|0|0;d=da(a+(e<<2)+120|0,4,0,0)|0|0;e=(da(a+(e<<1)+78|0,2,0,1)|0)<<1;f=da(d+64|0,4,0,0)|0|0;qp(d,(da(d+56|0,4,0,0)|0|0)+(((da(f+e>>0|0,1,0,1)|0)<<8|(da(f+(e|1)>>0|0,1,0,1)|0))&(da(d+20|0,2,0,1)|0))|0,c);a=a+72|0;ea(a>>0|0,da(a>>0|0,1,0,1)|0|2|0,1,0)}d=c;c=da(d+4|0,4,0,0)|0|0;a=b;ea(a|0,da(d|0,4,0,0)|0|0,4,0);ea(a+4|0,c|0,4,0);return}function km(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;if(!(da(a+44|0,2,0,0)|0)){d=da(a+76|0,2,0,0)|0|0;c=da(a+(d<<2)+120|0,4,0,0)|0|0;d=(da(a+(d<<1)+78|0,2,0,1)|0)<<1;e=da(c+64|0,4,0,0)|0|0;qp(c,(da(c+56|0,4,0,0)|0|0)+(((da(e+d>>0|0,1,0,1)|0)<<8|(da(e+(d|1)>>0|0,1,0,1)|0))&(da(c+20|0,2,0,1)|0))|0,a+24|0);c=a+72|0;ea(c>>0|0,da(c>>0|0,1,0,1)|0|2|0,1,0)}ea(b|0,da(a+36|0,4,0,0)|0|0,4,0);return}function lm(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();d=g;e=da(a>>0|0,1,0,1)|0|0;f=da(a+1>>0|0,1,0,1)|0|0;do if(f&128){c=da(a+2>>0|0,1,0,1)|0|0;if(!(c&128)){ea(b|0,(c|e<<14)&2080895|f<<7&16256|0,4,0);c=3;break}else{c=rp(a,d)|0;e=da(d|0,4,0,0)|0|0;ea(b|0,(((e|0)==(e|0)?0==(da(d+4|0,4,0,0)|0|0):0)?e:-1)|0,4,0);break}}else{ea(b|0,e<<7&16256|f|0,4,0);c=2}while(0);i=g;return c|0}function mm(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=(d|0)==0;do if((c+b|0)>>>0>(da(a+40|0,2,0,1)|0|0)>>>0){h=e+8|0;ea(h|0,1|0,2,0);d=eh(e,c+2|0)|0;if(!d){g=e+16|0;d=da(g|0,4,0,0)|0|0;if(f)d=Ch(a,b,c,d)|0;else d=Km(a,b,c,d,0)|0;if(!d){ea((da(g|0,4,0,0)|0|0)+c>>0|0,0|0,1,0);ea((da(g|0,4,0,0)|0|0)+(c+1)>>0|0,0|0,1,0);ea(h|0,528|0,2,0);ea(e+12|0,c|0,4,0);d=0;break}if(((da(h|0,2,0,0)|0)&9312)==0?(da(e+24|0,4,0,0)|0|0)==0:0)break;Pg(e)}}else{ea(e+16|0,(da(a+32|0,4,0,0)|0|0)+b|0,4,0);ea(e+8|0,4112|0,2,0);ea(e+12|0,c|0,4,0);d=0}while(0);return d|0}function nm(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;switch(b|0){case 9:case 8:{a=c;ea(a|0,b+-8|0,4,0);ea(a+4|0,0|0,4,0);ea(c+8|0,4|0,2,0);a=0;break}case 4:{a=(da(a+1>>0|0,1,0,1)|0)<<16|(da(a>>0|0,1,0,0)|0)<<24|(da(a+2>>0|0,1,0,1)|0)<<8|(da(a+3>>0|0,1,0,1)|0);b=c;ea(b|0,a|0,4,0);ea(b+4|0,((a|0)<0)<<31>>31|0,4,0);ea(c+8|0,4|0,2,0);a=4;break}case 1:{a=da(a>>0|0,1,0,0)|0|0;b=c;ea(b|0,a|0,4,0);ea(b+4|0,((a|0)<0)<<31>>31|0,4,0);ea(c+8|0,4|0,2,0);a=1;break}case 5:{b=(da(a>>0|0,1,0,0)|0)<<8|(da(a+1>>0|0,1,0,1)|0);d=c;ea(d|0,(da(a+3>>0|0,1,0,1)|0)<<16|(da(a+2>>0|0,1,0,1)|0)<<24|(da(a+4>>0|0,1,0,1)|0)<<8|(da(a+5>>0|0,1,0,1)|0)|0,4,0);ea(d+4|0,b|0,4,0);ea(c+8|0,4|0,2,0);a=6;break}case 7:case 6:{sp(a,b,c);a=8;break}case 2:{a=(da(a>>0|0,1,0,0)|0)<<8|(da(a+1>>0|0,1,0,1)|0);b=c;ea(b|0,a|0,4,0);ea(b+4|0,((a|0)<0)<<31>>31|0,4,0);ea(c+8|0,4|0,2,0);a=2;break}case 3:{a=(da(a+1>>0|0,1,0,1)|0)<<8|(da(a>>0|0,1,0,0)|0)<<16|(da(a+2>>0|0,1,0,1)|0);b=c;ea(b|0,a|0,4,0);ea(b+4|0,((a|0)<0)<<31>>31|0,4,0);ea(c+8|0,4|0,2,0);a=3;break}case 0:case 11:case 10:{ea(c+8|0,1|0,2,0);a=0;break}default:{ea(c+16|0,a|0,4,0);a=(b+-12|0)>>>1;ea(c+12|0,a|0,4,0);ea(c+8|0,da(34328+((b&1)<<1)|0,2,0,0)|0|0|0,2,0)}}return a|0}function om(a,b,c){a=a|0;b=b|0;c=c|0;do if(!(c>>>0<0|(c|0)==0&b>>>0<128))if(c>>>0<0|(c|0)==0&b>>>0<16384){c=lw(b|0,c|0,7)|0;ea(a>>0|0,c|128|0,1,0);ea(a+1>>0|0,b&127|0,1,0);b=2;break}else{b=tp(a,b,c)|0;break}else{ea(a>>0|0,b&127|0,1,0);b=1}while(0);return b|0}function pm(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;e=a+73|0;b=da(e>>0|0,1,0,0)|0|0;do if((b&255)>2)if(b<<24>>24==4){b=da(a+68|0,4,0,0)|0|0;break}else{c=a+56|0;Vc(da(c|0,4,0,0)|0|0);ea(c|0,0|0,4,0);ea(e>>0|0,0|0,1,0);c=5;break}else c=5;while(0);a:do if((c|0)==5){d=a+76|0;b=da(d|0,2,0,0)|0|0;do if(b<<16>>16<=-1){b=da(a+60|0,4,0,0)|0|0;if(!b){ea(e>>0|0,0|0,1,0);b=0;break a}c=a+120|0;b=up(da((da(a|0,4,0,0)|0|0)+4|0,4,0,0)|0|0,b,c,((da(a+72>>0|0,1,0,0)|0)&1)<<1^2)|0;if(!b){ea(d|0,0|0,2,0);b=c;break}else{ea(e>>0|0,0|0,1,0);break a}}else{if(b<<16>>16)do{c=b+-1<<16>>16;ea(d|0,c|0,2,0);b=da(a+(b<<16>>16<<2)+120|0,4,0,0)|0|0;if(!b)b=c;else{Ag(da(b+68|0,4,0,0)|0|0);b=da(d|0,2,0,0)|0|0}}while(b<<16>>16!=0);b=a+120|0}while(0);b=da(b|0,4,0,0)|0|0;if((da(b>>0|0,1,0,0)|0|0)!=0?((da(a+16|0,4,0,0)|0|0)==0|0)==(da(b+2>>0|0,1,0,1)|0|0):0){ea(a+78|0,0|0,2,0);ea(a+44|0,0|0,2,0);c=a+72|0;ea(c>>0|0,(da(c>>0|0,1,0,1)|0)&241|0,1,0);if(da(b+18|0,2,0,0)|0){ea(e>>0|0,1|0,1,0);b=0;break}if(da(b+5>>0|0,1,0,0)|0){ea(e>>0|0,0|0,1,0);b=0;break}if((da(b+72|0,4,0,0)|0|0)==1){c=da(b+6>>0|0,1,0,1)|0|0;b=da(b+56|0,4,0,0)|0|0;b=(da(b+(c+9)>>0|0,1,0,1)|0)<<16|(da(b+(c+8)>>0|0,1,0,1)|0)<<24|(da(b+(c+10)>>0|0,1,0,1)|0)<<8|(da(b+(c+11)>>0|0,1,0,1)|0);ea(e>>0|0,1|0,1,0);b=qm(a,b)|0;break}else{ea(f|0,57629|0,4,0);ea(f+4|0,10788|0,4,0);ad(11,13600,f);b=11;break}}ea(f|0,57618|0,4,0);ea(f+4|0,10788|0,4,0);ad(11,13600,f);b=11}while(0);i=g;return b|0}function qm(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;c=h+8|0;d=a+76|0;f=da(d|0,2,0,0)|0|0;e=f<<16>>16;do if(f<<16>>16<=18){f=a+72|0;b=up(da(a+4|0,4,0,0)|0|0,b,c,((da(f>>0|0,1,0,0)|0)&1)<<1^2)|0;if(!b){b=da(c|0,4,0,0)|0|0;c=e+1|0;ea(a+(c<<2)+120|0,b|0,4,0);ea(a+(c<<1)+78|0,0|0,2,0);ea(d|0,(da(d|0,2,0,0)|0|0)+1<<16>>16|0,2,0);ea(a+44|0,0|0,2,0);ea(f>>0|0,(da(f>>0|0,1,0,1)|0)&249|0,1,0);if((da(b+18|0,2,0,0)|0|0)!=0?(da(b+2>>0|0,1,0,0)|0|0)==(da((da(a+(e<<2)+120|0,4,0,0)|0|0)+2>>0|0,1,0,0)|0|0):0){b=0;break}ea(g|0,57499|0,4,0);ea(g+4|0,10788|0,4,0);ad(11,13600,g);b=11}}else{ea(g|0,57487|0,4,0);ea(g+4|0,10788|0,4,0);ad(11,13600,g);b=11}while(0);i=h;return b|0}function rm(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;i=a+328|0;a:do if(!(da(i|0,4,0,0)|0))a=0;else{f=a+304|0;g=c+1|0;h=0;while(1){if((h|0)>=(da(f|0,4,0,0)|0|0)){a=0;break a}e=da((da(i|0,4,0,0)|0|0)+(h<<2)|0,4,0,0)|0|0;a=da(da(e+4|0,4,0,0)|0|0,4,0,0)|0|0;d=da(e+8|0,4,0,0)|0|0;if((d|0)!=0?(da(a|0,4,0,0)|0|0)>1:0){if(!b){a=da(a+80|0,4,0,0)|0|0;ea(e+20|0,g|0,4,0)}else if((b|0)==2)a=da(a+88|0,4,0,0)|0|0;else a=da(a+84|0,4,0,0)|0|0;if((a|0)!=0?(da(e+20|0,4,0,0)|0|0)>(c|0):0){a=qc[(fa(a|0,127|0)|0)&127](d,c)|0;if(!a){h=h+1|0;continue}else break a}}h=h+1|0}}while(0);return a|0}function sm(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();d=f;c=da(a|0,4,0,0)|0|0;if(!b){b=a+144|0;g=da(b+4|0,4,0,0)|0|0;if((g|0)>0|(g|0)==0&(da(b|0,4,0,0)|0|0)>>>0>0)e=4;else c=0}else{b=c+504|0;g=c+512|0;b=iw(da(g|0,4,0,0)|0|0,da(g+4|0,4,0,0)|0|0,da(b|0,4,0,0)|0|0,da(b+4|0,4,0,0)|0|0)|0;g=C;if((g|0)>0|(g|0)==0&b>>>0>0)e=4;else c=0}if((e|0)==4){ea(a+80|0,787|0,4,0);ea(a+86>>0|0,2|0,1,0);ch(a+44|0,c,34376,d);c=1}i=f;return c|0}function tm(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if((a|0)!=0?(da(a+8>>0|0,1,0,0)|0|0)==2:0){d=da(a+4|0,4,0,0)|0|0;ea(d+4|0,da(a|0,4,0,0)|0|0,4,0);b=ip(da(d|0,4,0,0)|0|0,b,c)|0;if(!b){if((c|0)<0?((da(d+22|0,2,0,0)|0)&8)!=0:0)ea(d+44|0,0|0,4,0);b=Bg(d)|0;a=da((da(d+12|0,4,0,0)|0|0)+56|0,4,0,0)|0|0;ea(d+44|0,(da(a+29>>0|0,1,0,1)|0)<<16|(da(a+28>>0|0,1,0,1)|0)<<24|(da(a+30>>0|0,1,0,1)|0)<<8|(da(a+31>>0|0,1,0,1)|0)|0,4,0)}}else b=0;return b|0}function um(a,b){a=a|0;b=b|0;a=a+16|0;pl(da((da(a|0,4,0,0)|0|0)+(b<<4)+12|0,4,0,0)|0|0);if((b|0)!=1)pl(da((da(a|0,4,0,0)|0|0)+28|0,4,0,0)|0|0);return}function vm(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=da(a+4|0,4,0,0)|0|0;ea(d+4|0,da(a|0,4,0,0)|0|0,4,0);if((b|0)==15)d=(da(a+20|0,4,0,0)|0|0)+(da((da(d|0,4,0,0)|0|0)+100|0,4,0,0)|0|0)|0;else{b=b<<2;d=da((da(d+12|0,4,0,0)|0|0)+56|0,4,0,0)|0|0;d=(da(d+(b+37)>>0|0,1,0,1)|0|0)<<16|(da(d+(b+36)>>0|0,1,0,1)|0|0)<<24|(da(d+(b+38)>>0|0,1,0,1)|0|0)<<8|(da(d+(b+39)>>0|0,1,0,1)|0|0)}ea(c|0,d|0,4,0);return}function wm(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,j=0,k=0;h=(da(a+28|0,4,0,0)|0|0)-b|0;f=da(a+8|0,4,0,0)|0|0;k=(c<<3)+88|0;j=(e|0)!=0;i=a+56|0;g=da((da(i|0,4,0,0)|0|0)+(b<<2)|0,4,0,0)|0|0;if(g){Am(a,g);ea((da(i|0,4,0,0)|0|0)+(b<<2)|0,0|0,4,0)}if(!(eh(f+(h*40|0)|0,(j?200:0)+k|0)|0)){h=f+(h*40|0)+16|0;e=da(h|0,4,0,0)|0|0;ea((da(i|0,4,0,0)|0|0)+(b<<2)|0,e|0,4,0);f=e+0|0;g=f+88|0;do{ea(f|0,0|0,4,0);f=f+4|0}while((f|0)<(g|0));ea(e+24>>0|0,d|0,1,0);ea(e+20|0,c|0,2,0);ea(e+80|0,e+84+(c<<2)|0,4,0);if(j){f=(da(h|0,4,0,0)|0|0)+k|0;ea(e|0,f|0,4,0);f=f+0|0;g=f+76|0;do{ea(f|0,0|0,4,0);f=f+4|0}while((f|0)<(g|0))}}else e=0;return e|0}function xm(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;h=da(a+4|0,4,0,0)|0|0;ea(h+4|0,da(a|0,4,0,0)|0|0,4,0);if(c)if(!((da(h+22|0,2,0,0)|0)&1)){g=h+80|0;if(!(da(g|0,4,0,0)|0)){f=Fo(da(h+32|0,4,0,0)|0|0)|0;ea(g|0,f|0,4,0);if(!f)f=7;else{i=f;f=i;ea(f>>0|0,0|0,1,0);ea(f+1>>0|0,0|0,1,0);ea(f+2>>0|0,0|0,1,0);ea(f+3>>0|0,0|0,1,0);i=i+4|0;ea(i>>0|0,0|0,1,0);ea(i+1>>0|0,0|0,1,0);ea(i+2>>0|0,0|0,1,0);ea(i+3>>0|0,0|0,1,0);ea(g|0,(da(g|0,4,0,0)|0|0)+4|0,4,0);i=6}}else i=6}else f=8;else i=6;if((i|0)==6){if((b|0)==1)b=(da(h+44|0,4,0,0)|0|0)!=0&1;ea(e+60|0,b|0,4,0);ea(e+76|0,-1|0,2,0);ea(e+16|0,d|0,4,0);ea(e|0,a|0,4,0);ea(e+4|0,h|0,4,0);ea(e+72>>0|0,c|0,1,0);f=h+8|0;b=da(f|0,4,0,0)|0|0;ea(e+8|0,b|0,4,0);if(b)ea(b+12|0,e|0,4,0);ea(f|0,e|0,4,0);ea(e+73>>0|0,0|0,1,0);f=0}return f|0}function ym(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0;K=i;i=i+128|0;if((i|0)>=(j|0))ba();v=K;C=K+12|0;z=K+8|0;H=K+16|0;F=(b|0)==0;if(!F){h=(da(b>>0|0,1,0,0)|0|0)==0;if(Zv(b,14640)|0)if(h)B=4;else{h=0;B=5}else G=1}else B=4;if((B|0)==4)if((da(c+64>>0|0,1,0,0)|0|0)==2){G=1;h=1}else{h=1;B=5}if((B|0)==5)G=(f&128|0)!=0;E=G?e|2:e;if((f&256|0)!=0&(G|h))f=f&-769|512;J=pg(48,0)|0;a:do if(J){p=J+0|0;o=p+48|0;do{ea(p>>0|0,0|0,1,0);p=p+1|0}while((p|0)<(o|0));ea(J|0,c|0,4,0);ea(J+32|0,J|0,4,0);ea(J+36|0,1|0,4,0);b:do if(!h?!(G&(f&64|0)==0|(f&131072|0)==0):0){if(F)h=1;else{h=b;while(1)if(!(da(h>>0|0,1,0,0)|0))break;else h=h+1|0;h=(h-b&1073741823)+1|0}e=(da(a+8|0,4,0,0)|0|0)+1|0;n=(e|0)>(h|0)?e:h;n=pg(n,((n|0)<0)<<31>>31)|0;m=J+9|0;ea(m>>0|0,1|0,1,0);if(!n){Vc(J);g=7;break a}if(!G){ea(n>>0|0,0|0,1,0);h=oc[(fa(da(a+36|0,4,0,0)|0|0,31|0)|0)&31](a,b,e,n)|0;if(h){Vc(n);Vc(J);g=h;break a}}else jw(n|0,b|0,h|0)|0;h=da(3664*4|0,4,0,0)|0|0;c:do if(h){while(1){e=da(h|0,4,0,0)|0|0;if((Zv(n,da(e+168|0,4,0,0)|0|0)|0)==0?(da(e|0,4,0,0)|0|0)==(a|0):0)break;h=da(h+68|0,4,0,0)|0|0;if(!h)break c}e=da(c+20|0,4,0,0)|0|0;d:do if((e|0)>0){l=da(c+16|0,4,0,0)|0|0;while(1){e=e+-1|0;k=da(l+(e<<4)+4|0,4,0,0)|0|0;if((k|0)!=0?(da(k+4|0,4,0,0)|0|0)==(h|0):0)break;if((e|0)<=0)break d}Vc(n);Vc(J);g=19;break a}while(0);ea(J+4|0,h|0,4,0);y=h+64|0;ea(y|0,(da(y|0,4,0,0)|0|0)+1|0,4,0);Vc(n);if(!h){B=32;break b}if(!(da(m>>0|0,1,0,0)|0))break b;else{B=105;break b}}while(0);Vc(n);B=32}else B=32;while(0);e:do if((B|0)==32){D=pg(84,0)|0;if(D){p=D+0|0;o=p+84|0;do{ea(p>>0|0,0|0,1,0);p=p+1|0}while((p|0)<(o|0));x=E&1;y=(x|0)==0;ea(C|0,1024|0,4,0);w=a+4|0;h=da(w|0,4,0,0)|0|0;if((h|0)>40)e=h+7&-8;else e=40;ea(D|0,0|0,4,0);do if(!(E&2))if(!F)if(da(b>>0|0,1,0,0)|0){q=a+8|0;l=(da(q|0,4,0,0)|0|0)+1|0;s=l<<1;s=pg(s,((s|0)<0)<<31>>31)|0;if(!s)g=7;else{ea(s>>0|0,0|0,1,0);h=oc[(fa(da(a+36|0,4,0,0)|0|0,31|0)|0)&31](a,b,l,s)|0;l=s;while(1)if(!(da(l>>0|0,1,0,0)|0))break;else l=l+1|0;p=l-s&1073741823;m=b;while(1)if(!(da(m>>0|0,1,0,0)|0))break;else m=m+1|0;o=(m-b&1073741823)+1|0;m=da(b+o>>0|0,1,0,0)|0|0;o=b+o|0;if(!(m<<24>>24))l=o;else{l=o;do{if(!(m<<24>>24))m=l;else{m=l;do m=m+1|0;while((da(m>>0|0,1,0,0)|0|0)!=0)}m=m-l&1073741823;k=l+(m+1)|0;n=k;while(1)if(!(da(n>>0|0,1,0,0)|0))break;else n=n+1|0;l=l+(m+2+(n-k&1073741823))|0;m=da(l>>0|0,1,0,0)|0|0}while(m<<24>>24!=0)}if(!h){if((p+8|0)<=(da(q|0,4,0,0)|0|0)){r=1;v=0;q=p;p=l+1-o|0;m=s;B=58;break}ea(v|0,46171|0,4,0);ea(v+4|0,10788|0,4,0);ad(14,14848,v);h=14}Vc(s);B=89}}else{r=1;v=0;q=0;p=0;m=0;o=0;B=58}else{b=0;r=0;v=0;q=0;p=0;m=0;o=0;B=58}else if(!F)if(da(b>>0|0,1,0,0)|0){m=jh(0,b)|0;if(!m)g=7;else{h=m;while(1)if(!(da(h>>0|0,1,0,0)|0))break;else h=h+1|0;b=0;r=0;v=1;q=h-m&1073741823;p=0;o=0;B=58}}else{r=1;v=1;q=0;p=0;m=0;o=0;B=58}else{b=0;r=0;v=1;q=0;p=0;m=0;o=0;B=58}while(0);do if((B|0)==58){l=(e<<1)+17+(q*3|0)+p+((da(w|0,4,0,0)|0|0)+271&-8)|0;u=pg(l,0)|0;if(!u){if(!m){g=7;break}Vc(m);g=7;break}ew(u|0,0,l|0)|0;s=u+204|0;ea(s|0,u+216|0,4,0);t=u+60|0;ea(t|0,u+264|0,4,0);n=(da(w|0,4,0,0)|0|0)+271&-8;ea(u+68|0,u+n|0,4,0);n=n+e|0;ea(u+64|0,u+n|0,4,0);n=n+e|0;l=u+n|0;h=u+168|0;ea(h|0,l|0,4,0);if(m){k=q+1|0;e=u+172|0;ea(e|0,u+(p+k+n)|0,4,0);jw(l|0,m|0,q|0)|0;if(p)jw((da(h|0,4,0,0)|0|0)+k|0,o|0,p|0)|0;jw(da(e|0,4,0,0)|0|0,m|0,q|0)|0;p=(da(e|0,4,0,0)|0|0)+q+0|0;n=14928;o=p+10|0;do{ea(p>>0|0,da(n>>0|0,1,0,0)|0|0|0,1,0);p=p+1|0;n=n+1|0}while((p|0)<(o|0));e=(da(e|0,4,0,0)|0|0)+(q+9)|0;w=u+212|0;ea(w|0,e|0,4,0);jw(e|0,m|0,q|0)|0;w=(da(w|0,4,0,0)|0|0)+q|0;ea(w+0>>0|0,da(14944|0,1,0,0)|0|0|0,1,0);ea(w+1>>0|0,da(14945|0,1,0,0)|0|0|0,1,0);ea(w+2>>0|0,da(14946|0,1,0,0)|0|0|0,1,0);ea(w+3>>0|0,da(14947|0,1,0,0)|0|0|0,1,0);ea(w+4>>0|0,da(14948|0,1,0,0)|0|0|0,1,0);Vc(m)}ea(u|0,a|0,4,0);ea(u+144|0,f|0,4,0);do if(r?(da(b>>0|0,1,0,0)|0|0)!=0:0){ea(z|0,0|0,4,0);h=sc[(fa(da(a+24|0,4,0,0)|0|0,31|0)|0)&31](a,da(h|0,4,0,0)|0|0,da(t|0,4,0,0)|0|0,f&556927,z)|0;k=(da(z|0,4,0,0)|0)&1;if(!h){h=da(t|0,4,0,0)|0|0;h=kc[(fa(da((da(h|0,4,0,0)|0|0)+48|0,4,0,0)|0|0,127|0)|0)&127](h)|0;do if((k|0)==0?(vp(u),A=da(u+148|0,4,0,0)|0|0,A>>>0>1024):0)if(A>>>0>8192){ea(C|0,8192|0,4,0);break}else{ea(C|0,A|0,4,0);break}while(0);ea(u+13>>0|0,eg(b,14952,0)|0|0,1,0);if((h&8192|0)==0?(eg(b,14960,0)|0)==0:0){n=0;B=77;break}h=f|1;B=76}}else{h=f;B=76}while(0);if((B|0)==76){ea(u+16>>0|0,1|0,1,0);ea(u+17>>0|0,4|0,1,0);ea(u+13>>0|0,1|0,1,0);k=h&1;n=1;B=77}if((B|0)==77){h=$k(u,C,-1)|0;if(!h){l=da(C|0,4,0,0)|0|0;m=(v|0)==0;e=v^1;f=m?75:0;h=da(s|0,4,0,0)|0|0;p=h+0|0;o=p+48|0;do{ea(p|0,0|0,4,0);p=p+4|0}while((p|0)<(o|0));ea(h+20|0,1|0,4,0);ea(h+24|0,80|0,4,0);ea(h+28>>0|0,e|0,1,0);ea(h+29>>0|0,2|0,1,0);ea(h+32|0,f|0,4,0);ea(h+36|0,u|0,4,0);ea(h+16|0,100|0,4,0);h=Go(h,l)|0;if(!h){ea(u+6>>0|0,x^1|0,1,0);ea(u+156|0,1073741823|0,4,0);ea(u+12>>0|0,n|0,1,0);ea(u+4>>0|0,n|0,1,0);ea(u+18>>0|0,n|0,1,0);ea(u+15>>0|0,v|0,1,0);ea(u+14>>0|0,k|0,1,0);ea(u+7>>0|0,n|0,1,0);if(!(n<<24>>24)){ea(u+8>>0|0,1|0,1,0);ea(u+11>>0|0,2|0,1,0);ea(u+10>>0|0,34|0,1,0);ea(u+9>>0|0,2|0,1,0)}ea(u+140|0,80|0,2,0);z=u+160|0;ea(z|0,-1|0,4,0);ea(z+4|0,-1|0,4,0);vp(u);do if(y){if(m)break;ea(u+5>>0|0,4|0,1,0)}else ea(u+5>>0|0,2|0,1,0);while(0);ea(u+196|0,21|0,4,0);ea(D|0,u|0,4,0);B=90;break}}}e=da(t|0,4,0,0)|0|0;f=da(e|0,4,0,0)|0|0;if(f){kc[(fa(da(f+4|0,4,0,0)|0|0,127|0)|0)&127](e)|0;ea(e|0,0|0,4,0)}_k(da(u+200|0,4,0,0)|0|0);Vc(u);B=89}while(0);if((B|0)==89)if(!h)B=90;else g=h;do if((B|0)==90){h=da(D|0,4,0,0)|0|0;z=c+40|0;p=da(z+4|0,4,0,0)|0|0;o=h+128|0;ea(o|0,da(z|0,4,0,0)|0|0,4,0);ea(o+4|0,p|0,4,0);p=H+0|0;o=p+100|0;do{ea(p>>0|0,0|0,1,0);p=p+1|0}while((p|0)<(o|0));h=da(h+60|0,4,0,0)|0|0;e=da(h|0,4,0,0)|0|0;if((e|0)!=0?(g=sc[(fa(da(e+8|0,4,0,0)|0|0,31|0)|0)&31](h,H,100,0,0)|0,!((g|0)==0|(g|0)==522)):0)break;ea(D+16>>0|0,E|0,1,0);ea(D+4|0,c|0,4,0);h=da(D|0,4,0,0)|0|0;e=h+176|0;ea(e|0,76|0,4,0);ea(h+180|0,D|0,4,0);f=da(h+60|0,4,0,0)|0|0;g=da(f|0,4,0,0)|0|0;if(!g)e=h;else{$b[(fa(da(g+40|0,4,0,0)|0|0,63|0)|0)&63](f,15,e)|0;e=da(D|0,4,0,0)|0|0}ea(J+4|0,D|0,4,0);ea(D+8|0,0|0,4,0);ea(D+12|0,0|0,4,0);if(da(e+14>>0|0,1,0,0)|0){z=D+22|0;ea(z|0,da(z|0,2,0,1)|0|1|0,2,0)}z=(da(H+17>>0|0,1,0,1)|0)<<16|(da(H+16>>0|0,1,0,1)|0)<<8;f=D+32|0;ea(f|0,z|0,4,0);if((z+-512|0)>>>0<=65024?(z+16777215&z|0)==0:0){h=da(H+20>>0|0,1,0,0)|0|0;z=D+22|0;ea(z|0,da(z|0,2,0,1)|0|2|0,2,0);ea(D+17>>0|0,((da(H+53>>0|0,1,0,1)|0)<<16|(da(H+52>>0|0,1,0,1)|0)<<24|(da(H+54>>0|0,1,0,1)|0)<<8|(da(H+55>>0|0,1,0,1)|0)|0)!=0&1|0,1,0);ea(D+18>>0|0,((da(H+65>>0|0,1,0,1)|0)<<16|(da(H+64>>0|0,1,0,1)|0)<<24|(da(H+66>>0|0,1,0,1)|0)<<8|(da(H+67>>0|0,1,0,1)|0)|0)!=0&1|0,1,0)}else{ea(f|0,0|0,4,0);if(F|G)h=0;else{ea(D+17>>0|0,0|0,1,0);ea(D+18>>0|0,0|0,1,0);h=0}}h=h&255;g=$k(e,f,h)|0;if(!g){ea(D+36|0,(da(f|0,4,0,0)|0|0)-h|0,4,0);if(!(da(J+9>>0|0,1,0,0)|0))break e;ea(D+64|0,1|0,4,0);ea(D+68|0,da(3664*4|0,4,0,0)|0|0,4,0);ea(3664*4|0,D|0,4,0);B=105;break e}}while(0);if(D){f=da(D|0,4,0,0)|0|0;if(!f)f=D;else{kp(f);f=D}}else f=0}else{f=0;g=7}Vc(f);Vc(J);ea(d|0,0|0,4,0);break a}while(0);f:do if((B|0)==105?(I=da(c+20|0,4,0,0)|0|0,(I|0)>0):0){f=da(c+16|0,4,0,0)|0|0;e=0;while(1){g=da(f+(e<<4)+4|0,4,0,0)|0|0;if((g|0)!=0?(da(g+9>>0|0,1,0,0)|0|0)!=0:0){e=g;break}e=e+1|0;if((e|0)>=(I|0))break f}while(1){g=e+28|0;f=da(g|0,4,0,0)|0|0;if(!f){f=e;break}else e=f}h=da(J+4|0,4,0,0)|0|0;if(h>>>0<(da(f+4|0,4,0,0)|0|0)>>>0){ea(J+24|0,f|0,4,0);ea(J+28|0,0|0,4,0);ea(g|0,J|0,4,0);break}while(1){g=f+24|0;e=da(g|0,4,0,0)|0|0;if(!e){B=113;break}if((da(e+4|0,4,0,0)|0|0)>>>0<h>>>0)f=e;else{B=115;break}}if((B|0)==113){ea(J+24|0,0|0,4,0);ea(J+28|0,f|0,4,0)}else if((B|0)==115){ea(J+24|0,e|0,4,0);ea(J+28|0,f|0,4,0);ea(e+28|0,J|0,4,0)}ea(g|0,J|0,4,0)}while(0);ea(d|0,J|0,4,0);g=da(J+4|0,4,0,0)|0|0;ea(g+4|0,da(J|0,4,0,0)|0|0,4,0);if(!(da(g+48|0,4,0,0)|0)){g=da((da(g|0,4,0,0)|0|0)+204|0,4,0,0)|0|0;ea(g+16|0,2e3|0,4,0);ic[(fa(da(8744+124|0,4,0,0)|0|0,15|0)|0)&15](da(g+40|0,4,0,0)|0|0,2e3);g=0}else g=0}else g=7;while(0);i=K;return g|0}function zm(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+48|0;if((i|0)>=(j|0))ba();o=v;s=v+28|0;t=v+24|0;r=v+20|0;k=v+16|0;m=v+12|0;n=v+32|0;p=v+8|0;e=da(a|0,4,0,0)|0|0;q=da(a+4|0,4,0,0)|0|0;d=q+4|0;ea(d|0,e|0,4,0);a:do if(!(da(q+17>>0|0,1,0,0)|0)){d=hp(q,s,t,1,0)|0;ea(r|0,d|0,4,0);if(!d){e=da(s|0,4,0,0)|0|0;u=39}}else{l=q+8|0;f=da(l|0,4,0,0)|0|0;if(f)do{h=f+72|0;ea(h>>0|0,(da(h>>0|0,1,0,1)|0)&251|0,1,0);f=da(f+8|0,4,0,0)|0|0}while((f|0)!=0);ea(d|0,e|0,4,0);h=da((da(q+12|0,4,0,0)|0|0)+56|0,4,0,0)|0|0;h=(da(h+53>>0|0,1,0,1)|0)<<16|(da(h+52>>0|0,1,0,1)|0)<<24|(da(h+54>>0|0,1,0,1)|0)<<8|(da(h+55>>0|0,1,0,1)|0);ea(t|0,h|0,4,0);e=((da(2514*4|0,4,0,0)|0|0)>>>0)/((da(q+32|0,4,0,0)|0|0)>>>0)|0;d=q+36|0;while(1){g=h+1|0;if(g>>>0<2)f=0;else{f=h+-1|0;f=f-((f>>>0)%(((((da(d|0,4,0,0)|0|0)>>>0)/5|0)+1|0)>>>0)|0)|0;f=((f+1|0)==(e|0)?3:2)+f|0}if((g|0)==(f|0)|(h|0)==(e|0))h=g;else break}ea(t|0,g|0,4,0);d=hp(q,m,k,g,1)|0;ea(r|0,d|0,4,0);if(!d){h=da(k|0,4,0,0)|0|0;do if((h|0)==(g|0)){e=da(m|0,4,0,0)|0|0;ea(s|0,e|0,4,0)}else{ea(n>>0|0,0|0,1,0);ea(p|0,0|0,4,0);f=da(l|0,4,0,0)|0|0;b:do if(!f)d=0;else{while(1){if(f)break;f=da(2*4|0,4,0,0)|0|0;if(!f){d=0;break b}}d=El(f,0,0)|0}while(0);ea(r|0,d|0,4,0);f=da(m|0,4,0,0)|0|0;if(f)Ag(da(f+68|0,4,0,0)|0|0);if(d)break a;d=cl(q,g,s,0)|0;ea(r|0,d|0,4,0);if(d)break a;d=gp(q,g,n,p)|0;ea(r|0,d|0,4,0);f=da(n>>0|0,1,0,0)|0|0;if((f+-1&255)>=2){e=da(s|0,4,0,0)|0|0;if(!d){d=Ym(q,e,f,da(p|0,4,0,0)|0|0,h,0)|0;ea(r|0,d|0,4,0);if(e)Ag(da(e+68|0,4,0,0)|0|0);if(d)break a;d=cl(q,g,s,0)|0;ea(r|0,d|0,4,0);if(d)break a;e=da(s|0,4,0,0)|0|0;f=e+68|0;d=Fg(da(f|0,4,0,0)|0|0)|0;ea(r|0,d|0,4,0);if(!d)break;if(!e)break a;Ag(da(f|0,4,0,0)|0|0);break a}}else{ea(o|0,60876|0,4,0);ea(o+4|0,10788|0,4,0);ad(11,13600,o);ea(r|0,11|0,4,0);d=11;e=da(s|0,4,0,0)|0|0}if(!e)break a;Ag(da(e+68|0,4,0,0)|0|0);break a}while(0);yp(q,g,1,0,r);d=da(r|0,4,0,0)|0|0;if(d){if(!e)break;Ag(da(e+68|0,4,0,0)|0|0);break}d=Cg(a,4,g)|0;ea(r|0,d|0,4,0);if(d){if(e)Ag(da(e+68|0,4,0,0)|0|0)}else u=39}}while(0);if((u|0)==39){ol(e,(c&1|0)==0?10:13);d=da((da(s|0,4,0,0)|0|0)+68|0,4,0,0)|0|0;if(d)Ag(d);ea(b|0,da(t|0,4,0,0)|0|0,4,0);d=0}i=v;return d|0}function Am(a,b){a=a|0;b=b|0;var c=0,d=0;do if(b){a=da(a|0,4,0,0)|0|0;c=b+56|0;d=da(c|0,4,0,0)|0|0;if(d){Zm(a,d);Vc(da(d+40|0,4,0,0)|0|0);lg(a,d);ea(c|0,0|0,4,0)}a=da(b+4|0,4,0,0)|0|0;if(a){Ll(a);break}a=da(b|0,4,0,0)|0|0;if(a){jp(a);break}a=da(b+32|0,4,0,0)|0|0;if(a){d=da(a|0,4,0,0)|0|0;c=da(d|0,4,0,0)|0|0;d=d+4|0;ea(d|0,(da(d|0,4,0,0)|0|0)+-1|0,4,0);kc[(fa(da(c+28|0,4,0,0)|0|0,127|0)|0)&127](a)|0}}while(0);return}function Bm(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0;I=i;i=i+16|0;if((i|0)>=(j|0))ba();G=I+8|0;F=I;l=a+73|0;do if(((da(l>>0|0,1,0,0)|0|0)==1?(k=da(a+72>>0|0,1,0,1)|0|0,(k&2|0)!=0):0)?(da((da(a+120|0,4,0,0)|0|0)+2>>0|0,1,0,0)|0|0)!=0:0){g=a+24|0;h=da(g|0,4,0,0)|0|0;g=da(g+4|0,4,0,0)|0|0;if((h|0)==(c|0)&(g|0)==(d|0)){ea(f|0,0|0,4,0);g=0;break}if((k&8|0)!=0&((g|0)<(d|0)|(g|0)==(d|0)&h>>>0<c>>>0)){ea(f|0,-1|0,4,0);g=0}else H=8}else H=8;while(0);do if((H|0)==8){if(!b)B=0;else{h=da(b|0,4,0,0)|0|0;if(((da(h+8|0,2,0,1)|0|0)+(da(h+6|0,2,0,1)|0|0)|0)<14){g=da((da(b+8|0,4,0,0)|0|0)+8|0,2,0,1)|0|0;C=(da((da(h+16|0,4,0,0)|0)>>0|0,1,0,0)|0|0)==0;ea(b+12|0,(C?-1:1)|0,4,0);ea(b+16|0,(C?1:-1)|0,4,0);if(!(g&4))if((g&25|0)==0?(da(h+20|0,4,0,0)|0|0)==0:0)h=39;else H=13;else h=38}else H=13;if((H|0)==13)h=40;ea(b+7>>0|0,0|0,1,0);B=h}g=pm(a)|0;if(!g){if(!(da(l>>0|0,1,0,0)|0)){ea(f|0,-1|0,4,0);g=0;break}C=a+76|0;x=1-e|0;y=(B|0)==0;D=a+72|0;z=a+24|0;A=a+24|0;a:do{e=da(C|0,2,0,0)|0|0;v=da(a+(e<<2)+120|0,4,0,0)|0|0;w=v+18|0;k=(da(w|0,2,0,1)|0|0)+-1|0;h=k>>x;ea(a+(e<<1)+78|0,h|0,2,0);e=v+56|0;s=v+20|0;t=v+64|0;u=v+7|0;b:do if(y){n=v+3|0;m=v+60|0;l=0;o=k;while(1){k=h<<1;r=da(t|0,4,0,0)|0|0;k=(da(e|0,4,0,0)|0|0)+((((da(r+k>>0|0,1,0,1)|0)<<8|(da(r+(k|1)>>0|0,1,0,1)|0))&(da(s|0,2,0,1)|0))+(da(u>>0|0,1,0,1)|0|0))|0;c:do if(da(n>>0|0,1,0,0)|0)while(1){r=k;k=k+1|0;if((da(r>>0|0,1,0,0)|0|0)>=0)break c;if(k>>>0>=(da(m|0,4,0,0)|0|0)>>>0){H=25;break a}}while(0);rp(k,F)|0;g=F;k=da(g|0,4,0,0)|0|0;g=da(g+4|0,4,0,0)|0|0;if((g|0)<(d|0)|(g|0)==(d|0)&k>>>0<c>>>0){l=h+1|0;if((h|0)<(o|0))k=o;else{g=-1;H=49;break b}}else{if(!((g|0)>(d|0)|(g|0)==(d|0)&k>>>0>c>>>0)){l=g;break}k=h+-1|0;if((l|0)>(k|0)){g=1;H=49;break b}}h=k+l>>1;o=k}ea(D>>0|0,da(D>>0|0,1,0,1)|0|2|0,1,0);u=z;ea(u|0,k|0,4,0);ea(u+4|0,l|0,4,0);ea(a+((da(C|0,2,0,0)|0)<<1)+78|0,h|0,2,0);if(da(v+5>>0|0,1,0,0)|0){H=31;break a}}else{p=v+8|0;q=v+10|0;r=h;l=0;while(1){g=da(e|0,4,0,0)|0|0;n=r<<1;h=da(t|0,4,0,0)|0|0;n=((da(h+n>>0|0,1,0,1)|0)<<8|(da(h+(n|1)>>0|0,1,0,1)|0))&(da(s|0,2,0,1)|0);h=n+(da(u>>0|0,1,0,1)|0|0)|0;J=da(g+h>>0|0,1,0,0)|0|0;o=J&255;m=g+(h+1)|0;do if((J&255)>(da(p>>0|0,1,0,1)|0|0)){m=da(m>>0|0,1,0,1)|0|0;if((m&128|0)==0?(E=m+(o<<7&16256)|0,(E|0)<=(da(q|0,2,0,1)|0|0)):0){g=$b[(fa(B|0,63|0)|0)&63](E,g+(h+2)|0,b)|0;break}qp(v,g+n|0,A);m=da(A|0,4,0,0)|0|0;h=pg(m,((m|0)<0)<<31>>31)|0;if(!h){g=7;break a}ea(a+((da(C|0,2,0,0)|0)<<1)+78|0,r|0,2,0);g=Km(a,0,m,h,2)|0;if(g){H=40;break a}g=$b[(fa(B|0,63|0)|0)&63](m,h,b)|0;Vc(h)}else g=$b[(fa(B|0,63|0)|0)&63](o,m,b)|0;while(0);if((g|0)<0)l=r+1|0;else{if((g|0)<=0){h=r;H=46;break a}k=r+-1|0}if((l|0)>(k|0)){h=r;H=49;break b}r=k+l>>1}}while(0);if((H|0)==49){H=0;if(da(v+5>>0|0,1,0,0)|0){H=51;break}e=v+56|0;h=l}l=da(e|0,4,0,0)|0|0;if((h|0)<(da(w|0,2,0,1)|0|0)){k=h<<1;w=da(v+64|0,4,0,0)|0|0;k=((da(w+k>>0|0,1,0,1)|0)<<8|(da(w+(k|1)>>0|0,1,0,1)|0))&(da(v+20|0,2,0,1)|0);k=(da(l+(k+1)>>0|0,1,0,1)|0)<<16|(da(l+k>>0|0,1,0,1)|0)<<24|(da(l+(k+2)>>0|0,1,0,1)|0)<<8|(da(l+(k+3)>>0|0,1,0,1)|0)}else{k=da(v+6>>0|0,1,0,1)|0|0;k=(da(l+(k+9)>>0|0,1,0,1)|0)<<16|(da(l+(k+8)>>0|0,1,0,1)|0)<<24|(da(l+(k+10)>>0|0,1,0,1)|0)<<8|(da(l+(k+11)>>0|0,1,0,1)|0)}ea(a+((da(C|0,2,0,0)|0)<<1)+78|0,h|0,2,0);g=qm(a,k)|0}while((g|0)==0);if((H|0)==25){ea(G|0,57865|0,4,0);ea(G+4|0,10788|0,4,0);ad(11,13600,G);g=11;break}else if((H|0)==31){ea(f|0,0|0,4,0);g=0}else if((H|0)==40)Vc(h);else if((H|0)==46){ea(f|0,0|0,4,0);ea(a+((da(C|0,2,0,0)|0)<<1)+78|0,h|0,2,0);g=(da(b+7>>0|0,1,0,0)|0|0)==0?0:11}else if((H|0)==51){ea(a+((da(C|0,2,0,0)|0)<<1)+78|0,h|0,2,0);ea(f|0,g|0,4,0);g=0}ea(a+44|0,0|0,2,0);ea(D>>0|0,(da(D>>0|0,1,0,1)|0)&249|0,1,0)}}while(0);i=I;return g|0}function Cm(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;ea(a+44|0,0|0,2,0);c=a+72|0;ea(c>>0|0,(da(c>>0|0,1,0,1)|0)&249|0,1,0);ea(b|0,0|0,4,0);do if((da(a+73>>0|0,1,0,0)|0|0)==1){c=a+76|0;f=da(c|0,2,0,0)|0|0;d=da(a+(f<<2)+120|0,4,0,0)|0|0;f=a+(f<<1)+78|0;e=(da(f|0,2,0,0)|0|0)+1<<16>>16;ea(f|0,e|0,2,0);if((e&65535)>=(da(d+18|0,2,0,1)|0|0)){c=a+((da(c|0,2,0,0)|0)<<1)+78|0;ea(c|0,(da(c|0,2,0,0)|0|0)+-1<<16>>16|0,2,0);c=Cp(a,b)|0;break}if(!(da(d+5>>0|0,1,0,0)|0))c=Um(a)|0;else c=0}else c=Cp(a,b)|0;while(0);return c|0}function Dm(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;ea(b|0,0|0,4,0);f=a+72|0;ea(f>>0|0,(da(f>>0|0,1,0,1)|0)&241|0,1,0);ea(a+44|0,0|0,2,0);if(((da(a+73>>0|0,1,0,0)|0|0)==1?(c=da(a+76|0,2,0,0)|0|0,d=a+(c<<1)+78|0,e=da(d|0,2,0,0)|0|0,e<<16>>16!=0):0)?(da((da(a+(c<<2)+120|0,4,0,0)|0|0)+5>>0|0,1,0,0)|0|0)!=0:0){ea(d|0,e+-1<<16>>16|0,2,0);c=0}else c=Dp(a,b)|0;return c|0}function Em(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;g=0-b&7;h=a+6|0;f=da(h|0,2,0,0)|0|0;e=((f&65535)*40|0)+64|0;if((e|0)>(g+c|0)){e=lh(da(a+12|0,4,0,0)|0|0,e,0)|0;ea(d|0,e|0,4,0);if(!e)e=0;else{f=da(h|0,2,0,0)|0|0;i=5}}else{ea(d|0,0|0,4,0);e=b+g|0;i=5}if((i|0)==5){ea(e+8|0,e+24|0,4,0);ea(e|0,a|0,4,0);ea(e+4|0,(f&65535)+1|0,2,0)}return e|0}function Fm(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();p=q+4|0;o=q;g=da(d+8|0,4,0,0)|0|0;ea(d+6>>0|0,0|0,1,0);e=da(c>>0|0,1,0,0)|0|0;if(e<<24>>24>-1){e=e&255;ea(p|0,e|0,4,0);f=1}else{f=lm(c,p)|0;e=da(p|0,4,0,0)|0|0}n=a+4|0;l=a+12|0;m=d+4|0;a=e;k=e;h=f&255;e=0;while(1){if(h>>>0>=a>>>0|(k|0)>(b|0))break;d=c+h|0;a=da(d>>0|0,1,0,0)|0|0;if(a<<24>>24>-1){ea(o|0,a&255|0,4,0);d=1}else d=lm(d,o)|0;ea(g+10>>0|0,da(n>>0|0,1,0,0)|0|0|0,1,0);ea(g+32|0,da(l|0,4,0,0)|0|0,4,0);ea(g+24|0,0|0,4,0);f=nm(c+k|0,da(o|0,4,0,0)|0|0,g)|0;e=e+1<<16>>16;if((e&65535)>=(da(m|0,2,0,1)|0|0))break;a=da(p|0,4,0,0)|0|0;k=f+k|0;h=(d&255)+h|0;g=g+40|0}ea(m|0,e|0,2,0);i=q;return}function Gm(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=a+73|0;if((da(d>>0|0,1,0,0)|0|0)==1?((da(a+72>>0|0,1,0,0)|0)&8)!=0:0)c=0;else e=3;do if((e|0)==3){c=pm(a)|0;if(!c){if(!(da(d>>0|0,1,0,0)|0)){ea(b|0,1|0,4,0);c=0;break}ea(b|0,0|0,4,0);c=Ep(a)|0;b=a+72|0;d=da(b>>0|0,1,0,1)|0|0;if(!c){ea(b>>0|0,d|8|0,1,0);c=0;break}else{ea(b>>0|0,d&247|0,1,0);break}}}while(0);return c|0}function Hm(a,b,c,d,e,f,g,h,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0;G=i;i=i+32|0;if((i|0)>=(j|0))ba();q=G;v=G+24|0;w=G+20|0;u=G+16|0;F=G+12|0;B=G+8|0;D=G+28|0;ea(B|0,k|0,4,0);m=(da(a|0,4,0,0)|0|0)+4|0;o=da(m|0,4,0,0)|0|0;E=a+73|0;do if((da(E>>0|0,1,0,0)|0|0)!=4){n=Kn(o,da(a+60|0,4,0,0)|0|0,a)|0;ea(F|0,n|0,4,0);if(!n){if(!(da(a+16|0,4,0,0)|0)){n=da((da(m|0,4,0,0)|0|0)+8|0,4,0,0)|0|0;if(n)do{if(((da(n+72>>0|0,1,0,0)|0)&16)!=0?(m=n+24|0,(da(m|0,4,0,0)|0|0)==(c|0)?(da(m+4|0,4,0,0)|0|0)==(d|0):0):0)ea(n+73>>0|0,0|0,1,0);n=da(n+8|0,4,0,0)|0|0}while((n|0)!=0);if(((da(a+72>>0|0,1,0,0)|0)&2)!=0&((d|0)>0|(d|0)==0&c>>>0>0)?(x=a+24|0,s=da(x|0,4,0,0)|0|0,x=da(x+4|0,4,0,0)|0|0,t=iw(c|0,d|0,-1,-1)|0,(s|0)==(t|0)&(x|0)==(C|0)):0)ea(B|0,-1|0,4,0);else y=13}else y=13;if(((y|0)==13?(k|0)==0:0)?(l=Fp(a,b,c,d,h,B)|0,ea(F|0,l|0,4,0),(l|0)!=0):0)break;z=a+76|0;A=da(a+((da(z|0,2,0,0)|0)<<2)+120|0,4,0,0)|0|0;x=da(o+80|0,4,0,0)|0|0;ea(w|0,0|0,4,0);o=A+52|0;t=da(o|0,4,0,0)|0|0;ea(u|0,0|0,4,0);n=da(A+7>>0|0,1,0,1)|0|0;h=g+f|0;if(da(A+3>>0|0,1,0,0)|0){if(h>>>0<128){ea(x+n>>0|0,h|0,1,0);m=1}else m=(om(x+n|0,h,((h|0)<0)<<31>>31)|0)&255;n=m+n|0}p=(om(x+n|0,c,d)|0)+n|0;do if(!(da(A+2>>0|0,1,0,0)|0))if((d|0)>0|(d|0)==0&c>>>0>2147483647|(b|0)==0){ea(q|0,58825|0,4,0);ea(q+4|0,10788|0,4,0);ad(11,13600,q);l=11;n=0;break}else{s=f;h=c;f=c;g=b;y=24;break}else{s=0;g=e;y=24}while(0);do if((y|0)==24){n=da(A+10|0,2,0,1)|0|0;if((h|0)>(n|0)){r=da(A+12|0,2,0,1)|0|0;m=(((h-r|0)>>>0)%(((da((da(o|0,4,0,0)|0|0)+36|0,4,0,0)|0|0)+-4|0)>>>0)|0)+r|0;m=(m|0)>(n|0)?r:m;o=m+p|0;n=o+4|0;o=x+o|0}else{n=h+p|0;n=(n|0)<4?4:n;o=x;m=h}if((h|0)>0){c=t+17|0;q=t+36|0;r=t+32|0;b=f;p=x+p|0;d=o;k=0;f=m;while(1){if(!f){p=da(u|0,4,0,0)|0|0;if(!(da(c>>0|0,1,0,0)|0))m=p;else{l=((da(2514*4|0,4,0,0)|0|0)>>>0)/((da(r|0,4,0,0)|0|0)>>>0)|0;f=p;while(1){m=f+1|0;if(m>>>0<2)o=0;else{o=f+-1|0;o=o-((o>>>0)%(((((da(q|0,4,0,0)|0|0)>>>0)/5|0)+1|0)>>>0)|0)|0;o=((o+1|0)==(l|0)?3:2)+o|0}if((o|0)==(m|0)|(f|0)==(l|0))f=m;else break}ea(u|0,m|0,4,0)}l=hp(t,w,u,m,0)|0;ea(v|0,l|0,4,0);m=(l|0)==0;if((da(c>>0|0,1,0,0)|0|0)!=0&m){m=da(u|0,4,0,0)|0|0;yp(t,m,(p|0)!=0?4:3,p,v);l=da(v|0,4,0,0)|0|0;if(l){h=k;y=38;break}}else{if(!m)break;m=da(u|0,4,0,0)|0|0}ea(d>>0|0,m>>>24|0,1,0);ea(d+1>>0|0,m>>>16|0,1,0);ea(d+2>>0|0,m>>>8|0,1,0);ea(d+3>>0|0,m|0,1,0);if(k)Ag(da(k+68|0,4,0,0)|0|0);l=da(w|0,4,0,0)|0|0;p=l+56|0;d=da(p|0,4,0,0)|0|0;ea(d>>0|0,0|0,1,0);ea(d+1>>0|0,0|0,1,0);ea(d+2>>0|0,0|0,1,0);ea(d+3>>0|0,0|0,1,0);p=(da(p|0,4,0,0)|0|0)+4|0;f=(da(q|0,4,0,0)|0|0)+-4|0}else l=k;o=(h|0)>(f|0)?f:h;if((b|0)>0){o=(o|0)>(b|0)?b:o;jw(p|0,g|0,o|0)|0}else ew(p|0,0,o|0)|0;h=h-o|0;m=(b|0)==(o|0);if((h|0)<=0){y=51;break}else{b=m?s:b-o|0;p=p+o|0;g=m?e:g+o|0;k=l;f=f-o|0}}if((y|0)==38){k=da(w|0,4,0,0)|0|0;if(!k)k=h;else{Ag(da(k+68|0,4,0,0)|0|0);k=h}}else if((y|0)==51){if(!l){l=0;break}Ag(da(l+68|0,4,0,0)|0|0);l=0;break}if(k)Ag(da(k+68|0,4,0,0)|0|0)}else l=0}while(0);ea(F|0,l|0,4,0);if(!l){l=a+((da(z|0,2,0,0)|0)<<1)+78|0;h=da(l|0,2,0,0)|0|0;m=h&65535;k=da(B|0,4,0,0)|0|0;if(!k){l=Fg(da(A+68|0,4,0,0)|0|0)|0;ea(F|0,l|0,4,0);if(l)break;l=m<<1;y=da(A+64|0,4,0,0)|0|0;l=(da(A+56|0,4,0,0)|0|0)+(((da(y+l>>0|0,1,0,1)|0)<<8|(da(y+(l|1)>>0|0,1,0,1)|0))&(da(A+20|0,2,0,1)|0))|0;if(!(da(A+5>>0|0,1,0,0)|0)){y=da(l>>0|0,1,0,1)|0|(da(l+1>>0|0,1,0,1)|0)<<8|(da(l+2>>0|0,1,0,1)|0)<<16|(da(l+3>>0|0,1,0,1)|0)<<24;ea(x>>0|0,y|0,1,0);ea(x+1>>0|0,y>>8|0,1,0);ea(x+2>>0|0,y>>16|0,1,0);ea(x+3>>0|0,y>>24|0,1,0)}ea(F|0,Gp(A,l,D)|0|0,4,0);Hp(A,m,da(D|0,2,0,1)|0|0,F);l=da(F|0,4,0,0)|0|0;if(!l)l=m;else break}else if((k|0)<0?(da(A+18|0,2,0,0)|0|0)!=0:0){y=h+1<<16>>16;ea(l|0,y|0,2,0);l=y&65535}else l=m;Ip(A,l,x,n,0,0,F);ea(a+44|0,0|0,2,0);l=da(F|0,4,0,0)|0|0;if(!l)if(!(da(A+1>>0|0,1,0,0)|0))l=0;else{l=a+72|0;ea(l>>0|0,(da(l>>0|0,1,0,1)|0)&253|0,1,0);l=Jp(a)|0;ea(F|0,l|0,4,0);ea((da(a+((da(z|0,2,0,0)|0)<<2)+120|0,4,0,0)|0|0)+1>>0|0,0|0,1,0);ea(E>>0|0,0|0,1,0)}}}else l=n}else l=da(a+68|0,4,0,0)|0|0;while(0);i=G;return l|0}function Im(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))ba();t=u+4|0;l=u+8|0;e=u;f=(da(a|0,4,0,0)|0|0)+4|0;n=da(f|0,4,0,0)|0|0;r=a+76|0;s=da(r|0,2,0,0)|0|0;p=s<<16>>16;k=da(a+(p<<1)+78|0,2,0,0)|0|0;q=k&65535;m=da(a+(p<<2)+120|0,4,0,0)|0|0;do if((k&65535)<(da(m+18|0,2,0,1)|0|0)?(da(a+73>>0|0,1,0,0)|0|0)==1:0){k=q<<1;o=da(m+64|0,4,0,0)|0|0;k=(da(m+56|0,4,0,0)|0|0)+(((da(o+k>>0|0,1,0,1)|0)<<8|(da(o+(k|1)>>0|0,1,0,1)|0))&(da(m+20|0,2,0,1)|0))|0;o=m+5|0;if((da(o>>0|0,1,0,0)|0|0)==0?(ea(e|0,0|0,4,0),c=Dm(a,e)|0,ea(t|0,c|0,4,0),(c|0)!=0):0){b=c;break}c=Kn(n,da(a+60|0,4,0,0)|0|0,a)|0;ea(t|0,c|0,4,0);if(!c){if((da(a+16|0,4,0,0)|0|0)==0?(h=a+24|0,g=da(h|0,4,0,0)|0|0,h=da(h+4|0,4,0,0)|0|0,d=da((da(f|0,4,0,0)|0|0)+8|0,4,0,0)|0|0,(d|0)!=0):0)do{if(((da(d+72>>0|0,1,0,0)|0)&16)!=0?(c=d+24|0,(da(c|0,4,0,0)|0|0)==(g|0)?(da(c+4|0,4,0,0)|0|0)==(h|0):0):0)ea(d+73>>0|0,0|0,1,0);d=da(d+8|0,4,0,0)|0|0}while((d|0)!=0);c=Fg(da(m+68|0,4,0,0)|0|0)|0;ea(t|0,c|0,4,0);if(!c){ea(t|0,Gp(m,k,l)|0|0,4,0);Hp(m,q,da(l|0,2,0,1)|0|0,t);c=da(t|0,4,0,0)|0|0;if(!c){if((da(o>>0|0,1,0,0)|0|0)==0?(k=da(a+((da(r|0,2,0,0)|0)<<2)+120|0,4,0,0)|0|0,h=da((da(a+(p+1<<2)+120|0,4,0,0)|0|0)+72|0,4,0,0)|0|0,e=da(k+56|0,4,0,0)|0|0,l=k+18|0,f=(da(l|0,2,0,1)|0)<<1,b=da(k+64|0,4,0,0)|0|0,f=((da(b+(f+-2)>>0|0,1,0,1)|0)<<8|(da(b+(f+-1)>>0|0,1,0,1)|0))&(da(k+20|0,2,0,1)|0),b=(Kp(k,e+f|0)|0)&65535,g=da(n+80|0,4,0,0)|0|0,ea(t|0,Fg(da(k+68|0,4,0,0)|0|0)|0|0,4,0),Ip(m,q,e+(f+-4)|0,b+4|0,g,h,t),Hp(k,(da(l|0,2,0,1)|0|0)+-1|0,b,t),b=da(t|0,4,0,0)|0|0,(b|0)!=0):0)break;b=Jp(a)|0;ea(t|0,b|0,4,0);if(!b){b=da(r|0,2,0,0)|0|0;if(b<<16>>16>s<<16>>16){do{c=b+-1<<16>>16;ea(r|0,c|0,2,0);b=da(a+(b<<16>>16<<2)+120|0,4,0,0)|0|0;if(!b)b=c;else{Ag(da(b+68|0,4,0,0)|0|0);b=da(r|0,2,0,0)|0|0}}while(b<<16>>16>s<<16>>16);b=Jp(a)|0;ea(t|0,b|0,4,0);if(b)break}pm(a)|0;b=0}}else b=c}else b=c}else b=c}else b=1;while(0);i=u;return b|0}function Jm(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,k=0.0,l=0.0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0;F=i;i=i+64|0;if((i|0)>=(j|0))ba();D=F+40|0;h=F+56|0;A=F;f=F+52|0;B=F+48|0;m=da(c+8|0,4,0,0)|0|0;E=da(c|0,4,0,0)|0|0;do if(!d){d=da(b>>0|0,1,0,0)|0|0;if(d<<24>>24>-1){d=d&255;ea(h|0,d|0,4,0);e=1}else{e=lm(b,h)|0;d=da(h|0,4,0,0)|0|0}if(d>>>0>a>>>0){ea(D|0,68267|0,4,0);ea(D+4|0,10788|0,4,0);ad(11,13600,D);ea(c+7>>0|0,11|0,1,0);e=0;break}else{z=d;h=d;d=0;f=e&255;g=15;break}}else{d=b+1|0;e=da(d>>0|0,1,0,0)|0|0;if(e<<24>>24>-1){d=e&255;ea(f|0,d|0,4,0);g=1}else{g=lm(d,f)|0;d=da(f|0,4,0,0)|0|0}e=da(b>>0|0,1,0,1)|0|0;ea(h|0,e|0,4,0);if(d>>>0>11)d=(d+-12|0)>>>1;else d=da(34336+d>>0|0,1,0,1)|0|0;z=e;h=d+e|0;d=1;f=(g&255)+1|0;m=m+40|0;g=15}while(0);do if((g|0)==15){q=A+12|0;r=E+4|0;s=A+10|0;t=E+12|0;u=A+32|0;v=A+8|0;w=A+16|0;y=c+7|0;x=c+4|0;p=h;o=f;a:while(1){f=da(m+8|0,2,0,1)|0|0;do if(!(f&4)){if(f&8){g=da(b+o>>0|0,1,0,0)|0|0;h=g&255;ea(B|0,h|0,4,0);if((g&255)>11){e=1;g=62;break a}if(!(g<<24>>24)){e=-1;g=62;break a}k=+(+da(m|0,8,1,0));nm(b+p|0,h,A)|0;if(g<<24>>24==7)l=+(+da(A|0,8,1,0));else{e=A;l=+((da(e|0,4,0,0)|0|0)>>>0)+4294967296.0*+(da(e+4|0,4,0,0)|0|0)}if(l<k){e=-1;g=62;break a}if(l>k){e=1;g=62;break a}else break}do if(!(f&2)){g=b+o|0;n=da(g>>0|0,1,0,0)|0|0;h=n&255;if(!(f&16)){ea(B|0,h|0,4,0);e=n<<24>>24!=0&1;break}if(n<<24>>24>-1)ea(B|0,h|0,4,0);else{lm(g,B)|0;h=da(B|0,4,0,0)|0|0}if(!(h>>>0>11&(h&1|0)==0)){e=-1;g=62;break a}n=(h+-12|0)>>>1;if((n+p|0)>>>0>a>>>0){g=57;break a}g=da(m+12|0,4,0,0)|0|0;e=Yv(b+p|0,da(m+16|0,4,0,0)|0|0,(n|0)<(g|0)?n:g)|0;if(e){g=62;break a}e=n-g|0}else{h=b+o|0;g=da(h>>0|0,1,0,0)|0|0;if(g<<24>>24>-1){h=g&255;ea(B|0,h|0,4,0)}else{lm(h,B)|0;h=da(B|0,4,0,0)|0|0}if(h>>>0<12){e=-1;g=62;break a}if(!(h&1)){e=1;g=62;break a}f=(h+-12|0)>>>1;ea(q|0,f|0,4,0);if((f+p|0)>>>0>a>>>0){g=46;break a}g=da(E+(d<<2)+20|0,4,0,0)|0|0;if(g){ea(s>>0|0,da(r>>0|0,1,0,0)|0|0|0,1,0);ea(u|0,da(t|0,4,0,0)|0|0,4,0);ea(v|0,2|0,2,0);ea(w|0,b+p|0,4,0);e=op(A,m,g,y)|0;break}n=da(m+12|0,4,0,0)|0|0;e=Yv(b+p|0,da(m+16|0,4,0,0)|0|0,(f|0)<(n|0)?f:n)|0;if(e){g=62;break a}e=f-n|0}while(0);if(e){g=62;break a}}else{g=da(b+o>>0|0,1,0,0)|0|0;h=g&255;ea(B|0,h|0,4,0);if((g&255)>11){e=1;g=62;break a}if(g<<24>>24==7){e=m;k=+((da(e|0,4,0,0)|0|0)>>>0)+4294967296.0*+(da(e+4|0,4,0,0)|0|0);nm(b+p|0,h,A)|0;l=+(+da(A|0,8,1,0));if(l<k){e=-1;g=62;break a}if(l>k){e=1;g=62;break a}else break}else if(!(g<<24>>24)){e=-1;g=62;break a}g=b+p|0;switch(h|0){case 1:case 0:{n=da(g>>0|0,1,0,0)|0|0;e=((n|0)<0)<<31>>31;break}case 6:{e=(da(b+(p+1)>>0|0,1,0,1)|0)<<16|(da(g>>0|0,1,0,1)|0)<<24|(da(b+(p+2)>>0|0,1,0,1)|0)<<8|(da(b+(p+3)>>0|0,1,0,1)|0);n=(da(b+(p+5)>>0|0,1,0,1)|0)<<16|(da(b+(p+4)>>0|0,1,0,1)|0)<<24|(da(b+(p+6)>>0|0,1,0,1)|0)<<8|(da(b+(p+7)>>0|0,1,0,1)|0);break}case 2:{n=(da(g>>0|0,1,0,0)|0)<<8|(da(b+(p+1)>>0|0,1,0,1)|0);e=((n|0)<0)<<31>>31;break}case 4:{n=(da(b+(p+1)>>0|0,1,0,1)|0)<<16|(da(g>>0|0,1,0,1)|0)<<24|(da(b+(p+2)>>0|0,1,0,1)|0)<<8|(da(b+(p+3)>>0|0,1,0,1)|0);e=((n|0)<0)<<31>>31;break}case 5:{e=(da(g>>0|0,1,0,0)|0)<<8|(da(b+(p+1)>>0|0,1,0,1)|0);n=(da(b+(p+3)>>0|0,1,0,1)|0)<<16|(da(b+(p+2)>>0|0,1,0,1)|0)<<24|(da(b+(p+4)>>0|0,1,0,1)|0)<<8|(da(b+(p+5)>>0|0,1,0,1)|0);break}case 3:{n=(da(b+(p+1)>>0|0,1,0,1)|0)<<8|(da(g>>0|0,1,0,0)|0)<<16|(da(b+(p+2)>>0|0,1,0,1)|0);e=((n|0)<0)<<31>>31;break}default:{e=0;n=h+-8|0}}f=m;g=da(f|0,4,0,0)|0|0;f=da(f+4|0,4,0,0)|0|0;if((e|0)<(f|0)|(e|0)==(f|0)&n>>>0<g>>>0){e=-1;g=62;break a}if((e|0)>(f|0)|(e|0)==(f|0)&n>>>0>g>>>0){e=1;g=62;break a}}while(0);d=d+1|0;m=m+40|0;if(h>>>0>11)f=(h+-12|0)>>>1;else f=da(34336+h>>0|0,1,0,1)|0|0;n=h;g=0;h=0;do{h=h+1|0;n=lw(n|0,g|0,7)|0;g=C}while(((n|0)!=0|(g|0)!=0)&(h|0)<9);p=f+p|0;o=h+o|0;if(o>>>0>=z>>>0){g=70;break}if(p>>>0>a>>>0?1:(d|0)>=(da(x|0,2,0,1)|0|0)){g=70;break}}if((g|0)==46){ea(D|0,68346|0,4,0);ea(D+4|0,10788|0,4,0);ad(11,13600,D);ea(y>>0|0,11|0,1,0);e=0;break}else if((g|0)==57){ea(D|0,68375|0,4,0);ea(D+4|0,10788|0,4,0);ad(11,13600,D);ea(y>>0|0,11|0,1,0);e=0;break}else if((g|0)==62){e=(da((da(E+16|0,4,0,0)|0|0)+d>>0|0,1,0,0)|0|0)==0?e:0-e|0;break}else if((g|0)==70){e=da(c+6>>0|0,1,0,0)|0|0;break}}while(0);i=F;return e|0}function Km(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))ba();v=w;t=w+12|0;u=w+8|0;f=da(a+76|0,2,0,0)|0|0;h=da(a+(f<<2)+120|0,4,0,0)|0|0;s=da(a+4|0,4,0,0)|0|0;if(!(da(a+44|0,2,0,0)|0)){n=h+56|0;f=(da(a+(f<<1)+78|0,2,0,1)|0)<<1;m=da(h+64|0,4,0,0)|0|0;qp(h,(da(n|0,4,0,0)|0|0)+(((da(m+f>>0|0,1,0,1)|0)<<8|(da(m+(f|1)>>0|0,1,0,1)|0))&(da(h+20|0,2,0,1)|0))|0,a+24|0);f=a+72|0;ea(f>>0|0,da(f>>0|0,1,0,1)|0|2|0,1,0);f=n}else f=h+56|0;n=da(a+32|0,4,0,0)|0|0;l=a+40|0;g=da(l|0,2,0,1)|0|0;m=s+36|0;if((n+g|0)>>>0<=((da(f|0,4,0,0)|0|0)+(da(m|0,4,0,0)|0|0)|0)>>>0){if(g>>>0>b>>>0){k=(c+b|0)>>>0>g>>>0?g-b|0:c;g=n+b|0;if(e&1){f=Fg(da(h+68|0,4,0,0)|0|0)|0;if(!f){jw(g|0,d|0,k|0)|0;f=0}}else{jw(d|0,g|0,k|0)|0;f=0}d=d+k|0;o=0;c=c-k|0}else{o=b-g|0;f=0}a:do if((f|0)==0&(c|0)!=0){f=da(m|0,4,0,0)|0|0;r=f+-4|0;g=da(l|0,2,0,1)|0|0;l=(da(n+(g+1)>>0|0,1,0,1)|0)<<16|(da(n+g>>0|0,1,0,1)|0)<<24|(da(n+(g+2)>>0|0,1,0,1)|0)<<8|(da(n+(g+3)>>0|0,1,0,1)|0);ea(t|0,l|0,4,0);n=a+72|0;do if((e|0)!=2?((da(n>>0|0,1,0,0)|0)&4)==0:0){f=((f+-5+(da(a+36|0,4,0,0)|0|0)-g|0)>>>0)/(r>>>0)|0;b=a+64|0;if((f|0)>(da(b|0,4,0,0)|0|0)){h=a+20|0;g=qg(da(h|0,4,0,0)|0|0,f<<3,0)|0;if(!g){f=7;break}ea(b|0,f<<1|0,4,0);ea(h|0,g|0,4,0)}ew(da(a+20|0,4,0,0)|0|0,0,f<<2|0)|0;ea(n>>0|0,da(n>>0|0,1,0,1)|0|4|0,1,0);f=0}else f=0;while(0);b=da(n>>0|0,1,0,0)|0|0;if((b&4)!=0?(q=(o>>>0)/(r>>>0)|0,p=da((da(a+20|0,4,0,0)|0|0)+(q<<2)|0,4,0,0)|0|0,(p|0)!=0):0){ea(t|0,p|0,4,0);k=(o>>>0)%(r>>>0)|0;h=p;l=q}else{k=o;h=l;l=0}if((f|0)==0&(h|0)!=0){p=e&1;q=p<<1^2;p=(p|0)==0;e=a+20|0;while(1){if(b&4)ea((da(e|0,4,0,0)|0|0)+(l<<2)|0,h|0,4,0);if(k>>>0<r>>>0){m=(k+c|0)>>>0>r>>>0?r-k|0:c;f=yg(da(s|0,4,0,0)|0|0,h,u,q)|0;if(!f){b=da(u|0,4,0,0)|0|0;g=da(b+4|0,4,0,0)|0|0;h=(da(g+1>>0|0,1,0,1)|0)<<16|(da(g>>0|0,1,0,1)|0)<<24|(da(g+2>>0|0,1,0,1)|0)<<8|(da(g+3>>0|0,1,0,1)|0);ea(t|0,h|0,4,0);g=g+(k+4)|0;if(!p){f=Fg(b)|0;if(!f){jw(g|0,d|0,m|0)|0;f=0}}else{jw(d|0,g|0,m|0)|0;f=0}if(!b)k=0;else{Ag(b);k=0}}c=c-m|0;d=d+m|0;l=l+1|0}else{b=l+1|0;f=da((da(e|0,4,0,0)|0|0)+(b<<2)|0,4,0,0)|0|0;if(!f){f=Lp(s,h,0,t)|0;h=da(t|0,4,0,0)|0|0}else{ea(t|0,f|0,4,0);h=f;f=0}k=k-r|0;l=b}if(!((f|0)==0&(c|0)!=0&(h|0)!=0))break a;b=da(n>>0|0,1,0,0)|0|0}}}while(0);if((f|0)==0&(c|0)!=0){ea(v|0,57357|0,4,0);ea(v+4|0,10788|0,4,0);ad(11,13600,v);f=11}}else{ea(v|0,57202|0,4,0);ea(v+4|0,10788|0,4,0);ad(11,13600,v);f=11}i=w;return f|0}function Lm(a,b){a=a|0;b=b|0;var c=0,d=0;c=da(a|0,4,0,0)|0|0;d=a+44|0;lg(c,da(d|0,4,0,0)|0|0);a=b+8|0;ea(d|0,jh(c,da(a|0,4,0,0)|0|0)|0|0,4,0);Vc(da(a|0,4,0,0)|0|0);ea(a|0,0|0,4,0);return}function Mm(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();e=n+4|0;l=n;m=a+12|0;if(!(da(m|0,4,0,0)|0)){d=a+8|0;c=Em(da((da(d|0,4,0,0)|0|0)+28|0,4,0,0)|0|0,0,0,e)|0;ea(m|0,c|0,4,0);if(!(da(e|0,4,0,0)|0))c=7;else{ea(c+4|0,da((da((da(d|0,4,0,0)|0|0)+28|0,4,0,0)|0|0)+6|0,2,0,0)|0|0|0,2,0);ea(c+7>>0|0,0|0,1,0);f=4}}else f=4;if((f|0)==4){k=pg(256,0)|0;if(!k)c=7;else{ew(k|0,0,256)|0;c=da(b|0,4,0,0)|0|0;ea(l|0,c|0,4,0);if(c){h=b+4|0;while(1){d=da(h|0,4,0,0)|0|0;if(d)if((c|0)==(d|0))g=0;else g=d+(da(c+4|0,4,0,0)|0|0)|0;else g=da(c+4|0,4,0,0)|0|0;ea(c+4|0,0|0,4,0);f=da(k|0,4,0,0)|0|0;e=da(l|0,4,0,0)|0|0;if(!f)f=k;else{d=k;c=0;do{Mp(a,e,f,l);ea(d|0,0|0,4,0);c=c+1|0;d=k+(c<<2)|0;f=da(d|0,4,0,0)|0|0;e=da(l|0,4,0,0)|0|0}while((f|0)!=0);f=d}ea(f|0,e|0,4,0);ea(l|0,g|0,4,0);if(!g)break;else c=g}}ea(l|0,0|0,4,0);c=0;d=0;do{Mp(a,c,da(k+(d<<2)|0,4,0,0)|0|0,l);d=d+1|0;c=da(l|0,4,0,0)|0|0}while((d|0)!=64);ea(b|0,c|0,4,0);Vc(k);c=da((da(m|0,4,0,0)|0|0)+7>>0|0,1,0,1)|0|0}}i=n;return c|0}function Nm(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+64|0;if((i|0)>=(j|0))ba();k=m+40|0;l=m;ea(a+56>>0|0,1|0,1,0);e=a+64|0;h=a+36|0;g=a+72|0;f=da((da(g|0,4,0,0)|0|0)+24|0,4,0,0)|0|0;d=l+0|0;c=d+40|0;do{ea(d|0,0|0,4,0);d=d+4|0}while((d|0)<(c|0));d=a+96|0;if(!((da(d|0,4,0,0)|0|0)==0?(b=Np(f,d)|0,(b|0)!=0):0)){b=Mm(e,h)|0;if(!b){e=a+104|0;b=e;Op(da(d|0,4,0,0)|0|0,l,da((da(g|0,4,0,0)|0|0)+12|0,4,0,0)|0|0,da(b|0,4,0,0)|0|0,da(b+4|0,4,0,0)|0|0);b=a+92|0;ea(b|0,(da(b|0,4,0,0)|0|0)+1|0,4,0);b=da(a+44|0,4,0,0)|0|0;Pp(l,k,om(k,b,((b|0)<0)<<31>>31)|0);b=da(h|0,4,0,0)|0|0;if(b){d=a+40|0;do{c=b;b=da(b+4|0,4,0,0)|0|0;a=da(c|0,4,0,0)|0|0;Pp(l,k,om(k,a,((a|0)<0)<<31>>31)|0);Pp(l,c+8|0,da(c|0,4,0,0)|0|0);if(!(da(d|0,4,0,0)|0))Vc(c)}while((b|0)!=0)}ea(h|0,0|0,4,0);b=Qp(l,e)|0}}i=m;return b|0}function Om(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();o=q;f=c;h=da(f|0,4,0,0)|0|0;f=da(f+4|0,4,0,0)|0|0;p=Pm(b)|0;ea(d|0,p|0,4,0);g=(p|0)==0;e=g?7:0;g=g^1;if((b|0)>0&g){n=p+12|0;m=a+32|0;l=0;do{g=da(n|0,4,0,0)|0|0;k=g+(l*56|0)|0;e=Rp(a,k,m,h,f)|0;if(!e){e=Sp(k,o)|0;f=k;h=o;f=iw(da(h|0,4,0,0)|0|0,da(h+4|0,4,0,0)|0|0,da(f|0,4,0,0)|0|0,da(f+4|0,4,0,0)|0|0)|0;h=g+(l*56|0)+8|0;g=h;ea(g|0,f|0,4,0);ea(g+4|0,C|0,4,0);if(!e)e=Tp(k)|0}else h=g+(l*56|0)+8|0;f=h;h=da(f|0,4,0,0)|0|0;f=da(f+4|0,4,0,0)|0|0;l=l+1|0;g=(e|0)==0}while((l|0)<(b|0)&g)}if(!g){Sm(p);ea(d|0,0|0,4,0)}b=c;ea(b|0,h|0,4,0);ea(b+4|0,f|0,4,0);i=q;return e|0}function Pm(a){a=a|0;var b=0,c=0;b=2;while(1)if((b|0)<(a|0))b=b<<1;else{c=b;break}b=da(2252*4|0,4,0,0)|0|0;if((b|0)!=0?(kc[(fa(b|0,127|0)|0)&127](100)|0)!=0:0)b=0;else{a=(c*60|0)+16|0;b=pg(a,((a|0)<0)<<31>>31)|0;if(!b)b=0;else{ew(b|0,0,a|0)|0;ea(b|0,c|0,4,0);ea(b+4|0,0|0,4,0);a=b+16|0;ea(b+12|0,a|0,4,0);ea(b+8|0,a+(c*56|0)|0,4,0)}}return b|0}function Qm(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=da(2252*4|0,4,0,0)|0|0;if((d|0)!=0?(kc[(fa(d|0,127|0)|0)&127](100)|0)!=0:0){d=0;g=6}else g=3;do if((g|0)==3){d=pg(64,0)|0;if(!d){g=6;break}else{e=d+0|0;f=e+64|0;do{ea(e>>0|0,0|0,1,0);e=e+1|0}while((e|0)<(f|0));ea(c|0,d|0,4,0);ea(d+4|0,b|0,4,0);ea(d|0,a|0,4,0);f=da(a+8|0,4,0,0)|0|0;e=(da(f+8|0,4,0,0)|0|0)+9|0;f=(da(f+4|0,4,0,0)|0|0)/2|0;f=(e|0)>(f|0)?e:f;ea(d+16|0,f|0,4,0);d=a+56|0;e=d;e=iw(f|0,((f|0)<0)<<31>>31|0,da(e|0,4,0,0)|0|0,da(e+4|0,4,0,0)|0|0)|0;ea(d|0,e|0,4,0);ea(d+4|0,C|0,4,0);d=0;break}}while(0);if((g|0)==6){ea(c|0,d|0,4,0);Sm(b);d=7}return d|0}function Rm(a){a=a|0;if(a){Sm(da(a+4|0,4,0,0)|0|0);Vc(a)}return}function Sm(a){a=a|0;var b=0,c=0;if((a|0)!=0?(da(a|0,4,0,0)|0|0)>0:0){b=a+12|0;c=0;do{Up((da(b|0,4,0,0)|0|0)+(c*56|0)|0);c=c+1|0}while((c|0)<(da(a|0,4,0,0)|0|0))}Vc(a);return}function Tm(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,k=0,l=0,m=0,n=0,o=0,p=0;l=da(b|0,4,0,0)|0|0;p=b+4|0;ea(p|0,a|0,4,0);a:do if((l|0)>0){m=b+12|0;n=0;do{j=da(m|0,4,0,0)|0|0;h=j+(n*56|0)|0;j=da(j+(n*56|0)+48|0,4,0,0)|0|0;if(j){k=da(j|0,4,0,0)|0|0;g=da((da(k+8|0,4,0,0)|0|0)+24|0,4,0,0)|0|0;c=Tm(k,da(j+4|0,4,0,0)|0|0)|0;if(c)break a;i=da(j+16|0,4,0,0)|0|0;e=k+48|0;f=da(e|0,4,0,0)|0|0;d=k+56|0;if(!f){c=Np(g,e)|0;g=d;ea(g|0,0|0,4,0);ea(g+4|0,0|0,4,0);if(c)break a;f=da(e|0,4,0,0)|0|0;e=0;d=0}else{e=da(d|0,4,0,0)|0|0;d=da(d+4|0,4,0,0)|0|0}ea(j+48|0,f|0,4,0);j=j+8|0;ea(j|0,e|0,4,0);ea(j+4|0,d|0,4,0);j=iw(e|0,d|0,i|0,((i|0)<0)<<31>>31|0)|0;c=k+56|0;ea(c|0,j|0,4,0);ea(c+4|0,C|0,4,0);c=Tp(h)|0;if(c)break a}n=n+1|0}while((n|0)<(l|0));c=da(b|0,4,0,0)|0|0;o=12}else{c=l;o=12}while(0);if((o|0)==12){d=c+-1|0;b:do if((d|0)>0){h=b+12|0;i=b+8|0;f=c;e=c;g=d;while(1){c=(f|0)/2|0;if((e|0)>(c|0)){e=g-c<<1;c=e;e=e|1}else{e=g<<1;l=da(i|0,4,0,0)|0|0;c=da(l+(e<<2)|0,4,0,0)|0|0;e=da(l+((e|1)<<2)|0,4,0,0)|0|0}d=da(h|0,4,0,0)|0|0;if(da(d+(c*56|0)+24|0,4,0,0)|0){if(da(d+(e*56|0)+24|0,4,0,0)|0){l=(Vp(da(p|0,4,0,0)|0|0,da(d+(c*56|0)+32|0,4,0,0)|0|0,da(d+(c*56|0)+20|0,4,0,0)|0|0,da(d+(e*56|0)+32|0,4,0,0)|0|0,da(d+(e*56|0)+20|0,4,0,0)|0|0)|0)<1;c=l?c:e}}else c=e;ea((da(i|0,4,0,0)|0|0)+(g<<2)|0,c|0,4,0);c=g+-1|0;if((c|0)<=0)break b;e=g;f=da(b|0,4,0,0)|0|0;g=c}}while(0);c=da((da(a+12|0,4,0,0)|0|0)+7>>0|0,1,0,1)|0|0}return c|0}function Um(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;d=a+76|0;do{b=da(d|0,2,0,0)|0|0;c=da(a+(b<<2)+120|0,4,0,0)|0|0;if(da(c+5>>0|0,1,0,0)|0){b=0;break}e=da(c+56|0,4,0,0)|0|0;b=(da(a+(b<<1)+78|0,2,0,1)|0)<<1;f=da(c+64|0,4,0,0)|0|0;b=((da(f+b>>0|0,1,0,1)|0)<<8|(da(f+(b|1)>>0|0,1,0,1)|0))&(da(c+20|0,2,0,1)|0);b=qm(a,(da(e+(b+1)>>0|0,1,0,1)|0)<<16|(da(e+b>>0|0,1,0,1)|0)<<24|(da(e+(b+2)>>0|0,1,0,1)|0)<<8|(da(e+(b+3)>>0|0,1,0,1)|0))|0}while((b|0)==0);return b|0}function Vm(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;o=a+8|0;e=da((da(o|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;s=da(a+4|0,4,0,0)|0|0;q=a+12|0;c=Tp((da(q|0,4,0,0)|0|0)+(e*56|0)|0)|0;if(!c){c=da(q|0,4,0,0)|0|0;d=e|1;a=(da(a|0,4,0,0)|0|0)+e|0;a:do if((a|0)>1){h=c;l=a;g=da(c+(d*56|0)+32|0,4,0,0)|0|0;m=c+((e&65534)*56|0)|0;e=c+(d*56|0)|0;while(1){n=m+24|0;i=m;j=m+32|0;k=m+20|0;f=l;a=g;while(1){d=f;f=(f|0)/2|0;if(!(da(n|0,4,0,0)|0)){c=h;g=a;break}if(((da(e+24|0,4,0,0)|0|0)!=0?(p=Vp(s,da(j|0,4,0,0)|0|0,da(k|0,4,0,0)|0|0,a,da(e+20|0,4,0,0)|0|0)|0,(p|0)>=0):0)?!((p|0)==0&m>>>0<e>>>0):0){r=10;break}c=da(q|0,4,0,0)|0|0;a=da(o|0,4,0,0)|0|0;ea(a+(f<<2)|0,(i-c|0)/56|0|0,4,0);e=da(a+((f^1)<<2)|0,4,0,0)|0|0;if((d|0)<=3)break a;else{h=c;a=da(c+(e*56|0)+32|0,4,0,0)|0|0;e=c+(e*56|0)|0}}if((r|0)==10){r=0;c=da(q|0,4,0,0)|0|0;g=(da(n|0,4,0,0)|0|0)==0?a:0}a=da(o|0,4,0,0)|0|0;ea(a+(f<<2)|0,(e-c|0)/56|0|0,4,0);if((d|0)>3){h=c;l=f;m=c+((da(a+((f^1)<<2)|0,4,0,0)|0|0)*56|0)|0}else break}}else a=da(o|0,4,0,0)|0|0;while(0);ea(b|0,(da(c+((da(a+4|0,4,0,0)|0|0)*56|0)+24|0,4,0,0)|0|0)==0&1|0,4,0);c=da((da(s+12|0,4,0,0)|0|0)+7>>0|0,1,0,1)|0|0}return c|0}function Wm(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=a+4|0;e=da(d|0,4,0,0)|0|0;ea(e+4|0,da(a|0,4,0,0)|0|0,4,0);a=Kn(e,b,0)|0;if(!a){a=da((da(d|0,4,0,0)|0|0)+8|0,4,0,0)|0|0;if(a)do{if((da(a+72>>0|0,1,0,0)|0)&16)ea(a+73>>0|0,0|0,1,0);a=da(a+8|0,4,0,0)|0|0}while((a|0)!=0);a=Wp(e,b,0,c)|0}return a|0}function Xm(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;u=i;i=i+32|0;if((i|0)>=(j|0))ba();l=u;t=u+16|0;s=u+12|0;r=u+8|0;ea(t|0,0|0,4,0);e=da(a+12|0,4,0,0)|0|0;if(!b){b=Xp(a,c)|0;ea(s|0,b|0,4,0)}else{ea(s|0,b|0,4,0);m=(da(b+68|0,4,0,0)|0|0)+26|0;ea(m|0,(da(m|0,2,0,0)|0|0)+1<<16>>16|0,2,0)}d=Fg(da(e+68|0,4,0,0)|0|0)|0;ea(r|0,d|0,4,0);do if(!d){m=e+56|0;f=da(m|0,4,0,0)|0|0;v=f+36|0;d=f+37|0;e=f+38|0;f=f+39|0;g=(da(d>>0|0,1,0,1)|0)<<16|(da(v>>0|0,1,0,1)|0)<<24|(da(e>>0|0,1,0,1)|0)<<8|(da(f>>0|0,1,0,1)|0);k=g+1|0;ea(v>>0|0,k>>>24|0,1,0);ea(d>>0|0,k>>>16|0,1,0);ea(e>>0|0,k>>>8|0,1,0);ea(f>>0|0,k|0,1,0);k=a+22|0;if((da(k|0,2,0,0)|0)&4){if(!b){d=cl(a,c,s,0)|0;ea(r|0,d|0,4,0);if(d)break;b=da(s|0,4,0,0)|0|0}d=Fg(da(b+68|0,4,0,0)|0|0)|0;ea(r|0,d|0,4,0);if(d)break;ew(da(b+56|0,4,0,0)|0|0,0,da((da(b+52|0,4,0,0)|0|0)+32|0,4,0,0)|0|0)|0}if((da(a+17>>0|0,1,0,0)|0|0)!=0?(yp(a,c,2,0,r),h=da(r|0,4,0,0)|0|0,(h|0)!=0):0){d=h;break}if(g){e=da(m|0,4,0,0)|0|0;e=(da(e+33>>0|0,1,0,1)|0)<<16|(da(e+32>>0|0,1,0,1)|0)<<24|(da(e+34>>0|0,1,0,1)|0)<<8|(da(e+35>>0|0,1,0,1)|0);d=cl(a,e,t,0)|0;ea(r|0,d|0,4,0);if(d)break;f=da(t|0,4,0,0)|0|0;h=f+56|0;g=da(h|0,4,0,0)|0|0;g=(da(g+5>>0|0,1,0,1)|0)<<16|(da(g+4>>0|0,1,0,1)|0)<<24|(da(g+6>>0|0,1,0,1)|0)<<8|(da(g+7>>0|0,1,0,1)|0);d=(da(a+36|0,4,0,0)|0|0)>>>2;if(g>>>0>(d+-2|0)>>>0){ea(l|0,58627|0,4,0);ea(l+4|0,10788|0,4,0);ad(11,13600,l);ea(r|0,11|0,4,0);d=11;break}if(g>>>0<(d+-8|0)>>>0){d=Fg(da(f+68|0,4,0,0)|0|0)|0;ea(r|0,d|0,4,0);if(d)break;l=da(h|0,4,0,0)|0|0;m=g+1|0;ea(l+4>>0|0,m>>>24|0,1,0);ea(l+5>>0|0,m>>>16|0,1,0);ea(l+6>>0|0,m>>>8|0,1,0);ea(l+7>>0|0,m|0,1,0);m=g<<2;l=da(h|0,4,0,0)|0|0;ea(l+(m+8)>>0|0,c>>>24|0,1,0);ea(l+(m+9)>>0|0,c>>>16|0,1,0);ea(l+(m+10)>>0|0,c>>>8|0,1,0);ea(l+(m+11)>>0|0,c|0,1,0);if((((b|0)!=0?((da(k|0,2,0,0)|0)&4)==0:0)?(n=da(b+68|0,4,0,0)|0|0,o=n+24|0,p=da(o|0,2,0,1)|0|0,(p&2|0)!=0):0)?(da((da(n+16|0,4,0,0)|0|0)+96|0,4,0,0)|0|0)==0:0)ea(o|0,p|32|0,2,0);e=a+60|0;d=da(e|0,4,0,0)|0|0;do if(!d){b=da(a+44|0,4,0,0)|0|0;d=pg(512,0)|0;if(!d){ea(e|0,0|0,4,0);d=7;break}else{ew(d|0,0,512)|0;ea(d|0,b|0,4,0);ea(e|0,d|0,4,0);q=28;break}}else q=28;while(0);if((q|0)==28)if((da(d|0,4,0,0)|0|0)>>>0<c>>>0)d=0;else d=ai(d,c)|0;ea(r|0,d|0,4,0);break}}else e=0;if(!b){d=cl(a,c,s,0)|0;ea(r|0,d|0,4,0);if(d)break;b=da(s|0,4,0,0)|0|0}d=Fg(da(b+68|0,4,0,0)|0|0)|0;ea(r|0,d|0,4,0);if(!d){d=b+56|0;n=da(d|0,4,0,0)|0|0;ea(n>>0|0,e>>>24|0,1,0);ea(n+1>>0|0,e>>>16|0,1,0);ea(n+2>>0|0,e>>>8|0,1,0);ea(n+3>>0|0,e|0,1,0);d=(da(d|0,4,0,0)|0|0)+4|0;ea(d>>0|0,0|0,1,0);ea(d+1>>0|0,0|0,1,0);ea(d+2>>0|0,0|0,1,0);ea(d+3>>0|0,0|0,1,0);d=da(m|0,4,0,0)|0|0;ea(d+32>>0|0,c>>>24|0,1,0);ea(d+33>>0|0,c>>>16|0,1,0);ea(d+34>>0|0,c>>>8|0,1,0);ea(d+35>>0|0,c|0,1,0);d=0}}while(0);b=da(s|0,4,0,0)|0|0;if(b){ea(b>>0|0,0|0,1,0);Ag(da(b+68|0,4,0,0)|0|0)}b=da(t|0,4,0,0)|0|0;if(b)Ag(da(b+68|0,4,0,0)|0|0);i=u;return d|0}function Ym(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0;K=i;i=i+48|0;if((i|0)>=(j|0))ba();H=K+24|0;y=K;r=K+36|0;I=K+32|0;o=b+72|0;G=da(o|0,4,0,0)|0|0;p=da(a|0,4,0,0)|0|0;m=da(b+68|0,4,0,0)|0|0;n=p+15|0;if((da(n>>0|0,1,0,0)|0|0)!=0?(g=Fg(m)|0,(g|0)!=0):0)J=20;else J=3;a:do if((J|0)==3){h=m+24|0;l=da(h|0,2,0,0)|0|0;if((l&2)!=0?(To(m)|0)!=0:0){g=Uo(m)|0;if(g){J=20;break}l=da(h|0,2,0,0)|0|0}if((l&4)==0|(f|0)!=0)k=0;else k=da(m+20|0,4,0,0)|0|0;ea(h|0,l&65531|0,2,0);v=p+204|0;f=$b[(fa(da(8744+132|0,4,0,0)|0|0,63|0)|0)&63](da((da(v|0,4,0,0)|0|0)+40|0,4,0,0)|0|0,e,0)|0;f=hl(da(v|0,4,0,0)|0|0,e,f)|0;do if(f){ea(h|0,da(h|0,2,0,1)|0|(da(f+24|0,2,0,1)|0)&4|0,2,0);if(!(da(n>>0|0,1,0,0)|0)){ll(f);break}else{Yp(f,(da(p+24|0,4,0,0)|0|0)+1|0);break}}while(0);l=da(m+20|0,4,0,0)|0|0;Yp(m,e);So(m);if(da(n>>0|0,1,0,0)|0){Yp(f,l);Ag(f)}do if(k){g=yg(p,k,H,0)|0;if(!g){v=da(H|0,4,0,0)|0|0;u=v+24|0;ea(u|0,da(u|0,2,0,1)|0|4|0,2,0);So(v);Ag(v);break}if(k>>>0>(da(p+28|0,4,0,0)|0|0)>>>0){J=20;break a}bi(da(p+56|0,4,0,0)|0|0,k,da(p+200|0,4,0,0)|0|0);J=20;break a}while(0);ea(I|0,0|0,4,0);ea(o|0,e|0,4,0);if(c<<24>>24==1|c<<24>>24==5){g=Zp(b)|0;ea(I|0,g|0,4,0);if(!g)J=25;else break}else{f=da(b+56|0,4,0,0)|0|0;f=(da(f+1>>0|0,1,0,1)|0)<<16|(da(f>>0|0,1,0,1)|0)<<24|(da(f+2>>0|0,1,0,1)|0)<<8|(da(f+3>>0|0,1,0,1)|0);if(f){yp(a,f,4,e,I);g=da(I|0,4,0,0)|0|0;if(!g)J=25;else break}}if((J|0)==25?c<<24>>24==1:0){g=0;break}g=cl(a,d,r,0)|0;ea(I|0,g|0,4,0);if(!g){u=da(r|0,4,0,0)|0|0;v=u+68|0;g=Fg(da(v|0,4,0,0)|0|0)|0;ea(I|0,g|0,4,0);if(g){if(!u)break;Ag(da(v|0,4,0,0)|0|0);break}b:do if(c<<24>>24==4){g=da(u+56|0,4,0,0)|0|0;h=g+1|0;k=g+2|0;f=g+3|0;if(((da(h>>0|0,1,0,1)|0)<<16|(da(g>>0|0,1,0,1)|0)<<24|(da(k>>0|0,1,0,1)|0)<<8|(da(f>>0|0,1,0,1)|0)|0)==(G|0)){ea(g>>0|0,e>>>24|0,1,0);ea(h>>0|0,e>>>16|0,1,0);ea(k>>0|0,e>>>8|0,1,0);ea(f>>0|0,e|0,1,0);g=0;break}else{ea(H|0,56060|0,4,0);ea(H+4|0,10788|0,4,0);ad(11,13600,H);g=11;break}}else{s=da(u>>0|0,1,0,0)|0|0;_p(u)|0;r=da(u+18|0,2,0,0)|0|0;t=r&65535;c:do if(r<<16>>16){b=u+56|0;p=u+20|0;m=u+64|0;q=c<<24>>24==3;r=y+18|0;f=0;while(1){o=da(b|0,4,0,0)|0|0;n=f<<1;l=da(m|0,4,0,0)|0|0;n=((da(l+n>>0|0,1,0,1)|0)<<8|(da(l+(n|1)>>0|0,1,0,1)|0))&(da(p|0,2,0,1)|0);l=o+n|0;if(q){qp(u,l,y);l=da(r|0,2,0,0)|0|0;if((l<<16>>16!=0?(w=(l&65535)+n|0,x=o+(w+3)|0,x>>>0<=((da(b|0,4,0,0)|0|0)+(da(p|0,2,0,1)|0|0)|0)>>>0):0)?(z=o+w|0,A=o+(w+1)|0,B=o+(w+2)|0,((da(A>>0|0,1,0,1)|0)<<16|(da(z>>0|0,1,0,1)|0)<<24|(da(B>>0|0,1,0,1)|0)<<8|(da(x>>0|0,1,0,1)|0)|0)==(G|0)):0){l=x;g=z;h=A;k=B;J=40;break}}else{g=o+(n+1)|0;h=o+(n+2)|0;k=o+(n+3)|0;if(((da(g>>0|0,1,0,1)|0)<<16|(da(l>>0|0,1,0,1)|0)<<24|(da(h>>0|0,1,0,1)|0)<<8|(da(k>>0|0,1,0,1)|0)|0)==(G|0)){J=42;break}}f=f+1|0;if((f|0)>=(t|0))break c}if((J|0)==40){ea(g>>0|0,e>>>24|0,1,0);ea(h>>0|0,e>>>16|0,1,0);ea(k>>0|0,e>>>8|0,1,0);ea(l>>0|0,e|0,1,0);break}else if((J|0)==42){ea(l>>0|0,e>>>24|0,1,0);ea(g>>0|0,e>>>16|0,1,0);ea(h>>0|0,e>>>8|0,1,0);ea(k>>0|0,e|0,1,0);break}}else f=0;while(0);do if((f|0)==(t|0)){if(c<<24>>24==5?(F=da(u+6>>0|0,1,0,1)|0|0,B=da(u+56|0,4,0,0)|0|0,C=B+(F+8)|0,D=B+(F+9)|0,E=B+(F+10)|0,F=B+(F+11)|0,((da(D>>0|0,1,0,1)|0)<<16|(da(C>>0|0,1,0,1)|0)<<24|(da(E>>0|0,1,0,1)|0)<<8|(da(F>>0|0,1,0,1)|0)|0)==(G|0)):0){ea(C>>0|0,e>>>24|0,1,0);ea(D>>0|0,e>>>16|0,1,0);ea(E>>0|0,e>>>8|0,1,0);ea(F>>0|0,e|0,1,0);break}ea(H|0,56094|0,4,0);ea(H+4|0,10788|0,4,0);ad(11,13600,H);g=11;break b}while(0);ea(u>>0|0,s|0,1,0);g=0}while(0);ea(I|0,g|0,4,0);if(u)Ag(da(v|0,4,0,0)|0|0);if(!g){yp(a,e,c,d,I);g=da(I|0,4,0,0)|0|0}}}while(0);if((J|0)==20)ea(I|0,g|0,4,0);i=K;return g|0}function Zm(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;Sm(da(g|0,4,0,0)|0|0);ea(g|0,0|0,4,0);g=b+59|0;if(da(g>>0|0,1,0,0)|0){h=0;do{d=b+(h<<6)+76|0;lg(a,da(d|0,4,0,0)|0|0);ea(d|0,0|0,4,0);d=b+(h<<6)+80|0;e=da(d|0,4,0,0)|0|0;if(e)do{f=e;e=da(e+4|0,4,0,0)|0|0;if(f)Vc(f)}while((e|0)!=0);ea(d|0,0|0,4,0);e=b+(h<<6)+96|0;d=da(e|0,4,0,0)|0|0;if(d){f=da(d|0,4,0,0)|0|0;if(f){kc[(fa(da(f+4|0,4,0,0)|0|0,127|0)|0)&127](d)|0;ea(d|0,0|0,4,0)}Vc(d);ea(e|0,0|0,4,0);d=b+(h<<6)+104|0;ea(d|0,0|0,4,0);ea(d+4|0,0|0,4,0)}f=b+(h<<6)+112|0;e=da(f|0,4,0,0)|0|0;if(e){d=da(e|0,4,0,0)|0|0;if(d){kc[(fa(da(d+4|0,4,0,0)|0|0,127|0)|0)&127](e)|0;ea(e|0,0|0,4,0)}Vc(e);ea(f|0,0|0,4,0);d=b+(h<<6)+120|0;ea(d|0,0|0,4,0);ea(d+4|0,0|0,4,0)}h=h+1|0}while((h|0)<(da(g>>0|0,1,0,1)|0|0))}e=b+36|0;if((da(b+40|0,4,0,0)|0|0)==0?(c=da(e|0,4,0,0)|0|0,(c|0)!=0):0)do{d=c;c=da(c+4|0,4,0,0)|0|0;if(d)Vc(d)}while((c|0)!=0);ea(e|0,0|0,4,0);ea(b+44|0,0|0,4,0);ea(b+56>>0|0,0|0,1,0);ea(b+48|0,0|0,4,0);ea(b+8|0,0|0,4,0);c=b+32|0;lg(a,da(c|0,4,0,0)|0|0);ea(c|0,0|0,4,0);return}function _m(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,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();f=o+4|0;m=o;n=da(a|0,4,0,0)|0|0;g=da(a+8|0,4,0,0)|0|0;h=da(n+16|0,4,0,0)|0|0;k=(da(h+(g<<4)+12|0,4,0,0)|0|0)+78|0;ea(k|0,(da(k|0,2,0,1)|0)&65531|0,2,0);k=n+65|0;do if(!(da(k>>0|0,1,0,0)|0))if(c){l=c+4|0;b=da(l|0,4,0,0)|0|0;if(!b){$p(a,da(c|0,4,0,0)|0|0,0);d=0;break}d=c+8|0;e=da(d|0,4,0,0)|0|0;if((e|0)!=0?(da(e>>0|0,1,0,0)|0|0)!=0:0){l=n+144|0;ea(l>>0|0,g|0,1,0);ea(f|0,0|0,4,0);Cn(b,f)|0;d=da(d|0,4,0,0)|0|0;ea(n+140|0,da(f|0,4,0,0)|0|0,4,0);b=n+146|0;ea(b>>0|0,0|0,1,0);hh(n,d,-1,0,0,m,0)|0;d=da(n+52|0,4,0,0)|0|0;ea(l>>0|0,0|0,1,0);do if((d|0)!=0?(da(b>>0|0,1,0,0)|0|0)==0:0){ea(a+12|0,d|0,4,0);if((d|0)==9)break;else if((d|0)==7){ea(k>>0|0,1|0,1,0);break}if((d&255|0)!=6){l=da(c|0,4,0,0)|0|0;$p(a,l,Re(n)|0)}}while(0);ld(da(m|0,4,0,0)|0|0)|0;d=0;break}b=da(c|0,4,0,0)|0|0;if(!b){$p(a,0,0);d=0;break}b=aq(n,b,da(h+(g<<4)|0,4,0,0)|0|0)|0;if((b|0)!=0?(Cn(da(l|0,4,0,0)|0|0,b+40|0)|0)==0:0){$p(a,da(c|0,4,0,0)|0|0,13528);d=0}else d=0}else d=0;else{$p(a,da(c|0,4,0,0)|0|0,0);d=1}while(0);i=o;return d|0}function $m(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();g=k;h=k+8|0;f=a+16|0;d=da(f|0,4,0,0)|0|0;e=da((da(d+(b<<4)+12|0,4,0,0)|0|0)+32|0,4,0,0)|0|0;if(e){d=e;do{bq(da(d+8|0,4,0,0)|0|0);d=da(d|0,4,0,0)|0|0}while((d|0)!=0);d=da(f|0,4,0,0)|0|0}ea(h|0,a|0,4,0);d=da(d+(b<<4)|0,4,0,0)|0|0;ea(h+4|0,d|0,4,0);do if(!(Zh(a,13384,d)|0))c=1;else{ea(g|0,d|0,4,0);d=th(a,13400,g)|0;if((d|0)!=0?(c=Pe(a,d,23,h,0)|0,lg(a,d),(c|0)!=7):0)break;ea(a+65>>0|0,1|0,1,0);c=7}while(0);i=k;return c|0}function an(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;g=da(a+12|0,4,0,0)|0|0;if(!g){e=a+4|0;d=a+8|0;f=0}else{e=da(b>>0|0,1,0,0)|0|0;if(!(e<<24>>24))e=0;else{d=b;f=e;e=0;do{d=d+1|0;e=e<<3^e^(da(9328+(f&255)>>0|0,1,0,1)|0|0);f=da(d>>0|0,1,0,0)|0|0}while(f<<24>>24!=0)}f=(e>>>0)%((da(a|0,4,0,0)|0|0)>>>0)|0;e=g+(f<<3)|0;d=g+(f<<3)+4|0}e=da(e|0,4,0,0)|0|0;d=da(d|0,4,0,0)|0|0;ea(c|0,f|0,4,0);a:do if(!e)d=0;else while(1){e=e+-1|0;if(!(cd(da(d+12|0,4,0,0)|0|0,b)|0))break a;if(!e){d=0;break}else d=da(d|0,4,0,0)|0|0}while(0);return d|0}function bn(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();q=r;p=r+12|0;a:do if((d|0)>0){n=a+16|0;o=a+4|0;m=(b|0)==0;e=c;b=d;while(1){h=b+-1|0;if(!(da(n|0,4,0,0)|0))break a;if((e|0)<1){e=b;b=5;break}if(dq(a,e)|0)break a;if(yg(da(o|0,4,0,0)|0|0,e,p,0)|0){b=8;break}k=da(p|0,4,0,0)|0|0;l=da(k+4|0,4,0,0)|0|0;do if(m)if((h|0)>0?(da((da(a|0,4,0,0)|0|0)+17>>0|0,1,0,0)|0|0)!=0:0){cn(a,(da(l+1>>0|0,1,0,1)|0)<<16|(da(l>>0|0,1,0,1)|0)<<24|(da(l+2>>0|0,1,0,1)|0)<<8|(da(l+3>>0|0,1,0,1)|0),4,e);b=h}else b=h;else{g=(da(l+5>>0|0,1,0,1)|0)<<16|(da(l+4>>0|0,1,0,1)|0)<<24|(da(l+6>>0|0,1,0,1)|0)<<8|(da(l+7>>0|0,1,0,1)|0);f=da(a|0,4,0,0)|0|0;if(da(f+17>>0|0,1,0,0)|0){cn(a,e,2,0);f=da(a|0,4,0,0)|0|0}if((g|0)>(((da(f+36|0,4,0,0)|0|0)/4|0)+-2|0)){ea(q|0,e|0,4,0);en(a,44640,q);b=b+-2|0;break}b:do if((g|0)>0){b=0;while(1){e=b<<2;e=(da(l+(e+9)>>0|0,1,0,1)|0)<<16|(da(l+(e+8)>>0|0,1,0,1)|0)<<24|(da(l+(e+10)>>0|0,1,0,1)|0)<<8|(da(l+(e+11)>>0|0,1,0,1)|0);if(da(f+17>>0|0,1,0,0)|0)cn(a,e,2,0);dq(a,e)|0;b=b+1|0;if((b|0)==(g|0))break b;f=da(a|0,4,0,0)|0|0}}while(0);b=h-g|0}while(0);e=(da(l+1>>0|0,1,0,1)|0)<<16|(da(l>>0|0,1,0,1)|0)<<24|(da(l+2>>0|0,1,0,1)|0)<<8|(da(l+3>>0|0,1,0,1)|0);if(k)Ag(k);if((b|0)<=0)break a}if((b|0)==5){ea(q|0,e|0,4,0);ea(q+4|0,d|0,4,0);ea(q+8|0,c|0,4,0);en(a,44552,q);break}else if((b|0)==8){ea(q|0,e|0,4,0);en(a,44616,q);break}}while(0);i=r;return}function cn(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,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))ba();h=l;f=l+24|0;g=l+20|0;e=gp(da(a|0,4,0,0)|0|0,b,f,g)|0;if((e|0)==7|(e|0)==3082){ea(a+24|0,1|0,4,0);k=3}else if(!e){f=da(f>>0|0,1,0,0)|0|0;e=da(g|0,4,0,0)|0|0;if(!((e|0)==(d|0)?f<<24>>24==c<<24>>24:0)){ea(h|0,b|0,4,0);ea(h+4|0,c&255|0,4,0);ea(h+8|0,d|0,4,0);ea(h+12|0,f&255|0,4,0);ea(h+16|0,e|0,4,0);en(a,44496,h)}}else k=3;if((k|0)==3){ea(h|0,b|0,4,0);en(a,44464,h)}i=l;return}function dn(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0;U=i;i=i+64|0;if((i|0)>=(j|0))ba();N=U+40|0;h=U+56|0;I=U+32|0;J=U+24|0;F=U;S=I;ea(S|0,0|0,4,0);ea(S+4|0,0|0,4,0);S=J;ea(S|0,0|0,4,0);ea(S+4|0,0|0,4,0);S=a+28|0;T=da(S|0,4,0,0)|0|0;O=a+32|0;P=da(O|0,4,0,0)|0|0;Q=a+36|0;R=da(Q|0,4,0,0)|0|0;K=da(a|0,4,0,0)|0|0;E=K+36|0;L=da(E|0,4,0,0)|0|0;if((b|0)!=0?(dq(a,b)|0)==0:0){ea(S|0,43768|0,4,0);ea(O|0,b|0,4,0);k=cl(K,b,h,0)|0;do if(!k){M=da(h|0,4,0,0)|0|0;ea(M>>0|0,0|0,1,0);k=_p(M)|0;if(k){ea(N|0,k|0,4,0);en(a,43824,N);if(!M){e=-1;break}Ag(da(M+68|0,4,0,0)|0|0);e=-1;break}r=a+16|0;G=M+18|0;k=da(G|0,2,0,0)|0|0;a:do if(!(k<<16>>16)){l=M+5|0;k=0;e=0}else{s=M+56|0;t=M+20|0;u=M+64|0;v=F+12|0;w=M+2|0;x=F+16|0;y=L+-5|0;z=L+-4|0;A=K+17|0;B=M+5|0;o=0;p=0;while(1){if(!(da(r|0,4,0,0)|0)){l=B;e=o;break a}ea(S|0,43864|0,4,0);ea(O|0,b|0,4,0);ea(Q|0,p|0,4,0);h=da(s|0,4,0,0)|0|0;k=p<<1;l=da(u|0,4,0,0)|0|0;k=((da(l+k>>0|0,1,0,1)|0)<<8|(da(l+(k|1)>>0|0,1,0,1)|0))&(da(t|0,2,0,1)|0);l=h+k|0;qp(M,l,F);m=da(v|0,4,0,0)|0|0;if(da(w>>0|0,1,0,0)|0){e=F;q=da(e|0,4,0,0)|0|0;e=da(e+4|0,4,0,0)|0|0;if(p){g=J;f=da(g|0,4,0,0)|0|0;g=da(g+4|0,4,0,0)|0|0;if(!((e|0)>(g|0)|(e|0)==(g|0)&q>>>0>f>>>0)){n=N;ea(n|0,q|0,4,0);ea(n+4|0,e|0,4,0);n=N+8|0;ea(n|0,f|0,4,0);ea(n+4|0,g|0,4,0);en(a,43896,N)}}else{f=J;ea(f|0,q|0,4,0);ea(f+4|0,e|0,4,0);f=I;ea(f|0,q|0,4,0);ea(f+4|0,e|0,4,0)}f=J;ea(f|0,q|0,4,0);ea(f+4|0,e|0,4,0)}q=da(x|0,4,0,0)|0|0;e=q&65535;if(m>>>0>e>>>0?(C=(q>>>16)+k|0,D=h+C|0,D>>>0<=((da(s|0,4,0,0)|0|0)+(da(E|0,4,0,0)|0|0)|0)>>>0):0){q=(da(h+(C+1)>>0|0,1,0,1)|0)<<16|(da(D>>0|0,1,0,1)|0)<<24|(da(h+(C+2)>>0|0,1,0,1)|0)<<8|(da(h+(C+3)>>0|0,1,0,1)|0);if(da(A>>0|0,1,0,0)|0)cn(a,q,3,b);bn(a,0,q,((y+m-e|0)>>>0)/(z>>>0)|0)}if(!(da(B>>0|0,1,0,0)|0)){n=(da(h+(k+1)>>0|0,1,0,1)|0)<<16|(da(l>>0|0,1,0,1)|0)<<24|(da(h+(k+2)>>0|0,1,0,1)|0)<<8|(da(h+(k+3)>>0|0,1,0,1)|0);if(da(A>>0|0,1,0,0)|0)cn(a,n,5,b);e=dn(a,n,I,(p|0)==0?0:J)|0;if(!((p|0)<1|(e|0)==(o|0)))en(a,43944,N)}else e=o;p=p+1|0;k=da(G|0,2,0,0)|0|0;if((p|0)>=(k&65535|0)){l=B;break}else o=e}}while(0);if(!(da(l>>0|0,1,0,0)|0)){h=da(M+6>>0|0,1,0,1)|0|0;B=da(M+56|0,4,0,0)|0|0;h=(da(B+(h+9)>>0|0,1,0,1)|0)<<16|(da(B+(h+8)>>0|0,1,0,1)|0)<<24|(da(B+(h+10)>>0|0,1,0,1)|0)<<8|(da(B+(h+11)>>0|0,1,0,1)|0);ea(S|0,43976|0,4,0);ea(O|0,b|0,4,0);if(da(K+17>>0|0,1,0,0)|0){cn(a,h,5,b);k=da(G|0,2,0,0)|0|0}dn(a,h,0,k<<16>>16!=0?J:0)|0;B=da(l>>0|0,1,0,0)|0|0;ea(S|0,43768|0,4,0);ea(O|0,b|0,4,0);if(B<<24>>24)H=34}else{ea(S|0,43768|0,4,0);ea(O|0,b|0,4,0);H=34}do if((H|0)==34?(da(M+2>>0|0,1,0,0)|0|0)!=0:0){h=(d|0)!=0;if(!c){if(!h)break;h=I;k=da(h|0,4,0,0)|0|0;h=da(h+4|0,4,0,0)|0|0;f=d;g=da(f|0,4,0,0)|0|0;f=da(f+4|0,4,0,0)|0|0;if((h|0)>(f|0)|(h|0)==(f|0)&k>>>0>g>>>0)break;B=N;ea(B|0,k|0,4,0);ea(B+4|0,h|0,4,0);B=N+8|0;ea(B|0,g|0,4,0);ea(B+4|0,f|0,4,0);en(a,44200,N);break}if(!h){k=J;h=da(k|0,4,0,0)|0|0;k=da(k+4|0,4,0,0)|0|0;f=c;g=da(f|0,4,0,0)|0|0;f=da(f+4|0,4,0,0)|0|0;if(!((k|0)>(f|0)|(k|0)==(f|0)&h>>>0>g>>>0))break;B=N;ea(B|0,h|0,4,0);ea(B+4|0,k|0,4,0);B=N+8|0;ea(B|0,g|0,4,0);ea(B+4|0,f|0,4,0);en(a,44008,N);break}h=I;k=da(h|0,4,0,0)|0|0;h=da(h+4|0,4,0,0)|0|0;f=c;g=da(f|0,4,0,0)|0|0;f=da(f+4|0,4,0,0)|0|0;if(!((h|0)>(f|0)|(h|0)==(f|0)&k>>>0>g>>>0)){B=N;ea(B|0,k|0,4,0);ea(B+4|0,h|0,4,0);B=N+8|0;ea(B|0,g|0,4,0);ea(B+4|0,f|0,4,0);en(a,44072,N)}g=J;f=da(g|0,4,0,0)|0|0;g=da(g+4|0,4,0,0)|0|0;h=d;k=da(h|0,4,0,0)|0|0;h=da(h+4|0,4,0,0)|0|0;if((g|0)>(h|0)|(g|0)==(h|0)&f>>>0>k>>>0){B=N;ea(B|0,f|0,4,0);ea(B+4|0,g|0,4,0);g=N+8|0;ea(g|0,k|0,4,0);ea(g+4|0,h|0,4,0);en(a,44136,N);g=J;f=da(g|0,4,0,0)|0|0;g=da(g+4|0,4,0,0)|0|0}B=c;ea(B|0,f|0,4,0);ea(B+4|0,g|0,4,0)}while(0);o=da(M+56|0,4,0,0)|0|0;p=da(M+6>>0|0,1,0,1)|0|0;q=Fo(da(K+32|0,4,0,0)|0|0)|0;ea(S|0,0|0,4,0);if(q){n=(((da(o+(p+5)>>0|0,1,0,1)|0)<<8|(da(o+(p+6)>>0|0,1,0,1)|0))+65535&65535)+1|0;ew(q+n|0,0,L-n|0)|0;ew(q|0,1,n|0)|0;n=(da(o+(p+3)>>0|0,1,0,1)|0)<<8|(da(o+(p+4)>>0|0,1,0,1)|0);g=p+12-((da(l>>0|0,1,0,1)|0)<<2)|0;if(n){f=L+-4|0;m=0;do{l=g+(m<<1)|0;l=(da(o+l>>0|0,1,0,1)|0)<<8|(da(o+(l+1)>>0|0,1,0,1)|0);if((l|0)>(f|0))h=65536;else h=(Kp(M,o+l|0)|0)&65535;k=h+l|0;if((k|0)<=(L|0)){if(h)do{k=k+-1|0;B=q+k|0;ea(B>>0|0,(da(B>>0|0,1,0,0)|0|0)+1<<24>>24|0,1,0)}while((k|0)>(l|0))}else{ea(S|0,0|0,4,0);ea(N|0,m|0,4,0);ea(N+4|0,b|0,4,0);en(a,44264,N)}m=m+1|0}while((m|0)<(n|0))}f=(da(o+(p+1)>>0|0,1,0,1)|0)<<8|(da(o+(p+2)>>0|0,1,0,1)|0);if(f)do{g=(da(o+(f+2)>>0|0,1,0,1)|0)<<8|(da(o+(f+3)>>0|0,1,0,1)|0);if(g){g=g+f|0;do{g=g+-1|0;B=q+g|0;ea(B>>0|0,(da(B>>0|0,1,0,0)|0|0)+1<<24>>24|0,1,0)}while((g|0)>(f|0))}f=(da(o+f>>0|0,1,0,1)|0)<<8|(da(o+(f+1)>>0|0,1,0,1)|0)}while((f|0)!=0);b:do if((L|0)>0){g=0;f=0;while(1){h=da(q+f>>0|0,1,0,0)|0|0;if(h<<24>>24){if(h<<24>>24>1)break}else g=g+1|0;f=f+1|0;if((f|0)>=(L|0))break b}ea(N|0,f|0,4,0);ea(N+4|0,b|0,4,0);en(a,44312,N)}else g=0;while(0);f=da(o+(p+7)>>0|0,1,0,1)|0|0;if((g|0)!=(f|0)){ea(N|0,g|0,4,0);ea(N+4|0,f|0,4,0);ea(N+8|0,b|0,4,0);en(a,44352,N)}}else ea(a+24|0,1|0,4,0);_k(q);if(M)Ag(da(M+68|0,4,0,0)|0|0)}else{ea(N|0,k|0,4,0);en(a,43784,N);e=-1}while(0);ea(S|0,T|0,4,0);ea(O|0,P|0,4,0);ea(Q|0,R|0,4,0);e=e+1|0}else e=0;i=U;return e|0}function en(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+224|0;if((i|0)>=(j|0))ba();f=k;g=k+8|0;h=k+24|0;d=a+16|0;e=da(d|0,4,0,0)|0|0;if(e){ea(d|0,e+-1|0,4,0);d=a+20|0;ea(d|0,(da(d|0,4,0,0)|0|0)+1|0,4,0);ea(g|0,c|0,4,0);c=a+40|0;if(da(a+52|0,4,0,0)|0)Rk(c,43760,1);d=da(a+28|0,4,0,0)|0|0;if(d){e=da(a+36|0,4,0,0)|0|0;ea(f|0,da(a+32|0,4,0,0)|0|0,4,0);ea(f+4|0,e|0,4,0);$c(200,h,d,f)|0;d=h;while(1)if(!(da(d>>0|0,1,0,0)|0))break;else d=d+1|0;Rk(c,h,d-h&1073741823)}rg(c,1,b,g);if((da(a+65>>0|0,1,0,0)|0|0)==1)ea(a+24|0,1|0,4,0)}i=k;return}function fn(a){a=a|0;var b=0,c=0;b=a+8|0;c=da(b|0,4,0,0)|0|0;do if((c|0)!=(da(a+4|0,4,0,0)|0|0))if((da(a+24>>0|0,1,0,0)|0|0)==1){lg(da(a|0,4,0,0)|0|0,c);break}else{Vc(c);break}while(0);ea(b|0,0|0,4,0);return}function gn(a){a=a|0;var b=0,c=0,d=0,e=0;c=da(a+32|0,4,0,0)|0|0;e=a+8|0;if(!(((da(e|0,2,0,0)|0)&9312)==0?(da(a+24|0,4,0,0)|0|0)==0:0))Pg(a);b=lh(c,64,0)|0;d=a+20|0;ea(d|0,b|0,4,0);if(!(da(c+65>>0|0,1,0,0)|0)){do if(!c)b=kc[(fa(da(8744+48|0,4,0,0)|0|0,127|0)|0)&127](b)|0;else{if((da(c+276|0,4,0,0)|0|0)>>>0<=b>>>0?(da(c+280|0,4,0,0)|0|0)>>>0>b>>>0:0){b=da(c+248|0,2,0,1)|0|0;break}b=kc[(fa(da(8744+48|0,4,0,0)|0|0,127|0)|0)&127](b)|0}while(0);ea(a+24|0,b|0,4,0);d=da(d|0,4,0,0)|0|0;ea(d|0,0|0,4,0);ea(d+4|0,c|0,4,0);ea(d+8|0,0|0,4,0);ea(d+12|0,0|0,4,0);ea(d+20|0,0|0,4,0);ea(d+16|0,d+32|0,4,0);ea(d+24|0,(b+1048544|0)>>>4|0,2,0);ea(d+26|0,1|0,2,0);ea(d+28|0,0|0,4,0);ea(a|0,d|0,4,0);ea(e|0,32|0,2,0)}else{ea(e|0,1|0,2,0);ea(a+24|0,0|0,4,0)}return}function hn(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;g=nn(a)|0;if(g){h=g;ea(h|0,b|0,4,0);ea(h+4|0,c|0,4,0);ea(g+8|0,0|0,4,0);h=a+12|0;f=da(h|0,4,0,0)|0|0;if(!f)ea(a+8|0,g|0,4,0);else{a=a+26|0;d=da(a|0,2,0,1)|0|0;if((d&1|0)!=0?(e=f,i=da(e+4|0,4,0,0)|0|0,!((i|0)<(c|0)|((i|0)==(c|0)?(da(e|0,4,0,0)|0|0)>>>0<b>>>0:0))):0)ea(a|0,d&65534|0,2,0);ea(f+8|0,g|0,4,0)}ea(h|0,g|0,4,0)}return}function jn(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;g=i;i=i+160|0;if((i|0)>=(j|0))ba();f=g;ew(f|0,0,160)|0;a:do if(!a){a=0;b=0}else{b=0;while(1){c=a+8|0;e=da(c|0,4,0,0)|0|0;ea(c|0,0|0,4,0);if(!b)b=f;else{c=b;b=f;d=0;do{a=ln(c,a)|0;ea(b|0,0|0,4,0);d=d+1|0;b=f+(d<<2)|0;c=da(b|0,4,0,0)|0|0}while((c|0)!=0)}ea(b|0,a|0,4,0);if(!e){a=0;b=0;break a}a=e;b=da(f|0,4,0,0)|0|0}}while(0);do{a=ln(a,da(f+(b<<2)|0,4,0,0)|0|0)|0;b=b+1|0}while((b|0)!=40);i=g;return a|0}function kn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();d=f;e=da(a+12|0,4,0,0)|0|0;if(!e)ea(b|0,a|0,4,0);else{kn(e,b,d);ea((da(d|0,4,0,0)|0|0)+8|0,a|0,4,0)}d=a+8|0;e=da(d|0,4,0,0)|0|0;if(!e)ea(c|0,a|0,4,0);else kn(e,d,c);i=f;return}function ln(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;c=(a|0)!=0;a:do if(c&(b|0)!=0){d=a;a=k;while(1){g=d;f=da(g|0,4,0,0)|0|0;g=da(g+4|0,4,0,0)|0|0;while(1){e=b;c=da(e|0,4,0,0)|0|0;e=da(e+4|0,4,0,0)|0|0;if((g|0)<(e|0)|(g|0)==(e|0)&f>>>0<c>>>0){h=4;break}if(!((e|0)<(g|0)|(e|0)==(g|0)&c>>>0<f>>>0))break;ea(a+8|0,b|0,4,0);c=da(b+8|0,4,0,0)|0|0;if(!c){e=0;c=1;break a}else{a=b;b=c}}if((h|0)==4){h=0;ea(a+8|0,d|0,4,0);a=d}d=da(d+8|0,4,0,0)|0|0;c=(d|0)!=0;if(!(c&(b|0)!=0)){e=b;b=a;break}}}else{e=b;d=a;b=k}while(0);ea(b+8|0,(c?d:e)|0,4,0);i=l;return da(k+8|0,4,0,0)|0|0}function mn(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();d=e;c=a+8|0;b=da(c|0,4,0,0)|0|0;ea(d|0,b|0,4,0);ea(c|0,0|0,4,0);ea(a+12|0,0|0,4,0);if(!b)b=a;else{c=1;while(1){f=b+8|0;ea(d|0,da(f|0,4,0,0)|0|0,4,0);ea(b+12|0,a|0,4,0);ea(f|0,eq(d,c)|0|0,4,0);a=da(d|0,4,0,0)|0|0;if(!a)break;else{f=b;b=a;c=c+1|0;a=f}}}i=e;return b|0}function nn(a){a=a|0;var b=0,c=0,d=0,e=0;d=a+24|0;b=da(d|0,2,0,0)|0|0;if(!(b<<16>>16)){b=lh(da(a+4|0,4,0,0)|0|0,1016,0)|0;if(!b)b=0;else{ea(b|0,da(a|0,4,0,0)|0|0,4,0);ea(a|0,b|0,4,0);b=b+8|0;ea(a+16|0,b|0,4,0);ea(d|0,63|0,2,0);c=62;e=5}}else{c=b+-1<<16>>16;b=da(a+16|0,4,0,0)|0|0;e=5}if((e|0)==5){ea(d|0,c|0,2,0);ea(a+16|0,b+16|0,4,0)}return b|0}function on(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;d=a+4|0;if(da(d>>0|0,1,0,0)|0){b=pn(a)|0;if(!b){h=da(d>>0|0,1,0,0)|0|0;c=4}}else{h=0;c=4}do if((c|0)==4){e=da(a|0,4,0,0)|0|0;k=da(a+60|0,4,0,0)|0|0;f=da(a+212|0,4,0,0)|0|0;b=a+160|0;c=da(b|0,4,0,0)|0|0;b=da(b+4|0,4,0,0)|0|0;g=a+208|0;ea(g|0,0|0,4,0);d=(da(e+4|0,4,0,0)|0|0)+112|0;l=pg(d,0)|0;if(!l)b=7;else{ew(l|0,0,d|0)|0;ea(l|0,e|0,4,0);o=l+112|0;d=l+8|0;ea(d|0,o|0,4,0);ea(l+4|0,k|0,4,0);ea(l+40|0,-1|0,2,0);a=l+16|0;ea(a|0,c|0,4,0);ea(a+4|0,b|0,4,0);ea(l+100|0,f|0,4,0);a=l+48|0;ea(a>>0|0,1|0,1,0);c=l+49|0;ea(c>>0|0,1|0,1,0);ea(l+43>>0|0,(h<<24>>24!=0?2:0)|0,1,0);ea(m|0,524294|0,4,0);b=sc[(fa(da(e+24|0,4,0,0)|0|0,31|0)|0)&31](e,f,o,524294,m)|0;if(b){fq(l,0);c=da(d|0,4,0,0)|0|0;d=da(c|0,4,0,0)|0|0;if(d){kc[(fa(da(d+4|0,4,0,0)|0|0,127|0)|0)&127](c)|0;ea(c|0,0|0,4,0)}Vc(l);break}if((da(m|0,4,0,0)|0)&1)ea(l+46>>0|0,1|0,1,0);d=kc[(fa(da((da(k|0,4,0,0)|0|0)+48|0,4,0,0)|0|0,127|0)|0)&127](k)|0;if(d&1024)ea(a>>0|0,0|0,1,0);if(d&4096)ea(c>>0|0,0|0,1,0);ea(g|0,l|0,4,0);b=0}}while(0);i=n;return b|0}function pn(a){a=a|0;var b=0,c=0,d=0;d=el(a,4)|0;if((d|0)!=0?(b=da(a+60|0,4,0,0)|0|0,c=da(b|0,4,0,0)|0|0,(c|0)!=0):0){if(!(da(a+13>>0|0,1,0,0)|0))qc[(fa(da(c+32|0,4,0,0)|0|0,127|0)|0)&127](b,1)|0;b=a+17|0;if((da(b>>0|0,1,0,0)|0|0)!=5)ea(b>>0|0,1|0,1,0)}return d|0}function qn(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,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;if(!a)e=0;else{g=a+4|0;e=da(g|0,4,0,0)|0|0;e=qc[(fa(da((da(e|0,4,0,0)|0|0)+28|0,4,0,0)|0|0,127|0)|0)&127](e,4)|0;if(!e){f=a+43|0;if(!(da(f>>0|0,1,0,0)|0))ea(f>>0|0,1|0,1,0);e=Sn(a,0,0,0,b,c,d,0,0)|0;if(!e){ea(h|0,-1|0,4,0);e=da(g|0,4,0,0)|0|0;$b[(fa(da((da(e|0,4,0,0)|0|0)+40|0,4,0,0)|0|0,63|0)|0)&63](e,10,h)|0;if((da(h|0,4,0,0)|0|0)==1){e=a+16|0;b=da(e+4|0,4,0,0)|0|0;if((b|0)>-1|(b|0)==-1&(da(e|0,4,0,0)|0|0)>>>0>4294967295){Yo(a,0,0);c=0;e=0}else{c=0;e=0}}else{c=1;e=0}}else c=0}else c=0;fq(a,c);b=da(a+8|0,4,0,0)|0|0;f=da(b|0,4,0,0)|0|0;if(f){kc[(fa(da(f+4|0,4,0,0)|0|0,127|0)|0)&127](b)|0;ea(b|0,0|0,4,0)}if(c){b=da(3164*4|0,4,0,0)|0|0;if(b)mc[(fa(b|0,3|0)|0)&3]();b=da(a|0,4,0,0)|0|0;$b[(fa(da(b+28|0,4,0,0)|0|0,63|0)|0)&63](b,da(a+100|0,4,0,0)|0|0,0)|0;b=da(3166*4|0,4,0,0)|0|0;if(b)mc[(fa(b|0,3|0)|0)&3]()}Vc(da(a+32|0,4,0,0)|0|0);Vc(a)}i=k;return e|0}function rn(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=da(h>>0|0,1,0,0)|0|0;if(!((da(a+15>>0|0,1,0,0)|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)?(ea(h>>0|0,b|0,1,0),(da(a+4>>0|0,1,0,0)|0|0)==0&(c&5|0)==1&(b&1|0)==0):0){c=da(a+64|0,4,0,0)|0|0;d=da(c|0,4,0,0)|0|0;if(d){kc[(fa(da(d+4|0,4,0,0)|0|0,127|0)|0)&127](c)|0;ea(c|0,0|0,4,0)}g=a+17|0;if((da(g>>0|0,1,0,1)|0|0)>1){c=da(a|0,4,0,0)|0|0;$b[(fa(da(c+28|0,4,0,0)|0|0,63|0)|0)&63](c,da(a+172|0,4,0,0)|0|0,0)|0;break}d=a+16|0;c=da(d>>0|0,1,0,0)|0|0;f=c<<24>>24==0;if(f){b=bl(a)|0;e=da(d>>0|0,1,0,0)|0|0}else{e=c;b=0}if(e<<24>>24==1)b=el(a,2)|0;if((b|0)==0?(d=da(a|0,4,0,0)|0|0,$b[(fa(da(d+28|0,4,0,0)|0|0,63|0)|0)&63](d,da(a+172|0,4,0,0)|0|0,0)|0,c<<24>>24==1):0){d=da(a+60|0,4,0,0)|0|0;c=da(d|0,4,0,0)|0|0;if(!c)break;if(!(da(a+13>>0|0,1,0,0)|0))qc[(fa(da(c+32|0,4,0,0)|0|0,127|0)|0)&127](d,1)|0;if((da(g>>0|0,1,0,0)|0|0)==5)break;ea(g>>0|0,1|0,1,0);break}if(f)Mo(a)}while(0);return da(h>>0|0,1,0,1)|0|0}function sn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;d=f+4|0;do if(c)if(!(hh(a,c,-1,0,0,d,0)|0)){d=da(d|0,4,0,0)|0|0;Rd(d)|0;a=gq(a,d,b)|0;break}else{ch(b,a,Re(a)|0,e);a=Mf(a)|0;break}else a=7;while(0);i=f;return a|0}function tn(a){a=a|0;var b=0;ea((da(a+4|0,4,0,0)|0|0)+4|0,da(a|0,4,0,0)|0|0,4,0);b=Jg(a,0)|0;if(!b)b=Ig(a,0)|0;return b|0}function un(a,b){a=a|0;b=b|0;var c=0,d=0;c=da(a+4|0,4,0,0)|0|0;ea(c+4|0,da(a|0,4,0,0)|0|0,4,0);a=b&255;if((da(c+22|0,2,0,0)|0)&2){b=c+17|0;if(((a|0)!=0|0)==(da(b>>0|0,1,0,1)|0|0|0))d=4;else b=8}else{b=c+17|0;d=4}if((d|0)==4){ea(b>>0|0,(a|0)!=0&1|0,1,0);ea(c+18>>0|0,(a|0)==2&1|0,1,0);b=0}return b|0}function vn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();d=f;c=hh(a,c,-1,0,0,d,0)|0;do if(!c){d=da(d|0,4,0,0)|0|0;while(1){if((Rd(d)|0)!=100){e=6;break}c=sn(a,b,ee(d,0)|0)|0;if(c){e=5;break}}if((e|0)==5){gq(a,d,b)|0;break}else if((e|0)==6){c=gq(a,d,b)|0;break}}while(0);i=f;return c|0}function wn(a){a=a|0;var b=0;b=a+100|0;ea(b|0,(da(b|0,4,0,0)|0|0)+1|0,4,0);b=da(a+88|0,4,0,0)|0|0;if(b)do{ea(b+16|0,1|0,4,0);b=da(b+44|0,4,0,0)|0|0}while((b|0)!=0);cp(da(a+204|0,4,0,0)|0|0,0);return}function xn(a){a=a|0;var b=0,c=0,d=0;d=a+304|0;b=da(d|0,4,0,0)|0|0;if(!((b|0)%5|0)){b=(b<<2)+20|0;c=a+328|0;b=qo(a,da(c|0,4,0,0)|0|0,b,((b|0)<0)<<31>>31)|0;if(!b)b=7;else{a=b+((da(d|0,4,0,0)|0)<<2)|0;ea(a+0|0,0|0,4,0);ea(a+4|0,0|0,4,0);ea(a+8|0,0|0,4,0);ea(a+12|0,0|0,4,0);ea(a+16|0,0|0,4,0);ea(c|0,b|0,4,0);b=0}}else b=0;return b|0}function yn(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();s=v;n=v+8|0;q=v+4|0;f=b+56|0;o=da(f|0,4,0,0)|0|0;p=da(b+52|0,4,0,0)|0|0;ea(q|0,0|0,4,0);ea(s|0,da(b|0,4,0,0)|0|0,4,0);u=th(a,10344,s)|0;do if(!u)f=7;else{r=lh(a,28,0)|0;if(!r){lg(a,u);f=7;break}l=r+0|0;k=l+28|0;do{ea(l>>0|0,0|0,1,0);l=l+1|0}while((l|0)<(k|0));ea(r|0,a|0,4,0);ea(r+4|0,c|0,4,0);m=da(b+68|0,4,0,0)|0|0;a:do if(m){l=da(a+20|0,4,0,0)|0|0;if((l|0)>0){h=da(a+16|0,4,0,0)|0|0;g=0;while(1){k=g+1|0;if((da(h+(g<<4)+12|0,4,0,0)|0|0)==(m|0)){k=g;break a}if((k|0)<(l|0))g=k;else break}}else k=0}else k=-1e6;while(0);ea((da(f|0,4,0,0)|0|0)+4|0,da((da(a+16|0,4,0,0)|0|0)+(k<<4)|0,4,0,0)|0|0,4,0);l=n+4|0;ea(l|0,b|0,4,0);ea(n|0,r|0,4,0);h=a+324|0;m=da(h|0,4,0,0)|0|0;ea(h|0,n|0,4,0);k=r+8|0;f=jc[(fa(d|0,7|0)|0)&7](a,da(c+8|0,4,0,0)|0|0,p,o,k,q)|0;ea(h|0,m|0,4,0);do if(!f){h=da(k|0,4,0,0)|0|0;if(h){ea(h+0|0,0|0,4,0);ea(h+4|0,0|0,4,0);ea(h+8|0,0|0,4,0);ea(da(k|0,4,0,0)|0|0,da(c|0,4,0,0)|0|0,4,0);ea(r+12|0,1|0,4,0);if(da(l|0,4,0,0)|0){ea(s|0,da(b|0,4,0,0)|0|0,4,0);ea(e|0,th(a,28376,s)|0|0,4,0);zn(r);f=1;break}q=b+60|0;ea(r+24|0,da(q|0,4,0,0)|0|0,4,0);ea(q|0,r|0,4,0);q=b+38|0;f=da(q|0,2,0,0)|0|0;if(f<<16>>16>0){p=b+4|0;g=da(p|0,4,0,0)|0|0;d=0;while(1){n=da(g+(d*24|0)+12|0,4,0,0)|0|0;if(n){h=n;while(1)if(!(da(h>>0|0,1,0,0)|0))break;else h=h+1|0;k=h-n|0;m=k&1073741823;if((Ec(28424,n,6)|0)==0?(o=da(n+6>>0|0,1,0,0)|0|0,o<<24>>24==32|o<<24>>24==0):0)h=0;else t=24;b:do if((t|0)==24){t=0;if(!m)h=0;else{h=0;while(1){if((Ec(28432,n+h|0,7)|0)==0?(o=da(n+(h+7)>>0|0,1,0,0)|0|0,o<<24>>24==32|o<<24>>24==0):0)break;h=h+1|0;if((h|0)>=(m|0))break b}h=h+1|0}}while(0);if((h|0)<(m|0)){l=(da(n+(h+6)>>0|0,1,0,0)|0|0)!=0|6;g=h+l|0;if((g|0)<=(m|0)){k=(k&1073741823)+1-l|0;f=g;g=h;while(1){ea(n+g>>0|0,da(n+f>>0|0,1,0,0)|0|0|0,1,0);g=g+1|0;if((g|0)==(k|0))break;else f=g+l|0}}if((da(n+h>>0|0,1,0,0)|0|0)==0&(h|0)>0)ea(n+(h+-1)>>0|0,0|0,1,0);g=da(p|0,4,0,0)|0|0;f=g+(d*24|0)+23|0;ea(f>>0|0,da(f>>0|0,1,0,1)|0|2|0,1,0);f=da(q|0,2,0,0)|0|0}}d=d+1|0;if((d|0)>=(f<<16>>16|0)){f=0;break}}}else f=0}else f=0}else if((f|0)==7){ea(a+65>>0|0,1|0,1,0);t=11}else t=11;while(0);if((t|0)==11){g=da(q|0,4,0,0)|0|0;if(!g){ea(s|0,u|0,4,0);ea(e|0,th(a,28344,s)|0|0,4,0)}else{ea(s|0,g|0,4,0);ea(e|0,th(a,10344,s)|0|0,4,0);Vc(da(q|0,4,0,0)|0|0)}lg(a,r)}lg(a,u)}while(0);i=v;return f|0}function zn(a){a=a|0;var b=0,c=0,d=0;b=da(a|0,4,0,0)|0|0;d=a+12|0;c=(da(d|0,4,0,0)|0|0)+-1|0;ea(d|0,c|0,4,0);if(!c){c=da(a+8|0,4,0,0)|0|0;if(c)kc[(fa(da((da(c|0,4,0,0)|0|0)+16|0,4,0,0)|0|0,127|0)|0)&127](c)|0;lg(b,a)}return}function An(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,k=0,l=0,m=0,n=0;n=a+10|0;d=b<<24>>24==1;if((da(n>>0|0,1,0,0)|0|0)==1|d){j=a+12|0;c=da(j|0,4,0,0)|0|0;if(d){d=c&-2;ea(j|0,d|0,4,0);g=d;d=d<<1|1}else{g=c;d=(c<<1)+2|0}k=a+16|0;c=da(k|0,4,0,0)|0|0;i=c+g|0;l=a+32|0;m=lh(da(l|0,4,0,0)|0|0,d,((d|0)<0)<<31>>31)|0;if(!m)c=7;else{d=da(n>>0|0,1,0,0)|0|0;if(d<<24>>24==2)if((g|0)>0){d=m;do{e=da(c>>0|0,1,0,1)|0|0;g=c+2|0;h=(da(c+1>>0|0,1,0,1)|0)<<8;f=h|e;if((h&63488|0)==55296&g>>>0<i>>>0){f=(f<<10&983040)+65536|e<<10&64512|(da(g>>0|0,1,0,1)|0)|(da(c+3>>0|0,1,0,1)|0)<<8&768;c=c+4|0}else c=g;do if(f>>>0>=128){if(f>>>0<2048){ea(d>>0|0,f>>>6&31|192|0,1,0);ea(d+1>>0|0,f&63|128|0,1,0);d=d+2|0;break}if(f>>>0<65536){ea(d>>0|0,f>>>12&15|224|0,1,0);ea(d+1>>0|0,f>>>6&63|128|0,1,0);ea(d+2>>0|0,f&63|128|0,1,0);d=d+3|0;break}else{ea(d>>0|0,f>>>18&7|240|0,1,0);ea(d+1>>0|0,f>>>12&63|128|0,1,0);ea(d+2>>0|0,f>>>6&63|128|0,1,0);ea(d+3>>0|0,f&63|128|0,1,0);d=d+4|0;break}}else{ea(d>>0|0,f|0,1,0);d=d+1|0}while(0)}while(c>>>0<i>>>0);h=55}else{d=m;h=55}else if(d<<24>>24!=1)if((g|0)>0){d=m;do{h=(da(c>>0|0,1,0,1)|0)<<8;g=c+2|0;f=da(c+1>>0|0,1,0,1)|0|0;e=h|f;if((h&63488|0)==55296&g>>>0<i>>>0){e=(e<<10&983040)+65536|f<<10&64512|(da(c+3>>0|0,1,0,1)|0)|(da(g>>0|0,1,0,1)|0)<<8&768;c=c+4|0}else c=g;do if(e>>>0>=128){if(e>>>0<2048){ea(d>>0|0,e>>>6&31|192|0,1,0);ea(d+1>>0|0,e&63|128|0,1,0);d=d+2|0;break}if(e>>>0<65536){ea(d>>0|0,e>>>12&15|224|0,1,0);ea(d+1>>0|0,e>>>6&63|128|0,1,0);ea(d+2>>0|0,e&63|128|0,1,0);d=d+3|0;break}else{ea(d>>0|0,e>>>18&7|240|0,1,0);ea(d+1>>0|0,e>>>12&63|128|0,1,0);ea(d+2>>0|0,e>>>6&63|128|0,1,0);ea(d+3>>0|0,e&63|128|0,1,0);d=d+4|0;break}}else{ea(d>>0|0,e|0,1,0);d=d+1|0}while(0)}while(c>>>0<i>>>0);h=55}else{d=m;h=55}else{d=(g|0)>0;if(b<<24>>24==2)if(d){d=m;g=c;while(1){c=g+1|0;e=da(g>>0|0,1,0,0)|0|0;f=e&255;if((e&255)>191){f=da(15360+(f+-192)>>0|0,1,0,1)|0|0;a:do if((c|0)==(i|0))c=i;else while(1){e=da(c>>0|0,1,0,0)|0|0;if((e&-64)<<24>>24!=-128)break a;g=g+2|0;f=e&63|f<<6;if((g|0)==(i|0)){c=i;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;ea(d>>0|0,g>>>10&192|f>>>10&63|0,1,0);ea(d+1>>0|0,g>>>18&3|216|0,1,0);ea(d+2>>0|0,f|0,1,0);ea(d+3>>0|0,f>>>8&3|220|0,1,0);d=d+4|0}else{f=65533;h=22}}else h=22;if((h|0)==22){h=0;ea(d>>0|0,f|0,1,0);ea(d+1>>0|0,f>>>8|0,1,0);d=d+2|0}if(c>>>0<i>>>0)g=c;else break}}else d=m;else if(d){d=m;do{g=c+1|0;f=da(c>>0|0,1,0,0)|0|0;e=f&255;if((f&255)>191){e=da(15360+(e+-192)>>0|0,1,0,1)|0|0;b:do if((g|0)==(i|0))c=i;else{f=c;c=g;while(1){g=da(c>>0|0,1,0,0)|0|0;if((g&-64)<<24>>24!=-128)break b;f=f+2|0;e=g&63|e<<6;if((f|0)==(i|0)){c=i;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;ea(d>>0|0,g>>>18&3|216|0,1,0);ea(d+1>>0|0,g>>>10&192|e>>>10&63|0,1,0);ea(d+2>>0|0,e>>>8&3|220|0,1,0);ea(d+3>>0|0,e|0,1,0);d=d+4|0}else{e=65533;h=31}}else{c=g;h=31}if((h|0)==31){h=0;ea(d>>0|0,e>>>8|0,1,0);ea(d+1>>0|0,e|0,1,0);d=d+2|0}}while(c>>>0<i>>>0)}else d=m;ea(j|0,d-m|0,4,0);ea(d>>0|0,0|0,1,0);d=d+1|0}if((h|0)==55)ea(j|0,d-m|0,4,0);ea(d>>0|0,0|0,1,0);d=a+8|0;j=da(d|0,2,0,0)|0|0;c=j&65535;if(!((j&9312)==0?(da(a+24|0,4,0,0)|0|0)==0:0))Pg(a);ea(d|0,c&29|514|0,2,0);ea(n>>0|0,b|0,1,0);ea(k|0,m|0,4,0);ea(a+20|0,m|0,4,0);c=da(l|0,4,0,0)|0|0;do if(!c)c=kc[(fa(da(8744+48|0,4,0,0)|0|0,127|0)|0)&127](m)|0;else{if((da(c+276|0,4,0,0)|0|0)>>>0<=m>>>0?(da(c+280|0,4,0,0)|0|0)>>>0>m>>>0:0){c=da(c+248|0,2,0,1)|0|0;break}c=kc[(fa(da(8744+48|0,4,0,0)|0|0,127|0)|0)&127](m)|0}while(0);ea(a+24|0,c|0,4,0);c=0}}else if(!(Ul(a)|0)){c=da(a+16|0,4,0,0)|0|0;l=(da(a+12|0,4,0,0)|0)&-2;d=c+l|0;if((l|0)>0)do{l=da(c>>0|0,1,0,0)|0|0;k=c+1|0;ea(c>>0|0,da(k>>0|0,1,0,0)|0|0|0,1,0);c=c+2|0;ea(k>>0|0,l|0,1,0)}while(c>>>0<d>>>0);ea(n>>0|0,b|0,1,0);c=0}else c=7;return c|0}function Bn(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=da(a>>0|0,1,0,0)|0|0;d=f&255;a:do switch(d|0){case 45:{if((da(a+1>>0|0,1,0,0)|0|0)==45)c=2;else{ea(b|0,90|0,4,0);c=1;break a}while(1){d=da(a+c>>0|0,1,0,0)|0|0;if(d<<24>>24==0|d<<24>>24==10)break;c=c+1|0}ea(b|0,151|0,4,0);break}case 46:{if(((da(a+1>>0|0,1,0,1)|0|0)+-48|0)>>>0<10)g=51;else{ea(b|0,122|0,4,0);c=1}break}case 62:{c=da(a+1>>0|0,1,0,0)|0|0;if(c<<24>>24==61){ea(b|0,83|0,4,0);c=2;break a}else if(c<<24>>24==62){ea(b|0,88|0,4,0);c=2;break a}else{ea(b|0,80|0,4,0);c=1;break a}}case 33:if((da(a+1>>0|0,1,0,0)|0|0)==61){ea(b|0,78|0,4,0);c=2;break a}else{ea(b|0,150|0,4,0);c=2;break a}case 38:{ea(b|0,85|0,4,0);c=1;break}case 126:{ea(b|0,96|0,4,0);c=1;break}case 34:case 39:case 96:{d=da(a+1>>0|0,1,0,0)|0|0;b:do if(d<<24>>24){c=1;while(1){if(d<<24>>24==f<<24>>24){c=c+1|0;if((da(a+c>>0|0,1,0,0)|0|0)!=f<<24>>24)break}c=c+1|0;d=da(a+c>>0|0,1,0,0)|0|0;if(!(d<<24>>24))break b}if(f<<24>>24==39){ea(b|0,97|0,4,0);break a}else{ea(b|0,27|0,4,0);break a}}else c=1;while(0);ea(b|0,150|0,4,0);break}case 42:{ea(b|0,91|0,4,0);c=1;break}case 47:{if((da(a+1>>0|0,1,0,0)|0|0)==42?(c=da(a+2>>0|0,1,0,0)|0|0,c<<24>>24!=0):0){c=c&255;d=3;while(1){f=da(a+d>>0|0,1,0,0)|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}ea(b|0,151|0,4,0);c=((c|0)!=0&1)+d|0;break a}ea(b|0,92|0,4,0);c=1;break}case 37:{ea(b|0,93|0,4,0);c=1;break}case 61:{ea(b|0,79|0,4,0);c=(da(a+1>>0|0,1,0,0)|0|0)==61?2:1;break}case 60:{c=da(a+1>>0|0,1,0,0)|0|0;if(c<<24>>24==61){ea(b|0,81|0,4,0);c=2;break a}else if(c<<24>>24==62){ea(b|0,78|0,4,0);c=2;break a}else if(c<<24>>24==60){ea(b|0,87|0,4,0);c=2;break a}else{ea(b|0,82|0,4,0);c=1;break a}}case 44:{ea(b|0,26|0,4,0);c=1;break}case 124:if((da(a+1>>0|0,1,0,0)|0|0)==124){ea(b|0,94|0,4,0);c=2;break a}else{ea(b|0,86|0,4,0);c=1;break a}case 91:{c=1;while(1){d=da(a+c>>0|0,1,0,0)|0|0;if(!(d<<24>>24)){d=d&255;break}c=c+1|0;if(d<<24>>24==93){d=93;break}}ea(b|0,((d|0)==93?27:150)|0,4,0);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 59:{ea(b|0,1|0,4,0);c=1;break}case 43:{ea(b|0,89|0,4,0);c=1;break}case 13:case 12:case 10:case 9:case 32:{c=1;while(1)if(!((da(10368+(da(a+c>>0|0,1,0,1)|0|0)>>0|0,1,0,0)|0)&1))break;else c=c+1|0;ea(b|0,151|0,4,0);break}case 88:case 120:{if((da(a+1>>0|0,1,0,0)|0|0)==39){ea(b|0,134|0,4,0);c=2;while(1){d=da(a+c>>0|0,1,0,0)|0|0;if(!((da(10368+(d&255)>>0|0,1,0,0)|0)&8))break;else c=c+1|0}if(d<<24>>24==39&(c&1|0)==0)d=1;else{ea(b|0,150|0,4,0);while(1){d=da(a+c>>0|0,1,0,0)|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 63:{ea(b|0,135|0,4,0);c=1;while(1)if(((da(a+c>>0|0,1,0,1)|0|0)+-48|0)>>>0<10)c=c+1|0;else break;break}case 58:case 35:case 64:case 36:{ea(b|0,135|0,4,0);d=da(a+1>>0|0,1,0,0)|0|0;if(d<<24>>24){c=1;f=0;while(1){if(!((da(10368+(d&255)>>0|0,1,0,0)|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((da(a+d>>0|0,1,0,0)|0|0)==58)c=d;else{d=f;break}}else f=f+1|0;c=c+1|0;d=da(a+c>>0|0,1,0,0)|0|0;if(!(d<<24>>24)){d=f;break}}do if((g|0)==78){e=c;while(1){c=e+1|0;f=da(a+c>>0|0,1,0,0)|0|0;if(!(f<<24>>24))break;if(f<<24>>24!=41?((da(10368+(f&255)>>0|0,1,0,0)|0)&1)==0:0)e=c;else{g=81;break}}if((g|0)==81)if(f<<24>>24==41){c=e+2|0;break}ea(b|0,150|0,4,0)}while(0);if(d)break a}else c=1;ea(b|0,150|0,4,0);break}case 40:{ea(b|0,22|0,4,0);c=1;break}case 41:{ea(b|0,23|0,4,0);c=1;break}default:g=98}while(0);c:do if((g|0)==51){ea(b|0,132|0,4,0);c=da(a>>0|0,1,0,0)|0|0;if(c<<24>>24==48){d=da(a+1>>0|0,1,0,0)|0|0;if(d<<24>>24==88|d<<24>>24==120)if(!((da(10368+(da(a+2>>0|0,1,0,1)|0|0)>>0|0,1,0,0)|0)&8))e=0;else{c=3;while(1)if(!((da(10368+(da(a+c>>0|0,1,0,1)|0|0)>>0|0,1,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=da(a+d>>0|0,1,0,0)|0|0;e=d}if(c<<24>>24==46){c=d;do{c=c+1|0;d=a+c|0}while(((da(d>>0|0,1,0,1)|0|0)+-48|0)>>>0<10);ea(b|0,133|0,4,0);e=da(d>>0|0,1,0,0)|0|0;f=c}else{e=c;f=d}do if(e<<24>>24==69|e<<24>>24==101){d=da(a+(f+1)>>0|0,1,0,0)|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(((da(a+c>>0|0,1,0,1)|0|0)+-48|0)>>>0>=10){d=e;c=f;break}}else c=f+2|0;while(1){d=a+c|0;if(((da(d>>0|0,1,0,1)|0|0)+-48|0)>>>0<10)c=c+1|0;else break}ea(b|0,133|0,4,0);d=da(d>>0|0,1,0,0)|0|0}else{d=e;c=f}while(0);if((da(10368+(d&255)>>0|0,1,0,0)|0)&70)do{ea(b|0,150|0,4,0);c=c+1|0}while(((da(10368+(da(a+c>>0|0,1,0,1)|0|0)>>0|0,1,0,0)|0)&70)!=0)}else if((g|0)==98){if(!((da(10368+d>>0|0,1,0,0)|0)&70)){ea(b|0,150|0,4,0);c=1;break}else c=1;while(1)if(!((da(10368+(da(a+c>>0|0,1,0,1)|0|0)>>0|0,1,0,0)|0)&70))break;else c=c+1|0;ea(b|0,ei(a,c)|0|0,4,0)}while(0);return c|0}function Cn(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=da(a>>0|0,1,0,0)|0|0;if(d<<24>>24==48){d=da(a+1>>0|0,1,0,0)|0|0;if(d<<24>>24==88|d<<24>>24==120?(e=a+2|0,c=da(e>>0|0,1,0,0)|0|0,((da(10368+(c&255)>>0|0,1,0,0)|0)&8)!=0):0){while(1){d=e+1|0;if(c<<24>>24!=48)break;e=d;c=da(d>>0|0,1,0,0)|0|0}if(!((da(10368+(c&255)>>0|0,1,0,0)|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=da(e+a>>0|0,1,0,0)|0|0;c=((da(10368+(f&255)>>0|0,1,0,0)|0)&8)==0}while((a|0)<8&(c^1));c=c^1}if((d|0)<0|c)c=0;else{ea(b|0,d|0,4,0);c=1}}else{g=0;h=13}}else 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{g=0;h=13}a:do if((h|0)==13){c=0;d=0;f=0;while(1){e=(da(a+f>>0|0,1,0,0)|0|0)+-48|0;if(e>>>0>=10)break;d=rw(c|0,d|0,10,0)|0;c=iw(e|0,((e|0)<0)<<31>>31|0,d|0,C|0)|0;f=f+1|0;if((f|0)>=11){c=0;break a}else d=C}e=cw(c|0,d|0,g|0,0)|0;a=C;if((a|0)>0|(a|0)==0&e>>>0>2147483647)c=0;else{if(g)c=cw(0,0,c|0,d|0)|0;ea(b|0,c|0,4,0);c=1}}while(0);return c|0}function Dn(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();f=e;ea(f|0,d|0,4,0);rg(a,b,c,f);i=e;return}function En(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+16|0;if((i|0)>=(j|0))ba();y=A;w=A+4|0;ea(w|0,0|0,4,0);z=lh(a,536,0)|0;a:do if(z){ew(z|0,0,536)|0;ea(z+476|0,e|0,4,0);n=a+20|0;e=da(n|0,4,0,0)|0|0;b:do if((e|0)>0){o=a+16|0;l=0;while(1){m=da((da(o|0,4,0,0)|0|0)+(l<<4)+4|0,4,0,0)|0|0;if(m){ea((da(m+4|0,4,0,0)|0|0)+4|0,da(m|0,4,0,0)|0|0,4,0);h=al(m,1,1)|0;if(h)break;e=da(n|0,4,0,0)|0|0}l=l+1|0;if((l|0)>=(e|0))break b}ea(y|0,da((da(o|0,4,0,0)|0|0)+(l<<4)|0,4,0,0)|0|0,4,0);tg(a,h,40984,y);l=z;break a}while(0);ql(a);ea(z|0,a|0,4,0);ea(z+424|0,0|0,4,0);do if((c|0)>-1){if((c|0)!=0?(da(b+(c+-1)>>0|0,1,0,0)|0|0)==0:0){x=21;break}if((da(a+92|0,4,0,0)|0|0)<(c|0)){tg(a,18,41016,y);if(!a){l=z;h=18;break a}if(!(da(a+65>>0|0,1,0,0)|0)){l=z;h=(da(a+56|0,4,0,0)|0)&18;break a}else{Pl(a);l=z;h=7;break a}}else{if((b|0)!=0?(k=iw(c|0,((c|0)<0)<<31>>31|0,1,0)|0,k=lh(a,k,C)|0,(k|0)!=0):0){jw(k|0,b|0,c|0)|0;ea(k+c>>0|0,0|0,1,0);Kh(z,k,w)|0;lg(a,k);h=z+480|0;ea(h|0,b+((da(h|0,4,0,0)|0|0)-k)|0,4,0);break}ea(z+480|0,b+c|0,4,0);break}}else x=21;while(0);if((x|0)==21)Kh(z,b,w)|0;o=a+65|0;e=z+12|0;if(!(da(o>>0|0,1,0,0)|0)){l=z+12|0;if((da(e|0,4,0,0)|0|0)==101)ea(l|0,0|0,4,0)}else{ea(e|0,7|0,4,0);l=z+12|0}c:do if((da(z+17>>0|0,1,0,0)|0|0)!=0?(p=da(z|0,4,0,0)|0|0,q=p+20|0,(da(q|0,4,0,0)|0|0)>0):0){k=p+16|0;n=0;while(1){e=da(k|0,4,0,0)|0|0;h=da(e+(n<<4)+4|0,4,0,0)|0|0;if(h){if(!(da(h+8>>0|0,1,0,0)|0)){e=xg(h,0)|0;if((e|0)==7|(e|0)==3082)break;else if(e)break c;e=da(k|0,4,0,0)|0|0;m=1}else m=0;c=da(h+4|0,4,0,0)|0|0;ea(c+4|0,da(h|0,4,0,0)|0|0,4,0);c=da((da(c+12|0,4,0,0)|0|0)+56|0,4,0,0)|0|0;if(((da(c+41>>0|0,1,0,1)|0)<<16|(da(c+40>>0|0,1,0,1)|0)<<24|(da(c+42>>0|0,1,0,1)|0)<<8|(da(c+43>>0|0,1,0,1)|0)|0)!=(da(da(e+(n<<4)+12|0,4,0,0)|0|0,4,0,0)|0|0)){um(p,n);ea(l|0,17|0,4,0)}if(m)tn(h)|0}n=n+1|0;if((n|0)>=(da(q|0,4,0,0)|0|0))break c}ea(p+65>>0|0,1|0,1,0)}while(0);if(da(o>>0|0,1,0,0)|0)ea(l|0,7|0,4,0);if(g)ea(g|0,da(z+480|0,4,0,0)|0|0,4,0);h=da(l|0,4,0,0)|0|0;m=(h|0)==0;do if(m?(s=z+8|0,r=da(s|0,4,0,0)|0|0,(r|0)!=0):0){l=da(z+450>>0|0,1,0,0)|0|0;if(l<<24>>24==2){hq(r,4);k=8;e=12}else if(!(l<<24>>24))break;else{hq(r,8);k=0;e=8}l=k;do{iq(da(s|0,4,0,0)|0|0,l-k|0,0,da(41040+(l<<2)|0,4,0,0)|0|0,0);l=l+1|0}while((l|0)<(e|0))}while(0);k=z+8|0;if((da(a+145>>0|0,1,0,0)|0|0)==0?(v=da(k|0,4,0,0)|0|0,t=(da(z+480|0,4,0,0)|0|0)-b|0,(v|0)!=0):0){if((b|0)!=0?(s=da(v|0,4,0,0)|0|0,u=iw(t|0,((t|0)<0)<<31>>31|0,1,0)|0,u=lh(s,u,C)|0,(u|0)!=0):0){jw(u|0,b|0,t|0)|0;ea(u+t>>0|0,0|0,1,0);l=u}else l=0;ea(v+168|0,l|0,4,0);v=v+88|0;ea(v|0,(da(v|0,2,0,0)|0)&-257|(d&65535)<<8&256|0,2,0)}l=da(k|0,4,0,0)|0|0;do if(!l)x=60;else{if(m?(da(o>>0|0,1,0,0)|0|0)==0:0){x=60;break}Mg(l)|0}while(0);if((x|0)==60)ea(f|0,l|0,4,0);k=da(w|0,4,0,0)|0|0;do if(!k){ea(a+52|0,h|0,4,0);k=da(a+236|0,4,0,0)|0|0;if(k){l=k+8|0;if(!((da(l|0,2,0,0)|0)&9312)){ea(l|0,1|0,2,0);break}else{ug(k);break}}}else{ea(y|0,k|0,4,0);tg(a,h,10344,y);lg(a,k)}while(0);k=z+528|0;l=da(k|0,4,0,0)|0|0;if(!l)l=z;else{do{ea(k|0,da(l+4|0,4,0,0)|0|0,4,0);lg(a,l);l=da(k|0,4,0,0)|0|0}while((l|0)!=0);l=z}}else{l=0;h=7}while(0);Bh(l);lg(a,z);y=Ng(a,h)|0;i=A;return y|0}function Fn(a){a=a|0;var b=0,c=0;c=da(a|0,4,0,0)|0|0;if((da(c+145>>0|0,1,0,0)|0|0)==0?(b=Yh(c,a+4|0)|0,(b|0)!=0):0){ea(a+12|0,b|0,4,0);c=a+64|0;ea(c|0,(da(c|0,4,0,0)|0|0)+1|0,4,0)}else b=0;return b|0}function Gn(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;d=da(a+24|0,4,0,0)|0|0;f=d+84|0;b=da(f|0,4,0,0)|0|0;if(!b){b=1020;c=0}else{b=b*40|0;c=0}e=a+4|0;a=qo(da(d|0,4,0,0)|0|0,da(e|0,4,0,0)|0|0,b,c)|0;c=(a|0)!=0;if(c){b=da(d|0,4,0,0)|0|0;do if(!b)b=kc[(fa(da(8744+48|0,4,0,0)|0|0,127|0)|0)&127](a)|0;else{if((da(b+276|0,4,0,0)|0|0)>>>0<=a>>>0?(da(b+280|0,4,0,0)|0|0)>>>0>a>>>0:0){b=da(b+248|0,2,0,1)|0|0;break}b=kc[(fa(da(8744+48|0,4,0,0)|0|0,127|0)|0)&127](a)|0}while(0);ea(f|0,(b>>>0)/20|0|0,4,0);ea(e|0,a|0,4,0)}return (c?0:7)|0}function Hn(a,b,c){a=a|0;b=b|0;c=c|0;a:do if(c)switch(b|0){case -5:{if(!((da(c+2|0,2,0,0)|0)&16))break a;lg(a,c);break a}case -8:{if(!(da(a+520|0,4,0,0)|0)){Lh(c);break a}if(da(c+24|0,4,0,0)|0)lg(a,da(c+20|0,4,0,0)|0|0);lg(a,c);break a}case -15:case -1:case -13:case -12:{lg(a,c);break a}case -11:{if(da(a+520|0,4,0,0)|0)break a;Vc(c);break a}case -10:{if(da(a+520|0,4,0,0)|0)break a;zn(c);break a}case -6:{if(da(a+520|0,4,0,0)|0)break a;a=(da(c|0,4,0,0)|0|0)+-1|0;ea(c|0,a|0,4,0);if(a)break a;Vc(c);break a}default:break a}while(0);return}function In(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,k=0,l=0,m=0,n=0;c=da(b|0,4,0,0)|0|0;l=da(a+24|0,4,0,0)|0|0;m=l+112|0;g=da(m|0,4,0,0)|0|0;j=a+88|0;ea(j|0,(da(j|0,2,0,0)|0)&-193|64|0,2,0);d=da(a+32|0,4,0,0)|0|0;a:do if((d|0)>0){f=da(a+4|0,4,0,0)|0|0;while(1){d=d+-1|0;e=da(f>>0|0,1,0,1)|0|0;switch(e|0){case 12:case 13:case 11:{ea(j|0,(da(j|0,2,0,0)|0)&-193|128|0,2,0);break}case 15:{n=da(f+8|0,4,0,0)|0|0;c=(n|0)>(c|0)?n:c;break}case 4:{if(!(da(f+8|0,4,0,0)|0))k=7;else{ea(j|0,(da(j|0,2,0,0)|0)&-65|0,2,0);k=7}break}case 6:case 8:{ea(f+16|0,77|0,4,0);ea(f+1>>0|0,-19|0,1,0);break}case 14:{n=da(f+-16|0,4,0,0)|0|0;c=(n|0)>(c|0)?n:c;break}case 10:case 1:{n=da(f+3>>0|0,1,0,1)|0|0;c=(n|0)>(c|0)?n:c;break}case 2:case 3:{k=7;break}case 5:case 7:case 9:{ea(f+16|0,76|0,4,0);ea(f+1>>0|0,-19|0,1,0);break}default:{}}if((k|0)==7){k=0;ea(j|0,da(j|0,2,0,0)|0|128|0,2,0)}e=da(34168+e>>0|0,1,0,0)|0|0;ea(f+2>>0|0,e|0,1,0);if((e&1)!=0?(h=f+8|0,i=da(h|0,4,0,0)|0|0,(i|0)<0):0)ea(h|0,da(g+(~i<<2)|0,4,0,0)|0|0,4,0);if((d|0)<=0)break a;else f=f+20|0}}while(0);lg(da(a|0,4,0,0)|0|0,da(m|0,4,0,0)|0|0);ea(m|0,0|0,4,0);ea(l+108|0,0|0,4,0);ea(b|0,c|0,4,0);return}function Jn(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;c=a+73|0;if((da(c>>0|0,1,0,0)|0|0)!=4){ea(c>>0|0,0|0,1,0);d=a+56|0;b=a+48|0;b=Fp(a,da(d|0,4,0,0)|0|0,da(b|0,4,0,0)|0|0,da(b+4|0,4,0,0)|0|0,0,e)|0;if(!b){Vc(da(d|0,4,0,0)|0|0);ea(d|0,0|0,4,0);d=a+68|0;b=da(d|0,4,0,0)|0|(da(e|0,4,0,0)|0);ea(d|0,b|0,4,0);if((b|0)!=0?(da(c>>0|0,1,0,0)|0|0)==1:0){ea(c>>0|0,2|0,1,0);b=0}else b=0}}else b=da(a+68|0,4,0,0)|0|0;i=f;return b|0}function Kn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=da(a+8|0,4,0,0)|0|0;a:do if(!a)a=0;else{d=(b|0)==0;while(1){if((a|0)!=(c|0)){if(d)break;if((da(a+60|0,4,0,0)|0|0)==(b|0))break}a=da(a+8|0,4,0,0)|0|0;if(!a){a=0;break a}}a=El(a,b,c)|0}while(0);return a|0}function Ln(a){a=a|0;var b=0,c=0,d=0,e=0;c=da(a|0,4,0,0)|0|0;d=c+1|0;ea(a|0,d|0,4,0);e=da(c>>0|0,1,0,0)|0|0;b=e&255;if((e&255)<=191)return b|0;b=da(15360+(b+-192)>>0|0,1,0,1)|0|0;if(((da(d>>0|0,1,0,0)|0)&-64)<<24>>24==-128)while(1){c=c+2|0;ea(a|0,c|0,4,0);b=(da(d>>0|0,1,0,1)|0|0)&63|b<<6;if(((da(c>>0|0,1,0,0)|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 Mn(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=da(a>>0|0,1,0,0)|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=da(a>>0|0,1,0,0)|0|0;if((c&-64)<<24>>24==-128){c=a;a=d+2|0;d=c}else break}}else{c=da(e>>0|0,1,0,0)|0|0;a=e}b=b+1|0}while(c<<24>>24!=0&a>>>0<f>>>0)}else b=0;return b|0}function Nn(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;t=i;i=i+48|0;if((i|0)>=(j|0))ba();p=t+32|0;q=t+16|0;r=t;e=da(a|0,4,0,0)|0|0;if((e|0)<0){ea(a|0,0|0,4,0);ea(a+4|0,-1|0,4,0);ea(a+12|0,0|0,2,0);ea(a+14>>0|0,0|0,1,0);e=0}l=c;m=da(l+4|0,4,0,0)|0|0;k=r;ea(k|0,da(l|0,4,0,0)|0|0,4,0);ea(k+4|0,m|0,4,0);m=a+8|0;ea(m|0,d|0,4,0);k=b&255;l=(b|0)==254;do{h=da(a+(e<<4)+12|0,2,0,0)|0|0;d=h&65535;c=37184+(d<<1)|0;a:do if((h&65535)>429)s=6;else{h=k;while(1){g=da(c|0,2,0,0)|0|0;f=g<<16>>16;if(g<<16>>16==-86){s=6;break a}g=h&255;e=f+g|0;if(e>>>0<=1496?(da(39336+e>>0|0,1,0,0)|0|0)==h<<24>>24:0){s=16;break}if(!(h<<24>>24))break;if((h&255)>=70){n=f;s=12;break}h=da(40840+g>>0|0,1,0,0)|0|0;if(!(h<<24>>24)){n=f;s=12;break}}if((s|0)==16){s=0;e=da(22184+(e<<1)|0,2,0,1)|0|0;break}if(((s|0)==12?(s=0,o=n+70|0,(o|0)>-1):0)?(da(39336+o>>0|0,1,0,0)|0|0)==70:0){e=da(22184+(o<<1)|0,2,0,1)|0|0;break}e=da(38048+(d<<1)|0,2,0,1)|0|0}while(0);if((s|0)==6){s=0;e=da(38048+(d<<1)|0,2,0,1)|0|0}if(e>>>0<642){s=18;break}if(e>>>0>=969){s=20;break}lq(a,e+-642|0);if(l)break;e=da(a|0,4,0,0)|0|0}while((e|0)>-1);if((s|0)==18){jq(a,e,b,r);n=a+4|0;ea(n|0,(da(n|0,4,0,0)|0|0)+-1|0,4,0)}else if((s|0)==20){ea(q+0|0,da(r+0|0,4,0,0)|0|0,4,0);ea(q+4|0,da(r+4|0,4,0,0)|0|0,4,0);ea(q+8|0,da(r+8|0,4,0,0)|0|0,4,0);n=da(m|0,4,0,0)|0|0;ea(p|0,q|0,4,0);sh(n,20432,p);ea(m|0,n|0,4,0);kq(a,k,r)}i=t;return}function On(a){a=a|0;var b=0;b=da(a|0,4,0,0)|0|0;if((b|0)>=0){kq(a,da(a+(b<<4)+14>>0|0,1,0,0)|0|0,a+(b<<4)+16|0);ea(a|0,(da(a|0,4,0,0)|0|0)+-1|0,4,0)}return}function Pn(a,b){a=a|0;b=b|0;var c=0;if(b){if((da(b|0,4,0,0)|0|0)>0){c=0;do{Mk(a,da(b+(c<<4)+12|0,4,0,0)|0|0);Lk(a,da(b+(c<<4)+16|0,4,0,0)|0|0,1);lg(a,da(b+(c<<4)+8|0,4,0,0)|0|0);c=c+1|0}while((c|0)<(da(b|0,4,0,0)|0|0))}lg(a,b)}return}function Qn(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=da(g|0,4,0,0)|0|0;if(c){h=a+304|0;if((da(h|0,4,0,0)|0|0)>0){e=0;do{d=da(c+(e<<2)|0,4,0,0)|0|0;c=da(d+8|0,4,0,0)|0|0;if((c|0)!=0?(f=da((da(c|0,4,0,0)|0|0)+b|0,4,0,0)|0|0,(f|0)!=0):0)kc[(fa(f|0,127|0)|0)&127](c)|0;ea(d+20|0,0|0,4,0);zn(d);e=e+1|0;c=da(g|0,4,0,0)|0|0}while((e|0)<(da(h|0,4,0,0)|0|0))}lg(a,c);ea(h|0,0|0,4,0);ea(g|0,0|0,4,0)}return}function Rn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;do if((b|0)==-2)if(!(da(a+12|0,4,0,0)|0))b=(da(a+16|0,4,0,0)|0|0)==0?0:6;else b=6;else{e=da(a|0,2,0,0)|0|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=da(a+2|0,2,0,1)|0|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} [all...] |
H A D | sqlite-change-heap.js | 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(a,d,0)|0;if(e){kw(e|0,0,d|0)|0;d=e+60|0;k[e>>2]=d;i[e+4>>0]=1;k[e+20>>2]=d;i[e+24>>0]=2;k[e+40>>2]=d;i[e+44>>0]=3;pw(d|0,c|0,f|0)|0;i[e+(f+60)>>0]=0;f=Nk(g,k[e>>2]|0,e)|0;if(!f)h=10;else{i[a+65>>0]=1;rg(a,f);e=0}}else e=0}else h=10}else{e=k[a+8>>2]|0;h=10}if((h|0)==10)if(!e)e=0;else e=e+(((b&255)+-1|0)*20|0)|0;r=j;return e|0}function co(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;A=r;r=r+64|0;if((r|0)>=(s|0))ka();y=A;f=A+48|0;o=A+24|0;v=A+8|0;g=(b|0)==1;t=g?13184:13208;k[f>>2]=t;k[f+4>>2]=13224;k[f+8>>2]=g?13064:12960;k[f+12>>2]=0;k[v>>2]=a;k[v+8>>2]=b;u=v+12|0;k[u>>2]=0;k[v+4>>2]=c;en(v,3,f,0)|0;f=k[u>>2]|0;a:do if(!f){w=a+16|0;f=di(a,t,k[(k[w>>2]|0)+(b<<4)>>2]|0)|0;if(f){q=f+44|0;i[q>>0]=l[q>>0]|1}e=k[w>>2]|0;x=e+(b<<4)+4|0;f=k[x>>2]|0;if(!f){if(!g){d=0;break}d=(k[e+28>>2]|0)+78|0;j[d>>1]=m[d>>1]|1;d=0;break}k[(k[f+4>>2]|0)+4>>2]=k[f>>2];do if(!(i[f+8>>0]|0)){f=Dg(f,0)|0;if((f|0)==516)d=16344;else if(!f){f=k[x>>2]|0;q=1;break}else z=10;if((z|0)==10){d=f&255;if(d>>>0>26|(d|0)==2)d=16328;else d=k[15488+(d<<2)>>2]|0}k[y>>2]=d;ih(c,a,10344,y);d=f;z=38;break a}else q=0;while(0);Bm(f,1,o);p=o+4|0;Bm(k[x>>2]|0,2,p);h=o+8|0;Bm(k[x>>2]|0,3,h);Bm(k[x>>2]|0,4,o+12|0);g=o+16|0;Bm(k[x>>2]|0,5,g);n=e+(b<<4)+12|0;f=k[n>>2]|0;k[f>>2]=k[o>>2];e=k[g>>2]|0;do if(e){if(!b){g=e&3;g=(g|0)==0?1:g&255;i[a+62>>0]=g;z=19;break}g=i[a+62>>0]|0;if((e|0)==(g&255|0))z=19;else{ih(c,a,13232,y);d=1}}else{g=(k[(k[w>>2]|0)+(b<<4)+12>>2]|0)+78|0;j[g>>1]=m[g>>1]|4;g=i[a+62>>0]|0;z=19}while(0);do if((z|0)==19){i[f+77>>0]=g;g=f+80|0;if(!(k[g>>2]|0)){f=k[h>>2]|0;if((f|0)<=-1)f=(f|0)==-2147483648?2147483647:0-f|0;f=(f|0)==0?2e3:f;k[g>>2]=f;uq(k[x>>2]|0,f);f=k[n>>2]|0}e=k[p>>2]|0;g=e&255;f=f+76|0;if(g<<24>>24){i[f>>0]=g;if((g&255)>4){ih(c,a,13304,y);d=1;break}}else i[f>>0]=1;if((b|0)==0&(e|0)>3){p=a+24|0;k[p>>2]=k[p>>2]&-32769}k[y>>2]=k[(k[w>>2]|0)+(b<<4)>>2];k[y+4>>2]=t;f=zh(a,13328,y)|0;t=a+284|0;p=k[t>>2]|0;k[t>>2]=0;e=Ve(a,f,22,v,0)|0;k[t>>2]=p;e=(e|0)==0?k[u>>2]|0:e;rg(a,f);f=(e|0)==0;if(f)fn(a,b)|0;if(!(i[a+65>>0]|0)){if(!f){d=e;z=34}}else{Jg(a);d=7;z=34}if((z|0)==34?(k[a+24>>2]&65536|0)==0:0)break;d=(k[(k[w>>2]|0)+(b<<4)+12>>2]|0)+78|0;j[d>>1]=m[d>>1]|1;d=0}while(0);if(!q)z=38;else{zn(k[x>>2]|0)|0;z=38}}else{d=f;z=38}while(0);if((z|0)==38)if((d|0)==7|(d|0)==3082)i[a+65>>0]=1;r=A;return d|0}function eo(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;m=r;r=r+80|0;if((r|0)>=(s|0))ka();j=m;k[12066]=k[2708];if(!(k[12067]|0)){c=Qb(48336)|0;k[12067]=c}if(!(k[12068]|0)){c=Qb(48352)|0;k[12068]=c}d=j+12|0;e=0;c=0;do{if((((c|0)!=0?(wc[k[47552+52>>2]&127](c,j)|0)==0:0)?(k[d>>2]&61440|0)==16384:0)?(wc[k[47552+28>>2]&127](c,7)|0)==0:0)break;c=k[48264+(e<<2)>>2]|0;e=e+1|0}while(e>>>0<7);h=(c|0)==0?28928:c;if(((lw(h|0)|0)+25|0)>>>0<a>>>0){a=a+-18|0;do{k[j>>2]=h;fd(a,b,48248,j)|0;d=lw(b|0)|0;c=b+d|0;hd(15,c);g=b+(d+15)|0;f=0;e=d;while(1){i[c>>0]=i[48184+(((l[c>>0]|0)%62|0)&255)>>0]|0;f=f+1|0;e=e+1|0;if((f|0)==15)break;else c=b+e|0}i[g>>0]=0;i[b+(d+16)>>0]=0}while((wc[k[47552+28>>2]&127](b,0)|0)==0);c=0}else c=1;r=m;return c|0}function fo(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,l=0;j=r;r=r+80|0;if((r|0)>=(s|0))ka();h=j;g=(c|0)!=0;e=g?c:420;f=b|524288;while(1){d=fc[k[47552+4>>2]&63](a,f,e)|0;if((d|0)<0){l=Mb()|0;if((k[l>>2]|0)==4)continue;else break}if((d|0)>2){i=6;break}qc[k[47552+16>>2]&127](d)|0;k[h>>2]=a;k[h+4>>2]=d;gd(28,48120,h);if((fc[k[47552+4>>2]&63](48168,b,c)|0)<0){d=-1;break}}if((i|0)==6)if(((g?(wc[k[47552+64>>2]&127](d,h)|0)==0:0)?(k[h+36>>2]|0)==0:0)?(k[h+12>>2]&511|0)!=(c|0):0)wc[k[47552+172>>2]&127](d,c)|0;r=j;return d|0}function go(a,b,c){a=a|0;b=b|0;c=c|0;if(qc[k[47552+16>>2]&127](b)|0){if(!a)b=0;else b=k[a+32>>2]|0;io(4106,47856,b,c)|0}return}function ho(a){a=a|0;var b=0,c=0,d=0,e=0;e=r;r=r+80|0;if((r|0)>=(s|0))ka();d=e;b=e+4|0;c=a+18|0;do if(!(j[c>>1]&256)){if(wc[k[47552+64>>2]&127](k[a+12>>2]|0,b)|0){k[d>>2]=k[a+32>>2];gd(28,48592,d);j[c>>1]=m[c>>1]|0|256;break}b=k[b+16>>2]|0;if(!b){if(!(j[c>>1]&32)){k[d>>2]=k[a+32>>2];gd(28,48616,d);j[c>>1]=m[c>>1]|0|256;break}}else if(b>>>0>1){k[d>>2]=k[a+32>>2];gd(28,48648,d);j[c>>1]=m[c>>1]|0|256;break}if(Co(a)|0){k[d>>2]=k[a+32>>2];gd(28,48680,d);j[c>>1]=m[c>>1]|0|256}}while(0);r=e;return}function io(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;e=r;r=r+32|0;if((r|0)>=(s|0))ka();f=e;h=Mb()|0;h=k[h>>2]|0;g=Wb(h|0)|0;k[f>>2]=d;k[f+4>>2]=h;k[f+8>>2]=b;k[f+12>>2]=(c|0)==0?10360:c;k[f+16>>2]=g;gd(a,47864,f);r=e;return a|0}function jo(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;h=a+40|0;c=k[h>>2]|0;g=c<<1;g=g>>>0<256?256:g;if((c|0)!=0?(b=k[3164]|0,(b|0)!=0):0)sc[b&3]();b=g<<2;f=vg(b,0)|0;c=(f|0)==0;if(!c)kw(f|0,0,b|0)|0;if((k[h>>2]|0)!=0?(d=k[3166]|0,(d|0)!=0):0)sc[d&3]();if(!c){d=k[h>>2]|0;e=a+44|0;b=k[e>>2]|0;if(d){a=0;do{c=k[b+(a<<2)>>2]|0;if(c){do{j=c+16|0;i=c;c=k[j>>2]|0;b=f+((((k[i+8>>2]|0)>>>0)%(g>>>0)|0)<<2)|0;k[j>>2]=k[b>>2];k[b>>2]=i}while((c|0)!=0);b=k[e>>2]|0}a=a+1|0}while(a>>>0<d>>>0)}$c(b);k[e>>2]=f;k[h>>2]=g}return}function ko(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;f=a+24|0;g=a+16|0;c=a+4|0;a:do if((k[g>>2]|0)>>>0>(k[c>>2]|0)>>>0)do{d=k[f>>2]|0;if(!d)break a;lo(d);e=k[d+20>>2]|0;b=(k[e+44>>2]|0)+((((k[d+8>>2]|0)>>>0)%((k[e+40>>2]|0)>>>0)|0)<<2)|0;while(1){h=k[b>>2]|0;a=h+16|0;if((h|0)==(d|0))break;else b=a}k[b>>2]=k[a>>2];a=e+36|0;k[a>>2]=(k[a>>2]|0)+-1;no(d)}while((k[g>>2]|0)>>>0>(k[c>>2]|0)>>>0);while(0);return}function lo(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;c=k[a+20>>2]|0;d=k[c>>2]|0;e=a+28|0;f=k[e>>2]|0;g=a+24|0;b=k[g>>2]|0;if(!f)k[d+20>>2]=b;else{k[f+24>>2]=b;b=k[g>>2]|0}if(!b)k[d+24>>2]=f;else k[b+28>>2]=f;k[g>>2]=0;k[e>>2]=0;i[a+12>>0]=1;b=c+32|0;k[b>>2]=(k[b>>2]|0)+-1;return}function mo(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,r=0;j=k[a>>2]|0;q=a+36|0;g=k[q>>2]|0;e=k[a+32>>2]|0;f=g-e|0;o=(c|0)==1;if(o)if(f>>>0<(k[j+12>>2]|0)>>>0?f>>>0<(k[a+24>>2]|0)>>>0:0){if((k[3155]|0)!=0?((k[a+8>>2]|0)+(k[a+4>>2]|0)|0)<=(k[3154]|0):0)c=12648|0;else c=9060|0;if(!((k[c>>2]|0)!=0&e>>>0<f>>>0))n=8;else d=0}else d=0;else n=8;do if((n|0)==8){m=a+40|0;if(g>>>0>=(k[m>>2]|0)>>>0)jo(a);h=a+12|0;do if((k[h>>2]|0)!=0?(d=k[j+24>>2]|0,(d|0)!=0):0){if(((k[q>>2]|0)+1|0)>>>0<(k[a+20>>2]|0)>>>0?(k[j+16>>2]|0)>>>0<(k[j+4>>2]|0)>>>0:0){if((k[3155]|0)!=0?((k[a+8>>2]|0)+(k[a+4>>2]|0)|0)<=(k[3154]|0):0)c=12648|0;else c=9060|0;if(!(k[c>>2]|0)){n=23;break}}c=d+20|0;e=k[c>>2]|0;f=(k[e+44>>2]|0)+((((k[d+8>>2]|0)>>>0)%((k[e+40>>2]|0)>>>0)|0)<<2)|0;while(1){r=k[f>>2]|0;g=r+16|0;if((r|0)==(d|0))break;else f=g}k[f>>2]=k[g>>2];g=e+36|0;k[g>>2]=(k[g>>2]|0)+-1;lo(d);c=k[c>>2]|0;if(((k[c+8>>2]|0)+(k[c+4>>2]|0)|0)==((k[a+8>>2]|0)+(k[a+4>>2]|0)|0)){l=j+16|0;k[l>>2]=(k[h>>2]|0)-(k[c+12>>2]|0)+(k[l>>2]|0);break}else{no(d);n=23;break}}else n=23;while(0);if((n|0)==23){if(o?(l=k[3164]|0,(l|0)!=0):0)sc[l&3]();c=a+4|0;e=Lo((k[c>>2]|0)+32+(k[a+8>>2]|0)|0)|0;c=k[c>>2]|0;d=e+c|0;if(e){k[d>>2]=e;k[e+(c+4)>>2]=e+(c+32);if(k[h>>2]|0){n=(k[a>>2]|0)+16|0;k[n>>2]=(k[n>>2]|0)+1}}else d=0;if(o?(p=k[3166]|0,(p|0)!=0):0)sc[p&3]();if(!d){d=0;break}}e=(b>>>0)%((k[m>>2]|0)>>>0)|0;k[q>>2]=(k[q>>2]|0)+1;k[d+8>>2]=b;n=a+44|0;k[d+16>>2]=k[(k[n>>2]|0)+(e<<2)>>2];k[d+20>>2]=a;k[d+28>>2]=0;k[d+24>>2]=0;i[d+12>>0]=1;k[k[d+4>>2]>>2]=0;k[(k[n>>2]|0)+(e<<2)>>2]=d;e=a+28|0;if((k[e>>2]|0)>>>0<b>>>0)k[e>>2]=b}while(0);return d|0}function no(a){a=a|0;var b=0;if((a|0)!=0?(b=k[a+20>>2]|0,el(k[a>>2]|0),(k[b+12>>2]|0)!=0):0){b=(k[b>>2]|0)+16|0;k[b>>2]=(k[b>>2]|0)+-1}return}function oo(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=a+40|0;if(k[f>>2]|0){g=a+44|0;d=a+36|0;e=0;do{c=(k[g>>2]|0)+(e<<2)|0;a=k[c>>2]|0;a:do if(a)do{while(1){if((k[a+8>>2]|0)>>>0<b>>>0)break;k[d>>2]=(k[d>>2]|0)+-1;k[c>>2]=k[a+16>>2];if(!(i[a+12>>0]|0))lo(a);no(a);a=k[c>>2]|0;if(!a)break a}c=a+16|0;a=k[c>>2]|0}while((a|0)!=0);while(0);e=e+1|0}while(e>>>0<(k[f>>2]|0)>>>0)}return}function po(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=k[a>>2]|0;e=k[(k[d+32>>2]|0)+88>>2]|0;f=((e|0)<0)<<31>>31;if(!((f|0)<(c|0)|(f|0)==(c|0)&e>>>0<b>>>0)){b=vg(b,c)|0;if(!b){Wd(a);b=0}}else{k[a+20>>2]=18;i[a+25>>0]=1;ah(d,10096,-1,1,0)|0;b=0}return b|0}function qo(a){a=a|0;var b=0,c=0,d=0,e=0;do if(a){b=i[a>>0]|0;c=b<<24>>24;if((c|0)==91)e=93;else if((c|0)==96|(c|0)==34|(c|0)==39)e=b;else break;c=1;d=0;while(1){b=i[a+c>>0]|0;if(b<<24>>24==e<<24>>24){c=c+1|0;b=a+d|0;if((i[a+c>>0]|0)!=e<<24>>24)break;i[b>>0]=e}else i[a+d>>0]=b;c=c+1|0;d=d+1|0}i[b>>0]=0}while(0);return}function ro(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,n=0,o=0,q=0.0,t=0.0,u=0.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;Q=r;r=r+176|0;if((r|0)>=(s|0))ka();N=Q+64|0;n=Q+132|0;j=Q+128|0;h=Q+124|0;o=Q+56|0;K=Q+48|0;O=Q+136|0;M=Q;g=d+0|0;f=g+48|0;do{k[g>>2]=0;g=g+4|0}while((g|0)<(f|0));a:do if(b){e=k[c>>2]|0;b:do if(((l[10064+(m[e+8>>1]&31)>>0]|0)+-1|0)>>>0>=2){g=Xg(e,1)|0;if(!g){e=1;break a}f=(i[g>>0]|0)==45;e=f?g+1|0:g;k[N>>2]=4;k[N+4>>2]=0;k[N+8>>2]=9999;k[N+12>>2]=45;k[N+16>>2]=n;k[N+20>>2]=2;k[N+24>>2]=1;k[N+28>>2]=12;k[N+32>>2]=45;k[N+36>>2]=j;k[N+40>>2]=2;k[N+44>>2]=1;k[N+48>>2]=31;k[N+52>>2]=0;k[N+56>>2]=h;do if((wq(e,N)|0)==3){e=e+10|0;while(1){H=i[e>>0]|0;if(H<<24>>24==84?1:(i[10368+(H&255)>>0]&1)!=0)e=e+1|0;else break}if(xq(e,d)|0){if(i[e>>0]|0)break;i[d+41>>0]=0}i[d+42>>0]=0;i[d+40>>0]=1;H=k[n>>2]|0;k[d+8>>2]=f?0-H|0:H;k[d+12>>2]=k[j>>2];k[d+16>>2]=k[h>>2];if(!(i[d+43>>0]|0))break b;so(d);break b}while(0);if(xq(g,d)|0){if(!(id(g,20080)|0))if(!(vq(a,d)|0))break;else{e=1;break a}else e=g;while(1)if(!(i[e>>0]|0))break;else e=e+1|0;if(!(Yl(g,o,e-g&1073741823,1)|0)){e=1;break a}q=+p[o>>3]*864.0e5+.5;G=+W(q)>=1.0?(q>0.0?~~+ia(+V(q/4294967296.0),4294967295.0)>>>0:~~+ga((q-+(~~q>>>0))/4294967296.0)>>>0):0;H=d;k[H>>2]=~~q>>>0;k[H+4>>2]=G;i[d+42>>0]=1}}else{q=+Zg(e)*864.0e5+.5;G=+W(q)>=1.0?(q>0.0?~~+ia(+V(q/4294967296.0),4294967295.0)>>>0:~~+ga((q-+(~~q>>>0))/4294967296.0)>>>0):0;H=d;k[H>>2]=~~q>>>0;k[H+4>>2]=G;i[d+42>>0]=1}while(0);if((b|0)>1){e=d+40|0;v=d+41|0;w=d+43|0;x=d+42|0;y=O+8|0;z=y;A=O+9|0;B=d+24|0;C=d+20|0;D=d+32|0;E=d+16|0;F=d+12|0;G=O+1|0;H=d+8|0;I=1;while(1){j=Xg(k[c+(I<<2)>>2]|0,1)|0;if(!j){e=1;break a}k[N>>2]=1;o=0;do{n=i[j+o>>0]|0;if(!(n<<24>>24))break;i[O+o>>0]=i[9328+(n&255)>>0]|0;o=o+1|0}while((o|0)<29);i[O+o>>0]=0;c:do switch(i[O>>0]|0){case 108:{if(!(dw(O,19936)|0)){so(d);f=yq(d,a,N)|0;P=d;f=ow(k[P>>2]|0,k[P+4>>2]|0,f|0,L|0)|0;P=d;k[P>>2]=f;k[P+4>>2]=L;i[e>>0]=0;i[v>>0]=0;i[w>>0]=0;P=82}else P=82;break}case 117:{if((dw(O,19952)|0)==0?(i[x>>0]|0)!=0:0){f=d;f=ow(k[f>>2]|0,k[f+4>>2]|0,43200,0)|0;f=vw(f|0,L|0,86400,0)|0;f=ow(f|0,L|0,1045635584,49096)|0;o=d;k[o>>2]=f;k[o+4>>2]=L;i[e>>0]=0;i[v>>0]=0;i[w>>0]=0;k[N>>2]=0;o=0;break c}if(!(dw(O,19968)|0)){so(d);n=yq(d,a,N)|0;j=L;o=k[N>>2]|0;if(!o){f=d;f=iw(k[f>>2]|0,k[f+4>>2]|0,n|0,j|0)|0;P=d;k[P>>2]=f;k[P+4>>2]=L;i[e>>0]=0;i[v>>0]=0;i[w>>0]=0;P=yq(d,a,N)|0;P=iw(n|0,j|0,P|0,L|0)|0;f=d;f=ow(P|0,L|0,k[f>>2]|0,k[f+4>>2]|0)|0;P=d;k[P>>2]=f;k[P+4>>2]=L;P=82}}else P=82;break}case 115:{if(!(ew(O,19992,9)|0)){to(d);i[v>>0]=1;k[B>>2]=0;k[C>>2]=0;p[D>>3]=0.0;i[w>>0]=0;i[x>>0]=0;if(!(dw(A,20008)|0)){k[E>>2]=1;k[N>>2]=0;o=0;break c}if(!(dw(A,20016)|0)){to(d);k[F>>2]=1;k[E>>2]=1;k[N>>2]=0;o=0;break c}if(!(dw(A,20024)|0)){k[N>>2]=0;o=0}else P=82}else P=82;break}case 119:{if(!(ew(O,19976,8)|0)){o=y;while(1)if(!(i[o>>0]|0))break;else o=o+1|0;if((Yl(y,K,o-z&1073741823,1)|0)!=0?(q=+p[K>>3],J=~~q,+(J|0)==q&(J|0)>-1&q<7.0):0){to(d);uo(d);i[w>>0]=0;i[x>>0]=0;so(d);f=d;o=k[f>>2]|0;f=k[f+4>>2]|0;j=ow(o|0,f|0,1296e5,0)|0;j=vw(j|0,L|0,864e5,0)|0;j=ww(j|0,L|0,7,0)|0;g=L;R=((J|0)<0)<<31>>31;h=(g|0)>(R|0)|(g|0)==(R|0)&j>>>0>J>>>0;n=ow(j|0,g|0,-7,-1)|0;g=iw(J|0,R|0,(h?n:j)|0,(h?L:g)|0)|0;g=xw(g|0,L|0,864e5,0)|0;f=ow(g|0,L|0,o|0,f|0)|0;o=d;k[o>>2]=f;k[o+4>>2]=L;i[e>>0]=0;i[v>>0]=0;i[w>>0]=0;k[N>>2]=0;o=0}else P=82}else P=82;break}case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:case 45:case 43:{j=1;while(1){o=O+j|0;n=i[o>>0]|0;if(n<<24>>24==58|n<<24>>24==0){n=o;break}if(!(i[10368+(n&255)>>0]&1))j=j+1|0;else{n=o;break}}if(!(Yl(O,K,j,1)|0)){k[N>>2]=1;o=1;break c}o=i[n>>0]|0;if(o<<24>>24==58){o=((l[O>>0]|0)+-48|0)>>>0<10?O:G;g=M+0|0;f=g+48|0;do{k[g>>2]=0;g=g+4|0}while((g|0)<(f|0));if(xq(o,M)|0){P=82;break c}so(M);o=M;o=ow(k[o>>2]|0,k[o+4>>2]|0,-432e5,-1)|0;o=ww(o|0,L|0,864e5,0)|0;n=L;f=M;k[f>>2]=o;k[f+4>>2]=n;if((i[O>>0]|0)==45){o=iw(0,0,o|0,n|0)|0;n=L;f=M;k[f>>2]=o;k[f+4>>2]=n}so(d);i[e>>0]=0;i[v>>0]=0;i[w>>0]=0;f=d;f=ow(k[f>>2]|0,k[f+4>>2]|0,o|0,n|0)|0;o=d;k[o>>2]=f;k[o+4>>2]=L;k[N>>2]=0;o=0;break c}if(i[10368+(o&255)>>0]&1){n=O+(j+1)|0;while(1){o=i[n>>0]|0;if(!(i[10368+(o&255)>>0]&1))break;else n=n+1|0}}if(!(o<<24>>24))o=n;else{o=n;do o=o+1|0;while((i[o>>0]|0)!=0)}o=o-n&1073741823;if((o+-3|0)>>>0>7)P=82;else{j=o+-1|0;h=n+j|0;if((i[h>>0]|0)==115){i[h>>0]=0;o=j}so(d);k[N>>2]=0;t=+p[K>>3];u=t<0.0?-.5:.5;do if((o|0)==6){if(!(dw(n,20040)|0)){q=t*6.0e4+u;g=+W(q)>=1.0?(q>0.0?~~+ia(+V(q/4294967296.0),4294967295.0)>>>0:~~+ga((q-+(~~q>>>0))/4294967296.0)>>>0):0;f=d;g=ow(k[f>>2]|0,k[f+4>>2]|0,~~q>>>0|0,g|0)|0;f=d;k[f>>2]=g;k[f+4>>2]=L;break}if(!(dw(n,20048)|0)){q=t*1.0e3+u;g=+W(q)>=1.0?(q>0.0?~~+ia(+V(q/4294967296.0),4294967295.0)>>>0:~~+ga((q-+(~~q>>>0))/4294967296.0)>>>0):0;f=d;g=ow(k[f>>2]|0,k[f+4>>2]|0,~~q>>>0|0,g|0)|0;f=d;k[f>>2]=g;k[f+4>>2]=L}else P=80}else if((o|0)==5)if(!(dw(n,20008)|0)){to(d);uo(d);f=~~t;g=(k[F>>2]|0)+f|0;h=(((g|0)>0?-1:-12)+g|0)/12|0;k[H>>2]=(k[H>>2]|0)+h;g=(ha(h,-12)|0)+g|0;k[F>>2]=g;i[x>>0]=0;so(d);q=+(f|0);if(q!=t){q=u+(t-q)*30.0*864.0e5;g=+W(q)>=1.0?(q>0.0?~~+ia(+V(q/4294967296.0),4294967295.0)>>>0:~~+ga((q-+(~~q>>>0))/4294967296.0)>>>0):0;f=d;g=ow(k[f>>2]|0,k[f+4>>2]|0,~~q>>>0|0,g|0)|0;f=d;k[f>>2]=g;k[f+4>>2]=L}}else P=80;else if((o|0)==3)if(!(dw(n,20024)|0)){q=t*864.0e5+u;g=+W(q)>=1.0?(q>0.0?~~+ia(+V(q/4294967296.0),4294967295.0)>>>0:~~+ga((q-+(~~q>>>0))/4294967296.0)>>>0):0;f=d;g=ow(k[f>>2]|0,k[f+4>>2]|0,~~q>>>0|0,g|0)|0;f=d;k[f>>2]=g;k[f+4>>2]=L}else P=80;else if((o|0)==4){if(!(dw(n,20032)|0)){q=t*36.0e5+u;g=+W(q)>=1.0?(q>0.0?~~+ia(+V(q/4294967296.0),4294967295.0)>>>0:~~+ga((q-+(~~q>>>0))/4294967296.0)>>>0):0;f=d;g=ow(k[f>>2]|0,k[f+4>>2]|0,~~q>>>0|0,g|0)|0;f=d;k[f>>2]=g;k[f+4>>2]=L;break}if(!(dw(n,20016)|0)){f=~~t;to(d);uo(d);k[H>>2]=(k[H>>2]|0)+f;i[x>>0]=0;so(d);q=+(f|0);if(q!=t){q=u+(t-q)*365.0*864.0e5;g=+W(q)>=1.0?(q>0.0?~~+ia(+V(q/4294967296.0),4294967295.0)>>>0:~~+ga((q-+(~~q>>>0))/4294967296.0)>>>0):0;f=d;g=ow(k[f>>2]|0,k[f+4>>2]|0,~~q>>>0|0,g|0)|0;f=d;k[f>>2]=g;k[f+4>>2]=L}}else P=80}else P=80;while(0);if((P|0)==80)k[N>>2]=1;i[e>>0]=0;i[v>>0]=0;i[w>>0]=0;P=82}break}default:P=82}while(0);if((P|0)==82){P=0;o=k[N>>2]|0}I=I+1|0;if(o){e=1;break a}if((I|0)>=(b|0)){e=0;break a}}}else e=0}else e=vq(a,d)|0;while(0);r=Q;return e|0}function so(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0.0;f=a+42|0;if(!(i[f>>0]|0)){g=a+40|0;if(i[g>>0]|0){c=k[a+8>>2]|0;b=k[a+12>>2]|0;d=k[a+16>>2]|0;if((b|0)<3)e=4}else{d=1;b=1;c=2e3;e=4}if((e|0)==4){b=b+12|0;c=c+-1|0}m=(+(d+2+((c|0)/-100|0)+((c|0)/400|0)+(((c*36525|0)+172251900|0)/100|0)+(((b*306001|0)+306001|0)/1e4|0)|0)+-1524.5)*864.0e5;c=~~m>>>0;d=+W(m)>=1.0?(m>0.0?~~+ia(+V(m/4294967296.0),4294967295.0)>>>0:~~+ga((m-+(~~m>>>0))/4294967296.0)>>>0):0;b=a;k[b>>2]=c;k[b+4>>2]=d;i[f>>0]=1;b=a+41|0;if((i[b>>0]|0)!=0?(h=ha(k[a+20>>2]|0,36e5)|0,h=((k[a+24>>2]|0)*6e4|0)+h|0,m=+p[a+32>>3]*1.0e3,j=ow(~~m>>>0|0,(+W(m)>=1.0?(m>0.0?~~+ia(+V(m/4294967296.0),4294967295.0)>>>0:~~+ga((m-+(~~m>>>0))/4294967296.0)>>>0):0)|0,c|0,d|0)|0,h=ow(j|0,L|0,h|0,((h|0)<0)<<31>>31|0)|0,j=L,l=a,k[l>>2]=h,k[l+4>>2]=j,l=a+43|0,(i[l>>0]|0)!=0):0){d=(k[a+28>>2]|0)*6e4|0;d=iw(h|0,j|0,d|0,((d|0)<0)<<31>>31|0)|0;c=a;k[c>>2]=d;k[c+4>>2]=L;i[g>>0]=0;i[b>>0]=0;i[l>>0]=0}}return}function to(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;e=a+40|0;if(!(i[e>>0]|0)){if(!(i[a+42>>0]|0)){b=2e3;c=1;d=1}else{b=a;b=ow(k[b>>2]|0,k[b+4>>2]|0,432e5,0)|0;b=vw(b|0,L|0,864e5,0)|0;f=~~((+(b|0)+-1867216.25)/36524.25);f=b+1525+f+((f|0)/-4|0)|0;b=~~((+(f|0)+-122.1)/365.25);f=f-((b*36525|0)/100|0)|0;d=~~(+(f|0)/30.6001);c=((d|0)<14?-1:-13)+d|0;b=((c|0)>2?-4716:-4715)+b|0;d=f-~~(+(d|0)*30.6001)|0}k[a+16>>2]=d;k[a+12>>2]=c;k[a+8>>2]=b;i[e>>0]=1}return}function uo(a){a=a|0;var b=0,c=0.0,d=0,e=0,f=0;b=a+41|0;if(!(i[b>>0]|0)){so(a);f=a;f=ow(k[f>>2]|0,k[f+4>>2]|0,432e5,0)|0;f=ww(f|0,L|0,864e5,0)|0;c=+(f|0)/1.0e3;f=~~c;e=(f|0)/3600|0;k[a+20>>2]=e;e=(ha(e,-3600)|0)+f|0;d=(e|0)/60|0;k[a+24>>2]=d;c=c-+(f|0)+ +(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=rh(a,c,d)|0;if(!e){e=0;break}pw(e|0,b|0,m[f>>1]|0)|0;rg(a,b);break}if((Qc()|0)==0?(e=wg(b,c,d)|0,(e|0)!=0):0)break;i[f>>0]=1;e=0}else e=0;while(0);return e|0}function xo(a,b){a=a|0;b=b|0;var c=0,d=0;if(!a)a=0;else{d=k[a+4>>2]|0;k[d+4>>2]=k[a>>2];d=d+22|0;a=j[d>>1]|0;if((b|0)>-1){c=a&65535;a=c&65531;j[d>>1]=a;if(b){a=(c|4)&65535;j[d>>1]=a}}a=(a&65535)>>>2&1}return a|0}function yo(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=k[a+4>>2]|0;k[e+4>>2]=k[a>>2];e=k[e>>2]|0;c=b&3;if((c|0)!=1){d=i[e+12>>0]|0;a=e+7|0;i[a>>0]=d<<24>>24!=0&1;if((c|0)==3)d=d<<24>>24==0&1;else d=0}else{a=e+7|0;i[a>>0]=1;d=0}i[e+8>>0]=d;do if(!(i[a>>0]|0)){if(b&4){i[e+11>>0]=3;i[e+9>>0]=3;a=3;break}i[e+11>>0]=2;a=e+9|0;if(!(b&8)){i[a>>0]=2;a=2;break}else{i[a>>0]=3;a=2;break}}else{i[e+11>>0]=0;i[e+9>>0]=0;a=0}while(0);if(d<<24>>24)a=(a&255|32)&255;i[e+10>>0]=a;a=e+20|0;c=l[a>>0]|0;i[a>>0]=(b&16|0)==0?c|1:c&254;return}function zo(a){a=a|0;var b=0,c=0;c=a+12|0;b=k[c>>2]|0;if((b|0)>-1){go(a,b,27311);k[c>>2]=-1}$c(k[a+28>>2]|0);b=a+0|0;c=b+44|0;do{k[b>>2]=0;b=b+4|0}while((b|0)<(c|0));return}function Ao(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,i=0;h=e&131071;while(1){g=hb(a|0,b|0,0)|0;if(!((g|0)==(b|0)&(((g|0)<0)<<31>>31|0)==(c|0))){i=3;break}g=fc[k[47552+136>>2]&63](a,d,h)|0;if((g|0)>=0)break;e=Mb()|0;e=k[e>>2]|0;if((e|0)!=4){i=9;break}}if((i|0)==3)if(!f)g=-1;else{if((g|0)==-1){g=Mb()|0;g=k[g>>2]|0}else g=0;k[f>>2]=g;g=-1}else if((i|0)==9)if(f)k[f>>2]=e;return g|0}function Bo(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=k[c>>2]|0;do if((d|0)>=0){b=b&255;if(!d){c=a+18|0;j[c>>1]=(m[c>>1]|0)&(b^65535);break}else{c=a+18|0;j[c>>1]=m[c>>1]|0|b;break}}else k[c>>2]=((m[a+18>>1]|0)&(b&255)|0)!=0&1;while(0);return}function Co(a){a=a|0;var b=0,c=0,d=0;d=r;r=r+80|0;if((r|0)>=(s|0))ka();c=d;b=a+8|0;if(k[b>>2]|0)if(!(wc[k[47552+52>>2]&127](k[a+32>>2]|0,c)|0))b=(k[c+72>>2]|0)!=(k[(k[b>>2]|0)+4>>2]|0);else b=1;else b=0;r=d;return b&1|0}function Do(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+32|0;if((r|0)>=(s|0))ka();g=h;f=h+8|0;e=(k[(k[a+8>>2]|0)+20>>2]|0)+12|0;if((k[e>>2]|0)>-1){k[f+0>>2]=0;k[f+4>>2]=0;k[f+8>>2]=0;k[f+12>>2]=0;j[f>>1]=b;j[f+2>>1]=0;k[f+4>>2]=c;k[f+8>>2]=d;b=a+18|0;d=((j[b>>1]&512)>>>9)+13|0;c=k[11910]|0;e=k[e>>2]|0;k[g>>2]=f;e=(fc[c&63](e,d,g)|0)!=-1;j[b>>1]=(m[b>>1]|0)&65023;e=e?0:5}else e=0;r=h;return e|0}function Eo(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;h=k[(k[a+8>>2]|0)+20>>2]|0;if((h|0)!=0?(k[h+28>>2]|0)==0:0){b=mc[k[47552+292>>2]&7]()|0;if((b|0)<32768)d=1;else d=(b|0)/32768|0;e=h+20|0;if(!(j[e>>1]|0)){c=h+12|0;b=h+24|0}else{c=h+12|0;b=h+24|0;f=h+16|0;g=0;do{if((k[c>>2]|0)>-1)wc[k[47552+268>>2]&127](k[(k[b>>2]|0)+(g<<2)>>2]|0,k[f>>2]|0)|0;else $c(k[(k[b>>2]|0)+(g<<2)>>2]|0);g=g+d|0}while((g|0)<(m[e>>1]|0))}$c(k[b>>2]|0);b=k[c>>2]|0;if((b|0)>-1){go(a,b,29591);k[c>>2]=-1}k[(k[h>>2]|0)+20>>2]=0;$c(h)}return}function Fo(a){a=a|0;var b=0,c=0,d=0;c=(k[a+8>>2]|0)+28|0;b=k[c>>2]|0;if(b)do{d=b;b=k[b+8>>2]|0;go(a,k[d>>2]|0,26573);$c(d)}while((b|0)!=0);k[c>>2]=0;return}function Go(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;g=r;r=r+32|0;if((r|0)>=(s|0))ka();e=g;d=g+8|0;f=k[a+8>>2]|0;c=j[a+18>>1]|0;if(!(c&1))if((i[f+13>>0]|0)!=0&(c&2)==0)c=4;else c=7;else if(!(c&2))c=4;else c=7;if((c|0)==4){c=f+13|0;if(!(i[c>>0]|0)){j[d+2>>1]=0;k[d+4>>2]=(k[2514]|0)+2;k[d+8>>2]=510;j[d>>1]=1;h=k[11910]|0;b=k[a+12>>2]|0;k[e>>2]=d;b=fc[h&63](b,13,e)|0;if((b|0)>=0){i[c>>0]=1;c=f+24|0;k[c>>2]=(k[c>>2]|0)+1}}else b=0}else if((c|0)==7){d=k[11910]|0;c=k[a+12>>2]|0;k[e>>2]=b;b=fc[d&63](c,13,e)|0}r=g;return b|0}function Ho(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;do if(b){e=k[b>>2]|0;if(!e){k[b>>2]=1;k[b+4>>2]=c;f=9;break}g=b+4|0;d=k[g>>2]|0;k[b>>2]=e+1;k[g>>2]=c;if(d){k[c>>2]=d;d=d+4|0;k[c+4>>2]=k[d>>2];e=k[d>>2]|0;if(!e)k[a+8>>2]=c;else k[e>>2]=c;k[d>>2]=c}else f=9}else f=9;while(0);if((f|0)==9){d=a+8|0;e=k[d>>2]|0;k[c>>2]=e;if(e)k[e+4>>2]=c;k[c+4>>2]=0;k[d>>2]=c}return}function Io(a,b){a=a|0;b=b|0;var c=0,d=0;if(b){if((k[b>>2]|0)>0){c=0;d=b+8|0;while(1){rg(a,k[d+4>>2]|0);rg(a,k[d+8>>2]|0);rg(a,k[d+12>>2]|0);rg(a,k[d+64>>2]|0);pg(a,k[d+16>>2]|0);Rk(a,k[d+20>>2]|0,1);Lk(a,k[d+44>>2]|0);Mk(a,k[d+48>>2]|0);c=c+1|0;if((c|0)>=(k[b>>2]|0))break;else d=d+72|0}}rg(a,b)}return}function Jo(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;c=Ko(a,c)|0;if((c|0)>0){d=a+12|0;pw((k[a+8>>2]|0)+(k[d>>2]|0)|0,b|0,c|0)|0;k[d>>2]=(k[d>>2]|0)+c}return}function Ko(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,n=0,o=0,p=0,q=0,r=0;f=a+25|0;do if(!(i[f>>0]|0)){d=i[a+24>>0]|0;if(!(d<<24>>24)){c=a+16|0;b=(k[c>>2]|0)+-1-(k[a+12>>2]|0)|0;i[f>>0]=2;k[c>>2]=0;break}g=a+8|0;e=k[g>>2]|0;e=(e|0)==(k[a+4>>2]|0)?0:e;h=a+12|0;o=k[h>>2]|0;c=((o|0)<0)<<31>>31;r=b+1|0;r=ow(o|0,c|0,r|0,((r|0)<0)<<31>>31|0)|0;p=L;c=ow(r|0,p|0,o|0,c|0)|0;o=L;l=k[a+20>>2]|0;n=((l|0)<0)<<31>>31;q=(o|0)>(n|0)|(o|0)==(n|0)&c>>>0>l>>>0;c=q?r:c;o=q?p:o;if((o|0)>(n|0)|(o|0)==(n|0)&c>>>0>l>>>0){mn(a);i[f>>0]=2;k[a+16>>2]=0;b=0;break}l=a+16|0;k[l>>2]=c;if(d<<24>>24==1)d=wo(k[a>>2]|0,e,c,((c|0)<0)<<31>>31)|0;else d=ad(e,c)|0;if(!d){mn(a);i[f>>0]=1;k[l>>2]=0;b=0;break}if((e|0)==0?(j=k[h>>2]|0,(j|0)>0):0)pw(d|0,k[g>>2]|0,j|0)|0;k[g>>2]=d;c=k[a>>2]|0;do if(!c)c=qc[k[8744+48>>2]&127](d)|0;else{if((k[c+276>>2]|0)>>>0<=d>>>0?(k[c+280>>2]|0)>>>0>d>>>0:0){c=m[c+248>>1]|0;break}c=qc[k[8744+48>>2]&127](d)|0}while(0);k[l>>2]=c}else b=0;while(0);return b|0}function Lo(a){a=a|0;var b=0,c=0;if((k[3154]|0)>=(a|0)?(b=k[3160]|0,(b|0)!=0):0){k[3160]=k[b>>2];c=k[3161]|0;k[3161]=c+-1;k[3162]=(c|0)<=(k[3156]|0)&1;k[2173]=a;if((k[2183]|0)>>>0<a>>>0)k[2183]=a;c=(k[2167]|0)+1|0;k[2167]=c;if(c>>>0>(k[2177]|0)>>>0)k[2177]=c}else{b=vg(a,((a|0)<0)<<31>>31)|0;if(b){c=qc[k[8744+48>>2]&127](b)|0;k[2173]=a;if((k[2183]|0)>>>0<a>>>0)k[2183]=a;c=(k[2168]|0)+c|0;k[2168]=c;if(c>>>0>(k[2178]|0)>>>0)k[2178]=c}else b=0}return b|0}function Mo(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;f=a+20|0;if(k[f>>2]|0){d=a+24|0;g=fc[k[8744+120>>2]&63](b,(k[d>>2]|0)+40|0,l[a+28>>0]|0)|0;if(!g)c=7;else{e=k[2217]|0;c=k[a+16>>2]|0;if((c|0)<=-1){h=xw(c|0,((c|0)<0)<<31>>31|0,-1024,-1)|0;c=(k[d>>2]|0)+(k[f>>2]|0)|0;c=vw(h|0,L|0,c|0,((c|0)<0)<<31>>31|0)|0}oc[e&15](g,c);c=a+40|0;d=k[c>>2]|0;if(d)hc[k[8744+148>>2]&31](d);k[c>>2]=g;k[a+44>>2]=0;k[f>>2]=b;c=0}}else c=0;return c|0}function No(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;d=k[a+208>>2]|0;if(((d|0)!=0?(j[d+40>>1]|0)>-1:0)?(c=k[d+72>>2]|0,(c|0)!=0):0){d=c;f=8}else f=4;do if((f|0)==4){d=e;k[d>>2]=0;k[d+4>>2]=0;d=k[a+60>>2]|0;c=k[d>>2]|0;if(!c){c=-1;d=-1}else{c=wc[k[c+24>>2]&127](d,e)|0;if(c)break;c=e;c=ow(k[c>>2]|0,k[c+4>>2]|0,-1,-1)|0;d=L}e=k[a+152>>2]|0;f=((e|0)<0)<<31>>31;d=ow(c|0,d|0,e|0,f|0)|0;d=vw(d|0,L|0,e|0,f|0)|0;f=8}while(0);if((f|0)==8){c=a+156|0;if(d>>>0>(k[c>>2]|0)>>>0)k[c>>2]=d;k[b>>2]=d;c=0}r=g;return c|0}function Oo(a){a=a|0;var b=0,c=0;c=a+64|0;if(!((i[a+7>>0]|0)==0?(b=k[c>>2]|0,b=wc[k[(k[b>>2]|0)+20>>2]&127](b,2)|0,(b|0)!=0):0)){b=k[c>>2]|0;b=wc[k[(k[b>>2]|0)+24>>2]&127](b,a+80|0)|0}return b|0}function Po(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,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;F=r;r=r+48|0;if((r|0)>=(s|0))ka();D=F+16|0;C=F+8|0;B=F+36|0;w=F;v=F+32|0;u=F+28|0;A=F+24|0;e=k[a>>2]|0;k[u>>2]=0;k[A>>2]=1;y=a+64|0;c=k[y>>2]|0;c=wc[k[(k[c>>2]|0)+24>>2]&127](c,w)|0;a:do if(!c){x=a+200|0;d=k[x>>2]|0;c=zq(k[y>>2]|0,d,(k[(k[a>>2]|0)+8>>2]|0)+1|0)|0;if(!c){if(!(i[d>>0]|0))c=0;else c=uc[k[e+32>>2]&31](e,d,0,A)|0;b:do if((c|0)==0&(k[A>>2]|0)!=0){t=a+72|0;p=t;k[p>>2]=0;k[p+4>>2]=0;p=a+148|0;g=a+152|0;l=a+80|0;n=a+24|0;d=0;q=b;c:while(1){do{c=w;c=Aq(a,b,k[c>>2]|0,k[c+4>>2]|0,v,u)|0;if((c|0)==101)break c;else if(c){E=27;break b}e=k[v>>2]|0;if((e|0)==-1){o=w;o=iw(k[o>>2]|0,k[o+4>>2]|0,k[p>>2]|0,0)|0;e=(k[g>>2]|0)+8|0;e=vw(o|0,L|0,e|0,((e|0)<0)<<31>>31|0)|0;k[v>>2]=e}if(!(e|b)){f=l;h=k[p>>2]|0;f=ow(h|0,0,k[f>>2]|0,k[f+4>>2]|0)|0;m=L;j=t;o=k[j>>2]|0;j=k[j+4>>2]|0;if((f|0)==(o|0)&(m|0)==(j|0)){j=w;j=iw(k[j>>2]|0,k[j+4>>2]|0,f|0,m|0)|0;e=(k[g>>2]|0)+8|0;e=vw(j|0,L|0,e|0,((e|0)<0)<<31>>31|0)|0;k[v>>2]=e;j=m}else f=o}else{f=t;h=k[p>>2]|0;j=k[f+4>>2]|0;f=k[f>>2]|0}if((f|0)==(h|0)&(j|0)==0){f=k[u>>2]|0;c=Gl(a,f)|0;if(c){E=25;break a}k[n>>2]=f}}while((e|0)==0);c=q;f=0;while(1){if(c)Cn(a);c=Bq(a,t,0,1,0)|0;if((c|0)==101)break;else if((c|0)==522)break c;else if(c){E=27;break b}d=d+1|0;f=f+1|0;if(f>>>0<e>>>0)c=0;else{q=0;continue c}}c=w;o=k[c+4>>2]|0;q=t;k[q>>2]=k[c>>2];k[q+4>>2]=o;q=0}i[a+18>>0]=i[a+12>>0]|0;u=d}else{d=0;E=27}while(0);if((E|0)==27){i[a+18>>0]=i[a+12>>0]|0;if(!c)u=d;else break}t=k[x>>2]|0;c=zq(k[y>>2]|0,t,(k[(k[a>>2]|0)+8>>2]|0)+1|0)|0;if(!c){if(((i[a+16>>0]|0)+-1&255)>2?(z=Ng(a,0)|0,(z|0)!=0):0){d=u;c=z;break}c=Hl(a,(i[t>>0]|0)!=0&1,0)|0;if(!c)if((i[t>>0]|0)!=0&(k[A>>2]|0)!=0){p=k[a>>2]|0;d=p+4|0;c=k[d>>2]<<1;q=vg(c,((c|0)<0)<<31>>31)|0;if(!q){d=u;c=7}else{kw(q|0,0,c|0)|0;n=q+(k[d>>2]|0)|0;o=p+24|0;c=yc[k[o>>2]&31](p,t,q,16385,0)|0;d:do if(!c){c=wc[k[(k[q>>2]|0)+24>>2]&127](q,C)|0;if(!c){l=(k[p+8>>2]|0)+1|0;d=C;d=ow(k[d>>2]|0,k[d+4>>2]|0,1,0)|0;d=ow(d|0,L|0,l|0,((l|0)<0)<<31>>31|0)|0;d=vg(d,L)|0;if(d){m=C;c=k[m>>2]|0;m=ow(c|0,k[m+4>>2]|0,1,0)|0;m=d+m|0;c=yc[k[(k[q>>2]|0)+8>>2]&31](q,d,c,0,0)|0;if(!c){i[d+(k[C>>2]|0)>>0]=0;g=d;A=C;z=k[A+4>>2]|0;if((z|0)>0|(z|0)==0&(k[A>>2]|0)>>>0>0){h=p+32|0;f=g;j=d;do{c=uc[k[h>>2]&31](p,j,0,B)|0;if(c){E=55;break d}do if(k[B>>2]|0){c=yc[k[o>>2]&31](p,j,n,2049,0)|0;if(c){E=55;break d}c=zq(n,m,l)|0;e=k[n>>2]|0;if(e){qc[k[e+4>>2]&127](n)|0;k[n>>2]=0}if(c){E=55;break d}if(!(i[m>>0]|0))break;if(!(dw(m,t)|0)){c=0;E=55;break d}}while(0);if(!j)e=1;else{e=j;while(1)if(!(i[e>>0]|0))break;else e=e+1|0;e=(e-f&1073741823)+1|0}j=j+e|0;f=j;z=f-g|0;x=((z|0)<0)<<31>>31;A=C;y=k[A+4>>2]|0}while((x|0)<(y|0)|((x|0)==(y|0)?z>>>0<(k[A>>2]|0)>>>0:0))}c=k[q>>2]|0;if(c){qc[k[c+4>>2]&127](q)|0;k[q>>2]=0}c=fc[k[p+28>>2]&63](p,t,0)|0;$c(d)}else E=55}else{c=7;d=0;E=55}}else{d=0;E=55}}else{d=0;E=55}while(0);if((E|0)==55)$c(d);d=k[q>>2]|0;if(d){qc[k[d+4>>2]&127](q)|0;k[q>>2]=0}$c(q);d=u}}else{d=u;c=0}else d=u}else d=u}else{d=0;E=25}}else{d=0;E=25}while(0);if((E|0)==25)i[a+18>>0]=i[a+12>>0]|0;if((b|0)!=0&(d|0)!=0){B=k[a+172>>2]|0;k[D>>2]=d;k[D+4>>2]=B;gd(539,14776,D)}Bp(a);r=F;return c|0}function Qo(a){a=a|0;var b=0,c=0;b=a+44|0;if(i[b>>0]|0){if(!(i[a+43>>0]|0)){c=k[a+4>>2]|0;uc[k[(k[c>>2]|0)+56>>2]&31](c,0,1,9)|0}i[b>>0]=0;i[a+47>>0]=0}b=a+40|0;c=j[b>>1]|0;if(c<<16>>16>-1){if(!(i[a+43>>0]|0)){a=k[a+4>>2]|0;uc[k[(k[a>>2]|0)+56>>2]&31](a,(c<<16>>16)+3|0,1,5)|0}j[b>>1]=-1}return}function Ro(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((d|0)>5)if((d|0)>100)c=15;else{if((d|0)>9){d=d+-9|0;d=ha(d*39|0,d)|0}else d=1;e=k[a>>2]|0;wc[k[e+60>>2]&127](e,d)|0;e=6}else e=6;a:do if((e|0)==6){do if(!c){c=sq(a,b)|0;do if((c|0)==5){if(!(k[k[a+32>>2]>>2]|0)){c=-1;break a}b=a+43|0;if(i[b>>0]|0){c=-1;break a}d=a+4|0;c=k[d>>2]|0;c=uc[k[(k[c>>2]|0)+56>>2]&31](c,2,1,6)|0;if((c|0)==5){c=261;break a}else if(c)break;if(i[b>>0]|0){c=-1;break a}c=k[d>>2]|0;uc[k[(k[c>>2]|0)+56>>2]&31](c,2,1,5)|0;c=-1;break a}while(0);if(c)break a;d=a+32|0;g=(k[k[d>>2]>>2]|0)+96|0;b=a+52|0;if((k[g>>2]|0)==(k[a+68>>2]|0)){f=a+43|0;e=i[f>>0]|0;if(!(e<<24>>24)){c=k[a+4>>2]|0;c=uc[k[(k[c>>2]|0)+56>>2]&31](c,3,1,6)|0;e=i[f>>0]|0}else c=0;if(e<<24>>24!=2){n=k[a+4>>2]|0;hc[k[(k[n>>2]|0)+60>>2]&31](n)}if((c|0)==5){n=d;d=5;break}else if(c)break a;if(!(cw(k[k[d>>2]>>2]|0,b,48)|0)){j[a+40>>1]=0;c=0;break a}if(i[f>>0]|0){c=-1;break a}c=k[a+4>>2]|0;uc[k[(k[c>>2]|0)+56>>2]&31](c,3,1,5)|0;c=-1;break a}else{n=d;d=0}}else{g=a+32|0;n=g;g=(k[k[g>>2]>>2]|0)+96|0;d=0}while(0);m=a+68|0;b=k[g+8>>2]|0;f=b>>>0>(k[m>>2]|0)>>>0;b=f?0:b;f=f&1^1;e=k[g+12>>2]|0;if(b>>>0<=e>>>0){l=e>>>0>(k[m>>2]|0)>>>0;f=l?f:2;b=l?b:e}e=k[g+16>>2]|0;if(b>>>0<=e>>>0){l=e>>>0>(k[m>>2]|0)>>>0;f=l?f:3;b=l?b:e}e=k[g+20>>2]|0;if(b>>>0<=e>>>0){l=e>>>0>(k[m>>2]|0)>>>0;f=l?f:4;b=l?b:e}b:do if((i[a+46>>0]&2)==0?((f|0)==0?1:b>>>0<(k[m>>2]|0)>>>0):0){l=a+43|0;h=a+4|0;e=1;while(1){d=e+3|0;if(i[l>>0]|0){f=e;break}c=k[h>>2]|0;c=uc[k[(k[c>>2]|0)+56>>2]&31](c,d,1,10)|0;if(!c){f=e;break}else if((c|0)!=5)break a;e=e+1|0;if((e|0)>=5){d=5;break b}}e=k[m>>2]|0;k[g+(f<<2)+4>>2]=e;if(!(i[l>>0]|0)){b=k[h>>2]|0;uc[k[(k[b>>2]|0)+56>>2]&31](b,d,1,9)|0;b=e;d=0}else{b=e;d=0}}while(0);if(!f){c=(d|0)==5?-1:520;break}d=f+3|0;c=a+43|0;e=i[c>>0]|0;do if(!(e<<24>>24)){e=k[a+4>>2]|0;e=uc[k[(k[e>>2]|0)+56>>2]&31](e,d,1,6)|0;if(!e){e=i[c>>0]|0;break}else{c=(e|0)==5?-1:e;break a}}while(0);if(e<<24>>24!=2){m=k[a+4>>2]|0;hc[k[(k[m>>2]|0)+60>>2]&31](m)}if((k[g+(f<<2)+4>>2]|0)==(b|0)?(cw(k[k[n>>2]>>2]|0,a+52|0,48)|0)==0:0){j[a+40>>1]=f;c=0;break}if(!(i[c>>0]|0)){c=k[a+4>>2]|0;uc[k[(k[c>>2]|0)+56>>2]&31](c,d,1,5)|0;c=-1}else c=-1}while(0);return c|0}function So(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;c=a+56|0;ji(k[c>>2]|0);k[c>>2]=0;hp(a);c=k[a+208>>2]|0;if(!c){if(!(i[a+4>>0]|0)){d=a+60|0;c=k[d>>2]|0;b=k[c>>2]|0;if(!(((b|0)!=0?((qc[k[b+48>>2]&127](c)|0)&2048|0)!=0:0)?(i[a+5>>0]&5)==1:0))g=7;if((g|0)==7?(e=k[a+64>>2]|0,f=k[e>>2]|0,(f|0)!=0):0){qc[k[f+4>>2]&127](e)|0;k[e>>2]=0}b=k[d>>2]|0;c=k[b>>2]|0;if(c){if(!(i[a+13>>0]|0))b=wc[k[c+32>>2]&127](b,0)|0;else b=0;c=a+17|0;if((i[c>>0]|0)!=5)i[c>>0]=0;if((b|0)!=0?(i[a+16>>0]|0)==6:0)i[c>>0]=5}i[a+18>>0]=0;i[a+16>>0]=0}}else{Qo(c);i[a+16>>0]=0}b=a+40|0;if(k[b>>2]|0){Cn(a);i[a+18>>0]=i[a+12>>0]|0;i[a+16>>0]=0;k[b>>2]=0}b=a+72|0;i[a+19>>0]=0;k[b+0>>2]=0;k[b+4>>2]=0;k[b+8>>2]=0;k[b+12>>2]=0;return}function To(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=k[c+4>>2]|0;e=d+0|0;f=e+40|0;do{k[e>>2]=0;e=e+4|0}while((e|0)<(f|0));k[d>>2]=c;k[d+4>>2]=k[c>>2];e=d+40|0;k[d+8>>2]=e;kw(e|0,0,k[a+24>>2]|0)|0;k[d+28>>2]=a;k[d+20>>2]=b;return nl(a,b,c)|0}function Uo(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;i=r;r=r+16|0;if((r|0)>=(s|0))ka();f=i;g=Cq(a,b,f)|0;if(!g){h=k[f>>2]|0;if(!b){a=h+136|0;k[f>>2]=a;f=a;a=0}else{f=h;a=(b<<12)+-34|0}k[d>>2]=f+-4;k[c>>2]=h+16384;k[e>>2]=a}r=i;return g|0}function Vo(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;h=k[a+28>>2]|0;g=b&255;if(g&1){c=h+8|0;if((k[c>>2]|0)==(a|0)){b=a;do{b=k[b+36>>2]|0;if(!b){b=0;break}}while((j[b+24>>1]&4)!=0);k[c>>2]=b}b=a+32|0;d=k[b>>2]|0;e=(d|0)==0;f=a+36|0;c=k[f>>2]|0;if(e)k[h+4>>2]=c;else k[d+36>>2]=c;c=k[f>>2]|0;if(!c){k[h>>2]=d;if(e?(i[h+28>>0]|0)!=0:0)i[h+29>>0]=2}else k[c+32>>2]=d;k[b>>2]=0;k[f>>2]=0}if(g&2){b=k[h>>2]|0;k[a+32>>2]=b;if(!b){k[h+4>>2]=a;if(i[h+28>>0]|0)i[h+29>>0]=1}else k[b+36>>2]=a;k[h>>2]=a;b=h+8|0;if((k[b>>2]|0)==0?(j[a+24>>1]&4)==0:0)k[b>>2]=a}return}function Wo(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;c=b>>>3;d=c&255;i[a+5>>0]=d;b=b&-9;i[a+7>>0]=4-(c<<2);c=k[a+52>>2]|0;if((b|0)==2){i[a+2>>0]=0;i[a+3>>0]=0;i[a+4>>0]=0;j[a+10>>1]=j[c+24>>1]|0;j[a+12>>1]=j[c+26>>1]|0;f=5}else if((b|0)==5){i[a+2>>0]=1;i[a+3>>0]=d;i[a+4>>0]=d<<24>>24==0&1;j[a+10>>1]=j[c+28>>1]|0;j[a+12>>1]=j[c+30>>1]|0;f=5}else{k[e>>2]=54521;k[e+4>>2]=10788;gd(11,13600,e);b=11}if((f|0)==5){i[a+8>>0]=i[c+21>>0]|0;b=0}r=g;return b|0}function Xo(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0;l=k[a+200>>2]|0;h=a+152|0;j=k[h>>2]|0;m=a+148|0;g=k[m>>2]|0;j=j>>>0>g>>>0?g:j;e=k[a+96>>2]|0;if((e|0)>0){d=k[a+92>>2]|0;c=a+72|0;f=0;do{b=d+(f*48|0)+8|0;n=b;if((k[n>>2]|0)==0&(k[n+4>>2]|0)==0){o=c;n=k[o+4>>2]|0;k[b>>2]=k[o>>2];k[b+4>>2]=n}f=f+1|0}while((f|0)<(e|0));f=c}else f=a+72|0;c=f;d=k[c>>2]|0;c=k[c+4>>2]|0;if((d|0)==0&(c|0)==0){d=0;c=0}else{d=ow(d|0,c|0,-1,-1)|0;d=vw(d|0,L|0,g|0,0)|0;d=ow(d|0,L|0,1,0)|0;d=xw(d|0,L|0,g|0,0)|0;c=L}g=f;k[g>>2]=d;k[g+4>>2]=c;g=a+80|0;k[g>>2]=d;k[g+4>>2]=c;if(((i[a+7>>0]|0)==0?(i[a+5>>0]|0)!=4:0)?(g=k[a+60>>2]|0,((qc[k[(k[g>>2]|0)+48>>2]&127](g)|0)&512|0)==0):0){d=l+0|0;c=d+12|0;do{i[d>>0]=0;d=d+1|0}while((d|0)<(c|0))}else{g=l;e=g;i[e>>0]=-117058087;i[e+1>>0]=-117058087>>8;i[e+2>>0]=-117058087>>16;i[e+3>>0]=-117058087>>24;g=g+4|0;i[g>>0]=-681336544;i[g+1>>0]=-681336544>>8;i[g+2>>0]=-681336544>>16;i[g+3>>0]=-681336544>>24;g=l+8|0;i[g>>0]=-1;i[g+1>>0]=-1>>8;i[g+2>>0]=-1>>16;i[g+3>>0]=-1>>24}c=a+48|0;hd(4,c);c=k[c>>2]|0;i[l+12>>0]=c>>>24;i[l+13>>0]=c>>>16;i[l+14>>0]=c>>>8;i[l+15>>0]=c;c=k[a+28>>2]|0;i[l+16>>0]=c>>>24;i[l+17>>0]=c>>>16;i[l+18>>0]=c>>>8;i[l+19>>0]=c;c=k[m>>2]|0;i[l+20>>0]=c>>>24;i[l+21>>0]=c>>>16;i[l+22>>0]=c>>>8;i[l+23>>0]=c;c=k[h>>2]|0;i[l+24>>0]=c>>>24;i[l+25>>0]=c>>>16;i[l+26>>0]=c>>>8;i[l+27>>0]=c;kw(l+28|0,0,j+-28|0)|0;c=a+64|0;d=0;while(1){if(d>>>0>=(k[m>>2]|0)>>>0){b=0;break}h=k[c>>2]|0;b=f;b=yc[k[(k[h>>2]|0)+12>>2]&31](h,l,j,k[b>>2]|0,k[b+4>>2]|0)|0;h=f;h=ow(k[h>>2]|0,k[h+4>>2]|0,j|0,0)|0;a=f;k[a>>2]=h;k[a+4>>2]=L;if(!b)d=d+j|0;else break}return b|0}function Yo(a){a=a|0;var b=0,c=0,d=0;b=a+24|0;d=m[b>>1]|0;c=d&65503;j[b>>1]=c;if(!(d&2)){j[b>>1]=c|2;Vo(a,2)}return}function Zo(a){a=a|0;var b=0,c=0,d=0;b=k[a+16>>2]|0;c=k[a+20>>2]|0;d=k[b+96>>2]|0;a:do if((d|0)>0){b=k[b+92>>2]|0;a=0;while(1){if((k[b+(a*48|0)+20>>2]|0)>>>0>=c>>>0?(ii(k[b+(a*48|0)+16>>2]|0,c)|0)==0:0){a=1;break a}a=a+1|0;if((a|0)>=(d|0)){a=0;break}}}else a=0;while(0);return a|0}function _o(a){a=a|0;var b=0,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();j=o;m=k[a+16>>2]|0;c=i[m+5>>0]|0;a:do if(c<<24>>24!=2){l=m+68|0;d=k[l>>2]|0;do if(!(k[d>>2]|0)){if(c<<24>>24!=4?(i[m+21>>0]|0)==0:0){b=k[m>>2]|0;b=yc[k[b+24>>2]&31](b,0,d,8222,0)|0;if(!b)break;else break a}c=d+0|0;b=c+40|0;do{k[c>>2]=0;c=c+4|0}while((c|0)<(b|0));k[d>>2]=14696}while(0);d=k[a+4>>2]|0;h=m+52|0;e=m+152|0;f=(k[e>>2]|0)+4|0;f=xw(f|0,((f|0)<0)<<31>>31|0,k[h>>2]|0,0)|0;g=L;b=k[l>>2]|0;c=a+20|0;a=k[c>>2]|0;i[j>>0]=a>>>24;i[j+1>>0]=a>>>16;i[j+2>>0]=a>>>8;i[j+3>>0]=a;b=yc[k[(k[b>>2]|0)+12>>2]&31](b,j,4,f,g)|0;if(!b){j=k[l>>2]|0;l=k[e>>2]|0;b=ow(f|0,g|0,4,0)|0;b=yc[k[(k[j>>2]|0)+12>>2]&31](j,d,l,b,L)|0;if(!b){b=h;n=10}}}else{c=a+20|0;b=m+52|0;n=10}while(0);if((n|0)==10){k[b>>2]=(k[b>>2]|0)+1;b=ol(m,k[c>>2]|0)|0}r=o;return b|0}function $o(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=r;r=r+48|0;if((r|0)>=(s|0))ka();f=g;c=(a|0)!=0;a:do if(c&(b|0)!=0){c=f;while(1){e=k[b+20>>2]|0;d=a;a=c;while(1){a=a+12|0;if((k[d+20>>2]|0)>>>0>=e>>>0)break;k[a>>2]=d;a=k[d+12>>2]|0;if(!a){c=b;a=d;d=8;break a}else{c=d;d=a;a=c}}k[a>>2]=b;e=k[b+12>>2]|0;c=(d|0)!=0;if(c&(e|0)!=0){c=b;a=d;b=e}else{a=d;d=6;break}}}else{e=b;b=f;d=6}while(0);if((d|0)==6)if(c)k[b+12>>2]=a;else{c=e;a=b;d=8}do if((d|0)==8){a=a+12|0;if(!c){k[a>>2]=0;break}else{k[a>>2]=c;break}}while(0);r=g;return k[f+12>>2]|0}function ap(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=k[k[a+32>>2]>>2]|0;h=a+84|0;g=a+104|0;k[g>>2]=(k[g>>2]|0)+1;k[a+68>>2]=0;g=h+1|0;f=h+2|0;d=h+3|0;e=((l[g>>0]|0)<<16|(l[h>>0]|0)<<24|(l[f>>0]|0)<<8|(l[d>>0]|0))+1|0;i[h>>0]=e>>>24;i[g>>0]=e>>>16;i[f>>0]=e>>>8;i[d>>0]=e;k[a+88>>2]=b;ep(a);k[c+96>>2]=0;k[c+104>>2]=0;k[c+108>>2]=-1;k[c+112>>2]=-1;k[c+116>>2]=-1;return}function bp(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,m=0,n=0,o=0;g=r;r=r+32|0;if((r|0)>=(s|0))ka();h=g;f=k[b+4>>2]|0;j=k[a>>2]|0;m=k[b+20>>2]|0;b=j+76|0;i[h>>0]=m>>>24;i[h+1>>0]=m>>>16;i[h+2>>0]=m>>>8;i[h+3>>0]=m;i[h+4>>0]=c>>>24;i[h+5>>0]=c>>>16;i[h+6>>0]=c>>>8;i[h+7>>0]=c;m=j+84|0;o=m;o=l[o>>0]|l[o+1>>0]<<8|l[o+2>>0]<<16|l[o+3>>0]<<24;m=m+4|0;m=l[m>>0]|l[m+1>>0]<<8|l[m+2>>0]<<16|l[m+3>>0]<<24;c=h+8|0;n=c;i[n>>0]=o;i[n+1>>0]=o>>8;i[n+2>>0]=o>>16;i[n+3>>0]=o>>24;c=c+4|0;i[c>>0]=m;i[c+1>>0]=m>>8;i[c+2>>0]=m>>16;i[c+3>>0]=m>>24;c=(i[j+65>>0]|0)==0&1;Dq(c,h,8,b,b);Dq(c,f,k[j+36>>2]|0,b,b);c=k[b>>2]|0;i[h+16>>0]=c>>>24;i[h+17>>0]=c>>>16;i[h+18>>0]=c>>>8;i[h+19>>0]=c;c=k[j+80>>2]|0;i[h+20>>0]=c>>>24;i[h+21>>0]=c>>>16;i[h+22>>0]=c>>>8;i[h+23>>0]=c;c=Eq(a,h,24,d,e)|0;if(!c){m=k[a+20>>2]|0;c=ow(d|0,e|0,24,0)|0;c=Eq(a,f,m,c,L)|0}r=g;return c|0}function cp(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;h=r;r=r+16|0;if((r|0)>=(s|0))ka();g=h+8|0;f=h;e=k[3164]|0;if(e)sc[e&3]();d=a+8|0;e=k[d>>2]|0;e=wc[k[(k[e>>2]|0)+24>>2]&127](e,f)|0;i=k[f+4>>2]|0;if((e|0)==0&((i|0)>(c|0)|((i|0)==(c|0)?(k[f>>2]|0)>>>0>b>>>0:0))){e=k[d>>2]|0;e=fc[k[(k[e>>2]|0)+16>>2]&63](e,b,c)|0}d=k[3166]|0;if(d)sc[d&3]();if(e){k[g>>2]=k[a+100>>2];gd(e,14816,g)}r=h;return}function dp(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;l=r;r=r+32|0;if((r|0)>=(s|0))ka();g=l;e=l+16|0;i=l+12|0;h=l+8|0;k[e>>2]=0;k[i>>2]=0;k[h>>2]=0;d=Uo(a,(b+33|0)>>>12,h,i,e)|0;a:do if(!d){f=b-(k[e>>2]|0)|0;if((f|0)==1){d=k[i>>2]|0;b=d+4|0;kw(b|0,0,(k[h>>2]|0)+16384-b|0)|0}else d=k[i>>2]|0;if(k[d+(f<<2)>>2]|0)Fq(a);d=c*383&8191;b:do if(j[(k[h>>2]|0)+(d<<1)>>1]|0){b=k[h>>2]|0;e=f;while(1){if(!e)break;d=d+1&8191;if(!(j[b+(d<<1)>>1]|0))break b;else e=e+-1|0}k[g>>2]=49852;k[g+4>>2]=10788;gd(11,13600,g);d=11;break a}while(0);k[(k[i>>2]|0)+(f<<2)>>2]=c;j[(k[h>>2]|0)+(d<<1)>>1]=f;d=0}while(0);r=l;return d|0}function ep(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0;h=k[k[a+32>>2]>>2]|0;j=a+52|0;i[a+64>>0]=1;k[j>>2]=3007e3;g=a+92|0;e=3007e3;f=j;d=0;b=0;while(1){d=d+b+e|0;c=f+8|0;b=d+b+(k[f+4>>2]|0)|0;if(c>>>0>=g>>>0)break;e=k[c>>2]|0;f=c}k[g>>2]=d;k[a+96>>2]=b;b=h+48|0;c=j+0|0;d=b+48|0;do{i[b>>0]=i[c>>0]|0;b=b+1|0;c=c+1|0}while((b|0)<(d|0));if((i[a+43>>0]|0)!=2){b=k[a+4>>2]|0;hc[k[(k[b>>2]|0)+60>>2]&31](b)}b=h+0|0;c=j+0|0;d=b+48|0;do{i[b>>0]=i[c>>0]|0;b=b+1|0;c=c+1|0}while((b|0)<(d|0));return}function fp(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;if(a)do{d=a+28|0;f=k[d>>2]|0;if(((f>>>0<7?(30>>>(f&127)&1)==0:0)?(k[a+16>>2]|0)>>>0>b>>>0:0)?(e=Fg(a,b,c,1)|0,(e|0)!=0):0)k[d>>2]=e;a=k[a+44>>2]|0}while((a|0)!=0);return}function gp(a){a=a|0;var b=0,c=0,d=0;a:do if(!(k[a+208>>2]|0)){c=a+176|0;d=a+180|0;while(1){b=kl(a,4)|0;if((b|0)!=5)break a;if(!(qc[k[c>>2]&127](k[d>>2]|0)|0)){b=5;break}}}else b=0;while(0);return b|0}function hp(a){a=a|0;var b=0,c=0,d=0,e=0;d=a+96|0;if((k[d>>2]|0)>0){b=a+92|0;c=0;do{ji(k[(k[b>>2]|0)+(c*48|0)+16>>2]|0);c=c+1|0}while((c|0)<(k[d>>2]|0))}c=k[a+68>>2]|0;b=k[c>>2]|0;if(!(i[a+4>>0]|0)){if(b)e=7}else if((b|0)==14696){b=14696;e=7}if((e|0)==7){qc[k[b+4>>2]&127](c)|0;k[c>>2]=0}b=a+92|0;$c(k[b>>2]|0);k[b>>2]=0;k[d>>2]=0;k[a+52>>2]=0;return}function ip(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=a+40|0;if(k[e>>2]|0){c=k[a>>2]|0;if(c)do{d=c;c=k[c+32>>2]|0;if((k[d+20>>2]|0)>>>0>b>>>0)Cl(d)}while((c|0)!=0);if(!b){b=k[a+44>>2]|0;if(!b)b=0;else{kw(k[b+4>>2]|0,0,k[a+20>>2]|0)|0;b=1}}oc[k[8744+144>>2]&15](k[e>>2]|0,b+1|0)}return}function jp(a,b){a=a|0;b=b|0;var c=0,d=0;do if(!b){c=a+43|0;if(!(i[c>>0]|0))c=0;else{i[c>>0]=0;d=k[a+4>>2]|0;if(!(uc[k[(k[d>>2]|0)+56>>2]&31](d,(j[a+40>>1]|0)+3|0,1,6)|0))c=(i[c>>0]|0)==0;else{i[c>>0]=1;c=0}c=c&1}}else{c=a+43|0;d=(i[c>>0]|0)==0;if((b|0)<=0){c=d&1;break}if(d){d=k[a+4>>2]|0;uc[k[(k[d>>2]|0)+56>>2]&31](d,(j[a+40>>1]|0)+3|0,1,5)|0}i[c>>0]=1;c=1}while(0);return c|0}function kp(a){a=a|0;var b=0,c=0,d=0,e=0;c=a+73|0;if((i[c>>0]|0)==2)i[c>>0]=1;else k[a+68>>2]=0;b=a+48|0;pm(a,b);do if(!(i[(k[a+120>>2]|0)+2>>0]|0)){d=b;d=vg(k[d>>2]|0,k[d+4>>2]|0)|0;if(d){b=Qm(a,0,k[b>>2]|0,d,0)|0;if(!b){k[a+56>>2]=d;e=9;break}else{$c(d);break}}else b=7}else e=9;while(0);if((e|0)==9){lp(a);i[c>>0]=3;b=0}c=a+72|0;i[c>>0]=l[c>>0]&251;return b|0}function lp(a){a=a|0;var b=0,c=0,d=0,e=0;b=a+76|0;if((j[b>>1]|0)>=0){e=0;while(1){c=a+(e<<2)+120|0;d=k[c>>2]|0;if(d)Gg(k[d+68>>2]|0);k[c>>2]=0;if((e|0)<(j[b>>1]|0))e=e+1|0;else break}}j[b>>1]=-1;return}function mp(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;m=r;r=r+16|0;if((r|0)>=(s|0))ka();j=m;f=m+8|0;if(b>>>0<2)h=0;else{h=b+-2|0;h=h-((h>>>0)%(((((k[a+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;h=((h+1|0)==(((k[2514]|0)>>>0)/((k[a+32>>2]|0)>>>0)|0|0)?3:2)+h|0}e=Eg(k[a>>2]|0,h,f,0)|0;do if(!e){f=k[f>>2]|0;g=k[f+4>>2]|0;e=(b-h|0)*5|0;a=e+-5|0;if((a|0)<0){if(f)Gg(f);k[j>>2]=53912;k[j+4>>2]=10788;gd(11,13600,j);e=11;break}i[c>>0]=i[g+a>>0]|0;if(d)k[d>>2]=(l[g+(e+-3)>>0]|0)<<16|(l[g+(e+-4)>>0]|0)<<24|(l[g+(e+-2)>>0]|0)<<8|(l[g+(e+-1)>>0]|0);if(f)Gg(f);if(((i[c>>0]|0)+-1&255)>4){k[j>>2]=53920;k[j+4>>2]=10788;gd(11,13600,j);e=11}else e=0}while(0);r=m;return e|0}function np(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;K=r;r=r+32|0;if((r|0)>=(s|0))ka();J=K;I=K+16|0;n=K+20|0;H=K+12|0;o=K+8|0;k[I>>2]=0;q=a+12|0;m=k[q>>2]|0;p=a+44|0;F=k[p>>2]|0;G=m+56|0;h=k[G>>2]|0;h=l[h+37>>0]<<16|l[h+36>>0]<<24|l[h+38>>0]<<8|l[h+39>>0];do if(h>>>0<F>>>0){if(!h){e=(i[a+19>>0]|0)==0&1;m=Lg(k[m+68>>2]|0)|0;if(m){f=m;break}n=k[p>>2]|0;h=n+1|0;k[p>>2]=h;g=a+32|0;m=k[g>>2]|0;if((n|0)==(((k[2514]|0)>>>0)/(m>>>0)|0|0)){h=n+2|0;k[p>>2]=h}if(i[a+17>>0]|0){if(h>>>0<2)n=0;else{n=h+-2|0;n=n-((n>>>0)%(((((k[a+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;n=((n+1|0)==(((k[2514]|0)>>>0)/(m>>>0)|0|0)?3:2)+n|0}if((n|0)==(h|0)){k[o>>2]=0;n=il(a,h,o,e)|0;if(n){f=n;break}F=k[o>>2]|0;n=F+68|0;m=Lg(k[n>>2]|0)|0;if(F)Gg(k[n>>2]|0);if(m){f=m;break}n=k[p>>2]|0;h=n+1|0;k[p>>2]=h;if((n|0)==(((k[2514]|0)>>>0)/((k[g>>2]|0)>>>0)|0|0)){h=n+2|0;k[p>>2]=h}}}g=k[(k[q>>2]|0)+56>>2]|0;i[g+28>>0]=h>>>24;i[g+29>>0]=h>>>16;i[g+30>>0]=h>>>8;i[g+31>>0]=h;g=k[p>>2]|0;k[c>>2]=g;g=il(a,g,b,e)|0;if(g){f=g;break}g=Lg(k[(k[b>>2]|0)+68>>2]|0)|0;if(g){f=k[b>>2]|0;if(!f){f=g;A=98}else{Gg(k[f+68>>2]|0);f=g;A=92}}}else{if(e<<24>>24==2)n=1;else if(e<<24>>24==1?F>>>0>=d>>>0:0){f=mp(a,d,n,0)|0;if(f)break;n=(i[n>>0]|0)==2&1}else n=0;f=Lg(k[m+68>>2]|0)|0;if(f)break;C=k[G>>2]|0;D=h+-1|0;i[C+36>>0]=D>>>24;i[C+37>>0]=D>>>16;i[C+38>>0]=D>>>8;i[C+39>>0]=D;C=a+36|0;D=(d|0)==0;E=a+60|0;B=e<<24>>24==2;g=0;a:while(1){t=(g|0)!=0;if(t){q=k[g+56>>2]|0;q=l[q+1>>0]<<16|l[q>>0]<<24|l[q+2>>0]<<8|l[q+3>>0]}else{q=k[G>>2]|0;q=l[q+33>>0]<<16|l[q+32>>0]<<24|l[q+34>>0]<<8|l[q+35>>0]}if(q>>>0>F>>>0){A=15;break}f=il(a,q,I,0)|0;if(f){A=17;break}h=k[I>>2]|0;u=h+56|0;y=k[u>>2]|0;z=y+4|0;v=y+5|0;w=y+6|0;x=y+7|0;A=l[v>>0]<<16|l[z>>0]<<24|l[w>>0]<<8|l[x>>0];o=n<<24>>24!=0;do if((A|0)!=0|o){if(A>>>0>(((k[C>>2]|0)>>>2)+-2|0)>>>0){f=h;A=22;break a}if(n<<24>>24!=0?(q|0)==(d|0)|q>>>0<d>>>0&B:0){k[c>>2]=q;k[b>>2]=h;f=Lg(k[h+68>>2]|0)|0;if(f){A=88;break a}do if(!A){if(!t){A=(k[G>>2]|0)+32|0;z=k[u>>2]|0;z=l[z>>0]|l[z+1>>0]<<8|l[z+2>>0]<<16|l[z+3>>0]<<24;i[A>>0]=z;i[A+1>>0]=z>>8;i[A+2>>0]=z>>16;i[A+3>>0]=z>>24;break}f=Lg(k[g+68>>2]|0)|0;if(f){A=88;break a}A=k[g+56>>2]|0;z=k[u>>2]|0;z=l[z>>0]|l[z+1>>0]<<8|l[z+2>>0]<<16|l[z+3>>0]<<24;i[A>>0]=z;i[A+1>>0]=z>>8;i[A+2>>0]=z>>16;i[A+3>>0]=z>>24}else{q=k[u>>2]|0;o=i[q+8>>0]|0;e=i[q+9>>0]|0;p=i[q+10>>0]|0;q=i[q+11>>0]|0;n=(e&255)<<16|(o&255)<<24|(p&255)<<8|q&255;if(n>>>0>F>>>0){f=h;A=32;break a}f=il(a,n,H,0)|0;if(f){A=88;break a}n=k[H>>2]|0;m=n+68|0;f=Lg(k[m>>2]|0)|0;if(f){A=35;break a}z=n+56|0;y=k[z>>2]|0;x=k[u>>2]|0;x=l[x>>0]|l[x+1>>0]<<8|l[x+2>>0]<<16|l[x+3>>0]<<24;i[y>>0]=x;i[y+1>>0]=x>>8;i[y+2>>0]=x>>16;i[y+3>>0]=x>>24;y=k[z>>2]|0;A=A+-1|0;i[y+4>>0]=A>>>24;i[y+5>>0]=A>>>16;i[y+6>>0]=A>>>8;i[y+7>>0]=A;pw((k[z>>2]|0)+8|0,(k[u>>2]|0)+12|0,A<<2|0)|0;if(n)Gg(k[m>>2]|0);if(!t){A=k[G>>2]|0;i[A+32>>0]=o;i[A+33>>0]=e;i[A+34>>0]=p;i[A+35>>0]=q;break}f=Lg(k[g+68>>2]|0)|0;if(f){A=88;break a}A=k[g+56>>2]|0;i[A>>0]=o;i[A+1>>0]=e;i[A+2>>0]=p;i[A+3>>0]=q}while(0);k[I>>2]=0;h=0;f=0;n=0;break}if(A){b:do if(!D){if(B){e=0;while(1){u=e<<2;if((l[y+(u+9)>>0]<<16|l[y+(u+8)>>0]<<24|l[y+(u+10)>>0]<<8|l[y+(u+11)>>0])>>>0<=d>>>0)break b;e=e+1|0;if(e>>>0>=A>>>0){e=0;break b}}}m=(l[y+9>>0]<<16|l[y+8>>0]<<24|l[y+10>>0]<<8|l[y+11>>0])-d|0;if((m|0)<=-1)m=(m|0)==-2147483648?2147483647:0-m|0;if(A>>>0>1){e=0;p=1;while(1){f=p<<2;f=(l[y+(f+9)>>0]<<16|l[y+(f+8)>>0]<<24|l[y+(f+10)>>0]<<8|l[y+(f+11)>>0])-d|0;if((f|0)<=-1)f=(f|0)==-2147483648?2147483647:0-f|0;q=(f|0)<(m|0);e=q?p:e;p=p+1|0;if((p|0)==(A|0))break;else m=q?f:m}}else e=0}else e=0;while(0);m=e<<2;q=y+(m+8)|0;m=l[y+(m+9)>>0]<<16|l[q>>0]<<24|l[y+(m+10)>>0]<<8|l[y+(m+11)>>0];if(m>>>0>F>>>0){f=h;A=56;break a}if((m|0)==(d|0)|o^1|m>>>0<d>>>0&B){k[c>>2]=m;f=Lg(k[h+68>>2]|0)|0;if(f){A=88;break a}n=A+-1|0;if(e>>>0<n>>>0){A=y+((A<<2)+4)|0;A=l[A>>0]|l[A+1>>0]<<8|l[A+2>>0]<<16|l[A+3>>0]<<24;i[q>>0]=A;i[q+1>>0]=A>>8;i[q+2>>0]=A>>16;i[q+3>>0]=A>>24}i[z>>0]=n>>>24;i[v>>0]=n>>>16;i[w>>0]=n>>>8;i[x>>0]=n;m=k[c>>2]|0;n=k[E>>2]|0;do if(!n)n=0;else{if((k[n>>2]|0)>>>0<m>>>0){n=1;break}n=(ii(n,m)|0)!=0}while(0);f=il(a,m,b,n&1^1)|0;if(f){n=0;break}f=Lg(k[(k[b>>2]|0)+68>>2]|0)|0;if(!f){f=0;n=0;break}n=k[b>>2]|0;if(!n){n=0;break}Gg(k[n+68>>2]|0);n=0}else f=0}else f=0}else{f=Lg(k[h+68>>2]|0)|0;if(f){A=89;break a}k[c>>2]=q;f=(k[G>>2]|0)+32|0;n=k[u>>2]|0;n=l[n>>0]|l[n+1>>0]<<8|l[n+2>>0]<<16|l[n+3>>0]<<24;i[f>>0]=n;i[f+1>>0]=n>>8;i[f+2>>0]=n>>16;i[f+3>>0]=n>>24;k[b>>2]=h;k[I>>2]=0;h=0;f=0;n=0}while(0);if(g)Gg(k[g+68>>2]|0);if(!(n<<24>>24)){g=0;A=88;break}else g=h}if((A|0)==15){k[J>>2]=58314;k[J+4>>2]=10788;gd(11,13600,J);f=11;A=17}else if((A|0)==22){k[J>>2]=58343;k[J+4>>2]=10788;gd(11,13600,J);h=f;f=11;A=88}else if((A|0)==32){k[J>>2]=58377;k[J+4>>2]=10788;gd(11,13600,J);h=f;f=11;A=88}else if((A|0)==35)if(!n)A=88;else{Gg(k[m>>2]|0);A=88}else if((A|0)==56){k[J>>2]=58442;k[J+4>>2]=10788;gd(11,13600,J);h=f;f=11;A=88}if((A|0)==17)k[I>>2]=0;else if((A|0)==88)if(h)A=89;if((A|0)==89)Gg(k[h+68>>2]|0);if(!g)A=92;else{Gg(k[g+68>>2]|0);A=92}}if((A|0)==92?(f|0)!=0:0)A=98;if((A|0)==98){k[b>>2]=0;break}f=k[b>>2]|0;g=k[f+68>>2]|0;if((j[g+26>>1]|0)<=1){i[f>>0]=0;f=0;break}if(f)Gg(g);k[b>>2]=0;k[J>>2]=58541;k[J+4>>2]=10788;gd(11,13600,J);f=11}else{k[J>>2]=58259;k[J+4>>2]=10788;gd(11,13600,J);f=11}while(0);r=K;return f|0}function op(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;y=r;r=r+16|0;if((r|0)>=(s|0))ka();t=y+12|0;q=y+8|0;x=y;d=k[a+40>>2]|0;a:do if(!d){f=a+96|0;e=k[f>>2]|0;if((e|0)>(c|0)){d=(b|0)==1;c=(d&1^1)+c|0;if((c|0)<(e|0)){b=a+92|0;e=c;do{ji(k[(k[b>>2]|0)+(e*48|0)+16>>2]|0);e=e+1|0}while((e|0)<(k[f>>2]|0))}k[f>>2]=c;if(d){if(c){d=0;break}d=k[a+68>>2]|0;e=k[d>>2]|0;if(!e){d=0;break}if((e|0)==14696)d=Li(d,0,0)|0;else d=0;k[a+52>>2]=0;break}p=a+208|0;if((k[p>>2]|0)==0?(k[k[a+64>>2]>>2]|0)==0:0){d=0;break}if(!c)u=0;else u=(k[a+92>>2]|0)+((c+-1|0)*48|0)|0;o=(u|0)!=0;d=u+20|0;if(o){b=k[d>>2]|0;e=vg(512,0)|0;if(!e){d=7;break}kw(e|0,0,512)|0;k[e>>2]=b;w=e}else w=0;f=a+28|0;c=a+24|0;k[c>>2]=k[(o?d:f)>>2];i[a+18>>0]=i[a+12>>0]|0;b:do if(o){f=a+72|0;c=f;g=k[c>>2]|0;c=k[c+4>>2]|0;if(!(k[p>>2]|0)){e=u+8|0;h=k[e>>2]|0;e=k[e+4>>2]|0;b=(h|0)==0&(e|0)==0;h=b?g:h;e=b?c:e;b=u;d=k[b>>2]|0;b=k[b+4>>2]|0;m=f;k[m>>2]=d;k[m+4>>2]=b;if((b|0)<(e|0)|(b|0)==(e|0)&d>>>0<h>>>0)while(1){d=Bq(a,f,w,1,1)|0;if(d){l=g;j=c;break b}b=f;d=k[b>>2]|0;b=k[b+4>>2]|0;if(!((b|0)<(e|0)|(b|0)==(e|0)&d>>>0<h>>>0)){v=39;break}}else v=39}else v=38}else{n=k[p>>2]|0;if(!n){f=a+72|0;c=f;g=k[c>>2]|0;c=k[c+4>>2]|0;v=38;break}k[c>>2]=k[f>>2];if(i[n+44>>0]|0){g=n+68|0;j=k[g>>2]|0;h=n+32|0;c=k[h>>2]|0;e=n+52|0;d=(k[c>>2]|0)+0|0;b=e+48|0;do{i[e>>0]=i[d>>0]|0;e=e+1|0;d=d+1|0}while((e|0)<(b|0));e=k[g>>2]|0;d=e+1|0;if(d>>>0>j>>>0)d=0;else{f=d;while(1){e=e+34|0;d=e>>>12;if(!d)e=(k[c>>2]|0)+(e<<2)|0;else e=(k[c+(d<<2)>>2]|0)+((e&4095)<<2)|0;d=Gq(a,k[e>>2]|0)|0;e=f+1|0;if((d|0)!=0|e>>>0>j>>>0)break;m=f;c=k[h>>2]|0;f=e;e=m}e=k[g>>2]|0}if((j|0)!=(e|0))Fq(n)}else d=0;e=Al(k[a+204>>2]|0)|0;if(!((e|0)!=0&(d|0)==0))break a;while(1){d=e;e=k[e+12>>2]|0;d=Gq(a,k[d+20>>2]|0)|0;if(!((e|0)!=0&(d|0)==0))break a}}while(0);if((v|0)==38){b=f;k[b>>2]=0;k[b+4>>2]=0;b=0;d=0;v=39}c:do if((v|0)==39){l=a+80|0;m=a+148|0;n=a+152|0;if((b|0)<(c|0)|(b|0)==(c|0)&d>>>0<g>>>0)while(1){k[t>>2]=0;d=Aq(a,0,g,c,t,q)|0;b=k[t>>2]|0;if(!b){b=l;b=ow(k[m>>2]|0,0,k[b>>2]|0,k[b+4>>2]|0)|0;e=L;j=f;if((b|0)==(k[j>>2]|0)?(e|0)==(k[j+4>>2]|0):0){v=iw(g|0,c|0,b|0,e|0)|0;b=(k[n>>2]|0)+8|0;b=vw(v|0,L|0,b|0,((b|0)<0)<<31>>31|0)|0;k[t>>2]=b;v=46}else v=40}else v=46;d:do if((v|0)==46){v=0;if((d|0)==0&(b|0)!=0){j=0;while(1){e=f;h=k[e>>2]|0;e=k[e+4>>2]|0;if(!((e|0)<(c|0)|(e|0)==(c|0)&h>>>0<g>>>0)){b=h;break d}d=Bq(a,f,w,1,1)|0;j=j+1|0;if(!((d|0)==0&j>>>0<b>>>0)){v=40;break}}}else v=40}while(0);if((v|0)==40){v=0;if(d){l=g;j=c;break c}b=f;e=k[b+4>>2]|0;b=k[b>>2]|0}if(!((e|0)<(c|0)|(e|0)==(c|0)&b>>>0<g>>>0)){l=g;j=c;d=0;break}}else{l=g;j=c;d=0}}while(0);e:do if(!o){ji(w);if(d)break a}else{h=u+24|0;e=k[h>>2]|0;m=(k[a+152>>2]|0)+4|0;m=xw(m|0,((m|0)<0)<<31>>31|0,e|0,0)|0;g=x;k[g>>2]=m;k[g+4>>2]=L;g=k[p>>2]|0;if(!g){if(!d)v=57}else{c=u+28|0;b=u+40|0;d=g+104|0;if((k[b>>2]|0)==(k[d>>2]|0))b=k[c>>2]|0;else{k[c>>2]=0;k[b>>2]=k[d>>2];b=0}c=g+68|0;if(b>>>0<(k[c>>2]|0)>>>0){k[c>>2]=b;k[g+76>>2]=k[u+32>>2];k[g+80>>2]=k[u+36>>2];Fq(g);e=k[h>>2]|0;v=57}else v=57}f:do if((v|0)==57){b=a+52|0;while(1){if(e>>>0>=(k[b>>2]|0)>>>0)break;d=Bq(a,x,w,0,1)|0;if(!d)e=e+1|0;else break f}ji(w);break e}while(0);ji(w);break a}while(0);d=f;k[d>>2]=l;k[d+4>>2]=j;d=0}else d=0}while(0);r=y;return d|0}function pp(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=k[a>>2]|0;if(b){f=k[a+4>>2]|0;k[(k[b+4>>2]|0)+4>>2]=k[b>>2];d=a+56|0;$c(k[d>>2]|0);k[d>>2]=0;i[a+73>>0]=0;d=k[a+12>>2]|0;c=a+8|0;b=k[c>>2]|0;if(!d)k[f+8>>2]=b;else{k[d+8>>2]=b;b=k[c>>2]|0}if(b)k[b+12>>2]=d;e=a+76|0;b=j[e>>1]|0;if(b<<16>>16>=0){c=0;while(1){d=k[a+(c<<2)+120>>2]|0;if(d){Gg(k[d+68>>2]|0);b=j[e>>1]|0}if((c|0)<(b<<16>>16|0))c=c+1|0;else break}}if((i[f+20>>0]|0)==0?(g=f+12|0,h=k[g>>2]|0,(h|0)!=0):0){k[g>>2]=0;Gg(k[h+68>>2]|0)}$c(k[a+20>>2]|0)}return}function qp(a){a=a|0;var b=0,c=0,d=0,e=0;e=k[a+200>>2]|0;b=k[3164]|0;if(b)sc[b&3]();c=k[a+136>>2]|0;if(c)do{b=c;c=k[c+12>>2]|0;$c(b)}while((c|0)!=0);i[a+4>>0]=0;b=a+208|0;wn(k[b>>2]|0,l[a+9>>0]|0,k[a+152>>2]|0,e)|0;k[b>>2]=0;Cn(a);if(!(i[a+15>>0]|0)){if((k[k[a+64>>2]>>2]|0)!=0?(d=Oo(a)|0,b=d&255,(b|0)==10|(b|0)==13):0){k[a+40>>2]=d;i[a+16>>0]=6}sl(a)}else So(a);b=k[3166]|0;if(b)sc[b&3]();b=k[a+64>>2]|0;c=k[b>>2]|0;if(c){qc[k[c+4>>2]&127](b)|0;k[b>>2]=0}c=k[a+60>>2]|0;b=k[c>>2]|0;if(b){qc[k[b+4>>2]&127](c)|0;k[c>>2]=0}el(e);hc[k[8744+148>>2]&31](k[(k[a+204>>2]|0)+40>>2]|0);$c(a);return}function rp(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;f=k[a+4>>2]|0;g=vg(f,((f|0)<0)<<31>>31)|0;do if(g){kw(g|0,0,f|0)|0;f=yc[k[a+24>>2]&31](a,b,g,d&556927,e)|0;if(!f){k[c>>2]=g;f=0;break}else{$c(g);break}}else f=7;while(0);return f|0}function sp(a){a=a|0;var b=0,c=0,d=0;b=a+16|0;c=a+12|0;d=a+10|0;if(!(Yl(k[b>>2]|0,a,k[c>>2]|0,i[d>>0]|0)|0))b=0;else{b=(Zl(k[b>>2]|0,a,k[c>>2]|0,i[d>>0]|0)|0)==0;b=b?4:8}return b|0}function tp(a){a=a|0;var b=0,c=0,d=0.0;c=a+8|0;b=j[c>>1]|0;do if(!(b&13))if(!(Zl(k[a+16>>2]|0,a,k[a+12>>2]|0,i[a+10>>0]|0)|0)){b=((m[c>>1]|0)&48640|4)&65535;j[c>>1]=b;break}else{d=+Zg(a);p[a>>3]=d;j[c>>1]=(m[c>>1]|0)&48640|8;im(a);b=j[c>>1]|0;break}while(0);j[c>>1]=b&65517;return}function up(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,t=0;t=r;r=r+80|0;if((r|0)>=(s|0))ka();p=t+40|0;q=t;e=c+4|0;if((i[a+10>>0]|0)!=(i[e>>0]|0)){o=k[a+32>>2]|0;l=p+8|0;j[l>>1]=1;k[p+32>>2]=o;m=p+24|0;k[m>>2]=0;n=q+8|0;j[n>>1]=1;k[q+32>>2]=o;o=q+24|0;k[o>>2]=0;cm(p,a,4096);cm(q,b,4096);a=Xg(p,i[e>>0]|0)|0;h=(a|0)==0;if(h)g=0;else g=k[p+12>>2]|0;e=Xg(q,i[e>>0]|0)|0;f=(e|0)==0;if(f)b=0;else b=k[q+12>>2]|0;a=yc[k[c+12>>2]&31](k[c+8>>2]|0,g,a,b,e)|0;if(!((j[l>>1]&9312)==0&(k[m>>2]|0)==0))Vg(p);if(!((j[n>>1]&9312)==0&(k[o>>2]|0)==0))Vg(q);if((h|f)&(d|0)!=0)i[d>>0]=7}else a=yc[k[c+12>>2]&31](k[c+8>>2]|0,k[a+12>>2]|0,k[a+16>>2]|0,k[b+12>>2]|0,k[b+16>>2]|0)|0;r=t;return a|0}function vp(a,b){a=a|0;b=b|0;var c=0,d=0;d=k[a+12>>2]|0;c=k[b+12>>2]|0;a=cw(k[a+16>>2]|0,k[b+16>>2]|0,(d|0)>(c|0)?c:d)|0;return ((a|0)==0?d-c|0:a)|0}function wp(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;do if(!(i[a+3>>0]|0)){if(i[a+4>>0]|0){e=((xp(b+4|0,c)|0)&255)+4&65535;j[c+20>>1]=e;e=c+8|0;k[e+0>>2]=0;k[e+4>>2]=0;k[e+8>>2]=0;break}f=l[a+7>>0]|0;e=b+f|0;d=i[e>>0]|0;if(d<<24>>24>-1){e=d&255;k[g>>2]=e;d=1}else{d=rm(e,g)|0;e=k[g>>2]|0}g=c;k[g>>2]=e;k[g+4>>2]=0;f=(d&255)+f|0;d=12}else{d=i[b>>0]|0;if(d<<24>>24>-1){e=d&255;k[g>>2]=e;d=1}else{d=rm(b,g)|0;e=k[g>>2]|0}f=d&255;f=((xp(b+f|0,c)|0)&255)+f|0;d=12}while(0);do if((d|0)==12){k[c+12>>2]=e;k[c+8>>2]=b+f;d=m[a+10>>1]|0;if(e>>>0>d>>>0){g=j[a+12>>1]|0;b=g&65535;e=(((e-b|0)>>>0)%(((k[(k[a+52>>2]|0)+36>>2]|0)+-4|0)>>>0)|0)+b|0;d=(e|0)>(d|0)?g:e&65535;j[c+16>>1]=d;d=f+(d&65535)|0;j[c+18>>1]=d;j[c+20>>1]=d+4;break}else{d=e+f|0;j[c+20>>1]=(d&65532)>>>0<4?4:d&65535;j[c+16>>1]=e;j[c+18>>1]=0;break}}while(0);r=h;return}function xp(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=i[a>>0]|0;d=c&255;do if(d&128){c=l[a+1>>0]|0;if(!(c&128)){e=b;k[e>>2]=c|d<<7&16256;k[e+4>>2]=0;c=2;break}e=l[a+2>>0]|0;d=(e|d<<14)&2080895;if(!(e&128)){e=b;k[e>>2]=d|c<<7&16256;k[e+4>>2]=0;c=3;break}e=l[a+3>>0]|0;c=(e|c<<14)&2080895;if(!(e&128)){e=b;k[e>>2]=c|d<<7;k[e+4>>2]=0;c=4;break}h=l[a+4>>0]|0;e=h|d<<14;if(!(h&128)){f=b;k[f>>2]=e|c<<7;k[f+4>>2]=d>>>18;c=5;break}g=c|d<<7;d=l[a+5>>0]|0;f=d|c<<14;if(!(d&128)){c=b;k[c>>2]=f|e<<7&266354560;k[c+4>>2]=g>>>18;c=6;break}c=l[a+6>>0]|0;d=c|e<<14;if(!(c&128)){c=b;k[c>>2]=d&-266354561|f<<7&266354560;k[c+4>>2]=g>>>11;c=7;break}c=d&2080895;e=l[a+7>>0]|0;d=e|f<<14;if(!(e&128)){e=b;k[e>>2]=d&-266354561|c<<7;k[e+4>>2]=g>>>4;c=8;break}else{e=b;k[e>>2]=d<<8&532709120|c<<15|(l[a+8>>0]|0);k[e+4>>2]=h>>>3&15|g<<4;c=9;break}}else{d=b;k[d>>2]=c&255;k[d+4>>2]=0;c=1}while(0);return c|0}function yp(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();e=g+8|0;f=g;d=(l[a+1>>0]|0)<<16|(l[a>>0]|0)<<24|(l[a+2>>0]|0)<<8|(l[a+3>>0]|0);a=(l[a+5>>0]|0)<<16|(l[a+4>>0]|0)<<24|(l[a+6>>0]|0)<<8|(l[a+7>>0]|0);h=c;k[h>>2]=a;k[h+4>>2]=d;if((b|0)==6)a=4;else{k[t>>2]=a;k[t+4>>2]=d;p[e>>3]=+p[t>>3];p[f>>3]=+p[e>>3];a=+p[e>>3]!=+p[f>>3]?1:8}j[c+8>>1]=a;r=g;return}function zp(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();f=g;if(!(c>>>0>16777215|(c|0)==16777215&b>>>0>4294967295)){d=b;e=0;while(1){b=e+1|0;i[f+e>>0]=d|128;d=rw(d|0,c|0,7)|0;c=L;if((d|0)==0&(c|0)==0){c=e;break}else e=b}i[f>>0]=(l[f>>0]|0)&127;if((c|0)>-1){d=0;while(1){i[a+d>>0]=i[f+c>>0]|0;if((c|0)>0){d=d+1|0;c=c+-1|0}else break}}}else{i[a+8>>0]=b;b=rw(b|0,c|0,8)|0;d=L;c=7;while(1){i[a+c>>0]=b|128;b=rw(b|0,d|0,7)|0;if((c|0)<=0){b=9;break}else{d=L;c=c+-1|0}}}r=g;return b|0}function Ap(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((k[a+44>>2]|0)>>>0>=b>>>0){d=il(a,b,c,d)|0;if(!d){d=k[c>>2]|0;if((i[d>>0]|0)==0?(e=eq(d)|0,(e|0)!=0):0){d=k[c>>2]|0;if(d)Gg(k[d+68>>2]|0)}else e=0}else e=d}else{k[f>>2]=54788;k[f+4>>2]=10788;gd(11,13600,f);e=11}r=g;return e|0}function Bp(a){a=a|0;var b=0,c=0,d=0;if((i[a+12>>0]|0)==0?(b=a+60|0,c=k[b>>2]|0,((qc[k[(k[c>>2]|0)+48>>2]&127](c)|0)&4096|0)==0):0){b=k[b>>2]|0;c=k[(k[b>>2]|0)+44>>2]|0;if(c){b=qc[c&127](b)|0;if((b|0)<32)b=512;else d=6}else{b=4096;d=6}if((d|0)==6)b=(b|0)>65536?65536:b;k[a+148>>2]=b}else k[a+148>>2]=512;return}function Cp(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;g=a+40|0;do if(!(k[g>>2]|0)){f=i[a+20>>0]|0;if(f<<24>>24){if(f&3){c=0;break}if(j[b+24>>1]&4){c=0;break}}k[b+12>>2]=0;do if(!(k[a+208>>2]|0)){if(!((j[b+24>>1]&4)==0?(i[a+16>>0]|0)!=3:0))h=11;if((h|0)==11?(d=El(a,1)|0,(d|0)!=0):0){c=d;break}if(((k[b+20>>2]|0)>>>0>(k[a+24>>2]|0)>>>0?(Zo(b)|0)!=0:0)?(e=_o(b)|0,(e|0)!=0):0){c=e;break}c=Fl(a,b)|0;h=16}else{if((Zo(b)|0)!=0?(c=_o(b)|0,(c|0)!=0):0)break;c=Bl(a,b,0,0)|0;h=16}while(0);if((h|0)==16)if(!c){Cl(b);c=0;break}d=c&255;if((d|0)==10|(d|0)==13){k[g>>2]=c;i[a+16>>0]=6}}else c=0;while(0);return c|0}function Dp(a){a=a|0;var b=0;b=k[a+8>>2]|0;if((i[b>>0]|0)!=0?(i[b>>0]=0,(j[a+26>>1]|0)>1):0)eq(b)|0;return}function Ep(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,m=0;m=r;r=r+16|0;if((r|0)>=(s|0))ka();j=m;h=m+8|0;do if(!(k[e>>2]|0)){if(!b){k[j>>2]=53856;k[j+4>>2]=10788;gd(11,13600,j);k[e>>2]=11;break}if(b>>>0<2)f=0;else{f=b+-2|0;f=f-((f>>>0)%(((((k[a+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;f=((f+1|0)==(((k[2514]|0)>>>0)/((k[a+32>>2]|0)>>>0)|0|0)?3:2)+f|0}g=Eg(k[a>>2]|0,f,h,0)|0;if(g){k[e>>2]=g;break}b=(b-f|0)*5|0;g=b+-5|0;do if((g|0)>=0){f=k[h>>2]|0;a=k[f+4>>2]|0;g=a+g|0;if((i[g>>0]|0)==c<<24>>24?(l[a+(b+-3)>>0]<<16|l[a+(b+-4)>>0]<<24|l[a+(b+-2)>>0]<<8|l[a+(b+-1)>>0]|0)==(d|0):0)break;h=Lg(f)|0;k[e>>2]=h;if(!h){i[g>>0]=c;i[a+(b+-4)>>0]=d>>>24;i[a+(b+-3)>>0]=d>>>16;i[a+(b+-2)>>0]=d>>>8;i[a+(b+-1)>>0]=d}}else{k[j>>2]=53867;k[j+4>>2]=10788;gd(11,13600,j);k[e>>2]=11;f=k[h>>2]|0}while(0);if(f)Gg(f)}while(0);r=m;return}function Fp(a,b,c){a=a|0;b=b|0;c=c|0;return Pm(a,b,c,0)|0}function Gp(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;f=l[b>>0]&63;d=b+f|0;h=k[c+8>>2]|0;g=k[h>>2]|0;h=k[h+4>>2]|0;switch(l[b+1>>0]|0){case 5:{e=i[d>>0]<<8|l[b+(f+1)>>0];d=l[b+(f+3)>>0]<<16|l[b+(f+2)>>0]<<24|l[b+(f+4)>>0]<<8|l[b+(f+5)>>0];j=11;break}case 6:{e=l[b+(f+1)>>0]<<16|l[d>>0]<<24|l[b+(f+2)>>0]<<8|l[b+(f+3)>>0];d=l[b+(f+5)>>0]<<16|l[b+(f+4)>>0]<<24|l[b+(f+6)>>0]<<8|l[b+(f+7)>>0];j=11;break}case 9:{e=0;d=1;j=11;break}case 2:{d=i[d>>0]<<8|l[b+(f+1)>>0];e=((d|0)<0)<<31>>31;j=11;break}case 7:case 0:{d=Pm(a,b,c,0)|0;break}case 4:{d=l[b+(f+1)>>0]<<16|l[d>>0]<<24|l[b+(f+2)>>0]<<8|l[b+(f+3)>>0];e=((d|0)<0)<<31>>31;j=11;break}case 3:{d=l[b+(f+1)>>0]<<8|i[d>>0]<<16|l[b+(f+2)>>0];e=((d|0)<0)<<31>>31;j=11;break}case 8:{e=0;d=0;j=11;break}case 1:{d=i[d>>0]|0;e=((d|0)<0)<<31>>31;j=11;break}default:d=Pm(a,b,c,0)|0}do if((j|0)==11){if((h|0)>(e|0)|(h|0)==(e|0)&g>>>0>d>>>0){d=k[c+12>>2]|0;break}if((h|0)<(e|0)|(h|0)==(e|0)&g>>>0<d>>>0){d=k[c+16>>2]|0;break}if((m[c+4>>1]|0)>1){d=Pm(a,b,c,1)|0;break}else{d=i[c+6>>0]|0;break}}while(0);return d|0}function Hp(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+16|0;if((r|0)>=(s|0))ka();h=j;f=j+8|0;d=b+1|0;e=i[d>>0]|0;if(e<<24>>24>-1){d=e&255;k[f>>2]=d}else{rm(d,f)|0;d=k[f>>2]|0}do if((d|0)>=12){if(!(d&1)){d=k[c+16>>2]|0;break}f=l[b>>0]|0;g=(d+-12|0)/2|0;if((f+g|0)>(a|0)){k[h>>2]=68550;k[h+4>>2]=10788;gd(11,13600,h);i[c+7>>0]=11;d=0;break}d=k[c+8>>2]|0;e=k[d+12>>2]|0;d=cw(b+f|0,k[d+16>>2]|0,(g|0)>(e|0)?e:g)|0;if(d)if((d|0)>0){d=k[c+16>>2]|0;break}else{d=k[c+12>>2]|0;break}if((g|0)==(e|0))if((m[c+4>>1]|0)>1){d=Pm(a,b,c,1)|0;break}else{d=i[c+6>>0]|0;break}else if((g-e|0)>0){d=k[c+16>>2]|0;break}else{d=k[c+12>>2]|0;break}}else d=k[c+12>>2]|0;while(0);r=j;return d|0}function Ip(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;h=a+73|0;c=i[h>>0]|0;do if(c<<24>>24!=1){if((c&255)>2){c=Pn(a)|0;if(c)break;c=i[h>>0]|0}if(!(c<<24>>24)){k[b>>2]=1;c=0;break}c=a+68|0;d=k[c>>2]|0;if((d|0)!=0?(i[h>>0]=1,k[c>>2]=0,(d|0)>0):0)c=0;else n=9}else n=9;while(0);do if((n|0)==9){g=a+76|0;c=j[g>>1]|0;d=k[a+(c<<2)+120>>2]|0;c=a+(c<<1)+78|0;e=(j[c>>1]|0)+1<<16>>16;j[c>>1]=e;c=(i[d+5>>0]|0)!=0;if((e&65535)<(m[d+18>>1]|0)){if(c){c=0;break}c=_m(a)|0;break}if(!c){c=l[d+6>>0]|0;d=k[d+56>>2]|0;c=wm(a,l[d+(c+9)>>0]<<16|l[d+(c+8)>>0]<<24|l[d+(c+10)>>0]<<8|l[d+(c+11)>>0])|0;if(c)break;c=_m(a)|0;break}e=a+44|0;f=a+72|0;d=j[g>>1]|0;do{if(!(d<<16>>16)){n=15;break}c=k[a+(d<<16>>16<<2)+120>>2]|0;if(c){Gg(k[c+68>>2]|0);d=j[g>>1]|0}d=d+-1<<16>>16;j[g>>1]=d;j[e>>1]=0;i[f>>0]=l[f>>0]&249;o=d<<16>>16;c=k[a+(o<<2)+120>>2]|0}while((m[a+(o<<1)+78>>1]|0)>=(m[c+18>>1]|0));if((n|0)==15){k[b>>2]=1;i[h>>0]=0;c=0;break}if(!(i[c+2>>0]|0))c=0;else c=Im(a,b)|0}while(0);return c|0}function Jp(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;p=a+73|0;c=i[p>>0]|0;do if(c<<24>>24!=1){if((c&255)>2){c=Pn(a)|0;if(c)break;c=i[p>>0]|0}if(!(c<<24>>24)){k[b>>2]=1;c=0;break}c=a+68|0;d=k[c>>2]|0;if((d|0)!=0?(i[p>>0]=1,k[c>>2]=0,(d|0)<0):0)c=0;else e=9}else e=9;while(0);a:do if((e|0)==9){o=a+76|0;f=j[o>>1]|0;g=f<<16>>16;e=k[a+(g<<2)+120>>2]|0;d=a+(g<<1)+78|0;c=j[d>>1]|0;if(!(i[e+5>>0]|0)){b=k[e+56>>2]|0;c=(c&65535)<<1;p=k[e+64>>2]|0;c=(l[p+c>>0]<<8|l[p+(c|1)>>0])&m[e+20>>1];c=wm(a,l[b+(c+1)>>0]<<16|l[b+c>>0]<<24|l[b+(c+2)>>0]<<8|l[b+(c+3)>>0])|0;if(c)break;c=Kp(a)|0;break}b:do if(!(c<<16>>16)){h=a+44|0;n=a+72|0;e=g;while(1){if(!(f<<16>>16))break;d=k[a+(e<<2)+120>>2]|0;if(!d)d=f;else{Gg(k[d+68>>2]|0);d=j[o>>1]|0}f=d+-1<<16>>16;j[o>>1]=f;j[h>>1]=0;i[n>>0]=l[n>>0]&249;e=f<<16>>16;d=a+(e<<1)+78|0;c=j[d>>1]|0;if(c<<16>>16)break b}i[p>>0]=0;k[b>>2]=1;c=0;break a}while(0);j[d>>1]=c+-1<<16>>16;p=k[a+(j[o>>1]<<2)+120>>2]|0;if((i[p+2>>0]|0)!=0?(i[p+5>>0]|0)==0:0)c=Jm(a,b)|0;else c=0}while(0);return c|0}function Kp(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=a+76|0;do{c=j[d>>1]|0;b=k[a+(c<<2)+120>>2]|0;if(i[b+5>>0]|0){e=4;break}f=l[b+6>>0]|0;g=k[b+56>>2]|0;f=l[g+(f+9)>>0]<<16|l[g+(f+8)>>0]<<24|l[g+(f+10)>>0]<<8|l[g+(f+11)>>0];j[a+(c<<1)+78>>1]=j[b+18>>1]|0;b=wm(a,f)|0}while((b|0)==0);if((e|0)==4){j[a+(c<<1)+78>>1]=(m[b+18>>1]|0)+65535;b=0}return b|0}function Lp(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,i=0,l=0,m=0;m=r;r=r+224|0;if((r|0)>=(s|0))ka();i=m;g=m+8|0;k[g>>2]=0;do if(b){h=a+16|0;l=Km(k[h>>2]|0,m+16|0,200,g)|0;if(l){Lm(k[h>>2]|0,c,b,l);if(!(j[l+4>>1]|0)){rg(k[(k[h>>2]|0)+12>>2]|0,k[g>>2]|0);k[i>>2]=53713;k[i+4>>2]=10788;gd(11,13600,i);g=11;break}h=k[g>>2]|0;g=Hm(a,l,c,d,e,f)|0;if(h)rg(k[(k[a+16>>2]|0)+12>>2]|0,h)}else g=7}else g=Hm(a,0,c,d,e,f)|0;while(0);r=m;return g|0}function Mp(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,n=0,o=0,p=0,q=0;q=r;r=r+48|0;if((r|0)>=(s|0))ka();p=q+24|0;d=q;n=q+36|0;o=q+32|0;h=k[a+52>>2]|0;wp(a,b,d);j[c>>1]=j[d+20>>1]|0;c=j[d+18>>1]|0;a:do if(c<<16>>16){e=c&65535;f=b+(e+3)|0;if(f>>>0>((k[a+56>>2]|0)+(m[a+20>>1]|0)|0)>>>0){k[p>>2]=58720;k[p+4>>2]=10788;gd(11,13600,p);c=11;break}c=(k[h+36>>2]|0)+-4|0;c=(((k[d+12>>2]|0)+-1+c-(m[d+16>>1]|0)|0)>>>0)/(c>>>0)|0;if(c){g=h+44|0;a=c;e=l[b+(e+1)>>0]<<16|l[b+e>>0]<<24|l[b+(e+2)>>0]<<8|l[f>>0];while(1){a=a+-1|0;k[n>>2]=0;k[o>>2]=0;if(e>>>0<2)break;if(e>>>0>(k[g>>2]|0)>>>0)break;b=(a|0)==0;if(!b){c=Rp(h,e,o,n)|0;if(c)break a;c=k[o>>2]|0;if(c)f=13;else f=12}else f=12;if((f|0)==12){c=bq(h,e)|0;k[o>>2]=c;if(!c){c=0;f=15}else f=13}if((f|0)==13){f=0;if((j[(k[c+68>>2]|0)+26>>1]|0)==1)f=15;else{k[p>>2]=58754;k[p+4>>2]=10788;gd(11,13600,p);c=11}}if((f|0)==15)c=bn(h,c,e)|0;d=k[o>>2]|0;if((d|0)!=0?(i=k[d+68>>2]|0,(i|0)!=0):0)Gg(i);if(c)break a;if(b){c=0;break a}else e=k[n>>2]|0}k[p>>2]=58734;k[p+4>>2]=10788;gd(11,13600,p);c=11}else c=0}else c=0;while(0);r=q;return c|0}function Np(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;w=r;r=r+16|0;if((r|0)>=(s|0))ka();f=w;do if(!(k[d>>2]|0)){q=k[a+56>>2]|0;t=b<<1;u=k[a+64>>2]|0;v=u+t|0;e=(l[v>>0]|0)<<8|(l[u+(t|1)>>0]|0);g=a+6|0;h=l[g>>0]|0;n=q+(h+5)|0;o=q+(h+6)|0;if(e>>>0>=((l[n>>0]|0)<<8|(l[o>>0]|0))>>>0?(p=a+52|0,(e+c|0)>>>0<=(k[(k[p>>2]|0)+36>>2]|0)>>>0):0){c=Hq(a,e&65535,c&65535)|0;if(c){k[d>>2]=c;break}c=a+18|0;e=(j[c>>1]|0)+-1<<16>>16;j[c>>1]=e;if(!(e<<16>>16)){d=q+(h+1)|0;i[d>>0]=0;i[d+1>>0]=0;i[d+2>>0]=0;i[d+3>>0]=0;i[q+(h+7)>>0]=0;i[n>>0]=(k[(k[p>>2]|0)+36>>2]|0)>>>8;i[o>>0]=k[(k[p>>2]|0)+36>>2];j[a+16>>1]=(k[(k[p>>2]|0)+36>>2]|0)+65528-(l[g>>0]|0)-(l[a+7>>0]|0);break}else{qw(v|0,u+(t+2)|0,(e&65535)-b<<1|0)|0;i[q+(h+3)>>0]=(m[c>>1]|0)>>>8;i[q+(h+4)>>0]=j[c>>1];q=a+16|0;j[q>>1]=(m[q>>1]|0)+2;break}}k[f>>2]=58991;k[f+4>>2]=10788;gd(11,13600,f);k[d>>2]=11}while(0);r=w;return}function Op(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,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;D=r;r=r+16|0;if((r|0)>=(s|0))ka();n=D;z=D+12|0;v=D+8|0;a:do if(!(k[g>>2]|0)){h=a+1|0;if((i[h>>0]|0)==0?(B=d+2|0,C=a+16|0,(B|0)<=(m[C>>1]|0)):0){e=Lg(k[a+68>>2]|0)|0;if(e){k[g>>2]=e;break}w=k[a+56>>2]|0;o=m[a+14>>1]|0;x=a+18|0;y=m[x>>1]<<1;q=b<<1;t=o+q|0;u=a+6|0;e=l[u>>0]|0;k[z>>2]=0;b=y+o|0;o=w+(e+5)|0;p=w+(e+6)|0;h=((l[o>>0]<<8|l[p>>0])+65535&65535)+1|0;b:do if((b|0)>(h|0)){k[n>>2]=54326;k[n+4>>2]=10788;gd(11,13600,n);e=11}else{n=b+2|0;do if((n|0)<=(h|0)){if((i[w+(e+1)>>0]|0)==0?(i[w+(e+2)>>0]|0)==0:0){A=20;break}k[v>>2]=0;b=Iq(a,d,z,v)|0;e=k[z>>2]|0;if(e)break b;if(!(k[v>>2]|0))if(!b)A=20;else h=b-w|0;else A=21}else A=20;while(0);if((A|0)==20)if((n+d|0)>(h|0))A=21;else A=23;if((A|0)==21){e=Jq(a)|0;k[z>>2]=e;if(e)break;h=((l[o>>0]<<8|l[p>>0])+65535&65535)+1|0;A=23}if((A|0)==23){h=h-d|0;i[o>>0]=h>>>8;i[p>>0]=h}j[x>>1]=(j[x>>1]|0)+1<<16>>16;j[C>>1]=(m[C>>1]|0)-B;e=w+h|0;pw(e|0,c|0,d|0)|0;if(f){i[e>>0]=f>>>24;i[w+(h+1)>>0]=f>>>16;i[w+(h+2)>>0]=f>>>8;i[w+(h+3)>>0]=f}f=w+t|0;qw(w+(t+2)|0,f|0,y-q|0)|0;i[f>>0]=h>>>8;i[w+(t+1)>>0]=h;i[w+((l[u>>0]|0)+3)>>0]=(m[x>>1]|0)>>>8;i[w+((l[u>>0]|0)+4)>>0]=j[x>>1];if(!(i[(k[a+52>>2]|0)+17>>0]|0))break a;Kq(a,c,g);break a}while(0);k[g>>2]=e;break}if(!e)e=c;else pw(e|0,c|0,d|0)|0;if(f){i[e>>0]=f>>>24;i[e+1>>0]=f>>>16;i[e+2>>0]=f>>>8;i[e+3>>0]=f}g=i[h>>0]|0;i[h>>0]=g+1<<24>>24;g=g&255;k[a+(g<<2)+32>>2]=e;j[a+(g<<1)+22>>1]=b}while(0);r=D;return}function Pp(a){a=a|0;var b=0,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,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0;Oa=r;r=r+240|0;if((r|0)>=(s|0))ka();Na=Oa+24|0;Ka=Oa+200|0;Aa=Oa+188|0;za=Oa+168|0;ya=Oa+160|0;Ba=Oa+136|0;Ca=Oa+116|0;Ma=Oa+96|0;Ha=Oa+92|0;xa=Oa+229|0;wa=Oa+72|0;va=Oa+52|0;ua=Oa+206|0;Ga=Oa+48|0;Da=Oa;Fa=Oa+44|0;Ja=Oa+40|0;Ia=Oa+36|0;Ea=Oa+32|0;La=Oa+204|0;ta=Oa+216|0;da=a+4|0;ma=(k[(k[da>>2]|0)+36>>2]<<1>>>0)/3|0;na=a+76|0;qa=a+74|0;ra=ta+4|0;sa=ta;ea=a+124|0;ja=a+78|0;la=a+80|0;e=j[na>>1]|0;ca=0;while(1){f=e<<16>>16;g=k[a+(f<<2)+120>>2]|0;h=g+1|0;c=(i[h>>0]|0)==0;if(!(e<<16>>16)){if(c){c=ca;b=0;break}k[Ka>>2]=0;k[Aa>>2]=0;d=k[g+52>>2]|0;b=Lg(k[g+68>>2]|0)|0;k[Na>>2]=b;do if(!b){c=g+72|0;e=np(d,Ka,Aa,k[c>>2]|0,0)|0;k[Na>>2]=e;e=k[Ka>>2]|0;Lq(g,e,Na);if(i[d+17>>0]|0)Ep(d,k[Aa>>2]|0,5,k[c>>2]|0,Na);b=k[Na>>2]|0;if(!b){pw(e+22|0,g+22|0,l[h>>0]<<1|0)|0;pw(e+32|0,g+32|0,l[h>>0]<<2|0)|0;i[e+1>>0]=i[h>>0]|0;ul(g,l[k[e+56>>2]>>0]&247);b=l[g+6>>0]|0;$=k[g+56>>2]|0;_=k[Aa>>2]|0;i[$+(b+8)>>0]=_>>>24;i[$+(b+9)>>0]=_>>>16;i[$+(b+10)>>0]=_>>>8;i[$+(b+11)>>0]=_;k[ea>>2]=e;b=0;break}k[ea>>2]=0;if(e)Gg(k[e+68>>2]|0)}else k[ea>>2]=0;while(0);if(b){c=ca;break}j[na>>1]=1;j[ja>>1]=0;j[la>>1]=0;e=k[ea>>2]|0;d=e+1|0;if(!(i[d>>0]|0)){c=1;f=1;ba=15}else{n=1;f=1;h=d}}else if(c){c=e;e=g;d=h;ba=15}else{n=e;e=g}if((ba|0)==15){ba=0;if((m[e+16>>1]|0)>>>0>ma>>>0){n=c;h=d}else{c=ca;b=0;break}}d=f+-1|0;aa=k[a+(d<<2)+120>>2]|0;d=j[a+(d<<1)+78>>1]|0;o=d&65535;b=Lg(k[aa+68>>2]|0)|0;do if(!b){if(((((i[e+3>>0]|0)!=0?(i[h>>0]|0)==1:0)?(fa=j[e+22>>1]|0,ga=e+18|0,fa<<16>>16==(j[ga>>1]|0)):0)?(ha=aa+72|0,(k[ha>>2]|0)!=1):0)?(ia=aa+18|0,(j[ia>>1]|0)==d<<16>>16):0){d=k[e+52>>2]|0;if(!(fa<<16>>16)){k[Na>>2]=59423;k[Na+4>>2]=10788;gd(11,13600,Na);c=ca;b=11;break}$=np(d,Fa,Ia,0,0)|0;k[Ja>>2]=$;if(!$){c=k[e+32>>2]|0;k[Ea>>2]=c;b=Qp(e,c)|0;j[La>>1]=b;f=k[Fa>>2]|0;ul(f,13);Mq(f,1,Ea,La);j[f+16>>1]=65534-(b&65535)+(k[d+36>>2]|0)-(m[f+14>>1]|0);if((i[d+17>>0]|0)!=0?(Ep(d,k[Ia>>2]|0,5,k[ha>>2]|0,Ja),(b&65535)>(m[f+12>>1]|0)):0)Kq(f,c,Ja);$=k[e+56>>2]|0;d=m[ga>>1]<<1;c=k[e+64>>2]|0;d=(l[c+(d+-2)>>0]<<8|l[c+(d+-1)>>0])&m[e+20>>1];c=$+d|0;k[Ea>>2]=c;d=$+(d+9)|0;while(1){b=c+1|0;if((i[c>>0]|0)<0&b>>>0<d>>>0)c=b;else break}k[Ea>>2]=b;d=c+10|0;f=ra;while(1){k[Ea>>2]=b+1;$=i[b>>0]|0;c=f+1|0;i[f>>0]=$;b=k[Ea>>2]|0;if(!($<<24>>24<0&b>>>0<d>>>0))break;else f=c}Op(aa,m[ia>>1]|0,ta,c-sa|0,0,k[e+72>>2]|0,Ja);c=l[aa+6>>0]|0;$=k[aa+56>>2]|0;_=k[Ia>>2]|0;i[$+(c+8)>>0]=_>>>24;i[$+(c+9)>>0]=_>>>16;i[$+(c+10)>>0]=_>>>8;i[$+(c+11)>>0]=_;c=k[Fa>>2]|0;if(c)Gg(k[c+68>>2]|0)}c=ca;b=k[Ja>>2]|0;break}c=Lo(k[(k[da>>2]|0)+32>>2]|0)|0;X=n<<16>>16==1;g=l[qa>>0]|0;K=g&1;k[Ka>>2]=0;i[xa+0>>0]=0;i[xa+1>>0]=0;i[xa+2>>0]=0;i[xa+3>>0]=0;i[xa+4>>0]=0;Z=k[aa+52>>2]|0;if(!c)b=7;else{B=aa+1|0;n=l[B>>0]|0;Y=aa+18|0;b=m[Y>>1]|0;f=b+n|0;if((f|0)<2){_=f;T=0}else{do if(d<<16>>16)if((f|0)==(o|0)){g=(g|-2)+o|0;break}else{g=o+-1|0;break}else g=0;while(0);_=2-K|0;T=g}$=_+1|0;g=T-n+_|0;A=aa+56|0;n=k[A>>2]|0;if((g|0)==(b|0))o=(l[aa+6>>0]|0)+8|0;else{o=g<<1;W=k[aa+64>>2]|0;o=(l[W+o>>0]<<8|l[W+(o|1)>>0])&m[aa+20>>1]}Q=n+o|0;O=n+(o+1)|0;P=n+(o+2)|0;D=n+(o+3)|0;W=l[O>>0]<<16|l[Q>>0]<<24|l[P>>0]<<8|l[D>>0];k[Ha>>2]=W;o=Aa+(_<<2)|0;W=Ap(Z,W,o,0)|0;k[Ka>>2]=W;a:do if(!W){t=aa+22|0;w=aa+32|0;x=aa+20|0;y=aa+64|0;z=Z+22|0;N=Z+36|0;u=_;n=0;while(1){d=k[o>>2]|0;n=n+1+(m[d+18>>1]|0)+(l[d+1>>0]|0)|0;d=u+-1|0;if(!u)break;v=d+T|0;o=i[B>>0]|0;if((v|0)==(m[t>>1]|0))if(!(o<<24>>24)){o=0;ba=52}else{W=k[w>>2]|0;k[ya+(d<<2)>>2]=W;g=l[W+1>>0]<<16|l[W>>0]<<24|l[W+2>>0]<<8|l[W+3>>0];k[Ha>>2]=g;W=(Qp(aa,W)|0)&65535;k[Ma+(d<<2)>>2]=W;i[B>>0]=0}else ba=52;if((ba|0)==52){ba=0;g=k[A>>2]|0;p=v-(o&255)<<1;f=k[y>>2]|0;p=(l[f+p>>0]<<8|l[f+(p|1)>>0])&m[x>>1];f=g+p|0;b=ya+(d<<2)|0;k[b>>2]=f;g=l[g+(p+1)>>0]<<16|l[f>>0]<<24|l[g+(p+2)>>0]<<8|l[g+(p+3)>>0];k[Ha>>2]=g;q=(Qp(aa,f)|0)&65535;k[Ma+(d<<2)>>2]=q;if(j[z>>1]&4){if((q+p|0)>(k[N>>2]|0)){d=u;ba=54;break}pw(c+p|0,f|0,q|0)|0;k[b>>2]=c+(f-(k[A>>2]|0));o=i[B>>0]|0}Np(aa,v-(o&255)|0,q,Ka)}o=Aa+(d<<2)|0;W=Ap(Z,g,o,0)|0;k[Ka>>2]=W;if(W){ba=47;break a}else u=d}if((ba|0)==54){ba=0;k[Na>>2]=59766;k[Na+4>>2]=10788;gd(11,13600,Na);k[Ka>>2]=11;kw(Aa|0,0,d<<2|0)|0;f=0;g=0;break}o=n+3&-4;W=li((k[Z+32>>2]|0)+(o*6|0)|0)|0;if(!W){k[Ka>>2]=7;f=W;g=0;break}U=W+(o<<2)|0;G=U+(o<<1)|0;J=k[Aa>>2]|0;R=l[J+5>>0]<<2;V=R&65535;S=i[J+3>>0]|0;C=S&255;if((_|0)>-1){F=S<<24>>24!=0;H=J;g=0;I=0;n=0;while(1){E=m[H+18>>1]|0;M=i[H+1>>0]|0;A=M&255;B=A+E|0;if(!(M<<24>>24)){b=k[H+56>>2]|0;if((B|0)>0){v=m[H+20>>1]|0;u=m[H+14>>1]|0;t=0;q=n;while(1){M=(t<<1)+u|0;M=b+((l[b+M>>0]<<8|l[b+(M+1)>>0])&v)|0;k[W+(q<<2)>>2]=M;M=Qp(H,M)|0;j[U+(q<<1)>>1]=M;t=t+1|0;if((t|0)==(E|0))break;else q=q+1|0}n=E+n|0}}else if((B|0)>0){w=H+56|0;u=H+20|0;t=H+64|0;q=0;b=n;while(1){v=q;z=A;b:while(1){while(1){x=z+-1|0;if((z|0)<=0){ba=72;break b}z=m[H+(x<<1)+22>>1]|0;if((z|0)>(v|0))z=x;else{y=z;z=x;break}}if((y|0)==(v|0)){ba=71;break}else v=v+-1|0}if((ba|0)==71){ba=0;v=k[H+(z<<2)+32>>2]|0}else if((ba|0)==72){ba=0;v=v<<1;M=k[t>>2]|0;v=(k[w>>2]|0)+((l[M+v>>0]<<8|l[M+(v|1)>>0])&m[u>>1])|0}k[W+(b<<2)>>2]=v;M=Qp(H,v)|0;j[U+(b<<1)>>1]=M;q=q+1|0;if((q|0)==(B|0))break;else b=b+1|0}n=E+n+A|0}k[Ca+(g<<2)>>2]=n;if((g|0)>=(_|0)|F)o=I;else{d=k[Ma+(g<<2)>>2]|0;p=U+(n<<1)|0;j[p>>1]=d;d=d&65535;o=d+I|0;pw(G+I|0,k[ya+(g<<2)>>2]|0,d|0)|0;d=W+(n<<2)|0;k[d>>2]=G+(I+R);f=(m[p>>1]|0)-R|0;j[p>>1]=f;do if(!(i[H+5>>0]|0)){M=k[d>>2]|0;L=(k[H+56>>2]|0)+8|0;L=l[L>>0]|l[L+1>>0]<<8|l[L+2>>0]<<16|l[L+3>>0]<<24;i[M>>0]=L;i[M+1>>0]=L>>8;i[M+2>>0]=L>>16;i[M+3>>0]=L>>24}else{if((f&65532)>>>0>=4)break;i[G+o>>0]=0;j[p>>1]=4;o=o+1|0}while(0);n=n+1|0}g=g+1|0;if((g|0)>=($|0))break;H=k[Aa+(g<<2)>>2]|0;I=o}o=R+-12+(k[N>>2]|0)|0;if((n|0)>0){p=F<<31>>31;f=0;d=0;g=0;do{b=g+2+(m[U+(f<<1)>>1]|0)|0;if((b|0)>(o|0)){k[Ma+(d<<2)>>2]=g;k[Ba+(d<<2)>>2]=f;if((d|0)>3){ba=91;break}else{f=f+p|0;d=d+1|0;g=0}}else g=b;f=f+1|0}while((f|0)<(n|0));if((ba|0)==91){ba=0;k[Na>>2]=59904;k[Na+4>>2]=10788;gd(11,13600,Na);k[Ka>>2]=11;f=W;g=0;break}k[Ma+(d<<2)>>2]=g;k[Ba+(d<<2)>>2]=n;if((d|0)>0){B=(K|0)==0;f=d;do{q=Ma+(f<<2)|0;f=f+-1|0;b=Ma+(f<<2)|0;t=Ba+(f<<2)|0;x=k[t>>2]|0;A=k[b>>2]|0;p=g;while(1){w=x+-1|0;v=x-C|0;if(p){if(!B){g=A;break}y=j[U+(v<<1)>>1]|0;z=p+2|0;v=j[U+(w<<1)>>1]|0;u=A+-2|0;if(((y&65535)+z|0)>(u-(v&65535)|0)){g=A;break}}else{u=A+-2|0;z=2;y=j[U+(v<<1)>>1]|0;v=j[U+(w<<1)>>1]|0}k[t>>2]=w;x=w;A=u-(v&65535)|0;p=(y&65535)+z|0}k[q>>2]=p;k[b>>2]=g}while((f|0)>0);I=1;M=o;L=n}else{I=1;M=o;L=n}}else ba=93}else{o=R+-12+(k[N>>2]|0)|0;n=0;ba=93}if((ba|0)==93){ba=0;k[Ma>>2]=0;k[Ba>>2]=n;I=0;M=o;d=0;L=n}if((k[J+72>>2]|0)>>>0<2){k[Na>>2]=59963;k[Na+4>>2]=10788;gd(11,13600,Na);k[Ka>>2]=11;f=W;g=0;break}E=l[k[J+56>>2]>>0]|0;if((d|0)>-1){q=(K|0)!=0;b=Z+17|0;f=aa+72|0;u=0;g=0;while(1){do if((u|0)<($|0)){J=Aa+(u<<2)|0;K=k[J>>2]|0;k[za+(u<<2)>>2]=K;k[Ga>>2]=K;k[J>>2]=0;K=Lg(k[K+68>>2]|0)|0;k[Ka>>2]=K;g=g+1|0;if(K){f=W;break a}}else{K=np(Z,Ga,Ha,q?1:k[Ha>>2]|0,0)|0;k[Ka>>2]=K;if(K){f=W;break a}o=k[Ga>>2]|0;ul(o,E);k[za+(u<<2)>>2]=o;g=g+1|0;k[Ca+(u<<2)>>2]=L;if(!(i[b>>0]|0))break;Ep(Z,k[o+72>>2]|0,5,k[f>>2]|0,Ka);if(k[Ka>>2]|0){f=W;break a}}while(0);if((u|0)<(d|0))u=u+1|0;else break}if((g|0)>0){n=0;c:do{K=k[za+(n<<2)>>2]|0;o=k[K+72>>2]|0;k[wa+(n<<2)>>2]=o;k[va+(n<<2)>>2]=o;j[ua+(n<<1)>>1]=j[(k[K+68>>2]|0)+24>>1]|0;if((n|0)>0){f=0;do{if((k[wa+(f<<2)>>2]|0)==(o|0)){ba=118;break c}f=f+1|0}while((f|0)<(n|0))}n=n+1|0}while((n|0)<(g|0));if((ba|0)==118){ba=0;k[Na>>2]=60018;k[Na+4>>2]=10788;gd(11,13600,Na);k[Ka>>2]=11;f=W;break}p=(g|0)>1;f=Z+44|0;d=0;do{if(p){n=0;o=1;do{n=(k[va+(o<<2)>>2]|0)>>>0<(k[va+(n<<2)>>2]|0)>>>0?o:n;o=o+1|0}while((o|0)!=(g|0))}else n=0;K=va+(n<<2)|0;o=k[K>>2]|0;k[K>>2]=-1;if((n|0)!=(d|0)){if((n|0)>(d|0)){J=k[(k[za+(n<<2)>>2]|0)+68>>2]|0;K=n+1+(k[f>>2]|0)|0;j[J+24>>1]=0;cq(J,K)}K=k[za+(d<<2)>>2]|0;J=k[K+68>>2]|0;j[J+24>>1]=j[ua+(n<<1)>>1]|0;cq(J,o);k[K+72>>2]=o}d=d+1|0}while((d|0)!=(g|0));k[Ha>>2]=o;K=0}else K=1}else{K=1;g=0}H=g+-1|0;o=k[za+(H<<2)>>2]|0;J=k[o+72>>2]|0;i[Q>>0]=J>>>24;i[O>>0]=J>>>16;i[P>>0]=J>>>8;i[D>>0]=J;if(!((E&8|0)!=0|($|0)==(g|0))){Q=(k[o+56>>2]|0)+8|0;P=(k[(k[((g|0)>($|0)?za:Aa)+(_<<2)>>2]|0)+56>>2]|0)+8|0;P=l[P>>0]|l[P+1>>0]<<8|l[P+2>>0]<<16|l[P+3>>0]<<24;i[Q>>0]=P;i[Q+1>>0]=P>>8;i[Q+2>>0]=P>>16;i[Q+3>>0]=P>>24}J=Z+17|0;if((i[J>>0]|0)!=0?(oa=k[za>>2]|0,pa=k[N>>2]|0,I):0){A=S<<24>>24==0;y=A&1;x=V<<16>>16==0;v=k[oa+56>>2]|0;u=(m[oa+18>>1]|0)+(l[oa+1>>0]|0)|0;w=0;t=0;n=0;p=oa;while(1){z=k[W+(w<<2)>>2]|0;if((w|0)==(u|0)){n=n+1|0;if((n|0)<(g|0))o=za+(n<<2)|0;else o=Aa+(n<<2)|0;u=k[o>>2]|0;v=k[u+56>>2]|0;u=w+y+(m[u+18>>1]|0)+(l[u+1>>0]|0)|0}if((w|0)==(k[Ba+(t<<2)>>2]|0)){o=t+1|0;p=k[za+(o<<2)>>2]|0;if(!A)ba=142}else{o=t;ba=142}do if((ba|0)==142){ba=0;if((n|0)<(g|0)?(z>>>0>=v>>>0?(k[p+72>>2]|0)==(k[wa+(n<<2)>>2]|0):0)&z>>>0<(v+pa|0)>>>0:0)break;if(x)Ep(Z,l[z+1>>0]<<16|l[z>>0]<<24|l[z+2>>0]<<8|l[z+3>>0],5,k[p+72>>2]|0,Ka);if((m[U+(w<<1)>>1]|0)<=(m[p+12>>1]|0))break;Kq(p,z,Ka)}while(0);w=w+1|0;if((w|0)==(L|0))break;else t=o}}if((H|0)>0){q=S<<24>>24==0;u=0;v=0;while(1){t=k[za+(u<<2)>>2]|0;n=k[Ba+(u<<2)>>2]|0;f=k[W+(n<<2)>>2]|0;d=j[U+(n<<1)>>1]|0;o=(d&65535)+R|0;p=c+v|0;do if(!(i[t+5>>0]|0)){n=(k[t+56>>2]|0)+8|0;Q=l[f>>0]|l[f+1>>0]<<8|l[f+2>>0]<<16|l[f+3>>0]<<24;i[n>>0]=Q;i[n+1>>0]=Q>>8;i[n+2>>0]=Q>>16;i[n+3>>0]=Q>>24;n=p}else{if(!q){wp(t,k[W+(n+-1<<2)>>2]|0,Da);o=Da;f=p;n=0;o=(um(c+(v+4)|0,k[o>>2]|0,k[o+4>>2]|0)|0)+4|0;break}b=f+-4|0;if(d<<16>>16!=4){f=b;n=p;break}f=b;n=p;o=(Qp(aa,b)|0)&65535}while(0);Op(aa,u+T|0,f,o,n,k[t+72>>2]|0,Ka);if(k[Ka>>2]|0){f=W;break a}u=u+1|0;if((u|0)>=(H|0))break;else v=o+v|0}}o=1-g|0;if((o|0)<(g|0)){I=k[Ba>>2]|0;H=S<<24>>24==0&1;do{F=(o|0)<0?0-o|0:o;G=xa+F|0;do if(!(i[G>>0]|0)){if((o|0)<=-1?(T=F+-1|0,(k[Ca+(T<<2)>>2]|0)<(k[Ba+(T<<2)>>2]|0)):0)break;if(!F){E=0;f=0;D=I}else{n=F+-1|0;if((F|0)<($|0))f=(k[Ca+(n<<2)>>2]|0)+H|0;else f=L;D=(k[Ba+(n<<2)>>2]|0)+H|0;E=D;D=(k[Ba+(F<<2)>>2]|0)-D|0}B=k[za+(F<<2)>>2]|0;q=k[B+56>>2]|0;b=l[B+6>>0]|0;d=B+64|0;n=(k[d>>2]|0)+(D<<1)|0;p=B+18|0;v=m[p>>1]|0;C=B+1|0;u=v+f+(l[C>>0]|0)|0;t=D+E|0;if((f|0)<(E|0)){T=Nq(B,E-f|0,W+(f<<2)|0,U+(f<<1)|0)|0;S=k[d>>2]|0;qw(S|0,S+(T<<1)|0,v<<1|0)|0;v=v-T|0}if((u|0)>(t|0))v=v-(Nq(B,u-t|0,W+(t<<2)|0,U+(t<<1)|0)|0)|0;x=q+(b+5)|0;w=q+(b+6)|0;T=q+(((l[x>>0]<<8|l[w>>0])+65535&65535)+1)|0;k[Na>>2]=T;d:do if(T>>>0<n>>>0)ba=181;else{if((E|0)<(f|0)){u=f-E|0;u=(u|0)>(D|0)?D:u;T=k[d>>2]|0;qw(T+(u<<1)|0,T|0,v<<1|0)|0;if(Oq(B,n,Na,T,u,W+(E<<2)|0,U+(E<<1)|0)|0){ba=181;break}v=v+u|0}u=i[C>>0]|0;if(u<<24>>24){A=0;do{z=(m[B+(A<<1)+22>>1]|0)+f|0;y=z-E|0;if((y|0)>-1&(y|0)<(D|0)){S=y<<1;R=k[d>>2]|0;T=R+S|0;qw(R+(S+2)|0,T|0,v-y<<1|0)|0;if(Oq(B,n,Na,T,1,W+(z<<2)|0,U+(z<<1)|0)|0){ba=181;break d}u=i[C>>0]|0;v=v+1|0}A=A+1|0}while((A|0)<(u&255|0))}T=v+E|0;if(Oq(B,n,Na,(k[d>>2]|0)+(v<<1)|0,D-v|0,W+(T<<2)|0,U+(T<<1)|0)|0){ba=181;break}T=D&65535;j[p>>1]=T;i[C>>0]=0;i[q+(b+3)>>0]=(T&65535)>>>8;i[q+(b+4)>>0]=j[p>>1];T=(k[Na>>2]|0)-q|0;i[x>>0]=T>>>8;i[w>>0]=T}while(0);if((ba|0)==181){ba=0;Mq(B,D,W+(E<<2)|0,U+(E<<1)|0)}i[G>>0]=1;j[B+16>>1]=M-(k[Ma+(F<<2)>>2]|0)}while(0);o=o+1|0}while((o|0)!=(g|0))}do if(X){if(j[Y>>1]|0){ba=191;break}f=k[za>>2]|0;if((l[aa+6>>0]|0)>>>0>(m[f+16>>1]|0)>>>0){ba=191;break}Z=Jq(f)|0;k[Ka>>2]=Z;Lq(f,aa,Ka);if(k[Ka>>2]|0)break;Z=bn(k[f+52>>2]|0,f,k[f+72>>2]|0)|0;k[Ka>>2]=Z}else ba=191;while(0);do if((ba|0)==191){ba=0;if((i[J>>0]|0)==0|V<<16>>16!=0|K)break;else f=0;do{Y=k[za+(f<<2)>>2]|0;X=k[Y+56>>2]|0;Ep(Z,l[X+9>>0]<<16|l[X+8>>0]<<24|l[X+10>>0]<<8|l[X+11>>0],5,k[Y+72>>2]|0,Ka);f=f+1|0}while((f|0)!=(g|0))}while(0);if((g|0)>=($|0)){f=W;break}f=k[Ka>>2]|0;b=g;do{d=k[Aa+(b<<2)>>2]|0;if(!f){f=bn(k[d+52>>2]|0,d,k[d+72>>2]|0)|0;k[Ka>>2]=f}b=b+1|0}while((b|0)!=($|0));f=W}else{d=_;ba=47}while(0);if((ba|0)==47){ba=0;kw(Aa|0,0,(d<<2)+4|0)|0;f=0;g=0}mi(f);if((_|0)>-1){d=0;do{f=k[Aa+(d<<2)>>2]|0;if(f)Gg(k[f+68>>2]|0);d=d+1|0}while((d|0)<($|0))}if((g|0)>0){d=0;do{b=k[za+(d<<2)>>2]|0;if(b)Gg(k[b+68>>2]|0);d=d+1|0}while((d|0)!=(g|0))}b=k[Ka>>2]|0}if(ca)el(ca)}else c=ca;while(0);i[h>>0]=0;if(e)Gg(k[e+68>>2]|0);e=(j[na>>1]|0)+-1<<16>>16;j[na>>1]=e;if(b)break;else ca=c}if(c)el(c);r=Oa;return b|0}function Qp(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=l[a+7>>0]|0;d=b+c|0;do if(!(i[a+4>>0]|0)){f=i[d>>0]|0;e=f&255;if(f<<24>>24<0){f=b+(c+9)|0;c=e&127;do{d=d+1|0;e=i[d>>0]|0;c=e&127|c<<7}while(e<<24>>24<0&d>>>0<f>>>0)}else c=e;e=d+1|0;if(i[a+2>>0]|0){g=d+10|0;f=e;while(1){e=d+2|0;if((i[f>>0]|0)<0&e>>>0<g>>>0){d=f;f=e}else break}}d=m[a+10>>1]|0;if(c>>>0>d>>>0){f=m[a+12>>1]|0;c=(((c-f|0)>>>0)%(((k[(k[a+52>>2]|0)+36>>2]|0)+-4|0)>>>0)|0)+f|0;c=(e-b&65535)+4+(c>>>0>d>>>0?f:c)|0;break}else{c=e-b+c|0;c=c>>>0<4?4:c;break}}else{e=b+(c+9)|0;while(1){c=d+1|0;if((i[d>>0]|0)<0&c>>>0<e>>>0)d=c;else break}c=c-b|0}while(0);return c&65535|0}function Rp(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;q=r;r=r+16|0;if((r|0)>=(s|0))ka();o=q+4|0;n=q;m=q+8|0;k[o>>2]=0;if(i[a+17>>0]|0){e=((k[2514]|0)>>>0)/((k[a+32>>2]|0)>>>0)|0;h=a+36|0;j=b;while(1){g=j+1|0;if(g>>>0<2)f=0;else{f=j+-1|0;f=f-((f>>>0)%(((((k[h>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;f=((f+1|0)==(e|0)?3:2)+f|0}if((f|0)==(g|0)|(j|0)==(e|0))j=g;else break}if(g>>>0<=(k[a+44>>2]|0)>>>0){j=mp(a,g,m,n)|0;h=(j|0)==0;f=h&(i[m>>0]|0)==4&(k[n>>2]|0)==(b|0);g=f?g:0;if(f|h^1){e=0;f=f?101:j}else p=8}else{g=0;p=8}}else{g=0;p=8}if((p|0)==8){f=il(a,b,o,(c|0)==0?2:0)|0;e=k[o>>2]|0;if(!f){g=k[e+56>>2]|0;g=l[g+1>>0]<<16|l[g>>0]<<24|l[g+2>>0]<<8|l[g+3>>0];f=0}}k[d>>2]=g;if(!c){if(e)Gg(k[e+68>>2]|0)}else k[c>>2]=e;r=q;return ((f|0)==101?0:f)|0}function Sp(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;k[g>>2]=0;e=(b|0)!=0;a:do if(c)if(e){e=g;while(1){f=c+8|0;while(1){if(($p(a,b+8|0,k[b>>2]|0,f,k[c>>2]|0)|0)>=1)break;k[e>>2]=b;e=b+4|0;b=k[e>>2]|0;if(!b){b=0;f=0;break a}else f=0}k[e>>2]=c;e=c+4|0;c=k[e>>2]|0;if(!c){c=0;f=1;break a}if(!b){b=0;f=0;break}}}else{f=e;e=g}else{c=0;f=e;e=g}while(0);k[e>>2]=f?b:c;k[d>>2]=k[g>>2];r=h;return}function Tp(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+8|0;d=f;c=k[2252]|0;if((c|0)!=0?(qc[c&127](202)|0)!=0:0)c=3338;else{c=rp(k[a>>2]|0,0,b,4126,e)|0;k[e>>2]=c;if(!c){c=d;k[c>>2]=0;k[c+4>>2]=0;c=k[b>>2]|0;fc[k[(k[c>>2]|0)+40>>2]&63](c,18,d)|0;c=k[e>>2]|0}}r=f;return c|0}function Up(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;f=b+0|0;g=f+40|0;do{k[f>>2]=0;f=f+4|0}while((f|0)<(g|0));f=((c|0)<0)<<31>>31;g=vg(c,f)|0;k[b+4>>2]=g;if(!g)k[b>>2]=7;else{g=ww(d|0,e|0,c|0,f|0)|0;k[b+12>>2]=g;k[b+16>>2]=g;g=iw(d|0,e|0,g|0,((g|0)<0)<<31>>31|0)|0;f=b+24|0;k[f>>2]=g;k[f+4>>2]=L;k[b+8>>2]=c;k[b+32>>2]=a}return}function Vp(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,l=0,m=0,n=0,o=0,p=0,q=0;a:do if((c|0)>0){e=a+8|0;g=a+16|0;h=a+4|0;i=a+32|0;j=a+12|0;l=a+24|0;m=c;do{if(k[a>>2]|0)break a;f=k[g>>2]|0;d=(k[e>>2]|0)-f|0;d=(m|0)>(d|0)?d:m;pw((k[h>>2]|0)+f|0,b+(c-m)|0,d|0)|0;f=(k[g>>2]|0)+d|0;k[g>>2]=f;if((f|0)==(k[e>>2]|0)){q=k[i>>2]|0;o=k[j>>2]|0;p=(k[h>>2]|0)+o|0;n=l;n=ow(k[n>>2]|0,k[n+4>>2]|0,o|0,((o|0)<0)<<31>>31|0)|0;n=yc[k[(k[q>>2]|0)+12>>2]&31](q,p,f-o|0,n,L)|0;k[a>>2]=n;k[g>>2]=0;k[j>>2]=0;n=k[e>>2]|0;f=l;n=ow(k[f>>2]|0,k[f+4>>2]|0,n|0,((n|0)<0)<<31>>31|0)|0;f=l;k[f>>2]=n;k[f+4>>2]=L}m=m-d|0}while((m|0)>0)}while(0);return}function Wp(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=a+4|0;if(((k[a>>2]|0)==0?(d=k[e>>2]|0,(d|0)!=0):0)?(c=k[a+16>>2]|0,f=k[a+12>>2]|0,(c|0)>(f|0)):0){h=k[a+32>>2]|0;g=a+24|0;g=ow(k[g>>2]|0,k[g+4>>2]|0,f|0,((f|0)<0)<<31>>31|0)|0;c=yc[k[(k[h>>2]|0)+12>>2]&31](h,d+f|0,c-f|0,g,L)|0;k[a>>2]=c}d=a+24|0;c=k[a+16>>2]|0;d=ow(c|0,((c|0)<0)<<31>>31|0,k[d>>2]|0,k[d+4>>2]|0)|0;c=b;k[c>>2]=d;k[c+4>>2]=L;$c(k[e>>2]|0);e=k[a>>2]|0;c=a+0|0;d=c+40|0;do{k[c>>2]=0;c=c+4|0}while((c|0)<(d|0));return e|0}function Xp(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,j=0,l=0,m=0,n=0;f=k[2252]|0;if((f|0)!=0?(qc[f&127](201)|0)!=0:0)f=266;else{g=b+44|0;if(k[g>>2]|0)k[g>>2]=0;n=b;k[n>>2]=d;k[n+4>>2]=e;n=c+8|0;l=k[n>>2]|0;n=k[n+4>>2]|0;i=b+8|0;j=i;k[j>>2]=l;k[j+4>>2]=n;c=k[c>>2]|0;j=b+24|0;k[j>>2]=c;a=a+8|0;f=k[a>>2]|0;h=k[(k[f+24>>2]|0)+136>>2]|0;m=((h|0)<0)<<31>>31;if(!((n|0)>(m|0)|(n|0)==(m|0)&l>>>0>h>>>0)?(k[k[c>>2]>>2]|0)>2:0){k[g>>2]=0;f=k[a>>2]|0}h=k[f+12>>2]|0;c=((h|0)<0)<<31>>31;e=ww(d|0,e|0,h|0,c|0)|0;a=b+36|0;f=k[a>>2]|0;if(!f){f=vg(h,c)|0;k[a>>2]=f;k[b+40>>2]=h;d=f;f=(f|0)==0?7:0}else{d=f;f=0}if((f|0)==0&(e|0)!=0){f=h-e|0;h=b;g=k[h>>2]|0;h=k[h+4>>2]|0;b=ow(g|0,h|0,f|0,((f|0)<0)<<31>>31|0)|0;l=L;c=i;a=k[c>>2]|0;c=k[c+4>>2]|0;if((l|0)>(c|0)|(l|0)==(c|0)&b>>>0>a>>>0)f=iw(a|0,c|0,g|0,h|0)|0;j=k[j>>2]|0;f=yc[k[(k[j>>2]|0)+8>>2]&31](j,d+e|0,f,g,h)|0}}return f|0}function Yp(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+32|0;if((r|0)>=(s|0))ka();g=h+8|0;f=h;d=k[a+44>>2]|0;c=a;e=k[c>>2]|0;a:do if(!d){d=k[a+40>>2]|0;c=ww(e|0,k[c+4>>2]|0,d|0,((d|0)<0)<<31>>31|0)|0;if((c|0)!=0&(d-c|0)>8){d=(xp((k[a+36>>2]|0)+c|0,b)|0)&255;c=a;d=ow(k[c>>2]|0,k[c+4>>2]|0,d|0,0)|0;c=a;k[c>>2]=d;k[c+4>>2]=L;c=0;break}else d=0;while(1){c=Pq(a,1,f)|0;if(c)break a;c=i[k[f>>2]>>0]|0;i[g+(d&15)>>0]=c;if(c<<24>>24<0)d=d+1|0;else break}xp(g,b)|0;c=0}else{d=(xp(d+e|0,b)|0)&255;c=a;d=ow(k[c>>2]|0,k[c+4>>2]|0,d|0,0)|0;c=a;k[c>>2]=d;k[c+4>>2]=L;c=0}while(0);r=h;return c|0}function Zp(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();f=h;c=f;k[c>>2]=0;k[c+4>>2]=0;c=a;e=k[c+4>>2]|0;b=a+8|0;d=k[b+4>>2]|0;do if((e|0)<(d|0)|((e|0)==(d|0)?(k[c>>2]|0)>>>0<(k[b>>2]|0)>>>0:0))g=9;else{c=k[a+48>>2]|0;if(c){b=Qq(c)|0;i=c+32|0;e=c+48|0;k[i+0>>2]=k[e+0>>2];k[i+4>>2]=k[e+4>>2];k[i+8>>2]=k[e+8>>2];k[i+12>>2]=k[e+12>>2];i=c+40|0;e=c+8|0;d=k[e>>2]|0;e=k[e+4>>2]|0;if((k[i>>2]|0)==(d|0)?(k[i+4>>2]|0)==(e|0):0)k[c+20>>2]=1;if(!b)if(!(k[c+20>>2]|0)){b=Xp(k[c>>2]|0,a,c+32|0,d,e)|0;if(!b){g=9;break}else break}else b=0}else b=0;_p(a)}while(0);if((g|0)==9){b=Yp(a,f)|0;if(!b){b=k[f>>2]|0;k[a+20>>2]=b;b=Pq(a,b,a+32|0)|0}}r=h;return b|0}function _p(a){a=a|0;var b=0;$c(k[a+28>>2]|0);$c(k[a+36>>2]|0);Xm(k[a+48>>2]|0);a=a+0|0;b=a+56|0;do{k[a>>2]=0;a=a+4|0}while((a|0)<(b|0));return}function $p(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=k[a+12>>2]|0;if(d)Lm(k[(k[a+8>>2]|0)+28>>2]|0,e,d,f);return Pm(c,b,f,0)|0}function aq(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;w=r;r=r+16|0;if((r|0)>=(s|0))ka();f=w;e=w+8|0;q=w+12|0;do if((k[a+44>>2]|0)>>>0>=b>>>0){b=Ap(a,b,e,0)|0;if(!b){u=k[e>>2]|0;t=u+9|0;a:do if(!(i[t>>0]|0)){i[t>>0]=1;o=l[u+6>>0]|0;h=u+18|0;e=j[h>>1]|0;if(!(e<<16>>16)){e=e&65535;b=u+5|0}else{g=0;while(1){f=k[u+56>>2]|0;e=g<<1;b=k[u+64>>2]|0;e=(l[b+e>>0]<<8|l[b+(e|1)>>0])&m[u+20>>1];b=f+e|0;n=u+5|0;if((i[n>>0]|0)==0?(p=aq(a,l[f+(e+1)>>0]<<16|l[b>>0]<<24|l[f+(e+2)>>0]<<8|l[f+(e+3)>>0],1,d)|0,(p|0)!=0):0){b=p;v=21;break a}b=Mp(u,b,q)|0;g=g+1|0;if(b){v=21;break a}e=m[h>>1]|0;if((g|0)>=(e|0)){b=n;break}}}if(!(i[b>>0]|0)){b=k[u+56>>2]|0;b=aq(a,l[b+(o+9)>>0]<<16|l[b+(o+8)>>0]<<24|l[b+(o+10)>>0]<<8|l[b+(o+11)>>0],1,d)|0;if(!b)v=16}else if(!d)v=16;else{k[d>>2]=(k[d>>2]|0)+e;v=16}if((v|0)==16){if(c){b=bn(k[u+52>>2]|0,u,k[u+72>>2]|0)|0;v=21;break}b=Lg(k[u+68>>2]|0)|0;if(!b){ul(u,l[(k[u+56>>2]|0)+o>>0]|8);b=0;v=21;break}}i[t>>0]=0}else{k[f>>2]=60971;k[f+4>>2]=10788;gd(11,13600,f);b=11;v=21}while(0);if((v|0)==21){i[t>>0]=0;if(!u)break}Gg(k[u+68>>2]|0)}}else{k[f>>2]=60966;k[f+4>>2]=10788;gd(11,13600,f);b=11}while(0);r=w;return b|0}function bq(a,b){a=a|0;b=b|0;var c=0,d=0;d=(k[a>>2]|0)+204|0;c=fc[k[8744+132>>2]&63](k[(k[d>>2]|0)+40>>2]|0,b,0)|0;c=nl(k[d>>2]|0,b,c)|0;if(!c)c=0;else{d=k[c+8>>2]|0;k[d+56>>2]=k[c+4>>2];k[d+68>>2]=c;k[d+52>>2]=a;k[d+72>>2]=b;i[d+6>>0]=(b|0)==1?100:0;c=d}return c|0}function cq(a,b){a=a|0;b=b|0;var c=0;c=a+20|0;vc[k[8744+140>>2]&15](k[(k[a+28>>2]|0)+40>>2]|0,k[a>>2]|0,k[c>>2]|0,b);k[c>>2]=b;if((j[a+24>>1]&6)==6)Vo(a,3);return}function dq(a){a=a|0;var b=0,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;v=r;r=r+16|0;if((r|0)>=(s|0))ka();u=v;p=k[a+52>>2]|0;q=i[a>>0]|0;t=k[a+72>>2]|0;o=eq(a)|0;k[u>>2]=o;if(!o){o=j[a+18>>1]|0;n=o&65535;if(!(o<<16>>16))b=a+5|0;else{c=a+56|0;d=a+20|0;e=a+64|0;b=a+5|0;o=0;do{f=k[c>>2]|0;g=o<<1;h=k[e>>2]|0;g=(l[h+g>>0]<<8|l[h+(g|1)>>0])&m[d>>1];h=f+g|0;Kq(a,h,u);if(!(i[b>>0]|0))Ep(p,l[f+(g+1)>>0]<<16|l[h>>0]<<24|l[f+(g+2)>>0]<<8|l[f+(g+3)>>0],5,t,u);o=o+1|0}while((o|0)<(n|0))}if(!(i[b>>0]|0)){o=l[a+6>>0]|0;n=k[a+56>>2]|0;Ep(p,l[n+(o+9)>>0]<<16|l[n+(o+8)>>0]<<24|l[n+(o+10)>>0]<<8|l[n+(o+11)>>0],5,t,u)}}i[a>>0]=q;r=v;return k[u>>2]|0}function eq(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,t=0,u=0,v=0;v=r;r=r+16|0;if((r|0)>=(s|0))ka();u=v;a:do if(!(i[a>>0]|0)){b=k[a+52>>2]|0;p=k[a+56>>2]|0;f=l[a+6>>0]|0;if(Wo(a,l[p+f>>0]|0)|0){k[u>>2]=54562;k[u+4>>2]=10788;gd(11,13600,u);b=11;break}h=k[b+32>>2]|0;j[a+20>>1]=h+65535;i[a+1>>0]=0;o=k[b+36>>2]|0;b=f+8+(l[a+7>>0]|0)|0;j[a+14>>1]=b;k[a+60>>2]=p+o;b=b&65535;k[a+64>>2]=p+b;e=i[p+(f+5)>>0]|0;d=i[p+(f+6)>>0]|0;c=l[p+(f+3)>>0]<<8|l[p+(f+4)>>0];j[a+18>>1]=c;if(c>>>0>(((h+-8|0)>>>0)/6|0)>>>0){k[u>>2]=54579;k[u+4>>2]=10788;gd(11,13600,u);b=11;break}h=(c<<1)+b|0;g=o+-4|0;c=l[p+(f+1)>>0]<<8|l[p+(f+2)>>0];b=(((e&255)<<8|d&255)+65535&65535)+1+(l[p+(f+7)>>0]|0)|0;do if(c){while(1){if((c|0)<(h|0)|(c|0)>(g|0)){t=8;break}d=l[p+c>>0]<<8|l[p+(c+1)>>0];e=l[p+(c+2)>>0]<<8|l[p+(c+3)>>0];c=e+c|0;if(!d){m=e;n=c;q=b;t=12;break}if((d|0)<=(c+3|0)|(c|0)>(o|0))break;c=d;b=e+b|0}if((t|0)==8){k[u>>2]=54634;k[u+4>>2]=10788;gd(11,13600,u);b=11;break a}if((t|0)==12?(n|0)<=(o|0):0){b=m+q|0;break}k[u>>2]=54641;k[u+4>>2]=10788;gd(11,13600,u);b=11;break a}while(0);if((b|0)>(o|0)){k[u>>2]=54655;k[u+4>>2]=10788;gd(11,13600,u);b=11;break}else{j[a+16>>1]=b-h;i[a>>0]=1;b=0;break}}else b=0;while(0);r=v;return b|0}function fq(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;h=r;r=r+16|0;if((r|0)>=(s|0))ka();g=h;d=k[a>>2]|0;e=d+65|0;if(!(i[e>>0]|0)){if((k[d+24>>2]&65536|0)==0?(f=a+4|0,j=k[f>>2]|0,k[g>>2]=(b|0)==0?13552:b,ih(j,d,13560,g),(c|0)!=0):0){b=k[k[f>>2]>>2]|0;k[g>>2]=b;k[g+4>>2]=c;d=Rq(d,b,0,g)|0;k[k[f>>2]>>2]=d}if(!(i[e>>0]|0)){k[g>>2]=105209;k[g+4>>2]=10788;gd(11,13600,g);d=11}else d=7}else d=7;k[a+12>>2]=d;r=h;return}function gq(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,l=0,m=0;m=r;r=r+16|0;if((r|0)>=(s|0))ka();l=m;j=a+20|0;a:do if((k[j>>2]|0)>0){g=a+16|0;h=(c|0)==0;i=0;a=0;do{e=(i|0)<2^i;f=k[g>>2]|0;d=k[f+(e<<4)+12>>2]|0;if(!(!h?(id(c,k[f+(e<<4)>>2]|0)|0)!=0:0)){a=gn(d+24|0,b,l)|0;if(a){a=k[a+8>>2]|0;if(a)break a}else a=0}i=i+1|0}while((i|0)<(k[j>>2]|0))}else a=0;while(0);r=m;return a|0}function hq(a){a=a|0;var b=0,c=0,d=0,e=0;e=k[a+8>>2]|0;d=a+46|0;c=j[d>>1]|0;c=(c&65535)>5?5:c&65535;b=j[(k[a+12>>2]|0)+28>>1]|0;j[e>>1]=b<<16>>16<33?33:b;pw(e+2|0,13512,c<<1|0)|0;b=m[d>>1]|0;if(c>>>0<b>>>0)do{c=c+1|0;j[e+(c<<1)>>1]=23;b=m[d>>1]|0}while((c|0)<(b|0));if(i[a+50>>0]|0)j[e+(b<<1)>>1]=0;return}function iq(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;n=r;r=r+64|0;if((r|0)>=(s|0))ka();h=n;a:do if((((c|0)!=0?(f=k[c>>2]|0,(f|0)!=0):0)?(l=c+8|0,(k[l>>2]|0)!=0):0)?(e=a+4|0,o=di(k[a>>2]|0,f,k[e>>2]|0)|0,(o|0)!=0):0){d=k[c+4>>2]|0;b:do if(!d)g=11;else{if(!(id(k[c>>2]|0,d)|0)){e=k[o+8>>2]|0;if(!e){g=11;break}while(1){f=i[e+51>>0]|0;if((f&3)==2)break;e=k[e+20>>2]|0;if(!e){g=11;break b}}d=k[l>>2]|0;b=e}else{b=gq(k[a>>2]|0,d,k[e>>2]|0)|0;e=k[l>>2]|0;if(!b)break;f=i[b+51>>0]|0;d=e}l=(m[b+46>>1]|0)+1|0;i[b+51>>0]=f&-5;e=b+8|0;Sq(d,l,k[e>>2]|0,b);if(k[b+36>>2]|0)break a;j[o+28>>1]=j[k[e>>2]>>1]|0;break a}while(0);if((g|0)==11)e=k[l>>2]|0;l=o+42|0;g=h+44|0;j[g>>1]=j[l>>1]|0;Sq(e,1,o+28|0,h);j[l>>1]=j[g>>1]|0}while(0);r=n;return 0}function jq(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();f=g;do if(b){if((k[a+12>>2]|0)>>>0<b>>>0){k[f>>2]=b;ln(a,44408,f);c=1;break}d=(k[a+8>>2]|0)+(b>>>3)|0;e=l[d>>0]|0;c=1<<(b&7);if(!(e&c)){i[d>>0]=e|c;c=0;break}else{k[f>>2]=b;ln(a,44432,f);c=1;break}}else c=1;while(0);r=g;return c|0}function kq(a,b){a=a|0;b=b|0;var c=0,d=0;c=k[a>>2]|0;do if(c){if((b|0)==1){b=c+8|0;k[a>>2]=k[b>>2];k[b>>2]=0;k[c+12>>2]=0;break}b=b+-1|0;c=kq(a,b)|0;d=k[a>>2]|0;if(d){k[d+12>>2]=c;c=d+8|0;k[a>>2]=k[c>>2];b=kq(a,b)|0;k[c>>2]=b;return d|0}}else c=0;while(0);return c|0}function lq(a,b){a=a|0;b=b|0;var c=0;if((i[a+43>>0]|0)==2){c=a+24|0;if((k[c>>2]|0)>0){b=a+32|0;a=0;do{$c(k[(k[b>>2]|0)+(a<<2)>>2]|0);k[(k[b>>2]|0)+(a<<2)>>2]=0;a=a+1|0}while((a|0)<(k[c>>2]|0))}}else{a=k[a+4>>2]|0;wc[k[(k[a>>2]|0)+64>>2]&127](a,b)|0}return}function mq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=r;r=r+16|0;if((r|0)>=(s|0))ka();b=Sg(b)|0;if(b)ih(c,a,Xe(a)|0,d);r=d;return b|0}function nq(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=k[a>>2]|0;d=a+16|0;e=a+84|0;hh(k[d>>2]|0,(m[e>>1]|0)<<1);rg(c,k[d>>2]|0);j[e>>1]=b;e=b*80|0;c=rh(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} [all...] |
H A D | sqlite.js | 9 function yl(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();n=q;p=b+16|0;if((d[p>>0]|0)<2?(d[b+17>>0]|0)<2:0)g=0;else{_o(b);o=b+64|0;l=c[o>>2]|0;h=c[l>>2]|0;do if(!h)h=0;else{if((h|0)==14696){Ci(l,0,0)|0;c[l>>2]=0;h=0;break}k=a[b+5>>0]|0;if(k<<24>>24==3){k=b+72|0;n=k;if(!((c[n>>2]|0)==0&(c[n+4>>2]|0)==0)){h=Yb[c[h+16>>2]&63](l,0,0)|0;if(!h)if(!(a[b+8>>0]|0))h=0;else{h=c[o>>2]|0;h=nc[c[(c[h>>2]|0)+20>>2]&127](h,d[b+11>>0]|0)|0}}else h=0;o=k;c[o>>2]=0;c[o+4>>2]=0;break}else if(k<<24>>24!=1?(a[b+4>>0]|0)==0|k<<24>>24==5:0){o=(a[b+12>>0]|0)==0;hc[c[h+4>>2]&127](l)|0;c[l>>2]=0;if(!o){h=0;break}h=c[b>>2]|0;h=Yb[c[h+28>>2]&63](h,c[b+172>>2]|0,0)|0;break}m=b+72|0;k=m;if(!((c[k>>2]|0)==0&(c[k+4>>2]|0)==0)){g=b+160|0;k=c[g>>2]|0;g=c[g+4>>2]|0;if((e|0)!=0|(k|0)==0&(g|0)==0)h=Yb[c[h+16>>2]&63](l,0,0)|0;else h=pc[c[h+12>>2]&31](l,14664,28,0,0)|0;if(!h){if(!(a[b+7>>0]|0)){h=c[o>>2]|0;h=nc[c[(c[h>>2]|0)+20>>2]&127](h,d[b+11>>0]|16)|0}else h=0;if((h|0)==0&((g|0)>0|(g|0)==0&k>>>0>0)){h=c[o>>2]|0;h=nc[c[(c[h>>2]|0)+24>>2]&127](h,n)|0;l=c[n+4>>2]|0;if((h|0)==0&((l|0)>(g|0)|((l|0)==(g|0)?(c[n>>2]|0)>>>0>k>>>0:0))){h=c[o>>2]|0;h=Yb[c[(c[h>>2]|0)+16>>2]&63](h,k,g)|0}}}}else h=0;o=m;c[o>>2]=0;c[o+4>>2]=0}while(0);k=b+56|0;ai(c[k>>2]|0);c[k>>2]=0;c[b+44>>2]=0;k=b+204|0;g=c[k>>2]|0;e=c[g>>2]|0;if(e){do{tl(e);e=c[g>>2]|0}while((e|0)!=0);g=c[k>>2]|0}k=b+24|0;$o(g,c[k>>2]|0);l=b+208|0;g=c[l>>2]|0;if(!g){if((h|0)==0&(f|0)!=0){g=c[k>>2]|0;if((c[b+32>>2]|0)>>>0>g>>>0)h=xl(b,g)|0;else h=0}}else{e=g+44|0;if(a[e>>0]|0){if(!(a[g+43>>0]|0)){o=c[g+4>>2]|0;lc[c[(c[o>>2]|0)+56>>2]&31](o,0,1,9)|0}a[e>>0]=0;a[g+47>>0]=0}}if((h|0)==0&(f|0)!=0){g=c[b+60>>2]|0;h=c[g>>2]|0;if(!h)k=0;else{k=Yb[c[h+40>>2]&63](g,22,0)|0;k=(k|0)==12?0:k}}else k=h;do if(!(a[b+4>>0]|0)){g=c[l>>2]|0;if((g|0)!=0?(ap(g,0)|0)==0:0){g=0;break}h=c[b+60>>2]|0;g=c[h>>2]|0;if(g){if(!(a[b+13>>0]|0))g=nc[c[g+32>>2]&127](h,1)|0;else g=0;h=b+17|0;if((a[h>>0]|0)!=5)a[h>>0]=1}else g=0;a[b+18>>0]=0}else g=0;while(0);a[p>>0]=1;a[b+19>>0]=0;g=(k|0)==0?g:k}i=q;return g|0}function zl(d){d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;j=c[d+4>>2]|0;g=c[d>>2]|0;a[j+19>>0]=0;k=d+8|0;do if(a[k>>0]|0){if((c[g+152>>2]|0)>1){g=j+76|0;if((c[g>>2]|0)==(d|0)?(c[g>>2]=0,f=j+22|0,b[f>>1]=e[f>>1]&65439,f=c[j+72>>2]|0,(f|0)!=0):0)do{a[f+8>>0]=1;f=c[f+12>>2]|0}while((f|0)!=0);a[k>>0]=1;break}g=j+72|0;f=c[g>>2]|0;a:do if(f)do while(1){h=f+12|0;i=c[h>>2]|0;if((c[f>>2]|0)!=(d|0)){g=h;f=i;break}c[g>>2]=i;if((c[f+4>>2]|0)==1)f=i;else{Sc(f);f=c[g>>2]|0}if(!f)break a}while((f|0)!=0);while(0);f=j+76|0;if((c[f>>2]|0)!=(d|0)){f=c[j+40>>2]|0;if((f|0)==2){i=j+22|0;b[i>>1]=e[i>>1]&65471;c[j+40>>2]=1;i=20;break}}else{c[f>>2]=0;f=j+22|0;b[f>>1]=e[f>>1]&65439;f=c[j+40>>2]|0}f=f+-1|0;c[j+40>>2]=f;if(!f){a[j+20>>0]=0;i=20}else i=20}else i=20;while(0);if(((i|0)==20?(a[k>>0]=0,(a[j+20>>0]|0)==0):0)?(l=j+12|0,m=c[l>>2]|0,(m|0)!=0):0){c[l>>2]=0;xg(c[m+68>>2]|0)}return}function Al(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=((c[a+36>>2]|0)>>>0)/5|0;if(b>>>0<2){e=0;g=c[a+32>>2]|0;i=c[2514]|0}else{e=b+-2|0;e=e-((e>>>0)%((h+1|0)>>>0)|0)|0;i=c[2514]|0;g=c[a+32>>2]|0;e=((e+1|0)==((i>>>0)/(g>>>0)|0|0)?3:2)+e|0}e=b-d-(((d-b+h+e|0)>>>0)/(h>>>0)|0)|0;f=a+32|0;a=((i>>>0)/(g>>>0)|0)+1|0;d=((i>>>0)/(g>>>0)|0)+1|0;a=((a>>>0<b>>>0&e>>>0<a>>>0)<<31>>31)+e|0;while(1){if(a>>>0<2)e=0;else{e=a+-2|0;e=e-((e>>>0)%((h+1|0)>>>0)|0)|0;e=((e+1|0)==((i>>>0)/((c[f>>2]|0)>>>0)|0|0)?3:2)+e|0}if(!((e|0)==(a|0)|(a|0)==(d|0)))break;a=a+-1|0}return a|0}function Bl(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=(d|0)==0;f=b;a:while(1){do if((f|0)!=(e|0)){if(!g?(c[f+60>>2]|0)!=(d|0):0)break;if(((a[f+73>>0]|0)+-1&255)<2){b=bp(f)|0;if(!b)break;else break a}else{cp(f);break}}while(0);f=c[f+8>>2]|0;if(!f){b=0;break}}return b|0}function Cl(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+48|0;if((i|0)>=(j|0))ba();k=v;m=v+32|0;s=v+28|0;l=v+24|0;o=v+20|0;q=v+16|0;t=v+12|0;r=v+8|0;if(f>>>0<2)n=0;else{n=f+-2|0;n=n-((n>>>0)%(((((c[b+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;n=((n+1|0)==(((c[2514]|0)>>>0)/((c[b+32>>2]|0)>>>0)|0|0)?3:2)+n|0}do if((n|0)!=(f|0)?((((c[2514]|0)>>>0)/((c[b+32>>2]|0)>>>0)|0)+1|0)!=(f|0):0){p=c[(c[b+12>>2]|0)+56>>2]|0;if((d[p+37>>0]|0)<<16|(d[p+36>>0]|0)<<24|(d[p+38>>0]|0)<<8|(d[p+39>>0]|0)){h=dp(b,f,m,s)|0;if(!h){p=a[m>>0]|0;if(p<<24>>24==2){if(g){h=0;break}h=ep(b,o,l,f,1)|0;if(h)break;k=c[o>>2]|0;if(!k){u=24;break}xg(c[k+68>>2]|0);u=24;break}else if(p<<24>>24!=1){h=$k(b,f,t,0)|0;if(h)break;k=(g|0)==0;m=k?2:0;k=k?e:0;l=(g|0)!=0;do{h=ep(b,r,q,k,m)|0;if(h){u=16;break}n=c[r>>2]|0;if(n)xg(c[n+68>>2]|0);n=c[q>>2]|0}while(l&n>>>0>e>>>0);if((u|0)==16){k=c[t>>2]|0;if(!k)break;xg(c[k+68>>2]|0);break}m=c[t>>2]|0;h=Vm(b,m,p,c[s>>2]|0,n,g)|0;if(m)xg(c[m+68>>2]|0);if(!h){u=24;break}else break}else{c[k>>2]=56228;c[k+4>>2]=10788;Zc(11,13600,k);h=11;break}}}else h=101}else u=24;while(0);if((u|0)==24)if(!g){l=((c[2514]|0)>>>0)/((c[b+32>>2]|0)>>>0)|0;m=l+1|0;n=b+36|0;k=f;while(1){h=k+-1|0;if((h|0)==(m|0)){k=h;continue}if(h>>>0<2)k=0;else{k=k+-3|0;k=k-((k>>>0)%(((((c[n>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(l|0)?3:2)+k|0}if((k|0)==(h|0))k=h;else break}a[b+19>>0]=1;c[b+44>>2]=h;h=0}else h=0;i=v;return h|0}function Dl(b){b=b|0;var e=0,f=0,g=0;g=b+16|0;f=a[g>>0]|0;a:do if(f<<24>>24!=6)if((f&255)>=2){do if(!(c[b+208>>2]|0)){if(!(f<<24>>24==2?1:(c[c[b+64>>2]>>2]|0)==0)){e=Go(b,0)|0;break}e=yl(b,0,0)|0;if((a[b+15>>0]|0)==0&(f&255)>2){c[b+40>>2]=4;a[g>>0]=6;break a}}else{e=fp(b,2,-1)|0;f=yl(b,d[b+19>>0]|0,0)|0;e=(e|0)==0?f:e}while(0);f=e&255;if((f|0)==10|(f|0)==13){c[b+40>>2]=e;a[g>>0]=6}}else e=0;else e=c[b+40>>2]|0;while(0);return e|0}function El(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;a:do if((d|0)!=0?(h=c[d+4>>2]|0,c[h+4>>2]=c[d>>2],h=c[h+8>>2]|0,(h|0)!=0):0){l=(f|0)==0;while(1){if(!l?(a[h+72>>0]&1)==0:0){if(((a[h+73>>0]|0)+-1&255)<2?(g=bp(h)|0,(g|0)!=0):0)break}else{f=h+56|0;Sc(c[f>>2]|0);c[f>>2]=0;a[h+73>>0]=4;c[h+68>>2]=e}f=h+76|0;if((b[f>>1]|0)>=0){k=0;while(1){i=h+(k<<2)+120|0;j=c[i>>2]|0;if(j)xg(c[j+68>>2]|0);c[i>>2]=0;if((k|0)<(b[f>>1]|0))k=k+1|0;else break}}h=c[h+8>>2]|0;if(!h)break a}El(d,g,0)|0;return g|0}while(0);return 0}function Fl(a){a=a|0;var b=0,d=0,e=0;a:do if(!(c[a+4>>2]|0)){d=c[a+20>>2]|0;if((d|0)>0){a=c[a+16>>2]|0;b=0;while(1){e=c[a+(b<<4)+4>>2]|0;if((e|0)!=0?(c[e+16>>2]|0)!=0:0){a=1;break a}b=b+1|0;if((b|0)>=(d|0)){a=0;break}}}else a=0}else a=1;while(0);return a|0}function Gl(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=c[3164]|0;if(f)jc[f&3]();l=d+20|0;j=c[l>>2]|0;i=(j|0)>0;if(i){f=c[d+16>>2]|0;h=0;do{g=c[f+(h<<4)+4>>2]|0;if(g)c[(c[g+4>>2]|0)+4>>2]=c[g>>2];h=h+1|0}while((h|0)!=(j|0))}m=d+24|0;if(!(c[m>>2]&2))f=1;else f=(a[d+145>>0]|0)!=0;if(i){k=d+16|0;f=f&1;i=j;j=0;h=0;while(1){g=c[(c[k>>2]|0)+(j<<4)+4>>2]|0;if(!g)g=i;else{h=(a[g+8>>0]|0)==2?1:h;Hg(g,e,f);g=c[l>>2]|0}j=j+1|0;if((j|0)>=(g|0))break;else i=g}}else h=0;Nn(d,68);f=c[3166]|0;if(f)jc[f&3]();f=c[m>>2]|0;if((f&2|0)!=0?(a[d+145>>0]|0)==0:0){f=c[d+4>>2]|0;if(f)do{g=f+88|0;b[g>>1]=b[g>>1]|8;f=c[f+52>>2]|0}while((f|0)!=0);Ag(d);f=c[m>>2]|0}g=d+504|0;c[g+0>>2]=0;c[g+4>>2]=0;c[g+8>>2]=0;c[g+12>>2]=0;c[m>>2]=f&-16777217;f=c[d+204>>2]|0;do if(f){if((h|0)==0?(a[d+63>>0]|0)!=0:0)break;_b[f&31](c[d+200>>2]|0)}while(0);return}function Hl(b){b=b|0;var d=0,e=0;e=b+488|0;d=c[e>>2]|0;if(d)do{c[e>>2]=c[d+24>>2];ig(b,d);d=c[e>>2]|0}while((d|0)!=0);c[b+496>>2]=0;c[b+500>>2]=0;a[b+70>>0]=0;return}function Il(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=c[b+4>>2]|0;c[h+4>>2]=c[b>>2];e=c[h+8>>2]|0;if(e)do{d=e;e=c[e+8>>2]|0;if((c[d>>2]|0)==(b|0))gp(d)}while((e|0)!=0);Hg(b,0,0);a:do if(a[b+9>>0]|0){e=h+64|0;d=c[e>>2]|0;c[e>>2]=d+-1;if((d|0)<2){d=c[3664]|0;if((d|0)==(h|0)){c[3664]=c[h+68>>2];f=12;break}else e=d;do{if(!e){f=12;break a}d=e+68|0;e=c[d>>2]|0}while((e|0)!=(h|0));c[d>>2]=c[h+68>>2];f=12}}else f=12;while(0);if((f|0)==12){hp(c[h>>2]|0);d=c[h+52>>2]|0;e=h+48|0;if((d|0)!=0?(g=c[e>>2]|0,(g|0)!=0):0)_b[d&31](g);d=c[e>>2]|0;if(d)Sc(d);d=h+80|0;e=c[d>>2]|0;if(e){e=e+-4|0;c[d>>2]=e;Xk(e);c[d>>2]=0}Sc(h)}e=c[b+28>>2]|0;d=b+24|0;if(e)c[e+24>>2]=c[d>>2];d=c[d>>2]|0;if(d)c[d+28>>2]=e;Sc(b);return}function Jl(a,b){a=a|0;b=b|0;var d=0;b=c[b+32>>2]|0;if((b|0)!=0?(d=(c[b>>2]|0)+-1|0,c[b>>2]=d,(d|0)==0):0){_b[c[b+4>>2]&31](c[b+8>>2]|0);ig(a,b)}return}function Kl(a){a=a|0;var b=0,d=0;d=a+8|0;b=c[d>>2]|0;c[d>>2]=0;d=a+12|0;Sc(c[d>>2]|0);c[d>>2]=0;c[a>>2]=0;if(b)do{d=b;b=c[b>>2]|0;Sc(d)}while((b|0)!=0);c[a+4>>2]=0;return}function Ll(a){a=a|0;var b=0,d=0,e=0,f=0;if(a){e=c[a>>2]|0;hg(e,a);f=c[a+48>>2]|0;d=a+52|0;b=c[d>>2]|0;if(!f)c[e+4>>2]=b;else{c[f+52>>2]=b;b=c[d>>2]|0}if(b)c[b+48>>2]=f;c[a+40>>2]=-1241070648;c[a>>2]=0;ig(e,a)}return}function Ml(d){d=d|0;var e=0;a[d+65>>0]=0;c[d+52>>2]=7;d=c[d+236>>2]|0;do if(d){e=d+8|0;if(!(b[e>>1]&9312)){b[e>>1]=1;break}else{rg(d);break}}while(0);return}function Nl(d){d=d|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0;F=i;i=i+32|0;if((i|0)>=(j|0))ba();u=F;x=F+16|0;q=F+12|0;r=F+8|0;E=c[d>>2]|0;if(a[E+65>>0]|0)c[d+80>>2]=7;g=c[d+200>>2]|0;if(g)bw(g|0,0,c[d+196>>2]|0)|0;k=d+176|0;g=c[k>>2]|0;if(g){while(1){h=c[g+4>>2]|0;if(!h)break;else g=h}Tl(g)|0;c[k>>2]=0;c[d+184>>2]=0}o=d+56|0;g=c[o>>2]|0;a:do if((g|0)!=0?(p=d+36|0,f=c[p>>2]|0,(f|0)>0):0){k=0;while(1){h=c[g+(k<<2)>>2]|0;if(!h)h=f;else{xm(d,h);c[(c[o>>2]|0)+(k<<2)>>2]=0;h=c[p>>2]|0}k=k+1|0;if((k|0)>=(h|0))break a;g=c[o>>2]|0;f=h}}while(0);g=c[d+8>>2]|0;if(g)_g(g+40|0,c[d+28>>2]|0);p=d+180|0;g=c[p>>2]|0;if(g)do{c[p>>2]=c[g+4>>2];o=g+80|0;f=g+60|0;h=c[f>>2]|0;m=o+(h*40|0)|0;n=g+64|0;if((c[n>>2]|0)>0){k=0;do{xm(c[g>>2]|0,c[m+(k<<2)>>2]|0);k=k+1|0}while((k|0)<(c[n>>2]|0));h=c[f>>2]|0}_g(o,h);ig(c[c[g>>2]>>2]|0,g);g=c[p>>2]|0}while((g|0)!=0);if(c[d+204>>2]|0)am(d,-1,0);B=d+40|0;b:do if((c[B>>2]|0)==-1108210269){z=d+76|0;if((c[z>>2]|0)>-1){A=d+88|0;n=b[A>>1]|0;if(n&128){y=d+80|0;k=c[y>>2]|0;m=k&255;h=m+-7|0;do if(h>>>0<7?(l=(77>>>(h&127)&1)!=0,l):0)if((n&64)==0|(m|0)!=9){if((m|0)==7|(m|0)==13?(n&32)!=0:0){f=2;break}Gl(E,516);Hl(E);a[E+63>>0]=1;c[d+92>>2]=0;k=c[y>>2]|0;f=0}else{l=1;f=0}else{l=0;f=0}while(0);if((k|0)==0?(w=d+144|0,v=c[w+4>>2]|0,(v|0)>0|(v|0)==0&(c[w>>2]|0)>>>0>0):0){w=c[d>>2]|0;c[y>>2]=787;a[d+86>>0]=2;$g(d+44|0,w,34376,u)}m=E+304|0;if((c[m>>2]|0)>0?(c[E+328>>2]|0)==0:0)D=141;else if((a[E+63>>0]|0)!=0?(c[E+156>>2]|0)==(((e[A>>1]|0)>>>6&1^1)&65535|0):0){do if(!(c[y>>2]|0))D=41;else{if(!((a[d+86>>0]|0)!=3|l)){D=41;break}Gl(E,0);c[d+92>>2]=0}while(0);c:do if((D|0)==41){d:do if(pm(d,1)|0)if(!(b[A>>1]&64))g=787;else{f=1;break b}else{l=E+328|0;h=c[l>>2]|0;c[l>>2]=0;k=c[m>>2]|0;e:do if((k|0)>0){n=0;f:while(1){p=c[(c[h+(n<<2)>>2]|0)+8>>2]|0;do if(p){o=c[(c[p>>2]|0)+60>>2]|0;if(!o)break;g=hc[o&127](p)|0;Im(d,p);if(g)break f;k=c[m>>2]|0}while(0);n=n+1|0;if((n|0)>=(k|0)){D=50;break e}}c[l>>2]=h;D=135}else D=50;while(0);g:do if((D|0)==50){c[l>>2]=h;v=E+20|0;w=E+16|0;o=0;k=0;n=0;h:while(1){m=c[v>>2]|0;if((o|0)>=(m|0)){h=k;break}l=c[w>>2]|0;p=o;while(1){o=c[l+(p<<4)+4>>2]|0;if((o|0)!=0?(a[o+8>>0]|0)==2:0)break;p=p+1|0;if((p|0)>=(m|0)){h=k;break h}}g=c[o+4>>2]|0;c[g+4>>2]=c[o>>2];g=Zo(c[g>>2]|0)|0;if(!g){o=p+1|0;k=((p|0)!=1&1)+k|0;n=1}else{D=135;break g}}do if(n){l=c[E+196>>2]|0;if(!l)break;if(hc[l&127](c[E+192>>2]|0)|0){g=531;break d}}while(0);k=c[(c[w>>2]|0)+4>>2]|0;n=c[c[k+4>>2]>>2]|0;m=(a[n+15>>0]|0)==0;if(m){p=c[n+168>>2]|0;if(p)D=62}else{p=10360;D=62}do if((D|0)==62){o=p;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;if((o-p&1073741823|0)==0|(h|0)<2)break;t=c[E>>2]|0;if(m){l=c[n+168>>2]|0;c[x>>2]=0;if(!l){p=0;l=0}else D=80}else{c[x>>2]=0;l=10360;D=80}if((D|0)==80){n=l;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;p=n-l&1073741823}c[u>>2]=l;s=qh(E,44696,u)|0;if(!s){g=7;break d}p=s+p|0;o=t+32|0;n=0;i:while(1){do if(n){if((n|0)>100){D=87;break i}if((n|0)!=1)break;c[u>>2]=s;Zc(13,44728,u)}while(0);_c(4,r);g=c[r>>2]|0;c[u>>2]=g>>>8;c[u+4>>2]=g&255;Yc(13,p,44744,u)|0;g=lc[c[o>>2]&31](t,s,0,q)|0;m=(g|0)==0;if(m&(c[q>>2]|0)!=0)n=n+1|0;else{D=91;break}}if((D|0)==87){c[u>>2]=s;Zc(13,44712,u);Yb[c[t+28>>2]&63](t,s,0)|0;D=92}else if((D|0)==91)if(m)D=92;do if((D|0)==92){g=ip(t,s,x,16406,0)|0;if(g)break;l=c[v>>2]|0;j:do if((l|0)>0){q=0;o=0;r=0;n=0;k:while(1){p=c[(c[w>>2]|0)+(r<<4)+4>>2]|0;do if(!p)p=q;else{if((a[p+8>>0]|0)!=2){p=q;break}m=c[p+4>>2]|0;k=c[m>>2]|0;h=c[k+172>>2]|0;if(!h){p=q;break}if(!n){c[m+4>>2]=c[p>>2];n=(a[k+7>>0]|0)==0&1}k=c[x>>2]|0;p=h;while(1)if(!(a[p>>0]|0))break;else p=p+1|0;m=h;g=pc[c[(c[k>>2]|0)+12>>2]&31](k,h,(p-m&1073741823)+1|0,q,o)|0;p=h;while(1)if(!(a[p>>0]|0))break;else p=p+1|0;if(g){l=k;D=106;break k}p=fw((p-m&1073741823)+1|0,0,q|0,o|0)|0;l=c[v>>2]|0;o=C}while(0);r=r+1|0;if((r|0)>=(l|0))break;else q=p}if((D|0)==106){h=c[l>>2]|0;if(h){hc[c[h+4>>2]&127](k)|0;c[l>>2]=0}Sc(k);Yb[c[t+28>>2]&63](t,s,0)|0;ig(E,s);D=135;break g}do if(!n)n=0;else{m=c[x>>2]|0;if((hc[c[(c[m>>2]|0)+48>>2]&127](m)|0)&1024)break;g=nc[c[(c[m>>2]|0)+20>>2]&127](m,2)|0;if(!g)break;h=c[m>>2]|0;if(h){hc[c[h+4>>2]&127](m)|0;c[m>>2]=0}Sc(m);Yb[c[t+28>>2]&63](t,s,0)|0;ig(E,s);D=135;break g}while(0);k=c[v>>2]|0;if((k|0)>0)p=0;else{p=1;g=0;break}while(1){m=c[(c[w>>2]|0)+(p<<4)+4>>2]|0;if(m){g=Gg(m,s)|0;if(g){p=0;break j}k=c[v>>2]|0}p=p+1|0;if((p|0)>=(k|0)){p=1;g=0;break}}}else{p=1;n=0;g=0}while(0);m=c[x>>2]|0;l=c[m>>2]|0;if(l){hc[c[l+4>>2]&127](m)|0;c[m>>2]=0}Sc(m);if(!p){ig(E,s);D=135;break g}g=Yb[c[t+28>>2]&63](t,s,n)|0;ig(E,s);if(g){D=135;break g}g=c[3164]|0;if(g)jc[g&3]();g=c[v>>2]|0;if((g|0)>0){k=0;do{h=c[(c[w>>2]|0)+(k<<4)+4>>2]|0;if(h){Fg(h,1)|0;g=c[v>>2]|0}k=k+1|0}while((k|0)<(g|0))}g=c[3166]|0;if(g)jc[g&3]();Nn(E,64);break g}while(0);ig(E,s);D=135;break g}while(0);g=c[v>>2]|0;do if((g|0)>0){h=1;while(1){if(k){g=Gg(k,0)|0;if(g){D=135;break g}g=c[v>>2]|0}if((h|0)>=(g|0))break;k=c[(c[w>>2]|0)+(h<<4)+4>>2]|0;h=h+1|0}if((g|0)>0)k=0;else break;do{h=c[(c[w>>2]|0)+(k<<4)+4>>2]|0;if(h){g=Fg(h,0)|0;if(g){D=135;break g}g=c[v>>2]|0}k=k+1|0}while((k|0)<(g|0))}while(0);Nn(E,64)}while(0);do if((D|0)==135){if(!g)break;else if((g|0)!=5)break d;if(!(b[A>>1]&64)){g=5;break d}else{f=5;break b}}while(0);x=E+504|0;D=E+24|0;c[x+0>>2]=0;c[x+4>>2]=0;c[x+8>>2]=0;c[x+12>>2]=0;c[D>>2]=c[D>>2]&-16777219;break c}while(0);c[y>>2]=g;Gl(E,0);c[d+92>>2]=0}while(0);c[E+500>>2]=0;D=146}else D=141;do if((D|0)==141)if(!f)if(c[y>>2]|0){g=a[d+86>>0]|0;if(g<<24>>24==2){f=2;D=147;break}else if(g<<24>>24==3){f=1;D=147;break}else{Gl(E,516);Hl(E);a[E+63>>0]=1;c[d+92>>2]=0;D=146;break}}else{f=1;D=147}else D=147;while(0);if((D|0)==146)if(!f)f=0;else D=147;if((D|0)==147){g=Xl(d,f)|0;if(g){D=c[y>>2]|0;if((D|0)==0|(D&255|0)==19){c[y>>2]=g;D=d+44|0;ig(E,c[D>>2]|0);c[D>>2]=0}Gl(E,516);Hl(E);a[E+63>>0]=1;c[d+92>>2]=0}}if(b[A>>1]&4){if((f|0)==2){c[E+80>>2]=0;f=d+92|0}else{f=d+92|0;y=c[f>>2]|0;c[E+80>>2]=y;D=E+84|0;c[D>>2]=(c[D>>2]|0)+y}c[f>>2]=0}}if((c[z>>2]|0)>-1){f=E+148|0;c[f>>2]=(c[f>>2]|0)+-1;f=b[A>>1]|0;if(!(f&64)){f=E+156|0;c[f>>2]=(c[f>>2]|0)+-1;f=b[A>>1]|0}if(f&128){D=E+152|0;c[D>>2]=(c[D>>2]|0)+-1}}}c[B>>2]=1369188723;f=d+80|0;if(!(a[(c[d>>2]|0)+65>>0]|0)){f=(c[f>>2]|0)==5?5:0;break}else{c[f>>2]=7;f=0;break}}else f=0;while(0);i=F;return f|0}function Ol(a,f){a=a|0;f=f|0;var g=0,h=0,i=0,j=0;i=a+8|0;h=e[i>>1]|0;do if(h&18){b[i>>1]=h|2;if(h&16384)Ng(a)|0;g=a+10|0;f=f&255;h=f&247;if((d[g>>0]|0|0)!=(h|0))Ul(a,h)|0;if(((f&8|0)!=0?(c[a+16>>2]&1|0)!=0:0)?(Rl(a)|0)!=0:0){g=0;break}if((b[i>>1]&514)==2){Yl(a)|0;j=12}else j=12}else{Zl(a,f,0)|0;h=f&247;g=a+10|0;j=12}while(0);if((j|0)==12)if((d[g>>0]|0|0)==(h|0))g=c[a+16>>2]|0;else g=0;return g|0}function Pl(b,c,e,f){b=b|0;c=c|0;e=e|0;f=f|0;var g=0,i=0.0,j=0,k=0.0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,t=0;h[c>>3]=0.0;j=f&255;if(f<<24>>24==1){f=b;g=e;p=1;t=0}else{g=3-j|0;a:do if((g|0)<(e|0))while(1){f=g+2|0;if(a[b+g>>0]|0){e=1;break a}if((f|0)<(e|0))g=f;else{e=0;g=f;break}}else e=0;while(0);f=b+(j&1)|0;g=j+-3+g|0;p=2;t=e}r=b+g|0;b:do if(f>>>0<r>>>0){while(1){g=a[f>>0]|0;if(!(a[10368+(g&255)>>0]&1))break;f=f+p|0;if(f>>>0>=r>>>0){f=0;break b}}if(g<<24>>24==43){f=f+p|0;q=1}else if(g<<24>>24==45){f=f+p|0;q=-1}else q=1;c:do if(f>>>0<r>>>0){g=0;do{if((a[f>>0]|0)!=48)break c;f=f+p|0;g=g+1|0}while(f>>>0<r>>>0)}else g=0;while(0);d:do if(f>>>0<r>>>0){b=0;j=0;while(1){e=a[f>>0]|0;if(!(((e&255)+-48|0)>>>0<10&((b|0)<214748364|(b|0)==214748364&j>>>0<3435973835))){l=b;break d}j=ow(j|0,b|0,10,0)|0;b=(e<<24>>24)+-48|0;j=fw(b|0,((b|0)<0)<<31>>31|0,j|0,C|0)|0;b=C;f=f+p|0;g=g+1|0;if(f>>>0>=r>>>0){l=b;break}}}else{j=0;l=0}while(0);e:do if(f>>>0<r>>>0){e=0;while(1){b=a[f>>0]|0;if(((b&255)+-48|0)>>>0>=10){m=e;break}f=f+p|0;g=g+1|0;b=e+1|0;if(f>>>0<r>>>0)e=b;else{n=l;m=b;b=0;l=1;e=1;break e}}f:do if(b<<24>>24==46){e=f+p|0;g:do if(e>>>0<r>>>0){n=e;while(1){b=a[n>>0]|0;if(!(((b&255)+-48|0)>>>0<10&((l|0)<214748364|(l|0)==214748364&j>>>0<3435973835))){e=n;n=l;break g}j=ow(j|0,l|0,10,0)|0;l=(b<<24>>24)+-48|0;j=fw(l|0,((l|0)<0)<<31>>31|0,j|0,C|0)|0;l=C;g=g+1|0;b=m+-1|0;e=f+(p<<1)|0;if(e>>>0<r>>>0){f=n;n=e;m=b}else{f=n;n=l;m=b;break}}}else n=l;while(0);if(e>>>0<r>>>0){l=p<<1;while(1){if(((d[e>>0]|0)+-48|0)>>>0>=10)break f;b=f+l|0;g=g+1|0;if(b>>>0<r>>>0){f=e;e=b}else{e=b;break}}}}else{e=f;n=l}while(0);if(e>>>0<r>>>0){o=a[e>>0]|0;h:do if(o<<24>>24==69|o<<24>>24==101){f=e+p|0;if(f>>>0>=r>>>0){b=0;l=0;e=1;break e}b=a[f>>0]|0;if(b<<24>>24==45){f=e+(p<<1)|0;o=-1}else if(b<<24>>24==43){f=e+(p<<1)|0;o=1}else o=1;if(f>>>0<r>>>0){e=0;l=0}else{b=0;l=0;e=o;break e}while(1){b=a[f>>0]|0;if(((b&255)+-48|0)>>>0>=10){b=e;e=o;break h}if((e|0)<1e4)b=(e*10|0)+-48+(b<<24>>24)|0;else b=1e4;f=f+p|0;if(f>>>0<r>>>0){e=b;l=1}else{l=1;e=o;break}}}else{f=e;b=0;l=1;e=1}while(0);if((g|0)!=0&(l|0)!=0&f>>>0<r>>>0)do{if(!(a[10368+(d[f>>0]|0)>>0]&1))break e;f=f+p|0}while(f>>>0<r>>>0)}else{f=e;b=0;l=1;e=1}}else{n=l;m=0;b=0;l=1;e=1}while(0);b=(_(b,e)|0)+m|0;o=(b|0)<0;e=o?0-b|0:b;do if((j|0)==0&(n|0)==0)if((q|0)<0)i=(g|0)!=0?-0.0:0.0;else i=0.0;else{if((b>>31|1|0)>0)if(((n|0)<214748364|(n|0)==214748364&j>>>0<3435973836)&(e|0)>0){b=n;do{e=e+-1|0;j=ow(j|0,b|0,10,0)|0;b=C}while(((b|0)<214748364|(b|0)==214748364&j>>>0<3435973836)&(e|0)>0)}else b=n;else{m=nw(j|0,n|0,10,0)|0;if((m|0)==0&(C|0)==0&(e|0)>0){b=n;do{e=e+-1|0;j=mw(j|0,b|0,10,0)|0;b=C;n=nw(j|0,b|0,10,0)|0}while((n|0)==0&(C|0)==0&(e|0)>0)}else b=n}n=(q|0)<0;m=$v(0,0,j|0,b|0)|0;m=n?m:j;n=n?C:b;if(!e){i=+(m>>>0)+4294967296.0*+(n|0);break}if((e+-308|0)>>>0<34){if(!((e|0)%308|0))k=1.0;else{i=1.0;do{i=i*10.0;e=e+-1|0}while(((e|0)%308|0|0)!=0);k=i}i=+(m>>>0)+4294967296.0*+(n|0);if(o){i=i/k/1.e+308;break}else{i=i*k*1.e+308;break}}if((e|0)>341){i=+(m>>>0)+4294967296.0*+(n|0);if(o){i=i*0.0;break}else{i=i*s;break}}if(!((e|0)%22|0)){j=e;i=1.0}else{j=e;i=1.0;do{i=i*10.0;j=j+-1|0}while(((j|0)%22|0|0)!=0)}if((j|0)>0){do{i=i*1.0e22;j=j+-22|0}while((j|0)>0);k=i}else k=i;i=+(m>>>0)+4294967296.0*+(n|0);if(o){i=i/k;break}else{i=i*k;break}}while(0);h[c>>3]=i;f=f>>>0>=r>>>0&(g|0)>0&(l|0)!=0&(t|0)==0&1}else f=0;while(0);return f|0}function Ql(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;i=f&255;if(f<<24>>24==1){g=b;h=e;n=1;e=0}else{h=3-i|0;a:do if((h|0)<(e|0))while(1){f=h+2|0;if(a[b+h>>0]|0){e=1;break a}if((f|0)<(e|0))h=f;else{e=0;h=f;break}}else e=0;while(0);g=b+(i&1)|0;h=i+-3+h|0;n=2}k=b+h|0;b:do if(g>>>0<k>>>0){while(1){h=a[g>>0]|0;if(!(a[10368+(h&255)>>0]&1))break;g=g+n|0;if(g>>>0>=k>>>0){l=0;break b}}if(h<<24>>24==45){g=g+n|0;l=1;break}else if(h<<24>>24==43){g=g+n|0;l=0;break}else{l=0;break}}else l=0;while(0);c:do if(g>>>0<k>>>0){h=g;while(1){if((a[h>>0]|0)!=48){m=h;break c}h=h+n|0;if(h>>>0>=k>>>0){m=h;break}}}else m=g;while(0);do if(m>>>0<k>>>0){b=m;j=0;i=0;h=0;while(1){f=a[b>>0]|0;if((f+-48&255)>=10){b=0;k=i;break}i=ow(j|0,i|0,10,0)|0;j=f<<24>>24;i=fw(i|0,C|0,-48,-1)|0;j=fw(i|0,C|0,j|0,((j|0)<0)<<31>>31|0)|0;i=C;h=h+n|0;b=m+h|0;if(b>>>0>=k>>>0){b=1;k=i;break}}i=f<<24>>24;f=(l|0)!=0;if((k|0)>=0)if(f){f=k;p=22;break}else{f=k;p=23;break}else{j=d;c[j>>2]=f?0:-1;c[j+4>>2]=f?-2147483648:2147483647;j=f?0:2;break}}else if(!l){b=1;j=0;f=0;i=0;h=0;p=23}else{b=1;j=0;f=0;i=0;h=0;p=22}while(0);if((p|0)==22){l=$v(0,0,j|0,f|0)|0;j=d;c[j>>2]=l;c[j+4>>2]=C;j=0}else if((p|0)==23){l=d;c[l>>2]=j;c[l+4>>2]=f;j=2}if(((i|0)==0|b?!((h|0)==0&(g|0)==(m|0)):0)?(o=n*19|0,!((h|0)>(o|0)|(e|0)!=0)):0)if((h|0)>=(o|0)){h=0;do{g=a[m+(_(h,n)|0)>>0]|0;e=a[11192+h>>0]|0;h=h+1|0;f=g<<24>>24==e<<24>>24}while(f&(h|0)<18);if(f)g=(a[m+(n*18|0)>>0]|0)+-56|0;else g=((g<<24>>24)-(e<<24>>24)|0)*10|0;if((g|0)>=0)return ((g|0)>0?1:j)|0;else g=0}else g=0;else g=1;return g|0}function Rl(d){d=d|0;var f=0,g=0;g=d+8|0;f=b[g>>1]|0;if(f&16384){Ng(d)|0;f=b[g>>1]|0}do if(f&18){if((c[d+24>>2]|0)!=0?(c[d+16>>2]|0)==(c[d+20>>2]|0):0){f=0;break}f=d+12|0;if(!(ah(d,(c[f>>2]|0)+2|0,1)|0)){d=d+16|0;a[(c[d>>2]|0)+(c[f>>2]|0)>>0]=0;a[(c[d>>2]|0)+((c[f>>2]|0)+1)>>0]=0;b[g>>1]=e[g>>1]|0|512;f=0}else f=7}else f=0;while(0);return f|0}function Sl(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;c=no(a,b,c,d)|0;if(!c)ig(a,b);return c|0}function Tl(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;d=c[a>>2]|0;c[d+200>>2]=c[a+20>>2];c[d+196>>2]=c[a+56>>2];c[d+4>>2]=c[a+8>>2];c[d+32>>2]=c[a+48>>2];c[d+8>>2]=c[a+16>>2];c[d+28>>2]=c[a+52>>2];c[d+56>>2]=c[a+24>>2];c[d+36>>2]=c[a+40>>2];g=a+32|0;f=c[g+4>>2]|0;b=c[d>>2]|0;e=b+32|0;c[e>>2]=c[g>>2];c[e+4>>2]=f;c[d+92>>2]=c[a+68>>2];c[b+80>>2]=c[a+72>>2];return c[a+44>>2]|0}function Ul(a,c){a=a|0;c=c|0;if((b[a+8>>1]&2)!=0?(d[a+10>>0]|0|0)!=(c|0):0)c=xn(a,c&255)|0;else c=0;return c|0}function Vl(a,d,f){a=a|0;d=d|0;f=f|0;var g=0;g=a+8|0;if(b[g>>1]&9312)rg(a);c[a+0>>2]=c[d+0>>2];c[a+4>>2]=c[d+4>>2];c[a+8>>2]=c[d+8>>2];c[a+12>>2]=c[d+12>>2];c[a+16>>2]=c[d+16>>2];if(!(b[d+8>>1]&2048))b[g>>1]=(e[g>>1]|0)&58367|f;return}function Wl(a,d){a=a|0;d=d|0;var e=0,f=0;if(!((b[a+8>>1]&9312)==0?(c[a+24>>2]|0)==0:0))Mg(a);a=a+0|0;e=d+0|0;f=a+40|0;do{c[a>>2]=c[e>>2];a=a+4|0;e=e+4|0}while((a|0)<(f|0));b[d+8>>1]=1;c[d+24>>2]=0;return}function Xl(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;p=c[a>>2]|0;m=p+500|0;f=c[m>>2]|0;do if((f|0)!=0?(n=a+104|0,e=c[n>>2]|0,(e|0)!=0):0){o=e+-1|0;k=p+20|0;e=c[k>>2]|0;if((e|0)>0){i=p+16|0;j=(b|0)==2;g=e;h=0;e=0;do{f=c[(c[i>>2]|0)+(h<<4)+4>>2]|0;if(f){if(j?(l=qm(f,2,o)|0,(l|0)!=0):0)f=l;else f=qm(f,1,o)|0;g=c[k>>2]|0;e=(e|0)==0?f:e}h=h+1|0}while((h|0)<(g|0));c[m>>2]=(c[m>>2]|0)+-1;c[n>>2]=0;if(!e)e=13;else{d=e;e=16}}else{c[m>>2]=f+-1;c[n>>2]=0;e=13}do if((e|0)==13){if((b|0)==2?(d=om(p,2,o)|0,(d|0)!=0):0)break;d=om(p,1,o)|0;e=16}while(0);if((e|0)==16)if((b|0)!=2)break;m=a+152|0;l=c[m+4>>2]|0;k=p+504|0;c[k>>2]=c[m>>2];c[k+4>>2]=l;k=a+160|0;l=c[k+4>>2]|0;m=p+512|0;c[m>>2]=c[k>>2];c[m+4>>2]=l}else d=0;while(0);return d|0}function Yl(d){d=d|0;var f=0,g=0;f=d+12|0;if(!(ah(d,(c[f>>2]|0)+2|0,1)|0)){g=d+16|0;a[(c[g>>2]|0)+(c[f>>2]|0)>>0]=0;a[(c[g>>2]|0)+((c[f>>2]|0)+1)>>0]=0;f=d+8|0;b[f>>1]=e[f>>1]|0|512;f=0}else f=7;return f|0}function Zl(d,f,g){d=d|0;f=f|0;g=g|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();o=q;p=d+8|0;m=b[p>>1]|0;if(!(bh(d,32)|0)){l=d+16|0;n=c[l>>2]|0;if(!(m&4)){h[k>>3]=+h[d>>3];c[o>>2]=c[k>>2];c[o+4>>2]=c[k+4>>2];Yc(32,n,20272,o)|0}else{s=d;r=c[s+4>>2]|0;m=o;c[m>>2]=c[s>>2];c[m+4>>2]=r;Yc(32,n,19920,o)|0}m=c[l>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;l=l-m&1073741823}c[d+12>>2]=l;a[d+10>>0]=1;l=e[p>>1]|514;b[p>>1]=g<<24>>24==0?l:l&65523;Ul(d,f&255)|0;l=0}else l=7;i=q;return l|0}function _l(a){a=a|0;var b=0,c=0;b=e[a+8>>1]|0;c=b&12;if(!c)if(!(b&18))b=0;else b=jp(a)|0;else b=c&65535;return b|0}function $l(a){a=a|0;var d=0.0,f=0,g=0,i=0,j=0;d=+h[a>>3];if(!(d<=-9223372036854775808.0)&!(d>=9223372036854775808.0)?(f=~~d>>>0,g=+N(d)>=1.0?(d>0.0?~~+$(+M(d/4294967296.0),4294967295.0)>>>0:~~+Z((d-+(~~d>>>0))/4294967296.0)>>>0):0,i=fw(f|0,g|0,1,-2147483648)|0,j=C,!(d!=+(f>>>0)+4294967296.0*+(g|0)|(j>>>0<0|(j|0)==0&i>>>0<2))):0){i=a;c[i>>2]=f;c[i+4>>2]=g;f=a+8|0;b[f>>1]=(e[f>>1]|0)&48640|4}return}function am(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;f=a+204|0;e=c[f>>2]|0;a:do if(e){h=(b|0)<0;do{while(1){if(!h){if((c[e>>2]|0)!=(b|0))break;g=c[e+4>>2]|0;if((g|0)<=31?(1<<g&d|0)!=0:0)break}g=c[e+12>>2]|0;if(g)_b[g&31](c[e+8>>2]|0);c[f>>2]=c[e+16>>2];ig(c[a>>2]|0,e);e=c[f>>2]|0;if(!e)break a}f=e+16|0;e=c[f>>2]|0}while((e|0)!=0)}while(0);return}function bm(a,b,c){a=a|0;b=b|0;c=c|0;do if(b<<24>>24>66){b=e[a+8>>1]|0;if(!(b&4)){if(b&8){$l(a);break}if(b&2)nh(a,1)}}else if(b<<24>>24==66?(b=e[a+8>>1]|0,!((b&2|0)!=0|(b&12|0)==0)):0)Zl(a,c,1)|0;while(0);return}function cm(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,i=0,j=0;j=a+8|0;g=b[j>>1]|0;i=g&65535;do if(!(i&1)){d=d&255;if((d|0)==67){kp(a);break}else if((d|0)==65){if(i&16){b[j>>1]=i&65040;break}if(!((i&2|0)!=0|(i&12|0)==0)){Zl(a,f,1)|0;g=b[j>>1]|0}b[j>>1]=g&48640|16;break}else if((d|0)==68){d=Rg(a)|0;g=a;c[g>>2]=d;c[g+4>>2]=C;b[j>>1]=(e[j>>1]|0)&48640|4;break}else if((d|0)==69){h[a>>3]=+Qg(a);b[j>>1]=(e[j>>1]|0)&48640|8;break}else{d=i>>>3&2|i;g=d&65535;b[j>>1]=g;if(!((d&2|0)!=0|(i&12|0)==0)){Zl(a,f,1)|0;g=b[j>>1]|0}b[j>>1]=g&49123;break}}while(0);return}function dm(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0.0,i=0,j=0.0,k=0,l=0,m=0;l=b[a+8>>1]|0;k=l&65535;i=b[d+8>>1]|0;m=i&65535;f=(i|l)&65535;do if(!(f&1)){if(!(f&12)){if(f&2){if(!(k&2)){f=1;break}if(!(m&2)){f=-1;break}if(e){f=lp(a,d,e,0)|0;break}}f=mp(a,d)|0;break}if((l&4&i)<<16>>16){l=a;k=c[l>>2]|0;l=c[l+4>>2]|0;i=d;f=c[i>>2]|0;i=c[i+4>>2]|0;if((l|0)<(i|0)|(l|0)==(i|0)&k>>>0<f>>>0){f=-1;break}f=((l|0)>(i|0)|(l|0)==(i|0)&k>>>0>f>>>0)&1;break}if(!(k&8)){if(!(k&4)){f=1;break}f=a;j=+((c[f>>2]|0)>>>0)+4294967296.0*+(c[f+4>>2]|0)}else j=+h[a>>3];if(!(m&8)){if(!(m&4)){f=-1;break}f=d;g=+((c[f>>2]|0)>>>0)+4294967296.0*+(c[f+4>>2]|0)}else g=+h[d>>3];if(j<g)f=-1;else f=j>g&1}else f=(m&1)-(k&1)|0;while(0);return f|0}function em(b){b=b|0;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;e=g+8|0;d=b+48|0;d=ym(c[b>>2]|0,0,c[d>>2]|0,c[d+4>>2]|0,0,e)|0;do if(!d)if(!(c[e>>2]|0)){a[b+26>>0]=0;c[b+60>>2]=0;d=0;break}else{c[f>>2]=67421;c[f+4>>2]=10788;Zc(11,13600,f);d=11;break}while(0);i=g;return d|0}function fm(b){b=b|0;var d=0,e=0,f=0;e=c[b>>2]|0;f=e+73|0;d=a[f>>0]|0;do if((d&255)>2){d=Gn(e)|0;if(!d){d=a[f>>0]|0;f=5;break}else{c[b+60>>2]=0;f=6;break}}else f=5;while(0);if((f|0)==5){c[b+60>>2]=0;if(d<<24>>24==1)d=0;else{d=0;f=6}}if((f|0)==6)a[b+25>>0]=1;return d|0}function gm(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0;h=f+24|0;if(!(b[f+44>>1]|0)){j=b[f+76>>1]|0;i=c[f+(j<<2)+120>>2]|0;j=e[f+(j<<1)+78>>1]<<1;k=c[i+64>>2]|0;np(i,(c[i+56>>2]|0)+((d[k+j>>0]<<8|d[k+(j|1)>>0])&e[i+20>>1])|0,h);f=f+72|0;a[f>>0]=d[f>>0]|2}i=h;f=c[i+4>>2]|0;h=g;c[h>>2]=c[i>>2];c[h+4>>2]=f;return}function hm(f,g){f=f|0;g=g|0;var h=0,i=0,j=0;if(!(b[f+44>>1]|0)){i=b[f+76>>1]|0;h=c[f+(i<<2)+120>>2]|0;i=e[f+(i<<1)+78>>1]<<1;j=c[h+64>>2]|0;np(h,(c[h+56>>2]|0)+((d[j+i>>0]<<8|d[j+(i|1)>>0])&e[h+20>>1])|0,f+24|0);h=f+72|0;a[h>>0]=d[h>>0]|2}c[g>>2]=c[f+36>>2];return}function im(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;e=d[a>>0]|0;g=d[a+1>>0]|0;do if(g&128){f=d[a+2>>0]|0;if(!(f&128)){c[b>>2]=(f|e<<14)&2080895|g<<7&16256;e=3;break}else{e=op(a,h)|0;g=h;f=c[g>>2]|0;c[b>>2]=((f|0)==(f|0)?0==(c[g+4>>2]|0):0)?f:-1;break}}else{c[b>>2]=e<<7&16256|g;e=2}while(0);i=k;return e|0}function jm(d,f,g,h,i){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0;j=(h|0)==0;do if((g+f|0)>>>0>(e[d+40>>1]|0)>>>0){l=i+8|0;b[l>>1]=1;h=bh(i,g+2|0)|0;if(!h){k=i+16|0;h=c[k>>2]|0;if(j)h=zh(d,f,g,h)|0;else h=Hm(d,f,g,h,0)|0;if(!h){a[(c[k>>2]|0)+g>>0]=0;a[(c[k>>2]|0)+(g+1)>>0]=0;b[l>>1]=528;c[i+12>>2]=g;h=0;break}if((b[l>>1]&9312)==0?(c[i+24>>2]|0)==0:0)break;Mg(i)}}else{c[i+16>>2]=(c[d+32>>2]|0)+f;b[i+8>>1]=4112;c[i+12>>2]=g;h=0}while(0);return h|0}function km(e,f,g){e=e|0;f=f|0;g=g|0;var h=0;switch(f|0){case 3:{f=d[e+1>>0]<<8|a[e>>0]<<16|d[e+2>>0];e=g;c[e>>2]=f;c[e+4>>2]=((f|0)<0)<<31>>31;b[g+8>>1]=4;e=3;break}case 9:case 8:{e=g;c[e>>2]=f+-8;c[e+4>>2]=0;b[g+8>>1]=4;e=0;break}case 5:{h=a[e>>0]<<8|d[e+1>>0];f=g;c[f>>2]=d[e+3>>0]<<16|d[e+2>>0]<<24|d[e+4>>0]<<8|d[e+5>>0];c[f+4>>2]=h;b[g+8>>1]=4;e=6;break}case 7:case 6:{pp(e,f,g);e=8;break}case 2:{f=a[e>>0]<<8|d[e+1>>0];e=g;c[e>>2]=f;c[e+4>>2]=((f|0)<0)<<31>>31;b[g+8>>1]=4;e=2;break}case 4:{f=d[e+1>>0]<<16|a[e>>0]<<24|d[e+2>>0]<<8|d[e+3>>0];e=g;c[e>>2]=f;c[e+4>>2]=((f|0)<0)<<31>>31;b[g+8>>1]=4;e=4;break}case 0:case 11:case 10:{b[g+8>>1]=1;e=0;break}case 1:{f=a[e>>0]|0;e=g;c[e>>2]=f;c[e+4>>2]=((f|0)<0)<<31>>31;b[g+8>>1]=4;e=1;break}default:{c[g+16>>2]=e;e=(f+-12|0)>>>1;c[g+12>>2]=e;b[g+8>>1]=b[34328+((f&1)<<1)>>1]|0}}return e|0}function lm(b,c,d){b=b|0;c=c|0;d=d|0;do if(!(d>>>0<0|(d|0)==0&c>>>0<128))if(d>>>0<0|(d|0)==0&c>>>0<16384){d=iw(c|0,d|0,7)|0;a[b>>0]=d|128;a[b+1>>0]=c&127;c=2;break}else{c=qp(b,c,d)|0;break}else{a[b>>0]=c&127;c=1}while(0);return c|0}function mm(e){e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();l=m;k=e+73|0;f=a[k>>0]|0;do if((f&255)>2)if(f<<24>>24==4){f=c[e+68>>2]|0;break}else{g=e+56|0;Sc(c[g>>2]|0);c[g>>2]=0;a[k>>0]=0;g=5;break}else g=5;while(0);a:do if((g|0)==5){h=e+76|0;f=b[h>>1]|0;do if(f<<16>>16<=-1){f=c[e+60>>2]|0;if(!f){a[k>>0]=0;f=0;break a}g=e+120|0;f=rp(c[(c[e>>2]|0)+4>>2]|0,f,g,(a[e+72>>0]&1)<<1^2)|0;if(!f){b[h>>1]=0;f=g;break}else{a[k>>0]=0;break a}}else{if(f<<16>>16)do{g=f+-1<<16>>16;b[h>>1]=g;f=c[e+(f<<16>>16<<2)+120>>2]|0;if(!f)f=g;else{xg(c[f+68>>2]|0);f=b[h>>1]|0}}while(f<<16>>16!=0);f=e+120|0}while(0);f=c[f>>2]|0;if((a[f>>0]|0)!=0?((c[e+16>>2]|0)==0|0)==(d[f+2>>0]|0):0){b[e+78>>1]=0;b[e+44>>1]=0;g=e+72|0;a[g>>0]=d[g>>0]&241;if(b[f+18>>1]|0){a[k>>0]=1;f=0;break}if(a[f+5>>0]|0){a[k>>0]=0;f=0;break}if((c[f+72>>2]|0)==1){g=d[f+6>>0]|0;f=c[f+56>>2]|0;f=d[f+(g+9)>>0]<<16|d[f+(g+8)>>0]<<24|d[f+(g+10)>>0]<<8|d[f+(g+11)>>0];a[k>>0]=1;f=nm(e,f)|0;break}else{c[l>>2]=57629;c[l+4>>2]=10788;Zc(11,13600,l);f=11;break}}c[l>>2]=57618;c[l+4>>2]=10788;Zc(11,13600,l);f=11}while(0);i=m;return f|0}function nm(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;l=n+8|0;g=e+76|0;k=b[g>>1]|0;h=k<<16>>16;do if(k<<16>>16<=18){k=e+72|0;f=rp(c[e+4>>2]|0,f,l,(a[k>>0]&1)<<1^2)|0;if(!f){f=c[l>>2]|0;l=h+1|0;c[e+(l<<2)+120>>2]=f;b[e+(l<<1)+78>>1]=0;b[g>>1]=(b[g>>1]|0)+1<<16>>16;b[e+44>>1]=0;a[k>>0]=d[k>>0]&249;if((b[f+18>>1]|0)!=0?(a[f+2>>0]|0)==(a[(c[e+(h<<2)+120>>2]|0)+2>>0]|0):0){f=0;break}c[m>>2]=57499;c[m+4>>2]=10788;Zc(11,13600,m);f=11}}else{c[m>>2]=57487;c[m+4>>2]=10788;Zc(11,13600,m);f=11}while(0);i=n;return f|0}function om(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;j=a+328|0;a:do if(!(c[j>>2]|0))a=0;else{g=a+304|0;h=d+1|0;i=0;while(1){if((i|0)>=(c[g>>2]|0)){a=0;break a}f=c[(c[j>>2]|0)+(i<<2)>>2]|0;a=c[c[f+4>>2]>>2]|0;e=c[f+8>>2]|0;if((e|0)!=0?(c[a>>2]|0)>1:0){if(!b){a=c[a+80>>2]|0;c[f+20>>2]=h}else if((b|0)==2)a=c[a+88>>2]|0;else a=c[a+84>>2]|0;if((a|0)!=0?(c[f+20>>2]|0)>(d|0):0){a=nc[a&127](e,d)|0;if(!a){i=i+1|0;continue}else break a}}i=i+1|0}}while(0);return a|0}function pm(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();f=h;e=c[b>>2]|0;if(!d){d=b+144|0;k=c[d+4>>2]|0;if((k|0)>0|(k|0)==0&(c[d>>2]|0)>>>0>0)g=4;else e=0}else{d=e+504|0;k=e+512|0;d=fw(c[k>>2]|0,c[k+4>>2]|0,c[d>>2]|0,c[d+4>>2]|0)|0;k=C;if((k|0)>0|(k|0)==0&d>>>0>0)g=4;else e=0}if((g|0)==4){c[b+80>>2]=787;a[b+86>>0]=2;$g(b+44|0,e,34376,f);e=1}i=h;return e|0}function qm(e,f,g){e=e|0;f=f|0;g=g|0;var h=0;if((e|0)!=0?(a[e+8>>0]|0)==2:0){h=c[e+4>>2]|0;c[h+4>>2]=c[e>>2];f=fp(c[h>>2]|0,f,g)|0;if(!f){if((g|0)<0?(b[h+22>>1]&8)!=0:0)c[h+44>>2]=0;f=yg(h)|0;e=c[(c[h+12>>2]|0)+56>>2]|0;c[h+44>>2]=d[e+29>>0]<<16|d[e+28>>0]<<24|d[e+30>>0]<<8|d[e+31>>0]}}else f=0;return f|0}function rm(a,b){a=a|0;b=b|0;a=a+16|0;ml(c[(c[a>>2]|0)+(b<<4)+12>>2]|0);if((b|0)!=1)ml(c[(c[a>>2]|0)+28>>2]|0);return}function sm(a,b,e){a=a|0;b=b|0;e=e|0;var f=0;f=c[a+4>>2]|0;c[f+4>>2]=c[a>>2];if((b|0)==15)f=(c[a+20>>2]|0)+(c[(c[f>>2]|0)+100>>2]|0)|0;else{b=b<<2;f=c[(c[f+12>>2]|0)+56>>2]|0;f=(d[f+(b+37)>>0]|0)<<16|(d[f+(b+36)>>0]|0)<<24|(d[f+(b+38)>>0]|0)<<8|(d[f+(b+39)>>0]|0)}c[e>>2]=f;return}function tm(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0;k=(c[d+28>>2]|0)-e|0;i=c[d+8>>2]|0;n=(f<<3)+88|0;m=(h|0)!=0;l=d+56|0;j=c[(c[l>>2]|0)+(e<<2)>>2]|0;if(j){xm(d,j);c[(c[l>>2]|0)+(e<<2)>>2]=0}if(!(bh(i+(k*40|0)|0,(m?200:0)+n|0)|0)){k=i+(k*40|0)+16|0;h=c[k>>2]|0;c[(c[l>>2]|0)+(e<<2)>>2]=h;i=h+0|0;j=i+88|0;do{c[i>>2]=0;i=i+4|0}while((i|0)<(j|0));a[h+24>>0]=g;b[h+20>>1]=f;c[h+80>>2]=h+84+(f<<2);if(m){i=(c[k>>2]|0)+n|0;c[h>>2]=i;i=i+0|0;j=i+76|0;do{c[i>>2]=0;i=i+4|0}while((i|0)<(j|0))}}else h=0;return h|0}function um(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0;k=c[d+4>>2]|0;c[k+4>>2]=c[d>>2];if(f)if(!(b[k+22>>1]&1)){j=k+80|0;if(!(c[j>>2]|0)){i=Co(c[k+32>>2]|0)|0;c[j>>2]=i;if(!i)i=7;else{l=i;i=l;a[i>>0]=0;a[i+1>>0]=0;a[i+2>>0]=0;a[i+3>>0]=0;l=l+4|0;a[l>>0]=0;a[l+1>>0]=0;a[l+2>>0]=0;a[l+3>>0]=0;c[j>>2]=(c[j>>2]|0)+4;l=6}}else l=6}else i=8;else l=6;if((l|0)==6){if((e|0)==1)e=(c[k+44>>2]|0)!=0&1;c[h+60>>2]=e;b[h+76>>1]=-1;c[h+16>>2]=g;c[h>>2]=d;c[h+4>>2]=k;a[h+72>>0]=f;i=k+8|0;e=c[i>>2]|0;c[h+8>>2]=e;if(e)c[e+12>>2]=h;c[i>>2]=h;a[h+73>>0]=0;i=0}return i|0}function vm(f,g,h,k,l,m){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;P=i;i=i+128|0;if((i|0)>=(j|0))ba();A=P;H=P+12|0;E=P+8|0;M=P+16|0;K=(g|0)==0;if(!K){o=(a[g>>0]|0)==0;if(Wv(g,14640)|0)if(o)G=4;else{o=0;G=5}else L=1}else G=4;if((G|0)==4)if((a[h+64>>0]|0)==2){L=1;o=1}else{o=1;G=5}if((G|0)==5)L=(m&128|0)!=0;J=L?l|2:l;if((m&256|0)!=0&(L|o))m=m&-769|512;O=mg(48,0)|0;a:do if(O){u=O+0|0;t=u+48|0;do{a[u>>0]=0;u=u+1|0}while((u|0)<(t|0));c[O>>2]=h;c[O+32>>2]=O;c[O+36>>2]=1;b:do if(!o?!(L&(m&64|0)==0|(m&131072|0)==0):0){if(K)o=1;else{o=g;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;o=(o-g&1073741823)+1|0}l=(c[f+8>>2]|0)+1|0;r=(l|0)>(o|0)?l:o;r=mg(r,((r|0)<0)<<31>>31)|0;q=O+9|0;a[q>>0]=1;if(!r){Sc(O);n=7;break a}if(!L){a[r>>0]=0;o=lc[c[f+36>>2]&31](f,g,l,r)|0;if(o){Sc(r);Sc(O);n=o;break a}}else gw(r|0,g|0,o|0)|0;o=c[3664]|0;c:do if(o){while(1){l=c[o>>2]|0;if((Wv(r,c[l+168>>2]|0)|0)==0?(c[l>>2]|0)==(f|0):0)break;o=c[o+68>>2]|0;if(!o)break c}l=c[h+20>>2]|0;d:do if((l|0)>0){p=c[h+16>>2]|0;while(1){l=l+-1|0;D=c[p+(l<<4)+4>>2]|0;if((D|0)!=0?(c[D+4>>2]|0)==(o|0):0)break;if((l|0)<=0)break d}Sc(r);Sc(O);n=19;break a}while(0);c[O+4>>2]=o;D=o+64|0;c[D>>2]=(c[D>>2]|0)+1;Sc(r);if(!o){G=32;break b}if(!(a[q>>0]|0))break b;else{G=105;break b}}while(0);Sc(r);G=32}else G=32;while(0);e:do if((G|0)==32){I=mg(84,0)|0;if(I){u=I+0|0;t=u+84|0;do{a[u>>0]=0;u=u+1|0}while((u|0)<(t|0));C=J&1;D=(C|0)==0;c[H>>2]=1024;B=f+4|0;o=c[B>>2]|0;if((o|0)>40)l=o+7&-8;else l=40;c[I>>2]=0;do if(!(J&2))if(!K)if(a[g>>0]|0){v=f+8|0;q=(c[v>>2]|0)+1|0;x=q<<1;x=mg(x,((x|0)<0)<<31>>31)|0;if(!x)n=7;else{a[x>>0]=0;o=lc[c[f+36>>2]&31](f,g,q,x)|0;q=x;while(1)if(!(a[q>>0]|0))break;else q=q+1|0;u=q-x&1073741823;r=g;while(1)if(!(a[r>>0]|0))break;else r=r+1|0;t=(r-g&1073741823)+1|0;r=a[g+t>>0]|0;t=g+t|0;if(!(r<<24>>24))q=t;else{q=t;do{if(!(r<<24>>24))r=q;else{r=q;do r=r+1|0;while((a[r>>0]|0)!=0)}r=r-q&1073741823;p=q+(r+1)|0;s=p;while(1)if(!(a[s>>0]|0))break;else s=s+1|0;q=q+(r+2+(s-p&1073741823))|0;r=a[q>>0]|0}while(r<<24>>24!=0)}if(!o){if((u+8|0)<=(c[v>>2]|0)){w=1;A=0;v=u;u=q+1-t|0;r=x;G=58;break}c[A>>2]=46171;c[A+4>>2]=10788;Zc(14,14848,A);o=14}Sc(x);G=89}}else{w=1;A=0;v=0;u=0;r=0;t=0;G=58}else{g=0;w=0;A=0;v=0;u=0;r=0;t=0;G=58}else if(!K)if(a[g>>0]|0){r=gh(0,g)|0;if(!r)n=7;else{o=r;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;g=0;w=0;A=1;v=o-r&1073741823;u=0;t=0;G=58}}else{w=1;A=1;v=0;u=0;r=0;t=0;G=58}else{g=0;w=0;A=1;v=0;u=0;r=0;t=0;G=58}while(0);do if((G|0)==58){q=(l<<1)+17+(v*3|0)+u+((c[B>>2]|0)+271&-8)|0;z=mg(q,0)|0;if(!z){if(!r){n=7;break}Sc(r);n=7;break}bw(z|0,0,q|0)|0;x=z+204|0;c[x>>2]=z+216;y=z+60|0;c[y>>2]=z+264;s=(c[B>>2]|0)+271&-8;c[z+68>>2]=z+s;s=s+l|0;c[z+64>>2]=z+s;s=s+l|0;q=z+s|0;o=z+168|0;c[o>>2]=q;if(r){p=v+1|0;l=z+172|0;c[l>>2]=z+(u+p+s);gw(q|0,r|0,v|0)|0;if(u)gw((c[o>>2]|0)+p|0,t|0,u|0)|0;gw(c[l>>2]|0,r|0,v|0)|0;u=(c[l>>2]|0)+v+0|0;s=14928;t=u+10|0;do{a[u>>0]=a[s>>0]|0;u=u+1|0;s=s+1|0}while((u|0)<(t|0));l=(c[l>>2]|0)+(v+9)|0;B=z+212|0;c[B>>2]=l;gw(l|0,r|0,v|0)|0;B=(c[B>>2]|0)+v|0;a[B+0>>0]=a[14944]|0;a[B+1>>0]=a[14945]|0;a[B+2>>0]=a[14946]|0;a[B+3>>0]=a[14947]|0;a[B+4>>0]=a[14948]|0;Sc(r)}c[z>>2]=f;c[z+144>>2]=m;do if(w?(a[g>>0]|0)!=0:0){c[E>>2]=0;o=pc[c[f+24>>2]&31](f,c[o>>2]|0,c[y>>2]|0,m&556927,E)|0;p=c[E>>2]&1;if(!o){o=c[y>>2]|0;o=hc[c[(c[o>>2]|0)+48>>2]&127](o)|0;do if((p|0)==0?(sp(z),F=c[z+148>>2]|0,F>>>0>1024):0)if(F>>>0>8192){c[H>>2]=8192;break}else{c[H>>2]=F;break}while(0);a[z+13>>0]=bg(g,14952,0)|0;if((o&8192|0)==0?(bg(g,14960,0)|0)==0:0){s=0;G=77;break}o=m|1;G=76}}else{o=m;G=76}while(0);if((G|0)==76){a[z+16>>0]=1;a[z+17>>0]=4;a[z+13>>0]=1;p=o&1;s=1;G=77}if((G|0)==77){o=Yk(z,H,-1)|0;if(!o){l=c[H>>2]|0;r=(A|0)==0;m=A^1;q=r?75:0;o=c[x>>2]|0;u=o+0|0;t=u+48|0;do{c[u>>2]=0;u=u+4|0}while((u|0)<(t|0));c[o+20>>2]=1;c[o+24>>2]=80;a[o+28>>0]=m;a[o+29>>0]=2;c[o+32>>2]=q;c[o+36>>2]=z;c[o+16>>2]=100;o=Do(o,l)|0;if(!o){a[z+6>>0]=C^1;c[z+156>>2]=1073741823;a[z+12>>0]=s;a[z+4>>0]=s;a[z+18>>0]=s;a[z+15>>0]=A;a[z+14>>0]=p;a[z+7>>0]=s;if(!(s<<24>>24)){a[z+8>>0]=1;a[z+11>>0]=2;a[z+10>>0]=34;a[z+9>>0]=2}b[z+140>>1]=80;E=z+160|0;c[E>>2]=-1;c[E+4>>2]=-1;sp(z);do if(D){if(r)break;a[z+5>>0]=4}else a[z+5>>0]=2;while(0);c[z+196>>2]=21;c[I>>2]=z;G=90;break}}}l=c[y>>2]|0;m=c[l>>2]|0;if(m){hc[c[m+4>>2]&127](l)|0;c[l>>2]=0}Xk(c[z+200>>2]|0);Sc(z);G=89}while(0);if((G|0)==89)if(!o)G=90;else n=o;do if((G|0)==90){o=c[I>>2]|0;E=h+40|0;t=c[E+4>>2]|0;u=o+128|0;c[u>>2]=c[E>>2];c[u+4>>2]=t;u=M+0|0;t=u+100|0;do{a[u>>0]=0;u=u+1|0}while((u|0)<(t|0));o=c[o+60>>2]|0;l=c[o>>2]|0;if((l|0)!=0?(n=pc[c[l+8>>2]&31](o,M,100,0,0)|0,!((n|0)==0|(n|0)==522)):0)break;a[I+16>>0]=J;c[I+4>>2]=h;o=c[I>>2]|0;l=o+176|0;c[l>>2]=76;c[o+180>>2]=I;m=c[o+60>>2]|0;n=c[m>>2]|0;if(!n)l=o;else{Yb[c[n+40>>2]&63](m,15,l)|0;l=c[I>>2]|0}c[O+4>>2]=I;c[I+8>>2]=0;c[I+12>>2]=0;if(a[l+14>>0]|0){E=I+22|0;b[E>>1]=e[E>>1]|1}E=d[M+17>>0]<<16|d[M+16>>0]<<8;m=I+32|0;c[m>>2]=E;if((E+-512|0)>>>0<=65024?(E+16777215&E|0)==0:0){o=a[M+20>>0]|0;E=I+22|0;b[E>>1]=e[E>>1]|2;a[I+17>>0]=(d[M+53>>0]<<16|d[M+52>>0]<<24|d[M+54>>0]<<8|d[M+55>>0]|0)!=0&1;a[I+18>>0]=(d[M+65>>0]<<16|d[M+64>>0]<<24|d[M+66>>0]<<8|d[M+67>>0]|0)!=0&1}else{c[m>>2]=0;if(K|L)o=0;else{a[I+17>>0]=0;a[I+18>>0]=0;o=0}}o=o&255;n=Yk(l,m,o)|0;if(!n){c[I+36>>2]=(c[m>>2]|0)-o;if(!(a[O+9>>0]|0))break e;c[I+64>>2]=1;c[I+68>>2]=c[3664];c[3664]=I;G=105;break e}}while(0);if(I){m=c[I>>2]|0;if(!m)m=I;else{hp(m);m=I}}else m=0}else{m=0;n=7}Sc(m);Sc(O);c[k>>2]=0;break a}while(0);f:do if((G|0)==105?(N=c[h+20>>2]|0,(N|0)>0):0){m=c[h+16>>2]|0;l=0;while(1){n=c[m+(l<<4)+4>>2]|0;if((n|0)!=0?(a[n+9>>0]|0)!=0:0){l=n;break}l=l+1|0;if((l|0)>=(N|0))break f}while(1){n=l+28|0;m=c[n>>2]|0;if(!m){m=l;break}else l=m}o=c[O+4>>2]|0;if(o>>>0<(c[m+4>>2]|0)>>>0){c[O+24>>2]=m;c[O+28>>2]=0;c[n>>2]=O;break}while(1){n=m+24|0;l=c[n>>2]|0;if(!l){G=113;break}if((c[l+4>>2]|0)>>>0<o>>>0)m=l;else{G=115;break}}if((G|0)==113){c[O+24>>2]=0;c[O+28>>2]=m}else if((G|0)==115){c[O+24>>2]=l;c[O+28>>2]=m;c[l+28>>2]=O}c[n>>2]=O}while(0);c[k>>2]=O;n=c[O+4>>2]|0;c[n+4>>2]=c[O>>2];if(!(c[n+48>>2]|0)){n=c[(c[n>>2]|0)+204>>2]|0;c[n+16>>2]=2e3;fc[c[8744+124>>2]&15](c[n+40>>2]|0,2e3);n=0}else n=0}else n=7;while(0);i=P;return n|0}function wm(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+48|0;if((i|0)>=(j|0))ba();r=y;v=y+28|0;w=y+24|0;u=y+20|0;n=y+16|0;p=y+12|0;q=y+32|0;s=y+8|0;h=c[b>>2]|0;t=c[b+4>>2]|0;g=t+4|0;c[g>>2]=h;a:do if(!(a[t+17>>0]|0)){g=ep(t,v,w,1,0)|0;c[u>>2]=g;if(!g){h=c[v>>2]|0;x=39}}else{o=t+8|0;k=c[o>>2]|0;if(k)do{m=k+72|0;a[m>>0]=d[m>>0]&251;k=c[k+8>>2]|0}while((k|0)!=0);c[g>>2]=h;m=c[(c[t+12>>2]|0)+56>>2]|0;m=d[m+53>>0]<<16|d[m+52>>0]<<24|d[m+54>>0]<<8|d[m+55>>0];c[w>>2]=m;h=((c[2514]|0)>>>0)/((c[t+32>>2]|0)>>>0)|0;g=t+36|0;while(1){l=m+1|0;if(l>>>0<2)k=0;else{k=m+-1|0;k=k-((k>>>0)%(((((c[g>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(h|0)?3:2)+k|0}if((l|0)==(k|0)|(m|0)==(h|0))m=l;else break}c[w>>2]=l;g=ep(t,p,n,l,1)|0;c[u>>2]=g;if(!g){m=c[n>>2]|0;do if((m|0)==(l|0)){h=c[p>>2]|0;c[v>>2]=h}else{a[q>>0]=0;c[s>>2]=0;k=c[o>>2]|0;b:do if(!k)g=0;else{while(1){if(k)break;k=c[2]|0;if(!k){g=0;break b}}g=Bl(k,0,0)|0}while(0);c[u>>2]=g;k=c[p>>2]|0;if(k)xg(c[k+68>>2]|0);if(g)break a;g=$k(t,l,v,0)|0;c[u>>2]=g;if(g)break a;g=dp(t,l,q,s)|0;c[u>>2]=g;k=a[q>>0]|0;if((k+-1&255)>=2){h=c[v>>2]|0;if(!g){g=Vm(t,h,k,c[s>>2]|0,m,0)|0;c[u>>2]=g;if(h)xg(c[h+68>>2]|0);if(g)break a;g=$k(t,l,v,0)|0;c[u>>2]=g;if(g)break a;h=c[v>>2]|0;k=h+68|0;g=Cg(c[k>>2]|0)|0;c[u>>2]=g;if(!g)break;if(!h)break a;xg(c[k>>2]|0);break a}}else{c[r>>2]=60876;c[r+4>>2]=10788;Zc(11,13600,r);c[u>>2]=11;g=11;h=c[v>>2]|0}if(!h)break a;xg(c[h+68>>2]|0);break a}while(0);vp(t,l,1,0,u);g=c[u>>2]|0;if(g){if(!h)break;xg(c[h+68>>2]|0);break}g=zg(b,4,l)|0;c[u>>2]=g;if(g){if(h)xg(c[h+68>>2]|0)}else x=39}}while(0);if((x|0)==39){ll(h,(f&1|0)==0?10:13);g=c[(c[v>>2]|0)+68>>2]|0;if(g)xg(g);c[e>>2]=c[w>>2];g=0}i=y;return g|0}function xm(a,b){a=a|0;b=b|0;var d=0,e=0;do if(b){a=c[a>>2]|0;d=b+56|0;e=c[d>>2]|0;if(e){Wm(a,e);Sc(c[e+40>>2]|0);ig(a,e);c[d>>2]=0}a=c[b+4>>2]|0;if(a){Il(a);break}a=c[b>>2]|0;if(a){gp(a);break}a=c[b+32>>2]|0;if(a){e=c[a>>2]|0;d=c[e>>2]|0;e=e+4|0;c[e>>2]=(c[e>>2]|0)+-1;hc[c[d+28>>2]&127](a)|0}}while(0);return}function ym(f,g,h,k,l,m){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0;N=i;i=i+16|0;if((i|0)>=(j|0))ba();L=N+8|0;K=N;q=f+73|0;do if(((a[q>>0]|0)==1?(p=d[f+72>>0]|0,(p&2|0)!=0):0)?(a[(c[f+120>>2]|0)+2>>0]|0)!=0:0){n=f+24|0;o=c[n>>2]|0;n=c[n+4>>2]|0;if((o|0)==(h|0)&(n|0)==(k|0)){c[m>>2]=0;n=0;break}if((p&8|0)!=0&((n|0)<(k|0)|(n|0)==(k|0)&o>>>0<h>>>0)){c[m>>2]=-1;n=0}else M=8}else M=8;while(0);do if((M|0)==8){if(!g)G=0;else{o=c[g>>2]|0;if(((e[o+8>>1]|0)+(e[o+6>>1]|0)|0)<14){n=e[(c[g+8>>2]|0)+8>>1]|0;H=(a[c[o+16>>2]>>0]|0)==0;c[g+12>>2]=H?-1:1;c[g+16>>2]=H?1:-1;if(!(n&4))if((n&25|0)==0?(c[o+20>>2]|0)==0:0)o=39;else M=13;else o=38}else M=13;if((M|0)==13)o=40;a[g+7>>0]=0;G=o}n=mm(f)|0;if(!n){if(!(a[q>>0]|0)){c[m>>2]=-1;n=0;break}H=f+76|0;C=1-l|0;D=(G|0)==0;I=f+72|0;E=f+24|0;F=f+24|0;a:do{l=b[H>>1]|0;A=c[f+(l<<2)+120>>2]|0;B=A+18|0;p=(e[B>>1]|0)+-1|0;o=p>>C;b[f+(l<<1)+78>>1]=o;l=A+56|0;x=A+20|0;y=A+64|0;z=A+7|0;b:do if(D){s=A+3|0;r=A+60|0;q=0;t=p;while(1){p=o<<1;w=c[y>>2]|0;p=(c[l>>2]|0)+(((d[w+p>>0]<<8|d[w+(p|1)>>0])&e[x>>1])+(d[z>>0]|0))|0;c:do if(a[s>>0]|0)while(1){w=p;p=p+1|0;if((a[w>>0]|0)>=0)break c;if(p>>>0>=(c[r>>2]|0)>>>0){M=25;break a}}while(0);op(p,K)|0;n=K;p=c[n>>2]|0;n=c[n+4>>2]|0;if((n|0)<(k|0)|(n|0)==(k|0)&p>>>0<h>>>0){q=o+1|0;if((o|0)<(t|0))p=t;else{n=-1;M=49;break b}}else{if(!((n|0)>(k|0)|(n|0)==(k|0)&p>>>0>h>>>0)){q=n;break}p=o+-1|0;if((q|0)>(p|0)){n=1;M=49;break b}}o=p+q>>1;t=p}a[I>>0]=d[I>>0]|2;z=E;c[z>>2]=p;c[z+4>>2]=q;b[f+(b[H>>1]<<1)+78>>1]=o;if(a[A+5>>0]|0){M=31;break a}}else{u=A+8|0;v=A+10|0;w=o;q=0;while(1){n=c[l>>2]|0;s=w<<1;o=c[y>>2]|0;s=(d[o+s>>0]<<8|d[o+(s|1)>>0])&e[x>>1];o=s+(d[z>>0]|0)|0;O=a[n+o>>0]|0;t=O&255;r=n+(o+1)|0;do if((O&255)>(d[u>>0]|0)){r=d[r>>0]|0;if((r&128|0)==0?(J=r+(t<<7&16256)|0,(J|0)<=(e[v>>1]|0)):0){n=Yb[G&63](J,n+(o+2)|0,g)|0;break}np(A,n+s|0,F);r=c[F>>2]|0;o=mg(r,((r|0)<0)<<31>>31)|0;if(!o){n=7;break a}b[f+(b[H>>1]<<1)+78>>1]=w;n=Hm(f,0,r,o,2)|0;if(n){M=40;break a}n=Yb[G&63](r,o,g)|0;Sc(o)}else n=Yb[G&63](t,r,g)|0;while(0);if((n|0)<0)q=w+1|0;else{if((n|0)<=0){o=w;M=46;break a}p=w+-1|0}if((q|0)>(p|0)){o=w;M=49;break b}w=p+q>>1}}while(0);if((M|0)==49){M=0;if(a[A+5>>0]|0){M=51;break}l=A+56|0;o=q}q=c[l>>2]|0;if((o|0)<(e[B>>1]|0)){p=o<<1;B=c[A+64>>2]|0;p=(d[B+p>>0]<<8|d[B+(p|1)>>0])&e[A+20>>1];p=d[q+(p+1)>>0]<<16|d[q+p>>0]<<24|d[q+(p+2)>>0]<<8|d[q+(p+3)>>0]}else{p=d[A+6>>0]|0;p=d[q+(p+9)>>0]<<16|d[q+(p+8)>>0]<<24|d[q+(p+10)>>0]<<8|d[q+(p+11)>>0]}b[f+(b[H>>1]<<1)+78>>1]=o;n=nm(f,p)|0}while((n|0)==0);if((M|0)==25){c[L>>2]=57865;c[L+4>>2]=10788;Zc(11,13600,L);n=11;break}else if((M|0)==31){c[m>>2]=0;n=0}else if((M|0)==40)Sc(o);else if((M|0)==46){c[m>>2]=0;b[f+(b[H>>1]<<1)+78>>1]=o;n=(a[g+7>>0]|0)==0?0:11}else if((M|0)==51){b[f+(b[H>>1]<<1)+78>>1]=o;c[m>>2]=n;n=0}b[f+44>>1]=0;a[I>>0]=d[I>>0]&249}}while(0);i=N;return n|0}function zm(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0;b[f+44>>1]=0;h=f+72|0;a[h>>0]=d[h>>0]&249;c[g>>2]=0;do if((a[f+73>>0]|0)==1){h=f+76|0;k=b[h>>1]|0;i=c[f+(k<<2)+120>>2]|0;k=f+(k<<1)+78|0;j=(b[k>>1]|0)+1<<16>>16;b[k>>1]=j;if((j&65535)>=(e[i+18>>1]|0)){h=f+(b[h>>1]<<1)+78|0;b[h>>1]=(b[h>>1]|0)+-1<<16>>16;h=zp(f,g)|0;break}if(!(a[i+5>>0]|0))h=Rm(f)|0;else h=0}else h=zp(f,g)|0;while(0);return h|0}function Am(e,f){e=e|0;f=f|0;var g=0,h=0,i=0,j=0;c[f>>2]=0;j=e+72|0;a[j>>0]=d[j>>0]&241;b[e+44>>1]=0;if(((a[e+73>>0]|0)==1?(g=b[e+76>>1]|0,h=e+(g<<1)+78|0,i=b[h>>1]|0,i<<16>>16!=0):0)?(a[(c[e+(g<<2)+120>>2]|0)+5>>0]|0)!=0:0){b[h>>1]=i+-1<<16>>16;g=0}else g=Ap(e,f)|0;return g|0}function Bm(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;i=0-d&7;j=a+6|0;h=b[j>>1]|0;g=((h&65535)*40|0)+64|0;if((g|0)>(i+e|0)){g=ih(c[a+12>>2]|0,g,0)|0;c[f>>2]=g;if(!g)g=0;else{h=b[j>>1]|0;k=5}}else{c[f>>2]=0;g=d+i|0;k=5}if((k|0)==5){c[g+8>>2]=g+24;c[g>>2]=a;b[g+4>>1]=(h&65535)+1}return g|0}function Cm(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))ba();t=u+4|0;s=u;m=c[h+8>>2]|0;a[h+6>>0]=0;k=a[g>>0]|0;if(k<<24>>24>-1){k=k&255;c[t>>2]=k;l=1}else{l=im(g,t)|0;k=c[t>>2]|0}r=d+4|0;p=d+12|0;q=h+4|0;d=k;o=k;n=l&255;k=0;while(1){if(n>>>0>=d>>>0|(o|0)>(f|0))break;h=g+n|0;d=a[h>>0]|0;if(d<<24>>24>-1){c[s>>2]=d&255;h=1}else h=im(h,s)|0;a[m+10>>0]=a[r>>0]|0;c[m+32>>2]=c[p>>2];c[m+24>>2]=0;l=km(g+o|0,c[s>>2]|0,m)|0;k=k+1<<16>>16;if((k&65535)>=(e[q>>1]|0))break;d=c[t>>2]|0;o=l+o|0;n=(h&255)+n|0;m=m+40|0}b[q>>1]=k;i=u;return}function Dm(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;g=b+73|0;if((a[g>>0]|0)==1?(a[b+72>>0]&8)!=0:0)f=0;else h=3;do if((h|0)==3){f=mm(b)|0;if(!f){if(!(a[g>>0]|0)){c[e>>2]=1;f=0;break}c[e>>2]=0;f=Bp(b)|0;e=b+72|0;g=d[e>>0]|0;if(!f){a[e>>0]=g|8;f=0;break}else{a[e>>0]=g&247;break}}}while(0);return f|0}function Em(f,g,h,k,l,m,n,o,p){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0;L=i;i=i+32|0;if((i|0)>=(j|0))ba();u=L;A=L+24|0;B=L+20|0;z=L+16|0;K=L+12|0;H=L+8|0;I=L+28|0;c[H>>2]=p;r=(c[f>>2]|0)+4|0;t=c[r>>2]|0;J=f+73|0;do if((a[J>>0]|0)!=4){s=Hn(t,c[f+60>>2]|0,f)|0;c[K>>2]=s;if(!s){if(!(c[f+16>>2]|0)){s=c[(c[r>>2]|0)+8>>2]|0;if(s)do{if((a[s+72>>0]&16)!=0?(E=s+24|0,(c[E>>2]|0)==(h|0)?(c[E+4>>2]|0)==(k|0):0):0)a[s+73>>0]=0;s=c[s+8>>2]|0}while((s|0)!=0);if((a[f+72>>0]&2)!=0&((k|0)>0|(k|0)==0&h>>>0>0)?(E=f+24|0,x=c[E>>2]|0,E=c[E+4>>2]|0,y=fw(h|0,k|0,-1,-1)|0,(x|0)==(y|0)&(E|0)==(C|0)):0)c[H>>2]=-1;else D=13}else D=13;if(((D|0)==13?(p|0)==0:0)?(q=Cp(f,g,h,k,o,H)|0,c[K>>2]=q,(q|0)!=0):0)break;F=f+76|0;G=c[f+(b[F>>1]<<2)+120>>2]|0;E=c[t+80>>2]|0;c[B>>2]=0;o=G+52|0;y=c[o>>2]|0;c[z>>2]=0;s=d[G+7>>0]|0;t=n+m|0;if(a[G+3>>0]|0){if(t>>>0<128){a[E+s>>0]=t;r=1}else r=(lm(E+s|0,t,((t|0)<0)<<31>>31)|0)&255;s=r+s|0}p=(lm(E+s|0,h,k)|0)+s|0;do if(!(a[G+2>>0]|0))if((k|0)>0|(k|0)==0&h>>>0>2147483647|(g|0)==0){c[u>>2]=58825;c[u+4>>2]=10788;Zc(11,13600,u);q=11;s=0;break}else{x=m;t=h;m=h;n=g;D=24;break}else{x=0;n=l;D=24}while(0);do if((D|0)==24){s=e[G+10>>1]|0;if((t|0)>(s|0)){r=e[G+12>>1]|0;o=(((t-r|0)>>>0)%(((c[(c[o>>2]|0)+36>>2]|0)+-4|0)>>>0)|0)+r|0;o=(o|0)>(s|0)?r:o;r=o+p|0;s=r+4|0;r=E+r|0}else{s=t+p|0;s=(s|0)<4?4:s;r=E;o=t}if((t|0)>0){h=y+17|0;v=y+36|0;w=y+32|0;g=m;u=E+p|0;k=r;p=0;m=o;while(1){if(!m){u=c[z>>2]|0;if(!(a[h>>0]|0))r=u;else{q=((c[2514]|0)>>>0)/((c[w>>2]|0)>>>0)|0;m=u;while(1){r=m+1|0;if(r>>>0<2)o=0;else{o=m+-1|0;o=o-((o>>>0)%(((((c[v>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;o=((o+1|0)==(q|0)?3:2)+o|0}if((o|0)==(r|0)|(m|0)==(q|0))m=r;else break}c[z>>2]=r}q=ep(y,B,z,r,0)|0;c[A>>2]=q;r=(q|0)==0;if((a[h>>0]|0)!=0&r){r=c[z>>2]|0;vp(y,r,(u|0)!=0?4:3,u,A);q=c[A>>2]|0;if(q){o=p;D=38;break}}else{if(!r)break;r=c[z>>2]|0}a[k>>0]=r>>>24;a[k+1>>0]=r>>>16;a[k+2>>0]=r>>>8;a[k+3>>0]=r;if(p)xg(c[p+68>>2]|0);q=c[B>>2]|0;u=q+56|0;k=c[u>>2]|0;a[k>>0]=0;a[k+1>>0]=0;a[k+2>>0]=0;a[k+3>>0]=0;u=(c[u>>2]|0)+4|0;m=(c[v>>2]|0)+-4|0}else q=p;r=(t|0)>(m|0)?m:t;if((g|0)>0){r=(r|0)>(g|0)?g:r;gw(u|0,n|0,r|0)|0}else bw(u|0,0,r|0)|0;t=t-r|0;o=(g|0)==(r|0);if((t|0)<=0){D=51;break}else{g=o?x:g-r|0;u=u+r|0;n=o?l:n+r|0;p=q;m=m-r|0}}if((D|0)==38){p=c[B>>2]|0;if(!p)p=o;else{xg(c[p+68>>2]|0);p=o}}else if((D|0)==51){if(!q){q=0;break}xg(c[q+68>>2]|0);q=0;break}if(p)xg(c[p+68>>2]|0)}else q=0}while(0);c[K>>2]=q;if(!q){q=f+(b[F>>1]<<1)+78|0;o=b[q>>1]|0;r=o&65535;p=c[H>>2]|0;if(!p){q=Cg(c[G+68>>2]|0)|0;c[K>>2]=q;if(q)break;q=r<<1;D=c[G+64>>2]|0;q=(c[G+56>>2]|0)+((d[D+q>>0]<<8|d[D+(q|1)>>0])&e[G+20>>1])|0;if(!(a[G+5>>0]|0)){D=d[q>>0]|d[q+1>>0]<<8|d[q+2>>0]<<16|d[q+3>>0]<<24;a[E>>0]=D;a[E+1>>0]=D>>8;a[E+2>>0]=D>>16;a[E+3>>0]=D>>24}c[K>>2]=Dp(G,q,I)|0;Ep(G,r,e[I>>1]|0,K);q=c[K>>2]|0;if(!q)q=r;else break}else if((p|0)<0?(b[G+18>>1]|0)!=0:0){D=o+1<<16>>16;b[q>>1]=D;q=D&65535}else q=r;Fp(G,q,E,s,0,0,K);b[f+44>>1]=0;q=c[K>>2]|0;if(!q)if(!(a[G+1>>0]|0))q=0;else{q=f+72|0;a[q>>0]=d[q>>0]&253;q=Gp(f)|0;c[K>>2]=q;a[(c[f+(b[F>>1]<<2)+120>>2]|0)+1>>0]=0;a[J>>0]=0}}}else q=s}else q=c[f+68>>2]|0;while(0);i=L;return q|0}function Fm(f){f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))ba();y=z+4|0;q=z+8|0;l=z;m=(c[f>>2]|0)+4|0;s=c[m>>2]|0;w=f+76|0;x=b[w>>1]|0;u=x<<16>>16;p=b[f+(u<<1)+78>>1]|0;v=p&65535;r=c[f+(u<<2)+120>>2]|0;do if((p&65535)<(e[r+18>>1]|0)?(a[f+73>>0]|0)==1:0){p=v<<1;t=c[r+64>>2]|0;p=(c[r+56>>2]|0)+((d[t+p>>0]<<8|d[t+(p|1)>>0])&e[r+20>>1])|0;t=r+5|0;if((a[t>>0]|0)==0?(c[l>>2]=0,k=Am(f,l)|0,c[y>>2]=k,(k|0)!=0):0){g=k;break}k=Hn(s,c[f+60>>2]|0,f)|0;c[y>>2]=k;if(!k){if((c[f+16>>2]|0)==0?(o=f+24|0,n=c[o>>2]|0,o=c[o+4>>2]|0,h=c[(c[m>>2]|0)+8>>2]|0,(h|0)!=0):0)do{if((a[h+72>>0]&16)!=0?(m=h+24|0,(c[m>>2]|0)==(n|0)?(c[m+4>>2]|0)==(o|0):0):0)a[h+73>>0]=0;h=c[h+8>>2]|0}while((h|0)!=0);h=Cg(c[r+68>>2]|0)|0;c[y>>2]=h;if(!h){c[y>>2]=Dp(r,p,q)|0;Ep(r,v,e[q>>1]|0,y);h=c[y>>2]|0;if(!h){if((a[t>>0]|0)==0?(p=c[f+(b[w>>1]<<2)+120>>2]|0,o=c[(c[f+(u+1<<2)+120>>2]|0)+72>>2]|0,l=c[p+56>>2]|0,q=p+18|0,m=e[q>>1]<<1,g=c[p+64>>2]|0,m=(d[g+(m+-2)>>0]<<8|d[g+(m+-1)>>0])&e[p+20>>1],g=(Hp(p,l+m|0)|0)&65535,n=c[s+80>>2]|0,c[y>>2]=Cg(c[p+68>>2]|0)|0,Fp(r,v,l+(m+-4)|0,g+4|0,n,o,y),Ep(p,(e[q>>1]|0)+-1|0,g,y),g=c[y>>2]|0,(g|0)!=0):0)break;g=Gp(f)|0;c[y>>2]=g;if(!g){g=b[w>>1]|0;if(g<<16>>16>x<<16>>16){do{h=g+-1<<16>>16;b[w>>1]=h;g=c[f+(g<<16>>16<<2)+120>>2]|0;if(!g)g=h;else{xg(c[g+68>>2]|0);g=b[w>>1]|0}}while(g<<16>>16>x<<16>>16);g=Gp(f)|0;c[y>>2]=g;if(g)break}mm(f)|0;g=0}}else g=h}else g=h}else g=k}else g=1;while(0);i=z;return g|0}function Gm(f,g,k,l){f=f|0;g=g|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0.0,r=0.0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0;L=i;i=i+64|0;if((i|0)>=(j|0))ba();J=L+40|0;p=L+56|0;H=L;n=L+52|0;I=L+48|0;s=c[k+8>>2]|0;K=c[k>>2]|0;do if(!l){l=a[g>>0]|0;if(l<<24>>24>-1){l=l&255;c[p>>2]=l;m=1}else{m=im(g,p)|0;l=c[p>>2]|0}if(l>>>0>f>>>0){c[J>>2]=68267;c[J+4>>2]=10788;Zc(11,13600,J);a[k+7>>0]=11;m=0;break}else{G=l;p=l;l=0;n=m&255;o=15;break}}else{l=g+1|0;m=a[l>>0]|0;if(m<<24>>24>-1){l=m&255;c[n>>2]=l;o=1}else{o=im(l,n)|0;l=c[n>>2]|0}m=d[g>>0]|0;c[p>>2]=m;if(l>>>0>11)l=(l+-12|0)>>>1;else l=d[34336+l>>0]|0;G=m;p=l+m|0;l=1;n=(o&255)+1|0;s=s+40|0;o=15}while(0);do if((o|0)==15){w=H+12|0;x=K+4|0;y=H+10|0;z=K+12|0;A=H+32|0;B=H+8|0;D=H+16|0;F=k+7|0;E=k+4|0;v=p;u=n;a:while(1){n=e[s+8>>1]|0;do if(!(n&4)){if(n&8){o=a[g+u>>0]|0;p=o&255;c[I>>2]=p;if((o&255)>11){m=1;o=62;break a}if(!(o<<24>>24)){m=-1;o=62;break a}q=+h[s>>3];km(g+v|0,p,H)|0;if(o<<24>>24==7)r=+h[H>>3];else{m=H;r=+((c[m>>2]|0)>>>0)+4294967296.0*+(c[m+4>>2]|0)}if(r<q){m=-1;o=62;break a}if(r>q){m=1;o=62;break a}else break}do if(!(n&2)){o=g+u|0;t=a[o>>0]|0;p=t&255;if(!(n&16)){c[I>>2]=p;m=t<<24>>24!=0&1;break}if(t<<24>>24>-1)c[I>>2]=p;else{im(o,I)|0;p=c[I>>2]|0}if(!(p>>>0>11&(p&1|0)==0)){m=-1;o=62;break a}t=(p+-12|0)>>>1;if((t+v|0)>>>0>f>>>0){o=57;break a}o=c[s+12>>2]|0;m=Vv(g+v|0,c[s+16>>2]|0,(t|0)<(o|0)?t:o)|0;if(m){o=62;break a}m=t-o|0}else{p=g+u|0;o=a[p>>0]|0;if(o<<24>>24>-1){p=o&255;c[I>>2]=p}else{im(p,I)|0;p=c[I>>2]|0}if(p>>>0<12){m=-1;o=62;break a}if(!(p&1)){m=1;o=62;break a}n=(p+-12|0)>>>1;c[w>>2]=n;if((n+v|0)>>>0>f>>>0){o=46;break a}o=c[K+(l<<2)+20>>2]|0;if(o){a[y>>0]=a[x>>0]|0;c[A>>2]=c[z>>2];b[B>>1]=2;c[D>>2]=g+v;m=lp(H,s,o,F)|0;break}t=c[s+12>>2]|0;m=Vv(g+v|0,c[s+16>>2]|0,(n|0)<(t|0)?n:t)|0;if(m){o=62;break a}m=n-t|0}while(0);if(m){o=62;break a}}else{o=a[g+u>>0]|0;p=o&255;c[I>>2]=p;if((o&255)>11){m=1;o=62;break a}if(o<<24>>24==7){m=s;q=+((c[m>>2]|0)>>>0)+4294967296.0*+(c[m+4>>2]|0);km(g+v|0,p,H)|0;r=+h[H>>3];if(r<q){m=-1;o=62;break a}if(r>q){m=1;o=62;break a}else break}else if(!(o<<24>>24)){m=-1;o=62;break a}o=g+v|0;switch(p|0){case 1:case 0:{t=a[o>>0]|0;m=((t|0)<0)<<31>>31;break}case 4:{t=d[g+(v+1)>>0]<<16|d[o>>0]<<24|d[g+(v+2)>>0]<<8|d[g+(v+3)>>0];m=((t|0)<0)<<31>>31;break}case 3:{t=d[g+(v+1)>>0]<<8|a[o>>0]<<16|d[g+(v+2)>>0];m=((t|0)<0)<<31>>31;break}case 6:{m=d[g+(v+1)>>0]<<16|d[o>>0]<<24|d[g+(v+2)>>0]<<8|d[g+(v+3)>>0];t=d[g+(v+5)>>0]<<16|d[g+(v+4)>>0]<<24|d[g+(v+6)>>0]<<8|d[g+(v+7)>>0];break}case 2:{t=a[o>>0]<<8|d[g+(v+1)>>0];m=((t|0)<0)<<31>>31;break}case 5:{m=a[o>>0]<<8|d[g+(v+1)>>0];t=d[g+(v+3)>>0]<<16|d[g+(v+2)>>0]<<24|d[g+(v+4)>>0]<<8|d[g+(v+5)>>0];break}default:{m=0;t=p+-8|0}}n=s;o=c[n>>2]|0;n=c[n+4>>2]|0;if((m|0)<(n|0)|(m|0)==(n|0)&t>>>0<o>>>0){m=-1;o=62;break a}if((m|0)>(n|0)|(m|0)==(n|0)&t>>>0>o>>>0){m=1;o=62;break a}}while(0);l=l+1|0;s=s+40|0;if(p>>>0>11)n=(p+-12|0)>>>1;else n=d[34336+p>>0]|0;t=p;o=0;p=0;do{p=p+1|0;t=iw(t|0,o|0,7)|0;o=C}while(((t|0)!=0|(o|0)!=0)&(p|0)<9);v=n+v|0;u=p+u|0;if(u>>>0>=G>>>0){o=70;break}if(v>>>0>f>>>0?1:(l|0)>=(e[E>>1]|0)){o=70;break}}if((o|0)==46){c[J>>2]=68346;c[J+4>>2]=10788;Zc(11,13600,J);a[F>>0]=11;m=0;break}else if((o|0)==57){c[J>>2]=68375;c[J+4>>2]=10788;Zc(11,13600,J);a[F>>0]=11;m=0;break}else if((o|0)==62){m=(a[(c[K+16>>2]|0)+l>>0]|0)==0?m:0-m|0;break}else if((o|0)==70){m=a[k+6>>0]|0;break}}while(0);i=L;return m|0}function Hm(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;B=i;i=i+16|0;if((i|0)>=(j|0))ba();A=B;y=B+12|0;z=B+8|0;m=b[f+76>>1]|0;o=c[f+(m<<2)+120>>2]|0;x=c[f+4>>2]|0;if(!(b[f+44>>1]|0)){s=o+56|0;m=e[f+(m<<1)+78>>1]<<1;r=c[o+64>>2]|0;np(o,(c[s>>2]|0)+((d[r+m>>0]<<8|d[r+(m|1)>>0])&e[o+20>>1])|0,f+24|0);m=f+72|0;a[m>>0]=d[m>>0]|2;m=s}else m=o+56|0;s=c[f+32>>2]|0;q=f+40|0;n=e[q>>1]|0;r=x+36|0;if((s+n|0)>>>0<=((c[m>>2]|0)+(c[r>>2]|0)|0)>>>0){if(n>>>0>g>>>0){p=(h+g|0)>>>0>n>>>0?n-g|0:h;n=s+g|0;if(l&1){m=Cg(c[o+68>>2]|0)|0;if(!m){gw(n|0,k|0,p|0)|0;m=0}}else{gw(k|0,n|0,p|0)|0;m=0}k=k+p|0;t=0;h=h-p|0}else{t=g-n|0;m=0}a:do if((m|0)==0&(h|0)!=0){m=c[r>>2]|0;w=m+-4|0;n=e[q>>1]|0;q=d[s+(n+1)>>0]<<16|d[s+n>>0]<<24|d[s+(n+2)>>0]<<8|d[s+(n+3)>>0];c[y>>2]=q;s=f+72|0;do if((l|0)!=2?(a[s>>0]&4)==0:0){m=((m+-5+(c[f+36>>2]|0)-n|0)>>>0)/(w>>>0)|0;g=f+64|0;if((m|0)>(c[g>>2]|0)){o=f+20|0;n=ng(c[o>>2]|0,m<<3,0)|0;if(!n){m=7;break}c[g>>2]=m<<1;c[o>>2]=n}bw(c[f+20>>2]|0,0,m<<2|0)|0;a[s>>0]=d[s>>0]|4;m=0}else m=0;while(0);g=a[s>>0]|0;if((g&4)!=0?(v=(t>>>0)/(w>>>0)|0,u=c[(c[f+20>>2]|0)+(v<<2)>>2]|0,(u|0)!=0):0){c[y>>2]=u;p=(t>>>0)%(w>>>0)|0;o=u;q=v}else{p=t;o=q;q=0}if((m|0)==0&(o|0)!=0){u=l&1;v=u<<1^2;u=(u|0)==0;l=f+20|0;while(1){if(g&4)c[(c[l>>2]|0)+(q<<2)>>2]=o;if(p>>>0<w>>>0){r=(p+h|0)>>>0>w>>>0?w-p|0:h;m=vg(c[x>>2]|0,o,z,v)|0;if(!m){g=c[z>>2]|0;n=c[g+4>>2]|0;o=d[n+1>>0]<<16|d[n>>0]<<24|d[n+2>>0]<<8|d[n+3>>0];c[y>>2]=o;n=n+(p+4)|0;if(!u){m=Cg(g)|0;if(!m){gw(n|0,k|0,r|0)|0;m=0}}else{gw(k|0,n|0,r|0)|0;m=0}if(!g)p=0;else{xg(g);p=0}}h=h-r|0;k=k+r|0;q=q+1|0}else{g=q+1|0;m=c[(c[l>>2]|0)+(g<<2)>>2]|0;if(!m){m=Ip(x,o,0,y)|0;o=c[y>>2]|0}else{c[y>>2]=m;o=m;m=0}p=p-w|0;q=g}if(!((m|0)==0&(h|0)!=0&(o|0)!=0))break a;g=a[s>>0]|0}}}while(0);if((m|0)==0&(h|0)!=0){c[A>>2]=57357;c[A+4>>2]=10788;Zc(11,13600,A);m=11}}else{c[A>>2]=57202;c[A+4>>2]=10788;Zc(11,13600,A);m=11}i=B;return m|0}function Im(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[a>>2]|0;d=a+44|0;ig(e,c[d>>2]|0);a=b+8|0;c[d>>2]=gh(e,c[a>>2]|0)|0;Sc(c[a>>2]|0);c[a>>2]=0;return}function Jm(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();k=r+4|0;p=r;q=e+12|0;if(!(c[q>>2]|0)){h=e+8|0;g=Bm(c[(c[h>>2]|0)+28>>2]|0,0,0,k)|0;c[q>>2]=g;if(!(c[k>>2]|0))g=7;else{b[g+4>>1]=b[(c[(c[h>>2]|0)+28>>2]|0)+6>>1]|0;a[g+7>>0]=0;l=4}}else l=4;if((l|0)==4){o=mg(256,0)|0;if(!o)g=7;else{bw(o|0,0,256)|0;g=c[f>>2]|0;c[p>>2]=g;if(g){n=f+4|0;while(1){h=c[n>>2]|0;if(h)if((g|0)==(h|0))m=0;else m=h+(c[g+4>>2]|0)|0;else m=c[g+4>>2]|0;c[g+4>>2]=0;l=c[o>>2]|0;k=c[p>>2]|0;if(!l)l=o;else{h=o;g=0;do{Jp(e,k,l,p);c[h>>2]=0;g=g+1|0;h=o+(g<<2)|0;l=c[h>>2]|0;k=c[p>>2]|0}while((l|0)!=0);l=h}c[l>>2]=k;c[p>>2]=m;if(!m)break;else g=m}}c[p>>2]=0;g=0;h=0;do{Jp(e,g,c[o+(h<<2)>>2]|0,p);h=h+1|0;g=c[p>>2]|0}while((h|0)!=64);c[f>>2]=g;Sc(o);g=d[(c[q>>2]|0)+7>>0]|0}}i=r;return g|0}function Km(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+64|0;if((i|0)>=(j|0))ba();m=o+40|0;n=o;a[b+56>>0]=1;g=b+64|0;l=b+36|0;k=b+72|0;h=c[(c[k>>2]|0)+24>>2]|0;f=n+0|0;e=f+40|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(e|0));f=b+96|0;if(!((c[f>>2]|0)==0?(d=Kp(h,f)|0,(d|0)!=0):0)){d=Jm(g,l)|0;if(!d){g=b+104|0;d=g;Lp(c[f>>2]|0,n,c[(c[k>>2]|0)+12>>2]|0,c[d>>2]|0,c[d+4>>2]|0);d=b+92|0;c[d>>2]=(c[d>>2]|0)+1;d=c[b+44>>2]|0;Mp(n,m,lm(m,d,((d|0)<0)<<31>>31)|0);d=c[l>>2]|0;if(d){f=b+40|0;do{e=d;d=c[d+4>>2]|0;b=c[e>>2]|0;Mp(n,m,lm(m,b,((b|0)<0)<<31>>31)|0);Mp(n,e+8|0,c[e>>2]|0);if(!(c[f>>2]|0))Sc(e)}while((d|0)!=0)}c[l>>2]=0;d=Np(n,g)|0}}i=o;return d|0}function Lm(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();p=r;g=d;k=c[g>>2]|0;g=c[g+4>>2]|0;q=Mm(b)|0;c[e>>2]=q;h=(q|0)==0;f=h?7:0;h=h^1;if((b|0)>0&h){o=q+12|0;n=a+32|0;m=0;do{h=c[o>>2]|0;l=h+(m*56|0)|0;f=Op(a,l,n,k,g)|0;if(!f){f=Pp(l,p)|0;g=l;k=p;g=fw(c[k>>2]|0,c[k+4>>2]|0,c[g>>2]|0,c[g+4>>2]|0)|0;k=h+(m*56|0)+8|0;h=k;c[h>>2]=g;c[h+4>>2]=C;if(!f)f=Qp(l)|0}else k=h+(m*56|0)+8|0;g=k;k=c[g>>2]|0;g=c[g+4>>2]|0;m=m+1|0;h=(f|0)==0}while((m|0)<(b|0)&h)}if(!h){Pm(q);c[e>>2]=0}b=d;c[b>>2]=k;c[b+4>>2]=g;i=r;return f|0}function Mm(a){a=a|0;var b=0,d=0;b=2;while(1)if((b|0)<(a|0))b=b<<1;else{d=b;break}b=c[2252]|0;if((b|0)!=0?(hc[b&127](100)|0)!=0:0)b=0;else{a=(d*60|0)+16|0;b=mg(a,((a|0)<0)<<31>>31)|0;if(!b)b=0;else{bw(b|0,0,a|0)|0;c[b>>2]=d;c[b+4>>2]=0;a=b+16|0;c[b+12>>2]=a;c[b+8>>2]=a+(d*56|0)}}return b|0}function Nm(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=c[2252]|0;if((f|0)!=0?(hc[f&127](100)|0)!=0:0){f=0;i=6}else i=3;do if((i|0)==3){f=mg(64,0)|0;if(!f){i=6;break}else{g=f+0|0;h=g+64|0;do{a[g>>0]=0;g=g+1|0}while((g|0)<(h|0));c[e>>2]=f;c[f+4>>2]=d;c[f>>2]=b;h=c[b+8>>2]|0;g=(c[h+8>>2]|0)+9|0;h=(c[h+4>>2]|0)/2|0;h=(g|0)>(h|0)?g:h;c[f+16>>2]=h;f=b+56|0;g=f;g=fw(h|0,((h|0)<0)<<31>>31|0,c[g>>2]|0,c[g+4>>2]|0)|0;c[f>>2]=g;c[f+4>>2]=C;f=0;break}}while(0);if((i|0)==6){c[e>>2]=f;Pm(d);f=7}return f|0}function Om(a){a=a|0;if(a){Pm(c[a+4>>2]|0);Sc(a)}return}function Pm(a){a=a|0;var b=0,d=0;if((a|0)!=0?(c[a>>2]|0)>0:0){b=a+12|0;d=0;do{Rp((c[b>>2]|0)+(d*56|0)|0);d=d+1|0}while((d|0)<(c[a>>2]|0))}Sc(a);return}function Qm(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;n=c[b>>2]|0;r=b+4|0;c[r>>2]=a;a:do if((n|0)>0){o=b+12|0;p=0;do{l=c[o>>2]|0;j=l+(p*56|0)|0;l=c[l+(p*56|0)+48>>2]|0;if(l){m=c[l>>2]|0;i=c[(c[m+8>>2]|0)+24>>2]|0;e=Qm(m,c[l+4>>2]|0)|0;if(e)break a;k=c[l+16>>2]|0;g=m+48|0;h=c[g>>2]|0;f=m+56|0;if(!h){e=Kp(i,g)|0;i=f;c[i>>2]=0;c[i+4>>2]=0;if(e)break a;h=c[g>>2]|0;g=0;f=0}else{g=c[f>>2]|0;f=c[f+4>>2]|0}c[l+48>>2]=h;l=l+8|0;c[l>>2]=g;c[l+4>>2]=f;l=fw(g|0,f|0,k|0,((k|0)<0)<<31>>31|0)|0;e=m+56|0;c[e>>2]=l;c[e+4>>2]=C;e=Qp(j)|0;if(e)break a}p=p+1|0}while((p|0)<(n|0));e=c[b>>2]|0;q=12}else{e=n;q=12}while(0);if((q|0)==12){f=e+-1|0;b:do if((f|0)>0){j=b+12|0;k=b+8|0;h=e;g=e;i=f;while(1){e=(h|0)/2|0;if((g|0)>(e|0)){g=i-e<<1;e=g;g=g|1}else{g=i<<1;n=c[k>>2]|0;e=c[n+(g<<2)>>2]|0;g=c[n+((g|1)<<2)>>2]|0}f=c[j>>2]|0;if(c[f+(e*56|0)+24>>2]|0){if(c[f+(g*56|0)+24>>2]|0){n=(Sp(c[r>>2]|0,c[f+(e*56|0)+32>>2]|0,c[f+(e*56|0)+20>>2]|0,c[f+(g*56|0)+32>>2]|0,c[f+(g*56|0)+20>>2]|0)|0)<1;e=n?e:g}}else e=g;c[(c[k>>2]|0)+(i<<2)>>2]=e;e=i+-1|0;if((e|0)<=0)break b;g=i;h=c[b>>2]|0;i=e}}while(0);e=d[(c[a+12>>2]|0)+7>>0]|0}return e|0}function Rm(f){f=f|0;var g=0,h=0,i=0,j=0,k=0;i=f+76|0;do{g=b[i>>1]|0;h=c[f+(g<<2)+120>>2]|0;if(a[h+5>>0]|0){g=0;break}j=c[h+56>>2]|0;g=e[f+(g<<1)+78>>1]<<1;k=c[h+64>>2]|0;g=(d[k+g>>0]<<8|d[k+(g|1)>>0])&e[h+20>>1];g=nm(f,d[j+(g+1)>>0]<<16|d[j+g>>0]<<24|d[j+(g+2)>>0]<<8|d[j+(g+3)>>0])|0}while((g|0)==0);return g|0}function Sm(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;q=a+8|0;g=c[(c[q>>2]|0)+4>>2]|0;u=c[a+4>>2]|0;s=a+12|0;e=Qp((c[s>>2]|0)+(g*56|0)|0)|0;if(!e){e=c[s>>2]|0;f=g|1;a=(c[a>>2]|0)+g|0;a:do if((a|0)>1){m=e;n=a;i=c[e+(f*56|0)+32>>2]|0;o=e+((g&65534)*56|0)|0;g=e+(f*56|0)|0;while(1){p=o+24|0;j=o;k=o+32|0;l=o+20|0;e=m;h=n;a=i;while(1){f=h;h=(h|0)/2|0;if(!(c[p>>2]|0)){i=a;break}if(((c[g+24>>2]|0)!=0?(r=Sp(u,c[k>>2]|0,c[l>>2]|0,a,c[g+20>>2]|0)|0,(r|0)>=0):0)?!((r|0)==0&o>>>0<g>>>0):0){t=10;break}i=c[s>>2]|0;a=c[q>>2]|0;c[a+(h<<2)>>2]=(j-i|0)/56|0;g=c[a+((h^1)<<2)>>2]|0;if((f|0)<=3){e=i;break a}else{e=i;a=c[i+(g*56|0)+32>>2]|0;g=i+(g*56|0)|0}}if((t|0)==10){t=0;e=c[s>>2]|0;i=(c[p>>2]|0)==0?a:0}a=c[q>>2]|0;c[a+(h<<2)>>2]=(g-e|0)/56|0;if((f|0)>3){m=e;n=h;o=e+((c[a+((h^1)<<2)>>2]|0)*56|0)|0}else break}}else a=c[q>>2]|0;while(0);c[b>>2]=(c[e+((c[a+4>>2]|0)*56|0)+24>>2]|0)==0&1;e=d[(c[u+12>>2]|0)+7>>0]|0}return e|0}function Tm(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=b+4|0;g=c[f>>2]|0;c[g+4>>2]=c[b>>2];b=Hn(g,d,0)|0;if(!b){b=c[(c[f>>2]|0)+8>>2]|0;if(b)do{if(a[b+72>>0]&16)a[b+73>>0]=0;b=c[b+8>>2]|0}while((b|0)!=0);b=Tp(g,d,0,e)|0}return b|0}function Um(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;z=i;i=i+32|0;if((i|0)>=(j|0))ba();q=z;y=z+16|0;x=z+12|0;w=z+8|0;c[y>>2]=0;m=c[f+12>>2]|0;if(!g){g=Up(f,h)|0;c[x>>2]=g}else{c[x>>2]=g;r=(c[g+68>>2]|0)+26|0;b[r>>1]=(b[r>>1]|0)+1<<16>>16}l=Cg(c[m+68>>2]|0)|0;c[w>>2]=l;do if(!l){r=m+56|0;p=c[r>>2]|0;A=p+36|0;l=p+37|0;m=p+38|0;p=p+39|0;n=d[l>>0]<<16|d[A>>0]<<24|d[m>>0]<<8|d[p>>0];o=n+1|0;a[A>>0]=o>>>24;a[l>>0]=o>>>16;a[m>>0]=o>>>8;a[p>>0]=o;p=f+22|0;if(b[p>>1]&4){if(!g){m=$k(f,h,x,0)|0;c[w>>2]=m;if(m){k=m;break}g=c[x>>2]|0}m=Cg(c[g+68>>2]|0)|0;c[w>>2]=m;if(m){k=m;break}bw(c[g+56>>2]|0,0,c[(c[g+52>>2]|0)+32>>2]|0)|0}if((a[f+17>>0]|0)!=0?(vp(f,h,2,0,w),k=c[w>>2]|0,(k|0)!=0):0)break;if(n){l=c[r>>2]|0;l=d[l+33>>0]<<16|d[l+32>>0]<<24|d[l+34>>0]<<8|d[l+35>>0];k=$k(f,l,y,0)|0;c[w>>2]=k;if(k)break;k=c[y>>2]|0;o=k+56|0;n=c[o>>2]|0;n=d[n+5>>0]<<16|d[n+4>>0]<<24|d[n+6>>0]<<8|d[n+7>>0];m=(c[f+36>>2]|0)>>>2;if(n>>>0>(m+-2|0)>>>0){c[q>>2]=58627;c[q+4>>2]=10788;Zc(11,13600,q);c[w>>2]=11;k=11;break}if(n>>>0<(m+-8|0)>>>0){k=Cg(c[k+68>>2]|0)|0;c[w>>2]=k;if(k)break;r=c[o>>2]|0;q=n+1|0;a[r+4>>0]=q>>>24;a[r+5>>0]=q>>>16;a[r+6>>0]=q>>>8;a[r+7>>0]=q;r=n<<2;q=c[o>>2]|0;a[q+(r+8)>>0]=h>>>24;a[q+(r+9)>>0]=h>>>16;a[q+(r+10)>>0]=h>>>8;a[q+(r+11)>>0]=h;if((((g|0)!=0?(b[p>>1]&4)==0:0)?(s=c[g+68>>2]|0,t=s+24|0,u=e[t>>1]|0,(u&2|0)!=0):0)?(c[(c[s+16>>2]|0)+96>>2]|0)==0:0)b[t>>1]=u|32;l=f+60|0;k=c[l>>2]|0;do if(!k){g=c[f+44>>2]|0;k=mg(512,0)|0;if(!k){c[l>>2]=0;k=7;break}else{bw(k|0,0,512)|0;c[k>>2]=g;c[l>>2]=k;v=28;break}}else v=28;while(0);if((v|0)==28)if((c[k>>2]|0)>>>0<h>>>0)k=0;else k=Zh(k,h)|0;c[w>>2]=k;break}}else l=0;if(!g){k=$k(f,h,x,0)|0;c[w>>2]=k;if(k)break;g=c[x>>2]|0}k=Cg(c[g+68>>2]|0)|0;c[w>>2]=k;if(!k){k=g+56|0;s=c[k>>2]|0;a[s>>0]=l>>>24;a[s+1>>0]=l>>>16;a[s+2>>0]=l>>>8;a[s+3>>0]=l;k=(c[k>>2]|0)+4|0;a[k>>0]=0;a[k+1>>0]=0;a[k+2>>0]=0;a[k+3>>0]=0;k=c[r>>2]|0;a[k+32>>0]=h>>>24;a[k+33>>0]=h>>>16;a[k+34>>0]=h>>>8;a[k+35>>0]=h;k=0}}else k=l;while(0);g=c[x>>2]|0;if(g){a[g>>0]=0;xg(c[g+68>>2]|0)}g=c[y>>2]|0;if(g)xg(c[g+68>>2]|0);i=z;return k|0}function Vm(f,g,h,k,l,m){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;P=i;i=i+48|0;if((i|0)>=(j|0))ba();M=P+24|0;D=P;w=P+36|0;N=P+32|0;t=g+72|0;L=c[t>>2]|0;u=c[f>>2]|0;r=c[g+68>>2]|0;s=u+15|0;if((a[s>>0]|0)!=0?(n=Cg(r)|0,(n|0)!=0):0)O=20;else O=3;a:do if((O|0)==3){o=r+24|0;q=b[o>>1]|0;if((q&2)!=0?(Qo(r)|0)!=0:0){n=Ro(r)|0;if(n){O=20;break}q=b[o>>1]|0}if((q&4)==0|(m|0)!=0)p=0;else p=c[r+20>>2]|0;b[o>>1]=q&65531;A=u+204|0;m=Yb[c[8744+132>>2]&63](c[(c[A>>2]|0)+40>>2]|0,l,0)|0;m=el(c[A>>2]|0,l,m)|0;do if(m){b[o>>1]=e[o>>1]|e[m+24>>1]&4;if(!(a[s>>0]|0)){il(m);break}else{Vp(m,(c[u+24>>2]|0)+1|0);break}}while(0);q=c[r+20>>2]|0;Vp(r,l);Po(r);if(a[s>>0]|0){Vp(m,q);xg(m)}do if(p){n=vg(u,p,M,0)|0;if(!n){A=c[M>>2]|0;z=A+24|0;b[z>>1]=e[z>>1]|4;Po(A);xg(A);break}if(p>>>0>(c[u+28>>2]|0)>>>0){O=20;break a}_h(c[u+56>>2]|0,p,c[u+200>>2]|0);O=20;break a}while(0);c[N>>2]=0;c[t>>2]=l;if(h<<24>>24==1|h<<24>>24==5){n=Wp(g)|0;c[N>>2]=n;if(!n)O=25;else break}else{m=c[g+56>>2]|0;m=d[m+1>>0]<<16|d[m>>0]<<24|d[m+2>>0]<<8|d[m+3>>0];if(m){vp(f,m,4,l,N);n=c[N>>2]|0;if(!n)O=25;else break}}if((O|0)==25?h<<24>>24==1:0){n=0;break}n=$k(f,k,w,0)|0;c[N>>2]=n;if(!n){z=c[w>>2]|0;A=z+68|0;n=Cg(c[A>>2]|0)|0;c[N>>2]=n;if(n){if(!z)break;xg(c[A>>2]|0);break}b:do if(h<<24>>24==4){n=c[z+56>>2]|0;o=n+1|0;p=n+2|0;m=n+3|0;if((d[o>>0]<<16|d[n>>0]<<24|d[p>>0]<<8|d[m>>0]|0)==(L|0)){a[n>>0]=l>>>24;a[o>>0]=l>>>16;a[p>>0]=l>>>8;a[m>>0]=l;n=0;break}else{c[M>>2]=56060;c[M+4>>2]=10788;Zc(11,13600,M);n=11;break}}else{x=a[z>>0]|0;Xp(z)|0;w=b[z+18>>1]|0;y=w&65535;c:do if(w<<16>>16){g=z+56|0;u=z+20|0;r=z+64|0;v=h<<24>>24==3;w=D+18|0;m=0;while(1){t=c[g>>2]|0;s=m<<1;q=c[r>>2]|0;s=(d[q+s>>0]<<8|d[q+(s|1)>>0])&e[u>>1];q=t+s|0;if(v){np(z,q,D);q=b[w>>1]|0;if((q<<16>>16!=0?(B=(q&65535)+s|0,C=t+(B+3)|0,C>>>0<=((c[g>>2]|0)+(e[u>>1]|0)|0)>>>0):0)?(E=t+B|0,F=t+(B+1)|0,G=t+(B+2)|0,(d[F>>0]<<16|d[E>>0]<<24|d[G>>0]<<8|d[C>>0]|0)==(L|0)):0){q=C;n=E;o=F;p=G;O=40;break}}else{n=t+(s+1)|0;o=t+(s+2)|0;p=t+(s+3)|0;if((d[n>>0]<<16|d[q>>0]<<24|d[o>>0]<<8|d[p>>0]|0)==(L|0)){O=42;break}}m=m+1|0;if((m|0)>=(y|0))break c}if((O|0)==40){a[n>>0]=l>>>24;a[o>>0]=l>>>16;a[p>>0]=l>>>8;a[q>>0]=l;break}else if((O|0)==42){a[q>>0]=l>>>24;a[n>>0]=l>>>16;a[o>>0]=l>>>8;a[p>>0]=l;break}}else m=0;while(0);do if((m|0)==(y|0)){if(h<<24>>24==5?(K=d[z+6>>0]|0,G=c[z+56>>2]|0,H=G+(K+8)|0,I=G+(K+9)|0,J=G+(K+10)|0,K=G+(K+11)|0,(d[I>>0]<<16|d[H>>0]<<24|d[J>>0]<<8|d[K>>0]|0)==(L|0)):0){a[H>>0]=l>>>24;a[I>>0]=l>>>16;a[J>>0]=l>>>8;a[K>>0]=l;break}c[M>>2]=56094;c[M+4>>2]=10788;Zc(11,13600,M);n=11;break b}while(0);a[z>>0]=x;n=0}while(0);c[N>>2]=n;if(z)xg(c[A>>2]|0);if(!n){vp(f,l,h,k,N);n=c[N>>2]|0}}}while(0);if((O|0)==20)c[N>>2]=n;i=P;return n|0}function Wm(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;j=e+20|0;Pm(c[j>>2]|0);c[j>>2]=0;j=e+59|0;if(a[j>>0]|0){k=0;do{g=e+(k<<6)+76|0;ig(b,c[g>>2]|0);c[g>>2]=0;g=e+(k<<6)+80|0;h=c[g>>2]|0;if(h)do{i=h;h=c[h+4>>2]|0;if(i)Sc(i)}while((h|0)!=0);c[g>>2]=0;h=e+(k<<6)+96|0;g=c[h>>2]|0;if(g){i=c[g>>2]|0;if(i){hc[c[i+4>>2]&127](g)|0;c[g>>2]=0}Sc(g);c[h>>2]=0;g=e+(k<<6)+104|0;c[g>>2]=0;c[g+4>>2]=0}i=e+(k<<6)+112|0;h=c[i>>2]|0;if(h){g=c[h>>2]|0;if(g){hc[c[g+4>>2]&127](h)|0;c[h>>2]=0}Sc(h);c[i>>2]=0;g=e+(k<<6)+120|0;c[g>>2]=0;c[g+4>>2]=0}k=k+1|0}while((k|0)<(d[j>>0]|0))}h=e+36|0;if((c[e+40>>2]|0)==0?(f=c[h>>2]|0,(f|0)!=0):0)do{g=f;f=c[f+4>>2]|0;if(g)Sc(g)}while((f|0)!=0);c[h>>2]=0;c[e+44>>2]=0;a[e+56>>0]=0;c[e+48>>2]=0;c[e+8>>2]=0;f=e+32|0;ig(b,c[f>>2]|0);c[f>>2]=0;return}function Xm(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();k=r+4|0;o=r;p=c[d>>2]|0;m=c[d+8>>2]|0;n=c[p+16>>2]|0;l=(c[n+(m<<4)+12>>2]|0)+78|0;b[l>>1]=e[l>>1]&65531;l=p+65|0;do if(!(a[l>>0]|0))if(g){q=g+4|0;f=c[q>>2]|0;if(!f){Yp(d,c[g>>2]|0,0);h=0;break}h=g+8|0;s=c[h>>2]|0;if((s|0)!=0?(a[s>>0]|0)!=0:0){n=p+144|0;a[n>>0]=m;c[k>>2]=0;zn(f,k)|0;f=c[h>>2]|0;c[p+140>>2]=c[k>>2];q=p+146|0;a[q>>0]=0;eh(p,f,-1,0,0,o,0)|0;f=c[p+52>>2]|0;a[n>>0]=0;do if((f|0)!=0?(a[q>>0]|0)==0:0){c[d+12>>2]=f;if((f|0)==7){a[l>>0]=1;break}else if((f|0)==9)break;if((f&255|0)!=6){q=c[g>>2]|0;Yp(d,q,Oe(p)|0)}}while(0);id(c[o>>2]|0)|0;h=0;break}f=c[g>>2]|0;if(!f){Yp(d,0,0);h=0;break}f=Zp(p,f,c[n+(m<<4)>>2]|0)|0;if((f|0)!=0?(zn(c[q>>2]|0,f+40|0)|0)==0:0){Yp(d,c[g>>2]|0,13528);h=0}else h=0}else h=0;else{Yp(d,c[g>>2]|0,0);h=1}while(0);i=r;return h|0}function Ym(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();k=m;l=m+8|0;h=b+16|0;f=c[h>>2]|0;g=c[(c[f+(d<<4)+12>>2]|0)+32>>2]|0;if(g){f=g;do{_p(c[f+8>>2]|0);f=c[f>>2]|0}while((f|0)!=0);f=c[h>>2]|0}c[l>>2]=b;f=c[f+(d<<4)>>2]|0;c[l+4>>2]=f;do if(!(Wh(b,13384,f)|0))e=1;else{c[k>>2]=f;f=qh(b,13400,k)|0;if((f|0)!=0?(e=Me(b,f,23,l,0)|0,ig(b,f),(e|0)!=7):0)break;a[b+65>>0]=1;e=7}while(0);i=m;return e|0}function Zm(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;j=c[b+12>>2]|0;if(!j){h=b+4|0;g=b+8|0;i=0}else{h=a[e>>0]|0;if(!(h<<24>>24))h=0;else{g=e;i=h;h=0;do{g=g+1|0;h=h<<3^h^(d[9328+(i&255)>>0]|0);i=a[g>>0]|0}while(i<<24>>24!=0)}i=(h>>>0)%((c[b>>2]|0)>>>0)|0;h=j+(i<<3)|0;g=j+(i<<3)+4|0}h=c[h>>2]|0;g=c[g>>2]|0;c[f>>2]=i;a:do if(!h)g=0;else while(1){h=h+-1|0;if(!($c(c[g+12>>2]|0,e)|0))break a;if(!h){g=0;break}else g=c[g>>2]|0}while(0);return g|0}function _m(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))ba();t=u;s=u+12|0;a:do if((g|0)>0){q=b+16|0;r=b+4|0;p=(e|0)==0;h=f;e=g;while(1){m=e+-1|0;if(!(c[q>>2]|0))break a;if((h|0)<1){h=e;e=5;break}if(aq(b,h)|0)break a;if(vg(c[r>>2]|0,h,s,0)|0){e=8;break}n=c[s>>2]|0;o=c[n+4>>2]|0;do if(p)if((m|0)>0?(a[(c[b>>2]|0)+17>>0]|0)!=0:0){$m(b,d[o+1>>0]<<16|d[o>>0]<<24|d[o+2>>0]<<8|d[o+3>>0],4,h);e=m}else e=m;else{l=d[o+5>>0]<<16|d[o+4>>0]<<24|d[o+6>>0]<<8|d[o+7>>0];k=c[b>>2]|0;if(a[k+17>>0]|0){$m(b,h,2,0);k=c[b>>2]|0}if((l|0)>(((c[k+36>>2]|0)/4|0)+-2|0)){c[t>>2]=h;bn(b,44640,t);e=e+-2|0;break}b:do if((l|0)>0){e=0;while(1){h=e<<2;h=d[o+(h+9)>>0]<<16|d[o+(h+8)>>0]<<24|d[o+(h+10)>>0]<<8|d[o+(h+11)>>0];if(a[k+17>>0]|0)$m(b,h,2,0);aq(b,h)|0;e=e+1|0;if((e|0)==(l|0))break b;k=c[b>>2]|0}}while(0);e=m-l|0}while(0);h=d[o+1>>0]<<16|d[o>>0]<<24|d[o+2>>0]<<8|d[o+3>>0];if(n)xg(n);if((e|0)<=0)break a}if((e|0)==5){c[t>>2]=h;c[t+4>>2]=g;c[t+8>>2]=f;bn(b,44552,t);break}else if((e|0)==8){c[t>>2]=h;bn(b,44616,t);break}}while(0);i=u;return}function $m(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+32|0;if((i|0)>=(j|0))ba();l=n;h=n+24|0;k=n+20|0;g=dp(c[b>>2]|0,d,h,k)|0;if((g|0)==7|(g|0)==3082){c[b+24>>2]=1;m=3}else if(!g){h=a[h>>0]|0;g=c[k>>2]|0;if(!((g|0)==(f|0)?h<<24>>24==e<<24>>24:0)){c[l>>2]=d;c[l+4>>2]=e&255;c[l+8>>2]=f;c[l+12>>2]=h&255;c[l+16>>2]=g;bn(b,44496,l)}}else m=3;if((m|0)==3){c[l>>2]=d;bn(b,44464,l)}i=n;return}function an(f,g,h,k){f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;Z=i;i=i+64|0;if((i|0)>=(j|0))ba();S=Z+40|0;o=Z+56|0;N=Z+32|0;O=Z+24|0;K=Z;X=N;c[X>>2]=0;c[X+4>>2]=0;X=O;c[X>>2]=0;c[X+4>>2]=0;X=f+28|0;Y=c[X>>2]|0;T=f+32|0;U=c[T>>2]|0;V=f+36|0;W=c[V>>2]|0;P=c[f>>2]|0;J=P+36|0;Q=c[J>>2]|0;if((g|0)!=0?(aq(f,g)|0)==0:0){c[X>>2]=43768;c[T>>2]=g;p=$k(P,g,o,0)|0;do if(!p){R=c[o>>2]|0;a[R>>0]=0;p=Xp(R)|0;if(p){c[S>>2]=p;bn(f,43824,S);if(!R){l=-1;break}xg(c[R+68>>2]|0);l=-1;break}w=f+16|0;L=R+18|0;p=b[L>>1]|0;a:do if(!(p<<16>>16)){q=R+5|0;p=0;l=0}else{x=R+56|0;y=R+20|0;z=R+64|0;A=K+12|0;B=R+2|0;C=K+16|0;D=Q+-5|0;E=Q+-4|0;F=P+17|0;G=R+5|0;t=0;u=0;while(1){if(!(c[w>>2]|0)){q=G;l=t;break a}c[X>>2]=43864;c[T>>2]=g;c[V>>2]=u;o=c[x>>2]|0;p=u<<1;q=c[z>>2]|0;p=(d[q+p>>0]<<8|d[q+(p|1)>>0])&e[y>>1];q=o+p|0;np(R,q,K);r=c[A>>2]|0;if(a[B>>0]|0){l=K;v=c[l>>2]|0;l=c[l+4>>2]|0;if(u){n=O;m=c[n>>2]|0;n=c[n+4>>2]|0;if(!((l|0)>(n|0)|(l|0)==(n|0)&v>>>0>m>>>0)){s=S;c[s>>2]=v;c[s+4>>2]=l;s=S+8|0;c[s>>2]=m;c[s+4>>2]=n;bn(f,43896,S)}}else{m=O;c[m>>2]=v;c[m+4>>2]=l;m=N;c[m>>2]=v;c[m+4>>2]=l}m=O;c[m>>2]=v;c[m+4>>2]=l}v=c[C>>2]|0;l=v&65535;if(r>>>0>l>>>0?(H=(v>>>16)+p|0,I=o+H|0,I>>>0<=((c[x>>2]|0)+(c[J>>2]|0)|0)>>>0):0){v=d[o+(H+1)>>0]<<16|d[I>>0]<<24|d[o+(H+2)>>0]<<8|d[o+(H+3)>>0];if(a[F>>0]|0)$m(f,v,3,g);_m(f,0,v,((D+r-l|0)>>>0)/(E>>>0)|0)}if(!(a[G>>0]|0)){s=d[o+(p+1)>>0]<<16|d[q>>0]<<24|d[o+(p+2)>>0]<<8|d[o+(p+3)>>0];if(a[F>>0]|0)$m(f,s,5,g);l=an(f,s,N,(u|0)==0?0:O)|0;if(!((u|0)<1|(l|0)==(t|0)))bn(f,43944,S)}else l=t;u=u+1|0;p=b[L>>1]|0;if((u|0)>=(p&65535|0)){q=G;break}else t=l}}while(0);if(!(a[q>>0]|0)){o=d[R+6>>0]|0;G=c[R+56>>2]|0;o=d[G+(o+9)>>0]<<16|d[G+(o+8)>>0]<<24|d[G+(o+10)>>0]<<8|d[G+(o+11)>>0];c[X>>2]=43976;c[T>>2]=g;if(a[P+17>>0]|0){$m(f,o,5,g);p=b[L>>1]|0}an(f,o,0,p<<16>>16!=0?O:0)|0;G=a[q>>0]|0;c[X>>2]=43768;c[T>>2]=g;if(G<<24>>24)M=34}else{c[X>>2]=43768;c[T>>2]=g;M=34}do if((M|0)==34?(a[R+2>>0]|0)!=0:0){o=(k|0)!=0;if(!h){if(!o)break;o=N;p=c[o>>2]|0;o=c[o+4>>2]|0;m=k;n=c[m>>2]|0;m=c[m+4>>2]|0;if((o|0)>(m|0)|(o|0)==(m|0)&p>>>0>n>>>0)break;G=S;c[G>>2]=p;c[G+4>>2]=o;G=S+8|0;c[G>>2]=n;c[G+4>>2]=m;bn(f,44200,S);break}if(!o){p=O;o=c[p>>2]|0;p=c[p+4>>2]|0;m=h;n=c[m>>2]|0;m=c[m+4>>2]|0;if(!((p|0)>(m|0)|(p|0)==(m|0)&o>>>0>n>>>0))break;G=S;c[G>>2]=o;c[G+4>>2]=p;G=S+8|0;c[G>>2]=n;c[G+4>>2]=m;bn(f,44008,S);break}o=N;p=c[o>>2]|0;o=c[o+4>>2]|0;m=h;n=c[m>>2]|0;m=c[m+4>>2]|0;if(!((o|0)>(m|0)|(o|0)==(m|0)&p>>>0>n>>>0)){G=S;c[G>>2]=p;c[G+4>>2]=o;G=S+8|0;c[G>>2]=n;c[G+4>>2]=m;bn(f,44072,S)}n=O;m=c[n>>2]|0;n=c[n+4>>2]|0;o=k;p=c[o>>2]|0;o=c[o+4>>2]|0;if((n|0)>(o|0)|(n|0)==(o|0)&m>>>0>p>>>0){G=S;c[G>>2]=m;c[G+4>>2]=n;n=S+8|0;c[n>>2]=p;c[n+4>>2]=o;bn(f,44136,S);n=O;m=c[n>>2]|0;n=c[n+4>>2]|0}G=h;c[G>>2]=m;c[G+4>>2]=n}while(0);t=c[R+56>>2]|0;u=d[R+6>>0]|0;v=Co(c[P+32>>2]|0)|0;c[X>>2]=0;if(v){s=((d[t+(u+5)>>0]<<8|d[t+(u+6)>>0])+65535&65535)+1|0;bw(v+s|0,0,Q-s|0)|0;bw(v|0,1,s|0)|0;s=d[t+(u+3)>>0]<<8|d[t+(u+4)>>0];n=u+12-(d[q>>0]<<2)|0;if(s){m=Q+-4|0;r=0;do{q=n+(r<<1)|0;q=d[t+q>>0]<<8|d[t+(q+1)>>0];if((q|0)>(m|0))o=65536;else o=(Hp(R,t+q|0)|0)&65535;p=o+q|0;if((p|0)<=(Q|0)){if(o)do{p=p+-1|0;G=v+p|0;a[G>>0]=(a[G>>0]|0)+1<<24>>24}while((p|0)>(q|0))}else{c[X>>2]=0;c[S>>2]=r;c[S+4>>2]=g;bn(f,44264,S)}r=r+1|0}while((r|0)<(s|0))}m=d[t+(u+1)>>0]<<8|d[t+(u+2)>>0];if(m)do{n=d[t+(m+2)>>0]<<8|d[t+(m+3)>>0];if(n){n=n+m|0;do{n=n+-1|0;G=v+n|0;a[G>>0]=(a[G>>0]|0)+1<<24>>24}while((n|0)>(m|0))}m=d[t+m>>0]<<8|d[t+(m+1)>>0]}while((m|0)!=0);b:do if((Q|0)>0){n=0;m=0;while(1){o=a[v+m>>0]|0;if(o<<24>>24){if(o<<24>>24>1)break}else n=n+1|0;m=m+1|0;if((m|0)>=(Q|0))break b}c[S>>2]=m;c[S+4>>2]=g;bn(f,44312,S)}else n=0;while(0);m=d[t+(u+7)>>0]|0;if((n|0)!=(m|0)){c[S>>2]=n;c[S+4>>2]=m;c[S+8>>2]=g;bn(f,44352,S)}}else c[f+24>>2]=1;Xk(v);if(R)xg(c[R+68>>2]|0)}else{c[S>>2]=p;bn(f,43784,S);l=-1}while(0);c[X>>2]=Y;c[T>>2]=U;c[V>>2]=W;l=l+1|0}else l=0;i=Z;return l|0}function bn(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+224|0;if((i|0)>=(j|0))ba();h=m;k=m+8|0;l=m+24|0;f=b+16|0;g=c[f>>2]|0;if(g){c[f>>2]=g+-1;f=b+20|0;c[f>>2]=(c[f>>2]|0)+1;c[k>>2]=e;e=b+40|0;if(c[b+52>>2]|0)Ok(e,43760,1);f=c[b+28>>2]|0;if(f){g=c[b+36>>2]|0;c[h>>2]=c[b+32>>2];c[h+4>>2]=g;Yc(200,l,f,h)|0;f=l;while(1)if(!(a[f>>0]|0))break;else f=f+1|0;Ok(e,l,f-l&1073741823)}og(e,1,d,k);if((a[b+65>>0]|0)==1)c[b+24>>2]=1}i=m;return}function cn(b){b=b|0;var d=0,e=0;d=b+8|0;e=c[d>>2]|0;do if((e|0)!=(c[b+4>>2]|0))if((a[b+24>>0]|0)==1){ig(c[b>>2]|0,e);break}else{Sc(e);break}while(0);c[d>>2]=0;return}function dn(d){d=d|0;var f=0,g=0,h=0,i=0;g=c[d+32>>2]|0;i=d+8|0;if(!((b[i>>1]&9312)==0?(c[d+24>>2]|0)==0:0))Mg(d);f=ih(g,64,0)|0;h=d+20|0;c[h>>2]=f;if(!(a[g+65>>0]|0)){do if(!g)f=hc[c[8744+48>>2]&127](f)|0;else{if((c[g+276>>2]|0)>>>0<=f>>>0?(c[g+280>>2]|0)>>>0>f>>>0:0){f=e[g+248>>1]|0;break}f=hc[c[8744+48>>2]&127](f)|0}while(0);c[d+24>>2]=f;h=c[h>>2]|0;c[h>>2]=0;c[h+4>>2]=g;c[h+8>>2]=0;c[h+12>>2]=0;c[h+20>>2]=0;c[h+16>>2]=h+32;b[h+24>>1]=(f+1048544|0)>>>4;b[h+26>>1]=1;c[h+28>>2]=0;c[d>>2]=h;b[i>>1]=32}else{b[i>>1]=1;c[d+24>>2]=0}return}function en(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;i=kn(a)|0;if(i){j=i;c[j>>2]=d;c[j+4>>2]=f;c[i+8>>2]=0;j=a+12|0;h=c[j>>2]|0;if(!h)c[a+8>>2]=i;else{a=a+26|0;g=e[a>>1]|0;if((g&1|0)!=0?(k=h,l=c[k+4>>2]|0,!((l|0)<(f|0)|((l|0)==(f|0)?(c[k>>2]|0)>>>0<d>>>0:0))):0)b[a>>1]=g&65534;c[h+8>>2]=i}c[j>>2]=i}return}function fn(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=i;i=i+160|0;if((i|0)>=(j|0))ba();g=h;bw(g|0,0,160)|0;a:do if(!a){a=0;b=0}else{b=0;while(1){d=a+8|0;f=c[d>>2]|0;c[d>>2]=0;if(!b)b=g;else{d=b;b=g;e=0;do{a=hn(d,a)|0;c[b>>2]=0;e=e+1|0;b=g+(e<<2)|0;d=c[b>>2]|0}while((d|0)!=0)}c[b>>2]=a;if(!f){a=0;b=0;break a}a=f;b=c[g>>2]|0}}while(0);do{a=hn(a,c[g+(b<<2)>>2]|0)|0;b=b+1|0}while((b|0)!=40);i=h;return a|0}function gn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();e=g;f=c[a+12>>2]|0;if(!f)c[b>>2]=a;else{gn(f,b,e);c[(c[e>>2]|0)+8>>2]=a}e=a+8|0;f=c[e>>2]|0;if(!f)c[d>>2]=a;else gn(f,e,d);i=g;return}function hn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();l=m;d=(a|0)!=0;a:do if(d&(b|0)!=0){e=a;a=l;while(1){h=e;g=c[h>>2]|0;h=c[h+4>>2]|0;while(1){f=b;d=c[f>>2]|0;f=c[f+4>>2]|0;if((h|0)<(f|0)|(h|0)==(f|0)&g>>>0<d>>>0){k=4;break}if(!((f|0)<(h|0)|(f|0)==(h|0)&d>>>0<g>>>0))break;c[a+8>>2]=b;d=c[b+8>>2]|0;if(!d){f=0;d=1;break a}else{a=b;b=d}}if((k|0)==4){k=0;c[a+8>>2]=e;a=e}e=c[e+8>>2]|0;d=(e|0)!=0;if(!(d&(b|0)!=0)){f=b;b=a;break}}}else{f=b;e=a;b=l}while(0);c[b+8>>2]=d?e:f;i=m;return c[l+8>>2]|0}function jn(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;d=a+8|0;b=c[d>>2]|0;c[e>>2]=b;c[d>>2]=0;c[a+12>>2]=0;if(!b)b=a;else{d=1;while(1){g=b+8|0;c[e>>2]=c[g>>2];c[b+12>>2]=a;c[g>>2]=bq(e,d)|0;a=c[e>>2]|0;if(!a)break;else{g=b;b=a;d=d+1|0;a=g}}}i=f;return b|0}function kn(a){a=a|0;var d=0,e=0,f=0,g=0;f=a+24|0;d=b[f>>1]|0;if(!(d<<16>>16)){d=ih(c[a+4>>2]|0,1016,0)|0;if(!d)d=0;else{c[d>>2]=c[a>>2];c[a>>2]=d;d=d+8|0;c[a+16>>2]=d;b[f>>1]=63;e=62;g=5}}else{e=d+-1<<16>>16;d=c[a+16>>2]|0;g=5}if((g|0)==5){b[f>>1]=e;c[a+16>>2]=d+16}return d|0}function ln(d){d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();p=q;g=d+4|0;if(a[g>>0]|0){e=mn(d)|0;if(!e){m=a[g>>0]|0;f=4}}else{m=0;f=4}do if((f|0)==4){h=c[d>>2]|0;n=c[d+60>>2]|0;k=c[d+212>>2]|0;e=d+160|0;f=c[e>>2]|0;e=c[e+4>>2]|0;l=d+208|0;c[l>>2]=0;g=(c[h+4>>2]|0)+112|0;o=mg(g,0)|0;if(!o)e=7;else{bw(o|0,0,g|0)|0;c[o>>2]=h;r=o+112|0;g=o+8|0;c[g>>2]=r;c[o+4>>2]=n;b[o+40>>1]=-1;d=o+16|0;c[d>>2]=f;c[d+4>>2]=e;c[o+100>>2]=k;d=o+48|0;a[d>>0]=1;f=o+49|0;a[f>>0]=1;a[o+43>>0]=m<<24>>24!=0?2:0;c[p>>2]=524294;e=pc[c[h+24>>2]&31](h,k,r,524294,p)|0;if(e){cq(o,0);f=c[g>>2]|0;g=c[f>>2]|0;if(g){hc[c[g+4>>2]&127](f)|0;c[f>>2]=0}Sc(o);break}if(c[p>>2]&1)a[o+46>>0]=1;g=hc[c[(c[n>>2]|0)+48>>2]&127](n)|0;if(g&1024)a[d>>0]=0;if(g&4096)a[f>>0]=0;c[l>>2]=o;e=0}}while(0);i=q;return e|0}function mn(b){b=b|0;var d=0,e=0,f=0;f=bl(b,4)|0;if((f|0)!=0?(d=c[b+60>>2]|0,e=c[d>>2]|0,(e|0)!=0):0){if(!(a[b+13>>0]|0))nc[c[e+32>>2]&127](d,1)|0;d=b+17|0;if((a[d>>0]|0)!=5)a[d>>0]=1}return f|0}function nn(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();l=m;if(!b)g=0;else{k=b+4|0;g=c[k>>2]|0;g=nc[c[(c[g>>2]|0)+28>>2]&127](g,4)|0;if(!g){h=b+43|0;if(!(a[h>>0]|0))a[h>>0]=1;g=Pn(b,0,0,0,d,e,f,0,0)|0;if(!g){c[l>>2]=-1;g=c[k>>2]|0;Yb[c[(c[g>>2]|0)+40>>2]&63](g,10,l)|0;if((c[l>>2]|0)==1){g=b+16|0;d=c[g+4>>2]|0;if((d|0)>-1|(d|0)==-1&(c[g>>2]|0)>>>0>4294967295){Vo(b,0,0);e=0;g=0}else{e=0;g=0}}else{e=1;g=0}}else e=0}else e=0;cq(b,e);d=c[b+8>>2]|0;h=c[d>>2]|0;if(h){hc[c[h+4>>2]&127](d)|0;c[d>>2]=0}if(e){d=c[3164]|0;if(d)jc[d&3]();d=c[b>>2]|0;Yb[c[d+28>>2]&63](d,c[b+100>>2]|0,0)|0;d=c[3166]|0;if(d)jc[d&3]()}Sc(c[b+32>>2]|0);Sc(b)}i=m;return g|0}function on(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;k=b+5|0;g=a[k>>0]|0;if(!((a[b+15>>0]|0)!=0?!((e|0)==2|(e|0)==4):0))h=3;do if(((h|0)==3?(f=g&255,(f|0)!=(e|0)):0)?(a[k>>0]=e,(a[b+4>>0]|0)==0&(f&5|0)==1&(e&1|0)==0):0){f=c[b+64>>2]|0;g=c[f>>2]|0;if(g){hc[c[g+4>>2]&127](f)|0;c[f>>2]=0}j=b+17|0;if((d[j>>0]|0)>1){f=c[b>>2]|0;Yb[c[f+28>>2]&63](f,c[b+172>>2]|0,0)|0;break}g=b+16|0;f=a[g>>0]|0;i=f<<24>>24==0;if(i){e=_k(b)|0;h=a[g>>0]|0}else{h=f;e=0}if(h<<24>>24==1)e=bl(b,2)|0;if((e|0)==0?(g=c[b>>2]|0,Yb[c[g+28>>2]&63](g,c[b+172>>2]|0,0)|0,f<<24>>24==1):0){g=c[b+60>>2]|0;f=c[g>>2]|0;if(!f)break;if(!(a[b+13>>0]|0))nc[c[f+32>>2]&127](g,1)|0;if((a[j>>0]|0)==5)break;a[j>>0]=1;break}if(i)Jo(b)}while(0);return d[k>>0]|0}function pn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;e=g+4|0;do if(d)if(!(eh(a,d,-1,0,0,e,0)|0)){e=c[e>>2]|0;Od(e)|0;a=dq(a,e,b)|0;break}else{$g(b,a,Oe(a)|0,f);a=Jf(a)|0;break}else a=7;while(0);i=g;return a|0}function qn(a){a=a|0;var b=0;c[(c[a+4>>2]|0)+4>>2]=c[a>>2];b=Gg(a,0)|0;if(!b)b=Fg(a,0)|0;return b|0}function rn(e,f){e=e|0;f=f|0;var g=0,h=0;g=c[e+4>>2]|0;c[g+4>>2]=c[e>>2];e=f&255;if(b[g+22>>1]&2){f=g+17|0;if(((e|0)!=0|0)==(d[f>>0]|0|0))h=4;else f=8}else{f=g+17|0;h=4}if((h|0)==4){a[f>>0]=(e|0)!=0&1;a[g+18>>0]=(e|0)==2&1;f=0}return f|0}function sn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();e=g;d=eh(a,d,-1,0,0,e,0)|0;do if(!d){e=c[e>>2]|0;while(1){if((Od(e)|0)!=100){f=6;break}d=pn(a,b,be(e,0)|0)|0;if(d){f=5;break}}if((f|0)==5){dq(a,e,b)|0;break}else if((f|0)==6){d=dq(a,e,b)|0;break}}while(0);i=g;return d|0}function tn(a){a=a|0;var b=0;b=a+100|0;c[b>>2]=(c[b>>2]|0)+1;b=c[a+88>>2]|0;if(b)do{c[b+16>>2]=1;b=c[b+44>>2]|0}while((b|0)!=0);$o(c[a+204>>2]|0,0);return}function un(a){a=a|0;var b=0,d=0,e=0;e=a+304|0;b=c[e>>2]|0;if(!((b|0)%5|0)){b=(b<<2)+20|0;d=a+328|0;b=no(a,c[d>>2]|0,b,((b|0)<0)<<31>>31)|0;if(!b)b=7;else{a=b+(c[e>>2]<<2)|0;c[a+0>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;c[a+12>>2]=0;c[a+16>>2]=0;c[d>>2]=b;b=0}}else b=0;return b|0}function vn(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))ba();w=z;r=z+8|0;u=z+4|0;l=f+56|0;s=c[l>>2]|0;t=c[f+52>>2]|0;c[u>>2]=0;c[w>>2]=c[f>>2];y=qh(e,10344,w)|0;do if(!y)l=7;else{v=ih(e,28,0)|0;if(!v){ig(e,y);l=7;break}p=v+0|0;o=p+28|0;do{a[p>>0]=0;p=p+1|0}while((p|0)<(o|0));c[v>>2]=e;c[v+4>>2]=g;q=c[f+68>>2]|0;a:do if(q){p=c[e+20>>2]|0;if((p|0)>0){n=c[e+16>>2]|0;m=0;while(1){o=m+1|0;if((c[n+(m<<4)+12>>2]|0)==(q|0)){o=m;break a}if((o|0)<(p|0))m=o;else break}}else o=0}else o=-1e6;while(0);c[(c[l>>2]|0)+4>>2]=c[(c[e+16>>2]|0)+(o<<4)>>2];p=r+4|0;c[p>>2]=f;c[r>>2]=v;q=e+324|0;n=c[q>>2]|0;c[q>>2]=r;o=v+8|0;l=gc[h&7](e,c[g+8>>2]|0,t,s,o,u)|0;c[q>>2]=n;do if(!l){n=c[o>>2]|0;if(n){c[n+0>>2]=0;c[n+4>>2]=0;c[n+8>>2]=0;c[c[o>>2]>>2]=c[g>>2];c[v+12>>2]=1;if(c[p>>2]|0){c[w>>2]=c[f>>2];c[k>>2]=qh(e,28376,w)|0;wn(v);l=1;break}u=f+60|0;c[v+24>>2]=c[u>>2];c[u>>2]=v;u=f+38|0;l=b[u>>1]|0;if(l<<16>>16>0){t=f+4|0;m=c[t>>2]|0;h=0;while(1){r=c[m+(h*24|0)+12>>2]|0;if(r){n=r;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;o=n-r|0;q=o&1073741823;if((Bc(28424,r,6)|0)==0?(s=a[r+6>>0]|0,s<<24>>24==32|s<<24>>24==0):0)n=0;else x=24;b:do if((x|0)==24){x=0;if(!q)n=0;else{n=0;while(1){if((Bc(28432,r+n|0,7)|0)==0?(s=a[r+(n+7)>>0]|0,s<<24>>24==32|s<<24>>24==0):0)break;n=n+1|0;if((n|0)>=(q|0))break b}n=n+1|0}}while(0);if((n|0)<(q|0)){p=(a[r+(n+6)>>0]|0)!=0|6;m=n+p|0;if((m|0)<=(q|0)){o=(o&1073741823)+1-p|0;l=m;m=n;while(1){a[r+m>>0]=a[r+l>>0]|0;m=m+1|0;if((m|0)==(o|0))break;else l=m+p|0}}if((a[r+n>>0]|0)==0&(n|0)>0)a[r+(n+-1)>>0]=0;m=c[t>>2]|0;l=m+(h*24|0)+23|0;a[l>>0]=d[l>>0]|2;l=b[u>>1]|0}}h=h+1|0;if((h|0)>=(l<<16>>16|0)){l=0;break}}}else l=0}else l=0}else if((l|0)==7){a[e+65>>0]=1;x=11}else x=11;while(0);if((x|0)==11){m=c[u>>2]|0;if(!m){c[w>>2]=y;c[k>>2]=qh(e,28344,w)|0}else{c[w>>2]=m;c[k>>2]=qh(e,10344,w)|0;Sc(c[u>>2]|0)}ig(e,v)}ig(e,y)}while(0);i=z;return l|0}function wn(a){a=a|0;var b=0,d=0,e=0;b=c[a>>2]|0;e=a+12|0;d=(c[e>>2]|0)+-1|0;c[e>>2]=d;if(!d){d=c[a+8>>2]|0;if(d)hc[c[(c[d>>2]|0)+16>>2]&127](d)|0;ig(b,a)}return}function xn(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=f+10|0;i=g<<24>>24==1;if((a[s>>0]|0)==1|i){o=f+12|0;h=c[o>>2]|0;if(i){i=h&-2;c[o>>2]=i;l=i;i=i<<1|1}else{l=h;i=(h<<1)+2|0}p=f+16|0;h=c[p>>2]|0;n=h+l|0;q=f+32|0;r=ih(c[q>>2]|0,i,((i|0)<0)<<31>>31)|0;if(!r)h=7;else{i=a[s>>0]|0;if(i<<24>>24==2)if((l|0)>0){i=r;do{j=d[h>>0]|0;l=h+2|0;m=d[h+1>>0]<<8;k=m|j;if((m&63488|0)==55296&l>>>0<n>>>0){k=(k<<10&983040)+65536|j<<10&64512|d[l>>0]|d[h+3>>0]<<8&768;h=h+4|0}else h=l;do if(k>>>0>=128){if(k>>>0<2048){a[i>>0]=k>>>6&31|192;a[i+1>>0]=k&63|128;i=i+2|0;break}if(k>>>0<65536){a[i>>0]=k>>>12&15|224;a[i+1>>0]=k>>>6&63|128;a[i+2>>0]=k&63|128;i=i+3|0;break}else{a[i>>0]=k>>>18&7|240;a[i+1>>0]=k>>>12&63|128;a[i+2>>0]=k>>>6&63|128;a[i+3>>0]=k&63|128;i=i+4|0;break}}else{a[i>>0]=k;i=i+1|0}while(0)}while(h>>>0<n>>>0);m=55}else{i=r;m=55}else if(i<<24>>24!=1)if((l|0)>0){i=r;do{m=d[h>>0]<<8;l=h+2|0;k=d[h+1>>0]|0;j=m|k;if((m&63488|0)==55296&l>>>0<n>>>0){j=(j<<10&983040)+65536|k<<10&64512|d[h+3>>0]|d[l>>0]<<8&768;h=h+4|0}else h=l;do if(j>>>0>=128){if(j>>>0<2048){a[i>>0]=j>>>6&31|192;a[i+1>>0]=j&63|128;i=i+2|0;break}if(j>>>0<65536){a[i>>0]=j>>>12&15|224;a[i+1>>0]=j>>>6&63|128;a[i+2>>0]=j&63|128;i=i+3|0;break}else{a[i>>0]=j>>>18&7|240;a[i+1>>0]=j>>>12&63|128;a[i+2>>0]=j>>>6&63|128;a[i+3>>0]=j&63|128;i=i+4|0;break}}else{a[i>>0]=j;i=i+1|0}while(0)}while(h>>>0<n>>>0);m=55}else{i=r;m=55}else{i=(l|0)>0;if(g<<24>>24==2)if(i){i=r;l=h;while(1){h=l+1|0;j=a[l>>0]|0;k=j&255;if((j&255)>191){k=d[15360+(k+-192)>>0]|0;a:do if((h|0)==(n|0))h=n;else while(1){j=a[h>>0]|0;if((j&-64)<<24>>24!=-128)break a;l=l+2|0;k=j&63|k<<6;if((l|0)==(n|0)){h=n;break}else{j=h;h=l;l=j}}while(0);if(!(k>>>0<128|(k&-2048|0)==55296|(k&-2|0)==65534))if(k>>>0<65536)m=22;else{l=k+-65536|0;a[i>>0]=l>>>10&192|k>>>10&63;a[i+1>>0]=l>>>18&3|216;a[i+2>>0]=k;a[i+3>>0]=k>>>8&3|220;i=i+4|0}else{k=65533;m=22}}else m=22;if((m|0)==22){m=0;a[i>>0]=k;a[i+1>>0]=k>>>8;i=i+2|0}if(h>>>0<n>>>0)l=h;else break}}else i=r;else if(i){i=r;do{l=h+1|0;k=a[h>>0]|0;j=k&255;if((k&255)>191){j=d[15360+(j+-192)>>0]|0;b:do if((l|0)==(n|0))h=n;else{k=h;h=l;while(1){l=a[h>>0]|0;if((l&-64)<<24>>24!=-128)break b;k=k+2|0;j=l&63|j<<6;if((k|0)==(n|0)){h=n;break}else{l=h;h=k;k=l}}}while(0);if(!(j>>>0<128|(j&-2048|0)==55296|(j&-2|0)==65534))if(j>>>0<65536)m=31;else{l=j+-65536|0;a[i>>0]=l>>>18&3|216;a[i+1>>0]=l>>>10&192|j>>>10&63;a[i+2>>0]=j>>>8&3|220;a[i+3>>0]=j;i=i+4|0}else{j=65533;m=31}}else{h=l;m=31}if((m|0)==31){m=0;a[i>>0]=j>>>8;a[i+1>>0]=j;i=i+2|0}}while(h>>>0<n>>>0)}else i=r;c[o>>2]=i-r;a[i>>0]=0;i=i+1|0}if((m|0)==55)c[o>>2]=i-r;a[i>>0]=0;i=f+8|0;o=b[i>>1]|0;h=o&65535;if(!((o&9312)==0?(c[f+24>>2]|0)==0:0))Mg(f);b[i>>1]=h&29|514;a[s>>0]=g;c[p>>2]=r;c[f+20>>2]=r;h=c[q>>2]|0;do if(!h)h=hc[c[8744+48>>2]&127](r)|0;else{if((c[h+276>>2]|0)>>>0<=r>>>0?(c[h+280>>2]|0)>>>0>r>>>0:0){h=e[h+248>>1]|0;break}h=hc[c[8744+48>>2]&127](r)|0}while(0);c[f+24>>2]=h;h=0}}else if(!(Rl(f)|0)){h=c[f+16>>2]|0;q=c[f+12>>2]&-2;i=h+q|0;if((q|0)>0)do{p=a[h>>0]|0;q=h+1|0;a[h>>0]=a[q>>0]|0;h=h+2|0;a[q>>0]=p}while(h>>>0<i>>>0);a[s>>0]=g;h=0}else h=7;return h|0}function yn(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;i=a[b>>0]|0;g=i&255;a:do switch(g|0){case 13:case 12:case 10:case 9:case 32:{f=1;while(1)if(!(a[10368+(d[b+f>>0]|0)>>0]&1))break;else f=f+1|0;c[e>>2]=151;break}case 91:{f=1;while(1){g=a[b+f>>0]|0;if(!(g<<24>>24)){g=g&255;break}f=f+1|0;if(g<<24>>24==93){g=93;break}}c[e>>2]=(g|0)==93?27:150;break}case 37:{c[e>>2]=93;f=1;break}case 61:{c[e>>2]=79;f=(a[b+1>>0]|0)==61?2:1;break}case 62:{f=a[b+1>>0]|0;if(f<<24>>24==61){c[e>>2]=83;f=2;break a}else if(f<<24>>24==62){c[e>>2]=88;f=2;break a}else{c[e>>2]=80;f=1;break a}}case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:{j=51;break}case 40:{c[e>>2]=22;f=1;break}case 41:{c[e>>2]=23;f=1;break}case 34:case 39:case 96:{g=a[b+1>>0]|0;b:do if(g<<24>>24){f=1;while(1){if(g<<24>>24==i<<24>>24){f=f+1|0;if((a[b+f>>0]|0)!=i<<24>>24)break}f=f+1|0;g=a[b+f>>0]|0;if(!(g<<24>>24))break b}if(i<<24>>24==39){c[e>>2]=97;break a}else{c[e>>2]=27;break a}}else f=1;while(0);c[e>>2]=150;break}case 60:{f=a[b+1>>0]|0;if(f<<24>>24==60){c[e>>2]=87;f=2;break a}else if(f<<24>>24==61){c[e>>2]=81;f=2;break a}else if(f<<24>>24==62){c[e>>2]=78;f=2;break a}else{c[e>>2]=82;f=1;break a}}case 63:{c[e>>2]=135;f=1;while(1)if(((d[b+f>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break;break}case 58:case 35:case 64:case 36:{c[e>>2]=135;g=a[b+1>>0]|0;if(g<<24>>24){f=1;i=0;while(1){if(!(a[10368+(g&255)>>0]&70)){if(g<<24>>24==40&(i|0)>0){g=i;j=78;break}if(g<<24>>24!=58){g=i;break}g=f+1|0;if((a[b+g>>0]|0)==58)f=g;else{g=i;break}}else i=i+1|0;f=f+1|0;g=a[b+f>>0]|0;if(!(g<<24>>24)){g=i;break}}do if((j|0)==78){h=f;while(1){f=h+1|0;i=a[b+f>>0]|0;if(!(i<<24>>24))break;if(i<<24>>24!=41?(a[10368+(i&255)>>0]&1)==0:0)h=f;else{j=81;break}}if((j|0)==81)if(i<<24>>24==41){f=h+2|0;break}c[e>>2]=150}while(0);if(g)break a}else f=1;c[e>>2]=150;break}case 44:{c[e>>2]=26;f=1;break}case 38:{c[e>>2]=85;f=1;break}case 126:{c[e>>2]=96;f=1;break}case 33:if((a[b+1>>0]|0)==61){c[e>>2]=78;f=2;break a}else{c[e>>2]=150;f=2;break a}case 45:{if((a[b+1>>0]|0)==45)f=2;else{c[e>>2]=90;f=1;break a}while(1){g=a[b+f>>0]|0;if(g<<24>>24==0|g<<24>>24==10)break;f=f+1|0}c[e>>2]=151;break}case 88:case 120:{if((a[b+1>>0]|0)==39){c[e>>2]=134;f=2;while(1){g=a[b+f>>0]|0;if(!(a[10368+(g&255)>>0]&8))break;else f=f+1|0}if(g<<24>>24==39&(f&1|0)==0)g=1;else{c[e>>2]=150;while(1){g=a[b+f>>0]|0;if(g<<24>>24==39|g<<24>>24==0)break;f=f+1|0}g=g<<24>>24!=0}f=(g&1)+f|0}else j=98;break}case 59:{c[e>>2]=1;f=1;break}case 43:{c[e>>2]=89;f=1;break}case 124:if((a[b+1>>0]|0)==124){c[e>>2]=94;f=2;break a}else{c[e>>2]=86;f=1;break a}case 42:{c[e>>2]=91;f=1;break}case 47:{if((a[b+1>>0]|0)==42?(f=a[b+2>>0]|0,f<<24>>24!=0):0){f=f&255;g=3;while(1){i=a[b+g>>0]|0;if((f|0)==42&i<<24>>24==47){f=42;break}f=i&255;if(!(i<<24>>24))break;else g=g+1|0}c[e>>2]=151;f=((f|0)!=0&1)+g|0;break a}c[e>>2]=92;f=1;break}case 46:{if(((d[b+1>>0]|0)+-48|0)>>>0<10)j=51;else{c[e>>2]=122;f=1}break}default:j=98}while(0);c:do if((j|0)==51){c[e>>2]=132;f=a[b>>0]|0;if(f<<24>>24==48){g=a[b+1>>0]|0;if(g<<24>>24==88|g<<24>>24==120)if(!(a[10368+(d[b+2>>0]|0)>>0]&8))h=0;else{f=3;while(1)if(!(a[10368+(d[b+f>>0]|0)>>0]&8))break c;else f=f+1|0}else{f=48;h=0}}else h=0;while(1){g=h+1|0;if(((f&255)+-48|0)>>>0>=10){g=h;break}f=a[b+g>>0]|0;h=g}if(f<<24>>24==46){f=g;do{f=f+1|0;g=b+f|0}while(((d[g>>0]|0)+-48|0)>>>0<10);c[e>>2]=133;h=a[g>>0]|0;i=f}else{h=f;i=g}do if(h<<24>>24==69|h<<24>>24==101){g=a[b+(i+1)>>0]|0;if(((g&255)+-48|0)>>>0>=10){if(!(g<<24>>24==45|g<<24>>24==43)){g=h;f=i;break}f=i+2|0;if(((d[b+f>>0]|0)+-48|0)>>>0>=10){g=h;f=i;break}}else f=i+2|0;while(1){g=b+f|0;if(((d[g>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break}c[e>>2]=133;g=a[g>>0]|0}else{g=h;f=i}while(0);if(a[10368+(g&255)>>0]&70)do{c[e>>2]=150;f=f+1|0}while((a[10368+(d[b+f>>0]|0)>>0]&70)!=0)}else if((j|0)==98){if(!(a[10368+g>>0]&70)){c[e>>2]=150;f=1;break}else f=1;while(1)if(!(a[10368+(d[b+f>>0]|0)>>0]&70))break;else f=f+1|0;c[e>>2]=bi(b,f)|0}while(0);return f|0}function zn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;f=a[b>>0]|0;if(f<<24>>24==45){b=b+1|0;i=1;j=13}else if(f<<24>>24==43){b=b+1|0;i=0;j=13}else if((f<<24>>24==48?(f=a[b+1>>0]|0,f<<24>>24==88|f<<24>>24==120):0)?(g=b+2|0,e=a[g>>0]|0,(a[10368+(e&255)>>0]&8)!=0):0){while(1){f=g+1|0;if(e<<24>>24!=48)break;g=f;e=a[f>>0]|0}if(!(a[10368+(e&255)>>0]&8)){e=0;f=0}else{h=e;b=0;f=0;do{e=h<<24>>24;f=(0-(e>>>6&1)&9)+e&15|f<<4;b=b+1|0;h=a[g+b>>0]|0;e=(a[10368+(h&255)>>0]&8)==0}while((b|0)<8&(e^1));e=e^1}if((f|0)<0|e)e=0;else{c[d>>2]=f;e=1}}else{i=0;j=13}a:do if((j|0)==13){e=0;f=0;h=0;while(1){g=(a[b+h>>0]|0)+-48|0;if(g>>>0>=10)break;f=ow(e|0,f|0,10,0)|0;e=fw(g|0,((g|0)<0)<<31>>31|0,f|0,C|0)|0;h=h+1|0;if((h|0)>=11){e=0;break a}else f=C}g=$v(e|0,f|0,i|0,0)|0;b=C;if((b|0)>0|(b|0)==0&g>>>0>2147483647)e=0;else{if(i)e=$v(0,0,e|0,f|0)|0;c[d>>2]=e;e=1}}while(0);return e|0}function An(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();g=f;c[g>>2]=e;og(a,b,d,g);i=f;return}function Bn(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0;F=i;i=i+16|0;if((i|0)>=(j|0))ba();D=F;A=F+4|0;c[A>>2]=0;E=ih(e,536,0)|0;a:do if(E){bw(E|0,0,536)|0;c[E+476>>2]=k;r=e+20|0;k=c[r>>2]|0;b:do if((k|0)>0){s=e+16|0;p=0;while(1){q=c[(c[s>>2]|0)+(p<<4)+4>>2]|0;if(q){c[(c[q+4>>2]|0)+4>>2]=c[q>>2];n=Zk(q,1,1)|0;if(n)break;k=c[r>>2]|0}p=p+1|0;if((p|0)>=(k|0))break b}c[D>>2]=c[(c[s>>2]|0)+(p<<4)>>2];qg(e,n,40984,D);p=E;break a}while(0);nl(e);c[E>>2]=e;c[E+424>>2]=0;do if((g|0)>-1){if((g|0)!=0?(a[f+(g+-1)>>0]|0)==0:0){B=21;break}if((c[e+92>>2]|0)<(g|0)){qg(e,18,41016,D);if(!e){p=E;n=18;break a}if(!(a[e+65>>0]|0)){p=E;n=c[e+56>>2]&18;break a}else{Ml(e);p=E;n=7;break a}}else{if((f|0)!=0?(o=fw(g|0,((g|0)<0)<<31>>31|0,1,0)|0,o=ih(e,o,C)|0,(o|0)!=0):0){gw(o|0,f|0,g|0)|0;a[o+g>>0]=0;Hh(E,o,A)|0;ig(e,o);n=E+480|0;c[n>>2]=f+((c[n>>2]|0)-o);break}c[E+480>>2]=f+g;break}}else B=21;while(0);if((B|0)==21)Hh(E,f,A)|0;s=e+65|0;k=E+12|0;if(!(a[s>>0]|0)){p=E+12|0;if((c[k>>2]|0)==101)c[p>>2]=0}else{c[k>>2]=7;p=E+12|0}c:do if((a[E+17>>0]|0)!=0?(t=c[E>>2]|0,u=t+20|0,(c[u>>2]|0)>0):0){o=t+16|0;r=0;while(1){k=c[o>>2]|0;n=c[k+(r<<4)+4>>2]|0;if(n){if(!(a[n+8>>0]|0)){k=ug(n,0)|0;if((k|0)==7|(k|0)==3082)break;else if(k)break c;k=c[o>>2]|0;q=1}else q=0;g=c[n+4>>2]|0;c[g+4>>2]=c[n>>2];g=c[(c[g+12>>2]|0)+56>>2]|0;if((d[g+41>>0]<<16|d[g+40>>0]<<24|d[g+42>>0]<<8|d[g+43>>0]|0)!=(c[c[k+(r<<4)+12>>2]>>2]|0)){rm(t,r);c[p>>2]=17}if(q)qn(n)|0}r=r+1|0;if((r|0)>=(c[u>>2]|0))break c}a[t+65>>0]=1}while(0);if(a[s>>0]|0)c[p>>2]=7;if(m)c[m>>2]=c[E+480>>2];n=c[p>>2]|0;q=(n|0)==0;do if(q?(w=E+8|0,v=c[w>>2]|0,(v|0)!=0):0){p=a[E+450>>0]|0;if(!(p<<24>>24))break;else if(p<<24>>24==2){eq(v,4);o=8;k=12}else{eq(v,8);o=0;k=8}p=o;do{fq(c[w>>2]|0,p-o|0,0,c[41040+(p<<2)>>2]|0,0);p=p+1|0}while((p|0)<(k|0))}while(0);o=E+8|0;if((a[e+145>>0]|0)==0?(z=c[o>>2]|0,x=(c[E+480>>2]|0)-f|0,(z|0)!=0):0){if((f|0)!=0?(w=c[z>>2]|0,y=fw(x|0,((x|0)<0)<<31>>31|0,1,0)|0,y=ih(w,y,C)|0,(y|0)!=0):0){gw(y|0,f|0,x|0)|0;a[y+x>>0]=0;p=y}else p=0;c[z+168>>2]=p;z=z+88|0;b[z>>1]=b[z>>1]&-257|(h&65535)<<8&256}p=c[o>>2]|0;do if(!p)B=60;else{if(q?(a[s>>0]|0)==0:0){B=60;break}Jg(p)|0}while(0);if((B|0)==60)c[l>>2]=p;o=c[A>>2]|0;do if(!o){c[e+52>>2]=n;o=c[e+236>>2]|0;if(o){p=o+8|0;if(!(b[p>>1]&9312)){b[p>>1]=1;break}else{rg(o);break}}}else{c[D>>2]=o;qg(e,n,10344,D);ig(e,o)}while(0);o=E+528|0;p=c[o>>2]|0;if(!p)p=E;else{do{c[o>>2]=c[p+4>>2];ig(e,p);p=c[o>>2]|0}while((p|0)!=0);p=E}}else{p=0;n=7}while(0);yh(p);ig(e,E);D=Kg(e,n)|0;i=F;return D|0}function Cn(b){b=b|0;var d=0,e=0;e=c[b>>2]|0;if((a[e+145>>0]|0)==0?(d=Vh(e,b+4|0)|0,(d|0)!=0):0){c[b+12>>2]=d;e=b+64|0;c[e>>2]=(c[e>>2]|0)+1}else d=0;return d|0}function Dn(a){a=a|0;var b=0,d=0,f=0,g=0,h=0;f=c[a+24>>2]|0;h=f+84|0;b=c[h>>2]|0;if(!b){b=1020;d=0}else{b=b*40|0;d=0}g=a+4|0;a=no(c[f>>2]|0,c[g>>2]|0,b,d)|0;d=(a|0)!=0;if(d){b=c[f>>2]|0;do if(!b)b=hc[c[8744+48>>2]&127](a)|0;else{if((c[b+276>>2]|0)>>>0<=a>>>0?(c[b+280>>2]|0)>>>0>a>>>0:0){b=e[b+248>>1]|0;break}b=hc[c[8744+48>>2]&127](a)|0}while(0);c[h>>2]=(b>>>0)/20|0;c[g>>2]=a}return (d?0:7)|0}function En(a,d,e){a=a|0;d=d|0;e=e|0;a:do if(e)switch(d|0){case -10:{if(c[a+520>>2]|0)break a;wn(e);break a}case -11:{if(c[a+520>>2]|0)break a;Sc(e);break a}case -15:case -1:case -13:case -12:{ig(a,e);break a}case -5:{if(!(b[e+2>>1]&16))break a;ig(a,e);break a}case -6:{if(c[a+520>>2]|0)break a;a=(c[e>>2]|0)+-1|0;c[e>>2]=a;if(a)break a;Sc(e);break a}case -8:{if(!(c[a+520>>2]|0)){Ih(e);break a}if(c[e+24>>2]|0)ig(a,c[e+20>>2]|0);ig(a,e);break a}default:break a}while(0);return}function Fn(e,f){e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;g=c[f>>2]|0;p=c[e+24>>2]|0;q=p+112|0;k=c[q>>2]|0;n=e+88|0;b[n>>1]=b[n>>1]&-193|64;h=c[e+32>>2]|0;a:do if((h|0)>0){j=c[e+4>>2]|0;while(1){h=h+-1|0;i=d[j>>0]|0;switch(i|0){case 2:case 3:{o=7;break}case 12:case 13:case 11:{b[n>>1]=b[n>>1]&-193|128;break}case 15:{r=c[j+8>>2]|0;g=(r|0)>(g|0)?r:g;break}case 6:case 8:{c[j+16>>2]=77;a[j+1>>0]=-19;break}case 5:case 7:case 9:{c[j+16>>2]=76;a[j+1>>0]=-19;break}case 10:case 1:{r=d[j+3>>0]|0;g=(r|0)>(g|0)?r:g;break}case 14:{r=c[j+-16>>2]|0;g=(r|0)>(g|0)?r:g;break}case 4:{if(!(c[j+8>>2]|0))o=7;else{b[n>>1]=b[n>>1]&-65;o=7}break}default:{}}if((o|0)==7){o=0;b[n>>1]=b[n>>1]|128}i=a[34168+i>>0]|0;a[j+2>>0]=i;if((i&1)!=0?(l=j+8|0,m=c[l>>2]|0,(m|0)<0):0)c[l>>2]=c[k+(~m<<2)>>2];if((h|0)<=0)break a;else j=j+20|0}}while(0);ig(c[e>>2]|0,c[q>>2]|0);c[q>>2]=0;c[p+108>>2]=0;c[f>>2]=g;return}function Gn(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;e=b+73|0;if((a[e>>0]|0)!=4){a[e>>0]=0;f=b+56|0;d=b+48|0;d=Cp(b,c[f>>2]|0,c[d>>2]|0,c[d+4>>2]|0,0,g)|0;if(!d){Sc(c[f>>2]|0);c[f>>2]=0;f=b+68|0;d=c[f>>2]|c[g>>2];c[f>>2]=d;if((d|0)!=0?(a[e>>0]|0)==1:0){a[e>>0]=2;d=0}else d=0}}else d=c[b+68>>2]|0;i=h;return d|0}function Hn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=c[a+8>>2]|0;a:do if(!a)a=0;else{e=(b|0)==0;while(1){if((a|0)!=(d|0)){if(e)break;if((c[a+60>>2]|0)==(b|0))break}a=c[a+8>>2]|0;if(!a){a=0;break a}}a=Bl(a,b,d)|0}while(0);return a|0}function In(b){b=b|0;var e=0,f=0,g=0,h=0;f=c[b>>2]|0;g=f+1|0;c[b>>2]=g;h=a[f>>0]|0;e=h&255;if((h&255)<=191)return e|0;e=d[15360+(e+-192)>>0]|0;if((a[g>>0]&-64)<<24>>24==-128)while(1){f=f+2|0;c[b>>2]=f;e=(d[g>>0]|0)&63|e<<6;if((a[f>>0]&-64)<<24>>24==-128){h=g;g=f;f=h}else break}return (e>>>0<128|(e&-2048|0)==55296|(e&-2|0)==65534?65533:e)|0}function Jn(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;if((c|0)>-1)g=b+c|0;else g=-1;c=a[b>>0]|0;if(c<<24>>24!=0&g>>>0>b>>>0){d=c;c=0;do{f=b+1|0;if((d&255)>191){e=b;b=f;while(1){d=a[b>>0]|0;if((d&-64)<<24>>24==-128){d=b;b=e+2|0;e=d}else break}}else{d=a[f>>0]|0;b=f}c=c+1|0}while(d<<24>>24!=0&b>>>0<g>>>0)}else c=0;return c|0}function Kn(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+48|0;if((i|0)>=(j|0))ba();t=x+32|0;u=x+16|0;v=x;k=c[d>>2]|0;if((k|0)<0){c[d>>2]=0;c[d+4>>2]=-1;b[d+12>>1]=0;a[d+14>>0]=0;k=0}p=g;o=c[p+4>>2]|0;q=v;c[q>>2]=c[p>>2];c[q+4>>2]=o;q=d+8|0;c[q>>2]=h;o=f&255;p=(f|0)==254;do{n=b[d+(k<<4)+12>>1]|0;h=n&65535;g=37184+(h<<1)|0;a:do if((n&65535)>429)w=6;else{n=o;while(1){m=b[g>>1]|0;l=m<<16>>16;if(m<<16>>16==-86){w=6;break a}m=n&255;k=l+m|0;if(k>>>0<=1496?(a[39336+k>>0]|0)==n<<24>>24:0){w=16;break}if(!(n<<24>>24))break;if((n&255)>=70){r=l;w=12;break}n=a[40840+m>>0]|0;if(!(n<<24>>24)){r=l;w=12;break}}if((w|0)==16){w=0;k=e[22184+(k<<1)>>1]|0;break}if(((w|0)==12?(w=0,s=r+70|0,(s|0)>-1):0)?(a[39336+s>>0]|0)==70:0){k=e[22184+(s<<1)>>1]|0;break}k=e[38048+(h<<1)>>1]|0}while(0);if((w|0)==6){w=0;k=e[38048+(h<<1)>>1]|0}if(k>>>0<642){w=18;break}if(k>>>0>=969){w=20;break}iq(d,k+-642|0);if(p)break;k=c[d>>2]|0}while((k|0)>-1);if((w|0)==18){gq(d,k,f,v);r=d+4|0;c[r>>2]=(c[r>>2]|0)+-1}else if((w|0)==20){c[u+0>>2]=c[v+0>>2];c[u+4>>2]=c[v+4>>2];c[u+8>>2]=c[v+8>>2];r=c[q>>2]|0;c[t>>2]=u;ph(r,20432,t);c[q>>2]=r;hq(d,o,v)}i=x;return}function Ln(b){b=b|0;var d=0;d=c[b>>2]|0;if((d|0)>=0){hq(b,a[b+(d<<4)+14>>0]|0,b+(d<<4)+16|0);c[b>>2]=(c[b>>2]|0)+-1}return}function Mn(a,b){a=a|0;b=b|0;var d=0;if(b){if((c[b>>2]|0)>0){d=0;do{Jk(a,c[b+(d<<4)+12>>2]|0);Ik(a,c[b+(d<<4)+16>>2]|0,1);ig(a,c[b+(d<<4)+8>>2]|0);d=d+1|0}while((d|0)<(c[b>>2]|0))}ig(a,b)}return}function Nn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+328|0;d=c[h>>2]|0;if(d){i=a+304|0;if((c[i>>2]|0)>0){f=0;do{e=c[d+(f<<2)>>2]|0;d=c[e+8>>2]|0;if((d|0)!=0?(g=c[(c[d>>2]|0)+b>>2]|0,(g|0)!=0):0)hc[g&127](d)|0;c[e+20>>2]=0;wn(e);f=f+1|0;d=c[h>>2]|0}while((f|0)<(c[i>>2]|0))}ig(a,d);c[i>>2]=0;c[h>>2]=0}return}function On(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0;do if((d|0)==-2)if(!(c[a+12>>2]|0))d=(c[a+16>>2]|0)==0?0:6;else d=6;else{h=b[a>>1]|0;g=h<<16>>16;if(!((g|0)!=(d|0)&h<<16>>16>-1)){h=(g|0)==(d|0)?4:1;g=f&255;d=e[a+2>>1]|0;if((g|0)==(d&3|0)){d=h|2;break}else return ((d&g)>>>1&1)+h|0}else d=0}while(0);return d|0} 11 function iq(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0,ea=0;ea=i;i=i+192|0;if((i|0)>=(j|0))ba();_=ea+48|0;Y=ea+24|0;X=ea+160|0;F=ea+156|0;P=ea+152|0;I=ea+148|0;S=ea+144|0;L=ea+140|0;E=ea+16|0;ca=ea;v=ea+128|0;u=ea+116|0;w=ea+96|0;l=ea+88|0;da=f+8|0;$=c[da>>2]|0;aa=c[f>>2]|0;c[ca+0>>2]=c[9286];c[ca+4>>2]=c[9287];c[ca+8>>2]=c[9288];a:do switch(g|0){case 5:{a[$+450>>0]=0;c[$+440>>2]=0;break}case 7:{a[$+450>>0]=2;c[$+440>>2]=0;break}case 6:{a[$+450>>0]=1;c[$+440>>2]=0;break}case 38:{_=c[f+(aa+-2<<4)+16>>2]|0;c[ca>>2]=_;c[ca+4>>2]=(c[$+504>>2]|0)-_+(c[$+508>>2]|0);break}case 39:{u=f+(aa<<4)+16|0;s=c[$>>2]|0;k=c[$+484>>2]|0;b:do if(k){t=k+38|0;if((b[t>>1]|0)>=(c[s+96>>2]|0)){c[_>>2]=c[k>>2];ph($,36528,_);break}r=Sq(s,u)|0;if(r){p=b[t>>1]|0;h=p<<16>>16;c:do if(p<<16>>16>0){q=a[9328+(d[r>>0]|0)>>0]|0;n=c[k+4>>2]|0;o=r+1|0;l=0;while(1){m=c[n+(l*24|0)>>2]|0;if(q<<24>>24==(a[9328+(d[m>>0]|0)>>0]|0)?($c(o,m+1|0)|0)==0:0)break;l=l+1|0;if((l|0)>=(h|0))break c}c[_>>2]=r;ph($,36552,_);ig(s,r);break b}else n=c[k+4>>2]|0;while(0);o=k+4|0;do if(!(h&7)){n=no(s,n,(h*24|0)+192|0,0)|0;if(!n){ig(s,r);break b}else{c[o>>2]=n;p=b[t>>1]|0;break}}while(0);_=p<<16>>16;Z=n+(_*24|0)|0;c[Z+0>>2]=0;c[Z+4>>2]=0;c[Z+8>>2]=0;c[Z+12>>2]=0;c[Z+16>>2]=0;c[Z+20>>2]=0;c[Z>>2]=r;a[n+(_*24|0)+21>>0]=65;a[n+(_*24|0)+22>>0]=1;b[t>>1]=(b[t>>1]|0)+1<<16>>16}}while(0);Y=u;Z=c[Y+4>>2]|0;_=ca;c[_>>2]=c[Y>>2];c[_+4>>2]=Z;c[$+324>>2]=0;break}case 22:{Pq($,0,f+(aa<<4)+16|0);break}case 23:{Pq($,1,f+(aa<<4)+16|0);break}case 8:{v=c[$>>2]|0;z=v+65|0;if(((a[z>>0]|0)==0?(a[$+18>>0]|0)==0:0)?(V=$+64|0,(c[V>>2]|0)==0):0){y=Kq($)|0;if(y){do{}while((Lq(y,61)|0)!=0);sh(y,24,0,0,0)|0;do if(!(a[z>>0]|0)){o=$+332|0;s=c[o>>2]|0;if((s|0)==0?(c[$+316>>2]|0)==0:0)break;p=y+32|0;q=c[p>>2]|0;if(q)c[(c[y+4>>2]|0)+8>>2]=q;c[(c[y+24>>2]|0)+88>>2]=q+-1;t=v+20|0;d:do if((c[t>>2]|0)>0){h=y+96|0;k=$+328|0;l=v+16|0;m=v+145|0;n=y+4|0;r=0;while(1){u=1<<r;if(((u&s|0)!=0?(c[h>>2]=c[h>>2]|u,_=c[(c[(c[l>>2]|0)+(r<<4)+12>>2]|0)+4>>2]|0,th(y,sh(y,4,r,(c[k>>2]&u|0)!=0&1,c[$+(r<<2)+336>>2]|0)|0,_,-14),(a[m>>0]|0)==0):0)?(K=c[n>>2]|0,(K|0)!=0):0)a[K+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=1;r=r+1|0;if((r|0)>=(c[t>>2]|0))break d;s=c[o>>2]|0}}while(0);p=$+452|0;if((c[p>>2]|0)>0){o=$+520|0;n=0;do{q=c[(c[(c[o>>2]|0)+(n<<2)>>2]|0)+60>>2]|0;e:do if(!q)q=0;else while(1){if((c[q>>2]|0)==(v|0))break e;q=c[q+24>>2]|0;if(!q){q=0;break}}while(0);th(y,sh(y,146,0,0,0)|0,q,-10);n=n+1|0}while((n|0)<(c[p>>2]|0))}c[p>>2]=0;p=Kq($)|0;o=$+396|0;if((c[o>>2]|0)>0){n=$+400|0;m=0;do{Y=c[n>>2]|0;_=c[Y+(m<<4)+12>>2]|0;th(p,sh(p,145,c[Y+(m<<4)>>2]|0,c[Y+(m<<4)+4>>2]|0,d[Y+(m<<4)+8>>0]|0)|0,_,-2);m=m+1|0}while((m|0)<(c[o>>2]|0))}k=c[$+8>>2]|0;q=c[$+404>>2]|0;if(q){h=(c[$>>2]|0)+16|0;r=k+32|0;s=k+4|0;do{o=c[q+8>>2]|0;p=c[q+12>>2]|0;Mq($,0,o,c[(c[(c[h>>2]|0)+(o<<4)+12>>2]|0)+72>>2]|0,54);o=p+1|0;sh(k,28,0,p,o)|0;n=c[r>>2]|0;l=p+-1|0;m=c[c[q+4>>2]>>2]|0;th(k,sh(k,97,0,l,0)|0,m,0);m=n+9|0;sh(k,108,0,m,0)|0;sh(k,47,0,0,p)|0;sh(k,78,l,n+7|0,p)|0;l=c[s>>2]|0;if(l)a[l+(((c[r>>2]|0)+-1|0)*20|0)+3>>0]=16;sh(k,103,0,o,0)|0;sh(k,47,0,1,p)|0;sh(k,16,0,m,0)|0;sh(k,9,0,n+2|0,0)|0;sh(k,25,0,p,0)|0;sh(k,61,0,0,0)|0;q=c[q>>2]|0}while((q|0)!=0)}p=c[$+316>>2]|0;if((p|0)!=0?(a[$+23>>0]=0,(c[p>>2]|0)>0):0){o=p+4|0;n=0;do{_=c[o>>2]|0;Nq($,c[_+(n*20|0)>>2]|0,c[_+(n*20|0)+16>>2]|0);n=n+1|0}while((n|0)<(c[p>>2]|0))}sh(y,16,0,1,0)|0}while(0);if((c[V>>2]|0)==0?(a[z>>0]|0)==0:0){if((c[$+404>>2]|0)!=0?(W=$+68|0,(c[W>>2]|0)==0):0)c[W>>2]=1;wh(y,$);c[$+12>>2]=101;a[$+16>>0]=0}else Z=48}else Z=48;if((Z|0)==48)c[$+12>>2]=1;c[$+68>>2]=0;c[$+72>>2]=0;c[$+76>>2]=0;c[$+440>>2]=0;c[$+332>>2]=0}break}case 58:{c[v>>2]=Vq($,157,c[f+(aa<<4)+16>>2]|0,0,0)|0;c[v+4>>2]=c[f+(aa+-1<<4)+16>>2];c[v+8>>2]=c[f+(aa<<4)+24>>2];Uq($,v);break}case 59:{_=f+(aa<<4)+16|0;c[u>>2]=Vq($,97,0,0,_)|0;_=c[_>>2]|0;c[u+4>>2]=_;c[u+8>>2]=_+(c[f+(aa<<4)+20>>2]|0);Uq($,u);break}case 61:{k=c[f+(aa<<4)+16>>2]|0;l=c[$+484>>2]|0;if((l|0)!=0?(s=b[l+38>>1]|0,s<<16>>16>=1):0)a[(c[l+4>>2]|0)+(((s<<16>>16)+-1|0)*24|0)+20>>0]=k;break}case 70:{c[ca>>2]=0;break}case 62:{Wq($,0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0,c[f+(aa+-2<<4)+16>>2]|0);break}case 63:{Xq($,0,0,0,0,c[f+(aa<<4)+16>>2]|0,0,0,0,0)|0;break}case 64:{Yq($,c[f+(aa+-1<<4)+16>>2]|0);break}case 9:{l=c[f+(aa+-1<<4)+16>>2]|0;k=c[$>>2]|0;if((Oq($,22,37104,0,0)|0)==0?(B=Kq($)|0,(B|0)!=0):0){if((l|0)!=7?(D=k+20|0,(c[D>>2]|0)>0):0){l=(l|0)==9?2:1;k=B+96|0;n=0;do{sh(B,4,n,l,0)|0;c[k>>2]=c[k>>2]|1<<n;n=n+1|0}while((n|0)<(c[D>>2]|0))}sh(B,3,0,0,0)|0}break}case 24:{Pq($,2,f+(aa<<4)+16|0);break}case 26:{Qq($,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0,c[f+(aa+-4<<4)+16>>2]|0,0,0,c[f+(aa+-2<<4)+16>>2]|0);break}case 221:case 218:case 108:case 97:case 85:case 83:case 81:case 68:case 31:case 28:{c[ca>>2]=0;break}case 27:{a[(c[$>>2]|0)+250>>0]=0;Z=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break}case 222:case 219:case 107:case 84:case 69:case 30:case 29:{c[ca>>2]=1;break}case 32:{Rq($,f+(aa+-2<<4)+16|0,f+(aa+-1<<4)+16|0,a[f+(aa<<4)+16>>0]|0,0);break}case 33:{_=f+(aa<<4)+16|0;Rq($,0,0,0,c[_>>2]|0);Ik(c[$>>2]|0,c[_>>2]|0,1);break}case 34:{a[ca>>0]=0;break}case 35:{l=c[f+(aa<<4)+20>>2]|0;k=c[f+(aa<<4)+16>>2]|0;if((l|0)==5?(Bc(k,20456,5)|0)==0:0){a[ca>>0]=32;break a}a[ca>>0]=0;c[_>>2]=l;c[_+4>>2]=k;ph($,20464,_);break}case 44:{l=f+(aa<<4)+16|0;k=c[$+484>>2]|0;if((k|0)!=0?(G=b[k+38>>1]|0,G<<16>>16>=1):0){_=(G<<16>>16)+-1|0;Z=c[k+4>>2]|0;$=Sq(c[$>>2]|0,l)|0;c[Z+(_*24|0)+12>>2]=$;a[Z+(_*24|0)+21>>0]=Tq($,Z+(_*24|0)+22|0)|0}break}case 65:{Zq($,0,f+(aa+-2<<4)+16|0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0);break}case 66:{k=c[f+(aa<<4)+16>>2]|0;l=c[$+484>>2]|0;if((l|0)!=0?(r=c[l+16>>2]|0,(r|0)!=0):0)a[r+24>>0]=k;break}case 67:{n=c[$+484>>2]|0;if((n|0)!=0?(A=(b[n+38>>1]|0)+-1|0,o=c[$>>2]|0,m=Sq(o,f+(aa<<4)+16|0)|0,(m|0)!=0):0){if(!(_q($,m)|0)){ig(o,m);break a}p=n+4|0;ig(o,c[(c[p>>2]|0)+(A*24|0)+16>>2]|0);c[(c[p>>2]|0)+(A*24|0)+16>>2]=m;l=c[n+8>>2]|0;if(l)do{if((b[c[l+4>>2]>>1]|0)==(A|0))c[c[l+32>>2]>>2]=c[(c[p>>2]|0)+(A*24|0)+16>>2];l=c[l+20>>2]|0}while((l|0)!=0)}break}case 47:{$=c[f+(aa+-5<<4)+16>>2]|0;c[ca>>2]=$;c[ca+4>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0)-$;break}case 49:{$=c[f+(aa+-1<<4)+16>>2]|0;c[ca>>2]=$;c[ca+4>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0)-$;break}case 92:case 54:{Z=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=$+320|0;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break}case 57:case 55:{Uq($,f+(aa<<4)+16|0);break}case 56:{Uq($,f+(aa+-1<<4)+16|0);break}case 279:case 263:case 262:case 261:case 260:case 259:case 258:case 257:case 256:case 247:case 150:case 141:case 131:case 130:case 48:case 45:case 42:case 41:case 40:{Z=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break}case 46:{$=c[f+(aa+-3<<4)+16>>2]|0;c[ca>>2]=$;c[ca+4>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0)-$;break}case 224:{h=Vq($,119,0,0,0)|0;c[ca>>2]=h;if(!h)Ik(c[$>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,1);else{c[h+20>>2]=c[f+(aa+-1<<4)+16>>2];_=c[ca>>2]|0;Z=_+4|0;c[Z>>2]=c[Z>>2]|2099200;ur($,_)}c[ca+4>>2]=c[f+(aa+-2<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 226:{l=aa+-1|0;k=f+(l<<4)+16|0;o=f+(aa<<4)+16|0;n=lr(c[$>>2]|0,0,k,o)|0;p=aa+-3|0;m=Vq($,75,c[f+(p<<4)+16>>2]|0,0,0)|0;c[ca>>2]=m;if(!m){zo(c[$>>2]|0,n);n=0}else{c[m+20>>2]=gr($,0,n,0,0,0,0,0,0,0)|0;n=c[ca>>2]|0;_=n+4|0;c[_>>2]=c[_>>2]|2099200;ur($,n)}if(c[f+(aa+-2<<4)+16>>2]|0)c[ca>>2]=Vq($,19,n,0,0)|0;c[ca+4>>2]=c[f+(p<<4)+20>>2];h=c[o>>2]|0;if(!h)h=(c[k>>2]|0)+(c[f+(l<<4)+20>>2]|0)|0;else h=h+(c[f+(aa<<4)+20>>2]|0)|0;c[ca+8>>2]=h;break}case 225:{l=aa+-4|0;h=Vq($,75,c[f+(l<<4)+16>>2]|0,0,0)|0;c[ca>>2]=h;if(!h){Ik(c[$>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,1);h=0}else{c[h+20>>2]=c[f+(aa+-1<<4)+16>>2];h=c[ca>>2]|0;_=h+4|0;c[_>>2]=c[_>>2]|2099200;ur($,h)}if(c[f+(aa+-3<<4)+16>>2]|0)c[ca>>2]=Vq($,19,h,0,0)|0;c[ca+4>>2]=c[f+(l<<4)+20>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 227:{h=Vq($,20,0,0,0)|0;c[ca>>2]=h;if(!h)Ik(c[$>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,1);else{c[h+20>>2]=c[f+(aa+-1<<4)+16>>2];_=h+4|0;c[_>>2]=c[_>>2]|2099200;ur($,h)}c[ca+4>>2]=c[f+(aa+-3<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 228:{k=Vq($,136,c[f+(aa+-3<<4)+16>>2]|0,0,0)|0;c[ca>>2]=k;if(!k){Jk(c[$>>2]|0,c[f+(aa+-2<<4)+16>>2]|0);Ck(c[$>>2]|0,c[f+(aa+-1<<4)+16>>2]|0)}else{l=c[f+(aa+-1<<4)+16>>2]|0;h=c[f+(aa+-2<<4)+16>>2]|0;if(l)h=hr($,h,l)|0;c[k+20>>2]=h;ur($,c[ca>>2]|0)}c[ca+4>>2]=c[f+(aa+-4<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 291:case 240:{c[ca>>2]=2;break}case 241:{c[ca>>2]=0;break}case 239:{Xq($,f+(aa+-7<<4)+16|0,f+(aa+-6<<4)+16|0,lr(c[$>>2]|0,0,f+(aa+-4<<4)+16|0,0)|0,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa+-10<<4)+16>>2]|0,f+(aa+-11<<4)+16|0,c[f+(aa<<4)+16>>2]|0,0,c[f+(aa+-8<<4)+16>>2]|0)|0;break}case 229:{c[ca>>2]=hr($,hr($,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa+-2<<4)+16>>2]|0)|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 230:{c[ca>>2]=hr($,hr($,0,c[f+(aa+-2<<4)+16>>2]|0)|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 237:{c[ca>>2]=hr($,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 238:{c[ca>>2]=hr($,0,c[f+(aa<<4)+16>>2]|0)|0;break}case 245:{h=hr($,0,rr($,0,f+(aa+-1<<4)+16|0,1)|0)|0;c[ca>>2]=h;ir($,h,f+(aa+-2<<4)+16|0,1);if(h){if((c[h>>2]|0)>(c[(c[$>>2]|0)+96>>2]|0)){c[_>>2]=20632;ph($,34544,_)}a[(c[h+4>>2]|0)+(((c[h>>2]|0)+-1|0)*20|0)+12>>0]=c[f+(aa<<4)+16>>2]}break}case 244:{h=rr($,0,f+(aa+-1<<4)+16|0,1)|0;h=hr($,c[f+(aa+-4<<4)+16>>2]|0,h)|0;c[ca>>2]=h;ir($,h,f+(aa+-2<<4)+16|0,1);if(h){if((c[h>>2]|0)>(c[(c[$>>2]|0)+96>>2]|0)){c[_>>2]=20632;ph($,34544,_)}a[(c[h+4>>2]|0)+(((c[h>>2]|0)+-1|0)*20|0)+12>>0]=c[f+(aa<<4)+16>>2]}break}case 248:{s=c[f+(aa<<4)+16>>2]|0;p=c[f+(aa+-1<<4)+16>>2]|0;r=c[$>>2]|0;do if((a[r+65>>0]|0)==0?(Cn($)|0)==0:0){o=s+12|0;k=Zp(r,c[s+16>>2]|0,c[o>>2]|0)|0;if(!k){if(!p){c[_>>2]=s;c[_+4>>2]=0;ph($,33056,_)}else vr($,c[o>>2]|0);a[$+17>>0]=1;break}if(a[k+51>>0]&3){c[_>>2]=0;ph($,33080,_);break}p=c[k+24>>2]|0;f:do if(p){o=c[r+20>>2]|0;if((o|0)>0){n=c[r+16>>2]|0;q=0;while(1){m=q+1|0;if((c[n+(q<<4)+12>>2]|0)==(p|0)){m=q;break f}if((m|0)<(o|0))q=m;else break}}else m=0}else m=-1e6;while(0);p=c[k+12>>2]|0;o=r+16|0;n=c[(c[o>>2]|0)+(m<<4)>>2]|0;l=(m|0)==1?13184:13208;if(((Oq($,9,l,0,n)|0)==0?(Oq($,(m|0)==0?10:12,c[k>>2]|0,c[p>>2]|0,n)|0)==0:0)?(H=Kq($)|0,(H|0)!=0):0){Z=c[$+408>>2]|0;Z=(Z|0)==0?$:Z;wr($,m);Y=Z+328|0;c[Y>>2]=c[Y>>2]|1<<m;Z=Z+20|0;a[Z>>0]=d[Z>>0]|1;Z=c[k>>2]|0;c[_>>2]=c[(c[o>>2]|0)+(m<<4)>>2];c[_+4>>2]=l;c[_+8>>2]=Z;xr($,33160,_);yr($,m,28536,c[k>>2]|0);zr($,m);Ar($,c[k+40>>2]|0,m);$=c[k>>2]|0;th(H,sh(H,125,m,0,0)|0,$,0)}}while(0);zo(r,s);break}case 246:{c[ca>>2]=0;c[ca+4>>2]=0;break}case 250:case 249:{h=Kq($)|0;if(h){sh(h,13,0,0,0)|0;$=h+96|0;c[$>>2]=c[$>>2]|1}break}case 251:{Br($,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0,0,0);break}case 252:{Br($,f+(aa+-3<<4)+16|0,f+(aa+-2<<4)+16|0,f+(aa<<4)+16|0,0);break}case 253:{Br($,f+(aa+-4<<4)+16|0,f+(aa+-3<<4)+16|0,f+(aa+-1<<4)+16|0,0);break}case 254:{Br($,f+(aa+-3<<4)+16|0,f+(aa+-2<<4)+16|0,f+(aa<<4)+16|0,1);break}case 255:{Br($,f+(aa+-4<<4)+16|0,f+(aa+-3<<4)+16|0,f+(aa+-1<<4)+16|0,1);break}case 264:{h=c[f+(aa+-3<<4)+16>>2]|0;l=(c[f+(aa<<4)+16>>2]|0)-h+(c[f+(aa<<4)+20>>2]|0)|0;k=c[f+(aa+-1<<4)+16>>2]|0;Z=$+488|0;w=c[Z>>2]|0;x=c[$>>2]|0;c[Z>>2]=0;g:do if((c[$+64>>2]|0)==0&(w|0)!=0){v=c[w>>2]|0;m=w+20|0;s=c[m>>2]|0;h:do if(s){r=c[x+20>>2]|0;if((r|0)>0){p=c[x+16>>2]|0;n=0;while(1){o=n+1|0;if((c[p+(n<<4)+12>>2]|0)==(s|0))break h;if((o|0)<(r|0))n=o;else{n=o;break}}}else n=0}else n=-1e6;while(0);c[w+28>>2]=k;u=(k|0)==0;if(!u){p=k;do{c[p+4>>2]=w;p=c[p+32>>2]|0}while((p|0)!=0)}c[X>>2]=v;if(!v)p=0;else{p=v;while(1)if(!(a[p>>0]|0))break;else p=p+1|0;p=p-v&1073741823}c[X+4>>2]=p;c[Y>>2]=$;t=x+16|0;s=c[t>>2]|0;c[Y+12>>2]=c[s+(n<<4)>>2];c[Y+4>>2]=c[s+(n<<4)+12>>2];c[Y+16>>2]=10720;c[Y+20>>2]=X;s=(n|0)==1;c[Y+8>>2]=s&1;if(!u)do{if(br(Y,c[k+8>>2]|0)|0){k=0;l=w;break g}if(Cr(Y,c[k+20>>2]|0)|0){k=0;l=w;break g}if(Dr(Y,c[k+24>>2]|0)|0){k=0;l=w;break g}k=c[k+32>>2]|0}while((k|0)!=0);if(!(Cr(Y,c[w+12>>2]|0)|0)){p=x+145|0;if(!(a[p>>0]|0)){o=Kq($)|0;if(!o){k=0;l=w;break}Z=c[$+408>>2]|0;wr($,n);Z=((Z|0)==0?$:Z)+328|0;c[Z>>2]=c[Z>>2]|1<<n;if((h|0)!=0?(q=fw(l|0,0,1,0)|0,q=ih(x,q,C)|0,(q|0)!=0):0){gw(q|0,h|0,l|0)|0;a[q+l>>0]=0}else q=0;Z=c[w+4>>2]|0;c[_>>2]=c[(c[t>>2]|0)+(n<<4)>>2];c[_+4>>2]=s?13184:13208;c[_+8>>2]=v;c[_+12>>2]=Z;c[_+16>>2]=q;xr($,30008,_);ig(x,q);zr($,n);c[_>>2]=v;Er(o,n,qh(x,30072,_)|0);if(!(a[p>>0]|0)){k=0;l=w;break}}l=Ek((c[(c[t>>2]|0)+(n<<4)+12>>2]|0)+40|0,v,w)|0;if(l){a[x+65>>0]=1;k=0;break}k=c[m>>2]|0;if((k|0)==(c[w+24>>2]|0)){k=Zm(k+8|0,c[w+4>>2]|0,_)|0;if(!k)k=0;else k=c[k+8>>2]|0;k=k+64|0;c[w+32>>2]=c[k>>2];c[k>>2]=w;k=0}else k=0}else{k=0;l=w}}else l=w;while(0);fg(x,l);Bk(x,k);break}case 265:{A=f+(aa+-7<<4)+16|0;z=aa+-6|0;B=f+(z<<4)+16|0;o=c[f+(aa+-5<<4)+16>>2]|0;D=aa+-4|0;y=c[f+(D<<4)+16>>2]|0;D=c[f+(D<<4)+20>>2]|0;E=c[f+(aa+-2<<4)+16>>2]|0;F=c[f+(aa<<4)+16>>2]|0;k=c[f+(aa+-8<<4)+16>>2]|0;G=c[$>>2]|0;w=(c[f+(aa+-10<<4)+16>>2]|0)!=0;do if(w)if(!(c[f+(z<<4)+20>>2]|0)){c[Y>>2]=A;if(!E){p=0;q=0;break}else{s=1;Z=483;break}}else{ph($,29664,_);p=0;q=0;break}else{s=ar($,A,B,Y)|0;if((s|0)>-1&(E|0)!=0)Z=483;else{p=0;q=0}}while(0);do if((Z|0)==483){h=G+65|0;if(!(a[h>>0]|0)){u=G+145|0;if((a[u>>0]|0)!=0&(s|0)!=1){Z=E+12|0;ig(G,c[Z>>2]|0);c[Z>>2]=0}t=Fr($,E)|0;if((a[u>>0]|0)==0?((t|0)!=0?(c[f+(z<<4)+20>>2]|0)==0:0):0)s=(c[t+68>>2]|0)==(c[(c[G+16>>2]|0)+28>>2]|0)?1:s;if((a[h>>0]|0)==0?(O=c[Y>>2]|0,Z=c[$>>2]|0,c[X>>2]=$,Z=c[Z+16>>2]|0,c[X+12>>2]=c[Z+(s<<4)>>2],c[X+4>>2]=c[Z+(s<<4)+12>>2],c[X+16>>2]=10720,c[X+20>>2]=O,c[X+8>>2]=(s|0)==1&1,(Gr(X,E)|0)==0):0){u=Fr($,E)|0;if(!u){if((a[G+144>>0]|0)!=1){p=0;q=0;break}a[G+146>>0]=1;p=0;q=0;break}if(a[u+44>>0]&16){ph($,29712,_);p=0;q=0;break}q=Sq(G,O)|0;if(q)if(!(Hr($,q)|0)){x=G+16|0;Z=Zm((c[(c[x>>2]|0)+(s<<4)+12>>2]|0)+40|0,q,P)|0;if((Z|0)!=0?(c[Z+8>>2]|0)!=0:0)if(!k){c[_>>2]=O;ph($,29760,_);p=0;break}else{wr($,s);p=0;break}v=c[u>>2]|0;if(!(Bc(v,25568,7)|0)){ph($,29792,_);p=$+64|0;c[p>>2]=(c[p>>2]|0)+1;p=0;break}r=c[u+12>>2]|0;if((r|0)!=0&(o|0)!=49){c[_>>2]=(o|0)==35?29872:29880;c[_+4>>2]=E;c[_+8>>2]=0;ph($,29832,_);p=0;break}n=(o|0)==49;if((r|0)==0&n){c[_>>2]=E;c[_+4>>2]=0;ph($,29888,_);p=0;break}m=u+68|0;u=c[m>>2]|0;i:do if(u){t=c[G+20>>2]|0;if((t|0)>0){k=c[x>>2]|0;l=0;while(1){h=l+1|0;if((c[k+(l<<4)+12>>2]|0)==(u|0)){h=l;break i}if((h|0)<(t|0))l=h;else break}}else h=0}else h=-1e6;while(0);u=c[x>>2]|0;k=c[u+(h<<4)>>2]|0;if(w)t=c[u+16>>2]|0;else t=k;u=(h|0)==1;if((Oq($,u|w?5:7,q,v,t)|0)==0?(Oq($,18,u?13184:13208,0,k)|0)==0:0){p=ih(G,36,0)|0;if(!p){p=0;break}v=p+0|0;k=v+36|0;do{a[v>>0]=0;v=v+1|0}while((v|0)<(k|0));c[p>>2]=q;c[p+4>>2]=gh(G,c[E+16>>2]|0)|0;c[p+20>>2]=c[(c[x>>2]|0)+(s<<4)+12>>2];c[p+24>>2]=c[m>>2];a[p+8>>0]=y;a[p+9>>0]=n|(o|0)==35?1:2;c[p+12>>2]=Ir(G,F,1,0)|0;c[p+16>>2]=Jr(G,D)|0;c[$+488>>2]=p;q=0}else p=0}else p=0;else{p=0;q=0}}else{p=0;q=0}}else{p=0;q=0}}while(0);ig(G,q);zo(G,E);Dk(G,D);Ck(G,F);if(!(c[$+488>>2]|0))fg(G,p);if(!(c[f+(z<<4)+20>>2]|0)){Z=A;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break a}else{Z=B;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break a}}case 269:case 266:{c[ca>>2]=35;break}case 267:{c[ca>>2]=31;break}case 268:{c[ca>>2]=49;break}case 284:{l=c[$>>2]|0;k=c[f+(aa+-1<<4)+16>>2]|0;h=c[f+(aa<<4)+16>>2]|0;m=a[f+(aa+-5<<4)+16>>0]|0;n=Kr(l,110,f+(aa+-4<<4)+16|0)|0;if(n){c[n+24>>2]=Lr(l,k,1)|0;c[n+20>>2]=Ir(l,h,1,0)|0;a[n+1>>0]=m}Jk(l,k);Ck(l,h);c[ca>>2]=n;break}case 271:case 270:{c[ca>>2]=d[f+(aa<<4)+14>>0];c[ca+4>>2]=0;break}case 272:{c[ca>>2]=110;c[ca+4>>2]=c[f+(aa<<4)+16>>2];break}case 296:case 275:{c[ca>>2]=0;break}case 297:case 276:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 277:{_=f+(aa+-1<<4)+16|0;$=f+(aa+-2<<4)+16|0;c[(c[(c[$>>2]|0)+36>>2]|0)+32>>2]=c[_>>2];c[(c[$>>2]|0)+36>>2]=c[_>>2];c[ca>>2]=c[$>>2];break}case 278:{$=f+(aa+-1<<4)+16|0;_=c[$>>2]|0;c[_+36>>2]=_;c[ca>>2]=c[$>>2];break}case 282:{ph($,20736,_);break}case 280:{X=f+(aa<<4)+16|0;Y=c[X+4>>2]|0;Z=ca;c[Z>>2]=c[X>>2];c[Z+4>>2]=Y;ph($,20640,_);break}case 283:{ph($,20824,_);break}case 286:{h=c[$>>2]|0;k=c[f+(aa<<4)+16>>2]|0;l=Kr(h,109,f+(aa+-2<<4)+16|0)|0;if(l){c[l+20>>2]=Ir(h,k,1,0)|0;a[l+1>>0]=10}Ck(h,k);c[ca>>2]=l;break}case 287:{l=c[$>>2]|0;n=c[f+(aa<<4)+16>>2]|0;h=ih(l,40,0)|0;if(!h){Ik(l,n,1);h=0}else{v=h+0|0;k=v+40|0;do{a[v>>0]=0;v=v+1|0}while((v|0)<(k|0));a[h>>0]=119;c[h+8>>2]=n;a[h+1>>0]=10}c[ca>>2]=h;break}case 285:{n=c[$>>2]|0;m=c[f+(aa+-1<<4)+16>>2]|0;l=c[f+(aa<<4)+16>>2]|0;k=a[f+(aa+-4<<4)+16>>0]|0;h=Kr(n,108,f+(aa+-2<<4)+16|0)|0;if(!h)Dk(n,m);else{c[h+8>>2]=cr(n,l,1)|0;c[h+28>>2]=m;a[h+1>>0]=k}Ik(n,l,1);c[ca>>2]=h;break}case 288:{h=Vq($,57,0,0,0)|0;c[ca>>2]=h;if(h)a[h+1>>0]=4;c[ca+4>>2]=c[f+(aa+-3<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 289:{h=Vq($,57,0,0,f+(aa+-1<<4)+16|0)|0;c[ca>>2]=h;if(h)a[h+1>>0]=c[f+(aa+-3<<4)+16>>2];c[ca+4>>2]=c[f+(aa+-5<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 290:{c[ca>>2]=1;break}case 292:{c[ca>>2]=3;break}case 293:{k=c[f+(aa<<4)+16>>2]|0;h=c[f+(aa+-1<<4)+16>>2]|0;t=c[$>>2]|0;do if((a[t+65>>0]|0)==0?(Cn($)|0)==0:0){u=c[k+12>>2]|0;s=c[k+16>>2]|0;r=t+20|0;if((c[r>>2]|0)>0){n=(u|0)==0;m=t+16|0;l=0;p=0;do{o=(l|0)<2^l;q=c[m>>2]|0;if(!(!n?($c(c[q+(o<<4)>>2]|0,u)|0)!=0:0)){q=Zm((c[q+(o<<4)+12>>2]|0)+40|0,s,I)|0;if(q){p=c[q+8>>2]|0;if(p)break}else p=0}l=l+1|0}while((l|0)<(c[r>>2]|0));if(p){Mr($,p);break}}if(!h){c[_>>2]=k;c[_+4>>2]=0;ph($,29600,_)}else vr($,u);a[$+17>>0]=1}while(0);zo(t,k);break}case 294:{_=c[f+(aa+-3<<4)+16>>2]|0;Nr($,24,29360,_,_,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0);break}case 303:{Pr($,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0);break}case 304:{w=c[f+(aa+-3<<4)+16>>2]|0;u=f+(aa<<4)+16|0;v=c[$>>2]|0;k=v+24|0;l=c[k>>2]|0;do if((a[v+65>>0]|0)==0?(U=Qr($,0,w+8|0)|0,(U|0)!=0):0){q=c[$>>2]|0;x=U+68|0;s=c[x>>2]|0;j:do if(s){r=c[q+20>>2]|0;if((r|0)>0){q=c[q+16>>2]|0;o=0;while(1){p=o+1|0;if((c[q+(o<<4)+12>>2]|0)==(s|0)){p=o;break j}if((p|0)<(r|0))o=p;else break}}else p=0}else p=-1e6;while(0);h=c[(c[v+16>>2]|0)+(p<<4)>>2]|0;c[k>>2]=c[k>>2]|2097152;n=Sq(v,u)|0;if(n){if((Wh(v,n,h)|0)==0?(Zp(v,n,h)|0)==0:0){if(Rr($,c[U>>2]|0)|0)break;if(Hr($,n)|0)break;q=c[U>>2]|0;if(c[U+12>>2]|0){c[_>>2]=q;ph($,26088,_);break}if(Oq($,26,h,q,0)|0)break;if(dr($,U)|0)break;if(!(a[U+44>>0]&16))m=0;else{q=c[U+60>>2]|0;k:do if(!q)q=0;else while(1){if((c[q>>2]|0)==(v|0))break k;q=c[q+24>>2]|0;if(!q){q=0;break}}while(0);m=(c[(c[c[q+8>>2]>>2]|0)+76>>2]|0)==0?0:q}q=Kq($)|0;if(!q)break;Z=(m|0)!=0;o=$+408|0;Y=c[o>>2]|0;Y=(Y|0)==0?$:Y;wr($,p);X=Y+328|0;c[X>>2]=c[X>>2]|1<<p;Y=Y+20|0;a[Y>>0]=d[Y>>0]|Z&1;zr($,p);if(Z){Y=$+72|0;Z=(c[Y>>2]|0)+1|0;c[Y>>2]=Z;th(q,sh(q,97,0,Z,0)|0,n,0);th(q,sh(q,152,Z,0,0)|0,m,-10);Z=c[o>>2]|0;a[((Z|0)==0?$:Z)+21>>0]=1}u=c[U>>2]|0;t=Jn(u,-1)|0;do if((c[k>>2]&524288|0)!=0?(Q=Zm((c[x>>2]|0)+56|0,u,S)|0,(Q|0)!=0):0){q=c[Q+8>>2]|0;if(!q)break;o=q;q=0;do{q=Sr(c[$>>2]|0,q,c[c[o>>2]>>2]|0)|0;o=c[o+12>>2]|0}while((o|0)!=0);if(!q)break;c[_>>2]=h;c[_+4>>2]=(p|0)==1?13184:13208;c[_+8>>2]=u;c[_+12>>2]=n;c[_+16>>2]=q;xr($,26120,_);ig(v,q)}while(0);c[_>>2]=h;c[_+4>>2]=(p|0)==1?13184:13208;c[_+8>>2]=n;c[_+12>>2]=n;c[_+16>>2]=n;c[_+20>>2]=n;c[_+24>>2]=n;c[_+28>>2]=t;c[_+32>>2]=u;xr($,26192,_);if(Wh(v,26576,h)|0){Z=c[U>>2]|0;c[_>>2]=h;c[_+4>>2]=n;c[_+8>>2]=Z;xr($,26592,_)}p=Tr($,U)|0;if(p){c[_>>2]=n;c[_+4>>2]=n;c[_+8>>2]=p;xr($,26656,_);ig(v,p)}do if(c[k>>2]&524288){p=Zm((c[x>>2]|0)+56|0,c[U>>2]|0,_)|0;if(!p)break;p=c[p+8>>2]|0;if(!p)break;do{o=c[p>>2]|0;if((o|0)!=(U|0))Ur($,o,c[o>>2]|0);p=c[p+12>>2]|0}while((p|0)!=0)}while(0);Ur($,U,n);break}c[_>>2]=n;ph($,26024,_)}else n=0}else n=0;while(0);zo(v,w);ig(v,n);c[k>>2]=l;break}case 295:{_=c[f+(aa<<4)+16>>2]|0;Nr($,25,29176,_,0,0,_);break}case 300:{Or($,0,0);break}case 302:{Pr($,0,0);break}case 301:{Or($,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0);break}case 305:{v=c[$>>2]|0;if((c[$+64>>2]|0)==0?(J=v+65|0,(a[J>>0]|0)==0):0){l=c[$+484>>2]|0;q=c[l+68>>2]|0;l:do if(q){p=c[v+20>>2]|0;if((p|0)>0){o=c[v+16>>2]|0;m=0;while(1){n=m+1|0;if((c[o+(m<<4)+12>>2]|0)==(q|0)){x=m;break l}if((n|0)<(p|0))m=n;else{x=n;break}}}else x=0}else x=-1e6;while(0);h=c[(c[v+16>>2]|0)+(x<<4)>>2]|0;k=(c[l>>2]|0)+16|0;r=(b[l+38>>1]|0)+-1|0;p=c[l+4>>2]|0;q=c[p+(r*24|0)+4>>2]|0;w=Wh(v,k,h)|0;if(!(Oq($,26,h,c[w>>2]|0,0)|0)){if(!q)s=0;else s=(a[q>>0]|0)==101?0:q;if(a[p+(r*24|0)+23>>0]&1){ph($,25608,_);break a}if(c[l+8>>2]|0){ph($,25640,_);break a}u=v+24|0;if((c[u>>2]&524288|0)!=0?(c[l+16>>2]|0)!=0&(s|0)!=0:0){ph($,25672,_);break a}t=(s|0)!=0;if(!((a[p+(r*24|0)+20>>0]|0)==0|t)){ph($,25736,_);break a}do if(t){c[L>>2]=0;if(Vr(v,s,1,65,L)|0){a[J>>0]=1;break a}q=c[L>>2]|0;if(!q){ph($,25792,_);break a}else{Ih(q);break}}while(0);q=c[f+(aa<<4)+16>>2]|0;p=f+(aa<<4)+20|0;o=c[p>>2]|0;if((q|0)!=0?(R=fw(o|0,0,1,0)|0,R=ih(v,R,C)|0,(R|0)!=0):0){gw(R|0,q|0,o|0)|0;a[R+o>>0]=0;q=(c[p>>2]|0)+-1|0;p=c[u>>2]|0;m:do if((q|0)>0){q=R+q|0;do{Y=a[q>>0]|0;if(Y<<24>>24!=59?(a[10368+(Y&255)>>0]&1)==0:0)break m;a[q>>0]=0;q=q+-1|0}while(q>>>0>R>>>0)}while(0);c[u>>2]=c[u>>2]|2097152;Y=c[l+48>>2]|0;c[_>>2]=h;c[_+4>>2]=(x|0)==1?13184:13208;c[_+8>>2]=Y;c[_+12>>2]=R;c[_+16>>2]=Y+1;c[_+20>>2]=k;xr($,25840,_);ig(v,R);c[u>>2]=p}q=t?3:2;s=Kq($)|0;if(s){p=$+19|0;n=a[p>>0]|0;do if(n<<24>>24){_=n+-1<<24>>24;a[p>>0]=_;o=c[$+((_&255)<<2)+24>>2]|0;if(!(_<<24>>24)){p=c[$+72>>2]|0;Z=663;break}else{k=n+-2<<24>>24;a[p>>0]=k;k=c[$+((k&255)<<2)+24>>2]|0;break}}else{o=$+72|0;p=(c[o>>2]|0)+1|0;c[o>>2]=p;o=p;Z=663}while(0);if((Z|0)==663){k=p+1|0;c[$+72>>2]=k}sh(s,51,x,o,2)|0;m=s+96|0;c[m>>2]=c[m>>2]|1<<x;sh(s,25,q,k,0)|0;m=sh(s,83,k,0,o)|0;l=s+4|0;n=c[l>>2]|0;p=s+32|0;if(n)a[n+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=-112;sh(s,52,x,2,k)|0;p=c[p>>2]|0;if(p>>>0>m>>>0)c[(c[l>>2]|0)+(m*20|0)+8>>2]=p;c[(c[s+24>>2]|0)+88>>2]=p+-1;Wr($,o);Wr($,k)}Ur($,w,c[w>>2]|0)}}break}case 306:{t=c[$>>2]|0;a[t+250>>0]=0;h=c[f+(aa<<4)+16>>2]|0;u=t+65|0;do if((a[u>>0]|0)==0?(N=Qr($,0,h+8|0)|0,(N|0)!=0):0){if(a[N+44>>0]&16){ph($,25400,_);break}if(c[N+12>>2]|0){ph($,25440,_);break}if(!(Rr($,c[N>>2]|0)|0)){p=c[N+68>>2]|0;n:do if(p){o=c[t+20>>2]|0;if((o|0)>0){n=c[t+16>>2]|0;q=0;while(1){m=q+1|0;if((c[n+(q<<4)+12>>2]|0)==(p|0)){m=q;break n}if((m|0)<(o|0))q=m;else break}}else m=0}else m=-1e6;while(0);s=ih(t,76,0)|0;if(s){v=s+0|0;k=v+76|0;do{a[v>>0]=0;v=v+1|0}while((v|0)<(k|0));c[$+484>>2]=s;o=s+40|0;b[o>>1]=1;q=b[N+38>>1]|0;n=s+38|0;b[n>>1]=q;q=((((q<<16>>16)+-1|0)/8|0)*192|0)+192|0;p=ih(t,q,0)|0;if(p)bw(p|0,0,q|0)|0;q=s+4|0;c[q>>2]=p;c[_>>2]=c[N>>2];_=qh(t,25472,_)|0;c[s>>2]=_;p=c[q>>2]|0;if((p|0)==0|(_|0)==0){a[u>>0]=1;break}gw(p|0,c[N+4>>2]|0,(b[n>>1]|0)*24|0)|0;if((b[n>>1]|0)>0){p=0;do{_=c[q>>2]|0;Z=_+(p*24|0)|0;c[Z>>2]=gh(t,c[Z>>2]|0)|0;_=_+(p*24|0)+4|0;p=p+1|0;c[_+0>>2]=0;c[_+4>>2]=0;c[_+8>>2]=0;c[_+12>>2]=0}while((p|0)<(b[n>>1]|0))}c[s+68>>2]=c[(c[t+16>>2]|0)+(m<<4)+12>>2];c[s+48>>2]=c[N+48>>2];b[o>>1]=1;_=c[$+408>>2]|0;wr($,m);_=((_|0)==0?$:_)+328|0;c[_>>2]=c[_>>2]|1<<m;if(Kq($)|0)zr($,m)}}}while(0);zo(t,h);break}case 309:{Xr($,0);break}case 310:{Xr($,f+(aa<<4)+16|0);break}case 311:{k=f+(aa<<4)+16|0;Qq($,f+(aa+-3<<4)+16|0,f+(aa+-2<<4)+16|0,0,0,1,c[f+(aa+-4<<4)+16>>2]|0);q=c[$+484>>2]|0;if(q){h=c[$>>2]|0;p=c[q+68>>2]|0;o:do if(p){o=c[h+20>>2]|0;if((o|0)>0){m=c[h+16>>2]|0;l=0;while(1){n=l+1|0;if((c[m+(l<<4)+12>>2]|0)==(p|0)){n=l;break o}if((n|0)<(o|0))l=n;else break}}else n=0}else n=-1e6;while(0);l=q+44|0;a[l>>0]=d[l>>0]|16;c[q+52>>2]=0;Yr(h,q,Sq(h,k)|0);Yr(h,q,0);Yr(h,q,gh(h,c[q>>2]|0)|0);c[$+500>>2]=(c[k>>2]|0)+(c[f+(aa<<4)+20>>2]|0)-(c[$+496>>2]|0);l=c[q+56>>2]|0;if(l)Oq($,29,c[q>>2]|0,c[l>>2]|0,c[(c[(c[$>>2]|0)+16>>2]|0)+(n<<4)>>2]|0)|0}break}case 322:{c[ca>>2]=0;break}case 324:case 323:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 325:{c[ca>>2]=_r($,0,f+(aa+-5<<4)+16|0,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0)|0;break}case 326:{c[ca>>2]=_r($,c[f+(aa+-7<<4)+16>>2]|0,f+(aa+-5<<4)+16|0,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0)|0;break}case 314:{Zr($);c[$+512>>2]=0;c[$+516>>2]=0;break}case 318:case 317:case 316:{l=$+512|0;k=c[l>>2]|0;h=c[f+(aa<<4)+16>>2]|0;if(!k){c[l>>2]=h;h=c[f+(aa<<4)+20>>2]|0}else h=h+(c[f+(aa<<4)+20>>2]|0)-k|0;c[$+516>>2]=h;break}case 13:{c[ca>>2]=7;break}case 117:case 115:case 16:case 15:case 14:{c[ca>>2]=d[f+(aa<<4)+14>>0];break}case 18:case 17:{if((Oq($,22,37136,0,0)|0)==0?(y=Kq($)|0,(y|0)!=0):0)sh(y,3,1,0,0)|0;break}case 19:{if((Oq($,22,37120,0,0)|0)==0?(x=Kq($)|0,(x|0)!=0):0)sh(x,3,1,1,0)|0;break}case 74:{c[ca>>2]=c[f+(aa<<4)+16>>2];c[ca+4>>2]=255;break}case 76:{c[ca>>2]=7;break}case 75:{c[ca>>2]=c[f+(aa<<4)+16>>2]<<8;c[ca+4>>2]=65280;break}case 77:{c[ca>>2]=8;break}case 78:{c[ca>>2]=9;break}case 79:{c[ca>>2]=6;break}case 80:{c[ca>>2]=0;break}case 103:case 100:case 98:case 82:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 86:{c[ca+4>>2]=0;c[ca>>2]=0;break}case 71:{c[ca>>2]=c[f+(aa+-1<<4)+16>>2]&~c[f+(aa<<4)+20>>2]|c[f+(aa<<4)+16>>2];break}case 73:case 72:{c[ca>>2]=0;c[ca+4>>2]=0;break}case 93:{Wq($,c[f+(aa+-3<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0,c[f+(aa+-2<<4)+16>>2]|0,0);break}case 94:{Xq($,0,0,0,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0,0,0,0,0)|0;break}case 95:{Yq($,c[f+(aa+-2<<4)+16>>2]|0);break}case 87:{Z=f+(aa+-1<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break}case 90:{c[$+324>>2]=0;break}case 104:{c[ca>>2]=4;break}case 105:{c[ca>>2]=5;break}case 106:{$q($,c[f+(aa<<4)+16>>2]|0,0,c[f+(aa+-1<<4)+16>>2]|0);break}case 109:{h=aa+-7|0;o=f+(aa+-3<<4)+16|0;n=f+(aa+-2<<4)+16|0;u=c[f+(aa<<4)+16>>2]|0;q=c[f+(aa+-6<<4)+16>>2]|0;p=c[f+(aa+-4<<4)+16>>2]|0;c[F>>2]=0;t=c[$>>2]|0;if((c[$+440>>2]|0)>0){ph($,35440,_);Ik(t,u,1);break a}Qq($,o,n,q,1,0,p);l=c[$+484>>2]|0;if((l|0)!=0?(c[$+64>>2]|0)==0:0){ar($,o,n,F)|0;q=c[l+68>>2]|0;p:do if(q){o=c[t+20>>2]|0;if((o|0)>0){n=c[t+16>>2]|0;m=0;while(1){p=m+1|0;if((c[n+(m<<4)+12>>2]|0)==(q|0)){p=m;break p}if((p|0)<(o|0))m=p;else break}}else p=0}else p=-1e6;while(0);_=c[F>>2]|0;Z=c[$>>2]|0;c[X>>2]=$;Z=c[Z+16>>2]|0;c[X+12>>2]=c[Z+(p<<4)>>2];c[X+4>>2]=c[Z+(p<<4)+12>>2];c[X+16>>2]=35480;c[X+20>>2]=_;c[X+8>>2]=(p|0)==1&1;if(br(X,u)|0){Ik(t,u,1);break a}c[l+12>>2]=cr(t,u,1)|0;Ik(t,u,1);if(a[t+65>>0]|0)break a;if(!(a[t+145>>0]|0))dr($,l)|0;n=$+504|0;m=c[n>>2]|0;n=c[n+4>>2]|0;_=Y;c[_>>2]=m;c[_+4>>2]=n;_=a[m>>0]|0;if(!(_<<24>>24==59|_<<24>>24==0)){m=m+n|0;c[Y>>2]=m}o=Y+4|0;c[o>>2]=0;p=c[f+(h<<4)+16>>2]|0;n=m-p|0;do{_=n;n=n+-1|0;l=p+n|0;if((_|0)<=0)break}while((a[10368+(d[l>>0]|0)>>0]&1)!=0);c[Y>>2]=l;c[o>>2]=1;Rq($,0,Y,0,0);break a}Ik(t,u,1);break}case 96:{Zq($,c[f+(aa+-6<<4)+16>>2]|0,f+(aa+-3<<4)+16|0,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0);k=c[f+(aa<<4)+16>>2]|0;l=c[$+484>>2]|0;if((l|0)!=0?(n=c[l+16>>2]|0,(n|0)!=0):0)a[n+24>>0]=k;break}case 99:{c[ca>>2]=10;break}case 101:{a[ca>>0]=10;break}case 102:{a[ca>>0]=c[f+(aa<<4)+16>>2];break}case 110:{$q($,c[f+(aa<<4)+16>>2]|0,1,c[f+(aa+-1<<4)+16>>2]|0);break}case 111:{c[w+0>>2]=c[5124];c[w+4>>2]=c[5125];c[w+8>>2]=c[5126];c[w+12>>2]=c[5127];c[w+16>>2]=c[5128];_=f+(aa<<4)+16|0;er($,c[_>>2]|0,w)|0;Ik(c[$>>2]|0,c[_>>2]|0,1);break}case 112:{q=c[f+(aa<<4)+16>>2]|0;do if(q){c[q+68>>2]=c[f+(aa+-1<<4)+16>>2];l=c[q+52>>2]|0;if(l){m=128;n=1;o=q;p=0;while(1){c[o+56>>2]=p;Y=o+6|0;Z=e[Y>>1]|64;b[Y>>1]=Z;m=Z&m;if(!l)break;Z=l;l=c[l+52>>2]|0;n=n+1|0;p=o;o=Z}if(m){$=q+6|0;b[$>>1]=e[$>>1]|256;break}Z=c[(c[$>>2]|0)+104>>2]|0;if((Z|0)>0&(n|0)>(Z|0))ph($,20520,_)}}else Mn(c[$>>2]|0,c[f+(aa+-1<<4)+16>>2]|0);while(0);c[ca>>2]=q;break}case 120:{c[ca>>2]=gr($,c[f+(aa+-1<<4)+16>>2]|0,0,0,0,0,0,128,0,0)|0;break}case 118:{c[ca>>2]=gr($,c[f+(aa+-6<<4)+16>>2]|0,c[f+(aa+-5<<4)+16>>2]|0,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa+-3<<4)+16>>2]|0,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,b[f+(aa+-7<<4)+16>>1]|0,c[f+(aa<<4)+16>>2]|0,c[f+(aa<<4)+20>>2]|0)|0;break}case 119:case 113:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 114:{h=c[f+(aa<<4)+16>>2]|0;do if(h){if(c[h+52>>2]|0){c[l+4>>2]=0;h=gr($,0,fr($,0,0,0,l,h,0,0)|0,0,0,0,0,0,0,0)|0;if(!h){Z=192;break}}_=c[f+(aa+-1<<4)+16>>2]|0;a[h+4>>0]=_;c[h+52>>2]=c[f+(aa+-2<<4)+16>>2];if((_|0)!=116)a[$+22>>0]=1}else Z=192;while(0);if((Z|0)==192){Ik(c[$>>2]|0,c[f+(aa+-2<<4)+16>>2]|0,1);h=0}c[ca>>2]=h;break}case 160:case 158:{c[ca>>2]=0;break}case 159:{c[ca>>2]=1;break}case 165:{c[ca>>2]=0;c[ca+4>>2]=0;break}case 172:{l=c[f+(aa+-7<<4)+16>>2]|0;if(l){Z=$+532|0;c[l+4>>2]=c[Z>>2];c[Z>>2]=l;a[$+449>>0]=1}m=f+(aa+-4<<4)+16|0;kr($,c[m>>2]|0,f+(aa+-3<<4)+16|0);n=f+(aa+-1<<4)+16|0;l=c[n>>2]|0;if(l){if((c[l>>2]|0)>(c[(c[$>>2]|0)+96>>2]|0)){c[_>>2]=20560;ph($,34544,_);l=c[n>>2]|0}}else l=0;or($,c[m>>2]|0,l,c[f+(aa<<4)+16>>2]|0,d[f+(aa+-5<<4)+16>>0]|0);break}case 176:{h=c[f+(aa+-6<<4)+16>>2]|0;if(h){_=$+532|0;c[h+4>>2]=c[_>>2];c[_>>2]=h;a[$+449>>0]=1}pr($,c[f+(aa+-3<<4)+16>>2]|0,0,c[f+(aa+-2<<4)+16>>2]|0,d[f+(aa+-5<<4)+16>>0]|0);break}case 173:{_=hr($,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;c[ca>>2]=_;ir($,_,f+(aa+-2<<4)+16|0,1);break}case 174:{_=hr($,0,c[f+(aa<<4)+16>>2]|0)|0;c[ca>>2]=_;ir($,_,f+(aa+-2<<4)+16|0,1);break}case 175:{h=c[f+(aa+-5<<4)+16>>2]|0;if(h){_=$+532|0;c[h+4>>2]=c[_>>2];c[_>>2]=h;a[$+449>>0]=1}pr($,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,d[f+(aa+-4<<4)+16>>0]|0);break}case 181:{c[ca>>2]=qr(c[$>>2]|0,c[f+(aa+-2<<4)+16>>2]|0,f+(aa<<4)+16|0)|0;break}case 182:{c[ca>>2]=qr(c[$>>2]|0,0,f+(aa<<4)+16|0)|0;break}case 183:{$=f+(aa<<4)+16|0;c[ca+0>>2]=c[$+0>>2];c[ca+4>>2]=c[$+4>>2];c[ca+8>>2]=c[$+8>>2];break}case 177:{a[ca>>0]=a[f+(aa<<4)+16>>0]|0;break}case 178:{a[ca>>0]=5;break}case 184:{c[ca>>2]=c[f+(aa+-1<<4)+16>>2];c[ca+4>>2]=c[f+(aa+-2<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 191:case 190:case 185:{_=f+(aa<<4)+16|0;c[ca>>2]=Vq($,d[f+(aa<<4)+14>>0]|0,0,0,_)|0;$=c[_>>2]|0;c[ca+4>>2]=$;c[ca+8>>2]=$+(c[f+(aa<<4)+20>>2]|0);break}case 187:case 186:{_=f+(aa<<4)+16|0;c[ca>>2]=Vq($,27,0,0,_)|0;$=c[_>>2]|0;c[ca+4>>2]=$;c[ca+8>>2]=$+(c[f+(aa<<4)+20>>2]|0);break}case 188:{Z=f+(aa+-2<<4)+16|0;_=f+(aa<<4)+16|0;c[ca>>2]=Vq($,122,Vq($,27,0,0,Z)|0,Vq($,27,0,0,_)|0,0)|0;c[ca+4>>2]=c[Z>>2];c[ca+8>>2]=(c[_>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 189:{Z=f+(aa+-4<<4)+16|0;_=f+(aa<<4)+16|0;c[ca>>2]=Vq($,122,Vq($,27,0,0,Z)|0,Vq($,122,Vq($,27,0,0,f+(aa+-2<<4)+16|0)|0,Vq($,27,0,0,_)|0,0)|0,0)|0;c[ca+4>>2]=c[Z>>2];c[ca+8>>2]=(c[_>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 192:{u=f+(aa<<4)+16|0;t=f+(aa<<4)+20|0;do if(((c[t>>2]|0)>>>0>1?(z=c[u>>2]|0,(a[z>>0]|0)==35):0)?((d[z+1>>0]|0)+-48|0)>>>0<10:0){if(!(a[$+18>>0]|0)){c[_>>2]=u;ph($,20432,_);c[ca>>2]=0;break}o=Vq($,159,0,0,u)|0;c[ca>>2]=o;if(o)zn((c[u>>2]|0)+1|0,o+28|0)|0}else Z=298;while(0);q:do if((Z|0)==298?(M=Vq($,135,0,0,u)|0,c[ca>>2]=M,T=c[u>>2]|0,c[ca+4>>2]=T,c[ca+8>>2]=T+(c[t>>2]|0),T=c[$>>2]|0,(M|0)!=0):0){w=c[M+8>>2]|0;o=w+1|0;do if(a[o>>0]|0){v=(w|0)==0;if(v)x=0;else{q=w;while(1)if(!(a[q>>0]|0))break;else q=q+1|0;x=q-w&1073741823}r:do if((a[w>>0]|0)==63){Y=Ql(o,E,x+-1|0,1)|0;m=E;n=c[m>>2]|0;m=c[m+4>>2]|0;q=n&65535;b[M+32>>1]=q;o=c[T+124>>2]|0;Z=((o|0)<0)<<31>>31;if((m|0)<0|(m|0)==0&n>>>0<1|(Y|0)!=0|((m|0)>(Z|0)|(m|0)==(Z|0)&n>>>0>o>>>0)){c[_>>2]=o;ph($,33296,_);q=0}o=$+440|0;Z=c[o>>2]|0;Y=((Z|0)<0)<<31>>31;if((m|0)>(Y|0)|(m|0)==(Y|0)&n>>>0>Z>>>0)c[o>>2]=n}else{o=c[$+444>>2]|0;s:do if((o|0)>0){n=c[$+472>>2]|0;q=0;l=0;while(1){m=c[n+(q<<2)>>2]|0;if((m|0)!=0?(Wv(m,w)|0)==0:0)break;l=l+1<<16>>16;q=l<<16>>16;if((q|0)>=(o|0)){Z=315;break s}}q=q+1&65535;o=M+32|0;b[o>>1]=q;if(q<<16>>16)break r}else Z=315;while(0);if((Z|0)==315)o=M+32|0;Z=$+440|0;q=(c[Z>>2]|0)+1|0;c[Z>>2]=q;q=q&65535;b[o>>1]=q}while(0);m=q<<16>>16;if(q<<16>>16>0){q=$+444|0;if((m|0)>(c[q>>2]|0)){o=$+472|0;n=no(T,c[o>>2]|0,m<<2,0)|0;if(!n)break q;c[o>>2]=n;Z=c[q>>2]|0;bw(n+(Z<<2)|0,0,m-Z<<2|0)|0;c[q>>2]=m}if((a[w>>0]|0)==63){o=m+-1|0;if(!(c[(c[$+472>>2]|0)+(o<<2)>>2]|0))q=0;else break}else{q=m+-1|0;o=q;q=c[(c[$+472>>2]|0)+(q<<2)>>2]|0}n=$+472|0;ig(T,q);if(!v?(p=fw(x|0,0,1,0)|0,p=ih(T,p,C)|0,(p|0)!=0):0){gw(p|0,w|0,x|0)|0;a[p+x>>0]=0}else p=0;c[(c[n>>2]|0)+(o<<2)>>2]=p}}else{Y=$+440|0;Z=(c[Y>>2]|0)+1|0;c[Y>>2]=Z;b[M+32>>1]=Z}while(0);if((c[$+64>>2]|0)==0?(c[$+440>>2]|0)>(c[T+124>>2]|0):0)ph($,33344,_)}while(0);$=c[u>>2]|0;c[ca+4>>2]=$;c[ca+8>>2]=$+(c[t>>2]|0);break}case 196:{_=f+(aa+-3<<4)+16|0;c[ca>>2]=sr($,0,_)|0;c[ca+4>>2]=c[_>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 197:{_=f+(aa<<4)+16|0;c[ca>>2]=sr($,0,_)|0;$=c[_>>2]|0;c[ca+4>>2]=$;c[ca+8>>2]=$+(c[f+(aa<<4)+20>>2]|0);break}case 193:{Z=aa+-2|0;_=f+(aa<<4)+16|0;c[ca>>2]=rr($,c[f+(Z<<4)+16>>2]|0,_,1)|0;c[ca+4>>2]=c[f+(Z<<4)+20>>2];c[ca+8>>2]=(c[_>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 194:{c[ca>>2]=Vq($,38,c[f+(aa+-3<<4)+16>>2]|0,0,f+(aa+-1<<4)+16|0)|0;c[ca+4>>2]=c[f+(aa+-5<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 195:{l=f+(aa+-1<<4)+16|0;h=c[l>>2]|0;if(h){if((c[h>>2]|0)>(c[(c[$>>2]|0)+112>>2]|0)){c[_>>2]=f+(aa+-4<<4)+16;ph($,20576,_);h=c[l>>2]|0}}else h=0;_=f+(aa+-4<<4)+16|0;h=sr($,h,_)|0;c[ca>>2]=h;c[ca+4>>2]=c[_>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);if(!((h|0)==0?1:(b[f+(aa+-2<<4)+16>>1]|0)==0)){$=h+4|0;c[$>>2]=c[$>>2]|16}break}case 205:case 204:case 203:case 202:case 201:case 200:case 199:case 198:{_=aa+-2|0;c[ca>>2]=Vq($,d[f+(aa+-1<<4)+14>>0]|0,c[f+(_<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0,0)|0;c[ca+4>>2]=c[f+(_<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 206:{Z=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;c[ca+8>>2]=0;break}case 207:{Z=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;c[ca+8>>2]=1;break}case 208:{l=aa+-2|0;_=aa+-1|0;h=sr($,hr($,hr($,0,c[f+(aa<<4)+16>>2]|0)|0,c[f+(l<<4)+16>>2]|0)|0,f+(_<<4)+16|0)|0;c[ca>>2]=h;if(c[f+(_<<4)+24>>2]|0){h=Vq($,19,h,0,0)|0;c[ca>>2]=h}c[ca+4>>2]=c[f+(l<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];if(h){$=h+4|0;c[$>>2]=c[$>>2]|128}break}case 210:{_=aa+-1|0;c[ca>>2]=Vq($,d[f+(aa<<4)+14>>0]|0,c[f+(_<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(_<<4)+20>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 209:{l=aa+-4|0;_=aa+-3|0;h=sr($,hr($,hr($,hr($,0,c[f+(aa+-2<<4)+16>>2]|0)|0,c[f+(l<<4)+16>>2]|0)|0,c[f+(aa<<4)+16>>2]|0)|0,f+(_<<4)+16|0)|0;c[ca>>2]=h;if(c[f+(_<<4)+24>>2]|0){h=Vq($,19,h,0,0)|0;c[ca>>2]=h}c[ca+4>>2]=c[f+(l<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];if(h){$=h+4|0;c[$>>2]=c[$>>2]|128}break}case 223:{l=f+(aa+-1<<4)+16|0;h=c[l>>2]|0;do if(h){if((c[h>>2]|0)==1){_=c[h+4>>2]|0;h=c[_>>2]|0;c[_>>2]=0;Jk(c[$>>2]|0,c[l>>2]|0);if(h){_=h+4|0;c[_>>2]=c[_>>2]&-769|512}c[ca>>2]=Vq($,(c[f+(aa+-3<<4)+16>>2]|0)!=0?78:79,c[f+(aa+-4<<4)+16>>2]|0,h,0)|0;break}h=Vq($,75,c[f+(aa+-4<<4)+16>>2]|0,0,0)|0;c[ca>>2]=h;if(!h){Jk(c[$>>2]|0,c[l>>2]|0);h=0}else{c[h+20>>2]=c[l>>2];h=c[ca>>2]|0;ur($,h)}if(c[f+(aa+-3<<4)+16>>2]|0)c[ca>>2]=Vq($,19,h,0,0)|0}else{c[ca>>2]=Vq($,132,0,0,20616+(c[f+(aa+-3<<4)+16>>2]<<3)|0)|0;Ck(c[$>>2]|0,c[f+(aa+-4<<4)+16>>2]|0)}while(0);c[ca+4>>2]=c[f+(aa+-4<<4)+20>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 211:{_=aa+-2|0;c[ca>>2]=Vq($,77,c[f+(_<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(_<<4)+20>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 212:{Y=aa+-2|0;Z=f+(aa<<4)+16|0;_=Vq($,73,c[f+(Y<<4)+16>>2]|0,c[Z>>2]|0,0)|0;c[ca>>2]=_;c[ca+4>>2]=c[f+(Y<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];tr($,c[Z>>2]|0,_,76);break}case 213:{Y=aa+-3|0;Z=f+(aa<<4)+16|0;_=Vq($,148,c[f+(Y<<4)+16>>2]|0,c[Z>>2]|0,0)|0;c[ca>>2]=_;c[ca+4>>2]=c[f+(Y<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];tr($,c[Z>>2]|0,_,77);break}case 215:case 214:{_=aa+-1|0;c[ca>>2]=Vq($,d[f+(_<<4)+14>>0]|0,c[f+(aa<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(_<<4)+16>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 216:{c[ca>>2]=Vq($,157,c[f+(aa<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(aa+-1<<4)+16>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 217:{c[ca>>2]=Vq($,158,c[f+(aa<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(aa+-1<<4)+16>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 220:{k=hr($,hr($,0,c[f+(aa+-2<<4)+16>>2]|0)|0,c[f+(aa<<4)+16>>2]|0)|0;l=aa+-4|0;h=Vq($,74,c[f+(l<<4)+16>>2]|0,0,0)|0;c[ca>>2]=h;if(!h)Jk(c[$>>2]|0,k);else c[h+20>>2]=k;if(c[f+(aa+-3<<4)+16>>2]|0)c[ca>>2]=Vq($,19,c[ca>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(l<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 116:{c[ca>>2]=116;break}case 121:{h=gr($,c[f+(aa+-1<<4)+16>>2]|0,0,0,0,0,0,128,0,0)|0;if(!h){c[ca>>2]=c[f+(aa+-4<<4)+16>>2];break a}else{a[h+4>>0]=116;c[h+52>>2]=c[f+(aa+-4<<4)+16>>2];c[ca>>2]=h;break a}}case 122:{b[ca>>1]=1;break}case 124:case 123:{b[ca>>1]=0;break}case 243:case 125:{c[ca>>2]=c[f+(aa+-1<<4)+16>>2];break}case 242:case 236:case 161:case 154:case 126:{c[ca>>2]=0;break}case 127:{l=aa+-1|0;n=hr($,c[f+(aa+-2<<4)+16>>2]|0,c[f+(l<<4)+16>>2]|0)|0;c[ca>>2]=n;if(c[f+(aa<<4)+20>>2]|0)ir($,n,f+(aa<<4)+16|0,1);p=c[$>>2]|0;if(n){o=(c[n+4>>2]|0)+(((c[n>>2]|0)+-1|0)*20|0)+8|0;ig(p,c[o>>2]|0);m=c[f+(l<<4)+20>>2]|0;n=(c[f+(l<<4)+24>>2]|0)-m|0;if((m|0)!=0?(h=fw(n|0,((n|0)<0)<<31>>31|0,1,0)|0,h=ih(p,h,C)|0,(h|0)!=0):0){gw(h|0,m|0,n|0)|0;a[h+n>>0]=0}else h=0;c[o>>2]=h}break}case 133:{l=ih(c[$>>2]|0,80,0)|0;if(l){v=l+0|0;k=v+80|0;do{a[v>>0]=0;v=v+1|0}while((v|0)<(k|0))}c[ca>>2]=l;break}case 134:{n=c[f+(aa<<4)+16>>2]|0;c[ca>>2]=n;if(n){l=c[n>>2]|0;k=l+-1|0;if((k|0)>0)while(1){a[n+(k*72|0)+44>>0]=a[n+((l+-2|0)*72|0)+44>>0]|0;l=k+-1|0;if((l|0)>0){$=k;k=l;l=$}else break}a[n+44>>0]=0}break}case 128:{Z=c[$>>2]|0;c[_>>2]=0;c[_+4>>2]=0;_=jr(Z,116,_,0)|0;c[ca>>2]=hr($,c[f+(aa+-1<<4)+16>>2]|0,_)|0;break}case 132:{c[ca+4>>2]=0;break}case 129:{_=Vq($,116,0,0,f+(aa<<4)+16|0)|0;_=Vq($,122,Vq($,27,0,0,f+(aa+-2<<4)+16|0)|0,_,0)|0;c[ca>>2]=hr($,c[f+(aa+-3<<4)+16>>2]|0,_)|0;break}case 136:{c[ca>>2]=0;break}case 137:{_=fr($,c[f+(aa+-6<<4)+16>>2]|0,f+(aa+-5<<4)+16|0,f+(aa+-4<<4)+16|0,f+(aa+-3<<4)+16|0,0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;c[ca>>2]=_;kr($,_,f+(aa+-2<<4)+16|0);break}case 135:{h=c[f+(aa+-1<<4)+16>>2]|0;c[ca>>2]=h;if((h|0)!=0?(t=c[h>>2]|0,(t|0)>0):0)a[h+((t+-1|0)*72|0)+44>>0]=c[f+(aa<<4)+16>>2];break}case 138:{c[ca>>2]=fr($,c[f+(aa+-6<<4)+16>>2]|0,0,0,f+(aa+-2<<4)+16|0,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 139:{l=f+(aa+-6<<4)+16|0;n=c[l>>2]|0;if((((n|0)==0?(c[f+(aa+-2<<4)+20>>2]|0)==0:0)?(c[f+(aa+-1<<4)+16>>2]|0)==0:0)?(c[f+(aa<<4)+16>>2]|0)==0:0){c[ca>>2]=c[f+(aa+-4<<4)+16>>2];break a}p=f+(aa+-4<<4)+16|0;k=c[p>>2]|0;o=c[k>>2]|0;if((o|0)==1){l=fr($,n,0,0,f+(aa+-2<<4)+16|0,0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;c[ca>>2]=l;if(l){X=(c[l>>2]|0)+-1|0;_=c[p>>2]|0;Z=_+16|0;c[l+(X*72|0)+16>>2]=c[Z>>2];Y=_+12|0;c[l+(X*72|0)+12>>2]=c[Y>>2];_=_+28|0;c[l+(X*72|0)+28>>2]=c[_>>2];c[Y>>2]=0;c[Z>>2]=0;c[_>>2]=0}zo(c[$>>2]|0,c[p>>2]|0);break a}if(k){m=o+-1|0;if((m|0)>0){n=o;while(1){a[k+(m*72|0)+44>>0]=a[k+((n+-2|0)*72|0)+44>>0]|0;n=m+-1|0;if((n|0)>0){_=m;m=n;n=_}else break}}a[k+44>>0]=0}_=gr($,0,k,0,0,0,0,512,0,0)|0;c[ca>>2]=fr($,c[l>>2]|0,0,0,f+(aa+-2<<4)+16|0,_,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 149:case 140:{c[ca>>2]=0;c[ca+4>>2]=0;break}case 144:{c[ca>>2]=mr($,f+(aa+-1<<4)+16|0,0,0)|0;break}case 145:{c[ca>>2]=mr($,f+(aa+-2<<4)+16|0,f+(aa+-1<<4)+16|0,0)|0;break}case 146:{c[ca>>2]=mr($,f+(aa+-3<<4)+16|0,f+(aa+-2<<4)+16|0,f+(aa+-1<<4)+16|0)|0;break}case 233:case 231:case 171:case 164:case 147:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 234:case 232:case 170:case 163:case 148:{c[ca>>2]=0;break}case 151:{c[ca>>2]=0;c[ca+4>>2]=1;break}case 143:{c[ca>>2]=1;break}case 142:{c[ca>>2]=lr(c[$>>2]|0,0,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0)|0;break}case 156:{h=hr($,c[f+(aa+-3<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0)|0;c[ca>>2]=h;if(h)a[(c[h+4>>2]|0)+(((c[h>>2]|0)+-1|0)*20|0)+12>>0]=c[f+(aa<<4)+16>>2];break}case 157:{h=hr($,0,c[f+(aa+-1<<4)+16>>2]|0)|0;c[ca>>2]=h;if((h|0)!=0?(k=c[h+4>>2]|0,(k|0)!=0):0)a[k+12>>0]=c[f+(aa<<4)+16>>2];break}case 179:case 153:{c[ca>>2]=0;break}case 180:case 152:{c[ca>>2]=c[f+(aa+-1<<4)+16>>2];break}case 166:{c[ca>>2]=c[f+(aa<<4)+16>>2];c[ca+4>>2]=0;break}case 167:{c[ca>>2]=c[f+(aa+-2<<4)+16>>2];c[ca+4>>2]=c[f+(aa<<4)+16>>2];break}case 168:{c[ca+4>>2]=c[f+(aa+-2<<4)+16>>2];c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 169:{h=c[f+(aa+-5<<4)+16>>2]|0;if(h){_=$+532|0;c[h+4>>2]=c[_>>2];c[_>>2]=h;a[$+449>>0]=1}_=f+(aa+-2<<4)+16|0;kr($,c[_>>2]|0,f+(aa+-1<<4)+16|0);nr($,c[_>>2]|0,c[f+(aa<<4)+16>>2]|0);break}case 235:case 162:case 155:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}default:{}}while(0);h=a[20912+(g<<1)>>0]|0;o=h&255;n=a[20913+(g<<1)>>0]|0;m=n&255;p=(c[f>>2]|0)-m|0;c[f>>2]=p;l=b[22184+((b[21568+(e[f+(aa-m<<4)+12>>1]<<1)>>1]|0)+o<<1)>>1]|0;k=l&65535;do if((l&65535)<642)if(!(n<<24>>24)){gq(f,k,o,ca);break}else{c[f>>2]=p+1;aa=1-m+aa|0;b[f+(aa<<4)+12>>1]=l;a[f+(aa<<4)+14>>0]=h;aa=f+(aa<<4)+16|0;c[aa+0>>2]=c[ca+0>>2];c[aa+4>>2]=c[ca+4>>2];c[aa+8>>2]=c[ca+8>>2];break}else{h=c[da>>2]|0;if((p|0)>-1)do Ln(f);while((c[f>>2]|0)>-1);c[da>>2]=h}while(0);i=ea;return}function jq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0;aa=i;i=i+64|0;if((i|0)>=(j|0))ba();$=aa+8|0;W=aa;n=aa+24|0;h=aa+16|0;l=tq(e,0,h)|0;do if(!l){if(c[h>>2]|0){l=$r(e,f)|0;if(!l)g=0;else k=4}else{l=1;k=4}if((k|0)==4){_=e+43|0;k=(a[_>>0]|0)==0;do if(!(a[e+46>>0]&2)){if(k?(m=e+4|0,Z=c[m>>2]|0,Yb[c[(c[Z>>2]|0)+40>>2]&63](Z,24,0)|0,m=c[m>>2]|0,m=lc[c[(c[m>>2]|0)+56>>2]&31](m,0,1,10)|0,(m|0)!=0):0){h=l;g=m;break}Z=e+44|0;a[Z>>0]=1;k=tq(e,0,h)|0;if(!k){h=$r(e,f)|0;if(!h){h=0;g=0}else{Y=d[e+45>>0]|0;X=Y+1|0;Y=7-Y|0;if(!((a[_>>0]|0)==0?(g=c[e+4>>2]|0,g=lc[c[(c[g>>2]|0)+56>>2]&31](g,X,Y,10)|0,(g|0)!=0):0)){l=e+52|0;k=l+48|0;do{c[l>>2]=0;l=l+4|0}while((l|0)<(k|0));Q=e+8|0;g=c[Q>>2]|0;g=nc[c[(c[g>>2]|0)+24>>2]&127](g,W)|0;a:do if(!g){R=W;P=c[R+4>>2]|0;b:do if((P|0)>0|(P|0)==0&(c[R>>2]|0)>>>0>32){g=c[Q>>2]|0;g=pc[c[(c[g>>2]|0)+8>>2]&31](g,n,32,0,0)|0;if(g)break a;m=d[n+3>>0]|0;k=d[n+9>>0]<<16|d[n+8>>0]<<24;g=d[n+10>>0]<<8;l=k|g|d[n+11>>0];if(((d[n+1>>0]<<16|d[n>>0]<<24|d[n+2>>0]<<8|m&254|0)==931071618?!((l+-1&l|0)!=0|(l|0)>65536|(l|0)<512):0)?(R=m&1,S=e+65|0,a[S>>0]=R,T=e+36|0,c[T>>2]=l,c[e+104>>2]=d[n+13>>0]<<16|d[n+12>>0]<<24|d[n+14>>0]<<8|d[n+15>>0],U=e+84|0,P=n+16|0,N=P,N=d[N>>0]|d[N+1>>0]<<8|d[N+2>>0]<<16|d[N+3>>0]<<24,P=P+4|0,P=d[P>>0]|d[P+1>>0]<<8|d[P+2>>0]<<16|d[P+3>>0]<<24,V=U,O=V,a[O>>0]=N,a[O+1>>0]=N>>8,a[O+2>>0]=N>>16,a[O+3>>0]=N>>24,V=V+4|0,a[V>>0]=P,a[V+1>>0]=P>>8,a[V+2>>0]=P>>16,a[V+3>>0]=P>>24,V=e+76|0,uq(R^1,n,24,0,V),(c[V>>2]|0)==(d[n+25>>0]<<16|d[n+24>>0]<<24|d[n+26>>0]<<8|d[n+27>>0]|0)):0){P=e+80|0;if((c[P>>2]|0)!=(d[n+29>>0]<<16|d[n+28>>0]<<24|d[n+30>>0]<<8|d[n+31>>0]|0)){l=0;g=0;break}if((d[n+5>>0]<<16|d[n+4>>0]<<24|d[n+6>>0]<<8|d[n+7>>0]|0)!=3007e3){c[$>>2]=49983;c[$+4>>2]=10788;Zc(14,14848,$);g=14;break a}t=l+24|0;R=Pc(t)|0;if(!R){g=7;break a}u=R+24|0;v=((t|0)<0)<<31>>31;n=fw(t|0,v|0,32,0)|0;m=C;O=W;N=c[O+4>>2]|0;c:do if(!((m|0)>(N|0)|((m|0)==(N|0)?n>>>0>(c[O>>2]|0)>>>0:0))){w=R+8|0;x=R+1|0;y=R+2|0;z=R+3|0;A=R+16|0;B=R+17|0;D=R+18|0;E=R+19|0;F=R+20|0;G=R+21|0;H=R+22|0;I=R+23|0;J=R+4|0;K=R+5|0;L=R+6|0;M=R+7|0;N=e+68|0;O=e+72|0;r=(k>>>16|g)&65535;s=e+66|0;o=32;k=0;l=0;p=0;q=1;while(1){g=c[Q>>2]|0;g=pc[c[(c[g>>2]|0)+8>>2]&31](g,R,t,o,k)|0;if(g){k=36;break}if(Vv(U,w,8)|0){g=p;k=37;break}k=d[x>>0]<<16|d[R>>0]<<24|d[y>>0]<<8|d[z>>0];if(!k){g=p;k=37;break}o=(a[S>>0]|0)==0&1;uq(o,R,8,V,V);uq(o,u,c[T>>2]|0,V,V);if((c[V>>2]|0)!=(d[B>>0]<<16|d[A>>0]<<24|d[D>>0]<<8|d[E>>0]|0)){g=p;k=37;break}if((c[P>>2]|0)!=(d[G>>0]<<16|d[F>>0]<<24|d[H>>0]<<8|d[I>>0]|0)){g=p;break c}o=d[K>>0]<<16|d[J>>0]<<24|d[L>>0]<<8|d[M>>0];g=Wo(e,q,k)|0;if(g){k=36;break}if(!o)g=p;else{c[N>>2]=q;c[O>>2]=o;b[s>>1]=r;l=c[V>>2]|0;g=c[P>>2]|0}k=fw(n|0,m|0,t|0,v|0)|0;o=C;p=W;ca=c[p+4>>2]|0;if((o|0)>(ca|0)|((o|0)==(ca|0)?k>>>0>(c[p>>2]|0)>>>0:0))break c;else{da=m;ca=n;n=k;m=o;p=g;q=q+1|0;k=da;o=ca}}if((k|0)==36){Sc(R);break a}else if((k|0)==37){Sc(R);break b}}else{l=0;g=0}while(0);Sc(R)}else{l=0;g=0}}else{l=0;g=0}while(0);c[e+76>>2]=l;c[e+80>>2]=g;Xo(e);k=c[c[e+32>>2]>>2]|0;c[k+96>>2]=0;c[k+100>>2]=0;g=k+104|0;c[g>>2]=-1;c[k+108>>2]=-1;c[k+112>>2]=-1;c[k+116>>2]=-1;k=e+68|0;l=c[k>>2]|0;if(l)c[g>>2]=l;if(!(c[e+72>>2]|0))g=0;else{g=c[e+100>>2]|0;c[$>>2]=c[k>>2];c[$+4>>2]=g;Zc(283,14888,$);g=0}}while(0);if(!(a[_>>0]|0)){W=c[e+4>>2]|0;lc[c[(c[W>>2]|0)+56>>2]&31](W,X,Y,9)|0}}c[f>>2]=1}}else{h=l;g=k}a[Z>>0]=0;if(!(a[_>>0]|0)){_=c[e+4>>2]|0;lc[c[(c[_>>2]|0)+56>>2]&31](_,0,1,9)|0}}else if(k){h=e+4|0;g=c[h>>2]|0;g=lc[c[(c[g>>2]|0)+56>>2]&31](g,0,1,6)|0;if(!g)if(!(a[_>>0]|0)){h=c[h>>2]|0;lc[c[(c[h>>2]|0)+56>>2]&31](h,0,1,5)|0;h=l;g=264}else{h=l;g=264}else h=l}else{h=l;g=264}while(0);if(h)break}if((c[e+52>>2]|0)!=3007e3){c[$>>2]=50909;c[$+4>>2]=10788;Zc(14,14848,$);g=14}}else g=l;while(0);i=aa;return g|0}function kq(a,d,f,g,h,i){a=a|0;d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;p=c[h>>2]|0;q=c[g>>2]|0;k=(p|0)>0;j=(f|0)>0;if(k|j){n=j;l=0;o=0;m=0;while(1){do if(n){j=d+(l<<1)|0;if(k?(r=q+(m<<1)|0,(c[a+((e[j>>1]|0)<<2)>>2]|0)>>>0>=(c[a+((e[r>>1]|0)<<2)>>2]|0)>>>0):0){k=r;s=7;break}l=l+1|0;k=j}else{k=q+(m<<1)|0;s=7}while(0);if((s|0)==7){s=0;m=m+1|0}n=b[k>>1]|0;k=c[a+((n&65535)<<2)>>2]|0;j=o+1|0;b[i+(o<<1)>>1]=n;if((l|0)<(f|0))l=((c[a+((e[d+(l<<1)>>1]|0)<<2)>>2]|0)==(k|0)&1)+l|0;k=(m|0)<(p|0);n=(l|0)<(f|0);if(!(k|n))break;else o=j}}else j=0;c[g>>2]=d;c[h>>2]=j;gw(d|0,i|0,j<<1|0)|0;return}function lq(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[a+4>>2]|0;c[e+4>>2]=c[a>>2];a=c[(c[e>>2]|0)+204>>2]|0;c[a+16>>2]=b;e=c[2217]|0;d=c[a+40>>2]|0;if((b|0)>-1)a=b;else{b=ow(b|0,((b|0)<0)<<31>>31|0,-1024,-1)|0;a=(c[a+24>>2]|0)+(c[a+20>>2]|0)|0;a=mw(b|0,C|0,a|0,((a|0)<0)<<31>>31|0)|0}fc[e&15](d,a);return}function mq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;g=(c[b+12>>2]|0)+136|0;e=g;f=c[e>>2]|0;e=c[e+4>>2]|0;do if((f|0)==0&(e|0)==0)if(!(Zg(c[c[(c[b>>2]|0)+32>>2]>>2]|0,g)|0)){e=g;f=c[e>>2]|0;e=c[e+4>>2]|0;h=5;break}else{e=g;c[e>>2]=0;c[e+4>>2]=0;e=d;c[e>>2]=0;c[e+4>>2]=0;e=1;break}else h=5;while(0);if((h|0)==5){g=d;c[g>>2]=f;c[g+4>>2]=e;if((e|0)>0|(e|0)==0&f>>>0>0){a[d+42>>0]=1;e=0}else e=1}return e|0}function nq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+16|0;if((i|0)>=(j|0))ba();n=p;c[n>>2]=d;d=b;b=0;a:while(1){h=c[n>>2]|0;g=c[h>>2]|0;c[n>>2]=h+4;h=c[n>>2]|0;k=c[h>>2]|0;c[n>>2]=h+4;h=c[n>>2]|0;l=c[h>>2]|0;c[n>>2]=h+4;h=c[n>>2]|0;m=c[h>>2]|0;c[n>>2]=h+4;h=c[n>>2]|0;e=c[h>>2]|0;c[n>>2]=h+4;if(!g){f=d;d=0}else{f=d;d=0;do{g=g+-1|0;h=a[f>>0]|0;if(((h&255)+-48|0)>>>0>=10)break a;d=(d*10|0)+-48+(h<<24>>24)|0;f=f+1|0}while((g|0)!=0)}if((d|0)<(k|0)|(d|0)>(l|0))break;if(!m){o=9;break}if((m|0)!=(a[f>>0]|0))break;c[e>>2]=d;d=f+1|0;b=b+1|0}if((o|0)==9){c[e>>2]=d;b=b+1|0}i=p;return b|0}function oq(b,e){b=b|0;e=e|0;var f=0,g=0,k=0,l=0.0,m=0,n=0.0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+64|0;if((i|0)>=(j|0))ba();s=u;q=u+56|0;r=u+52|0;f=u+48|0;o=u+44|0;p=u+40|0;c[s>>2]=2;c[s+4>>2]=0;c[s+8>>2]=24;c[s+12>>2]=58;c[s+16>>2]=f;c[s+20>>2]=2;c[s+24>>2]=0;c[s+28>>2]=59;c[s+32>>2]=0;c[s+36>>2]=o;do if((nq(b,s)|0)==2){m=b+5|0;if((a[m>>0]|0)==58){c[s>>2]=2;c[s+4>>2]=0;c[s+8>>2]=59;c[s+12>>2]=0;c[s+16>>2]=p;if((nq(b+6|0,s)|0)!=1){f=1;break}m=b+8|0;if((a[m>>0]|0)==46?(g=b+9|0,k=a[g>>0]|0,((k&255)+-48|0)>>>0<10):0){n=0.0;l=1.0;do{n=n*10.0+ +(k<<24>>24)+-48.0;l=l*10.0;g=g+1|0;k=a[g>>0]|0}while(((k&255)+-48|0)>>>0<10);l=n/l}else{g=m;l=0.0}}else{c[p>>2]=0;g=m;l=0.0}a[e+42>>0]=0;a[e+41>>0]=1;c[e+20>>2]=c[f>>2];c[e+24>>2]=c[o>>2];h[e+32>>3]=l+ +(c[p>>2]|0);while(1){f=g+1|0;if(!(a[10368+(d[g>>0]|0)>>0]&1)){m=g;break}else g=f}b=e+28|0;c[b>>2]=0;g=a[m>>0]|0;if(g<<24>>24==43){k=1;t=14}else if(g<<24>>24!=45)if((g&-33)<<24>>24==90){k=0;t=16}else f=0;else{k=-1;t=14}if((t|0)==14){c[s>>2]=2;c[s+4>>2]=0;c[s+8>>2]=14;c[s+12>>2]=58;c[s+16>>2]=q;c[s+20>>2]=2;c[s+24>>2]=0;c[s+28>>2]=59;c[s+32>>2]=0;c[s+36>>2]=r;if((nq(f,s)|0)!=2){f=1;break}k=_(((c[q>>2]|0)*60|0)+(c[r>>2]|0)|0,k)|0;c[b>>2]=k;f=m+6|0;t=16}if((t|0)==16)while(1){g=a[f>>0]|0;if(!(a[10368+(g&255)>>0]&1)){f=k;break}else f=f+1|0}if(!(g<<24>>24)){a[e+43>>0]=(f|0)!=0&1;f=0}else f=1}else f=1;while(0);i=u;return f|0}function pq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,k=0,l=0,m=0,n=0,o=0.0,p=0;n=i;i=i+112|0;if((i|0)>=(j|0))ba();k=n+48|0;m=n;l=n+96|0;f=k+0|0;b=b+0|0;g=f+48|0;do{c[f>>2]=c[b>>2];f=f+4|0;b=b+4|0}while((f|0)<(g|0));ko(k);lo(k);g=k+8|0;if(((c[g>>2]|0)+-1971|0)>>>0>66){c[g>>2]=2e3;c[k+12>>2]=1;c[k+16>>2]=1;c[k+20>>2]=0;c[k+24>>2]=0;h[k+32>>3]=0.0}else{f=k+32|0;h[f>>3]=+(~~(+h[f>>3]+.5)|0)}c[k+28>>2]=0;a[k+42>>0]=0;jo(k);b=k;f=c[b>>2]|0;b=c[b+4>>2]|0;g=mw(f|0,b|0,1e3,0)|0;g=fw(g|0,C|0,-413362496,0)|0;c[l>>2]=g;g=Rb(l|0)|0;g=(c[2253]|0)!=0?0:g;if(!g){c[d+20>>2]=1;a[d+25>>0]=1;Tg(c[d>>2]|0,20056,-1,1,-1)|0;c[e>>2]=1;f=0;g=0}else{k=c[g+4>>2]|0;l=c[g+8>>2]|0;d=c[g+12>>2]|0;p=(c[g+16>>2]|0)+1|0;o=+(c[g>>2]|0);c[m+8>>2]=(c[g+20>>2]|0)+1900;c[m+12>>2]=p;c[m+16>>2]=d;c[m+20>>2]=l;c[m+24>>2]=k;h[m+32>>3]=o;a[m+40>>0]=1;a[m+41>>0]=1;a[m+42>>0]=0;a[m+43>>0]=0;jo(m);c[e>>2]=0;g=m;g=$v(c[g>>2]|0,c[g+4>>2]|0,f|0,b|0)|0;f=C}C=f;i=n;return g|0}function qq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+32|0;if((i|0)>=(j|0))ba();o=p+12|0;l=p;n=p+8|0;k=p+16|0;a[d>>0]=0;f=nc[c[(c[b>>2]|0)+24>>2]&127](b,l)|0;h=l;g=c[h>>2]|0;h=c[h+4>>2]|0;if(!((f|0)!=0|((h|0)<0|(h|0)==0&g>>>0<16))){f=fw(g|0,h|0,-16,-1)|0;f=as(b,f,C,o)|0;if(!f){m=c[o>>2]|0;if(!(m>>>0>=e>>>0|(m|0)==0)){f=l;f=fw(c[f>>2]|0,c[f+4>>2]|0,-12,-1)|0;f=as(b,f,C,n)|0;if(!f){f=l;f=fw(c[f>>2]|0,c[f+4>>2]|0,-8,-1)|0;f=pc[c[(c[b>>2]|0)+8>>2]&31](b,k,8,f,C)|0;if(!f)if(!(Vv(k,14808,8)|0)){f=l;f=fw(c[f>>2]|0,c[f+4>>2]|0,-16,-1)|0;f=$v(f|0,C|0,m|0,0)|0;f=pc[c[(c[b>>2]|0)+8>>2]&31](b,d,m,f,C)|0;if(!f){g=c[n>>2]|0;h=0;while(1){e=a[d+h>>0]|0;f=g-e|0;h=h+1|0;if(h>>>0>=m>>>0)break;else g=f}c[n>>2]=f;if((g|0)==(e|0))f=m;else{c[o>>2]=0;f=0}a[d+f>>0]=0;f=0}}else f=0}}else f=0}}i=p;return f|0}function rq(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))ba();l=s+8|0;q=s+4|0;o=s;r=a+72|0;h=r;k=c[h>>2]|0;h=c[h+4>>2]|0;if((k|0)==0&(h|0)==0){m=0;n=0;k=c[a+148>>2]|0}else{m=fw(k|0,h|0,-1,-1)|0;k=c[a+148>>2]|0;m=mw(m|0,C|0,k|0,0)|0;m=fw(m|0,C|0,1,0)|0;m=ow(m|0,C|0,k|0,0)|0;n=C}p=r;c[p>>2]=m;c[p+4>>2]=n;p=a+148|0;k=fw(k|0,0,m|0,n|0)|0;h=C;do if(!((h|0)>(e|0)|(h|0)==(e|0)&k>>>0>d>>>0)){if((b|0)==0?(b=a+80|0,(m|0)==(c[b>>2]|0)?(n|0)==(c[b+4>>2]|0):0):0)d=a+64|0;else{k=a+64|0;e=c[k>>2]|0;e=pc[c[(c[e>>2]|0)+8>>2]&31](e,l,8,m,n)|0;if(e)break;if(!(Vv(l,14808,8)|0))d=k;else{e=101;break}}l=c[d>>2]|0;e=fw(m|0,n|0,8,0)|0;e=as(l,e,C,f)|0;if(!e){f=c[d>>2]|0;e=fw(m|0,n|0,12,0)|0;e=as(f,e,C,a+48|0)|0;if(!e){f=c[d>>2]|0;e=fw(m|0,n|0,16,0)|0;e=as(f,e,C,g)|0;if(!e){h=r;k=c[h>>2]|0;h=c[h+4>>2]|0;if((k|0)==0&(h|0)==0){g=c[d>>2]|0;e=fw(m|0,n|0,20,0)|0;e=as(g,e,C,o)|0;if(e)break;g=c[d>>2]|0;e=fw(m|0,n|0,24,0)|0;e=as(g,e,C,q)|0;if(e)break;d=c[q>>2]|0;if(!d){h=c[a+152>>2]|0;c[q>>2]=h}else h=d;d=c[o>>2]|0;if(h>>>0<512|d>>>0<32|h>>>0>65536|d>>>0>65536){e=101;break}if(h+-1&h){e=101;break}if(d+-1&d){e=101;break}e=Yk(a,q,-1)|0;c[p>>2]=d;h=r;k=c[h>>2]|0;h=c[h+4>>2]|0}else{d=c[p>>2]|0;e=0}m=fw(k|0,h|0,d|0,0)|0;n=r;c[n>>2]=m;c[n+4>>2]=C}}}}else e=101;while(0);i=s;return e|0}function sq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;A=i;i=i+16|0;if((i|0)>=(j|0))ba();v=A+8|0;o=A+4|0;r=A;y=c[f+200>>2]|0;z=(k|0)!=0;n=c[(z?f+64|0:f+68|0)>>2]|0;q=g;q=as(n,c[q>>2]|0,c[q+4>>2]|0,o)|0;do if(!q){x=f+152|0;u=c[x>>2]|0;q=g;q=fw(c[q>>2]|0,c[q+4>>2]|0,4,0)|0;q=pc[c[(c[n>>2]|0)+8>>2]&31](n,y,u,q,C)|0;if(!q){B=c[x>>2]|0;p=(k<<2)+4+B|0;q=g;q=fw(p|0,((p|0)<0)<<31>>31|0,c[q>>2]|0,c[q+4>>2]|0)|0;p=C;u=g;c[u>>2]=q;c[u+4>>2]=p;u=c[o>>2]|0;if((u|0)!=0?(u|0)!=(((c[2514]|0)/(B|0)|0)+1|0):0)if(u>>>0<=(c[f+24>>2]|0)>>>0?($h(h,u)|0)==0:0){if(z){q=fw(q|0,p|0,-4,-1)|0;q=as(n,q,C,r)|0;if(q){m=q;break}if(!l){q=c[f+48>>2]|0;p=(c[x>>2]|0)+-200|0;if((p|0)>0)do{q=(d[y+p>>0]|0)+q|0;p=p+-200|0}while((p|0)>0);if((q|0)!=(c[r>>2]|0)){m=101;break}}}if((h|0)!=0?(m=Zh(h,u)|0,(m|0)!=0):0)break;r=(u|0)==1;if(r?(s=f+142|0,t=a[y+20>>0]|0,(b[s>>1]|0)!=(t&255|0)):0)b[s>>1]=t&255;if(!(c[f+208>>2]|0)){t=f+204|0;q=Yb[c[8744+132>>2]&63](c[(c[t>>2]|0)+40>>2]|0,u,0)|0;q=el(c[t>>2]|0,u,q)|0}else q=0;c[v>>2]=q;if(z)if(!(a[f+7>>0]|0)){t=g;h=c[t+4>>2]|0;p=f+80|0;s=c[p+4>>2]|0;p=(h|0)<(s|0)|((h|0)==(s|0)?(c[t>>2]|0)>>>0<=(c[p>>2]|0)>>>0:0)}else p=1;else if(!q)p=1;else p=(b[q+24>>1]&4)==0;o=c[f+60>>2]|0;n=c[o>>2]|0;do if(n){m=a[f+16>>0]|0;if((m&255)>3){if(!p){w=33;break}}else if(!(m<<24>>24==0&p)){w=33;break}p=c[x>>2]|0;m=ow(p|0,((p|0)<0)<<31>>31|0,u+-1|0,0)|0;m=pc[c[n+12>>2]&31](o,y,p,m,C)|0;p=f+32|0;if(u>>>0>(c[p>>2]|0)>>>0)c[p>>2]=u;p=c[f+88>>2]|0;if(p)Yo(p,u,y)}else w=33;while(0);if((w|0)==33)if((k|0)==0&(q|0)==0){t=f+20|0;a[t>>0]=d[t>>0]|2;m=vg(f,u,v,1)|0;a[t>>0]=d[t>>0]&253;if(m)break;q=c[v>>2]|0;m=q+24|0;b[m>>1]=e[m>>1]&65527;Po(q);m=0}else m=0;if(q){o=c[q+4>>2]|0;gw(o|0,y|0,c[x>>2]|0)|0;_b[c[f+196>>2]&31](q);do if(z){if((l|0)!=0?(t=g,h=c[t+4>>2]|0,u=f+80|0,s=c[u+4>>2]|0,(h|0)>(s|0)|((h|0)==(s|0)?(c[t>>2]|0)>>>0>(c[u>>2]|0)>>>0:0)):0)break;tl(q)}while(0);if(r){p=f+104|0;n=o+24|0;o=p+16|0;do{a[p>>0]=a[n>>0]|0;p=p+1|0;n=n+1|0}while((p|0)<(o|0))}kl(q)}}else m=0;else m=101}else m=q}else m=q;while(0);i=A;return m|0}function tq(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=b+24|0;if((c[g>>2]|0)<=(e|0)){i=e+1|0;j=b+32|0;h=Tc(c[j>>2]|0,i<<2)|0;if(!h){g=7;h=0}else{k=c[g>>2]|0;bw(h+(k<<2)|0,0,i-k<<2|0)|0;c[j>>2]=h;c[g>>2]=i;k=5}}else{h=c[b+32>>2]|0;k=5}if((k|0)==5){j=b+32|0;h=h+(e<<2)|0;do if(!(c[h>>2]|0)){if((a[b+43>>0]|0)!=2){g=c[b+4>>2]|0;g=pc[c[(c[g>>2]|0)+52>>2]&31](g,e,32768,d[b+44>>0]|0,h)|0;if((g|0)!=8)break;g=b+46|0;a[g>>0]=d[g>>0]|2;g=0;break}g=mg(32768,0)|0;if(g)bw(g|0,0,32768)|0;c[(c[j>>2]|0)+(e<<2)>>2]=g;g=(c[(c[j>>2]|0)+(e<<2)>>2]|0)==0?7:0}else g=0;while(0);h=c[(c[j>>2]|0)+(e<<2)>>2]|0}c[f>>2]=h;return g|0}function uq(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=b+d|0;if(!e){g=0;d=0}else{g=c[e>>2]|0;d=c[e+4>>2]|0}if(!a)do{g=g+d+(jw(c[b>>2]|0)|0)|0;d=g+d+(jw(c[b+4>>2]|0)|0)|0;b=b+8|0}while(b>>>0<h>>>0);else do{g=g+d+(c[b>>2]|0)|0;d=g+d+(c[b+4>>2]|0)|0;b=b+8|0}while(b>>>0<h>>>0);c[f>>2]=g;c[f+4>>2]=d;return}function vq(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;h=a+8|0;g=c[h>>2]|0;h=c[h+4>>2]|0;if((h|0)>(f|0)|(h|0)==(f|0)&g>>>0>e>>>0?(i=fw(d|0,((d|0)<0)<<31>>31|0,e|0,f|0)|0,k=C,!((k|0)<(h|0)|(k|0)==(h|0)&i>>>0<g>>>0)):0){i=$v(g|0,h|0,e|0,f|0)|0;h=a+4|0;g=c[h>>2]|0;g=pc[c[(c[g>>2]|0)+12>>2]&31](g,b,i,e,f)|0;if(!g){e=fw(i|0,((i|0)<0)<<31>>31|0,e|0,f|0)|0;f=C;g=c[h>>2]|0;g=nc[c[(c[g>>2]|0)+20>>2]&127](g,c[a+16>>2]&19)|0;if(!((i|0)==(d|0)|(g|0)!=0)){d=d-i|0;h=b+i|0;g=f;j=5}}}else{h=b;g=f;j=5}if((j|0)==5){f=c[a+4>>2]|0;g=pc[c[(c[f>>2]|0)+12>>2]&31](f,h,d,e,g)|0}return g|0}function wq(a){a=a|0;var d=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();h=l+8|0;k=l+4|0;g=l;c[h>>2]=0;c[k>>2]=0;c[g>>2]=0;f=a+68|0;d=c[f>>2]|0;if(d){Lo(a,(d+33|0)>>>12,h,k,g)|0;g=(c[f>>2]|0)-(c[g>>2]|0)|0;a=c[h>>2]|0;f=0;do{d=a+(f<<1)|0;if((e[d>>1]|0|0)>(g|0))b[d>>1]=0;f=f+1|0}while((f|0)!=8192);d=(c[k>>2]|0)+(g+1<<2)|0;bw(d|0,0,a-d|0)|0}i=l;return}function xq(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();e=g;h=a+204|0;f=Yb[c[8744+132>>2]&63](c[(c[h>>2]|0)+40>>2]|0,d,0)|0;f=el(c[h>>2]|0,d,f)|0;do if(!f)e=0;else{if((b[f+26>>1]|0)==1){il(f);e=0;break}c[e>>2]=0;d=gl(c[a+208>>2]|0,c[f+20>>2]|0,e)|0;if(!d){d=hl(f,c[e>>2]|0)|0;if(!d){_b[c[a+196>>2]&31](f);d=0}}xg(f);e=d}while(0);d=c[a+88>>2]|0;if(d)do{c[d+16>>2]=1;d=c[d+44>>2]|0}while((d|0)!=0);i=g;return e|0}function yq(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=i;i=i+16|0;if((i|0)>=(j|0))ba();C=D;z=c[f+52>>2]|0;q=(c[z+36>>2]|0)+-4|0;v=g&65535;A=h&65535;u=A+v|0;B=c[f+56>>2]|0;if(b[z+22>>1]&4)bw(B+v|0,0,A|0)|0;y=d[f+6>>0]|0;z=y+1|0;n=z&65535;x=z&65535;if((a[B+(x+1)>>0]|0)==0?(a[B+x>>0]|0)==0:0){s=h&255;q=(h&65535)>>>8&255;r=u;p=0;o=0;x=23}else{s=n;x=6}a:do if((x|0)==6){while(1){x=0;m=s&65535;o=a[B+(m+1)>>0]|0;l=o&255;r=d[B+m>>0]<<8|l;n=s;s=r&65535;if(!(r>>>0<v>>>0&(r|0)!=0)){p=o;t=r;break}if(r>>>0<(m+4|0)>>>0){x=8;break}else x=6}if((x|0)==8){c[C>>2]=54420;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break}if(t>>>0>q>>>0){c[C>>2]=54423;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break}k=h&255;q=(h&65535)>>>8&255;o=(s&65535)>>>8&255;do if((t+-1|0)>>>0<(u+3|0)>>>0)if(u>>>0>t>>>0){c[C>>2]=54434;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break a}else{r=(d[B+(t+2)>>0]<<8|d[B+(t+3)>>0])+t|0;q=r-v|0;s=q&255;q=(q&65535)>>>8&255;p=a[B+(t+1)>>0]|0;o=a[B+t>>0]|0;k=l-u&255;break}else{s=k;r=u;k=0}while(0);do if(m>>>0>z>>>0?(w=(d[B+(m+2)>>0]<<8|d[B+(m+3)>>0])+m|0,(w+3|0)>=(v|0)):0)if((v|0)<(w|0)){c[C>>2]=54447;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break a}else{q=r-m|0;g=n;s=q&255;q=(q&65535)>>>8&255;k=(k&255)+v-w&255;break}while(0);m=B+(y+7)|0;l=a[m>>0]|0;if((l&255)<(k&255)){c[C>>2]=54453;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break}else{a[m>>0]=(l&255)-(k&255);x=23;break}}while(0);b:do if((x|0)==23){k=g&65535;l=B+(y+5)|0;m=B+(y+6)|0;do if((k|0)==(d[l>>0]<<8|d[m>>0]|0))if((n&65535|0)==(z|0)){a[B+z>>0]=o;a[B+(y+2)>>0]=p;a[l>>0]=r>>>8;a[m>>0]=r;break}else{c[C>>2]=54460;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break b}else{C=n&65535;a[B+C>>0]=(g&65535)>>>8;a[B+(C+1)>>0]=g;a[B+k>>0]=o;a[B+(k+1)>>0]=p;a[B+(k+2)>>0]=q;a[B+(k+3)>>0]=s}while(0);k=f+16|0;b[k>>1]=(e[k>>1]|0)+A;k=0}while(0);i=D;return k|0}function zq(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))ba();r=u;q=d[b+6>>0]|0;t=c[b+56>>2]|0;p=c[(c[b+52>>2]|0)+36>>2]|0;l=p+-4|0;b=q+1|0;while(1){m=t+b|0;n=(d[m>>0]|0)<<8|(d[t+(b+1)>>0]|0);if(!n){b=0;break}if((n|0)>(l|0)|(n|0)<(b+4|0)){s=4;break}h=t+(n+2)|0;k=t+(n+3)|0;b=(d[h>>0]|0)<<8|(d[k>>0]|0);if((b|0)<(e|0))b=n;else{o=h;l=n;s=6;break}}a:do if((s|0)==4){c[r>>2]=54252;c[r+4>>2]=10788;Zc(11,13600,r);c[f>>2]=11;b=0}else if((s|0)==6){h=b-e|0;do if((h|0)>=4)if((b+l|0)>(p|0)){c[r>>2]=54275;c[r+4>>2]=10788;Zc(11,13600,r);c[f>>2]=11;b=0;break a}else{a[o>>0]=h>>>8;a[k>>0]=h;break}else{b=t+(q+7)|0;if((d[b>>0]|0)<=59){q=t+l|0;q=d[q>>0]|d[q+1>>0]<<8;a[m>>0]=q;a[m+1>>0]=q>>8;a[b>>0]=(d[b>>0]|0)+h;break}if(!g){b=0;break a}c[g>>2]=1;b=0;break a}while(0);b=t+(h+l)|0}while(0);i=u;return b|0}function Aq(f){f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=i;i=i+16|0;if((i|0)>=(j|0))ba();B=D;y=c[f+56>>2]|0;A=d[f+6>>0]|0;u=e[f+14>>1]|0;v=b[f+18>>1]|0;q=v&65535;r=f+52|0;s=c[(c[r>>2]|0)+36>>2]|0;z=(q<<1)+u|0;t=s+-4|0;w=y+(A+5)|0;x=y+(A+6)|0;a:do if(v<<16>>16){p=s;v=0;h=y;k=0;while(1){m=(v<<1)+u|0;l=y+m|0;m=y+(m+1)|0;n=(d[l>>0]|0)<<8|(d[m>>0]|0);if((n|0)<(z|0)|(n|0)>(t|0)){C=3;break}o=(Hp(f,h+n|0)|0)&65535;g=p-o|0;if((g|0)<(z|0)|(o+n|0)>(s|0)){C=5;break}a[l>>0]=g>>>8;a[m>>0]=g;if(!k)if((g|0)==(n|0))k=0;else{k=c[(c[c[r>>2]>>2]|0)+200>>2]|0;h=(d[w>>0]|0)<<8|(d[x>>0]|0);gw(k+h|0,y+h|0,p-h|0)|0;h=k;C=9}else C=9;if((C|0)==9){C=0;gw(y+g|0,h+n|0,o|0)|0}v=v+1|0;if((v|0)>=(q|0)){C=11;break a}else p=g}if((C|0)==3){c[B>>2]=54184;c[B+4>>2]=10788;Zc(11,13600,B);g=11;break}else if((C|0)==5){c[B>>2]=54196;c[B+4>>2]=10788;Zc(11,13600,B);g=11;break}}else{g=s;C=11}while(0);if((C|0)==11){a[w>>0]=g>>>8;a[x>>0]=g;a[y+(A+1)>>0]=0;a[y+(A+2)>>0]=0;a[y+(A+7)>>0]=0;C=g-z|0;bw(y+z|0,0,C|0)|0;if((C|0)==(e[f+16>>1]|0|0))g=0;else{c[B>>2]=54221;c[B+4>>2]=10788;Zc(11,13600,B);g=11}}i=D;return g|0}function Bq(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+32|0;if((i|0)>=(j|0))ba();h=k;if((c[f>>2]|0)==0?(np(a,e,h),g=b[h+18>>1]|0,g<<16>>16!=0):0){g=g&65535;vp(c[a+52>>2]|0,(d[e+(g+1)>>0]|0)<<16|(d[e+g>>0]|0)<<24|(d[e+(g+2)>>0]|0)<<8|(d[e+(g+3)>>0]|0),3,c[a+72>>2]|0,f)}i=k;return}function Cq(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;do if(!(c[g>>2]|0)){h=c[b+52>>2]|0;j=c[b+56>>2]|0;l=c[f+56>>2]|0;i=d[b+6>>0]|0;k=(c[f+72>>2]|0)==1?100:0;m=d[j+(i+5)>>0]<<8|d[j+(i+6)>>0];gw(l+m|0,j+m|0,(c[h+36>>2]|0)-m|0)|0;gw(l+k|0,j+i|0,(e[b+18>>1]<<1)+(e[b+14>>1]|0)|0)|0;a[f>>0]=0;b=Xp(f)|0;if(b){c[g>>2]=b;break}if(a[h+17>>0]|0)c[g>>2]=Wp(f)|0}while(0);return}function Dq(f,g,h,i){f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;q=d[f+6>>0]|0;t=c[f+56>>2]|0;m=c[f+52>>2]|0;o=c[m+36>>2]|0;n=t+o|0;j=c[f+64>>2]|0;m=c[(c[m>>2]|0)+200>>2]|0;p=t+(q+5)|0;r=t+(q+6)|0;s=(d[p>>0]|0)<<8|(d[r>>0]|0);gw(m+s|0,t+s|0,o-s|0)|0;s=t;if((g|0)>0){o=0;l=j;j=n;while(1){k=c[h+(o<<2)>>2]|0;if(k>>>0>t>>>0&k>>>0<n>>>0)k=m+(k-s)|0;u=e[i+(o<<1)>>1]|0;j=j+(0-u)|0;gw(j|0,k|0,u|0)|0;k=j-s|0;a[l>>0]=k>>>8;a[l+1>>0]=k;o=o+1|0;if((o|0)==(g|0))break;else l=l+2|0}}else j=n;i=f+18|0;b[i>>1]=g;a[f+1>>0]=0;a[t+(q+1)>>0]=0;a[t+(q+2)>>0]=0;a[t+(q+3)>>0]=(e[i>>1]|0)>>>8;a[t+(q+4)>>0]=b[i>>1];i=j-s|0;a[p>>0]=i>>>8;a[r>>0]=i;a[t+(q+7)>>0]=0;return}function Eq(a,b,f,g){a=a|0;b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=c[a+56>>2]|0;p=r+(c[(c[a+52>>2]|0)+36>>2]|0)|0;n=r+((d[a+6>>0]|0)+8+(d[a+7>>0]|0))|0;a:do if((b|0)>0){o=r;q=0;h=0;l=0;m=0;while(1){j=c[f+(q<<2)>>2]|0;if(j>>>0>=n>>>0&j>>>0<p>>>0){i=e[g+(q<<1)>>1]|0;k=j+i|0;if((l|0)!=(k|0)){if(l)yq(a,l-o&65535,m&65535)|0;if(k>>>0>p>>>0){h=0;break a}}else i=i+m|0;h=h+1|0}else{j=l;i=m}q=q+1|0;if((q|0)>=(b|0))break;else{l=j;m=i}}if(j)yq(a,j-r&65535,i&65535)|0}else h=0;while(0);return h|0}function Fq(b,d,f,g,h,k,l){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();t=v;n=c[b+56>>2]|0;m=c[f>>2]|0;if(!(a[n+1>>0]|0))s=(a[n+2>>0]|0)!=0;else s=1;a:do if((h|0)>0){q=0;while(1){p=e[l+(q<<1)>>1]|0;if(s?(r=zq(b,p,t,0)|0,(r|0)!=0):0)o=r;else{o=m+(0-p)|0;if(o>>>0<d>>>0){m=1;break a}else m=o}gw(o|0,c[k+(q<<2)>>2]|0,p|0)|0;p=o-n|0;a[g>>0]=p>>>8;a[g+1>>0]=p;q=q+1|0;if((q|0)>=(h|0)){u=9;break}else g=g+2|0}}else u=9;while(0);if((u|0)==9){c[f>>2]=m;m=0}i=v;return m|0}function Gq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();n=o;e=c[a+44>>2]|0;h=a;f=c[h>>2]|0;h=c[h+4>>2]|0;a:do if(!e){m=a+40|0;e=c[m>>2]|0;g=((e|0)<0)<<31>>31;l=nw(f|0,h|0,e|0,g|0)|0;if(!l){k=a+8|0;k=$v(c[k>>2]|0,c[k+4>>2]|0,f|0,h|0)|0;p=C;q=c[a+24>>2]|0;e=pc[c[(c[q>>2]|0)+8>>2]&31](q,c[a+36>>2]|0,(p|0)>(g|0)|(p|0)==(g|0)&k>>>0>e>>>0?e:k,f,h)|0;if(e)break;e=c[m>>2]|0}k=e-l|0;if((k|0)>=(b|0)){c[d>>2]=(c[a+36>>2]|0)+l;e=a;b=fw(c[e>>2]|0,c[e+4>>2]|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[e>>2]=b;c[e+4>>2]=C;e=0;break}e=a+16|0;f=c[e>>2]|0;if((f|0)<(b|0)){f=f<<1;f=(f|0)<128?128:f;while(1)if((f|0)<(b|0))f=f<<1;else{h=f;break}g=a+28|0;f=ng(c[g>>2]|0,h,((h|0)<0)<<31>>31)|0;if(!f){e=7;break}c[e>>2]=h;c[g>>2]=f}else f=c[a+28>>2]|0;h=a+28|0;gw(f|0,(c[a+36>>2]|0)+l|0,k|0)|0;l=a;l=fw(c[l>>2]|0,c[l+4>>2]|0,k|0,((k|0)<0)<<31>>31|0)|0;e=a;c[e>>2]=l;c[e+4>>2]=C;e=b-k|0;if((e|0)>0){g=e;do{f=c[m>>2]|0;f=(g|0)>(f|0)?f:g;e=Gq(a,f,n)|0;if(e)break a;gw((c[h>>2]|0)+(b-g)|0,c[n>>2]|0,f|0)|0;g=g-f|0}while((g|0)>0)}c[d>>2]=c[h>>2];e=0}else{c[d>>2]=e+f;b=fw(f|0,h|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[e>>2]=b;c[e+4>>2]=C;e=0}while(0);i=o;return e|0}function Hq(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+64|0;if((i|0)>=(j|0))ba();w=z+44|0;y=z;x=z+40|0;u=a+8|0;t=c[u>>2]|0;u=c[u+4>>2]|0;v=a+4|0;p=c[v>>2]|0;Lp(c[a+48>>2]|0,y,c[(c[(c[a>>2]|0)+8>>2]|0)+12>>2]|0,t,u);o=p+8|0;p=p+12|0;q=y+24|0;r=y+16|0;s=a+16|0;while(1){f=c[(c[o>>2]|0)+4>>2]|0;g=c[p>>2]|0;h=c[g+(f*56|0)+20>>2]|0;if(!(c[g+(f*56|0)+24>>2]|0)){d=1;b=0;break}l=q;k=c[l>>2]|0;l=c[l+4>>2]|0;m=c[r>>2]|0;n=((h|0)<0)<<31>>31;b=h;e=n;d=0;do{d=d+1|0;b=iw(b|0,e|0,7)|0;e=C}while(((b|0)!=0|(e|0)!=0)&(d|0)<9);k=fw(k|0,l|0,h|0,n|0)|0;k=fw(k|0,C|0,m|0,((m|0)<0)<<31>>31|0)|0;d=fw(k|0,C|0,d|0,((d|0)<0)<<31>>31|0)|0;k=C;b=c[s>>2]|0;b=fw(b|0,((b|0)<0)<<31>>31|0,t|0,u|0)|0;e=C;if((k|0)>(e|0)|(k|0)==(e|0)&d>>>0>b>>>0){d=1;b=0;break}Mp(y,w,lm(w,h,n)|0);Mp(y,c[g+(f*56|0)+32>>2]|0,h);b=Sm(c[v>>2]|0,x)|0;if(b){d=0;break}}y=Np(y,a+56|0)|0;i=z;return (d?y:b)|0}function Iq(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();f=d;c[f>>2]=e;e=Sk(a,13592,f)|0;ig(a,b);i=d;return e|0}function Jq(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;h=a[d>>0]|0;if(h<<24>>24!=0&(e|0)>0){l=0;do{if((h+-48&255)<10){k=0;do{k=(k*10|0)+-48+(h<<24>>24)|0;d=d+1|0;h=a[d>>0]|0}while((h+-48&255)<10);h=0}else{k=0;h=0}b[f+(l<<1)>>1]=bs(k,h)|0;d=(a[d>>0]|0)==32?d+1|0:d;l=l+1|0;h=a[d>>0]|0}while(h<<24>>24!=0&(l|0)<(e|0))}l=g+51|0;a[l>>0]=a[l>>0]&-69;a:do if(a[d>>0]|0){f=g+44|0;b:while(1){do if(!(Ch(13448,d,10352,0)|0)){if(Ch(13464,d,10352,0)|0){c[m>>2]=0;zn(d+3|0,m)|0;h=c[m>>2]|0;b[f>>1]=bs(h,((h|0)<0)<<31>>31)|0;break}if(Ch(13480,d,10352,0)|0)a[l>>0]=a[l>>0]|64}else a[l>>0]=a[l>>0]|4;while(0);while(1){h=a[d>>0]|0;if(h<<24>>24==32|h<<24>>24==0)break;d=d+1|0}while(1){k=d+1|0;if(!(h<<24>>24))break a;else if(h<<24>>24!=32)continue b;h=a[k>>0]|0;d=k}}}while(0);i=n;return}function Kq(d){d=d|0;var e=0,f=0;f=d+8|0;e=c[f>>2]|0;if(!e){e=rh(d)|0;c[f>>2]=e;if(e)sh(e,155,0,0,0)|0;if((c[d+408>>2]|0)==0?(b[(c[d>>2]|0)+60>>1]&8)==0:0)a[d+23>>0]=1}return e|0}function Lq(b,d){b=b|0;d=d|0;var e=0;e=(c[b+32>>2]|0)+-1|0;if((e|0)>(c[(c[b+24>>2]|0)+88>>2]|0)?(a[(c[b+4>>2]|0)+(e*20|0)>>0]|0)==d<<24>>24:0){vh(b,e);e=1}else e=0;return e|0}function Mq(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;j=Kq(d)|0;i=g+32|0;cs(d,f,c[i>>2]|0,(h|0)==55&1,c[g>>2]|0);if(!(a[g+44>>0]&32)){g=b[g+38>>1]|0;th(j,sh(j,h,e,c[i>>2]|0,f)|0,g,-14)}else{i=c[g+8>>2]|0;a:do if(!i)i=0;else while(1){if((a[i+51>>0]&3)==2)break a;i=c[i+20>>2]|0;if(!i){i=0;break}}while(0);sh(j,h,e,c[i+40>>2]|0,f)|0;g=c[d+8>>2]|0;th(g,-1,ds(d,i)|0,-6)}return}function Nq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;if((d|0)!=0?(a[d>>0]|0)==-97:0)sh(c[b+8>>2]|0,33,c[d+28>>2]|0,e,0)|0;else h=4;if(((h|0)==4?(g=es(b,d,e)|0,(g|0)!=(e|0)):0)?(f=c[b+8>>2]|0,(f|0)!=0):0)sh(f,34,g,e,0)|0;return}function Oq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();l=m;h=c[b>>2]|0;do if(((a[h+145>>0]|0)==0?(a[b+451>>0]|0)==0:0)?(k=c[h+284>>2]|0,(k|0)!=0):0){h=gc[k&7](c[h+288>>2]|0,d,e,f,g,c[b+492>>2]|0)|0;if((h|0)==0|(h|0)==2)break;else if((h|0)==1){ph(b,25216,l);c[b+12>>2]=23;h=1;break}else{ph(b,25232,l);c[b+12>>2]=1;h=1;break}}else h=0;while(0);i=m;return h|0}function Pq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;d=Sq(c[a>>2]|0,d)|0;do if(d){e=Kq(a)|0;if((e|0)!=0?(Oq(a,32,c[37088+(b<<2)>>2]|0,d,0)|0)==0:0){th(e,sh(e,2,b,0,0)|0,d,-1);break}ig(c[a>>2]|0,d)}while(0);return}function Qq(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();r=v;p=v+4|0;u=c[e>>2]|0;f=ar(e,f,g,p)|0;a:do if((f|0)>=0){q=(h|0)!=0;if(q?(c[g+4>>2]|0)!=0&(f|0)!=1:0){ph(e,36976,r);break}t=q?1:f;g=c[p>>2]|0;q=g;f=c[q+4>>2]|0;p=e+496|0;c[p>>2]=c[q>>2];c[p+4>>2]=f;p=Sq(u,g)|0;if(p){b:do if((Hr(e,p)|0)==0?(o=(a[u+144>>0]|0)==1?1:h,s=u+16|0,n=c[(c[s>>2]|0)+(t<<4)>>2]|0,(Oq(e,18,(o|0)==1?13184:13208,0,n)|0)==0):0){h=(o|0)!=0;if(!k)f=h?4:2;else f=h?6:8;q=(l|0)!=0;if(!q?(Oq(e,f,p,0,n)|0)!=0:0)break;do if(!(a[e+451>>0]|0)){h=c[(c[s>>2]|0)+(t<<4)>>2]|0;if(Cn(e)|0)break b;if(!(Wh(u,p,h)|0)){if(!(Zp(u,p,h)|0))break;c[r>>2]=p;ph(e,37048,r);break b}if(!m){c[r>>2]=g;ph(e,37024,r);break b}else{wr(e,t);break b}}while(0);o=ih(u,76,0)|0;if(!o){a[u+65>>0]=1;c[e+12>>2]=7;s=e+64|0;c[s>>2]=(c[s>>2]|0)+1;break}n=o+0|0;h=n+76|0;do{a[n>>0]=0;n=n+1|0}while((n|0)<(h|0));c[o>>2]=p;b[o+36>>1]=-1;n=c[(c[s>>2]|0)+(t<<4)+12>>2]|0;c[o+68>>2]=n;b[o+40>>1]=1;b[o+28>>1]=200;c[e+484>>2]=o;if((a[e+18>>0]|0)==0?(Wv(p,26576)|0)==0:0)c[n+72>>2]=o;if(a[u+145>>0]|0)break a;g=Kq(e)|0;if(!g)break a;s=c[e+408>>2]|0;wr(e,t);n=1<<t;s=((s|0)==0?e:s)+328|0;c[s>>2]=c[s>>2]|n;if(q)sh(g,146,0,0,0)|0;o=e+72|0;f=c[o>>2]|0;p=f+1|0;c[e+384>>2]=p;q=f+2|0;c[e+388>>2]=q;f=f+3|0;c[o>>2]=f;sh(g,51,t,f,2)|0;o=g+96|0;c[o>>2]=c[o>>2]|n;o=sh(g,45,f,0,0)|0;sh(g,25,(c[u+24>>2]&32768|0)!=0?1:4,f,0)|0;sh(g,52,t,2,f)|0;sh(g,25,d[u+62>>0]|0,f,0)|0;sh(g,52,t,5,f)|0;h=g+32|0;n=c[h>>2]|0;if(n>>>0>o>>>0)c[(c[g+4>>2]|0)+(o*20|0)+8>>2]=n;c[(c[g+24>>2]|0)+88>>2]=n+-1;if(!(l|k))c[e+416>>2]=sh(g,121,t,q,0)|0;else sh(g,25,0,q,0)|0;fs(e,t);sh(g,74,0,p,0)|0;sh(g,28,0,f,0)|0;sh(g,75,0,f,p)|0;n=c[g+4>>2]|0;if(n)a[n+(((c[h>>2]|0)+-1|0)*20|0)+3>>0]=8;sh(g,61,0,0,0)|0;break a}while(0);ig(u,p)}}while(0);i=v;return}function Rq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0;O=i;i=i+176|0;if((i|0)>=(j|0))ba();J=O+80|0;G=O+168|0;D=O;E=O+136|0;F=O+112|0;K=c[f>>2]|0;a:do if((!((h|0)==0&(l|0)==0)?(L=K+65|0,(a[L>>0]|0)==0):0)?(M=f+484|0,N=c[M>>2]|0,(N|0)!=0):0){I=K+145|0;if(a[I>>0]|0)c[N+32>>2]=c[K+140>>2];b:do if(k&32){p=N+44|0;o=d[p>>0]|0;if(o&8){ph(f,36584,J);break a}if(!(o&4)){c[J>>2]=c[N>>2];ph(f,36640,J);break}a[p>>0]=o|32;q=c[f+8>>2]|0;p=c[f+416>>2]|0;if(p){if((p|0)<0)p=(c[q+32>>2]|0)+-1|0;if(!(a[(c[q>>2]|0)+65>>0]|0))p=(c[q+4>>2]|0)+(p*20|0)|0;else p=29120;a[p>>0]=120}p=c[f+420>>2]|0;if(p){if((p|0)<0)p=(c[q+32>>2]|0)+-1|0;if(!(a[(c[q>>2]|0)+65>>0]|0))o=(c[q+4>>2]|0)+(p*20|0)|0;else o=29120;a[o>>0]=16}o=N+36|0;if((b[o>>1]|0)>-1){p=hr(f,0,0)|0;if(!p)break;z=gh(c[f>>2]|0,c[(c[N+4>>2]|0)+((b[o>>1]|0)*24|0)>>2]|0)|0;A=c[p+4>>2]|0;c[A+4>>2]=z;a[A+12>>0]=a[f+448>>0]|0;p=Xq(f,0,0,0,p,d[N+45>>0]|0,0,0,0,0)|0;if(!p)break;u=p+51|0;a[u>>0]=a[u>>0]&-4|2;b[o>>1]=-1;u=b[p+46>>1]|0}else{p=c[N+8>>2]|0;c:do if(!p)p=0;else while(1){if((a[p+51>>0]&3)==2)break c;p=c[p+20>>2]|0;if(!p){p=0;break}}while(0);v=p+46|0;q=b[v>>1]|0;if((q&65535)>1){t=c[p+4>>2]|0;s=p+48|0;u=1;o=1;do{m=b[t+(u<<1)>>1]|0;r=o;n=t;while(1){if((r|0)<=0){C=36;break}if((b[n>>1]|0)==m<<16>>16){C=35;break}else{r=r+-1|0;n=n+2|0}}if((C|0)==35){C=0;b[s>>1]=(b[s>>1]|0)+-1<<16>>16}else if((C|0)==36){C=0;b[t+(o<<1)>>1]=m;q=b[v>>1]|0;o=o+1|0}u=u+1|0}while((u|0)<(q&65535|0))}else o=1;u=o&65535;b[v>>1]=u}r=p+51|0;q=a[r>>0]|32;a[r>>0]=q;A=u&65535;if(!(a[K+147>>0]|0)){if(u<<16>>16){q=c[p+4>>2]|0;o=c[N+4>>2]|0;n=0;do{a[o+((b[q+(n<<1)>>1]|0)*24|0)+20>>0]=1;n=n+1|0}while((n|0)<(A|0));q=a[r>>0]|0}a[r>>0]=q|8}c[p+40>>2]=c[N+32>>2];r=c[N+8>>2]|0;if(r){x=u<<16>>16==0;y=p+4|0;z=p+32|0;do{d:do if((a[r+51>>0]&3)!=2){do if(x)q=b[r+46>>1]|0;else{s=c[r+4>>2]|0;q=b[r+46>>1]|0;n=q&65535;m=c[y>>2]|0;w=0;o=0;do{t=b[m+(w<<1)>>1]|0;v=n;u=s;while(1){if((v|0)<=0){u=1;break}if((b[u>>1]|0)==t<<16>>16){u=0;break}else{v=v+-1|0;u=u+2|0}}o=u+o|0;w=w+1|0}while((w|0)<(A|0));n=r+46|0;if(!o)break;if(gs(K,r,(q&65535)+o|0)|0)break b;if(x)break d;t=b[n>>1]|0;w=r+4|0;m=r+32|0;v=t;u=0;t=t&65535;while(1){q=c[w>>2]|0;o=b[(c[y>>2]|0)+(u<<1)>>1]|0;v=v&65535;s=q;while(1){if((v|0)<=0){C=63;break}if((b[s>>1]|0)==o<<16>>16)break;else{v=v+-1|0;s=s+2|0}}if((C|0)==63){C=0;b[q+(t<<1)>>1]=o;c[(c[m>>2]|0)+(t<<2)>>2]=c[(c[z>>2]|0)+(u<<2)>>2];t=t+1|0}u=u+1|0;if((u|0)>=(A|0))break d;v=b[n>>1]|0}}while(0);b[r+48>>1]=q}while(0);r=c[r+20>>2]|0}while((r|0)!=0)}v=N+38|0;q=b[v>>1]|0;o=q<<16>>16;if((A|0)>=(o|0)){b[p+48>>1]=q;break}if((gs(K,p,o)|0)==0?(B=b[v>>1]|0,B<<16>>16>0):0){s=p+4|0;u=p+32|0;q=B;t=0;p=A;do{n=c[s>>2]|0;r=p;o=n;while(1){if((r|0)<=0){C=74;break}if((b[o>>1]|0)==(t|0))break;else{r=r+-1|0;o=o+2|0}}if((C|0)==74){C=0;b[n+(p<<1)>>1]=t;c[(c[u>>2]|0)+(p<<2)>>2]=11152;q=b[v>>1]|0;p=p+1|0}t=t+1|0}while((t|0)<(q<<16>>16|0))}}while(0);C=N+68|0;p=c[C>>2]|0;e:do if(p){o=c[K+20>>2]|0;if((o|0)>0){n=c[K+16>>2]|0;q=0;while(1){m=q+1|0;if((c[n+(q<<4)+12>>2]|0)==(p|0))break e;if((m|0)<(o|0))q=m;else{q=m;break}}}else q=0}else q=-1e6;while(0);n=c[N+24>>2]|0;f:do if(n){c[E+0>>2]=0;c[E+4>>2]=0;c[E+8>>2]=0;c[E+12>>2]=0;c[E+16>>2]=0;c[E+20>>2]=0;c[E+24>>2]=0;c[E+28>>2]=0;p=D+0|0;o=p+80|0;do{c[p>>2]=0;p=p+4|0}while((p|0)<(o|0));c[D>>2]=1;c[D+16>>2]=c[N>>2];c[D+24>>2]=N;c[D+48>>2]=-1;c[E>>2]=f;c[E+4>>2]=D;b[E+28>>1]=4;p=n+4|0;if((c[n>>2]|0)>0){o=0;do{if(hs(E,c[(c[p>>2]|0)+(o*20|0)>>2]|0)|0)break f;o=o+1|0}while((o|0)<(c[n>>2]|0))}}while(0);A=N+38|0;m=b[A>>1]|0;if(m<<16>>16>0){p=m<<16>>16;o=c[N+4>>2]|0;n=0;while(1){n=(d[o+22>>0]|0)+n|0;p=p+-1|0;if((p|0)<=0)break;else o=o+24|0}}else n=0;b[N+42>>1]=bs(((e[N+36>>1]|0)>>>15&65535)+n<<2,0)|0;n=c[N+8>>2]|0;if(n)do{is(n);n=c[n+20>>2]|0}while((n|0)!=0);if(!(a[I>>0]|0)){B=Kq(f)|0;if(!B)break;sh(B,61,0,0,0)|0;y=(c[N+12>>2]|0)==0;o=y?36672:36680;y=y?31232:35480;do if(!l){n=k<<24>>24==0?h:f+504|0;l=c[n>>2]|0;p=c[f+496>>2]|0;m=l-p|0;if((a[l>>0]|0)!=59)m=(c[n+4>>2]|0)+m|0;c[J>>2]=o;c[J+4>>2]=m;c[J+8>>2]=p;p=f+388|0;m=N;o=qh(K,36688,J)|0}else{p=f+388|0;sh(B,55,1,c[p>>2]|0,q)|0;o=c[B+4>>2]|0;if(o)a[o+(((c[B+32>>2]|0)+-1|0)*20|0)+3>>0]=4;c[f+68>>2]=2;a[F>>0]=14;c[F+4>>2]=1;a[F+1>>0]=0;c[F+8>>2]=0;c[F+12>>2]=0;er(f,l,F)|0;sh(B,61,1,0,0)|0;if(!(c[f+64>>2]|0)){m=js(f,l)|0;if(!m)break a;F=m+38|0;b[A>>1]=b[F>>1]|0;l=m+4|0;c[N+4>>2]=c[l>>2];b[F>>1]=0;c[l>>2]=0;gg(K,m)}z=N+4|0;w=b[A>>1]|0;if(w<<16>>16>0){s=w<<16>>16;t=0;o=0;u=c[z>>2]|0;while(1){m=c[u>>2]|0;n=0;while(1){r=a[m>>0]|0;if(!(r<<24>>24))break;else if(r<<24>>24==34)n=n+1|0;m=m+1|0;n=n+1|0}o=o+7+n|0;t=t+1|0;if((t|0)==(s|0))break;else u=u+24|0}r=o+2|0}else r=2;m=c[N>>2]|0;o=0;while(1){n=a[m>>0]|0;if(n<<24>>24==34)o=o+1|0;else if(!(n<<24>>24))break;m=m+1|0;o=o+1|0}u=o+r|0;x=(u|0)<50;r=x?10360:36880;v=x?20240:36888;x=x?33952:36896;u=((w<<16>>16)*6|0)+35+u|0;o=mg(u,((u|0)<0)<<31>>31)|0;if(!o){a[L>>0]=1;m=N;o=0;break}Yc(u,o,36904,J)|0;n=o;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;c[G>>2]=n-o&1073741823;ks(o,G,c[N>>2]|0);m=c[G>>2]|0;s=m+1|0;c[G>>2]=s;a[o+m>>0]=40;m=u-s|0;n=o+s|0;if((b[A>>1]|0)>0){w=0;t=c[z>>2]|0;while(1){Yc(m,n,r,J)|0;n=o+s|0;if(!n)n=0;else{r=n;while(1)if(!(a[r>>0]|0))break;else r=r+1|0;n=r-n&1073741823}c[G>>2]=n+s;ks(o,G,c[t>>2]|0);n=c[36920+((a[t+21>>0]|0)+-65<<2)>>2]|0;r=n;while(1)if(!(a[r>>0]|0))break;else r=r+1|0;s=r-n&1073741823;r=c[G>>2]|0;gw(o+r|0,n|0,s|0)|0;s=r+s|0;c[G>>2]=s;r=w+1|0;m=u-s|0;n=o+s|0;if((r|0)<(b[A>>1]|0)){w=r;t=t+24|0;r=v}else break}}c[J>>2]=x;Yc(m,n,10344,J)|0;m=N}while(0);n=K+16|0;k=c[m>>2]|0;F=c[p>>2]|0;l=c[f+384>>2]|0;c[J>>2]=c[(c[n>>2]|0)+(q<<4)>>2];c[J+4>>2]=(q|0)==1?13184:13208;c[J+8>>2]=y;c[J+12>>2]=k;c[J+16>>2]=k;c[J+20>>2]=F;c[J+24>>2]=o;c[J+28>>2]=l;xr(f,36704,J);ig(K,o);zr(f,q);if((a[N+44>>0]&8)!=0?(H=c[n>>2]|0,(c[(c[H+(q<<4)+12>>2]|0)+72>>2]|0)==0):0){c[J>>2]=c[H+(q<<4)>>2];xr(f,36792,J)}c[J>>2]=c[m>>2];Er(B,q,qh(K,36840,J)|0);if(!(a[I>>0]|0))break}else m=N;if(Ek((c[C>>2]|0)+8|0,c[m>>2]|0,N)|0){a[L>>0]=1;break}c[M>>2]=0;l=K+24|0;c[l>>2]=c[l>>2]|2;if(!(c[N+12>>2]|0)){l=c[f+496>>2]|0;c[N+48>>2]=(Jn(l,(c[((c[g>>2]|0)==0?h:g)>>2]|0)-l|0)|0)+13}}while(0);i=O;return}function Sq(b,d){b=b|0;d=d|0;var e=0,f=0;if(!d)e=0;else{f=c[d>>2]|0;d=c[d+4>>2]|0;if((f|0)!=0?(e=fw(d|0,0,1,0)|0,e=ih(b,e,C)|0,(e|0)!=0):0){gw(e|0,f|0,d|0)|0;a[e+d>>0]=0}else e=0;ho(e)}return e|0}function Tq(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;a:do if(b){g=a[b>>0]|0;b:do if(!(g<<24>>24)){f=67;g=0}else{k=g;f=67;h=0;g=0;do{h=d[9328+(k&255)>>0]|0|h<<8;b=b+1|0;if((h|0)==1919246700)if(f<<24>>24==67){f=69;h=1919246700;l=5}else l=14;else if((h|0)==1952807028){f=66;l=5}else if((h|0)==1668050786){f=66;l=5}else if((h|0)==1718382433)if(f<<24>>24==67){f=69;h=1718382433;l=5}else l=13;else if((h|0)==1667785074){f=66;h=1667785074;g=b;l=5}else if((h|0)==1651273570)if(f<<24>>24==69|f<<24>>24==67){o=a[b>>0]|0;k=o;f=65;h=1651273570;g=o<<24>>24==40?b:g}else l=14;else if((h|0)==1685026146)if(f<<24>>24==67){f=69;h=1685026146;l=5}else l=13;else if((h&16777215|0)==6909556){f=68;break b}else l=5;if((l|0)==13)l=5;else if((l|0)==14)l=5;if((l|0)==5){l=0;k=a[b>>0]|0}}while(k<<24>>24!=0)}while(0);if((e|0)!=0?(a[e>>0]=1,f<<24>>24<67):0){if(!g){a[e>>0]=5;break}b=a[g>>0]|0;if(b<<24>>24){while(1){if(((b&255)+-48|0)>>>0<10)break;g=g+1|0;b=a[g>>0]|0;if(!(b<<24>>24))break a}c[m>>2]=0;zn(g,m)|0;g=((c[m>>2]|0)/4|0)+1|0;g=(g|0)>255?255:g;c[m>>2]=g;a[e>>0]=g}}}else f=67;while(0);i=n;return f|0}function Uq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;o=i;i=i+32|0;if((i|0)>=(j|0))ba();m=o;n=c[e>>2]|0;k=c[e+484>>2]|0;do if(k){h=(b[k+38>>1]|0)+-1|0;l=c[k+4>>2]|0;p=c[f>>2]|0;q=(d[n+145>>0]|0)+4|0;c[m+0>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;c[m+16>>2]=0;c[m+20>>2]=0;k=m+20|0;a[k>>0]=q;c[m>>2]=78;c[m+4>>2]=79;c[m+24>>2]=0;ns(m,p)|0;if(!(a[k>>0]|0)){c[m>>2]=c[l+(h*24|0)>>2];ph(e,36480,m);break}k=l+(h*24|0)+4|0;Ck(n,c[k>>2]|0);c[k>>2]=Ir(n,c[f>>2]|0,1,0)|0;l=l+(h*24|0)+8|0;ig(n,c[l>>2]|0);h=c[f+4>>2]|0;k=(c[f+8>>2]|0)-h|0;if((h|0)!=0?(g=fw(k|0,((k|0)<0)<<31>>31|0,1,0)|0,g=ih(n,g,C)|0,(g|0)!=0):0){gw(g|0,h|0,k|0)|0;a[g+k>>0]=0}else g=0;c[l>>2]=g}while(0);Ck(n,c[f>>2]|0);i=o;return}function Vq(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;if((b|0)==72&(d|0)!=0&(e|0)!=0?(c[a+64>>2]|0)==0:0)b=os(c[a>>2]|0,d,e)|0;else{b=jr(c[a>>2]|0,b,f,1)|0;ps(c[a>>2]|0,b,d,e)}if((b|0)!=0?(g=c[(c[a>>2]|0)+100>>2]|0,(g|0)<(c[b+24>>2]|0)):0){c[h>>2]=g;ph(a,27152,h)}i=k;return b|0}function Wq(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+16|0;if((i|0)>=(j|0))ba();z=A;x=c[e+484>>2]|0;do if((x|0)!=0?(a[e+451>>0]|0)==0:0){y=x+44|0;m=d[y>>0]|0;if(m&4){c[z>>2]=c[x>>2];ph(e,36376,z);break}v=m|4;a[y>>0]=v;w=(f|0)==0;if(w){m=(b[x+38>>1]|0)+-1|0;t=c[x+4>>2]|0;l=t+(m*24|0)+23|0;a[l>>0]=d[l>>0]|1;l=m;n=1;m=c[t+(m*24|0)+12>>2]|0}else{u=c[f>>2]|0;if((u|0)>0){r=f+4|0;s=x+4|0;q=b[x+38>>1]|0;t=0;m=0;do{a:do if(q<<16>>16>0){o=c[(c[r>>2]|0)+(t*20|0)+4>>2]|0;p=c[s>>2]|0;n=0;while(1){l=n+1|0;if(!($c(o,c[p+(n*24|0)>>2]|0)|0))break;if((l|0)<(q<<16>>16|0))n=l;else break a}l=p+(n*24|0)+23|0;a[l>>0]=d[l>>0]|1;l=n;m=c[p+(n*24|0)+12>>2]|0}else l=0;while(0);t=t+1|0}while((t|0)!=(u|0))}else{l=-1;m=0}n=(u|0)==1}if(n&(m|0)!=0?($c(m,11144)|0|k|0)==0:0){b[x+36>>1]=l;a[x+45>>0]=g;a[y>>0]=v|h<<3;if(w){f=0;break}a[e+448>>0]=a[(c[f+4>>2]|0)+12>>0]|0;break}if(h){ph(e,36424,z);break}m=c[e+8>>2]|0;l=(m|0)!=0;if(l)c[e+420>>2]=sh(m,156,0,0,0)|0;f=Xq(e,0,0,0,f,g,0,0,k,0)|0;if((f|0)!=0?(t=f+51|0,a[t>>0]=a[t>>0]&-4|2,l):0){f=c[e+420>>2]|0;l=c[m+32>>2]|0;if(l>>>0>f>>>0)c[(c[m+4>>2]|0)+(f*20|0)+8>>2]=l;c[(c[m+24>>2]|0)+88>>2]=l+-1;f=0}else f=0}while(0);Jk(c[e>>2]|0,f);i=A;return}function Xq(f,g,h,k,l,m,n,o,p,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0;V=i;i=i+144|0;if((i|0)>=(j|0))ba();S=V;B=V+112|0;u=V+88|0;Q=V+84|0;K=V+80|0;U=c[f>>2]|0;c[Q>>2]=0;c[K>>2]=0;P=U+65|0;a:do if(((a[P>>0]|0)==0?(a[f+451>>0]|0)==0:0)?(Cn(f)|0)==0:0){R=(k|0)!=0;b:do if(R){g=ar(f,g,h,Q)|0;if((g|0)<0){r=0;h=0;break a}if((a[U+145>>0]|0)==0?(r=Fr(f,k)|0,(c[h+4>>2]|0)==0&(r|0)!=0):0)g=(c[r+68>>2]|0)==(c[(c[U+16>>2]|0)+28>>2]|0)?1:g;h=c[Q>>2]|0;r=c[f>>2]|0;c[u>>2]=f;r=c[r+16>>2]|0;c[u+12>>2]=c[r+(g<<4)>>2];c[u+4>>2]=c[r+(g<<4)+12>>2];c[u+16>>2]=20632;c[u+20>>2]=h;r=(g|0)==1;c[u+8>>2]=r&1;Gr(u,k)|0;t=Qr(f,0,k+8|0)|0;if(!t){r=0;h=0;break a}if(r?(c[(c[U+16>>2]|0)+28>>2]|0)!=(c[t+68>>2]|0):0){c[S>>2]=c[t>>2];ph(f,35920,S);r=0;h=0;break a}if((a[t+44>>0]&32)!=0?(s=c[t+8>>2]|0,(s|0)!=0):0){r=s;while(1){if((a[r+51>>0]&3)==2){s=g;J=r;u=t;break b}r=c[r+20>>2]|0;if(!r){s=g;J=0;u=t;break}}}else{s=g;J=0;u=t}}else{u=c[f+484>>2]|0;if(!u){r=0;h=0;break a}g=c[u+68>>2]|0;if(g){r=c[U+20>>2]|0;if((r|0)>0){h=c[U+16>>2]|0;t=0;while(1){s=t+1|0;if((c[h+(t<<4)+12>>2]|0)==(g|0)){h=0;s=t;J=0;break b}if((s|0)<(r|0))t=s;else{h=0;J=0;break}}}else{h=0;s=0;J=0}}else{h=0;s=-1e6;J=0}}while(0);O=U+16|0;C=c[O>>2]|0;g=C+(s<<4)|0;x=c[u>>2]|0;if(((Bc(x,25568,7)|0)==0?(a[U+145>>0]|0)==0:0)?(Bc(x+7|0,35976,9)|0)!=0:0){c[S>>2]=x;ph(f,35992,S);r=0;h=0;break}if(c[u+12>>2]|0){ph(f,36024,S);r=0;h=0;break}N=u+44|0;if(a[N>>0]&16){ph(f,36056,S);r=0;h=0;break}D=(h|0)==0;if(!D){h=Sq(U,h)|0;if(!h){r=0;h=0;break}if(Hr(f,h)|0){r=0;break}if((a[U+145>>0]|0)==0?(Wh(U,h,0)|0)!=0:0){c[S>>2]=h;ph(f,36096,S);r=0;break}if(Zp(U,h,c[g>>2]|0)|0)if(!q){c[S>>2]=h;ph(f,36136,S);r=0;break}else{wr(f,s);r=0;break}else t=h}else{r=c[u+8>>2]|0;if(!r)t=1;else{t=1;do{t=t+1|0;r=c[r+20>>2]|0}while((r|0)!=0)}c[S>>2]=x;c[S+4>>2]=t;t=qh(U,36160,S)|0;if(!t){r=0;h=0;break}}g=c[g>>2]|0;r=(s|0)==1;L=r?13184:13208;if((Oq(f,18,L,0,g)|0)==0?(Oq(f,r?3:1,t,c[u>>2]|0,g)|0)==0:0){if(!l){l=hr(f,0,0)|0;if(!l){l=0;r=0;h=t;break}F=gh(c[f>>2]|0,c[(c[u+4>>2]|0)+(((b[u+38>>1]|0)+-1|0)*24|0)>>2]|0)|0;G=c[l+4>>2]|0;c[G+4>>2]=F;a[G+12>>0]=p}A=c[l>>2]|0;if((A|0)>0){x=c[l+4>>2]|0;v=0;g=0;do{r=c[x+(v*20|0)>>2]|0;if(r){h=c[r+8>>2]|0;if(!h)r=1;else{r=h;while(1)if(!(a[r>>0]|0))break;else r=r+1|0;r=(r-h&1073741823)+1|0}g=r+g|0}v=v+1|0}while((v|0)<(A|0));h=g}else h=0;if(!t)r=0;else{g=t;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;r=g-t&1073741823}F=(J|0)!=0;if(F)g=e[J+46>>1]|0;else g=1;M=qs(U,A+g&65535,h+1+r|0,K)|0;c:do if(!(a[P>>0]|0)){E=c[K>>2]|0;c[M>>2]=E;I=r+1|0;z=E+I|0;c[K>>2]=z;gw(E|0,t|0,I|0)|0;c[M+12>>2]=u;I=M+50|0;a[I>>0]=m;E=M+51|0;a[E>>0]=a[E>>0]&-12|((m|0)!=0&1)<<3&255|D&1;H=M+24|0;c[H>>2]=c[(c[O>>2]|0)+(s<<4)+12>>2];g=c[l>>2]|0;G=M+46|0;b[G>>1]=g;if(o){c[B+0>>2]=0;c[B+4>>2]=0;c[B+8>>2]=0;c[B+12>>2]=0;c[B+16>>2]=0;c[B+20>>2]=0;c[B+24>>2]=0;c[B+28>>2]=0;x=S+0|0;h=x+80|0;do{c[x>>2]=0;x=x+4|0}while((x|0)<(h|0));c[S>>2]=1;c[S+16>>2]=c[u>>2];c[S+24>>2]=u;c[S+48>>2]=-1;c[B>>2]=f;c[B+4>>2]=S;b[B+28>>1]=16;hs(B,o)|0;c[M+36>>2]=o;g=c[l>>2]|0}w=(d[(c[C+(s<<4)+12>>2]|0)+76>>0]|0)>3;d:do if((g|0)>0){D=u+4|0;C=u+38|0;B=M+4|0;o=U+145|0;g=M+32|0;v=M+28|0;h=0;p=c[l+4>>2]|0;while(1){r=c[p+4>>2]|0;x=b[C>>1]|0;e:do if(x<<16>>16>0){A=0;y=c[D>>2]|0;while(1){if(!($c(r,c[y>>2]|0)|0)){q=A;break e}A=A+1|0;if((A|0)<(x<<16>>16|0))y=y+24|0;else{q=A;break}}}else q=0;while(0);if((q|0)>=(x<<16>>16|0))break;b[(c[B>>2]|0)+(h<<1)>>1]=q;A=c[p>>2]|0;if(!A){A=c[(c[D>>2]|0)+(q*24|0)+16>>2]|0;A=(A|0)!=0?A:11152}else{y=c[A+8>>2]|0;if(!y)A=1;else{A=y;while(1)if(!(a[A>>0]|0))break;else A=A+1|0;A=(A-y&1073741823)+1|0}gw(z|0,y|0,A|0)|0;y=c[K>>2]|0;z=y+A|0;c[K>>2]=z;A=y}if((a[o>>0]|0)==0?(_q(f,A)|0)==0:0){h=0;r=0;T=134;break c}c[(c[g>>2]|0)+(h<<2)>>2]=A;a[(c[v>>2]|0)+h>>0]=w?a[p+12>>0]|0:0;if(!(a[(c[D>>2]|0)+(q*24|0)+20>>0]|0))a[E>>0]=a[E>>0]&-9;h=h+1|0;if((h|0)<(c[l>>2]|0))p=p+20|0;else break d}c[S>>2]=c[u>>2];c[S+4>>2]=r;ph(f,36184,S);a[f+17>>0]=1;h=0;r=0;T=134;break c}else h=0;while(0);do if(F){w=J+46|0;x=b[w>>1]|0;if(!(x<<16>>16))break;B=J+4|0;C=M+4|0;D=M+48|0;p=J+32|0;q=M+32|0;g=J+28|0;v=M+28|0;o=0;do{y=b[(c[B>>2]|0)+(o<<1)>>1]|0;r=c[C>>2]|0;A=e[G>>1]|0;z=r;while(1){if((A|0)<=0){T=92;break}if((b[z>>1]|0)==y<<16>>16){T=91;break}else{A=A+-1|0;z=z+2|0}}if((T|0)==91){T=0;b[D>>1]=(b[D>>1]|0)+-1<<16>>16}else if((T|0)==92){T=0;b[r+(h<<1)>>1]=y;c[(c[q>>2]|0)+(h<<2)>>2]=c[(c[p>>2]|0)+(o<<2)>>2];a[(c[v>>2]|0)+h>>0]=a[(c[g>>2]|0)+o>>0]|0;x=b[w>>1]|0;h=h+1|0}o=o+1|0}while((o|0)<(x&65535|0))}else{b[(c[M+4>>2]|0)+(h<<1)>>1]=-1;c[(c[M+32>>2]|0)+(h<<2)>>2]=11152}while(0);_p(M);o=f+484|0;g=c[o>>2]|0;if(!g){is(M);g=c[o>>2]|0}f:do if((u|0)==(g|0)){r=c[u+8>>2]|0;if(!r)break;y=b[G>>1]|0;z=M+4|0;A=M+32|0;while(1){if((b[r+46>>1]|0)==y<<16>>16){g:do if(!(y<<16>>16)){o=0;g=0}else{v=c[r+4>>2]|0;w=c[z>>2]|0;x=r+32|0;g=0;while(1){if((b[v+(g<<1)>>1]|0)!=(b[w+(g<<1)>>1]|0)){o=y;break g}o=c[(c[x>>2]|0)+(g<<2)>>2]|0;h=c[(c[A>>2]|0)+(g<<2)>>2]|0;if((o|0)!=(h|0)?($c(o,h)|0)!=0:0){o=y;break g}g=g+1|0;if((g|0)>=(y&65535|0)){o=y;break}}}while(0);if((g|0)==(o&65535|0))break}r=c[r+20>>2]|0;if(!r)break f}g=r+50|0;h=a[g>>0]|0;o=a[I>>0]|0;if(h<<24>>24==o<<24>>24){h=0;break c}if(!(h<<24>>24==10|o<<24>>24==10)){c[S>>2]=0;ph(f,36216,S);h=a[g>>0]|0}if(h<<24>>24!=10){h=0;T=134;break c}a[g>>0]=a[I>>0]|0;h=0;break c}while(0);h=U+145|0;do if(!(a[h>>0]|0)){if(c[f+64>>2]|0){T=126;break}if(!((a[N>>0]&32)==0|R)){T=126;break}r=f+72|0;o=(c[r>>2]|0)+1|0;c[r>>2]=o;r=Kq(f)|0;if(!r){h=0;r=0;T=134;break c}G=c[f+408>>2]|0;G=(G|0)==0?f:G;wr(f,s);F=G+328|0;c[F>>2]=c[F>>2]|1<<s;G=G+20|0;a[G>>0]=d[G>>0]|1;sh(r,120,s,o,0)|0;if(!n)g=0;else{g=c[c[Q>>2]>>2]|0;G=(c[f+504>>2]|0)-g+(c[f+508>>2]|0)|0;F=G+-1|0;G=(a[g+F>>0]|0)==59?F:G;c[S>>2]=(m|0)==0?10360:36288;c[S+4>>2]=G;c[S+8>>2]=g;g=qh(U,36264,S)|0}F=c[M>>2]|0;G=c[u>>2]|0;c[S>>2]=c[(c[O>>2]|0)+(s<<4)>>2];c[S+4>>2]=L;c[S+8>>2]=F;c[S+12>>2]=G;c[S+16>>2]=o;c[S+20>>2]=g;xr(f,36296,S);ig(U,g);if(!R)break;rs(f,M,o);zr(f,s);c[S>>2]=c[M>>2];Er(r,s,qh(U,36344,S)|0);sh(r,144,0,0,0)|0;T=126}else{if(Ek((c[H>>2]|0)+24|0,c[M>>2]|0,M)|0){a[P>>0]=1;h=0;r=0;T=134;break c}G=U+24|0;c[G>>2]=c[G>>2]|2;if(!R)break;c[M+40>>2]=c[U+140>>2];T=126}while(0);if((T|0)==126?!((a[h>>0]|0)!=0|(k|0)==0):0){h=0;r=0;T=134;break}h=c[u+8>>2]|0;do if((m|0)==5){if(!h){h=0;break}if((a[h+50>>0]|0)==5)break;do{r=h+20|0;h=c[r>>2]|0;if(!h){h=0;break}}while((a[h+50>>0]|0)!=5);c[M+20>>2]=h;c[r>>2]=M;o=0;r=M;h=t;break a}while(0);c[M+20>>2]=h;c[u+8>>2]=M;o=0;r=M;h=t;break a}else{h=o;r=0;T=134}while(0);if((T|0)==134)if(!M){o=h;h=t;break}Fk(U,M);o=h;h=t}else{r=0;h=t}}else{r=0;h=0}while(0);Ck(U,o);Jk(U,l);zo(U,k);ig(U,h);i=V;return r|0}function Yq(e,f){e=e|0;f=f|0;var g=0,h=0;g=c[e+484>>2]|0;h=c[e>>2]|0;if(((g|0)!=0?(a[e+451>>0]|0)==0:0)?(b[(c[(c[(c[h+16>>2]|0)+(d[h+144>>0]<<4)+4>>2]|0)+4>>2]|0)+22>>1]&1)==0:0){h=g+24|0;g=hr(e,c[h>>2]|0,f)|0;c[h>>2]=g;if(c[e+324>>2]|0)ir(e,g,e+320|0,1)}else Ck(h,f);return}function Zq(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=i;i=i+16|0;if((i|0)>=(j|0))ba();z=C;B=c[d>>2]|0;A=c[d+484>>2]|0;a:do if((A|0)!=0?(a[d+451>>0]|0)==0:0){w=(e|0)==0;do if(w){y=b[A+38>>1]|0;l=(y<<16>>16)+-1|0;if(y<<16>>16<1){k=0;break a}if(g)if((c[g>>2]|0)==1){l=1;k=13}else{c[z>>2]=c[(c[A+4>>2]|0)+(l*24|0)>>2];c[z+4>>2]=f;ph(d,35712,z);k=0;break a}else{l=1;k=12}}else{if(!g){l=c[e>>2]|0;k=12;break}l=c[g>>2]|0;if((l|0)==(c[e>>2]|0))k=13;else{ph(d,35776,z);k=0;break a}}while(0);if((k|0)==12){m=f+4|0;p=m;t=0;m=(l<<3)+37+(c[m>>2]|0)|0;y=l}else if((k|0)==13){p=f+4|0;m=(l<<3)+37+(c[p>>2]|0)|0;q=c[g>>2]|0;if((q|0)>0){r=c[g+4>>2]|0;s=0;do{o=c[r+(s*20|0)+4>>2]|0;if(!o)k=1;else{n=o;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;k=(n-o&1073741823)+1|0}m=k+m|0;s=s+1|0}while((s|0)<(q|0));t=1;y=l}else{t=1;y=l}}k=ih(B,m,((m|0)<0)<<31>>31)|0;if(k){bw(k|0,0,m|0)|0;c[k>>2]=A;x=A+16|0;c[k+4>>2]=c[x>>2];u=k+36|0;n=u+(y<<3)|0;v=k+8|0;c[v>>2]=n;gw(n|0,c[f>>2]|0,c[p>>2]|0)|0;a[n+(c[p>>2]|0)>>0]=0;ho(n);n=n+((c[p>>2]|0)+1)|0;c[k+20>>2]=y;b:do if(!w){if((y|0)>0){m=A+4|0;f=e+4|0;o=b[A+38>>1]|0;l=0;while(1){c:do if(o<<16>>16>0){s=c[m>>2]|0;r=c[(c[f>>2]|0)+(l*20|0)+4>>2]|0;q=0;while(1){p=q+1|0;if(!($c(c[s+(q*24|0)>>2]|0,r)|0)){p=q;break}if((p|0)<(o<<16>>16|0))q=p;else break c}c[u+(l<<3)>>2]=p}else p=0;while(0);if((p|0)>=(o<<16>>16|0))break;l=l+1|0;if((l|0)>=(y|0))break b}c[z>>2]=c[(c[f>>2]|0)+(l*20|0)+4>>2];ph(d,35872,z);break a}}else c[u>>2]=(b[A+38>>1]|0)+-1;while(0);if(t&(y|0)>0){o=g+4|0;p=0;while(1){m=c[(c[o>>2]|0)+(p*20|0)+4>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;l=l-m&1073741823}c[u+(p<<3)+4>>2]=n;gw(n|0,m|0,l|0)|0;a[n+l>>0]=0;p=p+1|0;if((p|0)==(y|0))break;else n=n+(l+1)|0}}a[k+24>>0]=0;a[k+25>>0]=h;a[k+26>>0]=h>>>8;l=Ek((c[A+68>>2]|0)+56|0,c[v>>2]|0,k)|0;if((l|0)==(k|0)){a[B+65>>0]=1;break}if(l){c[k+12>>2]=l;c[l+16>>2]=k}c[x>>2]=k;k=0}else k=0}else k=0;while(0);ig(B,k);Jk(B,e);Jk(B,g);i=C;return}function _q(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=c[b>>2]|0;f=a[e+62>>0]|0;g=a[e+145>>0]|0;e=Un(e,f,d,g&255)|0;do if(!(g<<24>>24)){if((e|0)!=0?(c[e+12>>2]|0)!=0:0)break;e=ss(b,f,e,d)|0}while(0);return e|0}function $q(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))ba();w=y;s=y+12|0;x=c[e>>2]|0;do if(!(a[x+65>>0]|0)){h=(h|0)!=0;if(h){r=x+68|0;a[r>>0]=(a[r>>0]|0)+1<<24>>24;v=Qr(e,g,f+8|0)|0;a[r>>0]=(a[r>>0]|0)+-1<<24>>24}else v=Qr(e,g,f+8|0)|0;if(!v){if(!h)break;vr(e,c[f+12>>2]|0);break}p=v+68|0;l=c[p>>2]|0;a:do if(l){h=c[x+20>>2]|0;if((h|0)>0){k=c[x+16>>2]|0;n=0;while(1){m=n+1|0;if((c[k+(n<<4)+12>>2]|0)==(l|0)){m=n;break a}if((m|0)<(h|0))n=m;else break}}else m=0}else m=-1e6;while(0);t=v+44|0;if((a[t>>0]&16)!=0?(dr(e,v)|0)!=0:0)break;n=(m|0)==1;u=n?13184:13208;h=c[(c[x+16>>2]|0)+(m<<4)>>2]|0;if(!(Oq(e,9,u,0,h)|0)){k=(g|0)!=0;do if(k){l=n?15:17;n=0}else{if(!(a[t>>0]&16)){l=n?13:11;n=0;break}n=v+60|0;while(1){n=c[n>>2]|0;if((c[n>>2]|0)==(x|0))break;else n=n+24|0}l=30;n=c[(c[n+4>>2]|0)+4>>2]|0}while(0);if((Oq(e,l,c[v>>2]|0,n,h)|0)==0?(Oq(e,9,c[v>>2]|0,0,h)|0)==0:0){n=c[v>>2]|0;if((Bc(n,25568,7)|0)==0?(Bc(n,35488,11)|0)!=0:0){c[w>>2]=n;ph(e,35504,w);break}h=v+12|0;l=(c[h>>2]|0)==0;if(k){if(l){c[w>>2]=n;ph(e,35536,w);break}}else if(!l){c[w>>2]=n;ph(e,35576,w);break}if(Kq(e)|0){q=e+408|0;l=c[q>>2]|0;l=(l|0)==0?e:l;wr(e,m);r=1<<m;k=l+328|0;c[k>>2]=c[k>>2]|r;l=l+20|0;a[l>>0]=d[l>>0]|1;yr(e,m,28544,c[v>>2]|0);l=c[e>>2]|0;k=l+24|0;b:do if(((c[k>>2]&524288|0)!=0?(a[t>>0]&16)==0:0)?(c[h>>2]|0)==0:0){o=Kq(e)|0;s=Zm((c[p>>2]|0)+56|0,c[v>>2]|0,s)|0;if((s|0)!=0?(c[s+8>>2]|0)!=0:0)n=0;else{n=c[v+16>>2]|0;if(!n)break;while(1){if(a[n+24>>0]|0)break;if(c[k>>2]&16777216)break;n=c[n+4>>2]|0;if(!n)break b}n=ts(o)|0;sh(o,135,1,n,0)|0}s=e+438|0;a[s>>0]=1;nr(e,us(l,f,0)|0,0);a[s>>0]=0;if(!(c[k>>2]&16777216)){sh(o,135,0,(c[o+32>>2]|0)+2|0,0)|0;vs(e,787,2,0,-2,4)}if(n){l=c[o+24>>2]|0;h=~n;do if((n|0)<0){n=c[l+112>>2]|0;if(!n)break;c[n+(h<<2)>>2]=c[o+32>>2]}while(0);c[l+88>>2]=(c[o+32>>2]|0)+-1}}while(0);o=c[e>>2]|0;p=o+16|0;l=c[p>>2]|0;h=Kq(e)|0;s=c[q>>2]|0;s=(s|0)==0?e:s;wr(e,m);q=s+328|0;c[q>>2]=c[q>>2]|r;s=s+20|0;a[s>>0]=d[s>>0]|1;if(a[t>>0]&16)sh(h,146,0,0,0)|0;n=ws(e,v)|0;if(n)do{Mr(e,n);n=c[n+32>>2]|0}while((n|0)!=0);l=l+(m<<4)|0;if(a[t>>0]&8){s=c[v>>2]|0;c[w>>2]=c[l>>2];c[w+4>>2]=s;xr(e,35608,w)}s=c[v>>2]|0;c[w>>2]=c[l>>2];c[w+4>>2]=u;c[w+8>>2]=s;xr(e,35656,w);if((g|0)==0?(a[t>>0]&16)==0:0)xs(e,v);if(a[t>>0]&16){s=c[v>>2]|0;th(h,sh(h,148,m,0,0)|0,s,0)}k=c[v>>2]|0;th(h,sh(h,124,m,0,0)|0,k,0);zr(e,m);h=c[(c[p>>2]|0)+(m<<4)+12>>2]|0;k=b[h+78>>1]|0;if(k&2){l=c[h+16>>2]|0;if(l){k=l;do{h=c[k+8>>2]|0;if(c[h+12>>2]|0){Hk(o,h);c[h+4>>2]=0;b[h+38>>1]=0}k=c[k>>2]|0}while((k|0)!=0);k=c[(c[p>>2]|0)+(m<<4)+12>>2]|0;h=k;k=b[k+78>>1]|0}b[h+78>>1]=k&65533}}}}}while(0);zo(x,f);i=y;return}function ar(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();k=m;h=c[b>>2]|0;do if((f|0)!=0?(c[f+4>>2]|0)!=0:0){if(a[h+145>>0]|0){ph(b,28488,k);f=b+64|0;c[f>>2]=(c[f>>2]|0)+1;f=-1;break}c[g>>2]=f;g=Sq(h,e)|0;f=Rh(h,g)|0;ig(h,g);if((f|0)<0){c[k>>2]=e;ph(b,28512,k);f=b+64|0;c[f>>2]=(c[f>>2]|0)+1;f=-1}}else l=7;while(0);if((l|0)==7){f=d[h+144>>0]|0;c[g>>2]=e}i=m;return f|0}function br(a,b){a=a|0;b=b|0;a:do if(!b)b=0;else while(1){if(Dr(a,c[b>>2]|0)|0){b=1;break a}if(Gr(a,c[b+32>>2]|0)|0){b=1;break a}if(Cr(a,c[b+36>>2]|0)|0){b=1;break a}if(Dr(a,c[b+40>>2]|0)|0){b=1;break a}if(Cr(a,c[b+44>>2]|0)|0){b=1;break a}if(Dr(a,c[b+48>>2]|0)|0){b=1;break a}if(Cr(a,c[b+60>>2]|0)|0){b=1;break a}if(Cr(a,c[b+64>>2]|0)|0){b=1;break a}b=c[b+52>>2]|0;if(!b){b=0;break}}while(0);return b|0}function cr(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;if((f|0)!=0?(h=ih(d,72,0)|0,(h|0)!=0):0){c[h>>2]=Lr(d,c[f>>2]|0,g)|0;c[h+32>>2]=us(d,c[f+32>>2]|0,g)|0;c[h+36>>2]=Ir(d,c[f+36>>2]|0,g,0)|0;c[h+40>>2]=Lr(d,c[f+40>>2]|0,g)|0;c[h+44>>2]=Ir(d,c[f+44>>2]|0,g,0)|0;c[h+48>>2]=Lr(d,c[f+48>>2]|0,g)|0;a[h+4>>0]=a[f+4>>0]|0;j=cr(d,c[f+52>>2]|0,g)|0;c[h+52>>2]=j;if(j)c[j+56>>2]=h;c[h+56>>2]=0;c[h+60>>2]=Ir(d,c[f+60>>2]|0,g,0)|0;c[h+64>>2]=Ir(d,c[f+64>>2]|0,g,0)|0;c[h+8>>2]=0;c[h+12>>2]=0;b[h+6>>1]=(e[f+6>>1]|0)&65527;c[h+16>>2]=-1;c[h+20>>2]=-1;l=f+24|0;j=c[l+4>>2]|0;g=h+24|0;c[g>>2]=c[l>>2];c[g+4>>2]=j;g=c[f+68>>2]|0;if((g|0)!=0?(k=c[g>>2]<<4|8,i=ih(d,k,((k|0)<0)<<31>>31)|0,(i|0)!=0):0){bw(i|0,0,k|0)|0;c[i>>2]=c[g>>2];if((c[g>>2]|0)>0){f=i+8|0;j=0;do{c[f+(j<<4)+8>>2]=cr(d,c[g+(j<<4)+16>>2]|0,0)|0;c[f+(j<<4)+4>>2]=Lr(d,c[g+(j<<4)+12>>2]|0,0)|0;c[f+(j<<4)>>2]=gh(d,c[g+(j<<4)+8>>2]|0)|0;j=j+1|0}while((j|0)<(c[g>>2]|0))}}else i=0;c[h+68>>2]=i}else h=0;return h|0}function dr(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))ba();p=t;k=t+8|0;m=t+4|0;s=c[d>>2]|0;n=f+44|0;h=a[n>>0]|0;a:do if(!(h&16))q=11;else{g=c[f+60>>2]|0;if(g)do{if((c[g>>2]|0)==(s|0)){q=11;break a}g=c[g+24>>2]|0}while((g|0)!=0);g=f+56|0;h=Zm(s+308|0,c[c[g>>2]>>2]|0,k)|0;if((h|0)!=0?(l=c[h+8>>2]|0,(l|0)!=0):0){c[m>>2]=0;l=(vn(s,f,l,c[(c[l>>2]|0)+8>>2]|0,m)|0)==0;h=c[m>>2]|0;if(l){ig(s,h);h=a[n>>0]|0;q=11;break}else{c[p>>2]=h;ph(d,10344,p);ig(s,h);g=1;break}}c[p>>2]=c[c[g>>2]>>2];ph(d,28320,p);g=1}while(0);do if((q|0)==11)if((h&16)==0?(r=f+38|0,o=b[r>>1]|0,o<<16>>16<=0):0){if(o<<16>>16<0){c[p>>2]=c[f>>2];ph(d,26752,p);g=1;break}h=cr(s,c[f+12>>2]|0,0)|0;if(!h)g=1;else{o=s+250|0;n=a[o>>0]|0;q=d+68|0;p=c[q>>2]|0;ys(d,c[h+32>>2]|0);b[r>>1]=-1;a[o>>0]=0;m=s+284|0;l=c[m>>2]|0;c[m>>2]=0;g=js(d,h)|0;c[m>>2]=l;a[o>>0]=n;c[q>>2]=p;if(!g){b[r>>1]=0;g=1}else{d=g+38|0;b[r>>1]=b[d>>1]|0;q=g+4|0;c[f+4>>2]=c[q>>2];b[d>>1]=0;c[q>>2]=0;gg(s,g);g=(c[f+68>>2]|0)+78|0;b[g>>1]=e[g>>1]|0|2;g=0}Ik(s,h,1)}}else g=0;while(0);i=t;return g|0} [all...] |
/external/webrtc/talk/media/testdata/ |
H A D | h264-svc-99-640x360.rtpdump | 687 Ai?�P��pR�]������E��[;N'�ē�� Е*�����BTMw�$*f1���Y"1�l^W�oT)�Wk�En^���W��>�Y�j�S?K>߅\I�*�K��
f��4���`�2�����@���J,��2� �-C,����14���R�ۃ9�ŞD�xq�u����V��i�iq�
1832 w��6Q,��`c�iq��6����i��b��>�����=a�O����I`����=)��?/��6�s�h�����P a�I(3���0��q`��cz.z�����p_�����" f6_G#rwaFL[�;�����~L&�[�� 3687 ��;rF�Q)k��~����<����V�=N�t ��?�"O��rF��Z>���ڴ�D����MzK��_G�!��u�v'קo�:��Z����,�F��,"���k���qz�0�}�����Z�6\Z.I�v�ˑ���U�?^�n����k�?E��v��i�4� �هh������ۂy��lyY��ֹ�����iq����VB��OOS����������ɝ�ϬLK=�;_]W�T���m��F��ѯ��6`����z6���y#����E[~�ޕ�I-i�vw��$���_��|N��֢�����k�/K��o���bz-�p!�z�E�'��������_z��T/K���.�O��g�}����>���z��%��`ߤ�].m5s��I��^ևП�ʼn��o���9b~���OZ�^��.�Us�S�j'�<����խ���,��z]~~�/��'[�m,����\#g��]�LOimA�49Y_�П��� ��Ԅ4Tz�t�u�g�N�o�z�O�=�?��3篟Gů��T��;(�.�v�U�.�Ԭ�?�|Jzt2��D��}t[����!B4^�ݾ'O���3���X'���˾�V�h��=��W�{]Mii��8I��7�0�S�l�u��m,A ��/����z���_����x�Z�{,����E�x#���59�}A��Õ�D�1୦zcwr�����^��v� �6�"��ǯ�qh�'G�_+��q���cC'��,��X�� �O��u���[w��"�����R�6�n=�=o�7Z����~+�_��j������e����jH�4��D�B������"Ǥ�=��%x�F���.~�=}.��fl�i�w�[�mW��:��\��J i��pN�?1�|'L����ݩ����Z�l�tmЌ w o ��c&����f�� f ��2mr > ��g�� ��g яr�K�'�q|���;夰 ��g "�� ^ @�Ϛ��1�y2NO> ����fnI��� ? 7 ���&����f�� f ��I#r ? �g�� �g�c܁X�� � ~ ��c&������f�� f ��I@r @8 >��G�� .��G !яr� �͓�y;0�|�iWܻ�4 .��G ,!F=���a 11338 -pȴh���y����:y���a��S�T�F����k���^5W�����|�o3;��|O������L��~��_powwp��&eL�6�()3�7���g�4$�k��|O��?�4e�-�|��ċ;K\�ê�������U�jy�jw�k�_���܅�Ͼ>'X�6��w\����x*�(��#������� ḍ&e2�����=bƨ{��v�OB�..��MOw~3Q��p6�tYcXq�E�����JK"9�\W����I��T+c��������(əFL�2fQ�/��#^�����~��G������-���Z)�������^�l�,�������G6�&��\ �߿j���>6����ḍ&e3(ɜ��~���6;M��:�L��确:��Ҽ#I.�Ҷ=z���?�xF��)|���(���褳*;R�#��>��ki�U���z`�j���5
L�h` 0�c)L�9��f�� f (����r �8 >��K�74�ܷrJΣ�`�����!}�iq��q0��K��m�F�߉/�x_w��x����v�Gi{T_���[��G�v����]��.�Q5�i�̚SG�}��M�"�T4�ؕ'�X!۵d ���=���B��N�>7�`K����)k1�a}&��æ�ݯ\��6�E@�Bq"#�pB��D�բ�g%���D��Zp�K��n�|'5�s|
;M��3�eU�or�f�{3���L��=���P5�Қ��l��)<R���'��Ь'����T�:K��U@�F\tg�I���[kU��U��^�����v�H�xe;N0��k�32�߶S�tK_];V��s_M6-P�_���|/�=���7���П�\d����fa����]_?ɡ�-�S�dk���wRcy-�+�)��{�Ф|�п����s冧�&��@'�i���i��rЂ�����KL�ᗫޯ~�y��+_.0,���$�&��*�K�o_���˳�H枓R�'��%�ľ�������^+�������]�?��Ҩ؝yzHu��먖��:~��AZZD�l5�%�r�Ũ�j[1>Z�v�[zS���P
h�)�Q��v�3��ME�����-0z ��v��c���~a�a��#�(�*<���Xd���i�le]���o�"͡�t��!%�V�2�֑Wk�e���SԴ�R��íywˆ�ԓ!��,�~'�� ��'�G�'�LV~�kZջ��ﻝV�U=�Zd2 w֞s1�^&���-e%��������}���hO�0<� � 14062 ��R���Hj.��ڸ��������� 8ېc*2����f�� f ��ߗr �8 >��\��4� �]�h���FB������ov��SvWU��vl��BrX
T5 ?���:��L0�o��ĆQ���ݚ$��b+�t��I?˫[��W˩V��=C�nd�4>4�@�*�
�N�e"��CFE �ʟs�|7A���cϣ 0�`O�{��ⱦ'zd3'��x�7�麦_jt��\m�_�iT�w����wSf3"&[�"��}��:� �iq�C�kko��C�
�n&K��c^7�m���7�9�s�`��=5E��M>3;���Ȑ�ΰ"��4'� �B���o
�Wą��ưჅ5X�\V�q�&N/W���[�t��6����d.��T!�ȱ�B��@���^w��`ɜ��� ���mg�q��p���S7�ȷ^@��*��ɪD�Ȩ0/&!���}t���q#���ٴңCx�r���x1�����Oa��Ɛ�14������2)�o���3������L�`�#Fv(��]�ؑ��(rݍ?��{X���j�\:a��ZT��a�g�P!�bX�p�3�<���O��v���.R��$�Ùտ�+f0���V����_}1���#�G���Vg ;��\�jrT����k8ҳ>��^q� ����_�����AHI� u����.׆vf5Pû��C�O�"�#�Un�Z��Zv��/��c�ޕ�l��5�q�+J:M��)��=7u���PD�ƐZ�)�YM���� 5}� 'm��3�n���%��s�4�����7���:���)��͛]�:��2.{������_k�^�{뿍��S�a�^^ٴ��_�p�I#�*�����I����G���f*�40;�g�4�*
l�J�=>��Q�O������ @���Ʈ�xhvݰ����G�$8U]�[���<
~�~KkK�ܮr�.�@�`Q�����n!z�~K_�zA+���\1�W<��7�_�h��� ��ud�Ն;~�����[�\�R�
� 15733 ���qv�93��P�>��{����.z,�C0��O/�7������iq�/�>����=��>/`9r�������q��K�V~� Q'���t�����^�_��
��Df��f�k�������w��&�D� �� ����0��PK����.�p�_���v_�]�1�c� �ϾO�?�PCҷ��6����zU߰{��y���֟��g �iR�2�+{~7a����G�_!v[.r��� _���@��W���>�=~�$�Gg�rX?�t�?w�5�M5毷'x��h��1l�ĿU��X�;�[�`/g�o�{����Ie ���Ql�"O�ĭ�����-�y�%��~9m�"#K����XW���C��_=��O����s��ꇩ��@_��)'�d��&�9�=��� 16096 �uZ[��g�t� �h�ח�w�6��#AF�y��0_�κ�6o�=/�_�*h{2��{50��L����DQ`�������;�q�D���6.ߵ�
���U��!��/j^7�ѱ��X���C��%������ۥG����`�zC��"^3�0{�mi�h)#���;�g�!���_��c��T�g��a���6��mv�-H��Tza�-�}�$�x���0a�Ύs��J�iq�G\luY)5��'�=����n��>��l���#
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/ |
H A D | com.ibm.icu_4.2.1.v20100412.jar | META-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ... |
/external/v8/tools/profviz/ |
H A D | gnuplot-4.6.3-emscripten.js | [all...] |
/external/libgdx/backends/gdx-backend-moe/libs/ |
H A D | intel-moe-core.jar | META-INF/ META-INF/MANIFEST.MF LICENSE SQLite/ SQLite/Authorizer.class Authorizer.java package ... |
/external/v8/test/mjsunit/asm/poppler/ |
H A D | poppler.js | [all...] |
/external/libgdx/backends/gdx-backends-gwt/libs/ |
H A D | gwt-dev.jar | META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/gwt/ com/google/gwt/core/ ... |