Socket
Socket
Sign inDemoInstall

@react-google-maps/marker-clusterer

Package Overview
Dependencies
0
Maintainers
2
Versions
68
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.7.0 to 1.7.8

2

dist/index.d.ts

@@ -39,2 +39,2 @@ /**

export { ClusterIcon } from './ClusterIcon';
export { ClusterIconInfo, ClusterIconStyle, MarkerExtended, TCalculator, ClustererOptions } from './types';
export { ClusterIconInfo, ClusterIconStyle, MarkerExtended, TCalculator, ClustererOptions, } from './types';

@@ -27,3 +27,4 @@ 'use strict';

this.fontFamily = 'Arial,sans-serif';
this.backgroundPosition = '0 0'; // @ts-ignore
this.backgroundPosition = '0 0'; // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -40,3 +41,3 @@ this.setMap(cluster.getMap()); // Note: this causes onAdd to be called

var cDraggingMapByCluster;
this.div = document.createElement("div");
this.div = document.createElement('div');
this.div.className = this.className;

@@ -46,3 +47,4 @@

this.show();
} // @ts-ignore
} // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -52,7 +54,8 @@

this.boundsChangedListener = google.maps.event.addListener( // @ts-ignore
this.getMap(), "boundschanged", function boundsChabged() {
this.boundsChangedListener = google.maps.event.addListener( // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.getMap(), 'boundschanged', function boundsChabged() {
cDraggingMapByCluster = cMouseDownInCluster;
});
google.maps.event.addDomListener(this.div, "mousedown", function onMouseDown() {
google.maps.event.addDomListener(this.div, 'mousedown', function onMouseDown() {
cMouseDownInCluster = true;

@@ -62,3 +65,3 @@ cDraggingMapByCluster = false;

google.maps.event.addDomListener(this.div, "click", // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
google.maps.event.addDomListener(this.div, 'click', // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
function (event) {

@@ -70,11 +73,11 @@ cMouseDownInCluster = false;

/**
* This event is fired when a cluster marker is clicked.
* @name MarkerClusterer#click
* @param {Cluster} c The cluster that was clicked.
* @event
*/
* This event is fired when a cluster marker is clicked.
* @name MarkerClusterer#click
* @param {Cluster} c The cluster that was clicked.
* @event
*/
google.maps.event.trigger(markerClusterer, "click", _this.cluster);
google.maps.event.trigger(markerClusterer, "clusterclick", _this.cluster); // deprecated name
google.maps.event.trigger(markerClusterer, 'click', _this.cluster);
google.maps.event.trigger(markerClusterer, 'clusterclick', _this.cluster); // deprecated name
// The default click handler follows. Disable it by setting

@@ -87,3 +90,4 @@ // the zoomOnClick property to false.

var bounds = _this.cluster.getBounds(); // @ts-ignore
var bounds = _this.cluster.getBounds(); // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -94,7 +98,10 @@

setTimeout(function timeout() {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
markerClusterer.getMap().fitBounds(bounds); // Don't zoom beyond the max zoom level
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
if (maxZoom !== null && markerClusterer.getMap().getZoom() > maxZoom) {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -114,3 +121,3 @@ markerClusterer.getMap().setZoom(maxZoom + 1);

});
google.maps.event.addDomListener(this.div, "mouseover", // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
google.maps.event.addDomListener(this.div, 'mouseover', // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
function () {

@@ -123,6 +130,6 @@ /**

*/
google.maps.event.trigger(_this.cluster.getClusterer(), "mouseover", _this.cluster);
google.maps.event.trigger(_this.cluster.getClusterer(), 'mouseover', _this.cluster);
}); // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
google.maps.event.addDomListener(this.div, "mouseout", // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
google.maps.event.addDomListener(this.div, 'mouseout', // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
function () {

@@ -135,3 +142,3 @@ /**

*/
google.maps.event.trigger(_this.cluster.getClusterer(), "mouseout", _this.cluster);
google.maps.event.trigger(_this.cluster.getClusterer(), 'mouseout', _this.cluster);
});

@@ -160,4 +167,4 @@ };

this.div.style.top = y + "px";
this.div.style.left = x + "px";
this.div.style.top = y + 'px';
this.div.style.left = x + 'px';
}

@@ -168,3 +175,3 @@ };

if (this.div) {
this.div.style.display = "none";
this.div.style.display = 'none';
}

@@ -177,11 +184,11 @@

