1/*! For license information please see FloatingMap.fe6a54ffe9b57168099f.min.js.LICENSE.txt */ 2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[480],{842:function(t,e,n){n.r(e),n.d(e,{default:function(){return b}});var o=n(7154),i=n.n(o),r=n(4575),a=n.n(r),s=n(3913),l=n.n(s),u=n(1506),c=n.n(u),d=n(2205),f=n.n(d),p=n(8585),w=n.n(p),m=n(9754),h=n.n(m),v=n(9713),g=n.n(v),y=n(7317);function I(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return w()(this,n)}}var b=function(t){f()(n,t);var e=I(n);function n(t){var o,i=t.el,r=t.mapOptionOverrides,s=void 0===r?{}:r,l=t.mapElSelector,u=void 0===l?"[data-map]":l,d=t.listingSelector,f=void 0===d?"[data-map-listing]":d,p=t.listingImageSelector,w=void 0===p?"[data-map-listing-image]":p,m=t.padIndex,h=void 0!==m&&m;return a()(this,n),o=e.call(this,{el:i,mapOptionOverrides:s,mapElSelector:u,listingSelector:f}),g()(c()(o),"listingImageSelector",void 0),g()(c()(o),"watcher",void 0),g()(c()(o),"padIndex",void 0),o.listingImageSelector=w,o.padIndex=h,o.watcher=new y.Z,o.setUpMap(),o}return l()(n,[{key:"handleMapReady",value:function(t,e){var n=this;this.markers=e;var o=this.markers.length;o&&this.markers.forEach((function(t,e){var r=t.point.listingEl;if(r.marker=t,r&&r.hasAttribute("data-has-location")){r.marker=t;var a=r.getAttribute("data-map-listing");n.padIndex&&(a=a.padStart(2,"0"));var s=r.getAttribute("data-color"),l=r.getAttribute("data-hover-color");n.setUpMarkerIconAndLabel(t,s,a);var u=t.getIcon();t.customDefaultIcon=u;var c=i()({},u);c.fillColor=l,t.customHoverIcon=c,t.customZIndex=o-e,t.setZIndex(t.customZIndex),t.addListener("mousedown",(function(){r.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}),n.basicMapInstance.updateMapBounds(),n.basicMapInstance.centerMap()}))}else t.setVisible(!1)})),this.listingEls.length&&(this.listingEls.forEach((function(t){var e,o=null!==(e=null==t?void 0:t.marker)&&void 0!==e?e:null,i=t.querySelector("[data-map-listing-icon]"),r=t.getAttribute("data-color"),a=t.getAttribute("data-hover-color");i&&n.watcher.watch(i).on("exit",(function(){o&&(i.style.backgroundColor=r,i.style.opacity="0.5",o.setIcon(o.customDefaultIcon),o.setOpacity(.5),o.setZIndex(o.customZIndex))})).on("exit:partial",(function(){o&&(i.style.backgroundColor=r,i.style.opacity="0.75",o.setIcon(o.customDefaultIcon),o.setOpacity(.75),o.setZIndex(o.customZIndex))})).on("enter",(function(){o&&(i.style.backgroundColor=r,i.style.opacity="0.75",o.setIcon(o.customDefaultIcon),o.setOpacity(.75),o.setZIndex(o.customZIndex+700))})).on("enter:full",(function(){o&&(i.style.backgroundColor=a,i.style.opacity="1",o.setIcon(o.customHoverIcon),o.setOpacity(1),o.setZIndex(o.setZIndex(o.customZIndex)+1e3))})).update()})),this.listenerBoss.register(window,"resize",(function(){n.basicMapInstance.updateMapBounds()})))}}]),n}(n(4579).Z)},7317:function(t,e){var n,o;n=void 0,o=function(){var t="page:load",e="scrolling",n="enter",o="enter:full",i="exit:partial",r="exit",a={top:0,bottom:0};function s(t,e){if(void 0===e&&(e="Assertion failed"),!t){if("undefined"!=typeof Error)throw new Error(e);throw e}}function l(t){return{isInViewport:t.isInViewport,isFullyInViewport:t.isFullyInViewport,isAboveViewport:t.isAboveViewport,isBelowViewport:t.isBelowViewport,isPartialOut:t.isPartialOut,isFullyOut:t.isFullyOut}}function u(t,e){t.isInViewport&&!t.wasInViewport&&(t.wasInViewport=!0,t.wasFullyOut=!1,t.emitter.emit(n,e)),t.isPartialOut&&!t.wasPartialOut&&(t.wasPartialOut=!0,t.wasFullyInViewport=!1,t.emitter.emit(i,e)),t.isFullyOut&&!t.wasFullyOut&&(t.wasFullyOut=!0,t.wasInViewport=!1,t.wasFullyInViewport=!1,t.emitter.emit(r,e)),t.isFullyInViewport&&!t.wasFullyInViewport&&(t.wasFullyInViewport=!0,t.wasPartialOut=!1,t.wasFullyOut=!1,t.emitter.emit(o,e))}function c(){return[window.pageXOffset||document.documentElement&&document.documentElement.scrollLeft||document.body.scrollLeft,window.pageYOffset||document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop]}function d(){return{w:window.innerWidth||document.documentElement.clientWidth,h:window.innerHeight||document.documentElement.clientHeight}}function f(t){var e=t.getBoundingClientRect(),n=document.documentElement,o=e.left+window.pageXOffset-n.clientLeft,i=e.top+window.pageYOffset-n.clientTop,r=t.offsetWidth,a=t.offsetHeight;return{width:r,height:a,top:i,bottom:i+a,right:o+r,left:o}}function p(t){return"HTMLElement"in window?!!t&&t instanceof HTMLElement:!!t&&"object"==typeof t&&1===t.nodeType&&!!t.nodeName}function w(t){return void 0===t&&(t=new Map),{all:t,on:function(e,n){var o=t.get(e);o&&o.push(n)||t.set(e,[n])},off:function(e,n){var o=t.get(e);o&&o.splice(o.indexOf(n),1)},emit:function(e,n){(t.get(e)||[]).slice().map((function(t){return t(n)})),(t.get("*")||[]).slice().map((function(t){return t(e,n)}))}}}function m(){var n={counter:0,requestAnimationId:null,lastXY:[],watching:{},viewport:d(),props:null},o=new w;function i(){var t=c(),e=t[1]>n.lastXY[1];return n.lastXY=t,{scrollX:t[0],scrollY:t[1],scrollingDown:e,scrollingUp:!e}}function r(t){var e=t.dimensions.top+t.offset.top,o=t.dimensions.top+t.offset.bottom+t.dimensions.height,i=n.lastXY[1],r=n.lastXY[1]+n.viewport.h;t.isAboveViewport=e<i,t.isBelowViewport=o>r,t.isInViewport=e<=r&&o>i,t.isFullyInViewport=e>=i&&o<=r||t.isAboveViewport&&t.isBelowViewport,t.isFullyOut=!t.isInViewport&&t.wasInViewport,t.isPartialOut=t.wasFullyInViewport&&!t.isFullyInViewport&&!t.isFullyOut}function m(){var t=function(){if(n.lastXY.join()!==c().join()){var a=i();o.emit(e,a),Object.keys(n.watching).forEach((function(t){a.target=n.watching[t].node,r(n.watching[t]),u(n.watching[t],a)}))}window.requestAnimationFrame(t)};return window.requestAnimationFrame(t)}return{initialize:function(){m();var e=function(){if("undefined"!=typeof document)switch(document.readyState){case"loading":case"interactive":break;case"complete":o.emit(t,{scrollX:n.lastXY[0],scrollY:n.lastXY[1]}),document.removeEventListener("readystatechange",e)}};document.addEventListener("readystatechange",e,!1),window.addEventListener("resize",(function(){n.viewport=d()}),!1)},watch:function(t,e){var o=p(t)?t:document.querySelector(t);s(p(o),"Couldn't find target in DOM"),s("number"==typeof e||"object"==typeof e||void 0===e,"@param `initOffset` should be number or Object or undefined!");var c,d="number"==typeof e?{top:e,bottom:e}:Object.assign(a,e),h=new w,v={node:o,offset:d,dimensions:f(o),emitter:h};return n.counter+=1,n.watching[n.counter]=v,(c=v).isInViewport=!1,c.wasInViewport=!1,c.isAboveViewport=!1,c.wasAboveViewport=!1,c.isBelowViewport=!1,c.wasBelowViewport=!1,c.isPartialOut=!1,c.wasPartialOut=!1,c.isFullyOut=!1,c.wasFullyOut=!1,c.isFullyInViewport=!1,c.wasFullyInViewport=!1,{target:o,props:l(v),update:function(){var t=i();return t.target=v.node,window.cancelAnimationFrame(n.requestAnimationId),function(t){t.isInViewport=!1,t.isAboveViewport=!1,t.isBelowViewport=!1,t.isPartialOut=!1,t.isFullyOut=!1,t.isFullyInViewport=!1}(v),v.dimensions=f(o),r(v),n.props=l(v),u(v,t),m(),this},once:function(t,e){var n=function(o){e(o),h.off(t,n)};return h.on(t,n),this},on:function(t,e){return h.on(t,e),this},off:function(t,e){return h.off(t,e),this}}},emitter:o,windowAtBottom:function(t){void 0===t&&(t=0);var e=n.lastXY[1],o=n.viewport.h;
2return t=Number.parseInt(t,10),e+o>=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight)-t},windowAtTop:function(t){return void 0===t&&(t=0),t=Number.parseInt(t,10),n.lastXY[1]<=t}}}return function(){var t=m(),e=t.initialize,n=t.watch,o=t.windowAtBottom,i=t.windowAtTop,r=t.emitter;return e(),{watch:n,on:r.on,off:r.off,emit:r.emit,windowAtBottom:o,windowAtTop:i}}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(n="undefined"!=typeof globalThis?globalThis:n||self).ScrollWatcher=o(),e.Z=ScrollWatcher}}]);
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.