1"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,_toPropertyKey(o.key),o)}}function _createClass(t,e,r){return e&&_defineProperties(t.prototype,e),r&&_defineProperties(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(t,e){if("object"!=_typeof(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function _callSuper(t,e,r){return e=_getPrototypeOf(e),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(e,r||[],_getPrototypeOf(t).constructor):e.apply(t,r))}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function(){return!!t})()}function _superPropGet(t,e,r,o){var n=_get(_getPrototypeOf(1&o?t.prototype:t),e,r);return 2&o&&"function"==typeof n?function(t){return n.apply(r,t)}:n}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var o=_superPropBase(t,e);if(o){var n=Object.getOwnPropertyDescriptor(o,e);return n.get?n.get.call(arguments.length<3?t:r):n.value}},_get.apply(null,arguments)}function _superPropBase(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=_getPrototypeOf(t)););return t}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}!function(t){DRTS.Location=DRTS.Location||{},DRTS.Location.leaflet=DRTS.Location.leaflet||{},DRTS.Location.leaflet.map=function(){function e(t,r){var o;_classCallCheck(this,e);var n={zoomControl:!1,scrollWheelZoom:(o=_callSuper(this,e,[t,r])).options.scrollwheel,layers:[L.tileLayer(o.options.use_custom_tile_url&&o.options.tile_url?o.options.tile_url:"//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{id:"osm",attribution:!(!o.options.add_attribution&&void 0!==o.options.add_attribution)&&(o.options.attribution||'© <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors')})],gestureHandling:!0};return o.map=L.map(o.$map.get(0),n),L.control.zoom({position:"bottomright"}).addTo(o.map),o.map.attributionControl.setPrefix("Leaflet"),o.currentCircle=null,o.markerCluster=null,o.options.marker_clusters&&(o.markerCluster=L.markerClusterGroup({spiderfyOnMaxZoom:!0,showCoverageOnHover:!1,zoomToBoundsOnClick:!0,disableClusteringAtZoom:o.options.marker_clusters_max_zoom?o.options.marker_clusters_max_zoom+1:10}),o.markerCluster.on("clusterclick",function(t){o.clusterClicked=!0}),o.map.on("moveend",function(){o.clusterClicked=!1})),o.options.infobox&&o.map.on("resize movestart zoomstart",function(t){o.hidePopover(),o.currentMarker=null}),o.map.on("moveend",function(t){o.container.trigger("map_ready.sabai",{map:o.map,clusterClicked:o.clusterClicked})}),o.map.on("click",function(t){o.container.trigger("map_clicked.sabai",{map:o.map,latlng:[t.latlng.lat,t.latlng.wrap().lng]})}),o.map.on("zoomend",function(t){o.container.trigger("map_zoom_changed.sabai",{map:o.map,zoom:o.map.getZoom(),clusterClicked:o.clusterClicked})}),o.map.on("dragend",function(t){o.container.trigger("map_dragend.sabai",{map:o.map,clusterClicked:o.clusterClicked})}),o.map.on("mousedown",function(t){o.container.trigger("map_mousedown.sabai",{map:o.map,clusterClicked:o.clusterClicked})}),o}return _inherits(e,DRTS.Map.map),_createClass(e,[{key:"initView",value:function(){return this.map.setVie
1w(L.latLng(this.options.default_location.lat,this.options.default_location.lng),this.options.default_zoom),this}},{key:"setView",value:function(t,e){return this.map.setView(L.latLng(t.lat,t.lng),e||this.map.getZoom()),this}},{key:"keepMarkers",value:function(t){return this.markerCluster&&this.markerCluster.clearLayers(),_superPropGet(e,"keepMarkers",this,3)([t]),this}},{key:"removeMarker",value:function(t){return this.map.removeLayer(t),this}},{key:"clearMarkers",value:function(){return _superPropGet(e,"clearMarkers",this,3)([]),this.markerCluster&&this.markerCluster.clearLayers(),this}},{key:"createMarker",value:function(e,r){if(!r.lat||!r.lng)return!1;var o,n,i={riseOnHover:!0};return this.options.marker_custom&&(n=r.icon?DRTS.Location.leaflet.map.divIcon({html:r.icon.url?t("<img/>").attr("src",r.icon.url)[0].outerHTML:null,icon:r.icon.icon||this.options.marker_icon,icon_color:r.icon.icon_color||this.options.marker_icon_color,size:r.icon.size||this.options.marker_size,color:r.icon.color||this.options.marker_color||"#fff",full:!!r.icon.is_full}):DRTS.Location.leaflet.map.divIcon({icon:this.options.marker_icon||"",icon_color:this.options.marker_icon_color,size:this.options.marker_size,color:this.options.marker_color||"#fff"}),i.icon=n),(o=L.marker([r.lat,r.lng],i))._id=e,o._content=r.content,o._entity_id=r.entity_id,o._key=r.index,o}},{key:"getMarkerLatlng",value:function(t){if(null==t){var e=Object.keys(this.markers)[0];t=this.markers[e]}var r=t.getLatLng();return[r.lat,r.lng]}},{key:"getMarkerContent",value:function(t){return t._content}},{key:"getMarkerPosition",value:function(t){return this.map.latLngToContainerPoint(t.getLatLng())}},{key:"getMarkerHeight",value:function(t){return t._marker_height}},{key:"getMarkerEntityId",value:function(t){return t._entity_id}},{key:"getMarkerKey",value:function(t){return t._key}},{key:"drawMarkers",value:function(e){var r=this;if(e=e||{},this.currentMarker=null,this.currentCircle&&this.currentCircle.remove(),Object.keys(this.markers).length>0){var o,n=[];for(var i in o=void 0===e.fit_bounds?this.options.fit_bounds:e.fit_bounds,Object.keys(this.markers).length<=1&&(o=!1),this.markers)if(this.markers.hasOwnProperty(i)){if(this.markerCluster||this.markers[i].addTo(this.map),o){var a=this.markers[i].getLatLng();n.push(a),e.center&&n.push([2*e.center[0]-a.lat,2*e.center[1]-a.lng])}this.markers[i].off(this.options.infobox_event).on(this.options.infobox_event,function(t,e){return function(r){t.clickMarker(e)}}(this,this.markers[i]))}if(this.markerCluster&&(this.markerCluster.addLayers(Object.values(this.markers)),this.map.addLayer(this.markerCluster)),o){var s=void 0===e.fit_bounds_padding?this.options.fit_bounds_padding:e.fit_bounds_padding;this.map.fitBounds(n,{padding:[s,s]})}else void 0===e.center&&(this.options.center_default?e.center=[this.options.default_location.lat,this.options.default_location.lng]:e.center=this.markers[Object.keys(this.markers)[0]].getLatLng(),setTimeout(function(){r.map.invalidateSize()},500))}return e.center&&(!1!==e.pan_center&&this.map.setView(e.center,e.zoom||this.options.default_zoom||10),e.circle&&(this.currentCircle=L.circle(e.center,e.circle.radius,{color:e.circle.stroke_color||"#99f",opacity:.8,weight:1,fill:!0,fillColor:e.circle.fill_color||"#99f",fillOpacity:.3}).addTo(this.map))),t(DRTS).trigger("map_drawn.sabai",{map:this}),this}},{key:"clickMarker",value:function(t,e){var r=this;if(this.currentMarker){if(this.currentMarker===t._id)return this.showMarkerContent(t,e),this.currentMarker=t._id,void(e||this.container.trigger("marker_click.sabai",{map:this,marker:t}));this.markers[this.currentMarker].setZIndexOffset(0)}return t.setZIndexOffset(2e3),e&&this.markerCluster&&(this.currentMarker&&(this.map.removeLayer(this.markers[this.currentMarker]),this.markerCluster.addLayer(this.markers[this.currentMarker])),this.markerCluster.removeLayer(t),t.addTo(this.map)),this.map.getBounds()&&!this.map.getBounds().contains(t.getLatLng())?(this.map.panTo(t.getLatLng(),{duration:.25}),setTimeout(function(){r.showMarkerContent(t)},300)):this.showMarkerContent(t,e),this.currentMarker=t._id,e||this.container.trigger("marker_click.sabai",{map:this,marker:t}),this}},{key:"animateMarker",value:function(t){t.bounce({duration:800,height:50})}},{key:"onResized",value:function(){return this.map.invalidateSize(),this}},{key:"getZoom",value:function(){return this.map.getZoom()}},{key:"getSouthWest",value:function(){var t=this.map.getBounds();
1return[t.getSouthWest().lat,t.getSouthWest().lng]}},{key:"getNorthEast",value:function(){var t=this.map.getBounds();return[t.getNorthEast().lat,t.getNorthEast().lng]}},{key:"getMarkerClusterer",value:function(){return this.markerCluster}},{key:"invalidateSize",value:function(){return this.map.invalidateSize(),this}}])}(),DRTS.Location.leaflet.map.divIcon=function(t){var e=document.createElement("div"),r="drts-map-marker";if(t.full)r+=" drts-map-marker-full",e.innerHTML=t.html;else{var o=t.size||39,n=document.createElement("div");t.color&&(e.style.backgroundColor=e.style.color=n.style.borderColor=t.color),e.style.width=o+"px",e.style.height=o+"px",e.style.marginTop="-"+(o*Math.sqrt(2)-DRTS.Map.markerHeight(o))+"px",t.html?n.innerHTML=t.html:t.icon?(n.innerHTML='<i class="'+t.icon+'"></i>',t.icon_color&&(n.style.backgroundColor=t.icon_color)):(n.style.boxShadow="none",t.icon_color&&(n.style.backgroundColor=t.icon_color)),e.appendChild(n)}return e.className=r,t.data&&(e.dataset=t.data),L.divIcon({html:e.outerHTML,iconSize:[0,0]})},DRTS.Map.api.getMap=function(t,e){return new DRTS.Location.leaflet.map(t,e)}}(jQuery);
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.