(()=>{var i=Object.defineProperty,t=(t,e,n)=>(n=n,(e="symbol"!=typeof e?e+"":e)in(t=t)?i(t,e,{i:!0,o:!0,writable:!0,value:n}):t[e]=n),l=class{constructor(){}},h=(t(l,"href",location.href),t(l,"documentUrl",document.URL),t(l,"documentReferrer",document.referrer),t(l,"deleteParams",false),class{constructor(){}static u(t){return this.l(document.getElementById(t))}static h(t){return document.getElementsByTagName(t)}static p(){return this.l(this.m(".hyros-first-name:not(input)"))}static v(){return this.l(this.m(".hyros-last-name:not(input)"))}static g(){return this.l(this.m(".hyros-full-name:not(input)"))}static l(t){return null!==t?t.innerText:""}static m(t){return document.querySelector(t)}}),f=class{constructor(){}static I(t){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t).toLowerCase())}static _(){return h.u("hyros-email")}static C(t){return t.includes("@")&&!t.includes(" ")}static k(t){var e=h.h(t);for(let t=0;t{var i=t.getEntries().filter(t=>"img"===t.initiatorType&&t.name.includes("facebook")&&t.name.includes("/tr")&&t.name.includes("eid=")),t=t.getEntries().filter(t=>"img"===t.initiatorType&&t.name.includes("reddit")&&t.name.includes("/rp.gif"));0{t=t.t;t&&"PURCHASE"===t.ev&&(s=t.cdid,u=t.e_tid)})}catch(t){p.error("[snap_error]"+t.stack)}return a.apply(this,arguments)},[]);function e(t,e){n.push({name:t,$:e})}if(e("Cookiebot",()=>"undefined"!=typeof Cookiebot&&Cookiebot.consent.marketing),e("CookiePro",()=>"undefined"!=typeof CookiePro&&CookiePro.GetConsent()),!t)return;var g={},I=(g.W={X:"UNIFIED_TRACKING_SCRIPT",V:"SHOPIFY",Z:"1d9206af9a27431ebd1199391f36abb70fd9332c0bb2edc7d330a20583df86bb",Y:"\!tracking",tt:175037,et:false,nt:false,it:false,rt:false,at:"",ot:false,ct:false,st:"",ut:false,dt:false,lt:false,ht:"null",ft:"null",vt:!1,gt:{It:"__mh_tt_e",_t:{email:"",productId:0,origin:"",cookieEnabled:!0,sourceLinkTags:"",fbAdsetId:0,googleAdId:0,bingAdGroupId:0,hyrosCampaignId:0,gClickId:"",wBraId:"",gBraId:"",fbClickId:"",sessionId:"",prevUrl:"",refUrl:"",phoneNumbers:"",tag:"",tags:[],tiktokAdGroupId:0,uniqueCheckoutId:0,snapchatAdSetId:0,twitterAdgroupId:0,dvfp:"",linkedinCampaignId:0,ttClickId:"",rdtAdGroupId:"",rdtClickId:"",paypalUniqueCheckoutId:"",firstName:"",lastName:"",adOptimizationConsent:"UNSPECIFIED",leadStage:"",leadGenSessionId:"",contact:""},wt:{yt:"sl",fbAdSetId:"fbc_id",Ct:"gc_id",kt:"h_ga_id",gClickId:"gclid",Tt:"g_special_campaign",wBraId:"wbraid",gBraId:"gbraid",fbClickId:"fbclid",Pt:"el",bt:"he",hyrosAdId:"h_ad_id",bingAdGroupId:"bng_id",Rt:"bng_special_campaign",hyrosCampaignId:"h_campaign_id",At:"mch",St:"ttc_id",Et:"snc_id",Dt:"lnk_id",Ut:"twt_id",Ot:"pnt_id",ttClickId:"ttclid",rdtAdGroupId:"rdt_id",rdtClickId:"rdt_clid",paypalUniqueCheckoutId:"tx",Nt:"htrafficsource",Ft:"hcategory",Gt:"hgoal",Lt:"h_keyword_id",Ht:"h_keyword",xt:"h_placement"},Mt:{yt:"sl",fbAdSetId:"fbc_id",Ct:"gc_id",kt:"h_ga_id",Tt:"CustomGSpecialCampaign",gClickId:"gclid",wBraId:"wbraid",gBraId:"gbraid",fbClickId:"fbclid",Pt:"el",bt:"he",hyrosAdId:"h_ad_id",bingAdGroupId:"bng_id",Rt:"CustomBingSpecialCampaign",hyrosCampaignId:"h_campaign_id",At:"mch",St:"ttc_id",Et:"snc_id",Dt:"lnk_id",Ut:"twt_id",Ot:"pnt_id",ttClickId:"ttclid",rdtAdGroupId:"rdt_id",rdtClickId:"rdt_clid",paypalUniqueCheckoutId:"tx",Nt:"htrafficsource",Ft:"hcategory",Gt:"hgoal",Lt:"h_keyword_id",Ht:"h_keyword",xt:"h_placement"},Bt:["sourceLinkTag","fbAdSetId","bingAdGroupId","hyrosCampaignId","googleCampaignId","googleAdgroupId","hyrosAdId","tiktokAdGroupId","snapchatAdSetId","linkedinCampaignId","twitterAdgroupId","pinterestAdGroupId","wrAdId","twAdId"],qt:["wickedsource","WickedSource"],jt:["wickedid","WickedID"],Kt:["snapchat"],Jt:["fbadid","gadid","ttadid","tw_adid"],$t:{sourceLinkTag:"sl",previousUrl:"prev_url",refUrl:"ref_url",fbAdSetId:"fbc_id",bingAdGroupId:"bng_id",Rt:"bng_special_campaign",hyrosCampaignId:"h_campaign_id",Ct:"gc_id",kt:"h_ga_id",Tt:"g_special_campaign",fbClickId:"fb_cl_id",gClickId:"g_cl_id",wBraId:"w_bra_id",gBraId:"g_bra_id",zt:"is_el",Wt:"is_he",hyrosAdId:"h_ad_id",fbPixelId:"fbp_id",fbPixelEventId:"fbpe_id",sessionId:"usid",tag:"tag",userAgent:"u_agent",Xt:"hyros",St:"ttc_id",uniqueCheckoutId:"u_ch_id",Et:"snc_id",Vt:"embed",dvfp:"fp",Dt:"lnk_id",ttClickId:"ttclid",rdtAdGroupId:"rdt_id",rdtClickId:"rdt_clid",Zt:"h_cart_id",Ut:"twt_id",Ot:"pnt_id",Yt:"wr_source",Qt:"wr_ad_id",te:"tw_ad_id",ee:"tw_source",ne:"r_c_id",dniNumber:"dni_number",transactionId:"transactionId",clientDedupId:"clientDedupId",Nt:"h_traffic_source",Ft:"h_category",Gt:"h_goal",Lt:"h_keyword_id",xt:"h_placement",Ht:"h_keyword"},ie:["Email","email","invitee_email","hemail","he","cemail","payer_email","checkoutemail","customer_email","email-address-lead","email-lead","buyer_email","inf_field_Email","email_form1","wj_lead_email","ew_email"],re:["text_reminder_number","sms_number","answer_","inf_custom_PhonenumberorSkypeID","inf_field_Phone1","Phone1","phone","mobile","customer_valid_phone","tel"],ae:["hyros-first-name","first-name","f-name","first_name","f_name","first name","f name","firstname","name"],oe:["hyros-last-name","last-name","l-name","last_name","l_name","last name","l name","lastname"],ce:["hyros-full-name","full-name","full_name","full name","fullname","complete-name","complete_name","complete name","completename"],se:[{name:"kartraReferenceIdLoaded",data:null}],ue:["EUIP","BLCK"],de:["BURL","BIP"],le:{he:"",tiktokPixelId:"",fe:"",pe:"",transactionId:"",me:"",clientDedupId:"",redditUUID:"",redditConversionId:""},ve:["hcontact"],ge:void 0,Ie:!1},_e:{we:{ye:"https://app.hyros.com",Ce:"https://175037.t.hyros.com/v1/lst",ke:"https://lg.hyr.so/v1/lst"}},Te:{Pe:!1,email:null,be:null,zt:!1,Wt:!1,Re:[],Ae:[],Se:[],Ee:[],De:[],Ue:[],Oe:[],Ne:"",Fe:!1,Ge:[],Le:null,He:null,xe:!0,reservedNumbers:[],noSwapNumbers:[],Me:!1,Be:null},qe:{je:["%"],Ke:"==="},Je:{$e:"",cartId:null},ze:"",We:{ADD_LEAD_TAG:"addLeadTag",ADD_LEAD_PHONE:"addLeadPhone",ADD_CONSENT:"addConsent",ADD_LEAD_STAGE:"addLeadStage"},Xe:{Ve:"custom=",Ze:"my-order-form",Ye:"https://www.digistore24.com/product/"},Qe:["GRANTED","DENIED","UNSPECIFIED"]},""),_="";let o="",c="",s="",u="",d="null"!==g.W.ft;g.W._e.endpoint={tn:g.W._e.we.Ce+"/pc",en:g.W._e.we.Ce+"/gusid",nn:g.W._e.we.ke+"/session",rn:g.W._e.we.Ce+"/error",an:g.W._e.we.Ce+"/hte",cn:g.W._e.we.Ce+"/pcu",sn:g.W._e.we.Ce+"/../sv",un:g.W._e.we.Ce+"/cap",dn:g.W._e.we.Ce+"/cte"},g.app=new function(){function r(t,e){return 0e.includes(t)?t:null).length}function i(t,e){return t&&t.classList&&t.classList.contains(e)}this.init=function(t){try{t()}catch(t){g.ln(t,"[init] [UTC]")}},this.hn=function(t,e){var n=h.h("head")[0],i=document.createElement("script");i.src=t,i.type="text/javascript",i.onreadystatechange=e,i.onload=e,n.appendChild(i)},this.fn=function(){return"SHOPIFY"===g.W.V?this.pn():f._()},this.pn=function(){return f.T()||this.mn()},this.mn=function(){var t=document.cookie.match("(^|;)\\s*hyrosemail\\s*=\\s*([^;]+)"),t=t&&0{if(t.className)for(var e in g.W.gt.ce){var n=["complete_name","full_name"],i=[...t.classList].join("_").toLowerCase();if(r(n,i))return 1;if(i.split("_").includes(g.W.gt.ce[e]))return 1}return g.W.gt.ce.includes(t.id&&t.id.toLowerCase())||g.W.gt.ce.includes(t.placeholder&&t.placeholder.toLowerCase())})(n)?g.app.En(n):(t=>{if(t.className)for(var e in g.W.gt.oe){var n=["l_name","last_name"],i=[...t.classList].join("_").toLowerCase();if(r(n,i))return 1;if(i.split("_").includes(g.W.gt.oe[e]))return 1}return g.W.gt.oe.includes(t.id&&t.id.toLowerCase())||g.W.gt.oe.includes(t.placeholder&&t.placeholder.toLowerCase())})(n)?g.app.Dn(n):(t=>{if(t.className)for(var e in g.W.gt.ae){var n=["f_name","first_name"],i=[...t.classList].join("_").toLowerCase();if(r(n,i))return 1;if(i.split("_").includes(g.W.gt.ae[e]))return 1}return g.W.gt.ae.includes(t.id&&t.id.toLowerCase())||g.W.gt.ae.includes(t.placeholder&&t.placeholder.toLowerCase())})(n)?g.app.Un(n):i(n,"hyros-phone")?g.app.On(n):i(n,"hyros-coupon")?g.app.Nn(n):"hyros-phone"===n.id?g.app.On(n):"text"!==n.type&&"email"!==n.type||(g.app.Fn(n),g.app.Gn(n))}},this.Gn=function(e){g.W.Te.Re.includes(e)||(e.addEventListener("change",function(t){f.I(e.value)&&g.app.Cn(e.value,g.W.tt,g.app.kn())}),g.W.Te.Re.push(e))},this.On=function(e){g.W.Te.Re.includes(e)||(g.app.gn(e.value),e.addEventListener("change",function(t){g.app.gn(e.value)}),g.W.Te.Re.push(e))},this.Nn=function(e){g.W.Te.Re.includes(e)||(g.app.Ln(e.value),e.addEventListener("change",function(t){g.app.Ln(e.value)}),g.W.Te.Re.push(e))},this.Un=function(e){g.W.Te.Re.includes(e)||(g.app.In(e.value),e.addEventListener("change",function(t){g.app.In(e.value)}),g.W.Te.Re.push(e))},this.Dn=function(e){g.W.Te.Re.includes(e)||(g.app._n(e.value),e.addEventListener("change",function(t){g.app._n(e.value)}),g.W.Te.Re.push(e))},this.En=function(e){g.W.Te.Re.includes(e)||(g.app.wn(e.value),e.addEventListener("change",function(t){g.app.wn(e.value)}),g.W.Te.Re.push(e))};function e(t){t=m.getUrlParam(t);return"fb"===t?"facebook":"tiktok"===t||"facebook"===t||"google"===t?t:""}function a(t){try{return decodeURIComponent(t),1}catch(t){}}this.Hn=function(){for(var t=g.W.gt.se,e=0;easync t=>{var t=null!=e?t.detail[e]:t.detail;p.info("[uCheckId] "+t),g.W.gt._t.uniqueCheckoutId=t,g.W.ge&&(g.W.Ie?await g.app.tn(g.W.gt._t.sessionId,()=>{}):(t={id:g.W.ge.clickId,productId:g.W.tt,uniqueCheckoutId:g.W.gt._t.uniqueCheckoutId,creationDate:g.W.ge.creationDate},g.W.Ie=!0,g.app.xn(t)))})(t[e].data),!0)},this.Mn=function(){var t=g.W.Y?"&tag="+g.W.Y:"",e=g.W.nt?"&spa=true":"",n=g.W.it?"&ignorePrevUrl=true":"",i="SHOPIFY"===g.W.V?"&origin=SHOPIFY":"",r=g.W.rt?"&embed=true":"";return g.W._e.we.Ce+"/universal-script?ph="+g.W.Z+t+i+e+n+r},this.Bn=function(){for(var t=[],e=document.getElementsByTagName("iframe"),n=0;n{g.W.Je.$e=e,await g.app.tn(g.W.gt._t.sessionId,t),e=this.ii()}),history.pushState=(e=>function(){var t=e.apply(this,arguments);return window.dispatchEvent(new Event("pushState")),window.dispatchEvent(new Event("locationchange")),t})(history.pushState),window.addEventListener("popstate",()=>{window.dispatchEvent(new Event("locationchange"))}))},this.Fn=function(t){f.I(t.value)&&!g.W.Te.Re.includes(t)&&g.app.Cn(t.value,g.W.tt,g.app.kn())},this.ri=function(t){return t?t.trim():""},this.ai=function(t){return t?t.trim().replace(/[^a-zA-Z]/g,""):""},this.oi=function(t){var e;return t?1==(t=t.split(" ")).length?t:(e=t.pop(),[t.join(" "),e]):[]},this.ci=()=>{var t=g.W.Te.Ee;return t.includes(g.W.Y)||t.push(g.W.Y),t},this.si=()=>g.W.Te.Ne,this.Cn=function(t,e,n){var i,r;g.W.Te.Ae.includes(t)||(g.W.Te.Ae.push(t),g.W.Te.email=t,i=g.W.gt.wt,r=g.W.gt.Mt,g.W.gt._t.productId=e,g.W.gt._t.origin=g.W.V,g.W.gt._t.cookieEnabled=navigator.cookieEnabled,g.W.gt._t.sourceLinkTags=n,g.W.gt._t.fbAdsetId=m.O(r.fbAdSetId,i.fbAdSetId,!0),g.W.gt._t.bingAdGroupId=m.O(r.bingAdGroupId,i.bingAdGroupId,!0),g.W.gt._t.Rt=m.O(r.Rt,i.Rt,!0),g.W.gt._t.hyrosCampaignId=m.O(r.hyrosCampaignId,i.hyrosCampaignId,!0),g.W.gt._t.googleAdId=m.O(r.Ct,i.Ct,!0,!0),g.W.gt._t.kt=m.O(r.kt,i.kt,!0,!0),g.W.gt._t.Tt=m.O(r.Tt,i.Tt,!0),g.W.gt._t.gClickId=m.O(r.gClickId,i.gClickId,!0),g.W.gt._t.wBraId=m.O(r.wBraId,i.wBraId,!0),g.W.gt._t.gBraId=m.O(r.gBraId,i.gBraId,!0),g.W.gt._t.fbClickId=this.ui(m.O(r.fbClickId,i.fbClickId,!0)),g.W.gt._t.refUrl=this.ii(),g.W.gt._t.prevUrl=m.S(),g.W.gt._t.email=t,g.W.gt._t.phoneNumbers=g.app.di()||g.W.gt._t.phoneNumbers,g.W.gt._t.tag=g.W.Y,g.W.gt._t.tags=this.ci(),g.W.gt._t.leadStage=this.si(),g.W.gt._t.tiktokAdGroupId=m.O(r.St,i.St,!0),g.W.gt._t.snapchatAdSetId=m.O(r.Et,i.Et,!0),g.W.gt._t.twitterAdgroupId=m.O(r.Ut,i.Ut,!0),g.W.gt._t.li=m.O(r.Ot,i.Ot,!0),g.W.gt._t.linkedinCampaignId=m.O(r.Dt,i.Dt,!0),g.W.gt._t.paypalUniqueCheckoutId=m.O(r.paypalUniqueCheckoutId,i.paypalUniqueCheckoutId,!0),g.W.gt._t.ttClickId=m.O(r.ttClickId,i.ttClickId,!0),g.W.gt._t.rdtClickId=m.O(r.rdtClickId,i.rdtClickId,!0),g.W.gt._t.firstName=g.app.hi()||g.W.gt._t.firstName,g.W.gt._t.lastName=g.app.fi()||g.W.gt._t.lastName,g.W.gt._t.contact=g.app.pi()||g.W.gt._t.contact,g.app.mi(g.W._e.endpoint.an,"POST",g.app.getObjectAsJson(g.W.gt._t),g.app.vi,g.app.gi,!0))},this.mi=function(t,e,n,i,r,a){var o;g.W.ct?(o=g.app.Ii(g.W.gt._t.sessionId,g.W.tt,g.W.gt._t.leadGenSessionId),g.app._i(t,e,n,i,r,o,a)):(o=g.app.getSessionIdHeaders(g.W.gt._t.sessionId,g.W.tt,g.W.gt._t.leadGenSessionId),"POST"===e?g.app.requestPost(t,n,i,r,o,a):g.app.requestGet(t,i,r,o,a))},this.wi=function(t,e){if(!g.W.ct){if(t&&g.W.gt.de.includes(t.body))return this.yi(t.body),!0;if(t&&"error"===t.status)return g.app.Ci(t.body,e),!0}return!1},this.ki=function(t){var e;t&&!g.W.Te.Se.includes(t)&&(v.N(t)&&v.L(t)&&(e=v.G(t),g.W.gt._t.phoneNumbers=[e]),e={id:g.W.ge.clickId,productId:g.W.tt,phoneNumber:t,creationDate:g.W.ge.creationDate},g.app.xn(e))},this.Ti=function(t){t&&(t={id:g.W.ge.clickId,productId:g.W.tt,couponCode:t,creationDate:g.W.ge.creationDate},g.app.xn(t))},this.Pi=function(t){t&&(g.W.gt._t.firstName=t,t={id:g.W.ge.clickId,productId:g.W.tt,firstName:t,creationDate:g.W.ge.creationDate},g.app.xn(t))},this.bi=function(t){t&&(g.W.gt._t.lastName=t,t={id:g.W.ge.clickId,productId:g.W.tt,lastName:t,creationDate:g.W.ge.creationDate},g.app.xn(t))},this.gn=function(t){t=v.G(t),v.L(t)&&!g.W.Te.Se.includes(t)&&g.W.ge&&(g.app.ki(t),g.W.Te.Se.push(t))},this.Ri=function(t){g.W.Te.Ee.includes(t)||g.W.Te.Ee.push(t)},this.Ln=function(t){t=g.app.ri(t),g.W.ge&&(g.app.Ti(t),g.W.Te.De.push(t))},this.In=function(t){t=g.app.ai(t);var e=g.W.ge.clickId;g.W.Te.Ue.includes(t+e)||g.W.ge&&(g.app.Pi(t),g.W.Te.Ue.push(t+e))},this._n=function(t){t=g.app.ai(t);var e=g.W.ge.clickId;g.W.Te.Oe.includes(t+e)||g.W.ge&&(g.app.bi(t),g.W.Te.Oe.push(t+e))},this.wn=function(t){t=g.app.oi(t);0-1{if(t)return(t=new RegExp("kwd-(\\d+)").exec(t))?t[1]:null})(m.O(i.Lt,n.Lt,!0,e)),t.Ht=m.O(i.Ht,n.Ht,!0,e),t.xt=m.O(i.xt,n.xt,!0,e),this.zi(t,i,n,e)},this.zi=function(t,e,n,i){var r={...t};delete r.sourceLinkTag,this.ji(r)||null===t.sourceLinkTag||(t.Nt=m.O(e.Nt,n.Nt,!1,i),t.Ft=m.O(e.Ft,n.Ft,!1,i),t.Gt=m.O(e.Gt,n.Gt,!1,i))},this.Wi=function(t){t.Yt=this.Xi(),t.Qt=this.Vi(t)},this.Xi=function(){var t=this.Zi();return t||this.Yi()},this.Zi=function(){for(var t,e=g.W.gt.qt,n=0;nObject.values(t).some(function(t){return e.name.includes(t)}))).length&&(n.refUrl=encodeURI(r[0].name),this.Ki(n,n.refUrl)),n.fbClickId=this.ui(n.fbClickId),!this.ji(n)){var i=g.W.gt.$t,r=m.O(e.At,t.At),a=[];null!==r&&(a=decodeURIComponent(r).split(g.W.qe.Ke));for(var o=0;om.O(g.W.gt.Mt.bt,g.W.gt.wt.bt,!1),this.dr=()=>m.O(g.W.gt.Mt.Pt,g.W.gt.wt.Pt,!1),this.lr=async function(){var t=g.app.sr(),e=g.W.gt.$t,n=new URLSearchParams,i=g.W._e.endpoint.tn,t=(t.fbAdSetId&&n.append(e.fbAdSetId,t.fbAdSetId),t.bingAdGroupId&&n.append(e.bingAdGroupId,t.bingAdGroupId),t.Rt&&n.append(e.Rt,t.Rt),t.hyrosCampaignId&&n.append(e.hyrosCampaignId,t.hyrosCampaignId),t.googleCampaignId&&n.append(e.Ct,t.googleCampaignId),t.Ji&&n.append(e.kt,t.Ji),t.Tt&&n.append(e.Tt,t.Tt),t.hyrosAdId&&(t.fbAdSetId||t.googleCampaignId||t.Ji||t.tiktokAdGroupId||t.li||t.snapchatAdSetId||t.bingAdGroupId||t.hyrosCampaignId||t.rdtAdGroupId)&&n.append(e.hyrosAdId,t.hyrosAdId),t.fbClickId&&n.append(e.fbClickId,t.fbClickId),t.googleClickId&&n.append(e.gClickId,t.googleClickId),t.wBraId&&n.append(e.wBraId,t.wBraId),t.gBraId&&n.append(e.gBraId,t.gBraId),t.sourceLinkTag&&n.append(e.sourceLinkTag,t.sourceLinkTag),t.zt&&n.append(e.zt,t.zt),t.previousUrl&&n.append(e.previousUrl,t.previousUrl),t.refUrl&&n.append(e.refUrl,t.refUrl),t.fbPixelId&&n.append(e.fbPixelId,t.fbPixelId),t.fbPixelEventId&&n.append(e.fbPixelEventId,t.fbPixelEventId),t.userAgent&&n.append(e.userAgent,t.userAgent),t.tiktokAdGroupId&&n.append(e.St,t.tiktokAdGroupId),t.uniqueCheckoutId&&n.append(e.uniqueCheckoutId,t.uniqueCheckoutId),t.snapchatAdSetId&&n.append(e.Et,t.snapchatAdSetId),t.twitterAdgroupId&&n.append(e.Ut,t.twitterAdgroupId),t.li&&n.append(e.Ot,t.li),t.Vt&&n.append(e.Vt,t.Vt),t.linkedinCampaignId&&n.append(e.Dt,t.linkedinCampaignId),t.$i&&n.append(e.ttClickId,t.$i),t.rdtAdGroupId&&n.append(e.rdtAdGroupId,t.rdtAdGroupId),t.rdtClickId&&n.append(e.rdtClickId,t.rdtClickId),t.Yt&&n.append(e.Yt,t.Yt),t.Qt&&n.append(e.Qt,t.Qt),t.te&&n.append(e.te,t.te),t.ee&&n.append(e.ee,t.ee),t.paypalUniqueCheckoutId&&n.append(e.uniqueCheckoutId,t.paypalUniqueCheckoutId),t.transactionId&&n.append(e.transactionId,t.transactionId),t.clientDedupId&&n.append(e.clientDedupId,t.clientDedupId),t.Nt&&n.append(e.Nt,t.Nt),t.Ft&&n.append(e.Ft,t.Ft),t.Gt&&n.append(e.Gt,t.Gt),t.Ht&&n.append(e.Ht,t.Ht),t.Lt&&n.append(e.Lt,t.Lt),t.xt&&n.append(e.xt,t.xt),g.W.Te.He&&n.append(e.dniNumber,g.W.Te.He),await g.app.Mi());return null!=t&&n.append(e.dvfp,t),g.W.Je.cartId?n.append(e.Zt,g.W.Je.cartId):(t=g.app.Kn())&&n.append(e.Zt,t),this.ur()&&this.dr()&&n.append(e.Wt,!0),i+"?"+n.toString()},this.Gi=function(t){var e=h.h("button"),n=h.h("a");this.hr(t,e,"button"),this.hr(t,n,"tag"),setInterval(this.pr(t),900)},this.hr=function(t,e,n){for(var i in e)try{var r,a=e[i].href;void 0!==a&&a.includes(g.W.Xe.Ye)&&!a.includes(g.W.Xe.Ve)&&(r=a.includes("?")?"&":"?",e[i].href=a+r+g.W.Xe.Ve+t,p.info("[hyros-url] A "+n+", new href: "+e[i].href))}catch(t){p.warn("[hyros-url] A "+n+", error: "+t)}},this.pr=function(t){var e,n=h.h(g.W.Xe.Ze);if(null===n||0===n.length)p.info("[hyros-url] iframe not found");else for(var i in n)try{void 0!==(url=n[i]._iframe.src)&&url.includes(g.W.Xe.Ye)&&!url.includes(g.W.Xe.Ve)&&(e=url.includes("?")?"&":"?",n[i]._iframe.src=url+e+g.W.Xe.Ve+t,p.info("[hyros-url] A iframe, new href: "+n[i]._iframe.src))}catch(t){p.warn("[hyros-url] A iframe error, "+t)}},this.mr=function(t){var e;if(t.getAttribute("href")&&t.getAttribute("href").includes("tel:")&&t.setAttribute("href","tel:"+g.W.Te.He),0===t.childElementCount)t.innerHTML&&v.M(t.innerHTML)&&(e=v.q(g.W.Te.He,t.innerHTML))&&(t.innerHTML=e);else for(var n=0;nn.delete(t)),Object.values(g.W.gt.Mt).forEach(t=>n.delete(t)),t+((n.toString()&&"?")+decodeURIComponent(n.toString()))},this.br=function(){m.U();try{l.deleteParams&&history.replaceState({},document.title,this.Pr())}catch(t){l.deleteParams=!1,p.error("E_P: "+t)}},this.Rr=()=>{var t,e;null!=g.W.Te.Be&&({Ar:t,value:e}=g.W.Te.Be,this.Sr(t,e),g.W.Te.Be=null,p.info("[CAP] Cached event sent"))},this.tn=async function(t,e){t=await this.lr(t);this.mi(t,"GET",{},function(t){g.app.wi(t,"pc")||(p.info("[pc]"),g.W.ge=t,g.app.Er().then(),g.app.Dr().then(),g.app.Ur().then(),g.app.Or().then(),g.app.Tr(!0),g.app.Rr(),e())},function(t){g.app.Ci(t,"pc"),g.app.Tr(!1),e()},!0),g.W.ct&&g.app.Tr(void 0)},this.Jn=function(t){t=("; "+document.cookie).split("; "+t+"=");if(2===t.length)return t.pop().split(";").shift()},this.Nr=function(){for(var t={},e=window.location.search.substring(1).split("&"),n=0;n{setTimeout(t,e)})},this.zr=async function(){c?(g.W.gt.le.pe=m.getUrlParam("eid",!1,c),g.W.gt.le.me=m.getUrlParam("fbp",!1,c),p.info("[fb_ev_id]: "+g.W.gt.le.pe),p.info("[_fbp]: "+g.W.gt.le.me)):(await g.app.Zr(1e3),await g.app.zr())},this.Wr=async function(){0t.name.includes("tiktok")&&t.name.includes("/pixel")&&t.name.includes("/pixel")&&!t.name.includes("/act")).length&&""!==I?(g.W.gt.le.fe=I,g.W.gt.le.tiktokPixelId=_,p.info("[tt_ev_id]: "+g.W.gt.le.fe),p.info("[tt_p_id]: "+g.W.gt.le.tiktokPixelId)):(await g.app.Zr(1e3),await g.app.Wr())},this.Vr=async function(){s?(g.W.gt.le.clientDedupId=s,g.W.gt.le.transactionId=u,p.info("[snap_cd_id]: "+g.W.gt.le.clientDedupId),p.info("[snap_t_id]: "+g.W.gt.le.transactionId)):(await g.app.Zr(1e3),await g.app.Vr())},this.$r=function(t,e,n){t=g.app.getSubstringBetween(t,"snaptr('track',",")");let i=g.app.getSubstringBetween(t,e,",");return""!==(i=(i=""===i?g.app.getSubstringBetween(t,e,"}"):i).toString().replace(/'/g,""))&&(i=i.trim(),p.info("[snap][get_"+n+"]: "+i)),i},this.Yr=function(t,e){return"0000000000000000000000000000000000000000000000000000000000000001"===t&&(p.error("[reddit] Default placeholders are being used. Invalid param: "+e),!0)},this.Xr=async function(){var t,e;o?(t=m.getUrlParam(e="external_id",!1,o),g.app.Yr(t,e)||(g.W.gt.le.transactionId=t),p.info("[rdt_t_id]: "+g.W.gt.le.transactionId),e=m.getUrlParam("uuid",!1,o),g.app.Yr(e,"uuid")||(g.W.gt.le.redditUUID=e),p.info("[rdt_uuid]: "+g.W.gt.le.redditUUID),e=m.getUrlParam(t="m.conversionId",!1,o),g.app.Yr(e,t)||(g.W.gt.le.redditConversionId=e),p.info("[rdt_conv_id]: "+g.W.gt.le.redditConversionId)):(await g.app.Zr(1e3),await g.app.Xr())},this.ui=function(t){var e=g.W.qe.je;if(null!=t)for(var n=0;n{try{var t;g.W.ot&&((t=document.createElement("script")).text=g.W.ze,document.head.appendChild(t),this.ia(),p.info("[fp] init"))}catch(t){p.error("[fp] init: "+t.stack),g.W.ot=!1}},this.ra=function(){var t;g.W.dt&&(window.Shopify&&window.Shopify.on&&(window.fbq||window.gtag)?(window.Shopify.on("CheckoutAmended",function(t,e){let n=(e.order||e).lineItems.map(function(t){return t.id});e=t.lineItems.filter(function(t){return n.indexOf(t.id)<0});0!==e.length&&g.app.aa(e[0].finalLinePrice,t.currency)}),window.Shopify.wasPostPurchasePageSeen||(t=window.Shopify.order,g.app.aa(t.totalPrice,t.currency))):p.warn("[NTPF]"))},this.aa=function(t,e){window.fbq&&(fbq("track","Purchase",{value:t,currency:e},{oa:Math.random().toString(36).substr(2,15)}),p.info("[fbq]")),window.gtag&&(gtag("event","Purchase",{value:t,currency:e}),p.info("[gtag]"))},this.ia=()=>{FPJS?g.W.Te.Le=FPJS.load():(p.warn("[fp] unv"),setTimeout(this.ia,100))},this.Mi=async()=>{try{var t;return g.W.ot?0{try{if(g.W.ot){let e=g.W.gt._t.dvfp;g.W.gt._t.deviceFingerprint="",g.app.Mi().then(t=>{null!=t&&t!==e&&(g.W.gt._t.dvfp=t,t={id:g.W.ge.clickId,productId:g.W.tt,creationDate:g.W.ge.creationDate,dvfp:t},g.app.xn(t))})}}catch(t){p.error("[fp2] "+t.stack)}},this.xn=function(t){g.app.requestPut(g.W._e.endpoint.cn,g.app.getObjectAsJson(t),g.app.Ei,g.app.Ui,g.app.getSessionIdHeaders(g.W.gt._t.sessionId,g.W.tt,g.W.gt._t.leadGenSessionId),!0)},this.sn=function(){documentUrl=window.location.origin,(verificationCode=m.getUrlParam("hpp-ver-code"))&&g.app.requestPut(g.W._e.endpoint.sn+"/verify",g.app.getObjectAsJson({domain:documentUrl,verificationCode:verificationCode}),g.app.Di,g.app.Oi,g.app.getSessionIdHeaders(g.W.gt._t.sessionId,g.W.tt),!0)},this.ca=function(t){t.forEach(t=>{"consent"!==t[0]||"update"!==t[1]&&"default"!==t[1]||g.W.vt||(t="granted"===t[2].ad_user_data&&"granted"===t[2].ad_personalization?"GRANTED":"DENIED",g.app.updateConsentValue(t))})},this.checkAllConsents=function(){let e=!1;n.forEach(t=>{t.$()&&(e=!0,p.info("Cookie consent given through "+t.name),g.app.updateConsentValue("GRANTED"))}),e||this.ca(window.dataLayer||[])},this.updateConsentValue=function(t){t!==g.W.gt._t.adOptimizationConsent&&(g.W.gt._t.adOptimizationConsent=t,this.sa())},this.ua=function(){g.W.Te.Ne="",g.W.gt._t.adOptimizationConsent="UNSPECIFIED",g.W.gt._t.leadStage=""},this.da=function(){window.dataLayer=window.dataLayer||[];var e=window.dataLayer.push;window.dataLayer.push=function(){var t=[].slice.call(arguments,0);return g.app.ca(t),e.apply(window.dataLayer,t)}},this.la=function(t){console.error("[CAP]: "+t.message)},this.ha=(t,e)=>JSON.stringify({type:t,value:Array.isArray(e)?[...e]:[e]}),this.fa=(e,n)=>Object.keys(e).find(t=>e[t]===n),this.Sr=function(t,e){g.app._i(g.W._e.endpoint.un,"POST",this.ha(t,e),this.ua,this.la,{"Session-ID":g.W.gt._t.sessionId,"Content-Type":"application/json"})},window.hrs=(()=>{let e=(t,e,n="leadUpdate")=>{window.dispatchEvent(new CustomEvent(n,{detail:{value:e,type:t}}))};return{addLeadTag:function(t){e(g.W.We.ADD_LEAD_TAG,t)},addLeadPhone:function(t){e(g.W.We.ADD_LEAD_PHONE,t)},addLeadConsent:function(t){e(g.W.We.ADD_CONSENT,t)},addLeadStage:function(t){e(g.W.We.ADD_LEAD_STAGE,t)}}})(),this.pa=(t,e)=>window.addEventListener(t,e),this.ei=()=>{this.pa("leadUpdate",this.ma)},this.ma=t=>{var t=t.detail,e=t.value;switch(t.type){case g.W.We.ADD_LEAD_TAG:this.Ri(e);break;case g.W.We.ADD_LEAD_PHONE:this.gn(e);break;case g.W.We.ADD_CONSENT:this.Ai(e);break;case g.W.We.ADD_LEAD_STAGE:this.Si(e);break;default:return void p.error("[LU_UT]")}this.sa(t.type,e)},this.sa=(t,e)=>{let n=g.W.Te.email||g.W.Te.be;n&&f.I(n)?g.W.gt._t.sessionId?(g.W.Te.Ae.includes(n)&&(g.W.Te.Ae=g.W.Te.Ae.filter(t=>t!==n)),g.app.Cn(n,g.W.tt,g.app.kn())):g.W.Te.Me=!0:t&&(t=this.fa(g.W.We,t),g.W.gt._t.sessionId?g.app.Sr(t,e):(g.W.Te.Be={Ar:t,value:e},p.info("[CAP] Event cached")))}},g.ln=function(t,e){var n=new URLSearchParams,i=(n.append("script",g.W.X),new XMLHttpRequest);i.open("POST",g.W._e.endpoint.rn+"?"+n),i.setRequestHeader("Product-ID",g.W.tt),""!=g.W.gt._t.sessionId&&i.setRequestHeader("Session-ID",g.W.gt._t.sessionId),i.send(e+" - "+(t.stack||t))},g.app.init(function(){g.app.br(),g.app.na(),g.app.ra(),g.app.Hn(),g.app.ni(g.app.Mr),g.app.jn(),g.app.ti(),g.app.Vt(),g.app.Jr(),g.app.$n(),g.app.xi(g.app.qr),g.app.checkAllConsents(),g.app.da(),g.app.sn()})}})();