﻿
!function(n,t,e){"use strict";var o,r,i,u,a,c,s={},f=n.when,l=n.extend,p=n.isArray,g=n.isFunction,d=n.Deferred;function h(n){return l(!0,{},n||{})}function v(){var n=Array.prototype.slice,t=n.call(arguments,1);return n.apply(arguments[0],t)}function y(n){return void 0===n}function m(n){return f().then(function(){return n})}function $(n){return s[n]||(s[n]=L(n)),s[n]}function L(n){var t=a[n];function e(e){return"Geocoder"==n||"InfoWindow"==n?new t(this,e):t.apply(this,e)}return e.prototype=t.prototype,new e(v(arguments,1))}function w(n,t){x(n.split(" "),t)}function x(n,t){(p(n)?n:[n]).forEach(t)}function P(n){return Object.keys(n)}function b(n){return P(n).map(function(t){return n[t]})}function _(n,t){return(n=h(n)).bounds&&(n.bounds=k(n.bounds)),m(t(n))}function M(n,t,e){var o=d();return n=h(n),f().then(function(){var e,o,r=n.address;if(r)return delete n.address,(e=r,o=d(),"string"==typeof e&&(e={address:e}),$("Geocoder").geocode(e,function(n,t){t===a.GeocoderStatus.OK?o.resolve(n[0].geometry.location):o.reject(t)}),o).then(function(e){"Geocoder"==t?n[t]=[parseFloat(e.lat()),parseFloat(e.lng())]:n[t]=e});n[t]=C(n[t])}).then(function(){o.resolve(e(n))}).fail(function(n){o.reject(n)}),o}function B(n,t,e){return(n=h(n))[t]=(n[t]||[]).map(C),m(e(n))}function C(n,t){return p(n)?new a.LatLng(n[0],n[1]):!t||!n||n instanceof a.LatLng?n:new a.LatLng(n.lat,n.lng)}function k(n,t){return p(n)?new a.LatLngBounds({lat:n[2],lng:n[3]},{lat:n[0],lng:n[1]}):t&&!n.getCenter?new a.LatLngBounds({lat:n.south,lng:n.west},{lat:n.north,lng:n.east}):n}function E(t,o){var r=a.OverlayView,i=n(e.createElement("div")).css({border:"none",borderWidth:0,position:"absolute"}).append(o.content);function u(){var n=this,e=[];function u(t){return n.getProjection().fromLatLngToDivPixel(t)}r.call(n),n.setMap(t),n.onAdd=function(){n.getPanes().overlayMouseTarget.appendChild(i[0])},o.position?(n.getPosition=function(){return o.position},n.setPosition=function(t){o.position=t,n.draw()},n.draw=function(){var n=u(o.position);i.css({left:n.x+o.x+"px",top:n.y+o.y+"px"})}):(n.getBounds=function(){return o.bounds},n.setBounds=function(t){o.bounds=t,n.draw()},n.draw=function(){var n=u(o.bounds.getSouthWest()),t=u(o.bounds.getNorthEast());i.css({left:n.x+o.x+"px",top:t.y+o.y+"px",width:t.x-n.x+o.x+"px",height:n.y-t.y+o.y+"px"})}),n.onRemove=function(){e.map(function(n){a.event.removeListener(n)}),i.remove(),n.$=i=null},n.$=i}return(o=l({x:0,y:0},o)).position?o.position=C(o.position,!0):o.bounds&&(o.bounds=k(o.bounds,!0)),u.prototype=new r,new u}function D(n,t,e,o){var r=this;r.cluster=n,r.markers=t,r.$=e.$,r.overlay=e,e.getBounds=function(){return L("LatLngBounds",o.getSouthWest(),o.getNorthEast())}}function S(n,t){var e,o,r,i,u,c=this,s=[],f=(t.size||200)>>1,l=!0,p={},g=[];function d(){var e,o,a,d,y,m,$,w,b,_,M,B,C,k,S,O,T=n.getZoom(),j={},A=[],R={};O=""+T,T>3&&(B=L("Circle",{center:n.getCenter(),radius:1.15*(e=n.getCenter(),o=n.getBounds().getNorthEast(),y=(d=(a=Math).PI)*e.lat()/180,m=d*e.lng()/180,$=d*o.lat()/180,w=d*o.lng()/180,b=a.cos,_=a.sin,6371e3*a.acos(a.min(b(y)*b($)*b(m)*b(w)+b(y)*_(m)*b($)*_(w)+_(y)*_($),1)))}).getBounds(),x(s,function(n,t){!B.contains(n.getPosition())&&(O+="-"+t,R[t]=!0,n.getMap()&&n.setMap(null))})),u&&x(s,function(n,t){R[t]||u(n)||(O+="-"+t,R[t]=!0,n.getMap()&&n.setMap(null))}),O!==r&&(r=O,x(s,function(e,o){var r,u;if(!R[o])M=[o],B=(r=e.getPosition(),u=i.fromLatLngToDivPixel(r),L("LatLngBounds",i.fromDivPixelToLatLng(L("Point",u.x-f,u.y+f)),i.fromDivPixelToLatLng(L("Point",u.x+f,u.y-f)))),l&&x(v(s,o+1),function(n,t){!R[t+=o+1]&&B.contains(n.getPosition())&&(M.push(t),R[t]=!0)}),j[k=M.join("-")]=!0,!p[k]&&(S=M.map(function(n){return s[n]}),(C=t.cb(v(S)))?(B=L("LatLngBounds"),x(S,function(n){B.extend(n.getPosition()),n.getMap()&&n.setMap(null)}),(C=h(C)).position=B.getCenter(),p[k]=new D(c,v(S),E(n,C),B),A.push(p[k])):x(S,function(t){t.getMap()||t.setMap(n)}))}),x(P(p),function(n){j[n]||(p[n].overlay.setMap(null),delete p[n])}),A.length&&x(g,function(n){n(A)}))}function y(){clearTimeout(e),e=setTimeout(d,100)}(t=t||{}).markers=t.markers||[],c._b=function(n){n(b(p)),g.push(n)},c.markers=function(){return v(s)},c.groups=function(){return b(p)},c.enable=function(){l||(l=!0,r="",y())},c.disable=function(){l&&(l=!1,r="",y())},c.add=function(n){s.push(n),r="",y()},c.remove=function(n){s=s.filter(function(t){return t!==n}),r="",y()},c.filter=function(n){u!==n&&(u=n,r="",y())},t.markers.map(function(n){n.position=C(n.position),s.push(L("Marker",n))}),o=setInterval(function(){(i=function n(t){function e(){var n=this;return n.onAdd=n.onRemove=n.draw=function(){},a.OverlayView.call(n)}e.prototype=new a.OverlayView;var o=new e;return o.setMap(t),o.getProjection()}(n))&&(clearInterval(o),a.event.addListener(n,"zoom_changed",y),a.event.addListener(n,"bounds_changed",y),d())},10)}function O(n,t){var e=this;P(t[0]).forEach(function(n){e[n]=function(){var o=[],r=v(arguments);return t.forEach(function(t){o.push(t[n].apply(t,r))}),"get"===n?o.length>1?o:o[0]:e}}),e.$=n}function T(t,e){var o,r=[],i=f(),u=this;function c(){return{$:t,get:u.get}}function s(t,e,o,r){var i=arguments.length>3;i||(r=o),n.each(t,function(n,t){x(e,function(e){var u=e instanceof D,s=u||e instanceof a.OverlayView,f=s?e.$.get(0):e;a.event["add"+(s?"Dom":"")+"Listener"+(r?"Once":"")](f,n,function(n){x(t,function(t){if(g(t)){if(u)t.call(c(),void 0,e,e.cluster,n);else if(i){var r=v(o);r.unshift(e),r.push(n),t.apply(c(),r)}else t.call(c(),e,n)}})})})})}function l(t){return function(e){if(!p(e))return t.apply(u,arguments).then(function(n){return r.push(n),n});var o,i=[];return(o=e.map(function(n){return t.call(u,n).then(function(n){i.push(n)})}),f.apply(n,o)).then(function(){return r.push(i),i})}}function P(n){return function(){var t=v(arguments);return i=i.then(function(e){return g(t[0])?f(t[0].call(c(),e)).then(function(e){return t[0]=e,n.apply(u,t)}):f(n.apply(u,t))})}}u.map=P(function(n){return o||M(n,"center",function(n){return o=L("Map",t.get(0),n),r.push(o),o})}),w("Marker:position Circle:center InfoWindow:position:0 Polyline:path Polygon:paths",function(n){var t=(n=n.split(":"))[1]||"";u[n[0].toLowerCase()]=P(l(function(e){return(t.match(/^path/)?B:M)(e,t,function(t){return"0"!==n[2]&&(t.map=o),L(n[0],t)})}))}),w("TrafficLayer TransitLayer BicyclingLayer",function(n){u[n.toLowerCase()]=P(function(){var t=L(n);return r.push(t),t.setMap(o),t})}),u.kmllayer=P(l(function(n){return(n=h(n)).map=o,f(L("KmlLayer",n))})),u.rectangle=P(l(function(n){return _(n,function(n){return n.map=o,L("Rectangle",n)})})),u.overlay=P(l(function(n){function t(n){return E(o,n)}return(n=h(n)).bounds?_(n,t):M(n,"position",t)})),u.groundoverlay=P(function(n,t,e){return _({bounds:t},function(t){(e=h(e)).map=o;var i=L("GroundOverlay",n,t.bounds,e);return r.push(i),i})}),u.styledmaptype=P(function(n,t,e){var i=L("StyledMapType",t,e);return r.push(i),o.mapTypes.set(n,i),i}),u.streetviewpanorama=P(function(t,e){return M(e,"position",function(e){var i=L("StreetViewPanorama",n(t).get(0),e);return o.setStreetView(i),r.push(i),i})}),u.route=P(function(n){var t=d();return(n=h(n)).origin=C(n.origin),n.destination=C(n.destination),$("DirectionsService").route(n,function(n,e){r.push(n),t.resolve(e===a.DirectionsStatus.OK&&n)}),t}),u.cluster=P(function(n){var t=new S(o,h(n));return r.push(t),m(t)}),u.directionsrenderer=P(function(t){var e;return t&&((t=h(t)).map=o,t.panel&&(t.panel=n(t.panel).get(0)),e=L("DirectionsRenderer",t)),r.push(e),e}),u.latlng=P(l(function(n){return M(n,"latlng",function(n){return r.push(n.latlng),n.latlng})})),u.fit=P(function(){var n=L("LatLngBounds");return x(r,function(t){t!==o&&x(t,function(t){t&&(t.getPosition&&t.getPosition()?n.extend(t.getPosition()):t.getBounds&&t.getBounds()?(n.extend(t.getBounds().getNorthEast()),n.extend(t.getBounds().getSouthWest())):t.getPaths&&t.getPaths()?x(t.getPaths().getArray(),function(t){x(t.getArray(),function(t){n.extend(t)})}):t.getPath&&t.getPath()?x(t.getPath().getArray(),function(t){n.extend(t)}):t.getCenter&&t.getCenter()&&n.extend(t.getCenter()))})}),n.isEmpty()||o.fitBounds(n),!0}),u.wait=function(n){i=i.then(function(t){var e=d();return setTimeout(function(){e.resolve(t)},n),e})},u.then=function(n){g(n)&&(i=i.then(function(t){return f(n.call(c(),t)).then(function(n){return y(n)?t:n})}))},u.catch=function(n){g(n)&&(i=i.then(null,function(t){return f(n.call(c(),t))}))},w("on once",function(n,t){u[n]=function(){var n=arguments[0];n&&("string"==typeof n&&((n={})[arguments[0]]=v(arguments,1)),i.then(function(e){if(e){if(e instanceof S)return e._b(function(e){e&&e.length&&s(n,e,t)}),s(n,e.markers(),[void 0,e],t);s(n,e,t)}}))}}),u.get=function(n){return y(n)?r.map(function(n){return p(n)?n.slice():n}):(n<0&&(n=r.length+n),p(r[n])?r[n].slice():r[n])},e&&u.map(e)}f((r=d(),i="__gmap3",n.holdReady(!0),u=function(){if(t.google&&t.google.maps||!1===c)r.resolve();else{var u;t[i]=function(){delete t[i],r.resolve()},(o=e.createElement("script")).type="text/javascript",o.src="https://maps.googleapis.com/maps/api/js?callback="+i+(c?"&"+("string"==typeof c?c:P(u=c).map(function(n){return encodeURIComponent(n)+"="+encodeURIComponent(u[n])}).join("&")):""),n("head").append(o)}},"loading"!=e.readyState?u():e.addEventListener("DOMContentLoaded",u),r)).then(function(){n.holdReady(!1)}),n.gmap3=function(n){c=n},n.fn.gmap3=function(e){var o=[];return a=t.google.maps,this.each(function(){var t=n(this),r=t.data("gmap3");r||(r=new T(t,e),t.data("gmap3",r)),o.push(r)}),new O(this,o)}}(jQuery,window,document);
;;;
$(document).ready(function(){var gmapAddress=$("#map").data("address");$("#map").gmap3({address:gmapAddress,navigationControl:false,mapTypeControl:false,scrollwheel:false,scaleControl:false,streetViewControl:false,zoomControl:false,fullscreenControl:false,zoom:16,navigationControl:false,scrollwheel:false,streetViewControl:true,styles:[{"featureType":"water","elementType":"geometry","stylers":[{"color":"#e9e9e9"},{"lightness":17}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#f5f5f5"},{"lightness":20}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#ffffff"},{"lightness":17}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#ffffff"},{"lightness":29},{"weight":0.2}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#ffffff"},{"lightness":18}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#ffffff"},{"lightness":16}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#f5f5f5"},{"lightness":21}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"color":"#dedede"},{"lightness":21}]},{"elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#ffffff"},{"lightness":16}]},{"elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#333333"},{"lightness":40}]},{"elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#f2f2f2"},{"lightness":19}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#fefefe"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#fefefe"},{"lightness":17},{"weight":1.2}]}]}).infowindow({content:""}).marker([{address:gmapAddress,data:gmapAddress,options:{icon:"/images/marker.png",draggable:false,animation:google.maps.Animation.DROP}}]).on({click:function(marker,event){var map=this.get(0);var infowindow=this.get(1);if(isInfoWindowOpen(infowindow)){if(infowindow.anchor!=marker){infowindow.setContent(marker.data);infowindow.open(map,marker);}
else{infowindow.close();}}else{infowindow.setContent(marker.data);infowindow.open(map,marker);}}});function isInfoWindowOpen(infowindow){var map=infowindow.getMap();return(map!==null&&typeof map!=="undefined");}});
;;;