2 lines
7.7 KiB
JavaScript
2 lines
7.7 KiB
JavaScript
|
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(m($){1o W=2o.4F,F=2o.4E,M=2o.4D,G=2o.4C;m S(){v $("<4B/>")};$.R=m(X,b){1o L=$(X),2x,A=S(),1k=S(),I=S().u(S()).u(S()).u(S()),B=S().u(S()).u(S()).u(S()),E=$([]),1D,H,q,1g,12,U,1n,1f,1b=0,1B="1A",2e,2d,25,24,1M=10,N,P,1H,c,f,l,j,g={c:0,f:0,l:0,j:0,C:0,J:0},$p,d,i,o,w,h,2k;m 11(x){v x+1g.D-1f.D};m 1m(y){v y+1g.q-1f.q};m 19(x){v x-1g.D+1f.D};m 18(y){v y-1g.q+1f.q};m 1y(3G){v 3G.4A-1f.D};m 1x(3F){v 3F.4z-1f.q};m 14(2W){1o 1i=2W||25,1h=2W||24;v{c:G(g.c*1i),f:G(g.f*1h),l:G(g.l*1i),j:G(g.j*1h),C:G(g.l*1i)-G(g.c*1i),J:G(g.j*1h)-G(g.f*1h)}};m 2t(c,f,l,j,2V){1o 1i=2V||25,1h=2V||24;g={c:G(c/1i),f:G(f/1h),l:G(l/1i),j:G(j/1h)};g.C=(l=11(g.l))-(c=11(g.c));g.J=(j=11(g.j))-(f=11(g.f))};m 1c(){a(!L.C()){v}1g={D:G(L.2n().D),q:G(L.2n().q)};12=L.C();U=L.J();a($().4y=="1.3.2"&&$.1l.33&&1B=="26"){1g.q+=F(V.3E.2l,$("1r").2l());1g.D+=F(V.3E.2m,$("1r").2m())}1f=$.4x(1n.r("1p"),["1A","4w"])+1?{D:G(1n.2n().D)-1n.2m(),q:G(1n.2n().q)-1n.2l()}:1B=="26"?{D:$(V).2m(),q:$(V).2l()}:{D:0,q:0};H=11(0);q=1m(0)};m 1s(3B){a(!1H){v}A.r({D:11(g.c),q:1m(g.f)}).u(1k).C(w=g.C).J(h=g.J);1k.u(I).u(E).r({D:0,q:0});I.C(F(w-I.2U()+I.3z(),0)).J(F(h-I.3D()+I.4v(),0));$(B[0]).r({D:H,q:q,C:g.c,J:U});$(B[1]).r({D:H+g.c,q:q,C:w,J:g.f});$(B[2]).r({D:H+g.l,q:q,C:12-g.l,J:U});$(B[3]).r({D:H+g.c,q:q+g.j,C:w,J:U-g.j});w-=E.2U();h-=E.3D();2H(E.3n){15 8:$(E[4]).r({D:w/2});$(E[5]).r({D:w,q:h/2});$(E[6]).r({D:w/2,q:h});$(E[7]).r({q:h/2});15 4:E.3C(1,3).r({D:w});E.3C(2,4).r({q:h})}a(3B!==Y){a($.R.1Y!=2L){$(V).T($.R.1Y,$.R.3A)}a(b.1J){$(V)[$.R.1Y]($.R.3A=2L)}}a($.1l.1X&&I.2U()-I.3z()==2){I.r("3y",0);3t(m(){I.r("3y","4u")},0)}};m 1Z(2T,2p){b.1G?2T.4t(b.1G,2p):2T.1t()};m 1d(2S){1o x=19(1y(2S))-g.c,y=18(1x(2S))-g.f;a(!2k){1c();2k=1a;A.1j("4s",m(){2k=Y})}N="";a(b.2r){a(y<=1M){N="n"}Z{a(y>=g.J-1M){N="s"}}a(x<=1M){N+="w"}Z{a(x>=g.C-1M){N+="e"}}}A.r("2R",N?N+"-17":b.1U?"4r":"");a(1D){1D.4q()}};m 2O(4p){$("1r").r("2R","");a(b.4o||g.C*g.J==0){1Z(A.u(B),m(){$(Q).1t()})}b.1R(X,14());$(V).T("O",2f);A.O(1d)};m 2v(1L){a(1L.2K!=1){v Y}1c();a(N){$("1r").r("2R",N+"-17");c=11(g[/w/.2h(N)?"l":"c"]);f=1m(g[/n/.2h(N)?"j":"f"]);$(V).O(2f).1j("1K",2O);A.T("O",1d)}Z{a(b.1U){2e=H+g.c-1y(1L);2d=q+g.f-1x(1L);A.T("O",1d);$(V).O(2P).1j("1K",m(){b.1R(X,14());$(V).T("O",2P);A.O(1d)})}Z{L.1F(1L)}}v Y};m 29(){l=F(H,M(H+12,c+W(j-f)*P*(l>c||-1)));j=G(F(q,M(q+U,f+W(l-c)/P*(j>f||-1))));l=G(l)};m 2a(){j=F(q,M(q+U,f+W(l-c)/P*(j>f||-1)));l=G(F(H,M(H+12,c+W(j-f)*P*(l>c||-1))));j=G(j)};m 28(){a(W(l-c)<b.2j){l=c-b.2j*(l<c||-1);a(l<H){c=H+b.2j}Z{a(l>H+12){c=H+12-b.2j}}}a(W(j-f)<b.2i){j=f-b.2i*(j<f||-1);a(j<q){f=q+b.2i}Z{a(j>q+U){f=q+U-b.2i}}}l=F(H,M(l,H+12));j=F(q,M(j,q+U));a(P){a(W(l-c)/P>W(j-f)){2a()}Z{29()}}a(W(l-c)>b.3x){l=c-b.3x*(l<c||-1);a(P){2a()}}a(W(j-f)>b.3w){j=f-b.3w*(j<f||-1);a(P){29()}}g={c:19(M(c,l)),l:19(F(c,l)),f:18(M(f,j)),j:18(F(f,j)),C:W(l-c),J:W(j-f)};1s();b.1S(X,14())};m 2f(2Q){l=N==""||/w|e/.2h(N)||P?1y(2Q):11(g.l);j=N==""||/n|s/.2h(N)||P?1x(2Q):1m(g.j);28();v Y};m 1w(3v,3u){l=(c=3v)+g.C;j=(f=3u)+g.J;g=$.1V(g,{c:19(c),f:18(f),l:19(l),j:18(j)});1s();b.1S(X,14())};m 2P(2g){c=F(H,M(2e+1y(2g),H+12-g.C));f=F(q,M(2d+1x(2g),q+U-g.J));1w(c,f);2g.4n();v Y};m 2N(){1c();l=c;j=f;28();N="";a(B.1Q(":4m(:4l)")){A.u(B).1t().2w(b.1G||0)}1H=1a;$(V).T("1K",2M).O(2f).1j("1K",2O);A.T("O",1d);b.31(X,14())};m 2M(){$(V).T("O",2N);1Z(A.u(B));g={c:19(c),f:18(f),l:19(c),j:18(f),C:0,J:0};b.1S(X,14());b.1R(X,14())};m 2u(2c){a(2c.2K!=1||B.1Q(":4k")){v Y}1c();2e=c=1y(2c);2d=f=1x(2c);$(V).1j("O",2N).1j("1K",2M);v Y};m 1E(){35(Y)};m 2q(){2x=1a;A.u(B).r({30:""});a(b.2y){1H=1a;1c();1s();A.u(B).1t().2w(b.1G||0)}3t(m(){b.32(X,14())},0)};1o 2L=m(13){1o k=b.1J,d,t,2G=13.4j||13.2K;d=!1u(k.2I)&&(13.2b||13.3q.2b)?k.2I:!1u(k.22)&&13.3r?k.22:!1u(k.23)&&13.3s?k.23:!1u(k.2J)?k.2J:10;a(k.2J=="17"||(k.23=="17"&&13.3s)||(k.22=="17"&&13.3r)||(k.2I=="17"&&(13.2b||13.3q.2b))){2H(2G){15 37:d=-d;15 39:t=F(c,l);c=M(c,l);l=F(t+d,c);a(P){2a()}1v;15 38:d=-d;15
|