!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 s(t,e){return o.get(t)||o.set(t,new e),o.get(t)}let a=-1;const c=()=>a,u=t=>{addEventListener("pageshow",e=>{e.persisted&&(a=e.timeStamp,t(e))},!0)},h=(t,e,n,r)=>{let i,o;return s=>{e.value>=0&&(s||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)))}},l=t=>{requestAnimationFrame(()=>requestAnimationFrame(()=>t()))},d=()=>{const t=e();return t?.activationStart??0},m=(t,n=-1)=>{const r=e();let i="navigate";return c()>=0?i="back-forward-cache":r&&(document.prerendering||d()>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}},f=(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))}},b=()=>{if(g<0){const t=d(),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],T=(t,e={})=>{C(()=>{const n=b();let r,i=m("FCP");const o=f("paint",t=>{for(const e of t)"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime{i=m("FCP"),r=h(t,i,S,e.reportAllChanges),l(()=>{i.value=performance.now()-n.timeStamp,r(!0)})}))})},L=[.1,.25],x=t=>t.find(t=>1===t.node?.nodeType)||t[0];let M=0,D=1/0,_=0;const B=t=>{for(const e of t)e.interactionId&&(D=Math.min(D,e.interactionId),_=Math.max(_,e.interactionId),M=_?(_-D)/7+1:0)};let z;const A=()=>z?M:performance.interactionCount??0;let E=0;class P{l=[];h=new Map;m;p;v(){E=A(),this.l.length=0,this.h.clear()}M(){const t=Math.min(this.l.length-1,Math.floor((A()-E)/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 k{m;u(t){this.m?.(t)}}const q=[2500,4e3],j=[800,1800],U=t=>{document.prerendering?C(()=>U(t)):"complete"!==document.readyState?addEventListener("load",()=>U(t),!0):setTimeout(t)},H="",O="1",F="0",W="p",R="a",Z="m",K="t",V="m",J="a",X="p",Y="s";function G(t){try{return decodeURIComponent(t)}catch(t){return""}}function $(t,e=!1){const n=function(){try{return document.cookie}catch{return!1}}()?document.cookie.split("; "):[];for(let e=0;e"_cmp"===t.name);let r=null==n?void 0:n.description;if(!r)return;try{r=decodeURIComponent(r)}catch{}return r}catch{return}}();if(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,s]=e;let a,c;try{a=e[5]?JSON.parse(e.slice(5).join("_")):void 0}catch{}if(s){const t=s.replace(/\*/g,"/").replace(/-/g,"+"),e=Array.from(atob(t)).map(t=>t.charCodeAt(0).toString(16).padStart(2,"0")).join("");c=[8,13,18,23].reduce((t,e)=>t.slice(0,e)+"-"+t.slice(e),e)}function u(t){const e=n.split(".")[0];return e.includes(t.toLowerCase())?F:e.includes(t.toUpperCase())?O:H}function h(t){return n.includes(t.replace("t","s").toUpperCase())}return{v:"3",con:{CMP:{[J]:u(J),[X]:u(X),[V]:u(V),[Y]:u(Y)}},region:r||"",cus:a,purposes:{[R]:h(R),[W]:h(W),[Z]:h(Z),[K]:h(K)},sale_of_data_region:"t"==o,display_banner:"t"==i,consent_id:c}}(t);return}(t)}function tt(){return function(t){const e=Q();if(!e||!e.purposes)return!0;const n=e.purposes[t];return"boolean"!=typeof n||n}(R)}function et(){return tt()}function nt(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var rt=0;function it(t){return"__private_"+rt+++"_"+t}function ot(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 at=function(t,e,n){const r=[0];for(let i=0;i{switch(e.attributes={...nt(this,ut)[ut],...e.attributes},e.type){case"histogram":!function(t,e){var n;const{name:r,value:i,unit:o,timeUnixNano:s,attributes:a}=e,c=null!==(n=e.bounds)&&void 0!==n?n:at,u=new Array(c.length+1).fill(0);t[r]||={name:r,unit:o||"1",histogram:{aggregationTemporality:1,dataPoints:[]}};for(let t=0;t0?l:0,bucketCounts:r>0?[1]:[]};t[n].exponentialHistogram.dataPoints.push({attributes:ot(null!=s?s:{}),startTimeUnixNano:o,timeUnixNano:o,count:1,sum:c,scale:u,zeroCount:d,positive:f,negative:m,min:c,max:c,zeroThreshold:0})}(t,e);break;case"counter":!function(t,e){const{name:n,value:r,unit:i,timeUnixNano:o,attributes:s}=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:ot(null!=s?s:{})})}(t,e);break;case"gauge":!function(t,e){const{name:n,value:r,unit:i,timeUnixNano:o,attributes:s}=e;t[n]||={name:n,unit:i||"1",gauge:{dataPoints:[]}},t[n].gauge.dataPoints.push({startTimeUnixNano:o,timeUnixNano:o,asDouble:r,attributes:ot(null!=s?s:{})})}(t,e)}});const e=Object.values(t);0!==e.length&&(nt(this,ht)[ht]=[],await nt(this,ct)[ct].exportMetrics(e))}async exportLogs(){const t=nt(this,lt)[lt].map(t=>{const e={timeUnixNano:t.timeUnixNano,observedTimeUnixNano:t.timeUnixNano,attributes:(n={...nt(this,ut)[ut],...t.attributes},Object.entries(n).map(([t,e])=>({key:t,value:st(e)})))};var n;return t.body&&(e.body={stringValue:t.body}),e});0!==t.length&&(nt(this,lt)[lt]=[],await nt(this,ct)[ct].exportLogs(t))}}var mt=it("url"),ft=it("serviceName"),pt=it("logger"),gt=it("fetchFn");class vt{constructor(t,e,n){Object.defineProperty(this,mt,{writable:!0,value:void 0}),Object.defineProperty(this,ft,{writable:!0,value:void 0}),Object.defineProperty(this,pt,{writable:!0,value:void 0}),Object.defineProperty(this,gt,{writable:!0,value:void 0}),nt(this,mt)[mt]=t.replace(/\/v1\/(logs|metrics|traces)\/?$/,""),nt(this,ft)[ft]=e,nt(this,pt)[pt]=null==n?void 0:n.logger,nt(this,gt)[gt]=null==n?void 0:n.fetchFn}async exportMetrics(t){await this.exportBatches("/v1/metrics",[...t],t=>({resourceMetrics:[{resource:{attributes:[{key:"service.name",value:{stringValue:nt(this,ft)[ft]}}]},scopeMetrics:[{scope:{name:"open-telemetry-mini-client",version:"1.1.0",attributes:[]},metrics:t}]}]}))}async exportLogs(t){await this.exportBatches("/v1/logs",[...t],t=>({resourceLogs:[{resource:{attributes:[{key:"service.name",value:{stringValue:nt(this,ft)[ft]}}]},scopeLogs:[{scope:{name:"open-telemetry-mini-client",version:"1.1.0",attributes:[]},logRecords:t}]}]}))}async exportTo(t,e){var n;const r=JSON.stringify(t),i=(new TextEncoder).encode(r).length;if(i>65536)throw new wt(`Payload size ${i} exceeds 65536 bytes`);const o=await this.exporterFetch()(`${nt(this,mt)[mt]}${e}`,{method:"POST",keepalive:!0,headers:{"Content-Type":"application/json"},body:r});if(null===(n=nt(this,pt)[pt])||void 0===n||n.log({status:o.status}),!o.ok){if(400===o.status){const t=await o.text();throw new yt(`Invalid OpenTelemetry Data: ${t}`)}if(429===o.status||503===o.status){const e=await o.text(),n=o.headers.get("Retry-After"),r=n?{seconds:Number(n)}:void 0;throw new yt("Server did not accept data",{errorData:e,retryAfter:r,body:t})}throw new yt(`Server responded with ${o.status}`)}}exporterFetch(){return nt(this,gt)[gt]||fetch}async exportBatches(t,e,n){let r=e.length;for(;e.length>0;)try{const i=e.slice(0,r);await this.exportTo(n(i),t),e.splice(0,r)}catch(t){if(!(t instanceof wt&&r>1))throw t;r=Math.ceil(r/2)}}}class yt extends Error{constructor(t,e){super(t),this.metadata=void 0,this.name="OpenTelemetryClientError",this.metadata=e}}class wt extends Error{constructor(...t){super(...t),this.name="PayloadTooLargeError"}}function bt(){var t=["mtGWofzHDgX2wq","mJC3mteYsvvqwxfg","mtuWzNnXAfPy","mJe4tfrivhLS","ndLYwvnrAMC","mtq3nhveq0TUEq","mZmZmJruA21Zvve","ndG4odHiyuf3AhK","oda2DKvNt0L4","mtyWntm0mgTMz3nNqW","odq2A0r2uhHu","ndC3CKnMDvbc","mtK4ota2D1brB0jR"];return(bt=function(){return t})()}function Ct(t,e){var n=bt();return Ct=function(e,r){var i=n[e-=382];if(void 0===Ct.FFbpEM){Ct.bKpkiv=function(t){for(var e,n,r="",i="",o=0,s=0;n=t.charAt(s++);~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 a=0,c=r.length;a=this.sampleRate))try{await this.otelClient.exportLogs()}catch(t){this.stdout&&console.log(`[SHS] Otel export logs failure: ${t}`)}}scheduleErrorFlush(){this.errorFlushTimeoutId&&clearTimeout(this.errorFlushTimeoutId),this.errorFlushTimeoutId=window.setTimeout(()=>{this.flushOtelLogs().catch(()=>{})},this.errorFlushDelay)}}!function(t){const e=t();for(;;)try{if(131159===parseInt(jt(320))/1+-parseInt(jt(188))/2*(parseInt(jt(305))/3)+-parseInt(jt(219))/4*(parseInt(jt(250))/5)+parseInt(jt(234))/6+-parseInt(jt(287))/7+parseInt(jt(331))/8+parseInt(jt(368))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(Pt);const Tt=jt(227),Lt=jt(358),xt=jt(280),Mt=jt(321);function Dt(){return{document:document,navigator:typeof navigator!==jt(309)?{get webdriver(){return navigator[jt(336)]},get userAgent(){return navigator[jt(292)]},get languages(){return navigator[jt(216)]},get plugins(){return navigator[jt(329)]},sendBeacon:navigator[jt(378)]?.[jt(228)](navigator)}:{webdriver:void 0,userAgent:"",languages:[],plugins:[],sendBeacon:void 0},window:window,screen:screen,performance:typeof performance!==jt(309)?performance:void 0}}function _t(t){if(t[jt(183)]<2)return{speed:0,jitter:0};const e=t[jt(298)]((t,e)=>t+e.s,0)/t[jt(183)],n=t[jt(298)]((t,n)=>t+(n.s-e)**2,0)/(t[jt(183)]-1),r=Math[jt(311)](n);return{speed:e,jitter:r}}function Bt(t,e,n,r,i,o,s,a,c,u,h,l,d){const m=Math[jt(299)](1e3,t),f=Math[jt(299)](1e3,n),p=Math[jt(299)](1e3,o),g=Math[jt(299)](1e3,a),v=Math[jt(299)](1e3,s),y=Math[jt(299)](1e3,c),w=[];if(e[jt(183)]>=3)for(let t=1;t5e-4){e=!0;break}n=r.s}else n=r.s;return e}(w),C=function(t){if(t[jt(183)]<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:S,jitter:T}=_t(w);let L=0,x=0;if(r[jt(183)]>1){const t=new Set(r[jt(348)](t=>Math[jt(218)](t.x/20)+","+Math[jt(218)](t.y/20)))[jt(370)];L=t>1?1:0,x=r[jt(298)]((t,e)=>t+e[jt(255)],0)/r[jt(183)]}const M=i[jt(298)]((t,e)=>(null===e[jt(279)]||t[jt(210)](e[jt(279)]),t),[]),{rhythmConsistency:D,jitter:_}=function(t){if(t[jt(183)]<2)return{rhythmConsistency:0,jitter:0};const e=t[jt(298)]((t,e)=>t+e,0)/t[jt(183)],n=t[jt(298)]((t,n)=>(t??0)+((n??0)-e)**2,0)/t[jt(183)],r=Math[jt(311)](n);return{rhythmConsistency:0===r?1:Math[jt(294)](0,1-r/e),jitter:r/e}}(M),B=M[jt(183)]>0?M[jt(298)]((t,e)=>t+e,0)/M[jt(183)]:0,z=[];if(u[jt(183)]>=3)for(let t=1;tu[t-1].p?jt(254):"up";z[jt(210)]({s:r,dir:i,t:u[t].t})}const{speed:A,jitter:E}=_t(z),P=function(t){if(t[jt(183)]<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:k}=_t(h),q=function(t){if(t[jt(183)]<2)return 0;let e=0;for(let n=1;n=500&&e++;return e}(h)),U=Math[jt(218)]((d-l)/1e3);return{ma:m,ca:f,ka:p,sa:g,ta:y,kba:v,t:Math[jt(299)](3600,U),nm:b?1:0,ms:At(C),mj:At(T),msp:At(S),vc:L,cp:At(x),rc:At(D),kj:At(_),ki:At(B),ss:At(A),sj:At(E),ssm:At(P),sp:I,ts:At(N),tj:At(k),tp:j,tsm:At(q)}}function zt(t,e){let n=0;return(...r)=>{const i=typeof performance!==jt(309)?performance[jt(243)]():Date[jt(243)]();i-n>=e&&(n=i,t(...r))}}function At(t){return Math[jt(215)](100*t)/100}function Et(t){return{wd:t[jt(230)],ua:t[jt(229)],cf:t[jt(195)],be:t[jt(213)],nm:t[jt(325)],nc:t[jt(242)],ka:t[jt(241)],sa:t[jt(211)],ta:t[jt(285)],pt:t[jt(248)],mp:t[jt(246)],sd:t[jt(189)]}}function Pt(){const t=["C3rHCNruAw1L","y2XPzw50wq","Bg9N","Ahr0Chm6lY8","CMvXDwvZDeLKBgvdywXSyMfJAW","A2v5","Aw5JBhvKzxm","yxbWBgLJyxrPB24VANnVBG","zxzLBNriyw5KBgvYCW","ChvZAa","C2nYB2XSx2fJDgL2Axr5","C2v0sxrLBq","yNjVD3nLCL9LBNzPCM9UBwvUDf9UB3jTywW","yNjVD3nLCKfqsq","CM91BMq","BgfUz3vHz2vZ","AhjLzG","zMXVB3i","nhjKrLjnrW","B3jPz2LU","qMvHy29UigzHAwXLzdOG","zM9YrwfJAa","Bg9NtwvZC2fNzq","y2f0y2G","zw52AxjVBM1LBNq","CMv0CNLdB3vUDa","Ahr0Chm6lY9VDgXWlwH0DhaTChjVzhvJDgLVBI5ZAg9WAwz5C3zJlMnVBq","yMLUza","yM90x3vZzxjFywDLBNq","D2vIzhjPDMvYx2rLDgvJDgvK","zg9JDw1LBNq","CgfYC2u","y3jLyxrLtgLUzwfYr3jHzgLLBNq","nZGWmJq2EeD3A2TM","CMv0CNLuAw1LB3v0swq","A2v5qwn0AxzPDhK","C2nYB2XSrxzLBNrZ","BgvMDa","DgLTzvn0yw1W","DxbKyxrLsw50zxj2ywXjza","A2v5yM9HCMrFywn0AxzPDhK","BMf0DxjHBf9JBgLJA19Wyxr0zxjUCW","BM93","D2LUzg93","y2XLyxjuAw1LB3v0","BxvSDgLWBgvFCgfNzxnFDMLZAxrLza","ywrKrxzLBNrmAxn0zw5LCG","C2LNBMLMAwnHBNrFCgfNzv90Aw1L","D2LKDgG","mJe5mJK1wxDgv1rh","CgfNzunVDw50","C2nYB2XS","ChjVy2vZC0fUzfnLBMrtAwDUywXZ","zg93BG","ChjL","Bw91C2vTB3zL","w1niu10G","yMfZzvvssq","Aw5UzxjizwLNAhq","yMvHy29Uu3rHDgu","xZb4yJm0ntGZ","y2XPzw50sgvPz2H0","A2v5rxzLBNrZ","DxbKyxrLsw50zxj2ywW","yMX1zq","z2v0rgLZDgfUy2u","Dg9W","yMvHy29Urw5KCg9PBNq","zhvYyxrPB24","C2vZC2LVBKrHDge","y2HLy2TbBMrtzw5Ku2LNBMfSCW","Dg91y2HTB3zL","yMvHy29UuMv0CNLmAw1PDa","C2HVCeLK","Bw9UAxrVCKjLAgf2Aw9Y","z2v0qM91BMrPBMDdBgLLBNrszwn0","Ag9ZDa","Dg91y2Hby3rPDML0Eq","Aw50","l2fWAs9JB2XSzwn0","Ahr0CdOVlW","Ag9ZDg5HBwu","Bg9HzgLUzW","icaOsw5PDgLHBcbZAwDUywWGC2v0kq","Dg91y2HFywn0AxzPDhK","C3rHDgu","mtC3mta5mwDnDhzwyG","Dg91y2HLCW","ChjVDg9JB2W","zg9JDw1LBNrfBgvTzw50","C3rHCNrZv2L0Aa","DxnLCKfNzw50","Dg91y2HfDMvUDhm","Bwf4","C2v0vgLTzw91Da","BMf2AwDHDg9Y","y2fUy2vSswrSzunHBgXIywnR","CMvKDwnL","BwLU","ue9tva","y2HLy2TcCM93C2vYq29UC2LZDgvUy3K","C2nYB2XSqwn0AxzPDhK","CNvUq2fUDMfZvgvZDa","i2zMzG","m3rStvfezq","A2v5yM9HCMrcDxjZDefJDgL2Axr5","C2nOzwr1BgvczwfJB25szxrYEq","AgvPz2H0","Dw5KzwzPBMvK","zgvZDhjVEq","C3fYDa","z2v0qwjZB2X1DgvvCMW","yxrHBJi","DgvZDa","u2vUzgLUzYbWzxjPB2rPyYbIzwfJB24Glsa","y29VA2LL","C3rYAw5NAwz5","zMLSBfjLy3q","y2XPy2S","ndeWmdzHCNnJA3C","x3nOC19ZDgf0zq","Aw5UzxjxAwr0Aa","C2vZC2LVBLn0B3jHz2u","y3jLyxrLrwXLBwvUDa","BMf0DxjHBf9TB3vZzv9Hy3rPDML0Eq","zxHLyW","CMvTB3zLrxzLBNrmAxn0zw5LCG","y2fUDMfZ","CgX1z2LUCW","y2fSy3vSyxrLq2XPy2TqCMvJAxnPB24","nJiZmtC2zMzgvhDo","Bw92zq","BgfZDfn1y2nLC3nMDwXtzw5KvgLTzq","Aw5JBhvKzq","rxzLBNqGAgfUzgXLCIbLCNjVCIbPBIa","D2vIzhjPDMvY","zMX1C2HpDgvStg9NCW","u2HVCgLMEsbtDg9YzwzYB250","CMvK","A2v5yM9HCMrcDxjZDhm","y2HLy2TwAwv3Cg9YDfjHDgLV","CgvYAw9KAwm","DgfYz2v0","zgLY","DgHLBG","y2XPy2TqB3nPDgLVBNm","tw9IAwXL","BwfW","q29UDhjVBa","qMvHy29UihnLBMqGzgvIB3vUy2vKicH0B28GC29VBIbZAw5JzsbSyxn0ihnLBMqP","CMvXDwvZDeLKBgvdywXSyMfJA0LK","z2v0q29UDgv4Da","BgfZDfbYB2nLC3nuAw1L","z2v0vgLTzxPVBMvpzMzZzxq","A2v5CW","zw52AxjVBM1LBNrdAgvJA2vK","C2fMzuv2zw50sgfUzgXLCG","CgvYzI1RAxqTAhvTyw4TC2LNBMfSCW","zgv2AwnLugL4zwXsyxrPBW","qwX0","Aw5PDa","C2HPzNq","re9nq29UDgvUDeXVywrLza","Dg91y2HZDgfYDa","Bg9NC1nHBxbSzvjHDgu","Bw91C2vqB3nPDgLVBNm","CMvMzxjYzxi","mZu4odG1oeXdC3bgDa","twv0yq","C2L6zq","Bg9JyxrPB24","A2v5zg93BG","C3rHDhvZ","y2HHBMDL","z2v0sxrLBq","CYbZAw5JzsbSyxn0ihn1y2nLC3nMDwWGC2vUza","ywjZ","C2vUzejLywnVBG","DxbKyxrLu2vZC2LVBKrHDge","u2HPzNq","BgfZDfnPz25HBhm","B250B3vJAhn0yxj0","C3rHCNq","y2XPy2Tby3rPDML0Eq","zMLSBfn0EwXL","y2XPzw50wa","ywrKq29SB3jtDg9W","BgfZDfrVDwnOrxzLBNq","zgvIDwC","mtzWEcbbCMLHBa","CMvHzhLtDgf0zq","C2nYB2XSwq","BgvUz3rO","C2f2zvnLC3nPB25tAwDUywXZ","xZb4m2u2ndKW","xZb4mZqXotm0","y2XPzw50v2LKDgG","ndm5mZuWvfHpBhDK","C2vZC2LVBL9KDxjHDgLVBL9YzwfZB25HyMXL","Bg9HzfnLC3nPB25tAwDUywXZ","zxHWB3j0v2L0AezLDgnO","y2HLy2TfBNzPCM9UBwvUDa","BgfZDfvWzgf0zvrPBwu","Bwf4u2LSzw5Jzu1Z","y2fUDMfZx2zPBMDLCNbYAw50x25VCM1HBa","zM9UDa","Dg9eyxrHvvjm","Dg91y2HLBMq","zMLSBfrLEhq","Bw91C2vby3rPDML0Eq"];return(Pt=function(){return t})()}class It{[jt(185)];[jt(286)];[jt(214)];[jt(261)];constructor(t,e,n=Dt()){const r={shopId:0,updateInterval:5e3,debug:!1,beaconEndpoint:xt,beaconRetryLimit:3,maxSilenceMs:18e5,exportWithFetch:!1,logsSampleRate:1};this[jt(185)]={...r,...e},this[jt(214)]=n,this[jt(261)]=t,this[jt(286)]={startTime:Date[jt(243)](),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[jt(190)]();this[jt(286)][jt(260)]={lastSignals:i,lastProcessTime:0,lastSuccessfulSendTime:0,retryCount:0}}[jt(361)](){(async()=>{await this[jt(192)](),await this[jt(253)](!0),this[jt(214)][jt(244)][jt(295)](()=>{this[jt(275)]()},100);const t=()=>{const e=Date[jt(243)](),n=e-(this[jt(286)][jt(193)]||e),r=Math[jt(294)](0,this[jt(185)][jt(264)]-n),i=()=>{this[jt(214)][jt(244)][jt(205)]?this[jt(286)][jt(351)]=this[jt(214)][jt(244)][jt(205)](()=>{this[jt(253)]()[jt(345)](()=>this[jt(261)][jt(337)]())[jt(345)](()=>{t()})},{timeout:2e3}):this[jt(253)]()[jt(345)](()=>this[jt(261)][jt(337)]())[jt(345)](()=>{t()})};r>0?this[jt(214)][jt(244)][jt(295)](i,r):i()};t()})()[jt(224)](t=>{this[jt(261)][jt(186)](t,jt(361))})}[jt(310)](){this[jt(286)][jt(240)]&&this[jt(214)][jt(244)][jt(245)](this[jt(286)][jt(240)]),this[jt(286)][jt(351)]&&this[jt(214)][jt(244)][jt(297)]&&this[jt(214)][jt(244)][jt(297)](this[jt(286)][jt(351)]),this[jt(286)][jt(209)]&&(this[jt(214)][jt(231)][jt(327)](jt(256),this[jt(286)][jt(209)][jt(256)]),this[jt(214)][jt(231)][jt(327)](jt(319),this[jt(286)][jt(209)][jt(319)]),this[jt(214)][jt(231)][jt(327)](jt(372),this[jt(286)][jt(209)][jt(372)]),this[jt(214)][jt(231)][jt(327)](jt(252),this[jt(286)][jt(209)][jt(252)]),jt(172)in window&&this[jt(286)][jt(209)][jt(364)]&&this[jt(286)][jt(209)][jt(272)]&&this[jt(286)][jt(209)][jt(198)]&&(this[jt(214)][jt(231)][jt(327)](jt(364),this[jt(286)][jt(209)][jt(364)]),this[jt(214)][jt(231)][jt(327)](jt(272),this[jt(286)][jt(209)][jt(272)]),this[jt(214)][jt(231)][jt(327)](jt(198),this[jt(286)][jt(209)][jt(198)]))),this[jt(286)][jt(260)]?.[jt(235)]&&this[jt(214)][jt(244)][jt(245)](this[jt(286)][jt(260)][jt(235)]),this[jt(286)][jt(260)]=void 0}[jt(192)](){const t={wd:this[jt(214)][jt(296)][jt(336)]?1:0,ua:/bot|crawler|spider|scraper/i[jt(314)](this[jt(214)][jt(296)][jt(292)])?0:1,cv:this[jt(303)]()?1:0,br:this[jt(301)]()?1:0};return this[jt(286)][jt(225)]=t,this[jt(286)][jt(356)]=!0,t}[jt(303)](){try{const t=this[jt(214)][jt(231)][jt(324)](jt(328));t[jt(249)]=200,t[jt(308)]=50;const e=t[jt(352)]("2d");if(null===e)return!1;const n=e[jt(233)](0,0,200,0);n[jt(177)](0,jt(339)),n[jt(177)](1,jt(265)),e[jt(175)]=n,e[jt(318)](0,0,200,50),e[jt(175)]=jt(304),e[jt(196)]=jt(180),e[jt(199)](jt(338),33,30);const r=t[jt(197)]();return Boolean(r&&r[jt(183)]>50)}catch(t){return!1}}[jt(301)](){let t=0;this[jt(214)][jt(296)][jt(216)]&&this[jt(214)][jt(296)][jt(216)][jt(183)]>0&&t++,(this[jt(214)][jt(296)][jt(329)]&&this[jt(214)][jt(296)][jt(329)][jt(183)]>0||this[jt(214)][jt(296)][jt(292)][jt(207)](jt(347)))&&t++,this[jt(341)]()&&t++,typeof this[jt(214)][jt(244)][jt(359)]!==jt(309)&&t++;try{const e=(new Date)[jt(354)]();e>-840&&e<840&&t++}catch(t){}return t>=3}[jt(341)](){const t=this[jt(214)][jt(244)][jt(322)]||this[jt(214)][jt(231)][jt(290)][jt(187)],e=this[jt(214)][jt(244)][jt(259)]||this[jt(214)][jt(231)][jt(290)][jt(262)];if(!t||!e)return!1;if(t<=2||e<=2)return!1;const n=t/e;return n>=.2&&n<=5}[jt(357)](t,e){return n=>{try{t(n)}catch(t){this[jt(261)][jt(186)](t,jt(335)+e)}}}[jt(275)](){const t=zt(this[jt(357)](t=>{this[jt(286)][jt(200)]++,this[jt(286)][jt(366)][jt(183)]>=10&&this[jt(286)][jt(366)][jt(362)](),this[jt(286)][jt(366)][jt(210)]({x:t[jt(176)],y:t[jt(202)],t:t[jt(239)]})},jt(256)),100),e=this[jt(357)](t=>{this[jt(286)][jt(174)]++,requestAnimationFrame(()=>setTimeout(()=>{this[jt(286)][jt(346)][jt(183)]>=5&&this[jt(286)][jt(346)][jt(362)](),this[jt(286)][jt(346)][jt(210)]({x:t[jt(176)],y:t[jt(202)],t:t[jt(239)],pre:this[jt(330)](t)})},0))},jt(319)),n=this[jt(357)](t=>{this[jt(286)][jt(236)]++;const e=t[jt(206)];if([jt(170),jt(349),jt(360),jt(369)][jt(207)](e))return;const n=this[jt(286)][jt(263)][this[jt(286)][jt(263)][jt(183)]-1],r=t[jt(239)],i=n?r-n.t:null;this[jt(286)][jt(263)][jt(183)]>=10&&this[jt(286)][jt(263)][jt(362)](),this[jt(286)][jt(263)][jt(210)]({_0x5b4a14:e,t:r,int:i}),null!==i&&i<100?(this[jt(286)][jt(340)][jt(210)](i),this[jt(286)][jt(340)][jt(183)]>=5&&(this[jt(286)][jt(306)]++,this[jt(286)][jt(340)]=[])):this[jt(286)][jt(340)]=[]},jt(372)),r=zt(this[jt(357)](t=>{this[jt(286)][jt(302)]++;const e=t[jt(239)],n=window[jt(182)];this[jt(286)][jt(237)][jt(183)]>=10&&this[jt(286)][jt(237)][jt(362)](),this[jt(286)][jt(237)][jt(210)]({p:n,t:e})},jt(252)),200),i=this[jt(357)](t=>{t[jt(288)]&&0!==t[jt(288)][jt(183)]&&(this[jt(286)][jt(278)]++,this[jt(286)][jt(293)][jt(183)]>=10&&this[jt(286)][jt(293)][jt(362)](),this[jt(286)][jt(178)]={x:t[jt(288)][0][jt(176)],y:t[jt(288)][0][jt(202)],t:t[jt(239)],typ:jt(173),s:0,d:0})},jt(364)),o=zt(this[jt(357)](t=>{if(!t[jt(288)]||0===t[jt(288)][jt(183)])return;const e={x:t[jt(288)][0][jt(176)],y:t[jt(288)][0][jt(202)]};if(this[jt(286)][jt(178)]){const n=this[jt(266)](this[jt(286)][jt(178)],e);this[jt(286)][jt(293)][jt(183)]>=10&&this[jt(286)][jt(293)][jt(362)]();const r={x:t[jt(288)][0][jt(176)],y:t[jt(288)][0][jt(202)],t:t[jt(239)],typ:jt(332),d:n,s:n/(t[jt(239)]-this[jt(286)][jt(178)].t)};this[jt(286)][jt(293)][jt(210)](r),this[jt(286)][jt(178)]=r}else{const e={x:t[jt(288)][0][jt(176)],y:t[jt(288)][0][jt(202)],t:t[jt(239)],typ:jt(332),s:0,d:0};this[jt(286)][jt(178)]=e}},jt(272)),200),s=this[jt(357)](t=>{this[jt(286)][jt(178)]=null},jt(198));this[jt(214)][jt(231)][jt(247)](jt(256),t,{passive:!0}),this[jt(214)][jt(231)][jt(247)](jt(319),e,{passive:!0}),this[jt(214)][jt(231)][jt(247)](jt(372),n,{passive:!0}),this[jt(214)][jt(231)][jt(247)](jt(252),r,{passive:!0}),jt(172)in window&&(this[jt(214)][jt(231)][jt(247)](jt(364),i,{passive:!0}),this[jt(214)][jt(231)][jt(247)](jt(272),o,{passive:!0}),this[jt(214)][jt(231)][jt(247)](jt(198),s,{passive:!0})),this[jt(286)][jt(209)]={mousemove:t,click:e,keydown:n,scroll:r,touchstart:i,touchmove:o,touchend:s}}async[jt(253)](t=!1){this[jt(169)](t),await this[jt(271)](),this[jt(286)][jt(193)]=Date[jt(243)]()}[jt(169)](t=!1){const e=Date[jt(243)]();let n=Math[jt(218)]((e-this[jt(286)][jt(201)])/1e3);null!==this[jt(286)][jt(193)]&&(n=Math[jt(218)]((e-this[jt(286)][jt(193)])/1e3)),this[jt(286)][jt(270)]?(this[jt(286)][jt(270)][jt(251)]+=t?1:0,this[jt(286)][jt(270)][jt(269)]+=n):this[jt(286)][jt(270)]={pageCount:1,sessionStart:this[jt(286)][jt(201)],duration:0}}[jt(223)](t,e=!1){this[jt(261)][jt(203)](jt(257)+t,e)}[jt(190)](){try{if(this[jt(214)][jt(244)][jt(323)]){const e=this[jt(214)][jt(244)][jt(323)][jt(375)](Mt);if(e){const n=JSON[jt(232)](e);let r;return jt(230)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}[jt(184)](t){try{this[jt(214)][jt(244)][jt(323)]&&this[jt(214)][jt(244)][jt(323)][jt(212)](Mt,JSON[jt(317)](Et(t)))}catch(t){}}[jt(330)](t){const e=t[jt(343)];if(!(e&&e instanceof Element&&e[jt(276)]))return 0;const n=e[jt(276)]();if(!n[jt(249)]||!n[jt(308)])return 0;const r=n[jt(238)]+n[jt(249)]/2,i=n[jt(267)]+n[jt(308)]/2,o=this[jt(266)]({x:t[jt(176)],y:t[jt(202)]},{x:r,y:i}),s=Math[jt(311)](n[jt(249)]**2+n[jt(308)]**2)/2;return s>0?Math[jt(294)](0,1-o/s):0}[jt(266)](t,e){return Math[jt(311)]((e.x-t.x)**2+(e.y-t.y)**2)}[jt(312)](t){if(t[jt(291)](jt(281))||t[jt(291)](jt(204)))return t;return""+(this[jt(214)][jt(244)][jt(371)][jt(220)]||this[jt(214)][jt(244)][jt(371)][jt(289)]+"//"+this[jt(214)][jt(244)][jt(371)][jt(277)])+t}async[jt(378)](t,e){if(!this[jt(286)][jt(260)])return;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,Et(t),e),r=JSON[jt(317)](n),i=this[jt(312)](this[jt(185)][jt(268)]);if(this[jt(214)][jt(296)][jt(378)]&&!this[jt(185)][jt(191)])try{const t=new Blob([r],{type:jt(208)});if(this[jt(214)][jt(296)][jt(378)](i,t))return this[jt(286)][jt(260)][jt(226)]=0,void(this[jt(286)][jt(260)][jt(333)]=Date[jt(243)]())}catch(t){}try{const t=await fetch(i,{method:jt(300),headers:{"Content-Type":jt(208)},body:r,credentials:jt(334),keepalive:!0});if(!t.ok)throw new Error(jt(221)+t[jt(373)]);this[jt(286)][jt(260)][jt(226)]=0,this[jt(286)][jt(260)][jt(333)]=Date[jt(243)]()}catch(n){this[jt(307)](t,e)}}[jt(307)](t,e){if(!this[jt(286)][jt(260)]||this[jt(286)][jt(260)][jt(226)]>=this[jt(185)][jt(273)])return;const n=Math[jt(299)](1e3*2**this[jt(286)][jt(260)][jt(226)],3e4);this[jt(286)][jt(260)][jt(226)]++,this[jt(286)][jt(260)][jt(235)]=this[jt(214)][jt(244)][jt(295)](()=>{this[jt(286)][jt(260)]&&this[jt(378)](t,e)},n)}async[jt(271)](){if(!this[jt(286)][jt(260)])return;const t=Bt(this[jt(286)][jt(200)],this[jt(286)][jt(366)],this[jt(286)][jt(174)],this[jt(286)][jt(346)],this[jt(286)][jt(263)],this[jt(286)][jt(236)],this[jt(286)][jt(306)],this[jt(286)][jt(302)],this[jt(286)][jt(278)],this[jt(286)][jt(237)],this[jt(286)][jt(293)],this[jt(286)][jt(201)],Date[jt(243)]()),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[jt(325)]=!0),e.ca>0&&1===e.vc&&(i[jt(242)]=!0),e.ka>0&&(i[jt(241)]=!0),e.sa>0&&(i[jt(211)]=!0),e.ta>0&&(i[jt(285)]=!0),e.t>30&&(i[jt(248)]=!0),n&&(n[jt(251)]>1&&(i[jt(246)]=!0),n[jt(269)]>60&&(i[jt(189)]=!0)),r){const t=Object[jt(355)](i);for(const e of t)i[e]=i[e]||r[e]}return i}(this[jt(286)][jt(225)],t,this[jt(286)][jt(270)],this[jt(286)][jt(260)][jt(171)]),n=function(t,e){if(!e)return!0;const n=Object[jt(355)](t);for(const r of n)if(t[r]!==e[r])return!0;return!1}(e,this[jt(286)][jt(260)][jt(171)]),r=Date[jt(243)]()-this[jt(286)][jt(260)][jt(333)],i=r>=this[jt(185)][jt(194)];if(n||i){if(Date[jt(243)]()-this[jt(286)][jt(260)][jt(353)]<100)return void this[jt(223)](jt(350),!0);if(i&&!n&&this[jt(223)](jt(315)+Math[jt(215)](r/1e3)+jt(376),!0),n&&this[jt(185)][jt(179)]){if(this[jt(286)][jt(260)][jt(171)]){Object[jt(355)](e)[jt(222)](t=>{this[jt(286)][jt(260)][jt(171)][t],e[t]})}else this[jt(223)](jt(284));this[jt(286)][jt(270)]}this[jt(286)][jt(260)][jt(171)]=(o=e,{...o}),this[jt(286)][jt(260)][jt(353)]=Date[jt(243)](),this[jt(184)](e);const t=jt(n?374:342);await this[jt(378)](e,t)}else this[jt(185)][jt(179)];var o}}const Nt=t=>{const e=/_shopify_s=([^;]*)/[jt(326)](t[jt(231)][jt(316)]);return e?e[1]:void 0},kt=(t,e)=>{const n=Nt(t),r=/_shopify_y=([^;]*)/[jt(326)](t[jt(231)][jt(316)]),i=r?r[1]:void 0;return{libVersion:"2.0.1",shopId:e||"",hostname:t[jt(244)]?.[jt(371)]?.[jt(282)]||"",url:t[jt(244)]?.[jt(371)]?.[jt(217)]||"",referrer:t[jt(231)]?.[jt(367)]||"",baseURI:t[jt(231)]?.[jt(258)]||"",sessionToken:n||"",uniqueToken:i||""}},qt=(t,e=Dt(),n=new vt(Tt,Lt))=>{const r=new dt({exporter:n,attributes:kt(e,t?.[jt(274)])}),i=Nt(e),o=i?function(t){let e=0;for(let n=0,r=t.length;na[jt(361)]()):a[jt(361)](),a};function jt(t,e){const n=Pt();return jt=function(e,r){let i=n[e-=169];if(void 0===jt.rfbiGW){jt.FvrFsg=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;tt.startTime-e.startTime)}getLongAnimationFrames(){if(!Ft()){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(Ft())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 Ht=null;function Ot(t){if(null===t||!Ft()&&!Boolean(window.ShopifyAnalytics?.performance?.getLongAnimationFrames))return Wt(),null;const e=Ht?Ht.getLongAnimationFrames():[];let n=null;for(const r of e){if(r.startTime<=t&&r.endTime>t){n=r;break}if(r.startTime>=t){n=r;break}}if(!n||n.startTime-t>=250)return Wt(),t;const r=Ht?Ht.getQuietWindowStartCandidates():[];let i=t;if(r.length>0)for(const e of r)if(e.startTime>=t){i=e.startTime;break}return Wt(),i}function Ft(){return PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")}function Wt(){Ht&&(Ht.destroy(),Ht=null)}function Rt(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 Zt=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"}),Kt=new RegExp(`^${window.location.origin}/((?:(?:[a-z]{2,3}|zh-hans|zh-hant)(?:-[a-zA-Z0-9]+)/)?cart/(add|change|update|clear))`),Vt=new RegExp("cart-performance:|add:|change:|clear:|note_update:");var Jt;function Xt({monorailRegion:t,schema:e,rawData:n}){const r=Date.now(),i={schema_id:e,payload:e===Jt.OnUnload?Yt(n):Gt(n),metadata:{event_created_at_ms:r,event_sent_at_ms:r}},o=Zt[t||""],s=JSON.stringify(i);if(!o)return void console.debug("📡 Monorail: ",JSON.stringify(i,null,2));try{const t=new window.Blob([s],{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(o,t))return}catch(t){}const a=new XMLHttpRequest;a.open("POST",o),a.setRequestHeader("Content-type","text/plain"),a.send(s)}function Yt(t){const e=$t(t,["domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","firstPaint","visuallyReady","initiatorType","redirectCount","cartAjaxResourceTimings","cartPerformanceMetrics","totalStylingDuration"]);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 Gt(t){const e=$t(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 $t(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(t){t.OnInteraction="perf_kit_on_interaction/3.2",t.OnUnload="perf_kit_on_unload/3.5"}(Jt||(Jt={}));const Qt="xxxx-4xxx-xxxx-xxxxxxxxxxxx";function te(){let t="";try{const e=window.crypto,n=new Uint16Array(31);e.getRandomValues(n);let r=0;t=Qt.replace(/[x]/g,t=>{const e=n[r]%16;return r++,("x"===t?e:3&e|8).toString(16)}).toUpperCase()}catch(e){t=Qt.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 ee=!0,ne=!1,re=null,ie=null,oe=!1;class se{info;config;constructor(t){const e=/_shopify_s=([^;]*)/.exec(document.cookie),n=e?e[1]:void 0,r=/_shopify_y=([^;]*)/.exec(document.cookie),i=r?r[1]:void 0;this.config=t,this.info={perfKitInit:Date.now(),perfKitVersion:"3.1.0",url:window.location.href,referrer:document.referrer||void 0,microSessionId:te(),microSessionCount:0,sessionToken:n,uniqueToken:i},performance.setResourceTimingBufferSize(1e3)}get performanceMetrics(){return function(t){const e=performance.getEntriesByType("navigation");if(0===e.length)return{};const n=e[0];let r=!1;return(n.requestStart&&n.startTime&&n.requestStartt+864e5)&&(r=!0),{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:Math.round(n.domInteractive),domComplete:Math.round(n.domComplete),domContentLoadedEventStart:Math.round(n.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(n.domContentLoadedEventEnd),redirectCount:n.redirectCount,initiatorType:n.initiatorType,transferSize:n.transferSize}}(this.info.perfKitInit)}}function ae(t){re=new se(t),Ht||(Ht=new Ut),t.spaMode&&(window.PerfKit={navigate:()=>{ee?ee=!1:ne||(ue(),re=new se(t),ne=!0)},setPageType:e=>{t.storefrontData.pageType=e},setConsent:t=>{ie=t}}),t.shs&&!t.spaMode&&qt({debug:!1,shopId:t.storefrontData.shopId,exportWithFetch:t.shsExportWithFetch||!0,logsSampleRate:t.shsLogsSampleRate,...t.shsBeaconEndpoint&&{beaconEndpoint:t.shsBeaconEndpoint}})}const ce=new Set;function ue(){if(null!==re){if(he()&&ce.size>0){let t={};for(const e of ce)t={...t,...e};const e=t.firstContentfulPaint??null,n=Ot(e);null!==e&&null!==n&&(t.quietWindowStart=Math.round(n));const r=function(){if(!PerformanceObserver.supportedEntryTypes.includes("long-animation-frame"))return null;const t=performance.getEntriesByType("long-animation-frame");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)),ce.clear(),re.info.microSessionCount+=1;const i=function(t){if(!(100*Math.random()>(t||10)))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))})}(re.config.resourceTimingSamplingRate),o=performance.getEntriesByType("resource").filter(t=>Kt.test(t.name)),s=performance.getEntriesByType("measure").filter(t=>Vt.test(t.name)).map(t=>{const e=t.toJSON();return e.name.startsWith("cart-performance:")||(e.name=`cart-performance:${e.name}`),e});Xt({monorailRegion:re.config.monorailRegion,schema:Jt.OnUnload,rawData:{...re.info,...re.config.storefrontData,...re.performanceMetrics,...t,resourceTiming:i,cartAjaxResourceTimings:o,cartPerformanceMetrics:s,paintTimingHidden:oe}})}}else console.debug("⛔️ Shopify/perf-kit is not initialized")}function he(){return null!==ie?ie:et()}((e,r={})=>{const o=s(r=Object.assign({},r),t),a=new WeakMap;o.t=t=>{if(t?.sources?.length){const e=x(t.sources),n=e?.node;if(n){const t=r.generateTarget?.(n)??i(n);a.set(e,t)}}},((e,n={})=>{const r=b();T(p(()=>{let i,o=m("CLS",0);const a=s(n,t),c=t=>{for(const e of t)a.u(e);a.o>o.value&&(o.value=a.o,o.entries=a.i,i())},d=f("layout-shift",c);d&&(i=h(e,o,L,n.reportAllChanges),r.onHidden(()=>{c(d.takeRecords()),i(!0)}),u(()=>{a.o=0,o=m("CLS",0),i=h(e,o,L,n.reportAllChanges),l(()=>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=x(r.sources);t&&(e={largestShiftTarget:a.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;ce.add({cumulativeLayoutShift:n,cumulativeLayoutShiftTarget:e.largestShiftTarget})}),((t,n={})=>{const r=s(n=Object.assign({},n),k),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={})=>{C(()=>{const n=b();let r,i=m("LCP");const o=s(e,k),a=t=>{e.reportAllChanges||(t=t.slice(-1));for(const e of t)o.u(e),e.startTime{a(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=m("LCP"),r=h(t,i,q,e.reportAllChanges),l(()=>{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),s=i.url&&performance.getEntriesByType("resource").filter(t=>t.name===i.url)[0],a=Math.max(0,r.responseStart-e),c=Math.max(a,s?(s.requestStart||s.startTime)-e:0),u=Math.min(t.value,Math.max(c,s?s.responseEnd-e:0));n={target:o.get(i),timeToFirstByte:a,resourceLoadDelay:c-a,resourceLoadDuration:u-c,elementRenderDelay:t.value-u,navigationEntry:r,lcpEntry:i},i.url&&(n.url=i.url),s&&(n.lcpResourceEntry=s)}}return Object.assign(t,{attribution:n})})(n);t(r)},n)})(function(t){const{attribution:e,value:n}=t;ce.add({largestContentfulPaint:Math.round(n),largestContentfulPaintTarget:e.target})}),((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,s=Math.max(0,i.responseStart-e);r={timeToFirstByte:s,firstByteToFCP:t.value-s,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;ce.add({firstContentfulPaint:Math.round(e)})}),((t,e={})=>{const r=s(e=Object.assign({},e),P);let o=[],a=[],c=0;const l=new WeakMap,d=new WeakMap;let p=!1;const g=()=>{p||(I(v),p=!0)},v=()=>{const t=r.l.map(t=>l.get(t.entries[0])),e=a.length-50;a=a.filter((n,r)=>r>=e||t.includes(n));const n=new Set;for(const t of a){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=a.length-1;r>=0;r--){const i=a[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]},a.push(n)),(t.interactionId||"first-input"===t.entryType)&&l.set(t,n),g()},r.p=t=>{if(!d.get(t)){const n=t.entries[0].target;if(n){const r=e.generateTarget?.(n)??i(n);d.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=l.get(e),o=e.processingStart,s=Math.max(e.startTime+e.duration,o),a=Math.min(i.processingEnd,s),c=i.entries.sort((t,e)=>t.processingStart-e.processingStart),u=y(e.startTime,a),h=r.h.get(e.interactionId),m={interactionTarget:d.get(h),interactionType:e.name.startsWith("key")?"keyboard":"pointer",interactionTime:e.startTime,nextPaintTime:s,processedEventEntries:c,longAnimationFrameEntries:u,inputDelay:o-e.startTime,processingDuration:a-o,presentationDelay:s-a,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,s=0,a=0,c=0,u=0;for(const c of t.longAnimationFrameEntries){a=a+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=h)}}const h=t.longAnimationFrameEntries.at(-1),l=h?h.startTime+h.duration:0;l>=e+n+r&&(c=t.nextPaintTime-l),i&&o&&(t.longestScript={entry:i,subpart:o,intersectingDuration:u}),t.totalScriptDuration=s,t.totalStyleAndLayoutDuration=a,t.totalPaintDuration=c,t.totalUnattributedDuration=t.nextPaintTime-e-s-a-c})(m),Object.assign(t,{attribution:m})};f("long-animation-frame",t=>{o=o.concat(t),g()}),((t,e={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const n=b();C(()=>{"interactionCount"in performance||z||(z=f("event",B,{type:"event",buffered:!0,durationThreshold:0}));let r,i=m("INP");const o=s(e,P),a=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=f("event",a,{durationThreshold:e.durationThreshold??40});r=h(t,i,N,e.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{a(c.takeRecords()),r(!0)}),u(()=>{o.v(),i=m("INP"),r=h(t,i,N,e.reportAllChanges)}))})})(e=>{const n=w(e);t(n)},e)})(function(t){const{attribution:e,value:n}=t;if(null===re)return void console.debug("⛔️ Shopify/perf-kit is not initialized");if(navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome"))return;if(!he())return;re.info.microSessionCount+=1;const{inputDelay:r,processingDuration:i,presentationDelay:o,longestScript:s,interactionTarget:a}=e,c=s?.entry?{slowest_script:s.entry.sourceURL,slowest_script_duration:Math.round(s.entry.duration)}:{};Xt({monorailRegion:re.config.monorailRegion,schema:Jt.OnInteraction,rawData:{...re.info,...re.config.storefrontData,...re.performanceMetrics,interactionToNextPaint:Math.round(n),interactionToNextPaintTarget:a,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=m("TTFB"),i=h(t,r,j,n.reportAllChanges);U(()=>{const o=e();o&&(r.value=Math.max(o.responseStart-d(),0),r.entries=[o],i(!0),u(()=>{r=m("TTFB",0),i=h(t,r,j,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),s=Math.max(n.connectStart-r,0),a=Math.max(n.connectEnd-r,0);e={waitingDuration:i,cacheDuration:o-i,dnsDuration:s-o,connectionDuration:a-s,requestDuration:t.value-a,navigationEntry:n}}return Object.assign(t,{attribution:e})})(e);t(n)},n)})(function(t){const{value:e}=t;ce.add({timeToFirstByte:Math.round(e)})}),addEventListener("DOMContentLoaded",()=>{oe="hidden"===document.visibilityState}),addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&ue()}),function(){const{dataset:t}=document.currentScript;try{ae(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:Rt(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)}}()}();