LJ/www/trckr/js/libs/jquery.imgareaselect.pack.js
2020-09-19 14:28:56 +02:00

2 lines
8.0 KiB
JavaScript

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(m($){1f W=2v.4N,D=2v.4M,F=2v.4L,u=2v.4K;m V(){C $("<4J/>")};$.N=m(T,c){1f O=$(T),1F,A=V(),1j=V(),I=V().r(V()).r(V()).r(V()),B=V().r(V()).r(V()).r(V()),E=$([]),1K,G,l,17={v:0,l:0},Q,M,1k,1g={v:0,l:0},12=0,1J="1H",2k,2j,1s,1r,S,1A,1z,2o,2n,14,1P,a,b,j,g,f={a:0,b:0,j:0,g:0,H:0,L:0},2u=R.4I,$p,d,i,o,w,h,2p;m 1m(x){C x+17.v-1g.v};m 1l(y){C y+17.l-1g.l};m 1a(x){C x-17.v+1g.v};m 19(y){C y-17.l+1g.l};m 1y(3H){C 3H.4H-1g.v};m 1x(3G){C 3G.4G-1g.l};m 13(31){1f 1i=31||1s,1h=31||1r;C{a:u(f.a*1i),b:u(f.b*1h),j:u(f.j*1i),g:u(f.g*1h),H:u(f.j*1i)-u(f.a*1i),L:u(f.g*1h)-u(f.b*1h)}};m 23(a,b,j,g,30){1f 1i=30||1s,1h=30||1r;f={a:u(a/1i||0),b:u(b/1h||0),j:u(j/1i||0),g:u(g/1h||0)};f.H=f.j-f.a;f.L=f.g-f.b};m 1e(){9(!1F||!O.H()){C}17={v:u(O.2t().v),l:u(O.2t().l)};Q=O.2X();M=O.3F();17.l+=(O.2Z()-M)>>1;17.v+=(O.2q()-Q)>>1;1A=u(c.4F/1s)||0;1z=u(c.4E/1r)||0;2o=u(F(c.4D/1s||1<<24,Q));2n=u(F(c.4C/1r||1<<24,M));9($().4B=="1.3.2"&&1J=="21"&&!2u["4A"]){17.l+=D(R.1p.2r,2u.2r);17.v+=D(R.1p.2s,2u.2s)}1g=/1H|4z/.1W(1k.q("1o"))?{v:u(1k.2t().v)-1k.2s(),l:u(1k.2t().l)-1k.2r()}:1J=="21"?{v:$(R).2s(),l:$(R).2r()}:{v:0,l:0};G=1m(0);l=1l(0);9(f.j>Q||f.g>M){1T()}};m 1U(3D){9(!1P){C}A.q({v:1m(f.a),l:1l(f.b)}).r(1j).H(w=f.H).L(h=f.L);1j.r(I).r(E).q({v:0,l:0});I.H(D(w-I.2q()+I.2X(),0)).L(D(h-I.2Z()+I.3F(),0));$(B[0]).q({v:G,l:l,H:f.a,L:M});$(B[1]).q({v:G+f.a,l:l,H:w,L:f.b});$(B[2]).q({v:G+f.j,l:l,H:Q-f.j,L:M});$(B[3]).q({v:G+f.a,l:l+f.g,H:w,L:M-f.g});w-=E.2q();h-=E.2Z();2N(E.3c){15 8:$(E[4]).q({v:w>>1});$(E[5]).q({v:w,l:h>>1});$(E[6]).q({v:w>>1,l:h});$(E[7]).q({l:h>>1});15 4:E.3E(1,3).q({v:w});E.3E(2,4).q({l:h})}9(3D!==Y){9($.N.2Y!=2Q){$(R).U($.N.2z,$.N.2Y)}9(c.1S){$(R)[$.N.2z]($.N.2Y=2Q)}}9($.1b.1E&&I.2q()-I.2X()==2){I.q("3C",0);3v(m(){I.q("3C","4y")},0)}};m 22(3B){1e();1U(3B);a=1m(f.a);b=1l(f.b);j=1m(f.j);g=1l(f.g)};m 27(2W,2w){c.1O?2W.4x(c.1O,2w):2W.1q()};m 1c(2V){1f x=1a(1y(2V))-f.a,y=19(1x(2V))-f.b;9(!2p){1e();2p=11;A.1G("4w",m(){2p=Y})}S="";9(c.2D){9(y<=c.1V){S="n"}X{9(y>=f.L-c.1V){S="s"}}9(x<=c.1V){S+="w"}X{9(x>=f.H-c.1V){S+="e"}}}A.q("2U",S?S+"-18":c.26?"4v":"");9(1K){1K.4u()}};m 2R(4t){$("1p").q("2U","");9(c.4s||f.H*f.L==0){27(A.r(B),m(){$(J).1q()})}$(R).U("P",2l);A.P(1c);c.2f(T,13())};m 2C(1X){9(1X.3x!=1){C Y}1e();9(S){$("1p").q("2U",S+"-18");a=1m(f[/w/.1W(S)?"j":"a"]);b=1l(f[/n/.1W(S)?"g":"b"]);$(R).P(2l).1G("1w",2R);A.U("P",1c)}X{9(c.26){2k=G+f.a-1y(1X);2j=l+f.b-1x(1X);A.U("P",1c);$(R).P(2S).1G("1w",m(){c.2f(T,13());$(R).U("P",2S);A.P(1c)})}X{O.1N(1X)}}C Y};m 1v(3A){9(14){9(3A){j=D(G,F(G+Q,a+W(g-b)*14*(j>a||-1)));g=u(D(l,F(l+M,b+W(j-a)/14*(g>b||-1))));j=u(j)}X{g=D(l,F(l+M,b+W(j-a)/14*(g>b||-1)));j=u(D(G,F(G+Q,a+W(g-b)*14*(j>a||-1))));g=u(g)}}};m 1T(){a=F(a,G+Q);b=F(b,l+M);9(W(j-a)<1A){j=a-1A*(j<a||-1);9(j<G){a=G+1A}X{9(j>G+Q){a=G+Q-1A}}}9(W(g-b)<1z){g=b-1z*(g<b||-1);9(g<l){b=l+1z}X{9(g>l+M){b=l+M-1z}}}j=D(G,F(j,G+Q));g=D(l,F(g,l+M));1v(W(j-a)<W(g-b)*14);9(W(j-a)>2o){j=a-2o*(j<a||-1);1v()}9(W(g-b)>2n){g=b-2n*(g<b||-1);1v(11)}f={a:1a(F(a,j)),j:1a(D(a,j)),b:19(F(b,g)),g:19(D(b,g)),H:W(j-a),L:W(g-b)};1U();c.2g(T,13())};m 2l(2T){j=/w|e|^$/.1W(S)||14?1y(2T):1m(f.j);g=/n|s|^$/.1W(S)||14?1x(2T):1l(f.g);1T();C Y};m 1u(3z,3y){j=(a=3z)+f.H;g=(b=3y)+f.L;$.2c(f,{a:1a(a),b:19(b),j:1a(j),g:19(g)});1U();c.2g(T,13())};m 2S(2m){a=D(G,F(2k+1y(2m),G+Q-f.H));b=D(l,F(2j+1x(2m),l+M-f.L));1u(a,b);2m.4r();C Y};m 2h(){$(R).U("P",2h);1e();j=a;g=b;1T();S="";9(!B.2y(":4q")){A.r(B).1q().2E(c.1O||0)}1P=11;$(R).U("1w",1M).P(2l).1G("1w",2R);A.U("P",1c);c.3w(T,13())};m 1M(){$(R).U("P",2h).U("1w",1M);27(A.r(B));23(1a(a),19(b),1a(a),19(b));9(!(J 4p $.N)){c.2g(T,13());c.2f(T,13())}};m 2A(2i){9(2i.3x!=1||B.2y(":4o")){C Y}1e();2k=a=1y(2i);2j=b=1x(2i);$(R).P(2h).1w(1M);C Y};m 2B(){22(Y)};m 2x(){1F=11;25(c=$.2c({1R:"4n",26:11,20:"1p",2D:11,1V:10,3u:m(){},3w:m(){},2g:m(){},2f:m(){}},c));A.r(B).q({3a:""});9(c.2F){1P=11;1e();1U();A.r(B).1q().2E(c.1O||0)}3v(m(){c.3u(T,13())},0)};1f 2Q=m(16){1f k=c.1S,d,t,2M=16.4m;d=!1L(k.2O)&&(16.2e||16.3r.2e)?k.2O:!1L(k.2a)&&16.3s?k.2a:!1L(k.2b)&&16.3t?k.2b:!1L(k.2P)?k.2P:10;9(k.2P=="18"||(k.2b=="18"&&16.3t)||(k.2a=="18"&&16.3s)||(k.2O=="18"&&(16.2e||16.3r.2e))){2N(2M){15 37:d=-d;15 39:t=D(a,j);a=F(a,j);j=D(t+d,a);1v();1t;15 38:d=-d;15 40:t=D(b,g);b=F(b,g);g=D(t+d,b);1v(11);1t;3q:C}1T()}X{a=F(a,j);b=F(b,g);2N(2M){15 37:1u(D(a-d,G),b);1t;15 38:1u(a,D(b-d,l));1t;15 39:1u(a+F(d,Q-1a(j)),b);1t;15 40:1u(a,b+F(d,M-19(g)));1t;3q:C}}C Y};m 1Q(3p,2L){3n(1f 2d 4l 2L){9(c[2d]!==1Y){3p.q(2L[2d],c[2d])}}};m 25(K){9(K.20){(1k=$(K.20)).3h(A.r(B))}$.2c(c,K);1e();9(K.2K!=3o){E.1n();E=$([]);i=K.2K?K.2K=="4k"?4:8:0;3d(i--){E=E.r(V())}E.29(c.1R+"-4j").q({1o:"1H",35:0,1I:12+1||1});9(!4i(E.q("H"))>=0){E.H(5).L(5)}9(o=c.2J){E.q({2J:o,2G:"3k"})}1Q(E,{3l:"2I-28",3j:"2H-28",3m:"1d"})}1s=c.4h/Q||1;1r=c.4g/M||1;9(K.a!=3o){23(K.a,K.b,K.j,K.g);K.2F=!K.1q}9(K.1S){c.1S=$.2c({2b:1,2a:"18"},K.1S)}B.29(c.1R+"-4f");1j.29(c.1R+"-4e");3n(i=0;i++<4;){$(I[i-1]).29(c.1R+"-2I"+i)}1Q(1j,{4d:"2H-28",4c:"1d"});1Q(I,{3m:"1d",2J:"2I-H"});1Q(B,{4b:"2H-28",4a:"1d"});9(o=c.3l){$(I[0]).q({2G:"3k",3i:o})}9(o=c.3j){$(I[1]).q({2G:"49",3i:o})}A.3h(1j.r(I).r(1K).r(E));9($.1b.1E){9(o=(B.q("3g")||"").3f(/1d=(\\d+)/)){B.q("1d",o[1]/1Z)}9(o=(I.q("3g")||"").3f(/1d=(\\d+)/)){I.q("1d",o[1]/1Z)}}9(K.1q){27(A.r(B))}X{9(K.2F&&1F){1P=11;A.r(B).2E(c.1O||0);22()}}14=(d=(c.48||"").47(/:/))[0]/d[1];O.r(B).U("1N",2A);9(c.1D||c.1C===Y){A.U("P",1c).U("1N",2C);$(3e).U("18",2B)}X{9(c.1C||c.1D===Y){9(c.2D||c.26){A.P(1c).1N(2C)}$(3e).18(2B)}9(!c.46){O.r(B).1N(2A)}}c.1C=c.1D=1Y};J.1n=m(){25({1D:11});A.r(B).1n()};J.45=m(){C c};J.32=25;J.44=13;J.43=23;J.42=1M;J.41=22;$p=O;3d($p.3c){12=D(12,!1L($p.q("z-3b"))?$p.q("z-3b"):12);9($p.q("1o")=="21"){1J="21"}$p=$p.20(":3Z(1p)")}12=c.1I||12;9($.1b.1E){O.3Y("3X","3W")}$.N.2z=$.1b.1E||$.1b.3V?"3U":"3T";9($.1b.3S){1K=V().q({H:"1Z%",L:"1Z%",1o:"1H",1I:12+2||2})}A.r(B).q({3a:"36",1o:1J,3R:"36",1I:12||"0"});A.q({1I:12+2||2});1j.r(I).q({1o:"1H",35:0});T.34||T.3Q=="34"||!O.2y("3P")?2x():O.1G("3O",2x);9(!1F&&$.1b.1E&&$.1b.3N>=7){T.33=T.33}};$.2w.N=m(Z){Z=Z||{};J.3M(m(){9($(J).1B("N")){9(Z.1n){$(J).1B("N").1n();$(J).3L("N")}X{$(J).1B("N").32(Z)}}X{9(!Z.1n){9(Z.1C===1Y&&Z.1D===1Y){Z.1C=11}$(J).1B("N",3K $.N(J,Z))}}});9(Z.3J){C $(J).1B("N")}C J}})(3I);',62,298,'|||||||||if|x1|y1|_7|||_23|y2|||x2||top|function||||css|add|||_4|left|||||_a|_d|return|_2|_e|_3|_10|width|_c|this|_54|height|_13|imgAreaSelect|_8|mousemove|_12|document|_1c|_6|unbind|_5|_1|else|false|_55||true|_16|_2c|_21|case|_4f|_11|resize|_29|_28|browser|_39|opacity|_30|var|_15|sy|sx|_b|_14|_27|_26|remove|position|body|hide|_1b|_1a|break|_44|_41|mouseup|evY|evX|_1e|_1d|data|enable|disable|msie|_9|one|absolute|zIndex|_17|_f|isNaN|_49|mousedown|fadeSpeed|_22|_50|classPrefix|keys|_31|_32|resizeMargin|test|_3f|undefined|100|parent|fixed|_35|_2e||_4e|movable|_37|color|addClass|ctrl|shift|extend|_53|altKey|onSelectEnd|onSelectChange|_48|_4b|_19|_18|_3d|_47|_20|_1f|_25|outerWidth|scrollTop|scrollLeft|offset|_24|Math|fn|_4d|is|keyPress|_4a|_4c|_3e|resizable|fadeIn|show|borderStyle|background|border|borderWidth|handles|_52|key|switch|alt|arrows|_34|_3b|_40|_43|cursor|_3a|_38|innerWidth|onKeyPress|outerHeight|_2f|_2d|setOptions|src|complete|fontSize|hidden||||visibility|index|length|while|window|match|filter|append|borderColor|borderColor2|solid|borderColor1|borderOpacity|for|null|_51|default|originalEvent|ctrlKey|shiftKey|onInit|setTimeout|onSelectStart|which|_46|_45|_42|_36|margin|_33|slice|innerHeight|_2b|_2a|jQuery|instance|new|removeData|each|version|load|img|readyState|overflow|opera|keypress|keydown|safari|on|unselectable|attr|not||update|cancelSelection|setSelection|getSelection|getOptions|persistent|split|aspectRatio|dashed|outerOpacity|outerColor|selectionOpacity|selectionColor|selection|outer|imageHeight|imageWidth|parseInt|handle|corners|in|keyCode|imgareaselect|animated|instanceof|visible|preventDefault|autoHide|_3c|toggle|move|mouseout|fadeOut|auto|relative|getBoundingClientRect|jquery|maxHeight|maxWidth|minHeight|minWidth|pageY|pageX|documentElement|div|round|min|max|abs'.split('|')))