Socket
Socket
Sign inDemoInstall

@react-google-maps/api

Package Overview
Dependencies
11
Maintainers
2
Versions
135
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.2 to 2.1.0

2

CHANGELOG.md
# Changelog
## 2.1.0 Updated dependencies, types @types/googlemaps@3.43.0, merged fix for correct marker removal
## 2.0.1 React 17 support, Typescript 4.1.2

@@ -4,0 +6,0 @@

22

dist/components/drawing/Circle.d.ts

@@ -19,25 +19,25 @@ /// <reference types="googlemaps" />

/** This event is fired when the DOM dblclick event is fired on the circle. */
onDblClick?: (e: google.maps.MouseEvent) => void;
onDblClick?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the user stops dragging the circle. */
onDragEnd?: (e: google.maps.MouseEvent) => void;
onDragEnd?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the user starts dragging the circle. */
onDragStart?: (e: google.maps.MouseEvent) => void;
onDragStart?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the DOM mousedown event is fired on the circle. */
onMouseDown?: (e: google.maps.MouseEvent) => void;
onMouseDown?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the DOM mousemove event is fired on the circle. */
onMouseMove?: (e: google.maps.MouseEvent) => void;
onMouseMove?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired on circle mouseout. */
onMouseOut?: (e: google.maps.MouseEvent) => void;
onMouseOut?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired on circle mouseover. */
onMouseOver?: (e: google.maps.MouseEvent) => void;
onMouseOver?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the DOM mouseup event is fired on the circle. */
onMouseUp?: (e: google.maps.MouseEvent) => void;
onMouseUp?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the circle is right-clicked on. */
onRightClick?: (e: google.maps.MouseEvent) => void;
onRightClick?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the circle's center is changed. */
onCenterChanged?: () => void;
/** This event is fired when the DOM click event is fired on the circle. */
onClick?: (e: google.maps.MouseEvent) => void;
onClick?: (e: google.maps.MapMouseEvent) => void;
/** This event is repeatedly fired while the user drags the circle. */
onDrag?: (e: google.maps.MouseEvent) => void;
onDrag?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the circle's radius is changed. */

@@ -44,0 +44,0 @@ onRadiusChanged?: () => void;

