(function(){var i=function(){"use strict";function u(n){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function v(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function ci(){return{callbacks:{},add:function(n,t){this.callbacks[n]=this.callbacks[n]||[];var i=this.callbacks[n].push(t)-1,r=this;return function(){r.callbacks[n].splice(i,1)}},execute:function(n,t){if(this.callbacks[n]){t=void 0===t?[]:t;t=t instanceof Array?t:[t];try{for(;this.callbacks[n].length;){var i=this.callbacks[n].shift();"function"==typeof i?i.apply(null,t):i instanceof Array&&i[1].apply(i[0],t)}delete this.callbacks[n]}catch(n){}}},executeAll:function(n,i){(i||n&&!t.isObjectEmpty(n))&&Object.keys(this.callbacks).forEach(function(t){var i=void 0!==n[t]?n[t]:"";this.execute(t,i)},this)},hasCallbacks:function(){return Boolean(Object.keys(this.callbacks).length)}}}function h(n,t,i){var r=null==n?void 0:n[t];return void 0===r?i:r}function li(n){for(var t=0,i=n.length;tu)return 1;if(u>r)return-1}return 0}function c(n,t){if(n===t)return 0;var i=n.toString().split("."),r=t.toString().split(".");return li(i.concat(r))?(ai(i,r),vi(i,r)):NaN}function yi(n){return n===Object(n)&&0===Object.keys(n).length}function pi(n){return"function"==typeof n||n instanceof Array&&n.length}function wi(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};this.log=rt("log",n,t);this.warn=rt("warn",n,t);this.error=rt("error",n,t)}function bi(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.isEnabled,n=i.cookieName,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=u.cookies;return r&&n&&t?{remove:function(){t.remove(n)},get:function(){var r=t.get(n),i={};try{i=JSON.parse(r)}catch(r){i={}}return i},set:function(i,r){r=r||{};t.set(n,JSON.stringify(i),{domain:r.optInCookieDomain||"",cookieLifetime:r.optInStorageExpiry||3419e4,expires:!0})}}:{get:a,set:a,remove:a}}function l(n){this.name=this.constructor.name;this.message=n;"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(n).stack}function nt(){function s(n,t){var i=ut(n);return i.length?i.every(function(n){return!!t[n]}):kr(t)}function h(){vt(g);nt(f.COMPLETE);at(n.status,n.permissions);v.set(n.permissions,{optInCookieDomain:rt,optInStorageExpiry:st});y.execute(ot)}function c(t){return function(i,r){if(!ft(i))throw new Error("[OptIn] Invalid category(-ies). Please use the `OptIn.Categories` enum.");return nt(f.CHANGED),Object.assign(g,ri(ut(i),t)),r||h(),n}}var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.doesOptInApply,tt=t.previousPermissions,u=t.preOptInApprovals,it=t.isOptInStorageEnabled,rt=t.optInCookieDomain,st=t.optInStorageExpiry,ht=t.isIabContext,ct=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},lt=ct.cookies,l=tu(tt);ei(l,"Invalid `previousPermissions`!");ei(u,"Invalid `preOptInApprovals`!");var v=bi({isEnabled:!!it,cookieName:"adobeujs-optin"},{cookies:lt}),n=this,at=vr(n),y=ii(),p=ui(l),w=ui(u),k=v.get(),r={},d=function(n,t){return et(n)||t&&et(t)?f.COMPLETE:f.PENDING}(p,k),o=function(n,t,r){var u=ri(b,!i);return i?Object.assign({},u,n,t,r):u}(w,p,k),g=dr(o),nt=function(n){return d=n},vt=function(n){return o=n};n.deny=c(!1);n.approve=c(!0);n.denyAll=n.deny.bind(n,b);n.approveAll=n.approve.bind(n,b);n.isApproved=function(t){return s(t,n.permissions)};n.isPreApproved=function(n){return s(n,w)};n.fetchPermissions=function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=r?n.on(f.COMPLETE,t):a;return!i||i&&n.isComplete||!!u?t(n.permissions):r||y.add(ot,function(){return t(n.permissions)}),e};n.complete=function(){n.status===f.CHANGED&&h()};n.registerPlugin=function(t){if(!t||!t.name||"function"!=typeof t.onRegister)throw new Error(oi);r[t.name]||(r[t.name]=t,t.onRegister.call(t,n))};n.execute=uu(r);Object.defineProperties(n,{permissions:{get:function(){return o}},status:{get:function(){return d}},Categories:{get:function(){return e}},doesOptInApply:{get:function(){return!!i}},isPending:{get:function(){return n.status===f.PENDING}},isComplete:{get:function(){return n.status===f.COMPLETE}},__plugins:{get:function(){return Object.keys(r)}},isIabContext:{get:function(){return ht}}})}function ht(n,t){function r(){i=null;n.call(n,new l("The call took longer than you wanted!"))}function u(){i&&(clearTimeout(i),n.apply(n,arguments))}if(void 0===t)return n;var i=setTimeout(r,t);return u}function ct(){var n,i,t;if(window.__cmp)return window.__cmp;if(n=window,n===window.top)return void k.error("__cmp not found");for(;!i;){n=n.parent;try{n.frames.__cmpLocator&&(i=n)}catch(n){}if(n===window.top)break}return i?(t={},window.__cmp=function(n,r,u){var f=Math.random()+"",e={__cmpCall:{command:n,parameter:r,callId:f}};t[f]=u;i.postMessage(e,"*")},window.addEventListener("message",function(n){var r=n.data,i;if("string"==typeof r)try{r=JSON.parse(n.data)}catch(n){}r.__cmpReturn&&(i=r.__cmpReturn,t[i.callId]&&(t[i.callId](i.returnValue,i.success),delete t[i.callId]))},!1),window.__cmp):void k.error("__cmp not found")}function ki(){var t=this;t.name="iabPlugin";t.version="0.0.1";var r=ii(),n={allConsentData:null},u=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n[t]=i};t.fetchConsentData=function(n){var t=n.callback,i=n.timeout,r=ht(t,i);f({callback:r})};t.isApproved=function(t){var u=t.callback,r=t.category,o=t.timeout,e;if(n.allConsentData)return u(null,i(r,n.allConsentData.vendorConsents,n.allConsentData.purposeConsents));e=ht(function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=t.vendorConsents,e=t.purposeConsents;u(n,i(r,f,e))},o);f({category:r,callback:e})};t.onRegister=function(n){var r=Object.keys(it),u=function(t){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=u.purposeConsents,o=u.gdprApplies,e=u.vendorConsents;!t&&o&&e&&f&&(r.forEach(function(t){var r=i(t,e,f);n[r?"approve":"deny"](t,!0)}),n.complete())};t.fetchConsentData({callback:u})};var f=function(t){var f=t.callback,i;if(n.allConsentData)return f(null,n.allConsentData);r.add("FETCH_CONSENT_DATA",f);i={};o(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},f=t.purposeConsents,o=t.gdprApplies,s=t.vendorConsents;(arguments.length>1?arguments[1]:void 0)&&(i={purposeConsents:f,gdprApplies:o,vendorConsents:s},u("allConsentData",i));e(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(arguments.length>1?arguments[1]:void 0)&&(i.consentString=t.consentData,u("allConsentData",i));r.execute("FETCH_CONSENT_DATA",[null,n.allConsentData])})})},e=function(n){var t=ct();t&&t("getConsentData",null,n)},o=function(n){var i=ru(it),t=ct();t&&t("getVendorConsents",i,n)},i=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!!t[it[n]];return r&&function(){return yr[n].every(function(n){return i[n]})}()}}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ot,oi,g;Object.assign=Object.assign||function(n){for(var t,i,r=1;r4;n--){if(t=document.createElement("div"),t.innerHTML="",t.getElementsByTagName("span").length)return t=null,n;t=null}return null};t.encodeAndBuildRequest=function(n,t){return n.map(encodeURIComponent).join(t)};t.isObject=function(n){return null!==n&&"object"===u(n)&&!1===Array.isArray(n)};t.defineGlobalNamespace=function(){return window.adobe=t.isObject(window.adobe)?window.adobe:{},window.adobe};t.pluck=function(n,t){return t.reduce(function(t,i){return n[i]&&(t[i]=n[i]),t},Object.create(null))};t.parseOptOut=function(n,t,i){t||(t=i,n.d_optout&&n.d_optout instanceof Array&&(t=n.d_optout.join(",")));var r=parseInt(n.d_ottl,10);return isNaN(r)&&(r=7200),{optOut:t,d_ottl:r}};t.normalizeBoolean=function(n){var t=n;return"true"===n?t=!0:"false"===n&&(t=!1),t}}),ir=(t.isObjectEmpty,t.isValueEmpty,t.getIeVersion,t.encodeAndBuildRequest,t.isObject,t.defineGlobalNamespace,t.pluck,t.parseOptOut,t.normalizeBoolean,ci),rr=r.MESSAGES,ur={0:"prefix",1:"orgID",2:"state"},pt=function(n,t){this.parse=function(n){try{var t={};return n.data.split("|").forEach(function(n,i){void 0!==n&&(t[ur[i]]=2!==i?n:JSON.parse(n))}),t}catch(n){}};this.isInvalid=function(i){var r=this.parse(i);if(!r||Object.keys(r).length<2)return!0;var u=n!==r.orgID,f=!t||i.origin!==t,e=-1===Object.keys(rr).indexOf(r.prefix);return u||f||e};this.send=function(i,r,u){var f=r+"|"+n;u&&u===Object(u)&&(f+="|"+JSON.stringify(u));try{i.postMessage(f,t)}catch(n){}}},wt=r.MESSAGES,fr=function(t,i,r,u){function s(n){Object.assign(f,n)}function v(n){Object.assign(f.state,n);Object.assign(f.state.ALLFIELDS,n);f.callbackRegistry.executeAll(f.state)}function y(n){if(!e.isInvalid(n)){o=!1;var t=e.parse(n);f.setStateAndPublish(t.state)}}function h(n){!o&&l&&(o=!0,e.send(u,n))}function a(){s(new di(r._generateID));f.getMarketingCloudVisitorID();f.callbackRegistry.executeAll(f.state,!0);n.removeEventListener("message",c)}function c(t){if(!e.isInvalid(t)){var i=e.parse(t);o=!1;n.clearTimeout(f._handshakeTimeout);n.removeEventListener("message",c);s(new nr(f));n.addEventListener("message",y);f.setStateAndPublish(i.state);f.callbackRegistry.hasCallbacks()&&h(wt.GETSTATE)}}function p(){l&&postMessage?(n.addEventListener("message",c),h(wt.HANDSHAKE),f._handshakeTimeout=setTimeout(a,250)):a()}function w(){n.s_c_in||(n.s_c_il=[],n.s_c_in=0);f._c="Visitor";f._il=n.s_c_il;f._in=n.s_c_in;f._il[f._in]=f;n.s_c_in++}function b(){function n(n){0!==n.indexOf("_")&&"function"==typeof r[n]&&(f[n]=function(){})}Object.keys(r).forEach(n);f.getSupplementalDataID=r.getSupplementalDataID;f.isAllowed=function(){return!0}}var f=this,l=i.whitelistParentDomain,o,e;f.state={ALLFIELDS:{}};f.version=r.version;f.marketingCloudOrgID=t;f.cookieDomain=r.cookieDomain||"";f._instanceType="child";o=!1;e=new pt(t,l);f.callbackRegistry=ir();f.init=function(){w();b();s(new tr(f));p()};f.findField=function(n,t){if(void 0!==f.state[n])return t(f.state[n]),f.state[n]};f.messageParent=h;f.setStateAndPublish=v},w=r.MESSAGES,bt=r.ALL_APIS,er=r.ASYNC_API_MAP,or=r.FIELDGROUP_TO_FIELD,sr=function(n,i){function u(){var i={};return Object.keys(bt).forEach(function(r){var f=bt[r],u=n[f]();t.isValueEmpty(u)||(i[r]=u)}),i}function f(){var t=[];return n._loading&&Object.keys(n._loading).forEach(function(i){if(n._loading[i]){var r=or[i];t.push(r)}}),t.length?t:null}function e(t){return function i(){var r=f(),u;r?(u=er[r[0]],n[u](i,!0)):t()}}function r(n,t){var r=u();i.send(n,t,r)}function o(n){h(n);r(n,w.HANDSHAKE)}function s(n){e(function(){r(n,w.PARENTSTATE)})()}function h(t){function r(r){u.call(n,r);i.send(t,w.PARENTSTATE,{CUSTOMERIDS:n.getCustomerIDs()})}var u=n.setCustomerIDs;n.setCustomerIDs=r}return function(n){i.isInvalid(n)||(i.parse(n).prefix===w.HANDSHAKE?o:s)(n.source)}},hr=function(n,t){function u(n){return function(u){i[n]=u;r++;r===f&&t(i)}}var i={},r=0,f=Object.keys(n).length;Object.keys(n).forEach(function(t){var i=n[t],r;i.fn&&(r=i.args||[],r.unshift(u(t)),i.fn.apply(i.context||null,r))})},o={get:function(n){n=encodeURIComponent(n);var i=(";"+document.cookie).split(" ").join(";"),t=i.indexOf(";"+n+"="),r=t<0?t:i.indexOf(";",t+1);return t<0?"":decodeURIComponent(i.substring(t+2+n.length,r<0?i.length:r))},set:function(n,t,i){var u=h(i,"cookieLifetime"),r=h(i,"expires"),o=h(i,"domain"),s=h(i,"secure"),c=s?"Secure":"",f,e;return r&&"SESSION"!==u&&"NONE"!==u?(f=""!==t?parseInt(u||0,10):-60,f?(r=new Date,r.setTime(r.getTime()+1e3*f)):1===r&&(r=new Date,e=r.getYear(),r.setYear(e+2+(e<1900?1900:0)))):r=0,n&&"NONE"!==u?(document.cookie=encodeURIComponent(n)+"="+encodeURIComponent(t)+"; path=/;"+(r?" expires="+r.toGMTString()+";":"")+(o?" domain="+o+";":"")+c,this.get(n)===t):0},remove:function(n,t){var i=h(t,"domain");i=i?" domain="+i+";":"";document.cookie=encodeURIComponent(n)+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"+i}},kt=function(t){var i,r,u;for(!t&&n.location&&(t=n.location.hostname),i=t,u=i.split("."),r=u.length-2;r>=0;r--)if(i=u.slice(r).join("."),o.set("test","cookie",{domain:i}))return o.remove("test",{domain:i}),i;return""},dt={compare:c,isLessThan:function(n,t){return c(n,t)<0},areVersionsDifferent:function(n,t){return 0!==c(n,t)},isGreaterThan:function(n,t){return c(n,t)>0},isEqual:function(n,t){return 0===c(n,t)}},gt=!!n.postMessage,tt={postMessage:function(n,t,i){var r=1;t&&(gt?i.postMessage(n,t.replace(/([^:]+:\/\/[^\/]+).*/,"$1")):t&&(i.location=t.replace(/#.*$/,"")+"#"+ +new Date+r+++"&"+n))},receiveMessage:function(t,i){var r;try{gt&&(t&&(r=function(n){if("string"==typeof i&&n.origin!==i||"[object Function]"===Object.prototype.toString.call(i)&&!1===i(n.origin))return!1;t(n)}),n.addEventListener?n[t?"addEventListener":"removeEventListener"]("message",r):n[t?"attachEvent":"detachEvent"]("onmessage",r))}catch(t){}}},cr=function(n){var i,t,r="0123456789",e="",o="",s=8,u=10,f=10;if(1==n){for(r+="ABCDEF",i=0;16>i;i++)t=Math.floor(Math.random()*s),e+=r.substring(t,t+1),t=Math.floor(Math.random()*s),o+=r.substring(t,t+1),s=16;return e+"-"+o}for(i=0;19>i;i++)t=Math.floor(Math.random()*u),e+=r.substring(t,t+1),0===i&&9==t?u=3:(1==i||2==i)&&10!=u&&2>t?u=10:2t?f=10:20&&(t=!1)),{corsType:i,corsCookiesEnabled:t}}(),getCORSInstance:function(){return"none"===this.corsMetadata.corsType?null:new n[this.corsMetadata.corsType]},fireCORS:function(i,r){function e(t){var r;try{if((r=JSON.parse(t))!==Object(r))return void f.handleCORSError(i,null,"Response is not JSON")}catch(t){return void f.handleCORSError(i,t,"Error parsing response as JSON")}try{for(var o=i.callback,u=n,e=0;e=f&&(n.splice(r,1),r--);return{dataPresent:e,dataValid:o}},manageSyncsSize:function(n){if(n.join("*").length>this.MAX_SYNCS_LENGTH)for(n.sort(function(n,t){return parseInt(n.split("-")[1],10)-parseInt(t.split("-")[1],10)});n.join("*").length>this.MAX_SYNCS_LENGTH;)n.shift()},fireSync:function(n,t,i,u,f,e){var l=this,o,a,h,v,c,y,s;if(n){if("img"===t.tag)for(c=t.url,y=r.loadSSL?"https:":"http:",o=0,a=c.length;oi.DAYS_BETWEEN_SYNC_ID_CALLS},attachIframeASAP:function(){function n(){t.startedAttachingIframe||(f.body?t.attachIframe():setTimeout(n,30))}var t=this;n()}}},ni={audienceManagerServer:{},audienceManagerServerSecure:{},cookieDomain:{},cookieLifetime:{},cookieName:{},doesOptInApply:{},disableThirdPartyCalls:{},discardTrackingServerECID:{},idSyncAfterIDCallResult:{},idSyncAttachIframeOnWindowLoad:{},idSyncContainerID:{},idSyncDisable3rdPartySyncing:{},disableThirdPartyCookies:{},idSyncDisableSyncs:{},disableIdSyncs:{},idSyncIDCallResult:{},idSyncSSLUseAkamai:{},isCoopSafe:{},isIabContext:{},isOptInStorageEnabled:{},loadSSL:{},loadTimeout:{},marketingCloudServer:{},marketingCloudServerSecure:{},optInCookieDomain:{},optInStorageExpiry:{},overwriteCrossDomainMCIDAndAID:{},preOptInApprovals:{},previousPermissions:{},resetBeforeVersion:{},sdidParamExpiry:{},serverState:{},sessionCookieName:{},secureCookie:{},takeTimeoutMetrics:{},trackingServer:{},trackingServerSecure:{},whitelistIframeDomains:{},whitelistParentDomain:{}},ti={getConfigNames:function(){return Object.keys(ni)},getConfigs:function(){return ni},normalizeConfig:function(n){return"function"!=typeof n?n:n()}},vr=function(n){var t={};return n.on=function(n,i,r){if(!i||"function"!=typeof i)throw new Error("[ON] Callback should be a function.");t.hasOwnProperty(n)||(t[n]=[]);var u=t[n].push({callback:i,context:r})-1;return function(){t[n].splice(u,1);t[n].length||delete t[n]}},n.off=function(n,i){t.hasOwnProperty(n)&&(t[n]=t[n].filter(function(n){if(n.callback!==i)return n}))},n.publish=function(n){if(t.hasOwnProperty(n)){var i=[].slice.call(arguments,1);t[n].slice(0).forEach(function(n){n.callback.apply(n.context,i)})}},n.publish},f={PENDING:"pending",CHANGED:"changed",COMPLETE:"complete"},e={AAM:"aam",ADCLOUD:"adcloud",ANALYTICS:"aa",CAMPAIGN:"campaign",ECID:"ecid",LIVEFYRE:"livefyre",TARGET:"target",VIDEO_ANALYTICS:"videoaa"},it=(y={},v(y,e.AAM,565),v(y,e.ECID,565),y),yr=(p={},v(p,e.AAM,[1,2,5]),v(p,e.ECID,[1,2,5]),p),b=function(n){return Object.keys(n).map(function(t){return n[t]})}(e),ii=function(){var n={};return n.callbacks=Object.create(null),n.add=function(t,i){if(!pi(i))throw new Error("[callbackRegistryFactory] Make sure callback is a function or an array of functions.");n.callbacks[t]=n.callbacks[t]||[];var r=n.callbacks[t].push(i)-1;return function(){n.callbacks[t].splice(r,1)}},n.execute=function(t,i){if(n.callbacks[t]){i=void 0===i?[]:i;i=i instanceof Array?i:[i];try{for(;n.callbacks[t].length;){var r=n.callbacks[t].shift();"function"==typeof r?r.apply(null,i):r instanceof Array&&r[1].apply(r[0],i)}delete n.callbacks[t]}catch(n){}}},n.executeAll=function(t,i){(i||t&&!yi(t))&&Object.keys(n.callbacks).forEach(function(i){var r=void 0!==t[i]?t[i]:"";n.execute(i,r)},n)},n.hasCallbacks=function(){return Boolean(Object.keys(n.callbacks).length)},n},pr=function(){},wr=function(n){var i=window,t=i.console;return!!t&&"function"==typeof t[n]},rt=function(n,t,i){return i()?function(){if(wr(n)){for(var r=arguments.length,u=new Array(r),i=0;i-1})},ri=function(n,t){return n.reduce(function(n,i){return n[i]=t,n},{})},dr=function(n){return JSON.parse(JSON.stringify(n))},gr=function(n){return"[object Array]"===Object.prototype.toString.call(n)&&!n.length},ui=function(n){if(fi(n))return n;try{return JSON.parse(n)}catch(n){return{}}},et=function(n){return void 0===n||(fi(n)?ft(Object.keys(n)):nu(n))},nu=function(n){try{var t=JSON.parse(n);return!!n&&d(n,"string")&&ft(Object.keys(t))}catch(n){return!1}},fi=function(n){return null!==n&&d(n,"object")&&!1===Array.isArray(n)},a=function(){},tu=function(n){return d(n,"function")?n():n},ei=function(n,t){et(n)||k.error("".concat(t))},iu=function(n){return Object.keys(n).map(function(t){return n[t]})},ru=function(n){return iu(n).filter(function(n,t,i){return i.indexOf(n)===t})},uu=function(n){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.command,u=i.params,h=void 0===u?{}:u,f=i.callback,c=void 0===f?a:f,s;if(!r||-1===r.indexOf("."))throw new Error("[OptIn.execute] Please provide a valid command.");try{var e=r.split("."),t=n[e[0]],o=e[1];if(!t||"function"!=typeof t[o])throw new Error("Make sure the plugin and API name exist.");s=Object.assign(h,{callback:c});t[o].call(t,s)}catch(n){k.error("[execute] Something went wrong: "+n.message)}}};l.prototype=Object.create(Error.prototype);l.prototype.constructor=l;ot="fetchPermissions";oi="[OptIn#registerPlugin] Plugin is invalid.";nt.Categories=e;nt.TimeoutError=l;var st=Object.freeze({OptIn:nt,IabPlugin:ki}),fu=function(n,i){n.publishDestinations=function(r){var s=arguments[1],u=arguments[2],f,h,c,e,o;try{u="function"==typeof u?u:r.callback}catch(n){u=function(){}}if(f=i,!f.readyToAttachIframePreliminary())return void u({error:"The destination publishing iframe is disabled in the Visitor library."});if("string"==typeof r){if(!r.length)return void u({error:"subdomain is not a populated string."});if(!(s instanceof Array&&s.length))return void u({error:"messages is not a populated array."});if(h=!1,s.forEach(function(n){"string"==typeof n&&n.length&&(f.addMessage(n),h=!0)}),!h)return void u({error:"None of the messages are populated strings."})}else{if(!t.isObject(r))return void u({error:"Invalid parameters passed."});if(c=r,"string"!=typeof(r=c.subdomain)||!r.length)return void u({error:"config.subdomain is not a populated string."});if(e=c.urlDestinations,!(e instanceof Array&&e.length))return void u({error:"config.urlDestinations is not a populated array."});o=[];e.forEach(function(n){t.isObject(n)&&(n.hideReferrer?n.message&&f.addMessage(n.message):o.push(n))});!function n(){o.length&&setTimeout(function(){var i=new Image,t=o.shift();i.src=t.url;f.onPageDestinationsFired.push(t);n()},100)}()}f.iframe?(u({message:"The destination publishing iframe is already attached and loaded."}),f.requestToProcess()):!n.subdomain&&n._getField("MCMID")?(f.subdomain=r,f.doAttachIframe=!0,f.url=f.getUrl(),f.readyToAttachIframe()?(f.iframeLoadedCallbacks.push(function(n){u({message:"Attempted to attach and load the destination publishing iframe through this API call. Result: "+(n.message||"no result")})}),f.attachIframe()):u({error:"Encountered a problem in attempting to attach and load the destination publishing iframe through this API call."})):f.iframeLoadedCallbacks.push(function(n){u({message:"Attempted to attach and load the destination publishing iframe through normal Visitor API processing. Result: "+(n.message||"no result")})})}},eu=function u(n){function r(n,t){return n>>>t|n<<32-t}for(var o,nt,b,t,f,l=Math.pow,a=l(2,32),k="",e=[],d=8*n.length,i=u.h=u.h||[],v=u.k=u.k||[],y=v.length,g={},s=2;y<64;s++)if(!g[s]){for(t=0;t<313;t+=s)g[t]=s;i[y]=l(s,.5)*a|0;v[y++]=l(s,1/3)*a|0}for(n+="€";n.length%64-56;)n+="\0";for(t=0;t>8)return;e[t>>2]|=f<<(3-t)%4*8}for(e[e.length]=d/a|0,e[e.length]=d,f=0;f>>3)+o[t-7]+(r(w,17)^r(w,19)^w>>>10)|0);i=[tt+((r(h,2)^r(h,13)^r(h,22))+(h&i[1]^h&i[2]^i[1]&i[2]))|0].concat(i);i[4]=i[4]+tt|0}for(t=0;t<8;t++)i[t]=i[t]+nt[t]|0}for(t=0;t<8;t++)for(f=3;f+1;f--)b=i[t]>>8*f&255,k+=(b<16?0:"")+b.toString(16);return k},si=function(n,t){return"SHA-256"!==t&&"SHA256"!==t&&"sha256"!==t&&"sha-256"!==t||(n=eu(n)),n},hi=function(n){return String(n).trim().toLowerCase()},ou=st.OptIn;t.defineGlobalNamespace();window.adobe.OptInCategories=ou.Categories;g=function(f,e,s){function st(n){var t=n;return function(n){var r=n||y.location.href,i;try{if(i=h._extractParamFromUri(r,t),i)return c.parsePipeDelimetedKeyValues(i)}catch(n){}}}function bt(n){function t(n,t,r){n&&n.match(i.VALID_VISITOR_ID_REGEX)&&(r===a&&(yt=!0),t(n))}t(n[a],h.setMarketingCloudVisitorID,a);h._setFieldExpire(b,-1);t(n[l],h.setAnalyticsVisitorID)}function ht(n){n=n||{};h._supplementalDataIDCurrent=n.supplementalDataIDCurrent||"";h._supplementalDataIDCurrentConsumed=n.supplementalDataIDCurrentConsumed||{};h._supplementalDataIDLast=n.supplementalDataIDLast||"";h._supplementalDataIDLastConsumed=n.supplementalDataIDLastConsumed||{}}function ct(n){function t(n,t,i){return i=i?i+="|":i,i+(n+"="+encodeURIComponent(t))}function i(n,i){var u=i[0],r=i[1];return null!=r&&r!==p&&(n=t(u,r,n)),n}var r=n.reduce(i,"");return function(n){var t=c.getTimestampInSeconds();return n=n?n+="|":n,n+("TS="+t)}(r)}function gt(n){var i=n.minutesToLive,t="";return(h.idSyncDisableSyncs||h.disableIdSyncs)&&(t=t||"Error: id syncs have been disabled"),"string"==typeof n.dpid&&n.dpid.length||(t=t||"Error: config.dpid is empty"),"string"==typeof n.url&&n.url.length||(t=t||"Error: config.url is empty"),void 0===i?i=20160:(i=parseInt(i,10),(isNaN(i)||i<=0)&&(t=t||"Error: config.minutesToLive needs to be a positive number")),{error:t,ttl:i}}function ni(){return!!h.configs.doesOptInApply&&!(k.optIn.isComplete&&it())}function it(){return h.configs.isIabContext?k.optIn.isApproved(k.optIn.Categories.ECID)&&vt:k.optIn.isApproved(k.optIn.Categories.ECID)}function ti(n,t){if(vt=!0,n)throw new Error("[IAB plugin] : "+n);t.gdprApplies&&(et=t.consentString);h.init();at()}function lt(){k.optIn.isApproved(k.optIn.Categories.ECID)&&(h.configs.isIabContext?k.optIn.execute({command:"iabPlugin.fetchConsentData",callback:ti}):(h.init(),at()))}function at(){k.optIn.off("complete",lt)}var y,d,ft,c,v,w;if(!s||s.split("").reverse().join("")!==f)throw new Error("Please use `Visitor.getInstance` to instantiate Visitor.");var h=this,k=window.adobe,et="",vt=!1,yt=!1;h.version="4.4.0";y=n;d=y.Visitor;d.version=h.version;d.AuthState=r.AUTH_STATE;d.OptOut=r.OPT_OUT;y.s_c_in||(y.s_c_il=[],y.s_c_in=0);h._c="Visitor";h._il=y.s_c_il;h._in=y.s_c_in;h._il[h._in]=h;y.s_c_in++;h._instanceType="regular";h._log={requests:[]};h.marketingCloudOrgID=f;h.cookieName="AMCV_"+f;h.sessionCookieName="AMCVS_"+f;h.cookieDomain=kt();h.loadSSL=y.location.protocol.toLowerCase().indexOf("https")>=0;h.loadTimeout=3e4;h.CORSErrors=[];h.marketingCloudServer=h.audienceManagerServer="dpm.demdex.net";h.sdidParamExpiry=30;var rt=null,a="MCMID",wt="MCIDTS",ut="A",l="MCAID",nt="AAM",b="MCAAMB",p="NONE",g=function(n){return!Object.prototype[n]},ot=lr(h);h.FIELDS=r.FIELDS;h.cookieRead=function(n){return o.get(n)};h.cookieWrite=function(n,t,i){var u=h.cookieLifetime?(""+h.cookieLifetime).toUpperCase():"",r=!1;return h.configs&&h.configs.secureCookie&&"https:"===location.protocol&&(r=!0),o.set(n,""+t,{expires:i,domain:h.cookieDomain,cookieLifetime:u,secure:r})};h.resetState=function(n){n?h._mergeServerState(n):ht()};h._isAllowedDone=!1;h._isAllowedFlag=!1;h.isAllowed=function(){return h._isAllowedDone||(h._isAllowedDone=!0,(h.cookieRead(h.cookieName)||h.cookieWrite(h.cookieName,"T",1))&&(h._isAllowedFlag=!0)),"T"===h.cookieRead(h.cookieName)&&h._helpers.removeCookie(h.cookieName),h._isAllowedFlag};h.setMarketingCloudVisitorID=function(n){h._setMarketingCloudFields(n)};h._use1stPartyMarketingCloudServer=!1;h.getMarketingCloudVisitorID=function(n,t){h.marketingCloudServer&&h.marketingCloudServer.indexOf(".demdex.net")<0&&(h._use1stPartyMarketingCloudServer=!0);var i=h._getAudienceManagerURLData("_setMarketingCloudFields"),r=i.url;return h._getRemoteField(a,r,n,t,i)};h.getVisitorValues=function(n,i){var r={MCMID:{fn:h.getMarketingCloudVisitorID,args:[!0],context:h},MCOPTOUT:{fn:h.isOptedOut,args:[void 0,!0],context:h},MCAID:{fn:h.getAnalyticsVisitorID,args:[!0],context:h},MCAAMLH:{fn:h.getAudienceManagerLocationHint,args:[!0],context:h},MCAAMB:{fn:h.getAudienceManagerBlob,args:[!0],context:h}},u=i&&i.length?t.pluck(r,i):r;hr(u,n)};h._currentCustomerIDs={};h._customerIDsHashChanged=!1;h._newCustomerIDsHash="";h.setCustomerIDs=function(n,i){function a(){h._customerIDsHashChanged=!1}var f,r,o,e;if(!h.isOptedOut()&&n){if(!t.isObject(n)||t.isObjectEmpty(n))return!1;h._readVisitor();for(f in n)if(g(f)&&(r=n[f],i=r.hasOwnProperty("hashType")?r.hashType:i,r))if("object"===u(r)){if(e={},r.id){if(i){if(!(o=si(hi(r.id),i)))return;r.id=o;e.hashType=i}e.id=r.id}void 0!=r.authState&&(e.authState=r.authState);h._currentCustomerIDs[f]=e}else if(i){if(!(o=si(hi(r),i)))return;h._currentCustomerIDs[f]={id:o,hashType:i}}else h._currentCustomerIDs[f]={id:r};var l=h.getCustomerIDs(),s=h._getField("MCCIDH"),c="";s||(s=0);for(f in l)g(f)&&(r=l[f],c+=(c?"|":"")+f+"|"+(r.id?r.id:"")+(r.authState?r.authState:""));h._newCustomerIDsHash=String(h._hash(c));h._newCustomerIDsHash!==s&&(h._customerIDsHashChanged=!0,h._mapCustomerIDs(a))}};h.getCustomerIDs=function(){h._readVisitor();var n,t,i={};for(n in h._currentCustomerIDs)g(n)&&(t=h._currentCustomerIDs[n],i[n]||(i[n]={}),t.id&&(i[n].id=t.id),i[n].authState=void 0!=t.authState?t.authState:d.AuthState.UNKNOWN,t.hashType&&(i[n].hashType=t.hashType));return i};h.setAnalyticsVisitorID=function(n){h._setAnalyticsFields(n)};h.getAnalyticsVisitorID=function(n,t,i){var r,u,e,f;if(!c.isTrackingServerPopulated()&&!i)return h._callCallback(n,[""]),"";if(r="",i||(r=h.getMarketingCloudVisitorID(function(){h.getAnalyticsVisitorID(n,!0)})),r||i){if(u=i?h.marketingCloudServer:h.trackingServer,e="",h.loadSSL&&(i?h.marketingCloudServerSecure&&(u=h.marketingCloudServerSecure):h.trackingServerSecure&&(u=h.trackingServerSecure)),f={},u){var o="http"+(h.loadSSL?"s":"")+"://"+u+"/id",s="d_visid_ver="+h.version+"&mcorgid="+encodeURIComponent(h.marketingCloudOrgID)+(r?"&mid="+encodeURIComponent(r):"")+(h.idSyncDisable3rdPartySyncing||h.disableThirdPartyCookies?"&d_coppa=true":""),v=["s_c_il",h._in,"_set"+(i?"MarketingCloud":"Analytics")+"Fields"];e=o+"?"+s+"&callback=s_c_il%5B"+h._in+"%5D._set"+(i?"MarketingCloud":"Analytics")+"Fields";f.corsUrl=o+"?"+s;f.callback=v}return f.url=e,h._getRemoteField(i?a:l,e,n,t,f)}return""};h.getAudienceManagerLocationHint=function(n,t){var i,r,u;return h.getMarketingCloudVisitorID(function(){h.getAudienceManagerLocationHint(n,!0)})&&(i=h._getField(l),!i&&c.isTrackingServerPopulated()&&(i=h.getAnalyticsVisitorID(function(){h.getAudienceManagerLocationHint(n,!0)})),i||!c.isTrackingServerPopulated())?(r=h._getAudienceManagerURLData(),u=r.url,h._getRemoteField("MCAAMLH",u,n,t,r)):""};h.getLocationHint=h.getAudienceManagerLocationHint;h.getAudienceManagerBlob=function(n,t){var i,r,u;return h.getMarketingCloudVisitorID(function(){h.getAudienceManagerBlob(n,!0)})&&(i=h._getField(l),!i&&c.isTrackingServerPopulated()&&(i=h.getAnalyticsVisitorID(function(){h.getAudienceManagerBlob(n,!0)})),i||!c.isTrackingServerPopulated())?(r=h._getAudienceManagerURLData(),u=r.url,h._customerIDsHashChanged&&h._setFieldExpire(b,-1),h._getRemoteField(b,u,n,t,r)):""};h._supplementalDataIDCurrent="";h._supplementalDataIDCurrentConsumed={};h._supplementalDataIDLast="";h._supplementalDataIDLastConsumed={};h.getSupplementalDataID=function(n,t){h._supplementalDataIDCurrent||t||(h._supplementalDataIDCurrent=h._generateID(1));var i=h._supplementalDataIDCurrent;return h._supplementalDataIDLast&&!h._supplementalDataIDLastConsumed[n]?(i=h._supplementalDataIDLast,h._supplementalDataIDLastConsumed[n]=!0):i&&(h._supplementalDataIDCurrentConsumed[n]&&(h._supplementalDataIDLast=h._supplementalDataIDCurrent,h._supplementalDataIDLastConsumed=h._supplementalDataIDCurrentConsumed,h._supplementalDataIDCurrent=i=t?"":h._generateID(1),h._supplementalDataIDCurrentConsumed={}),i&&(h._supplementalDataIDCurrentConsumed[n]=!0)),i};ft=!1;h._liberatedOptOut=null;h.getOptOut=function(i,r){var u=h._getAudienceManagerURLData("_setMarketingCloudFields"),e=u.url,f;return it()?h._getRemoteField("MCOPTOUT",e,i,r,u):(h._registerCallback("liberatedOptOut",i),null!==h._liberatedOptOut)?(h._callAllCallbacks("liberatedOptOut",[h._liberatedOptOut]),ft=!1,h._liberatedOptOut):ft?null:(ft=!0,f="liberatedGetOptOut",u.corsUrl=u.corsUrl.replace(/dpm\.demdex\.net\/id\?/,"dpm.demdex.net/optOutStatus?"),u.callback=[f],n[f]=function(n){if(n===Object(n)){var i,r,u=t.parseOptOut(n,i,p);i=u.optOut;r=1e3*u.d_ottl;h._liberatedOptOut=i;setTimeout(function(){h._liberatedOptOut=null},r)}h._callAllCallbacks("liberatedOptOut",[i]);ft=!1},ot.fireCORS(u),null)};h.isOptedOut=function(n,t,i){t||(t=d.OptOut.GLOBAL);var r=h.getOptOut(function(i){var r=i===d.OptOut.GLOBAL||i.indexOf(t)>=0;h._callCallback(n,[r])},i);return r?r===d.OptOut.GLOBAL||r.indexOf(t)>=0:null};h._fields=null;h._fieldsExpired=null;h._hash=function(n){var i,r,t=0;if(n)for(i=0;i0;)h._callCallback(i.shift(),t)}};h._addQuerystringParam=function(n,t,i,r){var f=encodeURIComponent(t)+"="+encodeURIComponent(i),e=c.parseHash(n),u=c.hashlessUrl(n);if(-1===u.indexOf("?"))return u+"?"+f+e;var o=u.split("?"),s=o[0]+"?",h=o[1];return s+c.addQueryParamAtLocation(h,f,r)+e};h._extractParamFromUri=function(n,t){var r=new RegExp("[\\?&#]"+t+"=([^&#]*)"),i=r.exec(n);if(i&&i.length)return decodeURIComponent(i[1])};h._parseAdobeMcFromUrl=st(i.ADOBE_MC);h._parseAdobeMcSdidFromUrl=st(i.ADOBE_MC_SDID);h._attemptToPopulateSdidFromUrl=function(n){var t=h._parseAdobeMcSdidFromUrl(n),i=1e9;t&&t.TS&&(i=c.getTimestampInSeconds()-t.TS);t&&t.SDID&&t.MCORGID===f&&ii.ADOBE_MC_TTL_IN_MIN||n.MCORGID!==f)return;bt(n)}};h._mergeServerState=function(n){if(n)try{if(n=function(n){return c.isObject(n)?n:JSON.parse(n)}(n),n[h.marketingCloudOrgID]){var t=n[h.marketingCloudOrgID];!function(n){c.isObject(n)&&h.setCustomerIDs(n)}(t.customerIDs);ht(t.sdid)}}catch(n){throw new Error("`serverState` has an invalid format.");}};h._timeout=null;h._loadData=function(n,t,i,r){t=h._addQuerystringParam(t,"d_fieldgroup",n,1);r.url=h._addQuerystringParam(r.url,"d_fieldgroup",n,1);r.corsUrl=h._addQuerystringParam(r.corsUrl,"d_fieldgroup",n,1);w.fieldGroupObj[n]=!0;r===Object(r)&&r.corsUrl&&"XMLHttpRequest"===ot.corsMetadata.corsType&&ot.fireCORS(r,i,n)};h._clearTimeout=function(n){null!=h._timeout&&h._timeout[n]&&(clearTimeout(h._timeout[n]),h._timeout[n]=0)};h._settingsDigest=0;h._getSettingsDigest=function(){if(!h._settingsDigest){var n=h.version;h.audienceManagerServer&&(n+="|"+h.audienceManagerServer);h.audienceManagerServerSecure&&(n+="|"+h.audienceManagerServerSecure);h._settingsDigest=h._hash(n)}return h._settingsDigest};h._readVisitorDone=!1;h._readVisitor=function(){if(!h._readVisitorDone){h._readVisitorDone=!0;var r,e,f,t,u,o,v=h._getSettingsDigest(),s=!1,n=h.cookieRead(h.cookieName),a=new Date;if(n||yt||h.discardTrackingServerECID||(n=h.cookieRead(i.FIRST_PARTY_SERVER_COOKIE)),null==h._fields&&(h._fields={}),n&&"T"!==n)for(n=n.split("|"),n[0].match(/^[\-0-9]+$/)&&(parseInt(n[0],10)!==v&&(s=!0),n.shift()),n.length%2==1&&n.pop(),r=0;r1?(u=parseInt(e[1],10),o=e[1].indexOf("s")>0):(u=0,o=!1),s&&("MCCIDH"===f&&(t=""),u>0&&(u=a.getTime()/1e3-60)),f&&t&&(h._setField(f,t,1),u>0&&(h._fields["expire"+f]=u+(o?"s":""),(a.getTime()>=1e3*u||o&&!h.cookieRead(h.sessionCookieName))&&(h._fieldsExpired||(h._fieldsExpired={}),h._fieldsExpired[f]=!0)));!h._getField(l)&&c.isTrackingServerPopulated()&&(n=h.cookieRead("s_vi"))&&(n=n.split("|"),n.length>1&&n[0].indexOf("v1")>=0&&(t=n[1],r=t.indexOf("["),r>=0&&(t=t.substring(0,r)),t&&t.match(i.VALID_VISITOR_ID_REGEX)&&h._setField(l,t)))}};h._appendVersionTo=function(n){var t="vVersion|"+h.version,r=n?h._getCookieVersion(n):null;return r?dt.areVersionsDifferent(r,h.version)&&(n=n.replace(i.VERSION_REGEX,t)):n+=(n?"|":"")+t,n};h._writeVisitor=function(){var n,i,t=h._getSettingsDigest();for(n in h._fields)g(n)&&h._fields[n]&&"expire"!==n.substring(0,6)&&(i=h._fields[n],t+=(t?"|":"")+n+(h._fields["expire"+n]?"-"+h._fields["expire"+n]:"")+"|"+i);t=h._appendVersionTo(t);h.cookieWrite(h.cookieName,t,1)};h._getField=function(n,t){return null==h._fields||!t&&h._fieldsExpired&&h._fieldsExpired[n]?null:h._fields[n]};h._setField=function(n,t,i){null==h._fields&&(h._fields={});h._fields[n]=t;i||h._writeVisitor()};h._getFieldList=function(n,t){var i=h._getField(n,t);return i?i.split("*"):null};h._setFieldList=function(n,t,i){h._setField(n,t?t.join("*"):"",i)};h._getFieldMap=function(n,t){var r=h._getFieldList(n,t),i,u;if(r){for(u={},i=0;i0?n.substr(t):""},hashlessUrl:function(n){var t=n.indexOf("#");return t>0?n.substr(0,t):n},addQueryParamAtLocation:function(n,t,i){var r=n.split("&");return i=null!=i?i:r.length,r.splice(i,0,t),r.join("&")},isFirstPartyAnalyticsVisitorIDCall:function(n,t,i){if(n!==l)return!1;var r;return t||(t=h.trackingServer),i||(i=h.trackingServerSecure),!("string"!=typeof(r=h.loadSSL?i:t)||!r.length)&&r.indexOf("2o7.net")<0&&r.indexOf("omtrdc.net")<0},isObject:function(n){return Boolean(n&&n===Object(n))},removeCookie:function(n){o.remove(n,{domain:h.cookieDomain})},isTrackingServerPopulated:function(){return!!h.trackingServer||!!h.trackingServerSecure},getTimestampInSeconds:function(){return Math.round((new Date).getTime()/1e3)},parsePipeDelimetedKeyValues:function(n){return n.split("|").reduce(function(n,t){var i=t.split("=");return n[i[0]]=decodeURIComponent(i[1]),n},{})},generateRandomString:function(n){n=n||5;for(var t="",i="abcdefghijklmnopqrstuvwxyz0123456789";n--;)t+=i[Math.floor(Math.random()*i.length)];return t},normalizeBoolean:function(n){return"true"===n||"false"!==n&&n},parseBoolean:function(n){return"true"===n||"false"!==n&&null},replaceMethodsWithFunction:function(n,t){for(var i in n)n.hasOwnProperty(i)&&"function"==typeof n[i]&&(n[i]=t);return n}};h._helpers=c;v=ar(h,d);h._destinationPublishing=v;h.timeoutMetricsLog=[];w={isClientSideMarketingCloudVisitorID:null,MCIDCallTimedOut:null,AnalyticsIDCallTimedOut:null,AAMIDCallTimedOut:null,fieldGroupObj:{},setState:function(n,t){switch(n){case"MC":!1===t?!0!==this.MCIDCallTimedOut&&(this.MCIDCallTimedOut=!1):this.MCIDCallTimedOut=t;break;case ut:!1===t?!0!==this.AnalyticsIDCallTimedOut&&(this.AnalyticsIDCallTimedOut=!1):this.AnalyticsIDCallTimedOut=t;break;case nt:!1===t?!0!==this.AAMIDCallTimedOut&&(this.AAMIDCallTimedOut=!1):this.AAMIDCallTimedOut=t}}};h.isClientSideMarketingCloudVisitorID=function(){return w.isClientSideMarketingCloudVisitorID};h.MCIDCallTimedOut=function(){return w.MCIDCallTimedOut};h.AnalyticsIDCallTimedOut=function(){return w.AnalyticsIDCallTimedOut};h.AAMIDCallTimedOut=function(){return w.AAMIDCallTimedOut};h.idSyncGetOnPageSyncInfo=function(){return h._readVisitor(),h._getField("MCSYNCSOP")};h.idSyncByURL=function(n){var i;if(!h.isOptedOut()){if(i=gt(n||{}),i.error)return i.error;var u,f,r=n.url,e=encodeURIComponent,o=v;return r=r.replace(/^https:/,"").replace(/^http:/,""),u=t.encodeAndBuildRequest(["",n.dpid,n.dpuuid||""],","),f=["ibs",e(n.dpid),"img",e(r),i.ttl,"",u],o.addMessage(f.join("|")),o.requestToProcess(),"Successfully queued"}};h.idSyncByDataSource=function(n){if(!h.isOptedOut())return n===Object(n)&&"string"==typeof n.dpuuid&&n.dpuuid.length?(n.url="//dpm.demdex.net/ibs:dpid="+n.dpid+"&dpuuid="+n.dpuuid,h.idSyncByURL(n)):"Error: config or config.dpuuid is empty"};fu(h,v);h._getCookieVersion=function(n){n=n||h.cookieRead(h.cookieName);var t=i.VERSION_REGEX.exec(n);return t&&t.length>1?t[1]:null};h._resetAmcvCookie=function(n){var t=h._getCookieVersion();t&&!dt.isLessThan(t,n)||c.removeCookie(h.cookieName)};h.setAsCoopSafe=function(){rt=!0};h.setAsCoopUnsafe=function(){rt=!1},function(){if(h.configs=Object.create(null),c.isObject(e))for(var n in e)g(n)&&(h[n]=e[n],h.configs[n]=e[n])}(),function(){[["getMarketingCloudVisitorID"],["setCustomerIDs",void 0],["getAnalyticsVisitorID"],["getAudienceManagerLocationHint"],["getLocationHint"],["getAudienceManagerBlob"]].forEach(function(n){var t=n[0],i=2===n.length?n[1]:"",r=h[t];h[t]=function(n){return it()&&h.isAllowed()?r.apply(h,arguments):("function"==typeof n&&h._callCallback(n,[i]),i)}})}();h.init=function(){if(ni())return k.optIn.fetchPermissions(lt,!0);!function(){if(c.isObject(e)){h.idSyncContainerID=h.idSyncContainerID||0;rt="boolean"==typeof h.isCoopSafe?h.isCoopSafe:c.parseBoolean(h.isCoopSafe);h.resetBeforeVersion&&h._resetAmcvCookie(h.resetBeforeVersion);h._attemptToPopulateIdsFromUrl();h._attemptToPopulateSdidFromUrl();h._readVisitor();var t=h._getField(wt),n=Math.ceil((new Date).getTime()/i.MILLIS_PER_DAY);h.idSyncDisableSyncs||h.disableIdSyncs||!v.canMakeSyncIDCall(t,n)||(h._setFieldExpire(b,-1),h._setField(wt,n));h.getMarketingCloudVisitorID();h.getAudienceManagerLocationHint();h.getAudienceManagerBlob();h._mergeServerState(h.serverState)}else h._attemptToPopulateIdsFromUrl(),h._attemptToPopulateSdidFromUrl()}(),function(){if(!h.idSyncDisableSyncs&&!h.disableIdSyncs){v.checkDPIframeSrc();var n=function(){var n=v;n.readyToAttachIframe()&&n.attachIframe()};y.addEventListener("load",function(){d.windowLoaded=!0;n()});try{tt.receiveMessage(function(n){v.receiveMessage(n.data)},v.iframeHost)}catch(n){}}}(),function(){h.whitelistIframeDomains&&i.POST_MESSAGE_ENABLED&&(h.whitelistIframeDomains=h.whitelistIframeDomains instanceof Array?h.whitelistIframeDomains:[h.whitelistIframeDomains],h.whitelistIframeDomains.forEach(function(n){var t=new pt(f,n),i=sr(h,t);tt.receiveMessage(i,n)}))}()}};g.config=ti;n.Visitor=g;var s=g,su=function(n){if(t.isObject(n))return Object.keys(n).filter(function(t){return""!==n[t]}).reduce(function(i,r){var u="doesOptInApply"!==r?n[r]:ti.normalizeConfig(n[r]),f=t.normalizeBoolean(u);return i[r]=f,i},Object.create(null))},hu=st.OptIn,cu=st.IabPlugin;return s.getInstance=function(i,r){var e,u,h,c;if(!i)throw new Error("Visitor requires Adobe Marketing Cloud Org ID.");if(i.indexOf("@")<0&&(i+="@AdobeOrg"),e=function(){var u=n.s_c_il,r,t;if(u)for(r=0;r