!function(e){function t(t){for(var n,o,a=t[0],i=t[1],s=0,u=[];s-1||e.indexOf("iPad")>-1)&&t>-1?window.Number(e.substr(t+3,3).replace("_",".")):0},t.isDocReady=function(e){"complete"===document.readyState||"interactive"===document.readyState?setTimeout(e,1):document.addEventListener("DOMContentLoaded",e)},t.getSPCookies=function(e){var t=u.getLocalStateFromMemory("mmsCookies",e);return t||(t=document.cookie.split(" ").map((function(e){return e.trim()})).filter((function(e){return 0===e.indexOf("_sp_")}))),t},t.addEventListener=function(e,t){l[e]||(l[e]=[]),l[e].push(t)},t.clearEventListeners=function(){l={}},t.removeEventListener=function(e,t){l[e]&&l[e].length&&(l[e]=l[e].filter((function(e){})))},t.executeEventCallback=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=void 0),l[e]&&l[e].forEach((function(e){if("function"==typeof e)try{e.call.apply(e,o([null,n],t))}catch(e){console.log("Callback execution error: ",e)}}))},t.fetch=function(e,n,r,o){void 0===r&&(r=!0),void 0===o&&(o=!1);var a=n.method,i=n.params,l=void 0===i?{}:i,p=n.body,f=n.headers;if(o||(e=t.appendQueryParams(e,l)),new RegExp("/wrapper/").test(e)&&window._sp_&&window._sp_.version){var d=u.getStateStorageFromMemory("cacheHash");e=t.appendQueryParams(e,{ch:d,scriptVersion:window._sp_.version,scriptType:"unified"})}return new Promise((function(t,n){var r=new XMLHttpRequest;"withCredentials"in r&&(r.withCredentials=!1),r.addEventListener("load",(function(e){200===r.status?t(r.response):n(new c.RequestError(r))})),r.addEventListener("error",(function(e){n(new c.RequestError(r))})),r.open(a,e),f&&"object"==s(f)&&f.hasOwnProperty("Content-Type")&&r.setRequestHeader("Content-Type",f["Content-Type"]),"POST"===a?r.send(p):r.send()}))},t.fetchGETConsent=function(e,n,r,o){var a;if([11,13].includes(o)){var i=11===o?"consent-all":"reject-all";return t.fetch(e+"/v2/choice/"+i,{method:"GET",headers:{"Content-Type":"application/json"},params:{accountId:window._sp_&&window._sp_.config.accountId,env:window._sp_.config.env||"prod",includeCustomVendorsRes:!0,metadata:JSON.stringify((a={},a[r]={applies:!0},a)),propertyId:n,withSiteActions:!0}}).then(JSON.parse).then((function(e){return e&&e[r]}))}return Promise.reject()},t.getPathALBUrl=function(e,n,r){return void 0===n&&(n="https://cdn.privacy-mgmt.com/consent/tcfv2"),void 0===r&&(r="https://cdn.privacy-mgmt.com"),e&&e.includes("https://sourcepoint.mgr.consensu.org/tcfv2/consent")&&(e=e.replace("https://sourcepoint.mgr.consensu.org/tcfv2",n)),e&&e.includes("https://ccpa-notice.sp-prod.net")&&(e=e.replace("https://ccpa-notice.sp-prod.net",r)),e&&e.includes("https://notice.sp-prod.net")&&(e=(e=e.replace("https%3A%2F%2Fsourcepoint.mgr.consensu.org%2Ftcfv2",encodeURIComponent(n))).replace("https://notice.sp-prod.net",r)),e&&e.includes("https://cmpv2.sp-stage.net/tcfv2/consent")&&(e=e.replace("https://cmpv2.sp-stage.net/tcfv2",n)),e&&e.includes("https://notice.sp-stage.net")&&(e=(e=e.replace("https%3A%2F%2Fcmpv2.sp-stage.net%2Ftcfv2",encodeURIComponent(n))).replace("https://notice.sp-stage.net",r)),e&&e.includes("https://ccpa-notice.sp-stage.net")&&(e=e.replace("https://ccpa-notice.sp-stage.net",r)),t.appendQueryParams(e,{includeCustomVendorsRes:"1",idfaStatus:u.getStateStorageFromMemory("idfaStatus")},!0)},t.getCookie=function(e){var t=new RegExp("("+e+"=\\S[^;]*)","g"),n=document.cookie.match(t);if(n&&n.length>1&&"consentUUID"===e){var r=n.filter((function(e){return e.split("=")[1].indexOf("_")>0}));r.length>1?n=[r.reduce((function(e,t){if(!e)return t;var n=parseInt(e.substr(e.lastIndexOf("_")+1)),r=parseInt(t.substr(t.lastIndexOf("_")+1));return!isNaN(n)&&!isNaN(r)&&n>r?e:t}))]:r.length>0&&(n=r)}return n&&n[0].split("=")[1]},t.handleConsentData=function(e,n,r){var o;u.setUserConsentData(((o={})[n]=e,o));var a=e.actions,i=e.cookies;return a||i?Promise.all((a||[]).map(t.executeAction)).then((function(e){return t.setCookiesAction(i,r,n)})):Promise.resolve()},t.setCookiesAction=function(e,n,r){if(e&&e.length>0)for(var o=0,a=e;o1&&(w+=" Domain="+j.join(".")+";")}}document.cookie=w}}return Promise.resolve()},t.executeAction=function(e){var t,n=e.js,r=e.type;try{if("google_consent_mode"===r){var o=e.tagManager;if(o&&o.key&&o.value&&o.name){var a=o.name,s=o.key,u=o.value;window.gtag=window.gtag||function(){window.dataLayer=window.dataLayer||[],window.dataLayer.push(arguments)},window.gtag("set",i.googleConsentModeDeveloperId,!0),window.gtag(a,"update",((t={})[s]=u,t))}}else if("inline"===r)e.tagManager&&(window.dataLayer=window.dataLayer||[]),new Function(n)();else if("promise"===r)return new Function(n)().catch((function(e){return c.handleError(new c.ActionError(e)),Promise.resolve()}))}catch(e){c.handleError(new c.ActionError(e))}return Promise.resolve()},t.replaceCallbackParams=function(e,n){if(e=(e=e.replace("[RET]","0")).replace("[STATUS]","true"),"adblock"!==n){var r=u.getUserConsentData(n,"uuid"),o=u.getUserConsentData(n,"euconsent");r&&o&&(e=e.replace("[DATA]",encodeURIComponent(JSON.stringify({consentUUID:r,euconsent:o}))))}return/\/choice_action_response/.test(e)&&(e=t.appendQueryParams(e,{campaign_type_id:i.messageCategoryMap[n]})),e},t.isMMSUrl=function(e){return/mms/g.test(e)},t.getParameterByName=function(e,t){t||(t=window.location.href),e=(e=e.replace("[","\\$&")).replace("]","\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace("+"," ")):"":null},t.disableScroll=function(){var e=document.documentElement.style.top;document.documentElement.style.position="",document.documentElement.style.top="";var t=document.documentElement.style.scrollBehavior;document.documentElement.style.scrollBehavior="auto",window.scrollTo(0,-1*parseInt(e||"0")),document.documentElement.style.scrollBehavior=t},t.dispatchEvent=function(e,t){var n;"function"==typeof Event?n=new CustomEvent(e,{detail:t}):(n=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,t),window.dispatchEvent(n)},t.getRequestUUID=function(){for(var e=[],t=0;t<256;t++)e[t]=(t<16?"0":"")+t.toString(16);var n=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0,o=4294967296*Math.random()>>>0,a=4294967296*Math.random()>>>0;return e[255&n]+e[n>>8&255]+e[n>>16&255]+e[n>>24&255]+"-"+e[255&r]+e[r>>8&255]+"-"+e[r>>16&15|64]+e[r>>24&255]+"-"+e[63&o|128]+e[o>>8&255]+"-"+e[o>>16&255]+e[o>>24&255]+e[255&a]+e[a>>8&255]+e[a>>16&255]+e[a>>24&255]},t.appendQueryParams=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n=!1);var r=(e.indexOf("?")>-1?"&":"?")+"hasCsp=true";!1===new RegExp("hasCsp").test(e)&&(e+=r);var o=Object.keys(t).reduce((function(e,r){return!n||null!==t[r]&&void 0!==t[r]?e+"&"+r+"="+encodeURIComponent(t[r]):e}),"");return o.length>1&&(e+=o),e},t.setCookies=function(e){e.forEach((function(e){var t=e.key,n=e.value,r=e.expires,o=e.maxAge,a=r?"; expires="+r:"",i=o?"; Max-Age="+o:"";document.cookie=t+"="+n+a+i}))},t.resetUserState=function(e){var n=["hasGlobalScope","_sp_enable_dfp_personalized_ads","authId","resolved"],r={adblock:[],ccpa:["ccpaUUID","ccpaApplies"],gdpr:["consentUUID","gdprApplies","euconsent-v2"],usnat:["usNatUUID"]};if(n=n=e?n.concat(r[e]):Object.values(r).reduce((function(e,t){return e.concat(t)}),n),t.setCookies(n.map((function(e){return{key:e,value:"",expires:"Thu, 01 Jan 1970 00:00:00 GMT"}}))),u.useLocalStorage()&&(e&&"adblock"!==e||t.localStorageOperation("removeItem",[t.detectionLocalStateKey]),"adblock"!==e))if(e){var o=t.localStorageOperation("getItem",[t.messagingLocalStateKey]),a=o[0],i=(o[1],JSON.parse(a||"{}"));delete i[e],t.localStorageOperation("setItem",[t.messagingLocalStateKey,JSON.stringify(i)])}else t.localStorageOperation("removeItem",[t.messagingLocalStateKey])},t.localStorageOperation=function(e,t){var n,r=!1;try{if(window.localStorage)try{return[(n=window.localStorage)[e].apply(n,t),r]}catch(t){"setItem"===e&&c.handleError(new c.LocalStorageError(t)),r=!0}}catch(e){r=!0}return[null,r]},t.syncConsent=function(e,n,o,a){var i=u.getSyncConsent();return i?(u.clearSyncConsent(),Promise.all(Object.entries(i).map((function(i){var s=i[0],c=i[1],l=c.actionType,p=c.data,f=p||{},d=f.authId,g=f.messageId,m=f.postPayload,v=f.syncDate;if("ccpa"!==s&&"gdpr"!==s||!v||![11,13].includes(l)||(a||d)&&a!=d)return Promise.resolve();var h=n+"/v2/choice/"+s+"/sync/"+l,y={authId:a,messageId:g,mmsDomain:o,propertyId:e,includeData:{actions:{type:"RecordString"},customVendorsResponse:{type:"RecordString"},localState:{type:"string"}},uuid:u.getUserConsentData(s,"uuid")};return t.fetch(h,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r(r({},y),m||{})),params:{env:window._sp_.config.env||"prod"}}).then(JSON.parse).then((function(e){return t.handleConsentData(e,s,o)})).catch((function(e){u.setSyncConsent(s,l,p)}))})))):Promise.resolve()},t.sampleRate=function(e){var n=t.getParameterByName("_sp_sample_me");return"false"===n?0:"true"===n||!1===u.getStateStorageFromMemory("sample",null,e)||1257==window._sp_.config.accountId?1:.05},t.getSampledUserCookieValue=function(){var e=t.getCookie("_sp_sampled_user"),n=u.getStateStorageFromMemory("noUniqueIdReporting",null,"gdpr");return e?(t.setCookiesAction([{key:"_sp_su",value:e},{key:"_sp_sampled_user",value:e,maxAge:0}]),e):(n&&t.setCookiesAction([{key:"_sp_su",value:e||"",maxAge:0}]),t.getCookie("_sp_su"))},t.sampleUser=function(e){if(!1===u.getStateStorageFromMemory("sample",null,e))return!0;var n=u.getStateStorageFromMemory("noUniqueIdReporting",null,"gdpr"),r=t.getSampledUserCookieValue();return"false"!==r&&("true"===r||("boolean"!=typeof a&&(a=Math.random()0&&(i=s)}return void 0===i?null:i},t.getLocalStateFromMemory=function(e,n){return t.getStateStorageFromMemory("localState",e,n)},t.getCustomVendorConsentFromMemory=function(){var e={consentedPurposes:[],consentedVendors:[],legIntPurposes:[]},n=t.getUserConsentData("gdpr")||{},o=n.customVendorsResponse,a=n.dateCreated,i=n.grants,s=n.consentStatus;return o&&(e=r(r({},e),o)),e.dateCreated=a,e.grants=i||{},e.newUser=!s||!0!==s.hasConsentData,e.consentedAll=!(!s||!0!==s.consentedAll),e},t.setLocalStateInMemory=function(e,n){t.setStateStorageInMemory(e,"localState",void 0,n)},t.setStateStorageInMemory=function(e,t,n,r){void 0===r&&(r="_none"),a[r]||(a[r]={}),a[r][t]||(a[r][t]={}),n?a[r][t][n]=e:a[r][t]=e},t.useLocalStorage=function(){return!window._sp_.config.disableLocalStorage},t.getLocalState=function(){var e,n,r=null,a=null;return t.useLocalStorage()?(r=(e=o.localStorageOperation("getItem",[o.messagingLocalStateKey]))[0],e[1],a=(n=o.localStorageOperation("getItem",[o.messagingLocalStateKeyNonKeyed]))[0],n[1]):(r=t.getStateStorageFromMemory("localState",void 0,"keyed"),a=t.getStateStorageFromMemory("localState",void 0,"nonkeyed")),{localState:r,nonKeyedLocalState:a}},t.setLocalState=function(e,n){if("string"!=typeof e&&(e=JSON.stringify(e)),n&&"string"!=typeof n&&(n=JSON.stringify(n)),t.useLocalStorage()){var r=o.localStorageOperation("setItem",[o.messagingLocalStateKey,e]),a=(r[0],r[1]);o.localStorageOperation("setItem",[o.messagingLocalStateKeyNonKeyed,n]),a&&(o.localStorageOperation("removeItem",[s]),o.localStorageOperation("setItem",[o.messagingLocalStateKey,e]),n&&o.localStorageOperation("setItem",[o.messagingLocalStateKeyNonKeyed,n]))}else t.setStateStorageInMemory(e,"localState",void 0,"keyed"),n&&t.setStateStorageInMemory(n,"localState",void 0,"nonkeyed")},t.setUserConsentDataInLocalStorage=function(e){t.useLocalStorage()&&u()&&o.localStorageOperation("setItem",[s,JSON.stringify(r(r({},e),{version:t.userConsentVersion}))])},t.setUserConsentData=function(e){var n={ccpa:{authId:!0,actions:!0,applies:!0,consentedAll:!0,dateCreated:!0,expirationDate:!0,gpcEnabled:!0,rejectedAll:!0,rejectedVendors:!0,rejectedCategories:!0,signedLspa:!0,status:!0,uuid:!0},gdpr:{authId:!0,actions:!0,addtlConsent:!0,applies:!0,categories:!0,consentStatus:!0,customVendorsResponse:!0,dateCreated:!0,expirationDate:!0,gcmStatus:!0,legIntCategories:!0,legIntVendors:!0,euconsent:!0,getMessageAlways:!0,grants:!0,noServerStorage:!0,specialFeatures:!0,uuid:!0,vendorListId:!0,vendors:!0},usnat:{authId:!0,actions:!0,applies:!0,applicableSections:!0,categories:!0,consentStatus:!0,consentString:!0,consentStrings:!0,customVendorRejects:!0,customVendorRejectsDate:!0,dateCreated:!0,expirationDate:!0,gpcEnabled:!0,userConsents:!0,uuid:!0,vendorListId:!0}},o={ccpa:{ccpaUUID:"uuid",ccpaApplies:"applies"},gdpr:{acceptedCategories:"categories",acceptedVendors:"vendors",consentUUID:"uuid",gdprApplies:"applies"},usnat:{usNatUUID:"uuid",usNatApplies:"applies"}};i=t.getUserConsentData()||{};var a=function(t){if("ccpa"===t||"gdpr"===t||"usnat"===t){var a=t;if(e[a]){var s=r({},e[a]);if(o[a]){var c=o[a];for(var u in c){var l=c[u];s[u]&&!s[l]&&(s[l]=s[u])}}n[a]&&Object.keys(s).forEach((function(e){n[a].hasOwnProperty(e)||delete s[e]})),s.actions&&(s.actions=s.actions.filter((function(e){return e&&!0!==e.onStatusChangeOnly}))),i[a]=r(r({},i[a]||{}),s)}}};for(var s in e)a(s);return t.setUserConsentDataInLocalStorage(i),r({},i)},t.getUserConsentData=function(e,n){if(!i&&t.useLocalStorage()&&u()){var r=o.localStorageOperation("getItem",[s]),a=r[0];r[1],(i=JSON.parse(a||"{}"))&&i.version&&(i.version!==t.userConsentVersion?t.clearUserConsentData():delete i.version)}var c=i;return e&&(c=c&&c[e]),n&&(c=c&&c[n]),c},t.clearUserConsentData=function(e){var n;if(u())if(e){var a=t.getUserConsentData()||{};i=r(r({},a),((n={})[e]=null,n)),t.setUserConsentDataInLocalStorage(i)}else i=null,o.localStorageOperation("removeItem",[s])},t.cleanOldConsent=function(){try{window.localStorage.removeItem("_sp_user_consent")}catch(e){}},t.clearSyncConsent=function(){try{u()&&window.localStorage.removeItem(c)}catch(e){}},t.getSyncConsent=function(){try{if(u())return JSON.parse(window.localStorage.getItem(c)||"{}")}catch(e){}return null},t.setSyncConsent=function(e,n,o){var a;if(u()){var i=t.getSyncConsent()||{};if([11,13].includes(n)){(o=o||{}).authId=o.authId||t.getUserConsentData(e,"authId"),o.syncDate=o.syncDate||new Date;try{window.localStorage.setItem(c,JSON.stringify(r(r({},i),((a={})[e]={actionType:n,data:o},a))))}catch(e){t.clearSyncConsent()}}}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0;)e.queue.pop().removeMessage();document.documentElement.classList.remove("sp-message-open"),r.disableScroll()},e.queue=[],e}();t.MessageQueue=o},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(2),o=n(13),a=n(9),i=n(74),s=n(80),c=n(19),u=c.get,l=c.enforce,p=String(String).split("String");(e.exports=function(e,t,n,s){var c,u=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||o(n,"name",t),(c=l(n)).source||(c.source=p.join("string"==typeof t?t:""))),e!==r?(u?!d&&e[t]&&(f=!0):delete e[t],f?e[t]=n:o(e,t,n)):f?e[t]=n:i(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},function(e,t,n){var r=n(7),o=n(8),a=n(34);e.exports=r?function(e,t,n){return o.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return y})),n.d(t,"e",(function(){return S})),n.d(t,"f",(function(){return w}));n(45),n(64),n(68),n(46),n(47),n(65),n(27),n(66),n(50),n(26),n(25),n(51),n(43),n(44),n(53),n(72),n(28),n(67),n(52),n(70),n(49),n(99),n(48),n(98),n(71),n(101);var r=n(0),o=n(55),a=["granularStatus"];function i(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0){var o=e.usnat||{};if(t.authId)t.usnat&&t.usnat.transitionCCPAAuth&&(o.transitionCCPAAuth=!0);else if(n.ccpa&&(!n.usnat||!n.usnat.dateCreated)){var a=n.ccpa,i=a.dateCreated,s=a.status;"rejectedAll"!==s&&"rejectedSome"!==s||(o.dateCreated=i,o.optedOut=!0)}Object.keys(o).length>0&&(e.usnat=o)}return e}(m,e,d,t),Object.keys(m).length){var v=Object(r.getLocalState)(),h=v.localState,y=v.nonKeyedLocalState,b={accountId:n,env:o,localState:h,nonKeyedLocalState:y,metadata:m,propertyId:a,withSiteActions:!0};p&&(b.authId=p),Object.keys(b.metadata).forEach((function(e){var t=d&&d[e];t&&(t.uuid&&(b.metadata[e].uuid=t.uuid),p&&t.dateCreated&&(b.metadata[e].hasLocalData=!0,b.metadata[e].dateCreated=t.dateCreated)),l[e]&&l[e].applies&&(b.metadata[e].applies=!0)})),b.metadata=JSON.stringify(b.metadata),g=Object(r.fetch)("".concat(s,"/v2/consent-status"),{method:"GET",headers:{},params:b},!0).then(JSON.parse).then((function(e){var t=e.consentStatusData;return Promise.all(Object.entries(t).map((function(e){var t=c(e,2),n=t[0],o=t[1];return p&&(o.authId=p),Object(r.handleConsentData)(o,n,i)}))).then((function(e){return Object(r.getUserConsentData)()}))}))}return g.then((function(e){return function(e,t){var n=!1;if(t.gdpr&&e.gdpr&&e.gdpr.consentStatus){var o=t.gdpr,a=o.additionsChangeDate,i=o.legalBasisChangeDate,s=e.gdpr,c=s.consentStatus,u=new Date(s.dateCreated);("true"===Object(r.getParameterByName)("_sp_vendor_list_additions")||a&&new Date(a)>u)&&(n=!0,c.vendorListAdditions=!0),("true"===Object(r.getParameterByName)("_sp_legal_basis_changes")||i&&new Date(i)>u)&&(n=!0,c.legalBasisChanges=!0),(c.vendorListAdditions||c.legalBasisChanges)&&(c.consentedAll&&(c.granularStatus=c.granularStatus||{},c.granularStatus.previousOptInAll=!0),c.consentedAll=!1),n&&(e=f(f({},e),{},{gdpr:f(f({},s),{},{consentStatus:c})}))}if(t.usnat&&e.usnat&&e.usnat.consentStatus){var l=t.usnat.additionsChangeDate,p=e.usnat,d=p.consentStatus,g=new Date(p.dateCreated);("true"===Object(r.getParameterByName)("_sp_vendor_list_additions")||l&&new Date(l)>g)&&(n=!0,d.vendorListAdditions=!0,d.consentedToAll=!1,e=f(f({},e),{},{usnat:f(f({},p),{},{consentStatus:d})}))}return n&&(e=Object(r.setUserConsentData)(e)),e}(e,l)}))}))},v=function(e,t,n){var c=e.accountId,u=e.env,l=e.mmsDomain,p=e.propertyHref,g=e.propertyId,m=e.runMessaging,v=e.wrapperAPIOrigin,h=e.campaignEnv,y=e.targetingParams,b=e.ccpa,S=e.custom,O=e.gdpr,w=e.usnat,C=Object(r.getLocalState)(),_=C.localState,j=C.nonKeyedLocalState,P=Object(o.e)(),x={accountId:c,campaignEnv:h,campaigns:{},clientMMSOrigin:l,hasCSP:!0,includeData:{localState:{type:"string"},actions:{type:"RecordString"},cookies:{type:"RecordString"}},propertyHref:p,propertyId:g},I={};if(m||(x.messagesPerPageview=0),b){var A=t.ccpa||{};x.campaigns.ccpa={alwaysDisplayDNS:!!b.alwaysDisplayDNS,status:A.status,hasLocalData:"string"==typeof A.uuid&&A.uuid.length,targetingParams:b.targetingParams?b.targetingParams:y||{}},P&&(x.campaigns.ccpa.targetingParams=f(f({},x.campaigns.ccpa.targetingParams),P)),I.ccpa={applies:A.applies}}if(S&&(x.campaigns.custom={targetingParams:S.targetingParams?S.targetingParams:y||null},P&&(x.campaigns.custom.targetingParams=f(f({},x.campaigns.custom.targetingParams),P))),O){var M=(t.gdpr||{}).consentStatus||{};x.campaigns.gdpr={consentStatus:{hasConsentData:M.hasConsentData,consentedToAll:M.consentedAll,consentedToAny:M.consentedToAny,rejectedAny:M.rejectedAny,legalBasisChanges:M.legalBasisChanges,vendorListAdditions:M.vendorListAdditions},hasLocalData:M.hasConsentData,targetingParams:O.targetingParams?O.targetingParams:y||null},P&&(x.campaigns.gdpr.targetingParams=f(f({},x.campaigns.gdpr.targetingParams),P)),I.gdpr={applies:t&&t.gdpr&&t.gdpr.applies}}if(w){var D=t.usnat||{},k=D.consentStatus||{},L=(k.granularStatus,s(k,a));x.campaigns.usnat={consentStatus:L,hasLocalData:!!D.consentStatus,targetingParams:w.targetingParams?w.targetingParams:y||{}},P&&(x.campaigns.usnat.targetingParams=f(f({},x.campaigns.usnat.targetingParams),P)),I.usnat={applies:D.applies}}var U={env:u||"prod",body:JSON.stringify(x),localState:_,metadata:JSON.stringify(I),nonKeyedLocalState:j},R=Object(r.getParameterByName)("_sp_change_partition");return j&&R&&(U.nonKeyedLocalState=E(j,R),U.partitionOverride=R),Object(r.fetch)("".concat(v,"/v2/messages"),{method:"GET",headers:{},params:U}).then((function(e){return JSON.parse(e)})).then((function(e){var o=e.localState,a=e.nonKeyedLocalState;Object(r.setLocalState)(o,a);var s=i(n);return e.campaigns&&e.campaigns.length?e.campaigns=e.campaigns.map((function(e){var n=e.type&&e.type.toLowerCase();return n&&t[n]?(s=s.filter((function(e){return e!==n})),e.dateCreated&&Object(r.setUserConsentData)(d({},n,e)),f(f({},e),t[n])):e})):e.campaigns=[],s.forEach((function(n){n&&t[n]&&e.campaigns.push(f({type:n.toUpperCase()},t[n]))})),e}))},h=function(e,t,n,o,a){var i=["ccpa","gdpr","usnat"],s=a.filter((function(e){return i.includes(e)})).reduce((function(e,t){return e[t]={},e}),{});return 0===Object.keys(s).length?Promise.resolve({}):Object(r.fetch)("".concat(e,"/v2/meta-data"),{method:"GET",headers:{},params:{accountId:n,env:o,metadata:JSON.stringify(s),propertyId:t}}).then(JSON.parse).then((function(e){var t=function(e){return Math.round(new Date(e).valueOf()/1e3)-1262322e3},n={additionsChangeDate:t,legalBasisChangeDate:t,_id:function(e){return e.slice(-4)}},o=[];if(Object.entries(e).forEach((function(e){var t=c(e,2),a=t[0],i=t[1],s=i||{},u=s.sample,l=s.noUniqueIdReporting;Object.keys(n).forEach((function(e){if(i[e]){var t=n[e](i[e]);o.push(t)}})),Object(r.setStateStorageInMemory)(!!u,"sample",null,a),Object(r.setStateStorageInMemory)(!!l,"noUniqueIdReporting",null,a)})),o.length){var a=o.join("");Object(r.setStateStorageInMemory)(a,"cacheHash")}return e.gdpr&&(Object(r.setStateStorageInMemory)(e.gdpr.googleConsentModeV2,"googleConsentModeV2",null,"gdpr"),"true"===Object(r.getParameterByName)("_sp_get_message_always")?e.gdpr.getMessageAlways=!0:e.gdpr.getMessageAlways=e.gdpr.getMessageAlways||!1),e}))},y=function(e,t,n){var o=Object(r.getStateStorageFromMemory)("propertyId");return o?Promise.resolve(o):Object(r.fetch)("".concat(t,"/mms/v2/get_site_data"),{method:"GET",params:{href:n,account_id:e}}).then(JSON.parse).then((function(e){var t=e.site_id;return t?(Object(r.setStateStorageInMemory)(t,"propertyId"),t):Promise.reject("propertyId not found")}))},b=function(){if("true"===Object(r.getParameterByName)("_sp_pass_consent")){var e=["ccpa","gdpr","usnat"];return new Promise((function(t){window.addEventListener("message",(function n(o){var a=o.data;if("sp.loadConsent"===a.name&&a.consent){var i=a.consent,s=[];e.forEach((function(e){if(i[e]&&i[e].webConsentPayload){var t="string"==typeof i[e].webConsentPayload?JSON.parse(i[e].webConsentPayload):i[e].webConsentPayload;i[e]=f(f({},i[e]),t),(i[e].authId||Object(r.getStateStorageFromMemory)("cookies","authId"))&&console.warn("authId is present, auth consent will overwrite passed in consent."),i[e].cookies&&(s=s.concat(i[e].cookies))}})),Object(r.setUserConsentData)(i),window.removeEventListener("message",n),s.length?Object(r.setCookiesAction)(s).then((function(){t()})):t()}})),window.parent.postMessage({name:"sp.readyForConsent"},"*")}))}return Promise.resolve()},S=function(e){return e&&(e.indexOf("PrivacyManager")>-1||"NativeOtt"===e)},O=function(e){try{e(window._sp_)}catch(e){Object(r.handleError)(e)}},w=function(){window._sp_queue&&Array.isArray(window._sp_queue)||(window._sp_queue=[]),window._sp_queue.push!==O&&(window._sp_queue.map(O),window._sp_.processedQueue=window._sp_queue,window._sp_queue=Object.defineProperties([],{push:{value:O}}))},E=function(e,t){var n=!1;if(!e)return e;try{"string"==typeof e&&(n=!0,e=JSON.parse(e)),Object.keys(e).forEach((function(n){e[n]._sp_v1_p&&(e[n]._sp_v1_p=t)})),n&&(e=JSON.stringify(e))}catch(e){console.warn("Could not update partition."),console.error(e)}return e},C=function(e,t,n){n=n||{};var o=Object(r.getUserConsentData)()||{},a=!1;return Object.entries({ccpa:["ccpaUUID","ccpaConsentDate"],gdpr:["consentUUID","consentDate"],usnat:["usnatUUID","consentDateUsnat"]}).filter((function(e){var n=c(e,1)[0];return t.includes(n)})).forEach((function(t){var i=c(t,2),s=i[0],u=c(i[1],2),l=u[0],p=u[1],f=!1,d=Object(r.getCookie)(l),g=Object(r.getCookie)(p),m=o[s],v=n[s]||{};if(m){if("gdpr"===s){var h=v._id,y=m.vendorListId;h&&y&&h!==y&&(f=!0)}if("usnat"===s){var b=new Set(v.applicableSections||[]);!b.size||m.consentStrings&&m.consentStrings.every((function(e){var t=e.sectionId;return b.has(t)}))||(f=7)}e&&m.authId&&e!=m.authId?(f=1,d=null):m.expirationDate&&new Date(m.expirationDate)=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),a.Arguments=a.Array,o("keys"),o("values"),o("entries")},function(e,t,n){"use strict";var r=n(1),o=n(88);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(e,t,n){var r=n(2),o=n(124),a=n(157),i=n(13);for(var s in o){var c=r[s],u=c&&c.prototype;if(u&&u.forEach!==a)try{i(u,"forEach",a)}catch(e){u.forEach=a}}},function(e,t,n){var r,o=n(6),a=n(147),i=n(79),s=n(38),c=n(109),u=n(75),l=n(58),p=l("IE_PROTO"),f=function(){},d=function(e){return"