1(function(){var __sections__={};(function(){for(var i=0,s=document.getElementById("sections-script").getAttribute("data-sections").split(",");i<s.length;i++)__sections__[s[i]]=!0})(),(function(){if(!(!__sections__["brand-tab-block"]&&!Shopify.designMode))try{class BrandsTab extends HTMLElement{constructor(){super(),this.tabTitle=this.querySelector(".tab-title"),this.tabContent=this.querySelector(".tab-panel-content");const ele=this.querySelectorAll("[tab-title-action]"),actionLoadMore=this.querySelectorAll("[data-load-more-block]");this.widthWindow=0,ele.length&&ele.forEach(button=>button.addEventListener("click",this.onActive.bind(this))),actionLoadMore.length&&actionLoadMore.forEach(button=>button.addEventListener("click",this.onLoadMore.bind(this)))}onActive(e){this.tabTitle.querySelector(".active").classList.remove("active"),this.tabContent.querySelector(".active").classList.remove("active"),this.querySelector(e.target.dataset.target).classList.add("active"),e.target.parentElement.classList.add("active")}onLoadMore(e){if(this.resize(),this.widthWindow>1024)var eleHide=e.target.parentElement.querySelectorAll(".hidden-lg"),_number=e.target.dataset.rowlg,_class="hidden-lg";else if(this.widthWindow>551)var eleHide=e.target.parentElement.querySelectorAll(".hidden-md"),_number=9,_class="hidden-md";else var eleHide=e.target.parentElement.querySelectorAll(".hidden-sm"),_number=6,_class="hidden-sm";if(eleHide.length)if(e.target.classList.contains("more")){for(let i=0;i<eleHide.length;i++)eleHide[i].classList.remove("show");e.target.querySelector("span").textContent=e.target.dataset.buttonmore,e.target.classList.remove("more")}else{for(let i=0;i<eleHide.length;i++)eleHide[i].classList.add("show");e.target.querySelector("span").textContent=e.target.dataset.buttonless,e.target.classList.add("more")}}resize(){this.widthWindow=window.innerWidth}}customElements.define("brand-tab",BrandsTab)}catch(e){console.error(e)}})(),(function(){if(!(!__sections__["dt-collection-page"]&&!Shopify.designMode))try{customElements.get("dt-collection-page")||customElements.define("dt-collection-page",class extends HTMLElement{connectedCallback(){this.events=new AbortController,this.dialog=this.querySelector("dialog"),this.form=this.querySelector("form"),this.mobile=matchMedia("(max-width: 749px)"),this.classList.add("dt-ready"),this.setupPrices(),this.syncWishlist(),document.addEventListener("click",event=>{this.closeCardActions(event.target.closest(".dt-product")),event.target.closest("[data-wishlist]")&&setTimeout(()=>{this.isConnected&&this.syncWishlist()},0)},{signal:this.events.signal}),window.addEventListener("storage",event=>{event.key==="wishlistItem"&&this.syncWishlist()},{signal:this.events.signal});const options={signal:this.events.signal};this.addEventListener("click",event=>this.handleClick(event),options),this.addEventListener("change",event=>{event.target.matches('select[name="sort_by"]')&&this.submit(!1,!0),event.target.matches('input[type="checkbox"]')&&!this.mobile.matches&&this.submit(!1,!1)},options),this.form.addEventListener("submit",event=>{event.preventDefault(),this.form.reportValidity()&&this.submit(!0,!1)},options),this.dialog.addEventListener("cancel",event=>{event.preventDefault(),this.closeFilters(!0)},options),this.dialog.addEventListener("click",event=>{if(event.target===this.dialog){const r=this.dialog.getBoundingClientRect();(event.clientX<r.left||event.clientX>r.right||event.clientY<r.top||event.clientY>r.bottom)&&this.closeFilters(!0)}},options),document.addEventListener("click",event=>{!this.mobile.matches&&!event.target.closest(".dt-facet")&&this.querySelectorAll(".dt-facet[open]").forEach(item=>item.open=!1)},options),this.addEventListener("keydown",event=>{if(event.key==="Escape"&&event.target.closest(".dt-actions-open")){const toggle=event.target.closest(".dt-product").querySelector("[data-dt-card-toggle]");this.closeCardActions(),toggle.focus()}if(event.key==="Escape"&&!this.mobile.matches){const detail=event.target.closest(".dt-facet");detail&&(detail.open=!1,detail.querySelector("summary").focus())}},options),this.mobile.addEventListener("change",()=>{this.dialog.matches(":modal")&&this.closeFilters(!1),this.dialog.open||this.dialog.show()},options),window.addEventListener("popstate",()=>this.navigate(new URL(location.href),{history:!1}),options)}disconnectedCallback(){this.events?.abort(),this.request?.abort(),this.previousOverflow!==void 0&&(document.body.style.overflow=this.previousOverflow)}syncWishlist(){let saved=[];try{saved=JSON.parse(localStorage.getItem("wishlistItem")||"[]")}catch{}Array.isArray(saved)||(saved=[]),this.querySelectorAll(".dt-card-wishlist").forEach(button=>{const active=saved.includes(button.dataset.wishlistHandle);button.classList.toggle("wishlist-added",active),button.setAttribute("aria-pressed",String(active)),button.setAttribute("aria-label",active?button.dataset.removeLabel:button.dataset.addLabel),button.title=active?button.dataset.removeLabel:button.dataset.addLabel})}closeCardActions(except){this.querySelectorAll(".dt-actions-open").forEach(card=>{card!==except&&(card.classList.remove("dt-actions-open"),card.querySelector("[data-dt-card-toggle]").setAttribute("aria-expanded","fal
1se"))})}setupPrices(){this.querySelectorAll("[data-dt-price]").forEach(group=>{const fields=[...group.querySelectorAll(".dt-price-fields input")],ranges=[...group.querySelectorAll(".dt-price-slider input")],slider=group.querySelector(".dt-price-slider"),max=Number(ranges[1].max),sync=(index,fromRange)=>{let low=fields[0].value===""?0:Number(fields[0].value),high=fields[1].value===""?max:Number(fields[1].value);fromRange&&(index===0?low=Math.min(Number(ranges[0].value),high):high=Math.max(Number(ranges[1].value),low),fields[index].value=(index===0?low:high).toFixed(2)),fields[0].setCustomValidity(low>high?group.dataset.invalidRange:""),ranges[0].value=Math.min(low,max),ranges[1].value=Math.min(high,max),ranges[0].setAttribute("aria-valuetext",fields[0].value||"0"),ranges[1].setAttribute("aria-valuetext",fields[1].value||String(max)),slider.style.setProperty("--low",`${max?Math.min(low/max*100,100):0}%`),slider.style.setProperty("--high",`${max?Math.min(high/max*100,100):100}%`)};fields.forEach((field,index)=>field.addEventListener("input",()=>sync(index,!1),{signal:this.events.signal})),ranges.forEach((range,index)=>range.addEventListener("input",()=>sync(index,!0),{signal:this.events.signal})),this.form.addEventListener("reset",()=>queueMicrotask(()=>sync(0,!1)),{signal:this.events.signal}),sync(0,!1)})}openFilters(){this.previousOverflow=document.body.style.overflow,document.body.style.overflow="hidden",this.dialog.open&&this.dialog.close(),this.dialog.showModal(),this.querySelectorAll(".dt-facet").forEach(item=>item.open=!0),this.querySelector("[data-dt-close]")?.focus()}closeFilters(reset){reset&&this.form.reset(),this.dialog.close(),this.previousOverflow!==void 0&&(document.body.style.overflow=this.previousOverflow,this.previousOverflow=void 0),this.dialog.show(),this.querySelector("[data-dt-open]")?.focus()}handleClick(event){const toggle=event.target.closest("[data-dt-card-toggle]");if(toggle){const card=toggle.closest(".dt-product"),expanded=toggle.getAttribute("aria-expanded")!=="true";this.closeCardActions(),card.classList.toggle("dt-actions-open",expanded),toggle.setAttribute("aria-expanded",String(expanded));return}const summary=event.target.closest(".dt-facet > summary");if(summary&&!this.mobile.matches&&this.querySelectorAll(".dt-facet[open]").forEach(item=>{item!==summary.parentElement&&(item.open=!1)}),event.target.closest("[data-dt-open]")){this.openFilters();return}if(event.target.closest("[data-dt-close]")){this.closeFilters(!0);return}const link=event.target.closest("a[data-dt-nav]");if(!link||event.defaultPrevented||event.button!==0||event.metaKey||event.ctrlKey||event.shiftKey||event.altKey)return;const url=new URL(link.href,location.href);url.origin===location.origin&&(event.preventDefault(),this.navigate(url,{scroll:link.hasAttribute("data-dt-page"),keepDialog:this.dialog.matches(":modal")}))}submit(closeDialog,scroll){const url=new URL(location.href);for(const key of Array.from(url.searchParams.keys()))(key.startsWith("filter.")||key==="sort_by"||key==="page"||key==="section_id")&&url.searchParams.delete(key);for(const[key,value]of new FormData(this.form))String(value).trim()!==""&&url.searchParams.append(key,value);this.navigate(url,{keepDialog:!closeDialog&&this.dialog.matches(":modal"),scroll})}async navigate(url,options={}){const preview=new URL(location.href).searchParams.get("preview_theme_id");preview&&url.searchParams.set("preview_theme_id",preview),this.request?.abort(),this.request=new AbortController;const request=this.request,openIds=Array.from(this.querySelectorAll(".dt-facet[open]")).map(item=>item.id),focusId=document.activeElement?.id;this.setAttribute("aria-busy","true"),this.querySelector(".dt-loading-text").hidden=!1;const fetchUrl=new URL(url);fetchUrl.searchParams.set("section_id",this.dataset.sectionId);try{const response=await fetch(fetchUrl,{signal:request.signal,credentials:"same-origin"});if(!response.ok)throw new Error("Collection request failed");const replacement=new DOMParser().parseFromString(await response.text(),"text/html").querySelector("dt-collection-page");if(!replacement)throw new Error("Collection section missing");if(request.signal.aborted)return;options.history!==!1&&history.pushState({},"",url),this.dialog.matches(":modal")&&this.closeFilters(!1),this.replaceWith(replacement),openIds.forEach(id=>{const detail=document.getElementById(id);detail&&(detail.open=!0)}),options.keepDialog&&replacement.mobile.matches?replacement.openFilters():options.scroll?(replacement.querySelector(".dt-discovery").scrollIntoView({block:"start",behavior:matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth"}),replacement.querySelector(".dt-results-meta").focus({preventScroll:!0})):focusId&&document.getElementById(focusId)?.focus({preventScroll:!0})}catch(error){error.name!=="AbortError"&&location.assign(url)}}})}catch(e){console.error(e)}})(),(function(){if(!(!__sections__["header-advanced"]&&!Shopify.designMode))try{(()=>{if(window.dtDesktopHeaderCountsV2)return;window.dtDesktopHeaderCountsV2=!0;const observers=new WeakMap,headers=root=>root.querySelectorAll("[data-dt-desktop-header]"),sync=header=>{header.querySelectorAll(".dt-header-count").forEach(bubble=>{const counter=bubble.querySelector("[data-cart-count], [data-wishlist-count]"),value=counter?counter.textContent.trim():"",hasItems=/[1-9]/.test(value);bubble.dataset.dtCountState=hasItems?"full":"empty",bubble.hidden=!hasItems;const link=bubble.closest("a");if(link){const label=link.querySelector(".dt-header-label");label&&link.setAttribute("aria-label",label.textContent.trim()+(hasItems?": "+value:""))}})},init=root=>headers(root).forEach(header=>{if(observers.has(header))return;sync(header);const observer=new MutationObserver(()=>sync(header)),target=header.querySelector(".dt-header-main");target&&(observer.observe(target,{childList:!0,characterData:!0,subtree:!0}),observers.set(header,observer))});document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>init(document),{once:!0}):init(document),document.addEventListener("shopify:section:load",event=>init(event.target)),document.addEventListener("shopify:section:unload",event=>headers(event.target).forEach(header=>{observers.get(header)?.disconnect(),observers.delete(header)}))})()}catch(e){console.error(e)}})(),(function(){if(__sections__["header-mobile"])try{(()=>{class StickyHeaderMobile extends HTMLElement{connectedCallback(){if(this.header=this.closest(".section-header-mobile"),!this.header)return;this.headerIsAlwaysSticky=this.getAttribute("data-sticky-type")==="always"||this.getAttribute("data-sticky-type")==="reduce-logo-size";const scrollTop=window.pageYOffset||document.documentElement.scrollTop,headerTop=this.header.getBoundingClientRect().top+scrollTop;this.headerBounds={top:headerTop,bottom:headerTop+this.header.offsetHeight},this.headerIsAlwaysSticky&&this.header.classList.add("shopify-section-header-sticky"),this.currentScrollTop=scrollTop,this.preventReveal=!1,this.predictiveSearch=this.querySelector("predictive-search"),this.onScrollHandler=()=>{this.scrollFrame||(this.scrollFrame=requestAnimationFrame(()=>{this.scrollFrame=null,this.onScroll()}))},this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.addEventListener("scroll",this.onScrollHandler,{passive:!0}),this.createObserver()}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler),this.observer?.disconnect(),cancelAnimationFrame(this.scrollFrame),clearTimeout(this.isScrolling)}createObserver(){"ResizeObserver"in window&&(this.observer=new ResizeObserver(()=>{this.headerBounds.bottom=this.headerBounds.top+this.header.offsetHeight}),this.observer.observe(this.header))}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;if(!(window.innerWidth>1024)&&!(this.predictiveSearch&&this.predictiveSearch.isOpen)){if(this.matches(":focus-within")||document.body.classList.contains("menu_open")||this.querySelector("details[open]")){this.currentScrollTop=scrollTop;return}if(scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom){if(this.header.classList.add("scrolled-past-header"),this.preventHide)return;this.hide()}else scrollTop<this.currentScrollTop&&scrollTop>this.headerBounds.bottom?(this.header.classList.add("scrolled-past-header"),this.preventReveal?(window.clearTimeout(this.isScrolling),this.isScrolling=setTimeout(()=>{this.preventReveal=!1},66),this.hide()):this.reveal()):scrollTop<=this.headerBounds.top&&(this.header.classList.remove("scrolled-past-header"),this.reset());this.currentScrollTop=scrollTop}}hide(){this.headerIsAlwaysSticky||(this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.header.classList.remove("shopify-section-header-show"),this.header.style.top="")}reveal(){const headerMultiSite=document.querySelector(".section-header-nav-multi-site");if(!this.headerIsAlwaysSticky&&(this.header.classList.add("shopify-section-header-sticky","shopify-section-header-show","animate"),this.header.classList.remove("shopify-section-header-hidden"),headerMultiSite)){const height=headerMultiSite.offsetHeight;this.header.style.top=`${height}px`}}reset(){this.headerIsAlwaysSticky||(this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-show","shopify-section-header-sticky","animate"),this.header.style.top="")}}if(customElements.get("sticky-header-mobile")||customElements.define("sticky-header-mobile",StickyHeaderMobile),window.dtMobileHeaderMenuBound||(document.addEventListener("click",event=>{event.target.closest?.(".section-header-mobile [data-mobile-menu]")&&document.body.classList.add("menu_open")}),window.dtMobileHeaderMenuBound=!0),!window.dtMobileHeaderCountersBound){const counterObservers=new WeakMap,findHeaders=root=>root.querySelectorAll(".dt-mobile-header"),initCounters=root=>{findHeaders(root).forEach(header=>{if(counterObservers.has(header))return;const syncCounters=()=>{header.querySelectorAll(".cart-count-bubble, .wishlist-count-bubble").forEach(bubble=>{const text=bubble.querySelector("[data-cart-count], [data-wishlist-count]")?.textContent||"",state=/[1-9]/.test(text)?"full":"empty";bubble.dataset.dtCountState!==state&&(bubble.dataset.dtCountState=state)})};syncCounters();const observer=new MutationObserver(syncCounters);observer.observe(header,{childList:!0,characterData:!0,subtree:!0}),counterObservers.set(header,observer)})};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>initCounters(document),{once:!0}):initCounters(document),document.addEventListener("shopify:section:load",event=>initCounters(event.target)),document.addEventListener("shopify:section:unload",event=>{findHeaders(event.target).forEach(header=>{counterObservers.get(header)?.disconnect(),counterObservers.delete(header)})}),window.dtMobileHeaderCountersBound=!0}})()}catch(e){console.error(e)}})(),(function(){if(!(!__sections__["header-nav-multi-site"]&&!Shopify.designMode))try{var sticky=document.getElementsByTagName("sticky-header")[0].querySelector(".header-nav-multi-site");if(sticky!=null||sticky!=null){class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.querySelector(".section-header-navigation"),this.headerIsAlwaysSticky=this.getAttribute("data-sticky-type"),this.headerBounds={},this.setHeaderHeight(),window.matchMedia("(max-width: 990px)").addEventListener("change",this.setHeaderHeight.bind(this)),this.headerIsAlwaysSticky&&this.header.classList.add("shopify-section-header-sticky"),this.currentScrollTop=0,this.preventReveal=!1,this.predictiveSearch=this.querySelector("predictive-search"),this.onScrollHandler=this.onScroll.bind(this),this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.addEventListener("scroll",this.onScrollHandler,!1),this.createObserver()}setHeaderHeight(){document.documentElement.style.setProperty("--header-height",`${this.header.offsetHeight}px`)}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){new IntersectionObserver((entries,observer2)=>{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()}).observe(this.header)}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;if(!(this.predictiveSearch&&this.predictiveSearch.isOpen)){if(scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom){if(this.preventHide)return;this.header.classList.add("scrolled-past-header"),requestAnimationFrame(this.hide.bind(this))}else scrollTop<this.currentScrollTop&&scrollTop>this.headerBounds.bottom?(this.header.classList.add("scrolled-past-header"),this.preventReveal?(window.clearTimeout(this.isScrolling),this.isScrolling=setTimeout(()=>{this.preventReveal=!1},66),requestAnimationFrame(this.hide.bind(this))):requestAnimationFrame(this.reveal.bind(this))):scrollTop<=this.headerBounds.top&&(this.header.classList.remove("scrolled-past-header"),requestAnimationFrame(this.reset.bind(this)));this.currentScrollTop=scrollTop}}
1hide(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky");return}else this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.header.classList.remove("shopify-section-header-show");this.closeMenuDisclosure()}reveal(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.add("shopify-section-header-sticky","shopify-section-header-show","animate"),this.header.classList.remove("shopify-section-header-hidden")}reset(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-show","shopify-section-header-sticky","animate")}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("details-disclosure"),this.disclosures.forEach(disclosure=>disclosure.close())}}document.addEventListener("DOMContentLoaded",()=>{customElements.define("sticky-header",StickyHeader)})}}catch(e){console.error(e)}})(),(function(){if(!(!__sections__["header-navigation-basic"]&&!Shopify.designMode))try{var sticky=document.getElementsByTagName("sticky-header")[0].querySelector(".header-nav-basic");if(sticky!=null||sticky!=null){class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.querySelector(".section-header-navigation"),this.headerIsAlwaysSticky=this.getAttribute("data-sticky-type"),this.headerBounds={},this.setHeaderHeight(),window.matchMedia("(max-width: 990px)").addEventListener("change",this.setHeaderHeight.bind(this)),this.headerIsAlwaysSticky&&this.header.classList.add("shopify-section-header-sticky"),this.currentScrollTop=0,this.preventReveal=!1,this.predictiveSearch=this.querySelector("predictive-search"),this.onScrollHandler=this.onScroll.bind(this),this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.addEventListener("scroll",this.onScrollHandler,!1),this.createObserver()}setHeaderHeight(){document.documentElement.style.setProperty("--header-height",`${this.header.offsetHeight}px`)}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){new IntersectionObserver((entries,observer2)=>{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()}).observe(this.header)}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;if(!(this.predictiveSearch&&this.predictiveSearch.isOpen)){if(scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom){if(this.preventHide)return;this.header.classList.add("scrolled-past-header"),requestAnimationFrame(this.hide.bind(this))}else scrollTop<this.currentScrollTop&&scrollTop>this.headerBounds.bottom?(this.header.classList.add("scrolled-past-header"),this.preventReveal?(window.clearTimeout(this.isScrolling),this.isScrolling=setTimeout(()=>{this.preventReveal=!1},66),requestAnimationFrame(this.hide.bind(this))):requestAnimationFrame(this.reveal.bind(this))):scrollTop<=this.headerBounds.top&&(this.header.classList.remove("scrolled-past-header"),requestAnimationFrame(this.reset.bind(this)));this.currentScrollTop=scrollTop}}hide(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky");return}else this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.header.classList.remove("shopify-section-header-show");this.closeMenuDisclosure()}reveal(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.add("shopify-section-header-sticky","shopify-section-header-show","animate"),this.header.classList.remove("shopify-section-header-hidden")}reset(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-show","shopify-section-header-sticky","animate")}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("details-disclosure"),this.disclosures.forEac
1h(disclosure=>disclosure.close())}}customElements.define("sticky-header",StickyHeader)}}catch(e){console.error(e)}})(),(function(){if(!(!__sections__["header-navigation-compact"]&&!Shopify.designMode))try{if(!customElements.get("dt-compact-navigation")){class DtCompactNavigation extends HTMLElement{connectedCallback(){this.controller=new AbortController;const options={signal:this.controller.signal};this.desktop=window.matchMedia("(min-width:1025px)"),this.entries=[],this.querySelectorAll("[data-dt-nav] > ul > .menu-lv-1").forEach(item=>{const link=item.querySelector(":scope > a"),panel=item.querySelector(":scope > .menu-dropdown, :scope > .header__submenu");if(!link||!panel)return;const entry={item,link,panel};this.entries.push(entry);const children=panel.querySelectorAll(".menu-dropdown__column > .site-nav > .site-nav-list > a, :scope > .menu-lv-2:not(.navigation_all_mobile) > a");children.length>6&&item.classList.add("dt-nav-wide"),children.forEach(child=>{child.getAttribute("href")===link.getAttribute("href")&&child.closest(".site-nav, .menu-lv-2")?.classList.add("dt-nav-shop-all")}),link.setAttribute("aria-expanded","false"),item.addEventListener("pointerenter",event=>{event.pointerType==="mouse"&&this.desktop.matches&&this.open(entry)},options),item.addEventListener("pointerleave",()=>{item.contains(document.activeElement)||this.close(entry)},options),item.addEventListener("focusin",()=>{this.desktop.matches&&this.open(entry)},options),item.addEventListener("focusout",event=>{item.contains(event.relatedTarget)||this.close(entry)},options),item.addEventListener("keydown",event=>{this.desktop.matches&&(event.key==="Escape"?(event.preventDefault(),event.stopPropagation(),link.focus(),this.close(entry)):event.key==="ArrowDown"&&event.target===link&&(event.preventDefault(),this.open(entry),panel.querySelector("a[href]:not(.navigation_all_mobile a)")?.focus()))},options)}),document.addEventListener("pointerdown",event=>{this.contains(event.target)||this.entries.forEach(entry=>this.close(entry))},options),window.addEventListener("resize",()=>{cancelAnimationFrame(this.resizeFrame),this.resizeFrame=requestAnimationFrame(()=>this.entries.forEach(entry=>{entry.link.getAttribute("aria-expanded")==="true"&&this.fit(entry)}))},{...options,passive:!0})}fit({panel}){panel.style.setProperty("--dt-panel-shift","0px");const rect=panel.getBoundingClientRect(),right=document.documentElement.clientWidth-16;let shift=Math.min(0,right-rect.right);rect.left+shift<16&&(shift+=16-(rect.left+shift)),panel.style.setProperty("--dt-panel-shift",`${shift}px`)}open(entry){this.entries.forEach(other=>{other!==entry&&this.close(other)}),entry.item.classList.remove("dt-nav-closed"),entry.link.setAttribute("aria-expanded","true"),this.fit(entry)}close(entry){entry.item.classList.add("dt-nav-closed"),entry.link.setAttribute("aria-expanded","false")}disconnectedCallback(){this.controller?.abort(),cancelAnimationFrame(this.resizeFrame)}}customElements.define("dt-compact-navigation",DtCompactNavigation)}if(!customElements.get("sticky-header")){class StickyHeader extends HTMLElement{connectedCallback(){if(this.header=this.closest(".section-header-navigation"),!this.header||(this.mode=this.dataset.stickyType,this.mode==="none"))return;this.controller=new AbortController;const options={signal:this.controller.signal,passive:!0};this.lastScroll=window.scrollY,this.setBounds(),this.preventReveal=!1,this.addEventListener("preventHeaderReveal",()=>{this.preventReveal=!0},{signal:this.controller.signal}),window.addEventListener("scroll",()=>{this.frame||(this.frame=requestAnimationFrame(()=>{this.frame=0,this.onScroll()}))},options),window.addEventListener("resize",()=>this.setBounds(),options),this.onScroll()}setBounds(){const rect=this.header.getBoundingClientRect();this.header.classList.contains("shopify-section-header-sticky")||(this.threshold=rect.bottom+window.scrollY),document.documentElement.style.setProperty("--header-height",`${this.header.offsetHeight}px`)}onScroll(){const current=window.scrollY,past=current>(this.threshold||0);if(this.header.classList.toggle("scrolled-past-header",past),this.mode==="always")this.header.classList.add("shopify-section-header-sticky");else if(this.mode==="on_scroll"){const engaged=this.matches(":focus-within")||!!this.querySelector(".dt-nav-compact .menu-lv-1:hover"),hide=past&¤t>this.lastScroll&&!engaged&&!this.preventHide;this.header.classList.toggle("shopify-section-header-sticky",past),this.header.classList.toggle("shopify-section-header-hidden",hide),this.header.classList.toggle("shopify-section-header-show",past&&!hide&&!this.preventReveal),this.header.classList.toggle("animate",past),hide&&this.querySelectorAll("details-disclosure").forEach(el=>el.close?.())}this.preventReveal=!1,this.lastScroll=current}disconnectedCallback(){this.controller?.abort(),cancelAnimationFrame(this.frame)}}customElements.define("sticky-header",StickyHeader)}}catch(e){console.error(e)}})(),(function(){if(!(!__sections__["header-navigation-full-elements"]&&!Shopify.designMode))try{var sticky=document.getElementsByTagName("sticky-header")[0].querySelector(".header-nav-full-elements");if(sticky!=null||sticky!=null){class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.querySelector(".section-header-navigation"),this.headerIsAlwaysSticky=this.getAttribute("data-sticky-type"),this.headerBounds={},this.setHeaderHeight(),window.matchMedia("(max-width: 990px)").addEventListener("change",this.setHeaderHeight.bind(this)),this.headerIsAlwaysSticky&&this.header.classList.add("shopify-section-header-sticky"),this.currentScrollTop=0,this.preventReveal=!1,this.predictiveSearch=this.querySelector("predictive-search"),this.onScrollHandler=this.onScroll.bind(this),this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.addEventListener("scroll",this.onScrollHandler,!1),this.createObserver()}setHeaderHeight(){document.documentElement.style.setProperty("--header-height",`${this.header.offsetHeight}px`)}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){new IntersectionObserver((entries,observer2)=>{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()}).observe(this.header)}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;if(!(this.predictiveSearch&&this.predictiveSearch.isOpen)){if(scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom){if(this.preventHide)return;this.header.classList.add("scrolled-past-header"),requestAnimationFrame(this.hide.bind(this))}else scrollTop<this.currentScrollTop&&scrollTop>this.headerBounds.bottom?(this.header.classList.add("scrolled-past-header"),this.preventReveal?(window.clearTimeout(this.isScrolling),this.isScrolling=setTimeout(()=>{this.preventReveal=!1},66),requestAnimationFrame(this.hide.bind(this))):requestAnimationFrame(this.reveal.bind(this))):scrollTop<=this.headerBounds.top&&(this.header.classList.remove("scrolled-past-header"),requestAnimationFrame(this.reset.bind(this)));this.currentScrollTop=scrollTop}}
1hide(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky");return}else this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.header.classList.remove("shopify-section-header-show");this.closeMenuDisclosure()}reveal(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.add("shopify-section-header-sticky","shopify-section-header-show","animate"),this.header.classList.remove("shopify-section-header-hidden")}reset(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-show","shopify-section-header-sticky","animate")}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("details-disclosure"),this.disclosures.forEach(disclosure=>disclosure.close())}}customElements.define("sticky-header",StickyHeader)}}catch(e){console.error(e)}})(),(function(){if(!(!__sections__["header-navigation-hamburger"]&&!Shopify.designMode))try{var sticky=document.getElementsByTagName("sticky-header")[0].querySelector(".header-nav-hamburger");if(sticky!=null||sticky!=null){class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.querySelector(".section-header-navigation"),this.headerIsAlwaysSticky=this.getAttribute("data-sticky-type"),this.headerBounds={},this.setHeaderHeight(),window.matchMedia("(max-width: 990px)").addEventListener("change",this.setHeaderHeight.bind(this)),this.headerIsAlwaysSticky&&this.header.classList.add("shopify-section-header-sticky"),this.currentScrollTop=0,this.preventReveal=!1,this.predictiveSearch=this.querySelector("predictive-search"),this.onScrollHandler=this.onScroll.bind(this),this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.addEventListener("load",this.checkLoadPosition.bind(this)),window.addEventListener("scroll",this.onScrollHandler,!1),this.createObserver()}setHeaderHeight(){document.documentElement.style.setProperty("--header-height",`${this.header.offsetHeight}px`)}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("load",this.checkLoadPosition),window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){new IntersectionObserver((entries,observer2)=>{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()}).observe(this.header)}checkLoadPosition(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop,headerGr=document.querySelectorAll(".shopify-section-group-header-group");headerGr[0].classList.contains("shopify-section-header-sticky")?scrollTop>headerGr[0].offsetHeight&&!this.header.classList.contains("scrolled-past-header")&&this.header.classList.add("shopify-section-header-hidden"):headerGr.forEach(item=>{if(item.classList.contains("shopify-section-header-sticky")){const itemPrev=item.previousElementSibling,itemPrevHeight=itemPrev.offsetHeight,itemPrevTop=itemPrev.offsetTop;scrollTop>itemPrevTop+itemPrevHeight&&!this.header.classList.contains("scrolled-past-header")&&this.header.classList.add("shopify-section-header-hidden")}})}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;if(!(this.predictiveSearch&&this.predictiveSearch.isOpen)){if(scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom){if(this.preventHide)return;this.header.classList.add("scrolled-past-header"),requestAnimationFrame(this.hide.bind(this))}else scrollTop<this.currentScrollTop&&scrollTop>this.headerBounds.bottom?(this.header.classList.add("scrolled-past-header"),this.preventReveal?(window.clearTimeout(this.isScrolling),this.isScrolling=setTimeout(()=>{this.preventReveal=!1},66),requestAnimationFrame(this.hide.bind(this))):requestAnimationFrame(this.reveal.bind(this))):scrollTop<=this.headerBounds.top&&(this.header.classList.remove("scrolled-past-header"),requestAnimationFrame(this.reset.bind(this)));this.currentScrollTop=scrollTop}}
1hide(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky");return}else this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.header.classList.remove("shopify-section-header-show"),document.querySelector("body").classList.add("section-header-is-hidden");this.closeMenuDisclosure()}reveal(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.add("shopify-section-header-sticky","shopify-section-header-show","animate"),this.header.classList.remove("shopify-section-header-hidden"),document.querySelector("body").classList.remove("section-header-is-hidden")}reset(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-show","shopify-section-header-sticky","animate"),document.querySelector("body").classList.remove("section-header-is-hidden")}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("details-disclosure"),this.disclosures.forEach(disclosure=>disclosure.close())}}customElements.define("sticky-header",StickyHeader)}}catch(e){console.error(e)}})(),(function(){if(!(!__sections__["header-navigation-left-aligned"]&&!Shopify.designMode))try{var sticky=document.getElementsByTagName("sticky-header")[0].querySelector(".header-nav-left-aligned");if(sticky!=null||sticky!=null){class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.querySelector(".section-header-navigation"),this.headerIsAlwaysSticky=this.getAttribute("data-sticky-type"),this.headerBounds={},this.setHeaderHeight(),window.matchMedia("(max-width: 990px)").addEventListener("change",this.setHeaderHeight.bind(this)),this.headerIsAlwaysSticky&&this.header.classList.add("shopify-section-header-sticky"),this.currentScrollTop=0,this.preventReveal=!1,this.predictiveSearch=this.querySelector("predictive-search"),this.onScrollHandler=this.onScroll.bind(this),this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.addEventListener("scroll",this.onScrollHandler,!1),this.createObserver()}setHeaderHeight(){document.documentElement.style.setProperty("--header-height",`${this.header.offsetHeight}px`)}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){new IntersectionObserver((entries,observer2)=>{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()}).observe(this.header)}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;if(!(this.predictiveSearch&&this.predictiveSearch.isOpen)){if(scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom){if(this.preventHide)return;this.header.classList.add("scrolled-past-header"),requestAnimationFrame(this.hide.bind(this))}else scrollTop<this.currentScrollTop&&scrollTop>this.headerBounds.bottom?(this.header.classList.add("scrolled-past-header"),this.preventReveal?(window.clearTimeout(this.isScrolling),this.isScrolling=setTimeout(()=>{this.preventReveal=!1},66),requestAnimationFrame(this.hide.bind(this))):requestAnimationFrame(this.reveal.bind(this))):scrollTop<=this.headerBounds.top&&(this.header.classList.remove("scrolled-past-header"),requestAnimationFrame(this.reset.bind(this)));this.currentScrollTop=scrollTop}}hide(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky");return}else this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.header.classList.remove("shopify-section-header-show");this.closeMenuDisclosure()}reveal(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.add("shopify-section-header-sticky","shopify-section-header-show","animate"),this.header.classList.remove("shopify-section-header-hidden")}reset(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-show","shopify-section-header-sticky","animate")}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("details-disclosure"),this.disclosures.forEac
1h(disclosure=>disclosure.close())}}customElements.define("sticky-header",StickyHeader)}}catch(e){console.error(e)}})(),(function(){if(!(!__sections__["header-navigation-plain"]&&!Shopify.designMode))try{var sticky=document.getElementsByTagName("sticky-header")[0].querySelector(".header-nav-plain");if(sticky!=null||sticky!=null){class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.querySelector(".section-header-navigation"),this.headerIsAlwaysSticky=this.getAttribute("data-sticky-type"),this.headerBounds={},this.setHeaderHeight(),window.matchMedia("(max-width: 990px)").addEventListener("change",this.setHeaderHeight.bind(this)),this.headerIsAlwaysSticky&&this.header.classList.add("shopify-section-header-sticky"),this.currentScrollTop=0,this.preventReveal=!1,this.predictiveSearch=this.querySelector("predictive-search"),this.onScrollHandler=this.onScroll.bind(this),this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.addEventListener("scroll",this.onScrollHandler,!1),this.createObserver()}setHeaderHeight(){document.documentElement.style.setProperty("--header-height",`${this.header.offsetHeight}px`)}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){new IntersectionObserver((entries,observer2)=>{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()}).observe(this.header)}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;if(!(this.predictiveSearch&&this.predictiveSearch.isOpen)){if(scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom){if(this.preventHide)return;this.header.classList.add("scrolled-past-header"),document.body.classList.add("scrolled-header"),requestAnimationFrame(this.hide.bind(this))}else scrollTop<this.currentScrollTop&&scrollTop>this.headerBounds.bottom?(this.header.classList.add("scrolled-past-header"),document.body.classList.add("scrolled-header"),this.preventReveal?(window.clearTimeout(this.isScrolling),this.isScrolling=setTimeout(()=>{this.preventReveal=!1},66),requestAnimationFrame(this.hide.bind(this))):requestAnimationFrame(this.reveal.bind(this))):scrollTop<=this.headerBounds.top&&(this.header.classList.remove("scrolled-past-header"),document.body.classList.remove("scrolled-header"),requestAnimationFrame(this.reset.bind(this)));this.currentScrollTop=scrollTop}}hide(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky");return}else this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.header.classList.remove("shopify-section-header-show");this.closeMenuDisclosure()}reveal(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.add("shopify-section-header-sticky","shopify-section-header-show","animate"),this.header.classList.remove("shopify-section-header-hidden")}reset(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-show","shopify-section-header-sticky","animate")}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("details-disclosure"),this.disclosures.forEach(disclosure=>disclosure.close())}}customElements.define("sticky-header",StickyHeader)}}catch(e){console.error(e)}})(),(function(){if(!(!__sections__["header-navigation-utility"]&&!Shopify.designMode))try{var sticky=document.getElementsByTagName("sticky-header")[0].querySelector(".header-nav-utility");if(sticky!=null||sticky!=null){class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.querySelector(".section-header-navigation"),this.headerIsAlwaysSticky=this.getAttribute("data-sticky-type"),this.headerBounds={},this.setHeaderHeight(),window.matchMedia("(max-width: 990px)").addEventListener("change",this.setHeaderHeight.bind(this)),this.headerIsAlwaysSticky&&this.header.classList.add("shopify-section-header-sticky"),this.currentScrollTop=0,this.preventReveal=!1,this.predictiveSearch=this.querySelector("predictive-search"),this.onScrollHandler=this.onScroll.bind(this),this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.addEventListener("scroll",this.onScrollHandler,!1),this.createObserver()}setHeaderHeight(){document.documentElement.style.setProperty("--header-height",`${this.header.offsetHeight}px`)}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){new IntersectionObserver((entries,observer2)=>{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()}).observe(this.header)}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;if(!(this.predictiveSearch&&this.predictiveSearch.isOpen)){if(scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom){if(this.preventHide)return;this.header.classList.add("scrolled-past-header"),requestAnimationFrame(this.hide.bind(this))}else scrollTop<this.currentScrollTop&&scrollTop>this.headerBounds.bottom?(this.header.classList.add("scrolled-past-header"),this.preventReveal?(window.clearTimeout(this.isScrolling),this.isScrolling=setTimeout(()=>{this.preventReveal=!1},66),requestAnimationFrame(this.hide.bind(this))):requestAnimationFrame(this.reveal.bind(this))):scrollTop<=this.headerBounds.top&&(this.header.classList.remove("scrolled-past-header"),requestAnimationFrame(this.reset.bind(this)));this.currentScrollTop=scrollTop}}
1hide(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky");return}else this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.header.classList.remove("shopify-section-header-show");this.closeMenuDisclosure()}reveal(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.add("shopify-section-header-sticky","shopify-section-header-show","animate"),this.header.classList.remove("shopify-section-header-hidden")}reset(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-show","shopify-section-header-sticky","animate")}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("details-disclosure"),this.disclosures.forEach(disclosure=>disclosure.close())}}customElements.define("sticky-header",StickyHeader)}}catch(e){console.error(e)}})(),(function(){if(!(!__sections__["header-navigation-vertical-menu"]&&!Shopify.designMode))try{var sticky=document.getElementsByTagName("sticky-header")[0].querySelector(".header-nav-vertical-menu");if(sticky!=null||sticky!=null){class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.querySelector(".section-header-navigation"),this.headerIsAlwaysSticky=this.getAttribute("data-sticky-type"),this.headerBounds={},this.setHeaderHeight(),window.matchMedia("(max-width: 990px)").addEventListener("change",this.setHeaderHeight.bind(this)),this.headerIsAlwaysSticky&&this.header.classList.add("shopify-section-header-sticky"),this.currentScrollTop=0,this.preventReveal=!1,this.predictiveSearch=this.querySelector("predictive-search"),this.onScrollHandler=this.onScroll.bind(this),this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.addEventListener("scroll",this.onScrollHandler,!1),this.createObserver()}setHeaderHeight(){document.documentElement.style.setProperty("--header-height",`${this.header.offsetHeight}px`)}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){new IntersectionObserver((entries,observer2)=>{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()}).observe(this.header)}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;if(!(this.predictiveSearch&&this.predictiveSearch.isOpen)){if(scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom){if(this.preventHide)return;this.header.classList.add("scrolled-past-header"),requestAnimationFrame(this.hide.bind(this))}else scrollTop<this.currentScrollTop&&scrollTop>this.headerBounds.bottom?(this.header.classList.add("scrolled-past-header"),this.preventReveal?(window.clearTimeout(this.isScrolling),this.isScrolling=setTimeout(()=>{this.preventReveal=!1},66),requestAnimationFrame(this.hide.bind(this))):requestAnimationFrame(this.reveal.bind(this))):scrollTop<=this.headerBounds.top&&(this.header.classList.remove("scrolled-past-header"),requestAnimationFrame(this.reset.bind(this)));this.currentScrollTop=scrollTop}}hide(){if(this.headerIsAlwaysSticky!=null){if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky");return}else this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.header.classList.remove("shopify-section-header-show");$(".vertical-menu").hasClass("vertical-menu__style_3")||$(".vertical-menu").addClass("vertical-menu__hide")}this.closeMenuDisclosure()}reveal(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.add("shopify-section-header-sticky","shopify-section-header-show","animate"),this.header.classList.remove("shopify-section-header-hidden")}reset(){if(this.headerIsAlwaysSticky!=null){if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-show","shopify-section-header-sticky","animate");$(".vertical-menu").hasClass("vertical-menu__style_3")||document.body.classList.contains("template-index")&&$(".vertical-menu").hasClass("vertical-menu__hide")&&$(".vertical-menu").removeClass("vertical-menu__hide")}}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("details-disclosure"),this.disclosures.forEac
1h(disclosure=>disclosure.close())}}customElements.define("sticky-header",StickyHeader)}}catch(e){console.error(e)}})()})(); 2//# sourceMappingURL=/cdn/shop/t/66/compiled_assets/scripts.js.map?v=113943020564985280621791397368
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.