text: function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _get(e,t,n){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=_superPropBase(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){return function(){var t,n=_getPrototypeOf(e);if(_isNativeReflectConstruct()){var r=_getPrototypeOf(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _possibleConstructorReturn(this,t)}}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{mrSG:function(e,t,n){"use strict";function r(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}n.d(t,"a",(function(){return r}))},x04h:function(e,t,n){"use strict";n.r(t),n.d(t,"MapsModule",(function(){return Fe}));var r=n("ofXK"),i=n("mrSG"),o=n("fXoL"),a=n("HDdC"),s=n("2Vo4"),u=n("Cfvw"),l=n("D0XW"),c=n("DH7j");function h(e){return!Object(c.a)(e)&&e-parseFloat(e)+1>=0}var f=n("z+Ro");function d(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}var p=n("XNiG"),g=n("n6bG"),v=n("lJxs"),_=n("VRyK"),m=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e,r)).scheduler=e,i.work=r,i}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?_get(_getPrototypeOf(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0||null===r&&this.delay>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,r):e.flush(this)}}]),n}(n("3N8a").a),y=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(n("IjjT").a))(m),b=n("quSY"),k=n("7o/Q"),C=n("WMd4"),w=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,n),(i=t.call(this,e)).scheduler=r,i.delay=o,i}return _createClass(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new O(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(C.a.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(C.a.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(C.a.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}]),n}(k.a),O=function e(t,n){_classCallCheck(this,e),this.notification=t,this.destination=n},I=n("9ppp"),M=n("Ylt2"),P=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,o=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(e=t.call(this)).scheduler=o,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=r<1?1:r,e._windowTime=i<1?1:i,i===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return _createClass(n,[{key:"nextInfiniteTimeWindow",value:function(e){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this._events.push(new E(this._getNow(),e)),this._trimBufferThenGetEvents(),_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new I.a;if(this.isStopped||this.hasError?t=b.a.EMPTY:(this.observers.push(e),t=new M.a(this,e)),i&&e.add(e=new w(e,i)),n)for(var a=0;a<o&&!e.closed;a++)e.next(r[a]);else for(var s=0;s<o&&!e.closed;s++)e.next(r[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t}},{key:"_getNow",value:function(){return(this.scheduler||y).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(e-r[o].time<n);)o++;return i>t&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r}}]),n}(p.a),E=function e(t,n){_classCallCheck(this,e),this.time=t,this.value=n};n("8Qeq"),n("LRne"),n("z6cu");var T=n("5+tZ"),x=n("l7GE"),W=n("ZUHj"),S=function(){function e(t){_classCallCheck(this,e),this.notifier=t}return _createClass(e,[{key:"call",value:function(e,t){var n=new z(e),r=t.subscribe(n);return r.add(Object(W.a)(n,this.notifier)),r}}]),e}(),z=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).hasValue=!1,e}return _createClass(n,[{key:"_next",value:function(e){this.value=e,this.hasValue=!0}},{key:"notifyNext",value:function(e,t,n,r,i){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}]),n}(x.a),j=n("eIep"),A=n("JX91"),L=function(){function e(t){_classCallCheck(this,e),this.total=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new B(e,this.total))}}]),e}(),B=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).total=r,i.count=0,i}return _createClass(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(k.a);n("oB13");var N,R,D,V,Z,F,H,U,$,G,J,q=["*"],Y=((Z=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Z)},Z.\u0275prov=o["\u0275\u0275defineInjectable"]({token:Z,factory:Z.\u0275fac}),Z),K=((V=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._loader=t,this._zone=n,this._map=new Promise((function(e){r._mapResolver=e}))}return _createClass(e,[{key:"createMap",value:function(e,t){var n=this;return this._zone.runOutsideAngular((function(){return n._loader.load().then((function(){var r=new google.maps.Map(e,t);n._mapResolver(r)}))}))}},{key:"setMapOptions",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){t._map.then((function(t){t.setOptions(e)}))}))}},{key:"createMarker",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._zone.runOutsideAngular((function(){return e._map.then((function(e){return n&&(t.map=e),new google.maps.Marker(t)}))}))}},{key:"createInfoWindow",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){return t._map.then((function(){return new google.maps.InfoWindow(e)}))}))}},{key:"createCircle",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){return t._map.then((function(t){return"string"==typeof e.strokePosition&&(e.strokePosition=google.maps.StrokePosition[e.strokePosition]),e.map=t,new google.maps.Circle(e)}))}))}},{key:"createRectangle",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){return t._map.then((function(t){return e.map=t,new google.maps.Rectangle(e)}))}))}},{key:"createPolyline",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){return t.getNativeMap().then((function(t){var n=new google.maps.Polyline(e);return n.setMap(t),n}))}))}},{key:"createPolygon",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){return t.getNativeMap().then((function(t){var n=new google.maps.Polygon(e);return n.setMap(t),n}))}))}},{key:"createDataLayer",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){return t._map.then((function(t){var n=new google.maps.Data(e);return n.setMap(t),n}))}))}},{key:"createTransitLayer",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){return t._map.then((function(t){var n=new google.maps.TransitLayer;return n.setMap(e.visible?t:null),n}))}))}},{key:"createBicyclingLayer",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){return t._map.then((function(t){var n=new google.maps.BicyclingLayer;return n.setMap(e.visible?t:null),n}))}))}},{key:"containsLocation",value:function(e,t){return google.maps.geometry.poly.containsLocation(e,t)}},{key:"subscribeToMapEvent",value:function(e){var t=this;return new a.a((function(n){t._map.then((function(r){r.addListener(e,(function(e){t._zone.run((function(){return n.next(e)}))}))}))}))}},{key:"clearInstanceListeners",value:function(){var e=this;return this._zone.runOutsideAngular((function(){e._map.then((function(e){google.maps.event.clearInstanceListeners(e)}))}))}},{key:"setCenter",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){return t._map.then((function(t){return t.setCenter(e)}))}))}},{key:"getZoom",value:function(){var e=this;return this._zone.runOutsideAngular((function(){return e._map.then((function(e){return e.getZoom()}))}))}},{key:"getBounds",value:function(){var e=this;return this._zone.runOutsideAngular((function(){return e._map.then((function(e){return e.getBounds()}))}))}},{key:"getMapTypeId",value:function(){var e=this;return this._zone.runOutsideAngular((function(){return e._map.then((function(e){return e.getMapTypeId()}))}))}},{key:"setZoom",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){return t._map.then((function(t){return t.setZoom(e)}))}))}},{key:"getCenter",value:function(){var e=this;return this._zone.runOutsideAngular((function(){return e._map.then((function(e){return e.getCenter()}))}))}},{key:"panTo",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){return t._map.then((function(t){return t.panTo(e)}))}))}},{key:"panBy",value:function(e,t){var n=this;return this._zone.runOutsideAngular((function(){return n._map.then((function(n){return n.panBy(e,t)}))}))}},{key:"fitBounds",value:function(e,t){var n=this;return this._zone.runOutsideAngular((function(){return n._map.then((function(n){return n.fitBounds(e,t)}))}))}},{key:"panToBounds",value:function(e,t){var n=this;return this._zone.runOutsideAngular((function(){return n._map.then((function(n){return n.panToBounds(e,t)}))}))}},{key:"getNativeMap",value:function(){return this._map}},{key:"triggerMapEvent",value:function(e){return this._map.then((function(t){return google.maps.event.trigger(t,e)}))}}]),e}()).\u0275fac=function(e){return new(e||V)(o["\u0275\u0275inject"](Y),o["\u0275\u0275inject"](o.NgZone))},V.\u0275prov=o["\u0275\u0275defineInjectable"]({token:V,factory:V.\u0275fac}),V),X=((D=function(){function e(t){_classCallCheck(this,e),this._wrapper=t,this._layers=new Map}return _createClass(e,[{key:"addTransitLayer",value:function(e,t){var n=this._wrapper.createTransitLayer(t);this._layers.set(e,n)}},{key:"addBicyclingLayer",value:function(e,t){var n=this._wrapper.createBicyclingLayer(t);this._layers.set(e,n)}},{key:"deleteLayer",value:function(e){var t=this;return this._layers.get(e).then((function(n){n.setMap(null),t._layers.delete(e)}))}},{key:"toggleLayerVisibility",value:function(e,t){var n=this;return this._layers.get(e).then((function(e){return t.visible?n._wrapper.getNativeMap().then((function(t){e.setMap(t)})):void e.setMap(null)}))}}]),e}()).\u0275fac=function(e){return new(e||D)(o["\u0275\u0275inject"](K))},D.\u0275prov=o["\u0275\u0275defineInjectable"]({token:D,factory:D.\u0275fac}),D),Q=((R=function(){function e(t,n){_classCallCheck(this,e),this._apiWrapper=t,this._zone=n,this._circles=new Map}return _createClass(e,[{key:"addCircle",value:function(e){this._circles.set(e,this._apiWrapper.createCircle({center:{lat:e.latitude,lng:e.longitude},clickable:e.clickable,draggable:e.draggable,editable:e.editable,fillColor:e.fillColor,fillOpacity:e.fillOpacity,radius:e.radius,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokePosition:e.strokePosition,strokeWeight:e.strokeWeight,visible:e.visible,zIndex:e.zIndex}))}},{key:"removeCircle",value:function(e){var t=this;return this._circles.get(e).then((function(n){n.setMap(null),t._circles.delete(e)}))}},{key:"setOptions",value:function(e,t){return this._circles.get(e).then((function(e){"string"==typeof t.strokePosition&&(t.strokePosition=google.maps.StrokePosition[t.strokePosition]),e.setOptions(t)}))}},{key:"getBounds",value:function(e){return this._circles.get(e).then((function(e){return e.getBounds()}))}},{key:"getCenter",value:function(e){return this._circles.get(e).then((function(e){return e.getCenter()}))}},{key:"getRadius",value:function(e){return this._circles.get(e).then((function(e){return e.getRadius()}))}},{key:"setCenter",value:function(e){return this._circles.get(e).then((function(t){return t.setCenter({lat:e.latitude,lng:e.longitude})}))}},{key:"setEditable",value:function(e){return this._circles.get(e).then((function(t){return t.setEditable(e.editable)}))}},{key:"setDraggable",value:function(e){return this._circles.get(e).then((function(t){return t.setDraggable(e.draggable)}))}},{key:"setVisible",value:function(e){return this._circles.get(e).then((function(t){return t.setVisible(e.visible)}))}},{key:"setRadius",value:function(e){return this._circles.get(e).then((function(t){return t.setRadius(e.radius)}))}},{key:"getNativeCircle",value:function(e){return this._circles.get(e)}},{key:"createEventObservable",value:function(e,t){var n=this;return new a.a((function(r){var i=null;return n._circles.get(t).then((function(t){i=t.addListener(e,(function(e){return n._zone.run((function(){return r.next(e)}))}))})),function(){null!==i&&i.remove()}}))}}]),e}()).\u0275fac=function(e){return new(e||R)(o["\u0275\u0275inject"](K),o["\u0275\u0275inject"](o.NgZone))},R.\u0275prov=o["\u0275\u0275defineInjectable"]({token:R,factory:R.\u0275fac}),R),ee=((N=function(){function e(t,n){_classCallCheck(this,e),this._wrapper=t,this._zone=n,this._layers=new Map}return _createClass(e,[{key:"addDataLayer",value:function(e){var t=this,n=this._wrapper.createDataLayer({style:e.style}).then((function(n){return e.geoJson&&t.getDataFeatures(n,e.geoJson).then((function(e){return n.features=e})),n}));this._layers.set(e,n)}},{key:"deleteDataLayer",value:function(e){var t=this;this._layers.get(e).then((function(n){n.setMap(null),t._layers.delete(e)}))}},{key:"updateGeoJson",value:function(e,t){var n=this;this._layers.get(e).then((function(e){e.forEach((function(t){e.remove(t);var n=e.features.indexOf(t,0);n>-1&&e.features.splice(n,1)})),n.getDataFeatures(e,t).then((function(t){return e.features=t}))}))}},{key:"setDataOptions",value:function(e,t){this._layers.get(e).then((function(e){e.setControlPosition(t.controlPosition),e.setControls(t.controls),e.setDrawingMode(t.drawingMode),e.setStyle(t.style)}))}},{key:"createEventObservable",value:function(e,t){var n=this;return new a.a((function(r){n._layers.get(t).then((function(t){t.addListener(e,(function(e){return n._zone.run((function(){return r.next(e)}))}))}))}))}},{key:"getDataFeatures",value:function(e,t){return new Promise((function(n,r){if("object"==typeof t)try{n(e.addGeoJson(t))}catch(i){r(i)}else"string"==typeof t?e.loadGeoJson(t,null,n):r("Impossible to extract features from geoJson: wrong argument type")}))}}]),e}()).\u0275fac=function(e){return new(e||N)(o["\u0275\u0275inject"](K),o["\u0275\u0275inject"](o.NgZone))},N.\u0275prov=o["\u0275\u0275defineInjectable"]({token:N,factory:N.\u0275fac}),N),te=function e(){_classCallCheck(this,e)},ne=((U=function(){function e(t){var n,r,i=this;_classCallCheck(this,e),this._boundsChangeSampleTime$=new s.a(200),this._includeInBounds$=new s.a(new Map),this.bounds$=Object(u.a)(t.load()).pipe(Object(T.a)((function(){return i._includeInBounds$})),(n=this._boundsChangeSampleTime$.pipe(Object(j.a)((function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=-1;return h(t)?r=Number(t)<1?1:Number(t):Object(f.a)(t)&&(n=t),Object(f.a)(n)||(n=l.a),new a.a((function(t){var i=h(e)?e:+e-n.now();return n.schedule(d,i,{index:0,period:r,subscriber:t})}))}(0,e)}))),function(e){return e.lift(new S(n))}),Object(v.a)((function(e){return i._generateBounds(e)})),(r={bufferSize:1,windowTime:void 0,refCount:!1,scheduler:void 0},function(e){return e.lift(function(e){var t,n,r=e.bufferSize,i=void 0===r?Number.POSITIVE_INFINITY:r,o=e.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,s=e.refCount,u=e.scheduler,l=0,c=!1,h=!1;return function(e){l++,t&&!c||(c=!1,t=new P(i,a,u),n=e.subscribe({next:function(e){t.next(e)},error:function(e){c=!0,t.error(e)},complete:function(){h=!0,n=void 0,t.complete()}}));var r=t.subscribe(this);this.add((function(){l--,r.unsubscribe(),n&&!h&&s&&0===l&&(n.unsubscribe(),n=void 0,t=void 0)}))}}(r))}))}return _createClass(e,[{key:"_generateBounds",value:function(e){var t=new google.maps.LatLngBounds;return e.forEach((function(e){return t.extend(e)})),t}},{key:"addToBounds",value:function(e){var t=this._createIdentifier(e);if(!this._includeInBounds$.value.has(t)){var n=this._includeInBounds$.value;n.set(t,e),this._includeInBounds$.next(n)}}},{key:"removeFromBounds",value:function(e){var t=this._includeInBounds$.value;t.delete(this._createIdentifier(e)),this._includeInBounds$.next(t)}},{key:"changeFitBoundsChangeSampleTime",value:function(e){this._boundsChangeSampleTime$.next(e)}},{key:"getBounds$",value:function(){return this.bounds$}},{key:"_createIdentifier",value:function(e){return"".concat(e.lat,"+").concat(e.lng)}}]),e}()).\u0275fac=function(e){return new(e||U)(o["\u0275\u0275inject"](Y))},U.\u0275prov=o["\u0275\u0275defineInjectable"]({token:U,factory:U.\u0275fac}),U),re=((H=function(){function e(t,n){_classCallCheck(this,e),this._mapsWrapper=t,this._zone=n,this._markers=new Map}return _createClass(e,[{key:"convertAnimation",value:function(e){return Object(i.a)(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",null===e?null:this._mapsWrapper.getNativeMap().then((function(){return google.maps.Animation[e]})));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"deleteMarker",value:function(e){var t=this,n=this._markers.get(e);return null==n?Promise.resolve():n.then((function(n){return t._zone.run((function(){n.setMap(null),t._markers.delete(e)}))}))}},{key:"updateMarkerPosition",value:function(e){return this._markers.get(e).then((function(t){return t.setPosition({lat:e.latitude,lng:e.longitude})}))}},{key:"updateTitle",value:function(e){return this._markers.get(e).then((function(t){return t.setTitle(e.title)}))}},{key:"updateLabel",value:function(e){return this._markers.get(e).then((function(t){t.setLabel(e.label)}))}},{key:"updateDraggable",value:function(e){return this._markers.get(e).then((function(t){return t.setDraggable(e.draggable)}))}},{key:"updateIcon",value:function(e){return this._markers.get(e).then((function(t){return t.setIcon(e.iconUrl)}))}},{key:"updateOpacity",value:function(e){return this._markers.get(e).then((function(t){return t.setOpacity(e.opacity)}))}},{key:"updateVisible",value:function(e){return this._markers.get(e).then((function(t){return t.setVisible(e.visible)}))}},{key:"updateZIndex",value:function(e){return this._markers.get(e).then((function(t){return t.setZIndex(e.zIndex)}))}},{key:"updateClickable",value:function(e){return this._markers.get(e).then((function(t){return t.setClickable(e.clickable)}))}},{key:"updateAnimation",value:function(e){return Object(i.a)(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._markers.get(e);case 2:return t.t0=t.sent,t.next=5,this.convertAnimation(e.animation);case 5:t.t1=t.sent,t.t0.setAnimation.call(t.t0,t.t1);case 7:case"end":return t.stop()}}),t,this)})))}},{key:"addMarker",value:function(e){var t=this,n=new Promise((function(n){return Object(i.a)(t,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=this._mapsWrapper,t.t1={lat:e.latitude,lng:e.longitude},t.t2=e.label,t.t3=e.draggable,t.t4=e.iconUrl,t.t5=e.opacity,t.t6=e.visible,t.t7=e.zIndex,t.t8=e.title,t.t9=e.clickable,t.next=12,this.convertAnimation(e.animation);case 12:return t.t10=t.sent,t.t11={position:t.t1,label:t.t2,draggable:t.t3,icon:t.t4,opacity:t.t5,visible:t.t6,zIndex:t.t7,title:t.t8,clickable:t.t9,animation:t.t10},t.abrupt("return",t.t0.createMarker.call(t.t0,t.t11).then(n));case 15:case"end":return t.stop()}}),t,this)})))}));this._markers.set(e,n)}},{key:"getNativeMarker",value:function(e){return this._markers.get(e)}},{key:"createEventObservable",value:function(e,t){var n=this;return new a.a((function(r){n._markers.get(t).then((function(t){t.addListener(e,(function(e){return n._zone.run((function(){return r.next(e)}))}))}))}))}}]),e}()).\u0275fac=function(e){return new(e||H)(o["\u0275\u0275inject"](K),o["\u0275\u0275inject"](o.NgZone))},H.\u0275prov=o["\u0275\u0275defineInjectable"]({token:H,factory:H.\u0275fac}),H),ie=((F=function(){function e(t,n,r){_classCallCheck(this,e),this._mapsWrapper=t,this._zone=n,this._markerManager=r,this._infoWindows=new Map}return _createClass(e,[{key:"deleteInfoWindow",value:function(e){var t=this,n=this._infoWindows.get(e);return null==n?Promise.resolve():n.then((function(n){return t._zone.run((function(){n.close(),t._infoWindows.delete(e)}))}))}},{key:"setPosition",value:function(e){return this._infoWindows.get(e).then((function(t){return t.setPosition({lat:e.latitude,lng:e.longitude})}))}},{key:"setZIndex",value:function(e){return this._infoWindows.get(e).then((function(t){return t.setZIndex(e.zIndex)}))}},{key:"open",value:function(e){var t=this;return this._infoWindows.get(e).then((function(n){return null!=e.hostMarker?t._markerManager.getNativeMarker(e.hostMarker).then((function(e){return t._mapsWrapper.getNativeMap().then((function(t){return n.open(t,e)}))})):t._mapsWrapper.getNativeMap().then((function(e){return n.open(e)}))}))}},{key:"close",value:function(e){return this._infoWindows.get(e).then((function(e){return e.close()}))}},{key:"setOptions",value:function(e,t){return this._infoWindows.get(e).then((function(e){return e.setOptions(t)}))}},{key:"addInfoWindow",value:function(e){var t={content:e.content,maxWidth:e.maxWidth,zIndex:e.zIndex,disableAutoPan:e.disableAutoPan};"number"==typeof e.latitude&&"number"==typeof e.longitude&&(t.position={lat:e.latitude,lng:e.longitude});var n=this._mapsWrapper.createInfoWindow(t);this._infoWindows.set(e,n)}},{key:"createEventObservable",value:function(e,t){var n=this;return new a.a((function(r){n._infoWindows.get(t).then((function(t){t.addListener(e,(function(e){return n._zone.run((function(){return r.next(e)}))}))}))}))}}]),e}()).\u0275fac=function(e){return new(e||F)(o["\u0275\u0275inject"](K),o["\u0275\u0275inject"](o.NgZone),o["\u0275\u0275inject"](re))},F.\u0275prov=o["\u0275\u0275defineInjectable"]({token:F,factory:F.\u0275fac}),F),oe=0,ae=((J=$=function(){function e(t,n){_classCallCheck(this,e),this._infoWindowManager=t,this._el=n,this.isOpen=!1,this.infoWindowClose=new o.EventEmitter,this._infoWindowAddedToManager=!1,this._id=(oe++).toString()}return _createClass(e,[{key:"ngOnInit",value:function(){this.content=this._el.nativeElement.querySelector(".agm-info-window-content"),this._infoWindowManager.addInfoWindow(this),this._infoWindowAddedToManager=!0,this._updateOpenState(),this._registerEventListeners()}},{key:"ngOnChanges",value:function(e){this._infoWindowAddedToManager&&((e.latitude||e.longitude)&&"number"==typeof this.latitude&&"number"==typeof this.longitude&&this._infoWindowManager.setPosition(this),e.zIndex&&this._infoWindowManager.setZIndex(this),e.isOpen&&this._updateOpenState(),this._setInfoWindowOptions(e))}},{key:"_registerEventListeners",value:function(){var e=this;this._infoWindowManager.createEventObservable("closeclick",this).subscribe((function(){e.isOpen=!1,e.infoWindowClose.emit()}))}},{key:"_updateOpenState",value:function(){this.isOpen?this.open():this.close()}},{key:"_setInfoWindowOptions",value:function(e){var t={};Object.keys(e).filter((function(e){return-1!==$._infoWindowOptionsInputs.indexOf(e)})).forEach((function(n){t[n]=e[n].currentValue})),this._infoWindowManager.setOptions(this,t)}},{key:"open",value:function(){return this._infoWindowManager.open(this)}},{key:"close",value:function(){var e=this;return this._infoWindowManager.close(this).then((function(){e.infoWindowClose.emit()}))}},{key:"id",value:function(){return this._id}},{key:"toString",value:function(){return"AgmInfoWindow-"+this._id.toString()}},{key:"ngOnDestroy",value:function(){this._infoWindowManager.deleteInfoWindow(this)}}]),e}()).\u0275fac=function(e){return new(e||J)(o["\u0275\u0275directiveInject"](ie),o["\u0275\u0275directiveInject"](o.ElementRef))},J.\u0275cmp=o["\u0275\u0275defineComponent"]({type:J,selectors:[["agm-info-window"]],inputs:{isOpen:"isOpen",latitude:"latitude",longitude:"longitude",disableAutoPan:"disableAutoPan",zIndex:"zIndex",maxWidth:"maxWidth"},outputs:{infoWindowClose:"infoWindowClose"},features:[o["\u0275\u0275NgOnChangesFeature"]],ngContentSelectors:q,decls:2,vars:0,consts:[[1,"agm-info-window-content"]],template:function(e,t){1&e&&(o["\u0275\u0275projectionDef"](),o["\u0275\u0275elementStart"](0,"div",0),o["\u0275\u0275projection"](1),o["\u0275\u0275elementEnd"]())},encapsulation:2}),J._infoWindowOptionsInputs=["disableAutoPan","maxWidth"],J),se=((G=function(){function e(t,n){_classCallCheck(this,e),this._wrapper=t,this._zone=n,this._layers=new Map}return _createClass(e,[{key:"addKmlLayer",value:function(e){var t=this._wrapper.getNativeMap().then((function(t){return new google.maps.KmlLayer({clickable:e.clickable,map:t,preserveViewport:e.preserveViewport,screenOverlays:e.screenOverlays,suppressInfoWindows:e.suppressInfoWindows,url:e.url,zIndex:e.zIndex})}));this._layers.set(e,t)}},{key:"setOptions",value:function(e,t){this._layers.get(e).then((function(e){return e.setOptions(t)}))}},{key:"deleteKmlLayer",value:function(e){var t=this;this._layers.get(e).then((function(n){n.setMap(null),t._layers.delete(e)}))}},{key:"createEventObservable",value:function(e,t){var n=this;return new a.a((function(r){n._layers.get(t).then((function(t){t.addListener(e,(function(e){return n._zone.run((function(){return r.next(e)}))}))}))}))}}]),e}()).\u0275fac=function(e){return new(e||G)(o["\u0275\u0275inject"](K),o["\u0275\u0275inject"](o.NgZone))},G.\u0275prov=o["\u0275\u0275defineInjectable"]({token:G,factory:G.\u0275fac}),G);function ue(e){var t=["insert_at","remove_at","set_at"];return function e(t,n,r){return r?e(t,n).pipe(Object(v.a)((function(e){return Object(c.a)(e)?r.apply(void 0,_toConsumableArray(e)):r(e)}))):new a.a((function(e){var r,i=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.next(1===n.length?n[0]:n)};try{r=t(i)}catch(o){return void e.error(o)}if(Object(g.a)(n))return function(){return n(i,r)}}))}((function(n){return t.map((function(t){return e.addListener(t,(function(r,i){return n.apply(e,[{newArr:e.getArray(),evName:t,index:r,previous:i}])}))}))}),(function(e,t){return t.forEach((function(e){return e.remove()}))}))}var le,ce,he,fe,de,pe,ge,ve,_e,me,ye,be,ke,Ce,we=((le=function(){function e(t,n){_classCallCheck(this,e),this._mapsWrapper=t,this._zone=n,this._polygons=new Map}return _createClass(e,[{key:"addPolygon",value:function(e){var t=this._mapsWrapper.createPolygon({clickable:e.clickable,draggable:e.draggable,editable:e.editable,fillColor:e.fillColor,fillOpacity:e.fillOpacity,geodesic:e.geodesic,paths:e.paths,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokeWeight:e.strokeWeight,visible:e.visible,zIndex:e.zIndex});this._polygons.set(e,t)}},{key:"updatePolygon",value:function(e){var t=this,n=this._polygons.get(e);return null==n?Promise.resolve():n.then((function(n){return t._zone.run((function(){n.setPaths(e.paths)}))}))}},{key:"setPolygonOptions",value:function(e,t){return this._polygons.get(e).then((function(e){e.setOptions(t)}))}},{key:"deletePolygon",value:function(e){var t=this,n=this._polygons.get(e);return null==n?Promise.resolve():n.then((function(n){return t._zone.run((function(){n.setMap(null),t._polygons.delete(e)}))}))}},{key:"getPath",value:function(e){return this._polygons.get(e).then((function(e){return e.getPath().getArray()}))}},{key:"getPaths",value:function(e){return this._polygons.get(e).then((function(e){return e.getPaths().getArray().map((function(e){return e.getArray()}))}))}},{key:"createEventObservable",value:function(e,t){var n=this;return new a.a((function(r){n._polygons.get(t).then((function(t){t.addListener(e,(function(e){return n._zone.run((function(){return r.next(e)}))}))}))}))}},{key:"createPathEventObservable",value:function(e){return Object(i.a)(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._polygons.get(e);case 2:return n=t.sent.getPaths(),t.abrupt("return",ue(n).pipe(Object(A.a)({newArr:n.getArray()}),Object(j.a)((function(e){return Object(_.a).apply(void 0,_toConsumableArray(e.newArr.map((function(t,n){return ue(t).pipe(Object(v.a)((function(t){return{parentMVEvent:e,chMVCEvent:t,pathIndex:n}})))})))).pipe(Object(A.a)({parentMVEvent:e,chMVCEvent:null,pathIndex:null}))})),(function(e){return e.lift(new L(1))}),Object(v.a)((function(e){var t,n=e.parentMVEvent,r=e.chMVCEvent,i=e.pathIndex;return r?(t={newArr:n.newArr.map((function(e){return e.getArray().map((function(e){return e.toJSON()}))})),pathIndex:i,eventName:r.evName,index:r.index},r.previous&&(t.previous=r.previous)):(t={newArr:n.newArr.map((function(e){return e.getArray().map((function(e){return e.toJSON()}))})),eventName:n.evName,index:n.index},n.previous&&(t.previous=n.previous.getArray())),t}))));case 4:case"end":return t.stop()}}),t,this)})))}}]),e}()).\u0275fac=function(e){return new(e||le)(o["\u0275\u0275inject"](K),o["\u0275\u0275inject"](o.NgZone))},le.\u0275prov=o["\u0275\u0275defineInjectable"]({token:le,factory:le.\u0275fac}),le),Oe=((fe=ce=function(){function e(t,n){_classCallCheck(this,e),this._mapsWrapper=t,this._zone=n,this._polylines=new Map}return _createClass(e,[{key:"addPolyline",value:function(e){var t=this,n=this._mapsWrapper.getNativeMap().then((function(){return[ce._convertPoints(e),ce._convertIcons(e)]})).then((function(n){var r=_slicedToArray(n,2),i=r[0],o=r[1];return t._mapsWrapper.createPolyline({clickable:e.clickable,draggable:e.draggable,editable:e.editable,geodesic:e.geodesic,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokeWeight:e.strokeWeight,visible:e.visible,zIndex:e.zIndex,path:i,icons:o})}));this._polylines.set(e,n)}},{key:"updatePolylinePoints",value:function(e){var t=this,n=ce._convertPoints(e),r=this._polylines.get(e);return null==r?Promise.resolve():r.then((function(e){return t._zone.run((function(){e.setPath(n)}))}))}},{key:"updateIconSequences",value:function(e){return Object(i.a)(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n,r,i=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._mapsWrapper.getNativeMap();case 2:if(n=ce._convertIcons(e),null==(r=this._polylines.get(e))){t.next=5;break}return t.abrupt("return",r.then((function(e){return i._zone.run((function(){return e.setOptions({icons:n})}))})));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"setPolylineOptions",value:function(e,t){return this._polylines.get(e).then((function(e){e.setOptions(t)}))}},{key:"deletePolyline",value:function(e){var t=this,n=this._polylines.get(e);return null==n?Promise.resolve():n.then((function(n){return t._zone.run((function(){n.setMap(null),t._polylines.delete(e)}))}))}},{key:"getMVCPath",value:function(e){return Object(i.a)(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._polylines.get(e);case 2:return t.abrupt("return",t.sent.getPath());case 3:case"end":return t.stop()}}),t,this)})))}},{key:"getPath",value:function(e){return Object(i.a)(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getMVCPath(e);case 2:return t.abrupt("return",t.sent.getArray());case 3:case"end":return t.stop()}}),t,this)})))}},{key:"createEventObservable",value:function(e,t){var n=this;return new a.a((function(r){n._polylines.get(t).then((function(t){t.addListener(e,(function(e){return n._zone.run((function(){return r.next(e)}))}))}))}))}},{key:"createPathEventObservable",value:function(e){return Object(i.a)(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=ue,t.next=3,this.getMVCPath(e);case 3:return t.t1=t.sent,t.abrupt("return",(0,t.t0)(t.t1));case 5:case"end":return t.stop()}}),t,this)})))}}],[{key:"_convertPoints",value:function(e){return e._getPoints().map((function(e){return{lat:e.latitude,lng:e.longitude}}))}},{key:"_convertPath",value:function(e){var t=google.maps.SymbolPath[e];return"number"==typeof t?t:e}},{key:"_convertIcons",value:function(e){var t=e._getIcons().map((function(e){return{fixedRotation:e.fixedRotation,offset:e.offset,repeat:e.repeat,icon:{anchor:new google.maps.Point(e.anchorX,e.anchorY),fillColor:e.fillColor,fillOpacity:e.fillOpacity,path:ce._convertPath(e.path),rotation:e.rotation,scale:e.scale,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokeWeight:e.strokeWeight}}}));return t.forEach((function(e){Object.entries(e).forEach((function(t){var n=_slicedToArray(t,2),r=n[0];void 0===n[1]&&delete e[r]})),void 0!==e.icon.anchor.x&&void 0!==e.icon.anchor.y||delete e.icon.anchor})),t}}]),e}()).\u0275fac=function(e){return new(e||fe)(o["\u0275\u0275inject"](K),o["\u0275\u0275inject"](o.NgZone))},fe.\u0275prov=o["\u0275\u0275defineInjectable"]({token:fe,factory:fe.\u0275fac}),fe),Ie=((he=function(){function e(t,n){_classCallCheck(this,e),this._apiWrapper=t,this._zone=n,this._rectangles=new Map}return _createClass(e,[{key:"addRectangle",value:function(e){this._rectangles.set(e,this._apiWrapper.createRectangle({bounds:{north:e.north,east:e.east,south:e.south,west:e.west},clickable:e.clickable,draggable:e.draggable,editable:e.editable,fillColor:e.fillColor,fillOpacity:e.fillOpacity,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokePosition:e.strokePosition,strokeWeight:e.strokeWeight,visible:e.visible,zIndex:e.zIndex}))}},{key:"removeRectangle",value:function(e){var t=this;return this._rectangles.get(e).then((function(n){n.setMap(null),t._rectangles.delete(e)}))}},{key:"setOptions",value:function(e,t){return this._rectangles.get(e).then((function(e){return e.setOptions(t)}))}},{key:"getBounds",value:function(e){return this._rectangles.get(e).then((function(e){return e.getBounds()}))}},{key:"setBounds",value:function(e){return this._rectangles.get(e).then((function(t){return t.setBounds({north:e.north,east:e.east,south:e.south,west:e.west})}))}},{key:"setEditable",value:function(e){return this._rectangles.get(e).then((function(t){return t.setEditable(e.editable)}))}},{key:"setDraggable",value:function(e){return this._rectangles.get(e).then((function(t){return t.setDraggable(e.draggable)}))}},{key:"setVisible",value:function(e){return this._rectangles.get(e).then((function(t){return t.setVisible(e.visible)}))}},{key:"createEventObservable",value:function(e,t){var n=this;return a.a.create((function(r){var i=null;return n._rectangles.get(t).then((function(t){i=t.addListener(e,(function(e){return n._zone.run((function(){return r.next(e)}))}))})),function(){null!==i&&i.remove()}}))}}]),e}()).\u0275fac=function(e){return new(e||he)(o["\u0275\u0275inject"](K),o["\u0275\u0275inject"](o.NgZone))},he.\u0275prov=o["\u0275\u0275defineInjectable"]({token:he,factory:he.\u0275fac}),he),Me=((pe=de=function(){function e(t,n,r,i,a){_classCallCheck(this,e),this._elem=t,this._mapsWrapper=n,this._platformId=r,this._fitBoundsService=i,this._zone=a,this.longitude=0,this.latitude=0,this.zoom=8,this.draggable=!0,this.disableDoubleClickZoom=!1,this.disableDefaultUI=!1,this.scrollwheel=!0,this.keyboardShortcuts=!0,this.styles=[],this.usePanning=!1,this.fitBounds=!1,this.scaleControl=!1,this.mapTypeControl=!1,this.panControl=!1,this.rotateControl=!1,this.fullscreenControl=!1,this.mapTypeId="roadmap",this.clickableIcons=!0,this.showDefaultInfoWindow=!0,this.gestureHandling="auto",this.tilt=0,this._observableSubscriptions=[],this.mapClick=new o.EventEmitter,this.mapRightClick=new o.EventEmitter,this.mapDblClick=new o.EventEmitter,this.centerChange=new o.EventEmitter,this.boundsChange=new o.EventEmitter,this.mapTypeIdChange=new o.EventEmitter,this.idle=new o.EventEmitter,this.zoomChange=new o.EventEmitter,this.mapReady=new o.EventEmitter,this.tilesLoaded=new o.EventEmitter}return _createClass(e,[{key:"ngOnInit",value:function(){if(!Object(r.isPlatformServer)(this._platformId)){var e=this._elem.nativeElement.querySelector(".agm-map-container-inner");this._initMapInstance(e)}}},{key:"_initMapInstance",value:function(e){var t=this;this._mapsWrapper.createMap(e,{center:{lat:this.latitude||0,lng:this.longitude||0},zoom:this.zoom,minZoom:this.minZoom,maxZoom:this.maxZoom,controlSize:this.controlSize,disableDefaultUI:this.disableDefaultUI,disableDoubleClickZoom:this.disableDoubleClickZoom,scrollwheel:this.scrollwheel,backgroundColor:this.backgroundColor,draggable:this.draggable,draggableCursor:this.draggableCursor,draggingCursor:this.draggingCursor,keyboardShortcuts:this.keyboardShortcuts,styles:this.styles,zoomControl:this.zoomControl,zoomControlOptions:this.zoomControlOptions,streetViewControl:this.streetViewControl,streetViewControlOptions:this.streetViewControlOptions,scaleControl:this.scaleControl,scaleControlOptions:this.scaleControlOptions,mapTypeControl:this.mapTypeControl,mapTypeControlOptions:this.mapTypeControlOptions,panControl:this.panControl,panControlOptions:this.panControlOptions,rotateControl:this.rotateControl,rotateControlOptions:this.rotateControlOptions,fullscreenControl:this.fullscreenControl,fullscreenControlOptions:this.fullscreenControlOptions,mapTypeId:this.mapTypeId,clickableIcons:this.clickableIcons,gestureHandling:this.gestureHandling,tilt:this.tilt,restriction:this.restriction}).then((function(){return t._mapsWrapper.getNativeMap()})).then((function(e){return t.mapReady.emit(e)})),this._handleMapCenterChange(),this._handleMapZoomChange(),this._handleMapMouseEvents(),this._handleBoundsChange(),this._handleMapTypeIdChange(),this._handleTilesLoadedEvent(),this._handleIdleEvent()}},{key:"ngOnDestroy",value:function(){this._observableSubscriptions.forEach((function(e){return e.unsubscribe()})),this._mapsWrapper.clearInstanceListeners(),this._fitBoundsSubscription&&this._fitBoundsSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(e){this._updateMapOptionsChanges(e),this._updatePosition(e)}},{key:"_updateMapOptionsChanges",value:function(e){var t={};Object.keys(e).filter((function(e){return-1!==de._mapOptionsAttributes.indexOf(e)})).forEach((function(n){t[n]=e[n].currentValue})),this._mapsWrapper.setMapOptions(t)}},{key:"triggerResize",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return new Promise((function(n){setTimeout((function(){return e._mapsWrapper.triggerMapEvent("resize").then((function(){t&&(null!=e.fitBounds?e._fitBounds():e._setCenter()),n()}))}))}))}},{key:"_updatePosition",value:function(e){(null!=e.latitude||null!=e.longitude||e.fitBounds)&&("fitBounds"in e?this._fitBounds():"number"==typeof this.latitude&&"number"==typeof this.longitude&&this._setCenter())}},{key:"_setCenter",value:function(){var e={lat:this.latitude,lng:this.longitude};this.usePanning?this._mapsWrapper.panTo(e):this._mapsWrapper.setCenter(e)}},{key:"_fitBounds",value:function(){switch(this.fitBounds){case!0:this._subscribeToFitBoundsUpdates();break;case!1:this._fitBoundsSubscription&&this._fitBoundsSubscription.unsubscribe();break;default:this._updateBounds(this.fitBounds,this.fitBoundsPadding)}}},{key:"_subscribeToFitBoundsUpdates",value:function(){var e=this;this._zone.runOutsideAngular((function(){e._fitBoundsSubscription=e._fitBoundsService.getBounds$().subscribe((function(t){e._zone.run((function(){return e._updateBounds(t,e.fitBoundsPadding)}))}))}))}},{key:"_updateBounds",value:function(e,t){if(e){if(this._isLatLngBoundsLiteral(e)&&"undefined"!=typeof google&&google&&google.maps&&google.maps.LatLngBounds){var n=new google.maps.LatLngBounds;n.union(e),e=n}this.usePanning?this._mapsWrapper.panToBounds(e,t):this._mapsWrapper.fitBounds(e,t)}}},{key:"_isLatLngBoundsLiteral",value:function(e){return null!=e&&void 0===e.extend}},{key:"_handleMapCenterChange",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("center_changed").subscribe((function(){e._mapsWrapper.getCenter().then((function(t){e.latitude=t.lat(),e.longitude=t.lng(),e.centerChange.emit({lat:e.latitude,lng:e.longitude})}))}));this._observableSubscriptions.push(t)}},{key:"_handleBoundsChange",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("bounds_changed").subscribe((function(){e._mapsWrapper.getBounds().then((function(t){e.boundsChange.emit(t)}))}));this._observableSubscriptions.push(t)}},{key:"_handleMapTypeIdChange",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("maptypeid_changed").subscribe((function(){e._mapsWrapper.getMapTypeId().then((function(t){e.mapTypeIdChange.emit(t)}))}));this._observableSubscriptions.push(t)}},{key:"_handleMapZoomChange",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("zoom_changed").subscribe((function(){e._mapsWrapper.getZoom().then((function(t){e.zoom=t,e.zoomChange.emit(t)}))}));this._observableSubscriptions.push(t)}},{key:"_handleIdleEvent",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("idle").subscribe((function(){e.idle.emit(void 0)}));this._observableSubscriptions.push(t)}},{key:"_handleTilesLoadedEvent",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("tilesloaded").subscribe((function(){return e.tilesLoaded.emit(void 0)}));this._observableSubscriptions.push(t)}},{key:"_handleMapMouseEvents",value:function(){var e=this;[{name:"click",emitter:this.mapClick},{name:"rightclick",emitter:this.mapRightClick},{name:"dblclick",emitter:this.mapDblClick}].forEach((function(t){var n=e._mapsWrapper.subscribeToMapEvent(t.name).subscribe((function(n){var r={coords:{lat:n.latLng.lat(),lng:n.latLng.lng()},placeId:n.placeId};r.placeId&&!e.showDefaultInfoWindow&&n.stop(),t.emitter.emit(r)}));e._observableSubscriptions.push(n)}))}}]),e}()).\u0275fac=function(e){return new(e||pe)(o["\u0275\u0275directiveInject"](o.ElementRef),o["\u0275\u0275directiveInject"](K),o["\u0275\u0275directiveInject"](o.PLATFORM_ID),o["\u0275\u0275directiveInject"](ne),o["\u0275\u0275directiveInject"](o.NgZone))},pe.\u0275cmp=o["\u0275\u0275defineComponent"]({type:pe,selectors:[["agm-map"]],hostVars:2,hostBindings:function(e,t){2&e&&o["\u0275\u0275classProp"]("sebm-google-map-container",!0)},inputs:{longitude:"longitude",latitude:"latitude",zoom:"zoom",draggable:["mapDraggable","draggable"],disableDoubleClickZoom:"disableDoubleClickZoom",disableDefaultUI:"disableDefaultUI",scrollwheel:"scrollwheel",keyboardShortcuts:"keyboardShortcuts",styles:"styles",usePanning:"usePanning",fitBounds:"fitBounds",scaleControl:"scaleControl",mapTypeControl:"mapTypeControl",panControl:"panControl",rotateControl:"rotateControl",fullscreenControl:"fullscreenControl",mapTypeId:"mapTypeId",clickableIcons:"clickableIcons",showDefaultInfoWindow:"showDefaultInfoWindow",gestureHandling:"gestureHandling",tilt:"tilt",minZoom:"minZoom",maxZoom:"maxZoom",controlSize:"controlSize",backgroundColor:"backgroundColor",draggableCursor:"draggableCursor",draggingCursor:"draggingCursor",zoomControl:"zoomControl",zoomControlOptions:"zoomControlOptions",streetViewControl:"streetViewControl",streetViewControlOptions:"streetViewControlOptions",fitBoundsPadding:"fitBoundsPadding",scaleControlOptions:"scaleControlOptions",mapTypeControlOptions:"mapTypeControlOptions",panControlOptions:"panControlOptions",rotateControlOptions:"rotateControlOptions",fullscreenControlOptions:"fullscreenControlOptions",restriction:"restriction"},outputs:{mapClick:"mapClick",mapRightClick:"mapRightClick",mapDblClick:"mapDblClick",centerChange:"centerChange",boundsChange:"boundsChange",mapTypeIdChange:"mapTypeIdChange",idle:"idle",zoomChange:"zoomChange",mapReady:"mapReady",tilesLoaded:"tilesLoaded"},features:[o["\u0275\u0275ProvidersFeature"]([Q,ee,ee,ne,K,ie,se,X,re,we,Oe,Ie]),o["\u0275\u0275NgOnChangesFeature"]],ngContentSelectors:q,decls:3,vars:0,consts:[[1,"agm-map-container-inner","sebm-google-map-container-inner"],[1,"agm-map-content"]],template:function(e,t){1&e&&(o["\u0275\u0275projectionDef"](),o["\u0275\u0275element"](0,"div",0),o["\u0275\u0275elementStart"](1,"div",1),o["\u0275\u0275projection"](2),o["\u0275\u0275elementEnd"]())},styles:[".agm-map-container-inner[_ngcontent-%COMP%] {\n      width: inherit;\n      height: inherit;\n    }\n    .agm-map-content[_ngcontent-%COMP%] {\n      display:none;\n    }"]}),pe._mapOptionsAttributes=["disableDoubleClickZoom","scrollwheel","draggable","draggableCursor","draggingCursor","keyboardShortcuts","zoomControl","zoomControlOptions","styles","streetViewControl","streetViewControlOptions","zoom","mapTypeControl","mapTypeControlOptions","minZoom","maxZoom","panControl","panControlOptions","rotateControl","rotateControlOptions","fullscreenControl","fullscreenControlOptions","scaleControl","scaleControlOptions","mapTypeId","clickableIcons","gestureHandling","tilt","restriction"],pe),Pe=0,Ee=((ve=ge=function(){function e(t){_classCallCheck(this,e),this._markerManager=t,this.draggable=!1,this.visible=!0,this.openInfoWindow=!0,this.opacity=1,this.zIndex=1,this.clickable=!0,this.animationChange=new o.EventEmitter,this.markerClick=new o.EventEmitter,this.markerDblClick=new o.EventEmitter,this.markerRightClick=new o.EventEmitter,this.dragStart=new o.EventEmitter,this.drag=new o.EventEmitter,this.dragEnd=new o.EventEmitter,this.mouseOver=new o.EventEmitter,this.mouseOut=new o.EventEmitter,this.infoWindow=new o.QueryList,this._markerAddedToManger=!1,this._observableSubscriptions=[],this._fitBoundsDetails$=new P(1),this._id=(Pe++).toString()}return _createClass(e,[{key:"ngAfterContentInit",value:function(){var e=this;this.handleInfoWindowUpdate(),this.infoWindow.changes.subscribe((function(){return e.handleInfoWindowUpdate()}))}},{key:"handleInfoWindowUpdate",value:function(){var e=this;if(this.infoWindow.length>1)throw new Error("Expected no more than one info window.");this.infoWindow.forEach((function(t){t.hostMarker=e}))}},{key:"ngOnChanges",value:function(e){if("string"==typeof this.latitude&&(this.latitude=Number(this.latitude)),"string"==typeof this.longitude&&(this.longitude=Number(this.longitude)),"number"==typeof this.latitude&&"number"==typeof this.longitude){if(!this._markerAddedToManger)return this._markerManager.addMarker(this),this._updateFitBoundsDetails(),this._markerAddedToManger=!0,void this._addEventListeners();(e.latitude||e.longitude)&&(this._markerManager.updateMarkerPosition(this),this._updateFitBoundsDetails()),e.title&&this._markerManager.updateTitle(this),e.label&&this._markerManager.updateLabel(this),e.draggable&&this._markerManager.updateDraggable(this),e.iconUrl&&this._markerManager.updateIcon(this),e.opacity&&this._markerManager.updateOpacity(this),e.visible&&this._markerManager.updateVisible(this),e.zIndex&&this._markerManager.updateZIndex(this),e.clickable&&this._markerManager.updateClickable(this),e.animation&&this._markerManager.updateAnimation(this)}}},{key:"getFitBoundsDetails$",value:function(){return this._fitBoundsDetails$.asObservable()}},{key:"_updateFitBoundsDetails",value:function(){this._fitBoundsDetails$.next({latLng:{lat:this.latitude,lng:this.longitude}})}},{key:"_addEventListeners",value:function(){var e=this,t=this._markerManager.createEventObservable("click",this).subscribe((function(){e.openInfoWindow&&e.infoWindow.forEach((function(e){return e.open()})),e.markerClick.emit(e)}));this._observableSubscriptions.push(t);var n=this._markerManager.createEventObservable("dblclick",this).subscribe((function(){e.markerDblClick.emit(null)}));this._observableSubscriptions.push(n);var r=this._markerManager.createEventObservable("rightclick",this).subscribe((function(){e.markerRightClick.emit(null)}));this._observableSubscriptions.push(r);var i=this._markerManager.createEventObservable("dragstart",this).subscribe((function(t){e.dragStart.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})}));this._observableSubscriptions.push(i);var o=this._markerManager.createEventObservable("drag",this).subscribe((function(t){e.drag.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})}));this._observableSubscriptions.push(o);var a=this._markerManager.createEventObservable("dragend",this).subscribe((function(t){e.dragEnd.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})}));this._observableSubscriptions.push(a);var s=this._markerManager.createEventObservable("mouseover",this).subscribe((function(t){e.mouseOver.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})}));this._observableSubscriptions.push(s);var u=this._markerManager.createEventObservable("mouseout",this).subscribe((function(t){e.mouseOut.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})}));this._observableSubscriptions.push(u);var l=this._markerManager.createEventObservable("animation_changed",this).subscribe((function(){e.animationChange.emit(e.animation)}));this._observableSubscriptions.push(l)}},{key:"id",value:function(){return this._id}},{key:"toString",value:function(){return"AgmMarker-"+this._id.toString()}},{key:"ngOnDestroy",value:function(){this._markerManager.deleteMarker(this),this._observableSubscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||ve)(o["\u0275\u0275directiveInject"](re))},ve.\u0275dir=o["\u0275\u0275defineDirective"]({type:ve,selectors:[["agm-marker"]],contentQueries:function(e,t,n){var r;1&e&&o["\u0275\u0275contentQuery"](n,ae,!1),2&e&&o["\u0275\u0275queryRefresh"](r=o["\u0275\u0275loadQuery"]())&&(t.infoWindow=r)},inputs:{latitude:"latitude",longitude:"longitude",title:"title",label:"label",draggable:["markerDraggable","draggable"],iconUrl:"iconUrl",openInfoWindow:"openInfoWindow",opacity:"opacity",visible:"visible",zIndex:"zIndex",animation:"animation",clickable:["markerClickable","clickable"]},outputs:{markerClick:"markerClick",dragStart:"dragStart",drag:"drag",dragEnd:"dragEnd",mouseOver:"mouseOver",mouseOut:"mouseOut",animationChange:"animationChange",markerDblClick:"markerDblClick",markerRightClick:"markerRightClick"},features:[o["\u0275\u0275ProvidersFeature"]([{provide:te,useExisting:Object(o.forwardRef)((function(){return ge}))}]),o["\u0275\u0275NgOnChangesFeature"]]}),ve),Te=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"getNativeWindow",value:function(){return window}}]),e}(),xe=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"getNativeDocument",value:function(){return document}}]),e}(),We=[Te,xe],Se=function(e){return e[e.HTTP=1]="HTTP",e[e.HTTPS=2]="HTTPS",e[e.AUTO=3]="AUTO",e}({}),ze=new o.InjectionToken("angular-google-maps LAZY_MAPS_API_CONFIG"),je=((_e=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;return _classCallCheck(this,n),(e=t.call(this)).localeId=a,e._SCRIPT_ID="agmGoogleMapsApiScript",e.callbackName="agmLazyMapsAPILoader",e._config=r||{},e._windowRef=i,e._documentRef=o,e}return _createClass(n,[{key:"load",value:function(){var e=this._windowRef.getNativeWindow();if(e.google&&e.google.maps)return Promise.resolve();if(this._scriptLoadingPromise)return this._scriptLoadingPromise;var t=this._documentRef.getNativeDocument().getElementById(this._SCRIPT_ID);if(t)return this._assignScriptLoadingPromise(t),this._scriptLoadingPromise;var n=this._documentRef.getNativeDocument().createElement("script");return n.type="text/javascript",n.async=!0,n.defer=!0,n.id=this._SCRIPT_ID,n.src=this._getScriptSrc(this.callbackName),this._assignScriptLoadingPromise(n),this._documentRef.getNativeDocument().body.appendChild(n),this._scriptLoadingPromise}},{key:"_assignScriptLoadingPromise",value:function(e){var t=this;this._scriptLoadingPromise=new Promise((function(n,r){t._windowRef.getNativeWindow()[t.callbackName]=function(){n()},e.onerror=function(e){r(e)}}))}},{key:"_getScriptSrc",value:function(e){var t;switch(this._config&&this._config.protocol||Se.HTTPS){case Se.AUTO:t="";break;case Se.HTTP:t="http:";break;case Se.HTTPS:t="https:"}var n={v:this._config.apiVersion||"quarterly",callback:e,key:this._config.apiKey,client:this._config.clientId,channel:this._config.channel,libraries:this._config.libraries,region:this._config.region,language:this._config.language||"en-US"!==this.localeId?this.localeId:null};return"".concat(t,"//").concat(this._config.hostAndPath||"maps.googleapis.com/maps/api/js","?").concat(Object.keys(n).filter((function(e){return null!=n[e]})).filter((function(e){return!Array.isArray(n[e])||Array.isArray(n[e])&&n[e].length>0})).map((function(e){var t=n[e];return Array.isArray(t)?{key:e,value:t.join(",")}:{key:e,value:n[e]}})).map((function(e){return"".concat(e.key,"=").concat(e.value)})).join("&"))}}]),n}(Y)).\u0275fac=function(e){return new(e||_e)(o["\u0275\u0275inject"](ze,8),o["\u0275\u0275inject"](Te),o["\u0275\u0275inject"](xe),o["\u0275\u0275inject"](o.LOCALE_ID))},_e.\u0275prov=o["\u0275\u0275defineInjectable"]({token:_e,factory:_e.\u0275fac}),_e),Ae=((ye=me=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(e){return{ngModule:me,providers:[].concat(We,[{provide:Y,useClass:je},{provide:ze,useValue:e}])}}}]),e}()).\u0275mod=o["\u0275\u0275defineNgModule"]({type:ye}),ye.\u0275inj=o["\u0275\u0275defineInjector"]({factory:function(e){return new(e||ye)}}),ye),Le=n("PCNd"),Be=n("tyNb"),Ne=n("wHSu"),Re=n("gbi4"),De=n("6NWb"),Ve=[{path:"",component:(be=function(){function e(t,n){var r=this;_classCallCheck(this,e),this.common_service=t,this.router=n,this.lat=43.653908,this.faArrowLeft=Ne.e,this.lng=-79.384293,this.zoom=18;var i=this.router.getCurrentNavigation().extras.state;void 0!==i&&(this.lat=i.lat,this.lng=i.lng),this.common_service.search_on_change.subscribe((function(e){r.lat=e.lat,r.lng=e.lng}))}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}(),be.\u0275fac=function(e){return new(e||be)(o["\u0275\u0275directiveInject"](Re.a),o["\u0275\u0275directiveInject"](Be.c))},be.\u0275cmp=o["\u0275\u0275defineComponent"]({type:be,selectors:[["app-maps"]],decls:7,vars:6,consts:[[1,"col-12"],[1,"col-12","my-4"],["routerLink","/lists",1,"pointer","mr-3","float-left","no-outline",3,"icon"],[3,"latitude","longitude","zoom"],[3,"latitude","longitude"]],template:function(e,t){1&e&&(o["\u0275\u0275elementStart"](0,"div",0),o["\u0275\u0275elementStart"](1,"div",1),o["\u0275\u0275element"](2,"fa-icon",2),o["\u0275\u0275elementStart"](3,"h5"),o["\u0275\u0275text"](4,"Google Maps"),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementStart"](5,"agm-map",3),o["\u0275\u0275element"](6,"agm-marker",4),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"]()),2&e&&(o["\u0275\u0275advance"](2),o["\u0275\u0275property"]("icon",t.faArrowLeft),o["\u0275\u0275advance"](3),o["\u0275\u0275property"]("latitude",t.lat)("longitude",t.lng)("zoom",t.zoom),o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("latitude",t.lat)("longitude",t.lng))},directives:[De.a,Be.d,Me,Ee],styles:["agm-map[_ngcontent-%COMP%]{height:300px}"]}),be)}],Ze=((Ce=function e(){_classCallCheck(this,e)}).\u0275mod=o["\u0275\u0275defineNgModule"]({type:Ce}),Ce.\u0275inj=o["\u0275\u0275defineInjector"]({factory:function(e){return new(e||Ce)},imports:[[Be.e.forChild(Ve)],Be.e]}),Ce),Fe=((ke=function e(){_classCallCheck(this,e)}).\u0275mod=o["\u0275\u0275defineNgModule"]({type:ke}),ke.\u0275inj=o["\u0275\u0275defineInjector"]({factory:function(e){return new(e||ke)},imports:[[Le.a,r.CommonModule,Ze,Ae.forRoot({apiKey:"AIzaSyB5K8nt_fxmPeMLDicmqHMc27fJm3EAGXI"})]]}),ke)}}]);