!function(){"use strict";var t=function(){function t(t){this.funnel=t,this.initialCallPromise=null,this.maxCallDelayMs=2e3}return t.prototype.callPixel=function(t,e){var n=this;return this.funnel.withRaceProtection((function(){return new Promise((function(r){Object.entries(e).forEach((function(e){var n=e[0],r=e[1];void 0!==r&&t.searchParams.append(n,r)}));var o=new Image;o.addEventListener("load",(function(){r()})),o.addEventListener("error",(function(){r()})),window.setTimeout((function(){r()}),n.maxCallDelayMs),o.src=t.toString()}))}))},t}();function e(e){return new t(e)}var n=function(){function t(){this.initialCallPromise=null}return t.prototype.withRaceProtection=function(t){return null===this.initialCallPromise?(this.initialCallPromise=t(),this.initialCallPromise):this.initialCallPromise.then((function(){return t()}))},t.create=function(){return new t},t}();var r=["tcf2","implied","usp","noConsent","auto","gpp"],o=function(){function t(){}return t.parseStringOrNull=function(t){return null==t||null==t?null:t.toString()},t.parseString=function(t){return t.toString()},t.parseStringArray=function(t){if(Array.isArray(t)){for(var e=!0,n=0;n1&&void 0!==arguments[1]?arguments[1]:0,n=(p[t[e+0]]+p[t[e+1]]+p[t[e+2]]+p[t[e+3]]+"-"+p[t[e+4]]+p[t[e+5]]+"-"+p[t[e+6]]+p[t[e+7]]+"-"+p[t[e+8]]+p[t[e+9]]+"-"+p[t[e+10]]+p[t[e+11]]+p[t[e+12]]+p[t[e+13]]+p[t[e+14]]+p[t[e+15]]).toLowerCase();if(!u(n))throw TypeError("Stringified UUID is invalid");return n};var d,v=function(t,e,n){var r=(t=t||{}).random||(t.rng||l)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return h(r)},y=function(){function t(t){this.storage=t}return t.instance=function(e){return new t(e)},t.prototype.getIds=function(){var t=this.getFpid();return this.isOptedOut()||!u(t)?{}:{fpid:t}},t.prototype.getOrCreateFpid=function(e){if(this.isOptedOut()||!(null==e?void 0:e.trackingEnabled()))return{};var n=this.getFpid();if(!u(n))try{var r=v();return this.storage.setItem(t.key,r),{fpid:r}}catch(t){return{}}return n?{fpid:n}:{}},t.prototype.getFpid=function(){try{return this.storage.getItem(t.key)}catch(t){return null}},t.prototype.setFpid=function(e){try{return this.storage.setItem(t.key,e),e}catch(t){return null}},t.prototype.removeFpid=function(){try{this.storage.removeItem(t.key)}catch(t){}},t.prototype.isOptedOut=function(){try{return this.storage.getItem(t.trackingStatusKey)===t.optedOut}catch(t){return!1}},t.prototype.optin=function(){var e;try{this.storage.removeItem(t.trackingStatusKey)}catch(t){var n=new Error("First party id optin failed with: ".concat(null!==(e=null==t?void 0:t.message)&&void 0!==e?e:t.toString));throw n.name="FpidOptinError",n}},t.prototype.optout=function(){var e;try{this.storage.setItem(t.trackingStatusKey,t.optedOut)}catch(t){var n=new Error("First party id optout failed with: ".concat(null!==(e=null==t?void 0:t.message)&&void 0!==e?e:t.toString));throw n.name="FpidOptoutError",n}},t.prototype.getPapiParameters=function(t){return this.getOrCreateFpid(t)},t.key="ope_fpid",t.trackingStatusKey="ope_fpid_tracking_status",t.optedOut="opted_out",t}(),g=function(){function t(t,e){this.document=t,this.domain=e,this.length=null}return t.prototype.getItem=function(t){var e=this.readCookie(t);if(e)return e;var n=localStorage.getItem(t);return n?(localStorage.removeItem(t),this.setItem(t,n),n):null},t.prototype.setItem=function(t,e){var n=new Date,r=new Date;return r.setFullYear(n.getFullYear()+1),this.setCookie(t,e,r)},t.prototype.removeItem=function(t){var e=new Date;e.setSeconds(42),this.setCookie(t,"",e)},t.prototype.clear=function(){this.removeItem(y.key)},t.prototype.setCookie=function(t,e,n){var r="".concat(t,"=").concat(e,";Expires=").concat(n.toUTCString(),";Path=/;Domain=").concat(this.domain,";SameSite=Lax");return this.document.cookie=r,e},t.prototype.readCookie=function(t){var e=this.document.cookie.split(";").find((function(e){return e.trim().startsWith(t)}));return e?e.split("=")[1].trim():null},t.prototype.key=function(t){throw"Not implemented!"},t}(),w=function(){function t(t,e){this.seat=t,this.cb=e}return t.prototype.run=function(t){var e,n=this;try{return this.action(t).then((function(){var t;return null===(t=n.cb)||void 0===t?void 0:t.call(n,null,!0)}),(function(t){var e;return null===(e=n.cb)||void 0===e?void 0:e.call(n,t,!1)})),t}catch(n){return null===(e=this.cb)||void 0===e||e.call(this,n,!1),t}},t.prototype.getFpidProvider=function(t){var e=t.firstPartyDomain?new g(document,t.firstPartyDomain):localStorage;return y.instance(e)},t}(),m=(d=function(t,e){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},d(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),b=function(){return b=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]Date.now()?[2,r[e].value]:[2,null]}}))}))},t.prototype.put=function(t,e,n){return z(this,void 0,void 0,(function(){var r,o;return q(this,(function(i){switch(i.label){case 0:return[4,this.pStorage.withConsent(t)];case 1:return r=i.sent(),(o=this.load(r))[e]={exp:Date.now()+this.ttlMs,value:n},this.save(r,this.removeExpiredEntries(o)),[2]}}))}))},t.prototype.removeExpiredEntries=function(t){var e=Date.now();return Object.fromEntries(Object.entries(t).filter((function(t){t[0];return t[1].exp>e})))},t.prototype.load=function(t){var e=t.getItem(this.storageKey);return this.deserialize(e)},t.prototype.save=function(t,e){t.setItem(this.storageKey,this.serialize(e))},t.prototype.serialize=function(t){return JSON.stringify(t)},t.prototype.deserialize=function(t){return t?JSON.parse(t):{}},t}();function J(t){if(0===t.length)return 0;for(var e=0,n=0;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=400?(r=Error,o="Fetch failed: ",[4,n.text()]):[3,3];case 2:throw r.apply(void 0,[o+i.sent()]);case 3:return[2,n]}}))}))},t.prototype.fetchFromUrl=function(t,e){var n={referrerPolicy:"no-referrer-when-downgrade",mode:"cors",credentials:e?"include":"omit"};return fetch(t.toString(),n).then((function(t){return t.json()}),(function(t){}))},t.prototype.papiRequestUrl=function(t){for(var e=new URL("",this.papiUrl),n=0,r=Object.entries(t);n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]n)return;var r=Date.now()+this.cookieSyncIntervalMillis;try{this.storage.setItem("ope_cs",r.toString())}catch(t){}this.localNextCookieSync=r.toString()}if(this.cookiesyncBaseUrl){var o=new URL(this.cookiesyncEndpoint,this.cookiesyncBaseUrl);Object.entries(t.extraEventProperties()).forEach((function(t){var e=t[0],n=t[1];void 0!==n&&o.searchParams.append(e,n)})),this.loadImage(o.toString())}},t.prototype.loadImage=function(t){var e=this,n=new Image;n.addEventListener("error",(function(t){e.storage.removeItem("ope_cs")})),n.src=t},t.prototype.sendCustomEvent=function(t){return St(this,void 0,void 0,(function(){var e,n,r,o,i,a;return kt(this,(function(c){switch(c.label){case 0:return c.trys.push([0,3,,4]),[4,Promise.all([this.consent,this.trackingStrategy.onInit$])];case 1:return e=c.sent(),n=e[0],e[1],this.checkTrackingConsent(n),r=mt.fromCustomEvent(t),o=this.trackingStrategy.getOrCreateIds(n),i=this.enrichEvent(r,o,n),[4,this.dispatchEvent(i,o.fpid)];case 2:return"cookie"==c.sent()&&this.dispatchCookieSync(n),[3,4];case 3:return a=c.sent(),this.onRejection("CustomEvent",a),[3,4];case 4:return[2]}}))}))},t.prototype.dispatchEvent=function(t,e){return St(this,void 0,void 0,(function(){return kt(this,(function(n){return[2,this.dcapiClient.ingestEvent(gt.visitEndpoint,t,e,null)]}))}))},t.prototype.onRejection=function(t,e){},t}(),Pt=function(){return Pt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0?setTimeout((function(){return e(t(n,r-1,i))}),i):a(new N)}))}(window).then((function(t){t.postMessage({__uspapiCall:{callId:r,command:"getUSPData",version:1}},"*")})).catch((function(){n(new N)}))}))},e.prototype.ping=function(){return this.consent.then((function(t){}))},e.delay=100,e.retries=20,e}(jt),Ht=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wt=function(){function t(t,e){if(this.gppData=t,this.gppString=e,!t)throw Error("gppData must be defined to parse");this.optedOut=this.getOptoutFromField(t,"SharingNotice",[1])||this.getOptoutFromField(t,"SaleOptOutNotice",[1])||this.getOptoutFromField(t,"SharingOptOutNotice",[1])||this.getOptoutFromField(t,"TargetedAdvertisingOptOutNotice",[1])||this.getOptoutFromField(t,"SensitiveDataProcessingOptOutNotice",[0])||this.getOptoutFromField(t,"SensitiveDataLimitUseNotice",[0])||this.getOptoutFromField(t,"SaleOptOut",[2])||this.getOptoutFromField(t,"SharingOptOut",[2])||this.getOptoutFromField(t,"TargetedAdvertisingOptOut",[2])||this.getOptoutFromField(t,"SensitiveDataProcessing",[0])||this.getOptoutFromField(t,"KnownChildSensitiveDataConsents",[0])||this.getOptoutFromField(t,"PersonalDataConsents",[0,2]),1==t.MspaCoveredTransaction&&(this.optedOut||(this.optedOut=this.getOptoutFromField(t,"MspaOptOutOptionMode",[0,1])||this.getOptoutFromField(t,"MspaServiceProviderMode",[0,2])))}return t.prototype.getOptoutFromField=function(t,e,n){if(!(e in t))throw Error("gppdata field should be present: ".concat(e));return!n.includes(t[e])},t.prototype.applies=function(){return!0},t.prototype.deviceAccessAllowed=function(){return!this.optedOut},t.prototype.trackingEnabled=function(){return!this.optedOut},t.prototype.consentString=function(){return this.gppString},t.prototype.extraEventProperties=function(){return{}},t.prototype.papiParameters=function(){return{gppString:this.gppString}},t}(),Zt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.deviceAccessRestricted=!0,e.listenerId=null,e}return Ht(e,t),e.prototype.locateGppFrame=function(t){return t.frames.__gppLocator||t==window.top?t:this.locateGppFrame(t.parent)},e.prototype.loadConsent=function(t){var e=this;return new Promise((function(t){var n=Vt();window.addEventListener("message",(function(e){var r=e.data.__gppReturn;r&&r.callId===n&&r.success?function(e){if(e&&e.data){if(function(t){if("signalStatus"!==t.eventName||"ready"!==t.data)return!1;if("usnat"in t.pingData.parsedSections)return!0;return!1}(e)){var n=e.pingData.gppString,r=new Wt(e.pingData.parsedSections.usnat,n);t(r)}}else;}(r.returnValue):r&&r.callId===n&&r.success}),!1),e.locateGppFrame(window).postMessage({__gppCall:{command:"addEventListener",version:1,callId:n}},"*")}))},e.prototype.ping=function(){var t=this;return new Promise((function(e){var n=Vt();window.addEventListener("message",(function(t){var r=t.data.__gppReturn;r&&r.callId===n&&r.success?e():r&&r.callId===n&&r.success}),!1),t.locateGppFrame(window).postMessage({__gppCall:{command:"ping",version:1,callId:n}},"*")}))},e}(jt),te=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ee=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.deviceAccessRestricted=!0,e}return te(e,t),e.prototype.loadConsent=function(t){var e=this;return new Promise((function(n,r){e.frameworks=[new Jt(t),new Xt(t),new Zt(t)],e.frameworks.map((function(t){return t.consent})).forEach((function(t){t.then((function(t){t.applies()&&n(t)})).catch((function(t){}))})),Promise.allSettled(e.frameworks.map((function(t){return t.isAvailable()}))).then((function(t){var n=e.frameworks.filter((function(n,r){var o=t[r];return e.frameworkShouldBeConsidered(o)}));return Promise.allSettled(n.map((function(t){return t.consent})))})).then((function(t){e.pickSignalOutOfAllSettled(t,n,r)}))}))},e.prototype.ping=function(){return Promise.resolve()},e.prototype.frameworkShouldBeConsidered=function(t){if("fulfilled"==t.status)return t.value;if(t.reason instanceof N)return!1;try{return t.reason.message!==N.errorMessage}catch(t){return!0}},e.prototype.pickSignalOutOfAllSettled=function(t,e,n){var r=t.find((function(t){return"fulfilled"==t.status&&t.value.applies()})),o=t.find((function(t){return"rejected"==t.status&&!(t.reason instanceof N)})),i=t.find((function(t){return"fulfilled"==t.status}));r?e(r.value):o?n(o.reason):e(i?new Ut:new Mt)},e}(jt),ne=function(){function t(){}return t.initialize=function(t,e){switch(t){case"tcf2":return new Jt(e);case"implied":return new Rt(e);case"usp":return new Xt(e);case"auto":return new ee(e);case"noConsent":return new Nt(e);case"gpp":return new Zt(e);default:throw new Error("Privacy framework '".concat(t,"' not supported"))}},t}(),re=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},oe=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]Date.now()},t.prototype.setSyncMarker=function(){this.storage.setItem(t.syncAlreadySentKey,JSON.stringify({exp:Date.now()+this.ttl}))},t.prototype.sendSync=function(t,e){var n=this.trackingStrategy.getOrCreateIds(e),r=n.cpid,o={ope_event_type:"encrypted-sync-event",ope_alt_user_ids:t,ope_channel:"liveramp-syncs",ope_tenant:this.tenantId,ope_user_id:r};this.dcAPIClient.ingestEvent(gt.eventEndpoint,o,n.fpid)},t.syncAlreadySentKey="_sync_ope_liveramp_id",t}(),ae=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},ce=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]