Socket
Socket
Sign inDemoInstall

@googlemaps/markerclusterer

Package Overview
Dependencies
Maintainers
2
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@googlemaps/markerclusterer - npm Package Compare versions

Comparing version 2.1.0-beta.1 to 2.1.0-beta.2

4

dist/index.esm.js

@@ -52,3 +52,3 @@ import equal from 'fast-deep-equal';

static isAdvancedMarker(marker) {
if (marker instanceof google.maps.marker.AdvancedMarkerView) {
if (marker instanceof google.maps.marker.AdvancedMarkerElement) {
return true;

@@ -627,3 +627,3 @@ }

};
return new google.maps.marker.AdvancedMarkerView(clusterOptions);
return new google.maps.marker.AdvancedMarkerElement(clusterOptions);
}

@@ -630,0 +630,0 @@ const clusterOptions = {

@@ -1,2 +0,2 @@

var markerClusterer=function(t){"use strict";function e(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}class r{static isAdvancedMarker(t){return t instanceof google.maps.marker.AdvancedMarkerView}static setMap(t,e){this.isAdvancedMarker(t)?t.map=e:t.setMap(e)}static getPosition(t){if(this.isAdvancedMarker(t)){if(t.position){if(t.position instanceof google.maps.LatLng)return t.position;if(t.position.lat&&t.position.lng)return new google.maps.LatLng(t.position.lat,t.position.lng)}return new google.maps.LatLng(null)}return t.getPosition()}static getVisible(t){return!!this.isAdvancedMarker(t)||t.getVisible()}}class n{constructor(t){let{markers:e,position:r}=t;this.markers=e,r&&(r instanceof google.maps.LatLng?this._position=r:this._position=new google.maps.LatLng(r))}get bounds(){if(0!==this.markers.length||this._position)return this.markers.reduce(((t,e)=>t.extend(r.getPosition(e))),new google.maps.LatLngBounds(this._position,this._position))}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter((t=>r.getVisible(t))).length}push(t){this.markers.push(t)}delete(){this.marker&&(r.setMap(this.marker,null),delete this.marker),this.markers.length=0}}const o=(t,e,n,o)=>{const s=i(t.getBounds(),e,o);return n.filter((t=>s.contains(r.getPosition(t))))},i=(t,e,r)=>{const{northEast:n,southWest:o}=a(t,e),i=u({northEast:n,southWest:o},r);return c(i,e)},s=(t,e)=>{const r=(e.lat-t.lat)*Math.PI/180,n=(e.lng-t.lng)*Math.PI/180,o=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(o),Math.sqrt(1-o)))},a=(t,e)=>({northEast:e.fromLatLngToDivPixel(t.getNorthEast()),southWest:e.fromLatLngToDivPixel(t.getSouthWest())}),u=(t,e)=>{let{northEast:r,southWest:n}=t;return r.x+=e,r.y-=e,n.x-=e,n.y+=e,{northEast:r,southWest:n}},c=(t,e)=>{let{northEast:r,southWest:n}=t;const o=new google.maps.LatLngBounds;return o.extend(e.fromDivPixelToLatLng(r)),o.extend(e.fromDivPixelToLatLng(n)),o};class l{constructor(t){let{maxZoom:e=16}=t;this.maxZoom=e}noop(t){let{markers:e}=t;return h(e)}}class p extends l{constructor(t){var{viewportPadding:r=60}=t;super(e(t,["viewportPadding"])),this.viewportPadding=60,this.viewportPadding=r}calculate(t){let{markers:e,map:r,mapCanvasProjection:n}=t;return r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e,map:r,mapCanvasProjection:n}),changed:!1}:{clusters:this.cluster({markers:o(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}}const h=t=>t.map((t=>new n({position:r.getPosition(t),markers:[t]})));var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function m(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var g=function(t){return t&&t.Math==Math&&t},d=g("object"==typeof globalThis&&globalThis)||g("object"==typeof window&&window)||g("object"==typeof self&&self)||g("object"==typeof f&&f)||function(){return this}()||Function("return this")(),y={},v=function(t){try{return!!t()}catch(t){return!0}},b=!v((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),w=!v((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),k=w,M=Function.prototype.call,x=k?M.bind(M):function(){return M.apply(M,arguments)},O={},S={}.propertyIsEnumerable,P=Object.getOwnPropertyDescriptor,C=P&&!S.call({1:2},1);O.f=C?function(t){var e=P(this,t);return!!e&&e.enumerable}:S;var L,j,_=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},E=w,A=Function.prototype,T=A.call,I=E&&A.bind.bind(T,T),z=E?I:function(t){return function(){return T.apply(t,arguments)}},Z=z,D=Z({}.toString),F=Z("".slice),R=v,N=function(t){return F(D(t),8,-1)},G=Object,B=z("".split),V=R((function(){return!G("z").propertyIsEnumerable(0)}))?function(t){return"String"==N(t)?B(t,""):G(t)}:G,U=function(t){return null==t},W=U,H=TypeError,q=function(t){if(W(t))throw H("Can't call method on "+t);return t},X=V,J=q,K=function(t){return X(J(t))},Y="object"==typeof document&&document.all,$={all:Y,IS_HTMLDDA:void 0===Y&&void 0!==Y},Q=$.all,tt=$.IS_HTMLDDA?function(t){return"function"==typeof t||t===Q}:function(t){return"function"==typeof t},et=tt,rt=$.all,nt=$.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:et(t)||t===rt}:function(t){return"object"==typeof t?null!==t:et(t)},ot=d,it=tt,st=function(t,e){return arguments.length<2?(r=ot[t],it(r)?r:void 0):ot[t]&&ot[t][e];var r},at=z({}.isPrototypeOf),ut=d,ct="undefined"!=typeof navigator&&String(navigator.userAgent)||"",lt=ut.process,pt=ut.Deno,ht=lt&&lt.versions||pt&&pt.version,ft=ht&&ht.v8;ft&&(j=(L=ft.split("."))[0]>0&&L[0]<4?1:+(L[0]+L[1])),!j&&ct&&(!(L=ct.match(/Edge\/(\d+)/))||L[1]>=74)&&(L=ct.match(/Chrome\/(\d+)/))&&(j=+L[1]);var mt=j,gt=v,dt=!!Object.getOwnPropertySymbols&&!gt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&mt&&mt<41})),yt=dt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,vt=st,bt=tt,wt=at,kt=Object,Mt=yt?function(t){return"symbol"==typeof t}:function(t){var e=vt("Symbol");return bt(e)&&wt(e.prototype,kt(t))},xt=String,Ot=tt,St=function(t){try{return xt(t)}catch(t){return"Object"}},Pt=TypeError,Ct=function(t){if(Ot(t))return t;throw Pt(St(t)+" is not a function")},Lt=Ct,jt=U,_t=x,Et=tt,At=nt,Tt=TypeError,It={exports:{}},zt=d,Zt=Object.defineProperty,Dt=function(t,e){try{Zt(zt,t,{value:e,configurable:!0,writable:!0})}catch(r){zt[t]=e}return e},Ft=Dt,Rt="__core-js_shared__",Nt=d[Rt]||Ft(Rt,{}),Gt=Nt;(It.exports=function(t,e){return Gt[t]||(Gt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Bt=It.exports,Vt=q,Ut=Object,Wt=function(t){return Ut(Vt(t))},Ht=Wt,qt=z({}.hasOwnProperty),Xt=Object.hasOwn||function(t,e){return qt(Ht(t),e)},Jt=z,Kt=0,Yt=Math.random(),$t=Jt(1..toString),Qt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+$t(++Kt+Yt,36)},te=Bt,ee=Xt,re=Qt,ne=dt,oe=yt,ie=d.Symbol,se=te("wks"),ae=oe?ie.for||ie:ie&&ie.withoutSetter||re,ue=function(t){return ee(se,t)||(se[t]=ne&&ee(ie,t)?ie[t]:ae("Symbol."+t)),se[t]},ce=x,le=nt,pe=Mt,he=function(t,e){var r=t[e];return jt(r)?void 0:Lt(r)},fe=function(t,e){var r,n;if("string"===e&&Et(r=t.toString)&&!At(n=_t(r,t)))return n;if(Et(r=t.valueOf)&&!At(n=_t(r,t)))return n;if("string"!==e&&Et(r=t.toString)&&!At(n=_t(r,t)))return n;throw Tt("Can't convert object to primitive value")},me=TypeError,ge=ue("toPrimitive"),de=function(t,e){if(!le(t)||pe(t))return t;var r,n=he(t,ge);if(n){if(void 0===e&&(e="default"),r=ce(n,t,e),!le(r)||pe(r))return r;throw me("Can't convert object to primitive value")}return void 0===e&&(e="number"),fe(t,e)},ye=Mt,ve=function(t){var e=de(t,"string");return ye(e)?e:e+""},be=nt,we=d.document,ke=be(we)&&be(we.createElement),Me=function(t){return ke?we.createElement(t):{}},xe=Me,Oe=!b&&!v((function(){return 7!=Object.defineProperty(xe("div"),"a",{get:function(){return 7}}).a})),Se=b,Pe=x,Ce=O,Le=_,je=K,_e=ve,Ee=Xt,Ae=Oe,Te=Object.getOwnPropertyDescriptor;y.f=Se?Te:function(t,e){if(t=je(t),e=_e(e),Ae)try{return Te(t,e)}catch(t){}if(Ee(t,e))return Le(!Pe(Ce.f,t,e),t[e])};var Ie={},ze=b&&v((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ze=nt,De=String,Fe=TypeError,Re=function(t){if(Ze(t))return t;throw Fe(De(t)+" is not an object")},Ne=b,Ge=Oe,Be=ze,Ve=Re,Ue=ve,We=TypeError,He=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,Xe="enumerable",Je="configurable",Ke="writable";Ie.f=Ne?Be?function(t,e,r){if(Ve(t),e=Ue(e),Ve(r),"function"==typeof t&&"prototype"===e&&"value"in r&&Ke in r&&!r[Ke]){var n=qe(t,e);n&&n[Ke]&&(t[e]=r.value,r={configurable:Je in r?r[Je]:n[Je],enumerable:Xe in r?r[Xe]:n[Xe],writable:!1})}return He(t,e,r)}:He:function(t,e,r){if(Ve(t),e=Ue(e),Ve(r),Ge)try{return He(t,e,r)}catch(t){}if("get"in r||"set"in r)throw We("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var Ye=Ie,$e=_,Qe=b?function(t,e,r){return Ye.f(t,e,$e(1,r))}:function(t,e,r){return t[e]=r,t},tr={exports:{}},er=b,rr=Xt,nr=Function.prototype,or=er&&Object.getOwnPropertyDescriptor,ir=rr(nr,"name"),sr={EXISTS:ir,PROPER:ir&&"something"===function(){}.name,CONFIGURABLE:ir&&(!er||er&&or(nr,"name").configurable)},ar=tt,ur=Nt,cr=z(Function.toString);ar(ur.inspectSource)||(ur.inspectSource=function(t){return cr(t)});var lr,pr,hr,fr=ur.inspectSource,mr=tt,gr=d.WeakMap,dr=mr(gr)&&/native code/.test(String(gr)),yr=Qt,vr=Bt("keys"),br=function(t){return vr[t]||(vr[t]=yr(t))},wr={},kr=dr,Mr=d,xr=nt,Or=Qe,Sr=Xt,Pr=Nt,Cr=br,Lr=wr,jr="Object already initialized",_r=Mr.TypeError,Er=Mr.WeakMap;if(kr||Pr.state){var Ar=Pr.state||(Pr.state=new Er);Ar.get=Ar.get,Ar.has=Ar.has,Ar.set=Ar.set,lr=function(t,e){if(Ar.has(t))throw _r(jr);return e.facade=t,Ar.set(t,e),e},pr=function(t){return Ar.get(t)||{}},hr=function(t){return Ar.has(t)}}else{var Tr=Cr("state");Lr[Tr]=!0,lr=function(t,e){if(Sr(t,Tr))throw _r(jr);return e.facade=t,Or(t,Tr,e),e},pr=function(t){return Sr(t,Tr)?t[Tr]:{}},hr=function(t){return Sr(t,Tr)}}var Ir={set:lr,get:pr,has:hr,enforce:function(t){return hr(t)?pr(t):lr(t,{})},getterFor:function(t){return function(e){var r;if(!xr(e)||(r=pr(e)).type!==t)throw _r("Incompatible receiver, "+t+" required");return r}}},zr=z,Zr=v,Dr=tt,Fr=Xt,Rr=b,Nr=sr.CONFIGURABLE,Gr=fr,Br=Ir.enforce,Vr=Ir.get,Ur=String,Wr=Object.defineProperty,Hr=zr("".slice),qr=zr("".replace),Xr=zr([].join),Jr=Rr&&!Zr((function(){return 8!==Wr((function(){}),"length",{value:8}).length})),Kr=String(String).split("String"),Yr=tr.exports=function(t,e,r){"Symbol("===Hr(Ur(e),0,7)&&(e="["+qr(Ur(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Fr(t,"name")||Nr&&t.name!==e)&&(Rr?Wr(t,"name",{value:e,configurable:!0}):t.name=e),Jr&&r&&Fr(r,"arity")&&t.length!==r.arity&&Wr(t,"length",{value:r.arity});try{r&&Fr(r,"constructor")&&r.constructor?Rr&&Wr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Br(t);return Fr(n,"source")||(n.source=Xr(Kr,"string"==typeof e?e:"")),t};Function.prototype.toString=Yr((function(){return Dr(this)&&Vr(this).source||Gr(this)}),"toString");var $r=tr.exports,Qr=tt,tn=Ie,en=$r,rn=Dt,nn=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(Qr(r)&&en(r,i,n),n.global)o?t[e]=r:rn(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:tn.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},on={},sn=Math.ceil,an=Math.floor,un=Math.trunc||function(t){var e=+t;return(e>0?an:sn)(e)},cn=function(t){var e=+t;return e!=e||0===e?0:un(e)},ln=cn,pn=Math.max,hn=Math.min,fn=cn,mn=Math.min,gn=function(t){return t>0?mn(fn(t),9007199254740991):0},dn=K,yn=function(t,e){var r=ln(t);return r<0?pn(r+e,0):hn(r,e)},vn=function(t){return gn(t.length)},bn=function(t){return function(e,r,n){var o,i=dn(e),s=vn(i),a=yn(n,s);if(t&&r!=r){for(;s>a;)if((o=i[a++])!=o)return!0}else for(;s>a;a++)if((t||a in i)&&i[a]===r)return t||a||0;return!t&&-1}},wn={includes:bn(!0),indexOf:bn(!1)},kn=Xt,Mn=K,xn=wn.indexOf,On=wr,Sn=z([].push),Pn=function(t,e){var r,n=Mn(t),o=0,i=[];for(r in n)!kn(On,r)&&kn(n,r)&&Sn(i,r);for(;e.length>o;)kn(n,r=e[o++])&&(~xn(i,r)||Sn(i,r));return i},Cn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ln=Pn,jn=Cn.concat("length","prototype");on.f=Object.getOwnPropertyNames||function(t){return Ln(t,jn)};var _n={};_n.f=Object.getOwnPropertySymbols;var En=st,An=on,Tn=_n,In=Re,zn=z([].concat),Zn=En("Reflect","ownKeys")||function(t){var e=An.f(In(t)),r=Tn.f;return r?zn(e,r(t)):e},Dn=Xt,Fn=Zn,Rn=y,Nn=Ie,Gn=v,Bn=tt,Vn=/#|\.prototype\./,Un=function(t,e){var r=Hn[Wn(t)];return r==Xn||r!=qn&&(Bn(e)?Gn(e):!!e)},Wn=Un.normalize=function(t){return String(t).replace(Vn,".").toLowerCase()},Hn=Un.data={},qn=Un.NATIVE="N",Xn=Un.POLYFILL="P",Jn=Un,Kn=d,Yn=y.f,$n=Qe,Qn=nn,to=Dt,eo=function(t,e,r){for(var n=Fn(e),o=Nn.f,i=Rn.f,s=0;s<n.length;s++){var a=n[s];Dn(t,a)||r&&Dn(r,a)||o(t,a,i(e,a))}},ro=Jn,no=function(t,e){var r,n,o,i,s,a=t.target,u=t.global,c=t.stat;if(r=u?Kn:c?Kn[a]||to(a,{}):(Kn[a]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(s=Yn(r,n))&&s.value:r[n],!ro(u?n:a+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;eo(i,o)}(t.sham||o&&o.sham)&&$n(i,"sham",!0),Qn(r,n,i,t)}},oo=x;no({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return oo(URL.prototype.toString,this)}});var io=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(o=n;0!=o--;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var s=i[o];if(!t(e[s],r[s]))return!1}return!0}return e!=e&&r!=r},so=m(io);var ao=Me("span").classList,uo=ao&&ao.constructor&&ao.constructor.prototype,co=uo===Object.prototype?void 0:uo,lo={},po=Pn,ho=Cn,fo=Object.keys||function(t){return po(t,ho)},mo=b,go=ze,yo=Ie,vo=Re,bo=K,wo=fo;lo.f=mo&&!go?Object.defineProperties:function(t,e){vo(t);for(var r,n=bo(e),o=wo(e),i=o.length,s=0;i>s;)yo.f(t,r=o[s++],n[r]);return t};var ko,Mo=st("document","documentElement"),xo=Re,Oo=lo,So=Cn,Po=wr,Co=Mo,Lo=Me,jo="prototype",_o="script",Eo=br("IE_PROTO"),Ao=function(){},To=function(t){return"<"+_o+">"+t+"</"+_o+">"},Io=function(t){t.write(To("")),t.close();var e=t.parentWindow.Object;return t=null,e},zo=function(){try{ko=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;zo="undefined"!=typeof document?document.domain&&ko?Io(ko):(e=Lo("iframe"),r="java"+_o+":",e.style.display="none",Co.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(To("document.F=Object")),t.close(),t.F):Io(ko);for(var n=So.length;n--;)delete zo[jo][So[n]];return zo()};Po[Eo]=!0;var Zo=Object.create||function(t,e){var r;return null!==t?(Ao[jo]=xo(t),r=new Ao,Ao[jo]=null,r[Eo]=t):r=zo(),void 0===e?r:Oo.f(r,e)},Do=ue,Fo=Zo,Ro=Ie.f,No=Do("unscopables"),Go=Array.prototype;null==Go[No]&&Ro(Go,No,{configurable:!0,value:Fo(null)});var Bo,Vo,Uo,Wo={},Ho=!v((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),qo=Xt,Xo=tt,Jo=Wt,Ko=Ho,Yo=br("IE_PROTO"),$o=Object,Qo=$o.prototype,ti=Ko?$o.getPrototypeOf:function(t){var e=Jo(t);if(qo(e,Yo))return e[Yo];var r=e.constructor;return Xo(r)&&e instanceof r?r.prototype:e instanceof $o?Qo:null},ei=v,ri=tt,ni=nt,oi=ti,ii=nn,si=ue("iterator"),ai=!1;[].keys&&("next"in(Uo=[].keys())?(Vo=oi(oi(Uo)))!==Object.prototype&&(Bo=Vo):ai=!0),(!ni(Bo)||ei((function(){var t={};return Bo[si].call(t)!==t})))&&(Bo={}),ri(Bo[si])||ii(Bo,si,(function(){return this}));var ui={IteratorPrototype:Bo,BUGGY_SAFARI_ITERATORS:ai},ci=Ie.f,li=Xt,pi=ue("toStringTag"),hi=function(t,e,r){t&&!r&&(t=t.prototype),t&&!li(t,pi)&&ci(t,pi,{configurable:!0,value:e})},fi=ui.IteratorPrototype,mi=Zo,gi=_,di=hi,yi=Wo,vi=function(){return this},bi=z,wi=Ct,ki=tt,Mi=String,xi=TypeError,Oi=function(t,e,r){try{return bi(wi(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},Si=Re,Pi=function(t){if("object"==typeof t||ki(t))return t;throw xi("Can't set "+Mi(t)+" as a prototype")},Ci=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Oi(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Si(r),Pi(n),e?t(r,n):r.__proto__=n,r}}():void 0),Li=no,ji=x,_i=tt,Ei=function(t,e,r,n){var o=e+" Iterator";return t.prototype=mi(fi,{next:gi(+!n,r)}),di(t,o,!1),yi[o]=vi,t},Ai=ti,Ti=Ci,Ii=hi,zi=Qe,Zi=nn,Di=Wo,Fi=sr.PROPER,Ri=sr.CONFIGURABLE,Ni=ui.IteratorPrototype,Gi=ui.BUGGY_SAFARI_ITERATORS,Bi=ue("iterator"),Vi="keys",Ui="values",Wi="entries",Hi=function(){return this},qi=K,Xi=function(t){Go[No][t]=!0},Ji=Wo,Ki=Ir,Yi=Ie.f,$i=function(t,e,r,n,o,i,s){Ei(r,e,n);var a,u,c,l=function(t){if(t===o&&g)return g;if(!Gi&&t in f)return f[t];switch(t){case Vi:case Ui:case Wi:return function(){return new r(this,t)}}return function(){return new r(this)}},p=e+" Iterator",h=!1,f=t.prototype,m=f[Bi]||f["@@iterator"]||o&&f[o],g=!Gi&&m||l(o),d="Array"==e&&f.entries||m;if(d&&(a=Ai(d.call(new t)))!==Object.prototype&&a.next&&(Ai(a)!==Ni&&(Ti?Ti(a,Ni):_i(a[Bi])||Zi(a,Bi,Hi)),Ii(a,p,!0)),Fi&&o==Ui&&m&&m.name!==Ui&&(Ri?zi(f,"name",Ui):(h=!0,g=function(){return ji(m,this)})),o)if(u={values:l(Ui),keys:i?g:l(Vi),entries:l(Wi)},s)for(c in u)(Gi||h||!(c in f))&&Zi(f,c,u[c]);else Li({target:e,proto:!0,forced:Gi||h},u);return f[Bi]!==g&&Zi(f,Bi,g,{name:o}),Di[e]=g,u},Qi=function(t,e){return{value:t,done:e}},ts=b,es="Array Iterator",rs=Ki.set,ns=Ki.getterFor(es),os=$i(Array,"Array",(function(t,e){rs(this,{type:es,target:qi(t),index:0,kind:e})}),(function(){var t=ns(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,Qi(void 0,!0)):Qi("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)}),"values"),is=Ji.Arguments=Ji.Array;if(Xi("keys"),Xi("values"),Xi("entries"),ts&&"values"!==is.name)try{Yi(is,"name",{value:"values"})}catch(t){}var ss=d,as={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},us=co,cs=os,ls=Qe,ps=ue,hs=ps("iterator"),fs=ps("toStringTag"),ms=cs.values,gs=function(t,e){if(t){if(t[hs]!==ms)try{ls(t,hs,ms)}catch(e){t[hs]=ms}if(t[fs]||ls(t,fs,e),as[e])for(var r in cs)if(t[r]!==cs[r])try{ls(t,r,cs[r])}catch(e){t[r]=cs[r]}}};for(var ds in as)gs(ss[ds]&&ss[ds].prototype,ds);function ys(t,e,r,n,o,i){if(o-n<=r)return;const s=n+o>>1;vs(t,e,s,n,o,i%2),ys(t,e,r,n,s-1,i+1),ys(t,e,r,s+1,o,i+1)}function vs(t,e,r,n,o,i){for(;o>n;){if(o-n>600){const s=o-n+1,a=r-n+1,u=Math.log(s),c=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*c*(s-c)/s)*(a-s/2<0?-1:1);vs(t,e,r,Math.max(n,Math.floor(r-a*c/s+l)),Math.min(o,Math.floor(r+(s-a)*c/s+l)),i)}const s=e[2*r+i];let a=n,u=o;for(bs(t,e,n,r),e[2*o+i]>s&&bs(t,e,n,o);a<u;){for(bs(t,e,a,u),a++,u--;e[2*a+i]<s;)a++;for(;e[2*u+i]>s;)u--}e[2*n+i]===s?bs(t,e,n,u):(u++,bs(t,e,u,o)),u<=r&&(n=u+1),r<=u&&(o=u-1)}}function bs(t,e,r,n){ws(t,r,n),ws(e,2*r,2*n),ws(e,2*r+1,2*n+1)}function ws(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function ks(t,e,r,n){const o=t-r,i=e-n;return o*o+i*i}gs(us,"DOMTokenList");const Ms=t=>t[0],xs=t=>t[1];class Os{constructor(t,e=Ms,r=xs,n=64,o=Float64Array){this.nodeSize=n,this.points=t;const i=t.length<65536?Uint16Array:Uint32Array,s=this.ids=new i(t.length),a=this.coords=new o(2*t.length);for(let n=0;n<t.length;n++)s[n]=n,a[2*n]=e(t[n]),a[2*n+1]=r(t[n]);ys(s,a,n,0,s.length-1,0)}range(t,e,r,n){return function(t,e,r,n,o,i,s){const a=[0,t.length-1,0],u=[];let c,l;for(;a.length;){const p=a.pop(),h=a.pop(),f=a.pop();if(h-f<=s){for(let s=f;s<=h;s++)c=e[2*s],l=e[2*s+1],c>=r&&c<=o&&l>=n&&l<=i&&u.push(t[s]);continue}const m=Math.floor((f+h)/2);c=e[2*m],l=e[2*m+1],c>=r&&c<=o&&l>=n&&l<=i&&u.push(t[m]);const g=(p+1)%2;(0===p?r<=c:n<=l)&&(a.push(f),a.push(m-1),a.push(g)),(0===p?o>=c:i>=l)&&(a.push(m+1),a.push(h),a.push(g))}return u}(this.ids,this.coords,t,e,r,n,this.nodeSize)}within(t,e,r){return function(t,e,r,n,o,i){const s=[0,t.length-1,0],a=[],u=o*o;for(;s.length;){const c=s.pop(),l=s.pop(),p=s.pop();if(l-p<=i){for(let o=p;o<=l;o++)ks(e[2*o],e[2*o+1],r,n)<=u&&a.push(t[o]);continue}const h=Math.floor((p+l)/2),f=e[2*h],m=e[2*h+1];ks(f,m,r,n)<=u&&a.push(t[h]);const g=(c+1)%2;(0===c?r-o<=f:n-o<=m)&&(s.push(p),s.push(h-1),s.push(g)),(0===c?r+o>=f:n+o>=m)&&(s.push(h+1),s.push(l),s.push(g))}return a}(this.ids,this.coords,t,e,r,this.nodeSize)}}const Ss={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},Ps=Math.fround||(Cs=new Float32Array(1),t=>(Cs[0]=+t,Cs[0]));var Cs,Ls;class js{constructor(t){this.options=Ds(Object.create(Ss),t),this.trees=new Array(this.options.maxZoom+1)}load(t){const{log:e,minZoom:r,maxZoom:n,nodeSize:o}=this.options;e&&console.time("total time");const i=`prepare ${t.length} points`;e&&console.time(i),this.points=t;let s=[];for(let e=0;e<t.length;e++)t[e].geometry&&s.push(Es(t[e],e));this.trees[n+1]=new Os(s,Fs,Rs,o,Float32Array),e&&console.timeEnd(i);for(let t=n;t>=r;t--){const r=+Date.now();s=this._cluster(s,t),this.trees[t]=new Os(s,Fs,Rs,o,Float32Array),e&&console.log("z%d: %d clusters in %dms",t,s.length,+Date.now()-r)}return e&&console.timeEnd("total time"),this}getClusters(t,e){let r=((t[0]+180)%360+360)%360-180;const n=Math.max(-90,Math.min(90,t[1]));let o=180===t[2]?180:((t[2]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,o=180;else if(r>o){const t=this.getClusters([r,n,180,i],e),s=this.getClusters([-180,n,o,i],e);return t.concat(s)}const s=this.trees[this._limitZoom(e)],a=s.range(Is(r),zs(i),Is(o),zs(n)),u=[];for(const t of a){const e=s.points[t];u.push(e.numPoints?As(e):this.points[e.index])}return u}getChildren(t){const e=this._getOriginId(t),r=this._getOriginZoom(t),n="No cluster with the specified id.",o=this.trees[r];if(!o)throw new Error(n);const i=o.points[e];if(!i)throw new Error(n);const s=this.options.radius/(this.options.extent*Math.pow(2,r-1)),a=o.within(i.x,i.y,s),u=[];for(const e of a){const r=o.points[e];r.parentId===t&&u.push(r.numPoints?As(r):this.points[r.index])}if(0===u.length)throw new Error(n);return u}getLeaves(t,e,r){e=e||10,r=r||0;const n=[];return this._appendLeaves(n,t,e,r,0),n}getTile(t,e,r){const n=this.trees[this._limitZoom(t)],o=Math.pow(2,t),{extent:i,radius:s}=this.options,a=s/i,u=(r-a)/o,c=(r+1+a)/o,l={features:[]};return this._addTileFeatures(n.range((e-a)/o,u,(e+1+a)/o,c),n.points,e,r,o,l),0===e&&this._addTileFeatures(n.range(1-a/o,u,1,c),n.points,o,r,o,l),e===o-1&&this._addTileFeatures(n.range(0,u,a/o,c),n.points,-1,r,o,l),l.features.length?l:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){const r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e}_appendLeaves(t,e,r,n,o){const i=this.getChildren(e);for(const e of i){const i=e.properties;if(i&&i.cluster?o+i.point_count<=n?o+=i.point_count:o=this._appendLeaves(t,i.cluster_id,r,n,o):o<n?o++:t.push(e),t.length===r)break}return o}_addTileFeatures(t,e,r,n,o,i){for(const s of t){const t=e[s],a=t.numPoints;let u,c,l;if(a)u=Ts(t),c=t.x,l=t.y;else{const e=this.points[t.index];u=e.properties,c=Is(e.geometry.coordinates[0]),l=zs(e.geometry.coordinates[1])}const p={type:1,geometry:[[Math.round(this.options.extent*(c*o-r)),Math.round(this.options.extent*(l*o-n))]],tags:u};let h;a?h=t.id:this.options.generateId?h=t.index:this.points[t.index].id&&(h=this.points[t.index].id),void 0!==h&&(p.id=h),i.features.push(p)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){const r=[],{radius:n,extent:o,reduce:i,minPoints:s}=this.options,a=n/(o*Math.pow(2,e));for(let n=0;n<t.length;n++){const o=t[n];if(o.zoom<=e)continue;o.zoom=e;const u=this.trees[e+1],c=u.within(o.x,o.y,a),l=o.numPoints||1;let p=l;for(const t of c){const r=u.points[t];r.zoom>e&&(p+=r.numPoints||1)}if(p>l&&p>=s){let t=o.x*l,s=o.y*l,a=i&&l>1?this._map(o,!0):null;const h=(n<<5)+(e+1)+this.points.length;for(const r of c){const n=u.points[r];if(n.zoom<=e)continue;n.zoom=e;const c=n.numPoints||1;t+=n.x*c,s+=n.y*c,n.parentId=h,i&&(a||(a=this._map(o,!0)),i(a,this._map(n)))}o.parentId=h,r.push(_s(t/p,s/p,h,p,a))}else if(r.push(o),p>1)for(const t of c){const n=u.points[t];n.zoom<=e||(n.zoom=e,r.push(n))}}return r}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e){if(t.numPoints)return e?Ds({},t.properties):t.properties;const r=this.points[t.index].properties,n=this.options.map(r);return e&&n===r?Ds({},n):n}}function _s(t,e,r,n,o){return{x:Ps(t),y:Ps(e),zoom:1/0,id:r,parentId:-1,numPoints:n,properties:o}}function Es(t,e){const[r,n]=t.geometry.coordinates;return{x:Ps(Is(r)),y:Ps(zs(n)),zoom:1/0,index:e,parentId:-1}}function As(t){return{type:"Feature",id:t.id,properties:Ts(t),geometry:{type:"Point",coordinates:[(e=t.x,360*(e-.5)),Zs(t.y)]}};var e}function Ts(t){const e=t.numPoints,r=e>=1e4?`${Math.round(e/1e3)}k`:e>=1e3?Math.round(e/100)/10+"k":e;return Ds(Ds({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function Is(t){return t/360+.5}function zs(t){const e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function Zs(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}function Ds(t,e){for(const r in e)t[r]=e[r];return t}function Fs(t){return t.x}function Rs(t){return t.y}class Ns extends l{constructor(t){var{maxZoom:r,radius:n=60}=t,o=e(t,["maxZoom","radius"]);super({maxZoom:r}),this.superCluster=new js(Object.assign({maxZoom:this.maxZoom,radius:n},o)),this.state={zoom:null}}calculate(t){let e=!1;if(!so(t.markers,this.markers)){e=!0,this.markers=[...t.markers];const n=this.markers.map((t=>({type:"Feature",geometry:{type:"Point",coordinates:[r.getPosition(t).lng(),r.getPosition(t).lat()]},properties:{marker:t}})));this.superCluster.load(n)}const n={zoom:t.map.getZoom()};return e||this.state.zoom>this.maxZoom&&n.zoom>this.maxZoom||(e=e||!so(this.state,n)),this.state=n,e&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:e}}cluster(t){let{map:e}=t;return this.superCluster.getClusters([-180,-90,180,90],Math.round(e.getZoom())).map(this.transformCluster.bind(this))}transformCluster(t){let{geometry:{coordinates:[e,o]},properties:i}=t;if(i.cluster)return new n({markers:this.superCluster.getLeaves(i.cluster_id,1/0).map((t=>t.properties.marker)),position:new google.maps.LatLng({lat:o,lng:e})});{const t=i.marker;return new n({markers:[t],position:r.getPosition(t)})}}}class Gs{constructor(t,e){this.markers={sum:t.length};const r=e.map((t=>t.count)),n=r.reduce(((t,e)=>t+e),0);this.clusters={count:e.length,markers:{mean:n/e.length,sum:n,min:Math.min(...r),max:Math.max(...r)}}}}class Bs{render(t,e,r){let{count:n,position:o}=t;const i=n>Math.max(10,e.clusters.markers.mean)?"#ff0000":"#0000ff",s='<svg fill="'.concat(i,'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240">\n <circle cx="120" cy="120" opacity=".6" r="70" />\n <circle cx="120" cy="120" opacity=".3" r="90" />\n <circle cx="120" cy="120" opacity=".2" r="110" />\n </svg>'),a="Cluster of ".concat(n," markers"),u=Number(google.maps.Marker.MAX_ZINDEX)+n;if(google.maps.marker&&r.getMapCapabilities().isAdvancedMarkersAvailable){const t=document.createElement("div");t.innerHTML=s;const e=t.firstElementChild;e.setAttribute("width","50"),e.setAttribute("height","50");const i=document.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("x","50%"),i.setAttribute("y","50%"),i.setAttribute("style","fill: #FFF"),i.setAttribute("text-anchor","middle"),i.setAttribute("font-size","50"),i.setAttribute("dominant-baseline","middle"),i.appendChild(document.createTextNode("".concat(n))),e.appendChild(i);const c={map:r,position:o,zIndex:u,title:a,content:t.firstElementChild};return new google.maps.marker.AdvancedMarkerView(c)}const c={position:o,zIndex:u,title:a,icon:{url:"data:image/svg+xml;base64,".concat(window.btoa(s)),scaledSize:new google.maps.Size(45,45)},label:{text:String(n),color:"rgba(255,255,255,0.9)",fontSize:"12px"}};return new google.maps.Marker(c)}}class Vs{constructor(){!function(t,e){for(let r in e.prototype)t.prototype[r]=e.prototype[r]}(Vs,google.maps.OverlayView)}}t.MarkerClustererEvents=void 0,(Ls=t.MarkerClustererEvents||(t.MarkerClustererEvents={})).CLUSTERING_BEGIN="clusteringbegin",Ls.CLUSTERING_END="clusteringend",Ls.CLUSTER_CLICK="click";const Us=(t,e,r)=>{r.fitBounds(e.bounds)};return t.AbstractAlgorithm=l,t.AbstractViewportAlgorithm=p,t.Cluster=n,t.ClusterStats=Gs,t.DefaultRenderer=Bs,t.GridAlgorithm=class extends p{constructor(t){var{maxDistance:r=4e4,gridSize:n=40}=t;super(e(t,["maxDistance","gridSize"])),this.clusters=[],this.maxDistance=r,this.gridSize=n,this.state={zoom:null}}calculate(t){let{markers:e,map:r,mapCanvasProjection:n}=t;const i={zoom:r.getZoom()};let s=!1;return this.state.zoom>this.maxZoom&&i.zoom>this.maxZoom||(s=!so(this.state,i)),this.state=i,r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e,map:r,mapCanvasProjection:n}),changed:s}:{clusters:this.cluster({markers:o(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}cluster(t){let{markers:e,map:r,mapCanvasProjection:n}=t;return this.clusters=[],e.forEach((t=>{this.addToClosestCluster(t,r,n)})),this.clusters}addToClosestCluster(t,e,o){let a=this.maxDistance,u=null;for(let e=0;e<this.clusters.length;e++){const n=this.clusters[e],o=s(n.bounds.getCenter().toJSON(),r.getPosition(t).toJSON());o<a&&(a=o,u=n)}if(u&&i(u.bounds,o,this.gridSize).contains(r.getPosition(t)))u.push(t);else{const e=new n({markers:[t]});this.clusters.push(e)}}},t.MarkerClusterer=class extends Vs{constructor(t){let{map:e,markers:r=[],algorithm:n=new Ns({}),renderer:o=new Bs,onClusterClick:i=Us}=t;super(),this.markers=[...r],this.clusters=[],this.algorithm=n,this.renderer=o,this.onClusterClick=i,e&&this.setMap(e)}addMarker(t,e){this.markers.includes(t)||(this.markers.push(t),e||this.render())}addMarkers(t,e){t.forEach((t=>{this.addMarker(t,!0)})),e||this.render()}removeMarker(t,e){const n=this.markers.indexOf(t);return-1!==n&&(r.setMap(t,null),this.markers.splice(n,1),e||this.render(),!0)}removeMarkers(t,e){let r=!1;return t.forEach((t=>{r=this.removeMarker(t,!0)||r})),r&&!e&&this.render(),r}clearMarkers(t){this.markers.length=0,t||this.render()}render(){const e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_BEGIN,this),this.markers.forEach((t=>{t.addListener("animation_changed",(()=>{console.log("animation_changed")}))}));const{clusters:r,changed:n}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});(n||null==n)&&(this.reset(),this.clusters=r,this.renderClusters()),google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach((t=>r.setMap(t,null))),this.clusters.forEach((t=>t.delete())),this.clusters=[]}renderClusters(){const e=new Gs(this.markers,this.clusters),n=this.getMap();this.clusters.forEach((o=>{1===o.markers.length?o.marker=o.markers[0]:(o.marker=this.renderer.render(o,e,n),this.onClusterClick&&o.marker.addListener("click",(e=>{google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTER_CLICK,o),this.onClusterClick(e,o,n)}))),r.setMap(o.marker,n)}))}},t.NoopAlgorithm=class extends l{constructor(t){super(e(t,[]))}calculate(t){let{markers:e,map:r,mapCanvasProjection:n}=t;return{clusters:this.cluster({markers:e,map:r,mapCanvasProjection:n}),changed:!1}}cluster(t){return this.noop(t)}},t.SuperClusterAlgorithm=Ns,t.defaultOnClusterClickHandler=Us,t.distanceBetweenPoints=s,t.extendBoundsToPaddedViewport=i,t.extendPixelBounds=u,t.filterMarkersToPaddedViewport=o,t.noop=h,t.pixelBoundsToLatLngBounds=c,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
var markerClusterer=function(t){"use strict";function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,"symbol"==typeof(i=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"))?i:String(i)),n)}var o,i}function n(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=i(t);if(e){var o=i(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return s(this,r)}}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||f(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||f(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){if(t){if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function m(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var d=function(t){return t&&t.Math==Math&&t},g=d("object"==typeof globalThis&&globalThis)||d("object"==typeof window&&window)||d("object"==typeof self&&self)||d("object"==typeof h&&h)||function(){return this}()||h||Function("return this")(),v={},y=function(t){try{return!!t()}catch(t){return!0}},b=!y((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),w=!y((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),k=w,O=Function.prototype.call,S=k?O.bind(O):function(){return O.apply(O,arguments)},M={},x={}.propertyIsEnumerable,P=Object.getOwnPropertyDescriptor,j=P&&!x.call({1:2},1);M.f=j?function(t){var e=P(this,t);return!!e&&e.enumerable}:x;var E,C,L=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},_=w,A=Function.prototype,T=A.call,I=_&&A.bind.bind(T,T),N=_?I:function(t){return function(){return T.apply(t,arguments)}},z=N,F=z({}.toString),R=z("".slice),D=function(t){return R(F(t),8,-1)},Z=y,G=D,V=Object,B=N("".split),U=Z((function(){return!V("z").propertyIsEnumerable(0)}))?function(t){return"String"==G(t)?B(t,""):V(t)}:V,W=function(t){return null==t},H=W,q=TypeError,X=function(t){if(H(t))throw q("Can't call method on "+t);return t},$=U,J=X,K=function(t){return $(J(t))},Y="object"==typeof document&&document.all,Q={all:Y,IS_HTMLDDA:void 0===Y&&void 0!==Y},tt=Q.all,et=Q.IS_HTMLDDA?function(t){return"function"==typeof t||t===tt}:function(t){return"function"==typeof t},rt=et,nt=Q.all,ot=Q.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:rt(t)||t===nt}:function(t){return"object"==typeof t?null!==t:rt(t)},it=g,at=et,st=function(t,e){return arguments.length<2?(r=it[t],at(r)?r:void 0):it[t]&&it[t][e];var r},ut=N({}.isPrototypeOf),ct=g,lt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ft=ct.process,pt=ct.Deno,ht=ft&&ft.versions||pt&&pt.version,mt=ht&&ht.v8;mt&&(C=(E=mt.split("."))[0]>0&&E[0]<4?1:+(E[0]+E[1])),!C&&lt&&(!(E=lt.match(/Edge\/(\d+)/))||E[1]>=74)&&(E=lt.match(/Chrome\/(\d+)/))&&(C=+E[1]);var dt=C,gt=dt,vt=y,yt=g.String,bt=!!Object.getOwnPropertySymbols&&!vt((function(){var t=Symbol();return!yt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&gt&&gt<41})),wt=bt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,kt=st,Ot=et,St=ut,Mt=Object,xt=wt?function(t){return"symbol"==typeof t}:function(t){var e=kt("Symbol");return Ot(e)&&St(e.prototype,Mt(t))},Pt=String,jt=function(t){try{return Pt(t)}catch(t){return"Object"}},Et=et,Ct=jt,Lt=TypeError,_t=function(t){if(Et(t))return t;throw Lt(Ct(t)+" is not a function")},At=_t,Tt=W,It=S,Nt=et,zt=ot,Ft=TypeError,Rt={exports:{}},Dt=g,Zt=Object.defineProperty,Gt=function(t,e){try{Zt(Dt,t,{value:e,configurable:!0,writable:!0})}catch(r){Dt[t]=e}return e},Vt=Gt,Bt="__core-js_shared__",Ut=g[Bt]||Vt(Bt,{}),Wt=Ut;(Rt.exports=function(t,e){return Wt[t]||(Wt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Ht=Rt.exports,qt=X,Xt=Object,$t=function(t){return Xt(qt(t))},Jt=$t,Kt=N({}.hasOwnProperty),Yt=Object.hasOwn||function(t,e){return Kt(Jt(t),e)},Qt=N,te=0,ee=Math.random(),re=Qt(1..toString),ne=function(t){return"Symbol("+(void 0===t?"":t)+")_"+re(++te+ee,36)},oe=Ht,ie=Yt,ae=ne,se=bt,ue=wt,ce=g.Symbol,le=oe("wks"),fe=ue?ce.for||ce:ce&&ce.withoutSetter||ae,pe=function(t){return ie(le,t)||(le[t]=se&&ie(ce,t)?ce[t]:fe("Symbol."+t)),le[t]},he=S,me=ot,de=xt,ge=function(t,e){var r=t[e];return Tt(r)?void 0:At(r)},ve=function(t,e){var r,n;if("string"===e&&Nt(r=t.toString)&&!zt(n=It(r,t)))return n;if(Nt(r=t.valueOf)&&!zt(n=It(r,t)))return n;if("string"!==e&&Nt(r=t.toString)&&!zt(n=It(r,t)))return n;throw Ft("Can't convert object to primitive value")},ye=TypeError,be=pe("toPrimitive"),we=function(t,e){if(!me(t)||de(t))return t;var r,n=ge(t,be);if(n){if(void 0===e&&(e="default"),r=he(n,t,e),!me(r)||de(r))return r;throw ye("Can't convert object to primitive value")}return void 0===e&&(e="number"),ve(t,e)},ke=we,Oe=xt,Se=function(t){var e=ke(t,"string");return Oe(e)?e:e+""},Me=ot,xe=g.document,Pe=Me(xe)&&Me(xe.createElement),je=function(t){return Pe?xe.createElement(t):{}},Ee=je,Ce=!b&&!y((function(){return 7!=Object.defineProperty(Ee("div"),"a",{get:function(){return 7}}).a})),Le=b,_e=S,Ae=M,Te=L,Ie=K,Ne=Se,ze=Yt,Fe=Ce,Re=Object.getOwnPropertyDescriptor;v.f=Le?Re:function(t,e){if(t=Ie(t),e=Ne(e),Fe)try{return Re(t,e)}catch(t){}if(ze(t,e))return Te(!_e(Ae.f,t,e),t[e])};var De={},Ze=b&&y((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ge=ot,Ve=String,Be=TypeError,Ue=function(t){if(Ge(t))return t;throw Be(Ve(t)+" is not an object")},We=b,He=Ce,qe=Ze,Xe=Ue,$e=Se,Je=TypeError,Ke=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,Qe="enumerable",tr="configurable",er="writable";De.f=We?qe?function(t,e,r){if(Xe(t),e=$e(e),Xe(r),"function"==typeof t&&"prototype"===e&&"value"in r&&er in r&&!r[er]){var n=Ye(t,e);n&&n[er]&&(t[e]=r.value,r={configurable:tr in r?r[tr]:n[tr],enumerable:Qe in r?r[Qe]:n[Qe],writable:!1})}return Ke(t,e,r)}:Ke:function(t,e,r){if(Xe(t),e=$e(e),Xe(r),He)try{return Ke(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Je("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var rr=De,nr=L,or=b?function(t,e,r){return rr.f(t,e,nr(1,r))}:function(t,e,r){return t[e]=r,t},ir={exports:{}},ar=b,sr=Yt,ur=Function.prototype,cr=ar&&Object.getOwnPropertyDescriptor,lr=sr(ur,"name"),fr={EXISTS:lr,PROPER:lr&&"something"===function(){}.name,CONFIGURABLE:lr&&(!ar||ar&&cr(ur,"name").configurable)},pr=et,hr=Ut,mr=N(Function.toString);pr(hr.inspectSource)||(hr.inspectSource=function(t){return mr(t)});var dr,gr,vr,yr=hr.inspectSource,br=et,wr=g.WeakMap,kr=br(wr)&&/native code/.test(String(wr)),Or=ne,Sr=Ht("keys"),Mr=function(t){return Sr[t]||(Sr[t]=Or(t))},xr={},Pr=kr,jr=g,Er=ot,Cr=or,Lr=Yt,_r=Ut,Ar=Mr,Tr=xr,Ir="Object already initialized",Nr=jr.TypeError,zr=jr.WeakMap;if(Pr||_r.state){var Fr=_r.state||(_r.state=new zr);Fr.get=Fr.get,Fr.has=Fr.has,Fr.set=Fr.set,dr=function(t,e){if(Fr.has(t))throw Nr(Ir);return e.facade=t,Fr.set(t,e),e},gr=function(t){return Fr.get(t)||{}},vr=function(t){return Fr.has(t)}}else{var Rr=Ar("state");Tr[Rr]=!0,dr=function(t,e){if(Lr(t,Rr))throw Nr(Ir);return e.facade=t,Cr(t,Rr,e),e},gr=function(t){return Lr(t,Rr)?t[Rr]:{}},vr=function(t){return Lr(t,Rr)}}var Dr={set:dr,get:gr,has:vr,enforce:function(t){return vr(t)?gr(t):dr(t,{})},getterFor:function(t){return function(e){var r;if(!Er(e)||(r=gr(e)).type!==t)throw Nr("Incompatible receiver, "+t+" required");return r}}},Zr=N,Gr=y,Vr=et,Br=Yt,Ur=b,Wr=fr.CONFIGURABLE,Hr=yr,qr=Dr.enforce,Xr=Dr.get,$r=String,Jr=Object.defineProperty,Kr=Zr("".slice),Yr=Zr("".replace),Qr=Zr([].join),tn=Ur&&!Gr((function(){return 8!==Jr((function(){}),"length",{value:8}).length})),en=String(String).split("String"),rn=ir.exports=function(t,e,r){"Symbol("===Kr($r(e),0,7)&&(e="["+Yr($r(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Br(t,"name")||Wr&&t.name!==e)&&(Ur?Jr(t,"name",{value:e,configurable:!0}):t.name=e),tn&&r&&Br(r,"arity")&&t.length!==r.arity&&Jr(t,"length",{value:r.arity});try{r&&Br(r,"constructor")&&r.constructor?Ur&&Jr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=qr(t);return Br(n,"source")||(n.source=Qr(en,"string"==typeof e?e:"")),t};Function.prototype.toString=rn((function(){return Vr(this)&&Xr(this).source||Hr(this)}),"toString");var nn=ir.exports,on=et,an=De,sn=nn,un=Gt,cn=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(on(r)&&sn(r,i,n),n.global)o?t[e]=r:un(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:an.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},ln={},fn=Math.ceil,pn=Math.floor,hn=Math.trunc||function(t){var e=+t;return(e>0?pn:fn)(e)},mn=function(t){var e=+t;return e!=e||0===e?0:hn(e)},dn=mn,gn=Math.max,vn=Math.min,yn=function(t,e){var r=dn(t);return r<0?gn(r+e,0):vn(r,e)},bn=mn,wn=Math.min,kn=function(t){return t>0?wn(bn(t),9007199254740991):0},On=function(t){return kn(t.length)},Sn=K,Mn=yn,xn=On,Pn=function(t){return function(e,r,n){var o,i=Sn(e),a=xn(i),s=Mn(n,a);if(t&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===r)return t||s||0;return!t&&-1}},jn={includes:Pn(!0),indexOf:Pn(!1)},En=Yt,Cn=K,Ln=jn.indexOf,_n=xr,An=N([].push),Tn=function(t,e){var r,n=Cn(t),o=0,i=[];for(r in n)!En(_n,r)&&En(n,r)&&An(i,r);for(;e.length>o;)En(n,r=e[o++])&&(~Ln(i,r)||An(i,r));return i},In=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nn=Tn,zn=In.concat("length","prototype");ln.f=Object.getOwnPropertyNames||function(t){return Nn(t,zn)};var Fn={};Fn.f=Object.getOwnPropertySymbols;var Rn=st,Dn=ln,Zn=Fn,Gn=Ue,Vn=N([].concat),Bn=Rn("Reflect","ownKeys")||function(t){var e=Dn.f(Gn(t)),r=Zn.f;return r?Vn(e,r(t)):e},Un=Yt,Wn=Bn,Hn=v,qn=De,Xn=y,$n=et,Jn=/#|\.prototype\./,Kn=function(t,e){var r=Qn[Yn(t)];return r==eo||r!=to&&($n(e)?Xn(e):!!e)},Yn=Kn.normalize=function(t){return String(t).replace(Jn,".").toLowerCase()},Qn=Kn.data={},to=Kn.NATIVE="N",eo=Kn.POLYFILL="P",ro=Kn,no=g,oo=v.f,io=or,ao=cn,so=Gt,uo=function(t,e,r){for(var n=Wn(e),o=qn.f,i=Hn.f,a=0;a<n.length;a++){var s=n[a];Un(t,s)||r&&Un(r,s)||o(t,s,i(e,s))}},co=ro,lo=function(t,e){var r,n,o,i,a,s=t.target,u=t.global,c=t.stat;if(r=u?no:c?no[s]||so(s,{}):(no[s]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=oo(r,n))&&a.value:r[n],!co(u?n:s+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;uo(i,o)}(t.sham||o&&o.sham)&&io(i,"sham",!0),ao(r,n,i,t)}},fo=D,po=N,ho=function(t){if("Function"===fo(t))return po(t)},mo=_t,go=w,vo=ho(ho.bind),yo=D,bo=Array.isArray||function(t){return"Array"==yo(t)},wo={};wo[pe("toStringTag")]="z";var ko="[object z]"===String(wo),Oo=ko,So=et,Mo=D,xo=pe("toStringTag"),Po=Object,jo="Arguments"==Mo(function(){return arguments}()),Eo=Oo?Mo: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=Po(t),xo))?r:jo?Mo(e):"Object"==(n=Mo(e))&&So(e.callee)?"Arguments":n},Co=N,Lo=y,_o=et,Ao=Eo,To=yr,Io=function(){},No=[],zo=st("Reflect","construct"),Fo=/^\s*(?:class|function)\b/,Ro=Co(Fo.exec),Do=!Fo.exec(Io),Zo=function(t){if(!_o(t))return!1;try{return zo(Io,No,t),!0}catch(t){return!1}},Go=function(t){if(!_o(t))return!1;switch(Ao(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Do||!!Ro(Fo,To(t))}catch(t){return!0}};Go.sham=!0;var Vo=!zo||Lo((function(){var t;return Zo(Zo.call)||!Zo(Object)||!Zo((function(){t=!0}))||t}))?Go:Zo,Bo=bo,Uo=Vo,Wo=ot,Ho=pe("species"),qo=Array,Xo=function(t){var e;return Bo(t)&&(e=t.constructor,(Uo(e)&&(e===qo||Bo(e.prototype))||Wo(e)&&null===(e=e[Ho]))&&(e=void 0)),void 0===e?qo:e},$o=function(t,e){return new(Xo(t))(0===e?0:e)},Jo=function(t,e){return mo(t),void 0===e?t:go?vo(t,e):function(){return t.apply(e,arguments)}},Ko=U,Yo=$t,Qo=On,ti=$o,ei=N([].push),ri=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,s=5==t||i;return function(u,c,l,f){for(var p,h,m=Yo(u),d=Ko(m),g=Jo(c,l),v=Qo(d),y=0,b=f||ti,w=e?b(u,v):r||a?b(u,0):void 0;v>y;y++)if((s||y in d)&&(h=g(p=d[y],y,m),t))if(e)w[y]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return y;case 2:ei(w,p)}else switch(t){case 4:return!1;case 7:ei(w,p)}return i?-1:n||o?o:w}},ni={forEach:ri(0),map:ri(1),filter:ri(2),some:ri(3),every:ri(4),find:ri(5),findIndex:ri(6),filterReject:ri(7)},oi=y,ii=dt,ai=pe("species"),si=function(t){return ii>=51||!oi((function(){var e=[];return(e.constructor={})[ai]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ui=ni.map;function ci(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}lo({target:"Array",proto:!0,forced:!si("map")},{map:function(t){return ui(this,t,arguments.length>1?arguments[1]:void 0)}});var li=_t,fi=$t,pi=U,hi=On,mi=TypeError,di=function(t){return function(e,r,n,o){li(r);var i=fi(e),a=pi(i),s=hi(i),u=t?s-1:0,c=t?-1:1;if(n<2)for(;;){if(u in a){o=a[u],u+=c;break}if(u+=c,t?u<0:s<=u)throw mi("Reduce of empty array with no initial value")}for(;t?u>=0:s>u;u+=c)u in a&&(o=r(o,a[u],u,i));return o}},gi={left:di(!1),right:di(!0)},vi=y,yi=function(t,e){var r=[][t];return!!r&&vi((function(){r.call(null,e||function(){return 1},1)}))},bi="undefined"!=typeof process&&"process"==D(process),wi=gi.left;lo({target:"Array",proto:!0,forced:!bi&&dt>79&&dt<83||!yi("reduce")},{reduce:function(t){var e=arguments.length;return wi(this,t,e,e>1?arguments[1]:void 0)}});var ki=Eo,Oi=ko?{}.toString:function(){return"[object "+ki(this)+"]"};ko||cn(Object.prototype,"toString",Oi,{unsafe:!0});var Si=ni.filter;lo({target:"Array",proto:!0,forced:!si("filter")},{filter:function(t){return Si(this,t,arguments.length>1?arguments[1]:void 0)}});var Mi=function(){function t(){e(this,t)}return n(t,null,[{key:"isAdvancedMarker",value:function(t){return t instanceof google.maps.marker.AdvancedMarkerElement}},{key:"setMap",value:function(t,e){this.isAdvancedMarker(t)?t.map=e:t.setMap(e)}},{key:"getPosition",value:function(t){if(this.isAdvancedMarker(t)){if(t.position){if(t.position instanceof google.maps.LatLng)return t.position;if(t.position.lat&&t.position.lng)return new google.maps.LatLng(t.position.lat,t.position.lng)}return new google.maps.LatLng(null)}return t.getPosition()}},{key:"getVisible",value:function(t){return!!this.isAdvancedMarker(t)||t.getVisible()}}]),t}(),xi=function(){function t(r){var n=r.markers,o=r.position;e(this,t),this.markers=n,o&&(o instanceof google.maps.LatLng?this._position=o:this._position=new google.maps.LatLng(o))}return n(t,[{key:"bounds",get:function(){if(0!==this.markers.length||this._position)return this.markers.reduce((function(t,e){return t.extend(Mi.getPosition(e))}),new google.maps.LatLngBounds(this._position,this._position))}},{key:"position",get:function(){return this._position||this.bounds.getCenter()}},{key:"count",get:function(){return this.markers.filter((function(t){return Mi.getVisible(t)})).length}},{key:"push",value:function(t){this.markers.push(t)}},{key:"delete",value:function(){this.marker&&(Mi.setMap(this.marker,null),delete this.marker),this.markers.length=0}}]),t}(),Pi=function(t,e,r,n){var o=ji(t.getBounds(),e,n);return r.filter((function(t){return o.contains(Mi.getPosition(t))}))},ji=function(t,e,r){var n=Ci(t,e),o=n.northEast,i=n.southWest,a=Li({northEast:o,southWest:i},r);return _i(a,e)},Ei=function(t,e){var r=(e.lat-t.lat)*Math.PI/180,n=(e.lng-t.lng)*Math.PI/180,o=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(o),Math.sqrt(1-o)))},Ci=function(t,e){return{northEast:e.fromLatLngToDivPixel(t.getNorthEast()),southWest:e.fromLatLngToDivPixel(t.getSouthWest())}},Li=function(t,e){var r=t.northEast,n=t.southWest;return r.x+=e,r.y-=e,n.x-=e,n.y+=e,{northEast:r,southWest:n}},_i=function(t,e){var r=t.northEast,n=t.southWest,o=new google.maps.LatLngBounds;return o.extend(e.fromDivPixelToLatLng(r)),o.extend(e.fromDivPixelToLatLng(n)),o},Ai=function(){function t(r){var n=r.maxZoom,o=void 0===n?16:n;e(this,t),this.maxZoom=o}return n(t,[{key:"noop",value:function(t){var e=t.markers;return Ii(e)}}]),t}(),Ti=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.viewportPadding,a=void 0===o?60:o,s=ci(t,["viewportPadding"]);return(n=r.call(this,s)).viewportPadding=60,n.viewportPadding=a,n}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection;return r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e,map:r,mapCanvasProjection:n}),changed:!1}:{clusters:this.cluster({markers:Pi(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}}]),i}(Ai),Ii=function(t){return t.map((function(t){return new xi({position:Mi.getPosition(t),markers:[t]})}))},Ni=je("span").classList,zi=Ni&&Ni.constructor&&Ni.constructor.prototype,Fi=zi===Object.prototype?void 0:zi,Ri=ni.forEach,Di=yi("forEach")?[].forEach:function(t){return Ri(this,t,arguments.length>1?arguments[1]:void 0)},Zi=g,Gi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Vi=Fi,Bi=Di,Ui=or,Wi=function(t){if(t&&t.forEach!==Bi)try{Ui(t,"forEach",Bi)}catch(e){t.forEach=Bi}};for(var Hi in Gi)Gi[Hi]&&Wi(Zi[Hi]&&Zi[Hi].prototype);Wi(Vi);var qi=S;lo({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return qi(URL.prototype.toString,this)}});var Xi=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(o=n;0!=o--;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var a=i[o];if(!t(e[a],r[a]))return!1}return!0}return e!=e&&r!=r},$i=m(Xi),Ji=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.maxDistance,a=void 0===o?4e4:o,s=t.gridSize,u=void 0===s?40:s,c=ci(t,["maxDistance","gridSize"]);return(n=r.call(this,c)).clusters=[],n.maxDistance=a,n.gridSize=u,n.state={zoom:null},n}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection,o={zoom:r.getZoom()},i=!1;return this.state.zoom>this.maxZoom&&o.zoom>this.maxZoom||(i=!$i(this.state,o)),this.state=o,r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e,map:r,mapCanvasProjection:n}),changed:i}:{clusters:this.cluster({markers:Pi(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}},{key:"cluster",value:function(t){var e=this,r=t.markers,n=t.map,o=t.mapCanvasProjection;return this.clusters=[],r.forEach((function(t){e.addToClosestCluster(t,n,o)})),this.clusters}},{key:"addToClosestCluster",value:function(t,e,r){for(var n=this.maxDistance,o=null,i=0;i<this.clusters.length;i++){var a=this.clusters[i],s=Ei(a.bounds.getCenter().toJSON(),Mi.getPosition(t).toJSON());s<n&&(n=s,o=a)}if(o&&ji(o.bounds,r,this.gridSize).contains(Mi.getPosition(t)))o.push(t);else{var u=new xi({markers:[t]});this.clusters.push(u)}}}]),i}(Ti),Ki=function(t){o(i,t);var r=u(i);function i(t){e(this,i);var n=ci(t,[]);return r.call(this,n)}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection;return{clusters:this.cluster({markers:e,map:r,mapCanvasProjection:n}),changed:!1}}},{key:"cluster",value:function(t){return this.noop(t)}}]),i}(Ai),Yi=Tn,Qi=In,ta=Object.keys||function(t){return Yi(t,Qi)},ea=b,ra=N,na=S,oa=y,ia=ta,aa=Fn,sa=M,ua=$t,ca=U,la=Object.assign,fa=Object.defineProperty,pa=ra([].concat),ha=!la||oa((function(){if(ea&&1!==la({b:1},la(fa({},"a",{enumerable:!0,get:function(){fa(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=la({},t)[r]||ia(la({},e)).join("")!=n}))?function(t,e){for(var r=ua(t),n=arguments.length,o=1,i=aa.f,a=sa.f;n>o;)for(var s,u=ca(arguments[o++]),c=i?pa(ia(u),i(u)):ia(u),l=c.length,f=0;l>f;)s=c[f++],ea&&!na(a,u,s)||(r[s]=u[s]);return r}:la,ma=ha;function da(t,e,r,n,o,i){if(o-n<=r)return;const a=n+o>>1;ga(t,e,a,n,o,i%2),da(t,e,r,n,a-1,i+1),da(t,e,r,a+1,o,i+1)}function ga(t,e,r,n,o,i){for(;o>n;){if(o-n>600){const a=o-n+1,s=r-n+1,u=Math.log(a),c=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*c*(a-c)/a)*(s-a/2<0?-1:1);ga(t,e,r,Math.max(n,Math.floor(r-s*c/a+l)),Math.min(o,Math.floor(r+(a-s)*c/a+l)),i)}const a=e[2*r+i];let s=n,u=o;for(va(t,e,n,r),e[2*o+i]>a&&va(t,e,n,o);s<u;){for(va(t,e,s,u),s++,u--;e[2*s+i]<a;)s++;for(;e[2*u+i]>a;)u--}e[2*n+i]===a?va(t,e,n,u):(u++,va(t,e,u,o)),u<=r&&(n=u+1),r<=u&&(o=u-1)}}function va(t,e,r,n){ya(t,r,n),ya(e,2*r,2*n),ya(e,2*r+1,2*n+1)}function ya(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function ba(t,e,r,n){const o=t-r,i=e-n;return o*o+i*i}lo({target:"Object",stat:!0,arity:2,forced:Object.assign!==ma},{assign:ma});const wa=t=>t[0],ka=t=>t[1];class Oa{constructor(t,e=wa,r=ka,n=64,o=Float64Array){this.nodeSize=n,this.points=t;const i=t.length<65536?Uint16Array:Uint32Array,a=this.ids=new i(t.length),s=this.coords=new o(2*t.length);for(let n=0;n<t.length;n++)a[n]=n,s[2*n]=e(t[n]),s[2*n+1]=r(t[n]);da(a,s,n,0,a.length-1,0)}range(t,e,r,n){return function(t,e,r,n,o,i,a){const s=[0,t.length-1,0],u=[];let c,l;for(;s.length;){const f=s.pop(),p=s.pop(),h=s.pop();if(p-h<=a){for(let a=h;a<=p;a++)c=e[2*a],l=e[2*a+1],c>=r&&c<=o&&l>=n&&l<=i&&u.push(t[a]);continue}const m=Math.floor((h+p)/2);c=e[2*m],l=e[2*m+1],c>=r&&c<=o&&l>=n&&l<=i&&u.push(t[m]);const d=(f+1)%2;(0===f?r<=c:n<=l)&&(s.push(h),s.push(m-1),s.push(d)),(0===f?o>=c:i>=l)&&(s.push(m+1),s.push(p),s.push(d))}return u}(this.ids,this.coords,t,e,r,n,this.nodeSize)}within(t,e,r){return function(t,e,r,n,o,i){const a=[0,t.length-1,0],s=[],u=o*o;for(;a.length;){const c=a.pop(),l=a.pop(),f=a.pop();if(l-f<=i){for(let o=f;o<=l;o++)ba(e[2*o],e[2*o+1],r,n)<=u&&s.push(t[o]);continue}const p=Math.floor((f+l)/2),h=e[2*p],m=e[2*p+1];ba(h,m,r,n)<=u&&s.push(t[p]);const d=(c+1)%2;(0===c?r-o<=h:n-o<=m)&&(a.push(f),a.push(p-1),a.push(d)),(0===c?r+o>=h:n+o>=m)&&(a.push(p+1),a.push(l),a.push(d))}return s}(this.ids,this.coords,t,e,r,this.nodeSize)}}const Sa={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},Ma=Math.fround||(xa=new Float32Array(1),t=>(xa[0]=+t,xa[0]));var xa;class Pa{constructor(t){this.options=Ia(Object.create(Sa),t),this.trees=new Array(this.options.maxZoom+1)}load(t){const{log:e,minZoom:r,maxZoom:n,nodeSize:o}=this.options;e&&console.time("total time");const i=`prepare ${t.length} points`;e&&console.time(i),this.points=t;let a=[];for(let e=0;e<t.length;e++)t[e].geometry&&a.push(Ea(t[e],e));this.trees[n+1]=new Oa(a,Na,za,o,Float32Array),e&&console.timeEnd(i);for(let t=n;t>=r;t--){const r=+Date.now();a=this._cluster(a,t),this.trees[t]=new Oa(a,Na,za,o,Float32Array),e&&console.log("z%d: %d clusters in %dms",t,a.length,+Date.now()-r)}return e&&console.timeEnd("total time"),this}getClusters(t,e){let r=((t[0]+180)%360+360)%360-180;const n=Math.max(-90,Math.min(90,t[1]));let o=180===t[2]?180:((t[2]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,o=180;else if(r>o){const t=this.getClusters([r,n,180,i],e),a=this.getClusters([-180,n,o,i],e);return t.concat(a)}const a=this.trees[this._limitZoom(e)],s=a.range(_a(r),Aa(i),_a(o),Aa(n)),u=[];for(const t of s){const e=a.points[t];u.push(e.numPoints?Ca(e):this.points[e.index])}return u}getChildren(t){const e=this._getOriginId(t),r=this._getOriginZoom(t),n="No cluster with the specified id.",o=this.trees[r];if(!o)throw new Error(n);const i=o.points[e];if(!i)throw new Error(n);const a=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=o.within(i.x,i.y,a),u=[];for(const e of s){const r=o.points[e];r.parentId===t&&u.push(r.numPoints?Ca(r):this.points[r.index])}if(0===u.length)throw new Error(n);return u}getLeaves(t,e,r){e=e||10,r=r||0;const n=[];return this._appendLeaves(n,t,e,r,0),n}getTile(t,e,r){const n=this.trees[this._limitZoom(t)],o=Math.pow(2,t),{extent:i,radius:a}=this.options,s=a/i,u=(r-s)/o,c=(r+1+s)/o,l={features:[]};return this._addTileFeatures(n.range((e-s)/o,u,(e+1+s)/o,c),n.points,e,r,o,l),0===e&&this._addTileFeatures(n.range(1-s/o,u,1,c),n.points,o,r,o,l),e===o-1&&this._addTileFeatures(n.range(0,u,s/o,c),n.points,-1,r,o,l),l.features.length?l:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){const r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e}_appendLeaves(t,e,r,n,o){const i=this.getChildren(e);for(const e of i){const i=e.properties;if(i&&i.cluster?o+i.point_count<=n?o+=i.point_count:o=this._appendLeaves(t,i.cluster_id,r,n,o):o<n?o++:t.push(e),t.length===r)break}return o}_addTileFeatures(t,e,r,n,o,i){for(const a of t){const t=e[a],s=t.numPoints;let u,c,l;if(s)u=La(t),c=t.x,l=t.y;else{const e=this.points[t.index];u=e.properties,c=_a(e.geometry.coordinates[0]),l=Aa(e.geometry.coordinates[1])}const f={type:1,geometry:[[Math.round(this.options.extent*(c*o-r)),Math.round(this.options.extent*(l*o-n))]],tags:u};let p;s?p=t.id:this.options.generateId?p=t.index:this.points[t.index].id&&(p=this.points[t.index].id),void 0!==p&&(f.id=p),i.features.push(f)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){const r=[],{radius:n,extent:o,reduce:i,minPoints:a}=this.options,s=n/(o*Math.pow(2,e));for(let n=0;n<t.length;n++){const o=t[n];if(o.zoom<=e)continue;o.zoom=e;const u=this.trees[e+1],c=u.within(o.x,o.y,s),l=o.numPoints||1;let f=l;for(const t of c){const r=u.points[t];r.zoom>e&&(f+=r.numPoints||1)}if(f>l&&f>=a){let t=o.x*l,a=o.y*l,s=i&&l>1?this._map(o,!0):null;const p=(n<<5)+(e+1)+this.points.length;for(const r of c){const n=u.points[r];if(n.zoom<=e)continue;n.zoom=e;const c=n.numPoints||1;t+=n.x*c,a+=n.y*c,n.parentId=p,i&&(s||(s=this._map(o,!0)),i(s,this._map(n)))}o.parentId=p,r.push(ja(t/f,a/f,p,f,s))}else if(r.push(o),f>1)for(const t of c){const n=u.points[t];n.zoom<=e||(n.zoom=e,r.push(n))}}return r}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e){if(t.numPoints)return e?Ia({},t.properties):t.properties;const r=this.points[t.index].properties,n=this.options.map(r);return e&&n===r?Ia({},n):n}}function ja(t,e,r,n,o){return{x:Ma(t),y:Ma(e),zoom:1/0,id:r,parentId:-1,numPoints:n,properties:o}}function Ea(t,e){const[r,n]=t.geometry.coordinates;return{x:Ma(_a(r)),y:Ma(Aa(n)),zoom:1/0,index:e,parentId:-1}}function Ca(t){return{type:"Feature",id:t.id,properties:La(t),geometry:{type:"Point",coordinates:[(e=t.x,360*(e-.5)),Ta(t.y)]}};var e}function La(t){const e=t.numPoints,r=e>=1e4?`${Math.round(e/1e3)}k`:e>=1e3?Math.round(e/100)/10+"k":e;return Ia(Ia({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function _a(t){return t/360+.5}function Aa(t){const e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function Ta(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}function Ia(t,e){for(const r in e)t[r]=e[r];return t}function Na(t){return t.x}function za(t){return t.y}var Fa=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.maxZoom,a=t.radius,s=void 0===a?60:a,u=ci(t,["maxZoom","radius"]);return(n=r.call(this,{maxZoom:o})).superCluster=new Pa(Object.assign({maxZoom:n.maxZoom,radius:s},u)),n.state={zoom:null},n}return n(i,[{key:"calculate",value:function(t){var e=!1;if(!$i(t.markers,this.markers)){e=!0,this.markers=l(t.markers);var r=this.markers.map((function(t){return{type:"Feature",geometry:{type:"Point",coordinates:[Mi.getPosition(t).lng(),Mi.getPosition(t).lat()]},properties:{marker:t}}}));this.superCluster.load(r)}var n={zoom:t.map.getZoom()};return e||this.state.zoom>this.maxZoom&&n.zoom>this.maxZoom||(e=e||!$i(this.state,n)),this.state=n,e&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:e}}},{key:"cluster",value:function(t){var e=t.map;return this.superCluster.getClusters([-180,-90,180,90],Math.round(e.getZoom())).map(this.transformCluster.bind(this))}},{key:"transformCluster",value:function(t){var e=c(t.geometry.coordinates,2),r=e[0],n=e[1],o=t.properties;if(o.cluster)return new xi({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(t){return t.properties.marker})),position:new google.maps.LatLng({lat:n,lng:r})});var i=o.marker;return new xi({markers:[i],position:Mi.getPosition(i)})}}]),i}(Ai),Ra={},Da=b,Za=Ze,Ga=De,Va=Ue,Ba=K,Ua=ta;Ra.f=Da&&!Za?Object.defineProperties:function(t,e){Va(t);for(var r,n=Ba(e),o=Ua(e),i=o.length,a=0;i>a;)Ga.f(t,r=o[a++],n[r]);return t};var Wa,Ha=st("document","documentElement"),qa=Ue,Xa=Ra,$a=In,Ja=xr,Ka=Ha,Ya=je,Qa="prototype",ts="script",es=Mr("IE_PROTO"),rs=function(){},ns=function(t){return"<"+ts+">"+t+"</"+ts+">"},os=function(t){t.write(ns("")),t.close();var e=t.parentWindow.Object;return t=null,e},is=function(){try{Wa=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;is="undefined"!=typeof document?document.domain&&Wa?os(Wa):(e=Ya("iframe"),r="java"+ts+":",e.style.display="none",Ka.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(ns("document.F=Object")),t.close(),t.F):os(Wa);for(var n=$a.length;n--;)delete is[Qa][$a[n]];return is()};Ja[es]=!0;var as=pe,ss=Object.create||function(t,e){var r;return null!==t?(rs[Qa]=qa(t),r=new rs,rs[Qa]=null,r[es]=t):r=is(),void 0===e?r:Xa.f(r,e)},us=De.f,cs=as("unscopables"),ls=Array.prototype;null==ls[cs]&&us(ls,cs,{configurable:!0,value:ss(null)});var fs=jn.includes,ps=function(t){ls[cs][t]=!0};lo({target:"Array",proto:!0,forced:y((function(){return!Array(1).includes()}))},{includes:function(t){return fs(this,t,arguments.length>1?arguments[1]:void 0)}}),ps("includes");var hs=ot,ms=D,ds=pe("match"),gs=function(t){var e;return hs(t)&&(void 0!==(e=t[ds])?!!e:"RegExp"==ms(t))},vs=TypeError,ys=Eo,bs=String,ws=function(t){if("Symbol"===ys(t))throw TypeError("Cannot convert a Symbol value to a string");return bs(t)},ks=pe("match"),Os=lo,Ss=function(t){if(gs(t))throw vs("The method doesn't accept regular expressions");return t},Ms=X,xs=ws,Ps=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[ks]=!1,"/./"[t](e)}catch(t){}}return!1},js=N("".indexOf);Os({target:"String",proto:!0,forced:!Ps("includes")},{includes:function(t){return!!~js(xs(Ms(this)),xs(Ss(t)),arguments.length>1?arguments[1]:void 0)}});var Es=lo,Cs=jn.indexOf,Ls=yi,_s=ho([].indexOf),As=!!_s&&1/_s([1],1,-0)<0;Es({target:"Array",proto:!0,forced:As||!Ls("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return As?_s(this,t,e)||0:Cs(this,t,e)}});var Ts=b,Is=bo,Ns=TypeError,zs=Object.getOwnPropertyDescriptor,Fs=Ts&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),Rs=TypeError,Ds=Se,Zs=De,Gs=L,Vs=jt,Bs=TypeError,Us=lo,Ws=$t,Hs=yn,qs=mn,Xs=On,$s=Fs?function(t,e){if(Is(t)&&!zs(t,"length").writable)throw Ns("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Js=function(t){if(t>9007199254740991)throw Rs("Maximum allowed index exceeded");return t},Ks=$o,Ys=function(t,e,r){var n=Ds(e);n in t?Zs.f(t,n,Gs(0,r)):t[n]=r},Qs=function(t,e){if(!delete t[e])throw Bs("Cannot delete property "+Vs(e)+" of "+Vs(t))},tu=si("splice"),eu=Math.max,ru=Math.min;Us({target:"Array",proto:!0,forced:!tu},{splice:function(t,e){var r,n,o,i,a,s,u=Ws(this),c=Xs(u),l=Hs(t,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-l):(r=f-2,n=ru(eu(qs(e),0),c-l)),Js(c+r-n),o=Ks(u,n),i=0;i<n;i++)(a=l+i)in u&&Ys(o,i,u[a]);if(o.length=n,r<n){for(i=l;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:Qs(u,s);for(i=c;i>c-n+r;i--)Qs(u,i-1)}else if(r>n)for(i=c-n;i>l;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:Qs(u,s);for(i=0;i<r;i++)u[i+l]=arguments[i+2];return $s(u,c-n+r),o}});var nu=g,ou=N,iu=_t,au=et,su=String,uu=TypeError,cu=function(t,e,r){try{return ou(iu(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},lu=Ue,fu=function(t){if("object"==typeof t||au(t))return t;throw uu("Can't set "+su(t)+" as a prototype")},pu=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=cu(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return lu(r),fu(n),e?t(r,n):r.__proto__=n,r}}():void 0),hu=et,mu=ot,du=pu,gu=N(1..valueOf),vu=X,yu=ws,bu="\t\n\v\f\r                 \u2028\u2029\ufeff",wu=N("".replace),ku=RegExp("^["+bu+"]+"),Ou=RegExp("(^|[^"+bu+"])["+bu+"]+$"),Su=function(t){return function(e){var r=yu(vu(e));return 1&t&&(r=wu(r,ku,"")),2&t&&(r=wu(r,Ou,"$1")),r}},Mu={start:Su(1),end:Su(2),trim:Su(3)},xu=lo,Pu=b,ju=g,Eu=nu,Cu=N,Lu=ro,_u=Yt,Au=function(t,e,r){var n,o;return du&&hu(n=e.constructor)&&n!==r&&mu(o=n.prototype)&&o!==r.prototype&&du(t,o),t},Tu=ut,Iu=xt,Nu=we,zu=y,Fu=ln.f,Ru=v.f,Du=De.f,Zu=gu,Gu=Mu.trim,Vu="Number",Bu=ju[Vu];Eu[Vu];var Uu=Bu.prototype,Wu=ju.TypeError,Hu=Cu("".slice),qu=Cu("".charCodeAt),Xu=function(t){var e,r,n,o,i,a,s,u,c=Nu(t,"number");if(Iu(c))throw Wu("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=Gu(c),43===(e=qu(c,0))||45===e){if(88===(r=qu(c,2))||120===r)return NaN}else if(48===e){switch(qu(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=Hu(c,2)).length,s=0;s<a;s++)if((u=qu(i,s))<48||u>o)return NaN;return parseInt(i,n)}return+c},$u=Lu(Vu,!Bu(" 0o1")||!Bu("0b1")||Bu("+0x1")),Ju=function(t){var e,r=arguments.length<1?0:Bu(function(t){var e=Nu(t,"number");return"bigint"==typeof e?e:Xu(e)}(t));return Tu(Uu,e=this)&&zu((function(){Zu(e)}))?Au(Object(r),this,Ju):r};Ju.prototype=Uu,$u&&(Uu.constructor=Ju),xu({global:!0,constructor:!0,wrap:!0,forced:$u},{Number:Ju});$u&&function(t,e){for(var r,n=Pu?Fu(e):"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(","),o=0;n.length>o;o++)_u(e,r=n[o])&&!_u(t,r)&&Du(t,r,Ru(e,r))}(Eu[Vu],Bu);var Ku=n((function t(r,n){e(this,t),this.markers={sum:r.length};var o=n.map((function(t){return t.count})),i=o.reduce((function(t,e){return t+e}),0);this.clusters={count:n.length,markers:{mean:i/n.length,sum:i,min:Math.min.apply(Math,l(o)),max:Math.max.apply(Math,l(o))}}})),Yu=function(){function t(){e(this,t)}return n(t,[{key:"render",value:function(t,e,r){var n=t.count,o=t.position,i=n>Math.max(10,e.clusters.markers.mean)?"#ff0000":"#0000ff",a='<svg fill="'.concat(i,'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240">\n <circle cx="120" cy="120" opacity=".6" r="70" />\n <circle cx="120" cy="120" opacity=".3" r="90" />\n <circle cx="120" cy="120" opacity=".2" r="110" />\n </svg>'),s="Cluster of ".concat(n," markers"),u=Number(google.maps.Marker.MAX_ZINDEX)+n;if(google.maps.marker&&r.getMapCapabilities().isAdvancedMarkersAvailable){var c=document.createElement("div");c.innerHTML=a;var l=c.firstElementChild;l.setAttribute("width","50"),l.setAttribute("height","50");var f=document.createElementNS("http://www.w3.org/2000/svg","text");f.setAttribute("x","50%"),f.setAttribute("y","50%"),f.setAttribute("style","fill: #FFF"),f.setAttribute("text-anchor","middle"),f.setAttribute("font-size","50"),f.setAttribute("dominant-baseline","middle"),f.appendChild(document.createTextNode("".concat(n))),l.appendChild(f);var p={map:r,position:o,zIndex:u,title:s,content:c.firstElementChild};return new google.maps.marker.AdvancedMarkerElement(p)}var h={position:o,zIndex:u,title:s,icon:{url:"data:image/svg+xml;base64,".concat(window.btoa(a)),scaledSize:new google.maps.Size(45,45)},label:{text:String(n),color:"rgba(255,255,255,0.9)",fontSize:"12px"}};return new google.maps.Marker(h)}}]),t}();var Qu,tc=n((function t(){e(this,t),function(t,e){for(var r in e.prototype)t.prototype[r]=e.prototype[r]}(t,google.maps.OverlayView)}));t.MarkerClustererEvents=void 0,(Qu=t.MarkerClustererEvents||(t.MarkerClustererEvents={})).CLUSTERING_BEGIN="clusteringbegin",Qu.CLUSTERING_END="clusteringend",Qu.CLUSTER_CLICK="click";var ec=function(t,e,r){r.fitBounds(e.bounds)},rc=function(r){o(a,r);var i=u(a);function a(t){var r,n=t.map,o=t.markers,s=void 0===o?[]:o,u=t.algorithm,c=void 0===u?new Fa({}):u,f=t.renderer,p=void 0===f?new Yu:f,h=t.onClusterClick,m=void 0===h?ec:h;return e(this,a),(r=i.call(this)).markers=l(s),r.clusters=[],r.algorithm=c,r.renderer=p,r.onClusterClick=m,n&&r.setMap(n),r}return n(a,[{key:"addMarker",value:function(t,e){this.markers.includes(t)||(this.markers.push(t),e||this.render())}},{key:"addMarkers",value:function(t,e){var r=this;t.forEach((function(t){r.addMarker(t,!0)})),e||this.render()}},{key:"removeMarker",value:function(t,e){var r=this.markers.indexOf(t);return-1!==r&&(Mi.setMap(t,null),this.markers.splice(r,1),e||this.render(),!0)}},{key:"removeMarkers",value:function(t,e){var r=this,n=!1;return t.forEach((function(t){n=r.removeMarker(t,!0)||n})),n&&!e&&this.render(),n}},{key:"clearMarkers",value:function(t){this.markers.length=0,t||this.render()}},{key:"render",value:function(){var e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_BEGIN,this),this.markers.forEach((function(t){t.addListener("animation_changed",(function(){console.log("animation_changed")}))}));var r=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()}),n=r.clusters,o=r.changed;(o||null==o)&&(this.reset(),this.clusters=n,this.renderClusters()),google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_END,this)}}},{key:"onAdd",value:function(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}},{key:"onRemove",value:function(){google.maps.event.removeListener(this.idleListener),this.reset()}},{key:"reset",value:function(){this.markers.forEach((function(t){return Mi.setMap(t,null)})),this.clusters.forEach((function(t){return t.delete()})),this.clusters=[]}},{key:"renderClusters",value:function(){var e=this,r=new Ku(this.markers,this.clusters),n=this.getMap();this.clusters.forEach((function(o){1===o.markers.length?o.marker=o.markers[0]:(o.marker=e.renderer.render(o,r,n),e.onClusterClick&&o.marker.addListener("click",(function(r){google.maps.event.trigger(e,t.MarkerClustererEvents.CLUSTER_CLICK,o),e.onClusterClick(r,o,n)}))),Mi.setMap(o.marker,n)}))}}]),a}(tc);return t.AbstractAlgorithm=Ai,t.AbstractViewportAlgorithm=Ti,t.Cluster=xi,t.ClusterStats=Ku,t.DefaultRenderer=Yu,t.GridAlgorithm=Ji,t.MarkerClusterer=rc,t.NoopAlgorithm=Ki,t.SuperClusterAlgorithm=Fa,t.defaultOnClusterClickHandler=ec,t.distanceBetweenPoints=Ei,t.extendBoundsToPaddedViewport=ji,t.extendPixelBounds=Li,t.filterMarkersToPaddedViewport=Pi,t.noop=Ii,t.pixelBoundsToLatLngBounds=_i,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
//# sourceMappingURL=index.min.js.map

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).markerClusterer={})}(this,(function(t){"use strict";function e(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}class r{static isAdvancedMarker(t){return t instanceof google.maps.marker.AdvancedMarkerView}static setMap(t,e){this.isAdvancedMarker(t)?t.map=e:t.setMap(e)}static getPosition(t){if(this.isAdvancedMarker(t)){if(t.position){if(t.position instanceof google.maps.LatLng)return t.position;if(t.position.lat&&t.position.lng)return new google.maps.LatLng(t.position.lat,t.position.lng)}return new google.maps.LatLng(null)}return t.getPosition()}static getVisible(t){return!!this.isAdvancedMarker(t)||t.getVisible()}}class n{constructor(t){let{markers:e,position:r}=t;this.markers=e,r&&(r instanceof google.maps.LatLng?this._position=r:this._position=new google.maps.LatLng(r))}get bounds(){if(0!==this.markers.length||this._position)return this.markers.reduce(((t,e)=>t.extend(r.getPosition(e))),new google.maps.LatLngBounds(this._position,this._position))}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter((t=>r.getVisible(t))).length}push(t){this.markers.push(t)}delete(){this.marker&&(r.setMap(this.marker,null),delete this.marker),this.markers.length=0}}const o=(t,e,n,o)=>{const s=i(t.getBounds(),e,o);return n.filter((t=>s.contains(r.getPosition(t))))},i=(t,e,r)=>{const{northEast:n,southWest:o}=a(t,e),i=u({northEast:n,southWest:o},r);return c(i,e)},s=(t,e)=>{const r=(e.lat-t.lat)*Math.PI/180,n=(e.lng-t.lng)*Math.PI/180,o=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(o),Math.sqrt(1-o)))},a=(t,e)=>({northEast:e.fromLatLngToDivPixel(t.getNorthEast()),southWest:e.fromLatLngToDivPixel(t.getSouthWest())}),u=(t,e)=>{let{northEast:r,southWest:n}=t;return r.x+=e,r.y-=e,n.x-=e,n.y+=e,{northEast:r,southWest:n}},c=(t,e)=>{let{northEast:r,southWest:n}=t;const o=new google.maps.LatLngBounds;return o.extend(e.fromDivPixelToLatLng(r)),o.extend(e.fromDivPixelToLatLng(n)),o};class l{constructor(t){let{maxZoom:e=16}=t;this.maxZoom=e}noop(t){let{markers:e}=t;return h(e)}}class p extends l{constructor(t){var{viewportPadding:r=60}=t;super(e(t,["viewportPadding"])),this.viewportPadding=60,this.viewportPadding=r}calculate(t){let{markers:e,map:r,mapCanvasProjection:n}=t;return r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e,map:r,mapCanvasProjection:n}),changed:!1}:{clusters:this.cluster({markers:o(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}}const h=t=>t.map((t=>new n({position:r.getPosition(t),markers:[t]})));var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function m(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var d=function(t){return t&&t.Math==Math&&t},g=d("object"==typeof globalThis&&globalThis)||d("object"==typeof window&&window)||d("object"==typeof self&&self)||d("object"==typeof f&&f)||function(){return this}()||Function("return this")(),y={},v=function(t){try{return!!t()}catch(t){return!0}},b=!v((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),w=!v((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),k=w,M=Function.prototype.call,x=k?M.bind(M):function(){return M.apply(M,arguments)},O={},S={}.propertyIsEnumerable,P=Object.getOwnPropertyDescriptor,C=P&&!S.call({1:2},1);O.f=C?function(t){var e=P(this,t);return!!e&&e.enumerable}:S;var L,j,_=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},E=w,T=Function.prototype,A=T.call,I=E&&T.bind.bind(A,A),z=E?I:function(t){return function(){return A.apply(t,arguments)}},Z=z,D=Z({}.toString),F=Z("".slice),R=v,N=function(t){return F(D(t),8,-1)},G=Object,B=z("".split),V=R((function(){return!G("z").propertyIsEnumerable(0)}))?function(t){return"String"==N(t)?B(t,""):G(t)}:G,U=function(t){return null==t},W=U,H=TypeError,q=function(t){if(W(t))throw H("Can't call method on "+t);return t},X=V,J=q,K=function(t){return X(J(t))},Y="object"==typeof document&&document.all,$={all:Y,IS_HTMLDDA:void 0===Y&&void 0!==Y},Q=$.all,tt=$.IS_HTMLDDA?function(t){return"function"==typeof t||t===Q}:function(t){return"function"==typeof t},et=tt,rt=$.all,nt=$.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:et(t)||t===rt}:function(t){return"object"==typeof t?null!==t:et(t)},ot=g,it=tt,st=function(t,e){return arguments.length<2?(r=ot[t],it(r)?r:void 0):ot[t]&&ot[t][e];var r},at=z({}.isPrototypeOf),ut=g,ct="undefined"!=typeof navigator&&String(navigator.userAgent)||"",lt=ut.process,pt=ut.Deno,ht=lt&&lt.versions||pt&&pt.version,ft=ht&&ht.v8;ft&&(j=(L=ft.split("."))[0]>0&&L[0]<4?1:+(L[0]+L[1])),!j&&ct&&(!(L=ct.match(/Edge\/(\d+)/))||L[1]>=74)&&(L=ct.match(/Chrome\/(\d+)/))&&(j=+L[1]);var mt=j,dt=v,gt=!!Object.getOwnPropertySymbols&&!dt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&mt&&mt<41})),yt=gt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,vt=st,bt=tt,wt=at,kt=Object,Mt=yt?function(t){return"symbol"==typeof t}:function(t){var e=vt("Symbol");return bt(e)&&wt(e.prototype,kt(t))},xt=String,Ot=tt,St=function(t){try{return xt(t)}catch(t){return"Object"}},Pt=TypeError,Ct=function(t){if(Ot(t))return t;throw Pt(St(t)+" is not a function")},Lt=Ct,jt=U,_t=x,Et=tt,Tt=nt,At=TypeError,It={exports:{}},zt=g,Zt=Object.defineProperty,Dt=function(t,e){try{Zt(zt,t,{value:e,configurable:!0,writable:!0})}catch(r){zt[t]=e}return e},Ft=Dt,Rt="__core-js_shared__",Nt=g[Rt]||Ft(Rt,{}),Gt=Nt;(It.exports=function(t,e){return Gt[t]||(Gt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Bt=It.exports,Vt=q,Ut=Object,Wt=function(t){return Ut(Vt(t))},Ht=Wt,qt=z({}.hasOwnProperty),Xt=Object.hasOwn||function(t,e){return qt(Ht(t),e)},Jt=z,Kt=0,Yt=Math.random(),$t=Jt(1..toString),Qt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+$t(++Kt+Yt,36)},te=Bt,ee=Xt,re=Qt,ne=gt,oe=yt,ie=g.Symbol,se=te("wks"),ae=oe?ie.for||ie:ie&&ie.withoutSetter||re,ue=function(t){return ee(se,t)||(se[t]=ne&&ee(ie,t)?ie[t]:ae("Symbol."+t)),se[t]},ce=x,le=nt,pe=Mt,he=function(t,e){var r=t[e];return jt(r)?void 0:Lt(r)},fe=function(t,e){var r,n;if("string"===e&&Et(r=t.toString)&&!Tt(n=_t(r,t)))return n;if(Et(r=t.valueOf)&&!Tt(n=_t(r,t)))return n;if("string"!==e&&Et(r=t.toString)&&!Tt(n=_t(r,t)))return n;throw At("Can't convert object to primitive value")},me=TypeError,de=ue("toPrimitive"),ge=function(t,e){if(!le(t)||pe(t))return t;var r,n=he(t,de);if(n){if(void 0===e&&(e="default"),r=ce(n,t,e),!le(r)||pe(r))return r;throw me("Can't convert object to primitive value")}return void 0===e&&(e="number"),fe(t,e)},ye=Mt,ve=function(t){var e=ge(t,"string");return ye(e)?e:e+""},be=nt,we=g.document,ke=be(we)&&be(we.createElement),Me=function(t){return ke?we.createElement(t):{}},xe=Me,Oe=!b&&!v((function(){return 7!=Object.defineProperty(xe("div"),"a",{get:function(){return 7}}).a})),Se=b,Pe=x,Ce=O,Le=_,je=K,_e=ve,Ee=Xt,Te=Oe,Ae=Object.getOwnPropertyDescriptor;y.f=Se?Ae:function(t,e){if(t=je(t),e=_e(e),Te)try{return Ae(t,e)}catch(t){}if(Ee(t,e))return Le(!Pe(Ce.f,t,e),t[e])};var Ie={},ze=b&&v((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ze=nt,De=String,Fe=TypeError,Re=function(t){if(Ze(t))return t;throw Fe(De(t)+" is not an object")},Ne=b,Ge=Oe,Be=ze,Ve=Re,Ue=ve,We=TypeError,He=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,Xe="enumerable",Je="configurable",Ke="writable";Ie.f=Ne?Be?function(t,e,r){if(Ve(t),e=Ue(e),Ve(r),"function"==typeof t&&"prototype"===e&&"value"in r&&Ke in r&&!r[Ke]){var n=qe(t,e);n&&n[Ke]&&(t[e]=r.value,r={configurable:Je in r?r[Je]:n[Je],enumerable:Xe in r?r[Xe]:n[Xe],writable:!1})}return He(t,e,r)}:He:function(t,e,r){if(Ve(t),e=Ue(e),Ve(r),Ge)try{return He(t,e,r)}catch(t){}if("get"in r||"set"in r)throw We("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var Ye=Ie,$e=_,Qe=b?function(t,e,r){return Ye.f(t,e,$e(1,r))}:function(t,e,r){return t[e]=r,t},tr={exports:{}},er=b,rr=Xt,nr=Function.prototype,or=er&&Object.getOwnPropertyDescriptor,ir=rr(nr,"name"),sr={EXISTS:ir,PROPER:ir&&"something"===function(){}.name,CONFIGURABLE:ir&&(!er||er&&or(nr,"name").configurable)},ar=tt,ur=Nt,cr=z(Function.toString);ar(ur.inspectSource)||(ur.inspectSource=function(t){return cr(t)});var lr,pr,hr,fr=ur.inspectSource,mr=tt,dr=g.WeakMap,gr=mr(dr)&&/native code/.test(String(dr)),yr=Qt,vr=Bt("keys"),br=function(t){return vr[t]||(vr[t]=yr(t))},wr={},kr=gr,Mr=g,xr=nt,Or=Qe,Sr=Xt,Pr=Nt,Cr=br,Lr=wr,jr="Object already initialized",_r=Mr.TypeError,Er=Mr.WeakMap;if(kr||Pr.state){var Tr=Pr.state||(Pr.state=new Er);Tr.get=Tr.get,Tr.has=Tr.has,Tr.set=Tr.set,lr=function(t,e){if(Tr.has(t))throw _r(jr);return e.facade=t,Tr.set(t,e),e},pr=function(t){return Tr.get(t)||{}},hr=function(t){return Tr.has(t)}}else{var Ar=Cr("state");Lr[Ar]=!0,lr=function(t,e){if(Sr(t,Ar))throw _r(jr);return e.facade=t,Or(t,Ar,e),e},pr=function(t){return Sr(t,Ar)?t[Ar]:{}},hr=function(t){return Sr(t,Ar)}}var Ir={set:lr,get:pr,has:hr,enforce:function(t){return hr(t)?pr(t):lr(t,{})},getterFor:function(t){return function(e){var r;if(!xr(e)||(r=pr(e)).type!==t)throw _r("Incompatible receiver, "+t+" required");return r}}},zr=z,Zr=v,Dr=tt,Fr=Xt,Rr=b,Nr=sr.CONFIGURABLE,Gr=fr,Br=Ir.enforce,Vr=Ir.get,Ur=String,Wr=Object.defineProperty,Hr=zr("".slice),qr=zr("".replace),Xr=zr([].join),Jr=Rr&&!Zr((function(){return 8!==Wr((function(){}),"length",{value:8}).length})),Kr=String(String).split("String"),Yr=tr.exports=function(t,e,r){"Symbol("===Hr(Ur(e),0,7)&&(e="["+qr(Ur(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Fr(t,"name")||Nr&&t.name!==e)&&(Rr?Wr(t,"name",{value:e,configurable:!0}):t.name=e),Jr&&r&&Fr(r,"arity")&&t.length!==r.arity&&Wr(t,"length",{value:r.arity});try{r&&Fr(r,"constructor")&&r.constructor?Rr&&Wr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Br(t);return Fr(n,"source")||(n.source=Xr(Kr,"string"==typeof e?e:"")),t};Function.prototype.toString=Yr((function(){return Dr(this)&&Vr(this).source||Gr(this)}),"toString");var $r=tr.exports,Qr=tt,tn=Ie,en=$r,rn=Dt,nn=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(Qr(r)&&en(r,i,n),n.global)o?t[e]=r:rn(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:tn.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},on={},sn=Math.ceil,an=Math.floor,un=Math.trunc||function(t){var e=+t;return(e>0?an:sn)(e)},cn=function(t){var e=+t;return e!=e||0===e?0:un(e)},ln=cn,pn=Math.max,hn=Math.min,fn=cn,mn=Math.min,dn=function(t){return t>0?mn(fn(t),9007199254740991):0},gn=K,yn=function(t,e){var r=ln(t);return r<0?pn(r+e,0):hn(r,e)},vn=function(t){return dn(t.length)},bn=function(t){return function(e,r,n){var o,i=gn(e),s=vn(i),a=yn(n,s);if(t&&r!=r){for(;s>a;)if((o=i[a++])!=o)return!0}else for(;s>a;a++)if((t||a in i)&&i[a]===r)return t||a||0;return!t&&-1}},wn={includes:bn(!0),indexOf:bn(!1)},kn=Xt,Mn=K,xn=wn.indexOf,On=wr,Sn=z([].push),Pn=function(t,e){var r,n=Mn(t),o=0,i=[];for(r in n)!kn(On,r)&&kn(n,r)&&Sn(i,r);for(;e.length>o;)kn(n,r=e[o++])&&(~xn(i,r)||Sn(i,r));return i},Cn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ln=Pn,jn=Cn.concat("length","prototype");on.f=Object.getOwnPropertyNames||function(t){return Ln(t,jn)};var _n={};_n.f=Object.getOwnPropertySymbols;var En=st,Tn=on,An=_n,In=Re,zn=z([].concat),Zn=En("Reflect","ownKeys")||function(t){var e=Tn.f(In(t)),r=An.f;return r?zn(e,r(t)):e},Dn=Xt,Fn=Zn,Rn=y,Nn=Ie,Gn=v,Bn=tt,Vn=/#|\.prototype\./,Un=function(t,e){var r=Hn[Wn(t)];return r==Xn||r!=qn&&(Bn(e)?Gn(e):!!e)},Wn=Un.normalize=function(t){return String(t).replace(Vn,".").toLowerCase()},Hn=Un.data={},qn=Un.NATIVE="N",Xn=Un.POLYFILL="P",Jn=Un,Kn=g,Yn=y.f,$n=Qe,Qn=nn,to=Dt,eo=function(t,e,r){for(var n=Fn(e),o=Nn.f,i=Rn.f,s=0;s<n.length;s++){var a=n[s];Dn(t,a)||r&&Dn(r,a)||o(t,a,i(e,a))}},ro=Jn,no=function(t,e){var r,n,o,i,s,a=t.target,u=t.global,c=t.stat;if(r=u?Kn:c?Kn[a]||to(a,{}):(Kn[a]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(s=Yn(r,n))&&s.value:r[n],!ro(u?n:a+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;eo(i,o)}(t.sham||o&&o.sham)&&$n(i,"sham",!0),Qn(r,n,i,t)}},oo=x;no({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return oo(URL.prototype.toString,this)}});var io=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(o=n;0!=o--;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var s=i[o];if(!t(e[s],r[s]))return!1}return!0}return e!=e&&r!=r},so=m(io);var ao=Me("span").classList,uo=ao&&ao.constructor&&ao.constructor.prototype,co=uo===Object.prototype?void 0:uo,lo={},po=Pn,ho=Cn,fo=Object.keys||function(t){return po(t,ho)},mo=b,go=ze,yo=Ie,vo=Re,bo=K,wo=fo;lo.f=mo&&!go?Object.defineProperties:function(t,e){vo(t);for(var r,n=bo(e),o=wo(e),i=o.length,s=0;i>s;)yo.f(t,r=o[s++],n[r]);return t};var ko,Mo=st("document","documentElement"),xo=Re,Oo=lo,So=Cn,Po=wr,Co=Mo,Lo=Me,jo="prototype",_o="script",Eo=br("IE_PROTO"),To=function(){},Ao=function(t){return"<"+_o+">"+t+"</"+_o+">"},Io=function(t){t.write(Ao("")),t.close();var e=t.parentWindow.Object;return t=null,e},zo=function(){try{ko=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;zo="undefined"!=typeof document?document.domain&&ko?Io(ko):(e=Lo("iframe"),r="java"+_o+":",e.style.display="none",Co.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Ao("document.F=Object")),t.close(),t.F):Io(ko);for(var n=So.length;n--;)delete zo[jo][So[n]];return zo()};Po[Eo]=!0;var Zo=Object.create||function(t,e){var r;return null!==t?(To[jo]=xo(t),r=new To,To[jo]=null,r[Eo]=t):r=zo(),void 0===e?r:Oo.f(r,e)},Do=ue,Fo=Zo,Ro=Ie.f,No=Do("unscopables"),Go=Array.prototype;null==Go[No]&&Ro(Go,No,{configurable:!0,value:Fo(null)});var Bo,Vo,Uo,Wo={},Ho=!v((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),qo=Xt,Xo=tt,Jo=Wt,Ko=Ho,Yo=br("IE_PROTO"),$o=Object,Qo=$o.prototype,ti=Ko?$o.getPrototypeOf:function(t){var e=Jo(t);if(qo(e,Yo))return e[Yo];var r=e.constructor;return Xo(r)&&e instanceof r?r.prototype:e instanceof $o?Qo:null},ei=v,ri=tt,ni=nt,oi=ti,ii=nn,si=ue("iterator"),ai=!1;[].keys&&("next"in(Uo=[].keys())?(Vo=oi(oi(Uo)))!==Object.prototype&&(Bo=Vo):ai=!0),(!ni(Bo)||ei((function(){var t={};return Bo[si].call(t)!==t})))&&(Bo={}),ri(Bo[si])||ii(Bo,si,(function(){return this}));var ui={IteratorPrototype:Bo,BUGGY_SAFARI_ITERATORS:ai},ci=Ie.f,li=Xt,pi=ue("toStringTag"),hi=function(t,e,r){t&&!r&&(t=t.prototype),t&&!li(t,pi)&&ci(t,pi,{configurable:!0,value:e})},fi=ui.IteratorPrototype,mi=Zo,di=_,gi=hi,yi=Wo,vi=function(){return this},bi=z,wi=Ct,ki=tt,Mi=String,xi=TypeError,Oi=function(t,e,r){try{return bi(wi(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},Si=Re,Pi=function(t){if("object"==typeof t||ki(t))return t;throw xi("Can't set "+Mi(t)+" as a prototype")},Ci=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Oi(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Si(r),Pi(n),e?t(r,n):r.__proto__=n,r}}():void 0),Li=no,ji=x,_i=tt,Ei=function(t,e,r,n){var o=e+" Iterator";return t.prototype=mi(fi,{next:di(+!n,r)}),gi(t,o,!1),yi[o]=vi,t},Ti=ti,Ai=Ci,Ii=hi,zi=Qe,Zi=nn,Di=Wo,Fi=sr.PROPER,Ri=sr.CONFIGURABLE,Ni=ui.IteratorPrototype,Gi=ui.BUGGY_SAFARI_ITERATORS,Bi=ue("iterator"),Vi="keys",Ui="values",Wi="entries",Hi=function(){return this},qi=K,Xi=function(t){Go[No][t]=!0},Ji=Wo,Ki=Ir,Yi=Ie.f,$i=function(t,e,r,n,o,i,s){Ei(r,e,n);var a,u,c,l=function(t){if(t===o&&d)return d;if(!Gi&&t in f)return f[t];switch(t){case Vi:case Ui:case Wi:return function(){return new r(this,t)}}return function(){return new r(this)}},p=e+" Iterator",h=!1,f=t.prototype,m=f[Bi]||f["@@iterator"]||o&&f[o],d=!Gi&&m||l(o),g="Array"==e&&f.entries||m;if(g&&(a=Ti(g.call(new t)))!==Object.prototype&&a.next&&(Ti(a)!==Ni&&(Ai?Ai(a,Ni):_i(a[Bi])||Zi(a,Bi,Hi)),Ii(a,p,!0)),Fi&&o==Ui&&m&&m.name!==Ui&&(Ri?zi(f,"name",Ui):(h=!0,d=function(){return ji(m,this)})),o)if(u={values:l(Ui),keys:i?d:l(Vi),entries:l(Wi)},s)for(c in u)(Gi||h||!(c in f))&&Zi(f,c,u[c]);else Li({target:e,proto:!0,forced:Gi||h},u);return f[Bi]!==d&&Zi(f,Bi,d,{name:o}),Di[e]=d,u},Qi=function(t,e){return{value:t,done:e}},ts=b,es="Array Iterator",rs=Ki.set,ns=Ki.getterFor(es),os=$i(Array,"Array",(function(t,e){rs(this,{type:es,target:qi(t),index:0,kind:e})}),(function(){var t=ns(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,Qi(void 0,!0)):Qi("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)}),"values"),is=Ji.Arguments=Ji.Array;if(Xi("keys"),Xi("values"),Xi("entries"),ts&&"values"!==is.name)try{Yi(is,"name",{value:"values"})}catch(t){}var ss=g,as={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},us=co,cs=os,ls=Qe,ps=ue,hs=ps("iterator"),fs=ps("toStringTag"),ms=cs.values,ds=function(t,e){if(t){if(t[hs]!==ms)try{ls(t,hs,ms)}catch(e){t[hs]=ms}if(t[fs]||ls(t,fs,e),as[e])for(var r in cs)if(t[r]!==cs[r])try{ls(t,r,cs[r])}catch(e){t[r]=cs[r]}}};for(var gs in as)ds(ss[gs]&&ss[gs].prototype,gs);function ys(t,e,r,n,o,i){if(o-n<=r)return;const s=n+o>>1;vs(t,e,s,n,o,i%2),ys(t,e,r,n,s-1,i+1),ys(t,e,r,s+1,o,i+1)}function vs(t,e,r,n,o,i){for(;o>n;){if(o-n>600){const s=o-n+1,a=r-n+1,u=Math.log(s),c=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*c*(s-c)/s)*(a-s/2<0?-1:1);vs(t,e,r,Math.max(n,Math.floor(r-a*c/s+l)),Math.min(o,Math.floor(r+(s-a)*c/s+l)),i)}const s=e[2*r+i];let a=n,u=o;for(bs(t,e,n,r),e[2*o+i]>s&&bs(t,e,n,o);a<u;){for(bs(t,e,a,u),a++,u--;e[2*a+i]<s;)a++;for(;e[2*u+i]>s;)u--}e[2*n+i]===s?bs(t,e,n,u):(u++,bs(t,e,u,o)),u<=r&&(n=u+1),r<=u&&(o=u-1)}}function bs(t,e,r,n){ws(t,r,n),ws(e,2*r,2*n),ws(e,2*r+1,2*n+1)}function ws(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function ks(t,e,r,n){const o=t-r,i=e-n;return o*o+i*i}ds(us,"DOMTokenList");const Ms=t=>t[0],xs=t=>t[1];class Os{constructor(t,e=Ms,r=xs,n=64,o=Float64Array){this.nodeSize=n,this.points=t;const i=t.length<65536?Uint16Array:Uint32Array,s=this.ids=new i(t.length),a=this.coords=new o(2*t.length);for(let n=0;n<t.length;n++)s[n]=n,a[2*n]=e(t[n]),a[2*n+1]=r(t[n]);ys(s,a,n,0,s.length-1,0)}range(t,e,r,n){return function(t,e,r,n,o,i,s){const a=[0,t.length-1,0],u=[];let c,l;for(;a.length;){const p=a.pop(),h=a.pop(),f=a.pop();if(h-f<=s){for(let s=f;s<=h;s++)c=e[2*s],l=e[2*s+1],c>=r&&c<=o&&l>=n&&l<=i&&u.push(t[s]);continue}const m=Math.floor((f+h)/2);c=e[2*m],l=e[2*m+1],c>=r&&c<=o&&l>=n&&l<=i&&u.push(t[m]);const d=(p+1)%2;(0===p?r<=c:n<=l)&&(a.push(f),a.push(m-1),a.push(d)),(0===p?o>=c:i>=l)&&(a.push(m+1),a.push(h),a.push(d))}return u}(this.ids,this.coords,t,e,r,n,this.nodeSize)}within(t,e,r){return function(t,e,r,n,o,i){const s=[0,t.length-1,0],a=[],u=o*o;for(;s.length;){const c=s.pop(),l=s.pop(),p=s.pop();if(l-p<=i){for(let o=p;o<=l;o++)ks(e[2*o],e[2*o+1],r,n)<=u&&a.push(t[o]);continue}const h=Math.floor((p+l)/2),f=e[2*h],m=e[2*h+1];ks(f,m,r,n)<=u&&a.push(t[h]);const d=(c+1)%2;(0===c?r-o<=f:n-o<=m)&&(s.push(p),s.push(h-1),s.push(d)),(0===c?r+o>=f:n+o>=m)&&(s.push(h+1),s.push(l),s.push(d))}return a}(this.ids,this.coords,t,e,r,this.nodeSize)}}const Ss={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},Ps=Math.fround||(Cs=new Float32Array(1),t=>(Cs[0]=+t,Cs[0]));var Cs,Ls;class js{constructor(t){this.options=Ds(Object.create(Ss),t),this.trees=new Array(this.options.maxZoom+1)}load(t){const{log:e,minZoom:r,maxZoom:n,nodeSize:o}=this.options;e&&console.time("total time");const i=`prepare ${t.length} points`;e&&console.time(i),this.points=t;let s=[];for(let e=0;e<t.length;e++)t[e].geometry&&s.push(Es(t[e],e));this.trees[n+1]=new Os(s,Fs,Rs,o,Float32Array),e&&console.timeEnd(i);for(let t=n;t>=r;t--){const r=+Date.now();s=this._cluster(s,t),this.trees[t]=new Os(s,Fs,Rs,o,Float32Array),e&&console.log("z%d: %d clusters in %dms",t,s.length,+Date.now()-r)}return e&&console.timeEnd("total time"),this}getClusters(t,e){let r=((t[0]+180)%360+360)%360-180;const n=Math.max(-90,Math.min(90,t[1]));let o=180===t[2]?180:((t[2]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,o=180;else if(r>o){const t=this.getClusters([r,n,180,i],e),s=this.getClusters([-180,n,o,i],e);return t.concat(s)}const s=this.trees[this._limitZoom(e)],a=s.range(Is(r),zs(i),Is(o),zs(n)),u=[];for(const t of a){const e=s.points[t];u.push(e.numPoints?Ts(e):this.points[e.index])}return u}getChildren(t){const e=this._getOriginId(t),r=this._getOriginZoom(t),n="No cluster with the specified id.",o=this.trees[r];if(!o)throw new Error(n);const i=o.points[e];if(!i)throw new Error(n);const s=this.options.radius/(this.options.extent*Math.pow(2,r-1)),a=o.within(i.x,i.y,s),u=[];for(const e of a){const r=o.points[e];r.parentId===t&&u.push(r.numPoints?Ts(r):this.points[r.index])}if(0===u.length)throw new Error(n);return u}getLeaves(t,e,r){e=e||10,r=r||0;const n=[];return this._appendLeaves(n,t,e,r,0),n}getTile(t,e,r){const n=this.trees[this._limitZoom(t)],o=Math.pow(2,t),{extent:i,radius:s}=this.options,a=s/i,u=(r-a)/o,c=(r+1+a)/o,l={features:[]};return this._addTileFeatures(n.range((e-a)/o,u,(e+1+a)/o,c),n.points,e,r,o,l),0===e&&this._addTileFeatures(n.range(1-a/o,u,1,c),n.points,o,r,o,l),e===o-1&&this._addTileFeatures(n.range(0,u,a/o,c),n.points,-1,r,o,l),l.features.length?l:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){const r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e}_appendLeaves(t,e,r,n,o){const i=this.getChildren(e);for(const e of i){const i=e.properties;if(i&&i.cluster?o+i.point_count<=n?o+=i.point_count:o=this._appendLeaves(t,i.cluster_id,r,n,o):o<n?o++:t.push(e),t.length===r)break}return o}_addTileFeatures(t,e,r,n,o,i){for(const s of t){const t=e[s],a=t.numPoints;let u,c,l;if(a)u=As(t),c=t.x,l=t.y;else{const e=this.points[t.index];u=e.properties,c=Is(e.geometry.coordinates[0]),l=zs(e.geometry.coordinates[1])}const p={type:1,geometry:[[Math.round(this.options.extent*(c*o-r)),Math.round(this.options.extent*(l*o-n))]],tags:u};let h;a?h=t.id:this.options.generateId?h=t.index:this.points[t.index].id&&(h=this.points[t.index].id),void 0!==h&&(p.id=h),i.features.push(p)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){const r=[],{radius:n,extent:o,reduce:i,minPoints:s}=this.options,a=n/(o*Math.pow(2,e));for(let n=0;n<t.length;n++){const o=t[n];if(o.zoom<=e)continue;o.zoom=e;const u=this.trees[e+1],c=u.within(o.x,o.y,a),l=o.numPoints||1;let p=l;for(const t of c){const r=u.points[t];r.zoom>e&&(p+=r.numPoints||1)}if(p>l&&p>=s){let t=o.x*l,s=o.y*l,a=i&&l>1?this._map(o,!0):null;const h=(n<<5)+(e+1)+this.points.length;for(const r of c){const n=u.points[r];if(n.zoom<=e)continue;n.zoom=e;const c=n.numPoints||1;t+=n.x*c,s+=n.y*c,n.parentId=h,i&&(a||(a=this._map(o,!0)),i(a,this._map(n)))}o.parentId=h,r.push(_s(t/p,s/p,h,p,a))}else if(r.push(o),p>1)for(const t of c){const n=u.points[t];n.zoom<=e||(n.zoom=e,r.push(n))}}return r}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e){if(t.numPoints)return e?Ds({},t.properties):t.properties;const r=this.points[t.index].properties,n=this.options.map(r);return e&&n===r?Ds({},n):n}}function _s(t,e,r,n,o){return{x:Ps(t),y:Ps(e),zoom:1/0,id:r,parentId:-1,numPoints:n,properties:o}}function Es(t,e){const[r,n]=t.geometry.coordinates;return{x:Ps(Is(r)),y:Ps(zs(n)),zoom:1/0,index:e,parentId:-1}}function Ts(t){return{type:"Feature",id:t.id,properties:As(t),geometry:{type:"Point",coordinates:[(e=t.x,360*(e-.5)),Zs(t.y)]}};var e}function As(t){const e=t.numPoints,r=e>=1e4?`${Math.round(e/1e3)}k`:e>=1e3?Math.round(e/100)/10+"k":e;return Ds(Ds({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function Is(t){return t/360+.5}function zs(t){const e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function Zs(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}function Ds(t,e){for(const r in e)t[r]=e[r];return t}function Fs(t){return t.x}function Rs(t){return t.y}class Ns extends l{constructor(t){var{maxZoom:r,radius:n=60}=t,o=e(t,["maxZoom","radius"]);super({maxZoom:r}),this.superCluster=new js(Object.assign({maxZoom:this.maxZoom,radius:n},o)),this.state={zoom:null}}calculate(t){let e=!1;if(!so(t.markers,this.markers)){e=!0,this.markers=[...t.markers];const n=this.markers.map((t=>({type:"Feature",geometry:{type:"Point",coordinates:[r.getPosition(t).lng(),r.getPosition(t).lat()]},properties:{marker:t}})));this.superCluster.load(n)}const n={zoom:t.map.getZoom()};return e||this.state.zoom>this.maxZoom&&n.zoom>this.maxZoom||(e=e||!so(this.state,n)),this.state=n,e&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:e}}cluster(t){let{map:e}=t;return this.superCluster.getClusters([-180,-90,180,90],Math.round(e.getZoom())).map(this.transformCluster.bind(this))}transformCluster(t){let{geometry:{coordinates:[e,o]},properties:i}=t;if(i.cluster)return new n({markers:this.superCluster.getLeaves(i.cluster_id,1/0).map((t=>t.properties.marker)),position:new google.maps.LatLng({lat:o,lng:e})});{const t=i.marker;return new n({markers:[t],position:r.getPosition(t)})}}}class Gs{constructor(t,e){this.markers={sum:t.length};const r=e.map((t=>t.count)),n=r.reduce(((t,e)=>t+e),0);this.clusters={count:e.length,markers:{mean:n/e.length,sum:n,min:Math.min(...r),max:Math.max(...r)}}}}class Bs{render(t,e,r){let{count:n,position:o}=t;const i=n>Math.max(10,e.clusters.markers.mean)?"#ff0000":"#0000ff",s='<svg fill="'.concat(i,'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240">\n <circle cx="120" cy="120" opacity=".6" r="70" />\n <circle cx="120" cy="120" opacity=".3" r="90" />\n <circle cx="120" cy="120" opacity=".2" r="110" />\n </svg>'),a="Cluster of ".concat(n," markers"),u=Number(google.maps.Marker.MAX_ZINDEX)+n;if(google.maps.marker&&r.getMapCapabilities().isAdvancedMarkersAvailable){const t=document.createElement("div");t.innerHTML=s;const e=t.firstElementChild;e.setAttribute("width","50"),e.setAttribute("height","50");const i=document.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("x","50%"),i.setAttribute("y","50%"),i.setAttribute("style","fill: #FFF"),i.setAttribute("text-anchor","middle"),i.setAttribute("font-size","50"),i.setAttribute("dominant-baseline","middle"),i.appendChild(document.createTextNode("".concat(n))),e.appendChild(i);const c={map:r,position:o,zIndex:u,title:a,content:t.firstElementChild};return new google.maps.marker.AdvancedMarkerView(c)}const c={position:o,zIndex:u,title:a,icon:{url:"data:image/svg+xml;base64,".concat(window.btoa(s)),scaledSize:new google.maps.Size(45,45)},label:{text:String(n),color:"rgba(255,255,255,0.9)",fontSize:"12px"}};return new google.maps.Marker(c)}}class Vs{constructor(){!function(t,e){for(let r in e.prototype)t.prototype[r]=e.prototype[r]}(Vs,google.maps.OverlayView)}}t.MarkerClustererEvents=void 0,(Ls=t.MarkerClustererEvents||(t.MarkerClustererEvents={})).CLUSTERING_BEGIN="clusteringbegin",Ls.CLUSTERING_END="clusteringend",Ls.CLUSTER_CLICK="click";const Us=(t,e,r)=>{r.fitBounds(e.bounds)};t.AbstractAlgorithm=l,t.AbstractViewportAlgorithm=p,t.Cluster=n,t.ClusterStats=Gs,t.DefaultRenderer=Bs,t.GridAlgorithm=class extends p{constructor(t){var{maxDistance:r=4e4,gridSize:n=40}=t;super(e(t,["maxDistance","gridSize"])),this.clusters=[],this.maxDistance=r,this.gridSize=n,this.state={zoom:null}}calculate(t){let{markers:e,map:r,mapCanvasProjection:n}=t;const i={zoom:r.getZoom()};let s=!1;return this.state.zoom>this.maxZoom&&i.zoom>this.maxZoom||(s=!so(this.state,i)),this.state=i,r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e,map:r,mapCanvasProjection:n}),changed:s}:{clusters:this.cluster({markers:o(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}cluster(t){let{markers:e,map:r,mapCanvasProjection:n}=t;return this.clusters=[],e.forEach((t=>{this.addToClosestCluster(t,r,n)})),this.clusters}addToClosestCluster(t,e,o){let a=this.maxDistance,u=null;for(let e=0;e<this.clusters.length;e++){const n=this.clusters[e],o=s(n.bounds.getCenter().toJSON(),r.getPosition(t).toJSON());o<a&&(a=o,u=n)}if(u&&i(u.bounds,o,this.gridSize).contains(r.getPosition(t)))u.push(t);else{const e=new n({markers:[t]});this.clusters.push(e)}}},t.MarkerClusterer=class extends Vs{constructor(t){let{map:e,markers:r=[],algorithm:n=new Ns({}),renderer:o=new Bs,onClusterClick:i=Us}=t;super(),this.markers=[...r],this.clusters=[],this.algorithm=n,this.renderer=o,this.onClusterClick=i,e&&this.setMap(e)}addMarker(t,e){this.markers.includes(t)||(this.markers.push(t),e||this.render())}addMarkers(t,e){t.forEach((t=>{this.addMarker(t,!0)})),e||this.render()}removeMarker(t,e){const n=this.markers.indexOf(t);return-1!==n&&(r.setMap(t,null),this.markers.splice(n,1),e||this.render(),!0)}removeMarkers(t,e){let r=!1;return t.forEach((t=>{r=this.removeMarker(t,!0)||r})),r&&!e&&this.render(),r}clearMarkers(t){this.markers.length=0,t||this.render()}render(){const e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_BEGIN,this),this.markers.forEach((t=>{t.addListener("animation_changed",(()=>{console.log("animation_changed")}))}));const{clusters:r,changed:n}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});(n||null==n)&&(this.reset(),this.clusters=r,this.renderClusters()),google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach((t=>r.setMap(t,null))),this.clusters.forEach((t=>t.delete())),this.clusters=[]}renderClusters(){const e=new Gs(this.markers,this.clusters),n=this.getMap();this.clusters.forEach((o=>{1===o.markers.length?o.marker=o.markers[0]:(o.marker=this.renderer.render(o,e,n),this.onClusterClick&&o.marker.addListener("click",(e=>{google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTER_CLICK,o),this.onClusterClick(e,o,n)}))),r.setMap(o.marker,n)}))}},t.NoopAlgorithm=class extends l{constructor(t){super(e(t,[]))}calculate(t){let{markers:e,map:r,mapCanvasProjection:n}=t;return{clusters:this.cluster({markers:e,map:r,mapCanvasProjection:n}),changed:!1}}cluster(t){return this.noop(t)}},t.SuperClusterAlgorithm=Ns,t.defaultOnClusterClickHandler=Us,t.distanceBetweenPoints=s,t.extendBoundsToPaddedViewport=i,t.extendPixelBounds=u,t.filterMarkersToPaddedViewport=o,t.noop=h,t.pixelBoundsToLatLngBounds=c,Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).markerClusterer={})}(this,(function(t){"use strict";function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,"symbol"==typeof(i=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"))?i:String(i)),n)}var o,i}function n(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=i(t);if(e){var o=i(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return s(this,r)}}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||f(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||f(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){if(t){if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var m=function(t){return t&&t.Math==Math&&t},g=m("object"==typeof globalThis&&globalThis)||m("object"==typeof window&&window)||m("object"==typeof self&&self)||m("object"==typeof h&&h)||function(){return this}()||h||Function("return this")(),v={},y=function(t){try{return!!t()}catch(t){return!0}},b=!y((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),w=!y((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),k=w,O=Function.prototype.call,S=k?O.bind(O):function(){return O.apply(O,arguments)},M={},x={}.propertyIsEnumerable,P=Object.getOwnPropertyDescriptor,j=P&&!x.call({1:2},1);M.f=j?function(t){var e=P(this,t);return!!e&&e.enumerable}:x;var E,C,L=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},_=w,A=Function.prototype,T=A.call,I=_&&A.bind.bind(T,T),N=_?I:function(t){return function(){return T.apply(t,arguments)}},z=N,F=z({}.toString),R=z("".slice),D=function(t){return R(F(t),8,-1)},Z=y,G=D,V=Object,B=N("".split),U=Z((function(){return!V("z").propertyIsEnumerable(0)}))?function(t){return"String"==G(t)?B(t,""):V(t)}:V,W=function(t){return null==t},H=W,q=TypeError,X=function(t){if(H(t))throw q("Can't call method on "+t);return t},$=U,J=X,K=function(t){return $(J(t))},Y="object"==typeof document&&document.all,Q={all:Y,IS_HTMLDDA:void 0===Y&&void 0!==Y},tt=Q.all,et=Q.IS_HTMLDDA?function(t){return"function"==typeof t||t===tt}:function(t){return"function"==typeof t},rt=et,nt=Q.all,ot=Q.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:rt(t)||t===nt}:function(t){return"object"==typeof t?null!==t:rt(t)},it=g,at=et,st=function(t,e){return arguments.length<2?(r=it[t],at(r)?r:void 0):it[t]&&it[t][e];var r},ut=N({}.isPrototypeOf),ct=g,lt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ft=ct.process,pt=ct.Deno,ht=ft&&ft.versions||pt&&pt.version,dt=ht&&ht.v8;dt&&(C=(E=dt.split("."))[0]>0&&E[0]<4?1:+(E[0]+E[1])),!C&&lt&&(!(E=lt.match(/Edge\/(\d+)/))||E[1]>=74)&&(E=lt.match(/Chrome\/(\d+)/))&&(C=+E[1]);var mt=C,gt=mt,vt=y,yt=g.String,bt=!!Object.getOwnPropertySymbols&&!vt((function(){var t=Symbol();return!yt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&gt&&gt<41})),wt=bt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,kt=st,Ot=et,St=ut,Mt=Object,xt=wt?function(t){return"symbol"==typeof t}:function(t){var e=kt("Symbol");return Ot(e)&&St(e.prototype,Mt(t))},Pt=String,jt=function(t){try{return Pt(t)}catch(t){return"Object"}},Et=et,Ct=jt,Lt=TypeError,_t=function(t){if(Et(t))return t;throw Lt(Ct(t)+" is not a function")},At=_t,Tt=W,It=S,Nt=et,zt=ot,Ft=TypeError,Rt={exports:{}},Dt=g,Zt=Object.defineProperty,Gt=function(t,e){try{Zt(Dt,t,{value:e,configurable:!0,writable:!0})}catch(r){Dt[t]=e}return e},Vt=Gt,Bt="__core-js_shared__",Ut=g[Bt]||Vt(Bt,{}),Wt=Ut;(Rt.exports=function(t,e){return Wt[t]||(Wt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Ht=Rt.exports,qt=X,Xt=Object,$t=function(t){return Xt(qt(t))},Jt=$t,Kt=N({}.hasOwnProperty),Yt=Object.hasOwn||function(t,e){return Kt(Jt(t),e)},Qt=N,te=0,ee=Math.random(),re=Qt(1..toString),ne=function(t){return"Symbol("+(void 0===t?"":t)+")_"+re(++te+ee,36)},oe=Ht,ie=Yt,ae=ne,se=bt,ue=wt,ce=g.Symbol,le=oe("wks"),fe=ue?ce.for||ce:ce&&ce.withoutSetter||ae,pe=function(t){return ie(le,t)||(le[t]=se&&ie(ce,t)?ce[t]:fe("Symbol."+t)),le[t]},he=S,de=ot,me=xt,ge=function(t,e){var r=t[e];return Tt(r)?void 0:At(r)},ve=function(t,e){var r,n;if("string"===e&&Nt(r=t.toString)&&!zt(n=It(r,t)))return n;if(Nt(r=t.valueOf)&&!zt(n=It(r,t)))return n;if("string"!==e&&Nt(r=t.toString)&&!zt(n=It(r,t)))return n;throw Ft("Can't convert object to primitive value")},ye=TypeError,be=pe("toPrimitive"),we=function(t,e){if(!de(t)||me(t))return t;var r,n=ge(t,be);if(n){if(void 0===e&&(e="default"),r=he(n,t,e),!de(r)||me(r))return r;throw ye("Can't convert object to primitive value")}return void 0===e&&(e="number"),ve(t,e)},ke=we,Oe=xt,Se=function(t){var e=ke(t,"string");return Oe(e)?e:e+""},Me=ot,xe=g.document,Pe=Me(xe)&&Me(xe.createElement),je=function(t){return Pe?xe.createElement(t):{}},Ee=je,Ce=!b&&!y((function(){return 7!=Object.defineProperty(Ee("div"),"a",{get:function(){return 7}}).a})),Le=b,_e=S,Ae=M,Te=L,Ie=K,Ne=Se,ze=Yt,Fe=Ce,Re=Object.getOwnPropertyDescriptor;v.f=Le?Re:function(t,e){if(t=Ie(t),e=Ne(e),Fe)try{return Re(t,e)}catch(t){}if(ze(t,e))return Te(!_e(Ae.f,t,e),t[e])};var De={},Ze=b&&y((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ge=ot,Ve=String,Be=TypeError,Ue=function(t){if(Ge(t))return t;throw Be(Ve(t)+" is not an object")},We=b,He=Ce,qe=Ze,Xe=Ue,$e=Se,Je=TypeError,Ke=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,Qe="enumerable",tr="configurable",er="writable";De.f=We?qe?function(t,e,r){if(Xe(t),e=$e(e),Xe(r),"function"==typeof t&&"prototype"===e&&"value"in r&&er in r&&!r[er]){var n=Ye(t,e);n&&n[er]&&(t[e]=r.value,r={configurable:tr in r?r[tr]:n[tr],enumerable:Qe in r?r[Qe]:n[Qe],writable:!1})}return Ke(t,e,r)}:Ke:function(t,e,r){if(Xe(t),e=$e(e),Xe(r),He)try{return Ke(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Je("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var rr=De,nr=L,or=b?function(t,e,r){return rr.f(t,e,nr(1,r))}:function(t,e,r){return t[e]=r,t},ir={exports:{}},ar=b,sr=Yt,ur=Function.prototype,cr=ar&&Object.getOwnPropertyDescriptor,lr=sr(ur,"name"),fr={EXISTS:lr,PROPER:lr&&"something"===function(){}.name,CONFIGURABLE:lr&&(!ar||ar&&cr(ur,"name").configurable)},pr=et,hr=Ut,dr=N(Function.toString);pr(hr.inspectSource)||(hr.inspectSource=function(t){return dr(t)});var mr,gr,vr,yr=hr.inspectSource,br=et,wr=g.WeakMap,kr=br(wr)&&/native code/.test(String(wr)),Or=ne,Sr=Ht("keys"),Mr=function(t){return Sr[t]||(Sr[t]=Or(t))},xr={},Pr=kr,jr=g,Er=ot,Cr=or,Lr=Yt,_r=Ut,Ar=Mr,Tr=xr,Ir="Object already initialized",Nr=jr.TypeError,zr=jr.WeakMap;if(Pr||_r.state){var Fr=_r.state||(_r.state=new zr);Fr.get=Fr.get,Fr.has=Fr.has,Fr.set=Fr.set,mr=function(t,e){if(Fr.has(t))throw Nr(Ir);return e.facade=t,Fr.set(t,e),e},gr=function(t){return Fr.get(t)||{}},vr=function(t){return Fr.has(t)}}else{var Rr=Ar("state");Tr[Rr]=!0,mr=function(t,e){if(Lr(t,Rr))throw Nr(Ir);return e.facade=t,Cr(t,Rr,e),e},gr=function(t){return Lr(t,Rr)?t[Rr]:{}},vr=function(t){return Lr(t,Rr)}}var Dr={set:mr,get:gr,has:vr,enforce:function(t){return vr(t)?gr(t):mr(t,{})},getterFor:function(t){return function(e){var r;if(!Er(e)||(r=gr(e)).type!==t)throw Nr("Incompatible receiver, "+t+" required");return r}}},Zr=N,Gr=y,Vr=et,Br=Yt,Ur=b,Wr=fr.CONFIGURABLE,Hr=yr,qr=Dr.enforce,Xr=Dr.get,$r=String,Jr=Object.defineProperty,Kr=Zr("".slice),Yr=Zr("".replace),Qr=Zr([].join),tn=Ur&&!Gr((function(){return 8!==Jr((function(){}),"length",{value:8}).length})),en=String(String).split("String"),rn=ir.exports=function(t,e,r){"Symbol("===Kr($r(e),0,7)&&(e="["+Yr($r(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Br(t,"name")||Wr&&t.name!==e)&&(Ur?Jr(t,"name",{value:e,configurable:!0}):t.name=e),tn&&r&&Br(r,"arity")&&t.length!==r.arity&&Jr(t,"length",{value:r.arity});try{r&&Br(r,"constructor")&&r.constructor?Ur&&Jr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=qr(t);return Br(n,"source")||(n.source=Qr(en,"string"==typeof e?e:"")),t};Function.prototype.toString=rn((function(){return Vr(this)&&Xr(this).source||Hr(this)}),"toString");var nn=ir.exports,on=et,an=De,sn=nn,un=Gt,cn=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(on(r)&&sn(r,i,n),n.global)o?t[e]=r:un(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:an.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},ln={},fn=Math.ceil,pn=Math.floor,hn=Math.trunc||function(t){var e=+t;return(e>0?pn:fn)(e)},dn=function(t){var e=+t;return e!=e||0===e?0:hn(e)},mn=dn,gn=Math.max,vn=Math.min,yn=function(t,e){var r=mn(t);return r<0?gn(r+e,0):vn(r,e)},bn=dn,wn=Math.min,kn=function(t){return t>0?wn(bn(t),9007199254740991):0},On=function(t){return kn(t.length)},Sn=K,Mn=yn,xn=On,Pn=function(t){return function(e,r,n){var o,i=Sn(e),a=xn(i),s=Mn(n,a);if(t&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===r)return t||s||0;return!t&&-1}},jn={includes:Pn(!0),indexOf:Pn(!1)},En=Yt,Cn=K,Ln=jn.indexOf,_n=xr,An=N([].push),Tn=function(t,e){var r,n=Cn(t),o=0,i=[];for(r in n)!En(_n,r)&&En(n,r)&&An(i,r);for(;e.length>o;)En(n,r=e[o++])&&(~Ln(i,r)||An(i,r));return i},In=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nn=Tn,zn=In.concat("length","prototype");ln.f=Object.getOwnPropertyNames||function(t){return Nn(t,zn)};var Fn={};Fn.f=Object.getOwnPropertySymbols;var Rn=st,Dn=ln,Zn=Fn,Gn=Ue,Vn=N([].concat),Bn=Rn("Reflect","ownKeys")||function(t){var e=Dn.f(Gn(t)),r=Zn.f;return r?Vn(e,r(t)):e},Un=Yt,Wn=Bn,Hn=v,qn=De,Xn=y,$n=et,Jn=/#|\.prototype\./,Kn=function(t,e){var r=Qn[Yn(t)];return r==eo||r!=to&&($n(e)?Xn(e):!!e)},Yn=Kn.normalize=function(t){return String(t).replace(Jn,".").toLowerCase()},Qn=Kn.data={},to=Kn.NATIVE="N",eo=Kn.POLYFILL="P",ro=Kn,no=g,oo=v.f,io=or,ao=cn,so=Gt,uo=function(t,e,r){for(var n=Wn(e),o=qn.f,i=Hn.f,a=0;a<n.length;a++){var s=n[a];Un(t,s)||r&&Un(r,s)||o(t,s,i(e,s))}},co=ro,lo=function(t,e){var r,n,o,i,a,s=t.target,u=t.global,c=t.stat;if(r=u?no:c?no[s]||so(s,{}):(no[s]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=oo(r,n))&&a.value:r[n],!co(u?n:s+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;uo(i,o)}(t.sham||o&&o.sham)&&io(i,"sham",!0),ao(r,n,i,t)}},fo=D,po=N,ho=function(t){if("Function"===fo(t))return po(t)},mo=_t,go=w,vo=ho(ho.bind),yo=D,bo=Array.isArray||function(t){return"Array"==yo(t)},wo={};wo[pe("toStringTag")]="z";var ko="[object z]"===String(wo),Oo=ko,So=et,Mo=D,xo=pe("toStringTag"),Po=Object,jo="Arguments"==Mo(function(){return arguments}()),Eo=Oo?Mo: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=Po(t),xo))?r:jo?Mo(e):"Object"==(n=Mo(e))&&So(e.callee)?"Arguments":n},Co=N,Lo=y,_o=et,Ao=Eo,To=yr,Io=function(){},No=[],zo=st("Reflect","construct"),Fo=/^\s*(?:class|function)\b/,Ro=Co(Fo.exec),Do=!Fo.exec(Io),Zo=function(t){if(!_o(t))return!1;try{return zo(Io,No,t),!0}catch(t){return!1}},Go=function(t){if(!_o(t))return!1;switch(Ao(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Do||!!Ro(Fo,To(t))}catch(t){return!0}};Go.sham=!0;var Vo=!zo||Lo((function(){var t;return Zo(Zo.call)||!Zo(Object)||!Zo((function(){t=!0}))||t}))?Go:Zo,Bo=bo,Uo=Vo,Wo=ot,Ho=pe("species"),qo=Array,Xo=function(t){var e;return Bo(t)&&(e=t.constructor,(Uo(e)&&(e===qo||Bo(e.prototype))||Wo(e)&&null===(e=e[Ho]))&&(e=void 0)),void 0===e?qo:e},$o=function(t,e){return new(Xo(t))(0===e?0:e)},Jo=function(t,e){return mo(t),void 0===e?t:go?vo(t,e):function(){return t.apply(e,arguments)}},Ko=U,Yo=$t,Qo=On,ti=$o,ei=N([].push),ri=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,s=5==t||i;return function(u,c,l,f){for(var p,h,d=Yo(u),m=Ko(d),g=Jo(c,l),v=Qo(m),y=0,b=f||ti,w=e?b(u,v):r||a?b(u,0):void 0;v>y;y++)if((s||y in m)&&(h=g(p=m[y],y,d),t))if(e)w[y]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return y;case 2:ei(w,p)}else switch(t){case 4:return!1;case 7:ei(w,p)}return i?-1:n||o?o:w}},ni={forEach:ri(0),map:ri(1),filter:ri(2),some:ri(3),every:ri(4),find:ri(5),findIndex:ri(6),filterReject:ri(7)},oi=y,ii=mt,ai=pe("species"),si=function(t){return ii>=51||!oi((function(){var e=[];return(e.constructor={})[ai]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ui=ni.map;function ci(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}lo({target:"Array",proto:!0,forced:!si("map")},{map:function(t){return ui(this,t,arguments.length>1?arguments[1]:void 0)}});var li=_t,fi=$t,pi=U,hi=On,di=TypeError,mi=function(t){return function(e,r,n,o){li(r);var i=fi(e),a=pi(i),s=hi(i),u=t?s-1:0,c=t?-1:1;if(n<2)for(;;){if(u in a){o=a[u],u+=c;break}if(u+=c,t?u<0:s<=u)throw di("Reduce of empty array with no initial value")}for(;t?u>=0:s>u;u+=c)u in a&&(o=r(o,a[u],u,i));return o}},gi={left:mi(!1),right:mi(!0)},vi=y,yi=function(t,e){var r=[][t];return!!r&&vi((function(){r.call(null,e||function(){return 1},1)}))},bi="undefined"!=typeof process&&"process"==D(process),wi=gi.left;lo({target:"Array",proto:!0,forced:!bi&&mt>79&&mt<83||!yi("reduce")},{reduce:function(t){var e=arguments.length;return wi(this,t,e,e>1?arguments[1]:void 0)}});var ki=Eo,Oi=ko?{}.toString:function(){return"[object "+ki(this)+"]"};ko||cn(Object.prototype,"toString",Oi,{unsafe:!0});var Si=ni.filter;lo({target:"Array",proto:!0,forced:!si("filter")},{filter:function(t){return Si(this,t,arguments.length>1?arguments[1]:void 0)}});var Mi=function(){function t(){e(this,t)}return n(t,null,[{key:"isAdvancedMarker",value:function(t){return t instanceof google.maps.marker.AdvancedMarkerElement}},{key:"setMap",value:function(t,e){this.isAdvancedMarker(t)?t.map=e:t.setMap(e)}},{key:"getPosition",value:function(t){if(this.isAdvancedMarker(t)){if(t.position){if(t.position instanceof google.maps.LatLng)return t.position;if(t.position.lat&&t.position.lng)return new google.maps.LatLng(t.position.lat,t.position.lng)}return new google.maps.LatLng(null)}return t.getPosition()}},{key:"getVisible",value:function(t){return!!this.isAdvancedMarker(t)||t.getVisible()}}]),t}(),xi=function(){function t(r){var n=r.markers,o=r.position;e(this,t),this.markers=n,o&&(o instanceof google.maps.LatLng?this._position=o:this._position=new google.maps.LatLng(o))}return n(t,[{key:"bounds",get:function(){if(0!==this.markers.length||this._position)return this.markers.reduce((function(t,e){return t.extend(Mi.getPosition(e))}),new google.maps.LatLngBounds(this._position,this._position))}},{key:"position",get:function(){return this._position||this.bounds.getCenter()}},{key:"count",get:function(){return this.markers.filter((function(t){return Mi.getVisible(t)})).length}},{key:"push",value:function(t){this.markers.push(t)}},{key:"delete",value:function(){this.marker&&(Mi.setMap(this.marker,null),delete this.marker),this.markers.length=0}}]),t}(),Pi=function(t,e,r,n){var o=ji(t.getBounds(),e,n);return r.filter((function(t){return o.contains(Mi.getPosition(t))}))},ji=function(t,e,r){var n=Ci(t,e),o=n.northEast,i=n.southWest,a=Li({northEast:o,southWest:i},r);return _i(a,e)},Ei=function(t,e){var r=(e.lat-t.lat)*Math.PI/180,n=(e.lng-t.lng)*Math.PI/180,o=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(o),Math.sqrt(1-o)))},Ci=function(t,e){return{northEast:e.fromLatLngToDivPixel(t.getNorthEast()),southWest:e.fromLatLngToDivPixel(t.getSouthWest())}},Li=function(t,e){var r=t.northEast,n=t.southWest;return r.x+=e,r.y-=e,n.x-=e,n.y+=e,{northEast:r,southWest:n}},_i=function(t,e){var r=t.northEast,n=t.southWest,o=new google.maps.LatLngBounds;return o.extend(e.fromDivPixelToLatLng(r)),o.extend(e.fromDivPixelToLatLng(n)),o},Ai=function(){function t(r){var n=r.maxZoom,o=void 0===n?16:n;e(this,t),this.maxZoom=o}return n(t,[{key:"noop",value:function(t){var e=t.markers;return Ii(e)}}]),t}(),Ti=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.viewportPadding,a=void 0===o?60:o,s=ci(t,["viewportPadding"]);return(n=r.call(this,s)).viewportPadding=60,n.viewportPadding=a,n}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection;return r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e,map:r,mapCanvasProjection:n}),changed:!1}:{clusters:this.cluster({markers:Pi(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}}]),i}(Ai),Ii=function(t){return t.map((function(t){return new xi({position:Mi.getPosition(t),markers:[t]})}))},Ni=je("span").classList,zi=Ni&&Ni.constructor&&Ni.constructor.prototype,Fi=zi===Object.prototype?void 0:zi,Ri=ni.forEach,Di=yi("forEach")?[].forEach:function(t){return Ri(this,t,arguments.length>1?arguments[1]:void 0)},Zi=g,Gi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Vi=Fi,Bi=Di,Ui=or,Wi=function(t){if(t&&t.forEach!==Bi)try{Ui(t,"forEach",Bi)}catch(e){t.forEach=Bi}};for(var Hi in Gi)Gi[Hi]&&Wi(Zi[Hi]&&Zi[Hi].prototype);Wi(Vi);var qi=S;lo({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return qi(URL.prototype.toString,this)}});var Xi=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(o=n;0!=o--;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var a=i[o];if(!t(e[a],r[a]))return!1}return!0}return e!=e&&r!=r},$i=d(Xi),Ji=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.maxDistance,a=void 0===o?4e4:o,s=t.gridSize,u=void 0===s?40:s,c=ci(t,["maxDistance","gridSize"]);return(n=r.call(this,c)).clusters=[],n.maxDistance=a,n.gridSize=u,n.state={zoom:null},n}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection,o={zoom:r.getZoom()},i=!1;return this.state.zoom>this.maxZoom&&o.zoom>this.maxZoom||(i=!$i(this.state,o)),this.state=o,r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e,map:r,mapCanvasProjection:n}),changed:i}:{clusters:this.cluster({markers:Pi(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}},{key:"cluster",value:function(t){var e=this,r=t.markers,n=t.map,o=t.mapCanvasProjection;return this.clusters=[],r.forEach((function(t){e.addToClosestCluster(t,n,o)})),this.clusters}},{key:"addToClosestCluster",value:function(t,e,r){for(var n=this.maxDistance,o=null,i=0;i<this.clusters.length;i++){var a=this.clusters[i],s=Ei(a.bounds.getCenter().toJSON(),Mi.getPosition(t).toJSON());s<n&&(n=s,o=a)}if(o&&ji(o.bounds,r,this.gridSize).contains(Mi.getPosition(t)))o.push(t);else{var u=new xi({markers:[t]});this.clusters.push(u)}}}]),i}(Ti),Ki=function(t){o(i,t);var r=u(i);function i(t){e(this,i);var n=ci(t,[]);return r.call(this,n)}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection;return{clusters:this.cluster({markers:e,map:r,mapCanvasProjection:n}),changed:!1}}},{key:"cluster",value:function(t){return this.noop(t)}}]),i}(Ai),Yi=Tn,Qi=In,ta=Object.keys||function(t){return Yi(t,Qi)},ea=b,ra=N,na=S,oa=y,ia=ta,aa=Fn,sa=M,ua=$t,ca=U,la=Object.assign,fa=Object.defineProperty,pa=ra([].concat),ha=!la||oa((function(){if(ea&&1!==la({b:1},la(fa({},"a",{enumerable:!0,get:function(){fa(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=la({},t)[r]||ia(la({},e)).join("")!=n}))?function(t,e){for(var r=ua(t),n=arguments.length,o=1,i=aa.f,a=sa.f;n>o;)for(var s,u=ca(arguments[o++]),c=i?pa(ia(u),i(u)):ia(u),l=c.length,f=0;l>f;)s=c[f++],ea&&!na(a,u,s)||(r[s]=u[s]);return r}:la,da=ha;function ma(t,e,r,n,o,i){if(o-n<=r)return;const a=n+o>>1;ga(t,e,a,n,o,i%2),ma(t,e,r,n,a-1,i+1),ma(t,e,r,a+1,o,i+1)}function ga(t,e,r,n,o,i){for(;o>n;){if(o-n>600){const a=o-n+1,s=r-n+1,u=Math.log(a),c=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*c*(a-c)/a)*(s-a/2<0?-1:1);ga(t,e,r,Math.max(n,Math.floor(r-s*c/a+l)),Math.min(o,Math.floor(r+(a-s)*c/a+l)),i)}const a=e[2*r+i];let s=n,u=o;for(va(t,e,n,r),e[2*o+i]>a&&va(t,e,n,o);s<u;){for(va(t,e,s,u),s++,u--;e[2*s+i]<a;)s++;for(;e[2*u+i]>a;)u--}e[2*n+i]===a?va(t,e,n,u):(u++,va(t,e,u,o)),u<=r&&(n=u+1),r<=u&&(o=u-1)}}function va(t,e,r,n){ya(t,r,n),ya(e,2*r,2*n),ya(e,2*r+1,2*n+1)}function ya(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function ba(t,e,r,n){const o=t-r,i=e-n;return o*o+i*i}lo({target:"Object",stat:!0,arity:2,forced:Object.assign!==da},{assign:da});const wa=t=>t[0],ka=t=>t[1];class Oa{constructor(t,e=wa,r=ka,n=64,o=Float64Array){this.nodeSize=n,this.points=t;const i=t.length<65536?Uint16Array:Uint32Array,a=this.ids=new i(t.length),s=this.coords=new o(2*t.length);for(let n=0;n<t.length;n++)a[n]=n,s[2*n]=e(t[n]),s[2*n+1]=r(t[n]);ma(a,s,n,0,a.length-1,0)}range(t,e,r,n){return function(t,e,r,n,o,i,a){const s=[0,t.length-1,0],u=[];let c,l;for(;s.length;){const f=s.pop(),p=s.pop(),h=s.pop();if(p-h<=a){for(let a=h;a<=p;a++)c=e[2*a],l=e[2*a+1],c>=r&&c<=o&&l>=n&&l<=i&&u.push(t[a]);continue}const d=Math.floor((h+p)/2);c=e[2*d],l=e[2*d+1],c>=r&&c<=o&&l>=n&&l<=i&&u.push(t[d]);const m=(f+1)%2;(0===f?r<=c:n<=l)&&(s.push(h),s.push(d-1),s.push(m)),(0===f?o>=c:i>=l)&&(s.push(d+1),s.push(p),s.push(m))}return u}(this.ids,this.coords,t,e,r,n,this.nodeSize)}within(t,e,r){return function(t,e,r,n,o,i){const a=[0,t.length-1,0],s=[],u=o*o;for(;a.length;){const c=a.pop(),l=a.pop(),f=a.pop();if(l-f<=i){for(let o=f;o<=l;o++)ba(e[2*o],e[2*o+1],r,n)<=u&&s.push(t[o]);continue}const p=Math.floor((f+l)/2),h=e[2*p],d=e[2*p+1];ba(h,d,r,n)<=u&&s.push(t[p]);const m=(c+1)%2;(0===c?r-o<=h:n-o<=d)&&(a.push(f),a.push(p-1),a.push(m)),(0===c?r+o>=h:n+o>=d)&&(a.push(p+1),a.push(l),a.push(m))}return s}(this.ids,this.coords,t,e,r,this.nodeSize)}}const Sa={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},Ma=Math.fround||(xa=new Float32Array(1),t=>(xa[0]=+t,xa[0]));var xa;class Pa{constructor(t){this.options=Ia(Object.create(Sa),t),this.trees=new Array(this.options.maxZoom+1)}load(t){const{log:e,minZoom:r,maxZoom:n,nodeSize:o}=this.options;e&&console.time("total time");const i=`prepare ${t.length} points`;e&&console.time(i),this.points=t;let a=[];for(let e=0;e<t.length;e++)t[e].geometry&&a.push(Ea(t[e],e));this.trees[n+1]=new Oa(a,Na,za,o,Float32Array),e&&console.timeEnd(i);for(let t=n;t>=r;t--){const r=+Date.now();a=this._cluster(a,t),this.trees[t]=new Oa(a,Na,za,o,Float32Array),e&&console.log("z%d: %d clusters in %dms",t,a.length,+Date.now()-r)}return e&&console.timeEnd("total time"),this}getClusters(t,e){let r=((t[0]+180)%360+360)%360-180;const n=Math.max(-90,Math.min(90,t[1]));let o=180===t[2]?180:((t[2]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,o=180;else if(r>o){const t=this.getClusters([r,n,180,i],e),a=this.getClusters([-180,n,o,i],e);return t.concat(a)}const a=this.trees[this._limitZoom(e)],s=a.range(_a(r),Aa(i),_a(o),Aa(n)),u=[];for(const t of s){const e=a.points[t];u.push(e.numPoints?Ca(e):this.points[e.index])}return u}getChildren(t){const e=this._getOriginId(t),r=this._getOriginZoom(t),n="No cluster with the specified id.",o=this.trees[r];if(!o)throw new Error(n);const i=o.points[e];if(!i)throw new Error(n);const a=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=o.within(i.x,i.y,a),u=[];for(const e of s){const r=o.points[e];r.parentId===t&&u.push(r.numPoints?Ca(r):this.points[r.index])}if(0===u.length)throw new Error(n);return u}getLeaves(t,e,r){e=e||10,r=r||0;const n=[];return this._appendLeaves(n,t,e,r,0),n}getTile(t,e,r){const n=this.trees[this._limitZoom(t)],o=Math.pow(2,t),{extent:i,radius:a}=this.options,s=a/i,u=(r-s)/o,c=(r+1+s)/o,l={features:[]};return this._addTileFeatures(n.range((e-s)/o,u,(e+1+s)/o,c),n.points,e,r,o,l),0===e&&this._addTileFeatures(n.range(1-s/o,u,1,c),n.points,o,r,o,l),e===o-1&&this._addTileFeatures(n.range(0,u,s/o,c),n.points,-1,r,o,l),l.features.length?l:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){const r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e}_appendLeaves(t,e,r,n,o){const i=this.getChildren(e);for(const e of i){const i=e.properties;if(i&&i.cluster?o+i.point_count<=n?o+=i.point_count:o=this._appendLeaves(t,i.cluster_id,r,n,o):o<n?o++:t.push(e),t.length===r)break}return o}_addTileFeatures(t,e,r,n,o,i){for(const a of t){const t=e[a],s=t.numPoints;let u,c,l;if(s)u=La(t),c=t.x,l=t.y;else{const e=this.points[t.index];u=e.properties,c=_a(e.geometry.coordinates[0]),l=Aa(e.geometry.coordinates[1])}const f={type:1,geometry:[[Math.round(this.options.extent*(c*o-r)),Math.round(this.options.extent*(l*o-n))]],tags:u};let p;s?p=t.id:this.options.generateId?p=t.index:this.points[t.index].id&&(p=this.points[t.index].id),void 0!==p&&(f.id=p),i.features.push(f)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){const r=[],{radius:n,extent:o,reduce:i,minPoints:a}=this.options,s=n/(o*Math.pow(2,e));for(let n=0;n<t.length;n++){const o=t[n];if(o.zoom<=e)continue;o.zoom=e;const u=this.trees[e+1],c=u.within(o.x,o.y,s),l=o.numPoints||1;let f=l;for(const t of c){const r=u.points[t];r.zoom>e&&(f+=r.numPoints||1)}if(f>l&&f>=a){let t=o.x*l,a=o.y*l,s=i&&l>1?this._map(o,!0):null;const p=(n<<5)+(e+1)+this.points.length;for(const r of c){const n=u.points[r];if(n.zoom<=e)continue;n.zoom=e;const c=n.numPoints||1;t+=n.x*c,a+=n.y*c,n.parentId=p,i&&(s||(s=this._map(o,!0)),i(s,this._map(n)))}o.parentId=p,r.push(ja(t/f,a/f,p,f,s))}else if(r.push(o),f>1)for(const t of c){const n=u.points[t];n.zoom<=e||(n.zoom=e,r.push(n))}}return r}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e){if(t.numPoints)return e?Ia({},t.properties):t.properties;const r=this.points[t.index].properties,n=this.options.map(r);return e&&n===r?Ia({},n):n}}function ja(t,e,r,n,o){return{x:Ma(t),y:Ma(e),zoom:1/0,id:r,parentId:-1,numPoints:n,properties:o}}function Ea(t,e){const[r,n]=t.geometry.coordinates;return{x:Ma(_a(r)),y:Ma(Aa(n)),zoom:1/0,index:e,parentId:-1}}function Ca(t){return{type:"Feature",id:t.id,properties:La(t),geometry:{type:"Point",coordinates:[(e=t.x,360*(e-.5)),Ta(t.y)]}};var e}function La(t){const e=t.numPoints,r=e>=1e4?`${Math.round(e/1e3)}k`:e>=1e3?Math.round(e/100)/10+"k":e;return Ia(Ia({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function _a(t){return t/360+.5}function Aa(t){const e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function Ta(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}function Ia(t,e){for(const r in e)t[r]=e[r];return t}function Na(t){return t.x}function za(t){return t.y}var Fa=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.maxZoom,a=t.radius,s=void 0===a?60:a,u=ci(t,["maxZoom","radius"]);return(n=r.call(this,{maxZoom:o})).superCluster=new Pa(Object.assign({maxZoom:n.maxZoom,radius:s},u)),n.state={zoom:null},n}return n(i,[{key:"calculate",value:function(t){var e=!1;if(!$i(t.markers,this.markers)){e=!0,this.markers=l(t.markers);var r=this.markers.map((function(t){return{type:"Feature",geometry:{type:"Point",coordinates:[Mi.getPosition(t).lng(),Mi.getPosition(t).lat()]},properties:{marker:t}}}));this.superCluster.load(r)}var n={zoom:t.map.getZoom()};return e||this.state.zoom>this.maxZoom&&n.zoom>this.maxZoom||(e=e||!$i(this.state,n)),this.state=n,e&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:e}}},{key:"cluster",value:function(t){var e=t.map;return this.superCluster.getClusters([-180,-90,180,90],Math.round(e.getZoom())).map(this.transformCluster.bind(this))}},{key:"transformCluster",value:function(t){var e=c(t.geometry.coordinates,2),r=e[0],n=e[1],o=t.properties;if(o.cluster)return new xi({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(t){return t.properties.marker})),position:new google.maps.LatLng({lat:n,lng:r})});var i=o.marker;return new xi({markers:[i],position:Mi.getPosition(i)})}}]),i}(Ai),Ra={},Da=b,Za=Ze,Ga=De,Va=Ue,Ba=K,Ua=ta;Ra.f=Da&&!Za?Object.defineProperties:function(t,e){Va(t);for(var r,n=Ba(e),o=Ua(e),i=o.length,a=0;i>a;)Ga.f(t,r=o[a++],n[r]);return t};var Wa,Ha=st("document","documentElement"),qa=Ue,Xa=Ra,$a=In,Ja=xr,Ka=Ha,Ya=je,Qa="prototype",ts="script",es=Mr("IE_PROTO"),rs=function(){},ns=function(t){return"<"+ts+">"+t+"</"+ts+">"},os=function(t){t.write(ns("")),t.close();var e=t.parentWindow.Object;return t=null,e},is=function(){try{Wa=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;is="undefined"!=typeof document?document.domain&&Wa?os(Wa):(e=Ya("iframe"),r="java"+ts+":",e.style.display="none",Ka.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(ns("document.F=Object")),t.close(),t.F):os(Wa);for(var n=$a.length;n--;)delete is[Qa][$a[n]];return is()};Ja[es]=!0;var as=pe,ss=Object.create||function(t,e){var r;return null!==t?(rs[Qa]=qa(t),r=new rs,rs[Qa]=null,r[es]=t):r=is(),void 0===e?r:Xa.f(r,e)},us=De.f,cs=as("unscopables"),ls=Array.prototype;null==ls[cs]&&us(ls,cs,{configurable:!0,value:ss(null)});var fs=jn.includes,ps=function(t){ls[cs][t]=!0};lo({target:"Array",proto:!0,forced:y((function(){return!Array(1).includes()}))},{includes:function(t){return fs(this,t,arguments.length>1?arguments[1]:void 0)}}),ps("includes");var hs=ot,ds=D,ms=pe("match"),gs=function(t){var e;return hs(t)&&(void 0!==(e=t[ms])?!!e:"RegExp"==ds(t))},vs=TypeError,ys=Eo,bs=String,ws=function(t){if("Symbol"===ys(t))throw TypeError("Cannot convert a Symbol value to a string");return bs(t)},ks=pe("match"),Os=lo,Ss=function(t){if(gs(t))throw vs("The method doesn't accept regular expressions");return t},Ms=X,xs=ws,Ps=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[ks]=!1,"/./"[t](e)}catch(t){}}return!1},js=N("".indexOf);Os({target:"String",proto:!0,forced:!Ps("includes")},{includes:function(t){return!!~js(xs(Ms(this)),xs(Ss(t)),arguments.length>1?arguments[1]:void 0)}});var Es=lo,Cs=jn.indexOf,Ls=yi,_s=ho([].indexOf),As=!!_s&&1/_s([1],1,-0)<0;Es({target:"Array",proto:!0,forced:As||!Ls("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return As?_s(this,t,e)||0:Cs(this,t,e)}});var Ts=b,Is=bo,Ns=TypeError,zs=Object.getOwnPropertyDescriptor,Fs=Ts&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),Rs=TypeError,Ds=Se,Zs=De,Gs=L,Vs=jt,Bs=TypeError,Us=lo,Ws=$t,Hs=yn,qs=dn,Xs=On,$s=Fs?function(t,e){if(Is(t)&&!zs(t,"length").writable)throw Ns("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Js=function(t){if(t>9007199254740991)throw Rs("Maximum allowed index exceeded");return t},Ks=$o,Ys=function(t,e,r){var n=Ds(e);n in t?Zs.f(t,n,Gs(0,r)):t[n]=r},Qs=function(t,e){if(!delete t[e])throw Bs("Cannot delete property "+Vs(e)+" of "+Vs(t))},tu=si("splice"),eu=Math.max,ru=Math.min;Us({target:"Array",proto:!0,forced:!tu},{splice:function(t,e){var r,n,o,i,a,s,u=Ws(this),c=Xs(u),l=Hs(t,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-l):(r=f-2,n=ru(eu(qs(e),0),c-l)),Js(c+r-n),o=Ks(u,n),i=0;i<n;i++)(a=l+i)in u&&Ys(o,i,u[a]);if(o.length=n,r<n){for(i=l;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:Qs(u,s);for(i=c;i>c-n+r;i--)Qs(u,i-1)}else if(r>n)for(i=c-n;i>l;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:Qs(u,s);for(i=0;i<r;i++)u[i+l]=arguments[i+2];return $s(u,c-n+r),o}});var nu=g,ou=N,iu=_t,au=et,su=String,uu=TypeError,cu=function(t,e,r){try{return ou(iu(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},lu=Ue,fu=function(t){if("object"==typeof t||au(t))return t;throw uu("Can't set "+su(t)+" as a prototype")},pu=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=cu(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return lu(r),fu(n),e?t(r,n):r.__proto__=n,r}}():void 0),hu=et,du=ot,mu=pu,gu=N(1..valueOf),vu=X,yu=ws,bu="\t\n\v\f\r                 \u2028\u2029\ufeff",wu=N("".replace),ku=RegExp("^["+bu+"]+"),Ou=RegExp("(^|[^"+bu+"])["+bu+"]+$"),Su=function(t){return function(e){var r=yu(vu(e));return 1&t&&(r=wu(r,ku,"")),2&t&&(r=wu(r,Ou,"$1")),r}},Mu={start:Su(1),end:Su(2),trim:Su(3)},xu=lo,Pu=b,ju=g,Eu=nu,Cu=N,Lu=ro,_u=Yt,Au=function(t,e,r){var n,o;return mu&&hu(n=e.constructor)&&n!==r&&du(o=n.prototype)&&o!==r.prototype&&mu(t,o),t},Tu=ut,Iu=xt,Nu=we,zu=y,Fu=ln.f,Ru=v.f,Du=De.f,Zu=gu,Gu=Mu.trim,Vu="Number",Bu=ju[Vu];Eu[Vu];var Uu=Bu.prototype,Wu=ju.TypeError,Hu=Cu("".slice),qu=Cu("".charCodeAt),Xu=function(t){var e,r,n,o,i,a,s,u,c=Nu(t,"number");if(Iu(c))throw Wu("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=Gu(c),43===(e=qu(c,0))||45===e){if(88===(r=qu(c,2))||120===r)return NaN}else if(48===e){switch(qu(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=Hu(c,2)).length,s=0;s<a;s++)if((u=qu(i,s))<48||u>o)return NaN;return parseInt(i,n)}return+c},$u=Lu(Vu,!Bu(" 0o1")||!Bu("0b1")||Bu("+0x1")),Ju=function(t){var e,r=arguments.length<1?0:Bu(function(t){var e=Nu(t,"number");return"bigint"==typeof e?e:Xu(e)}(t));return Tu(Uu,e=this)&&zu((function(){Zu(e)}))?Au(Object(r),this,Ju):r};Ju.prototype=Uu,$u&&(Uu.constructor=Ju),xu({global:!0,constructor:!0,wrap:!0,forced:$u},{Number:Ju});$u&&function(t,e){for(var r,n=Pu?Fu(e):"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(","),o=0;n.length>o;o++)_u(e,r=n[o])&&!_u(t,r)&&Du(t,r,Ru(e,r))}(Eu[Vu],Bu);var Ku=n((function t(r,n){e(this,t),this.markers={sum:r.length};var o=n.map((function(t){return t.count})),i=o.reduce((function(t,e){return t+e}),0);this.clusters={count:n.length,markers:{mean:i/n.length,sum:i,min:Math.min.apply(Math,l(o)),max:Math.max.apply(Math,l(o))}}})),Yu=function(){function t(){e(this,t)}return n(t,[{key:"render",value:function(t,e,r){var n=t.count,o=t.position,i=n>Math.max(10,e.clusters.markers.mean)?"#ff0000":"#0000ff",a='<svg fill="'.concat(i,'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240">\n <circle cx="120" cy="120" opacity=".6" r="70" />\n <circle cx="120" cy="120" opacity=".3" r="90" />\n <circle cx="120" cy="120" opacity=".2" r="110" />\n </svg>'),s="Cluster of ".concat(n," markers"),u=Number(google.maps.Marker.MAX_ZINDEX)+n;if(google.maps.marker&&r.getMapCapabilities().isAdvancedMarkersAvailable){var c=document.createElement("div");c.innerHTML=a;var l=c.firstElementChild;l.setAttribute("width","50"),l.setAttribute("height","50");var f=document.createElementNS("http://www.w3.org/2000/svg","text");f.setAttribute("x","50%"),f.setAttribute("y","50%"),f.setAttribute("style","fill: #FFF"),f.setAttribute("text-anchor","middle"),f.setAttribute("font-size","50"),f.setAttribute("dominant-baseline","middle"),f.appendChild(document.createTextNode("".concat(n))),l.appendChild(f);var p={map:r,position:o,zIndex:u,title:s,content:c.firstElementChild};return new google.maps.marker.AdvancedMarkerElement(p)}var h={position:o,zIndex:u,title:s,icon:{url:"data:image/svg+xml;base64,".concat(window.btoa(a)),scaledSize:new google.maps.Size(45,45)},label:{text:String(n),color:"rgba(255,255,255,0.9)",fontSize:"12px"}};return new google.maps.Marker(h)}}]),t}();var Qu,tc=n((function t(){e(this,t),function(t,e){for(var r in e.prototype)t.prototype[r]=e.prototype[r]}(t,google.maps.OverlayView)}));t.MarkerClustererEvents=void 0,(Qu=t.MarkerClustererEvents||(t.MarkerClustererEvents={})).CLUSTERING_BEGIN="clusteringbegin",Qu.CLUSTERING_END="clusteringend",Qu.CLUSTER_CLICK="click";var ec=function(t,e,r){r.fitBounds(e.bounds)},rc=function(r){o(a,r);var i=u(a);function a(t){var r,n=t.map,o=t.markers,s=void 0===o?[]:o,u=t.algorithm,c=void 0===u?new Fa({}):u,f=t.renderer,p=void 0===f?new Yu:f,h=t.onClusterClick,d=void 0===h?ec:h;return e(this,a),(r=i.call(this)).markers=l(s),r.clusters=[],r.algorithm=c,r.renderer=p,r.onClusterClick=d,n&&r.setMap(n),r}return n(a,[{key:"addMarker",value:function(t,e){this.markers.includes(t)||(this.markers.push(t),e||this.render())}},{key:"addMarkers",value:function(t,e){var r=this;t.forEach((function(t){r.addMarker(t,!0)})),e||this.render()}},{key:"removeMarker",value:function(t,e){var r=this.markers.indexOf(t);return-1!==r&&(Mi.setMap(t,null),this.markers.splice(r,1),e||this.render(),!0)}},{key:"removeMarkers",value:function(t,e){var r=this,n=!1;return t.forEach((function(t){n=r.removeMarker(t,!0)||n})),n&&!e&&this.render(),n}},{key:"clearMarkers",value:function(t){this.markers.length=0,t||this.render()}},{key:"render",value:function(){var e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_BEGIN,this),this.markers.forEach((function(t){t.addListener("animation_changed",(function(){console.log("animation_changed")}))}));var r=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()}),n=r.clusters,o=r.changed;(o||null==o)&&(this.reset(),this.clusters=n,this.renderClusters()),google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_END,this)}}},{key:"onAdd",value:function(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}},{key:"onRemove",value:function(){google.maps.event.removeListener(this.idleListener),this.reset()}},{key:"reset",value:function(){this.markers.forEach((function(t){return Mi.setMap(t,null)})),this.clusters.forEach((function(t){return t.delete()})),this.clusters=[]}},{key:"renderClusters",value:function(){var e=this,r=new Ku(this.markers,this.clusters),n=this.getMap();this.clusters.forEach((function(o){1===o.markers.length?o.marker=o.markers[0]:(o.marker=e.renderer.render(o,r,n),e.onClusterClick&&o.marker.addListener("click",(function(r){google.maps.event.trigger(e,t.MarkerClustererEvents.CLUSTER_CLICK,o),e.onClusterClick(r,o,n)}))),Mi.setMap(o.marker,n)}))}}]),a}(tc);t.AbstractAlgorithm=Ai,t.AbstractViewportAlgorithm=Ti,t.Cluster=xi,t.ClusterStats=Ku,t.DefaultRenderer=Yu,t.GridAlgorithm=Ji,t.MarkerClusterer=rc,t.NoopAlgorithm=Ki,t.SuperClusterAlgorithm=Fa,t.defaultOnClusterClickHandler=ec,t.distanceBetweenPoints=Ei,t.extendBoundsToPaddedViewport=ji,t.extendPixelBounds=Li,t.filterMarkersToPaddedViewport=Pi,t.noop=Ii,t.pixelBoundsToLatLngBounds=_i,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=index.umd.js.map
{
"name": "@googlemaps/markerclusterer",
"version": "2.1.0-beta.1",
"version": "2.1.0-beta.2",
"description": "Creates and manages per-zoom-level clusters for large amounts of markers.",

@@ -45,4 +45,4 @@ "keywords": [

"@babel/runtime-corejs3": "^7.11.2",
"@googlemaps/jest-mocks": "^2.0.0",
"@googlemaps/js-api-loader": "^1.12.3",
"@googlemaps/jest-mocks": "^2.19.0",
"@rollup/plugin-babel": "^6.0.0",

@@ -49,0 +49,0 @@ "@rollup/plugin-commonjs": "^24.0.0",

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc