// For license information, see `https://lightning.cnn.com/launch/7be62238e4c3/97fa00444124/launch-2878c87af5e3.js`. window._satellite=window._satellite||{},window._satellite.container={buildInfo:{minified:!0,buildDate:"2025-09-04T15:59:47Z",turbineBuildDate:"2024-08-22T17:32:44Z",turbineVersion:"28.0.0"},environment:{id:"EN3e844b55c4454a57a423dd7b1405d5b7",stage:"production"},dataElements:{RSID:{defaultValue:"",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){var e=window.location.hostname,n=window.location.pathname,t={cnn:["cnn-adbp-domestic"],cnnamp:["cnn-adbp-domestic"],cnndev:["cnn-adbp-domestic-dev"],cnnintl:["cnn-adbp-domestic"],cnnintldev:["cnn-adbp-domestic-dev"],cnnesp:["cnn-adbp-esp"],cnnespdev:["cnn-adbp-esp-dev"],ireport:["cnn-adbp-domestic,cnnireport-adbp"],ireportdev:["cnn-adbp-domestic-dev,cnnireport-adbp-dev"],offsite:["cnn-adbp-offsite-domestic"],nativead:["cnn-adbp-domestic-nativead"],nativeaddev:["cnn-adbp-domestic-nativead-dev"],epu:["cnn-adbp-epu"]},a=["cnnespanol.cnn.com"],r=["training-es.stellar.cnn.com","espanol.stellar.cnn.com","cnne-stage.cnn.com"],i=["fave.api.cnn.io","fave-api.cnn.com"],o=["/v1/fav/","/v1/synacor/","/v1/iluminar/"],s=["/v1/epu/"],c=["/v1/amp/","/v1/fbia/"],l=["/v1/cnneamp/"],u="cnn",d="dev";["www.cnn.com","us.cnn.com","edition.cnn.com"].includes(e)?d="prod":a.includes(e)?(u="es",d="prod"):r.includes(e)&&(u="es");var p=t["cnn"+("es"==(window.CNN?.contentModel?.brandSite||u||"")?"esp":"")+("prod"==(window.CNN?.omniture?.rs_flag||d||"")?"":"dev")][0];if(e.includes("ireport.cnn.com")?p=t.ireport[0]:e.includes("ireportqa.cnn.com")?p=t.ireportdev[0]:e.includes("sponsorcontent.cnn.com")&&(p=t.nativead[0]),i.includes(e))if(p=t.cnn[0],o.includes(n)){p=t.offsite[0];var m=window.location.search;n.includes("/v1/fav")&&m.includes("?video=live/vr1")&&(p=t.cnn[0])}else s.includes(n)?p=t.epu[0]:c.includes(n)?p=t.cnnamp[0]:l.includes(n)&&(p=t.cnnesp[0]);return window.CNNIntlVideo&&(p=t.cnnintl[0]),window.CNNOffSitePartner&&(p=t.offsite[0]),p}}}},extensions:{"adobe-mcid":{displayName:"Experience Cloud ID Service",hostedLibFilesBaseUrl:"https://lightning.cnn.com/launch/7be62238e4c3/97fa00444124/3878e6d56b5e/hostedLibFiles/EP31a59fd25d824db7be52972a70e94c1c/",settings:{orgId:"7FF852E2556756057F000101@AdobeOrg",variables:[{name:"trackingServer",value:"metrics.cnn.com"},{name:"trackingServerSecure",value:"smetrics.cnn.com"}],doesOptInApply:!0,isOptInStorageEnabled:!1},modules:{"adobe-mcid/src/lib/sharedModules/mcidInstance.js":{script:function(e,n,t,a){"use strict";var r=t("@adobe/reactor-document"),i=t("../codeLibrary/VisitorAPI"),o=t("../../view/utils/timeUnits"),s=function(e){return e.reduce((function(e,n){var t=/^(true|false)$/i.test(n.value)?JSON.parse(n.value):n.value;return e[n.name]=t,e}),{})},c=function(e){var n=a.getExtensionSettings();if("string"!=typeof n.orgId)throw new TypeError("Org ID is not a string.");var t=s(n.variables||[]),r=n.doesOptInApply;r&&("boolean"==typeof r?t.doesOptInApply=r:n.optInCallback&&(t.doesOptInApply=n.optInCallback));var i=n.isOptInStorageEnabled;i&&(t.isOptInStorageEnabled=i);var c=n.optInCookieDomain;c&&(t.optInCookieDomain=c);var l=n.optInStorageExpiry;if(l){var u=n.timeUnit;if(u&&o[u]){var d=l*o[u];t.optInStorageExpiry=d}}else!0===i&&(t.optInStorageExpiry=33696e3);var p=n.previousPermissions;p&&(t.previousPermissions=p);var m=n.preOptInApprovals;if(m)t.preOptInApprovals=m;else{var f=n.preOptInApprovalInput;f&&(t.preOptInApprovals=f)}var g=n.isIabContext;g&&(t.isIabContext=g);var h=e.getInstance(n.orgId,t);return a.logger.info('Created instance using orgId: "'+n.orgId+'"'),a.logger.info("Set variables: "+JSON.stringify(t)),h.getMarketingCloudVisitorID((function(e){a.logger.info("Obtained Marketing Cloud Visitor Id: "+e)}),!0),h},l=function(e){return(a.getExtensionSettings().pathExclusions||[]).some((function(n){return n.valueIsRegex?new RegExp(n.value,"i").test(e):n.value===e}))},u=null;_satellite.getVisitorId=function(){return u},l(r.location.pathname)?a.logger.warn("MCID library not loaded. One of the path exclusions matches the current path."):u=c(i),e.exports=u},name:"mcid-instance",shared:!0},"adobe-mcid/src/lib/codeLibrary/VisitorAPI.js":{script:function(e){e.exports=(function(){"use strict";function e(n){return(e="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})(n)}function n(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function t(){return{callbacks:{},add:function(e,n){this.callbacks[e]=this.callbacks[e]||[];var t=this.callbacks[e].push(n)-1,a=this;return function(){a.callbacks[e].splice(t,1)}},execute:function(e,n){if(this.callbacks[e]){n=(n=void 0===n?[]:n)instanceof Array?n:[n];try{for(;this.callbacks[e].length;){var t=this.callbacks[e].shift();"function"==typeof t?t.apply(null,n):t instanceof Array&&t[1].apply(t[0],n)}delete this.callbacks[e]}catch(e){}}},executeAll:function(e,n){(n||e&&!D.isObjectEmpty(e))&&Object.keys(this.callbacks).forEach((function(n){var t=void 0!==e[n]?e[n]:"";this.execute(n,t)}),this)},hasCallbacks:function(){return Boolean(Object.keys(this.callbacks).length)}}}function a(e,n,t){var a=null==e?void 0:e[n];return void 0===a?t:a}function r(e){for(var n=/^\d+$/,t=0,a=e.length;tr)return 1;if(r>a)return-1}return 0}function s(e,n){if(e===n)return 0;var t=e.toString().split("."),a=n.toString().split(".");return r(t.concat(a))?(i(t,a),o(t,a)):NaN}function c(e){return e===Object(e)&&0===Object.keys(e).length}function l(e){return"function"==typeof e||e instanceof Array&&e.length}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};this.log=ue("log",e,n),this.warn=ue("warn",e,n),this.error=ue("error",e,n)}function d(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).cookieName,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).cookies;if(!e||!n)return{get:Ie,set:Ie,remove:Ie};var t={remove:function(){n.remove(e)},get:function(){var t=n.get(e),a={};try{a=JSON.parse(t)}catch(t){a={}}return a},set:function(a,r){r=r||{};var i=t.get(),o=Object.assign(i,a);n.set(e,JSON.stringify(o),{domain:r.optInCookieDomain||"",cookieLifetime:r.optInStorageExpiry||3419e4,secure:r.secure,sameSite:r.sameSite,expires:!0})}};return t}function p(e){this.name=this.constructor.name,this.message=e,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}function m(){function e(e,n){var t=ge(e);return t.length?t.every((function(e){return!!n[e]})):he(n)}function n(){k(T),P(ne.COMPLETE),y(v.status,v.permissions),s&&h.set(v.permissions,{optInCookieDomain:c,optInStorageExpiry:l,secure:p,sameSite:m}),b.execute(Ae)}function t(e){return function(t,a){if(!ve(t))throw new Error("[OptIn] Invalid category(-ies). Please use the `OptIn.Categories` enum.");return P(ne.CHANGED),Object.assign(T,ye(ge(t),e)),a||n(),v}}var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=a.doesOptInApply,i=a.previousPermissions,o=a.preOptInApprovals,s=a.isOptInStorageEnabled,c=a.optInCookieDomain,l=a.optInStorageExpiry,u=a.isIabContext,p=a.secureCookie,m=a.sameSiteCookie,f=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).cookies,g=Te(i);Pe(g,"Invalid `previousPermissions`!"),Pe(o,"Invalid `preOptInApprovals`!");var h=d({cookieName:"adobeujs-optin"},{cookies:f}),v=this,y=ee(v),b=se(),w=_e(g),_=_e(o),C=s?h.get():{},S={},N=function(e,n){return Ce(e)||n&&Ce(n)?ne.COMPLETE:ne.PENDING}(w,C),I=function(e,n,t){var a=ye(oe,!r);return r?Object.assign({},a,e,n,t):a}(_,w,C),T=be(I),P=function(e){return N=e},k=function(e){return I=e};v.deny=t(!1),v.approve=t(!0),v.denyAll=v.deny.bind(v,oe),v.approveAll=v.approve.bind(v,oe),v.isApproved=function(n){return e(n,v.permissions)},v.isPreApproved=function(n){return e(n,_)},v.fetchPermissions=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n?v.on(ne.COMPLETE,e):Ie;return!r||r&&v.isComplete||o?e(v.permissions):n||b.add(Ae,(function(){return e(v.permissions)})),t},v.complete=function(){v.status===ne.CHANGED&&n()},v.registerPlugin=function(e){if(!e||!e.name||"function"!=typeof e.onRegister)throw new Error(Ee);S[e.name]||(S[e.name]=e,e.onRegister.call(e,v))},v.execute=De(S),v.memoizeContent=function(e){Ne(e)&&h.set(e,{optInCookieDomain:c,optInStorageExpiry:l,secure:p,sameSite:m})},v.getMemoizedContent=function(e){var n=h.get();if(n)return n[e]},Object.defineProperties(v,{permissions:{get:function(){return I}},status:{get:function(){return N}},Categories:{get:function(){return te}},doesOptInApply:{get:function(){return!!r}},isPending:{get:function(){return v.status===ne.PENDING}},isComplete:{get:function(){return v.status===ne.COMPLETE}},__plugins:{get:function(){return Object.keys(S)}},isIabContext:{get:function(){return u}}})}function f(e,n){function t(){r=null,e.call(e,new p("The call took longer than you wanted!"))}function a(){r&&(clearTimeout(r),e.apply(e,arguments))}if(void 0===n)return e;var r=setTimeout(t,n);return a}function g(){if(window.__tcfapi)return window.__tcfapi;var e=window;if(e!==window.top){for(var n;!n;){e=e.parent;try{e.frames.__tcfapiLocator&&(n=e)}catch(e){}if(e===window.top)break}if(n){var t={};return window.__tcfapi=function(e,a,r,i){var o=Math.random()+"",s={__tcfapiCall:{command:e,parameter:i,version:a,callId:o}};t[o]=r,n.postMessage(s,"*")},window.addEventListener("message",(function(e){var n=e.data;if("string"==typeof n)try{n=JSON.parse(e.data)}catch(e){}if(n.__tcfapiReturn){var a=n.__tcfapiReturn;"function"==typeof t[a.callId]&&(t[a.callId](a.returnValue,a.success),delete t[a.callId])}}),!1),window.__tcfapi}me.error("__tcfapi not found")}else me.error("__tcfapi not found")}function h(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=!0===e.vendor.consents[n],r=t.every((function(n){return!0===e.purpose.consents[n]}));return a&&r}function v(){var e=this;e.name="iabPlugin",e.version="0.0.2";var n,t=se(),a={transparencyAndConsentData:null},r=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a[e]=n};e.fetchConsentData=function(e){var n=f(e.callback,e.timeout);i({callback:n})},e.isApproved=function(e){var n=e.callback,t=e.category,r=e.timeout;if(a.transparencyAndConsentData)return n(null,h(a.transparencyAndConsentData,ae[t],re[t]));var o=f((function(e,a){n(e,h(a,ae[t],re[t]))}),r);i({category:t,callback:o})},e.onRegister=function(t){n=t;var a=Object.keys(ae),r=function(e,n){!e&&n&&(a.forEach((function(e){var a=h(n,ae[e],re[e]);t[a?"approve":"deny"](e,!0)})),t.complete())};e.fetchConsentData({callback:r})};var i=function(e){var i=e.callback;if(a.transparencyAndConsentData)return i(null,a.transparencyAndConsentData);t.add("FETCH_CONSENT_DATA",i),o((function(e,i){if(i){var o=be(e),s=n.getMemoizedContent("iabConsentHash"),c=pe(o.tcString).toString(32);o.consentString=e.tcString,o.hasConsentChangedSinceLastCmpPull=s!==c,r("transparencyAndConsentData",o),n.memoizeContent({iabConsentHash:c})}t.execute("FETCH_CONSENT_DATA",[null,a.transparencyAndConsentData])}))},o=function(e){var n=Oe(ae),t=g();"function"==typeof t&&t("getTCData",2,e,n)}}var y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};Object.assign=Object.assign||function(e){for(var n,t,a=1;a=0||n.indexOf("Trident/")>=0&&n.indexOf("Windows NT 6")>=0};t.getIeVersion=function(){return document.documentMode?document.documentMode:a()?7:null},t.isFirefox=function(e){return!!/Firefox\/([0-9\.]+)(?:\s|$)/.test(e||window.navigator.userAgent)},t.encodeAndBuildRequest=function(e,n){return e.map(encodeURIComponent).join(n)},t.isObject=function(n){return null!==n&&"object"===e(n)&&!1===Array.isArray(n)},t.defineGlobalNamespace=function(){return window.adobe=t.isObject(window.adobe)?window.adobe:{},window.adobe},t.pluck=function(e,n){return n.reduce((function(n,t){return e[t]&&(n[t]=e[t]),n}),Object.create(null))},t.parseOptOut=function(e,n,t){n||(n=t,e.d_optout&&e.d_optout instanceof Array&&(n=e.d_optout.join(",")));var a=parseInt(e.d_ottl,10);return isNaN(a)&&(a=7200),{optOut:n,d_ottl:a}},t.normalizeBoolean=function(e){var n=e;return"true"===e?n=!0:"false"===e&&(n=!1),n}})),A=(D.isObjectEmpty,D.isValueEmpty,D.getIeVersion,D.isFirefox,D.encodeAndBuildRequest,D.isObject,D.defineGlobalNamespace,D.pluck,D.parseOptOut,D.normalizeBoolean,t),E=_.MESSAGES,L={0:"prefix",1:"orgID",2:"state"},M=function(e,n){this.parse=function(e){try{var n={};return e.data.split("|").forEach((function(e,t){void 0!==e&&(n[L[t]]=2!==t?e:JSON.parse(e))})),n}catch(e){}},this.isInvalid=function(t){var a=this.parse(t);if(!a||Object.keys(a).length<2)return!0;var r=e!==a.orgID,i=!n||t.origin!==n,o=-1===Object.keys(E).indexOf(a.prefix);return r||i||o},this.send=function(t,a,r){var i=a+"|"+e;r&&r===Object(r)&&(i+="|"+JSON.stringify(r));try{t.postMessage(i,n)}catch(e){}}},x=_.MESSAGES,V=function(e,n,t,a){function r(e){Object.assign(m,e)}function i(e){Object.assign(m.state,e),Object.assign(m.state.ALLFIELDS,e),m.callbackRegistry.executeAll(m.state)}function o(e){if(!h.isInvalid(e)){g=!1;var n=h.parse(e);m.setStateAndPublish(n.state)}}function s(e){!g&&f&&(g=!0,h.send(a,e))}function c(){r(new S(t._generateID)),m.getMarketingCloudVisitorID(),m.callbackRegistry.executeAll(m.state,!0),y.removeEventListener("message",l)}function l(e){if(!h.isInvalid(e)){var n=h.parse(e);g=!1,y.clearTimeout(m._handshakeTimeout),y.removeEventListener("message",l),r(new P(m)),y.addEventListener("message",o),m.setStateAndPublish(n.state),m.callbackRegistry.hasCallbacks()&&s(x.GETSTATE)}}function u(){f&&postMessage?(y.addEventListener("message",l),s(x.HANDSHAKE),m._handshakeTimeout=setTimeout(c,250)):c()}function d(){y.s_c_in||(y.s_c_il=[],y.s_c_in=0),m._c="Visitor",m._il=y.s_c_il,m._in=y.s_c_in,m._il[m._in]=m,y.s_c_in++}function p(){function e(e){0!==e.indexOf("_")&&"function"==typeof t[e]&&(m[e]=function(){})}Object.keys(t).forEach(e),m.getSupplementalDataID=t.getSupplementalDataID,m.isAllowed=function(){return!0}}var m=this,f=n.whitelistParentDomain;m.state={ALLFIELDS:{}},m.version=t.version,m.marketingCloudOrgID=e,m.cookieDomain=t.cookieDomain||"",m._instanceType="child";var g=!1,h=new M(e,f);m.callbackRegistry=A(),m.init=function(){d(),p(),r(new O(m)),u()},m.findField=function(e,n){if(void 0!==m.state[e])return n(m.state[e]),m.state[e]},m.messageParent=s,m.setStateAndPublish=i},j=_.MESSAGES,U=_.ALL_APIS,R=_.ASYNC_API_MAP,F=_.FIELDGROUP_TO_FIELD,B=function(e,n){function t(){var n={};return Object.keys(U).forEach((function(t){var a=U[t],r=e[a]();D.isValueEmpty(r)||(n[t]=r)})),n}function a(){var n=[];return e._loading&&Object.keys(e._loading).forEach((function(t){if(e._loading[t]){var a=F[t];n.push(a)}})),n.length?n:null}function r(n){return function t(){var r=a();if(r){var i=R[r[0]];e[i](t,!0)}else n()}}function i(e,a){var r=t();n.send(e,a,r)}function o(e){c(e),i(e,j.HANDSHAKE)}function s(e){r((function(){i(e,j.PARENTSTATE)}))()}function c(t){function a(a){r.call(e,a),n.send(t,j.PARENTSTATE,{CUSTOMERIDS:e.getCustomerIDs()})}var r=e.setCustomerIDs;e.setCustomerIDs=a}return function(e){n.isInvalid(e)||(n.parse(e).prefix===j.HANDSHAKE?o:s)(e.source)}},H=function(e,n){function t(e){return function(t){a[e]=t,++r===i&&n(a)}}var a={},r=0,i=Object.keys(e).length;Object.keys(e).forEach((function(n){var a=e[n];if(a.fn){var r=a.args||[];r.unshift(t(n)),a.fn.apply(a.context||null,r)}}))},G={get:function(e){e=encodeURIComponent(e);var n=(";"+document.cookie).split(" ").join(";"),t=n.indexOf(";"+e+"="),a=t<0?t:n.indexOf(";",t+1);return t<0?"":decodeURIComponent(n.substring(t+2+e.length,a<0?n.length:a))},set:function(e,n,t){var r=a(t,"cookieLifetime"),i=a(t,"expires"),o=a(t,"domain"),s=a(t,"secure"),c=a(t,"sameSite"),l=s?"Secure":"",u=c?"SameSite="+c+";":"";if(i&&"SESSION"!==r&&"NONE"!==r){var d=""!==n?parseInt(r||0,10):-60;if(d)(i=new Date).setTime(i.getTime()+1e3*d);else if(1===i){var p=(i=new Date).getYear();i.setYear(p+2+(p<1900?1900:0))}}else i=0;return e&&"NONE"!==r?(document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(n)+"; path=/;"+(i?" expires="+i.toGMTString()+";":"")+(o?" domain="+o+";":"")+u+l,this.get(e)===n):0},remove:function(e,n){var t=a(n,"domain");t=t?" domain="+t+";":"";var r=a(n,"secure"),i=a(n,"sameSite"),o=r?"Secure":"",s=i?"SameSite="+i+";":"";document.cookie=encodeURIComponent(e)+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"+t+s+o}},W=function(e,n){!e&&y.location&&(e=y.location.hostname);var t,a=e.split("."),r=n||{};for(t=a.length-2;t>=0;t--)if(r.domain=a.slice(t).join("."),G.set("TEST_AMCV_COOKIE_WRITE","cookie",r))return G.remove("TEST_AMCV_COOKIE_WRITE",r),r.domain;return""},z={compare:s,isLessThan:function(e,n){return s(e,n)<0},areVersionsDifferent:function(e,n){return 0!==s(e,n)},isGreaterThan:function(e,n){return s(e,n)>0},isEqual:function(e,n){return 0===s(e,n)}},q=!!y.postMessage,Y={postMessage:function(e,n,t){var a=1;n&&(q?t.postMessage(e,n.replace(/([^:]+:\/\/[^\/]+).*/,"$1")):n&&(t.location=n.replace(/#.*$/,"")+"#"+ +new Date+a+++"&"+e))},receiveMessage:function(e,n){var t;try{q&&(e&&(t=function(t){if("string"==typeof n&&t.origin!==n||"[object Function]"===Object.prototype.toString.call(n)&&!1===n(t.origin))return!1;e(t)}),y.addEventListener?y[e?"addEventListener":"removeEventListener"]("message",t):y[e?"attachEvent":"detachEvent"]("onmessage",t))}catch(e){}}},K=function(e){var n,t,a="0123456789",r="",i="",o=8,s=10,c=10,l=(""+Date.now()).substr(-6).split("").reverse("").join("");if(1==e){for(a+="ABCDEF",n=0;16>n;n++)t=Math.floor(Math.random()*o),4>n&&l[n]n;n++)t=Math.floor(Math.random()*s),6>n&&l[n]t||2t||20&&(n=!1)),{corsType:e,corsCookiesEnabled:n}}(),getCORSInstance:function(){return"none"===this.corsMetadata.corsType?null:new y[this.corsMetadata.corsType]},fireCORS:function(n,t){function a(e){var t;try{if((t=JSON.parse(e))!==Object(t))return void r.handleCORSError(n,null,"Response is not JSON")}catch(e){return void r.handleCORSError(n,e,"Error parsing response as JSON")}try{for(var a=n.callback,i=y,o=0;o=i&&(e.splice(r,1),r--);return{dataPresent:o,dataValid:s}},manageSyncsSize:function(e){if(e.join("*").length>this.MAX_SYNCS_LENGTH)for(e.sort((function(e,n){return parseInt(e.split("-")[1],10)-parseInt(n.split("-")[1],10)}));e.join("*").length>this.MAX_SYNCS_LENGTH;)e.shift()},fireSync:function(n,t,a,r,i,o){var s=this;if(n){if("img"===t.tag){var c,l,u,d,p=t.url,m=e.loadSSL?"https:":"http:";for(c=0,l=p.length;c$.DAYS_BETWEEN_SYNC_ID_CALLS},attachIframeASAP:function(){function e(){n.startedAttachingIframe||(t.body?n.attachIframe():setTimeout(e,30))}var n=this;e()}}},Z={audienceManagerServer:{},audienceManagerServerSecure:{},cookieDomain:{},cookieLifetime:{},cookieName:{},doesOptInApply:{type:"boolean"},disableThirdPartyCalls:{type:"boolean"},discardTrackingServerECID:{type:"boolean"},idSyncAfterIDCallResult:{},idSyncAttachIframeOnWindowLoad:{type:"boolean"},idSyncContainerID:{},idSyncDisable3rdPartySyncing:{type:"boolean"},disableThirdPartyCookies:{type:"boolean"},idSyncDisableSyncs:{type:"boolean"},disableIdSyncs:{type:"boolean"},idSyncIDCallResult:{},idSyncSSLUseAkamai:{type:"boolean"},isCoopSafe:{type:"boolean"},isIabContext:{type:"boolean"},isOptInStorageEnabled:{type:"boolean"},loadSSL:{type:"boolean"},loadTimeout:{},marketingCloudServer:{},marketingCloudServerSecure:{},optInCookieDomain:{},optInStorageExpiry:{},overwriteCrossDomainMCIDAndAID:{type:"boolean"},preOptInApprovals:{},previousPermissions:{},resetBeforeVersion:{},sdidParamExpiry:{},serverState:{},sessionCookieName:{},secureCookie:{type:"boolean"},sameSiteCookie:{},takeTimeoutMetrics:{},trackingServer:{},trackingServerSecure:{},useLocalStorage:{type:"boolean"},whitelistIframeDomains:{},whitelistParentDomain:{}},X={getConfigNames:function(){return Object.keys(Z)},getConfigs:function(){return Z},normalizeConfig:function(e,n){return Z[e]&&"boolean"===Z[e].type?"function"!=typeof n?n:n():n}},ee=function(e){var n={};return e.on=function(e,t,a){if(!t||"function"!=typeof t)throw new Error("[ON] Callback should be a function.");n.hasOwnProperty(e)||(n[e]=[]);var r=n[e].push({callback:t,context:a})-1;return function(){n[e].splice(r,1),n[e].length||delete n[e]}},e.off=function(e,t){n.hasOwnProperty(e)&&(n[e]=n[e].filter((function(e){if(e.callback!==t)return e})))}, e.publish=function(e){if(n.hasOwnProperty(e)){var t=[].slice.call(arguments,1);n[e].slice(0).forEach((function(e){e.callback.apply(e.context,t)}))}},e.publish},ne={PENDING:"pending",CHANGED:"changed",COMPLETE:"complete"},te={AAM:"aam",ADCLOUD:"adcloud",ANALYTICS:"aa",CAMPAIGN:"campaign",ECID:"ecid",LIVEFYRE:"livefyre",TARGET:"target",MEDIA_ANALYTICS:"mediaaa"},ae=(n(b={},te.AAM,565),n(b,te.ECID,565),b),re=(n(w={},te.AAM,[1,10]),n(w,te.ECID,[1,10]),w),ie=["videoaa","iabConsentHash"],oe=function(e){return Object.keys(e).map((function(n){return e[n]}))}(te),se=function(){var e={};return e.callbacks=Object.create(null),e.add=function(n,t){if(!l(t))throw new Error("[callbackRegistryFactory] Make sure callback is a function or an array of functions.");e.callbacks[n]=e.callbacks[n]||[];var a=e.callbacks[n].push(t)-1;return function(){e.callbacks[n].splice(a,1)}},e.execute=function(n,t){if(e.callbacks[n]){t=(t=void 0===t?[]:t)instanceof Array?t:[t];try{for(;e.callbacks[n].length;){var a=e.callbacks[n].shift();"function"==typeof a?a.apply(null,t):a instanceof Array&&a[1].apply(a[0],t)}delete e.callbacks[n]}catch(e){}}},e.executeAll=function(n,t){(t||n&&!c(n))&&Object.keys(e.callbacks).forEach((function(t){var a=void 0!==n[t]?n[t]:"";e.execute(t,a)}),e)},e.hasCallbacks=function(){return Boolean(Object.keys(e.callbacks).length)},e},ce=function(){},le=function(e){var n=window.console;return!!n&&"function"==typeof n[e]},ue=function(e,n,t){return t()?function(){if(le(e)){for(var t=arguments.length,a=new Array(t),r=0;r>>1:t>>>1;e.push(t)}return function(n,t){n=unescape(encodeURIComponent(n)),t||(t=0),t^=-1;for(var a=0;a>>8^e[r]}return(t^=-1)>>>0}}(),me=new de("[ADOBE OPT-IN]"),fe=function(n,t){return e(n)===t},ge=function(e,n){return e instanceof Array?e:fe(e,"string")?[e]:n||[]},he=function(e){var n=Object.keys(e);return!!n.length&&n.every((function(n){return!0===e[n]}))},ve=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(!e||we(e))&&ge(e).every((function(e){return oe.indexOf(e)>-1||n&&ie.indexOf(e)>-1}))},ye=function(e,n){return e.reduce((function(e,t){return e[t]=n,e}),{})},be=function(e){return JSON.parse(JSON.stringify(e))},we=function(e){return"[object Array]"===Object.prototype.toString.call(e)&&!e.length},_e=function(e){if(Ne(e))return e;try{return JSON.parse(e)}catch(e){return{}}},Ce=function(e){return void 0===e||(Ne(e)?ve(Object.keys(e),!0):Se(e))},Se=function(e){try{var n=JSON.parse(e);return!!e&&fe(e,"string")&&ve(Object.keys(n),!0)}catch(e){return!1}},Ne=function(e){return null!==e&&fe(e,"object")&&!1===Array.isArray(e)},Ie=function(){},Te=function(e){return fe(e,"function")?e():e},Pe=function(e,n){Ce(e)||me.error("".concat(n))},ke=function(e){return Object.keys(e).map((function(n){return e[n]}))},Oe=function(e){return ke(e).filter((function(e,n,t){return t.indexOf(e)===n}))},De=function(e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.command,a=n.params,r=void 0===a?{}:a,i=n.callback,o=void 0===i?Ie:i;if(!t||-1===t.indexOf("."))throw new Error("[OptIn.execute] Please provide a valid command.");try{var s=t.split("."),c=e[s[0]],l=s[1];if(!c||"function"!=typeof c[l])throw new Error("Make sure the plugin and API name exist.");var u=Object.assign(r,{callback:o});c[l].call(c,u)}catch(e){me.error("[execute] Something went wrong: "+e.message)}}};p.prototype=Object.create(Error.prototype),p.prototype.constructor=p;var Ae="fetchPermissions",Ee="[OptIn#registerPlugin] Plugin is invalid.";m.Categories=te,m.TimeoutError=p;var Le=Object.freeze({OptIn:m,IabPlugin:v}),Me=function(e,n){e.publishDestinations=function(t){var a=arguments[1],r=arguments[2];try{r="function"==typeof r?r:t.callback}catch(e){r=function(){}}var i=n;if(i.readyToAttachIframePreliminary()){if("string"==typeof t){if(!t.length)return void r({error:"subdomain is not a populated string."});if(!(a instanceof Array&&a.length))return void r({error:"messages is not a populated array."});var o=!1;if(a.forEach((function(e){"string"==typeof e&&e.length&&(i.addMessage(e),o=!0)})),!o)return void r({error:"None of the messages are populated strings."})}else{if(!D.isObject(t))return void r({error:"Invalid parameters passed."});var s=t;if("string"!=typeof(t=s.subdomain)||!t.length)return void r({error:"config.subdomain is not a populated string."});var c=s.urlDestinations;if(!(c instanceof Array&&c.length))return void r({error:"config.urlDestinations is not a populated array."});var l=[];c.forEach((function(e){D.isObject(e)&&(e.hideReferrer?e.message&&i.addMessage(e.message):l.push(e))})),function e(){l.length&&setTimeout((function(){var n=new Image,t=l.shift();n.src=t.url,i.onPageDestinationsFired.push(t),e()}),100)}()}i.iframe?(r({message:"The destination publishing iframe is already attached and loaded."}),i.requestToProcess()):!e.subdomain&&e._getField("MCMID")?(i.subdomain=t,i.doAttachIframe=!0,i.url=i.getUrl(),i.readyToAttachIframe()?(i.iframeLoadedCallbacks.push((function(e){r({message:"Attempted to attach and load the destination publishing iframe through this API call. Result: "+(e.message||"no result")})})),i.attachIframe()):r({error:"Encountered a problem in attempting to attach and load the destination publishing iframe through this API call."})):i.iframeLoadedCallbacks.push((function(e){r({message:"Attempted to attach and load the destination publishing iframe through normal Visitor API processing. Result: "+(e.message||"no result")})}))}else r({error:"The destination publishing iframe is disabled in the Visitor library."})}},xe=function e(n){function t(e,n){return e>>>n|e<<32-n}for(var a,r,i=Math.pow,o=i(2,32),s="",c=[],l=8*n.length,u=e.h=e.h||[],d=e.k=e.k||[],p=d.length,m={},f=2;p<64;f++)if(!m[f]){for(a=0;a<313;a+=f)m[a]=f;u[p]=i(f,.5)*o|0,d[p++]=i(f,1/3)*o|0}for(n+="\x80";n.length%64-56;)n+="\0";for(a=0;a>8)return;c[a>>2]|=r<<(3-a)%4*8}for(c[c.length]=l/o|0,c[c.length]=l,r=0;r>>3)+g[a-7]+(t(y,17)^t(y,19)^y>>>10)|0);(u=[_+((t(b,2)^t(b,13)^t(b,22))+(b&u[1]^b&u[2]^u[1]&u[2]))|0].concat(u))[4]=u[4]+_|0}for(a=0;a<8;a++)u[a]=u[a]+h[a]|0}for(a=0;a<8;a++)for(r=3;r+1;r--){var C=u[a]>>8*r&255;s+=(C<16?0:"")+C.toString(16)}return s},Ve=function(e,n){return"SHA-256"!==n&&"SHA256"!==n&&"sha256"!==n&&"sha-256"!==n||(e=xe(e)),e},je=function(e){return String(e).trim().toLowerCase()},Ue=Le.OptIn;D.defineGlobalNamespace(),window.adobe.OptInCategories=Ue.Categories;var Re=function(n,t,a){function r(){b._customerIDsHashChanged=!1}function i(e){var n=e;return function(e){var t=e||T.location.href;try{var a=b._extractParamFromUri(t,n);if(a)return ne.parsePipeDelimetedKeyValues(a)}catch(e){}}}function o(e){function n(e,n,t){e&&e.match($.VALID_VISITOR_ID_REGEX)&&(t===E&&(I=!0),n(e))}n(e[E],b.setMarketingCloudVisitorID,E),b._setFieldExpire(U,-1),n(e[V],b.setAnalyticsVisitorID)}function s(e){e=e||{},b._supplementalDataIDCurrent=e.supplementalDataIDCurrent||"",b._supplementalDataIDCurrentConsumed=e.supplementalDataIDCurrentConsumed||{},b._supplementalDataIDLast=e.supplementalDataIDLast||"",b._supplementalDataIDLastConsumed=e.supplementalDataIDLastConsumed||{}}function c(e){function n(e,n,t){return(t=t?t+="|":t)+(e+"=")+encodeURIComponent(n)}function t(e,t){var a=t[0],r=t[1];return null!=r&&r!==R&&(e=n(a,r,e)),e}return function(e){return(e=e?e+="|":e)+"TS="+ne.getTimestampInSeconds()}(e.reduce(t,""))}function l(e){var n=e.minutesToLive,t="";return(b.idSyncDisableSyncs||b.disableIdSyncs)&&(t=t||"Error: id syncs have been disabled"),"string"==typeof e.dpid&&e.dpid.length||(t=t||"Error: config.dpid is empty"),"string"==typeof e.url&&e.url.length||(t=t||"Error: config.url is empty"),void 0===n?n=20160:(n=parseInt(n,10),(isNaN(n)||n<=0)&&(t=t||"Error: config.minutesToLive needs to be a positive number")),{error:t,ttl:n}}function u(){return!(!b.configs.doesOptInApply||w.optIn.isComplete&&d())}function d(){return b.configs.doesOptInApply&&b.configs.isIabContext?w.optIn.isApproved(w.optIn.Categories.ECID)&&N:w.optIn.isApproved(w.optIn.Categories.ECID)}function p(){[["getMarketingCloudVisitorID"],["setCustomerIDs",void 0],["syncIdentity",void 0],["getAnalyticsVisitorID"],["getAudienceManagerLocationHint"],["getLocationHint"],["getAudienceManagerBlob"]].forEach((function(e){var n=e[0],t=2===e.length?e[1]:"",a=b[n];b[n]=function(e){return d()&&b.isAllowed()?a.apply(b,arguments):("function"==typeof e&&b._callCallback(e,[t]),t)}}))}function m(){var e=b._getAudienceManagerURLData(),n=e.url;return b._loadData(A,n,null,e)}function f(e,n){if(N=!0,e)throw new Error("[IAB plugin] : "+e);n&&n.gdprApplies&&(C=n.consentString,S=n.hasConsentChangedSinceLastCmpPull?1:0),m(),v()}function g(e,n){if(N=!0,e)throw new Error("[IAB plugin] : "+e);n.gdprApplies&&(C=n.consentString,S=n.hasConsentChangedSinceLastCmpPull?1:0),b.init(),v()}function h(){w.optIn.isComplete&&(w.optIn.isApproved(w.optIn.Categories.ECID)?b.configs.isIabContext?w.optIn.execute({command:"iabPlugin.fetchConsentData",callback:g}):(b.init(),v()):b.configs.isIabContext?w.optIn.execute({command:"iabPlugin.fetchConsentData",callback:f}):(p(),v()))}function v(){w.optIn.off("complete",h)}if(!a||a.split("").reverse().join("")!==n)throw new Error("Please use `Visitor.getInstance` to instantiate Visitor.");var b=this,w=window.adobe,C="",S=0,N=!1,I=!1;b.version="5.5.0";var T=y,P=T.Visitor;P.version=b.version,P.AuthState=_.AUTH_STATE,P.OptOut=_.OPT_OUT,T.s_c_in||(T.s_c_il=[],T.s_c_in=0),b._c="Visitor",b._il=T.s_c_il,b._in=T.s_c_in,b._il[b._in]=b,T.s_c_in++,b._instanceType="regular",b._log={requests:[]},b.marketingCloudOrgID=n,b.cookieName="AMCV_"+n,b.sessionCookieName="AMCVS_"+n;var k={};t&&t.secureCookie&&t.sameSiteCookie&&(k={sameSite:t.sameSiteCookie,secure:t.secureCookie}),b.cookieDomain=b.useLocalStorage?"":W(null,k),b.loadSSL=!0,b.loadTimeout=3e4,b.CORSErrors=[],b.marketingCloudServer=b.audienceManagerServer="dpm.demdex.net",b.sdidParamExpiry=30;var O=null,A="MC",E="MCMID",L="MCIDTS",x="A",V="MCAID",j="AAM",U="MCAAMB",R="NONE",F=function(e){return!Object.prototype[e]},q=J(b);b.FIELDS=_.FIELDS,b.cookieRead=function(e){return b.useLocalStorage?e===b.sessionCookieName?sessionStorage.getItem(e):localStorage.getItem(e):G.get(e)},b.cookieWrite=function(e,n,t){var a=""+n;if(b.useLocalStorage)return e===b.sessionCookieName?sessionStorage.setItem(e,a):localStorage.setItem(e,a);var r=b.cookieLifetime?(""+b.cookieLifetime).toUpperCase():"",i={expires:t,domain:b.cookieDomain,cookieLifetime:r};return b.configs&&b.configs.secureCookie&&"https:"===location.protocol&&(i.secure=!0),b.configs&&b.configs.sameSiteCookie&&"https:"===location.protocol&&(i.sameSite=_.SAME_SITE_VALUES[b.configs.sameSiteCookie.toUpperCase()]||"Lax"),G.set(e,a,i)},b.removeCookie=function(e){if(b.useLocalStorage)return e===b.sessionCookieName?sessionStorage.removeItem(e):localStorage.removeItem(e);var n={domain:b.cookieDomain};return b.configs&&b.configs.secureCookie&&"https:"===location.protocol&&(n.secure=!0),b.configs&&b.configs.sameSiteCookie&&"https:"===location.protocol&&(n.sameSite=_.SAME_SITE_VALUES[b.configs.sameSiteCookie.toUpperCase()]||"Lax"),G.remove(e,n)},b.resetState=function(e){e?b._mergeServerState(e):s()},b._isAllowedDone=!1,b._isAllowedFlag=!1,b.isAllowed=function(){return b._isAllowedDone||(b._isAllowedDone=!0,(b.cookieRead(b.cookieName)||b.cookieWrite(b.cookieName,"T",1))&&(b._isAllowedFlag=!0)),"T"===b.cookieRead(b.cookieName)&&b.removeCookie(b.cookieName),b._isAllowedFlag},b.setMarketingCloudVisitorID=function(e){b._setMarketingCloudFields(e)},b._use1stPartyMarketingCloudServer=!1,b.getMarketingCloudVisitorID=function(e,n){b.marketingCloudServer&&b.marketingCloudServer.indexOf(".demdex.net")<0&&(b._use1stPartyMarketingCloudServer=!0);var t=b._getAudienceManagerURLData("_setMarketingCloudFields"),a=t.url;return b._getRemoteField(E,a,e,n,t)};var Z=function(e,n){var t={};b.getMarketingCloudVisitorID((function(){n.forEach((function(e){t[e]=b._getField(e,!0)})),-1!==n.indexOf("MCOPTOUT")?b.isOptedOut((function(n){t.MCOPTOUT=n,e(t)}),null,!0):e(t)}),!0)};b.getVisitorValues=function(e,n){var t={MCMID:{fn:b.getMarketingCloudVisitorID,args:[!0],context:b},MCOPTOUT:{fn:b.isOptedOut,args:[void 0,!0],context:b},MCAID:{fn:b.getAnalyticsVisitorID,args:[!0],context:b},MCAAMLH:{fn:b.getAudienceManagerLocationHint,args:[!0],context:b},MCAAMB:{fn:b.getAudienceManagerBlob,args:[!0],context:b}},a=n&&n.length?D.pluck(t,n):t;n&&-1===n.indexOf("MCAID")?Z(e,n):H(a,e)},b._currentCustomerIDs={},b._customerIDsHashChanged=!1,b._newCustomerIDsHash="",b.setCustomerIDs=function(n,t){if(!b.isOptedOut()&&n){if(!D.isObject(n)||D.isObjectEmpty(n))return!1;var a,i,o,s;for(a in b._readVisitor(),n)if(F(a)&&(b._currentCustomerIDs.dataSources=b._currentCustomerIDs.dataSources||{},t=(i=n[a]).hasOwnProperty("hashType")?i.hashType:t,i))if("object"===e(i)){var c={};if(i.id){if(t){if(!(s=Ve(je(i.id),t)))return;i.id=s,c.hashType=t}c.id=i.id}null!=i.authState&&(c.authState=i.authState),b._currentCustomerIDs.dataSources[a]=c}else if(t){if(!(s=Ve(je(i),t)))return;b._currentCustomerIDs.dataSources[a]={id:s,hashType:t}}else b._currentCustomerIDs.dataSources[a]={id:i};var l=b.getCustomerIDs(!0),u=b._getField("MCCIDH"),d="";for(o in u||(u=0),l){var p=l[o];if(!D.isObjectEmpty(p))for(a in p)F(a)&&(d+=(d?"|":"")+a+"|"+((i=p[a]).id?i.id:"")+(i.authState?i.authState:""))}b._newCustomerIDsHash=String(b._hash(d)),b._newCustomerIDsHash!==u&&(b._customerIDsHashChanged=!0,b._mapCustomerIDs(r))}},b.syncIdentity=function(n,t){if(!b.isOptedOut()&&n){if(!D.isObject(n)||D.isObjectEmpty(n))return!1;var a,i,o,s,c;for(a in b._readVisitor(),n)if(F(a)&&(b._currentCustomerIDs.nameSpaces=b._currentCustomerIDs.nameSpaces||{},t=(i=n[a]).hasOwnProperty("hashType")?i.hashType:t,i&&"object"===e(i))){var l={};if(i.id){if(t){if(!(o=Ve(je(i.id),t)))return;i.id=o,l.hashType=t}l.id=i.id}null!=i.authState&&(l.authState=i.authState),i.dataSource&&(b._currentCustomerIDs.dataSources=b._currentCustomerIDs.dataSources||{},s=i.dataSource,b._currentCustomerIDs.dataSources[s]=l),b._currentCustomerIDs.nameSpaces[a]=l}var u=b.getCustomerIDs(!0),d=b._getField("MCCIDH"),p="";for(c in d||(d="0"),u){var m=u[c];if(!D.isObjectEmpty(m))for(a in m)F(a)&&(p+=(p?"|":"")+a+"|"+((i=m[a]).id?i.id:"")+(i.authState?i.authState:""))}b._newCustomerIDsHash=String(b._hash(p)),b._newCustomerIDsHash!==d&&(b._customerIDsHashChanged=!0,b._mapCustomerIDs(r))}},b.getCustomerIDs=function(e){b._readVisitor();var n,t,a={dataSources:{},nameSpaces:{}},r=b._currentCustomerIDs.dataSources;for(n in r)F(n)&&(t=r[n]).id&&(a.dataSources[n]||(a.dataSources[n]={}),a.dataSources[n].id=t.id,null!=t.authState?a.dataSources[n].authState=t.authState:a.dataSources[n].authState=P.AuthState.UNKNOWN,t.hashType&&(a.dataSources[n].hashType=t.hashType));var i=b._currentCustomerIDs.nameSpaces;for(n in i)F(n)&&(t=i[n]).id&&(a.nameSpaces[n]||(a.nameSpaces[n]={}),a.nameSpaces[n].id=t.id,null!=t.authState?a.nameSpaces[n].authState=t.authState:a.nameSpaces[n].authState=P.AuthState.UNKNOWN,t.hashType&&(a.nameSpaces[n].hashType=t.hashType));return e?a:a.dataSources},b.setAnalyticsVisitorID=function(e){b._setAnalyticsFields(e)},b.getAnalyticsVisitorID=function(e,n,t){if(!ne.isTrackingServerPopulated()&&!t)return b._callCallback(e,[""]),"";var a="";if(t||(a=b.getMarketingCloudVisitorID((function(){b.getAnalyticsVisitorID(e,!0)}))),a||t){var r=t?b.marketingCloudServer:b.trackingServer,i="";b.loadSSL&&(t?b.marketingCloudServerSecure&&(r=b.marketingCloudServerSecure):b.trackingServerSecure&&(r=b.trackingServerSecure));var o={};if(r){var s="http"+(b.loadSSL?"s":"")+"://"+r+"/id",c=b.configs.cookieLifetime,l="d_visid_ver="+b.version+"&mcorgid="+encodeURIComponent(b.marketingCloudOrgID)+(a?"&mid="+encodeURIComponent(a):"")+(c?"&cl="+encodeURIComponent(c):"")+(b.idSyncDisable3rdPartySyncing||b.disableThirdPartyCookies?"&d_coppa=true":""),u=["s_c_il",b._in,"_set"+(t?"MarketingCloud":"Analytics")+"Fields"];i=s+"?"+l+"&callback=s_c_il%5B"+b._in+"%5D._set"+(t?"MarketingCloud":"Analytics")+"Fields",o.corsUrl=s+"?"+l,o.callback=u}return o.url=i,b._getRemoteField(t?E:V,i,e,n,o)}return""},b.getAudienceManagerLocationHint=function(e,n){if(b.getMarketingCloudVisitorID((function(){b.getAudienceManagerLocationHint(e,!0)}))){var t=b._getField(V);if(!t&&ne.isTrackingServerPopulated()&&(t=b.getAnalyticsVisitorID((function(){b.getAudienceManagerLocationHint(e,!0)}))),t||!ne.isTrackingServerPopulated()){var a=b._getAudienceManagerURLData(),r=a.url;return b._getRemoteField("MCAAMLH",r,e,n,a)}}return""},b.getLocationHint=b.getAudienceManagerLocationHint,b.getAudienceManagerBlob=function(e,n){if(b.getMarketingCloudVisitorID((function(){b.getAudienceManagerBlob(e,!0)}))){var t=b._getField(V);if(!t&&ne.isTrackingServerPopulated()&&(t=b.getAnalyticsVisitorID((function(){b.getAudienceManagerBlob(e,!0)}))),t||!ne.isTrackingServerPopulated()){var a=b._getAudienceManagerURLData(),r=a.url;return b._customerIDsHashChanged&&b._setFieldExpire(U,-1),b._getRemoteField(U,r,e,n,a)}}return""},b._supplementalDataIDCurrent="",b._supplementalDataIDCurrentConsumed={},b._supplementalDataIDLast="",b._supplementalDataIDLastConsumed={},b.getSupplementalDataID=function(e,n){b._supplementalDataIDCurrent||n||(b._supplementalDataIDCurrent=b._generateID(1));var t=b._supplementalDataIDCurrent;return b._supplementalDataIDLast&&!b._supplementalDataIDLastConsumed[e]?(t=b._supplementalDataIDLast,b._supplementalDataIDLastConsumed[e]=!0):t&&(b._supplementalDataIDCurrentConsumed[e]&&(b._supplementalDataIDLast=b._supplementalDataIDCurrent,b._supplementalDataIDLastConsumed=b._supplementalDataIDCurrentConsumed,b._supplementalDataIDCurrent=t=n?"":b._generateID(1),b._supplementalDataIDCurrentConsumed={}),t&&(b._supplementalDataIDCurrentConsumed[e]=!0)),t};var X=!1;b._liberatedOptOut=null,b.getOptOut=function(e,n){var t=b._getAudienceManagerURLData("_setMarketingCloudFields"),a=t.url;if(d())return b._getRemoteField("MCOPTOUT",a,e,n,t);if(b._registerCallback("liberatedOptOut",e),null!==b._liberatedOptOut)return b._callAllCallbacks("liberatedOptOut",[b._liberatedOptOut]),X=!1,b._liberatedOptOut;if(X)return null;X=!0;var r="liberatedGetOptOut";return t.corsUrl=t.corsUrl.replace(/\.demdex\.net\/id\?/,".demdex.net/optOutStatus?"),t.callback=[r],y[r]=function(e){if(e===Object(e)){var n,t,a=D.parseOptOut(e,n,R);n=a.optOut,t=1e3*a.d_ottl,b._liberatedOptOut=n,setTimeout((function(){b._liberatedOptOut=null}),t)}b._callAllCallbacks("liberatedOptOut",[n]),X=!1},q.fireCORS(t),null},b.isOptedOut=function(e,n,t){n||(n=P.OptOut.GLOBAL);var a=b.getOptOut((function(t){var a=t===P.OptOut.GLOBAL||t.indexOf(n)>=0;b._callCallback(e,[a])}),t);return a?a===P.OptOut.GLOBAL||a.indexOf(n)>=0:null};var ee={subscribed:!1,callbacks:[]};b.onReceiveEcid=function(e){if(d())return b.getMarketingCloudVisitorID(e,!0);ee.subscribed=!0,e&&"function"==typeof e&&ee.callbacks.push(e)},b._fields=null,b._fieldsExpired=null,b._hash=function(e){var n,t=0;if(e)for(n=0;n0;)b._callCallback(t.shift(),n)}},b._addQuerystringParam=function(e,n,t,a){var r=encodeURIComponent(n)+"="+encodeURIComponent(t),i=ne.parseHash(e),o=ne.hashlessUrl(e);if(-1===o.indexOf("?"))return o+"?"+r+i;var s=o.split("?"),c=s[0]+"?",l=s[1];return c+ne.addQueryParamAtLocation(l,r,a)+i},b._extractParamFromUri=function(e,n){var t=new RegExp("[\\?&#]"+n+"=([^&#]*)").exec(e);if(t&&t.length)return decodeURIComponent(t[1])},b._parseAdobeMcFromUrl=i($.ADOBE_MC),b._parseAdobeMcSdidFromUrl=i($.ADOBE_MC_SDID),b._attemptToPopulateSdidFromUrl=function(e){var t=b._parseAdobeMcSdidFromUrl(e),a=1e9;t&&t.TS&&(a=ne.getTimestampInSeconds()-t.TS),t&&t.SDID&&t.MCORGID===n&&a$.ADOBE_MC_TTL_IN_MIN||e.MCORGID!==n)return;o(e)}},b._mergeServerState=function(e){if(e)try{if((e=function(e){return ne.isObject(e)?e:JSON.parse(e)}(e))[b.marketingCloudOrgID]){var n=e[b.marketingCloudOrgID];!function(e){ne.isObject(e)&&b.setCustomerIDs(e)}(n.customerIDs),s(n.sdid)}}catch(e){throw new Error("`serverState` has an invalid format.")}},b._timeout=null,b._loadData=function(e,n,t,a){n=b._addQuerystringParam(n,"d_fieldgroup",e,1),a.url=b._addQuerystringParam(a.url,"d_fieldgroup",e,1),a.corsUrl=b._addQuerystringParam(a.corsUrl,"d_fieldgroup",e,1),re.fieldGroupObj[e]=!0,a===Object(a)&&a.corsUrl&&"XMLHttpRequest"===q.corsMetadata.corsType&&q.fireCORS(a,t,e)},b._clearTimeout=function(e){null!=b._timeout&&b._timeout[e]&&(clearTimeout(b._timeout[e]),b._timeout[e]=0)},b._settingsDigest=0,b._getSettingsDigest=function(){if(!b._settingsDigest){var e=b.version;b.audienceManagerServer&&(e+="|"+b.audienceManagerServer),b.audienceManagerServerSecure&&(e+="|"+b.audienceManagerServerSecure),b._settingsDigest=b._hash(e)}return b._settingsDigest},b._readVisitorDone=!1,b._readVisitor=function(){if(!b._readVisitorDone){b._readVisitorDone=!0;var e,n,t,a,r,i,o=b._getSettingsDigest(),s=!1,c=b.cookieRead(b.cookieName),l=new Date;if(c||I||b.discardTrackingServerECID||(c=b.cookieRead($.FIRST_PARTY_SERVER_COOKIE)),null==b._fields&&(b._fields={}),c&&"T"!==c)for((c=c.split("|"))[0].match(/^[\-0-9]+$/)&&(parseInt(c[0],10)!==o&&(s=!0),c.shift()),c.length%2==1&&c.pop(),e=0;e1?(r=parseInt(n[1],10),i=n[1].indexOf("s")>0):(r=0,i=!1),s&&("MCCIDH"===t&&(a=""),r>0&&(r=l.getTime()/1e3-60)),t&&a&&(b._setField(t,a,1),r>0&&(b._fields["expire"+t]=r+(i?"s":""),(l.getTime()>=1e3*r||i&&!b.cookieRead(b.sessionCookieName))&&(b._fieldsExpired||(b._fieldsExpired={}),b._fieldsExpired[t]=!0)));!b._getField(V)&&ne.isTrackingServerPopulated()&&(c=b.cookieRead("s_vi"))&&(c=c.split("|")).length>1&&c[0].indexOf("v1")>=0&&((e=(a=c[1]).indexOf("["))>=0&&(a=a.substring(0,e)),a&&a.match($.VALID_VISITOR_ID_REGEX)&&b._setField(V,a))}},b._appendVersionTo=function(e){var n="vVersion|"+b.version,t=e?b._getCookieVersion(e):null;return t?z.areVersionsDifferent(t,b.version)&&(e=e.replace($.VERSION_REGEX,n)):e+=(e?"|":"")+n,e},b._writeVisitor=function(){var e,n,t=b._getSettingsDigest();for(e in b._fields)F(e)&&b._fields[e]&&"expire"!==e.substring(0,6)&&(n=b._fields[e],t+=(t?"|":"")+e+(b._fields["expire"+e]?"-"+b._fields["expire"+e]:"")+"|"+n);t=b._appendVersionTo(t),b.cookieWrite(b.cookieName,t,1)},b._getField=function(e,n){return null==b._fields||!n&&b._fieldsExpired&&b._fieldsExpired[e]?null:b._fields[e]},b._setField=function(e,n,t){null==b._fields&&(b._fields={}),b._fields[e]=n,t||b._writeVisitor()},b._getFieldList=function(e,n){var t=b._getField(e,n);return t?t.split("*"):null},b._setFieldList=function(e,n,t){b._setField(e,n?n.join("*"):"",t)},b._getFieldMap=function(e,n){var t=b._getFieldList(e,n);if(t){var a,r={};for(a=0;a0?e.substr(n):""},hashlessUrl:function(e){var n=e.indexOf("#");return n>0?e.substr(0,n):e},addQueryParamAtLocation:function(e,n,t){var a=e.split("&");return t=null!=t?t:a.length,a.splice(t,0,n),a.join("&")},isFirstPartyAnalyticsVisitorIDCall:function(e,n,t){return e===V&&(n||(n=b.trackingServer),t||(t=b.trackingServerSecure),!("string"!=typeof(a=b.loadSSL?t:n)||!a.length)&&a.indexOf("2o7.net")<0&&a.indexOf("omtrdc.net")<0);var a},isObject:function(e){return Boolean(e&&e===Object(e))},removeCookie:function(e){G.remove(e,{domain:b.cookieDomain})},isTrackingServerPopulated:function(){return!!b.trackingServer||!!b.trackingServerSecure},getTimestampInSeconds:function(){return Math.round((new Date).getTime()/1e3)},parsePipeDelimetedKeyValues:function(e){return e.split("|").reduce((function(e,n){var t=n.split("=");return e[t[0]]=decodeURIComponent(t[1]),e}),{})},generateRandomString:function(e){e=e||5;for(var n="",t="abcdefghijklmnopqrstuvwxyz0123456789";e--;)n+=t[Math.floor(Math.random()*t.length)];return n},normalizeBoolean:function(e){return"true"===e||"false"!==e&&e},parseBoolean:function(e){return"true"===e||"false"!==e&&null},replaceMethodsWithFunction:function(e,n){for(var t in e)e.hasOwnProperty(t)&&"function"==typeof e[t]&&(e[t]=n);return e}};b._helpers=ne;var te=Q(b,P);b._destinationPublishing=te,b.timeoutMetricsLog=[];var ae,re={isClientSideMarketingCloudVisitorID:null,MCIDCallTimedOut:null,AnalyticsIDCallTimedOut:null,AAMIDCallTimedOut:null,fieldGroupObj:{},setState:function(e,n){switch(e){case A:!1===n?!0!==this.MCIDCallTimedOut&&(this.MCIDCallTimedOut=!1):this.MCIDCallTimedOut=n;break;case x:!1===n?!0!==this.AnalyticsIDCallTimedOut&&(this.AnalyticsIDCallTimedOut=!1):this.AnalyticsIDCallTimedOut=n;break;case j:!1===n?!0!==this.AAMIDCallTimedOut&&(this.AAMIDCallTimedOut=!1):this.AAMIDCallTimedOut=n}}};b.isClientSideMarketingCloudVisitorID=function(){return re.isClientSideMarketingCloudVisitorID},b.MCIDCallTimedOut=function(){return re.MCIDCallTimedOut},b.AnalyticsIDCallTimedOut=function(){return re.AnalyticsIDCallTimedOut},b.AAMIDCallTimedOut=function(){return re.AAMIDCallTimedOut},b.idSyncGetOnPageSyncInfo=function(){return b._readVisitor(),b._getField("MCSYNCSOP")},b.idSyncByURL=function(e){if(!b.isOptedOut()){var n=l(e||{});if(n.error)return n.error;var t,a,r=e.url,i=encodeURIComponent,o=te;return r=r.replace(/^https:/,"").replace(/^http:/,""),t=D.encodeAndBuildRequest(["",e.dpid,e.dpuuid||""],","),a=["ibs",i(e.dpid),"img",i(r),n.ttl,"",t],o.addMessage(a.join("|")),o.requestToProcess(),"Successfully queued"}},b.idSyncByDataSource=function(e){if(!b.isOptedOut())return e===Object(e)&&"string"==typeof e.dpuuid&&e.dpuuid.length?(e.url="//dpm.demdex.net/ibs:dpid="+e.dpid+"&dpuuid="+e.dpuuid,b.idSyncByURL(e)):"Error: config or config.dpuuid is empty"},Me(b,te),b._getCookieVersion=function(e){e=e||b.cookieRead(b.cookieName);var n=$.VERSION_REGEX.exec(e);return n&&n.length>1?n[1]:null},b._resetAmcvCookie=function(e){var n=b._getCookieVersion();n&&!z.isLessThan(n,e)||b.removeCookie(b.cookieName)},b.setAsCoopSafe=function(){O=!0},b.setAsCoopUnsafe=function(){O=!1},function(){if(b.configs=Object.create(null),ne.isObject(t))for(var e in t)F(e)&&(b[e]=t[e],b.configs[e]=t[e])}(),p(),b.init=function(){u()&&(w.optIn.fetchPermissions(h,!0),!w.optIn.isApproved(w.optIn.Categories.ECID))||ae||(ae=!0, function(){if(ne.isObject(t)){b.idSyncContainerID=b.idSyncContainerID||0,O="boolean"==typeof b.isCoopSafe?b.isCoopSafe:ne.parseBoolean(b.isCoopSafe),b.resetBeforeVersion&&b._resetAmcvCookie(b.resetBeforeVersion),b._attemptToPopulateIdsFromUrl(),b._attemptToPopulateSdidFromUrl(),b._readVisitor();var e=b._getField(L),n=Math.ceil((new Date).getTime()/$.MILLIS_PER_DAY);b.idSyncDisableSyncs||b.disableIdSyncs||!te.canMakeSyncIDCall(e,n)||(b._setFieldExpire(U,-1),b._setField(L,n)),b.getMarketingCloudVisitorID(),b.getAudienceManagerLocationHint(),b.getAudienceManagerBlob(),b._mergeServerState(b.serverState)}else b._attemptToPopulateIdsFromUrl(),b._attemptToPopulateSdidFromUrl()}(),function(){if(!b.idSyncDisableSyncs&&!b.disableIdSyncs){te.checkDPIframeSrc();var e=function(){var e=te;e.readyToAttachIframe()&&e.attachIframe()};T.addEventListener("load",(function(){P.windowLoaded=!0,e()}));try{Y.receiveMessage((function(e){te.receiveMessage(e.data)}),te.iframeHost)}catch(e){}}}(),b.whitelistIframeDomains&&$.POST_MESSAGE_ENABLED&&(b.whitelistIframeDomains=b.whitelistIframeDomains instanceof Array?b.whitelistIframeDomains:[b.whitelistIframeDomains],b.whitelistIframeDomains.forEach((function(e){var t=new M(n,e),a=B(b,t);Y.receiveMessage(a,e)}))))}};Re.config=X,y.Visitor=Re;var Fe=Re,Be=function(e){if(D.isObject(e))return Object.keys(e).filter((function(n){return""!==e[n]&&X.getConfigs()[n]})).reduce((function(n,t){var a=X.normalizeConfig(t,e[t]),r=D.normalizeBoolean(a);return n[t]=r,n}),Object.create(null))},He=Le.OptIn,Ge=Le.IabPlugin;Fe.getInstance=function(e,n){if(!e)throw new Error("Visitor requires Adobe Marketing Cloud Org ID.");e.indexOf("@")<0&&(e+="@AdobeOrg");var t=function(){var n=y.s_c_il;if(n)for(var t=0;t0&&(t.events=e.events+","+t.events);var r=n&&n.events&&n.events.length>0,i=u(e,t,r);i&&(t.linkTrackVars=i);var o=d(e,n.events||[]);o&&(t.linkTrackEvents=o),a.logger.info('Applying the following properties on tracker: "'+JSON.stringify(t)+'".'),Object.keys(t).forEach((function(n){e[n]=t[n]}))}}},"adobe-analytics/src/lib/helpers/settingsHelper.js":{script:function(e,n,t,a){"use strict";var r=t("@adobe/reactor-window"),i={LIB_TYPES:{MANAGED:"managed",PREINSTALLED:"preinstalled",REMOTE:"remote",CUSTOM:"custom"},MANAGED_LIB_PATHS:{APP_MEASUREMENT:"AppMeasurement.js",ACTIVITY_MAP:"AppMeasurement_Module_ActivityMap.js",AUDIENCE_MANAGEMENT:"AppMeasurement_Module_AudienceManagement.js"},getReportSuites:function(e){var n=e.production;return e[a.environment.stage]&&(n=e[a.environment.stage]),n.join(",")},isActivityMapEnabled:function(e){return!(e.libraryCode&&!e.libraryCode.useActivityMap&&!1===e.libraryCode.useActivityMap)},isAudienceManagementEnabled:function(e){var n=!1;return e&&e.moduleProperties&&e.moduleProperties.audienceManager&&e.moduleProperties.audienceManager.config&&r&&r._satellite&&r._satellite.company&&r._satellite.company.orgId&&(n=!0),n}};e.exports=i}},"adobe-analytics/src/lib/helpers/augmenters.js":{script:function(e){"use strict";e.exports=[]}},"adobe-analytics/src/lib/helpers/loadLibrary.js":{script:function(e,n,t,a){"use strict";var r=t("@adobe/reactor-load-script"),i=t("@adobe/reactor-window"),o=t("@adobe/reactor-promise"),s=t("./settingsHelper"),c=t("./pollHelper"),l=function(e,n){if(!i.s_gi)throw new Error("Unable to create AppMeasurement tracker, `s_gi` function not found."+i.AppMeasurement);a.logger.info('Creating AppMeasurement tracker with these report suites: "'+n+'"');var t=i.s_gi(n);return e.libraryCode.scopeTrackerGlobally&&(a.logger.info("Setting the tracker as window.s"),i.s=t),t},u=function(e){var n=[];switch(e.libraryCode.type){case s.LIB_TYPES.MANAGED:n.push(a.getHostedLibFileUrl(s.MANAGED_LIB_PATHS.APP_MEASUREMENT)),s.isActivityMapEnabled(e)&&n.push(a.getHostedLibFileUrl(s.MANAGED_LIB_PATHS.ACTIVITY_MAP));break;case s.LIB_TYPES.CUSTOM:n.push(e.libraryCode.source);break;case s.LIB_TYPES.REMOTE:n.push("https:"===i.location.protocol?e.libraryCode.httpsUrl:e.libraryCode.httpUrl)}if(s.isAudienceManagementEnabled(e)){var t={namespace:i._satellite.company.orgId};e.moduleProperties.audienceManager.config.visitorService=t,n.push(a.getHostedLibFileUrl(s.MANAGED_LIB_PATHS.AUDIENCE_MANAGEMENT))}return n},d=function(e){return o.all(u(e).map((function(e){return a.logger.info("Loading script: "+e),r(e)})))},p=function(e,n){if(e.libraryCode.accounts)if(n.sa){var t=s.getReportSuites(e.libraryCode.accounts);a.logger.info('Setting the following report suites on the tracker: "'+t+'"'),n.sa(t)}else a.logger.warn("Cannot set report suites on tracker. `sa` method not available.");return n},m=function(e){if(i[e])return a.logger.info('Found tracker located at: "'+e+'".'),i[e];throw new Error('Cannot find the global variable name: "'+e+'".')};e.exports=function(e){var n=d(e);switch(e.libraryCode.type){case s.LIB_TYPES.MANAGED:var t=s.getReportSuites(e.libraryCode.accounts);return n.then(l.bind(null,e,t));case s.LIB_TYPES.PREINSTALLED:return n.then(c.poll.bind(null,i,e.libraryCode.trackerVariableName)).then(p.bind(null,e));case s.LIB_TYPES.CUSTOM:case s.LIB_TYPES.REMOTE:return n.then(m.bind(null,e.libraryCode.trackerVariableName)).then(p.bind(null,e));default:throw new Error("Cannot load library. Type not supported.")}}}},"adobe-analytics/src/lib/helpers/generateVersion.js":{script:function(e){"use strict";var n=8,t=function(e){return e.getUTCDate().toString(36)},a=function(e){return e.substr(e.length-1)},r=function(e){return Math.floor(e.getUTCHours()/n)},i=function(e){var n=(e.getUTCMonth()+1+12*r(e)).toString(36);return a(n)},o=function(e){return(e.getUTCFullYear()-2010).toString(36)};e.exports=function(e){var n=new Date(e);if(isNaN(n))throw new Error("Invalid date provided");return("L"+o(n)+i(n)+t(n)).toUpperCase()}}},"adobe-analytics/src/lib/helpers/pollHelper.js":{script:function(e,n,t,a){"use strict";var r=t("@adobe/reactor-promise"),i=40,o=250,s=function(e,n,t){a.logger.info('Found property located at: "'+n+'"].'),e(t)},c=function(e,n){return new r((function(t,a){if(e[n])return s(t,n,e[n]);var r=1,c=setInterval((function(){e[n]&&(s(t,n,e[n]),clearInterval(c)),r>=i&&(clearInterval(c),a(new Error('Bailing out. Cannot find the variable name: "'+n+'"].'))),r++}),o)}))};e.exports={poll:function(e,n){return a.logger.info('Waiting for the property to become accessible at: "'+n+'"].'),c(e,n)}}}}}},core:{displayName:"Core",hostedLibFilesBaseUrl:"https://lightning.cnn.com/launch/7be62238e4c3/97fa00444124/3878e6d56b5e/hostedLibFiles/EP6a6d85ccbeaa4750848f31959dd9eec5/",modules:{"core/src/lib/dataElements/customCode.js":{name:"custom-code",displayName:"Custom Code",script:function(e){"use strict";e.exports=function(e,n){return e.source(n)}}},"core/src/lib/events/libraryLoaded.js":{name:"library-loaded",displayName:"Library Loaded (Page Top)",script:function(e,n,t){"use strict";var a=t("./helpers/pageLifecycleEvents");e.exports=function(e,n){a.registerLibraryLoadedTrigger(n)}}},"core/src/lib/conditions/customCode.js":{name:"custom-code",displayName:"Custom Code",script:function(e){"use strict";e.exports=function(e,n){return e.source.call(n.element,n,n.target)}}},"core/src/lib/actions/customCode.js":{name:"custom-code",displayName:"Custom Code",script:function(e,n,t,a){"use strict";var r,i,o,s,c=t("@adobe/reactor-document"),l=t("@adobe/reactor-promise"),u=t("./helpers/decorateCode"),d=t("./helpers/loadCodeSequentially"),p=t("../../../node_modules/postscribe/dist/postscribe"),m=t("./helpers/unescapeHtmlCode"),f=t("../helpers/findPageScript").getTurbine,g=(i=function(e){p(c.body,e,{beforeWriteToken:function(e){var n=e.tagName&&e.tagName.toLowerCase();return r&&"script"===n&&(e.attrs.nonce=r),"script"!==n&&"style"!==n||(Object.keys(e.attrs||{}).forEach((function(n){e.attrs[n]=m(e.attrs[n])})),e.src&&(e.src=m(e.src))),e},error:function(e){a.logger.error(e.msg)}})},o=[],s=function(){if(c.body)for(;o.length;)i(o.shift());else setTimeout(s,20)},function(e){o.push(e),s()}),h=function(){if(c.currentScript)return c.currentScript.async;var e=f();return!e||e.async}();e.exports=function(e,n){var t;r=a.getExtensionSettings().cspNonce;var i={settings:e,event:n},o=i.settings.source;if(o)return i.settings.isExternal?d(o).then((function(e){return e?(t=u(i,e),g(t.code),t.promise):l.resolve()})):(t=u(i,o),h||"loading"!==c.readyState?g(t.code):c.write&&!1===a.propertySettings.ruleComponentSequencingEnabled?c.write(t.code):g(t.code),t.promise)}}},"core/src/lib/events/pageBottom.js":{name:"page-bottom",displayName:"Page Bottom",script:function(e,n,t){"use strict";var a=t("./helpers/pageLifecycleEvents");e.exports=function(e,n){a.registerPageBottomTrigger(n)}}},"core/src/lib/events/domReady.js":{name:"dom-ready",displayName:"DOM Ready",script:function(e,n,t){"use strict";var a=t("./helpers/pageLifecycleEvents");e.exports=function(e,n){a.registerDomReadyTrigger(n)}}},"core/src/lib/events/helpers/pageLifecycleEvents.js":{script:function(e,n,t){"use strict";var a=t("@adobe/reactor-window"),r=t("@adobe/reactor-document"),i=-1!==a.navigator.appVersion.indexOf("MSIE 10"),o="WINDOW_LOADED",s="DOM_READY",c="PAGE_BOTTOM",l=[c,s,o],u=function(e,n){return{element:e,target:e,nativeEvent:n}},d={};l.forEach((function(e){d[e]=[]}));var p=function(e,n){l.slice(0,f(e)+1).forEach((function(e){g(n,e)}))},m=function(){return"complete"===r.readyState?o:"interactive"===r.readyState?i?null:s:void 0},f=function(e){return l.indexOf(e)},g=function(e,n){d[n].forEach((function(n){h(e,n)})),d[n]=[]},h=function(e,n){var t=n.trigger,a=n.syntheticEventFn;t(a?a(e):null)};a._satellite=a._satellite||{},a._satellite.pageBottom=p.bind(null,c),r.addEventListener("DOMContentLoaded",p.bind(null,s),!0),a.addEventListener("load",p.bind(null,o),!0),a.setTimeout((function(){var e=m();e&&p(e)}),0),e.exports={registerLibraryLoadedTrigger:function(e){e()},registerPageBottomTrigger:function(e){d[c].push({trigger:e})},registerDomReadyTrigger:function(e){d[s].push({trigger:e,syntheticEventFn:u.bind(null,r)})},registerWindowLoadedTrigger:function(e){d[o].push({trigger:e,syntheticEventFn:u.bind(null,a)})}}}},"core/src/lib/actions/helpers/decorateCode.js":{script:function(e,n,t){"use strict";var a=t("./decorators/decorateGlobalJavaScriptCode"),r=t("./decorators/decorateNonGlobalJavaScriptCode"),i={javascript:function(e,n){return e.settings.global?a(e,n):r(e,n)},html:t("./decorators/decorateHtmlCode")};e.exports=function(e,n){return i[e.settings.language](e,n)}}},"core/src/lib/actions/helpers/loadCodeSequentially.js":{script:function(e,n,t){"use strict";var a=t("@adobe/reactor-promise"),r=t("./getSourceByUrl"),i=a.resolve();e.exports=function(e){var n=new a((function(n){var t=r(e);a.all([t,i]).then((function(e){var t=e[0];n(t)}))}));return i=n,n}}},"core/node_modules/postscribe/dist/postscribe.js":{script:function(e,n){var t,a;t=this,a=function(){return function(e){function n(a){if(t[a])return t[a].exports;var r=t[a]={exports:{},id:a,loaded:!1};return e[a].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,n,t){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}var r=a(t(1));e.exports=r.default},function(e,n,t){"use strict";function a(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}function r(e){return e&&e.__esModule?e:{default:e}}function i(){}function o(){var e=f.shift();if(e){var n=d.last(e);n.afterDequeue(),e.stream=s.apply(void 0,e),n.afterStreamStart()}}function s(e,n,t){function a(e){e=t.beforeWrite(e),g.write(e),t.afterWrite(e)}(g=new u.default(e,t)).id=m++,g.name=t.name||g.id,c.streams[g.name]=g;var r=e.ownerDocument,s={close:r.close,open:r.open,write:r.write,writeln:r.writeln};l(r,{close:i,open:i,write:function(){for(var e=arguments.length,n=Array(e),t=0;t2&&void 0!==arguments[2]?arguments[2]:null,a=p+n;u.existy(t)&&""!==t?e.setAttribute(a,t):e.removeAttribute(a)}n.__esModule=!0;var c=Object.assign||function(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.root=n,this.options=t,this.doc=n.ownerDocument,this.win=this.doc.defaultView||this.doc.parentWindow,this.parser=new l.default("",{autoFix:t.autoFix}),this.actuals=[n],this.proxyHistory="",this.proxyRoot=this.doc.createElement(n.nodeName),this.scriptStack=[],this.writeQueue=[],s(this.proxyRoot,"proxyof",0)}return e.prototype.write=function(){var e;for((e=this.writeQueue).push.apply(e,arguments);!this.deferredRemote&&this.writeQueue.length;){var n=this.writeQueue.shift();u.isFunction(n)?this._callFunction(n):this._writeImpl(n)}},e.prototype._callFunction=function(e){var n={type:"function",value:e.name||e.toString()};this._onScriptStart(n),e.call(this.win,this.doc),this._onScriptDone(n)},e.prototype._writeImpl=function(e){this.parser.append(e);for(var n=void 0,t=void 0,a=void 0,r=[];(n=this.parser.readToken())&&!(t=u.isScript(n))&&!(a=u.isStyle(n));)(n=this.options.beforeWriteToken(n))&&r.push(n);r.length>0&&this._writeStaticTokens(r),t&&this._handleScriptToken(n),a&&this._handleStyleToken(n)},e.prototype._writeStaticTokens=function(e){var n=this._buildChunk(e);return n.actual?(n.html=this.proxyHistory+n.actual,this.proxyHistory+=n.proxy,this.proxyRoot.innerHTML=n.html,d&&(n.proxyInnerHTML=this.proxyRoot.innerHTML),this._walkChunk(),d&&(n.actualInnerHTML=this.root.innerHTML),n):null},e.prototype._buildChunk=function(e){for(var n=this.actuals.length,t=[],a=[],r=[],i=e.length,o=0;o)/," "+p+"id="+l+" $1")),s.attrs.id!==f&&s.attrs.id!==m&&r.push("atomicTag"===s.type?"":"<"+s.tagName+" "+p+"proxyof="+l+(s.unary?" />":">"))}}else a.push(c),r.push("endTag"===s.type?c:"")}return{tokens:e,raw:t.join(""),actual:a.join(""),proxy:r.join("")}},e.prototype._walkChunk=function(){for(var e=void 0,n=[this.proxyRoot];u.existy(e=n.shift());){var t=1===e.nodeType;if(!t||!o(e,"proxyof")){t&&(this.actuals[o(e,"id")]=e,s(e,"id"));var a=e.parentNode&&o(e.parentNode,"proxyof");a&&this.actuals[a].appendChild(e)}n.unshift.apply(n,u.toArray(e.childNodes))}},e.prototype._handleScriptToken=function(e){var n=this,t=this.parser.clear();t&&this.writeQueue.unshift(t),e.src=e.attrs.src||e.attrs.SRC,(e=this.options.beforeWriteToken(e))&&(e.src&&this.scriptStack.length?this.deferredRemote=e:this._onScriptStart(e),this._writeScriptToken(e,(function(){n._onScriptDone(e)})))},e.prototype._handleStyleToken=function(e){var n=this.parser.clear();n&&this.writeQueue.unshift(n),e.type=e.attrs.type||e.attrs.TYPE||"text/css",(e=this.options.beforeWriteToken(e))&&this._writeStyleToken(e),n&&this.write()},e.prototype._writeStyleToken=function(e){var n=this._buildStyle(e);this._insertCursor(n,m),e.content&&(n.styleSheet&&!n.sheet?n.styleSheet.cssText=e.content:n.appendChild(this.doc.createTextNode(e.content)))},e.prototype._buildStyle=function(e){var n=this.doc.createElement(e.tagName);return n.setAttribute("type",e.type),u.eachKey(e.attrs,(function(e,t){n.setAttribute(e,t)})),n},e.prototype._insertCursor=function(e,n){this._writeImpl('');var t=this.doc.getElementById(n);t&&t.parentNode.replaceChild(e,t)},e.prototype._onScriptStart=function(e){e.outerWrites=this.writeQueue,this.writeQueue=[],this.scriptStack.unshift(e)},e.prototype._onScriptDone=function(e){e===this.scriptStack[0]?(this.scriptStack.shift(),this.write.apply(this,e.outerWrites),!this.scriptStack.length&&this.deferredRemote&&(this._onScriptStart(this.deferredRemote),this.deferredRemote=null)):this.options.error({msg:"Bad script nesting or script finished twice"})},e.prototype._writeScriptToken=function(e,n){var t=this._buildScript(e),a=this._shouldRelease(t),r=this.options.afterAsync;e.src&&(t.src=e.src,this._scriptLoadHandler(t,a?r:function(){n(),r()}));try{this._insertCursor(t,f),t.src&&!a||n()}catch(e){this.options.error(e),n()}},e.prototype._buildScript=function(e){var n=this.doc.createElement(e.tagName);return u.eachKey(e.attrs,(function(e,t){n.setAttribute(e,t)})),e.content&&(n.text=e.content),n},e.prototype._scriptLoadHandler=function(e,n){function t(){e=e.onload=e.onreadystatechange=e.onerror=null}function a(){t(),null!=n&&n(),n=null}function r(e){t(),o(e),null!=n&&n(),n=null}function i(e,n){var t=e["on"+n];null!=t&&(e["_on"+n]=t)}var o=this.options.error;i(e,"load"),i(e,"error"),c(e,{onload:function(){if(e._onload)try{e._onload.apply(this,Array.prototype.slice.call(arguments,0))}catch(n){r({msg:"onload handler failed "+n+" @ "+e.src})}a()},onerror:function(){if(e._onerror)try{e._onerror.apply(this,Array.prototype.slice.call(arguments,0))}catch(n){return void r({msg:"onerror handler failed "+n+" @ "+e.src})}r({msg:"remote script failed "+e.src})},onreadystatechange:function(){/^(loaded|complete)$/.test(e.readyState)&&a()}})},e.prototype._shouldRelease=function(e){return!/^script$/i.test(e.nodeName)||!!(this.options.releaseAsync&&e.src&&e.hasAttribute("async"))},e}();n.default=g},function(e){var n;n=function(){return function(e){function n(a){if(t[a])return t[a].exports;var r=t[a]={exports:{},id:a,loaded:!1};return e[a].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,n,t){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}var r=a(t(1));e.exports=r.default},function(e,n,t){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function r(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}function i(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0;var o=r(t(2)),s=r(t(3)),c=a(t(6)),l=t(5),u={comment:/^");if(n>=0)return new l.CommentToken(e.substr(4,n-1),n+3)}function r(e){var n=e.indexOf("<");return new l.CharsToken(n>=0?n:e.length)}function i(e){var n,t,a;if(-1!==e.indexOf(">")){var r=e.match(u.startTag);if(r){var i=(n={},t={},a=r[2],r[2].replace(u.attr,(function(e,r){arguments[2]||arguments[3]||arguments[4]||arguments[5]?arguments[5]?(n[arguments[5]]="",t[arguments[5]]=!0):n[r]=arguments[2]||arguments[3]||arguments[4]||u.fillAttr.test(r)&&r||"":n[r]="",a=a.replace(e,"")})),{v:new l.StartTagToken(r[1],r[0].length,n,t,!!r[3],a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))});if("object"===(void 0===i?"undefined":c(i)))return i.v}}}function o(e){var n=i(e);if(n){var t=e.slice(n.length);if(t.match(new RegExp("","i"))){var a=t.match(new RegExp("([\\s\\S]*?)","i"));if(a)return new l.AtomicTagToken(n.tagName,a[0].length+n.length,n.attrs,n.booleanAttrs,a[1])}}}function s(e){var n=e.match(u.endTag);if(n)return new l.EndTagToken(n[1],n[0].length)}n.__esModule=!0;var c="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};n.comment=a,n.chars=r,n.startTag=i,n.atomicTag=o,n.endTag=s;var l=t(4),u={startTag:/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,endTag:/^<\/([\-A-Za-z0-9_]+)[^>]*>/,attr:/(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g,fillAttr:/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i}},function(e,n,t){"use strict";function a(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0,n.EndTagToken=n.AtomicTagToken=n.StartTagToken=n.TagToken=n.CharsToken=n.CommentToken=n.Token=void 0;var r=t(5),i=(n.Token=function e(n,t){a(this,e),this.type=n,this.length=t,this.text=""},n.CommentToken=function(){function e(n,t){a(this,e),this.type="comment",this.length=t||(n?n.length:0),this.text="",this.content=n}return e.prototype.toString=function(){return"