1var anchorOffset={isLoading:!1,init:function(){anchorOffset.loadPageWithAnchor(window.location.hash),$(".scroll").on("click",function(){var e;-1!==$(this).attr("href").indexOf("#")&&(e=$(this).attr("href").split("#")[1],anchorOffset.loadPageWithAnchor("#"+e))})},loadPageWithAnchor:function(e){e&&document.getElementById(e.split("#")[1])&&$("html, body").animate({scrollTop:$(e).offset().top-$("header").first().height()-20+"px"},1e3,"swing")},scrollToWithHeaderOffset:function(e){e=e.offsetTop-document.querySelector("header").offsetHeight-20;window.scrollTo({top:e,behavior:"smooth"})},iOSDevices:function(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document},navigationInListContainer:function(){return null!==(document.querySelector("#productListContainer")||document.querySelector("#search-algolia-main")||document.querySelector("#inspirationList"))},setCookie:function(e,t){var n=new Date,n=(n.setTime(n.getTime()+864e5),"expires="+n.toUTCString());document.cookie=e+"="+t+";"+n+";path=/"},deleteCookie:function(e){document.cookie=e+"=;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/"},getCookie:function(e){var n=e+"=",i=document.cookie.split(";");for(let t=0;t<i.length;t++){let e=i[t];for(;" "==e.charAt(0);)e=e.substring(1);if(0==e.indexOf(n))return e.substring(n.length,e.length)}return""},recoverPositionNavigationIOS:function(){var e=anchorOffset.getCookie("backElement");e&&(window.location.pathname.endsWith("/inspirations")?this.waitForInspirationElement:this.waitForElement).call(this,e).then(e=>{e&&requestAnimationFrame(()=>{anchorOffset.ensureElementInView(e).then(()=>{anchorOffset.deleteCookie("backElement")})})})},getIndexContainerIOS:function(){let e="";return null!=document.querySelector("#productListContainer")?e="#productListContainer":null!=document.querySelector("#search-algolia-main")?e="#search-algolia-main":null!=document.querySelector("#inspirationList")&&(e="#inspirationList"),e},loadEventForIOS:function(){var e=anchorOffset.getIndexContainerIOS();if(e){var t=document.querySelector(e);if(t)switch(e){case"#productListContainer":t.addEventListener("click",e=>{e=e.target.closest(".itemBlock.itemPlp")?.children[0]?.id;e&&anchorOffset.setCookie("backElement","#"+e)});break;case"#search-algolia-main":t.addEventListener("click",e=>{e=e.target.closest(".itemBlock")?.children[0]?.id;e&&anchorOffset.setCookie("backElement","#"+e)});break;case"#inspirationList":t.addEventListener("click",e=>{e=e.target.closest(".card.ga_promotion")?.dataset?.ga_promotion_id;e&&anchorOffset.setCookie("backElement",'[data-ga_promotion_id="'+e+'"]')},!0)}}},waitForElement:function(o,r=1e4){return new Promise((t,e)=>{var n=document.querySelector(o);if(n)return t(n);let i=new MutationObserver(()=>{var e=document.querySelector(o);e&&(i.disconnect(),t(e))});i.observe(document.body,{childList:!0,subtree:!0}),setTimeout(()=>{i.disconnect(),e(new Error(`Element "${o}" no found in ${r}ms`)),anchorOffset.deleteCookie("backElement")},r)})},waitForInspirationElement:function(r){return new Promise(n=>{let i=0,o=setInterval(()=>{var e=document.querySelector(r),t=document.querySelector("#moreInspirationsButton");25<=++i?(clearInterval(o),anchorOffset.deleteCookie("backElement")):e&&this.isPartiallyVisible(e)?(clearInterval(o),n(e)):this.isLoading||t&&(t.scrollIntoView({block:"end",inline:"nearest",behavior:"auto"}),e&&this.isPartiallyVisible(e)?(clearInterval(o),n(e)):this.isPartiallyVisible(t)&&(this.isLoadingisLoading=!0,t.click(),setTimeout(()=>{this.isLoading=!1},350)))},350)})},ensureElementInView:async function(t,n=5){for(let e=0;e<n;e++)if(t.scrollIntoView({block:"center",behavior:"smooth"}),await new Promise(e=>setTimeout(e,400)),anchorOffset.isInViewport(t))return!0;return!1},isInViewport:function(e){e=e.getBoundingClientRect();return 0<=e.top&&0<=e.left&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)},isPartiallyVisible:function(e){var t;return!!e&&"none"!==(t=window.getComputedStyle(e)).display&&"hidden"
1!==t.visibility&&0!==parseFloat(t.opacity)&&0!==e.offsetWidth&&0!==e.offsetHeight&&-10<(t=e.getBoundingClientRect()).bottom&&t.top<window.innerHeight+10}};if(window.addEventListener("load",()=>{window.location.hash&&scroll(0,0),setTimeout(function(){window.location.hash&&scroll(0,0)},1),anchorOffset.init(),window.onhashchange=anchorOffset.init}),anchorOffset.iOSDevices())try{window.addEventListener("pageshow",function(e){e.persisted||(anchorOffset.loadEventForIOS(),"back_forward"===performance.getEntriesByType("navigation")[0]?.type&&requestAnimationFrame(()=>{setTimeout(()=>{anchorOffset.navigationInListContainer()&&anchorOffset.recoverPositionNavigationIOS()},200)}))})}catch(e){console.error(e)}
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.