1 2(()=>{"use strict";const e='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])',t={duration:.3,easing:"ease-in-out"},i="function"==typeof Element.prototype.getAnimations,s={_defaults:t,fadeIn:{keyframes:[{opacity:0},{opacity:1}]},fadeOut:{keyframes:[{opacity:1},{opacity:0}]},fadeInUp:{keyframes:[{opacity:0,transform:"translateY(1rem)"},{opacity:1,transform:"translateY(0rem)"}]},fadeOutUp:{keyframes:[{opacity:1,transform:"translateY(0rem)"},{opacity:0,transform:"translateY(-1rem)"}]},fadeInDown:{keyframes:[{opacity:0,transform:"translateY(-1rem)"},{opacity:1,transform:"translateY(0rem)"}]},fadeOutDown:{keyframes:[{opacity:1,transform:"translateY(0rem)"},{opacity:0,transform:"translateY(1rem)"}]},fadeInRight:{keyframes:[{opacity:0,transform:"translateX(-1rem)"},{opacity:1,transform:"translateX(0rem)"}]},fadeOutRight:{keyframes:[{opacity:1,transform:"translateX(0rem)"},{opacity:0,transform:"translateX(1rem)"}]},fadeInLeft:{keyframes:[{opacity:0,transform:"translateX(1rem)"},{opacity:1,transform:"translateX(0rem)"}]},fadeOutLeft:{keyframes:[{opacity:1,transform:"translateX(0rem)"},{opacity:0,transform:"translateX(-1rem)"}]},slideInUp:{keyframes:[{transform:"translateY(1rem)"},{transform:"translateY(0rem)"}]},slideOutUp:{keyframes:[{transform:"translateY(0rem)"},{transform:"translateY(-1rem)"}]},slideInDown:{keyframes:[{transform:"translateY(-1rem)"},{transform:"translateY(0rem)"}]},slideOutDown:{keyframes:[{transform:"translateY(0rem)"},{transform:"translateY(1rem)"}]},slideInRight:{keyframes:[{transform:"translateX(-1rem)"},{transform:"translateX(0rem)"}]},slideOutRight:{keyframes:[{transform:"translateX(0rem)"},{transform:"translateX(1rem)"}]},slideInLeft:{keyframes:[{transform:"translateX(1rem)"},{transform:"translateX(0rem)"}]},slideOutLeft:{keyframes:[{transform:"translateX(0rem)"},{transform:"translateX(-1rem)"}]},scaleIn:{keyframes:[{opacity:0,transform:"scale(0.9)"},{opacity:1,transform:"scale(1)"}]},scaleOut:{keyframes:[{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(0.9)"}]}},n=(e,t)=>{let i;return(...s)=>{clearTimeout(i),i=setTimeout((()=>e(...s)),t)}};let o=null;const a=new WeakMap,r=e=>{if(a.has(e))return a.get(e);const t=e.dataset.gbOverlayAnimationTarget;let i;return t&&(i=e.querySelector(t)),i=i||e.querySelector(".gb-overlay__content")||e,a.set(e,i),i},l=()=>!!window.matchMedia("(hover: none)").matches||!!window.matchMedia("(pointer: coarse)").matches;function c(e,t){const i=parseInt(e,10);return Number.isFinite(i)?i:t}class h{constructor(e){this.element=e,this.state=d,this.id=e.id,this.backdrop=e.querySelector(".gb-overlay__backdrop"),this.content=e.querySelector(".gb-overlay__content"),this._triggers=null,this.closeButtons=e.querySelectorAll("[data-gb-overlay-close]"),this.config={defaultOverlayType:e.dataset.gbOverlayType||"standard",overlayTriggerType:e.dataset.gbOverlayTriggerType||"click",cookieDuration:c(e.dataset.gbOverlayCookieDuration,-1),hoverBuffer:c(e.dataset.gbOverlayHoverBuffer,20),scrollPercent:c(e.dataset.gbOverlayScrollPercent,50),timeDelay:c(e.dataset.gbOverlayTimeDelay,5e3),closeOnEsc:"false"!==e.dataset.gbOverlayCloseOnEsc,closeOnClickOutside:"false"!==e.dataset.gbOverlayCloseOnClickOutside,disablePageScroll:"true"===e.dataset.gbOverlayDisablePageScroll,position:e.dataset.gbOverlayPosition||"center",customEventName:e.dataset.gbOverlayCustomEvent||"",hideIfCookiesDisabled:"true"===e.dataset.gbOverlayHideIfCookiesDisabled},this.hasTriggered=!1,this.isAnimating=!1,this.lastFocusedElement=null,this.previousBodyOverflow=null,this.state.setInstance(e,this),this.addCloseMethodToElement(),this.init()}addCloseMethodToElement(){this.element.gbOverlayClose=()=>this.hide()}init(){this.setupTriggerAriaAttributes(),this.setupBackdropHandlers(),this.setupNonInteractiveTriggers()}get triggers(){return this._triggers||(this._triggers=this.id?document.querySelectorAll(`[data-gb-overlay="${this.id}"]`):[]),this._triggers}
2setupTriggerAriaAttributes(){this.triggers.forEach((e=>{this.id&&e.setAttribute("aria-controls",this.id);const t=this.element.getAttribute("role");let i;i="menu"===t?"menu":"tooltip"===t?"tooltip":"dialog",e.setAttribute("aria-haspopup",i),e.setAttribute("aria-expanded","false")}))}setupBackdropHandlers(){this.backdrop&&this.backdrop.addEventListener("click",(e=>{if(e.target===this.backdrop){const e=this.state.get(this.element);"standard"===e?.activeOverlayDisplayType&&this.config.closeOnClickOutside&&this.hide()}}))}handleTriggerActivation(e,t,i){const s=t.dataset.gbOverlayType||this.config.defaultOverlayType,n=i||this.isKeyboardActivation(e),o=this.state.get(this.element);this.isVisible(s)&&o?.activeTrigger===t?this.hide():this.show(n,t)}handleTriggerMouseEnter(e){const t=e.dataset.gbOverlayType||this.config.defaultOverlayType;this.state.get(this.element)?.isAnimatingOut||this.isAnimating||(clearTimeout(e.gbHoverTimeoutId),this.isVisible(t)||this.show(!1,e))}handleTriggerMouseLeave(e){const t=this.state.get(this.element),i=t?.listeners;i?.hoverIntentCleanup?this.createHoverIntentDetector(e).onOverlayLeave():this.hide(!0,e)}isBlockedByCookie(){return!(!this.id||0>this.config.cookieDuration||(!this.config.hideIfCookiesDisabled||(()=>{if(null!==o)return o;try{document.cookie="gb_cookie_test=1; path=/; SameSite=Lax";const e=document.cookie.includes("gb_cookie_test=1");return e&&(document.cookie="gb_cookie_test=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; SameSite=Lax"),o=e,e}catch(e){return o=!1,!1}})())&&"true"!==(()=>{const e=`gb_overlay_closed_${this.id}`.replace(/[;,\s=]/g,"");if(!e)return null;const t=`${e}=`,i=document.cookie.split(";");for(let e of i)if(e=e.trim(),e.startsWith(t))return e.substring(t.length);return null})())}setClosedCookie(){this.id&&0<=this.config.cookieDuration&&((e,t,i)=>{if(0>i)return;const s=e.replace(/[;,\s=]/g,""),n="true".replace(/[;,]/g,"");if(!s||!n)return;const o="https:"===window.location.protocol?"; Secure":"";if(0===i)return void(document.cookie=`${s}=${n}; path=/; SameSite=Lax${o}`);const a=new Date;a.setTime(a.getTime()+60*i*60*1e3);const r=`; expires=${a.toUTCString()}`;document.cookie=`${s}=${n}${r}; path=/; SameSite=Lax${o}`})(`gb_overlay_closed_${this.id}`,0,this.config.cookieDuration)}isVisible(e){const t=this.state.get(this.element),i=t?t.activeOverlayDisplayType:e,s=this.element.classList.contains(`gb-overlay--${i}`);return"none"!==this.element.style.display&&""!==this.element.style.display&&s}getAnimationSettings(e){const i=this.element.dataset[e?"gbOverlayAnimationIn":"gbOverlayAnimationOut"];if(!i||!s[i])return null;const n=r(this.element);if(n&&n.closest(".gb-menu-container--mobile"))return null;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return{element:n,keyframes:[{opacity:0},{opacity:1}],options:{duration:0,fill:"forwards"},backdropKeyframes:[{opacity:0},{opacity:1}]};const o=c(this.element.dataset.gbOverlayAnimationDuration,1e3*t.duration),a=this.element.dataset.gbOverlayAnimationDistance||"1rem",l=JSON.parse(JSON.stringify(s[i].keyframes));return l.forEach((e=>{e.transform&&(e.transform=e.transform.replace(/1rem/g,a))})),{element:n,keyframes:l,options:{duration:o,easing:t.easing,fill:"forwards"},backdropKeyframes:e?[{opacity:0},{opacity:1}]:[{opacity:1},{opacity:0}]}}announceOverlayOpen(){const e=document.createElement("div");e.setAttribute("aria-live","polite"),e.setAttribute("role","status"),e.className="gb-overlay__live-region",e.textContent=`Overlay ${this.element.getAttribute("aria-label")||this.id||""} opened`,this.element.appendChild(e),setTimeout((()=>e.remove()),1e3)}async show(e=!1,t=null){if(!this.isAnimating&&!this.isBlockedByCookie())try{return await this.performShow(e,t)}catch(e){this.handleShowError(e,t)}}async performShow(e=!1,t=null){const s=t&&t.dataset.gbOverlayType||this.config.defaultOverlayType,n=this.state.get(this.element);if(this.isVisible(s)&&n&&!n.isAnimatingOut&&n.activeTrigger===t)return;if("standard"===s){const e=["click","hover","both"].includes(this.config.overlayTriggerType);if(this.state.hasOpenStandardOverlay()){if(!e)return void this.state.addToQueue(this);for(const[e]of this.state.activeOverlays)if(e!==this.element){const t=this.state.get(e);if(t&&"standard"===t.activeOverlayDisplayType){const t=this.state.getInstance(e);t&&await t.performHide()}}}}else if("anchored"===s)for(const[e]of this.state.activeOverlays)if(e!==this.element){const i=this.state.get(e);if(i&&"anchored"===i.activeOverlayDisplayType&&(!t||!e.contains(t))){const t=this.state.getInstance(e);t&&t.completeHiding(null)}}this.isAnimating=!0,this.dispatchOverlayEvent("gbOverlayOpening",t),this.lastFocusedElement||(this.lastFocusedElement=document.activeElement),this.state.clearListeners(this.element);const o={},a="anchored"===s;if(this.state.set(this.element,{listeners:o,activeTrigger:t,activeOverlayDisplayType:s,isAnimatingOut:!1,positionCleanupRef:null,wasOpenedByKeyboard:e}),this.updateTriggerAriaExpanded(t,!0),this.element.classList.remove("gb-overlay--standard","gb-overlay--anchored"),this.element.classList.add(`gb-overlay--${s}`),"standard"===s&&this.config.position&&"center"!==this.config.position&&this.element.classList.add(`gb-overlay--${this.config.position}`),"standard"===s&&this.config.disablePageScroll){this.previousBodyOverflow=document.body.style.overflow;const e=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",0<e&&(document.body.style.paddingRight=`${e}px`)}const r=this.getAnimationSettings(!0);if(r?.element){const{element:e,keyframes:t}=r;var l;
2i&&e.getAnimations().forEach((e=>e.cancel())),"1"!==e.style.opacity&&(e.style.opacity="1"),"none"!==e.style.transform&&""!==e.style.transform&&(e.style.transform="none"),void 0!==t[0].opacity&&(e.style.opacity=t[0].opacity),void 0!==t[0].transform&&(e.style.transform=t[0].transform),this.backdrop&&(this.backdrop.style.opacity=null!==(l=r.backdropKeyframes[0].opacity)&&void 0!==l?l:"0")}this.element.style.display=a?"block":"flex",this.element.setAttribute("aria-hidden","false"),this.element.removeAttribute("inert"),this.announceOverlayOpen(),e&&this.setInitialFocus(),a&&this.setupPositioning(t,o),r&&await this.runAnimations(r),this.setupEventListeners(o,s),this.isAnimating=!1,this.dispatchOverlayEvent("gbOverlayOpened",t)}setInitialFocus(){const t=this.element.querySelectorAll(e);0<t.length?t[0].focus({preventScroll:!0}):this.element.hasAttribute("tabindex")&&"-1"!==this.element.getAttribute("tabindex")&&this.element.focus({preventScroll:!0})}calculateOverlayPosition(e){const{referenceRect:t,overlayRect:i,placement:s="bottom-start",isFullWidth:n=!1,viewport:o={width:window.innerWidth,height:window.innerHeight},coordinateSystem:a="viewport",containerRect:r=null}=e,[l]=s.split("-");let c=0,h=0,d=s;switch(s){case"bottom-start":default:c=t.left,h=t.bottom;break;case"bottom":c=t.left+t.width/2-i.width/2,h=t.bottom;break;case"bottom-end":c=t.right-i.width,h=t.bottom;break;case"top-start":c=t.left,h=t.top-i.height;break;case"top":c=t.left+t.width/2-i.width/2,h=t.top-i.height;break;case"top-end":c=t.right-i.width,h=t.top-i.height;break;case"right":c=t.right,h=t.top+t.height/2-i.height/2;break;case"left":c=t.left-i.width,h=t.top+t.height/2-i.height/2}"relative"===a&&r&&(c-=r.left,h-=r.top,n&&("top"===l||"bottom"===l||s.startsWith("top")||s.startsWith("bottom"))&&(c=-r.left));const m="relative"===a&&r?r.left+c:c,u="relative"===a&&r?r.top+h:h;if(s.startsWith("bottom")&&u+i.height>o.height){const e="relative"===a&&r?r.top:t.top,n="relative"===a&&r?r.bottom:t.bottom,l=e,c=o.height-n;(e-i.height>=0||l>c)&&(h="relative"===a&&r?-i.height:t.top-i.height,d=s.replace("bottom","top"))}else if(s.startsWith("top")&&u<0){const e="relative"===a&&r?r.bottom:t.bottom,n="relative"===a&&r?r.top:t.top,l=o.height-e,c=n;(e+i.height<=o.height||l>c)&&(h="relative"===a&&r?r.height:t.bottom,d=s.replace("top","bottom"))}else"left"===s&&m<0?("relative"===a&&r?r.right:t.right)+i.width<o.width&&(c="relative"===a&&r?r.width:t.right,d="right"):"right"===s&&m+i.width>o.width&&("relative"===a&&r?r.left:t.left)-i.width>0&&(c="relative"===a&&r?-i.width:t.left-i.width,d="left");const g="relative"===a&&r?r.left+c:c;if(n||(i.width>o.width?c="relative"===a&&r?(o.width-i.width)/2-r.left:(o.width-i.width)/2:(g+i.width>o.width&&(c="relative"===a&&r?o.width-i.width-r.left:o.width-i.width),g<0&&(c="relative"===a&&r?-r.left:0))),"left"===d||"right"===d){const e="relative"===a&&r?r.top+h:h;e+i.height>o.height&&(h="relative"===a&&r?o.height-i.height-r.top:o.height-i.height),e<0&&(h="relative"===a&&r?-r.top:0)}return{x:c,y:h,finalPlacement:d}}setupPositioning(e,t){let i=e||this.element;const s=e?.dataset.gbPositionToParent,n=this.element.dataset.gbOverlayPositionToParent,o=s||n;if(o?i=e.closest(o)||i:e?.classList.contains("gb-submenu-toggle")&&e.parentElement&&(i=e.parentElement),this.element.closest(".menu-item-has-gb-mega-menu"))return this.setupMegaMenuPositioning(e,o,t),this.setupFocusTracking(e,t),void this.setupHoverHandling(e,t);let a=null,r=null;const l=()=>{const e=i.getBoundingClientRect(),t=this.element.style.position,s=this.element.style.left,n=this.element.style.top,o=this.element.style.transform;this.element.style.position="fixed",this.element.style.left="0px",this.element.style.top="-100vh",this.element.style.transform="none",this.element.offsetHeight;const a=this.element.getBoundingClientRect();this.element.style.position=t,this.element.style.left=s,this.element.style.top=n,this.element.style.transform=o;const r=this.element.dataset.gbOverlayPlacement||"bottom-start";return this.calculateOverlayPosition({referenceRect:e,overlayRect:a,placement:r,isFullWidth:!1,coordinateSystem:"viewport"})},c=()=>{const{x:e,y:t}=l();e===a&&t===r||(this.element.style.position="fixed",this.element.style.left=`${e}px`,this.element.style.top=`${t}px`,this.element.style.transform="none",this.element.style.zIndex="9999",this.element.classList.add("gb-overlay--positioned"),a=e,r=t)};this.element.offsetHeight,c();let h=!1;const d=()=>{h||(requestAnimationFrame((()=>{c(),h=!1}
2)),h=!0)};window.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",d,{passive:!0}),t.optimizedHandler=d,this.setupFocusTracking(e,t),this.setupHoverHandling(e,t)}setupHoverHandling(e,t){if(this.content){const i=e?.dataset.gbOverlayTriggerType||this.config.overlayTriggerType;if("hover"===i||"both"===i){const i=this.createHoverIntentDetector(e),s=()=>{if(l())return;const t=this.state.get(this.element);t?.activeTrigger===e&&(clearTimeout(e.gbHoverTimeoutId),i.onOverlayEnter())},n=()=>{if(l())return;const t=this.state.get(this.element);t?.activeTrigger===e&&i.onOverlayLeave()};this.content.addEventListener("mouseenter",s),this.content.addEventListener("mouseleave",n),t.overlayMouseEnter=s,t.overlayMouseLeave=n,t.hoverIntentCleanup=()=>i.cleanup()}}}setupFocusTracking(t,i){i.focusOut=n((()=>{const e=document.activeElement,t=this.state.get(this.element);if(!t||!this.isVisible(t.activeOverlayDisplayType))return;const i=this.element===e||this.element.contains(e),s=t.activeTrigger===e||t.activeTrigger?.contains(e);i||s||this.hide()}),10),document.addEventListener("focusin",i.focusOut,!0);const s=this.element.querySelectorAll(e);if(0<s.length){const e=s[0],t=s[s.length-1];i.anchoredOverlayTab=i=>{if("Tab"===i.key){const s=this.state.get(this.element);i.shiftKey&&document.activeElement===e?(i.preventDefault(),s&&(s.wasClosedByKeyboard=!0),this.hide()):i.shiftKey||document.activeElement!==t||(i.preventDefault(),s&&(s.wasClosedByKeyboard=!0),this.hide())}},this.element.addEventListener("keydown",i.anchoredOverlayTab),i.documentTab=e=>{if("Tab"!==e.key)return;const t=this.state.get(this.element);t&&this.isVisible(t.activeOverlayDisplayType)&&setTimeout((()=>{const e=document.activeElement,i=this.element===e||this.element.contains(e),s=t.activeTrigger===e||t.activeTrigger?.contains(e);i||s||(t&&(t.wasClosedByKeyboard=!0),this.hide())}),0)},document.addEventListener("keydown",i.documentTab)}}setupMegaMenuPositioning(e,t,i){const s=this.element.closest(".menu-item-has-gb-mega-menu");if(!s)return;if(this.element.closest(".gb-menu-container--mobile"))return void this.element.classList.add("gb-overlay--positioned");this.element.style.position="absolute",this.element.style.left="0",this.element.style.top="0",this.element.style.zIndex="9999";let n=null;const o=()=>{const i=this.element.getBoundingClientRect();let o=s;if(t){const i=e.closest(t);i&&(o=i)}const a=s.getBoundingClientRect(),r=o.getBoundingClientRect(),l=this.element.dataset.gbOverlayPlacement||"bottom-start",c=this.element.classList.contains("gb-overlay--width-full"),{x:h,y:d,finalPlacement:m}=this.calculateOverlayPosition({referenceRect:r,overlayRect:i,placement:l,isFullWidth:c,coordinateSystem:"viewport"}),u=h-a.left,g=d-a.top,y=Math.round(u);let v=Math.round(g);m&&m.startsWith("bottom")&&(v=Math.floor(g)),m&&m.startsWith("top")&&(v=Math.ceil(g));const f=`translate(${y}px, ${v}px)`;f!==n&&(this.element.style.transform=f,n=f,this.element.dataset.gbOverlayFinalPlacement!==m&&(this.element.dataset.gbOverlayFinalPlacement=m)),this.element.classList.add("gb-overlay--positioned")};if(requestAnimationFrame((()=>{o()})),i){let e=!1;const t=()=>{e||(requestAnimationFrame((()=>{this.isVisible("anchored")&&o(),e=!1})),e=!0)};window.addEventListener("resize",t,{passive:!0}),i.efficientResizeHandler=t}}async runAnimations(e){try{const t=[],i=e.element.animate(e.keyframes,e.options);t.push(i),this.backdrop&&t.push(this.backdrop.animate(e.backdropKeyframes,e.options)),await Promise.all(t.map((e=>e.finished))),this._lastAnimation=i}catch(e){}}setupEventListeners(e,t){const i=this.state.get(this.element);if(e.overlayFocusTrap=this.createFocusTrap(t,i?.wasOpenedByKeyboard),this.config.closeOnEsc||"anchored"===t){const i=e=>{"Escape"===e.key&&this.isVisible(t)&&this.hide()};document.addEventListener("keydown",i),e.escape=i}(this.config.closeOnClickOutside||"anchored"===t)&&setTimeout((()=>{const i=e=>{const i=this.element.closest(".gb-menu-container--mobile");if(!this.isVisible(t)||i)return;const s=this.state.get(this.element);s?.activeTrigger?.contains(e.target)||("anchored"!==t?"standard"===t&&this.config.closeOnClickOutside&&(this.backdrop||
2(this.content&&!this.content.contains(e.target)?this.hide():this.content||this.element.contains(e.target)||this.hide())):this.element.contains(e.target)||e.target.closest("[data-gb-overlay]")||this.hide())};document.addEventListener("mousedown",i,!0),e.clickOutside=i}),100)}createFocusTrap(t,i=!1){const s=this.element.querySelectorAll(e),n="standard"===t;if(!s.length)return i&&this.element.hasAttribute("tabindex")&&"-1"!==this.element.getAttribute("tabindex")&&this.element.focus({preventScroll:!0}),null;const o=s[0],a=s[s.length-1];o.focus&&n&&i&&o.focus({preventScroll:!0});const r=e=>{if("Tab"===e.key)return this.element.contains(document.activeElement)?void(e.shiftKey&&document.activeElement===o?(e.preventDefault(),a.focus()):e.shiftKey||document.activeElement!==a||(e.preventDefault(),o.focus())):(e.preventDefault(),void(e.shiftKey?a.focus():o.focus()))};return n?(document.addEventListener("keydown",r),r):null}async hide(e=!1,t=null){if(t&&clearTimeout(t.gbHoverTimeoutId),!e||!t)return this.performHide();{const e=this.state.get(this.element);this.element.matches(":hover")||t.matches(":hover")||e&&e.activeTrigger!==t||this.performHide()}}async performHide(){const e=this.state.get(this.element);if(!this.isVisible(e?.activeOverlayDisplayType||this.config.defaultOverlayType)||e?.isAnimatingOut)return;if(this.isAnimating){const t=()=>{this.isAnimating?requestAnimationFrame(t):this.isVisible(e?.activeOverlayDisplayType||this.config.defaultOverlayType)&&this.performHide()};return void requestAnimationFrame(t)}this.isAnimating=!0,this.state.set(this.element,{...e,isAnimatingOut:!0});const t=this.getAnimationSettings(!1);t&&await this.runAnimations(t),this.completeHiding(t),this.isAnimating=!1}updateTriggerAriaExpanded(e,t){e&&e.setAttribute("aria-expanded",t?"true":"false")}pauseAllMedia(){const e=this.element.innerHTML;if(!(e.includes("<video")||e.includes("<audio")||e.includes("<iframe")))return;const t=this.element.querySelectorAll("video, audio");Array.from(t).some((e=>!e.paused))&&t.forEach((e=>{e.paused||e.pause()}));const i=this.element.querySelectorAll("iframe");if(0===i.length)return;const s=["youtube.com","youtu.be","vimeo.com","soundcloud.com","spotify.com","dailymotion.com","twitch.tv","wistia.com","vidyard.com","loom.com","tiktok.com"];i.forEach((e=>{const t=e.src||"";if(!s.some((e=>t.includes(e))))return;const i=e.parentNode;if(!i)return;const n=e.cloneNode(!0);i.replaceChild(n,e)}))}completeHiding(e){const t=this.state.get(this.element),s=t?t.activeTrigger:null,n=!!t&&t.wasOpenedByKeyboard,o=!!t&&t.wasClosedByKeyboard,a=t?.activeOverlayDisplayType||this.config.defaultOverlayType;this.pauseAllMedia(),this.dispatchOverlayEvent("gbOverlayClosed",s),n&&s||"anchored"===a&&o&&s?s.focus():this.lastFocusedElement&&document.contains(this.lastFocusedElement)&&this.lastFocusedElement.focus(),this.lastFocusedElement=null,this.element.setAttribute("aria-hidden","true"),this.element.setAttribute("inert",""),this.updateTriggerAriaExpanded(t?.activeTrigger,!1),"standard"===a&&this.config.disablePageScroll&&(null!==this.previousBodyOverflow?(document.body.style.overflow=this.previousBodyOverflow,this.previousBodyOverflow=null):document.body.style.overflow="",document.body.style.paddingRight="");const l=e?.element||r(this.element);if(this._lastAnimation&&"function"==typeof this._lastAnimation.cancel&&(this._lastAnimation.cancel(),this._lastAnimation=null),i&&l.getAnimations().forEach((e=>e.cancel())),"1"!==l.style.opacity&&(l.style.opacity="1"),"none"!==l.style.transform&&""!==l.style.transform&&(l.style.transform="none"),this.backdrop&&(this.backdrop.style.opacity=""),this.element.style.display="none","standard"===a&&this.config.position&&"center"!==this.config.position&&this.element.classList.remove(`gb-overlay--${this.config.position}`),"anchored"===a&&(this.element.classList.remove("gb-overlay--positioned"),this.element.closest(".menu-item-has-gb-mega-menu")&&(this.element.style.position="",this.element.style.left="",this.element.style.top="",this.element.style.transform="",this.element.style.zIndex="")),0<=this.config.cookieDuration&&this.setClosedCookie(),this.state.clearListeners(this.element),"custom"===this.config.overlayTriggerType&&this.config.customEventName){const e={};e.customEvent=()=>{this.isVisible(this.config.defaultOverlayType)||this.show(!1)},document.addEventListener(this.config.customEventName,e.customEvent),this.state.set(this.element,{listeners:e})}"standard"===a&&this.state.processQueue()}setupNonInteractiveTriggers(){if(this.isBlockedByCookie()||"standard"!==this.config.defaultOverlayType)return;const e={},t=this.state.get(this.element)||{};"exit-intent"===this.config.overlayTriggerType?(e.exitIntent=n((e=>{this.hasTriggered||this.isVisible(this.config.defaultOverlayType)||8<e.clientY||(this.hasTriggered=!0,this.show(!1))}),100),document.addEventListener("mousemove",e.exitIntent)):"scroll"===this.config.overlayTriggerType?(e.scroll=n((()=>{this.hasTriggered||this.isVisible(this.config.defaultOverlayType)||(window.scrollY+window.innerHeight)/document.documentElement.scrollHeight*100>=this.config.scrollPercent&&(this.hasTriggered=!0,this.show(!1),window.removeEventListener("scroll",e.scroll))}),100),window.addEventListener("scroll",e.scroll,{passive:!0})):"time"===this.config.overlayTriggerType?e.timer=setTimeout((()=>{this.hasTriggered||this.isVisible(this.config.defaultOverlayType)||(this.hasTriggered=!0,this.show(!1))}),this.config.timeDelay):"custom"===this.config.overlayTriggerType&&this.config.customEventName&&(e.customEvent=()=>{this.hasTriggered||this.isVisible(this.config.defaultOverlayType)||this.show(!1)},document.addEventListener(this.config.customEventName,e.customEvent)),0<Object.keys(e).length&&this.state.set(this.element,{...t,listeners:e})}createHoverIntentDetector(e){let t=null;return{onOverlayEnter:()=>{clearTimeout(e.gbHoverTimeoutId),t&&(document.removeEventListener("mousemove",t),t=null)},onOverlayLeave:()=>{const i=this.config.hoverBuffer;let s=this.element.getBoundingClientRect(),n=e.getBoundingClientRect(),o=!1;t=a=>{const r=document.elementFromPoint(a.clientX,a.clientY),l=r?.closest(".gb-menu-item");if(l&&!l.contains(e)){const i=l.querySelector("[data-gb-overlay]"),s=l.classList.contains("menu-item-has-children")||l.querySelector(".gb-submenu");if(i||s)return this.hide(!0,e),document.removeEventListener("mousemove",t),void(t=null)}o||(o=!0,requestAnimationFrame((()=>{s=this.element.getBoundingClientRect(),n=e.getBoundingClientRect(),o=!1})));const c=a.clientX>=s.left-i&&a.clientX<=s.right+i&&a.clientY>=s.top-i&&a.clientY<=s.bottom+i,h=a.clientX>=n.left&&a.clientX<=n.right&&a.clientY>=n.top&&a.clientY<=n.bottom;c||h||(this.hide(!0,e),document.removeEventListener("mousemove",t),t=null)},document.addEventListener("mousemove",t,{passive:!0})},cleanup:()=>{clearTimeout(e.gbHoverTimeoutId),t&&(document.removeEventListener("mousemove",t),t=null)}}}isKeyboardActivation(e){return"click"===e.type&&(0===e.detail||0===e.clientX&&0===e.clientY&&0===e.screenX&&0===e.screenY)}
2dispatchOverlayEvent(e,t){if(t){const i=new CustomEvent(e,{detail:{overlay:this.element,trigger:t,overlayId:this.id}});document.dispatchEvent(i)}}handleShowError(e,t){if(this.isAnimating=!1,this.state.clearListeners(this.element),t){const i=new CustomEvent("gbOverlayError",{detail:{overlay:this.element,trigger:t,overlayId:this.id,error:e.message||"Unknown error"}});document.dispatchEvent(i)}console.error(`Overlay ${this.id} failed to open:`,e)}destroy(){this.state.clearListeners(this.element),a.delete(this.element),this.lastFocusedElement=null,this.element.gbOverlayClose&&delete this.element.gbOverlayClose,this.state.overlayInstances.delete(this.element)}}const d=new class{constructor(){this.activeOverlays=new Map,this.overlayInstances=new WeakMap,this.overlayQueue=[],window.addEventListener("pagehide",(()=>this.cleanup()))}set(e,t){this.activeOverlays.set(e,t)}get(e){return this.activeOverlays.get(e)}delete(e){this.activeOverlays.delete(e)}setInstance(e,t){this.overlayInstances.set(e,t)}getInstance(e){return this.overlayInstances.get(e)}cleanup(){for(const e of this.activeOverlays.keys()){const t=this.getInstance(e);t&&t.isVisible(t.config.defaultOverlayType)&&t.hide(),this.clearListeners(e)}this.activeOverlays.clear(),this.overlayQueue=[]}clearListeners(e){const t=this.get(e);if(!t)return;const{listeners:i,positionCleanupRef:s}=t;Object.entries(i).forEach((([t,i])=>{if("timer"===t)clearTimeout(i);else if("escape"===t)document.removeEventListener("keydown",i);else if("overlayFocusTrap"===t)document.removeEventListener("keydown",i);else if("anchoredOverlayTab"===t)e.removeEventListener("keydown",i);else if("documentTab"===t)document.removeEventListener("keydown",i);else if("clickOutside"===t)document.removeEventListener("mousedown",i,!0);else if("focusOut"===t)document.removeEventListener("focusin",i,!0);else if("overlayMouseEnter"===t||"overlayMouseLeave"===t){const s="overlayMouseEnter"===t?"mouseenter":"mouseleave";e.removeEventListener(s,i)}else if("exitIntent"===t)document.removeEventListener("mousemove",i);else if("scroll"===t)window.removeEventListener("scroll",i);else if("customEvent"===t){const t=this.getInstance(e);t&&t.config.customEventName&&document.removeEventListener(t.config.customEventName,i)}else"efficientResizeHandler"===t?window.removeEventListener("resize",i):"optimizedHandler"===t?(window.removeEventListener("scroll",i),window.removeEventListener("resize",i)):"hoverIntentCleanup"===t&&i()})),s&&s(),this.delete(e)}hasOpenStandardOverlay(){for(const[,e]of this.activeOverlays)if(e&&"standard"===e.activeOverlayDisplayType)return!0;return!1}addToQueue(e){this.overlayQueue.includes(e)||this.overlayQueue.push(e)}processQueue(){if(0===this.overlayQueue.length||this.hasOpenStandardOverlay())return;const e=this.overlayQueue.shift();e&&e.element&&document.contains(e.element)&&!e.isBlockedByCookie()?setTimeout((()=>{e.element&&document.contains(e.element)?e.show(!1):this.processQueue()}),100):this.processQueue()}};new class{constructor(){this.setupGlobalListeners()}setupGlobalListeners(){document.addEventListener("click",this.handleTriggerClick.bind(this),!0),document.addEventListener("keydown",this.handleTriggerKeydown.bind(this),!0),document.addEventListener("click",this.handleCloseClick.bind(this)),document.addEventListener("mouseover",this.handleTriggerMouseOver.bind(this),{passive:!0}),document.addEventListener("mouseout",this.handleTriggerMouseOut.bind(this),{passive:!0})}handleTriggerClick(e){if(!e.target.closest('a, button, [role="button"], [tabindex], [data-gb-overlay]'))return;const t=e.target.closest("[data-gb-overlay]");if(!t)return;const i=t.dataset.gbOverlay,s=document.getElementById(i),n=d.getInstance(s);if(!n)return;const o=t.dataset.gbOverlayTriggerType||n.config.overlayTriggerType;"click"!==o&&"both"!==o||(e.preventDefault(),t.dataset.gbTriggerStopPropagation&&(e.stopPropagation(),e.stopImmediatePropagation()),n.handleTriggerActivation(e,t,!1))}handleTriggerKeydown(e){if("Enter"!==e.key&&" "!==e.key)return;if(!e.target.closest('a, button, [role="button"], [tabindex], [data-gb-overlay]'))return;const t=e.target.closest("[data-gb-overlay]");if(!t)return;const i=t.dataset.gbOverlay,s=document.getElementById(i),n=d.getInstance(s);if(!n)return;const o=t.dataset.gbOverlayTriggerType||n.config.overlayTriggerType;"click"!==o&&"both"!==o||(e.preventDefault(),t.dataset.gbTriggerStopPropagation&&(e.stopPropagation(),e.stopImmediatePropagation()),n.handleTriggerActivation(e,t,!0))}handleTriggerMouseOver(e){if(l())return;if(!e.target.closest('a, button, [role="button"], [tabindex], [data-gb-overlay]'))return;const t=e.target.closest("[data-gb-overlay]"),i=t?.closest(".gb-menu-container--mobile");if(!t||i)return;const s=t.dataset.gbOverlay,n=document.getElementById(s),o=d.getInstance(n);if(!o)return;const a=t.dataset.gbOverlayTriggerType||o.config.overlayTriggerType;"hover"!==a&&"both"!==a||o.handleTriggerMouseEnter(t)}handleTriggerMouseOut(e){if(l())return;if(!e.target.closest('a, button, [role="button"], [tabindex], [data-gb-overlay]'))return;const t=e.target.closest("[data-gb-overlay]"),i=t?.closest(".gb-menu-container--mobile");if(!t||i)return;const s=t.dataset.gbOverlay,n=document.getElementById(s),o=d.getInstance(n);if(!o)return;const a=t.dataset.gbOverlayTriggerType||o.config.overlayTriggerType;"hover"!==a&&"both"!==a||o.handleTriggerMouseLeave(t)}handleCloseClick(e){const t=e.target.closest("[data-gb-overlay-close]");if(!t)return;const i=t.closest(".gb-overlay");i?.gbOverlayClose&&(e.preventDefault(),i.gbOverlayClose())}},document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".gb-overlay").forEach((e=>{new h(e)}))})),window.addEventListener("pageshow",(e=>{e.persisted&&document.querySelectorAll(".gb-overlay").forEach((e=>{const t=d.getInstance(e);t&&(t.hasTriggered=!1,t.isAnimating=!1,t.setupNonInteractiveTriggers())}))})),window.gbInitializeOverlay=e=>e&&!d.getInstance(e)?new h(e):d.getInstance(e)})(); 3 4 5 6function generateStickyDebounce(s,n,a){var o;return function(){var t=this,e=arguments,i=a&&!o;clearTimeout(o),o=setTimeout(function(){o=null,a||s.apply(t,e)},n),i&&s.apply(t,e)}}!function(M,E,W){function e(t,e){var i=0,s=0,n="",a=0,o=!1,r=!1,l=!1,c=!1,d=0,p=0,h=0,m=0,u=M(),f=M("body"),g=0,b=0,k=0,v=M(t).clone().css({visibility:"hidden",display:"none"}).attr({id:"sticky-placeholder","aria-hidden":!0,itemtype:null,itemscope:null}),y=M(),w={top:0,bottom:0,custom:[]},C={scrollHide:!1,lazyHeight:0,topMargin:"auto",keepInWrapper:!1,wrapperSelector:"",zIndex:1e4,namespaceClass:"stuckElement",fixedClass:"isStuck",disableOn:function(){return!0},transition:"none"},I=function(){var t=0<jQuery("#wpadminbar").length&&"fixed"==jQuery("#wpadminbar").css("position")?jQuery("#wpadminbar").outerHeight():0;return"auto"===C.topMargin?parseInt(t+u.css("marginTop")):isNaN(C.topMargin)&&0<C.topMargin.search("px")?parseInt(t+C.topMargin.replace("px","")):isNaN(parseInt(C.topMargin))?0:parseInt(t+C.topMargin)},H=function(){v.remove(),u.removeClass(C.fixedClass).css({"max-width":"","margin-top":"","margin-left":"","margin-right":"",position:"",top:"",left:"",right:"",bottom:"",width:"",opacity:"",he
6ight:"",overflow:"","-webkit-transform":"","-ms-transform":"",transform:"","-webkit-transition":"","-ms-transition":"",transition:"",visibility:"","z-index":""}).removeClass("sticky-navigation-transition").removeClass("navigation-transition").removeClass("sticky-nav-scrolling-up"),"sticky-navigation"===u.attr("id")&&u.attr("id","site-navigation"),l=r=o=!1,u.trigger("stickUp:unStick")},x=function(t){M(v).insertAfter(u).show().addClass(C.fixedClass);var e,i=v.offsetParent();t&&(u.css({position:"absolute"}),e=y.offset().top+y.outerHeight()-i.offset().top-p-parseInt(y.css("paddingBottom"))),u.css({position:"absolute",marginTop:b,bottom:"",left:v.position().left,top:t?e:u.offset().top-i.offset().top-b}),u.trigger("stickUp:holdIt")},S=function(){o=!0,C.zIndex&&u.css("z-index",C.zIndex),"fade"==C.transition&&u.hide(),"slide"!=C.transition&&!C.scrollHide||u.css({height:"0",overflow:"hidden",visibility:"hidden"}),M(v).insertAfter(u).show().addClass(C.fixedClass),M(".gen-sidebar-nav").length&&v.css("height",u.outerHeight()),"left"!=u.css("float")&&"right"!=u.css("float")||(v.css("float",u.css("float")),v.attr("style",v.attr("style")+"width:auto !important;")),"slide"==C.transition&&"block"==v.css("display")&&u.css({"-webkit-transform":"translateY(-100%)","-ms-transform":"translateY(-100%)",transform:"translateY(-100%)","-webkit-transition":"transform 300ms ease-in-out","-ms-transition":"transform 300ms ease-in-out",transition:"transform 300ms ease-in-out"}),u.addClass(C.fixedClass),"site-navigation"===u.attr("id")&&u.attr("id","sticky-navigation");var t=-k;u.css({"margin-top":b,position:"fixed",top:t+"px",left:"",right:"",bottom:""}),u.trigger("stickUp:stickIt"),"fade"==C.transition&&u.fadeIn(300),"slide"==C.transition&&u.one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(t){u.css({visibility:"",height:"",overflow:""}),setTimeout(function(){u.css({"-webkit-transform":"translateY(0)","-ms-transform":"translateY(0)",transform:"translateY(0)"})},10)}),C.scrollHide&&u.css({height:"",overflow:"",visibility:""})},U=function(){v&&v.width()!==u.outerWidth()&&u.outerWidth(v.outerWidth())},z=function(t){var e;C.disableOn()?(c=c&&!1,(!C.keepInWrapper||y.is(":visible"))&&(s=M(t.target).scrollTop(),n=i<=s?"down":"up",a=Math.abs(i-s),M(E).outerHeight(),i=s,h=u.offset().top,d=parseInt(u.outerHeight()+b)+parseInt(u.css("marginBottom")),o||l||r||(parseInt(u.outerHeight(!0)),r||l?(w.top=parseInt(v.offset().top),parseInt(u.offset().left)):w.top=parseInt(u.offset().top)),p=parseInt(u.outerHeight())+parseInt(u.css("margin-bottom"))+b,C.keepInWrapper?w.bottom=y.offset().top+y.outerHeight()-parseInt(y.css("paddingBottom")):w.bottom=M(W).outerHeight(),m=u.offset().top+p,k=C.scrollHide?d+C.lazyHeight:C.lazyHeight,"none"!==C.transition&&(g=2*u.outerHeight()),b=null!==C.topMargin?I():0,o&&b!==u.css("margin-top")&&u.css("margin-top",b),(!o&&!r&&s>=w.top-b+k+g||r&&l&&s<=h-b+k)&&(S(),l=r=!(o=!0)),o&&!r&&s>=w.top-b+k+u.outerHeight()/2&&(v.addClass("sticky-navigation-transition"),u.addClass("sticky-navigation-transition")),C.keepInWrapper&&parseInt(m-b)!==parseInt(w.bottom)&&s>=w.bottom-p+k&&(x(!0),l=r=!(o=!1)),o&&(t=parseInt(u.css("top")),"up"===n&&0!==t?(e=-t<a?0:t+a,u.css("top",e+"px"),u.addClass("sticky-nav-scrolling-up")):"down"===n&&-k<t&&(e=k+t<a?-k:t-a,u.css("top",e+"px"),u.removeClass("sticky-nav-scrolling-up"))),(o||l||r)&&s<=w.top-b&&H(),o||l||r)&&U()):c||(H(),c=!0)},T=function(t){l&&(x(),r=!1),z(t)};!function(t,e){(u=M(t)).addClass(C.namespaceClass),e&&M.extend(!0,C,e),b=null!==C.topMargin?I():0,C.lazyHeight&&(b+=C.lazyHeight),C.keepInWrapper?(y=""!==C.wrapperSelector?u.closest(C.wrapperSelector):y).length||(y=u.parent()):y=f,M(E).on("scroll.stickUp",z),M(E).on("resize.stickUp",T),z({target:W})}.call(this,t,e),M(t).on("stickUp:detach",function(t){(u=M(this)).removeClass(C.namespaceClass),v.remove(),u.removeClass(C.fixedClass).css({maxWidth:"",marginTop:"",marginLeft:"",marginRight:"",position:"",top:"",left:"",right:"",bottom:"",width:""}),c=!(l=r=o=!1),M(E).off("scroll.stickUp",z),M(E).off("resize.stickUp",T)})}M.fn.stickUp=function(t){return this.each(function(){new e(this,t)})}}(jQuery,window,document),function(s){s.fn.GenerateSimpleSticky=function(t){var t=s.extend({menu:s(this),parent:!1,scrollHide:!1,offsetElement:"#wpadminbar",disableOn:function(){return!0},transition:"none"},t),e=s("body"),i=null,i=t.parent||t.menu.parent(),e=((0<t.menu.parents(".site-header").length||0<t.menu.parents(".generate-page-header").length||0<t.menu.parents(".header-wrap").length||0<t.menu.parents(".site-wrapper").length)&&(i=e),!e.hasClass("nav-right-sidebar")&&!e.hasClass("nav-left-sidebar")||s(".menu-toggle").is(":visible")||(t.menu=s(".gen-sidebar-nav"),i=s(".site-content"),t.menu.children().hasClass("auto-hide-sticky")),0<jQuery(t.offsetElement).length&&"fixed"==jQuery(t.offsetElement).css("position")&&jQuery(t.offsetElement).outerHeight(),{scrollHide:t.scrollHide,keepInWrapper:!0,wrapperSelector:i,fixedClass:"is_stuck navigation-stick navigation-clone",topM
6argin:0,disableOn:t.disableOn,transition:t.transition});t.menu.stickUp(e)}}(jQuery),jQuery(function(s){0 in window;function e(t){var e=t.getAttribute("href");t.pathname===window.location.pathname&&"#"!==e&&t.closest("nav").classList.contains("toggled")&&(t.closest("nav").classList.remove("toggled"),s("html").hasClass("mobile-menu-open"))&&s("html").removeClass("mobile-menu-open")}var t,i,n,a,o=s("body"),r="none",l=(o.hasClass("sticky-enabled")&&(t=s("#site-navigation"),o.hasClass("sticky-menu-fade")&&(r="fade"),o.hasClass("sticky-menu-slide")&&(r="slide"),i=!!t.hasClass("auto-hide-sticky"),n={transition:r,scrollHide:i,disableOn:function(){var t=s("body"),e=s("#mobile-header"),i=s(".menu-toggle");return!(t.hasClass("desktop-sticky-menu")&&i.is(":visible")||t.hasClass("mobile-sticky-menu")&&!i.is(":visible")||t.hasClass("mobile-header")&&e.is(":visible"))}},s(t).GenerateSimpleSticky(n),o.on("generate_navigation_location_updated",function(){t.trigger("stickUp:detach"),setTimeout(function(){s(t).GenerateSimpleSticky(n)},250)})),o.hasClass("mobile-header")&&o.hasClass("mobile-header-sticky")&&(a=s("#mobile-header")).GenerateSimpleSticky({scrollHide:!(!a.data("auto-hide-sticky")&&""!==a.data("auto-hide-sticky")),disableOn:function(){return!!a.is(":visible")}}),s(".sidebar-nav-mobile")),c=s(".gen-sidebar-nav"),d=s(window).width(),r=generateStickyDebounce(function(){d!==s(window).width()&&(l.is(":visible")&&(c.trigger("stickUp:detach"),l.trigger("stickUp:detach"),l.GenerateSimpleSticky(n)),c.is(":visible"))&&(l.trigger("stickUp:detach"),c.trigger("stickUp:detach"),c.GenerateSimpleSticky(n))},250);s("body").hasClass("sticky-enabled")&&l.length&&(window.addEventListener("resize",r),window.addEventListener("orientationchange",r)),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&(o.hasClass("sticky-enabled")||o.hasClass("mobile-header")&&o.hasClass("mobile-header-sticky"))&&s(document).on("focus",".navigation-stick .search-field",function(){s("html, body").animate({scrollTop:0},"fast")});(o.hasClass("both-sticky-menu")||o.hasClass("mobile-sticky-menu"))&&s(".main-navigation:not(#mobile-header) ul a[href*=\\#]").on("click",function(t){e(this)}),o.hasClass("mobile-header-sticky")&&s("#mobile-header ul a[href*=\\#]").on("click",function(t){e(this)})}); 7 8 9 10window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(e){var t,n=(this.document||this.ownerDocument).querySelectorAll(e),o=this;do{for(t=n.length;0<=--t&&n.item(t)!==o;);}while(t<0&&(o=o.parentElement));return o}
10),function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)}(),function(){for(var r=0,e=["ms","moz","webkit","o"],t=0;t<e.length&&!window.requestAnimationFrame;++t)window.requestAnimationFrame=window[e[t]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[t]+"CancelAnimationFrame"]||window[e[t]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,t){var n=(new Date).getTime(),o=Math.max(0,16-(n-r)),i=window.setTimeout(function(){e(n+o)},o);return r=n+o,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}(),function(e,t){"function"==typeof define&&define.amd?define([],function(){return t(e)}):"object"==typeof exports?module.exports=t(e):e.SmoothScroll=t(e)}("undefined"!=typeof global?global:"undefined"!=typeof window?window:this,function(b){"use strict";function E(){for(var e={},t=0;t<arguments.length;t++){n=void 0;var n,o=arguments[t];for(n in o)o.hasOwnProperty(n)&&(e[n]=o[n])}return e}function c(t){var n;try{n=decodeURIComponent(t)}catch(e){n=t}return n}function s(e){"#"===e.charAt(0)&&(e=e.substr(1));for(var t,n,o=String(e),i=o.length,r=-1,a="",c=o.charCodeAt(0);++r<i;){if(0===(t=o.charCodeAt(r)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");1<=t&&t<=31||127==t||0===r&&48<=t&&t<=57||1===r&&48<=t&&t<=57&&45===c?a+="\\"+t.toString(16)+" ":a+=128<=t||45===t||95===t||48<=t&&t<=57||65<=t&&t<=90||97<=t&&t<=122?o.charAt(r):"\\"+o.charAt(r)}try{n=decodeURIComponent("#"+a)}catch(e){n="#"+a}return n}function A(e){return e?t(e)+e.offsetTop:0}function C(e,t,n,o){t.emitEvents&&"function"==typeof b.CustomEvent&&(t=new CustomEvent(e,{bubbles:!0,detail:{anchor:n,toggle:o}}),document.dispatchEvent(t))}var q={ignore:"[data-scroll-ignore]",header:null,topOnEmptyHash:!0,speed:500,clip:!0,offset:0,easing:"easeInOutCubic",customEasing:null,updateURL:!0,popstate:!0,emitEvents:!0},t=function(e){return parseInt(b.getComputedStyle(e).height,10)},O=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)};return function(o,e){function t(e){var t,n;"matchMedia"in b&&b.matchMedia("(prefers-reduced-motion)").matches||0!==e.button||e.metaKey||e.ctrlKey||"closest"in e.target&&(r=e.target.closest(o))&&"a"===r.tagName.toLowerCase()&&!e.target.closest(g.ignore)&&r.hostname===b.location.hostname&&r.pathname===b.location.pathname&&/#/.test(r.href)&&(t=s(c(r.hash)),n=(n=g.topOnEmptyHash&&"#"===t?document.documentElement:document.querySelector(t))||"#top"!==t?n:document.documentElement)&&(e.preventDefault(),S.animateScroll(n,r))}function n(e){var t;null!==history.state&&history.state.smoothScroll&&history.state.smoothScroll===JSON.stringify(g)&&history.state.anchor&&(t=document.querySelector(s(c(history.state.anchor))))&&S.animateScroll(t,null,{updateURL:!1})}function i(e){a=a||setTimeout(function(){a=null,v=A(y)},66)}var g,r,y,v,a,w,S={cancelScroll:function(e){cancelAnimationFrame(w),w=null,e||C("scrollCancel",g)}};S.animateScroll=function(o,i,e){var r,a,c,s,u,l,m,d,f,t,h=E(g||q,e||{}),p="[object Number]"===Object.prototype.toString.call(o),e=p||!o.tagName?null:o;(p||e)&&(r=b.pageYOffset,h.header&&!y&&(y=document.querySelector(h.header)),v=v||A(y),a=p?o:function(e,t,n,o){var i=0;if(e.offsetParent)for(;i+=e.offsetTop,e=e.offsetParent;);
10return i=Math.max(i-t-n,0),i=o?Math.min(i,O()-b.innerHeight):i}(e,v,parseInt("function"==typeof h.offset?h.offset(o,i):h.offset,10),h.clip),c=a-r,s=O(),d=function(e,t){var n=b.pageYOffset;if(e==t||n==t||(r<t&&b.innerHeight+n)>=s)return S.cancelScroll(!0),e=t,n=p,0===(t=o)&&document.body.focus(),n||(t.focus(),document.activeElement!==t&&(t.setAttribute("tabindex","-1"),t.focus(),t.style.outline="none"),b.scrollTo(0,e)),C("scrollStop",h,o,i),!(w=l=null)},f=function(e){var t,n,o;m=(u+=e-(l=l||e))/parseInt(h.speed,10),m=r+c*(n=1<m?1:m,"easeInQuad"===(t=h).easing&&(o=n*n),"easeOutQuad"===t.easing&&(o=n*(2-n)),"easeInOutQuad"===t.easing&&(o=n<.5?2*n*n:(4-2*n)*n-1),"easeInCubic"===t.easing&&(o=n*n*n),"easeOutCubic"===t.easing&&(o=--n*n*n+1),"easeInOutCubic"===t.easing&&(o=n<.5?4*n*n*n:(n-1)*(2*n-2)*(2*n-2)+1),"easeInQuart"===t.easing&&(o=n*n*n*n),"easeOutQuart"===t.easing&&(o=1- --n*n*n*n),"easeInOutQuart"===t.easing&&(o=n<.5?8*n*n*n*n:1-8*--n*n*n*n),"easeInQuint"===t.easing&&(o=n*n*n*n*n),"easeOutQuint"===t.easing&&(o=1+--n*n*n*n*n),"easeInOutQuint"===t.easing&&(o=n<.5?16*n*n*n*n*n:1+16*--n*n*n*n*n),(o=t.customEasing?t.customEasing(n):o)||n),b.scrollTo(0,Math.floor(m)),d(m,a)||(w=b.requestAnimationFrame(f),l=e)},(u=0)===b.pageYOffset&&b.scrollTo(0,0),e=o,t=h,p||history.pushState&&t.updateURL&&history.pushState({smoothScroll:JSON.stringify(t),anchor:e.id},document.title,e===document.documentElement?"#top":"#"+e.id),C("scrollStart",h,o,i),S.cancelScroll(!0),b.requestAnimationFrame(f))};return S.destroy=function(){g&&(document.removeEventListener("click",t,!1),b.removeEventListener("resize",i,!1),b.removeEventListener("popstate",n,!1),S.cancelScroll(),w=a=v=y=r=g=null)},S.init=function(e){if(!("querySelector"in document&&"addEventListener"in b&&"requestAnimationFrame"in b&&"closest"in b.Element.prototype))throw"Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.";S.destroy(),g=E(q,e||{}),y=g.header?document.querySelector(g.header):null,v=A(y),document.addEventListener("click",t,!1),y&&b.addEventListener("resize",i,!1),g.updateURL&&g.popstate&&b.addEventListener("popstate",n,!1)},S.init(e),S}});var gpscroll=new SmoothScroll(gpSmoothScroll.elements.join(),{speed:gpSmoothScroll.duration,offset:function(e,t){var n=document.body,o=document.querySelector("#site-navigation"),i=document.querySelector("#sticky-navigation"),r=document.querySelector("#mobile-header"),a=document.querySelector(".menu-toggle"),c=0;return r&&(r.offsetWidth||r.offsetHeight||r.getClientRects().length)?n.classList.contains("mobile-header-sticky")&&(c+=r.clientHeight):a&&(a.offsetWidth||a.offsetHeight||a.getClientRects().length)?(n.classList.contains("both-sticky-menu")||n.classList.contains("mobile-sticky-menu"))&&(i?c+=i.clientHeight:o&&(c+=o.clientHeight)):(n.classList.contains("both-sticky-menu")||n.classList.contains("desktop-sticky-menu"))&&(i?c+=i.clientHeight:o&&(c+=o.clientHeight)),gpSmoothScroll.offset||c}}); 11 12
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.