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