(async()=>{if(NitroPack.scriptReady){console.log((document.currentScript?.src||"Nitro Script")+" is already initialized. The execution will be skipped.");return}NitroPack.scriptReady=true;(async r=>{const i=document.cookie.includes("9d63262f59cd9b3378f01392");const e={init:()=>{if(r.debugLog!==undefined)return;r.debugLog={prefetches:[],lcpEvents:[],other:[]}},logPrefetch:(e,t,n)=>{if(!i)return;r.debugLog.prefetches.push({url:e,type:t,initiator:n,timestamp:performance.now()})},logLcpEvent:(e,t=null)=>{if(!i)return;r.debugLog.lcpEvents.push({message:e,data:t,timestamp:performance.now()})},logOther:(e,t=null)=>{if(!i)return;r.debugLog.other.push({message:e,data:t,timestamp:performance.now()})}};if(i){e.init()}r.debugLogger=e})(window.NitroPack=window.NitroPack||{});(function(){var R=function(e){"use strict";var l,c,n,u,t,d=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},o=function(e){if("loading"===document.readyState)return"loading";var t=d();if(t){if(e<t.domInteractive)return"loading";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return"dom-interactive";if(0===t.domComplete||e<t.domComplete)return"dom-content-loaded"}return"complete"},F=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},f=function(e,t){var n="";try{for(;e&&9!==e.nodeType;){var r=e,i=r.id?"#"+r.id:F(r)+(r.classList&&r.classList.value&&r.classList.value.trim()&&r.classList.value.trim().length?"."+r.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+i.length>(t||100)-1)return n||i;if(n=n?i+">"+n:i,r.id)break;e=r.parentNode}}catch(e){}return n},r=-1,a=function(){return r},g=function(t){addEventListener("pageshow",function(e){e.persisted&&(r=e.timeStamp,t(e))},!0)},p=function(){var e=d();return e&&e.activationStart||0},h=function(e,t){var n=d(),r="navigate";a()>=0?r="back-forward-cache":n&&(document.prerendering||p()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-")));return{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},m=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},v=function(t,n,r,i){var o,a;return function(e){n.value>=0&&(e||i)&&((a=n.value-(o||0))||void 0===o)&&(o=n.value,n.delta=a,n.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(n.value,r),t(n))}},w=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},y=function(t){var e=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||t(e)};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},S=function(t){var n=!1;return function(e){n||(t(e),n=!0)}},i=-1,s=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},L=function(e){"hidden"===document.visibilityState&&i>-1&&(i="visibilitychange"===e.type?e.timeStamp:0,x())},U=function(){addEventListener("visibilitychange",L,!0),addEventListener("prerenderingchange",L,!0)},x=function(){removeEventListener("visibilitychange",L,!0),removeEventListener("prerenderingchange",L,!0)},T=function(){return i<0&&(i=s(),U(),g(function(){setTimeout(function(){i=s(),U()},0)})),{get firstHiddenTime(){return i}}},b=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},E=[1800,3e3],X=function(o,a){a=a||{},b(function(){var t,n=T(),r=h("FCP"),i=m("paint",function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(i.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-p(),0),r.entries.push(e),t(!0)))})});i&&(t=v(o,r,E,a.reportAllChanges),g(function(e){r=h("FCP"),t=v(o,r,E,a.reportAllChanges),w(function(){r.value=performance.now()-e.timeStamp,t(!0)})}))})},P=[.1,.25],I={passive:!0,capture:!0},j=new Date,B=function(e,t){l||(l=t,c=e,n=new Date,q(removeEventListener),V())},V=function(){if(c>=0&&c<n-j){var t={entryType:"first-input",name:l.type,target:l.target,cancelable:l.cancelable,startTime:l.timeStamp,processingStart:l.timeStamp+c};u.forEach(function(e){e(t)}),u=[]}},H=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){B(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,I),removeEventListener("pointercancel",r,I)};addEventListener("pointerup",n,I),addEventListener("pointercancel",r,I)}(t,e):B(t,e)}},q=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return t(e,H,I)})},C=[100,300],J=function(a,s){s=s||{},b(function(){var t,n=T(),r=h("FID"),i=function(e){e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),t(!0))},e=function(e){e.forEach(i)},o=m("first-input",e);t=v(a,r,C,s.reportAllChanges),o&&y(S(function(){e(o.takeRecords()),o.disconnect()})),o&&g(function(){var e;r=h("FID"),t=v(a,r,C,s.reportAllChanges),u=[],c=-1,l=null,q(addEventListener),e=i,u.push(e),V()})})},K=0,N=1/0,k=0,Z=function(e){e.forEach(function(e){e.interactionId&&(N=Math.min(N,e.interactionId),k=Math.max(k,e.interactionId),K=k?(k-N)/7+1:0)})},W=function(){return t?K:performance.interactionCount||0},G=function(){"interactionCount"in performance||t||(t=m("event",Z,{type:"event",buffered:!0,durationThreshold:0}))},O=[200,500],$=0,z=function(){return W()-$},D=[],R={},Q=function(e){var t=D[D.length-1],n=R[e.interactionId];if(n||D.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};R[r.id]=r,D.push(r)}D.sort(function(e,t){return t.latency-e.latency}),D.splice(10).forEach(function(e){delete R[e.id]})}},Y=function(o,a){a=a||{},b(function(){var e;G();var r,i=h("INP"),t=function(e){e.forEach(function(t){(t.interactionId&&Q(t),"first-input"===t.entryType)&&(!D.some(function(e){return e.entries.some(function(e){return t.duration===e.duration&&t.startTime===e.startTime})})&&Q(t))});var t,n=(t=Math.min(D.length-1,Math.floor(z()/50)),D[t]);n&&n.latency!==i.value&&(i.value=n.latency,i.entries=n.entries,r())},n=m("event",t,{durationThreshold:null!==(e=a.durationThreshold)&&void 0!==e?e:40});r=v(o,i,O,a.reportAllChanges),n&&("interactionId"in PerformanceEventTiming.prototype&&n.observe({type:"first-input",buffered:!0}),y(function(){t(n.takeRecords()),i.value<0&&z()>0&&(i.value=0,i.entries=[]),r(!0)}),g(function(){D=[],$=W(),i=h("INP"),r=v(o,i,O,a.reportAllChanges)}))})},M=[2500,4e3],_={},A=[800,1800],ee=function e(t){document.prerendering?b(function(){return e(t)}):"complete"!==document.readyState?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},te=function(n,r){r=r||{};var i=h("TTFB"),o=v(n,i,A,r.reportAllChanges);ee(function(){var e=d();if(e){var t=e.responseStart;if(t<=0||t>performance.now())return;i.value=Math.max(t-p(),0),i.entries=[e],o(!0),g(function(){i=h("TTFB",0),(o=v(n,i,A,r.reportAllChanges))(!0)})}})};return e.CLSThresholds=P,e.FCPThresholds=E,e.FIDThresholds=C,e.INPThresholds=O,e.LCPThresholds=M,e.TTFBThresholds=A,e.onCLS=function(t,e){!function(a,s){s=s||{},X(S(function(){var t,n=h("CLS",0),r=0,i=[],e=function(e){e.forEach(function(e){if(!e.hadRecentInput){var t=i[0],n=i[i.length-1];r&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(r+=e.value,i.push(e)):(r=e.value,i=[e])}}),r>n.value&&(n.value=r,n.entries=i,t())},o=m("layout-shift",e);o&&(t=v(a,n,P,s.reportAllChanges),y(function(){e(o.takeRecords()),t(!0)}),g(function(){r=0,n=h("CLS",0),t=v(a,n,P,s.reportAllChanges),w(function(){return t()})}),setTimeout(t,0))}))}(function(e){!function(e){if(e.entries.length){var t=e.entries.reduce(function(e,t){return e&&e.value>t.value?e:t});if(t&&t.sources&&t.sources.length){var n=(r=t.sources).find(function(e){return e.node&&1===e.node.nodeType})||r[0];if(n)return void(e.attribution={largestShiftTarget:f(n.node),largestShiftTime:t.startTime,largestShiftValue:t.value,largestShiftSource:n,largestShiftEntry:t,loadState:o(t.startTime)})}}var r;e.attribution={}}(e),t(e)},e)},e.onFCP=function(t,e){X(function(e){!function(e){if(e.entries.length){var t=d(),n=e.entries[e.entries.length-1];if(t){var r=t.activationStart||0,i=Math.max(0,t.responseStart-r);return void(e.attribution={timeToFirstByte:i,firstByteToFCP:e.value-i,loadState:o(e.entries[0].startTime),navigationEntry:t,fcpEntry:n})}}e.attribution={timeToFirstByte:0,firstByteToFCP:e.value,loadState:o(a())}}(e),t(e)},e)},e.onFID=function(t,e){J(function(e){!function(e){var t=e.entries[0];e.attribution={eventTarget:f(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:o(t.startTime)}}(e),t(e)},e)},e.onINP=function(t,e){Y(function(e){!function(e){if(e.entries.length){var t=e.entries.sort(function(e,t){return t.duration-e.duration||t.processingEnd-t.processingStart-(e.processingEnd-e.processingStart)})[0];e.attribution={eventTarget:f(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:o(t.startTime)}}else e.attribution={}}(e),t(e)},e)},e.onLCP=function(t,e){!function(a,s){s=s||{},b(function(){var n,r=T(),i=h("LCP"),e=function(e){var t=e[e.length-1];t&&t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-p(),0),i.entries=[t],n())},t=m("largest-contentful-paint",e);if(t){n=v(a,i,M,s.reportAllChanges);var o=S(function(){_[i.id]||(e(t.takeRecords()),t.disconnect(),_[i.id]=!0,n(!0))});["keydown","click"].forEach(function(e){addEventListener(e,function(){return setTimeout(o,0)},!0)}),y(o),g(function(e){i=h("LCP"),n=v(a,i,M,s.reportAllChanges),w(function(){i.value=performance.now()-e.timeStamp,_[i.id]=!0,n(!0)})})}})}(function(e){!function(e){if(e.entries.length){var t=d();if(t){var n=t.activationStart||0,r=e.entries[e.entries.length-1],i=r.url&&performance.getEntriesByType("resource").filter(function(e){return e.name===r.url})[0],o=Math.max(0,t.responseStart-n),a=Math.max(o,i?(i.requestStart||i.startTime)-n:0),s=Math.max(a,i?i.responseEnd-n:0),l=Math.max(s,r?r.startTime-n:0),c={element:f(r.element),timeToFirstByte:o,resourceLoadDelay:a-o,resourceLoadTime:s-a,elementRenderDelay:l-s,navigationEntry:t,lcpEntry:r};return r.url&&(c.url=r.url),i&&(c.lcpResourceEntry=i),void(e.attribution=c)}}e.attribution={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadTime:0,elementRenderDelay:e.value}}(e),t(e)},e)},e.onTTFB=function(t,e){te(function(e){!function(e){if(e.entries.length){var t=e.entries[0],n=t.activationStart||0,r=Math.max(t.domainLookupStart-n,0),i=Math.max(t.connectStart-n,0),o=Math.max(t.requestStart-n,0);e.attribution={waitingTime:r,dnsTime:i-r,connectionTime:o-i,requestTime:e.value-o,navigationEntry:t}}else e.attribution={waitingTime:0,dnsTime:0,connectionTime:0,requestTime:0}}(e),t(e)},e)},Object.defineProperty(e,"__esModule",{value:!0}),e}({});(t=>{const e="DHBNogDjQoSkKYOEMlLSJRpZAyyBcXgO";const r="nitroPv";const i=new EventTarget;const o=window.location.href;const n=performance.getEntriesByType("navigation")[0];const a=!!window.IS_NITROPACK;const s=t.coreVersion&&t.coreVersion!=="%CORE_VERSION%"?t.coreVersion:"na";const l={UX:"https://to.getnitropack.com",UB:"https://to.getnitropack.com/dropoff"};const c=["navigation-ai"];const u=()=>btoa(Date.now()+Math.random());const d=e=>{const t=Math.floor(Math.random()*e.length);return e[t]};const f=[];let g=false;t.predictStrategy=d(c);t.deviceSpeed={deviceCores:null,deviceMemory:null,devicePerformance:null};if(localStorage.getItem("nitroDeviceSpeed")){t.deviceSpeed=JSON.parse(localStorage.getItem("nitroDeviceSpeed"))}t.isPrerenderedPage=document.prerendering||self.performance?.getEntriesByType?.("navigation")[0]?.activationStart>0;t.isPrefetchedPage=!t.isPrerenderedPage&&n.responseStart-n.requestStart<=5;t.isBackForwardRestored=false;t.setTargetUrl=e=>sessionStorage.setItem("nitroTargetUrl",JSON.stringify({url:e,expiration:Date.now()+5e3}));t.deleteTargetUrl=()=>sessionStorage.removeItem("nitroTargetUrl");t.getTargetUrl=()=>{const e=sessionStorage.getItem("nitroTargetUrl");if(!e){return o}const{url:t,expiration:n}=JSON.parse(e);if(n<Date.now()){sessionStorage.removeItem("nitroTargetUrl");return o}return t};const p=()=>{const e=document.cookie.split(";").find(e=>e.trim().startsWith("NITRO_SCRIPT_DEBUG="));return e?e.split("=")[1]:null};const h=(e,t="")=>{if(p()){localStorage.setItem("nitroDebug:"+t+"_"+u(),JSON.stringify(e))}};let m=false;if(window.Worker&&!t.deviceSpeed){const O=`self.onmessage=e=>{let r=()=>{let e=navigator.hardwareConcurrency||null,r=navigator.deviceMemory||null,n=performance.now();for(let o=0;o<1e5;o++);let l=performance.now(),c=l-n;return{deviceCores:e,deviceMemory:r,devicePerformance:c}},n=r();postMessage(n)};`;const D=new Worker(URL.createObjectURL(new Blob([O],{type:"application/javascript"})));D.onmessage=e=>{localStorage.setItem("nitroDeviceSpeed",JSON.stringify(e.data))};D.postMessage("start")}let v={};Object.keys(l).forEach(e=>{v[e]=false});const w=()=>navigator.connection?navigator.connection.effectiveType:"u";const y=()=>t.isBackForwardRestored?"_bfr":t.isPrerenderedPage?"_prr":t.isPrefetchedPage?"_pre":"_dow";const S=(e,t)=>`Nitro${e.toUpperCase()}:${t}_${u()}_${s}_${w()}${a?"_o":"_u"}${y()}`;const L=()=>{const e="nitroVisitor";let t=JSON.parse(localStorage.getItem(e));if(!t||Date.now()>t.expiration){const n=Date.now()+(Math.random()+1).toString(36).substring(2);t={id:n,expiration:Date.now()+864e5};localStorage.setItem(e,JSON.stringify(t))}return t.id||""};t.visitorId=L();const T=e=>{const t=JSON.parse(localStorage.getItem(r))||{};const n=t[e]?.pop();return n&&Date.now()<=n.expiration?n.id:""};t.setPageViewId=e=>{const t=JSON.parse(localStorage.getItem(r))||{};t[e]=t[e]||[];const n=Date.now()+(Math.random()+1).toString(36).substring(2);t[e].push({id:n,expiration:Date.now()+3e4});localStorage.setItem(r,JSON.stringify(t));return n};const b=e=>{const t=JSON.parse(localStorage.getItem(r))||{};if(t&&t[e]){const n=t[e].pop();if(n){if(Date.now()>n.expiration){t[e]=[]}localStorage.setItem(r,JSON.stringify(t))}}};let E=t.getTargetUrl();let P=T(E);if(!P&&!t.isPrerenderedPage){P=t.setPageViewId(E)}const I=e=>{if(t.isPrerenderedPage){document.addEventListener("visibilitychange",async()=>{if(document.visibilityState==="visible"){setTimeout(()=>{E=t.getTargetUrl();t.deleteTargetUrl();P=T(E);if(!P){P=t.setPageViewId(E)}b(E);e(P)},500)}})}else{E=t.getTargetUrl();t.deleteTargetUrl();b(E);e(P)}};let C=new Promise(I);t.addEventListener=(...e)=>i.addEventListener(...e);t.dispatchEvent=(e,t,n={})=>i.dispatchEvent(new CustomEvent(e,{...n,detail:t}));t.removeEventListener=(...e)=>i.removeEventListener(...e);window.addEventListener("load",()=>{g=document.body.classList.contains("admin-bar")||document.body.classList.contains("wp-admin");if(m||t.isPrerenderedPage){return}t.dispatchEvent("pageLoadReady",{trigger:"load"});m=true},true);window.addEventListener("pageshow",e=>{if(e.persisted){t.isPrerenderedPage=false;t.isPrefetchedPage=false;t.isBackForwardRestored=true;P=t.setPageViewId(E);C=new Promise(I);if(document.visibilityState==="visible"&&!t.isPrerenderedPage){t.dispatchEvent("pageLoadReady",{trigger:"pageshow"});m=true}}});window.addEventListener("pagehide",()=>t.dispatchEvent("pageHideReady",{trigger:"pagehide"}),true);document.addEventListener("visibilitychange",()=>{if(document.visibilityState==="visible"){if(!m){t.dispatchEvent("pageLoadReady",{trigger:"visibilitychange"});m=true}}else{t.dispatchEvent("pageHideReady",{trigger:"visibilitychange"})}},true);t.waitForDomLoaded=()=>{return new Promise(e=>{if(document.readyState==="complete"){e()}else{window.addEventListener("load",e)}})};const N=(n,r)=>{const i=l[n];const o=new FormData;o.append("key",e);if(Object.keys(r).length){let e={};for(let t in r){h({key:t,value:r[t]},n);if(r[t].url){let e=new URL(r[t].url);if(e.host==="localhost"){continue}}e[t]=r[t]}o.append("props",JSON.stringify(e));let t=null;if(navigator.sendBeacon&&navigator.sendBeacon(i,o)){t=Promise.resolve()}else{t=fetch(i,{body:o,method:"POST",keepalive:true})}t.then(()=>{f.forEach(e=>{localStorage.removeItem(e)});f.length=0})}};const k=t=>{let n=[];for(let e=0;e<localStorage.length;e++){const r=localStorage.key(e);if(r&&r.indexOf("Nitro"+t+":")===0){const i=r.split(":")[1].replace(/_.*?_/,"_");const o=JSON.parse(localStorage.getItem(r));if(!f.includes(r)){n[i]=Object.assign(n[i]||{},o);f.push(r)}}}return n};t.flush=e=>{if(!window.localStorage){return}const t=k(e);if(Object.keys(t).length){N(e,t);v[e]=false}};t.push=async(e,t,n)=>{if(Object.keys(n).length===0||g){return}let r=n.pvId?n.pvId:await C;let i=new URL(n.url||E);n.url=i.href.replace(i.hash,i.hash.substring(0,30));let o=S(e,r)+t;if(!f.includes(o)&&!localStorage.getItem(o)){localStorage.setItem(o,JSON.stringify(n))}};t.flushQuiet=e=>{if(!v[e]){v[e]=true;setTimeout(()=>t.flush(e),1e3)}};t.currentAddress=o;t.webVitals=R})(window.NitroPack=window.NitroPack||{})})();(i=>{const o="UX";const a=performance.getEntriesByType("navigation")[0];const e=typeof NPRL!="undefined";const t=e?"loadNitro":"load";const F=["missReason","pageType","isEligibleForOptimization"];const U=e=>!isNaN(parseFloat(e))&&isFinite(e);const x=sessionStorage.getItem("predictStrategy")||"";let n=null;let r=null;let s=null;let l=null;let c=null;let u=null;let d={sessionEntry:null,unknown:null,afterStyles:null,afterPageLoad:null,afterScroll:null,total:null,raw:null,largestShiftTarget:null};let f=null;let g=null;let p={};let h={};let m=0;let v=0;let w=0;let y=0;let S=null;let L=null;let X=window.scrollY||window.pageYOffset;let T={ttfb:null,netNavType:null,netRedirectCount:null,netRedirectReferrer:null,timeOrigin:null,redirectStart:null,redirectEnd:null,workerStart:null,fetchStart:null,domainLookupStart:null,domainLookupEnd:null,connectStart:null,secureConnectionStart:null,connectEnd:null,requestStart:null,firstInterimResponseStart:null,responseStart:null,responseEnd:null,domInteractive:null,domContentLoadedEventStart:null,domContentLoadedEventEnd:null,domComplete:null,loadEventStart:null,loadEventEnd:null};const j=()=>{let t={};let n="NONE";if(i.isPrerenderedPage||i.isPrefetchedPage){n="UNKNOWN"}let r=JSON.parse(sessionStorage.getItem("nitro_prefetched_urls"));if(r!==null){sessionStorage.removeItem("nitro_prefetched_urls");let e=window.location.href;if(r[e]){n=r[e].initiator}t.prefetchCount=Object.entries(r).length}t.prefetchInitiator=n;return t};h=j();let b=()=>new Promise(e=>e(T));if(typeof PerformanceObserver!=="undefined"){b=()=>new Promise(r=>{const e=new PerformanceObserver(e=>{let n={navigate:0,reload:1,back_forward:2,prerender:3};e.getEntries().forEach(t=>{if(t.loadEventEnd>0){Object.keys(T).forEach(e=>{if(t[e]!==undefined){T[e]=U(t[e])?Math.round(t[e]):t[e]}});if(!t.activationStart){t.activationStart=0}T["ttfb"]=!i.isPrerenderedPage?Math.round(t.responseStart-t.connectEnd):0;T["netNavType"]=n.hasOwnProperty(t.type)?n[t.type]:-1;T["netRedirectReferrer"]=document.referrer.length?document.referrer:null;T["netRedirectCount"]=t.redirectCount;T["timeOrigin"]=Math.round(performance.timeOrigin);r(T)}})});e.observe({type:"navigation",buffered:true})})}const B=()=>{l=null;c=null;u=null;E();f=null;g=null;p={};m=0};const E=()=>{d={sessionEntry:null,unknown:null,afterStyles:null,afterPageLoad:null,afterScroll:null,total:null,raw:null,largestShiftTarget:null}};const V=()=>i.push(o,":pageview",{pv:1});const H=()=>i.push(o,":elementsCount",{elementsCountDocReady:w,elementsCountPageLoad:y});const P=e=>i.push(o,":recordType",{recordType:e});const q=()=>v&&i.push(o,":clicks",{clicks:v});const I=()=>i.push(o,":visitorId",{visitorId:i.visitorId});const C=()=>i.push(o,":scrollPosition",{scrollPosition:X});const N=()=>i.push(o,":viewportSize",{viewportSize:S});const k=()=>i.push(o,":screenSize",{screenSize:L});const O=e=>i.push(o,":cwv",e);const D=()=>i.push(o,":isHeadlessBrowser",{isHeadlessBrowser:!navigator.languages.length});const J=()=>i.push(o,":pagePrefetches",h);const K=()=>i.push(o,":deviceSpeed",i.deviceSpeed);const Z=()=>{let e=z();Object.assign(T,{lastNavDiff:e});i.push(o,":net",T)};const W=()=>{let e={};const t=a.notRestoredReasons;if(t===null){e.bfCacheEligible=1}else if(t===undefined){e.bfCacheEligible=-1}else if(t){e.bfCacheEligible=t.blocked?0:1;e.bfCacheNotEligibleReason=t.reasons?JSON.stringify(t.reasons):""}i.push(o,":backForwardCache",e)};const G=()=>{if(typeof NPTelemetryMetadata==="object"){Object.keys(NPTelemetryMetadata).forEach(e=>{if(!F.includes(e)){delete NPTelemetryMetadata[e]}});i.push(o,":metadata",{metaData:NPTelemetryMetadata})}};const $=()=>{i.push(o,":predictStrategy",{predictStrategy:x});sessionStorage.setItem("predictStrategy",i.predictStrategy)};const z=()=>{if(window.localStorage){const e="NPTelemetryMeta:lastpv";const t=parseInt(localStorage.getItem(e));const n=Date.now();localStorage.setItem(e,n);if(isNaN(t)||t===0){return-1}const r=(n-t)/1e3;return Number(r.toFixed(1))}return null};const R=()=>{let t={};const n=1e3;const e=["afterStyles","afterPageLoad","afterScroll","unknown"];t["ttfb:crux"]=l!=null?Math.round(l):null;t["lcp:crux"]=u!=null?Math.round(u):null;t["cls:total"]=d.total!=null?Math.round(d.total*n):null;t["cls:raw"]=d.raw!=null?d.raw:null;t["cls:largestShiftTarget"]=d.largestShiftTarget!=null?d.largestShiftTarget:null;t["fid"]=c!=null?Math.round(c):null;t["fcp"]=g!=null?Math.round(g):null;t["inp"]=f!=null?Math.round(f):null;t["inp:details"]=Object.keys(p).length?p:null;e.forEach(e=>{if(d[e]){t[`cls:${e}Delta`]=Math.round(d[e]*n)}});Object.keys(t).forEach(e=>{if(t[e]===null){delete t[e]}});return t};const M=()=>{n=Date.now();window.removeEventListener("NitroStylesLoaded",M,true)};const _=()=>{r=Date.now();window.removeEventListener(t,_,true)};const Q=()=>s=Date.now();const A=e=>n&&Date.now()-n<e;const Y=e=>r&&Date.now()-r<e;const ee=e=>s&&Date.now()-s<e;const te=()=>{if(!a.serverTiming||!a.serverTiming.length){return}let e={};for(const{name:t,description:n,duration:r}of a.serverTiming){switch(t){case"nitro-ec-status":e.ecStatus=n;break;case"nitro-ec-read-config":e.ecReadConfigDuration=r;break;case"nitro-ec-read-cache":e.ecReadCacheDuration=r;break;case"nitro-ec-country":e.ecCountry=n;break}}i.push(o,":edgeCache",e)};const ne=e=>{let t=R();if(!Object.keys(t).length){return}Promise.all([O(t),C(),N(),k(),q(),I(),D(),K(),P(e)]).then(()=>{B();if(e==="pagehide"){i.flush(o)}else{i.flushQuiet(o)}})};window.addEventListener(t,_,true);document.addEventListener("scroll",Q,{capture:true,passive:true});if(e){window.addEventListener("NitroStylesLoaded",M,true)}const re=async()=>{setInterval(()=>i.dispatchEvent("pageHideReady",{trigger:"interval"}),5e3);y=document.querySelectorAll("*").length;S=`${document.documentElement.clientWidth}x${document.documentElement.clientHeight}`;L=`${window.screen.width}x${window.screen.height}`;let e=R();T=await b();Promise.all([V(),W(),I(),G(),J(),te(),H(),C(),N(),k(),D(),Z(),$(),O(e),P("pageload")]).then(()=>{i.flushQuiet(o)})};const ie=()=>w=document.querySelectorAll("*").length;if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",ie)}else{ie()}const oe=()=>m=m+1;document.addEventListener("click",oe);document.addEventListener("touchstart",oe);i.addEventListener("pageLoadReady",()=>re());i.addEventListener("pageHideReady",e=>ne(e.detail.trigger));i.webVitals.onCLS(e=>{if(e.entries[0]!==d.sessionEntry){E();d.sessionEntry=e.entries[0]}d.total=e.value;d.raw=e.value;d.largestShiftTarget=e?.attribution?.largestShiftTarget;let t=250;let n=ee(t)+Y(t)+A(t);if(n==1){if(ee(t)){d.afterScroll+=e.delta}if(Y(t)){d.afterPageLoad+=e.delta}if(A(t)){d.afterStyles+=e.delta}}else{d.unknown+=e.delta}},{reportAllChanges:true});i.webVitals.onLCP(e=>{u=e.value},{reportAllChanges:true});i.webVitals.onFID(e=>{c=e.value});i.webVitals.onFCP(e=>{g=e.value},{reportAllChanges:true});i.webVitals.onINP(e=>{f=e.value;v=m;if(e.attribution){const{eventEntry:t,eventTarget:n,eventType:r,loadState:i}=e.attribution;if(t){const{startTime:o,processingStart:a,processingEnd:s,duration:l}=t;p={value:e.value,eventTarget:n,eventType:r,loadState:i,startTime:o,processingStart:a,processingEnd:s,duration:l}}}},{reportAllChanges:true});i.webVitals.onTTFB(e=>{l=e.value},{reportAllChanges:true})})(window.NitroPack=window.NitroPack||{});(i=>{const o="UB";const a=navigator.connection&&navigator.connection.effectiveType?navigator.connection.effectiveType:"";const s={YES:"yes",NO:"no",NO_DATA:"no_data"};let l=i.loadStartTime;let c=0;let u=null;let d=null;let f=false;let g=false;let p=s.NO_DATA;let h="none";let n=0;let r=0;let m=null;i.addEventListener("onPredictedUrls",e=>{m=e.detail.predictedUrls});i.addEventListener("onHintInsert",e=>{const t=e.detail.type;if(t==="prefetch"){n++}else if(t==="prerender"){r++}});const v=()=>!document.body.classList.contains("logged-in")&&document.cookie.indexOf("items_in_cart=1")===-1;const w=e=>{if(e.tagName==="A"){return e}else if(e.parentElement){return w(e.parentElement)}else{return null}};const y=e=>{if(document.readyState==="complete"){e()}else{window.addEventListener("load",e)}};const e=new Promise(t=>{if(i.isPrerenderedPage){document.addEventListener("visibilitychange",e=>{if(document.visibilityState==="visible"){l=Date.now();y(t)}})}else{y(t)}});const S=e=>{const t=e.match(/\.([a-zA-Z0-9]+)(?:\?.*)?$/);return t&&t[1]?["html","htm","php","asp","aspx","jsp","jspx"].includes(t[1]):true};const L=e=>e.replace(/#.*$/,"");const T=e=>{const t=document.querySelector("base")?.href||window.location.href;const n=new URL(e,t);const r=n.host!==window.location.host;const i=L(n.href)===L(window.location.href);const o=n.hash||n.href.endsWith("#");if(r||i&&o){return null}return n.href};const b=()=>{if(!S(u)||g){return}const e=Date.now();i.push(o,":navigate",{event:"navigate",isNewTab:f,isVisitor:v(),t:e,wait_time:Math.round(e-c),source_url:i.currentAddress,url:u,visitor_id:i.visitorId,ct:a,pvId:i.setPageViewId(u),instant_load_predicted:p,speculation_type:h,prefetch_count:n,prerender_count:r}).then(()=>i.flush(o));if(d!=="_blank"&&!f){sessionStorage.setItem("nitroNavStartTime",c);if(sessionStorage.getItem("nitroTargetUrl")&&sessionStorage.getItem("nitroTargetUrl"!==u)){setTimeout(()=>i.setTargetUrl(u),100)}else{i.setTargetUrl(u)}}else{u=null;d=null;c=0;g=true}};const t=()=>{const e=Date.now();const t=i.getTargetUrl();let n=e-l;const r=sessionStorage.getItem("nitroNavStartTime")||0;if(r){n=e-r}if(!S(t)){return}i.push(o,":loading",{event:"loading",isVisitor:v(),t:e,wait_time:Math.round(n),url:t,visitor_id:i.visitorId,ct:a}).then(()=>i.flush(o))};const E=async()=>{await e;setTimeout(async()=>{g=true;u=null;d=null;f=false;const e=sessionStorage.getItem("nitroNavStartTime")||0;sessionStorage.removeItem("nitroNavStartTime");const t=Date.now();let n=e?t-e:t-l;i.push(o,":pageload",{event:"pageload",isVisitor:v(),t:Date.now(),wait_time:Math.round(n),visitor_id:i.visitorId,ct:a}).then(()=>i.flushQuiet(o))},0)};document.addEventListener("click",e=>{let t=w(e.target);if(t&&t.hasAttribute("href")){u=T(t.getAttribute("href"));if(u){if(m){const n=m.includes(u);p=n?s.YES:s.NO;if(n){const r=JSON.parse(window.sessionStorage.getItem("nitro_prefetched_urls"));const i=r&&r[u];h=i&&i.type}}f=e.ctrlKey||e.shiftKey||e.metaKey||e.button&&e.button===1;c=Date.now();d=t.hasAttribute("target")?t.getAttribute("target"):null;g=false;if(f){b();u=null;d=null;c=0}}}});document.addEventListener("visibilitychange",e=>{if(document.visibilityState==="hidden"){if(u!==null){b()}else if(!g){t()}}});window.addEventListener("pageshow",e=>{if(e.persisted){sessionStorage.removeItem("nitroNavStartTime");l=Date.now();d=null;u=null;c=0;E()}});E()})(window.NitroPack=window.NitroPack||{});(async c=>{if(c.predictStrategy!=="navigation-ai"){return}const e=document.querySelector("base")?.href||c.currentAddress;const u=new URL(e).origin;let d=[];const t=new Set;c.addEventListener("onAddToCanPrerenderList",e=>{t.add(e.detail.href)});const n=(t,n=300)=>{let r;return(...e)=>{clearTimeout(r);r=setTimeout(()=>{t.apply(null,e)},n)}};const r=(n,r)=>{let i;return function(){const e=arguments;const t=this;if(!i){n.apply(t,e);i=true;setTimeout(()=>i=false,r)}}};const o=(t,e={upgradeToPrerender:false,ignorePrefetchLimit:false})=>{if(!t){c.debugLogger.logOther("Link Not Prefetchable: empty link.",t);return false}const n=typeof t==="string"?t:t.href;let r=null;try{r=new URL(n)}catch(e){c.debugLogger.logOther("Link Not Prefetchable: "+e,t);return false}if(!r.href){c.debugLogger.logOther("Link Not Prefetchable: empty href attribute.",r);return false}if(d.length>15&&!e.ignorePrefetchLimit){c.debugLogger.logOther("Prefetch skipped: Maximum prefetches threshold reached.");return false}if(d.includes(r.href)&&!e.upgradeToPrerender){c.debugLogger.logOther("Prefetch skipped: URL is already prefetched.",r.href);return false}const o=r.origin;const a=r.protocol;if(o!==u){c.debugLogger.logOther("Link Not Prefetchable: Different origin.",r);return false}if(!["http:","https:"].includes(a)){c.debugLogger.logOther("Link Not Prefetchable: missing protocol in the URL.",r);return false}if(a==="http:"&&location.protocol==="https:"){c.debugLogger.logOther("Link Not Prefetchable: URL is HTTP but the current page is HTTPS.",r);return false}if(r.href.charAt(0)=="#"||r.hash&&r.pathname+r.search==location.pathname+location.search){c.debugLogger.logOther("Link Not Prefetchable: URL is the current location but with a hash.",r);return false}const s=JSON.parse(atob("WyIuKj9cXD9hZGRcXC10b1xcLWNhcnRcXD0uKj8iLCIuKj8mYWRkXFwtdG9cXC1jYXJ0XFw9Lio/IiwiLio/XFw/cmVtb3ZlX2l0ZW1cXD0uKj8iLCIuKj8mcmVtb3ZlX2l0ZW1cXD0uKj8iLCIuKj9cXD9hZGQuKj8iLCIuKj8mYWRkLio/IiwiLio/XFw/cmVtb3ZlLio/IiwiLio/JnJlbW92ZS4qPyIsIi4qP1xcP2RlbGV0ZS4qPyIsIi4qPyZkZWxldGUuKj8iLCIuKj9kb3dubG9hZC4qPyIsIi4qP1xcXC9sb2dvdXQiLCIuKj9cXFwvbG9naW4iLCIuKj9cXFwvc2lnbm91dCIsIi4qP1xcXC9zaWduaW4iLCIuKj9cXFwvd3BcXC1hZG1pbi4qPyIsIi4qP1xcXC93cFxcLWxvZ2luLio/IiwiLio/XFwuZXhlIiwiLio/XFwuemlwIiwiLio/XFwucmFyIiwiLio/XFwuZGViIiwiLio/XFwucnBtIiwiLio/XFwucGtnIiwiLio/XFwuZG1nIiwiLio/XFwucGRmIiwiLio/XFwubXNpIiwiLio/XFwubXAzIiwiLio/XFwuZG9jIiwiLio/XFwuZG9jeCIsIi4qP1xcLnBwdCIsIi4qP1xcLnhscyIsIi4qP1xcLnhsc3giLCIuKj9cXC5vZHQiLCIuKj9cXC50eHQiXQ=="));for(i=0;i<s.length;i++){if(r.href.match(s[i])!==null){c.debugLogger.logOther("Link Not Prefetchable: Excluded URL "+r.href+".",{link:r,regex:s[i]});return false}}const l=["no-prerender"];if(l.some(e=>t.classList?.contains(e))){return false}return true};const a=(e,t,n)=>{let r=JSON.parse(window.sessionStorage.getItem("nitro_prefetched_urls"));if(r===null)r={};if(r[e]===undefined||t==="prerender"){r[e]={type:t,initiator:n};window.sessionStorage.setItem("nitro_prefetched_urls",JSON.stringify(r))}};const s=(e,t="")=>{l(e);const n="prefetch";c.debugLogger.logPrefetch(e,n,t);a(e,n,t)};const l=e=>{const t=document.createElement("link");t.rel="prefetch";t.setAttribute("nitro-exclude",true);t.type="text/html";t.href=e;t.as="document";t.onload=()=>{c.dispatchEvent("onAddToCanPrerenderList",{href:e})};document.head.appendChild(t);d.push(e);c.dispatchEvent("onPredictedUrls",{predictedUrls:[...d]});c.dispatchEvent("onHintInsert",{type:"prefetch"})};const f=e=>{const t="prerender";const n={[t]:[{source:"list",urls:[e]}]};const r=document.createElement("script");r.type="speculationrules";r.id=`nitropack-speculation-rules-${d.length+1}`;r.textContent=JSON.stringify(n);document.head.appendChild(r);d.push(e);c.dispatchEvent("onPredictedUrls",{predictedUrls:[...d]});c.dispatchEvent("onHintInsert",{type:t})};const g=()=>{return window.matchMedia("(pointer: fine)").matches&&!window.matchMedia("(any-hover: none)").matches};c.utils={isPrefetchable:o,prefetch:s,debounce:n,throttle:r,createSpeculationRule:f,createPrefetchLink:l,preparePrefetchAccuracyLog:a,canPrerenderList:t,onlyPointerDeviceDetected:g}})(window.NitroPack=window.NitroPack||{});(o=>{if(o.predictStrategy!=="navigation-ai"){return}if(HTMLScriptElement.supports&&!HTMLScriptElement.supports("speculationrules")){return}const e=document.documentElement.outerHTML;const t=e.includes("9d63262f59cd9b3378f01392c");if(t||typeof NPTelemetryMetadata==="object"&&!NPTelemetryMetadata.isEligibleForOptimization){return}let a=performance.now();const n=()=>{const e=e=>{a=performance.now();const t=e.target.closest("a");if(!t||!o.utils.isPrefetchable(t)){return}o.utils.prefetch(t.href,"TOUCH")};const t=e=>{o.debugLogger.logOther("mouseoverListener() called",e);if(performance.now()-a<1111){return}const t=e.target.closest("a");if(!t||!o.utils.isPrefetchable(t)){return}t.addEventListener("mouseout",i,{passive:true});r=setTimeout(function(){o.debugLogger.logOther("mouseoverTimer CALLBACK called",e);o.utils.prefetch(t.href,"HOVER");r=undefined},85)};const n={capture:true,passive:true};let r;document.addEventListener("touchstart",e,n);document.addEventListener("mouseover",t,n);const i=e=>{if(e.relatedTarget&&e.target.closest("a")==e.relatedTarget.closest("a")){return}if(r){clearTimeout(r);r=undefined}}};n()})(window.NitroPack=window.NitroPack||{});(async n=>{if(n.predictStrategy!=="navigation-ai"){return}if(HTMLScriptElement.supports&&!HTMLScriptElement.supports("speculationrules")){return}const e=document.documentElement.outerHTML;const t=e.includes("9d63262f59cd9b3378f01392c");if(t||typeof NPTelemetryMetadata==="object"&&!NPTelemetryMetadata.isEligibleForOptimization){return}let r=null;const i=(e,t)=>{n.debugLogger.logLcpEvent("MUTATION_DETECTED",e);a(e)};const o=n.utils.debounce(i,500);const a=e=>{n.debugLogger.logLcpEvent("MUTATION_RESCAN_TRIGGERED",e);const t=l(lcpLinksContainer)[0];if(t.length>0&&n.utils.isPrefetchable(t[0].href)){n.utils.prefetch(t[0].href,"LCP_MUTATION")}};const s=e=>{if(e===undefined||e===null){n.debugLogger.logLcpEvent("doLcpPrefetching_CALLBACK_CALLED_WITHOUT_LCP_ELEMENT");return false}let t=[];[t,lcpLinksContainer]=l(e);if(t.length===0){n.debugLogger.logLcpEvent("NO_LINKS_FOUND");return false}if(t.length>0&&n.utils.isPrefetchable(t[0].href)){n.utils.prefetch(t[0].href,"LCP")}if(r!==null){r.disconnect();n.debugLogger.logLcpEvent("MUTATION_OBSERVER_DISCONNECTED")}r=new MutationObserver(o);r.observe(lcpLinksContainer,{subtree:true,childList:true,attributes:true});n.debugLogger.logLcpEvent("MUTATION_OBSERVER_REGISTERED")};const l=t=>{const e=document.querySelector("body");while(t!=e){if(c(t)){t=t.parentElement;n.debugLogger.logOther("Skipping LCP container level: Inside a <nav> element.",t);continue}let e=Array.from(t.querySelectorAll("a"));n.debugLogger.logOther("filtering links...",e);e=e.filter(e=>{if(c(e)){n.debugLogger.logOther("Skipping link: Inside a <nav> element.",t);return false}return n.utils.isPrefetchable(e)});if(e.length>0)return[e,t];t=t.parentElement}return[[],null]};const c=e=>{return e.closest("nav")!==null||e.nodeName=="NAV"};n.webVitals.onLCP(e=>{s(e?.entries[0]?.element)},{reportAllChanges:true})})(window.NitroPack=window.NitroPack||{})})();