@googlemaps/markerclustererplus
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -1,2 +0,2 @@ | ||
var MarkerClusterer=function(){"use strict";var t=function(t){try{return!!t()}catch(t){return!0}},e=!t((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var i,o,s=function(t){return t&&t.Math==Math&&t},a=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r&&r)||function(){return this}()||Function("return this")(),u=function(t){return"function"==typeof t},l=/#|\.prototype\./,c=function(e,r){var n=p[h(e)];return n==g||n!=f&&(u(r)?t(r):!!r)},h=c.normalize=function(t){return String(t).replace(l,".").toLowerCase()},p=c.data={},f=c.NATIVE="N",g=c.POLYFILL="P",d=c,m=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},v=function(t){return Object(m(t))},_={}.hasOwnProperty,y=Object.hasOwn||function(t,e){return _.call(v(t),e)},b=function(t){return"object"==typeof t?null!==t:u(t)},x=a.document,S=b(x)&&b(x.createElement),M=function(t){return S?x.createElement(t):{}},I=!e&&!t((function(){return 7!=Object.defineProperty(M("div"),"a",{get:function(){return 7}}).a})),w=function(t){if(b(t))return t;throw TypeError(String(t)+" is not an object")},k=function(t){return u(t)?t:void 0},C=function(t,e){return arguments.length<2?k(a[t]):a[t]&&a[t][e]},E=C("navigator","userAgent")||"",O=a.process,A=a.Deno,T=O&&O.versions||A&&A.version,P=T&&T.v8;P?o=(i=P.split("."))[0]<4?1:i[0]+i[1]:E&&(!(i=E.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=E.match(/Chrome\/(\d+)/))&&(o=i[1]);var L=o&&+o,j=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&L&&L<41})),z=j&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,R=z?function(t){return"symbol"==typeof t}:function(t){var e=C("Symbol");return u(e)&&Object(t)instanceof e},N=function(t){try{return String(t)}catch(t){return"Object"}},B=function(t){if(u(t))return t;throw TypeError(N(t)+" is not a function")},Z=function(t,e){var r=t[e];return null==r?void 0:B(r)},D=function(t,e){try{Object.defineProperty(a,t,{value:e,configurable:!0,writable:!0})}catch(r){a[t]=e}return e},F="__core-js_shared__",H=a[F]||D(F,{}),$=n((function(t){(t.exports=function(t,e){return H[t]||(H[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.18.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),G=0,U=Math.random(),V=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++G+U).toString(36)},W=$("wks"),X=a.Symbol,Y=z?X:X&&X.withoutSetter||V,q=function(t){return y(W,t)&&(j||"string"==typeof W[t])||(j&&y(X,t)?W[t]=X[t]:W[t]=Y("Symbol."+t)),W[t]},K=q("toPrimitive"),J=function(t,e){if(!b(t)||R(t))return t;var r,n=Z(t,K);if(n){if(void 0===e&&(e="default"),r=n.call(t,e),!b(r)||R(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&u(r=t.toString)&&!b(n=r.call(t)))return n;if(u(r=t.valueOf)&&!b(n=r.call(t)))return n;if("string"!==e&&u(r=t.toString)&&!b(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}(t,e)},Q=function(t){var e=J(t,"string");return R(e)?e:String(e)},tt=Object.defineProperty,et={f:e?tt:function(t,e,r){if(w(t),e=Q(e),w(r),I)try{return tt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},rt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},nt=e?function(t,e,r){return et.f(t,e,rt(1,r))}:function(t,e,r){return t[e]=r,t},it=Function.toString;u(H.inspectSource)||(H.inspectSource=function(t){return it.call(t)});var ot,st,at,ut=H.inspectSource,lt=a.WeakMap,ct=u(lt)&&/native code/.test(ut(lt)),ht=$("keys"),pt=function(t){return ht[t]||(ht[t]=V(t))},ft={},gt="Object already initialized",dt=a.WeakMap;if(ct||H.state){var mt=H.state||(H.state=new dt),vt=mt.get,_t=mt.has,yt=mt.set;ot=function(t,e){if(_t.call(mt,t))throw new TypeError(gt);return e.facade=t,yt.call(mt,t,e),e},st=function(t){return vt.call(mt,t)||{}},at=function(t){return _t.call(mt,t)}}else{var bt=pt("state");ft[bt]=!0,ot=function(t,e){if(y(t,bt))throw new TypeError(gt);return e.facade=t,nt(t,bt,e),e},st=function(t){return y(t,bt)?t[bt]:{}},at=function(t){return y(t,bt)}}var xt,St={set:ot,get:st,has:at,enforce:function(t){return at(t)?st(t):ot(t,{})},getterFor:function(t){return function(e){var r;if(!b(e)||(r=st(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},Mt=Function.prototype,It=e&&Object.getOwnPropertyDescriptor,wt=y(Mt,"name"),kt={EXISTS:wt,PROPER:wt&&"something"===function(){}.name,CONFIGURABLE:wt&&(!e||e&&It(Mt,"name").configurable)},Ct=n((function(t){var e=kt.CONFIGURABLE,r=St.get,n=St.enforce,i=String(String).split("String");(t.exports=function(t,r,o,s){var l,c=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,f=s&&void 0!==s.name?s.name:r;u(o)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!y(o,"name")||e&&o.name!==f)&&nt(o,"name",f),(l=n(o)).source||(l.source=i.join("string"==typeof f?f:""))),t!==a?(c?!p&&t[r]&&(h=!0):delete t[r],h?t[r]=o:nt(t,r,o)):h?t[r]=o:D(r,o)})(Function.prototype,"toString",(function(){return u(this)&&r(this).source||ut(this)}))})),Et={}.toString,Ot=function(t){return Et.call(t).slice(8,-1)},At=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return w(r),function(t){if("object"==typeof t||u(t))return t;throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Tt=function(t,e,r){var n,i;return At&&u(n=e.constructor)&&n!==r&&b(i=n.prototype)&&i!==r.prototype&&At(t,i),t},Pt="".split,Lt=t((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==Ot(t)?Pt.call(t,""):Object(t)}:Object,jt=function(t){return Lt(m(t))},zt=Math.ceil,Rt=Math.floor,Nt=function(t){return isNaN(t=+t)?0:(t>0?Rt:zt)(t)},Bt=Math.min,Zt=function(t){return t>0?Bt(Nt(t),9007199254740991):0},Dt=Math.max,Ft=Math.min,Ht=function(t,e){var r=Nt(t);return r<0?Dt(r+e,0):Ft(r,e)},$t=function(t){return function(e,r,n){var i,o=jt(e),s=Zt(o.length),a=Ht(n,s);if(t&&r!=r){for(;s>a;)if((i=o[a++])!=i)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===r)return t||a||0;return!t&&-1}},Gt={includes:$t(!0),indexOf:$t(!1)},Ut=Gt.indexOf,Vt=function(t,e){var r,n=jt(t),i=0,o=[];for(r in n)!y(ft,r)&&y(n,r)&&o.push(r);for(;e.length>i;)y(n,r=e[i++])&&(~Ut(o,r)||o.push(r));return o},Wt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xt=Object.keys||function(t){return Vt(t,Wt)},Yt=e?Object.defineProperties:function(t,e){w(t);for(var r,n=Xt(e),i=n.length,o=0;i>o;)et.f(t,r=n[o++],e[r]);return t},qt=C("document","documentElement"),Kt=pt("IE_PROTO"),Jt=function(){},Qt=function(t){return"<script>"+t+"</"+"script>"},te=function(t){t.write(Qt("")),t.close();var e=t.parentWindow.Object;return t=null,e},ee=function(){try{xt=new ActiveXObject("htmlfile")}catch(t){}var t,e;ee="undefined"!=typeof document?document.domain&&xt?te(xt):((e=M("iframe")).style.display="none",qt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Qt("document.F=Object")),t.close(),t.F):te(xt);for(var r=Wt.length;r--;)delete ee.prototype[Wt[r]];return ee()};ft[Kt]=!0;var re=Object.create||function(t,e){var r;return null!==t?(Jt.prototype=w(t),r=new Jt,Jt.prototype=null,r[Kt]=t):r=ee(),void 0===e?r:Yt(r,e)},ne=Wt.concat("length","prototype"),ie={f:Object.getOwnPropertyNames||function(t){return Vt(t,ne)}},oe={}.propertyIsEnumerable,se=Object.getOwnPropertyDescriptor,ae={f:se&&!oe.call({1:2},1)?function(t){var e=se(this,t);return!!e&&e.enumerable}:oe},ue=Object.getOwnPropertyDescriptor,le={f:e?ue:function(t,e){if(t=jt(t),e=Q(e),I)try{return ue(t,e)}catch(t){}if(y(t,e))return rt(!ae.f.call(t,e),t[e])}},ce={};ce[q("toStringTag")]="z";var he="[object z]"===String(ce),pe=q("toStringTag"),fe="Arguments"==Ot(function(){return arguments}()),ge=he?Ot:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),pe))?r:fe?Ot(e):"Object"==(n=Ot(e))&&u(e.callee)?"Arguments":n},de=function(t){if("Symbol"===ge(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)},me="\t\n\v\f\r \u2028\u2029\ufeff",ve="["+me+"]",_e=RegExp("^"+ve+ve+"*"),ye=RegExp(ve+ve+"*$"),be=function(t){return function(e){var r=de(m(e));return 1&t&&(r=r.replace(_e,"")),2&t&&(r=r.replace(ye,"")),r}},xe={start:be(1),end:be(2),trim:be(3)},Se=ie.f,Me=le.f,Ie=et.f,we=xe.trim,ke="Number",Ce=a.Number,Ee=Ce.prototype,Oe=Ot(re(Ee))==ke,Ae=function(t){if(R(t))throw TypeError("Cannot convert a Symbol value to a number");var e,r,n,i,o,s,a,u,l=J(t,"number");if("string"==typeof l&&l.length>2)if(43===(e=(l=we(l)).charCodeAt(0))||45===e){if(88===(r=l.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+l}for(s=(o=l.slice(2)).length,a=0;a<s;a++)if((u=o.charCodeAt(a))<48||u>i)return NaN;return parseInt(o,n)}return+l};if(d(ke,!Ce(" 0o1")||!Ce("0b1")||Ce("+0x1"))){for(var Te,Pe=function(e){var r=arguments.length<1?0:e,n=this;return n instanceof Pe&&(Oe?t((function(){Ee.valueOf.call(n)})):Ot(n)!=ke)?Tt(new Ce(Ae(r)),n,Pe):Ae(r)},Le=e?Se(Ce):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),je=0;Le.length>je;je++)y(Ce,Te=Le[je])&&!y(Pe,Te)&&Ie(Pe,Te,Me(Ce,Te));Pe.prototype=Ee,Ee.constructor=Pe,Ct(a,ke,Pe)}var ze={f:Object.getOwnPropertySymbols},Re=C("Reflect","ownKeys")||function(t){var e=ie.f(w(t)),r=ze.f;return r?e.concat(r(t)):e},Ne=function(t,e){for(var r=Re(e),n=et.f,i=le.f,o=0;o<r.length;o++){var s=r[o];y(t,s)||n(t,s,i(e,s))}},Be=le.f,Ze=function(t,e){var r,n,i,o,s,u=t.target,l=t.global,c=t.stat;if(r=l?a:c?a[u]||D(u,{}):(a[u]||{}).prototype)for(n in e){if(o=e[n],i=t.noTargetGet?(s=Be(r,n))&&s.value:r[n],!d(l?n:u+(c?".":"#")+n,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;Ne(o,i)}(t.sham||i&&i.sham)&&nt(o,"sham",!0),Ct(r,n,o,t)}},De=function(e,r){var n=[][e];return!!n&&t((function(){n.call(null,r||function(){throw 1},1)}))},Fe=Gt.indexOf,He=[].indexOf,$e=!!He&&1/[1].indexOf(1,-0)<0,Ge=De("indexOf");Ze({target:"Array",proto:!0,forced:$e||!Ge},{indexOf:function(t){return $e?He.apply(this,arguments)||0:Fe(this,t,arguments.length>1?arguments[1]:void 0)}});var Ue=Array.isArray||function(t){return"Array"==Ot(t)},Ve=[],We=C("Reflect","construct"),Xe=/^\s*(?:class|function)\b/,Ye=Xe.exec,qe=!Xe.exec((function(){})),Ke=function(t){if(!u(t))return!1;try{return We(Object,Ve,t),!0}catch(t){return!1}},Je=!We||t((function(){var t;return Ke(Ke.call)||!Ke(Object)||!Ke((function(){t=!0}))||t}))?function(t){if(!u(t))return!1;switch(ge(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return qe||!!Ye.call(Xe,ut(t))}:Ke,Qe=q("species"),tr=function(t,e){return new(function(t){var e;return Ue(t)&&(e=t.constructor,(Je(e)&&(e===Array||Ue(e.prototype))||b(e)&&null===(e=e[Qe]))&&(e=void 0)),void 0===e?Array:e}(t))(0===e?0:e)},er=function(t,e,r){var n=Q(e);n in t?et.f(t,n,rt(0,r)):t[n]=r},rr=q("species"),nr=function(e){return L>=51||!t((function(){var t=[];return(t.constructor={})[rr]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},ir=nr("splice"),or=Math.max,sr=Math.min,ar=9007199254740991,ur="Maximum allowed length exceeded";Ze({target:"Array",proto:!0,forced:!ir},{splice:function(t,e){var r,n,i,o,s,a,u=v(this),l=Zt(u.length),c=Ht(t,l),h=arguments.length;if(0===h?r=n=0:1===h?(r=0,n=l-c):(r=h-2,n=sr(or(Nt(e),0),l-c)),l+r-n>ar)throw TypeError(ur);for(i=tr(u,n),o=0;o<n;o++)(s=c+o)in u&&er(i,o,u[s]);if(i.length=n,r<n){for(o=c;o<l-n;o++)a=o+r,(s=o+n)in u?u[a]=u[s]:delete u[a];for(o=l;o>l-n+r;o--)delete u[o-1]}else if(r>n)for(o=l-n;o>c;o--)a=o+r-1,(s=o+n-1)in u?u[a]=u[s]:delete u[a];for(o=0;o<r;o++)u[o+c]=arguments[o+2];return u.length=l-n+r,i}});var lr=nr("slice"),cr=q("species"),hr=[].slice,pr=Math.max;Ze({target:"Array",proto:!0,forced:!lr},{slice:function(t,e){var r,n,i,o=jt(this),s=Zt(o.length),a=Ht(t,s),u=Ht(void 0===e?s:e,s);if(Ue(o)&&(r=o.constructor,(Je(r)&&(r===Array||Ue(r.prototype))||b(r)&&null===(r=r[cr]))&&(r=void 0),r===Array||void 0===r))return hr.call(o,a,u);for(n=new(void 0===r?Array:r)(pr(u-a,0)),i=0;a<u;a++,i++)a in o&&er(n,i,o[a]);return n.length=i,n}});var fr=he?{}.toString:function(){return"[object "+ge(this)+"]"};he||Ct(Object.prototype,"toString",fr,{unsafe:!0});var gr=function(){var t=w(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},dr=kt.PROPER,mr="toString",vr=RegExp.prototype,_r=vr.toString,yr=t((function(){return"/a/b"!=_r.call({source:"a",flags:"b"})})),br=dr&&_r.name!=mr;(yr||br)&&Ct(RegExp.prototype,mr,(function(){var t=w(this),e=de(t.source),r=t.flags;return"/"+e+"/"+de(void 0===r&&t instanceof RegExp&&!("flags"in vr)?gr.call(t):r)}),{unsafe:!0});var xr=function(t,e){return(xr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function Sr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}xr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var Mr=function(){return(Mr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Ir=[].join,wr=Lt!=Object,kr=De("join",",");Ze({target:"Array",proto:!0,forced:wr||!kr},{join:function(t){return Ir.call(jt(this),void 0===t?",":t)}});var Cr=function(t){return function(e,r,n,i){B(r);var o=v(e),s=Lt(o),a=Zt(o.length),u=t?a-1:0,l=t?-1:1;if(n<2)for(;;){if(u in s){i=s[u],u+=l;break}if(u+=l,t?u<0:a<=u)throw TypeError("Reduce of empty array with no initial value")}for(;t?u>=0:a>u;u+=l)u in s&&(i=r(i,s[u],u,o));return i}},Er={left:Cr(!1),right:Cr(!0)},Or="process"==Ot(a.process),Ar=Er.left;Ze({target:"Array",proto:!0,forced:!De("reduce")||!Or&&L>79&&L<83},{reduce:function(t){return Ar(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}}),Ze({target:"Object",stat:!0,forced:t((function(){Xt(1)}))},{keys:function(t){return Xt(v(t))}});var Tr,Pr,Lr=a.RegExp,jr={UNSUPPORTED_Y:t((function(){var t=Lr("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:t((function(){var t=Lr("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},zr=a.RegExp,Rr=t((function(){var t=zr(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Nr=a.RegExp,Br=t((function(){var t=Nr("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Zr=St.get,Dr=RegExp.prototype.exec,Fr=$("native-string-replace",String.prototype.replace),Hr=Dr,$r=(Tr=/a/,Pr=/b*/g,Dr.call(Tr,"a"),Dr.call(Pr,"a"),0!==Tr.lastIndex||0!==Pr.lastIndex),Gr=jr.UNSUPPORTED_Y||jr.BROKEN_CARET,Ur=void 0!==/()??/.exec("")[1];($r||Ur||Gr||Rr||Br)&&(Hr=function(t){var e,r,n,i,o,s,a,u=this,l=Zr(u),c=de(t),h=l.raw;if(h)return h.lastIndex=u.lastIndex,e=Hr.call(h,c),u.lastIndex=h.lastIndex,e;var p=l.groups,f=Gr&&u.sticky,g=gr.call(u),d=u.source,m=0,v=c;if(f&&(-1===(g=g.replace("y","")).indexOf("g")&&(g+="g"),v=c.slice(u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==c.charAt(u.lastIndex-1))&&(d="(?: "+d+")",v=" "+v,m++),r=new RegExp("^(?:"+d+")",g)),Ur&&(r=new RegExp("^"+d+"$(?!\\s)",g)),$r&&(n=u.lastIndex),i=Dr.call(f?r:u,v),f?i?(i.input=i.input.slice(m),i[0]=i[0].slice(m),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:$r&&i&&(u.lastIndex=u.global?i.index+i[0].length:n),Ur&&i&&i.length>1&&Fr.call(i[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&p)for(i.groups=s=re(null),o=0;o<p.length;o++)s[(a=p[o])[0]]=i[a[1]];return i});var Vr=Hr;Ze({target:"RegExp",proto:!0,forced:/./.exec!==Vr},{exec:Vr});var Wr=q("species"),Xr=RegExp.prototype,Yr=function(e,r,n,i){var o=q(e),s=!t((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=s&&!t((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Wr]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!s||!a||n){var u=/./[o],l=r(o,""[e],(function(t,e,r,n,i){var o=e.exec;return o===Vr||o===Xr.exec?s&&!i?{done:!0,value:u.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}));Ct(String.prototype,e,l[0]),Ct(Xr,o,l[1])}i&&nt(Xr[o],"sham",!0)},qr=q("match"),Kr=q("species"),Jr=function(t,e){var r,n=w(t).constructor;return void 0===n||null==(r=w(n)[Kr])?e:function(t){if(Je(t))return t;throw TypeError(N(t)+" is not a constructor")}(r)},Qr=function(t){return function(e,r){var n,i,o=de(m(e)),s=Nt(r),a=o.length;return s<0||s>=a?t?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===a||(i=o.charCodeAt(s+1))<56320||i>57343?t?o.charAt(s):n:t?o.slice(s,s+2):i-56320+(n-55296<<10)+65536}},tn={codeAt:Qr(!1),charAt:Qr(!0)}.charAt,en=function(t,e,r){return e+(r?tn(t,e).length:1)},rn=function(t,e){var r=t.exec;if(u(r)){var n=r.call(t,e);return null!==n&&w(n),n}if("RegExp"===Ot(t))return Vr.call(t,e);throw TypeError("RegExp#exec called on incompatible receiver")},nn=jr.UNSUPPORTED_Y,on=[].push,sn=Math.min,an=4294967295;Yr("split",(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n,i,o=de(m(this)),s=void 0===r?an:r>>>0;if(0===s)return[];if(void 0===t)return[o];if(!b(n=t)||!(void 0!==(i=n[qr])?i:"RegExp"==Ot(n)))return e.call(o,t,s);for(var a,u,l,c=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,f=new RegExp(t.source,h+"g");(a=Vr.call(f,o))&&!((u=f.lastIndex)>p&&(c.push(o.slice(p,a.index)),a.length>1&&a.index<o.length&&on.apply(c,a.slice(1)),l=a[0].length,p=u,c.length>=s));)f.lastIndex===a.index&&f.lastIndex++;return p===o.length?!l&&f.test("")||c.push(""):c.push(o.slice(p)),c.length>s?c.slice(0,s):c}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var i=m(this),o=null==e?void 0:Z(e,t);return o?o.call(e,i,r):n.call(de(i),e,r)},function(t,i){var o=w(this),s=de(t),a=r(n,o,s,i,n!==e);if(a.done)return a.value;var u=Jr(o,RegExp),l=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(nn?"g":"y"),h=new u(nn?"^(?:"+o.source+")":o,c),p=void 0===i?an:i>>>0;if(0===p)return[];if(0===s.length)return null===rn(h,s)?[s]:[];for(var f=0,g=0,d=[];g<s.length;){h.lastIndex=nn?0:g;var m,v=rn(h,nn?s.slice(g):s);if(null===v||(m=sn(Zt(h.lastIndex+(nn?g:0)),s.length))===f)g=en(s,g,l);else{if(d.push(s.slice(f,g)),d.length===p)return d;for(var _=1;_<=v.length-1;_++)if(d.push(v[_]),d.length===p)return d;g=f=m}}return d.push(s.slice(f)),d}]}),!!t((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),nn);var un=xe.trim,ln=a.parseInt,cn=a.Symbol,hn=cn&&cn.iterator,pn=/^[+-]?0[Xx]/,fn=8!==ln(me+"08")||22!==ln(me+"0x16")||hn&&!t((function(){ln(Object(hn))}))?function(t,e){var r=un(de(t));return ln(r,e>>>0||(pn.test(r)?16:10))}:ln;Ze({global:!0,forced:parseInt!=fn},{parseInt:fn});var gn=Math.floor,dn="".replace,mn=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,vn=/\$([$&'`]|\d{1,2})/g,_n=function(t,e,r,n,i,o){var s=r+t.length,a=n.length,u=vn;return void 0!==i&&(i=v(i),u=mn),dn.call(o,u,(function(o,u){var l;switch(u.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(s);case"<":l=i[u.slice(1,-1)];break;default:var c=+u;if(0===c)return o;if(c>a){var h=gn(c/10);return 0===h?o:h<=a?void 0===n[h-1]?u.charAt(1):n[h-1]+u.charAt(1):o}l=n[c-1]}return void 0===l?"":l}))},yn=q("replace"),bn=Math.max,xn=Math.min,Sn="$0"==="a".replace(/./,"$0"),Mn=!!/./[yn]&&""===/./[yn]("a","$0");Yr("replace",(function(t,e,r){var n=Mn?"$":"$0";return[function(t,r){var n=m(this),i=null==t?void 0:Z(t,yn);return i?i.call(t,n,r):e.call(de(n),t,r)},function(t,i){var o=w(this),s=de(t);if("string"==typeof i&&-1===i.indexOf(n)&&-1===i.indexOf("$<")){var a=r(e,o,s,i);if(a.done)return a.value}var l=u(i);l||(i=de(i));var c=o.global;if(c){var h=o.unicode;o.lastIndex=0}for(var p=[];;){var f=rn(o,s);if(null===f)break;if(p.push(f),!c)break;""===de(f[0])&&(o.lastIndex=en(s,Zt(o.lastIndex),h))}for(var g,d="",m=0,v=0;v<p.length;v++){f=p[v];for(var _=de(f[0]),y=bn(xn(Nt(f.index),s.length),0),b=[],x=1;x<f.length;x++)b.push(void 0===(g=f[x])?g:String(g));var S=f.groups;if(l){var M=[_].concat(b,y,s);void 0!==S&&M.push(S);var I=de(i.apply(void 0,M))}else I=_n(_,s,y,b,S,i);y>=m&&(d+=s.slice(m,y)+I,m=y+_.length)}return d+s.slice(m)}]}),!!t((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Sn||Mn);var In=function t(){!function(t,e){for(var r in e.prototype)t.prototype[r]=e.prototype[r]}(t,google.maps.OverlayView)};function wn(t){return Object.keys(t).reduce((function(e,r){return t[r]&&e.push(r+":"+t[r]),e}),[]).join(";")}function kn(t){return t?t+"px":void 0}var Cn=function(t){function e(e,r){var n=t.call(this)||this;return n.cluster_=e,n.styles_=r,n.center_=null,n.div_=null,n.sums_=null,n.visible_=!1,n.style=null,n.setMap(e.getMap()),n}return Sr(e,t),e.prototype.onAdd=function(){var t,e,r=this,n=this.cluster_.getMarkerClusterer(),i=google.maps.version.split("."),o=i[0],s=i[1],a=100*parseInt(o,10)+parseInt(s,10);this.div_=document.createElement("div"),this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",(function(){e=t})),google.maps.event.addDomListener(this.div_,"mousedown",(function(){t=!0,e=!1})),google.maps.event.addDomListener(this.div_,"contextmenu",(function(){google.maps.event.trigger(n,"contextmenu",r.cluster_)})),a>=332&&google.maps.event.addDomListener(this.div_,"touchstart",(function(t){t.stopPropagation()})),google.maps.event.addDomListener(this.div_,"click",(function(i){if(t=!1,!e){if(google.maps.event.trigger(n,"click",r.cluster_),google.maps.event.trigger(n,"clusterclick",r.cluster_),n.getZoomOnClick()){var o=n.getMaxZoom(),s=r.cluster_.getBounds();n.getMap().fitBounds(s),setTimeout((function(){n.getMap().fitBounds(s),null!==o&&n.getMap().getZoom()>o&&n.getMap().setZoom(o+1)}),100)}i.cancelBubble=!0,i.stopPropagation&&i.stopPropagation()}})),google.maps.event.addDomListener(this.div_,"mouseover",(function(){google.maps.event.trigger(n,"mouseover",r.cluster_)})),google.maps.event.addDomListener(this.div_,"mouseout",(function(){google.maps.event.trigger(n,"mouseout",r.cluster_)}))},e.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},e.prototype.draw=function(){if(this.visible_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.top=t.y+"px",this.div_.style.left=t.x+"px"}},e.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},e.prototype.show=function(){this.div_&&(this.div_.className=this.className_,this.div_.style.cssText=this.createCss_(this.getPosFromLatLng_(this.center_)),this.div_.innerHTML=(this.style.url?this.getImageElementHtml():"")+this.getLabelDivHtml(),void 0===this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""),this.visible_=!0},e.prototype.getLabelDivHtml=function(){return'\n<div aria-label="'+this.cluster_.getMarkerClusterer().ariaLabelFn(this.sums_.text)+'" style="'+wn({position:"absolute",top:kn(this.anchorText_[0]),left:kn(this.anchorText_[1]),color:this.style.textColor,"font-size":kn(this.style.textSize),"font-family":this.style.fontFamily,"font-weight":this.style.fontWeight,"font-style":this.style.fontStyle,"text-decoration":this.style.textDecoration,"text-align":"center",width:kn(this.style.width),"line-height":kn(this.style.textLineHeight)})+'" tabindex="0">\n <span aria-hidden="true">'+this.sums_.text+"</span>\n</div>\n"},e.prototype.getImageElementHtml=function(){var t=(this.style.backgroundPosition||"0 0").split(" "),e=parseInt(t[0].replace(/^\s+|\s+$/g,""),10),r=parseInt(t[1].replace(/^\s+|\s+$/g,""),10),n={};if(this.cluster_.getMarkerClusterer().getEnableRetinaIcons())n={width:kn(this.style.width),height:kn(this.style.height)};else{var i=[-1*r,-1*e+this.style.width,-1*r+this.style.height,-1*e];n={clip:"rect("+i[0]+"px, "+i[1]+"px, "+i[2]+"px, "+i[3]+"px)"}}var o=this.sums_.url?{width:"100%",height:"100%"}:{},s=wn(Mr(Mr({position:"absolute",top:kn(r),left:kn(e)},n),o));return'<img alt="'+this.sums_.text+'" aria-hidden="true" src="'+this.style.url+'" style="'+s+'"/>'},e.prototype.useStyle=function(t){this.sums_=t;var e=Math.max(0,t.index-1);e=Math.min(this.styles_.length-1,e),this.style=this.sums_.url?Mr(Mr({},this.styles_[e]),{url:this.sums_.url}):this.styles_[e],this.anchorText_=this.style.anchorText||[0,0],this.anchorIcon_=this.style.anchorIcon||[Math.floor(this.style.height/2),Math.floor(this.style.width/2)],this.className_=this.cluster_.getMarkerClusterer().getClusterClass()+" "+(this.style.className||"cluster-"+e)},e.prototype.setCenter=function(t){this.center_=t},e.prototype.createCss_=function(t){return wn({"z-index":""+this.cluster_.getMarkerClusterer().getZIndex(),top:kn(t.y),left:kn(t.x),width:kn(this.style.width),height:kn(this.style.height),cursor:"pointer",position:"absolute","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-o-user-select":"none","user-select":"none"})},e.prototype.getPosFromLatLng_=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return e.x=Math.floor(e.x-this.anchorIcon_[1]),e.y=Math.floor(e.y-this.anchorIcon_[0]),e},e}(In),En=function(){function t(t){this.markerClusterer_=t,this.map_=this.markerClusterer_.getMap(),this.minClusterSize_=this.markerClusterer_.getMinimumClusterSize(),this.averageCenter_=this.markerClusterer_.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new Cn(this,this.markerClusterer_.getStyles())}return t.prototype.getSize=function(){return this.markers_.length},t.prototype.getMarkers=function(){return this.markers_},t.prototype.getCenter=function(){return this.center_},t.prototype.getMap=function(){return this.map_},t.prototype.getMarkerClusterer=function(){return this.markerClusterer_},t.prototype.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center_,this.center_),e=this.getMarkers(),r=0;r<e.length;r++)t.extend(e[r].getPosition());return t},t.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},t.prototype.addMarker=function(t){if(this.isMarkerAlreadyAdded_(t))return!1;if(this.center_){if(this.averageCenter_){var e=this.markers_.length+1,r=(this.center_.lat()*(e-1)+t.getPosition().lat())/e,n=(this.center_.lng()*(e-1)+t.getPosition().lng())/e;this.center_=new google.maps.LatLng(r,n),this.calculateBounds_()}}else this.center_=t.getPosition(),this.calculateBounds_();t.isAdded=!0,this.markers_.push(t);var i=this.markers_.length,o=this.markerClusterer_.getMaxZoom();if(null!==o&&this.map_.getZoom()>o)t.getMap()!==this.map_&&t.setMap(this.map_);else if(i<this.minClusterSize_)t.getMap()!==this.map_&&t.setMap(this.map_);else if(i===this.minClusterSize_)for(var s=0;s<i;s++)this.markers_[s].setMap(null);else t.setMap(null);return!0},t.prototype.isMarkerInClusterBounds=function(t){return this.bounds_.contains(t.getPosition())},t.prototype.calculateBounds_=function(){var t=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(t)},t.prototype.updateIcon=function(){var t=this.markers_.length,e=this.markerClusterer_.getMaxZoom();if(null!==e&&this.map_.getZoom()>e)this.clusterIcon_.hide();else if(t<this.minClusterSize_)this.clusterIcon_.hide();else{var r=this.markerClusterer_.getStyles().length,n=this.markerClusterer_.getCalculator()(this.markers_,r);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(n),this.clusterIcon_.show()}},t.prototype.isMarkerAlreadyAdded_=function(t){if(this.markers_.indexOf)return-1!==this.markers_.indexOf(t);for(var e=0;e<this.markers_.length;e++)if(t===this.markers_[e])return!0;return!1},t}(),On=function(t,e,r){return void 0!==t[e]?t[e]:r};return function(t){function e(r,n,i){void 0===n&&(n=[]),void 0===i&&(i={});var o=t.call(this)||this;return o.options=i,o.markers_=[],o.clusters_=[],o.listeners_=[],o.activeMap_=null,o.ready_=!1,o.ariaLabelFn=o.options.ariaLabelFn||function(){return""},o.zIndex_=o.options.zIndex||Number(google.maps.Marker.MAX_ZINDEX)+1,o.gridSize_=o.options.gridSize||60,o.minClusterSize_=o.options.minimumClusterSize||2,o.maxZoom_=o.options.maxZoom||null,o.styles_=o.options.styles||[],o.title_=o.options.title||"",o.zoomOnClick_=On(o.options,"zoomOnClick",!0),o.averageCenter_=On(o.options,"averageCenter",!1),o.ignoreHidden_=On(o.options,"ignoreHidden",!1),o.enableRetinaIcons_=On(o.options,"enableRetinaIcons",!1),o.imagePath_=o.options.imagePath||e.IMAGE_PATH,o.imageExtension_=o.options.imageExtension||e.IMAGE_EXTENSION,o.imageSizes_=o.options.imageSizes||e.IMAGE_SIZES,o.calculator_=o.options.calculator||e.CALCULATOR,o.batchSize_=o.options.batchSize||e.BATCH_SIZE,o.batchSizeIE_=o.options.batchSizeIE||e.BATCH_SIZE_IE,o.clusterClass_=o.options.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(o.batchSize_=o.batchSizeIE_),o.setupStyles_(),o.addMarkers(n,!0),o.setMap(r),o}return Sr(e,t),e.prototype.onAdd=function(){var t=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.prevZoom_=this.getMap().getZoom(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",(function(){var e=t.getMap(),r=e.minZoom||0,n=Math.min(e.maxZoom||100,e.mapTypes[e.getMapTypeId()].maxZoom),i=Math.min(Math.max(t.getMap().getZoom(),r),n);t.prevZoom_!=i&&(t.prevZoom_=i,t.resetViewport_(!1))})),google.maps.event.addListener(this.getMap(),"idle",(function(){t.redraw_()}))]},e.prototype.onRemove=function(){for(var t=0;t<this.markers_.length;t++)this.markers_[t].getMap()!==this.activeMap_&&this.markers_[t].setMap(this.activeMap_);for(t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();this.clusters_=[];for(t=0;t<this.listeners_.length;t++)google.maps.event.removeListener(this.listeners_[t]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},e.prototype.draw=function(){},e.prototype.setupStyles_=function(){if(!(this.styles_.length>0))for(var t=0;t<this.imageSizes_.length;t++){var r=this.imageSizes_[t];this.styles_.push(e.withDefaultStyle({url:this.imagePath_+(t+1)+"."+this.imageExtension_,height:r,width:r}))}},e.prototype.fitMapToMarkers=function(t){for(var e=this.getMarkers(),r=new google.maps.LatLngBounds,n=0;n<e.length;n++)!e[n].getVisible()&&this.getIgnoreHidden()||r.extend(e[n].getPosition());this.getMap().fitBounds(r,t)},e.prototype.getGridSize=function(){return this.gridSize_},e.prototype.setGridSize=function(t){this.gridSize_=t},e.prototype.getMinimumClusterSize=function(){return this.minClusterSize_},e.prototype.setMinimumClusterSize=function(t){this.minClusterSize_=t},e.prototype.getMaxZoom=function(){return this.maxZoom_},e.prototype.setMaxZoom=function(t){this.maxZoom_=t},e.prototype.getZIndex=function(){return this.zIndex_},e.prototype.setZIndex=function(t){this.zIndex_=t},e.prototype.getStyles=function(){return this.styles_},e.prototype.setStyles=function(t){this.styles_=t},e.prototype.getTitle=function(){return this.title_},e.prototype.setTitle=function(t){this.title_=t},e.prototype.getZoomOnClick=function(){return this.zoomOnClick_},e.prototype.setZoomOnClick=function(t){this.zoomOnClick_=t},e.prototype.getAverageCenter=function(){return this.averageCenter_},e.prototype.setAverageCenter=function(t){this.averageCenter_=t},e.prototype.getIgnoreHidden=function(){return this.ignoreHidden_},e.prototype.setIgnoreHidden=function(t){this.ignoreHidden_=t},e.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},e.prototype.setEnableRetinaIcons=function(t){this.enableRetinaIcons_=t},e.prototype.getImageExtension=function(){return this.imageExtension_},e.prototype.setImageExtension=function(t){this.imageExtension_=t},e.prototype.getImagePath=function(){return this.imagePath_},e.prototype.setImagePath=function(t){this.imagePath_=t},e.prototype.getImageSizes=function(){return this.imageSizes_},e.prototype.setImageSizes=function(t){this.imageSizes_=t},e.prototype.getCalculator=function(){return this.calculator_},e.prototype.setCalculator=function(t){this.calculator_=t},e.prototype.getBatchSizeIE=function(){return this.batchSizeIE_},e.prototype.setBatchSizeIE=function(t){this.batchSizeIE_=t},e.prototype.getClusterClass=function(){return this.clusterClass_},e.prototype.setClusterClass=function(t){this.clusterClass_=t},e.prototype.getMarkers=function(){return this.markers_},e.prototype.getTotalMarkers=function(){return this.markers_.length},e.prototype.getClusters=function(){return this.clusters_},e.prototype.getTotalClusters=function(){return this.clusters_.length},e.prototype.addMarker=function(t,e){this.pushMarkerTo_(t),e||this.redraw_()},e.prototype.addMarkers=function(t,e){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.pushMarkerTo_(t[r]);e||this.redraw_()},e.prototype.pushMarkerTo_=function(t){var e=this;t.getDraggable()&&google.maps.event.addListener(t,"dragend",(function(){e.ready_&&(t.isAdded=!1,e.repaint())})),t.isAdded=!1,this.markers_.push(t)},e.prototype.removeMarker=function(t,e){var r=this.removeMarker_(t);return!e&&r&&this.repaint(),r},e.prototype.removeMarkers=function(t,e){for(var r=!1,n=0;n<t.length;n++){var i=this.removeMarker_(t[n]);r=r||i}return!e&&r&&this.repaint(),r},e.prototype.removeMarker_=function(t){var e=-1;if(this.markers_.indexOf)e=this.markers_.indexOf(t);else for(var r=0;r<this.markers_.length;r++)if(t===this.markers_[r]){e=r;break}return-1!==e&&(t.setMap(null),this.markers_.splice(e,1),!0)},e.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},e.prototype.repaint=function(){var t=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout((function(){for(var e=0;e<t.length;e++)t[e].remove()}),0)},e.prototype.getExtendedBounds=function(t){var e=this.getProjection(),r=new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()),n=new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()),i=e.fromLatLngToDivPixel(r);i.x+=this.gridSize_,i.y-=this.gridSize_;var o=e.fromLatLngToDivPixel(n);o.x-=this.gridSize_,o.y+=this.gridSize_;var s=e.fromDivPixelToLatLng(i),a=e.fromDivPixelToLatLng(o);return t.extend(s),t.extend(a),t},e.prototype.redraw_=function(){this.createClusters_(0)},e.prototype.resetViewport_=function(t){for(var e=0;e<this.clusters_.length;e++)this.clusters_[e].remove();this.clusters_=[];for(e=0;e<this.markers_.length;e++){var r=this.markers_[e];r.isAdded=!1,t&&r.setMap(null)}},e.prototype.distanceBetweenPoints_=function(t,e){var r=(e.lat()-t.lat())*Math.PI/180,n=(e.lng()-t.lng())*Math.PI/180,i=Math.sin(r/2)*Math.sin(r/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(n/2)*Math.sin(n/2);return 6371*(2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i)))},e.prototype.isMarkerInBounds_=function(t,e){return e.contains(t.getPosition())},e.prototype.addToClosestCluster_=function(t){for(var e=4e4,r=null,n=0;n<this.clusters_.length;n++){var i,o=(i=this.clusters_[n]).getCenter();if(o){var s=this.distanceBetweenPoints_(o,t.getPosition());s<e&&(e=s,r=i)}}r&&r.isMarkerInClusterBounds(t)?r.addMarker(t):((i=new En(this)).addMarker(t),this.clusters_.push(i))},e.prototype.createClusters_=function(t){var e=this;if(this.ready_){var r;0===t&&(google.maps.event.trigger(this,"clusteringbegin",this),void 0!==this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic)),r=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625));for(var n=this.getExtendedBounds(r),i=Math.min(t+this.batchSize_,this.markers_.length),o=t;o<i;o++){var s=this.markers_[o];!s.isAdded&&this.isMarkerInBounds_(s,n)&&(!this.ignoreHidden_||this.ignoreHidden_&&s.getVisible())&&this.addToClosestCluster_(s)}if(i<this.markers_.length)this.timerRefStatic=window.setTimeout((function(){e.createClusters_(i)}),0);else{delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this);for(o=0;o<this.clusters_.length;o++)this.clusters_[o].updateIcon()}}},e.CALCULATOR=function(t,e){for(var r=0,n=t.length,i=n;0!==i;)i=Math.floor(i/10),r++;return r=Math.min(r,e),{text:n.toString(),index:r,title:""}},e.withDefaultStyle=function(t){return Mr({textColor:"black",textSize:11,textDecoration:"none",textLineHeight:t.height,fontWeight:"bold",fontStyle:"normal",fontFamily:"Arial,sans-serif",backgroundPosition:"0 0"},t)},e.BATCH_SIZE=2e3,e.BATCH_SIZE_IE=500,e.IMAGE_PATH="../images/m",e.IMAGE_EXTENSION="png",e.IMAGE_SIZES=[53,56,66,78,90],e}(In)}(); | ||
var MarkerClusterer=function(){"use strict";var t=function(t){try{return!!t()}catch(t){return!0}},e=!t((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var i,o,s=function(t){return t&&t.Math==Math&&t},a=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r&&r)||function(){return this}()||Function("return this")(),u=function(t){return"function"==typeof t},l=/#|\.prototype\./,c=function(e,r){var n=p[h(e)];return n==g||n!=f&&(u(r)?t(r):!!r)},h=c.normalize=function(t){return String(t).replace(l,".").toLowerCase()},p=c.data={},f=c.NATIVE="N",g=c.POLYFILL="P",d=c,v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},m=function(t){return Object(v(t))},_={}.hasOwnProperty,y=Object.hasOwn||function(t,e){return _.call(m(t),e)},b=function(t){return"object"==typeof t?null!==t:u(t)},x=a.document,S=b(x)&&b(x.createElement),M=function(t){return S?x.createElement(t):{}},I=!e&&!t((function(){return 7!=Object.defineProperty(M("div"),"a",{get:function(){return 7}}).a})),w=function(t){if(b(t))return t;throw TypeError(String(t)+" is not an object")},k=function(t){return u(t)?t:void 0},C=function(t,e){return arguments.length<2?k(a[t]):a[t]&&a[t][e]},E=C("navigator","userAgent")||"",O=a.process,A=a.Deno,T=O&&O.versions||A&&A.version,P=T&&T.v8;P?o=(i=P.split("."))[0]<4?1:i[0]+i[1]:E&&(!(i=E.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=E.match(/Chrome\/(\d+)/))&&(o=i[1]);var L=o&&+o,j=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&L&&L<41})),z=j&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,R=z?function(t){return"symbol"==typeof t}:function(t){var e=C("Symbol");return u(e)&&Object(t)instanceof e},N=function(t){try{return String(t)}catch(t){return"Object"}},B=function(t){if(u(t))return t;throw TypeError(N(t)+" is not a function")},Z=function(t,e){var r=t[e];return null==r?void 0:B(r)},D=function(t,e){try{Object.defineProperty(a,t,{value:e,configurable:!0,writable:!0})}catch(r){a[t]=e}return e},F="__core-js_shared__",H=a[F]||D(F,{}),$=n((function(t){(t.exports=function(t,e){return H[t]||(H[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.18.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),G=0,U=Math.random(),V=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++G+U).toString(36)},W=$("wks"),X=a.Symbol,Y=z?X:X&&X.withoutSetter||V,q=function(t){return y(W,t)&&(j||"string"==typeof W[t])||(j&&y(X,t)?W[t]=X[t]:W[t]=Y("Symbol."+t)),W[t]},K=q("toPrimitive"),J=function(t,e){if(!b(t)||R(t))return t;var r,n=Z(t,K);if(n){if(void 0===e&&(e="default"),r=n.call(t,e),!b(r)||R(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&u(r=t.toString)&&!b(n=r.call(t)))return n;if(u(r=t.valueOf)&&!b(n=r.call(t)))return n;if("string"!==e&&u(r=t.toString)&&!b(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}(t,e)},Q=function(t){var e=J(t,"string");return R(e)?e:String(e)},tt=Object.defineProperty,et={f:e?tt:function(t,e,r){if(w(t),e=Q(e),w(r),I)try{return tt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},rt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},nt=e?function(t,e,r){return et.f(t,e,rt(1,r))}:function(t,e,r){return t[e]=r,t},it=Function.toString;u(H.inspectSource)||(H.inspectSource=function(t){return it.call(t)});var ot,st,at,ut=H.inspectSource,lt=a.WeakMap,ct=u(lt)&&/native code/.test(ut(lt)),ht=$("keys"),pt=function(t){return ht[t]||(ht[t]=V(t))},ft={},gt="Object already initialized",dt=a.WeakMap;if(ct||H.state){var vt=H.state||(H.state=new dt),mt=vt.get,_t=vt.has,yt=vt.set;ot=function(t,e){if(_t.call(vt,t))throw new TypeError(gt);return e.facade=t,yt.call(vt,t,e),e},st=function(t){return mt.call(vt,t)||{}},at=function(t){return _t.call(vt,t)}}else{var bt=pt("state");ft[bt]=!0,ot=function(t,e){if(y(t,bt))throw new TypeError(gt);return e.facade=t,nt(t,bt,e),e},st=function(t){return y(t,bt)?t[bt]:{}},at=function(t){return y(t,bt)}}var xt={set:ot,get:st,has:at,enforce:function(t){return at(t)?st(t):ot(t,{})},getterFor:function(t){return function(e){var r;if(!b(e)||(r=st(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},St=Function.prototype,Mt=e&&Object.getOwnPropertyDescriptor,It=y(St,"name"),wt={EXISTS:It,PROPER:It&&"something"===function(){}.name,CONFIGURABLE:It&&(!e||e&&Mt(St,"name").configurable)},kt=n((function(t){var e=wt.CONFIGURABLE,r=xt.get,n=xt.enforce,i=String(String).split("String");(t.exports=function(t,r,o,s){var l,c=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,f=s&&void 0!==s.name?s.name:r;u(o)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!y(o,"name")||e&&o.name!==f)&&nt(o,"name",f),(l=n(o)).source||(l.source=i.join("string"==typeof f?f:""))),t!==a?(c?!p&&t[r]&&(h=!0):delete t[r],h?t[r]=o:nt(t,r,o)):h?t[r]=o:D(r,o)})(Function.prototype,"toString",(function(){return u(this)&&r(this).source||ut(this)}))})),Ct=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return w(r),function(t){if("object"==typeof t||u(t))return t;throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Et=function(t,e,r){var n,i;return Ct&&u(n=e.constructor)&&n!==r&&b(i=n.prototype)&&i!==r.prototype&&Ct(t,i),t},Ot={}.toString,At=function(t){return Ot.call(t).slice(8,-1)},Tt="".split,Pt=t((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==At(t)?Tt.call(t,""):Object(t)}:Object,Lt=function(t){return Pt(v(t))},jt=Math.ceil,zt=Math.floor,Rt=function(t){var e=+t;return e!=e||0===e?0:(e>0?zt:jt)(e)},Nt=Math.max,Bt=Math.min,Zt=function(t,e){var r=Rt(t);return r<0?Nt(r+e,0):Bt(r,e)},Dt=Math.min,Ft=function(t){return t>0?Dt(Rt(t),9007199254740991):0},Ht=function(t){return Ft(t.length)},$t=function(t){return function(e,r,n){var i,o=Lt(e),s=Ht(o),a=Zt(n,s);if(t&&r!=r){for(;s>a;)if((i=o[a++])!=i)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===r)return t||a||0;return!t&&-1}},Gt={includes:$t(!0),indexOf:$t(!1)},Ut=Gt.indexOf,Vt=function(t,e){var r,n=Lt(t),i=0,o=[];for(r in n)!y(ft,r)&&y(n,r)&&o.push(r);for(;e.length>i;)y(n,r=e[i++])&&(~Ut(o,r)||o.push(r));return o},Wt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xt=Wt.concat("length","prototype"),Yt={f:Object.getOwnPropertyNames||function(t){return Vt(t,Xt)}},qt={}.propertyIsEnumerable,Kt=Object.getOwnPropertyDescriptor,Jt={f:Kt&&!qt.call({1:2},1)?function(t){var e=Kt(this,t);return!!e&&e.enumerable}:qt},Qt=Object.getOwnPropertyDescriptor,te={f:e?Qt:function(t,e){if(t=Lt(t),e=Q(e),I)try{return Qt(t,e)}catch(t){}if(y(t,e))return rt(!Jt.f.call(t,e),t[e])}},ee=1..valueOf,re=function(t){return ee.call(t)},ne={};ne[q("toStringTag")]="z";var ie="[object z]"===String(ne),oe=q("toStringTag"),se="Arguments"==At(function(){return arguments}()),ae=ie?At:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),oe))?r:se?At(e):"Object"==(n=At(e))&&u(e.callee)?"Arguments":n},ue=function(t){if("Symbol"===ae(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)},le="\t\n\v\f\r \u2028\u2029\ufeff",ce="["+le+"]",he=RegExp("^"+ce+ce+"*"),pe=RegExp(ce+ce+"*$"),fe=function(t){return function(e){var r=ue(v(e));return 1&t&&(r=r.replace(he,"")),2&t&&(r=r.replace(pe,"")),r}},ge={start:fe(1),end:fe(2),trim:fe(3)},de=Yt.f,ve=te.f,me=et.f,_e=ge.trim,ye="Number",be=a.Number,xe=be.prototype,Se=function(t){var e=J(t,"number");return"bigint"==typeof e?e:Me(e)},Me=function(t){var e,r,n,i,o,s,a,u,l=J(t,"number");if(R(l))throw TypeError("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(43===(e=(l=_e(l)).charCodeAt(0))||45===e){if(88===(r=l.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+l}for(s=(o=l.slice(2)).length,a=0;a<s;a++)if((u=o.charCodeAt(a))<48||u>i)return NaN;return parseInt(o,n)}return+l};if(d(ye,!be(" 0o1")||!be("0b1")||be("+0x1"))){for(var Ie,we=function(e){var r=arguments.length<1?0:be(Se(e)),n=this;return n instanceof we&&t((function(){re(n)}))?Et(Object(r),n,we):r},ke=e?de(be):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Ce=0;ke.length>Ce;Ce++)y(be,Ie=ke[Ce])&&!y(we,Ie)&&me(we,Ie,ve(be,Ie));we.prototype=xe,xe.constructor=we,kt(a,ye,we)}var Ee={f:Object.getOwnPropertySymbols},Oe=C("Reflect","ownKeys")||function(t){var e=Yt.f(w(t)),r=Ee.f;return r?e.concat(r(t)):e},Ae=function(t,e){for(var r=Oe(e),n=et.f,i=te.f,o=0;o<r.length;o++){var s=r[o];y(t,s)||n(t,s,i(e,s))}},Te=te.f,Pe=function(t,e){var r,n,i,o,s,u=t.target,l=t.global,c=t.stat;if(r=l?a:c?a[u]||D(u,{}):(a[u]||{}).prototype)for(n in e){if(o=e[n],i=t.noTargetGet?(s=Te(r,n))&&s.value:r[n],!d(l?n:u+(c?".":"#")+n,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;Ae(o,i)}(t.sham||i&&i.sham)&&nt(o,"sham",!0),kt(r,n,o,t)}},Le=function(e,r){var n=[][e];return!!n&&t((function(){n.call(null,r||function(){throw 1},1)}))},je=Gt.indexOf,ze=[].indexOf,Re=!!ze&&1/[1].indexOf(1,-0)<0,Ne=Le("indexOf");Pe({target:"Array",proto:!0,forced:Re||!Ne},{indexOf:function(t){return Re?ze.apply(this,arguments)||0:je(this,t,arguments.length>1?arguments[1]:void 0)}});var Be=Array.isArray||function(t){return"Array"==At(t)},Ze=[],De=C("Reflect","construct"),Fe=/^\s*(?:class|function)\b/,He=Fe.exec,$e=!Fe.exec((function(){})),Ge=function(t){if(!u(t))return!1;try{return De(Object,Ze,t),!0}catch(t){return!1}},Ue=!De||t((function(){var t;return Ge(Ge.call)||!Ge(Object)||!Ge((function(){t=!0}))||t}))?function(t){if(!u(t))return!1;switch(ae(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return $e||!!He.call(Fe,ut(t))}:Ge,Ve=q("species"),We=function(t,e){return new(function(t){var e;return Be(t)&&(e=t.constructor,(Ue(e)&&(e===Array||Be(e.prototype))||b(e)&&null===(e=e[Ve]))&&(e=void 0)),void 0===e?Array:e}(t))(0===e?0:e)},Xe=function(t,e,r){var n=Q(e);n in t?et.f(t,n,rt(0,r)):t[n]=r},Ye=q("species"),qe=function(e){return L>=51||!t((function(){var t=[];return(t.constructor={})[Ye]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Ke=qe("splice"),Je=Math.max,Qe=Math.min,tr=9007199254740991,er="Maximum allowed length exceeded";Pe({target:"Array",proto:!0,forced:!Ke},{splice:function(t,e){var r,n,i,o,s,a,u=m(this),l=Ht(u),c=Zt(t,l),h=arguments.length;if(0===h?r=n=0:1===h?(r=0,n=l-c):(r=h-2,n=Qe(Je(Rt(e),0),l-c)),l+r-n>tr)throw TypeError(er);for(i=We(u,n),o=0;o<n;o++)(s=c+o)in u&&Xe(i,o,u[s]);if(i.length=n,r<n){for(o=c;o<l-n;o++)a=o+r,(s=o+n)in u?u[a]=u[s]:delete u[a];for(o=l;o>l-n+r;o--)delete u[o-1]}else if(r>n)for(o=l-n;o>c;o--)a=o+r-1,(s=o+n-1)in u?u[a]=u[s]:delete u[a];for(o=0;o<r;o++)u[o+c]=arguments[o+2];return u.length=l-n+r,i}});var rr=qe("slice"),nr=q("species"),ir=[].slice,or=Math.max;Pe({target:"Array",proto:!0,forced:!rr},{slice:function(t,e){var r,n,i,o=Lt(this),s=Ht(o),a=Zt(t,s),u=Zt(void 0===e?s:e,s);if(Be(o)&&(r=o.constructor,(Ue(r)&&(r===Array||Be(r.prototype))||b(r)&&null===(r=r[nr]))&&(r=void 0),r===Array||void 0===r))return ir.call(o,a,u);for(n=new(void 0===r?Array:r)(or(u-a,0)),i=0;a<u;a++,i++)a in o&&Xe(n,i,o[a]);return n.length=i,n}});var sr=ie?{}.toString:function(){return"[object "+ae(this)+"]"};ie||kt(Object.prototype,"toString",sr,{unsafe:!0});var ar=function(){var t=w(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},ur=wt.PROPER,lr="toString",cr=RegExp.prototype,hr=cr.toString,pr=t((function(){return"/a/b"!=hr.call({source:"a",flags:"b"})})),fr=ur&&hr.name!=lr;(pr||fr)&&kt(RegExp.prototype,lr,(function(){var t=w(this),e=ue(t.source),r=t.flags;return"/"+e+"/"+ue(void 0===r&&t instanceof RegExp&&!("flags"in cr)?ar.call(t):r)}),{unsafe:!0});var gr=function(t,e){return(gr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function dr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}gr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var vr=function(){return(vr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},mr=[].join,_r=Pt!=Object,yr=Le("join",",");Pe({target:"Array",proto:!0,forced:_r||!yr},{join:function(t){return mr.call(Lt(this),void 0===t?",":t)}});var br=function(t){return function(e,r,n,i){B(r);var o=m(e),s=Pt(o),a=Ht(o),u=t?a-1:0,l=t?-1:1;if(n<2)for(;;){if(u in s){i=s[u],u+=l;break}if(u+=l,t?u<0:a<=u)throw TypeError("Reduce of empty array with no initial value")}for(;t?u>=0:a>u;u+=l)u in s&&(i=r(i,s[u],u,o));return i}},xr={left:br(!1),right:br(!0)},Sr="process"==At(a.process),Mr=xr.left;Pe({target:"Array",proto:!0,forced:!Le("reduce")||!Sr&&L>79&&L<83},{reduce:function(t){return Mr(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Ir=Object.keys||function(t){return Vt(t,Wt)};Pe({target:"Object",stat:!0,forced:t((function(){Ir(1)}))},{keys:function(t){return Ir(m(t))}});var wr,kr=a.RegExp,Cr={UNSUPPORTED_Y:t((function(){var t=kr("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:t((function(){var t=kr("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Er=e?Object.defineProperties:function(t,e){w(t);for(var r,n=Ir(e),i=n.length,o=0;i>o;)et.f(t,r=n[o++],e[r]);return t},Or=C("document","documentElement"),Ar=pt("IE_PROTO"),Tr=function(){},Pr=function(t){return"<script>"+t+"</"+"script>"},Lr=function(t){t.write(Pr("")),t.close();var e=t.parentWindow.Object;return t=null,e},jr=function(){try{wr=new ActiveXObject("htmlfile")}catch(t){}var t,e;jr="undefined"!=typeof document?document.domain&&wr?Lr(wr):((e=M("iframe")).style.display="none",Or.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Pr("document.F=Object")),t.close(),t.F):Lr(wr);for(var r=Wt.length;r--;)delete jr.prototype[Wt[r]];return jr()};ft[Ar]=!0;var zr,Rr,Nr=Object.create||function(t,e){var r;return null!==t?(Tr.prototype=w(t),r=new Tr,Tr.prototype=null,r[Ar]=t):r=jr(),void 0===e?r:Er(r,e)},Br=a.RegExp,Zr=t((function(){var t=Br(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Dr=a.RegExp,Fr=t((function(){var t=Dr("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Hr=xt.get,$r=RegExp.prototype.exec,Gr=$("native-string-replace",String.prototype.replace),Ur=$r,Vr=(zr=/a/,Rr=/b*/g,$r.call(zr,"a"),$r.call(Rr,"a"),0!==zr.lastIndex||0!==Rr.lastIndex),Wr=Cr.UNSUPPORTED_Y||Cr.BROKEN_CARET,Xr=void 0!==/()??/.exec("")[1];(Vr||Xr||Wr||Zr||Fr)&&(Ur=function(t){var e,r,n,i,o,s,a,u=this,l=Hr(u),c=ue(t),h=l.raw;if(h)return h.lastIndex=u.lastIndex,e=Ur.call(h,c),u.lastIndex=h.lastIndex,e;var p=l.groups,f=Wr&&u.sticky,g=ar.call(u),d=u.source,v=0,m=c;if(f&&(-1===(g=g.replace("y","")).indexOf("g")&&(g+="g"),m=c.slice(u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==c.charAt(u.lastIndex-1))&&(d="(?: "+d+")",m=" "+m,v++),r=new RegExp("^(?:"+d+")",g)),Xr&&(r=new RegExp("^"+d+"$(?!\\s)",g)),Vr&&(n=u.lastIndex),i=$r.call(f?r:u,m),f?i?(i.input=i.input.slice(v),i[0]=i[0].slice(v),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:Vr&&i&&(u.lastIndex=u.global?i.index+i[0].length:n),Xr&&i&&i.length>1&&Gr.call(i[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&p)for(i.groups=s=Nr(null),o=0;o<p.length;o++)s[(a=p[o])[0]]=i[a[1]];return i});var Yr=Ur;Pe({target:"RegExp",proto:!0,forced:/./.exec!==Yr},{exec:Yr});var qr=q("species"),Kr=RegExp.prototype,Jr=function(e,r,n,i){var o=q(e),s=!t((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=s&&!t((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[qr]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!s||!a||n){var u=/./[o],l=r(o,""[e],(function(t,e,r,n,i){var o=e.exec;return o===Yr||o===Kr.exec?s&&!i?{done:!0,value:u.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}));kt(String.prototype,e,l[0]),kt(Kr,o,l[1])}i&&nt(Kr[o],"sham",!0)},Qr=q("match"),tn=q("species"),en=function(t,e){var r,n=w(t).constructor;return void 0===n||null==(r=w(n)[tn])?e:function(t){if(Ue(t))return t;throw TypeError(N(t)+" is not a constructor")}(r)},rn=function(t){return function(e,r){var n,i,o=ue(v(e)),s=Rt(r),a=o.length;return s<0||s>=a?t?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===a||(i=o.charCodeAt(s+1))<56320||i>57343?t?o.charAt(s):n:t?o.slice(s,s+2):i-56320+(n-55296<<10)+65536}},nn={codeAt:rn(!1),charAt:rn(!0)}.charAt,on=function(t,e,r){return e+(r?nn(t,e).length:1)},sn=function(t,e){var r=t.exec;if(u(r)){var n=r.call(t,e);return null!==n&&w(n),n}if("RegExp"===At(t))return Yr.call(t,e);throw TypeError("RegExp#exec called on incompatible receiver")},an=Cr.UNSUPPORTED_Y,un=[].push,ln=Math.min,cn=4294967295;Jr("split",(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n,i,o=ue(v(this)),s=void 0===r?cn:r>>>0;if(0===s)return[];if(void 0===t)return[o];if(!b(n=t)||!(void 0!==(i=n[Qr])?i:"RegExp"==At(n)))return e.call(o,t,s);for(var a,u,l,c=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,f=new RegExp(t.source,h+"g");(a=Yr.call(f,o))&&!((u=f.lastIndex)>p&&(c.push(o.slice(p,a.index)),a.length>1&&a.index<o.length&&un.apply(c,a.slice(1)),l=a[0].length,p=u,c.length>=s));)f.lastIndex===a.index&&f.lastIndex++;return p===o.length?!l&&f.test("")||c.push(""):c.push(o.slice(p)),c.length>s?c.slice(0,s):c}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var i=v(this),o=null==e?void 0:Z(e,t);return o?o.call(e,i,r):n.call(ue(i),e,r)},function(t,i){var o=w(this),s=ue(t),a=r(n,o,s,i,n!==e);if(a.done)return a.value;var u=en(o,RegExp),l=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(an?"g":"y"),h=new u(an?"^(?:"+o.source+")":o,c),p=void 0===i?cn:i>>>0;if(0===p)return[];if(0===s.length)return null===sn(h,s)?[s]:[];for(var f=0,g=0,d=[];g<s.length;){h.lastIndex=an?0:g;var v,m=sn(h,an?s.slice(g):s);if(null===m||(v=ln(Ft(h.lastIndex+(an?g:0)),s.length))===f)g=on(s,g,l);else{if(d.push(s.slice(f,g)),d.length===p)return d;for(var _=1;_<=m.length-1;_++)if(d.push(m[_]),d.length===p)return d;g=f=v}}return d.push(s.slice(f)),d}]}),!!t((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),an);var hn=ge.trim,pn=a.parseInt,fn=a.Symbol,gn=fn&&fn.iterator,dn=/^[+-]?0[Xx]/,vn=8!==pn(le+"08")||22!==pn(le+"0x16")||gn&&!t((function(){pn(Object(gn))}))?function(t,e){var r=hn(ue(t));return pn(r,e>>>0||(dn.test(r)?16:10))}:pn;Pe({global:!0,forced:parseInt!=vn},{parseInt:vn});var mn=Math.floor,_n="".replace,yn=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,bn=/\$([$&'`]|\d{1,2})/g,xn=function(t,e,r,n,i,o){var s=r+t.length,a=n.length,u=bn;return void 0!==i&&(i=m(i),u=yn),_n.call(o,u,(function(o,u){var l;switch(u.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(s);case"<":l=i[u.slice(1,-1)];break;default:var c=+u;if(0===c)return o;if(c>a){var h=mn(c/10);return 0===h?o:h<=a?void 0===n[h-1]?u.charAt(1):n[h-1]+u.charAt(1):o}l=n[c-1]}return void 0===l?"":l}))},Sn=q("replace"),Mn=Math.max,In=Math.min,wn="$0"==="a".replace(/./,"$0"),kn=!!/./[Sn]&&""===/./[Sn]("a","$0");Jr("replace",(function(t,e,r){var n=kn?"$":"$0";return[function(t,r){var n=v(this),i=null==t?void 0:Z(t,Sn);return i?i.call(t,n,r):e.call(ue(n),t,r)},function(t,i){var o=w(this),s=ue(t);if("string"==typeof i&&-1===i.indexOf(n)&&-1===i.indexOf("$<")){var a=r(e,o,s,i);if(a.done)return a.value}var l=u(i);l||(i=ue(i));var c=o.global;if(c){var h=o.unicode;o.lastIndex=0}for(var p=[];;){var f=sn(o,s);if(null===f)break;if(p.push(f),!c)break;""===ue(f[0])&&(o.lastIndex=on(s,Ft(o.lastIndex),h))}for(var g,d="",v=0,m=0;m<p.length;m++){f=p[m];for(var _=ue(f[0]),y=Mn(In(Rt(f.index),s.length),0),b=[],x=1;x<f.length;x++)b.push(void 0===(g=f[x])?g:String(g));var S=f.groups;if(l){var M=[_].concat(b,y,s);void 0!==S&&M.push(S);var I=ue(i.apply(void 0,M))}else I=xn(_,s,y,b,S,i);y>=v&&(d+=s.slice(v,y)+I,v=y+_.length)}return d+s.slice(v)}]}),!!t((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!wn||kn);var Cn=function t(){!function(t,e){for(var r in e.prototype)t.prototype[r]=e.prototype[r]}(t,google.maps.OverlayView)};function En(t){return Object.keys(t).reduce((function(e,r){return t[r]&&e.push(r+":"+t[r]),e}),[]).join(";")}function On(t){return t?t+"px":void 0}var An=function(t){function e(e,r){var n=t.call(this)||this;return n.cluster_=e,n.styles_=r,n.center_=null,n.div_=null,n.sums_=null,n.visible_=!1,n.style=null,n.setMap(e.getMap()),n}return dr(e,t),e.prototype.onAdd=function(){var t,e,r=this,n=this.cluster_.getMarkerClusterer(),i=google.maps.version.split("."),o=i[0],s=i[1],a=100*parseInt(o,10)+parseInt(s,10);this.div_=document.createElement("div"),this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",(function(){e=t})),google.maps.event.addDomListener(this.div_,"mousedown",(function(){t=!0,e=!1})),google.maps.event.addDomListener(this.div_,"contextmenu",(function(){google.maps.event.trigger(n,"contextmenu",r.cluster_)})),a>=332&&google.maps.event.addDomListener(this.div_,"touchstart",(function(t){t.stopPropagation()})),google.maps.event.addDomListener(this.div_,"click",(function(i){if(t=!1,!e){if(google.maps.event.trigger(n,"click",r.cluster_),google.maps.event.trigger(n,"clusterclick",r.cluster_),n.getZoomOnClick()){var o=n.getMaxZoom(),s=r.cluster_.getBounds();n.getMap().fitBounds(s),setTimeout((function(){n.getMap().fitBounds(s),null!==o&&n.getMap().getZoom()>o&&n.getMap().setZoom(o+1)}),100)}i.cancelBubble=!0,i.stopPropagation&&i.stopPropagation()}})),google.maps.event.addDomListener(this.div_,"mouseover",(function(){google.maps.event.trigger(n,"mouseover",r.cluster_)})),google.maps.event.addDomListener(this.div_,"mouseout",(function(){google.maps.event.trigger(n,"mouseout",r.cluster_)}))},e.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},e.prototype.draw=function(){if(this.visible_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.top=t.y+"px",this.div_.style.left=t.x+"px"}},e.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},e.prototype.show=function(){this.div_&&(this.div_.className=this.className_,this.div_.style.cssText=this.createCss_(this.getPosFromLatLng_(this.center_)),this.div_.innerHTML=(this.style.url?this.getImageElementHtml():"")+this.getLabelDivHtml(),void 0===this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""),this.visible_=!0},e.prototype.getLabelDivHtml=function(){return'\n<div aria-label="'+this.cluster_.getMarkerClusterer().ariaLabelFn(this.sums_.text)+'" style="'+En({position:"absolute",top:On(this.anchorText_[0]),left:On(this.anchorText_[1]),color:this.style.textColor,"font-size":On(this.style.textSize),"font-family":this.style.fontFamily,"font-weight":this.style.fontWeight,"font-style":this.style.fontStyle,"text-decoration":this.style.textDecoration,"text-align":"center",width:On(this.style.width),"line-height":On(this.style.textLineHeight)})+'" tabindex="0">\n <span aria-hidden="true">'+this.sums_.text+"</span>\n</div>\n"},e.prototype.getImageElementHtml=function(){var t=(this.style.backgroundPosition||"0 0").split(" "),e=parseInt(t[0].replace(/^\s+|\s+$/g,""),10),r=parseInt(t[1].replace(/^\s+|\s+$/g,""),10),n={};if(this.cluster_.getMarkerClusterer().getEnableRetinaIcons())n={width:On(this.style.width),height:On(this.style.height)};else{var i=[-1*r,-1*e+this.style.width,-1*r+this.style.height,-1*e];n={clip:"rect("+i[0]+"px, "+i[1]+"px, "+i[2]+"px, "+i[3]+"px)"}}var o=this.sums_.url?{width:"100%",height:"100%"}:{},s=En(vr(vr({position:"absolute",top:On(r),left:On(e)},n),o));return'<img alt="'+this.sums_.text+'" aria-hidden="true" src="'+this.style.url+'" style="'+s+'"/>'},e.prototype.useStyle=function(t){this.sums_=t;var e=Math.max(0,t.index-1);e=Math.min(this.styles_.length-1,e),this.style=this.sums_.url?vr(vr({},this.styles_[e]),{url:this.sums_.url}):this.styles_[e],this.anchorText_=this.style.anchorText||[0,0],this.anchorIcon_=this.style.anchorIcon||[Math.floor(this.style.height/2),Math.floor(this.style.width/2)],this.className_=this.cluster_.getMarkerClusterer().getClusterClass()+" "+(this.style.className||"cluster-"+e)},e.prototype.setCenter=function(t){this.center_=t},e.prototype.createCss_=function(t){return En({"z-index":""+this.cluster_.getMarkerClusterer().getZIndex(),top:On(t.y),left:On(t.x),width:On(this.style.width),height:On(this.style.height),cursor:"pointer",position:"absolute","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-o-user-select":"none","user-select":"none"})},e.prototype.getPosFromLatLng_=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return e.x=Math.floor(e.x-this.anchorIcon_[1]),e.y=Math.floor(e.y-this.anchorIcon_[0]),e},e}(Cn),Tn=function(){function t(t){this.markerClusterer_=t,this.map_=this.markerClusterer_.getMap(),this.minClusterSize_=this.markerClusterer_.getMinimumClusterSize(),this.averageCenter_=this.markerClusterer_.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new An(this,this.markerClusterer_.getStyles())}return t.prototype.getSize=function(){return this.markers_.length},t.prototype.getMarkers=function(){return this.markers_},t.prototype.getCenter=function(){return this.center_},t.prototype.getMap=function(){return this.map_},t.prototype.getMarkerClusterer=function(){return this.markerClusterer_},t.prototype.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center_,this.center_),e=this.getMarkers(),r=0;r<e.length;r++)t.extend(e[r].getPosition());return t},t.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},t.prototype.addMarker=function(t){if(this.isMarkerAlreadyAdded_(t))return!1;if(this.center_){if(this.averageCenter_){var e=this.markers_.length+1,r=(this.center_.lat()*(e-1)+t.getPosition().lat())/e,n=(this.center_.lng()*(e-1)+t.getPosition().lng())/e;this.center_=new google.maps.LatLng(r,n),this.calculateBounds_()}}else this.center_=t.getPosition(),this.calculateBounds_();t.isAdded=!0,this.markers_.push(t);var i=this.markers_.length,o=this.markerClusterer_.getMaxZoom();if(null!==o&&this.map_.getZoom()>o)t.getMap()!==this.map_&&t.setMap(this.map_);else if(i<this.minClusterSize_)t.getMap()!==this.map_&&t.setMap(this.map_);else if(i===this.minClusterSize_)for(var s=0;s<i;s++)this.markers_[s].setMap(null);else t.setMap(null);return!0},t.prototype.isMarkerInClusterBounds=function(t){return this.bounds_.contains(t.getPosition())},t.prototype.calculateBounds_=function(){var t=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(t)},t.prototype.updateIcon=function(){var t=this.markers_.length,e=this.markerClusterer_.getMaxZoom();if(null!==e&&this.map_.getZoom()>e)this.clusterIcon_.hide();else if(t<this.minClusterSize_)this.clusterIcon_.hide();else{var r=this.markerClusterer_.getStyles().length,n=this.markerClusterer_.getCalculator()(this.markers_,r);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(n),this.clusterIcon_.show()}},t.prototype.isMarkerAlreadyAdded_=function(t){if(this.markers_.indexOf)return-1!==this.markers_.indexOf(t);for(var e=0;e<this.markers_.length;e++)if(t===this.markers_[e])return!0;return!1},t}(),Pn=function(t,e,r){return void 0!==t[e]?t[e]:r};return function(t){function e(r,n,i){void 0===n&&(n=[]),void 0===i&&(i={});var o=t.call(this)||this;return o.options=i,o.markers_=[],o.clusters_=[],o.listeners_=[],o.activeMap_=null,o.ready_=!1,o.ariaLabelFn=o.options.ariaLabelFn||function(){return""},o.zIndex_=o.options.zIndex||Number(google.maps.Marker.MAX_ZINDEX)+1,o.gridSize_=o.options.gridSize||60,o.minClusterSize_=o.options.minimumClusterSize||2,o.maxZoom_=o.options.maxZoom||null,o.styles_=o.options.styles||[],o.title_=o.options.title||"",o.zoomOnClick_=Pn(o.options,"zoomOnClick",!0),o.averageCenter_=Pn(o.options,"averageCenter",!1),o.ignoreHidden_=Pn(o.options,"ignoreHidden",!1),o.enableRetinaIcons_=Pn(o.options,"enableRetinaIcons",!1),o.imagePath_=o.options.imagePath||e.IMAGE_PATH,o.imageExtension_=o.options.imageExtension||e.IMAGE_EXTENSION,o.imageSizes_=o.options.imageSizes||e.IMAGE_SIZES,o.calculator_=o.options.calculator||e.CALCULATOR,o.batchSize_=o.options.batchSize||e.BATCH_SIZE,o.batchSizeIE_=o.options.batchSizeIE||e.BATCH_SIZE_IE,o.clusterClass_=o.options.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(o.batchSize_=o.batchSizeIE_),o.setupStyles_(),o.addMarkers(n,!0),o.setMap(r),o}return dr(e,t),e.prototype.onAdd=function(){var t=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.prevZoom_=this.getMap().getZoom(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",(function(){var e=t.getMap(),r=e.minZoom||0,n=Math.min(e.maxZoom||100,e.mapTypes[e.getMapTypeId()].maxZoom),i=Math.min(Math.max(t.getMap().getZoom(),r),n);t.prevZoom_!=i&&(t.prevZoom_=i,t.resetViewport_(!1))})),google.maps.event.addListener(this.getMap(),"idle",(function(){t.redraw_()}))]},e.prototype.onRemove=function(){for(var t=0;t<this.markers_.length;t++)this.markers_[t].getMap()!==this.activeMap_&&this.markers_[t].setMap(this.activeMap_);for(t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();this.clusters_=[];for(t=0;t<this.listeners_.length;t++)google.maps.event.removeListener(this.listeners_[t]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},e.prototype.draw=function(){},e.prototype.setupStyles_=function(){if(!(this.styles_.length>0))for(var t=0;t<this.imageSizes_.length;t++){var r=this.imageSizes_[t];this.styles_.push(e.withDefaultStyle({url:this.imagePath_+(t+1)+"."+this.imageExtension_,height:r,width:r}))}},e.prototype.fitMapToMarkers=function(t){for(var e=this.getMarkers(),r=new google.maps.LatLngBounds,n=0;n<e.length;n++)!e[n].getVisible()&&this.getIgnoreHidden()||r.extend(e[n].getPosition());this.getMap().fitBounds(r,t)},e.prototype.getGridSize=function(){return this.gridSize_},e.prototype.setGridSize=function(t){this.gridSize_=t},e.prototype.getMinimumClusterSize=function(){return this.minClusterSize_},e.prototype.setMinimumClusterSize=function(t){this.minClusterSize_=t},e.prototype.getMaxZoom=function(){return this.maxZoom_},e.prototype.setMaxZoom=function(t){this.maxZoom_=t},e.prototype.getZIndex=function(){return this.zIndex_},e.prototype.setZIndex=function(t){this.zIndex_=t},e.prototype.getStyles=function(){return this.styles_},e.prototype.setStyles=function(t){this.styles_=t},e.prototype.getTitle=function(){return this.title_},e.prototype.setTitle=function(t){this.title_=t},e.prototype.getZoomOnClick=function(){return this.zoomOnClick_},e.prototype.setZoomOnClick=function(t){this.zoomOnClick_=t},e.prototype.getAverageCenter=function(){return this.averageCenter_},e.prototype.setAverageCenter=function(t){this.averageCenter_=t},e.prototype.getIgnoreHidden=function(){return this.ignoreHidden_},e.prototype.setIgnoreHidden=function(t){this.ignoreHidden_=t},e.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},e.prototype.setEnableRetinaIcons=function(t){this.enableRetinaIcons_=t},e.prototype.getImageExtension=function(){return this.imageExtension_},e.prototype.setImageExtension=function(t){this.imageExtension_=t},e.prototype.getImagePath=function(){return this.imagePath_},e.prototype.setImagePath=function(t){this.imagePath_=t},e.prototype.getImageSizes=function(){return this.imageSizes_},e.prototype.setImageSizes=function(t){this.imageSizes_=t},e.prototype.getCalculator=function(){return this.calculator_},e.prototype.setCalculator=function(t){this.calculator_=t},e.prototype.getBatchSizeIE=function(){return this.batchSizeIE_},e.prototype.setBatchSizeIE=function(t){this.batchSizeIE_=t},e.prototype.getClusterClass=function(){return this.clusterClass_},e.prototype.setClusterClass=function(t){this.clusterClass_=t},e.prototype.getMarkers=function(){return this.markers_},e.prototype.getTotalMarkers=function(){return this.markers_.length},e.prototype.getClusters=function(){return this.clusters_},e.prototype.getTotalClusters=function(){return this.clusters_.length},e.prototype.addMarker=function(t,e){this.pushMarkerTo_(t),e||this.redraw_()},e.prototype.addMarkers=function(t,e){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.pushMarkerTo_(t[r]);e||this.redraw_()},e.prototype.pushMarkerTo_=function(t){var e=this;t.getDraggable()&&google.maps.event.addListener(t,"dragend",(function(){e.ready_&&(t.isAdded=!1,e.repaint())})),t.isAdded=!1,this.markers_.push(t)},e.prototype.removeMarker=function(t,e){var r=this.removeMarker_(t);return!e&&r&&this.repaint(),r},e.prototype.removeMarkers=function(t,e){for(var r=!1,n=0;n<t.length;n++){var i=this.removeMarker_(t[n]);r=r||i}return!e&&r&&this.repaint(),r},e.prototype.removeMarker_=function(t){var e=-1;if(this.markers_.indexOf)e=this.markers_.indexOf(t);else for(var r=0;r<this.markers_.length;r++)if(t===this.markers_[r]){e=r;break}return-1!==e&&(t.setMap(null),this.markers_.splice(e,1),!0)},e.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},e.prototype.repaint=function(){var t=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout((function(){for(var e=0;e<t.length;e++)t[e].remove()}),0)},e.prototype.getExtendedBounds=function(t){var e=this.getProjection(),r=new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()),n=new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()),i=e.fromLatLngToDivPixel(r);i.x+=this.gridSize_,i.y-=this.gridSize_;var o=e.fromLatLngToDivPixel(n);o.x-=this.gridSize_,o.y+=this.gridSize_;var s=e.fromDivPixelToLatLng(i),a=e.fromDivPixelToLatLng(o);return t.extend(s),t.extend(a),t},e.prototype.redraw_=function(){this.createClusters_(0)},e.prototype.resetViewport_=function(t){for(var e=0;e<this.clusters_.length;e++)this.clusters_[e].remove();this.clusters_=[];for(e=0;e<this.markers_.length;e++){var r=this.markers_[e];r.isAdded=!1,t&&r.setMap(null)}},e.prototype.distanceBetweenPoints_=function(t,e){var r=(e.lat()-t.lat())*Math.PI/180,n=(e.lng()-t.lng())*Math.PI/180,i=Math.sin(r/2)*Math.sin(r/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(n/2)*Math.sin(n/2);return 6371*(2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i)))},e.prototype.isMarkerInBounds_=function(t,e){return e.contains(t.getPosition())},e.prototype.addToClosestCluster_=function(t){for(var e=4e4,r=null,n=0;n<this.clusters_.length;n++){var i,o=(i=this.clusters_[n]).getCenter();if(o){var s=this.distanceBetweenPoints_(o,t.getPosition());s<e&&(e=s,r=i)}}r&&r.isMarkerInClusterBounds(t)?r.addMarker(t):((i=new Tn(this)).addMarker(t),this.clusters_.push(i))},e.prototype.createClusters_=function(t){var e=this;if(this.ready_){var r;0===t&&(google.maps.event.trigger(this,"clusteringbegin",this),void 0!==this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic)),r=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625));for(var n=this.getExtendedBounds(r),i=Math.min(t+this.batchSize_,this.markers_.length),o=t;o<i;o++){var s=this.markers_[o];!s.isAdded&&this.isMarkerInBounds_(s,n)&&(!this.ignoreHidden_||this.ignoreHidden_&&s.getVisible())&&this.addToClosestCluster_(s)}if(i<this.markers_.length)this.timerRefStatic=window.setTimeout((function(){e.createClusters_(i)}),0);else{delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this);for(o=0;o<this.clusters_.length;o++)this.clusters_[o].updateIcon()}}},e.CALCULATOR=function(t,e){for(var r=0,n=t.length,i=n;0!==i;)i=Math.floor(i/10),r++;return r=Math.min(r,e),{text:n.toString(),index:r,title:""}},e.withDefaultStyle=function(t){return vr({textColor:"black",textSize:11,textDecoration:"none",textLineHeight:t.height,fontWeight:"bold",fontStyle:"normal",fontFamily:"Arial,sans-serif",backgroundPosition:"0 0"},t)},e.BATCH_SIZE=2e3,e.BATCH_SIZE_IE=500,e.IMAGE_PATH="../images/m",e.IMAGE_EXTENSION="png",e.IMAGE_SIZES=[53,56,66,78,90],e}(Cn)}(); | ||
//# sourceMappingURL=index.min.js.map |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).MarkerClusterer=e()}(this,(function(){"use strict";var t=function(t){try{return!!t()}catch(t){return!0}},e=!t((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var i,o,s=function(t){return t&&t.Math==Math&&t},a=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r&&r)||function(){return this}()||Function("return this")(),u=function(t){return"function"==typeof t},l=/#|\.prototype\./,c=function(e,r){var n=p[h(e)];return n==g||n!=f&&(u(r)?t(r):!!r)},h=c.normalize=function(t){return String(t).replace(l,".").toLowerCase()},p=c.data={},f=c.NATIVE="N",g=c.POLYFILL="P",d=c,m=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},v=function(t){return Object(m(t))},_={}.hasOwnProperty,y=Object.hasOwn||function(t,e){return _.call(v(t),e)},b=function(t){return"object"==typeof t?null!==t:u(t)},x=a.document,S=b(x)&&b(x.createElement),M=function(t){return S?x.createElement(t):{}},I=!e&&!t((function(){return 7!=Object.defineProperty(M("div"),"a",{get:function(){return 7}}).a})),w=function(t){if(b(t))return t;throw TypeError(String(t)+" is not an object")},k=function(t){return u(t)?t:void 0},C=function(t,e){return arguments.length<2?k(a[t]):a[t]&&a[t][e]},E=C("navigator","userAgent")||"",O=a.process,A=a.Deno,T=O&&O.versions||A&&A.version,P=T&&T.v8;P?o=(i=P.split("."))[0]<4?1:i[0]+i[1]:E&&(!(i=E.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=E.match(/Chrome\/(\d+)/))&&(o=i[1]);var L=o&&+o,j=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&L&&L<41})),z=j&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,R=z?function(t){return"symbol"==typeof t}:function(t){var e=C("Symbol");return u(e)&&Object(t)instanceof e},N=function(t){try{return String(t)}catch(t){return"Object"}},B=function(t){if(u(t))return t;throw TypeError(N(t)+" is not a function")},Z=function(t,e){var r=t[e];return null==r?void 0:B(r)},D=function(t,e){try{Object.defineProperty(a,t,{value:e,configurable:!0,writable:!0})}catch(r){a[t]=e}return e},F="__core-js_shared__",H=a[F]||D(F,{}),$=n((function(t){(t.exports=function(t,e){return H[t]||(H[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.18.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),G=0,U=Math.random(),V=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++G+U).toString(36)},W=$("wks"),X=a.Symbol,Y=z?X:X&&X.withoutSetter||V,q=function(t){return y(W,t)&&(j||"string"==typeof W[t])||(j&&y(X,t)?W[t]=X[t]:W[t]=Y("Symbol."+t)),W[t]},K=q("toPrimitive"),J=function(t,e){if(!b(t)||R(t))return t;var r,n=Z(t,K);if(n){if(void 0===e&&(e="default"),r=n.call(t,e),!b(r)||R(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&u(r=t.toString)&&!b(n=r.call(t)))return n;if(u(r=t.valueOf)&&!b(n=r.call(t)))return n;if("string"!==e&&u(r=t.toString)&&!b(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}(t,e)},Q=function(t){var e=J(t,"string");return R(e)?e:String(e)},tt=Object.defineProperty,et={f:e?tt:function(t,e,r){if(w(t),e=Q(e),w(r),I)try{return tt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},rt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},nt=e?function(t,e,r){return et.f(t,e,rt(1,r))}:function(t,e,r){return t[e]=r,t},it=Function.toString;u(H.inspectSource)||(H.inspectSource=function(t){return it.call(t)});var ot,st,at,ut=H.inspectSource,lt=a.WeakMap,ct=u(lt)&&/native code/.test(ut(lt)),ht=$("keys"),pt=function(t){return ht[t]||(ht[t]=V(t))},ft={},gt="Object already initialized",dt=a.WeakMap;if(ct||H.state){var mt=H.state||(H.state=new dt),vt=mt.get,_t=mt.has,yt=mt.set;ot=function(t,e){if(_t.call(mt,t))throw new TypeError(gt);return e.facade=t,yt.call(mt,t,e),e},st=function(t){return vt.call(mt,t)||{}},at=function(t){return _t.call(mt,t)}}else{var bt=pt("state");ft[bt]=!0,ot=function(t,e){if(y(t,bt))throw new TypeError(gt);return e.facade=t,nt(t,bt,e),e},st=function(t){return y(t,bt)?t[bt]:{}},at=function(t){return y(t,bt)}}var xt,St={set:ot,get:st,has:at,enforce:function(t){return at(t)?st(t):ot(t,{})},getterFor:function(t){return function(e){var r;if(!b(e)||(r=st(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},Mt=Function.prototype,It=e&&Object.getOwnPropertyDescriptor,wt=y(Mt,"name"),kt={EXISTS:wt,PROPER:wt&&"something"===function(){}.name,CONFIGURABLE:wt&&(!e||e&&It(Mt,"name").configurable)},Ct=n((function(t){var e=kt.CONFIGURABLE,r=St.get,n=St.enforce,i=String(String).split("String");(t.exports=function(t,r,o,s){var l,c=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,f=s&&void 0!==s.name?s.name:r;u(o)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!y(o,"name")||e&&o.name!==f)&&nt(o,"name",f),(l=n(o)).source||(l.source=i.join("string"==typeof f?f:""))),t!==a?(c?!p&&t[r]&&(h=!0):delete t[r],h?t[r]=o:nt(t,r,o)):h?t[r]=o:D(r,o)})(Function.prototype,"toString",(function(){return u(this)&&r(this).source||ut(this)}))})),Et={}.toString,Ot=function(t){return Et.call(t).slice(8,-1)},At=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return w(r),function(t){if("object"==typeof t||u(t))return t;throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Tt=function(t,e,r){var n,i;return At&&u(n=e.constructor)&&n!==r&&b(i=n.prototype)&&i!==r.prototype&&At(t,i),t},Pt="".split,Lt=t((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==Ot(t)?Pt.call(t,""):Object(t)}:Object,jt=function(t){return Lt(m(t))},zt=Math.ceil,Rt=Math.floor,Nt=function(t){return isNaN(t=+t)?0:(t>0?Rt:zt)(t)},Bt=Math.min,Zt=function(t){return t>0?Bt(Nt(t),9007199254740991):0},Dt=Math.max,Ft=Math.min,Ht=function(t,e){var r=Nt(t);return r<0?Dt(r+e,0):Ft(r,e)},$t=function(t){return function(e,r,n){var i,o=jt(e),s=Zt(o.length),a=Ht(n,s);if(t&&r!=r){for(;s>a;)if((i=o[a++])!=i)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===r)return t||a||0;return!t&&-1}},Gt={includes:$t(!0),indexOf:$t(!1)},Ut=Gt.indexOf,Vt=function(t,e){var r,n=jt(t),i=0,o=[];for(r in n)!y(ft,r)&&y(n,r)&&o.push(r);for(;e.length>i;)y(n,r=e[i++])&&(~Ut(o,r)||o.push(r));return o},Wt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xt=Object.keys||function(t){return Vt(t,Wt)},Yt=e?Object.defineProperties:function(t,e){w(t);for(var r,n=Xt(e),i=n.length,o=0;i>o;)et.f(t,r=n[o++],e[r]);return t},qt=C("document","documentElement"),Kt=pt("IE_PROTO"),Jt=function(){},Qt=function(t){return"<script>"+t+"</"+"script>"},te=function(t){t.write(Qt("")),t.close();var e=t.parentWindow.Object;return t=null,e},ee=function(){try{xt=new ActiveXObject("htmlfile")}catch(t){}var t,e;ee="undefined"!=typeof document?document.domain&&xt?te(xt):((e=M("iframe")).style.display="none",qt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Qt("document.F=Object")),t.close(),t.F):te(xt);for(var r=Wt.length;r--;)delete ee.prototype[Wt[r]];return ee()};ft[Kt]=!0;var re=Object.create||function(t,e){var r;return null!==t?(Jt.prototype=w(t),r=new Jt,Jt.prototype=null,r[Kt]=t):r=ee(),void 0===e?r:Yt(r,e)},ne=Wt.concat("length","prototype"),ie={f:Object.getOwnPropertyNames||function(t){return Vt(t,ne)}},oe={}.propertyIsEnumerable,se=Object.getOwnPropertyDescriptor,ae={f:se&&!oe.call({1:2},1)?function(t){var e=se(this,t);return!!e&&e.enumerable}:oe},ue=Object.getOwnPropertyDescriptor,le={f:e?ue:function(t,e){if(t=jt(t),e=Q(e),I)try{return ue(t,e)}catch(t){}if(y(t,e))return rt(!ae.f.call(t,e),t[e])}},ce={};ce[q("toStringTag")]="z";var he="[object z]"===String(ce),pe=q("toStringTag"),fe="Arguments"==Ot(function(){return arguments}()),ge=he?Ot:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),pe))?r:fe?Ot(e):"Object"==(n=Ot(e))&&u(e.callee)?"Arguments":n},de=function(t){if("Symbol"===ge(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)},me="\t\n\v\f\r \u2028\u2029\ufeff",ve="["+me+"]",_e=RegExp("^"+ve+ve+"*"),ye=RegExp(ve+ve+"*$"),be=function(t){return function(e){var r=de(m(e));return 1&t&&(r=r.replace(_e,"")),2&t&&(r=r.replace(ye,"")),r}},xe={start:be(1),end:be(2),trim:be(3)},Se=ie.f,Me=le.f,Ie=et.f,we=xe.trim,ke="Number",Ce=a.Number,Ee=Ce.prototype,Oe=Ot(re(Ee))==ke,Ae=function(t){if(R(t))throw TypeError("Cannot convert a Symbol value to a number");var e,r,n,i,o,s,a,u,l=J(t,"number");if("string"==typeof l&&l.length>2)if(43===(e=(l=we(l)).charCodeAt(0))||45===e){if(88===(r=l.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+l}for(s=(o=l.slice(2)).length,a=0;a<s;a++)if((u=o.charCodeAt(a))<48||u>i)return NaN;return parseInt(o,n)}return+l};if(d(ke,!Ce(" 0o1")||!Ce("0b1")||Ce("+0x1"))){for(var Te,Pe=function(e){var r=arguments.length<1?0:e,n=this;return n instanceof Pe&&(Oe?t((function(){Ee.valueOf.call(n)})):Ot(n)!=ke)?Tt(new Ce(Ae(r)),n,Pe):Ae(r)},Le=e?Se(Ce):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),je=0;Le.length>je;je++)y(Ce,Te=Le[je])&&!y(Pe,Te)&&Ie(Pe,Te,Me(Ce,Te));Pe.prototype=Ee,Ee.constructor=Pe,Ct(a,ke,Pe)}var ze={f:Object.getOwnPropertySymbols},Re=C("Reflect","ownKeys")||function(t){var e=ie.f(w(t)),r=ze.f;return r?e.concat(r(t)):e},Ne=function(t,e){for(var r=Re(e),n=et.f,i=le.f,o=0;o<r.length;o++){var s=r[o];y(t,s)||n(t,s,i(e,s))}},Be=le.f,Ze=function(t,e){var r,n,i,o,s,u=t.target,l=t.global,c=t.stat;if(r=l?a:c?a[u]||D(u,{}):(a[u]||{}).prototype)for(n in e){if(o=e[n],i=t.noTargetGet?(s=Be(r,n))&&s.value:r[n],!d(l?n:u+(c?".":"#")+n,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;Ne(o,i)}(t.sham||i&&i.sham)&&nt(o,"sham",!0),Ct(r,n,o,t)}},De=function(e,r){var n=[][e];return!!n&&t((function(){n.call(null,r||function(){throw 1},1)}))},Fe=Gt.indexOf,He=[].indexOf,$e=!!He&&1/[1].indexOf(1,-0)<0,Ge=De("indexOf");Ze({target:"Array",proto:!0,forced:$e||!Ge},{indexOf:function(t){return $e?He.apply(this,arguments)||0:Fe(this,t,arguments.length>1?arguments[1]:void 0)}});var Ue=Array.isArray||function(t){return"Array"==Ot(t)},Ve=[],We=C("Reflect","construct"),Xe=/^\s*(?:class|function)\b/,Ye=Xe.exec,qe=!Xe.exec((function(){})),Ke=function(t){if(!u(t))return!1;try{return We(Object,Ve,t),!0}catch(t){return!1}},Je=!We||t((function(){var t;return Ke(Ke.call)||!Ke(Object)||!Ke((function(){t=!0}))||t}))?function(t){if(!u(t))return!1;switch(ge(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return qe||!!Ye.call(Xe,ut(t))}:Ke,Qe=q("species"),tr=function(t,e){return new(function(t){var e;return Ue(t)&&(e=t.constructor,(Je(e)&&(e===Array||Ue(e.prototype))||b(e)&&null===(e=e[Qe]))&&(e=void 0)),void 0===e?Array:e}(t))(0===e?0:e)},er=function(t,e,r){var n=Q(e);n in t?et.f(t,n,rt(0,r)):t[n]=r},rr=q("species"),nr=function(e){return L>=51||!t((function(){var t=[];return(t.constructor={})[rr]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},ir=nr("splice"),or=Math.max,sr=Math.min,ar=9007199254740991,ur="Maximum allowed length exceeded";Ze({target:"Array",proto:!0,forced:!ir},{splice:function(t,e){var r,n,i,o,s,a,u=v(this),l=Zt(u.length),c=Ht(t,l),h=arguments.length;if(0===h?r=n=0:1===h?(r=0,n=l-c):(r=h-2,n=sr(or(Nt(e),0),l-c)),l+r-n>ar)throw TypeError(ur);for(i=tr(u,n),o=0;o<n;o++)(s=c+o)in u&&er(i,o,u[s]);if(i.length=n,r<n){for(o=c;o<l-n;o++)a=o+r,(s=o+n)in u?u[a]=u[s]:delete u[a];for(o=l;o>l-n+r;o--)delete u[o-1]}else if(r>n)for(o=l-n;o>c;o--)a=o+r-1,(s=o+n-1)in u?u[a]=u[s]:delete u[a];for(o=0;o<r;o++)u[o+c]=arguments[o+2];return u.length=l-n+r,i}});var lr=nr("slice"),cr=q("species"),hr=[].slice,pr=Math.max;Ze({target:"Array",proto:!0,forced:!lr},{slice:function(t,e){var r,n,i,o=jt(this),s=Zt(o.length),a=Ht(t,s),u=Ht(void 0===e?s:e,s);if(Ue(o)&&(r=o.constructor,(Je(r)&&(r===Array||Ue(r.prototype))||b(r)&&null===(r=r[cr]))&&(r=void 0),r===Array||void 0===r))return hr.call(o,a,u);for(n=new(void 0===r?Array:r)(pr(u-a,0)),i=0;a<u;a++,i++)a in o&&er(n,i,o[a]);return n.length=i,n}});var fr=he?{}.toString:function(){return"[object "+ge(this)+"]"};he||Ct(Object.prototype,"toString",fr,{unsafe:!0});var gr=function(){var t=w(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},dr=kt.PROPER,mr="toString",vr=RegExp.prototype,_r=vr.toString,yr=t((function(){return"/a/b"!=_r.call({source:"a",flags:"b"})})),br=dr&&_r.name!=mr;(yr||br)&&Ct(RegExp.prototype,mr,(function(){var t=w(this),e=de(t.source),r=t.flags;return"/"+e+"/"+de(void 0===r&&t instanceof RegExp&&!("flags"in vr)?gr.call(t):r)}),{unsafe:!0});var xr=function(t,e){return(xr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function Sr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}xr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var Mr=function(){return(Mr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Ir=[].join,wr=Lt!=Object,kr=De("join",",");Ze({target:"Array",proto:!0,forced:wr||!kr},{join:function(t){return Ir.call(jt(this),void 0===t?",":t)}});var Cr=function(t){return function(e,r,n,i){B(r);var o=v(e),s=Lt(o),a=Zt(o.length),u=t?a-1:0,l=t?-1:1;if(n<2)for(;;){if(u in s){i=s[u],u+=l;break}if(u+=l,t?u<0:a<=u)throw TypeError("Reduce of empty array with no initial value")}for(;t?u>=0:a>u;u+=l)u in s&&(i=r(i,s[u],u,o));return i}},Er={left:Cr(!1),right:Cr(!0)},Or="process"==Ot(a.process),Ar=Er.left;Ze({target:"Array",proto:!0,forced:!De("reduce")||!Or&&L>79&&L<83},{reduce:function(t){return Ar(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}}),Ze({target:"Object",stat:!0,forced:t((function(){Xt(1)}))},{keys:function(t){return Xt(v(t))}});var Tr,Pr,Lr=a.RegExp,jr={UNSUPPORTED_Y:t((function(){var t=Lr("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:t((function(){var t=Lr("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},zr=a.RegExp,Rr=t((function(){var t=zr(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Nr=a.RegExp,Br=t((function(){var t=Nr("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Zr=St.get,Dr=RegExp.prototype.exec,Fr=$("native-string-replace",String.prototype.replace),Hr=Dr,$r=(Tr=/a/,Pr=/b*/g,Dr.call(Tr,"a"),Dr.call(Pr,"a"),0!==Tr.lastIndex||0!==Pr.lastIndex),Gr=jr.UNSUPPORTED_Y||jr.BROKEN_CARET,Ur=void 0!==/()??/.exec("")[1];($r||Ur||Gr||Rr||Br)&&(Hr=function(t){var e,r,n,i,o,s,a,u=this,l=Zr(u),c=de(t),h=l.raw;if(h)return h.lastIndex=u.lastIndex,e=Hr.call(h,c),u.lastIndex=h.lastIndex,e;var p=l.groups,f=Gr&&u.sticky,g=gr.call(u),d=u.source,m=0,v=c;if(f&&(-1===(g=g.replace("y","")).indexOf("g")&&(g+="g"),v=c.slice(u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==c.charAt(u.lastIndex-1))&&(d="(?: "+d+")",v=" "+v,m++),r=new RegExp("^(?:"+d+")",g)),Ur&&(r=new RegExp("^"+d+"$(?!\\s)",g)),$r&&(n=u.lastIndex),i=Dr.call(f?r:u,v),f?i?(i.input=i.input.slice(m),i[0]=i[0].slice(m),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:$r&&i&&(u.lastIndex=u.global?i.index+i[0].length:n),Ur&&i&&i.length>1&&Fr.call(i[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&p)for(i.groups=s=re(null),o=0;o<p.length;o++)s[(a=p[o])[0]]=i[a[1]];return i});var Vr=Hr;Ze({target:"RegExp",proto:!0,forced:/./.exec!==Vr},{exec:Vr});var Wr=q("species"),Xr=RegExp.prototype,Yr=function(e,r,n,i){var o=q(e),s=!t((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=s&&!t((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Wr]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!s||!a||n){var u=/./[o],l=r(o,""[e],(function(t,e,r,n,i){var o=e.exec;return o===Vr||o===Xr.exec?s&&!i?{done:!0,value:u.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}));Ct(String.prototype,e,l[0]),Ct(Xr,o,l[1])}i&&nt(Xr[o],"sham",!0)},qr=q("match"),Kr=q("species"),Jr=function(t,e){var r,n=w(t).constructor;return void 0===n||null==(r=w(n)[Kr])?e:function(t){if(Je(t))return t;throw TypeError(N(t)+" is not a constructor")}(r)},Qr=function(t){return function(e,r){var n,i,o=de(m(e)),s=Nt(r),a=o.length;return s<0||s>=a?t?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===a||(i=o.charCodeAt(s+1))<56320||i>57343?t?o.charAt(s):n:t?o.slice(s,s+2):i-56320+(n-55296<<10)+65536}},tn={codeAt:Qr(!1),charAt:Qr(!0)}.charAt,en=function(t,e,r){return e+(r?tn(t,e).length:1)},rn=function(t,e){var r=t.exec;if(u(r)){var n=r.call(t,e);return null!==n&&w(n),n}if("RegExp"===Ot(t))return Vr.call(t,e);throw TypeError("RegExp#exec called on incompatible receiver")},nn=jr.UNSUPPORTED_Y,on=[].push,sn=Math.min,an=4294967295;Yr("split",(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n,i,o=de(m(this)),s=void 0===r?an:r>>>0;if(0===s)return[];if(void 0===t)return[o];if(!b(n=t)||!(void 0!==(i=n[qr])?i:"RegExp"==Ot(n)))return e.call(o,t,s);for(var a,u,l,c=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,f=new RegExp(t.source,h+"g");(a=Vr.call(f,o))&&!((u=f.lastIndex)>p&&(c.push(o.slice(p,a.index)),a.length>1&&a.index<o.length&&on.apply(c,a.slice(1)),l=a[0].length,p=u,c.length>=s));)f.lastIndex===a.index&&f.lastIndex++;return p===o.length?!l&&f.test("")||c.push(""):c.push(o.slice(p)),c.length>s?c.slice(0,s):c}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var i=m(this),o=null==e?void 0:Z(e,t);return o?o.call(e,i,r):n.call(de(i),e,r)},function(t,i){var o=w(this),s=de(t),a=r(n,o,s,i,n!==e);if(a.done)return a.value;var u=Jr(o,RegExp),l=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(nn?"g":"y"),h=new u(nn?"^(?:"+o.source+")":o,c),p=void 0===i?an:i>>>0;if(0===p)return[];if(0===s.length)return null===rn(h,s)?[s]:[];for(var f=0,g=0,d=[];g<s.length;){h.lastIndex=nn?0:g;var m,v=rn(h,nn?s.slice(g):s);if(null===v||(m=sn(Zt(h.lastIndex+(nn?g:0)),s.length))===f)g=en(s,g,l);else{if(d.push(s.slice(f,g)),d.length===p)return d;for(var _=1;_<=v.length-1;_++)if(d.push(v[_]),d.length===p)return d;g=f=m}}return d.push(s.slice(f)),d}]}),!!t((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),nn);var un=xe.trim,ln=a.parseInt,cn=a.Symbol,hn=cn&&cn.iterator,pn=/^[+-]?0[Xx]/,fn=8!==ln(me+"08")||22!==ln(me+"0x16")||hn&&!t((function(){ln(Object(hn))}))?function(t,e){var r=un(de(t));return ln(r,e>>>0||(pn.test(r)?16:10))}:ln;Ze({global:!0,forced:parseInt!=fn},{parseInt:fn});var gn=Math.floor,dn="".replace,mn=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,vn=/\$([$&'`]|\d{1,2})/g,_n=function(t,e,r,n,i,o){var s=r+t.length,a=n.length,u=vn;return void 0!==i&&(i=v(i),u=mn),dn.call(o,u,(function(o,u){var l;switch(u.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(s);case"<":l=i[u.slice(1,-1)];break;default:var c=+u;if(0===c)return o;if(c>a){var h=gn(c/10);return 0===h?o:h<=a?void 0===n[h-1]?u.charAt(1):n[h-1]+u.charAt(1):o}l=n[c-1]}return void 0===l?"":l}))},yn=q("replace"),bn=Math.max,xn=Math.min,Sn="$0"==="a".replace(/./,"$0"),Mn=!!/./[yn]&&""===/./[yn]("a","$0");Yr("replace",(function(t,e,r){var n=Mn?"$":"$0";return[function(t,r){var n=m(this),i=null==t?void 0:Z(t,yn);return i?i.call(t,n,r):e.call(de(n),t,r)},function(t,i){var o=w(this),s=de(t);if("string"==typeof i&&-1===i.indexOf(n)&&-1===i.indexOf("$<")){var a=r(e,o,s,i);if(a.done)return a.value}var l=u(i);l||(i=de(i));var c=o.global;if(c){var h=o.unicode;o.lastIndex=0}for(var p=[];;){var f=rn(o,s);if(null===f)break;if(p.push(f),!c)break;""===de(f[0])&&(o.lastIndex=en(s,Zt(o.lastIndex),h))}for(var g,d="",m=0,v=0;v<p.length;v++){f=p[v];for(var _=de(f[0]),y=bn(xn(Nt(f.index),s.length),0),b=[],x=1;x<f.length;x++)b.push(void 0===(g=f[x])?g:String(g));var S=f.groups;if(l){var M=[_].concat(b,y,s);void 0!==S&&M.push(S);var I=de(i.apply(void 0,M))}else I=_n(_,s,y,b,S,i);y>=m&&(d+=s.slice(m,y)+I,m=y+_.length)}return d+s.slice(m)}]}),!!t((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Sn||Mn);var In=function t(){!function(t,e){for(var r in e.prototype)t.prototype[r]=e.prototype[r]}(t,google.maps.OverlayView)};function wn(t){return Object.keys(t).reduce((function(e,r){return t[r]&&e.push(r+":"+t[r]),e}),[]).join(";")}function kn(t){return t?t+"px":void 0}var Cn=function(t){function e(e,r){var n=t.call(this)||this;return n.cluster_=e,n.styles_=r,n.center_=null,n.div_=null,n.sums_=null,n.visible_=!1,n.style=null,n.setMap(e.getMap()),n}return Sr(e,t),e.prototype.onAdd=function(){var t,e,r=this,n=this.cluster_.getMarkerClusterer(),i=google.maps.version.split("."),o=i[0],s=i[1],a=100*parseInt(o,10)+parseInt(s,10);this.div_=document.createElement("div"),this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",(function(){e=t})),google.maps.event.addDomListener(this.div_,"mousedown",(function(){t=!0,e=!1})),google.maps.event.addDomListener(this.div_,"contextmenu",(function(){google.maps.event.trigger(n,"contextmenu",r.cluster_)})),a>=332&&google.maps.event.addDomListener(this.div_,"touchstart",(function(t){t.stopPropagation()})),google.maps.event.addDomListener(this.div_,"click",(function(i){if(t=!1,!e){if(google.maps.event.trigger(n,"click",r.cluster_),google.maps.event.trigger(n,"clusterclick",r.cluster_),n.getZoomOnClick()){var o=n.getMaxZoom(),s=r.cluster_.getBounds();n.getMap().fitBounds(s),setTimeout((function(){n.getMap().fitBounds(s),null!==o&&n.getMap().getZoom()>o&&n.getMap().setZoom(o+1)}),100)}i.cancelBubble=!0,i.stopPropagation&&i.stopPropagation()}})),google.maps.event.addDomListener(this.div_,"mouseover",(function(){google.maps.event.trigger(n,"mouseover",r.cluster_)})),google.maps.event.addDomListener(this.div_,"mouseout",(function(){google.maps.event.trigger(n,"mouseout",r.cluster_)}))},e.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},e.prototype.draw=function(){if(this.visible_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.top=t.y+"px",this.div_.style.left=t.x+"px"}},e.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},e.prototype.show=function(){this.div_&&(this.div_.className=this.className_,this.div_.style.cssText=this.createCss_(this.getPosFromLatLng_(this.center_)),this.div_.innerHTML=(this.style.url?this.getImageElementHtml():"")+this.getLabelDivHtml(),void 0===this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""),this.visible_=!0},e.prototype.getLabelDivHtml=function(){return'\n<div aria-label="'+this.cluster_.getMarkerClusterer().ariaLabelFn(this.sums_.text)+'" style="'+wn({position:"absolute",top:kn(this.anchorText_[0]),left:kn(this.anchorText_[1]),color:this.style.textColor,"font-size":kn(this.style.textSize),"font-family":this.style.fontFamily,"font-weight":this.style.fontWeight,"font-style":this.style.fontStyle,"text-decoration":this.style.textDecoration,"text-align":"center",width:kn(this.style.width),"line-height":kn(this.style.textLineHeight)})+'" tabindex="0">\n <span aria-hidden="true">'+this.sums_.text+"</span>\n</div>\n"},e.prototype.getImageElementHtml=function(){var t=(this.style.backgroundPosition||"0 0").split(" "),e=parseInt(t[0].replace(/^\s+|\s+$/g,""),10),r=parseInt(t[1].replace(/^\s+|\s+$/g,""),10),n={};if(this.cluster_.getMarkerClusterer().getEnableRetinaIcons())n={width:kn(this.style.width),height:kn(this.style.height)};else{var i=[-1*r,-1*e+this.style.width,-1*r+this.style.height,-1*e];n={clip:"rect("+i[0]+"px, "+i[1]+"px, "+i[2]+"px, "+i[3]+"px)"}}var o=this.sums_.url?{width:"100%",height:"100%"}:{},s=wn(Mr(Mr({position:"absolute",top:kn(r),left:kn(e)},n),o));return'<img alt="'+this.sums_.text+'" aria-hidden="true" src="'+this.style.url+'" style="'+s+'"/>'},e.prototype.useStyle=function(t){this.sums_=t;var e=Math.max(0,t.index-1);e=Math.min(this.styles_.length-1,e),this.style=this.sums_.url?Mr(Mr({},this.styles_[e]),{url:this.sums_.url}):this.styles_[e],this.anchorText_=this.style.anchorText||[0,0],this.anchorIcon_=this.style.anchorIcon||[Math.floor(this.style.height/2),Math.floor(this.style.width/2)],this.className_=this.cluster_.getMarkerClusterer().getClusterClass()+" "+(this.style.className||"cluster-"+e)},e.prototype.setCenter=function(t){this.center_=t},e.prototype.createCss_=function(t){return wn({"z-index":""+this.cluster_.getMarkerClusterer().getZIndex(),top:kn(t.y),left:kn(t.x),width:kn(this.style.width),height:kn(this.style.height),cursor:"pointer",position:"absolute","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-o-user-select":"none","user-select":"none"})},e.prototype.getPosFromLatLng_=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return e.x=Math.floor(e.x-this.anchorIcon_[1]),e.y=Math.floor(e.y-this.anchorIcon_[0]),e},e}(In),En=function(){function t(t){this.markerClusterer_=t,this.map_=this.markerClusterer_.getMap(),this.minClusterSize_=this.markerClusterer_.getMinimumClusterSize(),this.averageCenter_=this.markerClusterer_.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new Cn(this,this.markerClusterer_.getStyles())}return t.prototype.getSize=function(){return this.markers_.length},t.prototype.getMarkers=function(){return this.markers_},t.prototype.getCenter=function(){return this.center_},t.prototype.getMap=function(){return this.map_},t.prototype.getMarkerClusterer=function(){return this.markerClusterer_},t.prototype.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center_,this.center_),e=this.getMarkers(),r=0;r<e.length;r++)t.extend(e[r].getPosition());return t},t.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},t.prototype.addMarker=function(t){if(this.isMarkerAlreadyAdded_(t))return!1;if(this.center_){if(this.averageCenter_){var e=this.markers_.length+1,r=(this.center_.lat()*(e-1)+t.getPosition().lat())/e,n=(this.center_.lng()*(e-1)+t.getPosition().lng())/e;this.center_=new google.maps.LatLng(r,n),this.calculateBounds_()}}else this.center_=t.getPosition(),this.calculateBounds_();t.isAdded=!0,this.markers_.push(t);var i=this.markers_.length,o=this.markerClusterer_.getMaxZoom();if(null!==o&&this.map_.getZoom()>o)t.getMap()!==this.map_&&t.setMap(this.map_);else if(i<this.minClusterSize_)t.getMap()!==this.map_&&t.setMap(this.map_);else if(i===this.minClusterSize_)for(var s=0;s<i;s++)this.markers_[s].setMap(null);else t.setMap(null);return!0},t.prototype.isMarkerInClusterBounds=function(t){return this.bounds_.contains(t.getPosition())},t.prototype.calculateBounds_=function(){var t=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(t)},t.prototype.updateIcon=function(){var t=this.markers_.length,e=this.markerClusterer_.getMaxZoom();if(null!==e&&this.map_.getZoom()>e)this.clusterIcon_.hide();else if(t<this.minClusterSize_)this.clusterIcon_.hide();else{var r=this.markerClusterer_.getStyles().length,n=this.markerClusterer_.getCalculator()(this.markers_,r);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(n),this.clusterIcon_.show()}},t.prototype.isMarkerAlreadyAdded_=function(t){if(this.markers_.indexOf)return-1!==this.markers_.indexOf(t);for(var e=0;e<this.markers_.length;e++)if(t===this.markers_[e])return!0;return!1},t}(),On=function(t,e,r){return void 0!==t[e]?t[e]:r};return function(t){function e(r,n,i){void 0===n&&(n=[]),void 0===i&&(i={});var o=t.call(this)||this;return o.options=i,o.markers_=[],o.clusters_=[],o.listeners_=[],o.activeMap_=null,o.ready_=!1,o.ariaLabelFn=o.options.ariaLabelFn||function(){return""},o.zIndex_=o.options.zIndex||Number(google.maps.Marker.MAX_ZINDEX)+1,o.gridSize_=o.options.gridSize||60,o.minClusterSize_=o.options.minimumClusterSize||2,o.maxZoom_=o.options.maxZoom||null,o.styles_=o.options.styles||[],o.title_=o.options.title||"",o.zoomOnClick_=On(o.options,"zoomOnClick",!0),o.averageCenter_=On(o.options,"averageCenter",!1),o.ignoreHidden_=On(o.options,"ignoreHidden",!1),o.enableRetinaIcons_=On(o.options,"enableRetinaIcons",!1),o.imagePath_=o.options.imagePath||e.IMAGE_PATH,o.imageExtension_=o.options.imageExtension||e.IMAGE_EXTENSION,o.imageSizes_=o.options.imageSizes||e.IMAGE_SIZES,o.calculator_=o.options.calculator||e.CALCULATOR,o.batchSize_=o.options.batchSize||e.BATCH_SIZE,o.batchSizeIE_=o.options.batchSizeIE||e.BATCH_SIZE_IE,o.clusterClass_=o.options.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(o.batchSize_=o.batchSizeIE_),o.setupStyles_(),o.addMarkers(n,!0),o.setMap(r),o}return Sr(e,t),e.prototype.onAdd=function(){var t=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.prevZoom_=this.getMap().getZoom(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",(function(){var e=t.getMap(),r=e.minZoom||0,n=Math.min(e.maxZoom||100,e.mapTypes[e.getMapTypeId()].maxZoom),i=Math.min(Math.max(t.getMap().getZoom(),r),n);t.prevZoom_!=i&&(t.prevZoom_=i,t.resetViewport_(!1))})),google.maps.event.addListener(this.getMap(),"idle",(function(){t.redraw_()}))]},e.prototype.onRemove=function(){for(var t=0;t<this.markers_.length;t++)this.markers_[t].getMap()!==this.activeMap_&&this.markers_[t].setMap(this.activeMap_);for(t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();this.clusters_=[];for(t=0;t<this.listeners_.length;t++)google.maps.event.removeListener(this.listeners_[t]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},e.prototype.draw=function(){},e.prototype.setupStyles_=function(){if(!(this.styles_.length>0))for(var t=0;t<this.imageSizes_.length;t++){var r=this.imageSizes_[t];this.styles_.push(e.withDefaultStyle({url:this.imagePath_+(t+1)+"."+this.imageExtension_,height:r,width:r}))}},e.prototype.fitMapToMarkers=function(t){for(var e=this.getMarkers(),r=new google.maps.LatLngBounds,n=0;n<e.length;n++)!e[n].getVisible()&&this.getIgnoreHidden()||r.extend(e[n].getPosition());this.getMap().fitBounds(r,t)},e.prototype.getGridSize=function(){return this.gridSize_},e.prototype.setGridSize=function(t){this.gridSize_=t},e.prototype.getMinimumClusterSize=function(){return this.minClusterSize_},e.prototype.setMinimumClusterSize=function(t){this.minClusterSize_=t},e.prototype.getMaxZoom=function(){return this.maxZoom_},e.prototype.setMaxZoom=function(t){this.maxZoom_=t},e.prototype.getZIndex=function(){return this.zIndex_},e.prototype.setZIndex=function(t){this.zIndex_=t},e.prototype.getStyles=function(){return this.styles_},e.prototype.setStyles=function(t){this.styles_=t},e.prototype.getTitle=function(){return this.title_},e.prototype.setTitle=function(t){this.title_=t},e.prototype.getZoomOnClick=function(){return this.zoomOnClick_},e.prototype.setZoomOnClick=function(t){this.zoomOnClick_=t},e.prototype.getAverageCenter=function(){return this.averageCenter_},e.prototype.setAverageCenter=function(t){this.averageCenter_=t},e.prototype.getIgnoreHidden=function(){return this.ignoreHidden_},e.prototype.setIgnoreHidden=function(t){this.ignoreHidden_=t},e.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},e.prototype.setEnableRetinaIcons=function(t){this.enableRetinaIcons_=t},e.prototype.getImageExtension=function(){return this.imageExtension_},e.prototype.setImageExtension=function(t){this.imageExtension_=t},e.prototype.getImagePath=function(){return this.imagePath_},e.prototype.setImagePath=function(t){this.imagePath_=t},e.prototype.getImageSizes=function(){return this.imageSizes_},e.prototype.setImageSizes=function(t){this.imageSizes_=t},e.prototype.getCalculator=function(){return this.calculator_},e.prototype.setCalculator=function(t){this.calculator_=t},e.prototype.getBatchSizeIE=function(){return this.batchSizeIE_},e.prototype.setBatchSizeIE=function(t){this.batchSizeIE_=t},e.prototype.getClusterClass=function(){return this.clusterClass_},e.prototype.setClusterClass=function(t){this.clusterClass_=t},e.prototype.getMarkers=function(){return this.markers_},e.prototype.getTotalMarkers=function(){return this.markers_.length},e.prototype.getClusters=function(){return this.clusters_},e.prototype.getTotalClusters=function(){return this.clusters_.length},e.prototype.addMarker=function(t,e){this.pushMarkerTo_(t),e||this.redraw_()},e.prototype.addMarkers=function(t,e){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.pushMarkerTo_(t[r]);e||this.redraw_()},e.prototype.pushMarkerTo_=function(t){var e=this;t.getDraggable()&&google.maps.event.addListener(t,"dragend",(function(){e.ready_&&(t.isAdded=!1,e.repaint())})),t.isAdded=!1,this.markers_.push(t)},e.prototype.removeMarker=function(t,e){var r=this.removeMarker_(t);return!e&&r&&this.repaint(),r},e.prototype.removeMarkers=function(t,e){for(var r=!1,n=0;n<t.length;n++){var i=this.removeMarker_(t[n]);r=r||i}return!e&&r&&this.repaint(),r},e.prototype.removeMarker_=function(t){var e=-1;if(this.markers_.indexOf)e=this.markers_.indexOf(t);else for(var r=0;r<this.markers_.length;r++)if(t===this.markers_[r]){e=r;break}return-1!==e&&(t.setMap(null),this.markers_.splice(e,1),!0)},e.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},e.prototype.repaint=function(){var t=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout((function(){for(var e=0;e<t.length;e++)t[e].remove()}),0)},e.prototype.getExtendedBounds=function(t){var e=this.getProjection(),r=new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()),n=new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()),i=e.fromLatLngToDivPixel(r);i.x+=this.gridSize_,i.y-=this.gridSize_;var o=e.fromLatLngToDivPixel(n);o.x-=this.gridSize_,o.y+=this.gridSize_;var s=e.fromDivPixelToLatLng(i),a=e.fromDivPixelToLatLng(o);return t.extend(s),t.extend(a),t},e.prototype.redraw_=function(){this.createClusters_(0)},e.prototype.resetViewport_=function(t){for(var e=0;e<this.clusters_.length;e++)this.clusters_[e].remove();this.clusters_=[];for(e=0;e<this.markers_.length;e++){var r=this.markers_[e];r.isAdded=!1,t&&r.setMap(null)}},e.prototype.distanceBetweenPoints_=function(t,e){var r=(e.lat()-t.lat())*Math.PI/180,n=(e.lng()-t.lng())*Math.PI/180,i=Math.sin(r/2)*Math.sin(r/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(n/2)*Math.sin(n/2);return 6371*(2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i)))},e.prototype.isMarkerInBounds_=function(t,e){return e.contains(t.getPosition())},e.prototype.addToClosestCluster_=function(t){for(var e=4e4,r=null,n=0;n<this.clusters_.length;n++){var i,o=(i=this.clusters_[n]).getCenter();if(o){var s=this.distanceBetweenPoints_(o,t.getPosition());s<e&&(e=s,r=i)}}r&&r.isMarkerInClusterBounds(t)?r.addMarker(t):((i=new En(this)).addMarker(t),this.clusters_.push(i))},e.prototype.createClusters_=function(t){var e=this;if(this.ready_){var r;0===t&&(google.maps.event.trigger(this,"clusteringbegin",this),void 0!==this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic)),r=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625));for(var n=this.getExtendedBounds(r),i=Math.min(t+this.batchSize_,this.markers_.length),o=t;o<i;o++){var s=this.markers_[o];!s.isAdded&&this.isMarkerInBounds_(s,n)&&(!this.ignoreHidden_||this.ignoreHidden_&&s.getVisible())&&this.addToClosestCluster_(s)}if(i<this.markers_.length)this.timerRefStatic=window.setTimeout((function(){e.createClusters_(i)}),0);else{delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this);for(o=0;o<this.clusters_.length;o++)this.clusters_[o].updateIcon()}}},e.CALCULATOR=function(t,e){for(var r=0,n=t.length,i=n;0!==i;)i=Math.floor(i/10),r++;return r=Math.min(r,e),{text:n.toString(),index:r,title:""}},e.withDefaultStyle=function(t){return Mr({textColor:"black",textSize:11,textDecoration:"none",textLineHeight:t.height,fontWeight:"bold",fontStyle:"normal",fontFamily:"Arial,sans-serif",backgroundPosition:"0 0"},t)},e.BATCH_SIZE=2e3,e.BATCH_SIZE_IE=500,e.IMAGE_PATH="../images/m",e.IMAGE_EXTENSION="png",e.IMAGE_SIZES=[53,56,66,78,90],e}(In)})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).MarkerClusterer=e()}(this,(function(){"use strict";var t=function(t){try{return!!t()}catch(t){return!0}},e=!t((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var i,o,s=function(t){return t&&t.Math==Math&&t},a=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r&&r)||function(){return this}()||Function("return this")(),u=function(t){return"function"==typeof t},l=/#|\.prototype\./,c=function(e,r){var n=p[h(e)];return n==g||n!=f&&(u(r)?t(r):!!r)},h=c.normalize=function(t){return String(t).replace(l,".").toLowerCase()},p=c.data={},f=c.NATIVE="N",g=c.POLYFILL="P",d=c,m=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},v=function(t){return Object(m(t))},_={}.hasOwnProperty,y=Object.hasOwn||function(t,e){return _.call(v(t),e)},b=function(t){return"object"==typeof t?null!==t:u(t)},x=a.document,S=b(x)&&b(x.createElement),M=function(t){return S?x.createElement(t):{}},I=!e&&!t((function(){return 7!=Object.defineProperty(M("div"),"a",{get:function(){return 7}}).a})),w=function(t){if(b(t))return t;throw TypeError(String(t)+" is not an object")},k=function(t){return u(t)?t:void 0},C=function(t,e){return arguments.length<2?k(a[t]):a[t]&&a[t][e]},E=C("navigator","userAgent")||"",O=a.process,A=a.Deno,T=O&&O.versions||A&&A.version,P=T&&T.v8;P?o=(i=P.split("."))[0]<4?1:i[0]+i[1]:E&&(!(i=E.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=E.match(/Chrome\/(\d+)/))&&(o=i[1]);var L=o&&+o,j=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&L&&L<41})),z=j&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,R=z?function(t){return"symbol"==typeof t}:function(t){var e=C("Symbol");return u(e)&&Object(t)instanceof e},N=function(t){try{return String(t)}catch(t){return"Object"}},B=function(t){if(u(t))return t;throw TypeError(N(t)+" is not a function")},Z=function(t,e){var r=t[e];return null==r?void 0:B(r)},D=function(t,e){try{Object.defineProperty(a,t,{value:e,configurable:!0,writable:!0})}catch(r){a[t]=e}return e},F="__core-js_shared__",H=a[F]||D(F,{}),$=n((function(t){(t.exports=function(t,e){return H[t]||(H[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.18.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),G=0,U=Math.random(),V=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++G+U).toString(36)},W=$("wks"),X=a.Symbol,Y=z?X:X&&X.withoutSetter||V,q=function(t){return y(W,t)&&(j||"string"==typeof W[t])||(j&&y(X,t)?W[t]=X[t]:W[t]=Y("Symbol."+t)),W[t]},K=q("toPrimitive"),J=function(t,e){if(!b(t)||R(t))return t;var r,n=Z(t,K);if(n){if(void 0===e&&(e="default"),r=n.call(t,e),!b(r)||R(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&u(r=t.toString)&&!b(n=r.call(t)))return n;if(u(r=t.valueOf)&&!b(n=r.call(t)))return n;if("string"!==e&&u(r=t.toString)&&!b(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}(t,e)},Q=function(t){var e=J(t,"string");return R(e)?e:String(e)},tt=Object.defineProperty,et={f:e?tt:function(t,e,r){if(w(t),e=Q(e),w(r),I)try{return tt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},rt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},nt=e?function(t,e,r){return et.f(t,e,rt(1,r))}:function(t,e,r){return t[e]=r,t},it=Function.toString;u(H.inspectSource)||(H.inspectSource=function(t){return it.call(t)});var ot,st,at,ut=H.inspectSource,lt=a.WeakMap,ct=u(lt)&&/native code/.test(ut(lt)),ht=$("keys"),pt=function(t){return ht[t]||(ht[t]=V(t))},ft={},gt="Object already initialized",dt=a.WeakMap;if(ct||H.state){var mt=H.state||(H.state=new dt),vt=mt.get,_t=mt.has,yt=mt.set;ot=function(t,e){if(_t.call(mt,t))throw new TypeError(gt);return e.facade=t,yt.call(mt,t,e),e},st=function(t){return vt.call(mt,t)||{}},at=function(t){return _t.call(mt,t)}}else{var bt=pt("state");ft[bt]=!0,ot=function(t,e){if(y(t,bt))throw new TypeError(gt);return e.facade=t,nt(t,bt,e),e},st=function(t){return y(t,bt)?t[bt]:{}},at=function(t){return y(t,bt)}}var xt={set:ot,get:st,has:at,enforce:function(t){return at(t)?st(t):ot(t,{})},getterFor:function(t){return function(e){var r;if(!b(e)||(r=st(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},St=Function.prototype,Mt=e&&Object.getOwnPropertyDescriptor,It=y(St,"name"),wt={EXISTS:It,PROPER:It&&"something"===function(){}.name,CONFIGURABLE:It&&(!e||e&&Mt(St,"name").configurable)},kt=n((function(t){var e=wt.CONFIGURABLE,r=xt.get,n=xt.enforce,i=String(String).split("String");(t.exports=function(t,r,o,s){var l,c=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,f=s&&void 0!==s.name?s.name:r;u(o)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!y(o,"name")||e&&o.name!==f)&&nt(o,"name",f),(l=n(o)).source||(l.source=i.join("string"==typeof f?f:""))),t!==a?(c?!p&&t[r]&&(h=!0):delete t[r],h?t[r]=o:nt(t,r,o)):h?t[r]=o:D(r,o)})(Function.prototype,"toString",(function(){return u(this)&&r(this).source||ut(this)}))})),Ct=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return w(r),function(t){if("object"==typeof t||u(t))return t;throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Et=function(t,e,r){var n,i;return Ct&&u(n=e.constructor)&&n!==r&&b(i=n.prototype)&&i!==r.prototype&&Ct(t,i),t},Ot={}.toString,At=function(t){return Ot.call(t).slice(8,-1)},Tt="".split,Pt=t((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==At(t)?Tt.call(t,""):Object(t)}:Object,Lt=function(t){return Pt(m(t))},jt=Math.ceil,zt=Math.floor,Rt=function(t){var e=+t;return e!=e||0===e?0:(e>0?zt:jt)(e)},Nt=Math.max,Bt=Math.min,Zt=function(t,e){var r=Rt(t);return r<0?Nt(r+e,0):Bt(r,e)},Dt=Math.min,Ft=function(t){return t>0?Dt(Rt(t),9007199254740991):0},Ht=function(t){return Ft(t.length)},$t=function(t){return function(e,r,n){var i,o=Lt(e),s=Ht(o),a=Zt(n,s);if(t&&r!=r){for(;s>a;)if((i=o[a++])!=i)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===r)return t||a||0;return!t&&-1}},Gt={includes:$t(!0),indexOf:$t(!1)},Ut=Gt.indexOf,Vt=function(t,e){var r,n=Lt(t),i=0,o=[];for(r in n)!y(ft,r)&&y(n,r)&&o.push(r);for(;e.length>i;)y(n,r=e[i++])&&(~Ut(o,r)||o.push(r));return o},Wt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xt=Wt.concat("length","prototype"),Yt={f:Object.getOwnPropertyNames||function(t){return Vt(t,Xt)}},qt={}.propertyIsEnumerable,Kt=Object.getOwnPropertyDescriptor,Jt={f:Kt&&!qt.call({1:2},1)?function(t){var e=Kt(this,t);return!!e&&e.enumerable}:qt},Qt=Object.getOwnPropertyDescriptor,te={f:e?Qt:function(t,e){if(t=Lt(t),e=Q(e),I)try{return Qt(t,e)}catch(t){}if(y(t,e))return rt(!Jt.f.call(t,e),t[e])}},ee=1..valueOf,re=function(t){return ee.call(t)},ne={};ne[q("toStringTag")]="z";var ie="[object z]"===String(ne),oe=q("toStringTag"),se="Arguments"==At(function(){return arguments}()),ae=ie?At:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),oe))?r:se?At(e):"Object"==(n=At(e))&&u(e.callee)?"Arguments":n},ue=function(t){if("Symbol"===ae(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)},le="\t\n\v\f\r \u2028\u2029\ufeff",ce="["+le+"]",he=RegExp("^"+ce+ce+"*"),pe=RegExp(ce+ce+"*$"),fe=function(t){return function(e){var r=ue(m(e));return 1&t&&(r=r.replace(he,"")),2&t&&(r=r.replace(pe,"")),r}},ge={start:fe(1),end:fe(2),trim:fe(3)},de=Yt.f,me=te.f,ve=et.f,_e=ge.trim,ye="Number",be=a.Number,xe=be.prototype,Se=function(t){var e=J(t,"number");return"bigint"==typeof e?e:Me(e)},Me=function(t){var e,r,n,i,o,s,a,u,l=J(t,"number");if(R(l))throw TypeError("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(43===(e=(l=_e(l)).charCodeAt(0))||45===e){if(88===(r=l.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+l}for(s=(o=l.slice(2)).length,a=0;a<s;a++)if((u=o.charCodeAt(a))<48||u>i)return NaN;return parseInt(o,n)}return+l};if(d(ye,!be(" 0o1")||!be("0b1")||be("+0x1"))){for(var Ie,we=function(e){var r=arguments.length<1?0:be(Se(e)),n=this;return n instanceof we&&t((function(){re(n)}))?Et(Object(r),n,we):r},ke=e?de(be):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Ce=0;ke.length>Ce;Ce++)y(be,Ie=ke[Ce])&&!y(we,Ie)&&ve(we,Ie,me(be,Ie));we.prototype=xe,xe.constructor=we,kt(a,ye,we)}var Ee={f:Object.getOwnPropertySymbols},Oe=C("Reflect","ownKeys")||function(t){var e=Yt.f(w(t)),r=Ee.f;return r?e.concat(r(t)):e},Ae=function(t,e){for(var r=Oe(e),n=et.f,i=te.f,o=0;o<r.length;o++){var s=r[o];y(t,s)||n(t,s,i(e,s))}},Te=te.f,Pe=function(t,e){var r,n,i,o,s,u=t.target,l=t.global,c=t.stat;if(r=l?a:c?a[u]||D(u,{}):(a[u]||{}).prototype)for(n in e){if(o=e[n],i=t.noTargetGet?(s=Te(r,n))&&s.value:r[n],!d(l?n:u+(c?".":"#")+n,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;Ae(o,i)}(t.sham||i&&i.sham)&&nt(o,"sham",!0),kt(r,n,o,t)}},Le=function(e,r){var n=[][e];return!!n&&t((function(){n.call(null,r||function(){throw 1},1)}))},je=Gt.indexOf,ze=[].indexOf,Re=!!ze&&1/[1].indexOf(1,-0)<0,Ne=Le("indexOf");Pe({target:"Array",proto:!0,forced:Re||!Ne},{indexOf:function(t){return Re?ze.apply(this,arguments)||0:je(this,t,arguments.length>1?arguments[1]:void 0)}});var Be=Array.isArray||function(t){return"Array"==At(t)},Ze=[],De=C("Reflect","construct"),Fe=/^\s*(?:class|function)\b/,He=Fe.exec,$e=!Fe.exec((function(){})),Ge=function(t){if(!u(t))return!1;try{return De(Object,Ze,t),!0}catch(t){return!1}},Ue=!De||t((function(){var t;return Ge(Ge.call)||!Ge(Object)||!Ge((function(){t=!0}))||t}))?function(t){if(!u(t))return!1;switch(ae(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return $e||!!He.call(Fe,ut(t))}:Ge,Ve=q("species"),We=function(t,e){return new(function(t){var e;return Be(t)&&(e=t.constructor,(Ue(e)&&(e===Array||Be(e.prototype))||b(e)&&null===(e=e[Ve]))&&(e=void 0)),void 0===e?Array:e}(t))(0===e?0:e)},Xe=function(t,e,r){var n=Q(e);n in t?et.f(t,n,rt(0,r)):t[n]=r},Ye=q("species"),qe=function(e){return L>=51||!t((function(){var t=[];return(t.constructor={})[Ye]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Ke=qe("splice"),Je=Math.max,Qe=Math.min,tr=9007199254740991,er="Maximum allowed length exceeded";Pe({target:"Array",proto:!0,forced:!Ke},{splice:function(t,e){var r,n,i,o,s,a,u=v(this),l=Ht(u),c=Zt(t,l),h=arguments.length;if(0===h?r=n=0:1===h?(r=0,n=l-c):(r=h-2,n=Qe(Je(Rt(e),0),l-c)),l+r-n>tr)throw TypeError(er);for(i=We(u,n),o=0;o<n;o++)(s=c+o)in u&&Xe(i,o,u[s]);if(i.length=n,r<n){for(o=c;o<l-n;o++)a=o+r,(s=o+n)in u?u[a]=u[s]:delete u[a];for(o=l;o>l-n+r;o--)delete u[o-1]}else if(r>n)for(o=l-n;o>c;o--)a=o+r-1,(s=o+n-1)in u?u[a]=u[s]:delete u[a];for(o=0;o<r;o++)u[o+c]=arguments[o+2];return u.length=l-n+r,i}});var rr=qe("slice"),nr=q("species"),ir=[].slice,or=Math.max;Pe({target:"Array",proto:!0,forced:!rr},{slice:function(t,e){var r,n,i,o=Lt(this),s=Ht(o),a=Zt(t,s),u=Zt(void 0===e?s:e,s);if(Be(o)&&(r=o.constructor,(Ue(r)&&(r===Array||Be(r.prototype))||b(r)&&null===(r=r[nr]))&&(r=void 0),r===Array||void 0===r))return ir.call(o,a,u);for(n=new(void 0===r?Array:r)(or(u-a,0)),i=0;a<u;a++,i++)a in o&&Xe(n,i,o[a]);return n.length=i,n}});var sr=ie?{}.toString:function(){return"[object "+ae(this)+"]"};ie||kt(Object.prototype,"toString",sr,{unsafe:!0});var ar=function(){var t=w(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},ur=wt.PROPER,lr="toString",cr=RegExp.prototype,hr=cr.toString,pr=t((function(){return"/a/b"!=hr.call({source:"a",flags:"b"})})),fr=ur&&hr.name!=lr;(pr||fr)&&kt(RegExp.prototype,lr,(function(){var t=w(this),e=ue(t.source),r=t.flags;return"/"+e+"/"+ue(void 0===r&&t instanceof RegExp&&!("flags"in cr)?ar.call(t):r)}),{unsafe:!0});var gr=function(t,e){return(gr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function dr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}gr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var mr=function(){return(mr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},vr=[].join,_r=Pt!=Object,yr=Le("join",",");Pe({target:"Array",proto:!0,forced:_r||!yr},{join:function(t){return vr.call(Lt(this),void 0===t?",":t)}});var br=function(t){return function(e,r,n,i){B(r);var o=v(e),s=Pt(o),a=Ht(o),u=t?a-1:0,l=t?-1:1;if(n<2)for(;;){if(u in s){i=s[u],u+=l;break}if(u+=l,t?u<0:a<=u)throw TypeError("Reduce of empty array with no initial value")}for(;t?u>=0:a>u;u+=l)u in s&&(i=r(i,s[u],u,o));return i}},xr={left:br(!1),right:br(!0)},Sr="process"==At(a.process),Mr=xr.left;Pe({target:"Array",proto:!0,forced:!Le("reduce")||!Sr&&L>79&&L<83},{reduce:function(t){return Mr(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Ir=Object.keys||function(t){return Vt(t,Wt)};Pe({target:"Object",stat:!0,forced:t((function(){Ir(1)}))},{keys:function(t){return Ir(v(t))}});var wr,kr=a.RegExp,Cr={UNSUPPORTED_Y:t((function(){var t=kr("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:t((function(){var t=kr("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Er=e?Object.defineProperties:function(t,e){w(t);for(var r,n=Ir(e),i=n.length,o=0;i>o;)et.f(t,r=n[o++],e[r]);return t},Or=C("document","documentElement"),Ar=pt("IE_PROTO"),Tr=function(){},Pr=function(t){return"<script>"+t+"</"+"script>"},Lr=function(t){t.write(Pr("")),t.close();var e=t.parentWindow.Object;return t=null,e},jr=function(){try{wr=new ActiveXObject("htmlfile")}catch(t){}var t,e;jr="undefined"!=typeof document?document.domain&&wr?Lr(wr):((e=M("iframe")).style.display="none",Or.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Pr("document.F=Object")),t.close(),t.F):Lr(wr);for(var r=Wt.length;r--;)delete jr.prototype[Wt[r]];return jr()};ft[Ar]=!0;var zr,Rr,Nr=Object.create||function(t,e){var r;return null!==t?(Tr.prototype=w(t),r=new Tr,Tr.prototype=null,r[Ar]=t):r=jr(),void 0===e?r:Er(r,e)},Br=a.RegExp,Zr=t((function(){var t=Br(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Dr=a.RegExp,Fr=t((function(){var t=Dr("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Hr=xt.get,$r=RegExp.prototype.exec,Gr=$("native-string-replace",String.prototype.replace),Ur=$r,Vr=(zr=/a/,Rr=/b*/g,$r.call(zr,"a"),$r.call(Rr,"a"),0!==zr.lastIndex||0!==Rr.lastIndex),Wr=Cr.UNSUPPORTED_Y||Cr.BROKEN_CARET,Xr=void 0!==/()??/.exec("")[1];(Vr||Xr||Wr||Zr||Fr)&&(Ur=function(t){var e,r,n,i,o,s,a,u=this,l=Hr(u),c=ue(t),h=l.raw;if(h)return h.lastIndex=u.lastIndex,e=Ur.call(h,c),u.lastIndex=h.lastIndex,e;var p=l.groups,f=Wr&&u.sticky,g=ar.call(u),d=u.source,m=0,v=c;if(f&&(-1===(g=g.replace("y","")).indexOf("g")&&(g+="g"),v=c.slice(u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==c.charAt(u.lastIndex-1))&&(d="(?: "+d+")",v=" "+v,m++),r=new RegExp("^(?:"+d+")",g)),Xr&&(r=new RegExp("^"+d+"$(?!\\s)",g)),Vr&&(n=u.lastIndex),i=$r.call(f?r:u,v),f?i?(i.input=i.input.slice(m),i[0]=i[0].slice(m),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:Vr&&i&&(u.lastIndex=u.global?i.index+i[0].length:n),Xr&&i&&i.length>1&&Gr.call(i[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&p)for(i.groups=s=Nr(null),o=0;o<p.length;o++)s[(a=p[o])[0]]=i[a[1]];return i});var Yr=Ur;Pe({target:"RegExp",proto:!0,forced:/./.exec!==Yr},{exec:Yr});var qr=q("species"),Kr=RegExp.prototype,Jr=function(e,r,n,i){var o=q(e),s=!t((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=s&&!t((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[qr]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!s||!a||n){var u=/./[o],l=r(o,""[e],(function(t,e,r,n,i){var o=e.exec;return o===Yr||o===Kr.exec?s&&!i?{done:!0,value:u.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}));kt(String.prototype,e,l[0]),kt(Kr,o,l[1])}i&&nt(Kr[o],"sham",!0)},Qr=q("match"),tn=q("species"),en=function(t,e){var r,n=w(t).constructor;return void 0===n||null==(r=w(n)[tn])?e:function(t){if(Ue(t))return t;throw TypeError(N(t)+" is not a constructor")}(r)},rn=function(t){return function(e,r){var n,i,o=ue(m(e)),s=Rt(r),a=o.length;return s<0||s>=a?t?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===a||(i=o.charCodeAt(s+1))<56320||i>57343?t?o.charAt(s):n:t?o.slice(s,s+2):i-56320+(n-55296<<10)+65536}},nn={codeAt:rn(!1),charAt:rn(!0)}.charAt,on=function(t,e,r){return e+(r?nn(t,e).length:1)},sn=function(t,e){var r=t.exec;if(u(r)){var n=r.call(t,e);return null!==n&&w(n),n}if("RegExp"===At(t))return Yr.call(t,e);throw TypeError("RegExp#exec called on incompatible receiver")},an=Cr.UNSUPPORTED_Y,un=[].push,ln=Math.min,cn=4294967295;Jr("split",(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n,i,o=ue(m(this)),s=void 0===r?cn:r>>>0;if(0===s)return[];if(void 0===t)return[o];if(!b(n=t)||!(void 0!==(i=n[Qr])?i:"RegExp"==At(n)))return e.call(o,t,s);for(var a,u,l,c=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,f=new RegExp(t.source,h+"g");(a=Yr.call(f,o))&&!((u=f.lastIndex)>p&&(c.push(o.slice(p,a.index)),a.length>1&&a.index<o.length&&un.apply(c,a.slice(1)),l=a[0].length,p=u,c.length>=s));)f.lastIndex===a.index&&f.lastIndex++;return p===o.length?!l&&f.test("")||c.push(""):c.push(o.slice(p)),c.length>s?c.slice(0,s):c}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var i=m(this),o=null==e?void 0:Z(e,t);return o?o.call(e,i,r):n.call(ue(i),e,r)},function(t,i){var o=w(this),s=ue(t),a=r(n,o,s,i,n!==e);if(a.done)return a.value;var u=en(o,RegExp),l=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(an?"g":"y"),h=new u(an?"^(?:"+o.source+")":o,c),p=void 0===i?cn:i>>>0;if(0===p)return[];if(0===s.length)return null===sn(h,s)?[s]:[];for(var f=0,g=0,d=[];g<s.length;){h.lastIndex=an?0:g;var m,v=sn(h,an?s.slice(g):s);if(null===v||(m=ln(Ft(h.lastIndex+(an?g:0)),s.length))===f)g=on(s,g,l);else{if(d.push(s.slice(f,g)),d.length===p)return d;for(var _=1;_<=v.length-1;_++)if(d.push(v[_]),d.length===p)return d;g=f=m}}return d.push(s.slice(f)),d}]}),!!t((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),an);var hn=ge.trim,pn=a.parseInt,fn=a.Symbol,gn=fn&&fn.iterator,dn=/^[+-]?0[Xx]/,mn=8!==pn(le+"08")||22!==pn(le+"0x16")||gn&&!t((function(){pn(Object(gn))}))?function(t,e){var r=hn(ue(t));return pn(r,e>>>0||(dn.test(r)?16:10))}:pn;Pe({global:!0,forced:parseInt!=mn},{parseInt:mn});var vn=Math.floor,_n="".replace,yn=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,bn=/\$([$&'`]|\d{1,2})/g,xn=function(t,e,r,n,i,o){var s=r+t.length,a=n.length,u=bn;return void 0!==i&&(i=v(i),u=yn),_n.call(o,u,(function(o,u){var l;switch(u.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(s);case"<":l=i[u.slice(1,-1)];break;default:var c=+u;if(0===c)return o;if(c>a){var h=vn(c/10);return 0===h?o:h<=a?void 0===n[h-1]?u.charAt(1):n[h-1]+u.charAt(1):o}l=n[c-1]}return void 0===l?"":l}))},Sn=q("replace"),Mn=Math.max,In=Math.min,wn="$0"==="a".replace(/./,"$0"),kn=!!/./[Sn]&&""===/./[Sn]("a","$0");Jr("replace",(function(t,e,r){var n=kn?"$":"$0";return[function(t,r){var n=m(this),i=null==t?void 0:Z(t,Sn);return i?i.call(t,n,r):e.call(ue(n),t,r)},function(t,i){var o=w(this),s=ue(t);if("string"==typeof i&&-1===i.indexOf(n)&&-1===i.indexOf("$<")){var a=r(e,o,s,i);if(a.done)return a.value}var l=u(i);l||(i=ue(i));var c=o.global;if(c){var h=o.unicode;o.lastIndex=0}for(var p=[];;){var f=sn(o,s);if(null===f)break;if(p.push(f),!c)break;""===ue(f[0])&&(o.lastIndex=on(s,Ft(o.lastIndex),h))}for(var g,d="",m=0,v=0;v<p.length;v++){f=p[v];for(var _=ue(f[0]),y=Mn(In(Rt(f.index),s.length),0),b=[],x=1;x<f.length;x++)b.push(void 0===(g=f[x])?g:String(g));var S=f.groups;if(l){var M=[_].concat(b,y,s);void 0!==S&&M.push(S);var I=ue(i.apply(void 0,M))}else I=xn(_,s,y,b,S,i);y>=m&&(d+=s.slice(m,y)+I,m=y+_.length)}return d+s.slice(m)}]}),!!t((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!wn||kn);var Cn=function t(){!function(t,e){for(var r in e.prototype)t.prototype[r]=e.prototype[r]}(t,google.maps.OverlayView)};function En(t){return Object.keys(t).reduce((function(e,r){return t[r]&&e.push(r+":"+t[r]),e}),[]).join(";")}function On(t){return t?t+"px":void 0}var An=function(t){function e(e,r){var n=t.call(this)||this;return n.cluster_=e,n.styles_=r,n.center_=null,n.div_=null,n.sums_=null,n.visible_=!1,n.style=null,n.setMap(e.getMap()),n}return dr(e,t),e.prototype.onAdd=function(){var t,e,r=this,n=this.cluster_.getMarkerClusterer(),i=google.maps.version.split("."),o=i[0],s=i[1],a=100*parseInt(o,10)+parseInt(s,10);this.div_=document.createElement("div"),this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",(function(){e=t})),google.maps.event.addDomListener(this.div_,"mousedown",(function(){t=!0,e=!1})),google.maps.event.addDomListener(this.div_,"contextmenu",(function(){google.maps.event.trigger(n,"contextmenu",r.cluster_)})),a>=332&&google.maps.event.addDomListener(this.div_,"touchstart",(function(t){t.stopPropagation()})),google.maps.event.addDomListener(this.div_,"click",(function(i){if(t=!1,!e){if(google.maps.event.trigger(n,"click",r.cluster_),google.maps.event.trigger(n,"clusterclick",r.cluster_),n.getZoomOnClick()){var o=n.getMaxZoom(),s=r.cluster_.getBounds();n.getMap().fitBounds(s),setTimeout((function(){n.getMap().fitBounds(s),null!==o&&n.getMap().getZoom()>o&&n.getMap().setZoom(o+1)}),100)}i.cancelBubble=!0,i.stopPropagation&&i.stopPropagation()}})),google.maps.event.addDomListener(this.div_,"mouseover",(function(){google.maps.event.trigger(n,"mouseover",r.cluster_)})),google.maps.event.addDomListener(this.div_,"mouseout",(function(){google.maps.event.trigger(n,"mouseout",r.cluster_)}))},e.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},e.prototype.draw=function(){if(this.visible_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.top=t.y+"px",this.div_.style.left=t.x+"px"}},e.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},e.prototype.show=function(){this.div_&&(this.div_.className=this.className_,this.div_.style.cssText=this.createCss_(this.getPosFromLatLng_(this.center_)),this.div_.innerHTML=(this.style.url?this.getImageElementHtml():"")+this.getLabelDivHtml(),void 0===this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""),this.visible_=!0},e.prototype.getLabelDivHtml=function(){return'\n<div aria-label="'+this.cluster_.getMarkerClusterer().ariaLabelFn(this.sums_.text)+'" style="'+En({position:"absolute",top:On(this.anchorText_[0]),left:On(this.anchorText_[1]),color:this.style.textColor,"font-size":On(this.style.textSize),"font-family":this.style.fontFamily,"font-weight":this.style.fontWeight,"font-style":this.style.fontStyle,"text-decoration":this.style.textDecoration,"text-align":"center",width:On(this.style.width),"line-height":On(this.style.textLineHeight)})+'" tabindex="0">\n <span aria-hidden="true">'+this.sums_.text+"</span>\n</div>\n"},e.prototype.getImageElementHtml=function(){var t=(this.style.backgroundPosition||"0 0").split(" "),e=parseInt(t[0].replace(/^\s+|\s+$/g,""),10),r=parseInt(t[1].replace(/^\s+|\s+$/g,""),10),n={};if(this.cluster_.getMarkerClusterer().getEnableRetinaIcons())n={width:On(this.style.width),height:On(this.style.height)};else{var i=[-1*r,-1*e+this.style.width,-1*r+this.style.height,-1*e];n={clip:"rect("+i[0]+"px, "+i[1]+"px, "+i[2]+"px, "+i[3]+"px)"}}var o=this.sums_.url?{width:"100%",height:"100%"}:{},s=En(mr(mr({position:"absolute",top:On(r),left:On(e)},n),o));return'<img alt="'+this.sums_.text+'" aria-hidden="true" src="'+this.style.url+'" style="'+s+'"/>'},e.prototype.useStyle=function(t){this.sums_=t;var e=Math.max(0,t.index-1);e=Math.min(this.styles_.length-1,e),this.style=this.sums_.url?mr(mr({},this.styles_[e]),{url:this.sums_.url}):this.styles_[e],this.anchorText_=this.style.anchorText||[0,0],this.anchorIcon_=this.style.anchorIcon||[Math.floor(this.style.height/2),Math.floor(this.style.width/2)],this.className_=this.cluster_.getMarkerClusterer().getClusterClass()+" "+(this.style.className||"cluster-"+e)},e.prototype.setCenter=function(t){this.center_=t},e.prototype.createCss_=function(t){return En({"z-index":""+this.cluster_.getMarkerClusterer().getZIndex(),top:On(t.y),left:On(t.x),width:On(this.style.width),height:On(this.style.height),cursor:"pointer",position:"absolute","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-o-user-select":"none","user-select":"none"})},e.prototype.getPosFromLatLng_=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return e.x=Math.floor(e.x-this.anchorIcon_[1]),e.y=Math.floor(e.y-this.anchorIcon_[0]),e},e}(Cn),Tn=function(){function t(t){this.markerClusterer_=t,this.map_=this.markerClusterer_.getMap(),this.minClusterSize_=this.markerClusterer_.getMinimumClusterSize(),this.averageCenter_=this.markerClusterer_.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new An(this,this.markerClusterer_.getStyles())}return t.prototype.getSize=function(){return this.markers_.length},t.prototype.getMarkers=function(){return this.markers_},t.prototype.getCenter=function(){return this.center_},t.prototype.getMap=function(){return this.map_},t.prototype.getMarkerClusterer=function(){return this.markerClusterer_},t.prototype.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center_,this.center_),e=this.getMarkers(),r=0;r<e.length;r++)t.extend(e[r].getPosition());return t},t.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},t.prototype.addMarker=function(t){if(this.isMarkerAlreadyAdded_(t))return!1;if(this.center_){if(this.averageCenter_){var e=this.markers_.length+1,r=(this.center_.lat()*(e-1)+t.getPosition().lat())/e,n=(this.center_.lng()*(e-1)+t.getPosition().lng())/e;this.center_=new google.maps.LatLng(r,n),this.calculateBounds_()}}else this.center_=t.getPosition(),this.calculateBounds_();t.isAdded=!0,this.markers_.push(t);var i=this.markers_.length,o=this.markerClusterer_.getMaxZoom();if(null!==o&&this.map_.getZoom()>o)t.getMap()!==this.map_&&t.setMap(this.map_);else if(i<this.minClusterSize_)t.getMap()!==this.map_&&t.setMap(this.map_);else if(i===this.minClusterSize_)for(var s=0;s<i;s++)this.markers_[s].setMap(null);else t.setMap(null);return!0},t.prototype.isMarkerInClusterBounds=function(t){return this.bounds_.contains(t.getPosition())},t.prototype.calculateBounds_=function(){var t=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(t)},t.prototype.updateIcon=function(){var t=this.markers_.length,e=this.markerClusterer_.getMaxZoom();if(null!==e&&this.map_.getZoom()>e)this.clusterIcon_.hide();else if(t<this.minClusterSize_)this.clusterIcon_.hide();else{var r=this.markerClusterer_.getStyles().length,n=this.markerClusterer_.getCalculator()(this.markers_,r);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(n),this.clusterIcon_.show()}},t.prototype.isMarkerAlreadyAdded_=function(t){if(this.markers_.indexOf)return-1!==this.markers_.indexOf(t);for(var e=0;e<this.markers_.length;e++)if(t===this.markers_[e])return!0;return!1},t}(),Pn=function(t,e,r){return void 0!==t[e]?t[e]:r};return function(t){function e(r,n,i){void 0===n&&(n=[]),void 0===i&&(i={});var o=t.call(this)||this;return o.options=i,o.markers_=[],o.clusters_=[],o.listeners_=[],o.activeMap_=null,o.ready_=!1,o.ariaLabelFn=o.options.ariaLabelFn||function(){return""},o.zIndex_=o.options.zIndex||Number(google.maps.Marker.MAX_ZINDEX)+1,o.gridSize_=o.options.gridSize||60,o.minClusterSize_=o.options.minimumClusterSize||2,o.maxZoom_=o.options.maxZoom||null,o.styles_=o.options.styles||[],o.title_=o.options.title||"",o.zoomOnClick_=Pn(o.options,"zoomOnClick",!0),o.averageCenter_=Pn(o.options,"averageCenter",!1),o.ignoreHidden_=Pn(o.options,"ignoreHidden",!1),o.enableRetinaIcons_=Pn(o.options,"enableRetinaIcons",!1),o.imagePath_=o.options.imagePath||e.IMAGE_PATH,o.imageExtension_=o.options.imageExtension||e.IMAGE_EXTENSION,o.imageSizes_=o.options.imageSizes||e.IMAGE_SIZES,o.calculator_=o.options.calculator||e.CALCULATOR,o.batchSize_=o.options.batchSize||e.BATCH_SIZE,o.batchSizeIE_=o.options.batchSizeIE||e.BATCH_SIZE_IE,o.clusterClass_=o.options.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(o.batchSize_=o.batchSizeIE_),o.setupStyles_(),o.addMarkers(n,!0),o.setMap(r),o}return dr(e,t),e.prototype.onAdd=function(){var t=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.prevZoom_=this.getMap().getZoom(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",(function(){var e=t.getMap(),r=e.minZoom||0,n=Math.min(e.maxZoom||100,e.mapTypes[e.getMapTypeId()].maxZoom),i=Math.min(Math.max(t.getMap().getZoom(),r),n);t.prevZoom_!=i&&(t.prevZoom_=i,t.resetViewport_(!1))})),google.maps.event.addListener(this.getMap(),"idle",(function(){t.redraw_()}))]},e.prototype.onRemove=function(){for(var t=0;t<this.markers_.length;t++)this.markers_[t].getMap()!==this.activeMap_&&this.markers_[t].setMap(this.activeMap_);for(t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();this.clusters_=[];for(t=0;t<this.listeners_.length;t++)google.maps.event.removeListener(this.listeners_[t]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},e.prototype.draw=function(){},e.prototype.setupStyles_=function(){if(!(this.styles_.length>0))for(var t=0;t<this.imageSizes_.length;t++){var r=this.imageSizes_[t];this.styles_.push(e.withDefaultStyle({url:this.imagePath_+(t+1)+"."+this.imageExtension_,height:r,width:r}))}},e.prototype.fitMapToMarkers=function(t){for(var e=this.getMarkers(),r=new google.maps.LatLngBounds,n=0;n<e.length;n++)!e[n].getVisible()&&this.getIgnoreHidden()||r.extend(e[n].getPosition());this.getMap().fitBounds(r,t)},e.prototype.getGridSize=function(){return this.gridSize_},e.prototype.setGridSize=function(t){this.gridSize_=t},e.prototype.getMinimumClusterSize=function(){return this.minClusterSize_},e.prototype.setMinimumClusterSize=function(t){this.minClusterSize_=t},e.prototype.getMaxZoom=function(){return this.maxZoom_},e.prototype.setMaxZoom=function(t){this.maxZoom_=t},e.prototype.getZIndex=function(){return this.zIndex_},e.prototype.setZIndex=function(t){this.zIndex_=t},e.prototype.getStyles=function(){return this.styles_},e.prototype.setStyles=function(t){this.styles_=t},e.prototype.getTitle=function(){return this.title_},e.prototype.setTitle=function(t){this.title_=t},e.prototype.getZoomOnClick=function(){return this.zoomOnClick_},e.prototype.setZoomOnClick=function(t){this.zoomOnClick_=t},e.prototype.getAverageCenter=function(){return this.averageCenter_},e.prototype.setAverageCenter=function(t){this.averageCenter_=t},e.prototype.getIgnoreHidden=function(){return this.ignoreHidden_},e.prototype.setIgnoreHidden=function(t){this.ignoreHidden_=t},e.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},e.prototype.setEnableRetinaIcons=function(t){this.enableRetinaIcons_=t},e.prototype.getImageExtension=function(){return this.imageExtension_},e.prototype.setImageExtension=function(t){this.imageExtension_=t},e.prototype.getImagePath=function(){return this.imagePath_},e.prototype.setImagePath=function(t){this.imagePath_=t},e.prototype.getImageSizes=function(){return this.imageSizes_},e.prototype.setImageSizes=function(t){this.imageSizes_=t},e.prototype.getCalculator=function(){return this.calculator_},e.prototype.setCalculator=function(t){this.calculator_=t},e.prototype.getBatchSizeIE=function(){return this.batchSizeIE_},e.prototype.setBatchSizeIE=function(t){this.batchSizeIE_=t},e.prototype.getClusterClass=function(){return this.clusterClass_},e.prototype.setClusterClass=function(t){this.clusterClass_=t},e.prototype.getMarkers=function(){return this.markers_},e.prototype.getTotalMarkers=function(){return this.markers_.length},e.prototype.getClusters=function(){return this.clusters_},e.prototype.getTotalClusters=function(){return this.clusters_.length},e.prototype.addMarker=function(t,e){this.pushMarkerTo_(t),e||this.redraw_()},e.prototype.addMarkers=function(t,e){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.pushMarkerTo_(t[r]);e||this.redraw_()},e.prototype.pushMarkerTo_=function(t){var e=this;t.getDraggable()&&google.maps.event.addListener(t,"dragend",(function(){e.ready_&&(t.isAdded=!1,e.repaint())})),t.isAdded=!1,this.markers_.push(t)},e.prototype.removeMarker=function(t,e){var r=this.removeMarker_(t);return!e&&r&&this.repaint(),r},e.prototype.removeMarkers=function(t,e){for(var r=!1,n=0;n<t.length;n++){var i=this.removeMarker_(t[n]);r=r||i}return!e&&r&&this.repaint(),r},e.prototype.removeMarker_=function(t){var e=-1;if(this.markers_.indexOf)e=this.markers_.indexOf(t);else for(var r=0;r<this.markers_.length;r++)if(t===this.markers_[r]){e=r;break}return-1!==e&&(t.setMap(null),this.markers_.splice(e,1),!0)},e.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},e.prototype.repaint=function(){var t=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout((function(){for(var e=0;e<t.length;e++)t[e].remove()}),0)},e.prototype.getExtendedBounds=function(t){var e=this.getProjection(),r=new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()),n=new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()),i=e.fromLatLngToDivPixel(r);i.x+=this.gridSize_,i.y-=this.gridSize_;var o=e.fromLatLngToDivPixel(n);o.x-=this.gridSize_,o.y+=this.gridSize_;var s=e.fromDivPixelToLatLng(i),a=e.fromDivPixelToLatLng(o);return t.extend(s),t.extend(a),t},e.prototype.redraw_=function(){this.createClusters_(0)},e.prototype.resetViewport_=function(t){for(var e=0;e<this.clusters_.length;e++)this.clusters_[e].remove();this.clusters_=[];for(e=0;e<this.markers_.length;e++){var r=this.markers_[e];r.isAdded=!1,t&&r.setMap(null)}},e.prototype.distanceBetweenPoints_=function(t,e){var r=(e.lat()-t.lat())*Math.PI/180,n=(e.lng()-t.lng())*Math.PI/180,i=Math.sin(r/2)*Math.sin(r/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(n/2)*Math.sin(n/2);return 6371*(2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i)))},e.prototype.isMarkerInBounds_=function(t,e){return e.contains(t.getPosition())},e.prototype.addToClosestCluster_=function(t){for(var e=4e4,r=null,n=0;n<this.clusters_.length;n++){var i,o=(i=this.clusters_[n]).getCenter();if(o){var s=this.distanceBetweenPoints_(o,t.getPosition());s<e&&(e=s,r=i)}}r&&r.isMarkerInClusterBounds(t)?r.addMarker(t):((i=new Tn(this)).addMarker(t),this.clusters_.push(i))},e.prototype.createClusters_=function(t){var e=this;if(this.ready_){var r;0===t&&(google.maps.event.trigger(this,"clusteringbegin",this),void 0!==this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic)),r=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625));for(var n=this.getExtendedBounds(r),i=Math.min(t+this.batchSize_,this.markers_.length),o=t;o<i;o++){var s=this.markers_[o];!s.isAdded&&this.isMarkerInBounds_(s,n)&&(!this.ignoreHidden_||this.ignoreHidden_&&s.getVisible())&&this.addToClosestCluster_(s)}if(i<this.markers_.length)this.timerRefStatic=window.setTimeout((function(){e.createClusters_(i)}),0);else{delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this);for(o=0;o<this.clusters_.length;o++)this.clusters_[o].updateIcon()}}},e.CALCULATOR=function(t,e){for(var r=0,n=t.length,i=n;0!==i;)i=Math.floor(i/10),r++;return r=Math.min(r,e),{text:n.toString(),index:r,title:""}},e.withDefaultStyle=function(t){return mr({textColor:"black",textSize:11,textDecoration:"none",textLineHeight:t.height,fontWeight:"bold",fontStyle:"normal",fontFamily:"Arial,sans-serif",backgroundPosition:"0 0"},t)},e.BATCH_SIZE=2e3,e.BATCH_SIZE_IE=500,e.IMAGE_PATH="../images/m",e.IMAGE_EXTENSION="png",e.IMAGE_SIZES=[53,56,66,78,90],e}(Cn)})); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"name": "@googlemaps/markerclustererplus", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Creates and manages per-zoom-level clusters for large amounts of markers.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
828676
5661