if (this.div && this.center) {
var img = "",
divTitle = ""; // NOTE: values must be specified in px units
var img = '',
divTitle = ''; // NOTE: values must be specified in px units
var bp = this.backgroundPosition.split(" ");
var spriteH = parseInt(bp[0].replace(/^\s+|\s+$/g, ""), 10);
var spriteV = parseInt(bp[1].replace(/^\s+|\s+$/g, ""), 10);
var bp = this.backgroundPosition.split(' ');
var spriteH = parseInt(bp[0].replace(/^\s+|\s+$/g, ''), 10);
var spriteV = parseInt(bp[1].replace(/^\s+|\s+$/g, ''), 10);
var pos = this.getPosFromLatLng(this.center);
if (this.sums === null || typeof this.sums.title === "undefined" || this.sums.title === "") {
if (this.sums === null || typeof this.sums.title === 'undefined' || this.sums.title === '') {
divTitle = this.cluster.getClusterer().getTitle();

@@ -193,13 +200,15 @@ } else {

this.div.style.cssText = this.createCss(pos);
img = "<img alt='" + divTitle + "' src='" + this.url + "' style='position: absolute; top: " + spriteV + "px; left: " + spriteH + "px; "; //@ts-ignore
img = "<img alt='" + divTitle + "' src='" + this.url + "' style='position: absolute; top: " + spriteV + 'px; left: ' + spriteH + 'px; '; // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
//@ts-ignore
if (!this.cluster.getClusterer().enableRetinaIcons) {
img += "clip: rect(" + -1 * spriteV + "px, " + (-1 * spriteH + this.width) + "px, " + (-1 * spriteV + this.height) + "px, " + -1 * spriteH + "px);";
img += 'clip: rect(' + -1 * spriteV + 'px, ' + (-1 * spriteH + this.width) + 'px, ' + (-1 * spriteV + this.height) + 'px, ' + -1 * spriteH + 'px);';
}
img += "'>";
this.div.innerHTML = img + "<div style='" + "position: absolute;" + "top: " + this.anchorText[0] + "px;" + "left: " + this.anchorText[1] + "px;" + "color: " + this.textColor + ";" + "font-size: " + this.textSize + "px;" + "font-family: " + this.fontFamily + ";" + "font-weight: " + this.fontWeight + ";" + "font-style: " + this.fontStyle + ";" + "text-decoration: " + this.textDecoration + ";" + "text-align: center;" + "width: " + this.width + "px;" + "line-height:" + this.height + "px;" + // @ts-ignore
"'>" + this.sums.text + "</div>";
this.div.innerHTML = img + "<div style='" + 'position: absolute;' + 'top: ' + this.anchorText[0] + 'px;' + 'left: ' + this.anchorText[1] + 'px;' + 'color: ' + this.textColor + ';' + 'font-size: ' + this.textSize + 'px;' + 'font-family: ' + this.fontFamily + ';' + 'font-weight: ' + this.fontWeight + ';' + 'font-style: ' + this.fontStyle + ';' + 'text-decoration: ' + this.textDecoration + ';' + 'text-align: center;' + 'width: ' + this.width + 'px;' + 'line-height:' + this.height + 'px;' + "'>" + // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.sums.text + '</div>';
this.div.title = divTitle;
this.div.style.display = "";
this.div.style.display = '';
}

@@ -218,9 +227,9 @@

this.anchorIcon = style.anchorIcon || [this.height / 2, this.width / 2];
this.textColor = style.textColor || "black";
this.textColor = style.textColor || 'black';
this.textSize = style.textSize || 11;
this.textDecoration = style.textDecoration || "none";
this.fontWeight = style.fontWeight || "bold";
this.fontStyle = style.fontStyle || "normal";
this.fontFamily = style.fontFamily || "Arial,sans-serif";
this.backgroundPosition = style.backgroundPosition || "0 0";
this.textDecoration = style.textDecoration || 'none';
this.fontWeight = style.fontWeight || 'bold';
this.fontStyle = style.fontStyle || 'normal';
this.fontFamily = style.fontFamily || 'Arial,sans-serif';
this.backgroundPosition = style.backgroundPosition || '0 0';
};

@@ -234,9 +243,10 @@

var style = [];
style.push("cursor: pointer;");
style.push("position: absolute; top: " + pos.y + "px; left: " + pos.x + "px;");
style.push("width: " + this.width + "px; height: " + this.height + "px;");
return style.join("");
style.push('cursor: pointer;');
style.push('position: absolute; top: ' + pos.y + 'px; left: ' + pos.x + 'px;');
style.push('width: ' + this.width + 'px; height: ' + this.height + 'px;');
return style.join('');
};
_proto.getPosFromLatLng = function getPosFromLatLng(latlng) {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -258,3 +268,4 @@ var pos = this.getProjection().fromLatLngToDivPixel(latlng);

function Cluster(markerClusterer) {
this.markerClusterer = markerClusterer; // @ts-ignore
this.markerClusterer = markerClusterer; // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -309,2 +320,3 @@ this.map = this.markerClusterer.getMap();

_proto.remove = function remove() {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -428,3 +440,3 @@ this.clusterIcon.setMap(null);

var index = 0;
var title = "";
var title = '';
var count = markers.length.toString();

@@ -434,2 +446,3 @@ var dv = count;

while (dv !== 0) {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -450,6 +463,6 @@ dv = parseInt(dv, 10) / 10;

var BATCH_SIZE_IE = 500;
var IMAGE_PATH = "https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m";
var IMAGE_EXTENSION = "png";
var IMAGE_PATH = 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m';
var IMAGE_EXTENSION = 'png';
var IMAGE_SIZES = [53, 56, 66, 78, 90];
var CLUSTERER_CLASS = "cluster";
var CLUSTERER_CLASS = 'cluster';
var Clusterer =

@@ -477,3 +490,3 @@ /*#__PURE__*/

this.styles = optOptions.styles || [];
this.title = optOptions.title || "";
this.title = optOptions.title || '';
this.zoomOnClick = true;

@@ -511,3 +524,3 @@

if (navigator.userAgent.toLowerCase().indexOf("msie") !== -1) {
if (navigator.userAgent.toLowerCase().indexOf('msie') !== -1) {
// Try to avoid IE timeout when processing a huge number of markers:

@@ -519,3 +532,4 @@ this.batchSize = this.batchSizeIE;

this.setupStyles();
this.addMarkers(optMarkers, true); // @ts-ignore
this.addMarkers(optMarkers, true); // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -530,2 +544,3 @@ this.setMap(map); // Note: this causes onAdd to be called

// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -536,4 +551,5 @@ this.activeMap = this.getMap();

this.listeners = [google.maps.event.addListener( // @ts-ignore
this.getMap(), "zoom_changed", // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
this.listeners = [google.maps.event.addListener( // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.getMap(), 'zoom_changed', // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
function () {

@@ -547,9 +563,12 @@ _this.resetViewport(false); // Workaround for this Google bug: when map is at level 0 and "-" of

if ( // @ts-ignore
_this.getMap().getZoom() === (_this.get("minZoom") || 0) || // @ts-ignore
_this.getMap().getZoom() === _this.get("maxZoom")) {
google.maps.event.trigger(_this, "idle");
if ( // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
_this.getMap().getZoom() === (_this.get('minZoom') || 0) || // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
_this.getMap().getZoom() === _this.get('maxZoom')) {
google.maps.event.trigger(_this, 'idle');
}
}), google.maps.event.addListener( // @ts-ignore
this.getMap(), "idle", // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
}), google.maps.event.addListener( // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.getMap(), 'idle', // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
function () {

@@ -583,3 +602,4 @@ _this.redraw();

this.ready = false;
};
} // eslint-disable-next-line @typescript-eslint/no-empty-function
;

@@ -595,3 +615,3 @@ _proto.draw = function draw() {};

this.styles.push({
url: this.imagePath + (i + 1) + "." + this.imageExtension,
url: this.imagePath + (i + 1) + '.' + this.imageExtension,
height: this.imageSizes[i],

@@ -613,3 +633,4 @@ width: this.imageSizes[i]

}
} // @ts-ignore
} // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -782,3 +803,3 @@

// eslint-disable-next-line @getify/proper-arrows/name, @getify/proper-arrows/this
google.maps.event.addListener(marker, "dragend", function () {
google.maps.event.addListener(marker, 'dragend', function () {
if (_this2.ready) {

@@ -865,2 +886,3 @@ marker.isAdded = false;

_proto.getExtendedBounds = function getExtendedBounds(bounds) {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -973,3 +995,3 @@ var projection = this.getProjection(); // Convert the points to pixels and the extend out by the grid size.

*/
google.maps.event.trigger(this, "clusteringbegin", this);
google.maps.event.trigger(this, 'clusteringbegin', this);

@@ -984,7 +1006,10 @@ if (this.timerRefStatic !== null) {

// See Comments 9 & 11 on Issue 3651 relating to this workaround for a Google Maps bug:
// @ts-ignore
var mapBounds = this.getMap().getZoom() > 3 ? new google.maps.LatLngBounds( // @ts-ignore
this.getMap().getBounds().getSouthWest(), // @ts-ignore
var mapBounds = // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.getMap().getZoom() > 3 ? new google.maps.LatLngBounds( // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.getMap().getBounds().getSouthWest(), // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.getMap().getBounds().getNorthEast()) : new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472, -178.48388434375), new google.maps.LatLng(-85.08136444384544, 178.00048865625));

@@ -1019,3 +1044,3 @@ var bounds = this.getExtendedBounds(mapBounds);

google.maps.event.trigger(this, "clusteringend", this);
google.maps.event.trigger(this, 'clusteringend', this);
}

@@ -1028,5 +1053,7 @@ };

for (var property in object.prototype) {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.prototype[property] = object.prototype[property];
} // @ts-ignore
} // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -1033,0 +1060,0 @@

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

"use strict";var t=function(){function t(e,i){e.getClusterer().extend(t,google.maps.OverlayView),this.cluster=e,this.className=this.cluster.getClusterer().getClusterClass(),this.styles=i,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.setMap(e.getMap())}var e=t.prototype;return e.onAdd=function(){var t,e,i=this;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div),this.boundsChangedListener=google.maps.event.addListener(this.getMap(),"boundschanged",function(){e=t}),google.maps.event.addDomListener(this.div,"mousedown",function(){t=!0,e=!1}),google.maps.event.addDomListener(this.div,"click",function(s){if(t=!1,!e){var r=i.cluster.getClusterer();if(google.maps.event.trigger(r,"click",i.cluster),google.maps.event.trigger(r,"clusterclick",i.cluster),r.getZoomOnClick()){var n=r.getMaxZoom(),o=i.cluster.getBounds();r.getMap().fitBounds(o),setTimeout(function(){r.getMap().fitBounds(o),null!==n&&r.getMap().getZoom()>n&&r.getMap().setZoom(n+1)},100)}s.cancelBubble=!0,s.stopPropagation&&s.stopPropagation()}}),google.maps.event.addDomListener(this.div,"mouseover",function(){google.maps.event.trigger(i.cluster.getClusterer(),"mouseover",i.cluster)}),google.maps.event.addDomListener(this.div,"mouseout",function(){google.maps.event.trigger(i.cluster.getClusterer(),"mouseout",i.cluster)})},e.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),null!==this.boundsChangedListener&&google.maps.event.removeListener(this.boundsChangedListener),google.maps.event.clearInstanceListeners(this.div),this.div.parentNode.removeChild(this.div),this.div=null)},e.draw=function(){if(this.visible&&null!==this.div&&this.center){var t=this.getPosFromLatLng(this.center),e=t.x;this.div.style.top=t.y+"px",this.div.style.left=e+"px"}},e.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},e.show=function(){if(this.div&&this.center){var t,e="",i=this.backgroundPosition.split(" "),s=parseInt(i[0].replace(/^\s+|\s+$/g,""),10),r=parseInt(i[1].replace(/^\s+|\s+$/g,""),10),n=this.getPosFromLatLng(this.center);t=null===this.sums||void 0===this.sums.title||""===this.sums.title?this.cluster.getClusterer().getTitle():this.sums.title,this.div.style.cssText=this.createCss(n),e="<img alt='"+t+"' src='"+this.url+"' style='position: absolute; top: "+r+"px; left: "+s+"px; ",this.cluster.getClusterer().enableRetinaIcons||(e+="clip: rect("+-1*r+"px, "+(-1*s+this.width)+"px, "+(-1*r+this.height)+"px, "+-1*s+"px);"),this.div.innerHTML=(e+="'>")+"<div style='position: absolute;top: "+this.anchorText[0]+"px;left: "+this.anchorText[1]+"px;color: "+this.textColor+";font-size: "+this.textSize+"px;font-family: "+this.fontFamily+";font-weight: "+this.fontWeight+";font-style: "+this.fontStyle+";text-decoration: "+this.textDecoration+";text-align: center;width: "+this.width+"px;line-height:"+this.height+"px;'>"+this.sums.text+"</div>",this.div.title=t,this.div.style.display=""}this.visible=!0},e.useStyle=function(t){this.sums=t;var e=this.styles[Math.min(this.styles.length-1,Math.max(0,t.index-1))];this.url=e.url,this.height=e.height,this.width=e.width,this.anchorText=e.anchorText||[0,0],this.anchorIcon=e.anchorIcon||[this.height/2,this.width/2],this.textColor=e.textColor||"black",this.textSize=e.textSize||11,this.textDecoration=e.textDecoration||"none",this.fontWeight=e.fontWeight||"bold",this.fontStyle=e.fontStyle||"normal",this.fontFamily=e.fontFamily||"Arial,sans-serif",this.backgroundPosition=e.backgroundPosition||"0 0"},e.setCenter=function(t){this.center=t},e.createCss=function(t){var e=[];return e.push("cursor: pointer;"),e.push("position: absolute; top: "+t.y+"px; left: "+t.x+"px;"),e.push("width: "+this.width+"px; height: "+this.height+"px;"),e.join("")},e.getPosFromLatLng=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return e.x-=this.anchorIcon[1],e.y-=this.anchorIcon[0],e.x=e.x,e.y=e.y,e},t}(),e=function(){function e(e){this.markerClusterer=e,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new t(this,this.markerClusterer.getStyles())}var i=e.prototype;return i.getSize=function(){return this.markers.length},i.getMarkers=function(){return this.markers},i.getCenter=function(){return this.center},i.getMap=function(){return this.map},i.getClusterer=function(){return this.markerClusterer},i.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center,this.center),e=this.getMarkers(),i=0;i<e.length;i++){var s=e[i].getPosition();s&&t.extend(s)}return t},i.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},i.addMarker=function(t){if(this.isMarkerAlreadyAdded(t))return!1;if(this.center){if(this.averageCenter){var e=t.getPosition();if(e){var i=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(i-1)+e.lat())/i,(this.center.lng()*(i-1)+e.lng())/i),this.calculateBounds()}}}else{var s=t.getPosition();s&&(this.center=s,this.calculateBounds())}t.isAdded=!0,this.markers.push(t);var r=this.markers.length,n=this.markerClusterer.getMaxZoom();if(null!==n&&this.map.getZoom()>n)t.getMap()!==this.map&&t.setMap(this.map);else if(r<this.minClusterSize)t.getMap()!==this.map&&t.setMap(this.map);else if(r===this.minClusterSize)for(var o=0;o<r;o++)this.markers[o].setMap(null);else t.setMap(null);return this.updateIcon(),!0},i.isMarkerInClusterBounds=function(t){if(null!==this.bounds){var e=t.getPosition();if(e)return this.bounds.contains(e)}return!1},i.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},i.updateIcon=function(){var t=this.markers.length,e=this.markerClusterer.getMaxZoom();null!==e&&this.map.getZoom()>e?this.clusterIcon.hide():t<this.minClusterSize?this.clusterIcon.hide():(this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show())},i.isMarkerAlreadyAdded=function(t){if(this.markers.indexOf)return this.markers.includes(t);for(var e=0;e<this.markers.length;e++)if(t===this.markers[e])return!0;return!1},e}(),i=function(t,e){for(var i=0,s=t.length.toString(),r=s;0!==r;)r=parseInt(r,10)/10,i++;return{text:s,index:i=Math.min(i,e),title:""}},s=2e3,r=500,n="https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",o="png",a=[53,56,66,78,90],h="cluster",l=function(){function t(e,l,u){void 0===l&&(l=[]),void 0===u&&(u={}),this.extend(t,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=u.gridSize||60,this.minClusterSize=u.minimumClusterSize||2,this.maxZoom=u.maxZoom||null,this.styles=u.styles||[],this.title=u.title||"",this.zoomOnClick=!0,void 0!==u.zoomOnClick&&(this.zoomOnClick=u.zoomOnClick),this.averageCenter=!1,void 0!==u.averageCenter&&(this.averageCenter=u.averageCenter),this.ignoreHidden=!1,void 0!==u.ignoreHidden&&(this.ignoreHidden=u.ignoreHidden),this.enableRetinaIcons=!1,void 0!==u.enableRetinaIcons&&(this.enableRetinaIcons=u.enableRetinaIcons),this.imagePath=u.imagePath||n,this.imageExtension=u.imageExtension||o,this.imageSizes=u.imageSizes||a,this.calculator=u.calculator||i,this.batchSize=u.batchSize||s,this.batchSizeIE=u.batchSizeIE||r,this.clusterClass=u.clusterClass||h,-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(l,!0),this.setMap(e)}var l=t.prototype;return l.onAdd=function(){var t=this;this.activeMap=this.getMap(),this.ready=!0,this.repaint(),this.listeners=[google.maps.event.addListener(this.getMap(),"zoom_changed",function(){t.resetViewport(!1),t.getMap().getZoom()!==(t.get("minZoom")||0)&&t.getMap().getZoom()!==t.get("maxZoom")||google.maps.event.trigger(t,"idle")}),google.maps.event.addListener(this.getMap(),"idle",function(){t.redraw()})]},l.onRemove=function(){for(var t=0;t<this.markers.length;t++)this.markers[t].getMap()!==this.activeMap&&this.markers[t].setMap(this.activeMap);for(var e=0;e<this.clusters.length;e++)this.clusters[e].remove();this.clusters=[];for(var i=0;i<this.listeners.length;i++)google.maps.event.removeListener(this.listeners[i]);this.listeners=[],this.activeMap=null,this.ready=!1},l.draw=function(){},l.setupStyles=function(){if(!(this.styles.length>0))for(var t=0;t<this.imageSizes.length;t++)this.styles.push({url:this.imagePath+(t+1)+"."+this.imageExtension,height:this.imageSizes[t],width:this.imageSizes[t]})},l.fitMapToMarkers=function(){for(var t=this.getMarkers(),e=new google.maps.LatLngBounds,i=0;i<t.length;i++){var s=t[i].getPosition();s&&e.extend(s)}this.getMap().fitBounds(e)},l.getGridSize=function(){return this.gridSize},l.setGridSize=function(t){this.gridSize=t},l.getMinimumClusterSize=function(){return this.minClusterSize},l.setMinimumClusterSize=function(t){this.minClusterSize=t},l.getMaxZoom=function(){return this.maxZoom},l.setMaxZoom=function(t){this.maxZoom=t},l.getStyles=function(){return this.styles},l.setStyles=function(t){this.styles=t},l.getTitle=function(){return this.title},l.setTitle=function(t){this.title=t},l.getZoomOnClick=function(){return this.zoomOnClick},l.setZoomOnClick=function(t){this.zoomOnClick=t},l.getAverageCenter=function(){return this.averageCenter},l.setAverageCenter=function(t){this.averageCenter=t},l.getIgnoreHidden=function(){return this.ignoreHidden},l.setIgnoreHidden=function(t){this.ignoreHidden=t},l.getEnableRetinaIcons=function(){return this.enableRetinaIcons},l.setEnableRetinaIcons=function(t){this.enableRetinaIcons=t},l.getImageExtension=function(){return this.imageExtension},l.setImageExtension=function(t){this.imageExtension=t},l.getImagePath=function(){return this.imagePath},l.setImagePath=function(t){this.imagePath=t},l.getImageSizes=function(){return this.imageSizes},l.setImageSizes=function(t){this.imageSizes=t},l.getCalculator=function(){return this.calculator},l.setCalculator=function(t){this.calculator=t},l.getBatchSizeIE=function(){return this.batchSizeIE},l.setBatchSizeIE=function(t){this.batchSizeIE=t},l.getClusterClass=function(){return this.clusterClass},l.setClusterClass=function(t){this.clusterClass=t},l.getMarkers=function(){return this.markers},l.getTotalMarkers=function(){return this.markers.length},l.getClusters=function(){return this.clusters},l.getTotalClusters=function(){return this.clusters.length},l.addMarker=function(t,e){this.pushMarkerTo(t),e||this.redraw()},l.addMarkers=function(t,e){for(var i in t)t.hasOwnProperty(i)&&this.pushMarkerTo(t[i]);e||this.redraw()},l.pushMarkerTo=function(t){var e=this;t.getDraggable()&&google.maps.event.addListener(t,"dragend",function(){e.ready&&(t.isAdded=!1,e.repaint())}),t.isAdded=!1,this.markers.push(t)},l.removeMarker_=function(t){var e=-1;if(this.markers.indexOf)e=this.markers.indexOf(t);else for(var i=0;i<this.markers.length;i++)if(t===this.markers[i]){e=i;break}return-1!==e&&(t.setMap(null),this.markers.splice(e,1),!0)},l.removeMarker=function(t,e){var i=this.removeMarker_(t);return!e&&i&&this.repaint(),i},l.removeMarkers=function(t,e){for(var i=!1,s=0;s<t.length;s++)i=i||this.removeMarker_(t[s]);return!e&&i&&this.repaint(),i},l.clearMarkers=function(){this.resetViewport(!0),this.markers=[]},l.repaint=function(){var t=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout(function(){for(var e=0;e<t.length;e++)t[e].remove()},0)},l.getExtendedBounds=function(t){var e=this.getProjection(),i=e.fromLatLngToDivPixel(new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()));i.x+=this.gridSize,i.y-=this.gridSize;var s=e.fromLatLngToDivPixel(new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()));return s.x-=this.gridSize,s.y+=this.gridSize,t.extend(e.fromDivPixelToLatLng(i)),t.extend(e.fromDivPixelToLatLng(s)),t},l.redraw=function(){this.createClusters(0)},l.resetViewport=function(t){for(var e=0;e<this.clusters.length;e++)this.clusters[e].remove();this.clusters=[];for(var i=0;i<this.markers.length;i++){var s=this.markers[i];s.isAdded=!1,t&&s.setMap(null)}},l.distanceBetweenPoints=function(t,e){var i=(e.lat()-t.lat())*Math.PI/180,s=(e.lng()-t.lng())*Math.PI/180,r=Math.sin(i/2)*Math.sin(i/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(s/2)*Math.sin(s/2);return 2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r))*6371},l.isMarkerInBounds=function(t,e){var i=t.getPosition();return!!i&&e.contains(i)},l.addToClosestCluster=function(t){for(var i,s=4e4,r=null,n=0;n<this.clusters.length;n++){var o=(i=this.clusters[n]).getCenter(),a=t.getPosition();if(o&&a){var h=this.distanceBetweenPoints(o,a);h<s&&(s=h,r=i)}}r&&r.isMarkerInClusterBounds(t)?r.addMarker(t):((i=new e(this)).addMarker(t),this.clusters.push(i))},l.createClusters=function(t){var e=this;if(this.ready){0===t&&(google.maps.event.trigger(this,"clusteringbegin",this),null!==this.timerRefStatic&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var i=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),s=this.getExtendedBounds(i),r=Math.min(t+this.batchSize,this.markers.length),n=t;n<r;n++){var o=this.markers[n];!o.isAdded&&this.isMarkerInBounds(o,s)&&(!this.ignoreHidden||this.ignoreHidden&&o.getVisible())&&this.addToClosestCluster(o)}r<this.markers.length?this.timerRefStatic=window.setTimeout(function(){e.createClusters(r)},0):(this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this))}},l.extend=function(t,e){return function(t){for(var e in t.prototype)this.prototype[e]=t.prototype[e];return this}.apply(t,[e])},t}();exports.Cluster=e,exports.ClusterIcon=t,exports.Clusterer=l;
"use strict";var t=function(){function t(e,i){e.getClusterer().extend(t,google.maps.OverlayView),this.cluster=e,this.className=this.cluster.getClusterer().getClusterClass(),this.styles=i,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.setMap(e.getMap())}var e=t.prototype;return e.onAdd=function(){var t,e,i=this;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div),this.boundsChangedListener=google.maps.event.addListener(this.getMap(),"boundschanged",(function(){e=t})),google.maps.event.addDomListener(this.div,"mousedown",(function(){t=!0,e=!1})),google.maps.event.addDomListener(this.div,"click",(function(s){if(t=!1,!e){var r=i.cluster.getClusterer();if(google.maps.event.trigger(r,"click",i.cluster),google.maps.event.trigger(r,"clusterclick",i.cluster),r.getZoomOnClick()){var n=r.getMaxZoom(),o=i.cluster.getBounds();r.getMap().fitBounds(o),setTimeout((function(){r.getMap().fitBounds(o),null!==n&&r.getMap().getZoom()>n&&r.getMap().setZoom(n+1)}),100)}s.cancelBubble=!0,s.stopPropagation&&s.stopPropagation()}})),google.maps.event.addDomListener(this.div,"mouseover",(function(){google.maps.event.trigger(i.cluster.getClusterer(),"mouseover",i.cluster)})),google.maps.event.addDomListener(this.div,"mouseout",(function(){google.maps.event.trigger(i.cluster.getClusterer(),"mouseout",i.cluster)}))},e.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),null!==this.boundsChangedListener&&google.maps.event.removeListener(this.boundsChangedListener),google.maps.event.clearInstanceListeners(this.div),this.div.parentNode.removeChild(this.div),this.div=null)},e.draw=function(){if(this.visible&&null!==this.div&&this.center){var t=this.getPosFromLatLng(this.center),e=t.x;this.div.style.top=t.y+"px",this.div.style.left=e+"px"}},e.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},e.show=function(){if(this.div&&this.center){var t,e="",i=this.backgroundPosition.split(" "),s=parseInt(i[0].replace(/^\s+|\s+$/g,""),10),r=parseInt(i[1].replace(/^\s+|\s+$/g,""),10),n=this.getPosFromLatLng(this.center);t=null===this.sums||void 0===this.sums.title||""===this.sums.title?this.cluster.getClusterer().getTitle():this.sums.title,this.div.style.cssText=this.createCss(n),e="<img alt='"+t+"' src='"+this.url+"' style='position: absolute; top: "+r+"px; left: "+s+"px; ",this.cluster.getClusterer().enableRetinaIcons||(e+="clip: rect("+-1*r+"px, "+(-1*s+this.width)+"px, "+(-1*r+this.height)+"px, "+-1*s+"px);"),this.div.innerHTML=(e+="'>")+"<div style='position: absolute;top: "+this.anchorText[0]+"px;left: "+this.anchorText[1]+"px;color: "+this.textColor+";font-size: "+this.textSize+"px;font-family: "+this.fontFamily+";font-weight: "+this.fontWeight+";font-style: "+this.fontStyle+";text-decoration: "+this.textDecoration+";text-align: center;width: "+this.width+"px;line-height:"+this.height+"px;'>"+this.sums.text+"</div>",this.div.title=t,this.div.style.display=""}this.visible=!0},e.useStyle=function(t){this.sums=t;var e=this.styles[Math.min(this.styles.length-1,Math.max(0,t.index-1))];this.url=e.url,this.height=e.height,this.width=e.width,this.anchorText=e.anchorText||[0,0],this.anchorIcon=e.anchorIcon||[this.height/2,this.width/2],this.textColor=e.textColor||"black",this.textSize=e.textSize||11,this.textDecoration=e.textDecoration||"none",this.fontWeight=e.fontWeight||"bold",this.fontStyle=e.fontStyle||"normal",this.fontFamily=e.fontFamily||"Arial,sans-serif",this.backgroundPosition=e.backgroundPosition||"0 0"},e.setCenter=function(t){this.center=t},e.createCss=function(t){var e=[];return e.push("cursor: pointer;"),e.push("position: absolute; top: "+t.y+"px; left: "+t.x+"px;"),e.push("width: "+this.width+"px; height: "+this.height+"px;"),e.join("")},e.getPosFromLatLng=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return e.x-=this.anchorIcon[1],e.y-=this.anchorIcon[0],e.x=e.x,e.y=e.y,e},t}(),e=function(){function e(e){this.markerClusterer=e,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new t(this,this.markerClusterer.getStyles())}var i=e.prototype;return i.getSize=function(){return this.markers.length},i.getMarkers=function(){return this.markers},i.getCenter=function(){return this.center},i.getMap=function(){return this.map},i.getClusterer=function(){return this.markerClusterer},i.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center,this.center),e=this.getMarkers(),i=0;i<e.length;i++){var s=e[i].getPosition();s&&t.extend(s)}return t},i.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},i.addMarker=function(t){if(this.isMarkerAlreadyAdded(t))return!1;if(this.center){if(this.averageCenter){var e=t.getPosition();if(e){var i=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(i-1)+e.lat())/i,(this.center.lng()*(i-1)+e.lng())/i),this.calculateBounds()}}}else{var s=t.getPosition();s&&(this.center=s,this.calculateBounds())}t.isAdded=!0,this.markers.push(t);var r=this.markers.length,n=this.markerClusterer.getMaxZoom();if(null!==n&&this.map.getZoom()>n)t.getMap()!==this.map&&t.setMap(this.map);else if(r<this.minClusterSize)t.getMap()!==this.map&&t.setMap(this.map);else if(r===this.minClusterSize)for(var o=0;o<r;o++)this.markers[o].setMap(null);else t.setMap(null);return this.updateIcon(),!0},i.isMarkerInClusterBounds=function(t){if(null!==this.bounds){var e=t.getPosition();if(e)return this.bounds.contains(e)}return!1},i.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},i.updateIcon=function(){var t=this.markers.length,e=this.markerClusterer.getMaxZoom();null!==e&&this.map.getZoom()>e?this.clusterIcon.hide():t<this.minClusterSize?this.clusterIcon.hide():(this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show())},i.isMarkerAlreadyAdded=function(t){if(this.markers.indexOf)return this.markers.includes(t);for(var e=0;e<this.markers.length;e++)if(t===this.markers[e])return!0;return!1},e}(),i=function(t,e){for(var i=0,s=t.length.toString(),r=s;0!==r;)r=parseInt(r,10)/10,i++;return{text:s,index:i=Math.min(i,e),title:""}},s=2e3,r=500,n="https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",o="png",a=[53,56,66,78,90],h="cluster",l=function(){function t(e,l,u){void 0===l&&(l=[]),void 0===u&&(u={}),this.extend(t,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=u.gridSize||60,this.minClusterSize=u.minimumClusterSize||2,this.maxZoom=u.maxZoom||null,this.styles=u.styles||[],this.title=u.title||"",this.zoomOnClick=!0,void 0!==u.zoomOnClick&&(this.zoomOnClick=u.zoomOnClick),this.averageCenter=!1,void 0!==u.averageCenter&&(this.averageCenter=u.averageCenter),this.ignoreHidden=!1,void 0!==u.ignoreHidden&&(this.ignoreHidden=u.ignoreHidden),this.enableRetinaIcons=!1,void 0!==u.enableRetinaIcons&&(this.enableRetinaIcons=u.enableRetinaIcons),this.imagePath=u.imagePath||n,this.imageExtension=u.imageExtension||o,this.imageSizes=u.imageSizes||a,this.calculator=u.calculator||i,this.batchSize=u.batchSize||s,this.batchSizeIE=u.batchSizeIE||r,this.clusterClass=u.clusterClass||h,-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(l,!0),this.setMap(e)}var l=t.prototype;return l.onAdd=function(){var t=this;this.activeMap=this.getMap(),this.ready=!0,this.repaint(),this.listeners=[google.maps.event.addListener(this.getMap(),"zoom_changed",(function(){t.resetViewport(!1),t.getMap().getZoom()!==(t.get("minZoom")||0)&&t.getMap().getZoom()!==t.get("maxZoom")||google.maps.event.trigger(t,"idle")})),google.maps.event.addListener(this.getMap(),"idle",(function(){t.redraw()}))]},l.onRemove=function(){for(var t=0;t<this.markers.length;t++)this.markers[t].getMap()!==this.activeMap&&this.markers[t].setMap(this.activeMap);for(var e=0;e<this.clusters.length;e++)this.clusters[e].remove();this.clusters=[];for(var i=0;i<this.listeners.length;i++)google.maps.event.removeListener(this.listeners[i]);this.listeners=[],this.activeMap=null,this.ready=!1},l.draw=function(){},l.setupStyles=function(){if(!(this.styles.length>0))for(var t=0;t<this.imageSizes.length;t++)this.styles.push({url:this.imagePath+(t+1)+"."+this.imageExtension,height:this.imageSizes[t],width:this.imageSizes[t]})},l.fitMapToMarkers=function(){for(var t=this.getMarkers(),e=new google.maps.LatLngBounds,i=0;i<t.length;i++){var s=t[i].getPosition();s&&e.extend(s)}this.getMap().fitBounds(e)},l.getGridSize=function(){return this.gridSize},l.setGridSize=function(t){this.gridSize=t},l.getMinimumClusterSize=function(){return this.minClusterSize},l.setMinimumClusterSize=function(t){this.minClusterSize=t},l.getMaxZoom=function(){return this.maxZoom},l.setMaxZoom=function(t){this.maxZoom=t},l.getStyles=function(){return this.styles},l.setStyles=function(t){this.styles=t},l.getTitle=function(){return this.title},l.setTitle=function(t){this.title=t},l.getZoomOnClick=function(){return this.zoomOnClick},l.setZoomOnClick=function(t){this.zoomOnClick=t},l.getAverageCenter=function(){return this.averageCenter},l.setAverageCenter=function(t){this.averageCenter=t},l.getIgnoreHidden=function(){return this.ignoreHidden},l.setIgnoreHidden=function(t){this.ignoreHidden=t},l.getEnableRetinaIcons=function(){return this.enableRetinaIcons},l.setEnableRetinaIcons=function(t){this.enableRetinaIcons=t},l.getImageExtension=function(){return this.imageExtension},l.setImageExtension=function(t){this.imageExtension=t},l.getImagePath=function(){return this.imagePath},l.setImagePath=function(t){this.imagePath=t},l.getImageSizes=function(){return this.imageSizes},l.setImageSizes=function(t){this.imageSizes=t},l.getCalculator=function(){return this.calculator},l.setCalculator=function(t){this.calculator=t},l.getBatchSizeIE=function(){return this.batchSizeIE},l.setBatchSizeIE=function(t){this.batchSizeIE=t},l.getClusterClass=function(){return this.clusterClass},l.setClusterClass=function(t){this.clusterClass=t},l.getMarkers=function(){return this.markers},l.getTotalMarkers=function(){return this.markers.length},l.getClusters=function(){return this.clusters},l.getTotalClusters=function(){return this.clusters.length},l.addMarker=function(t,e){this.pushMarkerTo(t),e||this.redraw()},l.addMarkers=function(t,e){for(var i in t)t.hasOwnProperty(i)&&this.pushMarkerTo(t[i]);e||this.redraw()},l.pushMarkerTo=function(t){var e=this;t.getDraggable()&&google.maps.event.addListener(t,"dragend",(function(){e.ready&&(t.isAdded=!1,e.repaint())})),t.isAdded=!1,this.markers.push(t)},l.removeMarker_=function(t){var e=-1;if(this.markers.indexOf)e=this.markers.indexOf(t);else for(var i=0;i<this.markers.length;i++)if(t===this.markers[i]){e=i;break}return-1!==e&&(t.setMap(null),this.markers.splice(e,1),!0)},l.removeMarker=function(t,e){var i=this.removeMarker_(t);return!e&&i&&this.repaint(),i},l.removeMarkers=function(t,e){for(var i=!1,s=0;s<t.length;s++)i=i||this.removeMarker_(t[s]);return!e&&i&&this.repaint(),i},l.clearMarkers=function(){this.resetViewport(!0),this.markers=[]},l.repaint=function(){var t=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout((function(){for(var e=0;e<t.length;e++)t[e].remove()}),0)},l.getExtendedBounds=function(t){var e=this.getProjection(),i=e.fromLatLngToDivPixel(new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()));i.x+=this.gridSize,i.y-=this.gridSize;var s=e.fromLatLngToDivPixel(new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()));return s.x-=this.gridSize,s.y+=this.gridSize,t.extend(e.fromDivPixelToLatLng(i)),t.extend(e.fromDivPixelToLatLng(s)),t},l.redraw=function(){this.createClusters(0)},l.resetViewport=function(t){for(var e=0;e<this.clusters.length;e++)this.clusters[e].remove();this.clusters=[];for(var i=0;i<this.markers.length;i++){var s=this.markers[i];s.isAdded=!1,t&&s.setMap(null)}},l.distanceBetweenPoints=function(t,e){var i=(e.lat()-t.lat())*Math.PI/180,s=(e.lng()-t.lng())*Math.PI/180,r=Math.sin(i/2)*Math.sin(i/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(s/2)*Math.sin(s/2);return 2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r))*6371},l.isMarkerInBounds=function(t,e){var i=t.getPosition();return!!i&&e.contains(i)},l.addToClosestCluster=function(t){for(var i,s=4e4,r=null,n=0;n<this.clusters.length;n++){var o=(i=this.clusters[n]).getCenter(),a=t.getPosition();if(o&&a){var h=this.distanceBetweenPoints(o,a);h<s&&(s=h,r=i)}}r&&r.isMarkerInClusterBounds(t)?r.addMarker(t):((i=new e(this)).addMarker(t),this.clusters.push(i))},l.createClusters=function(t){var e=this;if(this.ready){0===t&&(google.maps.event.trigger(this,"clusteringbegin",this),null!==this.timerRefStatic&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var i=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),s=this.getExtendedBounds(i),r=Math.min(t+this.batchSize,this.markers.length),n=t;n<r;n++){var o=this.markers[n];!o.isAdded&&this.isMarkerInBounds(o,s)&&(!this.ignoreHidden||this.ignoreHidden&&o.getVisible())&&this.addToClosestCluster(o)}r<this.markers.length?this.timerRefStatic=window.setTimeout((function(){e.createClusters(r)}),0):(this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this))}},l.extend=function(t,e){return function(t){for(var e in t.prototype)this.prototype[e]=t.prototype[e];return this}.apply(t,[e])},t}();exports.Cluster=e,exports.ClusterIcon=t,exports.Clusterer=l;
//# sourceMappingURL=markerclusterer.cjs.production.min.js.map

