-
Notifications
You must be signed in to change notification settings - Fork 357
/
touch-0.2.11-min.js
1 lines (1 loc) · 10.8 KB
/
touch-0.2.11-min.js
1
eval(function(h,b,j,f,g,i){g=function(a){return(a<b?"":g(parseInt(a/b)))+((a=a%b)>35?String.fromCharCode(a+29):a.toString(36))};if(!"".replace(/^/,String)){while(j--){i[g(j)]=f[j]||g(j)}f=[function(a){return i[a]}];g=function(){return"\\w+"};j=1}while(j--){if(f[j]){h=h.replace(new RegExp("\\b"+g(j)+"\\b","g"),f[j])}}return h}("6 31=31||{};(h(28,1a){'51 4Z';6 H=(h(){6 2u=2F.2u,17=2u.17,2v=17.1t(/(4Y)[\\s\\/]+([\\d\\.]+)/),1h=17.1t(/(3C|3v|3E)\\s+52\\s([\\53\\.]+)/),2w=17.1t(/(55\\s+54)\\s([\\d\\.]+)/),2I=/4X\\/[\\d.]+/i.1F(17),3P=1h?(2u.4W?2I:(/4Q/i.1F(17)&&!/4P/i.1F(17)&&!/4O/i.1F(17))):E,H={};9(2v){H.2v=q;H.22=2v[2]}9(1h){H.1h=q;H.22=1h[2].4V(/4U/g,'.');H.2A=/^7/.1F(H.22);9(1h[1]==='3C'){H.4T=q}r 9(1h[1]==='3v'){H.56=q;H.57=4N.5k==5j}r 9(1h[1]==='3E'){H.5l=q}}9(2w){H.2w=q;H.22=2w[2];H.5o=/^8/.1F(H.22)}9(2I){H.5a=q}9(3P){H.59=q}k H})();6 3N={'1J':'1M','1P':'1N','1T':'1W','1R':'1K'};6 o={12:h(2x){k 4A.2y.58.1v(2x).1t(/\\s([a-z|A-Z]+)/)[1].3F()},4h:h(b){9(b.2H){k\"#\"+b.2H}9(b.3H){6 3G=b.3H.1g(/\\s+/);k\".\"+3G.5b(\".\")}r 9(b===1p){k\"3K\"}r{k b.5c.3F()}},2m:h(I,3J){k I.5f(3J)},5e:h(b){k b.M},V:h(c){k 3N[c]||c},2o:h(){6 13=1p.5d(\"3M\");9(!13){13=1p.5p(\"4D\");13.2H=\"3M\";1p.3K.4C(13)}6 26=13.26;6 2J=13.2J;26.4M(13);26.4K(13,2J)},2V:h(2x){k 3X.4I(3X.4G(2x))}};6 14=0;6 29=[];6 v=h(b,c,S){S=S||{};6 e,43={4H:q,4E:q,S:S};9(2q 32!=='2p'){e=4L 32(c,43);9(b){b.4a(e)}}r{e=1p.4J(\"32\");e.4F(c,q,q,S);9(b){b.4a(e)}}};6 2z=h(b,c,n){b.M=b.M||{};9(!b.M[c]){b.M[c]=[n]}r{b.M[c].1n(n)}6 G=h(e){9(H.2A){o.2o()}e.1i=e;e.3B=h(){1d=q};1D(6 p 1G e.S){9(p!=='K'){e[p]=e.S[p]}}6 11=n.1v(e.I,e);9(2q 11!==\"2p\"&&!11){e.34();e.2R()}};n.G=n.G||{};9(!n.G[c]){n.G[c]=[14++]}r{n.G[c].1n(14++)}29.1n(G);9(b.2G){b.2G(c,G,E)}};6 3d=h(b,c,n){9(!n){6 2s=b.M[c];9(2s&&2s.u){2s.J(h(n){b.1H(c,n,E)})}}r{6 1s=n.G[c];9(1s&&1s.u){1s.J(h(14){9(b.1H){b.1H(c,29[14],E)}})}}};6 3r=h(b,c,W,n){6 G=h(e){6 I,11;e.1i=e;e.3B=h(){1d=q};1D(6 p 1G e.S){9(p!=='K'){e[p]=e.S[p]}}6 2l=o.4h(b)+\" \"+W;6 1t=o.2m(e.I,2l);6 2U=o.2m(e.I,2l+\" \"+e.I.66);9(!1t&&2U){9(H.2A){o.2o()}I=e.I;2Z(!o.2m(I,2l)){I=I.26}11=n.1v(e.I,e);9(2q 11!==\"2p\"&&!11){e.34();e.2R()}}r{9(H.2A){o.2o()}9(1t||2U){11=n.1v(e.I,e);9(2q 11!==\"2p\"&&!11){e.34();e.2R()}}}};n.G=n.G||{};9(!n.G[c]){n.G[c]=[14++]}r{n.G[c].1n(14++)}29.1n(G);b.M=b.M||{};9(!b.M[c]){b.M[c]=[G]}r{b.M[c].1n(G)}9(b.2G){b.2G(c,G,E)}};6 2r=h(b,c,W,n){9(!n){6 M=b.M[c];M.J(h(G){b.1H(c,G,E)})}r{6 1s=n.G[c];9(1s.u){1s.J(h(14){9(b.1H){b.1H(c,29[14],E)}})}}};6 F={20:q,4l:q,3p:10,1r:q,3i:67,47:3Q,U:q,2c:3Q,3m:18,42:5,39:q,1z:q,4r:0,4y:0};6 P=('68'1G 2F);6 w={6a:'1J',69:'1P',5q:'1T',6c:'1R',63:'1M',5Y:'1N',5X:'1W',5Z:'60',4m:'62',37:'61',4t:'1z',4o:'6b',4q:'6e',2K:'6i',2T:'6g',2M:'6h',4e:'6d',4i:'6f',4b:'6j',4d:'64',3O:'5V',4g:'5A',4c:'5z',2d:'U',46:'39',44:'5W',49:'5B',5C:'1r',3l:'20',3k:'5E'};h 3b(f){9(P){6 2X=[];6 2E=O;1D(6 t=0,3W=f.1w.u;t<3W;t++){2E=f.1w[t];2X.1n({x:2E.3U,y:2E.3T})}k 2X}r{k[{x:f.3U,y:f.3T}]}}h 1q(33,35){6 x=35.x-33.x,y=35.y-33.y;k 1b.5s((x*x)+(y*y))}h Q(f){k f.1w?f.1w.u:1}h 4n(2B,2C){9(2B.u>=2&&2C.u>=2){6 3S=1q(2B[1],2B[0]);6 3R=1q(2C[1],2C[0]);k 3R/3S}k 1}h 40(1C,1y){k 1b.5u(1y.y-1C.y,1y.x-1C.x)*23/1b.3u}h 2n(1C,1y){6 N=1b.5w((1y.y-1C.y)*-1/(1y.x-1C.x))*(23/1b.3u);k(N<0?(N+23):N)}h 41(N){6 2O={4j:N<-45&&N>-2D,4f:N>=45&&N<2D,T:N>=2D||N<=-2D,2i:N>=-45&&N<=45};1D(6 2P 1G 2O){9(2O[2P])k 2P}k O}h 4v(b){6 T=0,1k=0;2Z(b.3A){T+=b.5Q;1k+=b.5P;b=b.3A}k{T:T,1k:1k}}h 2k(){3c=3y=3g=O;2j=1c=2b=2a=E;2f=E;l={};1d=E}h 5R(f){k(f.K==='1J'||f.K==='1M')}h 1S(f){k(f.K==='1P'||f.K==='1N')}h 1u(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(f){6 b=f.I;9(!1c||!l.C||Q(f)>1){k}6 1f=3s.1f();6 1e=1f-1U;6 19=1q(l.B[0],l.C[0]);6 1A={x:l.C[0].x-1Q.T,y:l.C[0].y-1Q.1k};6 2h=40(l.B[0],l.C[0]);6 1x=41(2h);6 2N=1e/5J;6 2Q=((10-F.42)*10*2N*2N);6 m={K:w.2d,1i:f,1A:1A,1x:1x,19:19,5K:l.C[0].x-l.B[0].x,5M:l.C[0].y-l.B[0].y,x:l.C[0].x-l.B[0].x,y:l.C[0].y-l.B[0].y,2h:2h,5L:1e,1V:Q(f),2Q:2Q};9(F.U){6 38=h(){6 1Z=w;3x(1x){R'4j':v(b,1Z.4g,m);1m;R'4f':v(b,1Z.4c,m);1m;R'T':v(b,1Z.4d,m);1m;R'2i':v(b,1Z.3O,m);1m}};9(!2b){m.Y=m.U='B';2b=q;v(b,w.4e,m)}r 9(1S(f)){m.Y=m.U='C';v(b,w.4i,m);9(1e>F.2c&&1e<F.2c+50&&19>F.3m){38();v(b,w.2d,m,E)}}r 9(1u(f)||f.K==='1K'){m.Y=m.U='1O';v(b,w.4b,m);9(F.2c>1e&&19>F.3m){38();v(b,w.2d,m,E)}}}9(F.39){9(!2f){m.Y=m.U='B';2f=q;v(b,w.44,m)}r 9(1S(f)){m.Y=m.U='C';v(b,w.46,m)}r 9(1u(f)){m.Y=m.U='1O';v(b,w.49,m)}}},20:h(f){6 b=f.I;9(F.20){6 1f=3s.1f();6 1e=1f-1U;6 19=1q(l.B[0],l.C?l.C[0]:l.B[0]);3o(2e);6 4u=(h(){9(24&&F.4l&&(1U-3f)<F.47){6 4x=1q(24,l.B[0]);9(4x<16)k q}k E})();9(4u){3o(3e);v(b,w.3k,{K:w.3k,1i:f,1A:l.B[0]});k}9(F.3p<19)k;9(F.3i>1e&&Q(f)<=1){2j=q;3f=1f;24=l.B[0];3e=4B(h(){v(b,w.3l,{K:w.3l,1i:f,1V:Q(f),1A:24})},5N)}}},1r:h(f){6 b=f.I;9(F.1r){3o(2e);2e=4B(h(){9(!l.B)k;6 19=1q(l.B[0],l.C?l.C[0]:l.B[0]);9(F.3p<19)k;9(!2j){v(b,\"1r\",{K:'1r',1i:f,1V:Q(f),1A:l.B[0]})}},F.3i)}}};6 3I=h(f){6 b=f.I;3x(f.K){R'1J':R'1M':1o=[];1c=q;9(!l.B||l.B.u<2){l.B=3b(f)}9(Q(f)>=2){1Y=2g(2n(l.B[0],l.B[1]),10)}1U=3s.1f();3c=f;1Q={};6 3j=b.5G();6 1I=1p.5F;1Q={1k:3j.1k+(2F.5v||1I.5t)-(1I.5r||0),T:3j.T+(2F.5x||1I.5y)-(1I.5D||0)};15.1r(f);1m;R'1P':R'1N':9(!1c||!l.B)k;l.C=3b(f);9(Q(f)>=2){15.1z(f)}r 9(1d){15.3h(f)}r{15.U(f)}1m;R'1T':R'1R':R'1W':R'1K':9(!1c)k;3g=f;9(2a){15.1z(f)}r 9(1d){15.3h(f)}r 9(2b){15.U(f)}r{15.20(f)}2k();1Y=0;1B=0;9(f.1w&&f.1w.u===1){1c=q;1d=q}1m}};6 21=h(){6 L,n,1l,W,j=25;9(j.u<2||j>4){k 3D.48(\"4s 25!\")}6 D=o.12(j[0])==='1L'?28.3q(j[0]):j[0];D=D.u?3a.2y.4p.1v(D):[D];9(j.u===3&&o.12(j[1])==='1L'){L=j[1].1g(\" \");n=j[2];L.J(h(c){9(!P){c=o.V(c)}D.J(h(b){2z(b,c,n)})});k}h 3Y(c){9(!P){c=o.V(c)}D.J(h(b){3r(b,c,W,1l[c])})}9(j.u===3&&o.12(j[1])==='3n'){1l=j[1];W=j[2];1D(6 3w 1G 1l){3Y(3w)}k}h 3t(c){9(!P){c=o.V(c)}D.J(h(b){2z(b,c,1l[c])})}9(j.u===2&&o.12(j[1])==='3n'){1l=j[1];1D(6 3z 1G 1l){3t(3z)}k}9(j.u===4&&o.12(j[2])===\"3n\"){L=j[1].1g(\" \");n=j[3];L.J(h(c){9(!P){c=o.V(c)}D.J(h(b){2z(b,c,n)})});k}9(j.u===4){6 b=D[0];L=j[1].1g(\" \");W=j[2];n=j[3];L.J(h(c){9(!P){c=o.V(c)}3r(b,c,W,n)});k}};6 2t=h(){6 L,n;6 j=25;9(j.u<1||j.u>4){k 3D.48(\"4s 25!\")}6 D=o.12(j[0])==='1L'?28.3q(j[0]):j[0];D=D.u?3a.2y.4p.1v(D):[D];9(j.u===1||j.u===2){D.J(h(b){L=j[1]?j[1].1g(\" \"):4A.65(b.M);9(L.u){L.J(h(c){9(!P){c=o.V(c)}3d(b,c);2r(b,c)})}});k}9(j.u===3&&o.12(j[2])==='h'){n=j[2];D.J(h(b){L=j[1].1g(\" \");L.J(h(c){9(!P){c=o.V(c)}3d(b,c,n)})});k}9(j.u===3&&o.12(j[2])==='1L'){6 W=j[2];D.J(h(b){L=j[1].1g(\" \");L.J(h(c){9(!P){c=o.V(c)}2r(b,c,W)})});k}9(j.u===4){n=j[3];D.J(h(b){L=j[1].1g(\" \");L.J(h(c){9(!P){c=o.V(c)}2r(b,c,W,n)})});k}};6 4w=h(b,c,S){6 j=25;9(!P){c=o.V(c)}6 D=o.12(j[0])==='1L'?28.3q(j[0]):j[0];D=D.u?3a.2y.1v(D):[D];D.J(h(b){v(b,c,S)})};h 3L(){6 3V=P?'1J 1P 1T 1R':'1W 1M 1N 1K';21(28,3V,3I)}3L();1a.5g=21;1a.5h=2t;1a.5n=21;1a.5m=2t;1a.5i=21;1a.4S=2t;1a.F=F;1a.4R=4w})(1p,31);",62,392,"||||||var|||if||el|evt|||ev||function||args|return|pos|eventObj|handler|utils||true|else|||length|_trigger|smrEventList|||||start|move|els|false|config|proxy|os|target|forEach|type|evts|listeners|agl|null|_hasTouch|getFingers|case|detail|left|swipe|getPCevts|sel|rotation|fingerStatus|||returnValue|getType|domTreeOpDiv|proxyid|gestures||userAgent||distance|exports|Math|__touchStart|__rotation_single_finger|touchTime|now|split|ios|originEvent|scale|top|evtMap|break|push|__rotation_single_start|document|getDistance|hold|proxyids|match|isTouchEnd|call|touches|direction|p2|pinch|position|__rotation|p1|for|__scale_last_rate|test|in|removeEventListener|docEl|touchstart|mouseout|string|mousedown|mousemove|end|touchmove|__offset|touchcancel|isTouchMove|touchend|startTime|fingersCount|mouseup|eventType|__initial_angle|elt|tap|_on|version|180|__prev_tapped_pos|arguments|parentNode|diff|doc|proxies|startPinch|startSwiping|swipeTime|SWIPE|__holdTimer|startDrag|parseInt|angle|right|__tapped|reset|integrateSelector|matchSelector|_getAngle180|forceReflow|undefined|typeof|_undelegate|handlers|_off|navigator|android|wp|obj|prototype|_bind|ios7|pstart|pmove|135|src|window|addEventListener|id|isWebkit|nextSibling|ROTATION_LEFT|currentPos|ROTATION|touchSecond|directions|key|factor|preventDefault|scale_diff|ROTATION_RIGHT|ischild|simpleClone|docOff|posi|abs|while|_getAngleDiff|touch|CustomEvent|pos1|stopPropagation|pos2|scaleEv|PINCH_END|swipeTo|drag|Array|getPosOfEvent|startEvent|_unbind|__tapTimer|__prev_tapped_end_time|endEvent|rotateSingleFinger|holdTime|box|DOUBLE_TAP|TAP|swipeMinDistance|object|clearTimeout|tapMaxDistance|querySelectorAll|_delegate|Date|evtMapBind|PI|iPhone|evt1|switch|moveEvent|evt2|offsetParent|startRotate|iPad|console|iPod|toLowerCase|cns|className|handlerOriginEvent|selector|body|init|domTreeOp|PCevts|SWIPE_RIGHT|isSafari|300|disEnd|disStart|pageY|pageX|eventNames|len|JSON|evtMapDelegate|count|getAngle|getDirectionFromAngle|swipeFactor|opt|DRAGSTART||DRAG|maxDoubleTapInterval|error|DRAGEND|dispatchEvent|SWIPE_END|SWIPE_DOWN|SWIPE_LEFT|SWIPE_START|down|SWIPE_UP|getSelector|SWIPING|up|this|doubleTap|PINCH_START|calScale|PINCH_IN|slice|PINCH_OUT|minScaleRate|unexpected|PINCH|isDoubleTap|getXYByElement|_dispatch|doubleDis|minRotationAngle|rotationEv|Object|setTimeout|appendChild|div|cancelable|initCustomEvent|stringify|bubbles|parse|createEvent|insertBefore|new|removeChild|screen|MQQBrowser|CriOS|Safari|trigger|die|ipad|_|replace|standalone|WebKit|Android|strict||use|OS|d_|Phone|Windows|iphone|iphone5|toString|safari|webkit|join|tagName|getElementById|getEventListeners|webkitMatchesSelector|on|off|live|568|height|ipod|unbind|bind|wp8|createElement|TOUCH_END|clientTop|sqrt|scrollTop|atan2|pageYOffset|atan|pageXOffset|scrollLeft|swipedown|swipeup|dragend|HOLD|clientLeft|doubletap|documentElement|getBoundingClientRect|offsetHeight|offsetWidth|1000|distanceX|duration|distanceY|220|00000000001|offsetTop|offsetLeft|isTouchStart|fingers|90|__lastTapEndTime|swiperight|dragstart|MOUSE_UP|MOUSE_MOVE|CLICK|click|pinchend|pinchstart|MOUSE_DOWN|swipeleft|keys|nodeName|650|ontouchstart|TOUCH_MOVE|TOUCH_START|pinchin|TOUCH_CANCEL|swipestart|pinchout|swiping|rotateright|rotate|rotateleft|swipeend".split("|"),0,{}));