var e=null,t,n,r,i=65,a,o,s=new Set,c=1111;l();function l(){if(!document.createElement(`link`).relList.supports(`prefetch`))return;let a=`instantVaryAccept`in document.body.dataset||`Shopify`in window,o=navigator.userAgent.indexOf(`Chrome/`);if(o>-1&&(e=parseInt(navigator.userAgent.substring(o+7))),a&&e&&e<110)return;let s=`instantMousedownShortcut`in document.body.dataset;t=`instantAllowQueryString`in document.body.dataset,n=`instantAllowExternalLinks`in document.body.dataset,r=`instantWhitelist`in document.body.dataset;let c={capture:!0,passive:!0},l=!1,p=!1,_=!1;if(`instantIntensity`in document.body.dataset){let e=document.body.dataset.instantIntensity;if(e.startsWith(`mousedown`))l=!0,e==`mousedown-only`&&(p=!0);else if(e.startsWith(`viewport`)){let t=navigator.connection&&navigator.connection.saveData,n=navigator.connection&&navigator.connection.effectiveType&&navigator.connection.effectiveType.includes(`2g`);!t&&!n&&(e==`viewport`?document.documentElement.clientWidth*document.documentElement.clientHeight<45e4&&(_=!0):e==`viewport-all`&&(_=!0))}else{let t=parseInt(e);isNaN(t)||(i=t)}}if(p||document.addEventListener(`touchstart`,u,c),l?s||document.addEventListener(`mousedown`,f,c):document.addEventListener(`mouseover`,d,c),s&&document.addEventListener(`mousedown`,m,c),_){let e=window.requestIdleCallback;e||=e=>{e()},e(function(){let e=new IntersectionObserver(t=>{t.forEach(t=>{if(t.isIntersecting){let n=t.target;e.unobserve(n),g(n.href)}})});document.querySelectorAll(`a`).forEach(t=>{h(t)&&e.observe(t)})},{timeout:1500})}}function u(e){a=performance.now();let t=e.target.closest(`a`);h(t)&&g(t.href,`high`)}function d(e){if(performance.now()-a<c||!(`closest`in e.target))return;let t=e.target.closest(`a`);h(t)&&(t.addEventListener(`mouseout`,p,{passive:!0}),o=setTimeout(()=>{g(t.href,`high`),o=void 0},i))}function f(e){let t=e.target.closest(`a`);h(t)&&g(t.href,`high`)}function p(e){e.relatedTarget&&e.target.closest(`a`)==e.relatedTarget.closest(`a`)||(o&&=(clearTimeout(o),void 0))}function m(e){if(performance.now()-a<c)return;let t=e.target.closest(`a`);if(e.which>1||e.metaKey||e.ctrlKey||!t)return;t.addEventListener(`click`,function(e){e.detail!=1337&&e.preventDefault()},{capture:!0,passive:!1,once:!0});let n=new MouseEvent(`click`,{view:window,bubbles:!0,cancelable:!1,detail:1337});t.dispatchEvent(n)}function h(i){if(!(!i||!i.href)&&!(r&&!(`instant`in i.dataset))&&!(i.origin!=location.origin&&(!(n||`instant`in i.dataset)||!e))&&[`http:`,`https:`].includes(i.protocol)&&!(i.protocol==`http:`&&location.protocol==`https:`)&&!(!t&&i.search&&!(`instant`in i.dataset))&&!(i.hash&&i.pathname+i.search==location.pathname+location.search)&&!(`noInstant`in i.dataset))return!0}function g(e,t=`auto`){if(s.has(e))return;let n=document.createElement(`link`);n.rel=`prefetch`,n.href=e,n.fetchPriority=t,n.as=`document`,document.head.appendChild(n),s.add(e)}