@@ -25,3 +25,4 @@ var ClusterIcon =

this.fontFamily = 'Arial,sans-serif';
this.backgroundPosition = '0 0'; // @ts-ignore
this.backgroundPosition = '0 0'; // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -38,3 +39,3 @@ this.setMap(cluster.getMap()); // Note: this causes onAdd to be called

var cDraggingMapByCluster;
this.div = document.createElement("div");
this.div = document.createElement('div');
this.div.className = this.className;

@@ -44,3 +45,4 @@

this.show();
} // @ts-ignore
} // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -50,7 +52,8 @@

this.boundsChangedListener = google.maps.event.addListener( // @ts-ignore
this.getMap(), "boundschanged", function boundsChabged() {
this.boundsChangedListener = google.maps.event.addListener( // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.getMap(), 'boundschanged', function boundsChabged() {
cDraggingMapByCluster = cMouseDownInCluster;
});
google.maps.event.addDomListener(this.div, "mousedown", function onMouseDown() {
google.maps.event.addDomListener(this.div, 'mousedown', function onMouseDown() {
cMouseDownInCluster = true;

@@ -60,3 +63,3 @@ cDraggingMapByCluster = false;

google.maps.event.addDomListener(this.div, "click", // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
google.maps.event.addDomListener(this.div, 'click', // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
function (event) {

@@ -68,11 +71,11 @@ cMouseDownInCluster = false;

/**
* This event is fired when a cluster marker is clicked.
* @name MarkerClusterer#click
* @param {Cluster} c The cluster that was clicked.
* @event
*/
* This event is fired when a cluster marker is clicked.
* @name MarkerClusterer#click
* @param {Cluster} c The cluster that was clicked.
* @event
*/
google.maps.event.trigger(markerClusterer, "click", _this.cluster);
google.maps.event.trigger(markerClusterer, "clusterclick", _this.cluster); // deprecated name
google.maps.event.trigger(markerClusterer, 'click', _this.cluster);
google.maps.event.trigger(markerClusterer, 'clusterclick', _this.cluster); // deprecated name
// The default click handler follows. Disable it by setting

@@ -85,3 +88,4 @@ // the zoomOnClick property to false.

var bounds = _this.cluster.getBounds(); // @ts-ignore
var bounds = _this.cluster.getBounds(); // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -92,7 +96,10 @@

setTimeout(function timeout() {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
markerClusterer.getMap().fitBounds(bounds); // Don't zoom beyond the max zoom level
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
if (maxZoom !== null && markerClusterer.getMap().getZoom() > maxZoom) {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -112,3 +119,3 @@ markerClusterer.getMap().setZoom(maxZoom + 1);

});
google.maps.event.addDomListener(this.div, "mouseover", // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
google.maps.event.addDomListener(this.div, 'mouseover', // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
function () {

@@ -121,6 +128,6 @@ /**

*/
google.maps.event.trigger(_this.cluster.getClusterer(), "mouseover", _this.cluster);
google.maps.event.trigger(_this.cluster.getClusterer(), 'mouseover', _this.cluster);
}); // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
google.maps.event.addDomListener(this.div, "mouseout", // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
google.maps.event.addDomListener(this.div, 'mouseout', // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
function () {

@@ -133,3 +140,3 @@ /**

*/
google.maps.event.trigger(_this.cluster.getClusterer(), "mouseout", _this.cluster);
google.maps.event.trigger(_this.cluster.getClusterer(), 'mouseout', _this.cluster);
});

@@ -158,4 +165,4 @@ };

this.div.style.top = y + "px";
this.div.style.left = x + "px";
this.div.style.top = y + 'px';
this.div.style.left = x + 'px';
}

@@ -166,3 +173,3 @@ };

if (this.div) {
this.div.style.display = "none";
this.div.style.display = 'none';
}

@@ -175,11 +182,11 @@

if (this.div && this.center) {
var img = "",
divTitle = ""; // NOTE: values must be specified in px units
var img = '',
divTitle = ''; // NOTE: values must be specified in px units
var bp = this.backgroundPosition.split(" ");
var spriteH = parseInt(bp[0].replace(/^\s+|\s+$/g, ""), 10);
var spriteV = parseInt(bp[1].replace(/^\s+|\s+$/g, ""), 10);
var bp = this.backgroundPosition.split(' ');
var spriteH = parseInt(bp[0].replace(/^\s+|\s+$/g, ''), 10);
var spriteV = parseInt(bp[1].replace(/^\s+|\s+$/g, ''), 10);
var pos = this.getPosFromLatLng(this.center);
if (this.sums === null || typeof this.sums.title === "undefined" || this.sums.title === "") {
if (this.sums === null || typeof this.sums.title === 'undefined' || this.sums.title === '') {
divTitle = this.cluster.getClusterer().getTitle();

@@ -191,13 +198,15 @@ } else {

this.div.style.cssText = this.createCss(pos);
img = "<img alt='" + divTitle + "' src='" + this.url + "' style='position: absolute; top: " + spriteV + "px; left: " + spriteH + "px; "; //@ts-ignore
img = "<img alt='" + divTitle + "' src='" + this.url + "' style='position: absolute; top: " + spriteV + 'px; left: ' + spriteH + 'px; '; // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
//@ts-ignore
if (!this.cluster.getClusterer().enableRetinaIcons) {
img += "clip: rect(" + -1 * spriteV + "px, " + (-1 * spriteH + this.width) + "px, " + (-1 * spriteV + this.height) + "px, " + -1 * spriteH + "px);";
img += 'clip: rect(' + -1 * spriteV + 'px, ' + (-1 * spriteH + this.width) + 'px, ' + (-1 * spriteV + this.height) + 'px, ' + -1 * spriteH + 'px);';
}
img += "'>";
this.div.innerHTML = img + "<div style='" + "position: absolute;" + "top: " + this.anchorText[0] + "px;" + "left: " + this.anchorText[1] + "px;" + "color: " + this.textColor + ";" + "font-size: " + this.textSize + "px;" + "font-family: " + this.fontFamily + ";" + "font-weight: " + this.fontWeight + ";" + "font-style: " + this.fontStyle + ";" + "text-decoration: " + this.textDecoration + ";" + "text-align: center;" + "width: " + this.width + "px;" + "line-height:" + this.height + "px;" + // @ts-ignore
"'>" + this.sums.text + "</div>";
this.div.innerHTML = img + "<div style='" + 'position: absolute;' + 'top: ' + this.anchorText[0] + 'px;' + 'left: ' + this.anchorText[1] + 'px;' + 'color: ' + this.textColor + ';' + 'font-size: ' + this.textSize + 'px;' + 'font-family: ' + this.fontFamily + ';' + 'font-weight: ' + this.fontWeight + ';' + 'font-style: ' + this.fontStyle + ';' + 'text-decoration: ' + this.textDecoration + ';' + 'text-align: center;' + 'width: ' + this.width + 'px;' + 'line-height:' + this.height + 'px;' + "'>" + // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.sums.text + '</div>';
this.div.title = divTitle;
this.div.style.display = "";
this.div.style.display = '';
}

@@ -216,9 +225,9 @@

this.anchorIcon = style.anchorIcon || [this.height / 2, this.width / 2];
this.textColor = style.textColor || "black";
this.textColor = style.textColor || 'black';
this.textSize = style.textSize || 11;
this.textDecoration = style.textDecoration || "none";
this.fontWeight = style.fontWeight || "bold";
this.fontStyle = style.fontStyle || "normal";
this.fontFamily = style.fontFamily || "Arial,sans-serif";
this.backgroundPosition = style.backgroundPosition || "0 0";
this.textDecoration = style.textDecoration || 'none';
this.fontWeight = style.fontWeight || 'bold';
this.fontStyle = style.fontStyle || 'normal';
this.fontFamily = style.fontFamily || 'Arial,sans-serif';
this.backgroundPosition = style.backgroundPosition || '0 0';
};

@@ -232,9 +241,10 @@

var style = [];
style.push("cursor: pointer;");
style.push("position: absolute; top: " + pos.y + "px; left: " + pos.x + "px;");
style.push("width: " + this.width + "px; height: " + this.height + "px;");
return style.join("");
style.push('cursor: pointer;');
style.push('position: absolute; top: ' + pos.y + 'px; left: ' + pos.x + 'px;');
style.push('width: ' + this.width + 'px; height: ' + this.height + 'px;');
return style.join('');
};
_proto.getPosFromLatLng = function getPosFromLatLng(latlng) {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -256,3 +266,4 @@ var pos = this.getProjection().fromLatLngToDivPixel(latlng);

function Cluster(markerClusterer) {
this.markerClusterer = markerClusterer; // @ts-ignore
this.markerClusterer = markerClusterer; // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -307,2 +318,3 @@ this.map = this.markerClusterer.getMap();

_proto.remove = function remove() {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -426,3 +438,3 @@ this.clusterIcon.setMap(null);

var index = 0;
var title = "";
var title = '';
var count = markers.length.toString();

@@ -432,2 +444,3 @@ var dv = count;

while (dv !== 0) {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -448,6 +461,6 @@ dv = parseInt(dv, 10) / 10;

var BATCH_SIZE_IE = 500;
var IMAGE_PATH = "https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m";
var IMAGE_EXTENSION = "png";
var IMAGE_PATH = 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m';
var IMAGE_EXTENSION = 'png';
var IMAGE_SIZES = [53, 56, 66, 78, 90];
var CLUSTERER_CLASS = "cluster";
var CLUSTERER_CLASS = 'cluster';
var Clusterer =

@@ -475,3 +488,3 @@ /*#__PURE__*/

this.styles = optOptions.styles || [];
this.title = optOptions.title || "";
this.title = optOptions.title || '';
this.zoomOnClick = true;

@@ -509,3 +522,3 @@

if (navigator.userAgent.toLowerCase().indexOf("msie") !== -1) {
if (navigator.userAgent.toLowerCase().indexOf('msie') !== -1) {
// Try to avoid IE timeout when processing a huge number of markers:

@@ -517,3 +530,4 @@ this.batchSize = this.batchSizeIE;

this.setupStyles();
this.addMarkers(optMarkers, true); // @ts-ignore
this.addMarkers(optMarkers, true); // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -528,2 +542,3 @@ this.setMap(map); // Note: this causes onAdd to be called

// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -534,4 +549,5 @@ this.activeMap = this.getMap();

this.listeners = [google.maps.event.addListener( // @ts-ignore
this.getMap(), "zoom_changed", // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
this.listeners = [google.maps.event.addListener( // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.getMap(), 'zoom_changed', // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
function () {

@@ -545,9 +561,12 @@ _this.resetViewport(false); // Workaround for this Google bug: when map is at level 0 and "-" of

if ( // @ts-ignore
_this.getMap().getZoom() === (_this.get("minZoom") || 0) || // @ts-ignore
_this.getMap().getZoom() === _this.get("maxZoom")) {
google.maps.event.trigger(_this, "idle");
if ( // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
_this.getMap().getZoom() === (_this.get('minZoom') || 0) || // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
_this.getMap().getZoom() === _this.get('maxZoom')) {
google.maps.event.trigger(_this, 'idle');
}
}), google.maps.event.addListener( // @ts-ignore
this.getMap(), "idle", // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
}), google.maps.event.addListener( // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.getMap(), 'idle', // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
function () {

@@ -581,3 +600,4 @@ _this.redraw();

this.ready = false;
};
} // eslint-disable-next-line @typescript-eslint/no-empty-function
;

@@ -593,3 +613,3 @@ _proto.draw = function draw() {};

this.styles.push({
url: this.imagePath + (i + 1) + "." + this.imageExtension,
url: this.imagePath + (i + 1) + '.' + this.imageExtension,
height: this.imageSizes[i],

@@ -611,3 +631,4 @@ width: this.imageSizes[i]

}
} // @ts-ignore
} // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -780,3 +801,3 @@

// eslint-disable-next-line @getify/proper-arrows/name, @getify/proper-arrows/this
google.maps.event.addListener(marker, "dragend", function () {
google.maps.event.addListener(marker, 'dragend', function () {
if (_this2.ready) {

@@ -863,2 +884,3 @@ marker.isAdded = false;

_proto.getExtendedBounds = function getExtendedBounds(bounds) {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -971,3 +993,3 @@ var projection = this.getProjection(); // Convert the points to pixels and the extend out by the grid size.

*/
google.maps.event.trigger(this, "clusteringbegin", this);
google.maps.event.trigger(this, 'clusteringbegin', this);

@@ -982,7 +1004,10 @@ if (this.timerRefStatic !== null) {

// See Comments 9 & 11 on Issue 3651 relating to this workaround for a Google Maps bug:
// @ts-ignore
var mapBounds = this.getMap().getZoom() > 3 ? new google.maps.LatLngBounds( // @ts-ignore
this.getMap().getBounds().getSouthWest(), // @ts-ignore
var mapBounds = // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.getMap().getZoom() > 3 ? new google.maps.LatLngBounds( // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.getMap().getBounds().getSouthWest(), // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.getMap().getBounds().getNorthEast()) : new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472, -178.48388434375), new google.maps.LatLng(-85.08136444384544, 178.00048865625));

@@ -1017,3 +1042,3 @@ var bounds = this.getExtendedBounds(mapBounds);

google.maps.event.trigger(this, "clusteringend", this);
google.maps.event.trigger(this, 'clusteringend', this);
}

@@ -1026,5 +1051,7 @@ };

for (var property in object.prototype) {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.prototype[property] = object.prototype[property];
} // @ts-ignore
} // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -1031,0 +1058,0 @@

@@ -31,3 +31,4 @@ (function (global, factory) {

this.fontFamily = 'Arial,sans-serif';
this.backgroundPosition = '0 0'; // @ts-ignore
this.backgroundPosition = '0 0'; // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -44,3 +45,3 @@ this.setMap(cluster.getMap()); // Note: this causes onAdd to be called

var cDraggingMapByCluster;
this.div = document.createElement("div");
this.div = document.createElement('div');
this.div.className = this.className;

@@ -50,3 +51,4 @@

this.show();
} // @ts-ignore
} // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -56,7 +58,8 @@

this.boundsChangedListener = google.maps.event.addListener( // @ts-ignore
this.getMap(), "boundschanged", function boundsChabged() {
this.boundsChangedListener = google.maps.event.addListener( // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.getMap(), 'boundschanged', function boundsChabged() {
cDraggingMapByCluster = cMouseDownInCluster;
});
google.maps.event.addDomListener(this.div, "mousedown", function onMouseDown() {
google.maps.event.addDomListener(this.div, 'mousedown', function onMouseDown() {
cMouseDownInCluster = true;

@@ -66,3 +69,3 @@ cDraggingMapByCluster = false;

google.maps.event.addDomListener(this.div, "click", // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
google.maps.event.addDomListener(this.div, 'click', // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
function (event) {

@@ -74,11 +77,11 @@ cMouseDownInCluster = false;

/**
* This event is fired when a cluster marker is clicked.
* @name MarkerClusterer#click
* @param {Cluster} c The cluster that was clicked.
* @event
*/
* This event is fired when a cluster marker is clicked.
* @name MarkerClusterer#click
* @param {Cluster} c The cluster that was clicked.
* @event
*/
google.maps.event.trigger(markerClusterer, "click", _this.cluster);
google.maps.event.trigger(markerClusterer, "clusterclick", _this.cluster); // deprecated name
google.maps.event.trigger(markerClusterer, 'click', _this.cluster);
google.maps.event.trigger(markerClusterer, 'clusterclick', _this.cluster); // deprecated name
// The default click handler follows. Disable it by setting

@@ -91,3 +94,4 @@ // the zoomOnClick property to false.

var bounds = _this.cluster.getBounds(); // @ts-ignore
var bounds = _this.cluster.getBounds(); // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -98,7 +102,10 @@

setTimeout(function timeout() {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
markerClusterer.getMap().fitBounds(bounds); // Don't zoom beyond the max zoom level
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
if (maxZoom !== null && markerClusterer.getMap().getZoom() > maxZoom) {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -118,3 +125,3 @@ markerClusterer.getMap().setZoom(maxZoom + 1);

});
google.maps.event.addDomListener(this.div, "mouseover", // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
google.maps.event.addDomListener(this.div, 'mouseover', // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
function () {

@@ -127,6 +134,6 @@ /**

*/
google.maps.event.trigger(_this.cluster.getClusterer(), "mouseover", _this.cluster);
google.maps.event.trigger(_this.cluster.getClusterer(), 'mouseover', _this.cluster);
}); // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
google.maps.event.addDomListener(this.div, "mouseout", // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
google.maps.event.addDomListener(this.div, 'mouseout', // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
function () {

@@ -139,3 +146,3 @@ /**

*/
google.maps.event.trigger(_this.cluster.getClusterer(), "mouseout", _this.cluster);
google.maps.event.trigger(_this.cluster.getClusterer(), 'mouseout', _this.cluster);
});

@@ -164,4 +171,4 @@ };

this.div.style.top = y + "px";
this.div.style.left = x + "px";
this.div.style.top = y + 'px';
this.div.style.left = x + 'px';
}

@@ -172,3 +179,3 @@ };

if (this.div) {
this.div.style.display = "none";
this.div.style.display = 'none';
}

@@ -181,11 +188,11 @@

if (this.div && this.center) {
var img = "",
divTitle = ""; // NOTE: values must be specified in px units
var img = '',
divTitle = ''; // NOTE: values must be specified in px units
var bp = this.backgroundPosition.split(" ");
var spriteH = parseInt(bp[0].replace(/^\s+|\s+$/g, ""), 10);
var spriteV = parseInt(bp[1].replace(/^\s+|\s+$/g, ""), 10);
var bp = this.backgroundPosition.split(' ');
var spriteH = parseInt(bp[0].replace(/^\s+|\s+$/g, ''), 10);
var spriteV = parseInt(bp[1].replace(/^\s+|\s+$/g, ''), 10);
var pos = this.getPosFromLatLng(this.center);
if (this.sums === null || typeof this.sums.title === "undefined" || this.sums.title === "") {
if (this.sums === null || typeof this.sums.title === 'undefined' || this.sums.title === '') {
divTitle = this.cluster.getClusterer().getTitle();

@@ -197,13 +204,15 @@ } else {

this.div.style.cssText = this.createCss(pos);
img = "<img alt='" + divTitle + "' src='" + this.url + "' style='position: absolute; top: " + spriteV + "px; left: " + spriteH + "px; "; //@ts-ignore
img = "<img alt='" + divTitle + "' src='" + this.url + "' style='position: absolute; top: " + spriteV + 'px; left: ' + spriteH + 'px; '; // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
//@ts-ignore
if (!this.cluster.getClusterer().enableRetinaIcons) {
img += "clip: rect(" + -1 * spriteV + "px, " + (-1 * spriteH + this.width) + "px, " + (-1 * spriteV + this.height) + "px, " + -1 * spriteH + "px);";
img += 'clip: rect(' + -1 * spriteV + 'px, ' + (-1 * spriteH + this.width) + 'px, ' + (-1 * spriteV + this.height) + 'px, ' + -1 * spriteH + 'px);';
}
img += "'>";
this.div.innerHTML = img + "<div style='" + "position: absolute;" + "top: " + this.anchorText[0] + "px;" + "left: " + this.anchorText[1] + "px;" + "color: " + this.textColor + ";" + "font-size: " + this.textSize + "px;" + "font-family: " + this.fontFamily + ";" + "font-weight: " + this.fontWeight + ";" + "font-style: " + this.fontStyle + ";" + "text-decoration: " + this.textDecoration + ";" + "text-align: center;" + "width: " + this.width + "px;" + "line-height:" + this.height + "px;" + // @ts-ignore
"'>" + this.sums.text + "</div>";
this.div.innerHTML = img + "<div style='" + 'position: absolute;' + 'top: ' + this.anchorText[0] + 'px;' + 'left: ' + this.anchorText[1] + 'px;' + 'color: ' + this.textColor + ';' + 'font-size: ' + this.textSize + 'px;' + 'font-family: ' + this.fontFamily + ';' + 'font-weight: ' + this.fontWeight + ';' + 'font-style: ' + this.fontStyle + ';' + 'text-decoration: ' + this.textDecoration + ';' + 'text-align: center;' + 'width: ' + this.width + 'px;' + 'line-height:' + this.height + 'px;' + "'>" + // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.sums.text + '</div>';
this.div.title = divTitle;
this.div.style.display = "";
this.div.style.display = '';
}

@@ -222,9 +231,9 @@

this.anchorIcon = style.anchorIcon || [this.height / 2, this.width / 2];
this.textColor = style.textColor || "black";
this.textColor = style.textColor || 'black';
this.textSize = style.textSize || 11;
this.textDecoration = style.textDecoration || "none";
this.fontWeight = style.fontWeight || "bold";
this.fontStyle = style.fontStyle || "normal";
this.fontFamily = style.fontFamily || "Arial,sans-serif";
this.backgroundPosition = style.backgroundPosition || "0 0";
this.textDecoration = style.textDecoration || 'none';
this.fontWeight = style.fontWeight || 'bold';
this.fontStyle = style.fontStyle || 'normal';
this.fontFamily = style.fontFamily || 'Arial,sans-serif';
this.backgroundPosition = style.backgroundPosition || '0 0';
};

@@ -238,9 +247,10 @@

var style = [];
style.push("cursor: pointer;");
style.push("position: absolute; top: " + pos.y + "px; left: " + pos.x + "px;");
style.push("width: " + this.width + "px; height: " + this.height + "px;");
return style.join("");
style.push('cursor: pointer;');
style.push('position: absolute; top: ' + pos.y + 'px; left: ' + pos.x + 'px;');
style.push('width: ' + this.width + 'px; height: ' + this.height + 'px;');
return style.join('');
};
_proto.getPosFromLatLng = function getPosFromLatLng(latlng) {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -262,3 +272,4 @@ var pos = this.getProjection().fromLatLngToDivPixel(latlng);

function Cluster(markerClusterer) {
this.markerClusterer = markerClusterer; // @ts-ignore
this.markerClusterer = markerClusterer; // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -313,2 +324,3 @@ this.map = this.markerClusterer.getMap();

_proto.remove = function remove() {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -432,3 +444,3 @@ this.clusterIcon.setMap(null);

var index = 0;
var title = "";
var title = '';
var count = markers.length.toString();

@@ -438,2 +450,3 @@ var dv = count;

while (dv !== 0) {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -454,6 +467,6 @@ dv = parseInt(dv, 10) / 10;

var BATCH_SIZE_IE = 500;
var IMAGE_PATH = "https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m";
var IMAGE_EXTENSION = "png";
var IMAGE_PATH = 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m';
var IMAGE_EXTENSION = 'png';
var IMAGE_SIZES = [53, 56, 66, 78, 90];
var CLUSTERER_CLASS = "cluster";
var CLUSTERER_CLASS = 'cluster';
var Clusterer =

@@ -481,3 +494,3 @@ /*#__PURE__*/

this.styles = optOptions.styles || [];
this.title = optOptions.title || "";
this.title = optOptions.title || '';
this.zoomOnClick = true;

@@ -515,3 +528,3 @@

if (navigator.userAgent.toLowerCase().indexOf("msie") !== -1) {
if (navigator.userAgent.toLowerCase().indexOf('msie') !== -1) {
// Try to avoid IE timeout when processing a huge number of markers:

@@ -523,3 +536,4 @@ this.batchSize = this.batchSizeIE;

this.setupStyles();
this.addMarkers(optMarkers, true); // @ts-ignore
this.addMarkers(optMarkers, true); // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -534,2 +548,3 @@ this.setMap(map); // Note: this causes onAdd to be called

// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -540,4 +555,5 @@ this.activeMap = this.getMap();

this.listeners = [google.maps.event.addListener( // @ts-ignore
this.getMap(), "zoom_changed", // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
this.listeners = [google.maps.event.addListener( // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.getMap(), 'zoom_changed', // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
function () {

@@ -551,9 +567,12 @@ _this.resetViewport(false); // Workaround for this Google bug: when map is at level 0 and "-" of

if ( // @ts-ignore
_this.getMap().getZoom() === (_this.get("minZoom") || 0) || // @ts-ignore
_this.getMap().getZoom() === _this.get("maxZoom")) {
google.maps.event.trigger(_this, "idle");
if ( // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
_this.getMap().getZoom() === (_this.get('minZoom') || 0) || // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
_this.getMap().getZoom() === _this.get('maxZoom')) {
google.maps.event.trigger(_this, 'idle');
}
}), google.maps.event.addListener( // @ts-ignore
this.getMap(), "idle", // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
}), google.maps.event.addListener( // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.getMap(), 'idle', // eslint-disable-next-line @getify/proper-arrows/this, @getify/proper-arrows/name
function () {

@@ -587,3 +606,4 @@ _this.redraw();

this.ready = false;
};
} // eslint-disable-next-line @typescript-eslint/no-empty-function
;

@@ -599,3 +619,3 @@ _proto.draw = function draw() {};

this.styles.push({
url: this.imagePath + (i + 1) + "." + this.imageExtension,
url: this.imagePath + (i + 1) + '.' + this.imageExtension,
height: this.imageSizes[i],

@@ -617,3 +637,4 @@ width: this.imageSizes[i]

}
} // @ts-ignore
} // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -786,3 +807,3 @@

// eslint-disable-next-line @getify/proper-arrows/name, @getify/proper-arrows/this
google.maps.event.addListener(marker, "dragend", function () {
google.maps.event.addListener(marker, 'dragend', function () {
if (_this2.ready) {

@@ -869,2 +890,3 @@ marker.isAdded = false;

_proto.getExtendedBounds = function getExtendedBounds(bounds) {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -977,3 +999,3 @@ var projection = this.getProjection(); // Convert the points to pixels and the extend out by the grid size.

*/
google.maps.event.trigger(this, "clusteringbegin", this);
google.maps.event.trigger(this, 'clusteringbegin', this);

@@ -988,7 +1010,10 @@ if (this.timerRefStatic !== null) {

// See Comments 9 & 11 on Issue 3651 relating to this workaround for a Google Maps bug:
// @ts-ignore
var mapBounds = this.getMap().getZoom() > 3 ? new google.maps.LatLngBounds( // @ts-ignore
this.getMap().getBounds().getSouthWest(), // @ts-ignore
var mapBounds = // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.getMap().getZoom() > 3 ? new google.maps.LatLngBounds( // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.getMap().getBounds().getSouthWest(), // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.getMap().getBounds().getNorthEast()) : new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472, -178.48388434375), new google.maps.LatLng(-85.08136444384544, 178.00048865625));

@@ -1023,3 +1048,3 @@ var bounds = this.getExtendedBounds(mapBounds);

google.maps.event.trigger(this, "clusteringend", this);
google.maps.event.trigger(this, 'clusteringend', this);
}

@@ -1032,5 +1057,7 @@ };

for (var property in object.prototype) {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.prototype[property] = object.prototype[property];
} // @ts-ignore
} // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore

@@ -1037,0 +1064,0 @@

@@ -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=t||self).markerClusterer={})}(this,function(t){"use strict";var e=function(){function t(e,i){e.getClusterer().extend(t,google.maps.OverlayView),this.cluster=e,this.className=this.cluster.getClusterer().getClusterClass(),this.styles=i,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.setMap(e.getMap())}var e=t.prototype;return e.onAdd=function(){var t,e,i=this;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div),this.boundsChangedListener=google.maps.event.addListener(this.getMap(),"boundschanged",function(){e=t}),google.maps.event.addDomListener(this.div,"mousedown",function(){t=!0,e=!1}),google.maps.event.addDomListener(this.div,"click",function(s){if(t=!1,!e){var n=i.cluster.getClusterer();if(google.maps.event.trigger(n,"click",i.cluster),google.maps.event.trigger(n,"clusterclick",i.cluster),n.getZoomOnClick()){var r=n.getMaxZoom(),o=i.cluster.getBounds();n.getMap().fitBounds(o),setTimeout(function(){n.getMap().fitBounds(o),null!==r&&n.getMap().getZoom()>r&&n.getMap().setZoom(r+1)},100)}s.cancelBubble=!0,s.stopPropagation&&s.stopPropagation()}}),google.maps.event.addDomListener(this.div,"mouseover",function(){google.maps.event.trigger(i.cluster.getClusterer(),"mouseover",i.cluster)}),google.maps.event.addDomListener(this.div,"mouseout",function(){google.maps.event.trigger(i.cluster.getClusterer(),"mouseout",i.cluster)})},e.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),null!==this.boundsChangedListener&&google.maps.event.removeListener(this.boundsChangedListener),google.maps.event.clearInstanceListeners(this.div),this.div.parentNode.removeChild(this.div),this.div=null)},e.draw=function(){if(this.visible&&null!==this.div&&this.center){var t=this.getPosFromLatLng(this.center),e=t.x;this.div.style.top=t.y+"px",this.div.style.left=e+"px"}},e.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},e.show=function(){if(this.div&&this.center){var t,e="",i=this.backgroundPosition.split(" "),s=parseInt(i[0].replace(/^\s+|\s+$/g,""),10),n=parseInt(i[1].replace(/^\s+|\s+$/g,""),10),r=this.getPosFromLatLng(this.center);t=null===this.sums||void 0===this.sums.title||""===this.sums.title?this.cluster.getClusterer().getTitle():this.sums.title,this.div.style.cssText=this.createCss(r),e="<img alt='"+t+"' src='"+this.url+"' style='position: absolute; top: "+n+"px; left: "+s+"px; ",this.cluster.getClusterer().enableRetinaIcons||(e+="clip: rect("+-1*n+"px, "+(-1*s+this.width)+"px, "+(-1*n+this.height)+"px, "+-1*s+"px);"),this.div.innerHTML=(e+="'>")+"<div style='position: absolute;top: "+this.anchorText[0]+"px;left: "+this.anchorText[1]+"px;color: "+this.textColor+";font-size: "+this.textSize+"px;font-family: "+this.fontFamily+";font-weight: "+this.fontWeight+";font-style: "+this.fontStyle+";text-decoration: "+this.textDecoration+";text-align: center;width: "+this.width+"px;line-height:"+this.height+"px;'>"+this.sums.text+"</div>",this.div.title=t,this.div.style.display=""}this.visible=!0},e.useStyle=function(t){this.sums=t;var e=this.styles[Math.min(this.styles.length-1,Math.max(0,t.index-1))];this.url=e.url,this.height=e.height,this.width=e.width,this.anchorText=e.anchorText||[0,0],this.anchorIcon=e.anchorIcon||[this.height/2,this.width/2],this.textColor=e.textColor||"black",this.textSize=e.textSize||11,this.textDecoration=e.textDecoration||"none",this.fontWeight=e.fontWeight||"bold",this.fontStyle=e.fontStyle||"normal",this.fontFamily=e.fontFamily||"Arial,sans-serif",this.backgroundPosition=e.backgroundPosition||"0 0"},e.setCenter=function(t){this.center=t},e.createCss=function(t){var e=[];return e.push("cursor: pointer;"),e.push("position: absolute; top: "+t.y+"px; left: "+t.x+"px;"),e.push("width: "+this.width+"px; height: "+this.height+"px;"),e.join("")},e.getPosFromLatLng=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return e.x-=this.anchorIcon[1],e.y-=this.anchorIcon[0],e.x=e.x,e.y=e.y,e},t}(),i=function(){function t(t){this.markerClusterer=t,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new e(this,this.markerClusterer.getStyles())}var i=t.prototype;return i.getSize=function(){return this.markers.length},i.getMarkers=function(){return this.markers},i.getCenter=function(){return this.center},i.getMap=function(){return this.map},i.getClusterer=function(){return this.markerClusterer},i.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center,this.center),e=this.getMarkers(),i=0;i<e.length;i++){var s=e[i].getPosition();s&&t.extend(s)}return t},i.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},i.addMarker=function(t){if(this.isMarkerAlreadyAdded(t))return!1;if(this.center){if(this.averageCenter){var e=t.getPosition();if(e){var i=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(i-1)+e.lat())/i,(this.center.lng()*(i-1)+e.lng())/i),this.calculateBounds()}}}else{var s=t.getPosition();s&&(this.center=s,this.calculateBounds())}t.isAdded=!0,this.markers.push(t);var n=this.markers.length,r=this.markerClusterer.getMaxZoom();if(null!==r&&this.map.getZoom()>r)t.getMap()!==this.map&&t.setMap(this.map);else if(n<this.minClusterSize)t.getMap()!==this.map&&t.setMap(this.map);else if(n===this.minClusterSize)for(var o=0;o<n;o++)this.markers[o].setMap(null);else t.setMap(null);return this.updateIcon(),!0},i.isMarkerInClusterBounds=function(t){if(null!==this.bounds){var e=t.getPosition();if(e)return this.bounds.contains(e)}return!1},i.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},i.updateIcon=function(){var t=this.markers.length,e=this.markerClusterer.getMaxZoom();null!==e&&this.map.getZoom()>e?this.clusterIcon.hide():t<this.minClusterSize?this.clusterIcon.hide():(this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show())},i.isMarkerAlreadyAdded=function(t){if(this.markers.indexOf)return this.markers.includes(t);for(var e=0;e<this.markers.length;e++)if(t===this.markers[e])return!0;return!1},t}(),s=function(t,e){for(var i=0,s=t.length.toString(),n=s;0!==n;)n=parseInt(n,10)/10,i++;return{text:s,index:i=Math.min(i,e),title:""}},n=2e3,r=500,o="https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",a="png",h=[53,56,66,78,90],l="cluster",u=function(){function t(e,i,u){void 0===i&&(i=[]),void 0===u&&(u={}),this.extend(t,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=u.gridSize||60,this.minClusterSize=u.minimumClusterSize||2,this.maxZoom=u.maxZoom||null,this.styles=u.styles||[],this.title=u.title||"",this.zoomOnClick=!0,void 0!==u.zoomOnClick&&(this.zoomOnClick=u.zoomOnClick),this.averageCenter=!1,void 0!==u.averageCenter&&(this.averageCenter=u.averageCenter),this.ignoreHidden=!1,void 0!==u.ignoreHidden&&(this.ignoreHidden=u.ignoreHidden),this.enableRetinaIcons=!1,void 0!==u.enableRetinaIcons&&(this.enableRetinaIcons=u.enableRetinaIcons),this.imagePath=u.imagePath||o,this.imageExtension=u.imageExtension||a,this.imageSizes=u.imageSizes||h,this.calculator=u.calculator||s,this.batchSize=u.batchSize||n,this.batchSizeIE=u.batchSizeIE||r,this.clusterClass=u.clusterClass||l,-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(i,!0),this.setMap(e)}var e=t.prototype;return e.onAdd=function(){var t=this;this.activeMap=this.getMap(),this.ready=!0,this.repaint(),this.listeners=[google.maps.event.addListener(this.getMap(),"zoom_changed",function(){t.resetViewport(!1),t.getMap().getZoom()!==(t.get("minZoom")||0)&&t.getMap().getZoom()!==t.get("maxZoom")||google.maps.event.trigger(t,"idle")}),google.maps.event.addListener(this.getMap(),"idle",function(){t.redraw()})]},e.onRemove=function(){for(var t=0;t<this.markers.length;t++)this.markers[t].getMap()!==this.activeMap&&this.markers[t].setMap(this.activeMap);for(var e=0;e<this.clusters.length;e++)this.clusters[e].remove();this.clusters=[];for(var i=0;i<this.listeners.length;i++)google.maps.event.removeListener(this.listeners[i]);this.listeners=[],this.activeMap=null,this.ready=!1},e.draw=function(){},e.setupStyles=function(){if(!(this.styles.length>0))for(var t=0;t<this.imageSizes.length;t++)this.styles.push({url:this.imagePath+(t+1)+"."+this.imageExtension,height:this.imageSizes[t],width:this.imageSizes[t]})},e.fitMapToMarkers=function(){for(var t=this.getMarkers(),e=new google.maps.LatLngBounds,i=0;i<t.length;i++){var s=t[i].getPosition();s&&e.extend(s)}this.getMap().fitBounds(e)},e.getGridSize=function(){return this.gridSize},e.setGridSize=function(t){this.gridSize=t},e.getMinimumClusterSize=function(){return this.minClusterSize},e.setMinimumClusterSize=function(t){this.minClusterSize=t},e.getMaxZoom=function(){return this.maxZoom},e.setMaxZoom=function(t){this.maxZoom=t},e.getStyles=function(){return this.styles},e.setStyles=function(t){this.styles=t},e.getTitle=function(){return this.title},e.setTitle=function(t){this.title=t},e.getZoomOnClick=function(){return this.zoomOnClick},e.setZoomOnClick=function(t){this.zoomOnClick=t},e.getAverageCenter=function(){return this.averageCenter},e.setAverageCenter=function(t){this.averageCenter=t},e.getIgnoreHidden=function(){return this.ignoreHidden},e.setIgnoreHidden=function(t){this.ignoreHidden=t},e.getEnableRetinaIcons=function(){return this.enableRetinaIcons},e.setEnableRetinaIcons=function(t){this.enableRetinaIcons=t},e.getImageExtension=function(){return this.imageExtension},e.setImageExtension=function(t){this.imageExtension=t},e.getImagePath=function(){return this.imagePath},e.setImagePath=function(t){this.imagePath=t},e.getImageSizes=function(){return this.imageSizes},e.setImageSizes=function(t){this.imageSizes=t},e.getCalculator=function(){return this.calculator},e.setCalculator=function(t){this.calculator=t},e.getBatchSizeIE=function(){return this.batchSizeIE},e.setBatchSizeIE=function(t){this.batchSizeIE=t},e.getClusterClass=function(){return this.clusterClass},e.setClusterClass=function(t){this.clusterClass=t},e.getMarkers=function(){return this.markers},e.getTotalMarkers=function(){return this.markers.length},e.getClusters=function(){return this.clusters},e.getTotalClusters=function(){return this.clusters.length},e.addMarker=function(t,e){this.pushMarkerTo(t),e||this.redraw()},e.addMarkers=function(t,e){for(var i in t)t.hasOwnProperty(i)&&this.pushMarkerTo(t[i]);e||this.redraw()},e.pushMarkerTo=function(t){var e=this;t.getDraggable()&&google.maps.event.addListener(t,"dragend",function(){e.ready&&(t.isAdded=!1,e.repaint())}),t.isAdded=!1,this.markers.push(t)},e.removeMarker_=function(t){var e=-1;if(this.markers.indexOf)e=this.markers.indexOf(t);else for(var i=0;i<this.markers.length;i++)if(t===this.markers[i]){e=i;break}return-1!==e&&(t.setMap(null),this.markers.splice(e,1),!0)},e.removeMarker=function(t,e){var i=this.removeMarker_(t);return!e&&i&&this.repaint(),i},e.removeMarkers=function(t,e){for(var i=!1,s=0;s<t.length;s++)i=i||this.removeMarker_(t[s]);return!e&&i&&this.repaint(),i},e.clearMarkers=function(){this.resetViewport(!0),this.markers=[]},e.repaint=function(){var t=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout(function(){for(var e=0;e<t.length;e++)t[e].remove()},0)},e.getExtendedBounds=function(t){var e=this.getProjection(),i=e.fromLatLngToDivPixel(new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()));i.x+=this.gridSize,i.y-=this.gridSize;var s=e.fromLatLngToDivPixel(new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()));return s.x-=this.gridSize,s.y+=this.gridSize,t.extend(e.fromDivPixelToLatLng(i)),t.extend(e.fromDivPixelToLatLng(s)),t},e.redraw=function(){this.createClusters(0)},e.resetViewport=function(t){for(var e=0;e<this.clusters.length;e++)this.clusters[e].remove();this.clusters=[];for(var i=0;i<this.markers.length;i++){var s=this.markers[i];s.isAdded=!1,t&&s.setMap(null)}},e.distanceBetweenPoints=function(t,e){var i=(e.lat()-t.lat())*Math.PI/180,s=(e.lng()-t.lng())*Math.PI/180,n=Math.sin(i/2)*Math.sin(i/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(s/2)*Math.sin(s/2);return 2*Math.atan2(Math.sqrt(n),Math.sqrt(1-n))*6371},e.isMarkerInBounds=function(t,e){var i=t.getPosition();return!!i&&e.contains(i)},e.addToClosestCluster=function(t){for(var e,s=4e4,n=null,r=0;r<this.clusters.length;r++){var o=(e=this.clusters[r]).getCenter(),a=t.getPosition();if(o&&a){var h=this.distanceBetweenPoints(o,a);h<s&&(s=h,n=e)}}n&&n.isMarkerInClusterBounds(t)?n.addMarker(t):((e=new i(this)).addMarker(t),this.clusters.push(e))},e.createClusters=function(t){var e=this;if(this.ready){0===t&&(google.maps.event.trigger(this,"clusteringbegin",this),null!==this.timerRefStatic&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var i=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),s=this.getExtendedBounds(i),n=Math.min(t+this.batchSize,this.markers.length),r=t;r<n;r++){var o=this.markers[r];!o.isAdded&&this.isMarkerInBounds(o,s)&&(!this.ignoreHidden||this.ignoreHidden&&o.getVisible())&&this.addToClosestCluster(o)}n<this.markers.length?this.timerRefStatic=window.setTimeout(function(){e.createClusters(n)},0):(this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this))}},e.extend=function(t,e){return function(t){for(var e in t.prototype)this.prototype[e]=t.prototype[e];return this}.apply(t,[e])},t}();t.Cluster=i,t.ClusterIcon=e,t.Clusterer=u});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).markerClusterer={})}(this,(function(t){"use strict";var e=function(){function t(e,i){e.getClusterer().extend(t,google.maps.OverlayView),this.cluster=e,this.className=this.cluster.getClusterer().getClusterClass(),this.styles=i,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.setMap(e.getMap())}var e=t.prototype;return e.onAdd=function(){var t,e,i=this;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div),this.boundsChangedListener=google.maps.event.addListener(this.getMap(),"boundschanged",(function(){e=t})),google.maps.event.addDomListener(this.div,"mousedown",(function(){t=!0,e=!1})),google.maps.event.addDomListener(this.div,"click",(function(s){if(t=!1,!e){var n=i.cluster.getClusterer();if(google.maps.event.trigger(n,"click",i.cluster),google.maps.event.trigger(n,"clusterclick",i.cluster),n.getZoomOnClick()){var r=n.getMaxZoom(),o=i.cluster.getBounds();n.getMap().fitBounds(o),setTimeout((function(){n.getMap().fitBounds(o),null!==r&&n.getMap().getZoom()>r&&n.getMap().setZoom(r+1)}),100)}s.cancelBubble=!0,s.stopPropagation&&s.stopPropagation()}})),google.maps.event.addDomListener(this.div,"mouseover",(function(){google.maps.event.trigger(i.cluster.getClusterer(),"mouseover",i.cluster)})),google.maps.event.addDomListener(this.div,"mouseout",(function(){google.maps.event.trigger(i.cluster.getClusterer(),"mouseout",i.cluster)}))},e.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),null!==this.boundsChangedListener&&google.maps.event.removeListener(this.boundsChangedListener),google.maps.event.clearInstanceListeners(this.div),this.div.parentNode.removeChild(this.div),this.div=null)},e.draw=function(){if(this.visible&&null!==this.div&&this.center){var t=this.getPosFromLatLng(this.center),e=t.x;this.div.style.top=t.y+"px",this.div.style.left=e+"px"}},e.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},e.show=function(){if(this.div&&this.center){var t,e="",i=this.backgroundPosition.split(" "),s=parseInt(i[0].replace(/^\s+|\s+$/g,""),10),n=parseInt(i[1].replace(/^\s+|\s+$/g,""),10),r=this.getPosFromLatLng(this.center);t=null===this.sums||void 0===this.sums.title||""===this.sums.title?this.cluster.getClusterer().getTitle():this.sums.title,this.div.style.cssText=this.createCss(r),e="<img alt='"+t+"' src='"+this.url+"' style='position: absolute; top: "+n+"px; left: "+s+"px; ",this.cluster.getClusterer().enableRetinaIcons||(e+="clip: rect("+-1*n+"px, "+(-1*s+this.width)+"px, "+(-1*n+this.height)+"px, "+-1*s+"px);"),this.div.innerHTML=(e+="'>")+"<div style='position: absolute;top: "+this.anchorText[0]+"px;left: "+this.anchorText[1]+"px;color: "+this.textColor+";font-size: "+this.textSize+"px;font-family: "+this.fontFamily+";font-weight: "+this.fontWeight+";font-style: "+this.fontStyle+";text-decoration: "+this.textDecoration+";text-align: center;width: "+this.width+"px;line-height:"+this.height+"px;'>"+this.sums.text+"</div>",this.div.title=t,this.div.style.display=""}this.visible=!0},e.useStyle=function(t){this.sums=t;var e=this.styles[Math.min(this.styles.length-1,Math.max(0,t.index-1))];this.url=e.url,this.height=e.height,this.width=e.width,this.anchorText=e.anchorText||[0,0],this.anchorIcon=e.anchorIcon||[this.height/2,this.width/2],this.textColor=e.textColor||"black",this.textSize=e.textSize||11,this.textDecoration=e.textDecoration||"none",this.fontWeight=e.fontWeight||"bold",this.fontStyle=e.fontStyle||"normal",this.fontFamily=e.fontFamily||"Arial,sans-serif",this.backgroundPosition=e.backgroundPosition||"0 0"},e.setCenter=function(t){this.center=t},e.createCss=function(t){var e=[];return e.push("cursor: pointer;"),e.push("position: absolute; top: "+t.y+"px; left: "+t.x+"px;"),e.push("width: "+this.width+"px; height: "+this.height+"px;"),e.join("")},e.getPosFromLatLng=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return e.x-=this.anchorIcon[1],e.y-=this.anchorIcon[0],e.x=e.x,e.y=e.y,e},t}(),i=function(){function t(t){this.markerClusterer=t,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new e(this,this.markerClusterer.getStyles())}var i=t.prototype;return i.getSize=function(){return this.markers.length},i.getMarkers=function(){return this.markers},i.getCenter=function(){return this.center},i.getMap=function(){return this.map},i.getClusterer=function(){return this.markerClusterer},i.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center,this.center),e=this.getMarkers(),i=0;i<e.length;i++){var s=e[i].getPosition();s&&t.extend(s)}return t},i.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},i.addMarker=function(t){if(this.isMarkerAlreadyAdded(t))return!1;if(this.center){if(this.averageCenter){var e=t.getPosition();if(e){var i=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(i-1)+e.lat())/i,(this.center.lng()*(i-1)+e.lng())/i),this.calculateBounds()}}}else{var s=t.getPosition();s&&(this.center=s,this.calculateBounds())}t.isAdded=!0,this.markers.push(t);var n=this.markers.length,r=this.markerClusterer.getMaxZoom();if(null!==r&&this.map.getZoom()>r)t.getMap()!==this.map&&t.setMap(this.map);else if(n<this.minClusterSize)t.getMap()!==this.map&&t.setMap(this.map);else if(n===this.minClusterSize)for(var o=0;o<n;o++)this.markers[o].setMap(null);else t.setMap(null);return this.updateIcon(),!0},i.isMarkerInClusterBounds=function(t){if(null!==this.bounds){var e=t.getPosition();if(e)return this.bounds.contains(e)}return!1},i.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},i.updateIcon=function(){var t=this.markers.length,e=this.markerClusterer.getMaxZoom();null!==e&&this.map.getZoom()>e?this.clusterIcon.hide():t<this.minClusterSize?this.clusterIcon.hide():(this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show())},i.isMarkerAlreadyAdded=function(t){if(this.markers.indexOf)return this.markers.includes(t);for(var e=0;e<this.markers.length;e++)if(t===this.markers[e])return!0;return!1},t}(),s=function(t,e){for(var i=0,s=t.length.toString(),n=s;0!==n;)n=parseInt(n,10)/10,i++;return{text:s,index:i=Math.min(i,e),title:""}},n=2e3,r=500,o="https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",a="png",h=[53,56,66,78,90],l="cluster",u=function(){function t(e,i,u){void 0===i&&(i=[]),void 0===u&&(u={}),this.extend(t,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=u.gridSize||60,this.minClusterSize=u.minimumClusterSize||2,this.maxZoom=u.maxZoom||null,this.styles=u.styles||[],this.title=u.title||"",this.zoomOnClick=!0,void 0!==u.zoomOnClick&&(this.zoomOnClick=u.zoomOnClick),this.averageCenter=!1,void 0!==u.averageCenter&&(this.averageCenter=u.averageCenter),this.ignoreHidden=!1,void 0!==u.ignoreHidden&&(this.ignoreHidden=u.ignoreHidden),this.enableRetinaIcons=!1,void 0!==u.enableRetinaIcons&&(this.enableRetinaIcons=u.enableRetinaIcons),this.imagePath=u.imagePath||o,this.imageExtension=u.imageExtension||a,this.imageSizes=u.imageSizes||h,this.calculator=u.calculator||s,this.batchSize=u.batchSize||n,this.batchSizeIE=u.batchSizeIE||r,this.clusterClass=u.clusterClass||l,-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(i,!0),this.setMap(e)}var e=t.prototype;return e.onAdd=function(){var t=this;this.activeMap=this.getMap(),this.ready=!0,this.repaint(),this.listeners=[google.maps.event.addListener(this.getMap(),"zoom_changed",(function(){t.resetViewport(!1),t.getMap().getZoom()!==(t.get("minZoom")||0)&&t.getMap().getZoom()!==t.get("maxZoom")||google.maps.event.trigger(t,"idle")})),google.maps.event.addListener(this.getMap(),"idle",(function(){t.redraw()}))]},e.onRemove=function(){for(var t=0;t<this.markers.length;t++)this.markers[t].getMap()!==this.activeMap&&this.markers[t].setMap(this.activeMap);for(var e=0;e<this.clusters.length;e++)this.clusters[e].remove();this.clusters=[];for(var i=0;i<this.listeners.length;i++)google.maps.event.removeListener(this.listeners[i]);this.listeners=[],this.activeMap=null,this.ready=!1},e.draw=function(){},e.setupStyles=function(){if(!(this.styles.length>0))for(var t=0;t<this.imageSizes.length;t++)this.styles.push({url:this.imagePath+(t+1)+"."+this.imageExtension,height:this.imageSizes[t],width:this.imageSizes[t]})},e.fitMapToMarkers=function(){for(var t=this.getMarkers(),e=new google.maps.LatLngBounds,i=0;i<t.length;i++){var s=t[i].getPosition();s&&e.extend(s)}this.getMap().fitBounds(e)},e.getGridSize=function(){return this.gridSize},e.setGridSize=function(t){this.gridSize=t},e.getMinimumClusterSize=function(){return this.minClusterSize},e.setMinimumClusterSize=function(t){this.minClusterSize=t},e.getMaxZoom=function(){return this.maxZoom},e.setMaxZoom=function(t){this.maxZoom=t},e.getStyles=function(){return this.styles},e.setStyles=function(t){this.styles=t},e.getTitle=function(){return this.title},e.setTitle=function(t){this.title=t},e.getZoomOnClick=function(){return this.zoomOnClick},e.setZoomOnClick=function(t){this.zoomOnClick=t},e.getAverageCenter=function(){return this.averageCenter},e.setAverageCenter=function(t){this.averageCenter=t},e.getIgnoreHidden=function(){return this.ignoreHidden},e.setIgnoreHidden=function(t){this.ignoreHidden=t},e.getEnableRetinaIcons=function(){return this.enableRetinaIcons},e.setEnableRetinaIcons=function(t){this.enableRetinaIcons=t},e.getImageExtension=function(){return this.imageExtension},e.setImageExtension=function(t){this.imageExtension=t},e.getImagePath=function(){return this.imagePath},e.setImagePath=function(t){this.imagePath=t},e.getImageSizes=function(){return this.imageSizes},e.setImageSizes=function(t){this.imageSizes=t},e.getCalculator=function(){return this.calculator},e.setCalculator=function(t){this.calculator=t},e.getBatchSizeIE=function(){return this.batchSizeIE},e.setBatchSizeIE=function(t){this.batchSizeIE=t},e.getClusterClass=function(){return this.clusterClass},e.setClusterClass=function(t){this.clusterClass=t},e.getMarkers=function(){return this.markers},e.getTotalMarkers=function(){return this.markers.length},e.getClusters=function(){return this.clusters},e.getTotalClusters=function(){return this.clusters.length},e.addMarker=function(t,e){this.pushMarkerTo(t),e||this.redraw()},e.addMarkers=function(t,e){for(var i in t)t.hasOwnProperty(i)&&this.pushMarkerTo(t[i]);e||this.redraw()},e.pushMarkerTo=function(t){var e=this;t.getDraggable()&&google.maps.event.addListener(t,"dragend",(function(){e.ready&&(t.isAdded=!1,e.repaint())})),t.isAdded=!1,this.markers.push(t)},e.removeMarker_=function(t){var e=-1;if(this.markers.indexOf)e=this.markers.indexOf(t);else for(var i=0;i<this.markers.length;i++)if(t===this.markers[i]){e=i;break}return-1!==e&&(t.setMap(null),this.markers.splice(e,1),!0)},e.removeMarker=function(t,e){var i=this.removeMarker_(t);return!e&&i&&this.repaint(),i},e.removeMarkers=function(t,e){for(var i=!1,s=0;s<t.length;s++)i=i||this.removeMarker_(t[s]);return!e&&i&&this.repaint(),i},e.clearMarkers=function(){this.resetViewport(!0),this.markers=[]},e.repaint=function(){var t=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout((function(){for(var e=0;e<t.length;e++)t[e].remove()}),0)},e.getExtendedBounds=function(t){var e=this.getProjection(),i=e.fromLatLngToDivPixel(new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()));i.x+=this.gridSize,i.y-=this.gridSize;var s=e.fromLatLngToDivPixel(new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()));return s.x-=this.gridSize,s.y+=this.gridSize,t.extend(e.fromDivPixelToLatLng(i)),t.extend(e.fromDivPixelToLatLng(s)),t},e.redraw=function(){this.createClusters(0)},e.resetViewport=function(t){for(var e=0;e<this.clusters.length;e++)this.clusters[e].remove();this.clusters=[];for(var i=0;i<this.markers.length;i++){var s=this.markers[i];s.isAdded=!1,t&&s.setMap(null)}},e.distanceBetweenPoints=function(t,e){var i=(e.lat()-t.lat())*Math.PI/180,s=(e.lng()-t.lng())*Math.PI/180,n=Math.sin(i/2)*Math.sin(i/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(s/2)*Math.sin(s/2);return 2*Math.atan2(Math.sqrt(n),Math.sqrt(1-n))*6371},e.isMarkerInBounds=function(t,e){var i=t.getPosition();return!!i&&e.contains(i)},e.addToClosestCluster=function(t){for(var e,s=4e4,n=null,r=0;r<this.clusters.length;r++){var o=(e=this.clusters[r]).getCenter(),a=t.getPosition();if(o&&a){var h=this.distanceBetweenPoints(o,a);h<s&&(s=h,n=e)}}n&&n.isMarkerInClusterBounds(t)?n.addMarker(t):((e=new i(this)).addMarker(t),this.clusters.push(e))},e.createClusters=function(t){var e=this;if(this.ready){0===t&&(google.maps.event.trigger(this,"clusteringbegin",this),null!==this.timerRefStatic&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var i=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),s=this.getExtendedBounds(i),n=Math.min(t+this.batchSize,this.markers.length),r=t;r<n;r++){var o=this.markers[r];!o.isAdded&&this.isMarkerInBounds(o,s)&&(!this.ignoreHidden||this.ignoreHidden&&o.getVisible())&&this.addToClosestCluster(o)}n<this.markers.length?this.timerRefStatic=window.setTimeout((function(){e.createClusters(n)}),0):(this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this))}},e.extend=function(t,e){return function(t){for(var e in t.prototype)this.prototype[e]=t.prototype[e];return this}.apply(t,[e])},t}();t.Cluster=i,t.ClusterIcon=e,t.Clusterer=u}));
//# sourceMappingURL=markerclusterer.umd.production.min.js.map
{
"name": "@react-google-maps/marker-clusterer",
"version": "1.7.0",
"version": "1.7.8",
"description": "Marker Clusterer for React.js Google Maps API",

@@ -52,27 +52,25 @@ "license": "MIT",

"@types/babel-types": "7.0.7",
"acorn": "6.2.1",
"awesome-typescript-loader": "5.2.1",
"eslint-config-standard": "14.1.0",
"eslint-config-standard-react": "9.2.0",
"eslint-import-resolver-typescript": "1.1.1",
"eslint-import-resolver-typescript": "2.0.0",
"eslint-plugin-ascii": "1.0.0",
"eslint-plugin-babel": "5.3.0",
"eslint-plugin-dependencies": "2.4.0",
"eslint-plugin-filenames": "1.3.2",
"eslint-plugin-html": "6.0.0",
"eslint-plugin-import": "2.18.2",
"eslint-plugin-json": "1.4.0",
"eslint-plugin-json": "2.0.1",
"eslint-plugin-jsx-a11y": "6.2.3",
"eslint-plugin-no-inferred-method-name": "1.0.2",
"eslint-plugin-node": "10.0.0",
"eslint-plugin-optimize-regex": "1.1.6",
"eslint-plugin-optimize-regex": "1.1.7",
"eslint-plugin-promise": "4.2.1",
"eslint-plugin-react": "7.14.3",
"eslint-plugin-react": "7.16.0",
"eslint-plugin-react-functional-set-state": "1.2.1",
"eslint-plugin-react-hooks": "2.0.1",
"eslint-plugin-react-hooks": "2.2.0",
"eslint-plugin-react-perf": "3.2.1",
"eslint-plugin-standard": "4.0.1",
"eslint-plugin-you-dont-need-lodash-underscore": "6.7.0"
"eslint-plugin-you-dont-need-lodash-underscore": "6.8.0"
},
"gitHead": "80167ddcc3d8e356dbf0b0c3a6292c6a3a989f83"
}

@@ -1,7 +0,7 @@

# @react-google-maps/marker-clusterer@1.2.2
# @react-google-maps/marker-clusterer
![logo](https://raw.githubusercontent.com/JustFly1984/react-google-maps-api/master/logo.png)
@react-google-maps/marker-clusterer@1.2.2
@react-google-maps/marker-clusterer
> This library is dependency of main project @react-google-maps/api

@@ -39,13 +39,7 @@ /* eslint-disable filenames/match-exported */

export {
Clusterer
} from './Clusterer'
export { Clusterer } from './Clusterer'
export {
Cluster
} from './Cluster'
export { Cluster } from './Cluster'
export {
ClusterIcon
} from './ClusterIcon'
export { ClusterIcon } from './ClusterIcon'

@@ -57,3 +51,3 @@ export {

TCalculator,
ClustererOptions
ClustererOptions,
} from './types'

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc