!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},f=(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}},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=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)}}},b=t=>{document.prerendering?addEventListener("prerenderingchange",()=>t(),!0):t()},S=[1800,3e3],T=(t,e={})=>{b(()=>{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=h(t,i,S,e.reportAllChanges),l(()=>{i.value=performance.now()-n.timeStamp,r(!0)})}))})},x=[.1,.25],L=t=>t.find(t=>1===t.node?.nodeType)||t[0];let M=0,B=1/0,D=0;const _=t=>{for(const e of t)e.interactionId&&(B=Math.min(B,e.interactionId),D=Math.max(D,e.interactionId),M=D?(D-B)/7+1:0)};let z;const A=()=>z?M: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 j{m;u(t){this.m?.(t)}}const k=[2500,4e3],q=[800,1800],U=t=>{document.prerendering?b(()=>U(t)):"complete"!==document.readyState?addEventListener("load",()=>U(t),!0):setTimeout(t)},H="",O="1",R="0",F="p",W="a",K="m",Z="t",J="m",V="a",Y="p",X="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())?R:e.includes(t.toUpperCase())?O:H}function h(t){return n.includes(t.replace("t","s").toUpperCase())}return{v:"3",con:{CMP:{[V]:u(V),[Y]:u(Y),[J]:u(J),[X]:u(X)}},region:r||"",cus:a,purposes:{[W]:h(W),[F]:h(F),[K]:h(K),[Z]:h(Z)},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}(W)}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:m,negative:f,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 ft=it("url"),mt=it("serviceName"),pt=it("logger"),gt=it("fetchFn");class vt{constructor(t,e,n){Object.defineProperty(this,ft,{writable:!0,value:void 0}),Object.defineProperty(this,mt,{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,ft)[ft]=t.replace(/\/v1\/(logs|metrics|traces)\/?$/,""),nt(this,mt)[mt]=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,mt)[mt]}}]},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,mt)[mt]}}]},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,ft)[ft]}${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 Ct(){var t=["mte1mdiWtu90qxbm","C2vHCMnO","mJviC3fuExe","mte4t1LjsLbK","mta3mZm1mdrPtKHKCLq","kcGOlISPkYKRksSK","odbqCxbAC3u","y29UC3rYDwn0B3i","mtHWtwPqtLK","Dg9tDhjPBMC","mtu2ote0ofPtBg5Qsa","mZCXnJbUqKzPAeW","mJiYmNfdv3nLCG","yxbWBhK","mZu1ntG2n3jfs2z6CW","mtC1nZjswvPVCvy","ndm5odq4swzbsLf5"];return(Ct=function(){return t})()}function bt(t,e){var n=Ct();return bt=function(e,r){var i=n[e-=443];if(void 0===bt.UBrQzI){var o=function(t){for(var e,n,r="",i="",s=r+o,a=0,c=0;n=t.charAt(c++);~n&&(e=a%4?64*e+n:n,a++%4)?r+=s.charCodeAt(c+10)-10!=0?String.fromCharCode(255&e>>(-2*a&6)):a:0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);for(var u=0,h=r.length;u=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=1192,n=1011,r=1019,i=1027,o=985,s=996,a=1017,c=1032,u=1051,h=525;function l(t,e){return Wt(e-h,t)}const d=t();for(;;)try{if(271025===parseInt(l(e,1133))/1+-parseInt(l(934,938))/2*(parseInt(l(1083,1136))/3)+parseInt(l(n,r))/4+parseInt(l(i,1108))/5+-parseInt(l(o,s))/6*(-parseInt(l(a,1109))/7)+parseInt(l(c,u))/8+-parseInt(l(1194,1106))/9)break;d.push(d.shift())}catch(t){d.push(d.shift())}}(Dt);const Mt=function(){let t=!0;return function(e,n){const r=934,i=t?function(){const t=592;if(n){const s=n[(i=1037,o=r,Wt(i-t,o))](e,arguments);return n=null,s}var i,o}:function(){};return t=!1,i}}(),Bt=Mt(this,function(){function t(t,e){return Wt(e- -875,t)}return Bt[t(-494,-432)]()[t(-340,-443)](t(-391,-389))[t(-413,-432)]()[t(-358,-352)](Bt)[t(-435,-443)](t(-418,-389))});function Dt(){const t=["A2v5","C2v0sxrLBq","yMLUza","y2f0y2G","BgfZDfn1y2nLC3nMDwXtzw5KvgLTzq","BgfZDfbYB2nLC3nuAw1L","u2HVCgLMEsbtDg9YzwzYB250","zg9JDw1LBNrfBgvTzw50","y2fUy2vSswrSzunHBgXIywnR","zhvYyxrPB24","CMv0CNLdB3vUDa","B250B3vJAhn0yxj0","z2v0q29UDgv4Da","ChjVDg9JB2W","Dg9W","z2v0vgLTzxPVBMvpzMzZzxq","BwfW","DgvZDa","mtKYmZuZuNzltfrX","DgLTzvn0yw1W","BgfUz3vHz2vZ","otK4nty1y3LABfvH","y2XPy2TqB3nPDgLVBNm","ue9tva","C3rHCNq","Dg9eyxrHvvjm","Aw5JBhvKzq","y2XLyxjuAw1LB3v0","B3jPz2LU","zgLY","C2HPzNq","yMvHy29Urw5KCg9PBNq","BgvUz3rO","y2HLy2TwAwv3Cg9YDfjHDgLV","CMvMzxjYzxi","z2v0qM91BMrPBMDdBgLLBNrszwn0","Bg9JyxrPB24","zM9YrwfJAa","mMP3BKPgEq","BwLU","yNjVD3nLCKfqsq","y2fUDMfZ","Aw5JBhvKzxm","xZb4ndmXyJm4","Ahr0CdOVlW","CgvYzI1RAxqTAhvTyw4TC2LNBMfSCW","BMf2AwDHDg9Y","CMvXDwvZDeLKBgvdywXSyMfJAW","Dg91y2HfDMvUDhm","Dg91y2HLBMq","z2v0rgLZDgfUy2u","zMLSBfjLy3q","ChvZAa","zxzLBNriyw5KBgvYCW","tw9IAwXL","Bg9N","DxbKyxrLu2vZC2LVBKrHDge","C2vHCMnO","Ahr0Chm6lY8","Bg9NC1nHBxbSzvjHDgu","Bg9NtwvZC2fNzq","Dw5KzwzPBMvK","y29VA2LL","A2v5qwn0AxzPDhK","D2vIzhjPDMvY","y2HLy2TbBMrtzw5Ku2LNBMfSCW","y2fSy3vSyxrLq2XPy2TqCMvJAxnPB24","zw52AxjVBM1LBNrdAgvJA2vK","Dg9tDhjPBMC","zg9JDw1LBNq","yxbWBhK","qwX0","yMvHy29UuMv0CNLmAw1PDa","y2fUDMfZx2zPBMDLCNbYAw50x25VCM1HBa","C2LNBMLMAwnHBNrFCgfNzv90Aw1L","C3rYAw5NAwz5","ChjVy2vZC0fUzfnLBMrtAwDUywXZ","BgfZDfnPz25HBhm","Ag9ZDa","mtzWEcbbCMLHBa","Bg9HzgLUzW","Aw5UzxjizwLNAhq","AgvPz2H0","C3rHDhvZ","y2XPzw50wa","CgfYC2u","zgv2AwnLugL4zwXsyxrPBW","DgHLBG","xZb4mtyWzwmY","C2nYB2XSx2fJDgL2Axr5","C2vZC2LVBLn0B3jHz2u","Bw92zq","C2nYB2XS","C2HVCeLK","Aw5UzxjxAwr0Aa","Bg9HzfnLC3nPB25tAwDUywXZ","nJzUEwD5B3u","AhjLzG","DxbKyxrLsw50zxj2ywXjza","Dg91y2HLCW","CgfNzunVDw50","zxHLyW","Bw91C2vqB3nPDgLVBNm","CYbZAw5JzsbSyxn0ihn1y2nLC3nMDwWGC2vUza","C2L6zq","CMvTB3zLrxzLBNrmAxn0zw5LCG","CMvKDwnL","CMvXDwvZDeLKBgvdywXSyMfJA0LK","l2fWAs9JB2XSzwn0","A2v5yM9HCMrcDxjZDefJDgL2Axr5","ywjZ","kcGOlISPkYKRksSK","BgvMDa","DxnLCKfNzw50","BxvSDgLWBgvFCgfNzxnFDMLZAxrLza","C2nYB2XSwq","C2fMzuv2zw50sgfUzgXLCG","Aw5PDa","BMf0DxjHBf9JBgLJA19Wyxr0zxjUCW","mZeXnJqWyLjAEhbi","Bwf4","ywrKrxzLBNrmAxn0zw5LCG","A2v5yM9HCMrcDxjZDhm","y2XPy2S","zMLSBfn0EwXL","zgvIDwC","xZb4m2yZywmY","C3rHDgu","yMfZzvvssq","yMX1zq","C2vZC2LVBKrHDge","y2HLy2TfBNzPCM9UBwvUDa","yMvHy29Uu3rHDgu","re9nq29UDgvUDeXVywrLza","icaOsw5PDgLHBcbZAwDUywWGC2v0kq","C2vZC2LVBL9KDxjHDgLVBL9YzwfZB25HyMXL","y2XPzw50wq","CMvHzhLtDgf0zq","BgfZDfvWzgf0zvrPBwu","BMf0DxjHBf9TB3vZzv9Hy3rPDML0Eq","Ag9ZDg5HBwu","DxbKyxrLsw50zxj2ywW","zw52AxjVBM1LBNq","yxbWBgLJyxrPB24VANnVBG","Aw50","zM9UDa","Ahr0Chm6lY9VDgXWlwH0DhaTChjVzhvJDgLVBI5ZAg9WAwz5C3zJlMnVBq","i2zMzG","y29UC3rYDwn0B3i","q29UDhjVBa","y2XPzw50v2LKDgG","mJmZnJiXnKLqzwfAuq","y2XPzw50sgvPz2H0","CNvUq2fUDMfZvgvZDa","C2nYB2XSrxzLBNrZ","Dg91y2HFywn0AxzPDhK","D2LUzg93","y2HLy2TcCM93C2vYq29UC2LZDgvUy3K","Dg91y2Hby3rPDML0Eq","zg93BG","C2vUzejLywnVBG","yM90x3vZzxjFywDLBNq","u2HPzNq","D2LKDgG","A2v5CW","w1niu10G","A2v5rxzLBNrZ","CgX1z2LUCW","D2vIzhjPDMvYx2rLDgvJDgvK","C3rHCNrZv2L0Aa","y2HHBMDL","C2v0vgLTzw91Da","C3rHCNruAw1L","rxzLBNqGAgfUzgXLCIbLCNjVCIbPBIa","zgvZDhjVEq","C2nOzwr1BgvczwfJB25szxrYEq","y3jLyxrLtgLUzwfYr3jHzgLLBNq","u2vUzgLUzYbWzxjPB2rPyYbIzwfJB24Glsa","qMvHy29UigzHAwXLzdOG","Dg91y2HZDgfYDa","CMv0CNLuAw1LB3v0swq","ywrKq29SB3jtDg9W","C2f2zvnLC3nPB25tAwDUywXZ","zMLSBfrLEhq","C3fYDa","qMvHy29UihnLBMqGzgvIB3vUy2vKicH0B28GC29VBIbZAw5JzsbSyxn0ihnLBMqP","yxrHBJi","zMX1C2HpDgvStg9NCW","y2XPy2Tby3rPDML0Eq","zMXVB3i","Bw9UAxrVCKjLAgf2Aw9Y","ChjL","Bw91C2vby3rPDML0Eq","twv0yq","CgvYAw9KAwm","y3jLyxrLrwXLBwvUDa","Dg91y2HTB3zL","z2v0qwjZB2X1DgvvCMW","A2v5zg93BG","z2v0sxrLBq","Bwf4u2LSzw5Jzu1Z","yNjVD3nLCL9LBNzPCM9UBwvUDf9UB3jTywW","Bw91C2vTB3zL","C2nYB2XSqwn0AxzPDhK","BM93","x3nOC19ZDgf0zq","mZqWndy2nhzMtKnSvW","CM91BMq","nJeYnduWBu5tugLx","mtG5mJuYwhLbtfn6","A2v5yM9HCMrFywn0AxzPDhK","DgfYz2v0","zxHWB3j0v2L0AezLDgnO","BgfZDfrVDwnOrxzLBNq","CMvK"];return(Dt=function(){return t})()}Bt();const _t=Ut(207,300),zt=Ut(229,199),At=Ut(311,262),Pt=Ut(380,359);function Et(){const t=1352,e=1508,n=1308,r=1492,i=315,o=742,s=1137;function a(t,e){return Ut(t,e-s)}return{document:document,navigator:typeof navigator!==a(1445,t)?{get webdriver(){return navigator[(t=742,e=o,a(e,t- -613))];var t,e},get userAgent(){return navigator[(t=-378,e=-353,a(t,e- -1757))];var t,e},get languages(){return navigator[(t=i,e=415,a(t,e- -1111))];var t,e},get plugins(){return navigator[(t=1387,e=r,a(e,t- -71))];var t,e},sendBeacon:navigator[a(1489,1451)]?.[a(1612,e)](navigator)}:{webdriver:void 0,userAgent:"",languages:[],plugins:[],sendBeacon:void 0},window:window,screen:screen,performance:typeof performance!==a(n,t)?performance:void 0}}function It(t){const e=1004,n=1141,r=1123,i=894,o=1141,s=1116,a=1078,c=1157,u=740;if(t[d(1141,1134)]<2)return{speed:0,jitter:0};const h=t[d(1e3,e)]((t,e)=>t+e.s,0)/t[d(n,r)],l=t[d(1e3,i)]((t,e)=>t+(e.s-h)**2,0)/(t[d(o,s)]-1);function d(t,e){return Ut(e,t-u)}const f=Math[d(a,c)](l);return{speed:h,jitter:f}}function Nt(t,e,n,r,i,o,s,a,c,u,h,l,d){const f=69,m=75,p=110,g=99,v=146,y=318,w=318,C=181,b=153,S=302,T=275,x=175,L=207,M=177,B=326,D=177,_=346,z=311,A=181,P=111,E=230,I=110,N=193,j=260,k=157,q=20,U=1375,H=1482,O=1416,R=Math[ht(110,130)](1e3,t),F=Math[ht(110,f)](1e3,n),W=Math[ht(110,m)](1e3,o),K=Math[ht(p,g)](1e3,a),Z=Math[ht(p,v)](1e3,s),J=Math[ht(110,177)](1e3,c),V=[];if(e[ht(y,279)]>=3)for(let t=1;t5e-4){n=!0;break}r=o.s}else r=o.s;function i(t,e){return Ut(e,t- -28)}return n}(V),X=function(t){const e=224,n=270,r=209,i=134;if(t[s(232,270)]<3)return 0;let o=0;function s(t,e){return Ut(t,e- -131)}let a=0;for(let c=1;c2*Math.PI-Math.PI/12)&&o++,a++}return a>0?o/a:0}(e),{speed:G,jitter:$}=It(V);let Q=0,tt=0;if(r[ht(318,265)]>1){const t=new Set(r[ht(S,T)](t=>Math[ht(260,277)](t.x/20)+","+Math[ht(260,348)](t.y/20)))[ht(x,L)];Q=t>1?1:0,tt=r[ht(M,147)]((t,e)=>t+e[ht(262,275)],0)/r[ht(w,248)]}const et=i[ht(177,163)]((t,e)=>{const n=1160;function r(t,e){return ht(t-n,e)}return null===e[r(U,H)]||t[r(1283,1347)](e[r(1375,O)]),t},[]),{rhythmConsistency:nt,jitter:rt}=function(t){if(t[r(32,-62)]<2)return{rhythmConsistency:0,jitter:0};const e=t[r(-290,-203)]((t,e)=>t+e,0)/t[r(35,-62)],n=t[r(-245,-203)]((t,n)=>(t??0)+((n??0)-e)**2,0)/t[r(6,-62)];function r(t,e){return Ut(t,e- -463)}const i=Math[r(-142,-125)](n);return{rhythmConsistency:0===i?1:Math[r(-228,-189)](0,1-i/e),jitter:i/e}}(et),it=et[ht(318,B)]>0?et[ht(D,211)]((t,e)=>t+e,0)/et[ht(318,_)]:0,ot=[];if(u[ht(318,z)]>=3)for(let t=1;tu[t-1].p?ht(E,147):"up";ot[ht(123,159)]({s:r,dir:i,t:u[t].t})}const{speed:st,jitter:at}=It(ot),ct=function(t){if(t[n(-249,-207)]<2)return 0;let e=0;for(let r=1;r=500&&t[i].t-r>=500&&(e++,r=t[i].t);return e}(ot));function ht(t,e){return Ut(e,t- -83)}const{speed:lt,jitter:dt}=It(h),ft=function(t){if(t[e(-194,-196)]<2)return 0;function e(t,e){return Ut(e,t- -595)}let n=0;for(let r=1;r=500&&r++;return r}(h)),pt=Math[ht(j,k)]((d-l)/1e3);return{ma:R,ca:F,ka:W,sa:K,ta:J,kba:Z,t:Math[ht(110,q)](3600,pt),nm:Y?1:0,ms:kt(X),mj:kt($),msp:kt(G),vc:Q,cp:kt(tt),rc:kt(nt),kj:kt(rt),ki:kt(it),ss:kt(st),sj:kt(at),ssm:kt(ct),sp:ut,ts:kt(lt),tj:kt(dt),tp:mt,tsm:kt(ft)}}function jt(t,e){let n=0;return(...r)=>{function i(t,e){return Wt(t- -733,e)}const o=typeof performance!==i(-297,-236)?performance[i(-154,-169)]():Date[i(-154,-98)]();o-n>=e&&(n=o,t(...r))}}function kt(t){return Math[(e=954,n=1044,Ut(e,n-683))](100*t)/100;var e,n}function qt(t){function e(t,e){return Ut(t,e- -631)}return{wd:t[e(-273,-309)],ua:t[e(-300,-316)],cf:t[e(-387,-404)],be:t[e(-312,-276)],nm:t[e(-326,-338)],nc:t[e(-317,-359)],ka:t[e(-173,-267)],sa:t[e(-287,-388)],ta:t[e(-326,-322)],pt:t[e(-397,-403)],mp:t[e(-419,-363)],sd:t[e(-278,-342)]}}function Ut(t,e){return Wt(e- -221,t)}class Ht{[Ut(355,280)];[Ut(188,281)];[Ut(102,194)];[Ut(161,242)];constructor(t,e,n=Et()){const r={shopId:0,updateInterval:5e3,debug:!1,beaconEndpoint:At,beaconRetryLimit:3,maxSilenceMs:18e5,exportWithFetch:!1,logsSampleRate:1};this[o(-281,-382)]={...r,...e},this[o(-367,-405)]=n,this[o(-319,-308)]=t,this[o(-280,-194)]={startTime:Date[o(-203,-285)](),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[o(-312,-233)]();function o(t,e){return Ut(e,t- -561)}this[o(-280,-213)][o(-275,-285)]={lastSignals:i,lastProcessTime:0,lastSuccessfulSendTime:0,retryCount:0}}[Ut(233,271)](){const t=967,e=880,n=1058,r=1065,i=519;function o(t,e){return Ut(t,e- -485)}(async()=>{const t=129,e=172,n=159,o=142,s=178,a=62,c=108,u=13,h=52;function l(t,e){return Wt(t-i,e)}await this[l(1025,961)](),await this[l(970,1023)](!0),this[l(934,947)][l(1050,1007)][l(r,1100)](()=>{var t,e;this[(t=447,e=379,l(e- -705,t))]()},100);const d=()=>{const r=1052,i=1151,f=1206,m=1151,p=Date[g(t,226)]();function g(t,e){return l(e- -872,t)}const v=p-(this[g(157,149)][g(e,160)]||p),y=Math[g(n,o)](0,this[g(185,148)][g(238,163)]-v),w=()=>{function t(t,e){return g(t,e- -116)}this[t(-84,-54)][t(-31,a)][t(-48,-47)]?this[t(79,33)][t(c,u)]=this[t(-119,-54)][t(125,62)][t(-72,-47)](()=>{function e(e,n){return t(n,e-1158)}this[e(1140,r)]()[e(i,f)](()=>this[e(1152,1118)][e(1251,1353)]())[e(m,1162)](()=>{d()})},{timeout:2e3}):this[t(54,-18)]()[t(18,-7)](()=>this[t(41,-6)][t(174,93)]())[t(h,-7)](()=>{d()})};y>0?this[g(-5,62)][g(117,s)][g(118,193)](w,y):w()};d()})()[o(-175,-113)](r=>{const i=1210;function s(t,e){return o(e,t-i)}this[s(t,973)][s(922,e)](r,s(996,n))})}[Ut(385,328)](){function t(t,e){return Ut(t,e- -655)}this[t(-327,-374)][t(-387,-403)]&&this[t(-397,-461)][t(-315,-345)][t(-255,-259)](this[t(-416,-374)][t(-419,-403)]),this[t(-376,-374)][t(-400,-394)]&&this[t(-359,-461)][t(-433,-345)][t(-257,-278)]&&this[t(-372,-461)][t(-310,-345)][t(-181,-278)](this[t(-302,-374)][t(-335,-394)]),this[t(-338,-374)][t(-499,-448)]&&(this[t(-484,-461)][t(-405,-432)][t(-487,-396)](t(-282,-299),this[t(-310,-374)][t(-532,-448)][t(-249,-299)]),this[t(-470,-461)][t(-472,-432)][t(-463,-396)](t(-299,-378),this[t(-294,-374)][t(-421,-448)][t(-383,-378)]),this[t(-425,-461)][t(-435,-432)][t(-458,-396)](t(-274,-303),this[t(-298,-374)][t(-421,-448)][t(-345,-303)]),this[t(-416,-461)][t(-409,-432)][t(-346,-396)](t(-452,-409),this[t(-281,-374)][t(-425,-448)][t(-460,-409)]),t(-258,-275)in window&&this[t(-435,-374)][t(-357,-448)][t(-297,-322)]&&this[t(-285,-374)][t(-512,-448)][t(-401,-305)]&&this[t(-365,-374)][t(-409,-448)][t(-523,-452)]&&(this[t(-431,-461)][t(-430,-432)][t(-333,-396)](t(-330,-322),this[t(-428,-374)][t(-433,-448)][t(-304,-322)]),this[t(-472,-461)][t(-351,-432)][t(-489,-396)](t(-252,-305),this[t(-410,-374)][t(-549,-448)][t(-332,-305)]),this[t(-480,-461)][t(-507,-432)][t(-463,-396)](t(-394,-452),this[t(-415,-374)][t(-541,-448)][t(-528,-452)]))),this[t(-396,-374)][t(-464,-369)]?.[t(-265,-321)]&&this[t(-514,-461)][t(-429,-345)][t(-231,-259)](this[t(-398,-374)][t(-455,-369)][t(-291,-321)]),this[t(-270,-374)][t(-360,-369)]=void 0}[Ut(270,285)](){const t=608,e=860,n=638,r=639,i=599,o=675,s=738,a=660,c=665,u=627,h={wd:this[l(638,700)][l(644,t)][l(662,702)]?1:0,ua:/bot|crawler|spider|scraper/i[l(830,e)](this[l(n,r)][l(644,i)][l(711,720)])?0:1,cv:this[l(751,664)]()?1:0,br:this[l(755,829)]()?1:0};function l(t,e){return Ut(e,t-444)}return this[l(725,o)][l(740,s)]=h,this[l(725,a)][l(c,u)]=!0,h}[Ut(329,307)](){const t=1081,e=1110,n=1176,r=1082,i=1204,o=1268,s=1217,a=1227,c=1243,u=1170,h=1162,l=1092,d=1218,f=1188,m=1123,p=1186,g=1148,v=1120,y=1220,w=1281,C=1288,b=1368;function S(t,e){return Ut(e,t-887)}try{const T=this[S(t,1176)][S(e,1160)][S(1236,n)](S(r,1046));T[S(i,1211)]=200,T[S(1123,1143)]=50;const x=T[S(o,1357)]("2d");if(null===x)return!1;const L=x[S(s,1287)](0,0,200,0);L[S(1222,a)](0,S(1255,c)),L[S(1222,1286)](1,S(u,1117)),x[S(1165,h)]=L,x[S(l,1192)](0,0,200,50),x[S(1165,d)]=S(f,m),x[S(p,g)]=S(v,1165),x[S(1224,1210)](S(1262,y),33,30);const M=T[S(w,1295)]();return Boolean(M&&M[S(C,b)]>50)}catch(t){return!1}}[Ut(283,311)](){const t=118,e=102,n=235,r=98,i=102,o=364,s=291,a=392,c=303,u=153,h=96,l=7,d=144,f=223,m=96,p=80,g=69,v=188,y=169,w=125,C=96,b=212,S=129,T=142;function x(t,e){return Ut(t,e- -98)}let L=0;this[x(193,96)][x(t,e)][x(n,291)]&&this[x(r,96)][x(76,i)][x(o,s)][x(a,c)]>0&&L++,(this[x(u,h)][x(l,i)][x(d,f)]&&this[x(-7,m)][x(p,102)][x(268,f)][x(368,303)]>0||this[x(g,96)][x(v,i)][x(177,y)][x(53,98)](x(73,110)))&&L++,this[x(322,304)]()&&L++,typeof this[x(w,C)][x(320,b)][x(S,T)]!==x(210,117)&&L++;try{const t=(new Date)[x(305,286)]();t>-840&&t<840&&L++}catch(t){}return L>=3}[Ut(373,402)](){const t=this[n(-272,-190)][n(-156,-138)][n(-218,-180)]||this[n(-272,-351)][n(-243,-166)][n(-90,-130)][n(-162,-158)],e=this[n(-272,-200)][n(-156,-145)][n(-231,-245)]||this[n(-272,-299)][n(-243,-176)][n(-90,-70)][n(-160,-153)];if(!t||!e)return!1;function n(t,e){return Ut(e,t- -466)}if(t<=2||e<=2)return!1;const r=t/e;return r>=.2&&r<=5}[Ut(286,270)](t,e){const n=371,r=430,i=415;return o=>{function s(t,e){return Wt(e- -33,t)}try{t(o)}catch(t){this[s(n,r)][s(i,385)](t,s(616,515)+e)}}}[Ut(452,344)](){const t=725,e=832,n=752,r=820,i=752,o=634,s=809,a=815,c=832,u=740,h=676,l=684,d=826,f=757,m=817,p=838,g=771,v=705,y=846,w=759,C=781,b=619,S=729,T=676,x=785,L=705,M=742,B=862,D=676,_=676,z=746,A=886,P=832,E=700,I=698,N=757,j=739,k=685,q=713,U=877,H=489,O=466,R=470,F=510,W=474,K=556,Z=591,J=526,V=446,Y=648,X=517,G=479,$=603,Q=546,tt=438,et=637,nt=613,rt=652,it=489,ot=499,st=624,at=713,ct=481,ut=603,ht=501,lt=442,dt=603,ft=474,mt=489,pt=489,gt=526,vt=512,yt=519,wt=481,Ct=517,bt=614,St=537,Tt=56,xt=204,Lt=84,Mt=115,Bt=121,Dt=5,_t=112,zt=204,At=163,Pt=99,Et=202,It=263,Nt=41,kt=107,qt=93,Ht=54,Ot=207,Rt=255,Ft=250,Wt=370,Kt=296,Zt=174,Jt=201,Vt=298,Yt=139,Xt=115,Gt=99,$t=jt(this[te(672,752)](t=>{function e(t,e){return te(e,t- -1139)}this[e(-376,-481)][e(-311,-391)]++,this[e(-376,-367)][e(-401,-401)][e(-256,-190)]>=10&&this[e(-376,-481)][e(-401,-340)][e(-258,-224)](),this[e(-376,-327)][e(-401,-378)][e(-451,-435)]({x:t[e(-419,-326)],y:t[e(-367,-318)],t:t[e(-269,-322)]})},te(795,838)),100),Qt=this[te(t,752)](t=>{const e=166,n=186,r=250,i=306,o=248,s=365,a=304,c=253,u=296,h=233,l=195,d=293,f=120,m=125;function p(t,e){return te(t,e- -1048)}this[p(-320,-285)][p(-287,-224)]++,requestAnimationFrame(()=>setTimeout(()=>{function g(t,e){return p(t,e-471)}this[g(e,n)][g(211,296)][g(r,i)]>=5&&this[g(o,186)][g(s,296)][g(361,a)](),this[g(198,186)][g(c,u)][g(215,111)]({x:t[g(123,143)],y:t[g(h,l)],t:t[g(364,d)],pre:this[g(f,m)](t)})},0))},te(e,759));function te(t,e){return Ut(t,e-482)}const ee=this[te(649,n)](t=>{function e(t,e){return te(t,e- -1233)}this[e(-436,-470)][e(-523,-534)]++;const n=t[e(-331,-382)];if([e(-482,-435),e(-397,-448),e(-543,-526),e(-433,-404)][e(-480,-555)](n))return;const r=this[e(-369,-470)][e(-383,-431)][this[e(-382,-470)][e(-367,-431)][e(-309,-350)]-1],i=t[e(-373,-363)],o=r?i-r.t:null;this[e(-417,-470)][e(-420,-431)][e(-437,-350)]>=10&&this[e(-565,-470)][e(-401,-431)][e(-345,-352)](),this[e(-469,-470)][e(-486,-431)][e(-567,-545)]({_0x4ea151:n,t:i,int:o}),null!==o&&o<100?(this[e(-487,-470)][e(-431,-475)][e(-462,-545)](o),this[e(-573,-470)][e(-381,-475)][e(-351,-350)]>=5&&(this[e(-463,-470)][e(-576,-488)]++,this[e(-564,-470)][e(-408,-475)]=[])):this[e(-388,-470)][e(-496,-475)]=[]},te(753,834)),ne=jt(this[te(r,i)](t=>{this[r(103,174)][r(314,Ft)]++;const e=t[r(Wt,281)],n=window[r(155,162)];function r(t,e){return te(t,e- -589)}this[r(221,174)][r(Kt,201)][r(382,294)]>=10&&this[r(115,Zt)][r(144,Jt)][r(Vt,292)](),this[r(Yt,174)][r(Xt,201)][r(20,Gt)]({p:n,t:e})},te(o,728)),200),re=this[te(790,752)](t=>{function e(t,e){return te(e,t- -679)}t[e(Tt,26)]&&0!==t[e(Tt,70)][e(xt,191)]&&(this[e(Lt,126)][e(Mt,Bt)]++,this[e(Lt,127)][e(Dt,_t)][e(zt,At)]>=10&&this[e(Lt,-9)][e(Dt,Pt)][e(Et,It)](),this[e(84,73)][e(170,87)]={x:t[e(56,33)][0][e(Nt,kt)],y:t[e(Tt,37)][0][e(qt,Ht)],t:t[e(191,Ot)],typ:e(196,Rt),s:0,d:0})},te(s,a)),ie=jt(this[te(650,n)](t=>{if(!t[n(H,O)]||0===t[n(489,R)][n(637,676)])return;const e={x:t[n(H,F)][0][n(W,K)],y:t[n(489,Z)][0][n(J,469)]};function n(t,e){return te(e,t- -246)}if(this[n(517,V)][n(603,Y)]){const r=this[n(440,343)](this[n(X,G)][n($,Q)],e);this[n(X,456)][n(tt,488)][n(et,685)]>=10&&this[n(517,nt)][n(tt,382)][n(635,rt)]();const i={x:t[n(489,552)][0][n(W,380)],y:t[n(it,565)][0][n(J,ot)],t:t[n(st,at)],typ:n(ct,561),d:r,s:r/(t[n(st,549)]-this[n(X,608)][n(ut,607)].t)};this[n(X,ht)][n(tt,366)][n(lt,349)](i),this[n(517,445)][n(dt,638)]=i}else{const e={x:t[n(489,460)][0][n(ft,523)],y:t[n(mt,pt)][0][n(gt,vt)],t:t[n(624,yt)],typ:n(wt,576),s:0,d:0};this[n(Ct,bt)][n(ut,St)]=e}},te(869,c)),200),oe=this[te(u,752)](t=>{const e=68;function n(t,n){return te(t,n-e)}this[n(926,831)][n(U,917)]=null},te(699,685));this[te(725,h)][te(l,705)][te(d,f)](te(m,p),$t,{passive:!0}),this[te(644,676)][te(g,v)][te(y,f)](te(682,w),Qt,{passive:!0}),this[te(C,676)][te(b,705)][te(821,f)](te(S,834),ee,{passive:!0}),this[te(754,T)][te(x,L)][te(772,f)](te(M,728),ne,{passive:!0}),te(903,B)in window&&(this[te(718,D)][te(739,L)][te(705,f)](te(792,a),re,{passive:!0}),this[te(774,_)][te(z,705)][te(817,757)](te(A,P),ie,{passive:!0}),this[te(739,_)][te(E,705)][te(I,N)](te(j,k),oe,{passive:!0})),this[te(q,763)][te(773,689)]={mousemove:$t,click:Qt,keydown:ee,scroll:ne,touchstart:re,touchmove:ie,touchend:oe}}async[Ut(216,230)](t=!1){const e=1178,n=1172,r=1251,i=1261,o=959;function s(t,e){return Ut(e,t-o)}this[s(1169,1230)](t),await this[s(e,1097)](),this[s(1240,n)][s(r,i)]=Date[s(1317,1257)]()}[Ut(222,210)](t=!1){const e=738,n=645,r=576,i=628,o=700,s=594,a=645,c=565,u=594,h=686,l=691,d=586,f=585,m=583,p=583,g=735,v=586,y=556,w=492,C=586,b=597,S=302;function T(t,e){return Ut(t,e-S)}const x=Date[T(695,660)]();let L=Math[T(e,n)]((x-this[T(r,583)][T(701,i)])/1e3);null!==this[T(659,583)][T(o,s)]&&(L=Math[T(r,a)]((x-this[T(525,583)][T(c,u)])/1e3)),this[T(h,583)][T(l,d)]?(this[T(612,583)][T(665,v)][T(592,y)]+=t?1:0,this[T(w,m)][T(671,C)][T(b,680)]+=L):this[T(f,m)][T(565,d)]={pageCount:1,sessionStart:this[T(553,p)][T(g,628)],duration:0}}[Ut(280,214)](t,e=!1){const n=740,r=912;function i(t,e){return Ut(t,e-623)}this[i(776,865)][i(n,832)](i(r,942)+t,e)}[Ut(193,249)](){const t=355,e=305,n=280,r=305,i=372,o=310,s=250,a=227,c=188;try{if(this[h(-t,-413)][h(-239,-132)][h(-e,-n)]){const e=this[h(-t,-265)][h(-239,-162)][h(-r,-i)][h(-196,-295)](Pt);if(e){const t=JSON[h(-o,-s)](e);let n;return h(-a,-c)in t?n=t:n={webdriver_detected:(u=t).wd,bot_user_agent:u.ua,canvas_fingerprint_normal:u.cf,browser_environment_normal:u.be,natural_mouse_activity:u.nm,natural_click_patterns:u.nc,keyboard_activity:u.ka,scroll_activity:u.sa,touch_activity:u.ta,significant_page_time:u.pt,multiple_pages_visited:u.mp,session_duration_reasonable:u.sd},n}}}catch(t){}var u;function h(t,e){return Ut(e,t- -549)}return null}[Ut(417,336)](t){const e=284,n=400,r=193,i=334,o=276,s=319,a=274;function c(t,e){return Ut(e,t-90)}try{this[c(e,218)][c(n,380)][c(334,399)]&&this[c(e,r)][c(400,491)][c(i,o)][c(460,401)](Pt,JSON[c(s,a)](qt(t)))}catch(t){}}[Ut(193,220)](t){function e(t,e){return Ut(e,t- -728)}const n=t[e(-363,-390)];if(!(n&&n instanceof Element&&n[e(-324,-237)]))return 0;const r=n[e(-324,-232)]();if(!r[e(-411,-475)]||!r[e(-492,-518)])return 0;const i=r[e(-462,-378)]+r[e(-411,-485)]/2,o=r[e(-345,-348)]+r[e(-492,-594)]/2,s=this[e(-524,-487)]({x:t[e(-490,-592)],y:t[e(-438,-361)]},{x:i,y:o}),a=Math[e(-390,-448)](r[e(-411,-322)]**2+r[e(-492,-481)]**2)/2;return a>0?Math[e(-454,-464)](0,1-s/a):0}[Ut(194,204)](t,e){return Math[(n=424,r=345,Ut(r,n-86))]((e.x-t.x)**2+(e.y-t.y)**2);var n,r}[Ut(325,351)](t){const e=1080,n=1205,r=1094,i=1287,o=1279,s=1120,a=1192,c=1360,u=1210,h=1114,l=1138;if(t[d(1205,1251)](d(e,1105))||t[d(n,1279)](d(r,1017)))return t;function d(t,e){return Ut(e,t-882)}return""+(this[d(1076,1041)][d(1192,1107)][d(i,1306)][d(o,1177)]||this[d(1076,s)][d(a,1179)][d(1287,c)][d(1264,1161)]+"//"+this[d(1076,985)][d(1192,1244)][d(1287,u)][d(h,l)])+t}async[Ut(270,314)](t,e){const n=798,r=803,i=746,o=797,s=736,a=711,c=693,u=704,h=906,l=797,d=727,f=883,m=814,p=717,g=748,v=695,y=831,w=753,C=776,b=801,S=798,T=751,x=801,L=890,M=909,B=912,D=670,_=803,z=798,A=735,P=781,E=848,I=517;if(!this[k(n,885)][k(r,719)])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,qt(t),e),j=JSON[k(i,708)](N);function k(t,e){return Ut(e,t-I)}const q=this[k(868,845)](this[k(o,s)][k(917,844)]);if(this[k(a,c)][k(717,u)][k(831,h)]&&!this[k(l,d)][k(f,862)])try{const t=new Blob([j],{type:k(m,p)});if(this[k(711,g)][k(717,v)][k(y,831)](q,t))return this[k(n,w)][k(r,C)][k(896,b)]=0,void(this[k(S,T)][k(803,x)][k(L,837)]=Date[k(875,874)]())}catch(t){}try{const t=await fetch(q,{method:k(M,908),headers:{"Content-Type":k(814,880)},body:j,credentials:k(B,837),keepalive:!0});if(!t.ok)throw new Error(k(849,762)+t[k(754,D)]);this[k(S,835)][k(_,756)][k(896,999)]=0,this[k(z,825)][k(803,A)][k(890,860)]=Date[k(875,P)]()}catch(n){this[k(846,E)](t,e)}}[Ut(262,329)](t,e){const n=726,r=624,i=726,o=819,s=769,a=666,c=633,u=721,h=824,l=647,d=728,f=730,m=721,p=719,g=668,v=750,y=843,w=765,C=440;if(!this[S(674,721)][S(805,n)]||this[S(r,721)][S(632,i)][S(805,o)]>=this[S(620,720)][S(s,a)])return;const b=Math[S(634,c)](1e3*2**this[S(626,u)][S(h,726)][S(757,819)],3e4);function S(t,e){return Ut(t,e-C)}this[S(l,u)][S(d,n)][S(f,o)]++,this[S(800,m)][S(674,726)][S(p,774)]=this[S(546,634)][S(g,v)][S(y,w)](()=>{function n(t,e){return S(e,t- -811)}this[n(-90,-36)][n(-85,-192)]&&this[n(-57,-25)](t,e)},b)}async[Ut(112,219)](){const t=128,e=48,n=142,r=35,i=84,o=13,s=67,a=4,c=1,u=36,h=20,l=29,d=51,f=41,m=34,p=0,g=57,v=94,y=47,w=67,C=24,b=11,S=182,T=42,x=67,L=1,M=67,B=100,D=29,_=17,z=21,A=394;if(!this[E(58,-26)][E(-10,-21)])return;const P=Nt(this[E(16,-26)][E(t,39)],this[E(-39,-26)][E(55,-51)],this[E(e,-26)][E(n,r)],this[E(-87,-26)][E(-4,i)],this[E(-2,-26)][E(-36,o)],this[E(-79,-26)][E(-14,-90)],this[E(-61,-26)][E(-33,-44)],this[E(s,-26)][E(139,50)],this[E(-106,-26)][E(-1,5)],this[E(a,-26)][E(12,c)],this[E(u,-26)][E(-158,-105)],this[E(h,-26)][E(l,19)],Date[E(62,d)]());function E(t,e){return Ut(t,e- -307)}const I=function(t,e,n,r){const i=817,o=870,s=796,a=869,c=664,u=762,h=778,l=902,d=995,f=910,m=842,p=524,g={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};function v(t,e){return Ut(e,t-p)}if(e.ma>0&&1===e.nm&&(g[v(i,o)]=!0),e.ca>0&&1===e.vc&&(g[v(s,a)]=!0),e.ka>0&&(g[v(888,948)]=!0),e.sa>0&&(g[v(767,c)]=!0),e.ta>0&&(g[v(833,862)]=!0),e.t>30&&(g[v(752,u)]=!0),n&&(n[v(h,778)]>1&&(g[v(792,691)]=!0),n[v(l,d)]>60&&(g[v(813,f)]=!0)),r){const t=Object[v(m,752)](g);for(const e of t)g[e]=g[e]||r[e]}return g}(this[E(f,-26)][E(-84,-11)],P,this[E(-67,-26)][E(-79,-23)],this[E(-61,-26)][E(m,-21)][E(-72,-76)]),N=function(t,e){if(!e)return!0;const n=Object[(r=294,i=364,Ut(i,r- -24))](t);var r,i;for(const r of n)if(t[r]!==e[r])return!0;return!1}(I,this[E(p,-26)][E(49,-21)][E(-183,-76)]),j=Date[E(-52,d)]()-this[E(39,-26)][E(62,-21)][E(g,66)],k=j>=this[E(-16,-27)][E(v,y)];if(N||k){if(Date[E(-22,d)]()-this[E(3,-26)][E(-9,-21)][E(113,w)]<100)return void this[E(13,-93)](E(-42,32),!0);if(k&&!N&&this[E(-162,-93)](E(15,C)+Math[E(77,54)](j/1e3)+E(-89,-50),!0),N&&this[E(-21,-27)][E(-26,-28)]){if(this[E(20,-26)][E(-122,-21)][E(-49,-76)]){Object[E(-76,b)](I)[E(S,99)](t=>{function e(t,e){return E(t,e-420)}this[e(410,A)][e(452,399)][e(368,344)][t],I[t]})}else this[E(-105,-93)](E(-24,-19));this[E(-123,-26)][E(-83,-23)]}this[E(T,-26)][E(x,-21)][E(L,-76)]=(q=I,{...q}),this[E(-81,-26)][E(34,-21)][E(59,M)]=Date[E(B,d)](),this[E(-7,D)](I);const t=N?E(104,_):E(z,41);await this[E(-34,7)](I,t)}else this[E(-38,-27)][E(-48,-28)];var q}}const Ot=t=>{const e=/_shopify_s=([^;]*)/[n(-210,-271)](t[n(-242,-150)][n(-249,-198)]);function n(t,e){return Ut(e,t- -465)}return e?e[1]:void 0},Rt=(t,e)=>{const n=Ot(t),r=/_shopify_y=([^;]*)/[i(-485,-391)](t[i(-517,-478)][i(-524,-459)]);function i(t,e){return Ut(e,t- -740)}const o=r?r[1]:void 0;return{libVersion:"2.0.0",shopId:e||"",hostname:t[i(-430,-525)]?.[i(-335,-383)]?.[i(-446,-399)]||"",url:t[i(-430,-407)]?.[i(-335,-329)]?.[i(-489,-494)]||"",referrer:t[i(-517,-565)]?.[i(-337,-293)]||"",baseURI:t[i(-517,-416)]?.[i(-458,-400)]||"",sessionToken:n||"",uniqueToken:o||""}},Ft=(t,e=Et(),n=new vt(_t,zt))=>{const r=new dt({exporter:n,attributes:Rt(e,t?.[i(-133,-30)])});function i(t,e){return Ut(e,t- -380)}const o=Ot(e),s=o?function(t){let e=0;for(let n=0,r=t.length;nc[i(-109,-183)]()):c[i(-109,-52)](),c};function Wt(t,e){const n=Dt();return Wt=function(e,r){let i=n[e-=413];if(void 0===Wt.TwhIJf){var o=function(t){let e="",n="",r=e+o;for(let n,i,o=0,s=0;i=t.charAt(s++);~i&&(n=o%4?64*n+i:i,o++%4)?e+=r.charCodeAt(s+10)-10!=0?String.fromCharCode(255&n>>(-2*o&6)):o:0)i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);for(let t=0,r=e.length;tt.startTime-e.startTime)}getLongAnimationFrames(){return[...this.longAnimationFrames].sort((t,e)=>t.startTime-e.startTime)}destroy(){this.cleanup(),this.quietWindowStartCandidates=[],this.longAnimationFrames=[]}initializeLongAnimationFrameObserver(){if(Vt())try{this.longAnimationFrameObserver=new PerformanceObserver(t=>{const e=t.getEntries();for(const t of e){const e=t.startTime+t.duration;if(this.longAnimationFrames.push({startTime:t.startTime}),this.quietWindowStartCandidates.length>0){const e=this.quietWindowStartCandidates[this.quietWindowStartCandidates.length-1];t.startTime-e.startTime<250&&this.quietWindowStartCandidates.pop()}this.quietWindowStartCandidates.push({startTime:e})}}),this.longAnimationFrameObserver.observe({type:"long-animation-frame",buffered:!0})}catch(t){}}cleanup(){this.longAnimationFrameObserver&&(this.longAnimationFrameObserver.disconnect(),this.longAnimationFrameObserver=null)}}let Zt=null;function Jt(t){if(null===t||!Vt())return Yt(),null;const e=Zt?Zt.getLongAnimationFrames():[];let n=null;for(const r of e)r.startTime>=t&&(!n||r.startTime=250)return Yt(),t;const r=Zt?Zt.getQuietWindowStartCandidates():[];let i=t;if(r.length>0){const e=[...r].sort((t,e)=>t.startTime-e.startTime);for(const n of e)if(n.startTime>=t){i=n.startTime;break}}return Yt(),i}function Vt(){return PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")}function Yt(){Zt&&(Zt.destroy(),Zt=null)}const Xt=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"}),Gt=new RegExp(`^${window.location.origin}/((?:(?:[a-z]{2,3}|zh-hans|zh-hant)(?:-[a-zA-Z0-9]+)/)?cart/(add|change|update|clear))`),$t=new RegExp("cart-performance:|add:|change:|clear:|note_update:");var Qt;function te({monorailRegion:t,schema:e,rawData:n}){const r=Date.now(),i={schema_id:e,payload:e===Qt.OnUnload?ee(n):ne(n),metadata:{event_created_at_ms:r,event_sent_at_ms:r}},o=Xt[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 ee(t){const e=re(t,["domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","firstPaint","visuallyReady","initiatorType","redirectCount","cartAjaxResourceTimings","cartPerformanceMetrics"]);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,other_metrics:JSON.stringify(e)}}function ne(t){const e=re(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,other_interaction_metrics:JSON.stringify(e)}}function re(t,e){return e.reduce((e,n)=>{var r;return t[n]&&(e[(r=n,r.replace(/[A-Z]/g,t=>`_${t.toLowerCase()}`))]=t[n]||null),e},{})}!function(t){t.OnInteraction="perf_kit_on_interaction/3.1",t.OnUnload="perf_kit_on_unload/3.4"}(Qt||(Qt={}));const ie="xxxx-4xxx-xxxx-xxxxxxxxxxxx";function oe(){let t="";try{const e=window.crypto,n=new Uint16Array(31);e.getRandomValues(n);let r=0;t=ie.replace(/[x]/g,t=>{const e=n[r]%16;return r++,("x"===t?e:3&e|8).toString(16)}).toUpperCase()}catch(e){t=ie.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 se=!0,ae=!1,ce=null,ue=null,he=!1;class le{info;config;performanceMetrics;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.0.0",url:window.location.href,referrer:document.referrer||void 0,microSessionId:oe(),microSessionCount:0,sessionToken:n,uniqueToken:i},performance.setResourceTimingBufferSize(1e3),this.performanceMetrics=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 de(t){ce=new le(t),Zt||(Zt=new Kt),t.spaMode&&(window.PerfKit={navigate:()=>{se?se=!1:ae||(me(),ce=new le(t),ae=!0)},setPageType:e=>{t.storefrontData.pageType=e},setConsent:t=>{ue=t}}),t.shs&&!t.spaMode&&Ft({debug:!1,shopId:t.storefrontData.shopId,exportWithFetch:t.shsExportWithFetch||!0,logsSampleRate:t.shsLogsSampleRate,...t.shsBeaconEndpoint&&{beaconEndpoint:t.shsBeaconEndpoint}})}const fe=new Set;function me(){if(null!==ce){if(pe()&&fe.size>0){let t={};for(const e of fe)t={...t,...e};const e=t.firstContentfulPaint??null,n=Jt(e);null!==e&&null!==n&&(t.quietWindowStart=Math.round(n)),fe.clear(),ce.info.microSessionCount+=1;const r=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))})}(ce.config.resourceTimingSamplingRate),i=performance.getEntriesByType("resource").filter(t=>Gt.test(t.name)),o=performance.getEntriesByType("measure").filter(t=>$t.test(t.name)).map(t=>{const e=t.toJSON();return e.name.startsWith("cart-performance:")||(e.name=`cart-performance:${e.name}`),e});te({monorailRegion:ce.config.monorailRegion,schema:Qt.OnUnload,rawData:{...ce.info,...ce.config.storefrontData,...ce.performanceMetrics,...t,resourceTiming:r,cartAjaxResourceTimings:i,cartPerformanceMetrics:o,paintTimingHidden:he}})}}else console.debug("⛔️ Shopify/perf-kit is not initialized")}function pe(){return null!==ue?ue:et()}((e,r={})=>{const o=s(r=Object.assign({},r),t),a=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);a.set(e,t)}}},((e,n={})=>{const r=C();T(p(()=>{let i,o=f("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=m("layout-shift",c);d&&(i=h(e,o,x,n.reportAllChanges),r.onHidden(()=>{c(d.takeRecords()),i(!0)}),u(()=>{a.o=0,o=f("CLS",0),i=h(e,o,x,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=L(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;fe.add({cumulativeLayoutShift:n,cumulativeLayoutShiftTarget:e.largestShiftTarget})}),((t,n={})=>{const r=s(n=Object.assign({},n),j),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={})=>{b(()=>{const n=C();let r,i=f("LCP");const o=s(e,j),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=f("LCP"),r=h(t,i,k,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;fe.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;fe.add({firstContentfulPaint:Math.round(e)})}),((t,e={})=>{const r=s(e=Object.assign({},e),E);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),f={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})(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();b(()=>{"interactionCount"in performance||z||(z=m("event",_,{type:"event",buffered:!0,durationThreshold:0}));let r,i=f("INP");const o=s(e,E),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=m("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=f("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===ce)return void console.debug("⛔️ Shopify/perf-kit is not initialized");if(!pe())return;ce.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)}:{};te({monorailRegion:ce.config.monorailRegion,schema:Qt.OnInteraction,rawData:{...ce.info,...ce.config.storefrontData,...ce.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=f("TTFB"),i=h(t,r,q,n.reportAllChanges);U(()=>{const o=e();o&&(r.value=Math.max(o.responseStart-d(),0),r.entries=[o],i(!0),u(()=>{r=f("TTFB",0),i=h(t,r,q,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;fe.add({timeToFirstByte:Math.round(e)})}),addEventListener("DOMContentLoaded",()=>{he="hidden"===document.visibilityState}),addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&me()}),function(){const{dataset:t}=document.currentScript;try{de(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},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)}}()}();

search