diff options
-rw-r--r-- | lib/jquery-ui.packed.js | 1 | ||||
-rw-r--r-- | modules/rearrange/helpers/rearrange_block.php | 2 | ||||
-rw-r--r-- | modules/rearrange/js/jquery-ui-core-draggable-droppable-1.5.2.js | 1134 | ||||
-rwxr-xr-x | themes/default/jquery/ui.core.js | 291 | ||||
-rwxr-xr-x | themes/default/jquery/ui.dialog.min.js | 1 | ||||
-rwxr-xr-x | themes/default/jquery/ui.draggable.min.js | 1 | ||||
-rwxr-xr-x | themes/default/jquery/ui.resizable.min.js | 1 | ||||
-rwxr-xr-x | themes/default/jquery/ui.tabs.min.js | 1 | ||||
-rw-r--r-- | themes/default/views/page.html.php | 6 |
9 files changed, 3 insertions, 1435 deletions
diff --git a/lib/jquery-ui.packed.js b/lib/jquery-ui.packed.js new file mode 100644 index 00000000..95f03438 --- /dev/null +++ b/lib/jquery-ui.packed.js @@ -0,0 +1 @@ +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))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(6(D){j A=D.4n.2a;D.4n.2a=6(){D("*",4).1x(4).2M("2a");p A.1G(4,1Y)};6 C(E){6 G(H){j I=H.2G;p(I.2I!="4Q"&&I.ag!="3Z")}j F=G(E);(F&&D.1o(D.ah(E,"2P"),6(){p(F=G(4))}));p F}D.1u(D.ai[":"],{1b:6(F,G,E){p D.1b(F,E[3])},7m:6(F,G,E){j H=F.4X.3G();p(F.98>=0&&(("a"==H&&F.2t)||(/4m|3V|5f|4F/.1i(H)&&"3Z"!=F.6u&&!F.1q))&&C(F))}});D.30={6Z:8,aa:20,6D:9h,ak:17,as:46,6G:40,aq:35,ap:13,7B:27,a9:36,au:45,9W:37,9R:9Q,a4:a1,a8:aY,aU:aV,b5:bc,be:bb,ba:34,b6:33,b7:b8,aS:39,aD:16,aE:32,6s:9,6O:38};6 B(I,E,J,H){6 G(L){j K=D[I][E][L]||[];p(1S K=="2O"?K.48(/,?\\s+/):K)}j F=G("7P");5(H.1d==1&&1S H[0]=="2O"){F=F.9c(G("8z"))}p(D.4C(J,F)!=-1)}D.2F=6(E,F){j G=E.48(".")[0];E=E.48(".")[1];D.4n[E]=6(K){j I=(1S K=="2O"),J=6C.3O.4E.1K(1Y,1);5(I&&K.9d(0,1)=="7I"){p 4}5(I&&B(G,E,K,J)){j H=D.1b(4[0],E);p(H?H[K].1G(H,J):2W)}p 4.1o(6(){j L=D.1b(4,E);(!L&&!I&&D.1b(4,E,5n D[G][E](4,K)));(L&&I&&D.4Z(L[K])&&L[K].1G(L,J))})};D[G][E]=6(I,J){j H=4;4.4p=E;4.7o=D[G][E].aF||E;4.8y=G+"-"+E;4.l=D.1u({},D.2F.2J,D[G][E].2J,D.8A&&D.8A.2H(I)[E],J);4.u=D(I).1I("9I."+E,6(M,K,L){p H.3C(K,L)}).1I("aA."+E,6(L,K){p H.7H(K)}).1I("2a",6(){p H.24()});4.3X()};D[G][E].3O=D.1u({},D.2F.3O,F);D[G][E].8z="7M"};D.2F.3O={3X:6(){},24:6(){4.u.3r(4.4p)},7M:6(G,H){j F=G,E=4;5(1S G=="2O"){5(H===2W){p 4.7H(G)}F={};F[G]=H}D.1o(F,6(I,J){E.3C(I,J)})},7H:6(E){p 4.l[E]},3C:6(E,F){4.l[E]=F;5(E=="1q"){4.u[F?"1g":"1y"](4.8y+"-1q")}},6I:6(){4.3C("1q",15)},6S:6(){4.3C("1q",1f)},2v:6(F,H,G){j E=(F==4.7o?F:4.7o+F);H=H||D.3N.aL({6u:E,3B:4.u[0]});p 4.u.2M(E,[H,G],4.l[F])}};D.2F.2J={1q:15};D.k={1O:{1x:6(F,E,I){j H=D.k[F].3O;2m(j G 5p I){H.4w[G]=H.4w[G]||[];H.4w[G].3l([E,I[G]])}},1K:6(E,G,F){j I=E.4w[G];5(!I){p}2m(j H=0;H<I.1d;H++){5(E.l[I[H][0]]){I[H][1].1G(E.u,F)}}}},56:{},t:6(E){5(D.k.56[E]){p D.k.56[E]}j F=D(\'<2b 54="k-aK">\').1g(E).t({12:"1F",o:"-8x",m:"-8x",2I:"4B"}).1R("1B");D.k.56[E]=!!((!(/2p|47/).1i(F.t("1E"))||(/^[1-9]/).1i(F.t("11"))||(/^[1-9]/).1i(F.t("v"))||!(/4Q/).1i(F.t("aI"))||!(/5E|aM\\(0, 0, 0, 0\\)/).1i(F.t("aN"))));aR{D("1B").2H(0).6z(F.2H(0))}aQ(G){}p D.k.56[E]},4u:6(E){p D(E).29("55","8G").t("8B","4Q").1I("8C.k",6(){p 15})},aP:6(E){p D(E).29("55","9k").t("8B","").1Z("8C.k")},5d:6(H,E){5(D(H).t("2n")=="3Z"){p 15}j G=(E&&E=="m")?"22":"1H",F=15;5(H[G]>0){p 1f}H[G]=1;F=(H[G]>0);H[G]=0;p F}};D.k.6c={79:6(){j E=4;4.u.1I("5q."+4.4p,6(F){p E.8E(F)});5(D.1v.2r){4.8F=4.u.29("55");4.u.29("55","8G")}4.az=15},6E:6(){4.u.1Z("."+4.4p);(D.1v.2r&&4.u.29("55",4.8F))},8E:6(G){(4.3S&&4.57(G));4.63=G;j E=4,H=(G.aw==1),F=(1S 4.l.4s=="2O"?D(G.3B).5v().1x(G.3B).2u(4.l.4s).1d:15);5(!H||F||!4.5m(G)){p 1f}4.64=!4.l.3H;5(!4.64){4.aB=3n(6(){E.64=1f},4.l.3H)}5(4.7C(G)&&4.7u(G)){4.3S=(4.4W(G)!==15);5(!4.3S){G.4q();p 1f}}4.7F=6(I){p E.8D(I)};4.7D=6(I){p E.57(I)};D(1c).1I("8w."+4.4p,4.7F).1I("6r."+4.4p,4.7D);p 15},8D:6(E){5(D.1v.2r&&!E.4F){p 4.57(E)}5(4.3S){4.4v(E);p 15}5(4.7C(E)&&4.7u(E)){4.3S=(4.4W(4.63,E)!==15);(4.3S?4.4v(E):4.57(E))}p!4.3S},57:6(E){D(1c).1Z("8w."+4.4p,4.7F).1Z("6r."+4.4p,4.7D);5(4.3S){4.3S=15;4.4N(E)}p 15},7C:6(E){p(1C.28(1C.3z(4.63.3D-E.3D),1C.3z(4.63.3p-E.3p))>=4.l.5D)},7u:6(E){p 4.64},4W:6(E){},4v:6(E){},4N:6(E){},5m:6(E){p 1f}};D.k.6c.2J={4s:1m,5D:1,3H:0}})(4l);(6(A){A.2F("k.1l",A.1u({},A.k.6c,{8v:6(C){j B=!4.l.1U||!A(4.l.1U,4.u).1d?1f:15;A(4.l.1U,4.u).3A("*").91().1o(6(){5(4==C.3B){B=1f}});p B},8o:6(){j C=4.l;j B=A.4Z(C.19)?A(C.19.1G(4.u[0],[e])):(C.19=="5h"?4.u.5h():4.u);5(!B.5v("1B").1d){B.1R((C.1R=="1r"?4.u[0].2P:C.1R))}5(B[0]!=4.u[0]&&!(/(3M|1F)/).1i(B.t("12"))){B.t("12","1F")}p B},3X:6(){5(4.l.19=="7T"&&!(/^(?:r|a|f)/).1i(4.u.t("12"))){4.u[0].2G.12="1t"}(4.l.4T&&4.u.1g(4.l.4T+"-1l"));(4.l.1q&&4.u.1g("k-1l-1q"));4.79()},5m:6(B){j C=4.l;5(4.19||C.1q||A(B.3B).3L(".k-14-1U")){p 15}4.1U=4.8v(B);5(!4.1U){p 15}p 1f},4W:6(D){j E=4.l;4.19=4.8o();5(A.k.1N){A.k.1N.44=4}4.2D={m:(1k(4.u.t("5V"),10)||0),o:(1k(4.u.t("6k"),10)||0)};4.2V=4.19.t("12");4.18=4.u.18();4.18={o:4.18.o-4.2D.o,m:4.18.m-4.2D.m};4.18.1A={m:D.3D-4.18.m,o:D.3p-4.18.o};4.8m();4.3u=4.19.3u();j B=4.3u.18();5(4.3u[0]==1c.1B&&A.1v.b4){B={o:0,m:0}}4.18.1r={o:B.o+(1k(4.3u.t("5Q"),10)||0),m:B.m+(1k(4.3u.t("5C"),10)||0)};5(4.2V=="1t"){j C=4.u.12();4.18.1t={o:C.o-(1k(4.19.t("o"),10)||0)+4.4e.1H(),m:C.m-(1k(4.19.t("m"),10)||0)+4.4g.22()}}1e{4.18.1t={o:0,m:0}}4.23=4.81(D);4.7q();5(E.8n){4.8l(E.8n)}A.1u(4,{7W:(4.2V=="1F"&&(!4.4e[0].31||(/(3a|1B)/i).1i(4.4e[0].31))),7U:(4.2V=="1F"&&(!4.4g[0].31||(/(3a|1B)/i).1i(4.4g[0].31))),7V:4.4e[0]!=4.3u[0]&&!(4.4e[0]==1c&&(/(1B|3a)/i).1i(4.3u[0].31)),7Z:4.4g[0]!=4.3u[0]&&!(4.4g[0]==1c&&(/(1B|3a)/i).1i(4.3u[0].31))});5(E.1s){4.8p()}4.2A("2c",D);4.7q();5(A.k.1N&&!E.8q){A.k.1N.6h(4,D)}4.19.1g("k-1l-60");4.4v(D);p 1f},8m:6(){4.4e=6(B){65{5(/2p|2B/.1i(B.t("2n"))||(/2p|2B/).1i(B.t("2n-y"))){p B}B=B.1r()}4Y(B[0].2P);p A(1c)}(4.19);4.4g=6(B){65{5(/2p|2B/.1i(B.t("2n"))||(/2p|2B/).1i(B.t("2n-x"))){p B}B=B.1r()}4Y(B[0].2P);p A(1c)}(4.19)},8l:6(B){5(B.m!=2W){4.18.1A.m=B.m+4.2D.m}5(B.2q!=2W){4.18.1A.m=4.21.v-B.2q+4.2D.m}5(B.o!=2W){4.18.1A.o=B.o+4.2D.o}5(B.2o!=2W){4.18.1A.o=4.21.11-B.2o+4.2D.o}},7q:6(){4.21={v:4.19.3U(),11:4.19.3E()}},8p:6(){j E=4.l;5(E.1s=="1r"){E.1s=4.19[0].2P}5(E.1s=="1c"||E.1s=="2w"){4.1s=[0-4.18.1t.m-4.18.1r.m,0-4.18.1t.o-4.18.1r.o,A(E.1s=="1c"?1c:2w).v()-4.18.1t.m-4.18.1r.m-4.21.v-4.2D.m-(1k(4.u.t("51"),10)||0),(A(E.1s=="1c"?1c:2w).11()||1c.1B.2P.3k)-4.18.1t.o-4.18.1r.o-4.21.11-4.2D.o-(1k(4.u.t("5a"),10)||0)]}5(!(/^(1c|2w|1r)$/).1i(E.1s)){j C=A(E.1s)[0];j D=A(E.1s).18();j B=(A(C).t("2n")!="3Z");4.1s=[D.m+(1k(A(C).t("5C"),10)||0)-4.18.1t.m-4.18.1r.m,D.o+(1k(A(C).t("5Q"),10)||0)-4.18.1t.o-4.18.1r.o,D.m+(B?1C.28(C.5K,C.41):C.41)-(1k(A(C).t("5C"),10)||0)-4.18.1t.m-4.18.1r.m-4.21.v-4.2D.m-(1k(4.u.t("51"),10)||0),D.o+(B?1C.28(C.3k,C.2E):C.2E)-(1k(A(C).t("5Q"),10)||0)-4.18.1t.o-4.18.1r.o-4.21.11-4.2D.o-(1k(4.u.t("5a"),10)||0)]}},3b:6(C,D){5(!D){D=4.12}j B=C=="1F"?1:-1;p{o:(D.o+4.18.1t.o*B+4.18.1r.o*B-(4.2V=="3M"||4.7W||4.7V?0:4.4e.1H())*B+(4.2V=="3M"?A(1c).1H():0)*B+4.2D.o*B),m:(D.m+4.18.1t.m*B+4.18.1r.m*B-(4.2V=="3M"||4.7U||4.7Z?0:4.4g.22())*B+(4.2V=="3M"?A(1c).22():0)*B+4.2D.m*B)}},81:6(E){j F=4.l;j B={o:(E.3p-4.18.1A.o-4.18.1t.o-4.18.1r.o+(4.2V=="3M"||4.7W||4.7V?0:4.4e.1H())-(4.2V=="3M"?A(1c).1H():0)),m:(E.3D-4.18.1A.m-4.18.1t.m-4.18.1r.m+(4.2V=="3M"||4.7U||4.7Z?0:4.4g.22())-(4.2V=="3M"?A(1c).22():0))};5(!4.23){p B}5(4.1s){5(B.m<4.1s[0]){B.m=4.1s[0]}5(B.o<4.1s[1]){B.o=4.1s[1]}5(B.m>4.1s[2]){B.m=4.1s[2]}5(B.o>4.1s[3]){B.o=4.1s[3]}}5(F.1W){j D=4.23.o+1C.5B((B.o-4.23.o)/F.1W[1])*F.1W[1];B.o=4.1s?(!(D<4.1s[1]||D>4.1s[3])?D:(!(D<4.1s[1])?D-F.1W[1]:D+F.1W[1])):D;j C=4.23.m+1C.5B((B.m-4.23.m)/F.1W[0])*F.1W[0];B.m=4.1s?(!(C<4.1s[0]||C>4.1s[2])?C:(!(C<4.1s[0])?C-F.1W[0]:C+F.1W[0])):C}p B},4v:6(B){4.12=4.81(B);4.2y=4.3b("1F");4.12=4.2A("2s",B)||4.12;5(!4.l.2S||4.l.2S!="y"){4.19[0].2G.m=4.12.m+"1T"}5(!4.l.2S||4.l.2S!="x"){4.19[0].2G.o=4.12.o+"1T"}5(A.k.1N){A.k.1N.2s(4,B)}p 15},4N:6(C){j D=15;5(A.k.1N&&!4.l.8q){j D=A.k.1N.4x(4,C)}5((4.l.3Y=="ao"&&!D)||(4.l.3Y=="9P"&&D)||4.l.3Y===1f||(A.4Z(4.l.3Y)&&4.l.3Y.1K(4.u,D))){j B=4;A(4.19).3f(4.23,1k(4.l.a7,10)||9u,6(){B.2A("1X",C);B.83()})}1e{4.2A("1X",C);4.83()}p 15},83:6(){4.19.1y("k-1l-60");5(4.l.19!="7T"&&!4.53){4.19.2a()}4.19=1m;4.53=15},4w:{},59:6(B){p{19:4.19,12:4.12,5Z:4.2y,l:4.l}},2A:6(C,B){A.k.1O.1K(4,C,[B,4.59()]);5(C=="2s"){4.2y=4.3b("1F")}p 4.u.2M(C=="2s"?C:"2s"+C,[B,4.59()],4.l[C])},24:6(){5(!4.u.1b("1l")){p}4.u.3r("1l").1Z(".1l").1y("k-1l k-1l-60 k-1l-1q");4.6E()}}));A.1u(A.k.1l,{2J:{1R:"1r",2S:15,4s:":4m",3H:0,5D:1,19:"7T",3W:"47",4T:"k"}});A.k.1O.1x("1l","1E",{2c:6(D,C){j B=A("1B");5(B.t("1E")){C.l.7L=B.t("1E")}B.t("1E",C.l.1E)},1X:6(C,B){5(B.l.7L){A("1B").t("1E",B.l.7L)}}});A.k.1O.1x("1l","1P",{2c:6(D,C){j B=A(C.19);5(B.t("1P")){C.l.7K=B.t("1P")}B.t("1P",C.l.1P)},1X:6(C,B){5(B.l.7K){A(B.19).t("1P",B.l.7K)}}});A.k.1O.1x("1l","2Q",{2c:6(D,C){j B=A(C.19);5(B.t("2Q")){C.l.7J=B.t("2Q")}B.t("2Q",C.l.2Q)},1X:6(C,B){5(B.l.7J){A(B.19).t("2Q",B.l.7J)}}});A.k.1O.1x("1l","58",{2c:6(C,B){A(B.l.58===1f?"a3":B.l.58).1o(6(){A(\'<2b 54="k-1l-58" 2G="73: #a6;"></2b>\').t({v:4.41+"1T",11:4.2E+"1T",12:"1F",2Q:"0.9Y",1P:6w}).t(A(4).18()).1R("1B")})},1X:6(C,B){A("2b.k-1l-58").1o(6(){4.2P.6z(4)})}});A.k.1O.1x("1l","2B",{2c:6(D,C){j E=C.l;j B=A(4).1b("1l");E.3v=E.3v||20;E.3t=E.3t||20;B.3g=6(F){65{5(/2p|2B/.1i(F.t("2n"))||(/2p|2B/).1i(F.t("2n-y"))){p F}F=F.1r()}4Y(F[0].2P);p A(1c)}(4);B.3j=6(F){65{5(/2p|2B/.1i(F.t("2n"))||(/2p|2B/).1i(F.t("2n-x"))){p F}F=F.1r()}4Y(F[0].2P);p A(1c)}(4);5(B.3g[0]!=1c&&B.3g[0].31!="66"){B.7N=B.3g.18()}5(B.3j[0]!=1c&&B.3j[0].31!="66"){B.7Q=B.3j.18()}},2s:6(E,D){j F=D.l,C=15;j B=A(4).1b("1l");5(B.3g[0]!=1c&&B.3g[0].31!="66"){5((B.7N.o+B.3g[0].2E)-E.3p<F.3v){B.3g[0].1H=C=B.3g[0].1H+F.3t}5(E.3p-B.7N.o<F.3v){B.3g[0].1H=C=B.3g[0].1H-F.3t}}1e{5(E.3p-A(1c).1H()<F.3v){C=A(1c).1H(A(1c).1H()-F.3t)}5(A(2w).11()-(E.3p-A(1c).1H())<F.3v){C=A(1c).1H(A(1c).1H()+F.3t)}}5(B.3j[0]!=1c&&B.3j[0].31!="66"){5((B.7Q.m+B.3j[0].41)-E.3D<F.3v){B.3j[0].22=C=B.3j[0].22+F.3t}5(E.3D-B.7Q.m<F.3v){B.3j[0].22=C=B.3j[0].22-F.3t}}1e{5(E.3D-A(1c).22()<F.3v){C=A(1c).22(A(1c).22()-F.3t)}5(A(2w).v()-(E.3D-A(1c).22())<F.3v){C=A(1c).22(A(1c).22()+F.3t)}}5(C!==15){A.k.1N.6h(B,E)}}});A.k.1O.1x("1l","3m",{2c:6(D,C){j B=A(4).1b("1l");B.2L=[];A(C.l.3m.4G!=76?(C.l.3m.9V||":1b(1l)"):C.l.3m).1o(6(){j F=A(4);j E=F.18();5(4!=B.u[0]){B.2L.3l({5W:4,v:F.3U(),11:F.3E(),o:E.o,m:E.m})}})},2s:6(P,K){j E=A(4).1b("1l");j Q=K.l.9U||20;j O=K.5Z.m,N=O+E.21.v,D=K.5Z.o,C=D+E.21.11;2m(j M=E.2L.1d-1;M>=0;M--){j L=E.2L[M].m,J=L+E.2L[M].v,I=E.2L[M].o,R=I+E.2L[M].11;5(!((L-Q<O&&O<J+Q&&I-Q<D&&D<R+Q)||(L-Q<O&&O<J+Q&&I-Q<C&&C<R+Q)||(L-Q<N&&N<J+Q&&I-Q<D&&D<R+Q)||(L-Q<N&&N<J+Q&&I-Q<C&&C<R+Q))){5(E.2L[M].61){(E.l.3m.8t&&E.l.3m.8t.1K(E.u,1m,A.1u(E.59(),{8H:E.2L[M].5W})))}E.2L[M].61=15;4r}5(K.l.8s!="a5"){j B=1C.3z(I-C)<=Q;j S=1C.3z(R-D)<=Q;j G=1C.3z(L-N)<=Q;j H=1C.3z(J-O)<=Q;5(B){K.12.o=E.3b("1t",{o:I-E.21.11,m:0}).o}5(S){K.12.o=E.3b("1t",{o:R,m:0}).o}5(G){K.12.m=E.3b("1t",{o:0,m:L-E.21.v}).m}5(H){K.12.m=E.3b("1t",{o:0,m:J}).m}}j F=(B||S||G||H);5(K.l.8s!="an"){j B=1C.3z(I-D)<=Q;j S=1C.3z(R-C)<=Q;j G=1C.3z(L-O)<=Q;j H=1C.3z(J-N)<=Q;5(B){K.12.o=E.3b("1t",{o:I,m:0}).o}5(S){K.12.o=E.3b("1t",{o:R-E.21.11,m:0}).o}5(G){K.12.m=E.3b("1t",{o:0,m:L}).m}5(H){K.12.m=E.3b("1t",{o:0,m:J-E.21.v}).m}}5(!E.2L[M].61&&(B||S||G||H||F)){(E.l.3m.3m&&E.l.3m.3m.1K(E.u,1m,A.1u(E.59(),{8H:E.2L[M].5W})))}E.2L[M].61=(B||S||G||H||F)}}});A.k.1O.1x("1l","8Y",{2c:6(D,C){j B=A(4).1b("1l");B.5X=[];A(C.l.8Y).1o(6(){5(A.1b(4,"6H")){j E=A.1b(4,"6H");B.5X.3l({1n:E,8X:E.l.3Y});E.aj();E.2A("6f",D,B)}})},1X:6(D,C){j B=A(4).1b("1l");A.1o(B.5X,6(){5(4.1n.4S){4.1n.4S=0;B.53=1f;4.1n.53=15;5(4.8X){4.1n.l.3Y=1f}4.1n.4N(D);4.1n.u.2M("ac",[D,A.1u(4.1n.k(),{ab:B.u})],4.1n.l.ae);4.1n.l.19=4.1n.l.6v}1e{4.1n.2A("6e",D,B)}})},2s:6(F,E){j D=A(4).1b("1l"),B=4;j C=6(K){j H=K.m,J=H+K.v,I=K.o,G=I+K.11;p(H<(4.2y.m+4.18.1A.m)&&(4.2y.m+4.18.1A.m)<J&&I<(4.2y.o+4.18.1A.o)&&(4.2y.o+4.18.1A.o)<G)};A.1o(D.5X,6(G){5(C.1K(D,4.1n.af)){5(!4.1n.4S){4.1n.4S=1;4.1n.2x=A(B).5h().1R(4.1n.u).1b("6H-5W",1f);4.1n.l.6v=4.1n.l.19;4.1n.l.19=6(){p E.19[0]};F.3B=4.1n.2x[0];4.1n.5m(F,1f);4.1n.4W(F,1f,1f);4.1n.18.1A.o=D.18.1A.o;4.1n.18.1A.m=D.18.1A.m;4.1n.18.1r.m-=D.18.1r.m-4.1n.18.1r.m;4.1n.18.1r.o-=D.18.1r.o-4.1n.18.1r.o;D.2A("bL",F)}5(4.1n.2x){4.1n.4v(F)}}1e{5(4.1n.4S){4.1n.4S=0;4.1n.53=1f;4.1n.l.3Y=15;4.1n.4N(F,1f);4.1n.l.19=4.1n.l.6v;4.1n.2x.2a();5(4.1n.8V){4.1n.8V.2a()}D.2A("cc",F)}}})}});A.k.1O.1x("1l","4c",{2c:6(D,B){j C=A.bY(A(B.l.4c.bW)).6N(6(F,E){p(1k(A(F).t("1P"),10)||B.l.4c.5u)-(1k(A(E).t("1P"),10)||B.l.4c.5u)});A(C).1o(6(E){4.2G.1P=B.l.4c.5u+E});4[0].2G.1P=B.l.4c.5u+C.1d}})})(4l);(6(A){A.2F("k.2N",{3C:6(B,C){5(B=="2K"){4.l.2K=C&&A.4Z(C)?C:6(D){p D.3L(2K)}}1e{A.2F.3O.3C.1G(4,1Y)}},3X:6(){j C=4.l,B=C.2K;4.3i=0;4.4j=1;4.l.2K=4.l.2K&&A.4Z(4.l.2K)?4.l.2K:6(D){p D.3L(B)};4.50={v:4.u[0].41,11:4.u[0].2E};A.k.1N.49[4.l.3W]=A.k.1N.49[4.l.3W]||[];A.k.1N.49[4.l.3W].3l(4);(4.l.4T&&4.u.1g(4.l.4T+"-2N"))},4w:{},k:6(B){p{1l:(B.2x||B.u),19:B.19,12:B.12,5Z:B.2y,l:4.l,u:4.u}},24:6(){j B=A.k.1N.49[4.l.3W];2m(j C=0;C<B.1d;C++){5(B[C]==4){B.7i(C,1)}}4.u.1y("k-2N-1q").3r("2N").1Z(".2N")},7e:6(C){j B=A.k.1N.44;5(!B||(B.2x||B.u)[0]==4.u[0]){p}5(4.l.2K.1K(4.u,(B.2x||B.u))){A.k.1O.1K(4,"5O",[C,4.k(B)]);4.u.2M("c2",[C,4.k(B)],4.l.5O)}},7f:6(C){j B=A.k.1N.44;5(!B||(B.2x||B.u)[0]==4.u[0]){p}5(4.l.2K.1K(4.u,(B.2x||B.u))){A.k.1O.1K(4,"75",[C,4.k(B)]);4.u.2M("c8",[C,4.k(B)],4.l.75)}},8M:6(E,B){j C=B||A.k.1N.44;5(!C||(C.2x||C.u)[0]==4.u[0]){p 15}j D=15;4.u.3A(":1b(2N)").8h(".k-1l-60").1o(6(){j F=A.1b(4,"2N");5(F.l.8O&&A.k.4R(C,A.1u(F,{18:F.u.18()}),F.l.6j)){D=1f;p 15}});5(D){p 15}5(4.l.2K.1K(4.u,(C.2x||C.u))){A.k.1O.1K(4,"4x",[E,4.k(C)]);4.u.2M("4x",[E,4.k(C)],4.l.4x);p 4.u}p 15},8T:6(C){j B=A.k.1N.44;A.k.1O.1K(4,"6f",[C,4.k(B)]);5(B){4.u.2M("c4",[C,4.k(B)],4.l.6f)}},8L:6(C){j B=A.k.1N.44;A.k.1O.1K(4,"6e",[C,4.k(B)]);5(B){4.u.2M("ce",[C,4.k(B)],4.l.6e)}}});A.1u(A.k.2N,{2J:{1q:15,6j:"4R",3W:"47",4T:"k"}});A.k.4R=6(I,E,J){5(!E.18){p 15}j D=(I.2y||I.12.1F).m,C=D+I.21.v,K=(I.2y||I.12.1F).o,H=K+I.21.11;j F=E.18.m,B=F+E.50.v,L=E.18.o,G=L+E.50.11;5e(J){1D"c7":p(F<D&&C<B&&L<K&&H<G);1J;1D"4R":p(F<D+(I.21.v/2)&&C-(I.21.v/2)<B&&L<K+(I.21.11/2)&&H-(I.21.11/2)<G);1J;1D"c9":p(F<((I.2y||I.12.1F).m+(I.68||I.18.1A).m)&&((I.2y||I.12.1F).m+(I.68||I.18.1A).m)<B&&L<((I.2y||I.12.1F).o+(I.68||I.18.1A).o)&&((I.2y||I.12.1F).o+(I.68||I.18.1A).o)<G);1J;1D"bU":p((K>=L&&K<=G)||(H>=L&&H<=G)||(K<L&&H>G))&&((D>=F&&D<=B)||(C>=F&&C<=B)||(D<F&&C>B));1J;47:p 15;1J}};A.k.1N={44:1m,49:{"47":[]},6h:6(E,H){j B=A.k.1N.49[E.l.3W];j F=H?H.6u:1m;j G=(E.2x||E.u).3A(":1b(2N)").91();8U:2m(j D=0;D<B.1d;D++){5(B[D].l.1q||(E&&!B[D].l.2K.1K(B[D].u,(E.2x||E.u)))){4r}2m(j C=0;C<G.1d;C++){5(G[C]==B[D].u[0]){B[D].50.11=0;4r 8U}}B[D].2l=B[D].u.t("2I")!="4Q";5(!B[D].2l){4r}B[D].18=B[D].u.18();B[D].50={v:B[D].u[0].41,11:B[D].u[0].2E};5(F=="bZ"||F=="cb"){B[D].8T.1K(B[D],H)}}},4x:6(B,C){j D=15;A.1o(A.k.1N.49[B.l.3W],6(){5(!4.l){p}5(!4.l.1q&&4.2l&&A.k.4R(B,4,4.l.6j)){D=4.8M.1K(4,C)}5(!4.l.1q&&4.2l&&4.l.2K.1K(4.u,(B.2x||B.u))){4.4j=1;4.3i=0;4.8L.1K(4,C)}});p D},2s:6(B,C){5(B.l.ch){A.k.1N.6h(B,C)}A.1o(A.k.1N.49[B.l.3W],6(){5(4.l.1q||4.8S||!4.2l){p}j D=A.k.4R(B,4,4.l.6j);j G=!D&&4.3i==1?"4j":(D&&4.3i==0?"3i":1m);5(!G){p}j F;5(4.l.8O){j E=4.u.5v(":1b(2N):3d(0)");5(E.1d){F=A.1b(E[0],"2N");F.8S=(G=="3i"?1:0)}}5(F&&G=="3i"){F.3i=0;F.4j=1;F.7f.1K(F,C)}4[G]=1;4[G=="4j"?"3i":"4j"]=0;4[G=="3i"?"7e":"7f"].1K(4,C);5(F&&G=="4j"){F.4j=0;F.3i=1;F.7e.1K(F,C)}})}};A.k.1O.1x("2N","6a",{6f:6(C,B){A(4).1g(B.l.6a)},6e:6(C,B){A(4).1y(B.l.6a)},4x:6(C,B){A(4).1y(B.l.6a)}});A.k.1O.1x("2N","6b",{5O:6(C,B){A(4).1g(B.l.6b)},75:6(C,B){A(4).1y(B.l.6b)},4x:6(C,B){A(4).1y(B.l.6b)}})})(4l);(6(A){A.2F("k.14",A.1u({},A.k.6c,{3X:6(){j L=4,M=4.l;j P=4.u.t("12");4.7b=4.u;4.u.1g("k-14").t({12:/5A/.1i(P)?"1t":P});A.1u(M,{5o:!!(M.3e),19:M.19||M.2C||M.3f?M.19||"bo":1m,3P:M.3P===1f?"k-14-5k-1U":M.3P});j H="71 8P #bm";M.95={"k-14":{2I:"4B"},"k-14-1U":{12:"1F",73:"#8Q",bz:"0.71"},"k-14-n":{1E:"n-1p",11:"2T",m:"1L",2q:"1L",74:H},"k-14-s":{1E:"s-1p",11:"2T",m:"1L",2q:"1L",6X:H},"k-14-e":{1E:"e-1p",v:"2T",o:"1L",2o:"1L",6V:H},"k-14-w":{1E:"w-1p",v:"2T",o:"1L",2o:"1L",70:H},"k-14-2f":{1E:"2f-1p",v:"2T",11:"2T",6V:H,6X:H},"k-14-2d":{1E:"2d-1p",v:"2T",11:"2T",6X:H,70:H},"k-14-2j":{1E:"2j-1p",v:"2T",11:"2T",6V:H,74:H},"k-14-2i":{1E:"2i-1p",v:"2T",11:"2T",70:H,74:H}};M.6T={"k-14-1U":{73:"#8Q",bN:"71 8P #bO",11:"94",v:"94"},"k-14-n":{1E:"n-1p",o:"1L",m:"45%"},"k-14-s":{1E:"s-1p",2o:"1L",m:"45%"},"k-14-e":{1E:"e-1p",2q:"1L",o:"45%"},"k-14-w":{1E:"w-1p",m:"1L",o:"45%"},"k-14-2f":{1E:"2f-1p",2q:"1L",2o:"1L"},"k-14-2d":{1E:"2d-1p",m:"1L",2o:"1L"},"k-14-2i":{1E:"2i-1p",m:"1L",o:"1L"},"k-14-2j":{1E:"2j-1p",2q:"1L",o:"1L"}};M.7g=4.u[0].4X;5(M.7g.7h(/bP|5f|4m|3V|4F|87/i)){j C=4.u;5(/1t/.1i(C.t("12"))&&A.1v.4D){C.t({12:"1t",o:"2p",m:"2p"})}C.7s(A(\'<2b 54="k-6Q" 2G="2n: 3Z;"></2b>\').t({12:C.t("12"),v:C.3U(),11:C.3E(),o:C.t("o"),m:C.t("m")}));j J=4.u;4.u=4.u.1r();4.u.1b("14",4);4.u.t({5V:J.t("5V"),6k:J.t("6k"),51:J.t("51"),5a:J.t("5a")});J.t({5V:0,6k:0,51:0,5a:0});5(A.1v.8a&&M.4q){J.t("1p","4Q")}M.3T=J.t({12:"5A",bJ:1,2I:"4B"});4.u.t({4f:J.t("4f")});4.5c()}5(!M.26){M.26=!A(".k-14-1U",4.u).1d?"e,s,2f":{n:".k-14-n",e:".k-14-e",s:".k-14-s",w:".k-14-w",2f:".k-14-2f",2d:".k-14-2d",2j:".k-14-2j",2i:".k-14-2i"}}5(M.26.4G==76){M.1P=M.1P||6w;5(M.26=="bD"){M.26="n,e,s,w,2f,2d,2j,2i"}j O=M.26.48(",");M.26={};j I={1U:"12: 1F; 2I: 4Q; 2n:3Z;",n:"o: 4d; v:4h%;",e:"2q: 4d; 11:4h%;",s:"2o: 4d; v:4h%;",w:"m: 4d; 11:4h%;",2f:"2o: 4d; 2q: 1L;",2d:"2o: 4d; m: 1L;",2j:"o: 4d; 2q: 1L;",2i:"o: 4d; m: 1L;"};2m(j Q=0;Q<O.1d;Q++){j N=A.5i(O[Q]),K=M.95,G="k-14-"+N,E=!A.k.t(G)&&!M.3P,R=A.k.t("k-14-5k-1U"),S=A.1u(K[G],K["k-14-1U"]),D=A.1u(M.6T[G],!R?M.6T["k-14-1U"]:{});j T=/2d|2f|2j|2i/.1i(N)?{1P:++M.1P}:{};j B=(E?I[N]:""),F=A([\'<2b 54="k-14-1U \',G,\'" 2G="\',B,I.1U,\'"></2b>\'].4A("")).t(T);M.26[N]=".k-14-"+N;4.u.7Y(F.t(E?S:{}).t(M.3P?D:{}).1g(M.3P?"k-14-5k-1U":"").1g(M.3P))}5(M.3P){4.u.1g("k-14-5k").t(!A.k.t("k-14-5k")?{}:{})}}4.8f=6(Y){Y=Y||4.u;2m(j U 5p M.26){5(M.26[U].4G==76){M.26[U]=A(M.26[U],4.u).2R()}5(M.5E){M.26[U].t({2Q:0})}5(4.u.3L(".k-6Q")&&M.7g.7h(/5f|4m|3V|4F/i)){j W=A(M.26[U],4.u),X=0;X=/2d|2j|2i|2f|n|s/.1i(U)?W.3E():W.3U();j V=["5M",/2j|2i|n/.1i(U)?"bG":/2f|2d|s/.1i(U)?"bv":/^e$/.1i(U)?"bH":"bI"].4A("");5(!M.5E){Y.t(V,X)}4.5c()}5(!A(M.26[U]).1d){4r}}};4.8f(4.u);M.4M=A(".k-14-1U",L.u);5(M.4u){M.4M.1o(6(U,V){A.k.4u(V)})}M.4M.9D(6(){5(!M.6l){5(4.7E){j U=4.7E.7h(/k-14-(2f|2d|2j|2i|n|e|s|w)/i)}L.2S=M.2S=U&&U[1]?U[1]:"2f"}});5(M.84){M.4M.2e();A(L.u).1g("k-14-7d").6p(6(){A(4).1y("k-14-7d");M.4M.2R()},6(){5(!M.6l){A(4).1g("k-14-7d");M.4M.2e()}})}4.79()},4w:{},k:6(){p{7b:4.7b,u:4.u,19:4.19,12:4.12,1h:4.1h,l:4.l,2Y:4.2Y,23:4.23}},2A:6(C,B){A.k.1O.1K(4,C,[B,4.k()]);5(C!="1p"){4.u.2M(["1p",C].4A(""),[B,4.k()],4.l[C])}},24:6(){j C=4.u,B=C.bK(".k-14").2H(0);4.6E();j D=6(E){A(E).1y("k-14 k-14-1q").3r("14").1Z(".14").3A(".k-14-1U").2a()};D(C);5(C.3L(".k-6Q")&&B){C.1r().7Y(A(B).t({12:C.t("12"),v:C.3U(),11:C.3E(),o:C.t("o"),m:C.t("m")})).bM().2a();D(B)}},5m:6(D){5(4.l.1q){p 15}j B=15;2m(j C 5p 4.l.26){5(A(4.l.26[C])[0]==D.3B){B=1f}}5(!B){p 15}p 1f},4W:6(H){j C=4.l,I=4.u.12(),B=4.u,F=6(M){p 1k(M,10)||0},E=A.1v.2r&&A.1v.5y<7;C.6l=1f;C.7p={o:A(1c).1H(),m:A(1c).22()};5(B.3L(".k-1l")||(/1F/).1i(B.t("12"))){j K=A.1v.2r&&!C.1s&&(/1F/).1i(B.t("12"))&&!(/1t/).1i(B.1r().t("12"));j J=K?C.7p.o:0,D=K?C.7p.m:0;B.t({12:"1F",o:(I.o+J),m:(I.m+D)})}5(A.1v.4D&&/1t/.1i(B.t("12"))){B.t({12:"1t",o:"2p",m:"2p"})}4.8j();j L=F(4.19.t("m")),G=F(4.19.t("o"));5(C.1s){L+=A(C.1s).22()||0;G+=A(C.1s).1H()||0}4.18=4.19.18();4.12={m:L,o:G};4.1h=C.19||E?{v:B.3U(),11:B.3E()}:{v:B.v(),11:B.11()};4.2Y=C.19||E?{v:B.3U(),11:B.3E()}:{v:B.v(),11:B.11()};4.23={m:L,o:G};4.4i={v:B.3U()-B.v(),11:B.3E()-B.11()};4.8b={m:H.3D,o:H.3p};C.3e=(1S C.3e=="9K")?C.3e:((4.2Y.v/4.2Y.11)||1);5(C.7l){A("1B").t("1E",4.2S+"-1p")}4.2A("2c",H);p 1f},4v:6(I){j C=4.19,D=4.l,J={},M=4,E=4.8b,K=4.2S;j N=(I.3D-E.m)||0,L=(I.3p-E.o)||0;j H=4.3y[K];5(!H){p 15}j G=H.1G(4,[I,N,L]),F=A.1v.2r&&A.1v.5y<7,B=4.4i;5(D.5o||I.4K){G=4.8e(G,I)}G=4.8i(G,I);4.2A("1p",I);C.t({o:4.12.o+"1T",m:4.12.m+"1T",v:4.1h.v+"1T",11:4.1h.11+"1T"});5(!D.19&&D.3T){4.5c()}4.6M(G);4.u.2M("1p",[I,4.k()],4.l.1p);p 15},4N:6(I){4.l.6l=15;j E=4.l,H=6(M){p 1k(M,10)||0},K=4;5(E.19){j D=E.3T,C=D&&(/5f/i).1i(D.2H(0).4X),B=C&&A.k.5d(D.2H(0),"m")?0:K.4i.11,G=C?0:K.4i.v;j L={v:(K.1h.v-G),11:(K.1h.11-B)},F=(1k(K.u.t("m"),10)+(K.12.m-K.23.m))||1m,J=(1k(K.u.t("o"),10)+(K.12.o-K.23.o))||1m;5(!E.3f){4.u.t(A.1u(L,{o:J,m:F}))}5(E.19&&!E.3f){4.5c()}}5(E.7l){A("1B").t("1E","2p")}4.2A("1X",I);5(E.19){4.19.2a()}p 15},6M:6(B){j C=4.l;4.18=4.19.18();5(B.m){4.12.m=B.m}5(B.o){4.12.o=B.o}5(B.11){4.1h.11=B.11}5(B.v){4.1h.v=B.v}},8e:6(D,E){j F=4.l,G=4.12,C=4.1h,B=4.2S;5(D.11){D.v=(C.11*F.3e)}1e{5(D.v){D.11=(C.v/F.3e)}}5(B=="2d"){D.m=G.m+(C.v-D.v);D.o=1m}5(B=="2i"){D.o=G.o+(C.11-D.11);D.m=G.m+(C.v-D.v)}p D},8i:6(H,J){j E=4.19,F=4.l,P=F.5o||J.4K,M=4.2S,N=H.v&&F.4a&&F.4a<H.v,D=H.11&&F.3x&&F.3x<H.11,I=H.v&&F.3q&&F.3q>H.v,O=H.11&&F.3s&&F.3s>H.11;5(I){H.v=F.3q}5(O){H.11=F.3s}5(N){H.v=F.4a}5(D){H.11=F.3x}j C=4.23.m+4.2Y.v,L=4.12.o+4.1h.11;j G=/2d|2i|w/.1i(M),B=/2i|2j|n/.1i(M);5(I&&G){H.m=C-F.3q}5(N&&G){H.m=C-F.4a}5(O&&B){H.o=L-F.3s}5(D&&B){H.o=L-F.3x}j K=!H.v&&!H.11;5(K&&!H.m&&H.o){H.o=1m}1e{5(K&&!H.o&&H.m){H.m=1m}}p H},5c:6(){j F=4.l;5(!F.3T){p}j D=F.3T,C=4.19||4.u;5(!F.4L){j B=[D.t("5Q"),D.t("bs"),D.t("bS"),D.t("5C")],E=[D.t("co"),D.t("cq"),D.t("ci"),D.t("ck")];F.4L=A.4O(B,6(G,I){j H=1k(G,10)||0,J=1k(E[I],10)||0;p H+J})}D.t({11:(C.11()-F.4L[0]-F.4L[2])+"1T",v:(C.v()-F.4L[1]-F.4L[3])+"1T"})},8j:6(){j C=4.u,E=4.l;4.7x=C.18();5(E.19){4.19=4.19||A(\'<2b 2G="2n:3Z;"></2b>\');j B=A.1v.2r&&A.1v.5y<7,F=(B?1:0),D=(B?2:-1);4.19.1g(E.19).t({v:C.3U()+D,11:C.3E()+D,12:"1F",m:4.7x.m-F+"1T",o:4.7x.o-F+"1T",1P:++E.1P});4.19.1R("1B");5(E.4u){A.k.4u(4.19.2H(0))}}1e{4.19=C}},3y:{e:6(D,C,B){p{v:4.2Y.v+C}},w:6(F,C,B){j G=4.l,D=4.2Y,E=4.23;p{m:E.m+C,v:D.v-C}},n:6(F,C,B){j G=4.l,D=4.2Y,E=4.23;p{o:E.o+B,11:D.11-B}},s:6(D,C,B){p{11:4.2Y.11+B}},2f:6(D,C,B){p A.1u(4.3y.s.1G(4,1Y),4.3y.e.1G(4,[D,C,B]))},2d:6(D,C,B){p A.1u(4.3y.s.1G(4,1Y),4.3y.w.1G(4,[D,C,B]))},2j:6(D,C,B){p A.1u(4.3y.n.1G(4,1Y),4.3y.e.1G(4,[D,C,B]))},2i:6(D,C,B){p A.1u(4.3y.n.1G(4,1Y),4.3y.w.1G(4,[D,C,B]))}}}));A.1u(A.k.14,{2J:{4s:":4m",5D:1,3H:0,4q:1f,5E:15,3q:10,3s:10,3e:15,4u:1f,7l:1f,84:15,3P:15}});A.k.1O.1x("14","1s",{2c:6(I,J){j G=J.l,M=A(4).1b("14"),E=M.u;j C=G.1s,F=(C cd A)?C.2H(0):(/1r/.1i(C))?E.1r().2H(0):C;5(!F){p}M.7z=A(F);5(/1c/.1i(C)||C==1c){M.5g={m:0,o:0};M.5F={m:0,o:0};M.4V={u:A(1c),m:0,o:0,v:A(1c).v(),11:A(1c).11()||1c.1B.2P.3k}}1e{M.5g=A(F).18();M.5F=A(F).12();M.5G={11:A(F).5L(),v:A(F).7r()};j K=M.5g,B=M.5G.11,H=M.5G.v,D=(A.k.5d(F,"m")?F.5K:H),L=(A.k.5d(F)?F.3k:B);M.4V={u:F,m:K.m,o:K.o,v:D,11:L}}},1p:6(H,J){j E=J.l,N=A(4).1b("14"),C=N.5G,K=N.5g,G=N.1h,I=N.12,M=E.5o||H.4K,B={o:0,m:0},D=N.7z;5(D[0]!=1c&&/5A/.1i(D.t("12"))){B=N.5F}5(I.m<(E.19?K.m:B.m)){N.1h.v=N.1h.v+(E.19?(N.12.m-K.m):(N.12.m-B.m));5(M){N.1h.11=N.1h.v/E.3e}N.12.m=E.19?K.m:B.m}5(I.o<(E.19?K.o:0)){N.1h.11=N.1h.11+(E.19?(N.12.o-K.o):N.12.o);5(M){N.1h.v=N.1h.11*E.3e}N.12.o=E.19?K.o:0}j F=(E.19?N.18.m-K.m:(N.12.m-B.m))+N.4i.v,L=(E.19?N.18.o-K.o:N.12.o)+N.4i.11;5(F+N.1h.v>=N.4V.v){N.1h.v=N.4V.v-F;5(M){N.1h.11=N.1h.v/E.3e}}5(L+N.1h.11>=N.4V.11){N.1h.11=N.4V.11-L;5(M){N.1h.v=N.1h.11*E.3e}}},1X:6(G,I){j D=I.l,L=A(4).1b("14"),H=L.12,J=L.5g,B=L.5F,C=L.7z;j F=A(L.19),M=F.18(),K=F.7r(),E=F.5L();5(D.19&&!D.3f&&/1t/.1i(C.t("12"))){A(4).t({m:(M.m-J.m),o:(M.o-J.o),v:K,11:E})}5(D.19&&!D.3f&&/5A/.1i(C.t("12"))){A(4).t({m:B.m+(M.m-J.m),o:B.o+(M.o-J.o),v:K,11:E})}}});A.k.1O.1x("14","1W",{1p:6(H,J){j D=J.l,L=A(4).1b("14"),G=L.1h,E=L.2Y,F=L.23,K=L.2S,I=D.5o||H.4K;D.1W=1S D.1W=="9K"?[D.1W,D.1W]:D.1W;j C=1C.5B((G.v-E.v)/(D.1W[0]||1))*(D.1W[0]||1),B=1C.5B((G.11-E.11)/(D.1W[1]||1))*(D.1W[1]||1);5(/^(2f|s|e)$/.1i(K)){L.1h.v=E.v+C;L.1h.11=E.11+B}1e{5(/^(2j)$/.1i(K)){L.1h.v=E.v+C;L.1h.11=E.11+B;L.12.o=F.o-B}1e{5(/^(2d)$/.1i(K)){L.1h.v=E.v+C;L.1h.11=E.11+B;L.12.m=F.m-C}1e{L.1h.v=E.v+C;L.1h.11=E.11+B;L.12.o=F.o-B;L.12.m=F.m-C}}}}});A.k.1O.1x("14","3f",{1X:6(I,K){j F=K.l,L=A(4).1b("14");j E=F.3T,C=E&&(/5f/i).1i(E.2H(0).4X),B=C&&A.k.5d(E.2H(0),"m")?0:L.4i.11,H=C?0:L.4i.v;j D={v:(L.1h.v-H),11:(L.1h.11-B)},G=(1k(L.u.t("m"),10)+(L.12.m-L.23.m))||1m,J=(1k(L.u.t("o"),10)+(L.12.o-L.23.o))||1m;L.u.3f(A.1u(D,J&&G?{o:J,m:G}:{}),{5U:F.bq||"bp",bh:F.bl||"bn",bA:6(){j M={v:1k(L.u.t("v"),10),11:1k(L.u.t("11"),10),o:1k(L.u.t("o"),10),m:1k(L.u.t("m"),10)};5(E){E.t({v:M.v,11:M.11})}L.6M(M);L.2A("3f",I)}})}});A.k.1O.1x("14","2C",{2c:6(E,D){j F=D.l,B=A(4).1b("14"),G=F.3T,C=B.1h;5(!G){B.2C=B.u.5h()}1e{B.2C=G.5h()}B.2C.t({2Q:0.25,2I:"4B",12:"1t",11:C.11,v:C.v,4f:0,m:0,o:0}).1g("k-14-2C").1g(1S F.2C=="2O"?F.2C:"");B.2C.1R(B.19)},1p:6(D,C){j E=C.l,B=A(4).1b("14"),F=E.3T;5(B.2C){B.2C.t({12:"1t",11:B.1h.11,v:B.1h.v})}},1X:6(D,C){j E=C.l,B=A(4).1b("14"),F=E.3T;5(B.2C&&B.19){B.19.2H(0).6z(B.2C.2H(0))}}});A.k.1O.1x("14","3c",{2c:6(D,C){j E=C.l,B=A(4).1b("14"),F=6(G){A(G).1o(6(){A(4).1b("14-7a",{v:1k(A(4).v(),10),11:1k(A(4).11(),10),m:1k(A(4).t("m"),10),o:1k(A(4).t("o"),10)})})};5(1S(E.3c)=="9L"){5(E.3c.1d){E.3c=E.3c[0];F(E.3c)}1e{A.1o(E.3c,6(G,H){F(G)})}}1e{F(E.3c)}},1p:6(F,E){j G=E.l,B=A(4).1b("14"),D=B.2Y,I=B.23;j H={11:(B.1h.11-D.11)||0,v:(B.1h.v-D.v)||0,o:(B.12.o-I.o)||0,m:(B.12.m-I.m)||0},C=6(J,K){A(J).1o(6(){j N=A(4).1b("14-7a"),M={},L=K&&K.1d?K:["v","11","o","m"];A.1o(L||["v","11","o","m"],6(O,Q){j P=(N[Q]||0)+(H[Q]||0);5(P&&P>=0){M[Q]=P||1m}});A(4).t(M)})};5(1S(G.3c)=="9L"){A.1o(G.3c,6(J,K){C(J,K)})}1e{C(G.3c)}},1X:6(C,B){A(4).3r("14-7a-2c")}})})(4l);(6(A){A.2F("k.2h",{3X:6(){A.1u(4.l,{3H:4.l.3R?A.2U.2J.3H:10,28:!4.l.2B?10:8R,5J:4.l.5J||6(B){p B},5S:4.l.5S||4.l.80});5n A.2U(4.u[0],4.l)},3h:6(B){p 4.u.1I("3h",B)},5H:6(B){p 4.u.4t("5H",[B])},72:6(){p 4.u.4t("72")},9I:6(B,C){p 4.u.4t("97",[{bF:C}])},24:6(){p 4.u.4t("96")}});A.2U=6(L,K){j B={6O:38,6G:40,9a:46,6s:9,9J:13,9e:27,6D:9h,9m:33,9f:34,6Z:8};j C=A(L).29("2h","9k").1g(K.9G);5(K.3h){C.1I("3h.2h",K.3h)}j F;j V="";j M=A.2U.9v(K);j G=0;j T;j P={5N:15};j U=A.2U.9H(K,L,E,P);j W;A.1v.4D&&A(L.99).1I("bQ.2h",6(){5(W){W=15;p 15}});C.1I((A.1v.4D?"6n":"6d")+".2h",6(Y){T=Y.30;5e(Y.30){1D B.6O:Y.4q();5(U.2l()){U.9p()}1e{S(0,1f)}1J;1D B.6G:Y.4q();5(U.2l()){U.6W()}1e{S(0,1f)}1J;1D B.9m:Y.4q();5(U.2l()){U.9o()}1e{S(0,1f)}1J;1D B.9f:Y.4q();5(U.2l()){U.9b()}1e{S(0,1f)}1J;1D K.5l&&A.5i(K.4k)==","&&B.6D:1D B.6s:1D B.9J:5(E()){Y.4q();W=1f;p 15}1J;1D B.9e:U.2e();1J;47:6U(F);F=3n(S,K.3H);1J}}).3F(6(){G++}).5w(6(){G=0;5(!P.5N){R()}}).1A(6(){5(G++>1&&!U.2l()){S(0,1f)}}).1I("5H",6(){j Y=(1Y.1d>1)?1Y[1]:1m;6 Z(d,c){j b;5(c&&c.1d){2m(j a=0;a<c.1d;a++){5(c[a].3h.3G()==d.3G()){b=c[a];1J}}}5(1S Y=="6"){Y(b)}1e{C.4t("3h",b&&[b.1b,b.3o])}}A.1o(J(C.3w()),6(a,b){I(b,Z,Z)})}).1I("72",6(){M.9y()}).1I("97",6(){A.1u(K,1Y[1]);5("1b"5p 1Y[1]){M.9z()}}).1I("96",6(){U.1Z();C.1Z();A(L.99).1Z(".2h")});6 E(){j Z=U.1z();5(!Z){p 15}j Y=Z.3h;V=Y;5(K.5l){j a=J(C.3w());5(a.1d>1){Y=a.4E(0,a.1d-1).4A(K.4k)+K.4k+Y}Y+=K.4k}C.3w(Y);Q();C.4t("3h",[Z.1b,Z.3o]);p 1f}6 S(a,Z){5(T==B.9a){U.2e();p}j Y=C.3w();5(!Z&&Y==V){p}V=Y;Y=H(Y);5(Y.1d>=K.7R){C.1g(K.43);5(!K.5R){Y=Y.3G()}I(Y,D,Q)}1e{X();U.2e()}}6 J(Z){5(!Z){p[""]}j a=Z.48(K.4k);j Y=[];A.1o(a,6(b,c){5(A.5i(c)){Y[b]=A.5i(c)}});p Y}6 H(Y){5(!K.5l){p Y}j Z=J(Y);p Z[Z.1d-1]}6 O(Y,Z){5(K.9t&&(H(C.3w()).3G()==Y.3G())&&T!=B.6Z){C.3w(C.3w()+Z.9d(H(V).1d));A.2U.7A(L,V.1d,V.1d+Z.1d)}}6 R(){6U(F);F=3n(Q,8N)}6 Q(){j Y=U.2l();U.2e();6U(F);X();5(K.9s){C.2h("5H",6(Z){5(!Z){5(K.5l){j a=J(C.3w()).4E(0,-1);C.3w(a.4A(K.4k)+(a.1d?K.4k:""))}1e{C.3w("")}}})}5(Y){A.2U.7A(L,L.3o.1d,L.3o.1d)}}6 D(Z,Y){5(Y&&Y.1d&&G){X();U.2I(Y,Z);O(Z,Y[0].3o);U.2R()}1e{Q()}}6 I(a,d,Z){5(!K.5R){a=a.3G()}j c=M.2z(a);5(c&&c.1d){d(a,c)}1e{5((1S K.3R=="2O")&&(K.3R.1d>0)){j f={bk:+5n bj()};A.1o(K.9q,6(g,h){f[g]=1S h=="6"?h():h});A.8K({bx:"8J",by:"2h"+L.br,9C:K.9C,3R:K.3R,1b:A.1u({q:H(a),bt:K.28},f),69:6(h){j g=K.5P&&K.5P(h)||N(h);M.1x(a,g);d(a,g)}})}1e{5(K.78&&1S K.78=="6"){j Y=K.78(a);j b=(K.5P)?K.5P(Y):Y;M.1x(a,b);d(a,b)}1e{U.9l();Z(a)}}}}6 N(b){j Z=[];j a=b.48("\\n");2m(j Y=0;Y<a.1d;Y++){j c=A.5i(a[Y]);5(c){c=c.48("|");Z[Z.1d]={1b:c,3o:c[0],3h:K.5T&&K.5T(c,c[0])||c[0]}}}p Z}6 X(){C.1y(K.43)}};A.2U.2J={9G:"k-2h-4m",9E:"k-2h-c3",43:"k-2h-8u",7R:1,3H:c6,5R:15,9F:1f,7j:15,5b:10,28:4h,9s:15,9q:{},7k:1f,80:6(B){p B[0]},5S:1m,9t:15,v:0,5l:15,4k:", ",5J:6(C,B){p C.4b(5n cf("(?![^&;]+;)(?!<[^<>]*)("+B.4b(/([\\^\\$\\(\\)\\[\\]\\{\\}\\*\\.\\+\\?\\|\\\\])/9x,"\\\\$1")+")(?![^<>]*>)(?![^&;]+;)","9x"),"<9w>$1</9w>")},2B:1f,3k:b9};A.1u(A.k.2h,{2J:A.2U.2J});A.2U.9v=6(D){j F={};j C=0;6 H(K,J){5(!D.5R){K=K.3G()}j I=K.92(J);5(I==-1){p 15}p I==0||D.7j}6 G(J,I){5(C>D.5b){B()}5(!F[J]){C++}F[J]=I}6 E(){5(!D.1b){p 15}j I={},O=0;5(!D.3R){D.5b=1}I[""]=[];2m(j K=0,J=D.1b.1d;K<J;K++){j N=D.1b[K];N=(1S N=="2O")?[N]:N;j M=D.5S(N,K+1,D.1b.1d);5(M===15){4r}j L=M.ad(0).3G();5(!I[L]){I[L]=[]}j P={3o:M,1b:N,3h:D.5T&&D.5T(N)||M};I[L].3l(P);5(O++<D.28){I[""].3l(P)}}A.1o(I,6(Q,R){D.5b++;G(Q,R)})}3n(E,25);6 B(){F={};C=0}p{9y:B,1x:G,9z:E,2z:6(L){5(!D.5b||!C){p 1m}5(!D.3R&&D.7j){j K=[];2m(j I 5p F){5(I.1d>0){j M=F[I];A.1o(M,6(O,N){5(H(N.3o,L)){K.3l(N)}})}}p K}1e{5(F[L]){p F[L]}1e{5(D.9F){2m(j J=L.1d-1;J>=D.7R;J--){j M=F[L.9T(0,J)];5(M){j K=[];A.1o(M,6(O,N){5(H(N.3o,L)){K[K.1d]=N}});p K}}}}}p 1m}}};A.2U.9H=6(F,J,P,L){j I={2Z:"k-2h-5O"};j S,D=-1,Q,M="",R=1f,H,O;6 N(){5(!R){p}H=A("<2b/>").2e().1g(F.9E).t("12","1F").1R(1c.1B);O=A("<9O/>").1R(H).9D(6(T){5(K(T).4X&&K(T).4X.9Z()=="9B"){D=A("4z",O).1y(I.2Z).2k(K(T));A(K(T)).1g(I.2Z)}}).1A(6(T){A(K(T)).1g(I.2Z);P();J.3F();p 15}).5q(6(){L.5N=1f}).6r(6(){L.5N=15});5(F.v>0){H.t("v",F.v)}R=15}6 K(U){j T=U.3B;4Y(T&&T.31!="9B"){T=T.2P}5(!T){p[]}p T}6 C(T){S.4E(D,D+1).1y(I.2Z);E(T);j V=S.4E(D,D+1).1g(I.2Z);5(F.2B){j U=0;S.4E(0,D).1o(6(){U+=4.2E});5((U+V[0].2E-O.1H())>O[0].a2){O.1H(U+V[0].2E-O.5L())}1e{5(U<O.1H()){O.1H(U)}}}}6 E(T){D+=T;5(D<0){D=S.1h()-1}1e{5(D>=S.1h()){D=0}}}6 B(T){p F.28&&F.28<T?F.28:T}6 G(){O.7t();j U=B(Q.1d);2m(j V=0;V<U;V++){5(!Q[V]){4r}j W=F.80(Q[V].1b,V+1,U,Q[V].3o,M);5(W===15){4r}j T=A("<4z/>").3a(F.5J(W,M)).1g(V%2==0?"k-2h-b3":"k-2h-aZ").1R(O)[0];A.1b(T,"k-2h-1b",Q[V])}S=O.3A("4z");5(F.7k){S.4E(0,1).1g(I.2Z);D=0}5(A.4n.3K){O.3K()}}p{2I:6(U,T){N();Q=U;M=T;G()},6W:6(){C(1)},9p:6(){C(-1)},9o:6(){5(D!=0&&D-8<0){C(-D)}1e{C(-8)}},9b:6(){5(D!=S.1h()-1&&D+8>S.1h()){C(S.1h()-1-D)}1e{C(8)}},2e:6(){H&&H.2e();S&&S.1y(I.2Z);D=-1;A(J).2M("aW",[{},{l:F}],F.2e)},2l:6(){p H&&H.3L(":2l")},44:6(){p 4.2l()&&(S.2u("."+I.2Z)[0]||F.7k&&S[0])},2R:6(){j V=A(J).18();H.t({v:1S F.v=="2O"||F.v>0?F.v:A(J).v(),o:V.o+J.2E,m:V.m}).2R();5(F.2B){O.1H(0);O.t({3x:F.3k,2n:"2p"});5(A.1v.2r&&1S 1c.1B.2G.3x==="2W"){j T=0;S.1o(6(){T+=4.2E});j U=T>F.3k;O.t("11",U?F.3k:T);5(!U){S.v(O.v()-1k(S.t("5M-m"))-1k(S.t("5M-2q")))}}}A(J).2M("aT",[{},{l:F}],F.2R)},1z:6(){j T=S&&S.2u("."+I.2Z).1y(I.2Z);p T&&T.1d&&A.1b(T[0],"k-2h-1b")},9l:6(){O&&O.7t()},1Z:6(){H&&H.2a()}}};A.2U.7A=6(D,E,C){5(D.9n){j B=D.9n();B.ax(1f);B.ay("9j",E);B.aG("9j",C);B.3V()}1e{5(D.9g){D.9g(E,C)}1e{5(D.9i){D.9i=E;D.b0=C}}}D.3F()}})(4l);(6(B){j A={6P:"2c.1l",2s:"2s.1l",6Y:"1X.1l",3x:"3x.14",3s:"3s.14",4a:"4a.14",3q:"3q.14",6F:"2c.14",1p:"2s.14",6A:"1X.14"};B.2F("k.1j",{3X:6(){4.6q=4.u.29("2X");4.l.2X=4.l.2X||4.6q;j L=4,I=4.l,C=4.u.aJ("2X").1g("k-1j-5j").7s("<2b/>").7s("<2b/>"),D=(4.8Z=C.1r()).1g("k-1j-aO").t({12:"1t",v:"4h%",11:"4h%"}),F=(4.6B=B("<2b/>")).1g("k-1j-4J").7Y(\'<a 2t="#" 54="k-1j-4J-3I"><5r>X</5r></a>\').86(D),J=I.2X||"&8W;",G=B.k.1j.8g(4.u),H=B("<5r/>").1g("k-1j-2X").29("4I",G).3a(J).86(F),K=(4.1M=D.1r()).1R(1c.1B).2e().1g("k-1j").1g(I.aH).1g(C.29("7E")).1y("k-1j-5j").t({12:"1F",v:I.v,11:I.11,2n:"3Z",1P:I.1P}).29("98",-1).t("bd",0).6d(6(M){(I.7O&&M.30&&M.30==B.30.7B&&L.3I())}).5q(6(){L.6m()}),E=(4.9M=B("<2b/>")).1g("k-1j-aX").t({12:"1F",2o:0}).1R(K);4.b1=B(".k-1j-4J-3I",F).6p(6(){B(4).1g("k-1j-4J-3I-6p")},6(){B(4).1y("k-1j-4J-3I-6p")}).5q(6(M){M.9S()}).1A(6(){L.3I();p 15});F.3A("*").1x(F).1o(6(){B.k.4u(4)});(I.1l&&B.4n.1l&&4.7v());(I.14&&B.4n.14&&4.6K());4.7n(I.7c);4.52=15;(I.3K&&B.4n.3K&&K.3K());(I.8k&&4.7y())},24:6(){(4.1w&&4.1w.24());4.1M.2e();4.u.1Z(".1j").3r("1j").1y("k-1j-5j").2e().1R("1B");4.1M.2a();(4.6q&&4.u.29("2X",4.6q))},3I:6(){5(15===4.2v("bg",1m,{l:4.l})){p}(4.1w&&4.1w.24());4.1M.2e(4.l.2e).1Z("6n.k-1j");4.2v("3I",1m,{l:4.l});B.k.1j.1w.1p();4.52=15},89:6(){p 4.52},7y:6(){5(4.52){p}4.1w=4.l.5t?5n B.k.1j.1w(4):1m;(4.1M.6W().1d&&4.1M.1R("1B"));4.82(4.l.12);4.1M.2R(4.l.2R);(4.l.6t&&4.6o());4.6m(1f);(4.l.5t&&4.1M.1I("6n.k-1j",6(E){5(E.30!=B.30.6s){p}j D=B(":7m",4),F=D.2u(":7w")[0],C=D.2u(":8d")[0];5(E.3B==C&&!E.4K){3n(6(){F.3F()},1)}1e{5(E.3B==F&&E.4K){3n(6(){C.3F()},1)}}}));4.1M.3A(":7m:7w").3F();4.2v("7y",1m,{l:4.l});4.52=1f},7n:6(F){j C=4,E=15,D=4.9M;D.7t().2e();B.1o(F,6(){p!(E=1f)});5(E){D.2R();B.1o(F,6(G,H){B(\'<4F 6u="4F"></4F>\').ca(G).1A(6(){H.1G(C.u[0],1Y)}).1R(D)})}},7v:6(){j C=4,D=4.l;4.1M.1l({4s:".k-1j-5j",19:D.bV,1U:".k-1j-4J",2c:6(){C.6m();(D.6P&&D.6P.1G(C.u[0],1Y))},2s:6(){(D.2s&&D.2s.1G(C.u[0],1Y))},1X:6(){(D.6Y&&D.6Y.1G(C.u[0],1Y));B.k.1j.1w.1p()}})},6K:6(F){F=(F===2W?4.l.14:F);j C=4,E=4.l,D=1S F=="2O"?F:"n,e,s,w,2f,2d,2j,2i";4.1M.14({4s:".k-1j-5j",19:E.cj,4a:E.4a,3x:E.3x,3q:E.3q,3s:E.3s,2c:6(){(E.6F&&E.6F.1G(C.u[0],1Y))},1p:6(){(E.6t&&C.6o.1G(C));(E.1p&&E.1p.1G(C.u[0],1Y))},26:D,1X:6(){(E.6t&&C.6o.1G(C));(E.6A&&E.6A.1G(C.u[0],1Y));B.k.1j.1w.1p()}})},6m:6(E){5((4.l.5t&&!E)||(!4.l.4c&&!4.l.5t)){p 4.2v("3F",1m,{l:4.l})}j D=4.l.1P,C=4.l;B(".k-1j:2l").1o(6(){D=1C.28(D,1k(B(4).t("z-2k"),10)||C.1P)});(4.1w&&4.1w.$7X.t("z-2k",++D));4.1M.t("z-2k",++D);4.2v("3F",1m,{l:4.l})},82:6(H){j D=B(2w),F=B(1c),G=F.1H(),C=F.22(),E=G;5(B.4C(H,["5s","o","2q","2o","m"])>=0){H=[H=="2q"||H=="m"?H:"5s",H=="o"||H=="2o"?H:"6L"]}5(H.4G!=6C){H=["5s","6L"]}5(H[0].4G==8I){C+=H[0]}1e{5e(H[0]){1D"m":C+=0;1J;1D"2q":C+=D.v()-4.1M.v();1J;47:1D"5s":C+=(D.v()-4.1M.v())/2}}5(H[1].4G==8I){G+=H[1]}1e{5e(H[1]){1D"o":G+=0;1J;1D"2o":G+=D.11()-4.1M.11();1J;47:1D"6L":G+=(D.11()-4.1M.11())/2}}G=1C.28(G,E);4.1M.t({o:G,m:C})},3C:6(C,E){(A[C]&&4.1M.1b(A[C],E));5e(C){1D"7c":4.7n(E);1J;1D"1l":(E?4.7v():4.1M.1l("24"));1J;1D"11":4.1M.11(E);1J;1D"12":4.82(E);1J;1D"14":j D=4.1M,F=4.1M.3L(":1b(14)");(F&&!E&&D.14("24"));(F&&1S E=="2O"&&D.14("7M","26",E));(F||4.6K(E));1J;1D"2X":B(".k-1j-2X",4.6B).3a(E||"&8W;");1J;1D"v":4.1M.v(E);1J}B.2F.3O.3C.1G(4,1Y)},6o:6(){j F=4.8Z,D=4.6B,E=4.u,C=(1k(E.t("4f-o"),10)||0)+(1k(E.t("4f-2o"),10)||0),G=(1k(E.t("4f-m"),10)||0)+(1k(E.t("4f-2q"),10)||0);E.11(F.11()-D.3E()-C);E.v(F.v()-G)}});B.1u(B.k.1j,{2J:{8k:1f,6t:1f,3K:15,7c:{},7O:1f,1l:1f,11:8N,3s:4h,3q:8R,5t:15,1w:{},12:"5s",14:1f,4c:1f,v:bw,1P:6w},7P:"89",85:0,8g:6(C){p"k-1j-2X-"+(C.29("4I")||++4.85)},1w:6(C){4.$7X=B.k.1j.1w.9A(C)}});B.1u(B.k.1j.1w,{4H:[],9r:B.4O("3F,5q,6r,6d,6n,1A".48(","),6(C){p C+".1j-1w"}).4A(" "),9A:6(C){5(4.4H.1d===0){3n(6(){B("a, :4m").1I(B.k.1j.1w.9r,6(){j E=15;j H=B(4).5v(".k-1j");5(H.1d){j G=B(".k-1j-1w");5(G.1d){j F=1k(G.t("z-2k"),10);G.1o(6(){F=1C.28(F,1k(B(4).t("z-2k"),10))});E=1k(H.t("z-2k"),10)>F}1e{E=1f}}p E})},1);B(1c).1I("6d.1j-1w",6(E){(C.l.7O&&E.30&&E.30==B.30.7B&&C.3I())});B(2w).1I("1p.1j-1w",B.k.1j.1w.1p)}j D=B("<2b/>").1R(1c.1B).1g("k-1j-1w").t(B.1u({aC:0,4f:0,5M:0,12:"1F",o:0,m:0,v:4.v(),11:4.11()},C.l.1w));(C.l.3K&&B.4n.3K&&D.3K());4.4H.3l(D);p D},24:6(C){4.4H.7i(B.4C(4.4H,C),1);5(4.4H.1d===0){B("a, :4m").1x([1c,2w]).1Z(".1j-1w")}C.2a()},11:6(){5(B.1v.2r&&B.1v.5y<7){j D=1C.28(1c.5I.3k,1c.1B.3k);j C=1C.28(1c.5I.2E,1c.1B.2E);5(D<C){p B(2w).11()+"1T"}1e{p D+"1T"}}1e{5(B.1v.4D){p 1C.28(2w.5L,B(1c).11())+"1T"}1e{p B(1c).11()+"1T"}}},v:6(){5(B.1v.2r&&B.1v.5y<7){j C=1C.28(1c.5I.5K,1c.1B.5K);j D=1C.28(1c.5I.41,1c.1B.41);5(C<D){p B(2w).v()+"1T"}1e{p C+"1T"}}1e{5(B.1v.4D){p 1C.28(2w.7r,B(1c).v())+"1T"}1e{p B(1c).v()+"1T"}}},1p:6(){j C=B([]);B.1o(B.k.1j.1w.4H,6(){C=C.1x(4)});C.t({v:0,11:0}).t({v:B.k.1j.1w.v(),11:B.k.1j.1w.11()})}});B.1u(B.k.1j.1w.3O,{24:6(){B.k.1j.1w.24(4.$7X)}})})(4l);(6(A){A.2F("k.1a",{3X:6(){4.l.3N+=".1a";4.5z(1f)},3C:6(B,C){5((/^1z/).1i(B)){4.3V(C)}1e{4.l[B]=C;4.5z()}},1d:6(){p 4.$1a.1d},7G:6(B){p B.2X&&B.2X.4b(/\\s/g,"7I").4b(/[^A-bf-a0-9\\-7I:\\.]/g,"")||4.l.93+A.1b(B)},k:6(C,B){p{l:4.l,am:C,8r:B,2k:4.$1a.2k(C)}},5z:6(P){4.$1V=A("4z:al(a[2t])",4.u);4.$1a=4.$1V.4O(6(){p A("a",4)[0]});4.$1Q=A([]);j O=4,E=4.l;4.$1a.1o(6(R,Q){5(Q.3Q&&Q.3Q.4b("#","")){O.$1Q=O.$1Q.1x(Q.3Q)}1e{5(A(Q).29("2t")!="#"){A.1b(Q,"2t.1a",Q.2t);A.1b(Q,"2z.1a",Q.2t);j T=O.7G(Q);Q.2t="#"+T;j S=A("#"+T);5(!S.1d){S=A(E.6x).29("4I",T).1g(E.5x).ar(O.$1Q[R-1]||O.u);S.1b("24.1a",1f)}O.$1Q=O.$1Q.1x(S)}1e{E.1q.3l(R+1)}}});5(P){4.u.1g(E.6y);4.$1Q.1o(6(){j Q=A(4);Q.1g(E.5x)});5(E.1z===2W){5(6R.3Q){4.$1a.1o(6(T,Q){5(Q.3Q==6R.3Q){E.1z=T;5(A.1v.2r||A.1v.4D){j S=A(6R.3Q),R=S.29("4I");S.29("4I","");3n(6(){S.29("4I",R)},9u)}cm(0,0);p 15}})}1e{5(E.3J){j I=1k(A.3J("k-1a-"+A.1b(O.u[0])),10);5(I&&O.$1a[I]){E.1z=I}}1e{5(O.$1V.2u("."+E.2g).1d){E.1z=O.$1V.2k(O.$1V.2u("."+E.2g)[0])}}}}E.1z=E.1z===1m||E.1z!==2W?E.1z:0;E.1q=A.cn(E.1q.9c(A.4O(4.$1V.2u("."+E.4y),6(R,Q){p O.$1V.2k(R)}))).6N();5(A.4C(E.1z,E.1q)!=-1){E.1q.7i(A.4C(E.1z,E.1q),1)}4.$1Q.1g(E.42);4.$1V.1y(E.2g);5(E.1z!==1m){4.$1Q.3d(E.1z).2R().1y(E.42);4.$1V.3d(E.1z).1g(E.2g);j B=6(){O.2v("2R",1m,O.k(O.$1a[E.1z],O.$1Q[E.1z]))};5(A.1b(4.$1a[E.1z],"2z.1a")){4.2z(E.1z,B)}1e{B()}}A(2w).1I("bE",6(){O.$1a.1Z(".1a");O.$1V=O.$1a=O.$1Q=1m})}1e{E.1z=4.$1V.2k(4.$1V.2u("."+E.2g)[0])}5(E.3J){A.3J("k-1a-"+A.1b(O.u[0]),E.1z,E.3J)}2m(j H=0,N;N=4.$1V[H];H++){A(N)[A.4C(H,E.1q)!=-1&&!A(N).4P(E.2g)?"1g":"1y"](E.4y)}5(E.4o===15){4.$1a.3r("4o.1a")}j J,D,K={"5u-v":0,5U:1},F="bB";5(E.4U&&E.4U.4G==6C){J=E.4U[0]||K,D=E.4U[1]||K}1e{J=D=E.4U||K}j C={2I:"",2n:"",11:""};5(!A.1v.2r){C.2Q=""}6 M(R,Q,S){Q.3f(J,J.5U||F,6(){Q.1g(E.42).t(C);5(A.1v.2r&&J.2Q){Q[0].2G.2u=""}5(S){L(R,S,Q)}})}6 L(R,S,Q){5(D===K){S.t("2I","4B")}S.3f(D,D.5U||F,6(){S.1y(E.42).t(C);5(A.1v.2r&&D.2Q){S[0].2G.2u=""}O.2v("2R",1m,O.k(R,S[0]))})}6 G(R,T,Q,S){T.1g(E.2g).bR().1y(E.2g);M(R,Q,S)}4.$1a.1Z(".1a").1I(E.3N,6(){j T=A(4).5v("4z:3d(0)"),Q=O.$1Q.2u(":2l"),S=A(4.3Q);5((T.4P(E.2g)&&!E.62)||T.4P(E.4y)||A(4).4P(E.43)||O.2v("3V",1m,O.k(4,S[0]))===15){4.5w();p 15}O.l.1z=O.$1a.2k(4);5(E.62){5(T.4P(E.2g)){O.l.1z=1m;T.1y(E.2g);O.$1Q.1X();M(4,Q);4.5w();p 15}1e{5(!Q.1d){O.$1Q.1X();j R=4;O.2z(O.$1a.2k(4),6(){T.1g(E.2g).1g(E.6J);L(R,S)});4.5w();p 15}}}5(E.3J){A.3J("k-1a-"+A.1b(O.u[0]),O.l.1z,E.3J)}O.$1Q.1X();5(S.1d){j R=4;O.2z(O.$1a.2k(4),Q.1d?6(){G(R,T,Q,S)}:6(){T.1g(E.2g);L(R,S)})}1e{bT"4l bu c1: bX c5 cg."}5(A.1v.2r){4.5w()}p 15});5(!(/^1A/).1i(E.3N)){4.$1a.1I("1A.1a",6(){p 15})}},1x:6(E,D,C){5(C==2W){C=4.$1a.1d}j G=4.l;j I=A(G.90.4b(/#\\{2t\\}/g,E).4b(/#\\{5Y\\}/g,D));I.1b("24.1a",1f);j H=E.92("#")==0?E.4b("#",""):4.7G(A("a:7w-cl",I)[0]);j F=A("#"+H);5(!F.1d){F=A(G.6x).29("4I",H).1g(G.42).1b("24.1a",1f)}F.1g(G.5x);5(C>=4.$1V.1d){I.1R(4.u);F.1R(4.u[0].2P)}1e{I.88(4.$1V[C]);F.88(4.$1Q[C])}G.1q=A.4O(G.1q,6(K,J){p K>=C?++K:K});4.5z();5(4.$1a.1d==1){I.1g(G.2g);F.1y(G.42);j B=A.1b(4.$1a[0],"2z.1a");5(B){4.2z(C,B)}}4.2v("1x",1m,4.k(4.$1a[C],4.$1Q[C]))},2a:6(B){j D=4.l,E=4.$1V.3d(B).2a(),C=4.$1Q.3d(B).2a();5(E.4P(D.2g)&&4.$1a.1d>1){4.3V(B+(B+1<4.$1a.1d?1:-1))}D.1q=A.4O(A.8c(D.1q,6(G,F){p G!=B}),6(G,F){p G>=B?--G:G});4.5z();4.2v("2a",1m,4.k(E.3A("a")[0],C[0]))},6I:6(B){j C=4.l;5(A.4C(B,C.1q)==-1){p}j D=4.$1V.3d(B).1y(C.4y);5(A.1v.8a){D.t("2I","bi-4B");3n(6(){D.t("2I","4B")},0)}C.1q=A.8c(C.1q,6(F,E){p F!=B});4.2v("6I",1m,4.k(4.$1a[B],4.$1Q[B]))},6S:6(C){j B=4,D=4.l;5(C!=D.1z){4.$1V.3d(C).1g(D.4y);D.1q.3l(C);D.1q.6N();4.2v("6S",1m,4.k(4.$1a[C],4.$1Q[C]))}},3V:6(B){5(1S B=="2O"){B=4.$1a.2k(4.$1a.2u("[2t$="+B+"]")[0])}4.$1a.3d(B).4t(4.l.3N)},2z:6(G,K){j L=4,D=4.l,E=4.$1a.3d(G),J=E[0],H=K==2W||K===15,B=E.1b("2z.1a");K=K||6(){};5(!B||!H&&A.1b(J,"4o.1a")){K();p}j M=6(N){j O=A(N),P=O.3A("*:8d");p P.1d&&P.3L(":8h(87)")&&P||O};j C=6(){L.$1a.2u("."+D.43).1y(D.43).1o(6(){5(D.6g){M(4).1r().3a(M(4).1b("5Y.1a"))}});L.6i=1m};5(D.6g){j I=M(J).3a();M(J).bC("<77></77>").3A("77").1b("5Y.1a",I).3a(D.6g)}j F=A.1u({},D.67,{3R:B,69:6(O,N){A(J.3Q).3a(O);C();5(D.4o){A.1b(J,"4o.1a",1f)}L.2v("2z",1m,L.k(L.$1a[G],L.$1Q[G]));D.67.69&&D.67.69(O,N);K()}});5(4.6i){4.6i.8J();C()}E.1g(D.43);3n(6(){L.6i=A.8K(F)},0)},3R:6(C,B){4.$1a.3d(C).3r("4o.1a").1b("2z.1a",B)},24:6(){j B=4.l;4.u.1Z(".1a").1y(B.6y).3r("1a");4.$1a.1o(6(){j C=A.1b(4,"2t.1a");5(C){4.2t=C}j D=A(4).1Z(".1a");A.1o(["2t","2z","4o"],6(F,E){D.3r(E+".1a")})});4.$1V.1x(4.$1Q).1o(6(){5(A.1b(4,"24.1a")){A(4).2a()}1e{A(4).1y([B.2g,B.6J,B.4y,B.5x,B.42].4A(" "))}})}});A.k.1a.2J={62:15,3N:"1A",1q:[],3J:1m,6g:"cp&#c0;",4o:15,93:"k-1a-",67:{},4U:1m,90:\'<4z><a 2t="#{2t}"><5r>#{5Y}</5r></a></4z>\',6x:"<2b></2b>",6y:"k-1a-at",2g:"k-1a-1z",6J:"k-1a-62",4y:"k-1a-1q",5x:"k-1a-8r",42:"k-1a-2e",43:"k-1a-8u"};A.k.1a.7P="1d";A.1u(A.k.1a.3O,{7S:1m,9N:6(C,F){F=F||15;j B=4,E=4.l.1z;6 G(){B.7S=9X(6(){E=++E<B.$1a.1d?E:0;B.3V(E)},C)}6 D(H){5(!H||H.av){b2(B.7S)}}5(C){G();5(!F){4.$1a.1I(4.l.3N,D)}1e{4.$1a.1I(4.l.3N,6(){D();E=B.l.1z;G()})}}1e{D();4.$1a.1Z(4.l.3N,D)}}})})(4l);',62,771,'||||this|if|function|||||||||||||var|ui|options|left||top|return||||css|element|width||||||||||||||||||||||||||||||||height|position||resizable|false|||offset|helper|tabs|data|document|length|else|true|addClass|size|test|dialog|parseInt|draggable|null|instance|each|resize|disabled|parent|containment|relative|extend|browser|overlay|add|removeClass|selected|click|body|Math|case|cursor|absolute|apply|scrollTop|bind|break|call|0px|uiDialog|ddmanager|plugin|zIndex|panels|appendTo|typeof|px|handle|lis|grid|stop|arguments|unbind||helperProportions|scrollLeft|originalPosition|destroy||handles||max|attr|remove|div|start|sw|hide|se|selectedClass|autocomplete|nw|ne|index|visible|for|overflow|bottom|auto|right|msie|drag|href|filter|_trigger|window|currentItem|positionAbs|load|_propagate|scroll|ghost|margins|offsetHeight|widget|style|get|display|defaults|accept|snapElements|triggerHandler|droppable|string|parentNode|opacity|show|axis|4px|Autocompleter|cssPosition|undefined|title|originalSize|ACTIVE|keyCode|tagName|||||||||html|_convertPositionTo|alsoResize|eq|aspectRatio|animate|overflowY|result|isover|overflowX|scrollHeight|push|snap|setTimeout|value|pageY|minWidth|removeData|minHeight|scrollSpeed|offsetParent|scrollSensitivity|val|maxHeight|_change|abs|find|target|_setData|pageX|outerHeight|focus|toLowerCase|delay|close|cookie|bgiframe|is|fixed|event|prototype|knobHandles|hash|url|_mouseStarted|proportionallyResize|outerWidth|select|scope|_init|revert|hidden||offsetWidth|hideClass|loadingClass|current|||default|split|droppables|maxWidth|replace|stack|0pt|scrollTopParent|margin|scrollLeftParent|100|sizeDiff|isout|multipleSeparator|jQuery|input|fn|cache|widgetName|preventDefault|continue|cancel|trigger|disableSelection|_mouseDrag|plugins|drop|disabledClass|li|join|block|inArray|opera|slice|button|constructor|instances|id|titlebar|shiftKey|borderDif|_handles|_mouseStop|map|hasClass|none|intersect|isOver|cssNamespace|fx|parentData|_mouseStart|nodeName|while|isFunction|proportions|marginRight|_isOpen|cancelHelperRemoval|class|unselectable|cssCache|_mouseUp|iframeFix|uiHash|marginBottom|cacheLength|_proportionallyResize|hasScroll|switch|textarea|containerOffset|clone|trim|content|knob|multiple|_mouseCapture|new|_aspectRatio|in|mousedown|span|center|modal|min|parents|blur|panelClass|version|_tabify|static|round|borderLeftWidth|distance|transparent|containerPosition|containerSize|search|documentElement|highlight|scrollWidth|innerHeight|padding|mouseDownOnSelect|over|parse|borderTopWidth|matchCase|formatMatch|formatResult|duration|marginLeft|item|sortables|label|absolutePosition|dragging|snapping|unselect|_mouseDownEvent|mouseDelayMet|do|HTML|ajaxOptions|clickOffset|success|activeClass|hoverClass|mouse|keydown|deactivate|activate|spinner|prepareOffsets|xhr|tolerance|marginTop|resizing|_moveToTop|keypress|_size|hover|originalTitle|mouseup|TAB|autoResize|type|_helper|1000|panelTemplate|navClass|removeChild|resizeStop|uiDialogTitlebar|Array|COMMA|_mouseDestroy|resizeStart|DOWN|sortable|enable|unselectClass|_makeResizable|middle|_updateCache|sort|UP|dragStart|wrapper|location|disable|knobTheme|clearTimeout|borderRight|next|borderBottom|dragStop|BACKSPACE|borderLeft|1px|flushCache|background|borderTop|out|String|em|source|_mouseInit|alsoresize|originalElement|buttons|autohide|_over|_out|_nodeName|match|splice|matchContains|selectFirst|preserveCursor|tabbable|_createButtons|widgetEventPrefix|documentScroll|cacheHelperProportions|innerWidth|wrap|empty|_mouseDelayMet|_makeDraggable|first|elementOffset|open|containerElement|Selection|ESCAPE|_mouseDistanceMet|_mouseUpDelegate|className|_mouseMoveDelegate|_tabId|_getData|_|_opacity|_zIndex|_cursor|option|overflowYOffset|closeOnEscape|getter|overflowXOffset|minChars|rotation|original|PAGEX_INCLUDES_SCROLL|OFFSET_PARENT_NOT_SCROLL_PARENT_Y|PAGEY_INCLUDES_SCROLL|el|append|OFFSET_PARENT_NOT_SCROLL_PARENT_X|formatItem|_generatePosition|_position|_clear|autoHide|uuid|prependTo|img|insertBefore|isOpen|safari|originalMousePosition|grep|last|_updateRatio|_renderAxis|getTitleId|not|_respectSize|_renderProxy|autoOpen|adjustOffsetFromHelper|cacheScrollParents|cursorAt|createHelper|setContainment|dropBehaviour|panel|snapMode|release|loading|getHandle|mousemove|5000px|widgetBaseClass|getterSetter|metadata|MozUserSelect|selectstart|_mouseMove|_mouseDown|_mouseUnselectable|on|snapItem|Number|abort|ajax|_deactivate|_drop|200|greedy|solid|F2F2F2|150|greedyChild|_activate|droppablesLoop|placeholder|nbsp|shouldRevert|connectToSortable|uiDialogContainer|tabTemplate|andSelf|indexOf|idPrefix|8px|defaultTheme|unautocomplete|setOptions|tabIndex|form|DEL|pageDown|concat|substring|ESC|PAGEDOWN|setSelectionRange|188|selectionStart|character|off|emptyList|PAGEUP|createTextRange|pageUp|prev|extraParams|events|mustMatch|autoFill|500|Cache|strong|gi|flush|populate|create|LI|dataType|mouseover|resultsClass|matchSubset|inputClass|Select|setData|RETURN|number|object|uiDialogButtonPane|rotate|ul|valid|107|NUMPAD_ADD|stopPropagation|substr|snapTolerance|items|LEFT|setInterval|001|toUpperCase|z0|110|clientHeight|iframe|NUMPAD_DECIMAL|inner|fff|revertDuration|NUMPAD_DIVIDE|HOME|CAPS_LOCK|sender|sortreceive|charAt|receive|containerCache|visibility|dir|expr|_refreshItems|CONTROL|has|tab|outer|invalid|ENTER|END|insertAfter|DELETE|nav|INSERT|clientX|which|collapse|moveStart|started|getData|_mouseDelayTimer|borderWidth|SHIFT|SPACE|eventPrefix|moveEnd|dialogClass|backgroundImage|removeAttr|gen|fix|rgba|backgroundColor|container|enableSelection|catch|try|RIGHT|autocompleteshow|NUMPAD_ENTER|108|autocompletehide|buttonpane|111|odd|selectionEnd|uiDialogTitlebarClose|clearInterval|even|mozilla|NUMPAD_MULTIPLY|PAGE_UP|PERIOD|190|180|PAGE_DOWN|109|106|outline|NUMPAD_SUBTRACT|Za|beforeclose|easing|inline|Date|timestamp|animateEasing|DEDEDE|swing|proxy|slow|animateDuration|name|borderRightWidth|limit|UI|Bottom|300|mode|port|fontSize|step|normal|wrapInner|all|unload|key|Top|Right|Left|zoom|children|toSortable|end|border|808080|canvas|submit|siblings|borderBottomWidth|throw|touch|dragHelper|group|Mismatching|makeArray|dragstart|8230|Tabs|dropover|results|dropactivate|fragment|400|fit|dropout|pointer|text|sortactivate|fromSortable|instanceof|dropdeactivate|RegExp|identifier|refreshPositions|paddingBottom|resizeHelper|paddingLeft|child|scrollTo|unique|paddingTop|Loading|paddingRight'.split('|'),0,{})) diff --git a/modules/rearrange/helpers/rearrange_block.php b/modules/rearrange/helpers/rearrange_block.php index 7695b4f1..fad891c8 100644 --- a/modules/rearrange/helpers/rearrange_block.php +++ b/modules/rearrange/helpers/rearrange_block.php @@ -19,7 +19,7 @@ */ class rearrange_block_Core { public static function head($theme) { - $head[] = html::script("modules/rearrange/js/jquery-ui-core-draggable-droppable-1.5.2.js"); + $head[] = html::script("lib/jquery-ui.packed.js"); $head[] = html::script("modules/rearrange/js/jquery.gallery.rearrange.tree.js"); $url = url::file("modules/rearrange/css/rearrange.css"); diff --git a/modules/rearrange/js/jquery-ui-core-draggable-droppable-1.5.2.js b/modules/rearrange/js/jquery-ui-core-draggable-droppable-1.5.2.js deleted file mode 100644 index 445396e4..00000000 --- a/modules/rearrange/js/jquery-ui-core-draggable-droppable-1.5.2.js +++ /dev/null @@ -1,1134 +0,0 @@ -/* - * jQuery UI @VERSION - * - * Copyright (c) 2008 Paul Bakaus (ui.jquery.com) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI - */ -;(function($) { - -$.ui = { - plugin: { - add: function(module, option, set) { - var proto = $.ui[module].prototype; - for(var i in set) { - proto.plugins[i] = proto.plugins[i] || []; - proto.plugins[i].push([option, set[i]]); - } - }, - call: function(instance, name, args) { - var set = instance.plugins[name]; - if(!set) { return; } - - for (var i = 0; i < set.length; i++) { - if (instance.options[set[i][0]]) { - set[i][1].apply(instance.element, args); - } - } - } - }, - cssCache: {}, - css: function(name) { - if ($.ui.cssCache[name]) { return $.ui.cssCache[name]; } - var tmp = $('<div class="ui-gen">').addClass(name).css({position:'absolute', top:'-5000px', left:'-5000px', display:'block'}).appendTo('body'); - - //if (!$.browser.safari) - //tmp.appendTo('body'); - - //Opera and Safari set width and height to 0px instead of auto - //Safari returns rgba(0,0,0,0) when bgcolor is not set - $.ui.cssCache[name] = !!( - (!(/auto|default/).test(tmp.css('cursor')) || (/^[1-9]/).test(tmp.css('height')) || (/^[1-9]/).test(tmp.css('width')) || - !(/none/).test(tmp.css('backgroundImage')) || !(/transparent|rgba\(0, 0, 0, 0\)/).test(tmp.css('backgroundColor'))) - ); - try { $('body').get(0).removeChild(tmp.get(0)); } catch(e){} - return $.ui.cssCache[name]; - }, - disableSelection: function(el) { - $(el).attr('unselectable', 'on').css('MozUserSelect', 'none'); - }, - enableSelection: function(el) { - $(el).attr('unselectable', 'off').css('MozUserSelect', ''); - }, - hasScroll: function(e, a) { - var scroll = /top/.test(a||"top") ? 'scrollTop' : 'scrollLeft', has = false; - if (e[scroll] > 0) return true; e[scroll] = 1; - has = e[scroll] > 0 ? true : false; e[scroll] = 0; - return has; - } -}; - - -/** jQuery core modifications and additions **/ - -var _remove = $.fn.remove; -$.fn.remove = function() { - $("*", this).add(this).triggerHandler("remove"); - return _remove.apply(this, arguments ); -}; - -// $.widget is a factory to create jQuery plugins -// taking some boilerplate code out of the plugin code -// created by Scott González and Jörn Zaefferer -function getter(namespace, plugin, method) { - var methods = $[namespace][plugin].getter || []; - methods = (typeof methods == "string" ? methods.split(/,?\s+/) : methods); - return ($.inArray(method, methods) != -1); -} - -$.widget = function(name, prototype) { - var namespace = name.split(".")[0]; - name = name.split(".")[1]; - - // create plugin method - $.fn[name] = function(options) { - var isMethodCall = (typeof options == 'string'), - args = Array.prototype.slice.call(arguments, 1); - - if (isMethodCall && getter(namespace, name, options)) { - var instance = $.data(this[0], name); - return (instance ? instance[options].apply(instance, args) - : undefined); - } - - return this.each(function() { - var instance = $.data(this, name); - if (isMethodCall && instance && $.isFunction(instance[options])) { - instance[options].apply(instance, args); - } else if (!isMethodCall) { - $.data(this, name, new $[namespace][name](this, options)); - } - }); - }; - - // create widget constructor - $[namespace][name] = function(element, options) { - var self = this; - - this.widgetName = name; - this.widgetBaseClass = namespace + '-' + name; - - this.options = $.extend({}, $.widget.defaults, $[namespace][name].defaults, options); - this.element = $(element) - .bind('setData.' + name, function(e, key, value) { - return self.setData(key, value); - }) - .bind('getData.' + name, function(e, key) { - return self.getData(key); - }) - .bind('remove', function() { - return self.destroy(); - }); - this.init(); - }; - - // add widget prototype - $[namespace][name].prototype = $.extend({}, $.widget.prototype, prototype); -}; - -$.widget.prototype = { - init: function() {}, - destroy: function() { - this.element.removeData(this.widgetName); - }, - - getData: function(key) { - return this.options[key]; - }, - setData: function(key, value) { - this.options[key] = value; - - if (key == 'disabled') { - this.element[value ? 'addClass' : 'removeClass']( - this.widgetBaseClass + '-disabled'); - } - }, - - enable: function() { - this.setData('disabled', false); - }, - disable: function() { - this.setData('disabled', true); - } -}; - -$.widget.defaults = { - disabled: false -}; - - -/** Mouse Interaction Plugin **/ - -$.ui.mouse = { - mouseInit: function() { - var self = this; - - this.element.bind('mousedown.'+this.widgetName, function(e) { - return self.mouseDown(e); - }); - - // Prevent text selection in IE - if ($.browser.msie) { - this._mouseUnselectable = this.element.attr('unselectable'); - this.element.attr('unselectable', 'on'); - } - - this.started = false; - }, - - // TODO: make sure destroying one instance of mouse doesn't mess with - // other instances of mouse - mouseDestroy: function() { - this.element.unbind('.'+this.widgetName); - - // Restore text selection in IE - ($.browser.msie - && this.element.attr('unselectable', this._mouseUnselectable)); - }, - - mouseDown: function(e) { - // we may have missed mouseup (out of window) - (this._mouseStarted && this.mouseUp(e)); - - this._mouseDownEvent = e; - - var self = this, - btnIsLeft = (e.which == 1), - elIsCancel = (typeof this.options.cancel == "string" ? $(e.target).parents().add(e.target).filter(this.options.cancel).length : false); - if (!btnIsLeft || elIsCancel || !this.mouseCapture(e)) { - return true; - } - - this._mouseDelayMet = !this.options.delay; - if (!this._mouseDelayMet) { - this._mouseDelayTimer = setTimeout(function() { - self._mouseDelayMet = true; - }, this.options.delay); - } - - if (this.mouseDistanceMet(e) && this.mouseDelayMet(e)) { - this._mouseStarted = (this.mouseStart(e) !== false); - if (!this._mouseStarted) { - e.preventDefault(); - return true; - } - } - - // these delegates are required to keep context - this._mouseMoveDelegate = function(e) { - return self.mouseMove(e); - }; - this._mouseUpDelegate = function(e) { - return self.mouseUp(e); - }; - $(document) - .bind('mousemove.'+this.widgetName, this._mouseMoveDelegate) - .bind('mouseup.'+this.widgetName, this._mouseUpDelegate); - - return false; - }, - - mouseMove: function(e) { - // IE mouseup check - mouseup happened when mouse was out of window - if ($.browser.msie && !e.button) { - return this.mouseUp(e); - } - - if (this._mouseStarted) { - this.mouseDrag(e); - return false; - } - - if (this.mouseDistanceMet(e) && this.mouseDelayMet(e)) { - this._mouseStarted = - (this.mouseStart(this._mouseDownEvent, e) !== false); - (this._mouseStarted ? this.mouseDrag(e) : this.mouseUp(e)); - } - - return !this._mouseStarted; - }, - - mouseUp: function(e) { - $(document) - .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate) - .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate); - - if (this._mouseStarted) { - this._mouseStarted = false; - this.mouseStop(e); - } - - return false; - }, - - mouseDistanceMet: function(e) { - return (Math.max( - Math.abs(this._mouseDownEvent.pageX - e.pageX), - Math.abs(this._mouseDownEvent.pageY - e.pageY) - ) >= this.options.distance - ); - }, - - mouseDelayMet: function(e) { - return this._mouseDelayMet; - }, - - // These are placeholder methods, to be overriden by extending plugin - mouseStart: function(e) {}, - mouseDrag: function(e) {}, - mouseStop: function(e) {}, - mouseCapture: function(e) { return true; } -}; - -$.ui.mouse.defaults = { - cancel: null, - distance: 1, - delay: 0 -}; - -})(jQuery); -/* - * jQuery UI Draggable - * - * Copyright (c) 2008 Paul Bakaus - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI/Draggables - * - * Depends: - * ui.core.js - */ -(function($) { - -$.widget("ui.draggable", $.extend({}, $.ui.mouse, { - init: function() { - - //Initialize needed constants - var o = this.options; - - //Position the node - if (o.helper == 'original' && !(/(relative|absolute|fixed)/).test(this.element.css('position'))) - this.element.css('position', 'relative'); - - this.element.addClass('ui-draggable'); - (o.disabled && this.element.addClass('ui-draggable-disabled')); - - this.mouseInit(); - - }, - mouseStart: function(e) { - var o = this.options; - - if (this.helper || o.disabled || $(e.target).is('.ui-resizable-handle')) return false; - - var handle = !this.options.handle || !$(this.options.handle, this.element).length ? true : false; - - - $(this.options.handle, this.element).find("*").andSelf().each(function() { - if(this == e.target) handle = true; - }); - if (!handle) return false; - - if($.ui.ddmanager) $.ui.ddmanager.current = this; - - //Create and append the visible helper - this.helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [e])) : (o.helper == 'clone' ? this.element.clone() : this.element); - if(!this.helper.parents('body').length) this.helper.appendTo((o.appendTo == 'parent' ? this.element[0].parentNode : o.appendTo)); - if(this.helper[0] != this.element[0] && !(/(fixed|absolute)/).test(this.helper.css("position"))) this.helper.css("position", "absolute"); - - /* - * - Position generation - - * This block generates everything position related - it's the core of draggables. - */ - - this.margins = { //Cache the margins - left: (parseInt(this.element.css("marginLeft"),10) || 0), - top: (parseInt(this.element.css("marginTop"),10) || 0) - }; - - this.cssPosition = this.helper.css("position"); //Store the helper's css position - this.offset = this.element.offset(); //The element's absolute position on the page - this.offset = { //Substract the margins from the element's absolute offset - top: this.offset.top - this.margins.top, - left: this.offset.left - this.margins.left - }; - - this.offset.click = { //Where the click happened, relative to the element - left: e.pageX - this.offset.left, - top: e.pageY - this.offset.top - }; - - this.offsetParent = this.helper.offsetParent(); var po = this.offsetParent.offset(); //Get the offsetParent and cache its position - if(this.offsetParent[0] == document.body && $.browser.mozilla) po = { top: 0, left: 0 }; //Ugly FF3 fix - this.offset.parent = { //Store its position plus border - top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0), - left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0) - }; - - var p = this.element.position(); //This is a relative to absolute position minus the actual position calculation - only used for relative positioned helpers - this.offset.relative = this.cssPosition == "relative" ? { - top: p.top - (parseInt(this.helper.css("top"),10) || 0) + this.offsetParent[0].scrollTop, - left: p.left - (parseInt(this.helper.css("left"),10) || 0) + this.offsetParent[0].scrollLeft - } : { top: 0, left: 0 }; - - this.originalPosition = this.generatePosition(e); //Generate the original position - this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight() };//Cache the helper size - - if(o.cursorAt) { - if(o.cursorAt.left != undefined) this.offset.click.left = o.cursorAt.left + this.margins.left; - if(o.cursorAt.right != undefined) this.offset.click.left = this.helperProportions.width - o.cursorAt.right + this.margins.left; - if(o.cursorAt.top != undefined) this.offset.click.top = o.cursorAt.top + this.margins.top; - if(o.cursorAt.bottom != undefined) this.offset.click.top = this.helperProportions.height - o.cursorAt.bottom + this.margins.top; - } - - - /* - * - Position constraining - - * Here we prepare position constraining like grid and containment. - */ - - if(o.containment) { - if(o.containment == 'parent') o.containment = this.helper[0].parentNode; - if(o.containment == 'document' || o.containment == 'window') this.containment = [ - 0 - this.offset.relative.left - this.offset.parent.left, - 0 - this.offset.relative.top - this.offset.parent.top, - $(o.containment == 'document' ? document : window).width() - this.offset.relative.left - this.offset.parent.left - this.helperProportions.width - this.margins.left - (parseInt(this.element.css("marginRight"),10) || 0), - ($(o.containment == 'document' ? document : window).height() || document.body.parentNode.scrollHeight) - this.offset.relative.top - this.offset.parent.top - this.helperProportions.height - this.margins.top - (parseInt(this.element.css("marginBottom"),10) || 0) - ]; - - if(!(/^(document|window|parent)$/).test(o.containment)) { - var ce = $(o.containment)[0]; - var co = $(o.containment).offset(); - - this.containment = [ - co.left + (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.relative.left - this.offset.parent.left, - co.top + (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.relative.top - this.offset.parent.top, - co.left+Math.max(ce.scrollWidth,ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.relative.left - this.offset.parent.left - this.helperProportions.width - this.margins.left - (parseInt(this.element.css("marginRight"),10) || 0), - co.top+Math.max(ce.scrollHeight,ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.relative.top - this.offset.parent.top - this.helperProportions.height - this.margins.top - (parseInt(this.element.css("marginBottom"),10) || 0) - ]; - } - } - - //Call plugins and callbacks - this.propagate("start", e); - - this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight() };//Recache the helper size - if ($.ui.ddmanager && !o.dropBehaviour) $.ui.ddmanager.prepareOffsets(this, e); - - this.helper.addClass("ui-draggable-dragging"); - this.mouseDrag(e); //Execute the drag once - this causes the helper not to be visible before getting its correct position - return true; - }, - convertPositionTo: function(d, pos) { - if(!pos) pos = this.position; - var mod = d == "absolute" ? 1 : -1; - return { - top: ( - pos.top // the calculated relative position - + this.offset.relative.top * mod // Only for relative positioned nodes: Relative offset from element to offset parent - + this.offset.parent.top * mod // The offsetParent's offset without borders (offset + border) - - (this.cssPosition == "fixed" || (this.cssPosition == "absolute" && this.offsetParent[0] == document.body) ? 0 : this.offsetParent[0].scrollTop) * mod // The offsetParent's scroll position, not if the element is fixed - + (this.cssPosition == "fixed" ? $(document).scrollTop() : 0) * mod - + this.margins.top * mod //Add the margin (you don't want the margin counting in intersection methods) - ), - left: ( - pos.left // the calculated relative position - + this.offset.relative.left * mod // Only for relative positioned nodes: Relative offset from element to offset parent - + this.offset.parent.left * mod // The offsetParent's offset without borders (offset + border) - - (this.cssPosition == "fixed" || (this.cssPosition == "absolute" && this.offsetParent[0] == document.body) ? 0 : this.offsetParent[0].scrollLeft) * mod // The offsetParent's scroll position, not if the element is fixed - + (this.cssPosition == "fixed" ? $(document).scrollLeft() : 0) * mod - + this.margins.left * mod //Add the margin (you don't want the margin counting in intersection methods) - ) - }; - }, - generatePosition: function(e) { - - var o = this.options; - var position = { - top: ( - e.pageY // The absolute mouse position - - this.offset.click.top // Click offset (relative to the element) - - this.offset.relative.top // Only for relative positioned nodes: Relative offset from element to offset parent - - this.offset.parent.top // The offsetParent's offset without borders (offset + border) - + (this.cssPosition == "fixed" || (this.cssPosition == "absolute" && this.offsetParent[0] == document.body) ? 0 : this.offsetParent[0].scrollTop) // The offsetParent's scroll position, not if the element is fixed - - (this.cssPosition == "fixed" ? $(document).scrollTop() : 0) - ), - left: ( - e.pageX // The absolute mouse position - - this.offset.click.left // Click offset (relative to the element) - - this.offset.relative.left // Only for relative positioned nodes: Relative offset from element to offset parent - - this.offset.parent.left // The offsetParent's offset without borders (offset + border) - + (this.cssPosition == "fixed" || (this.cssPosition == "absolute" && this.offsetParent[0] == document.body) ? 0 : this.offsetParent[0].scrollLeft) // The offsetParent's scroll position, not if the element is fixed - - (this.cssPosition == "fixed" ? $(document).scrollLeft() : 0) - ) - }; - - if(!this.originalPosition) return position; //If we are not dragging yet, we won't check for options - - /* - * - Position constraining - - * Constrain the position to a mix of grid, containment. - */ - if(this.containment) { - if(position.left < this.containment[0]) position.left = this.containment[0]; - if(position.top < this.containment[1]) position.top = this.containment[1]; - if(position.left > this.containment[2]) position.left = this.containment[2]; - if(position.top > this.containment[3]) position.top = this.containment[3]; - } - - if(o.grid) { - var top = this.originalPosition.top + Math.round((position.top - this.originalPosition.top) / o.grid[1]) * o.grid[1]; - position.top = this.containment ? (!(top < this.containment[1] || top > this.containment[3]) ? top : (!(top < this.containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top; - - var left = this.originalPosition.left + Math.round((position.left - this.originalPosition.left) / o.grid[0]) * o.grid[0]; - position.left = this.containment ? (!(left < this.containment[0] || left > this.containment[2]) ? left : (!(left < this.containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left; - } - - return position; - }, - mouseDrag: function(e) { - - //Compute the helpers position - this.position = this.generatePosition(e); - this.positionAbs = this.convertPositionTo("absolute"); - - //Call plugins and callbacks and use the resulting position if something is returned - this.position = this.propagate("drag", e) || this.position; - - if(!this.options.axis || this.options.axis != "y") this.helper[0].style.left = this.position.left+'px'; - if(!this.options.axis || this.options.axis != "x") this.helper[0].style.top = this.position.top+'px'; - if($.ui.ddmanager) $.ui.ddmanager.drag(this, e); - - return false; - }, - mouseStop: function(e) { - - //If we are using droppables, inform the manager about the drop - var dropped = false; - if ($.ui.ddmanager && !this.options.dropBehaviour) - var dropped = $.ui.ddmanager.drop(this, e); - - if((this.options.revert == "invalid" && !dropped) || (this.options.revert == "valid" && dropped) || this.options.revert === true) { - var self = this; - $(this.helper).animate(this.originalPosition, parseInt(this.options.revert, 10) || 500, function() { - self.propagate("stop", e); - self.clear(); - }); - } else { - this.propagate("stop", e); - this.clear(); - } - - return false; - }, - clear: function() { - this.helper.removeClass("ui-draggable-dragging"); - if(this.options.helper != 'original' && !this.cancelHelperRemoval) this.helper.remove(); - //if($.ui.ddmanager) $.ui.ddmanager.current = null; - this.helper = null; - this.cancelHelperRemoval = false; - }, - - // From now on bulk stuff - mainly helpers - plugins: {}, - uiHash: function(e) { - return { - helper: this.helper, - position: this.position, - absolutePosition: this.positionAbs, - options: this.options - }; - }, - propagate: function(n,e) { - $.ui.plugin.call(this, n, [e, this.uiHash()]); - if(n == "drag") this.positionAbs = this.convertPositionTo("absolute"); //The absolute position has to be recalculated after plugins - return this.element.triggerHandler(n == "drag" ? n : "drag"+n, [e, this.uiHash()], this.options[n]); - }, - destroy: function() { - if(!this.element.data('draggable')) return; - this.element.removeData("draggable").unbind(".draggable").removeClass('ui-draggable'); - this.mouseDestroy(); - } -})); - -$.extend($.ui.draggable, { - defaults: { - appendTo: "parent", - axis: false, - cancel: ":input", - delay: 0, - distance: 1, - helper: "original" - } -}); - -$.ui.plugin.add("draggable", "cursor", { - start: function(e, ui) { - var t = $('body'); - if (t.css("cursor")) ui.options._cursor = t.css("cursor"); - t.css("cursor", ui.options.cursor); - }, - stop: function(e, ui) { - if (ui.options._cursor) $('body').css("cursor", ui.options._cursor); - } -}); - -$.ui.plugin.add("draggable", "zIndex", { - start: function(e, ui) { - var t = $(ui.helper); - if(t.css("zIndex")) ui.options._zIndex = t.css("zIndex"); - t.css('zIndex', ui.options.zIndex); - }, - stop: function(e, ui) { - if(ui.options._zIndex) $(ui.helper).css('zIndex', ui.options._zIndex); - } -}); - -$.ui.plugin.add("draggable", "opacity", { - start: function(e, ui) { - var t = $(ui.helper); - if(t.css("opacity")) ui.options._opacity = t.css("opacity"); - t.css('opacity', ui.options.opacity); - }, - stop: function(e, ui) { - if(ui.options._opacity) $(ui.helper).css('opacity', ui.options._opacity); - } -}); - -$.ui.plugin.add("draggable", "iframeFix", { - start: function(e, ui) { - $(ui.options.iframeFix === true ? "iframe" : ui.options.iframeFix).each(function() { - $('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>') - .css({ - width: this.offsetWidth+"px", height: this.offsetHeight+"px", - position: "absolute", opacity: "0.001", zIndex: 1000 - }) - .css($(this).offset()) - .appendTo("body"); - }); - }, - stop: function(e, ui) { - $("div.DragDropIframeFix").each(function() { this.parentNode.removeChild(this); }); //Remove frame helpers - } -}); - -$.ui.plugin.add("draggable", "scroll", { - start: function(e, ui) { - var o = ui.options; - var i = $(this).data("draggable"); - o.scrollSensitivity = o.scrollSensitivity || 20; - o.scrollSpeed = o.scrollSpeed || 20; - - i.overflowY = function(el) { - do { if(/auto|scroll/.test(el.css('overflow')) || (/auto|scroll/).test(el.css('overflow-y'))) return el; el = el.parent(); } while (el[0].parentNode); - return $(document); - }(this); - i.overflowX = function(el) { - do { if(/auto|scroll/.test(el.css('overflow')) || (/auto|scroll/).test(el.css('overflow-x'))) return el; el = el.parent(); } while (el[0].parentNode); - return $(document); - }(this); - - if(i.overflowY[0] != document && i.overflowY[0].tagName != 'HTML') i.overflowYOffset = i.overflowY.offset(); - if(i.overflowX[0] != document && i.overflowX[0].tagName != 'HTML') i.overflowXOffset = i.overflowX.offset(); - - }, - drag: function(e, ui) { - - var o = ui.options; - var i = $(this).data("draggable"); - - if(i.overflowY[0] != document && i.overflowY[0].tagName != 'HTML') { - if((i.overflowYOffset.top + i.overflowY[0].offsetHeight) - e.pageY < o.scrollSensitivity) - i.overflowY[0].scrollTop = i.overflowY[0].scrollTop + o.scrollSpeed; - if(e.pageY - i.overflowYOffset.top < o.scrollSensitivity) - i.overflowY[0].scrollTop = i.overflowY[0].scrollTop - o.scrollSpeed; - - } else { - if(e.pageY - $(document).scrollTop() < o.scrollSensitivity) - $(document).scrollTop($(document).scrollTop() - o.scrollSpeed); - if($(window).height() - (e.pageY - $(document).scrollTop()) < o.scrollSensitivity) - $(document).scrollTop($(document).scrollTop() + o.scrollSpeed); - } - - if(i.overflowX[0] != document && i.overflowX[0].tagName != 'HTML') { - if((i.overflowXOffset.left + i.overflowX[0].offsetWidth) - e.pageX < o.scrollSensitivity) - i.overflowX[0].scrollLeft = i.overflowX[0].scrollLeft + o.scrollSpeed; - if(e.pageX - i.overflowXOffset.left < o.scrollSensitivity) - i.overflowX[0].scrollLeft = i.overflowX[0].scrollLeft - o.scrollSpeed; - } else { - if(e.pageX - $(document).scrollLeft() < o.scrollSensitivity) - $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed); - if($(window).width() - (e.pageX - $(document).scrollLeft()) < o.scrollSensitivity) - $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed); - } - - } -}); - -$.ui.plugin.add("draggable", "snap", { - start: function(e, ui) { - - var inst = $(this).data("draggable"); - inst.snapElements = []; - $(ui.options.snap === true ? '.ui-draggable' : ui.options.snap).each(function() { - var $t = $(this); var $o = $t.offset(); - if(this != inst.element[0]) inst.snapElements.push({ - item: this, - width: $t.outerWidth(), height: $t.outerHeight(), - top: $o.top, left: $o.left - }); - }); - - }, - drag: function(e, ui) { - - var inst = $(this).data("draggable"); - var d = ui.options.snapTolerance || 20; - var x1 = ui.absolutePosition.left, x2 = x1 + inst.helperProportions.width, - y1 = ui.absolutePosition.top, y2 = y1 + inst.helperProportions.height; - - for (var i = inst.snapElements.length - 1; i >= 0; i--){ - - var l = inst.snapElements[i].left, r = l + inst.snapElements[i].width, - t = inst.snapElements[i].top, b = t + inst.snapElements[i].height; - - //Yes, I know, this is insane ;) - if(!((l-d < x1 && x1 < r+d && t-d < y1 && y1 < b+d) || (l-d < x1 && x1 < r+d && t-d < y2 && y2 < b+d) || (l-d < x2 && x2 < r+d && t-d < y1 && y1 < b+d) || (l-d < x2 && x2 < r+d && t-d < y2 && y2 < b+d))) continue; - - if(ui.options.snapMode != 'inner') { - var ts = Math.abs(t - y2) <= 20; - var bs = Math.abs(b - y1) <= 20; - var ls = Math.abs(l - x2) <= 20; - var rs = Math.abs(r - x1) <= 20; - if(ts) ui.position.top = inst.convertPositionTo("relative", { top: t - inst.helperProportions.height, left: 0 }).top; - if(bs) ui.position.top = inst.convertPositionTo("relative", { top: b, left: 0 }).top; - if(ls) ui.position.left = inst.convertPositionTo("relative", { top: 0, left: l - inst.helperProportions.width }).left; - if(rs) ui.position.left = inst.convertPositionTo("relative", { top: 0, left: r }).left; - } - - if(ui.options.snapMode != 'outer') { - var ts = Math.abs(t - y1) <= 20; - var bs = Math.abs(b - y2) <= 20; - var ls = Math.abs(l - x1) <= 20; - var rs = Math.abs(r - x2) <= 20; - if(ts) ui.position.top = inst.convertPositionTo("relative", { top: t, left: 0 }).top; - if(bs) ui.position.top = inst.convertPositionTo("relative", { top: b - inst.helperProportions.height, left: 0 }).top; - if(ls) ui.position.left = inst.convertPositionTo("relative", { top: 0, left: l }).left; - if(rs) ui.position.left = inst.convertPositionTo("relative", { top: 0, left: r - inst.helperProportions.width }).left; - } - - }; - } -}); - -$.ui.plugin.add("draggable", "connectToSortable", { - start: function(e,ui) { - - var inst = $(this).data("draggable"); - inst.sortables = []; - $(ui.options.connectToSortable).each(function() { - if($.data(this, 'sortable')) { - var sortable = $.data(this, 'sortable'); - inst.sortables.push({ - instance: sortable, - shouldRevert: sortable.options.revert - }); - sortable.refreshItems(); //Do a one-time refresh at start to refresh the containerCache - sortable.propagate("activate", e, inst); - } - }); - - }, - stop: function(e,ui) { - - //If we are still over the sortable, we fake the stop event of the sortable, but also remove helper - var inst = $(this).data("draggable"); - - $.each(inst.sortables, function() { - if(this.instance.isOver) { - this.instance.isOver = 0; - inst.cancelHelperRemoval = true; //Don't remove the helper in the draggable instance - this.instance.cancelHelperRemoval = false; //Remove it in the sortable instance (so sortable plugins like revert still work) - if(this.shouldRevert) this.instance.options.revert = true; //revert here - this.instance.mouseStop(e); - - //Also propagate receive event, since the sortable is actually receiving a element - this.instance.element.triggerHandler("sortreceive", [e, $.extend(this.instance.ui(), { sender: inst.element })], this.instance.options["receive"]); - - this.instance.options.helper = this.instance.options._helper; - } else { - this.instance.propagate("deactivate", e, inst); - } - - }); - - }, - drag: function(e,ui) { - - var inst = $(this).data("draggable"), self = this; - - var checkPos = function(o) { - - var l = o.left, r = l + o.width, - t = o.top, b = t + o.height; - - return (l < (this.positionAbs.left + this.offset.click.left) && (this.positionAbs.left + this.offset.click.left) < r - && t < (this.positionAbs.top + this.offset.click.top) && (this.positionAbs.top + this.offset.click.top) < b); - }; - - $.each(inst.sortables, function(i) { - - if(checkPos.call(inst, this.instance.containerCache)) { - - //If it intersects, we use a little isOver variable and set it once, so our move-in stuff gets fired only once - if(!this.instance.isOver) { - this.instance.isOver = 1; - - //Now we fake the start of dragging for the sortable instance, - //by cloning the list group item, appending it to the sortable and using it as inst.currentItem - //We can then fire the start event of the sortable with our passed browser event, and our own helper (so it doesn't create a new one) - this.instance.currentItem = $(self).clone().appendTo(this.instance.element).data("sortable-item", true); - this.instance.options._helper = this.instance.options.helper; //Store helper option to later restore it - this.instance.options.helper = function() { return ui.helper[0]; }; - - e.target = this.instance.currentItem[0]; - this.instance.mouseCapture(e, true); - this.instance.mouseStart(e, true, true); - - //Because the browser event is way off the new appended portlet, we modify a couple of variables to reflect the changes - this.instance.offset.click.top = inst.offset.click.top; - this.instance.offset.click.left = inst.offset.click.left; - this.instance.offset.parent.left -= inst.offset.parent.left - this.instance.offset.parent.left; - this.instance.offset.parent.top -= inst.offset.parent.top - this.instance.offset.parent.top; - - inst.propagate("toSortable", e); - - } - - //Provided we did all the previous steps, we can fire the drag event of the sortable on every draggable drag, when it intersects with the sortable - if(this.instance.currentItem) this.instance.mouseDrag(e); - - } else { - - //If it doesn't intersect with the sortable, and it intersected before, - //we fake the drag stop of the sortable, but make sure it doesn't remove the helper by using cancelHelperRemoval - if(this.instance.isOver) { - this.instance.isOver = 0; - this.instance.cancelHelperRemoval = true; - this.instance.options.revert = false; //No revert here - this.instance.mouseStop(e, true); - this.instance.options.helper = this.instance.options._helper; - - //Now we remove our currentItem, the list group clone again, and the placeholder, and animate the helper back to it's original size - this.instance.currentItem.remove(); - if(this.instance.placeholder) this.instance.placeholder.remove(); - - inst.propagate("fromSortable", e); - } - - }; - - }); - - } -}); - -$.ui.plugin.add("draggable", "stack", { - start: function(e,ui) { - var group = $.makeArray($(ui.options.stack.group)).sort(function(a,b) { - return (parseInt($(a).css("zIndex"),10) || ui.options.stack.min) - (parseInt($(b).css("zIndex"),10) || ui.options.stack.min); - }); - - $(group).each(function(i) { - this.style.zIndex = ui.options.stack.min + i; - }); - - this[0].style.zIndex = ui.options.stack.min + group.length; - } -}); - -})(jQuery); -/* - * jQuery UI Droppable - * - * Copyright (c) 2008 Paul Bakaus - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI/Droppables - * - * Depends: - * ui.core.js - * ui.draggable.js - */ -(function($) { - -$.widget("ui.droppable", { - init: function() { - - this.element.addClass("ui-droppable"); - this.isover = 0; this.isout = 1; - - //Prepare the passed options - var o = this.options, accept = o.accept; - o = $.extend(o, { - accept: o.accept && o.accept.constructor == Function ? o.accept : function(d) { - return $(d).is(accept); - } - }); - - //Store the droppable's proportions - this.proportions = { width: this.element[0].offsetWidth, height: this.element[0].offsetHeight }; - - // Add the reference and positions to the manager - $.ui.ddmanager.droppables.push(this); - - }, - plugins: {}, - ui: function(c) { - return { - draggable: (c.currentItem || c.element), - helper: c.helper, - position: c.position, - absolutePosition: c.positionAbs, - options: this.options, - element: this.element - }; - }, - destroy: function() { - var drop = $.ui.ddmanager.droppables; - for ( var i = 0; i < drop.length; i++ ) - if ( drop[i] == this ) - drop.splice(i, 1); - - this.element - .removeClass("ui-droppable ui-droppable-disabled") - .removeData("droppable") - .unbind(".droppable"); - }, - over: function(e) { - - var draggable = $.ui.ddmanager.current; - if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element - - if (this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) { - $.ui.plugin.call(this, 'over', [e, this.ui(draggable)]); - this.element.triggerHandler("dropover", [e, this.ui(draggable)], this.options.over); - } - - }, - out: function(e) { - - var draggable = $.ui.ddmanager.current; - if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element - - if (this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) { - $.ui.plugin.call(this, 'out', [e, this.ui(draggable)]); - this.element.triggerHandler("dropout", [e, this.ui(draggable)], this.options.out); - } - - }, - drop: function(e,custom) { - - var draggable = custom || $.ui.ddmanager.current; - if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return false; // Bail if draggable and droppable are same element - - var childrenIntersection = false; - this.element.find(".ui-droppable").not(".ui-draggable-dragging").each(function() { - var inst = $.data(this, 'droppable'); - if(inst.options.greedy && $.ui.intersect(draggable, $.extend(inst, { offset: inst.element.offset() }), inst.options.tolerance)) { - childrenIntersection = true; return false; - } - }); - if(childrenIntersection) return false; - - if(this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) { - $.ui.plugin.call(this, 'drop', [e, this.ui(draggable)]); - this.element.triggerHandler("drop", [e, this.ui(draggable)], this.options.drop); - return true; - } - - return false; - - }, - activate: function(e) { - - var draggable = $.ui.ddmanager.current; - $.ui.plugin.call(this, 'activate', [e, this.ui(draggable)]); - if(draggable) this.element.triggerHandler("dropactivate", [e, this.ui(draggable)], this.options.activate); - - }, - deactivate: function(e) { - - var draggable = $.ui.ddmanager.current; - $.ui.plugin.call(this, 'deactivate', [e, this.ui(draggable)]); - if(draggable) this.element.triggerHandler("dropdeactivate", [e, this.ui(draggable)], this.options.deactivate); - - } -}); - -$.extend($.ui.droppable, { - defaults: { - disabled: false, - tolerance: 'intersect' - } -}); - -$.ui.intersect = function(draggable, droppable, toleranceMode) { - - if (!droppable.offset) return false; - - var x1 = (draggable.positionAbs || draggable.position.absolute).left, x2 = x1 + draggable.helperProportions.width, - y1 = (draggable.positionAbs || draggable.position.absolute).top, y2 = y1 + draggable.helperProportions.height; - var l = droppable.offset.left, r = l + droppable.proportions.width, - t = droppable.offset.top, b = t + droppable.proportions.height; - - switch (toleranceMode) { - case 'fit': - return (l < x1 && x2 < r - && t < y1 && y2 < b); - break; - case 'intersect': - return (l < x1 + (draggable.helperProportions.width / 2) // Right Half - && x2 - (draggable.helperProportions.width / 2) < r // Left Half - && t < y1 + (draggable.helperProportions.height / 2) // Bottom Half - && y2 - (draggable.helperProportions.height / 2) < b ); // Top Half - break; - case 'pointer': - return (l < ((draggable.positionAbs || draggable.position.absolute).left + (draggable.clickOffset || draggable.offset.click).left) && ((draggable.positionAbs || draggable.position.absolute).left + (draggable.clickOffset || draggable.offset.click).left) < r - && t < ((draggable.positionAbs || draggable.position.absolute).top + (draggable.clickOffset || draggable.offset.click).top) && ((draggable.positionAbs || draggable.position.absolute).top + (draggable.clickOffset || draggable.offset.click).top) < b); - break; - case 'touch': - return ( - (y1 >= t && y1 <= b) || // Top edge touching - (y2 >= t && y2 <= b) || // Bottom edge touching - (y1 < t && y2 > b) // Surrounded vertically - ) && ( - (x1 >= l && x1 <= r) || // Left edge touching - (x2 >= l && x2 <= r) || // Right edge touching - (x1 < l && x2 > r) // Surrounded horizontally - ); - break; - default: - return false; - break; - } - -}; - -/* - This manager tracks offsets of draggables and droppables -*/ -$.ui.ddmanager = { - current: null, - droppables: [], - prepareOffsets: function(t, e) { - - var m = $.ui.ddmanager.droppables; - var type = e ? e.type : null; // workaround for #2317 - - for (var i = 0; i < m.length; i++) { - if(m[i].options.disabled || (t && !m[i].options.accept.call(m[i].element,(t.currentItem || t.element)))) continue; - m[i].visible = m[i].element.css("display") != "none"; if(!m[i].visible) continue; //If the element is not visible, continue - m[i].offset = m[i].element.offset(); - m[i].proportions = { width: m[i].element[0].offsetWidth, height: m[i].element[0].offsetHeight }; - - if(type == "dragstart" || type == "sortactivate") m[i].activate.call(m[i], e); //Activate the droppable if used directly from draggables - } - - }, - drop: function(draggable, e) { - - var dropped = false; - $.each($.ui.ddmanager.droppables, function() { - - if(!this.options) return; - if (!this.options.disabled && this.visible && $.ui.intersect(draggable, this, this.options.tolerance)) - dropped = this.drop.call(this, e); - - if (!this.options.disabled && this.visible && this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) { - this.isout = 1; this.isover = 0; - this.deactivate.call(this, e); - } - - }); - return dropped; - - }, - drag: function(draggable, e) { - - //If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse. - if(draggable.options.refreshPositions) $.ui.ddmanager.prepareOffsets(draggable, e); - - //Run through all droppables and check their positions based on specific tolerance options - - $.each($.ui.ddmanager.droppables, function() { - - if(this.options.disabled || this.greedyChild || !this.visible) return; - var intersects = $.ui.intersect(draggable, this, this.options.tolerance); - - var c = !intersects && this.isover == 1 ? 'isout' : (intersects && this.isover == 0 ? 'isover' : null); - if(!c) return; - - var parentInstance; - if (this.options.greedy) { - var parent = this.element.parents('.ui-droppable:eq(0)'); - if (parent.length) { - parentInstance = $.data(parent[0], 'droppable'); - parentInstance.greedyChild = (c == 'isover' ? 1 : 0); - } - } - - // we just moved into a greedy child - if (parentInstance && c == 'isover') { - parentInstance['isover'] = 0; - parentInstance['isout'] = 1; - parentInstance.out.call(parentInstance, e); - } - - this[c] = 1; this[c == 'isout' ? 'isover' : 'isout'] = 0; - this[c == "isover" ? "over" : "out"].call(this, e); - - // we just moved out of a greedy child - if (parentInstance && c == 'isout') { - parentInstance['isout'] = 0; - parentInstance['isover'] = 1; - parentInstance.over.call(parentInstance, e); - } - }); - - } -}; - -/* - * Droppable Extensions - */ - -$.ui.plugin.add("droppable", "activeClass", { - activate: function(e, ui) { - $(this).addClass(ui.options.activeClass); - }, - deactivate: function(e, ui) { - $(this).removeClass(ui.options.activeClass); - }, - drop: function(e, ui) { - $(this).removeClass(ui.options.activeClass); - } -}); - -$.ui.plugin.add("droppable", "hoverClass", { - over: function(e, ui) { - $(this).addClass(ui.options.hoverClass); - }, - out: function(e, ui) { - $(this).removeClass(ui.options.hoverClass); - }, - drop: function(e, ui) { - $(this).removeClass(ui.options.hoverClass); - } -}); - -})(jQuery); diff --git a/themes/default/jquery/ui.core.js b/themes/default/jquery/ui.core.js deleted file mode 100755 index 9a5c6302..00000000 --- a/themes/default/jquery/ui.core.js +++ /dev/null @@ -1,291 +0,0 @@ -/* - * jQuery UI 1.5.3 - * - * Copyright (c) 2008 Paul Bakaus (ui.jquery.com) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI - */ -;(function($) { - -$.ui = { - plugin: { - add: function(module, option, set) { - var proto = $.ui[module].prototype; - for(var i in set) { - proto.plugins[i] = proto.plugins[i] || []; - proto.plugins[i].push([option, set[i]]); - } - }, - call: function(instance, name, args) { - var set = instance.plugins[name]; - if(!set) { return; } - - for (var i = 0; i < set.length; i++) { - if (instance.options[set[i][0]]) { - set[i][1].apply(instance.element, args); - } - } - } - }, - cssCache: {}, - css: function(name) { - if ($.ui.cssCache[name]) { return $.ui.cssCache[name]; } - var tmp = $('<div class="ui-gen">').addClass(name).css({position:'absolute', top:'-5000px', left:'-5000px', display:'block'}).appendTo('body'); - - //if (!$.browser.safari) - //tmp.appendTo('body'); - - //Opera and Safari set width and height to 0px instead of auto - //Safari returns rgba(0,0,0,0) when bgcolor is not set - $.ui.cssCache[name] = !!( - (!(/auto|default/).test(tmp.css('cursor')) || (/^[1-9]/).test(tmp.css('height')) || (/^[1-9]/).test(tmp.css('width')) || - !(/none/).test(tmp.css('backgroundImage')) || !(/transparent|rgba\(0, 0, 0, 0\)/).test(tmp.css('backgroundColor'))) - ); - try { $('body').get(0).removeChild(tmp.get(0)); } catch(e){} - return $.ui.cssCache[name]; - }, - disableSelection: function(el) { - $(el).attr('unselectable', 'on').css('MozUserSelect', 'none'); - }, - enableSelection: function(el) { - $(el).attr('unselectable', 'off').css('MozUserSelect', ''); - }, - hasScroll: function(e, a) { - var scroll = /top/.test(a||"top") ? 'scrollTop' : 'scrollLeft', has = false; - if (e[scroll] > 0) return true; e[scroll] = 1; - has = e[scroll] > 0 ? true : false; e[scroll] = 0; - return has; - } -}; - - -/** jQuery core modifications and additions **/ - -var _remove = $.fn.remove; -$.fn.remove = function() { - $("*", this).add(this).triggerHandler("remove"); - return _remove.apply(this, arguments ); -}; - -// $.widget is a factory to create jQuery plugins -// taking some boilerplate code out of the plugin code -// created by Scott González and Jörn Zaefferer -function getter(namespace, plugin, method) { - var methods = $[namespace][plugin].getter || []; - methods = (typeof methods == "string" ? methods.split(/,?\s+/) : methods); - return ($.inArray(method, methods) != -1); -} - -$.widget = function(name, prototype) { - var namespace = name.split(".")[0]; - name = name.split(".")[1]; - - // create plugin method - $.fn[name] = function(options) { - var isMethodCall = (typeof options == 'string'), - args = Array.prototype.slice.call(arguments, 1); - - if (isMethodCall && getter(namespace, name, options)) { - var instance = $.data(this[0], name); - return (instance ? instance[options].apply(instance, args) - : undefined); - } - - return this.each(function() { - var instance = $.data(this, name); - if (isMethodCall && instance && $.isFunction(instance[options])) { - instance[options].apply(instance, args); - } else if (!isMethodCall) { - $.data(this, name, new $[namespace][name](this, options)); - } - }); - }; - - // create widget constructor - $[namespace][name] = function(element, options) { - var self = this; - - this.widgetName = name; - this.widgetBaseClass = namespace + '-' + name; - - this.options = $.extend({}, $.widget.defaults, $[namespace][name].defaults, options); - this.element = $(element) - .bind('setData.' + name, function(e, key, value) { - return self.setData(key, value); - }) - .bind('getData.' + name, function(e, key) { - return self.getData(key); - }) - .bind('remove', function() { - return self.destroy(); - }); - this.init(); - }; - - // add widget prototype - $[namespace][name].prototype = $.extend({}, $.widget.prototype, prototype); -}; - -$.widget.prototype = { - init: function() {}, - destroy: function() { - this.element.removeData(this.widgetName); - }, - - getData: function(key) { - return this.options[key]; - }, - setData: function(key, value) { - this.options[key] = value; - - if (key == 'disabled') { - this.element[value ? 'addClass' : 'removeClass']( - this.widgetBaseClass + '-disabled'); - } - }, - - enable: function() { - this.setData('disabled', false); - }, - disable: function() { - this.setData('disabled', true); - } -}; - -$.widget.defaults = { - disabled: false -}; - - -/** Mouse Interaction Plugin **/ - -$.ui.mouse = { - mouseInit: function() { - var self = this; - - this.element.bind('mousedown.'+this.widgetName, function(e) { - return self.mouseDown(e); - }); - - // Prevent text selection in IE - if ($.browser.msie) { - this._mouseUnselectable = this.element.attr('unselectable'); - this.element.attr('unselectable', 'on'); - } - - this.started = false; - }, - - // TODO: make sure destroying one instance of mouse doesn't mess with - // other instances of mouse - mouseDestroy: function() { - this.element.unbind('.'+this.widgetName); - - // Restore text selection in IE - ($.browser.msie - && this.element.attr('unselectable', this._mouseUnselectable)); - }, - - mouseDown: function(e) { - // we may have missed mouseup (out of window) - (this._mouseStarted && this.mouseUp(e)); - - this._mouseDownEvent = e; - - var self = this, - btnIsLeft = (e.which == 1), - elIsCancel = (typeof this.options.cancel == "string" ? $(e.target).parents().add(e.target).filter(this.options.cancel).length : false); - if (!btnIsLeft || elIsCancel || !this.mouseCapture(e)) { - return true; - } - - this._mouseDelayMet = !this.options.delay; - if (!this._mouseDelayMet) { - this._mouseDelayTimer = setTimeout(function() { - self._mouseDelayMet = true; - }, this.options.delay); - } - - if (this.mouseDistanceMet(e) && this.mouseDelayMet(e)) { - this._mouseStarted = (this.mouseStart(e) !== false); - if (!this._mouseStarted) { - e.preventDefault(); - return true; - } - } - - // these delegates are required to keep context - this._mouseMoveDelegate = function(e) { - return self.mouseMove(e); - }; - this._mouseUpDelegate = function(e) { - return self.mouseUp(e); - }; - $(document) - .bind('mousemove.'+this.widgetName, this._mouseMoveDelegate) - .bind('mouseup.'+this.widgetName, this._mouseUpDelegate); - - return false; - }, - - mouseMove: function(e) { - // IE mouseup check - mouseup happened when mouse was out of window - if ($.browser.msie && !e.button) { - return this.mouseUp(e); - } - - if (this._mouseStarted) { - this.mouseDrag(e); - return false; - } - - if (this.mouseDistanceMet(e) && this.mouseDelayMet(e)) { - this._mouseStarted = - (this.mouseStart(this._mouseDownEvent, e) !== false); - (this._mouseStarted ? this.mouseDrag(e) : this.mouseUp(e)); - } - - return !this._mouseStarted; - }, - - mouseUp: function(e) { - $(document) - .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate) - .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate); - - if (this._mouseStarted) { - this._mouseStarted = false; - this.mouseStop(e); - } - - return false; - }, - - mouseDistanceMet: function(e) { - return (Math.max( - Math.abs(this._mouseDownEvent.pageX - e.pageX), - Math.abs(this._mouseDownEvent.pageY - e.pageY) - ) >= this.options.distance - ); - }, - - mouseDelayMet: function(e) { - return this._mouseDelayMet; - }, - - // These are placeholder methods, to be overriden by extending plugin - mouseStart: function(e) {}, - mouseDrag: function(e) {}, - mouseStop: function(e) {}, - mouseCapture: function(e) { return true; } -}; - -$.ui.mouse.defaults = { - cancel: null, - distance: 1, - delay: 0 -}; - -})(jQuery); diff --git a/themes/default/jquery/ui.dialog.min.js b/themes/default/jquery/ui.dialog.min.js deleted file mode 100755 index 35742f17..00000000 --- a/themes/default/jquery/ui.dialog.min.js +++ /dev/null @@ -1 +0,0 @@ -(function(B){var A={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"};B.widget("ui.dialog",{init:function(){var J=this,K=this.options,D=typeof K.resizable=="string"?K.resizable:"n,e,s,w,se,sw,ne,nw",E=this.element.addClass("ui-dialog-content").wrap("<div/>").wrap("<div/>"),G=(this.uiDialogContainer=E.parent().addClass("ui-dialog-container").css({position:"relative",width:"100%",height:"100%"})),H=K.title||E.attr("title")||"",C=(this.uiDialogTitlebar=B('<div class="ui-dialog-titlebar"/>')).append('<span class="ui-dialog-title">'+H+"</span>").append('<a href="#" class="ui-dialog-titlebar-close"><span>X</span></a>').prependTo(G),I=(this.uiDialog=G.parent()).appendTo(document.body).hide().addClass("ui-dialog").addClass(K.dialogClass).addClass(E.attr("className")).removeClass("ui-dialog-content").css({position:"absolute",width:K.width,height:K.height,overflow:"hidden",zIndex:K.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(L){if(K.closeOnEscape){var M=27;(L.keyCode&&L.keyCode==M&&J.close())}}).mousedown(function(){J.moveToTop()}),F=(this.uiDialogButtonPane=B("<div/>")).addClass("ui-dialog-buttonpane").css({position:"absolute",bottom:0}).appendTo(I);this.uiDialogTitlebarClose=B(".ui-dialog-titlebar-close",C).hover(function(){B(this).addClass("ui-dialog-titlebar-close-hover")},function(){B(this).removeClass("ui-dialog-titlebar-close-hover")}).mousedown(function(L){L.stopPropagation()}).click(function(){J.close();return false});this.uiDialogTitlebar.find("*").add(this.uiDialogTitlebar).each(function(){B.ui.disableSelection(this)});if(B.fn.draggable){I.draggable({cancel:".ui-dialog-content",helper:K.dragHelper,handle:".ui-dialog-titlebar",start:function(M,L){J.moveToTop();(K.dragStart&&K.dragStart.apply(J.element[0],arguments))},drag:function(M,L){(K.drag&&K.drag.apply(J.element[0],arguments))},stop:function(M,L){(K.dragStop&&K.dragStop.apply(J.element[0],arguments));B.ui.dialog.overlay.resize()}});(K.draggable||I.draggable("disable"))}if(B.fn.resizable){I.resizable({cancel:".ui-dialog-content",helper:K.resizeHelper,maxWidth:K.maxWidth,maxHeight:K.maxHeight,minWidth:K.minWidth,minHeight:K.minHeight,start:function(){(K.resizeStart&&K.resizeStart.apply(J.element[0],arguments))},resize:function(M,L){(K.autoResize&&J.size.apply(J));(K.resize&&K.resize.apply(J.element[0],arguments))},handles:D,stop:function(M,L){(K.autoResize&&J.size.apply(J));(K.resizeStop&&K.resizeStop.apply(J.element[0],arguments));B.ui.dialog.overlay.resize()}});(K.resizable||I.resizable("disable"))}this.createButtons(K.buttons);this.isOpen=false;(K.bgiframe&&B.fn.bgiframe&&I.bgiframe());(K.autoOpen&&this.open())},setData:function(C,D){(A[C]&&this.uiDialog.data(A[C],D));switch(C){case"buttons":this.createButtons(D);break;case"draggable":this.uiDialog.draggable(D?"enable":"disable");break;case"height":this.uiDialog.height(D);break;case"position":this.position(D);break;case"resizable":(typeof D=="string"&&this.uiDialog.data("handles.resizable",D));this.uiDialog.resizable(D?"enable":"disable");break;case"title":B(".ui-dialog-title",this.uiDialogTitlebar).text(D);break;case"width":this.uiDialog.width(D);break}B.widget.prototype.setData.apply(this,arguments)},position:function(H){var D=B(window),E=B(document),F=E.scrollTop(),C=E.scrollLeft(),G=F;if(B.inArray(H,["center","top","right","bottom","left"])>=0){H=[H=="right"||H=="left"?H:"center",H=="top"||H=="bottom"?H:"middle"]}if(H.constructor!=Array){H=["center","middle"]}if(H[0].constructor==Number){C+=H[0]}else{switch(H[0]){case"left":C+=0;break;case"right":C+=D.width()-this.uiDialog.width();break;default:case"center":C+=(D.width()-this.uiDialog.width())/2}}if(H[1].constructor==Number){F+=H[1]}else{switch(H[1]){case"top":F+=0;break;case"bottom":F+=D.height()-this.uiDialog.height();break;default:case"middle":F+=(D.height()-this.uiDialog.height())/2}}F=Math.max(F,G);this.uiDialog.css({top:F,left:C})},size:function(){var D=this.uiDialogContainer,G=this.uiDialogTitlebar,E=this.element,F=parseInt(E.css("margin-top"),10)+parseInt(E.css("margin-bottom"),10),C=parseInt(E.css("margin-left"),10)+parseInt(E.css("margin-right"),10);E.height(D.height()-G.outerHeight()-F);E.width(D.width()-C)},open:function(){if(this.isOpen){return }this.overlay=this.options.modal?new B.ui.dialog.overlay(this):null;(this.uiDialog.next().length>0)&&this.uiDialog.appendTo("body");this.position(this.options.position);this.uiDialog.show(this.options.show);this.options.autoResize&&this.size();this.moveToTop(true);var C=null;var D={options:this.options};this.uiDialogTitlebarClose.focus();this.element.triggerHandler("dialogopen",[C,D],this.options.open);this.isOpen=true},moveToTop:function(E){if((this.options.modal&&!E)||(!this.options.stack&&!this.options.modal)){return this.element.triggerHandler("dialogfocus",[null,{options:this.options}],this.options.focus)}var D=this.options.zIndex,C=this.options;B(".ui-dialog:visible").each(function(){D=Math.max(D,parseInt(B(this).css("z-index"),10)||C.zIndex)});(this.overlay&&this.overlay.$el.css("z-index",++D));this.uiDialog.css("z-index",++D);this.element.triggerHandler("dialogfocus",[null,{options:this.options}],this.options.focus)},close:function(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide(this.options.hide);var D=null;var C={options:this.options};this.element.triggerHandler("dialogclose",[D,C],this.options.close);B.ui.dialog.overlay.resize();this.isOpen=false},destroy:function(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content").hide().appendTo("body");this.uiDialog.remove()},createButtons:function(F){var E=this,C=false,D=this.uiDialogButtonPane;D.empty().hide();B.each(F,function(){return !(C=true)});if(C){D.show();B.each(F,function(G,H){B("<button/>").text(G).click(function(){H.apply(E.element[0],arguments)}).appendTo(D)})}}});B.extend(B.ui.dialog,{defaults:{autoOpen:true,autoResize:true,bgiframe:false,buttons:{},closeOnEscape:true,draggable:true,height:200,minHeight:100,minWidth:150,modal:false,overlay:{},position:"center",resizable:true,stack:true,width:300,zIndex:1000},overlay:function(C){this.$el=B.ui.dialog.overlay.create(C)}});B.extend(B.ui.dialog.overlay,{instances:[],events:B.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(C){return C+".dialog-overlay"}).join(" "),create:function(D){if(this.instances.length===0){setTimeout(function(){B("a, :input").bind(B.ui.dialog.overlay.events,function(){var F=false;var H=B(this).parents(".ui-dialog");if(H.length){var E=B(".ui-dialog-overlay");if(E.length){var G=parseInt(E.css("z-index"),10);E.each(function(){G=Math.max(G,parseInt(B(this).css("z-index"),10))});F=parseInt(H.css("z-index"),10)>G}else{F=true}}return F})},1);B(document).bind("keydown.dialog-overlay",function(E){var F=27;(E.keyCode&&E.keyCode==F&&D.close())});B(window).bind("resize.dialog-overlay",B.ui.dialog.overlay.resize)}var C=B("<div/>").appendTo(document.body).addClass("ui-dialog-overlay").css(B.extend({borderWidth:0,margin:0,padding:0,position:"absolute",top:0,left:0,width:this.width(),height:this.height()},D.options.overlay));(D.options.bgiframe&&B.fn.bgiframe&&C.bgiframe());this.instances.push(C);return C},destroy:function(C){this.instances.splice(B.inArray(this.instances,C),1);if(this.instances.length===0){B("a, :input").add([document,window]).unbind(".dialog-overlay")}C.remove()},height:function(){if(B.browser.msie&&B.browser.version<7){var D=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var C=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(D<C){return B(window).height()+"px"}else{return D+"px"}}else{return B(document).height()+"px"}},width:function(){if(B.browser.msie&&B.browser.version<7){var C=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var D=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(C<D){return B(window).width()+"px"}else{return C+"px"}}else{return B(document).width()+"px"}},resize:function(){var C=B([]);B.each(B.ui.dialog.overlay.instances,function(){C=C.add(this)});C.css({width:0,height:0}).css({width:B.ui.dialog.overlay.width(),height:B.ui.dialog.overlay.height()})}});B.extend(B.ui.dialog.overlay.prototype,{destroy:function(){B.ui.dialog.overlay.destroy(this.$el)}})})(jQuery)
\ No newline at end of file diff --git a/themes/default/jquery/ui.draggable.min.js b/themes/default/jquery/ui.draggable.min.js deleted file mode 100755 index 4ab91556..00000000 --- a/themes/default/jquery/ui.draggable.min.js +++ /dev/null @@ -1 +0,0 @@ -(function(A){A.widget("ui.draggable",A.extend({},A.ui.mouse,{init:function(){var B=this.options;if(B.helper=="original"&&!(/(relative|absolute|fixed)/).test(this.element.css("position"))){this.element.css("position","relative")}this.element.addClass("ui-draggable");(B.disabled&&this.element.addClass("ui-draggable-disabled"));this.mouseInit()},mouseStart:function(F){var H=this.options;if(this.helper||H.disabled||A(F.target).is(".ui-resizable-handle")){return false}var C=!this.options.handle||!A(this.options.handle,this.element).length?true:false;A(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==F.target){C=true}});if(!C){return false}if(A.ui.ddmanager){A.ui.ddmanager.current=this}this.helper=A.isFunction(H.helper)?A(H.helper.apply(this.element[0],[F])):(H.helper=="clone"?this.element.clone():this.element);if(!this.helper.parents("body").length){this.helper.appendTo((H.appendTo=="parent"?this.element[0].parentNode:H.appendTo))}if(this.helper[0]!=this.element[0]&&!(/(fixed|absolute)/).test(this.helper.css("position"))){this.helper.css("position","absolute")}this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0)};this.cssPosition=this.helper.css("position");this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.offset.click={left:F.pageX-this.offset.left,top:F.pageY-this.offset.top};this.offsetParent=this.helper.offsetParent();var B=this.offsetParent.offset();if(this.offsetParent[0]==document.body&&A.browser.mozilla){B={top:0,left:0}}this.offset.parent={top:B.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:B.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)};var E=this.element.position();this.offset.relative=this.cssPosition=="relative"?{top:E.top-(parseInt(this.helper.css("top"),10)||0)+this.offsetParent[0].scrollTop,left:E.left-(parseInt(this.helper.css("left"),10)||0)+this.offsetParent[0].scrollLeft}:{top:0,left:0};this.originalPosition=this.generatePosition(F);this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if(H.cursorAt){if(H.cursorAt.left!=undefined){this.offset.click.left=H.cursorAt.left+this.margins.left}if(H.cursorAt.right!=undefined){this.offset.click.left=this.helperProportions.width-H.cursorAt.right+this.margins.left}if(H.cursorAt.top!=undefined){this.offset.click.top=H.cursorAt.top+this.margins.top}if(H.cursorAt.bottom!=undefined){this.offset.click.top=this.helperProportions.height-H.cursorAt.bottom+this.margins.top}}if(H.containment){if(H.containment=="parent"){H.containment=this.helper[0].parentNode}if(H.containment=="document"||H.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,A(H.containment=="document"?document:window).width()-this.offset.relative.left-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.element.css("marginRight"),10)||0),(A(H.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.offset.relative.top-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"),10)||0)]}if(!(/^(document|window|parent)$/).test(H.containment)){var D=A(H.containment)[0];var G=A(H.containment).offset();this.containment=[G.left+(parseInt(A(D).css("borderLeftWidth"),10)||0)-this.offset.relative.left-this.offset.parent.left,G.top+(parseInt(A(D).css("borderTopWidth"),10)||0)-this.offset.relative.top-this.offset.parent.top,G.left+Math.max(D.scrollWidth,D.offsetWidth)-(parseInt(A(D).css("borderLeftWidth"),10)||0)-this.offset.relative.left-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.element.css("marginRight"),10)||0),G.top+Math.max(D.scrollHeight,D.offsetHeight)-(parseInt(A(D).css("borderTopWidth"),10)||0)-this.offset.relative.top-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"),10)||0)]}}this.propagate("start",F);this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if(A.ui.ddmanager&&!H.dropBehaviour){A.ui.ddmanager.prepareOffsets(this,F)}this.helper.addClass("ui-draggable-dragging");this.mouseDrag(F);return true},convertPositionTo:function(C,D){if(!D){D=this.position}var B=C=="absolute"?1:-1;return{top:(D.top+this.offset.relative.top*B+this.offset.parent.top*B-(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollTop)*B+(this.cssPosition=="fixed"?A(document).scrollTop():0)*B+this.margins.top*B),left:(D.left+this.offset.relative.left*B+this.offset.parent.left*B-(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollLeft)*B+(this.cssPosition=="fixed"?A(document).scrollLeft():0)*B+this.margins.left*B)}},generatePosition:function(E){var F=this.options;var B={top:(E.pageY-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollTop)-(this.cssPosition=="fixed"?A(document).scrollTop():0)),left:(E.pageX-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollLeft)-(this.cssPosition=="fixed"?A(document).scrollLeft():0))};if(!this.originalPosition){return B}if(this.containment){if(B.left<this.containment[0]){B.left=this.containment[0]}if(B.top<this.containment[1]){B.top=this.containment[1]}if(B.left>this.containment[2]){B.left=this.containment[2]}if(B.top>this.containment[3]){B.top=this.containment[3]}}if(F.grid){var D=this.originalPosition.top+Math.round((B.top-this.originalPosition.top)/F.grid[1])*F.grid[1];B.top=this.containment?(!(D<this.containment[1]||D>this.containment[3])?D:(!(D<this.containment[1])?D-F.grid[1]:D+F.grid[1])):D;var C=this.originalPosition.left+Math.round((B.left-this.originalPosition.left)/F.grid[0])*F.grid[0];B.left=this.containment?(!(C<this.containment[0]||C>this.containment[2])?C:(!(C<this.containment[0])?C-F.grid[0]:C+F.grid[0])):C}return B},mouseDrag:function(B){this.position=this.generatePosition(B);this.positionAbs=this.convertPositionTo("absolute");this.position=this.propagate("drag",B)||this.position;if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}if(A.ui.ddmanager){A.ui.ddmanager.drag(this,B)}return false},mouseStop:function(C){var D=false;if(A.ui.ddmanager&&!this.options.dropBehaviour){var D=A.ui.ddmanager.drop(this,C)}if((this.options.revert=="invalid"&&!D)||(this.options.revert=="valid"&&D)||this.options.revert===true){var B=this;A(this.helper).animate(this.originalPosition,parseInt(this.options.revert,10)||500,function(){B.propagate("stop",C);B.clear()})}else{this.propagate("stop",C);this.clear()}return false},clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.options.helper!="original"&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},plugins:{},uiHash:function(B){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,options:this.options}},propagate:function(C,B){A.ui.plugin.call(this,C,[B,this.uiHash()]);if(C=="drag"){this.positionAbs=this.convertPositionTo("absolute")}return this.element.triggerHandler(C=="drag"?C:"drag"+C,[B,this.uiHash()],this.options[C])},destroy:function(){if(!this.element.data("draggable")){return }this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable");this.mouseDestroy()}}));A.extend(A.ui.draggable,{defaults:{appendTo:"parent",axis:false,cancel:":input",delay:0,distance:1,helper:"original"}});A.ui.plugin.add("draggable","cursor",{start:function(D,C){var B=A("body");if(B.css("cursor")){C.options._cursor=B.css("cursor")}B.css("cursor",C.options.cursor)},stop:function(C,B){if(B.options._cursor){A("body").css("cursor",B.options._cursor)}}});A.ui.plugin.add("draggable","zIndex",{start:function(D,C){var B=A(C.helper);if(B.css("zIndex")){C.options._zIndex=B.css("zIndex")}B.css("zIndex",C.options.zIndex)},stop:function(C,B){if(B.options._zIndex){A(B.helper).css("zIndex",B.options._zIndex)}}});A.ui.plugin.add("draggable","opacity",{start:function(D,C){var B=A(C.helper);if(B.css("opacity")){C.options._opacity=B.css("opacity")}B.css("opacity",C.options.opacity)},stop:function(C,B){if(B.options._opacity){A(B.helper).css("opacity",B.options._opacity)}}});A.ui.plugin.add("draggable","iframeFix",{start:function(C,B){A(B.options.iframeFix===true?"iframe":B.options.iframeFix).each(function(){A('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(A(this).offset()).appendTo("body")})},stop:function(C,B){A("div.DragDropIframeFix").each(function(){this.parentNode.removeChild(this)})}});A.ui.plugin.add("draggable","scroll",{start:function(D,C){var E=C.options;var B=A(this).data("draggable");E.scrollSensitivity=E.scrollSensitivity||20;E.scrollSpeed=E.scrollSpeed||20;B.overflowY=function(F){do{if(/auto|scroll/.test(F.css("overflow"))||(/auto|scroll/).test(F.css("overflow-y"))){return F}F=F.parent()}while(F[0].parentNode);return A(document)}(this);B.overflowX=function(F){do{if(/auto|scroll/.test(F.css("overflow"))||(/auto|scroll/).test(F.css("overflow-x"))){return F}F=F.parent()}while(F[0].parentNode);return A(document)}(this);if(B.overflowY[0]!=document&&B.overflowY[0].tagName!="HTML"){B.overflowYOffset=B.overflowY.offset()}if(B.overflowX[0]!=document&&B.overflowX[0].tagName!="HTML"){B.overflowXOffset=B.overflowX.offset()}},drag:function(D,C){var E=C.options;var B=A(this).data("draggable");if(B.overflowY[0]!=document&&B.overflowY[0].tagName!="HTML"){if((B.overflowYOffset.top+B.overflowY[0].offsetHeight)-D.pageY<E.scrollSensitivity){B.overflowY[0].scrollTop=B.overflowY[0].scrollTop+E.scrollSpeed}if(D.pageY-B.overflowYOffset.top<E.scrollSensitivity){B.overflowY[0].scrollTop=B.overflowY[0].scrollTop-E.scrollSpeed}}else{if(D.pageY-A(document).scrollTop()<E.scrollSensitivity){A(document).scrollTop(A(document).scrollTop()-E.scrollSpeed)}if(A(window).height()-(D.pageY-A(document).scrollTop())<E.scrollSensitivity){A(document).scrollTop(A(document).scrollTop()+E.scrollSpeed)}}if(B.overflowX[0]!=document&&B.overflowX[0].tagName!="HTML"){if((B.overflowXOffset.left+B.overflowX[0].offsetWidth)-D.pageX<E.scrollSensitivity){B.overflowX[0].scrollLeft=B.overflowX[0].scrollLeft+E.scrollSpeed}if(D.pageX-B.overflowXOffset.left<E.scrollSensitivity){B.overflowX[0].scrollLeft=B.overflowX[0].scrollLeft-E.scrollSpeed}}else{if(D.pageX-A(document).scrollLeft()<E.scrollSensitivity){A(document).scrollLeft(A(document).scrollLeft()-E.scrollSpeed)}if(A(window).width()-(D.pageX-A(document).scrollLeft())<E.scrollSensitivity){A(document).scrollLeft(A(document).scrollLeft()+E.scrollSpeed)}}}});A.ui.plugin.add("draggable","snap",{start:function(D,C){var B=A(this).data("draggable");B.snapElements=[];A(C.options.snap===true?".ui-draggable":C.options.snap).each(function(){var F=A(this);var E=F.offset();if(this!=B.element[0]){B.snapElements.push({item:this,width:F.outerWidth(),height:F.outerHeight(),top:E.top,left:E.left})}})},drag:function(J,N){var I=A(this).data("draggable");var L=N.options.snapTolerance||20;var D=N.absolutePosition.left,C=D+I.helperProportions.width,P=N.absolutePosition.top,O=P+I.helperProportions.height;for(var H=I.snapElements.length-1;H>=0;H--){var E=I.snapElements[H].left,B=E+I.snapElements[H].width,R=I.snapElements[H].top,M=R+I.snapElements[H].height;if(!((E-L<D&&D<B+L&&R-L<P&&P<M+L)||(E-L<D&&D<B+L&&R-L<O&&O<M+L)||(E-L<C&&C<B+L&&R-L<P&&P<M+L)||(E-L<C&&C<B+L&&R-L<O&&O<M+L))){continue}if(N.options.snapMode!="inner"){var K=Math.abs(R-O)<=20;var Q=Math.abs(M-P)<=20;var G=Math.abs(E-C)<=20;var F=Math.abs(B-D)<=20;if(K){N.position.top=I.convertPositionTo("relative",{top:R-I.helperProportions.height,left:0}).top}if(Q){N.position.top=I.convertPositionTo("relative",{top:M,left:0}).top}if(G){N.position.left=I.convertPositionTo("relative",{top:0,left:E-I.helperProportions.width}).left}if(F){N.position.left=I.convertPositionTo("relative",{top:0,left:B}).left}}if(N.options.snapMode!="outer"){var K=Math.abs(R-P)<=20;var Q=Math.abs(M-O)<=20;var G=Math.abs(E-D)<=20;var F=Math.abs(B-C)<=20;if(K){N.position.top=I.convertPositionTo("relative",{top:R,left:0}).top}if(Q){N.position.top=I.convertPositionTo("relative",{top:M-I.helperProportions.height,left:0}).top}if(G){N.position.left=I.convertPositionTo("relative",{top:0,left:E}).left}if(F){N.position.left=I.convertPositionTo("relative",{top:0,left:B-I.helperProportions.width}).left}}}}});A.ui.plugin.add("draggable","connectToSortable",{start:function(D,C){var B=A(this).data("draggable");B.sortables=[];A(C.options.connectToSortable).each(function(){if(A.data(this,"sortable")){var E=A.data(this,"sortable");B.sortables.push({instance:E,shouldRevert:E.options.revert});E.refreshItems();E.propagate("activate",D,B)}})},stop:function(D,C){var B=A(this).data("draggable");A.each(B.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;B.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance.mouseStop(D);this.instance.element.triggerHandler("sortreceive",[D,A.extend(this.instance.ui(),{sender:B.element})],this.instance.options["receive"]);this.instance.options.helper=this.instance.options._helper}else{this.instance.propagate("deactivate",D,B)}})},drag:function(F,E){var D=A(this).data("draggable"),B=this;var C=function(K){var H=K.left,J=H+K.width,I=K.top,G=I+K.height;return(H<(this.positionAbs.left+this.offset.click.left)&&(this.positionAbs.left+this.offset.click.left)<J&&I<(this.positionAbs.top+this.offset.click.top)&&(this.positionAbs.top+this.offset.click.top)<G)};A.each(D.sortables,function(G){if(C.call(D,this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=A(B).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return E.helper[0]};F.target=this.instance.currentItem[0];this.instance.mouseCapture(F,true);this.instance.mouseStart(F,true,true);this.instance.offset.click.top=D.offset.click.top;this.instance.offset.click.left=D.offset.click.left;this.instance.offset.parent.left-=D.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=D.offset.parent.top-this.instance.offset.parent.top;D.propagate("toSortable",F)}if(this.instance.currentItem){this.instance.mouseDrag(F)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance.mouseStop(F,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}D.propagate("fromSortable",F)}}})}});A.ui.plugin.add("draggable","stack",{start:function(D,B){var C=A.makeArray(A(B.options.stack.group)).sort(function(F,E){return(parseInt(A(F).css("zIndex"),10)||B.options.stack.min)-(parseInt(A(E).css("zIndex"),10)||B.options.stack.min)});A(C).each(function(E){this.style.zIndex=B.options.stack.min+E});this[0].style.zIndex=B.options.stack.min+C.length}})})(jQuery)
\ No newline at end of file diff --git a/themes/default/jquery/ui.resizable.min.js b/themes/default/jquery/ui.resizable.min.js deleted file mode 100755 index 423328ee..00000000 --- a/themes/default/jquery/ui.resizable.min.js +++ /dev/null @@ -1 +0,0 @@ -(function(A){A.widget("ui.resizable",A.extend({},A.ui.mouse,{init:function(){var M=this,N=this.options;var Q=this.element.css("position");this.originalElement=this.element;this.element.addClass("ui-resizable").css({position:/static/.test(Q)?"relative":Q});A.extend(N,{_aspectRatio:!!(N.aspectRatio),helper:N.helper||N.ghost||N.animate?N.helper||"proxy":null,knobHandles:N.knobHandles===true?"ui-resizable-knob-handle":N.knobHandles});var H="1px solid #DEDEDE";N.defaultTheme={"ui-resizable":{display:"block"},"ui-resizable-handle":{position:"absolute",background:"#F2F2F2",fontSize:"0.1px"},"ui-resizable-n":{cursor:"n-resize",height:"4px",left:"0px",right:"0px",borderTop:H},"ui-resizable-s":{cursor:"s-resize",height:"4px",left:"0px",right:"0px",borderBottom:H},"ui-resizable-e":{cursor:"e-resize",width:"4px",top:"0px",bottom:"0px",borderRight:H},"ui-resizable-w":{cursor:"w-resize",width:"4px",top:"0px",bottom:"0px",borderLeft:H},"ui-resizable-se":{cursor:"se-resize",width:"4px",height:"4px",borderRight:H,borderBottom:H},"ui-resizable-sw":{cursor:"sw-resize",width:"4px",height:"4px",borderBottom:H,borderLeft:H},"ui-resizable-ne":{cursor:"ne-resize",width:"4px",height:"4px",borderRight:H,borderTop:H},"ui-resizable-nw":{cursor:"nw-resize",width:"4px",height:"4px",borderLeft:H,borderTop:H}};N.knobTheme={"ui-resizable-handle":{background:"#F2F2F2",border:"1px solid #808080",height:"8px",width:"8px"},"ui-resizable-n":{cursor:"n-resize",top:"0px",left:"45%"},"ui-resizable-s":{cursor:"s-resize",bottom:"0px",left:"45%"},"ui-resizable-e":{cursor:"e-resize",right:"0px",top:"45%"},"ui-resizable-w":{cursor:"w-resize",left:"0px",top:"45%"},"ui-resizable-se":{cursor:"se-resize",right:"0px",bottom:"0px"},"ui-resizable-sw":{cursor:"sw-resize",left:"0px",bottom:"0px"},"ui-resizable-nw":{cursor:"nw-resize",left:"0px",top:"0px"},"ui-resizable-ne":{cursor:"ne-resize",right:"0px",top:"0px"}};N._nodeName=this.element[0].nodeName;if(N._nodeName.match(/canvas|textarea|input|select|button|img/i)){var B=this.element;if(/relative/.test(B.css("position"))&&A.browser.opera){B.css({position:"relative",top:"auto",left:"auto"})}B.wrap(A('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:B.css("position"),width:B.outerWidth(),height:B.outerHeight(),top:B.css("top"),left:B.css("left")}));var J=this.element;this.element=this.element.parent();this.element.data("resizable",this);this.element.css({marginLeft:J.css("marginLeft"),marginTop:J.css("marginTop"),marginRight:J.css("marginRight"),marginBottom:J.css("marginBottom")});J.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});if(A.browser.safari&&N.preventDefault){J.css("resize","none")}N.proportionallyResize=J.css({position:"static",zoom:1,display:"block"});this.element.css({margin:J.css("margin")});this._proportionallyResize()}if(!N.handles){N.handles=!A(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}}if(N.handles.constructor==String){N.zIndex=N.zIndex||1000;if(N.handles=="all"){N.handles="n,e,s,w,se,sw,ne,nw"}var O=N.handles.split(",");N.handles={};var G={handle:"position: absolute; display: none; overflow:hidden;",n:"top: 0pt; width:100%;",e:"right: 0pt; height:100%;",s:"bottom: 0pt; width:100%;",w:"left: 0pt; height:100%;",se:"bottom: 0pt; right: 0px;",sw:"bottom: 0pt; left: 0px;",ne:"top: 0pt; right: 0px;",nw:"top: 0pt; left: 0px;"};for(var R=0;R<O.length;R++){var S=A.trim(O[R]),L=N.defaultTheme,F="ui-resizable-"+S,C=!A.ui.css(F)&&!N.knobHandles,P=A.ui.css("ui-resizable-knob-handle"),T=A.extend(L[F],L["ui-resizable-handle"]),D=A.extend(N.knobTheme[F],!P?N.knobTheme["ui-resizable-handle"]:{});var K=/sw|se|ne|nw/.test(S)?{zIndex:++N.zIndex}:{};var I=(C?G[S]:""),E=A(['<div class="ui-resizable-handle ',F,'" style="',I,G.handle,'"></div>'].join("")).css(K);N.handles[S]=".ui-resizable-"+S;this.element.append(E.css(C?T:{}).css(N.knobHandles?D:{}).addClass(N.knobHandles?"ui-resizable-knob-handle":"").addClass(N.knobHandles))}if(N.knobHandles){this.element.addClass("ui-resizable-knob").css(!A.ui.css("ui-resizable-knob")?{}:{})}}this._renderAxis=function(Y){Y=Y||this.element;for(var V in N.handles){if(N.handles[V].constructor==String){N.handles[V]=A(N.handles[V],this.element).show()}if(N.transparent){N.handles[V].css({opacity:0})}if(this.element.is(".ui-wrapper")&&N._nodeName.match(/textarea|input|select|button/i)){var W=A(N.handles[V],this.element),X=0;X=/sw|ne|nw|se|n|s/.test(V)?W.outerHeight():W.outerWidth();var U=["padding",/ne|nw|n/.test(V)?"Top":/se|sw|s/.test(V)?"Bottom":/^e$/.test(V)?"Right":"Left"].join("");if(!N.transparent){Y.css(U,X)}this._proportionallyResize()}if(!A(N.handles[V]).length){continue}}};this._renderAxis(this.element);N._handles=A(".ui-resizable-handle",M.element);if(N.disableSelection){N._handles.each(function(U,V){A.ui.disableSelection(V)})}N._handles.mouseover(function(){if(!N.resizing){if(this.className){var U=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}M.axis=N.axis=U&&U[1]?U[1]:"se"}});if(N.autoHide){N._handles.hide();A(M.element).addClass("ui-resizable-autohide").hover(function(){A(this).removeClass("ui-resizable-autohide");N._handles.show()},function(){if(!N.resizing){A(this).addClass("ui-resizable-autohide");N._handles.hide()}})}this.mouseInit()},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,options:this.options,originalSize:this.originalSize,originalPosition:this.originalPosition}},propagate:function(C,B){A.ui.plugin.call(this,C,[B,this.ui()]);if(C!="resize"){this.element.triggerHandler(["resize",C].join(""),[B,this.ui()],this.options[C])}},destroy:function(){var D=this.element,C=D.children(".ui-resizable").get(0);this.mouseDestroy();var B=function(E){A(E).removeClass("ui-resizable ui-resizable-disabled").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};B(D);if(D.is(".ui-wrapper")&&C){D.parent().append(A(C).css({position:D.css("position"),width:D.outerWidth(),height:D.outerHeight(),top:D.css("top"),left:D.css("left")})).end().remove();B(C)}},mouseStart:function(K){if(this.options.disabled){return false}var J=false;for(var H in this.options.handles){if(A(this.options.handles[H])[0]==K.target){J=true}}if(!J){return false}var C=this.options,B=this.element.position(),D=this.element,I=function(O){return parseInt(O,10)||0},G=A.browser.msie&&A.browser.version<7;C.resizing=true;C.documentScroll={top:A(document).scrollTop(),left:A(document).scrollLeft()};if(D.is(".ui-draggable")||(/absolute/).test(D.css("position"))){var M=A.browser.msie&&!C.containment&&(/absolute/).test(D.css("position"))&&!(/relative/).test(D.parent().css("position"));var L=M?C.documentScroll.top:0,F=M?C.documentScroll.left:0;D.css({position:"absolute",top:(B.top+L),left:(B.left+F)})}if(A.browser.opera&&/relative/.test(D.css("position"))){D.css({position:"relative",top:"auto",left:"auto"})}this._renderProxy();var N=I(this.helper.css("left")),E=I(this.helper.css("top"));if(C.containment){N+=A(C.containment).scrollLeft()||0;E+=A(C.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:N,top:E};this.size=C.helper||G?{width:D.outerWidth(),height:D.outerHeight()}:{width:D.width(),height:D.height()};this.originalSize=C.helper||G?{width:D.outerWidth(),height:D.outerHeight()}:{width:D.width(),height:D.height()};this.originalPosition={left:N,top:E};this.sizeDiff={width:D.outerWidth()-D.width(),height:D.outerHeight()-D.height()};this.originalMousePosition={left:K.pageX,top:K.pageY};C.aspectRatio=(typeof C.aspectRatio=="number")?C.aspectRatio:((this.originalSize.height/this.originalSize.width)||1);if(C.preserveCursor){A("body").css("cursor",this.axis+"-resize")}this.propagate("start",K);return true},mouseDrag:function(I){var D=this.helper,C=this.options,J={},M=this,F=this.originalMousePosition,K=this.axis;var N=(I.pageX-F.left)||0,L=(I.pageY-F.top)||0;var E=this._change[K];if(!E){return false}var H=E.apply(this,[I,N,L]),G=A.browser.msie&&A.browser.version<7,B=this.sizeDiff;if(C._aspectRatio||I.shiftKey){H=this._updateRatio(H,I)}H=this._respectSize(H,I);this.propagate("resize",I);D.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!C.helper&&C.proportionallyResize){this._proportionallyResize()}this._updateCache(H);this.element.triggerHandler("resize",[I,this.ui()],this.options["resize"]);return false},mouseStop:function(I){this.options.resizing=false;var E=this.options,H=function(M){return parseInt(M,10)||0},K=this;if(E.helper){var D=E.proportionallyResize,B=D&&(/textarea/i).test(D.get(0).nodeName),C=B&&A.ui.hasScroll(D.get(0),"left")?0:K.sizeDiff.height,G=B?0:K.sizeDiff.width;var L={width:(K.size.width-G),height:(K.size.height-C)},F=(parseInt(K.element.css("left"),10)+(K.position.left-K.originalPosition.left))||null,J=(parseInt(K.element.css("top"),10)+(K.position.top-K.originalPosition.top))||null;if(!E.animate){this.element.css(A.extend(L,{top:J,left:F}))}if(E.helper&&!E.animate){this._proportionallyResize()}}if(E.preserveCursor){A("body").css("cursor","auto")}this.propagate("stop",I);if(E.helper){this.helper.remove()}return false},_updateCache:function(B){var C=this.options;this.offset=this.helper.offset();if(B.left){this.position.left=B.left}if(B.top){this.position.top=B.top}if(B.height){this.size.height=B.height}if(B.width){this.size.width=B.width}},_updateRatio:function(D,E){var F=this.options,G=this.position,C=this.size,B=this.axis;if(D.height){D.width=(C.height/F.aspectRatio)}else{if(D.width){D.height=(C.width*F.aspectRatio)}}if(B=="sw"){D.left=G.left+(C.width-D.width);D.top=null}if(B=="nw"){D.top=G.top+(C.height-D.height);D.left=G.left+(C.width-D.width)}return D},_respectSize:function(H,I){var F=this.helper,E=this.options,N=E._aspectRatio||I.shiftKey,M=this.axis,P=H.width&&E.maxWidth&&E.maxWidth<H.width,J=H.height&&E.maxHeight&&E.maxHeight<H.height,D=H.width&&E.minWidth&&E.minWidth>H.width,O=H.height&&E.minHeight&&E.minHeight>H.height;if(D){H.width=E.minWidth}if(O){H.height=E.minHeight}if(P){H.width=E.maxWidth}if(J){H.height=E.maxHeight}var C=this.originalPosition.left+this.originalSize.width,L=this.position.top+this.size.height;var G=/sw|nw|w/.test(M),B=/nw|ne|n/.test(M);if(D&&G){H.left=C-E.minWidth}if(P&&G){H.left=C-E.maxWidth}if(O&&B){H.top=L-E.minHeight}if(J&&B){H.top=L-E.maxHeight}var K=!H.width&&!H.height;if(K&&!H.left&&H.top){H.top=null}else{if(K&&!H.top&&H.left){H.left=null}}return H},_proportionallyResize:function(){var F=this.options;if(!F.proportionallyResize){return }var D=F.proportionallyResize,C=this.helper||this.element;if(!F.borderDif){var B=[D.css("borderTopWidth"),D.css("borderRightWidth"),D.css("borderBottomWidth"),D.css("borderLeftWidth")],E=[D.css("paddingTop"),D.css("paddingRight"),D.css("paddingBottom"),D.css("paddingLeft")];F.borderDif=A.map(B,function(G,I){var H=parseInt(G,10)||0,J=parseInt(E[I],10)||0;return H+J})}D.css({height:(C.height()-F.borderDif[0]-F.borderDif[2])+"px",width:(C.width()-F.borderDif[1]-F.borderDif[3])+"px"})},_renderProxy:function(){var C=this.element,F=this.options;this.elementOffset=C.offset();if(F.helper){this.helper=this.helper||A('<div style="overflow:hidden;"></div>');var B=A.browser.msie&&A.browser.version<7,D=(B?1:0),E=(B?2:-1);this.helper.addClass(F.helper).css({width:C.outerWidth()+E,height:C.outerHeight()+E,position:"absolute",left:this.elementOffset.left-D+"px",top:this.elementOffset.top-D+"px",zIndex:++F.zIndex});this.helper.appendTo("body");if(F.disableSelection){A.ui.disableSelection(this.helper.get(0))}}else{this.helper=C}},_change:{e:function(D,C,B){return{width:this.originalSize.width+C}},w:function(F,C,B){var G=this.options,D=this.originalSize,E=this.originalPosition;return{left:E.left+C,width:D.width-C}},n:function(F,C,B){var G=this.options,D=this.originalSize,E=this.originalPosition;return{top:E.top+B,height:D.height-B}},s:function(D,C,B){return{height:this.originalSize.height+B}},se:function(D,C,B){return A.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[D,C,B]))},sw:function(D,C,B){return A.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[D,C,B]))},ne:function(D,C,B){return A.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[D,C,B]))},nw:function(D,C,B){return A.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[D,C,B]))}}}));A.extend(A.ui.resizable,{defaults:{cancel:":input",distance:1,delay:0,preventDefault:true,transparent:false,minWidth:10,minHeight:10,aspectRatio:false,disableSelection:true,preserveCursor:true,autoHide:false,knobHandles:false}});A.ui.plugin.add("resizable","containment",{start:function(I,K){var E=K.options,M=A(this).data("resizable"),G=M.element;var C=E.containment,F=(C instanceof A)?C.get(0):(/parent/.test(C))?G.parent().get(0):C;if(!F){return }M.containerElement=A(F);if(/document/.test(C)||C==document){M.containerOffset={left:0,top:0};M.containerPosition={left:0,top:0};M.parentData={element:A(document),left:0,top:0,width:A(document).width(),height:A(document).height()||document.body.parentNode.scrollHeight}}else{M.containerOffset=A(F).offset();M.containerPosition=A(F).position();M.containerSize={height:A(F).innerHeight(),width:A(F).innerWidth()};var J=M.containerOffset,B=M.containerSize.height,H=M.containerSize.width,D=(A.ui.hasScroll(F,"left")?F.scrollWidth:H),L=(A.ui.hasScroll(F)?F.scrollHeight:B);M.parentData={element:F,left:J.left,top:J.top,width:D,height:L}}},resize:function(H,K){var E=K.options,N=A(this).data("resizable"),C=N.containerSize,J=N.containerOffset,G=N.size,I=N.position,L=E._aspectRatio||H.shiftKey,B={top:0,left:0},D=N.containerElement;if(D[0]!=document&&/static/.test(D.css("position"))){B=N.containerPosition}if(I.left<(E.helper?J.left:B.left)){N.size.width=N.size.width+(E.helper?(N.position.left-J.left):(N.position.left-B.left));if(L){N.size.height=N.size.width*E.aspectRatio}N.position.left=E.helper?J.left:B.left}if(I.top<(E.helper?J.top:0)){N.size.height=N.size.height+(E.helper?(N.position.top-J.top):N.position.top);if(L){N.size.width=N.size.height/E.aspectRatio}N.position.top=E.helper?J.top:0}var F=(E.helper?N.offset.left-J.left:(N.position.left-B.left))+N.sizeDiff.width,M=(E.helper?N.offset.top-J.top:N.position.top)+N.sizeDiff.height;if(F+N.size.width>=N.parentData.width){N.size.width=N.parentData.width-F;if(L){N.size.height=N.size.width*E.aspectRatio}}if(M+N.size.height>=N.parentData.height){N.size.height=N.parentData.height-M;if(L){N.size.width=N.size.height/E.aspectRatio}}},stop:function(G,J){var C=J.options,L=A(this).data("resizable"),H=L.position,I=L.containerOffset,B=L.containerPosition,D=L.containerElement;var E=A(L.helper),M=E.offset(),K=E.innerWidth(),F=E.innerHeight();if(C.helper&&!C.animate&&/relative/.test(D.css("position"))){A(this).css({left:(M.left-I.left),top:(M.top-I.top),width:K,height:F})}if(C.helper&&!C.animate&&/static/.test(D.css("position"))){A(this).css({left:B.left+(M.left-I.left),top:B.top+(M.top-I.top),width:K,height:F})}}});A.ui.plugin.add("resizable","grid",{resize:function(H,J){var D=J.options,L=A(this).data("resizable"),G=L.size,E=L.originalSize,F=L.originalPosition,K=L.axis,I=D._aspectRatio||H.shiftKey;D.grid=typeof D.grid=="number"?[D.grid,D.grid]:D.grid;var C=Math.round((G.width-E.width)/(D.grid[0]||1))*(D.grid[0]||1),B=Math.round((G.height-E.height)/(D.grid[1]||1))*(D.grid[1]||1);if(/^(se|s|e)$/.test(K)){L.size.width=E.width+C;L.size.height=E.height+B}else{if(/^(ne)$/.test(K)){L.size.width=E.width+C;L.size.height=E.height+B;L.position.top=F.top-B}else{if(/^(sw)$/.test(K)){L.size.width=E.width+C;L.size.height=E.height+B;L.position.left=F.left-C}else{L.size.width=E.width+C;L.size.height=E.height+B;L.position.top=F.top-B;L.position.left=F.left-C}}}}});A.ui.plugin.add("resizable","animate",{stop:function(I,K){var F=K.options,L=A(this).data("resizable");var E=F.proportionallyResize,B=E&&(/textarea/i).test(E.get(0).nodeName),C=B&&A.ui.hasScroll(E.get(0),"left")?0:L.sizeDiff.height,H=B?0:L.sizeDiff.width;var D={width:(L.size.width-H),height:(L.size.height-C)},G=(parseInt(L.element.css("left"),10)+(L.position.left-L.originalPosition.left))||null,J=(parseInt(L.element.css("top"),10)+(L.position.top-L.originalPosition.top))||null;L.element.animate(A.extend(D,J&&G?{top:J,left:G}:{}),{duration:F.animateDuration||"slow",easing:F.animateEasing||"swing",step:function(){var M={width:parseInt(L.element.css("width"),10),height:parseInt(L.element.css("height"),10),top:parseInt(L.element.css("top"),10),left:parseInt(L.element.css("left"),10)};if(E){E.css({width:M.width,height:M.height})}L._updateCache(M);L.propagate("animate",I)}})}});A.ui.plugin.add("resizable","ghost",{start:function(E,D){var F=D.options,B=A(this).data("resizable"),G=F.proportionallyResize,C=B.size;if(!G){B.ghost=B.element.clone()}else{B.ghost=G.clone()}B.ghost.css({opacity:0.25,display:"block",position:"relative",height:C.height,width:C.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof F.ghost=="string"?F.ghost:"");B.ghost.appendTo(B.helper)},resize:function(D,C){var E=C.options,B=A(this).data("resizable"),F=E.proportionallyResize;if(B.ghost){B.ghost.css({position:"relative",height:B.size.height,width:B.size.width})}},stop:function(D,C){var E=C.options,B=A(this).data("resizable"),F=E.proportionallyResize;if(B.ghost&&B.helper){B.helper.get(0).removeChild(B.ghost.get(0))}}});A.ui.plugin.add("resizable","alsoResize",{start:function(E,C){var F=C.options,B=A(this).data("resizable"),D=function(G){A(G).each(function(){A(this).data("resizable-alsoresize",{width:parseInt(A(this).width(),10),height:parseInt(A(this).height(),10),left:parseInt(A(this).css("left"),10),top:parseInt(A(this).css("top"),10)})})};if(typeof (F.alsoResize)=="object"){if(F.alsoResize.length){F.alsoResize=F.alsoResize[0];D(F.alsoResize)}else{A.each(F.alsoResize,function(G,H){D(G)})}}else{D(F.alsoResize)}},resize:function(F,E){var G=E.options,C=A(this).data("resizable"),D=C.originalSize,I=C.originalPosition;var H={height:(C.size.height-D.height)||0,width:(C.size.width-D.width)||0,top:(C.position.top-I.top)||0,left:(C.position.left-I.left)||0},B=function(J,K){A(J).each(function(){var N=A(this).data("resizable-alsoresize"),M={},L=K&&K.length?K:["width","height","top","left"];A.each(L||["width","height","top","left"],function(O,Q){var P=(N[Q]||0)+(H[Q]||0);if(P&&P>=0){M[Q]=P||null}});A(this).css(M)})};if(typeof (G.alsoResize)=="object"){A.each(G.alsoResize,function(J,K){B(J,K)})}else{B(G.alsoResize)}},stop:function(C,B){A(this).removeData("resizable-alsoresize-start")}})})(jQuery)
\ No newline at end of file diff --git a/themes/default/jquery/ui.tabs.min.js b/themes/default/jquery/ui.tabs.min.js deleted file mode 100755 index 784dc5b0..00000000 --- a/themes/default/jquery/ui.tabs.min.js +++ /dev/null @@ -1 +0,0 @@ -(function(A){A.widget("ui.tabs",{init:function(){this.options.event+=".tabs";this.tabify(true)},setData:function(B,C){if((/^selected/).test(B)){this.select(C)}else{this.options[B]=C;this.tabify()}},length:function(){return this.$tabs.length},tabId:function(B){return B.title&&B.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+A.data(B)},ui:function(C,B){return{options:this.options,tab:C,panel:B,index:this.$tabs.index(C)}},tabify:function(O){this.$lis=A("li:has(a[href])",this.element);this.$tabs=this.$lis.map(function(){return A("a",this)[0]});this.$panels=A([]);var P=this,D=this.options;this.$tabs.each(function(R,Q){if(Q.hash&&Q.hash.replace("#","")){P.$panels=P.$panels.add(Q.hash)}else{if(A(Q).attr("href")!="#"){A.data(Q,"href.tabs",Q.href);A.data(Q,"load.tabs",Q.href);var T=P.tabId(Q);Q.href="#"+T;var S=A("#"+T);if(!S.length){S=A(D.panelTemplate).attr("id",T).addClass(D.panelClass).insertAfter(P.$panels[R-1]||P.element);S.data("destroy.tabs",true)}P.$panels=P.$panels.add(S)}else{D.disabled.push(R+1)}}});if(O){this.element.addClass(D.navClass);this.$panels.each(function(){var Q=A(this);Q.addClass(D.panelClass)});if(D.selected===undefined){if(location.hash){this.$tabs.each(function(S,Q){if(Q.hash==location.hash){D.selected=S;if(A.browser.msie||A.browser.opera){var R=A(location.hash),T=R.attr("id");R.attr("id","");setTimeout(function(){R.attr("id",T)},500)}scrollTo(0,0);return false}})}else{if(D.cookie){var J=parseInt(A.cookie("ui-tabs"+A.data(P.element)),10);if(J&&P.$tabs[J]){D.selected=J}}else{if(P.$lis.filter("."+D.selectedClass).length){D.selected=P.$lis.index(P.$lis.filter("."+D.selectedClass)[0])}}}}D.selected=D.selected===null||D.selected!==undefined?D.selected:0;D.disabled=A.unique(D.disabled.concat(A.map(this.$lis.filter("."+D.disabledClass),function(R,Q){return P.$lis.index(R)}))).sort();if(A.inArray(D.selected,D.disabled)!=-1){D.disabled.splice(A.inArray(D.selected,D.disabled),1)}this.$panels.addClass(D.hideClass);this.$lis.removeClass(D.selectedClass);if(D.selected!==null){this.$panels.eq(D.selected).show().removeClass(D.hideClass);this.$lis.eq(D.selected).addClass(D.selectedClass);var K=function(){A(P.element).triggerHandler("tabsshow",[P.fakeEvent("tabsshow"),P.ui(P.$tabs[D.selected],P.$panels[D.selected])],D.show)};if(A.data(this.$tabs[D.selected],"load.tabs")){this.load(D.selected,K)}else{K()}}A(window).bind("unload",function(){P.$tabs.unbind(".tabs");P.$lis=P.$tabs=P.$panels=null})}for(var G=0,N;N=this.$lis[G];G++){A(N)[A.inArray(G,D.disabled)!=-1&&!A(N).hasClass(D.selectedClass)?"addClass":"removeClass"](D.disabledClass)}if(D.cache===false){this.$tabs.removeData("cache.tabs")}var C,I,B={"min-width":0,duration:1},E="normal";if(D.fx&&D.fx.constructor==Array){C=D.fx[0]||B,I=D.fx[1]||B}else{C=I=D.fx||B}var H={display:"",overflow:"",height:""};if(!A.browser.msie){H.opacity=""}function M(R,Q,S){Q.animate(C,C.duration||E,function(){Q.addClass(D.hideClass).css(H);if(A.browser.msie&&C.opacity){Q[0].style.filter=""}if(S){L(R,S,Q)}})}function L(R,S,Q){if(I===B){S.css("display","block")}S.animate(I,I.duration||E,function(){S.removeClass(D.hideClass).css(H);if(A.browser.msie&&I.opacity){S[0].style.filter=""}A(P.element).triggerHandler("tabsshow",[P.fakeEvent("tabsshow"),P.ui(R,S[0])],D.show)})}function F(R,T,Q,S){T.addClass(D.selectedClass).siblings().removeClass(D.selectedClass);M(R,Q,S)}this.$tabs.unbind(".tabs").bind(D.event,function(){var T=A(this).parents("li:eq(0)"),Q=P.$panels.filter(":visible"),S=A(this.hash);if((T.hasClass(D.selectedClass)&&!D.unselect)||T.hasClass(D.disabledClass)||A(this).hasClass(D.loadingClass)||A(P.element).triggerHandler("tabsselect",[P.fakeEvent("tabsselect"),P.ui(this,S[0])],D.select)===false){this.blur();return false}P.options.selected=P.$tabs.index(this);if(D.unselect){if(T.hasClass(D.selectedClass)){P.options.selected=null;T.removeClass(D.selectedClass);P.$panels.stop();M(this,Q);this.blur();return false}else{if(!Q.length){P.$panels.stop();var R=this;P.load(P.$tabs.index(this),function(){T.addClass(D.selectedClass).addClass(D.unselectClass);L(R,S)});this.blur();return false}}}if(D.cookie){A.cookie("ui-tabs"+A.data(P.element),P.options.selected,D.cookie)}P.$panels.stop();if(S.length){var R=this;P.load(P.$tabs.index(this),Q.length?function(){F(R,T,Q,S)}:function(){T.addClass(D.selectedClass);L(R,S)})}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}if(A.browser.msie){this.blur()}return false});if(!(/^click/).test(D.event)){this.$tabs.bind("click.tabs",function(){return false})}},add:function(E,D,C){if(C==undefined){C=this.$tabs.length}var G=this.options;var I=A(G.tabTemplate.replace(/#\{href\}/g,E).replace(/#\{label\}/g,D));I.data("destroy.tabs",true);var H=E.indexOf("#")==0?E.replace("#",""):this.tabId(A("a:first-child",I)[0]);var F=A("#"+H);if(!F.length){F=A(G.panelTemplate).attr("id",H).addClass(G.hideClass).data("destroy.tabs",true)}F.addClass(G.panelClass);if(C>=this.$lis.length){I.appendTo(this.element);F.appendTo(this.element[0].parentNode)}else{I.insertBefore(this.$lis[C]);F.insertBefore(this.$panels[C])}G.disabled=A.map(G.disabled,function(K,J){return K>=C?++K:K});this.tabify();if(this.$tabs.length==1){I.addClass(G.selectedClass);F.removeClass(G.hideClass);var B=A.data(this.$tabs[0],"load.tabs");if(B){this.load(C,B)}}this.element.triggerHandler("tabsadd",[this.fakeEvent("tabsadd"),this.ui(this.$tabs[C],this.$panels[C])],G.add)},remove:function(B){var D=this.options,E=this.$lis.eq(B).remove(),C=this.$panels.eq(B).remove();if(E.hasClass(D.selectedClass)&&this.$tabs.length>1){this.select(B+(B+1<this.$tabs.length?1:-1))}D.disabled=A.map(A.grep(D.disabled,function(G,F){return G!=B}),function(G,F){return G>=B?--G:G});this.tabify();this.element.triggerHandler("tabsremove",[this.fakeEvent("tabsremove"),this.ui(E.find("a")[0],C[0])],D.remove)},enable:function(B){var C=this.options;if(A.inArray(B,C.disabled)==-1){return }var D=this.$lis.eq(B).removeClass(C.disabledClass);if(A.browser.safari){D.css("display","inline-block");setTimeout(function(){D.css("display","block")},0)}C.disabled=A.grep(C.disabled,function(F,E){return F!=B});this.element.triggerHandler("tabsenable",[this.fakeEvent("tabsenable"),this.ui(this.$tabs[B],this.$panels[B])],C.enable)},disable:function(C){var B=this,D=this.options;if(C!=D.selected){this.$lis.eq(C).addClass(D.disabledClass);D.disabled.push(C);D.disabled.sort();this.element.triggerHandler("tabsdisable",[this.fakeEvent("tabsdisable"),this.ui(this.$tabs[C],this.$panels[C])],D.disable)}},select:function(B){if(typeof B=="string"){B=this.$tabs.index(this.$tabs.filter("[href$="+B+"]")[0])}this.$tabs.eq(B).trigger(this.options.event)},load:function(G,K){var L=this,D=this.options,E=this.$tabs.eq(G),J=E[0],H=K==undefined||K===false,B=E.data("load.tabs");K=K||function(){};if(!B||!H&&A.data(J,"cache.tabs")){K();return }var M=function(N){var O=A(N),P=O.find("*:last");return P.length&&P.is(":not(img)")&&P||O};var C=function(){L.$tabs.filter("."+D.loadingClass).removeClass(D.loadingClass).each(function(){if(D.spinner){M(this).parent().html(M(this).data("label.tabs"))}});L.xhr=null};if(D.spinner){var I=M(J).html();M(J).wrapInner("<em></em>").find("em").data("label.tabs",I).html(D.spinner)}var F=A.extend({},D.ajaxOptions,{url:B,success:function(O,N){A(J.hash).html(O);C();if(D.cache){A.data(J,"cache.tabs",true)}A(L.element).triggerHandler("tabsload",[L.fakeEvent("tabsload"),L.ui(L.$tabs[G],L.$panels[G])],D.load);D.ajaxOptions.success&&D.ajaxOptions.success(O,N);K()}});if(this.xhr){this.xhr.abort();C()}E.addClass(D.loadingClass);setTimeout(function(){L.xhr=A.ajax(F)},0)},url:function(C,B){this.$tabs.eq(C).removeData("cache.tabs").data("load.tabs",B)},destroy:function(){var B=this.options;this.element.unbind(".tabs").removeClass(B.navClass).removeData("tabs");this.$tabs.each(function(){var C=A.data(this,"href.tabs");if(C){this.href=C}var D=A(this).unbind(".tabs");A.each(["href","load","cache"],function(E,F){D.removeData(F+".tabs")})});this.$lis.add(this.$panels).each(function(){if(A.data(this,"destroy.tabs")){A(this).remove()}else{A(this).removeClass([B.selectedClass,B.unselectClass,B.disabledClass,B.panelClass,B.hideClass].join(" "))}})},fakeEvent:function(B){return A.event.fix({type:B,target:this.element[0]})}});A.ui.tabs.defaults={unselect:false,event:"click",disabled:[],cookie:null,spinner:"Loading…",cache:false,idPrefix:"ui-tabs-",ajaxOptions:{},fx:null,tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>',panelTemplate:"<div></div>",navClass:"ui-tabs-nav",selectedClass:"ui-tabs-selected",unselectClass:"ui-tabs-unselect",disabledClass:"ui-tabs-disabled",panelClass:"ui-tabs-panel",hideClass:"ui-tabs-hide",loadingClass:"ui-tabs-loading"};A.ui.tabs.getter="length";A.extend(A.ui.tabs.prototype,{rotation:null,rotate:function(C,F){F=F||false;var B=this,E=this.options.selected;function G(){B.rotation=setInterval(function(){E=++E<B.$tabs.length?E:0;B.select(E)},C)}function D(H){if(!H||H.clientX){clearInterval(B.rotation)}}if(C){G();if(!F){this.$tabs.bind(this.options.event,D)}else{this.$tabs.bind(this.options.event,function(){D();E=B.options.selected;G()})}}else{D();this.$tabs.unbind(this.options.event,D)}}})})(jQuery)
\ No newline at end of file diff --git a/themes/default/views/page.html.php b/themes/default/views/page.html.php index 6d955b4c..5669aa0b 100644 --- a/themes/default/views/page.html.php +++ b/themes/default/views/page.html.php @@ -21,11 +21,7 @@ <script src="<?= url::file("lib/jquery.form.js") ?>" type="text/javascript"></script> <script src="<?= $theme->url("jquery/superfish.js") ?>" type="text/javascript"></script> <?= $theme->head() ?> - <script src="<?= $theme->url("jquery/ui.core.js") ?>" type="text/javascript"></script> - <script src="<?= $theme->url("jquery/ui.tabs.min.js") ?>" type="text/javascript"></script> - <script src="<?= $theme->url("jquery/ui.draggable.min.js") ?>" type="text/javascript"></script> - <script src="<?= $theme->url("jquery/ui.resizable.min.js") ?>" type="text/javascript"></script> - <script src="<?= $theme->url("jquery/ui.dialog.min.js") ?>" type="text/javascript"></script> + <script src="<?= $theme->url("lib/jquery-ui.packed.js") ?>" type="text/javascript"></script> <script src="<?= $theme->url("jquery/jquery.dimensions.min.js") ?>" type="text/javascript"></script> <script src="<?= $theme->url("js/ui.init.js") ?>" type="text/javascript"></script> </head> |