1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[910],{3295:function(t,e,n){n.d(e,{Ji:function(){return B},b6:function(){return M},jC:function(){return V}});var i,o,s,r,a,l=n(3827),p=n(4090),h=n(9542),c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function u(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var d=function(){return(d=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function g(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var m=g(function(t,e,n,i,o,s,r,a){if(!t){var l;if(void 0===e)l=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[n,i,o,s,r,a],h=0;(l=Error(e.replace(/%s/g,function(){return p[h++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}),f=(0,p.createContext)(null);function v(t){google.maps.event.removeListener(t)}function y(t){void 0===t&&(t=[]),t.forEach(v)}function b(t){var e,n=t.updaterMap,i=t.eventMap,o=t.prevProps,s=t.nextProps,r=t.instance,a=Object.keys(i).reduce(function(t,e){var n;return n=i[e],"function"==typeof s[e]&&t.push(google.maps.event.addListener(r,n,s[e])),t},[]);return e={},function(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}(n,function(t,n){var i=s[n];i!==o[n]&&(e[n]=i,t(r,i))}),a}var C={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"},x={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 e(){var e=null!==t&&t.apply(this,arguments)||this;return e.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}return u(e,t),e.prototype.componentDidMount=function(){var t=this.getInstance();this.registeredEvents=b({updaterMap:x,eventMap:C,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{map:t}},this.setMapCallback)},e.prototype.componentDidUpdate=function(t){null!==this.state.map&&(y(this.registeredEvents),this.registeredEvents=b({updaterMap:x,eventMap:C,prevProps:t,nextProps:this.props,instance:this.state.map}))},e.prototype.componentWillUnmount=function(){null!==this.state.map&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),y(this.registeredEvents))},e.prototype.render=function(){return(0,l.jsx)("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName,children:(0,l.jsx)(f.Provider,{value:this.state.map,children:null!==this.state.map?this.props.children:(0,l.jsx)(l.Fragment,{})})})},e}(p.PureComponent),L="undefined"!=typeof document;function k(t){var e=t.href;return!!e&&(0===e.indexOf("https://fonts.googleapis.com/css?family=Roboto")||0===e.indexOf("https://fonts.googleapis.com/css?family=Google+Sans+Text"))||("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)}function w(){var t=document.getElementsByTagName("head")[0];if(t){var e=t.insertBefore.bind(t);t.insertBefore=function(n,i){return k(n)||Reflect.apply(e,t,[n,i]),n};var n=t.appendChild.bind(t);t.appendChild=function(e){return k(e)||Reflect.apply(n,t,[e]),e}}}var P=!1;function E(){return(0,l.jsx)("div",{children:"Loading..."})}var S={id:"script-loader",version:"weekly"};!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.check=(0,p.createRef)(),e.state={loaded:!1},e.cleanupCallback=function(){delete window.google.maps,e.injectScript()},e.isCleaningUp=function(){var t,n,i;return t=void 0,n=void 0,i=function(){function t(t){if(P){if(L)var e=window.setInterval(function(){P||(window.clearInterval(e),t())},1)}else t()}return function(t,e){var n,i,o,s,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=2&s[0]?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,i=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(!(o=(o=r.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){r=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(6===s[0]&&r.label<o[1]){r.label=o[1],o=s;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(s);break}o[2]&&r.ops.pop(),r.trys.pop();continue}s=e.call(t,r)}catch(t){s=[6,t],i=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}(this,function(e){return[2,new Promise(t)]})}
1,new(n||(n=Promise))(function(o,s){function r(t){try{l(i.next(t))}catch(t){s(t)}}function a(t){try{l(i.throw(t))}catch(t){s(t)}}function l(t){var e;t.done?o(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(r,a)}l((i=i.apply(e,t||[])).next())})},e.cleanup=function(){P=!0;var t=document.getElementById(e.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)})},e.injectScript=function(){var t,n,i,o,s,r,a,l,p,h,c,u,d,g,f,v;e.props.preventGoogleFontsLoading&&w(),m(!!e.props.id,'LoadScript requires "id" prop to be a string: %s',e.props.id),(g=(d={id:e.props.id,nonce:e.props.nonce,url:(n=(t=e.props).googleMapsApiKey,i=t.googleMapsClientId,s=void 0===(o=t.version)?"weekly":o,r=t.language,a=t.region,l=t.libraries,p=t.channel,h=t.mapIds,c=t.authReferrerPolicy,u=[],m(n&&i||!(n&&i),"You need to specify either googleMapsApiKey or googleMapsClientId for @react-google-maps/api load script to work. You cannot use both at the same time."),n?u.push("key=".concat(n)):i&&u.push("client=".concat(i)),s&&u.push("v=".concat(s)),r&&u.push("language=".concat(r)),a&&u.push("region=".concat(a)),l&&l.length&&u.push("libraries=".concat(l.sort().join(","))),p&&u.push("channel=".concat(p)),h&&h.length&&u.push("map_ids=".concat(h.join(","))),c&&u.push("auth_referrer_policy=".concat(c)),u.push("callback=initMap"),"https://maps.googleapis.com/maps/api/js?".concat(u.join("&")))}).url,f=d.id,v=d.nonce,L?new Promise(function(t,e){var n=document.getElementById(f),i=window;if(n){var o=n.getAttribute("data-state");if(n.src===g&&"error"!==o){if("ready"===o)return t(f);var s=i.initMap,r=n.onerror;return i.initMap=function(){s&&s(),t(f)},void(n.onerror=function(t){r&&r(t),e(t)})}n.remove()}var a=document.createElement("script");a.type="text/javascript",a.src=g,a.id=f,a.async=!0,a.nonce=v||"",a.onerror=function(t){a.setAttribute("data-state","error"),e(t)},i.initMap=function(){a.setAttribute("data-state","ready"),t(f)},document.head.appendChild(a)}).catch(function(t){throw console.error("injectScript error: ",t),t}):Promise.reject(Error("document is undefined"))).then(function(){e.props.onLoad&&e.props.onLoad(),e.setState(function(){return{loaded:!0}})}).catch(function(t){e.props.onError&&e.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 (".concat(e.props.googleMapsApiKey||"-",") or Client ID (").concat(e.props.googleMapsClientId||"-",") to <LoadScript />\n Otherwise it is a Network issue.\n "))})},e}u(e,t),e.prototype.componentDidMount=function(){if(L){if(window.google&&window.google.maps&&!P){console.error("google api is already presented");return}this.isCleaningUp().then(this.injectScript).catch(function(t){console.error("Error at injecting script after cleaning up: ",t)})}},e.prototype.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"),L&&t.language!==this.props.language&&(this.cleanup(),this.setState(function(){return{loaded:!1}},this.cleanupCallback))},e.prototype.componentWillUnmount=function(){var t=this;L&&(this.cleanup(),window.setTimeout(function(){t.check.current||(delete window.google,P=!1)},1),this.props.onUnmount&&this.props.onUnmount())},e.prototype.render=function(){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{ref:this.check}),this.state.loaded?this.props.children:this.props.loadingElement||(0,l.jsx)(E,{})]})},e.defaultProps=S}(p.PureComponent),(0,l.jsx)(E,{});var I=function t(e,n){if(e===n)return!0;
1if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;if(Array.isArray(e)){if((i=e.length)!=n.length)return!1;for(o=i;0!=o--;)if(!t(e[o],n[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((i=(s=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,s[o]))return!1;for(o=i;0!=o--;){var i,o,s,r=s[o];if(!t(e[r],n[r]))return!1}return!0}return e!=e&&n!=n};let D="__googleMapsScriptId";(i=r||(r={}))[i.INITIALIZED=0]="INITIALIZED",i[i.LOADING=1]="LOADING",i[i.SUCCESS=2]="SUCCESS",i[i.FAILURE=3]="FAILURE";class O{get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?r.FAILURE:this.done?r.SUCCESS:this.loading?r.LOADING:r.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+="?callback=__googleMapsCallback",this.apiKey&&(t+="&key=".concat(this.apiKey)),this.channel&&(t+="&channel=".concat(this.channel)),this.client&&(t+="&client=".concat(this.client)),this.libraries.length>0&&(t+="&libraries=".concat(this.libraries.join(","))),this.language&&(t+="&language=".concat(this.language)),this.region&&(t+="®ion=".concat(this.region)),this.version&&(t+="&v=".concat(this.version)),this.mapIds&&(t+="&map_ids=".concat(this.mapIds.join(","))),this.authReferrerPolicy&&(t+="&auth_referrer_policy=".concat(this.authReferrerPolicy)),t}deleteScript(){let t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((t,e)=>{this.loadCallback(n=>{n?e(n.error):t(window.google)})})}importLibrary(t){return this.execute(),google.maps.importLibrary(t)}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){var t,e;if(document.getElementById(this.id)){this.callback();return}let n={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(n).forEach(t=>!n[t]&&delete n[t]),(null===(e=null===(t=null==window?void 0:window.google)||void 0===t?void 0:t.maps)||void 0===e?void 0:e.importLibrary)||(t=>{let e,n,i,o="The Google Maps JavaScript API",s="google",r="importLibrary",a="__ib__",l=document,p=window,h=(p=p[s]||(p[s]={})).maps||(p.maps={}),c=new Set,u=new URLSearchParams,d=()=>e||(e=new Promise((r,p)=>{var d,g,m,f;return d=this,g=void 0,m=void 0,f=function*(){var d;for(i in yield n=l.createElement("script"),n.id=this.id,u.set("libraries",[...c]+""),t)u.set(i.replace(/[A-Z]/g,t=>"_"+t[0].toLowerCase()),t[i]);u.set("callback",s+".maps."+a),n.src=this.url+"?"+u,h[a]=r,n.onerror=()=>e=p(Error(o+" could not load.")),n.nonce=this.nonce||(null===(d=l.querySelector("script[nonce]"))||void 0===d?void 0:d.nonce)||"",l.head.append(n)},new(m||(m=Promise))(function(t,e){function n(t){try{o(f.next(t))}catch(t){e(t)}}function i(t){try{o(f.throw(t))}catch(t){e(t)}}function o(e){var o;e.done?t(e.value):((o=e.value)instanceof m?o:new m(function(t){t(o)})).then(n,i)}o((f=f.apply(d,g||[])).next())})}));h[r]?console.warn(o+" only loads once. Ignoring:",t):h[r]=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return c.add(t)&&d().then(()=>h[r](t,...n))}})(n);let i=this.libraries.map(t=>this.importLibrary(t));i.length||i.push(this.importLibrary("core")),Promise.all(i).then(()=>this.callback(),t=>{let e=new ErrorEvent("error",{error:t});this.loadErrorCallback(e)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){let t=this.errors.length*Math.pow(2,this.errors.length);console.error("Failed to load Google Maps script, retrying in ".concat(t," ms.")),setTimeout(()=>{this.deleteScript(),this.setScript()},t)}else this.onerrorEvent=t,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(t=>{t(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setScript())}}constructor({apiKey:t,authReferrerPolicy:e,channel:n,client:i,id:o=D,language:s,libraries:r=[],mapIds:a,nonce:l,region:p,retries:h=3,url:c="https://maps.googleapis.com/ma
1ps/api/js",version:u}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=e,this.channel=n,this.client=i,this.id=o||D,this.language=s,this.libraries=r,this.mapIds=a,this.nonce=l,this.region=p,this.retries=h,this.url=c,this.version=u,O.instance){if(!I(this.options,O.instance.options))throw Error("Loader must not be called again with different options. ".concat(JSON.stringify(this.options)," !== ").concat(JSON.stringify(O.instance.options)));return O.instance}O.instance=this}}var T=["maps"];function B(t){var e=t.id,n=void 0===e?S.id:e,i=t.version,o=void 0===i?S.version:i,s=t.nonce,r=t.googleMapsApiKey,a=t.language,l=t.region,h=t.libraries,c=void 0===h?T:h,u=t.preventGoogleFontsLoading,d=t.mapIds,g=t.authReferrerPolicy,m=(0,p.useRef)(!1),f=(0,p.useState)(!1),v=f[0],y=f[1],b=(0,p.useState)(void 0),C=b[0],x=b[1];(0,p.useEffect)(function(){return m.current=!0,function(){m.current=!1}},[]);var M=(0,p.useMemo)(function(){return new O({id:n,apiKey:r,version:o,libraries:c,language:a||"en",region:l||"US",mapIds:d||[],nonce:s||"",authReferrerPolicy:g||"origin"})},[n,r,o,c,a,l,d,s,g]);(0,p.useEffect)(function(){v||M.load().then(function(){m.current&&y(!0)}).catch(function(t){x(t)})},[]),(0,p.useEffect)(function(){L&&u&&w()},[u]);var k=(0,p.useRef)();return(0,p.useEffect)(function(){k.current&&c!==k.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"),k.current=c},[c]),{isLoaded:v,loadError:C}}var _={},U={options:function(t,e){t.setOptions(e)}};!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.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),e.prototype.componentDidMount=function(){var t=new google.maps.TrafficLayer(d(d({},this.props.options||{}),{map:this.context}));this.registeredEvents=b({updaterMap:U,eventMap:_,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{trafficLayer:t}},this.setTrafficLayerCallback)},e.prototype.componentDidUpdate=function(t){null!==this.state.trafficLayer&&(y(this.registeredEvents),this.registeredEvents=b({updaterMap:U,eventMap:_,prevProps:t,nextProps:this.props,instance:this.state.trafficLayer}))},e.prototype.componentWillUnmount=function(){null!==this.state.trafficLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),y(this.registeredEvents),this.state.trafficLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=f}(p.PureComponent),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.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),e.prototype.componentDidMount=function(){var t=new google.maps.BicyclingLayer;this.setState(function(){return{bicyclingLayer:t}},this.setBicyclingLayerCallback)},e.prototype.componentWillUnmount=function(){null!==this.state.bicyclingLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=f}(p.PureComponent),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.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),e.prototype.componentDidMount=function(){var t=new google.maps.TransitLayer;this.setState(function(){return{transitLayer:t}},this.setTransitLayerCallback)},e.prototype.componentWillUnmount=function(){null!==this.state.transitLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=f}(p.PureComponent);var R={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)}};!function(t){function e(e){var n=t.call(this,e)||this;return n.registeredEvents=[],n.state={drawingManager:null},n.setDrawingManagerCallback=function(){null!==n.state.drawingManager&&n.props.onLoad&&n.props.onLoad(n.state.drawingManager)},m(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing),n}u(e,t),e.prototype.componentDidMount=function(){var t=new google.maps.drawing.DrawingManager(d(d({},this.props.options||{}),{map:this.context}));this.registeredEvents=b({updaterMap:A,eventMap:R,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{drawingManager:t}},this.setDrawingManagerCallback)},e.prototype.componentDidUpdate=function(t){null!==this.state.drawingManager&&(y(this.registeredEvents),this.registeredEvents=b({updaterMap:A,eventMap:R,prevProps:t,nextProps:this.props,instance:this.state.drawingManager}))},e.prototype.componentWillUnmount=function(){null!==this.state.drawingManager&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),y(this.registeredEvents),this.state.drawingManager.setMap(null))},e.prototype.render=function(){return null},e.contextType=f}(p.PureComponent);var z={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"},W={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)}},j={},V=(0,p.memo)(function(t){var e=t.position,n=t.options,i=t.clusterer,o=t.noClustererRedraw,s=t.children,r=t.draggable,a=t.visible,h=t.animation,c=t.clickable,u=t.cursor,g=t.icon,m=t.label,v=t.opacity,y=t.shape,b=t.title,C=t.zIndex,x=t.onClick,M=t.onDblClick,L=t.onDrag,k=t.onDragEnd,w=t.onDragStart,P=t.onMouseOut,E=t.onMouseOver,S=t.onMouseUp,I=t.onMouseDown,D=t.onRightClick,O=t.onClickableChanged,T=t.onCursorChanged,B=t.onAnimationChanged,_=t.onDraggableChanged,U=t.onFlatChanged,R=t.onIconChanged,A=t.onPositionChanged,z=t.onShapeChanged,W=t.onTitleChanged,V=t.onVisibleChanged,Z=t.onZindexChanged,N=t.onLoad,H=t.onUnmount,F=(0,p.useContext)(f),G=(0,p.useState)(null),K=G[0],Y=G[1],q=(0,p.useState)(null),J=q[0],$=q[1],X=(0,p.useState)(null),Q=X[0],tt=X[1],te=(0,p.useState)(null),tn=te[0],ti=te[1],to=(0,p.useState)(null),ts=to[0],tr=to[1],ta=(0,p.useState)(null),tl=ta[0],tp=ta[1],th=(0,p.useState)(null),tc=th[0],tu=th[1],td=(0,p.useState)(null),tg=td[0],tm=td[1],tf=(0,p.useState)(null),tv=tf[0],ty=tf[1],tb=(0,p.useState)(null),tC=tb[0],tx=tb[1],tM=(0,p.useState)(null),tL=tM[0],tk=tM[1],tw=(0,p.useState)(null),tP=tw[0],tE=tw[1],tS=(0,p.useState)(null),tI=tS[0],tD=tS[1],tO=(0,p.useState)(null),tT=tO[0],tB=tO[1],t_=(0,p.useState)(null),tU=t_[0],tR=t_[1],tA=(0,p.useState)(null),tz=tA[0],tW=tA[1],tj=(0,p.useState)(null),tV=tj[0],tZ=tj[1],tN=(0,p.useState)(null),tH=tN[0],tF=tN[1],tG=(0,p.useState)(null),tK=tG[0],tY=tG[1],tq=(0,p.useState)(null),tJ=tq[0],t$=tq[1],tX=(0,p.useState)(null),tQ=tX[0],t0=tX[1],t1=(0,p.useState)(null),t2=t1[0],t3=t1[1];(0,p.useEffect)(function(){null!==K&&K.setMap(F)},[F]),(0,p.useEffect)(function(){void 0!==n&&null!==K&&K.setOptions(n)},[K,n]),(0,p.useEffect)(function(){void 0!==r&&null!==K&&K.setDraggable(r)},[K,r]),(0,p.useEffect)(function(){e&&null!==K&&K.setPosition(e)},[K,e]),(0,p.useEffect)(function(){void 0!==a&&null!==K&&K.setVisible(a)},[K,a]),(0,p.useEffect)(function(){null==K||K.setAnimation(h)},[K,h]),(0,p.useEffect)(function(){K&&M&&(null!==J&&google.maps.event.removeListener(J),$(google.maps.event.addListener(K,"dblclick",M)))},[M]),(0,p.useEffect)(function(){K&&k&&(null!==Q&&google.maps.event.removeListener(Q),tt(google.maps.event.addListener(K,"dragend",k)))},[k]),(0,p.useEffect)(function(){K&&w&&(null!==tn&&google.maps.event.removeListener(tn),ti(google.maps.event.addListener(K,"dragstart",w)))},[w]),(0,p.useEffect)(function(){K&&I&&(null!==ts&&google.maps.event.removeListener(ts),tr(google.maps.event.addListener(K,"mousedown",I)))},[I]),(0,p.useEffect)(function(){K&&P&&(null!==tl&&google.maps.event.removeListener(tl),tp(google.maps.event.addListener(K,"mouseout",P)))},[P]),(0,p.useEffect)(function(){K&&E&&(null!==tc&&google.maps.event.removeListener(tc),tu(google.maps.event.addListener(K,"mouseover",E)))},[E]),(0,p.useEffect)(function(){K&&S&&(null!==tg&&google.maps.event.removeListener(tg),tm(google.maps.event.addListener(K,"mouseup",S)))},[S]),(0,p.useEffect)(function(){K&&D&&(null!==tv&&google.maps.event.removeListener(tv),ty(google.maps.event.addListener(K,"rightclick",D))
1)},[D]),(0,p.useEffect)(function(){K&&x&&(null!==tC&&google.maps.event.removeListener(tC),tx(google.maps.event.addListener(K,"click",x)))},[x]),(0,p.useEffect)(function(){K&&L&&(null!==tL&&google.maps.event.removeListener(tL),tk(google.maps.event.addListener(K,"drag",L)))},[L]),(0,p.useEffect)(function(){K&&O&&(null!==tP&&google.maps.event.removeListener(tP),tE(google.maps.event.addListener(K,"clickable_changed",O)))},[O]),(0,p.useEffect)(function(){K&&T&&(null!==tI&&google.maps.event.removeListener(tI),tD(google.maps.event.addListener(K,"cursor_changed",T)))},[T]),(0,p.useEffect)(function(){K&&B&&(null!==tT&&google.maps.event.removeListener(tT),tB(google.maps.event.addListener(K,"animation_changed",B)))},[B]),(0,p.useEffect)(function(){K&&_&&(null!==tU&&google.maps.event.removeListener(tU),tR(google.maps.event.addListener(K,"draggable_changed",_)))},[_]),(0,p.useEffect)(function(){K&&U&&(null!==tz&&google.maps.event.removeListener(tz),tW(google.maps.event.addListener(K,"flat_changed",U)))},[U]),(0,p.useEffect)(function(){K&&R&&(null!==tV&&google.maps.event.removeListener(tV),tZ(google.maps.event.addListener(K,"icon_changed",R)))},[R]),(0,p.useEffect)(function(){K&&A&&(null!==tH&&google.maps.event.removeListener(tH),tF(google.maps.event.addListener(K,"position_changed",A)))},[A]),(0,p.useEffect)(function(){K&&z&&(null!==tK&&google.maps.event.removeListener(tK),tY(google.maps.event.addListener(K,"shape_changed",z)))},[z]),(0,p.useEffect)(function(){K&&W&&(null!==tJ&&google.maps.event.removeListener(tJ),t$(google.maps.event.addListener(K,"title_changed",W)))},[W]),(0,p.useEffect)(function(){K&&V&&(null!==tQ&&google.maps.event.removeListener(tQ),t0(google.maps.event.addListener(K,"visible_changed",V)))},[V]),(0,p.useEffect)(function(){K&&Z&&(null!==t2&&google.maps.event.removeListener(t2),t3(google.maps.event.addListener(K,"zindex_changed",Z)))},[Z]),(0,p.useEffect)(function(){var t=d(d(d({},n||j),i?j:{map:F}),{position:e}),s=new google.maps.Marker(t);return i?i.addMarker(s,!!o):s.setMap(F),e&&s.setPosition(e),void 0!==a&&s.setVisible(a),void 0!==r&&s.setDraggable(r),void 0!==c&&s.setClickable(c),"string"==typeof u&&s.setCursor(u),g&&s.setIcon(g),void 0!==m&&s.setLabel(m),void 0!==v&&s.setOpacity(v),y&&s.setShape(y),"string"==typeof b&&s.setTitle(b),"number"==typeof C&&s.setZIndex(C),M&&$(google.maps.event.addListener(s,"dblclick",M)),k&&tt(google.maps.event.addListener(s,"dragend",k)),w&&ti(google.maps.event.addListener(s,"dragstart",w)),I&&tr(google.maps.event.addListener(s,"mousedown",I)),P&&tp(google.maps.event.addListener(s,"mouseout",P)),E&&tu(google.maps.event.addListener(s,"mouseover",E)),S&&tm(google.maps.event.addListener(s,"mouseup",S)),D&&ty(google.maps.event.addListener(s,"rightclick",D)),x&&tx(google.maps.event.addListener(s,"click",x)),L&&tk(google.maps.event.addListener(s,"drag",L)),O&&tE(google.maps.event.addListener(s,"clickable_changed",O)),T&&tD(google.maps.event.addListener(s,"cursor_changed",T)),B&&tB(google.maps.event.addListener(s,"animation_changed",B)),_&&tR(google.maps.event.addListener(s,"draggable_changed",_)),U&&tW(google.maps.event.addListener(s,"flat_changed",U)),R&&tZ(google.maps.event.addListener(s,"icon_changed",R)),A&&tF(google.maps.event.addListener(s,"position_changed",A)),z&&tY(google.maps.event.addListener(s,"shape_changed",z)),W&&t$(google.maps.event.addListener(s,"title_changed",W)),V&&t0(google.maps.event.addListener(s,"visible_changed",V)),Z&&t3(google.maps.event.addListener(s,"zindex_changed",Z)),Y(s),N&&N(s),function(){null!==J&&google.maps.event.removeListener(J),null!==Q&&google.maps.event.removeListener(Q),null!==tn&&google.maps.event.removeListener(tn),null!==ts&&google.maps.event.removeListener(ts),null!==tl&&google.maps.event.removeListener(tl),null!==tc&&google.maps.event.removeListener(tc),null!==tg&&google.maps.event.removeListener(tg),null!==tv&&google.maps.event.removeListener(tv),null!==tC&&google.maps.event.removeListener(tC),null!==tP&&google.maps.event.removeListener(tP),null!==tI&&google.maps.event.removeListener(tI),null!==tT&&google.maps.event.removeListener(tT),null!==tU&&google.maps.event.removeListener(tU),null!==tz&&google.maps.event.removeListener(tz),null!==tV&&google.maps.event.removeListener(tV),null!==tH&&google.maps.event.removeListener(tH),null!==tJ&&google.maps.event.removeListener(tJ),null!==tQ&&google.maps.event.removeListener(tQ),null!==t2&&google.maps.event.removeListener(t2),H&&H(s),i?i.removeMarker(s,!!o):s&&s.setMap(null)}},[]);var t6=(0,p.useMemo)(function(){return s?p.Children.map(s,function(t){return(0,p.isValidElement)(t)?(0,p.
1cloneElement)(t,{anchor:K}):t}):null},[s,K]);return(0,l.jsx)(l.Fragment,{children:t6})||null});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.registeredEvents=[],e}u(e,t),e.prototype.componentDidMount=function(){var t=d(d(d({},this.props.options||j),this.props.clusterer?j:{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=b({updaterMap:W,eventMap:z,prevProps:{},nextProps:this.props,instance:this.marker}),this.props.onLoad&&this.props.onLoad(this.marker)},e.prototype.componentDidUpdate=function(t){this.marker&&(y(this.registeredEvents),this.registeredEvents=b({updaterMap:W,eventMap:z,prevProps:t,nextProps:this.props,instance:this.marker}))},e.prototype.componentWillUnmount=function(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),y(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))},e.prototype.render=function(){var t=this,e=null;return this.props.children&&(e=p.Children.map(this.props.children,function(e){return(0,p.isValidElement)(e)?(0,p.cloneElement)(e,{anchor:t.marker}):e})),e||null},e.contextType=f}(p.PureComponent);var Z=function(){function t(e,n){e.getClusterer().extend(t,google.maps.OverlayView),this.cluster=e,this.clusterClassName=this.cluster.getClusterer().getClusterClass(),this.className=this.clusterClassName,this.styles=n,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.cMouseDownInCluster=null,this.cDraggingMapByCluster=null,this.timeOut=null,this.setMap(e.getMap()),this.onBoundsChanged=this.onBoundsChanged.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onClick=this.onClick.bind(this),this.onMouseOver=this.onMouseOver.bind(this),this.onMouseOut=this.onMouseOut.bind(this),this.onAdd=this.onAdd.bind(this),this.onRemove=this.onRemove.bind(this),this.draw=this.draw.bind(this),this.hide=this.hide.bind(this),this.show=this.show.bind(this),this.useStyle=this.useStyle.bind(this),this.setCenter=this.setCenter.bind(this),this.getPosFromLatLng=this.getPosFromLatLng.bind(this)}return t.prototype.onBoundsChanged=function(){this.cDraggingMapByCluster=this.cMouseDownInCluster},t.prototype.onMouseDown=function(){this.cMouseDownInCluster=!0,this.cDraggingMapByCluster=!1},t.prototype.onClick=function(t){if(this.cMouseDownInCluster=!1,!this.cDraggingMapByCluster){var e=this.cluster.getClusterer();if(google.maps.event.trigger(e,"click",this.cluster),google.maps.event.trigger(e,"clusterclick",this.cluster),e.getZoomOnClick()){var n=e.getMaxZoom(),i=this.cluster.getBounds(),o=e.getMap();null!==o&&"fitBounds"in o&&o.fitBounds(i),this.timeOut=window.setTimeout(function(){var t=e.getMap();if(null!==t){"fitBounds"in t&&t.fitBounds(i);var o=t.getZoom()||0;null!==n&&o>n&&t.setZoom(n+1)}},100)}t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation()}},t.prototype.onMouseOver=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseover",this.cluster)},t.prototype.onMouseOut=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseout",this.cluster)},t.prototype.onAdd=function(){this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),null===(t=this.getPanes())||void 0===t||t.overlayMouseTarget.appendChild(this.div);var t,e=this.getMap();null!==e&&(this.boundsChangedListener=google.maps.event.addListener(e,"bounds_changed",this.onBoundsChanged),this.div.addEventListener("mousedown",this.onMouseDown),this.div.addEventListener("click",this.onClick),this.div.addEventListener("mouseover",this.onMouseOver),this.div.addEventListener("mouseout",this.onMouseOut))},t.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),null!==this.boundsChangedListener&&google.maps.event.removeListener(this.boundsChangedListener),this.div.removeEventListener("mousedown",this.onMouseDown),this.div.removeEventListener("click",this.onClick),this.div.removeEventListener("mouseover",this.onMouseOver),this.div.removeEventListener("mouseout",this.onMouseOut),this.div.parentNode.removeChild(this.div),null!==this.timeOut&&(window.clearTimeout(this.timeOut),this.timeOut=null),this.div=null)},t.prototype.draw=function(){if(this.visible&&null!==this.div&&this.center){var t=this.getPosFromLatLng(this.center);this.div.style.top=null!==t?"".concat(t.y,"px"):"0",this.div.style.left=null!==t?"".concat(t.x,"px"):"0"}},t.prototype.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},t.prototype.show=function(){var t,e,n,i,o,s;if(this.div&&this.center){var r=null===this.sums||void 0===this.sums.title||""===this.sums.title?this.cluster.getClusterer().getTitle():this.sums.title,a=this.backgroundPosition.split(" "),l=parseInt((null===(t=a[0])||void 0===t?void 0:t.replace(/^\s+|\s+$/g,""))||"0",10),p=
vendor: 7,080 bytes, line 1
1parseInt((null===(e=a[1])||void 0===e?void 0:e.replace(/^\s+|\s+$/g,""))||"0",10),h=this.getPosFromLatLng(this.center);this.div.className=this.className,this.div.setAttribute("style","cursor: pointer; position: absolute; top: ".concat(null!==h?"".concat(h.y,"px"):"0","; left: ").concat(null!==h?"".concat(h.x,"px"):"0","; width: ").concat(this.width,"px; height: ").concat(this.height,"px; "));var c=document.createElement("img");c.alt=r,c.src=this.url,c.width=this.width,c.height=this.height,c.setAttribute("style","position: absolute; top: ".concat(p,"px; left: ").concat(l,"px")),this.cluster.getClusterer().enableRetinaIcons||(c.style.clip="rect(-".concat(p,"px, -").concat(l+this.width,"px, -").concat(p+this.height,", -").concat(l,")"));var u=document.createElement("div");u.setAttribute("style","position: absolute; top: ".concat(this.anchorText[0],"px; left: ").concat(this.anchorText[1],"px; color: ").concat(this.textColor,"; font-size: ").concat(this.textSize,"px; font-family: ").concat(this.fontFamily,"; font-weight: ").concat(this.fontWeight,"; fontStyle: ").concat(this.fontStyle,"; text-decoration: ").concat(this.textDecoration,"; text-align: center; width: ").concat(this.width,"px; line-height: ").concat(this.height,"px")),(null===(n=this.sums)||void 0===n?void 0:n.text)&&(u.innerText="".concat(null===(i=this.sums)||void 0===i?void 0:i.text)),(null===(o=this.sums)||void 0===o?void 0:o.html)&&(u.innerHTML="".concat(null===(s=this.sums)||void 0===s?void 0:s.html)),this.div.innerHTML="",this.div.appendChild(c),this.div.appendChild(u),this.div.title=r,this.div.style.display=""}this.visible=!0},t.prototype.useStyle=function(t){this.sums=t;var e=this.cluster.getClusterer().getStyles(),n=e[Math.min(e.length-1,Math.max(0,t.index-1))];n&&(this.url=n.url,this.height=n.height,this.width=n.width,n.className&&(this.className="".concat(this.clusterClassName," ").concat(n.className)),this.anchorText=n.anchorText||[0,0],this.anchorIcon=n.anchorIcon||[this.height/2,this.width/2],this.textColor=n.textColor||"black",this.textSize=n.textSize||11,this.textDecoration=n.textDecoration||"none",this.fontWeight=n.fontWeight||"bold",this.fontStyle=n.fontStyle||"normal",this.fontFamily=n.fontFamily||"Arial,sans-serif",this.backgroundPosition=n.backgroundPosition||"0 0")},t.prototype.setCenter=function(t){this.center=t},t.prototype.getPosFromLatLng=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return null!==e&&(e.x-=this.anchorIcon[1],e.y-=this.anchorIcon[0]),e},t}(),N=function(){function t(t){this.markerClusterer=t,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new Z(this,this.markerClusterer.getStyles()),this.getSize=this.getSize.bind(this),this.getMarkers=this.getMarkers.bind(this),this.getCenter=this.getCenter.bind(this),this.getMap=this.getMap.bind(this),this.getClusterer=this.getClusterer.bind(this),this.getBounds=this.getBounds.bind(this),this.remove=this.remove.bind(this),this.addMarker=this.addMarker.bind(this),this.isMarkerInClusterBounds=this.isMarkerInClusterBounds.bind(this),this.calculateBounds=this.calculateBounds.bind(this),this.updateIcon=this.updateIcon.bind(this),this.isMarkerAlreadyAdded=this.isMarkerAlreadyAdded.bind(this)}return t.prototype.getSize=function(){return this.markers.length},t.prototype.getMarkers=function(){return this.markers},t.prototype.getCenter=function(){return this.center},t.prototype.getMap=function(){return this.map},t.prototype.getClusterer=function(){return this.markerClusterer},t.prototype.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center,this.center),e=this.getMarkers(),n=0;n<e.length;n++){var i=e[n].getPosition();i&&t.extend(i)}return t},t.prototype.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},t.prototype.addMarker=function(t){if(this.isMarkerAlreadyAdded(t))return!1;if(this.center){if(this.averageCenter){var e=t.getPosition();if(e){var n=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(n-1)+e.lat())/n,(this.center.lng()*(n-1)+e.lng())/n),this.calculateBounds()}}}else{var i,e=t.getPosition();e&&(this.center=e,this.calculateBounds())}t.isAdded=!0,this.markers.push(t);var o=this.markers.length,s=this.markerClusterer.getMaxZoom(),r=null===(i=this.map)||void 0===i?void 0:i.getZoom();if(null!==s&&void 0!==r&&r>s)t.getMap()!==this.map&&t.setMap(this.map);else if(o<this.minClusterSize)t.getMap()!==this.map&&t.setMap(this.map);else if(o===this.minClusterSize)for(var a=0,l=this.markers;a<l.length;a++)l[a].setMap(null);else t.setMap(null);return!0},t.prototype.isMarkerInClusterBounds=function(t){if(null!==this.bounds){var e=t.getPosition();if(e)return this.bounds.contains(e)}return!1},t.prototype.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},t.prototype.updateIcon=function(){var t,e=this.markers.length,n=this.markerClusterer.getMaxZoom(),i=null===(t=this.map)||void 0===t?void 0:t.getZoom();if(null!==n&&void 0!==i&&i>n||e<this.minClusterSize){this.clusterIcon.hide();return}this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show()},t.prototype.isMarkerAlreadyAdded=function(t){if(this.markers.includes)return this.markers.includes(t);for(var e=0;e<this.markers.length;e++)if(t===this.markers[e])return!0;return!1},t}();function H(t,e){var n=t.length,i=n.toString().length;return{text:n.toString(),index:Math.min(i,e),title:""}}var F=[53,56,66,78,90],G=function(){function t(e,n,i){void 0===n&&(n=[]),void 0===i&&(i={}),this.getMinimumClusterSize=this.getMinimumClusterSize.bind(this),this.setMinimumClusterSize=this.setMinimumClusterSize.bind(this),this.getEnableRetinaIcons=this.getEnableRetinaIcons.bind(this),this.setEnableRetinaIcons=this.setEnableRetinaIcons.bind(this),this.addToClosestCluster=this.addToClosestCluster.bind(this),this.getImageExtension=this.getImageExtension.bind(this),this.setImageExtension=this.setImageExtension.bind(this),this.getExtendedBounds=this.getExtendedBounds.bind(this),this.getAverageCenter=this.getAverageCenter.bind(this),this.setAverageCenter=this.setAverageCenter.bind(this),this.getTotalClusters=this.getTotalClusters.bind(this),this.fitMapToMarkers=this.fitMapToMarkers.bind(this),this.getIgnoreHidden=this.getIgnoreHidden.bind(this),this.setIgnoreHidden=this.setIgnoreHidden.bind(this),this.getClusterClass=this.getClusterClass.bind(this),this.setClusterClass=this.setClusterClass.bind(this),this.getTotalMarkers=this.getTotalMarkers.bind(this),this.getZoomOnClick=this.getZoomOnClick.bind(this),this.setZoomOnClick=this.setZoomOnClick.bind(this),this.getBatchSizeIE=this.getBatchSizeIE.bind(this),this.setBatchSizeIE=this.setBatchSizeIE.bind(this),this.createCluster
1s=this.createClusters.bind(this),this.onZoomChanged=this.onZoomChanged.bind(this),this.getImageSizes=this.getImageSizes.bind(this),this.setImageSizes=this.setImageSizes.bind(this),this.getCalculator=this.getCalculator.bind(this),this.setCalculator=this.setCalculator.bind(this),this.removeMarkers=this.removeMarkers.bind(this),this.resetViewport=this.resetViewport.bind(this),this.getImagePath=this.getImagePath.bind(this),this.setImagePath=this.setImagePath.bind(this),this.pushMarkerTo=this.pushMarkerTo.bind(this),this.removeMarker=this.removeMarker.bind(this),this.clearMarkers=this.clearMarkers.bind(this),this.setupStyles=this.setupStyles.bind(this),this.getGridSize=this.getGridSize.bind(this),this.setGridSize=this.setGridSize.bind(this),this.getClusters=this.getClusters.bind(this),this.getMaxZoom=this.getMaxZoom.bind(this),this.setMaxZoom=this.setMaxZoom.bind(this),this.getMarkers=this.getMarkers.bind(this),this.addMarkers=this.addMarkers.bind(this),this.getStyles=this.getStyles.bind(this),this.setStyles=this.setStyles.bind(this),this.addMarker=this.addMarker.bind(this),this.onRemove=this.onRemove.bind(this),this.getTitle=this.getTitle.bind(this),this.setTitle=this.setTitle.bind(this),this.repaint=this.repaint.bind(this),this.onIdle=this.onIdle.bind(this),this.redraw=this.redraw.bind(this),this.onAdd=this.onAdd.bind(this),this.draw=this.draw.bind(this),this.extend=this.extend.bind(this),this.extend(t,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=i.gridSize||60,this.minClusterSize=i.minimumClusterSize||2,this.maxZoom=i.maxZoom||null,this.styles=i.styles||[],this.title=i.title||"",this.zoomOnClick=!0,void 0!==i.zoomOnClick&&(this.zoomOnClick=i.zoomOnClick),this.averageCenter=!1,void 0!==i.averageCenter&&(this.averageCenter=i.averageCenter),this.ignoreHidden=!1,void 0!==i.ignoreHidden&&(this.ignoreHidden=i.ignoreHidden),this.enableRetinaIcons=!1,void 0!==i.enableRetinaIcons&&(this.enableRetinaIcons=i.enableRetinaIcons),this.imagePath=i.imagePath||"https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",this.imageExtension=i.imageExtension||"png",this.imageSizes=i.imageSizes||F,this.calculator=i.calculator||H,this.batchSize=i.batchSize||2e3,this.batchSizeIE=i.batchSizeIE||500,this.clusterClass=i.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(n,!0),this.setMap(e)}return t.prototype.onZoomChanged=function(){var t,e;this.resetViewport(!1),((null===(t=this.getMap())||void 0===t?void 0:t.getZoom())===(this.get("minZoom")||0)||(null===(e=this.getMap())||void 0===e?void 0:e.getZoom())===this.get("maxZoom"))&&google.maps.event.trigger(this,"idle")},t.prototype.onIdle=function(){this.redraw()},t.prototype.onAdd=function(){var t=this.getMap();this.activeMap=t,this.ready=!0,this.repaint(),null!==t&&(this.listeners=[google.maps.event.addListener(t,"zoom_changed",this.onZoomChanged),google.maps.event.addListener(t,"idle",this.onIdle)])},t.prototype.onRemove=function(){for(var t=0,e=this.markers;t<e.length;t++){var n=e[t];n.getMap()!==this.activeMap&&n.setMap(this.activeMap)}
vendor: 5,880 bytes, line 1
1for(var i=0,o=this.clusters;i<o.length;i++)o[i].remove();this.clusters=[];for(var s=0,r=this.listeners;s<r.length;s++){var a=r[s];google.maps.event.removeListener(a)}this.listeners=[],this.activeMap=null,this.ready=!1},t.prototype.draw=function(){},t.prototype.getMap=function(){return null},t.prototype.getPanes=function(){return null},t.prototype.getProjection=function(){return{fromContainerPixelToLatLng:function(){return null},fromDivPixelToLatLng:function(){return null},fromLatLngToContainerPixel:function(){return null},fromLatLngToDivPixel:function(){return null},getVisibleRegion:function(){return null},getWorldWidth:function(){return 0}}},t.prototype.setMap=function(){},t.prototype.addListener=function(){return{remove:function(){}}},t.prototype.bindTo=function(){},t.prototype.get=function(){},t.prototype.notify=function(){},t.prototype.set=function(){},t.prototype.setValues=function(){},t.prototype.unbind=function(){},t.prototype.unbindAll=function(){},t.prototype.setupStyles=function(){if(!(this.styles.length>0))for(var t=0;t<this.imageSizes.length;t++)this.styles.push({url:"".concat(this.imagePath+(t+1),".").concat(this.imageExtension),height:this.imageSizes[t]||0,width:this.imageSizes[t]||0})},t.prototype.fitMapToMarkers=function(){for(var t=this.getMarkers(),e=new google.maps.LatLngBounds,n=0;n<t.length;n++){var i=t[n].getPosition();i&&e.extend(i)}var o=this.getMap();null!==o&&"fitBounds"in o&&o.fitBounds(e)},t.prototype.getGridSize=function(){return this.gridSize},t.prototype.setGridSize=function(t){this.gridSize=t},t.prototype.getMinimumClusterSize=function(){return this.minClusterSize},t.prototype.setMinimumClusterSize=function(t){this.minClusterSize=t},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.setMaxZoom=function(t){this.maxZoom=t},t.prototype.getStyles=function(){return this.styles},t.prototype.setStyles=function(t){this.styles=t},t.prototype.getTitle=function(){return this.title},t.prototype.setTitle=function(t){this.title=t},t.prototype.getZoomOnClick=function(){return this.zoomOnClick},t.prototype.setZoomOnClick=function(t){this.zoomOnClick=t},t.prototype.getAverageCenter=function(){return this.averageCenter},t.prototype.setAverageCenter=function(t){this.averageCenter=t},t.prototype.getIgnoreHidden=function(){return this.ignoreHidden},t.prototype.setIgnoreHidden=function(t){this.ignoreHidden=t},t.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons},t.prototype.setEnableRetinaIcons=function(t){this.enableRetinaIcons=t},t.prototype.getImageExtension=function(){return this.imageExtension},t.prototype.setImageExtension=function(t){this.imageExtension=t},t.prototype.getImagePath=function(){return this.imagePath},t.prototype.setImagePath=function(t){this.imagePath=t},t.prototype.getImageSizes=function(){return this.imageSizes},t.prototype.setImageSizes=function(t){this.imageSizes=t},t.prototype.getCalculator=function(){return this.calculator},t.prototype.setCalculator=function(t){this.calculator=t},t.prototype.getBatchSizeIE=function(){return this.batchSizeIE},t.prototype.setBatchSizeIE=function(t){this.batchSizeIE=t},t.prototype.getClusterClass=function(){return this.clusterClass},t.prototype.setClusterClass=function(t){this.clusterClass=t},t.prototype.getMarkers=function(){return this.markers},t.prototype.getTotalMarkers=function(){return this.markers.length},t.prototype.getClusters=function(){return this.clusters},t.prototype.getTotalClusters=function(){return this.clusters.length},t.prototype.addMarker=function(t,e){this.pushMarkerTo(t),e||this.redraw()},t.prototype.addMarkers=function(t,e){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var i=t[n];i&&this.pushMarkerTo(i)}e||this.redraw()},t.prototype.pushMarkerTo=function(t){var e=this;t.getDraggable()&&google.maps.event.addListener(t,"dragend",function(){e.ready&&(t.isAdded=!1,e.repaint())}),t.isAdded=!1,this.markers.push(t)},t.prototype.removeMarker_=function(t){var e=-1;if(this.markers.indexOf)e=this.markers.indexOf(t);else for(var n=0;n<this.markers.length;n++)if(t===this.markers[n]){e=n;break}return -1!==e&&(t.setMap(null),this.markers.splice(e,1),!0)},t.prototype.removeMarker=function(t,e){var n=this.removeMarker_(t);return!e&&n&&this.repaint(),n},t.prototype.removeMarkers=function(t,e){for(var n=!1,i=0;i<t.length;i++){var o=t[i];n=n||this.removeMarker_(o)}return!e&&n&&this.repaint(),n},t.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers=[]},t.prototype.repaint=function(){var t=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout(function(){for(var e=0;e<t.length;e++)t[e].remove()},0)},t.prototype.getExtendedBounds=function(t){var e=this.getProjection(),n=e.fromLatLngToDivPixel(new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()));null!==n&&(n.x+=this.gridSize,n.y-=this.gridSize);var i=e.fromLatLngToDivPixel(new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()));if(null!==i&&(i.x-=this.gridSize,i.y+=this.gridSize),null!==n){var o=e.fromDivPixelToLatLng(n);null!==o&&t.extend(o)}if(null!==i){var s=e.fromDivPixelToLatLng(i);null!==s&&t.extend(s)}return t},t.prototype.redraw=function(){this.createClusters(0)},t.prototype.resetViewport=function(t){for(var e=0,n=this.clusters;e<n.length;e++)n[e].remove();this.clusters=[];for(var i=0,o=this.markers;i<o.length;i++){var s=o[i];s.isAdded=!1,t&&s.setMap(null)}},t.prototype.distanceBetweenPoints=function(t,e){var n=(e.lat()-t.lat())*Math.PI/180,i=(e.lng()-t.lng())*Math.PI/180,o=Math.sin(n/2)*Math.sin(n/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(i/2)*Math.sin(i/2);return 2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))*6371},t.prototype.isMarkerInBounds=function(t,e){var n=t.getPosition();return!!n&&e.contains(n)},t.prototype.addToClosestCluster=function(t){for(var e,n=4e4,i=null,o=0,s=this.cluster
1s;o<s.length;o++){var r=(e=s[o]).getCenter(),a=t.getPosition();if(r&&a){var l=this.distanceBetweenPoints(r,a);l<n&&(n=l,i=e)}}i&&i.isMarkerInClusterBounds(t)?i.addMarker(t):((e=new N(this)).addMarker(t),this.clusters.push(e))},t.prototype.createClusters=function(t){var e=this;if(this.ready){0===t&&(google.maps.event.trigger(this,"clusteringbegin",this),null!==this.timerRefStatic&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var n=this.getMap(),i=null!==n&&("getBounds"in n)?n.getBounds():null,o=((null==n?void 0:n.getZoom())||0)>3?new google.maps.LatLngBounds(null==i?void 0:i.getSouthWest(),null==i?void 0:i.getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),s=this.getExtendedBounds(o),r=Math.min(t+this.batchSize,this.markers.length),a=t;a<r;a++){var l=this.markers[a];l&&!l.isAdded&&this.isMarkerInBounds(l,s)&&(!this.ignoreHidden||this.ignoreHidden&&l.getVisible())&&this.addToClosestCluster(l)}if(r<this.markers.length)this.timerRefStatic=window.setTimeout(function(){e.createClusters(r)},0);else{this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this);
1for(var p=0,h=this.clusters;p<h.length;p++)h[p].updateIcon()}}},t.prototype.extend=function(t,e){return(function(t){for(var e in t.prototype)this.prototype[e]=t.prototype[e];return this}).apply(t,[e])},t}(),K={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},Y={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)}};function q(t){t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation()}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.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),e.prototype.componentDidMount=function(){if(this.context){var t=new G(this.context,[],this.props.options);this.registeredEvents=b({updaterMap:Y,eventMap:K,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{markerClusterer:t}},this.setClustererCallback)}},e.prototype.componentDidUpdate=function(t){this.state.markerClusterer&&(y(this.registeredEvents),this.registeredEvents=b({updaterMap:Y,eventMap:K,prevProps:t,nextProps:this.props,instance:this.state.markerClusterer}))},e.prototype.componentWillUnmount=function(){null!==this.state.markerClusterer&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),y(this.registeredEvents),this.state.markerClusterer.setMap(null))},e.prototype.render=function(){return null!==this.state.markerClusterer?this.props.children(this.state.markerClusterer):null},e.contextType=f}(p.PureComponent);var J=function(){function t(e){void 0===e&&(e={}),this.getCloseClickHandler=this.getCloseClickHandler.bind(this),this.closeClickHandler=this.closeClickHandler.bind(this),this.createInfoBoxDiv=this.createInfoBoxDiv.bind(this),this.addClickHandler=this.addClickHandler.bind(this),this.getCloseBoxImg=this.getCloseBoxImg.bind(this),this.getBoxWidths=this.getBoxWidths.bind(this),this.setBoxStyle=this.setBoxStyle.bind(this),this.setPosition=this.setPosition.bind(this),this.getPosition=this.getPosition.bind(this),this.setOptions=this.setOptions.bind(this),this.setContent=this.setContent.bind(this),this.setVisible=this.setVisible.bind(this),this.getContent=this.getContent.bind(this),this.getVisible=this.getVisible.bind(this),this.setZIndex=this.setZIndex.bind(this),this.getZIndex=this.getZIndex.bind(this),this.onRemove=this.onRemove.bind(this),this.panBox=this.panBox.bind(this),this.extend=this.extend.bind(this),this.close=this.close.bind(this),this.draw=this.draw.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.open=this.open.bind(this),this.extend(t,google.maps.OverlayView),this.content=e.content||"",this.disableAutoPan=e.disableAutoPan||!1,this.maxWidth=e.maxWidth||0,this.pixelOffset=e.pixelOffset||new google.maps.Size(0,0),this.position=e.position||new google.maps.LatLng(0,0),this.zIndex=e.zIndex||null,this.boxClass=e.boxClass||"infoBox",this.boxStyle=e.boxStyle||{},this.closeBoxMargin=e.closeBoxMargin||"2px",this.closeBoxURL=e.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",""===e.closeBoxURL&&(this.closeBoxURL=""),this.infoBoxClearance=e.infoBoxClearance||new google.maps.Size(1,1),void 0===e.visible&&(void 0===e.isHidden?e.visible=!0:e.visible=!e.isHidden),this.isHidden=!e.visible,this.alignBottom=e.alignBottom||!1,this.pane=e.pane||"floatPane",this.enableEventPropagation=e.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}return t.prototype.createInfoBoxDiv=function(){var t=this;if(!this.div){this.div=document.createElement("div"),this.setBoxStyle(),"string"==typeof this.content?this.div.innerHTML=this.getCloseBoxImg()+this.content:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(this.content));var e=this.getPanes();if(null!==e&&e[this.pane].appendChild(this.div),this.addClickHandler(),this.div.style.width)this.fixedWidthSet=!0;else if(0!==this.maxWidth&&this.div.offsetWidth>this.maxWidth)this.div.style.width=this.maxWidth+"px",this.fixedWidthSet=!0;else{var n=this.getBoxWidths();
vendor: 9,750 bytes, line 1
1this.div.style.width=this.div.offsetWidth-n.left-n.right+"px",this.fixedWidthSet=!1}if(this.panBox(this.disableAutoPan),!this.enableEventPropagation){this.eventListeners=[];for(var i=0,o=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"];i<o.length;i++){var s=o[i];this.eventListeners.push(google.maps.event.addListener(this.div,s,q))}this.eventListeners.push(google.maps.event.addListener(this.div,"mouseover",function(){t.div&&(t.div.style.cursor="default")}))}this.contextListener=google.maps.event.addListener(this.div,"contextmenu",function(e){e.returnValue=!1,e.preventDefault&&e.preventDefault(),t.enableEventPropagation||q(e)}),google.maps.event.trigger(this,"domready")}},t.prototype.getCloseBoxImg=function(){var t="";return""!==this.closeBoxURL&&(t='<img alt="" aria-hidden="true" src=\''+this.closeBoxURL+"' align=right style=' position: relative; cursor: pointer; margin: "+this.closeBoxMargin+";'>"),t},t.prototype.addClickHandler=function(){this.closeListener=this.div&&this.div.firstChild&&""!==this.closeBoxURL?google.maps.event.addListener(this.div.firstChild,"click",this.getCloseClickHandler()):null},t.prototype.closeClickHandler=function(t){t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation(),google.maps.event.trigger(this,"closeclick"),this.close()},t.prototype.getCloseClickHandler=function(){return this.closeClickHandler},t.prototype.panBox=function(t){if(this.div&&!t){var e=this.getMap();if(e instanceof google.maps.Map){var n=0,i=0,o=e.getBounds();o&&!o.contains(this.position)&&e.setCenter(this.position);var s=e.getDiv(),r=s.offsetWidth,a=s.offsetHeight,l=this.pixelOffset.width,p=this.pixelOffset.height,h=this.div.offsetWidth,c=this.div.offsetHeight,u=this.infoBoxClearance.width,d=this.infoBoxClearance.height,g=this.getProjection().fromLatLngToContainerPixel(this.position);null!==g&&(g.x<-l+u?n=g.x+l-u:g.x+h+l+u>r&&(n=g.x+h+l+u-r),this.alignBottom?g.y<-p+d+c?i=g.y+p-d-c:g.y+p+d>a&&(i=g.y+p+d-a):g.y<-p+d?i=g.y+p-d:g.y+c+p+d>a&&(i=g.y+c+p+d-a)),0===n&&0===i||e.panBy(n,i)}}},t.prototype.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var t=this.boxStyle;for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(this.div.style[e]=t[e]);if(this.div.style.webkitTransform="translateZ(0)",void 0!==this.div.style.opacity&&""!==this.div.style.opacity){var n=parseFloat(this.div.style.opacity||"");this.div.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*n+')"',this.div.style.filter="alpha(opacity="+100*n+")"}this.div.style.position="absolute",this.div.style.visibility="hidden",null!==this.zIndex&&(this.div.style.zIndex=this.zIndex+""),this.div.style.overflow||(this.div.style.overflow="auto")}},t.prototype.getBoxWidths=function(){var t={top:0,bottom:0,left:0,right:0};if(!this.div)return t;if(document.defaultView){var e=this.div.ownerDocument,n=e&&e.defaultView?e.defaultView.getComputedStyle(this.div,""):null;n&&(t.top=parseInt(n.borderTopWidth||"",10)||0,t.bottom=parseInt(n.borderBottomWidth||"",10)||0,t.left=parseInt(n.borderLeftWidth||"",10)||0,t.right=parseInt(n.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var i=this.div.currentStyle;i&&(t.top=parseInt(i.borderTopWidth||"",10)||0,t.bottom=parseInt(i.borderBottomWidth||"",10)||0,t.left=parseInt(i.borderLeftWidth||"",10)||0,t.right=parseInt(i.borderRightWidth||"",10)||0)}return t},t.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},t.prototype.draw=function(){if(this.createInfoBoxDiv(),this.div){var t=this.getProjection().fromLatLngToDivPixel(this.position);null!==t&&(this.div.style.left=t.x+this.pixelOffset.width+"px",this.alignBottom?this.div.style.bottom=-(t.y+this.pixelOffset.height)+"px":this.div.style.top=t.y+this.pixelOffset.height+"px"),this.isHidden?this.div.style.visibility="hidden":this.div.style.visibility="visible"}},t.prototype.setOptions=function(t){void 0===t&&(t={}),void 0!==t.boxClass&&(this.boxClass=t.boxClass,this.setBoxStyle()),void 0!==t.boxStyle&&(this.boxStyle=t.boxStyle,this.setBoxStyle()),void 0!==t.content&&this.setContent(t.content),void 0!==t.disableAutoPan&&(this.disableAutoPan=t.disableAutoPan),void 0!==t.maxWidth&&(this.maxWidth=t.maxWidth),void 0!==t.pixelOffset&&(this.pixelOffset=t.pixelOffset),void 0!==t.alignBottom&&(this.alignBottom=t.alignBottom),void 0!==t.position&&this.setPosition(t.position),void 0!==t.zIndex&&this.setZIndex(t.zIndex),void 0!==t.closeBoxMargin&&(this.closeBoxMargin=t.closeBoxMargin),void 0!==t.closeBoxURL&&(this.closeBoxURL=t.closeBoxURL),void 0!==t.infoBoxClearance&&(this.infoBoxClearance=t.infoBoxClearance),void 0!==t.isHidden&&(this.isHidden=t.isHidden),void 0!==t.visible&&(this.isHidden=!t.visible),void 0!==t.enableEventPropagation&&(this.enableEventPropagation=t.enableEventPropagation),this.div&&this.draw()},t.prototype.setContent=function(t){this.content=t,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),"string"==typeof t?this.div.innerHTML=this.getCloseBoxImg()+t:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(t)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px","string"==typeof t?this.div.innerHTML=this.getCloseBoxImg()+t:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(t))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},t.prototype.setPosition=function(t){this.position=t,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},t.prototype.setVisible=function(t){this.isHidden=!t,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},t.prototype.setZIndex=function(t){this.zIndex=t,this.div&&(this.div.style.zIndex=t+""),google.maps.event.trigger(this,"zindex_changed")},t.prototype.getContent=function(){return this.content},t.prototype.getPosition=function(){return this.position},t.prototype.getZIndex=function(){return this.zIndex},t.prototype.getVisible=function(){return null!=this.getMap()&&!this.isHidden},t.prototype.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},t.prototype.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},t.prototype.open=function(t,e){var n=this;e&&(this.position=e.getPosition(),this.moveListener=google.maps.event.addListener(e,"position_changed",function(){var t=e.getPosition();n.setPosition(t)}),this.mapListener=google.maps.event.addListener(e,"map_changed",function(){n.setMap(e.map)})),this.setMap(t),this.div&&this.panBox()},t.prototype.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var t=0,e=this.eventListeners;t<e.length;t++){var n=e[t];google.maps.event.removeListener(n)}this.eventListeners=null}this.moveListener&&(google.maps.event.removeListener(this.moveListener),this.moveListener=null),this.mapListener&&(google.maps.event.removeListener(this.mapListener),this.mapListener=null),this.contextListener&&(google.maps.event.removeListener(this.contextListener),this.contextListener=null),this.setMap(null)},t.prototype.extend=function(t,e){return(function(t){for(var e in t.prototype)Object.prototype.hasOwnProperty.call(this,e)||(this.prototype[e]=t.prototype[e]);return this}).apply(t,[e])},t}(),$={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){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)}};!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.registeredEvents=[],e.containerElement=null,e.state={infoBox:null},e.open=function(t,n){n?null!==e.context&&t.open(e.context,n):t.getPosition()?null!==e.context&&t.open(e.context):m(!1,"You must provide either an anchor or a position prop for <InfoBox>.")},e.setInfoBoxCallback=function(){null!==e.state.infoBox&&null!==e.containerElement&&(e.state.infoBox.setContent(e.containerElement),e.open(e.state.infoBox,e.props.anchor),e.props.onLoad&&e.props.onLoad(e.state.infoBox))},e}u(e,t),e.prototype.componentDidMount=function(){var t,e=this.props.options||{},n=e.position,i=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&0>e.indexOf(i)&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(t);o<i.length;o++)0>e.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]]);return n}(e,["position"]);!n||n instanceof google.maps.LatLng||(t=new google.maps.LatLng(n.lat,n.lng));var o=new J(d(d({},i),t?{position:t}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=b({updaterMap:X,eventMap:$,prevProps:{},nextProps:this.props,instance:o}),this.setState({infoBox:o},this.setInfoBoxCallback)},e.prototype.componentDidUpdate=function(t){var e=this.state.infoBox;null!==e&&(y(this.registeredEvents),this.registeredEvents=b({updaterMap:X,eventMap:$,prevProps:t,nextProps:this.props,instance:e}))},e.prototype.componentWillUnmount=function(){var t=this.props.onUnmount,e=this.state.infoBox;null!==e&&(t&&t(e),y(this.registeredEvents),e.close())},e.prototype.render=function(){return this.containerElement?(0,h.createPortal)(p.Children.only(this.props.children),this.containerElement):null},e.contextType=f}(p.PureComponent);var Q=g(function t(e,n){if(e===n)return!0;
1if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;if(Array.isArray(e)){if((i=e.length)!=n.length)return!1;for(o=i;0!=o--;)if(!t(e[o],n[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((i=(s=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,s[o]))return!1;for(o=i;0!=o--;){var i,o,s,r=s[o];if(!t(e[r],n[r]))return!1}return!0}return e!=e&&n!=n});let tt=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class te{static from(t){if(!(t instanceof ArrayBuffer))throw Error("Data must be an instance of ArrayBuffer.");let[e,n]=new Uint8Array(t,0,2);if(219!==e)throw Error("Data does not appear to be in a KDBush format.");let i=n>>4;if(1!==i)throw Error("Got v".concat(i," data when expected v").concat(1,"."));let o=tt[15&n];if(!o)throw Error("Unrecognized array type.");let[s]=new Uint16Array(t,2,1),[r]=new Uint32Array(t,4,1);return new te(r,s,o,t)}add(t,e){let n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=t,this.coords[this._pos++]=e,n}finish(){let t=this._pos>>1;if(t!==this.numItems)throw Error("Added ".concat(t," items when expected ").concat(this.numItems,"."));return function t(e,n,i,o,s,r){if(s-o<=i)return;let a=o+s>>1;(function t(e,n,i,o,s,r){for(;s>o;){if(s-o>600){let a=s-o+1,l=i-o+1,p=Math.log(a),h=.5*Math.exp(2*p/3),c=.5*Math.sqrt(p*h*(a-h)/a)*(l-a/2<0?-1:1),u=Math.max(o,Math.floor(i-l*h/a+c)),d=Math.min(s,Math.floor(i+(a-l)*h/a+c));t(e,n,i,u,d,r)}let a=n[2*i+r],l=o,p=s;for(tn(e,n,o,i),n[2*s+r]>a&&tn(e,n,o,s);l<p;){for(tn(e,n,l,p),l++,p--;n[2*l+r]<a;)l++;for(;n[2*p+r]>a;)p--}n[2*o+r]===a?tn(e,n,o,p):tn(e,n,++p,s),p<=i&&(o=p+1),i<=p&&(s=p-1)}})(e,n,a,o,s,r),t(e,n,i,o,a-1,1-r),t(e,n,i,a+1,s,1-r)}(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,n,i){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:o,coords:s,nodeSize:r}=this,a=[0,o.length-1,0],l=[];for(;a.length;){let p=a.pop()||0,h=a.pop()||0,c=a.pop()||0;if(h-c<=r){for(let r=c;r<=h;r++){let a=s[2*r],p=s[2*r+1];a>=t&&a<=n&&p>=e&&p<=i&&l.push(o[r])}continue}let u=c+h>>1,d=s[2*u],g=s[2*u+1];d>=t&&d<=n&&g>=e&&g<=i&&l.push(o[u]),(0===p?t<=d:e<=g)&&(a.push(c),a.push(u-1),a.push(1-p)),(0===p?n>=d:i>=g)&&(a.push(u+1),a.push(h),a.push(1-p))}return l}within(t,e,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:i,coords:o,nodeSize:s}=this,r=[0,i.length-1,0],a=[],l=n*n;for(;r.length;){let p=r.pop()||0,h=r.pop()||0,c=r.pop()||0;if(h-c<=s){for(let n=c;n<=h;n++)to(o[2*n],o[2*n+1],t,e)<=l&&a.push(i[n]);continue}let u=c+h>>1,d=o[2*u],g=o[2*u+1];to(d,g,t,e)<=l&&a.push(i[u]),(0===p?t-n<=d:e-n<=g)&&(r.push(c),r.push(u-1),r.push(1-p)),(0===p?t+n>=d:e+n>=g)&&(r.push(u+1),r.push(h),r.push(1-p))}return a}constructor(t,e=64,n=Float64Array,i){if(isNaN(t)||t<0)throw Error("Unpexpected numItems value: ".concat(t,"."));this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=n,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;let o=tt.indexOf(this.ArrayType),s=2*t*this.ArrayType.BYTES_PER_ELEMENT,r=t*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-r%8)%8;if(o<0)throw Error("Unexpected typed array class: ".concat(n,"."));i&&i instanceof ArrayBuffer?(this.data=i,this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+r+a,2*t),this._pos=2*t,this._finished=!0):(this.data=new ArrayBuffer(8+s+r+a),this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+r+a,2*t),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+o]),new Uint16Array(this.data,2,1)[0]=e,new Uint32Array(this.data,4,1)[0]=t)}}function tn(t,e,n,i){ti(t,n,i),ti(e,2*n,2*i),ti(e,2*n+1,2*i+1)}function ti(t,e,n){let i=t[e];t[e]=t[n],t[n]=i}function to(t,e,n,i){let o=t-n,s=e-i;return o*o+s*s}let ts={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},tr=Math.fround||(o=new Float32Array(1),t=>(o[0]=+t,o[0]));class ta{load(t){let{log:e,minZoom:n,maxZoom:i}=this.options;e&&console.time("total time");let o="prepare ".concat(t.length," points");e&&console.time(o),this.points=t;let s=[];for(let e=0;e<t.length;e++){let n=t[e];if(!n.geometry)continue;let[i,o]=n.geometry.coordinates,r=tr(th(i)),a=tr(tc(o));s.push(r,a,1/0,e,-1,1),this.options.reduce&&s.push(0)}let r=this.trees[i+1]=this._createTree(s);e&&console.timeEnd(o);for(let t=i;t>=n;t--){let n=+Date.now();r=this.trees[t]=this._createTree(this._cluster(r,t)),e&&console.log("z%d: %d clusters in %dms",t,r.numItems,+Date.now()-n)}return e&&console.timeEnd("total time"),this}getClusters(t,e){let n=((t[0]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,t[1])),o=180===t[2]?180:((t[2]+180)%360+360)%360-180,s=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)n=-180,o=180;else if(n>o){let t=this.getClusters([n,i,180,s],e),r=this.getClusters([-180,i,o,s],e);return t.concat(r)}let r=this.trees[this._limitZoom(e)],a=r.range(th(n),tc(s),th(o),tc(i)),l=r.data,p=[];for(let t of a){let e=this.stride*t;p.push(l[e+5]>1?tl(l,e,this.clusterProps):this.points[l[e+3]])}return p}getChildren(t){let e=this._getOriginId(t),n=this._getOriginZoom(t),i="No cluster with the specified id.",o=this.trees[n];if(!o)throw Error(i);let s=o.data;if(e*this.stride>=s.length)throw Error(i);let r=this.options.radius/(this.options.extent*Math.pow(2,n-1)),a=s[e*this.stride],l=s[e*this.stride+1],p=o.within(a,l,r),h=[];for(let e of p){let n=e*this.stride;s[n+4]===t&&h.push(s[n+5]>1?tl(s,n,this.clusterProps):this.points[s[n+3]])}if(0===h.length)throw Error(i);return h}getLeaves(t,e,n){e=e||10,n=n||0;let i=[];return this._appendLeaves(i,t,e,n,0),i}getTile(t,e,n){let i=this.trees[this._limitZoom(t)],o=Math.pow(2,t),{extent:s,radius:r}=this.options,a=r/s,l=(n-a)/o,p=(n+1+a)/o,h={features:[]};return this._addTileFeatures(i.range((e-a)/o,l,(e+1+a)/o,p),i.data,e,n,o,h),0===e&&this._addTileFeatures(i.range(1-a/o,l,1,p),i.data,o,n,o,h),e===o-1&&this._addTileFeatures(i.range(0,l,a/o,p),i.data,-1,n,o,h),h.features.length?h:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){let n=this.getChildren(t);if(e++,1!==n.length)break;t=n[0].properties.cluster_id}return e}_appendLeaves(t,e,n,i,o){for(let s of this.getChildren(e)){let e=s.properties;if(e&&e.cluster?o+e.point_count<=i?o+=e.point_count:o=this._appendLeaves(t,e.cluster_id,n,i,o):o<i?o++:t.push(s),t.length===n)break}return o}_createTree(t){let e=new te(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let n=0;n<t.length;n+=this.stride)e.add(t[n],t[n+1]);return e.finish(),e.data=t,e}_addTileFeatures(t,e,n,i,o,s){for(let r of t){let t,a,l,p;let h=r*this.stride,c=e[h+5]>1;if(c)t=tp(e,h,this.clusterProps),a=e[h],l=e[h+1];else{let n=this.points[e[h+3]];t=n.properties;let[i,o]=n.geometry.coordinates;a=th(i),l=tc(o)}let u={type:1,geometry:[[Math.round(this.options.extent*(a*o-n)),Math.round(this.options.extent*(l*o-i))]],tags:t};void 0!==(p=c||this.options.generateId?e[h+3]:this.points[e[h+3]].id)&&(u.id=p),s.features.push(u)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){let{radius:n,extent:i,reduce:o,minPoints:s}=this.options,r=n/(i*Math.pow(2,e)),a=t.data,l=[],p=this.stride;for(let n=0;n<a.length;n+=p){if(a[n+2]<=e)continue;a[n+2]=e;let i=a[n],h=a[n+1],c=t.within(a[n],a[n+1],r),u=a[n+5],d=u;for(let t of c){let n=t*p;a[n+2]>e&&(d+=a[n+5])}if(d>u&&d>
1=s){let t,s=i*u,r=h*u,g=-1,m=((n/p|0)<<5)+(e+1)+this.points.length;for(let i of c){let l=i*p;if(a[l+2]<=e)continue;a[l+2]=e;let h=a[l+5];s+=a[l]*h,r+=a[l+1]*h,a[l+4]=m,o&&(t||(t=this._map(a,n,!0),g=this.clusterProps.length,this.clusterProps.push(t)),o(t,this._map(a,l)))}a[n+4]=m,l.push(s/d,r/d,1/0,m,-1,d),o&&l.push(g)}else{for(let t=0;t<p;t++)l.push(a[n+t]);if(d>1)for(let t of c){let n=t*p;if(!(a[n+2]<=e)){a[n+2]=e;for(let t=0;t<p;t++)l.push(a[n+t])}}}}return l}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e,n){if(t[e+5]>1){let i=this.clusterProps[t[e+6]];return n?Object.assign({},i):i}let i=this.points[t[e+3]].properties,o=this.options.map(i);return n&&o===i?Object.assign({},o):o}constructor(t){this.options=Object.assign(Object.create(ts),t),this.trees=Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}}function tl(t,e,n){return{type:"Feature",id:t[e+3],properties:tp(t,e,n),geometry:{type:"Point",coordinates:[(t[e]-.5)*360,360*Math.atan(Math.exp((180-360*t[e+1])*Math.PI/180))/Math.PI-90]}}}function tp(t,e,n){let i=t[e+5],o=i>=1e4?"".concat(Math.round(i/1e3),"k"):i>=1e3?"".concat(Math.round(i/100)/10,"k"):i,s=t[e+6];return Object.assign(-1===s?{}:Object.assign({},n[s]),{cluster:!0,cluster_id:t[e+3],point_count:i,point_count_abbreviated:o})}function th(t){return t/360+.5}function tc(t){let e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:n>1?1:n}class tu{static isAdvancedMarkerAvailable(t){return google.maps.marker&&!0===t.getMapCapabilities().isAdvancedMarkersAvailable}static isAdvancedMarker(t){return google.maps.marker&&t instanceof google.maps.marker.AdvancedMarkerElement}static setMap(t,e){this.isAdvancedMarker(t)?t.map=e:t.setMap(e)}static getPosition(t){if(this.isAdvancedMarker(t)){if(t.position){if(t.position instanceof google.maps.LatLng)return t.position;if(t.position.lat&&t.position.lng)return new google.maps.LatLng(t.position.lat,t.position.lng)}return new google.maps.LatLng(null)}return t.getPosition()}static getVisible(t){return!!this.isAdvancedMarker(t)||t.getVisible()}}class td{get bounds(){if(0===this.markers.length&&!this._position)return;let t=new google.maps.LatLngBounds(this._position,this._position);for(let e of this.markers)t.extend(tu.getPosition(e));return t}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(t=>tu.getVisible(t)).length}push(t){this.markers.push(t)}delete(){this.marker&&(tu.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}constructor({markers:t,position:e}){this.markers=t,e&&(e instanceof google.maps.LatLng?this._position=e:this._position=new google.maps.LatLng(e))}}let tg=(t,e,n)=>{let{northEast:i,southWest:o}=tm(t,e);return tv(tf({northEast:i,southWest:o},n),e)},tm=(t,e)=>({northEast:e.fromLatLngToDivPixel(t.getNorthEast()),southWest:e.fromLatLngToDivPixel(t.getSouthWest
1())}),tf=(t,e)=>{let{northEast:n,southWest:i}=t;return n.x+=e,n.y-=e,i.x-=e,i.y+=e,{northEast:n,southWest:i}},tv=(t,e)=>{let{northEast:n,southWest:i}=t,o=e.fromDivPixelToLatLng(i),s=e.fromDivPixelToLatLng(n);return new google.maps.LatLngBounds(o,s)};class ty{noop(t){let{markers:e}=t;return tb(e)}constructor({maxZoom:t=16}){this.maxZoom=t}}let tb=t=>t.map(t=>new td({position:tu.getPosition(t),markers:[t]}));class tC{constructor(){!function(t,e){for(let n in e.prototype)t.prototype[n]=e.prototype[n]}(tC,google.maps.OverlayView)}}(s=a||(a={})).CLUSTERING_BEGIN="clusteringbegin",s.CLUSTERING_END="clusteringend",s.CLUSTER_CLICK="click";var tx={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},tM={options:function(t,e){t.setOptions(e)},position:function(t,e){t.setPosition(e)},zIndex:function(t,e){t.setZIndex(e)}};!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.registeredEvents=[],e.containerElement=null,e.state={infoWindow:null},e.open=function(t,n){n?t.open(e.context,n):t.getPosition()?t.open(e.context):m(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.")},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(e,t),e.prototype.componentDidMount=function(){var t=new google.maps.InfoWindow(d({},this.props.options||{}));this.containerElement=document.createElement("div"),this.registeredEvents=b({updaterMap:tM,eventMap:tx,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{infoWindow:t}},this.setInfoWindowCallback)},e.prototype.componentDidUpdate=function(t){null!==this.state.infoWindow&&(y(this.registeredEvents),this.registeredEvents=b({updaterMap:tM,eventMap:tx,prevProps:t,nextProps:this.props,instance:this.state.infoWindow}))},e.prototype.componentWillUnmount=function(){null!==this.state.infoWindow&&(y(this.registeredEvents),this.props.onUnmount&&this.props.onUnmount(this.state.infoWindow),this.state.infoWindow.close())},e.prototype.render=function(){return this.containerElement?(0,h.createPortal)(p.Children.only(this.props.children),this.containerElement):null},e.contextType=f}(p.PureComponent);var tL={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},tk={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)}};!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.registeredEvents=[],e.state={polyline:null},e.setPolylineCallback=function(){null!==e.state.polyline&&e.props.onLoad&&e.props.onLoad(e.state.polyline)},e}u(e,t),e.prototype.componentDidMount=function(){var t=new google.maps.Polyline(d(d({},this.props.options||{}),{map:this.context}));this.registeredEvents=b({updaterMap:tk,eventMap:tL,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{polyline:t}},this.setPolylineCallback)},e.prototype.componentDidUpdate=function(t){null!==this.state.polyline&&(y(this.registeredEvents),this.registeredEvents=b({updaterMap:tk,eventMap:tL,prevProps:t,nextProps:this.props,instance:this.state.polyline}))},e.prototype.componentWillUnmount=function(){null!==this.state.polyline&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),y(this.registeredEvents),this.state.polyline.setMap(null))},e.prototype.render=function(){return null},e.contextType=f}(p.PureComponent);var tw={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},tP={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)}};!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.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),e.prototype.componentDidMount=function(){var t=new google.maps.Polygon(d(d({},this.props.options||{}),{map:this.context}));this.registeredEvents=b({updaterMap:tP,eventMap:tw,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{polygon:t}},this.setPolygonCallback)},e.prototype.componentDidUpdate=function(t){null!==this.state.polygon&&(y(this.registeredEvents),this.registeredEvents=b({updaterMap:tP,eventMap:tw,prevProps:t,nextProps:this.props,instance:this.state.polygon}))},e.prototype.componentWillUnmount=function(){null!==this.state.polygon&&(this.props.onUnmount&&this.props.onUnmount(this.state.polygon),y(this.registeredEvents),this.state.polygon&&this.state.polygon.setMap(null))},e.prototype.render=function(){return null},e.contextType=f}(p.PureComponent);var tE={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"},tS={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)}};!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.registeredEvents=[],e.state={rectangle:null},e.setRectangleCallback=function(){null!==e.state.rectangle&&e.props.onLoad&&e.props.onLoad(e.state.rectangle)},e}u(e,t),e.prototype.componentDidMount=function(){var t=new google.maps.Rectangle(d(d({},this.props.options||{}),{map:this.context}));this.registeredEvents=b({updaterMap:tS,eventMap:tE,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{rectangle:t}},this.setRectangleCallback)},e.prototype.componentDidUpdate=function(t){null!==this.state.rectangle&&(y(this.registeredEvents),this.registeredEvents=b({updaterMap:tS,eventMap:tE,prevProps:t,nextProps:this.props,instance:this.state.rectangle}))},e.prototype.componentWillUnmount=function(){null!==this.state.rectangle&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),y(this.registeredEvents),this.state.rectangle.setMap(null))},e.prototype.render=function(){return null},e.contextType=f}(p.PureComponent);var tI={onCenterChanged:"center_changed",onRadiusChanged:"radius_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},tD={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)}};!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.registeredEvents=[],e.state={circle:null},e.setCircleCallback=function(){null!==e.state.circle&&e.props.onLoad&&e.props.onLoad(e.state.circle)},e}u(e,t),e.prototype.componentDidMount=function(){var t=new google.maps.Circle(d(d({},this.props.options||{}),{map:this.context}));this.registeredEvents=b({updaterMap:tD,eventMap:tI,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{circle:t}},this.setCircleCallback)},e.prototype.componentDidUpdate=function(t){null!==this.state.circle&&(y(this.registeredEvents),this.registeredEvents=b({updaterMap:tD,eventMap:tI,prevProps:t,nextProps:this.props,instance:this.state.circle}))},e.prototype.componentWillUnmount=function(){var t;null!==this.state.circle&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),y(this.registeredEvents),null===(t=this.state.circle)||void 0===t||t.setMap(null))},e.prototype.render=function(){return null},e.contextType=f}(p.PureComponent);var tO={onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onAddFeature:"addfeature",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},tT={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,i){t.loadGeoJson(e,n,i)},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)}};!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.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),e.prototype.componentDidMount=function(){if(null!==this.context){var t=new google.maps.Data(d(d({},this.props.options||{}),{map:this.context}));this.registeredEvents=b({updaterMap:tT,eventMap:tO,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{data:t}},this.setDataCallback)}},e.prototype.componentDidUpdate=function(t){null!==this.state.data&&(y(this.registeredEvents),this.registeredEvents=b({updaterMap:tT,eventMap:tO,prevProps:t,nextProps:this.props,instance:this.state.data}))},e.prototype.componentWillUnmount=function(){null!==this.state.data&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),y(this.registeredEvents),this.state.data&&this.state.data.setMap(null))},e.prototype.render=function(){return null},e.contextType=f}(p.PureComponent);var tB={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},t_={options:function(t,e){t.setOptions(e)},url:function(t,e){t.setUrl(e)},zIndex:function(t,e){t.setZIndex(e)}};function tU(t){return t?(t instanceof google.maps.LatLng?t:new google.maps.LatLng(t.lat,t.lng))+"":""}function tR(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)))+"":""}function tA(){}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.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),e.prototype.componentDidMount=function(){var t=new google.maps.KmlLayer(d(d({},this.props.options),{map:this.context}));this.registeredEvents=b({updaterMap:t_,eventMap:tB,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{kmlLayer:t}},this.setKmlLayerCallback)},e.prototype.componentDidUpdate=function(t){null!==this.state.kmlLayer&&(y(this.registeredEvents),this.registeredEvents=b({updaterMap:t_,eventMap:tB,prevProps:t,nextProps:this.props,instance:this.state.kmlLayer}))},e.prototype.componentWillUnmount=function(){null!==this.state.kmlLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),y(this.registeredEvents),this.state.kmlLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=f}(p.PureComponent),!function(t){function e(e){var n=t.call(this,e)||this;n.state={paneEl:null,containerStyle:{position:"absolute"}},n.updatePane=function(){var t=n.props.mapPaneName,e=n.overlayView.getPanes();m(!!t,"OverlayView requires props.mapPaneName but got %s",t),e?n.setState({paneEl:e[t]}):n.setState({paneEl:null})},n.onAdd=function(){var t,e;n.updatePane(),null===(e=(t=n.props).onLoad)||void 0===e||e.call(t,n.overlayView)},n.onPositionElement=function(){var t,e,i,o,s,r,a,l,p,h,c,u,g,m,f,v=(s=n.overlayView.getProjection(),r=d({x:0,y:0},n.containerRef.current?(i=n.containerRef.current,"function"==typeof(o=n.props.getPixelPositionOffset)?o(i.offsetWidth,i.offsetHeight):{x:0,y:0}):{}),a=n.props.bounds,l=n.props.position,void 0!==a?(h=a instanceof(p=google.maps.LatLngBounds)?a:(t=a,new p(new google.maps.LatLng(t.ne.lat,t.ne.lng),new google.maps.LatLng(t.sw.lat,t.sw.lng))),c=s&&s.fromLatLngToDivPixel(h.getNorthEast()),u=s&&s.fromLatLngToDivPixel(h.getSouthWest
1()),c&&u?{left:"".concat(u.x+r.x,"px"),top:"".concat(c.y+r.y,"px"),width:"".concat(c.x-u.x-r.x,"px"),height:"".concat(u.y-c.y-r.y,"px")}:{left:"-9999px",top:"-9999px"}):function(t,e,n){var i=t&&t.fromLatLngToDivPixel(n);if(i){var o=i.x,s=i.y;return{left:"".concat(o+e.x,"px"),top:"".concat(s+e.y,"px")}}return{left:"-9999px",top:"-9999px"}}(s,r,l instanceof(g=google.maps.LatLng)?l:new g((e=l).lat,e.lng)));f={left:(m=n.state.containerStyle).left,top:m.top,width:m.width,height:m.height},(v.left!==f.left||v.top!==f.top||v.width!==f.height||v.height!==f.height)&&n.setState({containerStyle:{top:v.top||0,left:v.left||0,width:v.width||0,height:v.height||0,position:"absolute"}})},n.draw=function(){n.onPositionElement()},n.onRemove=function(){var t,e;n.setState(function(){return{paneEl:null}}),null===(e=(t=n.props).onUnmount)||void 0===e||e.call(t,n.overlayView)},n.containerRef=(0,p.createRef)();var i=new google.maps.OverlayView;return i.onAdd=n.onAdd,i.draw=n.draw,i.onRemove=n.onRemove,n.overlayView=i,n}u(e,t),e.prototype.componentDidMount=function(){this.overlayView.setMap(this.context)},e.prototype.componentDidUpdate=function(t){var e=tU(t.position),n=tU(this.props.position),i=tR(t.bounds),o=tR(this.props.bounds);(e!==n||i!==o)&&this.overlayView.draw(),t.mapPaneName!==this.props.mapPaneName&&this.updatePane()},e.prototype.componentWillUnmount=function(){this.overlayView.setMap(null)},e.prototype.render=function(){var t=this.state.paneEl;return t?h.createPortal((0,l.jsx)("div",{ref:this.containerRef,style:this.state.containerStyle,children:p.Children.only(this.props.children)}),t):null},e.FLOAT_PANE="floatPane",e.MAP_PANE="mapPane",e.MARKER_LAYER="markerLayer",e.OVERLAY_LAYER="overlayLayer",e.OVERLAY_MOUSE_TARGET="overlayMouseTarget",e.contextType=f}(p.PureComponent);var tz={onDblClick:"dblclick",onClick:"click"},tW={opacity:function(t,e){t.setOpacity(e)}};!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.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),e.prototype.componentDidMount=function(){m(!!this.props.url||!!this.props.bounds,"For GroundOverlay, url and bounds are passed in to constructor and are immutable after instantiated. This is the behavior of Google Maps JavaScript API v3 ( See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay) Hence, use the corresponding two props provided by `react-google-maps-api`, url and bounds. In some cases, you'll need the GroundOverlay component to reflect the changes of url and bounds. You can leverage the React's key property to remount the component. Typically, just `key={url}` would serve your need. See https://github.com/tomchentw/react-google-maps/issues/655");var t=new google.maps.GroundOverlay(this.props.url,this.props.bounds,d(d({},this.props.options),{map:this.context}));this.registeredEvents=b({updaterMap:tW,eventMap:tz,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{groundOverlay:t}},this.setGroundOverlayCallback)},e.prototype.componentDidUpdate=function(t){null!==this.state.groundOverlay&&(y(this.registeredEvents),this.registeredEvents=b({updaterMap:tW,eventMap:tz,prevProps:t,nextProps:this.props,instance:this.state.groundOverlay}))},e.prototype.componentWillUnmount=function(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))},e.prototype.render=function(){return null},e.defaultProps={onLoad:tA},e.contextType=f}(p.PureComponent);var tj={},tV={data:function(t,e){t.setData(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)}};!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.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),e.prototype.componentDidMount=function(){m(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to <LoadScript />? %s',google.maps.visualization),m(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);var t=new google.maps.visualization.HeatmapLayer(d(d({},this.props.options||{}),{data:this.props.data,map:this.context}));this.registeredEvents=b({updaterMap:tV,eventMap:tj,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{heatmapLayer:t}},this.setHeatmapLayerCallback)},e.prototype.componentDidUpdate=function(t){y(this.registeredEvents),this.registeredEvents=b({updaterMap:tV,eventMap:tj,prevProps:t,nextProps:this.props,instance:this.state.heatmapLayer})},e.prototype.componentWillUnmount=function(){null!==this.state.heatmapLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),y(this.registeredEvents),this.state.heatmapLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=f}(p.PureComponent);var tZ={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"}
vendor: 5,867 bytes, line 1
1,tN={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)}};!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.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),e.prototype.componentDidMount=function(){var t,e,n=null!==(e=null===(t=this.context)||void 0===t?void 0:t.getStreetView())&&void 0!==e?e:null;this.registeredEvents=b({updaterMap:tN,eventMap:tZ,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{streetViewPanorama:n}},this.setStreetViewPanoramaCallback)},e.prototype.componentDidUpdate=function(t){null!==this.state.streetViewPanorama&&(y(this.registeredEvents),this.registeredEvents=b({updaterMap:tN,eventMap:tZ,prevProps:t,nextProps:this.props,instance:this.state.streetViewPanorama}))},e.prototype.componentWillUnmount=function(){null!==this.state.streetViewPanorama&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),y(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))},e.prototype.render=function(){return null},e.contextType=f}(p.PureComponent),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={streetViewService:null},e.setStreetViewServiceCallback=function(){null!==e.state.streetViewService&&e.props.onLoad&&e.props.onLoad(e.state.streetViewService)},e}u(e,t),e.prototype.componentDidMount=function(){var t=new google.maps.StreetViewService;this.setState(function(){return{streetViewService:t}},this.setStreetViewServiceCallback)},e.prototype.componentWillUnmount=function(){null!==this.state.streetViewService&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)},e.prototype.render=function(){return null},e.contextType=f}(p.PureComponent),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={directionsService:null},e.setDirectionsServiceCallback=function(){null!==e.state.directionsService&&e.props.onLoad&&e.props.onLoad(e.state.directionsService)},e}u(e,t),e.prototype.componentDidMount=function(){m(!!this.props.options,"DirectionsService expected options object as parameter, but got %s",this.props.options);var t=new google.maps.DirectionsService;this.setState(function(){return{directionsService:t}},this.setDirectionsServiceCallback)},e.prototype.componentDidUpdate=function(){null!==this.state.directionsService&&this.state.directionsService.route(this.props.options,this.props.callback)},e.prototype.componentWillUnmount=function(){null!==this.state.directionsService&&this.props.onUnmount&&this.props.onUnmount(this.state.directionsService)},e.prototype.render=function(){return null}}(p.PureComponent);var tH={onDirectionsChanged:"directions_changed"},tF={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)}};!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.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(e,t),e.prototype.componentDidMount=function(){var t=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=b({updaterMap:tF,eventMap:tH,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{directionsRenderer:t}},this.setDirectionsRendererCallback)},e.prototype.componentDidUpdate=function(t){null!==this.state.directionsRenderer&&(y(this.registeredEvents),this.registeredEvents=b({updaterMap:tF,eventMap:tH,prevProps:t,nextProps:this.props,instance:this.state.directionsRenderer}))},e.prototype.componentWillUnmount=function(){null!==this.state.directionsRenderer&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),y(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))},e.prototype.render=function(){return(0,l.jsx)(l.Fragment,{})},e.contextType=f}(p.PureComponent),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={distanceMatrixService:null},e.setDistanceMatrixServiceCallback=function(){null!==e.state.distanceMatrixService&&e.props.onLoad&&e.props.onLoad(e.state.distanceMatrixService)},e}u(e,t),e.prototype.componentDidMount=function(){m(!!this.props.options,"DistanceMatrixService expected options object as parameter, but go %s",this.props.options);var t=new google.maps.DistanceMatrixService;this.setState(function(){return{distanceMatrixService:t}},this.setDistanceMatrixServiceCallback)},e.prototype.componentDidUpdate=function(){null!==this.state.distanceMatrixService&&this.state.distanceMatrixService.getDistanceMatrix(this.props.options,this.props.callback)},e.prototype.componentWillUnmount=function(){null!==this.state.distanceMatrixService&&this.props.onUnmount&&this.props.onUnmount(this.state.distanceMatrixService)},e.prototype.render=function(){return null}}(p.PureComponent);var tG={onPlacesChanged:"places_changed"},tK={bounds:function(t,e){t.setBounds(e)}};!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.registeredEvents=[],e.containerElement=(0,p.createRef)(),e.state={searchBox:null},e.setSearchBoxCallback=function(){null!==e.state.searchBox&&e.props.onLoad&&e.props.onLoad(e.state.searchBox
1)},e}u(e,t),e.prototype.componentDidMount=function(){if(m(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places),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=b({updaterMap:tK,eventMap:tG,prevProps:{},nextProps:this.props,instance:e}),this.setState(function(){return{searchBox:e}},this.setSearchBoxCallback)}}},e.prototype.componentDidUpdate=function(t){null!==this.state.searchBox&&(y(this.registeredEvents),this.registeredEvents=b({updaterMap:tK,eventMap:tG,prevProps:t,nextProps:this.props,instance:this.state.searchBox}))},e.prototype.componentWillUnmount=function(){null!==this.state.searchBox&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),y(this.registeredEvents))},e.prototype.render=function(){return(0,l.jsx)("div",{ref:this.containerElement,children:p.Children.only(this.props.children)})},e.contextType=f}(p.PureComponent);var tY={onPlaceChanged:"place_changed"},tq={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)}};!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.registeredEvents=[],e.containerElement=(0,p.createRef)(),e.state={autocomplete:null},e.setAutocompleteCallback=function(){null!==e.state.autocomplete&&e.props.onLoad&&e.props.onLoad(e.state.autocomplete)},e}u(e,t),e.prototype.componentDidMount=function(){m(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places);var t,e=null===(t=this.containerElement.current)||void 0===t?void 0:t.querySelector("input");if(e){var n=new google.maps.places.Autocomplete(e,this.props.options);this.registeredEvents=b({updaterMap:tq,eventMap:tY,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{autocomplete:n}},this.setAutocompleteCallback)}},e.prototype.componentDidUpdate=function(t){y(this.registeredEvents),this.registeredEvents=b({updaterMap:tq,eventMap:tY,prevProps:t,nextProps:this.props,instance:this.state.autocomplete})},e.prototype.componentWillUnmount=function(){null!==this.state.autocomplete&&y(this.registeredEvents)},e.prototype.render=function(){return(0,l.jsx)("div",{ref:this.containerElement,className:this.props.className,children:p.Children.only(this.props.children)})},e.defaultProps={className:""},e.contextType=f}(p.PureComponent)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.