Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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.2.0-beta.1 to 2.2.0-beta.2

40

dist/index.esm.js

@@ -793,9 +793,36 @@ import equal from 'fast-deep-equal';

});
// allow algorithms to return flag on whether the clusters/markers have changed
// Allow algorithms to return flag on whether the clusters/markers have changed.
if (changed || changed == undefined) {
// reset visibility of markers and clusters
this.reset();
// store new clusters
// Accumulate the markers of the clusters composed of a single marker.
// Those clusters directly use the marker.
// Clusters with more than one markers use a group marker generated by a renderer.
const singleMarker = new Set();
for (const cluster of clusters) {
if (cluster.markers.length == 1) {
singleMarker.add(cluster.markers[0]);
}
}
const groupMarkers = [];
// Iterate the clusters that are currently rendered.
for (const cluster of this.clusters) {
if (cluster.marker == null) {
continue;
}
if (cluster.markers.length == 1) {
if (!singleMarker.has(cluster.marker)) {
// The marker:
// - was previously rendered because it is from a cluster with 1 marker,
// - should no more be rendered as it is not in singleMarker.
MarkerUtils.setMap(cluster.marker, null);
}
}
else {
// Delay the removal of old group markers to avoid flickering.
groupMarkers.push(cluster.marker);
}
}
this.clusters = clusters;
this.renderClusters();
// Delayed removal of the markers of the former groups.
requestAnimationFrame(() => groupMarkers.forEach((marker) => MarkerUtils.setMap(marker, null)));
}

@@ -819,3 +846,3 @@ google.maps.event.trigger(this, MarkerClustererEvents.CLUSTERING_END, this);

