!function(){"use strict";class t{t;o=0;i=[];u(t){if(t.hadRecentInput)return;const e=this.i[0],n=this.i.at(-1);this.o&&e&&n&&t.startTime-n.startTime<1e3&&t.startTime-e.startTime<5e3?(this.o+=t.value,this.i.push(t)):(this.o=t.value,this.i=[t]),this.t?.(t)}}const e=()=>{const t=performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStart{if("loading"===document.readyState)return"loading";{const n=e();if(n){if(t{const e=t.nodeName;return 1===t.nodeType?e.toLowerCase():e.toUpperCase().replace(/^#/,"")},r=t=>{let e="";try{for(;9!==t?.nodeType;){const n=t,r=n.id?"#"+n.id:[i(n),...Array.from(n.classList).sort()].join(".");if(e.length+r.length>99)return e||r;if(e=e?r+">"+e:r,n.id)break;t=n.parentNode}}catch{}return e},o=new WeakMap;function a(t,e){return o.get(t)||o.set(t,new e),o.get(t)}let s=-1;const c=()=>s,u=t=>{addEventListener("pageshow",e=>{e.persisted&&(s=e.timeStamp,t(e))},!0)},d=(t,e,n,i)=>{let r,o;return a=>{e.value>=0&&(a||i)&&(o=e.value-(r??0),(o||void 0===r)&&(r=e.value,e.delta=o,e.rating=((t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good")(e.value,n),t(e)))}},l=t=>{requestAnimationFrame(()=>requestAnimationFrame(()=>t()))},h=()=>{const t=e();return t?.activationStart??0},f=(t,n=-1)=>{const i=e();let r="navigate";return c()>=0?r="back-forward-cache":i&&(document.prerendering||h()>0?r="prerender":document.wasDiscarded?r="restore":i.type&&(r=i.type.replace(/_/g,"-"))),{name:t,value:n,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},m=(t,e,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const i=new PerformanceObserver(t=>{Promise.resolve().then(()=>{e(t.getEntries())})});return i.observe({type:t,buffered:!0,...n}),i}}catch{}},p=t=>{let e=!1;return()=>{e||(t(),e=!0)}};let g=-1;const v=new Set,y=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,w=t=>{if("hidden"===document.visibilityState){if("visibilitychange"===t.type)for(const t of v)t();isFinite(g)||(g="visibilitychange"===t.type?t.timeStamp:0,removeEventListener("prerenderingchange",w,!0))}},L=()=>{if(g<0){const t=h(),e=document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(e=>"hidden"===e.name&&e.startTime>t)[0]?.startTime;g=e??y(),addEventListener("visibilitychange",w,!0),addEventListener("prerenderingchange",w,!0),u(()=>{setTimeout(()=>{g=y()})})}return{get firstHiddenTime(){return g},onHidden(t){v.add(t)}}},C=t=>{document.prerendering?addEventListener("prerenderingchange",()=>t(),!0):t()},S=[1800,3e3],z=(t,e={})=>{C(()=>{const n=L();let i,r=f("FCP");const o=m("paint",t=>{for(const e of t)"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime{r=f("FCP"),i=d(t,r,S,e.reportAllChanges),l(()=>{r.value=performance.now()-n.timeStamp,i(!0)})}))})},b=[.1,.25],B=t=>t.find(t=>1===t.node?.nodeType)||t[0];let x=0,D=1/0,M=0;const T=t=>{for(const e of t)e.interactionId&&(D=Math.min(D,e.interactionId),M=Math.max(M,e.interactionId),x=M?(M-D)/7+1:0)};let _;const A=()=>_?x:performance.interactionCount??0;let P=0;class I{l=[];h=new Map;m;p;v(){P=A(),this.l.length=0,this.h.clear()}M(){const t=Math.min(this.l.length-1,Math.floor((A()-P)/50));return this.l[t]}u(t){if(this.m?.(t),!t.interactionId&&"first-input"!==t.entryType)return;const e=this.l.at(-1);let n=this.h.get(t.interactionId);if(n||this.l.length<10||t.duration>e.T){if(n?t.duration>n.T?(n.entries=[t],n.T=t.duration):t.duration===n.T&&t.startTime===n.entries[0].startTime&&n.entries.push(t):(n={id:t.interactionId,entries:[t],T:t.duration},this.h.set(n.id,n),this.l.push(n)),this.l.sort((t,e)=>e.T-t.T),this.l.length>10){const t=this.l.splice(10);for(const e of t)this.h.delete(e.id)}this.p?.(n)}}}const N=t=>{const e=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?t():(t=p(t),addEventListener("visibilitychange",t,{once:!0,capture:!0}),e(()=>{t(),removeEventListener("visibilitychange",t,{capture:!0})}))},E=[200,500];class q{m;u(t){this.m?.(t)}}const j=[2500,4e3],U=[800,1800],H=t=>{document.prerendering?C(()=>H(t)):"complete"!==document.readyState?addEventListener("load",()=>H(t),!0):setTimeout(t)},k="",K="1",O="0",W="p",Z="a",J="m",F="t",X="m",R="a",V="p",Y="s",G=()=>"undefined"==typeof window;function $(t){try{return decodeURIComponent(t)}catch(t){return""}}function Q(t,e=!1){const n=function(){try{return document.cookie}catch{return!1}}()?document.cookie.split("; "):[];for(let e=0;e{});console.log("Monorail event from consent API:",i,n)}catch(t){}}}function et(){var t,e;return G()?{}:(null===(t=window.Shopify)||void 0===t||null===(e=t.customerPrivacy)||void 0===e?void 0:e.config)||{}}tt.instance=void 0;function nt(t){try{return t()}catch{return}}function it(){var t,e;if(!ut()&&!function(){try{const t=performance.getEntriesByType("navigation")[0].serverTiming;return!!t&&0!=t.length}catch{return!1}}()){const t=new tt;let e="failed_to_fetch";try{e=navigator.userAgent}catch{}t.produce("navigationServerTiming",JSON.stringify({failed:!0,userAgent:e})),function(){if(ut())return;const t=st();t.Shopify||(t.Shopify={});t.Shopify.customerPrivacy||(t.Shopify.customerPrivacy={});t.Shopify.customerPrivacy.serverTimingSupportVerified=!0}()}const n=null===(t=performance)||void 0===t||null===(e=t.getEntriesByType)||void 0===e?void 0:e.call(t,"navigation");if(!n)return;const i=n.map(at).find(t=>t);if(i)try{sessionStorage.setItem("consentHeader",i)}catch{}return i}let rt;function ot(){var t,e;const n=null===(t=performance)||void 0===t||null===(e=t.getEntriesByType)||void 0===e?void 0:e.call(t,"resource");let i=rt;for(let t=n.length-1;t>=0;t--){let e=at(n[t]);if(e){i=e;break}}return rt=i,i}function at(t){var e,n;if(t)return null===(e=t.serverTiming)||void 0===e||null===(n=e.find(t=>"_cmp"==t.name))||void 0===n?void 0:n.description}function st(){if(!G())return window}function ct(){var t,e;const n=st();return!0===(null==n||null===(t=n.Shopify)||void 0===t||null===(e=t.customerPrivacy)||void 0===e?void 0:e.backendConsentEnabled)||!0===et().isHeadless}function ut(){var t,e;const n=st();return null==n||null===(t=n.Shopify)||void 0===t||null===(e=t.customerPrivacy)||void 0===e?void 0:e.serverTimingSupportVerified}function dt(){if(!G()){var t,e;const n=(null===(t=window.Shopify)||void 0===t||null===(e=t.customerPrivacy)||void 0===e?void 0:e.injectedConsent)||et().injectedConsent;return n?$(n):void 0}}function lt(){let t;if(t=G()?dt():function(){var t,e;const n=null===(t=window.Shopify)||void 0===t||null===(e=t.customerPrivacy)||void 0===e?void 0:e.cachedConsent;return n?$(n):void 0}()||dt()||new URLSearchParams(window.location.search).get("_cs")||void 0||Q("_tracking_consent")||function(){let t;if(t=ct()&&nt(ot)||nt(it),!t){let t;try{t=sessionStorage.getItem("consentHeader")}catch{}return t||void 0}try{t=decodeURIComponent(t)}catch{}return t}(),void 0!==t)return function(t){if("%"==t.slice(0,1))try{t=decodeURIComponent(t)}catch{}const e=t.slice(0,1);if("{"==e)return function(t){var e;let n;try{n=JSON.parse(t)}catch{return}if("2.1"!==n.v)return;if(null===(e=n.con)||void 0===e||!e.CMP)return;return n}(t);if("3"==e)return function(t){const e=t.slice(1).split("_"),[n,i,r,o,a]=e;let s,c;try{s=e[5]?JSON.parse(e.slice(5).join("_")):void 0}catch{}if(a){const t=a.replace(/\*/g,"/").replace(/-/g,"+"),e=atob(t);let n="";for(let t=0;tt.slice(0,e)+"-"+t.slice(e),n)}function u(t){const e=n.split(".")[0];return e.includes(t.toLowerCase())?O:e.includes(t.toUpperCase())?K:k}function d(t){return n.includes(t.replace("t","s").toUpperCase())}return{v:"3",con:{CMP:{[R]:u(R),[V]:u(V),[X]:u(X),[Y]:u(Y)}},region:i||"",cus:s,purposes:{[Z]:d(Z),[W]:d(W),[J]:d(J),[F]:d(F)},sale_of_data_region:"t"==o,display_banner:"t"==r,consent_id:c}}(t);return}(t)}function ht(t){const e=function(){try{let t=lt();if(!t)return;return t}catch{return}}();if(!e||!e.purposes)return!0;const n=e.purposes[t];return"boolean"!=typeof n||n}function ft(){return ht(Z)}const mt=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}$/;function pt(t){if(!function(t){return!!t&&mt.test(t.trim().toLowerCase())}(t))return;const e=t.trim();return"00000000-0000-0000-0000-000000000000"!==e&&"00000000-0000-0000-5000-000000000000"!==e?e:void 0}function gt(t){if(!G())try{var e,n;return null===(e=document.querySelector(`meta[name="${t}"]`))||void 0===e||null===(n=e.getAttribute("content"))||void 0===n?void 0:n.trim()}catch{return}}function vt(t){const e=gt(t);if(!e)return!1;const n=e.replace(/^"(.*)"$/,"$1").toLowerCase();return"true"===n||"t"===n}function yt(t,e){if(vt("serialized-isNewCookieStorageEnabled")){const t=pt(function(t){const e=gt(t);if(e)try{const t=JSON.parse(e);return"string"==typeof t?t.trim():void 0}catch{return}}(e));if(t)return t}if(vt("new-cookie-storage-activated")){const e=pt(gt(t));if(e)return e}}function wt(){return yt("shopify-y","serialized-shopifyY")}function Lt(){return yt("shopify-s","serialized-shopifyS")}const Ct={},St=/^https?:\/\/([^/]+)(\/api\/(?:unstable|2\d{3}-\d{2})\/graphql\.json(?=$|\?))?/;function zt(t){if(ct()){const e=function(t){try{var e,n;const o=null===(e=performance)||void 0===e||null===(n=e.getEntriesByType)||void 0===n?void 0:n.call(e,"resource");if(o){const e=window.location.host;for(let n=o.length-1;n>=0;n--){var i,r;const a=o[n];if("fetch"!==a.initiatorType)continue;const s=a.name.match(St);if(!s)continue;const[,c,u]=s;if(!(c===e||u&&(null==c?void 0:c.endsWith(`.${e}`))))continue;const d=null===(i=a.serverTiming)||void 0===i||null===(r=i.find(e=>e.name===t))||void 0===r?void 0:r.description;if(d)return Ct[t]=d,d}}return}catch{return}}(t);if(e)return{value:e,source:"resource"};const n=Ct[t];if(n)return{value:n,source:"cache"}}const e=function(t){try{var e,n,i,r;return null===(e=performance)||void 0===e||null===(n=e.getEntriesByType("navigation")[0])||void 0===n||null===(i=n.serverTiming)||void 0===i||null===(r=i.find(e=>e.name==t))||void 0===r?void 0:r.description}catch{return}}(t);return e?{value:e,source:"navigation"}:{value:void 0,source:null}}function bt(t,e,n){const i=n();if(i)return i;const r=function(t){return zt(t).value}(e);return r||function(t){try{var e,n,i,r;return null===(e=document.cookie)||void 0===e||null===(n=e.split(";"))||void 0===n||null===(i=n.find(e=>e.includes(t)))||void 0===i||null===(r=i.split("=")[1])||void 0===r?void 0:r.trim()}catch{return}}(t)}function Bt(){return bt("_shopify_y","_y",wt)}function xt(){return bt("_shopify_s","_s",Lt)}function Dt(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Mt=0;function Tt(t){return"__private_"+Mt+++"_"+t}function _t(t){return Object.entries(t).map(([t,e])=>({key:t,value:{stringValue:String(e)}}))}function At(t){if(Array.isArray(t))return{arrayValue:{values:t.map(t=>At(t))}};switch(typeof t){case"boolean":return{boolValue:Boolean(t)};case"number":return{doubleValue:Number(t)};default:return{stringValue:String(t)}}}const Pt=function(t,e,n){const i=[0];for(let r=0;r{t.attributes={...Dt(this,Nt)[Nt],...t.attributes}});const t=Dt(this,Et)[Et];Dt(this,Et)[Et]=[],await this.exportByKeepalive(t,(t,e)=>Dt(this,It)[It].exportMetrics(this.aggregateMetrics(t),e))}async exportLogs(){const t=Dt(this,qt)[qt];Dt(this,qt)[qt]=[],await this.exportByKeepalive(t,(t,e)=>Dt(this,It)[It].exportLogs(this.formatLogs(t),e))}aggregateMetrics(t){const e={};return t.forEach(t=>{switch(t.type){case"histogram":!function(t,e){var n;const{name:i,value:r,unit:o,timeUnixNano:a,attributes:s}=e,c=null!==(n=e.bounds)&&void 0!==n?n:Pt,u=new Array(c.length+1).fill(0);t[i]||={name:i,unit:o||"1",histogram:{aggregationTemporality:1,dataPoints:[]}};for(let t=0;t0?l:0,bucketCounts:i>0?[1]:[]};t[n].exponentialHistogram.dataPoints.push({attributes:_t(null!=a?a:{}),startTimeUnixNano:o,timeUnixNano:o,count:1,sum:c,scale:u,zeroCount:h,positive:m,negative:f,min:c,max:c,zeroThreshold:0})}(e,t);break;case"counter":!function(t,e){const{name:n,value:i,unit:r,timeUnixNano:o,attributes:a}=e;t[n]||={name:n,unit:r||"1",sum:{aggregationTemporality:1,isMonotonic:!0,dataPoints:[]}},t[n].sum.dataPoints.push({startTimeUnixNano:o,timeUnixNano:o,asDouble:i,attributes:_t(null!=a?a:{})})}(e,t);break;case"gauge":!function(t,e){const{name:n,value:i,unit:r,timeUnixNano:o,attributes:a}=e;t[n]||={name:n,unit:r||"1",gauge:{dataPoints:[]}},t[n].gauge.dataPoints.push({startTimeUnixNano:o,timeUnixNano:o,asDouble:i,attributes:_t(null!=a?a:{})})}(e,t)}}),Object.values(e)}async exportByKeepalive(t,e){if(0===t.length)return;const n=[],i=[];t.forEach(t=>{var e;null===(e=t.requiresKeepalive)||void 0===e||e?n.push(t):i.push(t)});const r=[n.length>0?e(n,{keepalive:!0}):void 0,i.length>0?e(i,{keepalive:!1}):void 0].filter(t=>void 0!==t);await Promise.all(r)}formatLogs(t){return t.map(t=>{const e={timeUnixNano:t.timeUnixNano,observedTimeUnixNano:t.timeUnixNano,attributes:(n={...Dt(this,Nt)[Nt],...t.attributes},Object.entries(n).map(([t,e])=>({key:t,value:At(e)})))};var n;return t.body&&(e.body={stringValue:t.body}),e})}}var Ut=Tt("url"),Ht=Tt("serviceName"),kt=Tt("logger"),Kt=Tt("fetchFn"),Ot=Tt("maxPayloadSizeBytes");class Wt{constructor(t,e,n){var i;Object.defineProperty(this,Ut,{writable:!0,value:void 0}),Object.defineProperty(this,Ht,{writable:!0,value:void 0}),Object.defineProperty(this,kt,{writable:!0,value:void 0}),Object.defineProperty(this,Kt,{writable:!0,value:void 0}),Object.defineProperty(this,Ot,{writable:!0,value:void 0}),Dt(this,Ut)[Ut]=t.replace(/\/v1\/(logs|metrics|traces)\/?$/,""),Dt(this,Ht)[Ht]=e,Dt(this,kt)[kt]=null==n?void 0:n.logger,Dt(this,Kt)[Kt]=null==n?void 0:n.fetchFn,Dt(this,Ot)[Ot]=null!==(i=null==n?void 0:n.maxPayloadSizeBytes)&&void 0!==i?i:51200}async exportMetrics(t,e){var n;const i=null===(n=null==e?void 0:e.keepalive)||void 0===n||n;await this.exportBatches("/v1/metrics",[...t],t=>({resourceMetrics:[{resource:{attributes:[{key:"service.name",value:{stringValue:Dt(this,Ht)[Ht]}}]},scopeMetrics:[{scope:{name:"open-telemetry-mini-client",version:"1.1.0",attributes:[]},metrics:t}]}]}),i)}async exportLogs(t,e){var n;const i=null===(n=null==e?void 0:e.keepalive)||void 0===n||n;await this.exportBatches("/v1/logs",[...t],t=>({resourceLogs:[{resource:{attributes:[{key:"service.name",value:{stringValue:Dt(this,Ht)[Ht]}}]},scopeLogs:[{scope:{name:"open-telemetry-mini-client",version:"1.1.0",attributes:[]},logRecords:t}]}]}),i)}async exportTo(t,e,n){var i;const r=JSON.stringify(t),o=(new TextEncoder).encode(r).length;if(o>Dt(this,Ot)[Ot])throw new Jt(`Payload size ${o} exceeds ${Dt(this,Ot)[Ot]} bytes`);const a=await this.exporterFetch()(`${Dt(this,Ut)[Ut]}${e}`,{method:"POST",keepalive:n,headers:{"Content-Type":"application/json"},body:r});if(null===(i=Dt(this,kt)[kt])||void 0===i||i.log({status:a.status}),!a.ok){if(400===a.status){const t=await a.text();throw new Zt(`Invalid OpenTelemetry Data: ${t}`)}if(429===a.status||503===a.status){const e=await a.text(),n=a.headers.get("Retry-After"),i=n?{seconds:Number(n)}:void 0;throw new Zt("Server did not accept data",{errorData:e,retryAfter:i,body:t})}if(401===a.status||403===a.status){const e=await a.text();throw new Ft(`Authentication failed: ${a.status} ${401===a.status?"Unauthorized":"Forbidden"}`,{errorData:e,body:t})}throw new Zt(`Server responded with ${a.status}`)}}exporterFetch(){return Dt(this,Kt)[Kt]||fetch}async exportBatches(t,e,n,i){let r=e.length;for(;e.length>0;)try{const o=e.slice(0,r);await this.exportTo(n(o),t,i),e.splice(0,r)}catch(t){if(!(t instanceof Jt&&r>1))throw t;r=Math.ceil(r/2)}}}class Zt extends Error{constructor(t,e){super(t),this.metadata=void 0,this.name="OpenTelemetryClientError",this.metadata=e}}class Jt extends Error{constructor(...t){super(...t),this.name="PayloadTooLargeError"}}class Ft extends Error{constructor(t,e){super(t),this.name="AuthenticationFailedError",this.metadata=void 0,this.name="AuthenticationFailedError",this.metadata=e}}function Xt(t,e){const n=Rt();return Xt=function(e,i){let r=n[e-=426];if(void 0===Xt.IgPgGf){Xt.yILCwA=function(t){let e="",n="";for(let n,i,r=0,o=0;i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?e+=String.fromCharCode(255&n>>(-2*r&6)):0)i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);for(let t=0,i=e.length;t>(-2*o&6)):0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);for(var s=0,c=i.length;s>(-2*r&6)):0)i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);for(let t=0,i=e.length;t=this[Gt(240)]))try{await this[Gt(245)][Gt(229)]()}catch(t){this[Gt(249)]&&console[Gt(237)](Gt(244)+t)}}[Gt(239)](){this[Gt(226)]&&clearTimeout(this[Gt(226)]),this[Gt(226)]=window[Gt(250)](()=>{this[Gt(247)]()[Gt(236)](()=>{})},this[Gt(234)])}}function te(t,e){const n=ee();return te=function(e,i){let r=n[e-=319];if(void 0===te.YKElVc){te.ycJjte=function(t){let e="",n="";for(let n,i,r=0,o=0;i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?e+=String.fromCharCode(255&n>>(-2*r&6)):0)i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);for(let t=0,i=e.length;tt+e.s,0)/t[ve(306)],n=t[ve(438)]((t,n)=>t+(n.s-e)**2,0)/(t[ve(306)]-1),i=Math[ve(388)](n);return{speed:e,jitter:i}}function de(t,e,n,i,r,o,a,s,c,u,d,l,h){const f=Math[ve(271)](1e3,t),m=Math[ve(271)](1e3,n),p=Math[ve(271)](1e3,o),g=Math[ve(271)](1e3,s),v=Math[ve(271)](1e3,a),y=Math[ve(271)](1e3,c),w=[];if(e[ve(306)]>=3)for(let t=1;t5e-4){e=!0;break}n=i.s}else n=i.s;return e}(w),C=function(t){if(t[ve(306)]<3)return 0;let e=0,n=0;for(let i=1;i2*Math.PI-Math.PI/12)&&e++,n++}return n>0?e/n:0}(e),{speed:S,jitter:z}=ue(w);let b=0,B=0;if(i[ve(306)]>1){const t=new Set(i[ve(324)](t=>Math[ve(224)](t.x/20)+","+Math[ve(224)](t.y/20)))[ve(214)];b=t>1?1:0,B=i[ve(438)]((t,e)=>t+e[ve(353)],0)/i[ve(306)]}const x=r[ve(438)]((t,e)=>(null===e[ve(293)]||t[ve(266)](e[ve(293)]),t),[]),{rhythmConsistency:D,jitter:M}=function(t){if(t[ve(306)]<2)return{rhythmConsistency:0,jitter:0};const e=t[ve(438)]((t,e)=>t+e,0)/t[ve(306)],n=t[ve(438)]((t,n)=>(t??0)+((n??0)-e)**2,0)/t[ve(306)],i=Math[ve(388)](n);return{rhythmConsistency:0===i?1:Math[ve(409)](0,1-i/e),jitter:i/e}}(x),T=x[ve(306)]>0?x[ve(438)]((t,e)=>t+e,0)/x[ve(306)]:0,_=[];if(u[ve(306)]>=3)for(let t=1;tu[t-1].p?ve(440):"up";_[ve(266)]({s:i,dir:r,t:u[t].t})}const{speed:A,jitter:P}=ue(_),I=function(t){if(t[ve(306)]<2)return 0;let e=0;for(let n=1;n=500&&t[i].t-n>=500&&(e++,n=t[i].t);return e}(_)),{speed:E,jitter:q}=ue(d),j=function(t){if(t[ve(306)]<2)return 0;let e=0;for(let n=1;n=500&&e++;return e}(d)),H=Math[ve(224)]((h-l)/1e3);return{ma:f,ca:m,ka:p,sa:g,ta:y,kba:v,t:Math[ve(271)](3600,H),nm:L?1:0,ms:he(C),mj:he(z),msp:he(S),vc:b,cp:he(B),rc:he(D),kj:he(M),ki:he(T),ss:he(A),sj:he(P),ssm:he(I),sp:N,ts:he(E),tj:he(q),tp:U,tsm:he(j)}}function le(t,e){let n=0;return(...i)=>{const r=typeof performance!==ve(391)?performance[ve(362)]():Date[ve(362)]();r-n>=e&&(n=r,t(...i))}}function he(t){return Math[ve(262)](100*t)/100}function fe(t){return{wd:t[ve(319)],ua:t[ve(407)],cf:t[ve(272)],be:t[ve(255)],nm:t[ve(422)],nc:t[ve(356)],ka:t[ve(425)],sa:t[ve(283)],ta:t[ve(393)],pt:t[ve(410)],mp:t[ve(453)],sd:t[ve(431)]}}class me{[ve(351)];[ve(450)];[ve(370)];[ve(456)];[ve(246)];[ve(349)]=!1;constructor(t,e,n=se()){const i={shopId:0,updateInterval:5e3,debug:!1,beaconEndpoint:re,beaconRetryLimit:3,maxSilenceMs:18e5,exportWithFetch:!1,logsSampleRate:1,candidateSignalsEnabled:!1,candidateActivePageFlushEnabled:!0,candidateUpdateInterval:5e3,candidateSampleRate:100};this[ve(351)]={...i,...e},this[ve(370)]=n,this[ve(456)]=t,this[ve(450)]={startTime:Date[ve(362)](),lastUpdateTime:null,environmentChecked:!1,sessionData:null,mouseActivity:0,clickActivity:0,keyActivity:0,keyboardBurstActivity:0,scrollActivity:0,touchActivity:0,mousePositions:[],clickPositions:[],keyEvents:[],scrollEvents:[],keyboardBursts:[],touchEvents:[],lastTouchEvent:null};const r=this[ve(290)]();this[ve(450)][ve(234)]={lastSignals:r,lastProcessTime:0,lastSuccessfulSendTime:0,retryCount:0},this[ve(246)]=(this[ve(351)][ve(377)],this[ve(351)][ve(396)],this[ve(370)][ve(379)],this[ve(370)][ve(279)],this[ve(351)][ve(325)],this[ve(351)][ve(243)],null)}[ve(394)](){this[ve(340)](),(async()=>{await this[ve(260)](),await this[ve(314)](!0),this[ve(351)][ve(223)]&&this[ve(246)]?.[ve(329)](),this[ve(370)][ve(279)][ve(406)](()=>{this[ve(336)]()},100);const t=()=>{const e=Date[ve(362)](),n=e-(this[ve(450)][ve(419)]||e),i=Math[ve(409)](0,this[ve(351)][ve(460)]-n),r=()=>{this[ve(370)][ve(279)][ve(248)]?this[ve(450)][ve(268)]=this[ve(370)][ve(279)][ve(248)](()=>{this[ve(314)]()[ve(443)](()=>this[ve(456)][ve(222)]())[ve(443)](()=>{t()})},{timeout:2e3}):this[ve(314)]()[ve(443)](()=>this[ve(456)][ve(222)]())[ve(443)](()=>{t()})};i>0?this[ve(370)][ve(279)][ve(406)](r,i):r()};t()})()[ve(265)](t=>{this[ve(456)][ve(350)](t,ve(394))})}[ve(284)](){try{this[ve(246)]?.[ve(284)]()}catch(t){this[ve(456)][ve(350)](t,ve(383))}this[ve(450)][ve(301)]&&this[ve(370)][ve(279)][ve(273)](this[ve(450)][ve(301)]),this[ve(450)][ve(268)]&&this[ve(370)][ve(279)][ve(354)]&&this[ve(370)][ve(279)][ve(354)](this[ve(450)][ve(268)]),this[ve(450)][ve(347)]&&(this[ve(370)][ve(379)][ve(230)](ve(402),this[ve(450)][ve(347)][ve(402)]),this[ve(370)][ve(379)][ve(230)](ve(323),this[ve(450)][ve(347)][ve(323)]),this[ve(370)][ve(379)][ve(230)](ve(375),this[ve(450)][ve(347)][ve(375)]),this[ve(370)][ve(379)][ve(230)](ve(251),this[ve(450)][ve(347)][ve(251)]),ve(390)in window&&this[ve(450)][ve(347)][ve(244)]&&this[ve(450)][ve(347)][ve(459)]&&this[ve(450)][ve(347)][ve(281)]&&(this[ve(370)][ve(379)][ve(230)](ve(244),this[ve(450)][ve(347)][ve(244)]),this[ve(370)][ve(379)][ve(230)](ve(459),this[ve(450)][ve(347)][ve(459)]),this[ve(370)][ve(379)][ve(230)](ve(281),this[ve(450)][ve(347)][ve(281)]))),this[ve(450)][ve(234)]?.[ve(386)]&&this[ve(370)][ve(279)][ve(273)](this[ve(450)][ve(234)][ve(386)]),this[ve(450)][ve(234)]=void 0}[ve(339)](){return this[ve(450)][ve(234)]?.[ve(315)]?fe(this[ve(450)][ve(234)][ve(315)]):null}[ve(442)](){return this[ve(246)]?.[ve(339)]()??null}[ve(364)](){return this[ve(246)]?.[ve(465)]()??null}[ve(260)](){const t={wd:this[ve(370)][ve(292)][ve(382)]?1:0,ua:/bot|crawler|spider|scraper/i[ve(303)](this[ve(370)][ve(292)][ve(346)])?0:1,cv:this[ve(289)]()?1:0,br:this[ve(247)]()?1:0};return this[ve(450)][ve(423)]=t,this[ve(450)][ve(411)]=!0,t}[ve(289)](){try{const t=this[ve(370)][ve(379)][ve(446)](ve(302));t[ve(297)]=200,t[ve(444)]=50;const e=t[ve(421)]("2d");if(null===e)return!1;const n=e[ve(376)](0,0,200,0);n[ve(300)](0,ve(467)),n[ve(300)](1,ve(257)),e[ve(288)]=n,e[ve(418)](0,0,200,50),e[ve(288)]=ve(462),e[ve(280)]=ve(452),e[ve(212)](ve(220),33,30);const i=t[ve(327)]();return Boolean(i&&i[ve(306)]>50)}catch(t){return!1}}[ve(247)](){let t=0;this[ve(370)][ve(292)][ve(337)]&&this[ve(370)][ve(292)][ve(337)][ve(306)]>0&&t++,(this[ve(370)][ve(292)][ve(399)]&&this[ve(370)][ve(292)][ve(399)][ve(306)]>0||this[ve(370)][ve(292)][ve(346)][ve(258)](ve(397)))&&t++,this[ve(412)]()&&t++,typeof this[ve(370)][ve(279)][ve(282)]!==ve(391)&&t++;try{const e=(new Date)[ve(322)]();e>-840&&e<840&&t++}catch(t){}return t>=3}[ve(412)](){const t=this[ve(370)][ve(279)][ve(236)]||this[ve(370)][ve(379)][ve(338)][ve(385)],e=this[ve(370)][ve(279)][ve(309)]||this[ve(370)][ve(379)][ve(338)][ve(468)];if(!t||!e)return!1;if(t<=2||e<=2)return!1;const n=t/e;return n>=.2&&n<=5}[ve(387)](t,e){return n=>{try{t(n)}catch(t){this[ve(456)][ve(350)](t,ve(469)+e)}}}[ve(336)](){const t=le(this[ve(387)](t=>{this[ve(450)][ve(389)]++,this[ve(450)][ve(445)][ve(306)]>=10&&this[ve(450)][ve(445)][ve(413)](),this[ve(450)][ve(445)][ve(266)]({x:t[ve(408)],y:t[ve(210)],t:t[ve(225)]})},ve(402)),100),e=this[ve(387)](t=>{this[ve(450)][ve(395)]++,requestAnimationFrame(()=>setTimeout(()=>{this[ve(450)][ve(312)][ve(306)]>=5&&this[ve(450)][ve(312)][ve(413)](),this[ve(450)][ve(312)][ve(266)]({x:t[ve(408)],y:t[ve(210)],t:t[ve(225)],pre:this[ve(416)](t)})},0))},ve(323)),n=this[ve(387)](t=>{this[ve(450)][ve(428)]++;const e=t[ve(358)];if([ve(311),ve(363),ve(378),ve(320)][ve(258)](e))return;const n=this[ve(450)][ve(361)][this[ve(450)][ve(361)][ve(306)]-1],i=t[ve(225)],r=n?i-n.t:null;this[ve(450)][ve(361)][ve(306)]>=10&&this[ve(450)][ve(361)][ve(413)](),this[ve(450)][ve(361)][ve(266)]({_0x4e7586:e,t:i,int:r}),null!==r&&r<100?(this[ve(450)][ve(447)][ve(266)](r),this[ve(450)][ve(447)][ve(306)]>=5&&(this[ve(450)][ve(371)]++,this[ve(450)][ve(447)]=[])):this[ve(450)][ve(447)]=[]},ve(375)),i=le(this[ve(387)](t=>{this[ve(450)][ve(226)]++;const e=t[ve(225)],n=window[ve(256)];this[ve(450)][ve(404)][ve(306)]>=10&&this[ve(450)][ve(404)][ve(413)](),this[ve(450)][ve(404)][ve(266)]({p:n,t:e})},ve(251)),200),r=this[ve(387)](t=>{t[ve(369)]&&0!==t[ve(369)][ve(306)]&&(this[ve(450)][ve(254)]++,this[ve(450)][ve(439)][ve(306)]>=10&&this[ve(450)][ve(439)][ve(413)](),this[ve(450)][ve(245)]={x:t[ve(369)][0][ve(408)],y:t[ve(369)][0][ve(210)],t:t[ve(225)],typ:ve(451),s:0,d:0})},ve(244)),o=le(this[ve(387)](t=>{if(!t[ve(369)]||0===t[ve(369)][ve(306)])return;const e={x:t[ve(369)][0][ve(408)],y:t[ve(369)][0][ve(210)]};if(this[ve(450)][ve(245)]){const n=this[ve(308)](this[ve(450)][ve(245)],e);this[ve(450)][ve(439)][ve(306)]>=10&&this[ve(450)][ve(439)][ve(413)]();const i={x:t[ve(369)][0][ve(408)],y:t[ve(369)][0][ve(210)],t:t[ve(225)],typ:ve(321),d:n,s:n/(t[ve(225)]-this[ve(450)][ve(245)].t)};this[ve(450)][ve(439)][ve(266)](i),this[ve(450)][ve(245)]=i}else{const e={x:t[ve(369)][0][ve(408)],y:t[ve(369)][0][ve(210)],t:t[ve(225)],typ:ve(321),s:0,d:0};this[ve(450)][ve(245)]=e}},ve(459)),200),a=this[ve(387)](t=>{this[ve(450)][ve(245)]=null},ve(281));this[ve(370)][ve(379)][ve(277)](ve(402),t,{passive:!0}),this[ve(370)][ve(379)][ve(277)](ve(323),e,{passive:!0}),this[ve(370)][ve(379)][ve(277)](ve(375),n,{passive:!0}),this[ve(370)][ve(379)][ve(277)](ve(251),i,{passive:!0}),ve(390)in window&&(this[ve(370)][ve(379)][ve(277)](ve(244),r,{passive:!0}),this[ve(370)][ve(379)][ve(277)](ve(459),o,{passive:!0}),this[ve(370)][ve(379)][ve(277)](ve(281),a,{passive:!0})),this[ve(450)][ve(347)]={mousemove:t,click:e,keydown:n,scroll:i,touchstart:r,touchmove:o,touchend:a}}async[ve(314)](t=!1){this[ve(424)](t),await this[ve(252)]({includeCandidateSignals:!t}),this[ve(450)][ve(419)]=Date[ve(362)]()}[ve(424)](t=!1){const e=Date[ve(362)]();let n=Math[ve(224)]((e-this[ve(450)][ve(278)])/1e3);null!==this[ve(450)][ve(419)]&&(n=Math[ve(224)]((e-this[ve(450)][ve(419)])/1e3)),this[ve(450)][ve(267)]?(this[ve(450)][ve(267)][ve(328)]+=t?1:0,this[ve(450)][ve(267)][ve(384)]+=n):this[ve(450)][ve(267)]={pageCount:1,sessionStart:this[ve(450)][ve(278)],duration:0}}[ve(359)](t,e=!1){this[ve(456)][ve(435)](ve(239)+t,e)}[ve(290)](){try{if(this[ve(370)][ve(279)][ve(437)]){const e=this[ve(370)][ve(279)][ve(437)][ve(291)](oe);if(e){const n=JSON[ve(345)](e);let i;return ve(319)in n?i=n:i={webdriver_detected:(t=n).wd,bot_user_agent:t.ua,canvas_fingerprint_normal:t.cf,browser_environment_normal:t.be,natural_mouse_activity:t.nm,natural_click_patterns:t.nc,keyboard_activity:t.ka,scroll_activity:t.sa,touch_activity:t.ta,significant_page_time:t.pt,multiple_pages_visited:t.mp,session_duration_reasonable:t.sd},i}}}catch(t){}var t;return null}[ve(430)](t){try{this[ve(370)][ve(279)][ve(437)]&&this[ve(370)][ve(279)][ve(437)][ve(237)](oe,JSON[ve(263)](fe(t)))}catch(t){}}[ve(416)](t){const e=t[ve(217)];if(!(e&&e instanceof Element&&e[ve(233)]))return 0;const n=e[ve(233)]();if(!n[ve(297)]||!n[ve(444)])return 0;const i=n[ve(401)]+n[ve(297)]/2,r=n[ve(381)]+n[ve(444)]/2,o=this[ve(308)]({x:t[ve(408)],y:t[ve(210)]},{x:i,y:r}),a=Math[ve(388)](n[ve(297)]**2+n[ve(444)]**2)/2;return a>0?Math[ve(409)](0,1-o/a):0}[ve(308)](t,e){return Math[ve(388)]((e.x-t.x)**2+(e.y-t.y)**2)}[ve(366)](t){if(t[ve(310)](ve(463))||t[ve(310)](ve(299)))return t;return""+(this[ve(370)][ve(279)][ve(458)][ve(427)]||this[ve(370)][ve(279)][ve(458)][ve(250)]+"//"+this[ve(370)][ve(279)][ve(458)][ve(313)])+t}[ve(340)](){try{this[ve(246)]?.[ve(451)]()}catch(t){this[ve(456)][ve(350)](t,ve(232))}}[ve(218)](t){if(void 0!==t)return this[ve(370)][ve(379)],this[ve(370)][ve(398)],this[ve(213)][ve(436)](this),void this[ve(433)][ve(436)](this)}[ve(213)](){this[ve(349)]||(this[ve(349)]=!0,this[ve(456)][ve(435)](ve(296),!0))}[ve(433)](t){this[ve(456)][ve(350)](t,ve(374))}[ve(457)](){try{return this[ve(364)]()??void 0}catch(t){return void this[ve(456)][ve(350)](t,ve(276))}}[ve(426)](t){const e=this[ve(450)][ve(234)]?.[ve(315)];return!!e&&(null!==this[ve(351)][ve(305)]&&(this[ve(472)](e,ve(332),{candidateSignals:t,updateSilenceClock:!1,allowRetry:!1,transport:ve(434),candidateQueueTracking:ve(368)})[ve(265)](t=>{this[ve(456)][ve(350)](t,ve(231))}),!0))}[ve(331)](t){return!(!this[ve(450)][ve(234)]||null===this[ve(351)][ve(305)])&&(this[ve(252)]({lifecycleCandidateSignals:t})[ve(265)](t=>{this[ve(456)][ve(350)](t,ve(365))}),!0)}async[ve(472)](t,e,n={}){if(!this[ve(450)][ve(234)])return;const i=n[ve(348)]??!0,r=n[ve(373)]??!0,o=n[ve(429)]??ve(307);if(null===this[ve(351)][ve(305)])return void(i&&(this[ve(450)][ve(234)][ve(405)]=Date[ve(362)]()));let a;!1!==n[ve(316)]&&(void 0===n[ve(253)]?a=this[ve(457)]():this[ve(246)]&&(a=n[ve(253)]));const s=this[ve(218)](a),c=void 0===a?void 0:(f=a,this[ve(456)],{pack:f}),u=c?.[ve(454)],d=function(t,e,n,i,r,o){const a=void 0!==i,s=a&&void 0!==r;let c=1;return s?c=3:a&&(c=2),{v:c,s:{wd:e.wd,ua:e.ua,cf:e.cf,be:e.be,nm:e.nm,nc:e.nc,ka:e.ka,sa:e.sa,ta:e.ta,pt:e.pt,mp:e.mp,sd:e.sd},r:n,...void 0!==i&&{c:i},...s&&{t:r.t,...void 0!==r.e&&{e:r.e},w:r.w,...void 0!==o&&{_0x59e87f:o}}}}(0,fe(t),e,u,void 0===u?void 0:s,void 0===u?void 0:c?.[ve(449)]),l=JSON[ve(263)](d),h=this[ve(366)](this[ve(351)][ve(305)]);var f;void 0!==a&&o===ve(307)&&this[ve(246)]?.[ve(341)](a);const m=n[ve(274)]??ve(304);if(m!==ve(434)&&this[ve(370)][ve(292)][ve(472)]&&(m===ve(352)||!this[ve(351)][ve(414)]))try{const t=new Blob([l],{type:ve(415)});if(this[ve(370)][ve(292)][ve(472)](h,t))return r&&(this[ve(450)][ve(234)][ve(235)]=0),void(i&&(this[ve(450)][ve(234)][ve(405)]=Date[ve(362)]()))}catch(t){}try{const t=await fetch(h,{method:ve(216),headers:{"Content-Type":ve(415)},body:l,credentials:ve(269),keepalive:!0});if(!t.ok)throw new Error(ve(298)+t[ve(228)]);void 0!==a&&o===ve(368)&&this[ve(246)]?.[ve(341)](a),r&&(this[ve(450)][ve(234)][ve(235)]=0),i&&(this[ve(450)][ve(234)][ve(405)]=Date[ve(362)]())}catch(n){r?this[ve(461)](t,e,a):void 0!==a&&o===ve(307)&&this[ve(246)]?.[ve(471)](a)}}[ve(461)](t,e,n){if(!this[ve(450)][ve(234)]||this[ve(450)][ve(234)][ve(235)]>=this[ve(351)][ve(318)])return void(void 0!==n&&this[ve(246)]?.[ve(471)](n));const i=Math[ve(271)](1e3*2**this[ve(450)][ve(234)][ve(235)],3e4);this[ve(450)][ve(234)][ve(235)]++,this[ve(450)][ve(234)][ve(386)]=this[ve(370)][ve(279)][ve(406)](()=>{this[ve(450)][ve(234)]&&this[ve(472)](t,e)},i)}async[ve(252)](t={}){if(!this[ve(450)][ve(234)])return;const e=de(this[ve(450)][ve(389)],this[ve(450)][ve(445)],this[ve(450)][ve(395)],this[ve(450)][ve(312)],this[ve(450)][ve(361)],this[ve(450)][ve(428)],this[ve(450)][ve(371)],this[ve(450)][ve(226)],this[ve(450)][ve(254)],this[ve(450)][ve(404)],this[ve(450)][ve(439)],this[ve(450)][ve(278)],Date[ve(362)]()),n=function(t,e,n,i){const r={webdriver_detected:1===t?.wd||!1,bot_user_agent:0===t?.ua||!1,browser_environment_normal:1===t?.br||!1,canvas_fingerprint_normal:1===t?.cv||!1,natural_mouse_activity:!1,natural_click_patterns:!1,keyboard_activity:!1,scroll_activity:!1,touch_activity:!1,significant_page_time:!1,multiple_pages_visited:!1,session_duration_reasonable:!1};if(e.ma>0&&1===e.nm&&(r[ve(422)]=!0),e.ca>0&&1===e.vc&&(r[ve(356)]=!0),e.ka>0&&(r[ve(425)]=!0),e.sa>0&&(r[ve(283)]=!0),e.ta>0&&(r[ve(393)]=!0),e.t>30&&(r[ve(410)]=!0),n&&(n[ve(328)]>1&&(r[ve(453)]=!0),n[ve(384)]>60&&(r[ve(431)]=!0)),i){const t=Object[ve(227)](r);for(const e of t)r[e]=r[e]||i[e]}return r}(this[ve(450)][ve(423)],e,this[ve(450)][ve(267)],this[ve(450)][ve(234)][ve(315)]),i=function(t,e){if(!e)return!0;const n=Object[ve(227)](t);for(const i of n)if(t[i]!==e[i])return!0;return!1}(n,this[ve(450)][ve(234)][ve(315)]),r=Date[ve(362)]()-this[ve(450)][ve(234)][ve(405)],o=r>=this[ve(351)][ve(357)],a=void 0!==t[ve(464)];if(i||o||a){const e=Date[ve(362)]()-this[ve(450)][ve(234)][ve(219)];if(!a&&e<100)return void this[ve(359)](ve(470),!0);if(o&&!i&&this[ve(359)](ve(240)+Math[ve(262)](r/1e3)+ve(455),!0),i&&this[ve(351)][ve(241)]){if(this[ve(450)][ve(234)][ve(315)]){Object[ve(227)](n)[ve(367)](t=>{this[ve(450)][ve(234)][ve(315)][t],n[t]})}else this[ve(359)](ve(264));this[ve(450)][ve(267)]}if(this[ve(450)][ve(234)][ve(315)]=(s=n,{...s}),this[ve(450)][ve(234)][ve(219)]=Date[ve(362)](),this[ve(430)](n),this[ve(351)][ve(335)]&&i)try{this[ve(351)][ve(335)](fe(n))}catch(t){this[ve(456)][ve(350)](t,ve(400))}let c=ve(432);i?c=ve(344):o&&(c=ve(270));const u=!i&&!o;await this[ve(472)](n,c,{candidateSignals:t[ve(464)],includeCandidateSignals:t[ve(316)],updateSilenceClock:!u,allowRetry:!u,transport:ve(u?352:304)})}else this[ve(351)][ve(241)];var s}}const pe=(t,e)=>({libVersion:"2.4.2",shopId:e||"",hostname:t[ve(279)]?.[ve(458)]?.[ve(294)]||"",url:t[ve(279)]?.[ve(458)]?.[ve(249)]||"",referrer:t[ve(379)]?.[ve(259)]||"",baseURI:t[ve(379)]?.[ve(326)]||"",sessionToken:xt()||"",uniqueToken:Bt()||""});function ge(t,e){return e>=100||!(e<=0)&&function(t){try{const e=t[ve(279)][ve(437)]?.[ve(291)](ae);if(null!==e&&/^\d{1,2}$/[ve(303)](e)){const t=Number(e);if(t<100)return t}}catch{}const e=Math[ve(224)](100*Math[ve(211)]());try{t[ve(279)][ve(437)]?.[ve(237)](ae,String(e))}catch{}return e}(t)>(-2*r&6)):0)i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);for(let t=0,i=e.length;t{const i=xt(),r=(t?.[ve(377)]??!1)&&ge(e,t?.[ve(215)]??100);let o;i?o=function(t){let e=0;for(let n=0,i=t[te(319)];nl[ve(394)]()):l[ve(394)](),l};class we{quietWindowStartCandidates=[];longAnimationFrameObserver=null;longAnimationFrames=[];constructor(){this.initializeLongAnimationFrameObserver()}getQuietWindowStartCandidates(){return[...this.quietWindowStartCandidates].sort((t,e)=>t.startTime-e.startTime)}getLongAnimationFrames(){if(!Se()){const t=function(){const{getLongAnimationFrames:t}=window.ShopifyAnalytics?.performance||{};if(!t)return[];return t(!0)}();this.longAnimationFrames=[];for(const e of t)this.handleAnimationFrame(e.startTime,e.endTime)}return[...this.longAnimationFrames].sort((t,e)=>t.startTime-e.startTime)}destroy(){this.cleanup(),this.quietWindowStartCandidates=[],this.longAnimationFrames=[]}initializeLongAnimationFrameObserver(){if(Se())try{this.longAnimationFrameObserver=new PerformanceObserver(t=>{const e=t.getEntries();for(const t of e)this.handleAnimationFrame(t.startTime,t.startTime+t.duration)}),this.longAnimationFrameObserver.observe({type:"long-animation-frame",buffered:!0})}catch(t){}}handleAnimationFrame(t,e){if(this.longAnimationFrames.push({startTime:t,endTime:e}),this.quietWindowStartCandidates.length>0){t-this.quietWindowStartCandidates[this.quietWindowStartCandidates.length-1].startTime<250&&this.quietWindowStartCandidates.pop()}this.quietWindowStartCandidates.push({startTime:e})}cleanup(){this.longAnimationFrameObserver&&(this.longAnimationFrameObserver.disconnect(),this.longAnimationFrameObserver=null)}}let Le=null;function Ce(t,e=0){if(null===t||!Se()&&!Boolean(window.ShopifyAnalytics?.performance?.getLongAnimationFrames))return ze(),null;const n=(Le?Le.getLongAnimationFrames():[]).map(t=>({startTime:t.startTime-e,endTime:t.endTime-e}));let i=null;for(const e of n){if(e.startTime<=t&&e.endTime>t){i=e;break}if(e.startTime>=t){i=e;break}}if(!i||i.startTime-t>=250)return ze(),t;const r=(Le?Le.getQuietWindowStartCandidates():[]).map(t=>({startTime:t.startTime-e}));let o=t;if(r.length>0)for(const e of r)if(e.startTime>=t){o=e.startTime;break}return ze(),o}function Se(){return PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")}function ze(){Le&&(Le.destroy(),Le=null)}function be(){return PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")}function Be(){return performance.getEntriesByType("long-animation-frame")}let xe=null,De=!1;function Me(){xe=null,De=!1}const Te=Object.freeze({shop_domain:`${window.location.origin}/.well-known/shopify/monorail/v1/produce`,global:"https://monorail-edge.shopifysvc.com/v1/produce",canada:"https://monorail-edge-ca.shopifycloud.com/v1/produce",staging:"https://monorail-edge-staging.shopifycloud.com/v1/produce"}),_e=new RegExp(`^${window.location.origin}/((?:(?:[a-z]{2,3}|zh-hans|zh-hant)(?:-[a-zA-Z0-9]+)/)?cart/(add|change|update|clear))`),Ae=new RegExp("cart-performance:|add:|change:|clear:|note_update:");var Pe;function Ie({monorailRegion:t,schema:e,rawData:n}){const i=Date.now(),r={schema_id:e,payload:e===Pe.OnUnload?Ee(n):qe(n),metadata:{event_created_at_ms:i,event_sent_at_ms:i}},o=Te[t||""],a=JSON.stringify(r);if(o)if(e!==Pe.OnUnload){if("function"==typeof window.fetchLater)try{return void window.fetchLater(o,{method:"POST",body:a,headers:{"Content-Type":"text/plain"},credentials:"include"})}catch(t){}Ne(o,a)}else!function(t,e){if("function"==typeof window.fetchLater){const n=xe;try{const i=new AbortController;return window.fetchLater(t,{method:"POST",body:e,headers:{"Content-Type":"text/plain"},credentials:"include",signal:i.signal}),xe=i,void n?.abort()}catch(t){if(null!==n)return}}if(De)return;Ne(t,e),De=!0}(o,a);else console.debug("📡 Monorail: ",JSON.stringify(r,null,2))}function Ne(t,e){try{const n=new window.Blob([e],{type:"text/plain"});if("function"==typeof window.navigator.sendBeacon&&"function"==typeof window.Blob&&!function(){const{userAgent:t}=window.navigator;return-1!==t.lastIndexOf("iPhone; CPU iPhone OS 12_")||-1!==t.lastIndexOf("iPad; CPU OS 12_")}()&&window.navigator.sendBeacon(t,n))return}catch(t){}const n=new XMLHttpRequest;n.open("POST",t),n.setRequestHeader("Content-type","text/plain"),n.send(e)}function Ee(t){const e=je(t,["domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","activationStart","firstPaint","visuallyReady","initiatorType","redirectCount","cartAjaxResourceTimings","cartPerformanceMetrics","totalStylingDuration","totalStyleDuration","totalForcedStyleDuration","totalLayoutDuration","totalForcedLayoutDuration","speculations"]);return{perf_kit_init:t.perfKitInit,perf_kit_version:t.perfKitVersion,url:t.url,page_type:t.pageType,shop_id:t.shopId,application:t.application,storefront_id:t.storefrontId,theme_instance_id:t.themeInstanceId,theme_name:t.themeName,theme_version:t.themeVersion,session_token:t.sessionToken,unique_token:t.uniqueToken,micro_session_id:t.microSessionId,micro_session_count:t.microSessionCount,cumulative_layout_shift:t.cumulativeLayoutShift,cumulative_layout_shift_target:t.cumulativeLayoutShiftTarget,first_contentful_paint:t.firstContentfulPaint,largest_contentful_paint:t.largestContentfulPaint,largest_contentful_paint_target:t.largestContentfulPaintTarget,time_to_first_byte:t.timeToFirstByte,quiet_window_start:t.quietWindowStart,seo_bot:t.seoBot,humanness_score:t.humannessScore,ja3_fingerprint:t.ja3Fingerprint,navigation_start:t.navigationStart,navigation_type:t.navigationType,navigation_bad:t.navigationBad,encoded_body_size:t.encodedBodySize,decoded_body_size:t.decodedBodySize,transfer_size:t.transferSize,first_interim_response_start:t.firstInterimResponseStart,final_response_headers_start:t.finalResponseHeadersStart,response_start:t.responseStart,response_end:t.responseEnd,worker_start:t.workerStart,connect_start:t.connectStart,connect_end:t.connectEnd,domain_lookup_start:t.domainLookupStart,domain_lookup_end:t.domainLookupEnd,fetch_start:t.fetchStart,redirect_start:t.redirectStart,redirect_end:t.redirectEnd,request_start:t.requestStart,secure_connection_start:t.secureConnectionStart,next_hop_protocol:t.nextHopProtocol,server_timing:t.serverTiming,paint_timing_hidden:t.paintTimingHidden,referrer:t.referrer,render_region:t.renderRegion,resource_timing:t.resourceTiming,treatment_ids:t.treatmentIds,other_metrics:JSON.stringify(e)}}function qe(t){const e=je(t,["longAnimationFrame"]);return{url:t.url,page_type:t.pageType,shop_id:t.shopId,application:t.application,storefront_id:t.storefrontId,theme_instance_id:t.themeInstanceId,session_token:t.sessionToken,unique_token:t.uniqueToken,micro_session_id:t.microSessionId,micro_session_count:t.microSessionCount,interaction_to_next_paint:t.interactionToNextPaint,interaction_to_next_paint_target:t.interactionToNextPaintTarget,seo_bot:t.seoBot,humanness_score:t.humannessScore,ja3_fingerprint:t.ja3Fingerprint,referrer:t.referrer,worker_start:t.workerStart,next_hop_protocol:t.nextHopProtocol,navigation_bad:t.navigationBad,treatment_ids:t.treatmentIds,other_interaction_metrics:JSON.stringify(e)}}function je(t,e){return e.reduce((e,n)=>{var i;return null!=t[n]&&(e[(i=n,i.replace(/[A-Z]/g,t=>`_${t.toLowerCase()}`))]=t[n]),e},{})}function Ue(t,e){return t?Math.max(0,Math.round(t-e)):0}!function(t){t.OnInteraction="perf_kit_on_interaction/3.2",t.OnUnload="perf_kit_on_unload/3.5"}(Pe||(Pe={}));function He(t){if(void 0===t||""===t.trim())return;const e=Number(t);return Number.isFinite(e)?e:void 0}function ke(t){return!Number.isFinite(t)||t<=0?0:Math.min(100,Math.floor(t))}function Ke(t){if(!t)return;const e=[];for(const n of t.split(",")){const t=Number(n);isNaN(t)||e.push(t)}return e.length>0?e:void 0}const Oe="xxxx-4xxx-xxxx-xxxxxxxxxxxx";function We(){let t="";try{const e=window.crypto,n=new Uint16Array(31);e.getRandomValues(n);let i=0;t=Oe.replace(/[x]/g,t=>{const e=n[i]%16;return i++,("x"===t?e:3&e|8).toString(16)}).toUpperCase()}catch(e){t=Oe.replace(/[x]/g,t=>{const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}).toUpperCase()}return`${function(){let t=0,e=0;t=(new Date).getTime()>>>0;try{e=performance.now()>>>0}catch(t){e=0}return Math.abs(t+e).toString(16).toLowerCase().padStart(8,"0")}()}-${t}`}let Ze=null,Je=!1,Fe=null,Xe=null,Re=null,Ve=!1;class Ye{info;config;sampled;onUnloadCounted;cachedQuietWindowStart;constructor(t){this.config=t,this.info={perfKitInit:Date.now(),perfKitVersion:"3.8.9",url:window.location.href,referrer:document.referrer||void 0,microSessionId:We(),microSessionCount:0,get sessionToken(){return xt()},get uniqueToken(){return Bt()}},this.sampled=100*Math.random()<=(t.resourceTimingSamplingRate??10),this.onUnloadCounted=!1,this.cachedQuietWindowStart=void 0,performance.setResourceTimingBufferSize(1e3)}get performanceMetrics(){return function(t){const e=performance.getEntriesByType("navigation");if(0===e.length)return{};const n=e[0],i=n.activationStart||0,r=function(t,e){return!e&&(t.requestStart>0&&t.startTime>0&&t.requestStart0&&t.startTime>0&&t.responseStart0&&t.fetchStart>0&&t.responseStart0&&t.fetchStart0&&t.responseEnd>e+864e5}(n,t);return{encodedBodySize:n.encodedBodySize,decodedBodySize:n.decodedBodySize,navigationStart:Math.round(n.startTime),navigationType:n.type,navigationBad:r,firstInterimResponseStart:Math.round(n.firstInterimResponseStart),finalResponseHeadersStart:Math.round(n.finalResponseHeadersStart),responseStart:Math.round(n.responseStart),responseEnd:Math.round(n.responseEnd),workerStart:Math.round(n.workerStart),connectStart:Math.round(n.connectStart),connectEnd:Math.round(n.connectEnd),domainLookupStart:Math.round(n.domainLookupStart),domainLookupEnd:Math.round(n.domainLookupEnd),fetchStart:Math.round(n.fetchStart),redirectStart:Math.round(n.redirectStart),redirectEnd:Math.round(n.redirectEnd),requestStart:Math.round(n.requestStart),secureConnectionStart:Math.round(n.secureConnectionStart),nextHopProtocol:n.nextHopProtocol,serverTiming:JSON.stringify(n.serverTiming),domInteractive:Ue(n.domInteractive,i),domComplete:Ue(n.domComplete,i),domContentLoadedEventStart:Ue(n.domContentLoadedEventStart,i),domContentLoadedEventEnd:Ue(n.domContentLoadedEventEnd,i),activationStart:Math.round(i),redirectCount:n.redirectCount,initiatorType:n.initiatorType,transferSize:n.transferSize}}(this.info.perfKitInit)}}function Ge(t){if(Ze=t,Xe=new Ye(t),Re=null,Je=!1,Fe=window.location.pathname,$e.clear(),Me(),Le||(Le=new we),t.spaMode&&void 0===window.PerfKit&&(window.PerfKit={navigate:()=>{if(!Ze?.spaMode||!Xe)return;const t=window.location.href,e=window.location.pathname;Fe!==e?(Fe=e,Je?Xe.info.url=t:(Qe(),Xe=new Ye(Ze),$e.clear(),Me(),Je=!0)):Xe.info.url=t},setPageType:t=>{Ze?.spaMode&&(Ze.storefrontData.pageType=t)},setConsent:t=>{Re=t}},document.addEventListener("shopify:page:view",t=>{window.PerfKit.navigate(),t.page?.url&&Xe&&(Xe.info.url=t.page.url),t.page?.template&&window.PerfKit.setPageType(t.page.template)},!0)),t.shs&&!t.spaMode){const e=t.shsCandidateSampleRate??0;ye({debug:!1,shopId:t.storefrontData.shopId,exportWithFetch:t.shsExportWithFetch||!0,logsSampleRate:t.shsLogsSampleRate,candidateSignalsEnabled:e>0,candidateSampleRate:e,...!1===t.shsCandidateActivePageFlush&&{candidateActivePageFlushEnabled:!1},...e>0&&void 0!==t.shsCandidateMask&&{candidateMask:t.shsCandidateMask},...t.shsBeaconEndpoint&&{beaconEndpoint:t.shsBeaconEndpoint}})}}const $e=new Set;function Qe(){if(null!==Xe){if(!nn()&&tn()&&$e.size>0){let t={};for(const e of $e)t={...t,...e};const e=t.firstContentfulPaint??null;if(null!==e&&void 0===Xe.cachedQuietWindowStart){const t=performance.getEntriesByType("navigation")[0]?.activationStart||0;Xe.cachedQuietWindowStart=Ce(e,t)}void 0!==Xe.cachedQuietWindowStart&&null!==Xe.cachedQuietWindowStart&&(t.quietWindowStart=Math.round(Xe.cachedQuietWindowStart));const n=function(){if(!be())return null;const t=Be();let e=0;for(const n of t){e+=n.styleAndLayoutStart?n.startTime+n.duration-n.styleAndLayoutStart:0;for(const t of n.scripts)e+=t.forcedStyleAndLayoutDuration}return e}();null!==n&&(t.totalStylingDuration=Math.round(n));const i=function(){if(!be())return null;const t=Be();if(0===t.length)return null;if("number"!=typeof t[0].styleDuration)return null;let e=0,n=0,i=0,r=0;for(const o of t){const t=o;e+=t.styleDuration??0,i+=t.layoutDuration??0;for(const t of o.scripts){const e=t;n+=e.forcedStyleDuration??0,r+=e.forcedLayoutDuration??0}}return{totalStyleDuration:e,totalForcedStyleDuration:n,totalLayoutDuration:i,totalForcedLayoutDuration:r}}();null!==i&&(t.totalStyleDuration=Math.round(i.totalStyleDuration),t.totalForcedStyleDuration=Math.round(i.totalForcedStyleDuration),t.totalLayoutDuration=Math.round(i.totalLayoutDuration),t.totalForcedLayoutDuration=Math.round(i.totalForcedLayoutDuration)),Xe.onUnloadCounted||(Xe.info.microSessionCount+=1,Xe.onUnloadCounted=!0);const r=function(t){if(t)return performance.getEntriesByType("resource").map(t=>{const e=Object.entries(t.toJSON()).map(([t,e])=>"number"==typeof e?[t,Math.round(e)]:[t,e]);return JSON.stringify(Object.fromEntries(e))})}(Xe.sampled),o=function(t){if("function"!=typeof performance.getSpeculations)return;const e=performance.getSpeculations().preloads??[];let n=0,i=0,r=0;const o=[];for(const a of e){const e=Boolean(a.earlyhint??a.earlyHints);e&&(r+=1),null==a.used?(i+=1,t&&o.push({url:a.url.slice(-20),as:a.as,crossorigin:a.crossorigin??null,early_hint:e})):n+=1}return{used_preloads:n,unused_preloads:i,unused_preload_details:o,early_hint_preloads:r}}(Xe.sampled),a=performance.getEntriesByType("resource").filter(t=>_e.test(t.name)),s=performance.getEntriesByType("measure").filter(t=>Ae.test(t.name)).map(t=>{const e=t.toJSON();return e.name.startsWith("cart-performance:")||(e.name=`cart-performance:${e.name}`),e});Ie({monorailRegion:Xe.config.monorailRegion,schema:Pe.OnUnload,rawData:{...Xe.info,...Xe.config.storefrontData,...Xe.performanceMetrics,...t,resourceTiming:r,cartAjaxResourceTimings:a,cartPerformanceMetrics:s,paintTimingHidden:Ve,speculations:o}})}}else console.debug("⛔️ Shopify/perf-kit is not initialized")}function tn(){return null!==Re?Re:ft()}((e,i={})=>{const o=a(i=Object.assign({},i),t),s=new WeakMap;o.t=t=>{if(t?.sources?.length){const e=B(t.sources),n=e?.node;if(n){const t=i.generateTarget?.(n)??r(n);s.set(e,t)}}},((e,n={})=>{const i=L();z(p(()=>{let r,o=f("CLS",0);const s=a(n,t),c=t=>{for(const e of t)s.u(e);s.o>o.value&&(o.value=s.o,o.entries=s.i,r())},h=m("layout-shift",c);h&&(r=d(e,o,b,n.reportAllChanges),i.onHidden(()=>{c(h.takeRecords()),r(!0)}),u(()=>{s.o=0,o=f("CLS",0),r=d(e,o,b,n.reportAllChanges),l(()=>r())}),setTimeout(r))}))})(t=>{const i=(t=>{let e={};if(t.entries.length){const i=t.entries.reduce((t,e)=>t.value>e.value?t:e);if(i?.sources?.length){const t=B(i.sources);t&&(e={largestShiftTarget:s.get(t),largestShiftTime:i.startTime,largestShiftValue:i.value,largestShiftSource:t,largestShiftEntry:i,loadState:n(i.startTime)})}}return Object.assign(t,{attribution:e})})(t);e(i)},i)})(function(t){const{attribution:e,value:n}=t;$e.add({cumulativeLayoutShift:n,cumulativeLayoutShiftTarget:e.largestShiftTarget})},{reportAllChanges:!0}),((t,n={})=>{const i=a(n=Object.assign({},n),q),o=new WeakMap;i.m=t=>{const e=t.element;if(e){const i=n.generateTarget?.(e)??r(e);o.set(t,i)}},((t,e={})=>{C(()=>{const n=L();let i,r=f("LCP");const o=a(e,q),s=t=>{e.reportAllChanges||(t=t.slice(-1));for(const e of t)o.u(e),e.startTime{s(c.takeRecords()),c.disconnect(),i(!0)}),o=t=>{t.isTrusted&&(N(n),removeEventListener(t.type,o,{capture:!0}))};for(const t of["keydown","click","visibilitychange"])addEventListener(t,o,{capture:!0});u(n=>{r=f("LCP"),i=d(t,r,j,e.reportAllChanges),l(()=>{r.value=performance.now()-n.timeStamp,i(!0)})})}})})(n=>{const i=(t=>{let n={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:t.value};if(t.entries.length){const i=e();if(i){const e=i.activationStart||0,r=t.entries.at(-1),a=r.url&&performance.getEntriesByType("resource").filter(t=>t.name===r.url)[0],s=Math.max(0,i.responseStart-e),c=Math.max(s,a?(a.requestStart||a.startTime)-e:0),u=Math.min(t.value,Math.max(c,a?a.responseEnd-e:0));n={target:o.get(r),timeToFirstByte:s,resourceLoadDelay:c-s,resourceLoadDuration:u-c,elementRenderDelay:t.value-u,navigationEntry:i,lcpEntry:r},r.url&&(n.url=r.url),a&&(n.lcpResourceEntry=a)}}return Object.assign(t,{attribution:n})})(n);t(i)},n)})(function(t){const{attribution:e,value:n}=t;$e.add({largestContentfulPaint:Math.round(n),largestContentfulPaintTarget:e.target})},{reportAllChanges:!0}),((t,i={})=>{z(i=>{const r=(t=>{let i={timeToFirstByte:0,firstByteToFCP:t.value,loadState:n(c())};if(t.entries.length){const r=e(),o=t.entries.at(-1);if(r){const e=r.activationStart||0,a=Math.max(0,r.responseStart-e);i={timeToFirstByte:a,firstByteToFCP:t.value-a,loadState:n(t.entries[0].startTime),navigationEntry:r,fcpEntry:o}}}return Object.assign(t,{attribution:i})})(i);t(r)},i)})(function(t){const{value:e}=t;$e.add({firstContentfulPaint:Math.round(e)})}),((t,e={})=>{const i=a(e=Object.assign({},e),I);let o=[],s=[],c=0;const l=new WeakMap,h=new WeakMap;let p=!1;const g=()=>{p||(N(v),p=!0)},v=()=>{const t=i.l.map(t=>l.get(t.entries[0])),e=s.length-50;s=s.filter((n,i)=>i>=e||t.includes(n));const n=new Set;for(const t of s){const e=y(t.startTime,t.processingEnd);for(const t of e)n.add(t)}const r=o.length-1-50;o=o.filter((t,e)=>t.startTime>c&&e>r||n.has(t)),p=!1};i.m=t=>{const e=t.startTime+t.duration;let n;c=Math.max(c,t.processingEnd);for(let i=s.length-1;i>=0;i--){const r=s[i];if(Math.abs(e-r.renderTime)<=8){n=r,n.startTime=Math.min(t.startTime,n.startTime),n.processingStart=Math.min(t.processingStart,n.processingStart),n.processingEnd=Math.max(t.processingEnd,n.processingEnd),n.entries.push(t);break}}n||(n={startTime:t.startTime,processingStart:t.processingStart,processingEnd:t.processingEnd,renderTime:e,entries:[t]},s.push(n)),(t.interactionId||"first-input"===t.entryType)&&l.set(t,n),g()},i.p=t=>{if(!h.get(t)){const n=t.entries[0].target;if(n){const i=e.generateTarget?.(n)??r(n);h.set(t,i)}}};const y=(t,e)=>{const n=[];for(const i of o)if(!(i.startTime+i.duratione)break;n.push(i)}return n},w=t=>{const e=t.entries[0],r=l.get(e),o=e.processingStart,a=Math.max(e.startTime+e.duration,o),s=Math.min(r.processingEnd,a),c=r.entries.sort((t,e)=>t.processingStart-e.processingStart),u=y(e.startTime,s),d=i.h.get(e.interactionId),f={interactionTarget:h.get(d),interactionType:e.name.startsWith("key")?"keyboard":"pointer",interactionTime:e.startTime,nextPaintTime:a,processedEventEntries:c,longAnimationFrameEntries:u,inputDelay:o-e.startTime,processingDuration:s-o,presentationDelay:a-s,loadState:n(e.startTime),longestScript:void 0,totalScriptDuration:void 0,totalStyleAndLayoutDuration:void 0,totalPaintDuration:void 0,totalUnattributedDuration:void 0};return(t=>{if(!t.longAnimationFrameEntries?.length)return;const e=t.interactionTime,n=t.inputDelay,i=t.processingDuration;let r,o,a=0,s=0,c=0,u=0;for(const c of t.longAnimationFrameEntries){s=s+c.startTime+c.duration-c.styleAndLayoutStart;for(const t of c.scripts){const c=t.startTime+t.duration;if(cu&&(o=t.startTime=e+n+i?"presentation-delay":"processing-duration",r=t,u=d)}}const d=t.longAnimationFrameEntries.at(-1),l=d?d.startTime+d.duration:0;l>=e+n+i&&(c=t.nextPaintTime-l),r&&o&&(t.longestScript={entry:r,subpart:o,intersectingDuration:u}),t.totalScriptDuration=a,t.totalStyleAndLayoutDuration=s,t.totalPaintDuration=c,t.totalUnattributedDuration=t.nextPaintTime-e-a-s-c})(f),Object.assign(t,{attribution:f})};m("long-animation-frame",t=>{o=o.concat(t),g()}),((t,e={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const n=L();C(()=>{"interactionCount"in performance||_||(_=m("event",T,{type:"event",buffered:!0,durationThreshold:0}));let i,r=f("INP");const o=a(e,I),s=t=>{N(()=>{for(const e of t)o.u(e);const e=o.M();e&&e.T!==r.value&&(r.value=e.T,r.entries=e.entries,i())})},c=m("event",s,{durationThreshold:e.durationThreshold??40});i=d(t,r,E,e.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{s(c.takeRecords()),i(!0)}),u(()=>{o.v(),r=f("INP"),i=d(t,r,E,e.reportAllChanges)}))})})(e=>{const n=w(e);t(n)},e)})(function(t){const{attribution:e,value:n}=t;if(null===Xe)return void console.debug("⛔️ Shopify/perf-kit is not initialized");if(function(){const t=navigator.userAgent;if(!t.includes("Safari")||t.includes("Chrome"))return!1;const e=/Version\/(\d+)(?:\.(\d+))?/.exec(t);if(null===e)return!0;const n=Number(e[1]),i=Number(e[2]||0);return n<26||26===n&&i<4}())return;if(nn())return;if(!tn())return;Xe.info.microSessionCount+=1;const{inputDelay:i,processingDuration:r,presentationDelay:o,longestScript:a,interactionTarget:s}=e,c=a?.entry?{slowest_script:a.entry.sourceURL,slowest_script_duration:Math.round(a.entry.duration)}:{};Ie({monorailRegion:Xe.config.monorailRegion,schema:Pe.OnInteraction,rawData:{...Xe.info,...Xe.config.storefrontData,...Xe.performanceMetrics,interactionToNextPaint:Math.round(n),interactionToNextPaintTarget:s,longAnimationFrame:{input_delay:Math.round(i),processing_duration:Math.round(r),presentation_delay:Math.round(o),...c}}})},{reportAllChanges:!0}),((t,n={})=>{((t,n={})=>{let i=f("TTFB"),r=d(t,i,U,n.reportAllChanges);H(()=>{const o=e();o&&(i.value=Math.max(o.responseStart-h(),0),i.entries=[o],r(!0),u(()=>{i=f("TTFB",0),r=d(t,i,U,n.reportAllChanges),r(!0)}))})})(e=>{const n=(t=>{let e={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(t.entries.length){const n=t.entries[0],i=n.activationStart||0,r=Math.max((n.workerStart||n.fetchStart)-i,0),o=Math.max(n.domainLookupStart-i,0),a=Math.max(n.connectStart-i,0),s=Math.max(n.connectEnd-i,0);e={waitingDuration:r,cacheDuration:o-r,dnsDuration:a-o,connectionDuration:s-a,requestDuration:t.value-s,navigationEntry:n}}return Object.assign(t,{attribution:e})})(e);t(n)},n)})(function(t){const{value:e}=t;$e.add({timeToFirstByte:Math.round(e)})}),addEventListener("DOMContentLoaded",()=>{Ve="hidden"===document.visibilityState}),addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&Qe()}),addEventListener("pagehide",()=>{Qe()});const en=/bot|crawl|headless|curl|wget|python|spider|libwww-pearl|newrelic|datadog|sitebulb|site24x7/i;function nn(){return!!en.test(navigator.userAgent)||!!(navigator.webdriver||document.__webdriver_evaluate||document.__selenium_evaluate||document.__webdriver_script_fn||document.__webdriver_script_func||document.__webdriver_script_function||document.$cdc_asdjflasutopfhvcZLmcfl_||document.$wdc_||window._Selenium_IDE_Recorder||window._phantom||window.__nightmare||window.callPhantom||window._phantom||window.__playwright__binding__||window.__pwInitScripts)}!function(){const{dataset:t}=document.currentScript;try{Ge(function(t){if(!t.application)throw new Error("Application is missing");if(!["storefront-renderer","hydrogen","shop-web"].includes(t.application.toLowerCase()))throw new Error("Invalid application type");if("shop-web"!==t.application.toLowerCase()){if(!t.shopId)throw new Error("shopId is missing");if(!t.themeInstanceId&&!t.storefrontId)throw new Error("Either `themeInstanceId` or `storefrontId` must be defined");for(const e of["shopId","themeInstanceId","storefrontId"])if(t[e]&&isNaN(Number(t[e])))throw new Error(`Invalid ${e}`)}if(t.humannessScore&&isNaN(Number(t.humannessScore)))throw new Error("Invalid humannessScore");if(t.monorailRegion&&!["shop_domain","global","staging","canada"].includes(t.monorailRegion.toLowerCase()))throw new Error("Invalid monorail region");if(t.resourceTimingSamplingRate&&(isNaN(Number(t.resourceTimingSamplingRate))||Number(t.resourceTimingSamplingRate)<10||Number(t.resourceTimingSamplingRate)>100))throw new Error("Invalid resource timing sampling rate");return{storefrontData:{application:t.application.toLowerCase(),shopId:Number(t.shopId)||0,renderRegion:t.renderRegion,pageType:t.pageType,seoBot:"true"===t.seoBot,humannessScore:Number(t.humannessScore)||void 0,ja3Fingerprint:t.ja3Fingerprint,themeInstanceId:Number(t.themeInstanceId)||void 0,storefrontId:Number(t.storefrontId)||void 0,themeName:t.themeName||void 0,themeVersion:t.themeVersion||void 0,treatmentIds:Ke(t.treatmentIds)},monorailRegion:t.monorailRegion,resourceTimingSamplingRate:Number(t.resourceTimingSamplingRate)||void 0,spaMode:"true"===t.spaMode,shs:"true"===t.shs,shsBeaconEndpoint:t.shsBeaconEndpoint||void 0,shsExportWithFetch:"true"===t.shsExportWithFetch,shsLogsSampleRate:He(t.shsLogsSampleRate),shsCandidateSampleRate:ke(Number(t.shsCandidateSampleRate)),shsCandidateMask:t.shsCandidateMask,shsCandidateActivePageFlush:void 0===t.shsCandidateActivePageFlush?void 0:"false"!==t.shsCandidateActivePageFlush}}(t))}catch(t){console.error("🚫 Error initializing PerfKit:",t.message)}}()}();
not sure where to start?

take 30 seconds to find your personalised meal plan.

search