!function(){var e={781:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkGppCaliforniaConsent=void 0;var o=n(3230);t.checkGppCaliforniaConsent=e=>{const t={sectionId:"",consent:!1};return e&&(t.consent=!(1!==e.SaleOptOutNotice||1!==e.SharingOptOutNotice||0!==e.SensitiveDataLimitUseNotice&&1!==e.SensitiveDataLimitUseNotice||2!==e.SaleOptOut||2!==e.SharingOptOut||"[0,0,0,0,0,0,0,0,0]"!==JSON.stringify(e.SensitiveDataProcessing)||"[0,0]"!==JSON.stringify(e.KnownChildSensitiveDataConsents)||0!==e.PersonalDataConsents&&2!==e.PersonalDataConsents||!1!=!!e.Gpc),t.sectionId=o.GPP_SECTION_IDS.CALIFORNIA),t}},2988:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkGppColoradoConsent=void 0;var o=n(3230);t.checkGppColoradoConsent=e=>{const t={sectionId:"",consent:!1};return e&&(t.consent=1===e.SharingNotice&&1===e.SaleOptOutNotice&&1===e.TargetedAdvertisingOptOutNotice&&2===e.SaleOptOut&&2===e.TargetedAdvertisingOptOut&&"[0,0,0,0,0,0,0]"===JSON.stringify(e.SensitiveDataProcessing)&&0===e.KnownChildSensitiveDataConsents&&!1==!!e.Gpc,t.sectionId=o.GPP_SECTION_IDS.COLORADO),t}},6883:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkGppConnecticutConsent=void 0;var o=n(3230);t.checkGppConnecticutConsent=e=>{const t={sectionId:"",consent:!1};return e&&(t.consent=1===e.SharingNotice&&1===e.SaleOptOutNotice&&1===e.TargetedAdvertisingOptOutNotice&&2===e.SaleOptOut&&2===e.TargetedAdvertisingOptOut&&"[0,0,0,0,0,0,0,0]"===JSON.stringify(e.SensitiveDataProcessing)&&"[0,0,0]"===JSON.stringify(e.KnownChildSensitiveDataConsents)&&!1==!!e.Gpc,t.sectionId=o.GPP_SECTION_IDS.CONNECTICUT),t}},5991:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConsentCheck=void 0;var o=n(653),r=n(781),i=n(6403),s=n(2988),c=n(2209),a=n(6883),u=n(3442),l=n(3230);t.ConsentCheck=class{constructor(e,t){this.sectionId=t,this.consent=this.handleSectionData(e)}handleSectionData=e=>e&&e.length>0?e.reduce(((e,t)=>Object.assign(e,t))):e.constructor===Object?e:null;checkGppSectionConsent=()=>{let e={sectionId:"",consent:!1};return this.sectionId&&(o.log.debug(`Checking GPP for ${l.GPP_STATE_NAMES[this.sectionId]}: ${JSON.stringify(this.consent)}`),this.sectionId===l.API_PREFIX_STRING.CALIFORNIA?e=(0,r.checkGppCaliforniaConsent)(this.consent):this.sectionId===l.API_PREFIX_STRING.COLORADO?e=(0,s.checkGppColoradoConsent)(this.consent):this.sectionId===l.API_PREFIX_STRING.UTAH?e=(0,c.checkGppUtahConsent)(this.consent):this.sectionId===l.API_PREFIX_STRING.CONNECTICUT?e=(0,a.checkGppConnecticutConsent)(this.consent):this.sectionId===l.API_PREFIX_STRING.VIRGINIA&&(e=(0,i.checkGppVirginiaConsent)(this.consent))),e.consent||e.sectionId||(e=(0,u.checkGppNationalConsent)(this.consent)),e}}},3230:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.US_STATES=t.GPP_STATE_NAMES=t.GPP_SECTION_IDS=t.API_PREFIX_STRING=void 0;t.GPP_SECTION_IDS={US_NATIONAL:"7",CALIFORNIA:"8",VIRGINIA:"9",COLORADO:"10",UTAH:"11",CONNECTICUT:"12"},t.US_STATES={CALIFORNIA:"CA",VIRGINIA:"VA",COLORADO:"CO",UTAH:"UT",CONNECTICUT:"CT"},t.API_PREFIX_STRING={US_NATIONAL:"usnat",CALIFORNIA:"usca",VIRGINIA:"usva",COLORADO:"usco",UTAH:"usut",CONNECTICUT:"usct"},t.GPP_STATE_NAMES={usnat:"US National",usca:"California",usva:"Virginia",usco:"Colorado",usut:"Utah",usct:"Connecticut"}},6717:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ConsentCheck",{enumerable:!0,get:function(){return o.ConsentCheck}});var o=n(5991)},3442:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkGppNationalConsent=void 0;var o=n(3230);t.checkGppNationalConsent=e=>{const t={sectionId:"",consent:!1};return e&&(t.consent=!(1!==e.SharingNotice||1!==e.SaleOptOutNotice||1!==e.SharingOptOutNotice||1!==e.TargetedAdvertisingOptOutNotice||0!==e.SensitiveDataProcessingOptOutNotice&&1!==e.SensitiveDataProcessingOptOutNotice||0!==e.SensitiveDataLimitUseNotice&&1!==e.SensitiveDataLimitUseNotice||2!==e.SaleOptOut||2!==e.SharingOptOut||2!==e.TargetedAdvertisingOptOut||"[0,0,0,0,0,0,0,0,0,0,0,0]"!==JSON.stringify(e.SensitiveDataProcessing)||"[0,0]"!==JSON.stringify(e.KnownChildSensitiveDataConsents)||0!==e.PersonalDataConsents&&2!==e.PersonalDataConsents||!1!=!!e.Gpc),t.sectionId=o.GPP_SECTION_IDS.US_NATIONAL),t}},2209:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkGppUtahConsent=void 0;var o=n(3230);t.checkGppUtahConsent=e=>{const t={sectionId:"",consent:!1};return e&&(t.consent=1===e.SharingNotice&&1===e.SaleOptOutNotice&&1===e.TargetedAdvertisingOptOutNotice&&(0===e.SensitiveDataProcessingOptOutNotice||1===e.SensitiveDataProcessingOptOutNotice)&&2===e.SaleOptOut&&2===e.TargetedAdvertisingOptOut&&"[0,0,0,0,0,0,0,0]"===JSON.stringify(e.SensitiveDataProcessing)&&0===e.KnownChildSensitiveDataConsents&&!1==!!e.Gpc,t.sectionId=o.GPP_SECTION_IDS.UTAH),t}},6403:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkGppVirginiaConsent=void 0;var o=n(3230);t.checkGppVirginiaConsent=e=>{const t={sectionId:"",consent:!1};return e&&(t.consent=1===e.SharingNotice&&1===e.SaleOptOutNotice&&1===e.TargetedAdvertisingOptOutNotice&&2===e.SaleOptOut&&2===e.TargetedAdvertisingOptOut&&"[0,0,0,0,0,0,0,0]"===JSON.stringify(e.SensitiveDataProcessing)&&0===e.KnownChildSensitiveDataConsents&&!1==!!e.Gpc,t.sectionId=o.GPP_SECTION_IDS.VIRGINIA),t}},9782:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGppConsentObject=void 0;var o=n(5483);t.getGppConsentObject=(e,t)=>{new o.GppVersion(t,e).awaitGppLibrary()}},6984:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GPP_VERSIONS=t.GPP_SECTIONS=t.GPP_APIS_PREFIXES=t.API_VARIATIONS=void 0;t.GPP_VERSIONS={v1_0:"1.0",v1_0_lr:"1.0_lr",v1_1:"1.1"},t.GPP_SECTIONS={CA:"usca",VA:"usva",CO:"usco",UT:"usut",CT:"usct",US_NATIONAL:"usnat"},t.GPP_APIS_PREFIXES=["usnat","usca","usva","usco","usut","usct","7:usnat","8:usca","9:usva","10:usco","11:usut","12:usct"],t.API_VARIATIONS={CA:["usca","8:usca"],VA:["usva","9:usva"],CO:["usco","10:usco"],UT:["usut","11:usut"],CT:["usct","12:usct"],US_NATIONAL:["usnat","7:usnat"]}},5271:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GppVersion=void 0;var o=n(653),r=n(6717),i=n(6984),s=n(4505);t.GppVersion=class{constructor(e,t=null){this.moduleName=e,this.usStateCode=t,this.flag_gppLibraryFullyLoaded=!1,this.flag_gppEventListenerExists=!1,this.flag_gppEventListenerRegistered=!1}setGppLibraryFullyLoadedFlag(e){this.flag_gppLibraryFullyLoaded=e}setGppEventListenerExists(e){this.flag_gppEventListenerExists=e}setGppEventListenerRegistered(e){this.flag_gppEventListenerRegistered=e}awaitGppLibrary(){const e={cmpType:"gpp",consentString:"",consent:null,sectionId:""};let t=0;const n=setInterval((()=>{++t,window.__gpp||this.flag_gppLibraryFullyLoaded||10!==t||(clearInterval(n),(0,s.dispatchCustomEvent)(`${this.moduleName}CcpaFallbackEvent`,null)),window.__gpp&&!this.flag_gppEventListenerExists&&(clearInterval(n),window.__gpp("addEventListener",(t=>this.gppEventListenerCallback(t,e))),this.setGppEventListenerExists(!0),this.flag_gppEventListenerRegistered||(0,s.dispatchCustomEvent)(`${this.moduleName}RecheckAtsConsentEvent`,e))}),200)}gppEventListenerCallback(e,t){this.setGppEventListenerRegistered(!0);const{eventName:n,pingData:o}=e;if(["cmpStatus","sectionChange","listenerRegistered"].includes(n)&&o&&"loaded"===o.cmpStatus){const{gppVersion:e,supportedAPIs:r}=o;if(this.isApiSupported(r)){const n=this.getSupportedSectionPrefix(this.usStateCode,r),i=this.getVersionData(e,n,o);Object.assign(t,i),i||(0,s.dispatchCustomEvent)(`${this.moduleName}CcpaFallbackEvent`,null),i&&!this.flag_gppLibraryFullyLoaded&&(this.setGppLibraryFullyLoadedFlag(!0),(0,s.dispatchCustomEvent)(`${this.moduleName}RecheckAtsConsentEvent`,t))}else(0,s.dispatchCustomEvent)(`${this.moduleName}CcpaFallbackEvent`,null);"sectionChange"===n&&(Object.assign(t,{...t,isUserInteraction:!0}),(0,s.dispatchCustomEvent)(`${this.moduleName}UserActionCompleteEvent`,t))}}isApiSupported=e=>e.some((e=>i.GPP_APIS_PREFIXES.includes(e)));getSectionPrefix=e=>i.GPP_SECTIONS[e]?i.GPP_SECTIONS[e]:i.GPP_SECTIONS.US_NATIONAL;getSectionPrefixVariations=e=>i.API_VARIATIONS[e]?i.API_VARIATIONS[e]:i.API_VARIATIONS.US_NATIONAL;getSupportedSectionPrefix=(e,t)=>{if(!e)return o.log.debug("Could not get US state."),i.GPP_SECTIONS.US_NATIONAL;o.log.debug(`Checking GPP for ${i.GPP_SECTIONS[e]?i.GPP_SECTIONS[e]:i.GPP_SECTIONS.US_NATIONAL} section(user's location: ${e})`);const n=this.getSectionPrefix(e),r=this.getSectionPrefixVariations(e),s=t.some((e=>r.includes(e)));return s||o.log.debug(`CMP does not support ${i.GPP_SECTIONS[this.usStateCode]?i.GPP_SECTIONS[this.usStateCode]:this.usStateCode} API. Checking GPP for US National.`),s?n:i.GPP_SECTIONS.US_NATIONAL};getVersionData(e,t,n){let s,c="";if(e===i.GPP_VERSIONS.v1_0){o.log.debug("Gpp getGPPData return immediately value implementation");const e=window.__gpp("getGPPData");c=e.gppString;const n=window.__gpp("getSection",null,t);s=[n]}e===i.GPP_VERSIONS.v1_0_lr&&(o.log.debug("Gpp getGPPData callback implementation"),window.__gpp("getGPPData",(e=>{c=e.gppString})),window.__gpp("getSection",(e=>{s=e}),t)),e===i.GPP_VERSIONS.v1_1&&(o.log.debug("Gpp getSection callback implementation"),c=n.gppString,window.__gpp("getSection",(e=>{s=e}),t));let a={consentString:c,consent:null,sectionId:""};if(s){o.log.debug(`[GPP] Event listener invoked with ${JSON.stringify(s)}`);const e=new r.ConsentCheck(s,t),{consent:n,sectionId:i}=e.checkGppSectionConsent();a.consent=n,a.sectionId=i}else a=null,o.log.debug(`[GPP] Section "${t}" is not supported by CMP. Event listener invoked with ${JSON.stringify(s)}`);return a}}},5483:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GppVersion",{enumerable:!0,get:function(){return o.GppVersion}});var o=n(5271)},7249:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gppConsentCheck=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var c=i?Object.getOwnPropertyDescriptor(e,s):null;c&&(c.get||c.set)?Object.defineProperty(o,s,c):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(9782));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}t.gppConsentCheck=o},2525:function(e,t,n){"use strict";Object.defineProperty(t,"mF",{enumerable:!0,get:function(){return r.gppConsentCheck}}),Object.defineProperty(t,"ff",{enumerable:!0,get:function(){return o.tcfConsentCheck}});var o=n(3166),r=n(7249)},4351:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getConsent=void 0;var o=n(653),r=n(4738),i=n(4037);t.getConsent=e=>{const t=(e=>{try{return new r.TCString(e).getCoreSegmentData()}catch(e){o.log.error(`Failed to decode consent string. ${e}`)}})(e);return!!t&&((n=t)&&n.vendorsConsent.includes(i.LIVERAMP_VENDOR_ID)&&i.LIVERAMP_PURPOSE_IDS.every((e=>n.purposesConsent.includes(e))));var n}},4037:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LIVERAMP_VENDOR_ID=t.LIVERAMP_PURPOSE_IDS=t.GDPR_COUNTRIES=void 0;t.LIVERAMP_VENDOR_ID=97,t.LIVERAMP_PURPOSE_IDS=[1,2,3,4,5,6,7,8,9,10],t.GDPR_COUNTRIES=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","GB"]},3166:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tcfConsentCheck=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var c=i?Object.getOwnPropertyDescriptor(e,s):null;c&&(c.get||c.set)?Object.defineProperty(o,s,c):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(5544));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}t.tcfConsentCheck=o},5544:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTcfConsentObject=t.gdprApplies=void 0;var o=n(4351),r=n(4037),i=n(4505);const s=(e,t,n)=>{window.__tcfapi("addEventListener",2,((r,s)=>{if(s&&("tcloaded"===r.eventStatus||"useractioncomplete"===r.eventStatus)){const s=(0,o.getConsent)(r.tcString);if(e.consent=s,e.isUserInteraction="useractioncomplete"===r.eventStatus,e.consentString=r.tcString,e.isUserInteraction&&!t)return void(0,i.dispatchCustomEvent)(`${n}UserActionCompleteEvent`,e);(0,i.dispatchCustomEvent)(`${n}RecheckAtsConsentEvent`,e),t=!1}})),t&&(t=!1,(0,i.dispatchCustomEvent)(`${n}RecheckAtsConsentEvent`,e))};t.getTcfConsentObject=(e,t)=>{let n=0;const o={cmpType:"gdpr",consent:null,isUserInteraction:!1,consentString:null};if(window.__tcfapi)s(o,e,t);else{(0,i.dispatchCustomEvent)(`${t}RecheckAtsConsentEvent`,o);const r=setInterval((()=>{++n,window.__tcfapi?(clearInterval(r),s(o,e,t)):10===n&&(clearInterval(r),(0,i.dispatchCustomEvent)(`${t}RecheckAtsConsentEvent`,o))}),200)}};t.gdprApplies=e=>r.GDPR_COUNTRIES.includes(e)},8036:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeFromBase64=function(e,t){const n=function(e){let t=e;for(;t.length%4!=0;)t+="=";t=t.replace(/-/g,"+").replace(/_/g,"/");const n=r.default.decode(t);let o="";for(let e=0;e{const{name:c,numBits:f}=n,{fieldValue:g,newPosition:m}=function(e,t,n,o){const{type:c,numBits:f}=o,g="function"==typeof f?f(t):f;switch(c){case"int":return{fieldValue:r(e,n,g)};case"bool":return{fieldValue:s(e,n)};case"date":return{fieldValue:i(e,n,g)};case"list":return{fieldValue:l(e,n,g)};case"textcode":return{fieldValue:a(e,n,g)};case"range":return u(e,n);case"minlist":return d(e,n,g);case"array":return p(e,n,g,o);default:throw new Error(`TCString - Unknown field type ${c} for decoding`)}}(e,t,o,n);return void 0!==g&&(t[c]=g),void 0!==m?o=m:"number"==typeof f&&(o+=f),t}),{});return{decodedObject:c,newPosition:o}}function p(e,t,n,o){let i=t;const s=[],c=r(e,i,n);i+=n;for(let t=0;t0&&(this.core=this.setCoreSegmentString(t[0])),t.length>2)throw new Error("Unknown segment type in consent string")}}setCoreSegmentString=e=>(0,r.decodeFromBase64)(e,i.default.core);getCoreSegmentData=()=>this.core?{...this.core}:null}},5588:function(e,t){"use strict";function n(e,t="0"){let n="";for(let o=0;o{e>t&&(t=e)})),t},t.padLeft=function(e,t){return n(Math.max(0,t))+e},t.padRight=function(e,t){return e+n(Math.max(0,t))}},4505:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dispatchCustomEvent=void 0;t.dispatchCustomEvent=async(e,t)=>{const n=new CustomEvent(e,{detail:t});window.dispatchEvent(n)}},9937:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(8309);function r(e,t){const n={...e,...t};return Object.keys(e).forEach((i=>{e[i]&&"object"==typeof e[i]&&((0,o.isObject)(e[i])&&t[i]?n[i]=r(e[i],t[i]):!t[i]||t[i].constructor!==String&&t[i].constructor!==Array?e[i].constructor===String||e[i].constructor===Array?n[i]=e[i]:n[i]={...e[i],...t[i]}:n[i]=t[i])})),n}t.default=new class{constructor(){this.validKeys={}}update=(e,t)=>{if(e&&"object"==typeof e){t&&(this.validKeys=Object.keys(e));const{validUpdates:n}=Object.keys(e).reduce(((t,n)=>(this.validKeys.indexOf(n)>-1&&(t.validUpdates={...t.validUpdates,[n]:e[n]}),t)),{validUpdates:{}}),o=r(this,n);Object.assign(this,o)}}}},1469:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cmpUtils=t.cmpStorage=void 0,Object.defineProperty(t,"config",{enumerable:!0,get:function(){return r.default}}),t.locationHandler=void 0,Object.defineProperty(t,"log",{enumerable:!0,get:function(){return i.default}}),t.portal=void 0,Object.defineProperty(t,"setLogger",{enumerable:!0,get:function(){return i.setLogger}});var o,r=(o=n(9937))&&o.__esModule?o:{default:o},i=d(n(8237)),s=d(n(5716));t.portal=s;var c=d(n(5269));t.cmpStorage=c;var a=d(n(8309));t.cmpUtils=a;var u=d(n(4447));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function d(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=e[i]}return o.default=e,n&&n.set(e,o),o}t.locationHandler=u},4447:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateGeoTargeting=t.isLocationUs=t.isLocationSupported=t.getLocation=void 0;var o=c(n(9937)),r=c(n(8237)),i=n(8309),s=n(5269);function c(e){return e&&e.__esModule?e:{default:e}}t.updateGeoTargeting=e=>{const t=document.getElementById("liveramp-cmp-wrapper");if(t){const{geoTargeting:n}=t.dataset;if(n)try{e.geoTargeting=JSON.parse(n),r.default.debug("Updated geo targeting: ",n)}catch(e){r.default.error("Unable to parse geo targeting: ",e)}}return e};t.getLocation=async()=>{let e=await(0,s.readGeoLocation)();if(e=(e=>{const t=(0,i.getUrlParam)("lrcountry"),n=(0,i.getUrlParam)("lrregion");return e?(t&&(e.country=t),n&&(e.region=n),e):{country:t,region:n}})(e),e&&e.country)return e;try{const e=await fetch(o.default.geoTargetingUrl,{headers:{Accept:"application/json","Content-Type":"application/json"}});if(e){const t=await e.json();if(t&&t.country)return(0,s.writeGeoLocation)(JSON.stringify(t),!0),t}}catch(e){return r.default.warn("Location Data Unavailable. Some features may be limited. Please allow location services for full functionality.",e),null}};const a=e=>"US"===e;t.isLocationUs=a;t.isLocationSupported=(e,t)=>{let n=!1;if(t.allCountries)n=!0;else if(e){const o=t.countries.includes(e.country);if(o&&a(e.country))if(t.allStates)n=!0;else{const o=!!(t.states&&t.states.length>0)&&t.states.includes(e.region);n=t.includeSelection?o:!o}else n=t.includeSelection?o:!o}return n}},8237:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setLogger=t.default=void 0;var o,r=(o=n(9937))&&o.__esModule?o:{default:o};let i=null,s=null;t.setLogger=(e,t)=>{i=e,s=t};const c=["debug","info","warn","error"];t.default=c.reduce(((e,t,n)=>(e[t]=(...e)=>{const o="debug"===t?"log":t;let{logging:a}=r.default;if(void 0===a&&(a=i),Function.prototype.bind&&window.console&&"object"==typeof console.log&&["log","info","warn","error","assert","dir","clear","profile","profileEnd"].forEach((e=>{console[e]=(void 0).bind(console[e],console)}),Function.prototype.call),a&&console&&"function"==typeof console[o]){const r=c.indexOf(a.toString().toLocaleLowerCase());if(!0===a||r>-1&&n>=r){const[n,...r]=[...e];console[o](`${t.toUpperCase()} - ${s||"(GlobalCmp)"} ${n}`,...r)}}},e)),{})},5716:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openGlobalPortal=m,t.openSharedPortal=v,t.sendGlobalPortalCommand=function(e,t){const n="vp:"+ ++l;return new Promise(((o,r)=>m(t).then((i=>{b(i,e,t,f,n,o,r)})).catch(r)))},t.sendSharedPortalCommand=function(e,t){const n="vp:"+ ++d;return new Promise(((o,r)=>v(t).then((i=>{b(i,e,t,p,n,o,r)})).catch(r)))};var o,r=(o=n(9937))&&o.__esModule?o:{default:o};const i=5e4,s=5e3,c="lrcmpData";let a,u,l=0,d=0;const f={},p={};function g(e,t,n){return new Promise(((o,r)=>{const s=function(e){const t=document.createElement("iframe");return t.setAttribute("style","display: none;"),t.setAttribute("src",e),t}(e),a=function(e){const t=setInterval((()=>{document.body&&(document.body.appendChild(e),clearInterval(t))}),5);return t}(s);let u=setTimeout((()=>{clearInterval(a),r(new Error(`Communication could not be established with the portal domain within ${i} milliseconds`))}),i);window.addEventListener("message",(e=>{if(e&&e.data){const r=e.data[n||c];if(r)if("isLoaded"===r.command&&u)clearTimeout(u),u=void 0,o(s);else{const e=t[r.callId];if(e){const{timeout:n}=e,o=e.resolve;delete t[r.callId],clearTimeout(n),o(r.result)}}}}))}))}function m(e){return u||(u=g(r.default.globalConsentLocation,f,e)),u}function v(e){return a||(a=g(r.default.sharedConsentLocation,p,e)),a}function b(e,t,n,o,r,i,a){const u=setTimeout((()=>{delete o[r],a(new Error(`${t.command} response not received from portal domain within ${s} milliseconds`))}),s);o[r]={resolve:i,timeout:u};const l={};l[n||c]={callId:r,...t},e.contentWindow.postMessage(l,"*")}},5269:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_AGE=void 0,t.readCookie=g,t.readData=b,t.readFromLocalStorage=p,t.readFromPortal=w,t.readGeoLocation=function(){if(!i.isSafari&&o.default.thirdPartyCookieSync)return w(s.sendSharedPortalCommand,l,d).then((e=>{r.default.debug("Read geo location from portal: ",e);try{if(e)return O(e),JSON.parse(e)}catch(e){r.default.debug("Error while parsing geoLocation from portal: ",e)}return S()}));return Promise.resolve(S())},t.writeCookie=m,t.writeData=h,t.writeGeoLocation=O,t.writeOnPortal=y,t.writeToLocalStorage=v;var o=c(n(9937)),r=c(n(8237)),i=n(8309),s=n(5716);function c(e){return e&&e.__esModule?e:{default:e}}const a="Thu, 01 Jan 1970 00:00:01 GMT;",u=t.MAX_AGE=33696e3,l="lrcmpData",d="geo-location",f=86400;function p(e,t=!1,n=!1){try{if(localStorage)if(n){const t=localStorage.getItem(e);if(t)return t}else{const n=JSON.parse(localStorage.getItem(e));if(n&&n.data){if(!n.expire||n.expire>+new Date)return n.data;if(!t){const t=g(e,!0);return t||n.data}}}}catch(t){r.default.error(`Unable to parse ${e} from localStorage: `,t)}return t?null:g(e,!0)}function g(e,t=!1){const n=`; ${document.cookie}`.split(`; ${e}=`);return n.length>=2?n.pop().split(";").shift():t?null:p(e,!0)}function m(e,t,n,r="/"){const i=null===n?"":`;max-age=${n}`,s=null===n?"":`;expires=${new Date(1*new Date+1e3*n).toUTCString()}`;r=`;path=${r}`;let c=function(){let e,t;const n="lr_get_top_level_domain=cookie",o=document.location.hostname.split(".");for(e=o.length-1;e>=0;e--)if(t=o.slice(e).join("."),document.cookie=`${n};domain=.${t};SameSite=Lax`,document.cookie.indexOf(n)>-1)return document.cookie=`${n.split("=")[0]}=;domain=.${t};expires==${a}SameSite=Lax`,t;return null}();return c=c?`;domain=.${c}`:"",t?o.default.useSecondLevelDomain?(document.cookie=`${e}=${r};expires=${a}SameSite=Lax`,document.cookie=`${e}=${t}${r}${c}${i}${s};SameSite=Lax`):(document.cookie=`${e}=${c}${r};expires=${a}SameSite=Lax`,document.cookie=`${e}=${t}${r}${i}${s};SameSite=Lax`):(document.cookie=`${e}=${r};expires=${a}SameSite=Lax`,document.cookie=`${e}=${c}${r};expires=${a}SameSite=Lax`),g(e)}function v(e,t,n=u,o=!1){try{if(localStorage){if(t){const o={data:t,expire:+new Date(1*new Date+1e3*n)};localStorage.setItem(e,JSON.stringify(o))}else localStorage.removeItem(e);return t}}catch(t){r.default.error(`Unable to store ${e} to localStorage: `,t)}return o?null:m(e,t,n)}function b(e,t=!1,n=!1){if(o.default.useExternalData){const t=(0,i.getUrlParam)(e);if(t)return r.default.debug(`Skipping cookies and localStorage for ${e}, read from query string: `,t),t}return o.default.useCookies?g(e):p(e,t,n)}function h(e,t,n,r){return o.default.useCookies?m(e,t,n,r):v(e,t,n)}function w(e,t,n){return r.default.debug("Request data from portal"),e({command:"read",name:n,useCookies:o.default.useCookies},t).then((e=>(r.default.debug("Read data from portal: ",e),e))).catch((e=>{r.default.error("Failed reading from portal: ",e)}))}function y(e,t,n,i,s){return r.default.debug("Send data to portal: ",i),e({command:"write",name:n,value:i,maxAgeSeconds:s,useCookies:o.default.useCookies},t).catch((e=>{r.default.error("Failed writing data on portal: ",e)}))}function S(){const e=b(d);if(r.default.debug("Read local geoLocation: ",e),e)try{return JSON.parse(e)}catch(e){r.default.debug("Error while parsing local geoLocation: ",e)}return e}function O(e,t){r.default.debug("Writing geoLocation: ",e),!i.isSafari&&o.default.thirdPartyCookieSync&&t&&y(s.sendSharedPortalCommand,l,d,e,f),h(d,e,f)}},8309:function(e){"use strict";const t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);function n(){return!!window.navigator.globalPrivacyControl}function o(){const e=window.doNotTrack||window.navigator.doNotTrack||window.navigator.msDoNotTrack;return!!e&&("1"===e.charAt(0)||"yes"===e)}e.exports={isSafari:t,getDecisecond:function(){const e=new Date,t=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate());return Math.round(t/100)},isDoNotTrackEnabled:o,isBoolean:function(e){return!1===e||!0===e},isObject:function(e){const t=typeof e;return("function"===t||"object"===t&&!!e)&&e.constructor!==Array},isObjectEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},orderObject:function(e){return Object.keys(e).sort().reduce(((t,n)=>(t[n]=e[n],Array.isArray(t[n])&&t[n].sort(),t)),{})},hashCode:function(e){let t=0;const n=e.length;let o=0;if(n>0)for(;o{e(t)}},shouldCcpaBeSuppressed:function(e){const t=o()&&e.doNotTrack,r=n()&&e.globalPrivacyControl;return e.enabled&&(t||r)},dispatchCustomEvent:function(e,t){const n=new CustomEvent(e,{detail:t});window.dispatchEvent(n)},isGlobalPrivacyControlEnabled:n}},653:function(e,t,n){e.exports=n(1469)},3418:function(e,t,n){var o;e=n.nmd(e),function(){var r=t,i=(e&&e.exports,"object"==typeof n.g&&n.g);i.global!==i&&i.window;var s=function(e){this.message=e};(s.prototype=new Error).name="InvalidCharacterError";var c=function(e){throw new s(e)},a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=/[\t\n\f\r ]/g,l={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&c("The string to be encoded contains characters outside of the Latin1 range.");for(var t,n,o,r,i=e.length%3,s="",u=-1,l=e.length-i;++u>18&63)+a.charAt(r>>12&63)+a.charAt(r>>6&63)+a.charAt(63&r);return 2==i?(t=e.charCodeAt(u)<<8,n=e.charCodeAt(++u),s+=a.charAt((r=t+n)>>10)+a.charAt(r>>4&63)+a.charAt(r<<2&63)+"="):1==i&&(r=e.charCodeAt(u),s+=a.charAt(r>>2)+a.charAt(r<<4&63)+"=="),s},decode:function(e){var t=(e=String(e).replace(u,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&c("Invalid character: the string to be decoded is not correctly encoded.");for(var n,o,r=0,i="",s=-1;++s>(-2*r&6)));return i},version:"1.0.0"};void 0===(o=function(){return l}.call(t,n,t,e))||(e.exports=o)}()},6353:function(e,t,n){var o;!function(r,i){"use strict";var s="function",c="undefined",a="object",u="model",l="name",d="type",f="vendor",p="version",g="architecture",m="console",v="mobile",b="tablet",h="smarttv",w="wearable",y={extend:function(e,t){var n={};for(var o in e)t[o]&&t[o].length%2==0?n[o]=t[o].concat(e[o]):n[o]=e[o];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:i},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},S={rgx:function(e,t){for(var n,o,r,c,u,l,d=0;d0?2==c.length?typeof c[1]==s?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3==c.length?typeof c[1]!==s||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):i:this[c[0]]=l?c[1].call(this,l,c[2]):i:4==c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):i):this[c]=l||i;d+=2}},str:function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var o=0;ol;)if((u=c[l++])!=u)return!0}else for(;a>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},6207:function(e,t,n){"use strict";var o=n(9924),r=n(256),i=TypeError,s=Object.getOwnPropertyDescriptor,c=o&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=c?function(e,t){if(r(e)&&!s(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},7686:function(e,t,n){"use strict";var o=n(9668);e.exports=o([].slice)},2177:function(e,t,n){"use strict";var o=n(9668),r=o({}.toString),i=o("".slice);e.exports=function(e){return i(r(e),8,-1)}},3891:function(e,t,n){"use strict";var o=n(4678),r=n(990),i=n(7537),s=n(2131);e.exports=function(e,t,n){for(var c=r(t),a=s.f,u=i.f,l=0;l9007199254740991)throw t("Maximum allowed index exceeded");return e}},2367:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6540:function(e,t,n){"use strict";var o=n(8655);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(o)},1056:function(e,t,n){"use strict";var o=n(2438);e.exports="NODE"===o},8655:function(e,t,n){"use strict";var o=n(3931).navigator,r=o&&o.userAgent;e.exports=r?String(r):""},2273:function(e,t,n){"use strict";var o,r,i=n(3931),s=n(8655),c=i.process,a=i.Deno,u=c&&c.versions||a&&a.version,l=u&&u.v8;l&&(r=(o=l.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!r&&s&&(!(o=s.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=s.match(/Chrome\/(\d+)/))&&(r=+o[1]),e.exports=r},2438:function(e,t,n){"use strict";var o=n(3931),r=n(8655),i=n(2177),s=function(e){return r.slice(0,e.length)===e};e.exports=s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":o.Bun&&"string"==typeof Bun.version?"BUN":o.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(o.process)?"NODE":o.window&&o.document?"BROWSER":"REST"},5532:function(e,t,n){"use strict";var o=n(3931),r=n(7537).f,i=n(2385),s=n(2470),c=n(1604),a=n(3891),u=n(1633);e.exports=function(e,t){var n,l,d,f,p,g=e.target,m=e.global,v=e.stat;if(n=m?o:v?o[g]||c(g,{}):o[g]&&o[g].prototype)for(l in t){if(f=t[l],d=e.dontCallGetSet?(p=r(n,l))&&p.value:n[l],!u(m?l:g+(v?".":"#")+l,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;a(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),s(n,l,f,e)}}},4694:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},9659:function(e,t,n){"use strict";var o=n(6398),r=Function.prototype,i=r.apply,s=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(o?s.bind(i):function(){return s.apply(i,arguments)})},4162:function(e,t,n){"use strict";var o=n(5033),r=n(1052),i=n(6398),s=o(o.bind);e.exports=function(e,t){return r(e),void 0===t?e:i?s(e,t):function(){return e.apply(t,arguments)}}},6398:function(e,t,n){"use strict";var o=n(4694);e.exports=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},8724:function(e,t,n){"use strict";var o=n(6398),r=Function.prototype.call;e.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},453:function(e,t,n){"use strict";var o=n(9924),r=n(4678),i=Function.prototype,s=o&&Object.getOwnPropertyDescriptor,c=r(i,"name"),a=c&&"something"===function(){}.name,u=c&&(!o||o&&s(i,"name").configurable);e.exports={EXISTS:c,PROPER:a,CONFIGURABLE:u}},5033:function(e,t,n){"use strict";var o=n(2177),r=n(9668);e.exports=function(e){if("Function"===o(e))return r(e)}},9668:function(e,t,n){"use strict";var o=n(6398),r=Function.prototype,i=r.call,s=o&&r.bind.bind(i,i);e.exports=o?s:function(e){return function(){return i.apply(e,arguments)}}},2160:function(e,t,n){"use strict";var o=n(3931),r=n(688);e.exports=function(e,t){return arguments.length<2?(n=o[e],r(n)?n:void 0):o[e]&&o[e][t];var n}},5383:function(e,t,n){"use strict";var o=n(1052),r=n(5268);e.exports=function(e,t){var n=e[t];return r(n)?void 0:o(n)}},3931:function(e,t,n){"use strict";var o=function(e){return e&&e.Math===Math&&e};e.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n.g&&n.g)||o("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4678:function(e,t,n){"use strict";var o=n(9668),r=n(298),i=o({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(r(e),t)}},7390:function(e){"use strict";e.exports={}},8651:function(e,t,n){"use strict";var o=n(2160);e.exports=o("document","documentElement")},7913:function(e,t,n){"use strict";var o=n(9924),r=n(4694),i=n(1442);e.exports=!o&&!r((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},4347:function(e,t,n){"use strict";var o=n(9668),r=n(4694),i=n(2177),s=Object,c=o("".split);e.exports=r((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?c(e,""):s(e)}:s},1881:function(e,t,n){"use strict";var o=n(9668),r=n(688),i=n(6762),s=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return s(e)}),e.exports=i.inspectSource},7804:function(e,t,n){"use strict";var o,r,i,s=n(4724),c=n(3931),a=n(5309),u=n(2385),l=n(4678),d=n(6762),f=n(1962),p=n(7390),g="Object already initialized",m=c.TypeError,v=c.WeakMap;if(s||d.state){var b=d.state||(d.state=new v);b.get=b.get,b.has=b.has,b.set=b.set,o=function(e,t){if(b.has(e))throw new m(g);return t.facade=e,b.set(e,t),t},r=function(e){return b.get(e)||{}},i=function(e){return b.has(e)}}else{var h=f("state");p[h]=!0,o=function(e,t){if(l(e,h))throw new m(g);return t.facade=e,u(e,h,t),t},r=function(e){return l(e,h)?e[h]:{}},i=function(e){return l(e,h)}}e.exports={set:o,get:r,has:i,enforce:function(e){return i(e)?r(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!a(t)||(n=r(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}}}},256:function(e,t,n){"use strict";var o=n(2177);e.exports=Array.isArray||function(e){return"Array"===o(e)}},688:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},1633:function(e,t,n){"use strict";var o=n(4694),r=n(688),i=/#|\.prototype\./,s=function(e,t){var n=a[c(e)];return n===l||n!==u&&(r(t)?o(t):!!t)},c=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},5268:function(e){"use strict";e.exports=function(e){return null==e}},5309:function(e,t,n){"use strict";var o=n(688);e.exports=function(e){return"object"==typeof e?null!==e:o(e)}},6555:function(e){"use strict";e.exports=!1},7935:function(e,t,n){"use strict";var o=n(2160),r=n(688),i=n(6148),s=n(4866),c=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return r(t)&&i(t.prototype,c(e))}},8344:function(e,t,n){"use strict";var o=n(7331);e.exports=function(e){return o(e.length)}},1135:function(e,t,n){"use strict";var o=n(9668),r=n(4694),i=n(688),s=n(4678),c=n(9924),a=n(453).CONFIGURABLE,u=n(1881),l=n(7804),d=l.enforce,f=l.get,p=String,g=Object.defineProperty,m=o("".slice),v=o("".replace),b=o([].join),h=c&&!r((function(){return 8!==g((function(){}),"length",{value:8}).length})),w=String(String).split("String"),y=e.exports=function(e,t,n){"Symbol("===m(p(t),0,7)&&(t="["+v(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!s(e,"name")||a&&e.name!==t)&&(c?g(e,"name",{value:t,configurable:!0}):e.name=t),h&&n&&s(n,"arity")&&e.length!==n.arity&&g(e,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?c&&g(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var o=d(e);return s(o,"source")||(o.source=b(w,"string"==typeof t?t:"")),e};Function.prototype.toString=y((function(){return i(this)&&f(this).source||u(this)}),"toString")},1787:function(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var o=+e;return(o>0?n:t)(o)}},2131:function(e,t,n){"use strict";var o=n(9924),r=n(7913),i=n(2666),s=n(9175),c=n(2358),a=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",p="writable";t.f=o?i?function(e,t,n){if(s(e),t=c(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var o=l(e,t);o&&o[p]&&(e[t]=n.value,n={configurable:f in n?n[f]:o[f],enumerable:d in n?n[d]:o[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(s(e),t=c(t),s(n),r)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new a("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},7537:function(e,t,n){"use strict";var o=n(9924),r=n(8724),i=n(8208),s=n(7781),c=n(6854),a=n(2358),u=n(4678),l=n(7913),d=Object.getOwnPropertyDescriptor;t.f=o?d:function(e,t){if(e=c(e),t=a(t),l)try{return d(e,t)}catch(e){}if(u(e,t))return s(!r(i.f,e,t),e[t])}},6217:function(e,t,n){"use strict";var o=n(1528),r=n(2367).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},5168:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},6148:function(e,t,n){"use strict";var o=n(9668);e.exports=o({}.isPrototypeOf)},1528:function(e,t,n){"use strict";var o=n(9668),r=n(4678),i=n(6854),s=n(1138).indexOf,c=n(7390),a=o([].push);e.exports=function(e,t){var n,o=i(e),u=0,l=[];for(n in o)!r(c,n)&&r(o,n)&&a(l,n);for(;t.length>u;)r(o,n=t[u++])&&(~s(l,n)||a(l,n));return l}},8208:function(e,t){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!n.call({1:2},1);t.f=r?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},110:function(e,t,n){"use strict";var o=n(8724),r=n(688),i=n(5309),s=TypeError;e.exports=function(e,t){var n,c;if("string"===t&&r(n=e.toString)&&!i(c=o(n,e)))return c;if(r(n=e.valueOf)&&!i(c=o(n,e)))return c;if("string"!==t&&r(n=e.toString)&&!i(c=o(n,e)))return c;throw new s("Can't convert object to primitive value")}},990:function(e,t,n){"use strict";var o=n(2160),r=n(9668),i=n(6217),s=n(5168),c=n(9175),a=r([].concat);e.exports=o("Reflect","ownKeys")||function(e){var t=i.f(c(e)),n=s.f;return n?a(t,n(e)):t}},7929:function(e,t,n){"use strict";var o=n(9175);e.exports=function(){var e=o(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},1166:function(e,t,n){"use strict";var o=n(5268),r=TypeError;e.exports=function(e){if(o(e))throw new r("Can't call method on "+e);return e}},7994:function(e,t,n){"use strict";var o,r=n(3931),i=n(9659),s=n(688),c=n(2438),a=n(8655),u=n(7686),l=n(4051),d=r.Function,f=/MSIE .\./.test(a)||"BUN"===c&&((o=r.Bun.version.split(".")).length<3||"0"===o[0]&&(o[1]<3||"3"===o[1]&&"0"===o[2]));e.exports=function(e,t){var n=t?2:1;return f?function(o,r){var c=l(arguments.length,1)>n,a=s(o)?o:d(o),f=c?u(arguments,n):[],p=c?function(){i(a,this,f)}:a;return t?e(p,r):e(p)}:e}},1962:function(e,t,n){"use strict";var o=n(2645),r=n(5736),i=o("keys");e.exports=function(e){return i[e]||(i[e]=r(e))}},6762:function(e,t,n){"use strict";var o=n(6555),r=n(3931),i=n(1604),s="__core-js_shared__",c=e.exports=r[s]||i(s,{});(c.versions||(c.versions=[])).push({version:"3.41.0",mode:o?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})},2645:function(e,t,n){"use strict";var o=n(6762);e.exports=function(e,t){return o[e]||(o[e]=t||{})}},4112:function(e,t,n){"use strict";var o=n(2273),r=n(4694),i=n(3931).String;e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},9891:function(e,t,n){"use strict";var o,r,i,s,c=n(3931),a=n(9659),u=n(4162),l=n(688),d=n(4678),f=n(4694),p=n(8651),g=n(7686),m=n(1442),v=n(4051),b=n(6540),h=n(1056),w=c.setImmediate,y=c.clearImmediate,S=c.process,O=c.Dispatch,C=c.Function,_=c.MessageChannel,P=c.String,E=0,I={},T="onreadystatechange";f((function(){o=c.location}));var A=function(e){if(d(I,e)){var t=I[e];delete I[e],t()}},N=function(e){return function(){A(e)}},x=function(e){A(e.data)},k=function(e){c.postMessage(P(e),o.protocol+"//"+o.host)};w&&y||(w=function(e){v(arguments.length,1);var t=l(e)?e:C(e),n=g(arguments,1);return I[++E]=function(){a(t,void 0,n)},r(E),E},y=function(e){delete I[e]},h?r=function(e){S.nextTick(N(e))}:O&&O.now?r=function(e){O.now(N(e))}:_&&!b?(s=(i=new _).port2,i.port1.onmessage=x,r=u(s.postMessage,s)):c.addEventListener&&l(c.postMessage)&&!c.importScripts&&o&&"file:"!==o.protocol&&!f(k)?(r=k,c.addEventListener("message",x,!1)):r=T in m("script")?function(e){p.appendChild(m("script"))[T]=function(){p.removeChild(this),A(e)}}:function(e){setTimeout(N(e),0)}),e.exports={set:w,clear:y}},7352:function(e,t,n){"use strict";var o=n(1680),r=Math.max,i=Math.min;e.exports=function(e,t){var n=o(e);return n<0?r(n+t,0):i(n,t)}},6854:function(e,t,n){"use strict";var o=n(4347),r=n(1166);e.exports=function(e){return o(r(e))}},1680:function(e,t,n){"use strict";var o=n(1787);e.exports=function(e){var t=+e;return t!=t||0===t?0:o(t)}},7331:function(e,t,n){"use strict";var o=n(1680),r=Math.min;e.exports=function(e){var t=o(e);return t>0?r(t,9007199254740991):0}},298:function(e,t,n){"use strict";var o=n(1166),r=Object;e.exports=function(e){return r(o(e))}},1272:function(e,t,n){"use strict";var o=n(8724),r=n(5309),i=n(7935),s=n(5383),c=n(110),a=n(2032),u=TypeError,l=a("toPrimitive");e.exports=function(e,t){if(!r(e)||i(e))return e;var n,a=s(e,l);if(a){if(void 0===t&&(t="default"),n=o(a,e,t),!r(n)||i(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},2358:function(e,t,n){"use strict";var o=n(1272),r=n(7935);e.exports=function(e){var t=o(e,"string");return r(t)?t:t+""}},3397:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},5736:function(e,t,n){"use strict";var o=n(9668),r=0,i=Math.random(),s=o(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++r+i,36)}},4866:function(e,t,n){"use strict";var o=n(4112);e.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},2666:function(e,t,n){"use strict";var o=n(9924),r=n(4694);e.exports=o&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4051:function(e){"use strict";var t=TypeError;e.exports=function(e,n){if(e{if(e){const t=function(e,t){const n={...e};return Object.keys(t).forEach((e=>{n[e]=t[e]})),n}(this,e);Object.assign(this,t)}},(t=r(t="update"))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,this.update(i)}},c=n(653);const a=new(n(6353));function u(){return void 0===s.browsers||!!(s.browsers.indexOf("chrome")>-1&&"Chrome"===a.getBrowser().name||s.browsers.indexOf("edge")>-1&&"Edge"===a.getBrowser().name||s.browsers.indexOf("firefox")>-1&&"undefined"!=typeof InstallTrigger||s.browsers.indexOf("safari")>-1&&navigator.vendor.includes("Apple")||s.browsers.indexOf("ie")>-1&&document.documentMode)}function l(){return window.location.href}const d=/((([^<>()\[\].,;:\s@"]+(\.[^<>()\[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,}))/i;function f(e){const t=(e=e.toLowerCase().trim()).split("@");let n=t[0];const o=t[1];let r=n.indexOf("+");return-1===r&&(r=n.indexOf(" ")),-1===r&&(r=n.indexOf("%2b")),-1!==r&&(n=n.slice(0,r)),"gmail.com"===o&&(n=n.replace(/\./g,"")),n+"@"+o}function p(e){return d.test(e)}let g,m;function v(e){if(e)try{return null!==new RegExp(e)}catch(e){c.log.error("Regex is invalid: ",e)}return!1}function b(e){if(!s.urlParameter||s.urlParameter.length<1)return[];let t=[];try{for(let e of s.urlParameter){const n=new URL(l()).searchParams.get(e);n&&t.push(n)}}catch(e){c.log.debug(`Creating URL object failed: ${e}`),t=function(e){const t=[];let n=null;const o=window.location.search.substring(1),r=/([^&=]+)=([^&]*)/g;for(;n=r.exec(o);)e.include(decodeURIComponent(n[1]))&&t.push(decodeURIComponent(n[2]));return t}(s.urlParameter)}return!t||t.length<1?(c.log.debug(`There is no such url parameter. \n Tried to fetch: ${e}`),[]):t}function h(e,t){g=e,m=t,qe&&w()}async function w(){if(!1!==e.flag_consentCheckPassed)if(g&&m){const e=new CustomEvent("detected-identifier",{detail:{identifier:g,type:m}});c.log.info("Dispatched event with identifier: ",g," and type: ",m),window.dispatchEvent(e)}else c.log.info("Identifier and/or Identifier Type are empty.");else c.log.debug("User removed consent, identifier won't be dispatched.")}const y=/(^((\+1)?)([\s.-]?)?[(]?[2-9][0-9][0-9][)]?[(\s)?.-]?[2-9][0-9][0-9][\s.-]?\d{4}$)/,S=/(\+1)|[.]|[(]|[)]|[-]|[ ]/gi;async function O(e){let t=e;"string"!=typeof e&&(t+=""),_(t)?(c.log.debug(`We detected phone number: ${t}`),h(t,"phoneNumber")):c.log.debug("Phone number is invalid")}function C(e){return e.replace(S,"")}function _(e){return y.test(e.trim(e))}function P(e){return!!s.customerIDRegex&&new RegExp(s.customerIDRegex).test(e)}const E=/(^[a-fA-F0-9]{64}$)/,I=/(^[a-fA-F0-9]{40}$)/,T=/(^[a-fA-F0-9]{32}$)/;function A(e){return E.test(e)?{type:"SHA256Hash",hash:e}:I.test(e)?{type:"SHA1Hash",hash:e}:T.test(e)?{type:"MD5Hash",hash:e}:void 0}const N=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;let x,k,j=!1,D=[],L=[],R=[],G=!1;async function U(){c.log.info("Detection started! Library is configured to detect: ",s.detectionSubject),c.log.info("Detection event type is ",s.detectionEventType);let e=[];if(await B(e),"onblur"===s.detectionEventType){if(await function(){for(let e=0;e{if(!1===e.flag_consentCheckPassed)return c.log.debug("Consent was not given. Pid won't be detected(OnBlur)."),"function"==typeof n&&n(),void H(t);W(o.value.trim(),t),"function"==typeof n&&n()})}}function B(e){for(let t of s.cssSelectors)"string"==typeof t&&t.includes("input")&&t.length>0&&e.push(document.querySelectorAll(t));let t=window.location.hostname,n=document.getElementsByTagName("iframe");for(let o=0;o0&&e.push(n[o].contentDocument.querySelectorAll(t));return e}function $(){let e=window.location.hostname,t=document.getElementsByTagName("iframe");for(let n=0;n0)if(e.includes("input")){if(V(t[n].contentDocument.querySelectorAll(e)))return!0}else if(z(t[n].contentDocument.querySelectorAll(e)))return!0;return!1}function F(){for(const e of s.cssSelectors)if("string"==typeof e&&e.length>0)if(e.includes("input")){if(V(document.querySelectorAll(e)))return!0}else if(z(document.querySelectorAll(e)))return!0;return $()}function V(e){for(const t of e)if("object"==typeof t){const e=t.value.trim();if(e?.length>0)return q(e)||K(e)||J(e)}return!1}function z(e){for(let t of e)if(void 0!==t.innerText&&(j&&q(t.innerText.trim())||K(t.innerText.trim())||J(t.innerText.trim())))return!0;return!1}function H(e){let t=0;for(const n of e)for(const e of n)"object"==typeof e&&(e.onblur=R[t++])}function W(e,t){(K(e)||J(e)||q(e))&&H(t)}function q(e){if(Z()&&P(e)){const t=function(e){return e.trim()}(e);c.log.debug("We detected customer ID: ",t),ne();return h({customerId:t,accountId:s.accountID},"customerID"),!0}return!1}function K(e){if(s.detectionSubject.includes("email")&&p(e)){const t=f(e.match(d)[0]);return c.log.debug("We detected email: "+t),ne(),h(t,"email"),!0}return!1}function J(e){if(s.detectionSubject.includes("phoneNumber")&&_(e)){return O(C(e)),ne(),!0}return!1}function X(){return s.detectionSubject.includes("email")||s.detectionSubject.includes("phoneNumber")||s.detectionSubject.includes("envelope")||s.detectionSubject.includes("pidHashes")||Z()?function(){if(s.detectionSubject.includes("email")){let e=b("email");if(e&&e.length>0)for(let t of e){if(p(t))return t=f(t),c.log.debug("We detected email: "+t),h(t,"email"),!0;c.log.debug("Email found in URL did not pass regex test.")}}return!1}()||function(){if(s.detectionSubject.includes("phoneNumber")){let e=b("phoneNumber");if(e&&e.length>0)for(let t of e){if(_(t))return c.log.debug("We detected phone number: "+t),t=C(t),O(t),!0;c.log.debug("Phone number found in URL did not pass regex test.")}}return!1}()||function(){if(s.detectionSubject.includes("pidHashes")){let e=b("hashedPid");if(e&&e.length>0)for(let t of e){if(t=A(t),t)return c.log.debug("We detected hash: "+t.hash+" with type: "+t.type),"SHA1Hash"!==t.type&&"phoneNumber"===s.urlHashType?(c.log.error("We support only SHA1 encryption for phone numbers."),!1):(h(t.hash,t.type),!0);c.log.debug("Hash did not pass regex test")}}return!1}()||function(){if(Z()){const e=b("customerID");if(e&&e.length>0)for(let t of e){if(P(t))return c.log.debug("We detected customerID: "+t),h({customerId:t,accountId:s.accountID},"customerID"),!0;c.log.debug("customerID found in url did not pass regex test")}}return!1}()||function(){if(s.detectionSubject.includes("envelope")){let e=b("envelope");if(e&&e.length>0)for(let t of e)try{if(N.test(t)&&t.length>8)try{return t=atob(t),c.log.debug(`We detected envelope: ${t}`),h(t,"envelope"),!0}catch(e){c.log.error(`Envelope could not be base64 decoded: ${e}`)}else c.log.debug("Envelope found in url did not pass regex test")}catch(e){c.log.error(`Cannot decode base64 on envelope: ${e}`)}}return!1}():(c.log.debug("Library is not configured to start any url detection!"),!1)}function Z(){return s.accountID&&v(s.customerIDRegex)&&s.detectionSubject.includes("customerIdentifier")}function Y(){new MutationObserver((function(e,t){k=t,c.log.debug("Detected dynamically added nodes."),G&&(t.disconnect(),c.log.debug("Checking for dynamically added elements is turned off.")),"onblur"===s.detectionEventType?(M(B([])),F()):"onclick"!==s.detectionEventType&&"onsubmit"!==s.detectionEventType||Q(B([]))})).observe(document.querySelector("body"),{childList:!0,subtree:!0})}function Q(t){!function(){for(let e of s.triggerElements)if(e.length>0){document.querySelectorAll(e).forEach((e=>{D.includes(e)||D.push(e)}))}let e=window.location.hostname,t=document.getElementsByTagName("iframe");for(let n=0;n0){t[n].contentDocument.querySelectorAll(e).forEach((e=>{D.push(e)}))}}(),D.forEach((e=>{L.push(e[s.detectionEventType])}));let n=[];for(let e of t)for(let t of e)t&&t.tagName&&"INPUT"===t.tagName&&n.push(t);for(let t=0;t{c.log.debug("Consent is given, module will start!")},he=e=>{e===ie?c.log.debug("Consent is rejected. Envelope will be removed and module will shutdown!"):c.log.debug("Consent is rejected. Module will shutdown!")},we=()=>{c.log.debug("Consent was given. Module is already running!")},ye={consent:!1,consentString:"",cmpType:"",sectionId:""};const Se=(e,t,n)=>{ye.consent?Oe(ye,e,t,n):(ve||(ve=!0,window.addEventListener(`${n}LaunchpadCommunicationEvent`,(o=>{Object.assign(ye,o.detail),pe(o.detail.consent),Oe(o.detail,e,t,n)}))),c.cmpUtils.dispatchCustomEvent("atsConsentGatheringStartedEvent",n))},Oe=(e,t,n,o)=>{e.consent?(be(),t(e.consentString,e.cmpType,e.sectionId)):(n&&n(e.cmpType),he(o))};var Ce=n(2525);let _e=!1;const Pe=e=>{if(c.log.info("Location of the user is in country that has GDPR regulation!"),!0===_e)return c.log.debug("TCF library is loaded."),void(!0===fe&&(be(),e.triggerModuleHandler()));ge||e.moduleName===ce||(window.addEventListener(`${e.moduleName}UserActionCompleteEvent`,(t=>{Ee.triggerModuleBasedOnTcfConsent(t.detail,e)})),me(!0)),Ee.handleConsent(e)},Ee={handleConsent:e=>{_e||(_e=!0,e.moduleName!==ce&&window.addEventListener(`${e.moduleName}RecheckAtsConsentEvent`,(t=>{"boolean"==typeof t.detail.consent&&Ee.triggerModuleBasedOnTcfConsent(t.detail,e)})),Ce.ff.getTcfConsentObject(!0,e.moduleName))},triggerModuleBasedOnTcfConsent:(e,t)=>{e.consent?fe?we():(be(),pe(!0),e.isUserInteraction?t.onUserInteractionAccept(e.consentString,e.cmpType):t.onConsentAccepted(e.consentString,e.cmpType)):(he(t.moduleName),t.onUserInteractionReject&&t.onUserInteractionReject(e.cmpType),pe(!1))}};let Ie=!1;const Te=(e,t)=>{Ie=!0,c.log.debug("GPP fully loaded"),Ne(e,t)},Ae=e=>{c.log.debug("GPP library didn't load in time."),window.__uspapi?e.ccpaFallbackHandler():(c.log.debug("Library __uspapi is not present."),pe(!0),e.onConsentAccepted())},Ne=(e,t)=>{t.onLoadHandler&&t.onLoadHandler(),xe(t),"boolean"==typeof e.consent&&(e.consent?(pe(!0),be(),t.onConsentAccepted(e.consentString,e.cmpType,e.sectionId)):(he(t.moduleName),t.onConsentRejected&&t.onConsentRejected()))},xe=e=>{ge||(me(!0),window.addEventListener(`${e.moduleName}UserActionCompleteEvent`,(t=>{ke(t.detail,e)})))},ke=(e,t)=>{c.log.debug(`[GPP] event listener responded with ${JSON.stringify(e)}`);const{gppString:n,consent:o,sectionId:r,cmpType:i}=e;o?fe?we():(be(),pe(!0),t.onUserInteractionAccept(n,i,r)):(he(t.moduleName),pe(!1),t.onUserInteractionReject&&t.onUserInteractionReject(i))};function je(){c.log.debug("Library __uspapi is present."),__uspapi("getUSPData",1,((e,t)=>{null===e.uspString&&(c.log.debug("User did not interact with consent manager."),pe(!0),re()),t?function(e,t,n,o){if(4!==e.length)return o("CCPA consent string is not 4 characters long!"),!1;const r=e.split("")[2];return"Y"===r?(n("User didn't give consent. Library will shut down."),t.ccpaConsentString=void 0,!1):("N"===r?(n("User gave consent"),t.ccpaConsentString=e):"-"===r&&(n("CCPA doesnt apply to this user"),t.ccpaConsentString=void 0),!0)}(e.uspString,s,c.log.debug,c.log.error)&&(pe(!0),re()):(c.log.debug("User didn't give consent. Library will shut down."),pe(!1))}))}const De=()=>{setTimeout((()=>{re()}),200)},Le={triggerModuleHandler:re,moduleName:se,onLoadHandler:null,onConsentAccepted:re,onConsentRejected:null,onUserInteractionAccept:De,onUserInteractionReject:null,ccpaFallbackHandler:je},Re={checkCcpaConsent:je,gatherUSConsent:function(e){c.log.debug("User is in the US"),window.__gpp?((e,t)=>{c.log.debug("Check if GPP library is loaded?"),Ie?fe&&(c.log.debug("GPP library is loaded."),be(),e.triggerModuleHandler()):(window.addEventListener(`${e.moduleName}CcpaFallbackEvent`,(()=>{Ae(e)})),window.addEventListener(`${e.moduleName}RecheckAtsConsentEvent`,(t=>{Te(t.detail,e)})),Ce.mF.getGppConsentObject(t,e.moduleName))})(Le,e):window.__uspapi?Re.checkCcpaConsent():(pe(!0),re())},onUserInteractionAccept:De};function Ge(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:31536e3,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,i=new Date;i.setTime(i.getTime()+1e3*n);let s=";expires="+i.toUTCString(),c=";max-age="+n,a=";path="+o,u=r?";domain="+r:"",l=e+"="+encodeURIComponent(t);document.cookie=l+c+s+u+a}function Ue(e){const t=e+"=",n=document.cookie.split(";");for(let e=0;e{let e=$e();return e.country||(e=await Fe.getGeoLocation(),e.region&&Ge("_lr_geo_location_state",e.region,172800),e.country||(e.country="US"),Ge("_lr_geo_location",e.country,172800)),Me="US"===e.country,e},$e=()=>({country:""+Ue("_lr_geo_location"),region:""+Ue("_lr_geo_location_state")}),Fe={getGeoLocation:async()=>{const e=await ue("https://geo.privacymanager.io/");if(e)return e;c.log.error("Geo location is undefined or empty")}};let Ve=!1;function ze(e){Ve=e}let He=!1;function We(e){He=e}let qe=!1;async function Ke(e){if(s.update(e),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"(ATS)";e.testMode||e.testEventCode?(e.logging="debug",(0,c.setLogger)(e.logging,t),c.log.debug("Test mode enabled.")):(0,c.setLogger)(e.logging,t);try{const n=new URL(window.location.href).searchParams.get("ats_debug");"true"===n?(e.logging="debug",(0,c.setLogger)(e.logging,t),c.log.debug("Debug mode enabled.")):"false"===n&&(c.log.debug("Debug mode disabled."),e.logging=void 0,(0,c.setLogger)(e.logging,t))}catch(e){c.log.debug("Creating URL object failed: "+e)}}(s,"(ATS-DETECTION-MODULE)"),le())return void c.log.debug("GPC is enabled. Detection module will shutdown.");if(de())return void c.log.debug("Do Not Track is enabled. Detection module will shutdown.");if(!u())return void c.log.debug("Browser blocked by configuration.");window.atsenvelopemodule?.isModuleReady()?qe=!0:(c.log.debug("Wait for envelope module to be ready."),window.addEventListener("envelopeModuleReady",(()=>{qe||(qe=!0,w())}),!1));!function(e){window.__launchpad?Se(De,null,Le.moduleName):"US"===e.country?Re.gatherUSConsent(e.region):Ce.ff.gdprApplies(e.country)?Pe(Le):(c.log.info("Location of the user is NOT in country that has GDPR, CCPA or GPP regulation!"),pe(!0),re())}(await Be())}function Je(){Ve&&(le()?c.log.debug("GPC is enabled. Detection module will shutdown."):de()?c.log.debug("Do Not Track is enabled. Detection module will shutdown."):u()?!1!==fe&&(c.log.debug("Event-driven detection started!"),F()):c.log.debug("Browser blocked by configuration."))}const Xe=n(4147);function Ze(e){Ke(e)}function Ye(){Je()}function Qe(e){const t={DETECTION_MODULE_VERSION:Xe.version,DETECTION_MODULE_CONFIG:JSON.parse(JSON.stringify(s))};if(!e)return t;e(t)}}(),window.atsdetectionmodule=o}();setTimeout(function() { window.atsdetectionmodule.start({"logging":"warnings","detectionType":"scrapeAndUrl","urlParameter":["emh"],"urlHashType":"email","cssSelectors":["input[type=email]","input[type=text]","#email_address","#newsletter-email-id","#sailthru-user-acquisition-email"],"detectionSubject":["pidHashes"],"accountID":"-1","detectionEventType":"onclick","triggerElements":[".form-submit","#sailthru-overlay-call-to-action span",".blaize-form",".newsletter-email-footer",".newsletter-email",".free-signup",".newsletter-email"],"detectDynamicNodes":true,"configId":"6fbf74f5-22f0-45ea-952c-e066909dd9f1"}); }, 350);!function(){var e={781:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkGppCaliforniaConsent=void 0;var r=n(3230);t.checkGppCaliforniaConsent=e=>{const t={sectionId:"",consent:!1};return e&&(t.consent=!(1!==e.SaleOptOutNotice||1!==e.SharingOptOutNotice||0!==e.SensitiveDataLimitUseNotice&&1!==e.SensitiveDataLimitUseNotice||2!==e.SaleOptOut||2!==e.SharingOptOut||"[0,0,0,0,0,0,0,0,0]"!==JSON.stringify(e.SensitiveDataProcessing)||"[0,0]"!==JSON.stringify(e.KnownChildSensitiveDataConsents)||0!==e.PersonalDataConsents&&2!==e.PersonalDataConsents||!1!=!!e.Gpc),t.sectionId=r.GPP_SECTION_IDS.CALIFORNIA),t}},2988:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkGppColoradoConsent=void 0;var r=n(3230);t.checkGppColoradoConsent=e=>{const t={sectionId:"",consent:!1};return e&&(t.consent=1===e.SharingNotice&&1===e.SaleOptOutNotice&&1===e.TargetedAdvertisingOptOutNotice&&2===e.SaleOptOut&&2===e.TargetedAdvertisingOptOut&&"[0,0,0,0,0,0,0]"===JSON.stringify(e.SensitiveDataProcessing)&&0===e.KnownChildSensitiveDataConsents&&!1==!!e.Gpc,t.sectionId=r.GPP_SECTION_IDS.COLORADO),t}},6883:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkGppConnecticutConsent=void 0;var r=n(3230);t.checkGppConnecticutConsent=e=>{const t={sectionId:"",consent:!1};return e&&(t.consent=1===e.SharingNotice&&1===e.SaleOptOutNotice&&1===e.TargetedAdvertisingOptOutNotice&&2===e.SaleOptOut&&2===e.TargetedAdvertisingOptOut&&"[0,0,0,0,0,0,0,0]"===JSON.stringify(e.SensitiveDataProcessing)&&"[0,0,0]"===JSON.stringify(e.KnownChildSensitiveDataConsents)&&!1==!!e.Gpc,t.sectionId=r.GPP_SECTION_IDS.CONNECTICUT),t}},5991:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConsentCheck=void 0;var r=n(653),o=n(781),i=n(6403),a=n(2988),s=n(2209),c=n(6883),u=n(3442),l=n(3230);t.ConsentCheck=class{constructor(e,t){this.sectionId=t,this.consent=this.handleSectionData(e)}handleSectionData=e=>e&&e.length>0?e.reduce(((e,t)=>Object.assign(e,t))):e.constructor===Object?e:null;checkGppSectionConsent=()=>{let e={sectionId:"",consent:!1};return this.sectionId&&(r.log.debug(`Checking GPP for ${l.GPP_STATE_NAMES[this.sectionId]}: ${JSON.stringify(this.consent)}`),this.sectionId===l.API_PREFIX_STRING.CALIFORNIA?e=(0,o.checkGppCaliforniaConsent)(this.consent):this.sectionId===l.API_PREFIX_STRING.COLORADO?e=(0,a.checkGppColoradoConsent)(this.consent):this.sectionId===l.API_PREFIX_STRING.UTAH?e=(0,s.checkGppUtahConsent)(this.consent):this.sectionId===l.API_PREFIX_STRING.CONNECTICUT?e=(0,c.checkGppConnecticutConsent)(this.consent):this.sectionId===l.API_PREFIX_STRING.VIRGINIA&&(e=(0,i.checkGppVirginiaConsent)(this.consent))),e.consent||e.sectionId||(e=(0,u.checkGppNationalConsent)(this.consent)),e}}},3230:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.US_STATES=t.GPP_STATE_NAMES=t.GPP_SECTION_IDS=t.API_PREFIX_STRING=void 0;t.GPP_SECTION_IDS={US_NATIONAL:"7",CALIFORNIA:"8",VIRGINIA:"9",COLORADO:"10",UTAH:"11",CONNECTICUT:"12"},t.US_STATES={CALIFORNIA:"CA",VIRGINIA:"VA",COLORADO:"CO",UTAH:"UT",CONNECTICUT:"CT"},t.API_PREFIX_STRING={US_NATIONAL:"usnat",CALIFORNIA:"usca",VIRGINIA:"usva",COLORADO:"usco",UTAH:"usut",CONNECTICUT:"usct"},t.GPP_STATE_NAMES={usnat:"US National",usca:"California",usva:"Virginia",usco:"Colorado",usut:"Utah",usct:"Connecticut"}},6717:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ConsentCheck",{enumerable:!0,get:function(){return r.ConsentCheck}});var r=n(5991)},3442:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkGppNationalConsent=void 0;var r=n(3230);t.checkGppNationalConsent=e=>{const t={sectionId:"",consent:!1};return e&&(t.consent=!(1!==e.SharingNotice||1!==e.SaleOptOutNotice||1!==e.SharingOptOutNotice||1!==e.TargetedAdvertisingOptOutNotice||0!==e.SensitiveDataProcessingOptOutNotice&&1!==e.SensitiveDataProcessingOptOutNotice||0!==e.SensitiveDataLimitUseNotice&&1!==e.SensitiveDataLimitUseNotice||2!==e.SaleOptOut||2!==e.SharingOptOut||2!==e.TargetedAdvertisingOptOut||"[0,0,0,0,0,0,0,0,0,0,0,0]"!==JSON.stringify(e.SensitiveDataProcessing)||"[0,0]"!==JSON.stringify(e.KnownChildSensitiveDataConsents)||0!==e.PersonalDataConsents&&2!==e.PersonalDataConsents||!1!=!!e.Gpc),t.sectionId=r.GPP_SECTION_IDS.US_NATIONAL),t}},2209:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkGppUtahConsent=void 0;var r=n(3230);t.checkGppUtahConsent=e=>{const t={sectionId:"",consent:!1};return e&&(t.consent=1===e.SharingNotice&&1===e.SaleOptOutNotice&&1===e.TargetedAdvertisingOptOutNotice&&(0===e.SensitiveDataProcessingOptOutNotice||1===e.SensitiveDataProcessingOptOutNotice)&&2===e.SaleOptOut&&2===e.TargetedAdvertisingOptOut&&"[0,0,0,0,0,0,0,0]"===JSON.stringify(e.SensitiveDataProcessing)&&0===e.KnownChildSensitiveDataConsents&&!1==!!e.Gpc,t.sectionId=r.GPP_SECTION_IDS.UTAH),t}},6403:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkGppVirginiaConsent=void 0;var r=n(3230);t.checkGppVirginiaConsent=e=>{const t={sectionId:"",consent:!1};return e&&(t.consent=1===e.SharingNotice&&1===e.SaleOptOutNotice&&1===e.TargetedAdvertisingOptOutNotice&&2===e.SaleOptOut&&2===e.TargetedAdvertisingOptOut&&"[0,0,0,0,0,0,0,0]"===JSON.stringify(e.SensitiveDataProcessing)&&0===e.KnownChildSensitiveDataConsents&&!1==!!e.Gpc,t.sectionId=r.GPP_SECTION_IDS.VIRGINIA),t}},9782:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGppConsentObject=void 0;var r=n(5483);t.getGppConsentObject=(e,t)=>{new r.GppVersion(t,e).awaitGppLibrary()}},6984:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GPP_VERSIONS=t.GPP_SECTIONS=t.GPP_APIS_PREFIXES=t.API_VARIATIONS=void 0;t.GPP_VERSIONS={v1_0:"1.0",v1_0_lr:"1.0_lr",v1_1:"1.1"},t.GPP_SECTIONS={CA:"usca",VA:"usva",CO:"usco",UT:"usut",CT:"usct",US_NATIONAL:"usnat"},t.GPP_APIS_PREFIXES=["usnat","usca","usva","usco","usut","usct","7:usnat","8:usca","9:usva","10:usco","11:usut","12:usct"],t.API_VARIATIONS={CA:["usca","8:usca"],VA:["usva","9:usva"],CO:["usco","10:usco"],UT:["usut","11:usut"],CT:["usct","12:usct"],US_NATIONAL:["usnat","7:usnat"]}},5271:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GppVersion=void 0;var r=n(653),o=n(6717),i=n(6984),a=n(4505);t.GppVersion=class{constructor(e,t=null){this.moduleName=e,this.usStateCode=t,this.flag_gppLibraryFullyLoaded=!1,this.flag_gppEventListenerExists=!1,this.flag_gppEventListenerRegistered=!1}setGppLibraryFullyLoadedFlag(e){this.flag_gppLibraryFullyLoaded=e}setGppEventListenerExists(e){this.flag_gppEventListenerExists=e}setGppEventListenerRegistered(e){this.flag_gppEventListenerRegistered=e}awaitGppLibrary(){const e={cmpType:"gpp",consentString:"",consent:null,sectionId:""};let t=0;const n=setInterval((()=>{++t,window.__gpp||this.flag_gppLibraryFullyLoaded||10!==t||(clearInterval(n),(0,a.dispatchCustomEvent)(`${this.moduleName}CcpaFallbackEvent`,null)),window.__gpp&&!this.flag_gppEventListenerExists&&(clearInterval(n),window.__gpp("addEventListener",(t=>this.gppEventListenerCallback(t,e))),this.setGppEventListenerExists(!0),this.flag_gppEventListenerRegistered||(0,a.dispatchCustomEvent)(`${this.moduleName}RecheckAtsConsentEvent`,e))}),200)}gppEventListenerCallback(e,t){this.setGppEventListenerRegistered(!0);const{eventName:n,pingData:r}=e;if(["cmpStatus","sectionChange","listenerRegistered"].includes(n)&&r&&"loaded"===r.cmpStatus){const{gppVersion:e,supportedAPIs:o}=r;if(this.isApiSupported(o)){const n=this.getSupportedSectionPrefix(this.usStateCode,o),i=this.getVersionData(e,n,r);Object.assign(t,i),i||(0,a.dispatchCustomEvent)(`${this.moduleName}CcpaFallbackEvent`,null),i&&!this.flag_gppLibraryFullyLoaded&&(this.setGppLibraryFullyLoadedFlag(!0),(0,a.dispatchCustomEvent)(`${this.moduleName}RecheckAtsConsentEvent`,t))}else(0,a.dispatchCustomEvent)(`${this.moduleName}CcpaFallbackEvent`,null);"sectionChange"===n&&(Object.assign(t,{...t,isUserInteraction:!0}),(0,a.dispatchCustomEvent)(`${this.moduleName}UserActionCompleteEvent`,t))}}isApiSupported=e=>e.some((e=>i.GPP_APIS_PREFIXES.includes(e)));getSectionPrefix=e=>i.GPP_SECTIONS[e]?i.GPP_SECTIONS[e]:i.GPP_SECTIONS.US_NATIONAL;getSectionPrefixVariations=e=>i.API_VARIATIONS[e]?i.API_VARIATIONS[e]:i.API_VARIATIONS.US_NATIONAL;getSupportedSectionPrefix=(e,t)=>{if(!e)return r.log.debug("Could not get US state."),i.GPP_SECTIONS.US_NATIONAL;r.log.debug(`Checking GPP for ${i.GPP_SECTIONS[e]?i.GPP_SECTIONS[e]:i.GPP_SECTIONS.US_NATIONAL} section(user's location: ${e})`);const n=this.getSectionPrefix(e),o=this.getSectionPrefixVariations(e),a=t.some((e=>o.includes(e)));return a||r.log.debug(`CMP does not support ${i.GPP_SECTIONS[this.usStateCode]?i.GPP_SECTIONS[this.usStateCode]:this.usStateCode} API. Checking GPP for US National.`),a?n:i.GPP_SECTIONS.US_NATIONAL};getVersionData(e,t,n){let a,s="";if(e===i.GPP_VERSIONS.v1_0){r.log.debug("Gpp getGPPData return immediately value implementation");const e=window.__gpp("getGPPData");s=e.gppString;const n=window.__gpp("getSection",null,t);a=[n]}e===i.GPP_VERSIONS.v1_0_lr&&(r.log.debug("Gpp getGPPData callback implementation"),window.__gpp("getGPPData",(e=>{s=e.gppString})),window.__gpp("getSection",(e=>{a=e}),t)),e===i.GPP_VERSIONS.v1_1&&(r.log.debug("Gpp getSection callback implementation"),s=n.gppString,window.__gpp("getSection",(e=>{a=e}),t));let c={consentString:s,consent:null,sectionId:""};if(a){r.log.debug(`[GPP] Event listener invoked with ${JSON.stringify(a)}`);const e=new o.ConsentCheck(a,t),{consent:n,sectionId:i}=e.checkGppSectionConsent();c.consent=n,c.sectionId=i}else c=null,r.log.debug(`[GPP] Section "${t}" is not supported by CMP. Event listener invoked with ${JSON.stringify(a)}`);return c}}},5483:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GppVersion",{enumerable:!0,get:function(){return r.GppVersion}});var r=n(5271)},7249:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gppConsentCheck=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(9782));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}t.gppConsentCheck=r},2525:function(e,t,n){"use strict";Object.defineProperty(t,"mF",{enumerable:!0,get:function(){return o.gppConsentCheck}}),Object.defineProperty(t,"ff",{enumerable:!0,get:function(){return r.tcfConsentCheck}});var r=n(3166),o=n(7249)},4351:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getConsent=void 0;var r=n(653),o=n(4738),i=n(4037);t.getConsent=e=>{const t=(e=>{try{return new o.TCString(e).getCoreSegmentData()}catch(e){r.log.error(`Failed to decode consent string. ${e}`)}})(e);return!!t&&((n=t)&&n.vendorsConsent.includes(i.LIVERAMP_VENDOR_ID)&&i.LIVERAMP_PURPOSE_IDS.every((e=>n.purposesConsent.includes(e))));var n}},4037:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LIVERAMP_VENDOR_ID=t.LIVERAMP_PURPOSE_IDS=t.GDPR_COUNTRIES=void 0;t.LIVERAMP_VENDOR_ID=97,t.LIVERAMP_PURPOSE_IDS=[1,2,3,4,5,6,7,8,9,10],t.GDPR_COUNTRIES=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","GB"]},3166:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tcfConsentCheck=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(5544));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}t.tcfConsentCheck=r},5544:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTcfConsentObject=t.gdprApplies=void 0;var r=n(4351),o=n(4037),i=n(4505);const a=(e,t,n)=>{window.__tcfapi("addEventListener",2,((o,a)=>{if(a&&("tcloaded"===o.eventStatus||"useractioncomplete"===o.eventStatus)){const a=(0,r.getConsent)(o.tcString);if(e.consent=a,e.isUserInteraction="useractioncomplete"===o.eventStatus,e.consentString=o.tcString,e.isUserInteraction&&!t)return void(0,i.dispatchCustomEvent)(`${n}UserActionCompleteEvent`,e);(0,i.dispatchCustomEvent)(`${n}RecheckAtsConsentEvent`,e),t=!1}})),t&&(t=!1,(0,i.dispatchCustomEvent)(`${n}RecheckAtsConsentEvent`,e))};t.getTcfConsentObject=(e,t)=>{let n=0;const r={cmpType:"gdpr",consent:null,isUserInteraction:!1,consentString:null};if(window.__tcfapi)a(r,e,t);else{(0,i.dispatchCustomEvent)(`${t}RecheckAtsConsentEvent`,r);const o=setInterval((()=>{++n,window.__tcfapi?(clearInterval(o),a(r,e,t)):10===n&&(clearInterval(o),(0,i.dispatchCustomEvent)(`${t}RecheckAtsConsentEvent`,r))}),200)}};t.gdprApplies=e=>o.GDPR_COUNTRIES.includes(e)},8036:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeFromBase64=function(e,t){const n=function(e){let t=e;for(;t.length%4!=0;)t+="=";t=t.replace(/-/g,"+").replace(/_/g,"/");const n=o.default.decode(t);let r="";for(let e=0;e{const{name:s,numBits:f}=n,{fieldValue:g,newPosition:b}=function(e,t,n,r){const{type:s,numBits:f}=r,g="function"==typeof f?f(t):f;switch(s){case"int":return{fieldValue:o(e,n,g)};case"bool":return{fieldValue:a(e,n)};case"date":return{fieldValue:i(e,n,g)};case"list":return{fieldValue:l(e,n,g)};case"textcode":return{fieldValue:c(e,n,g)};case"range":return u(e,n);case"minlist":return d(e,n,g);case"array":return p(e,n,g,r);default:throw new Error(`TCString - Unknown field type ${s} for decoding`)}}(e,t,r,n);return void 0!==g&&(t[s]=g),void 0!==b?r=b:"number"==typeof f&&(r+=f),t}),{});return{decodedObject:s,newPosition:r}}function p(e,t,n,r){let i=t;const a=[],s=o(e,i,n);i+=n;for(let t=0;t0&&(this.core=this.setCoreSegmentString(t[0])),t.length>2)throw new Error("Unknown segment type in consent string")}}setCoreSegmentString=e=>(0,o.decodeFromBase64)(e,i.default.core);getCoreSegmentData=()=>this.core?{...this.core}:null}},5588:function(e,t){"use strict";function n(e,t="0"){let n="";for(let r=0;r{e>t&&(t=e)})),t},t.padLeft=function(e,t){return n(Math.max(0,t))+e},t.padRight=function(e,t){return e+n(Math.max(0,t))}},4505:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dispatchCustomEvent=void 0;t.dispatchCustomEvent=async(e,t)=>{const n=new CustomEvent(e,{detail:t});window.dispatchEvent(n)}},9937:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(8309);function o(e,t){const n={...e,...t};return Object.keys(e).forEach((i=>{e[i]&&"object"==typeof e[i]&&((0,r.isObject)(e[i])&&t[i]?n[i]=o(e[i],t[i]):!t[i]||t[i].constructor!==String&&t[i].constructor!==Array?e[i].constructor===String||e[i].constructor===Array?n[i]=e[i]:n[i]={...e[i],...t[i]}:n[i]=t[i])})),n}t.default=new class{constructor(){this.validKeys={}}update=(e,t)=>{if(e&&"object"==typeof e){t&&(this.validKeys=Object.keys(e));const{validUpdates:n}=Object.keys(e).reduce(((t,n)=>(this.validKeys.indexOf(n)>-1&&(t.validUpdates={...t.validUpdates,[n]:e[n]}),t)),{validUpdates:{}}),r=o(this,n);Object.assign(this,r)}}}},1469:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cmpUtils=t.cmpStorage=void 0,Object.defineProperty(t,"config",{enumerable:!0,get:function(){return o.default}}),t.locationHandler=void 0,Object.defineProperty(t,"log",{enumerable:!0,get:function(){return i.default}}),t.portal=void 0,Object.defineProperty(t,"setLogger",{enumerable:!0,get:function(){return i.setLogger}});var r,o=(r=n(9937))&&r.__esModule?r:{default:r},i=d(n(8237)),a=d(n(5716));t.portal=a;var s=d(n(5269));t.cmpStorage=s;var c=d(n(8309));t.cmpUtils=c;var u=d(n(4447));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function d(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}t.locationHandler=u},4447:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateGeoTargeting=t.isLocationUs=t.isLocationSupported=t.getLocation=void 0;var r=s(n(9937)),o=s(n(8237)),i=n(8309),a=n(5269);function s(e){return e&&e.__esModule?e:{default:e}}t.updateGeoTargeting=e=>{const t=document.getElementById("liveramp-cmp-wrapper");if(t){const{geoTargeting:n}=t.dataset;if(n)try{e.geoTargeting=JSON.parse(n),o.default.debug("Updated geo targeting: ",n)}catch(e){o.default.error("Unable to parse geo targeting: ",e)}}return e};t.getLocation=async()=>{let e=await(0,a.readGeoLocation)();if(e=(e=>{const t=(0,i.getUrlParam)("lrcountry"),n=(0,i.getUrlParam)("lrregion");return e?(t&&(e.country=t),n&&(e.region=n),e):{country:t,region:n}})(e),e&&e.country)return e;try{const e=await fetch(r.default.geoTargetingUrl,{headers:{Accept:"application/json","Content-Type":"application/json"}});if(e){const t=await e.json();if(t&&t.country)return(0,a.writeGeoLocation)(JSON.stringify(t),!0),t}}catch(e){return o.default.warn("Location Data Unavailable. Some features may be limited. Please allow location services for full functionality.",e),null}};const c=e=>"US"===e;t.isLocationUs=c;t.isLocationSupported=(e,t)=>{let n=!1;if(t.allCountries)n=!0;else if(e){const r=t.countries.includes(e.country);if(r&&c(e.country))if(t.allStates)n=!0;else{const r=!!(t.states&&t.states.length>0)&&t.states.includes(e.region);n=t.includeSelection?r:!r}else n=t.includeSelection?r:!r}return n}},8237:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setLogger=t.default=void 0;var r,o=(r=n(9937))&&r.__esModule?r:{default:r};let i=null,a=null;t.setLogger=(e,t)=>{i=e,a=t};const s=["debug","info","warn","error"];t.default=s.reduce(((e,t,n)=>(e[t]=(...e)=>{const r="debug"===t?"log":t;let{logging:c}=o.default;if(void 0===c&&(c=i),Function.prototype.bind&&window.console&&"object"==typeof console.log&&["log","info","warn","error","assert","dir","clear","profile","profileEnd"].forEach((e=>{console[e]=(void 0).bind(console[e],console)}),Function.prototype.call),c&&console&&"function"==typeof console[r]){const o=s.indexOf(c.toString().toLocaleLowerCase());if(!0===c||o>-1&&n>=o){const[n,...o]=[...e];console[r](`${t.toUpperCase()} - ${a||"(GlobalCmp)"} ${n}`,...o)}}},e)),{})},5716:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openGlobalPortal=b,t.openSharedPortal=h,t.sendGlobalPortalCommand=function(e,t){const n="vp:"+ ++l;return new Promise(((r,o)=>b(t).then((i=>{v(i,e,t,f,n,r,o)})).catch(o)))},t.sendSharedPortalCommand=function(e,t){const n="vp:"+ ++d;return new Promise(((r,o)=>h(t).then((i=>{v(i,e,t,p,n,r,o)})).catch(o)))};var r,o=(r=n(9937))&&r.__esModule?r:{default:r};const i=5e4,a=5e3,s="lrcmpData";let c,u,l=0,d=0;const f={},p={};function g(e,t,n){return new Promise(((r,o)=>{const a=function(e){const t=document.createElement("iframe");return t.setAttribute("style","display: none;"),t.setAttribute("src",e),t}(e),c=function(e){const t=setInterval((()=>{document.body&&(document.body.appendChild(e),clearInterval(t))}),5);return t}(a);let u=setTimeout((()=>{clearInterval(c),o(new Error(`Communication could not be established with the portal domain within ${i} milliseconds`))}),i);window.addEventListener("message",(e=>{if(e&&e.data){const o=e.data[n||s];if(o)if("isLoaded"===o.command&&u)clearTimeout(u),u=void 0,r(a);else{const e=t[o.callId];if(e){const{timeout:n}=e,r=e.resolve;delete t[o.callId],clearTimeout(n),r(o.result)}}}}))}))}function b(e){return u||(u=g(o.default.globalConsentLocation,f,e)),u}function h(e){return c||(c=g(o.default.sharedConsentLocation,p,e)),c}function v(e,t,n,r,o,i,c){const u=setTimeout((()=>{delete r[o],c(new Error(`${t.command} response not received from portal domain within ${a} milliseconds`))}),a);r[o]={resolve:i,timeout:u};const l={};l[n||s]={callId:o,...t},e.contentWindow.postMessage(l,"*")}},5269:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_AGE=void 0,t.readCookie=g,t.readData=v,t.readFromLocalStorage=p,t.readFromPortal=m,t.readGeoLocation=function(){if(!i.isSafari&&r.default.thirdPartyCookieSync)return m(a.sendSharedPortalCommand,l,d).then((e=>{o.default.debug("Read geo location from portal: ",e);try{if(e)return O(e),JSON.parse(e)}catch(e){o.default.debug("Error while parsing geoLocation from portal: ",e)}return w()}));return Promise.resolve(w())},t.writeCookie=b,t.writeData=y,t.writeGeoLocation=O,t.writeOnPortal=S,t.writeToLocalStorage=h;var r=s(n(9937)),o=s(n(8237)),i=n(8309),a=n(5716);function s(e){return e&&e.__esModule?e:{default:e}}const c="Thu, 01 Jan 1970 00:00:01 GMT;",u=t.MAX_AGE=33696e3,l="lrcmpData",d="geo-location",f=86400;function p(e,t=!1,n=!1){try{if(localStorage)if(n){const t=localStorage.getItem(e);if(t)return t}else{const n=JSON.parse(localStorage.getItem(e));if(n&&n.data){if(!n.expire||n.expire>+new Date)return n.data;if(!t){const t=g(e,!0);return t||n.data}}}}catch(t){o.default.error(`Unable to parse ${e} from localStorage: `,t)}return t?null:g(e,!0)}function g(e,t=!1){const n=`; ${document.cookie}`.split(`; ${e}=`);return n.length>=2?n.pop().split(";").shift():t?null:p(e,!0)}function b(e,t,n,o="/"){const i=null===n?"":`;max-age=${n}`,a=null===n?"":`;expires=${new Date(1*new Date+1e3*n).toUTCString()}`;o=`;path=${o}`;let s=function(){let e,t;const n="lr_get_top_level_domain=cookie",r=document.location.hostname.split(".");for(e=r.length-1;e>=0;e--)if(t=r.slice(e).join("."),document.cookie=`${n};domain=.${t};SameSite=Lax`,document.cookie.indexOf(n)>-1)return document.cookie=`${n.split("=")[0]}=;domain=.${t};expires==${c}SameSite=Lax`,t;return null}();return s=s?`;domain=.${s}`:"",t?r.default.useSecondLevelDomain?(document.cookie=`${e}=${o};expires=${c}SameSite=Lax`,document.cookie=`${e}=${t}${o}${s}${i}${a};SameSite=Lax`):(document.cookie=`${e}=${s}${o};expires=${c}SameSite=Lax`,document.cookie=`${e}=${t}${o}${i}${a};SameSite=Lax`):(document.cookie=`${e}=${o};expires=${c}SameSite=Lax`,document.cookie=`${e}=${s}${o};expires=${c}SameSite=Lax`),g(e)}function h(e,t,n=u,r=!1){try{if(localStorage){if(t){const r={data:t,expire:+new Date(1*new Date+1e3*n)};localStorage.setItem(e,JSON.stringify(r))}else localStorage.removeItem(e);return t}}catch(t){o.default.error(`Unable to store ${e} to localStorage: `,t)}return r?null:b(e,t,n)}function v(e,t=!1,n=!1){if(r.default.useExternalData){const t=(0,i.getUrlParam)(e);if(t)return o.default.debug(`Skipping cookies and localStorage for ${e}, read from query string: `,t),t}return r.default.useCookies?g(e):p(e,t,n)}function y(e,t,n,o){return r.default.useCookies?b(e,t,n,o):h(e,t,n)}function m(e,t,n){return o.default.debug("Request data from portal"),e({command:"read",name:n,useCookies:r.default.useCookies},t).then((e=>(o.default.debug("Read data from portal: ",e),e))).catch((e=>{o.default.error("Failed reading from portal: ",e)}))}function S(e,t,n,i,a){return o.default.debug("Send data to portal: ",i),e({command:"write",name:n,value:i,maxAgeSeconds:a,useCookies:r.default.useCookies},t).catch((e=>{o.default.error("Failed writing data on portal: ",e)}))}function w(){const e=v(d);if(o.default.debug("Read local geoLocation: ",e),e)try{return JSON.parse(e)}catch(e){o.default.debug("Error while parsing local geoLocation: ",e)}return e}function O(e,t){o.default.debug("Writing geoLocation: ",e),!i.isSafari&&r.default.thirdPartyCookieSync&&t&&S(a.sendSharedPortalCommand,l,d,e,f),y(d,e,f)}},8309:function(e){"use strict";const t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);function n(){return!!window.navigator.globalPrivacyControl}function r(){const e=window.doNotTrack||window.navigator.doNotTrack||window.navigator.msDoNotTrack;return!!e&&("1"===e.charAt(0)||"yes"===e)}e.exports={isSafari:t,getDecisecond:function(){const e=new Date,t=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate());return Math.round(t/100)},isDoNotTrackEnabled:r,isBoolean:function(e){return!1===e||!0===e},isObject:function(e){const t=typeof e;return("function"===t||"object"===t&&!!e)&&e.constructor!==Array},isObjectEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},orderObject:function(e){return Object.keys(e).sort().reduce(((t,n)=>(t[n]=e[n],Array.isArray(t[n])&&t[n].sort(),t)),{})},hashCode:function(e){let t=0;const n=e.length;let r=0;if(n>0)for(;r{e(t)}},shouldCcpaBeSuppressed:function(e){const t=r()&&e.doNotTrack,o=n()&&e.globalPrivacyControl;return e.enabled&&(t||o)},dispatchCustomEvent:function(e,t){const n=new CustomEvent(e,{detail:t});window.dispatchEvent(n)},isGlobalPrivacyControlEnabled:n}},653:function(e,t,n){e.exports=n(1469)},3418:function(e,t,n){var r;e=n.nmd(e),function(){var o=t,i=(e&&e.exports,"object"==typeof n.g&&n.g);i.global!==i&&i.window;var a=function(e){this.message=e};(a.prototype=new Error).name="InvalidCharacterError";var s=function(e){throw new a(e)},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=/[\t\n\f\r ]/g,l={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&s("The string to be encoded contains characters outside of the Latin1 range.");for(var t,n,r,o,i=e.length%3,a="",u=-1,l=e.length-i;++u>18&63)+c.charAt(o>>12&63)+c.charAt(o>>6&63)+c.charAt(63&o);return 2==i?(t=e.charCodeAt(u)<<8,n=e.charCodeAt(++u),a+=c.charAt((o=t+n)>>10)+c.charAt(o>>4&63)+c.charAt(o<<2&63)+"="):1==i&&(o=e.charCodeAt(u),a+=c.charAt(o>>2)+c.charAt(o<<4&63)+"=="),a},decode:function(e){var t=(e=String(e).replace(u,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&s("Invalid character: the string to be decoded is not correctly encoded.");for(var n,r,o=0,i="",a=-1;++a>(-2*o&6)));return i},version:"1.0.0"};void 0===(r=function(){return l}.call(t,n,t,e))||(e.exports=r)}()},2471:function(e,t){var n,r;r="undefined"!=typeof self?self:this,n=function(){return function(e){"use strict";if("function"!=typeof Promise)throw"Promise support required";var t=e.crypto||e.msCrypto;if(t){var n=t.subtle||t.webkitSubtle;if(n){var r=e.Crypto||t.constructor||Object,o=e.SubtleCrypto||n.constructor||Object,i=(e.CryptoKey||e.Key,e.navigator.userAgent.indexOf("Edge/")>-1),a=!!e.msCrypto&&!i,s=!t.subtle&&!!t.webkitSubtle;if(a||s){var c={KoZIhvcNAQEB:"1.2.840.113549.1.1.1"},u={"1.2.840.113549.1.1.1":"KoZIhvcNAQEB"};if(["generateKey","importKey","unwrapKey"].forEach((function(e){var r=n[e];n[e]=function(o,i,c){var u,l,d,g,S=[].slice.call(arguments);switch(e){case"generateKey":u=b(o),l=i,d=c;break;case"importKey":u=b(c),l=S[3],d=S[4],"jwk"===o&&((i=v(i)).alg||(i.alg=h(u)),i.key_ops||(i.key_ops="oct"!==i.kty?"d"in i?d.filter(A):d.filter(E):d.slice()),S[1]=y(i));break;case"unwrapKey":u=S[4],l=S[5],d=S[6],S[2]=c._key}if("generateKey"===e&&"HMAC"===u.name&&u.hash)return u.length=u.length||{"SHA-1":512,"SHA-256":512,"SHA-384":1024,"SHA-512":1024}[u.hash.name],n.importKey("raw",t.getRandomValues(new Uint8Array(u.length+7>>3)),u,l,d);if(s&&"generateKey"===e&&"RSASSA-PKCS1-v1_5"===u.name&&(!u.modulusLength||u.modulusLength>=2048))return(o=b(o)).name="RSAES-PKCS1-v1_5",delete o.hash,n.generateKey(o,!0,["encrypt","decrypt"]).then((function(e){return Promise.all([n.exportKey("jwk",e.publicKey),n.exportKey("jwk",e.privateKey)])})).then((function(e){return e[0].alg=e[1].alg=h(u),e[0].key_ops=d.filter(E),e[1].key_ops=d.filter(A),Promise.all([n.importKey("jwk",e[0],u,!0,e[0].key_ops),n.importKey("jwk",e[1],u,l,e[1].key_ops)])})).then((function(e){return{publicKey:e[0],privateKey:e[1]}}));if((s||a&&"SHA-1"===(u.hash||{}).name)&&"importKey"===e&&"jwk"===o&&"HMAC"===u.name&&"oct"===i.kty)return n.importKey("raw",p(f(i.k)),c,S[3],S[4]);if(s&&"importKey"===e&&("spki"===o||"pkcs8"===o))return n.importKey("jwk",m(i),c,S[3],S[4]);if(a&&"unwrapKey"===e)return n.decrypt(S[3],c,i).then((function(e){return n.importKey(o,e,S[4],S[5],S[6])}));try{g=r.apply(n,S)}catch(e){return Promise.reject(e)}return a&&(g=new Promise((function(e,t){g.onabort=g.onerror=function(e){t(e)},g.oncomplete=function(t){e(t.target.result)}}))),g=g.then((function(e){return"HMAC"===u.name&&(u.length||(u.length=8*e.algorithm.length)),0==u.name.search("RSA")&&(u.modulusLength||(u.modulusLength=(e.publicKey||e).algorithm.modulusLength),u.publicExponent||(u.publicExponent=(e.publicKey||e).algorithm.publicExponent)),e=e.publicKey&&e.privateKey?{publicKey:new C(e.publicKey,u,l,d.filter(E)),privateKey:new C(e.privateKey,u,l,d.filter(A))}:new C(e,u,l,d)}))}})),["exportKey","wrapKey"].forEach((function(e){var t=n[e];n[e]=function(r,o,i){var c,u=[].slice.call(arguments);switch(e){case"exportKey":u[1]=o._key;break;case"wrapKey":u[1]=o._key,u[2]=i._key}if((s||a&&"SHA-1"===(o.algorithm.hash||{}).name)&&"exportKey"===e&&"jwk"===r&&"HMAC"===o.algorithm.name&&(u[0]="raw"),!s||"exportKey"!==e||"spki"!==r&&"pkcs8"!==r||(u[0]="jwk"),a&&"wrapKey"===e)return n.exportKey(r,o).then((function(e){return"jwk"===r&&(e=p(unescape(encodeURIComponent(JSON.stringify(v(e)))))),n.encrypt(u[3],i,e)}));try{c=t.apply(n,u)}catch(e){return Promise.reject(e)}return a&&(c=new Promise((function(e,t){c.onabort=c.onerror=function(e){t(e)},c.oncomplete=function(t){e(t.target.result)}}))),"exportKey"===e&&"jwk"===r&&(c=c.then((function(e){return(s||a&&"SHA-1"===(o.algorithm.hash||{}).name)&&"HMAC"===o.algorithm.name?{kty:"oct",alg:h(o.algorithm),key_ops:o.usages.slice(),ext:!0,k:d(g(e))}:((e=v(e)).alg||(e.alg=h(o.algorithm)),e.key_ops||(e.key_ops="public"===o.type?o.usages.filter(E):"private"===o.type?o.usages.filter(A):o.usages.slice()),e)}))),!s||"exportKey"!==e||"spki"!==r&&"pkcs8"!==r||(c=c.then((function(e){return e=S(v(e))}))),c}})),["encrypt","decrypt","sign","verify"].forEach((function(e){var t=n[e];n[e]=function(r,o,i,s){if(a&&(!i.byteLength||s&&!s.byteLength))throw new Error("Empty input is not allowed");var c,u=[].slice.call(arguments),l=b(r);if(!a||"sign"!==e&&"verify"!==e||"RSASSA-PKCS1-v1_5"!==r&&"HMAC"!==r||(u[0]={name:r}),a&&o.algorithm.hash&&(u[0].hash=u[0].hash||o.algorithm.hash),a&&"decrypt"===e&&"AES-GCM"===l.name){var d=r.tagLength>>3;u[2]=(i.buffer||i).slice(0,i.byteLength-d),r.tag=(i.buffer||i).slice(i.byteLength-d)}a&&"AES-GCM"===l.name&&void 0===u[0].tagLength&&(u[0].tagLength=128),u[1]=o._key;try{c=t.apply(n,u)}catch(e){return Promise.reject(e)}return a&&(c=new Promise((function(t,n){c.onabort=c.onerror=function(e){n(e)},c.oncomplete=function(n){if(n=n.target.result,"encrypt"===e&&n instanceof AesGcmEncryptResult){var r=n.ciphertext,o=n.tag;(n=new Uint8Array(r.byteLength+o.byteLength)).set(new Uint8Array(r),0),n.set(new Uint8Array(o),r.byteLength),n=n.buffer}t(n)}}))),c}})),a){var l=n.digest;n.digest=function(e,t){if(!t.byteLength)throw new Error("Empty input is not allowed");var r;try{r=l.call(n,e,t)}catch(e){return Promise.reject(e)}return r=new Promise((function(e,t){r.onabort=r.onerror=function(e){t(e)},r.oncomplete=function(t){e(t.target.result)}}))},e.crypto=Object.create(t,{getRandomValues:{value:function(e){return t.getRandomValues(e)}},subtle:{value:n}}),e.CryptoKey=C}s&&(t.subtle=n,e.Crypto=r,e.SubtleCrypto=o,e.CryptoKey=C)}}}function d(e){return btoa(e).replace(/\=+$/,"").replace(/\+/g,"-").replace(/\//g,"_")}function f(e){return e=(e+="===").slice(0,-e.length%4),atob(e.replace(/-/g,"+").replace(/_/g,"/"))}function p(e){for(var t=new Uint8Array(e.length),n=0;n2&&(n=!0,t.shift());var r={ext:!0};if("1.2.840.113549.1.1.1"!==t[0][0])throw new TypeError("Unsupported key type");var o=["n","e","d","p","q","dp","dq","qi"],i=w(t[1]);n&&i.shift();for(var a=0;a2&&(r=!0,i.unshift(new Uint8Array([0]))),n[0][0]="1.2.840.113549.1.1.1",t=i,n.push(new Uint8Array(O(t)).buffer),r?n.unshift(new Uint8Array([0])):n[1]={tag:3,value:n[1]},new Uint8Array(O(n)).buffer}function w(e,t){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),t||(t={pos:0,end:e.length}),t.end-t.pos<2||t.end>e.length)throw new RangeError("Malformed DER");var n,r=e[t.pos++],o=e[t.pos++];if(o>=128){if(o&=127,t.end-t.pos=128){var s=r;for(r=4,t.splice(o,0,s>>24&255,s>>16&255,s>>8&255,255&s);r>1&&!(s>>24);)s<<=8,r--;r<4&&t.splice(o,4-r),r|=128}return t.splice(o-2,2,n,r),t}function C(e,t,n,r){Object.defineProperties(this,{_key:{value:e},type:{value:e.type,enumerable:!0},extractable:{value:void 0===n?e.extractable:n,enumerable:!0},algorithm:{value:void 0===t?e.algorithm:t,enumerable:!0},usages:{value:void 0===r?e.usages:r,enumerable:!0}})}function E(e){return"verify"===e||"encrypt"===e||"wrapKey"===e}function A(e){return"sign"===e||"decrypt"===e||"unwrapKey"===e}}(r)}.apply(t,[]),void 0===n||(e.exports=n)},1052:function(e,t,n){"use strict";var r=n(688),o=n(3397),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a function")}},9175:function(e,t,n){"use strict";var r=n(5309),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")}},1138:function(e,t,n){"use strict";var r=n(6854),o=n(7352),i=n(8344),a=function(e){return function(t,n,a){var s=r(t),c=i(s);if(0===c)return!e&&-1;var u,l=o(a,c);if(e&&n!=n){for(;c>l;)if((u=s[l++])!=u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},6207:function(e,t,n){"use strict";var r=n(9924),o=n(256),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},7686:function(e,t,n){"use strict";var r=n(9668);e.exports=r([].slice)},2177:function(e,t,n){"use strict";var r=n(9668),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},3891:function(e,t,n){"use strict";var r=n(4678),o=n(990),i=n(7537),a=n(2131);e.exports=function(e,t,n){for(var s=o(t),c=a.f,u=i.f,l=0;l9007199254740991)throw t("Maximum allowed index exceeded");return e}},2367:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6540:function(e,t,n){"use strict";var r=n(8655);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},1056:function(e,t,n){"use strict";var r=n(2438);e.exports="NODE"===r},8655:function(e,t,n){"use strict";var r=n(3931).navigator,o=r&&r.userAgent;e.exports=o?String(o):""},2273:function(e,t,n){"use strict";var r,o,i=n(3931),a=n(8655),s=i.process,c=i.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},2438:function(e,t,n){"use strict";var r=n(3931),o=n(8655),i=n(2177),a=function(e){return o.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},5532:function(e,t,n){"use strict";var r=n(3931),o=n(7537).f,i=n(2385),a=n(2470),s=n(1604),c=n(3891),u=n(1633);e.exports=function(e,t){var n,l,d,f,p,g=e.target,b=e.global,h=e.stat;if(n=b?r:h?r[g]||s(g,{}):r[g]&&r[g].prototype)for(l in t){if(f=t[l],d=e.dontCallGetSet?(p=o(n,l))&&p.value:n[l],!u(b?l:g+(h?".":"#")+l,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;c(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),a(n,l,f,e)}}},4694:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},9659:function(e,t,n){"use strict";var r=n(6398),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},4162:function(e,t,n){"use strict";var r=n(5033),o=n(1052),i=n(6398),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},6398:function(e,t,n){"use strict";var r=n(4694);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},8724:function(e,t,n){"use strict";var r=n(6398),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},453:function(e,t,n){"use strict";var r=n(9924),o=n(4678),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),c=s&&"something"===function(){}.name,u=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},5033:function(e,t,n){"use strict";var r=n(2177),o=n(9668);e.exports=function(e){if("Function"===r(e))return o(e)}},9668:function(e,t,n){"use strict";var r=n(6398),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);e.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}},2160:function(e,t,n){"use strict";var r=n(3931),o=n(688);e.exports=function(e,t){return arguments.length<2?(n=r[e],o(n)?n:void 0):r[e]&&r[e][t];var n}},5383:function(e,t,n){"use strict";var r=n(1052),o=n(5268);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},3931:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4678:function(e,t,n){"use strict";var r=n(9668),o=n(298),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},7390:function(e){"use strict";e.exports={}},8651:function(e,t,n){"use strict";var r=n(2160);e.exports=r("document","documentElement")},7913:function(e,t,n){"use strict";var r=n(9924),o=n(4694),i=n(1442);e.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},4347:function(e,t,n){"use strict";var r=n(9668),o=n(4694),i=n(2177),a=Object,s=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?s(e,""):a(e)}:a},1881:function(e,t,n){"use strict";var r=n(9668),o=n(688),i=n(6762),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},7804:function(e,t,n){"use strict";var r,o,i,a=n(4724),s=n(3931),c=n(5309),u=n(2385),l=n(4678),d=n(6762),f=n(1962),p=n(7390),g="Object already initialized",b=s.TypeError,h=s.WeakMap;if(a||d.state){var v=d.state||(d.state=new h);v.get=v.get,v.has=v.has,v.set=v.set,r=function(e,t){if(v.has(e))throw new b(g);return t.facade=e,v.set(e,t),t},o=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var y=f("state");p[y]=!0,r=function(e,t){if(l(e,y))throw new b(g);return t.facade=e,u(e,y,t),t},o=function(e){return l(e,y)?e[y]:{}},i=function(e){return l(e,y)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw new b("Incompatible receiver, "+e+" required");return n}}}},256:function(e,t,n){"use strict";var r=n(2177);e.exports=Array.isArray||function(e){return"Array"===r(e)}},688:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},1633:function(e,t,n){"use strict";var r=n(4694),o=n(688),i=/#|\.prototype\./,a=function(e,t){var n=c[s(e)];return n===l||n!==u&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},5268:function(e){"use strict";e.exports=function(e){return null==e}},5309:function(e,t,n){"use strict";var r=n(688);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},6555:function(e){"use strict";e.exports=!1},7935:function(e,t,n){"use strict";var r=n(2160),o=n(688),i=n(6148),a=n(4866),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},8344:function(e,t,n){"use strict";var r=n(7331);e.exports=function(e){return r(e.length)}},1135:function(e,t,n){"use strict";var r=n(9668),o=n(4694),i=n(688),a=n(4678),s=n(9924),c=n(453).CONFIGURABLE,u=n(1881),l=n(7804),d=l.enforce,f=l.get,p=String,g=Object.defineProperty,b=r("".slice),h=r("".replace),v=r([].join),y=s&&!o((function(){return 8!==g((function(){}),"length",{value:8}).length})),m=String(String).split("String"),S=e.exports=function(e,t,n){"Symbol("===b(p(t),0,7)&&(t="["+h(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(s?g(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&g(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&g(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return a(r,"source")||(r.source=v(m,"string"==typeof t?t:"")),e};Function.prototype.toString=S((function(){return i(this)&&f(this).source||u(this)}),"toString")},1787:function(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},2131:function(e,t,n){"use strict";var r=n(9924),o=n(7913),i=n(2666),a=n(9175),s=n(2358),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",p="writable";t.f=r?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=l(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:d in n?n[d]:r[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},7537:function(e,t,n){"use strict";var r=n(9924),o=n(8724),i=n(8208),a=n(7781),s=n(6854),c=n(2358),u=n(4678),l=n(7913),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=c(t),l)try{return d(e,t)}catch(e){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},6217:function(e,t,n){"use strict";var r=n(1528),o=n(2367).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},5168:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},6148:function(e,t,n){"use strict";var r=n(9668);e.exports=r({}.isPrototypeOf)},1528:function(e,t,n){"use strict";var r=n(9668),o=n(4678),i=n(6854),a=n(1138).indexOf,s=n(7390),c=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,l=[];for(n in r)!o(s,n)&&o(r,n)&&c(l,n);for(;t.length>u;)o(r,n=t[u++])&&(~a(l,n)||c(l,n));return l}},8208:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},110:function(e,t,n){"use strict";var r=n(8724),o=n(688),i=n(5309),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},990:function(e,t,n){"use strict";var r=n(2160),o=n(9668),i=n(6217),a=n(5168),s=n(9175),c=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?c(t,n(e)):t}},7929:function(e,t,n){"use strict";var r=n(9175);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},1166:function(e,t,n){"use strict";var r=n(5268),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e}},7994:function(e,t,n){"use strict";var r,o=n(3931),i=n(9659),a=n(688),s=n(2438),c=n(8655),u=n(7686),l=n(4051),d=o.Function,f=/MSIE .\./.test(c)||"BUN"===s&&((r=o.Bun.version.split(".")).length<3||"0"===r[0]&&(r[1]<3||"3"===r[1]&&"0"===r[2]));e.exports=function(e,t){var n=t?2:1;return f?function(r,o){var s=l(arguments.length,1)>n,c=a(r)?r:d(r),f=s?u(arguments,n):[],p=s?function(){i(c,this,f)}:c;return t?e(p,o):e(p)}:e}},1962:function(e,t,n){"use strict";var r=n(2645),o=n(5736),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},6762:function(e,t,n){"use strict";var r=n(6555),o=n(3931),i=n(1604),a="__core-js_shared__",s=e.exports=o[a]||i(a,{});(s.versions||(s.versions=[])).push({version:"3.41.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})},2645:function(e,t,n){"use strict";var r=n(6762);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},4112:function(e,t,n){"use strict";var r=n(2273),o=n(4694),i=n(3931).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},9891:function(e,t,n){"use strict";var r,o,i,a,s=n(3931),c=n(9659),u=n(4162),l=n(688),d=n(4678),f=n(4694),p=n(8651),g=n(7686),b=n(1442),h=n(4051),v=n(6540),y=n(1056),m=s.setImmediate,S=s.clearImmediate,w=s.process,O=s.Dispatch,C=s.Function,E=s.MessageChannel,A=s.String,P=0,_={},I="onreadystatechange";f((function(){r=s.location}));var T=function(e){if(d(_,e)){var t=_[e];delete _[e],t()}},N=function(e){return function(){T(e)}},x=function(e){T(e.data)},R=function(e){s.postMessage(A(e),r.protocol+"//"+r.host)};m&&S||(m=function(e){h(arguments.length,1);var t=l(e)?e:C(e),n=g(arguments,1);return _[++P]=function(){c(t,void 0,n)},o(P),P},S=function(e){delete _[e]},y?o=function(e){w.nextTick(N(e))}:O&&O.now?o=function(e){O.now(N(e))}:E&&!v?(a=(i=new E).port2,i.port1.onmessage=x,o=u(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(R)?(o=R,s.addEventListener("message",x,!1)):o=I in b("script")?function(e){p.appendChild(b("script"))[I]=function(){p.removeChild(this),T(e)}}:function(e){setTimeout(N(e),0)}),e.exports={set:m,clear:S}},7352:function(e,t,n){"use strict";var r=n(1680),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},6854:function(e,t,n){"use strict";var r=n(4347),o=n(1166);e.exports=function(e){return r(o(e))}},1680:function(e,t,n){"use strict";var r=n(1787);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},7331:function(e,t,n){"use strict";var r=n(1680),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(t,9007199254740991):0}},298:function(e,t,n){"use strict";var r=n(1166),o=Object;e.exports=function(e){return o(r(e))}},1272:function(e,t,n){"use strict";var r=n(8724),o=n(5309),i=n(7935),a=n(5383),s=n(110),c=n(2032),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,c=a(e,l);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!o(n)||i(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},2358:function(e,t,n){"use strict";var r=n(1272),o=n(7935);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},3397:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},5736:function(e,t,n){"use strict";var r=n(9668),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},4866:function(e,t,n){"use strict";var r=n(4112);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},2666:function(e,t,n){"use strict";var r=n(9924),o=n(4694);e.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4051:function(e){"use strict";var t=TypeError;e.exports=function(e,n){if(e-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function g(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function b(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function h(e){var t=new FileReader,n=b(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var n;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:t&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&i&&((n=e)&&DataView.prototype.isPrototypeOf(n))?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=g(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=g(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(i)return this.blob().then(h);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,o,i=g(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=b(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=r?r[1]:"utf-8",t.readAsText(e,o),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?o:r),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal||function(){if("AbortController"in e)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==n.cache&&"no-cache"!==n.cache)){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function O(e,t){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})},y.call(S.prototype),y.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},O.error=function(){var e=new O(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var C=[301,302,303,307,308];O.redirect=function(e,t){if(-1===C.indexOf(t))throw new RangeError("Invalid status code");return new O(null,{status:t,headers:{location:e}})};var E=e.DOMException;try{new E}catch(e){(E=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),E.prototype.constructor=E}function A(t,n){return new Promise((function(r,o){var a=new S(t,n);if(a.signal&&a.signal.aborted)return o(new E("Aborted","AbortError"));var c=new XMLHttpRequest;function u(){c.abort()}if(c.onload=function(){var e,t,n={statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();try{t.append(r,o)}catch(e){console.warn("Response "+e.message)}}})),t)};0===a.url.indexOf("file://")&&(c.status<200||c.status>599)?n.status=200:n.status=c.status,n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var o="response"in c?c.response:c.responseText;setTimeout((function(){r(new O(o,n))}),0)},c.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request timed out"))}),0)},c.onabort=function(){setTimeout((function(){o(new E("Aborted","AbortError"))}),0)},c.open(a.method,function(t){try{return""===t&&e.location.href?e.location.href:t}catch(e){return t}}(a.url),!0),"include"===a.credentials?c.withCredentials=!0:"omit"===a.credentials&&(c.withCredentials=!1),"responseType"in c&&(i?c.responseType="blob":s&&(c.responseType="arraybuffer")),n&&"object"==typeof n.headers&&!(n.headers instanceof p||e.Headers&&n.headers instanceof e.Headers)){var f=[];Object.getOwnPropertyNames(n.headers).forEach((function(e){f.push(l(e)),c.setRequestHeader(e,d(n.headers[e]))})),a.headers.forEach((function(e,t){-1===f.indexOf(t)&&c.setRequestHeader(t,e)}))}else a.headers.forEach((function(e,t){c.setRequestHeader(t,e)}));a.signal&&(a.signal.addEventListener("abort",u),c.onreadystatechange=function(){4===c.readyState&&a.signal.removeEventListener("abort",u)}),c.send(void 0===a._bodyInit?null:a._bodyInit)}))}A.polyfill=!0,e.fetch||(e.fetch=A,e.Headers=p,e.Request=S,e.Response=O);n(2471);function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function _(e){var t=function(e,t){if("object"!=P(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==P(t)?t:t+""}var I=n(653);const T={placementID:-1,storageType:"cookie",expirationTime:1296e6,expirationRefreshTime:18e5,logging:void 0,email:void 0,emailHashes:void 0,urlHashType:void 0,phoneNumber:void 0,phoneNumberHashes:void 0,customerID:void 0,accountID:void 0,customerIDRegex:void 0,catchIdentifier:!0,ccpaConsentString:void 0,gdprConsentString:void 0,gppConsentString:void 0,startWithExternalId:!1,rootDomain:void 0,testMode:!1,useESP:!1,usePAIR:!1,useDirect:!1};var N=new class{constructor(){var e,t,n;e=this,n=e=>{if(e){const t=function(e,t){const n={...e};for(const e in t)"placementID"===e?Number.isInteger(+t.placementID)?n.placementID=+t.placementID:I.log.error("placementID is not a number!"):"expirationTime"===e?Number.isInteger(+t.expirationTime)?n.expirationTime=+t.expirationTime:I.log.error("expirationTime is not a number!"):n[e]=t[e];return n}(this,e);Object.assign(this,t)}},(t=_(t="update"))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,this.update(T)}};function x(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:31536e3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,i=new Date;i.setTime(i.getTime()+1e3*n);let a=";expires="+i.toUTCString(),s=";max-age="+n,c=";path="+r,u=o?";domain="+o:"",l=e+"="+encodeURIComponent(t);document.cookie=l+s+a+u+c}function R(e){const t=e+"=",n=document.cookie.split(";");for(let e=0;e{I.log.debug("Consent is given, module will start!")},Z=e=>{e===M?I.log.debug("Consent is rejected. Envelope will be removed and module will shutdown!"):I.log.debug("Consent is rejected. Module will shutdown!")},Y=()=>{I.log.debug("Consent was given. Module is already running!")};function Q(e){return function(e){for(var t,n="0123456789ABCDEF",r="",o=0;o>>4&15)+n.charAt(15&t);return r}(function(e){for(var t="",n=0;n<32*e.length;n+=8)t+=String.fromCharCode(e[n>>5]>>>n%32&255);return t}(function(e,t){e[t>>5]|=128<>>9<<4)]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,a=0;a>2),n=0;n>5]|=(255&e.charCodeAt(n/8))<>>32-t}(ie(ie(t,e),ie(r,i)),o),n)}function te(e,t,n,r,o,i,a){return ee(t&n|~t&r,e,t,o,i,a)}function ne(e,t,n,r,o,i,a){return ee(t&r|n&~r,e,t,o,i,a)}function re(e,t,n,r,o,i,a){return ee(t^n^r,e,t,o,i,a)}function oe(e,t,n,r,o,i,a){return ee(n^(t|~r),e,t,o,i,a)}function ie(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}const ae=/((([^<>()\[\].,;:\s@"]+(\.[^<>()\[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,}))/i;function se(e){if(window.TextEncoder)return new TextEncoder("utf-8").encode(e);const t=unescape(encodeURIComponent(e)),n=new Uint8Array(t.length);for(let e=0;e{window.googletag&&window.googletag.cmd&&e?window.googletag.cmd.push((()=>{window.googletag.pubads().setTargeting("atsd",e)})):I.log.warn("Can't set page ad targeting. Missing audienceIds or GPT library.")};let _e=!1;const Ie=async()=>{let e=Ne();return e.country||(e=await xe.getGeoLocation(),e.region&&x("_lr_geo_location_state",e.region,172800),e.country||(e.country="US"),x("_lr_geo_location",e.country,172800)),_e="US"===e.country,e},Te=()=>_e,Ne=()=>({country:""+R("_lr_geo_location"),region:""+R("_lr_geo_location_state")}),xe={getGeoLocation:async()=>{const e=await F("https://geo.privacymanager.io/");if(e)return e;I.log.error("Geo location is undefined or empty")}};const Re="https://api.rlcdn.com/api/identity/v2/envelope";let Le=!1,De=!1;async function je(e,t){let n="";N.customerID&&N.accountID?n=`&it=15&iv=${N.accountID}:${N.customerID}`:["sha256Email","sha1Email","md5Email","phoneNumber"].forEach((t=>{e[t]&&(n+=`&it=${"phoneNumber"===t?11:4}&iv=${e[t]}`)}));const r=Ye(t,n,!0)+Xe();await ke(r)}async function ke(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(N.testMode){const e="MOCKED_ENVELOPE";I.log.debug("New mocked envelope: ",e);Me(Ge(e,n[j.LIVERAMP]))}else try{const r=await F(e);r&&r.envelopes&&r.envelopes.length>0?r.envelopes.filter((e=>e)).forEach((e=>{if(e.type!==U.LIVERAMP||void 0!==t&&t!==j.LIVERAMP)if(e.type!==U.FACEBOOK||void 0!==t&&t!==j.FACEBOOK)if(e.type!==U.PAIR_ID||void 0!==t&&t!==j.PAIR_ID||!N.usePAIR)if(e.type===U.ATS_DIRECT&&(void 0===t||t===j.ATS_DIRECT&&N.useDirect)){let t=JSON.parse(atob(e.value));Pe(t),Ue(t,j.ATS_DIRECT,n[j.ATS_DIRECT])}else e.type===U.GOOGLE_SSP&&(void 0===t||t===j.GOOGLE_SSP&&N.useESP)&&Te()&&(Ue(e.value,j.GOOGLE_SSP,n[j.GOOGLE_SSP]),We(j.GOOGLE_SSP));else{Ue(JSON.parse(atob(e.value)),j.PAIR_ID,n[j.PAIR_ID])}else e.err?I.log.error("Facebook envelope error: ",e.err):e.value&&""!==e.value?Ue(e.value,j.FACEBOOK,n[j.FACEBOOK]):I.log.error("Envelope retrieved from API is undefined or empty");else e.err?I.log.error("Liveramp envelope error: ",e.err):e.value&&""!==e.value?(Ue(e.value,j.LIVERAMP,n[j.LIVERAMP]),!r.envelopes.find((e=>e.type===U.GOOGLE_SSP))&&N.useESP&&We(j.LIVERAMP)):I.log.error("Envelope retrieved from API is undefined or empty")})):I.log.error("Envelope retrieved from API is undefined or empty")}catch(e){I.log.error("Error from envelope API: ",e)}}function Ue(e,t,n){const r=Ge(e,n);I.log.debug(`Encoded ${t} envelope: `,JSON.stringify(r)),Me(r,t)}function Ge(e,t){const n={timestamp:+new Date,version:"1.6.0",envelope:e,creationTimestamp:t||+new Date};return btoa(JSON.stringify(n))}function Me(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.LIVERAMP;var n,r;"cookie"===N.storageType?Le?x(k[t],e,31536e3,"/",N.rootDomain):x(k[t],e):(n=k[t],(r=e)&&localStorage.setItem(n,r)),t===j.LIVERAMP?we("lrEnvelopePresent"):t===j.FACEBOOK?we("fbEnvelopePresent"):t===j.ATS_DIRECT?we("atsDirectEnvelopePresent"):t===j.GOOGLE_SSP?we("googleSspEnvelopePresent"):we("pairIdEnvelopePresent")}async function Be(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j.LIVERAMP;const n=$e(t);if(void 0===n||""===n)I.log.debug(`There is no ${t.toLowerCase()} envelope in storage.`);else try{JSON.parse(atob(n)).timestamp+2592e6<+new Date?Ke(t):e=atob(n)}catch(e){I.log.error("Envelope is invalid: "+e),Ke(t)}return e}async function He(e){let t,n,r;if(e?t=await async function(e){if(de(e=function(e){const t=(e=e.toLowerCase().trim()).split("@");let n=t[0];const r=t[1];let o=n.indexOf("+");return-1===o&&(o=n.indexOf(" ")),-1===o&&(o=n.indexOf("%2b")),-1!==o&&(n=n.slice(0,o)),"gmail.com"===r&&(n=n.replace(/\./g,"")),n+"@"+r}(e))){const t={sha256Email:await ue(e),sha1Email:await le(e),md5Email:await ce(e)};return""===t.sha1Email&&delete t.sha1Email,""===t.sha256Email&&delete t.sha256Email,t}}(e):N.emailHashes&&(n=function(){const e={};if(!N.email&&N.emailHashes)return N.emailHashes[0]&&(me(N.emailHashes[0])?Se(e,N.emailHashes[0]):I.log.debug(N.emailHashes[0]+" is invalid hash")),N.emailHashes[1]&&(me(N.emailHashes[1])?Se(e,N.emailHashes[1]):I.log.debug(N.emailHashes[1]+" is invalid hash")),N.emailHashes[2]&&(me(N.emailHashes[2])?Se(e,N.emailHashes[2]):I.log.debug(N.emailHashes[2]+" is invalid hash")),JSON.stringify(e)!==JSON.stringify({})?(I.log.debug("At least one hash is valid."),e):void I.log.debug("All passed hashes are invalid.")}(),n&&(t=n)),!t&&!N.customerID)return void I.log.debug("Encrypted Emails are missing!");if(-1===N.placementID&&!N.testMode)return void I.log.debug("PlacementID is set to -1, ATS API wont be called!");r=N.customerID?await ue(N.customerID):t.sha256Email;await qe(!0)||je(t,N.placementID)}async function Fe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j.LIVERAMP,t=arguments.length>1?arguments[1]:void 0,n=$e(e);const r=+new Date;if(De=!1,void 0===n||""===n)return I.log.debug(e+" envelope not found in storage! New envelope will be acquired."),De=!0,"new_envelope";try{return n=JSON.parse(atob(n)),N.testMode||"MOCKED_ENVELOPE"!==n.envelope?n.timestamp+N.expirationTime864e5&&t?"new_envelope":n.timestamp+2592e60&&void 0!==arguments[0]?arguments[0]:j.LIVERAMP;if("cookie"===N.storageType){const t=R(k[e]);return navigator.vendor.includes("Apple")&&(Le?x(k[e],t,31536e3,"/",N.rootDomain):x(k[e],t)),t}return function(e){if(null!==localStorage.getItem(e))return localStorage.getItem(e)}(k[e])}async function Ke(e){if(e){-1!==Object.keys(k).indexOf(e)&&(e=k[e]),L(e,Le?N.rootDomain:void 0),D(e)}else $(Le?N.rootDomain:void 0)}async function Ve(){await qe(St);if(!St&&Oe())return I.log.debug("Envelope module is in direct mode. Stoping the flow until identifier is passed."),void Ze();var e;N.customerID&&N.accountID?(I.log.debug("Customer id: ",N.customerID),I.log.debug("Account id: ",N.accountID),e=N.customerID,N.customerIDRegex&&new RegExp(N.customerIDRegex).test(e)?He():I.log.error("CustomerID is not valid!")):N.email?(I.log.debug("Config email: ",N.email),de(N.email)?He(N.email):I.log.error("Config email is not valid!")):N.phoneNumber?(I.log.debug("Config phone number: ",N.phoneNumber),Ae(N.phoneNumber)):N.phoneNumberHashes?(I.log.debug("Config phone number hashes: "+N.phoneNumberHashes),Ae(N.phoneNumberHashes)):N.emailHashes?(I.log.debug("Config email hashes: "+N.emailHashes),He()):N.catchIdentifier&&(I.log.info("Catching identifier configured."),window.addEventListener("detected-identifier",Je,!1)),Ze()}function Je(e){if(!1!==V)if(I.log.debug("Identifier caught from detection: - ",e.detail.identifier),"email"===e.detail.type)He(e.detail.identifier);else if("phoneNumber"===e.detail.type)Ae(e.detail.identifier);else if("customerID"===e.detail.type)N.accountID=e.detail.identifier.accountId,N.customerID=e.detail.identifier.customerId,He();else if("envelope"===e.detail.type){let t;try{t=JSON.parse(e.detail.identifier).envelope}catch(n){t=e.detail.identifier}Me(Ge(t))}else"SHA256Hash"!==e.detail.type&&"SHA1Hash"!==e.detail.type&&"MD5Hash"!==e.detail.type||(N.emailHashes=[e.detail.identifier],He());else I.log.debug("No consent has been given, library will shutdown!")}async function We(e){let t;e?t=await Be(e):(t=await Be(j.GOOGLE_SSP),t||(t=await Be(j.LIVERAMP))),t&&(t=JSON.parse(t),t.envelope&&(I.log.debug("Inserting secure signal provides script."),window.googletag=window.googletag||{cmd:[]},window.googletag.secureSignalProviders=window.googletag.secureSignalProviders||[],window.googletag.secureSignalProviders.push({id:"liveramp.com",collectorFunction:()=>Promise.resolve(t.envelope)})))}async function qe(e){const t=[Fe(j.LIVERAMP,e),window.fbcapimodule?Fe(j.FACEBOOK,e):null],n=await Promise.all(t);let r=!1;if(!n.includes("new_envelope")){r=!0;let e="";const t={};if(n[0]&&"expired"===n[0]){I.log.debug("LR envelope has expired!"),[e,t[j.LIVERAMP]]=ze(e,j.LIVERAMP);const n=$e(j.PAIR_ID);if(n&&""!==n){const e=JSON.parse(atob(n))?.creationTimestamp;t[j.PAIR_ID]=e}const r=$e(j.ATS_DIRECT);if(r&&""!==r){const e=JSON.parse(atob(r))?.creationTimestamp;t[j.ATS_DIRECT]=e}if(Te()){const e=$e(j.GOOGLE_SSP);if(e){const n=JSON.parse(atob(e))?.creationTimestamp;t[j.GOOGLE_SSP]=n}}}if(n[0]&&"not_expired"===n[0]){I.log.debug("LR envelope did not expire!"),we("lrEnvelopePresent");const e=$e(j.PAIR_ID);if(e&&""!==e){const t=JSON.parse(atob(e)).envelope;t&&t.length>0&&we("pairIdEnvelopePresent")}const t=$e(j.ATS_DIRECT);if(t&&""!==t){const e=JSON.parse(atob(t)).envelope;e&&e.length>0&&(Pe(e),we("atsDirectEnvelopePresent"))}if(Te()){const e=$e(j.GOOGLE_SSP);if(e){const t=JSON.parse(atob(e)).envelope;t&&t.length>0&&we("googleSspEnvelopePresent")}}}n[1]&&"expired"===n[1]&&(I.log.debug("FB envelope has expired!"),t[j.FACEBOOK]=null,[e,t[j.FACEBOOK]]=ze(e,j.FACEBOOK)),n[1]&&"not_expired"===n[1]&&(I.log.debug("FB envelope did not expire!"),we("fbEnvelopePresent")),e&&(e+=Xe(),await ke(e,void 0,t))}return r}function ze(e,t){let n=$e(t);n=JSON.parse(atob(n));const r="&it="+U[t]+"&iv="+n.envelope;return[Ye(N.placementID,r,!1,e),n.creationTimestamp]}function Xe(){return(N.ccpaConsentString?"&ct=3&cv="+encodeURIComponent(N.ccpaConsentString):"")+(N.gdprConsentString?"&ct=4&cv="+N.gdprConsentString:"")+(N.gppConsentString?"&gpp="+N.gppConsentString+"&gpp_sid="+N.gppSectionId:"")}function Ze(){let e=0;if(!Ot&&(Ot=!0,I.log.info("Envelope-module is configured."),we("envelopeModuleReady"),window.envelopeModuleReady=!0,N.startWithExternalId&&N.catchIdentifier||Oe())){const t=setInterval((()=>{++e,St||3===e?clearInterval(t):(we("envelopeModuleReady"),I.log.info("We have dispatched envelopeModuleReady event again!"),I.log.info("How many times we have dispatched event envelopeModuleReady: ",e+1))}),1e3)}}function Ye(e,t,n){let r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return r=Re+(n?"?atype=1&pid=":"/refresh?atype=1&pid=")+e+t,!n&&o.length>0&&(r=o+t),!De&&n&&(r+="&src=9"),r}var Qe=n(2525);let et=!1;const tt=(e,t)=>{et=!0,I.log.debug("GPP fully loaded"),rt(e,t)},nt=e=>{I.log.debug("GPP library didn't load in time."),window.__uspapi?e.ccpaFallbackHandler():(I.log.debug("Library __uspapi is not present."),J(!0),e.onConsentAccepted())},rt=(e,t)=>{t.onLoadHandler&&t.onLoadHandler(),ot(t),"boolean"==typeof e.consent&&(e.consent?(J(!0),X(),t.onConsentAccepted(e.consentString,e.cmpType,e.sectionId)):(Z(t.moduleName),t.onConsentRejected&&t.onConsentRejected()))},ot=e=>{W||(q(!0),window.addEventListener(`${e.moduleName}UserActionCompleteEvent`,(t=>{it(t.detail,e)})))},it=(e,t)=>{I.log.debug(`[GPP] event listener responded with ${JSON.stringify(e)}`);const{gppString:n,consent:r,sectionId:o,cmpType:i}=e;r?V?Y():(X(),J(!0),t.onUserInteractionAccept(n,i,o)):(Z(t.moduleName),J(!1),t.onUserInteractionReject&&t.onUserInteractionReject(i))},at={consent:!1,consentString:"",cmpType:"",sectionId:""};const st=(e,t,n)=>{at.consent?ct(at,e,t,n):(z||(z=!0,window.addEventListener(`${n}LaunchpadCommunicationEvent`,(r=>{Object.assign(at,r.detail),J(r.detail.consent),ct(r.detail,e,t,n)}))),I.cmpUtils.dispatchCustomEvent("atsConsentGatheringStartedEvent",n))},ct=(e,t,n,r)=>{e.consent?(X(),t(e.consentString,e.cmpType,e.sectionId)):(n&&n(e.cmpType),Z(r))};let ut=!1;const lt=e=>{if(I.log.info("Location of the user is in country that has GDPR regulation!"),!0===ut)return I.log.debug("TCF library is loaded."),void(!0===V&&(X(),e.triggerModuleHandler()));W||e.moduleName===B||(window.addEventListener(`${e.moduleName}UserActionCompleteEvent`,(t=>{dt.triggerModuleBasedOnTcfConsent(t.detail,e)})),q(!0)),dt.handleConsent(e)},dt={handleConsent:e=>{ut||(ut=!0,e.moduleName!==B&&window.addEventListener(`${e.moduleName}RecheckAtsConsentEvent`,(t=>{"boolean"==typeof t.detail.consent&&dt.triggerModuleBasedOnTcfConsent(t.detail,e)})),Qe.ff.getTcfConsentObject(!0,e.moduleName))},triggerModuleBasedOnTcfConsent:(e,t)=>{e.consent?V?Y():(X(),J(!0),e.isUserInteraction?t.onUserInteractionAccept(e.consentString,e.cmpType):t.onConsentAccepted(e.consentString,e.cmpType)):(Z(t.moduleName),t.onUserInteractionReject&&t.onUserInteractionReject(e.cmpType),J(!1))}};function ft(){I.log.debug("CCPA library is present"),__uspapi("getUSPData",1,((e,t)=>{if(null===e.uspString)return I.log.debug("User did not interact with consent manager."),Ve();t?!function(e,t,n,r){if(4!==e.length)return r("CCPA consent string is not 4 characters long!"),!1;const o=e.split("")[2];return"Y"===o?(n("User didn't give consent. Library will shut down."),t.ccpaConsentString=void 0,!1):("N"===o?(n("User gave consent"),t.ccpaConsentString=e):"-"===o&&(n("CCPA doesnt apply to this user"),t.ccpaConsentString=void 0),!0)}(e.uspString,N,I.log.debug,I.log.error)?(I.log.debug("No consent has been given, envelope will be removed and library will shutdown!"),$(Le?N.rootDomain:void 0)):Ve():(I.log.debug("No consent has been given, envelope will be removed and library will shutdown!"),$(Le?N.rootDomain:void 0))}))}const pt=(e,t)=>{N.expirationTime=2592e6,"US"===e&&"CA"===t&&(N.expirationTime=1296e6)};function gt(){N.ccpaConsentString=void 0,N.gdprConsentString=void 0,N.gppConsentString=void 0}const bt=()=>$(Le?N.rootDomain:void 0),ht=(e,t,n)=>{"gdpr"===t?N.gdprConsentString=e:"gpp"===t?(N.gppSectionId=+n,N.gppConsentString=e):"ccpa"===t?N.ccpaConsentString="-"===e.split("")[2]?void 0:e:gt(),Ve()},vt=e=>{"gdpr"===e?N.gdprConsentString=void 0:"gpp"===e?(N.gppSectionId=void 0,N.gppConsentString=void 0):"ccpa"===e&&(N.ccpaConsentString=void 0),bt()},yt={triggerModuleHandler:()=>Ve(),moduleName:M,onLoadHandler:null,onConsentAccepted:ht,onConsentRejected:bt,onUserInteractionAccept:ht,onUserInteractionReject:vt,ccpaFallbackHandler:ft},mt={checkCCPAConsent:ft,gatherUSConsent:async function(e){I.log.debug("User is in the US"),window.__gpp?((e,t)=>{I.log.debug("Check if GPP library is loaded?"),et?V&&(I.log.debug("GPP library is loaded."),X(),e.triggerModuleHandler()):(window.addEventListener(`${e.moduleName}CcpaFallbackEvent`,(()=>{nt(e)})),window.addEventListener(`${e.moduleName}RecheckAtsConsentEvent`,(t=>{tt(t.detail,e)})),Qe.mF.getGppConsentObject(t,e.moduleName))})(yt,e):window.__uspapi?mt.checkCCPAConsent():Ve()},onUserInteractionAccept:ht,onUserInteractionReject:vt};let St=!1;function wt(e){St=e}let Ot=!1;async function Ct(e){N.update(e),N.gdprConsentString=void 0,N.ccpaConsentString=void 0,N.gppConsentString=void 0,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"(ATS)";e.testMode||e.testEventCode?(e.logging="debug",(0,I.setLogger)(e.logging,t),I.log.debug("Test mode enabled.")):(0,I.setLogger)(e.logging,t);try{const n=new URL(window.location.href).searchParams.get("ats_debug");"true"===n?(e.logging="debug",(0,I.setLogger)(e.logging,t),I.log.debug("Debug mode enabled.")):"false"===n&&(I.log.debug("Debug mode disabled."),e.logging=void 0,(0,I.setLogger)(e.logging,t))}catch(e){I.log.debug("Creating URL object failed: "+e)}}(N,"(ATS-ENVELOPE-MODULE)"),window.addEventListener("message",At,!1),window.addEventListener("message",Pt,!1),I.log.debug("ats-set-additional-data event set up."),N.useESP&&We(),Et()}async function Et(){if(window.navigator.globalPrivacyControl)return I.log.debug("GPC is enabled. Envelope will be deleted and envelope module will shutdown."),void $(Le?N.rootDomain:void 0);if(function(){const e=window.doNotTrack||window.navigator.doNotTrack||window.navigator.msDoNotTrack;return!!e&&("1"===e.charAt(0)||"yes"===e)}())return I.log.debug("Do Not Track is enabled. Envelope will be deleted and envelope module will shutdown."),void $(Le?N.rootDomain:void 0);N.rootDomain&&function(e,t){let n=e.split("."),r=t.split(".");for(let e=n.length-1,t=r.length-1;e>-1;e--,t--)if(n[e]!==r[t])return void I.log.error("Passed root domain is invalid!");Le=!0}(N.rootDomain,window.location.hostname);const e=await Ie();N.countryCode=e.country,function(e){pt(e.country,e.region),window.__launchpad?st(yt.onUserInteractionAccept,yt.onUserInteractionReject,yt.moduleName):"US"===e.country?(N.gdprConsentString=void 0,mt.gatherUSConsent(e.region)):Qe.ff.gdprApplies(e.country)?(N.ccpaConsentString=void 0,N.gppConsentString=void 0,lt(yt)):(I.log.info("Location of the user is NOT in country that has GDPR or CCPA regulation!"),gt(),Ve())}(e)}async function At(e){if(e&&e.source&&e.data&&"ats-modules-liveramp-envelope-request"===e.data){let t=await Be();t?(e.source.postMessage({message:"ats-modules-liveramp-envelope-result",result:t},"*"),I.log.debug("ats-modules-liveramp-envelope-result postMessage dispatched!")):(e.source.postMessage({message:"ats-modules-liveramp-envelope-result",result:void 0},"*"),I.log.debug("There is no envelope!"))}}async function Pt(e){e&&e.type&&"message"===e.type&&e.data&&e.data["ats-set-additional-data"]&&e.data["ats-set-additional-data"].detail&&"set-additional-data"===e.data["ats-set-additional-data"].detail.eventName&&e.data["ats-set-additional-data"].detail.identifier&&(I.log.debug("setAdditionalDataEvent received data."),N.email=e.data["ats-set-additional-data"].detail.identifier,wt(!0),Et())}const _t=n(4147);function It(e){Ct(e)}function Tt(e){!async function(e){if(I.log.info("START setAdditionalData FUNCTION!"),e&&e.id&&e.type)if(!1!==V){if(e.type&&e.id){if(!N.startWithExternalId)return void I.log.error("The startWithExternalId flag is set to false");switch(e.type){case"email":N.email=e.id;break;case"phoneNumber":N.phoneNumber=e.id;break;case"emailHashes":N.emailHashes=e.id;break;case"phoneNumberHashes":if(!K(e.id))return void I.log.error(`The "${e.type}" value is not hashed correctly.`);N.phoneNumberHashes=e.id;break;case"customerID":N.customerID=e.id;break;default:return void I.log.error(`The "${e.type}" value of type parameter is not in right format. Has to be one of: email, phoneNumber, emailHashes, phoneNumberHashes or customerID`)}}wt(!0),Et()}else I.log.debug("Consent was not given. Passing identifier will not be allowed.");else I.log.error("Data object is empty")}(e)}async function Nt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.LIVERAMP,n=Object.values(k).indexOf(t);-1!==n&&(t=Object.keys(j)[n]);const r=await Be(t);return e?e(r):r}function xt(e){const t={ENVELOPE_MODULE_VERSION:_t.version,ENVELOPE_MODULE_CONFIG:JSON.parse(JSON.stringify(N))};if(!e)return t;e(t)}function Rt(e){Ke(e)}function Lt(){return Ot}}(),window.atsenvelopemodule=r}();window.atsenvelopemodule.start({"placementID":"33","storageType":"cookie","logging":"warnings","urlHashType":"email","accountID":"-1","catchIdentifier":true,"startWithExternalId":true,"rootDomain":"newsweek.com","testMode":false,"useESP":true,"usePAIR":true,"useDirect":true,"configId":"6fbf74f5-22f0-45ea-952c-e066909dd9f1"});window.ats={},window.ats.LIB_GENERATED_TIMESTAMP=+new Date,window.ats.setAdditionalData=function(n){window.atsdropmatchpixelmodule&&window.atsdropmatchpixelmodule.setAdditionalData(n),window.atsenvelopemodule&&window.atsenvelopemodule.setAdditionalData(n)},window.ats.retrieveEnvelope=function(n,o="_lr_env"){if(window.atsenvelopemodule)return window.atsenvelopemodule.retrieveEnvelope(n,o)},window.ats.outputCurrentConfiguration=function(n){var o={};return window.atsdropmatchpixelmodule&&(o.DROP_MATCH_PIXEL_MODULE_INFO=window.atsdropmatchpixelmodule.outputCurrentConfiguration()),window.atsenvelopemodule&&(o.ENVELOPE_MODULE_INFO=window.atsenvelopemodule.outputCurrentConfiguration()),window.atsdetectionmodule&&(o.DETECTION_MODULE_INFO=window.atsdetectionmodule.outputCurrentConfiguration()),window.fbcapimodule&&(o.FBCAPI_MODULE_INFO=window.fbcapimodule.outputCurrentConfiguration()),window.atsconversionsmodule&&(o.CONVERSION_MODULE_INFO=window.atsconversionsmodule.outputCurrentConfiguration()),o.LIB_GENERATED_TIMESTAMP=window.ats.LIB_GENERATED_TIMESTAMP,n?n(o):o},window.ats.triggerDetection=function(){window.atsdetectionmodule&&window.atsdetectionmodule.triggerDetection()},window.ats.detectDataLayerEvents=function(n){window.fbcapimodule&&window.fbcapimodule.detectDataLayerEvents(n),window.atsconversionsmodule&&window.atsconversionsmodule.detectDataLayerEvents(n)},window.ats.invalidateEnvelope=function(n){window.atsenvelopemodule&&window.atsenvelopemodule.invalidateEnvelope(n)},window.ats.sendFbEvents=function(n){window.fbcapimodule&&window.fbcapimodule.sendFbEvents(n)},window.ats.sendPinterestEvents=function(n){window.atsconversionsmodule&&window.atsconversionsmodule.sendPinterestEvents(n)},window.ats.sendSnapchatEvents=function(n){window.atsconversionsmodule&&window.atsconversionsmodule.sendSnapchatEvents(n)},window.ats.sendTikTokEvents=function(n){window.atsconversionsmodule&&window.atsconversionsmodule.sendTikTokEvents(n)},window.ats.sendConversionEvents=function(){window.atsconversionsmodule&&window.atsconversionsmodule.sendConversionEvents()};