var module_183854900610=function(){var hsSearch=function(_instance){var func,wait,immediate,timeout,KEYS_TAB="Tab",KEYS_ESC="Esc",KEYS_ESCAPE="Escape",KEYS_UP="Up",KEYS_ARROW_UP="ArrowUp",KEYS_DOWN="Down",KEYS_ARROW_DOWN="ArrowDown",searchTerm="",searchForm=_instance,searchField=_instance.querySelector(".hs-search-field__input"),searchResults=_instance.querySelector(".hs-search-field__suggestions"),emptySearchResults=function(){searchResults.innerHTML="",searchField.focus(),searchForm.classList.remove("hs-search-field--open")},getSearchResults=function(){var request=new XMLHttpRequest,requestUrl="/_hcms/search?&term="+encodeURIComponent(searchTerm)+"&limit="+encodeURIComponent(3)+"&autocomplete=true&analytics=true&"+function(){for(var formParams=[],form=_instance.querySelector("form"),i=0;i=200&&request.status<400){var data=JSON.parse(request.responseText);data.total>0?((items=[]).push("
  • Results for \""+(response=data).searchTerm+'"
  • '),response.results.forEach((function(val,index){items.push("
  • "+val.title+"
  • ")})),emptySearchResults(),searchResults.innerHTML=items.join(""),searchForm.classList.add("hs-search-field--open"),trapFocus()):emptySearchResults()}else console.error("Server reached, error retrieving results.");var response,items},request.onerror=function(){console.error("Could not reach the server.")},request.send()},trapFocus=function(){var tabbable=[];tabbable.push(searchField);for(var tabbables=searchResults.getElementsByTagName("A"),i=0;i2?getSearchResults():0==searchTerm.length&&emptySearchResults()},wait=250,function(){var context=this,args=arguments,callNow=immediate&&!timeout;clearTimeout(timeout),timeout=setTimeout((function(){timeout=null,immediate||func.apply(context,args)}),wait||200),callNow&&func.apply(context,args)});searchField.addEventListener("input",(function(e){searchTerm!=searchField.value&&isSearchTermPresent()}))};if(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState){var searchResults=document.querySelectorAll(".hs-search-field");Array.prototype.forEach.call(searchResults,(function(el){hsSearch(el)}))}else document.addEventListener("DOMContentLoaded",(function(){var searchResults=document.querySelectorAll(".hs-search-field");Array.prototype.forEach.call(searchResults,(function(el){hsSearch(el)}))}));!function(){"use strict"; /** reframe.js - Reframe.js: responsive iframes for embedded content @version v3.0.2 @link https://github.com/yowainwright/reframe.ts#readme @author Jeff Wainwright (http://jeffry.in) @license MIT **/ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var t=function(){function e(e){var t=this;this.listener=function(e){(e.matches?t.matchFns:t.unmatchFns).forEach((function(e){e()}))},this.toggler=window.matchMedia(e),this.toggler.addListener(this.listener),this.matchFns=[],this.unmatchFns=[]}return e.prototype.add=function(e,t){this.matchFns.push(e),this.unmatchFns.push(t),(this.toggler.matches?e:t)()},e}(),n=function(e){return Array.prototype.slice.call(e)},$=function(e,t){return n((t||document).querySelectorAll(e))},s=navigator.userAgent.indexOf("MSIE")>-1||navigator.appVersion.indexOf("Trident/")>-1,o="mm-spn",i=function(){function e(e,t,n,i,a){this.node=e,this.title=t,this.slidingSubmenus=i,this.selectedClass=n,this.node.classList.add(o),s&&(this.slidingSubmenus=!1),this.node.classList.add("mm-spn--"+a),this.node.classList.add("mm-spn--"+(this.slidingSubmenus?"navbar":"vertical")),this._setSelectedl(),this._initAnchors()}return Object.defineProperty(e.prototype,"prefix",{get:function(){return o},enumerable:!1,configurable:!0}),e.prototype.openPanel=function(e){e.parentElement},e.prototype._setSelectedl=function(){var e=$("."+this.selectedClass,this.node),t=e[e.length-1],n=null;t&&(n=t.closest("ul")),n||(n=this.node.querySelector("ul")),this.openPanel(n)},e.prototype._initAnchors=function(){var e=this;this.node.addEventListener("click",(function(t){var s=t.target,o=!1;(o=(o=(o=o||function(e){return!!e.matches("a")}(s))||function(t){var s;return!!(s=t.closest("span")?t.parentElement:!!t.closest("li")&&t)&&(n(s.children).forEach((function(t){t.matches("ul")&&e.openPanel(t)})),!0)}(s))||function(t){var n=$(".mm-spn--open",t),s=n[n.length-1];if(s){var o=s.parentElement.closest("ul");if(o)return e.openPanel(o),!0}return!1}(s))&&t.stopImmediatePropagation()}))},e}(),r=function(){function e(e,t){var n=this;void 0===e&&(e=null),this.wrapper=document.createElement("div"),this.wrapper.classList.add("mm-ocd"),this.wrapper.classList.add("mm-ocd--"+t),this.content=document.createElement("div"),this.content.classList.add("mm-ocd__content"),this.wrapper.append(this.content),this.backdrop=document.createElement("div"),this.backdrop.classList.add("mm-ocd__backdrop"),this.wrapper.append(this.backdrop),document.body.append(this.wrapper),e&&this.content.append(e);var s=function(e){n.close(),e.stopImmediatePropagation()};this.backdrop.addEventListener("touchstart",s,{passive:!0}),this.backdrop.addEventListener("mousedown",s,{passive:!0})}return Object.defineProperty(e.prototype,"prefix",{get:function(){return"mm-ocd"},enumerable:!1,configurable:!0}),e.prototype.open=function(){this.wrapper.classList.add("mm-ocd--open"),document.body.classList.add("mm-ocd-opened")},e.prototype.close=function(){this.wrapper.classList.remove("mm-ocd--open"),document.body.classList.remove("mm-ocd-opened")},e}(),d=function(){function e(e,n){void 0===n&&(n="all"),this.menu=e,this.toggler=new t(n)}return e.prototype.navigation=function(e){var t=this;if(!this.navigator){var n=(e=e||{}).title,s=void 0===n?"Menu":n,o=e.selectedClass,a=void 0===o?"Selected":o,r=e.slidingSubmenus,d=void 0===r||r,c=e.theme,l=void 0===c?"light":c;this.navigator=new i(this.menu,s,a,d,l),this.toggler.add((function(){return t.menu.classList.add(t.navigator.prefix)}),(function(){return t.menu.classList.remove(t.navigator.prefix)}))}return this.navigator},e.prototype.offcanvas=function(e){var t=this;if(!this.drawer){var n=(e=e||{}).position,s=void 0===n?"left":n;this.drawer=new r(null,s);var o=document.createComment("original menu location");this.menu.after(o),this.toggler.add((function(){t.drawer.content.append(t.menu)}),(function(){t.drawer.close(),o.after(t.menu)}))}return this.drawer},e}(); /*! * Mmenu Light * mmenujs.com/mmenu-light * * Copyright (c) Fred Heusschen * www.frebsite.nl * * License: CC-BY-4.0 * http://creativecommons.org/licenses/by/4.0/ */window.MmenuLight=d,document.addEventListener("DOMContentLoaded",(()=>{const t=new d(document.querySelector(".search-block"),"(max-width: 1139px)");t?.navigation();t?.offcanvas();const i=document.querySelectorAll(".header-links-search"),a=document.querySelectorAll(".search-modal-close");i.forEach((e=>e.addEventListener("click",(function(){document.body.classList.add("search-modal-active"),document.onkeydown=function(e){let t=!1;t="key"in(e=e||window.event)?"Escape"===e.key||"Esc"===e.key:27===e.keyCode,t&&document.body.classList.remove("search-modal-active")}})))),a.forEach((e=>e.addEventListener("click",(()=>{document.body.classList.remove("search-modal-active")}))));const r=document.querySelector("[data-header-sticky] .header");if(r){const e=e=>{e>=r.offsetHeight?(r.classList.add("stuck"),document.body.dataset.headerOverlap||document.body.dataset.headerAlwaysSticky||(document.body.style.paddingTop=`${r.offsetHeight}px`)):(r.classList.remove("stuck"),document.body.dataset.headerOverlap||document.body.dataset.headerAlwaysSticky||(document.body.style.paddingTop=0))};let t=window.scrollY;e(t),window.addEventListener("scroll",(()=>{t=window.scrollY,e(t)}))}}))}()}(); //# sourceURL=https://23609470.fs1.hubspotusercontent-na1.net/hubfs/23609470/hub_generated/module_assets/1/183854900610/1740929060532/module_search_input_dns.js