c?f:c):c
p?a:p):(F=f
c?a:c)}function y(){this.items=this.$d=null;this.jj=0;ya&&(this.$d=new Set);this.ei=[];this.yf=!0}function u(a){ba[va++]=a}function w(){this.da=this.ek=this.y=this.Gk=0}function n(a){this.ib=[];this.Ck=this.Ek=this.Fk=this.Dk=0;this.Ok=null;this.Yj(a)}function c(a,
f){this.$n=a;this.Zn=f;this.cells={}}function A(a,f){this.$n=a;this.Zn=f;this.cells={}}function k(a,f,c){var p;return ka.length?(p=ka.pop(),p.gp=a,p.x=f,p.y=c,p):new Yb(a,f,c)}function a(a,f,c){this.gp=a;this.x=f;this.y=c;this.Kb=new ic}function f(a,f,c){var p;return Q.length?(p=Q.pop(),p.gp=a,p.x=f,p.y=c,p):new Zc(a,f,c)}function v(a,f,c){this.gp=a;this.x=f;this.y=c;this.Kb=[];this.yh=!0;this.we=new ic;this.ti=!1}function q(a,f){return a.ee-f.ee}md=function(a){window.console&&window.console.log&&
window.console.log(a)};Hd=function(a){window.console&&window.console.error&&window.console.error(a)};Da=function(a){return a};Id=function(a){return"undefined"===typeof a};Jd=function(a){return"number"===typeof a};Kd=function(a){return"string"===typeof a};Ld=function(a){return 0f;f<<=1)a=a|a>>f;return a+1};Vd=function(a){return 0>a?-a:a};Wd=function(a,f){return a>f?a:f};Xd=function(a,f){return a e)return!1;Ea=x-a+q-c;A=k-f+ja-p;a=c-a;f=p-f;x=q-x;k=ja-k;ja=Vd(f*x-k*a);return Vd(x*A-k*Ea)>ja?!1:Vd(a*A-f*Ea)<=ja};e.prototype.set=function(a,f,c,p){this.left=a;this.top=f;this.right=c;this.bottom=p};e.prototype.Ci=function(a){this.left=a.left;this.top=a.top;this.right=
a.right;this.bottom=a.bottom};e.prototype.width=function(){return this.right-this.left};e.prototype.height=function(){return this.bottom-this.top};e.prototype.offset=function(a,f){this.left+=a;this.top+=f;this.right+=a;this.bottom+=f;return this};e.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};e.prototype.xX=function(a){return!(a.right c?c:a};De=function(a){return a/(180/Yd)};Ee=function(a){return 180/Yd*a};Ie=function(a){a%=360;0>a&&(a+=360);return a};Je=function(a){a%=2*Yd;0>a&&(a+=2*Yd);return a};Ke=function(a){return Ie(Ee(a))};Le=function(a){return Je(De(a))};Me=function(a,f,c,p){return Math.atan2(p-
f,c-a)};Oe=function(a,f){if(a===f)return 0;var c=Math.sin(a),p=Math.cos(a),x=Math.sin(f),k=Math.cos(f),c=c*x+p*k;return 1<=c?0:-1>=c?Yd:Math.acos(c)};Pe=function(a,f,c){var p=Math.sin(a),x=Math.cos(a),k=Math.sin(f),A=Math.cos(f);return Math.acos(p*k+x*A)>c?0 x&&(x=A);this.Dk=f;this.Ek=c;this.Fk=p;this.Ck=x};n.prototype.Xj=function(a,f,c){this.ib.length=8;this.fd=4;var p=this.ib;p[0]=a.left-f;p[1]=a.top-c;p[2]=a.right-f;p[3]=a.top-c;p[4]=a.right-f;p[5]=a.bottom-c;p[6]=a.left-f;p[7]=a.bottom-c;this.Jk=a.right-a.left;
this.Ik=a.bottom-a.top;this.wa()};n.prototype.Yh=function(a,f,c,p,x){this.ib.length=8;this.fd=4;var k=this.ib;k[0]=a.Cb-f;k[1]=a.Db-c;k[2]=a.lc-f;k[3]=a.mc-c;k[4]=a.cc-f;k[5]=a.ec-c;k[6]=a.$b-f;k[7]=a.ac-c;this.Jk=p;this.Ik=x;this.wa()};n.prototype.yQ=function(a){this.fd=a.fd;ke(this.ib,a.ib);this.Dk=a.Dk;this.Fk-a.Fk;this.Ek=a.Ek;this.Ck=a.Ck};n.prototype.ng=function(a,f,c){if(this.Jk!==a||this.Ik!==f||this.WN!==c){this.Jk=a;this.Ik=f;this.WN=c;var p,x,k,A,ja,q=0,e=1,v=this.XP,F=this.ib;0!==c&&(q=
Math.sin(c),e=Math.cos(c));c=0;for(k=this.fd;c F;F++)if(m=x-F*C,a.x=f+Math.cos(m)*k,a.y=c+Math.sin(m)*k,a.J(),!this.rc(a,v)&&(v=this.Nb(a),!v)){n=m;break}36===F&&(n=Je(x+Yd));v=q;for(F=1;36>F;F++)if(m=x+F*C,a.x=f+Math.cos(m)*k,
a.y=c+Math.sin(m)*k,a.J(),!this.rc(a,v)&&(v=this.Nb(a),!v)){A=m;break}36===F&&(A=Je(x+Yd));a.x=p;a.y=e;a.J();if(A===n)return A;a=Oe(A,n)/2;a=Qe(A,n)?Je(n+a+Yd):Je(A+a);n=Math.cos(x);x=Math.sin(x);A=Math.cos(a);a=Math.sin(a);f=n*A+x*a;return Me(0,0,n-2*f*A,x-2*f*a)};var Oa=-1;e.prototype.trigger=function(a,f,c){if(!this.Fa)return!1;var p=this.Fa.ug;if(!p)return!1;var e=!1,k,x,q;Oa++;var v=p.ko;x=0;for(q=v.length;x k||k>=a.xb.length||(a.xb[k]=e[p]));if(x.Mf){k=f.w;a.F.ua!==k.l&&(e=a.F,a.F=this.Fa.ol(k.l),a.F?(e.Vh(a,!0),a.F.vi(a,!0),a.J(),a.F.Wj(0)):(a.F=e,c||this.pf(a)));a.x=k.x;a.y=k.y;a.width=k.w;a.height=k.h;a.ee=k.zi;a.D=k.hasOwnProperty("a")?k.a:0;a.opacity=k.hasOwnProperty("o")?k.o:1;a.wc=k.hasOwnProperty("hX")?k.hX:.5;a.xc=k.hasOwnProperty("hY")?k.hY:.5;a.visible=k.hasOwnProperty("v")?k.v:!0;a.He=k.hasOwnProperty("ce")?
k.ce:!0;a.zj=k.hasOwnProperty("mts")?k.mts:-1;a.Zb=k.hasOwnProperty("bm")?k.bm:0;a.Bi=tf(a.Zb);this.N&&uf(a,a.Zb,this.N);a.J();if(k.hasOwnProperty("fx"))for(c=0,e=k.fx.length;c >>0)for(;;){for(q=t;;)if(t=q+8|0,Bc[b[d>>2]&63](q,l)|0)q=t;else{n=p;break}do n=n+-8|0;while(!(Bc[b[d>>2]&63](n,l)|0));if(q>>>0>n>>>0){t=q;break c}D=q;E=b[D>>2]|0;D=b[D+4>>2]|0;L=n;O=b[L+4>>2]|0;p=q;b[p>>2]=b[L>>2];b[p+4>>2]=O;p=n;b[p>>2]=E;b[p+4>>2]=D;p=n;l=(l|0)==(q|0)?n:l;m=m+1|0}while(0);(t|0)!=(l|0)&&Bc[b[d>>2]&63](l,t)|0&&(O=t,D=b[O>>2]|0,O=b[O+4>>2]|0,q=l,E=b[q+4>>2]|0,L=t,b[L>>2]=b[q>>2],b[L+4>>2]=E,L=l,b[L>>2]=D,b[L+4>>2]=O,m=m+1|0);if(!m){m=yb(g,t,d)|0;l=t+8|0;if(yb(l,I,
d)|0){e=46;break}if(m){g=l;continue}}L=t;if((L-k|0)>=(h-L|0)){e=50;break}lb(g,t,d);g=t+8|0}if(46==(e|0))if(e=0,m){e=51;break}else I=t;else 50==(e|0)&&(e=0,lb(t+8|0,I,d),I=t)}if(4==(e|0))Bc[b[d>>2]&63](f,g)|0&&(O=g,D=b[O>>2]|0,O=b[O+4>>2]|0,q=f,E=b[q+4>>2]|0,L=g,b[L>>2]=b[q>>2],b[L+4>>2]=E,L=f,b[L>>2]=D,b[L+4>>2]=O),r=a;else if(6==(e|0))ab(g,g+8|0,f,d)|0,r=a;else if(7==(e|0))hb(g,g+8|0,g+16|0,f,d)|0,r=a;else if(8==(e|0))$a(g,g+8|0,g+16|0,g+24|0,f,d)|0,r=a;else if(10==(e|0)){h=g+16|0;ab(g,g+8|0,h,d)|
0;e=g+24|0;if((e|0)!=(I|0))for(;;){if(Bc[b[d>>2]&63](e,h)|0){O=e;L=b[O+4>>2]|0;f=c;b[f>>2]=b[O>>2];b[f+4>>2]=L;for(f=e;;){D=h;O=b[D+4>>2]|0;L=f;b[L>>2]=b[D>>2];b[L+4>>2]=O;if((h|0)==(g|0))break;f=h+-8|0;if(Bc[b[d>>2]&63](c,f)|0)L=h,h=f,f=L;else break}D=c;O=b[D+4>>2]|0;L=h;b[L>>2]=b[D>>2];b[L+4>>2]=O}f=e+8|0;if((f|0)==(I|0))break;else h=e,e=f}r=a}else 51==(e|0)&&(r=a)}function ab(g,I,d,a){g=g|0;I=I|0;d=d|0;a=a|0;var c=0,e=0,f=0,h=0,k=0,l=0,c=r,h=Bc[b[a>>2]&63](I,g)|0,e=Bc[b[a>>2]&63](d,I)|0;if(!h){if(!e)return r=
c,0;f=I;e=b[f>>2]|0;f=b[f+4>>2]|0;l=d;k=b[l+4>>2]|0;h=I;b[h>>2]=b[l>>2];b[h+4>>2]=k;h=d;b[h>>2]=e;b[h+4>>2]=f;if(!(Bc[b[a>>2]&63](I,g)|0))return r=c,1;k=g;h=b[k>>2]|0;k=b[k+4>>2]|0;a=I;f=b[a+4>>2]|0;l=g;b[l>>2]=b[a>>2];b[l+4>>2]=f;l=I;b[l>>2]=h;b[l+4>>2]=k;r=c;return 2}f=g;h=b[f>>2]|0;f=b[f+4>>2]|0;if(e)return a=d,k=b[a+4>>2]|0,l=g,b[l>>2]=b[a>>2],b[l+4>>2]=k,l=d,b[l>>2]=h,b[l+4>>2]=f,r=c,1;e=I;k=b[e+4>>2]|0;l=g;b[l>>2]=b[e>>2];b[l+4>>2]=k;l=I;b[l>>2]=h;b[l+4>>2]=f;if(!(Bc[b[a>>2]&63](d,I)|0))return r=
c,1;k=I;h=b[k>>2]|0;k=b[k+4>>2]|0;g=d;f=b[g+4>>2]|0;l=I;b[l>>2]=b[g>>2];b[l+4>>2]=f;l=d;b[l>>2]=h;b[l+4>>2]=k;r=c;return 2}function hb(g,I,d,a,c){g=g|0;I=I|0;d=d|0;a=a|0;c=c|0;var e=0,f=0,h=0,k=0,l=0,t=0,m=0,e=r,f=ab(g,I,d,c)|0;if(!(Bc[b[c>>2]&63](a,d)|0))return r=e,f|0;h=d;k=b[h>>2]|0;h=b[h+4>>2]|0;m=a;t=b[m+4>>2]|0;l=d;b[l>>2]=b[m>>2];b[l+4>>2]=t;b[a>>2]=k;b[a+4>>2]=h;if(!(Bc[b[c>>2]&63](d,I)|0))return r=e,f+1|0;t=I;l=b[t>>2]|0;t=b[t+4>>2]|0;h=d;k=b[h+4>>2]|0;m=I;b[m>>2]=b[h>>2];b[m+4>>2]=k;m=d;
b[m>>2]=l;b[m+4>>2]=t;if(!(Bc[b[c>>2]&63](I,g)|0))return r=e,f+2|0;t=g;l=b[t>>2]|0;t=b[t+4>>2]|0;h=I;k=b[h+4>>2]|0;m=g;b[m>>2]=b[h>>2];b[m+4>>2]=k;m=I;b[m>>2]=l;b[m+4>>2]=t;r=e;return f+3|0}function $a(g,I,d,a,c,e){g=g|0;I=I|0;d=d|0;a=a|0;c=c|0;e=e|0;var f=0,h=0,k=0,l=0,t=0,m=0,p=0,f=r,h=hb(g,I,d,a,e)|0;if(!(Bc[b[e>>2]&63](c,a)|0))return r=f,h|0;k=a;l=b[k>>2]|0;k=b[k+4>>2]|0;p=c;m=b[p+4>>2]|0;t=a;b[t>>2]=b[p>>2];b[t+4>>2]=m;b[c>>2]=l;b[c+4>>2]=k;if(!(Bc[b[e>>2]&63](a,d)|0))return r=f,h+1|0;m=d;t=
b[m>>2]|0;m=b[m+4>>2]|0;k=a;l=b[k+4>>2]|0;p=d;b[p>>2]=b[k>>2];b[p+4>>2]=l;p=a;b[p>>2]=t;b[p+4>>2]=m;if(!(Bc[b[e>>2]&63](d,I)|0))return r=f,h+2|0;m=I;t=b[m>>2]|0;m=b[m+4>>2]|0;k=d;l=b[k+4>>2]|0;p=I;b[p>>2]=b[k>>2];b[p+4>>2]=l;p=d;b[p>>2]=t;b[p+4>>2]=m;if(!(Bc[b[e>>2]&63](I,g)|0))return r=f,h+3|0;m=g;t=b[m>>2]|0;m=b[m+4>>2]|0;k=I;l=b[k+4>>2]|0;p=g;b[p>>2]=b[k>>2];b[p+4>>2]=l;p=I;b[p>>2]=t;b[p+4>>2]=m;r=f;return h+4|0}function yb(g,I,d){g=g|0;I=I|0;d=d|0;var a=0,c=0,e=0,f=0,h=0,k=0,l=0,t=0,m=0,p=0,a=
r;r=r+16|0;e=a;switch(I-g>>3|0){case 2:c=I+-8|0;if(!(Bc[b[d>>2]&63](c,g)|0))return r=a,1;k=g;h=b[k>>2]|0;k=b[k+4>>2]|0;I=c;f=b[I+4>>2]|0;l=g;b[l>>2]=b[I>>2];b[l+4>>2]=f;l=c;b[l>>2]=h;b[l+4>>2]=k;r=a;return 1;case 1:case 0:return r=a,1;case 5:return $a(g,g+8|0,g+16|0,g+24|0,I+-8|0,d)|0,r=a,1;case 3:return ab(g,g+8|0,I+-8|0,d)|0,r=a,1;case 4:return hb(g,g+8|0,g+16|0,I+-8|0,d)|0,r=a,1;default:l=g+16|0;ab(g,g+8|0,l,d)|0;f=g+24|0;if((f|0)==(I|0))return r=a,1;for(h=0;;){if(Bc[b[d>>2]&63](f,l)|0){m=f;t=
b[m+4>>2]|0;k=e;b[k>>2]=b[m>>2];b[k+4>>2]=t;for(k=f;;){p=l;t=b[p+4>>2]|0;m=k;b[m>>2]=b[p>>2];b[m+4>>2]=t;if((l|0)==(g|0))break;k=l+-8|0;if(Bc[b[d>>2]&63](e,k)|0)p=l,l=k,k=p;else break}t=e;m=b[t+4>>2]|0;p=l;b[p>>2]=b[t>>2];b[p+4>>2]=m;h=h+1|0;if(8==(h|0))break}k=f+8|0;if((k|0)==(I|0)){g=1;c=15;break}else l=f,f=k}if(15==(c|0))return r=a,g|0;r=a;return(f+8|0)==(I|0)|0}}function jb(g,I){g=g|0;I=I|0;var d=0,a=0,c=0,e=0,f=0,a=r,d=g+1028|0,c=b[d>>2]|0,e=g+1032|0;(c|0)==(b[e>>2]|0)&&(f=b[g>>2]|0,b[e>>2]=
c<<1,e=T(c<<3)|0,b[g>>2]=e,ob(e|0,f|0,b[d>>2]<<2|0)|0,(f|0)!=(g+4|0))&&oa(f);b[(b[g>>2]|0)+(b[d>>2]<<2)>>2]=b[I>>2];b[d>>2]=(b[d>>2]|0)+1;r=a}function wb(g,I){g=g|0;I=I|0;var d=0,a=0,c=0,d=r;b[g+28>>2]|0&&V(9768,9792,72,15288);a=g+12|0;c=b[a>>2]|0;c=Ub[b[(b[c>>2]|0)+12>>2]&63](c)|0;g=g+24|0;ka(I,b[g>>2]|0,28*c|0);b[g>>2]=0;g=b[a>>2]|0;(c=b[g+4>>2]|0)?2==(c|0)?(bb[b[b[g>>2]>>2]&127](g),ka(I,g,280),b[a>>2]=0,r=d):1==(c|0)?(bb[b[b[g>>2]>>2]&127](g),ka(I,g,48),b[a>>2]=0,r=d):3==(c|0)?(bb[b[b[g>>2]>>2]&
127](g),ka(I,g,40),b[a>>2]=0,r=d):V(15224,9792,115,15288):(bb[b[b[g>>2]>>2]&127](g),ka(I,g,20),b[a>>2]=0,r=d)}function zb(g,I,a){g=g|0;I=I|0;a=a|0;var c=0,e=0,f=0,h=0,k=0,l=0,t=0,m=0,p=0,q=0,E=0,z=0,v=0,c=r,e=g+28|0;b[e>>2]|0&&V(9768,9792,124,9840);f=g+12|0;t=b[f>>2]|0;t=Ub[b[(b[t>>2]|0)+12>>2]&63](t)|0;b[e>>2]=t;if(!(0>=(t|0))){h=g+24|0;k=I+4|0;l=I+28|0;t=0;do m=b[h>>2]|0,q=m+(28*t|0)|0,p=b[f>>2]|0,uc[b[(b[p>>2]|0)+24>>2]&63](p,q,a,t),p=B(I)|0,z=+(+d[q>>2]+-.10000000149011612),v=+(+d[m+(28*t|0)+
4>>2]+-.10000000149011612),E=(b[k>>2]|0)+(36*p|0)|0,d[E>>2]=z,d[E+4>>2]=v,v=+(+d[m+(28*t|0)+8>>2]+.10000000149011612),z=+(+d[m+(28*t|0)+12>>2]+.10000000149011612),E=(b[k>>2]|0)+(36*p|0)+8|0,d[E>>2]=v,d[E+4>>2]=z,b[(b[k>>2]|0)+(36*p|0)+16>>2]=q,b[(b[k>>2]|0)+(36*p|0)+32>>2]=0,H(I,p),b[l>>2]=(b[l>>2]|0)+1,n(I,p),b[m+(28*t|0)+24>>2]=p,b[m+(28*t|0)+16>>2]=g,b[m+(28*t|0)+20>>2]=t,t=t+1|0;while((t|0)<(b[e>>2]|0))}r=c}function Db(g,I){g=g|0;I=I|0;var d=0,a=0,c=0,e=0,f=0,h=0,k=0,l=0,t=0,m=0,p=0,n=0,q=0,E=
0,a=r,d=g+28|0;if(0>=(b[d>>2]|0))b[d>>2]=0,r=a;else{g=g+24|0;f=I+40|0;h=I+32|0;e=I+28|0;c=I+12|0;l=I+4|0;for(k=0;;){m=(b[g>>2]|0)+(28*k|0)+24|0;t=b[m>>2]|0;q=b[f>>2]|0;if(0<(q|0)){p=b[h>>2]|0;n=0;do E=p+(n<<2)|0,(b[E>>2]|0)==(t|0)&&(b[E>>2]=-1,q=b[f>>2]|0),n=n+1|0;while((n|0)<(q|0))}b[e>>2]=(b[e>>2]|0)+-1;if(-1>=(t|0)){I=10;break}if((b[c>>2]|0)<=(t|0)){I=10;break}if(-1!=(b[(b[l>>2]|0)+(36*t|0)+24>>2]|0)){I=12;break}C(I,t);u(I,t);b[m>>2]=-1;k=k+1|0;if((k|0)>=(b[d>>2]|0)){I=14;break}}10==(I|0)?V(11792,
5624,123,5760):12==(I|0)?V(5776,5624,124,5760):14==(I|0)&&(b[d>>2]=0,r=a)}}function Fb(g,I,a,c){g=g|0;I=I|0;a=a|0;c=c|0;var e=0,f=0,h=0,k=0,l=0,t=0,m=0,p=0,q=0,E=0,z=0,v=0,D=0,O=0,L=0,U=0,ca=0,y=0,R=0,da=0,x=0,A=0,w=A=0,J=0,B=w=0,u=0,e=r;r=r+32|0;h=e+16|0;k=e;f=g+28|0;if(0>=(b[f>>2]|0))r=e;else{l=g+24|0;p=g+12|0;q=h+4|0;E=k+4|0;z=h+8|0;v=k+8|0;D=h+12|0;O=k+12|0;L=c+4|0;U=a+4|0;t=I+12|0;g=I+4|0;for(m=0;;){J=b[l>>2]|0;A=b[p>>2]|0;w=J+(28*m|0)+20|0;uc[b[(b[A>>2]|0)+24>>2]&63](A,h,a,b[w>>2]|0);A=b[p>>
2]|0;uc[b[(b[A>>2]|0)+24>>2]&63](A,k,c,b[w>>2]|0);w=J+(28*m|0)|0;R=+d[h>>2];x=+d[k>>2];x=R >>0<(b[4714]|0)>>>0&&la(),p=t+16|0,(b[p>>2]|0)==(h|0)?b[p>>2]=l:b[t+20>>2]=l,!l)break;l>>>0<(b[4714]|0)>>>0&&la();b[l+24>>
2]=t;if(h=b[g+(k+8)>>2]|0)h>>>0<(b[4714]|0)>>>0?la():(b[l+16>>2]=h,b[h+24>>2]=l);if(h=b[g+(k+12)>>2]|0)h>>>0<(b[4714]|0)>>>0?la():(b[l+20>>2]=h,b[h+24>>2]=l)}}else l=b[g+k>>2]|0,g=b[g+(k|4)>>2]|0,k=18880+(p<<1<<2)|0,(l|0)!=(k|0)&&(l>>>0<(b[4714]|0)>>>0&&la(),(b[l+12>>2]|0)!=(h|0)&&la()),(g|0)==(l|0)?b[4710]&=~(1<a&&(a=0);a>=this.Fa.ca.length&&(a=this.Fa.ca.length-1);return this.Fa.ca[a]};e.prototype.bo=function(a){var f,c;f=0;for(c=a.length;f
=this.Vp.length&&this.Vp.push([])};e.prototype.lY=function(){this.Rl--};e.prototype.tO=function(){return this.Vp[this.Rl]};e.prototype.rm=function(a){this.$k++;this.$k>=this.Ho.length&&this.Ho.push(new sg);var f=this.Fb();f.reset(a);return f};e.prototype.mm=function(){this.$k--};e.prototype.Fb=function(){return this.Ho[this.$k]};e.prototype.uY=function(){this.Tl++;
this.Tl>=this.Xp.length&&this.Xp.push(Da({name:void 0,index:0,Mb:!1}));var a=this.PW();a.name=void 0;a.index=0;a.Mb=!1;return a};e.prototype.mY=function(){this.Tl--};e.prototype.PW=function(){return this.Xp[this.Tl]};e.prototype.uO=function(a,f){for(var c,p,e,k,x,q;f;){c=0;for(p=f.Fd.length;c
>2]=S-p,q=+d[e>>2],S=+d[g>>2],L=q-S,p=+d[n>>2],D=+d[fa>>2],O=p-D,U=+Ya(+(L*L+O*O)),1.1920928955078125E-7>U||(qa=1/U,L*=qa,O*=qa),d[g>>2]=l*L+S,d[fa>>2]=l*O+D,d[e>>2]=q-t*L,d[n>>2]=p-t*O):(sa=+(.5*(+d[g>>2]+ +d[e>>2])),qa=+(.5*(+d[fa>>2]+ +d[n>>2])),ba=g,d[ba>>2]=sa,d[ba+4>>2]=qa,ba=e,d[ba>>2]=sa,d[ba+4>>2]=qa,d[ca>>2]=0));r=c}function F(g){g=g|0;var I=0,a=0,c=a=0,I=r,a=b[g+108>>2]|0;if(3==(a|0))return a=+d[g+16>>2],c=+d[g+20>>2],a=
(+d[g+52>>2]-a)*(+d[g+92>>2]-c)-(+d[g+56>>2]-c)*(+d[g+88>>2]-a),r=I,+a;if(a){if(2==(a|0))return a=+d[g+16>>2]-+d[g+52>>2],c=+d[g+20>>2]-+d[g+56>>2],c=+Ya(+(a*a+c*c)),r=I,+c;if(1==(a|0))return r=I,0;V(15224,5448,260,5512)}else V(15224,5448,247,5512);return 0}function B(g){g=g|0;var I=0,d=0,a=0,c=0,e=0,f=0,I=r,d=g+16|0,a=b[d>>2]|0;if(-1==(a|0)){c=g+8|0;e=b[c>>2]|0;a=g+12|0;(e|0)!=(b[a>>2]|0)&&V(5592,5624,58,5672);g=g+4|0;f=b[g>>2]|0;b[a>>2]=e<<1;e=T(72*e|0)|0;b[g>>2]=e;ob(e|0,f|0,36*(b[c>>2]|0)|0)|
0;oa(f);e=b[c>>2]|0;f=(b[a>>2]|0)+-1|0;g=b[g>>2]|0;if((e|0)<(f|0)){do f=e,e=e+1|0,b[g+(36*f|0)+20>>2]=e,b[g+(36*f|0)+32>>2]=-1,f=(b[a>>2]|0)+-1|0;while((e|0)<(f|0))}b[g+(36*f|0)+20>>2]=-1;b[g+(36*((b[a>>2]|0)+-1|0)|0)+32>>2]=-1;a=b[c>>2]|0;b[d>>2]=a}else c=g+8|0,g=b[g+4>>2]|0;f=g+(36*a|0)+20|0;b[d>>2]=b[f>>2];b[f>>2]=-1;b[g+(36*a|0)+24>>2]=-1;b[g+(36*a|0)+28>>2]=-1;b[g+(36*a|0)+32>>2]=0;b[g+(36*a|0)+16>>2]=0;b[c>>2]=(b[c>>2]|0)+1;r=I;return a|0}function u(g,I){g=g|0;I=I|0;var d=0,a=0,c=0,d=r;-1>=
(I|0)&&V(5688,5624,94,5728);(b[g+12>>2]|0)<=(I|0)&&V(5688,5624,94,5728);a=g+8|0;0<(b[a>>2]|0)?(c=g+16|0,g=b[g+4>>2]|0,b[g+(36*I|0)+20>>2]=b[c>>2],b[g+(36*I|0)+32>>2]=-1,b[c>>2]=I,b[a>>2]=(b[a>>2]|0)+-1,r=d):V(5744,5624,95,5728)}function H(g,I){g=g|0;I=I|0;var a=0,c=0,e=0,f=0,h=0,k=0,l=0,t=0,m=0,fa=0,S=0,p=0,n=0,q=0,D=0,O=0,L=0,U=0,ca=0,E=0,R=0,S=0,a=r,m=g+24|0;b[m>>2]=(b[m>>2]|0)+1;m=b[g>>2]|0;if(-1==(m|0))b[g>>2]=I,b[(b[g+4>>2]|0)+(36*I|0)+20>>2]=-1,r=a;else{c=g+4|0;l=b[c>>2]|0;e=+d[l+(36*I|0)>>
2];f=+d[l+(36*I|0)+4>>2];h=+d[l+(36*I|0)+8>>2];k=+d[l+(36*I|0)+12>>2];t=b[l+(36*m|0)+24>>2]|0;a:do if(-1!=(t|0)){do{fa=b[l+(36*m|0)+28>>2]|0;q=+d[l+(36*m|0)+8>>2];E=+d[l+(36*m|0)>>2];O=+d[l+(36*m|0)+12>>2];p=+d[l+(36*m|0)+4>>2];U=2*((q>h?q:h)-(E>2];n=h>L?h:L;D=+d[l+(36*t|0)+12>>2];ca=k>D?k:D;n=-1==(b[l+(36*t|0)+24>>2]|0)?2*(n-E+(ca-U)):2*(n-E+(ca-U))-2*(L-O+(D-
q));n=p+n;q=+d[l+(36*fa|0)>>2];U=e
>2];E=f
>2]=L;L=+d[f>>2];k=+d[c>>2];h=D*L-O*k;k=O*L+D*k;0
>2]=L,E*=L,O*=L):I=11}else D=E=O=0,I=11;11==(I|0)&&(d[k>>2]=1,q=d[l>>2]=1);0
>2]=0);d[h>>2]=f;z=U=g+44|0;L=+d[z>>2];q=+d[z+4>>2];z=a;d[z>>2]=+E;d[z+
4>>2]=+O;f=+d[g+24>>2];a=+d[g+20>>2];D=+d[g+12>>2]+(f*E-a*O);E=E*a+f*O+ +d[g+16>>2];f=+D;O=+E;d[U>>2]=f;d[U+4>>2]=O;U=g+36|0;d[U>>2]=f;d[U+4>>2]=O;O=+d[g+72>>2];U=g+64|0;d[U>>2]=+d[U>>2]-O*(E-q);U=g+68|0;d[U>>2]=O*(D-L)+ +d[U>>2];r=e}else V(9016,8624,299,9048)}function Qa(g){g=g|0;var I=0,a=0,c=0,e=0,f=e=0,h=a=0,k=0,I=r;r=r+16|0;c=I;a=+d[g+52>>2];h=+qa(+a);d[c+8>>2]=h;a=+Ja(+a);d[c+12>>2]=a;k=+d[g+28>>2];e=+d[g+32>>2];f=+(+d[g+36>>2]-(a*k-h*e));e=+(+d[g+40>>2]-(k*h+a*e));a=c;d[a>>2]=f;d[a+4>>2]=e;
a=(b[g+88>>2]|0)+102872|0;if(e=b[g+100>>2]|0){g=g+12|0;do Fb(e,a,c,g),e=b[e+4>>2]|0;while(0!=(e|0))}r=I}function Ga(g,I){g=g|0;I=I|0;var a=0,c=0,e=0,f=0,h=0,k=0,l=0,t=0,m=0,k=0,a=r,c=g+88|0,l=b[c>>2]|0;b[l+102868>>2]&2&&V(8888,8624,168,8928);(h=aa(l,44)|0)?(P[h+32>>1]=1,P[h+34>>1]=-1,P[h+36>>1]=0,b[h+40>>2]=0,b[h+24>>2]=0,b[h+28>>2]=0,b[h+0>>2]=0,b[h+4>>2]=0,b[h+8>>2]=0,b[h+12>>2]=0):h=0;b[h+40>>2]=b[I+4>>2];d[h+16>>2]=+d[I+8>>2];d[h+20>>2]=+d[I+12>>2];e=h+8|0;b[e>>2]=g;f=h+4|0;b[f>>2]=0;k=h+32|0;
m=I+22|0;P[k+0>>1]=P[m+0>>1]|0;P[k+2>>1]=P[m+2>>1]|0;P[k+4>>1]=P[m+4>>1]|0;J[h+38>>0]=J[I+20>>0]|0;k=b[I>>2]|0;k=Bc[b[(b[k>>2]|0)+8>>2]&63](k,l)|0;b[h+12>>2]=k;k=Ub[b[(b[k>>2]|0)+12>>2]&63](k)|0;m=aa(l,28*k|0)|0;l=h+24|0;b[l>>2]=m;if(0<(k|0)){t=0;do b[m+(28*t|0)+16>>2]=0,m=b[l>>2]|0,b[m+(28*t|0)+24>>2]=-1,t=t+1|0;while((t|0)!=(k|0))}b[h+28>>2]=0;k=+d[I+16>>2];d[h>>2]=k;P[g+4>>1]&32&&(zb(h,(b[c>>2]|0)+102872|0,g+12|0),k=+d[h>>2]);m=g+100|0;b[f>>2]=b[m>>2];b[m>>2]=h;m=g+104|0;b[m>>2]=(b[m>>2]|0)+1;
b[e>>2]=g;if(!(0