(function(){"use strict";function fi(a,b){var c;ne?c=eg(a).__events_:(a.__events_||(a.__events_={}),c=a.__events_);c[b]||(c[b]={});return c[b]}function eg(a){var b;a&&a.__oid_&&(b=E.eventObjects[a.__oid_]);!b&&a&&(a.__oid_=++Xj,b={__events_:{}},E.eventObjects[a.__oid_]=b);return b}function id(a,b){var c,e={};if(ne){if(c=eg(a))e=c.__events_}else e=a.__events_||{};if(b)c=e[b]||{};else for(b in c={},e)Yj(c,e[b]);return c}function Zj(a){return function(){var b=a.handler;return a.bindHandler=function(c){if((c=c||window.event)&&!c.target)try{c.target=c.srcElement}catch(e){}var m=b.apply(a.instance,[c]);return c&&"click"==c.type&&(c=c.srcElement)&&"A"==c.tagName&&"javascript:void(0)"==c.href?!1:m}}()}function ak(a){a.returnValue=!0}function gi(a,b,c){return function(){for(var e=[b,a],m=arguments.length,d=0;d',m=vf.createElement("iframe");m.style.display="none";c.appendChild(m);var d=m.contentDocument;m.onload=function(){1!=d.z&&b&&b();m.onload=null;c.removeChild(this)};try{d.write(e),d.close()}catch(f){}c=null}function uk(a,b,c,e,m,d){var f=vf.createElement("script");Ld.push({name:a,sender:f});f.setAttribute("type","text/javascript");f.setAttribute("charset",m||"GBK");f.async=!0;var g=null,h=!1;f[uf]=function(){vk.test(this.readyState)&&(pe(a),g?c&&c(g):h||e&&e())};Md[a]=function(a){g=a};f.onerror=function(){h=!0;e&&e();pe(a)};m=d||["output=jsonp","pf=jsapi","ref=jsapi"];d?(d=m.pop(),m.push(d+lg+"."+a)):(m.push("cb="+lg+"."+a),mg&&m.unshift("key="+mg));d=b+(-1===b.indexOf("?")?"?":"&")+m.join("&");f.src=d;wk&&tk(b,function(){f.onerror()});b=document.getElementsByTagName("head")[0];b.insertBefore(f,b.firstChild);b=null}function pe(a){if(a){for(var b=0,c=Ld.length,e=null;bparseFloat(b)?(c.filter="alpha(opacity="+100*b+")",c.opacity=b):1==parseFloat(b)&&(c.filter="",c.opacity="")},Ki={},If=function(a){return Ki[a]||(Ki[a]=a.substr(0,1).toUpperCase()+a.substr(1))},fa=function(a){return"[object Function]"==Object.prototype.toString.call(a)},$e=function(a,b){b=b||document.createElement("div");a="on"+a;b.setAttribute(a,"return;");return fa(b[a])||a in document.documentElement},jb=navigator.userAgent,Wa=/msie (\d+\.\d+)/i.test(jb)?document.documentMode||+RegExp.$1:0,Lg=function(a){return!(!a||!(a.nodeName&&1==a.nodeType))},Mg=function(a){return Lg(a)||a==window||a==document},bb=function(a,b,c){for(var e in b)if(b.hasOwnProperty(e)&&(c||!a.hasOwnProperty(e)))a[e]=b[e];return a},ea=function(a,b){if(2(d.x-m.x)*(d.x-m.x)+(d.y-m.y)*(d.y-m.y)&&c(a):c(a);window.removeEventListener("mousemove",f)},0);a=new gb(a,"__virtual_click",null,0);a.pointTo=[b,e];return a}return new gb(a,b,c,0)};E.exist=function(a,b){var c=id(a,b);return c&&!Kg(c)};E.removeListener=function(a){if("__virtual_click"==a.eventName)for(var b=0;b=b&&a<=c?a:((a-b)%(c-b)+(c-b))%(c-b)+b},va=ki.prototype;va.isEmpty=function(){return 360==this.minX-this.maxX};va.intersects=function(a){var b=this.minX,c=this.maxX;return this.isEmpty()||a.isEmpty()?!1:b>c?a.minX>a.maxX||a.minX<=c||a.maxX>=b:a.minX>a.maxX?a.minX<=c||a.maxX>=b:a.minX<=c&&a.maxX>=b};va.contains=function(a){-180==a&&(a=180);var b=this.minX,c=this.maxX;return this.minX>this.maxX?(a>=b||a<=c)&&!this.isEmpty():a>=b&&a<=c};va.extend=function(a){this.contains(a)||(this.isEmpty()?this.minX=this.maxX=a:this.distance(a,this.minX)=Math.abs(a.minX-this.minX)%360+Math.abs(a.maxX-this.maxX)%360};va.center=function(){var a=(this.minX+this.maxX)/2;this.minX>this.maxX&&(a=Kf(a,-180,180));return a};va.distance=function(a,b){var c=b-a;return 0<=c?c:b+180-(a-180)};var kb=li.prototype;kb.isEmpty=function(){return this.minY>this.maxY};kb.intersects=function(a){var b=this.minY,c=this.maxY;return b<=a.minY?a.minY<=c&&a.minY<=a.maxY:b<=a.maxY&&b<=c};kb.contains=function(a){return a>=this.minY&&a<=this.maxY};kb.extend=function(a){this.isEmpty()?this.maxY=this.minY=a:athis.maxY&&(this.maxY=a)};kb.equals=function(a){return this.isEmpty()?a.isEmpty():1e-9>=Math.abs(a.minY-this.minY)+Math.abs(this.maxY-a.maxY)};kb.center=function(){return(this.maxY+this.minY)/2};var On=6===Wa||7===Wa||8===Wa,A=oa[5],sm=oa[4][7],Ud=function(a){return a/(Math.PI/180)},ia=W.prototype;ia.getX=function(){return this.x};ia.getY=function(){return this.y};ia.toString=function(){return this.x+", "+this.y};ia.equals=function(a){return!a?!1:a.x==this.x&&a.y==this.y};ia.distanceTo=function(a){return Math.sqrt(Math.pow(this.x-a.x,2)+Math.pow(this.y-a.y,2))};ia.minus=function(a){return new W(this.x-a.x,this.y-a.y)};ia.plus=function(a){return new W(this.x+a.x,this.y+a.y)};ia.divide=function(a){return new W(this.x/a,this.y/a)};ia.multiply=function(a){return new W(this.x*a,this.y*a)};ia.dotProduct=function(a){return this.x*a.x+this.y*a.y};ia.crossProduct=function(a){return this.x*a.y-this.y*a.x};ia.clone=function(){return new W(this.x,this.y)};ia.getVectorLength=function(){return Math.sqrt(this.x*this.x+this.y*this.y)};var sd=null,Lf=function(a,b,c,e){c=Math.pow(2,c);sd||(sd=new W(0,0));sd.x=b.x/c;sd.y=b.y/c;return a.fromPointToLatLng(sd,e)},td=function(a,b,c){if(a=a.fromLatLngToPoint(b))c=Math.pow(2,c),a.x*=c,a.y*=c;return a};kc.prototype.stop=function(){this.__event__&&Hf(this.__event__)};var sa=function(a){return"[object Array]"==Object.prototype.toString.call(a)},f=function(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c},Oe=d,nk=kc,tm=function(a){if(Object.keys)return Object.keys(a);var b=[];ha(a,function(a,e){b.push(e)});return b},Ni={},Cc={},ig={},ib=h.prototype;ib.get=function(a){var b=kd(this)[a];if(b){a=b.targetKey;var b=b.target,c=Ni[a]||(Ni[a]="get"+If(a));return b[c]?b[c]():b.get(a)}return this[a]};ib.set=function(a,b){var c=kd(this);if(c.hasOwnProperty(a)){var e=c[a],c=e.targetKey,e=e.target,d=Cc[c]||(Cc[c]="set"+If(c));e[d]?e[d](b):e.set(c,b)}else this[a]=b,Kc(this,a)};ib.notify=function(a){var b=kd(this);b.hasOwnProperty(a)?(a=b[a],a.target.notify(a.targetKey)):Kc(this,a)};ib.setValues=function(a){for(var b in a){var c=a[b],e=Cc[b]||(Cc[b]="set"+If(b));this[e]?this[e](c):this.set(b,c)}};ib.setOptions=ib.setValues;ib.changed=function(a){return function(){}};ib.bindTo=function(a,b,c,e){c=c||a;var d=this;d.unbind(a,!0);Pe(d)[a]=Oe.addListener(b,Lc(c.toLowerCase()),function(){Kc(d,a)});ok(d,a,b,c,e)};ib.bindsTo=function(a,b,c,e){a=sa(a)?a:tm(a);c=c||[];for(var d=0,f=a.length;dc?c:a},rk=Kf,qk=xc,Qg=function(a,b){var c=Math.pow(10,b);return Math.round(a*c)/c},jg=85.051128,Ab=p.prototype;Ab.toString=function(){return this.lat+", "+this.lng};Ab.equals=function(a){return!a?!1:1e-10>=Math.abs(this.lat-a.lat)&&1e-10>=Math.abs(this.lng-a.lng)};Ab.getLat=function(){return this.lat};Ab.getLng=function(){return this.lng};Ab.toUrlValue=function(a){a=a||6;return Qg(this.lng,a)+","+Qg(this.lat,a)};Ab.clone=function(){return new p(this.lat,this.lng,!0)};Ab.distanceTo=function(a){return rm(this,a)};Ab.subtract=function(a){return new p(this.lat-a.lat,this.lng-a.lng)};var Oi=Math.PI/180,Rg=180/Math.PI;Ab.toMercator=function(){var a=[6378137*this.lng*Oi,6378137*Math.log(Math.tan(.25*Math.PI+.5*this.lat*Oi))];20037508.342789244a[0]&&(a[0]=-20037508.342789244);20037508.342789244a[1]&&(a[1]=-20037508.342789244);return new W(a[0],a[1])};p.fromMercator=function(a){return new p((.5*Math.PI-2*Math.atan(Math.exp(-a.y/6378137)))*Rg,a.x*Rg/6378137)};var Qe=W;Kd.prototype.fromLatLngToPoint=function(a,b){var c=b||new Qe(0,0),e=this.a;c.x=e.x+a.getLng()*this.b;var d=xc(Math.sin(T(a.getLat())),-(1-1e-15),1-1e-15);c.y=e.y+.5*Math.log((1+d)/(1-d))*-this.c;return c};Kd.prototype.fromPointToLatLng=function(a,b){var c=this.a;return new p(Ud(2*Math.atan(Math.exp((a.y-c.y)/-this.c))-Math.PI/2),(a.x-c.x)/this.b,b)};Re.prototype.fromLatLngToPoint=function(a,b){var c=b||new Qe(0,0);c.x=(a.getLng()/360+.5)*this.size;c.y=(.25-a.getLat()/360)*this.size;return c};Re.prototype.fromPointToLatLng=function(a,b){return new p(360*(.25-a.y/this.size),360*(a.x/this.size-.5),b)};sk.getInstance=function(a){var b=a.scale;switch(a.projectionMode){case"latlng":return new Re(b);default:return new Kd(b)}};for(var um=oa[4][1],te=[],vm=d.addListener(af,"submit",function(a){if(0Wa){ab.attachEvent("onreadystatechange",mi);var a=function(){if(!ra.isReady){var b=new Image;try{b.doScroll()}catch(c){setTimeout(a,64);return}ra.fireReady()}};a()}else ab.addEventListener("DOMContentLoaded",kg,!1)}};ra.fireReady=function(){if(!ra.isReady){if(!ab.body)return setTimeout(ra.fireReady,16);ra.isReady=!0;if(ra.length)for(var a=0,b;b=ra[a];a++)b()}};var Wg=ra.ready,Ui=window.qq||(window.qq={}),Xg=Ui.maps||(Ui.maps={}),cf=function(a,b){if(null===b)null===Xg[a]||delete Xg[a];else return Xg[a]=b,["qq","maps",a]},mg=ub,vf=window.document,vk=/loaded|complete|undefined/i,uf=vf.dispatchEvent?"onload":"onreadystatechange",wk=0 \uff1a"+b)))},Wi=function(a,b){qm.set(a,b)},bh=function(a,b,c){var e={};c&&ha(c,function(a,b){e[b]=a});b&&ha(b,function(a,b){e[b]=a});a.setValues(e)},Bk=0,Pf=Nd.prototype;Pf.insert=function(a){var b=this.items,c=this.hash(a);b[c]||(++this.length,b[c]=a,d.trigger(this,"insert",a))};Pf.remove=function(a){var b=this.items,c=this.hash(a);b[c]&&(--this.length,delete b[c],d.trigger(this,"remove",a))};Pf.contains=function(a){return!!this.items[this.hash(a)]};Pf.forEach=function(a){var b=this.items,c;for(c in b)b.hasOwnProperty(c)&&a.call(this,b[c])};var x=function(){var a=arguments,b=a.length;return function(){for(var c=0;ca){var c=this.elems[a];this.elems.splice(a,1);this.set("length",b-1);d.trigger(this,"remove_at",c,a);return c}};mb.push=function(a){this.insertAt(this.elems.length,a);return this.elems.length};mb.pop=function(){return this.removeAt(this.elems.length-1)};mb.exists=function(a){if(a)for(var b=0;b=b.lat&&a.lat<=c.lat&&e.lng>=b.lng&&a.lng<=c.lng):this.lat.contains(a.getLat())&&this.lng.contains(a.getLng())};Eb.extend=function(a){if(this.isEmpty()){var b=a.getLat();a=a.getLng();this.lat=new pg(b,b);this.lng=new Mc(a,a)}else this.lat.extend(a.getLat()),this.lng.extend(a.getLng());return this};Eb.union=function(a){if(!a.isEmpty())return this.extend(a.getNorthEast()),this.extend(a.getSouthWest()),this};Eb.equals=function(a){return!a?!1:this.lat.equals(a.lat)&&this.lng.equals(a.lng)};Eb.clone=function(){return new yb(this.getSouthWest(),this.getNorthEast())};Eb.toString=function(){return this.getSouthWest()+", "+this.getNorthEast()};Eb.toUrlValue=function(){return this.getSouthWest().toUrlValue()+","+this.getNorthEast().toUrlValue()};var qg=Nb,ch=p,pi=ga,Kk=Nd,Sk=function(a){var b=window.setTimeout(a,1e3);op.send(null,sm,function(c){c&&c.info&&0===c.error&&(c=c.info,A[0]&&c["1d"]&&(A[0][6]=c["1d"],A[3][6]=c["1d"]),A[1]&&c["2d"]&&(A[1][6]=c["2d"]),A[7]&&c.vt&&(A[7][4]=c.vt),A[2]&&c.sat&&(A[2][6]=c.sat));a();clearTimeout(b)},a)},Nk=Zc,Ik=ld,Jk=Qa,Mk=ha,Gk=Vd,Fk=nc,Se=J,ch=p,qi=d,Hk=bh,Rk=Pn,Pk=Wi,Uk=function(a){a.setOffsetCenter=function(a){var c=this.getMapCenterOffset()||new ba(0,0),e=this.getZoom(),d=a;if(Number(c.width)||Number(c.height))a=td(df,a,e),c=new W(a.x-c.width,a.y-c.height),d=Lf(df,c,e);this.setCenter(d)};a.getOffsetCenter=function(){var a=this.getMapCenterOffset()||new ba(0,0),c=this.getCenter(),e=this.getZoom();if(0==a.width&&0==a.height)return c;c=td(df,c,e);a=new W(c.x+a.width,c.y+a.height);return Lf(df,a,e)}},Qk=uc,Tk=function(a){if(!ym)return a();var b=xm,c=xk();if(!c.ver||!c.url)return b&&b("0"),a();b&&b("1");if(Tb.support())if(Tb.get("style_version")==c.ver){b=Tb.get("styles");try{var e=JSON.parse(b);Of.set(e);return a()}catch(d){return a()}}else ng(c.url,function(b){if(b)try{var c=JSON.parse(b),e=c.data;e&&(Of.set(e),Tb.set("style_version",c.version),Tb.set("styles",JSON.stringify(e)));return a()}catch(d){return a()}},function(b){console.log("\u6837\u5f0f\u8bf7\u6c42\u5931\u8d25",b);return a()});else ng(c.url,function(b){b&&b&&Of.set(b);return a()},function(b){console.log("\u6837\u5f0f\u8bf7\u6c42\u5931\u8d25",b);return a()})},xf={mapTypeId:vb.ROADMAP,mapStyleId:pi.DEFAULT,maxZoom:rp,minZoom:qp,disableDefaultUI:!1,boundary:null,autoResize:!0,resizeKeepCenter:!0,mapZoomType:ff.DEFAULT,mapZoomOffset:new W(0,0),projectionMode:"mercator",scale:1};ef[0]&&ef[1]&&(xf.center=new ch(ef[0],ef[1]),xf.zoom=pp);f(rb,h);var sb=rb.prototype;ja(rb.prototype,["projection",null,"bounds",null,"boundary",x(R(yb),v),"center",R(ch),"zoom",G,"mapTypeId",Se,"mapStyleId",Se,"mapCenterOffset",R(ba)]);sb._=function(){return this.V};sb.getContainer=function(){return this.container};sb.panBy=vc("panby");sb.panTo=vc("panto");sb.flyTo=vc("fly_to");sb.zoomBy=function(a){var b=this.getZoom();G(b)&&this.setZoom(b+a)};sb.zoomTo=function(a){this.setZoom(a)};sb.fitBounds=vc("fitbounds");sb.panToBounds=vc("pantolatlngbounds");f(Nc,h);Nc.prototype.map_changed=function(){var a=this;U.$require("oy",function(b){b(a)})};ja(Nc.prototype,["map",x(R(rb),v),"panes",null,"projection",null]);Ib.fromHex=function(a,b){"#"===a.substring(0,1)&&(a=a.substr(1));var c=3===a.length?1:2,e=a.substr(0,c),d=a.substr(c,c),f=a.substr(2*c,c);1===c&&(e+=e,d+=d,f+=f);e=parseInt(e,16);d=parseInt(d,16);f=parseInt(f,16);return new Ib(e,d,f,b||1)};var Vb=Ib.prototype;Vb.toRGB=function(){return"rgb("+[this.red,this.green,this.blue].join()+")"};Vb.toRGBA=function(){return"rgba("+[this.red,this.green,this.blue,this.alpha].join()+")"};Vb.toHex=function(){return"#"+(16777216+(this.red<<16)+(this.green<<8)+this.blue).toString(16).slice(1).toUpperCase()};Vb.toInt=function(){return this.red<<16|this.green<<8|this.blue};Vb.toString=function(){return this.toRGBA()};Vb.clone=function(){return new Ib(this.red,this.green,this.blue,this.alpha)};var Xk=Db,Ob=Nb,Wk=Yc,Vk=g,Ue=sa,rg=R(Ob),Pb=Ib;f(Pc,Nc);Pc.prototype.getPath=function(){return this.get("path")};Pc.prototype.setPath=function(a){a=Te(a)||new Ob;this.is2Dim=rg(a.getAt(0));this.set("path",a)};Pc.prototype.getBounds=function(){var a=this.getPath(),b=this.is2Dim,c=null;if(a&&a.getLength()){var e=[],d=[];a.forEach(function(a){b?a.forEach(function(a){e.push(a.getLng());d.push(a.getLat())}):(e.push(a.getLng()),d.push(a.getLat()))});var f=Math.min.apply(Math,e),g=Math.min.apply(Math,d),a=Math.max.apply(Math,e),c=Math.max.apply(Math,d),f=new p(g,f),a=new p(c,a),c=new yb(f,a)}return c};ja(Pc.prototype,["map",x(R(rb),v),"visible",wa,"simplify",wa,"clickable",wa,"editable",wa,"cursor",J,"zIndex",G,"geodesic",wa,"strokeDashStyle",x(J,v),"strokeColor",x(R(Pb),J,v),"strokeWeight",x(G),"fillColor",x(R(Pb),J,v),"strokeLinecap",J]);var tg=Pc;f(sg,tg);var ug=Pc;f(ri,ug);var Yk=Yc,md=Ib,Zk=Db;f(Ve,Nc);ja(Ve.prototype,["map",x(R(rb),v),"visible",wa,"editable",wa,"center",x(R(p),v),"radius",x(G,v),"cursor",x(J,v),"zIndex",x(G,v),"fillColor",x(R(md),J,v),"strokeColor",x(R(md),J,v),"strokeWeight",G,"strokeDashStyle",x(J,v)]);var sp=/-./g,tp=function(a){return a.charAt(1).toUpperCase()},Xi={};Xi["float"]=Wa?"styleFloat":"cssFloat";var up=function(a,b){b=b||{};return function(c){return Jg(b,c)?b[c]:b[c]=a(c)}}(function(a){return a.replace(sp,tp)},Xi),C=function(a,b,c){a.style[up(b)]=c},gf=5==ka||6==ka,ud=Vg[1],Ga=Vg[0],Fb=function(){var a=$e,b=Ga,c=ud,e=gf,e=4==b&&e,c=4==b&&4==ka&&534<=c,d=3==b&&4==ka,f=2==b&&0c&&(c+=e);c=e.duration&&(d=e.duration,f=!0);e.set("current",d);e.onEnterFrame(d);f?e.stop():e.status||(e.status=1);e._frameDuration=+Xa()-c}});var e=+Xa()-a;g(b,function(a){a._startTime&&(a.onExitFrame(a._frameDuration,e),delete a._frameDuration)})}};f(vg,h);var vd=vg.prototype;vd.start=function(){function a(){b.onStart();b.status=0;eh.add(b);delete b._delayTimer}this.stop(!0);var b=this;this.delay?b._delayTimer=window.setTimeout(a,b.delay):a()};vd.stop=function(a){this._delayTimer&&(window.clearTimeout(this._delayTimer),delete this._delayTimer);eh.remove(this);this.status=-1;if(!a)this.onEnd()};vd.getStatus=function(){return this.status};vd.onStart=function(){};vd.onEnterFrame=function(){};vd.onExitFrame=function(){};vd.onEnd=function(){};var fh=function(a){a=a||window.event;if(Wa)a=[a.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft),a.clientY+(document.documentElement.scrollTop||document.body.scrollTop)];else if(a.touches){var b=null;0a||4=b)c=new yb(a.clone(),a.clone());else var e=a.getLat(),d=b/6378137,f=180*d/Math.PI,b=e+f,c=e-f,e=Math.cos(e*Math.PI/180),f=360*Math.asin(d/2/e)/Math.PI,e=a.getLng()+f,a=a.getLng()-f,c=new yb(new p(c,a),new p(b,e));return c};var Ci=ri;f(Df,Ci);var Di=sg;f(Vc,Di);var Ei=yf;f(Ef,Ei);var Ua=Ef.prototype;Ua.addMarker=function(a){this.clusterView.addMarker(a)};Ua.removeMarker=function(a){var b=this.get("markers");b&&(b.remove(a),this.clusterView.removeMarker(a))};Ua.addMarkers=function(a){var b=this.get("markers");g(a,function(a){b.push(a)});this.clusterView.redraw()};Ua.removeMarkers=function(a){var b=this.get("markers");g(a,function(a){b.remove(a)});this.clusterView.removeMarkers(a)};Ua.clearMarkers=function(){var a=this.get("markers");this.clusterView.removeMarkers(a.elems.slice());a.clear()};Ua.getMarkers=function(){return this.get("markers")};Ua.getClustersCount=function(){return this.clusterView.getClusterCount()};Ua.updateView=function(){return this.clusterView.reloadView()};var Fm={BOUNCE:1,DROP:2,UP:3,DOWN:4},Fi=$b;f(Rd,Fi);Rd.prototype.CLASS_NAME="Marker";var Xl=Nd,Yl=fg,Wl=bb,Jb=ea;f(se,h);ja(se.prototype,["opacity",x(G,v)]);se.prototype._setScale=function(a){this.set("scale",a)};var Gm=function(a){var b;return function(){a&&(b=a(),a=null);return b}},Tn=oa[3][1],ye=function(){return window.devicePixelRatio||screen.deviceXDPI&&screen.deviceXDPI/96||1},aj=Gm(function(){var a=document.createElement("canvas");a.width=16;a.height=16;return!(!a||!a.getContext)}),sh=Tn,sh=sh+"?appid=jsapi&logid=0&v=",bj=Li[1],cj=oa[6][2],Zl=Rd,Gi=d;f(Sd,h);var ob=Sd.prototype;ob.remove=function(){this.icon.set("map",null);this.markers.length=0;Gi.removeListener(this.clickListener);delete this.markers;delete this.icon;delete this.markerCluster;delete this.clickListener};ob.addMarker=function(a){this.isMarkerAlreadyAdded(a)||(this.markers.push(a),this.updateCenter(a.get("position")))};ob.redraw=function(){var a=this,b=this.markerCluster.get("minimumClusterSize")||1,c=this.markers,e=c.length>=b;g(c,function(b){b.isClustered=e;a.markerCluster.setMarkerDisplay(b,!e)});this.isCluster=e;this.updateIcon()};ob.updateCenter=function(a){var b=this.get("center");if(b){if(this.markerCluster.get("averageCenter")){var c=this.markers.length;this.set("center",new p((b.lat*(c-1)+a.lat)/c,(b.lng*(c-1)+a.lng)/c))}}else this.set("center",a)};ob.updateIcon=function(){var a=this.markerCluster.getStyles(),b=a.length,c=this.markerCluster.getCalculator(this.markers,b),e=Math.max(0,c.index-1),e=Math.min(b-1,e),b=a[e],a=b.icon,b=b.text,c=b.content.replace(/\{(\w+)\}/g,c.text),c=new xd(c,b.offset);this.icon.set("decoration",c);this.icon.set("icon",a);this.icon.set("map",this.isCluster?this.map:null);this.icon.set("position",this.isCluster?this.center:null)};ob.isMarkerAlreadyAdded=function(a){return-1!==hf(this.markers,a)};ob.getMarkers=function(){return this.markers};ob.getBounds=function(){var a=this.get("center");if(!a)return null;var b={},c=new yb(a,a);g(this.markers,function(a){c.extend(a.get("position"))});b.info=c.lat.maxY==c.lat.minY&&c.lng.maxX==c.lng.minX?-1:0;b.bounds=c;return b};var D={};D.event=d;D.MVCObject=h;D.MVCArray=Nb;D.LatLng=p;D.LatLngBounds=yb;D.Size=ba;D.Point=W;D.Color=Ib;D.Map=rb;D.MapTypeId=vb;D.MapZoomType=ff;D.MapTypeRegistry=ld;D.MapStyleId=ga;D.MapStyleRegistry=Qa;D.ImageMapType=se;D.Overlay=Nc;D.Marker=Rd;D.MarkerImage=we;D.MarkerShape=Am;D.MarkerAnimation=Fm;D.MarkerDecoration=xd;D.Cluster=Sd;D.MarkerCluster=Ef;D.Polyline=Vc;D.Polygon=Df;D.Circle=Ai;D.InfoWindow=Ye;D.Label=Cg;D.GroundOverlay=Xe;D.ControlPosition=Zc;D.Control=re;D.ALIGN={TOP_LEFT:5,TOP:2,TOP_RIGHT:3,LEFT:4,CENTER:13,RIGHT:8,BOTTOM_LEFT:10,BOTTOM:11,BOTTOM_RIGHT:12,isTop:function(a){return 3>a},isMiddle:function(a){return 2a},isBottom:function(a){return 5=a&&b++});return b};S.draw=function(){if(this.ready){var a=this,b=a.get("map"),c=b.get("zoom"),d=a.get("maxZoom");if(d&&c>d)a.markers.forEach(function(b){a.setMarkerDisplay(b,!0)});else{if(b=b.getBounds()){var f=a.getExtendedBounds(b);a.markers.forEach(function(b){!b.isAdded&&a.isMarkerInBounds(b,f)&&(a.addToClosestCluster(b),b.isAdded=!0)})}a.clusters.forEach(function(a){a.isToRedraw&&(a.redraw(),a.isToRedraw=!1)})}}};S.resetViewport=function(){cc(this.clusters,function(a){a.remove()});this.markers.forEach(function(a){a.isAdded=!1;a.isClustered=!1});this.clusters.length=0};S.addToClosestCluster=function(a){var b=4e4,c=null,d=this,f=a.get("position"),g=d.clusters;cc(g,function(a){var g=a.get("center");g&&(g=d.distanceBetweenPoints(g,f),g