27556b681cfcd83c298eb4b8e30f069ad8a60ee7.svn-base 35.4 KB
google.maps.__gjsload__('map', 'function Qs(){}function Rs(a,b,c){this.ie=a;this.duration=c;$i(this,b)}function Ss(a){this.l=a||[]}Un[D].e=uk(10,function(){for(var a in this.b){var b=this.b[a],c=b.ie;c[F][this.f]="opacity "+b[Xj]+"ms ease-out";lm(c,b[Zb])}this.b={};this.j=ba});Vn[D].e=uk(9,function(){for(var a=[],b=0,c=this.b[B];b<c;++b){var d=this.b[b],e=d.f;e.time=e[Oj]+50;var f=e[Oj]/e[Xj];1<=f?(lm(d,e.Wf),d.f=ba):(e=e.Xf+od(0,f)*(e.Wf-e.Xf),lm(d,e),a[q](d))}this.b=a;0==this.b[B]&&(l[nk](this.f),this.f=ba)});\nUn[D].Vc=uk(7,function(a,b,c){this.b[Df(a)]=new Rs(a,b,c);this.j||(this.j=l[Vb](P(this,this.e),1))});Vn[D].Vc=uk(6,function(a,b,c){var d;d=Gd(a[F][Zb])?a[F][Zb]:Gd(a[F].filter)&&a[pk][ck]?a[pk][ck][Zb]/100:ba;var e=a.f;e||(e=new Qs,a.f=e,this.b[q](a));e.time=0;e.duration=c;e.Xf=d;e.Wf=b;this.f||(this.f=l[Yj](P(this,this.e),50))});Ho[D].j=uk(5,function(a,b){var c=this.e;return c[b]&&c[b][a.x]&&c[b][a.x][a.y]||0});go[D].f=uk(1,function(a,b){io(this,P(this,this.j,a,b))()});\nfunction Ts(a,b){for(var c=a.b,d=0,e=c[B];d<e;++d){var f=c[d];if(f[0]==b)return f[1]}}function Us(a,b){return new Ss(Zc(a.l,4)[b])}function Vs(a){return(a=a.l[1])?new jg(a):mg}function Ws(a){return(a=a.l[0])?new jg(a):lg}function Xs(a){a=a.l[1];return a!=j?a:0}function Ys(a){a=a.l[0];return a!=j?a:0}function Zs(a){this.l=a||[]}Zs[D].je=function(){var a=this.l[6];return a?new kg(a):ng};Zs[D].clearRect=function(){this.l[4]=j};\nfunction $s(a,b){var c=a.x,d=a.y;switch(b){case 90:a.x=d;a.y=256-c;break;case 180:a.x=256-c;a.y=256-d;break;case 270:a.x=256-d,a.y=c}}function at(){wa(this,-1);Qa(this,-1);this.b=[];this.ga=[]}function bt(a){for(var b=0;b<$c(a.l,0);++b){var c=a[mk](b)[cb](/(\\?|&)src=api(&|$)/,"$1src=apiv3$2"),d=b;Zc(a.l,0)[d]=c}}function ct(a,b){this.f=b||new Rg;this.b=new Qf(a%360,45);this.e=new T(0,0)}ct[D].fromLatLngToPoint=function(a,b){var c=this.f[ab](a,b);$s(c,this.b[Hj]());c.y=(c.y-128)/Ro+128;return c};\nct[D].fromPointToLatLng=function(a,b){var c=this.e;c.x=a.x;c.y=(a.y-128)*Ro+128;$s(c,360-this.b[Hj]());return this.f[Dj](c,b)};ct[D].getPov=Rc("b");function dt(a,b,c,d,e,f,g){aj(this,b);Qa(this,c);Ca(this,new U(256,256));Ha(this,d);this.alt=e;this.sa=f;this.sd=g;a=new Kh(a);Ja(this,Id);this.ca=P(a,a[Qb]);Pa(this,P(a,a[hc]));this.hb=P(a,a.hb)}dt[D].zb=i;\nfunction et(a,b,c,d){this.f=[];for(var e=0;e<K(a);++e){var f=a[e],g=new at,h=f.l[2];wa(g,(h!=j?h:0)||0);h=f.l[3];Qa(g,(h!=j?h:0)||d);for(h=0;h<$c(f.l,5);++h)g.b[q](Zc(f.l,5)[h]);for(h=0;h<$c(f.l,4);++h){var m=Uk(b,new fe(new Q(Ys(Ws(Us(f,h)))/1E7,Xs(Ws(Us(f,h)))/1E7),new Q(Ys(Vs(Us(f,h)))/1E7,Xs(Vs(Us(f,h)))/1E7)),g[qc]);g.ga[h]=new qf([new T(nd(m.H/c[u]),nd(m.G/c[H])),new T(nd(m.I/c[u]),nd(m.K/c[H]))])}this.f[q](g)}}Si(et[D],function(a,b){var c=this.b(a,b);return c&&Io(c,a,b)});\net[D].b=function(a,b){for(var c=this.f,d=new T(a.x%(1<<b),a.y),e=0;e<c[B];++e){var f=c[e];if(!(f[pb]>b||f[qc]<b)){var g=K(f.ga);if(0==g)return f.b;for(var h=f[qc]-b,m=0;m<g;++m){var p=f.ga[m];if(zk(new qf([new T(p.H>>h,p.G>>h),new T(1+(p.I>>h),1+(p.K>>h))]),d))return f.b}}}return j};function ft(a){this.l=a||[]}ft[D].b=function(){var a=this.l[2];return a!=j?a:0};Ja(ft[D],function(){var a=this.l[1];return a?new Do(a):Eo});\nfunction gt(a,b){var c={},d=1<<b,e=(1-1/o[Bb](2))/2;c.b=nd(a[H]*d*e);c.j=nd(d*e);c.f=a[H]*d-2*c.b;c.D=d-2*c.j;c.e=qd(c.D*a[H]-c.f);return c}\nvar ht={hue:"h",saturation:"s",lightness:"l",gamma:"g",invert_lightness:"il",visibility:"v"},it={all:"",geometry:"g",labels:"l"},jt={all:0,administrative:1,"administrative.country":17,"administrative.province":18,"administrative.locality":19,"administrative.neighborhood":20,"administrative.land_parcel":21,poi:2,"poi.business":33,"poi.government":34,"poi.school":35,"poi.medical":36,"poi.attraction":37,"poi.place_of_worship":38,"poi.sports_complex":39,"poi.park":40,road:3,"road.highway":49,"road.highway.controlled_access":785,\n"road.arterial":50,"road.local":51,transit:4,"transit.line":65,"transit.station":66,"transit.station.rail":1057,"transit.station.bus":1058,"transit.station.airport":1059,"transit.station.ferry":1060,landscape:5,"landscape.man_made":81,"landscape.natural":82,water:6};\nfunction kt(a,b){var c=tk();this.f=a;this.j=b;this.b=new Rg;this.e=new U(256,256);for(var d={},e=0,f=$c(c.l,5);e<f;++e){var g=new Zs(Zc(c.l,5)[e]),h;h=g.l[1];h=h!=j?h:0;d[h]=d[h]||[];d[h][q](g)}this.L=lt(this,d[0],21);this.n=(e=c.l[0])?new og(e):ug;bt(this.n);this.J=lt(this,d[1],22);this.A=(e=c.l[1])?new og(e):vg;bt(this.A);this.F=lt(this,d[2],22);this.D=yk(c);bt(this.D);this.Da=lt(this,d[3],15);this.B=(d=c.l[3])?new og(d):xg;bt(this.B);this.C=(c=c.l[7])?new og(c):yg;bt(this.C)}\nfunction lt(a,b,c){return new et(b,a.b,new U(256,256),c)}function mt(a,b,c,d){var e,f=N(d),g="",h=c?P(c,c.j):Id;"satellite"==b?f?(c=a.C,g+="deg="+d+"&",e=j):(c=a.A,e=a.J):"hybrid"==b?(c=a.D,f?(g+="deg="+d+"&opts=o&",e=j):e=a.F):"terrain"==b?(c=a.B,e=a.Da):(c=a.n,e=a.L);return To(c,e,g,"satellite"==b||"hybrid"==b?f?21:22:"terrain"==b?15:"roadmap"==b?21:22,"hybrid"==b&&!f||"terrain"==b||"roadmap"==b,a.e,So(d),h)}\nfunction nt(a,b){var c;c=j;"hybrid"==b?c=a.D:"roadmap"==b?c=a.n:"terrain"==b?c=a.B:"satellite"==b&&(c=a.A);c?(c=c.l[5],c=c!=j?c:""):c=j;return c}function ot(a,b){var c=N(b),d=new Ff,e=new Oo(d,mt(a,"satellite",j,b),mt(a,"hybrid",a.j,b),"\\u62b1\\u6b49\\uff0c\\u6b64\\u5904\\u65e0\\u56fe\\u50cf\\u3002"),c=new dt(d,N(b)?new ct(b):a.b,c?21:22,"\\u6df7\\u5408","\\u663e\\u793a\\u5e26\\u6709\\u8857\\u9053\\u540d\\u79f0\\u7684\\u56fe\\u50cf",dl.hybrid,nt(a,"hybrid"));pt(a,e);return c}\nfunction qt(a,b){var c=N(b),d=new Ff;new Po(d,mt(a,"satellite",j,b),"\\u62b1\\u6b49\\uff0c\\u6b64\\u5904\\u65e0\\u56fe\\u50cf\\u3002");return new dt(d,N(b)?new ct(b):a.b,c?21:22,"\\u536b\\u661f","\\u663e\\u793a\\u536b\\u661f\\u56fe\\u50cf",c?"a":dl.satellite,j)}\nfunction rt(a,b){var c=j,d=[0,90,180,270];if("hybrid"==b){for(var c=ot(a),e=[],f=0,g=d[B];f<g;++f)e[q](ot(a,d[f]));c.yc=new Rn(c,e)}else if("satellite"==b){c=qt(a);e=[];f=0;for(g=d[B];f<g;++f)e[q](qt(a,d[f]));c.yc=new Rn(c,e)}else{e=mt(a,b,a.j);d=new Ff;e=new Po(d,e,"\\u62b1\\u6b49\\uff0c\\u6b64\\u5904\\u65e0\\u56fe\\u50cf\\u3002");if("terrain"==b){if(c=nt(a,"terrain"))f=c[Yb](","),2==f[B]&&(c=f[1]);c=new dt(d,a.b,15,"\\u5730\\u5f62","\\u663e\\u793a\\u5e26\\u5730\\u5f62\\u7684\\u8857\\u9053\\u5730\\u56fe",dl.terrain,\nc)}else"roadmap"==b&&(c=new dt(d,a.b,21,"\\u5730\\u56fe","\\u663e\\u793a\\u8857\\u9053\\u5730\\u56fe",dl.roadmap,nt(a,"roadmap")));pt(a,e)}return c}function pt(a,b){var c=a.f.N();b[t]("layers",c,"uniqueLayers");b[t]("apistyle",c);b[t]("style",c);b[t]("epochs",a.j)}function st(a){this.l=a||[]}st[D].b=function(){return $c(this.l,0)};st[D].f=function(a){return new ft(Zc(this.l,0)[a])};\nfunction tt(a,b,c){var b=Sk(b,1/o.pow(2,c)),c=new T(b.I,b.K),b=a[Dj](new T(b.H,b.G),i),d=a[Dj](c,i),c=o.min(b.lat(),d.lat()),a=o.max(b.lat(),d.lat()),e=o.min(b.lng(),d.lng()),b=o.max(b.lng(),d.lng()),c=new Q(c,e),b=new Q(a,b);return new fe(c,b)};function ut(a){var b=n[wb]("div");em(b);jm(b,0);a[Va](b);this.set("div",b)}L(ut,W);ut[D].offset_changed=function(){this.set("newCenter",this.get("center"));var a=this.get("projectionBounds"),b=this.get("offset");if(a&&b){var c=this.get("div");cm(c,new T(a.H-b[u],a.G-b[H]));fm(c)}};function vt(){Gl[ic](this)}L(vt,Gl);I=vt[D];I.Ze=j;I.latLngCenter_changed=function(){this.b=i;wt(this);this.b=k};Ni(I,Wi(vt[D],function(){this.Ze=j;wt(this,this.Pk());xt(this)}));I.projectionTopLeft_changed=function(){yt(this)};Oi(I,function(){yt(this)});I.projectionBounds_changed=function(){zt(this)};\nfunction wt(a,b){var c=a.Oe(),d=a.Le(),e=a.Me();if(d&&N(e)&&c){var f;f=a.pd();var g=a.od();if(b&&a.e&&N(a.Za)&&f&&g){var c=new T(g.x+b.x,g.y+b.y),h=Vk(a.e,c,a.Za,i),h=Sg(d,h,e);f=new T(g.x+f[u]/2,g.y+f[H]/2);f=new T(h.x-(c.x-f.x),h.y-(c.y-f.y))}else f=Sg(d,c,e);if(g=f)g=a.Dc(),g=!(f&&g&&1.0E-10>=o.abs(f.x-g.x)&&1.0E-10>=o.abs(f.y-g.y));g&&a.dg(f)}g=a.pd();c=a.Dc();if(g&&c&&(f=c.x-g[u]/2,g=c.y-g[H]/2,c=a.od(),!c||!(1.0E-10>=o.abs(c.x-f)&&1.0E-10>=o.abs(c.y-g))))c||(c=new T(0,0)),c.x=f,c.y=g,a.set("projectionTopLeft",\nc);At(a);a.Za=e;a.e=d}function xt(a){var b=a.Dc(),c=a.Le(),d=a.Me();if(c&&N(d)&&b){if(c=b=Vk(c,b,d,i))c=a.Oe(),c=!(b&&c&&1.0E-10>=o.abs(b.lat()-c.lat())&&1.0E-10>=o.abs(b.lng()-c.lng()));c&&a.set("latLngCenter",b)}}function At(a){var b=a.Oe();b&&(b=18*qd(b.lng()/18),b!=a.Ze&&(a.Ze=b,a.set("projectionCenterQ",a.Dc())))}\nfunction yt(a){var b=a.pd(),c=a.od();if(b&&c){var d=c.x+b[u]/2,b=c.y+b[H]/2,c=a.Dc();if(!c||!(1.0E-10>=o.abs(c.x-d)&&1.0E-10>=o.abs(c.y-b)))c||(c=new T(0,0)),c.x=d,c.y=b,a.dg(c)}var e=a.pd(),f=a.od();if(e&&f){var d=a.pg()||new qf,b=f.x,c=f.y,g=f.x+e[u],e=f.y+e[H];if(d.H!=b||d.G!=c||d.I!=g||d.K!=e)d.H=b,d.G=c,d.I=g,d.K=e,a.set("projectionBounds",d)}a.b||(xt(a),At(a))}function zt(a){var b=a.Le(),c=a.Me(),d=a.pg();b&&N(c)&&d&&(a.n=tt(b,d,c),l[Vb](function(){a[Rb]("latLngBounds")},0))}I.Me=Gf("zoom");\nI.pd=Gf("size");I.od=Gf("projectionTopLeft");I.Dc=Gf("center");I.dg=Hf("center");I.Oe=Gf("latLngCenter");I.pg=Gf("projectionBounds");I.Le=Gf("projection");I.getLatLngBounds=Rc("n");I.Pk=Gf("fixedPoint");function Bt(a,b,c){this.b={};this.e=mm(c,a);this.f=b}Ga(Bt[D],function(){var a=this;yd(this.b,function(b,c){Ct(a,c)});delete this.f;delete this.b;Zk(this.e,i)});Bt[D].freeze=function(){if(this.f.hb){var a=this;yd(this.b,function(b,c){a.f.hb(c)})}};function Ct(a,b){delete a.b[b.oa];a.f[hc]&&a.f[hc](b);Zk(b,i)};function Dt(a,b){Ug[ic](this);this.b=mm(this.get("zIndex")||0,a);this.A=new U(0,0);this.F=this.n=j;this.B={};this.C={};this.J=b;this.Q=k;this.Jd(1)}L(Dt,Ug);I=Dt[D];I.zIndex_changed=function(){jm(this.b,this.get("zIndex")||0)};I.getDiv=Rc("b");I.ob=Gf("mapType");I.kh=Gf("tileFadeMode");I.Jd=Hf("tileFadeMode");Ma(I,Gf("zoom"));Wi(I,function(){var a=this[Sj]();this.e!=a&&(this.e=a,this.Ne())});Qi(I,Gf("offset"));I.offset_changed=function(){this.P()};I.getProjection=Gf("projection");I.jh=Hf("projection");\nI.Gd=Gf("projectionBounds");I.projectionBounds_changed=function(){this.P()};Oi(I,function(){this.P()});I.mapType_changed=function(){var a=this.ob();this.ca!=a&&(this.ca=a,this.Ne())};function Et(a){var b=a.ob();return!(!a.J||!b||!b.zb)}I.Ne=function(){Ft(this);var a=this.ob();a&&(this.n=new Bt(this.b,a,1),this.P())};I.Z=function(){Gt(this)};\nfunction Gt(a){var b=a[Sj](),c=a[Cj](),d=a.Gd(),e=a.get("size"),f=a.ob(),g=a.n;if(e&&c&&d&&f&&g&&!a.Q){var e=new U(qd(c[u]),qd(c[H])),h=!a.A[vb](e);a.A=e;var e=a.F,m=a.F=Ht(a,d);if(m[vb](e))h&&It(a);else{yd(g.b,function(b,c){zk(m,c.oa)||(Jt(a,c),Ct(g,c))});for(var e=[],p=m.H;p<m.I;++p)for(var r=m.G;r<m.K;++r)e[q](new T(p,r));var e=Kt(e),v=function(b,c){var d=Gd(c)?c:1,e=a.kh();Et(a)&&(2==e||1==e&&b==k)?(lm(this,0),g.e[Va](this),a.J.Vc(this,d,200)):(Et(a)&&g.e[Va](this),1!=d&&lm(this,d));Jt(a,this)},\nz=f[Eb];O(e,function(e){var f=g.b[e];f?h&&Lt(a,f,e):(f=g.f,f=P(f,f[Qb]==Id?f.ca:f[Qb])(e,b,bm(g.e)),$l(f),f.oa=e,g.b[e]=f,Et(a)||g.e[Va](f),em(f),a.B[f.oa]=1,f.Nd=R[Gb](f,vl,v),e=Lt(a,f,e),e.x<d.I-c[u]&&e.x>d.H-c[u]-z[u]&&e.y<d.K-c[H]&&e.y>d.G-c[H]-z[H]&&(a.C[f.oa]=1))});fm(g.e)}R[s](a,"tilesloading")}}za(I,function(){Ft(this);Zk(this.b)});function It(a){yd(a.n.b,function(b,c){Lt(a,c,c.oa)})}\nfunction Lt(a,b,c){var d=a.ob()[Eb],d=new T(c.x*d[u]-a.A[u],c.y*d[H]-a.A[H]),e=a[wj]();if(e&&e[Zj]){var f=a.ob()[Eb],a=a[Sj]();if((e=e[Zj]()||Rf)&&45==e.Ea()&&0!=e[Hj]()%180)a=gt(f,a),c=nd((c.y-a.j)/a.D),d=new T(d.x,d.y-c*a.e)}cm(b,d,ba,i);return d}\nfunction Ht(a,b){var c=a.ob()[Eb],d=0.25*c[u],e=0.25*c[H],d=rf(b.H-d,b.G-e,b.I+d,b.K+e);if((e=a[wj]())&&e[Zj]){var f=a[Sj]();if((e=e[Zj]()||Rf)&&45==e.Ea()&&0!=e[Hj]()%180)var e=gt(c,f),f=nd((d.G-e.b)/e.f),g=nd((d.K-e.b)/e.f),d=rf(d.H,d.G+f*e.e,d.I,d.K+g*e.e)}e=new qf;e.H=nd(d.H/c[u]);e.G=nd(d.G/c[H]);e.I=md(d.I/c[u]);e.K=md(d.K/c[H]);return e}function Mt(a){yd(a.n.b,function(b,c){Jt(a,c)})}function Ft(a){a.n&&(Mt(a),a.n[Fj](),a.n=j,a.F=j)}I.freeze=function(){this.Q=i;this.n&&(Mt(this),this.n.freeze())};\nfunction Kt(a){var b=0,c=0,d=0;O(a,function(a){++b;c+=a.x;d+=a.y});if(!b)return[];var c=c/b,d=d/b,e=fa(b),f=0;O(a,function(a){var b=a.x-c,m=a.y-d;a.ih=b*b+m*m;e[f++]=a});e[kk](function(a,b){return a.ih-b.ih});return e}function Jt(a,b){b.Nd&&R[jb](b.Nd);b.Nd=ba;var c=b.oa;if(a.B[c]){var d=!!a.C[c];delete a.C[c];d&&zd(a.C)&&Yd(function(){R[s](a,nl)});delete a.B[c];zd(a.B)&&Yd(function(){R[s](a,"tilesloaded")})}};var Nt=Vl()?2E3:500;function Ot(a,b){this.b=b;this.e=a;this.n=this.j=0;R.T(this.e,Me,this,this.Ef);if(!Wl()){var c=new rn(this.b);c[t]("draggingCursor",this);c[t]("draggableCursor",this);c[t]("draggable",this);Rt(this,c);St(this,c)}Wl()||(c=new Gn(this.e),R[A](c,ql,this,this.Lf),R[A](this,ql,this,this.Lf),c[t]("enabled",this,"scrollwheel"));Wl()&&(c=new Jn(this.e,i,i),Rt(this,c),St(this,c),c[t]("draggable",this),c[t]("scalable",this,"draggable"))}L(Ot,W);I=Ot[D];I.dh=Hf("zoom");I.bh=Gf("zoom");\nWi(I,Ot[D].zoomRange_changed=function(){var a=this.bh(),b=Tt(this,a);a!=b&&this.dh(b)});function Rt(a,b){R[A](b,Le,a,a.Dk);R[A](b,ul,a,a.Gk);R[A](b,tl,a,a.Ek);O([Bk,sl,Ak,tl,rl],function(c){R[G](b,c,P(a,a.wd,c))});var c=new dn(b,Nt);R[E](c,gl,a);R[E](c,fl,a);R[E](c,el,a);c[t]("disabled",a,"disablePanMomentum")}function St(a,b){R[G](b,gl,function(){R[s](a,jl)});R[G](b,fl,function(){R[s](a,il)});R[G](b,el,function(){R[s](a,hl)})}function Tt(a,b){var c=a.get("zoomRange");c&&(b=sm(c,b));return b}\nI.Ef=function(a){var b=Pd();250>=b-this.n?(this.n=0,this.get("disableDoubleClickZoom")||Ut(this,-1)):(this.n=b,this.wd("rightclick",a));Td(a);this.A=i};I.Gk=function(a){1<a[tj]||Ck(a)||(this.wd(ul,a),Ck(a)||(this.j=0,this.get("disableDoubleClickZoom")||Ut(this,1,qn(a,this.e))))};I.Dk=function(a){if(!Ck(a)&&!this.A){var b=Pd();250>=b-this.j?this.j=0:(this.j=b,this.wd(Le,a))}};I.wd=function(a,b){var c=qn(b,this.b),d=qn(b,this.e);R[s](this,a,c,d,b)};\nI.Ek=function(a){this.A=k;5==Z[y]&&2==Z.b&&2==a[tj]&&!a.ctrlKey&&this.Ef(a)};I.Lf=function(a,b){var c=o.pow(2,b),d=new $m(0,0,c);an(d,new T(-a.x,-a.y));c=new Zm(c,new T(d.x,d.y),a);R[s](this,gl);R[s](this,fl,c);R[s](this,el,c)};function Ut(a,b,c){if(c){var d=a.get("size"),e=a.get("projectionTopLeft");e.x+=c.x-d[u]/2;e.y+=c.y-d[H]/2;a.set("projectionTopLeft",e)}c=a.bh();b=Tt(a,c+b);c!=b&&a.dh(b)};function Vt(a,b,c){var d=this;d.O=a;d.e=b;R[A](b,Kf,d,d.n);R[A](b,Lf,d,d.A);R[A](b,Jf,d,d.B);d.b=[];d.j=j;c&&(d.j=Wt(d,c));d.e[zb](function(a){a=Wt(d,a);d.b[q](a)});Xt(d)}L(Vt,W);Vt[D].n=function(a){var b=this.b,c=Wt(this,this.e[bc](a));b[Bc](a,0,c);Xt(this)};Vt[D].A=function(a){var b=this.b;Yt(b[a]);b[Bc](a,1);Xt(this)};Vt[D].B=function(a){Yt(this.b[a]);var b=Wt(this,this.e[bc](a));b.set("zIndex",a);this.b[a]=b};\nfunction Xt(a){O(a.b,function(a,c){a.set("zIndex",c)});a.j&&a.j.set("zIndex",a.b[B])}function Wt(a,b){var c=new Dt(a.O,j);c[t]("size",a);c[t]("zoom",a);c[t]("offset",a);c[t]("projectionBounds",a);c.set("mapType",b);c.Ib=R[E](c,"tilesloaded",b);return c}function Yt(a){a[tb]();a[mb]("size");a[mb]("zoom");a[mb]("offset");a[mb]("projectionBounds");a.set("mapType",j);R[jb](a.Ib);delete a.Ib};function Zt(a){this.b=a}L(Zt,W);ej(Zt[D],function(){this.e(this.get("mapTypeId"))});Zt[D].setMapTypeId=function(a){this.e(a);this.set("mapTypeId",a)};\nZt[D].e=function(a){var b=this.b.get(a);if(!(b&&b==this.n)){this.j&&(R[jb](this.j),this.j=j);var c=P(this,this.e,a);a&&(this.j=R[G](this.b,a[Ec]()+"_changed",c));b&&b instanceof Mh&&(a=b.L);c=this.n;a=this.b.get(a);a&&a==c||((c&&c.yc&&(c.yc[Aj](),this[mb]("mapType")),a&&a.yc)?(a=a.yc,a[t]("heading",this),a[t]("tilt",this),this[t]("mapType",a)):this.set("mapType",a));this.set("styles",b&&b.B);this.set("maxZoom",b&&b[qc]);this.set("minZoom",b&&b[pb]);this.n=b}};function $t(a,b,c,d,e,f,g,h){this.x=a;this.y=b;this.b=c;this.e=d;this.D=e;this.j=f;this.n=g;this.A=h;a=1/o.cos(M(this.D));b=1/o.cos(M(this.j));d=M(this.e);c=o.cos(d);d=o.sin(d);e=this.b;this.f=[c*e,d*e/a,-d*e*b,c*e*b/a];a=this.x;b=this.y;this.x=this.f[0]*a+this.f[2]*b;this.y=this.f[1]*a+this.f[3]*b}function au(a,b,c,d,e,f,g){c=o.pow(2,c)/o.pow(2,f);f=Bd(d[Hj]()-a[Hj](),-180,180);return new $t(e.x-b.x,e.y-b.y,c,f,a.Ea(),d.Ea(),g.x,g.y)}function bu(){return 4==Z[y]&&526>=Z[lj]||5==Z[y]?k:!!am.b}\nvar cu=new $t(0,0,1,0,0,0,0,0);function du(){}L(du,W);function eu(a){return!!a.j&&!!a.e&&0<=a.n}function fu(a){if(!eu(a))return cu;var b=Sg(a.ca,a.e,a.A),c=Sg(a.ca,a.F,a.A);return au(a.j,b,a.n,a.L,c,a.A,a.sa)}function gu(a){a.j=a.B=a.L=j;a.e=a.J=a.F=j;a.n=a.Q=a.A=-1;a.b=j;hu(a)}function hu(a){a.C&&(l[$a](a.C),a.C=j)}\ndu[D].ka=function(){if(this.b){var a=this.b[Vj](),b=this.B,c=this.L,d=Bd(c[Hj]()-b[Hj](),-180,180);this.j=new Qf(b[Hj]()+a*d,(1-a)*b.Ea()+a*c.Ea());b=this.J;c=this.F;this.e=new Q((1-a)*b.lat()+a*c.lat(),(1-a)*b.lng()+a*c.lng(),i);this.n=(1-a)*this.Q+a*this.A;a=fu(this);this.b.Ma<this.b.cb?this.C=zl(this,this.ka,20):gu(this);this.set("transform",a)}};function iu(a){Ug[ic](this);this.b=a;this.ca=this.R=k;this.n=new du;this[t]("transform",this.n,j,i);this.A=[];this.Ba=new T(0,0);this.e=new T(0,0);this.yb=Wn();R[A](this,nl,this,this.mi);R[A](this,gl,this,this.gi);R[A](this,fl,this,this.hi);R[A](this,el,this,this.ei);R[A](this,Qe,this,this.li);R[A](this,Pe,this,this.xc);R[A](this,ml,this,this.ki);R[A](this,ll,this,this.ii);R[A](this,kl,this,this.ji);ju(this)}L(iu,Ug);\nfunction ku(a){var b=a.D=new Dt(a.b,a.yb);b[t]("size",a);b[t]("projectionBounds",a,"viewProjectionBounds");a.Rb=[R[E](b,"tilesloading",a),R[E](b,"tilesloaded",a),R[E](b,nl,a),R[E](a,Ne,b)]}I=iu[D];I.gf=function(a){Dk(this.A,a)&&a[tb]();this.D&&this.D.Jd(this.A[B]||Wl()?2:1)};function lu(a,b){function c(){O(e,P(d,d.gf))}var d=a,e=Nd(d.A);b?c():l[Vb](c,1E3)}\nfunction mu(a){var b=a.e,c=nu(a),d=a.Md(),e=a.Tb(),e=new T(e.x+c.x,e.y+c.y),f=d[Zj]&&d[Zj]()||Rf,g=a.pb(),h=Vk(d,e,g,i);O(a.A,function(d){var e=d[Cj]();d.Gd();var r=d[wj](),v=r[Zj]&&r[Zj]()||Rf,z=d[Sj](),r=Sg(r,h,z),e=au(f,r,g,v,new T(e[u]+c.x,e[H]+c.y),z,c);e.x-=b.x;e.y-=b.y;ou(a,e,of,d[Wj]())})}Oi(I,function(){for(var a=0,b=0,c=this.b;c&&c[fk];){var d=nm(c);if(!d)break;a+=Ei(d.marginLeft);b+=Ei(d.marginTop);c=c[yc]}this.Ba=new T(qd(a)-a,qd(b)-b);this.P();this[Rb]("pixelBounds");this[Rb]("layoutPixelBounds")});\nI.mapType_changed=function(){this.P()};Wi(I,function(){this.P()});I.projectionTopLeft_changed=function(){var a=this.D,b=this.Tb(),c=this.pb();a&&b&&N(c)&&c==a[Sj]()&&(a=a[Cj](),this.e.x=a[u]-b.x,this.e.y=a[H]-b.y);this.ka||this.P()};I.mi=function(){this.va=i;lu(this,k)};I.gi=function(){this.R||(this.R=i,this.B=of)};\nI.hi=function(a){if(this.R){this.set("fixedPoint",a.ta);var b=new $m(a.b.x,a.b.y,a[ok]);Wl()?ju(this,new $t(b.x,b.y,b.b,0,0,0,b.x,b.y)):(1!=b.b?this.set("zoom",this.pb()+qd(Xk(b.b))):(pu(this,this.B.x-a.b.x,this.B.y-a.b.y),this.B=a.b),qu(this))}};\nI.ei=function(a){if(this.R){this.set("fixedPoint",j);if(Wl()){var a=new $m(a.b.x,a.b.y,a[ok]),b=this.Ub(),c=this.pb(),d;d=c+qd(Xk(a.b));var e=this.get("zoomRange");e&&(d=sm(e,d));var c=d-c,e=o.pow(2,c),f=b[u]/2,b=b[H]/2;an(a,new T(f,b));a.b=e;an(a,new T(-f,-b));c?(this.set("fixedPoint",new T(a.x/(1-a.b),a.y/(1-a.b))),this.set("zoom",d)):pu(this,-a.x,-a.y);ju(this);qu(this)}this.R=k;this.B=j}};I.li=function(a,b){var c=this.Ub();this.xc(a+this.e.x-c[u]/2,b+this.e.y-c[H]/2)};\nI.xc=function(a,b){this.Q=i;pu(this,a,b);qu(this);this.Q=k};I.ki=function(a,b){this.ca=i;this.xc(a,b);this.ca=k};I.ii=function(a,b){var c=this.Ub();this.xc(a*c[u],b*c[H])};I.ji=function(a){var b=this.getLayoutPixelBounds();if(b&&a){var c=b.I-b.H,d=b.K-b.G,e=0,f=a.H-1-b.H,g=a.I+1-b.I;0>f?e=f:0<g&&(e=g);var g=0,h=a.G-1-b.G,a=a.K+1-b.K;0>h?g=h:0<a&&(g=a);if(e||g)e>c&&(e=f),g>d&&(g=h),this.xc(e,g)}};function pu(a,b,c){a=a.Tb();a.x+=b;a.y+=c}\nfunction qu(a){a.ka=i;a[Rb]("projectionTopLeft");a[Rb]("pixelBounds");a[Rb]("layoutPixelBounds");a.ka=k;a.L()}\nI.Z=function(){var a=this.pb();if(!(!this.Ub()||!N(a)||!this.Tb()||this.sa&&!this.Q)){this.sa=i;var b=this.get("mapType"),c=this.Md(),d=this.D,e=d&&d[Cj](),f=!!d&&a!=d[Sj]();if(!d||c!=d[wj]())this.e.x=this.e.y=0;var g,h=k,m;m=this.D;if(!m||!(this.pb()==this.D[Sj]()||bu()))m=i;else{var p=this.pb();2<ld(p-m[Sj]())?m=i:(p=ru(this.Kd(),this.Md(),p),m=ru(m.Gd(),m[wj](),m[Sj]()),m=!cl(p,m))}if(m)lu(this,i),d||ku(this),gu(this.n),g=cu,this.e.x=this.e.y=0;else{if(f||b!=d.ob()){if(h=this.D)h.freeze(),O(this.Rb,\nR[jb]),h[mb]("size"),h[mb]("projectionBounds"),m=new qf,xd(m,this.Ld()),h.set("projectionBounds",m),this.A[q](h),this.A[B]>(this.pb()<h[Sj]()?2:3)&&this.A[Ya]()[tb](),m=this.get("mapType"),(!m||!m.zb)&&l[Vb](P(this,this.gf,h),5E3),this.D=j;ku(this)}h=nu(this);if(d){g=this.J||cu;p=d[wj]();m=d[Sj]();g=Vk(p,new T(g.x+this.F.H+h.x,g.y+this.F.G+h.y),m,i);var r=this.Tb(),r=Vk(c,new T(r.x+h.x,r.y+h.y),a,i),v=c[Zj]&&c[Zj]()||Rf,z=this.n,p=p[Zj]&&p[Zj]()||Rf;p[Hj]()==v[Hj]()&&p.Ea()==v.Ea()&&g[vb](r)&&m==\na?gu(z):(hu(z),eu(z)?(z.B=new Qf(z.j[Hj](),z.j.Ea()),z.J=new Q(z.e.lat(),z.e.lng(),i),z.Q=z.n):(z.j=new Qf(p[Hj](),p.Ea()),z.B=p,z.e=new Q(g.lat(),g.lng(),i),z.J=g,z.n=z.Q=m),z.L=v,z.F=r,z.A=a,z.ca=c,z.sa=h)}else gu(this.n);g=fu(this.n);h=!this.ca&&(!Wl()||!f)&&(f||this.Q||0!=g.e||g.D!=g.j);mu(this)}this.va=k;m=this[Cj]();p=this.D;p.set("zoom",a);p.set("offset",new U(m[u],m[H]));p.set("mapType",b);p.jh(c);p.Jd(h==k&&f==i?0:this.A[B]||Wl()?2:1);a=h;b=g;c=this.Kd();g=this.Ld()||new qf;a&&1==b.b?(g.H=\nc.H-b.x,g.G=c.G-b.y,g.I=c.I-b.x,g.K=c.K-b.y):(g.H=c.H,g.G=c.G,g.I=c.I,g.K=c.K);this.ff(g);this.F=new qf;xd(this.F,c);p.L();h?(a=this.n,b=fu(a),0==b.x&&0==b.y&&1==b.b&&0==b.e&&b.D==b.j?gu(a):(c=od(ld(b.e),ld(b.j-b.D)),b=pd(60,qd(od(5,c/6,5*(o[Bb](b.x*b.x+b.y*b.y)/256)))),a.b?a.b[kb](b):a.b=new Tn(b),a.ka())):(gu(this.n),ju(this));(!d||!m[vb](e))&&this[Rb]("offset");f&&R[s](this,Ne);this.sa=k}};\nfunction ru(a,b,c){var d=new T(a.I,a.K),a=Vk(b,new T(a.H,a.G),c,i),b=Vk(b,d,c,i);return rf(pd(a.lng(),b.lng()),pd(a.lat(),b.lat()),od(a.lng(),b.lng()),od(a.lat(),b.lat()))}I.transform_changed=function(){var a=this.get("transform");if(a){ju(this,a);if(1==a.b){var b=a.x,a=a.y,c=this.Kd(),d=this.Ld();d.H=c.H-b;d.G=c.G-a;d.I=c.I-b;d.K=c.K-a;this.ff(d)}!eu(this.n)&&this.va&&lu(this,k)}};\nfunction ou(a,b,c,d){if(bu()){var e=new $t(0,0,b.b,b.e,b.D,b.j,b.n,b.A);e.x=b.x+c.x*b.b;e.y=b.y+c.y*b.b;var f=a.Ba;if(a=am.b)b=e.f,c=o[w](e.x)+f.x,f=o[w](e.y)+f.y,b="matrix("+b[0][pj](16)+","+b[1][pj](16)+","+b[2][pj](16)+","+b[3][pj](16)+","+c+","+f+")",d[F][a+"Origin"]=o[w](e.n)+"px "+o[w](e.A)+"px",d[F][a]=b}else cm(d,new T(b.x+c.x,b.y+c.y))}function ju(a,b){a.J=b||cu;var c=a.J.b,d=a.get("panes");d&&(1==c?(hm(d[mj]),hm(d[zj])):(gm(d[mj]),gm(d[zj])));ou(a,a.J,a.e,a.b)}I.pb=Gf("zoom");I.Ub=Gf("size");\nI.Md=Gf("projection");I.Tb=Gf("projectionTopLeft");function nu(a){var b=a.get("fixedPoint"),a=a.Ub();return b||new T(a[u]/2,a[H]/2)}I.Kd=Gf("projectionBounds");I.Ld=Gf("viewProjectionBounds");I.ff=Hf("viewProjectionBounds");Qi(I,function(){var a=this.Tb();if(!a)return j;var b=this.e.x+a.x,a=this.e.y+a.y;if(!this.C||b!=this.C[u]||a!=this.C[H])this.C=new U(b,a);return this.C});I.getLayoutPixelBounds=function(){return su(this,this.get("layoutBounds"))};I.getPixelBounds=function(){return su(this)};\nfunction su(a,b){var c=b||tf,d=a.Ub();if(!d)return j;var e=a.e;return new qf([new T(c.H-e.x,c.G-e.y),new T((c.I||d[u])-e.x,(c.K||d[H])-e.y)])};function tu(){}L(tu,W);Fa(tu[D],function(a){if("maxZoomRects"==a||"latLng"==a){var a=this.get("latLng"),b=this.get("maxZoomRects");if(a&&b){for(var c=ba,d=0,e;e=b[d++];)e.ga[uc](a)&&(c=od(c||0,e[qc]));a=c;a!=this.get("maxZoom")&&this.set("maxZoom",a)}else this.set("maxZoom",ba)}});function uu(){vu(this)}L(uu,W);Fa(uu[D],function(a){"zoomRange"!=a&&vu(this)});function vu(a){var b=new rm(a.get("minZoom")||0,a.get("maxZoom")||30),c=a.get("mapTypeMinZoom"),d=a.get("mapTypeMaxZoom"),e=a.get("trackerMaxZoom");N(c)&&(b.min=od(b.min,c));N(e)?b.max=pd(b.max,e):N(d)&&(b.max=pd(b.max,d));a.set("zoomRange",b)};function wu(){this.b=k}L(wu,W);wu[D].desiredTilt_changed=function(){var a=this.get("desiredTilt");a!=this.get("tilt")&&this.set("tilt",a)};fj(wu[D],function(){this.b||(this.set("desiredTilt",this.get("tilt")),xu(this))});wu[D].aerial_changed=ej(wu[D],Wi(wu[D],function(){this.b=i;xu(this);this.b=k}));\nfunction xu(a){var b,c=k,d=k,e=a.get("mapTypeId");if(e){a.b=i;if("satellite"==e||"hybrid"==e){if(d=a.get("zoom"),d=(c=a.get("aerial"))&&18<=d,c&&(e=a.get("desiredTilt"),a.set("desiredTilt",N(e)&&22.5>e?0:45)),Gd(d))e=a.get("desiredTilt"),b=d?e:0}else b=0;Gd(b)&&b!=a.get("tilt")&&a.set("tilt",b);a.set("aerialAvailable",c);a.set("aerialAvailableAtZoom",d);a.b=k}};function yu(a){this.b=a}L(yu,W);\nFa(yu[D],function(a){if("apistyle"!=a){var b=this.get("mapTypeStyles")||this.get("styles"),c=[],a=i;Ao[13]&&(c[q]({featureType:"poi.business",elementType:"labels",stylers:[{visibility:"off"}]}),K(b)||(a=k));Ed(c,b);for(var b=[],d=0;d<K(c);++d){var e,f=c[d].elementType;e=c[d].stylers;var g=[],h;h=(h=c[d].featureType)&&jt[h[Ec]()];(h=h!=j?h:j)&&g[q]("s.t:"+h);(f=f&&it[f[Ec]()]||j)&&g[q]("s.e:"+f);for(f=0;f<K(e);++f){a:{h=e[f];var m=ba;for(m in h){var p=h[m],r=m&&ht[m[Ec]()]||j;if(r&&(N(p)||Ld(p)||"boolean"==\ntypeof p)&&p){h="p."+r+":"+p;break a}}h=ba}h&&g[q](h)}(e=g[Dc]("|"))&&b[q](e)}c=b[Dc](",");c=1E3>=c[B]?c:"";c!=this.get("apistyle")&&(c&&a&&this.b(Id),this.set("apistyle",c))}});function zu(a){this.b=a}L(zu,W);Fa(zu[D],function(a){if("available"!=a){var a=this.get("viewport"),b=this.get("featureRects"),a=this.b(a,b);a!=j&&a!=this.get("available")&&this.set("available",a)}});function Au(a,b){if(a&&b){for(var c=0,d;d=b[c++];)if(d[Wb](a))return i;return k}};function Bu(a){this.l=a||[]}var Cu;function Du(a){this.l=a||[]}function Eu(a){this.l=a||[]}function Fu(a){this.l=a||[]}function Gu(a){if(!Cu){var b=[];Cu={ba:-1,Y:b};b[1]={type:"m",label:1,W:Qk()};b[2]={type:"u",label:1};b[5]={type:"e",label:1};b[4]={type:"s",label:1};b[6]={type:"s",label:1};b[7]={type:"b",label:1};b[8]={type:"e",label:1};b[9]={type:"b",label:1}}return bd(a.l,Cu)}Ma(Bu[D],function(){var a=this.l[1];return a!=j?a:0});Ba(Bu[D],function(a){this.l[1]=a});function Hu(a,b){a.l[6]=b}\nfunction Iu(a,b){a.l[7]=b}function Ju(a,b){a.l[8]=b}function Ku(a){a.l[0]=a.l[0]||[];return new fd(a.l[0])}gj(Du[D],function(){var a=this.l[4];return a!=j?a:-1});function Lu(a){a=a.l[0];return a!=j?a:""}var Mu=new st;function Nu(a){return(a=a.l[3])?new st(a):Mu}function Ou(a){a=a.l[0];return a!=j?a:""}var Pu=new fd;function Qu(a){return(a=a.l[1])?new fd(a):Pu}Eu[D].clearRect=function(){delete this.l[1]};function Ru(a){a=a.l[0];return a!=j?a:0}var Su=new fd;\nfunction Tu(a){return(a=a.l[1])?new fd(a):Su}Fu[D].clearRect=function(){delete this.l[1]};var Uu={m:0,k:2,h:3,r:4,a:5};function Vu(a,b,c,d){Ug[ic](this,50);this.b=this.e=j;this.F=a;this.B=c;this.C=b;this.n=d}L(Vu,Ug);function Wu(a,b){function c(a){b(new Du(a))}var d=Gu(a);S("util",function(a){a.j(l[Xb],cg,a.f+"/maps/api/js/ViewportInfoService.GetViewportInfo",bg,d,c)})}Fa(Vu[D],function(a){if("epochs"!=a){"mapType"==a&&Xu(this);if("zoom"==a||"mapType"==a)this.e=this.b=j;this.P()}});function Xu(a){var b,c=Yu(a);if("k"==c||"h"==c)b=a.Q;a.C.set("maxZoomRects",b)}Vu[D].A=Gf("zoom");\nfunction Yu(a){return(a=a.get("mapType"))&&a.sa}\nVu[D].Z=function(){var a=this.B,b=this.e,c;c=this.A();var d=this.get("bounds"),e=Yu(this);if(!N(c)||!d||!e)c=j;else{var f=d[ac]();this.b||(this.b=f);var g=d[Ej](),d=qd((f.lat()-this.b.lat())/g.lat()),f=qd((f.lng()-this.b.lng())/g.lng()),g=!this.get("mapMaker");c=e+"|"+d+"|"+f+"|"+c+"|"+g;45==this.get("tilt")&&(c+="|"+(this.get("heading")||0))}if(c=this.e=c){if(c!=b){for(var h in a)a[h].set("featureRects",ba);Zu(this,P(this,this.J,c))}}else this.n[wc](0,"");b=this.get("bounds");this.C.set("latLng",\nb&&b[oj]());for(h in a)a[h].set("viewport",b)};function Zu(a,b){var c=a.get("bounds"),d=Yu(a),e=Uu[d];if(c&&N(e)){d=new Bu;d.l[3]=a.F;d[Ab](a.A());Ju(d,!!a.get("mapMaker"));d.l[4]=e;Iu(d,a.get("heading")||0);Hu(d,45==a.get("tilt"));if((e=a.get("mapType"))&&e.sd)d.l[5]=e.sd;var c=$u(c),e=Ku(d),f=Gk(e);Kk(f,c[ac]().lat());Ik(f,c[ac]().lng());e=Ek(e);Kk(e,c[ob]().lat());Ik(e,c[ob]().lng());Wu(d,b);S(Ge,function(a){a.ab.fc("ev=api_viewport&cad="+xl({src:"apiv3"}))})}}\nVu[D].J=function(a,b){if(a==this.e){this.n[wc](0,decodeURIComponent(Lu(b)));this.set("epochs",Nu(b));for(var c={},d=0,e=$c(b.l,1);d<e;++d){var f=new Eu(Zc(b.l,1)[d]),g=Ou(f),f=av(Qu(f));c[g]=c[g]||[];c[g][q](f)}yd(this.B,function(a,b){b.set("featureRects",c[a]||[])});e=$c(b.l,2);g=this.Q=fa(e);for(d=0;d<e;++d){var f=new Fu(Zc(b.l,2)[d]),h=Ru(f),f=av(Tu(f));g[d]={ga:f,maxZoom:h}}Xu(this)}};function av(a){var b=Hk(a),a=Fk(a);return wl(Lk(b),Jk(b),Lk(a),Jk(a))}\nfunction $u(a){var b=a.$.b,c=a.$.f,d=a.aa.b,e=a.aa.f,f=a[Ej](),g=f.lat(),f=f.lng();be(a.aa)&&(e+=360);b-=g;c+=g;d-=f;e+=f;a=o.min(g,f)/10;a=o.max(1.0E-6,a);b=a*o[fb](b/a);c=a*o[eb](c/a);d=a*o[fb](d/a);e=a*o[eb](e/a);if(a=360<=e-d)d=-180,e=180;return new fe(new Q(b,d,a),new Q(c,e,a))};function bv(a){this.b=a;R[A](this.b,Jf,this,this.e);R[A](this.b,Kf,this,this.e);this.e()}L(bv,W);bv[D].e=function(){this.set("attributionText",cv(this))};function cv(a){var b=[];a.b&&a.b[zb](function(a){a&&b[q](a)});return b[Dc](", ")};function dv(){}L(dv,W);dv[D].input_changed=function(){for(var a=this.get("input"),b=[],c=0,d=K(a);c<d;++c){var e=a[c];wd(b,e)||b[q](e)}this.set("output",b)};function ev(a){this.j=a;this.b=j;this.set("idle",i)}L(ev,W);ev[D].input_changed=function(){this.get("idle")&&this.set("idle",k);this.b&&l[$a](this.b);this.b=l[Vb](P(this,this.e),this.j)};ev[D].e=function(){this.b=j;this.set("idle",i)};function fv(a){this.b=a}L(fv,W);fv[D].title_changed=function(){var a=this.get("title");a?this.b[x]("title",a):this.b.removeAttribute("title")};function gv(a,b){yd(Uc,function(c,d){b.set(d,rt(a,d))})}function hv(a){var b=new Zt(a[Bj]);b[t]("bounds",a);b[t]("heading",a);b[t]("mapTypeId",a);b[t]("tilt",a.N());return b}function iv(a){var b=new ev(300);b[t]("input",a,"bounds");R[G](b,"idle_changed",function(){b.get("idle")&&R[s](a,"idle")})}\nfunction jv(a,b){0==(n[$j]&&n[$j][pc]||l[$j][pc])[qb]("file://")&&!Tl(Sl)&&!vk()&&!Ao[14]&&S(Ge,function(a){a.ab.fc("ev=api_watermark&cad="+xl({src:"apiv3"}))});var c=new Vt(b,a[ik],j),d=a.N();c[t]("size",d);c[t]("zoom",d);c[t]("offset",d);c[t]("projectionBounds",d)}function kv(a,b,c){R[E](b,jl,c);R[E](b,il,c);R[E](b,hl,c);R[E](a,Ne,c);R[E](a,"tilesloaded",c)}\nfunction lv(a,b,c,d){var e=new fv(d);e[t]("title",c.N());b[t]("draggableCursor",c.N(),"cursor");var f=c.n;O([Le,ul,"rightclick",Bk,Ak,sl,tl,rl],function(d){R[G](b,d,function(h,m,p){var h=a[dk](h),r=c.get("projection")[ab](h),m=new bl(h,p,m,r),v;var p=Wl(),h=f.j,z=m.b&&Ck(m.b);if(f.b)r=f.b,v=f.f;else if(d==Ak||z)v=r=j;else{for(var C=0;(r=h[C++])&&!(v=r.n(m,k)););if(!v&&p)for(C=0;(r=h[C++])&&!(v=r.n(m,i)););}if(r!=f.e||v!=f.D)f.e&&f.e.j(Ak,m,f.D),f.e=r,f.D=v,r&&r.j(Bk,m,v);r?d==Bk||d==Ak?v=k:(r.j(d,\nm,v),v=i):v=!!z;v||(b.set("draggableCursor",c.get("draggableCursor")),e.set("title",j),delete m.b,R[s](c,d,m))})})}function mv(a,b,c,d){var e=c.N(),f=e.get("mouseEventTarget");O([gl,fl,el],function(c){R[E](f,c,b);R[G](b,c,function(b){b&&(b.latLng=a.fromContainerPixelToLatLng(b.ta));R[s](e,c,b);(!b||!b.handled)&&R[s](d,c,b)})})}\nfunction nv(a){var b=new zu(Au),c=new zu(Au),d=new zu(Au),e=new zu(function(a,b){var c;if(!a||!b)c=ba;else{a:{c=0;for(var d=a.$,e=a.aa,r=0,v;v=b[r++];)if(a[Wb](v)){var z=v.$,C=v.aa,J=0;if(v.$a(a)){c=1;break a}J=e[uc](C.b)&&C[uc](e.b)&&!e[vb](C)?ce(C.b,e.f)+ce(e.b,C.f):ce(e[uc](C.b)?C.b:e.b,e[uc](C.f)?C.f:e.f);v=pd(d.f,z.f)-od(d.b,z.b);c+=J*v}c/=(d[Wa]()?0:d.f-d.b)*de(e)}c=0.9<=c}return c});a[t]("streetView",c,"available");a[t]("traffic",d,"available");a={};a.obliques=b;a.street_view=c;a.traffic=d;\na.report_map_issue=e;return a};function ov(){}I=ov[D];\nI.di=function(a,b,c){var d=nh;function e(a){mh(d,a);if(N(Ts(d,"mb"))&&(N(Ts(d,"vt"))||N(Ts(d,"dm")))&&!N(Ts(d,"prt")))a=mh(d,"prt"),mh(d,"plt",a-Ts(d,"mc")+Ts(d,"jl")),r()}var f=Dg(Fg(mf)),g=a.N(),h=new dv;g[t]("uniqueLayers",h,"output");h[t]("input",g,"layers");var m=new Ho,h=new kt(a,m);gv(h,a[Bj]);var p=a[Wj](),r=Qd(2,function(){S(Ge,function(b){var c=Wg(p);b.ab.uf("apiboot",d,{size:c[u]+"x"+c[H],maptype:dl[a.get("mapTypeId")||"c"]})})}),v=new Uo(p,b),z=v.n;jm(v.b,0);R[E](a,ol,p);g.set("panes",\nv.e);g.set("innerContainer",v.j);var C=new Ot(v.j,z);C[t]("draggingCursor",a);C[t]("size",v);R[G](a,"zoom_changed",function(){C.get("zoom")!=a.get("zoom")&&C.set("zoom",a.get("zoom"))});C.set("zoom",a.get("zoom"));C[t]("disablePanMomentum",a);c&&(h=new ut(z),h[t]("center",a),h[t]("projectionBounds",g),h[t]("offset",g),c[t]("div",h),c[t]("center",h,"newCenter"),c[t]("zoom",C),c[t]("tilt",g),c[t]("size",g),R[Gb](c,Oe,function(){e("dm")}));S(Ce,function(b){b.Ud(a,m,new Mf)});var J;J=new iu(z);kv(J,C,\na);J.set("panes",v.e);var V=nv(a[gk]),ha=new wu;ha[t]("tilt",a);ha[t]("zoom",a);ha[t]("mapTypeId",a);ha[t]("aerial",V.obliques,"available");g[t]("tilt",ha);var c=new tu,f=new Vu(f,c,V,a.Xb),xa=hv(a);f[t]("epochs",m);f[t]("tilt",a);f[t]("heading",a);f[t]("bounds",a);f[t]("zoom",a);f[t]("mapMaker",a);f[t]("mapType",xa);var ya=new bv(a.Xb),f=new yu(yl(function(a){S("util",function(b){b.b.f(1,a)})}));f[t]("styles",a);f[t]("mapTypeStyles",xa,"styles");g[t]("apistyle",f);f=new Go(["mapMaker"],"style",function(a){return"api|smartmaps"+\n(a?",mapmaker":"")});f[t]("mapMaker",a);g[t]("style",f);var Y=new vt;g.set("projectionController",Y);J[t]("zoom",C);J[t]("size",v);J[t]("projection",Y);J[t]("projectionBounds",Y);J[t]("mapType",xa);Y[t]("projectionTopLeft",J);Y[t]("offset",J);Y[t]("latLngCenter",a,"center");Y[t]("zoom",C);Y[t]("size",v);Y[t]("projection",a);J[t]("fixedPoint",Y);a[t]("bounds",Y,"latLngBounds",i);lv(Y,C,a,z);C[t]("projectionTopLeft",Y);g[t]("zoom",C);g[t]("center",a);g[t]("size",v);g[t]("mapType",xa);g[t]("offset",\nJ);g[t]("layoutPixelBounds",J);g[t]("pixelBounds",J);g[t]("projectionTopLeft",J);g[t]("projectionBounds",J,"viewProjectionBounds");g[t]("projectionCenterQ",Y);f=new tm({projection:1});f[t]("immutable",g,"mapType");h=new Fo({projection:new Rg});h[t]("projection",f);a[t]("projection",h);f={};g.set("mouseEventTarget",f);mv(Y,C,a,J);R[E](f,ql,C);R[E](g,Pe,J);R[E](g,ml,J);R[E](g,ll,J);R[G](g,Qe,function(a){if(a instanceof Q){a=Y.fromLatLngToDivPixel(a);R[s](J,Qe,a.x,a.y)}else aa(ja("panTo: latLng must be of type LatLng"))});\nR[E](g,kl,J);R[G](g,"pantolatlngbounds",function(a){if(a instanceof fe)R[s](J,kl,al(Y.get("projection"),a,Y.get("zoom"),Y.get("offset"),Y.get("center")));else aa(ja("panToBounds: latLngBounds must be of type LatLngBounds"))});R[G](C,"zoom_changed",function(){C.get("zoom")!=a.get("zoom")&&a.set("zoom",C.get("zoom"))});var ta=new uu;ta[t]("mapTypeMaxZoom",xa,"maxZoom");ta[t]("mapTypeMinZoom",xa,"minZoom");ta[t]("maxZoom",a);ta[t]("minZoom",a);ta[t]("trackerMaxZoom",c,"maxZoom");C[t]("zoomRange",ta);\nJ[t]("zoomRange",ta);C[t]("draggable",a);C[t]("scrollwheel",a);C[t]("disableDoubleClickZoom",a);c=a.C;c[t]("scrollwheel",a);c[t]("disableDoubleClickZoom",a);b.jf||(R[Gb](J,"tilesloading",function(){S("controls",function(b){var c=new b.rf(v.b);g.set("layoutManager",c);J[t]("layoutBounds",c,"bounds");b.wh(c,a,xa,v.b,ya,V.street_view,V.report_map_issue,ta,ha,Y);b.xh(a,z)})}),R[Gb](J,nl,function(){e("vt");S("util",function(b){b.b.b();l[Vb](P(b.b,b.b.f,0,Id),5E3);b.e(a)})}),R[Gb](J,"tilesloaded",function(){mh(d,\n"mt");r()}));iv(a);jv(a,v.e.mapPane);b.jf||e("mb")};I.Rh=Dt;I.dc=function(a,b,c,d,e){function f(){var f=g.get("panes");if(!f)return k;f=new Dt(f[c],j);f[t]("size",g);f[t]("zoom",g);f[t]("offset",g);f[t]("projectionBounds",g);f.set("mapType",b);b.projection||R[A](a,"projection_changed",f,f.Ne);N(d)&&f.set("zIndex",d);R[E](a,Ne,f);e&&e(f);return i}var g=a.N();if(g&&!f())var h=R[G](g,"panes_changed",function(){f()&&R[jb](h)})};I.Ck=Po;\nI.fitBounds=function(a,b){function c(){var c=Wg(a[Wj]());qa(c,c[u]-2*d);qa(c,o.max(1,c[u]));Ta(c,c[H]-2*d);Ta(c,o.max(1,c[H]));var f=a[wj]();var g=b,h=g[ac](),g=g[ob](),m=h.lng(),p=g.lng();m>p&&(h=new Q(h.lat(),m-360,i));h=f[ab](h);m=f[ab](g);g=o.max(h.x,m.x)-o.min(h.x,m.x);h=o.max(h.y,m.y)-o.min(h.y,m.y);g>c[u]||h>c[H]?c=0:(g=Xk(c[u]+1.0E-12)-Xk(g+1.0E-12),c=Xk(c[H]+1.0E-12)-Xk(h+1.0E-12),c=o[fb](o.min(g,c)));h=Uk(f,b,0);f=Vk(f,new T((h.H+h.I)/2,(h.G+h.K)/2),0);N(c)&&(a.setCenter(f),a[Ab](c))}var d=\n40;a[wj]()?c():R[Gb](a,"projection_changed",c)};var pv=new ov;ff[ze]=function(a){eval(a)};jf(ze,pv);\n')