(function(){function A(){if(window.heatmapContext){let a=window.heatmapContext.document,b=window.heatmapContext.navigator;return{host:a.location.host,hostname:a.location.hostname,href:a.location.href,origin:a.location.origin,pathname:a.location.pathname,search:a.location.search,userAgent:b.userAgent,language:b.language}}return{host:window.location.host,hostname:window.location.hostname,href:window.location.href,origin:window.location.origin,pathname:window.location.pathname,search:window.location.search, userAgent:window.navigator.userAgent,language:window.navigator.language}}function la(a,b,c){let d;return function(){const e=this,f=arguments,g=c&&!d;clearTimeout(d);d=setTimeout(function(){d=null;c||a.apply(e,f)},b);g&&a.apply(e,f)}}function ma(a,b="",c=""){try{if(!["leadConversion","leadConfig"].includes(a))return!0;let g=`${D}${A().pathname}`;if(window.location.origin.includes("heatmapcore")||window.location.origin.includes("heatmap.com"))return!0;var d=t,e=z;try{var f=Math.max(document.body?document.body.offsetHeight: 0,document.body?document.body.scrollHeight:0,document.documentElement?document.documentElement.offsetHeight:0,document.documentElement?document.documentElement.clientHeight:0,document.documentElement?document.documentElement.scrollHeight:0)}catch(k){f=0}let l={sendBeacon:a,siteid:d,page_url:g,idSiteHsr:b,idVisit:e,docHeight:`${f}_${S()}`};c&&(l.userJourney=c);"leadConversion"===a&&(l.idVisitor=localStorage.getItem("_mr_vid"),l.isReturning=window.isReturningUser,localStorage.setItem("heatIsGoalBuyer", 1),localStorage.setItem("heatIsGoalBuyerValue",1),localStorage.setItem("heatIsGoalBuyerAmount",1));navigator.sendBeacon(`${window.dedicatedPath}/heatmap.php?data=${window.btoa(encodeURIComponent(JSON.stringify(l)))}&request=beacon`)}catch(g){return""}}function na(){try{var a=/(preprocessor(?:-s3)?(?:\.min)?\.js\?sid=[^'"&]+)|(heatmap-light(?:\.min)?\.js\?sid=[^'"&]+)|(preprocessor(?:\.min)?\.js\?sid=[^'"&]+)|(heatmap\.js\?sid=[^'"&]+)/,b=document.head.innerHTML.match(a);b&&(b[1]||b[2]||b[3]||b[4])|| (b=document.body.innerHTML.match(a));if(b&&(b[1]||b[2]||b[3]||b[4])){let c=(b[1]||b[2]||b[3]||b[4]).split("=")[1];return t=parseInt(c)}}catch(c){}return null}function T(a,b=null){if(window.heatLoadedScripts[a])b&&"function"===typeof b&&b();else{var c=document.createElement("script");c.type="text/javascript";c.src=a;c.async=!1;c.defer=!0;c.onload=function(){window.heatLoadedScripts[a]=!0;b&&"function"===typeof b&&b()};document.head.appendChild(c)}}function oa(a){var b=a.startsWith("https")?!0:!1;if(!b)return""; a=new URL(a);var c=new URLSearchParams(a.search);a={};b=["page","pages","pg","v"];for(const [d,e]of c.entries())b.includes(d)&&(c=e.toLowerCase(),"v"===d&&"a b gma gmb cta ctb".split(" ").includes(c)?a[d]=c:"v"!==d&&(a[d]=c));return 0=window.innerWidth?3:500<=window.innerWidth&&900>=window.innerWidth?2:1}function U(a, b,c){const d=new Date;let e=location.host;e=e.replace(/www\./g,"");var f=e.split(".");d.setTime(d.getTime()+864E5*c);c="expires="+d.toUTCString();a=a+"="+b+";"+c+";path=/";2h.length?(d=18-h.length,e=Math.floor(Math.random()*Math.pow(10,d)).toString().padStart(d,"0"),h=h*Math.pow(10,d)+e):18{"_idl"==b&&("undefined"!==typeof heatmapDebugger?heatmapDebugger.updateIdvIdl(b,h):localStorage.setItem("_heatidL",h))},1E3);return h}function M(a){for(var b="";0{window.nodeConfigs=a;window.heatmapConfigsHasBeenAssigned||"undefined"===typeof window.HeatmapTracking||(myHeatEnv= E("_heatmapConfigs","_heatMapEnvRecord"),window.HeatmapTracking.HeatmapSessionRecording.configuration.assign(window.configsResponse))},b)}function ca(a,b){if([2898].includes(b))return a;"/de/ /es/ /fr/ /it/ /ja/ /pt/ /ru/ /zh/ /ar/ /tr/ /nl/ /pl/ /sv/ /lv/ /en/ /cs/ /da/ /el/ /fi/ /he/ /hr/ /hu/ /id/ /is/ /it/ /ja/ /ko/ /lt/ /ms/ /gh/ /gb/ /nb/ /nl/ /pl/ /pt/ /ro/ /ru/ /sk/ /sl/ /sr/ /sv/ /th/ /tr/ /uk/ /vi/ /zh/ /ng/".split(" ").forEach(c=>{a.includes(c)&&(a=a.replace(c,"/"))});return a.replace(/(\/[a-z]{2}-[a-z]{2})(\/|$)/, "/")}async function Ha(){let a=!1,b={idsite:t,trackerid:M(10),url:ca(window.currentHeatmapURL,t),viewPortW:window.innerWidth,title:decodeURIComponent(R()),_id:X(t),force_record:0,_isQr:0,_heatUrl:G,_isQrSiteHsr:0};var c=b.url;if(C(c).includes("srcdoc")||C(c).includes("aboutsrcdoc"))c=!1;else{var d=/(\/reset|\/sandbox\/modern|\/account\/activate|\/account\/quick-action|\/account\/addresses|\/loop_subscriptions|\/loop_subscriptions\/customer|\/payment_methods|\/reserve\/)/,e=/(\/pages\/share-review|\/pages\/profile\/)/; c=(/(\/tracking|\/checkouts|\/tools\/recurring|\/account\/forgotten|\/account\/register|\/account\/login|\/order\/|\/orders\/\/checkouts\/cn|\/downloads|\/search|\/account\/)/.test(c)||d.test(c)||e.test(c))&&!qa?!1:!0}if(!c)return window.nodeConfigs=heatmapDefaultConfigs,window.heatmapConfigsResponse=heatmapDefaultConfigs,window.configsResponse=heatmapDefaultConfigs.heatmap,window.heatmapRateLimiting={singlePaged:!0,intervalTime:3E3,events:{track:!0,rate:100},record:{track:!0,rate:100},configuration:{summary:[], raw:[]}},!0;window.heatPauseBeforeSCreenshot&&(c=new URLSearchParams(window.location.search),a=!0,b._req="lambda",b._isQr=1,b._isQrSiteHsr=c.get("idSideHsr"));try{if(!1===a)navigator.sendBeacon(`${window.trackingPath}/cfg/v1`,JSON.stringify(b));else{let f=await fetch(`${window.stagingPath}/backend/heatmaps/configs?_isQR=1`,{method:"POST",body:JSON.stringify(b)});if(f.ok){let g=await f.json();window.heatmapConfigsResponse=g;window.configsResponse=g;myHeatEnv=g.envVars;window.heatmapConfigsHasBeenAssigned= !1;window.configsResponse.heatmap.heatmaps&&0{const g=b.get(f)||0;b.set(f,g+1);return g?`${f}-${g}`:f},e=(f,g)=>{f.hasAttribute("data-heatmap-id")||f.setAttribute("data-heatmap-id",g);Array.from(f.children).forEach(l=>{let k=l.tagName.toLowerCase(),m=f.getAttribute("data-heatmap-id");e(l,`${m}-${k}`)})};a.forEach(f=>{var g=f.getAttribute("data-heatmap-id");if(!g){var l=f.getAttribute("href")||"";try{l=(new URL(ca(l,t),location.origin)).pathname}catch(k){}l=l.replace(/[\?&]variant=\d+/g,"").replace(/\//g,"-").replace(c, "").toLowerCase();3{sa();window.MaxUserScroll=0;window.currentHeatmapURL=A().href;window.Client_url=new URL(window.currentHeatmapURL);P=new URL(window.currentHeatmapURL);window.heatSiteHref=P.href;window.generatedIdloghsr= O(t,"_idl");window.hrs_vidp=M(10);window.heatviewsent=0;window.FirstHSRSentToAPI=!1;window.heatmapConfigsHasBeenAssigned=!1;ra(300,!0);window.visitRecordSent.visit=!1;window.visitRecordSent.loghsr=!1;window.heatviewsent=!1;window.heatVisitData={};window.ignoreReadyState=!0;setTimeout(()=>{window.shouldSetUniqueHeatmapIds&&(Y(),V());window._heatmap_paq.push(["trackPageView"]);window.heatmapConfigsResponse.heatmap&&window.heatmapConfigsResponse.heatmap.heatmaps.length&&(window.hrs_pvidp=M(6),w=window.heatmapHsrIds= window.heatmapConfigsResponse.heatmap.heatmaps[0].id,localStorage.setItem("_heatHsr",w),window.preloadContent.visit.pv_id=window.hrs_pvidp,window.preloadContent.visit.entryhsr=window._entryHsr,window.preloadContent.visit.exithsr=window._exitHsr,window.preloadContent.visit.entry=window._entryEnPage,window.preloadContent.visit.exit=window._entryExPage,window.preloadContent.loghsr.entryhsr=window._entryHsr,window.preloadContent.loghsr.exithsr=window._exitHsr,window.preloadContent.loghsr.entry=window._entryEnPage, window.preloadContent.loghsr.exit=window._entryExPage,window.preloadContent.loghsr.pv_id=window.hrs_pvidp,window.preloadContent.loghsr.hsr_vid=window.hrs_vidp,window.preloadContent.visit.idl=window.generatedIdloghsr,window.preloadContent.loghsr.idl=window.generatedIdloghsr,window.preloadContent.loghsr._idl=window.generatedIdloghsr,window.forceSendLoghsrVisit());"undefined"!==typeof convObj&&convObj.triggerCustomSiteSnippets&&convObj.triggerCustomSiteSnippets();window.visitRecordSent.intelligems=!1; window.visitRecordSent.convert=!1;window.visitRecordSent.session_tag=!1;window.globalFunctions.triggerPartnerTags()},1E3)};setInterval(()=>{b=C(window.location.href);b!==c&&(d(),c=b)},a)}function ta(){window.heatmapRateLimiting={singlePaged:!0,intervalTime:3E3,events:{track:!0,rate:100},record:{track:!0,rate:100},trackvariant:!0,configuration:{summary:[],raw:[]}};B("heatmapTracking",window.heatmapRateLimiting,"_heatmapConfigs");window.heatmapRateLimiting.acceptedTags=da}function ua(a){for(let b=0;b< a.childNodes.length;b++)if(a.childNodes[b].nodeType!==Node.TEXT_NODE)return!0;return!1}function va(a){if("html"===a.toLowerCase())return window._heatDEBUG&&console.log("Selector is not valid. 'html' selector is not allowed."),!1;if(0d?!1:"none"!==b.content||"none"!==c.content}catch(b){return!1}}function xa(a,b){try{if(!(a instanceof Element))return"";var c=null;try{var d=b.split(" > ")[0];let l=document.querySelectorAll(d);for(d=0;d!/[a-f0-9-]{36}/.test(n)&&!/\d{3,}/.test(n));h.length&&(l+="."+h.join("."))}if("body"===e.nodeName.toLowerCase()){a.unshift(l);break}let m=e.parentNode;m&&1h.nodeName.toLowerCase()===e.nodeName.toLowerCase()).length&&(l+=`:nth-child(${Array.from(m.children).indexOf(e)+1})`);a.unshift(l);e=m}let f=a.length?a.join(" > "): "body";c=`${f} > ${b}`;let g=c.split(" > ").length-1;window.calculatedRus.includes(f)?g=0:window.calculatedRus.push(f);return{k:c,rus:c,m:g,rud:g,f:b,ruap:b}}catch(e){}}function ya(a=!1){try{if(D.includes("heatmapcore")||D.includes("heatmap.com")||D.includes("localhost"))return!0;let b=`${P.hostname}${A().pathname}`;const c=new Date,d=za(),e=E("_heatmapConfigs","_heatEventsCount");let f=document.referrer;f.length||(f=A().origin);V();const g={requestTime:H,idsite:t,idv:z,idl:window.generatedIdloghsr, loghsr:{h:c.getHours(),m:c.getMinutes(),s:c.getSeconds(),hsr_smp:window.scrollPercentage,idsitehsr:w,heatmap_hsr:w,hsr_vid:window.hrs_vidp,hsr_vw:window.innerWidth,hsr_vh:window.innerHeight,pv_id:window.hrs_pvidp,hsr_sh:p.getDocumentHeight(),r:String(Math.random()).slice(2,8),hsr_ti:(new Date).getTime()-window.pre_start_time,res:window.innerWidth+"x"+window.innerHeight,efs_path:b.replace(/[&\/\\#,+()$~%.'":*?<>{}]/g,"_"),hsr_fyp:parseInt(p.getWindowSize().height/p.getDocumentHeight()*1E3,10),requestTime:H, currentTime:H,idsite:t,idv:z,url:window.currentHeatmapURL,urlref:f,_ref:f,hsr_return:window.isReturningUser,idl:window.generatedIdloghsr,_idv:z,_idl:window.generatedIdloghsr,source:"preload",entryhsr:window._entryHsr,exithsr:window._exitHsr,entry:window._entryEnPage,exit:window._entryExPage,_idn:0,_entry:{},cfu:C(window.currentHeatmapURL),_id:X(t),uadata:JSON.stringify(W(A().userAgent))},visit:{_id:X(t),lang:navigator.language,_ref:document.referrer.length?document.referrer:D,agent:A().userAgent, uagent:A().userAgent,href:window.currentHeatmapURL,buyer:window.isGoalBuyer?window.isGoalBuyer:0,evt:e?parseInt(e):0,rev:window.isGoalBuyerValue?window.isGoalBuyerValue:0,rt:window.isReturningUser,user:d,pv_id:window.hrs_pvidp,ts:(new Date).toISOString(),dt:S(),an:decodeURIComponent(R()),ua:JSON.stringify(W(A().userAgent)),requestTime:H,currentTime:H,idsite:t,idv:z,idl:window.generatedIdloghsr,_idv:z,entryhsr:window._entryHsr,exithsr:window._exitHsr,entry:window._entryEnPage,exit:window._entryExPage, _entry:{},cfu:C(window.currentHeatmapURL),res:window.innerWidth+"x"+window.innerHeight,action_name:decodeURIComponent(R())},cfu:C(window.currentHeatmapURL)};if(localStorage.getItem("_entryHsr")){let k=JSON.parse(localStorage.getItem("_entryHsr"));g.visit._entry=k;g.loghsr._entry=k;g.visit.entryhsr=k?.hsr;g.loghsr.entryhsr=k?.hsr;window._entryHsr=k?.hsr}window.preloadContent={visit:g.visit,loghsr:g.loghsr};const l=window.btoa(encodeURIComponent(JSON.stringify(g)));if(!window.userCanBeTracked)return!1; a&&(navigator.sendBeacon(`${"https://hsr.heatmapcore.com"}/?data=${l}&id=${z}&sid=${t}`),localStorage.setItem("_heatId",t),window.alreadySentPageView=!0)}catch(b){}}function Ja(a,b="Processing Log"){var c=(new Date).toLocaleString();Ka.push({log:a,title:b,date:c})}function za(){try{if("undefined"!==typeof convertData)return convertData.geo;if("undefined"!==typeof Shopify)return window.userCanBeTracked=Shopify?.customerPrivacy?.userCanBeTracked(),{country:Shopify.customerPrivacy.getRegion(),continent:Shopify.country}}catch(a){}return{}} function ea(){var a={};if("undefined"!==typeof navigator){var b=navigator,c={pdf:"application/pdf",qt:"video/quicktime",realp:"audio/x-pn-realaudio-plugin",wma:"application/x-mplayer2",fla:"application/x-shockwave-flash",java:"application/x-java-vm",ag:"application/x-silverlight"};if(!/MSIE/.test(b.userAgent)){if(b.mimeTypes&&b.mimeTypes.length)for(var d in c)if(Object.prototype.hasOwnProperty.call(c,d)){var e=b.mimeTypes[c[d]];a[d]=e&&e.enabledPlugin?1:0}!/Edge[ /](\d+[.\d]+)/.test(b.userAgent)&& "undefined"!==typeof b.javaEnabled&&b.javaEnabled()&&(a.java="1");a.cookie=b.cookieEnabled?1:0}}J=a;a=new Date;b=`${A().hostname}${A().pathname}`;a={preloader:0,rec:1,hsr_vid:window.hrs_vidp,_idv:z,_idl:window.generatedIdloghsr,r:String(Math.random()).slice(2,8),h:a.getHours(),m:a.getMinutes(),s:a.getSeconds(),idsite:t,send_image:0,hsr_vw:window.innerWidth,hsr_vh:window.innerHeight,res:window.innerWidth+"x"+window.innerHeight,pv_id:window.hrs_pvidp,heatmap_hsr:w,url:window.currentHeatmapURL,urlref:window.currentHeatmapURL, action_name:decodeURIComponent(R()),_idn:Aa,_id:X(t),user_agent:localStorage.getItem("_user_agent"),hsr_ti:(new Date).getTime()-window.pre_start_time,hsr_smp:window.scrollPercentage,hsr_fyp:parseInt(p.getWindowSize().height/p.getDocumentHeight()*1E3,10),hsr_sh:p.getDocumentHeight(),hsr_return:window.isReturningUser,pdf:1,user:za(),qt:J.qt,realp:J.realp,wma:J.wma,fla:J.fla,java:J.java,ag:J.ag,cookie:J.cookie,efs_path:b.replace(/[&\/\\#,+()$~%.'":*?<>{}]/g,"_"),"hsr_ids[]":w?w:"tranc",hsr_tid:"undefined", sourceIp:window.heatmapClientId,cip:window.heatmapClientId,requestTime:H,currentTime:H,test_data:La,visit_sent:window.visitRecordSent.visit,loghsr_sent:window.visitRecordSent.loghsr,sessionTags:JSON.stringify(window.heatmapSessionTag),uadata:JSON.stringify(W(A().userAgent))};window._heatmap_pre_clicks.length&&(a.clicks=JSON.stringify(window._heatmap_pre_clicks),a.preloader=1);a._ref=document.referrer;a._ref.length||(a._ref=D);a.urlref=a._ref;Z&&(a.prev_idv=Z);window.isGoalBuyer&&(a.buyer=window.isGoalBuyer, a.buyer_value=window.isGoalBuyerValue?window.isGoalBuyerValue:1,a.buyer_currency=window.isGoalBuyerCurrency);window.userScrollData={ty:14,sh:a.hsr_sh,smp:a.hsr_smp,ti:a.hsr_ti,current_smp:a.hsr_smp};return a}function fa(a,b=""){const c=[];for(const d in a)if(Object.prototype.hasOwnProperty.call(a,d)){const e=a[d],f=b?`${b}[${d}]`:d;"object"===typeof e?c.push(fa(e,f)):c.push(`${f}=${encodeURIComponent(e)}`)}return c.join("&")}function Ma(a){if(!Array.isArray(a))return[];const b=new Set;return a.filter(c=> {c=`${c.s}|${c.x}|${c.y}|${c.ax}|${c.ay}`;if(b.has(c))return!1;b.add(c);return!0})}function ha(a="preload"){try{var b=window.preloadContent.loghsr,c=window.preloadContent.visit;let d=E("_heatmapConfigs","_heatEventsCount");d&&(c.events_count=parseInt(d));c.h=b.h;c.m=b.m;c.s=b.s;c.uadata=b.uadata;c.hsr_return=window.isReturningUser;c.buyer=window.isGoalBuyer;c.urlref=b.urlref;b.heatmap_hsr=w;b.idsitehsr=w;b["hsr_ids[]"]=w?w:"tranc";b.hsr_ti=(new Date).getTime()-window.pre_start_time;b.hsr_sh=p.getDocumentHeight(); b.hsr_smp=window.scrollPercentage;b.source=a;c.idl=window.generatedIdloghsr;b.idl=window.generatedIdloghsr;b._idl=window.generatedIdloghsr;b.hsr_vid=window.hrs_vidp;c.entryhsr=window._entryHsr;c.exithsr=window.heatmapHsrIds;c.entry=window._entryEnPage;c.exit=window._entryExPage;localStorage.getItem("_entryHsr")&&(c._entry=localStorage.getItem("_entryHsr"),b._entry=localStorage.getItem("_entryHsr"));"undefined"!==typeof window.pageLoadTimeArray&&Object.entries(window.pageLoadTimeArray).forEach(([e, f])=>{c[e]=f;b[e]=f});window.preloadContent={visit:c,loghsr:b}}catch(d){console.log({set:d})}}function Ba(a=null,b="preload"){a=a?a:window.globalObjects.hmWS;"undefined"===typeof a&&(a=window.tempSocket);if("undefined"!==typeof a)try{ha(b);var c=window.preloadContent.loghsr;a.send(JSON.stringify({action:"staging-visits",data:window.preloadContent.visit,streamName:"STTrackerCustomIds",requestTime:H}),"visit");a.send(JSON.stringify({action:"staging-visits",data:c,streamName:"STTrackerCustomIds",requestTime:H}), "loghsr")}catch(d){console.log({send:d})}}function ia(a){var b=window.globalObjects.KINESISSTREAM;if(!window.heatmapHsrIds)return!0;a=window.globalObjects.KINESISGATEWAY;if(window.location.origin.includes("heatmapcore")||window.location.origin.includes("heatmap.com"))return!0;"undefined"!==typeof myHeatEnv&&null!==myHeatEnv&&"undefined"!==typeof myHeatEnv.KINESISGATEWAY&&(b=myHeatEnv.KINESISSTREAM);if(C(window.currentHeatmapURL).includes("srcdoc")||C(window.currentHeatmapURL).includes("aboutsrcdoc"))return!0; let c=(window.scrollY||document.documentElement.scrollTop)/(document.documentElement.scrollHeight-window.innerHeight)*100;window.tagging&&window.tagging.processScroll(c);if(c>window.MaxUserScroll){let g=ea();delete g.preloader;delete g.action_name;delete g.uadata;delete g.sessionTags;g.hsr_smp=c;let l=g;g=p.serialize(g);var d={hsr_ev:[]};d.hsr_ev[0]||(d.hsr_ev[0]={});d.hsr_ev[0].ty=14;d.hsr_ev[0].sh=p.getDocumentHeight();var e=d.hsr_ev[0];var f=ja?(new Date).getTime()-ja:0;e.ti=f;d.hsr_ev[0].smp= parseInt(100*c,10);l.hsr_ev=d.hsr_ev;d=g+Na(d);b={Data:window.btoa(d),PartitionKey:"partition"+10*Math.round((Math.floor(100*Math.random())+1)/10),StreamDataset:"scroll",StreamName:b};window.scrollPercentage=Math.round(c);window.MaxUserScroll=Math.round(c);navigator.sendBeacon(`${a}`,JSON.stringify(b));window.shouldSetUniqueHeatmapIds&&setTimeout(()=>{Y()},1500)}}function Na(a){let b="";a.hsr_ev.forEach((c,d)=>{Object.keys(c).forEach(e=>{b+=`&hsr_ev[${d}][${e}]=${encodeURIComponent(c[e])}`})});return b} function X(a){localStorage.setItem("_user_agent",A().userAgent);var b=localStorage.getItem("_mr_vid");if(void 0!==b&&null!==b)return b;document.cookie.split(";").forEach(e=>{var [f,g]=e.split("=");if(-1")?a:null):a}catch(b){return a}}function Oa(a,b,c,d,e,f,g){if(c){var l=new Date;l.setTime(l.getTime()+c)}g||="Lax";document.cookie=a+"="+b+(c?";expires="+l.toGMTString():"")+";path="+(d||"/")+(e?";domain="+e:"")+(f?";secure":"")+";SameSite="+g}function Ca(a){try{var b=document.querySelector(a);if(!b)return a;const c= ["data-at-id","data-heatmap-id-link","data-heatmap-atc","data-heatmap-cta","data-heatmap-id"];function d(g){for(const l of c)if(g.hasAttribute(l))return{attrName:l,attrValue:g.getAttribute(l),tagName:g.tagName.toLowerCase()};return null}let e=d(b);if(e)return`${e.tagName}[${e.attrName}="${e.attrValue}"]`;let f=b.parentElement;for(b=0;f&&5>b;){if(e=d(f))return`${e.tagName}[${e.attrName}="${e.attrValue}"]`;f=f.parentElement;b++}return a}catch(c){return a}}function Da(a,b=!0){let c=localStorage.getItem("_heatmap_event_tag"), d={};if(c){c=JSON.parse(c);Array.isArray(c)||(c=[c]);if(a&&"object"===typeof a&&a.hasOwnProperty("partner")){let e=!1;c.forEach((f,g)=>{f.tag&&f.tag.partner===a.partner&&f.tag.variant_id===a.variant_id&&(c[g]={type:"object",tag:a,persistent:b,_idv:z},e=!0)});e||c.push({type:"object",tag:a,persistent:b,_idv:z})}else{let e=!1;c.forEach((f,g)=>{f.tag&&f.tag===a&&(c[g]={type:"object",tag:a,persistent:b,_idv:z},e=!0)});e||c.push({type:typeof a,tag:a,persistent:b,_idv:z})}d=c}else d=[{type:typeof a,tag:a, persistent:b,_idv:z}];localStorage.setItem("_heatmap_event_tag",JSON.stringify(d))}function Pa(a,b=!1){try{localStorage.getItem("_heatmap_custom_tag")?window.sessionTagQueryParam=JSON.parse(localStorage.getItem("_heatmap_custom_tag")):window.sessionTagQueryParam={};for(const d in a)window.sessionTagQueryParam[d]=a[d];b&&localStorage.setItem("_heatmap_custom_tag",JSON.stringify(window.sessionTagQueryParam));window.sessionTagQueryParam._idv=z;"undefined"!==typeof a.type&&(window.sessionTagQueryParam.experiment_id= a.type);"undefined"!==typeof a.partner_friendly_name&&(window.sessionTagQueryParam.experiment_name=a.partner_friendly_name);const c={idsite:t,idsitehsr:w,requestTime:formatDateUTC(),currentTime:formatDateUTC(),_idv:z,_idl:window.generatedIdloghsr,request:"sessionTags"};c.sessionTags={params:{},partner_tag:[{_idv:z,_idl:window.generatedIdloghsr,tag:window.sessionTagQueryParam}]};c.idsitehsr=w;"undefined"!==typeof window.globalObjects.hmWS&&window.globalObjects.hmWS.send(JSON.stringify({action:"staging-visits", data:c,streamName:"STTrackerCustomIds",requestTime:formatDateUTC()}),"sessiontags")}catch(c){}}function Qa(){var a=Array.from(document.getElementsByTagName("script")).filter(b=>b.src&&(b.src.includes("heatmapcore.com")||b.src.includes("heatmap.com"))).map(b=>({filename:(new URL(b.src)).pathname.split("/").pop(),fullUrl:b.src})).reduce((b,c)=>{b[c.filename]||(b[c.filename]=[]);b[c.filename].push(c.fullUrl);return b},{});a=Object.entries(a).filter(([,b])=>1({filename:b,urls:c})); if(0k.includes("elementor-"))||l.some(k=>/\d/.test(k))||l.some(k=>k.includes("product_"))}const c=a.split(" > "),d=[...c];c.forEach((l,k)=>{if(b(l)){var m;if(m=document.querySelector(c.slice(0,k+ 1).join(" > ")))if(m=m&&m.parentElement?Array.from(m.parentElement.children).indexOf(m)+1:null,m){[l]=l.split(".");const [h,...n]=l.split("#");d[k]=`${h}${0 "),f=document.querySelector(a),g=document.querySelector(e);return f===g&&null!==f?e:a}function Ra(){if(window.heatmapRateLimiting&&window.heatmapRateLimiting.configuration){const b=window.heatmapRateLimiting.configuration;C(window.currentHeatmapURL);var a=!1;const c={};function d(k, m,h,n,u=!1){if(u)return window._heatmap_set_event_tag({partner:"VIIAHemp",variant_friendly_name:"selector_click",selector:h});if(!a){n=new Date;n=(u=c[h])?Math.round((n-u)/6E4):null;u=S();var q=E("_heatmapConfigs","leadConvCount");q=q?q+1:1;ma("leadConversion",w,{eventType:m,target:h,idgoal:k,count:q,intersection_time:n,device_type:u});a=!0;window.isGoalBuyer=1;window.isGoalBuyerValue=1;window.isGoalBuyerAmount=1;window.isGoalBuyerCurrency="USD";localStorage.setItem("heatIsGoalBuyer",1);localStorage.setItem("heatIsGoalBuyerCurrency", "USD");localStorage.setItem("heatIsGoalBuyerValue",1);localStorage.setItem("heatIsGoalBuyerAmount",1);B("leadConvCount",q,"_heatmapConfigs")}}function e(k){return k.some(m=>C(window.currentHeatmapURL.replace(/\/$/,""))===C(m.replace(/\/$/,"")))}function f(k,m){b.summary.length&&k.forEach(h=>{const {target:n}=h,u=b.summary.find(q=>"visible"===q.eventType&&q.targets.some(v=>n.matches(v)));u&&h.isIntersecting&&(h=u.targets.find(q=>n.matches(q)),c[h]||(c[h]=new Date),d(u.type,u.eventType,h,null),m.unobserve(n))})} function g(k){const m=new IntersectionObserver(f,{threshold:.5});document.querySelectorAll(k).forEach(h=>m.observe(h))}function l(k,m){document.querySelectorAll(m).forEach(h=>{h.addEventListener(k.eventType,n=>d(k.type,k.eventType,m,n,!!k.eventTag))})}try{b.summary.length&&(new MutationObserver(k=>{k.forEach(m=>{m.addedNodes.forEach(h=>{1===h.nodeType&&b.summary.forEach(n=>{const {targets:u,eventType:q}=n;"visible"===q&&u.forEach(v=>{(h.matches(v)||h.querySelector(v))&&g(v)})})})})})).observe(document.body, {childList:!0,subtree:!0})}catch(k){}if(b)try{b.summary.forEach(k=>{const {targets:m}=k;"page_load"===k.eventType&&e(m)?d(k.type,k.eventType,window.currentHeatmapURL,null):m.forEach(h=>{"page_load"!==k.eventType&&(g(h),"visible"!==k.eventType&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{l(k,h)}):l(k,h)))})})}catch(k){}}}async function Sa(a,b,c=!1,d="recordings"){if(a){var e=await localStorage.getItem("heatmapHsrVid");if("recordings"==d&&1==c)try{if(!a.Data){window._heatDEBUG&& console.warn("GzipWebWorker: data.Data is null/undefined");return}a=decodeURIComponent(window.atob(a.Data))}catch(m){window._heatDEBUG&&console.error("Error decoding data:",m);return}window._heatDEBUG&&console.log(a);var f=Ta(),g=Math.floor(1E6*Math.random()),l=async function(m){var h=m.data;if(h.id===g)if(h.error)window._heatDEBUG&&console.error("Worker processing error:",h.error),k();else{m=h.data;var n=h.url,u=h.isBeacon;h=h.heatmapHsrVid;window._heatDEBUG&&console.log({initialData:m,fileUrl:n}); try{if(u){const q=btoa(Array.from(new Uint8Array(m)).map(r=>String.fromCharCode(r)).join("")),v=`${n}${n.includes("?")?"&":"?"}data=${q}&id=${g}&hsr_vid=${h}`;window._heatDEBUG&&console.log("Sending beacon to:",v);navigator.sendBeacon?(navigator.sendBeacon(v),window._heatDEBUG&&console.log("Beacon sent:",g)):(await fetch(v,{method:"POST",keepalive:!0}),window._heatDEBUG&&console.log("Beacon sent via fetch:",g))}else{const q=new Blob([m]),v=await fetch(n,{method:"PUT",headers:{"Content-Type":"application/json", "Content-Encoding":"gzip"},body:q});window._heatDEBUG&&console.log("S3 Response:",v)}}catch(q){window._heatDEBUG&&console.error(u?"Beacon error:":"S3 upload error:",q)}finally{k()}}},k=()=>{f.removeEventListener("message",l);delete GzipsentMessages[g]};f.addEventListener("message",l);GzipsentMessages[g]=!0;f.postMessage({id:g,data:a,url:b,isBeacon:c,heatmapHsrVid:e})}else window._heatDEBUG&&console.warn("GzipWebWorker received null/undefined data")}function sa(){ha("exitclick");if(localStorage.getItem("_HEATMAP_LAST_ELEMENT_CLICKED")){var a= window.preloadContent.loghsr;let b=JSON.parse(localStorage.getItem("_HEATMAP_LAST_ELEMENT_CLICKED"));b.hsr&&(a.heatmap_hsr=b.hsr,a._idv=z,a.nidv=z,a._idl=b.idl,a.nidl=b.idl,a["hsr_ids[]"]=b.hsr,delete b.hsr,delete b.idl,a.hsr_ev=[b],a={Data:window.btoa(fa(a)),PartitionKey:`${(new Date).getTime()}`,StreamDataset:"initclicks",StreamName:window.globalObjects.KINESISSTREAM},navigator.sendBeacon(`${window.globalObjects.KINESISGATEWAY}`,JSON.stringify(a)),localStorage.removeItem("_HEATMAP_LAST_ELEMENT_CLICKED"))}} function Fa(a,b){window.visitRecordSent[a]||(F&&F?.readyState!==WebSocket.CLOSED?F?.readyState===WebSocket.OPEN?(F.send(b),window.visitRecordSent[a]=!0):F.addEventListener("open",()=>F.send(b),{once:!0}):(F=new WebSocket("wss://kinesis.heatmap.com/khsrv/v1"),F.onopen=()=>{F.send(b);window.visitRecordSent[a]=!0},F.onclose=()=>F=null),window.tempSocket=F)}var K=[4,1562,1425,2522,2544,3193,586,179,244,3249,1808,3579,3193,2821,3380,3639,1745,3039,3347,2671,2928,3673,3674,3678,3677],L=null;try{const a= document.currentScript?.src;if(a){const b=(new URLSearchParams((new URL(a)).search)).get("sid");b&&(L=parseInt(b,10))}}catch(a){console.warn("Error extracting site ID from script URL:",a)}if(L&&K.includes(L))return console.log(`[Heatmap Redirect] Site ID ${L} is in v2 test list, loading v2 script.`),K=`https://c.heatmap.com/scripts/heatmap.min.js?sid=${L}`,L=document.createElement("script"),L.src=K,L.async=!0,document.head.appendChild(L),!0;if("undefined"!==typeof window.globalFunctions||window.location.origin.includes("localhost"))return!0; window.silenceHeatMapLogs=window.silenceHeatMapLogs||!1;window.hErrorLogs=window.hErrorLogs||[];window.ppStartTime=performance.now();window.heatLoadedScripts=[];window.createNewVisitRequired=!1;window.saveClicksToLocal=!0;window.heartBeatBeacons="";window.isReturningUser=0;window.MaxUserScroll=0;window.scrollPercentage=0;window.globalFunctions={};window.tempSocket=!1;window.ignoreReadyState=!1;window.heatmapApiPath="https://api.heatmap.com";window.dedicatedPath="https://conversions.heatmapcore.com/"; window.trackingPath="https://dashboard.heatmap.com";window.stagingPath="https://stage1.heatmapcore.com";window.journeyPath="https://ujourney.heatmapcore.com";window.sessionTagQueryParam=[];window._heatmap_custom_tags=window._heatmap_custom_tags||[];window.heatmapSessionTag=window.heatmapSessionTag||{params:{}};window.isGoalBuyer=localStorage.getItem("heatIsGoalBuyer");window.isGoalBuyerValue=localStorage.getItem("heatIsGoalBuyerValue");window.isGoalBuyerCurrency=localStorage.getItem("heatIsGoalBuyerCurrency"); window.isGoalBuyerAmount=localStorage.getItem("heatIsGoalBuyerAmount");window.HeatclickedSelectors=new Set;window.userCanBeTracked=!0;window.preloadContent={};window.userEventsCounter=0;window._entryEnPage=0;window._entryHsr=0;window._exitHsr=0;window._heatmap_custom_tags.forEach(function(a){window.heatmapSessionTag.params[a.name]=a.value});window.visitRecordSent={loghsr:!1,visit:!1,pageview:!1,preprocessor:!1,heatmaplight:!1,to_generate:!1,loadtimesent:!1};window.nodeConfigs={};window.userScrollData= {};window.exitEventSent=!1;window.defaultEventTimeout=300;window.globalObjects={KINESISGATEWAY:"https://kinesis.heatmap.com/data",KINESISSTREAM:"kinesisForProduction"};var Ua={},Z="",t=window.heatClientId||0,D=A().origin,La=!!window.browserState&&"bot-testing"==window.browserState;window._heatmapDEBUG=!1;window.savedBreakPoints=localStorage.getItem("heatmapDebugger");window.savedBreakPoints?(window.savedBreakPoints=JSON.parse(window.savedBreakPoints),window.heatmapBreakPoints=window.savedBreakPoints?.heatmapCDBreakPointMenuItems|| {}):window.heatmapBreakPoints={};if("undefined"===typeof G)var G=window.heatUrl||window.trackingPath;if("undefined"===typeof Q){var Q=window._heatmap_paq=window._heatmap_paq||[];Array.isArray(window._paq)&&0{if(Array.isArray(a)){const [b,c]=a;return!("setTrackerUrl"===b&&c!==G)}return!0})?Array.isArray(window._paq)&&(window._heatmap_paq=window._paq):Q.push(["setTrackerUrl",G+"heatmap.php"]));Array.isArray(Q)&&!Q.some(a=>Array.isArray(a)&&"setTrackerUrl"=== a[0])&&Q.push(["setTrackerUrl",G+"heatmap.php"])}else Q=window._heatmap_paq;(function(){na();var a=JSON.parse(localStorage.getItem("heatmapDebugger"));a?(a.hasOwnProperty("jsFilesStatus")&&delete a.jsFilesStatus,a.hasOwnProperty("heatmapLightLT")&&delete a.heatmapLightLT,a.hasOwnProperty("conversionsLT")&&delete a.jsFilesStatus,a.hasOwnProperty("conversionsLT")&&delete a.conversionsLT,a.hasOwnProperty("heatmapCDPreprocessor")&&delete a.heatmapCDPreprocessor,a.hasOwnProperty("heatmapCDHeatmapLight")&& delete a.heatmapCDHeatmapLight,a.hasOwnProperty("heatmapCDConversions")&&delete a.heatmapCDConversions):a={};localStorage.setItem("heatmapDebugger",JSON.stringify(a));a=A().href.includes("debugMode");localStorage.removeItem("heatmap_cxd_visit_logs_hsr_plt_status");if(a||localStorage.getItem("setDebug"))window._heatmapDEBUG=!0,localStorage.setItem("setDebug",1),T(`${G}heatmap-debugger.js`),B("heatmapCDPreprocessor",{status:1,data:{}},"heatmapDebugger")})();window.heatmapIsLoaded=!1;window.contentEngagement= !1;window.currentHeatmapURL=A().href;window.Client_url=new URL(window.currentHeatmapURL);window.heatSearchParams=new URLSearchParams(window.location.search);window.heatPauseBeforeSCreenshot=window.currentHeatmapURL.includes("pause_before_screenshot=1");window.heatmapRateLimiting=E("_heatmapConfigs","heatmapTracking");var P=new URL(window.currentHeatmapURL);P.search="";window.heaturl=P;window.heatSiteHref=P.href;window.configsResponse={};window.heatmapConfigsHasBeenAssigned=!1;window.hrs_vidp=M(10); window.hrs_pvidp=M(6);window._heatDEBUG=!1;window._RollUpDEBUG=!1;window.shouldCleanupSelectors=!0;window.shouldSetUniqueHeatmapIds=[1932,179,3241,3193,3268,3308,3276,3226].includes(t);const da="intelligem_variant utm_term utm_medium utm_campaign utm_content utm_source custom_event_tag tw_source tw_profile_id tw_medium tw_campaign add_to_cart open_cart ad_id adset_id adset pr_prod_strat pr_rec_id pr_rec_pid pr_ref_pid pr_seq view close_cart remove_from_cart checkout_started checkout_completed purchase refund campaign_id".split(" "); var w=0,Ka=[],qa=A().href.includes("heatmap_config=1");myHeatEnv=E("_heatmapConfigs","_heatMapEnvRecord");window.generatedIdloghsr=O(t,"_idl");var z=function(a=!1,b=null){var c=null;V();c=E("_heatmapConfigs","_heatIdVisit");const d={idVisit:ba(`_heatVid_${b}`),_heatIdvUpdated:ba(`_heatIdvUpdated_${b}`)};window._heatDEBUG&&console.log("cookieVisitLog:",d);if(!0===a)window.createNewVisitRequired=!0,c=O(b,"_idv");else if((a=!!d.idVisit)||c){let e=(new Date).getTime()-(a?d._heatIdvUpdated:c._heatIdvUpdated); 1800 localStorage.removeItem(e)),["vapour-age","vapour-value"].forEach(e=>{document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`}),B("_heatEventsCount",0,"_heatmapConfigs"));localStorage.setItem("_heatDeviceType",S());B("window.isReturningUser",window.isReturningUser,"_heatmapConfigs");V();return c}(!1,t),Aa=0,J={},Va=[];window.heatmapConfigsResponse={heatmap:{heatmaps:[],sessions:[],idsite:t,trackerid:M(8)},idsite:t,trackerid:M(8)};window.triggerSinglepage=!0;heatmapDefaultConfigs=window.heatmapConfigsResponse; window.heatmapClientId=E("_heatmapConfigs","heatmapClientId");window.pre_start_time=(new Date).getTime();window._heatmap_pre_clicks=[];window.heatviewsent=0;const H=(new Date).toISOString().replace(/T/,":").replace(/\..+/," +0000").replace(/(\d{4})-(\d{2})-(\d{2}):(\d{2}):(\d{2}):(\d{2})/,(a,b,c,d,e,f,g)=>`${d}/${"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")[c-1]}/${b}:${e}:${f}:${g}`);window.heatmapRateLimiting||(window.heatmapClientId=null);window.heatGlobalPayload={request:"sessionTags", idsite:t,_idv:z,_idl:window.generatedIdloghsr,res:`${window.innerWidth}x${window.innerHeight}`};setTimeout(ra,0);let ja;window.addEventListener("load",function(){ja=(new Date).getTime()});const Wa=a=>a.split(" > ").map(b=>b.replace(/sticky-header:nth-child\(\d+\)/,"sticky-header")).join(" > ");window.heatmapConfigLoaded=new Promise(a=>{!window.heatmapRateLimiting||window.createNewVisitRequired?(async()=>{try{if(!(D.includes("heatmapcore")||D.includes("heatmap.com")||D.includes("localhost"))){var b= await fetch("https://c.heatmap.com/configs/tracking.json",{method:"GET"}),c=JSON.parse(await b.text());if("undefined"===typeof c.tracking[t])ta(),console.log("Default configs loaded r");else{var d=c.tracking[t];"undefined"!==typeof c.configuration[t]&&(d.configuration=c.configuration[t]);window.loadedConfiguration=!0;window.heatmapRateLimiting={...d,acceptedTags:c.acceptedTags||da,singlePaged:!0,intervalTime:3E3};B("heatmapTracking",d,"_heatmapConfigs")}}a(!0)}catch(e){ta(),console.log("Default configs loaded e"), a(!0)}})():(window.heatmapRateLimiting.singlePaged=!0,a(!0))});(async function(){await window.heatmapConfigLoaded})();null!==myHeatEnv&void 0!==myHeatEnv&&myHeatEnv.length&&(myHeatEnv=E("_heatmapConfigs","_heatMapEnvRecord"),t=myHeatEnv.IDSITE);(function(){var a=localStorage.getItem("_heatmap_unsent");if(a&&myHeatEnv)try{if(!myHeatEnv.KINESISSTREAM||!myHeatEnv.KINESISGATEWAY)return!0;var b=JSON.parse(a);b.StreamName=myHeatEnv.KINESISSTREAM;navigator.sendBeacon(""+myHeatEnv.KINESISGATEWAY,JSON.stringify(b)); localStorage.removeItem("_heatmap_unsent")}catch(c){}})();(function(){try{var a=localStorage.getItem("_heatSessDom");if(a){if(!myHeatEnv.KINESISSTREAM)return!0;let b={Data:window.btoa(JSON.stringify(a)),PartitionKey:"partition"+10*Math.round((Math.floor(100*Math.random())+1)/10),StreamName:myHeatEnv.KINESISSTREAM};navigator.sendBeacon(`${myHeatEnv.KINESISGATEWAY}`,JSON.stringify(b));localStorage.removeItem("_heatSessDom")}}catch(b){}})();var p={simplifyAndJoinSelectors:(a="")=>{let b=[];if(!a.length)return a; a.split(">").forEach(c=>{0<(c.match(/\.[\w-]+/g)||[]).filter(d=>/[a-f0-9-]{36}/.test(d.slice(1))).length&&(c=c.replace(/\.[\w-]+/g,""));b.push(c.trim())});return b.join(" > ")},cssPath:function(a,b){if(a instanceof Element){if(1!==a.nodeType)return"";for(var c=[],d=a;d;){const e=p._cssPathStep(d,!!b,d===a);if(!e)break;c.push(e);if(e.optimized)break;d=d.parentNode}c.reverse();return c.join(" > ")}},_cssPathStep:function(a,b,c){function d(r){return(r=r.getAttribute("class"))?r.split(/\s+/g).filter(y=> y&&!/[:\[\]/!.|]|(\d{1,2}\s?[a-f\d]{7,}(-[a-f\d]{4}){3}-[a-f\d]{12})|(\d{5,})/.test(y)).map(y=>"$"+y):[]}function e(r){if(/^[0-9]|-[0-9-]?/.test(r)){const y=r.length-1;return r.replace(/./g,(x,I)=>{var N;(N=0===I&&/^[0-9]|-[0-9-]?/.test(x))||(N=!(/[a-zA-Z0-9_\-]/.test(x)||160<=x.charCodeAt(0)));N&&(I=I===y,x=x.charCodeAt(0).toString(16),1===x.length&&(x="0"+x),x="\\"+x+(I?"":" "));return x})}return r}function f(r){const y={};for(const x of r)y[x]=!0;return y}function g(r){let y=!1;if(r)try{y=1=== document.querySelectorAll(`#${r}`).length}catch(I){}var x;if(x=r&&!/\s/.test(r))x=!/^[\w-]+-[a-fA-F0-9]+$/.test(r);return x&&!/[:\[\]/!.]/.test(r)&&!/\d{3,}/.test(r)&&y}if(a.nodeType!==Node.ELEMENT_NODE)return null;const l=a.getAttribute("id");if(b){if(g(l))return new p.DOMNodePathStep("#"+l,!0);b=a.nodeName.toLowerCase();if("body"===b||"head"===b||"html"===b)return new p.DOMNodePathStep(b,!0)}b=a.nodeName.toLowerCase();if(g(l))return new p.DOMNodePathStep(b.toLowerCase()+"#"+l,!0);var k=a.parentNode; if(!k||k.nodeType===Node.DOCUMENT_NODE)return new p.DOMNodePathStep(b.toLowerCase(),!0);const m=d(a);let h=!1,n=!1,u=-1;if((k=k.children)&&k.length)for(let r=0;(-1===u||!n)&&ra.length)return!1;allClicksProximity=allClicksProximity=allClicksRapid=!0;for(ix=1;ix< a.length;ix++)if(allSameSelector=a[ix].s===a[ix-1].s,allClicksRapid&=250>=Math.abs(a[ix].ti-a[ix-1].ti),allClicksProximity&=10>=Math.abs(a[ix].x-a[ix-1].x),allClicksProximity&=10>=Math.abs(a[ix].y-a[ix-1].y),!allClicksRapid||!allClicksProximity||!allSameSelector)return!1;return allSameSelector&&allClicksRapid&&allClicksProximity?(window._heatDEBUG&&console.log("rage "+b.s+" "+b.ti),!0):!1};p.hash=function(a){var b=function(x,I){return x<>>32-I},c=function(x){var I="",N;for(N=7;0<=N;N--){var Xa= x>>>4*N&15;I+=Xa.toString(16)}return I},d,e=[],f=1732584193,g=4023233417,l=2562383102,k=271733878,m=3285377520,h=[];a=decodeURIComponent(encodeURIComponent(a));var n=a.length;for(d=0;d>>29);h.push(n<<3&4294967295);for(a=0;ad;d++)e[d]=h[a+d];for(d=16;79>=d;d++)e[d]=b(e[d-3]^e[d-8]^e[d-14]^e[d-16],1);u=f;n=g;var q=l;var v=k;var r=m;for(d=0;19>=d;d++){var y=b(u,5)+(n&q|~n&v)+r+e[d]+1518500249&4294967295;r=v;v=q;q=b(n,30);n=u;u=y}for(d=20;39>=d;d++)y=b(u,5)+(n^q^v)+r+e[d]+1859775393&4294967295,r=v,v=q,q=b(n,30),n=u,u=y;for(d=40;59>=d;d++)y=b(u,5)+(n&q|n&v|q&v)+r+e[d]+2400959708&4294967295,r= v,v=q,q=b(n,30),n=u,u=y;for(d=60;79>=d;d++)y=b(u,5)+(n^q^v)+r+e[d]+3395469782&4294967295,r=v,v=q,q=b(n,30),n=u,u=y;f=f+u&4294967295;g=g+n&4294967295;l=l+q&4294967295;k=k+v&4294967295;m=m+r&4294967295}y=c(f)+c(g)+c(l)+c(k)+c(m);return y.toLowerCase()};p.generateVisitId=function(){var a=J;return p.hash((A().userAgent||"")+(navigator.platform||"")+window.JSON.stringify(a)+(new Date).getTime()+Math.random()).slice(0,16)};p.domainFixup=function(a){var b=a.length;"."===a.charAt(--b)&&(a=a.slice(0,b));"*."=== a.slice(0,2)&&(a=a.slice(1));-1!==a.indexOf("/")&&(a=a.substr(0,a.indexOf("/")));return a};p.updateDomainHash=function(a){return p.hash(a+"/").slice(0,4)};if("complete"==document.readyState||"interactive"==document.readyState||"loading"==document.readyState)K="undefined"!==typeof window.hErrorLogs?100:1500,K=[2280,1425,2861,2889,1787].includes(t)?1500:K,setTimeout(function(){window.heatmapIsLoaded||(Array.isArray(window._heatmap_paq)&&0==window._heatmap_paq.length&&window._heatmap_paq.push(["setTrackerUrl", G+"heatmap.php"]),T(G+`heatmap-light.min.js?sid=${t}`))},K);window.addEventListener("beforeunload",function(){if(null==myHeatEnv)return!0;localStorage.setItem("prevHsr",w);window.MaxUserScroll=0;if(w){var a=E("_heatmapConfigs","_heatEventsCount");a=(a?parseInt(a):0)+window.userEventsCounter;B("_heatEventsCount",a,"_heatmapConfigs")}"undefined"!==typeof window.globalFunctions.handleEventTags&&window.globalFunctions.handleEventTags();ia(!0);a=window.globalObjects.KINESISGATEWAY;var b="undefined"!== typeof window.globalObjects.clicks?window.globalObjects.clicks:window._heatmap_pre_clicks;Ba();localStorage.setItem("unsentClicks",JSON.stringify(b));0{window.addEventListener(a,Ya)});window.DemoModeParam=Client_url.searchParams.get("pk_demo_mode");window.retrievedDemoData=localStorage.getItem("demonstrationModeCaptureScreen");if(DemoModeParam||retrievedDemoData)(K=Client_url.searchParams.get("redirectUrl"))&& localStorage.setItem("leadRedirect",K),localStorage.setItem("demonstrationModeCaptureScreen",!0),T(`${G}dmode.min.js`);const Ta=()=>{if(window.HeatZipWorker)return window.HeatZipWorker;const a=new Blob([` // Import script once when worker is created importScripts('${G}pako.md5.js'); self.onmessage = function(event) { var message = event.data; var messageId = message.id; var fileUrl = message.url; var data = message.data; var isBeacon = message.isBeacon; var heatmapHsrVid = message.heatmapHsrVid; try { if (isBeacon) { var compressedData = pako.deflate(JSON.stringify(data)); self.postMessage({ id: messageId, data: compressedData, url: fileUrl, isBeacon: true, heatmapHsrVid:heatmapHsrVid }); } else { var compressedData = pako.gzip(JSON.stringify(data)); self.postMessage({ id: messageId, data: compressedData, url: fileUrl, isBeacon: false, heatmapHsrVid:heatmapHsrVid }); } } catch (error) { self.postMessage({ id: messageId, error: error.message, isBeacon: isBeacon, heatmapHsrVid:heatmapHsrVid }); } };`],{type:"application/javascript"});window.HeatZipWorker=new Worker(URL.createObjectURL(a));window.HeatZipWorker.onerror=function(b){window._heatDEBUG&&console.error("Worker error:",b.message)};return window.HeatZipWorker};window.GzipsentMessages={};window.debouncedClickHandler=la(function(a){if("target"in a&&"pageY"in a&&"pageX"in a&&a.target){window.tagging&&window.tagging.processEvent(a,"click");var b=p.returnOffset(a.target),c=parseInt((a.pageX-b.left)/b.width*2E3,10);b=parseInt((a.pageY- b.top)/b.height*2E3,10);var d=p.cssPath(a.target),e=null;try{e=document.querySelector(d)}catch(f){d=d.replace(/#[^\s>]+/,""),e=document.querySelector(d)}if(wa(e)&&!ua(e)){const f=window.getComputedStyle(e,"::after"),g=e.offsetParent;e=e.parentElement;g&&"BODY"!==g.tagName&&f&&"absolute"===f.position&&"0px"===f.left&&"0px"===f.right&&"0px"===f.bottom&&(d="li"===e.tagName.toLowerCase()&&"ul"===g.tagName.toLowerCase()?p.cssPath(e,!1):p.cssPath(g,!1))}1===c%2&&c++;1===b%2&&b++;isNaN(c)||isNaN(b)||(d= p.simplifyAndJoinSelectors(d),a={ti:(new Date).getTime()-window.pre_start_time,ty:2,s:d.replace(/"/g,""),x:c,y:b,ax:a.pageX,ay:a.pageY},a.s=ka(a.s),a.s=window.shouldCleanupSelectors?Ea(a.s):a.s,c=xa(document.querySelector(a.s),a.s),a.rus=ka(c.rus),a.rud=c.rud,a.ruap=a.s,window._RollUpDEBUG&&console.log("selector:",a.s),window._RollUpDEBUG&&console.log("raw rud:",c),window._RollUpDEBUG&&console.log("rud:",a.rud),null!==a.s&&1==va(a.s)&&"NaN"!==a.y&&(p.isRageClickx(Va,a)&&(a.meta1="rage"),a.s=Ca(Wa(a.s)), _heatmap_pre_clicks.push({type:0,data:a}),a.idl=window.generatedIdloghsr,a.hsr=w,localStorage.setItem("_HEATMAP_LAST_ELEMENT_CLICKED",JSON.stringify(a)),window._heatDEBUG&&console.log("aS",a),window._heatDEBUG&&console.log("_heatmap_pre_clicks: ",_heatmap_pre_clicks),window.saveClicksToLocal&&myHeatEnv&&myHeatEnv.KINESISSTREAM&&0{ya(!1);window.visitRecordSent.pageview||(window.visitRecordSent.pageview=!0,window.heartBeatBeacons=",pageviews");window.visitRecordSent.preprocessor||(window.visitRecordSent.preprocessor= !0,window.heartBeatBeacons+=",preprocessor");window.createNewVisitRequired&&!window.visitRecordSent.to_generate&&(window.visitRecordSent.to_generate=!0,window.heartBeatBeacons+=",visits_to_generate");B("heatmapDCPageLoadTime",0,"heatmapDebugger");B("heatmapDCVisit",0,"heatmapDebugger");B("heatmapDCLogHSR",0,"heatmapDebugger");window.clicksHandler=p;window.myHeatEnv=myHeatEnv;window.preHeatmapSiteId=t;window.ppEndTime=performance.now();window.globalFunctions.clean=aa;window.globalFunctions.previousIdVisit= Z;window.ppExecutionTime=window.ppEndTime-window.ppStartTime;window.heatUrl=G;window.heatVisitData=Ua;window.heatSanitizeURL=C;window.heatmap_set_event_tag=Da;window.heatmapPushLogsObject=Ja;window.globalFunctions.heatSaveStore=B;window.globalFunctions.parseUserAgent=W;window.globalFunctions.loadScriptHeatmap=T;window.globalFunctions.heatRetrieveStore=E;window.globalFunctions.extractNameFromURL=R;window.globalFunctions.validateHeatSelector=va;window.globalFunctions.heatmapGenerateUniqueId=O;window.globalFunctions.heatHasBeforeOrAfterPseudoElement= wa;window.globalFunctions.heatDoesElementHaveChildren=ua;window.globalFunctions.heatmapReplaceUUIDInSelector=ka;window.globalFunctions.setHeatmapCrossDomainCookie=U;window.globalFunctions.heatmapRandomString=M;window.globalFunctions.getHeatmapCrossDomainCookie=ba;window.globalFunctions.calculateRusRud=xa;window.globalFunctions.loadClientOriginHref=A;window._heatmap_set_event_tag=Da;window._heatmap_custom_event_tag=Pa;window.globalFunctions.sendHeatBeatBeacon=ma;window.globalFunctions.GzipWebWorker= Sa;window.globalFunctions.HeatreplaceComplexWithNthChild=Ea;window.getParentDataAttribute=Ca;window.forceSendLoghsrVisit=Ba;window.globalFunctions.setHeatmapIds=Y;window.heatmapRateLimiting&&(window.heatmapRateLimiting.singlePaged=!0,window.heatmapRateLimiting.intervalTime=3E3,window.heatmapRateLimiting.acceptedTags=da,window.contentEngagement=window.heatmapRateLimiting?.contentEngagement);B("preprocessorLT",`${window.ppExecutionTime}ms`,"heatmapDebugger")},500);setTimeout(()=>{sa();Qa();Ra();Ia(3E3); window.shouldSetUniqueHeatmapIds&&Y();if(localStorage.getItem("heatWPx"))try{navigator.sendBeacon(`${window.stagingPath}/heatmap.php`,JSON.stringify({idsite:t,heatWPx:JSON.parse(localStorage.getItem("heatWPx")),source:"pixel"})),window.isGoalBuyer=1,localStorage.removeItem("heatWPx")}catch(a){}},1E3);let F=null;setTimeout(()=>{try{ha("forced"),window.preloadContent.loghsr.source="forced",Fa("visit",JSON.stringify({action:"staging-visits",data:window.preloadContent.visit,requestTime:H,streamName:"STTrackerCustomIds"})), w&&Fa("loghsr",JSON.stringify({action:"staging-visits",data:window.preloadContent.loghsr,requestTime:H,streamName:"STTrackerCustomIds"})),ya(!0)}catch(a){}},3E3);(function(){window.HeatPreprocessorLoaded="true";const a=new CustomEvent("HeatPreprocessorReady");window.dispatchEvent(a)})()})();