usage.js
3.73 KB
google.maps.__gjsload__('usage', 'function Wv(a){this.l=a||[]}var Xv;function Yv(a){this.l=a||[]}var Zv;function $v(){this.l=[]}var aw;function bw(){if(!Xv){var a=[];Xv={ba:-1,Y:a};a[1]={type:"s",label:1};a[2]={type:"s",label:1};a[3]={type:"e",label:1};a[4]={type:"v",label:1};a[5]={type:"v",label:1};if(!Zv){var b=[];Zv={ba:-1,Y:b};b[1]={type:"s",label:1};b[2]={type:"v",label:1}}a[6]={type:"m",label:3,W:Zv}}return Xv}function cw(a){if(!aw){var b=[];aw={ba:-1,Y:b};b[1]={type:"m",label:3,W:bw()}}return bd(a.l,aw)};function dw(a){this.b=[];this.f=a}dw[D].e=function(){for(var a=0,b=j,c=0,d;d=this.b[c];++c){var e=d,f=bw(),e=bd(e.l,f)[B];b&&1750<a+e&&(this.f(cw(b)),b=j,a=0);b||(b=new $v);f=[];Zc(b.l,0)[q](f);Yc((new Wv(f)).l,d.l);a+=e}this.f(cw(b));La(this.b,0)};function ew(a,b){this.e=j;this.b=b;Xq(this,"center,mapTypeId,heading,tilt,zoom,bounds".split(","),a);this.e=fw(this);var c=this.b;gw(c,"mapview");c.e&&hw(c,c.f,"channel",c.e)}L(ew,W);Fa(ew[D],function(a){this.e!=j&&("bounds"==a&&(this.get("bounds")[Wb](this.e.ga)||(this.e.Zf=i),this.e.ga=this.get("bounds")),iw(this))});function fw(a){return{ga:a.get("bounds"),sb:a.get("center"),Gb:a.get("mapTypeId"),heading:a.get("heading")||0,Ea:a.get("tilt")||0,zoom:a.get("zoom"),Zf:k}}\nfunction iw(a){a.j&&l[$a](a.j);a.j=l[Vb](function(){a.j=j;var b=a.e,c=a.e=fw(a),d=k;b.Gb!=c.Gb&&(d=a.b,gw(d,"maptype",c.Gb),gw(d,"interaction","maptype"),d=i);b.Zf&&(gw(a.b,"interaction","jump"),d=i);b[sk]<c[sk]?(d=a.b,gw(d,"zoom",c[sk]),gw(d,"zoomInteraction","in"),gw(d,"interaction","zoom"),d=i):b[sk]>c[sk]&&(d=a.b,gw(d,"zoom",c[sk]),gw(d,"zoomInteraction","out"),gw(d,"interaction","zoom"),d=i);b[Hj]!=c[Hj]&&(d=a.b,gw(d,"heading",c[Hj]),gw(d,"interaction","heading"),d=i);b.Ea!=c.Ea&&(d=a.b,gw(d,\n"tilt",c.Ea),gw(d,"interaction","tilt"),d=i);!d&&b.sb!=c.sb&&gw(a.b,"interaction","pan")},100)};var jw=[10,20,30,40,50,60,70,80,90,100,ea],kw=[1,2,5,10,20,50,100,200,500,ea];function lw(a,b,c){this.D=a;this.f="ut|client:"+b;this.j=(this.e=c)&&this.f+"|channel:"+c;this.b=new Bf(0,0,0)}I=lw[D];I.ol=function(a,b){if(b==Lc){var c;if(a)a:{if(c=a[0].address_components)for(var d=0;d<c[B];d++)if(wd(c[d][Yp],"country")){c=c[d].short_name;break a}c=j}else c=j;gw(this,"geocodeCountry",c||"ZZ")}gw(this,"geocodeStatus",b)};\nI.jl=function(a,b){gw(this,"directionsStatus",b);var c;a:if(c=a.routes){c=c[0].legs;for(var d=0,e=0;e<c[B];++e){var f=c[e].distance;if(f)d+=f[wp];else{c=j;break a}}c=d}else c=j;if(c){for(var g,d=0;d<kw[B];++d)if(1E3*kw[d]>c){g=kw[d];break}gw(this,"directionsDistanceTotal",g,c);gw(this,"directionsDistance",g)}};\nI.kl=function(a,b){gw(this,"distanceMatrixStatus",b);if(b==Lc){for(var c=a.origins[B]*a.destinations[B],d,e=0;e<jw[B];++e)if(jw[e]>c){d=jw[e];break}gw(this,"distanceMatrixElementsTotal",d,c);gw(this,"distanceMatrixElements",d)}};I.ml=function(a){gw(this,"elevationStatus",a)};I.rl=function(a){gw(this,"placeSearchStatus",a)};I.ql=function(a){gw(this,"placeDetailsStatus",a)};I.rk=function(a){a&&gw(this,"placeAutocomplete")};I.Ok=function(a){xd(this.b,a);gw(this,"streetviewStart")};\nI.Mk=function(){gw(this,"streetviewMove")};I.Nk=function(a){this.b[Hj]!=a[Hj]&&gw(this,"streetviewPov","heading");this.b[Ap]!=a[Ap]&&gw(this,"streetviewPov","pitch");this.b[sk]!=a[sk]&&gw(this,"streetviewPov","zoom");xd(this.b,a)};function gw(a,b,c,d){hw(a,a.f,b,c,d);a.j&&hw(a,a.j,b,c,d)}function hw(a,b,c,d,e){var f=new Wv;f.l[0]=b;f.l[1]=c;d!=j?(b=[],Zc(f.l,5)[q](b),b=new Yv(b),b.l[0]=""+d,b.l[1]=e||1):f.l[4]=e||1;a=a.D;a.b[B]||setTimeout(P(a,a.e),5E3);a.b[q](f)};function mw(){return Pd()%1679616}function nw(a){lo(n,mw,so+"/maps/api/js/StatsService.RecordStats",bg,a,Id)};function ow(){}ow[D].tl=new lw(new dw(nw),xk(mf),wk());ow[D].b=function(a){new ew(a,new lw(new dw(nw),xk(mf),wk()))};var pw=new ow;ff[He]=function(a){eval(a)};jf(He,pw);\n')