1window.__ik_map.createModal=function(){function e(){t.style.opacity="0",setTimeout((function(){t.style.display="none"}),500)}var t=document.createElement("div"),i=document.createElement("div"),s=document.createElement("div"),r=document.createElement("img"),a=document.createElement("div"),n=document.createElement("div"),o=document.createElement("div"),l=document.createElement("div"),d=document.createElement("div"),h=document.createElement("button"),c=document.createElement("div"),m=document.createElement("div"),u=document.createElement("div");t.id="discovery-modal-container",t.style.display="none",t.style.opacity="0%",i.id="discovery-modal",s.id="discovery-header-image",r.id="discovery-modal-logo",u.id="discovery-modal-name",m.id="discovery-location-container",a.id="discovery-location-data",o.id="discovery-location-gallery",n.id="discovery-location-gallery-container",l.id="discovery-locations",d.id="discovery-locations-images",h.id="discovery-close-button";var _=document.createElement("a"),g=document.createElement("div"),p=document.createElement("div"),v=document.createElement("div");c.id="discovery-project",_.id="discovery-purchase",v.id="discovery-purchase-arrow",p.innerText="View Offers";var y=document.createElement("span"),k=document.createElement("span");k.innerHTML="Close",y.style.backgroundImage="url("+window.__ik_map.modal.url+"/assets/maps/close_x.png)",y.style.backgroundSize="contain",y.style.backgroundRepeat="no-repeat",y.style.height="28px",y.style.width="28px",h.appendChild(y),h.appendChild(k),window.__ik_map.modal.modalBackground&&(i.style.backgroundColor=window.__ik_map.modal.modalBackground),window.__ik_map.modal.modalText&&(i.style.color=window.__ik_map.modal.modalText),document.getElementsByTagName("body")[0].appendChild(t),t.appendChild(i),i.appendChild(s),s.appendChild(r),s.appendChild(u),s.appendChild(h),s.appendChild(c),i.appendChild(m),_.appendChild(g),_.appendChild(p),_.appendChild(v),m.appendChild(a),m.appendChild(n),n.appendChild(o),m.appendChild(l),m.appendChild(d),m.appendChild(_),h.onclick=function(){e()},t.onclick=function(t){t.target.id===this.id&&e()},document.addEventListener("keydown",(t=>{"Escape"===t.key&&e()}))},window.__ik_map.setModal=function(){var e=document.getElementById("discovery-modal-container");e.style.display="flex",setTimeout((function(){e.style.opacity="1"}),100)},window.__ik_map.handleProjectInfo=function(e){var t=document.getElementById("discovery-locations"),i=document.getElementById("discovery-locations-images"),s=document.getElementById("discovery-locations-images"),r=window.__ik_map.groups[e.group_id];if(s.innerHTML="",document.getElementById("discovery-project").innerHTML=e.name,r.brand_slugs.length>1){t.style.display="block",i.style.display="flex";var a=/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(navigator.userAgent)||window.innerWidth<600,n=300,o=300;for(let e=0;e<r.brand_slugs.length;e++)if(window.__ik_map.brands[r.brand_slugs[e]]){var l=window.__ik_map.tileBuild(window.__ik_map.brands[r.brand_slugs[e]],a,n,o,!0);s.appendChild(l),l.addEventListener("click",(function(e){var t=document.getElementById("discovery-modal-container");t.style.opacity="0",setTimeout((function(){t.style.display="none";var i=e.target.closest(".tileContainer").querySelector("button").dataset.brand;window.__ik_map.handleModalBuild(window.__ik_map.brands[i],window.__ik_map.imgSrc,document.querySelector("#discovery-purchase").href),window.__ik_map.setModal()}),500)}))}}else t.style.display="none",i.style.display="none"},window.__ik_map.handleModalBuild=function(e,t,i){document.getElementById("discovery-modal-container")||window.__ik_map.createModal(),!e.branding.hero_image.value&&(e.branding.hero_image.value="v1626918624/cvvtguuqmj0uvbg240ll.jpg");var s=document.getElementById("discovery-location-gallery");if(s.innerHTML="",!e.branding.gallery||!e.branding.gallery.images||e.branding.gallery.images.length<1)document.getElementById("discovery-location-gallery-container").style.display="none";else for(let i=0;i<e.branding.gallery.images.length;i++){document.getElementById("discovery-location-gallery-container").style.display="flex";var r=document.createElement("div");r.style.backgroundImage="url(https://res-5.cloudinary.com/"+t+"/image/upload/c_fit,w_240/"+e.branding.gallery.images[i]+")",r.style.backgroundSize="cover",r.style.backgroundPosition="center",r.style.flex="1",r.style.height="120px",r.style.minWidth="120px",0===i&&(r.style.borderBottomLeftRadius="20px",r.style.borderTopLeftRadius="20px"),i===e.branding.gallery.images.length-1&&(r.style.borderBottomRightRadius="20px",r.style.borderTopRightRadius="20px"),s.appendChild(r)}var a=document.getElementById("discovery-modal-logo"),n=document.getElementById("discovery-modal-name");e.branding.logo.dark_mode?(n.style.display="none",a.style.display="block",a.src="https://res-5.cloudinary.com/"+t+"/image/upload/c_fit,w_360/"+e.branding.logo.dark_mode):(a.src="",a.style.display="none",n.style.display="block",n.innerHTML=e.name);var o=e.branding.hero_image.value?e.branding.hero_image.value:"v1626918624/cvvtguuqmj0uvbg240ll.jpg";if(document.getElementById("discovery-header-image").style.backgroundImage="url(https://res-5.cloudinary.com/"+t+"/image/upload/c_fit,w_720/"+o+")",document.getElementById("discovery-locations").innerHTML="Credit here is also redeemable at",document.getElementById("discovery-location-data").innerHTML=`<div class="header">About ${e.name}</div>`,e.branding.summary&&e.branding.summary.length>2){document.querySelector("#discovery-modal .header").style.display="block";var l=document.createElement("div");l.innerHTML=e.branding.summary,document.getElementById("discovery-location-data").appendChild(l)}else document.querySelector("#discovery-modal .header").style.display="none";var d=window.location.href.split("?")[0].trim(),h=i.split("?")[0].trim();d.indexOf("//pass.")>0&&d.indexOf("//pass.")<7?document.querySelector("#discovery-purchase").onclick=function(){try{document.getElementById("tiers-box").scrollIntoView()}catch(e){}document.querySelector("#discovery-close-button").click()}:d.indexOf(-1===h)&&h.indexOf(-1===d)&&d!=h&&""!=h?(document.querySelector("#discovery-purchase").href=i,document.querySelector("#discovery-purchase").target="_blank"):document.querySelector("#discovery-purchase").onclick=function(){document.body.scrollTop=0,document.documentElement.scrollTop=0,document.querySelector("#discovery-close-button").click()},window.__ik_map.handleProjectInfo(e)};class MarkerClusterer{constructor(e,t,i){this.extend(MarkerClusterer,google.maps.OverlayView),this.map_=e,this.MARKER_CLUSTER_IMAGE_PATH_="m",this.MARKER_CLUSTER_IMAGE_EXTENSION_="png",this.markers_=[],this.cluster
1s_=[],this.sizes=[53,56,66,78,90],this.styles_=[],this.ready_=!1;var s=i||{};this.zIndex_=s.zIndex||google.maps.Marker.MAX_ZINDEX+1,this.gridSize_=30,this.minClusterSize_=s.minimumClusterSize||2,this.maxZoom_=null,this.styles_=s.styles||[],this.imagePath_=s.imagePath+"m"||this.MARKER_CLUSTER_IMAGE_PATH_,this.imageExtension_=s.imageExtension||this.MARKER_CLUSTER_IMAGE_EXTENSION_,this.zoomOnClick_=!0,null!=s.zoomOnClick&&(this.zoomOnClick_=s.zoomOnClick),this.averageCenter_=!1,null!=s.averageCenter&&(this.averageCenter_=s.averageCenter),this.setupStyles_(),this.setMap(e),this.prevZoom_=this.map_.getZoom();var r=this;google.maps.event.addListener(this.map_,"zoom_changed",(function(){var e=r.map_.getZoom(),t=r.map_.minZoom||0,i=Math.min(r.map_.maxZoom||100,r.map_.mapTypes[r.map_.getMapTypeId()].maxZoom);const s=(e=Math.min(Math.max(e,t),i))>=14?140:30;this.gridSize_;window.__ik_map.mc.setGridSize(s),r.resetViewport()})),google.maps.event.addListener(this.map_,"idle",(function(){r.redraw()})),t&&(t.length||Object.keys(t).length)&&this.addMarkers(t,!1)}extend(e,t){return function(e){for(var t in e.prototype)this.prototype[t]=e.prototype[t];return this}.apply(e,[t])}onAdd(){this.setReady_(!0)}draw(){}setupStyles_(){if(!this.styles_.length)for(var e,t=0;e=this.sizes[t];t++)this.styles_.push({url:this.imagePath_+(t+1)+"."+this.imageExtension_,grayurl:this.imagePath_+"gray"+(t+1)+"."+this.imageExtension_,height:e,width:e})}fitMapToMarkers(){for(var e,t=this.getMarkers(),i=new google.maps.LatLngBounds,s=0;e=t[s];s++)i.extend(e.getPosition());this.map_.fitBounds(i)}setZIndex(e){this.zIndex_=e}getZIndex(){return this.zIndex_}setStyles(e){this.styles_=e}getStyles(){return this.styles_}isZoomOnClick(){return this.zoomOnClick_}isAverageCenter(){return this.averageCenter_}getMarkers(){return this.markers_}getTotalMarkers(){return this.markers_.length}setMaxZoom(e){this.maxZoom_=e}getMaxZoom(){return this.maxZoom_}calculator_(e,t){for(var i=0,s=e.length,r=s;0!==r;)r=parseInt(r/10,10),i++;return{text:s,index:i=Math.min(i,t)}}setCalculator(e){this.calculator_=e}getCalculator(){return this.calculator_}addMarkers(e,t){if(e.length)for(let t,i=0;t=e[i];i++)this.pushMarkerTo_(t);else if(Object.keys(e).length)for(let t in e)this.pushMarkerTo_(e[t]);t||this.redraw()}pushMarkerTo_(e){if(e.isAdded=!1,e.draggable){var t=this;google.maps.event.addListener(e,"dragend",(function(){e.isAdded=!1,t.repaint()}))}this.markers_.push(e)}addMarker(e,t){this.pushMarkerTo_(e),t||this.redraw()}removeMarker_(e){var t=-1;if(this.markers_.indexOf)t=this.markers_.indexOf(e);else for(var i,s=0;i=this.markers_[s];s++)if(i==e){t=s;break}return-1!=t&&(e.infowindow.setMap(null),e.setMap(null),this.markers_.splice(t,1),!0)}removeMarker(e,t){var i=this.removeMarker_(e);return!(t||!i)&&(this.resetViewport(),this.redraw(),!0)}removeMarkers(e,t){for(var i,s=e===this.getMarkers()?e.slice():e,r=!1,a=0;i=s[a];a++){var n=this.removeMarker_(i);r=r||n}if(!t&&r)return this.resetViewport(),this.redraw(),!0}setReady_(e){this.ready_||(this.ready_=e,this.createClusters_())}getTotalClusters(){return this.clusters_.length}getMap(){return this.map_}setMap(e){this.map_=e}getGridSize(){return this.gridSize_}setGridSize(e){this.gridSize_=e}getMinClusterSize(){const e=this.map.getZoom();return e<15?1:e<17?2:1e3}setMinClusterSize(e){this.minClusterSize_=e}getExtendedBounds(e){var t=this.getProjection(),i=new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()),s=new google.maps.LatLng(e.getSouthWest
1().lat(),e.getSouthWest().lng()),r=t.fromLatLngToDivPixel(i);r.x+=this.gridSize_,r.y-=this.gridSize_;var a=t.fromLatLngToDivPixel(s);a.x-=this.gridSize_,a.y+=this.gridSize_;var n=t.fromDivPixelToLatLng(r),o=t.fromDivPixelToLatLng(a);return e.extend(n),e.extend(o),e}isMarkerInBounds_(e,t){return t.contains(e.getPosition())}clearMarkers(){this.resetViewport(!0),this.markers_=[]}resetViewport(e){for(let e,t=0;e=this.clusters_[t];t++)e.remove();for(let t,i=0;t=this.markers_[i];i++)t.isAdded=!1,e&&t.setMap(null);this.clusters_=[]}repaint(){var e=this.clusters_.slice();this.clusters_.length=0,this.resetViewport(),this.redraw(),setTimeout((function(){for(var t,i=0;t=e[i];i++)t.remove()}),0)}redraw(){this.createClusters_()}distanceBetweenPoints_(e,t){if(!e||!t)return 0;var i=6371,s=(t.lat()-e.lat())*Math.PI/180,r=(t.lng()-e.lng())*Math.PI/180,a=Math.sin(s/2)*Math.sin(s/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(r/2)*Math.sin(r/2);return i*(2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a)))}addToClosestCluster_(e){for(var t,i=4e4,s=null,r=0;
1t=this.clusters_[r];r++){var a=t.getCenter();if(a){var n=this.distanceBetweenPoints_(a,e.getPosition());n<i&&(i=n,s=t)}}if(s&&s.isMarkerInClusterBounds(e))s.addMarker(e);else{var o=new Cluster(this);o.addMarker(e),this.clusters_.push(o)}}createClusters_(){var e=[];if(this.ready_)for(var t,i=new google.maps.LatLngBounds(this.map_.getBounds().getSouthWest(),this.map_.getBounds().getNorthEast()),s=this.getExtendedBounds(i),r=0;t=this.markers_[r];r++)!t.isAdded&&this.isMarkerInBounds_(t,s)&&(this.addToClosestCluster_(t),e.push(t))}}class Cluster{constructor(e){this.markerClusterer_=e,this.map_=e.getMap(),this.gridSize_=e.getGridSize(),this.minClusterSize_=e.getMinClusterSize(),this.averageCenter_=e.isAverageCenter(),this.center_=null,this.markers_=[],this.bounds_=null,this.clusterIcon_=new ClusterIcon(this,e.getStyles(),e.getGridSize())}isMarkerAlreadyAdded(e){if(this.markers_.indexOf)return-1!=this.markers_.indexOf(e);for(var t,i=0;t=this.markers_[i];i++)if(t==e)return!0;return!1}addMarker(e){if(!__ik_map.reloadSet){__ik_map.reloadSet=!0;let e=document.querySelector('div[aria-label="Map"]').childNodes[0];e.style.opacity=0,setTimeout((function(){__ik_map.reloadSet=!1,e.style.transition="opacity 1s",e.style.opacity=1,setTimeout((function(){e.style.transition=""}),1e3)}),300)}if(this.isMarkerAlreadyAdded(e))return!1;if(this.center_){if(this.averageCenter_){var t=this.markers_.length+1,i=(this.center_.lat()*(t-1)+e.getPosition().lat())/t,s=(this.center_.lng()*(t-1)+e.getPosition().lng())/t;this.center_=new google.maps.LatLng(i,s),this.calculateBounds_()}}else this.center_=e.getPosition(),this.calculateBounds_();var r=4,a=e.logos&&e.logos.reduce((function(e,t,i){var s=Math.floor(i/r);return e[s]||(e[s]=[]),e[s].push(t),e}),[]);e.isAdded=!0,this.markers_.push(e);var n=this.markers_.length,o=window.__ik_map.curBrand&&!e.brandData.includes(window.__ik_map.curBrand),l=o?'<div class="grey-dot"></div>':e.logos?` \n <div class="map-carousel ${e.brandData.join(" ")}" data-carousel>\n ${a.length>1?'<button class="carousel-button prev" data-carousel-button="prev"><svg xmlns="http://www.w3.org/2000/svg" height="28px" viewBox="0 0 28 28" width="28px" fill="#FFFFFF"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M14.71 6.71c-.39-.39-1.02-.39-1.41 0L8.71 11.3c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L10.83 12l3.88-3.88c.39-.39.38-1.03 0-1.41z"/></svg></button>\n <button class="carousel-button next" data-carousel-button="next"><svg xmlns="http://www.w3.org/2000/svg" height="28px" viewBox="0 0 28 28" width="28px" fill="#FFFFFF"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M9.29 6.71c-.39.39-.39 1.02 0 1.41L13.17 12l-3.88 3.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41L10.7 6.7c-.38-.38-1.02-.38-1.41.01z"/></svg></button>':""}
1\n <ul data-slides>\n ${a.map((function(e,t){return`\n <li class="slide" id="${0===t?"data-active":"no"}">\n <div class="${e.length>2?"image-carousel-holder":"image-carousel-holder-2"}">\n ${e.map((function(e){return`<img class="multi-image" link=${e[2]} slug={${e[3]}} src="${e[0]}" alt="${e[1]}">`})).join("")}\n <div>\n </li>`})).join("")}\n \n \n \n </ul>\n </div>\n `:e.logo&&"sos"!=e.brand?`<image style="max-width: 65px" src="${e.logo}" class="${e.brandData}" target="_blank"></image>`:`<div style="max-width: 65px" target="_blank"><div class="infobox-text ${e.brandData}">${e.locName}</div></div>`,d=`<div id="${"multi"!==e.locName?e.locName:e.locData.join(" ")}" class="infobox">\n\n ${l}\n ${!o&&e.exploreTab&&"multi"!==e.brand?'<div class=\'marker-explore\'>Explore offers<svg class="explore-tab-chevron" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18px" fill="#1dc195"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M9.29 6.71c-.39.39-.39 1.02 0 1.41L13.17 12l-3.88 3.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41L10.7 6.7c-.38-.38-1.02-.38-1.41.01z"/></svg></div>':""}\n </div>`,h=new google.maps.InfoWindow({content:d,disableAutoPan:!0});if(h.setPosition(e.coordinates),e&&(e.setMap(null),e.infowindow&&e.infowindow.setMap(null),e.infowindow=h,h.setMap(this.map_),e.setMap(this.map_),google.maps.event.addListener(h,"domready",(function(){function t(){r.forEach((function(e){e.classList.add("hide-explore-tab")})),a.forEach((function(e){e.classList.add("hide-explore-tab")}))}const i="multi"!==e.locName?e.locName:e.locData.join(" ");var s=document.getElementById(i);if(s){const t=document.getElementById(i).closest(".gm-style-iw-a");o&&t.classList.add("hide-arrow"),s.addEventListener("click",(function(){"link"===e.clickMode&&0!==String(window.location).indexOf(e.link)?window.open(e.link,"_blank"):"modal"===e.clickMode?(window.__ik_map.handleModalBuild(window.__ik_map.brands[e.brandData],e.imgSrc,e.link),window.__ik_map.setModal()):e.map.getZoom()<17?(e.map.setZoom(17),e.map.panTo(e.position)):"link"===e.clickMode&&0!==String(window.location).indexOf(e.link)?window.open(e.link,"_blank"):"modal"===e.clickMode&&(window.__ik_map.handleModalBuild(window.__ik_map.brands[e.brandData],e.imgSrc,e.link),window.__ik_map.setModal())}))}var r=document.querySelectorAll(".explore-tab"),a=document.querySelectorAll(".explore-tab-trick-span");if(r.isConnected&&setTimeout((function(){t()}),4300),"multi"==e.brand){var n=document.querySelectorAll(".multi-image"),l=document.querySelectorAll("[data-carousel-button]"),d=document.getElementsByClassName("slide");if(d.isConnected){var h=d[0]||d;h.setAttribute("id","data-active"),h.style.opacity="1"}l.forEach((function(e){e.addEventListener("click",(function(){var t="next"===e.dataset.carouselButton?1:-1,i=e.closest("[data-carousel]").querySelector("[data-slides]"),s=i.querySelector("#data-active"),r=[].slice.call(i.children).indexOf(s)+t;r<0&&(r=i.children.length-1),r>=i.children.length&&(r=0),s.style.opacity="0",s.removeAttribute("id"),i.children[r].setAttribute("id","data-active"),i.children[r].style.opacity="1"}))})),n.forEach((function(t){t.addEventListener("click",(function(){let i=t.getAttribute("link").toString().replace(/[{}]/g,""),s=t.getAttribute("slug").toString().replace(/[{}]/g,"");"link"===e.clickMode&&0!==String(window.location).indexOf(i)?window.open(i,"_blank"):"modal"===e.clickMode?(window.__ik_map.handleModalBuild(window.__ik_map.brands[s],e.imgSrc,i),window.__ik_map.setModal()):e.map.getZoom()<17&&(e.map.setZoom(17),e.map.panTo(e.position))}))}))}}))),n==this.minClusterSize_)for(var c=0;c<n;c++)this.markers_[c].infowindow&&this.markers_[c].infowindow.setMap(null),this.markers_[c].setMap(null);return n>=this.minClusterSize_&&(e.infowindow&&e.infowindow.setMap(null),e.setMap(null)),this.updateIcon(),!0}getMarkerClusterer(){return this.markerClusterer_}getBounds(){for(var e,t=new google.maps.LatLngBounds(this.center_,this.center_),i=this.getMarkers(),s=0;e=i[s];s++)t.extend(e.getPosition());return t}remove(){this.clusterIcon_.remove(),this.markers_.length=0,delete this.markers_}getSize(){return this.markers_.length}getMarkers(){return this.markers_}getCenter(){return this.center_}calculateBounds_(){var e=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(e)}isMarkerInClusterBounds(e){return this.bounds_.contains(e.getPosition())}getMap(){return this.map_}updateIcon(){var e=this.map_.getZoom(),t=this.markerClusterer_.getMaxZoom();if(t&&e>t)for(var i,s=0;i=this.markers_[s];s++)i.infowindow&&i.infowindow.setMap(this.map_),i.setMap(this.map_);else if(this.markers_.length<this.minClusterSize_)this.clusterIcon_.hide();else{var r=this.markerClusterer_.getStyles().length,a=this.markerClusterer_.getCalculator()(this.markers_,r);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.setSums(a),this.clusterIcon_.show()}}}class ClusterIcon{constructor(e,t,i){e.getMarkerClusterer().extend(ClusterIcon,google.maps.OverlayView),this.styles_=t,this.padding_=i||0,this.cluster_=e,this.center_=null,this.map_=e.getMap(),this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(this.map_)}triggerClusterClick(){window.__ik_map.thisZoom=this.map_.getZoom();var e=this.cluster_.getBounds(),t=this.cluster_.getMarkerClusterer();google.maps.event.trigger(t.map_,"clusterclick",this.cluster_),t.isZoomOnClick()&&(this.map_.fitBounds(e),this.map_.setCenter(e.getCenter())),this.map_.getZoom()===window.__ik_map.thisZoom&&this.map_.getZoom()<18?this.map_.setZoom(this.map_.getZoom()+1):this.map_.getZoom()>17&&this.map_.setZoom(17)}onAdd(){if(this.div_=document.createElement("DIV"),this.visible_){var e=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(e);let t=Number(this.sums_.text);this.cluster_.markers_.map((e=>{"multi"===e.brand&&(t+=e.logos.length-1)})),this.div_.innerHTML=t}this.getPanes().overlayMouseTarget.appendChild(this.div_);var t=this;google.maps.event.addDomListener(this.div_,"click",(function(){t.triggerClusterClick()}))}getPosFromLatLng_(e){var t=this.getProjection().fromLatLngToDivPixel(e);return t.x-=parseInt(this.width_/2,10),t.y-=parseInt(this.height_/2,10),t}draw(){if(this.visible_){var e=this.getPosFromLatLng_(this.center_);this.div_.style.top=e.y+"px",this.div_.style.left=e.x+"px"}}hide(){this.div_&&(this.div_.style.display="none"),this.visible_=!1}show(){if(this.div_){var e=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(e),this.div_.style.display=""}this.visible_=!0}remove(){this.setMap(null)}onRemove(){this.div_&&this.div_.parentNode&&(this.hide(),this.div_.parentNode.removeChild(this.div_),this.div_=null)}setSums(e){this.sums_=e,this.text_=e.text,this.index_=e.index,this.div_&&(this.div_.innerHTML=e.text),this.useStyle()}useStyle(){var e=Math.max(0,this.sums_.index-1);e=Math.min(this.styles_.length-1,e);var t=this.styles_[e];this.url_=t.url,this.grayurl_=t.grayurl,this.height_=t.height,this.width_=t.width,this.textColor_=t.textColor,this.anchor_=t.anchor,this.textSize_=t.textSize,this.backgroundPosition_=t.backgroundPosition}setCenter(e){this.center_=e}createCss(e){var t=this.url_,i="black";if(window.__ik_map.curBrand){t=this.grayurl_,i="white";for(let e=0;e<this.cluster_.markers_.length;e++){var s=this.cluster_.markers_[e];if("string"==typeof s.brandData&&s.brandData===window.__ik_map.curBrand||"object"==typeof s.brandData&&-1!==s.brandData.indexOf(window.__ik_map.curBrand)){t=this.url_,i="black";break}}}
1var r=["width: 50px;","height: 50px;"];r.push("z-index:"+this.cluster_.markerClusterer_.getZIndex()+";"),r.push("background-image:url("+t+");");var a=this.backgroundPosition_?this.backgroundPosition_:"0 0";r.push("background-position:"+a+";"),"object"==typeof this.anchor_?("number"==typeof this.anchor_[0]&&this.anchor_[0]>0&&this.anchor_[0]<this.height_?r.push("height:"+(this.height_-this.anchor_[0])+"px; padding-top:"+this.anchor_[0]+"px;"):r.push("height:"+this.height_+"px; line-height:"+this.height_+"px;"),"number"==typeof this.anchor_[1]&&this.anchor_[1]>0&&this.anchor_[1]<this.width_?r.push("width:"+(this.width_-this.anchor_[1])+"px; padding-left:"+this.anchor_[1]+"px;"):r.push("width:"+this.width_+"px;")):r.push("height:"+this.height_+"px; line-height:"+this.height_+"px; width:"+this.width_+"px; text-align: center;");var n=this.textColor_?this.textColor_:i,o=this.textSize_?this.textSize_:14;return r.push("cursor:pointer; top:"+e.y+"px; left:"+e.x+"px; color:"+n+"; position:absolute; font-size:"+o+"px; font-family:'Rethink-Sans-Medium', 'inKind', Arial, Helvetica, sans-serif; font-weight:bold"),r.join("")}}
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.