/// <reference types="googlemaps" />
import * as React from 'react';
import { Clusterer } from '@react-google-maps/marker-clusterer';
interface MarkerState {
marker: google.maps.Marker | null;
}
export interface MarkerProps {

@@ -38,3 +35,3 @@ options?: google.maps.MarkerOptions;

/** This event is fired when the marker icon was clicked. */
onClick?: (e: google.maps.MouseEvent) => void;
onClick?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the marker's clickable property changes. */

@@ -47,11 +44,11 @@ onClickableChanged?: () => void;

/** This event is fired when the marker icon was double clicked. */
onDblClick?: (e: google.maps.MouseEvent) => void;
onDblClick?: (e: google.maps.MapMouseEvent) => void;
/** This event is repeatedly fired while the user drags the marker. */
onDrag?: (e: google.maps.MouseEvent) => void;
onDrag?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the user stops dragging the marker. */
onDragEnd?: (e: google.maps.MouseEvent) => void;
onDragEnd?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the marker's draggable property changes. */
onDraggableChanged?: () => void;
/** This event is fired when the user starts dragging the marker. */
onDragStart?: (e: google.maps.MouseEvent) => void;
onDragStart?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the marker's flat property changes. */

@@ -62,13 +59,13 @@ onFlatChanged?: () => void;

/** This event is fired for a mousedown on the marker. */
onMouseDown?: (e: google.maps.MouseEvent) => void;
onMouseDown?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the mouse leaves the area of the marker icon. */
onMouseOut?: (e: google.maps.MouseEvent) => void;
onMouseOut?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the mouse enters the area of the marker icon. */
onMouseOver?: (e: google.maps.MouseEvent) => void;
onMouseOver?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired for a mouseup on the marker. */
onMouseUp?: (e: google.maps.MouseEvent) => void;
onMouseUp?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the marker position property changes. */
onPositionChanged?: () => void;
/** This event is fired for a rightclick on the marker. */
onRightClick?: (e: google.maps.MouseEvent) => void;
onRightClick?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the marker's shape property changes. */

@@ -87,7 +84,6 @@ onShapeChanged?: () => void;

}
export declare class Marker extends React.PureComponent<MarkerProps, MarkerState> {
export declare class Marker extends React.PureComponent<MarkerProps> {
static contextType: React.Context<google.maps.Map<Element> | null>;
registeredEvents: google.maps.MapsEventListener[];
state: MarkerState;
setMarkerCallback: () => void;
marker: google.maps.Marker | undefined;
componentDidMount(): void;

@@ -94,0 +90,0 @@ componentDidUpdate(prevProps: MarkerProps): void;

@@ -19,23 +19,23 @@ /// <reference types="googlemaps" />

/** This event is fired when the DOM dblclick event is fired on the Polygon. */
onDblClick?: (e: google.maps.MouseEvent) => void;
onDblClick?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the user stops dragging the polygon. */
onDragEnd?: (e: google.maps.MouseEvent) => void;
onDragEnd?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the user starts dragging the polygon. */
onDragStart?: (e: google.maps.MouseEvent) => void;
onDragStart?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the DOM mousedown event is fired on the Polygon. */
onMouseDown?: (e: google.maps.MouseEvent) => void;
onMouseDown?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the DOM mousemove event is fired on the Polygon. */
onMouseMove?: (e: google.maps.MouseEvent) => void;
onMouseMove?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired on Polygon mouseout. */
onMouseOut?: (e: google.maps.MouseEvent) => void;
onMouseOut?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired on Polygon mouseover. */
onMouseOver?: (e: google.maps.MouseEvent) => void;
onMouseOver?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the DOM mouseup event is fired on the Polygon. */
onMouseUp?: (e: google.maps.MouseEvent) => void;
onMouseUp?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the Polygon is right-clicked on. */
onRightClick?: (e: google.maps.MouseEvent) => void;
onRightClick?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the DOM click event is fired on the Polygon. */
onClick?: (e: google.maps.MouseEvent) => void;
onClick?: (e: google.maps.MapMouseEvent) => void;
/** This event is repeatedly fired while the user drags the polygon. */
onDrag?: (e: google.maps.MouseEvent) => void;
onDrag?: (e: google.maps.MapMouseEvent) => void;
/** This callback is called when the polygon instance has loaded. It is called with the polygon instance. */

@@ -42,0 +42,0 @@ onLoad?: (polygon: google.maps.Polygon) => void;

@@ -17,23 +17,23 @@ /// <reference types="googlemaps" />

/** This event is fired when the DOM dblclick event is fired on the Polyline. */
onDblClick?: (e: google.maps.MouseEvent) => void;
onDblClick?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the user stops dragging the polyline. */
onDragEnd?: (e: google.maps.MouseEvent) => void;
onDragEnd?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the user starts dragging the polyline. */
onDragStart?: (e: google.maps.MouseEvent) => void;
onDragStart?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the DOM mousedown event is fired on the Polyline. */
onMouseDown?: (e: google.maps.MouseEvent) => void;
onMouseDown?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the DOM mousemove event is fired on the Polyline. */
onMouseMove?: (e: google.maps.MouseEvent) => void;
onMouseMove?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired on Polyline mouseout. */
onMouseOut?: (e: google.maps.MouseEvent) => void;
onMouseOut?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired on Polyline mouseover. */
onMouseOver?: (e: google.maps.MouseEvent) => void;
onMouseOver?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the DOM mouseup event is fired on the Polyline. */
onMouseUp?: (e: google.maps.MouseEvent) => void;
onMouseUp?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the Polyline is right-clicked on. */
onRightClick?: (e: google.maps.MouseEvent) => void;
onRightClick?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the DOM click event is fired on the Polyline. */
onClick?: (e: google.maps.MouseEvent) => void;
onClick?: (e: google.maps.MapMouseEvent) => void;
/** This event is repeatedly fired while the user drags the polyline. */
onDrag?: (e: google.maps.MouseEvent) => void;
onDrag?: (e: google.maps.MapMouseEvent) => void;
/** This callback is called when the polyline instance has loaded. It is called with the polyline instance. */

@@ -40,0 +40,0 @@ onLoad?: (polyline: google.maps.Polyline) => void;

@@ -19,23 +19,23 @@ /// <reference types="googlemaps" />

/** This event is fired when the DOM dblclick event is fired on the rectangle. */
onDblClick?: (e: google.maps.MouseEvent) => void;
onDblClick?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the user stops dragging the rectangle. */
onDragEnd?: (e: google.maps.MouseEvent) => void;
onDragEnd?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the user starts dragging the rectangle. */
onDragStart?: (e: google.maps.MouseEvent) => void;
onDragStart?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the DOM mousedown event is fired on the rectangle. */
onMouseDown?: (e: google.maps.MouseEvent) => void;
onMouseDown?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the DOM mousemove event is fired on the rectangle. */
onMouseMove?: (e: google.maps.MouseEvent) => void;
onMouseMove?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired on rectangle mouseout. */
onMouseOut?: (e: google.maps.MouseEvent) => void;
onMouseOut?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired on rectangle mouseover. */
onMouseOver?: (e: google.maps.MouseEvent) => void;
onMouseOver?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the DOM mouseup event is fired on the rectangle. */
onMouseUp?: (e: google.maps.MouseEvent) => void;
onMouseUp?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the rectangle is right-clicked on. */
onRightClick?: (e: google.maps.MouseEvent) => void;
onRightClick?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the DOM click event is fired on the rectangle. */
onClick?: (e: google.maps.MouseEvent) => void;
onClick?: (e: google.maps.MapMouseEvent) => void;
/** This event is repeatedly fired while the user drags the rectangle. */
onDrag?: (e: google.maps.MouseEvent) => void;
onDrag?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the rectangle's bounds are changed. */

@@ -42,0 +42,0 @@ onBoundsChanged?: () => void;

@@ -13,3 +13,3 @@ /// <reference types="googlemaps" />

/** This event is fired when a feature in the layer is clicked. */
onClick?: (e: google.maps.MouseEvent) => void;
onClick?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the KML layers default viewport has changed. */

@@ -16,0 +16,0 @@ onDefaultViewportChanged?: () => void;

@@ -12,5 +12,5 @@ /// <reference types="googlemaps" />

/** This event is fired when the DOM dblclick event is fired on the GroundOverlay. */
onDblClick?: (e: google.maps.MouseEvent) => void;
onDblClick?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the DOM click event is fired on the GroundOverlay. */
onClick?: (e: google.maps.MouseEvent) => void;
onClick?: (e: google.maps.MapMouseEvent) => void;
/** The url of the projected image */

@@ -17,0 +17,0 @@ url: string;

@@ -9,3 +9,3 @@ /// <reference types="googlemaps" />

/** This event is fired when the close button is clicked. */
onCloseclick?: (event: google.maps.MouseEvent) => void;
onCloseclick?: (event: google.maps.MapMouseEvent) => void;
/** This event is fired when the panorama's pano id changes. The pano may change as the user navigates through the panorama or the position is manually set. Note that not all position changes trigger a pano_changed. */

@@ -12,0 +12,0 @@ onPanoChanged?: () => void;

@@ -29,5 +29,5 @@ /// <reference types="googlemaps" />

/** This event is fired when the user clicks on the map. An ApiMouseEvent with properties for the clicked location is returned unless a place icon was clicked, in which case an IconMouseEvent with a placeId is returned. IconMouseEvent and ApiMouseEvent are identical, except that IconMouseEvent has the placeId field. The event can always be treated as an ApiMouseEvent when the placeId is not important. The click event is not fired if a Marker or InfoWindow was clicked. */
onClick?: (e: google.maps.MouseEvent) => void;
onClick?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the user double-clicks on the map. Note that the click event will also fire, right before this one. */
onDblClick?: (e: google.maps.MouseEvent) => void;
onDblClick?: (e: google.maps.MapMouseEvent) => void;
/** This event is repeatedly fired while the user drags the map. */

@@ -42,9 +42,9 @@ onDrag?: () => void;

/** This event is fired whenever the user's mouse moves over the map container. */
onMouseMove?: (e: google.maps.MouseEvent) => void;
onMouseMove?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the user's mouse exits the map container. */
onMouseOut?: (e: google.maps.MouseEvent) => void;
onMouseOut?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the user's mouse enters the map container. */
onMouseOver?: (e: google.maps.MouseEvent) => void;
onMouseOver?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the DOM contextmenu event is fired on the map container. */
onRightClick?: (e: google.maps.MouseEvent) => void;
onRightClick?: (e: google.maps.MapMouseEvent) => void;
/** This event is fired when the visible tiles have finished loading. */

@@ -51,0 +51,0 @@ onTilesLoaded?: () => void;

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

"use strict";var t,e=require("react"),n=(t=require("invariant"))&&"object"==typeof t&&"default"in t?t.default:t,o=require("@googlemaps/js-api-loader"),r=require("@react-google-maps/marker-clusterer"),i=require("react-dom"),s=require("@react-google-maps/infobox");function a(t,e,n,o,r,i,s){try{var a=t[i](s),p=a.value}catch(t){return void n(t)}a.done?e(p):Promise.resolve(p).then(o,r)}function p(t){return function(){var e=this,n=arguments;return new Promise((function(o,r){var i=t.apply(e,n);function s(t){a(i,o,r,s,p,"next",t)}function p(t){a(i,o,r,s,p,"throw",t)}s(void 0)}))}}function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function l(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)e.indexOf(n=i[o])>=0||(r[n]=t[n]);return r}var d=e.createContext(null);function h(t){google.maps.event.removeListener(t)}function f(t){void 0===t&&(t=[]),t.forEach(h)}function g(t){var e=t.updaterMap,n=t.prevProps,o=t.nextProps,r=t.instance,i=function(t,e,n){return o=n,Object.keys(o).reduce((function(n,r){return i=n,"function"==typeof t[s=r]&&i.push(google.maps.event.addListener(e,o[r],t[s])),i;var i,s}),[]);var o}(o,r,t.eventMap);return function(t,e,n,o){var r,i={};r=t,Object.keys(r).forEach((function(t){return function(t,r){var s=n[r];s!==e[r]&&(i[r]=s,t(o,s))}(r[t],t)}))}(e,n,o,r),i}var m,v={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},y={extraMapTypes:function(t,e){e.forEach((function(e,n){t.mapTypes.set(String(n),e)}))},center:function(t,e){t.setCenter(e)},clickableIcons:function(t,e){t.setClickableIcons(e)},heading:function(t,e){t.setHeading(e)},mapTypeId:function(t,e){t.setMapTypeId(e)},options:function(t,e){t.setOptions(e)},streetView:function(t,e){t.setStreetView(e)},tilt:function(t,e){t.setTilt(e)},zoom:function(t,e){t.setZoom(e)}},M=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={map:null},e.registeredEvents=[],e.mapRef=null,e.getInstance=function(){return null===e.mapRef?null:new google.maps.Map(e.mapRef,e.props.options)},e.panTo=function(t){var n=e.getInstance();n&&n.panTo(t)},e.setMapCallback=function(){null!==e.state.map&&e.props.onLoad&&e.props.onLoad(e.state.map)},e.getRef=function(t){e.mapRef=t},e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=this.getInstance();this.registeredEvents=g({updaterMap:y,eventMap:v,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{map:t}}),this.setMapCallback)},o.componentDidUpdate=function(t){null!==this.state.map&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:y,eventMap:v,prevProps:t,nextProps:this.props,instance:this.state.map}))},o.componentWillUnmount=function(){null!==this.state.map&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),f(this.registeredEvents))},o.render=function(){return e.createElement("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName},e.createElement(d.Provider,{value:this.state.map},null!==this.state.map?this.props.children:e.createElement(e.Fragment,null)))},n}(e.PureComponent),x=(function(t){var e=function(t){var e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function a(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{a({},"")}catch(t){a=function(t,e,n){return t[e]=n}}function p(t,e,n,o){var r=Object.create((e&&e.prototype instanceof l?e:l).prototype),i=new w(o||[]);return r._invoke=function(t,e,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return{value:void 0,done:!0}}for(n.method=r,n.arg=i;;){var s=n.delegate;if(s){var a=x(s,n);if(a){if(a===u)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var p=c(t,e,n);if("normal"===p.type){if(o=n.done?"completed":"suspendedYield",p.arg===u)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o="completed",n.method="throw",n.arg=p.arg)}}}(t,n,i),r}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var u={};function l(){}function d(){}function h(){}var f={};f[r]=function(){return this};var g=Object.getPrototypeOf,m=g&&g(g(L([])));m&&m!==e&&n.call(m,r)&&(f=m);var v=h.prototype=l.prototype=Object.create(f);function y(t){["next","throw","return"].forEach((function(e){a(t,e,(function(t){return this._invoke(e,t)}))}))}function M(t,e){var o;this._invoke=function(r,i){function s(){return new e((function(o,s){!function o(r,i,s,a){var p=c(t[r],t,i);if("throw"!==p.type){var u=p.arg,l=u.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){o("next",t,s,a)}),(function(t){o("throw",t,s,a)})):e.resolve(l).then((function(t){u.value=t,s(u)}),(function(t){return o("throw",t,s,a)}))}a(p.arg)}(r,i,o,s)}))}return o=o?o.then(s,s):s()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var o=c(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,u;var r=o.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function L(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v.constructor=h,h.constructor=d,d.displayName=a(h,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,a(t,s,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},y(M.prototype),M.prototype[i]=function(){return this},t.AsyncIterator=M,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var s=new M(p(e,n,o,r),i);return t.isGeneratorFunction(n)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},y(v),a(v,s,"Generator"),v[r]=function(){return this},v.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var o=e.pop();if(o in t)return n.value=o,n.done=!1,n}return n.done=!0,n}},t.values=L,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(n,o){return s.type="throw",s.arg=t,e.next=n,o&&(e.method="next",e.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),p=n.call(i,"finallyLoc");if(a&&p){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!p)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=t,s.arg=e,i?(this.method="next",this.next=i.finallyLoc,u):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var r=o.arg;E(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:L(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}(m={exports:{}}),m.exports),C="undefined"!=typeof document,E=function(t){var e=t.url,n=t.id,o=t.nonce;return C?new Promise((function(t,r){var i=document.getElementById(n),s=window;if(i){var a=i.getAttribute("data-state");if(i.src===e&&"error"!==a){if("ready"===a)return t(n);var p=s.initMap,c=i.onerror;return s.initMap=function(){p&&p(),t(n)},void(i.onerror=function(t){c&&c(t),r(t)})}i.remove()}var u=document.createElement("script");u.type="text/javascript",u.src=e,u.id=n,u.async=!0,u.nonce=o,u.onerror=function(t){u.setAttribute("data-state","error"),r(t)},s.initMap=function(){u.setAttribute("data-state","ready"),t(n)},document.head.appendChild(u)})).catch((function(t){throw console.error("injectScript error: ",t),t})):Promise.reject(new Error("document is undefined"))},w=function(t){return!((!t.href||0!==t.href.indexOf("https://fonts.googleapis.com/css?family=Roboto"))&&("style"===t.tagName.toLowerCase()&&t.styleSheet&&t.styleSheet.cssText&&0===t.styleSheet.cssText.replace("\r\n","").indexOf(".gm-style")?(t.styleSheet.cssText="",0):"style"===t.tagName.toLowerCase()&&t.innerHTML&&0===t.innerHTML.replace("\r\n","").indexOf(".gm-style")?(t.innerHTML="",0):"style"!==t.tagName.toLowerCase()||t.styleSheet||t.innerHTML))},L=function(){var t=document.getElementsByTagName("head")[0],e=t.insertBefore.bind(t);t.insertBefore=function(n,o){w(n)||Reflect.apply(e,t,[n,o])};var n=t.appendChild.bind(t);t.appendChild=function(e){w(e)||Reflect.apply(n,t,[e])}};function P(t){var e=t.googleMapsApiKey,o=t.googleMapsClientId,r=t.version,i=void 0===r?"weekly":r,s=t.language,a=t.region,p=t.libraries,c=t.channel,u=t.mapIds,l=[];return e&&o||!e||!o||n(!1),e?l.push("key="+e):o&&l.push("client="+o),i&&l.push("v="+i),s&&l.push("language="+s),a&&l.push("region="+a),p&&p.length&&l.push("libraries="+p.sort().join(",")),c&&l.push("channel="+c),u&&u.length&&l.push("map_ids="+u.join(",")),l.push("callback=initMap"),"https://maps.googleapis.com/maps/api/js?"+l.join("&")}var b=!1;function k(){return e.createElement("div",null,"Loading...")}var S,D={id:"script-loader",version:"weekly"},U=function(t){function o(){var o;return(o=t.apply(this,arguments)||this).check=e.createRef(),o.state={loaded:!1},o.cleanupCallback=function(){delete window.google.maps,o.injectScript()},o.isCleaningUp=p(x.mark((function t(){return x.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){if(b){if(C)var e=window.setInterval((function(){b||(window.clearInterval(e),t())}),1)}else t()})));case 2:case"end":return t.stop()}}),t)}))),o.cleanup=function(){b=!0;var t=document.getElementById(o.props.id);t&&t.parentNode&&t.parentNode.removeChild(t),Array.prototype.slice.call(document.getElementsByTagName("script")).filter((function(t){return"string"==typeof t.src&&t.src.includes("maps.googleapis")})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)})),Array.prototype.slice.call(document.getElementsByTagName("link")).filter((function(t){return"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"===t.href})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)})),Array.prototype.slice.call(document.getElementsByTagName("style")).filter((function(t){return void 0!==t.innerText&&t.innerText.length>0&&t.innerText.includes(".gm-")})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))},o.injectScript=function(){o.props.preventGoogleFontsLoading&&L(),o.props.id||n(!1);var t={id:o.props.id,nonce:o.props.nonce,url:P(o.props)};E(t).then((function(){o.props.onLoad&&o.props.onLoad(),o.setState((function(){return{loaded:!0}}))})).catch((function(t){o.props.onError&&o.props.onError(t),console.error("\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key ("+(o.props.googleMapsApiKey||"-")+") or Client ID ("+(o.props.googleMapsClientId||"-")+") to <LoadScript />\n Otherwise it is a Network issue.\n ")}))},o}u(o,t);var r=o.prototype;return r.componentDidMount=function(){if(C){if(window.google&&window.google.maps&&!b)return void console.error("google api is already presented");this.isCleaningUp().then(this.injectScript).catch((function(t){console.error("Error at injecting script after cleaning up: ",t)}))}},r.componentDidUpdate=function(t){this.props.libraries!==t.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),C&&t.language!==this.props.language&&(this.cleanup(),this.setState((function(){return{loaded:!1}}),this.cleanupCallback))},r.componentWillUnmount=function(){var t=this;C&&(this.cleanup(),window.setTimeout((function(){t.check.current||(delete window.google,b=!1)}),1),this.props.onUnmount&&this.props.onUnmount())},r.render=function(){return e.createElement(e.Fragment,null,e.createElement("div",{ref:this.check}),this.state.loaded?this.props.children:this.props.loadingElement||e.createElement(k,null))},o}(e.PureComponent);function O(t){var o=t.id,r=void 0===o?D.id:o,i=t.version,s=void 0===i?D.version:i,a=t.nonce,p=t.googleMapsApiKey,c=t.googleMapsClientId,u=t.language,l=t.region,d=t.libraries,h=t.preventGoogleFontsLoading,f=t.channel,g=t.mapIds,m=e.useRef(!1),v=e.useState(!1),y=v[0],M=v[1],x=e.useState(void 0),w=x[0],b=x[1];e.useEffect((function(){return m.current=!0,function(){m.current=!1}}),[]),e.useEffect((function(){C&&h&&L()}),[h]),e.useEffect((function(){y&&(window.google||n(!1))}),[y]);var k=P({version:s,googleMapsApiKey:p,googleMapsClientId:c,language:u,region:l,libraries:d,channel:f,mapIds:g});e.useEffect((function(){function t(){m.current&&(M(!0),S=k)}C&&(window.google&&window.google.maps&&S===k?t():E({id:r,url:k,nonce:a}).then(t).catch((function(t){m.current&&b(t),console.warn("\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key ("+(p||"-")+") or Client ID ("+(c||"-")+")\n Otherwise it is a Network issue.\n "),console.error(t)})))}),[r,k,a]);var U=e.useRef();return e.useEffect((function(){U.current&&d!==U.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),U.current=d}),[d]),{isLoaded:y,loadError:w,url:k}}U.defaultProps=D;var T=e.createElement(k,null);function R(t){var n=t.loadingElement,o=t.onLoad,r=t.onError,i=t.onUnmount,s=t.children,a=O(l(t,["loadingElement","onLoad","onError","onUnmount","children"])),p=a.isLoaded,c=a.loadError;return e.useEffect((function(){p&&"function"==typeof o&&o()}),[p,o]),e.useEffect((function(){c&&"function"==typeof r&&r(c)}),[c,r]),e.useEffect((function(){return function(){i&&i()}}),[i]),p?s:n||T}var _=e.memo(R),I={},V={options:function(t,e){t.setOptions(e)}},B=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).state={trafficLayer:null},e.setTrafficLayerCallback=function(){null!==e.state.trafficLayer&&e.props.onLoad&&e.props.onLoad(e.state.trafficLayer)},e.registeredEvents=[],e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.TrafficLayer(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:V,eventMap:I,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{trafficLayer:t}}),this.setTrafficLayerCallback)},n.componentDidUpdate=function(t){null!==this.state.trafficLayer&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:V,eventMap:I,prevProps:t,nextProps:this.props,instance:this.state.trafficLayer}))},n.componentWillUnmount=function(){null!==this.state.trafficLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),f(this.registeredEvents),this.state.trafficLayer.setMap(null))},n.render=function(){return null},e}(e.PureComponent);B.contextType=d;var W=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).state={bicyclingLayer:null},e.setBicyclingLayerCallback=function(){null!==e.state.bicyclingLayer&&(e.state.bicyclingLayer.setMap(e.context),e.props.onLoad&&e.props.onLoad(e.state.bicyclingLayer))},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.BicyclingLayer;this.setState((function(){return{bicyclingLayer:t}}),this.setBicyclingLayerCallback)},n.componentWillUnmount=function(){null!==this.state.bicyclingLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))},n.render=function(){return null},e}(e.PureComponent);W.contextType=d;var j=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).state={transitLayer:null},e.setTransitLayerCallback=function(){null!==e.state.transitLayer&&(e.state.transitLayer.setMap(e.context),e.props.onLoad&&e.props.onLoad(e.state.transitLayer))},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.TransitLayer;this.setState((function(){return{transitLayer:t}}),this.setTransitLayerCallback)},n.componentWillUnmount=function(){null!==this.state.transitLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))},n.render=function(){return null},e}(e.PureComponent);j.contextType=d;var A={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},N={drawingMode:function(t,e){t.setDrawingMode(e)},options:function(t,e){t.setOptions(e)}},z=function(t){function o(e){var o;return(o=t.call(this,e)||this).registeredEvents=[],o.state={drawingManager:null},o.setDrawingManagerCallback=function(){null!==o.state.drawingManager&&o.props.onLoad&&o.props.onLoad(o.state.drawingManager)},google.maps.drawing||n(!1),o}u(o,t);var r=o.prototype;return r.componentDidMount=function(){var t=new google.maps.drawing.DrawingManager(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:N,eventMap:A,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{drawingManager:t}}),this.setDrawingManagerCallback)},r.componentDidUpdate=function(t){null!==this.state.drawingManager&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:N,eventMap:A,prevProps:t,nextProps:this.props,instance:this.state.drawingManager}))},r.componentWillUnmount=function(){null!==this.state.drawingManager&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),f(this.registeredEvents),this.state.drawingManager.setMap(null))},r.render=function(){return e.createElement(e.Fragment,null)},o}(e.PureComponent);z.contextType=d;var G={onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDraggableChanged:"draggable_changed",onDragStart:"dragstart",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPositionChanged:"position_changed",onRightClick:"rightclick",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},F={animation:function(t,e){t.setAnimation(e)},clickable:function(t,e){t.setClickable(e)},cursor:function(t,e){t.setCursor(e)},draggable:function(t,e){t.setDraggable(e)},icon:function(t,e){t.setIcon(e)},label:function(t,e){t.setLabel(e)},map:function(t,e){t.setMap(e)},opacity:function(t,e){t.setOpacity(e)},options:function(t,e){t.setOptions(e)},position:function(t,e){t.setPosition(e)},shape:function(t,e){t.setShape(e)},title:function(t,e){t.setTitle(e)},visible:function(t,e){t.setVisible(e)},zIndex:function(t,e){t.setZIndex(e)}},Z=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={marker:null},e.setMarkerCallback=function(){null!==e.state.marker&&e.props.onLoad&&e.props.onLoad(e.state.marker)},e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=c({},this.props.options||{},this.props.clusterer?{}:{map:this.context},{position:this.props.position}),e=new google.maps.Marker(t);this.props.clusterer?this.props.clusterer.addMarker(e,!!this.props.noClustererRedraw):e.setMap(this.context),this.registeredEvents=g({updaterMap:F,eventMap:G,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{marker:e}}),this.setMarkerCallback)},o.componentDidUpdate=function(t){null!==this.state.marker&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:F,eventMap:G,prevProps:t,nextProps:this.props,instance:this.state.marker}))},o.componentWillUnmount=function(){null!==this.state.marker&&(this.props.onUnmount&&this.props.onUnmount(this.state.marker),f(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.state.marker,!!this.props.noClustererRedraw):this.state.marker&&this.state.marker.setMap(null))},o.render=function(){var t=this,n=null;return this.props.children&&(n=e.Children.map(this.props.children,(function(n){return e.isValidElement(n)?e.cloneElement(n,{anchor:t.state.marker}):n}))),n||null},n}(e.PureComponent);Z.contextType=d;var H={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},K={averageCenter:function(t,e){t.setAverageCenter(e)},batchSizeIE:function(t,e){t.setBatchSizeIE(e)},calculator:function(t,e){t.setCalculator(e)},clusterClass:function(t,e){t.setClusterClass(e)},enableRetinaIcons:function(t,e){t.setEnableRetinaIcons(e)},gridSize:function(t,e){t.setGridSize(e)},ignoreHidden:function(t,e){t.setIgnoreHidden(e)},imageExtension:function(t,e){t.setImageExtension(e)},imagePath:function(t,e){t.setImagePath(e)},imageSizes:function(t,e){t.setImageSizes(e)},maxZoom:function(t,e){t.setMaxZoom(e)},minimumClusterSize:function(t,e){t.setMinimumClusterSize(e)},styles:function(t,e){t.setStyles(e)},title:function(t,e){t.setTitle(e)},zoomOnClick:function(t,e){t.setZoomOnClick(e)}},Y=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={markerClusterer:null},e.setClustererCallback=function(){null!==e.state.markerClusterer&&e.props.onLoad&&e.props.onLoad(e.state.markerClusterer)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){if(this.context){var t=new r.Clusterer(this.context,[],this.props.options);this.registeredEvents=g({updaterMap:K,eventMap:H,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{markerClusterer:t}}),this.setClustererCallback)}},n.componentDidUpdate=function(t){this.state.markerClusterer&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:K,eventMap:H,prevProps:t,nextProps:this.props,instance:this.state.markerClusterer}))},n.componentWillUnmount=function(){null!==this.state.markerClusterer&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),f(this.registeredEvents),this.state.markerClusterer.setMap(null))},n.render=function(){return null!==this.state.markerClusterer?this.props.children(this.state.markerClusterer):null},e}(e.PureComponent);Y.contextType=d;var q={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},J={options:function(t,e){t.setOptions(e)},position:function(t,e){e instanceof google.maps.LatLng?t.setPosition(e):t.setPosition(new google.maps.LatLng(e.lat,e.lng))},visible:function(t,e){t.setVisible(e)},zIndex:function(t,e){t.setZIndex(e)}},Q=function(t){function o(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.containerElement=null,e.state={infoBox:null},e.open=function(t,o){o?t.open(e.context,o):t.getPosition()?t.open(e.context):n(!1)},e.setInfoBoxCallback=function(){var t=e.props,n=t.anchor,o=t.onLoad,r=e.state.infoBox;null!==r&&null!==e.containerElement&&(r.setContent(e.containerElement),e.open(r,n),o&&o(r))},e}u(o,t);var r=o.prototype;return r.componentDidMount=function(){var t,e=this.props.options||{},n=e.position,o=l(e,["position"]);!n||n instanceof google.maps.LatLng||(t=new google.maps.LatLng(n.lat,n.lng));var r=new s.InfoBox(c({},o,t?{position:t}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=g({updaterMap:J,eventMap:q,prevProps:{},nextProps:this.props,instance:r}),this.setState({infoBox:r},this.setInfoBoxCallback)},r.componentDidUpdate=function(t){var e=this.state.infoBox;null!==e&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:J,eventMap:q,prevProps:t,nextProps:this.props,instance:e}))},r.componentWillUnmount=function(){var t=this.props.onUnmount,e=this.state.infoBox;null!==e&&(t&&t(e),f(this.registeredEvents),e.close())},r.render=function(){return this.containerElement?i.createPortal(e.Children.only(this.props.children),this.containerElement):null},o}(e.PureComponent);Q.contextType=d;var X={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},$={options:function(t,e){t.setOptions(e)},position:function(t,e){t.setPosition(e)},zIndex:function(t,e){t.setZIndex(e)}},tt=function(t){function o(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.containerElement=null,e.state={infoWindow:null},e.open=function(t,o){o?t.open(e.context,o):t.getPosition()?t.open(e.context):n(!1)},e.setInfoWindowCallback=function(){null!==e.state.infoWindow&&null!==e.containerElement&&(e.state.infoWindow.setContent(e.containerElement),e.open(e.state.infoWindow,e.props.anchor),e.props.onLoad&&e.props.onLoad(e.state.infoWindow))},e}u(o,t);var r=o.prototype;return r.componentDidMount=function(){var t=new google.maps.InfoWindow(c({},this.props.options||{}));this.containerElement=document.createElement("div"),this.registeredEvents=g({updaterMap:$,eventMap:X,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{infoWindow:t}}),this.setInfoWindowCallback)},r.componentDidUpdate=function(t){null!==this.state.infoWindow&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:$,eventMap:X,prevProps:t,nextProps:this.props,instance:this.state.infoWindow}))},r.componentWillUnmount=function(){null!==this.state.infoWindow&&(f(this.registeredEvents),this.state.infoWindow.close())},r.render=function(){return this.containerElement?i.createPortal(e.Children.only(this.props.children),this.containerElement):e.createElement(e.Fragment,null)},o}(e.PureComponent);tt.contextType=d;var et={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},nt={draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},path:function(t,e){t.setPath(e)},visible:function(t,e){t.setVisible(e)}},ot=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={polyline:null},e.setPolylineCallback=function(){null!==e.state.polyline&&e.props.onLoad&&e.props.onLoad(e.state.polyline)},e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=new google.maps.Polyline(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:nt,eventMap:et,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{polyline:t}}),this.setPolylineCallback)},o.componentDidUpdate=function(t){null!==this.state.polyline&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:nt,eventMap:et,prevProps:t,nextProps:this.props,instance:this.state.polyline}))},o.componentWillUnmount=function(){null!==this.state.polyline&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),f(this.registeredEvents),this.state.polyline.setMap(null))},o.render=function(){return e.createElement(e.Fragment,null)},n}(e.PureComponent);ot.contextType=d;var rt={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},it={draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},path:function(t,e){t.setPath(e)},paths:function(t,e){t.setPaths(e)},visible:function(t,e){t.setVisible(e)}},st=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={polygon:null},e.setPolygonCallback=function(){null!==e.state.polygon&&e.props.onLoad&&e.props.onLoad(e.state.polygon)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.Polygon(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:it,eventMap:rt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{polygon:t}}),this.setPolygonCallback)},n.componentDidUpdate=function(t){null!==this.state.polygon&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:it,eventMap:rt,prevProps:t,nextProps:this.props,instance:this.state.polygon}))},n.componentWillUnmount=function(){null!==this.state.polygon&&(this.props.onUnmount&&this.props.onUnmount(this.state.polygon),f(this.registeredEvents),this.state.polygon&&this.state.polygon.setMap(null))},n.render=function(){return null},e}(e.PureComponent);st.contextType=d;var at={onBoundsChanged:"bounds_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},pt={bounds:function(t,e){t.setBounds(e)},draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},visible:function(t,e){t.setVisible(e)}},ct=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={rectangle:null},e.setRectangleCallback=function(){null!==e.state.rectangle&&e.props.onLoad&&e.props.onLoad(e.state.rectangle)},e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=new google.maps.Rectangle(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:pt,eventMap:at,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{rectangle:t}}),this.setRectangleCallback)},o.componentDidUpdate=function(t){null!==this.state.rectangle&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:pt,eventMap:at,prevProps:t,nextProps:this.props,instance:this.state.rectangle}))},o.componentWillUnmount=function(){null!==this.state.rectangle&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),f(this.registeredEvents),this.state.rectangle.setMap(null))},o.render=function(){return e.createElement(e.Fragment,null)},n}(e.PureComponent);ct.contextType=d;var ut={onCenterChanged:"center_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRadiusChanged:"radius_changed",onRightClick:"rightclick"},lt={center:function(t,e){t.setCenter(e)},draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},radius:function(t,e){t.setRadius(e)},visible:function(t,e){t.setVisible(e)}},dt=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={circle:null},e.setCircleCallback=function(){null!==e.state.circle&&e.props.onLoad&&e.props.onLoad(e.state.circle)},e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=new google.maps.Circle(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:lt,eventMap:ut,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{circle:t}}),this.setCircleCallback)},o.componentDidUpdate=function(t){null!==this.state.circle&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:lt,eventMap:ut,prevProps:t,nextProps:this.props,instance:this.state.circle}))},o.componentWillUnmount=function(){null!==this.state.circle&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),f(this.registeredEvents),this.state.circle&&this.state.circle.setMap(null))},o.render=function(){return e.createElement(e.Fragment,null)},n}(e.PureComponent);dt.contextType=d;var ht={onAddFeature:"addfeature",onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onRightClick:"rightclick",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},ft={add:function(t,e){t.add(e)},addgeojson:function(t,e,n){t.addGeoJson(e,n)},contains:function(t,e){t.contains(e)},foreach:function(t,e){t.forEach(e)},loadgeojson:function(t,e,n,o){t.loadGeoJson(e,n,o)},overridestyle:function(t,e,n){t.overrideStyle(e,n)},remove:function(t,e){t.remove(e)},revertstyle:function(t,e){t.revertStyle(e)},controlposition:function(t,e){t.setControlPosition(e)},controls:function(t,e){t.setControls(e)},drawingmode:function(t,e){t.setDrawingMode(e)},map:function(t,e){t.setMap(e)},style:function(t,e){t.setStyle(e)},togeojson:function(t,e){t.toGeoJson(e)}},gt=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={data:null},e.setDataCallback=function(){null!==e.state.data&&e.props.onLoad&&e.props.onLoad(e.state.data)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.Data(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:ft,eventMap:ht,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{data:t}}),this.setDataCallback)},n.componentDidUpdate=function(t){null!==this.state.data&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:ft,eventMap:ht,prevProps:t,nextProps:this.props,instance:this.state.data}))},n.componentWillUnmount=function(){null!==this.state.data&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),f(this.registeredEvents),this.state.data&&this.state.data.setMap(null))},n.render=function(){return null},e}(e.PureComponent);gt.contextType=d;var mt={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},vt={options:function(t,e){t.setOptions(e)},url:function(t,e){t.setUrl(e)},zIndex:function(t,e){t.setZIndex(e)}},yt=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={kmlLayer:null},e.setKmlLayerCallback=function(){null!==e.state.kmlLayer&&e.props.onLoad&&e.props.onLoad(e.state.kmlLayer)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.KmlLayer(c({},this.props.options,{map:this.context}));this.registeredEvents=g({updaterMap:vt,eventMap:mt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{kmlLayer:t}}),this.setKmlLayerCallback)},n.componentDidUpdate=function(t){null!==this.state.kmlLayer&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:vt,eventMap:mt,prevProps:t,nextProps:this.props,instance:this.state.kmlLayer}))},n.componentWillUnmount=function(){null!==this.state.kmlLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),f(this.registeredEvents),this.state.kmlLayer.setMap(null))},n.render=function(){return null},e}(e.PureComponent);yt.contextType=d;var Mt=function(t,e){return new e(t.lat,t.lng)},xt=function(t,e){return new e(new google.maps.LatLng(t.ne.lat,t.ne.lng),new google.maps.LatLng(t.sw.lat,t.sw.lng))},Ct=function(t,e,n){return t instanceof e?t:n(t,e)};function Et(t){return t?(t instanceof google.maps.LatLng?t:new google.maps.LatLng(t.lat,t.lng))+"":""}function wt(t){return t?(t instanceof google.maps.LatLngBounds?t:new google.maps.LatLngBounds(new google.maps.LatLng(t.south,t.east),new google.maps.LatLng(t.north,t.west)))+"":""}var Lt=function(t){function o(o){var r;(r=t.call(this,o)||this).state={paneEl:null,containerStyle:{position:"absolute"}},r.updatePane=function(){var t=r.props.mapPaneName,e=r.overlayView.getPanes();t||n(!1),r.setState(e?{paneEl:e[t]}:{paneEl:null})},r.onAdd=function(){r.updatePane(),null==r.props.onLoad||r.props.onLoad(r.overlayView)},r.onPositionElement=function(){var t,e,n,o,i,s,a,p,u=(i=r.overlayView.getProjection(),s=c({x:0,y:0},r.containerRef.current?(t=r.containerRef.current,"function"==typeof(e=r.props.getPixelPositionOffset)?e(t.offsetWidth,t.offsetHeight):{}):{}),p=r.props.position,void 0!==(a=r.props.bounds)?function(t,e,n){var o=t&&t.fromLatLngToDivPixel(n.getNorthEast()),r=t&&t.fromLatLngToDivPixel(n.getSouthWest());return o&&r?{left:r.x+e.x+"px",top:o.y+e.y+"px",width:o.x-r.x-e.x+"px",height:r.y-o.y-e.y+"px"}:{left:"-9999px",top:"-9999px"}}(i,s,Ct(a,google.maps.LatLngBounds,xt)):function(t,e,n){var o=t&&t.fromLatLngToDivPixel(n);return o?{left:o.x+e.x+"px",top:o.y+e.y+"px"}:{left:"-9999px",top:"-9999px"}}(i,s,Ct(p,google.maps.LatLng,Mt))),l=r.state.containerStyle;((n=u).left!==(o={left:l.left,top:l.top,width:l.width,height:l.height}).left||n.top!==o.top||n.width!==o.height||n.height!==o.height)&&r.setState({containerStyle:c({},u,{position:"absolute"})})},r.draw=function(){r.onPositionElement()},r.onRemove=function(){r.setState((function(){return{paneEl:null}})),null==r.props.onUnmount||r.props.onUnmount(r.overlayView)},r.containerRef=e.createRef();var i=new google.maps.OverlayView;return i.onAdd=r.onAdd,i.draw=r.draw,i.onRemove=r.onRemove,r.overlayView=i,r}u(o,t);var r=o.prototype;return r.componentDidMount=function(){this.overlayView.setMap(this.context)},r.componentDidUpdate=function(t){var e=Et(t.position),n=Et(this.props.position),o=wt(t.bounds),r=wt(this.props.bounds);e===n&&o===r||this.overlayView.draw(),t.mapPaneName!==this.props.mapPaneName&&this.updatePane()},r.componentWillUnmount=function(){this.overlayView.setMap(null)},r.render=function(){var t=this.state.paneEl;return t?i.createPortal(e.createElement("div",{ref:this.containerRef,style:this.state.containerStyle},e.Children.only(this.props.children)),t):null},o}(e.PureComponent);Lt.FLOAT_PANE="floatPane",Lt.MAP_PANE="mapPane",Lt.MARKER_LAYER="markerLayer",Lt.OVERLAY_LAYER="overlayLayer",Lt.OVERLAY_MOUSE_TARGET="overlayMouseTarget",Lt.contextType=d;var Pt={onDblClick:"dblclick",onClick:"click"},bt={opacity:function(t,e){t.setOpacity(e)}},kt=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={groundOverlay:null},e.setGroundOverlayCallback=function(){null!==e.state.groundOverlay&&e.props.onLoad&&e.props.onLoad(e.state.groundOverlay)},e}u(e,t);var o=e.prototype;return o.componentDidMount=function(){this.props.url||this.props.bounds||n(!1);var t=new google.maps.GroundOverlay(this.props.url,this.props.bounds,c({},this.props.options,{map:this.context}));this.registeredEvents=g({updaterMap:bt,eventMap:Pt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{groundOverlay:t}}),this.setGroundOverlayCallback)},o.componentDidUpdate=function(t){null!==this.state.groundOverlay&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:bt,eventMap:Pt,prevProps:t,nextProps:this.props,instance:this.state.groundOverlay}))},o.componentWillUnmount=function(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))},o.render=function(){return null},e}(e.PureComponent);kt.defaultProps={onLoad:function(){}},kt.contextType=d;var St={},Dt={data:function(t,e){t.setData(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)}},Ut=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={heatmapLayer:null},e.setHeatmapLayerCallback=function(){null!==e.state.heatmapLayer&&e.props.onLoad&&e.props.onLoad(e.state.heatmapLayer)},e}u(e,t);var o=e.prototype;return o.componentDidMount=function(){google.maps.visualization||n(!1),this.props.data||n(!1);var t=new google.maps.visualization.HeatmapLayer(c({},this.props.options||{},{data:this.props.data,map:this.context}));this.registeredEvents=g({updaterMap:Dt,eventMap:St,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{heatmapLayer:t}}),this.setHeatmapLayerCallback)},o.componentDidUpdate=function(t){f(this.registeredEvents),this.registeredEvents=g({updaterMap:Dt,eventMap:St,prevProps:t,nextProps:this.props,instance:this.state.heatmapLayer})},o.componentWillUnmount=function(){null!==this.state.heatmapLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),f(this.registeredEvents),this.state.heatmapLayer.setMap(null))},o.render=function(){return null},e}(e.PureComponent);Ut.contextType=d;var Ot={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},Tt={register:function(t,e,n){t.registerPanoProvider(e,n)},links:function(t,e){t.setLinks(e)},motionTracking:function(t,e){t.setMotionTracking(e)},options:function(t,e){t.setOptions(e)},pano:function(t,e){t.setPano(e)},position:function(t,e){t.setPosition(e)},pov:function(t,e){t.setPov(e)},visible:function(t,e){t.setVisible(e)},zoom:function(t,e){t.setZoom(e)}},Rt=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={streetViewPanorama:null},e.setStreetViewPanoramaCallback=function(){null!==e.state.streetViewPanorama&&e.props.onLoad&&e.props.onLoad(e.state.streetViewPanorama)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=this.context.getStreetView();this.registeredEvents=g({updaterMap:Tt,eventMap:Ot,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{streetViewPanorama:t}}),this.setStreetViewPanoramaCallback)},n.componentDidUpdate=function(t){null!==this.state.streetViewPanorama&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:Tt,eventMap:Ot,prevProps:t,nextProps:this.props,instance:this.state.streetViewPanorama}))},n.componentWillUnmount=function(){null!==this.state.streetViewPanorama&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),f(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))},n.render=function(){return null},e}(e.PureComponent);Rt.contextType=d;var _t=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).state={streetViewService:null},e.setStreetViewServiceCallback=function(){null!==e.state.streetViewService&&e.props.onLoad&&e.props.onLoad(e.state.streetViewService)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.StreetViewService;this.setState((function(){return{streetViewService:t}}),this.setStreetViewServiceCallback)},n.componentWillUnmount=function(){null!==this.state.streetViewService&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)},n.render=function(){return null},e}(e.PureComponent);_t.contextType=d;var It=function(t){function o(){var e;return(e=t.apply(this,arguments)||this).state={directionsService:null},e.setDirectionsServiceCallback=function(){null!==e.state.directionsService&&e.props.onLoad&&e.props.onLoad(e.state.directionsService)},e}u(o,t);var r=o.prototype;return r.componentDidMount=function(){this.props.options||n(!1);var t=new google.maps.DirectionsService;this.setState((function(){return{directionsService:t}}),this.setDirectionsServiceCallback)},r.componentDidUpdate=function(){null!==this.state.directionsService&&this.state.directionsService.route(this.props.options,this.props.callback)},r.componentWillUnmount=function(){null!==this.state.directionsService&&this.props.onUnmount&&this.props.onUnmount(this.state.directionsService)},r.render=function(){return e.createElement(e.Fragment,null)},o}(e.PureComponent),Vt={onDirectionsChanged:"directions_changed"},Bt={directions:function(t,e){t.setDirections(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},panel:function(t,e){t.setPanel(e)},routeIndex:function(t,e){t.setRouteIndex(e)}},Wt=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={directionsRenderer:null},e.setDirectionsRendererCallback=function(){null!==e.state.directionsRenderer&&(e.state.directionsRenderer.setMap(e.context),e.props.onLoad&&e.props.onLoad(e.state.directionsRenderer))},e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=g({updaterMap:Bt,eventMap:Vt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{directionsRenderer:t}}),this.setDirectionsRendererCallback)},o.componentDidUpdate=function(t){null!==this.state.directionsRenderer&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:Bt,eventMap:Vt,prevProps:t,nextProps:this.props,instance:this.state.directionsRenderer}))},o.componentWillUnmount=function(){null!==this.state.directionsRenderer&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),f(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))},o.render=function(){return e.createElement(e.Fragment,null)},n}(e.PureComponent);Wt.contextType=d;var jt=function(t){function o(){var e;return(e=t.apply(this,arguments)||this).state={distanceMatrixService:null},e.setDistanceMatrixServiceCallback=function(){null!==e.state.distanceMatrixService&&e.props.onLoad&&e.props.onLoad(e.state.distanceMatrixService)},e}u(o,t);var r=o.prototype;return r.componentDidMount=function(){this.props.options||n(!1);var t=new google.maps.DistanceMatrixService;this.setState((function(){return{distanceMatrixService:t}}),this.setDistanceMatrixServiceCallback)},r.componentDidUpdate=function(){null!==this.state.distanceMatrixService&&this.state.distanceMatrixService.getDistanceMatrix(this.props.options,this.props.callback)},r.componentWillUnmount=function(){null!==this.state.distanceMatrixService&&this.props.onUnmount&&this.props.onUnmount(this.state.distanceMatrixService)},r.render=function(){return e.createElement(e.Fragment,null)},o}(e.PureComponent),At={onPlacesChanged:"places_changed"},Nt={bounds:function(t,e){t.setBounds(e)}},zt=function(t){function o(){var n;return(n=t.apply(this,arguments)||this).registeredEvents=[],n.containerElement=e.createRef(),n.state={searchBox:null},n.setSearchBoxCallback=function(){null!==n.state.searchBox&&n.props.onLoad&&n.props.onLoad(n.state.searchBox)},n}u(o,t);var r=o.prototype;return r.componentDidMount=function(){if(google.maps.places||n(!1),null!==this.containerElement&&null!==this.containerElement.current){var t=this.containerElement.current.querySelector("input");if(null!==t){var e=new google.maps.places.SearchBox(t,this.props.options);this.registeredEvents=g({updaterMap:Nt,eventMap:At,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{searchBox:e}}),this.setSearchBoxCallback)}}},r.componentDidUpdate=function(t){null!==this.state.searchBox&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:Nt,eventMap:At,prevProps:t,nextProps:this.props,instance:this.state.searchBox}))},r.componentWillUnmount=function(){null!==this.state.searchBox&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),f(this.registeredEvents))},r.render=function(){return e.createElement("div",{ref:this.containerElement},e.Children.only(this.props.children))},o}(e.PureComponent);zt.contextType=d;var Gt={onPlaceChanged:"place_changed"},Ft={bounds:function(t,e){t.setBounds(e)},restrictions:function(t,e){t.setComponentRestrictions(e)},fields:function(t,e){t.setFields(e)},options:function(t,e){t.setOptions(e)},types:function(t,e){t.setTypes(e)}},Zt=function(t){function o(){var n;return(n=t.apply(this,arguments)||this).registeredEvents=[],n.containerElement=e.createRef(),n.state={autocomplete:null},n.setAutocompleteCallback=function(){null!==n.state.autocomplete&&n.props.onLoad&&n.props.onLoad(n.state.autocomplete)},n}u(o,t);var r=o.prototype;return r.componentDidMount=function(){google.maps.places||n(!1);var t=this.containerElement.current.querySelector("input");if(t){var e=new google.maps.places.Autocomplete(t,this.props.options);this.registeredEvents=g({updaterMap:Ft,eventMap:Gt,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{autocomplete:e}}),this.setAutocompleteCallback)}},r.componentDidUpdate=function(t){f(this.registeredEvents),this.registeredEvents=g({updaterMap:Ft,eventMap:Gt,prevProps:t,nextProps:this.props,instance:this.state.autocomplete})},r.componentWillUnmount=function(){null!==this.state.autocomplete&&f(this.registeredEvents)},r.render=function(){return e.createElement("div",{ref:this.containerElement,className:this.props.className||""},e.Children.only(this.props.children))},o}(e.PureComponent);Zt.contextType=d,exports.Autocomplete=Zt,exports.BicyclingLayer=W,exports.Circle=dt,exports.Data=gt,exports.DirectionsRenderer=Wt,exports.DirectionsService=It,exports.DistanceMatrixService=jt,exports.DrawingManager=z,exports.GoogleMap=M,exports.GroundOverlay=kt,exports.HeatmapLayer=Ut,exports.InfoBox=Q,exports.InfoWindow=tt,exports.KmlLayer=yt,exports.LoadScript=U,exports.LoadScriptNext=_,exports.MapContext=d,exports.Marker=Z,exports.MarkerClusterer=Y,exports.OverlayView=Lt,exports.Polygon=st,exports.Polyline=ot,exports.Rectangle=ct,exports.StandaloneSearchBox=zt,exports.StreetViewPanorama=Rt,exports.StreetViewService=_t,exports.TrafficLayer=B,exports.TransitLayer=j,exports.useGoogleMap=function(){e.useContext||n(!1);var t=e.useContext(d);return t||n(!1),t},exports.useJsApiLoader=function(t){var n=t.id,r=void 0===n?D.id:n,i=t.version,s=void 0===i?D.version:i,a=t.nonce,p=t.googleMapsApiKey,c=t.language,u=t.region,l=t.libraries,d=t.preventGoogleFontsLoading,h=t.mapIds,f=e.useState(!1),g=f[0],m=f[1],v=e.useState(void 0),y=v[0],M=v[1],x=e.useMemo((function(){return new o.Loader({id:r,apiKey:p,version:s,libraries:l,language:c,region:u,mapIds:h,nonce:a})}),[r,p,s,l,c,u,h,a]);e.useEffect((function(){g||x.load().then((function(){m(!0)})).catch((function(t){M(t)}))}),[]),e.useEffect((function(){C&&d&&L()}),[d]);var E=e.useRef();return e.useEffect((function(){E.current&&l!==E.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),E.current=l}),[l]),{isLoaded:g,loadError:y}},exports.useLoadScript=O;
"use strict";var t,e=require("react"),n=(t=require("invariant"))&&"object"==typeof t&&"default"in t?t.default:t,o=require("@googlemaps/js-api-loader"),r=require("@react-google-maps/marker-clusterer"),i=require("react-dom"),s=require("@react-google-maps/infobox");function a(t,e,n,o,r,i,s){try{var a=t[i](s),p=a.value}catch(t){return void n(t)}a.done?e(p):Promise.resolve(p).then(o,r)}function p(t){return function(){var e=this,n=arguments;return new Promise((function(o,r){var i=t.apply(e,n);function s(t){a(i,o,r,s,p,"next",t)}function p(t){a(i,o,r,s,p,"throw",t)}s(void 0)}))}}function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function l(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)e.indexOf(n=i[o])>=0||(r[n]=t[n]);return r}var d=e.createContext(null);function h(t){google.maps.event.removeListener(t)}function f(t){void 0===t&&(t=[]),t.forEach(h)}function g(t){var e=t.updaterMap,n=t.prevProps,o=t.nextProps,r=t.instance,i=function(t,e,n){return o=n,Object.keys(o).reduce((function(n,r){return i=n,"function"==typeof t[s=r]&&i.push(google.maps.event.addListener(e,o[r],t[s])),i;var i,s}),[]);var o}(o,r,t.eventMap);return function(t,e,n,o){var r,i={};r=t,Object.keys(r).forEach((function(t){return function(t,r){var s=n[r];s!==e[r]&&(i[r]=s,t(o,s))}(r[t],t)}))}(e,n,o,r),i}var m,v={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},y={extraMapTypes:function(t,e){e.forEach((function(e,n){t.mapTypes.set(String(n),e)}))},center:function(t,e){t.setCenter(e)},clickableIcons:function(t,e){t.setClickableIcons(e)},heading:function(t,e){t.setHeading(e)},mapTypeId:function(t,e){t.setMapTypeId(e)},options:function(t,e){t.setOptions(e)},streetView:function(t,e){t.setStreetView(e)},tilt:function(t,e){t.setTilt(e)},zoom:function(t,e){t.setZoom(e)}},M=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={map:null},e.registeredEvents=[],e.mapRef=null,e.getInstance=function(){return null===e.mapRef?null:new google.maps.Map(e.mapRef,e.props.options)},e.panTo=function(t){var n=e.getInstance();n&&n.panTo(t)},e.setMapCallback=function(){null!==e.state.map&&e.props.onLoad&&e.props.onLoad(e.state.map)},e.getRef=function(t){e.mapRef=t},e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=this.getInstance();this.registeredEvents=g({updaterMap:y,eventMap:v,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{map:t}}),this.setMapCallback)},o.componentDidUpdate=function(t){null!==this.state.map&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:y,eventMap:v,prevProps:t,nextProps:this.props,instance:this.state.map}))},o.componentWillUnmount=function(){null!==this.state.map&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),f(this.registeredEvents))},o.render=function(){return e.createElement("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName},e.createElement(d.Provider,{value:this.state.map},null!==this.state.map?this.props.children:e.createElement(e.Fragment,null)))},n}(e.PureComponent),x=(function(t){var e=function(t){var e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function a(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{a({},"")}catch(t){a=function(t,e,n){return t[e]=n}}function p(t,e,n,o){var r=Object.create((e&&e.prototype instanceof l?e:l).prototype),i=new w(o||[]);return r._invoke=function(t,e,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return{value:void 0,done:!0}}for(n.method=r,n.arg=i;;){var s=n.delegate;if(s){var a=x(s,n);if(a){if(a===u)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var p=c(t,e,n);if("normal"===p.type){if(o=n.done?"completed":"suspendedYield",p.arg===u)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o="completed",n.method="throw",n.arg=p.arg)}}}(t,n,i),r}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var u={};function l(){}function d(){}function h(){}var f={};f[r]=function(){return this};var g=Object.getPrototypeOf,m=g&&g(g(L([])));m&&m!==e&&n.call(m,r)&&(f=m);var v=h.prototype=l.prototype=Object.create(f);function y(t){["next","throw","return"].forEach((function(e){a(t,e,(function(t){return this._invoke(e,t)}))}))}function M(t,e){var o;this._invoke=function(r,i){function s(){return new e((function(o,s){!function o(r,i,s,a){var p=c(t[r],t,i);if("throw"!==p.type){var u=p.arg,l=u.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){o("next",t,s,a)}),(function(t){o("throw",t,s,a)})):e.resolve(l).then((function(t){u.value=t,s(u)}),(function(t){return o("throw",t,s,a)}))}a(p.arg)}(r,i,o,s)}))}return o=o?o.then(s,s):s()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var o=c(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,u;var r=o.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function L(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v.constructor=h,h.constructor=d,d.displayName=a(h,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,a(t,s,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},y(M.prototype),M.prototype[i]=function(){return this},t.AsyncIterator=M,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var s=new M(p(e,n,o,r),i);return t.isGeneratorFunction(n)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},y(v),a(v,s,"Generator"),v[r]=function(){return this},v.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var o=e.pop();if(o in t)return n.value=o,n.done=!1,n}return n.done=!0,n}},t.values=L,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(n,o){return s.type="throw",s.arg=t,e.next=n,o&&(e.method="next",e.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),p=n.call(i,"finallyLoc");if(a&&p){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!p)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=t,s.arg=e,i?(this.method="next",this.next=i.finallyLoc,u):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var r=o.arg;E(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:L(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}(m={exports:{}}),m.exports),C="undefined"!=typeof document,E=function(t){var e=t.url,n=t.id,o=t.nonce;return C?new Promise((function(t,r){var i=document.getElementById(n),s=window;if(i){var a=i.getAttribute("data-state");if(i.src===e&&"error"!==a){if("ready"===a)return t(n);var p=s.initMap,c=i.onerror;return s.initMap=function(){p&&p(),t(n)},void(i.onerror=function(t){c&&c(t),r(t)})}i.remove()}var u=document.createElement("script");u.type="text/javascript",u.src=e,u.id=n,u.async=!0,u.nonce=o,u.onerror=function(t){u.setAttribute("data-state","error"),r(t)},s.initMap=function(){u.setAttribute("data-state","ready"),t(n)},document.head.appendChild(u)})).catch((function(t){throw console.error("injectScript error: ",t),t})):Promise.reject(new Error("document is undefined"))},w=function(t){return!((!t.href||0!==t.href.indexOf("https://fonts.googleapis.com/css?family=Roboto"))&&("style"===t.tagName.toLowerCase()&&t.styleSheet&&t.styleSheet.cssText&&0===t.styleSheet.cssText.replace("\r\n","").indexOf(".gm-style")?(t.styleSheet.cssText="",0):"style"===t.tagName.toLowerCase()&&t.innerHTML&&0===t.innerHTML.replace("\r\n","").indexOf(".gm-style")?(t.innerHTML="",0):"style"!==t.tagName.toLowerCase()||t.styleSheet||t.innerHTML))},L=function(){var t=document.getElementsByTagName("head")[0],e=t.insertBefore.bind(t);t.insertBefore=function(n,o){w(n)||Reflect.apply(e,t,[n,o])};var n=t.appendChild.bind(t);t.appendChild=function(e){w(e)||Reflect.apply(n,t,[e])}};function P(t){var e=t.googleMapsApiKey,o=t.googleMapsClientId,r=t.version,i=void 0===r?"weekly":r,s=t.language,a=t.region,p=t.libraries,c=t.channel,u=t.mapIds,l=[];return e&&o||!e||!o||n(!1),e?l.push("key="+e):o&&l.push("client="+o),i&&l.push("v="+i),s&&l.push("language="+s),a&&l.push("region="+a),p&&p.length&&l.push("libraries="+p.sort().join(",")),c&&l.push("channel="+c),u&&u.length&&l.push("map_ids="+u.join(",")),l.push("callback=initMap"),"https://maps.googleapis.com/maps/api/js?"+l.join("&")}var b=!1;function k(){return e.createElement("div",null,"Loading...")}var S,D={id:"script-loader",version:"weekly"},U=function(t){function o(){var o;return(o=t.apply(this,arguments)||this).check=e.createRef(),o.state={loaded:!1},o.cleanupCallback=function(){delete window.google.maps,o.injectScript()},o.isCleaningUp=p(x.mark((function t(){return x.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){if(b){if(C)var e=window.setInterval((function(){b||(window.clearInterval(e),t())}),1)}else t()})));case 2:case"end":return t.stop()}}),t)}))),o.cleanup=function(){b=!0;var t=document.getElementById(o.props.id);t&&t.parentNode&&t.parentNode.removeChild(t),Array.prototype.slice.call(document.getElementsByTagName("script")).filter((function(t){return"string"==typeof t.src&&t.src.includes("maps.googleapis")})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)})),Array.prototype.slice.call(document.getElementsByTagName("link")).filter((function(t){return"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"===t.href})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)})),Array.prototype.slice.call(document.getElementsByTagName("style")).filter((function(t){return void 0!==t.innerText&&t.innerText.length>0&&t.innerText.includes(".gm-")})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))},o.injectScript=function(){o.props.preventGoogleFontsLoading&&L(),o.props.id||n(!1);var t={id:o.props.id,nonce:o.props.nonce,url:P(o.props)};E(t).then((function(){o.props.onLoad&&o.props.onLoad(),o.setState((function(){return{loaded:!0}}))})).catch((function(t){o.props.onError&&o.props.onError(t),console.error("\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key ("+(o.props.googleMapsApiKey||"-")+") or Client ID ("+(o.props.googleMapsClientId||"-")+") to <LoadScript />\n Otherwise it is a Network issue.\n ")}))},o}u(o,t);var r=o.prototype;return r.componentDidMount=function(){if(C){if(window.google&&window.google.maps&&!b)return void console.error("google api is already presented");this.isCleaningUp().then(this.injectScript).catch((function(t){console.error("Error at injecting script after cleaning up: ",t)}))}},r.componentDidUpdate=function(t){this.props.libraries!==t.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),C&&t.language!==this.props.language&&(this.cleanup(),this.setState((function(){return{loaded:!1}}),this.cleanupCallback))},r.componentWillUnmount=function(){var t=this;C&&(this.cleanup(),window.setTimeout((function(){t.check.current||(delete window.google,b=!1)}),1),this.props.onUnmount&&this.props.onUnmount())},r.render=function(){return e.createElement(e.Fragment,null,e.createElement("div",{ref:this.check}),this.state.loaded?this.props.children:this.props.loadingElement||e.createElement(k,null))},o}(e.PureComponent);function O(t){var o=t.id,r=void 0===o?D.id:o,i=t.version,s=void 0===i?D.version:i,a=t.nonce,p=t.googleMapsApiKey,c=t.googleMapsClientId,u=t.language,l=t.region,d=t.libraries,h=t.preventGoogleFontsLoading,f=t.channel,g=t.mapIds,m=e.useRef(!1),v=e.useState(!1),y=v[0],M=v[1],x=e.useState(void 0),w=x[0],b=x[1];e.useEffect((function(){return m.current=!0,function(){m.current=!1}}),[]),e.useEffect((function(){C&&h&&L()}),[h]),e.useEffect((function(){y&&(window.google||n(!1))}),[y]);var k=P({version:s,googleMapsApiKey:p,googleMapsClientId:c,language:u,region:l,libraries:d,channel:f,mapIds:g});e.useEffect((function(){function t(){m.current&&(M(!0),S=k)}C&&(window.google&&window.google.maps&&S===k?t():E({id:r,url:k,nonce:a}).then(t).catch((function(t){m.current&&b(t),console.warn("\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key ("+(p||"-")+") or Client ID ("+(c||"-")+")\n Otherwise it is a Network issue.\n "),console.error(t)})))}),[r,k,a]);var U=e.useRef();return e.useEffect((function(){U.current&&d!==U.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),U.current=d}),[d]),{isLoaded:y,loadError:w,url:k}}U.defaultProps=D;var T=e.createElement(k,null);function R(t){var n=t.loadingElement,o=t.onLoad,r=t.onError,i=t.onUnmount,s=t.children,a=O(l(t,["loadingElement","onLoad","onError","onUnmount","children"])),p=a.isLoaded,c=a.loadError;return e.useEffect((function(){p&&"function"==typeof o&&o()}),[p,o]),e.useEffect((function(){c&&"function"==typeof r&&r(c)}),[c,r]),e.useEffect((function(){return function(){i&&i()}}),[i]),p?s:n||T}var _=e.memo(R),I={},V={options:function(t,e){t.setOptions(e)}},B=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).state={trafficLayer:null},e.setTrafficLayerCallback=function(){null!==e.state.trafficLayer&&e.props.onLoad&&e.props.onLoad(e.state.trafficLayer)},e.registeredEvents=[],e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.TrafficLayer(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:V,eventMap:I,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{trafficLayer:t}}),this.setTrafficLayerCallback)},n.componentDidUpdate=function(t){null!==this.state.trafficLayer&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:V,eventMap:I,prevProps:t,nextProps:this.props,instance:this.state.trafficLayer}))},n.componentWillUnmount=function(){null!==this.state.trafficLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),f(this.registeredEvents),this.state.trafficLayer.setMap(null))},n.render=function(){return null},e}(e.PureComponent);B.contextType=d;var W=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).state={bicyclingLayer:null},e.setBicyclingLayerCallback=function(){null!==e.state.bicyclingLayer&&(e.state.bicyclingLayer.setMap(e.context),e.props.onLoad&&e.props.onLoad(e.state.bicyclingLayer))},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.BicyclingLayer;this.setState((function(){return{bicyclingLayer:t}}),this.setBicyclingLayerCallback)},n.componentWillUnmount=function(){null!==this.state.bicyclingLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))},n.render=function(){return null},e}(e.PureComponent);W.contextType=d;var j=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).state={transitLayer:null},e.setTransitLayerCallback=function(){null!==e.state.transitLayer&&(e.state.transitLayer.setMap(e.context),e.props.onLoad&&e.props.onLoad(e.state.transitLayer))},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.TransitLayer;this.setState((function(){return{transitLayer:t}}),this.setTransitLayerCallback)},n.componentWillUnmount=function(){null!==this.state.transitLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))},n.render=function(){return null},e}(e.PureComponent);j.contextType=d;var A={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},N={drawingMode:function(t,e){t.setDrawingMode(e)},options:function(t,e){t.setOptions(e)}},z=function(t){function o(e){var o;return(o=t.call(this,e)||this).registeredEvents=[],o.state={drawingManager:null},o.setDrawingManagerCallback=function(){null!==o.state.drawingManager&&o.props.onLoad&&o.props.onLoad(o.state.drawingManager)},google.maps.drawing||n(!1),o}u(o,t);var r=o.prototype;return r.componentDidMount=function(){var t=new google.maps.drawing.DrawingManager(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:N,eventMap:A,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{drawingManager:t}}),this.setDrawingManagerCallback)},r.componentDidUpdate=function(t){null!==this.state.drawingManager&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:N,eventMap:A,prevProps:t,nextProps:this.props,instance:this.state.drawingManager}))},r.componentWillUnmount=function(){null!==this.state.drawingManager&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),f(this.registeredEvents),this.state.drawingManager.setMap(null))},r.render=function(){return e.createElement(e.Fragment,null)},o}(e.PureComponent);z.contextType=d;var G={onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDraggableChanged:"draggable_changed",onDragStart:"dragstart",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPositionChanged:"position_changed",onRightClick:"rightclick",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},F={animation:function(t,e){t.setAnimation(e)},clickable:function(t,e){t.setClickable(e)},cursor:function(t,e){t.setCursor(e)},draggable:function(t,e){t.setDraggable(e)},icon:function(t,e){t.setIcon(e)},label:function(t,e){t.setLabel(e)},map:function(t,e){t.setMap(e)},opacity:function(t,e){t.setOpacity(e)},options:function(t,e){t.setOptions(e)},position:function(t,e){t.setPosition(e)},shape:function(t,e){t.setShape(e)},title:function(t,e){t.setTitle(e)},visible:function(t,e){t.setVisible(e)},zIndex:function(t,e){t.setZIndex(e)}},Z=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=c({},this.props.options||{},this.props.clusterer?{}:{map:this.context},{position:this.props.position});this.marker=new google.maps.Marker(t),this.props.clusterer?this.props.clusterer.addMarker(this.marker,!!this.props.noClustererRedraw):this.marker.setMap(this.context),this.registeredEvents=g({updaterMap:F,eventMap:G,prevProps:{},nextProps:this.props,instance:this.marker}),this.props.onLoad&&this.props.onLoad(this.marker)},o.componentDidUpdate=function(t){this.marker&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:F,eventMap:G,prevProps:t,nextProps:this.props,instance:this.marker}))},o.componentWillUnmount=function(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),f(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))},o.render=function(){var t=this,n=null;return this.props.children&&(n=e.Children.map(this.props.children,(function(n){return e.isValidElement(n)?e.cloneElement(n,{anchor:t.marker}):n}))),n||null},n}(e.PureComponent);Z.contextType=d;var H={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},K={averageCenter:function(t,e){t.setAverageCenter(e)},batchSizeIE:function(t,e){t.setBatchSizeIE(e)},calculator:function(t,e){t.setCalculator(e)},clusterClass:function(t,e){t.setClusterClass(e)},enableRetinaIcons:function(t,e){t.setEnableRetinaIcons(e)},gridSize:function(t,e){t.setGridSize(e)},ignoreHidden:function(t,e){t.setIgnoreHidden(e)},imageExtension:function(t,e){t.setImageExtension(e)},imagePath:function(t,e){t.setImagePath(e)},imageSizes:function(t,e){t.setImageSizes(e)},maxZoom:function(t,e){t.setMaxZoom(e)},minimumClusterSize:function(t,e){t.setMinimumClusterSize(e)},styles:function(t,e){t.setStyles(e)},title:function(t,e){t.setTitle(e)},zoomOnClick:function(t,e){t.setZoomOnClick(e)}},Y=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={markerClusterer:null},e.setClustererCallback=function(){null!==e.state.markerClusterer&&e.props.onLoad&&e.props.onLoad(e.state.markerClusterer)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){if(this.context){var t=new r.Clusterer(this.context,[],this.props.options);this.registeredEvents=g({updaterMap:K,eventMap:H,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{markerClusterer:t}}),this.setClustererCallback)}},n.componentDidUpdate=function(t){this.state.markerClusterer&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:K,eventMap:H,prevProps:t,nextProps:this.props,instance:this.state.markerClusterer}))},n.componentWillUnmount=function(){null!==this.state.markerClusterer&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),f(this.registeredEvents),this.state.markerClusterer.setMap(null))},n.render=function(){return null!==this.state.markerClusterer?this.props.children(this.state.markerClusterer):null},e}(e.PureComponent);Y.contextType=d;var q={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},J={options:function(t,e){t.setOptions(e)},position:function(t,e){e instanceof google.maps.LatLng?t.setPosition(e):t.setPosition(new google.maps.LatLng(e.lat,e.lng))},visible:function(t,e){t.setVisible(e)},zIndex:function(t,e){t.setZIndex(e)}},Q=function(t){function o(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.containerElement=null,e.state={infoBox:null},e.open=function(t,o){o?t.open(e.context,o):t.getPosition()?t.open(e.context):n(!1)},e.setInfoBoxCallback=function(){var t=e.props,n=t.anchor,o=t.onLoad,r=e.state.infoBox;null!==r&&null!==e.containerElement&&(r.setContent(e.containerElement),e.open(r,n),o&&o(r))},e}u(o,t);var r=o.prototype;return r.componentDidMount=function(){var t,e=this.props.options||{},n=e.position,o=l(e,["position"]);!n||n instanceof google.maps.LatLng||(t=new google.maps.LatLng(n.lat,n.lng));var r=new s.InfoBox(c({},o,t?{position:t}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=g({updaterMap:J,eventMap:q,prevProps:{},nextProps:this.props,instance:r}),this.setState({infoBox:r},this.setInfoBoxCallback)},r.componentDidUpdate=function(t){var e=this.state.infoBox;null!==e&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:J,eventMap:q,prevProps:t,nextProps:this.props,instance:e}))},r.componentWillUnmount=function(){var t=this.props.onUnmount,e=this.state.infoBox;null!==e&&(t&&t(e),f(this.registeredEvents),e.close())},r.render=function(){return this.containerElement?i.createPortal(e.Children.only(this.props.children),this.containerElement):null},o}(e.PureComponent);Q.contextType=d;var X={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},$={options:function(t,e){t.setOptions(e)},position:function(t,e){t.setPosition(e)},zIndex:function(t,e){t.setZIndex(e)}},tt=function(t){function o(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.containerElement=null,e.state={infoWindow:null},e.open=function(t,o){o?t.open(e.context,o):t.getPosition()?t.open(e.context):n(!1)},e.setInfoWindowCallback=function(){null!==e.state.infoWindow&&null!==e.containerElement&&(e.state.infoWindow.setContent(e.containerElement),e.open(e.state.infoWindow,e.props.anchor),e.props.onLoad&&e.props.onLoad(e.state.infoWindow))},e}u(o,t);var r=o.prototype;return r.componentDidMount=function(){var t=new google.maps.InfoWindow(c({},this.props.options||{}));this.containerElement=document.createElement("div"),this.registeredEvents=g({updaterMap:$,eventMap:X,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{infoWindow:t}}),this.setInfoWindowCallback)},r.componentDidUpdate=function(t){null!==this.state.infoWindow&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:$,eventMap:X,prevProps:t,nextProps:this.props,instance:this.state.infoWindow}))},r.componentWillUnmount=function(){null!==this.state.infoWindow&&(f(this.registeredEvents),this.state.infoWindow.close())},r.render=function(){return this.containerElement?i.createPortal(e.Children.only(this.props.children),this.containerElement):e.createElement(e.Fragment,null)},o}(e.PureComponent);tt.contextType=d;var et={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},nt={draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},path:function(t,e){t.setPath(e)},visible:function(t,e){t.setVisible(e)}},ot=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={polyline:null},e.setPolylineCallback=function(){null!==e.state.polyline&&e.props.onLoad&&e.props.onLoad(e.state.polyline)},e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=new google.maps.Polyline(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:nt,eventMap:et,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{polyline:t}}),this.setPolylineCallback)},o.componentDidUpdate=function(t){null!==this.state.polyline&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:nt,eventMap:et,prevProps:t,nextProps:this.props,instance:this.state.polyline}))},o.componentWillUnmount=function(){null!==this.state.polyline&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),f(this.registeredEvents),this.state.polyline.setMap(null))},o.render=function(){return e.createElement(e.Fragment,null)},n}(e.PureComponent);ot.contextType=d;var rt={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},it={draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},path:function(t,e){t.setPath(e)},paths:function(t,e){t.setPaths(e)},visible:function(t,e){t.setVisible(e)}},st=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={polygon:null},e.setPolygonCallback=function(){null!==e.state.polygon&&e.props.onLoad&&e.props.onLoad(e.state.polygon)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.Polygon(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:it,eventMap:rt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{polygon:t}}),this.setPolygonCallback)},n.componentDidUpdate=function(t){null!==this.state.polygon&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:it,eventMap:rt,prevProps:t,nextProps:this.props,instance:this.state.polygon}))},n.componentWillUnmount=function(){null!==this.state.polygon&&(this.props.onUnmount&&this.props.onUnmount(this.state.polygon),f(this.registeredEvents),this.state.polygon&&this.state.polygon.setMap(null))},n.render=function(){return null},e}(e.PureComponent);st.contextType=d;var at={onBoundsChanged:"bounds_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},pt={bounds:function(t,e){t.setBounds(e)},draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},visible:function(t,e){t.setVisible(e)}},ct=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={rectangle:null},e.setRectangleCallback=function(){null!==e.state.rectangle&&e.props.onLoad&&e.props.onLoad(e.state.rectangle)},e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=new google.maps.Rectangle(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:pt,eventMap:at,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{rectangle:t}}),this.setRectangleCallback)},o.componentDidUpdate=function(t){null!==this.state.rectangle&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:pt,eventMap:at,prevProps:t,nextProps:this.props,instance:this.state.rectangle}))},o.componentWillUnmount=function(){null!==this.state.rectangle&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),f(this.registeredEvents),this.state.rectangle.setMap(null))},o.render=function(){return e.createElement(e.Fragment,null)},n}(e.PureComponent);ct.contextType=d;var ut={onCenterChanged:"center_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRadiusChanged:"radius_changed",onRightClick:"rightclick"},lt={center:function(t,e){t.setCenter(e)},draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},radius:function(t,e){t.setRadius(e)},visible:function(t,e){t.setVisible(e)}},dt=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={circle:null},e.setCircleCallback=function(){null!==e.state.circle&&e.props.onLoad&&e.props.onLoad(e.state.circle)},e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=new google.maps.Circle(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:lt,eventMap:ut,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{circle:t}}),this.setCircleCallback)},o.componentDidUpdate=function(t){null!==this.state.circle&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:lt,eventMap:ut,prevProps:t,nextProps:this.props,instance:this.state.circle}))},o.componentWillUnmount=function(){null!==this.state.circle&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),f(this.registeredEvents),this.state.circle&&this.state.circle.setMap(null))},o.render=function(){return e.createElement(e.Fragment,null)},n}(e.PureComponent);dt.contextType=d;var ht={onAddFeature:"addfeature",onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onRightClick:"rightclick",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},ft={add:function(t,e){t.add(e)},addgeojson:function(t,e,n){t.addGeoJson(e,n)},contains:function(t,e){t.contains(e)},foreach:function(t,e){t.forEach(e)},loadgeojson:function(t,e,n,o){t.loadGeoJson(e,n,o)},overridestyle:function(t,e,n){t.overrideStyle(e,n)},remove:function(t,e){t.remove(e)},revertstyle:function(t,e){t.revertStyle(e)},controlposition:function(t,e){t.setControlPosition(e)},controls:function(t,e){t.setControls(e)},drawingmode:function(t,e){t.setDrawingMode(e)},map:function(t,e){t.setMap(e)},style:function(t,e){t.setStyle(e)},togeojson:function(t,e){t.toGeoJson(e)}},gt=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={data:null},e.setDataCallback=function(){null!==e.state.data&&e.props.onLoad&&e.props.onLoad(e.state.data)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.Data(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:ft,eventMap:ht,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{data:t}}),this.setDataCallback)},n.componentDidUpdate=function(t){null!==this.state.data&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:ft,eventMap:ht,prevProps:t,nextProps:this.props,instance:this.state.data}))},n.componentWillUnmount=function(){null!==this.state.data&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),f(this.registeredEvents),this.state.data&&this.state.data.setMap(null))},n.render=function(){return null},e}(e.PureComponent);gt.contextType=d;var mt={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},vt={options:function(t,e){t.setOptions(e)},url:function(t,e){t.setUrl(e)},zIndex:function(t,e){t.setZIndex(e)}},yt=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={kmlLayer:null},e.setKmlLayerCallback=function(){null!==e.state.kmlLayer&&e.props.onLoad&&e.props.onLoad(e.state.kmlLayer)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.KmlLayer(c({},this.props.options,{map:this.context}));this.registeredEvents=g({updaterMap:vt,eventMap:mt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{kmlLayer:t}}),this.setKmlLayerCallback)},n.componentDidUpdate=function(t){null!==this.state.kmlLayer&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:vt,eventMap:mt,prevProps:t,nextProps:this.props,instance:this.state.kmlLayer}))},n.componentWillUnmount=function(){null!==this.state.kmlLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),f(this.registeredEvents),this.state.kmlLayer.setMap(null))},n.render=function(){return null},e}(e.PureComponent);yt.contextType=d;var Mt=function(t,e){return new e(t.lat,t.lng)},xt=function(t,e){return new e(new google.maps.LatLng(t.ne.lat,t.ne.lng),new google.maps.LatLng(t.sw.lat,t.sw.lng))},Ct=function(t,e,n){return t instanceof e?t:n(t,e)};function Et(t){return t?(t instanceof google.maps.LatLng?t:new google.maps.LatLng(t.lat,t.lng))+"":""}function wt(t){return t?(t instanceof google.maps.LatLngBounds?t:new google.maps.LatLngBounds(new google.maps.LatLng(t.south,t.east),new google.maps.LatLng(t.north,t.west)))+"":""}var Lt=function(t){function o(o){var r;(r=t.call(this,o)||this).state={paneEl:null,containerStyle:{position:"absolute"}},r.updatePane=function(){var t=r.props.mapPaneName,e=r.overlayView.getPanes();t||n(!1),r.setState(e?{paneEl:e[t]}:{paneEl:null})},r.onAdd=function(){r.updatePane(),null==r.props.onLoad||r.props.onLoad(r.overlayView)},r.onPositionElement=function(){var t,e,n,o,i,s,a,p,u=(i=r.overlayView.getProjection(),s=c({x:0,y:0},r.containerRef.current?(t=r.containerRef.current,"function"==typeof(e=r.props.getPixelPositionOffset)?e(t.offsetWidth,t.offsetHeight):{}):{}),p=r.props.position,void 0!==(a=r.props.bounds)?function(t,e,n){var o=t&&t.fromLatLngToDivPixel(n.getNorthEast()),r=t&&t.fromLatLngToDivPixel(n.getSouthWest());return o&&r?{left:r.x+e.x+"px",top:o.y+e.y+"px",width:o.x-r.x-e.x+"px",height:r.y-o.y-e.y+"px"}:{left:"-9999px",top:"-9999px"}}(i,s,Ct(a,google.maps.LatLngBounds,xt)):function(t,e,n){var o=t&&t.fromLatLngToDivPixel(n);return o?{left:o.x+e.x+"px",top:o.y+e.y+"px"}:{left:"-9999px",top:"-9999px"}}(i,s,Ct(p,google.maps.LatLng,Mt))),l=r.state.containerStyle;((n=u).left!==(o={left:l.left,top:l.top,width:l.width,height:l.height}).left||n.top!==o.top||n.width!==o.height||n.height!==o.height)&&r.setState({containerStyle:c({},u,{position:"absolute"})})},r.draw=function(){r.onPositionElement()},r.onRemove=function(){r.setState((function(){return{paneEl:null}})),null==r.props.onUnmount||r.props.onUnmount(r.overlayView)},r.containerRef=e.createRef();var i=new google.maps.OverlayView;return i.onAdd=r.onAdd,i.draw=r.draw,i.onRemove=r.onRemove,r.overlayView=i,r}u(o,t);var r=o.prototype;return r.componentDidMount=function(){this.overlayView.setMap(this.context)},r.componentDidUpdate=function(t){var e=Et(t.position),n=Et(this.props.position),o=wt(t.bounds),r=wt(this.props.bounds);e===n&&o===r||this.overlayView.draw(),t.mapPaneName!==this.props.mapPaneName&&this.updatePane()},r.componentWillUnmount=function(){this.overlayView.setMap(null)},r.render=function(){var t=this.state.paneEl;return t?i.createPortal(e.createElement("div",{ref:this.containerRef,style:this.state.containerStyle},e.Children.only(this.props.children)),t):null},o}(e.PureComponent);Lt.FLOAT_PANE="floatPane",Lt.MAP_PANE="mapPane",Lt.MARKER_LAYER="markerLayer",Lt.OVERLAY_LAYER="overlayLayer",Lt.OVERLAY_MOUSE_TARGET="overlayMouseTarget",Lt.contextType=d;var Pt={onDblClick:"dblclick",onClick:"click"},bt={opacity:function(t,e){t.setOpacity(e)}},kt=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={groundOverlay:null},e.setGroundOverlayCallback=function(){null!==e.state.groundOverlay&&e.props.onLoad&&e.props.onLoad(e.state.groundOverlay)},e}u(e,t);var o=e.prototype;return o.componentDidMount=function(){this.props.url||this.props.bounds||n(!1);var t=new google.maps.GroundOverlay(this.props.url,this.props.bounds,c({},this.props.options,{map:this.context}));this.registeredEvents=g({updaterMap:bt,eventMap:Pt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{groundOverlay:t}}),this.setGroundOverlayCallback)},o.componentDidUpdate=function(t){null!==this.state.groundOverlay&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:bt,eventMap:Pt,prevProps:t,nextProps:this.props,instance:this.state.groundOverlay}))},o.componentWillUnmount=function(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))},o.render=function(){return null},e}(e.PureComponent);kt.defaultProps={onLoad:function(){}},kt.contextType=d;var St={},Dt={data:function(t,e){t.setData(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)}},Ut=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={heatmapLayer:null},e.setHeatmapLayerCallback=function(){null!==e.state.heatmapLayer&&e.props.onLoad&&e.props.onLoad(e.state.heatmapLayer)},e}u(e,t);var o=e.prototype;return o.componentDidMount=function(){google.maps.visualization||n(!1),this.props.data||n(!1);var t=new google.maps.visualization.HeatmapLayer(c({},this.props.options||{},{data:this.props.data,map:this.context}));this.registeredEvents=g({updaterMap:Dt,eventMap:St,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{heatmapLayer:t}}),this.setHeatmapLayerCallback)},o.componentDidUpdate=function(t){f(this.registeredEvents),this.registeredEvents=g({updaterMap:Dt,eventMap:St,prevProps:t,nextProps:this.props,instance:this.state.heatmapLayer})},o.componentWillUnmount=function(){null!==this.state.heatmapLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),f(this.registeredEvents),this.state.heatmapLayer.setMap(null))},o.render=function(){return null},e}(e.PureComponent);Ut.contextType=d;var Ot={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},Tt={register:function(t,e,n){t.registerPanoProvider(e,n)},links:function(t,e){t.setLinks(e)},motionTracking:function(t,e){t.setMotionTracking(e)},options:function(t,e){t.setOptions(e)},pano:function(t,e){t.setPano(e)},position:function(t,e){t.setPosition(e)},pov:function(t,e){t.setPov(e)},visible:function(t,e){t.setVisible(e)},zoom:function(t,e){t.setZoom(e)}},Rt=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={streetViewPanorama:null},e.setStreetViewPanoramaCallback=function(){null!==e.state.streetViewPanorama&&e.props.onLoad&&e.props.onLoad(e.state.streetViewPanorama)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=this.context.getStreetView();this.registeredEvents=g({updaterMap:Tt,eventMap:Ot,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{streetViewPanorama:t}}),this.setStreetViewPanoramaCallback)},n.componentDidUpdate=function(t){null!==this.state.streetViewPanorama&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:Tt,eventMap:Ot,prevProps:t,nextProps:this.props,instance:this.state.streetViewPanorama}))},n.componentWillUnmount=function(){null!==this.state.streetViewPanorama&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),f(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))},n.render=function(){return null},e}(e.PureComponent);Rt.contextType=d;var _t=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).state={streetViewService:null},e.setStreetViewServiceCallback=function(){null!==e.state.streetViewService&&e.props.onLoad&&e.props.onLoad(e.state.streetViewService)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.StreetViewService;this.setState((function(){return{streetViewService:t}}),this.setStreetViewServiceCallback)},n.componentWillUnmount=function(){null!==this.state.streetViewService&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)},n.render=function(){return null},e}(e.PureComponent);_t.contextType=d;var It=function(t){function o(){var e;return(e=t.apply(this,arguments)||this).state={directionsService:null},e.setDirectionsServiceCallback=function(){null!==e.state.directionsService&&e.props.onLoad&&e.props.onLoad(e.state.directionsService)},e}u(o,t);var r=o.prototype;return r.componentDidMount=function(){this.props.options||n(!1);var t=new google.maps.DirectionsService;this.setState((function(){return{directionsService:t}}),this.setDirectionsServiceCallback)},r.componentDidUpdate=function(){null!==this.state.directionsService&&this.state.directionsService.route(this.props.options,this.props.callback)},r.componentWillUnmount=function(){null!==this.state.directionsService&&this.props.onUnmount&&this.props.onUnmount(this.state.directionsService)},r.render=function(){return e.createElement(e.Fragment,null)},o}(e.PureComponent),Vt={onDirectionsChanged:"directions_changed"},Bt={directions:function(t,e){t.setDirections(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},panel:function(t,e){t.setPanel(e)},routeIndex:function(t,e){t.setRouteIndex(e)}},Wt=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={directionsRenderer:null},e.setDirectionsRendererCallback=function(){null!==e.state.directionsRenderer&&(e.state.directionsRenderer.setMap(e.context),e.props.onLoad&&e.props.onLoad(e.state.directionsRenderer))},e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=g({updaterMap:Bt,eventMap:Vt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{directionsRenderer:t}}),this.setDirectionsRendererCallback)},o.componentDidUpdate=function(t){null!==this.state.directionsRenderer&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:Bt,eventMap:Vt,prevProps:t,nextProps:this.props,instance:this.state.directionsRenderer}))},o.componentWillUnmount=function(){null!==this.state.directionsRenderer&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),f(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))},o.render=function(){return e.createElement(e.Fragment,null)},n}(e.PureComponent);Wt.contextType=d;var jt=function(t){function o(){var e;return(e=t.apply(this,arguments)||this).state={distanceMatrixService:null},e.setDistanceMatrixServiceCallback=function(){null!==e.state.distanceMatrixService&&e.props.onLoad&&e.props.onLoad(e.state.distanceMatrixService)},e}u(o,t);var r=o.prototype;return r.componentDidMount=function(){this.props.options||n(!1);var t=new google.maps.DistanceMatrixService;this.setState((function(){return{distanceMatrixService:t}}),this.setDistanceMatrixServiceCallback)},r.componentDidUpdate=function(){null!==this.state.distanceMatrixService&&this.state.distanceMatrixService.getDistanceMatrix(this.props.options,this.props.callback)},r.componentWillUnmount=function(){null!==this.state.distanceMatrixService&&this.props.onUnmount&&this.props.onUnmount(this.state.distanceMatrixService)},r.render=function(){return e.createElement(e.Fragment,null)},o}(e.PureComponent),At={onPlacesChanged:"places_changed"},Nt={bounds:function(t,e){t.setBounds(e)}},zt=function(t){function o(){var n;return(n=t.apply(this,arguments)||this).registeredEvents=[],n.containerElement=e.createRef(),n.state={searchBox:null},n.setSearchBoxCallback=function(){null!==n.state.searchBox&&n.props.onLoad&&n.props.onLoad(n.state.searchBox)},n}u(o,t);var r=o.prototype;return r.componentDidMount=function(){if(google.maps.places||n(!1),null!==this.containerElement&&null!==this.containerElement.current){var t=this.containerElement.current.querySelector("input");if(null!==t){var e=new google.maps.places.SearchBox(t,this.props.options);this.registeredEvents=g({updaterMap:Nt,eventMap:At,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{searchBox:e}}),this.setSearchBoxCallback)}}},r.componentDidUpdate=function(t){null!==this.state.searchBox&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:Nt,eventMap:At,prevProps:t,nextProps:this.props,instance:this.state.searchBox}))},r.componentWillUnmount=function(){null!==this.state.searchBox&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),f(this.registeredEvents))},r.render=function(){return e.createElement("div",{ref:this.containerElement},e.Children.only(this.props.children))},o}(e.PureComponent);zt.contextType=d;var Gt={onPlaceChanged:"place_changed"},Ft={bounds:function(t,e){t.setBounds(e)},restrictions:function(t,e){t.setComponentRestrictions(e)},fields:function(t,e){t.setFields(e)},options:function(t,e){t.setOptions(e)},types:function(t,e){t.setTypes(e)}},Zt=function(t){function o(){var n;return(n=t.apply(this,arguments)||this).registeredEvents=[],n.containerElement=e.createRef(),n.state={autocomplete:null},n.setAutocompleteCallback=function(){null!==n.state.autocomplete&&n.props.onLoad&&n.props.onLoad(n.state.autocomplete)},n}u(o,t);var r=o.prototype;return r.componentDidMount=function(){google.maps.places||n(!1);var t=this.containerElement.current.querySelector("input");if(t){var e=new google.maps.places.Autocomplete(t,this.props.options);this.registeredEvents=g({updaterMap:Ft,eventMap:Gt,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{autocomplete:e}}),this.setAutocompleteCallback)}},r.componentDidUpdate=function(t){f(this.registeredEvents),this.registeredEvents=g({updaterMap:Ft,eventMap:Gt,prevProps:t,nextProps:this.props,instance:this.state.autocomplete})},r.componentWillUnmount=function(){null!==this.state.autocomplete&&f(this.registeredEvents)},r.render=function(){return e.createElement("div",{ref:this.containerElement,className:this.props.className||""},e.Children.only(this.props.children))},o}(e.PureComponent);Zt.contextType=d,exports.Autocomplete=Zt,exports.BicyclingLayer=W,exports.Circle=dt,exports.Data=gt,exports.DirectionsRenderer=Wt,exports.DirectionsService=It,exports.DistanceMatrixService=jt,exports.DrawingManager=z,exports.GoogleMap=M,exports.GroundOverlay=kt,exports.HeatmapLayer=Ut,exports.InfoBox=Q,exports.InfoWindow=tt,exports.KmlLayer=yt,exports.LoadScript=U,exports.LoadScriptNext=_,exports.MapContext=d,exports.Marker=Z,exports.MarkerClusterer=Y,exports.OverlayView=Lt,exports.Polygon=st,exports.Polyline=ot,exports.Rectangle=ct,exports.StandaloneSearchBox=zt,exports.StreetViewPanorama=Rt,exports.StreetViewService=_t,exports.TrafficLayer=B,exports.TransitLayer=j,exports.useGoogleMap=function(){e.useContext||n(!1);var t=e.useContext(d);return t||n(!1),t},exports.useJsApiLoader=function(t){var n=t.id,r=void 0===n?D.id:n,i=t.version,s=void 0===i?D.version:i,a=t.nonce,p=t.googleMapsApiKey,c=t.language,u=t.region,l=t.libraries,d=t.preventGoogleFontsLoading,h=t.mapIds,f=e.useState(!1),g=f[0],m=f[1],v=e.useState(void 0),y=v[0],M=v[1],x=e.useMemo((function(){return new o.Loader({id:r,apiKey:p,version:s,libraries:l,language:c,region:u,mapIds:h,nonce:a})}),[r,p,s,l,c,u,h,a]);e.useEffect((function(){g||x.load().then((function(){m(!0)})).catch((function(t){M(t)}))}),[]),e.useEffect((function(){C&&d&&L()}),[d]);var E=e.useRef();return e.useEffect((function(){E.current&&l!==E.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),E.current=l}),[l]),{isLoaded:g,loadError:y}},exports.useLoadScript=O;
//# sourceMappingURL=reactgooglemapsapi.cjs.production.min.js.map

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("invariant"),require("@googlemaps/js-api-loader"),require("@react-google-maps/marker-clusterer"),require("react-dom"),require("@react-google-maps/infobox")):"function"==typeof define&&define.amd?define(["exports","react","invariant","@googlemaps/js-api-loader","@react-google-maps/marker-clusterer","react-dom","@react-google-maps/infobox"],e):e((t=t||self).reactGoogleMapsApi={},t.React,t.invariant,t.jsApiLoader,t.markerClusterer,t.ReactDOM,t.infobox)}(this,(function(t,e,n,o,r,i,s){"use strict";function a(t,e,n,o,r,i,s){try{var a=t[i](s),p=a.value}catch(t){return void n(t)}a.done?e(p):Promise.resolve(p).then(o,r)}function p(t){return function(){var e=this,n=arguments;return new Promise((function(o,r){var i=t.apply(e,n);function s(t){a(i,o,r,s,p,"next",t)}function p(t){a(i,o,r,s,p,"throw",t)}s(void 0)}))}}function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function l(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)e.indexOf(n=i[o])>=0||(r[n]=t[n]);return r}n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var d=e.createContext(null);function h(t){google.maps.event.removeListener(t)}function f(t){void 0===t&&(t=[]),t.forEach(h)}function g(t){var e=t.updaterMap,n=t.prevProps,o=t.nextProps,r=t.instance,i=function(t,e,n){return o=n,Object.keys(o).reduce((function(n,r){return i=n,"function"==typeof t[s=r]&&i.push(google.maps.event.addListener(e,o[r],t[s])),i;var i,s}),[]);var o}(o,r,t.eventMap);return function(t,e,n,o){var r,i={};r=t,Object.keys(r).forEach((function(t){return function(t,r){var s=n[r];s!==e[r]&&(i[r]=s,t(o,s))}(r[t],t)}))}(e,n,o,r),i}var m={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},v={extraMapTypes:function(t,e){e.forEach((function(e,n){t.mapTypes.set(String(n),e)}))},center:function(t,e){t.setCenter(e)},clickableIcons:function(t,e){t.setClickableIcons(e)},heading:function(t,e){t.setHeading(e)},mapTypeId:function(t,e){t.setMapTypeId(e)},options:function(t,e){t.setOptions(e)},streetView:function(t,e){t.setStreetView(e)},tilt:function(t,e){t.setTilt(e)},zoom:function(t,e){t.setZoom(e)}},y=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={map:null},e.registeredEvents=[],e.mapRef=null,e.getInstance=function(){return null===e.mapRef?null:new google.maps.Map(e.mapRef,e.props.options)},e.panTo=function(t){var n=e.getInstance();n&&n.panTo(t)},e.setMapCallback=function(){null!==e.state.map&&e.props.onLoad&&e.props.onLoad(e.state.map)},e.getRef=function(t){e.mapRef=t},e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=this.getInstance();this.registeredEvents=g({updaterMap:v,eventMap:m,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{map:t}}),this.setMapCallback)},o.componentDidUpdate=function(t){null!==this.state.map&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:v,eventMap:m,prevProps:t,nextProps:this.props,instance:this.state.map}))},o.componentWillUnmount=function(){null!==this.state.map&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),f(this.registeredEvents))},o.render=function(){return e.createElement("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName},e.createElement(d.Provider,{value:this.state.map},null!==this.state.map?this.props.children:e.createElement(e.Fragment,null)))},n}(e.PureComponent),M=function(t,e){return function(t){var e=function(t){var e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function a(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{a({},"")}catch(t){a=function(t,e,n){return t[e]=n}}function p(t,e,n,o){var r=Object.create((e&&e.prototype instanceof l?e:l).prototype),i=new x(o||[]);return r._invoke=function(t,e,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return{value:void 0,done:!0}}for(n.method=r,n.arg=i;;){var s=n.delegate;if(s){var a=C(s,n);if(a){if(a===u)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var p=c(t,e,n);if("normal"===p.type){if(o=n.done?"completed":"suspendedYield",p.arg===u)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o="completed",n.method="throw",n.arg=p.arg)}}}(t,n,i),r}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var u={};function l(){}function d(){}function h(){}var f={};f[r]=function(){return this};var g=Object.getPrototypeOf,m=g&&g(g(L([])));m&&m!==e&&n.call(m,r)&&(f=m);var v=h.prototype=l.prototype=Object.create(f);function y(t){["next","throw","return"].forEach((function(e){a(t,e,(function(t){return this._invoke(e,t)}))}))}function M(t,e){var o;this._invoke=function(r,i){function s(){return new e((function(o,s){!function o(r,i,s,a){var p=c(t[r],t,i);if("throw"!==p.type){var u=p.arg,l=u.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){o("next",t,s,a)}),(function(t){o("throw",t,s,a)})):e.resolve(l).then((function(t){u.value=t,s(u)}),(function(t){return o("throw",t,s,a)}))}a(p.arg)}(r,i,o,s)}))}return o=o?o.then(s,s):s()}}function C(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var o=c(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,u;var r=o.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function L(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v.constructor=h,h.constructor=d,d.displayName=a(h,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,a(t,s,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},y(M.prototype),M.prototype[i]=function(){return this},t.AsyncIterator=M,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var s=new M(p(e,n,o,r),i);return t.isGeneratorFunction(n)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},y(v),a(v,s,"Generator"),v[r]=function(){return this},v.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var o=e.pop();if(o in t)return n.value=o,n.done=!1,n}return n.done=!0,n}},t.values=L,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(n,o){return s.type="throw",s.arg=t,e.next=n,o&&(e.method="next",e.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),p=n.call(i,"finallyLoc");if(a&&p){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!p)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=t,s.arg=e,i?(this.method="next",this.next=i.finallyLoc,u):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),w(n),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var r=o.arg;w(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:L(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}(e={exports:{}}),e.exports}(),C="undefined"!=typeof document,E=function(t){var e=t.url,n=t.id,o=t.nonce;return C?new Promise((function(t,r){var i=document.getElementById(n),s=window;if(i){var a=i.getAttribute("data-state");if(i.src===e&&"error"!==a){if("ready"===a)return t(n);var p=s.initMap,c=i.onerror;return s.initMap=function(){p&&p(),t(n)},void(i.onerror=function(t){c&&c(t),r(t)})}i.remove()}var u=document.createElement("script");u.type="text/javascript",u.src=e,u.id=n,u.async=!0,u.nonce=o,u.onerror=function(t){u.setAttribute("data-state","error"),r(t)},s.initMap=function(){u.setAttribute("data-state","ready"),t(n)},document.head.appendChild(u)})).catch((function(t){throw console.error("injectScript error: ",t),t})):Promise.reject(new Error("document is undefined"))},w=function(t){return!((!t.href||0!==t.href.indexOf("https://fonts.googleapis.com/css?family=Roboto"))&&("style"===t.tagName.toLowerCase()&&t.styleSheet&&t.styleSheet.cssText&&0===t.styleSheet.cssText.replace("\r\n","").indexOf(".gm-style")?(t.styleSheet.cssText="",0):"style"===t.tagName.toLowerCase()&&t.innerHTML&&0===t.innerHTML.replace("\r\n","").indexOf(".gm-style")?(t.innerHTML="",0):"style"!==t.tagName.toLowerCase()||t.styleSheet||t.innerHTML))},x=function(){var t=document.getElementsByTagName("head")[0],e=t.insertBefore.bind(t);t.insertBefore=function(n,o){w(n)||Reflect.apply(e,t,[n,o])};var n=t.appendChild.bind(t);t.appendChild=function(e){w(e)||Reflect.apply(n,t,[e])}};function L(t){var e=t.googleMapsApiKey,o=t.googleMapsClientId,r=t.version,i=void 0===r?"weekly":r,s=t.language,a=t.region,p=t.libraries,c=t.channel,u=t.mapIds,l=[];return e&&o||!e||!o||n(!1),e?l.push("key="+e):o&&l.push("client="+o),i&&l.push("v="+i),s&&l.push("language="+s),a&&l.push("region="+a),p&&p.length&&l.push("libraries="+p.sort().join(",")),c&&l.push("channel="+c),u&&u.length&&l.push("map_ids="+u.join(",")),l.push("callback=initMap"),"https://maps.googleapis.com/maps/api/js?"+l.join("&")}var P=!1;function b(){return e.createElement("div",null,"Loading...")}var k,S={id:"script-loader",version:"weekly"},D=function(t){function o(){var o;return(o=t.apply(this,arguments)||this).check=e.createRef(),o.state={loaded:!1},o.cleanupCallback=function(){delete window.google.maps,o.injectScript()},o.isCleaningUp=p(M.mark((function t(){return M.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){if(P){if(C)var e=window.setInterval((function(){P||(window.clearInterval(e),t())}),1)}else t()})));case 2:case"end":return t.stop()}}),t)}))),o.cleanup=function(){P=!0;var t=document.getElementById(o.props.id);t&&t.parentNode&&t.parentNode.removeChild(t),Array.prototype.slice.call(document.getElementsByTagName("script")).filter((function(t){return"string"==typeof t.src&&t.src.includes("maps.googleapis")})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)})),Array.prototype.slice.call(document.getElementsByTagName("link")).filter((function(t){return"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"===t.href})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)})),Array.prototype.slice.call(document.getElementsByTagName("style")).filter((function(t){return void 0!==t.innerText&&t.innerText.length>0&&t.innerText.includes(".gm-")})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))},o.injectScript=function(){o.props.preventGoogleFontsLoading&&x(),o.props.id||n(!1);var t={id:o.props.id,nonce:o.props.nonce,url:L(o.props)};E(t).then((function(){o.props.onLoad&&o.props.onLoad(),o.setState((function(){return{loaded:!0}}))})).catch((function(t){o.props.onError&&o.props.onError(t),console.error("\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key ("+(o.props.googleMapsApiKey||"-")+") or Client ID ("+(o.props.googleMapsClientId||"-")+") to <LoadScript />\n Otherwise it is a Network issue.\n ")}))},o}u(o,t);var r=o.prototype;return r.componentDidMount=function(){if(C){if(window.google&&window.google.maps&&!P)return void console.error("google api is already presented");this.isCleaningUp().then(this.injectScript).catch((function(t){console.error("Error at injecting script after cleaning up: ",t)}))}},r.componentDidUpdate=function(t){this.props.libraries!==t.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),C&&t.language!==this.props.language&&(this.cleanup(),this.setState((function(){return{loaded:!1}}),this.cleanupCallback))},r.componentWillUnmount=function(){var t=this;C&&(this.cleanup(),window.setTimeout((function(){t.check.current||(delete window.google,P=!1)}),1),this.props.onUnmount&&this.props.onUnmount())},r.render=function(){return e.createElement(e.Fragment,null,e.createElement("div",{ref:this.check}),this.state.loaded?this.props.children:this.props.loadingElement||e.createElement(b,null))},o}(e.PureComponent);function U(t){var o=t.id,r=void 0===o?S.id:o,i=t.version,s=void 0===i?S.version:i,a=t.nonce,p=t.googleMapsApiKey,c=t.googleMapsClientId,u=t.language,l=t.region,d=t.libraries,h=t.preventGoogleFontsLoading,f=t.channel,g=t.mapIds,m=e.useRef(!1),v=e.useState(!1),y=v[0],M=v[1],w=e.useState(void 0),P=w[0],b=w[1];e.useEffect((function(){return m.current=!0,function(){m.current=!1}}),[]),e.useEffect((function(){C&&h&&x()}),[h]),e.useEffect((function(){y&&(window.google||n(!1))}),[y]);var D=L({version:s,googleMapsApiKey:p,googleMapsClientId:c,language:u,region:l,libraries:d,channel:f,mapIds:g});e.useEffect((function(){function t(){m.current&&(M(!0),k=D)}C&&(window.google&&window.google.maps&&k===D?t():E({id:r,url:D,nonce:a}).then(t).catch((function(t){m.current&&b(t),console.warn("\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key ("+(p||"-")+") or Client ID ("+(c||"-")+")\n Otherwise it is a Network issue.\n "),console.error(t)})))}),[r,D,a]);var U=e.useRef();return e.useEffect((function(){U.current&&d!==U.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),U.current=d}),[d]),{isLoaded:y,loadError:P,url:D}}D.defaultProps=S;var O=e.createElement(b,null);function R(t){var n=t.loadingElement,o=t.onLoad,r=t.onError,i=t.onUnmount,s=t.children,a=U(l(t,["loadingElement","onLoad","onError","onUnmount","children"])),p=a.isLoaded,c=a.loadError;return e.useEffect((function(){p&&"function"==typeof o&&o()}),[p,o]),e.useEffect((function(){c&&"function"==typeof r&&r(c)}),[c,r]),e.useEffect((function(){return function(){i&&i()}}),[i]),p?s:n||O}var T=e.memo(R),_={},I={options:function(t,e){t.setOptions(e)}},V=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).state={trafficLayer:null},e.setTrafficLayerCallback=function(){null!==e.state.trafficLayer&&e.props.onLoad&&e.props.onLoad(e.state.trafficLayer)},e.registeredEvents=[],e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.TrafficLayer(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:I,eventMap:_,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{trafficLayer:t}}),this.setTrafficLayerCallback)},n.componentDidUpdate=function(t){null!==this.state.trafficLayer&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:I,eventMap:_,prevProps:t,nextProps:this.props,instance:this.state.trafficLayer}))},n.componentWillUnmount=function(){null!==this.state.trafficLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),f(this.registeredEvents),this.state.trafficLayer.setMap(null))},n.render=function(){return null},e}(e.PureComponent);V.contextType=d;var B=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).state={bicyclingLayer:null},e.setBicyclingLayerCallback=function(){null!==e.state.bicyclingLayer&&(e.state.bicyclingLayer.setMap(e.context),e.props.onLoad&&e.props.onLoad(e.state.bicyclingLayer))},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.BicyclingLayer;this.setState((function(){return{bicyclingLayer:t}}),this.setBicyclingLayerCallback)},n.componentWillUnmount=function(){null!==this.state.bicyclingLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))},n.render=function(){return null},e}(e.PureComponent);B.contextType=d;var j=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).state={transitLayer:null},e.setTransitLayerCallback=function(){null!==e.state.transitLayer&&(e.state.transitLayer.setMap(e.context),e.props.onLoad&&e.props.onLoad(e.state.transitLayer))},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.TransitLayer;this.setState((function(){return{transitLayer:t}}),this.setTransitLayerCallback)},n.componentWillUnmount=function(){null!==this.state.transitLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))},n.render=function(){return null},e}(e.PureComponent);j.contextType=d;var W={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},A={drawingMode:function(t,e){t.setDrawingMode(e)},options:function(t,e){t.setOptions(e)}},N=function(t){function o(e){var o;return(o=t.call(this,e)||this).registeredEvents=[],o.state={drawingManager:null},o.setDrawingManagerCallback=function(){null!==o.state.drawingManager&&o.props.onLoad&&o.props.onLoad(o.state.drawingManager)},google.maps.drawing||n(!1),o}u(o,t);var r=o.prototype;return r.componentDidMount=function(){var t=new google.maps.drawing.DrawingManager(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:A,eventMap:W,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{drawingManager:t}}),this.setDrawingManagerCallback)},r.componentDidUpdate=function(t){null!==this.state.drawingManager&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:A,eventMap:W,prevProps:t,nextProps:this.props,instance:this.state.drawingManager}))},r.componentWillUnmount=function(){null!==this.state.drawingManager&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),f(this.registeredEvents),this.state.drawingManager.setMap(null))},r.render=function(){return e.createElement(e.Fragment,null)},o}(e.PureComponent);N.contextType=d;var G={onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDraggableChanged:"draggable_changed",onDragStart:"dragstart",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPositionChanged:"position_changed",onRightClick:"rightclick",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},z={animation:function(t,e){t.setAnimation(e)},clickable:function(t,e){t.setClickable(e)},cursor:function(t,e){t.setCursor(e)},draggable:function(t,e){t.setDraggable(e)},icon:function(t,e){t.setIcon(e)},label:function(t,e){t.setLabel(e)},map:function(t,e){t.setMap(e)},opacity:function(t,e){t.setOpacity(e)},options:function(t,e){t.setOptions(e)},position:function(t,e){t.setPosition(e)},shape:function(t,e){t.setShape(e)},title:function(t,e){t.setTitle(e)},visible:function(t,e){t.setVisible(e)},zIndex:function(t,e){t.setZIndex(e)}},F=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={marker:null},e.setMarkerCallback=function(){null!==e.state.marker&&e.props.onLoad&&e.props.onLoad(e.state.marker)},e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=c({},this.props.options||{},this.props.clusterer?{}:{map:this.context},{position:this.props.position}),e=new google.maps.Marker(t);this.props.clusterer?this.props.clusterer.addMarker(e,!!this.props.noClustererRedraw):e.setMap(this.context),this.registeredEvents=g({updaterMap:z,eventMap:G,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{marker:e}}),this.setMarkerCallback)},o.componentDidUpdate=function(t){null!==this.state.marker&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:z,eventMap:G,prevProps:t,nextProps:this.props,instance:this.state.marker}))},o.componentWillUnmount=function(){null!==this.state.marker&&(this.props.onUnmount&&this.props.onUnmount(this.state.marker),f(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.state.marker,!!this.props.noClustererRedraw):this.state.marker&&this.state.marker.setMap(null))},o.render=function(){var t=this,n=null;return this.props.children&&(n=e.Children.map(this.props.children,(function(n){return e.isValidElement(n)?e.cloneElement(n,{anchor:t.state.marker}):n}))),n||null},n}(e.PureComponent);F.contextType=d;var Z={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},H={averageCenter:function(t,e){t.setAverageCenter(e)},batchSizeIE:function(t,e){t.setBatchSizeIE(e)},calculator:function(t,e){t.setCalculator(e)},clusterClass:function(t,e){t.setClusterClass(e)},enableRetinaIcons:function(t,e){t.setEnableRetinaIcons(e)},gridSize:function(t,e){t.setGridSize(e)},ignoreHidden:function(t,e){t.setIgnoreHidden(e)},imageExtension:function(t,e){t.setImageExtension(e)},imagePath:function(t,e){t.setImagePath(e)},imageSizes:function(t,e){t.setImageSizes(e)},maxZoom:function(t,e){t.setMaxZoom(e)},minimumClusterSize:function(t,e){t.setMinimumClusterSize(e)},styles:function(t,e){t.setStyles(e)},title:function(t,e){t.setTitle(e)},zoomOnClick:function(t,e){t.setZoomOnClick(e)}},K=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={markerClusterer:null},e.setClustererCallback=function(){null!==e.state.markerClusterer&&e.props.onLoad&&e.props.onLoad(e.state.markerClusterer)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){if(this.context){var t=new r.Clusterer(this.context,[],this.props.options);this.registeredEvents=g({updaterMap:H,eventMap:Z,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{markerClusterer:t}}),this.setClustererCallback)}},n.componentDidUpdate=function(t){this.state.markerClusterer&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:H,eventMap:Z,prevProps:t,nextProps:this.props,instance:this.state.markerClusterer}))},n.componentWillUnmount=function(){null!==this.state.markerClusterer&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),f(this.registeredEvents),this.state.markerClusterer.setMap(null))},n.render=function(){return null!==this.state.markerClusterer?this.props.children(this.state.markerClusterer):null},e}(e.PureComponent);K.contextType=d;var Y={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},q={options:function(t,e){t.setOptions(e)},position:function(t,e){e instanceof google.maps.LatLng?t.setPosition(e):t.setPosition(new google.maps.LatLng(e.lat,e.lng))},visible:function(t,e){t.setVisible(e)},zIndex:function(t,e){t.setZIndex(e)}},J=function(t){function o(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.containerElement=null,e.state={infoBox:null},e.open=function(t,o){o?t.open(e.context,o):t.getPosition()?t.open(e.context):n(!1)},e.setInfoBoxCallback=function(){var t=e.props,n=t.anchor,o=t.onLoad,r=e.state.infoBox;null!==r&&null!==e.containerElement&&(r.setContent(e.containerElement),e.open(r,n),o&&o(r))},e}u(o,t);var r=o.prototype;return r.componentDidMount=function(){var t,e=this.props.options||{},n=e.position,o=l(e,["position"]);!n||n instanceof google.maps.LatLng||(t=new google.maps.LatLng(n.lat,n.lng));var r=new s.InfoBox(c({},o,t?{position:t}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=g({updaterMap:q,eventMap:Y,prevProps:{},nextProps:this.props,instance:r}),this.setState({infoBox:r},this.setInfoBoxCallback)},r.componentDidUpdate=function(t){var e=this.state.infoBox;null!==e&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:q,eventMap:Y,prevProps:t,nextProps:this.props,instance:e}))},r.componentWillUnmount=function(){var t=this.props.onUnmount,e=this.state.infoBox;null!==e&&(t&&t(e),f(this.registeredEvents),e.close())},r.render=function(){return this.containerElement?i.createPortal(e.Children.only(this.props.children),this.containerElement):null},o}(e.PureComponent);J.contextType=d;var Q={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},X={options:function(t,e){t.setOptions(e)},position:function(t,e){t.setPosition(e)},zIndex:function(t,e){t.setZIndex(e)}},$=function(t){function o(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.containerElement=null,e.state={infoWindow:null},e.open=function(t,o){o?t.open(e.context,o):t.getPosition()?t.open(e.context):n(!1)},e.setInfoWindowCallback=function(){null!==e.state.infoWindow&&null!==e.containerElement&&(e.state.infoWindow.setContent(e.containerElement),e.open(e.state.infoWindow,e.props.anchor),e.props.onLoad&&e.props.onLoad(e.state.infoWindow))},e}u(o,t);var r=o.prototype;return r.componentDidMount=function(){var t=new google.maps.InfoWindow(c({},this.props.options||{}));this.containerElement=document.createElement("div"),this.registeredEvents=g({updaterMap:X,eventMap:Q,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{infoWindow:t}}),this.setInfoWindowCallback)},r.componentDidUpdate=function(t){null!==this.state.infoWindow&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:X,eventMap:Q,prevProps:t,nextProps:this.props,instance:this.state.infoWindow}))},r.componentWillUnmount=function(){null!==this.state.infoWindow&&(f(this.registeredEvents),this.state.infoWindow.close())},r.render=function(){return this.containerElement?i.createPortal(e.Children.only(this.props.children),this.containerElement):e.createElement(e.Fragment,null)},o}(e.PureComponent);$.contextType=d;var tt={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},et={draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},path:function(t,e){t.setPath(e)},visible:function(t,e){t.setVisible(e)}},nt=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={polyline:null},e.setPolylineCallback=function(){null!==e.state.polyline&&e.props.onLoad&&e.props.onLoad(e.state.polyline)},e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=new google.maps.Polyline(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:et,eventMap:tt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{polyline:t}}),this.setPolylineCallback)},o.componentDidUpdate=function(t){null!==this.state.polyline&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:et,eventMap:tt,prevProps:t,nextProps:this.props,instance:this.state.polyline}))},o.componentWillUnmount=function(){null!==this.state.polyline&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),f(this.registeredEvents),this.state.polyline.setMap(null))},o.render=function(){return e.createElement(e.Fragment,null)},n}(e.PureComponent);nt.contextType=d;var ot={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},rt={draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},path:function(t,e){t.setPath(e)},paths:function(t,e){t.setPaths(e)},visible:function(t,e){t.setVisible(e)}},it=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={polygon:null},e.setPolygonCallback=function(){null!==e.state.polygon&&e.props.onLoad&&e.props.onLoad(e.state.polygon)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.Polygon(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:rt,eventMap:ot,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{polygon:t}}),this.setPolygonCallback)},n.componentDidUpdate=function(t){null!==this.state.polygon&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:rt,eventMap:ot,prevProps:t,nextProps:this.props,instance:this.state.polygon}))},n.componentWillUnmount=function(){null!==this.state.polygon&&(this.props.onUnmount&&this.props.onUnmount(this.state.polygon),f(this.registeredEvents),this.state.polygon&&this.state.polygon.setMap(null))},n.render=function(){return null},e}(e.PureComponent);it.contextType=d;var st={onBoundsChanged:"bounds_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},at={bounds:function(t,e){t.setBounds(e)},draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},visible:function(t,e){t.setVisible(e)}},pt=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={rectangle:null},e.setRectangleCallback=function(){null!==e.state.rectangle&&e.props.onLoad&&e.props.onLoad(e.state.rectangle)},e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=new google.maps.Rectangle(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:at,eventMap:st,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{rectangle:t}}),this.setRectangleCallback)},o.componentDidUpdate=function(t){null!==this.state.rectangle&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:at,eventMap:st,prevProps:t,nextProps:this.props,instance:this.state.rectangle}))},o.componentWillUnmount=function(){null!==this.state.rectangle&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),f(this.registeredEvents),this.state.rectangle.setMap(null))},o.render=function(){return e.createElement(e.Fragment,null)},n}(e.PureComponent);pt.contextType=d;var ct={onCenterChanged:"center_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRadiusChanged:"radius_changed",onRightClick:"rightclick"},ut={center:function(t,e){t.setCenter(e)},draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},radius:function(t,e){t.setRadius(e)},visible:function(t,e){t.setVisible(e)}},lt=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={circle:null},e.setCircleCallback=function(){null!==e.state.circle&&e.props.onLoad&&e.props.onLoad(e.state.circle)},e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=new google.maps.Circle(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:ut,eventMap:ct,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{circle:t}}),this.setCircleCallback)},o.componentDidUpdate=function(t){null!==this.state.circle&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:ut,eventMap:ct,prevProps:t,nextProps:this.props,instance:this.state.circle}))},o.componentWillUnmount=function(){null!==this.state.circle&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),f(this.registeredEvents),this.state.circle&&this.state.circle.setMap(null))},o.render=function(){return e.createElement(e.Fragment,null)},n}(e.PureComponent);lt.contextType=d;var dt={onAddFeature:"addfeature",onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onRightClick:"rightclick",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},ht={add:function(t,e){t.add(e)},addgeojson:function(t,e,n){t.addGeoJson(e,n)},contains:function(t,e){t.contains(e)},foreach:function(t,e){t.forEach(e)},loadgeojson:function(t,e,n,o){t.loadGeoJson(e,n,o)},overridestyle:function(t,e,n){t.overrideStyle(e,n)},remove:function(t,e){t.remove(e)},revertstyle:function(t,e){t.revertStyle(e)},controlposition:function(t,e){t.setControlPosition(e)},controls:function(t,e){t.setControls(e)},drawingmode:function(t,e){t.setDrawingMode(e)},map:function(t,e){t.setMap(e)},style:function(t,e){t.setStyle(e)},togeojson:function(t,e){t.toGeoJson(e)}},ft=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={data:null},e.setDataCallback=function(){null!==e.state.data&&e.props.onLoad&&e.props.onLoad(e.state.data)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.Data(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:ht,eventMap:dt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{data:t}}),this.setDataCallback)},n.componentDidUpdate=function(t){null!==this.state.data&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:ht,eventMap:dt,prevProps:t,nextProps:this.props,instance:this.state.data}))},n.componentWillUnmount=function(){null!==this.state.data&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),f(this.registeredEvents),this.state.data&&this.state.data.setMap(null))},n.render=function(){return null},e}(e.PureComponent);ft.contextType=d;var gt={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},mt={options:function(t,e){t.setOptions(e)},url:function(t,e){t.setUrl(e)},zIndex:function(t,e){t.setZIndex(e)}},vt=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={kmlLayer:null},e.setKmlLayerCallback=function(){null!==e.state.kmlLayer&&e.props.onLoad&&e.props.onLoad(e.state.kmlLayer)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.KmlLayer(c({},this.props.options,{map:this.context}));this.registeredEvents=g({updaterMap:mt,eventMap:gt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{kmlLayer:t}}),this.setKmlLayerCallback)},n.componentDidUpdate=function(t){null!==this.state.kmlLayer&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:mt,eventMap:gt,prevProps:t,nextProps:this.props,instance:this.state.kmlLayer}))},n.componentWillUnmount=function(){null!==this.state.kmlLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),f(this.registeredEvents),this.state.kmlLayer.setMap(null))},n.render=function(){return null},e}(e.PureComponent);vt.contextType=d;var yt=function(t,e){return new e(t.lat,t.lng)},Mt=function(t,e){return new e(new google.maps.LatLng(t.ne.lat,t.ne.lng),new google.maps.LatLng(t.sw.lat,t.sw.lng))},Ct=function(t,e,n){return t instanceof e?t:n(t,e)};function Et(t){return t?(t instanceof google.maps.LatLng?t:new google.maps.LatLng(t.lat,t.lng))+"":""}function wt(t){return t?(t instanceof google.maps.LatLngBounds?t:new google.maps.LatLngBounds(new google.maps.LatLng(t.south,t.east),new google.maps.LatLng(t.north,t.west)))+"":""}var xt=function(t){function o(o){var r;(r=t.call(this,o)||this).state={paneEl:null,containerStyle:{position:"absolute"}},r.updatePane=function(){var t=r.props.mapPaneName,e=r.overlayView.getPanes();t||n(!1),r.setState(e?{paneEl:e[t]}:{paneEl:null})},r.onAdd=function(){r.updatePane(),null==r.props.onLoad||r.props.onLoad(r.overlayView)},r.onPositionElement=function(){var t,e,n,o,i,s,a,p,u=(i=r.overlayView.getProjection(),s=c({x:0,y:0},r.containerRef.current?(t=r.containerRef.current,"function"==typeof(e=r.props.getPixelPositionOffset)?e(t.offsetWidth,t.offsetHeight):{}):{}),p=r.props.position,void 0!==(a=r.props.bounds)?function(t,e,n){var o=t&&t.fromLatLngToDivPixel(n.getNorthEast()),r=t&&t.fromLatLngToDivPixel(n.getSouthWest());return o&&r?{left:r.x+e.x+"px",top:o.y+e.y+"px",width:o.x-r.x-e.x+"px",height:r.y-o.y-e.y+"px"}:{left:"-9999px",top:"-9999px"}}(i,s,Ct(a,google.maps.LatLngBounds,Mt)):function(t,e,n){var o=t&&t.fromLatLngToDivPixel(n);return o?{left:o.x+e.x+"px",top:o.y+e.y+"px"}:{left:"-9999px",top:"-9999px"}}(i,s,Ct(p,google.maps.LatLng,yt))),l=r.state.containerStyle;((n=u).left!==(o={left:l.left,top:l.top,width:l.width,height:l.height}).left||n.top!==o.top||n.width!==o.height||n.height!==o.height)&&r.setState({containerStyle:c({},u,{position:"absolute"})})},r.draw=function(){r.onPositionElement()},r.onRemove=function(){r.setState((function(){return{paneEl:null}})),null==r.props.onUnmount||r.props.onUnmount(r.overlayView)},r.containerRef=e.createRef();var i=new google.maps.OverlayView;return i.onAdd=r.onAdd,i.draw=r.draw,i.onRemove=r.onRemove,r.overlayView=i,r}u(o,t);var r=o.prototype;return r.componentDidMount=function(){this.overlayView.setMap(this.context)},r.componentDidUpdate=function(t){var e=Et(t.position),n=Et(this.props.position),o=wt(t.bounds),r=wt(this.props.bounds);e===n&&o===r||this.overlayView.draw(),t.mapPaneName!==this.props.mapPaneName&&this.updatePane()},r.componentWillUnmount=function(){this.overlayView.setMap(null)},r.render=function(){var t=this.state.paneEl;return t?i.createPortal(e.createElement("div",{ref:this.containerRef,style:this.state.containerStyle},e.Children.only(this.props.children)),t):null},o}(e.PureComponent);xt.FLOAT_PANE="floatPane",xt.MAP_PANE="mapPane",xt.MARKER_LAYER="markerLayer",xt.OVERLAY_LAYER="overlayLayer",xt.OVERLAY_MOUSE_TARGET="overlayMouseTarget",xt.contextType=d;var Lt={onDblClick:"dblclick",onClick:"click"},Pt={opacity:function(t,e){t.setOpacity(e)}},bt=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={groundOverlay:null},e.setGroundOverlayCallback=function(){null!==e.state.groundOverlay&&e.props.onLoad&&e.props.onLoad(e.state.groundOverlay)},e}u(e,t);var o=e.prototype;return o.componentDidMount=function(){this.props.url||this.props.bounds||n(!1);var t=new google.maps.GroundOverlay(this.props.url,this.props.bounds,c({},this.props.options,{map:this.context}));this.registeredEvents=g({updaterMap:Pt,eventMap:Lt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{groundOverlay:t}}),this.setGroundOverlayCallback)},o.componentDidUpdate=function(t){null!==this.state.groundOverlay&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:Pt,eventMap:Lt,prevProps:t,nextProps:this.props,instance:this.state.groundOverlay}))},o.componentWillUnmount=function(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))},o.render=function(){return null},e}(e.PureComponent);bt.defaultProps={onLoad:function(){}},bt.contextType=d;var kt={},St={data:function(t,e){t.setData(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)}},Dt=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={heatmapLayer:null},e.setHeatmapLayerCallback=function(){null!==e.state.heatmapLayer&&e.props.onLoad&&e.props.onLoad(e.state.heatmapLayer)},e}u(e,t);var o=e.prototype;return o.componentDidMount=function(){google.maps.visualization||n(!1),this.props.data||n(!1);var t=new google.maps.visualization.HeatmapLayer(c({},this.props.options||{},{data:this.props.data,map:this.context}));this.registeredEvents=g({updaterMap:St,eventMap:kt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{heatmapLayer:t}}),this.setHeatmapLayerCallback)},o.componentDidUpdate=function(t){f(this.registeredEvents),this.registeredEvents=g({updaterMap:St,eventMap:kt,prevProps:t,nextProps:this.props,instance:this.state.heatmapLayer})},o.componentWillUnmount=function(){null!==this.state.heatmapLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),f(this.registeredEvents),this.state.heatmapLayer.setMap(null))},o.render=function(){return null},e}(e.PureComponent);Dt.contextType=d;var Ut={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},Ot={register:function(t,e,n){t.registerPanoProvider(e,n)},links:function(t,e){t.setLinks(e)},motionTracking:function(t,e){t.setMotionTracking(e)},options:function(t,e){t.setOptions(e)},pano:function(t,e){t.setPano(e)},position:function(t,e){t.setPosition(e)},pov:function(t,e){t.setPov(e)},visible:function(t,e){t.setVisible(e)},zoom:function(t,e){t.setZoom(e)}},Rt=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={streetViewPanorama:null},e.setStreetViewPanoramaCallback=function(){null!==e.state.streetViewPanorama&&e.props.onLoad&&e.props.onLoad(e.state.streetViewPanorama)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=this.context.getStreetView();this.registeredEvents=g({updaterMap:Ot,eventMap:Ut,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{streetViewPanorama:t}}),this.setStreetViewPanoramaCallback)},n.componentDidUpdate=function(t){null!==this.state.streetViewPanorama&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:Ot,eventMap:Ut,prevProps:t,nextProps:this.props,instance:this.state.streetViewPanorama}))},n.componentWillUnmount=function(){null!==this.state.streetViewPanorama&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),f(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))},n.render=function(){return null},e}(e.PureComponent);Rt.contextType=d;var Tt=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).state={streetViewService:null},e.setStreetViewServiceCallback=function(){null!==e.state.streetViewService&&e.props.onLoad&&e.props.onLoad(e.state.streetViewService)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.StreetViewService;this.setState((function(){return{streetViewService:t}}),this.setStreetViewServiceCallback)},n.componentWillUnmount=function(){null!==this.state.streetViewService&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)},n.render=function(){return null},e}(e.PureComponent);Tt.contextType=d;var _t=function(t){function o(){var e;return(e=t.apply(this,arguments)||this).state={directionsService:null},e.setDirectionsServiceCallback=function(){null!==e.state.directionsService&&e.props.onLoad&&e.props.onLoad(e.state.directionsService)},e}u(o,t);var r=o.prototype;return r.componentDidMount=function(){this.props.options||n(!1);var t=new google.maps.DirectionsService;this.setState((function(){return{directionsService:t}}),this.setDirectionsServiceCallback)},r.componentDidUpdate=function(){null!==this.state.directionsService&&this.state.directionsService.route(this.props.options,this.props.callback)},r.componentWillUnmount=function(){null!==this.state.directionsService&&this.props.onUnmount&&this.props.onUnmount(this.state.directionsService)},r.render=function(){return e.createElement(e.Fragment,null)},o}(e.PureComponent),It={onDirectionsChanged:"directions_changed"},Vt={directions:function(t,e){t.setDirections(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},panel:function(t,e){t.setPanel(e)},routeIndex:function(t,e){t.setRouteIndex(e)}},Bt=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={directionsRenderer:null},e.setDirectionsRendererCallback=function(){null!==e.state.directionsRenderer&&(e.state.directionsRenderer.setMap(e.context),e.props.onLoad&&e.props.onLoad(e.state.directionsRenderer))},e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=g({updaterMap:Vt,eventMap:It,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{directionsRenderer:t}}),this.setDirectionsRendererCallback)},o.componentDidUpdate=function(t){null!==this.state.directionsRenderer&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:Vt,eventMap:It,prevProps:t,nextProps:this.props,instance:this.state.directionsRenderer}))},o.componentWillUnmount=function(){null!==this.state.directionsRenderer&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),f(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))},o.render=function(){return e.createElement(e.Fragment,null)},n}(e.PureComponent);Bt.contextType=d;var jt=function(t){function o(){var e;return(e=t.apply(this,arguments)||this).state={distanceMatrixService:null},e.setDistanceMatrixServiceCallback=function(){null!==e.state.distanceMatrixService&&e.props.onLoad&&e.props.onLoad(e.state.distanceMatrixService)},e}u(o,t);var r=o.prototype;return r.componentDidMount=function(){this.props.options||n(!1);var t=new google.maps.DistanceMatrixService;this.setState((function(){return{distanceMatrixService:t}}),this.setDistanceMatrixServiceCallback)},r.componentDidUpdate=function(){null!==this.state.distanceMatrixService&&this.state.distanceMatrixService.getDistanceMatrix(this.props.options,this.props.callback)},r.componentWillUnmount=function(){null!==this.state.distanceMatrixService&&this.props.onUnmount&&this.props.onUnmount(this.state.distanceMatrixService)},r.render=function(){return e.createElement(e.Fragment,null)},o}(e.PureComponent),Wt={onPlacesChanged:"places_changed"},At={bounds:function(t,e){t.setBounds(e)}},Nt=function(t){function o(){var n;return(n=t.apply(this,arguments)||this).registeredEvents=[],n.containerElement=e.createRef(),n.state={searchBox:null},n.setSearchBoxCallback=function(){null!==n.state.searchBox&&n.props.onLoad&&n.props.onLoad(n.state.searchBox)},n}u(o,t);var r=o.prototype;return r.componentDidMount=function(){if(google.maps.places||n(!1),null!==this.containerElement&&null!==this.containerElement.current){var t=this.containerElement.current.querySelector("input");if(null!==t){var e=new google.maps.places.SearchBox(t,this.props.options);this.registeredEvents=g({updaterMap:At,eventMap:Wt,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{searchBox:e}}),this.setSearchBoxCallback)}}},r.componentDidUpdate=function(t){null!==this.state.searchBox&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:At,eventMap:Wt,prevProps:t,nextProps:this.props,instance:this.state.searchBox}))},r.componentWillUnmount=function(){null!==this.state.searchBox&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),f(this.registeredEvents))},r.render=function(){return e.createElement("div",{ref:this.containerElement},e.Children.only(this.props.children))},o}(e.PureComponent);Nt.contextType=d;var Gt={onPlaceChanged:"place_changed"},zt={bounds:function(t,e){t.setBounds(e)},restrictions:function(t,e){t.setComponentRestrictions(e)},fields:function(t,e){t.setFields(e)},options:function(t,e){t.setOptions(e)},types:function(t,e){t.setTypes(e)}},Ft=function(t){function o(){var n;return(n=t.apply(this,arguments)||this).registeredEvents=[],n.containerElement=e.createRef(),n.state={autocomplete:null},n.setAutocompleteCallback=function(){null!==n.state.autocomplete&&n.props.onLoad&&n.props.onLoad(n.state.autocomplete)},n}u(o,t);var r=o.prototype;return r.componentDidMount=function(){google.maps.places||n(!1);var t=this.containerElement.current.querySelector("input");if(t){var e=new google.maps.places.Autocomplete(t,this.props.options);this.registeredEvents=g({updaterMap:zt,eventMap:Gt,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{autocomplete:e}}),this.setAutocompleteCallback)}},r.componentDidUpdate=function(t){f(this.registeredEvents),this.registeredEvents=g({updaterMap:zt,eventMap:Gt,prevProps:t,nextProps:this.props,instance:this.state.autocomplete})},r.componentWillUnmount=function(){null!==this.state.autocomplete&&f(this.registeredEvents)},r.render=function(){return e.createElement("div",{ref:this.containerElement,className:this.props.className||""},e.Children.only(this.props.children))},o}(e.PureComponent);Ft.contextType=d,t.Autocomplete=Ft,t.BicyclingLayer=B,t.Circle=lt,t.Data=ft,t.DirectionsRenderer=Bt,t.DirectionsService=_t,t.DistanceMatrixService=jt,t.DrawingManager=N,t.GoogleMap=y,t.GroundOverlay=bt,t.HeatmapLayer=Dt,t.InfoBox=J,t.InfoWindow=$,t.KmlLayer=vt,t.LoadScript=D,t.LoadScriptNext=T,t.MapContext=d,t.Marker=F,t.MarkerClusterer=K,t.OverlayView=xt,t.Polygon=it,t.Polyline=nt,t.Rectangle=pt,t.StandaloneSearchBox=Nt,t.StreetViewPanorama=Rt,t.StreetViewService=Tt,t.TrafficLayer=V,t.TransitLayer=j,t.useGoogleMap=function(){e.useContext||n(!1);var t=e.useContext(d);return t||n(!1),t},t.useJsApiLoader=function(t){var n=t.id,r=void 0===n?S.id:n,i=t.version,s=void 0===i?S.version:i,a=t.nonce,p=t.googleMapsApiKey,c=t.language,u=t.region,l=t.libraries,d=t.preventGoogleFontsLoading,h=t.mapIds,f=e.useState(!1),g=f[0],m=f[1],v=e.useState(void 0),y=v[0],M=v[1],E=e.useMemo((function(){return new o.Loader({id:r,apiKey:p,version:s,libraries:l,language:c,region:u,mapIds:h,nonce:a})}),[r,p,s,l,c,u,h,a]);e.useEffect((function(){g||E.load().then((function(){m(!0)})).catch((function(t){M(t)}))}),[]),e.useEffect((function(){C&&d&&x()}),[d]);var w=e.useRef();return e.useEffect((function(){w.current&&l!==w.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),w.current=l}),[l]),{isLoaded:g,loadError:y}},t.useLoadScript=U}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("invariant"),require("@googlemaps/js-api-loader"),require("@react-google-maps/marker-clusterer"),require("react-dom"),require("@react-google-maps/infobox")):"function"==typeof define&&define.amd?define(["exports","react","invariant","@googlemaps/js-api-loader","@react-google-maps/marker-clusterer","react-dom","@react-google-maps/infobox"],e):e((t=t||self).reactGoogleMapsApi={},t.React,t.invariant,t.jsApiLoader,t.markerClusterer,t.ReactDOM,t.infobox)}(this,(function(t,e,n,o,r,i,s){"use strict";function a(t,e,n,o,r,i,s){try{var a=t[i](s),p=a.value}catch(t){return void n(t)}a.done?e(p):Promise.resolve(p).then(o,r)}function p(t){return function(){var e=this,n=arguments;return new Promise((function(o,r){var i=t.apply(e,n);function s(t){a(i,o,r,s,p,"next",t)}function p(t){a(i,o,r,s,p,"throw",t)}s(void 0)}))}}function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function l(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)e.indexOf(n=i[o])>=0||(r[n]=t[n]);return r}n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var d=e.createContext(null);function h(t){google.maps.event.removeListener(t)}function f(t){void 0===t&&(t=[]),t.forEach(h)}function g(t){var e=t.updaterMap,n=t.prevProps,o=t.nextProps,r=t.instance,i=function(t,e,n){return o=n,Object.keys(o).reduce((function(n,r){return i=n,"function"==typeof t[s=r]&&i.push(google.maps.event.addListener(e,o[r],t[s])),i;var i,s}),[]);var o}(o,r,t.eventMap);return function(t,e,n,o){var r,i={};r=t,Object.keys(r).forEach((function(t){return function(t,r){var s=n[r];s!==e[r]&&(i[r]=s,t(o,s))}(r[t],t)}))}(e,n,o,r),i}var m={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},v={extraMapTypes:function(t,e){e.forEach((function(e,n){t.mapTypes.set(String(n),e)}))},center:function(t,e){t.setCenter(e)},clickableIcons:function(t,e){t.setClickableIcons(e)},heading:function(t,e){t.setHeading(e)},mapTypeId:function(t,e){t.setMapTypeId(e)},options:function(t,e){t.setOptions(e)},streetView:function(t,e){t.setStreetView(e)},tilt:function(t,e){t.setTilt(e)},zoom:function(t,e){t.setZoom(e)}},y=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={map:null},e.registeredEvents=[],e.mapRef=null,e.getInstance=function(){return null===e.mapRef?null:new google.maps.Map(e.mapRef,e.props.options)},e.panTo=function(t){var n=e.getInstance();n&&n.panTo(t)},e.setMapCallback=function(){null!==e.state.map&&e.props.onLoad&&e.props.onLoad(e.state.map)},e.getRef=function(t){e.mapRef=t},e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=this.getInstance();this.registeredEvents=g({updaterMap:v,eventMap:m,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{map:t}}),this.setMapCallback)},o.componentDidUpdate=function(t){null!==this.state.map&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:v,eventMap:m,prevProps:t,nextProps:this.props,instance:this.state.map}))},o.componentWillUnmount=function(){null!==this.state.map&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),f(this.registeredEvents))},o.render=function(){return e.createElement("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName},e.createElement(d.Provider,{value:this.state.map},null!==this.state.map?this.props.children:e.createElement(e.Fragment,null)))},n}(e.PureComponent),M=function(t,e){return function(t){var e=function(t){var e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function a(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{a({},"")}catch(t){a=function(t,e,n){return t[e]=n}}function p(t,e,n,o){var r=Object.create((e&&e.prototype instanceof l?e:l).prototype),i=new x(o||[]);return r._invoke=function(t,e,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return{value:void 0,done:!0}}for(n.method=r,n.arg=i;;){var s=n.delegate;if(s){var a=C(s,n);if(a){if(a===u)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var p=c(t,e,n);if("normal"===p.type){if(o=n.done?"completed":"suspendedYield",p.arg===u)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o="completed",n.method="throw",n.arg=p.arg)}}}(t,n,i),r}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var u={};function l(){}function d(){}function h(){}var f={};f[r]=function(){return this};var g=Object.getPrototypeOf,m=g&&g(g(L([])));m&&m!==e&&n.call(m,r)&&(f=m);var v=h.prototype=l.prototype=Object.create(f);function y(t){["next","throw","return"].forEach((function(e){a(t,e,(function(t){return this._invoke(e,t)}))}))}function M(t,e){var o;this._invoke=function(r,i){function s(){return new e((function(o,s){!function o(r,i,s,a){var p=c(t[r],t,i);if("throw"!==p.type){var u=p.arg,l=u.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){o("next",t,s,a)}),(function(t){o("throw",t,s,a)})):e.resolve(l).then((function(t){u.value=t,s(u)}),(function(t){return o("throw",t,s,a)}))}a(p.arg)}(r,i,o,s)}))}return o=o?o.then(s,s):s()}}function C(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var o=c(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,u;var r=o.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function L(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v.constructor=h,h.constructor=d,d.displayName=a(h,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,a(t,s,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},y(M.prototype),M.prototype[i]=function(){return this},t.AsyncIterator=M,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var s=new M(p(e,n,o,r),i);return t.isGeneratorFunction(n)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},y(v),a(v,s,"Generator"),v[r]=function(){return this},v.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var o=e.pop();if(o in t)return n.value=o,n.done=!1,n}return n.done=!0,n}},t.values=L,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(n,o){return s.type="throw",s.arg=t,e.next=n,o&&(e.method="next",e.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),p=n.call(i,"finallyLoc");if(a&&p){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!p)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=t,s.arg=e,i?(this.method="next",this.next=i.finallyLoc,u):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),w(n),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var r=o.arg;w(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:L(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}(e={exports:{}}),e.exports}(),C="undefined"!=typeof document,E=function(t){var e=t.url,n=t.id,o=t.nonce;return C?new Promise((function(t,r){var i=document.getElementById(n),s=window;if(i){var a=i.getAttribute("data-state");if(i.src===e&&"error"!==a){if("ready"===a)return t(n);var p=s.initMap,c=i.onerror;return s.initMap=function(){p&&p(),t(n)},void(i.onerror=function(t){c&&c(t),r(t)})}i.remove()}var u=document.createElement("script");u.type="text/javascript",u.src=e,u.id=n,u.async=!0,u.nonce=o,u.onerror=function(t){u.setAttribute("data-state","error"),r(t)},s.initMap=function(){u.setAttribute("data-state","ready"),t(n)},document.head.appendChild(u)})).catch((function(t){throw console.error("injectScript error: ",t),t})):Promise.reject(new Error("document is undefined"))},w=function(t){return!((!t.href||0!==t.href.indexOf("https://fonts.googleapis.com/css?family=Roboto"))&&("style"===t.tagName.toLowerCase()&&t.styleSheet&&t.styleSheet.cssText&&0===t.styleSheet.cssText.replace("\r\n","").indexOf(".gm-style")?(t.styleSheet.cssText="",0):"style"===t.tagName.toLowerCase()&&t.innerHTML&&0===t.innerHTML.replace("\r\n","").indexOf(".gm-style")?(t.innerHTML="",0):"style"!==t.tagName.toLowerCase()||t.styleSheet||t.innerHTML))},x=function(){var t=document.getElementsByTagName("head")[0],e=t.insertBefore.bind(t);t.insertBefore=function(n,o){w(n)||Reflect.apply(e,t,[n,o])};var n=t.appendChild.bind(t);t.appendChild=function(e){w(e)||Reflect.apply(n,t,[e])}};function L(t){var e=t.googleMapsApiKey,o=t.googleMapsClientId,r=t.version,i=void 0===r?"weekly":r,s=t.language,a=t.region,p=t.libraries,c=t.channel,u=t.mapIds,l=[];return e&&o||!e||!o||n(!1),e?l.push("key="+e):o&&l.push("client="+o),i&&l.push("v="+i),s&&l.push("language="+s),a&&l.push("region="+a),p&&p.length&&l.push("libraries="+p.sort().join(",")),c&&l.push("channel="+c),u&&u.length&&l.push("map_ids="+u.join(",")),l.push("callback=initMap"),"https://maps.googleapis.com/maps/api/js?"+l.join("&")}var P=!1;function b(){return e.createElement("div",null,"Loading...")}var k,S={id:"script-loader",version:"weekly"},D=function(t){function o(){var o;return(o=t.apply(this,arguments)||this).check=e.createRef(),o.state={loaded:!1},o.cleanupCallback=function(){delete window.google.maps,o.injectScript()},o.isCleaningUp=p(M.mark((function t(){return M.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){if(P){if(C)var e=window.setInterval((function(){P||(window.clearInterval(e),t())}),1)}else t()})));case 2:case"end":return t.stop()}}),t)}))),o.cleanup=function(){P=!0;var t=document.getElementById(o.props.id);t&&t.parentNode&&t.parentNode.removeChild(t),Array.prototype.slice.call(document.getElementsByTagName("script")).filter((function(t){return"string"==typeof t.src&&t.src.includes("maps.googleapis")})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)})),Array.prototype.slice.call(document.getElementsByTagName("link")).filter((function(t){return"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"===t.href})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)})),Array.prototype.slice.call(document.getElementsByTagName("style")).filter((function(t){return void 0!==t.innerText&&t.innerText.length>0&&t.innerText.includes(".gm-")})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))},o.injectScript=function(){o.props.preventGoogleFontsLoading&&x(),o.props.id||n(!1);var t={id:o.props.id,nonce:o.props.nonce,url:L(o.props)};E(t).then((function(){o.props.onLoad&&o.props.onLoad(),o.setState((function(){return{loaded:!0}}))})).catch((function(t){o.props.onError&&o.props.onError(t),console.error("\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key ("+(o.props.googleMapsApiKey||"-")+") or Client ID ("+(o.props.googleMapsClientId||"-")+") to <LoadScript />\n Otherwise it is a Network issue.\n ")}))},o}u(o,t);var r=o.prototype;return r.componentDidMount=function(){if(C){if(window.google&&window.google.maps&&!P)return void console.error("google api is already presented");this.isCleaningUp().then(this.injectScript).catch((function(t){console.error("Error at injecting script after cleaning up: ",t)}))}},r.componentDidUpdate=function(t){this.props.libraries!==t.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),C&&t.language!==this.props.language&&(this.cleanup(),this.setState((function(){return{loaded:!1}}),this.cleanupCallback))},r.componentWillUnmount=function(){var t=this;C&&(this.cleanup(),window.setTimeout((function(){t.check.current||(delete window.google,P=!1)}),1),this.props.onUnmount&&this.props.onUnmount())},r.render=function(){return e.createElement(e.Fragment,null,e.createElement("div",{ref:this.check}),this.state.loaded?this.props.children:this.props.loadingElement||e.createElement(b,null))},o}(e.PureComponent);function U(t){var o=t.id,r=void 0===o?S.id:o,i=t.version,s=void 0===i?S.version:i,a=t.nonce,p=t.googleMapsApiKey,c=t.googleMapsClientId,u=t.language,l=t.region,d=t.libraries,h=t.preventGoogleFontsLoading,f=t.channel,g=t.mapIds,m=e.useRef(!1),v=e.useState(!1),y=v[0],M=v[1],w=e.useState(void 0),P=w[0],b=w[1];e.useEffect((function(){return m.current=!0,function(){m.current=!1}}),[]),e.useEffect((function(){C&&h&&x()}),[h]),e.useEffect((function(){y&&(window.google||n(!1))}),[y]);var D=L({version:s,googleMapsApiKey:p,googleMapsClientId:c,language:u,region:l,libraries:d,channel:f,mapIds:g});e.useEffect((function(){function t(){m.current&&(M(!0),k=D)}C&&(window.google&&window.google.maps&&k===D?t():E({id:r,url:D,nonce:a}).then(t).catch((function(t){m.current&&b(t),console.warn("\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key ("+(p||"-")+") or Client ID ("+(c||"-")+")\n Otherwise it is a Network issue.\n "),console.error(t)})))}),[r,D,a]);var U=e.useRef();return e.useEffect((function(){U.current&&d!==U.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),U.current=d}),[d]),{isLoaded:y,loadError:P,url:D}}D.defaultProps=S;var O=e.createElement(b,null);function R(t){var n=t.loadingElement,o=t.onLoad,r=t.onError,i=t.onUnmount,s=t.children,a=U(l(t,["loadingElement","onLoad","onError","onUnmount","children"])),p=a.isLoaded,c=a.loadError;return e.useEffect((function(){p&&"function"==typeof o&&o()}),[p,o]),e.useEffect((function(){c&&"function"==typeof r&&r(c)}),[c,r]),e.useEffect((function(){return function(){i&&i()}}),[i]),p?s:n||O}var T=e.memo(R),_={},I={options:function(t,e){t.setOptions(e)}},V=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).state={trafficLayer:null},e.setTrafficLayerCallback=function(){null!==e.state.trafficLayer&&e.props.onLoad&&e.props.onLoad(e.state.trafficLayer)},e.registeredEvents=[],e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.TrafficLayer(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:I,eventMap:_,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{trafficLayer:t}}),this.setTrafficLayerCallback)},n.componentDidUpdate=function(t){null!==this.state.trafficLayer&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:I,eventMap:_,prevProps:t,nextProps:this.props,instance:this.state.trafficLayer}))},n.componentWillUnmount=function(){null!==this.state.trafficLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),f(this.registeredEvents),this.state.trafficLayer.setMap(null))},n.render=function(){return null},e}(e.PureComponent);V.contextType=d;var B=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).state={bicyclingLayer:null},e.setBicyclingLayerCallback=function(){null!==e.state.bicyclingLayer&&(e.state.bicyclingLayer.setMap(e.context),e.props.onLoad&&e.props.onLoad(e.state.bicyclingLayer))},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.BicyclingLayer;this.setState((function(){return{bicyclingLayer:t}}),this.setBicyclingLayerCallback)},n.componentWillUnmount=function(){null!==this.state.bicyclingLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))},n.render=function(){return null},e}(e.PureComponent);B.contextType=d;var j=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).state={transitLayer:null},e.setTransitLayerCallback=function(){null!==e.state.transitLayer&&(e.state.transitLayer.setMap(e.context),e.props.onLoad&&e.props.onLoad(e.state.transitLayer))},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.TransitLayer;this.setState((function(){return{transitLayer:t}}),this.setTransitLayerCallback)},n.componentWillUnmount=function(){null!==this.state.transitLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))},n.render=function(){return null},e}(e.PureComponent);j.contextType=d;var W={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},A={drawingMode:function(t,e){t.setDrawingMode(e)},options:function(t,e){t.setOptions(e)}},N=function(t){function o(e){var o;return(o=t.call(this,e)||this).registeredEvents=[],o.state={drawingManager:null},o.setDrawingManagerCallback=function(){null!==o.state.drawingManager&&o.props.onLoad&&o.props.onLoad(o.state.drawingManager)},google.maps.drawing||n(!1),o}u(o,t);var r=o.prototype;return r.componentDidMount=function(){var t=new google.maps.drawing.DrawingManager(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:A,eventMap:W,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{drawingManager:t}}),this.setDrawingManagerCallback)},r.componentDidUpdate=function(t){null!==this.state.drawingManager&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:A,eventMap:W,prevProps:t,nextProps:this.props,instance:this.state.drawingManager}))},r.componentWillUnmount=function(){null!==this.state.drawingManager&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),f(this.registeredEvents),this.state.drawingManager.setMap(null))},r.render=function(){return e.createElement(e.Fragment,null)},o}(e.PureComponent);N.contextType=d;var G={onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDraggableChanged:"draggable_changed",onDragStart:"dragstart",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPositionChanged:"position_changed",onRightClick:"rightclick",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},z={animation:function(t,e){t.setAnimation(e)},clickable:function(t,e){t.setClickable(e)},cursor:function(t,e){t.setCursor(e)},draggable:function(t,e){t.setDraggable(e)},icon:function(t,e){t.setIcon(e)},label:function(t,e){t.setLabel(e)},map:function(t,e){t.setMap(e)},opacity:function(t,e){t.setOpacity(e)},options:function(t,e){t.setOptions(e)},position:function(t,e){t.setPosition(e)},shape:function(t,e){t.setShape(e)},title:function(t,e){t.setTitle(e)},visible:function(t,e){t.setVisible(e)},zIndex:function(t,e){t.setZIndex(e)}},F=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=c({},this.props.options||{},this.props.clusterer?{}:{map:this.context},{position:this.props.position});this.marker=new google.maps.Marker(t),this.props.clusterer?this.props.clusterer.addMarker(this.marker,!!this.props.noClustererRedraw):this.marker.setMap(this.context),this.registeredEvents=g({updaterMap:z,eventMap:G,prevProps:{},nextProps:this.props,instance:this.marker}),this.props.onLoad&&this.props.onLoad(this.marker)},o.componentDidUpdate=function(t){this.marker&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:z,eventMap:G,prevProps:t,nextProps:this.props,instance:this.marker}))},o.componentWillUnmount=function(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),f(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))},o.render=function(){var t=this,n=null;return this.props.children&&(n=e.Children.map(this.props.children,(function(n){return e.isValidElement(n)?e.cloneElement(n,{anchor:t.marker}):n}))),n||null},n}(e.PureComponent);F.contextType=d;var Z={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},H={averageCenter:function(t,e){t.setAverageCenter(e)},batchSizeIE:function(t,e){t.setBatchSizeIE(e)},calculator:function(t,e){t.setCalculator(e)},clusterClass:function(t,e){t.setClusterClass(e)},enableRetinaIcons:function(t,e){t.setEnableRetinaIcons(e)},gridSize:function(t,e){t.setGridSize(e)},ignoreHidden:function(t,e){t.setIgnoreHidden(e)},imageExtension:function(t,e){t.setImageExtension(e)},imagePath:function(t,e){t.setImagePath(e)},imageSizes:function(t,e){t.setImageSizes(e)},maxZoom:function(t,e){t.setMaxZoom(e)},minimumClusterSize:function(t,e){t.setMinimumClusterSize(e)},styles:function(t,e){t.setStyles(e)},title:function(t,e){t.setTitle(e)},zoomOnClick:function(t,e){t.setZoomOnClick(e)}},K=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={markerClusterer:null},e.setClustererCallback=function(){null!==e.state.markerClusterer&&e.props.onLoad&&e.props.onLoad(e.state.markerClusterer)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){if(this.context){var t=new r.Clusterer(this.context,[],this.props.options);this.registeredEvents=g({updaterMap:H,eventMap:Z,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{markerClusterer:t}}),this.setClustererCallback)}},n.componentDidUpdate=function(t){this.state.markerClusterer&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:H,eventMap:Z,prevProps:t,nextProps:this.props,instance:this.state.markerClusterer}))},n.componentWillUnmount=function(){null!==this.state.markerClusterer&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),f(this.registeredEvents),this.state.markerClusterer.setMap(null))},n.render=function(){return null!==this.state.markerClusterer?this.props.children(this.state.markerClusterer):null},e}(e.PureComponent);K.contextType=d;var Y={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},q={options:function(t,e){t.setOptions(e)},position:function(t,e){e instanceof google.maps.LatLng?t.setPosition(e):t.setPosition(new google.maps.LatLng(e.lat,e.lng))},visible:function(t,e){t.setVisible(e)},zIndex:function(t,e){t.setZIndex(e)}},J=function(t){function o(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.containerElement=null,e.state={infoBox:null},e.open=function(t,o){o?t.open(e.context,o):t.getPosition()?t.open(e.context):n(!1)},e.setInfoBoxCallback=function(){var t=e.props,n=t.anchor,o=t.onLoad,r=e.state.infoBox;null!==r&&null!==e.containerElement&&(r.setContent(e.containerElement),e.open(r,n),o&&o(r))},e}u(o,t);var r=o.prototype;return r.componentDidMount=function(){var t,e=this.props.options||{},n=e.position,o=l(e,["position"]);!n||n instanceof google.maps.LatLng||(t=new google.maps.LatLng(n.lat,n.lng));var r=new s.InfoBox(c({},o,t?{position:t}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=g({updaterMap:q,eventMap:Y,prevProps:{},nextProps:this.props,instance:r}),this.setState({infoBox:r},this.setInfoBoxCallback)},r.componentDidUpdate=function(t){var e=this.state.infoBox;null!==e&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:q,eventMap:Y,prevProps:t,nextProps:this.props,instance:e}))},r.componentWillUnmount=function(){var t=this.props.onUnmount,e=this.state.infoBox;null!==e&&(t&&t(e),f(this.registeredEvents),e.close())},r.render=function(){return this.containerElement?i.createPortal(e.Children.only(this.props.children),this.containerElement):null},o}(e.PureComponent);J.contextType=d;var Q={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},X={options:function(t,e){t.setOptions(e)},position:function(t,e){t.setPosition(e)},zIndex:function(t,e){t.setZIndex(e)}},$=function(t){function o(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.containerElement=null,e.state={infoWindow:null},e.open=function(t,o){o?t.open(e.context,o):t.getPosition()?t.open(e.context):n(!1)},e.setInfoWindowCallback=function(){null!==e.state.infoWindow&&null!==e.containerElement&&(e.state.infoWindow.setContent(e.containerElement),e.open(e.state.infoWindow,e.props.anchor),e.props.onLoad&&e.props.onLoad(e.state.infoWindow))},e}u(o,t);var r=o.prototype;return r.componentDidMount=function(){var t=new google.maps.InfoWindow(c({},this.props.options||{}));this.containerElement=document.createElement("div"),this.registeredEvents=g({updaterMap:X,eventMap:Q,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{infoWindow:t}}),this.setInfoWindowCallback)},r.componentDidUpdate=function(t){null!==this.state.infoWindow&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:X,eventMap:Q,prevProps:t,nextProps:this.props,instance:this.state.infoWindow}))},r.componentWillUnmount=function(){null!==this.state.infoWindow&&(f(this.registeredEvents),this.state.infoWindow.close())},r.render=function(){return this.containerElement?i.createPortal(e.Children.only(this.props.children),this.containerElement):e.createElement(e.Fragment,null)},o}(e.PureComponent);$.contextType=d;var tt={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},et={draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},path:function(t,e){t.setPath(e)},visible:function(t,e){t.setVisible(e)}},nt=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={polyline:null},e.setPolylineCallback=function(){null!==e.state.polyline&&e.props.onLoad&&e.props.onLoad(e.state.polyline)},e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=new google.maps.Polyline(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:et,eventMap:tt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{polyline:t}}),this.setPolylineCallback)},o.componentDidUpdate=function(t){null!==this.state.polyline&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:et,eventMap:tt,prevProps:t,nextProps:this.props,instance:this.state.polyline}))},o.componentWillUnmount=function(){null!==this.state.polyline&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),f(this.registeredEvents),this.state.polyline.setMap(null))},o.render=function(){return e.createElement(e.Fragment,null)},n}(e.PureComponent);nt.contextType=d;var ot={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},rt={draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},path:function(t,e){t.setPath(e)},paths:function(t,e){t.setPaths(e)},visible:function(t,e){t.setVisible(e)}},it=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={polygon:null},e.setPolygonCallback=function(){null!==e.state.polygon&&e.props.onLoad&&e.props.onLoad(e.state.polygon)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.Polygon(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:rt,eventMap:ot,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{polygon:t}}),this.setPolygonCallback)},n.componentDidUpdate=function(t){null!==this.state.polygon&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:rt,eventMap:ot,prevProps:t,nextProps:this.props,instance:this.state.polygon}))},n.componentWillUnmount=function(){null!==this.state.polygon&&(this.props.onUnmount&&this.props.onUnmount(this.state.polygon),f(this.registeredEvents),this.state.polygon&&this.state.polygon.setMap(null))},n.render=function(){return null},e}(e.PureComponent);it.contextType=d;var st={onBoundsChanged:"bounds_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},at={bounds:function(t,e){t.setBounds(e)},draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},visible:function(t,e){t.setVisible(e)}},pt=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={rectangle:null},e.setRectangleCallback=function(){null!==e.state.rectangle&&e.props.onLoad&&e.props.onLoad(e.state.rectangle)},e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=new google.maps.Rectangle(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:at,eventMap:st,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{rectangle:t}}),this.setRectangleCallback)},o.componentDidUpdate=function(t){null!==this.state.rectangle&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:at,eventMap:st,prevProps:t,nextProps:this.props,instance:this.state.rectangle}))},o.componentWillUnmount=function(){null!==this.state.rectangle&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),f(this.registeredEvents),this.state.rectangle.setMap(null))},o.render=function(){return e.createElement(e.Fragment,null)},n}(e.PureComponent);pt.contextType=d;var ct={onCenterChanged:"center_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRadiusChanged:"radius_changed",onRightClick:"rightclick"},ut={center:function(t,e){t.setCenter(e)},draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},radius:function(t,e){t.setRadius(e)},visible:function(t,e){t.setVisible(e)}},lt=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={circle:null},e.setCircleCallback=function(){null!==e.state.circle&&e.props.onLoad&&e.props.onLoad(e.state.circle)},e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=new google.maps.Circle(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:ut,eventMap:ct,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{circle:t}}),this.setCircleCallback)},o.componentDidUpdate=function(t){null!==this.state.circle&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:ut,eventMap:ct,prevProps:t,nextProps:this.props,instance:this.state.circle}))},o.componentWillUnmount=function(){null!==this.state.circle&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),f(this.registeredEvents),this.state.circle&&this.state.circle.setMap(null))},o.render=function(){return e.createElement(e.Fragment,null)},n}(e.PureComponent);lt.contextType=d;var dt={onAddFeature:"addfeature",onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onRightClick:"rightclick",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},ht={add:function(t,e){t.add(e)},addgeojson:function(t,e,n){t.addGeoJson(e,n)},contains:function(t,e){t.contains(e)},foreach:function(t,e){t.forEach(e)},loadgeojson:function(t,e,n,o){t.loadGeoJson(e,n,o)},overridestyle:function(t,e,n){t.overrideStyle(e,n)},remove:function(t,e){t.remove(e)},revertstyle:function(t,e){t.revertStyle(e)},controlposition:function(t,e){t.setControlPosition(e)},controls:function(t,e){t.setControls(e)},drawingmode:function(t,e){t.setDrawingMode(e)},map:function(t,e){t.setMap(e)},style:function(t,e){t.setStyle(e)},togeojson:function(t,e){t.toGeoJson(e)}},ft=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={data:null},e.setDataCallback=function(){null!==e.state.data&&e.props.onLoad&&e.props.onLoad(e.state.data)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.Data(c({},this.props.options||{},{map:this.context}));this.registeredEvents=g({updaterMap:ht,eventMap:dt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{data:t}}),this.setDataCallback)},n.componentDidUpdate=function(t){null!==this.state.data&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:ht,eventMap:dt,prevProps:t,nextProps:this.props,instance:this.state.data}))},n.componentWillUnmount=function(){null!==this.state.data&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),f(this.registeredEvents),this.state.data&&this.state.data.setMap(null))},n.render=function(){return null},e}(e.PureComponent);ft.contextType=d;var gt={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},mt={options:function(t,e){t.setOptions(e)},url:function(t,e){t.setUrl(e)},zIndex:function(t,e){t.setZIndex(e)}},vt=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={kmlLayer:null},e.setKmlLayerCallback=function(){null!==e.state.kmlLayer&&e.props.onLoad&&e.props.onLoad(e.state.kmlLayer)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.KmlLayer(c({},this.props.options,{map:this.context}));this.registeredEvents=g({updaterMap:mt,eventMap:gt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{kmlLayer:t}}),this.setKmlLayerCallback)},n.componentDidUpdate=function(t){null!==this.state.kmlLayer&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:mt,eventMap:gt,prevProps:t,nextProps:this.props,instance:this.state.kmlLayer}))},n.componentWillUnmount=function(){null!==this.state.kmlLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),f(this.registeredEvents),this.state.kmlLayer.setMap(null))},n.render=function(){return null},e}(e.PureComponent);vt.contextType=d;var yt=function(t,e){return new e(t.lat,t.lng)},Mt=function(t,e){return new e(new google.maps.LatLng(t.ne.lat,t.ne.lng),new google.maps.LatLng(t.sw.lat,t.sw.lng))},Ct=function(t,e,n){return t instanceof e?t:n(t,e)};function Et(t){return t?(t instanceof google.maps.LatLng?t:new google.maps.LatLng(t.lat,t.lng))+"":""}function wt(t){return t?(t instanceof google.maps.LatLngBounds?t:new google.maps.LatLngBounds(new google.maps.LatLng(t.south,t.east),new google.maps.LatLng(t.north,t.west)))+"":""}var xt=function(t){function o(o){var r;(r=t.call(this,o)||this).state={paneEl:null,containerStyle:{position:"absolute"}},r.updatePane=function(){var t=r.props.mapPaneName,e=r.overlayView.getPanes();t||n(!1),r.setState(e?{paneEl:e[t]}:{paneEl:null})},r.onAdd=function(){r.updatePane(),null==r.props.onLoad||r.props.onLoad(r.overlayView)},r.onPositionElement=function(){var t,e,n,o,i,s,a,p,u=(i=r.overlayView.getProjection(),s=c({x:0,y:0},r.containerRef.current?(t=r.containerRef.current,"function"==typeof(e=r.props.getPixelPositionOffset)?e(t.offsetWidth,t.offsetHeight):{}):{}),p=r.props.position,void 0!==(a=r.props.bounds)?function(t,e,n){var o=t&&t.fromLatLngToDivPixel(n.getNorthEast()),r=t&&t.fromLatLngToDivPixel(n.getSouthWest());return o&&r?{left:r.x+e.x+"px",top:o.y+e.y+"px",width:o.x-r.x-e.x+"px",height:r.y-o.y-e.y+"px"}:{left:"-9999px",top:"-9999px"}}(i,s,Ct(a,google.maps.LatLngBounds,Mt)):function(t,e,n){var o=t&&t.fromLatLngToDivPixel(n);return o?{left:o.x+e.x+"px",top:o.y+e.y+"px"}:{left:"-9999px",top:"-9999px"}}(i,s,Ct(p,google.maps.LatLng,yt))),l=r.state.containerStyle;((n=u).left!==(o={left:l.left,top:l.top,width:l.width,height:l.height}).left||n.top!==o.top||n.width!==o.height||n.height!==o.height)&&r.setState({containerStyle:c({},u,{position:"absolute"})})},r.draw=function(){r.onPositionElement()},r.onRemove=function(){r.setState((function(){return{paneEl:null}})),null==r.props.onUnmount||r.props.onUnmount(r.overlayView)},r.containerRef=e.createRef();var i=new google.maps.OverlayView;return i.onAdd=r.onAdd,i.draw=r.draw,i.onRemove=r.onRemove,r.overlayView=i,r}u(o,t);var r=o.prototype;return r.componentDidMount=function(){this.overlayView.setMap(this.context)},r.componentDidUpdate=function(t){var e=Et(t.position),n=Et(this.props.position),o=wt(t.bounds),r=wt(this.props.bounds);e===n&&o===r||this.overlayView.draw(),t.mapPaneName!==this.props.mapPaneName&&this.updatePane()},r.componentWillUnmount=function(){this.overlayView.setMap(null)},r.render=function(){var t=this.state.paneEl;return t?i.createPortal(e.createElement("div",{ref:this.containerRef,style:this.state.containerStyle},e.Children.only(this.props.children)),t):null},o}(e.PureComponent);xt.FLOAT_PANE="floatPane",xt.MAP_PANE="mapPane",xt.MARKER_LAYER="markerLayer",xt.OVERLAY_LAYER="overlayLayer",xt.OVERLAY_MOUSE_TARGET="overlayMouseTarget",xt.contextType=d;var Lt={onDblClick:"dblclick",onClick:"click"},Pt={opacity:function(t,e){t.setOpacity(e)}},bt=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={groundOverlay:null},e.setGroundOverlayCallback=function(){null!==e.state.groundOverlay&&e.props.onLoad&&e.props.onLoad(e.state.groundOverlay)},e}u(e,t);var o=e.prototype;return o.componentDidMount=function(){this.props.url||this.props.bounds||n(!1);var t=new google.maps.GroundOverlay(this.props.url,this.props.bounds,c({},this.props.options,{map:this.context}));this.registeredEvents=g({updaterMap:Pt,eventMap:Lt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{groundOverlay:t}}),this.setGroundOverlayCallback)},o.componentDidUpdate=function(t){null!==this.state.groundOverlay&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:Pt,eventMap:Lt,prevProps:t,nextProps:this.props,instance:this.state.groundOverlay}))},o.componentWillUnmount=function(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))},o.render=function(){return null},e}(e.PureComponent);bt.defaultProps={onLoad:function(){}},bt.contextType=d;var kt={},St={data:function(t,e){t.setData(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)}},Dt=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={heatmapLayer:null},e.setHeatmapLayerCallback=function(){null!==e.state.heatmapLayer&&e.props.onLoad&&e.props.onLoad(e.state.heatmapLayer)},e}u(e,t);var o=e.prototype;return o.componentDidMount=function(){google.maps.visualization||n(!1),this.props.data||n(!1);var t=new google.maps.visualization.HeatmapLayer(c({},this.props.options||{},{data:this.props.data,map:this.context}));this.registeredEvents=g({updaterMap:St,eventMap:kt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{heatmapLayer:t}}),this.setHeatmapLayerCallback)},o.componentDidUpdate=function(t){f(this.registeredEvents),this.registeredEvents=g({updaterMap:St,eventMap:kt,prevProps:t,nextProps:this.props,instance:this.state.heatmapLayer})},o.componentWillUnmount=function(){null!==this.state.heatmapLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),f(this.registeredEvents),this.state.heatmapLayer.setMap(null))},o.render=function(){return null},e}(e.PureComponent);Dt.contextType=d;var Ut={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},Ot={register:function(t,e,n){t.registerPanoProvider(e,n)},links:function(t,e){t.setLinks(e)},motionTracking:function(t,e){t.setMotionTracking(e)},options:function(t,e){t.setOptions(e)},pano:function(t,e){t.setPano(e)},position:function(t,e){t.setPosition(e)},pov:function(t,e){t.setPov(e)},visible:function(t,e){t.setVisible(e)},zoom:function(t,e){t.setZoom(e)}},Rt=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={streetViewPanorama:null},e.setStreetViewPanoramaCallback=function(){null!==e.state.streetViewPanorama&&e.props.onLoad&&e.props.onLoad(e.state.streetViewPanorama)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=this.context.getStreetView();this.registeredEvents=g({updaterMap:Ot,eventMap:Ut,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{streetViewPanorama:t}}),this.setStreetViewPanoramaCallback)},n.componentDidUpdate=function(t){null!==this.state.streetViewPanorama&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:Ot,eventMap:Ut,prevProps:t,nextProps:this.props,instance:this.state.streetViewPanorama}))},n.componentWillUnmount=function(){null!==this.state.streetViewPanorama&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),f(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))},n.render=function(){return null},e}(e.PureComponent);Rt.contextType=d;var Tt=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).state={streetViewService:null},e.setStreetViewServiceCallback=function(){null!==e.state.streetViewService&&e.props.onLoad&&e.props.onLoad(e.state.streetViewService)},e}u(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=new google.maps.StreetViewService;this.setState((function(){return{streetViewService:t}}),this.setStreetViewServiceCallback)},n.componentWillUnmount=function(){null!==this.state.streetViewService&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)},n.render=function(){return null},e}(e.PureComponent);Tt.contextType=d;var _t=function(t){function o(){var e;return(e=t.apply(this,arguments)||this).state={directionsService:null},e.setDirectionsServiceCallback=function(){null!==e.state.directionsService&&e.props.onLoad&&e.props.onLoad(e.state.directionsService)},e}u(o,t);var r=o.prototype;return r.componentDidMount=function(){this.props.options||n(!1);var t=new google.maps.DirectionsService;this.setState((function(){return{directionsService:t}}),this.setDirectionsServiceCallback)},r.componentDidUpdate=function(){null!==this.state.directionsService&&this.state.directionsService.route(this.props.options,this.props.callback)},r.componentWillUnmount=function(){null!==this.state.directionsService&&this.props.onUnmount&&this.props.onUnmount(this.state.directionsService)},r.render=function(){return e.createElement(e.Fragment,null)},o}(e.PureComponent),It={onDirectionsChanged:"directions_changed"},Vt={directions:function(t,e){t.setDirections(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},panel:function(t,e){t.setPanel(e)},routeIndex:function(t,e){t.setRouteIndex(e)}},Bt=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).registeredEvents=[],e.state={directionsRenderer:null},e.setDirectionsRendererCallback=function(){null!==e.state.directionsRenderer&&(e.state.directionsRenderer.setMap(e.context),e.props.onLoad&&e.props.onLoad(e.state.directionsRenderer))},e}u(n,t);var o=n.prototype;return o.componentDidMount=function(){var t=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=g({updaterMap:Vt,eventMap:It,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{directionsRenderer:t}}),this.setDirectionsRendererCallback)},o.componentDidUpdate=function(t){null!==this.state.directionsRenderer&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:Vt,eventMap:It,prevProps:t,nextProps:this.props,instance:this.state.directionsRenderer}))},o.componentWillUnmount=function(){null!==this.state.directionsRenderer&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),f(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))},o.render=function(){return e.createElement(e.Fragment,null)},n}(e.PureComponent);Bt.contextType=d;var jt=function(t){function o(){var e;return(e=t.apply(this,arguments)||this).state={distanceMatrixService:null},e.setDistanceMatrixServiceCallback=function(){null!==e.state.distanceMatrixService&&e.props.onLoad&&e.props.onLoad(e.state.distanceMatrixService)},e}u(o,t);var r=o.prototype;return r.componentDidMount=function(){this.props.options||n(!1);var t=new google.maps.DistanceMatrixService;this.setState((function(){return{distanceMatrixService:t}}),this.setDistanceMatrixServiceCallback)},r.componentDidUpdate=function(){null!==this.state.distanceMatrixService&&this.state.distanceMatrixService.getDistanceMatrix(this.props.options,this.props.callback)},r.componentWillUnmount=function(){null!==this.state.distanceMatrixService&&this.props.onUnmount&&this.props.onUnmount(this.state.distanceMatrixService)},r.render=function(){return e.createElement(e.Fragment,null)},o}(e.PureComponent),Wt={onPlacesChanged:"places_changed"},At={bounds:function(t,e){t.setBounds(e)}},Nt=function(t){function o(){var n;return(n=t.apply(this,arguments)||this).registeredEvents=[],n.containerElement=e.createRef(),n.state={searchBox:null},n.setSearchBoxCallback=function(){null!==n.state.searchBox&&n.props.onLoad&&n.props.onLoad(n.state.searchBox)},n}u(o,t);var r=o.prototype;return r.componentDidMount=function(){if(google.maps.places||n(!1),null!==this.containerElement&&null!==this.containerElement.current){var t=this.containerElement.current.querySelector("input");if(null!==t){var e=new google.maps.places.SearchBox(t,this.props.options);this.registeredEvents=g({updaterMap:At,eventMap:Wt,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{searchBox:e}}),this.setSearchBoxCallback)}}},r.componentDidUpdate=function(t){null!==this.state.searchBox&&(f(this.registeredEvents),this.registeredEvents=g({updaterMap:At,eventMap:Wt,prevProps:t,nextProps:this.props,instance:this.state.searchBox}))},r.componentWillUnmount=function(){null!==this.state.searchBox&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),f(this.registeredEvents))},r.render=function(){return e.createElement("div",{ref:this.containerElement},e.Children.only(this.props.children))},o}(e.PureComponent);Nt.contextType=d;var Gt={onPlaceChanged:"place_changed"},zt={bounds:function(t,e){t.setBounds(e)},restrictions:function(t,e){t.setComponentRestrictions(e)},fields:function(t,e){t.setFields(e)},options:function(t,e){t.setOptions(e)},types:function(t,e){t.setTypes(e)}},Ft=function(t){function o(){var n;return(n=t.apply(this,arguments)||this).registeredEvents=[],n.containerElement=e.createRef(),n.state={autocomplete:null},n.setAutocompleteCallback=function(){null!==n.state.autocomplete&&n.props.onLoad&&n.props.onLoad(n.state.autocomplete)},n}u(o,t);var r=o.prototype;return r.componentDidMount=function(){google.maps.places||n(!1);var t=this.containerElement.current.querySelector("input");if(t){var e=new google.maps.places.Autocomplete(t,this.props.options);this.registeredEvents=g({updaterMap:zt,eventMap:Gt,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{autocomplete:e}}),this.setAutocompleteCallback)}},r.componentDidUpdate=function(t){f(this.registeredEvents),this.registeredEvents=g({updaterMap:zt,eventMap:Gt,prevProps:t,nextProps:this.props,instance:this.state.autocomplete})},r.componentWillUnmount=function(){null!==this.state.autocomplete&&f(this.registeredEvents)},r.render=function(){return e.createElement("div",{ref:this.containerElement,className:this.props.className||""},e.Children.only(this.props.children))},o}(e.PureComponent);Ft.contextType=d,t.Autocomplete=Ft,t.BicyclingLayer=B,t.Circle=lt,t.Data=ft,t.DirectionsRenderer=Bt,t.DirectionsService=_t,t.DistanceMatrixService=jt,t.DrawingManager=N,t.GoogleMap=y,t.GroundOverlay=bt,t.HeatmapLayer=Dt,t.InfoBox=J,t.InfoWindow=$,t.KmlLayer=vt,t.LoadScript=D,t.LoadScriptNext=T,t.MapContext=d,t.Marker=F,t.MarkerClusterer=K,t.OverlayView=xt,t.Polygon=it,t.Polyline=nt,t.Rectangle=pt,t.StandaloneSearchBox=Nt,t.StreetViewPanorama=Rt,t.StreetViewService=Tt,t.TrafficLayer=V,t.TransitLayer=j,t.useGoogleMap=function(){e.useContext||n(!1);var t=e.useContext(d);return t||n(!1),t},t.useJsApiLoader=function(t){var n=t.id,r=void 0===n?S.id:n,i=t.version,s=void 0===i?S.version:i,a=t.nonce,p=t.googleMapsApiKey,c=t.language,u=t.region,l=t.libraries,d=t.preventGoogleFontsLoading,h=t.mapIds,f=e.useState(!1),g=f[0],m=f[1],v=e.useState(void 0),y=v[0],M=v[1],E=e.useMemo((function(){return new o.Loader({id:r,apiKey:p,version:s,libraries:l,language:c,region:u,mapIds:h,nonce:a})}),[r,p,s,l,c,u,h,a]);e.useEffect((function(){g||E.load().then((function(){m(!0)})).catch((function(t){M(t)}))}),[]),e.useEffect((function(){C&&d&&x()}),[d]);var w=e.useRef();return e.useEffect((function(){w.current&&l!==w.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),w.current=l}),[l]),{isLoaded:g,loadError:y}},t.useLoadScript=U}));
//# sourceMappingURL=reactgooglemapsapi.umd.production.min.js.map
{
"name": "@react-google-maps/api",
"sideEffects": false,
"version": "2.0.2",
"version": "2.1.0",
"description": "React.js Google Maps API integration",

@@ -87,8 +87,13 @@ "license": "MIT",

"resolutions": {
"@types/webpack": "4.41.23"
"@types/webpack": "4.41.25",
"@types/react": "17.0.0",
"@types/react-dom": "17.0.0",
"**/typescript": "4.1.3",
"**/@typescript-eslint/eslint-plugin": "4.9.1",
"**/@typescript-eslint/parser": "4.9.1"
},
"dependencies": {
"@googlemaps/js-api-loader": "1.11.1",
"@react-google-maps/infobox": "2.0.1",
"@react-google-maps/marker-clusterer": "2.0.1",
"@react-google-maps/infobox": "2.1.0",
"@react-google-maps/marker-clusterer": "2.1.0",
"invariant": "2.2.4"

@@ -102,13 +107,14 @@ },

"@testing-library/react": "11.2.2",
"@types/googlemaps": "3.40.5",
"@types/googlemaps": "3.43.0",
"@types/invariant": "2.2.34",
"@types/jest": "26.0.19",
"@types/react": "^17.0.0",
"@types/react": "17.0.0",
"@types/react-dom": "17.0.0",
"@types/webpack": "4.41.25",
"@typescript-eslint/eslint-plugin": "4.9.1",
"@typescript-eslint/parser": "4.9.1",
"@typescript-eslint/eslint-plugin": "4.12.0",
"@typescript-eslint/parser": "4.12.0",
"acorn": "8.0.4",
"acorn-jsx": "5.3.1",
"eslint": "7.15.0",
"awesome-typescript-loader": "5.2.1",
"eslint": "7.17.0",
"eslint-config-standard": "16.0.2",

@@ -119,3 +125,3 @@ "eslint-config-standard-react": "11.0.1",

"eslint-plugin-babel": "5.3.1",
"eslint-plugin-compat": "3.8.0",
"eslint-plugin-compat": "3.9.0",
"eslint-plugin-filenames": "1.3.2",

@@ -130,3 +136,3 @@ "eslint-plugin-html": "6.1.1",

"eslint-plugin-promise": "4.2.1",
"eslint-plugin-react": "7.21.5",
"eslint-plugin-react": "7.22.0",
"eslint-plugin-react-functional-set-state": "1.2.1",

@@ -149,5 +155,5 @@ "eslint-plugin-react-hooks": "4.2.0",

"typescript": "4.1.3",
"webpack": "5.10.1"
"webpack": "5.11.1"
},
"gitHead": "80167ddcc3d8e356dbf0b0c3a6292c6a3a989f83"
}

@@ -37,3 +37,3 @@ # @react-google-maps/api

import React from 'react'
import { GoogleMap, LoadScript } from '@react-google-maps/api';
import { GoogleMap, useJsApiLoader } from '@react-google-maps/api';

@@ -51,2 +51,7 @@ const containerStyle = {

function MyComponent() {
const { isLoaded } = useJsApiLoader({
id: 'google-map-script',
googleMapsApiKey: "YOUR_API_KEY"
})
const [map, setMap] = React.useState(null)

@@ -64,6 +69,3 @@

return (
<LoadScript
googleMapsApiKey="YOUR_API_KEY"
>
return isLoaded ? (
<GoogleMap

@@ -79,4 +81,3 @@ mapContainerStyle={containerStyle}

</GoogleMap>
</LoadScript>
)
) : <></>
}

@@ -94,3 +95,3 @@

```jsx
// before - don't do that!
// before - don't do this!
<GoogleMap

@@ -97,0 +98,0 @@ ref={map => {

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc