!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(/^#/,"")},i=t=>{let e="";try{for(;9!==t?.nodeType;){const n=t,i=n.id?"#"+n.id:[r(n),...Array.from(n.classList).sort()].join(".");if(e.length+i.length>99)return e||i;if(e=e?i+">"+e:i,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)},l=(t,e,n,r)=>{let i,o;return a=>{e.value>=0&&(a||r)&&(o=e.value-(i??0),(o||void 0===i)&&(i=e.value,e.delta=o,e.rating=((t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good")(e.value,n),t(e)))}},d=t=>{requestAnimationFrame(()=>requestAnimationFrame(()=>t()))},h=()=>{const t=e();return t?.activationStart??0},f=(t,n=-1)=>{const r=e();let i="navigate";return c()>=0?i="back-forward-cache":r&&(document.prerendering||h()>0?i="prerender":document.wasDiscarded?i="restore":r.type&&(i=r.type.replace(/_/g,"-"))),{name:t,value:n,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:i}},m=(t,e,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver(t=>{Promise.resolve().then(()=>{e(t.getEntries())})});return r.observe({type:t,buffered:!0,...n}),r}}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))}},C=()=>{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)}}},S=t=>{document.prerendering?addEventListener("prerenderingchange",()=>t(),!0):t()},b=[1800,3e3],T=(t,e={})=>{S(()=>{const n=C();let r,i=f("FCP");const o=m("paint",t=>{for(const e of t)"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime{i=f("FCP"),r=l(t,i,b,e.reportAllChanges),d(()=>{i.value=performance.now()-n.timeStamp,r(!0)})}))})},_=[.1,.25],L=t=>t.find(t=>1===t.node?.nodeType)||t[0];let B=0,D=1/0,x=0;const M=t=>{for(const e of t)e.interactionId&&(D=Math.min(D,e.interactionId),x=Math.max(x,e.interactionId),B=x?(x-D)/7+1:0)};let z;const A=()=>z?B:performance.interactionCount??0;let P=0;class E{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 I=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})}))},N=[200,500];class q{m;u(t){this.m?.(t)}}const j=[2500,4e3],k=[800,1800],U=t=>{document.prerendering?S(()=>U(t)):"complete"!==document.readyState?addEventListener("load",()=>U(t),!0):setTimeout(t)},H="",O="1",F="0",W="p",Z="a",J="m",K="t",R="m",V="a",X="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:",r,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 rt(){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 r=n.map(at).find(t=>t);if(r)try{sessionStorage.setItem("consentHeader",r)}catch{}return r}let it;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 r=it;for(let t=n.length-1;t>=0;t--){let e=at(n[t]);if(e){r=e;break}}return it=r,r}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(){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 lt(){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 dt(){let t;if(t=G()?lt():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}()||lt()||new URLSearchParams(window.location.search).get("_cs")||void 0||Q("_tracking_consent")||function(){let t;if(t=ct()&&nt(ot)||nt(rt),!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,r,i,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())?F:e.includes(t.toUpperCase())?O:H}function l(t){return n.includes(t.replace("t","s").toUpperCase())}return{v:"3",con:{CMP:{[V]:u(V),[X]:u(X),[R]:u(R),[Y]:u(Y)}},region:r||"",cus:s,purposes:{[Z]:l(Z),[W]:l(W),[J]:l(J),[K]:l(K)},sale_of_data_region:"t"==o,display_banner:"t"==i,consent_id:c}}(t);return}(t)}function ht(t){const e=function(){try{let t=dt();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={},pt=/^https?:\/\/([^/]+)(\/api\/(?:unstable|2\d{3}-\d{2})\/graphql\.json(?=$|\?))?/;function gt(t,e){if(ct()){const t=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 r,i;const a=o[n];if("fetch"!==a.initiatorType)continue;const s=a.name.match(pt);if(!s)continue;const[,c,u]=s;if(!(c===e||u&&(null==c?void 0:c.endsWith(`.${e}`))))continue;const l=null===(r=a.serverTiming)||void 0===r||null===(i=r.find(e=>e.name===t))||void 0===i?void 0:i.description;if(l)return mt[t]=l,l}}return mt[t]}catch{return mt[t]}}(e);if(t)return t}const n=function(t){try{var e,n,r,i;return null===(e=performance)||void 0===e||null===(n=e.getEntriesByType("navigation")[0])||void 0===n||null===(r=n.serverTiming)||void 0===r||null===(i=r.find(e=>e.name==t))||void 0===i?void 0:i.description}catch{return}}(e);return n||function(t){try{var e,n,r,i;return null===(e=document.cookie)||void 0===e||null===(n=e.split(";"))||void 0===n||null===(r=n.find(e=>e.includes(t)))||void 0===r||null===(i=r.split("=")[1])||void 0===i?void 0:i.trim()}catch{return}}(t)}function vt(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var yt=0;function wt(t){return"__private_"+yt+++"_"+t}function Ct(t){return Object.entries(t).map(([t,e])=>({key:t,value:{stringValue:String(e)}}))}function St(t){if(Array.isArray(t))return{arrayValue:{values:t.map(t=>St(t))}};switch(typeof t){case"boolean":return{boolValue:Boolean(t)};case"number":return{doubleValue:Number(t)};default:return{stringValue:String(t)}}}const bt=function(t,e,n){const r=[0];for(let i=0;i{t.attributes={...vt(this,_t)[_t],...t.attributes}});const t=vt(this,Lt)[Lt];vt(this,Lt)[Lt]=[],await this.exportByKeepalive(t,(t,e)=>vt(this,Tt)[Tt].exportMetrics(this.aggregateMetrics(t),e))}async exportLogs(){const t=vt(this,Bt)[Bt];vt(this,Bt)[Bt]=[],await this.exportByKeepalive(t,(t,e)=>vt(this,Tt)[Tt].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:r,value:i,unit:o,timeUnixNano:a,attributes:s}=e,c=null!==(n=e.bounds)&&void 0!==n?n:bt,u=new Array(c.length+1).fill(0);t[r]||={name:r,unit:o||"1",histogram:{aggregationTemporality:1,dataPoints:[]}};for(let t=0;t0?d:0,bucketCounts:r>0?[1]:[]};t[n].exponentialHistogram.dataPoints.push({attributes:Ct(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:r,unit:i,timeUnixNano:o,attributes:a}=e;t[n]||={name:n,unit:i||"1",sum:{aggregationTemporality:1,isMonotonic:!0,dataPoints:[]}},t[n].sum.dataPoints.push({startTimeUnixNano:o,timeUnixNano:o,asDouble:r,attributes:Ct(null!=a?a:{})})}(e,t);break;case"gauge":!function(t,e){const{name:n,value:r,unit:i,timeUnixNano:o,attributes:a}=e;t[n]||={name:n,unit:i||"1",gauge:{dataPoints:[]}},t[n].gauge.dataPoints.push({startTimeUnixNano:o,timeUnixNano:o,asDouble:r,attributes:Ct(null!=a?a:{})})}(e,t)}}),Object.values(e)}async exportByKeepalive(t,e){if(0===t.length)return;const n=[],r=[];t.forEach(t=>{var e;null===(e=t.requiresKeepalive)||void 0===e||e?n.push(t):r.push(t)});const i=[n.length>0?e(n,{keepalive:!0}):void 0,r.length>0?e(r,{keepalive:!1}):void 0].filter(t=>void 0!==t);await Promise.all(i)}formatLogs(t){return t.map(t=>{const e={timeUnixNano:t.timeUnixNano,observedTimeUnixNano:t.timeUnixNano,attributes:(n={...vt(this,_t)[_t],...t.attributes},Object.entries(n).map(([t,e])=>({key:t,value:St(e)})))};var n;return t.body&&(e.body={stringValue:t.body}),e})}}var xt=wt("url"),Mt=wt("serviceName"),zt=wt("logger"),At=wt("fetchFn"),Pt=wt("maxPayloadSizeBytes");class Et{constructor(t,e,n){var r;Object.defineProperty(this,xt,{writable:!0,value:void 0}),Object.defineProperty(this,Mt,{writable:!0,value:void 0}),Object.defineProperty(this,zt,{writable:!0,value:void 0}),Object.defineProperty(this,At,{writable:!0,value:void 0}),Object.defineProperty(this,Pt,{writable:!0,value:void 0}),vt(this,xt)[xt]=t.replace(/\/v1\/(logs|metrics|traces)\/?$/,""),vt(this,Mt)[Mt]=e,vt(this,zt)[zt]=null==n?void 0:n.logger,vt(this,At)[At]=null==n?void 0:n.fetchFn,vt(this,Pt)[Pt]=null!==(r=null==n?void 0:n.maxPayloadSizeBytes)&&void 0!==r?r:51200}async exportMetrics(t,e){var n;const r=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:vt(this,Mt)[Mt]}}]},scopeMetrics:[{scope:{name:"open-telemetry-mini-client",version:"1.1.0",attributes:[]},metrics:t}]}]}),r)}async exportLogs(t,e){var n;const r=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:vt(this,Mt)[Mt]}}]},scopeLogs:[{scope:{name:"open-telemetry-mini-client",version:"1.1.0",attributes:[]},logRecords:t}]}]}),r)}async exportTo(t,e,n){var r;const i=JSON.stringify(t),o=(new TextEncoder).encode(i).length;if(o>vt(this,Pt)[Pt])throw new Nt(`Payload size ${o} exceeds ${vt(this,Pt)[Pt]} bytes`);const a=await this.exporterFetch()(`${vt(this,xt)[xt]}${e}`,{method:"POST",keepalive:n,headers:{"Content-Type":"application/json"},body:i});if(null===(r=vt(this,zt)[zt])||void 0===r||r.log({status:a.status}),!a.ok){if(400===a.status){const t=await a.text();throw new It(`Invalid OpenTelemetry Data: ${t}`)}if(429===a.status||503===a.status){const e=await a.text(),n=a.headers.get("Retry-After"),r=n?{seconds:Number(n)}:void 0;throw new It("Server did not accept data",{errorData:e,retryAfter:r,body:t})}if(401===a.status||403===a.status){const e=await a.text();throw new qt(`Authentication failed: ${a.status} ${401===a.status?"Unauthorized":"Forbidden"}`,{errorData:e,body:t})}throw new It(`Server responded with ${a.status}`)}}exporterFetch(){return vt(this,At)[At]||fetch}async exportBatches(t,e,n,r){let i=e.length;for(;e.length>0;)try{const o=e.slice(0,i);await this.exportTo(n(o),t,r),e.splice(0,i)}catch(t){if(!(t instanceof Nt&&i>1))throw t;i=Math.ceil(i/2)}}}class It extends Error{constructor(t,e){super(t),this.metadata=void 0,this.name="OpenTelemetryClientError",this.metadata=e}}class Nt extends Error{constructor(...t){super(...t),this.name="PayloadTooLargeError"}}class qt extends Error{constructor(t,e){super(t),this.name="AuthenticationFailedError",this.metadata=void 0,this.name="AuthenticationFailedError",this.metadata=e}}function jt(t,e){let n,r;try{var i,o,a,s;n=null===(i=performance)||void 0===i||null===(o=i.getEntriesByType("navigation")[0])||void 0===o||null===(a=o.serverTiming)||void 0===a||null===(s=a.find(t=>t.name==e))||void 0===s?void 0:s.description}catch{n=void 0}try{var c,u,l,d;r=null===(c=document.cookie)||void 0===c||null===(u=c.split(";"))||void 0===u||null===(l=u.find(e=>e.includes(t)))||void 0===l||null===(d=l.split("=")[1])||void 0===d?void 0:d.trim()}catch{r=void 0}return n||r}function kt(){return jt("_shopify_s","_s")}function Ut(t,e){var n=Ht();return Ut=function(e,r){var i=n[e-=363];if(void 0===Ut.jVXJCv){Ut.kijCTe=function(t){for(var e,n,r="",i="",o=0,a=0;n=t.charAt(a++);~n&&(e=o%4?64*e+n:n,o++%4)?r+=String.fromCharCode(255&e>>(-2*o&6)):0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);for(var s=0,c=r.length;s>(-2*i&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(let t=0,r=e.length;t=this[Ft(494)]))try{await this[Ft(518)][Ft(496)]()}catch(t){this[Ft(523)]&&console[Ft(502)](Ft(509)+t)}}[Ft(513)](){this[Ft(500)]&&clearTimeout(this[Ft(500)]),this[Ft(500)]=window[Ft(495)](()=>{this[Ft(498)]()[Ft(497)](()=>{})},this[Ft(504)])}}function Zt(t,e){const n=Jt();return Zt=function(e,r){let i=n[e-=479];if(void 0===Zt.CJfMfB){Zt.UcrFhf=function(t){let e="",n="";for(let n,r,i=0,o=0;r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?e+=String.fromCharCode(255&n>>(-2*i&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(let t=0,r=e.length;t>(-2*i&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(let t=0,r=e.length;tt+e.s,0)/t[Kt(558)],n=t[Kt(559)]((t,n)=>t+(n.s-e)**2,0)/(t[Kt(558)]-1),r=Math[Kt(508)](n);return{speed:e,jitter:r}}function Qt(t,e,n,r,i,o,a,s,c,u,l,d,h){const f=Math[Kt(519)](1e3,t),m=Math[Kt(519)](1e3,n),p=Math[Kt(519)](1e3,o),g=Math[Kt(519)](1e3,s),v=Math[Kt(519)](1e3,a),y=Math[Kt(519)](1e3,c),w=[];if(e[Kt(558)]>=3)for(let t=1;t5e-4){e=!0;break}n=r.s}else n=r.s;return e}(w),S=function(t){if(t[Kt(558)]<3)return 0;let e=0,n=0;for(let r=1;r2*Math.PI-Math.PI/12)&&e++,n++}return n>0?e/n:0}(e),{speed:b,jitter:T}=$t(w);let _=0,L=0;if(r[Kt(558)]>1){const t=new Set(r[Kt(610)](t=>Math[Kt(618)](t.x/20)+","+Math[Kt(618)](t.y/20)))[Kt(615)];_=t>1?1:0,L=r[Kt(559)]((t,e)=>t+e[Kt(526)],0)/r[Kt(558)]}const B=i[Kt(559)]((t,e)=>(null===e[Kt(494)]||t[Kt(581)](e[Kt(494)]),t),[]),{rhythmConsistency:D,jitter:x}=function(t){if(t[Kt(558)]<2)return{rhythmConsistency:0,jitter:0};const e=t[Kt(559)]((t,e)=>t+e,0)/t[Kt(558)],n=t[Kt(559)]((t,n)=>(t??0)+((n??0)-e)**2,0)/t[Kt(558)],r=Math[Kt(508)](n);return{rhythmConsistency:0===r?1:Math[Kt(485)](0,1-r/e),jitter:r/e}}(B),M=B[Kt(558)]>0?B[Kt(559)]((t,e)=>t+e,0)/B[Kt(558)]:0,z=[];if(u[Kt(558)]>=3)for(let t=1;tu[t-1].p?Kt(435):"up";z[Kt(581)]({s:r,dir:i,t:u[t].t})}const{speed:A,jitter:P}=$t(z),E=function(t){if(t[Kt(558)]<2)return 0;let e=0;for(let n=1;n=500&&t[r].t-n>=500&&(e++,n=t[r].t);return e}(z)),{speed:N,jitter:q}=$t(l),j=function(t){if(t[Kt(558)]<2)return 0;let e=0;for(let n=1;n=500&&e++;return e}(l)),U=Math[Kt(618)]((h-d)/1e3);return{ma:f,ca:m,ka:p,sa:g,ta:y,kba:v,t:Math[Kt(519)](3600,U),nm:C?1:0,ms:ee(S),mj:ee(T),msp:ee(b),vc:_,cp:ee(L),rc:ee(D),kj:ee(x),ki:ee(M),ss:ee(A),sj:ee(P),ssm:ee(E),sp:I,ts:ee(N),tj:ee(q),tp:k,tsm:ee(j)}}function te(t,e){let n=0;return(...r)=>{const i=typeof performance!==Kt(458)?performance[Kt(565)]():Date[Kt(565)]();i-n>=e&&(n=i,t(...r))}}function ee(t){return Math[Kt(431)](100*t)/100}function ne(){const t=["C2nYB2XSx2fJDgL2Axr5","yMfZzvvssq","C2vUzejLywnVBG","A2v5zg93BG","Aw5JBhvKzq","y2XPzw50wq","xZb4mwy1nMvI","mtfKA2Lkr0W","y2XPzw50sgvPz2H0","Bw91C2vqB3nPDgLVBNm","CMvTB3zLrxzLBNrmAxn0zw5LCG","Bg9HzfnLC3nPB25tAwDUywXZ","Dg91y2HFywn0AxzPDhK","y2fUy2vSswrSzunHBgXIywnR","Bg9JyxrPB24","BgvUz3rO","CMvKDwnL","mtqWntq3mdbgyuzsDfi","C2nYB2XSqwn0AxzPDhK","zgv2AwnLugL4zwXsyxrPBW","Ahr0Chm6lY8","AgvPz2H0","BM93","C3rHDgu","y2fSy3vSyxrLq2XPy2TqCMvJAxnPB24","yNjVD3nLCKfqsq","DxbKyxrLu2vZC2LVBKrHDge","DxnLCKfNzw50","yMvHy29UuMv0CNLmAw1PDa","Bw91C2vby3rPDML0Eq","Bg9NtwvZC2fNzq","Dg9W","A2v5yM9HCMrcDxjZDefJDgL2Axr5","Bwf4u2LSzw5Jzu1Z","ywrKq29SB3jtDg9W","yMX1zq","qMvHy29UigzHAwXLzdOG","odG1mti4wuTqy0H5","ChvZAa","z2v0sxrLBq","qwX0","BgfUz3vHz2vZ","A2v5CW","nZa5ndDeuvjHqu4","ntuYyNPuv2P1","C2v0sxrLBq","z2v0qM91BMrPBMDdBgLLBNrszwn0","D2vIzhjPDMvY","yM90x3vZzxjFywDLBNq","C2vZC2LVBL9KDxjHDgLVBL9YzwfZB25HyMXL","mtzWEcbbCMLHBa","BMf0DxjHBf9TB3vZzv9Hy3rPDML0Eq","z2v0vgLTzxPVBMvpzMzZzxq","y2XPzw50v2LKDgG","z2v0rgLZDgfUy2u","CMvXDwvZDeLKBgvdywXSyMfJAW","CMv0CNLdB3vUDa","yMLUza","x3nOC19ZDgf0zq","y2fUDMfZx2zPBMDLCNbYAw50x25VCM1HBa","zw52AxjVBM1LBNq","B250B3vJAhn0yxj0","Dg91y2HLCW","yxbWBgLJyxrPB24VANnVBG","Ahr0CdOVlW","ChjVy2vZC0fUzfnLBMrtAwDUywXZ","C2HVCeLK","BwfW","u2vUzgLUzYbWzxjPB2rPyYbIzwfJB24Glsa","y2XPy2S","Bg9N","CMvK","C2L6zq","B25tAwDUywXvCgrHDgu","CgfNzunVDw50","zMXVB3i","yxrHBJi","B25tAwDUywXvCgrHDguGy2fSBgjHy2S","DgLTzvn0yw1W","Bw91C2vTB3zL","Ahr0Chm6lY9VDgXWlwH0DhaTChjVzhvJDgLVBI5ZAg9WAwz5C3zJlMnVBq","C2HPzNq","Dg91y2HLBMq","BMf0DxjHBf9JBgLJA19Wyxr0zxjUCW","qMvHy29UihnLBMqGzgvIB3vUy2vKicH0B28GC29VBIbZAw5JzsbSyxn0ihnLBMqP","CgvYzI1RAxqTAhvTyw4TC2LNBMfSCW","C3rYAw5NAwz5","Aw5JBhvKzxm","Aw5PDa","Ag9ZDa","A2v5rxzLBNrZ","y2fUDMfZ","A2v5yM9HCMrcDxjZDhm","y2HHBMDL","C2nYB2XSrxzLBNrZ","icaOsw5PDgLHBcbZAwDUywWGC2v0kq","zg9JDw1LBNrfBgvTzw50","DxbKyxrLsw50zxj2ywXjza","zgvZDhjVEq","mJi0mdG4n1fqAwnuwq","y2HLy2TcCM93C2vYq29UC2LZDgvUy3K","u2HPzNq","CM91BMq","C3rHCNruAw1L","BxvSDgLWBgvFCgfNzxnFDMLZAxrLza","CgX1z2LUCW","zg93BG","C2v0vgLTzw91Da","DgfYz2v0","C3rHDhvZ","y2XPzw50wa","u2HVCgLMEsbtDg9YzwzYB250","C2nOzwr1BgvczwfJB25szxrYEq","y2HLy2TwAwv3Cg9YDfjHDgLV","BMf2AwDHDg9Y","Bg9NC1nHBxbSzvjHDgu","D2LKDgG","zgvIDwC","Dg91y2Hby3rPDML0Eq","C2nYB2XS","Bw92zq","zM9UDa","zgLY","Bg9HzgLUzW","w1niu10G","zMLSBfrLEhq","q29UDhjVBa","mJq2mJi2mgDhzLfNuq","y2XPy2Tby3rPDML0Eq","Dw5KzwzPBMvK","CMvMzxjYzxi","tw9IAwXL","C2fMzuv2zw50sgfUzgXLCG","i2zMzG","nJbZq1HhtNe","C2vZC2LVBLn0B3jHz2u","C2f2zvnLC3nPB25tAwDUywXZ","yNjVD3nLCL9LBNzPCM9UBwvUDf9UB3jTywW","ywrKrxzLBNrmAxn0zw5LCG","Ag9ZDg5HBwu","B3jPz2LU","z2v0qwjZB2X1DgvvCMW","Dg91y2HTB3zL","C3rHCNq","zg9JDw1LBNq","zMLSBfn0EwXL","n1PhCeXmwG","ue9tva","y2XLyxjuAw1LB3v0","D2vIzhjPDMvYx2rLDgvJDgvK","Bg9NrxjYB3i","Dg91y2HZDgfYDa","CMvXDwvZDeLKBgvdywXSyMfJA0LK","l2fWAs9JB2XSzwn0","z2v0q29UDgv4Da","zxHWB3j0v2L0AezLDgnO","Bwf4","y2f0y2G","DxbKyxrLsw50zxj2ywW","ChjVDg9JB2W","rxzLBNqGAgfUzgXLCIbLCNjVCIbPBIa","zMLSBfjLy3q","C2LNBMLMAwnHBNrFCgfNzv90Aw1L","D2LUzg93","BgfZDfbYB2nLC3nuAw1L","Aw50","zw52AxjVBM1LBNrdAgvJA2vK","AhjLzG","y2XPy2TqB3nPDgLVBNm","m0L2tevUsG","DgvZDa","z2v0u2LNBMfSCW","mtaXntuXmtrwCef6zNu","y3jLyxrLrwXLBwvUDa","y2HLy2TfBNzPCM9UBwvUDa","A2v5yM9HCMrFywn0AxzPDhK","yMvHy29Urw5KCg9PBNq","C3rHCNrZv2L0Aa","zxzLBNriyw5KBgvYCW","C3fYDa","BgfZDfrVDwnOrxzLBNq","DgHLBG","Dg91y2HfDMvUDhm","BgvMDa","BgfZDfvWzgf0zvrPBwu","mtG5ndu2rg1QChvZ","re9nq29UDgvUDeXVywrLza","A2v5","CYbZAw5JzsbSyxn0ihn1y2nLC3nMDwWGC2vUza","y2HLy2TbBMrtzw5Ku2LNBMfSCW","BwLU","CgfYC2u","C2nYB2XSwq","y3jLyxrLtgLUzwfYr3jHzgLLBNq","BgfZDfn1y2nLC3nMDwXtzw5KvgLTzq","Aw5UzxjizwLNAhq","Aw5UzxjxAwr0Aa","ChjL","CgvYAw9KAwm","yMvHy29Uu3rHDgu","CMv0CNLuAw1LB3v0swq","Bw9UAxrVCKjLAgf2Aw9Y","C2vZC2LVBKrHDge","Bg9Nz2vY","A2v5qwn0AxzPDhK","zhvYyxrPB24","BgfZDfnPz25HBhm","CNvUq2fUDMfZvgvZDa","CMvHzhLtDgf0zq","twv0yq","Dg9eyxrHvvjm","zM9YrwfJAa","ywjZ","zMX1C2HpDgvStg9NCW"];return(ne=function(){return t})()}function re(t){return{wd:t[Kt(478)],ua:t[Kt(591)],cf:t[Kt(602)],be:t[Kt(466)],nm:t[Kt(594)],nc:t[Kt(412)],ka:t[Kt(504)],sa:t[Kt(543)],ta:t[Kt(555)],pt:t[Kt(491)],mp:t[Kt(433)],sd:t[Kt(592)]}}class ie{[Kt(549)];[Kt(566)];[Kt(568)];[Kt(532)];constructor(t,e,n=Gt()){const r={shopId:0,updateInterval:5e3,debug:!1,beaconEndpoint:Xt,beaconRetryLimit:3,maxSilenceMs:18e5,exportWithFetch:!1,logsSampleRate:1};this[Kt(549)]={...r,...e},this[Kt(568)]=n,this[Kt(532)]=t,this[Kt(566)]={startTime:Date[Kt(565)](),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 i=this[Kt(554)]();this[Kt(566)][Kt(528)]={lastSignals:i,lastProcessTime:0,lastSuccessfulSendTime:0,retryCount:0}}[Kt(417)](){(async()=>{await this[Kt(503)](),await this[Kt(608)](!0),this[Kt(568)][Kt(492)][Kt(436)](()=>{this[Kt(530)]()},100);const t=()=>{const e=Date[Kt(565)](),n=e-(this[Kt(566)][Kt(513)]||e),r=Math[Kt(485)](0,this[Kt(549)][Kt(487)]-n),i=()=>{this[Kt(568)][Kt(492)][Kt(598)]?this[Kt(566)][Kt(481)]=this[Kt(568)][Kt(492)][Kt(598)](()=>{this[Kt(608)]()[Kt(510)](()=>this[Kt(532)][Kt(542)]())[Kt(510)](()=>{t()})},{timeout:2e3}):this[Kt(608)]()[Kt(510)](()=>this[Kt(532)][Kt(542)]())[Kt(510)](()=>{t()})};r>0?this[Kt(568)][Kt(492)][Kt(436)](i,r):i()};t()})()[Kt(486)](t=>{this[Kt(532)][Kt(479)](t,Kt(417))})}[Kt(427)](){this[Kt(566)][Kt(426)]&&this[Kt(568)][Kt(492)][Kt(477)](this[Kt(566)][Kt(426)]),this[Kt(566)][Kt(481)]&&this[Kt(568)][Kt(492)][Kt(556)]&&this[Kt(568)][Kt(492)][Kt(556)](this[Kt(566)][Kt(481)]),this[Kt(566)][Kt(507)]&&(this[Kt(568)][Kt(473)][Kt(553)](Kt(622),this[Kt(566)][Kt(507)][Kt(622)]),this[Kt(568)][Kt(473)][Kt(553)](Kt(612),this[Kt(566)][Kt(507)][Kt(612)]),this[Kt(568)][Kt(473)][Kt(553)](Kt(546),this[Kt(566)][Kt(507)][Kt(546)]),this[Kt(568)][Kt(473)][Kt(553)](Kt(448),this[Kt(566)][Kt(507)][Kt(448)]),Kt(604)in window&&this[Kt(566)][Kt(507)][Kt(480)]&&this[Kt(566)][Kt(507)][Kt(471)]&&this[Kt(566)][Kt(507)][Kt(411)]&&(this[Kt(568)][Kt(473)][Kt(553)](Kt(480),this[Kt(566)][Kt(507)][Kt(480)]),this[Kt(568)][Kt(473)][Kt(553)](Kt(471),this[Kt(566)][Kt(507)][Kt(471)]),this[Kt(568)][Kt(473)][Kt(553)](Kt(411),this[Kt(566)][Kt(507)][Kt(411)]))),this[Kt(566)][Kt(528)]?.[Kt(529)]&&this[Kt(568)][Kt(492)][Kt(477)](this[Kt(566)][Kt(528)][Kt(529)]),this[Kt(566)][Kt(528)]=void 0}[Kt(500)](){return this[Kt(566)][Kt(528)]?.[Kt(535)]?re(this[Kt(566)][Kt(528)][Kt(535)]):null}[Kt(503)](){const t={wd:this[Kt(568)][Kt(443)][Kt(590)]?1:0,ua:/bot|crawler|spider|scraper/i[Kt(499)](this[Kt(568)][Kt(443)][Kt(570)])?0:1,cv:this[Kt(536)]()?1:0,br:this[Kt(429)]()?1:0};return this[Kt(566)][Kt(603)]=t,this[Kt(566)][Kt(495)]=!0,t}[Kt(536)](){try{const t=this[Kt(568)][Kt(473)][Kt(502)](Kt(420));t[Kt(445)]=200,t[Kt(564)]=50;const e=t[Kt(483)]("2d");if(null===e)return!1;const n=e[Kt(522)](0,0,200,0);n[Kt(577)](0,Kt(614)),n[Kt(577)](1,Kt(578)),e[Kt(474)]=n,e[Kt(490)](0,0,200,50),e[Kt(474)]=Kt(462),e[Kt(450)]=Kt(593),e[Kt(454)](Kt(440),33,30);const r=t[Kt(539)]();return Boolean(r&&r[Kt(558)]>50)}catch(t){return!1}}[Kt(429)](){let t=0;this[Kt(568)][Kt(443)][Kt(584)]&&this[Kt(568)][Kt(443)][Kt(584)][Kt(558)]>0&&t++,(this[Kt(568)][Kt(443)][Kt(434)]&&this[Kt(568)][Kt(443)][Kt(434)][Kt(558)]>0||this[Kt(568)][Kt(443)][Kt(570)][Kt(416)](Kt(460)))&&t++,this[Kt(442)]()&&t++,typeof this[Kt(568)][Kt(492)][Kt(562)]!==Kt(458)&&t++;try{const e=(new Date)[Kt(595)]();e>-840&&e<840&&t++}catch(t){}return t>=3}[Kt(442)](){const t=this[Kt(568)][Kt(492)][Kt(525)]||this[Kt(568)][Kt(473)][Kt(425)][Kt(596)],e=this[Kt(568)][Kt(492)][Kt(524)]||this[Kt(568)][Kt(473)][Kt(425)][Kt(551)];if(!t||!e)return!1;if(t<=2||e<=2)return!1;const n=t/e;return n>=.2&&n<=5}[Kt(461)](t,e){return n=>{try{t(n)}catch(t){this[Kt(532)][Kt(479)](t,Kt(489)+e)}}}[Kt(530)](){const t=te(this[Kt(461)](t=>{this[Kt(566)][Kt(572)]++,this[Kt(566)][Kt(552)][Kt(558)]>=10&&this[Kt(566)][Kt(552)][Kt(624)](),this[Kt(566)][Kt(552)][Kt(581)]({x:t[Kt(439)],y:t[Kt(548)],t:t[Kt(621)]})},Kt(622)),100),e=this[Kt(461)](t=>{this[Kt(566)][Kt(457)]++,requestAnimationFrame(()=>setTimeout(()=>{this[Kt(566)][Kt(497)][Kt(558)]>=5&&this[Kt(566)][Kt(497)][Kt(624)](),this[Kt(566)][Kt(497)][Kt(581)]({x:t[Kt(439)],y:t[Kt(548)],t:t[Kt(621)],pre:this[Kt(567)](t)})},0))},Kt(612)),n=this[Kt(461)](t=>{this[Kt(566)][Kt(533)]++;const e=t[Kt(516)];if([Kt(430),Kt(455),Kt(583),Kt(538)][Kt(416)](e))return;const n=this[Kt(566)][Kt(419)][this[Kt(566)][Kt(419)][Kt(558)]-1],r=t[Kt(621)],i=n?r-n.t:null;this[Kt(566)][Kt(419)][Kt(558)]>=10&&this[Kt(566)][Kt(419)][Kt(624)](),this[Kt(566)][Kt(419)][Kt(581)]({_0x1c82b3:e,t:r,int:i}),null!==i&&i<100?(this[Kt(566)][Kt(421)][Kt(581)](i),this[Kt(566)][Kt(421)][Kt(558)]>=5&&(this[Kt(566)][Kt(575)]++,this[Kt(566)][Kt(421)]=[])):this[Kt(566)][Kt(421)]=[]},Kt(546)),r=te(this[Kt(461)](t=>{this[Kt(566)][Kt(561)]++;const e=t[Kt(621)],n=window[Kt(521)];this[Kt(566)][Kt(423)][Kt(558)]>=10&&this[Kt(566)][Kt(423)][Kt(624)](),this[Kt(566)][Kt(423)][Kt(581)]({p:n,t:e})},Kt(448)),200),i=this[Kt(461)](t=>{t[Kt(605)]&&0!==t[Kt(605)][Kt(558)]&&(this[Kt(566)][Kt(447)]++,this[Kt(566)][Kt(511)][Kt(558)]>=10&&this[Kt(566)][Kt(511)][Kt(624)](),this[Kt(566)][Kt(509)]={x:t[Kt(605)][0][Kt(439)],y:t[Kt(605)][0][Kt(548)],t:t[Kt(621)],typ:Kt(472),s:0,d:0})},Kt(480)),o=te(this[Kt(461)](t=>{if(!t[Kt(605)]||0===t[Kt(605)][Kt(558)])return;const e={x:t[Kt(605)][0][Kt(439)],y:t[Kt(605)][0][Kt(548)]};if(this[Kt(566)][Kt(509)]){const n=this[Kt(597)](this[Kt(566)][Kt(509)],e);this[Kt(566)][Kt(511)][Kt(558)]>=10&&this[Kt(566)][Kt(511)][Kt(624)]();const r={x:t[Kt(605)][0][Kt(439)],y:t[Kt(605)][0][Kt(548)],t:t[Kt(621)],typ:Kt(449),d:n,s:n/(t[Kt(621)]-this[Kt(566)][Kt(509)].t)};this[Kt(566)][Kt(511)][Kt(581)](r),this[Kt(566)][Kt(509)]=r}else{const e={x:t[Kt(605)][0][Kt(439)],y:t[Kt(605)][0][Kt(548)],t:t[Kt(621)],typ:Kt(449),s:0,d:0};this[Kt(566)][Kt(509)]=e}},Kt(471)),200),a=this[Kt(461)](t=>{this[Kt(566)][Kt(509)]=null},Kt(411));this[Kt(568)][Kt(473)][Kt(467)](Kt(622),t,{passive:!0}),this[Kt(568)][Kt(473)][Kt(467)](Kt(612),e,{passive:!0}),this[Kt(568)][Kt(473)][Kt(467)](Kt(546),n,{passive:!0}),this[Kt(568)][Kt(473)][Kt(467)](Kt(448),r,{passive:!0}),Kt(604)in window&&(this[Kt(568)][Kt(473)][Kt(467)](Kt(480),i,{passive:!0}),this[Kt(568)][Kt(473)][Kt(467)](Kt(471),o,{passive:!0}),this[Kt(568)][Kt(473)][Kt(467)](Kt(411),a,{passive:!0})),this[Kt(566)][Kt(507)]={mousemove:t,click:e,keydown:n,scroll:r,touchstart:i,touchmove:o,touchend:a}}async[Kt(608)](t=!1){this[Kt(569)](t),await this[Kt(518)](),this[Kt(566)][Kt(513)]=Date[Kt(565)]()}[Kt(569)](t=!1){const e=Date[Kt(565)]();let n=Math[Kt(618)]((e-this[Kt(566)][Kt(432)])/1e3);null!==this[Kt(566)][Kt(513)]&&(n=Math[Kt(618)]((e-this[Kt(566)][Kt(513)])/1e3)),this[Kt(566)][Kt(531)]?(this[Kt(566)][Kt(531)][Kt(617)]+=t?1:0,this[Kt(566)][Kt(531)][Kt(534)]+=n):this[Kt(566)][Kt(531)]={pageCount:1,sessionStart:this[Kt(566)][Kt(432)],duration:0}}[Kt(573)](t,e=!1){this[Kt(532)][Kt(613)](Kt(453)+t,e)}[Kt(554)](){try{if(this[Kt(568)][Kt(492)][Kt(464)]){const e=this[Kt(568)][Kt(492)][Kt(464)][Kt(582)](Yt);if(e){const n=JSON[Kt(520)](e);let r;return Kt(478)in n?r=n:r={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},r}}}catch(t){}var t;return null}[Kt(465)](t){try{this[Kt(568)][Kt(492)][Kt(464)]&&this[Kt(568)][Kt(492)][Kt(464)][Kt(588)](Yt,JSON[Kt(415)](re(t)))}catch(t){}}[Kt(567)](t){const e=t[Kt(437)];if(!(e&&e instanceof Element&&e[Kt(589)]))return 0;const n=e[Kt(589)]();if(!n[Kt(445)]||!n[Kt(564)])return 0;const r=n[Kt(512)]+n[Kt(445)]/2,i=n[Kt(574)]+n[Kt(564)]/2,o=this[Kt(597)]({x:t[Kt(439)],y:t[Kt(548)]},{x:r,y:i}),a=Math[Kt(508)](n[Kt(445)]**2+n[Kt(564)]**2)/2;return a>0?Math[Kt(485)](0,1-o/a):0}[Kt(597)](t,e){return Math[Kt(508)]((e.x-t.x)**2+(e.y-t.y)**2)}[Kt(470)](t){if(t[Kt(506)](Kt(607))||t[Kt(506)](Kt(563)))return t;return""+(this[Kt(568)][Kt(492)][Kt(557)][Kt(469)]||this[Kt(568)][Kt(492)][Kt(557)][Kt(488)]+"//"+this[Kt(568)][Kt(492)][Kt(557)][Kt(418)])+t}async[Kt(545)](t,e){if(!this[Kt(566)][Kt(528)])return;if(null===this[Kt(549)][Kt(505)])return void(this[Kt(566)][Kt(528)][Kt(523)]=Date[Kt(565)]());const n=function(t,e,n){return{v:t,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}}(1,re(t),e),r=JSON[Kt(415)](n),i=this[Kt(470)](this[Kt(549)][Kt(505)]);if(this[Kt(568)][Kt(443)][Kt(545)]&&!this[Kt(549)][Kt(484)])try{const t=new Blob([r],{type:Kt(606)});if(this[Kt(568)][Kt(443)][Kt(545)](i,t))return this[Kt(566)][Kt(528)][Kt(599)]=0,void(this[Kt(566)][Kt(528)][Kt(523)]=Date[Kt(565)]())}catch(t){}try{const t=await fetch(i,{method:Kt(476),headers:{"Content-Type":Kt(606)},body:r,credentials:Kt(547),keepalive:!0});if(!t.ok)throw new Error(Kt(579)+t[Kt(438)]);this[Kt(566)][Kt(528)][Kt(599)]=0,this[Kt(566)][Kt(528)][Kt(523)]=Date[Kt(565)]()}catch(n){this[Kt(441)](t,e)}}[Kt(441)](t,e){if(!this[Kt(566)][Kt(528)]||this[Kt(566)][Kt(528)][Kt(599)]>=this[Kt(549)][Kt(571)])return;const n=Math[Kt(519)](1e3*2**this[Kt(566)][Kt(528)][Kt(599)],3e4);this[Kt(566)][Kt(528)][Kt(599)]++,this[Kt(566)][Kt(528)][Kt(529)]=this[Kt(568)][Kt(492)][Kt(436)](()=>{this[Kt(566)][Kt(528)]&&this[Kt(545)](t,e)},n)}async[Kt(518)](){if(!this[Kt(566)][Kt(528)])return;const t=Qt(this[Kt(566)][Kt(572)],this[Kt(566)][Kt(552)],this[Kt(566)][Kt(457)],this[Kt(566)][Kt(497)],this[Kt(566)][Kt(419)],this[Kt(566)][Kt(533)],this[Kt(566)][Kt(575)],this[Kt(566)][Kt(561)],this[Kt(566)][Kt(447)],this[Kt(566)][Kt(423)],this[Kt(566)][Kt(511)],this[Kt(566)][Kt(432)],Date[Kt(565)]()),e=function(t,e,n,r){const i={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&&(i[Kt(594)]=!0),e.ca>0&&1===e.vc&&(i[Kt(412)]=!0),e.ka>0&&(i[Kt(504)]=!0),e.sa>0&&(i[Kt(543)]=!0),e.ta>0&&(i[Kt(555)]=!0),e.t>30&&(i[Kt(491)]=!0),n&&(n[Kt(617)]>1&&(i[Kt(433)]=!0),n[Kt(534)]>60&&(i[Kt(592)]=!0)),r){const t=Object[Kt(585)](i);for(const e of t)i[e]=i[e]||r[e]}return i}(this[Kt(566)][Kt(603)],t,this[Kt(566)][Kt(531)],this[Kt(566)][Kt(528)][Kt(535)]),n=function(t,e){if(!e)return!0;const n=Object[Kt(585)](t);for(const r of n)if(t[r]!==e[r])return!0;return!1}(e,this[Kt(566)][Kt(528)][Kt(535)]),r=Date[Kt(565)]()-this[Kt(566)][Kt(528)][Kt(523)],i=r>=this[Kt(549)][Kt(576)];if(n||i){if(Date[Kt(565)]()-this[Kt(566)][Kt(528)][Kt(493)]<100)return void this[Kt(573)](Kt(413),!0);if(i&&!n&&this[Kt(573)](Kt(611)+Math[Kt(431)](r/1e3)+Kt(517),!0),n&&this[Kt(549)][Kt(446)]){if(this[Kt(566)][Kt(528)][Kt(535)]){Object[Kt(585)](e)[Kt(540)](t=>{this[Kt(566)][Kt(528)][Kt(535)][t],e[t]})}else this[Kt(573)](Kt(424));this[Kt(566)][Kt(531)]}if(this[Kt(566)][Kt(528)][Kt(535)]=(o=e,{...o}),this[Kt(566)][Kt(528)][Kt(493)]=Date[Kt(565)](),this[Kt(465)](e),this[Kt(549)][Kt(616)]&&n)try{this[Kt(549)][Kt(616)](re(e))}catch(t){this[Kt(532)][Kt(479)](t,Kt(620))}const t=Kt(n?422:527);await this[Kt(545)](e,t)}else this[Kt(549)][Kt(446)];var o}}const oe=(t,e)=>({libVersion:"2.3.0",shopId:e||"",hostname:t[Kt(492)]?.[Kt(557)]?.[Kt(468)]||"",url:t[Kt(492)]?.[Kt(557)]?.[Kt(496)]||"",referrer:t[Kt(473)]?.[Kt(459)]||"",baseURI:t[Kt(473)]?.[Kt(544)]||"",sessionToken:kt()||"",uniqueToken:jt("_shopify_y","_y")||""}),ae=(t,e=Gt(),n=new Et(Rt,Vt))=>{const r=new Dt({exporter:n,attributes:oe(e,t?.[Kt(609)])}),i=kt(),o=i?function(t){let e=0;for(let n=0,r=t[Zt(481)];ns[Kt(417)]()):s[Kt(417)](),s};class se{quietWindowStartCandidates=[];longAnimationFrameObserver=null;longAnimationFrames=[];constructor(){this.initializeLongAnimationFrameObserver()}getQuietWindowStartCandidates(){return[...this.quietWindowStartCandidates].sort((t,e)=>t.startTime-e.startTime)}getLongAnimationFrames(){if(!le()){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(le())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 ce=null;function ue(t,e=0){if(null===t||!le()&&!Boolean(window.ShopifyAnalytics?.performance?.getLongAnimationFrames))return de(),null;const n=(ce?ce.getLongAnimationFrames():[]).map(t=>({startTime:t.startTime-e,endTime:t.endTime-e}));let r=null;for(const e of n){if(e.startTime<=t&&e.endTime>t){r=e;break}if(e.startTime>=t){r=e;break}}if(!r||r.startTime-t>=250)return de(),t;const i=(ce?ce.getQuietWindowStartCandidates():[]).map(t=>({startTime:t.startTime-e}));let o=t;if(i.length>0)for(const e of i)if(e.startTime>=t){o=e.startTime;break}return de(),o}function le(){return PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")}function de(){ce&&(ce.destroy(),ce=null)}function he(){return PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")}function fe(){return performance.getEntriesByType("long-animation-frame")}let me=null,pe=!1;function ge(){me=null,pe=!1}const ve=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"}),ye=new RegExp(`^${window.location.origin}/((?:(?:[a-z]{2,3}|zh-hans|zh-hant)(?:-[a-zA-Z0-9]+)/)?cart/(add|change|update|clear))`),we=new RegExp("cart-performance:|add:|change:|clear:|note_update:");var Ce;function Se({monorailRegion:t,schema:e,rawData:n}){const r=Date.now(),i={schema_id:e,payload:e===Ce.OnUnload?Te(n):_e(n),metadata:{event_created_at_ms:r,event_sent_at_ms:r}},o=ve[t||""],a=JSON.stringify(i);if(o)if(e!==Ce.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){}be(o,a)}else!function(t,e){if("function"==typeof window.fetchLater){const n=me;try{const r=new AbortController;return window.fetchLater(t,{method:"POST",body:e,headers:{"Content-Type":"text/plain"},credentials:"include",signal:r.signal}),me=r,void n?.abort()}catch(t){if(null!==n)return}}if(pe)return;be(t,e),pe=!0}(o,a);else console.debug("📡 Monorail: ",JSON.stringify(i,null,2))}function be(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 Te(t){const e=Le(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 _e(t){const e=Le(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 Le(t,e){return e.reduce((e,n)=>{var r;return null!=t[n]&&(e[(r=n,r.replace(/[A-Z]/g,t=>`_${t.toLowerCase()}`))]=t[n]),e},{})}function Be(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"}(Ce||(Ce={}));function De(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 xe="xxxx-4xxx-xxxx-xxxxxxxxxxxx";function Me(){let t="";try{const e=window.crypto,n=new Uint16Array(31);e.getRandomValues(n);let r=0;t=xe.replace(/[x]/g,t=>{const e=n[r]%16;return r++,("x"===t?e:3&e|8).toString(16)}).toUpperCase()}catch(e){t=xe.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=!0,Ae=!1,Pe=null,Ee=null,Ie=!1;class Ne{info;config;sampled;onUnloadCounted;constructor(t){this.config=t,this.info={perfKitInit:Date.now(),perfKitVersion:"3.7.0",url:window.location.href,referrer:document.referrer||void 0,microSessionId:Me(),microSessionCount:0,get sessionToken(){return gt("_shopify_s","_s")},get uniqueToken(){return gt("_shopify_y","_y")}},this.sampled=100*Math.random()<=(t.resourceTimingSamplingRate??10),this.onUnloadCounted=!1,performance.setResourceTimingBufferSize(1e3)}get performanceMetrics(){return function(t){const e=performance.getEntriesByType("navigation");if(0===e.length)return{};const n=e[0],r=n.activationStart||0,i=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:i,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:Be(n.domInteractive,r),domComplete:Be(n.domComplete,r),domContentLoadedEventStart:Be(n.domContentLoadedEventStart,r),domContentLoadedEventEnd:Be(n.domContentLoadedEventEnd,r),activationStart:Math.round(r),redirectCount:n.redirectCount,initiatorType:n.initiatorType,transferSize:n.transferSize}}(this.info.perfKitInit)}}function qe(t){Pe=new Ne(t),Ee=null,je.clear(),ge(),ce||(ce=new se),t.spaMode&&(window.PerfKit={navigate:()=>{ze?ze=!1:Ae||(ke(),Pe=new Ne(t),je.clear(),ge(),Ae=!0)},setPageType:e=>{t.storefrontData.pageType=e},setConsent:t=>{Ee=t}}),t.shs&&!t.spaMode&&ae({debug:!1,shopId:t.storefrontData.shopId,exportWithFetch:t.shsExportWithFetch||!0,logsSampleRate:t.shsLogsSampleRate,...t.shsBeaconEndpoint&&{beaconEndpoint:t.shsBeaconEndpoint}})}const je=new Set;function ke(){if(null!==Pe){if(!Oe()&&Ue()&&je.size>0){let t={};for(const e of je)t={...t,...e};const e=t.firstContentfulPaint??null,n=ue(e,performance.getEntriesByType("navigation")[0]?.activationStart||0);null!==e&&null!==n&&(t.quietWindowStart=Math.round(n));const r=function(){if(!he())return null;const t=fe();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!==r&&(t.totalStylingDuration=Math.round(r));const i=function(){if(!he())return null;const t=fe();if(0===t.length)return null;if("number"!=typeof t[0].styleDuration)return null;let e=0,n=0,r=0,i=0;for(const o of t){const t=o;e+=t.styleDuration??0,r+=t.layoutDuration??0;for(const t of o.scripts){const e=t;n+=e.forcedStyleDuration??0,i+=e.forcedLayoutDuration??0}}return{totalStyleDuration:e,totalForcedStyleDuration:n,totalLayoutDuration:r,totalForcedLayoutDuration:i}}();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)),Pe.onUnloadCounted||(Pe.info.microSessionCount+=1,Pe.onUnloadCounted=!0);const o=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))})}(Pe.sampled),a=function(t){if("function"!=typeof performance.getSpeculations)return;const e=performance.getSpeculations().preloads??[];let n=0,r=0,i=0;const o=[];for(const a of e){const e=Boolean(a.earlyhint??a.earlyHints);e&&(i+=1),null==a.used?(r+=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:r,unused_preload_details:o,early_hint_preloads:i}}(Pe.sampled),s=performance.getEntriesByType("resource").filter(t=>ye.test(t.name)),c=performance.getEntriesByType("measure").filter(t=>we.test(t.name)).map(t=>{const e=t.toJSON();return e.name.startsWith("cart-performance:")||(e.name=`cart-performance:${e.name}`),e});Se({monorailRegion:Pe.config.monorailRegion,schema:Ce.OnUnload,rawData:{...Pe.info,...Pe.config.storefrontData,...Pe.performanceMetrics,...t,resourceTiming:o,cartAjaxResourceTimings:s,cartPerformanceMetrics:c,paintTimingHidden:Ie,speculations:a}})}}else console.debug("⛔️ Shopify/perf-kit is not initialized")}function Ue(){return null!==Ee?Ee:ft()}((e,r={})=>{const o=a(r=Object.assign({},r),t),s=new WeakMap;o.t=t=>{if(t?.sources?.length){const e=L(t.sources),n=e?.node;if(n){const t=r.generateTarget?.(n)??i(n);s.set(e,t)}}},((e,n={})=>{const r=C();T(p(()=>{let i,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,i())},h=m("layout-shift",c);h&&(i=l(e,o,_,n.reportAllChanges),r.onHidden(()=>{c(h.takeRecords()),i(!0)}),u(()=>{s.o=0,o=f("CLS",0),i=l(e,o,_,n.reportAllChanges),d(()=>i())}),setTimeout(i))}))})(t=>{const r=(t=>{let e={};if(t.entries.length){const r=t.entries.reduce((t,e)=>t.value>e.value?t:e);if(r?.sources?.length){const t=L(r.sources);t&&(e={largestShiftTarget:s.get(t),largestShiftTime:r.startTime,largestShiftValue:r.value,largestShiftSource:t,largestShiftEntry:r,loadState:n(r.startTime)})}}return Object.assign(t,{attribution:e})})(t);e(r)},r)})(function(t){const{attribution:e,value:n}=t;je.add({cumulativeLayoutShift:n,cumulativeLayoutShiftTarget:e.largestShiftTarget})},{reportAllChanges:!0}),((t,n={})=>{const r=a(n=Object.assign({},n),q),o=new WeakMap;r.m=t=>{const e=t.element;if(e){const r=n.generateTarget?.(e)??i(e);o.set(t,r)}},((t,e={})=>{S(()=>{const n=C();let r,i=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(),r(!0)}),o=t=>{t.isTrusted&&(I(n),removeEventListener(t.type,o,{capture:!0}))};for(const t of["keydown","click","visibilitychange"])addEventListener(t,o,{capture:!0});u(n=>{i=f("LCP"),r=l(t,i,j,e.reportAllChanges),d(()=>{i.value=performance.now()-n.timeStamp,r(!0)})})}})})(n=>{const r=(t=>{let n={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:t.value};if(t.entries.length){const r=e();if(r){const e=r.activationStart||0,i=t.entries.at(-1),a=i.url&&performance.getEntriesByType("resource").filter(t=>t.name===i.url)[0],s=Math.max(0,r.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(i),timeToFirstByte:s,resourceLoadDelay:c-s,resourceLoadDuration:u-c,elementRenderDelay:t.value-u,navigationEntry:r,lcpEntry:i},i.url&&(n.url=i.url),a&&(n.lcpResourceEntry=a)}}return Object.assign(t,{attribution:n})})(n);t(r)},n)})(function(t){const{attribution:e,value:n}=t;je.add({largestContentfulPaint:Math.round(n),largestContentfulPaintTarget:e.target})},{reportAllChanges:!0}),((t,r={})=>{T(r=>{const i=(t=>{let r={timeToFirstByte:0,firstByteToFCP:t.value,loadState:n(c())};if(t.entries.length){const i=e(),o=t.entries.at(-1);if(i){const e=i.activationStart||0,a=Math.max(0,i.responseStart-e);r={timeToFirstByte:a,firstByteToFCP:t.value-a,loadState:n(t.entries[0].startTime),navigationEntry:i,fcpEntry:o}}}return Object.assign(t,{attribution:r})})(r);t(i)},r)})(function(t){const{value:e}=t;je.add({firstContentfulPaint:Math.round(e)})}),((t,e={})=>{const r=a(e=Object.assign({},e),E);let o=[],s=[],c=0;const d=new WeakMap,h=new WeakMap;let p=!1;const g=()=>{p||(I(v),p=!0)},v=()=>{const t=r.l.map(t=>d.get(t.entries[0])),e=s.length-50;s=s.filter((n,r)=>r>=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 i=o.length-1-50;o=o.filter((t,e)=>t.startTime>c&&e>i||n.has(t)),p=!1};r.m=t=>{const e=t.startTime+t.duration;let n;c=Math.max(c,t.processingEnd);for(let r=s.length-1;r>=0;r--){const i=s[r];if(Math.abs(e-i.renderTime)<=8){n=i,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)&&d.set(t,n),g()},r.p=t=>{if(!h.get(t)){const n=t.entries[0].target;if(n){const r=e.generateTarget?.(n)??i(n);h.set(t,r)}}};const y=(t,e)=>{const n=[];for(const r of o)if(!(r.startTime+r.duratione)break;n.push(r)}return n},w=t=>{const e=t.entries[0],i=d.get(e),o=e.processingStart,a=Math.max(e.startTime+e.duration,o),s=Math.min(i.processingEnd,a),c=i.entries.sort((t,e)=>t.processingStart-e.processingStart),u=y(e.startTime,s),l=r.h.get(e.interactionId),f={interactionTarget:h.get(l),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,r=t.processingDuration;let i,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+r?"presentation-delay":"processing-duration",i=t,u=l)}}const l=t.longAnimationFrameEntries.at(-1),d=l?l.startTime+l.duration:0;d>=e+n+r&&(c=t.nextPaintTime-d),i&&o&&(t.longestScript={entry:i,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=C();S(()=>{"interactionCount"in performance||z||(z=m("event",M,{type:"event",buffered:!0,durationThreshold:0}));let r,i=f("INP");const o=a(e,E),s=t=>{I(()=>{for(const e of t)o.u(e);const e=o.M();e&&e.T!==i.value&&(i.value=e.T,i.entries=e.entries,r())})},c=m("event",s,{durationThreshold:e.durationThreshold??40});r=l(t,i,N,e.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{s(c.takeRecords()),r(!0)}),u(()=>{o.v(),i=f("INP"),r=l(t,i,N,e.reportAllChanges)}))})})(e=>{const n=w(e);t(n)},e)})(function(t){const{attribution:e,value:n}=t;if(null===Pe)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]),r=Number(e[2]||0);return n<26||26===n&&r<4}())return;if(Oe())return;if(!Ue())return;Pe.info.microSessionCount+=1;const{inputDelay:r,processingDuration:i,presentationDelay:o,longestScript:a,interactionTarget:s}=e,c=a?.entry?{slowest_script:a.entry.sourceURL,slowest_script_duration:Math.round(a.entry.duration)}:{};Se({monorailRegion:Pe.config.monorailRegion,schema:Ce.OnInteraction,rawData:{...Pe.info,...Pe.config.storefrontData,...Pe.performanceMetrics,interactionToNextPaint:Math.round(n),interactionToNextPaintTarget:s,longAnimationFrame:{input_delay:Math.round(r),processing_duration:Math.round(i),presentation_delay:Math.round(o),...c}}})},{reportAllChanges:!0}),((t,n={})=>{((t,n={})=>{let r=f("TTFB"),i=l(t,r,k,n.reportAllChanges);U(()=>{const o=e();o&&(r.value=Math.max(o.responseStart-h(),0),r.entries=[o],i(!0),u(()=>{r=f("TTFB",0),i=l(t,r,k,n.reportAllChanges),i(!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],r=n.activationStart||0,i=Math.max((n.workerStart||n.fetchStart)-r,0),o=Math.max(n.domainLookupStart-r,0),a=Math.max(n.connectStart-r,0),s=Math.max(n.connectEnd-r,0);e={waitingDuration:i,cacheDuration:o-i,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;je.add({timeToFirstByte:Math.round(e)})}),addEventListener("DOMContentLoaded",()=>{Ie="hidden"===document.visibilityState}),addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&ke()}),addEventListener("pagehide",()=>{ke()});const He=/bot|crawl|headless|curl|wget|python|spider|libwww-pearl|newrelic|datadog|sitebulb|site24x7/i;function Oe(){return!!He.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{qe(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:De(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:Number(t.shsLogsSampleRate)||1}}(t))}catch(t){console.error("🚫 Error initializing PerfKit:",t.message)}}()}();