/*! instant.page v2.0.1 - (C) 2019 Alexandre Dieulot - https://instant.page/license */ let t,e,n;const o=document.createElement("link"),s=o.relList&&o.relList.supports&&o.relList.supports("prefetch"),a=navigator.connection&&navigator.connection.saveData,i="instantAllowQueryString"in document.body.dataset,r="instantAllowExternalLinks"in document.body.dataset,d="instantWhitelist"in document.body.dataset;let c=65,u=!1,l=!1;if("instantIntensity"in document.body.dataset)if("mousedown"==document.body.dataset.instantIntensity.substr(0,"mousedown".length))u=!0,"mousedown-only"==document.body.dataset.instantIntensity&&(l=!0);else{const t=parseInt(document.body.dataset.instantIntensity);isNaN(t)||(c=t)}if(s&&!a){o.rel="prefetch",document.head.appendChild(o);const s={capture:!0,passive:!0};l||document.addEventListener("touchstart",function(e){n=performance.now();const o=e.target.closest("a");if(!m(o))return;o.addEventListener("touchcancel",f,{passive:!0}),o.addEventListener("touchend",f,{passive:!0}),t=o.href,p(o.href)},s),u?document.addEventListener("mousedown",function(e){const n=e.target.closest("a");if(!m(n))return;n.addEventListener("mouseout",h,{passive:!0}),t=n.href,p(n.href)},s):document.addEventListener("mouseover",function(o){if(performance.now()-n<1100)return;const s=o.target.closest("a");if(!m(s))return;s.addEventListener("mouseout",h,{passive:!0}),t=s.href,e=setTimeout(()=>{p(s.href),e=void 0},c)},s)}function f(){t=void 0,v()}function h(n){n.relatedTarget&&n.target.closest("a")==n.relatedTarget.closest("a")||(e&&(clearTimeout(e),e=void 0),t=void 0,v())}function m(e){if(e&&e.href&&t!=e.href&&(!d||"instant"in e.dataset)&&(r||e.origin==location.origin||"instant"in e.dataset)&&["http:","https:"].includes(e.protocol)&&("http:"!=e.protocol||"https:"!=location.protocol)&&(i||!e.search||"instant"in e.dataset)&&!(e.hash&&e.pathname+e.search==location.pathname+location.search||"noInstant"in e.dataset))return!0}function p(t){o.href=t}function v(){o.removeAttribute("href")}