You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pingAnQiYeWeb/public/modules/opmb_u2udzz.js

1 line
8.4 KiB

/**/_jsload2 && _jsload2('opmb', 'var Nh=q,Oh=p; B.Xe(function(a){function b(){e&&(e=q,f=p,g||a.dispatchEvent(j))}function c(c){e=o;j=na(new N("ontouch"),c);f=new R(c.changedTouches[0].clientX,c.changedTouches[0].clientY);var g=d("onclickex",c);setTimeout(function(){b();a.dispatchEvent(g)},a.B.eX);Nh||a.dispatchEvent(d("onclick",c))}function d(b,c){for(var d=new N(b),e=c.target,f=p,g=p;e&&e!==a.Ua;){if(e.ba){var i=x.lang.Lc(e.ba);i instanceof kb&&"canvas"!==e.nodeName.toLowerCase()&&(f=i);i instanceof td&&(g=i)}e=e.offsetParent}for(var e=c.changedTouches[0].pageX, i=c.changedTouches[0].pageY,j=a.Ua;j&&j!=document.body;)e-=j.offsetLeft,i-=j.offsetTop,j=j.offsetParent;d.offsetX=e;d.offsetY=i;d.pixel=d.Wa=new R(d.offsetX,d.offsetY);d.point=d.point=a.Rb(d.Wa);d.overlay=d.cb=f;d.infoWindow=g;return d}a.B.eX=500;var e=q,f,g=q,i=q,j;x.M(a.Ga(),"touchmove",function(b){a.B.Gb&&b.preventDefault()});x.M(a.platform,"touchstart",function(b){Nh=q;Oh=setTimeout(function(){Nh=o;a.dispatchEvent(na(d("onlongpress",b),b))},1E3);a.B.Gb&&pa(b);i=q;a.dispatchEvent(na(d("ontouchstart", b),b));a.B.Gb&&Gb(b)});x.M(a.platform,"touchmove",function(b){a.B.Gb&&pa(b);i=o;a.dispatchEvent(na(d("ontouchmove",b),b))});x.M(a.platform,"touchend",function(j){clearTimeout(Oh);a.B.Gb&&Gb(j);i||(e?(g=o,Nh||a.dispatchEvent(d("onclick",j)),20>Ib(f,new R(j.changedTouches[0].clientX,j.changedTouches[0].clientY))?(a.dispatchEvent(d("ondblclick",j)),a.dispatchEvent(na(new N("ondbltouch"),j))):a.dispatchEvent(na(d("ontouchend",j),j)),b(),g=q):c(j));a.dispatchEvent(na(d("ontouchend",j),j))});x.M(a.platform, "gesturestart",function(b){b.preventDefault();a.dispatchEvent(na(new N("ongesturestart"),b))});x.M(a.platform,"gesturechange",function(b){b.preventDefault();a.dispatchEvent(na(new N("ongesturechange"),b))});x.M(a.platform,"gestureend",function(b){b.preventDefault();a.dispatchEvent(na(new N("ongestureend"),b))})}); B.Xe(function(a){function b(a){a&&(z.WebkitTransform="");j=i=0;l=1;m[0].x=m[0].y=m[1].x=m[1].y=0;D=q}function c(){if(x.platform.Ym)if(/Nexus/.test(navigator.userAgent))a.B.Gb&&(z.left=a.offsetX+i+"px",z.top=a.offsetY+j+"px");else if(1!==l&&a.B.Ak&&a.B.Cm)z.WebkitTransform="scale("+l+")";else{if(a.B.Gb&&(z.left=a.offsetX+i*l+"px",z.top=a.offsetY+j*l+"px"),1!=l)z.WebkitTransform=a.B.Cm?"scale("+l+") ":""}else z.WebkitTransform=1!==l&&a.B.Ak&&a.B.Cm?"scale("+l+")":(a.B.Gb?"translate("+i*l+"px, "+j*l+ "px) ":"")+(a.B.Cm?"scale("+l+") ":"")}function d(b){var c=0,d=0;Ph&&(d=c=0);"end"===b&&a.B.Gb&&a.B.Ak?(z.WebkitTransformOrigin=Math.round(a.width/2)-i-a.offsetX+"px "+(Math.round(a.height/2)-j-a.offsetY)+"px",n=z.WebkitTransformOrigin):"end"!==b&&a.B.Gb&&a.B.Ak||(z.WebkitTransformOrigin=a.B.Gb?(m[0].x+m[1].x)/2-a.offsetX-c+"px "+((m[0].y+m[1].y)/2-a.offsetY-d)+"px":Math.round(a.width/2)+"px "+Math.round(a.height/2)+"px")}function e(b,c){var d=new N(b),e=f(c.changedTouches[0].pageX,c.changedTouches[0].pageY); d.offsetX=e.x;d.offsetY=e.y;d.Wa=new R(d.offsetX,d.offsetY);d.point=a.Rb(d.Wa);return d}function f(b,c){for(var d=a.Ua;d&&d!=document.body;)b-=d.offsetLeft,c-=d.offsetTop,d=d.offsetParent;return new R(b,c)}function g(a){for(var b=[],c,d=0,e=a.touches.length;d<e;d++)c=a.touches[d],b.push({x:c.pageX,y:c.pageY});return b}var i=0,j=0,l=1,m=[{x:0,y:0},{x:0,y:0}],n=Math.round(a.width/2)+"px "+Math.round(a.height/2)+"px",s=0,u=0,w=q,y=q,D=q,C=p,F,A,z=a.platform.style;a.B.Ak&&(z.WebkitTransformOrigin=n); a.addEventListener("touchstart",function(b){if(!(b.cb instanceof W)){F=g(b);var c=b.targetTouches.length;s=s+c;s>2&&(s=2);var d=a.R;if(c==2)d.MI=o;d.nb&&d.nb.stop();if(s==1){this.R.gV=i;this.R.hV=j;b=f(b.targetTouches[0].pageX,b.targetTouches[0].pageY);m[0].x=b.x;m[0].y=b.y}else if(s==2){b=f(b.touches[c-1].pageX,b.touches[c-1].pageY);m[1].x=b.x;m[1].y=b.y}}});a.addEventListener("touchmove",function(b){if(x.xK>=4&&b.changedTouches.length>=2){A=g(b);var n=F.length==2&&A.length==2?Ib(A[0],A[1])/Ib(F[0], F[1]):1;if(Math.abs(1-n)>0){l=n;y=o;clearTimeout(Oh);d()}}if(y&&!(b.changedTouches.length<2)){for(n=b.target;n&&n!=a.Ua;){n.Ft&&x.lang.Lc(n.Ft);n=n.offsetParent}for(var n=[],z=0;z<2;z++){for(var S=b.changedTouches[z].pageX,aa=b.changedTouches[z].pageY,ba=a.Ua;ba&&ba!=document.body;){S=S-ba.offsetLeft;aa=aa-ba.offsetTop;ba=ba.offsetParent}n[z]={x:S,y:aa}}C=new R((n[0].x+n[1].x)/2,(n[0].y+n[1].y)/2)}n=b.targetTouches.length;S=f(b.touches[0].pageX,b.touches[0].pageY);if(s==1&&u!=2){i=i+(S.x-m[0].x); j=j+(S.y-m[0].y);m[0].x=S.x;m[0].y=S.y;c();D=o}if(s==2){var aa=m[0].x,ba=m[0].y,ia=m[1].x,Sa=m[1].y;if(D){for(S=0;S<n;S++){z=f(b.touches[S].pageX,b.touches[S].pageY);if(Ib(z,new R(m[0].x,m[0].y))<Ib(z,new R(m[1].x,m[1].y))){m[0].x=z.x;m[0].y=z.y}else{m[1].x=z.x;m[1].y=z.y}}i=i+(m[0].x-aa+m[1].x-ia)/2;j=j+(m[0].y-ba+m[1].y-Sa)/2;c()}else{z=new R(m[0].x,m[0].y);if(n==1)if(Ib(z,S)<30){m[0].x=S.x;m[0].y=S.y}else{D=o;m[1].x=S.x;m[1].y=S.y}if(n==2){aa=f(b.touches[1].pageX,b.touches[1].pageY);if(Ib(S,aa)< 30){m[0].x=aa.x;m[0].y=aa.y}else{if(Ib(z,S)<Ib(z,aa)){m[0].x=S.x;m[0].y=S.y;m[1].x=aa.x;m[1].y=aa.y}else{m[1].x=S.x;m[1].y=S.y;m[0].x=aa.x;m[0].y=aa.y}D=o}}}}if(s==1&&u==2){for(S=0;S<n;S++){z=f(b.touches[S].pageX,b.touches[S].pageY);if(Ib(z,new R(m[0].x,m[0].y))<Ib(z,new R(m[1].x,m[1].y))){i=i+(z.x-m[0].x);j=j+(z.y-m[0].y);m[0].x=z.x;m[0].y=z.y}else{i=i+(z.x-m[1].x);j=j+(z.y-m[1].y);m[1].x=z.x;m[1].y=z.y}}c()}if(s==1&&this.B.Gb){n=this.R;if(!n.gk){n.gk=o;b=e("ondragstart",b);a.dispatchEvent(b);a.dispatchEvent(new N("onmovestart")); n.vD=b.Wa;n.wD=db();w=o}n.Op=db();a.dispatchEvent(new N("ondragging"))}});a.addEventListener("touchend",function(c){d("end");u=s;if(this.R.MI){s=c.targetTouches.length;delete this.R.MI}else s--;s==-1&&(s=0);x.platform.Ym&&(s=0);if(s==0){if(y){var f=0,g=a.ga();a.Mc=a.Na;if(this.B.Cm){f=Math.round(Math.log(l)/Math.log(2));g=Math.max(Math.min(a.ga()+f,a.B.Zb),a.B.fc)}var n=a.oa().yc(g),A=C;A||(A=new R((m[0].x+m[1].x)/2,(m[0].y+m[1].y)/2));var z;z=A;var D=a.dc,F=a.oa().yc(a.Mc);z=new K(D.lng+F*(z.x-a.width/ 2),D.lat-F*(z.y-a.height/2));n=new K(z.lng+(a.width/2-A.x)*n,z.lat-(a.height/2-A.y)*n);n=T.ub(n);n=a.Cc(n);f=new R(n.x-i*l/Math.pow(2,f),n.y-j*l/Math.pow(2,f));n=a.B.Gb?a.Rb(f):a.pc();a.B.Gb&&a.B.Ak&&(n=a.wc());if(f=a.mh())if(f=f.ia()){f=a.Cc(f,a.Mc);a.pk(a.width/2-f.x,a.height/2-f.y,a.Rb(f,a.Mc),o)}a.Gd(n,g)}if(i!=this.R.gV||j!=this.R.hV){if(w&&!y){c=e("ondragend",c);Qh(a,c,c.Wa,{x:i,y:j});w=q}y?b(o):b(q)}y=a.R.gk=q;u=0}});a.addEventListener("gesturechange",function(a){l=a.scale;y=o;clearTimeout(Oh); d()})}); function Qh(a,b,c,d){var e=a.platform.style;if(a.B.Ex){var f=a.R,g=db();if(140<g-f.Op)setTimeout(function(){e.WebkitTransform=""},0),setTimeout(function(){a.Me(a.offsetX+d.x,a.offsetY+d.y)},0),window.setTimeout(function(){a.dispatchEvent(new N("onmoveend"));f.gk=q},0),window.setTimeout(function(){a.dispatchEvent(b)},0);else{var i=f.vD,j=[0<c.x-i.x?1:-1,0<c.y-i.y?1:-1],g=Ib(i,c)/((g-f.wD)/1E3)/2,l=g/1.6,m=0.5*l*g/1E3,n=Math.abs(i.x-c.x),s=0,u=0;0==Math.abs(i.y-c.y)?s=n:(c=Math.abs(i.x-c.x)/Math.abs(i.y- c.y),u=Math.round(Math.sqrt(m*m/(1+c*c))),s=Math.round(c*u));-1==j[0]&&(s=-s);-1==j[1]&&(u=-u);f.nb&&f.nb.stop();var w=g/1E3,y=a.offsetX,D=a.offsetY;f.nb=new wb({duration:l,Hc:25,hc:function(a){a=a*w/1.6;return w*a-0.8*a*a},va:function(b){b=b*3.2/(w*w);if(x.platform.Ym){e.left=a.offsetX+d.x+Math.round(b*s)+"px";e.top=a.offsetY+d.y+Math.round(b*u)+"px"}else e.WebkitTransform="translate("+(d.x+Math.round(b*s))+"px ,"+(d.y+Math.round(b*u))+"px)"},finish:function(){f.nb=p;setTimeout(function(){e.WebkitTransform= ""},0);setTimeout(function(){a.Me(y+d.x+Math.round(s),D+d.y+Math.round(u));if(a.B.Ak)e.WebkitTransformOrigin=Math.round(map.width/2)-(y+d.x+Math.round(s))+"px "+(Math.round(map.height/2)-(D+d.y+Math.round(u)))+"px"},0);setTimeout(function(){a.dispatchEvent(new N("onmoveend"))},0);setTimeout(function(){var b=new N("oninertialdraggingfinish");b.time=db()-f.Op;a.dispatchEvent(b)},0);window.setTimeout(function(){a.dispatchEvent(b)},0)},au:function(b){f.nb=p;b=b*3.2/(w*w);setTimeout(function(){e.WebkitTransform= ""},0);setTimeout(function(){a.Me(y+d.x+Math.round(b*s),D+d.y+Math.round(b*u));if(a.B.Ak)e.WebkitTransformOrigin=Math.round(map.width/2)-(y+d.x+Math.round(s))+"px "+(Math.round(map.height/2)-(D+d.y+Math.round(u)))+"px"},0);setTimeout(function(){a.dispatchEvent(new N("onmoveend"))},0)}})}}else window.setTimeout(function(){e.WebkitTransform=""},0),window.setTimeout(function(){a.Me(a.offsetX+d.x,a.offsetY+d.y)},0),window.setTimeout(function(){a.dispatchEvent(new N("onmoveend"))},0)} var Ph=-1<navigator.userAgent.indexOf("iPhone OS 5_")?o:q; ');