(()=>{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),h=class{constructor(){}},m=(t(h,"href",location.href),t(h,"documentUrl",document.URL),t(h,"documentReferrer",document.referrer),t(h,"deleteParams",false),class{constructor(){}static u(t){return this.l(document.getElementById(t))}static h(t){return document.getElementsByTagName(t)}static m(){return this.l(this.p(".hyros-first-name:not(input)"))}static g(){return this.l(this.p(".hyros-last-name:not(input)"))}static _(){return this.l(this.p(".hyros-full-name:not(input)"))}static l(t){return null!==t?t.innerText:""}static p(t){return document.querySelector(t)}}),e=(t=>(t.EMAIL="Email",t.EMAIL_LOWER="email",t.INVITEE_EMAIL="invitee_email",t.HEMAIL="hemail",t.HE="he",t.CEMAIL="cemail",t.PAYER_EMAIL="payer_email",t.CHECKOUTEMAIL="checkoutemail",t.CUSTOMER_EMAIL="customer_email",t.EMAIL_ADDRESS_LEAD="email-address-lead",t.EMAIL_LEAD="email-lead",t.BUYER_EMAIL="buyer_email",t.INF_FIELD_EMAIL="inf_field_Email",t.EMAIL_FORM1="email_form1",t.WJ_LEAD_EMAIL="wj_lead_email",t.EW_EMAIL="ew_email",t))({});var f=class{constructor(){}static log(t,e){console.log("%c [UTS] "+t,"color: "+e+";")}static info(t){this.log(t,"green")}static error(t){this.log(t,"red")}static warn(t){this.log(t,"#ff9966")}},p=class s{constructor(){}static decodeUrlParam(e){if(null!==e)try{for(;e!==decodeURIComponent(e);)e=decodeURIComponent(e)}catch(t){f.warn("[DCD] Fail: "+e+" , error: "+t)}return e}static I(t,e,n){try{return h.deleteParams?t:e}catch(t){return f.error(n+t),h.deleteParams=!1,e}}static v(){return this.I(h.href,location.href,"E_BHREF: ")}static C(){return this.I(h.documentUrl,document.URL,"E_DURL: ")}static P(){return this.I(h.documentReferrer,document.referrer,"E_DREF: ")}static getUrlParam(t,e,n,i){n=n||this.v(),t="[\\?&]"+(t=(t=t.toString().replace(/[\[]/,"\\[").replace(/[\]]/,"\\]")).toString().replace(/ /g,"\\+"))+'=([^&#,"]*)',t=new RegExp(t).exec(n);let a=t?t[1]:null;return a=null!==a&&(e&&(a=s.decodeUrlParam(a)),i)?a&&a.replace(/["},]/g,""):a}static T(t,e,n){for(var i,a=n||s.v(),n="[\\?&]"+(t=t.toString().replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"))+"=([^&#]*)",r=new RegExp(n,"g"),o=[];null!==(i=r.exec(a));){let t=i[1];e&&(t=s.decodeUrlParam(t)),o.push(t)}return o}static R(){this.v(),this.C(),this.P()}static k(e,t,n,i){var a=s.getUrlParam(t,n,i,!0);if(e!==t)try{var r=s.getUrlParam(e,n,i,!0);if(r)return r}catch(t){f.info("[e_cp]: "+e+" , error: "+t)}return a}static A(t){for(var e of t){e=this.getUrlParam(e,!0);if(e)return e}return null}},g=class{constructor(){}static S(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 O(){return m.u("hyros-email")}static D(t){return t.includes("@")&&!t.includes(" ")}static U(t){var e=m.h(t);for(let t=0;t(t.HYROS_FIRST_NAME="hyros-first-name",t.FIRST_NAME="firstname",t.NAME="name",t.FIRST_NAME_DASHED="first-name",t.F_NAME_DASHED="f-name",t.FIRST_NAME_SNAKE="first_name",t.F_NAME_SNAKE="f_name",t.FIRST_NAME_SPACED="first name",t.F_NAME_SPACED="f name",t))({})),a=(t=>(t.HYROS_LAST_NAME="hyros-last-name",t.LAST_NAME="lastname",t.LAST_NAME_DASHED="last-name",t.L_NAME_DASHED="l-name",t.LAST_NAME_SNAKE="last_name",t.L_NAME_SNAKE="l_name",t.LAST_NAME_SPACED="last name",t.L_NAME_SPACED="l name",t))({}),r=(t=>(t.HYROS_FULL_NAME="hyros-full-name",t.FULL_NAME_DASHED="full-name",t.FULL_NAME_SNAKE="full_name",t.FULL_NAME_SPACED="full name",t.FULL_NAME_SINGLE="fullname",t.COMPLETE_NAME_DASHED="complete-name",t.COMPLETE_NAME_SNAKE="complete_name",t.COMPLETE_NAME_SPACED="complete name",t.COMPLETE_NAME_SINGLE="completename",t.INVITEE_FULL_NAME="invitee_full_name",t))({}),I=class{constructor(){}static V(t){return{[0]:Object.values(n),1:Object.values(a),2:Object.values(r)}[t]||[]}static X(t){t=this.V(t);return p.A(t)}},v=(t=>(t.HCONTACT="hcontact",t))(v||{});var C=["%"],w="===",P=(t=>(t.TEXT_REMINDER_NUMBER="text_reminder_number",t.SMS_NUMBER="sms_number",t.ANSWER="answer_",t.INF_CUSTOM_PHONE_NUMBER_OR_SKYPE_ID="inf_custom_PhonenumberorSkypeID",t.INF_FIELD_PHONE1="inf_field_Phone1",t.PHONE1="Phone1",t.PHONE="phone",t.MOBILE="mobile",t.CUSTOMER_VALID_PHONE="customer_valid_phone",t.TEL="tel",t))(P||{});var o=(t=>(t.SOURCE_LINK="sl",t.FB_AD_SET_ID="fbc_id",t.G_CAMPAIGN_ID="gc_id",t.G_ADGROUP_ID="h_ga_id",t.G_CLICK_ID="gclid",t.G_SPECIAL_CAMPAIGN="g_special_campaign",t.W_BRA_ID="wbraid",t.G_BRA_ID="gbraid",t.FB_CLICK_ID="fbclid",t.EMAIL_SOURCE="el",t.EMAIL_TRAFFIC="he",t.HYROS_AD_ID="h_ad_id",t.BING_AD_GROUP_ID="bng_id",t.BING_SPECIAL_CAMPAIGN="bng_special_campaign",t.HYROS_CAMPAIGN_ID="h_campaign_id",t.MANY_CHAT_PARAMS="mch",t.TT_AD_GROUP_ID="ttc_id",t.SN_AD_SET_ID="snc_id",t.LNK_CAMPAIGN_ID="lnk_id",t.TWT_ADGROUP_ID="twt_id",t.PNT_AD_GROUP_ID="pnt_id",t.TT_CLICK_ID="ttclid",t.RDT_AD_GROUP_ID="rdt_id",t.RDT_CLICK_ID="rdt_clid",t.PAYPAL_UNIQUE_CHECKOUT_ID="tx",t.HYROS_TRAFFIC_SOURCE="htrafficsource",t.HYROS_CATEGORY="hcategory",t.HYROS_GOAL="hgoal",t.HYROS_KEYWORD_ID="h_keyword_id",t.HYROS_KEYWORD="h_keyword",t.HYROS_PLACEMENT="h_placement",t))(o||{});function T(){return Object.values(o)}var R=(t=>(t.SOURCE_LINK="sl",t.FB_AD_SET_ID="fbc_id",t.G_CAMPAIGN_ID="gc_id",t.G_ADGROUP_ID="h_ga_id",t.G_SPECIAL_CAMPAIGN="CustomGSpecialCampaign",t.G_CLICK_ID="gclid",t.W_BRA_ID="wbraid",t.G_BRA_ID="gbraid",t.FB_CLICK_ID="fbclid",t.EMAIL_SOURCE="el",t.EMAIL_TRAFFIC="he",t.HYROS_AD_ID="h_ad_id",t.BING_AD_GROUP_ID="bng_id",t.BING_SPECIAL_CAMPAIGN="CustomBingSpecialCampaign",t.HYROS_CAMPAIGN_ID="h_campaign_id",t.MANY_CHAT_PARAMS="mch",t.TT_AD_GROUP_ID="ttc_id",t.SN_AD_SET_ID="snc_id",t.LNK_CAMPAIGN_ID="lnk_id",t.TWT_ADGROUP_ID="twt_id",t.PNT_AD_GROUP_ID="pnt_id",t.TT_CLICK_ID="ttclid",t.RDT_AD_GROUP_ID="rdt_id",t.RDT_CLICK_ID="rdt_clid",t.PAYPAL_UNIQUE_CHECKOUT_ID="tx",t.HYROS_TRAFFIC_SOURCE="htrafficsource",t.HYROS_CATEGORY="hcategory",t.HYROS_GOAL="hgoal",t.HYROS_KEYWORD_ID="h_keyword_id",t.HYROS_KEYWORD="h_keyword",t.HYROS_PLACEMENT="h_placement",t))(R||{});var y=(t=>(t.SOURCE_LINK_TAG="sourceLinkTag",t.FB_AD_SET_ID="fbAdSetId",t.BING_AD_GROUP_ID="bingAdGroupId",t.HYROS_CAMPAIGN_ID="hyrosCampaignId",t.GOOGLE_CAMPAIGN_ID="googleCampaignId",t.GOOGLE_ADGROUP_ID="googleAdgroupId",t.HYROS_AD_ID="hyrosAdId",t.TIKTOK_AD_GROUP_ID="tiktokAdGroupId",t.SNAPCHAT_AD_SET_ID="snapchatAdSetId",t.LINKEDIN_CAMPAIGN_ID="linkedinCampaignId",t.TWITTER_ADGROUP_ID="twitterAdgroupId",t.PINTEREST_AD_GROUP_ID="pinterestAdGroupId",t.WR_AD_ID="wrAdId",t.TW_AD_ID="twAdId",t))(y||{});var b=(t=>(t.GOOGLE="wickedsource",t.FACEBOOK="WickedSource",t))(b||{}),k=(t=>(t.GOOGLE="wickedid",t.FACEBOOK="WickedID",t))(k||{}),A=(t=>(t.SNAPCHAT="snapchat",t))(A||{}),S=(t=>(t.FACEBOOK="fbadid",t.GOOGLE="gadid",t.TIKTOK="ttadid",t.TIKTOK_OR_FACEBOOK="tw_adid",t))(S||{});var E=(t=>(t.EUIP="EUIP",t.BLCK="BLCK",t))(E||{});var c=(t=>(t.BURL="BURL",t.BIP="BIP",t))(c||{});function O(){return Object.values(c)}var D=(t=>(t.ADD_LEAD_TAG="addLeadTag",t.ADD_LEAD_PHONE="addLeadPhone",t.ADD_CONSENT="addConsent",t.ADD_LEAD_STAGE="addLeadStage",t))({}),U=(t=>(t.GRANTED="GRANTED",t.DENIED="DENIED",t.UNSPECIFIED="UNSPECIFIED",t))(U||{});{t=!0,new PerformanceObserver((t,e,n)=>{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,d=t.e_tid)})}catch(t){f.error("[snap_error]"+t.stack)}return r.apply(this,arguments)},[]);function G(t,e){n.push({name:t,Z:e})}if(G("Cookiebot",()=>"undefined"!=typeof Cookiebot&&Cookiebot.consent.marketing),G("CookiePro",()=>"undefined"!=typeof CookiePro&&CookiePro.GetConsent()),!t)return;let u={};u.Y={tt:"UNIFIED_TRACKING_SCRIPT",et:"REGULAR",nt:"a089d8eca1879283be4e66008fbe6fa2ad2e19f600612723e694a4a03f8fb21c",it:"\!tracking",at:12307,rt:false,ot:false,ct:false,st:false,ut:"",dt:false,lt:false,ht:"",ft:false,gt:false,_t:false,It:"null",vt:"null",Ct:!1,wt:{Pt:"__mh_tt_e",Tt:{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:""},Rt:{sourceLinkTag:"sl",previousUrl:"prev_url",refUrl:"ref_url",fbAdSetId:"fbc_id",bingAdGroupId:"bng_id",yt:"bng_special_campaign",hyrosCampaignId:"h_campaign_id",bt:"gc_id",kt:"h_ga_id",At:"g_special_campaign",fbClickId:"fb_cl_id",gClickId:"g_cl_id",wBraId:"w_bra_id",gBraId:"g_bra_id",St:"is_el",Et:"is_he",hyrosAdId:"h_ad_id",fbPixelId:"fbp_id",fbPixelEventId:"fbpe_id",sessionId:"usid",tag:"tag",userAgent:"u_agent",Ot:"hyros",Dt:"ttc_id",uniqueCheckoutId:"u_ch_id",Ut:"snc_id",Gt:"embed",dvfp:"fp",Ft:"lnk_id",ttClickId:"ttclid",rdtAdGroupId:"rdt_id",rdtClickId:"rdt_clid",Nt:"h_cart_id",Lt:"twt_id",Ht:"pnt_id",xt:"wr_source",Bt:"wr_ad_id",jt:"tw_ad_id",Mt:"tw_source",qt:"r_c_id",dniNumber:"dni_number",transactionId:"transactionId",clientDedupId:"clientDedupId",Jt:"h_traffic_source",Kt:"h_category",$t:"h_goal",Wt:"h_keyword_id",zt:"h_placement",Vt:"h_keyword"},Xt:[{name:"kartraReferenceIdLoaded",data:null}],Zt:{Yt:"",tiktokPixelId:"",Qt:"",te:"",transactionId:"",ee:"",clientDedupId:"",redditUUID:"",redditConversionId:""},ne:void 0,ie:!1},ae:{re:{oe:"https://app.hyros.com",ce:"https://12307.t.hyros.com/v1/lst",se:"https://lg.hyr.so/v1/lst"}},ue:{de:!1,email:null,le:null,St:!1,Et:!1,he:[],me:[],fe:[],pe:[],ge:[],_e:[],Ie:[],ve:"",Ce:!1,we:[],Pe:null,Te:null,Re:!0,reservedNumbers:[],noSwapNumbers:[],ye:!1,be:null},ke:{Ae:"",cartId:null},Se:"",Ee:{Oe:"custom=",De:"my-order-form",Ue:"https://www.digistore24.com/product/"}};var F="",N="";let o="",c="",s="",d="",l="null"!==u.Y.vt;u.Y.ae.endpoint={Ge:u.Y.ae.re.ce+"/pc",Fe:u.Y.ae.re.ce+"/gusid",Ne:u.Y.ae.re.se+"/session",Le:u.Y.ae.re.ce+"/error",He:u.Y.ae.re.ce+"/hte",xe:u.Y.ae.re.ce+"/pcu",Be:u.Y.ae.re.ce+"/../sv",je:u.Y.ae.re.ce+"/cap",Me:u.Y.ae.re.ce+"/cte"},u.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){u.qe(t,"[init] [UTC]")}},this.Je=function(t,e){var n=m.h("head")[0],i=document.createElement("script");i.src=t,i.type="text/javascript",i.onreadystatechange=e,i.onload=e,n.appendChild(i)},this.Ke=function(){return"SHOPIFY"===u.Y.et?this.$e():g.O()},this.$e=function(){let t=g.G();return t=t||this.We()},this.We=function(){var t=document.cookie.match("(^|;)\\s*hyrosemail\\s*=\\s*([^;]+)"),t=t&&0{var e=I.V(2);if(t.className)for(var n in e){var i=["complete_name","full_name"],a=[...t.classList].join("_").toLowerCase();if(r(i,a))return 1;if(a.split("_").includes(e[n]))return 1}return e.includes(t.id&&t.id.toLowerCase())||e.includes(t.placeholder&&t.placeholder.toLowerCase())})(n)?u.app.dn(n):(t=>{var e=I.V(1);if(t.className)for(var n in e){var i=["l_name","last_name"],a=[...t.classList].join("_").toLowerCase();if(r(i,a))return 1;if(a.split("_").includes(e[n]))return 1}return e.includes(t.id&&t.id.toLowerCase())||e.includes(t.placeholder&&t.placeholder.toLowerCase())})(n)?u.app.ln(n):(t=>{var e=I.V(0);if(t.className)for(var n in e){var i=["f_name","first_name"],a=[...t.classList].join("_").toLowerCase();if(r(i,a))return 1;if(a.split("_").includes(e[n]))return 1}return e.includes(t.id&&t.id.toLowerCase())||e.includes(t.placeholder&&t.placeholder.toLowerCase())})(n)?u.app.hn(n):i(n,"hyros-phone")?u.app.mn(n):i(n,"hyros-coupon")?u.app.fn(n):"hyros-phone"===n.id?u.app.mn(n):"text"!==n.type&&"email"!==n.type||(u.app.pn(n),u.app.gn(n))}},this.gn=function(e){u.Y.ue.he.includes(e)||(e.addEventListener("change",function(t){g.S(e.value)&&u.app.tn(e.value,u.Y.at,u.app.en())}),u.Y.ue.he.push(e))},this.mn=function(e){u.Y.ue.he.includes(e)||(u.app.Ve(e.value),e.addEventListener("change",function(t){u.app.Ve(e.value)}),u.Y.ue.he.push(e))},this.fn=function(e){u.Y.ue.he.includes(e)||(u.app._n(e.value),e.addEventListener("change",function(t){u.app._n(e.value)}),u.Y.ue.he.push(e))},this.hn=function(e){u.Y.ue.he.includes(e)||(u.app.Xe(e.value),e.addEventListener("change",function(t){u.app.Xe(e.value)}),u.Y.ue.he.push(e))},this.ln=function(e){u.Y.ue.he.includes(e)||(u.app.Ze(e.value),e.addEventListener("change",function(t){u.app.Ze(e.value)}),u.Y.ue.he.push(e))},this.dn=function(e){u.Y.ue.he.includes(e)||(u.app.Ye(e.value),e.addEventListener("change",function(t){u.app.Ye(e.value)}),u.Y.ue.he.push(e))};function e(t){t=p.getUrlParam(t);return"fb"===t?"facebook":"tiktok"===t||"facebook"===t||"google"===t?t:""}function a(t){try{return decodeURIComponent(t),1}catch(t){}}this.In=function(){var e=u.Y.wt.Xt;for(let t=0;tasync t=>{var t=null!=e?t.detail[e]:t.detail;f.info("[uCheckId] "+t),u.Y.wt.Tt.uniqueCheckoutId=t,u.Y.ne&&(u.Y.ie?await u.app.Ge(u.Y.wt.Tt.sessionId,()=>{}):(t={id:u.Y.ne.clickId,productId:u.Y.at,uniqueCheckoutId:u.Y.wt.Tt.uniqueCheckoutId,creationDate:u.Y.ne.creationDate},u.Y.ie=!0,u.app.vn(t)))})(e[t].data),!0)},this.Cn=function(){var t=u.Y.it?"&tag="+u.Y.it:"",e=u.Y.ot?"&spa=true":"",n=u.Y.ct?"&ignorePrevUrl=true":"",i="SHOPIFY"===u.Y.et?"&origin=SHOPIFY":"",a=u.Y.st?"&embed=true":"";return u.Y.ae.re.ce+"/universal-script?ph="+u.Y.nt+t+i+e+n+a},this.wn=function(){var e=[],n=document.getElementsByTagName("iframe");for(let t=0;t{u.Y.ke.Ae=t,await u.app.Ge(u.Y.wt.Tt.sessionId,e),t=this.Ln()}),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.pn=function(t){g.S(t.value)&&!u.Y.ue.he.includes(t)&&u.app.tn(t.value,u.Y.at,u.app.en())},this.Hn=function(t){return t?t.trim():""},this.xn=function(t){return t?t.trim().replace(/[^a-zA-Z]/g,""):""},this.Bn=function(t){var e;return t?1==(t=t.split(/[ +]+/)).length?t:(e=t.pop(),[t.join(" "),e]):[]},this.jn=()=>{var t=u.Y.ue.pe;return t.includes(u.Y.it)||t.push(u.Y.it),t},this.Mn=()=>u.Y.ue.ve,this.tn=function(t,e,n){u.Y.ue.me.includes(t)||(u.Y.ue.me.push(t),u.Y.ue.email=t,u.Y.wt.Tt.productId=e,u.Y.wt.Tt.origin=u.Y.et,u.Y.wt.Tt.cookieEnabled=navigator.cookieEnabled,u.Y.wt.Tt.sourceLinkTags=n,u.Y.wt.Tt.fbAdsetId=p.k("fbc_id","fbc_id",!0),u.Y.wt.Tt.bingAdGroupId=p.k("bng_id","bng_id",!0),u.Y.wt.Tt.yt=p.k("CustomBingSpecialCampaign","bng_special_campaign",!0),u.Y.wt.Tt.hyrosCampaignId=p.k("h_campaign_id","h_campaign_id",!0),u.Y.wt.Tt.googleAdId=p.k("gc_id","gc_id",!0,!0),u.Y.wt.Tt.kt=p.k("h_ga_id","h_ga_id",!0,!0),u.Y.wt.Tt.At=p.k("CustomGSpecialCampaign","g_special_campaign",!0),u.Y.wt.Tt.gClickId=p.k("gclid","gclid",!0),u.Y.wt.Tt.wBraId=p.k("wbraid","wbraid",!0),u.Y.wt.Tt.gBraId=p.k("gbraid","gbraid",!0),u.Y.wt.Tt.fbClickId=this.qn(p.k("fbclid","fbclid",!0)),u.Y.wt.Tt.refUrl=this.Ln(),u.Y.wt.Tt.prevUrl=p.P(),u.Y.wt.Tt.email=t,u.Y.wt.Tt.phoneNumbers=u.app.Jn()||u.Y.wt.Tt.phoneNumbers,u.Y.wt.Tt.tag=u.Y.it,u.Y.wt.Tt.tags=this.jn(),u.Y.wt.Tt.leadStage=this.Mn(),u.Y.wt.Tt.tiktokAdGroupId=p.k("ttc_id","ttc_id",!0),u.Y.wt.Tt.snapchatAdSetId=p.k("snc_id","snc_id",!0),u.Y.wt.Tt.twitterAdgroupId=p.k("twt_id","twt_id",!0),u.Y.wt.Tt.Kn=p.k("pnt_id","pnt_id",!0),u.Y.wt.Tt.linkedinCampaignId=p.k("lnk_id","lnk_id",!0),u.Y.wt.Tt.paypalUniqueCheckoutId=p.k("tx","tx",!0),u.Y.wt.Tt.ttClickId=p.k("ttclid","ttclid",!0),u.Y.wt.Tt.rdtClickId=p.k("rdt_clid","rdt_clid",!0),u.Y.wt.Tt.firstName=I.X(0)||u.Y.wt.Tt.firstName,u.Y.wt.Tt.lastName=I.X(1)||u.Y.wt.Tt.lastName,u.Y.wt.Tt.contact=u.app.$n()||u.Y.wt.Tt.contact,u.Y.wt.Tt.firstName&&u.Y.wt.Tt.lastName||u.app.Ye(I.X(2)),u.app.Wn(u.Y.ae.endpoint.He,"POST",u.app.getObjectAsJson(u.Y.wt.Tt),u.app.zn,u.app.Vn,!0))},this.Wn=function(t,e,n,i,a,r){let o;u.Y.lt?(o=u.app.Xn(u.Y.wt.Tt.sessionId,u.Y.at,u.Y.wt.Tt.leadGenSessionId),u.app.Zn(t,e,n,i,a,o,r)):(o=u.app.getSessionIdHeaders(u.Y.wt.Tt.sessionId,u.Y.at,u.Y.wt.Tt.leadGenSessionId),"POST"===e?u.app.requestPost(t,n,i,a,o,r):u.app.requestGet(t,i,a,o,r))},this.Yn=function(t,e){if(!u.Y.lt){if(t&&O().includes(t.body))return this.Qn(t.body),!0;if(t&&"error"===t.status)return u.app.ti(t.body,e),!0}return!1},this.ei=function(t){var e;t&&!u.Y.ue.fe.includes(t)&&(_.N(t)&&_.B(t)&&(e=_.H(t),u.Y.wt.Tt.phoneNumbers=[e]),e={id:u.Y.ne.clickId,productId:u.Y.at,phoneNumber:t,creationDate:u.Y.ne.creationDate},u.app.vn(e))},this.ni=function(t){t&&(t={id:u.Y.ne.clickId,productId:u.Y.at,couponCode:t,creationDate:u.Y.ne.creationDate},u.app.vn(t))},this.ii=function(t){t&&(u.Y.wt.Tt.firstName=t,t={id:u.Y.ne.clickId,productId:u.Y.at,firstName:t,creationDate:u.Y.ne.creationDate},u.app.vn(t))},this.ai=function(t){t&&(u.Y.wt.Tt.lastName=t,t={id:u.Y.ne.clickId,productId:u.Y.at,lastName:t,creationDate:u.Y.ne.creationDate},u.app.vn(t))},this.Ve=function(t){t=_.H(t),_.B(t)&&!u.Y.ue.fe.includes(t)&&u.Y.ne&&(u.app.ei(t),u.Y.ue.fe.push(t))},this.ri=function(t){u.Y.ue.pe.includes(t)||u.Y.ue.pe.push(t)},this._n=function(t){t=u.app.Hn(t),u.Y.ne&&(u.app.ni(t),u.Y.ue.ge.push(t))},this.Xe=function(t){t=u.app.xn(t);var e=u.Y.ne.clickId;u.Y.ue._e.includes(t+e)||u.Y.ne&&(u.app.ii(t),u.Y.ue._e.push(t+e))},this.Ze=function(t){t=u.app.xn(t);var e=u.Y.ne.clickId;u.Y.ue.Ie.includes(t+e)||u.Y.ne&&(u.app.ai(t),u.Y.ue.Ie.push(t+e))},this.Ye=function(t){t=u.app.Bn(t);0Object.values(y).includes(t)&&null!==e).length},this.Pi=function(t,e){t.sourceLinkTag=u.app.en(e),t.fbAdSetId=p.k("fbc_id","fbc_id",!0,e),t.bingAdGroupId=p.k("bng_id","bng_id",!0,e),t.yt=p.k("CustomBingSpecialCampaign","bng_special_campaign",!0,e),t.hyrosCampaignId=p.k("h_campaign_id","h_campaign_id",!0,e),t.googleCampaignId=p.k("gc_id","gc_id",!0,e),t.Ti=p.k("h_ga_id","h_ga_id",!0,e),t.At=p.k("CustomGSpecialCampaign","g_special_campaign",!0,e),t.fbClickId=p.k("fbclid","fbclid",!0,e),t.googleClickId=p.k("gclid","gclid",!0,e),t.wBraId=p.k("wbraid","wbraid",!0,e),t.gBraId=p.k("gbraid","gbraid",!0,e),t.hyrosAdId=p.k("h_ad_id","h_ad_id",!0,e),t.tiktokAdGroupId=p.k("ttc_id","ttc_id",!0,e),t.rdtAdGroupId=p.k("rdt_id","rdt_id",!0,e),t.rdtClickId=p.k("rdt_clid","rdt_clid",!0,e),t.snapchatAdSetId=p.k("snc_id","snc_id",!0,e),t.linkedinCampaignId=p.k("lnk_id","lnk_id",!0,e),t.Ri=p.k("ttclid","ttclid",!0,e),t.twitterAdgroupId=p.k("twt_id","twt_id",!0,e),t.Kn=p.k("pnt_id","pnt_id",!0,e),t.paypalUniqueCheckoutId=p.k("tx","tx",!0,e),t.Wt=(t=>{if(t)return(t=new RegExp("kwd-(\\d+)").exec(t))?t[1]:null})(p.k("h_keyword_id","h_keyword_id",!0,e)),t.Vt=p.k("h_keyword","h_keyword",!0,e),t.zt=p.k("h_placement","h_placement",!0,e),this.yi(t,e)},this.yi=function(t,e){var n={...t};delete n.sourceLinkTag,this.wi(n)||null===t.sourceLinkTag||(t.Jt=p.k("htrafficsource","htrafficsource",!1,e),t.Kt=p.k("hcategory","hcategory",!1,e),t.$t=p.k("hgoal","hgoal",!1,e))},this.bi=function(t){t.xt=this.ki(),t.Bt=this.Ai(t)},this.ki=function(){var t=this.Si();return t||this.Ei()},this.Si=function(){var e=Object.values(b);let n;for(let t=0;tT().some(function(t){return e.name.includes(t)}))).length&&(n.refUrl=encodeURI(t[0].name),this.Pi(n,n.refUrl)),n.fbClickId=this.qn(n.fbClickId),!this.wi(n)){var i=u.Y.wt.Rt,t=p.k("mch","mch");let e=[];null!==t&&(e=decodeURIComponent(t).split(w));for(let t=0;tp.k("he","he",!1),this.ji=()=>p.k("el","el",!1),this.Mi=async function(){var t=u.app.xi(),e=u.Y.wt.Rt,n=new URLSearchParams,i=u.Y.ae.endpoint.Ge,t=(t.fbAdSetId&&n.append(e.fbAdSetId,t.fbAdSetId),t.bingAdGroupId&&n.append(e.bingAdGroupId,t.bingAdGroupId),t.yt&&n.append(e.yt,t.yt),t.hyrosCampaignId&&n.append(e.hyrosCampaignId,t.hyrosCampaignId),t.googleCampaignId&&n.append(e.bt,t.googleCampaignId),t.Ti&&n.append(e.kt,t.Ti),t.At&&n.append(e.At,t.At),t.hyrosAdId&&(t.fbAdSetId||t.googleCampaignId||t.Ti||t.tiktokAdGroupId||t.Kn||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.St&&n.append(e.St,t.St),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.Dt,t.tiktokAdGroupId),t.uniqueCheckoutId&&n.append(e.uniqueCheckoutId,t.uniqueCheckoutId),t.snapchatAdSetId&&n.append(e.Ut,t.snapchatAdSetId),t.twitterAdgroupId&&n.append(e.Lt,t.twitterAdgroupId),t.Kn&&n.append(e.Ht,t.Kn),t.Gt&&n.append(e.Gt,t.Gt),t.linkedinCampaignId&&n.append(e.Ft,t.linkedinCampaignId),t.Ri&&n.append(e.ttClickId,t.Ri),t.rdtAdGroupId&&n.append(e.rdtAdGroupId,t.rdtAdGroupId),t.rdtClickId&&n.append(e.rdtClickId,t.rdtClickId),t.xt&&n.append(e.xt,t.xt),t.Bt&&n.append(e.Bt,t.Bt),t.jt&&n.append(e.jt,t.jt),t.Mt&&n.append(e.Mt,t.Mt),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.Jt&&n.append(e.Jt,t.Jt),t.Kt&&n.append(e.Kt,t.Kt),t.$t&&n.append(e.$t,t.$t),t.Vt&&n.append(e.Vt,t.Vt),t.Wt&&n.append(e.Wt,t.Wt),t.zt&&n.append(e.zt,t.zt),u.Y.ue.Te&&n.append(e.dniNumber,u.Y.ue.Te),await u.app.Ii());return null!=t&&n.append(e.dvfp,t),u.Y.ke.cartId?n.append(e.Nt,u.Y.ke.cartId):(t=u.app.Rn())&&n.append(e.Nt,t),this.Bi()&&this.ji()&&n.append(e.Et,!0),i+"?"+n.toString()},this.fi=function(t){var e=m.h("button"),n=m.h("a");this.qi(t,e,"button"),this.qi(t,n,"tag"),setInterval(this.Ji(t),900)},this.qi=function(t,e,n){for(var i in e)try{var a,r=e[i].href;void 0!==r&&r.includes(u.Y.Ee.Ue)&&!r.includes(u.Y.Ee.Oe)&&(a=r.includes("?")?"&":"?",e[i].href=r+a+u.Y.Ee.Oe+t,f.info("[hyros-url] A "+n+", new href: "+e[i].href))}catch(t){f.warn("[hyros-url] A "+n+", error: "+t)}},this.Ji=function(t){var e,n=m.h(u.Y.Ee.De);if(null===n||0===n.length)f.info("[hyros-url] iframe not found");else for(var i in n)try{void 0!==(url=n[i]._iframe.src)&&url.includes(u.Y.Ee.Ue)&&!url.includes(u.Y.Ee.Oe)&&(e=url.includes("?")?"&":"?",n[i]._iframe.src=url+e+u.Y.Ee.Oe+t,f.info("[hyros-url] A iframe, new href: "+n[i]._iframe.src))}catch(t){f.warn("[hyros-url] A iframe error, "+t)}},this.Ki=function(e){var t;if(e.getAttribute("href")&&e.getAttribute("href").includes("tel:")&&e.setAttribute("href","tel:"+u.Y.ue.Te),0===e.childElementCount)e.innerHTML&&_.M(e.innerHTML)&&(t=_.J(u.Y.ue.Te,e.innerHTML))&&(e.innerHTML=t);else for(let t=0;tn.delete(t)),Object.values(R).forEach(t=>n.delete(t)),t+((n.toString()&&"?")+decodeURIComponent(n.toString()))},this.na=function(){p.R();try{h.deleteParams&&history.replaceState({},document.title,this.ea())}catch(t){h.deleteParams=!1,f.error("E_P: "+t)}},this.ia=()=>{var t,e;null!=u.Y.ue.be&&({aa:t,value:e}=u.Y.ue.be,this.ra(t,e),u.Y.ue.be=null,f.info("[CAP] Cached event sent"))},this.Ge=async function(t,e){t=await this.Mi(t);this.Wn(t,"GET",{},function(t){u.app.Yn(t,"pc")||(f.info("[pc]"),u.Y.ne=t,u.app.oa().then(),u.app.ca().then(),u.app.sa().then(),u.app.ua().then(),u.app.ta(!0),u.app.ia(),e())},function(t){u.app.ti(t,"pc"),u.app.ta(!1),e()},!0),u.Y.lt&&u.app.ta(void 0)},this.yn=function(t){t=("; "+document.cookie).split("; "+t+"=");if(2===t.length)return t.pop().split(";").shift()},this.da=function(){var e={},n=window.location.search.substring(1).split("&");for(let t=0;t{setTimeout(t,e)})},this.Ca=async function(){c?(u.Y.wt.Zt.te=p.getUrlParam("eid",!1,c),u.Y.wt.Zt.ee=p.getUrlParam("fbp",!1,c),f.info("[fb_ev_id]: "+u.Y.wt.Zt.te),f.info("[_fbp]: "+u.Y.wt.Zt.ee)):(await u.app.Ra(1e3),await u.app.Ca())},this.wa=async function(){0t.name.includes("tiktok")&&t.name.includes("/pixel")&&t.name.includes("/pixel")&&!t.name.includes("/act")).length&&""!==F?(u.Y.wt.Zt.Qt=F,u.Y.wt.Zt.tiktokPixelId=N,f.info("[tt_ev_id]: "+u.Y.wt.Zt.Qt),f.info("[tt_p_id]: "+u.Y.wt.Zt.tiktokPixelId)):(await u.app.Ra(1e3),await u.app.wa())},this.Ta=async function(){s?(u.Y.wt.Zt.clientDedupId=s,u.Y.wt.Zt.transactionId=d,f.info("[snap_cd_id]: "+u.Y.wt.Zt.clientDedupId),f.info("[snap_t_id]: "+u.Y.wt.Zt.transactionId)):(await u.app.Ra(1e3),await u.app.Ta())},this.va=function(t,e,n){t=u.app.getSubstringBetween(t,"snaptr('track',",")");let i=u.app.getSubstringBetween(t,e,",");return""!==(i=(i=""===i?u.app.getSubstringBetween(t,e,"}"):i).toString().replace(/'/g,""))&&(i=i.trim(),f.info("[snap][get_"+n+"]: "+i)),i},this.ya=function(t,e){return"0000000000000000000000000000000000000000000000000000000000000001"===t&&(f.error("[reddit] Default placeholders are being used. Invalid param: "+e),!0)},this.Pa=async function(){var t,e;o?(t=p.getUrlParam(e="external_id",!1,o),u.app.ya(t,e)||(u.Y.wt.Zt.transactionId=t),f.info("[rdt_t_id]: "+u.Y.wt.Zt.transactionId),e=p.getUrlParam("uuid",!1,o),u.app.ya(e,"uuid")||(u.Y.wt.Zt.redditUUID=e),f.info("[rdt_uuid]: "+u.Y.wt.Zt.redditUUID),e=p.getUrlParam(t="m.conversionId",!1,o),u.app.ya(e,t)||(u.Y.wt.Zt.redditConversionId=e),f.info("[rdt_conv_id]: "+u.Y.wt.Zt.redditConversionId)):(await u.app.Ra(1e3),await u.app.Pa())},this.qn=function(e){var n=C;if(null!=e)for(let t=0;t{try{var t;u.Y.dt&&((t=document.createElement("script")).text=u.Y.Se,document.head.appendChild(t),this.Ea(),f.info("[fp] init"))}catch(t){f.error("[fp] init: "+t.stack),u.Y.dt=!1}},this.Oa=function(){var t;u.Y.gt&&(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});var e=t.lineItems.filter(function(t){return n.indexOf(t.id)<0});0!==e.length&&(e=e[0],u.app.Da(e.finalLinePrice,t.currency))}),window.Shopify.wasPostPurchasePageSeen||(t=window.Shopify.order,u.app.Da(t.totalPrice,t.currency))):f.warn("[NTPF]"))},this.Da=function(t,e){window.fbq&&(fbq("track","Purchase",{value:t,currency:e},{Ua:Math.random().toString(36).substr(2,15)}),f.info("[fbq]")),window.gtag&&(gtag("event","Purchase",{value:t,currency:e}),f.info("[gtag]"))},this.Ea=()=>{FPJS?u.Y.ue.Pe=FPJS.load():(f.warn("[fp] unv"),setTimeout(this.Ea,100))},this.Ii=async()=>{try{var t;return u.Y.dt?0{try{if(u.Y.dt){let e=u.Y.wt.Tt.dvfp;u.Y.wt.Tt.deviceFingerprint="",u.app.Ii().then(t=>{null!=t&&t!==e&&(u.Y.wt.Tt.dvfp=t,t={id:u.Y.ne.clickId,productId:u.Y.at,creationDate:u.Y.ne.creationDate,dvfp:t},u.app.vn(t))})}}catch(t){f.error("[fp2] "+t.stack)}},this.vn=function(t){u.app.requestPut(u.Y.ae.endpoint.xe,u.app.getObjectAsJson(t),u.app.si,u.app.di,u.app.getSessionIdHeaders(u.Y.wt.Tt.sessionId,u.Y.at,u.Y.wt.Tt.leadGenSessionId),!0)},this.Be=function(){var t=p.getUrlParam("hpp-pid"),e=u.Y.at,n=window.location.origin,i=p.getUrlParam("hpp-ver-code");t&&u.app.requestPut(u.Y.ae.endpoint.Be+"/verify",u.app.getObjectAsJson({domain:n,verificationCode:i,productId:t,scriptProductId:e}),u.app.ui,u.app.li,u.app.getSessionIdHeaders(u.Y.wt.Tt.sessionId,u.Y.at),!0)},this.Ga=function(t){t.forEach(t=>{"consent"!==t[0]||"update"!==t[1]&&"default"!==t[1]||u.Y.Ct||(t="granted"===t[2].ad_user_data&&"granted"===t[2].ad_personalization?"GRANTED":"DENIED",u.app.updateConsentValue(t))})},this.checkAllConsents=function(){let e=!1;n.forEach(t=>{t.Z()&&(e=!0,f.info("Cookie consent given through "+t.name),u.app.updateConsentValue("GRANTED"))}),e||this.Ga(window.dataLayer||[])},this.updateConsentValue=function(t){t!==u.Y.wt.Tt.adOptimizationConsent&&(u.Y.wt.Tt.adOptimizationConsent=t,this.Fa())},this.Na=function(){u.Y.ue.ve="",u.Y.wt.Tt.adOptimizationConsent="UNSPECIFIED",u.Y.wt.Tt.leadStage=""},this.La=function(){window.dataLayer=window.dataLayer||[];let e=window.dataLayer.push;window.dataLayer.push=function(){var t=[].slice.call(arguments,0);return u.app.Ga(t),e.apply(window.dataLayer,t)}},this.Ha=function(t){console.error("[CAP]: "+t.message)},this.xa=(t,e)=>JSON.stringify({type:t,value:Array.isArray(e)?[...e]:[e]}),this.Ba=(e,n)=>Object.keys(e).find(t=>e[t]===n),this.ra=function(t,e){u.app.Zn(u.Y.ae.endpoint.je,"POST",this.xa(t,e),this.Na,this.Ha,{"Session-ID":u.Y.wt.Tt.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("addLeadTag",t)},addLeadPhone:function(t){e("addLeadPhone",t)},addLeadConsent:function(t){e("addConsent",t)},addLeadStage:function(t){e("addLeadStage",t)}}})(),this.ja=(t,e)=>window.addEventListener(t,e),this.Fn=()=>{this.ja("leadUpdate",this.Ma)},this.Ma=t=>{var t=t.detail,e=t.value;switch(t.type){case"addLeadTag":this.ri(e);break;case"addLeadPhone":this.Ve(e);break;case"addConsent":this.oi(e);break;case"addLeadStage":this.ci(e);break;default:return void f.error("[LU_UT]")}this.Fa(t.type,e)},this.Fa=(t,e)=>{let n=u.Y.ue.email||u.Y.ue.le;n&&g.S(n)?u.Y.wt.Tt.sessionId?(u.Y.ue.me.includes(n)&&(u.Y.ue.me=u.Y.ue.me.filter(t=>t!==n)),u.app.tn(n,u.Y.at,u.app.en())):u.Y.ue.ye=!0:t&&(t=this.Ba(D,t),u.Y.wt.Tt.sessionId?u.app.ra(t,e):(u.Y.ue.be={aa:t,value:e},f.info("[CAP] Event cached")))}},u.qe=function(t,e){var n=new URLSearchParams,i=(n.append("script",u.Y.tt),new XMLHttpRequest);i.open("POST",u.Y.ae.endpoint.Le+"?"+n),i.setRequestHeader("Product-ID",u.Y.at),""!=u.Y.wt.Tt.sessionId&&i.setRequestHeader("Session-ID",u.Y.wt.Tt.sessionId),i.send(e+" - "+(t.stack||t))},u.app.init(function(){u.app.na(),u.app.Sa(),u.app.Oa(),u.app.In(),u.app.Nn(u.app.ma),u.app.Tn(),u.app.Gn(),u.app.Gt(),u.app.Ia(),u.app.bn(),u.app._i(u.app.pa),u.app.checkAllConsents(),u.app.La(),u.app.Be()})}})();