\n
\n You're watching a daily free preview\n \n
\n Preview expires in 00:00\n \n \n \n Subscribe\n \n \n",OVERLAY_STYLE="\n .freeview-overlay {\n position: absolute;\n top: 20px;\n right: 20px;\n background: rgba(12, 12, 12, 0.9);\n color: #fff;\n z-index: 5;\n display: flex;\n align-items: center;\n padding: 12px 15px;\n border-radius: 4px;\n }\n\n .freeview-overlay__cta {\n background: #f13a3a;\n font-size: 13px;\n line-height: 36px;\n padding: 0 16px;\n text-align: center;\n border-radius: 4px;\n font-weight: bold;\n margin-left: 25px;\n cursor: pointer;\n }\n\n .freeview-overlay__t1-copy, .freeview-overlay__t2-copy {\n margin: 0;\n line-height: 18px;\n }\n\n .freeview-overlay__t1-copy {\n font-weight: bold;\n font-size: 13px;\n }\n\n .freeview-overlay__t2-copy {\n font-size: 12px;\n }\n";module.exports=PreviewOverlay;
}, {"10":10,"11":11,"12":12}];
window.modules["3492"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_objectWithoutProperties2=_interopRequireDefault(require(163)),_excluded=["apiVersion","mediaType","servingHost"],_compact=require(3347),_get=require(1);function addCropAndSizeOptions(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=o.crop,i=void 0===r?{}:r,t=o.ratioSize,a=void 0===t?{}:t,n=o.rawQuery,c=o.extraCropCommands,u=void 0===c?[]:c,d=[],p=[],s=a.h,l=a.w,h=i.x,m=i.y,v=i.height,_=i.width,g=e.includes("?c="),b=e.includes("?q=")&&!g;b||g||(v&&d.push("h_".concat(v)),_&&d.push("w_".concat(_)),void 0!==h&&d.push("x_".concat(h)),void 0!==m&&d.push("y_".concat(m)),(h||m)&&d.push("c_crop")),s&&p.push("h_".concat(s)),l&&p.push("w_".concat(l)),b||d.length||!p.length||p.push("c_fill");var q=n||_compact([d.join(","),p.join(","),u.join(",")]).join("/")||"",x="?q=";return g?x="&q=":b&&(x="/"),_compact([e,q]).join(x)}function buildUrl(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=o.ratio,i=void 0===r?"original":r,t=o.ratioSize,a=void 0===t?{}:t,n=o.rawQuery,c=o.servingHost,u=o.damDocumentType,d=o.extraCropCommands,p=_get(e,["data","crops",i],_get(e,["crops",i],{})),s=p.uri||e.uri;return addCropAndSizeOptions(s&&"".concat(c,"/api/v1/").concat(u).concat(s)||e.url||"",{crop:p,ratioSize:a,rawQuery:n,extraCropCommands:d})}function buildUrlFromUri(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=o.apiVersion,i=void 0===r?"v1":r,t=o.mediaType,a=void 0===t?"images":t,n=o.servingHost,c=(0,_objectWithoutProperties2.default)(o,_excluded);return addCropAndSizeOptions("".concat(n,"/api/").concat(i,"/").concat(a).concat(e),c)}module.exports.buildUrl=buildUrl,module.exports.buildUrlFromUri=buildUrlFromUri;
}, {"1":1,"10":10,"163":163,"3347":3347}];
window.modules["3493"] = [function(require,module,exports){"use strict";const htmlTags=require(3657),basic=/\s?|(]*>|]*>|
]+>)+/i,full=new RegExp(htmlTags.map(t=>`<${t}\\b[^>]*>`).join("|"),"i");module.exports=(t=>basic.test(t)||full.test(t));
}, {"3657":3657}];
window.modules["3499"] = [function(require,module,exports){"use strict";var isFinite=require(3359),isString=require(333),isBoolean=require(3357);function propertyValue(r,e,i){var o,t;if(null==r||null===(o=r.trim)||void 0===o||null===(t=o.call(r))||void 0===t||!t.length)throw new Error("Invalid propertyId provided: (".concat(r,", ").concat(e,")"));if(!isValidPropertyValueArgs(r,e))throw new Error("Invalid propertyValue provided: (".concat(r,", ").concat(e,")"));return{"@type":"PropertyValue",propertyID:r,name:i||r,value:e}}function isValidPropertyValueArgs(r,e){return!!(isFinite(e)||isString(e)||isBoolean(e))}module.exports={isValidPropertyValueArgs:isValidPropertyValueArgs,propertyValue:propertyValue};
}, {"333":333,"3357":3357,"3359":3359}];
window.modules["3500"] = [function(require,module,exports){"use strict";module.exports={of:"Ù",for:"Ù","https://www.cnn.com":"https://arabic.cnn.com","See More Videos":"شاÙد اÙÙ
زÙد","minute read":"Ùراءة دÙÙÙØ©",Published:" ",Updated:" ","Draft - created":"Ù
سÙدة - تÙ
Ø¥ÙشاؤÙا",Clear:"ÙاضØ",Displaying:"عرض","results out of":"اÙÙتائج Ù
Ù","Sort by":"Ùرز Øسب","Sorting by":"اÙÙرز Øسب",Newest:"اÙØ£Øدث",Relevancy:"اÙصÙØ©","Your search for":"بØث٠عÙ","did not match any results":"ÙÙ
تتطاب٠Ù
ع Ø£Ù Ùتائج","A few suggestions":"بعض اÙاÙتراØات","Make sure all words are spelled correctly":"تأÙد Ù
Ù Ùتابة جÙ
Ùع اÙÙÙÙ
ات بشÙ٠صØÙØ","Try different keywords":"جرب ÙÙÙ
ات رئÙسÙØ© Ù
ختÙÙØ©","Try more general keywords":"ØاÙ٠استخداÙ
ÙÙÙ
ات رئÙسÙØ© Ø£Ùثر عÙ
ÙÙ
ÙØ©",Prev:"اÙسابÙ",Next:"اÙتاÙÙ",Everything:"Ù٠شئ",Stories:"Ùصص",Videos:"اÙÙÙدÙÙÙات",Photos:"اÙصÙر",Source:"Ù
صدر","Now playing":"تشغÙ٠اÙØ¢Ù"};
}, {}];
window.modules["3501"] = [function(require,module,exports){"use strict";module.exports={of:"de",for:"para","https://www.cnn.com":"https://cnnespanol.cnn.com","See More Videos":"Ver Más","minute read":"min de lectura",Published:" ",Updated:" ","Draft - created":"Borrador - creado",Clear:"Limpiar búsqueda",Displaying:"Mostrando","results out of":"resultados de","Sort by":"Ordenar por","Sorting by":"Ordenando por",Newest:"Lo más reciente",Relevancy:"Relevancia","Your search for":"Tu búsqueda de","did not match any results":"no coincide con ningún resultado","A few suggestions":"Algunas sugerencias","Make sure all words are spelled correctly":"Asegúrate de que todas las palabras estén escritas correctamente","Try different keywords":"Prueba diferentes palabras clave","Try more general keywords":"Prueba palabras clave más generales",Prev:"Anterior",Next:"Siguiente",Everything:"Todo",Stories:"ArtÃculos",Videos:"Videos",Photos:"Fotos",Source:"Fuente","Now playing":"En curso","Hide description":"Ocultar descripción","Show description":"Mostrar descripción"};
}, {}];
window.modules["3524"] = [function(require,module,exports){"use strict";exports.byteLength=byteLength,exports.toByteArray=toByteArray,exports.fromByteArray=fromByteArray;for(var lookup=[],revLookup=[],Arr="undefined"!=typeof Uint8Array?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,len=code.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var e=o.indexOf("=");return-1===e&&(e=r),[e,e===r?0:4-e%4]}function byteLength(o){var r=getLens(o),e=r[0],t=r[1];return 3*(e+t)/4-t}function _byteLength(o,r,e){return 3*(r+e)/4-e}function toByteArray(o){var r,e,t=getLens(o),n=t[0],u=t[1],p=new Arr(_byteLength(o,n,u)),a=0,h=u>0?n-4:n;for(e=0;e>16&255,p[a++]=r>>8&255,p[a++]=255&r;return 2===u&&(r=revLookup[o.charCodeAt(e)]<<2|revLookup[o.charCodeAt(e+1)]>>4,p[a++]=255&r),1===u&&(r=revLookup[o.charCodeAt(e)]<<10|revLookup[o.charCodeAt(e+1)]<<4|revLookup[o.charCodeAt(e+2)]>>2,p[a++]=r>>8&255,p[a++]=255&r),p}function tripletToBase64(o){return lookup[o>>18&63]+lookup[o>>12&63]+lookup[o>>6&63]+lookup[63&o]}function encodeChunk(o,r,e){for(var t,n=[],u=r;up?p:u+16383));return 1===t?(r=o[e-1],n.push(lookup[r>>2]+lookup[r<<4&63]+"==")):2===t&&(r=(o[e-2]<<8)+o[e-1],n.push(lookup[r>>10]+lookup[r>>4&63]+lookup[r<<2&63]+"=")),n.join("")}revLookup["-".charCodeAt(0)]=62,revLookup["_".charCodeAt(0)]=63;
}, {}];
window.modules["3586"] = [function(require,module,exports){exports.read=function(a,o,t,r,h){var M,p,w=8*h-r-1,f=(1<>1,i=-7,N=t?h-1:0,n=t?-1:1,s=a[o+N];for(N+=n,M=s&(1<<-i)-1,s>>=-i,i+=w;i>0;M=256*M+a[o+N],N+=n,i-=8);for(p=M&(1<<-i)-1,M>>=-i,i+=r;i>0;p=256*p+a[o+N],N+=n,i-=8);if(0===M)M=1-e;else{if(M===f)return p?NaN:1/0*(s?-1:1);p+=Math.pow(2,r),M-=e}return(s?-1:1)*p*Math.pow(2,M-r)},exports.write=function(a,o,t,r,h,M){var p,w,f,e=8*M-h-1,i=(1<>1,n=23===h?Math.pow(2,-24)-Math.pow(2,-77):0,s=r?0:M-1,u=r?1:-1,l=o<0||0===o&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(w=isNaN(o)?1:0,p=i):(p=Math.floor(Math.log(o)/Math.LN2),o*(f=Math.pow(2,-p))<1&&(p--,f*=2),(o+=p+N>=1?n/f:n*Math.pow(2,1-N))*f>=2&&(p++,f/=2),p+N>=i?(w=0,p=i):p+N>=1?(w=(o*f-1)*Math.pow(2,h),p+=N):(w=o*Math.pow(2,N-1)*Math.pow(2,h),p=0));h>=8;a[t+s]=255&w,s+=u,w/=256,h-=8);for(p=p<0;a[t+s]=255&p,s+=u,p/=256,e-=8);a[t+s-u]|=128*l};
}, {}];
window.modules["3656"] = [function(require,module,exports){module.exports=[
"a",
"abbr",
"address",
"area",
"article",
"aside",
"audio",
"b",
"base",
"bdi",
"bdo",
"blockquote",
"body",
"br",
"button",
"canvas",
"caption",
"cite",
"code",
"col",
"colgroup",
"data",
"datalist",
"dd",
"del",
"details",
"dfn",
"dialog",
"div",
"dl",
"dt",
"em",
"embed",
"fieldset",
"figcaption",
"figure",
"footer",
"form",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6",
"head",
"header",
"hgroup",
"hr",
"html",
"i",
"iframe",
"img",
"input",
"ins",
"kbd",
"label",
"legend",
"li",
"link",
"main",
"map",
"mark",
"math",
"menu",
"menuitem",
"meta",
"meter",
"nav",
"noscript",
"object",
"ol",
"optgroup",
"option",
"output",
"p",
"param",
"picture",
"pre",
"progress",
"q",
"rb",
"rp",
"rt",
"rtc",
"ruby",
"s",
"samp",
"script",
"section",
"select",
"slot",
"small",
"source",
"span",
"strong",
"style",
"sub",
"summary",
"sup",
"svg",
"table",
"tbody",
"td",
"template",
"textarea",
"tfoot",
"th",
"thead",
"time",
"title",
"tr",
"track",
"u",
"ul",
"var",
"video",
"wbr"
]
}, {}];
window.modules["3657"] = [function(require,module,exports){"use strict";module.exports=require(3656);
}, {"3656":3656}];
window.modules["ad-slot-dynamic.client"] = [function(require,module,exports){"use strict";var _require=require(26),positionElement=_require.positionElement;module.exports=function(e){e.querySelector(".ad-slot")&&e.dataset.placement&&positionElement(e,{onPosition:function(e){var t=e.querySelector(".ad-slot-dynamic__close");t&&t.addEventListener("click",function(){e.remove()})}})};
}, {"26":26}];
window.modules["bizdev-outbrain.client"] = [function(require,module,exports){"use strict";var _window$CNN,_window$CNN$contentMo,_require=require(9),AD_VARIANTS=_require.AD_VARIANTS,_require2=require(16),subscribe=_require2.subscribe,actions=_require2.actions,_require3=require(26),positionElement=_require3.positionElement,_require4=require(17),mediumMaxWidthListener=_require4.mediumMaxWidthListener,isVisibleViewport=_require4.isVisibleViewport,EnvVars=require(5),ucStates=["iab","data-share","data-sell","data-store","ads-contextual","ads-person-prof","ads-person","content-person-prof","content-person","measure-ads","measure-content","measure-market","product-develop"],isLiveStory="live-story"===(null===(_window$CNN=window.CNN)||void 0===_window$CNN?void 0:null===(_window$CNN$contentMo=_window$CNN.contentModel)||void 0===_window$CNN$contentMo?void 0:_window$CNN$contentMo.pageType),outBrainLoaded=!1,exitScript=!1;module.exports=function(e){subscribe(actions.ADS.SET_AD_VARIANT,function(i){if(i.adVariant===AD_VARIANTS.DEFAULT){var t=e.dataset,r=t.visibleViewport,n=t.placement,o=EnvVars.get("ENABLE_OUTBRAIN_MOBILE_LIVESTORY");if(mediumMaxWidthListener(function(e){isLiveStory&&e&&!o&&(exitScript=!0)}),exitScript)return;var s=e.innerHTML;outBrainLoaded&&!n&&mediumMaxWidthListener(function(i){e.innerHTML=isVisibleViewport(r,i)?s:""}),n&&positionElement(e,{onRefreshPosition:function(){return window.OBR.extern.reloadWidget()}}),outBrainLoaded||(outBrainLoaded=!0,window.WM.UserConsent.addScript({src:"//widgets.outbrain.com/outbrain.js",async:!0},ucStates),mediumMaxWidthListener(function(){window.OBR&&window.OBR.extern&&window.OBR.extern.reloadWidget()},{last:!0}))}})};
}, {"5":5,"9":9,"16":16,"17":17,"26":26}];
window.modules["headline.client"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_regenerator=_interopRequireDefault(require(25)),_asyncToGenerator2=_interopRequireDefault(require(24)),rest=require(30);module.exports=function(e){var r=e.getAttribute("data-request-headline-data"),t=function(r,t){for(var a in e.classList.add("".concat(e.classList[0],"--updating")),r)if(t){var n=r[a],i=t[n.responseField],o=e.querySelector(n.selector);o&&(o.innerText=i)}};if(r)var a=JSON.parse(r),n=a.endpoint,i=a.elementsToUpdate,o=setInterval((0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){var r;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,rest.get(n);case 3:(r=e.sent).length&&(t(i,r[0]),clearInterval(o)),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.error("Error fetching profile data for headline: ".concat(e.t0));case 10:case"end":return e.stop()}},e,null,[[0,7]])})),5e3)};
}, {"10":10,"24":24,"25":25,"30":30}];
window.modules["ad-feedback.client"] = [function(require,module,exports){"use strict";var _require=require(7),AdFeedback=_require.AdFeedback,_require2=require(6),ENABLE_AD_FEEDBACK_DISPLAY_ADS=_require2.ENABLE_AD_FEEDBACK_DISPLAY_ADS,ENABLE_AD_FEEDBACK_VIDEO_ADS=_require2.ENABLE_AD_FEEDBACK_VIDEO_ADS,_require3=require(6),shouldHideAdFeedbackLink=_require3.shouldHideAdFeedbackLink;if((ENABLE_AD_FEEDBACK_DISPLAY_ADS||ENABLE_AD_FEEDBACK_VIDEO_ADS)&&!shouldHideAdFeedbackLink){var adFeedback=new AdFeedback;adFeedback.initialize()}
}, {"6":6,"7":7}];
window.modules["alerts.client"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_typeof2=_interopRequireDefault(require(19)),_classCallCheck2=_interopRequireDefault(require(11)),_createClass2=_interopRequireDefault(require(12)),_get=require(1),rest=require(30),STORAGE_KEY="CLOSED_ALERTS",_require=require(16),dispatch=_require.dispatch,_require2=require(31),STICKY_HEADER=_require2.STICKY_HEADER,Alerts=function(){function e(t){var r=this;(0,_classCallCheck2.default)(this,e),_get(window,"kiln.locals",!0)&&(this.banner=t,this.check(),setInterval(function(){return r.check()},3e4))}return(0,_createClass2.default)(e,[{key:"check",value:function(){var e=this,t=this.storageGet();rest.get("/public/api/alerts").then(function(r){r.alerts.filter(function(e){return!t.includes(e.hash)}).forEach(function(t){e.add(t)}),e.banner.childNodes.length?e.showBanner():e.hideBanner(),dispatch(STICKY_HEADER.RECALCULATE)})}},{key:"alertExists",value:function(e){return!!this.banner.querySelector("#".concat(this.instance(e)))}},{key:"instance",value:function(e){return e.uri.split("/").pop().split("@").shift()}},{key:"add",value:function(e){this.alertExists(e)?e.hash!==this.banner.firstChild.getAttribute("data-alert-hash")&&this.banner.replaceChild(this.create(e),this.banner.firstChild):this.banner.appendChild(this.create(e))}},{key:"create",value:function(e){var t=this,r=function(e,t,r){var i=document.createElement("div");return i.className=e,"string"==typeof t&&(i.innerHTML=t),"object"===(0,_typeof2.default)(t)&&i.appendChild(t),r&&(i.id=r),i},i=r("alerts__close","",this.instance(e)),n=r("alerts__container",i);e.title&&n.appendChild(r("alerts__title",e.title)),n.appendChild(r("alerts__content",e.content));var a=r("alerts__item",n);return a.setAttribute("data-alert-hash",e.hash),i.addEventListener("click",function(r){var i=r.target;return t.close(i.id,e.hash)}),a}},{key:"showBanner",value:function(){this.banner.classList.add("alerts--visible")}},{key:"hideBanner",value:function(){this.banner.classList.remove("alerts--visible")}},{key:"close",value:function(e,t){for(var r=this.banner.querySelector("#".concat(e));"alerts__item"!==r.className;)r=r.parentNode;r.parentNode.removeChild(r),this.storageSet(t),dispatch(STICKY_HEADER.RECALCULATE)}},{key:"storageGet",value:function(){var e=window.sessionStorage.getItem(STORAGE_KEY);return e?e.split(",").filter(function(e){return null!=e&&""!=e}):[]}},{key:"storageSet",value:function(e){var t=this.storageGet().join(",");window.sessionStorage.setItem(STORAGE_KEY,t.concat(",",encodeURIComponent(e)))}}]),e}();module.exports=function(e){return new Alerts(e)};
}, {"1":1,"10":10,"11":11,"12":12,"16":16,"19":19,"30":30,"31":31}];
window.modules["image.client"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_createClass2=_interopRequireDefault(require(12)),_classCallCheck2=_interopRequireDefault(require(11)),_inherits2=_interopRequireDefault(require(13)),_possibleConstructorReturn2=_interopRequireDefault(require(14)),_getPrototypeOf2=_interopRequireDefault(require(15));function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var r,i=(0,_getPrototypeOf2.default)(e);if(t){var l=(0,_getPrototypeOf2.default)(this).constructor;r=Reflect.construct(i,arguments,l)}else r=i.apply(this,arguments);return(0,_possibleConstructorReturn2.default)(this,r)}}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var _require=require(16),ClientModel=_require.ClientModel,initializeOnExec=_require.initializeOnExec,elementResizeObserver=require(68),Image=function(e){(0,_inherits2.default)(r,e);var t=_createSuper(r);function r(e){var i;return(0,_classCallCheck2.default)(this,r),i=t.call(this,e),elementResizeObserver.observe(e),i}return(0,_createClass2.default)(r)}(ClientModel);module.exports=initializeOnExec(Image);
}, {"10":10,"11":11,"12":12,"13":13,"14":14,"15":15,"16":16,"68":68}];
window.modules["footer.client"] = [function(require,module,exports){"use strict";var enableUserConsentLink=function(e){var n=e.querySelector(".footer__links .uclink");window.WM&&window.WM.UserConsent&&0!==window.WM.UserConsent.getLinkTitle().length&&n&&(n.text=window.WM.UserConsent.getLinkTitle(),n.onclick=window.WM.UserConsent.getLinkAction(),n.style.display="block",n.style.textAlign="center")};module.exports=function(e){enableUserConsentLink(e)};
}, {}];
window.modules["header.client"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_regenerator=_interopRequireDefault(require(25)),_slicedToArray2=_interopRequireDefault(require(36)),_toConsumableArray2=_interopRequireDefault(require(23)),_asyncToGenerator2=_interopRequireDefault(require(24)),HEADER_ICON_IDS=["headerMenuIcon","headerSearchIcon","headerCloseIcon"],MORE_DROPDOWN_LINK_ID="moreDropdown",_require=require(160),calculateNavLeftMaxWidth=_require.calculateNavLeftMaxWidth,isSubscriber=_require.isSubscriber,_require2=require(145),calculatePageStickyThreshold=_require2.calculatePageStickyThreshold,_get=require(1),_require3=require(29),checkGeoCountry=_require3.checkGeoCountry,getCookie=_require3.getCookie,_require4=require(107),trackMetrics=_require4.trackMetrics,_require5=require(97),setAdobeAnalyticsDataForCookie=_require5.setAdobeAnalyticsDataForCookie,EnvVars=require(5),initializeMenu=function(e){var r=e.classList;HEADER_ICON_IDS.map(function(e){return document.getElementById(e)}).filter(function(e){return e}).forEach(function(e){e.addEventListener("click",function(){r.toggle("header--active");var e=window.document.body;if(r.contains("header--active"))e.style.top="-".concat(window.scrollY,"px"),e.classList.toggle("menu-opened");else{e.classList.toggle("menu-opened");var t=e.style.top;e.style.top="",window.scrollTo(0,-1*parseInt(t||"0"))}})})};function fireTrackingMetrics(e){var r=e.interaction,t=e.type;trackMetrics({type:void 0===t?"user-interaction":t,data:{interaction:r}})}var moreDropdownLink,moreSection,moreCaret,hoverStartTime,updateSubscribeView=function(){var e=(0,_asyncToGenerator2.default)(function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return _regenerator.default.mark(function t(){var n,o;return _regenerator.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=6;break}return t.next=3,isSubscriber();case 3:n=t.sent,e.style.display=n?"none":"block",r&&(o=e.closest(".header"),formatNavBar(o));case 6:case"end":return t.stop()}},t)})()});return function(r){return e.apply(this,arguments)}}(),initializeSubscribeButton=function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(r){var t,n,o;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.querySelector(".header__subscribe-button"),n=checkGeoCountry("US"),o=getCookie(EnvVars.get("APP_VIEW_COOKIE")),!t||o||!n){e.next=11;break}return r.querySelector(".header__inner").classList.add("header__inner--subscription"),e.next=8,updateSubscribeView(t);case 8:t.addEventListener("click",function(e){var t="".concat(window.location.protocol,"//").concat(window.location.hostname,"/subscription");window.zion_analytics.track(new window.ZION_SDK.GenericLinkClick({href:t,type:e.target.tagName,customAttributes:{Component_id:r.dataset.uri,Component_text:e.target.innerText.trim(),Component_type:"button",Container_type:"navigation"}})),fireTrackingMetrics({interaction:"nav:subscribe"});var n=new URL(t);n.searchParams.append("source","sub_web_nav"),n.searchParams.append("redirect",window.location.href),window.location.href=n.href}),document.addEventListener("login",(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,updateSubscribeView(t,!0);case 2:case"end":return e.stop()}},e)}))),document.addEventListener("logout",(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,updateSubscribeView(t,!0);case 2:case"end":return e.stop()}},e)})));case 11:case"end":return e.stop()}},e)}));return function(r){return e.apply(this,arguments)}}(),initializeAccordion=function(e){e.querySelectorAll(".header__nav-item-accordion").forEach(function(e){e.addEventListener("click",function(){var r;e.classList.toggle("header__nav-item-accordion--open"),null===(r=e.querySelector(".header__nav-item-dropdown"))||void 0===r||r.classList.toggle("header__nav-item-dropdown--open")})})},initializeEditionizers=function(e){var r=e.querySelectorAll(".header__editionizer"),t=e.querySelectorAll(".header__editionizer-button");(0,_toConsumableArray2.default)(t).forEach(function(e){return e.addEventListener("click",function(){e.setAttribute("aria-expanded","true"===e.getAttribute("aria-expanded")?"false":"true"),(0,_toConsumableArray2.default)(r).forEach(function(e){return e.classList.toggle("header__editionizer--active")})})})},formatNavBar=function(e){var r=e.querySelector(".header__right");if(e.getBoundingClientRect().width<960)r&&(r.style.visibility="visible");else if(!window.location.pathname.startsWith("/webview")){var t=function(e){return e.style.display="block"},n=function(e){return e.style.display="none"},o=function(){return e.querySelector(".header__left").getBoundingClientRect().width},i=function(e){d.querySelectorAll(".header__nav-item:nth-child(n+".concat(d.childElementCount-e,")")).forEach(n)},a=e.querySelector(".header__nav");a&&(a.style.visibility="hidden");var c=e.querySelector(".header__nav-more"),u=e.querySelector(".header__nav-more > .header__nav-item-dropdown"),d=e.querySelector(".header__left .header__nav-container");if(d){d.querySelectorAll(".header__nav-item").forEach(t),u.querySelectorAll(".header__nav-item-dropdown-item").forEach(n),n(c);for(var s=calculateNavLeftMaxWidth(e),l=o(),v=!1,_=1;l>s;)v=!0,i(_),l=o(),_++;v&&(t(c),(l=o())>s&&(i(_),l=o(),_++));var m=d.querySelector(".promotion-link")?0:1;u.querySelectorAll(".header__nav-item-dropdown-item:nth-child(n+".concat(d.childElementCount-_+m,")")).forEach(t),a&&(a.style.visibility="visible"),r&&(r.style.visibility="visible")}}},moreDropdownLinkZJSAttrs={},onMoreDropdownMouseEnter=function(){hoverStartTime=Date.now()},onMoreDropdownMouseLeave=function(){hoverStartTime&&(window.zion_analytics.track(new window.ZION_SDK.GenericHover({traits:{canonical_url:_get(window,"CNN.contentModel.canonicalUrl",null),component_id:moreDropdownLinkZJSAttrs.zjsComponent_id,cms_id:moreDropdownLinkZJSAttrs.zjsContainer_id,component_text:moreDropdownLinkZJSAttrs.zjsComponent_text,component_type:moreDropdownLinkZJSAttrs.zjsComponent_type,hover_time:Date.now()-hoverStartTime}})),hoverStartTime=0)},updateMoreDropdownHoverEvent=function(e){e?(moreDropdownLink.addEventListener("mouseenter",onMoreDropdownMouseEnter,!0),moreDropdownLink.addEventListener("mouseleave",onMoreDropdownMouseLeave,!0)):(moreDropdownLink.removeEventListener("mouseenter",onMoreDropdownMouseEnter,!0),moreDropdownLink.removeEventListener("mouseleave",onMoreDropdownMouseLeave,!0))},mediaQueryHoverNone=window.matchMedia("(any-hover: none)"),convertDatasetToAttributeName=function(e){return"data-".concat(e.split(/(?=[A-Z])/).join("-").toLowerCase())},updateMoreDropdownZJS=function(){var e=mediaQueryHoverNone.matches;if(updateMoreDropdownHoverEvent(!e),e)for(var r=0,t=Object.entries(moreDropdownLinkZJSAttrs);r=u||c===t?(o.classList.remove("hide"),i.classList.remove("header__subnav-mount--scrolled")):(o.classList.add("hide"),i.classList.add("header__subnav-mount--scrolled"))})})}module.exports=function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(r){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r.addEventListener("click",setNavigationAdobeAnalytics),initializeMenu(r),e.next=4,initializeSubscribeButton(r);case 4:initializeEditionizers(r),initializeAccordion(r),initializeMoreDropdown(),calculatePageStickyThreshold(),formatNavBar(r),initializeNavBorderStyleUpdate(r),window.addEventListener("resize",function(){formatNavBar(r)});case 11:case"end":return e.stop()}},e)}));return function(r){return e.apply(this,arguments)}}();
}, {"1":1,"5":5,"10":10,"23":23,"24":24,"25":25,"29":29,"36":36,"97":97,"107":107,"145":145,"160":160}];
window.modules["subnav.client"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_regenerator=_interopRequireDefault(require(25)),_slicedToArray2=_interopRequireDefault(require(36)),_asyncToGenerator2=_interopRequireDefault(require(24));module.exports=function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(r){var t,a,n,i,o,u,l,s,c;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t={},a={zjsNavigationLocation:"header,footer"},n=0,i=Object.entries(a);n960,n.defaultTransitionDuration=700,n.setupItemsContainer(),n.bindEvents(),n}return(0,_createClass2.default)(i,[{key:"setupItemsContainer",value:function(){if(this.mediumPlus){var e=this.getClonesCount();this.itemWidth=this.getElementWidth(this.items[0]),this.offsetLeftMin=-e*this.itemWidth,this.offsetLeftMax=-(this.items.length+e)*this.itemWidth,e>0?(this.clones.length&&this.removeAllClones(),this.addClones(e),this.moveTo(this.offsetLeftMin),this.setNavigationEnabled(!0)):(this.clones.length&&this.removeAllClones(),this.moveTo(0),this.setNavigationEnabled(!1)),this.playlistItemsContainer.style.width="".concat((this.items.length+this.clones.length)*this.itemWidth,"px")}else this.removeAllClones(),this.playlistItemsContainer.style.transform="",this.playlistItemsContainer.style.transition="",this.playlistItemsContainer.style.width="auto"}},{key:"bindEvents",value:function(){var e=this;this.playlistItemsContainer.addEventListener("click",function(t){return e.handleItemsContainerClick(t)}),this.playlistItemsContainer.addEventListener("touchstart",function(t){return e.handleTouchStart(t)}),this.playlistItemsContainer.addEventListener("touchmove",function(t){return e.handleTouchMove(t)}),this.playlistItemsContainer.addEventListener("transitionend",function(t){return e.handleTransitionEnd(t)}),window.addEventListener("resize",function(){clearTimeout(e.resizeTimer),e.resizeTimer=setTimeout(function(){return e.handleResize()},250)}),this.nextEl.addEventListener("click",function(){return e.next()}),this.prevEl.addEventListener("click",function(){return e.prev()}),this.initFave()}},{key:"getClonesCount",value:function(){var e=this.getNumberOfVisibleItems();return this.items.length>e?e+1:0}},{key:"addClones",value:function(e){for(var t=document.createDocumentFragment(),i=document.createDocumentFragment(),n=0;n1&&void 0!==arguments[1]?arguments[1]:600;if(t){if(e>0)return;if(0===e&&0===this.offsetLeft||this.offsetLeft===e)return;this.isAnimating=!0,this.playlistItemsContainer.style.transition="transform ".concat(t,"ms cubic-bezier(.80,0,.20,1) 0s")}else this.playlistItemsContainer.style.transition="";this.offsetLeft=e,this.playlistItemsContainer.style.transform="translate3d(".concat(e,"px, 0, 0)")}},{key:"next",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.navigationEnabled){var i=t||this.getNumberOfVisibleItems(),n=this.offsetLeft-i*this.itemWidth;n1&&void 0!==arguments[1]?arguments[1]:null;if(this.navigationEnabled){var i=t||this.getNumberOfVisibleItems(),n=this.getPositionOfFirstVisibleItem();n>=0&&n=0?this.moveTo(-this.items.length*this.itemWidth):this.offsetLeft<=this.offsetLeftMax&&this.moveTo(this.offsetLeftMin-e),this.isAnimating=!1}},{key:"handleItemsContainerClick",value:function(e){if(e.target){var t=e.target.closest(".video-resource");if(!t||t.classList.contains("video-resource--active"))return;var i=t.dataset,n=i.canonicalUrlPath,o=i.headline,s=i.index;if(this.handleVideoClick(t.dataset),this.nowPlayingVideo=t,this.updateTitleAndAddressBar(n,o),this.updateNowPlayingLabel(s),this.mediumPlus){var a,r=Math.abs(this.nowPlayingVideo.dataset.position-this.getPositionOfFirstVisibleItem())*this.itemWidth-this.itemWidth,l=this.nowPlayingVideo.dataset.position-(null===(a=this.items[0].dataset)||void 0===a?void 0:a.position);this.offsetLeft-r0&&t<100?this.next(500):t<0&&t>-100&&this.prev(500)}}},{key:"handleResize",value:function(){this.mediumPlus=window.innerWidth>VIEWPORT_MEDIUM_WIDTH,this.setupItemsContainer()}},{key:"onNextClicked",value:function(e){e.getNextVideo(e.nowPlayingVideo)&&this.mediumPlus&&e.next(this.defaultTransitionDuration,1),(0,_get2.default)((0,_getPrototypeOf2.default)(i.prototype),"onNextClicked",this).call(this,e)}},{key:"onPreviousClicked",value:function(e){e.getPreviousVideo(e.nowPlayingVideo)&&this.mediumPlus&&e.prev(this.defaultTransitionDuration,1),(0,_get2.default)((0,_getPrototypeOf2.default)(i.prototype),"onPreviousClicked",this).call(this,e)}},{key:"onVideoComplete",value:function(){if(this.mediumPlus)if(this.offsetLeft-this.itemWidthVIEWPORT_MEDIUM_WIDTH){var e=window.getComputedStyle(this.video);this.playlistItemsContainer.style.height="".concat(parseInt(e.height,10)-47,"px"),this.showMoreClick()}else this.playlistItemsContainer.style.height=null}},{key:"setupEventListeners",value:function(){var e=this;this.playlistItemsContainer.addEventListener("scroll",function(t){t.target.scrollTop===t.target.scrollHeight-t.target.offsetHeight?e.playlistOuterContainer.classList.add("video-playlist__outer-container--bottom"):e.playlistOuterContainer.classList.remove("video-playlist__outer-container--bottom")}),this.playlistItemsContainer.addEventListener("click",function(t){return e.handleItemsContainerClick(t)}),this.initFave()}},{key:"handleItemsContainerClick",value:function(e){if(e.target){var t=e.target.closest(".video-resource");if(!t||t.classList.contains("video-resource--active"))return;var i=t.dataset.index;this.handleVideoClick(t.dataset),this.nowPlayingVideo=t,this.onVideoComplete(),this.updateNowPlayingLabel(i),this.setZionAnalyticsAttributes()}}},{key:"updateTitleAndAddressBar",value:function(e,t){window.history.replaceState(null,"",e),document.title=t||""}},{key:"updateFeaturedVideoDetails",value:function(){if(this.videoDetails){var e,t=this.videoDetailsElements,i=t.headline,n=t.description,o=t.duration,s=t.showLink,a=t.source,r=t.byline,l=t.timestamp,d=this.nowPlayingVideo.dataset;if(i.innerHTML=d.headline,n.innerHTML=d.description,o.innerHTML="".concat(d.duration),a.innerHTML=d.sourceHtml,s.innerHTML=d.showHtml,r&&(r.innerHTML=d.bylineHtml),l)l.innerHTML=(null===(e=this.getVideoPlaylistItem(0))||void 0===e?void 0:e.dataset.uri)===d.uri?d.timestampHtml:""}}},{key:"getElementHeight",value:function(e){var t=window.getComputedStyle(e).marginBottom;return e.clientHeight+parseInt(t,10)}},{key:"onVideoBegin",value:function(){this.playlistItemsContainer.scrollTop=this.nowPlayingVideo.dataset.position*this.itemHeight,this.updateFeaturedVideoDetails()}},{key:"onVideoComplete",value:function(){var e=this.nowPlayingVideo.dataset,t=e.canonicalUrlPath,i=e.headline;this.updateTitleAndAddressBar(t,i)}}]),i}(BaseVideoPlaylist),VerticalVideoPlaylist=function(e){(0,_inherits2.default)(i,e);var t=_createSuper(i);function i(e){var n;return(0,_classCallCheck2.default)(this,i),(n=t.call(this,e)).config={autostart:!0,player:{ui:{theme:{verticalVideoUi:{shouldRender:!0}}}}},n.getFaveInstance=function(e){return window.FAVE.player.getInstance(e)},Object.assign((0,_assertThisInitialized2.default)(n),{itemWidth:n.getElementWidth(n.items[0]),offsetLeft:0,offsetLeftMin:0,offsetLeftMax:0,touchInitialX:0,xDown:null,yDown:null,playerTopPosition:document.querySelector('[data-component-name="video-resource"]').getBoundingClientRect().top,playerBottomPosition:document.querySelector('[data-component-name="video-resource"]').getBoundingClientRect().bottom,isAnimating:!1,navigationEnabled:!0,clones:[],defaultTransitionDuration:700,endCardState:!1,muted:!0,scrolling:!1,disabledNextClass:"video-playlist__navigation--next-disabled",disabledPrevClass:"video-playlist__navigation--previous-disabled"}),n.featuredVideoContainer=document.querySelector("[data-editable=featuredVideo]"),n.featuredVideoContainer.remove(),n.firstVideoResource=Array.from(n.playlistItemsContainer.querySelectorAll(".video-resource"))[0],n.nextEl=e.querySelector(".video-playlist__navigation--next"),n.prevEl=e.querySelector(".video-playlist__navigation--previous"),n.prevEl.classList.add(n.disabledPrevClass),n.playlistIntersectObserver=n.initializePlaylistIntersectObserver(),n.callToActionElement=n.el.querySelector(".call-to-action"),n.playlistIntersectObserver.observe(n.callToActionElement),n.bindEvents(),n}return(0,_createClass2.default)(i,[{key:"getVideoPlayerData",value:function(e){var t=e.querySelector('[data-component-name="video-player"]'),i=e.dataset.uri;return t&&(i=t.dataset.uri),{instanceId:"player-".concat(i),uri:i}}},{key:"setAutoplayOnUserGesture",value:function(){var e=this;document.addEventListener("touchstart",function(t){e.el.querySelectorAll(".video-resource").forEach(function(i){var n=e.getVideoPlayerData(i).instanceId,o=e.getFaveInstance(n);null==o||o.prepare(t)})},{once:!0})}},{key:"initializePlaylistIntersectObserver",value:function(){var e=this,t={root:document.querySelector(".video-playlist__items-container"),rootMargin:"0px",threshold:.2},i=this;return new IntersectionObserver(function(t){t.forEach(function(t){if(t.isIntersecting)if(t.target===i.callToActionElement)i.scrolling=!1,i.lastVideoPlayer=Array.from(i.playlistItemsContainer.querySelectorAll(".video-resource")).pop(),dispatch(VIDEO.PAUSE_VIDEO,{configs:_objectSpread(_objectSpread({},i.config),{},{stellarUri:i.lastVideoPlayer.dataset.uri}),markupId:e.featuredVideoUri},i.featuredVideoUri),i.nowPlayingVideo=null,i.hideAndShowPlayerUI(i.lastVideoPlayer,null),i.setNavigationBasedOnPosition(i.items.length);else if(t.target!==i.nowPlayingVideo){var n=i.getVideoPlayerData(t.target).instanceId;i.featuredVideoUri=n,i.hideAndShowPlayerUI(i.nowPlayingVideo,t.target),i.setNavigationBasedOnPosition(parseInt(t.target.dataset.position)),i.nowPlayingVideo=t.target,requestAnimationFrame(i.checkVideoPosition.bind(i))}})},t)}},{key:"onPlayerReady",value:function(e,t){var i=this.getVideoPlayerData(this.firstVideoResource).uri;t.includes(i)&&this.resetItemPositions()}},{key:"onContentComplete",value:function(){this.nextVideo()}},{key:"nextVideo",value:function(){if(this.nowPlayingVideo&&!this.scrolling){this.scrolling=!0;var e=parseInt(this.nowPlayingVideo.dataset.position)+1;this.playVideoByPosition(e)}}},{key:"previousVideo",value:function(){if(!this.scrolling)if(this.nowPlayingVideo){if(0!==parseInt(this.nowPlayingVideo.dataset.position)){this.scrolling=!0;var e=parseInt(this.nowPlayingVideo.dataset.position)-1;this.playVideoByPosition(e)}}else this.scrolling=!0,this.playVideoByPosition(this.items.length-1)}},{key:"checkVideoPosition",value:function(){var e=window.innerWidth<=VIEWPORT_MEDIUM_WIDTH;this.nowPlayingVideo.getBoundingClientRect().topthis.playerBottomPosition-10||e?(this.scrolling=!1,this.playVideo(this.nowPlayingVideo)):requestAnimationFrame(this.checkVideoPosition.bind(this))}},{key:"playVideoByPosition",value:function(e){var t=this.getVideoPlaylistItem(e);this.setNavigationBasedOnPosition(e),t?t.scrollIntoView({behavior:"smooth",block:"center"}):this.callToActionElement.scrollIntoView({behavior:"smooth",block:"center"})}},{key:"setNavigationBasedOnPosition",value:function(e){0===e?this.prevEl.classList.add(this.disabledPrevClass):this.prevEl.classList.remove(this.disabledPrevClass),e===this.items.length?this.nextEl.classList.add(this.disabledNextClass):this.nextEl.classList.remove(this.disabledNextClass)}},{key:"hideAndShowPlayerUI",value:function(e,t){t&&t.classList.remove("pui--hidden"),e&&e.classList.add("pui--hidden")}},{key:"getEndCardState",get:function(){return this.endCardState}},{key:"setEndCardState",set:function(e){"boolean"==typeof e&&(this.endCardState=e)}},{key:"setupItemsContainer",value:function(){this.removeAllClones(),Object.assign(this.playlistItemsContainer.style,{transform:"",transition:"",width:"auto"})}},{key:"bindEvents",value:function(){var e=this;this.nextEl.addEventListener("click",function(){return e.nextVideo()}),this.prevEl.addEventListener("click",function(){return e.previousVideo()}),this.initMultiFave(),this.setAutoplayOnUserGesture()}},{key:"getClonesCount",value:function(){var e=this.getNumberOfVisibleItems();return this.items.length>e?e+1:0}},{key:"addClones",value:function(e){for(var t=document.createDocumentFragment(),i=document.createDocumentFragment(),n=0;n=.5&&i<1&&(r.faveInstance.mute(),r.faveInstance.play(void 0,{autostart:!0}),n.unobserve(a))})},{threshold:.5});"scroll"===e.dataset.autostart&&"tve"!==e.dataset.customExperience&&n.observe(e)})}),(0,_defineProperty2.default)((0,_assertThisInitialized2.default)(r),"playTVEVideo",function(e){var t=_objectSpread(_objectSpread({},e),{},{mediaMetadata:{headline:null==e?void 0:e.assetDescription,mediumId:null==e?void 0:e.assetId,id:null==e?void 0:e.assetId}});return setAnalyticsMetadata(e),r.setPlayerVisibility(!0),authorizeAndPlay(t)}),r.el=e;var n,a=e.dataset.featuredVideo,s=e.dataset.customExperience,o=convertToBoolean(e.dataset.hasVideoPlayer),l=isAuthVideo(s);!a&&!l||o||(!l||null!==(n=window.TOP)&&void 0!==n&&n.Auth||document.getElementById("script-top-auth")?window.FAVE?r.renderPlayer(r.el):window.addEventListener("fave.loaded",function(){r.renderPlayer(r.el)}):(r.loadExternalScript(topAuthSrc,"top-auth"),r.loadExternalScript(topFreeviewSrc,"top-freeview")));if(isPageType(PAGE_TYPES.VIDEO)){var u=e.querySelector(".video-resource__description-toggle"),c=e.querySelector(".video-resource__description");u&&c&&u.addEventListener("click",function(){c.classList.toggle("video-resource__description--hidden"),u.classList.toggle("video-resource__description-toggle--hidden")})}return r.bind(".auth-player-container__back-player-icon-container","click",r.handlePlayerBackClick),r}return(0,_createClass2.default)(i,[{key:"verticalPlaybackRequest",value:function(e){var t=this.faveInstance.getMediaState();e.videoId&&(e.videoId=null),e.muted?this.faveInstance.mute():this.faveInstance.unmute(),"PAUSED"!=t&&"PLAYING"!=t?(this.faveInstance.prepare(),this.faveInstance.play(null,e)):"PLAYING"!=t&&this.faveInstance.resume()}},{key:"handlePlayerBackClick",value:function(){this.setPlayerVisibility(!1),this.faveInstance.stop()}},{key:"setPlayerVisibility",value:function(e){var t;e?(this.el.style.display="block",null===(t=this.el.querySelector(".auth-player-container"))||void 0===t||t.classList.add("fave-player-container_inline-full-bleed"),document.body.style.overflow="hidden"):(this.el.style.display="none",document.body.style.overflow="auto")}}]),i}(ClientModel);module.exports=initializeOnExec(VideoResource);
}, {"5":5,"6":6,"10":10,"11":11,"12":12,"13":13,"14":14,"15":15,"16":16,"17":17,"18":18,"29":29,"48":48,"76":76,"154":154,"175":175,"351":351,"407":407,"418":418}];
window.modules["video-player.client"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_classCallCheck2=_interopRequireDefault(require(11)),_createClass2=_interopRequireDefault(require(12)),_assertThisInitialized2=_interopRequireDefault(require(175)),_inherits2=_interopRequireDefault(require(13)),_possibleConstructorReturn2=_interopRequireDefault(require(14)),_getPrototypeOf2=_interopRequireDefault(require(15)),_defineProperty2=_interopRequireDefault(require(18));function ownKeys(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)}return i}function _objectSpread(e){for(var t=1;t0?t.length:"",r=e.closest("[data-".concat(DATA_ATTRIBUTE_PREFIX,"-collection]"))||document.body,o=r===document.body?"body":r.dataset["".concat(DATA_ATTRIBUTE_PREFIX,"Collection")],i="";o===ZONE_COMPONENT_NAME&&(i=t.indexOf(r));var a=Array.from(r.querySelectorAll('[data-uri*="/_components/"]')),c=a.length;return{collection_type:o,collection_type_index:i,collection_type_length:n,collection_item_index:a.indexOf(e),collection_item_length:c}}function getWordCount(e){return e.innerText?e.innerText.match(/\w+/g).length:0}function getAggregateComponentElement(e){return e.closest("[data-".concat(DATA_ATTRIBUTE_PREFIX,'-aggregate-events="true"]'))}function trackZionEvent(e){window.zion_analytics&&window.zion_analytics.track(e)}function initializeOnOffEvents(){if(EnvVars.get("ENABLE_ZION_ANALYTICS_ON_OFF_EVENTS")){var e=function(e){window.ZION_SDK&&e.forEach(function(e){var t=e.target,n=e.isIntersecting,r=t.dataset["".concat(DATA_ATTRIBUTE_PREFIX,"Observe")];if(r===COMPONENT_ON_EVENT&&n||r===COMPONENT_OFF_EVENT&&!n){var o=n?window.ZION_SDK.ComponentOnScreen:window.ZION_SDK.ComponentOffScreen,i=t.dataset.uri,a=function(){return setTimeout(function(){return trackZionEvent(new o({component_type:getComponentName(i),component_id:getComponentInstance(i),traits:_objectSpread(_objectSpread(_objectSpread(_objectSpread({},getCommonEventProperties()),getCollectionProperties(t)),getOptionalOnOffProperties(t)),{},{word_count:getWordCount(t)})}))},1500)};window.requestIdleCallback?window.requestIdleCallback(a,{timeout:500}):a(),t.dataset["".concat(DATA_ATTRIBUTE_PREFIX,"Observe")]=n?COMPONENT_OFF_EVENT:COMPONENT_ON_EVENT}})},t=Object.keys(OBSERVED_COMPONENT_THRESHOLDS).reduce(function(t,n){return _objectSpread(_objectSpread({},t),{},(0,_defineProperty2.default)({},n,new IntersectionObserver(e,{threshold:OBSERVED_COMPONENT_THRESHOLDS[n]})))},{});ZION_ON_OFF_OBSERVED_COMPONENTS.forEach(function(e){document.querySelectorAll('[data-uri*="/_components/'.concat(e,'/"]')).forEach(function(n){n.dataset["".concat(DATA_ATTRIBUTE_PREFIX,"Observe")]=COMPONENT_ON_EVENT,t[e]?t[e].observe(n):t.default.observe(n)})})}}function initializeClickEvents(){EnvVars.get("ENABLE_ZION_ANALYTICS_CLICK_EVENTS")&&document.body.addEventListener("click",function(e){var t="",n="",r="",o=e.target,i=o.closest("a[href]"),a=o.closest("[data-uri]"),c=getAggregateComponentElement(o);i&&i.href&&(r=i.href);var _=_objectSpread(_objectSpread({},getCustomProperties(o=c||a)),c?getCustomProperties(a):{}),s=e.target!==o?getCustomProperties(e.target):{};if(o){if(n=o.dataset.uri,"gallery"===(t=getComponentName(n))){var l,E=e.target.classList[0];E.includes("next")?l=_.carousel_item_index===_.carousel_item_length?1:_.carousel_item_index+1:E.includes("prev")&&(l=1===_.carousel_item_index?_.carousel_item_length:_.carousel_item_index-1),_.carousel_item_index=l}ZION_CLICK_OBSERVED_COMPONENTS.includes(t)&&trackZionEvent(new window.ZION_SDK.GenericClick({component_id:getComponentInstance(n),component_type:getComponentName(n),traits:_objectSpread(_objectSpread(_objectSpread(_objectSpread({},getCommonEventProperties()),getCollectionProperties(o)),_objectSpread(_objectSpread({},s),_)),{},{word_count:getWordCount(o),destination_url:r})}))}})}function initializeAnalyticsEvents(){isPageVariant(ZION_BEHAVIOURAL_ENABLED_PAGE_VARIANTS)&&(initializeOnOffEvents(),initializeClickEvents())}window.ZION_SDK?initializeAnalyticsEvents():window.addEventListener("zion.loaded",initializeAnalyticsEvents);
}, {"2":2,"5":5,"10":10,"18":18,"47":47,"89":89,"240":240}];
window.modules["bizdev-wunderkind.legacy"] = [function(require,module,exports){"use strict";var _require=require(9),AD_VARIANTS=_require.AD_VARIANTS,_require2=require(16),subscribe=_require2.subscribe,actions=_require2.actions,EnvVars=require(5),_require3=require(29),isEditionPage=_require3.isEditionPage,isEspanolPage=_require3.isEspanolPage,_require4=require(427),isEligibleForFocusMode=_require4.isEligibleForFocusMode,ucStates=["iab","data-share","data-sell","data-store","ads-contextual","ads-person-prof","ads-person","measure-ads","measure-market","product-develop"],initWunderkind=function(){var e=isEspanolPage()?EnvVars.get("ENABLE_WUNDERKIND_ES"):EnvVars.get("ENABLE_WUNDERKIND"),i=!!isEspanolPage()&&EnvVars.get("WUNDERKIND_SRC_ES")||(isEditionPage()?EnvVars.get("WUNDERKIND_SRC_EDITION"):EnvVars.get("WUNDERKIND_SRC"));e&&window.WM.UserConsent.addScript({src:i,id:"wunderkind_script",async:!0},ucStates)},waitForAdVariant=function(){subscribe(actions.ADS.SET_AD_VARIANT,function(e){e.adVariant===AD_VARIANTS.DEFAULT&&initWunderkind()})};isEligibleForFocusMode()?waitForAdVariant():initWunderkind();
}, {"5":5,"9":9,"16":16,"29":29,"427":427}];
window.modules["campaign-promo-events.legacy"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_regenerator=_interopRequireDefault(require(25)),_asyncToGenerator2=_interopRequireDefault(require(24)),_require=require(47),authClient=_require.authClient,NewsletterClient=require(249),campaignPromos=document.createElement("campaignPromos"),newsletterClient=new NewsletterClient(authClient),trackCampaignPromoEvent=function(e,n){var t=n.campaign_id,r=n.campaign_type,a=n.campaign_name,i=n.campaign_objective;window.zion_analytics.track(new e({component_id:"promo_body",component_type:"".concat(r,"_promo"),traits:{campaign_id:t,campaign_type:r,campaign_name:a,campaign_objective:i}}))};campaignPromos.addEventListener("close",function(e){var n=e.detail;trackCampaignPromoEvent(window.ZION_SDK.ComponentOffScreen,n)}),campaignPromos.addEventListener("impression",function(e){var n=e.detail;trackCampaignPromoEvent(window.ZION_SDK.ComponentOnScreen,n)}),campaignPromos.addEventListener("submission",function(e){var n=e.detail;trackCampaignPromoEvent(window.ZION_SDK.GenericSubmit,n)}),campaignPromos.addEventListener("activation",function(e){var n=e.detail;trackCampaignPromoEvent(window.ZION_SDK.ComponentLoaded,n)}),campaignPromos.getSubscribedNewsletters=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){var n;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,newsletterClient.retrieveSubscriptions({useCache:!0});case 2:return n=e.sent,e.abrupt("return",n.filter(function(e){return e.subscribed}).map(function(e){return e.newsletterName}));case 4:case"end":return e.stop()}},e)})),window.CNN.campaignPromos=campaignPromos,window.dispatchEvent(new CustomEvent("CNN.campaignPromos.loaded"));
}, {"10":10,"24":24,"25":25,"47":47,"249":249}];
window.modules["chartbeat-setup.legacy"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_classCallCheck2=_interopRequireDefault(require(11)),_createClass2=_interopRequireDefault(require(12)),_defineProperty2=_interopRequireDefault(require(18)),_require=require(48),isSection=_require.isSection,SECTIONS=_require.SECTIONS,isStrategyRegistered=!1,CnnChartbeatVideoStrategy=function(){function e(t){var i=this;(0,_classCallCheck2.default)(this,e),(0,_defineProperty2.default)(this,"_cbPlayer",null),(0,_defineProperty2.default)(this,"_currentAdPosition",null),(0,_defineProperty2.default)(this,"_ready",!1),(0,_defineProperty2.default)(this,"_strategyName","CNN"),(0,_defineProperty2.default)(this,"_videoPlayed",!1),(0,_defineProperty2.default)(this,"_videoStartTime",null),(0,_defineProperty2.default)(this,"_viewStartTime",this._now()),(0,_defineProperty2.default)(this,"_onPlaybackReady",function(){i._ready=!0}),(0,_defineProperty2.default)(this,"_onVideoPlaying",function(){i._videoPlayed||(i._videoStartTime=i._now(),i._videoPlayed=!0)}),this._cbPlayer=t,this._subscribeEvents()}return(0,_createClass2.default)(e,[{key:"_now",value:function(){return(new Date).getTime()}},{key:"_subscribeEvents",value:function(){this._cbPlayer.readyState>2&&this._onPlaybackReady(),this._cbPlayer.currentTime>0&&!this._cbPlayer.paused&&!this._cbPlayer.ended&&this._onVideoPlaying(),this._cbPlayer.canplay.add(this._onPlaybackReady),this._cbPlayer.playing.add(this._onVideoPlaying)}},{key:"getAdPosition",value:function(){return this._cbPlayer.getAdPosition()}},{key:"getAutoplayType",value:function(){return this._cbPlayer.getAutoplayType()}},{key:"getBitrate",value:function(){return this._cbPlayer.getBitrate()}},{key:"getContentType",value:function(){return this._cbPlayer.getContentType()}},{key:"getCurrentPlayTime",value:function(){return this._cbPlayer.getCurrentPlayTime()}},{key:"getPlayerType",value:function(){return this._cbPlayer.getPlayerType()}},{key:"getSections",value:function(){return this._cbPlayer.getSections()}},{key:"getState",value:function(){return this._cbPlayer.getState()}},{key:"getStrategyName",value:function(){return this._strategyName}},{key:"getThumbnailPath",value:function(){return this._cbPlayer.getThumbnailPath()}},{key:"getTitle",value:function(){return this._cbPlayer.getTitle()}},{key:"getTotalDuration",value:function(){return this._cbPlayer.getTotalDuration()}},{key:"getVideoPath",value:function(){return this._cbPlayer.getVideoPath()}},{key:"getViewAdPlayTime",value:function(){return this.timeElapsed(this._viewStartTime)}},{key:"getViewPlayTime",value:function(){if(this._videoPlayed)return this.timeElapsed(this._viewStartTime)}},{key:"getViewStartTime",value:function(){return this.timeElapsed(this._viewStartTime)||0}},{key:"isReady",value:function(){return this._ready}},{key:"timeElapsed",value:function(e){return void 0===e?0:this._now()-e}}]),e}();function registerChartbeatVideoStrategy(){!0!==isStrategyRegistered&&(window._cbv_strategies=window._cbv_strategies||[],window._cbv_strategies.push(CnnChartbeatVideoStrategy),isStrategyRegistered=!0)}(0,_defineProperty2.default)(CnnChartbeatVideoStrategy,"verify",function(e){return"function"==typeof e.fromFave}),function(){function e(){window.WM.UserConsent.addScript({src:"//static.chartbeat.com/js/chartbeat_video.js",async:!0},["data-store","content-person","measure-content"])}var t=(window.CNN||{}).contentModel||{},i=(window.CNN||{}).omniture||{};registerChartbeatVideoStrategy();var n,r,a,o,l=window._sf_async_config=window._sf_async_config||{};l.uid=37612,l.domain=(o="cnn.com","es"===(null===(n=window.CNN.contentModel)||void 0===n?void 0:n.brandSite)&&(o="cnnespanol.".concat(o)),-1!=window.location.hostname.indexOf("edition")&&(o="edition.".concat(o)),"prod"!=(null===(r=window.CNN)||void 0===r?void 0:null===(a=r.contentModel)||void 0===a?void 0:a.environment)&&(o="dev.".concat(o)),o),l.sections=t.vertical,l.authors=i.cap_author,l.title=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return isSection(SECTIONS.HOMEPAGE)?e.replace(" Desktop","").replace(" Mobile",""):e}(i.headline),l.flickerControl=!1,l.articleBlockSelector="div.card,div.container__item,p.paragraph>a",l.autoDetect=!1,l.path=function(){var e,t,i=window.location.hostname,n=null===(e=(t=document.querySelector("[rel=canonical]")).getAttribute)||void 0===e?void 0:e.call(t,"href");try{return i+new URL(n).pathname}catch(e){return i+document.location.pathname}}(),window.WM.UserConsent?e():window.addEventListener("user-consent.loaded",e)}(),module.exports={CnnChartbeatVideoStrategy:CnnChartbeatVideoStrategy};
}, {"10":10,"11":11,"12":12,"18":18,"48":48}];
window.modules["relevance-user.legacy"] = [function(require,module,exports){"use strict";var _require=require(420),trackUserViewedContent=_require.trackUserViewedContent;trackUserViewedContent(window.CNN.contentModel);
}, {"420":420}];
window.modules["shared-arkose-newsletters.legacy"] = [function(require,module,exports){"use strict";var nlArkoseEnforcement,daexData,_interopRequireDefault=require(10),_regenerator=_interopRequireDefault(require(25)),_asyncToGenerator2=_interopRequireDefault(require(24)),_require=require(250),createArkoseScript=_require.createArkoseScript,getDaexData=_require.getDaexData,enforcementOnError=_require.enforcementOnError,MAX_RETRY_COUNT=_require.MAX_RETRY_COUNT,retryCount=0,setupCbName="setupArkoseDualNewsletters",nlLoadedEvent="cnn-nl-arkose-loaded",setArkoseConfig=function(e){var r=e.arkoseOnReady,n=e.arkoseOnCompleted,t=e.arkoseOnError,a=e.setBy;nlArkoseEnforcement.setConfig({data:daexData&&{blob:daexData}||{},onReady:function(){r&&r({enforcement:nlArkoseEnforcement})},onCompleted:n,onError:function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return retryCount++,e.next=3,enforcementOnError({enforcementInstance:nlArkoseEnforcement,callbackFnName:setupCbName,retryTimes:retryCount});case 3:retryCount===MAX_RETRY_COUNT&&t&&t();case 4:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()}),window.arkoseEnforcementCNN.lastSetBy=a,nlArkoseEnforcement.reset()},resetArkoseConfig=function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(r){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(daexData){e.next=4;break}return e.next=3,getDaexData("NEWSLETTERS");case 3:daexData=e.sent;case 4:nlArkoseEnforcement?setArkoseConfig(r):(createArkoseScript({srcEnvVar:"ARKOSE_NEWSLETTERS_SRC",callbackFnName:setupCbName,id:"arkose-newsletters-script"}),document.addEventListener(nlLoadedEvent,function(){setArkoseConfig(r)}));case 5:case"end":return e.stop()}},e)}));return function(r){return e.apply(this,arguments)}}();window.arkoseEnforcementCNN={},window[setupCbName]=function(e){nlArkoseEnforcement=e,document.dispatchEvent(new CustomEvent(nlLoadedEvent))},window.arkoseEnforcementCNN.enforcementSetup=resetArkoseConfig;
}, {"10":10,"24":24,"25":25,"250":250}];
window.modules["zeta.legacy"] = [function(require,module,exports){"use strict";var clientHashKey=window.zeta.client_hash_key,partnerHashKey=window.zeta.partner_hash_key,tagShortName=window.zeta.tag_short_name,siteId=window.zeta.site_id,resourceId=window.CNN.contentModel.sourceId,resourceType=window.CNN.contentModel.pageType,section=window.CNN.contentModel.section,cacheBuster=Date.now(),src="https://live.rezync.com/sync?"+"c=".concat(clientHashKey)+"&p=".concat(partnerHashKey)+"&k=".concat(tagShortName)+"&zmpID=".concat(siteId)+"&custom1=".concat(resourceId)+"&custom2=".concat(resourceType)+"&custom3=".concat(section)+"&cache_buster=".concat(cacheBuster),async=!0,ucStates=["data-share","data-sell","data-store","ads-contextual","ads-person-prof","ads-person","content-person-prof","content-person","measure-ads","measure-content","measure-market","product-develop"];function init(){window.WM.UserConsent.addScript({src:src,async:async},ucStates)}window.WM.UserConsent?init():window.addEventListener("user-consent.loaded",init);
}, {}];
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o typeof key === 'string' && key.match(/\.legacy$/))
.forEach((key) => window.require(key));
}
function tryToMount(fn, el, name) {
try {
fn(el); // init the controller
} catch (e) {
const elementTag = el.outerHTML.slice(0, el.outerHTML.indexOf(el.innerHTML));
console.error(`Error initializing controller for "${name}" on "${elementTag}"`, e);
}
}
/**
* mount client.js component controllers
*/
function mountComponentModules() {
Object.keys(window.modules)
.filter((key) => typeof key === 'string' && key.match(/\.client$/))
.forEach((key) => {
let controllerFn = window.require(key);
if (typeof controllerFn === 'function') {
const name = key.replace('.client', ''),
instancesSelector = `[data-uri*="_components/${name}/"]`,
defaultSelector = `[data-uri$="_components${name}"]`,
instances = document.querySelectorAll(instancesSelector),
defaults = document.querySelectorAll(defaultSelector);
for (let el of instances) {
tryToMount(controllerFn, el, name);
}
for (let el of defaults) {
tryToMount(controllerFn, el, name);
}
}
});
}
// Make sure that a `window.process.env.NODE_ENV` is available in the client for any dependencies,
// services, or components that could require it
// note: the `production` value is swapped for the actual environment variable in /lib/cmd/compile/scripts.js
window.process = window.process || {};
window.process.env = window.process.env || {};
if (!window.process.env.NODE_ENV) {
window.process.env.NODE_ENV = 'production';
}
// note: legacy controllers that require legacy services (e.g. dollar-slice) must
// wait for DOMContentLoaded to initialize themselves, as the files themselves must be mounted first
mountLegacyServices();
mountComponentModules();
// ]]