renderClusters() {
// generate stats to pass to renderers
// Generate stats to pass to renderers.
const stats = new ClusterStats(this.markers, this.clusters);

@@ -828,3 +855,6 @@ const map = this.getMap();

else {
// Generate the marker to represent the group.
cluster.marker = this.renderer.render(cluster, stats, map);
// Make sure all individual markers are removed from the map.
cluster.markers.forEach((marker) => MarkerUtils.setMap(marker, null));
if (this.onClusterClick) {

@@ -831,0 +861,0 @@ cluster.marker.addListener("click",

2

dist/index.min.js

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

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&&s(t,e)}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function a(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 a(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,s,a=[],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)&&(a.push(n.value),a.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(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 h(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 h(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)?h(t,e):void 0}}function h(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 p="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 p&&p)||function(){return this}()||p||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,O=Function.prototype.call,S=k?O.bind(O):function(){return O.apply(O,arguments)},E={},M={}.propertyIsEnumerable,x=Object.getOwnPropertyDescriptor,j=x&&!M.call({1:2},1);E.f=j?function(t){var e=x(this,t);return!!e&&e.enumerable}:M;var A,P,_=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},C=w,T=Function.prototype,L=T.call,I=C&&T.bind.bind(L,L),N=C?I:function(t){return function(){return L.apply(t,arguments)}},D=N,F=D({}.toString),R=D("".slice),z=function(t){return R(F(t),8,-1)},Z=v,U=z,B=Object,G=N("".split),V=Z((function(){return!B("z").propertyIsEnumerable(0)}))?function(t){return"String"==U(t)?G(t,""):B(t)}:B,W=function(t){return null==t},$=W,H=TypeError,q=function(t){if($(t))throw H("Can't call method on "+t);return t},X=V,Y=q,K=function(t){return X(Y(t))},J="object"==typeof document&&document.all,Q={all:J,IS_HTMLDDA:void 0===J&&void 0!==J},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,st=et,at=function(t,e){return arguments.length<2?(r=it[t],st(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,ht=ct.Deno,pt=ft&&ft.versions||ht&&ht.version,dt=pt&&pt.v8;dt&&(P=(A=dt.split("."))[0]>0&&A[0]<4?1:+(A[0]+A[1])),!P&&lt&&(!(A=lt.match(/Edge\/(\d+)/))||A[1]>=74)&&(A=lt.match(/Chrome\/(\d+)/))&&(P=+A[1]);var mt=P,gt=mt,yt=v,vt=g.String,bt=!!Object.getOwnPropertySymbols&&!yt((function(){var t=Symbol();return!vt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&gt&&gt<41})),wt=bt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,kt=at,Ot=et,St=ut,Et=Object,Mt=wt?function(t){return"symbol"==typeof t}:function(t){var e=kt("Symbol");return Ot(e)&&St(e.prototype,Et(t))},xt=String,jt=function(t){try{return xt(t)}catch(t){return"Object"}},At=et,Pt=jt,_t=TypeError,Ct=function(t){if(At(t))return t;throw _t(Pt(t)+" is not a function")},Tt=Ct,Lt=W,It=S,Nt=et,Dt=ot,Ft=TypeError,Rt={exports:{}},zt=g,Zt=Object.defineProperty,Ut=function(t,e){try{Zt(zt,t,{value:e,configurable:!0,writable:!0})}catch(r){zt[t]=e}return e},Bt=Ut,Gt="__core-js_shared__",Vt=g[Gt]||Bt(Gt,{}),Wt=Vt;(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 $t=Rt.exports,Ht=q,qt=Object,Xt=function(t){return qt(Ht(t))},Yt=Xt,Kt=N({}.hasOwnProperty),Jt=Object.hasOwn||function(t,e){return Kt(Yt(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=$t,ie=Jt,se=ne,ae=bt,ue=wt,ce=g.Symbol,le=oe("wks"),fe=ue?ce.for||ce:ce&&ce.withoutSetter||se,he=function(t){return ie(le,t)||(le[t]=ae&&ie(ce,t)?ce[t]:fe("Symbol."+t)),le[t]},pe=S,de=ot,me=Mt,ge=function(t,e){var r=t[e];return Lt(r)?void 0:Tt(r)},ye=function(t,e){var r,n;if("string"===e&&Nt(r=t.toString)&&!Dt(n=It(r,t)))return n;if(Nt(r=t.valueOf)&&!Dt(n=It(r,t)))return n;if("string"!==e&&Nt(r=t.toString)&&!Dt(n=It(r,t)))return n;throw Ft("Can't convert object to primitive value")},ve=TypeError,be=he("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=pe(n,t,e),!de(r)||me(r))return r;throw ve("Can't convert object to primitive value")}return void 0===e&&(e="number"),ye(t,e)},ke=we,Oe=Mt,Se=function(t){var e=ke(t,"string");return Oe(e)?e:e+""},Ee=ot,Me=g.document,xe=Ee(Me)&&Ee(Me.createElement),je=function(t){return xe?Me.createElement(t):{}},Ae=je,Pe=!b&&!v((function(){return 7!=Object.defineProperty(Ae("div"),"a",{get:function(){return 7}}).a})),_e=b,Ce=S,Te=E,Le=_,Ie=K,Ne=Se,De=Jt,Fe=Pe,Re=Object.getOwnPropertyDescriptor;y.f=_e?Re:function(t,e){if(t=Ie(t),e=Ne(e),Fe)try{return Re(t,e)}catch(t){}if(De(t,e))return Le(!Ce(Te.f,t,e),t[e])};var ze={},Ze=b&&v((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ue=ot,Be=String,Ge=TypeError,Ve=function(t){if(Ue(t))return t;throw Ge(Be(t)+" is not an object")},We=b,$e=Pe,He=Ze,qe=Ve,Xe=Se,Ye=TypeError,Ke=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,Qe="enumerable",tr="configurable",er="writable";ze.f=We?He?function(t,e,r){if(qe(t),e=Xe(e),qe(r),"function"==typeof t&&"prototype"===e&&"value"in r&&er in r&&!r[er]){var n=Je(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(qe(t),e=Xe(e),qe(r),$e)try{return Ke(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Ye("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var rr=ze,nr=_,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:{}},sr=b,ar=Jt,ur=Function.prototype,cr=sr&&Object.getOwnPropertyDescriptor,lr=ar(ur,"name"),fr={EXISTS:lr,PROPER:lr&&"something"===function(){}.name,CONFIGURABLE:lr&&(!sr||sr&&cr(ur,"name").configurable)},hr=et,pr=Vt,dr=N(Function.toString);hr(pr.inspectSource)||(pr.inspectSource=function(t){return dr(t)});var mr,gr,yr,vr=pr.inspectSource,br=et,wr=g.WeakMap,kr=br(wr)&&/native code/.test(String(wr)),Or=ne,Sr=$t("keys"),Er=function(t){return Sr[t]||(Sr[t]=Or(t))},Mr={},xr=kr,jr=g,Ar=ot,Pr=or,_r=Jt,Cr=Vt,Tr=Er,Lr=Mr,Ir="Object already initialized",Nr=jr.TypeError,Dr=jr.WeakMap;if(xr||Cr.state){var Fr=Cr.state||(Cr.state=new Dr);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)||{}},yr=function(t){return Fr.has(t)}}else{var Rr=Tr("state");Lr[Rr]=!0,mr=function(t,e){if(_r(t,Rr))throw Nr(Ir);return e.facade=t,Pr(t,Rr,e),e},gr=function(t){return _r(t,Rr)?t[Rr]:{}},yr=function(t){return _r(t,Rr)}}var zr={set:mr,get:gr,has:yr,enforce:function(t){return yr(t)?gr(t):mr(t,{})},getterFor:function(t){return function(e){var r;if(!Ar(e)||(r=gr(e)).type!==t)throw Nr("Incompatible receiver, "+t+" required");return r}}},Zr=N,Ur=v,Br=et,Gr=Jt,Vr=b,Wr=fr.CONFIGURABLE,$r=vr,Hr=zr.enforce,qr=zr.get,Xr=String,Yr=Object.defineProperty,Kr=Zr("".slice),Jr=Zr("".replace),Qr=Zr([].join),tn=Vr&&!Ur((function(){return 8!==Yr((function(){}),"length",{value:8}).length})),en=String(String).split("String"),rn=ir.exports=function(t,e,r){"Symbol("===Kr(Xr(e),0,7)&&(e="["+Jr(Xr(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Gr(t,"name")||Wr&&t.name!==e)&&(Vr?Yr(t,"name",{value:e,configurable:!0}):t.name=e),tn&&r&&Gr(r,"arity")&&t.length!==r.arity&&Yr(t,"length",{value:r.arity});try{r&&Gr(r,"constructor")&&r.constructor?Vr&&Yr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Hr(t);return Gr(n,"source")||(n.source=Qr(en,"string"==typeof e?e:"")),t};Function.prototype.toString=rn((function(){return Br(this)&&qr(this).source||$r(this)}),"toString");var nn=ir.exports,on=et,sn=ze,an=nn,un=Ut,cn=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(on(r)&&an(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:sn.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},ln={},fn=Math.ceil,hn=Math.floor,pn=Math.trunc||function(t){var e=+t;return(e>0?hn:fn)(e)},dn=function(t){var e=+t;return e!=e||0===e?0:pn(e)},mn=dn,gn=Math.max,yn=Math.min,vn=function(t,e){var r=mn(t);return r<0?gn(r+e,0):yn(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,En=vn,Mn=On,xn=function(t){return function(e,r,n){var o,i=Sn(e),s=Mn(i),a=En(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}},jn={includes:xn(!0),indexOf:xn(!1)},An=Jt,Pn=K,_n=jn.indexOf,Cn=Mr,Tn=N([].push),Ln=function(t,e){var r,n=Pn(t),o=0,i=[];for(r in n)!An(Cn,r)&&An(n,r)&&Tn(i,r);for(;e.length>o;)An(n,r=e[o++])&&(~_n(i,r)||Tn(i,r));return i},In=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nn=Ln,Dn=In.concat("length","prototype");ln.f=Object.getOwnPropertyNames||function(t){return Nn(t,Dn)};var Fn={};Fn.f=Object.getOwnPropertySymbols;var Rn=at,zn=ln,Zn=Fn,Un=Ve,Bn=N([].concat),Gn=Rn("Reflect","ownKeys")||function(t){var e=zn.f(Un(t)),r=Zn.f;return r?Bn(e,r(t)):e},Vn=Jt,Wn=Gn,$n=y,Hn=ze,qn=v,Xn=et,Yn=/#|\.prototype\./,Kn=function(t,e){var r=Qn[Jn(t)];return r==eo||r!=to&&(Xn(e)?qn(e):!!e)},Jn=Kn.normalize=function(t){return String(t).replace(Yn,".").toLowerCase()},Qn=Kn.data={},to=Kn.NATIVE="N",eo=Kn.POLYFILL="P",ro=Kn,no=g,oo=y.f,io=or,so=cn,ao=Ut,uo=function(t,e,r){for(var n=Wn(e),o=Hn.f,i=$n.f,s=0;s<n.length;s++){var a=n[s];Vn(t,a)||r&&Vn(r,a)||o(t,a,i(e,a))}},co=ro,lo=function(t,e){var r,n,o,i,s,a=t.target,u=t.global,c=t.stat;if(r=u?no:c?no[a]||ao(a,{}):(no[a]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(s=oo(r,n))&&s.value:r[n],!co(u?n:a+(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),so(r,n,i,t)}},fo=z,ho=N,po=function(t){if("Function"===fo(t))return ho(t)},mo=Ct,go=w,yo=po(po.bind),vo=z,bo=Array.isArray||function(t){return"Array"==vo(t)},wo={};wo[he("toStringTag")]="z";var ko="[object z]"===String(wo),Oo=ko,So=et,Eo=z,Mo=he("toStringTag"),xo=Object,jo="Arguments"==Eo(function(){return arguments}()),Ao=Oo?Eo: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=xo(t),Mo))?r:jo?Eo(e):"Object"==(n=Eo(e))&&So(e.callee)?"Arguments":n},Po=N,_o=v,Co=et,To=Ao,Lo=vr,Io=function(){},No=[],Do=at("Reflect","construct"),Fo=/^\s*(?:class|function)\b/,Ro=Po(Fo.exec),zo=!Fo.exec(Io),Zo=function(t){if(!Co(t))return!1;try{return Do(Io,No,t),!0}catch(t){return!1}},Uo=function(t){if(!Co(t))return!1;switch(To(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return zo||!!Ro(Fo,Lo(t))}catch(t){return!0}};Uo.sham=!0;var Bo=!Do||_o((function(){var t;return Zo(Zo.call)||!Zo(Object)||!Zo((function(){t=!0}))||t}))?Uo:Zo,Go=bo,Vo=Bo,Wo=ot,$o=he("species"),Ho=Array,qo=function(t){var e;return Go(t)&&(e=t.constructor,(Vo(e)&&(e===Ho||Go(e.prototype))||Wo(e)&&null===(e=e[$o]))&&(e=void 0)),void 0===e?Ho:e},Xo=function(t,e){return new(qo(t))(0===e?0:e)},Yo=function(t,e){return mo(t),void 0===e?t:go?yo(t,e):function(){return t.apply(e,arguments)}},Ko=V,Jo=Xt,Qo=On,ti=Xo,ei=N([].push),ri=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,s=7==t,a=5==t||i;return function(u,c,l,f){for(var h,p,d=Jo(u),m=Ko(d),g=Yo(c,l),y=Qo(m),v=0,b=f||ti,w=e?b(u,y):r||s?b(u,0):void 0;y>v;v++)if((a||v in m)&&(p=g(h=m[v],v,d),t))if(e)w[v]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return v;case 2:ei(w,h)}else switch(t){case 4:return!1;case 7:ei(w,h)}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=v,ii=mt,si=he("species"),ai=function(t){return ii>=51||!oi((function(){var e=[];return(e.constructor={})[si]=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:!ai("map")},{map:function(t){return ui(this,t,arguments.length>1?arguments[1]:void 0)}});var li=ni.filter;lo({target:"Array",proto:!0,forced:!ai("filter")},{filter:function(t){return li(this,t,arguments.length>1?arguments[1]:void 0)}});var fi=Ao,hi=ko?{}.toString:function(){return"[object "+fi(this)+"]"};ko||cn(Object.prototype,"toString",hi,{unsafe:!0});var pi=function(){function t(){e(this,t)}return n(t,null,[{key:"isAdvancedMarker",value:function(t){return google.maps.marker&&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}(),di=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){var t,e=new google.maps.LatLngBounds(this._position,this._position),r=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=f(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){a=!0,i=t},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}(this.markers);try{for(r.s();!(t=r.n()).done;){var n=t.value;e.extend(pi.getPosition(n))}}catch(t){r.e(t)}finally{r.f()}return e}}},{key:"position",get:function(){return this._position||this.bounds.getCenter()}},{key:"count",get:function(){return this.markers.filter((function(t){return pi.getVisible(t)})).length}},{key:"push",value:function(t){this.markers.push(t)}},{key:"delete",value:function(){this.marker&&(pi.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}]),t}(),mi=function(t,e,r,n){var o=gi(t.getBounds(),e,n);return r.filter((function(t){return o.contains(pi.getPosition(t))}))},gi=function(t,e,r){var n=vi(t,e),o=n.northEast,i=n.southWest,s=bi({northEast:o,southWest:i},r);return wi(s,e)},yi=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),i=Math.sin(n/2),s=o*o+Math.cos(t.lat*Math.PI/180)*Math.cos(e.lat*Math.PI/180)*i*i;return 6371*(2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s)))},vi=function(t,e){return{northEast:e.fromLatLngToDivPixel(t.getNorthEast()),southWest:e.fromLatLngToDivPixel(t.getSouthWest())}},bi=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}},wi=function(t,e){var r=t.northEast,n=t.southWest,o=e.fromDivPixelToLatLng(n),i=e.fromDivPixelToLatLng(r);return new google.maps.LatLngBounds(o,i)},ki=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 Si(e)}}]),t}(),Oi=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.viewportPadding,s=void 0===o?60:o,a=ci(t,["viewportPadding"]);return(n=r.call(this,a)).viewportPadding=60,n.viewportPadding=s,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}),changed:!1}:{clusters:this.cluster({markers:mi(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}}]),i}(ki),Si=function(t){return t.map((function(t){return new di({position:pi.getPosition(t),markers:[t]})}))},Ei=je("span").classList,Mi=Ei&&Ei.constructor&&Ei.constructor.prototype,xi=Mi===Object.prototype?void 0:Mi,ji=v,Ai=function(t,e){var r=[][t];return!!r&&ji((function(){r.call(null,e||function(){return 1},1)}))},Pi=ni.forEach,_i=Ai("forEach")?[].forEach:function(t){return Pi(this,t,arguments.length>1?arguments[1]:void 0)},Ci=g,Ti={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},Li=xi,Ii=_i,Ni=or,Di=function(t){if(t&&t.forEach!==Ii)try{Ni(t,"forEach",Ii)}catch(e){t.forEach=Ii}};for(var Fi in Ti)Ti[Fi]&&Di(Ci[Fi]&&Ci[Fi].prototype);Di(Li);var Ri=S;lo({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return Ri(URL.prototype.toString,this)}});var zi=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},Zi=d(zi),Ui=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.maxDistance,s=void 0===o?4e4:o,a=t.gridSize,u=void 0===a?40:a,c=ci(t,["maxDistance","gridSize"]);return(n=r.call(this,c)).clusters=[],n.maxDistance=s,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=!Zi(this.state,o)),this.state=o,r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e}),changed:i}:{clusters:this.cluster({markers:mi(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 s=this.clusters[i],a=yi(s.bounds.getCenter().toJSON(),pi.getPosition(t).toJSON());a<n&&(n=a,o=s)}if(o&&gi(o.bounds,r,this.gridSize).contains(pi.getPosition(t)))o.push(t);else{var u=new di({markers:[t]});this.clusters.push(u)}}}]),i}(Oi),Bi=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}(ki),Gi=Ln,Vi=In,Wi=Object.keys||function(t){return Gi(t,Vi)},$i=b,Hi=N,qi=S,Xi=v,Yi=Wi,Ki=Fn,Ji=E,Qi=Xt,ts=V,es=Object.assign,rs=Object.defineProperty,ns=Hi([].concat),os=!es||Xi((function(){if($i&&1!==es({b:1},es(rs({},"a",{enumerable:!0,get:function(){rs(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!=es({},t)[r]||Yi(es({},e)).join("")!=n}))?function(t,e){for(var r=Qi(t),n=arguments.length,o=1,i=Ki.f,s=Ji.f;n>o;)for(var a,u=ts(arguments[o++]),c=i?ns(Yi(u),i(u)):Yi(u),l=c.length,f=0;l>f;)a=c[f++],$i&&!qi(s,u,a)||(r[a]=u[a]);return r}:es,is=os;lo({target:"Object",stat:!0,arity:2,forced:Object.assign!==is},{assign:is});const ss=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class as{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[e,r]=new Uint8Array(t,0,2);if(219!==e)throw new Error("Data does not appear to be in a KDBush format.");const n=r>>4;if(1!==n)throw new Error(`Got v${n} data when expected v1.`);const o=ss[15&r];if(!o)throw new Error("Unrecognized array type.");const[i]=new Uint16Array(t,2,1),[s]=new Uint32Array(t,4,1);return new as(s,i,o,t)}constructor(t,e=64,r=Float64Array,n){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const o=ss.indexOf(this.ArrayType),i=2*t*this.ArrayType.BYTES_PER_ELEMENT,s=t*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-s%8)%8;if(o<0)throw new Error(`Unexpected typed array class: ${r}.`);n&&n instanceof ArrayBuffer?(this.data=n,this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+s+a,2*t),this._pos=2*t,this._finished=!0):(this.data=new ArrayBuffer(8+i+s+a),this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+s+a,2*t),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+o]),new Uint16Array(this.data,2,1)[0]=e,new Uint32Array(this.data,4,1)[0]=t)}add(t,e){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=e,r}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return us(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,r,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:i,nodeSize:s}=this,a=[0,o.length-1,0],u=[];for(;a.length;){const c=a.pop()||0,l=a.pop()||0,f=a.pop()||0;if(l-f<=s){for(let s=f;s<=l;s++){const a=i[2*s],c=i[2*s+1];a>=t&&a<=r&&c>=e&&c<=n&&u.push(o[s])}continue}const h=f+l>>1,p=i[2*h],d=i[2*h+1];p>=t&&p<=r&&d>=e&&d<=n&&u.push(o[h]),(0===c?t<=p:e<=d)&&(a.push(f),a.push(h-1),a.push(1-c)),(0===c?r>=p:n>=d)&&(a.push(h+1),a.push(l),a.push(1-c))}return u}within(t,e,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:n,coords:o,nodeSize:i}=this,s=[0,n.length-1,0],a=[],u=r*r;for(;s.length;){const c=s.pop()||0,l=s.pop()||0,f=s.pop()||0;if(l-f<=i){for(let r=f;r<=l;r++)hs(o[2*r],o[2*r+1],t,e)<=u&&a.push(n[r]);continue}const h=f+l>>1,p=o[2*h],d=o[2*h+1];hs(p,d,t,e)<=u&&a.push(n[h]),(0===c?t-r<=p:e-r<=d)&&(s.push(f),s.push(h-1),s.push(1-c)),(0===c?t+r>=p:e+r>=d)&&(s.push(h+1),s.push(l),s.push(1-c))}return a}}function us(t,e,r,n,o,i){if(o-n<=r)return;const s=n+o>>1;cs(t,e,s,n,o,i),us(t,e,r,n,s-1,1-i),us(t,e,r,s+1,o,1-i)}function cs(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);cs(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(ls(t,e,n,r),e[2*o+i]>s&&ls(t,e,n,o);a<u;){for(ls(t,e,a,u),a++,u--;e[2*a+i]<s;)a++;for(;e[2*u+i]>s;)u--}e[2*n+i]===s?ls(t,e,n,u):(u++,ls(t,e,u,o)),u<=r&&(n=u+1),r<=u&&(o=u-1)}}function ls(t,e,r,n){fs(t,r,n),fs(e,2*r,2*n),fs(e,2*r+1,2*n+1)}function fs(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function hs(t,e,r,n){const o=t-r,i=e-n;return o*o+i*i}const ps={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},ds=Math.fround||(ms=new Float32Array(1),t=>(ms[0]=+t,ms[0]));var ms;const gs=3,ys=5,vs=6;class bs{constructor(t){this.options=Object.assign(Object.create(ps),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:e,minZoom:r,maxZoom:n}=this.options;e&&console.time("total time");const o=`prepare ${t.length} points`;e&&console.time(o),this.points=t;const i=[];for(let e=0;e<t.length;e++){const r=t[e];if(!r.geometry)continue;const[n,o]=r.geometry.coordinates,s=ds(Os(n)),a=ds(Ss(o));i.push(s,a,1/0,e,-1,1),this.options.reduce&&i.push(0)}let s=this.trees[n+1]=this._createTree(i);e&&console.timeEnd(o);for(let t=n;t>=r;t--){const r=+Date.now();s=this.trees[t]=this._createTree(this._cluster(s,t)),e&&console.log("z%d: %d clusters in %dms",t,s.numItems,+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(Os(r),Ss(i),Os(o),Ss(n)),u=s.data,c=[];for(const t of a){const e=this.stride*t;c.push(u[e+ys]>1?ws(u,e,this.clusterProps):this.points[u[e+gs]])}return c}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.data;if(e*this.stride>=i.length)throw new Error(n);const s=this.options.radius/(this.options.extent*Math.pow(2,r-1)),a=i[e*this.stride],u=i[e*this.stride+1],c=o.within(a,u,s),l=[];for(const e of c){const r=e*this.stride;i[r+4]===t&&l.push(i[r+ys]>1?ws(i,r,this.clusterProps):this.points[i[r+gs]])}if(0===l.length)throw new Error(n);return l}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.data,e,r,o,l),0===e&&this._addTileFeatures(n.range(1-a/o,u,1,c),n.data,o,r,o,l),e===o-1&&this._addTileFeatures(n.range(0,u,a/o,c),n.data,-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}_createTree(t){const e=new as(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<t.length;r+=this.stride)e.add(t[r],t[r+1]);return e.finish(),e.data=t,e}_addTileFeatures(t,e,r,n,o,i){for(const s of t){const t=s*this.stride,a=e[t+ys]>1;let u,c,l;if(a)u=ks(e,t,this.clusterProps),c=e[t],l=e[t+1];else{const r=this.points[e[t+gs]];u=r.properties;const[n,o]=r.geometry.coordinates;c=Os(n),l=Ss(o)}const f={type:1,geometry:[[Math.round(this.options.extent*(c*o-r)),Math.round(this.options.extent*(l*o-n))]],tags:u};let h;h=a||this.options.generateId?e[t+gs]:this.points[e[t+gs]].id,void 0!==h&&(f.id=h),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{radius:r,extent:n,reduce:o,minPoints:i}=this.options,s=r/(n*Math.pow(2,e)),a=t.data,u=[],c=this.stride;for(let r=0;r<a.length;r+=c){if(a[r+2]<=e)continue;a[r+2]=e;const n=a[r],l=a[r+1],f=t.within(a[r],a[r+1],s),h=a[r+ys];let p=h;for(const t of f){const r=t*c;a[r+2]>e&&(p+=a[r+ys])}if(p>h&&p>=i){let t,i=n*h,s=l*h,d=-1;const m=((r/c|0)<<5)+(e+1)+this.points.length;for(const n of f){const u=n*c;if(a[u+2]<=e)continue;a[u+2]=e;const l=a[u+ys];i+=a[u]*l,s+=a[u+1]*l,a[u+4]=m,o&&(t||(t=this._map(a,r,!0),d=this.clusterProps.length,this.clusterProps.push(t)),o(t,this._map(a,u)))}a[r+4]=m,u.push(i/p,s/p,1/0,m,-1,p),o&&u.push(d)}else{for(let t=0;t<c;t++)u.push(a[r+t]);if(p>1)for(const t of f){const r=t*c;if(!(a[r+2]<=e)){a[r+2]=e;for(let t=0;t<c;t++)u.push(a[r+t])}}}}return u}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e,r){if(t[e+ys]>1){const n=this.clusterProps[t[e+vs]];return r?Object.assign({},n):n}const n=this.points[t[e+gs]].properties,o=this.options.map(n);return r&&o===n?Object.assign({},o):o}}function ws(t,e,r){return{type:"Feature",id:t[e+gs],properties:ks(t,e,r),geometry:{type:"Point",coordinates:[(n=t[e],360*(n-.5)),Es(t[e+1])]}};var n}function ks(t,e,r){const n=t[e+ys],o=n>=1e4?`${Math.round(n/1e3)}k`:n>=1e3?Math.round(n/100)/10+"k":n,i=t[e+vs],s=-1===i?{}:Object.assign({},r[i]);return Object.assign(s,{cluster:!0,cluster_id:t[e+gs],point_count:n,point_count_abbreviated:o})}function Os(t){return t/360+.5}function Ss(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 Es(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}var Ms=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.maxZoom,s=t.radius,a=void 0===s?60:s,u=ci(t,["maxZoom","radius"]);return(n=r.call(this,{maxZoom:o})).superCluster=new bs(Object.assign({maxZoom:n.maxZoom,radius:a},u)),n.state={zoom:null},n}return n(i,[{key:"calculate",value:function(t){var e=!1,r={zoom:t.map.getZoom()};if(!Zi(t.markers,this.markers)){e=!0,this.markers=l(t.markers);var n=this.markers.map((function(t){var e=pi.getPosition(t);return{type:"Feature",geometry:{type:"Point",coordinates:[e.lng(),e.lat()]},properties:{marker:t}}}));this.superCluster.load(n)}return e||(this.state.zoom<=this.maxZoom||r.zoom<=this.maxZoom)&&(e=!Zi(this.state,r)),this.state=r,e&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:e}}},{key:"cluster",value:function(t){var e=this,r=t.map;return this.superCluster.getClusters([-180,-90,180,90],Math.round(r.getZoom())).map((function(t){return e.transformCluster(t)}))}},{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 di({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(t){return t.properties.marker})),position:{lat:n,lng:r}});var i=o.marker;return new di({markers:[i],position:pi.getPosition(i)})}}]),i}(ki),xs={},js=b,As=Ze,Ps=ze,_s=Ve,Cs=K,Ts=Wi;xs.f=js&&!As?Object.defineProperties:function(t,e){_s(t);for(var r,n=Cs(e),o=Ts(e),i=o.length,s=0;i>s;)Ps.f(t,r=o[s++],n[r]);return t};var Ls,Is=at("document","documentElement"),Ns=Ve,Ds=xs,Fs=In,Rs=Mr,zs=Is,Zs=je,Us="prototype",Bs="script",Gs=Er("IE_PROTO"),Vs=function(){},Ws=function(t){return"<"+Bs+">"+t+"</"+Bs+">"},$s=function(t){t.write(Ws("")),t.close();var e=t.parentWindow.Object;return t=null,e},Hs=function(){try{Ls=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Hs="undefined"!=typeof document?document.domain&&Ls?$s(Ls):(e=Zs("iframe"),r="java"+Bs+":",e.style.display="none",zs.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Ws("document.F=Object")),t.close(),t.F):$s(Ls);for(var n=Fs.length;n--;)delete Hs[Us][Fs[n]];return Hs()};Rs[Gs]=!0;var qs=he,Xs=Object.create||function(t,e){var r;return null!==t?(Vs[Us]=Ns(t),r=new Vs,Vs[Us]=null,r[Gs]=t):r=Hs(),void 0===e?r:Ds.f(r,e)},Ys=ze.f,Ks=qs("unscopables"),Js=Array.prototype;null==Js[Ks]&&Ys(Js,Ks,{configurable:!0,value:Xs(null)});var Qs=jn.includes,ta=function(t){Js[Ks][t]=!0};lo({target:"Array",proto:!0,forced:v((function(){return!Array(1).includes()}))},{includes:function(t){return Qs(this,t,arguments.length>1?arguments[1]:void 0)}}),ta("includes");var ea=ot,ra=z,na=he("match"),oa=function(t){var e;return ea(t)&&(void 0!==(e=t[na])?!!e:"RegExp"==ra(t))},ia=TypeError,sa=Ao,aa=String,ua=function(t){if("Symbol"===sa(t))throw TypeError("Cannot convert a Symbol value to a string");return aa(t)},ca=he("match"),la=lo,fa=function(t){if(oa(t))throw ia("The method doesn't accept regular expressions");return t},ha=q,pa=ua,da=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[ca]=!1,"/./"[t](e)}catch(t){}}return!1},ma=N("".indexOf);la({target:"String",proto:!0,forced:!da("includes")},{includes:function(t){return!!~ma(pa(ha(this)),pa(fa(t)),arguments.length>1?arguments[1]:void 0)}});var ga=lo,ya=jn.indexOf,va=Ai,ba=po([].indexOf),wa=!!ba&&1/ba([1],1,-0)<0;ga({target:"Array",proto:!0,forced:wa||!va("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return wa?ba(this,t,e)||0:ya(this,t,e)}});var ka=b,Oa=bo,Sa=TypeError,Ea=Object.getOwnPropertyDescriptor,Ma=ka&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),xa=TypeError,ja=Se,Aa=ze,Pa=_,_a=jt,Ca=TypeError,Ta=lo,La=Xt,Ia=vn,Na=dn,Da=On,Fa=Ma?function(t,e){if(Oa(t)&&!Ea(t,"length").writable)throw Sa("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Ra=function(t){if(t>9007199254740991)throw xa("Maximum allowed index exceeded");return t},za=Xo,Za=function(t,e,r){var n=ja(e);n in t?Aa.f(t,n,Pa(0,r)):t[n]=r},Ua=function(t,e){if(!delete t[e])throw Ca("Cannot delete property "+_a(e)+" of "+_a(t))},Ba=ai("splice"),Ga=Math.max,Va=Math.min;Ta({target:"Array",proto:!0,forced:!Ba},{splice:function(t,e){var r,n,o,i,s,a,u=La(this),c=Da(u),l=Ia(t,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-l):(r=f-2,n=Va(Ga(Na(e),0),c-l)),Ra(c+r-n),o=za(u,n),i=0;i<n;i++)(s=l+i)in u&&Za(o,i,u[s]);if(o.length=n,r<n){for(i=l;i<c-n;i++)a=i+r,(s=i+n)in u?u[a]=u[s]:Ua(u,a);for(i=c;i>c-n+r;i--)Ua(u,i-1)}else if(r>n)for(i=c-n;i>l;i--)a=i+r-1,(s=i+n-1)in u?u[a]=u[s]:Ua(u,a);for(i=0;i<r;i++)u[i+l]=arguments[i+2];return Fa(u,c-n+r),o}});var Wa=Ct,$a=Xt,Ha=V,qa=On,Xa=TypeError,Ya=function(t){return function(e,r,n,o){Wa(r);var i=$a(e),s=Ha(i),a=qa(i),u=t?a-1:0,c=t?-1:1;if(n<2)for(;;){if(u in s){o=s[u],u+=c;break}if(u+=c,t?u<0:a<=u)throw Xa("Reduce of empty array with no initial value")}for(;t?u>=0:a>u;u+=c)u in s&&(o=r(o,s[u],u,i));return o}},Ka={left:Ya(!1),right:Ya(!0)},Ja="undefined"!=typeof process&&"process"==z(process),Qa=Ka.left;lo({target:"Array",proto:!0,forced:!Ja&&mt>79&&mt<83||!Ai("reduce")},{reduce:function(t){var e=arguments.length;return Qa(this,t,e,e>1?arguments[1]:void 0)}});var tu=g,eu=N,ru=Ct,nu=et,ou=String,iu=TypeError,su=function(t,e,r){try{return eu(ru(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},au=Ve,uu=function(t){if("object"==typeof t||nu(t))return t;throw iu("Can't set "+ou(t)+" as a prototype")},cu=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=su(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return au(r),uu(n),e?t(r,n):r.__proto__=n,r}}():void 0),lu=et,fu=ot,hu=cu,pu=N(1..valueOf),du=q,mu=ua,gu="\t\n\v\f\r                 \u2028\u2029\ufeff",yu=N("".replace),vu=RegExp("^["+gu+"]+"),bu=RegExp("(^|[^"+gu+"])["+gu+"]+$"),wu=function(t){return function(e){var r=mu(du(e));return 1&t&&(r=yu(r,vu,"")),2&t&&(r=yu(r,bu,"$1")),r}},ku={start:wu(1),end:wu(2),trim:wu(3)},Ou=lo,Su=b,Eu=g,Mu=tu,xu=N,ju=ro,Au=Jt,Pu=function(t,e,r){var n,o;return hu&&lu(n=e.constructor)&&n!==r&&fu(o=n.prototype)&&o!==r.prototype&&hu(t,o),t},_u=ut,Cu=Mt,Tu=we,Lu=v,Iu=ln.f,Nu=y.f,Du=ze.f,Fu=pu,Ru=ku.trim,zu="Number",Zu=Eu[zu];Mu[zu];var Uu=Zu.prototype,Bu=Eu.TypeError,Gu=xu("".slice),Vu=xu("".charCodeAt),Wu=function(t){var e,r,n,o,i,s,a,u,c=Tu(t,"number");if(Cu(c))throw Bu("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=Ru(c),43===(e=Vu(c,0))||45===e){if(88===(r=Vu(c,2))||120===r)return NaN}else if(48===e){switch(Vu(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(s=(i=Gu(c,2)).length,a=0;a<s;a++)if((u=Vu(i,a))<48||u>o)return NaN;return parseInt(i,n)}return+c},$u=ju(zu,!Zu(" 0o1")||!Zu("0b1")||Zu("+0x1")),Hu=function(t){var e,r=arguments.length<1?0:Zu(function(t){var e=Tu(t,"number");return"bigint"==typeof e?e:Wu(e)}(t));return _u(Uu,e=this)&&Lu((function(){Fu(e)}))?Pu(Object(r),this,Hu):r};Hu.prototype=Uu,$u&&(Uu.constructor=Hu),Ou({global:!0,constructor:!0,wrap:!0,forced:$u},{Number:Hu});$u&&function(t,e){for(var r,n=Su?Iu(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++)Au(e,r=n[o])&&!Au(t,r)&&Du(t,r,Nu(e,r))}(Mu[zu],Zu);var qu=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))}}})),Xu=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",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){var c=document.createElement("div");c.innerHTML=s;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 h={map:r,position:o,zIndex:u,title:a,content:c.firstElementChild};return new google.maps.marker.AdvancedMarkerElement(h)}var p={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(p)}}]),t}();var Yu,Ku=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,(Yu=t.MarkerClustererEvents||(t.MarkerClustererEvents={})).CLUSTERING_BEGIN="clusteringbegin",Yu.CLUSTERING_END="clusteringend",Yu.CLUSTER_CLICK="click";var Ju=function(t,e,r){r.fitBounds(e.bounds)},Qu=function(r){o(s,r);var i=u(s);function s(t){var r,n=t.map,o=t.markers,a=void 0===o?[]:o,u=t.algorithmOptions,c=void 0===u?{}:u,f=t.algorithm,h=void 0===f?new Ms(c):f,p=t.renderer,d=void 0===p?new Xu:p,m=t.onClusterClick,g=void 0===m?Ju:m;return e(this,s),(r=i.call(this)).markers=l(a),r.clusters=[],r.algorithm=h,r.renderer=d,r.onClusterClick=g,n&&r.setMap(n),r}return n(s,[{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&&(pi.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);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 pi.setMap(t,null)})),this.clusters.forEach((function(t){return t.delete()})),this.clusters=[]}},{key:"renderClusters",value:function(){var e=this,r=new qu(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)}))),pi.setMap(o.marker,n)}))}}]),s}(Ku);return t.AbstractAlgorithm=ki,t.AbstractViewportAlgorithm=Oi,t.Cluster=di,t.ClusterStats=qu,t.DefaultRenderer=Xu,t.GridAlgorithm=Ui,t.MarkerClusterer=Qu,t.NoopAlgorithm=Bi,t.SuperClusterAlgorithm=Ms,t.defaultOnClusterClickHandler=Ju,t.distanceBetweenPoints=yi,t.extendBoundsToPaddedViewport=gi,t.extendPixelBounds=bi,t.filterMarkersToPaddedViewport=mi,t.noop=Si,t.pixelBoundsToLatLngBounds=wi,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)||l(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 f(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(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 l(t,e){if(t){if("string"==typeof t)return h(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)?h(t,e):void 0}}function h(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}function p(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=l(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var y=function(t){return t&&t.Math==Math&&t},g=y("object"==typeof globalThis&&globalThis)||y("object"==typeof window&&window)||y("object"==typeof self&&self)||y("object"==typeof d&&d)||function(){return this}()||d||Function("return this")(),m={},b=function(t){try{return!!t()}catch(t){return!0}},w=!b((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),k=!b((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),O=k,S=Function.prototype.call,E=O?S.bind(S):function(){return S.apply(S,arguments)},x={},A={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,j=M&&!A.call({1:2},1);x.f=j?function(t){var e=M(this,t);return!!e&&e.enumerable}:A;var P,_,T=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},I=k,C=Function.prototype,L=C.call,N=I&&C.bind.bind(L,L),R=I?N:function(t){return function(){return L.apply(t,arguments)}},F=R,D=F({}.toString),z=F("".slice),Z=function(t){return z(D(t),8,-1)},U=b,B=Z,G=Object,V=R("".split),W=U((function(){return!G("z").propertyIsEnumerable(0)}))?function(t){return"String"==B(t)?V(t,""):G(t)}:G,$=function(t){return null==t},H=$,q=TypeError,Y=function(t){if(H(t))throw q("Can't call method on "+t);return t},K=W,X=Y,J=function(t){return K(X(t))},Q="object"==typeof document&&document.all,tt={all:Q,IS_HTMLDDA:void 0===Q&&void 0!==Q},et=tt.all,rt=tt.IS_HTMLDDA?function(t){return"function"==typeof t||t===et}:function(t){return"function"==typeof t},nt=rt,ot=tt.all,it=tt.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:nt(t)||t===ot}:function(t){return"object"==typeof t?null!==t:nt(t)},at=g,st=rt,ut=function(t,e){return arguments.length<2?(r=at[t],st(r)?r:void 0):at[t]&&at[t][e];var r},ct=R({}.isPrototypeOf),ft=g,lt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ht=ft.process,pt=ft.Deno,dt=ht&&ht.versions||pt&&pt.version,vt=dt&&dt.v8;vt&&(_=(P=vt.split("."))[0]>0&&P[0]<4?1:+(P[0]+P[1])),!_&&lt&&(!(P=lt.match(/Edge\/(\d+)/))||P[1]>=74)&&(P=lt.match(/Chrome\/(\d+)/))&&(_=+P[1]);var yt=_,gt=yt,mt=b,bt=g.String,wt=!!Object.getOwnPropertySymbols&&!mt((function(){var t=Symbol();return!bt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&gt&&gt<41})),kt=wt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ot=ut,St=rt,Et=ct,xt=Object,At=kt?function(t){return"symbol"==typeof t}:function(t){var e=Ot("Symbol");return St(e)&&Et(e.prototype,xt(t))},Mt=String,jt=function(t){try{return Mt(t)}catch(t){return"Object"}},Pt=rt,_t=jt,Tt=TypeError,It=function(t){if(Pt(t))return t;throw Tt(_t(t)+" is not a function")},Ct=It,Lt=$,Nt=function(t,e){var r=t[e];return Lt(r)?void 0:Ct(r)},Rt=E,Ft=rt,Dt=it,zt=TypeError,Zt={exports:{}},Ut=g,Bt=Object.defineProperty,Gt=function(t,e){try{Bt(Ut,t,{value:e,configurable:!0,writable:!0})}catch(r){Ut[t]=e}return e},Vt=Gt,Wt="__core-js_shared__",$t=g[Wt]||Vt(Wt,{}),Ht=$t;(Zt.exports=function(t,e){return Ht[t]||(Ht[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 qt=Zt.exports,Yt=Y,Kt=Object,Xt=function(t){return Kt(Yt(t))},Jt=Xt,Qt=R({}.hasOwnProperty),te=Object.hasOwn||function(t,e){return Qt(Jt(t),e)},ee=R,re=0,ne=Math.random(),oe=ee(1..toString),ie=function(t){return"Symbol("+(void 0===t?"":t)+")_"+oe(++re+ne,36)},ae=qt,se=te,ue=ie,ce=wt,fe=kt,le=g.Symbol,he=ae("wks"),pe=fe?le.for||le:le&&le.withoutSetter||ue,de=function(t){return se(he,t)||(he[t]=ce&&se(le,t)?le[t]:pe("Symbol."+t)),he[t]},ve=E,ye=it,ge=At,me=Nt,be=function(t,e){var r,n;if("string"===e&&Ft(r=t.toString)&&!Dt(n=Rt(r,t)))return n;if(Ft(r=t.valueOf)&&!Dt(n=Rt(r,t)))return n;if("string"!==e&&Ft(r=t.toString)&&!Dt(n=Rt(r,t)))return n;throw zt("Can't convert object to primitive value")},we=TypeError,ke=de("toPrimitive"),Oe=function(t,e){if(!ye(t)||ge(t))return t;var r,n=me(t,ke);if(n){if(void 0===e&&(e="default"),r=ve(n,t,e),!ye(r)||ge(r))return r;throw we("Can't convert object to primitive value")}return void 0===e&&(e="number"),be(t,e)},Se=Oe,Ee=At,xe=function(t){var e=Se(t,"string");return Ee(e)?e:e+""},Ae=it,Me=g.document,je=Ae(Me)&&Ae(Me.createElement),Pe=function(t){return je?Me.createElement(t):{}},_e=Pe,Te=!w&&!b((function(){return 7!=Object.defineProperty(_e("div"),"a",{get:function(){return 7}}).a})),Ie=w,Ce=E,Le=x,Ne=T,Re=J,Fe=xe,De=te,ze=Te,Ze=Object.getOwnPropertyDescriptor;m.f=Ie?Ze:function(t,e){if(t=Re(t),e=Fe(e),ze)try{return Ze(t,e)}catch(t){}if(De(t,e))return Ne(!Ce(Le.f,t,e),t[e])};var Ue={},Be=w&&b((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ge=it,Ve=String,We=TypeError,$e=function(t){if(Ge(t))return t;throw We(Ve(t)+" is not an object")},He=w,qe=Te,Ye=Be,Ke=$e,Xe=xe,Je=TypeError,Qe=Object.defineProperty,tr=Object.getOwnPropertyDescriptor,er="enumerable",rr="configurable",nr="writable";Ue.f=He?Ye?function(t,e,r){if(Ke(t),e=Xe(e),Ke(r),"function"==typeof t&&"prototype"===e&&"value"in r&&nr in r&&!r[nr]){var n=tr(t,e);n&&n[nr]&&(t[e]=r.value,r={configurable:rr in r?r[rr]:n[rr],enumerable:er in r?r[er]:n[er],writable:!1})}return Qe(t,e,r)}:Qe:function(t,e,r){if(Ke(t),e=Xe(e),Ke(r),qe)try{return Qe(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 or=Ue,ir=T,ar=w?function(t,e,r){return or.f(t,e,ir(1,r))}:function(t,e,r){return t[e]=r,t},sr={exports:{}},ur=w,cr=te,fr=Function.prototype,lr=ur&&Object.getOwnPropertyDescriptor,hr=cr(fr,"name"),pr={EXISTS:hr,PROPER:hr&&"something"===function(){}.name,CONFIGURABLE:hr&&(!ur||ur&&lr(fr,"name").configurable)},dr=rt,vr=$t,yr=R(Function.toString);dr(vr.inspectSource)||(vr.inspectSource=function(t){return yr(t)});var gr,mr,br,wr=vr.inspectSource,kr=rt,Or=g.WeakMap,Sr=kr(Or)&&/native code/.test(String(Or)),Er=ie,xr=qt("keys"),Ar=function(t){return xr[t]||(xr[t]=Er(t))},Mr={},jr=Sr,Pr=g,_r=it,Tr=ar,Ir=te,Cr=$t,Lr=Ar,Nr=Mr,Rr="Object already initialized",Fr=Pr.TypeError,Dr=Pr.WeakMap;if(jr||Cr.state){var zr=Cr.state||(Cr.state=new Dr);zr.get=zr.get,zr.has=zr.has,zr.set=zr.set,gr=function(t,e){if(zr.has(t))throw Fr(Rr);return e.facade=t,zr.set(t,e),e},mr=function(t){return zr.get(t)||{}},br=function(t){return zr.has(t)}}else{var Zr=Lr("state");Nr[Zr]=!0,gr=function(t,e){if(Ir(t,Zr))throw Fr(Rr);return e.facade=t,Tr(t,Zr,e),e},mr=function(t){return Ir(t,Zr)?t[Zr]:{}},br=function(t){return Ir(t,Zr)}}var Ur={set:gr,get:mr,has:br,enforce:function(t){return br(t)?mr(t):gr(t,{})},getterFor:function(t){return function(e){var r;if(!_r(e)||(r=mr(e)).type!==t)throw Fr("Incompatible receiver, "+t+" required");return r}}},Br=R,Gr=b,Vr=rt,Wr=te,$r=w,Hr=pr.CONFIGURABLE,qr=wr,Yr=Ur.enforce,Kr=Ur.get,Xr=String,Jr=Object.defineProperty,Qr=Br("".slice),tn=Br("".replace),en=Br([].join),rn=$r&&!Gr((function(){return 8!==Jr((function(){}),"length",{value:8}).length})),nn=String(String).split("String"),on=sr.exports=function(t,e,r){"Symbol("===Qr(Xr(e),0,7)&&(e="["+tn(Xr(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Wr(t,"name")||Hr&&t.name!==e)&&($r?Jr(t,"name",{value:e,configurable:!0}):t.name=e),rn&&r&&Wr(r,"arity")&&t.length!==r.arity&&Jr(t,"length",{value:r.arity});try{r&&Wr(r,"constructor")&&r.constructor?$r&&Jr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Yr(t);return Wr(n,"source")||(n.source=en(nn,"string"==typeof e?e:"")),t};Function.prototype.toString=on((function(){return Vr(this)&&Kr(this).source||qr(this)}),"toString");var an=sr.exports,sn=rt,un=Ue,cn=an,fn=Gt,ln=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(sn(r)&&cn(r,i,n),n.global)o?t[e]=r:fn(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:un.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},hn={},pn=Math.ceil,dn=Math.floor,vn=Math.trunc||function(t){var e=+t;return(e>0?dn:pn)(e)},yn=function(t){var e=+t;return e!=e||0===e?0:vn(e)},gn=yn,mn=Math.max,bn=Math.min,wn=function(t,e){var r=gn(t);return r<0?mn(r+e,0):bn(r,e)},kn=yn,On=Math.min,Sn=function(t){return t>0?On(kn(t),9007199254740991):0},En=function(t){return Sn(t.length)},xn=J,An=wn,Mn=En,jn=function(t){return function(e,r,n){var o,i=xn(e),a=Mn(i),s=An(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}},Pn={includes:jn(!0),indexOf:jn(!1)},_n=te,Tn=J,In=Pn.indexOf,Cn=Mr,Ln=R([].push),Nn=function(t,e){var r,n=Tn(t),o=0,i=[];for(r in n)!_n(Cn,r)&&_n(n,r)&&Ln(i,r);for(;e.length>o;)_n(n,r=e[o++])&&(~In(i,r)||Ln(i,r));return i},Rn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fn=Nn,Dn=Rn.concat("length","prototype");hn.f=Object.getOwnPropertyNames||function(t){return Fn(t,Dn)};var zn={};zn.f=Object.getOwnPropertySymbols;var Zn=ut,Un=hn,Bn=zn,Gn=$e,Vn=R([].concat),Wn=Zn("Reflect","ownKeys")||function(t){var e=Un.f(Gn(t)),r=Bn.f;return r?Vn(e,r(t)):e},$n=te,Hn=Wn,qn=m,Yn=Ue,Kn=b,Xn=rt,Jn=/#|\.prototype\./,Qn=function(t,e){var r=eo[to(t)];return r==no||r!=ro&&(Xn(e)?Kn(e):!!e)},to=Qn.normalize=function(t){return String(t).replace(Jn,".").toLowerCase()},eo=Qn.data={},ro=Qn.NATIVE="N",no=Qn.POLYFILL="P",oo=Qn,io=g,ao=m.f,so=ar,uo=ln,co=Gt,fo=function(t,e,r){for(var n=Hn(e),o=Yn.f,i=qn.f,a=0;a<n.length;a++){var s=n[a];$n(t,s)||r&&$n(r,s)||o(t,s,i(e,s))}},lo=oo,ho=function(t,e){var r,n,o,i,a,s=t.target,u=t.global,c=t.stat;if(r=u?io:c?io[s]||co(s,{}):(io[s]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=ao(r,n))&&a.value:r[n],!lo(u?n:s+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;fo(i,o)}(t.sham||o&&o.sham)&&so(i,"sham",!0),uo(r,n,i,t)}},po=Z,vo=R,yo=function(t){if("Function"===po(t))return vo(t)},go=It,mo=k,bo=yo(yo.bind),wo=function(t,e){return go(t),void 0===e?t:mo?bo(t,e):function(){return t.apply(e,arguments)}},ko=Z,Oo=Array.isArray||function(t){return"Array"==ko(t)},So={};So[de("toStringTag")]="z";var Eo="[object z]"===String(So),xo=Eo,Ao=rt,Mo=Z,jo=de("toStringTag"),Po=Object,_o="Arguments"==Mo(function(){return arguments}()),To=xo?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),jo))?r:_o?Mo(e):"Object"==(n=Mo(e))&&Ao(e.callee)?"Arguments":n},Io=R,Co=b,Lo=rt,No=To,Ro=wr,Fo=function(){},Do=[],zo=ut("Reflect","construct"),Zo=/^\s*(?:class|function)\b/,Uo=Io(Zo.exec),Bo=!Zo.exec(Fo),Go=function(t){if(!Lo(t))return!1;try{return zo(Fo,Do,t),!0}catch(t){return!1}},Vo=function(t){if(!Lo(t))return!1;switch(No(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Bo||!!Uo(Zo,Ro(t))}catch(t){return!0}};Vo.sham=!0;var Wo=!zo||Co((function(){var t;return Go(Go.call)||!Go(Object)||!Go((function(){t=!0}))||t}))?Vo:Go,$o=Oo,Ho=Wo,qo=it,Yo=de("species"),Ko=Array,Xo=function(t){var e;return $o(t)&&(e=t.constructor,(Ho(e)&&(e===Ko||$o(e.prototype))||qo(e)&&null===(e=e[Yo]))&&(e=void 0)),void 0===e?Ko:e},Jo=function(t,e){return new(Xo(t))(0===e?0:e)},Qo=wo,ti=W,ei=Xt,ri=En,ni=Jo,oi=R([].push),ii=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,f,l){for(var h,p,d=ei(u),v=ti(d),y=Qo(c,f),g=ri(v),m=0,b=l||ni,w=e?b(u,g):r||a?b(u,0):void 0;g>m;m++)if((s||m in v)&&(p=y(h=v[m],m,d),t))if(e)w[m]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:oi(w,h)}else switch(t){case 4:return!1;case 7:oi(w,h)}return i?-1:n||o?o:w}},ai={forEach:ii(0),map:ii(1),filter:ii(2),some:ii(3),every:ii(4),find:ii(5),findIndex:ii(6),filterReject:ii(7)},si=b,ui=yt,ci=de("species"),fi=function(t){return ui>=51||!si((function(){var e=[];return(e.constructor={})[ci]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},li=ai.map;function hi(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}ho({target:"Array",proto:!0,forced:!fi("map")},{map:function(t){return li(this,t,arguments.length>1?arguments[1]:void 0)}});var pi=ai.filter;ho({target:"Array",proto:!0,forced:!fi("filter")},{filter:function(t){return pi(this,t,arguments.length>1?arguments[1]:void 0)}});var di=To,vi=Eo?{}.toString:function(){return"[object "+di(this)+"]"};Eo||ln(Object.prototype,"toString",vi,{unsafe:!0});var yi=function(){function t(){e(this,t)}return n(t,null,[{key:"isAdvancedMarker",value:function(t){return google.maps.marker&&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}(),gi=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){var t,e=new google.maps.LatLngBounds(this._position,this._position),r=p(this.markers);try{for(r.s();!(t=r.n()).done;){var n=t.value;e.extend(yi.getPosition(n))}}catch(t){r.e(t)}finally{r.f()}return e}}},{key:"position",get:function(){return this._position||this.bounds.getCenter()}},{key:"count",get:function(){return this.markers.filter((function(t){return yi.getVisible(t)})).length}},{key:"push",value:function(t){this.markers.push(t)}},{key:"delete",value:function(){this.marker&&(yi.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}]),t}(),mi=function(t,e,r,n){var o=bi(t.getBounds(),e,n);return r.filter((function(t){return o.contains(yi.getPosition(t))}))},bi=function(t,e,r){var n=ki(t,e),o=n.northEast,i=n.southWest,a=Oi({northEast:o,southWest:i},r);return Si(a,e)},wi=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),i=Math.sin(n/2),a=o*o+Math.cos(t.lat*Math.PI/180)*Math.cos(e.lat*Math.PI/180)*i*i;return 6371*(2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a)))},ki=function(t,e){return{northEast:e.fromLatLngToDivPixel(t.getNorthEast()),southWest:e.fromLatLngToDivPixel(t.getSouthWest())}},Oi=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}},Si=function(t,e){var r=t.northEast,n=t.southWest,o=e.fromDivPixelToLatLng(n),i=e.fromDivPixelToLatLng(r);return new google.maps.LatLngBounds(o,i)},Ei=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 Ai(e)}}]),t}(),xi=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=hi(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}),changed:!1}:{clusters:this.cluster({markers:mi(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}}]),i}(Ei),Ai=function(t){return t.map((function(t){return new gi({position:yi.getPosition(t),markers:[t]})}))},Mi={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},ji=Pe("span").classList,Pi=ji&&ji.constructor&&ji.constructor.prototype,_i=Pi===Object.prototype?void 0:Pi,Ti=b,Ii=function(t,e){var r=[][t];return!!r&&Ti((function(){r.call(null,e||function(){return 1},1)}))},Ci=ai.forEach,Li=Ii("forEach")?[].forEach:function(t){return Ci(this,t,arguments.length>1?arguments[1]:void 0)},Ni=g,Ri=Mi,Fi=_i,Di=Li,zi=ar,Zi=function(t){if(t&&t.forEach!==Di)try{zi(t,"forEach",Di)}catch(e){t.forEach=Di}};for(var Ui in Ri)Ri[Ui]&&Zi(Ni[Ui]&&Ni[Ui].prototype);Zi(Fi);var Bi=E;ho({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return Bi(URL.prototype.toString,this)}});var Gi=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},Vi=v(Gi),Wi=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=hi(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=!Vi(this.state,o)),this.state=o,r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e}),changed:i}:{clusters:this.cluster({markers:mi(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=wi(a.bounds.getCenter().toJSON(),yi.getPosition(t).toJSON());s<n&&(n=s,o=a)}if(o&&bi(o.bounds,r,this.gridSize).contains(yi.getPosition(t)))o.push(t);else{var u=new gi({markers:[t]});this.clusters.push(u)}}}]),i}(xi),$i=function(t){o(i,t);var r=u(i);function i(t){e(this,i);var n=hi(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}(Ei),Hi=Nn,qi=Rn,Yi=Object.keys||function(t){return Hi(t,qi)},Ki=w,Xi=R,Ji=E,Qi=b,ta=Yi,ea=zn,ra=x,na=Xt,oa=W,ia=Object.assign,aa=Object.defineProperty,sa=Xi([].concat),ua=!ia||Qi((function(){if(Ki&&1!==ia({b:1},ia(aa({},"a",{enumerable:!0,get:function(){aa(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!=ia({},t)[r]||ta(ia({},e)).join("")!=n}))?function(t,e){for(var r=na(t),n=arguments.length,o=1,i=ea.f,a=ra.f;n>o;)for(var s,u=oa(arguments[o++]),c=i?sa(ta(u),i(u)):ta(u),f=c.length,l=0;f>l;)s=c[l++],Ki&&!Ji(a,u,s)||(r[s]=u[s]);return r}:ia,ca=ua;ho({target:"Object",stat:!0,arity:2,forced:Object.assign!==ca},{assign:ca});const fa=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class la{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[e,r]=new Uint8Array(t,0,2);if(219!==e)throw new Error("Data does not appear to be in a KDBush format.");const n=r>>4;if(1!==n)throw new Error(`Got v${n} data when expected v1.`);const o=fa[15&r];if(!o)throw new Error("Unrecognized array type.");const[i]=new Uint16Array(t,2,1),[a]=new Uint32Array(t,4,1);return new la(a,i,o,t)}constructor(t,e=64,r=Float64Array,n){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const o=fa.indexOf(this.ArrayType),i=2*t*this.ArrayType.BYTES_PER_ELEMENT,a=t*this.IndexArrayType.BYTES_PER_ELEMENT,s=(8-a%8)%8;if(o<0)throw new Error(`Unexpected typed array class: ${r}.`);n&&n instanceof ArrayBuffer?(this.data=n,this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+a+s,2*t),this._pos=2*t,this._finished=!0):(this.data=new ArrayBuffer(8+i+a+s),this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+a+s,2*t),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+o]),new Uint16Array(this.data,2,1)[0]=e,new Uint32Array(this.data,4,1)[0]=t)}add(t,e){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=e,r}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return ha(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,r,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:i,nodeSize:a}=this,s=[0,o.length-1,0],u=[];for(;s.length;){const c=s.pop()||0,f=s.pop()||0,l=s.pop()||0;if(f-l<=a){for(let a=l;a<=f;a++){const s=i[2*a],c=i[2*a+1];s>=t&&s<=r&&c>=e&&c<=n&&u.push(o[a])}continue}const h=l+f>>1,p=i[2*h],d=i[2*h+1];p>=t&&p<=r&&d>=e&&d<=n&&u.push(o[h]),(0===c?t<=p:e<=d)&&(s.push(l),s.push(h-1),s.push(1-c)),(0===c?r>=p:n>=d)&&(s.push(h+1),s.push(f),s.push(1-c))}return u}within(t,e,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:n,coords:o,nodeSize:i}=this,a=[0,n.length-1,0],s=[],u=r*r;for(;a.length;){const c=a.pop()||0,f=a.pop()||0,l=a.pop()||0;if(f-l<=i){for(let r=l;r<=f;r++)ya(o[2*r],o[2*r+1],t,e)<=u&&s.push(n[r]);continue}const h=l+f>>1,p=o[2*h],d=o[2*h+1];ya(p,d,t,e)<=u&&s.push(n[h]),(0===c?t-r<=p:e-r<=d)&&(a.push(l),a.push(h-1),a.push(1-c)),(0===c?t+r>=p:e+r>=d)&&(a.push(h+1),a.push(f),a.push(1-c))}return s}}function ha(t,e,r,n,o,i){if(o-n<=r)return;const a=n+o>>1;pa(t,e,a,n,o,i),ha(t,e,r,n,a-1,1-i),ha(t,e,r,a+1,o,1-i)}function pa(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),f=.5*Math.sqrt(u*c*(a-c)/a)*(s-a/2<0?-1:1);pa(t,e,r,Math.max(n,Math.floor(r-s*c/a+f)),Math.min(o,Math.floor(r+(a-s)*c/a+f)),i)}const a=e[2*r+i];let s=n,u=o;for(da(t,e,n,r),e[2*o+i]>a&&da(t,e,n,o);s<u;){for(da(t,e,s,u),s++,u--;e[2*s+i]<a;)s++;for(;e[2*u+i]>a;)u--}e[2*n+i]===a?da(t,e,n,u):(u++,da(t,e,u,o)),u<=r&&(n=u+1),r<=u&&(o=u-1)}}function da(t,e,r,n){va(t,r,n),va(e,2*r,2*n),va(e,2*r+1,2*n+1)}function va(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function ya(t,e,r,n){const o=t-r,i=e-n;return o*o+i*i}const ga={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},ma=Math.fround||(ba=new Float32Array(1),t=>(ba[0]=+t,ba[0]));var ba;const wa=3,ka=5,Oa=6;class Sa{constructor(t){this.options=Object.assign(Object.create(ga),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:e,minZoom:r,maxZoom:n}=this.options;e&&console.time("total time");const o=`prepare ${t.length} points`;e&&console.time(o),this.points=t;const i=[];for(let e=0;e<t.length;e++){const r=t[e];if(!r.geometry)continue;const[n,o]=r.geometry.coordinates,a=ma(Aa(n)),s=ma(Ma(o));i.push(a,s,1/0,e,-1,1),this.options.reduce&&i.push(0)}let a=this.trees[n+1]=this._createTree(i);e&&console.timeEnd(o);for(let t=n;t>=r;t--){const r=+Date.now();a=this.trees[t]=this._createTree(this._cluster(a,t)),e&&console.log("z%d: %d clusters in %dms",t,a.numItems,+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(Aa(r),Ma(i),Aa(o),Ma(n)),u=a.data,c=[];for(const t of s){const e=this.stride*t;c.push(u[e+ka]>1?Ea(u,e,this.clusterProps):this.points[u[e+wa]])}return c}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.data;if(e*this.stride>=i.length)throw new Error(n);const a=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=i[e*this.stride],u=i[e*this.stride+1],c=o.within(s,u,a),f=[];for(const e of c){const r=e*this.stride;i[r+4]===t&&f.push(i[r+ka]>1?Ea(i,r,this.clusterProps):this.points[i[r+wa]])}if(0===f.length)throw new Error(n);return f}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,f={features:[]};return this._addTileFeatures(n.range((e-s)/o,u,(e+1+s)/o,c),n.data,e,r,o,f),0===e&&this._addTileFeatures(n.range(1-s/o,u,1,c),n.data,o,r,o,f),e===o-1&&this._addTileFeatures(n.range(0,u,s/o,c),n.data,-1,r,o,f),f.features.length?f: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}_createTree(t){const e=new la(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<t.length;r+=this.stride)e.add(t[r],t[r+1]);return e.finish(),e.data=t,e}_addTileFeatures(t,e,r,n,o,i){for(const a of t){const t=a*this.stride,s=e[t+ka]>1;let u,c,f;if(s)u=xa(e,t,this.clusterProps),c=e[t],f=e[t+1];else{const r=this.points[e[t+wa]];u=r.properties;const[n,o]=r.geometry.coordinates;c=Aa(n),f=Ma(o)}const l={type:1,geometry:[[Math.round(this.options.extent*(c*o-r)),Math.round(this.options.extent*(f*o-n))]],tags:u};let h;h=s||this.options.generateId?e[t+wa]:this.points[e[t+wa]].id,void 0!==h&&(l.id=h),i.features.push(l)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){const{radius:r,extent:n,reduce:o,minPoints:i}=this.options,a=r/(n*Math.pow(2,e)),s=t.data,u=[],c=this.stride;for(let r=0;r<s.length;r+=c){if(s[r+2]<=e)continue;s[r+2]=e;const n=s[r],f=s[r+1],l=t.within(s[r],s[r+1],a),h=s[r+ka];let p=h;for(const t of l){const r=t*c;s[r+2]>e&&(p+=s[r+ka])}if(p>h&&p>=i){let t,i=n*h,a=f*h,d=-1;const v=((r/c|0)<<5)+(e+1)+this.points.length;for(const n of l){const u=n*c;if(s[u+2]<=e)continue;s[u+2]=e;const f=s[u+ka];i+=s[u]*f,a+=s[u+1]*f,s[u+4]=v,o&&(t||(t=this._map(s,r,!0),d=this.clusterProps.length,this.clusterProps.push(t)),o(t,this._map(s,u)))}s[r+4]=v,u.push(i/p,a/p,1/0,v,-1,p),o&&u.push(d)}else{for(let t=0;t<c;t++)u.push(s[r+t]);if(p>1)for(const t of l){const r=t*c;if(!(s[r+2]<=e)){s[r+2]=e;for(let t=0;t<c;t++)u.push(s[r+t])}}}}return u}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e,r){if(t[e+ka]>1){const n=this.clusterProps[t[e+Oa]];return r?Object.assign({},n):n}const n=this.points[t[e+wa]].properties,o=this.options.map(n);return r&&o===n?Object.assign({},o):o}}function Ea(t,e,r){return{type:"Feature",id:t[e+wa],properties:xa(t,e,r),geometry:{type:"Point",coordinates:[(n=t[e],360*(n-.5)),ja(t[e+1])]}};var n}function xa(t,e,r){const n=t[e+ka],o=n>=1e4?`${Math.round(n/1e3)}k`:n>=1e3?Math.round(n/100)/10+"k":n,i=t[e+Oa],a=-1===i?{}:Object.assign({},r[i]);return Object.assign(a,{cluster:!0,cluster_id:t[e+wa],point_count:n,point_count_abbreviated:o})}function Aa(t){return t/360+.5}function Ma(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 ja(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}var Pa=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=hi(t,["maxZoom","radius"]);return(n=r.call(this,{maxZoom:o})).superCluster=new Sa(Object.assign({maxZoom:n.maxZoom,radius:s},u)),n.state={zoom:null},n}return n(i,[{key:"calculate",value:function(t){var e=!1,r={zoom:t.map.getZoom()};if(!Vi(t.markers,this.markers)){e=!0,this.markers=f(t.markers);var n=this.markers.map((function(t){var e=yi.getPosition(t);return{type:"Feature",geometry:{type:"Point",coordinates:[e.lng(),e.lat()]},properties:{marker:t}}}));this.superCluster.load(n)}return e||(this.state.zoom<=this.maxZoom||r.zoom<=this.maxZoom)&&(e=!Vi(this.state,r)),this.state=r,e&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:e}}},{key:"cluster",value:function(t){var e=this,r=t.map;return this.superCluster.getClusters([-180,-90,180,90],Math.round(r.getZoom())).map((function(t){return e.transformCluster(t)}))}},{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 gi({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(t){return t.properties.marker})),position:{lat:n,lng:r}});var i=o.marker;return new gi({markers:[i],position:yi.getPosition(i)})}}]),i}(Ei),_a={},Ta=w,Ia=Be,Ca=Ue,La=$e,Na=J,Ra=Yi;_a.f=Ta&&!Ia?Object.defineProperties:function(t,e){La(t);for(var r,n=Na(e),o=Ra(e),i=o.length,a=0;i>a;)Ca.f(t,r=o[a++],n[r]);return t};var Fa,Da=ut("document","documentElement"),za=$e,Za=_a,Ua=Rn,Ba=Mr,Ga=Da,Va=Pe,Wa="prototype",$a="script",Ha=Ar("IE_PROTO"),qa=function(){},Ya=function(t){return"<"+$a+">"+t+"</"+$a+">"},Ka=function(t){t.write(Ya("")),t.close();var e=t.parentWindow.Object;return t=null,e},Xa=function(){try{Fa=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Xa="undefined"!=typeof document?document.domain&&Fa?Ka(Fa):(e=Va("iframe"),r="java"+$a+":",e.style.display="none",Ga.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Ya("document.F=Object")),t.close(),t.F):Ka(Fa);for(var n=Ua.length;n--;)delete Xa[Wa][Ua[n]];return Xa()};Ba[Ha]=!0;var Ja=Object.create||function(t,e){var r;return null!==t?(qa[Wa]=za(t),r=new qa,qa[Wa]=null,r[Ha]=t):r=Xa(),void 0===e?r:Za.f(r,e)},Qa=de,ts=Ja,es=Ue.f,rs=Qa("unscopables"),ns=Array.prototype;null==ns[rs]&&es(ns,rs,{configurable:!0,value:ts(null)});var os=function(t){ns[rs][t]=!0},is=Pn.includes,as=os;ho({target:"Array",proto:!0,forced:b((function(){return!Array(1).includes()}))},{includes:function(t){return is(this,t,arguments.length>1?arguments[1]:void 0)}}),as("includes");var ss=it,us=Z,cs=de("match"),fs=function(t){var e;return ss(t)&&(void 0!==(e=t[cs])?!!e:"RegExp"==us(t))},ls=TypeError,hs=To,ps=String,ds=function(t){if("Symbol"===hs(t))throw TypeError("Cannot convert a Symbol value to a string");return ps(t)},vs=de("match"),ys=ho,gs=function(t){if(fs(t))throw ls("The method doesn't accept regular expressions");return t},ms=Y,bs=ds,ws=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[vs]=!1,"/./"[t](e)}catch(t){}}return!1},ks=R("".indexOf);ys({target:"String",proto:!0,forced:!ws("includes")},{includes:function(t){return!!~ks(bs(ms(this)),bs(gs(t)),arguments.length>1?arguments[1]:void 0)}});var Os=ho,Ss=Pn.indexOf,Es=Ii,xs=yo([].indexOf),As=!!xs&&1/xs([1],1,-0)<0;Os({target:"Array",proto:!0,forced:As||!Es("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return As?xs(this,t,e)||0:Ss(this,t,e)}});var Ms=w,js=Oo,Ps=TypeError,_s=Object.getOwnPropertyDescriptor,Ts=Ms&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),Is=TypeError,Cs=xe,Ls=Ue,Ns=T,Rs=function(t,e,r){var n=Cs(e);n in t?Ls.f(t,n,Ns(0,r)):t[n]=r},Fs=jt,Ds=TypeError,zs=ho,Zs=Xt,Us=wn,Bs=yn,Gs=En,Vs=Ts?function(t,e){if(js(t)&&!_s(t,"length").writable)throw Ps("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Ws=function(t){if(t>9007199254740991)throw Is("Maximum allowed index exceeded");return t},$s=Jo,Hs=Rs,qs=function(t,e){if(!delete t[e])throw Ds("Cannot delete property "+Fs(e)+" of "+Fs(t))},Ys=fi("splice"),Ks=Math.max,Xs=Math.min;zs({target:"Array",proto:!0,forced:!Ys},{splice:function(t,e){var r,n,o,i,a,s,u=Zs(this),c=Gs(u),f=Us(t,c),l=arguments.length;for(0===l?r=n=0:1===l?(r=0,n=c-f):(r=l-2,n=Xs(Ks(Bs(e),0),c-f)),Ws(c+r-n),o=$s(u,n),i=0;i<n;i++)(a=f+i)in u&&Hs(o,i,u[a]);if(o.length=n,r<n){for(i=f;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>f;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+f]=arguments[i+2];return Vs(u,c-n+r),o}});var Js,Qs,tu,eu={},ru=!b((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),nu=te,ou=rt,iu=Xt,au=ru,su=Ar("IE_PROTO"),uu=Object,cu=uu.prototype,fu=au?uu.getPrototypeOf:function(t){var e=iu(t);if(nu(e,su))return e[su];var r=e.constructor;return ou(r)&&e instanceof r?r.prototype:e instanceof uu?cu:null},lu=b,hu=rt,pu=it,du=fu,vu=ln,yu=de("iterator"),gu=!1;[].keys&&("next"in(tu=[].keys())?(Qs=du(du(tu)))!==Object.prototype&&(Js=Qs):gu=!0);var mu=!pu(Js)||lu((function(){var t={};return Js[yu].call(t)!==t}));mu&&(Js={}),hu(Js[yu])||vu(Js,yu,(function(){return this}));var bu={IteratorPrototype:Js,BUGGY_SAFARI_ITERATORS:gu},wu=Ue.f,ku=te,Ou=de("toStringTag"),Su=function(t,e,r){t&&!r&&(t=t.prototype),t&&!ku(t,Ou)&&wu(t,Ou,{configurable:!0,value:e})},Eu=bu.IteratorPrototype,xu=Ja,Au=T,Mu=Su,ju=eu,Pu=function(){return this},_u=R,Tu=It,Iu=rt,Cu=String,Lu=TypeError,Nu=function(t,e,r){try{return _u(Tu(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},Ru=$e,Fu=function(t){if("object"==typeof t||Iu(t))return t;throw Lu("Can't set "+Cu(t)+" as a prototype")},Du=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Nu(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Ru(r),Fu(n),e?t(r,n):r.__proto__=n,r}}():void 0),zu=ho,Zu=E,Uu=rt,Bu=function(t,e,r,n){var o=e+" Iterator";return t.prototype=xu(Eu,{next:Au(+!n,r)}),Mu(t,o,!1),ju[o]=Pu,t},Gu=fu,Vu=Du,Wu=Su,$u=ar,Hu=ln,qu=eu,Yu=pr.PROPER,Ku=pr.CONFIGURABLE,Xu=bu.IteratorPrototype,Ju=bu.BUGGY_SAFARI_ITERATORS,Qu=de("iterator"),tc="keys",ec="values",rc="entries",nc=function(){return this},oc=function(t,e,r,n,o,i,a){Bu(r,e,n);var s,u,c,f=function(t){if(t===o&&v)return v;if(!Ju&&t in p)return p[t];switch(t){case tc:case ec:case rc:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",h=!1,p=t.prototype,d=p[Qu]||p["@@iterator"]||o&&p[o],v=!Ju&&d||f(o),y="Array"==e&&p.entries||d;if(y&&(s=Gu(y.call(new t)))!==Object.prototype&&s.next&&(Gu(s)!==Xu&&(Vu?Vu(s,Xu):Uu(s[Qu])||Hu(s,Qu,nc)),Wu(s,l,!0)),Yu&&o==ec&&d&&d.name!==ec&&(Ku?$u(p,"name",ec):(h=!0,v=function(){return Zu(d,this)})),o)if(u={values:f(ec),keys:i?v:f(tc),entries:f(rc)},a)for(c in u)(Ju||h||!(c in p))&&Hu(p,c,u[c]);else zu({target:e,proto:!0,forced:Ju||h},u);return p[Qu]!==v&&Hu(p,Qu,v,{name:o}),qu[e]=v,u},ic=function(t,e){return{value:t,done:e}},ac=J,sc=os,uc=eu,cc=Ur,fc=Ue.f,lc=oc,hc=ic,pc=w,dc="Array Iterator",vc=cc.set,yc=cc.getterFor(dc),gc=lc(Array,"Array",(function(t,e){vc(this,{type:dc,target:ac(t),index:0,kind:e})}),(function(){var t=yc(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,hc(void 0,!0)):hc("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)}),"values"),mc=uc.Arguments=uc.Array;if(sc("keys"),sc("values"),sc("entries"),pc&&"values"!==mc.name)try{fc(mc,"name",{value:"values"})}catch(t){}var bc={exports:{}},wc={},kc=wn,Oc=En,Sc=Rs,Ec=Array,xc=Math.max,Ac=Z,Mc=J,jc=hn.f,Pc=function(t,e,r){for(var n=Oc(t),o=kc(e,n),i=kc(void 0===r?n:r,n),a=Ec(xc(i-o,0)),s=0;o<i;o++,s++)Sc(a,s,t[o]);return a.length=s,a},_c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];wc.f=function(t){return _c&&"Window"==Ac(t)?function(t){try{return jc(t)}catch(t){return Pc(_c)}}(t):jc(Mc(t))};var Tc=b((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Ic=b,Cc=it,Lc=Z,Nc=Tc,Rc=Object.isExtensible,Fc=Ic((function(){Rc(1)}))||Nc?function(t){return!!Cc(t)&&((!Nc||"ArrayBuffer"!=Lc(t))&&(!Rc||Rc(t)))}:Rc,Dc=!b((function(){return Object.isExtensible(Object.preventExtensions({}))})),zc=ho,Zc=R,Uc=Mr,Bc=it,Gc=te,Vc=Ue.f,Wc=hn,$c=wc,Hc=Fc,qc=Dc,Yc=!1,Kc=ie("meta"),Xc=0,Jc=function(t){Vc(t,Kc,{value:{objectID:"O"+Xc++,weakData:{}}})},Qc=bc.exports={enable:function(){Qc.enable=function(){},Yc=!0;var t=Wc.f,e=Zc([].splice),r={};r[Kc]=1,t(r).length&&(Wc.f=function(r){for(var n=t(r),o=0,i=n.length;o<i;o++)if(n[o]===Kc){e(n,o,1);break}return n},zc({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:$c.f}))},fastKey:function(t,e){if(!Bc(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Gc(t,Kc)){if(!Hc(t))return"F";if(!e)return"E";Jc(t)}return t[Kc].objectID},getWeakData:function(t,e){if(!Gc(t,Kc)){if(!Hc(t))return!0;if(!e)return!1;Jc(t)}return t[Kc].weakData},onFreeze:function(t){return qc&&Yc&&Hc(t)&&!Gc(t,Kc)&&Jc(t),t}};Uc[Kc]=!0;var tf=bc.exports,ef=eu,rf=de("iterator"),nf=Array.prototype,of=To,af=Nt,sf=$,uf=eu,cf=de("iterator"),ff=function(t){if(!sf(t))return af(t,cf)||af(t,"@@iterator")||uf[of(t)]},lf=E,hf=It,pf=$e,df=jt,vf=ff,yf=TypeError,gf=E,mf=$e,bf=Nt,wf=wo,kf=E,Of=$e,Sf=jt,Ef=function(t){return void 0!==t&&(ef.Array===t||nf[rf]===t)},xf=En,Af=ct,Mf=function(t,e){var r=arguments.length<2?vf(t):e;if(hf(r))return pf(lf(r,t));throw yf(df(t)+" is not iterable")},jf=ff,Pf=function(t,e,r){var n,o;mf(t);try{if(!(n=bf(t,"return"))){if("throw"===e)throw r;return r}n=gf(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return mf(n),r},_f=TypeError,Tf=function(t,e){this.stopped=t,this.result=e},If=Tf.prototype,Cf=function(t,e,r){var n,o,i,a,s,u,c,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=wf(e,f),y=function(t){return n&&Pf(n,"normal",t),new Tf(!0,t)},g=function(t){return l?(Of(t),d?v(t[0],t[1],y):v(t[0],t[1])):d?v(t,y):v(t)};if(h)n=t.iterator;else if(p)n=t;else{if(!(o=jf(t)))throw _f(Sf(t)+" is not iterable");if(Ef(o)){for(i=0,a=xf(t);a>i;i++)if((s=g(t[i]))&&Af(If,s))return s;return new Tf(!1)}n=Mf(t,o)}for(u=h?t.next:n.next;!(c=kf(u,n)).done;){try{s=g(c.value)}catch(t){Pf(n,"throw",t)}if("object"==typeof s&&s&&Af(If,s))return s}return new Tf(!1)},Lf=ct,Nf=TypeError,Rf=function(t,e){if(Lf(e,t))return t;throw Nf("Incorrect invocation")},Ff=de("iterator"),Df=!1;try{var zf=0,Zf={next:function(){return{done:!!zf++}},return:function(){Df=!0}};Zf[Ff]=function(){return this},Array.from(Zf,(function(){throw 2}))}catch(t){}var Uf=rt,Bf=it,Gf=Du,Vf=function(t,e,r){var n,o;return Gf&&Uf(n=e.constructor)&&n!==r&&Bf(o=n.prototype)&&o!==r.prototype&&Gf(t,o),t},Wf=ho,$f=g,Hf=R,qf=oo,Yf=ln,Kf=tf,Xf=Cf,Jf=Rf,Qf=rt,tl=$,el=it,rl=b,nl=function(t,e){if(!e&&!Df)return!1;var r=!1;try{var n={};n[Ff]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},ol=Su,il=Vf,al=an,sl=Ue,ul=function(t,e,r){return r.get&&al(r.get,e,{getter:!0}),r.set&&al(r.set,e,{setter:!0}),sl.f(t,e,r)},cl=ln,fl=ut,ll=ul,hl=w,pl=de("species"),dl=Ja,vl=ul,yl=function(t,e,r){for(var n in e)cl(t,n,e[n],r);return t},gl=wo,ml=Rf,bl=$,wl=Cf,kl=oc,Ol=ic,Sl=function(t){var e=fl(t);hl&&e&&!e[pl]&&ll(e,pl,{configurable:!0,get:function(){return this}})},El=w,xl=tf.fastKey,Al=Ur.set,Ml=Ur.getterFor,jl={getConstructor:function(t,e,r,n){var o=t((function(t,o){ml(t,i),Al(t,{type:e,index:dl(null),first:void 0,last:void 0,size:0}),El||(t.size=0),bl(o)||wl(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,a=Ml(e),s=function(t,e,r){var n,o,i=a(t),s=u(t,e);return s?s.value=r:(i.last=s={index:o=xl(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=s),n&&(n.next=s),El?i.size++:t.size++,"F"!==o&&(i.index[o]=s)),t},u=function(t,e){var r,n=a(t),o=xl(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return yl(i,{clear:function(){for(var t=a(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,El?t.size=0:this.size=0},delete:function(t){var e=this,r=a(e),n=u(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),El?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=a(this),n=gl(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!u(this,t)}}),yl(i,r?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),El&&vl(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=Ml(e),i=Ml(n);kl(t,e,(function(t,e){Al(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?Ol("keys"==e?r.key:"values"==e?r.value:[r.key,r.value],!1):(t.target=void 0,Ol(void 0,!0))}),r?"entries":"values",!r,!0),Sl(e)}};(function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",a=$f[t],s=a&&a.prototype,u=a,c={},f=function(t){var e=Hf(s[t]);Yf(s,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!el(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!el(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!el(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(qf(t,!Qf(a)||!(o||s.forEach&&!rl((function(){(new a).entries().next()})))))u=r.getConstructor(e,t,n,i),Kf.enable();else if(qf(t,!0)){var l=new u,h=l[i](o?{}:-0,1)!=l,p=rl((function(){l.has(1)})),d=nl((function(t){new a(t)})),v=!o&&rl((function(){for(var t=new a,e=5;e--;)t[i](e,e);return!t.has(-0)}));d||((u=e((function(t,e){Jf(t,s);var r=il(new a,t,u);return tl(e)||Xf(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=s,s.constructor=u),(p||v)&&(f("delete"),f("has"),n&&f("get")),(v||h)&&f(i),o&&s.clear&&delete s.clear}c[t]=u,Wf({global:!0,constructor:!0,forced:u!=a},c),ol(u,t),o||r.setStrong(u,t,n)})("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),jl);var Pl=R,_l=yn,Tl=ds,Il=Y,Cl=Pl("".charAt),Ll=Pl("".charCodeAt),Nl=Pl("".slice),Rl=function(t){return function(e,r){var n,o,i=Tl(Il(e)),a=_l(r),s=i.length;return a<0||a>=s?t?"":void 0:(n=Ll(i,a))<55296||n>56319||a+1===s||(o=Ll(i,a+1))<56320||o>57343?t?Cl(i,a):n:t?Nl(i,a,a+2):o-56320+(n-55296<<10)+65536}},Fl={codeAt:Rl(!1),charAt:Rl(!0)}.charAt,Dl=ds,zl=Ur,Zl=oc,Ul=ic,Bl="String Iterator",Gl=zl.set,Vl=zl.getterFor(Bl);Zl(String,"String",(function(t){Gl(this,{type:Bl,string:Dl(t),index:0})}),(function(){var t,e=Vl(this),r=e.string,n=e.index;return n>=r.length?Ul(void 0,!0):(t=Fl(r,n),e.index+=t.length,Ul(t,!1))}));var Wl=g,$l=Mi,Hl=_i,ql=gc,Yl=ar,Kl=de,Xl=Kl("iterator"),Jl=Kl("toStringTag"),Ql=ql.values,th=function(t,e){if(t){if(t[Xl]!==Ql)try{Yl(t,Xl,Ql)}catch(e){t[Xl]=Ql}if(t[Jl]||Yl(t,Jl,e),$l[e])for(var r in ql)if(t[r]!==ql[r])try{Yl(t,r,ql[r])}catch(e){t[r]=ql[r]}}};for(var eh in $l)th(Wl[eh]&&Wl[eh].prototype,eh);th(Hl,"DOMTokenList");var rh=It,nh=Xt,oh=W,ih=En,ah=TypeError,sh=function(t){return function(e,r,n,o){rh(r);var i=nh(e),a=oh(i),s=ih(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 ah("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}},uh={left:sh(!1),right:sh(!0)},ch="undefined"!=typeof process&&"process"==Z(process),fh=uh.left;ho({target:"Array",proto:!0,forced:!ch&&yt>79&&yt<83||!Ii("reduce")},{reduce:function(t){var e=arguments.length;return fh(this,t,e,e>1?arguments[1]:void 0)}});var lh=g,hh=R(1..valueOf),ph=Y,dh=ds,vh="\t\n\v\f\r                 \u2028\u2029\ufeff",yh=R("".replace),gh=RegExp("^["+vh+"]+"),mh=RegExp("(^|[^"+vh+"])["+vh+"]+$"),bh=function(t){return function(e){var r=dh(ph(e));return 1&t&&(r=yh(r,gh,"")),2&t&&(r=yh(r,mh,"$1")),r}},wh={start:bh(1),end:bh(2),trim:bh(3)},kh=ho,Oh=w,Sh=g,Eh=lh,xh=R,Ah=oo,Mh=te,jh=Vf,Ph=ct,_h=At,Th=Oe,Ih=b,Ch=hn.f,Lh=m.f,Nh=Ue.f,Rh=hh,Fh=wh.trim,Dh="Number",zh=Sh[Dh];Eh[Dh];var Zh=zh.prototype,Uh=Sh.TypeError,Bh=xh("".slice),Gh=xh("".charCodeAt),Vh=function(t){var e,r,n,o,i,a,s,u,c=Th(t,"number");if(_h(c))throw Uh("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=Fh(c),43===(e=Gh(c,0))||45===e){if(88===(r=Gh(c,2))||120===r)return NaN}else if(48===e){switch(Gh(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=Bh(c,2)).length,s=0;s<a;s++)if((u=Gh(i,s))<48||u>o)return NaN;return parseInt(i,n)}return+c},Wh=Ah(Dh,!zh(" 0o1")||!zh("0b1")||zh("+0x1")),$h=function(t){var e,r=arguments.length<1?0:zh(function(t){var e=Th(t,"number");return"bigint"==typeof e?e:Vh(e)}(t));return Ph(Zh,e=this)&&Ih((function(){Rh(e)}))?jh(Object(r),this,$h):r};$h.prototype=Zh,Wh&&(Zh.constructor=$h),kh({global:!0,constructor:!0,wrap:!0,forced:Wh},{Number:$h});Wh&&function(t,e){for(var r,n=Oh?Ch(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++)Mh(e,r=n[o])&&!Mh(t,r)&&Nh(t,r,Lh(e,r))}(Eh[Dh],zh);var Hh=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,f(o)),max:Math.max.apply(Math,f(o))}}})),qh=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 f=c.firstElementChild;f.setAttribute("width","50"),f.setAttribute("height","50");var l=document.createElementNS("http://www.w3.org/2000/svg","text");l.setAttribute("x","50%"),l.setAttribute("y","50%"),l.setAttribute("style","fill: #FFF"),l.setAttribute("text-anchor","middle"),l.setAttribute("font-size","50"),l.setAttribute("dominant-baseline","middle"),l.appendChild(document.createTextNode("".concat(n))),f.appendChild(l);var h={map:r,position:o,zIndex:u,title:s,content:c.firstElementChild};return new google.maps.marker.AdvancedMarkerElement(h)}var p={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(p)}}]),t}();var Yh,Kh=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,(Yh=t.MarkerClustererEvents||(t.MarkerClustererEvents={})).CLUSTERING_BEGIN="clusteringbegin",Yh.CLUSTERING_END="clusteringend",Yh.CLUSTER_CLICK="click";var Xh=function(t,e,r){r.fitBounds(e.bounds)},Jh=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.algorithmOptions,c=void 0===u?{}:u,l=t.algorithm,h=void 0===l?new Pa(c):l,p=t.renderer,d=void 0===p?new qh:p,v=t.onClusterClick,y=void 0===v?Xh:v;return e(this,a),(r=i.call(this)).markers=f(s),r.clusters=[],r.algorithm=h,r.renderer=d,r.onClusterClick=y,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&&(yi.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);var r=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()}),n=r.clusters,o=r.changed;if(o||null==o){var i,a=new Set,s=p(n);try{for(s.s();!(i=s.n()).done;){var u=i.value;1==u.markers.length&&a.add(u.markers[0])}}catch(t){s.e(t)}finally{s.f()}var c,f=[],l=p(this.clusters);try{for(l.s();!(c=l.n()).done;){var h=c.value;null!=h.marker&&(1==h.markers.length?a.has(h.marker)||yi.setMap(h.marker,null):f.push(h.marker))}}catch(t){l.e(t)}finally{l.f()}this.clusters=n,this.renderClusters(),requestAnimationFrame((function(){return f.forEach((function(t){return yi.setMap(t,null)}))}))}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 yi.setMap(t,null)})),this.clusters.forEach((function(t){return t.delete()})),this.clusters=[]}},{key:"renderClusters",value:function(){var e=this,r=new Hh(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),o.markers.forEach((function(t){return yi.setMap(t,null)})),e.onClusterClick&&o.marker.addListener("click",(function(r){google.maps.event.trigger(e,t.MarkerClustererEvents.CLUSTER_CLICK,o),e.onClusterClick(r,o,n)}))),yi.setMap(o.marker,n)}))}}]),a}(Kh);return t.AbstractAlgorithm=Ei,t.AbstractViewportAlgorithm=xi,t.Cluster=gi,t.ClusterStats=Hh,t.DefaultRenderer=qh,t.GridAlgorithm=Wi,t.MarkerClusterer=Jh,t.NoopAlgorithm=$i,t.SuperClusterAlgorithm=Pa,t.defaultOnClusterClickHandler=Xh,t.distanceBetweenPoints=wi,t.extendBoundsToPaddedViewport=bi,t.extendPixelBounds=Oi,t.filterMarkersToPaddedViewport=mi,t.noop=Ai,t.pixelBoundsToLatLngBounds=Si,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){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&&s(t,e)}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function a(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 a(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,s,a=[],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)&&(a.push(n.value),a.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(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 h(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 h(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)?h(t,e):void 0}}function h(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 p="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 p&&p)||function(){return this}()||p||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,O=Function.prototype.call,S=k?O.bind(O):function(){return O.apply(O,arguments)},E={},M={}.propertyIsEnumerable,x=Object.getOwnPropertyDescriptor,j=x&&!M.call({1:2},1);E.f=j?function(t){var e=x(this,t);return!!e&&e.enumerable}:M;var A,P,_=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},T=w,C=Function.prototype,L=C.call,I=T&&C.bind.bind(L,L),N=T?I:function(t){return function(){return L.apply(t,arguments)}},D=N,F=D({}.toString),R=D("".slice),z=function(t){return R(F(t),8,-1)},Z=v,U=z,B=Object,G=N("".split),V=Z((function(){return!B("z").propertyIsEnumerable(0)}))?function(t){return"String"==U(t)?G(t,""):B(t)}:B,W=function(t){return null==t},$=W,H=TypeError,q=function(t){if($(t))throw H("Can't call method on "+t);return t},X=V,Y=q,K=function(t){return X(Y(t))},J="object"==typeof document&&document.all,Q={all:J,IS_HTMLDDA:void 0===J&&void 0!==J},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,st=et,at=function(t,e){return arguments.length<2?(r=it[t],st(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,ht=ct.Deno,pt=ft&&ft.versions||ht&&ht.version,dt=pt&&pt.v8;dt&&(P=(A=dt.split("."))[0]>0&&A[0]<4?1:+(A[0]+A[1])),!P&&lt&&(!(A=lt.match(/Edge\/(\d+)/))||A[1]>=74)&&(A=lt.match(/Chrome\/(\d+)/))&&(P=+A[1]);var mt=P,gt=mt,yt=v,vt=g.String,bt=!!Object.getOwnPropertySymbols&&!yt((function(){var t=Symbol();return!vt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&gt&&gt<41})),wt=bt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,kt=at,Ot=et,St=ut,Et=Object,Mt=wt?function(t){return"symbol"==typeof t}:function(t){var e=kt("Symbol");return Ot(e)&&St(e.prototype,Et(t))},xt=String,jt=function(t){try{return xt(t)}catch(t){return"Object"}},At=et,Pt=jt,_t=TypeError,Tt=function(t){if(At(t))return t;throw _t(Pt(t)+" is not a function")},Ct=Tt,Lt=W,It=S,Nt=et,Dt=ot,Ft=TypeError,Rt={exports:{}},zt=g,Zt=Object.defineProperty,Ut=function(t,e){try{Zt(zt,t,{value:e,configurable:!0,writable:!0})}catch(r){zt[t]=e}return e},Bt=Ut,Gt="__core-js_shared__",Vt=g[Gt]||Bt(Gt,{}),Wt=Vt;(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 $t=Rt.exports,Ht=q,qt=Object,Xt=function(t){return qt(Ht(t))},Yt=Xt,Kt=N({}.hasOwnProperty),Jt=Object.hasOwn||function(t,e){return Kt(Yt(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=$t,ie=Jt,se=ne,ae=bt,ue=wt,ce=g.Symbol,le=oe("wks"),fe=ue?ce.for||ce:ce&&ce.withoutSetter||se,he=function(t){return ie(le,t)||(le[t]=ae&&ie(ce,t)?ce[t]:fe("Symbol."+t)),le[t]},pe=S,de=ot,me=Mt,ge=function(t,e){var r=t[e];return Lt(r)?void 0:Ct(r)},ye=function(t,e){var r,n;if("string"===e&&Nt(r=t.toString)&&!Dt(n=It(r,t)))return n;if(Nt(r=t.valueOf)&&!Dt(n=It(r,t)))return n;if("string"!==e&&Nt(r=t.toString)&&!Dt(n=It(r,t)))return n;throw Ft("Can't convert object to primitive value")},ve=TypeError,be=he("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=pe(n,t,e),!de(r)||me(r))return r;throw ve("Can't convert object to primitive value")}return void 0===e&&(e="number"),ye(t,e)},ke=we,Oe=Mt,Se=function(t){var e=ke(t,"string");return Oe(e)?e:e+""},Ee=ot,Me=g.document,xe=Ee(Me)&&Ee(Me.createElement),je=function(t){return xe?Me.createElement(t):{}},Ae=je,Pe=!b&&!v((function(){return 7!=Object.defineProperty(Ae("div"),"a",{get:function(){return 7}}).a})),_e=b,Te=S,Ce=E,Le=_,Ie=K,Ne=Se,De=Jt,Fe=Pe,Re=Object.getOwnPropertyDescriptor;y.f=_e?Re:function(t,e){if(t=Ie(t),e=Ne(e),Fe)try{return Re(t,e)}catch(t){}if(De(t,e))return Le(!Te(Ce.f,t,e),t[e])};var ze={},Ze=b&&v((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ue=ot,Be=String,Ge=TypeError,Ve=function(t){if(Ue(t))return t;throw Ge(Be(t)+" is not an object")},We=b,$e=Pe,He=Ze,qe=Ve,Xe=Se,Ye=TypeError,Ke=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,Qe="enumerable",tr="configurable",er="writable";ze.f=We?He?function(t,e,r){if(qe(t),e=Xe(e),qe(r),"function"==typeof t&&"prototype"===e&&"value"in r&&er in r&&!r[er]){var n=Je(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(qe(t),e=Xe(e),qe(r),$e)try{return Ke(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Ye("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var rr=ze,nr=_,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:{}},sr=b,ar=Jt,ur=Function.prototype,cr=sr&&Object.getOwnPropertyDescriptor,lr=ar(ur,"name"),fr={EXISTS:lr,PROPER:lr&&"something"===function(){}.name,CONFIGURABLE:lr&&(!sr||sr&&cr(ur,"name").configurable)},hr=et,pr=Vt,dr=N(Function.toString);hr(pr.inspectSource)||(pr.inspectSource=function(t){return dr(t)});var mr,gr,yr,vr=pr.inspectSource,br=et,wr=g.WeakMap,kr=br(wr)&&/native code/.test(String(wr)),Or=ne,Sr=$t("keys"),Er=function(t){return Sr[t]||(Sr[t]=Or(t))},Mr={},xr=kr,jr=g,Ar=ot,Pr=or,_r=Jt,Tr=Vt,Cr=Er,Lr=Mr,Ir="Object already initialized",Nr=jr.TypeError,Dr=jr.WeakMap;if(xr||Tr.state){var Fr=Tr.state||(Tr.state=new Dr);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)||{}},yr=function(t){return Fr.has(t)}}else{var Rr=Cr("state");Lr[Rr]=!0,mr=function(t,e){if(_r(t,Rr))throw Nr(Ir);return e.facade=t,Pr(t,Rr,e),e},gr=function(t){return _r(t,Rr)?t[Rr]:{}},yr=function(t){return _r(t,Rr)}}var zr={set:mr,get:gr,has:yr,enforce:function(t){return yr(t)?gr(t):mr(t,{})},getterFor:function(t){return function(e){var r;if(!Ar(e)||(r=gr(e)).type!==t)throw Nr("Incompatible receiver, "+t+" required");return r}}},Zr=N,Ur=v,Br=et,Gr=Jt,Vr=b,Wr=fr.CONFIGURABLE,$r=vr,Hr=zr.enforce,qr=zr.get,Xr=String,Yr=Object.defineProperty,Kr=Zr("".slice),Jr=Zr("".replace),Qr=Zr([].join),tn=Vr&&!Ur((function(){return 8!==Yr((function(){}),"length",{value:8}).length})),en=String(String).split("String"),rn=ir.exports=function(t,e,r){"Symbol("===Kr(Xr(e),0,7)&&(e="["+Jr(Xr(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Gr(t,"name")||Wr&&t.name!==e)&&(Vr?Yr(t,"name",{value:e,configurable:!0}):t.name=e),tn&&r&&Gr(r,"arity")&&t.length!==r.arity&&Yr(t,"length",{value:r.arity});try{r&&Gr(r,"constructor")&&r.constructor?Vr&&Yr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Hr(t);return Gr(n,"source")||(n.source=Qr(en,"string"==typeof e?e:"")),t};Function.prototype.toString=rn((function(){return Br(this)&&qr(this).source||$r(this)}),"toString");var nn=ir.exports,on=et,sn=ze,an=nn,un=Ut,cn=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(on(r)&&an(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:sn.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},ln={},fn=Math.ceil,hn=Math.floor,pn=Math.trunc||function(t){var e=+t;return(e>0?hn:fn)(e)},dn=function(t){var e=+t;return e!=e||0===e?0:pn(e)},mn=dn,gn=Math.max,yn=Math.min,vn=function(t,e){var r=mn(t);return r<0?gn(r+e,0):yn(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,En=vn,Mn=On,xn=function(t){return function(e,r,n){var o,i=Sn(e),s=Mn(i),a=En(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}},jn={includes:xn(!0),indexOf:xn(!1)},An=Jt,Pn=K,_n=jn.indexOf,Tn=Mr,Cn=N([].push),Ln=function(t,e){var r,n=Pn(t),o=0,i=[];for(r in n)!An(Tn,r)&&An(n,r)&&Cn(i,r);for(;e.length>o;)An(n,r=e[o++])&&(~_n(i,r)||Cn(i,r));return i},In=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nn=Ln,Dn=In.concat("length","prototype");ln.f=Object.getOwnPropertyNames||function(t){return Nn(t,Dn)};var Fn={};Fn.f=Object.getOwnPropertySymbols;var Rn=at,zn=ln,Zn=Fn,Un=Ve,Bn=N([].concat),Gn=Rn("Reflect","ownKeys")||function(t){var e=zn.f(Un(t)),r=Zn.f;return r?Bn(e,r(t)):e},Vn=Jt,Wn=Gn,$n=y,Hn=ze,qn=v,Xn=et,Yn=/#|\.prototype\./,Kn=function(t,e){var r=Qn[Jn(t)];return r==eo||r!=to&&(Xn(e)?qn(e):!!e)},Jn=Kn.normalize=function(t){return String(t).replace(Yn,".").toLowerCase()},Qn=Kn.data={},to=Kn.NATIVE="N",eo=Kn.POLYFILL="P",ro=Kn,no=g,oo=y.f,io=or,so=cn,ao=Ut,uo=function(t,e,r){for(var n=Wn(e),o=Hn.f,i=$n.f,s=0;s<n.length;s++){var a=n[s];Vn(t,a)||r&&Vn(r,a)||o(t,a,i(e,a))}},co=ro,lo=function(t,e){var r,n,o,i,s,a=t.target,u=t.global,c=t.stat;if(r=u?no:c?no[a]||ao(a,{}):(no[a]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(s=oo(r,n))&&s.value:r[n],!co(u?n:a+(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),so(r,n,i,t)}},fo=z,ho=N,po=function(t){if("Function"===fo(t))return ho(t)},mo=Tt,go=w,yo=po(po.bind),vo=z,bo=Array.isArray||function(t){return"Array"==vo(t)},wo={};wo[he("toStringTag")]="z";var ko="[object z]"===String(wo),Oo=ko,So=et,Eo=z,Mo=he("toStringTag"),xo=Object,jo="Arguments"==Eo(function(){return arguments}()),Ao=Oo?Eo: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=xo(t),Mo))?r:jo?Eo(e):"Object"==(n=Eo(e))&&So(e.callee)?"Arguments":n},Po=N,_o=v,To=et,Co=Ao,Lo=vr,Io=function(){},No=[],Do=at("Reflect","construct"),Fo=/^\s*(?:class|function)\b/,Ro=Po(Fo.exec),zo=!Fo.exec(Io),Zo=function(t){if(!To(t))return!1;try{return Do(Io,No,t),!0}catch(t){return!1}},Uo=function(t){if(!To(t))return!1;switch(Co(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return zo||!!Ro(Fo,Lo(t))}catch(t){return!0}};Uo.sham=!0;var Bo=!Do||_o((function(){var t;return Zo(Zo.call)||!Zo(Object)||!Zo((function(){t=!0}))||t}))?Uo:Zo,Go=bo,Vo=Bo,Wo=ot,$o=he("species"),Ho=Array,qo=function(t){var e;return Go(t)&&(e=t.constructor,(Vo(e)&&(e===Ho||Go(e.prototype))||Wo(e)&&null===(e=e[$o]))&&(e=void 0)),void 0===e?Ho:e},Xo=function(t,e){return new(qo(t))(0===e?0:e)},Yo=function(t,e){return mo(t),void 0===e?t:go?yo(t,e):function(){return t.apply(e,arguments)}},Ko=V,Jo=Xt,Qo=On,ti=Xo,ei=N([].push),ri=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,s=7==t,a=5==t||i;return function(u,c,l,f){for(var h,p,d=Jo(u),m=Ko(d),g=Yo(c,l),y=Qo(m),v=0,b=f||ti,w=e?b(u,y):r||s?b(u,0):void 0;y>v;v++)if((a||v in m)&&(p=g(h=m[v],v,d),t))if(e)w[v]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return v;case 2:ei(w,h)}else switch(t){case 4:return!1;case 7:ei(w,h)}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=v,ii=mt,si=he("species"),ai=function(t){return ii>=51||!oi((function(){var e=[];return(e.constructor={})[si]=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:!ai("map")},{map:function(t){return ui(this,t,arguments.length>1?arguments[1]:void 0)}});var li=ni.filter;lo({target:"Array",proto:!0,forced:!ai("filter")},{filter:function(t){return li(this,t,arguments.length>1?arguments[1]:void 0)}});var fi=Ao,hi=ko?{}.toString:function(){return"[object "+fi(this)+"]"};ko||cn(Object.prototype,"toString",hi,{unsafe:!0});var pi=function(){function t(){e(this,t)}return n(t,null,[{key:"isAdvancedMarker",value:function(t){return google.maps.marker&&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}(),di=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){var t,e=new google.maps.LatLngBounds(this._position,this._position),r=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=f(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){a=!0,i=t},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}(this.markers);try{for(r.s();!(t=r.n()).done;){var n=t.value;e.extend(pi.getPosition(n))}}catch(t){r.e(t)}finally{r.f()}return e}}},{key:"position",get:function(){return this._position||this.bounds.getCenter()}},{key:"count",get:function(){return this.markers.filter((function(t){return pi.getVisible(t)})).length}},{key:"push",value:function(t){this.markers.push(t)}},{key:"delete",value:function(){this.marker&&(pi.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}]),t}(),mi=function(t,e,r,n){var o=gi(t.getBounds(),e,n);return r.filter((function(t){return o.contains(pi.getPosition(t))}))},gi=function(t,e,r){var n=vi(t,e),o=n.northEast,i=n.southWest,s=bi({northEast:o,southWest:i},r);return wi(s,e)},yi=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),i=Math.sin(n/2),s=o*o+Math.cos(t.lat*Math.PI/180)*Math.cos(e.lat*Math.PI/180)*i*i;return 6371*(2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s)))},vi=function(t,e){return{northEast:e.fromLatLngToDivPixel(t.getNorthEast()),southWest:e.fromLatLngToDivPixel(t.getSouthWest())}},bi=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}},wi=function(t,e){var r=t.northEast,n=t.southWest,o=e.fromDivPixelToLatLng(n),i=e.fromDivPixelToLatLng(r);return new google.maps.LatLngBounds(o,i)},ki=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 Si(e)}}]),t}(),Oi=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.viewportPadding,s=void 0===o?60:o,a=ci(t,["viewportPadding"]);return(n=r.call(this,a)).viewportPadding=60,n.viewportPadding=s,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}),changed:!1}:{clusters:this.cluster({markers:mi(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}}]),i}(ki),Si=function(t){return t.map((function(t){return new di({position:pi.getPosition(t),markers:[t]})}))},Ei=je("span").classList,Mi=Ei&&Ei.constructor&&Ei.constructor.prototype,xi=Mi===Object.prototype?void 0:Mi,ji=v,Ai=function(t,e){var r=[][t];return!!r&&ji((function(){r.call(null,e||function(){return 1},1)}))},Pi=ni.forEach,_i=Ai("forEach")?[].forEach:function(t){return Pi(this,t,arguments.length>1?arguments[1]:void 0)},Ti=g,Ci={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},Li=xi,Ii=_i,Ni=or,Di=function(t){if(t&&t.forEach!==Ii)try{Ni(t,"forEach",Ii)}catch(e){t.forEach=Ii}};for(var Fi in Ci)Ci[Fi]&&Di(Ti[Fi]&&Ti[Fi].prototype);Di(Li);var Ri=S;lo({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return Ri(URL.prototype.toString,this)}});var zi=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},Zi=d(zi),Ui=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.maxDistance,s=void 0===o?4e4:o,a=t.gridSize,u=void 0===a?40:a,c=ci(t,["maxDistance","gridSize"]);return(n=r.call(this,c)).clusters=[],n.maxDistance=s,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=!Zi(this.state,o)),this.state=o,r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e}),changed:i}:{clusters:this.cluster({markers:mi(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 s=this.clusters[i],a=yi(s.bounds.getCenter().toJSON(),pi.getPosition(t).toJSON());a<n&&(n=a,o=s)}if(o&&gi(o.bounds,r,this.gridSize).contains(pi.getPosition(t)))o.push(t);else{var u=new di({markers:[t]});this.clusters.push(u)}}}]),i}(Oi),Bi=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}(ki),Gi=Ln,Vi=In,Wi=Object.keys||function(t){return Gi(t,Vi)},$i=b,Hi=N,qi=S,Xi=v,Yi=Wi,Ki=Fn,Ji=E,Qi=Xt,ts=V,es=Object.assign,rs=Object.defineProperty,ns=Hi([].concat),os=!es||Xi((function(){if($i&&1!==es({b:1},es(rs({},"a",{enumerable:!0,get:function(){rs(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!=es({},t)[r]||Yi(es({},e)).join("")!=n}))?function(t,e){for(var r=Qi(t),n=arguments.length,o=1,i=Ki.f,s=Ji.f;n>o;)for(var a,u=ts(arguments[o++]),c=i?ns(Yi(u),i(u)):Yi(u),l=c.length,f=0;l>f;)a=c[f++],$i&&!qi(s,u,a)||(r[a]=u[a]);return r}:es,is=os;lo({target:"Object",stat:!0,arity:2,forced:Object.assign!==is},{assign:is});const ss=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class as{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[e,r]=new Uint8Array(t,0,2);if(219!==e)throw new Error("Data does not appear to be in a KDBush format.");const n=r>>4;if(1!==n)throw new Error(`Got v${n} data when expected v1.`);const o=ss[15&r];if(!o)throw new Error("Unrecognized array type.");const[i]=new Uint16Array(t,2,1),[s]=new Uint32Array(t,4,1);return new as(s,i,o,t)}constructor(t,e=64,r=Float64Array,n){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const o=ss.indexOf(this.ArrayType),i=2*t*this.ArrayType.BYTES_PER_ELEMENT,s=t*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-s%8)%8;if(o<0)throw new Error(`Unexpected typed array class: ${r}.`);n&&n instanceof ArrayBuffer?(this.data=n,this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+s+a,2*t),this._pos=2*t,this._finished=!0):(this.data=new ArrayBuffer(8+i+s+a),this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+s+a,2*t),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+o]),new Uint16Array(this.data,2,1)[0]=e,new Uint32Array(this.data,4,1)[0]=t)}add(t,e){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=e,r}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return us(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,r,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:i,nodeSize:s}=this,a=[0,o.length-1,0],u=[];for(;a.length;){const c=a.pop()||0,l=a.pop()||0,f=a.pop()||0;if(l-f<=s){for(let s=f;s<=l;s++){const a=i[2*s],c=i[2*s+1];a>=t&&a<=r&&c>=e&&c<=n&&u.push(o[s])}continue}const h=f+l>>1,p=i[2*h],d=i[2*h+1];p>=t&&p<=r&&d>=e&&d<=n&&u.push(o[h]),(0===c?t<=p:e<=d)&&(a.push(f),a.push(h-1),a.push(1-c)),(0===c?r>=p:n>=d)&&(a.push(h+1),a.push(l),a.push(1-c))}return u}within(t,e,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:n,coords:o,nodeSize:i}=this,s=[0,n.length-1,0],a=[],u=r*r;for(;s.length;){const c=s.pop()||0,l=s.pop()||0,f=s.pop()||0;if(l-f<=i){for(let r=f;r<=l;r++)hs(o[2*r],o[2*r+1],t,e)<=u&&a.push(n[r]);continue}const h=f+l>>1,p=o[2*h],d=o[2*h+1];hs(p,d,t,e)<=u&&a.push(n[h]),(0===c?t-r<=p:e-r<=d)&&(s.push(f),s.push(h-1),s.push(1-c)),(0===c?t+r>=p:e+r>=d)&&(s.push(h+1),s.push(l),s.push(1-c))}return a}}function us(t,e,r,n,o,i){if(o-n<=r)return;const s=n+o>>1;cs(t,e,s,n,o,i),us(t,e,r,n,s-1,1-i),us(t,e,r,s+1,o,1-i)}function cs(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);cs(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(ls(t,e,n,r),e[2*o+i]>s&&ls(t,e,n,o);a<u;){for(ls(t,e,a,u),a++,u--;e[2*a+i]<s;)a++;for(;e[2*u+i]>s;)u--}e[2*n+i]===s?ls(t,e,n,u):(u++,ls(t,e,u,o)),u<=r&&(n=u+1),r<=u&&(o=u-1)}}function ls(t,e,r,n){fs(t,r,n),fs(e,2*r,2*n),fs(e,2*r+1,2*n+1)}function fs(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function hs(t,e,r,n){const o=t-r,i=e-n;return o*o+i*i}const ps={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},ds=Math.fround||(ms=new Float32Array(1),t=>(ms[0]=+t,ms[0]));var ms;const gs=3,ys=5,vs=6;class bs{constructor(t){this.options=Object.assign(Object.create(ps),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:e,minZoom:r,maxZoom:n}=this.options;e&&console.time("total time");const o=`prepare ${t.length} points`;e&&console.time(o),this.points=t;const i=[];for(let e=0;e<t.length;e++){const r=t[e];if(!r.geometry)continue;const[n,o]=r.geometry.coordinates,s=ds(Os(n)),a=ds(Ss(o));i.push(s,a,1/0,e,-1,1),this.options.reduce&&i.push(0)}let s=this.trees[n+1]=this._createTree(i);e&&console.timeEnd(o);for(let t=n;t>=r;t--){const r=+Date.now();s=this.trees[t]=this._createTree(this._cluster(s,t)),e&&console.log("z%d: %d clusters in %dms",t,s.numItems,+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(Os(r),Ss(i),Os(o),Ss(n)),u=s.data,c=[];for(const t of a){const e=this.stride*t;c.push(u[e+ys]>1?ws(u,e,this.clusterProps):this.points[u[e+gs]])}return c}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.data;if(e*this.stride>=i.length)throw new Error(n);const s=this.options.radius/(this.options.extent*Math.pow(2,r-1)),a=i[e*this.stride],u=i[e*this.stride+1],c=o.within(a,u,s),l=[];for(const e of c){const r=e*this.stride;i[r+4]===t&&l.push(i[r+ys]>1?ws(i,r,this.clusterProps):this.points[i[r+gs]])}if(0===l.length)throw new Error(n);return l}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.data,e,r,o,l),0===e&&this._addTileFeatures(n.range(1-a/o,u,1,c),n.data,o,r,o,l),e===o-1&&this._addTileFeatures(n.range(0,u,a/o,c),n.data,-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}_createTree(t){const e=new as(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<t.length;r+=this.stride)e.add(t[r],t[r+1]);return e.finish(),e.data=t,e}_addTileFeatures(t,e,r,n,o,i){for(const s of t){const t=s*this.stride,a=e[t+ys]>1;let u,c,l;if(a)u=ks(e,t,this.clusterProps),c=e[t],l=e[t+1];else{const r=this.points[e[t+gs]];u=r.properties;const[n,o]=r.geometry.coordinates;c=Os(n),l=Ss(o)}const f={type:1,geometry:[[Math.round(this.options.extent*(c*o-r)),Math.round(this.options.extent*(l*o-n))]],tags:u};let h;h=a||this.options.generateId?e[t+gs]:this.points[e[t+gs]].id,void 0!==h&&(f.id=h),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{radius:r,extent:n,reduce:o,minPoints:i}=this.options,s=r/(n*Math.pow(2,e)),a=t.data,u=[],c=this.stride;for(let r=0;r<a.length;r+=c){if(a[r+2]<=e)continue;a[r+2]=e;const n=a[r],l=a[r+1],f=t.within(a[r],a[r+1],s),h=a[r+ys];let p=h;for(const t of f){const r=t*c;a[r+2]>e&&(p+=a[r+ys])}if(p>h&&p>=i){let t,i=n*h,s=l*h,d=-1;const m=((r/c|0)<<5)+(e+1)+this.points.length;for(const n of f){const u=n*c;if(a[u+2]<=e)continue;a[u+2]=e;const l=a[u+ys];i+=a[u]*l,s+=a[u+1]*l,a[u+4]=m,o&&(t||(t=this._map(a,r,!0),d=this.clusterProps.length,this.clusterProps.push(t)),o(t,this._map(a,u)))}a[r+4]=m,u.push(i/p,s/p,1/0,m,-1,p),o&&u.push(d)}else{for(let t=0;t<c;t++)u.push(a[r+t]);if(p>1)for(const t of f){const r=t*c;if(!(a[r+2]<=e)){a[r+2]=e;for(let t=0;t<c;t++)u.push(a[r+t])}}}}return u}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e,r){if(t[e+ys]>1){const n=this.clusterProps[t[e+vs]];return r?Object.assign({},n):n}const n=this.points[t[e+gs]].properties,o=this.options.map(n);return r&&o===n?Object.assign({},o):o}}function ws(t,e,r){return{type:"Feature",id:t[e+gs],properties:ks(t,e,r),geometry:{type:"Point",coordinates:[(n=t[e],360*(n-.5)),Es(t[e+1])]}};var n}function ks(t,e,r){const n=t[e+ys],o=n>=1e4?`${Math.round(n/1e3)}k`:n>=1e3?Math.round(n/100)/10+"k":n,i=t[e+vs],s=-1===i?{}:Object.assign({},r[i]);return Object.assign(s,{cluster:!0,cluster_id:t[e+gs],point_count:n,point_count_abbreviated:o})}function Os(t){return t/360+.5}function Ss(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 Es(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}var Ms=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.maxZoom,s=t.radius,a=void 0===s?60:s,u=ci(t,["maxZoom","radius"]);return(n=r.call(this,{maxZoom:o})).superCluster=new bs(Object.assign({maxZoom:n.maxZoom,radius:a},u)),n.state={zoom:null},n}return n(i,[{key:"calculate",value:function(t){var e=!1,r={zoom:t.map.getZoom()};if(!Zi(t.markers,this.markers)){e=!0,this.markers=l(t.markers);var n=this.markers.map((function(t){var e=pi.getPosition(t);return{type:"Feature",geometry:{type:"Point",coordinates:[e.lng(),e.lat()]},properties:{marker:t}}}));this.superCluster.load(n)}return e||(this.state.zoom<=this.maxZoom||r.zoom<=this.maxZoom)&&(e=!Zi(this.state,r)),this.state=r,e&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:e}}},{key:"cluster",value:function(t){var e=this,r=t.map;return this.superCluster.getClusters([-180,-90,180,90],Math.round(r.getZoom())).map((function(t){return e.transformCluster(t)}))}},{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 di({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(t){return t.properties.marker})),position:{lat:n,lng:r}});var i=o.marker;return new di({markers:[i],position:pi.getPosition(i)})}}]),i}(ki),xs={},js=b,As=Ze,Ps=ze,_s=Ve,Ts=K,Cs=Wi;xs.f=js&&!As?Object.defineProperties:function(t,e){_s(t);for(var r,n=Ts(e),o=Cs(e),i=o.length,s=0;i>s;)Ps.f(t,r=o[s++],n[r]);return t};var Ls,Is=at("document","documentElement"),Ns=Ve,Ds=xs,Fs=In,Rs=Mr,zs=Is,Zs=je,Us="prototype",Bs="script",Gs=Er("IE_PROTO"),Vs=function(){},Ws=function(t){return"<"+Bs+">"+t+"</"+Bs+">"},$s=function(t){t.write(Ws("")),t.close();var e=t.parentWindow.Object;return t=null,e},Hs=function(){try{Ls=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Hs="undefined"!=typeof document?document.domain&&Ls?$s(Ls):(e=Zs("iframe"),r="java"+Bs+":",e.style.display="none",zs.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Ws("document.F=Object")),t.close(),t.F):$s(Ls);for(var n=Fs.length;n--;)delete Hs[Us][Fs[n]];return Hs()};Rs[Gs]=!0;var qs=he,Xs=Object.create||function(t,e){var r;return null!==t?(Vs[Us]=Ns(t),r=new Vs,Vs[Us]=null,r[Gs]=t):r=Hs(),void 0===e?r:Ds.f(r,e)},Ys=ze.f,Ks=qs("unscopables"),Js=Array.prototype;null==Js[Ks]&&Ys(Js,Ks,{configurable:!0,value:Xs(null)});var Qs=jn.includes,ta=function(t){Js[Ks][t]=!0};lo({target:"Array",proto:!0,forced:v((function(){return!Array(1).includes()}))},{includes:function(t){return Qs(this,t,arguments.length>1?arguments[1]:void 0)}}),ta("includes");var ea=ot,ra=z,na=he("match"),oa=function(t){var e;return ea(t)&&(void 0!==(e=t[na])?!!e:"RegExp"==ra(t))},ia=TypeError,sa=Ao,aa=String,ua=function(t){if("Symbol"===sa(t))throw TypeError("Cannot convert a Symbol value to a string");return aa(t)},ca=he("match"),la=lo,fa=function(t){if(oa(t))throw ia("The method doesn't accept regular expressions");return t},ha=q,pa=ua,da=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[ca]=!1,"/./"[t](e)}catch(t){}}return!1},ma=N("".indexOf);la({target:"String",proto:!0,forced:!da("includes")},{includes:function(t){return!!~ma(pa(ha(this)),pa(fa(t)),arguments.length>1?arguments[1]:void 0)}});var ga=lo,ya=jn.indexOf,va=Ai,ba=po([].indexOf),wa=!!ba&&1/ba([1],1,-0)<0;ga({target:"Array",proto:!0,forced:wa||!va("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return wa?ba(this,t,e)||0:ya(this,t,e)}});var ka=b,Oa=bo,Sa=TypeError,Ea=Object.getOwnPropertyDescriptor,Ma=ka&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),xa=TypeError,ja=Se,Aa=ze,Pa=_,_a=jt,Ta=TypeError,Ca=lo,La=Xt,Ia=vn,Na=dn,Da=On,Fa=Ma?function(t,e){if(Oa(t)&&!Ea(t,"length").writable)throw Sa("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Ra=function(t){if(t>9007199254740991)throw xa("Maximum allowed index exceeded");return t},za=Xo,Za=function(t,e,r){var n=ja(e);n in t?Aa.f(t,n,Pa(0,r)):t[n]=r},Ua=function(t,e){if(!delete t[e])throw Ta("Cannot delete property "+_a(e)+" of "+_a(t))},Ba=ai("splice"),Ga=Math.max,Va=Math.min;Ca({target:"Array",proto:!0,forced:!Ba},{splice:function(t,e){var r,n,o,i,s,a,u=La(this),c=Da(u),l=Ia(t,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-l):(r=f-2,n=Va(Ga(Na(e),0),c-l)),Ra(c+r-n),o=za(u,n),i=0;i<n;i++)(s=l+i)in u&&Za(o,i,u[s]);if(o.length=n,r<n){for(i=l;i<c-n;i++)a=i+r,(s=i+n)in u?u[a]=u[s]:Ua(u,a);for(i=c;i>c-n+r;i--)Ua(u,i-1)}else if(r>n)for(i=c-n;i>l;i--)a=i+r-1,(s=i+n-1)in u?u[a]=u[s]:Ua(u,a);for(i=0;i<r;i++)u[i+l]=arguments[i+2];return Fa(u,c-n+r),o}});var Wa=Tt,$a=Xt,Ha=V,qa=On,Xa=TypeError,Ya=function(t){return function(e,r,n,o){Wa(r);var i=$a(e),s=Ha(i),a=qa(i),u=t?a-1:0,c=t?-1:1;if(n<2)for(;;){if(u in s){o=s[u],u+=c;break}if(u+=c,t?u<0:a<=u)throw Xa("Reduce of empty array with no initial value")}for(;t?u>=0:a>u;u+=c)u in s&&(o=r(o,s[u],u,i));return o}},Ka={left:Ya(!1),right:Ya(!0)},Ja="undefined"!=typeof process&&"process"==z(process),Qa=Ka.left;lo({target:"Array",proto:!0,forced:!Ja&&mt>79&&mt<83||!Ai("reduce")},{reduce:function(t){var e=arguments.length;return Qa(this,t,e,e>1?arguments[1]:void 0)}});var tu=g,eu=N,ru=Tt,nu=et,ou=String,iu=TypeError,su=function(t,e,r){try{return eu(ru(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},au=Ve,uu=function(t){if("object"==typeof t||nu(t))return t;throw iu("Can't set "+ou(t)+" as a prototype")},cu=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=su(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return au(r),uu(n),e?t(r,n):r.__proto__=n,r}}():void 0),lu=et,fu=ot,hu=cu,pu=N(1..valueOf),du=q,mu=ua,gu="\t\n\v\f\r                 \u2028\u2029\ufeff",yu=N("".replace),vu=RegExp("^["+gu+"]+"),bu=RegExp("(^|[^"+gu+"])["+gu+"]+$"),wu=function(t){return function(e){var r=mu(du(e));return 1&t&&(r=yu(r,vu,"")),2&t&&(r=yu(r,bu,"$1")),r}},ku={start:wu(1),end:wu(2),trim:wu(3)},Ou=lo,Su=b,Eu=g,Mu=tu,xu=N,ju=ro,Au=Jt,Pu=function(t,e,r){var n,o;return hu&&lu(n=e.constructor)&&n!==r&&fu(o=n.prototype)&&o!==r.prototype&&hu(t,o),t},_u=ut,Tu=Mt,Cu=we,Lu=v,Iu=ln.f,Nu=y.f,Du=ze.f,Fu=pu,Ru=ku.trim,zu="Number",Zu=Eu[zu];Mu[zu];var Uu=Zu.prototype,Bu=Eu.TypeError,Gu=xu("".slice),Vu=xu("".charCodeAt),Wu=function(t){var e,r,n,o,i,s,a,u,c=Cu(t,"number");if(Tu(c))throw Bu("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=Ru(c),43===(e=Vu(c,0))||45===e){if(88===(r=Vu(c,2))||120===r)return NaN}else if(48===e){switch(Vu(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(s=(i=Gu(c,2)).length,a=0;a<s;a++)if((u=Vu(i,a))<48||u>o)return NaN;return parseInt(i,n)}return+c},$u=ju(zu,!Zu(" 0o1")||!Zu("0b1")||Zu("+0x1")),Hu=function(t){var e,r=arguments.length<1?0:Zu(function(t){var e=Cu(t,"number");return"bigint"==typeof e?e:Wu(e)}(t));return _u(Uu,e=this)&&Lu((function(){Fu(e)}))?Pu(Object(r),this,Hu):r};Hu.prototype=Uu,$u&&(Uu.constructor=Hu),Ou({global:!0,constructor:!0,wrap:!0,forced:$u},{Number:Hu});$u&&function(t,e){for(var r,n=Su?Iu(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++)Au(e,r=n[o])&&!Au(t,r)&&Du(t,r,Nu(e,r))}(Mu[zu],Zu);var qu=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))}}})),Xu=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",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){var c=document.createElement("div");c.innerHTML=s;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 h={map:r,position:o,zIndex:u,title:a,content:c.firstElementChild};return new google.maps.marker.AdvancedMarkerElement(h)}var p={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(p)}}]),t}();var Yu,Ku=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,(Yu=t.MarkerClustererEvents||(t.MarkerClustererEvents={})).CLUSTERING_BEGIN="clusteringbegin",Yu.CLUSTERING_END="clusteringend",Yu.CLUSTER_CLICK="click";var Ju=function(t,e,r){r.fitBounds(e.bounds)},Qu=function(r){o(s,r);var i=u(s);function s(t){var r,n=t.map,o=t.markers,a=void 0===o?[]:o,u=t.algorithmOptions,c=void 0===u?{}:u,f=t.algorithm,h=void 0===f?new Ms(c):f,p=t.renderer,d=void 0===p?new Xu:p,m=t.onClusterClick,g=void 0===m?Ju:m;return e(this,s),(r=i.call(this)).markers=l(a),r.clusters=[],r.algorithm=h,r.renderer=d,r.onClusterClick=g,n&&r.setMap(n),r}return n(s,[{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&&(pi.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);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 pi.setMap(t,null)})),this.clusters.forEach((function(t){return t.delete()})),this.clusters=[]}},{key:"renderClusters",value:function(){var e=this,r=new qu(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)}))),pi.setMap(o.marker,n)}))}}]),s}(Ku);t.AbstractAlgorithm=ki,t.AbstractViewportAlgorithm=Oi,t.Cluster=di,t.ClusterStats=qu,t.DefaultRenderer=Xu,t.GridAlgorithm=Ui,t.MarkerClusterer=Qu,t.NoopAlgorithm=Bi,t.SuperClusterAlgorithm=Ms,t.defaultOnClusterClickHandler=Ju,t.distanceBetweenPoints=yi,t.extendBoundsToPaddedViewport=gi,t.extendPixelBounds=bi,t.filterMarkersToPaddedViewport=mi,t.noop=Si,t.pixelBoundsToLatLngBounds=wi,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)||l(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 f(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(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 l(t,e){if(t){if("string"==typeof t)return h(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)?h(t,e):void 0}}function h(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}function p(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=l(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var y=function(t){return t&&t.Math==Math&&t},g=y("object"==typeof globalThis&&globalThis)||y("object"==typeof window&&window)||y("object"==typeof self&&self)||y("object"==typeof d&&d)||function(){return this}()||d||Function("return this")(),m={},b=function(t){try{return!!t()}catch(t){return!0}},w=!b((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),k=!b((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),O=k,x=Function.prototype.call,S=O?x.bind(x):function(){return x.apply(x,arguments)},E={},A={}.propertyIsEnumerable,j=Object.getOwnPropertyDescriptor,M=j&&!A.call({1:2},1);E.f=M?function(t){var e=j(this,t);return!!e&&e.enumerable}:A;var P,T,_=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},I=k,C=Function.prototype,L=C.call,N=I&&C.bind.bind(L,L),R=I?N:function(t){return function(){return L.apply(t,arguments)}},F=R,D=F({}.toString),z=F("".slice),Z=function(t){return z(D(t),8,-1)},U=b,B=Z,G=Object,V=R("".split),W=U((function(){return!G("z").propertyIsEnumerable(0)}))?function(t){return"String"==B(t)?V(t,""):G(t)}:G,$=function(t){return null==t},H=$,q=TypeError,Y=function(t){if(H(t))throw q("Can't call method on "+t);return t},K=W,X=Y,J=function(t){return K(X(t))},Q="object"==typeof document&&document.all,tt={all:Q,IS_HTMLDDA:void 0===Q&&void 0!==Q},et=tt.all,rt=tt.IS_HTMLDDA?function(t){return"function"==typeof t||t===et}:function(t){return"function"==typeof t},nt=rt,ot=tt.all,it=tt.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:nt(t)||t===ot}:function(t){return"object"==typeof t?null!==t:nt(t)},at=g,st=rt,ut=function(t,e){return arguments.length<2?(r=at[t],st(r)?r:void 0):at[t]&&at[t][e];var r},ct=R({}.isPrototypeOf),ft=g,lt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ht=ft.process,pt=ft.Deno,dt=ht&&ht.versions||pt&&pt.version,vt=dt&&dt.v8;vt&&(T=(P=vt.split("."))[0]>0&&P[0]<4?1:+(P[0]+P[1])),!T&&lt&&(!(P=lt.match(/Edge\/(\d+)/))||P[1]>=74)&&(P=lt.match(/Chrome\/(\d+)/))&&(T=+P[1]);var yt=T,gt=yt,mt=b,bt=g.String,wt=!!Object.getOwnPropertySymbols&&!mt((function(){var t=Symbol();return!bt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&gt&&gt<41})),kt=wt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ot=ut,xt=rt,St=ct,Et=Object,At=kt?function(t){return"symbol"==typeof t}:function(t){var e=Ot("Symbol");return xt(e)&&St(e.prototype,Et(t))},jt=String,Mt=function(t){try{return jt(t)}catch(t){return"Object"}},Pt=rt,Tt=Mt,_t=TypeError,It=function(t){if(Pt(t))return t;throw _t(Tt(t)+" is not a function")},Ct=It,Lt=$,Nt=function(t,e){var r=t[e];return Lt(r)?void 0:Ct(r)},Rt=S,Ft=rt,Dt=it,zt=TypeError,Zt={exports:{}},Ut=g,Bt=Object.defineProperty,Gt=function(t,e){try{Bt(Ut,t,{value:e,configurable:!0,writable:!0})}catch(r){Ut[t]=e}return e},Vt=Gt,Wt="__core-js_shared__",$t=g[Wt]||Vt(Wt,{}),Ht=$t;(Zt.exports=function(t,e){return Ht[t]||(Ht[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 qt=Zt.exports,Yt=Y,Kt=Object,Xt=function(t){return Kt(Yt(t))},Jt=Xt,Qt=R({}.hasOwnProperty),te=Object.hasOwn||function(t,e){return Qt(Jt(t),e)},ee=R,re=0,ne=Math.random(),oe=ee(1..toString),ie=function(t){return"Symbol("+(void 0===t?"":t)+")_"+oe(++re+ne,36)},ae=qt,se=te,ue=ie,ce=wt,fe=kt,le=g.Symbol,he=ae("wks"),pe=fe?le.for||le:le&&le.withoutSetter||ue,de=function(t){return se(he,t)||(he[t]=ce&&se(le,t)?le[t]:pe("Symbol."+t)),he[t]},ve=S,ye=it,ge=At,me=Nt,be=function(t,e){var r,n;if("string"===e&&Ft(r=t.toString)&&!Dt(n=Rt(r,t)))return n;if(Ft(r=t.valueOf)&&!Dt(n=Rt(r,t)))return n;if("string"!==e&&Ft(r=t.toString)&&!Dt(n=Rt(r,t)))return n;throw zt("Can't convert object to primitive value")},we=TypeError,ke=de("toPrimitive"),Oe=function(t,e){if(!ye(t)||ge(t))return t;var r,n=me(t,ke);if(n){if(void 0===e&&(e="default"),r=ve(n,t,e),!ye(r)||ge(r))return r;throw we("Can't convert object to primitive value")}return void 0===e&&(e="number"),be(t,e)},xe=Oe,Se=At,Ee=function(t){var e=xe(t,"string");return Se(e)?e:e+""},Ae=it,je=g.document,Me=Ae(je)&&Ae(je.createElement),Pe=function(t){return Me?je.createElement(t):{}},Te=Pe,_e=!w&&!b((function(){return 7!=Object.defineProperty(Te("div"),"a",{get:function(){return 7}}).a})),Ie=w,Ce=S,Le=E,Ne=_,Re=J,Fe=Ee,De=te,ze=_e,Ze=Object.getOwnPropertyDescriptor;m.f=Ie?Ze:function(t,e){if(t=Re(t),e=Fe(e),ze)try{return Ze(t,e)}catch(t){}if(De(t,e))return Ne(!Ce(Le.f,t,e),t[e])};var Ue={},Be=w&&b((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ge=it,Ve=String,We=TypeError,$e=function(t){if(Ge(t))return t;throw We(Ve(t)+" is not an object")},He=w,qe=_e,Ye=Be,Ke=$e,Xe=Ee,Je=TypeError,Qe=Object.defineProperty,tr=Object.getOwnPropertyDescriptor,er="enumerable",rr="configurable",nr="writable";Ue.f=He?Ye?function(t,e,r){if(Ke(t),e=Xe(e),Ke(r),"function"==typeof t&&"prototype"===e&&"value"in r&&nr in r&&!r[nr]){var n=tr(t,e);n&&n[nr]&&(t[e]=r.value,r={configurable:rr in r?r[rr]:n[rr],enumerable:er in r?r[er]:n[er],writable:!1})}return Qe(t,e,r)}:Qe:function(t,e,r){if(Ke(t),e=Xe(e),Ke(r),qe)try{return Qe(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 or=Ue,ir=_,ar=w?function(t,e,r){return or.f(t,e,ir(1,r))}:function(t,e,r){return t[e]=r,t},sr={exports:{}},ur=w,cr=te,fr=Function.prototype,lr=ur&&Object.getOwnPropertyDescriptor,hr=cr(fr,"name"),pr={EXISTS:hr,PROPER:hr&&"something"===function(){}.name,CONFIGURABLE:hr&&(!ur||ur&&lr(fr,"name").configurable)},dr=rt,vr=$t,yr=R(Function.toString);dr(vr.inspectSource)||(vr.inspectSource=function(t){return yr(t)});var gr,mr,br,wr=vr.inspectSource,kr=rt,Or=g.WeakMap,xr=kr(Or)&&/native code/.test(String(Or)),Sr=ie,Er=qt("keys"),Ar=function(t){return Er[t]||(Er[t]=Sr(t))},jr={},Mr=xr,Pr=g,Tr=it,_r=ar,Ir=te,Cr=$t,Lr=Ar,Nr=jr,Rr="Object already initialized",Fr=Pr.TypeError,Dr=Pr.WeakMap;if(Mr||Cr.state){var zr=Cr.state||(Cr.state=new Dr);zr.get=zr.get,zr.has=zr.has,zr.set=zr.set,gr=function(t,e){if(zr.has(t))throw Fr(Rr);return e.facade=t,zr.set(t,e),e},mr=function(t){return zr.get(t)||{}},br=function(t){return zr.has(t)}}else{var Zr=Lr("state");Nr[Zr]=!0,gr=function(t,e){if(Ir(t,Zr))throw Fr(Rr);return e.facade=t,_r(t,Zr,e),e},mr=function(t){return Ir(t,Zr)?t[Zr]:{}},br=function(t){return Ir(t,Zr)}}var Ur={set:gr,get:mr,has:br,enforce:function(t){return br(t)?mr(t):gr(t,{})},getterFor:function(t){return function(e){var r;if(!Tr(e)||(r=mr(e)).type!==t)throw Fr("Incompatible receiver, "+t+" required");return r}}},Br=R,Gr=b,Vr=rt,Wr=te,$r=w,Hr=pr.CONFIGURABLE,qr=wr,Yr=Ur.enforce,Kr=Ur.get,Xr=String,Jr=Object.defineProperty,Qr=Br("".slice),tn=Br("".replace),en=Br([].join),rn=$r&&!Gr((function(){return 8!==Jr((function(){}),"length",{value:8}).length})),nn=String(String).split("String"),on=sr.exports=function(t,e,r){"Symbol("===Qr(Xr(e),0,7)&&(e="["+tn(Xr(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Wr(t,"name")||Hr&&t.name!==e)&&($r?Jr(t,"name",{value:e,configurable:!0}):t.name=e),rn&&r&&Wr(r,"arity")&&t.length!==r.arity&&Jr(t,"length",{value:r.arity});try{r&&Wr(r,"constructor")&&r.constructor?$r&&Jr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Yr(t);return Wr(n,"source")||(n.source=en(nn,"string"==typeof e?e:"")),t};Function.prototype.toString=on((function(){return Vr(this)&&Kr(this).source||qr(this)}),"toString");var an=sr.exports,sn=rt,un=Ue,cn=an,fn=Gt,ln=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(sn(r)&&cn(r,i,n),n.global)o?t[e]=r:fn(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:un.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},hn={},pn=Math.ceil,dn=Math.floor,vn=Math.trunc||function(t){var e=+t;return(e>0?dn:pn)(e)},yn=function(t){var e=+t;return e!=e||0===e?0:vn(e)},gn=yn,mn=Math.max,bn=Math.min,wn=function(t,e){var r=gn(t);return r<0?mn(r+e,0):bn(r,e)},kn=yn,On=Math.min,xn=function(t){return t>0?On(kn(t),9007199254740991):0},Sn=function(t){return xn(t.length)},En=J,An=wn,jn=Sn,Mn=function(t){return function(e,r,n){var o,i=En(e),a=jn(i),s=An(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}},Pn={includes:Mn(!0),indexOf:Mn(!1)},Tn=te,_n=J,In=Pn.indexOf,Cn=jr,Ln=R([].push),Nn=function(t,e){var r,n=_n(t),o=0,i=[];for(r in n)!Tn(Cn,r)&&Tn(n,r)&&Ln(i,r);for(;e.length>o;)Tn(n,r=e[o++])&&(~In(i,r)||Ln(i,r));return i},Rn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fn=Nn,Dn=Rn.concat("length","prototype");hn.f=Object.getOwnPropertyNames||function(t){return Fn(t,Dn)};var zn={};zn.f=Object.getOwnPropertySymbols;var Zn=ut,Un=hn,Bn=zn,Gn=$e,Vn=R([].concat),Wn=Zn("Reflect","ownKeys")||function(t){var e=Un.f(Gn(t)),r=Bn.f;return r?Vn(e,r(t)):e},$n=te,Hn=Wn,qn=m,Yn=Ue,Kn=b,Xn=rt,Jn=/#|\.prototype\./,Qn=function(t,e){var r=eo[to(t)];return r==no||r!=ro&&(Xn(e)?Kn(e):!!e)},to=Qn.normalize=function(t){return String(t).replace(Jn,".").toLowerCase()},eo=Qn.data={},ro=Qn.NATIVE="N",no=Qn.POLYFILL="P",oo=Qn,io=g,ao=m.f,so=ar,uo=ln,co=Gt,fo=function(t,e,r){for(var n=Hn(e),o=Yn.f,i=qn.f,a=0;a<n.length;a++){var s=n[a];$n(t,s)||r&&$n(r,s)||o(t,s,i(e,s))}},lo=oo,ho=function(t,e){var r,n,o,i,a,s=t.target,u=t.global,c=t.stat;if(r=u?io:c?io[s]||co(s,{}):(io[s]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=ao(r,n))&&a.value:r[n],!lo(u?n:s+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;fo(i,o)}(t.sham||o&&o.sham)&&so(i,"sham",!0),uo(r,n,i,t)}},po=Z,vo=R,yo=function(t){if("Function"===po(t))return vo(t)},go=It,mo=k,bo=yo(yo.bind),wo=function(t,e){return go(t),void 0===e?t:mo?bo(t,e):function(){return t.apply(e,arguments)}},ko=Z,Oo=Array.isArray||function(t){return"Array"==ko(t)},xo={};xo[de("toStringTag")]="z";var So="[object z]"===String(xo),Eo=So,Ao=rt,jo=Z,Mo=de("toStringTag"),Po=Object,To="Arguments"==jo(function(){return arguments}()),_o=Eo?jo: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),Mo))?r:To?jo(e):"Object"==(n=jo(e))&&Ao(e.callee)?"Arguments":n},Io=R,Co=b,Lo=rt,No=_o,Ro=wr,Fo=function(){},Do=[],zo=ut("Reflect","construct"),Zo=/^\s*(?:class|function)\b/,Uo=Io(Zo.exec),Bo=!Zo.exec(Fo),Go=function(t){if(!Lo(t))return!1;try{return zo(Fo,Do,t),!0}catch(t){return!1}},Vo=function(t){if(!Lo(t))return!1;switch(No(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Bo||!!Uo(Zo,Ro(t))}catch(t){return!0}};Vo.sham=!0;var Wo=!zo||Co((function(){var t;return Go(Go.call)||!Go(Object)||!Go((function(){t=!0}))||t}))?Vo:Go,$o=Oo,Ho=Wo,qo=it,Yo=de("species"),Ko=Array,Xo=function(t){var e;return $o(t)&&(e=t.constructor,(Ho(e)&&(e===Ko||$o(e.prototype))||qo(e)&&null===(e=e[Yo]))&&(e=void 0)),void 0===e?Ko:e},Jo=function(t,e){return new(Xo(t))(0===e?0:e)},Qo=wo,ti=W,ei=Xt,ri=Sn,ni=Jo,oi=R([].push),ii=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,f,l){for(var h,p,d=ei(u),v=ti(d),y=Qo(c,f),g=ri(v),m=0,b=l||ni,w=e?b(u,g):r||a?b(u,0):void 0;g>m;m++)if((s||m in v)&&(p=y(h=v[m],m,d),t))if(e)w[m]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:oi(w,h)}else switch(t){case 4:return!1;case 7:oi(w,h)}return i?-1:n||o?o:w}},ai={forEach:ii(0),map:ii(1),filter:ii(2),some:ii(3),every:ii(4),find:ii(5),findIndex:ii(6),filterReject:ii(7)},si=b,ui=yt,ci=de("species"),fi=function(t){return ui>=51||!si((function(){var e=[];return(e.constructor={})[ci]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},li=ai.map;function hi(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}ho({target:"Array",proto:!0,forced:!fi("map")},{map:function(t){return li(this,t,arguments.length>1?arguments[1]:void 0)}});var pi=ai.filter;ho({target:"Array",proto:!0,forced:!fi("filter")},{filter:function(t){return pi(this,t,arguments.length>1?arguments[1]:void 0)}});var di=_o,vi=So?{}.toString:function(){return"[object "+di(this)+"]"};So||ln(Object.prototype,"toString",vi,{unsafe:!0});var yi=function(){function t(){e(this,t)}return n(t,null,[{key:"isAdvancedMarker",value:function(t){return google.maps.marker&&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}(),gi=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){var t,e=new google.maps.LatLngBounds(this._position,this._position),r=p(this.markers);try{for(r.s();!(t=r.n()).done;){var n=t.value;e.extend(yi.getPosition(n))}}catch(t){r.e(t)}finally{r.f()}return e}}},{key:"position",get:function(){return this._position||this.bounds.getCenter()}},{key:"count",get:function(){return this.markers.filter((function(t){return yi.getVisible(t)})).length}},{key:"push",value:function(t){this.markers.push(t)}},{key:"delete",value:function(){this.marker&&(yi.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}]),t}(),mi=function(t,e,r,n){var o=bi(t.getBounds(),e,n);return r.filter((function(t){return o.contains(yi.getPosition(t))}))},bi=function(t,e,r){var n=ki(t,e),o=n.northEast,i=n.southWest,a=Oi({northEast:o,southWest:i},r);return xi(a,e)},wi=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),i=Math.sin(n/2),a=o*o+Math.cos(t.lat*Math.PI/180)*Math.cos(e.lat*Math.PI/180)*i*i;return 6371*(2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a)))},ki=function(t,e){return{northEast:e.fromLatLngToDivPixel(t.getNorthEast()),southWest:e.fromLatLngToDivPixel(t.getSouthWest())}},Oi=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}},xi=function(t,e){var r=t.northEast,n=t.southWest,o=e.fromDivPixelToLatLng(n),i=e.fromDivPixelToLatLng(r);return new google.maps.LatLngBounds(o,i)},Si=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 Ai(e)}}]),t}(),Ei=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=hi(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}),changed:!1}:{clusters:this.cluster({markers:mi(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}}]),i}(Si),Ai=function(t){return t.map((function(t){return new gi({position:yi.getPosition(t),markers:[t]})}))},ji={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},Mi=Pe("span").classList,Pi=Mi&&Mi.constructor&&Mi.constructor.prototype,Ti=Pi===Object.prototype?void 0:Pi,_i=b,Ii=function(t,e){var r=[][t];return!!r&&_i((function(){r.call(null,e||function(){return 1},1)}))},Ci=ai.forEach,Li=Ii("forEach")?[].forEach:function(t){return Ci(this,t,arguments.length>1?arguments[1]:void 0)},Ni=g,Ri=ji,Fi=Ti,Di=Li,zi=ar,Zi=function(t){if(t&&t.forEach!==Di)try{zi(t,"forEach",Di)}catch(e){t.forEach=Di}};for(var Ui in Ri)Ri[Ui]&&Zi(Ni[Ui]&&Ni[Ui].prototype);Zi(Fi);var Bi=S;ho({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return Bi(URL.prototype.toString,this)}});var Gi=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},Vi=v(Gi),Wi=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=hi(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=!Vi(this.state,o)),this.state=o,r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e}),changed:i}:{clusters:this.cluster({markers:mi(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=wi(a.bounds.getCenter().toJSON(),yi.getPosition(t).toJSON());s<n&&(n=s,o=a)}if(o&&bi(o.bounds,r,this.gridSize).contains(yi.getPosition(t)))o.push(t);else{var u=new gi({markers:[t]});this.clusters.push(u)}}}]),i}(Ei),$i=function(t){o(i,t);var r=u(i);function i(t){e(this,i);var n=hi(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}(Si),Hi=Nn,qi=Rn,Yi=Object.keys||function(t){return Hi(t,qi)},Ki=w,Xi=R,Ji=S,Qi=b,ta=Yi,ea=zn,ra=E,na=Xt,oa=W,ia=Object.assign,aa=Object.defineProperty,sa=Xi([].concat),ua=!ia||Qi((function(){if(Ki&&1!==ia({b:1},ia(aa({},"a",{enumerable:!0,get:function(){aa(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!=ia({},t)[r]||ta(ia({},e)).join("")!=n}))?function(t,e){for(var r=na(t),n=arguments.length,o=1,i=ea.f,a=ra.f;n>o;)for(var s,u=oa(arguments[o++]),c=i?sa(ta(u),i(u)):ta(u),f=c.length,l=0;f>l;)s=c[l++],Ki&&!Ji(a,u,s)||(r[s]=u[s]);return r}:ia,ca=ua;ho({target:"Object",stat:!0,arity:2,forced:Object.assign!==ca},{assign:ca});const fa=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class la{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[e,r]=new Uint8Array(t,0,2);if(219!==e)throw new Error("Data does not appear to be in a KDBush format.");const n=r>>4;if(1!==n)throw new Error(`Got v${n} data when expected v1.`);const o=fa[15&r];if(!o)throw new Error("Unrecognized array type.");const[i]=new Uint16Array(t,2,1),[a]=new Uint32Array(t,4,1);return new la(a,i,o,t)}constructor(t,e=64,r=Float64Array,n){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const o=fa.indexOf(this.ArrayType),i=2*t*this.ArrayType.BYTES_PER_ELEMENT,a=t*this.IndexArrayType.BYTES_PER_ELEMENT,s=(8-a%8)%8;if(o<0)throw new Error(`Unexpected typed array class: ${r}.`);n&&n instanceof ArrayBuffer?(this.data=n,this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+a+s,2*t),this._pos=2*t,this._finished=!0):(this.data=new ArrayBuffer(8+i+a+s),this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+a+s,2*t),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+o]),new Uint16Array(this.data,2,1)[0]=e,new Uint32Array(this.data,4,1)[0]=t)}add(t,e){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=e,r}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return ha(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,r,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:i,nodeSize:a}=this,s=[0,o.length-1,0],u=[];for(;s.length;){const c=s.pop()||0,f=s.pop()||0,l=s.pop()||0;if(f-l<=a){for(let a=l;a<=f;a++){const s=i[2*a],c=i[2*a+1];s>=t&&s<=r&&c>=e&&c<=n&&u.push(o[a])}continue}const h=l+f>>1,p=i[2*h],d=i[2*h+1];p>=t&&p<=r&&d>=e&&d<=n&&u.push(o[h]),(0===c?t<=p:e<=d)&&(s.push(l),s.push(h-1),s.push(1-c)),(0===c?r>=p:n>=d)&&(s.push(h+1),s.push(f),s.push(1-c))}return u}within(t,e,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:n,coords:o,nodeSize:i}=this,a=[0,n.length-1,0],s=[],u=r*r;for(;a.length;){const c=a.pop()||0,f=a.pop()||0,l=a.pop()||0;if(f-l<=i){for(let r=l;r<=f;r++)ya(o[2*r],o[2*r+1],t,e)<=u&&s.push(n[r]);continue}const h=l+f>>1,p=o[2*h],d=o[2*h+1];ya(p,d,t,e)<=u&&s.push(n[h]),(0===c?t-r<=p:e-r<=d)&&(a.push(l),a.push(h-1),a.push(1-c)),(0===c?t+r>=p:e+r>=d)&&(a.push(h+1),a.push(f),a.push(1-c))}return s}}function ha(t,e,r,n,o,i){if(o-n<=r)return;const a=n+o>>1;pa(t,e,a,n,o,i),ha(t,e,r,n,a-1,1-i),ha(t,e,r,a+1,o,1-i)}function pa(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),f=.5*Math.sqrt(u*c*(a-c)/a)*(s-a/2<0?-1:1);pa(t,e,r,Math.max(n,Math.floor(r-s*c/a+f)),Math.min(o,Math.floor(r+(a-s)*c/a+f)),i)}const a=e[2*r+i];let s=n,u=o;for(da(t,e,n,r),e[2*o+i]>a&&da(t,e,n,o);s<u;){for(da(t,e,s,u),s++,u--;e[2*s+i]<a;)s++;for(;e[2*u+i]>a;)u--}e[2*n+i]===a?da(t,e,n,u):(u++,da(t,e,u,o)),u<=r&&(n=u+1),r<=u&&(o=u-1)}}function da(t,e,r,n){va(t,r,n),va(e,2*r,2*n),va(e,2*r+1,2*n+1)}function va(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function ya(t,e,r,n){const o=t-r,i=e-n;return o*o+i*i}const ga={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},ma=Math.fround||(ba=new Float32Array(1),t=>(ba[0]=+t,ba[0]));var ba;const wa=3,ka=5,Oa=6;class xa{constructor(t){this.options=Object.assign(Object.create(ga),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:e,minZoom:r,maxZoom:n}=this.options;e&&console.time("total time");const o=`prepare ${t.length} points`;e&&console.time(o),this.points=t;const i=[];for(let e=0;e<t.length;e++){const r=t[e];if(!r.geometry)continue;const[n,o]=r.geometry.coordinates,a=ma(Aa(n)),s=ma(ja(o));i.push(a,s,1/0,e,-1,1),this.options.reduce&&i.push(0)}let a=this.trees[n+1]=this._createTree(i);e&&console.timeEnd(o);for(let t=n;t>=r;t--){const r=+Date.now();a=this.trees[t]=this._createTree(this._cluster(a,t)),e&&console.log("z%d: %d clusters in %dms",t,a.numItems,+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(Aa(r),ja(i),Aa(o),ja(n)),u=a.data,c=[];for(const t of s){const e=this.stride*t;c.push(u[e+ka]>1?Sa(u,e,this.clusterProps):this.points[u[e+wa]])}return c}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.data;if(e*this.stride>=i.length)throw new Error(n);const a=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=i[e*this.stride],u=i[e*this.stride+1],c=o.within(s,u,a),f=[];for(const e of c){const r=e*this.stride;i[r+4]===t&&f.push(i[r+ka]>1?Sa(i,r,this.clusterProps):this.points[i[r+wa]])}if(0===f.length)throw new Error(n);return f}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,f={features:[]};return this._addTileFeatures(n.range((e-s)/o,u,(e+1+s)/o,c),n.data,e,r,o,f),0===e&&this._addTileFeatures(n.range(1-s/o,u,1,c),n.data,o,r,o,f),e===o-1&&this._addTileFeatures(n.range(0,u,s/o,c),n.data,-1,r,o,f),f.features.length?f: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}_createTree(t){const e=new la(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<t.length;r+=this.stride)e.add(t[r],t[r+1]);return e.finish(),e.data=t,e}_addTileFeatures(t,e,r,n,o,i){for(const a of t){const t=a*this.stride,s=e[t+ka]>1;let u,c,f;if(s)u=Ea(e,t,this.clusterProps),c=e[t],f=e[t+1];else{const r=this.points[e[t+wa]];u=r.properties;const[n,o]=r.geometry.coordinates;c=Aa(n),f=ja(o)}const l={type:1,geometry:[[Math.round(this.options.extent*(c*o-r)),Math.round(this.options.extent*(f*o-n))]],tags:u};let h;h=s||this.options.generateId?e[t+wa]:this.points[e[t+wa]].id,void 0!==h&&(l.id=h),i.features.push(l)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){const{radius:r,extent:n,reduce:o,minPoints:i}=this.options,a=r/(n*Math.pow(2,e)),s=t.data,u=[],c=this.stride;for(let r=0;r<s.length;r+=c){if(s[r+2]<=e)continue;s[r+2]=e;const n=s[r],f=s[r+1],l=t.within(s[r],s[r+1],a),h=s[r+ka];let p=h;for(const t of l){const r=t*c;s[r+2]>e&&(p+=s[r+ka])}if(p>h&&p>=i){let t,i=n*h,a=f*h,d=-1;const v=((r/c|0)<<5)+(e+1)+this.points.length;for(const n of l){const u=n*c;if(s[u+2]<=e)continue;s[u+2]=e;const f=s[u+ka];i+=s[u]*f,a+=s[u+1]*f,s[u+4]=v,o&&(t||(t=this._map(s,r,!0),d=this.clusterProps.length,this.clusterProps.push(t)),o(t,this._map(s,u)))}s[r+4]=v,u.push(i/p,a/p,1/0,v,-1,p),o&&u.push(d)}else{for(let t=0;t<c;t++)u.push(s[r+t]);if(p>1)for(const t of l){const r=t*c;if(!(s[r+2]<=e)){s[r+2]=e;for(let t=0;t<c;t++)u.push(s[r+t])}}}}return u}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e,r){if(t[e+ka]>1){const n=this.clusterProps[t[e+Oa]];return r?Object.assign({},n):n}const n=this.points[t[e+wa]].properties,o=this.options.map(n);return r&&o===n?Object.assign({},o):o}}function Sa(t,e,r){return{type:"Feature",id:t[e+wa],properties:Ea(t,e,r),geometry:{type:"Point",coordinates:[(n=t[e],360*(n-.5)),Ma(t[e+1])]}};var n}function Ea(t,e,r){const n=t[e+ka],o=n>=1e4?`${Math.round(n/1e3)}k`:n>=1e3?Math.round(n/100)/10+"k":n,i=t[e+Oa],a=-1===i?{}:Object.assign({},r[i]);return Object.assign(a,{cluster:!0,cluster_id:t[e+wa],point_count:n,point_count_abbreviated:o})}function Aa(t){return t/360+.5}function ja(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 Ma(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}var Pa=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=hi(t,["maxZoom","radius"]);return(n=r.call(this,{maxZoom:o})).superCluster=new xa(Object.assign({maxZoom:n.maxZoom,radius:s},u)),n.state={zoom:null},n}return n(i,[{key:"calculate",value:function(t){var e=!1,r={zoom:t.map.getZoom()};if(!Vi(t.markers,this.markers)){e=!0,this.markers=f(t.markers);var n=this.markers.map((function(t){var e=yi.getPosition(t);return{type:"Feature",geometry:{type:"Point",coordinates:[e.lng(),e.lat()]},properties:{marker:t}}}));this.superCluster.load(n)}return e||(this.state.zoom<=this.maxZoom||r.zoom<=this.maxZoom)&&(e=!Vi(this.state,r)),this.state=r,e&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:e}}},{key:"cluster",value:function(t){var e=this,r=t.map;return this.superCluster.getClusters([-180,-90,180,90],Math.round(r.getZoom())).map((function(t){return e.transformCluster(t)}))}},{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 gi({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(t){return t.properties.marker})),position:{lat:n,lng:r}});var i=o.marker;return new gi({markers:[i],position:yi.getPosition(i)})}}]),i}(Si),Ta={},_a=w,Ia=Be,Ca=Ue,La=$e,Na=J,Ra=Yi;Ta.f=_a&&!Ia?Object.defineProperties:function(t,e){La(t);for(var r,n=Na(e),o=Ra(e),i=o.length,a=0;i>a;)Ca.f(t,r=o[a++],n[r]);return t};var Fa,Da=ut("document","documentElement"),za=$e,Za=Ta,Ua=Rn,Ba=jr,Ga=Da,Va=Pe,Wa="prototype",$a="script",Ha=Ar("IE_PROTO"),qa=function(){},Ya=function(t){return"<"+$a+">"+t+"</"+$a+">"},Ka=function(t){t.write(Ya("")),t.close();var e=t.parentWindow.Object;return t=null,e},Xa=function(){try{Fa=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Xa="undefined"!=typeof document?document.domain&&Fa?Ka(Fa):(e=Va("iframe"),r="java"+$a+":",e.style.display="none",Ga.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Ya("document.F=Object")),t.close(),t.F):Ka(Fa);for(var n=Ua.length;n--;)delete Xa[Wa][Ua[n]];return Xa()};Ba[Ha]=!0;var Ja=Object.create||function(t,e){var r;return null!==t?(qa[Wa]=za(t),r=new qa,qa[Wa]=null,r[Ha]=t):r=Xa(),void 0===e?r:Za.f(r,e)},Qa=de,ts=Ja,es=Ue.f,rs=Qa("unscopables"),ns=Array.prototype;null==ns[rs]&&es(ns,rs,{configurable:!0,value:ts(null)});var os=function(t){ns[rs][t]=!0},is=Pn.includes,as=os;ho({target:"Array",proto:!0,forced:b((function(){return!Array(1).includes()}))},{includes:function(t){return is(this,t,arguments.length>1?arguments[1]:void 0)}}),as("includes");var ss=it,us=Z,cs=de("match"),fs=function(t){var e;return ss(t)&&(void 0!==(e=t[cs])?!!e:"RegExp"==us(t))},ls=TypeError,hs=_o,ps=String,ds=function(t){if("Symbol"===hs(t))throw TypeError("Cannot convert a Symbol value to a string");return ps(t)},vs=de("match"),ys=ho,gs=function(t){if(fs(t))throw ls("The method doesn't accept regular expressions");return t},ms=Y,bs=ds,ws=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[vs]=!1,"/./"[t](e)}catch(t){}}return!1},ks=R("".indexOf);ys({target:"String",proto:!0,forced:!ws("includes")},{includes:function(t){return!!~ks(bs(ms(this)),bs(gs(t)),arguments.length>1?arguments[1]:void 0)}});var Os=ho,xs=Pn.indexOf,Ss=Ii,Es=yo([].indexOf),As=!!Es&&1/Es([1],1,-0)<0;Os({target:"Array",proto:!0,forced:As||!Ss("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return As?Es(this,t,e)||0:xs(this,t,e)}});var js=w,Ms=Oo,Ps=TypeError,Ts=Object.getOwnPropertyDescriptor,_s=js&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),Is=TypeError,Cs=Ee,Ls=Ue,Ns=_,Rs=function(t,e,r){var n=Cs(e);n in t?Ls.f(t,n,Ns(0,r)):t[n]=r},Fs=Mt,Ds=TypeError,zs=ho,Zs=Xt,Us=wn,Bs=yn,Gs=Sn,Vs=_s?function(t,e){if(Ms(t)&&!Ts(t,"length").writable)throw Ps("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Ws=function(t){if(t>9007199254740991)throw Is("Maximum allowed index exceeded");return t},$s=Jo,Hs=Rs,qs=function(t,e){if(!delete t[e])throw Ds("Cannot delete property "+Fs(e)+" of "+Fs(t))},Ys=fi("splice"),Ks=Math.max,Xs=Math.min;zs({target:"Array",proto:!0,forced:!Ys},{splice:function(t,e){var r,n,o,i,a,s,u=Zs(this),c=Gs(u),f=Us(t,c),l=arguments.length;for(0===l?r=n=0:1===l?(r=0,n=c-f):(r=l-2,n=Xs(Ks(Bs(e),0),c-f)),Ws(c+r-n),o=$s(u,n),i=0;i<n;i++)(a=f+i)in u&&Hs(o,i,u[a]);if(o.length=n,r<n){for(i=f;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>f;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+f]=arguments[i+2];return Vs(u,c-n+r),o}});var Js,Qs,tu,eu={},ru=!b((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),nu=te,ou=rt,iu=Xt,au=ru,su=Ar("IE_PROTO"),uu=Object,cu=uu.prototype,fu=au?uu.getPrototypeOf:function(t){var e=iu(t);if(nu(e,su))return e[su];var r=e.constructor;return ou(r)&&e instanceof r?r.prototype:e instanceof uu?cu:null},lu=b,hu=rt,pu=it,du=fu,vu=ln,yu=de("iterator"),gu=!1;[].keys&&("next"in(tu=[].keys())?(Qs=du(du(tu)))!==Object.prototype&&(Js=Qs):gu=!0);var mu=!pu(Js)||lu((function(){var t={};return Js[yu].call(t)!==t}));mu&&(Js={}),hu(Js[yu])||vu(Js,yu,(function(){return this}));var bu={IteratorPrototype:Js,BUGGY_SAFARI_ITERATORS:gu},wu=Ue.f,ku=te,Ou=de("toStringTag"),xu=function(t,e,r){t&&!r&&(t=t.prototype),t&&!ku(t,Ou)&&wu(t,Ou,{configurable:!0,value:e})},Su=bu.IteratorPrototype,Eu=Ja,Au=_,ju=xu,Mu=eu,Pu=function(){return this},Tu=R,_u=It,Iu=rt,Cu=String,Lu=TypeError,Nu=function(t,e,r){try{return Tu(_u(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},Ru=$e,Fu=function(t){if("object"==typeof t||Iu(t))return t;throw Lu("Can't set "+Cu(t)+" as a prototype")},Du=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Nu(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Ru(r),Fu(n),e?t(r,n):r.__proto__=n,r}}():void 0),zu=ho,Zu=S,Uu=rt,Bu=function(t,e,r,n){var o=e+" Iterator";return t.prototype=Eu(Su,{next:Au(+!n,r)}),ju(t,o,!1),Mu[o]=Pu,t},Gu=fu,Vu=Du,Wu=xu,$u=ar,Hu=ln,qu=eu,Yu=pr.PROPER,Ku=pr.CONFIGURABLE,Xu=bu.IteratorPrototype,Ju=bu.BUGGY_SAFARI_ITERATORS,Qu=de("iterator"),tc="keys",ec="values",rc="entries",nc=function(){return this},oc=function(t,e,r,n,o,i,a){Bu(r,e,n);var s,u,c,f=function(t){if(t===o&&v)return v;if(!Ju&&t in p)return p[t];switch(t){case tc:case ec:case rc:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",h=!1,p=t.prototype,d=p[Qu]||p["@@iterator"]||o&&p[o],v=!Ju&&d||f(o),y="Array"==e&&p.entries||d;if(y&&(s=Gu(y.call(new t)))!==Object.prototype&&s.next&&(Gu(s)!==Xu&&(Vu?Vu(s,Xu):Uu(s[Qu])||Hu(s,Qu,nc)),Wu(s,l,!0)),Yu&&o==ec&&d&&d.name!==ec&&(Ku?$u(p,"name",ec):(h=!0,v=function(){return Zu(d,this)})),o)if(u={values:f(ec),keys:i?v:f(tc),entries:f(rc)},a)for(c in u)(Ju||h||!(c in p))&&Hu(p,c,u[c]);else zu({target:e,proto:!0,forced:Ju||h},u);return p[Qu]!==v&&Hu(p,Qu,v,{name:o}),qu[e]=v,u},ic=function(t,e){return{value:t,done:e}},ac=J,sc=os,uc=eu,cc=Ur,fc=Ue.f,lc=oc,hc=ic,pc=w,dc="Array Iterator",vc=cc.set,yc=cc.getterFor(dc),gc=lc(Array,"Array",(function(t,e){vc(this,{type:dc,target:ac(t),index:0,kind:e})}),(function(){var t=yc(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,hc(void 0,!0)):hc("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)}),"values"),mc=uc.Arguments=uc.Array;if(sc("keys"),sc("values"),sc("entries"),pc&&"values"!==mc.name)try{fc(mc,"name",{value:"values"})}catch(t){}var bc={exports:{}},wc={},kc=wn,Oc=Sn,xc=Rs,Sc=Array,Ec=Math.max,Ac=Z,jc=J,Mc=hn.f,Pc=function(t,e,r){for(var n=Oc(t),o=kc(e,n),i=kc(void 0===r?n:r,n),a=Sc(Ec(i-o,0)),s=0;o<i;o++,s++)xc(a,s,t[o]);return a.length=s,a},Tc="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];wc.f=function(t){return Tc&&"Window"==Ac(t)?function(t){try{return Mc(t)}catch(t){return Pc(Tc)}}(t):Mc(jc(t))};var _c=b((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Ic=b,Cc=it,Lc=Z,Nc=_c,Rc=Object.isExtensible,Fc=Ic((function(){Rc(1)}))||Nc?function(t){return!!Cc(t)&&((!Nc||"ArrayBuffer"!=Lc(t))&&(!Rc||Rc(t)))}:Rc,Dc=!b((function(){return Object.isExtensible(Object.preventExtensions({}))})),zc=ho,Zc=R,Uc=jr,Bc=it,Gc=te,Vc=Ue.f,Wc=hn,$c=wc,Hc=Fc,qc=Dc,Yc=!1,Kc=ie("meta"),Xc=0,Jc=function(t){Vc(t,Kc,{value:{objectID:"O"+Xc++,weakData:{}}})},Qc=bc.exports={enable:function(){Qc.enable=function(){},Yc=!0;var t=Wc.f,e=Zc([].splice),r={};r[Kc]=1,t(r).length&&(Wc.f=function(r){for(var n=t(r),o=0,i=n.length;o<i;o++)if(n[o]===Kc){e(n,o,1);break}return n},zc({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:$c.f}))},fastKey:function(t,e){if(!Bc(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Gc(t,Kc)){if(!Hc(t))return"F";if(!e)return"E";Jc(t)}return t[Kc].objectID},getWeakData:function(t,e){if(!Gc(t,Kc)){if(!Hc(t))return!0;if(!e)return!1;Jc(t)}return t[Kc].weakData},onFreeze:function(t){return qc&&Yc&&Hc(t)&&!Gc(t,Kc)&&Jc(t),t}};Uc[Kc]=!0;var tf=bc.exports,ef=eu,rf=de("iterator"),nf=Array.prototype,of=_o,af=Nt,sf=$,uf=eu,cf=de("iterator"),ff=function(t){if(!sf(t))return af(t,cf)||af(t,"@@iterator")||uf[of(t)]},lf=S,hf=It,pf=$e,df=Mt,vf=ff,yf=TypeError,gf=S,mf=$e,bf=Nt,wf=wo,kf=S,Of=$e,xf=Mt,Sf=function(t){return void 0!==t&&(ef.Array===t||nf[rf]===t)},Ef=Sn,Af=ct,jf=function(t,e){var r=arguments.length<2?vf(t):e;if(hf(r))return pf(lf(r,t));throw yf(df(t)+" is not iterable")},Mf=ff,Pf=function(t,e,r){var n,o;mf(t);try{if(!(n=bf(t,"return"))){if("throw"===e)throw r;return r}n=gf(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return mf(n),r},Tf=TypeError,_f=function(t,e){this.stopped=t,this.result=e},If=_f.prototype,Cf=function(t,e,r){var n,o,i,a,s,u,c,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=wf(e,f),y=function(t){return n&&Pf(n,"normal",t),new _f(!0,t)},g=function(t){return l?(Of(t),d?v(t[0],t[1],y):v(t[0],t[1])):d?v(t,y):v(t)};if(h)n=t.iterator;else if(p)n=t;else{if(!(o=Mf(t)))throw Tf(xf(t)+" is not iterable");if(Sf(o)){for(i=0,a=Ef(t);a>i;i++)if((s=g(t[i]))&&Af(If,s))return s;return new _f(!1)}n=jf(t,o)}for(u=h?t.next:n.next;!(c=kf(u,n)).done;){try{s=g(c.value)}catch(t){Pf(n,"throw",t)}if("object"==typeof s&&s&&Af(If,s))return s}return new _f(!1)},Lf=ct,Nf=TypeError,Rf=function(t,e){if(Lf(e,t))return t;throw Nf("Incorrect invocation")},Ff=de("iterator"),Df=!1;try{var zf=0,Zf={next:function(){return{done:!!zf++}},return:function(){Df=!0}};Zf[Ff]=function(){return this},Array.from(Zf,(function(){throw 2}))}catch(t){}var Uf=rt,Bf=it,Gf=Du,Vf=function(t,e,r){var n,o;return Gf&&Uf(n=e.constructor)&&n!==r&&Bf(o=n.prototype)&&o!==r.prototype&&Gf(t,o),t},Wf=ho,$f=g,Hf=R,qf=oo,Yf=ln,Kf=tf,Xf=Cf,Jf=Rf,Qf=rt,tl=$,el=it,rl=b,nl=function(t,e){if(!e&&!Df)return!1;var r=!1;try{var n={};n[Ff]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},ol=xu,il=Vf,al=an,sl=Ue,ul=function(t,e,r){return r.get&&al(r.get,e,{getter:!0}),r.set&&al(r.set,e,{setter:!0}),sl.f(t,e,r)},cl=ln,fl=ut,ll=ul,hl=w,pl=de("species"),dl=Ja,vl=ul,yl=function(t,e,r){for(var n in e)cl(t,n,e[n],r);return t},gl=wo,ml=Rf,bl=$,wl=Cf,kl=oc,Ol=ic,xl=function(t){var e=fl(t);hl&&e&&!e[pl]&&ll(e,pl,{configurable:!0,get:function(){return this}})},Sl=w,El=tf.fastKey,Al=Ur.set,jl=Ur.getterFor,Ml={getConstructor:function(t,e,r,n){var o=t((function(t,o){ml(t,i),Al(t,{type:e,index:dl(null),first:void 0,last:void 0,size:0}),Sl||(t.size=0),bl(o)||wl(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,a=jl(e),s=function(t,e,r){var n,o,i=a(t),s=u(t,e);return s?s.value=r:(i.last=s={index:o=El(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=s),n&&(n.next=s),Sl?i.size++:t.size++,"F"!==o&&(i.index[o]=s)),t},u=function(t,e){var r,n=a(t),o=El(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return yl(i,{clear:function(){for(var t=a(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,Sl?t.size=0:this.size=0},delete:function(t){var e=this,r=a(e),n=u(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),Sl?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=a(this),n=gl(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!u(this,t)}}),yl(i,r?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),Sl&&vl(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=jl(e),i=jl(n);kl(t,e,(function(t,e){Al(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?Ol("keys"==e?r.key:"values"==e?r.value:[r.key,r.value],!1):(t.target=void 0,Ol(void 0,!0))}),r?"entries":"values",!r,!0),xl(e)}};(function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",a=$f[t],s=a&&a.prototype,u=a,c={},f=function(t){var e=Hf(s[t]);Yf(s,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!el(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!el(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!el(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(qf(t,!Qf(a)||!(o||s.forEach&&!rl((function(){(new a).entries().next()})))))u=r.getConstructor(e,t,n,i),Kf.enable();else if(qf(t,!0)){var l=new u,h=l[i](o?{}:-0,1)!=l,p=rl((function(){l.has(1)})),d=nl((function(t){new a(t)})),v=!o&&rl((function(){for(var t=new a,e=5;e--;)t[i](e,e);return!t.has(-0)}));d||((u=e((function(t,e){Jf(t,s);var r=il(new a,t,u);return tl(e)||Xf(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=s,s.constructor=u),(p||v)&&(f("delete"),f("has"),n&&f("get")),(v||h)&&f(i),o&&s.clear&&delete s.clear}c[t]=u,Wf({global:!0,constructor:!0,forced:u!=a},c),ol(u,t),o||r.setStrong(u,t,n)})("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Ml);var Pl=R,Tl=yn,_l=ds,Il=Y,Cl=Pl("".charAt),Ll=Pl("".charCodeAt),Nl=Pl("".slice),Rl=function(t){return function(e,r){var n,o,i=_l(Il(e)),a=Tl(r),s=i.length;return a<0||a>=s?t?"":void 0:(n=Ll(i,a))<55296||n>56319||a+1===s||(o=Ll(i,a+1))<56320||o>57343?t?Cl(i,a):n:t?Nl(i,a,a+2):o-56320+(n-55296<<10)+65536}},Fl={codeAt:Rl(!1),charAt:Rl(!0)}.charAt,Dl=ds,zl=Ur,Zl=oc,Ul=ic,Bl="String Iterator",Gl=zl.set,Vl=zl.getterFor(Bl);Zl(String,"String",(function(t){Gl(this,{type:Bl,string:Dl(t),index:0})}),(function(){var t,e=Vl(this),r=e.string,n=e.index;return n>=r.length?Ul(void 0,!0):(t=Fl(r,n),e.index+=t.length,Ul(t,!1))}));var Wl=g,$l=ji,Hl=Ti,ql=gc,Yl=ar,Kl=de,Xl=Kl("iterator"),Jl=Kl("toStringTag"),Ql=ql.values,th=function(t,e){if(t){if(t[Xl]!==Ql)try{Yl(t,Xl,Ql)}catch(e){t[Xl]=Ql}if(t[Jl]||Yl(t,Jl,e),$l[e])for(var r in ql)if(t[r]!==ql[r])try{Yl(t,r,ql[r])}catch(e){t[r]=ql[r]}}};for(var eh in $l)th(Wl[eh]&&Wl[eh].prototype,eh);th(Hl,"DOMTokenList");var rh=It,nh=Xt,oh=W,ih=Sn,ah=TypeError,sh=function(t){return function(e,r,n,o){rh(r);var i=nh(e),a=oh(i),s=ih(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 ah("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}},uh={left:sh(!1),right:sh(!0)},ch="undefined"!=typeof process&&"process"==Z(process),fh=uh.left;ho({target:"Array",proto:!0,forced:!ch&&yt>79&&yt<83||!Ii("reduce")},{reduce:function(t){var e=arguments.length;return fh(this,t,e,e>1?arguments[1]:void 0)}});var lh=g,hh=R(1..valueOf),ph=Y,dh=ds,vh="\t\n\v\f\r                 \u2028\u2029\ufeff",yh=R("".replace),gh=RegExp("^["+vh+"]+"),mh=RegExp("(^|[^"+vh+"])["+vh+"]+$"),bh=function(t){return function(e){var r=dh(ph(e));return 1&t&&(r=yh(r,gh,"")),2&t&&(r=yh(r,mh,"$1")),r}},wh={start:bh(1),end:bh(2),trim:bh(3)},kh=ho,Oh=w,xh=g,Sh=lh,Eh=R,Ah=oo,jh=te,Mh=Vf,Ph=ct,Th=At,_h=Oe,Ih=b,Ch=hn.f,Lh=m.f,Nh=Ue.f,Rh=hh,Fh=wh.trim,Dh="Number",zh=xh[Dh];Sh[Dh];var Zh=zh.prototype,Uh=xh.TypeError,Bh=Eh("".slice),Gh=Eh("".charCodeAt),Vh=function(t){var e,r,n,o,i,a,s,u,c=_h(t,"number");if(Th(c))throw Uh("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=Fh(c),43===(e=Gh(c,0))||45===e){if(88===(r=Gh(c,2))||120===r)return NaN}else if(48===e){switch(Gh(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=Bh(c,2)).length,s=0;s<a;s++)if((u=Gh(i,s))<48||u>o)return NaN;return parseInt(i,n)}return+c},Wh=Ah(Dh,!zh(" 0o1")||!zh("0b1")||zh("+0x1")),$h=function(t){var e,r=arguments.length<1?0:zh(function(t){var e=_h(t,"number");return"bigint"==typeof e?e:Vh(e)}(t));return Ph(Zh,e=this)&&Ih((function(){Rh(e)}))?Mh(Object(r),this,$h):r};$h.prototype=Zh,Wh&&(Zh.constructor=$h),kh({global:!0,constructor:!0,wrap:!0,forced:Wh},{Number:$h});Wh&&function(t,e){for(var r,n=Oh?Ch(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++)jh(e,r=n[o])&&!jh(t,r)&&Nh(t,r,Lh(e,r))}(Sh[Dh],zh);var Hh=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,f(o)),max:Math.max.apply(Math,f(o))}}})),qh=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 f=c.firstElementChild;f.setAttribute("width","50"),f.setAttribute("height","50");var l=document.createElementNS("http://www.w3.org/2000/svg","text");l.setAttribute("x","50%"),l.setAttribute("y","50%"),l.setAttribute("style","fill: #FFF"),l.setAttribute("text-anchor","middle"),l.setAttribute("font-size","50"),l.setAttribute("dominant-baseline","middle"),l.appendChild(document.createTextNode("".concat(n))),f.appendChild(l);var h={map:r,position:o,zIndex:u,title:s,content:c.firstElementChild};return new google.maps.marker.AdvancedMarkerElement(h)}var p={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(p)}}]),t}();var Yh,Kh=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,(Yh=t.MarkerClustererEvents||(t.MarkerClustererEvents={})).CLUSTERING_BEGIN="clusteringbegin",Yh.CLUSTERING_END="clusteringend",Yh.CLUSTER_CLICK="click";var Xh=function(t,e,r){r.fitBounds(e.bounds)},Jh=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.algorithmOptions,c=void 0===u?{}:u,l=t.algorithm,h=void 0===l?new Pa(c):l,p=t.renderer,d=void 0===p?new qh:p,v=t.onClusterClick,y=void 0===v?Xh:v;return e(this,a),(r=i.call(this)).markers=f(s),r.clusters=[],r.algorithm=h,r.renderer=d,r.onClusterClick=y,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&&(yi.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);var r=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()}),n=r.clusters,o=r.changed;if(o||null==o){var i,a=new Set,s=p(n);try{for(s.s();!(i=s.n()).done;){var u=i.value;1==u.markers.length&&a.add(u.markers[0])}}catch(t){s.e(t)}finally{s.f()}var c,f=[],l=p(this.clusters);try{for(l.s();!(c=l.n()).done;){var h=c.value;null!=h.marker&&(1==h.markers.length?a.has(h.marker)||yi.setMap(h.marker,null):f.push(h.marker))}}catch(t){l.e(t)}finally{l.f()}this.clusters=n,this.renderClusters(),requestAnimationFrame((function(){return f.forEach((function(t){return yi.setMap(t,null)}))}))}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 yi.setMap(t,null)})),this.clusters.forEach((function(t){return t.delete()})),this.clusters=[]}},{key:"renderClusters",value:function(){var e=this,r=new Hh(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),o.markers.forEach((function(t){return yi.setMap(t,null)})),e.onClusterClick&&o.marker.addListener("click",(function(r){google.maps.event.trigger(e,t.MarkerClustererEvents.CLUSTER_CLICK,o),e.onClusterClick(r,o,n)}))),yi.setMap(o.marker,n)}))}}]),a}(Kh);t.AbstractAlgorithm=Si,t.AbstractViewportAlgorithm=Ei,t.Cluster=gi,t.ClusterStats=Hh,t.DefaultRenderer=qh,t.GridAlgorithm=Wi,t.MarkerClusterer=Jh,t.NoopAlgorithm=$i,t.SuperClusterAlgorithm=Pa,t.defaultOnClusterClickHandler=Xh,t.distanceBetweenPoints=wi,t.extendBoundsToPaddedViewport=bi,t.extendPixelBounds=Oi,t.filterMarkersToPaddedViewport=mi,t.noop=Ai,t.pixelBoundsToLatLngBounds=xi,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=index.umd.js.map
{
"name": "@googlemaps/markerclusterer",
"version": "2.2.0-beta.1",
"version": "2.2.0-beta.2",
"description": "Creates and manages per-zoom-level clusters for large amounts of markers.",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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