تخطي إلى المحتوى الرئيسي
CNN Arabic

"سأخبر الجميع بالحقيقة".. رونالدو يثير الغموض حول مستقبله مع البرتغال | CNN Arabic | CNN

1 أكتوبر 2026 في 04:05 م
"سأخبر الجميع بالحقيقة".. رونالدو يثير الغموض حول مستقبله مع البرتغال | CNN Arabic | CNN

غادر الأسطورة البرتغالية كريستيانو رونالدو معسكر المنتخب البرتغالي بشكل مفاجئ، مساء الأربعاء، وسط تساؤلات حول مستقبله مع المنتخب، بعد استبعاده من مباراة البرتغال أمام النرويج.

1:01 • مصدر: CNN قد يهمك أيضًا 15 فيديو • مصدر: CNN " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-10-01-images-345774.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-10-01-images-345774.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 01 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2026-10-01T16:05:31Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2026/10/01/v202747-ronaldo-cristiano-leaves-portugal-camp-sport" data-branding-key="" data-video-slug="ronaldo-cristiano-leaves-portugal-camp-sport" data-first-publish-slug="ronaldo-cristiano-leaves-portugal-camp-sport" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-details=""> Video Ad Feedback "سأخبر الجميع بالحقيقة".. رونالدو يثير الغموض حول مستقبله مع منتخب البرتغال 1:01 يُعرض حاليًا • مصدر: CNN • مصدر: CNN " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-09-29-images-345545.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-09-29-images-345545.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 01 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2026-09-29T13:34:22Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2026/09/29/v202607-kok-boru-world-nomad-games-digvid-spc-hnk" data-branding-key="" data-video-slug="kok-boru-world-nomad-games-digvid-spc-hnk" data-first-publish-slug="kok-boru-world-nomad-games-digvid-spc-hnk" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback جثة الماعز هي الكرة.. تعرف على هذه الرياضة العريقة في آسيا 1:16 يُعرض حاليًا • مصدر: CNN • مصدر: CNN " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-09-24-images-345090.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-09-24-images-345090.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 01 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2026-09-24T15:46:36Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2026/09/24/v202338-mas-wrestling-world-nomad-games-digvid-spc-hnk" data-branding-key="" data-video-slug="mas-wrestling-world-nomad-games-digvid-spc-hnk" data-first-publish-slug="mas-wrestling-world-nomad-games-digvid-spc-hnk" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback "المصارعة التقليدية" في قيرغيزستان.. تعرف إلى هذه الرياضة العريقة 1:18 يُعرض حاليًا • مصدر: CNN • مصدر: CNN " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-09-23-images-344997.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-09-23-images-344997.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 01 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2026-09-23T14:09:34Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2026/09/23/v202276-amanda-davies-interview-with-kylian-mbappe" data-branding-key="" data-video-slug="amanda-davies-interview-with-kylian-mbappé" data-first-publish-slug="amanda-davies-interview-with-kylian-mbappé" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback كيليان مبابي لـCNN: أردت بناء إرث جديد من الصفر.. وهذه كانت فرصة مثالية 2:12 يُعرض حاليًا • مصدر: CNN • مصدر: CNN " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-09-18-images-344524.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-09-18-images-344524.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 01 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2026-09-18T06:02:31Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2026/09/18/v201986-real-madrid-stars-controversy-ceuta-shirts" data-branding-key="" data-video-slug="real-madrid-stars-controversy-ceuta-shirts" data-first-publish-slug="real-madrid-stars-controversy-ceuta-shirts" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback نجوم ريال مدريد يثيرون جدلاً واسعاً بسبب قمصانهم التضامنية مع سبتة 1:16 يُعرض حاليًا • مصدر: CNN • مصدر: CNN " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-09-10-images-343856.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-09-10-images-343856.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 01 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2026-09-10T15:33:15Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2026/09/10/v201554-kok-boru-sport-never-heard-world-nomad-game-vrtc-digvid" data-branding-key="" data-video-slug="kok-boru-sport-never-heard-world-nomad-game-vrtc-digvid" data-first-publish-slug="kok-boru-sport-never-heard-world-nomad-game-vrtc-digvid" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback تعرّف إلى رياضة "كوك-بورو" التقليدية.. والتي ربما لم تسمع عنها من قبل 0:46 يُعرض حاليًا • مصدر: CNN • مصدر: CNN بالعربية " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2023-09-27-images-250495.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2023-09-27-images-250495.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 01 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2023-09-27T13:34:08Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2023/09/27/v144843-atw-barca-mallorca" data-branding-key="" data-video-slug="atw-barca-mallorca" data-first-publish-slug="atw-barca-mallorca" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback تشافي وبرشلونة.. أزمة المداورة ودور غندوغان والكوارث الدفاعية 8:15 يُعرض حاليًا • مصدر: CNN بالعربية • مصدر: CNN بالعربية " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2022-07-21-images-217841.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2022-07-21-images-217841.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 01 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2022-07-21T16:34:38Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2022/07/21/v124296-atw-saudi-professional-football" data-branding-key="" data-video-slug="atw-saudi-professional-football" data-first-publish-slug="atw-saudi-professional-football" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback بعد صورة سالم الدوسري وتمثال صلاح.. 5 شروط لاحتراف اللاعب السعودي في أوروبا 8:14 يُعرض حاليًا • مصدر: CNN بالعربية • مصدر: CNN بالعربية " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2019-05-08-images-126950.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2019-05-08-images-126950.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 01 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2019-05-08T22:14:18Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2019/05/08/v74729-after-whistle-liverpool-barcelona" data-branding-key="" data-video-slug="after-the-whistle-liverpool-barcelona" data-first-publish-slug="after-the-whistle-liverpool-barcelona" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback بعد الصافرة.. كيف صنع ليفربول معجزة "أنفيلد" أمام برشلونة؟ 4:26 يُعرض حاليًا • مصدر: CNN بالعربية • مصدر: CNN بالعربية " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2019-07-10-images-131062.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2019-07-10-images-131062.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 01 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2019-07-10T19:26:27Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2019/07/10/v77002-atw-defeating-egypt-in-2019-african-cup-nations" data-branding-key="" data-video-slug="atw-defeating-egypt-in-the-2019-african-cup-of-nations" data-first-publish-slug="atw-defeating-egypt-in-the-2019-african-cup-of-nations" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback بعد الصافرة.. "علاج الأزمة" بعد الوداع المفاجئ لمصر 6:05 يُعرض حاليًا • مصدر: CNN بالعربية • مصدر: CNN بالعربية " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2019-05-15-images-127299.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2019-05-15-images-127299.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 01 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2019-05-15T22:08:33Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2019/05/15/v74947-atw-liverpool-man-city" data-branding-key="" data-video-slug="atw-liverpool-man-city" data-first-publish-slug="atw-liverpool-man-city" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback بعد الصافرة.. لماذا خسر ليفربول لقب الدوري الإنجليزي؟ 4:12 يُعرض حاليًا • مصدر: CNN بالعربية • مصدر: CNN بالعربية " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2019-07-03-images-130588.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2019-07-03-images-130588.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 01 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2019-07-03T20:04:23Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2019/07/03/v76736-atw-warda-egypt-can" data-branding-key="" data-video-slug="atw-warda-egypt-can" data-first-publish-slug="atw-warda-egypt-can" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback بعد الصافرة.. اللاعب سفير بلاده فكيف يجب أن يتصرف؟ 4:13 يُعرض حاليًا • مصدر: CNN بالعربية • مصدر: CNN بالعربية " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2019-04-03-images-124892.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2019-04-03-images-124892.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 01 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2019/04/03/v73504-atw-saudi-clubs-afc" data-branding-key="" data-video-slug="atw-saudi-clubs-afc" data-first-publish-slug="atw-saudi-clubs-afc" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback بعد الصافرة.. لماذا ابتعدت الأندية السعودية عن عرش آسيا؟ 5:45 يُعرض حاليًا • مصدر: CNN بالعربية • مصدر: CNN بالعربية " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2019-10-30-images-138909.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2019-10-30-images-138909.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 01 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2019-10-30T20:03:02Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2019/10/30/v81040-atw-reconciliation-ahli-and-turki-al-sheikh" data-branding-key="" data-video-slug="atw-reconciliation-ahli-and-turki-al-sheikh" data-first-publish-slug="atw-reconciliation-ahli-and-turki-al-sheikh" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback مصالحة الأهلي وتركي آل الشيخ.. كيف يمكن أن تستمر؟ 4:40 يُعرض حاليًا • مصدر: CNN بالعربية • مصدر: CNN " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-09-08-images-343656.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-09-08-images-343656.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 01 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2026-09-08T13:10:59Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2026/09/08/v201423-race-car-driver-saves-competitor-from-burning-wreckage" data-branding-key="" data-video-slug="race-car-driver-saves-competitor-from-burning-wreckage" data-first-publish-slug="race-car-driver-saves-competitor-from-burning-wreckage" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback شاهد.. متسابق يتخلى عن سيارته ويسارع لإنقاذ منافسه من فيراري مشتعلة 1:12 يُعرض حاليًا • مصدر: CNN عرض المزيد أحدث مقاطع الفيديو • فيديو 2:25 فيديو 2:25 Reuters, CNN تخطيط من السعودية وتركيا وباكستان لاجتماع عسكري عاجل.. إليك ما نعلمه 2:25 • فيديو 1:45 فيديو 1:45 CNN جيفري هينتون يوضح لـCNN سبب معارضته للاستخفاف بسيناريو نهاية العالم 1:45 • فيديو 1:28 فيديو 1:28 KATHI ZELLWEGER لقطات تُعرض لأول مرة.. شاهد الحياة الخفية داخل كوريا الشمالية 1:28 • فيديو 0:30 فيديو 0:30 JOHNNY FLORES تحذير من فيضانات مفاجئة في نيو مكسيكو الأمريكية وإعلان حالة الطوارئ 0:30 • فيديو 0:19 فيديو 0:19 CNN البابا يرد على سؤال مراسل CNN حول حظر ترامب الإعلامي 0:19 • فيديو 1:16 فيديو 1:16 CNN رئيس إنفيديا لـCNN: إذا كان الذكاء الاصطناعي غير آمن فلا تطلقوه 1:16 • فيديو 0:46 فيديو 0:46 getty images سحب لحوم غير مفحوصة من الأسواق الأمريكية.. وهذا ما يثير القلق 0:46 • فيديو 0:23 فيديو 0:23 fox news بزشكيان: إيران سترد "بقوة وحزم" إذا استمرت الحرب 0:23 • فيديو 0:28 فيديو 0:28 reuters احتجاز ممثلتين أمريكيتين خلال احتجاج ضد نتنياهو قرب الأمم المتحدة 0:28 فيديو بريد الأخبار العاجلة الشرق الأوسط السعودية مصر الإمارات إيران الخليج شرق المتوسط شمال إفريقيا العالم الولايات المتحدة روسيا الصين أوروبا إفريقيا سياحة وجهات سياحية مذاقات فنادق مغامرات رياضة الدوري الإنجليزي الدوري الإسباني الدوري السعودي الدوري المصري علوم وصحة غذاء لياقة بدنية صحة نفسية أمراض استدامة اكتشافات علمية منوعات أخبار الفن مشاهير مسلسلات ستايل فنون أزياء وجمال تصاميم وعمارة فخامة سبوت لايت ريادة المستقبل أنغولا الآن نداء الأرض أسواق الشرق الأوسط حكايتها متفرقات CNN الاقتصادية .cls-1 { fill: #fff; stroke-width: 0px; } رياضة فيديو تابعونا عبر سياسة الخصوصية شروط الخدمة خيارات الإعلانات للإعلان من نحن © 2026 Cable News Network. A Warner Bros. Discovery Company. All Rights Reserved.

Download the CNN app Scan the QR code to download the CNN app on Google Play.

Download the CNN app Scan the QR code to download the CNN app from the Apple Store.

// window.modules=[]; /* window.modules["1"] */ "use strict";(self.modules=self.modules||[]).push([["1"],{1:(e,t,n)=>{let{getSiteLanguage:o,getDirection:i}=n("131"),{getCookie:r}=n("40"),l=n("24").get("APP_VIEW_COOKIE"),s=()=>window?.CNN?.contentModel,a=()=>{let e=window.WM&&window.WM.UserConsent;return e&&"function"==typeof e.getGeoCountry?e.getGeoCountry():void 0},d=async(e,t)=>{let{components:n}=e,o={};for(let[i,r]of Object.entries(e.page.data))o[i]=Array.isArray(r)?await Promise.all(r.map(async e=>n[e]?{_ref:e,...await t(n[e])}:{_ref:e})):r;return o},c="tve-carousel_dtc";e.exports={getContentModel:s,getLanguage:()=>o(window.kiln?.locals?.site?.site||s()?.brandSite),getQuery:e=>{let t=window.location.search.slice(1).split("&").map(e=>e.split("=")).find(([t])=>t===e);return t&&t[1]},convertAuthType:e=>e?("string"==typeof e&&(e=e.split(",").map(e=>e.trim())),e):[],isInternalURL:e=>{try{let t=decodeURIComponent(e);return/(https?:\/\/(.+?\.)?(cnn\.com|localhost|cnn-cms\.net)(\/[A-Za-z0-9\-._~:/?#[\]@!$&'()*+,;=]*)?)|(^\/(?!\/)([A-Za-z0-9\-._~:/?#[\]@!$&'()*+,;=]*\/?))/.test(t)}catch(e){return!1}},scrollIntoView:e=>{let t=e.getBoundingClientRect().top,n=document.querySelector(".header__inner").getBoundingClientRect().bottom;window.scrollTo({top:t-n,behavior:"smooth"})},isInGdprRegion:()=>{let e=window.WM&&window.WM.UserConsent;return!!(e&&e.isInGdprRegion&&"function"==typeof e.isInGdprRegion)&&e.isInGdprRegion()},getGeoCountry:a,getGeoState:()=>{let e=window.WM&&window.WM.UserConsent;return e&&"function"==typeof e.getGeoState?e.getGeoState():void 0},checkGeoCountry:e=>a()===e,getGeoDataCookie:()=>{let e=r("geoData");if(!e)return null;let t=e.split("|");if(t.length"?"===e?"":e,o=e=>n(e).toUpperCase();return{city:n(t[0]),region:o(t[1]),postCode:o(t[2]),country:o(t[3]),latitude:n(t[7]),longitude:n(t[8])}},getBrowser:()=>-1!==navigator.userAgent.indexOf("Chrome")?"Chrome":-1!==navigator.userAgent.indexOf("Opera")?"Opera":-1!==navigator.userAgent.indexOf("Safari")?"Safari":-1!==navigator.userAgent.indexOf("Firefox")?"Firefox":-1!==navigator.userAgent.indexOf("MSIE")?"Internet Explorer":"Browser not detected",addScriptTag:function(e={},t=!1){let n=document.createElement("script"),o={language:"javascript",type:"text/javascript",...e};return Object.keys(o).forEach(e=>{if("data"===e){let{data:e}=o;Object.keys(e).forEach(t=>{e[t]&&n.setAttribute(`data-${t}`,e[t])})}else n[e]=o[e]}),t?document.body.prepend(n):document.head.append(n),n},isEditionPage:function(){return window.CNN.contentModel?.edition},isEspanolPage:function(){return window.CNN.contentModel?.brandSite===window.CNN.helpers.SITES.espanol},isDomesticPage:function(){return window.CNN.contentModel?.brandSite===window.CNN.helpers.SITES.cnn},isArabicPage:function(){return window.CNN.contentModel?.brandSite===window.CNN.helpers.SITES.arabic},buildClientPage:d,swapElementClass:(e,t,n)=>{e&&(n?e.classList.add(t):e.classList.remove(t))},getZaid:({throwIfMissing:e=!1}={})=>{let t=JSON.parse(localStorage.getItem("zion.zaid")||"{}");if(!t.id&&e)throw Error("Zaid not found in local storage");return t.id||null},isRtl:function(){return"rtl"===i(s())},delay:e=>new Promise(t=>setTimeout(t,e)),TVECarouselScrollStrategy:class{constructor(e,t=300){this.scrollIt=e.contains(c)?this.smoothScrolling(t):this.defaultScrolling}defaultScrolling(e,t){e.scrollBy({left:t,behavior:"smooth"})}smoothScrolling(e){return(t,n)=>{let o=t.scrollLeft,i=performance.now(),r=l=>{let s=Math.min((l-i)/e,1);t.scrollLeft=o+n*(s{let n=e?.querySelector(`.${t} .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")},isAppWebView:()=>!!(l&&r(l)),getAppWebViewPlatform:()=>l?r(l):null}}}]); /* window.modules["2"] */ "use strict";(self.modules=self.modules||[]).push([["2"],{2:(i,s,E)=>{let{PAGE_TYPES:e}=E("12");function T(i){return(Array.isArray(i)?i:[i]).includes(window.CNN.contentModel?.pageType||window.CNN.helpers?.PAGE_TYPES.UNKNOWN)}i.exports={isArticle:()=>T(e.ARTICLE),isAudio:()=>T(e.AUDIO),isCustom:()=>T(e.CUSTOM),isDTC:()=>T(e.DTC),isCommunityEvent:()=>T(e.COMMUNITY_EVENT),isElection:()=>T(e.ELECTION),isFeed:()=>T(e.FEED),isGallery:()=>T(e.GALLERY),isInteractive:()=>T(e.INTERACTIVE),isLivestream:()=>T(e.LIVESTREAM),isVerticalLivestream:()=>T(e.VERTICAL_LIVESTREAM),isLivestory:()=>T(e.LIVESTORY),isSubscriptionPage:()=>T(e.SUBSCRIPTION_PAGE),isNewsletterLandingPage:()=>T(e.NEWSLETTER_LANDING_PAGE),isProfile:()=>T(e.PROFILE),isScratchpad:()=>T(e.SCRATCHPAD),isSearch:()=>T(e.SEARCH),isSection:()=>T(e.SECTION),isSeries:()=>T(e.SERIES),isStatic:()=>T(e.STATIC),isTVE:()=>T(e.TVE),isTVEEpisode:()=>T(e.TVE_EPISODE),isTVEFilm:()=>T(e.TVE_FILM),isTVESeries:()=>T(e.TVE_SERIES),isUnknown:()=>T(e.UNKNOWN),isUserManagement:()=>T(e.USER_MANAGEMENT),isVerticalVideo:()=>T(e.VERTICAL_VIDEO),isVideo:()=>T(e.VIDEO),isNewsletterPage:()=>T(e.NEWSLETTER_PAGE),isVitalAction:()=>T(e.VITAL_ACTION),isVitalStory:()=>T(e.VITAL_STORY),isPageType:T,PAGE_TYPES:e}}}]); /* window.modules["3"] */ "use strict";(self.modules=self.modules||[]).push([["3"],{3:e=>{e.exports=new ResizeObserver(e=>{let t={"EQ-breakpoint__small":480,"EQ-breakpoint__medium":960,"EQ-breakpoint__large":1280,"EQ-breakpoint__xtralarge":1360};e.forEach(function(e){let a=e.target.dataset.breakpoints?JSON.parse(e.target.dataset.breakpoints):t;Object.keys(a).forEach(t=>{let s=a[t];e.contentRect.width>=s?e.target.classList.add(t):e.target.classList.remove(t)})})})}}]); /* window.modules["4"] */ "use strict";(self.modules=self.modules||[]).push([["4"],{4:e=>{function r({videoResourceUri:e}){let r=document.querySelector(`[data-uri='${e}'] .video-resource__cover`);r&&r.classList.add("hide")}function o(e,o,t){!(e.target&&Array.from(e.target.classList).some(e=>e.includes("__source-url")))&&(r({videoResourceUri:o.dataset.uri}),"function"==typeof window.FAVE?.player?.getInstance&&"player-"!==t&&window.FAVE.player.getInstance(t).play())}e.exports={handleVideoCoverClick:o,hideVideoCover:r,initVideoCover:function(e){let r=e.querySelector(".video-resource__cover"),t=e.querySelector(".video-resource")||e.querySelector(".video-player"),i=`player-${t?t.dataset.uri:""}`;r?.addEventListener("click",r=>o(r,e,i))},removeVideoCoverSpinner:function({videoResourceUri:e}){let r=document.querySelector(`[data-uri='${e}'] .video-resource__playhead`);r&&r.classList.remove("spinner")}}}}]); /* window.modules["5"] */ "use strict";(self.modules=self.modules||[]).push([["5"],{5:e=>{let t=e=>{let t=e.search(/(\s\S*)$/);return e.substring(0,t)},n=(e,t,n)=>{let r=Math.ceil(e.length/t*n+50);return e.substring(0,r)};e.exports={lineClamp:(e,r,i)=>{let s=window.getComputedStyle(e),o=r*Math.round(parseFloat(s.lineHeight))+(parseInt(s?.paddingTop||0)+parseInt(s?.paddingBottom||0))+(parseInt(s?.marginTop||0)+parseInt(s?.marginBottom||0)),l=e.offsetHeight;if(!o||!l||l2*o&&(e.innerText=n(e.innerText,l,o),l=e.offsetHeight);let a=0;for(;l>o&&ao&&a{let{PAGE_VARIANTS:r}=t("297");e.exports={isPageVariant:function(e){return(Array.isArray(e)?e:[e]).includes(window.CNN.contentModel?.templateType||window.CNN.helpers?.PAGE_VARIANTS.UNKNOWN)},PAGE_VARIANTS:r}}}]); /* window.modules["7"] */ "use strict";(self.modules=self.modules||[]).push([["7"],{7:(e,s,n)=>{let{SECTIONS:o}=n("328");e.exports={isSection:function(e){return(Array.isArray(e)?e:[e]).includes(window.CNN.contentModel?.section||window.CNN.helpers?.SECTIONS.UNKNOWN)},SECTIONS:o}}}]); /* window.modules["8"] */ "use strict";(self.modules=self.modules||[]).push([["8"],{8:(e,t,n)=>{let d=n("24"),{ShowAdFeedbackDispatcher:a}=n("530"),{AdDataType:s}=n("537"),i="ad-feedback__modal-overlay",r=d.get("ENABLE_AD_FEEDBACK_DISPLAY_ADS")&&null!==document.querySelector(`#${i}`),o=d.get("ENABLE_AD_FEEDBACK_VIDEO_ADS")&&null!==document.querySelector(`#${i}`),l=new a,c=window.WM.UserConsent.isInGdprRegion()&&!window.WM.UserConsent.inUserConsentState(["ads-contextual","ads-person-prof","ads-person"]);function u(e){let t=e.classList.contains("ad-feedback-link")?e:e.querySelector(".ad-feedback-link");return t&&(t.setAdIdentifier=function(e){t.dataset.adIdentifier=e},t.getAdIdentifier=function(){return t.dataset.adIdentifier}),t}e.exports={getAdFeedbackLink:u,initAdFeedbackLink:function(e){let t=u(e);if(!c&&t&&(r&&"DISPLAY"===t.dataset.adType||o&&"VIDEO"===t.dataset.adType))return t.addEventListener("click",()=>{let e=t.dataset.adType,n=t.getAdIdentifier();e=Object.keys(s).includes(e)?s[e]:s.DISPLAY,l.showFeedback({adType:e,adIdentifier:n})}),t;e.querySelector(".ad-feedback-link")?.remove()},shouldHideAdFeedbackLink:c,ENABLE_AD_FEEDBACK_DISPLAY_ADS:r,ENABLE_AD_FEEDBACK_VIDEO_ADS:o}}}]); /* window.modules["9"] */ "use strict";(self.modules=self.modules||[]).push([["9"],{9:e=>{let t=1,s=({type:e,data:o,delay:r=t,attempt:a=0,errorMessage:l=""})=>{if(a>30){console.warn("Could not send out analytics beacon.",l);return}try{window.trackMetrics({type:e,data:o})}catch(l){let t=a+1;setTimeout(()=>s({type:e,data:o,delay:r,attempt:t,errorMessage:l.message}),1e3*r)}};e.exports={trackMetrics:s}}}]); /* window.modules["10"] */ "use strict";(self.modules=self.modules||[]).push([["10"],{10:(e,n,t)=>{let o=[],{isInternalURL:i}=t("1"),r=t("124"),a={componentOnScreen:"ComponentOnScreen",componentOffScreen:"ComponentOffScreen",componentLoaded:"ComponentLoaded",genericClick:"GenericClick",genericLinkClick:"GenericLinkClick",genericSubmit:"GenericSubmit",paymentTransactionCompleted:"PaymentTransactionCompleted",paymentTransactionFailed:"PaymentTransactionFailed",scrollDepth:"ScrollDepth",genericMetric:"GenericMetric",pageview:"Pageview"},c=e=>e.map(({name:e,data:n})=>new window.ZION_SDK[e](n)),l=()=>{let e=window.zion_analytics;if(!e){window.addEventListener("zion.loaded",l,{once:!0});return}o.splice(0).forEach(({eventArgs:n,eventName:t,eventVersion:i,contexts:r})=>{let a=2===i?window.ZION_SDK?.V2:window.ZION_SDK;if(!a){o.push({eventArgs:n,eventName:t,eventVersion:i,contexts:r});return}e.track(new a[t](...n),...c(r))}),o.length>0&&window.addEventListener("zion.loaded",l,{once:!0})},_=(e,n,t=1,i=[],r)=>{let a=window.zion_analytics,_=2===t?window.ZION_SDK?.V2:window.ZION_SDK,d=r?[e,r]:[e];a&&_?a.track(new _[n](...d),...c(i)):(0===o.length&&window.addEventListener("zion.loaded",l,{once:!0}),o.push({eventArgs:d,eventName:n,eventVersion:t,contexts:i}))},d={threshold:"0.2",root:null,rootMargin:"0px"},s=e=>(Object.keys(e).forEach(n=>{let t=e[n];(""===t||null==t)&&delete e[n]}),e),p=[0,25,50,75,100],m={cms_id:"Cms_id",canonical_url:"Canonical_url",zone_id:"Zone_id",zone_name:"Zone_name",zone_type:"Zone_type",zone_position_number:"Zone_position_number",zone_total_number:"Zone_total_number",product_zone_position_number:"Product_zone_position_number",product_zone_total_number:"Product_zone_total_number",combined_zone_position_number:"Combined_zone_position_number",combined_zone_total_number:"Combined_zone_total_number",stack_id:"Stack_id",stack_name:"Stack_name",stack_type:"Stack_type",stack_position_number:"Stack_position_number",stack_total_number:"Stack_total_number",stacks_identifier:"Stacks_identifier",stack_position:"Stack_position",container_id:"Container_id",container_name:"Container_name",container_type:"Container_type",container_position_number:"Container_position_number",container_total_number:"Container_total_number",container_page_position_number:"Container_page_position_number",container_page_total_number:"Container_page_total_number",card_id:"Card_id",card_name:"Card_name",card_type:"Card_type",card_position_number:"Card_position_number",card_total_number:"Card_total_number",card_link_type:"Card_link_type",card_label:"Card_label",component_id:"Component_id",component_type:"Component_type",component_text:"Component_text",component_name:"Component_name",feature:"Feature",action:"Action",link_page_stellar_id:"Link_page_stellar_id",tenant:"Tenant",link_position:"Link_position",link_total:"Link_total",link_stellar_page_id:"Link_stellar_page_id",location:"Location",page_stellar_id:"Page_stellar_id",stellar_id:"Stellar_id",nav_location:"Nav_location",nav_link_text:"Nav_link_text",nav_version:"Nav_version"},u=e=>{if(!e)return{};let n={};for(let[t,o]of Object.entries(m)){let i=e.getAttribute(`data-zjs-${t}`);null!==i&&""!==i&&(n[o]=i)}return n};e.exports={addOnScreenAnalytics:(e,n=d,t={},o=_,i)=>{let r={},c=0,l=new IntersectionObserver(e=>e.forEach(({isIntersecting:e,target:n})=>{let _=n.id||t.component_id,d={component_id:_,component_type:t.component_type||"section",...t};e&&!r[_]?r[_]=setTimeout(()=>{o(d,a.componentOnScreen),c+=1},1e3):!e&&r[_]&&(clearTimeout(r[_]),delete r[_],o(d,a.componentOffScreen),i&&c>=i&&l.disconnect())}),n);return l.observe(e),l.cancelPending=()=>{Object.keys(r).forEach(e=>{clearTimeout(r[e]),delete r[e]})},l},addParagraphScrollDepthAnalytics:(e,n,t={})=>{let o=e?e.querySelectorAll(n):[],i=o.length;if(!i)return;let r=Math.round(.25*i),c=Math.round(.5*i),l=Math.round(.75*i),d=new WeakMap,s=[...p],m=e=>e===i||1===i?100:e===l?75:e===c?50:e===r?25:1===e?0:null,u=e=>{s.filter(n=>n{_({scroll_percentage:e,...t},a.scrollDepth)}),s=s.filter(n=>n>e)},w=new IntersectionObserver(e=>{e.forEach(({isIntersecting:e,target:n})=>{if(!e)return;let t=m(d.get(n));null!==t&&u(t),w.unobserve(n),s.length||w.disconnect()})});o.forEach((e,n)=>{d.set(e,n+1),w.observe(e)})},addScrollDepthAnalytics:(e,n,t={},o=!0)=>{Object.keys(n).forEach(i=>{let c=n[i],l={scroll_percentage:100*c,...t};r(e,c,i,()=>{_(o?l:t,a.scrollDepth)})})},trackScrollDepth:(e={})=>{_(e,a.scrollDepth)},addComponentLoadedAnalytics:(e={})=>{let{source:n,componentType:t,componentId:o,traits:r={}}=e,c=window.CNN&&window.CNN.contentModel,l=window?.WM?.referrer||document.referrer;_({component_id:o,component_type:t,traits:{source_id:c&&c.sourceId||void 0,source:n||i(l)&&l||void 0,...r}},a.componentLoaded)},addPageviewAnalytics:(e={})=>{let{traits:n={}}=e,t=window.CNN&&window.CNN.contentModel||{},o=window.CNN?.metadata?.content?.topics?.tags||(t.pageTags?t.pageTags.split(","):[]);_({canonicalUrl:t.canonicalUrl,traits:{event_source:t.techStack||"stellar",page_variant:t.templateType||"",raw_url:window.location.href,cms_id:t.cmsId||"",page_type:t.pageType||"",edition:window.CNN?.helpers?.isEditionPage(),section:t.section||"",subsection:t.subsection||"",section_level_3:t.subsubsection||"",experience_type:"cnn_core",page_tags:o,is_content_loaded:!1,is_dynamic_pageview:!1,...n},sourceId:t.sourceId||""},a.pageview,1,[{name:"ConsentContext",data:{consent_state:window.WBD?.UserConsent?.getSimpleConsentState()||{}}}])},addGenericSubmitAnalytics:(e={})=>{let{componentType:n,componentId:t,traits:o={},source:r}=e,c=s(o),l=window.CNN?.contentModel,d=window?.WM?.referrer||document.referrer,p=document.querySelector("link[rel='canonical']"),m=l&&l.canonicalUrl||p&&p.href||window.location.href;_({component_id:t,component_type:n,traits:{source_id:l?.sourceId,source:r||i(d)&&d||void 0,canonical_url:m,brand:"CNN",cms_id:l?.cmsId,page_type:l?.pageType,page_variant:l?.templateType,...c}},a.genericSubmit)},addGenericClickAnalytics:(e={})=>{let{componentType:n,componentId:t,traits:o={},source:r}=e,c=window.CNN&&window.CNN.contentModel,l=window?.WM?.referrer||document.referrer,d=document.querySelector("link[rel='canonical']"),s=c&&c.canonicalUrl||d&&d.href||window.location.href;_({component_id:t,component_type:n,traits:{source_id:c?.sourceId,source:r||i(l)&&l||void 0,canonical_url:s,cms_id:c?.cmsId,brand:"CNN",...o}},a.genericClick)},addGenericLinkClickAnalytics:e=>{e&&_({href:e.href,type:"A",customAttributes:u(e)},a.genericLinkClick)},addGenericMetricAnalytics:(e,n=[])=>{let t=new Date().toString();_({metric_source:e,metrics:n.map(e=>({...e,metric_timestamp:t}))},a.genericMetric,2)},addZJSClickAttributes:(e,n={})=>{if(e){for(let t in e.setAttribute("data-zjs","click"),n)if(Object.hasOwnProperty.call(n,t)){let o=n[t];e.setAttribute(`data-zjs-${t}`,o)}}},getClickActionType:e=>e?.pointerType==="touch"?"tap":"click",getGenericLinkClickCustomAttributes:u,addPaymentTransactionEvent:(e={},n=!0)=>{let{source:t,...o}=e,r=window.CNN&&window.CNN.contentModel,c=window?.WM?.referrer||document.referrer,l=document.querySelector("link[rel='canonical']"),d=r&&r.canonicalUrl||l&&l.href||window.location.href;_({source_id:r&&r.sourceId||void 0,source:t||i(c)&&c||void 0,canonical_url:d,brand:"CNN",...o},n?a.paymentTransactionCompleted:a.paymentTransactionFailed)},addSearchTermTracking:({search_term:e,search_results_number:n,search_category:t,search_section:o,search_type:i,sort_type:r})=>{_({canonical_url:window.CNN?.contentModel?.canonicalUrl,search_text:e,search_type:"",traits:{search_term:e,search_results_number:n,search_category:t,search_section:o,sort_type:r,search_type:i}},"Search")},zionEventHandler:_,DEFAULT_OBSERVER_API_SETTINGS:d}}}]); /* window.modules["11"] */ "use strict";(self.modules=self.modules||[]).push([["11"],{11:e=>{let t=window.CNN.isElevated?768:960,s=window.CNN.isElevated?1024:1280,i=window.CNN.isElevated?1280:1360,a=e=>window.matchMedia(`(max-width: ${e-1}px)`),n={},r=(e,t,s={})=>{let i=s.last||!1;if(s.onlyOnce){let s=a(e).matches;return"function"==typeof t&&t(s),s}return n[e]||(n[e]={functions:[],lastFunctions:[],mediaQuery:a(e)},n[e].mediaQuery.addListener(t=>{n[e].functions.forEach(e=>{try{e(t.matches)}catch(e){console.error(e)}}),n[e].lastFunctions.forEach(e=>{try{e(t.matches)}catch(e){console.error(e)}})})),n[e][i?"lastFunctions":"functions"].push(t),t(n[e].mediaQuery.matches),n[e].mediaQuery.matches};e.exports={VIEWPORT_SITE_MIN_WIDTH:300,VIEWPORT_SITE_MAX_WIDTH:1440,VIEWPORT_SMALL_WIDTH:480,VIEWPORT_MEDIUM_WIDTH:t,VIEWPORT_MEDIUM_WIDTH_NON_ELEVATE:960,VIEWPORT_LARGE_WIDTH:s,VIEWPORT_EXTRA_LARGE_WIDTH:i,viewportListener:r,smallMaxWidthListener:(e,t)=>r(480,e,t),mediumMaxWidthListener:(e,s)=>r(t,e,s),largeMaxWidthListener:(e,t)=>r(s,e,t),extraLargeMaxWidthListener:(e,t)=>r(i,e,t),isVisibleViewport:(e,t)=>("desktop"!==e||!t)&&!("mobile"===e&&!t)}}}]); /* window.modules["12"] */ "use strict";(self.modules=self.modules||[]).push([["12"],{12:(e,E,i)=>{let{isOfType:t}=i("13"),T={ARTICLE:"article",AUDIO:"audio",COMMUNITY_EVENT:"community-event",CUSTOM:"custom",DTC:"dtc",ELECTION:"election-center",FEED:"feed",GALLERY:"gallery",INTERACTIVE:"interactive",LIVESTORY:"live-story",LIVESTREAM:"livestream",SUBSCRIPTION_PAGE:"subscription-page",NEWSLETTER_PAGE:"newsletter-studio",NEWSLETTER_LANDING_PAGE:"newsletter-landing-page",PROFILE:"profile",SCRATCHPAD:"scratchpad",SEARCH:"search",SECTION:"section",STATIC:"static",TVE:"tve",SERIES:"series",TVE_EPISODE:"tve-episode",TVE_FILM:"tve-film",TVE_SERIES:"tve-series",UNKNOWN:"",USER_MANAGEMENT:"user-management",VERTICAL_LIVESTREAM:"vertical-livestream",VERTICAL_VIDEO:"vertical-video",VIDEO:"video",VITAL_ACTION:"vital-action",VITAL_STORY:"vital-story"};Object.freeze(T);let s={ELECTION:"Election Center",LIVESTORY:"Live Story",LIVESTREAM:"Livestream",VERTICAL_LIVESTREAM:"Vertical Livestream"};function I(e,E=T.UNKNOWN){return e&&e.pageType||E}function r(e,E){return t(E,I(e))}Object.freeze(s),e.exports={PAGE_TYPES:T,PAGE_TYPES_LABELS:s,getPageType:I,isPageType:r,isArticle:e=>r(e,T.ARTICLE),isAudio:e=>r(e,T.AUDIO),isCommunityEvent:e=>r(e,T.COMMUNITY_EVENT),isCustom:e=>r(e,T.CUSTOM),isDTC:e=>r(e,T.DTC),isElection:e=>r(e,T.ELECTION),isFeed:e=>r(e,T.FEED),isGallery:e=>r(e,T.GALLERY),isInteractive:e=>r(e,T.INTERACTIVE),isLivestory:e=>r(e,T.LIVESTORY),isLivestream:e=>r(e,T.LIVESTREAM),isSubscriptionPage:e=>r(e,T.SUBSCRIPTION_PAGE),isNewsletterPage:e=>r(e,T.NEWSLETTER_PAGE),isNewsletterLandingPage:e=>r(e,T.NEWSLETTER_LANDING_PAGE),isProfile:e=>r(e,T.PROFILE),isScratchpad:e=>r(e,T.SCRATCHPAD),isSearch:e=>r(e,T.SEARCH),isSection:e=>r(e,T.SECTION),isStatic:e=>r(e,T.STATIC),isTVE:e=>r(e,T.TVE),isSeries:e=>r(e,T.SERIES),isTVEEpisode:e=>r(e,T.TVE_EPISODE),isTVEFilm:e=>r(e,T.TVE_FILM),isTVESeries:e=>r(e,T.TVE_SERIES),isUnknown:e=>r(e,T.UNKNOWN),isUserManagement:e=>r(e,T.USER_MANAGEMENT),isVerticalLivestream:e=>r(e,T.VERTICAL_LIVESTREAM),isVerticalVideo:e=>r(e,T.VERTICAL_VIDEO),isVideo:e=>r(e,T.VIDEO),isVitalAction:e=>r(e,T.VITAL_ACTION),isVitalStory:e=>r(e,T.VITAL_STORY)}}}]); /* window.modules["13"] */ "use strict";(self.modules=self.modules||[]).push([["13"],{13:(e,t,r)=>{var n=r("387");let i=r("554"),o=r("556"),a=r("108"),s=r("360"),u=r("424"),l=r("555"),c=r("376"),f=r("453"),d=r("370"),m=r("588"),g=r("260"),h=/((http|ftp|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)*))([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-]))/gi;function y(e){return i(e)||o(e)?a(e):s(e)?0===e.length:!!(u(e)||l(e))}let p=e=>{let t;if("string"!=typeof e)return e;let r=e;do t=r,r=r.replace(/]+>/g,"");while(r!==t);return r},w=new Intl.Segmenter("en",{granularity:"sentence"}),$=e=>"object"==typeof e?e.topicId:e,T=e=>Array.isArray(e)?e:[e],S=e=>e&&Math.ceil(e/225);async function _(e,t,r=1/0){if(rasync()=>{for(let o=r;oo(t)());return await Promise.all(a),n}let b="America/New_York";e.exports={has:function(e){return!y(e)},isFieldEmpty:y,stripHtml:p,wait:function(e){return t=>new Promise(r=>setTimeout(()=>r(t),e))},convertToBoolean:function(e){try{return!0===e||1===e||"true"===e.toLowerCase()}catch(e){return!1}},isPublishing:function(e){return e instanceof Object&&e&&null!=e.publishUrl},isServerSide:function(){return!!(n.versions&&n.versions.node)},getTopicId:$,getCepTopics:()=>{let{cep_topics:e}=window.CNN;if(!e)return{};let t={};return Object.keys(e).forEach(r=>{r.startsWith("cep_")?e[r].forEach(e=>t[$(e)]=r):t[r]=e[r]}),t},isValidForDefaultSectionSetting:function(e){return["article","gallery","video","live-story","newsletter-studio"].includes(e)},componentChanged:(e,t,r=[])=>(r=r.concat(["__meta","__fields"]),!f(c(d(e),r),c(d(t),r))),makeLinks:e=>e.replace(h,'$1'),ensureArray:T,isOfType:(e,t)=>T(e).includes(t),getHost:e=>e?.site?.host||n.env.DEFAULT_SITE_HOST,getReadTimeAsString:e=>e&&`${S(e)}`,getReadTimeAsNumber:S,getReadTimeAsDuration:e=>{if(e)return m({minutes:Math.floor(e/225),seconds:Math.floor(60*e/225%60)})},isRegistrationPaywallExempt:e=>{let t=["cnn-underscored"];return!!["gallery_unfurled","gallery_leaf"].includes(e.additionalType)||!!e.sections&&e.sections.length>0&&e.sections.some(e=>t.includes(e))},getReadTimeText:function(e,t){let r=Number(t)||0;return"ar"===e?1===r?g(e,"minute read"):2===r?g(e,"two minute read"):r>2&&re?.find(e=>e[t]===r),toObject:({hash:e})=>e,getNewsletterSlugDatePart:function(e=new Date,t=b){let r=e instanceof Date&&!isNaN(e.getTime())?e:new Date,n=e=>{let t=new Intl.DateTimeFormat("en-US",{timeZone:e,year:"2-digit",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(r).reduce((e,{type:t,value:r})=>(e[t]=r,e),{}),n="24"===t.hour?"00":t.hour;return`${t.month}-${t.day}-${t.year}-${n}${t.minute}${t.second}`};try{return n(t)}catch(e){return n(b)}},takeFirstSentence:function(e){if(!e||"string"!=typeof e)return"";let t=p(e).trim();if(!t)return"";let r="";for(let{segment:e}of w.segment(t))if(r+=e,!/^\S+\.$/.test(e.trim()))return r.trim();return t}}}}]); /* window.modules["14"] */ "use strict";(self.modules=self.modules||[]).push([["14"],{14:(e,t,i)=>{let{isPublished:a,getComponentInstance:r,replaceAllVersions:n}=i("127"),l=i("24"),{CONTENT_TYPES:s}=i("326"),c=i("113"),{getPageType:o,isLivestory:u,isVerticalVideo:p}=i("12"),{getSite:d,SITES:v}=i("131"),{getConfigObject:m}=i("546"),f=l.get("FAVE_TOP_PLAYER"),E=l.get("FAVE_MEDIA_PLAYER"),{CONDITION:T,match:A}=i("409"),y=i("409"),L={"Any of":T.SHOULD,"All of":T.MUST,"None of":T.MUST_NOT},U={CLIP_HORIZONTAL:"Clip_Horizontal",CLIP_VERTICAL:"Clip_Vertical",LIVE:"Live",FAST:"Fast",TVE:"tve",UK_LIVE:"uklive"},_={SCROLL:"scroll",DISABLED:"disabled",MUTED:"muted",UNMUTED:"unmuted"},b={TVE:"tve",LIVEAUTH:"liveAuth",DTC:"dtc"},h={CONTINUOUS:"continuous",CONTINUOUS_AUTOPLAY:"continuous_autoplay"},V={[h.CONTINUOUS]:{autoplay:!1,autoplayType:_.DISABLED},[h.CONTINUOUS_AUTOPLAY]:{autoplay:!0,autoplayType:_.MUTED}},I="live3581c2bf4739e4d8fc1dd52b96e668aa7d00b273",g="livecd0ee653fc42a51546445d02a6c38769c47ab454",P="live57e3b384d5e1130303d139f49c6f362b574d475c",S="livedee0fd3a7f81d264969c7f6f911079c3bd715cd1",D="live4d61573b7a0615fa6cfeca73f1df9560efc93803",$="cvplive/cvpstreamcore",O="cvplive/cvpstreampremium",C="cvplive/cvpstream",M="cvplive/cnndigitalchannel",N=RegExp(`^(${$}[0-7]|${C}[0-4]|${M}[0-4])$`),R=RegExp(`^(${$}[0-7]|${O}[1-9]|${C}[0-9]|${M}[0-9])$`),F=RegExp(`^(live.*|${$}[0-7]|${O}[1-9]|${C}[0-9]|${M}[0-9])$`),B=[S,D,g,P,I,"cvplive/cvpstream5","cvplive/cvpstream6","cvplive/cvpstream7","cvplive/cvpstream8","cvplive/cvpstreampremium1","cvplive/cvpstreampremium2","cvplive/cvpstreampremium3","cvplive/cvpstreampremium4","cvplive/cvpstreampremium5","cvplive/cvpstreampremium6","cvplive/cvpstreampremium7","cvplive/cvpstreampremium8","cvplive/cvpstreampremium9"],k=[I,"live8ca99a1f6a44fbedeb7077bc5064d0f6d7ebde99",g,P,S,"live6ee8f5d6b1571361b2f6595826fc04baa6d94e75",D,"live53bebe11f915d66c95c604bdf44d968a31b2889e"];function Y(e){return e===s.channel}function x(e,t){return e.replace(r(e),t)}async function H(e,{size:t,from:i,conditions:l=[],sort:s="lastPublished",pageType:c=["video"],cacheKey:o=""}={},u,p={site:{}}){let d=a(u),v=r(u),m=y("published-content"),f=p.site.site;f&&m.condition(T.MUST,A("site",f)),m.condition(T.FILTER,{bool:{should:[{term:{includeInAutofill:!0}},{bool:{must_not:{exists:{field:"includeInAutofill"}}}}]}}),m.condition(T.FILTER,y.terms("pageType",c)),m.sort(s,{order:"desc",missing:"_last"}),m.size(t||15),m.from(i||0),l.forEach(e=>{e.terms.forEach(t=>{m.condition(L[e.condition],A(e.field,t)),"Any of"===e.condition&&m.minimumShould(1)})}),m.include(["pageContent","pageType"]);let E=0,U=await e.searchElasticWithCache(m,o);return{videos:U.results?.hits.hits.map(({_source:e})=>{var t;let i=e.pageContent.main[e.pageType].content[0].featuredVideo;if(!i||i._takedownEnabled)return;let a=`${v}_fill_${E++}`;return i.fill=!0,i.inPlaylist=!0,t=["thumbnail","tags"],i._ref=x(i._ref,a),t.forEach(e=>{let t=Array.isArray(i[e])?i[e][0]:i[e];t&&(t._ref=x(t._ref,a))}),d||n(i),i}).filter(e=>e?._ref),cache:U.cache}}e.exports={isFastLiveVideo:Y,isLiveVideo:function(e){return F.test(e)},isUKLive:function(e){return e===U.UK_LIVE},isTemporaryLiveStream:function(e,t){return e===s.livestream&&!k.includes(t)},isPermanentLiveStream:function(e,t){return e===s.livestream&&k.includes(t)},isCVPLiveStream:function(e){return R.test(e)},isCVPUnathenticatedLiveStream:function(e){return N.test(e)},isAuthVideo:function(e=[]){return null!==e&&[b.TVE,b.LIVEAUTH,b.DTC].some(t=>e.includes(t))},getContinuousVariation:function(){let e=l.get("FREEVIEW_ENDSLATE_VARIATION","");return e&&Object.values(h).includes(e)?e:""},isAuthLiveVideo:function(e){return B.includes(e)},getVideoEmbedUrl:function({uri:e,isEdition:t,videoId:i,stellarUdk:a,stellarSite:r}){if(!e)return null;let n=l.get("VIDEO_EMBED_URL"),s=l.get("VIDEO_PLAYER_EMBED_ENV","prod"),c=`${n}?video=${i}&stellarUri=${e}&stellarSite=${r}`;return a&&(c=`${c}&stellarUdk=${a}`),`${c}&customer=cnn&edition=${t?"international":"domestic"}&env=${s}`},isVideoClip:function(e){return[s.clip,s.fileUpload,s.mediasourceImport].includes(e)},getAMPVideoEmbedUrl:function({uri:e,isEdition:t,videoId:i,stellarUdk:a,stellarSite:r,path:n}){if(!e)return null;let s=l.get("VIDEO_PLAYER_EMBED_ENV","prod"),c=l.get("AMP_VIDEO_EMBED_URL");r===v.espanol&&(c=`${c.replace("/amp","/cnneamp")}`);let o=new URL(c);return o.searchParams.set("video",i),o.searchParams.set("videoId",i),o.searchParams.set("stellarUri",e),o.searchParams.set("stellarSite",r),o.searchParams.set("customer","cnn"),o.searchParams.set("edition",t?"international":"domestic"),o.searchParams.set("env",s),a&&o.searchParams.set("stellarUdk",a),n&&o.searchParams.set("path",n.substring(1,n.length+1)),o.searchParams.set("techStack","stellar2.0"),o.toString()},determineAutoStart:function(e=!1){let t={autoplay:!1,autoplayType:_.DISABLED};return"string"==typeof e?({disabled:{autoplay:!1,autoplayType:_.DISABLED},muted:{autoplay:!0,autoplayType:_.MUTED},unmuted:{autoplay:!0,autoplayType:_.UNMUTED},scroll:{autoplay:!1,autoplayType:_.SCROLL}})[e]??t:e?{autoplay:e,autoplayType:_.UNMUTED}:t},isVideoAutoStartEnabled:function(e,t={}){let i=d(t),a=l.get("ENABLE_VIDEO_AUTOSTART_MAP")[i];return(a?.[o(t)]??!0)&&e},isFaveFeatureEnabledForPage:function(e,t,i){let a=!0;return!!e&&(e.sections&&!e.sections.includes(t)&&(a=!1),e.pageTypes&&!e.pageTypes.includes(i)&&(a=!1),a)},getTopAdProfile:function({contentModel:e={},contentType:t,isEditionSite:i,isMobileViewport:a}){let r=m("michonne","video.fave",i),n=c(r,"stellar.ads",c(f,"ads",{}));return e.brandSite===v.espanol?n.espanol?n.espanol:c(f,"ads.espanol",{}):u(e)?n.livestory:Y(t)?a?n.fastLiveStreamMobileWeb||{}:n.fastLiveStreamDesktopWeb||{}:p(e)?n.verticalVideo||{}:c(r,"ads",{})},getMediaPlayer:function(e){return c(m("michonne","video.fave",e),"stellar.mediaPlayer",E)},search:H,AUTH_TYPES:b,AUTO_PLAY_TYPE:_,VIDEO_TYPE:U,FREEVIEW_ENDSLATE_VARIATIONS:h,FREEVIEW_ENDSLATE_AUTOPLAY_SETTINGS:V}}}]); /* window.modules["15"] */ "use strict";(self.modules=self.modules||[]).push([["15"],{15:e=>{e.exports={parseJSON:function(e,r=!1){try{return JSON.parse(e)}catch(s){if(r)return null;return e}}}}}]); /* window.modules["16"] */ "use strict";(self.modules=self.modules||[]).push([["16"],{16:(e,t,E)=>{let n,o;let r=E("601"),a=E("553"),i=E("113"),_=E("24"),{isServerSide:s}=E("13");function T(e,t=!1){let E={};e&&(E.sitesVersion=e),t&&(E.browserVersion=o.userAgent);let a={name:"clay",meta:E},l={env:_.get("CONTENT_HUB_ENV")};s()?a.serverTelemetry={context:l}:a.browserTelemetry={enable:!!(_.get("ENABLE_DATADOG_TELEMETRY")&&(window?.kiln?.mode==="edit"||window?.WBD?.UserConsent&&window.WBD.UserConsent.inUserConsentState(["data-store"],{name:"Datadog-logger"}))),clientToken:_.get("EDIT_MODE_DATADOG_CLIENT_TOKEN"),service:`${_.get("CONTENT_HUB_PROJECT_NAME")}-${_.get("SERVICE_BUILD_TYPE")}`,version:_.get("CONTENT_HUB_APP_VERSION"),forwardErrorsToLogs:!0,sampleRate:100,omitFromData:["history","title","users"],context:{...l,user:i(window,"kiln.locals.user")}},r.init(a),n=r.getLogger()}s()||(o=navigator,T(null,!0)),e.exports.init=T,e.exports.setup=function(e,t=!1){if(e=a({},e,{file:"File not specified! Please declare a file"}),t&&T(),n)return r.meta(e,n);let E=null;return function(t,...o){if(null===E&&n&&(E=r.meta(e,n)),E)E(t,...o);else switch(t){case"error":console.error(...o);return;case"warn":console.warn(...o);return;case"info":case"debug":console.log(...o);return;default:console.log(t,...o);return}}},e.exports.logTypes={ALL_BULLETS_REGENERATED:"All Bullets Regenerated",COMPONENT_HIDDEN:"Component Hidden",COMPONENT_PUBLISHED:"Component Published",COMPONENT_VARIATION_CHANGED:"Component Variation Changed",CREATE_ARTICLE_FROM_LIVE_STORY_POST:"Create Article From Live Story Post",CREATE_LIVE_STORY_FROM_ARTICLE:"Create Live Story From Article",GENERATE_SUMMARY_BUTTON_CLICKED:"Generate Summary - Button Clicked",GENERATE_SUMMARY_FAILED:"Generate Summary - Failed",INDIVIDUAL_BULLET_REGENERATED:"Individual Bullet Regenerated",LIVE_STORY_POST_PUBLISH:"Live Story Post Publish",MAGIC_BUTTON_ALL:"Magic Button All",MAGIC_BUTTON:"Magic Button",MANUAL_CARD_CREATED:"Manual Card Created",MOBILE_VIEW_TOGGLED:"Mobile View Toggled",PAGE_DISTRIBUTION_CHANGED:"Page Distribution Changed",PAGE_SETTINGS_CHANGED:"Page Settings Changed",POPULATE_CARD_BYLINE:"Populate Card Byline",RECOMMENDED_TAB_VIEWED:"Recommended Tab Viewed",RELATED_CONTENT:{SEARCH_SELECTION_SAVED:"Related Content Search Selection Saved",RECOMMEND_SELECTION_SAVED:"Related Content Recommend Selection Saved"},RELATED_CONTENT_SELECTION_METHOD:"Related Content Selection Method",SUGGESTION_SELECTED:"Suggestion Selected",SUGGESTIONS_LOADED:"Suggestions Loaded",SUMMARIES_GENERATED:"Summaries Generated",SUMMARIES_LOADED:"Summaries Loaded",VALIDATION_RESULT:"Validation Result",VIEW_CARD_ON_PAGE_CLICKED:"View Card On Page Clicked",OPEN_USAGE_VIEW:"Open Usage View",USAGE_RESULTS_RETURNED:"Usage Results Returned",USAGE_INTERACTION:"Usage Interaction"},e.exports.assignNavigator=function(e){o=e},e.exports.assignLogInstance=function(e){n=e},e.exports.getLogger=function(){return r.getLogger()}}}]); /* window.modules["19"] */ "use strict";(self.modules=self.modules||[]).push([["19"],{19:(e,t,a)=>{let n,i;let o=a("560"),r=a("561"),{setAnalyticProperty:s,setAnalyticsForChildComponents:u,setAnalyticsVideoType:l,setAuthTypeAnalytics:c,getFreeviewPreviewType:d}=a("23"),{createCallbacks:p,handleOverlay:w,cleanupConfigsForPlayer:y}=a("549"),{createBoltEngagementCallbacks:h,applyBoltEngagementInitConfig:v}=a("20"),{isAnyBoltEngagementEnabled:m}=a("22"),{isLiveContentDiscoveryEnabled:A,applyLiveContentDiscoveryConfig:f,createLiveContentDiscoveryCallbacks:T}=a("562"),{getUserAccessLevel:g}=a("76"),{mediumMaxWidthListener:I}=a("11"),E=a("143"),{isAuthVideo:k,isUKLive:C,getTopAdProfile:P,isLiveVideo:S,isFastLiveVideo:M}=a("14"),{isEdition:b}=a("234"),{getContentModel:L}=a("1"),{calculateSsaiProfile:F}=a("563"),{getSSID:O}=a("545"),_=a("112"),V=a("565"),D={},N=new Promise((e,t)=>{let a=()=>{window.FAVE?.loaded&&(clearInterval(n),clearTimeout(i),e())},n=setInterval(a,500),i=setTimeout(()=>{clearInterval(n),t("timed out awaiting FAVE.loaded")},3e4);a()}).then(()=>window.FAVE.loaded);function R(e){if(window.FAVE)return window.FAVE.player.getInstance(e)}async function j(e){I(e=>{n=e});try{await N}catch(e){throw Error(e)}let t=f(v(await r.build({...e,isMobileViewport:n})));x(t)?t.deferFreeviewStart=!0:t.deferFreeviewStart=!1,await o.setGlobalSettings(t.customExperience,t.autostart),await B(t),await Y();let a=p({...t,topAuth:V.topAuth,isMobileViewport:n});if(m()&&Object.assign(a,h(()=>R(t.markupId))),A(t)&&Object.assign(a,T(()=>R(t.markupId))),t.renderAuthCTAOnReady){let e=a.onPlayerReady,n=!1;a.onPlayerReady=(...a)=>{e?.(...a),n||(n=!0,Z(t).catch(e=>console.error("renderAuthCTA failed during player ready",e)))}}return await window.FAVE.player({configs:t,callbacks:a}),window.dispatchEvent(new Event(t.markupId)),i=R(t.markupId),D={...t},Promise.resolve(i)}let x=e=>!e?.autostart||e?.autostart===!1;async function B(e){if("false"!==e.isAuthenticatedContent){if(k(e.authType)){let t=await V.setupTopAuth();if(e.checkEventBasedPreview&&e.networkId&&await t.initEventBasedPreview(e.networkId,()=>R(e.markupId).stop()),e.networkId&&t.isPreviewActive(e.networkId)&&(s(e,"mvpd","eventpreview"),s(e,"isPreview",!0),s(e,"previewType","tve-preview_event")),e.isLive&&(await X(e),t.freeview?.status&&!t.freeview.status.expired)){let a=d(e,t.freeview.status);s(e,"mvpd","TempPass_CNN10min"),s(e,"isPreview",!0),s(e,"previewType",a)}}else u(e.el,e),l(e)}C(e.customExperience)&&await E.applyEntitlement(e)}let G=(...e)=>i.play(...e),U=()=>i.prepare(),W=()=>i.mute(),Y=async()=>{let e=await g();return localStorage.setItem("access_level",e),e},q=async()=>localStorage.getItem("access_level")||await Y(),z=async e=>{if(await B(e),_(e,"isLive",S(e?.videoId)),_(e,"ads",P({contentModel:L(),contentType:e.rawContentType??e.contentType,isEditionSite:b(window.location.hostname),isMobileViewport:n})),e.el&&_(e,"adsection",O(e.el,n)),c(e),k(e.authType)&&"cnn"===e.site){let t=e.isDTC?"DTC":e?.title;F(e,t,n)}if("false"===e.isAuthenticatedContent){w({...e,topAuth:V.topAuth}),U(),G(null,e);return}return Q(e)},H=async e=>{if(U(),i=R(e.markupId),D={...e},e.el=e.el||i.configs.el,c(e),M(e?.rawContentType??e?.contentType)&&(V.resetTopAuth(),_(e,"isLive",S(e?.videoId)),_(e,"ads",P({contentModel:L(),contentType:e?.rawContentType??e?.contentType,isEditionSite:b(window.location.hostname),isMobileViewport:n})),e.el&&_(e,"adsection",O(e.el,n)),e?.site==="cnn")){let t=e.isDTC?"DTC":e?.title;F(e,t,n)}k(e.authType)&&await V.setupTopAuth(),w({...e,topAuth:V.topAuth}),i.play(null,e)},J=e=>{W(),setTimeout(async()=>{await V.playWithAuth({instance:i,configs:e})},300)};async function K(e,t={}){let a=await V.addPlayerAuthentication(e,t);return D.authentication=a,a}async function Q(e){if(!await K(e,{forceFreeviewStart:!0})&&e.authType?.includes("dtc")){i.stop(),w({...e,topAuth:V.topAuth});return}w({...e,topAuth:V.topAuth}),V.playWithAuth({instance:i,configs:e})}async function X(e){if(e.autostart){let t=await K(e,{forceFreeviewStart:!0});e.authentication=t,e.authentication&&Object.keys(e.authentication).length>0&&!V.topAuth?.error||!t&&(e.autostart=!1,e.player?.ui?.theme?.subscriptionUi?.shouldRender)||(e.renderAuthCTAOnReady=!0)}else e.renderAuthCTAOnReady=!0}async function Z(e){let{setErrorMessage:t,handleOverlayClick:a,removeAuthOverlay:n}=function(e){let t=document.getElementById(e);if(!t.querySelector("#auth-cta-overlay")){let e=document.createElement("div");e.id="auth-cta-overlay",e.innerHTML=' ',t.appendChild(e)}let a=t.querySelector("#auth-cta-overlay__error"),n=t.querySelector("#auth-cta-overlay");return{setErrorMessage:e=>{a.classList.add("auth-cta-overlay__error"),a.textContent=e},removeAuthOverlay:()=>{n.remove()},handleOverlayClick:e=>{n.addEventListener("click",e)}}}(e.markupId),i=V.topAuth,o=R(e.markupId),r=async()=>{let t=await K(e,{forceFreeviewStart:!0});return e.authentication=t,t&&(n(),V.playWithAuth({instance:o,configs:e})),t};e.authentication&&0===Object.keys(e.authentication).length&&!i?.error?a(async()=>{await r()}):e.authentication&&Object.keys(e.authentication).length>0&&!i?.error?await r():i?.error?(t(i.error.message),setTimeout(()=>{i.logout()},1e4)):a(async()=>{let t=await r();w({...e,topAuth:i}),t||(e.isDTC?(n(),o.prepare(),o.resume()):i?.triggerPickerLogin())})}window.addEventListener("userloggedin",async()=>{if(i&&["PLAYING","PAUSED","UNPLAYED"].includes(i?.getMediaState())){let e=V.topAuth||await V.setupTopAuth();i.configs.authentication=await e._getAuthTokenWithoutCobranding(),i.stop()}}),window.addEventListener("mvpdModalClosed",async()=>{let e=i?.configs?{...i.configs}:{...D},t=document.getElementById(e?.markupId);if(t?.classList.remove("paywall-modal-open"),e.authType?.includes("dtc")){let t=await K(e);e.authentication=t,J(e)}}),e.exports={initialize:j,playAuthVideo:z,renderAuthCTA:Z,playClipVideo:H,playVerticalVideo:e=>{i=R(e.markupId),D={...e};let t=i.getMediaState();e.el=e.el||i.configs.el,c(e);let a=u(e.el);_(e,"adobeAnalytics.customMetadata",{...a.adobeAnalytics.customMetadata,...e.adobeAnalytics?.customMetadata}),_(e,"conviva.contentMetadata",{...a.conviva.contentMetadata,...e.conviva?.contentMetadata}),_(e,"zion.customMetadata",{...a.zion.customMetadata,...e.zion?.customMetadata}),l(e),e.muted?i.mute():i.unmute(),"PAUSED"!=t&&"PLAYING"!=t?i.play(null,e):"PLAYING"!=t&&i.resume()},scrollToPlayVideo:function({autostart:e,authType:t,el:a,markupId:n}){if(!("scroll"===e&&!k(t)))return;let i=R(n),o=new IntersectionObserver(e=>{e.forEach(({isIntersecting:e,intersectionRatio:t,target:a})=>{e&&t>=.5&&ti.resume(),pause:()=>i.pause(),mute:W,unmute:()=>i.unmute(),stop:()=>{if(i){i.stop();let e=i.configs?.markupId;e&&y(e)}}}}}]); /* window.modules["20"] */ "use strict";(self.modules=self.modules||[]).push([["20"],{20:(t,e,n)=>{let{convertAuthType:o}=n("1"),i=n("565"),a=n("16").setup({file:"/index.js"}),{isVodUpNextEnabled:r,isVodContentDiscoveryEnabled:u,isAnyBoltEngagementEnabled:c}=n("22"),{getUpNextPlayConfigs:l,getContentDiscoveryPlayConfigs:s}=n("121"),{handleOverlay:f,queueOverlayConfigs:p}=n("549");function d(t){return{markupId:t.markupId,networkId:t.networkId,el:t.el}}function h(t){return{enabled:!0,fetch:{enabled:!1},tabs:t.length?[{id:"episodes",label:"Episodes",playConfigs:t}]:[]}}function y(t,{currentMediumId:e,writeWhenEmpty:n}){let o=d(t),i={...t.bolt||{}};if(r()&&(i.upNext={...i.upNext||{},enabled:!0,playConfigs:null==e?i.upNext?.playConfigs||[]:l(o,e)}),u()){let t=s(o,e);(n||t.length)&&(i.contentDiscovery=h(t))}return Object.keys(i).length?{...t,bolt:i}:t}function g(t){return t?.isAuthenticatedContent==="false"||t?.isAuthenticatedContent===!1}function w(t){return o(t).includes("dtc")}function m(t){let e=t?.configs?.authentication;return!!e&&"object"==typeof e&&("adobe"===e.accessTokenType||!!e.mvpd)}async function T(t,e){let n=t?.mediaMetadata?.mediumId;if(!n||!e||g(t))return{authentication:null,authConfigs:null};let r=t.authType||e.configs?.authType;if(!w(r))return{authentication:null,authConfigs:null};let u={...t,markupId:e.configs?.markupId,networkId:t.networkId||e.configs?.networkId,contentType:t.contentType||(t.isLive?"live-stream":void 0),authType:o(r),deferFreeviewStart:e.configs?.deferFreeviewStart},c=await i.addPlayerAuthentication(u,{forceFreeviewStart:!0});return c||a("warn","Bolt engagement: per-episode DTC authentication returned no token",{mediumId:n}),{authentication:c,authConfigs:u}}async function C(t,e,n,o){let{authentication:r,authConfigs:u}=await T({...e,authType:n},t),c=i.topAuth;if(u&&!c)try{c=await i.setupTopAuth()}catch(t){a("warn","Bolt engagement: setupTopAuth failed during deferred handoff",t)}let l=u&&{...u,uri:t.configs?.uri,topAuth:c};r?(l&&p(t.configs?.markupId,l),o(r)):l?await f(l,{scope:"tile"}):o(t.configs?.authentication??null)}async function I(t,e){let n=e?.()||window.FAVE?.player?.getInstance?.(t.containerId),o=t.playConfigs;n&&o&&await C(n,o,t.authType||o.authType,t=>n.completeUpNextLoad({authentication:t}))}async function v(t,e){let n=e?.()||window.FAVE?.player?.getInstance?.(t.containerId),r=t.playConfigs;if(!n||!r)return;if(m(n)){if(g(r)){n.completeContentDiscoveryLoad({authentication:n.configs.authentication});return}let e=i.topAuth;if(!e)try{e=await i.setupTopAuth()}catch(t){a("warn","Bolt Content Discovery: setupTopAuth failed; completing load without overlay",t),n.completeContentDiscoveryLoad({authentication:n.configs.authentication});return}p(n.configs?.markupId,{...r,authType:o(t.authType||r.authType),markupId:n.configs?.markupId,networkId:r.networkId||n.configs?.networkId,uri:n.configs?.uri,topAuth:e}),n.completeContentDiscoveryLoad({authentication:n.configs.authentication});return}let u=t.authType||r.authType;w(u)&&await C(n,r,u,t=>n.completeContentDiscoveryLoad({authentication:t}))}t.exports={applyBoltEngagementToConfig:function(t,e){return c()?y(t,{currentMediumId:e,writeWhenEmpty:!1}):t},applyBoltEngagementInitConfig:function(t){return c()?y(t,{currentMediumId:null,writeWhenEmpty:!0}):t},refreshActiveSeasonContentDiscoveryTabs:function(){u()&&Object.values(window.FAVE?.player?.instances||{}).forEach(t=>{if("function"!=typeof t?.setContentDiscoveryTabs||!t.configs)return;let{tabs:e}=h(s(d(t.configs)));t.setContentDiscoveryTabs(e)})},createBoltEngagementCallbacks:function(t){return{onUpNextLoadDeferred:e=>I(e,t).catch(t=>a("error","Bolt Up Next authentication failed",t)),onContentDiscoveryTileSelected:e=>v(e,t).catch(t=>a("error","Bolt Content Discovery authentication failed",t))}},handleContentDiscoveryAuth:v,handleUpNextDeferred:I,requiresPerEpisodeAuth:w,isTveSession:m}}}]); /* window.modules["21"] */ "use strict";(self.modules=self.modules||[]).push([["21"],{21:(t,e,i)=>{let r=i("112"),{convertAuthType:s}=i("1"),{getAssetTraits:a}=i("128");function u(t){if(t)return[{name:"768x432",imageWidth:"768",imageHeight:"432",uri:t},{name:"640x360",imageWidth:"640",imageHeight:"360",uri:t}]}function n(t){if(!t)return"";let e=t.trim();return e.startsWith("http://")||e.startsWith("https://")?e:e.startsWith("//")?`https:${e}`:new URL(e,window.location.origin).href}function l(t){if(!t)return"";let e=t.split(",")[0]?.trim();return e&&e.split(/\s+/)[0]||""}function o(t){if(!t)return"";let e=t.querySelector(".tve-asset__image picture, picture"),i=t.querySelector(".tve-asset__image img, img");if(i){let t=i.getAttribute("src")||i.getAttribute("data-src")||l(i.getAttribute("srcset"));if(t)return n(t)}let r=e?.querySelector("source[srcset]");if(r){let t=n(l(r.getAttribute("srcset")));if(t)return t}let s=t.querySelector('[data-component-name="image"]'),a=s?.getAttribute("data-url")||s?.dataset?.url;return a?n(a):""}function d(t){let e=t.title||t.assetTitle,i=t.assetSubTitle||t.assetDescription;return e&&i?`${e}: ${i}`:e||i||t.headline||""}function c(t,{headline:e}={}){let i=s(t.authType);return{...t,authType:i,isDTC:i.includes("dtc"),mediaMetadata:{headline:e,mediumId:t.assetId,boltId:t.boltId,id:t.assetId}}}t.exports={buildVodEpisodePlayerConfig:function(t,e){let i=c(t,{headline:d(t)});i.isLive=!1;let s=u(o(e));s&&(i.mediaMetadata.images=s);let n=t.assetTitle||t.title||"",l=t.assetSubTitle||t.assetDescription||"",m=e?a(e):{};return r(i,"zion.customMetadata",{...i.zion?.customMetadata||{},...m,show_name:n,title:l}),i},buildEpisodeBaseConfig:c,buildPosterImages:u,getThumbnailUriFromAssetEl:o,buildEpisodeHeadline:d,normalizeImageUri:n}}}]); /* window.modules["22"] */ "use strict";(self.modules=self.modules||[]).push([["22"],{22:(t,e,n)=>{let o=n("24"),{isTVE:i}=n("2"),{isPageVariant:r,PAGE_VARIANTS:c}=n("6"),{convertToBoolean:l}=n("13");function u(){return i()&&r(c.TVE_SERIES)}function a(){return u()&&l(o.get("BOLT_UP_NEXT_ENABLED"))}function s(){return u()&&l(o.get("BOLT_CONTENT_DISCOVERY_ENABLED"))&&function(){let t=[].concat(o.get("BOLT_CONTENT_DISCOVERY_SERIES_ALLOWLIST")||[]).map(t=>"string"==typeof t?t.trim():t).filter(Boolean);if(t.includes("*"))return!0;let e=function(){let t=window.location?.pathname?.match(/\/videos\/(title-\d+)/)?.[1];return t?t:(window.CNN?.contentModel?.canonicalUrl||"").match(/(title-\d+)/)?.[1]||document.querySelector('[data-component-name="tve-asset"][data-series-content-id]')?.dataset.seriesContentId||""}();return!!e&&t.includes(e)}()}t.exports={isVodSeriesPage:u,isVodUpNextEnabled:a,isVodContentDiscoveryEnabled:s,isAnyBoltEngagementEnabled:function(){return a()||s()}}}}]); /* window.modules["23"] */ "use strict";(self.modules=self.modules||[]).push([["23"],{23:(e,t,a)=>{let i=a("112"),{getContinuousVariation:d,AUTH_TYPES:l}=a("14"),{setAnalyticProperty:s,setAnalyticsVideoType:n,setAssetAnalytics:r,setAuthTypeAnalytics:o}=a("566"),u=a("24");function c(){let e=Number(u.get("FREEVIEW_MAX_PREVIEW_SECONDS",60));return Number.isFinite(e)&&e>0?Math.round(e):60}function v(e){let t=Math.max(1,Math.round(e/60));return`${t}min`}let{replaceVersion:f}=a("127");function h(e,t){let a={adobeAnalytics:{customMetadata:{headline:e.headline,title:e.headline,parentStellarId:e.parentStellarId,stellarId:e.stellarId,videoTags:Array.isArray(e.videoTags)?[...e.videoTags]:[],videoUrl:e.videoUrl,branding:e.branding,firstPublishSlug:e.firstPublishSlug}},conviva:{contentMetadata:{videoTitle:e.headline,firstPublished:e.firstPublished,parentStellarId:e.parentStellarId,stellarId:e.stellarId,videoTags:e.videoTags,videoUrl:e.videoUrl,firstPublishSlug:e.firstPublishSlug}},zion:{customMetadata:{video_title:e.headline,parent_stellar_id:e.parentStellarId,stellar_id:e.stellarId,video_tags:e.videoTags,video_url:e.videoUrl,first_publish_slug:e.firstPublishSlug}}};return t&&(i(t,"adobeAnalytics.customMetadata",a.adobeAnalytics.customMetadata),i(t,"conviva.contentMetadata",a.conviva.contentMetadata),i(t,"zion.customMetadata",a.zion.customMetadata)),a}function b(e){return e?f(new URL(`https://${e}`).pathname):""}e.exports={setLiveStreamAnalyticsTitle:function(e){switch(e.mediaMetadata?.id||e?.mediaId){case"livedee0fd3a7f81d264969c7f6f911079c3bd715cd1":s(e,"title","cnn live");break;case"live4d61573b7a0615fa6cfeca73f1df9560efc93803":s(e,"title","cnni live");break;case"livecd0ee653fc42a51546445d02a6c38769c47ab454":s(e,"title","hln live")}},setAnalyticsForChildComponents:function(e,t=null){let a=b(e.dataset.parentUri),i=b(e.dataset.uri);return h({videoSection:e.dataset.section,firstPublished:e.dataset.firstPublished,headline:e.dataset.headline,title:e.dataset.headline,parentStellarId:btoa(a),stellarId:btoa(i),videoTags:e.dataset.videoTags,videoUrl:e.dataset.canonicalUrl,branding:e.dataset.brandingKey,videoSlug:e.dataset.slug,firstPublishSlug:e.dataset.firstPublishSlug},t)},setCustomMetadataForChildComponents:h,updateInstanceCustomMetadata:function(e,t){let{zion:a,adobeAnalytics:i,conviva:d,video_data:l=[]}=t;e&&(e.updateZionCustomMetadata({...a.customMetadata,...l}),e.updateAdobeCustomMetadata({...i.customMetadata,...l}),e.updateConvivaContentMetadata({...d.contentMetadata,...l}))},setAnalyticsVideoType:n,setAnalyticProperty:s,setAssetAnalytics:r,setAuthTypeAnalytics:o,formatPreviewLengthLabel:v,getFreeviewPreviewType:function(e,t){let a=e.authType?.includes(l.DTC),i=a?"dtc-preview":"tve-preview";if(a&&d())return`${i}_${v(c())}`;let s=t?.expires?(t.expires-Date.now())/1e3:0;return`${i}_${v(s)}`},getMaxPreviewSeconds:c}}}]); /* window.modules["24"] */ "use strict";(self.modules=self.modules||[]).push([["24"],{24:(e,t,n)=>{var l=n("387");let r=n("113"),o=n("425"),i=n("360"),d=n("557"),s="undefined"!=typeof window;function a(e){return Array.isArray(e)?d(e,(e,t,n)=>(e[n]=a(t),e),[]):o(e)?d(e,(e,t,n)=>(e[n]=a(t),e),{}):i(e)&&e.split(",").length>1?e.split(","):i(e)?function(e){let t=e.toLowerCase();return"true"===t||"false"!==t&&e}(e):e}function g(e,t){if(e){let n=r(e,t,e[t]);return void 0!==n?a(n):void 0}}let v=new class{constructor(){this.allowedOnClient=[],this.allowedOnEditClient=[],this.getAllForWindow=this.getAllForWindow.bind(this)}getForClient(e,t){let l=g(n.g.env,e),r=g(window.env,e);return void 0!==l?l:void 0!==r?r:a(t)}getForServer(e,t){let r=g(n.g.env,e),o=g(l.env,e);return void 0!==r?r:void 0!==o?o:a(t)}getAllForClient(){return a({...window.env,...n.g.env})}getAllForWindow(e){["allowedOnClient","allowedOnEditClient"].forEach(e=>{this[e]&&!Array.isArray(this[e])&&function(e,t="ERROR"){console.log(`[service/dotenv][${t}] ${e}`)}(`EnvVars.${e} must be an array of environment variable key strings`)});let t=this.allowedOnClient;return e&&(t=t.concat(this.allowedOnEditClient)),t&&t.reduce((e,t)=>{let n=this.getForServer(t);return e[t]=n,e},{})}getAllForServer(){return a({...l.env,...n.g.env})}};e.exports.configure=function(e={}){v.allowedOnClient=e.allowedOnClient||[],v.allowedOnEditClient=e.allowedOnEditClient||[]},e.exports.get=s?v.getForClient:v.getForServer,e.exports.getAll=s?v.getAllForClient:v.getAllForServer,e.exports.getAllForWindow=s?v.getForClient:v.getAllForWindow}}]); /* window.modules["25"] */ "use strict";(self.modules=self.modules||[]).push([["25"],{25:(e,i,t)=>{var a=t("300").Buffer;let{ClientTemplate:n}=t("104"),{getLanguage:o}=t("1"),{formatDurationForScreenReader:l}=t("133"),r=t("image.client"),s=t("video-resource.client"),{elevateWhenNeeded:d,isElevated:c}=t("130"),{array:u,arrayIncludes:p,not:m,ternary:g}=t("547"),{generateSourceByDAM:h,renderImage:v}=t("386"),w=t("548"),f=t("260"),{toObject:b}=t("13"),y=t("558"),L=t("559"),S={compiler:[8,">= 4.3.0"],main:()=>"",useData:!0},M=n.createHandlebarsEnvironment({helpers:{adFeedbackLink:()=>"",array:u,arrayIncludes:p,elevateWhenNeeded:d,escapeHTMLQuotes:function(e){return e.fn(this).replace(/"|'/g,""").trim()},generateSourceByDAM:h,inlineSafeString:w,isElevated:c,kilnEditButton:()=>"",not:m,read:e=>e.includes("sig-video.svg")?'':e.includes("ui-caret-up.svg")?'':void 0,renderImage:v,sliceString:function(e,i,t){return e.slice(i,t||e.length)},ternary:g,toObject:b,translate:f},partials:{byline:S,image:y,show:S,timestamp:S}}).template(L);e.exports=function(e,i,{indexOffset:t=0}={}){e.forEach((e,d)=>{try{let c=function(e,i,t){let n=a.from(e.stellar_id,"base64").toString(),r=n.startsWith("/")?`${window.location.hostname}${n}`:n,s=o();return{_ref:r,branding:[{}],canonicalUrlPath:new URL(e.url,window.location.origin).pathname,componentVariation:"video-resource",config:{details:"",duration:"",fullDetails:!1,thumbnailWidth:""},description:e.description,displayVideoCover:!0,duration:e.durationLabel,durationDisplay:e.durationLabel,durationForScreenReader:l(e.durationLabel,s),videoLabel:f(s,"Video"),headline:e.headline,inPlaylist:!0,index:i+t,lazy:!0,locals:{configuration:{language:s,pageType:window.CNN?.contentModel?.pageType},edit:!1,modal:!1,pageVariant:window.CNN?.contentModel?.templateType},parentUri:r,source:e.source,showSourcePartial:!!e.source,stellarId:e.stellar_id,tags:{tagNames:""},thumbnail:[{alt:e.headline,componentVariation:"image",credit:"",damType:"stellar",url:e.thumbnail}],videoId:e.stellar_id}}(e,d,t),u=M(c),p=n.createElementFromHTML(u);p.querySelectorAll('[data-component-name="image"]').forEach(e=>r(e)),s(p),i.appendChild(p)}catch(e){console.error("video-playlist: skipping invalid recommendation",e)}})}}}]); /* window.modules["26"] */ "use strict";(self.modules=self.modules||[]).push([["26"],{26:(e,r,t)=>{let s,a,o,n;let{getCookie:c}=t("40"),{AUTH_CLIENT:i}=t("35"),u=t("16").setup({file:"/index.js"}),{formatLoggingData:l}=t("569"),d=t("24"),{trackMetrics:g}=t("9"),{zionEventHandler:S}=t("10"),{generateTemporaryDisplayName:y}=t("43"),{dispatch:h,actions:m}=t("65"),{PAYWALL:E}=m,{getCurrentSite:p}=t("131"),w=t("260"),f=p(),{IDENTITY_TYPES:A}=t("73"),T=t("113"),_=[401,424],v={DOMESTIC:"domestic",INTL:"intl"},O={TOS:{docName:"TOS",version:"1.0",type:v.DOMESTIC},TOS_INTL:{docName:"TOS-Intl",version:"1.0",type:v.INTL},UK_ALL_ACCESS:{docName:"TOS-UK-All-Access",version:"1.0"}};Object.freeze(O);let k="An unexpected error occurred. Visit help.cnn.com for assistance.",I={500:k,default:k},C={401:"Your account has been locked. Visit www.cnn.com/feedback for further assistance.",420:"You entered an incorrect email, password, or both.",429:"An account with this email address already exists. If you believe this account is yours, please log in above.",...I},b={401:"Your account has been locked. Visit www.cnn.com/feedback for further assistance.",420:"You have entered an invalid password.",432:"Sorry, an error has occurred. Please try again later",523:"Sorry, an error has occurred. Please check your internet connection and try again",...I},L={401:`It looks like you’re having trouble logging in. Please click “Forgot password?” to reset your password.`,420:`You have entered an invalid username or password.${d.get("REG_SSO_GOOGLE_ENABLED")?" If you used a third-party account before, try signing in with that instead.":""}`,432:"Sorry, an error has occurred. Please try again later",523:"Sorry, an error has occurred. Please check your internet connection and try again",acct_deleted:"This email address is associated with a previously deleted account. Please use a different email address.",...I},R={420:"Sorry, an error has occurred. Please try again later.",429:'Looks like this account already exists. Please log in.',acct_deleted:"This email address is associated with a previously deleted account. Please use a different email address.",...I},P={validEmail:w(f,"Please enter a valid email address"),requiredEmail:w(f,"Email address is required"),emailSize:w(f,"Email must not exceed 255 characters"),requiredPassword:w(f,"Please enter a password"),registrationPassword:{min:w(f,"At least 8 characters"),upperLowerCase:w(f,"At least one letter"),numbers:w(f,"At least one number")},passwordSize:w(f,"Password must not exceed 255 characters"),displayName:{length:w(f,"0-30 letters and numbers"),hasValidChars:w(f,"Can include hyphens, apostrophes, periods, spaces, and commas")}},N={LOG_IN_SUCCESS:"logged in",LOG_IN_FAILURE:"login failure",ACCOUNT_CREATED:"account created",REGISTRATION_FAILURE:"registration failure",LOG_OUT:"logged out"},U={REGISTRATION:"cnn_registration",PASSWORD_RESET:"cnn_password_reset"},G={},M={getPreAuthEntitlements:E.AUTH_ENTITLEMENTS},D=async(e,r,t)=>{if("function"!=typeof r||!Object.hasOwn(M,e))return{success:!1};let s=async()=>{G[e]="loading";let t=await r();return h(M[e],t),G[e]="loaded",t},a=G[e];return t&&["loading","loaded"].includes(a)?void 0:await s()},z=(e,r)=>`${e}:${r}`,x=({criteria:e,value:r,messageMap:t})=>{let s=[];return Object.keys(e).forEach(a=>{let o=!0;RegExp(e[a]).test(r)||(o=!1),s.push({valid:o,msg:t[a]})}),s},$=e=>{let r=e||c("countryCode"),t=r&&"US"!==r?v.INTL:v.DOMESTIC;return Object.values(O).filter(e=>e.type===t)},j=e=>{g({type:"user-account",data:e})},q=async(e,r)=>{let t={success:!1,errorStatus:500},s=i.getToken();if(s)try{for(let{docName:r,version:t}of e)await i.addLegalDoc({docName:r,version:t},s);return{success:!0,errorStatus:null}}catch(e){t.errorStatus=e&&e.status||500,u("error",`Error accepting ${r}: `,l(e))}return t},V=(e,{docName:r,version:t})=>T(e,"user.userProfileResponses.cnn.acceptedLegalDocumentResponses",[]).some(e=>e.docName===r&&e.version===t),F=async e=>{let r={success:!1,errorStatus:500},t={misc:{event_message_type:U.REGISTRATION}};if(e)try{await i.resendConfirmationEmail(e,t,i.getToken()),r={success:!0,errorStatus:null}}catch(s){let e=s&&s.status||500,t=l(s);r.errorStatus=e,u("error","Error resending email confirmation:",t)}return r},Z=async(e,r={})=>{let t={success:!1,errorStatus:500};if(r={...r||{},event_message_type:U.PASSWORD_RESET},e)try{await i.resetPasswordRequest(e,r),t={success:!0,errorStatus:null}}catch(r){let e=r&&r.status||500;t.errorStatus=e,u("error","Error sending reset password request:",l(r))}return t},K=async e=>{let r={success:!1,errorStatus:500};if(e)try{await i.confirmEmail(e),r={success:!0,errorStatus:null}}catch(s){let e=s&&s.status||500,t=l(s);r.errorStatus=e,u("error","Error confirming email: ",t)}return r},Y=async e=>{let r={success:!1,errorStatus:500};if(e)try{r={resetToken:await i.resetPassword(e),success:!0,errorStatus:null}}catch(t){let e=t&&t.status||500;r.errorStatus=e,u("error","Error confirming reset password: ",l(t))}return r},B=async(e,r,t=null)=>{let s={success:!1,errorStatus:500};if(e&&r)try{await i.changePassword({newPassword:r,misc:t},e),s={success:!0,errorStatus:null}}catch(r){let e=r&&r.status||500;s.errorStatus=e,u("error","Error changing password: ",l(r))}return s},W=async e=>{let r={success:!1,errorStatus:500};if(e){let{attributes:t,source:s}=e;try{if(await i.register({...e,attributes:{...t,registration_subscribe:new Date().toISOString(),registration_source:s,display_name:y()},legaldocs:$(),rememberMe:90,misc:{...e.misc||{},event_message_type:U.REGISTRATION}})){r={success:!0,errorStatus:null},j({action:N.ACCOUNT_CREATED});try{S({traits:{account_method:"standard",account_source_id:""}},"UserRegistration")}catch(e){u("error","Error firing UserRegistration Nova analytics event:",e)}}}catch(s){let e=s&&s.status||500;r.errorStatus=e;let t=l(s);j({action:N.REGISTRATION_FAILURE,status:e,errorMessage:t?.data?.[0]?.message||""}),u("error","Error registering user: ",t)}}return r},H=async e=>{let r={success:!1,errorStatus:500},t=e?.attributes?.signup_type==="one-tap"?"one tap":"button",s=c("countryCode");try{let a=await i.googleSsoRegister({...e,attributes:{...e.attributes||{},registration_subscribe:new Date().toISOString(),registration_source:e.source,display_name:y()},addresses:s&&[{country:s}],legaldocs:$(),rememberMe:90});r={success:!0,errorStatus:null,userInfo:a},j({action:N.ACCOUNT_CREATED,method:z(A.GOOGLE.toLowerCase(),t)});try{S({traits:{account_method:A.GOOGLE.toLowerCase(),account_source_id:""}},"UserRegistration")}catch(e){u("error","Error firing UserRegistration Nova analytics event:",e)}document.dispatchEvent(new CustomEvent("google-sso-register"))}catch(a){let e=a&&a.status||500,s=l(a);r.errorStatus=e,j({action:N.REGISTRATION_FAILURE,method:z(A.GOOGLE.toLowerCase(),t),status:e,errorMessage:s?.data?.[0]?.message||""}),u("error","Error registering user with Google: ",s)}return r},J=async e=>{let r={success:!1,errorStatus:500},t=c("countryCode");try{let s=await i.appleSsoRegister({...e,attributes:{...e.attributes||{},registration_subscribe:new Date().toISOString(),registration_source:e.source,display_name:y()},addresses:t&&[{country:t}],legaldocs:$(),rememberMe:90});r={success:!0,errorStatus:null,userInfo:s},j({action:N.ACCOUNT_CREATED,method:`${A.APPLE.toLowerCase()}:button`})}catch(s){let e=s&&s.status||500,t=l(s);r.errorStatus=e,j({action:N.REGISTRATION_FAILURE,method:`${A.APPLE.toLowerCase()}:button`,errorMessage:t?.data?.[0]?.message||""}),u("error","Error registering user with Apple: ",l(s))}return r},Q=async({email:e,password:r,misc:t={},userInfoData:s={},ssoType:a="",disableRegFallback:o,autoLogin:n,source:d})=>{let g={success:!1,errorStatus:500,userInfo:void 0},y={[A.GOOGLE]:H,[A.APPLE]:J},h=a?{method:z(a.toLowerCase(),n?"automatic login":o?"one tap":"button")}:{};if(a&&r||e&&r)try{let s=await i.login({email:e,password:r,...a&&{identityType:a},rememberMe:90,misc:t,source:d},!0);if(a){let e=s.user?.userAddressResponses?.some(e=>e.country),r=c("countryCode");!e&&r&&er({addresses:[{country:r}]},s.authToken)}g={success:!0,errorStatus:null,userInfo:s},j({action:N.LOG_IN_SUCCESS,...h});try{S({canonical_url:window?.CNN?.contentModel?.canonicalUrl||null,cnn_uid:i.getStoredUID()||null,brand:"CNN",traits:{account_method:a?a.toLowerCase():"standard",account_source_id:""}},"UserLogin")}catch(e){u("error","Error firing UserLogin Nova analytics event:",e)}a===A.GOOGLE&&document.dispatchEvent(new CustomEvent("google-sso-login"))}catch(n){let e=n&&n.status||500;if(420===e&&a&&!o)g=await y[a]({token:r,misc:t,...s});else{g.errorStatus=e;let r=l(n);j({action:N.LOG_IN_FAILURE,errorMessage:r?.data?.[0]?.message||"",...h}),u("error","Error logging in user:",r)}}return g},X=async()=>{let e={success:!1,errorStatus:500,userInfo:void 0},r=i.getToken();if(r)try{let t=await i.accountInfo(r);e={success:!0,errorStatus:null,userInfo:t,userToken:r}}catch(t){let r=t&&t.status||500;e.errorStatus=r,_.includes(t?.status)&&i.removeToken(),u("error","Error getting user info: ",l(t)),j({action:N.LOG_OUT,method:"getUserInfo"})}return e},ee=async(e,r={})=>{let t={success:!1,errorStatus:500};if(e)try{let{identityTypes:s}=await i.emailLookupRequest(e,r);t={success:!0,identityTypes:s,errorStatus:null}}catch(r){let e=r&&r.status||500;t.errorStatus=e,424!==e&&u("error","Error sending email lookup request:",l(r))}return t},er=async(e,r)=>{let t={success:!1,errorStatus:500};if(r=r||i.getToken())try{await i.updateAccount(e,r),t={success:!0,errorStatus:null}}catch(r){let e=r&&r.status||500;t.errorStatus=e,u("error","Error updating account info: ",l(r))}return t},et=async()=>{let e={success:!1,errorStatus:500},r=i.getToken();if(r)try{await i.deleteAccount(r),e={success:!0,errorStatus:null}}catch(s){let r=l(s),t=s&&s.status||500;e.errorMessage=r?.data?.[0]?.message||"",e.errorStatus=t,u("error","Error deleting account: ",r)}return e},es=async()=>{let e={success:!1,errorStatus:500},r=i.getToken();if(r)try{await i.refreshAuthToken(r,90),e={success:i.tokenWithAuthn(),errorStatus:null}}catch(t){let r=t&&t.status||500;e.errorStatus=r,u("error","Error refreshing auth token: ",l(t))}return e},ea=async e=>{let r={success:!1,errorStatus:500},t=i.getToken();if(e&&t)try{r=await i.linkMVPDAuthn(t,e)}catch(t){let e=t&&t.status||500;r.errorStatus=e,u("error","Error linking MVPD to user: ",l(t))}return r},eo=async(e,r,t=!1,s=!1)=>(t&&(G.getPreAuthEntitlements=""),await D("getPreAuthEntitlements",async()=>{let t={success:!1,errorStatus:500,preAuthorizedEntitlements:void 0};if(e)try{let{preAuthorizedEntitlements:s}=await i.getPreAuthEntitlements(e,r);t={success:!0,errorStatus:null,preAuthorizedEntitlements:s}}catch(r){let e=r&&r.status||500;t.errorStatus=e,u("error","Error getting preauth entitlements: ",l(r))}return t},s)),en=async()=>(s||(s=ec()),s),ec=async()=>{let e={success:!1,errorStatus:500,sbpToken:void 0,exp:void 0},r=await i.getToken();if(r){if(a&&o&&n&&r==a&&n>Math.round(Date.now()/1e3))e={success:!0,errorStatus:void 0,sbpToken:o,exp:n};else try{let{data:t}=await i.getSbpToken(r);t.sbpToken&&t.exp&&(a=r,o=t.sbpToken,n=t.exp,e={success:!0,errorStatus:void 0,sbpToken:t.sbpToken,exp:t.exp})}catch(t){a=void 0,o=void 0,n=void 0;let r=t&&t.status||500;e.errorStatus=r,u("error","Error getting SBP token: ",l(t))}}else a=void 0,o=void 0,n=void 0;return s=void 0,e},ei=async(e,r)=>{let t={success:!1,errorStatus:500},s=r||i.getToken();try{await i.linkSSOAccount(e,s),t={success:!0,errorStatus:null}}catch(r){let e=r&&r.status||500;t.errorStatus=e,u("error","Error linking SSO account: ",l(r))}return t},eu=async(e,r)=>{let t={success:!1,errorStatus:500},s=e||i.getToken();try{let{data:e}=await i.getSSOIdentities(s,r);t={success:!0,data:e,errorStatus:null}}catch(r){let e=r&&r.status||500;t.errorStatus=e,u("error","Error getting SSO identities: ",l(r))}return t},el=async e=>{let r={success:!1,errorStatus:500};try{let{data:t}=await i.getSSOIdentityTypes(e);r={success:!0,data:t,errorStatus:null}}catch(t){let e=t&&t.status||500;r.errorStatus=e,u("error","Error getting SSO identity types: ",l(t))}return r},ed=async(e,r)=>{let t={success:!1,errorStatus:500},s=r||i.getToken();try{await i.deleteSSOIdentity(e,s),t={success:!0,errorStatus:null}}catch(r){let e=r&&r.status||500;t.errorStatus=e,u("error","Error deleting SSO identity: ",l(r))}return t},eg=async(e,r)=>{if(e&&r){let{success:t,preAuthorizedEntitlements:s=[]}=await eo(i.getToken(),!1);return!!(t&&s?.length&&s.every(r=>e.includes(r.entitlement)))&&(window.location.assign(r),!0)}},eS=(e=[])=>{let r=e.map(({entitlement:e})=>e),t=e=>e.every(e=>r.includes(e));return Object.entries({readOnly:["cnn_subs"],allAccess:["cnn_subs","cnn_subs_video"],ukLive:["cnn_uk"]}).reduce((e,[r,s])=>(t(s)&&e.push(r),e),[])},ey=async e=>{let r={success:!1,errorStatus:500},t=i.getToken();if(e&&t)try{r=await i.assignRegCode(t,e)}catch(t){let e=t&&t.status||500;r.errorStatus=e,u("error","Error assigning regcode to user: ",l(t))}return r},eh=async e=>{let r={success:!1,errorStatus:500};if(e)try{r=await i.verifyRegCode(e)}catch(t){let e=t&&t.status||500;r.errorStatus=e,u("error","Error verifying regcode: ",l(t))}return r},em=async e=>{let r={success:!1,errorStatus:500},t=i.getToken();if(e&&t)try{r=await i.getRegcodeMetadata(t,e)}catch(t){let e=t&&t.status||500;r.errorStatus=e,u("error","Error getting metadata for regcode: ",l(t))}return r},eE=async(e,r)=>{let t={success:!1,errorStatus:500},s=e||i.getToken();if(s&&r)try{t=await i.createAmazonAssociation(s,r)}catch(r){let e=r&&r.status||500;t.errorStatus=e,u("error","Error creating Amazon association: ",l(r))}return t},ep=async e=>{let r={success:!1,errorStatus:500};try{r=await i.checkAmazonEligibility(e)}catch(t){let e=t&&t.status||500;r.errorStatus=e,u("error","Error checking Amazon eligibility: ",l(t))}return r};e.exports={authClient:i,createAccountDaltonErrorMessageMapping:R,ssoConfirmPasswordDaltonErrorMessageMapping:b,loginDaltonErrorMessageMapping:C,updateAccountErrorMessageMapping:{432:"1 - 30 letters and numbers, can also include hyphens, apostrophes, periods, and commas."},loginPageDaltonErrorMessageMapping:L,mvpdErrorMessageMapping:{429:"Sorry, this TV provider account is already linked to another CNN+ account.",default:"Sorry, we cannot link your TV Provider right now. Please try again later."},validateEmail:e=>{let r="";return e?e.length>255?r=P.emailSize:/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/i.test(e)||(r=P.validEmail):r=P.requiredEmail,r},validatePassword:e=>{let r="";return e?e.length>255&&(r=P.passwordSize):r=P.requiredPassword,r},validateRegistrationPassword:e=>{let{registrationPassword:r}=P;return x({criteria:{min:/.{8,}/,upperLowerCase:/[a-zA-Z]/,numbers:/^(?=.*[0-9]).+$/},messageMap:r,value:e})},validateDisplayName:e=>{let{displayName:r}=P;return x({criteria:{length:/^.{0,30}$/,hasValidChars:/^(?=.*[a-zA-Z0-9]|^$)([a-zA-Z0-9\-,.' ])*$/},messageMap:r,value:e})},getRegionalLegalDocs:$,acceptTOS:e=>q($(e),"TOS"),acceptUkAllAccessTOS:()=>q([O.UK_ALL_ACCESS],"UK All Access TOS"),getUserInfo:X,updateAccountInfo:er,registerUser:W,registerUserSSO:H,getEmailLookup:ee,loginUser:Q,resendConfirmation:F,resetPassword:Z,changePassword:B,confirmReset:Y,confirmEmail:K,deleteAccount:et,linkMVPDAuthn:ea,refreshAuthToken:es,getPreAuthEntitlements:eo,getSbpToken:en,linkSSOAccount:ei,getSSOIdentities:eu,deleteSSOIdentity:ed,REMEMBER_ME_DURATION:90,getSSOIdentityTypes:el,deDupDaltonResponse:D,registerUserSSOApple:J,bypassEntitlements:eg,checkEntitlements:eS,checkEntitlementsForAccess:(e=[],r=[])=>{let t=eS(e);return r.reduce((e,r)=>(e[r]=t.includes(r),e),{})},needsConsent:e=>$().some(r=>!V(e,r)),needsUkAllAccessConsent:e=>!V(e,O.UK_ALL_ACCESS),hasUniversalProductIndicator:function(e,r){return r.every(r=>e.some(({universalProductIndicator:e})=>e===r))},getProviderIdByUpi:(e,r)=>{let t=Array.isArray(e)?e:[];return t.find(({universalProductIndicator:e})=>e===r)?.providerId},assignRegCode:ey,verifyRegCode:eh,getRegcodeMetadata:em,UNAUTH_ERROR_CODES:_,createAmazonAssociation:eE,checkAmazonEligibility:ep}}}]); /* window.modules["27"] */ "use strict";(self.modules=self.modules||[]).push([["27"],{27:(e,t,n)=>{let{checkGeoCountry:o}=n("1"),{getCookie:r}=n("40"),{getQueryParam:a}=n("44"),{subscribe:c}=n("65"),{zionEventHandler:s}=n("10"),{isAmazonPvcCtvFlowEnabled:i}=n("43"),u=e=>{try{let t=decodeURIComponent(e);return/(^\/(?!\/)([A-Za-z0-9\-._~:/?#[\]@!$&'()*+,;=]*\/?))/.test(t)}catch(e){return!1}},l=e=>new URL(e,u(e)?window.location.origin:void 0),d=e=>a(l(e).searchParams,"source"),m=(e,t)=>{e&&(t?(e.setAttribute("disabled","true"),e.setAttribute("aria-disabled","true")):(e.removeAttribute("disabled"),e.removeAttribute("aria-disabled")))},p=({searchParams:e,queryParam:t,storage:n=window.sessionStorage})=>{n.setItem(t,e.get(t)),e.delete(t);let o=e.toString();return o&&`?${decodeURIComponent(o)}`},_=e=>({link_text:"amazon prime video",action:"click",component_name:"sign in",component_type:"user account",component_id:e?.closest("[data-uri]")?.dataset.uri,user_flow:"amazon pvc"});e.exports={setElementDisabled:m,setDisabledOnValidationEvent:(e,t)=>c(t,({valid:t})=>m(e,!t)),determineSource:e=>{let{prioritySource:t,defaultSource:n,promoPath:o}=e;return o&&t?`${o}__${t}`:o||t||window?.WM?.referrer||document.referrer||n},stripStoreQueryString:p,checkExperienceRestricted:({region:e,logo:t="cnn"})=>{let n="UK"===e?"GB":e,r=n&&!o(n);return r&&document.querySelector(".layout-user-account").classList.add(`layout-user-account--restricted-${t}`),r},isRelativePath:u,checkForQueryCode:({codeName:e,urlUtil:t=new URL(window.location),storage:n=window.sessionStorage})=>{let o=n.getItem(e),r=t.searchParams,a=!o&&r.get(e);if(a){let o=p({searchParams:r,queryParam:e,storage:n});window.location.assign(`${t.pathname}${o}`)}return o&&n.removeItem(e),{codeInQuery:a,storedCode:o}},suppressToasts:()=>{let e=document.querySelectorAll(".toast-popup__container");e?.length>0&&e.forEach(e=>e.style.display="none")},userAccount:(e,t)=>{"wall"===e&&document.dispatchEvent(new CustomEvent("init-wall-activation",{detail:t}))},getUrlObj:l,getSourceParam:d,clearStaleProductSelection:(e,t)=>{t.length>1&&t.forEach(t=>{let n=e.dataset.frequency.toLowerCase();t.getSelectedItem()&&t.el.dataset.name!==n&&t.clearSelection()})},revealAndUpdatePvcLink:({linkEl:e,redirectClient:t,variation:r="default",variations:a={}})=>{if(!e||!t)return;let{getRegCode:c}=n("61"),s="user-account-shared__amazon-pvc-text";if(!o("US")||r===a.RESET_SUCCESS||c()&&!i()){e.closest(`.${s}`)?.classList.add(`${s}--hide`);return}let u=t.getRedirectUrl(),m=d(window.location.href);e.setAttribute("href",t.appendParams({targetUrl:l("/account/log-in/amazon-pvc"),customParams:{..."/"!==u&&{redirect:u},...m&&{source:m}}}))},redirectToAmazonPVCLogin:({redirectClient:e,urlObj:t,viewName:n})=>{let o=t||l("/account/log-in/amazon-pvc"),r=e.appendParams({targetUrl:o,...n&&{customParams:{view:n}}});e.triggerRedirect({redirectUrl:r})},getCountryCode:()=>{try{return r("countryCode")||"US"}catch(e){return"US"}},hideUserAccountLayoutFooter:()=>{document.querySelector(".layout-user-account")?.classList.add("layout-user-account--no-footer")},getAmazonPvcLinkClickAttributes:_,trackAmazonPvcLinkClickForZion:(e,t)=>{s({href:e.href,type:"A",customAttributes:_(t)},"GenericLinkClick")},trackPVCEnterPasswordOnScreenForZion:e=>{s({component_id:e?.closest("[data-uri]")?.dataset.uri,component_type:"user account",traits:{component_name:"enter cnn password",user_flow:"amazon pvc"}},"ComponentOnScreen")},trackSignInClickForZion:e=>{s({href:window.location.href,type:"BUTTON",customAttributes:{link_text:"sign in",action:"click",component_name:"enter cnn password",component_type:"user account",component_id:e?.closest("[data-uri]")?.dataset.uri,user_flow:"amazon pvc"}},"GenericLinkClick")},trackAmazonPVCClick:(e,t)=>{s({href:window.location.href,type:"BUTTON",customAttributes:{link_text:e,action:"click",component_name:"set up cnn account",component_type:"user account",component_id:t,user_flow:"amazon pvc"}},"GenericLinkClick")},trackAmazonPVCAccountSetupScreen:e=>{s({component_type:"user account",component_id:e,traits:{component_name:"set up cnn account",user_flow:"amazon pvc"}},"ComponentOnScreen")},PROCESSING_LABEL:'Processing...'}}}]); /* window.modules["28"] */ "use strict";(self.modules=self.modules||[]).push([["28"],{28:(e,t,r)=>{let s=r("412"),{isRelativePath:a,getUrlObj:i}=r("27"),{appendQueryParam:l,validateQueryParam:h}=r("44"),{isInternalURL:n}=r("1"),{getPreAuthEntitlements:c}=r("26"),d=r("453"),u=r("564");e.exports=class{constructor({url:e,excludedPaths:t,defaultUrl:r}){this.url=e||new URL(window.location),this.excludedPaths=t||[],this.defaultUrl=r||"/",this.docReferrer=window?.WM?.referrer||document.referrer,this.urlReturnTypes={PATH:"path",OBJECT:"object",FULL:"full"}}_checkPathName(e){let t=a(e)?e:new URL(e).pathname;return t!==this.url.pathname&&!this.excludedPaths?.find(e=>t.startsWith(e))}getValidatedUrl(e){try{return n(e)&&this._checkPathName(e)&&s(e)}catch(e){return!1}}getRedirectUrl({priorityRedirectParam:e,priorityRedirectUrl:t,secondaryRedirectUrl:r,returnType:s}={}){let a=this.url.searchParams.get(e)||t||this.url.searchParams.get("redirect"),i=this.getValidatedUrl(a)||r&&this.getValidatedUrl(r)||this.getValidatedUrl(this.docReferrer)||this.defaultUrl;if(!s)return i;{let e=new URL(i,window.location.origin);return s===this.urlReturnTypes.PATH&&`${e.pathname}${e.search&&e.search}`||s===this.urlReturnTypes.OBJECT&&e||s===this.urlReturnTypes.FULL&&e.href}}triggerRedirect=({redirectUrl:e,fallbackRedirect:t="/"})=>{let r=e&&n(e)?e:t;window.location.assign(r)};appendParams=({targetUrl:e,sourceUrl:t=this.url,customParams:r={}})=>{let s=e instanceof URL?e:new URL(e),a=t instanceof URL?t:new URL(t),i=s.href,n=new Map;return Object.entries(r).forEach(([e,t])=>{n.set(e,{value:t,isCustom:!0})}),a.searchParams.forEach((e,t)=>{n.has(t)||n.set(t,{value:e,isCustom:!1})}),n.forEach(({value:e,isCustom:t},r)=>{let a=h(r,e);!a||s.searchParams.has(r)||!t&&(a.includes(i)||i.includes(a))||l(s,r,a)}),s.href};removeParams=({targetUrl:e,params:t=[]})=>{let r=e instanceof URL?e:i(e);return t.forEach(e=>r.searchParams.delete(e)),r.href};redirectIfUserHasEntitlement=async(e,t,r)=>{if(r?.length){let{preAuthorizedEntitlements:s}=await c(e,!1);if(!s?.length)return!1;let a=s.map(({entitlement:e})=>e),l=r.find(({bypassEntitlements:e})=>d(u(e),u(a)));if(l){let e=l.entitlementsGroupRedirect,r=this.getRedirectUrl({priorityRedirectParam:"redirect",priorityRedirectUrl:e||t});return this.triggerRedirect({redirectUrl:this.appendParams({targetUrl:i(r)})}),!0}}return!1}}}}]); /* window.modules["30"] */ "use strict";(self.modules=self.modules||[]).push([["30"],{30:(e,r,s)=>{let{authClient:t}=s("26"),a=s("24"),{actions:n,dispatch:o}=s("65"),{get:E}=s("171"),c=s("16").setup({file:"/index.js"}),{addScriptTag:i}=s("1"),R=[],N={},T={},l={LOGIN:"LOGIN",LOOKUP:"LOOKUP",NEWSLETTERS:"NEWSLETTERS",REGISTRATION:"REGISTRATION",PAYMENT:"PAYMENT",PWRESET:"PWRESET",VERIFICATION:"VERIFICATION"},A={[l.LOGIN]:"",[l.LOOKUP]:"",[l.NEWSLETTERS]:"",[l.REGISTRATION]:"",[l.PAYMENT]:"",[l.PWRESET]:"",[l.VERIFICATION]:""},d={[l.LOGIN]:{srcEnvVar:"ARKOSE_LOGIN_SRC",callbackFnName:"setupArkoseLogin",id:"login-arkose-script"},[l.LOOKUP]:{srcEnvVar:"ARKOSE_LOOKUP_SRC",callbackFnName:"setupArkoseLookup",id:"lookup-arkose-script"},[l.NEWSLETTERS]:{srcEnvVar:"ARKOSE_NEWSLETTERS_SRC",callbackFnName:"setupArkoseNewsletters",id:"arkose-newsletters-script"},[l.REGISTRATION]:{srcEnvVar:"ARKOSE_REGISTRATION_SRC",callbackFnName:"setupArkoseReg",id:"registration-arkose-script"},[l.PAYMENT]:{srcEnvVar:"ARKOSE_REGISTRATION_SRC",callbackFnName:"setupArkosePayment",id:"payment-arkose-script"},[l.PWRESET]:{srcEnvVar:"ARKOSE_REGISTRATION_SRC",callbackFnName:"setupArkoseResetPassword",id:"reset-password-arkose-script"},[l.VERIFICATION]:{srcEnvVar:"ARKOSE_LOGIN_SRC",callbackFnName:"setupVerificationArkose",id:"arkose-user-verification-script"}},O=async e=>{let r=a.get("ENABLE_ARKOSE_DATA_EXCHANGE"),s=A[e];if(!s&&r){let r={use_case:e||"",referer:window.location.href,selected_site:"cnn"};try{let{data:a}=await t.getDataExchange(r);A[e]=a,s=a}catch(e){c("error",e.message,{stack:e.stack})}}return s},S=async({enforcementConfig:e,setBy:r,useCase:s,enforcement:t,isMultiUse:a})=>{let E=setTimeout(()=>{o(n.ARKOSE.SCRIPT_LOAD_FAILED)},15e3),{onReady:c,onCompleted:i}=e;T[s]=0;let R=await O(s);t?.setConfig({...e,data:R&&{blob:R}||{},onReady:()=>{clearTimeout(E),c({enforcement:t})},onCompleted:i,onError:async()=>{clearTimeout(E),await C({enforcementInstance:t,useCase:s,retryTimes:T[s]})}}),a&&window.arkoseEnforcementCNN?.sharedEnforcements[s]&&(window.arkoseEnforcementCNN.sharedEnforcements[s].setBy=r)},I=async e=>{let{enforcementConfig:r,useCase:s,isMultiUse:t,setBy:a}=e,n=d[s],{callbackFnName:o,id:E}=n||{};!r||!o||document.getElementById(E)||void 0!==window[o]||(t&&(window.arkoseEnforcementCNN||(window.arkoseEnforcementCNN={}),window.arkoseEnforcementCNN.sharedEnforcements||(window.arkoseEnforcementCNN.sharedEnforcements={})),window[o]=async r=>{t&&(window.arkoseEnforcementCNN.sharedEnforcements[s]={enforcement:r,setBy:a}),await S({...e,enforcement:r})},u(n))},m=async e=>{let{useCase:r,setBy:s,resetOnReady:t}=e,a=(window.arkoseEnforcementCNN?.sharedEnforcements||{})[r],n=a?.setBy!==s;if(a&&n){let{enforcement:r}=a;await S({...e,enforcement:r,enforcementConfig:{...e.enforcementConfig,onReady:t}}),r.reset()}return n},k=({srcEnvVar:e,callbackFnName:r,id:s})=>{let t=N[s]??0;if(3===t){f(),o(n.ARKOSE.SCRIPT_LOAD_FAILED);return}f(),u({srcEnvVar:e,callbackFnName:r,id:s}),N[s]=t+1},f=()=>{R.forEach(e=>{let r=document.getElementById(e);r&&r.remove()})},u=({srcEnvVar:e,callbackFnName:r,id:s})=>{e&&s&&r&&(i({src:a.get(e),async:!0,defer:!0,id:s,onerror:()=>{k({srcEnvVar:e,callbackFnName:r,id:s})},data:{callback:r}}),R.push(s))},w=async()=>{try{let e=await E("https://status.arkoselabs.com/api/v2/status.json");return"none"===e.status.indicator}catch(e){return c("error","Error checking arkose health: ",e),!1}},C=async({enforcementInstance:e,useCase:r,retryTimes:s=0})=>{if(e){if(await w()&&s{e.run()},500);return}o(n.ARKOSE.SCRIPT_LOAD_FAILED)}};e.exports={loadAndInitializeArkose:I,enforcementOnError:C,createArkoseScript:u,getDaexData:O,MAX_RETRY_COUNT:3,USE_CASES:l,checkIfReset:m}}}]); /* window.modules["32"] */ "use strict";(self.modules=self.modules||[]).push([["32"],{32:(e,t,i)=>{let{trackMetrics:r}=i("9"),o=i("16").setup({file:"/index.js"});e.exports={adobeMetrics:function(e,t){try{r({type:"click-interaction",data:{interaction:`video: ${e}: ${t}`}})}catch(e){o("error","error logging adobe metrics",e)}}}}}]); /* window.modules["33"] */ "use strict";(self.modules=self.modules||[]).push([["33"],{33:I=>{let e={ACTIVE:"active",INACTIVE:"inactive",MEDIUM:"medium",SMALL:"small"};Object.freeze(e),I.exports={EnumDotType:e,getDotStyle:(I,E,M)=>{let A=e.SMALL;return ME?I===E+1&&(A=e.MEDIUM):I=E-2?A=e.INACTIVE:I===E-3&&(A=e.MEDIUM):A=e.ACTIVE,A)}}}}]); /* window.modules["34"] */ "use strict";(self.modules=self.modules||[]).push([["34"],{34:(t,e,n)=>{let{v4:r}=n("163"),o=n("24"),i=n("171"),{getUserHistory:l}=n("533"),{getZaid:a}=n("1"),{CONTENT_RECS_API_PERSONALIZE:u,formatTenantId:s,getThumbnailUrl:d,buildRequestBody:_,getRecommendations:c,getMainVideoStellarId:N}=n("304"),{getProxyRequestParams:T}=n("263"),{fetchContents:E}=n("249"),f={relatedContent:o.get("CONTENT_RECS_RELATED_TENANT_ID"),personalizedContent:o.get("CONTENT_RECS_PERSONALIZED_TENANT_ID"),popularContent:o.get("CONTENT_RECS_POPULAR_TENANT_ID"),trendingContent:o.get("CONTENT_RECS_TRENDING_TENANT_ID"),homepageModule:o.get("CONTENT_RECS_HOMEPAGE_TENANT_ID"),watchNextPopular:o.get("CONTENT_RECS_WATCHNEXT_POPULAR_TENANT_ID"),watchNextTrending:o.get("CONTENT_RECS_WATCHNEXT_TRENDING_TENANT_ID"),watchNextRelated:o.get("CONTENT_RECS_WATCHNEXT_RELATED_TENANT_ID"),watchNextPersonalized:o.get("CONTENT_RECS_WATCHNEXT_PERSONALIZED_TENANT_ID")};function h({tenantId:t,mainVideoUri:e,numberOfItems:n,surface:r="watch-next",dedupe:o=!1}){let i=_({numberOfItems:n,contentTypes:["video"],tenantId:t,includeHistory:!0,surface:r,dedupe:o,customSuffix:"web",throwIfMissingZaid:!1});if(e){let t=N(e);Array.isArray(i.user.lifetime_history)||(i.user.lifetime_history=[]),i.user.lifetime_history.push({stellar_id:t})}return c(i)}let C=o.get("LIVESTORY_CLIENT_KEY_CONTENT_API",""),g=o.get("LIVESTORY_HOSTS_CONTENT_API",{}),p=o.get("WATCHNEXT_FALLBACK_PATH","");function m(t){if(!t||!t._ref)return null;let e=t._ref,n=e.match(/(\/_{1,2}components\/.+)/),r=btoa(n?n[1]:`/_components/${e.split("/_components/")[1]}`),o=t.thumbnail?.[0]?.url||t.thumbnails?.[0]?.url||"",i=t.canonicalUrlPath||"";return{stellar_id:r,url:i?`${window.location.origin}${i}`:"",headline:t.headline||"",description:t.description||"",durationLabel:t.duration||" ",source:t.source||"",thumbnail:o?d(o):""}}async function A(){let t=function(){if(g.all)return`https://${g.all}`;let t="undefined"!=typeof document?document.querySelector("html")?.getAttribute("lang"):null;if(t&&g[t])return`https://${g[t]}`}();if(!p||!C||!t)throw Error("Video playlist fallback not configured");let{url:e,headers:n,parser:r}=T(p,C,t,"json");if(!e)throw Error("Video playlist fallback: unable to build proxy request");let{data:o}=await E(e,{headers:n,attempt:0,maxRetryCount:1,parser:r,getRetryDelay:()=>5e3});if(!o?.videos?.length)throw Error("Video playlist fallback: empty response");let i=o.videos.map(m).filter(Boolean);if(!i.length)throw Error("Video playlist fallback: no valid videos after transform");return{recommendations:i}}t.exports={getRelatedContent:function(t,e,n,r=!1,o=f.relatedContent){return c(_({numberOfItems:t,tenantId:o,includeHistory:!0,surface:n,dedupe:r}))},getPersonalizedContent:function({numberOfItems:t,contentTypes:e,sections:n=[],surface:r,dedupe:o=!1,tenantId:i=f.personalizedContent}){return c(_({numberOfItems:t,contentTypes:e,sections:n,tenantId:i,includeHistory:!0,surface:r,dedupe:o}))},getPopularContent:function({numberOfItems:t,contentTypes:e,sections:n=[],surface:r,dedupe:o=!1,tenantId:i=f.popularContent}){return c(_({numberOfItems:t,contentTypes:e,sections:n,tenantId:i,includeHistory:!1,surface:r,dedupe:o}))},getTrendingContent:function({numberOfItems:t,contentTypes:e,sections:n=[],surface:r,dedupe:o=!1,tenantId:i=f.trendingContent}){return c(_({numberOfItems:t,contentTypes:e,sections:n,tenantId:i,includeHistory:!0,surface:r,dedupe:o}))},getHomepagePersonalizedContent:function(t,e){let n=`${f.homepageModule}.web`,o={request_id:`ml-manual-${r()}`,tenant_id:n,requested_recommendation_count:e,user:{user_agent:window.navigator.userAgent,zaid:a({throwIfMissing:!0}),lifetime_history:l()},candidate_pool:t.map(t=>({stellar_id:t}))};return i.post(u,o).then(({error:t,tenant_id:e,recommendations:r})=>{if(t)throw Error(`Recommendations fetch failed! Error: ${t}`);if(!Array.isArray(r)||r?.length({stellarId:t,score:e})),isFallbackResult:e!==n,tenantId:e,model:f.homepageModule}})},formatTenantId:s,getThumbnailUrl:d,getTrendingWatchNextContent:function(t){let e=f.watchNextTrending;return h({...t,tenantId:e})},getPopularWatchNextContent:function(t){let e=f.watchNextPopular;return h({...t,tenantId:e})},getRelatedWatchNextContent:function(t){let e=f.watchNextRelated;return h({...t,tenantId:e})},getPersonalizedWatchNextContent:function(t){let e=f.watchNextPersonalized;return h({...t,tenantId:e})},getVideoPlaylistFallback:A}}}]); /* window.modules["35"] */ "use strict";(self.modules=self.modules||[]).push([["35"],{35:(e,r,t)=>{let a=t("623"),s=t("24"),n=t("16").setup({file:"/index.js"}),{formatLoggingData:o}=t("569"),i=new a({env:s.get("DALTON_ENV")||"production",cookieVersion:s.get("DALTON_COOKIE_VERSION")||"v1.1",forwardClientInfo:!0,appId:s.get("TOP_AUTH_SERVICE_APP_ID"),cookieRefreshAfterDays:5,pianoEnabled:s.get("PIANO_ENABLED")&&s.get("PIANO_ENABLE_AUTH_SYNC")}),c=e=>"CA"===e?"US":e,u=async e=>{let r=await i.requestRegCode(e),{errorStatus:t}=r;return t&&n("error","Error requesting reg code: ",t),r},l=async e=>{let r={success:!1,errorStatus:500};if(e){let{errorStatus:t}=r=await i.authnRegCode(e);t&&n("error","Error authenticating reg code: ",t)}return r},d=async e=>{let r={success:!1,errorStatus:500},t=s.get("REGWALL_API_V2_ENABLED")?"2":"1";if(e){let{errors:a}=r=await i.getActiveSub(e,t);a&&n("error","Error getting active subscriptions: ",a)}return r},p=async e=>{let r={success:!1,errorStatus:500},t=s.get("REGWALL_API_V2_ENABLED")?"2":"1";if(e){let{errors:a}=r=await i.getSub(e,t);a&&n("error","Error getting subscriptions: ",a)}return r},g=async(e,r="US")=>{let t=s.get("REGWALL_API_V2_ENABLED")?"2":"1",a="UK"===r?s.get("GIZMO_UK_VERSION","2"):t,o=await i.getProducts(e,r,a),{errors:c}=o;return c&&n("error","Error getting products: ",c),o},y=async e=>{let r={success:!1,errorStatus:500};if(e){let{errors:t}=r=await i.getPaymentSources(e);t&&n("error","Error getting payment sources: ",t)}return r},f=async(e,r,t)=>{let a={success:!1,errorStatus:500};if(e&&r&&t){let{errors:s}=a=await i.addPaymentSource(e,r,c(t));s&&n("error","Error adding payment source: ",s)}return a},m=async(e,r,t,a)=>{let s={success:!1,errorStatus:500};e&&r&&t&&(s=await i.updateSubPaymentSource(e,r,t,c(a)));let{errors:o}=s;return o&&n("error","Error updating subscription payment source: ",o),s},h=async(e,r,t)=>{let a={success:!1,errorStatus:500},{purchases:s}=r||{};s?.length&&(a=s.filter(e=>e.idempotencyKey).length===s.length?await i.addPurchase(e,r,c(t)):{...a,errorStatus:422,errors:[{field:null,error:"error",message:"Sorry, we couldn't process your payment. Please try again."}]});let{errors:o}=a;return o&&n("error","Error adding purchase: ",o),a},E=async(e,r="US")=>{let t={success:!1,errorStatus:500},a=i.getToken();if(a&&e)try{(t=await i.getPurchasePreview(a,e,c(r))).success||n("error","Error getting purchase preview: ",t.errors||o(t))}catch(e){t={success:!1,errorStatus:e&&e.status||500},n("error","Error getting purchase preview: ",o(e))}return t},S=async(e,r)=>{let t={success:!1,errorStatus:500,clientSecret:void 0};e&&(t=await i.setupIntent(e,c(r)));let{errors:a}=t;return a&&n("error","Error creating setup intent: ",a),t},w=async(e,r,t)=>{let a={success:!1,errorStatus:500};e&&r&&(a=await i.cancelSub(e,r,c(t)));let{errors:s,errorStatus:o}=a;return(s||o)&&n("error","Error cancelling subscription: ",{status:o,data:s}),a},_=async(e,r,t)=>{let a={success:!1,errorStatus:500};if(e&&r){let{errors:s,errorStatus:o}=a=await i.cancelSubImmediate(e,r,c(t));(s||o)&&n("error","Error immediately cancelling subscription: ",{status:o,data:s})}return a},b=async(e,r="US")=>{let t=await i.getProductTransitionStrategy({productOrSubId:e,type:"productId",region:c(r)}),{errors:a}=t;return a&&n("error","Error getting product/subscription transitions: ",a),t};e.exports={AUTH_CLIENT:i,resolveGizmoRegion:c,getActiveSub:d,getAllSubs:p,requestRegCode:u,authnRegCode:l,paymentErrorMapping:{expired_card:"Enter a valid expiration date.",incorrect_zip:"Enter a valid ZIP Code.",incorrect_cvc:"Enter a valid security code.",card_declined:"Unable to process payment.",processing_error:"Unable to process payment. Try again.","internal.error":"Unable to process payment. Try again.","transition.strategy.notfound":'Sorry, but we can\'t process your request right now. Please contact our Help Center for support.'},marketingConsentData:{marketingOptIns:[{name:"marketingOptIn",label:"Check here if you would like to receive updates and offers from CNN and its affiliates",preselected:!0},{name:"marketingOptIn",label:"Yes! CNN and WarnerMedia News & Sports may use my email address along with my interests, interactions, and device data to send me tailored email and other offers through social media or other sites and apps.",type:"gdpr"},{name:"marketingAffiliateOptIn",label:"Yes! CNN and WarnerMedia News & Sports may also share those details with Affiliates so they may send me tailored email and other offers. CNN and WarnerMedia News & Sports are requesting this consent on behalf of their affiliates, which will use the information under their respective privacy policies.",type:"gdpr"}]},getProducts:g,getPaymentSources:y,addPaymentSource:f,updateSubPaymentSource:m,addPurchase:h,getPurchasePreview:E,cancelSubscription:w,cancelSubscriptionImmediate:_,createSetupIntent:S,getProductTransitions:b}}}]); /* window.modules["36"] */ "use strict";(self.modules=self.modules||[]).push([["36"],{36:(e,t,r)=>{let{authClient:a,getPreAuthEntitlements:i,checkEntitlementsForAccess:l,needsUkAllAccessConsent:n}=r("26"),{getGeoCountry:o,getGeoState:s,getGeoDataCookie:c}=r("1"),{resolveEnabledRegion:u}=r("51"),{currencyToRegionMap:d,isAllAccessSubscription:g,getCurrentPhaseNumber:p}=r("37"),{parseJSON:y}=r("15"),E=r("16").setup({file:"/index.js"}),C={GB:"UK"},m="cnn_nav_pmt_status",f=["VT"],w=e=>f.includes(e?.toUpperCase()),D=async()=>{let{preAuthorizedEntitlements:e=[]}=await i(a.getToken(),!1);return l(e,["allAccess"]).allAccess},S=async()=>{let{preAuthorizedEntitlements:e=[]}=await i(a.getToken(),!1);return l(e,["ukLive"]).ukLive},h=async e=>await S()&&"UK"===u()&&n(e),T=async()=>{let{preAuthorizedEntitlements:e=[]}=await i(a.getToken(),!1),{readOnly:t,allAccess:r}=l(e,["readOnly","allAccess"]);return!r&&t},v=e=>{if(!e)return;let t=String(e).toUpperCase();return C[t]||t},A=e=>{if(e)return String(e).toUpperCase()},U=(e={})=>{let{country:t,state:r}=e.card||{},a=e.currency||e.details?.scheduleDetails?.[0]?.currency;return{region:v(t)||v(d[a])||v(o()),state:A(r)||A(s())}},_={DEFERRED:"DEFERRED",IMMEDIATE:"IMMEDIATE"},N=(e,t)=>{let r=new Date(e);return r.setUTCFullYear(r.getUTCFullYear()+t),r.getTime()},M=e=>{if(e.billingPeriod?.interval==="year")return!0;let t=p(e.details?.scheduleDetails);return t?.billingPeriod?.interval==="year"},k=(e={})=>{let t=(e.details?.scheduleDetails||[]).filter(e=>e.billingPeriod?.interval==="year"&&Number.isFinite(e.startDateMillis)).map(e=>e.startDateMillis);return t.length?Math.min(...t):Number.isFinite(e.purchaseDateMillis)?e.purchaseDateMillis:void 0};e.exports={isAllAccessSubscriber:D,isUkLiveSubscriber:S,needsUkLiveTosConsent:h,isReadOnlySubscriber:T,verifySubIdFormat:e=>"string"==typeof e&&e.length{let a={},i=!0;try{a=JSON.parse(t||"{}")}catch(e){i=!1,E("error",`Error parsing localized ${r} copy`,e)}let{region:l}=U(e),n=a[l]||a.US;return i&&(n?l&&!a[l]&&E("error",`No ${r} copy for region ${l}, falling back to US`):E("error",`No ${r} copy for ${l||"an unknown region"} and none for US`)),n||{}},getCancelSurveyEntryId:e=>"string"==typeof e?e:e?.id,getCancellationType:(e={},t=Date.now())=>{let{DEFERRED:r,IMMEDIATE:a}=_;if(!M(e))return r;let{region:i,state:l}=U(e);if("CA"===i&&"QC"===l)return a;if(!g(e))return r;let n=k(e),o=void 0!==n,s=o&&t{let e=c();if(!e)return!0;let{region:t,country:r}=e;return!t||!r||"US"===r&&w(t)},getCachedExpiredPaymentCheck:()=>{let e=y(window.localStorage.getItem(m),!0),t=e&&Date.now()-e.timestamp;return e&&t{window.localStorage.setItem(m,JSON.stringify({showNotification:e,timestamp:Date.now()}))},clearCachedExpiredPaymentCheck:()=>{window.localStorage.removeItem(m)}}}}]); /* window.modules["37"] */ "use strict";(self.modules=self.modules||[]).push([["37"],{37:(e,t,r)=>{let{getProducts:a,getProductTransitions:n,resolveGizmoRegion:l}=r("35"),o=r("16").setup({file:"/index.js"}),i=r("113"),u=r("577"),c=r("24"),{escapeHTML:d}=r("44"),{CONFIG_BY_REGION:s,getRegionalCopy:p}=r("573"),g=r("572"),f={1:"one",2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine",10:"ten",11:"eleven",12:"twelve"},m={DAY:{value:"day",abbr:"day",title:"Daily"},WEEK:{value:"week",abbr:"wk",title:"Weekly"},MONTH:{value:"month",abbr:"mo",title:"Monthly"},YEAR:{value:"year",abbr:"yr",title:"Annual"}},I=[{name:m.MONTH.value,text:m.MONTH.title},{name:m.YEAR.value,text:m.YEAR.title}],P={PREFERRED:"preferred",ESSENTIAL:"essential",SINGLE_PLAN:"single-plan"},E={BASIC:"cnn_subs",ALL_ACCESS:"cnn_all_access",UK_LIVE:"uk_live"},v={FULL_PRICE:"FULL_PRICE",WELCOME_OFFER:"WELCOME_OFFER"},h=(e,t)=>e?.universalProductIndicator===t,A=e=>h(e,E.BASIC),b=e=>h(e,E.ALL_ACCESS),y=(e,t)=>eS[e]||S.UK,C=e=>{let t=c.get("DALTON_REGIONS",[]);return 0===t.length?null:t.includes(e)?e:null},R={METERED:"metered",EXCLUSIVE:"exclusive"},N={gizmo:"WEB",iTunes:"APPLE","Google Play":"GOOGLE",Roku:"ROKU",Amazon:"AMAZON",Samsung:"SAMSUNG"},O={WEB:{store:"CNN.com",linkText:"cnn.com/account/settings",link:"https://cnn.com/account/settings"},APPLE:{store:"Apple App Store",linkText:"Apple App Store settings",link:"https://support.apple.com/billing",deviceTypes:{"com.cnn.iphone":{type:"app",storeText:"Apple App Store"},"com.cnn.ctv.tvos":{type:"ctv",storeText:"Apple TV"}}},GOOGLE:{store:"Google Play Store",linkText:"Google Play Store",link:"https://g.co/play/subscriptions",deviceTypes:{"com.cnn.mobile.android.phone":{type:"app",storeText:"Google Play Store"},"com.cnn.ctv.androidtv":{type:"ctv",storeText:"Android TV"}}},ROKU:{store:"Roku Store",linkText:"Roku Store settings",link:"https://my.roku.com/subscriptions",deviceTypes:{"com.cnn.ctv.roku":{type:"ctv",storeText:"Roku TV"}}},AMAZON:{store:"Amazon Appstore",linkText:"Amazon Appstore settings",link:"https://amazon.com/yourmembershipsandsubscriptions",deviceTypes:{"com.cnn.ctv.firetv":{type:"ctv",storeText:"Fire TV"}}},AMAZONPVC:{store:"Amazon Prime Video",linkText:"Amazon Prime Video",link:"https://amazon.com/yourmembershipsandsubscriptions"},SAMSUNG:{store:"Samsung TV App Store",linkText:"Samsung TV App Store settings",link:"https://www.samsungcheckout.com/portal/auth/login.do",deviceTypes:{"com.cnn.ctv.samsung":{type:"ctv",storeText:"Samsung TV"}}}},x=(e={})=>{let{storefrontType:t}=e;return N[t]||""},w={ACTIVE:"active",CANCELED:"canceled",TRIALING:"trialing",TERMINATED:"terminated",PAST_DUE:"past_due"},k=()=>c.get("ENABLE_UM_HORIZON",!1),$=()=>c.get("ENABLE_SUBSCRIPTION_RENEW",!1),U=()=>c.get("ENABLE_EXPIRED_NOTIFICATION",!1),M=(e,t)=>t&&new Intl.NumberFormat("en-US",{style:"currency",currency:t,...Number.isInteger(e)&&{maximumFractionDigits:0,minimumFractionDigits:0}}).format(e),B=e=>(m[e.toUpperCase()]||m.YEAR).title,F=e=>{let t,r,a;let n=Date.now(),l=e.filter(e=>!e.endDateMillis||e.endDateMillis>n);if(1===l.length)r=l[0];else{let e=l.sort((e,t)=>e.startDateMillis-t.startDateMillis);t=e[0],r=e[1],a=e[2]}return{introData:t,baseData:r,longTermData:a}},V=(e,t)=>{let{baseData:r,introData:a}=F(e.map(e=>{let{intervalText:r,intervalOfferText:a}=W({billingInterval:e.phaseBillingInterval||e.billingPeriod?.interval,introCycles:e.phaseCycles||e.cycles,introPhase:e.phaseNumber,productId:t});return{price:e.phasePrice||e.price,currency:e.phaseCurrency||e.currency,cycles:e.phaseCycles||e.cycles,billingInterval:e.phaseBillingInterval||e.billingPeriod?.interval,billingIntervalCount:e.phaseBillingIntervalCount||e.billingPeriod?.intervalCount,phaseNumber:e.phaseNumber,intervalText:r,intervalOfferText:a,formattedPrice:M(e.phasePrice||e.price,e.phaseCurrency||e.currency)}}));return{basePriceData:r,introPriceData:a}},z=(e,t,r)=>r[e].filter(e=>{let{universalProductIndicator:r,gizmoProductId:a,metadata:n}=e,{sku:l,universalProductIndicator:o}=t;return r===o&&(l===a||l===n?.matching_product)&&!ec(l)&&!ec(a)}),G=({region:e,currentSubscription:t,productsByRegion:r,productTransitions:a,isMvpdAuthenticated:n=!1})=>{if(!k())return z(e,t,r);let{sku:l,universalProductIndicator:o}=t,i=new Map;return r[e].forEach(t=>{let{gizmoProductId:r,universalProductIndicator:u,productType:c,availabilityEndTimeMillis:d,billingPeriod:s,phases:p}=t,g=l===r,f=a.find(e=>e.endProductId===r)?.strategyType,m=f&&!ec(r),I=!d||d>Date.now(),P=o===E.ALL_ACCESS||u===E.BASIC,h="US"===e&&(!n||P)||"US"!==e&&!!C(e);if((g||m&&I)&&h){let e=s?.interval||p[0]?.billingPeriod?.interval,r=`${u}::${e}`,a=i.has(r),n=c===v.WELCOME_OFFER;if(!a||n){let e=g?t:{...t,strategyType:f};i.set(r,e)}}}),Array.from(i.values())},Y=async(e,t=!1,r)=>{let{strategies:l=[]}=await n(e.sku,r),{products:o=[]}=await a({},r),u=G({region:r,currentSubscription:e,productsByRegion:{[r]:o},productTransitions:l,isMvpdAuthenticated:t});return i(u,"[0].gizmoProductId","")!==e.sku&&u.reverse(),{subscriptionOptions:u,productTransitions:l,updatePaymentEnabled:!en(e),region:r}},W=e=>{let{billingInterval:t,introCycles:r,introPhase:a,productId:n}=e,l=0==a,o="";if(0==r&&l)console.warn(`Phased product with id ${n} has zero billing cycles`);else if(l&&r){let e=Number(r);if(12===e&&"month"===t||1===e&&"year"===t)o="for first year";else if(1===e)o=`for first ${t}`;else{let r=f[e]||e;o=`for first ${r} ${t}s`}}return{intervalText:t||"",intervalOfferText:o}},K=e=>{let t=e?.currency?.toLowerCase();return t?T[t]:void 0},H=(e,{isPaywall:t=!1}={})=>{let{formattedCost:r,billingInterval:a,productUpi:n,introCycles:l,introPricing:o}=e,i=Number(l)||0;return{cost:d(String(r??"")),interval:d(String(a??"")),productUpi:n,hasIntroOffer:i>0||t&&!!o,isPaywall:t,introPricing:o}},j=({productUpi:e,hasIntroOffer:t,isPaywall:r,introPricing:a},n)=>n.ukLive&&e===E.UK_LIVE?"ukLive":r?a&&n.paywallExpressCheckoutOffer?"paywallExpressCheckoutOffer":n.paywallExpressCheckout?"paywallExpressCheckout":"default":t?"offer":"default",Z=(e,t={})=>{let r=K(e),a=H(e,t),{legalLanguage:n}=s[r]||s.US,l=n[j(a,n)]||n.default,{cost:o,interval:i}=a;return l.split("{cost}").join(o).split("{interval}").join(i)},X=(e,t,r,a)=>e.map((e,n)=>{let l;let{gizmoProductId:o,universalProductIndicator:u,phases:c}=e,d=e;if(c?.length){let{introPriceData:e,basePriceData:t}=V(c,o);d=t,l=e}let{price:s,currency:p,billingInterval:g,billingPeriod:f}=d,m=e.metadata?.strikeThroughPrice,I=g||i(f,"interval",""),P=B(I),E=r||a,v=E?E===o:0===n,h=p&&M(s,p),A=p&&m&&M(m,p),b=e.description||"",y=t?.[o]||{},T=y?.priceDescriptionText||"",_=y?.priceBadgeText||"",L=y?.productPerks||[],S=y?.productOnboardingRedirect||"",D={idPrefix:`payment-${I}`,value:o,productUpi:u,name:o.replace(/(_|-)./g,e=>e[1].toUpperCase()),selected:v,formattedCost:h,labelText:P,labelSubtext:`${h}/${I}`,strikeThroughPrice:A,billingInterval:I,description:b,priceDescription:T,badgeText:_,currency:p,dataAttrs:[{name:"product-id",val:o},{name:"billing-interval",val:P},{name:"product-upi",val:u},{name:"product-price",val:s},{name:"product-currency",val:p},{name:"frequency",val:I},{name:"formatted-price",val:h},{name:"price-description",val:T},{name:"price-badge",val:_},{name:"description",val:b},{name:"product-onboarding-redirect",val:S}]};if(L.length&&(D.productPerks=L),l){let{price:e,cycles:t,currency:r,phaseNumber:a}=l,n=M(e,r);(D={...D,introPrice:n,introCycles:t,introPhase:a}).dataAttrs.push({name:"intro-pricing",val:n},{name:"intro-billing-cycles",val:t},{name:"intro-phase",val:a.toString()},{name:"intro-price",val:e},{name:"intro-currency",val:r});let{intervalText:o,intervalOfferText:i}=W(D);D={...D,labelText:`${D.labelText}`,intervalText:`/${o}`,intervalOfferText:i,labelSubtext:`${h}${n}/${o}${i?` ${i}`:""}`}}return D});function q(e,t){let{MONTH:{value:r},YEAR:{value:a}}=m;return e.reduce((e,r)=>{let a=t.find(e=>e.gizmoProductId===r.productId);return a&&e.push({...r,...a}),e},[]).reduce((e,t)=>{let{phases:n}=t;if(n?.length){let{basePriceData:l,introPriceData:o}=V(n,t.gizmoProductId),{billingInterval:i}=l;t.phaseData={basePriceData:l,introPriceData:o},i===r?e.monthly.products.push(t):i===a?e.annual.products.push(t):console.warn(`Product with id ${t.productId} has unknown billing interval: ${i}`)}return e},{monthly:{products:[]},annual:{products:[]}})}function J(e,t,{monthlyLegalLanguage:r,annualLegalLanguage:a,monthlyOfferLegalLanguage:n,annualOfferLegalLanguage:l}={},{isOfferField:o="isOffer",offerProductIdField:i="offerProductId",fullPriceProductIdField:u="fullPriceProductId",nestedItemsPath:c}={}){let d=Array.isArray(e)?e:[],s=e=>({isOffer:e?.[o],offerProductId:e?.[i],fullPriceProductId:e?.[u]}),p=c?d.flatMap(e=>(e?.[c]||[]).map(s)):d.map(s),g=r,f=a,I=new Map;return p.forEach(e=>{if(!e?.isOffer)return;let r=er(t,e.offerProductId,e.fullPriceProductId);if(I.set(e.offerProductId,r),!r?.product||r.isExpired)return;let{phases:a,gizmoProductId:o}=r.product;if(!a?.length)return;let{basePriceData:i}=V(a,o),u=i?.billingInterval;u===m.MONTH.value&&n?.trim()?g=n:u===m.YEAR.value&&l?.trim()&&(f=l)}),{monthlyLegalLanguage:g,annualLegalLanguage:f,offerResolutions:I}}function Q(e){return e.map(t=>({productId:t.productId,subCardData:{...t,cardVariation:y(e.length,t.isPreferred),legalLanguage:t.legalLanguage}}))}function ee(e,t){let r;let{phases:a,gizmoProductId:n}=e,l=e;if(a?.length){let{basePriceData:e,introPriceData:t}=V(a,n);l=e,r=t}let{price:o,currency:i,billingInterval:u,billingIntervalCount:c,phaseNumber:d}=l,s={price:o,currency:i,billingInterval:u},{intervalText:p="",intervalOfferText:g=""}=r?W({billingInterval:r.billingInterval,introCycles:r.cycles,introPhase:r.phaseNumber,productId:n}):{};return{...t,title:B(u),...r&&{formattedIntroPrice:r.formattedPrice},formattedPrice:M(o,s.currency),intervalText:`/${p||u}${r&&!g?"*":""}`,intervalOfferText:g?`${g}*`:"",billingInterval:u,formattedLegalLanguage:t?.legalLanguage?t.legalLanguage.replace("{price}",M(s.price,s.currency)).replace("{interval}",s.billingInterval):""}}let et=e=>{if(!e)return!0;let t=new Date(e).getTime();return!!Number.isNaN(t)||Date.now()>=t},er=(e,t,r)=>{let a=t||void 0,n=r||void 0,l=a?e.find(e=>e.gizmoProductId===a):void 0,o=n?e.find(e=>e.gizmoProductId===n):void 0;if(!l)return{product:o,productId:n,regionallyAvailableProductId:o?.gizmoProductId,isExpired:!0};let i=et(l.availabilityEndTime),u=i?o:l;return{product:u,productId:i?n:a,regionallyAvailableProductId:u?.gizmoProductId,isExpired:i}},ea=e=>e.sort(({billingInterval:e,dataAttrs:t},{billingInterval:r,dataAttrs:a})=>{let n=t.find(({name:e})=>"product-upi"===e).val,l=a.find(({name:e})=>"product-upi"===e).val;return nl?1:e>r?-1:e{let t=c.get("RESTRICTED_UPI_UPGRADES")??"",{universalProductIndicator:r="",sku:a=""}=e;return(!k()||r!==E.BASIC)&&(("string"==typeof t?[t]:t).includes(r)||r===E.UK_LIVE&&!a?.includes("monthly"))},el=(e={storefrontType:"gizmo"})=>"WEB"===x(e),eo=async(e,t)=>{try{let{success:r,errorStatus:l,strategies:o=[]}=await n(e.sku,t);if(!r||l)throw Error(l);let i=o.reduce((e,t)=>{let r=t.endProductId;return ec(r)&&e.push(r),e},[]),{success:u,errorStatus:c,products:d=[]}=await a({},t);if(!u||c)throw Error(c);let s=i.map(e=>d.find(t=>t.gizmoProductId===e)),p=s.find(e=>A(e)),g=s.find(e=>b(e));return{basicRetentionOffer:p,allAccessRetentionOffer:g}}catch(e){return o("error",`Error retrieving retention products: ${e}`,{stack:e.stack}),{basicRetentionOffer:void 0,allAccessRetentionOffer:void 0}}},ei=(e,t)=>!!e&&e.includes(t),eu=({sku:e,details:{scheduleDetails:t}={},nextBillDateMillis:r},a)=>{if(ei(e,a))return!0;if(t?.length>1){let{sku:e}=t.find(({startDateMillis:e})=>e===r)||{};return ei(e,a)}return!1},ec=e=>ei(e,"cancel_offer");e.exports={formatPrice:M,processEditorialVariables:(e={},t="")=>{for(let[r,a]of Object.entries(e))t=t.replaceAll(`{${r}}`,String(a??""));return t},frequencyTitle:B,billingIntervalText:e=>e&&("day"!==e?`${e}ly`:"daily"),formatProductData:X,formatAmount:(e,t,r)=>e&&t&&r?`${new Intl.NumberFormat("en-US",{style:"currency",currency:e}).format(t)}/${r.interval}`:"",productType:v,intervals:m,baseProductTabs:I,numberWords:f,subCardWrapperVariation:{DEFAULT:"subscription-card-wrapper",RADIO:"subscription-card-wrapper_radio",GROUPED_PRODUCTS:"subscription-card-wrapper_grouped-products"},isBasicSubscription:A,isAllAccessSubscription:b,isBasicRetentionEnabled:()=>c.get("ENABLE_BASIC_RETENTION",!1),isBasicMultiOfferRetentionEnabled:()=>c.get("ENABLE_BASIC_MULTI_OFFER_RETENTION",!1),isAllAccessRetentionEnabled:()=>c.get("ENABLE_ALL_ACCESS_RETENTION",!1),isCancelSurveyEnabled:()=>c.get("ENABLE_CANCEL_SURVEY",!1),filterProductsByBillingInterval:q,generateSubscriptionCardData:ee,structurePaymentPromotionData:e=>({productData:e,productRegion:D(e.region).productsBucket,productIds:e.productIds}),filterPaidProducts:(e,t,r,a,n,l)=>{let o,i;if(!e)return[];let u=e[t],c=[],d=k();return r.forEach(e=>{let t=!!l&&l.find(t=>t.offerProductId===e),r=t?er(u,t.offerProductId,t.fullPriceProductId):null,a=t?r?.productId:e,n=r?.product||u.find(e=>e.gizmoProductId===a);n&&(d||n?.universalProductIndicator!==E.ALL_ACCESS)&&c.push(n)}),a?.length?o=a.flat().reduce((e,{productList:r=[]})=>(r.forEach(({productId:r,productIdUS:a,productIdCA:n,isOfferProduct:l,fullPriceProductId:o,setAsDefaultProduct:c,priceDescriptionText:d,priceBadgeText:s,productPerks:p,productOnboardingRedirect:g})=>{let f={usProducts:a,ukProducts:r,caProducts:n}[t]??r,m=l?er(u,f,o):null,I=l?m?.productId:f;I&&(e[I]={priceDescriptionText:d,priceBadgeText:s,productPerks:p,productOnboardingRedirect:g}),c&&(i=f)}),e),{}):Array.isArray(n)&&(o=n.reduce((e,{productId:t,priceDescriptionText:r,priceBadgeText:a,productPerks:n,productOnboardingRedirect:l})=>(e[t]={priceDescriptionText:r,priceBadgeText:a,productPerks:n,productOnboardingRedirect:l},e),{})),X(c,o,null,i)},filterSubscriptions:(e=[])=>{let{active:t=[],canceled:r=[],terminated:a=[]}=e.reduce((e,t)=>{let r=t.status.toLowerCase(),a=w.ACTIVE;return r===w.CANCELED?a=w.CANCELED:r===w.TERMINATED&&(a=w.TERMINATED),e[a]=e[a]?[...e[a],t]:[t],e},{}),n=[...t,...r];if(!$()||n.length)return n;let l=a.filter(({universalProductIndicator:e})=>e!==E.UK_LIVE).sort((e,t)=>t.terminationDateMillis-e.terminationDateMillis)[0];return l?[l]:[]},resolveOfferProductsAndLegalLanguage:J,getRadioProductDataByBillingInterval:function(e,t,r,a,n,l){let o=[],i={},u=e||{},c=Array.isArray(u.radioProducts)?u.radioProducts:[],{monthlyLegalLanguage:d,annualLegalLanguage:s,offerResolutions:p}=J(c,t,{monthlyLegalLanguage:r,annualLegalLanguage:a,monthlyOfferLegalLanguage:n,annualOfferLegalLanguage:l},{isOfferField:"isRadioOfferProduct",offerProductIdField:"radioProductId",fullPriceProductIdField:"fullPriceRadioProductId"});c.forEach(e=>{let t=e.isRadioOfferProduct,r=t?p.get(e.radioProductId):null,a=t?r?.regionallyAvailableProductId:e.radioProductId;a&&(o.push({productId:a,cardTitle:u.cardTitle,legalLanguage:u.legalLanguage,radioSelectedProduct:e.radioSelectedProduct}),e.radioValueBadge&&(i[a]={priceBadgeText:e.radioValueBadge}))});let g=q(o,t),f=[...g.annual.products,...g.monthly.products],I=f.find(e=>e.radioSelectedProduct)?.productId;return{radioOptions:X(f,i,I).map(e=>{let t=e.introPrice?`${e.formattedCost}${e.introPrice}${e.intervalText}${e.intervalOfferText?` ${e.intervalOfferText}*`:"*"}`:`${e.formattedCost}/${e.billingInterval}`;return{...e,labelSubtext:t}}),productId:I,subCardData:{...u,cardVariation:"radio"},disclaimers:[{text:d,interval:m.MONTH.value},{text:s,interval:m.YEAR.value}]}},getProductCardsByBillingInterval:function(e,t,r,a,n,l){let o=Array.isArray(e)?e:[],{monthlyLegalLanguage:i,annualLegalLanguage:u}=J(o,t,{monthlyLegalLanguage:r,annualLegalLanguage:a,monthlyOfferLegalLanguage:n,annualOfferLegalLanguage:l},{isOfferField:"isOfferProduct",offerProductIdField:"productId",fullPriceProductIdField:"fullPriceProductId"}),c=q(o,t);return[{name:m.MONTH.value,cards:Q(c.monthly.products),disclaimer:i},{name:m.YEAR.value,cards:Q(c.annual.products),disclaimer:u}]},hasAllAccessProductByUPI:(e,t)=>{if(!Array.isArray(e)||2!==e.length)return!0;let r=e=>b(t.find(t=>t.gizmoProductId===e));return e.some(e=>r(e.productId)||e.groupedProducts?.some(e=>r(e.groupedProductId))||e.radioProducts?.some(e=>r(e.radioProductId)))},generateIntervalText:W,getIntervalLengthDiff:(e,t,r)=>{let a=new Date(t),n=new Date(r),l=n.getMonth()-a.getMonth(),o=n.getFullYear()-a.getFullYear(),i=l+12*o;return"year"===e&&l{let{formattedCost:a}=e,{intervalText:n,intervalOfferText:l}=W(e),o=r&&Z(e);return{...e,labelSubtext:a,intervalText:`/${n}`,intervalOfferText:l,renewalText:o||null,linkText:t||null}},generateRenewalText:Z,getRegionalCopy:p,getRenewalTextParams:H,getRegionFromProduct:K,isPaywallEnabled:e=>{let t={[R.METERED]:"METERED_PAYWALL_FEATURE_ENABLED",[R.EXCLUSIVE]:"SUB_ONLY_PAYWALL_FEATURE_ENABLED"};return c.get("PAYWALL_FEATURE_ENABLED")&&(!e||c.get(t[e]))},getStorefrontType:x,getDeviceType:(e={})=>{let{storefrontId:t}=e,{deviceTypes:r={}}=O[x(e)]||{};return r[t]||{type:"web",storeText:"Browser"}},paywallTypes:R,getPhasedBillingIntervals:e=>e.sort((e,t)=>e.phaseNumber-t.phaseNumber).map(e=>e.billingPeriod?.interval),getCurrentPhaseNumber:e=>{if(!Array.isArray(e)||0===e.length)return null;let t=Date.now(),r=[...e].sort((e,t)=>(e.startDateMillis||0)-(t.startDateMillis||0)),a=r[0];for(let e of r)(e.startDateMillis||0)e?.terminationDate?new Date(e.terminationDate).toLocaleDateString("en-US"):null,generateManageSubscriptionData:Y,generateSubscriptionCardAriaDescription:function(e){let{formattedIntroPrice:t,formattedPrice:r,billingInterval:a,intervalText:n,intervalOfferText:l,valueBadgeText:o,showValueBadge:i}=e;return t?`${r} per ${a}, with intro offer at ${t}${n}${l?` ${l}`:""}${i&&o?`, ${o}`:""}`:`${r} per ${a}`},transformSubDetails:({scheduleDetails:e})=>{let{introData:t,baseData:r,longTermData:a}=F(e);return{introSubData:t,baseSubData:r,longTermSubData:a}},isUkLiveSubscription:e=>h(e,E.UK_LIVE),UPI:E,TRANSITION_TYPES:{DEFERRED:"DEFERRED",IMMEDIATE:"IMMEDIATE"},currencyToRegionMap:T,regionToCurrencyMap:_,RENEW_PATH_BY_REGION:{US:"renew",CA:"renew-ca",UK:"renew-uk"},manageAppSubTextMap:O,transformPhases:V,generateWelcomeOffer:e=>{let t=g.find(e=>"cnn_subs_welcome_offer_monthly"===e.gizmoProductId),{basePriceData:r,introPriceData:a}=V((e||t).phases);return{price:M(a.price,a.currency),length:`/${a.billingInterval} for ${a.cycles} ${a.billingInterval}s`,standard:`Then just ${M(r.price,r.currency)}/${r.billingInterval}`}},isUpgradeRestricted:en,isUSPromo:e=>"US"===e,formatPaymentPromotionData:e=>{let{path:t,productRegion:r,region:a,type:n,productGroups:l,bypassEntitlementsGroups:o,...i}=e,u=r||a||n,c=D(u);c.promoIdField;let d=[],s=[],p=[];l?.length?l.forEach(({productList:e=[]})=>{e.forEach(e=>{let t=e[c.promoIdField]||e.productId;e.isOfferProduct&&s.push({offerProductId:t,fullPriceProductId:e.fullPriceProductId}),p.push(t)})}):d=i[c.promoIdsField]??[];let g={path:t,productIds:l?.length?p:d,region:u,bypassEntitlementsGroups:o};return s.length&&(g.offerProducts=s),g},processPaymentPromotionData:(e,t=!0)=>({productData:e,productRegion:t?D(e.region).productsBucket:"products",productIds:e.productIds}),resolveGizmoRegion:l,generateTextPromoData:(e,t)=>{let{promoText:r,legalText:a}=e,{price:n,currency:l,billingPeriod:o}=t,u=i(o,"interval",""),c=[{text:"price",value:l&&M(n,l)},{text:"frequency",value:u}],d=e=>{let t=e;return c.forEach(e=>t=t.replace(`{${e.text}}`,e.value)),t},s=r&&d(r),p=a&&d(a);return{...e,legalText:p,promoText:s}},SUB_UPGRADE_ROUTE:"sub_web_regi_onboarding",AMAZON_PVC_PROMO:"amazon_pvc",SUB_STATUS:w,isWebPurchase:el,isNotActiveSub:e=>{let{cancelDateMillis:t,status:r}=e;return!!t||[w.CANCELED,w.TERMINATED].includes(r?.toLowerCase())},isSubscriptionAccessEnded:(e={},t=Date.now())=>{let{status:r,terminationDateMillis:a}=e;return r?.toLowerCase()===w.TERMINATED||null!=a&&a{if(e.userAccountPaymentsEnabled||t){let t=[...e.upgradeProductsSelect??[],...e.upgradeProductsSelectUS??[]].join(",");t.length&&(e.productIds=t)}},createProductRadioTabContent:(e,{formatter:t}={})=>I.map(r=>{let a=e.filter(({billingInterval:e,frequency:t})=>e===r.name||t===r.name);return t&&(a=a.map(t)),a=ea(a),{...r,radioOptions:a}}),getSelectedProductInterval:e=>e.find(({selected:e})=>e)?.billingInterval,getOnboardingPathOverride:e=>{let t=e.find(({selected:e})=>e);if(t)return t.dataAttrs?.find(({name:e})=>"product-onboarding-redirect"===e)?.val},getRetentionOffers:eo,getRetentionOfferToDisplay:({isAllAccessSub:e,basicRetentionOffer:t,allAccessRetentionOffer:r})=>e?r:t||r,isRetentionOffer:ec,hasRetentionOffer:e=>eu(e,"cancel_offer"),isIntroOffer:e=>ei(e,"intro_offer"),getCrossIntervalOfferPrices:({products:e,offerType:t}={})=>{let r={monthly:null,monthlyIntro:null,annual:null,annualIntro:null};return e.forEach(e=>{if(!ei(e.gizmoProductId,t)||!e.phases?.length)return;let{basePriceData:a,introPriceData:n}=e.phaseData,{billingInterval:l,formattedPrice:o}=a;"month"===l?(r.monthly=o,r.monthlyIntro=n?.formattedPrice):"year"===l&&(r.annual=o,r.annualIntro=n?.formattedPrice)}),r},resolveActiveProduct:er,generateSubCardWrapperMVPDHTML:function({hash:e}){let{helpText:t,helpLinkText:r}=e;return`${t}${r} `},isHorizonEnabled:k,isSubscriptionRenewEnabled:$,getGroupedProductsData:function(e,t,r,a,n,l){let o=Array.isArray(e)?e:[],{monthlyLegalLanguage:u,annualLegalLanguage:c,offerResolutions:d}=J(o,t,{monthlyLegalLanguage:n,annualLegalLanguage:r,monthlyOfferLegalLanguage:l,annualOfferLegalLanguage:a},{isOfferField:"isGroupedOfferProduct",offerProductIdField:"groupedProductId",fullPriceProductIdField:"fullPriceGroupedProductId",nestedItemsPath:"groupedProducts"});return{cards:o.map(e=>{let r=(e.groupedProducts||[]).flatMap(t=>{let r=t.isGroupedOfferProduct,a=r?d.get(t.groupedProductId):null,n=r?a?.regionallyAvailableProductId:t.groupedProductId;if(!n)return[];let l=r&&n!==t.groupedProductId;return[{...t,productId:n,benefitsList:e.benefitsList,cardTitle:e.cardTitle,cardVariation:"grouped-products",...l&&{productShowValueBadge:!1,productValueBadgeText:"",productPriceDescription:""}}]}),a=q(r,t),n=[...a.annual.products,...a.monthly.products],l=n.map(e=>({...e,...ee(e,{})}));return{productId:i(r,"[0].productId")||i(n,"[0].productId"),subCardData:{...e,cardVariation:"grouped-products"},groupedProducts:l}}),annualLegalLanguage:c??"",monthlyLegalLanguage:u??""}},isDaltonSupportedRegion:C,getRegionProducts:(e,t)=>e?.[D(t).productsBucket]||[],getTaxSuffix:e=>e===E.UK_LIVE?"":" plus applicable tax",isCardExpired:({storefrontInfo:e,card:{expirationYear:t,expirationMonth:r}={}})=>{if(!U()||!el(e)||!t||!r)return!1;let a=new Date(Number(t)+(2===t.length?2e3:0),Number(r));return Date.now()>=a},PRODUCT_ID_FIELDS:L}}}]); /* window.modules["40"] */ "use strict";(self.modules=self.modules||[]).push([["40"],{40:e=>{let o=e=>{document.cookie=e};e.exports={getCookie:(e,o)=>{o=void 0!==o?o:null;let s=RegExp(`(^|;)\\s*${e}\\s*=\\s*([^;]+)`),t=document.cookie.match(s);return t?t.pop():o},setCookie:o,removeCookie:e=>{o(`${e}=;path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT`)}}}}]); /* window.modules["41"] */ "use strict";(self.modules=self.modules||[]).push([["41"],{41:(t,e,s)=>{let n;let o=s("568")(250,"-16px"),a={confirmation:"/media/sites/cnn/icons/toast-confirmation.svg",error:"/media/sites/cnn/icons/toast-error.svg",remove:"/media/sites/cnn/icons/toast-remove.svg",unfollow:"/media/sites/cnn/icons/toast-unfollow.svg",unsubscribe:"/media/sites/cnn/icons/toast-unsubscribe.svg"},i={container:"toast-container",base:"toast",active:"toast--active",indicatorIcon:"toast__indicator-icon",content:"toast__content",contentText:"toast__content-text",contentSubtext:"toast__content-subtext",closeBtn:"toast__close-btn"},l=()=>{if(!document.querySelector('style[id="toast"]')){let t=document.createElement("style");t.id="toast",t.innerText=o,document.getElementsByTagName("head")[0].appendChild(t)}},c=t=>{t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","false")},r=t=>{t?.remove&&t.remove()},u=t=>t??3e3,d=!1,m=()=>{if(d)return n;d=!0;try{n=s("283")}catch{n=null}return n},h=()=>{let t=document.querySelector(".header__wrapper-inner")?.getBoundingClientRect()?.bottom??0,e="undefined"!=typeof window&&window.CNN?.isElevated?"header-elevate":"header";return Math.max(t,document.querySelector(`nav.${e}`)?.offsetHeight??0)},C=()=>{let t=m();return t?Math.max(t.getStickyHeaderRect("bottom")??0,t.getNavbarHeight()??0):h()},p=()=>{let t=document.querySelector(`.${i.container}`);t&&(t.style.top=`${C()+10}px`)};class v{constructor(t){this.toastContainerClass=i.container,this.toastBaseClass=i.base,this.toastActiveClass=i.active,this.toastIndicatorIconClass=i.indicatorIcon,this.toastContentClass=i.content,this.toastContentTextClass=i.contentText,this.toastContentSubtextClass=i.contentSubtext,this.toastCloseBtnClass=i.closeBtn;let e=document.querySelector(`.${this.toastContainerClass}`);if(e){v.containerDiv=e,c(v.containerDiv),l();return}v.containerDiv=document.createElement("div"),v.containerDiv.className=this.toastContainerClass,c(v.containerDiv),l(),t.appendChild(v.containerDiv)}buildToastContent(t,{type:e,text:s,subtext:n,allowDismiss:o}){if(t.querySelector(`.${this.toastContentClass}`))return;let i=document.createElement("div");if(i.className=this.toastIndicatorIconClass,a[e]){let t=document.createElement("img");t.src=a[e],t.alt="",i.appendChild(t)}t.appendChild(i);let l=document.createElement("div");if(l.className=this.toastContentClass,s){let t=document.createElement("p");t.className=this.toastContentTextClass,t.textContent=s,l.appendChild(t)}if(n){let t=document.createElement("p");t.className=this.toastContentSubtextClass,t.textContent=n,l.appendChild(t)}if(t.appendChild(l),o){let e=document.createElement("button");e.type="button",e.className=this.toastCloseBtnClass,e.setAttribute("aria-label","Dismiss notification"),e.innerHTML='',t.appendChild(e)}}show({type:t="error",text:e=null,subtext:s=null,allowDismiss:n=!1,showToastTimeout:o}){p();let a=document.createElement("div"),i=v.containerDiv,l=u(o),c=[],d=0===l;a._dismissTimers=c;let m=()=>{c.forEach(clearTimeout),c.length=0};if(this.buildToastContent(a,{type:t,text:e,subtext:s,allowDismiss:n}),a.className=`${this.toastBaseClass} toast--${t}`,i.appendChild(a),a.getBoundingClientRect(),requestAnimationFrame(()=>{!d&&a.isConnected&&a.classList.add(this.toastActiveClass)}),n){let t=a.querySelector(`.${this.toastCloseBtnClass}`);t&&t.addEventListener("click",()=>{d||(d=!0,m(),a.classList.remove(this.toastActiveClass),c.push(setTimeout(()=>r(a),250)))})}return c.push(setTimeout(()=>{d=!0,a.classList.remove(this.toastActiveClass)},l)),c.push(setTimeout(()=>{r(a)},l+250)),a}}t.exports=v,t.exports.positionToast=p,t.exports.displayToast=(t,e)=>{if("function"==typeof t?.show)return t.show(e)},t.exports.refreshDismissTimer=(t,e)=>{let s=t?._dismissTimers;if(!s||!t.isConnected||!t.classList.contains(i.active))return!1;s.forEach(clearTimeout),s.length=0;let n=u(e);return s.push(setTimeout(()=>t.classList.remove(i.active),n)),s.push(setTimeout(()=>r(t),n+250)),!0}}}]); /* window.modules["43"] */ "use strict";(self.modules=self.modules||[]).push([["43"],{43:(e,t,n)=>{let o=n("24"),a=n("113"),i={subscriptionType:"subscriptionType",region:"region",altHeader:"altHeader",eyebrowText:"eyebrowText",promoText:"promoText",promoSubtext:"promoSubtext",legalText:"legalText",subscribeBtnText:"subscribeBtnText",productGroups:"productGroups",bypassEntitlementsGroups:"bypassEntitlementsGroups",subscriptionRedirect:"subscriptionRedirect",logoutRedirect:"logoutRedirect",changePlanHeaderText:"changePlanHeaderText",changePlanButtonText:"changePlanButtonText",enableDefaultOnboardingFlow:"enableOnboardingFlow",defaultOnboardingFlow:"onboardingFlow",confirmationSubHeaderText:"confirmationSubHeader",confirmationHeaderText:"confirmationHeader",confirmationInfoText:"confirmationInfo",confirmationInfoList:"confirmationInfoList",confirmationMoreText:"confirmationMoreText",confirmationActionButtonText:"confirmationBtnTxt",upgradeConfirmationRedirect:"upgradeConfirmationRedirect"},r=Object.keys(i),s="cnn-user",c={region:"region",wholesalePromo:"wholesalePromo",header:"header",subheadingText:"subheadingText",eyebrowText:"eyebrowText",registrationPageLink:"registrationPageLink",registrationLinkText:"registrationLinkText",redirect:"redirect",logInButtonText:"logInButtonText",enablePromoConfirmation:"enableConfirmation",confirmationHeader:"confirmationHeader",confirmationSubHeader:"confirmationSubHeader",confirmationInfo:"confirmationInfo",confirmationActionBtn:"confirmationActionBtn",redirectIsPayment:"redirectIsPayment",bypassEntitlementsGroups:"bypassEntitlementsGroups",bypassRedirect:"bypassRedirect",loginNewsletter:"login_newsletter",optionalNewsletterEnabled:"optionalNewsletterEnabled",optionalNewsletterCheckboxText:"optionalNewsletterCheckboxText",optionalRegistrationNewsletter:"optional_registration_newsletter",enableDefaultOnboardingFlow:"enableOnboardingFlow",defaultOnboardingFlow:"onboardingFlow",accountFields:"accountFields"},l=Object.keys(c),u={region:"region",wholesalePromo:"wholesalePromo",altHeadingText:"altHeadingText",subheadingText:"subheadingText",registrationRedirect:"registration_redirect",registrationEmailCampaign:"registration_email_campaign",registrationNewsletter:"registration_newsletter",optionalRegistrationNewsletter:"optional_registration_newsletter",optionalNewsletterCheckboxText:"optionalNewsletterCheckboxText",newsletterCheckboxEnabled:"newsletterCheckboxEnabled",eyebrowText:"eyebrowText",registrationNextPage:"registration_next_page",loginLinkOverride:"loginLinkOverride",altCreateAccountButtonText:"altCreateAccountButtonText",accountFields:"accountFields",enableDefaultOnboardingFlow:"enableOnboardingFlow",defaultOnboardingFlow:"onboardingFlow",enablePromoConfirmation:"showConfirmation",confirmationSubHeaderText:"confirmationSubHeaderText",confirmationHeaderText:"confirmationHeaderText",confirmationInfoText:"confirmationInfoText",confirmationActionButtonText:"confirmationActionButtonText"},m=Object.keys(u),d=o.get("USER_ACCOUNT_ENABLED")||!1,g=o.get("USER_ACCOUNT_RESTRICTED_VIEWS_ENABLED")||!1;e.exports={MANAGE_SUBSCRIPTION_PATH_REF:"/_components/user-account-manage-subscription/instances/manage-subscription@published",PAYMENT_PATH_REF:"/_components/user-account-payment/instances/user-account-payment@published",REGISTRATION_PATH_REF:"/_components/user-account-registration/instances/user-account-registration@published",LOGIN_PATH_REF:"/_components/user-account-login/instances/user-account-login@published",MVPD_SUCCESS_PATH_REF:"/_components/user-account-mvpd-success/instances/user-account-mvpd-success@published",MVPD_PATH_REF:"/_components/user-account-mvpd/instances/user-account-mvpd@published",ONBOARDING_PATH_REF:"/_components/user-account-onboarding/instances/user-account-onboarding@published",DEFAULT_PAYMENT_PROMO:"uk-livestream",SUB_UPGRADE_ROUTE:"sub_web_regi_onboarding",LOGIN_TOP_LEVEL_PROMO_FIELDS:l,LOGIN_TOP_LEVEL_PROMO_FIELD_TO_PROMO_KEY:c,REGISTRATION_TOP_LEVEL_PROMO_FIELDS:m,REGISTRATION_TOP_LEVEL_PROMO_FIELD_TO_PROMO_KEY:u,PAYMENT_TOP_LEVEL_PROMO_FIELDS:r,PAYMENT_TOP_LEVEL_PROMO_FIELD_TO_PROMO_KEY:i,buildPromotionFromTopLevelData:(e,t,n)=>t.some(t=>{let n=e[t];return null!=n&&""!==n&&!1!==n&&(Array.isArray(n)?n.length>0:"object"!=typeof n||Object.keys(n).length>0)})?t.reduce((t,o)=>(t[n[o]]=e[o],t),{}):null,sanitizeMetadataOnSave:(e,t)=>(e[t]&&e[t].forEach(e=>{e.metaDescription=e.metaDescription||"",e.metaImage=e.metaImage||"",e.metaTitle=e.metaTitle||""}),e),getDynamicPathData:(e,t,n,o="",i=!0)=>{let r;let s=a(e,`dynamicMeta.${t}`,a(e,"params.dynamicParam",a(e,`query.${t}`,o)));return!s||i&&a(e,"edit",!1)||(r=n.find(e=>s===e.path)),r},userAccountEnabled:d,userAccountRestrictedViewsEnabled:g,userAccountOnboardingEnabled:o.get("USER_ACCOUNT_ONBOARDING_ENABLED")||!1,getBrandLogoData:(e="cnn",t)=>{let n=t?.logo,o={cnn:{mainLogoUrl:"/",ariaLabel:"CNN",mainLogo:"public/media/sites/cnn/cnn.svg",id:`user-account-${e}-logo`}};return n&&o[n]||o.cnn},DEFAULT_DISPLAY_NAME_BASE:s,generateTemporaryDisplayName:()=>`${s}-${Math.random().toString(36).substring(2,8)}`,generateDataAttrsString:e=>e?e.filter(({val:e})=>!!e).map(({name:e,val:t})=>`data-${e}="${t}"`).join(" "):"",replaceBypassEntitlements:e=>e.map(e=>{let{bypassEntitlements:t,bypassEntitlementsGroups:n=[]}=e;return!n.length&&t?.length&&t.forEach((e,o)=>{let a={bypassEntitlements:[]};a.bypassEntitlements.push(...t.slice(0,o+1));let i=a.bypassEntitlements.includes("cnn_subs"),r=a.bypassEntitlements.includes("cnn_subs_video"),s=a.bypassEntitlements.includes("cnn_uk");i&&!r?a.entitlementsGroupName="Reader":r&&i?a.entitlementsGroupName="All Access":s&&(a.entitlementsGroupName="UK Livestream"),n[o]=a}),delete e.bypassEntitlements,{...e,bypassEntitlementsGroups:n}}),generateAmazonPvcLink:e=>`Already get CNN through Amazon Prime Video? Continue with Amazon

]*>(?: ||\s)*/gi,""):e},e.exports.recursivelyStripSeperators=function e(t){return u(t)?c(t,e):l(t)?t.map(e):i(t)?t.replace(/(\u2028|\u2029)/g,""):t},e.exports.removeNewLines=function(e){return e.replace(/\\n|\n/g,"")},e.exports.stripEmail=function(e){return e.replace(/[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?(?:\.[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?)+/,"")},e.exports.setSlug=function(e,t,r="slug"){e[t]&&!e[r]&&(e[r]=y(e[t])),e[r]=y(e[r]||"")},e.exports.hiddenFormattedTextParser=function(e){return e.replace(/((?:[.\s!"'\-,:;_—(){}[\]<>/\\…*&%$+@^~?|]?| ))/gim,"")},e.exports.getQueryParam=function(e,t){if(!e||!t||"string"!=typeof t)return"";let r=t.toLowerCase(),n=e.get(t);return null===n&&(n=e.get([...e.keys()].find(e=>e.toLowerCase()===r))),A(r,decodeURIComponent(s(n)))},e.exports.appendQueryParam=function(e,t,r){let n=A(t,s(r));return n&&e.searchParams.append(t,n),e},e.exports.validateQueryParam=A,e.exports.PARAM_ALLOWLIST=h}}]); /* window.modules["45"] */ "use strict";(self.modules=self.modules||[]).push([["45"],{45:(e,r,t)=>{let o=t("113"),a=t("112"),{authClient:i,updateAccountInfo:n}=t("26"),{paymentErrorMapping:c,resolveGizmoRegion:s}=t("35"),{getPostalCodeValidationMessage:l}=t("119"),{createAccordionItem:d}=t("85"),u=["applePay","googlePay"],p={applePay:"Apple Pay",googlePay:"Google Pay"},g=["productId","productPrice","billingInterval","productCurrency","productUpi"],m={EXPRESS:"expressCheckout",CARD:"card"},y=(e,{region:r,fallback:t=""}={})=>"incorrect_zip"===e?l(r):o(c,e,t),_=["mastercard","visa","amex"],h=["discover"],P="user-account-credit-card-fields__icons",f="user-account-credit-card-fields__icon",v=(e,{text:r="Credit or debit card",wrapperClass:t=P,iconClassPrefix:o=f}={})=>{let a="US"===e?[..._,...h]:_;return{text:r,html:` ${a.map(e=>``).join("\n ")} `}},b=e=>{let r=` ${e.map(e=>``).join("")} `;return{text:1===e.length&&p[e[0]]||"Apple Pay or Google Pay",html:r}},w={apple_pay:{trackingId:"apple"},google_pay:{trackingId:"google"}},S={WHITE:"white",BLACK:"black"},E=e=>Object.values(S).includes(e),C=async({stripe:e,cardElement:r,owner:t})=>await e.createPaymentMethod({type:"card",card:r,billing_details:t}),I=async e=>{let{stripe:r,cardElement:t,clientSecret:o,paymentMethod:a,owner:i}=e;return await r.confirmCardSetup(o,{payment_method:a?a.id:{card:t,billing_details:i}})},$=async({stripe:e,elements:r,clientSecret:t})=>{let o=window.location.href;return await e.confirmSetup({elements:r,clientSecret:t,redirect:"if_required",confirmParams:{return_url:o}})},k=async(e,r,t,a,i)=>{try{let c=`payment_${t}_source`,l="US"===s(i)?"gizmous":"gizmo",d=o(r,`userProfileResponses.${l}.${c}`,!1),u={};r&&!d&&(u[c]=a,await n({attributes:{[l]:u}},e))}catch(e){console.error("Error retrieving user attributes:",e)}},x=({source:e,productId:r,productPrice:t,billingInterval:o,productCurrency:a,productUpi:n,isExpress:c=!1})=>({source:e,cnn_uid:i.getStoredUID(),product_id:r,price:Number(t),billing_interval:o,currency:a,universal_product_indicator:n,storefront:"gizmo-stripe",storefront_id:"gizmo",...c&&{payment_source:"stripe_digital-wallets"}}),A=(e,r,t)=>{let{errorStatus:o,stripeError:a,purchaseDateMillis:i}=r;e.error_code=o?.toString(),e.error_source=a?"stripe":void 0,e.error_message=a,e.purchase_date=i?.toString(),e.http_response=t?"success":"error"},U=async({productData:e,zionSource:r,paymentProcessor:t,paymentSource:o,cardElement:a,ownerName:i,subscriptionIdForRenewal:n,expressSetupResult:c,metadata:s={},arkoseToken:l})=>{let d=o===m.EXPRESS,u=x({source:r,...e,isExpress:d}),p=await t.createPurchase({productId:e.productId,paymentSource:o,...d?{expressSetupResult:c}:{cardElement:a,ownerName:i},metadata:s,...l&&{arkoseToken:l},...n&&{subscriptionIdForRenewal:n}}),{success:g,errorStatus:y,stripeError:_,purchaseDateMillis:h}=p;return A(u,{errorStatus:y,stripeError:_,purchaseDateMillis:h},g),{...p,submitData:u}};e.exports={initializeStripeCardElement:({stripe:e,clientSecret:r,mountDomElement:t,baseClassName:o="user-account-shared",fontSize:i=16,lineHeight:n=20,shouldHidePostalCode:c=!0})=>{let s={style:{base:{fontSize:`${i}px`,lineHeight:`${n}px`,fontFamily:"cnn_sans_display,helveticaneue,Helvetica,Arial,Utkal,sans-serif",color:"#262626",iconColor:"#262626",":hover + ::placeholder":{color:"#262626"},"::placeholder":{color:"#6e6e6e"},":-webkit-autofill":{color:"#262626"}},invalid:{color:"#262626",fontWeight:"bold"}},hidePostalCode:c};a(s,"classes.base",`${o}__stripe-card-element`);let l=e.elements({clientSecret:r}).create("card",s);return l.mount(t),l},createPaymentMethod:C,confirmCardSetup:I,confirmExpressSetup:$,setupExpressElement:({stripe:e,mountDomElement:r,supportedPaymentMethods:t,theme:o,currency:a="usd",buttonType:i="plain"})=>{let n=e.elements({mode:"setup",currency:a}),c={};t&&u.forEach(e=>{c[e]=t.includes(e)?"always":"never"});let s=n.create("expressCheckout",{buttonHeight:40,layout:{overflow:"never"},buttonType:"string"==typeof i?{googlePay:i,applePay:i}:i,...E(o)&&{buttonTheme:{googlePay:o,applePay:o}},paymentMethods:c});return s.mount(r),{expressCheckoutElement:s,elements:n}},getPaymentMethodTrackingId:e=>{let r=w[e];return r&&r.trackingId?r.trackingId:e||"unknown"},EXPRESS_BUTTON_THEMES:S,PAYMENT_ERROR_MESSAGE:"Sorry, we couldn't process your payment. Please try again.",paymentSourceTypes:m,validatePurchaseParams:e=>e&&g.every(r=>Object.hasOwn(e,r)),getSubmitProductData:e=>({productId:e.productId,productUpi:e.productUpi,productPrice:e.productPrice,productCurrency:e.productCurrency,billingInterval:e.billingInterval,...e.introPrice&&{offerPrice:e.introPrice},...e.introCurrency&&{offerCurrency:e.introCurrency}}),checkExpressError:e=>{let{error:r}=e;if(r){let t="card_error"===r.type||"validation_error"===r.type,a=o(r,"message","");e.errorMsg=t?y(r.code,{fallback:a}):o(c,"processing_error","")}},getPaymentErrorMessage:y,applyFieldError:(e,r,t)=>{if(!r)return!1;switch(e){case"incorrect_cvc":case"expired_card":return r.setCardError(y(e,{region:t})),!0;case"incorrect_zip":return r.setZipError(y(e,{region:t})),!0;default:return!1}},generateCreditCardTitle:v,generateDigitalWalletsTitle:b,generatePaymentAccordionItems:({children:e,region:r,expressPaymentMethods:t})=>{if(!e?.length)return[];let o=[v(r)];if(t){let e=b(t);o.push(e)}let a=[...e].findIndex(e=>e.classList.contains("expressCheckoutView"));return!t&&a>-1&&e.splice(a,1),e.map((r,t)=>d({showActive:1===e.length,titleHtml:o[t].html,componentName:"accordion-item",componentVariation:"accordion-item",title:o[t].text,content:`${r.outerHTML} `,id:`user-account-payment-accordion-${t}`}).outerHTML)},isExpressSupported:(e,r=["US"])=>{let t=[].concat(r||[]).filter(Boolean);if(!(t.length?t:["US"]).includes(e))return!1;let o=window.navigator.userAgent,a=/(mobile|tablet)/gi.test(o),i=["googlePay"];return(a&&/iPad|iPhone|iPod/.test(o)&&!window.MSStream||/^((?!android).)*Version\/1[6-9]|Version\/[2-9]\d/.test(window.navigator.userAgent))&&i.push("applePay"),i},setUserPaymentAttrs:k,buildPaymentSubmitData:x,applyPurchaseResultToSubmitData:A,executePurchase:U}}}]); /* window.modules["46"] */ "use strict";(self.modules=self.modules||[]).push([["46"],{46:(e,t,n)=>{let{trackMetrics:o}=n("9"),{zionEventHandler:i}=n("10"),{componentTypes:r,actions:c}=n("570"),l=Object.values(r),a=Object.values(c),s=e=>"string"==typeof e?e.trim().slice(0,256):"",m=e=>"string"==typeof e?e.trim():"",u=e=>{if(""===e||null==e)return;let t=Number(e);return Number.isFinite(t)?t:void 0},p=e=>console.error(`paywall-interaction-analytics: event not emitted, ${e}`),d=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e&&""!==e)),f=({componentId:e,componentType:t,componentName:n})=>{let o=s(t).toLowerCase();if(!l.includes(o))return p(`"${t}" is not a known componentType`),null;let i=s(e);return i?{componentId:i,componentType:o,componentName:s(n)}:(p(`${o} is missing a componentId`),null)};e.exports={componentTypes:r,actions:c,trackWallImpression:(e={})=>{let t=f(e);if(!t)return;let{componentId:n,componentType:r,componentName:c}=t,l=u(e.componentViewCount);o({type:"user-interaction",data:d({interaction:"module load",componentStellarId:n,componentName:c,componentType:r,componentViewCount:l})}),i({component_id:n,component_type:r,traits:d({source:s(e.source),component_name:c,component_view_count:l})},"ComponentOnScreen")},trackWallInteraction:(e={})=>{let t=f(e);if(!t)return;let n=s(e.action).toLowerCase();if(!a.includes(n)){p(`"${e.action}" is not a known action`);return}let{componentId:r,componentType:c,componentName:l}=t,u=s(e.interaction),y=m(e.href),_=s(e.adobeInteraction);_&&o({type:"user-interaction",data:{interaction:_}}),i({href:y||window.location.href,type:s(e.elementType)||"BUTTON",customAttributes:d({component_id:r,component_type:c,component_name:l,action:n,interaction:u,link_text:u,selected_product_id:s(e.selectedProductId)})},"GenericLinkClick")}}}}]); /* window.modules["49"] */ "use strict";(self.modules=self.modules||[]).push([["49"],{49:e=>{e.exports.encode=function(e){return"string"!=typeof e?e:window.btoa(e)},e.exports.decode=function(e){return"string"!=typeof e?e:window.atob(e)}}}]); /* window.modules["50"] */ "use strict";(self.modules=self.modules||[]).push([["50"],{50:(e,a,i)=>{let s=i("631"),l=i("260"),{getCurrentSite:d}=i("131"),t=d(),m={invalid:"Please enter a valid {fieldName}",required:"{fieldName} is required",exceedMax:"{fieldName} must not exceed {max} characters",underMin:"{fieldName} must have at least {min} characters"},r={email:{displayName:"email address",regex:/^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?(?:\.[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?)+$/},"first-name":{displayName:"first name",isValid:e=>!s(e),regex:/^(?=.*\p{L})([-'.,\s\p{L}\p{M}])*$/u},"last-name":{displayName:"last name",isValid:e=>!s(e),regex:/^(?=.*\p{L})([-'.,\s\p{L}\p{M}])*$/u},"name-on-card":{displayName:"name",isValid:e=>!s(e)},"address-field":{displayName:"address field",regex:/^([a-zA-Z0-9\s#.-])*$/},alphanumeric:{displayName:"field",regex:/^([A-Za-z0-9])*$/},"validate-pii":{displayName:"PII",isValid:e=>{let a=!1,i=e.split(/\s+/),s=e.replace(/[.()_-\s]/g,"");return a=i.some(e=>r.email.regex.test(e)),!/([0-9]{9,})/.test(s)&&!a}},"promo-code":{displayName:"Promo Code",isValid:e=>!s(e)},"display-name":{displayName:"display name",isValid:e=>!s(e)},"display-name-onboarding":{displayName:"display name",isValid:e=>!s(e)&&/^.{0,30}$/.test(e)&&/^(?=.*[a-zA-Z0-9]|^$)([a-zA-Z0-9\-,.' ])*$/.test(e)},"ctv-signin-code":{displayName:"Code",isValid:e=>!s(e)&&/^.{0,7}$/.test(e)&&/^([A-Za-z0-9])*$/.test(e)}};e.exports.validateInput=function(e,a){let i="",{customMsg:s,min:d,max:n,required:p,type:c="",displayName:o}=a||{};if(r[c]){let{displayName:a,regex:l,isValid:t}=r[c];p&&!e.length?i=m.required:d&&e.lengthn&&(i=m.exceedMax.replace("{max}",`${n}`)),!i.length&&e.length&&(l&&!l.test(e)||t&&!t(e))&&(i=s||m.invalid);let u=o&&o.toLocaleLowerCase();i=i.replace("{fieldName}",u||a),i=`${i.charAt(0).toUpperCase()}${i.slice(1)}`}return"cnn"!==t?l(t,i):i}}}]); /* window.modules["51"] */ "use strict";(self.modules=self.modules||[]).push([["51"],{51:(e,s,l)=>{let{getGeoCountry:t}=l("1"),{getAllAccessEnabledRegions:u}=l("115"),{GEO_TO_REGION:n,getSubscribeUrlPath:o,CONFIG_BY_REGION:r,getRegionalCopy:d}=l("573");e.exports={resolveEnabledRegion:function(){let e=t(),s=u(),l=e&&n[e];return l&&s.includes(l)?l:""},getSubscribeUrlPath:o,CONFIG_BY_REGION:r,getRegionalCopy:d}}}]); /* window.modules["60"] */ "use strict";(self.modules=self.modules||[]).push([["60"],{60:(t,e,s)=>{let{getCookie:i}=s("40"),r=s("553"),n=s("113"),u=s("597"),{actions:a,subscribe:o}=s("65"),{ACCOUNT_NAV:l}=a,c=s("16").setup({file:"/index.js"}),{formatLoggingData:h}=s("569"),w=s("353"),d={};function b(){d={},window.localStorage.removeItem("userNewsletterSubscriptions")}async function g(){if(d.isInitialized)return;let t=JSON.parse(window.localStorage.getItem("userNewsletterSubscriptions")||"{}");r(t,{value:[]});let{updateAfter:e}=t;t.updateAfter=e?new Date(e):new Date,d={isInitialized:!0,subscriptions:t},document.addEventListener("deleteAccount",b)}t.exports=class{constructor(t){this.authClient=t||{},this.userEmail="",this.userLoggedIn=!1,this.countryCode=i("countryCode"),o(l.LOGOUT_SUCCESS,b),g()}async retrieveNewsletters(){let t=[];try{let e=await this.authClient.retrieveNewsletters(),s=e&&e.newsletters;t=Object.keys(s).map(t=>({name:t,...s[t]})).sort((t,e)=>t.position-e.position)}catch(t){c("error","Error retrieving newsletters: ",h(t))}return t}async refreshUserInfo(){let t=this.authClient.getToken(),e=!1;if(t)try{let{userEmailResponses:s}=await this.authClient.accountInfo(t);this.userEmail=s&&s.length&&s[0].emailAddress||"",e=!0}catch(t){c("error","Error refreshing user info: ",h(t))}this.userLoggedIn=e}async _updateSubscriptions(){if(!this.authClient.tokenWithAuthn())return;let{subscriptions:t}=d,e=[];try{let s=await this.authClient.subscriptions(this.authClient.getToken());e=n(s,"subscriptions"),t.updateAfter=u(new Date,{days:1})}catch(t){c("error","Error updating subscriptions: ",h(t))}t.value=e,window.localStorage.setItem("userNewsletterSubscriptions",JSON.stringify(t))}async retrieveSubscriptions({useCache:t}={}){if(!this.authClient.tokenWithAuthn())return[];let{subscriptions:e}=d;return(!t||e.updateAfter{w.newsletters[`${t}_source`]=a,o&&(w.newsletters[`${t}_subscribe`]=o)});let b={email:d,newsletters:i,userProfileRequest:{attributes:w},misc:{...l&&{arkoseSessionToken:l}}},g=this.authClient.getToken();try{await this.authClient.subscribe(b,g),e=!0}catch(t){s=t&&t.status||500,c("error","Error subscribing to newsletters: ",h(t))}}if(e)try{await this._updateSubscriptions()}catch(t){c("error","Error updating newsletter subscriptions cache: ",h(t))}return w?{success:e,errorStatus:s}:e}async unsubscribe(t){let e=!1,{newsletters:s}=t;if(await this.isLoggedIn()&&this.userEmail){let t={email:this.userEmail,newsletters:s};try{await this.authClient.unsubscribe(t,this.authClient.getToken()),e=!0}catch(t){c("error","Error unsubscribing to newsletters: ",h(t))}}return e&&await this._updateSubscriptions(),e}async unsubscribeWithToken(t){let e=!1;try{await this.authClient.unsubscribeForUnauthenticated(t),e=!0}catch(t){c("error","Error unsubscribing with token: ",h(t))}return e}formatNewsletterName(t){return"string"==typeof t?t.split("_").map(t=>w(t)).join(" "):t}}}}]); /* window.modules["61"] */ "use strict";(self.modules=self.modules||[]).push([["61"],{61:(t,e,n)=>{let{verifyRegCode:a,assignRegCode:i,getRegcodeMetadata:o}=n("26"),{isAllAccessSubscriber:r,isReadOnlySubscriber:c}=n("36"),s=n("24"),{isSubscriber:u}=n("96"),{actions:l,dispatch:m}=n("65"),{ACCOUNT_NAV:f}=l,{createConfirmationForm:d}=n("83"),p=n("16").setup({file:"/index.js"}),{getProducts:g,getActiveSub:E,AUTH_CLIENT:A}=n("35"),{transformPhases:w,frequencyTitle:I,isNotActiveSub:_,isWebPurchase:N,UPI:B}=n("37"),{getSubscriptionGeo:T}=n("36"),{setElementDisabled:h}=n("27"),{isAmazonPvcCtvFlowEnabled:S}=n("43"),R=()=>s.get("ENABLE_WEB_PURCHASE_BOUNTY_FLOW",!1),{offerProductIds:C}=n("580"),{checkGeoCountry:v}=n("1"),y=s.get("CTV_REGCODE_STORAGE_NAME","cnn_ctv_regcode"),D={REGCODE:"code"},b="/tv?view=error",O={VIEW_PLANS:"view-plans",REGISTER:"register",SIGN_IN:"sign-in",WEB_SIGN_IN:"web-sign-in",WEB_REGISTER:"web-register"},V={WEB:[O.WEB_REGISTER,O.VIEW_PLANS,O.WEB_SIGN_IN],CTV:[O.REGISTER,O.SIGN_IN]},P=()=>s.get("AMAZON_PVC_ENABLED",!1)&&s.get("AMAZON_PVC_ENTRY_ENABLED",!1)&&S()&&v("US"),U={CONFIRMATION:{templateData:{componentVariation:"user-account-confirmation-form user-account-confirmation-form_confirmation-view",confirmationHeader:"You're ready to stream",confirmationInfo:"Your TV will automatically refresh.",confirmationActionButtonText:"Done",confirmationActionButtonRedirect:"/"},modifierName:"confirmation"},CONFIRMATION_AMAZON:{templateData:{componentVariation:"user-account-confirmation-form user-account-confirmation-form_confirmation-view",confirmationHeader:"Your CNN access is confirmed.",confirmationInfo:"Your TV will refresh automatically.",confirmationInfoList:[{text:"24/7 global news"},{text:"Live coverage"},{text:"Exclusive videos"},{text:"Original series and award-winning films"}],confirmationActionButtonText:"Done",confirmationActionButtonRedirect:"/"},modifierName:"confirmation-amazon"},SIGNED_IN:{templateData:{componentVariation:"user-account-confirmation-form user-account-confirmation-signed-in-view",confirmationHeader:"You're ready to stream",confirmationInfo:'Your TV should automatically refresh. If you need help, please contact us.',confirmationActionButtonText:"Done",confirmationActionButtonRedirect:"/"},modifierName:"signed-in"},UPGRADE_MVP:{templateData:{componentVariation:"user-account-confirmation-form user-account-confirmation-upgrade-mvp-view",confirmationHeader:"Ready to stream?",confirmationInfo:'Your current Basic plan doesn\'t include streaming. Upgrade to an All Access plan on your TV. If you need help, please contact us.',confirmationActionButtonText:"OK",confirmationActionButtonRedirect:"/"},modifierName:"upgrade-mvp"},UPGRADE:{templateData:{componentVariation:"user-account-confirmation-form user-account-confirmation-upgrade-view",confirmationHeader:"Upgrade to stream",confirmationInfo:"Your current Basic plan doesn't include streaming. Add an all access plan to stream.",confirmationActionButtonText:"Upgrade to stream",confirmationActionButtonRedirect:"/subscription",helpText:'For help, see our FAQ Page.'},modifierName:"upgrade"},SUBSCRIBE_MVP:{templateData:{componentVariation:"user-account-confirmation-form user-account-confirmation-subscribe-view",confirmationHeader:"Ready to stream?",confirmationInfo:'The account you signed in with doesn\'t include streaming access. Sign in with a different account or upgrade to an All Access plan on your TV. If you need help, please contact us.',confirmationActionButtonText:"OK",confirmationActionButtonRedirect:"/"},modifierName:"subscribe-mvp"},SUBSCRIBE:{templateData:{componentVariation:"user-account-confirmation-form user-account-confirmation-subscribe-view",confirmationHeader:"Subscribe to stream",confirmationInfo:"Your free CNN account doesn't include a subscription plan. Add an all access plan to stream.",confirmationActionButtonText:"View plans",confirmationActionButtonRedirect:"/subscription/all-access",secondaryActionButtonText:"Sign in with a different account",secondaryActionButtonRedirect:"/account/log-in/tv",helpText:'For help, see our FAQ Page.'},modifierName:"subscribe"}},G=()=>{let t={};if(!s.get("CTV_REGCODE_ENABLED"))return t;let e=window.localStorage.getItem(y);if(e)try{t=JSON.parse(e)}catch(t){p("error","Error parsing regcode data",t)}return t},x=()=>L()?.bounty_identifier,L=()=>G().metadata,F=()=>G().code,M=()=>G().entry,W=async t=>{let{regCode:e}=t;await z(e);let n=M(),a=x(),i=n?n===O.VIEW_PLANS:a,o=await c(),s=await r();return!i||o||s?await J({...t,regCodeInput:e}):await $({...t,regCode:e,purchaseType:Y(n),throwOnFailure:t.isAmazonPvcCtv})},k=t=>{if(!s.get("CTV_REGCODE_ENABLED"))return;let e=G();delete e[t],window.localStorage.setItem(y,JSON.stringify(e))},Y=(t,e=null)=>{if(!v("US"))return"CTV";let n=e?.subscriptions?.some(t=>N(t.storefrontInfo)&&!_(t))??!1;return R()&&x()||n?"WEB":Object.keys(V).find(e=>V[e].includes(t))||"CTV"},H=(t,e,n)=>{let{templateData:a,modifierName:i}=e;t.querySelector(".ctvConfirmationView").innerHTML=d(a,!0),t.classList.add(`${n}--${i}`)},z=async t=>{if(!R())return{};if(t===F()&&L())return L();let{data:e={}}=await o(t),n=e?.metadata;if(n){let t=G();window.localStorage.setItem(y,JSON.stringify({...t,metadata:n}))}return n},$=async({regCode:t,successCallback:e,purchaseType:n,isAmazonPvcCtv:o,throwOnFailure:r,...c})=>{let s=t=>{if(r)throw Error(t);return window.location.assign(b),{redirect:!0}},{success:u}=await a(t);if(!u)return s("CTV reg code verification failed");let{success:l,errorStatus:m}=await i(t);if(m||!l)return s("CTV reg code assignment failed");let f=await z(t)??{},d="WEB"===n||"object"==typeof f&&"bounty_identifier"in f;return(d?k(D.REGCODE):window.localStorage.removeItem(y),e)?(e(),{redirect:!0}):(q({...c,isWebPurchase:d,isAmazonPvcCtv:o}),{redirect:!1})},q=({el:t,baseClass:e,isWebPurchase:n,viewDataOverride:a,isAmazonPvcCtv:i})=>{H(t,i?U.CONFIRMATION_AMAZON:a||(n?U.CONFIRMATION:U.SIGNED_IN),e)},Z=async t=>{let{subscriptions:e=[]}=t,n=e.find(t=>t.universalProductIndicator===B.BASIC),a=n?.sku,i=U.SUBSCRIBE;if(!a)return i;let{region:o}=T(n),{products:r=[]}=await g({},o),c=r.find(t=>t.gizmoProductId===a);if(!c||!c.phases?.length)return i;let{basePriceData:{billingInterval:u}}=w(c.phases),l=s.get("CTV_OFFERING_TYPE","DEFAULT"),m=_(n),f=C[l]?.[u],d=C.DEFAULT[u],p=f&&r.some(t=>t.gizmoProductId===f)&&(!m||"month"===u&&f!==d)?f:d,E=r.find(t=>t.gizmoProductId===p);if(!E||!E.phases?.length)return i;let{basePriceData:{billingInterval:A,formattedPrice:N},introPriceData:{formattedPrice:h,intervalText:S,intervalOfferText:R}={}}=w(E.phases),v={title:E.description,price:N,billingInterval:A,perks:["24/7 news channel","On-demand library","Subscriber-only content","Unlimited articles","Fewer ads"]};return h&&S&&(v.introOffer={price:h,intervalText:S,intervalOfferText:R}),{...U.UPGRADE,templateData:{...U.UPGRADE.templateData,confirmationInfo:`Your current ${I(u).toLowerCase()} Basic plan doesn't include streaming. Add an All Access plan to stream.`,confirmationActionButtonRedirect:m?`/account/payment/renew?manage=${n.id}`:`/account/subscription-management?manage=${a}&entry=${O.WEB_SIGN_IN}&selected=${E.gizmoProductId}`,showUpgradePlanInfo:!0,upgradePlanData:v}}},j=async t=>{let{purchaseType:e,el:n,baseClass:a,subscribed:i,activeSub:o}=t,r="WEB"===e,c=i?U.UPGRADE_MVP:U.SUBSCRIBE_MVP;if(r){let t=i?await Z(o):{};c=i?t:U.SUBSCRIBE,!i&&R()&&x()&&(c={...c,templateData:{...c.templateData,confirmationActionButtonRedirect:"/subscription/all-access"}}),c={...c,templateData:{...c.templateData,renderAmazonLink:P()}}}if(i&&!r)return await $({viewDataOverride:c,...t});{H(n,c,a);let e=n.querySelector("#confirmationActionButton"),i=n.querySelector("#secondaryConfirmationActionButton");return e?.addEventListener("click",async n=>{if(n.preventDefault(),"true"!==e.getAttribute("disabled")){h(e,!0),h(i,!0);try{await $({successCallback:()=>{window.location.assign(e.href)},...t})}catch(t){window.location.assign(b)}}}),i?.addEventListener("click",t=>{t.preventDefault(),"true"!==i.getAttribute("disabled")&&(A.removeToken(),m(f.LOGOUT_SUCCESS),window.location.assign(i.href))}),{redirect:!1}}},J=async({regCodeInput:t,el:e,baseClass:n,entry:a,isAmazonPvcCtv:i})=>{let o=t||F();if(!o)return window.location.assign("/tv"),{redirect:!0};await z(o);let c=await r(),s=await u(),l=!c&&s?await E(A.getToken()):null,m={el:e,baseClass:n,purchaseType:Y(a||M(),l),regCode:o,subscribed:s,activeSub:l,isAmazonPvcCtv:i,throwOnFailure:i};return c?await $(m):await j(m)};t.exports={isWebPurchaseBountyFlowEnabled:R,isAmazonPvcCtvFlowEnabled:S,checkAndAssignCTVAccess:$,handleCTVView:J,getRegCode:F,getCTVPromoState:t=>{let e=s.get("CTV_REGCODE_ENABLED");return{ctvRegcodeEnabled:e,isTVPromo:e&&"tv"===t,storedRegcode:e&&F()}},handleBountyLoginFlow:W,CTV_ENTRY:O,REGCODE_STORAGE_KEY:y,getBountyIdentifier:x,getCTVEntry:M,getCTVData:G,shouldRenderAmazonLink:P,CONFIRMATION_VIEW_DATA:U}}}]); /* window.modules["63"] */ "use strict";(self.modules=self.modules||[]).push([["63"],{63:(e,t,r)=>{let a=r("16").setup({file:"/index.js"}),{isAllAccessSubscriber:n}=r("36"),o=()=>{let e=window.localStorage.entitlementToken;if(e)try{return JSON.parse(e).canAuthenticate}catch(e){a("error","unable to parse TV Provider auth token")}return!1},l=async()=>{let e=await n(),t=o();return e||t};e.exports={isAuthenticated:o,getMVPDData:e=>{let t=window.localStorage.entitlementToken;if(t)try{return JSON.parse(t)[e]}catch(e){a("error","unable to parse TV Provider auth token")}return!1},getMVPDCobrandImgUrl:()=>window.localStorage.mvpdCobrandImg,checkDtcAccess:l,getMVPDToken:()=>{let e=window.localStorage.entitlementToken;if(e)try{let t=JSON.parse(e);if(t.canAuthenticate)return{accessToken:t.authenticationToken[0],accessTokenType:"adobe",mvpd:t.mvpd}}catch(e){a("error","unable to parse TV Provider auth token")}}}}}]); /* window.modules["64"] */ "use strict";(self.modules=self.modules||[]).push([["64"],{64:(n,t,e)=>{let o=e("16").setup({file:"/index.js"});n.exports={keyNavigationUtility:(n,t,e)=>{let{key:i}=n;if(i in t&&"function"!=typeof t[i]){o("warn","Keyboard navigation error: action for key is not a function");return}if(e&&"function"!=typeof e){o("warn","Keyboard navigation error: onAnyMatchingKeyPressFn is not a function");return}"function"==typeof t[i]&&(n.preventDefault(),t[i](n),"function"==typeof e&&e(n))}}}}]); /* window.modules["65"] */ "use strict";(self.modules=self.modules||[]).push([["65"],{65:(n,e,t)=>{let i=t("581"),o=t("66"),{dispatch:d,subscribe:l,reset:u}=t("582");n.exports={ClientModel:i,actions:o,dispatch:d,subscribe:l,reset:u,initializeOnLoad(n){function e(e){window.addEventListener("load",function(){new n(e)})}return e.model=n,e},initializeOnExec(n){function e(e){new n(e)}return e.model=n,e},initializeOnDOMContentLoaded(n){function e(e){window.addEventListener("DOMContentLoaded",function(){new n(e)})}return e.model=n,e}}}}]); /* window.modules["66"] */ "use strict";(self.modules=self.modules||[]).push([["66"],{66:e=>{let E={VIDEO_HUB:a("Video Hub",{PLAYBACK_REQUEST:"Playback Request",VIDEO_START:"Video Start"}),VIDEO:a("Video Clips",{PLAYBACK_REQUEST:"Playback Request",VIDEO_START:"Video Start",STOP_VIDEO:"Hide Video Player",PAUSE_VIDEO:"Pause Video Player",VERTICAL_PLAYBACK_REQUEST:"Play Vertical Video Player"}),TVE:a("TVE",{CAROUSEL_SOURCE_LOADED:"Carousel Source Loaded",PLAYBACK_REQUEST:"Playback Request"}),ADS:a("Ads",{SET_AD_VARIANT:"Set ad variant",SHOW_FEEDBACK:"Show Feedback"}),REGISTRATION:a("User Registration",{INIT_FORM:"Initialize Registration Form",FORM_LOADED:"Registration form loaded"}),LOGIN_FORM:a("User Login",{SHOW_TOS:"Show TOS Update View",SHOW_RESET_PASSWORD:"Show Reset Password View",SHOW_RESET_EMAIL_SENT:"Show Reset Email Sent View",LOGIN_SUCCESS:"Login success",UPDATE_FORM:"Update Login Form",VIEW_UPDATED:"Login Form View Updated",LOADED:"Login form loaded",LOAD_LOGIN_ARKOSE:"Load login arkose"}),ACCOUNT_NAV:a("Account Nav",{LOGOUT_SUCCESS:"Logout User"}),ARKOSE:a("Arkose",{SCRIPT_LOAD_FAILED:"Script loading failed"}),STICKY_HEADER:a("Sticky Banner Header",{RECALCULATE:"Recalculate Header Size"}),SSO:a("Social Sign On",{BTN_LOADED:"Button loaded",CONFIRM_PASSWORD:"Confirm password",CONFIRM_PASSWORD_RESET:"Reset confirm password form"}),TOAST_POPUP:a("Toast Popup",{UPDATE_TITLE:"Update Toast Popup Title",CREATED:"Create Toast Element"}),EXPRESS_CHECKOUT:a("Express Checkout",{CLICKED:"Express checkout button clicked"}),PAYWALL:a("Paywall",{AUTH_ENTITLEMENTS:"Auth Entitlements Response",EXPRESS_CHECKOUT_LOADED:"Express Checkout initialized",UPDATE_STATUS:"Update paywall status",DISMISS:"Dismiss paywall"}),RADIO_BUTTONS:a("Radio Buttons",{SELECTED:"Radio selected",SET_SELECTED:"Set selected radio button",TOGGLE_SHOW_PILL:"Toggle whether to show pill or not for radio button"}),TABS:a("Tabs",{SELECTED:"Tab selected"}),DISPLAY_NAME:a("Display Name",{UPDATE_COMPLETE:"Update display name complete",PENDING_STATUS:"Display name is pending",UPDATED_NAME:"Updated display name",EXISTING_NAME:"Existing display name",CLEANUP:"Clean up display name view",DISMISSED:"Display name flow dismissed"}),FORMFIELD_TEXT:a("Formfield text",{VALIDATION_RAN:"Validation ran for text field",RUN_VALIDATION:"Run validation for text field",SHOW_ERROR:"Show error for text field",ERROR_STATE:"Set text field to error state"}),INTERACTIVE_HEADLINE:a("Interactive Headline",{UPDATE_TITLE:"Update interactive headline title"}),SUBSCRIPTION_LANDING:a("Subscription Landing Page",{REDIRECT_COMPLETE:"Redirect complete"}),VIEW_MANAGER:a("View Manager",{INITIALIZED:"View manager initialized",TRANSITION:"View manager transition",ERROR:"View manager error"}),SURVEY_CARD:a("Survey Card",{SUBMIT:"Submit survey card"}),SUBSCRIPTION_CARD:a("Subscription Card",{CTA_CLICKED:"CTA clicked"}),OPENWEB_CONVO:a("Openweb Convo",{LAUNCHER_LOADED:"Launcher loaded"}),AMAZON_LWA:a("Amazon LWA",{SDK_LOADED:"Amazon LWA SDK loaded",SDK_LOAD_FAILED:"Amazon LWA SDK load failed",AMAZON_CALLBACK_PROCESSED:"Amazon callback processed"})};function a(e,E){let a=Symbol(e);return Object.keys(E).reduce((e,t)=>({[t]:{ns:a,action:Symbol.for(E[t])},...e}),{ns:a})}e.exports=E}}]); /* window.modules["67"] */ "use strict";(self.modules=self.modules||[]).push([["67"],{67:(o,t,e)=>{let{v4:n}=e("163"),{authClient:r}=e("26"),i={"/account/register/rokt":"register","/account/log-in/rokt":"login","/account/payment/rokt":"payment","/account/onboarding/rokt":"onboarding","/subscription/rokt":"subscription"},a=()=>(window.location.pathname??"/").replace(/\/$/,"")||"/",c=()=>a()in i,s=o=>{window.mParticle?.ready&&window.mParticle.ready(o)};o.exports={ROKT_ALLOWLIST:i,normalizePath:a,isRoktAllowlistPath:c,whenMParticleReady:s,logRoktConversion:({amount:o,currency:t})=>{if(!c()||!window.mParticle?.ready)return;let e=String(o),i=t.toUpperCase(),a=r.getStoredUID()||n();s(()=>{window.mParticle.logEvent("conversion",window.mParticle.EventType.Transaction,{conversiontype:"subscription",confirmationref:a,amount:e,currency:i}),window.mParticle.upload()})}}}}]); /* window.modules["69"] */ "use strict";(self.modules=self.modules||[]).push([["69"],{69:(e,n,t)=>{let o=t("81"),{authClient:r,getPreAuthEntitlements:s,checkEntitlementsForAccess:i}=t("26"),{subscribe:l,actions:d}=t("65"),{PAYWALL:c}=d,{isSection:a}=t("7"),{isAppWebView:u}=t("1"),{resolveEnabledRegion:m}=t("51"),w=async()=>{let{preAuthorizedEntitlements:e=[]}=await s(r.getToken(),!1);return i(e,["readOnly"]).readOnly};e.exports={isSubscriber:w,isSubscriberCB:(e,n=!1)=>{"function"==typeof e&&(s(r.getToken(),!1,n,!0),l(c.AUTH_ENTITLEMENTS,({preAuthorizedEntitlements:n=[]})=>{e(i(n,["readOnly"]).readOnly)}))},defaultManageWallVisibility:e=>({displayScrollDepthPercentage:n=15,contentSelector:t,intersectionThreshold:r}={})=>{let s=document.documentElement.scrollHeight-document.documentElement.clientHeight,i=o(()=>{let t=Math.round(n/100*s);window.scrollY>=t&&e()},250),l=document.querySelector(t);l?new IntersectionObserver((n,t)=>{n.forEach(n=>{n.isIntersecting&&(e(),t.disconnect())})},{threshold:r||.01}).observe(l):window.addEventListener("scroll",i)},isFromEmailSideDoor:()=>{let e=new URL(window.location).searchParams,n=e.get("utm_source");return"string"==typeof n&&n.startsWith("cnn_")&&"email"===e.get("utm_medium")},isWallExcluded:e=>"prod"===window.env.CONTENT_HUB_ENV&&!!window.kiln||u()||window.WBD?.UserConsent?.getAckTermsNeeded()||!m()||a(["cnn-underscored"])||!e&&window.CNN.contentModel.isSponsorship}}}]); /* window.modules["70"] */ "use strict";(self.modules=self.modules||[]).push([["70"],{70:(e,t,r)=>{let l=r("24"),{getRegionFlag:n}=r("72"),{authClient:o,getPreAuthEntitlements:s}=r("26"),{EXPRESS_BUTTON_THEMES:a,getPaymentMethodTrackingId:c}=r("45"),{loadAndInitializeArkose:i,USE_CASES:u}=r("30"),{UserAccountExpressCheckout:d}=r("user-account-express-checkout.client"),{dispatch:p,actions:m,subscribe:k}=r("65"),{ACCOUNT_NAV:E,ARKOSE:C,RADIO_BUTTONS:h,PAYWALL:y,EXPRESS_CHECKOUT:_}=m,{trackMetrics:w}=r("9"),{addGenericClickAnalytics:g,addOnScreenAnalytics:b}=r("10"),{buildRegionalRenewalText:x}=r("117"),S=r("16").setup({file:"/index.js"}),P=r("28"),{resolveEnabledRegion:L}=r("51"),{getAllAccessEnabledRegions:$}=r("115"),f="user-account-reg-wall",T=`${f}__continue-with-btns-wrapper--ready`,I=(e,t)=>{let r=e.querySelector(`.${f}__continue-with-btns-wrapper`);!r||r.classList.contains(T)||(r.classList.add(T),Object.entries({applePay:"apple-pay",googlePay:"google-pay"}).forEach(([r,l])=>{e.querySelector(`.${f}__continue-with-btn--${l}`)?.classList.toggle(`${f}__continue-with-btn--supported`,t.includes(r))}))},q=(e,t,r)=>{let l=e.replace(/:+$/,""),n=`${l}:terms:${c(t)}`;w({type:"user-interaction",data:{interaction:`${n}:pay`}}),g({componentType:"button",componentId:r,traits:{component_name:n,action:"click",feature:"subscription"}})},A=(e,t)=>{w({type:"user-interaction",data:{interaction:"module load",componentName:`${e}_terms`,componentStellarId:t}})},R=(e,t,r)=>{b(e,void 0,{component_id:r,component_type:"module",traits:{component_name:`${t}_terms`,feature:"subscription"}})},B=(e,t)=>{let r=e.replace(/:+$/,""),l=`${r}:terms:or continue with credit card`;w({type:"user-interaction",data:{interaction:`${l}:pay`}}),g({componentType:"button",componentId:t,traits:{component_name:l,action:"click",feature:"subscription"}})},v=async e=>{await s(o.getToken(),!0);let t=new P({}),r=t.appendParams({targetUrl:new URL("/account/onboarding/subscription",window.location.origin),customParams:{redirect:window.location.href,source:e}});t.triggerRedirect({redirectUrl:r})},U=e=>{if(!e.radioBtns)return null;let t=e.radioBtnsClient?.getSelectedItem?.();return t?.dataset??null},D=e=>{let t=U(e);return t?{...t,...e.paymentArkoseEnabled&&e.arkoseToken&&{arkoseToken:e.arkoseToken}}:null},O=(e,{newSupportedMethods:t,regWallEl:r}={})=>{if(!e.expressCheckoutController)return;if(t?.length){if(r?.querySelector(`.${f}__continue-with-btns-wrapper`)?.classList.contains(T))return;["applePay","googlePay"].forEach(e=>{if(!t.includes(e)){let t="applePay"===e?"apple-pay":"google-pay";r?.querySelector(`.${f}__continue-with-btn--${t}`)?.remove()}});return}let{container:l}=e.expressCheckoutController;l&&l.remove(),e.expressCheckoutController=null,r&&W(r)},V=e=>{e.paymentArkoseEnabled&&e.arkoseAPI&&e.expressCheckoutController&&e.arkoseAPI.run()},M=async e=>{await i({useCase:u.PAYMENT,enforcementConfig:{onReady:({enforcement:t})=>{e.arkoseAPI=t},onCompleted:({token:t})=>{e.arkoseToken=t}}}),k(C.SCRIPT_LOAD_FAILED,()=>{e.arkoseEnforcementFailed=!0,O(e)})},N=e=>{k(E.LOGOUT_SUCCESS,()=>{e.open&&window.location.reload()})},W=e=>{let t=e.querySelector(`.${f}__continue-with-btns-wrapper`),r=e.querySelector("#regwall-credit-card-link");t&&t.classList.add(`${f}__continue-with-btns-wrapper--hidden`),r&&(r.classList.remove(`${f}__credit-card-link`),r.classList.add("button","button--light-mode","button--size-small"),r.textContent="Continue with Credit Card")},H=async(e,{region:t="US",source:r}={})=>{if(!e.userIsLoggedIn)return null;let n=e.el,o=`${e.class}__express-checkout-wrapper`,s=n.querySelector(`.${o}`);if(!s)return null;let c=l.get("ENABLE_PAYMENT_ARKOSE",!1),i={expressCheckoutController:null,expressCreditCardLink:n.querySelector("#regwall-credit-card-link"),radioBtns:e.radioBtns,radioBtnsClient:e.radioBtnsClient,paymentArkoseEnabled:c,arkoseToken:null,arkoseAPI:null};c&&await M(i);try{i.expressCheckoutController=new d({el:s,region:t,mountDomElementSelector:"#express-checkout-element",theme:a.WHITE,enabledRegions:$()});let e=i.expressCheckoutController,l=r||"reg_wall";await e.initialize({onExpressCheckoutDisabled:e=>O(i,{...e,regWallEl:n}),onExpressCheckoutReady:e=>I(n,e),getPurchaseParams:()=>D(i),onSuccess:()=>v(l),sourceConfig:{defaultSource:l},deferElementSetup:!0,buttonType:"subscribe"}),e.setUpExpressCheckoutElement(e.supportedPaymentMethods)}catch(e){return S("error","Express checkout initialization failed",{stack:e.stack}),O(i,{regWallEl:n}),null}return k(_.CLICKED,({expressPaymentType:t})=>{q(e.interactionBase,t,e.componentStellarId)}),p(y.EXPRESS_CHECKOUT_LOADED,{expressCheckout:i}),i},K=(e,t)=>{e.el.classList.remove(`${e.class}--${e.currentView}`),e.el.classList.add(`${e.class}--${t}`),e.currentView=t},z=e=>{let t=L();n("paywallExpressCheckoutEnabled")&&(H(e,{region:t,source:e.source}),k(y.EXPRESS_CHECKOUT_LOADED,({expressCheckout:t})=>{e.expressCheckout=t,e.selectedProductEl&&t?.expressCheckoutController?.updateRenewalCheckboxVisibility(e.selectedProductEl),e.open&&V(e.expressCheckout)}))},F=({formattedPrice:e,introPricing:t,frequency:r,billingInterval:l,productUpi:n,productCurrency:o})=>x({formattedCost:e,billingInterval:r||("Annual"===l?"year":"month"),productUpi:n,introPricing:t,currency:o},{isPaywall:!0}),X=(e,t)=>{e.selectedProductEl=t,e.expressCheckout?.expressCheckoutController?.updateRenewalCheckboxVisibility(t),e.digitalWalletLegalTextEl&&t&&(e.digitalWalletLegalTextEl.innerHTML=F(t.dataset))};e.exports={isPaywallExpressCheckoutEnabled:()=>l.get("EXPRESS_CHECKOUT_FEATURE_ENABLED")&&n("paywallExpressCheckoutEnabled"),initExpressCheckout:H,runArkoseOnWallShow:V,getSelectedProductDataset:U,getExpressPurchaseParams:D,disableExpressCheckout:O,handleRegWallPurchaseSuccess:v,showCreditCardFallback:W,setupExpressCheckoutTerms:e=>{let t=!!e.el.querySelector(`.${e.class}__terms-inline`);if(e.termsView=e.el.querySelector(`.${e.class}__terms-view`),!t&&!e.termsView)return;e.selectedProductEl=e.el.querySelector(".formfield-radio-buttons__option--selected"),k(h.SELECTED,({selectedItem:t})=>{X(e,t)}),N(e);let r=e.el.querySelector("#regwall-credit-card-link");if(r&&(e.bindSelectedProductToLink(r,{updateSelectedProductId:!0}),r.addEventListener("click",()=>{B(e.interactionBase,e.componentStellarId)})),t){e.digitalWalletLegalTextEl=e.el.querySelector(".user-account-express-checkout__renewal-text .formfield-checkbox__checkbox-label"),z(e);return}e.digitalWalletLegalTextEl=e.termsView.querySelector(`.${e.class}__terms-legal-text`),e.termsBackBtn=e.termsView.querySelector(`.${e.class}__terms-back-btn`);let l=!1,n=e.el.querySelector(`.${e.class}__continue-with-btns-wrapper`),o=e.el.querySelector(`.${e.class}__continue-with-btn--apple-pay`),s=e.el.querySelector(`.${e.class}__continue-with-btn--google-pay`);if(!n)return;z(e);let a=t=>{if(!e.selectedProductEl)return;A(e.componentName,e.componentStellarId),e.digitalWalletLegalTextEl.innerHTML=F(e.selectedProductEl.dataset);let r=e.expressCheckout?.expressCheckoutController,n=r?.supportedPaymentMethods,o=n?.length===t.length&&n[0]===t[0];r?.updateRenewalCheckboxVisibility(e.selectedProductEl),K(e,e.views.TERMS),l||(R(e.termsView,e.componentName,e.componentStellarId),l=!0),o||r?.setUpExpressCheckoutElement(t)};o?.addEventListener("click",()=>a(["applePay"])),s?.addEventListener("click",()=>a(["googlePay"])),e.termsBackBtn.addEventListener("click",()=>{K(e,e.views.MAIN)})},setupExpressCheckout:z,toggleView:K,setupLogoutCallback:N,trackExpressClick:q,observeExpressTermsAndConditions:R}}}]); /* window.modules["71"] */ "use strict";(self.modules=self.modules||[]).push([["71"],{71:(e,t,o)=>{let{smallMaxWidthListener:l}=o("11"),d=".user-account-reg-wall:not(.user-account-reg-wall--hide)",s=!1,c=!1,u=()=>!!document.querySelector(d),n=()=>document.querySelector(d)?.dataset.dismissible==="true",r=e=>{u()&&e&&!s&&(document.body.style.overflow="hidden",document.body.style.position="static",document.body.style.height="100vh")},i=({dismissible:e}={})=>{s=e??n(),document.documentElement.style.overflow="hidden",c?l(r,{onlyOnce:!0}):(l(r),c=!0)};e.exports={isPaywallOpen:u,applyPaywallScrollLock:i,restorePaywallScrollLockIfNeeded:()=>{u()&&i()}}}}]); /* window.modules["72"] */ "use strict";(self.modules=self.modules||[]).push([["72"],{72:(l,e,a)=>{let r=a("24"),{resolveEnabledRegion:t}=a("51"),s={meterPaywallMeterMax:3,meterPaywallVariation:"",meterPaywallPvLossResetEnabled:!1,meterPaywallResetStorageEnabled:!1,meterPaywallOff:!0,subOnlyPaywallVariation:"",subOnlyPaywallVariationViewChangeMax:1,subOnlyPaywallOff:!0,livestoryPaywallMeterEnabled:!1,livestoryPaywallOff:!0,watchButtonMarketingRedirectEnabled:!1,regwallMeterMax:6,regwallAllowSubOnlyAccess:!1,regwallAllowFreeAccess:!1,regwallAllowViaOptimizely:!1,regwallOff:!0,subscriptionOfferType:"",paywallExpressCheckoutEnabled:!1,paywallExpressCheckoutVariation:"",paywallEmailCaptureEnabled:!1},w=(l=t())=>(r.get("DYNAMIC_CONFIG.paywall_regional_flags",{})||{})[l]||{},n=(l,e)=>{if(!(l in s))throw Error(`getRegionFlag: unknown flag "${l}"`);return w(e)[l]??s[l]};l.exports={FLAG_DEFAULTS:s,getAllRegionFlags:w,getRegionFlag:n,shouldDowngradeSubOnlyToMeter:l=>n("subOnlyPaywallOff",l)&&!n("meterPaywallOff",l)}}}]); /* window.modules["73"] */ "use strict";(self.modules=self.modules||[]).push([["73"],{73:(e,t,l)=>{let a=l("24"),{ClientTemplate:i}=l("104"),{actions:s,subscribe:n}=l("65"),{decode:o}=l("49"),{SSO:r}=s,{createSsoBtn:p}=l("585"),{initCustomGoogleButton:E}=l("95"),{initCustomAppleButton:h}=l("586"),c={GOOGLE:"GOOGLE",APPLE:"APPLE",EMAIL:"EMAIL"},d=[c.GOOGLE,c.APPLE];e.exports={SocialSignOnHelper:class{constructor(e){this.googleSsoEnabled=a.get("REG_SSO_GOOGLE_ENABLED"),this.appleSsoEnabled=a.get("REG_SSO_APPLE_ENABLED"),this.hbsEnv=i.createHandlebarsEnvironment(),this.setupIdentities(e)}setupIdentities(e){let{el:t,googleData:l,appleData:i,ssoLoadCompleteCallback:s,isAmazonPVCPromo:n,isEmailCaptureRegWall:o,wallCountAnalyticsValue:r,onAmazonPVCClick:p}=e;this.el=t,this.googleData=l,this.appleData=i,this.ssoLoadCompleteCallback=s,this.isAmazonPVCPromo=n||!1,this.isEmailCaptureRegWall=o||!1,this.wallCountAnalyticsValue=r??"",this.componentStellarId=t?.dataset?.componentStellarId,this.onAmazonPVCClick=p,this.identityMap={...this.googleData&&this.googleSsoEnabled&&{GOOGLE:{name:c.GOOGLE.toLowerCase(),wrapper:this.el.querySelector(this.googleData.wrapperSelector),type:c.GOOGLE,clientId:a.get("SSO_GOOGLE_CLIENT_ID")}},...this.appleData&&this.appleSsoEnabled&&{APPLE:{name:c.APPLE.toLowerCase(),wrapper:this.el.querySelector(this.appleData.wrapperSelector),type:c.APPLE,clientId:a.get("SSO_APPLE_CLIENT_ID")}}},this.subscribeSsoLoadComplete(),this.initSsoBtns()}subscribeSsoLoadComplete(){let e=[],t=0;this.identityMap.GOOGLE&&e.push("google"),this.identityMap.APPLE&&e.push("apple"),n(r.BTN_LOADED,({type:l})=>{e.includes(l)&&t++,t===e.length&&this.ssoLoadCompleteCallback&&this.ssoLoadCompleteCallback()})}initSsoBtns(){let{GOOGLE:e,APPLE:t}=this.identityMap,l=e?.wrapper,a=t?.wrapper;if(l){let{initAlreadyCalled:t,templateData:a,credentialHandler:i,loginHint:s}=this.googleData,n=p({ssoType:this.identityMap.GOOGLE.name,...a},this.hbsEnv,!0);l.innerHTML=n,E({containerEl:l,credentialHandler:i,clientId:e.clientId,initAlreadyCalled:t,loginHint:s,isAmazonPVCPromo:this.isAmazonPVCPromo,isEmailCaptureRegWall:this.isEmailCaptureRegWall,wallCountAnalyticsValue:this.wallCountAnalyticsValue,componentStellarId:this.componentStellarId,onAmazonPVCClick:this.onAmazonPVCClick})}if(a){let{templateData:e,onSuccess:l,onError:i,initAlreadyCalled:s}=this.appleData,n=p({ssoType:this.identityMap.APPLE.name,...e},this.hbsEnv,!0);a.innerHTML=n,h({containerEl:a,clientId:t.clientId,onSuccess:l,onError:i,initAlreadyCalled:s,isAmazonPVCPromo:this.isAmazonPVCPromo,isEmailCaptureRegWall:this.isEmailCaptureRegWall,wallCountAnalyticsValue:this.wallCountAnalyticsValue,componentStellarId:this.componentStellarId,onAmazonPVCClick:this.onAmazonPVCClick})}}},IDENTITY_TYPES:c,IDENTITY_TYPE_KEY:"CNN_ITYPE",ssoIdentityTypes:d,getEmailFromSSOCredential:e=>{let t=e?.split(".")?.[1];if(!t)return null;try{let{email:e}=JSON.parse(o(t));return e||null}catch{return null}},getPreferredIdentityType:e=>{let t=(Array.isArray(e)?e:[]).map(e=>e?.identityType).filter(Boolean);return t.find(e=>d.includes(e))||(t.includes(c.EMAIL)?c.EMAIL:t[0])}}}}]); /* window.modules["74"] */ "use strict";(self.modules=self.modules||[]).push([["74"],{74:(s,e,t)=>{let a=t("113"),{getSSOIdentityTypes:l,loginUser:r}=t("26"),{getPreferredIdentityType:i}=t("73"),u=async(s,e)=>{let t=!1,u=null,o=await l({credential:e,identityType:s}),d=Array.isArray(o?.data)?o.data:[],n=d.some(e=>e?.identityType===s),p=n?s:i(d);if(o.success&&n){let{success:l,userInfo:i}=await r({ssoType:s,password:e});u=a(i,"user.userProfileResponses.cnn.profileStatus"),t=l}return{userLoggedIn:t,profileStatus:u,lookupFailed:!o.success,existingIdentityType:p}};s.exports={loginExistingSSOUser:u}}}]); /* window.modules["75"] */ "use strict";(self.modules=self.modules||[]).push([["75"],{75:(e,r,o)=>{let d=o("24"),{addScriptTag:s}=o("1"),t={google:{scriptId:"google-sso",getSrc:()=>d.get("SSO_GOOGLE_SRC"),isLoaded:()=>!!window.google?.accounts?.id},apple:{scriptId:"apple-sso",getSrc:()=>d.get("SSO_APPLE_SRC"),isLoaded:()=>!!window.AppleID}},i={};e.exports={loadSsoSdk:e=>{let r=t[e];if(!r)return Promise.reject(Error(`Unknown SSO provider: ${e}`));if(r.isLoaded())return Promise.resolve();if(i[e])return i[e];let o=r.getSrc();return o?(i[e]=new Promise((d,t)=>{let l=document.getElementById(r.scriptId)||s({src:o,async:!0,id:r.scriptId});if(r.isLoaded()){d();return}l.addEventListener("load",()=>d()),l.addEventListener("error",()=>{l.remove(),delete i[e],t(Error(`Failed to load SSO SDK for provider: ${e}`))})}),i[e]):Promise.reject(Error(`Missing SSO SDK src for provider: ${e}`))}}}}]); /* window.modules["76"] */ "use strict";(self.modules=self.modules||[]).push([["76"],{76:(e,t,i)=>{let n=i("24"),{authClient:r}=i("26"),{getActiveSub:s}=i("35"),{isAllAccessSubscriber:o,isReadOnlySubscriber:a}=i("36"),{isSection:c,SECTIONS:h}=i("7"),{isLivestory:d}=i("2"),{trackMetrics:l}=i("9"),u=i("113"),{EventBasedPreview:w}=i("584"),g=i("16").setup({file:"/index.js"}),{toggleLockIconsBasedOnAuth:v}=i("123"),{isInternalURL:p}=i("1"),{setCookie:S,removeCookie:f,getCookie:T}=i("40"),E=(e,t=null)=>{let i;i=t?new CustomEvent(e,{detail:t}):new Event(e),window.dispatchEvent(i)},_={ADOBE:"adobe",JWS:"jws"},A={NOT_LOGGED_IN:"NOT_LOGGED_IN",LOGGED_IN_NO_SUB:"LOGGED_IN_NO_SUB",SUB_READER_TIER:"SUB_READER_TIER",SUB_ALL_ACCESS:"SUB_ALL_ACCESS"},m=["episode","film"];class P{constructor(e){if(this.authType="clientful",this.builderOptions=e,this.preview={},this.state={resolved:!1},this.error=null,this.topAuthConfig=window.topDefaultAuthConfig||{authType:this.authType,ecid:n.get("TOP_AUTH_ECID")||"",platform:"web",mvpdConfigURL:n.get("TOP_AUTH_MVPD_CONFIG_URL")||"",serviceAppId:n.get("TOP_AUTH_SERVICE_APP_ID")||"",dtcServiceAppId:n.get("TOP_AUTH_DTC_SERVICE_APP_ID")||"",softwareStatement:n.get("TOP_AUTH_SOFTWARE_STATEMENT")||"",freeviewEnv:n.get("TOP_FREEVIEW_ENV")||"",freeviewSecretKey:n.get("TOP_FREEVIEW_SECRET_KEY")||"",dtcFreeviewSecretKey:n.get("TOP_FREEVIEW_DTC_SECRET_KEY")||"",brand:"CNN"},P._instance)return P._instance;P._instance=this,this.auth=null,this.freeview=null,this.context=null,this.cobranding=null,this.isAwaitingLogin=!1,window.TOP?(e=>{if(e){let{topAuthConfig:t}=this,i=new e.AuthConfigBuilder().withAuthType(t.authType).withPlatform(t.platform).withMVPDConfigURL(t.mvpdConfigURL).withServiceAppId(t.serviceAppId).withSoftwareStatement(t.softwareStatement).withBrand(t.brand);this.builderOptions&&Object.keys(this.builderOptions).forEach(e=>{i[e](this.builderOptions[e])});let n=i.build();this.auth=e.create(n),this.attachMVPDisteners(t.mvpdConfigURL)}else g("error","Error initializing TOP auth")})(window.TOP&&window.TOP.Auth):console.warn("TOP doesnt exist",window.TOP)}attachMVPDisteners=e=>{this.auth.events.loginError.listen(()=>{this.onLoginError(e)}),this.auth.events.loginSuccess.listen(()=>{this.onLoginSuccess(e)}),this.auth.events.logoutError.listen(()=>{this.onLogoutError(e)}),this.auth.events.logoutSuccess.listen(()=>{this.onLogoutSuccess(e)}),this.auth.events.pickerViewStateChanged.listen(t=>{let i=t?.pickerViewState?.provider?.displayName||null;t?.pickerView==="allProviders"?this.onPickerViewStateChangedAllProviders(e):t?.pickerView==="providerNotFound"?this.onPickerViewStateChangedProviderNotFound(e):t?.pickerView==="providerLogin"&&i?this.onPickerViewStateChangedproviderLogin(e,i):t?.pickerView==="closed"&&E("mvpdModalClosed",{reason:this.PickerViewStateChangedResult})}),this.auth.events.presentPicker.listen(()=>{this.onPresentPicker(e)}),this.auth.events.selectProviderSuccess?.listen?.(e=>{this.onSelectProviderSuccess(e)})};onLoginError=e=>{l({type:"user-interaction",data:{interaction:"module load",componentName:"tvelogin_loginError",componentStellarId:e}})};onLoginSuccess=e=>{l({type:"user-interaction",data:{interaction:"module load",componentName:"tvelogin_successmessage",componentStellarId:e}}),v(),b(!0)};onLogoutError=e=>{l({type:"user-interaction",data:{interaction:"module load",componentName:"tvelogin_logoutError",componentStellarId:e}})};onLogoutSuccess=e=>{l({type:"user-interaction",data:{interaction:"module load",componentName:"tvelogin_logoutSuccess",componentStellarId:e}}),v(),b(!1)};onPickerViewStateChangedAllProviders=e=>{l({type:"user-interaction",data:{interaction:"module load",componentName:"tvelogin_mvpdlist",componentStellarId:e}})};onPickerViewStateChangedProviderNotFound=e=>{l({type:"user-interaction",data:{interaction:"module load",componentName:"tvelogin_notfound",componentStellarId:e}})};onPickerViewStateChangedproviderLogin=(e,t)=>{l({type:"user-interaction",data:{interaction:"module load",componentName:`tve login:${t}`,componentStellarId:e}})};onPresentPicker=e=>{l({type:"user-interaction",data:{interaction:"module load",componentName:"tvelogin_mvpdsbylogo",componentStellarId:e}})};onSelectProviderSuccess=e=>{let{handler:t,url:i}=e?.result||{};if("AppHandled"===t&&i){if(!p(i)){g("warn",`Blocked external redirect from TOP auth selectProviderSuccess: ${i}`);return}window.location.assign(i)}};initializeContext=async()=>{try{this.context=await this.auth.prepare()}catch(e){g("error",`Error initializing TOP auth context: ${e}`)}};refreshContext=async()=>{try{this.context=await this.auth.prepare()}catch(e){g("error",`Error fetching TOP auth context: ${e}`)}};initEventBasedPreview=async(e,t)=>{this.preview[e]=await w.init(e,t)};isPreviewActive=e=>e&&this.preview[e]?.isEnabled;isAuthenticated(){let e=this.context&&this.context.isAuthenticated();return b(!!e),e}refreshAuth=async()=>{await this.refreshContext(),!this.cobranding&&this.isAuthenticated()&&await this.buildCobrandingImage()};initAuthAndCheckAuthn=async()=>(await this.initializeContext(),this.isAuthenticated());checkAuthn=async()=>(await this.refreshContext(),this.isAuthenticated());buildCobrandingImage=async()=>{if(this.auth&&this.context?.authenticatedProvider)try{this.cobranding=await this.auth.buildImageURL({context:"cobranding",providerId:this.context.authenticatedProvider.id,color:"white",width:270,height:40}),window.localStorage.setItem("mvpdCobrandImg",this.cobranding?.imageURL)}catch(e){g("error",`Unable to build MVPD co-branding image: ${e}`)}};_getAuthTokenWithoutCobranding=async()=>{try{let{token:e}=await this.auth.authorize({channel:"CNN"});return{accessToken:e,accessTokenType:_.ADOBE,mvpd:this.context?.authenticatedProvider?.id}}catch(e){g("error",`Error getting auth token from TOPAuth: ${e}`);return}};_getToken=async()=>{try{return await this.checkAuthn()&&E("userloggedin",{cobranding:this.cobranding}),this._getAuthTokenWithoutCobranding()}catch(e){if(e.metadata?.subErrorCode==="User not Authorized Error")return e.message=`${e.message} - You will be automatically logged out in 10 seconds`,this.error=e,{accessToken:void 0,accessTokenType:_.ADOBE,mvpd:this.context?.authenticatedProvider?.id};g("error","Error getting playback token from TOPAuth",e);return}};getPlaybackToken=async()=>{if(await this.checkAuthn())return await this._getToken();await this.triggerPickerLogin()};login=async()=>{await this.auth.login();let e=await this.checkAuthn();await this.buildCobrandingImage(),e&&E("userloggedin",{cobranding:this.cobranding})};logout=()=>{this.auth.logout(),b(!1),window.location.reload()};triggerPickerLogin=async()=>{if(!this.isAwaitingLogin){this.isAwaitingLogin=!0;try{await this.refreshContext(),this.isAuthenticated()||await this.login()}catch(e){g("error",`Unable to log in to TOP: ${e}`)}finally{setTimeout(()=>{this.isAwaitingLogin=!1},0)}}};determineAuthPath=async(e,t,i,n,r={})=>{let s;let o=await this.checkAuthn(),a=await y(),{isAuthenticatedContent:c}=r;if(0===i.length&&"false"===c)s=void 0;else if(o&&i.includes("tve"))window.localStorage.setItem("tveAuthType","true"),s=await this._getToken();else if(this.isPreviewActive(t))s=void 0;else if(a===A.SUB_ALL_ACCESS&&i.includes("dtc")){let t=await k(e);t&&(s={accessToken:t,accessTokenType:_.JWS})}else{if(m.includes(n))return this._resetFreeviewStatus(),s;let t=!!r.deferFreeviewStart,o=!!r.forceFreeviewStart;if(t&&!o){this._resetFreeviewStatus();return}s=await this.buildFreeViewData(e,i,n)}return s};_resetFreeviewStatus(){this.freeview={},this.freeview.status={expires:Date.now(),endSession:()=>{this.forceFreeviewEnd()},expired:!0}}async buildFreeViewData(e,t,i){return this.freeview&&"function"==typeof this.freeview.endSession?(this.freeview.endSession(),this.freeview.events.removeAllListeners?.()):this.buildFreeView(t,i),this.freeview.mediaId=e,this.freeview.contentType=i,new Promise(n=>{this.freeview.events.listen({sessionStarted:e=>this.handleFreeviewSessionStart(e,n),sessionExpired:()=>this.handleFreeviewSessionExpired(n,i,t)}),this.freeview.startSession(this.buildFreeviewSession(e))})}buildFreeView(e,t){let i=window.TOP&&window.TOP.Freeview,{topAuthConfig:n}=this,r=n.serviceAppId,s=n.freeviewSecretKey,o=()=>{this.forceFreeviewEnd()};"live-stream"===t&&e?.includes("dtc")&&n.dtcServiceAppId&&(r=n.dtcServiceAppId,s=n.dtcFreeviewSecretKey,o=()=>{}),this.freeview=i.create(i.FreeViewConfigBuilder.create().withAppId(r).withSecretKey(s).withEnvironment(n.freeviewEnv).build()),this.freeview.status={expires:Date.now()+0,endSession:o,expired:!0}}handleFreeviewSessionStart(e,t){let i=e.expires-Date.now()>0;this.freeview.status={expires:e.expires,endSession:()=>{this.forceFreeviewEnd()},expired:!i},E("freeviewStart",{freeview:this.freeview}),this.state.resolved=!0,t({accessToken:e.jwt,accessTokenType:_.JWS})}async handleFreeviewSessionExpired(e,t,i){let n=c(h.HOMEPAGE);if(i?.includes("dtc")||n||d()){this._resetFreeviewStatus(),e(void 0);return}e(await this.getPlaybackToken())}async forceFreeviewEnd(){await this.triggerPickerLogin()}buildFreeviewSession(e){return window.TOP.Freeview.SessionContentBuilder.create().withMediaId(e).build()}}let y=async()=>r.tokenWithAuthn()?await o()?A.SUB_ALL_ACCESS:await a()?A.SUB_READER_TIER:A.LOGGED_IN_NO_SUB:A.NOT_LOGGED_IN,C=async()=>{let e=r.getToken();if(!e||!e.length){g("error","No token found for DTC active subscription check");return}return await s(e)},k=async e=>{let t=r.getToken();if(!t?.length)return;let i=(await r.getAuthZTokens([e],t)).results.find(t=>t.mediaId===e);return i&&i.token},b=async e=>{let t=T("cnnW");if(e&&!t){let e=P._instance?.auth,t=window.TOP?.Auth?.MetadataKey?.AUTHENTICATED_TTL;if(!e?.fetchMetadata||!t)return;try{let{value:i}=await e.fetchMetadata(t),n=Number(i);if(!Number.isFinite(n)||n{let e="",t=n.get("TOP_AUTH_SESSION_NAME")||"",i=window.sessionStorage.getItem(t);return i&&(e=u(JSON.parse(i),"data","")),e},getAuthZToken:k,getDtcActiveSub:C,getUserAccessLevel:y,updateMVPDAuthMarketingCookie:b}}}]); /* window.modules["79"] */ (self.modules=self.modules||[]).push([["79"],{79:e=>{e.exports=function(e){return null==e}}}]); /* window.modules["80"] */ (self.modules=self.modules||[]).push([["80"],{80:(i,t,n)=>{var r=n("556"),e=n("578"),o=n("579"),u=Math.max,a=Math.min;i.exports=function(i,t,n){var f,c,v,d,l,m,s=0,p=!1,T=!1,h=!0;if("function"!=typeof i)throw TypeError("Expected a function");function x(t){var n=f,r=c;return f=c=void 0,s=t,d=i.apply(r,n)}function g(i){var n=i-m,r=i-s;return void 0===m||n>=t||n=v}function y(){var i,n,r,o=e();if(g(o))return E(o);l=setTimeout(y,(i=o-m,n=o-s,r=t-i,T?a(r,v-n):r))}function E(i){return(l=void 0,h&&f)?x(i):(f=c=void 0,d)}function M(){var i,n=e(),r=g(n);if(f=arguments,c=this,m=n,r){if(void 0===l)return s=i=m,l=setTimeout(y,t),p?x(i):d;if(T)return clearTimeout(l),l=setTimeout(y,t),x(m)}return void 0===l&&(l=setTimeout(y,t)),d}return t=o(t)||0,r(n)&&(p=!!n.leading,v=(T="maxWait"in n)?u(o(n.maxWait)||0,t):v,h="trailing"in n?!!n.trailing:h),M.cancel=function(){void 0!==l&&clearTimeout(l),s=0,f=m=c=l=void 0},M.flush=function(){return void 0===l?d:E(e())},M}}}]); /* window.modules["81"] */ (self.modules=self.modules||[]).push([["81"],{81:(i,n,e)=>{var r=e("80"),t=e("556");i.exports=function(i,n,e){var a=!0,l=!0;if("function"!=typeof i)throw TypeError("Expected a function");return t(e)&&(a="leading"in e?!!e.leading:a,l="trailing"in e?!!e.trailing:l),r(i,n,{leading:a,maxWait:n,trailing:l})}}}]); /* window.modules["83"] */ "use strict";(self.modules=self.modules||[]).push([["83"],{83:(e,r,t)=>{let{ClientTemplate:l}=t("104"),o=t("589"),s=t("598"),{generateAmazonPvcLink:a}=t("43");e.exports={createConfirmationForm:(e,r=!1)=>{let t=l.createHandlebarsEnvironment({helpers:{generateAmazonPvcLink:a},partials:{"brand-logo":s}}).template(o)({...e,noRef:!0});return r?t:l.createElementFromHTML(t)}}}}]); /* window.modules["85"] */ "use strict";(self.modules=self.modules||[]).push([["85"],{85:(e,t,r)=>{let{ClientTemplate:n}=r("104"),a=r("590"),o=r("596");e.exports={createAccordion:(e,t=!1)=>{let r=n.createHandlebarsEnvironment({partials:{"accordion-item":o}}).template(a)({...e,noRef:!0});return t?r:n.createElementFromHTML(r)},createAccordionItem:(e,t=!1)=>{let r={...e,noRef:!0},a=n.createHandlebarsEnvironment().template(o)(r);return t?a:n.createElementFromHTML(a)}}}}]); /* window.modules["92"] */ "use strict";(self.modules=self.modules||[]).push([["92"],{92:(e,t,n)=>{let a=n("24"),{getRegionFlag:s}=n("72"),{getPaywallTemplateData:o,wallTypes:r}=n("618"),{defaultManageWallVisibility:l}=n("69"),{getMeterData:i,payMeterConfig:d}=n("527"),{actions:u,dispatch:c}=n("65"),{getCookie:p}=n("40"),{PAYWALL:A}=u,{isSubscriberCB:m}=n("69"),E=["iab-gdpr","data-share","data-store","ads-contextual","ads-person-prof","ads-person","content-person-prof","content-person","measure-ads","measure-content","measure-market"],L="pianoSessionId",w=(e,t,a=l,u=!1,{isSubscriptionContent:p=!1}={})=>{if(e.classList.contains("user-account-reg-wall--activated"))return;let E=s("meterPaywallMeterMax");m(s=>{let l=e.classList.contains("user-account-reg-wall--activated");if(s||l){c(A.UPDATE_STATUS,{fired:!1});return}let m=t;if(p){let{subOnlyWallCount:e}=i({...d,shouldIncrementWallCount:!1,shouldIncrementSubOnlyWallCount:!0});m=e}let L=o({meterMax:E,wallCount:m,wallType:p?r.EXCLUSIVE_PAYWALL:r.METER_PAYWALL,isLoggedIn:u}),{triggerRegWall:w}=n("617");w(e,{isLoggedIn:u,...L},a),c(A.UPDATE_STATUS,{fired:!0})})};e.exports={pianoUCStates:E,pianoCookieName:"__pianoParams",pianoSessionIdKey:L,pianoEnabledAndHasUserConsent:()=>a.get("PIANO_WALL_ENABLED")&&a.get("PIANO_ENABLED")&&window.WBD.UserConsent.inUserConsentState(E,{name:"piano-init"}),triggerWall:w,setupPianoMeterWall:(e,t=l,n=!1)=>{let a=window.CNN.metadata?.content?.subscriptionContent,o=s("meterPaywallMeterMax"),r=0;if(!a){let{wallCount:e}=i({...d,meterMax:o});r=e}window.PIANO_WALL_TRIGGERED?w(e,r,t,n,{isSubscriptionContent:a}):document.addEventListener("piano_wall_triggered",()=>{w(e,r,t,n,{isSubscriptionContent:a})},{once:!0})},getPianoSessionId:()=>p(L,"")||""}}}]); /* window.modules["94"] */ "use strict";(self.modules=self.modules||[]).push([["94"],{94:(e,s,t)=>{let a=t("24"),o=a.get("DAM_API_HOST"),_=a.get("DAM_SERVING_HOST"),i=a.get("DAM_ACCESS_KEY"),m=a.get("DAM_DEFAULT_PATH"),l=t("632"),d=`build-env=${a.get("CONTENT_HUB_ENV")}; unique-deployment-key=${a.get("CONTENT_HUB_UNIQUE_DEPLOYMENT_KEY")}; build-version=${a.get("__CONTENT_HUB_BUILD_VERSION__")}; build-commit-hash=${a.get("__CONTENT_HUB_BUILD_COMMIT_HASH__")}`,n={images:new l({damApiHost:o,damServingHost:_,damAccessKey:i,damDefaultPath:m,damDocument:"images",DAM_TYPE:"stellar",userAgent:d}),loops:new l({damApiHost:o,damServingHost:_,damAccessKey:i,damDefaultPath:m,damDocument:"loops",DAM_TYPE:"stellar",userAgent:d}),videos:new l({damApiHost:o,damServingHost:_,damAccessKey:i,damDefaultPath:m,damDocument:"videos",DAM_TYPE:"stellar",userAgent:d})};e.exports=n.images,e.exports.imageClient=n.images,e.exports.loopClient=n.loops,e.exports.videoClient=n.videos,e.exports.getDamClient=e=>{switch(e){case"image":default:return n.images;case"loop":return n.loops;case"video":return n.videos}}}}]); /* window.modules["95"] */ "use strict";(self.modules=self.modules||[]).push([["95"],{95:(t,e,o)=>{let{actions:n,dispatch:i}=o("65"),{SSO:c}=n,a=o("24"),{trackMetrics:l}=o("9"),{addGenericClickAnalytics:u,zionEventHandler:r}=o("10");t.exports={initCustomGoogleButton:({containerEl:t,credentialHandler:e,clientId:o,enableOneTap:n,enableAutoSignIn:s,initAlreadyCalled:g,loginHint:p,isAmazonPVCPromo:d,isEmailCaptureRegWall:m,wallCountAnalyticsValue:_,componentStellarId:w,onAmazonPVCClick:y})=>{let b;let h=o||a.get("SSO_GOOGLE_CLIENT_ID"),k=()=>{let e=t.querySelector('.user-account-sso-button[data-sso-type="google"]');if(!e)return;let o=e.querySelector(".user-account-sso-button__button-handle"),n=e.querySelector(".user-account-sso-button__button");b?.renderButton(o,{type:"icon",width:"200"});let a=o?.querySelector("div[role=button]");n.addEventListener("click",()=>{d?(l({type:"user-interaction",data:{interaction:"user account:continue with google:click"}}),u({componentType:"button",traits:{component_name:"user account:continue with google",action:"click",feature:"social login"}}),y?.("continue with google")):m?(l({type:"user-interaction",data:{interaction:`regiwall:google${_}:continue:click`}}),r({href:window.location.href,type:"BUTTON",customAttributes:{component_id:w,component_type:"regiwall",component_name:"regiwall",action:"button click",interaction:"continue with google"}},"GenericLinkClick")):(l({type:"user-interaction",data:{interaction:"cnn account:sign in with google:button:initiate"}}),u({componentType:"button",traits:{component_name:"cnn account:sign in with google:button:initiate",action:"click",feature:"social login"}})),a?.click()}),i(c.BTN_LOADED,{type:"google"})},f=()=>{b=window.google?.accounts?.id,g||b?.initialize({client_id:h,callback:e,use_fedcm_for_prompt:!0,...s&&{auto_select:!0},...p&&{login_hint:p,button_auto_select:!0}}),n?b?.prompt(t=>{t.isSkippedMoment()&&l({type:"user-interaction",data:{interaction:"cnn account:sign in with google:one tap:dismiss:click"}})}):k()};"complete"!=document.readyState?window.addEventListener("load",()=>{f()}):f()}}}}]); /* window.modules["96"] */ "use strict";(self.modules=self.modules||[]).push([["96"],{96:(s,e,l)=>{let t=l("617"),u=l("527"),o=l("69"),d=l("618"),f=l("619"),m=l("620"),p=l("621"),r=l("622");s.exports={...t,...o,...u,...d,...f,...m,...r,...p}}}]); /* window.modules["97"] */ "use strict";(self.modules=self.modules||[]).push([["97"],{97:(e,t,s)=>{let i=s("113"),{v4:r}=s("163"),{addPurchase:a,addPaymentSource:n,getActiveSub:o,createSetupIntent:c,resolveGizmoRegion:l}=s("35"),h=s("24"),{loadStripe:u}=s("142"),{createPaymentMethod:p,confirmCardSetup:d,paymentSourceTypes:g,getPaymentErrorMessage:m}=s("45"),{pianoEnabledAndHasUserConsent:y,getPianoSessionId:f,pianoSessionIdKey:k}=s("92"),{removeCookie:_}=s("40");e.exports=class{constructor({el:e,region:t,token:s,creditCardFields:i}){this.el=e,this.token=s,this.region=t,this.creditCardFields=i,this.idempotencyKey=r()}async initialize(){let e=h.get(`GIZMO_${l(this.region)}_STRIPE_PUBLISH_KEY`);this.stripe=await u(e)}async getSetupIntent(){let{clientSecret:e}=await c(this.token,this.region);return this.clientSecret=e,e}async processCardCheckout({arkoseToken:e,cardElement:t,ownerName:s}){let r={},a=this.creditCardFields?.buildBillingDetailsOwner()??{name:s},{paymentMethod:o,error:c}=await p({cardElement:t,stripe:this.stripe,owner:a,region:this.region});if(o&&!c){r.paymentMethodId=o.id;let s=await n(this.token,{source:r.paymentMethodId,setupIntentParameters:{create:!1,confirm:!1},...e&&{misc:{arkoseSessionToken:e}}},this.region);r.lastRequest="payment_source";let{success:i}=s;i&&(s=await d({stripe:this.stripe,cardElement:t,clientSecret:this.clientSecret,paymentMethod:o,owner:{name:a.name}}),r.lastRequest="confirm_setup_intent"),r={...r,...s}}else{let e=i(c,"code","");r.stripeError=e,r.errorMsg=m(e,{region:this.region,fallback:i(c,"message","")})}return r}async createPurchase({productId:e,paymentSource:t,cardElement:s,ownerName:i,expressSetupResult:r,metadata:n,subscriptionIdForRenewal:c,arkoseToken:l=null}){let h,u={success:!1,lastRequest:"create_payment_method"};if(t===g.CARD){let{errorMsg:e,stripeError:t,...r}=await this.processCardCheckout({cardElement:s,ownerName:i,arkoseToken:l});if(h=r,e)return u.errorMsg=e,u.stripeError=t,u}else if(t===g.EXPRESS&&(h=r??{},!(r&&r.setupIntent&&r.paymentMethodId)))return{...u,lastRequest:"express_setup",errorMsg:"Missing payment details for express checkout."};let{setupIntent:p,paymentMethodId:d}=h;if(p){let t={purchases:[{productId:e,idempotencyKey:this.idempotencyKey,...c&&{subscriptionId:c}}],source:d},s={...n||{}};if(y()){let e=f();e&&(s.piano_session_id=e)}Object.keys(s).length>0&&(t.purchases[0].metadata=s),h=await a(this.token,t,this.region),h?.success&&_(k),h.lastRequest="purchase";let{subscriptions:i}=await o(this.token),r=h.purchaseData?.purchases[0]?.subscriptionId,l=i?.find(({id:e})=>e===r);h.purchaseDateMillis=l?.purchaseDateMillis}let{errors:I,...w}=h;if(u={...w},I&&I.length){let{error:e,message:t}=I[0],s=m(e,{region:this.region,fallback:t});u={...u,errorMsg:s,stripeError:e}}return u}}}}]); /* window.modules["104"] */ "use strict";(self.modules=self.modules||[]).push([["104"],{104:(t,e,r)=>{let n=r("724"),a=r("643");class l{constructor(t,e,r={}){this._hbs=l.createHandlebarsEnvironment(r),this._currentState=l.extractStateFromElement(t),this._template=this._hbs.template(e),this._currentElement=t}static createHandlebarsEnvironment(t){let e=t&&t.helpers?t.helpers:{},r=t&&t.partials?t.partials:{},l=a(n.create());for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&l.registerHelper(t,e[t]);for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)){let e=r[t];l.registerPartial(t,"string"==typeof e?e:l.template(e))}return l}static extractStateFromElement(t){let e={};try{e=JSON.parse(t.dataset.state)}catch(t){}return e}static createElementFromHTML(t){let e=document.createElement("div");return e.innerHTML=t,e.firstElementChild}getElement(){return this._currentElement}getState(){return this._currentState}render(t){let e={...this._currentState,...t},r=this._template(e),n=l.createElementFromHTML(r);this._currentElement.parentNode.replaceChild(n,this._currentElement),this._currentElement=n,this._currentState=e}}t.exports={ClientTemplate:l}}}]); /* window.modules["105"] */ "use strict";(self.modules=self.modules||[]).push([["105"],{105:(e,t,n)=>{let{setCookie:o}=n("40"),i=e=>{switch(e){case void 0:return"undefined";case null:return"null";case"":return"nvs";default:return e}},a=e=>{let t=e.map(i).join("|");o(`hpt=${t};path=/;`)};e.exports={setAdobeAnalyticsCookie:(e,t)=>{e.addEventListener("click",()=>{a([window.CNN.contentModel.section,t.zone_type,t.zone_name,t.zone_position_number,t.zone_total_number,t.product_zone_position_number,t.product_zone_total_number,t.combined_zone_position_number,t.combined_zone_total_number,t.stacks_identifier,t.stack_position,t.stack_total_number,t.container_type,t.container_name,t.container_position_number,t.container_total_number,t.container_page_position_number,t.container_page_total_number,t.card_link_type,t.card_name,t.card_position_number,t.card_total_number,t.card_label])})},setAdobeAnalyticsGenericDataCookie:(e,t=[])=>{e.addEventListener("click",()=>{a(t)})},setLiveStoryUpdatesAnalyticsCookie:(e,t)=>{e.addEventListener("click",()=>{a([t.templateType,t.module,t.linkNumber,t.totalNumberOfLinks,t.linkValue])})},setFollowAdobeAnalyticsCookie:(e,t)=>{e.addEventListener("click",()=>{a([t.feature,t.templateType,t.module,t.topicName,t.topicId])})},convertValueToAdobeAnalyticsData:i,setAdobeAnalyticsDataForCookie:a}}}]); /* window.modules["108"] */ (self.modules=self.modules||[]).push([["108"],{108:(e,r,t)=>{var n=t("606"),o=t("607"),f=t("608"),u=t("554"),i=t("609"),l=t("610"),s=t("611"),p=t("612"),c=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(i(e)&&(u(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||p(e)||f(e)))return!e.length;var r=o(e);if("[object Map]"==r||"[object Set]"==r)return!e.size;if(s(e))return!n(e).length;for(var t in e)if(c.call(e,t))return!1;return!0}}}]); /* window.modules["112"] */ (self.modules=self.modules||[]).push([["112"],{112:(e,l,s)=>{var u=s("626");e.exports=function(e,l,s){return null==e?e:u(e,l,s)}}}]); /* window.modules["113"] */ (self.modules=self.modules||[]).push([["113"],{113:(e,l,o)=>{var s=o("625");e.exports=function(e,l,o){var u=null==e?void 0:s(e,l);return void 0===u?o:u}}}]); /* window.modules["114"] */ (self.modules=self.modules||[]).push([["114"],{114:s=>{s.exports=function(){}}}]); /* window.modules["115"] */ "use strict";(self.modules=self.modules||[]).push([["115"],{115:(e,t,E)=>{let{isArabicSite:s,isEspanolSite:n,isCNN10Site:u}=E("327"),l=E("24");function S(){return[].concat(l.get("ALL_ACCESS_ENABLED_REGIONS",[])||[])}e.exports={getAllAccessEnabledRegions:S,isSubscriptionsEnabled:function(e){let t=S();return l.get("USER_ACCOUNT_ENABLED")&&t.length>0&&l.get("HEADER_SUBSCRIPTIONS_BUTTON_ENABLED")&&!n(e)&&!s(e)&&!u(e)}}}}]); /* window.modules["117"] */ "use strict";(self.modules=self.modules||[]).push([["117"],{117:(A,L,E)=>{let{resolveEnabledRegion:_,CONFIG_BY_REGION:C}=E("51"),{paywallOfferTypes:e}=E("580"),{generateRenewalText:S}=E("37"),Y={US:E("572"),CA:E("634"),UK:E("635")},R={[e.ALL_ACCESS_NO_OFFER]:["ALL_ACCESS_MONTHLY","ALL_ACCESS_YEARLY"],[e.WELCOME]:["ALL_ACCESS_MONTHLY","ALL_ACCESS_WELCOME_OFFER_YEARLY"],[e.NYE]:["NYE_OFFER_ANNUAL","BASIC_YEARLY"],[e.ANNUAL_INTRO_OFFER]:["ALL_ACCESS_WELCOME_OFFER_YEARLY","BASIC_YEARLY"],[e.ANNUAL_NO_OFFER]:["ALL_ACCESS_YEARLY","BASIC_YEARLY"],DEFAULT:["BASIC_YEARLY","BASIC_MONTHLY"]},O={US:"",CA:"",UK:e.ALL_ACCESS_NO_OFFER},F=A=>C[A]?.promoProducts,l=(A,L)=>{let E=R[L||"DEFAULT"],_=F(A);return!!E&&!!_&&E.every(A=>_[A])};A.exports={getRegionalWallConfig:(A=_())=>C[A]||{},getWallProductsForRegion:(A=_())=>Y[A]||[],isOfferTypeSupported:l,resolveValidatedOfferType:(A,L)=>l(A,L)?L||"":O[A]??"",buildRegionalRenewalText:S}}}]); /* window.modules["119"] */ "use strict";(self.modules=self.modules||[]).push([["119"],{119:(e,l,t)=>{let d=t("738"),a={STATE:"state",ZIP:"zip"},s={US:[a.STATE,a.ZIP],GB:[a.ZIP],CA:[a.ZIP]},i={US:"ZIP code",GB:"Postal code",CA:"Postal code"},r={US:"Enter a valid ZIP.",GB:"Enter a valid postal code.",CA:"Enter a valid postal code."},o=(e="US")=>r[e]||r.GB,S=(e,l="US")=>!0===d.validate(l,e);e.exports={ADDRESS_FIELDS:a,getPostalCodeValidationMessage:o,getFormfieldsForRegion:(e=[],l="US")=>{let t=s[l]||s.US,d=i[l]||i.US;return e.filter(e=>!e.addressField||t.includes(e.addressField)).map(e=>e.addressField!==a.ZIP?e:{...e,labelText:d,ariaLabelText:d})},validateZipCode:S,validateZipCodeField:(e,{required:l=!1,countryCode:t="US"}={})=>{let d=e.trim();if(l&&!d.length){let e=i[t]||i.GB;return`${e} is required.`}return d.length&&!S(d,t)?o(t):""}}}}]); /* window.modules["121"] */ "use strict";(self.modules=self.modules||[]).push([["121"],{121:(e,t,n)=>{let a=n("370"),{buildVodEpisodePlayerConfig:l}=n("21"),{setAssetAnalytics:r,setAuthTypeAnalytics:s}=n("23"),{isVodUpNextEnabled:u}=n("22"),o=".tve-vod-detail__season-wrapper",d=`${o}.active`,i='[data-component-name="tve-asset"][data-playable-asset]',c=null;function p(e){return e?[...e.querySelectorAll(i)].map(e=>({assetData:{...e.dataset},assetEl:e})):[]}function m(e){let t=a(e);return delete t.bolt,t}function f(){return c||(c=p(document.querySelector(d)))}function y(e={},t,n={}){return function(e,t={},{applyTileAnalytics:n=!1}={}){return e.map(({assetData:e,assetEl:a})=>{let u=l(e,a);return n&&(r(u,{updatePlayerInstance:!1}),s(u,{updatePlayerInstance:!1})),{...u,markupId:t.markupId,networkId:t.networkId||e.networkId,el:t.el}})}(function(e){let t=f();return null==e||t.some(t=>t.assetData.assetId===e)?t:p([...document.querySelectorAll(o)].find(t=>[...t.querySelectorAll(i)].some(t=>t.dataset.assetId===e)))}(t),e,n)}e.exports={invalidateEpisodeCache:function(){c=null},getUpNextPlayConfigs:function(e,t){let n=y(e,t),a=n.findIndex(e=>e.mediaMetadata?.mediumId===t);return -1===a?[]:n.slice(a+1).map(m)},getContentDiscoveryPlayConfigs:function(e,t){let n=y(e,t,{applyTileAnalytics:!0});return u()?n.map((e,t)=>({...a(e),bolt:{upNext:{enabled:!0,playConfigs:n.slice(t+1).map(m)}}})):n},scrapeActiveSeasonAssetEntries:f}}}]); /* window.modules["122"] */ "use strict";(self.modules=self.modules||[]).push([["122"],{122:(e,t,r)=>{let{authClient:i}=r("26"),{getRegionFlag:a}=r("72"),{isPageVariant:n,PAGE_VARIANTS:o}=r("6"),{isAllAccessSubscriber:c}=r("36"),{isAuthenticated:s}=r("63"),{getQueryParam:l}=r("44"),w=r("28"),d="/subscription/all-access",u=async({pageVariants:e,sourceArg:t,redirectArg:r})=>{if(n([o.TVE_SERIES,o.TVE_SERIES_V2,o.TVE_FILM,o.TVE_FILM_V2,o.LIVESTORY,o.HOMEPAGE])&&!a("watchButtonMarketingRedirectEnabled")||e&&!n(e)||i.tokenWithAuthn()&&await c()||s())return!1;let u=new w({}),E=l(new URLSearchParams(window.location.search),"source"),h=u.appendParams({targetUrl:new URL(d,window.location.origin),sourceUrl:new URL(window.location.pathname,window.location.origin),customParams:{source:E||t,redirect:r||window.location.href}});return u.triggerRedirect({redirectUrl:h,fallbackRedirect:d}),!0};e.exports={redirectToMarketing:u}}}]); /* window.modules["123"] */ "use strict";(self.modules=self.modules||[]).push([["123"],{123:(e,c,o)=>{let{convertAuthType:l}=o("1"),{checkDtcAccess:n}=o("63"),{isPageVariant:t,PAGE_VARIANTS:i}=o("6"),_=".tve-carousel__lock-icon, .container__lock-icon.container_dtc-shelf-carousel__lock-icon, .container__lock-icon.container_shelf-carousel__lock-icon, .container__lock-icon.container_shelf-carousel-tve__lock-icon, .container__lock-icon.container_shelf-carousel-tve-media-only__lock-icon, .container__lock-icon.container_shelf-carousel-tve-headlines__lock-icon",s=[i.TVE_DTC_VIDEO,i.ALLACCESS_VIDEO,i.TVE_STREAM,i.LIVE_TV,i.TVE_SERIES,i.TVE_FILM];async function r(e=document){if(!await n()){e.querySelectorAll(_).forEach(e=>e.classList.add("locked"));return}e.querySelectorAll(".tve-carousel__lock-icon.locked, .container__lock-icon.container_dtc-shelf-carousel__lock-icon.locked, .container__lock-icon.container_shelf-carousel__lock-icon.locked, .container__lock-icon.container_shelf-carousel-tve__lock-icon.locked, .container__lock-icon.container_shelf-carousel-tve-media-only__lock-icon.locked, .container__lock-icon.container_shelf-carousel-tve-headlines__lock-icon.locked").forEach(e=>e.classList.remove("locked"))}async function a(e){let c=e&&e.querySelector("video, .video-resource"),o=e.querySelector(".container__lock-icon");if(!c||!o)return;let t=l(c.dataset?.authType);if(!(t&&t.includes("dtc"))){o.classList.remove("locked");return}await n()?o.classList.remove("locked"):o.classList.add("locked")}e.exports={checkLockIconVisibility:a,toggleLockIconsBasedOnAuth:function(){s.some(e=>t(e))&&(r(),function(e=document){e.querySelectorAll(_).forEach(e=>{a(e.closest(".container_dtc-shelf-carousel__item")||e.closest(".container_shelf-carousel__item")||e.closest(".container_shelf-carousel-tve__item")||e.closest(".container_shelf-carousel-tve-headlines__item")||e.closest(".container__item")||e)})}())},toggleLockIcons:r}}}]); /* window.modules["124"] */ "use strict";(self.modules=self.modules||[]).push([["124"],{124:e=>{e.exports=function(e,t,s,n){let r=document.querySelector(`.${s}`);r||((r=document.createElement("div")).className=`scroll-depth-observer ${s}`,r.style=` top: ${e.offsetHeight*t}px; position: relative; width: 100%; left: 0; `,e.insertAdjacentElement("afterBegin",r));let o=new IntersectionObserver(function(e){e.map(e=>{e.isIntersecting&&(n(),o.unobserve(e.target))})});o.observe(r)}}}]); /* window.modules["127"] */ "use strict";(self.modules=self.modules||[]).push([["127"],{127:(e,t,o)=>{e.exports.envIsTruthy=o("666"),e.exports.findComponentRefInPage=o("669"),e.exports.findRefPath=o("667"),e.exports.hasPermission=o("668"),e.exports.getComponentInstance=o("670"),e.exports.getLayoutInstance=o("671"),e.exports.getComponentName=o("672"),e.exports.getLayoutName=o("673"),e.exports.getComponentStatus=o("674"),e.exports.getComponentVersion=o("675"),e.exports.getDeepLinkHashString=o("676"),e.exports.getPageInstance=o("677"),e.exports.getPageVersion=o("682"),e.exports.getListInstance=o("681"),e.exports.getPrefix=o("683"),e.exports.getPropSchema=o("684"),e.exports.getResourceType=o("685"),e.exports.getSharedComponentParentRef=o("692"),e.exports.hasSharedComponentMeta=o("686"),e.exports.hasSharedComponentOverrides=o("687"),e.exports.isClayUserApiKey=o("688"),e.exports.isChildSharedComponent=o("689"),e.exports.isComponent=o("690"),e.exports.isComponentPublished=o("691"),e.exports.isLayout=o("693"),e.exports.isLayoutMeta=o("694"),e.exports.isDefaultComponent=o("695"),e.exports.isDefaultLayout=o("696"),e.exports.isPage=o("697"),e.exports.isPageMeta=o("698"),e.exports.isParentSharedComponent=o("699"),e.exports.isPublished=o("700"),e.exports.isSharedComponent=o("701"),e.exports.isSharedComponentPage=o("702"),e.exports.isList=o("703"),e.exports.isUri=o("704"),e.exports.isUser=o("705"),e.exports.listDeepObjects=o("706"),e.exports.listDeepObjectsWithoutShared=o("707"),e.exports.listParentSharedComponentsAndNested=o("709"),e.exports.replaceVersion=o("722"),e.exports.replaceAllVersions=o("708"),e.exports.setSharedComponentOverride=o("710"),e.exports.uriPrefixToSlug=o("711"),e.exports.uriSlugToPrefix=o("712"),e.exports.jsonPrefixToSlug=o("713"),e.exports.jsonSlugToPrefix=o("714"),e.exports.isSharedComponentActive=o("723"),e.exports.setCreatedLeafPage=o("715"),e.exports.getCreatedLeafPage=o("716"),e.exports.metaPatchCreatedFromComponent=o("717"),e.exports.setDefaultComponentVariation=o("718")}}]); /* window.modules["128"] */ "use strict";(self.modules=self.modules||[]).push([["128"],{128:(e,t,o)=>{let{getComponentInstance:n}=o("127"),l=o("113");e.exports={getAssetTraits:function(e){let t="[data-component-name='tve-carousel']",o=document.querySelectorAll(t),a=e.closest(t);return{cms_id:l(window,"CNN.contentModel.cmsId",""),canonical_url:l(window,"CNN.contentModel.canonicalUrl",""),component_id:n(e.dataset.uri||""),component_text:e.dataset.assetTitle,component_position:Array.prototype.indexOf.call(l(e,"parentNode.children",[]),e)+1,component_total:l(e,"parentNode.childElementCount",0),component_type:"video",carousel_id:n(l(a,"dataset.uri","")),carousel_type:"carousel",carousel_text:l(a,"dataset.title",""),carousel_position:Array.prototype.indexOf.call(o,a)+1,carousel_total:o.length}}}}}]); /* window.modules["129"] */ "use strict";(self.modules=self.modules||[]).push([["129"],{129:(t,e,n)=>{let{getComponentInstance:r}=n("127"),{zionEventHandler:a}=n("10"),i="[data-component-name='container'], [data-component-name='tve-carousel']",o="[data-component-name='card'], [data-component-name='tve-asset']",l=new Set(["play-main","play-inline"]);function s(t){return r(t||"")||""}function c(t,e={}){if(!t)return{href:"",type:"",customAttributes:{}};let n=function(t){if(!t)return t;let e=t.closest?.(o);if(!e)return t;let n=t.closest?.("a[href], [data-render-intent]");return n&&e.contains(n)?n:t}(t),r=n.closest(i),a=n.closest(o),u=r?Array.from(r.querySelectorAll(o)).filter(t=>t.closest(i)===r):[],d=Array.from(document.querySelectorAll(i)).filter(t=>(t.dataset?.componentName==="tve-carousel"||t.classList?.contains("container_shelf-carousel")||t.classList?.contains("container_dtc-shelf-carousel"))&&t.querySelector(o)),f=a?u.indexOf(a):-1,m=r?d.indexOf(r):-1,_=function(t){let e={};for(let[n,r]of Object.entries(t))""!==r&&null!=r&&(e[n]=r);return e}({component_id:s(a?.dataset?.uri),component_name:function(t,e){if(!e)return t.getAttribute?.("aria-label")||"";let n=e.dataset||{};return n.assetSubTitle||n.assetTitle||e.querySelector(".container__headline-text")?.textContent?.trim()||e.querySelector(".tve-asset__title")?.textContent?.trim()||n.videoTitle||t.getAttribute?.("aria-label")||""}(n,a),component_type:!function(t,e){let n=t.dataset?.renderIntent||t.closest("[data-render-intent]")?.dataset?.renderIntent;if(n&&l.has(n)||e?.dataset?.playableAsset==="1")return!0;let r=e?.querySelector(".container__card-wrapper");return!!(r?.dataset?.dtcVod==="true"&&(r===t||r.contains(t)))}(n,a)?"link":"video",item_position_number:f>=0?f+1:null,item_position_total:u.length||null,container_id:s(r?.dataset?.uri),container_type:r?"carousel":"",container_name:r&&(r.dataset?.title||r.querySelector(".container__title-text")?.textContent?.trim()||r.querySelector(".container__title_url-text")?.textContent?.trim()||r.querySelector(".tve-carousel__title")?.textContent?.trim())||"",container_position_number:m>=0?m+1:null,container_total_number:d.length||null,...e});return{href:function(t,e){if("A"===t.tagName&&t.href)return t.href;let n=t.querySelector?.("a[href]");if(n?.href)return n.href;if(e?.dataset?.assetUrl)return e.dataset.assetUrl;if(e?.dataset?.openLink)return e.dataset.openLink;let r=e?.dataset?.assetId||t.dataset?.assetId||e?.dataset?.videoId||t.dataset?.videoId;return r?`/videos/${r}`:""}(n,a),type:n.tagName||"",customAttributes:_}}t.exports={buildWatchGenericLinkClickPayload:c,fireWatchGenericLinkClick:function(t,e={}){t&&a(c(t,e),"GenericLinkClick")}}}}]); /* window.modules["130"] */ "use strict";(self.modules=self.modules||[]).push([["130"],{130:(e,t,i)=>{let s=i("360"),a=i("662"),m=i("663"),n=i("439"),{formatTimestampArabic:_,formatTimestampET:p}=i("133"),c=i("260"),{getSite:l,getSiteLanguage:d,isSite:v,SITES:r}=i("131"),u=i("664"),o=i("725"),{isPageVariant:$,PAGE_VARIANTS:h}=i("297"),{updateComponentVariation:f}=i("547"),E=(e,t)=>e.getTime()===t.getTime();function b(e){return $(e,[h.ARTICLE_ELEVATE_SMALL,h.ARTICLE_ELEVATE_MEDIUM,h.ARTICLE_ELEVATE_LARGE,h.ARTICLE_ELEVATE_XLARGE])}function L(e,t,i,s,a="،"){return e?`${c(t,"Updated")}${a} ${s} `:""}e.exports={displayElevatedTimestamp:function(e,t,i){let s=e?.meta?.firstPublishDate,a=e?.meta?.lastPublishDate;if(!s)return` Draft - created ${p(new Date(t),"dateFirst","shortGeneric")} `;if(e.edit)return i?` Timestamp not displayed `:` Timestamp displays here `;let m=!E(new Date(s),new Date(a)),n=d(l(e));if(v(e,r.arabic))return function(e,t,i,s){let a=_(new Date(e),!0),m=_(new Date(t)),n=L(i,s,t,m);return` ${c(s,"Updated")} ${m} ${c(s,"Published")} ${a} ${n} ${c(s,"Published")} ${a} `}(s,a,m,n);let u=p(new Date(s),"dateFirst","shortGeneric"),o=p(new Date(a),"dateFirst","shortGeneric"),$=L(m,n,a,o,"");return` ${c(n,"Updated")} ${o} ${c(n,"Published")} ${u} ${$} PUBLISHED ${u} `},elevateWhenNeeded:function(e,t,i=!1){return f(e,t,[()=>{if(!e)return"";if(!b(t))return e;let s=!e.includes("_");return!0===i&&s?`${e}_elevate`:`${e}-elevate`}])},formatLastUpdatedElevate:function(e,t,i=r.cnn){let _=d(i);t=new Date(t);let p=!E(new Date(e),t),l=new Date,v=s(t)?u(t):t,$=a(l,v),h=m(l,v),f=h%60,b=p?"Updated ":"";if(h${c(_,`${b}a min ago`)}`;if(i===r.arabic){if(2===h)return`${c(_,`${b}2 min ago`)}`;if(h${c(_,p?"Last updated since":"Published since")} ${h} ${c(_,"minutes")}`;if(h${c(_,p?"Last updated since":"Published since")} ${h} ${c(_,"minute")}`;if(1===$)return`${c(_,`${p?"Updated":"Published"} 1 hour ago`)}`;else if(2===$)return`${c(_,`${p?"Updated":"Published"} 2 hours ago`)}`;else if($${b}${f} min ago`:$0?`${b}${$} hr ${f} min ago`:${let{isOfType:r}=t("13"),c={cnn:"cnn",espanol:"es",arabic:"ar",cnn10:"cnn10"};Object.freeze(c);let i={[c.espanol]:"es",[c.cnn]:"en",[c.arabic]:"ar",[c.cnn10]:"en"},o=Object.entries(c).reduce((n,[e,t])=>(n[t]=e,n),{});function u(n,e=c.cnn){return n?.site?.site??n?.brandSite??e}function s(n){return i[n]||"en"}n.exports={SITES:c,getSite:u,getCurrentSite:function(){return"undefined"==typeof window?c.cnn:u(window.kiln?.locals??window.CNN?.contentModel,c.cnn)},getSiteLanguage:s,getSiteName:function(n){return o[n]||"cnn"},isSite:function(n,e){return r(e,u(n))},getDirection:function(n){return"ar"===s(u(n,"cnn"))?"rtl":"ltr"}}}}]); /* window.modules["133"] */ "use strict";(self.modules=self.modules||[]).push([["133"],{133:(e,t,n)=>{let a=n("439"),r=n("260"),o=n("730"),i=n("729"),s=n("662"),u=n("663"),m=n("664"),l=n("731"),f=n("732"),c=n("733"),g=n("360"),p=n("734");function D(){return new Date().toLocaleTimeString("undefined"==typeof navigator?"en-US":navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en-US",{timeZoneName:"short"}).split(" ").pop()}function d(e,t="short"){return e.toLocaleString("en-US",{timeZone:"America/New_York",timeZoneName:t}).split(" ").pop()}function y(e){return!e||isNaN(Date.parse(e))?null:(e instanceof Date||(e=new Date(e)),`${e.toISOString().slice(0,-5)}Z`)}let $="America/New_York";function T(e){if(!e)return"";let t=e instanceof Date?e:new Date(e);if(Number.isNaN(t.getTime()))return"";let n=t.toLocaleDateString("en-US",{timeZone:$,month:"long",day:"numeric",year:"numeric"});return`Ended on ${n}`}let w={PRE:"pre",LIVE:"live",POST:"post"};function M(e,t){return e?(e instanceof Date||(e=new Date(e)),a(e,`h:mm aaaa${t?` '${D()}',`:""} MMMM d, yyyy`)):""}function h(e){e instanceof Date||(e=new Date(e));let t=new Date(e.toLocaleString("en-US",{timeZone:"America/New_York"})),n=a(new Date(e.toLocaleString("en-US",{timeZone:"GMT"})),"HH:mm"),r=a(t,"MMMM",{locale:o});return a(t,`HH:mm 'ET (${n} GMT)' d 'de ${r} de' yyyy`,{locale:o})}e.exports.intervalContainsDate=(e,t,n)=>{let a=e instanceof Date?e:new Date(e),r=t instanceof Date?t:new Date(t),o=n instanceof Date?n:new Date(n);try{return p(a,{start:r,end:o})}catch(e){return!1}},e.exports.usersTimeZone=D,e.exports.formatDate=function(e,t){return e?(e instanceof Date||(e=new Date(e)),a(e,t)):""},e.exports.formatDateISO=y,e.exports.formatDateET=function(e,t){return e?("now"===e?e=new Date:e instanceof Date||(e=new Date(e)),a(new Date(e.toLocaleString("en-US",{timeZone:"America/New_York"})),t)):""},e.exports.formatTimestamp=M,e.exports.formatTimestampET=function(e,t="timeFirst",n="short"){e instanceof Date||(e=new Date(e));let r=e.toLocaleString("en-US",{timeZone:"America/New_York"}),o=d(e,n),i="dateFirst"===t?`MMM d, yyyy, h:mm a '${o}'`:`h:mm a '${o}' MMMM d, yyyy`;return a(new Date(r),i)},e.exports.formatDuration=function(e,t=!1,n=!1){if(Number.isNaN(parseFloat(e))||0>=parseFloat(e))return"00:00";let a=Math.floor(e/3600),r=Math.floor((e-3600*a)/60),o=Math.floor(e-3600*a-60*r),i=e=>e0&&(t.minutes+=1),c(t,{format:["hours","minutes"]}).replace(/hours?/,"hr").replace(/minutes?/,"min")},e.exports.formatLastUpdated=function(e,t=!0){let n;if(!e)return"";let a=new Date,r=g(e)?m(y(e)):e,o=s(a,r),i=u(a,r)%60;return 1>u(a,r)?"less than 1 min ago":o0&&(n=n.replace("ago",`${i} min ago`)),n):M(r,t)},e.exports.formatLastUpdatedEspanol=function(e,t=!0){let n;if(!e)return"";let a=new Date,r=g(e)?m(y(e)):e,o=s(a,r),i=u(a,r)%60;return 1>u(a,r)?"Hace menos de 1 minuto":o1?"s":""}`:o1?"s":""}`,i>0&&(n=n.replace(/hora(s?)$/,`hora$1 y ${i}${i>1?" minutos":" minuto"}`)),n):h(r,t)},e.exports.formatLiveStoryCardTimestamp=function(e){let t=e?.__fields?.updated_at??e?.updated_at??e?.lastPublished??null;if(!t)return null;let n=u(new Date,g(t)?m(y(t)):t);return n>120?null:n=60?"1 hr ago":`${n} min ago`},e.exports.formatTimestampEdition=function(e){e instanceof Date||(e=new Date(e));let t=a(new Date(e.toLocaleString("en-US",{timeZone:"Asia/Hong_Kong"})),"HHmm"),n=a(new Date(e.toLocaleString("en-US",{timeZone:"GMT"})),"HHmm"),r=a(e,"MMMM dd, yyyy");return`${n} GMT (${t} HKT) ${r}`},e.exports.formatTimestampEspanol=h,e.exports.formatTimestampArabic=function(e,t=!1,n){return e instanceof Date||(e=new Date(e)),a(new Date(e.toLocaleString("en-US",{timeZone:"GMT"})),"video"===n?t?`EEEE، dd MMMM yyyy`:"dd MMMM yyyy":t?`EEEE، dd MMMM yyyy، HH:mm 'غرينتش'`:`dd MMMM yyyy، HH:mm 'غرينتش'`,{locale:i})},e.exports.formatTimestampDomestic=function(e){e instanceof Date||(e=new Date(e));let t=e.toLocaleString("en-US",{timeZone:"America/New_York"}),n=d(e),r=new Date(t),o=a(r,"cccc").substring(0,3);return a(r,`h:mm a '${n},' '${o}' MMMM d, yyyy`)},e.exports.getTimeStampFromLastUpdated=function(e){if(!e)return null;if(g(e)){let t=m(y(e)).valueOf();return isNaN(t)?null:t}return e instanceof Date?e.valueOf():null},e.exports.getNewYorkTimezone=d,e.exports.jsDateToUnix=e=>(e instanceof Date?e:new Date(e)).getTime(),e.exports.parseIso8601ToSeconds=function(e){let t=e.match(/^P(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/);return t?86400*parseInt(t[1]||"0",10)+3600*parseInt(t[2]||"0",10)+60*parseInt(t[3]||"0",10)+parseInt(t[4]||"0",10):NaN},e.exports.stripDurationLeadingZero=function(e){return"string"!=typeof e?e:e.startsWith("0")?e.slice(1):e},e.exports.SECONDS_PER_HOUR=3600,e.exports.formatDurationForScreenReader=function(e,t){if(!e||"string"!=typeof e)return"";let n=e.split(":").map(Number),a=0,o=0,i=0;if(3===n.length)[a,o,i]=n;else{if(2!==n.length)return"";[o,i]=n}if(!n.every(Number.isFinite))return"";let s=[];return a>0&&s.push(`${a} ${r(t,1===a?"hour":"hours")}`),o>0&&s.push(`${o} ${r(t,1===o?"minute":"minutes")}`),(i>0||0===s.length)&&s.push(`${i} ${r(t,1===i?"second":"seconds")}`),s.join(" ")},e.exports.formatCatchUpTimestamp=function(e){let t;if(!e)return"";if(g(e)){let n=y(e);t=n?m(n):null}else t=e;if(!t||isNaN(new Date(t).getTime()))return"";let n=new Date,a=u(n,t);if(a(e[t.type]=t.value,e),{}),n=(t.dayPeriod||"").toUpperCase();return"00"===t.minute?`${t.hour}${n}`:`${t.hour}:${t.minute}${n}`}(r),i=r.toLocaleDateString("en-US",{timeZone:$,month:"long",day:"numeric",year:"numeric"}),s=`${i}, ${o} ET`;if(!n)return s;let u=t instanceof Date?t:new Date(t),m=!a||a instanceof Date?a:new Date(a);if(m instanceof Date&&!Number.isNaN(m.getTime())&&u.getTime()>=m.getTime())return T(m);if(r.getTime()-u.getTime()e.toLocaleDateString("en-CA",{timeZone:$}),a=new Date(`${n(e)}T00:00:00Z`);return Math.round((new Date(`${n(t)}T00:00:00Z`)-a)/864e5)}(u,r);return 0===l?`Today, ${o} ET`:1===l?`Tomorrow, ${o} ET`:s},e.exports.formatEventEndedLabel=T,e.exports.resolveEventPhase=function(e,t,n=new Date){let a=e instanceof Date?e:new Date(e),r=t instanceof Date?t:new Date(t),o=n instanceof Date?n:new Date(n);return Number.isNaN(a.getTime())||Number.isNaN(r.getTime())||Number.isNaN(o.getTime())?null:o.getTime(){let r=n("113"),{isArticle:i}=n("12"),u=n("24");e.exports={isFeatureEnabled:function(e={},t){if(u.get("ENABLE_EXCLUDE_FEATURES",!1)){let n=["all",...Array.isArray(t)?t:[t]],i=r(e,"query.exclude",null);if(i&&""!==i.trim())return!i.split(",").some(e=>{let t=RegExp(`^${e}`,"ig");return n.some(e=>t.test(e))})}return!0},isArticleFeatureEnabled:function(e={},t){return!i(e.configuration)||!t||!!u.get(t)},isTrinityFeatureEnabled:function(e,t){let n=!0;if("boolean"==typeof e&&t){let r=u.get(`TRINITY_CONFIGURATION.${e?"international":"domestic"}.michonne.features.${t}`);n=void 0===r?n:!!r}return n},isAdsFeatureEnabled:function(e={}){return e.configuration?.showAds??!0},isUkUpdatesEnabled:function(){return!!u.get("UK_UPDATES_ENABLED",!1)}}}}]); /* window.modules["139"] */ "use strict";(self.modules=self.modules||[]).push([["139"],{139:(e,t,n)=>{let o=n("113"),{setAdobeAnalyticsCookie:r}=n("105"),{addZJSClickAttributes:l}=n("10"),{isSection:a,SECTIONS:i}=n("7"),c="data-zion-processed",u=e=>{let t=e.length;return new Map(e.map((e,n)=>[e,{position:n+1,total:t}]))},s=e=>{let t=e.querySelector(".container__item-media");return t?t.firstElementChild?.dataset.componentName:"link"},_=e=>{let t=e.querySelector(".container__text-label--text-content");if(!t){let n=e.closest('[data-uri*="/card/"]');n&&(t=n.querySelector(".container__text-label--text-content"))}return t&&t.innerText?.trim()||""},d=e=>e.dataset.collapsedText?.trim()||e.dataset.componentName,m=(e,t,n={})=>{if(!e||!t)return;let{componentName:a,nameSelector:i,typeSelector:p,linkSelector:S,typeLocation:y,typePrefix:z="",nestedComponent:b}=t,f="zone"===a?e.querySelectorAll(".zone, .product-zone"):e.querySelectorAll(`[data-uri*="/${a}/"]`),A="zone"===a?u(Array.from(e.querySelectorAll(".zone:not(.product-zone)"))):null,k="zone"===a?u(Array.from(e.querySelectorAll(".product-zone"))):null,N="zone"===a?u(Array.from(f)):null;f.forEach((e,t)=>{let u="zone"===a,L=u&&e.classList.contains("product-zone"),h=e.dataset.uri,q=e.dataset.componentName,E=i?e.querySelector(i):null,g=p?e.querySelector(p):e,T=o(g,y)||o(g,"classList.[0]"),C=S?e.querySelector(S):e,x={...n,[`${a}_id`]:h,[`${a}_name`]:u?d(e):E?.innerText?.trim(),[`${a}_type`]:`${"product-zone"===q?"product-zone_":z}${T}`,...u?{}:{[`${a}_position_number`]:t+1,[`${a}_total_number`]:f.length}};if(u){let t=N.get(e);if(x={...x,combined_zone_position_number:t.position,combined_zone_total_number:t.total},L){let t=k.get(e);x={...x,product_zone_position_number:t.position,product_zone_total_number:t.total,zone_position_number:"",zone_total_number:""}}else{let t=A.get(e);x={...x,zone_position_number:t.position,zone_total_number:t.total,product_zone_position_number:"",product_zone_total_number:""}}}if("stack"===a&&(x={...x,stacks_identifier:"stack",stack_position:t+1,stack_total_number:f.length}),"container"===a){let e=document.querySelectorAll('[data-uri*="/container/"]'),t=e.length,n=Array.from(e).findIndex(e=>e.dataset.uri===h);x={...x,container_page_position_number:n+1,container_page_total_number:t}}b&&(e.querySelectorAll(`[data-uri*="/${b.componentName}/"]`).length>0?m(e,b,x):b.nestedComponent&&m(e,b.nestedComponent,x)),Array.from(C?.querySelectorAll("a[href]")||[]).forEach(e=>{if(e.hasAttribute(c))return;let t="card"===a?{...x,card_link_type:s(e),card_label:_(e)}:{...x};r(e,t),l(e,t),e.setAttribute(c,"true")})})},p=null;e.exports={addZionAttributes:m,addZionAttributesForCard:e=>{let t=e||document.querySelector(".section");if(!t||!a([i.HOMEPAGE,i.US,i.WORLD,i.BUSINESS,i.POLITICS,i.ENTERTAINMENT,i.HEALTH,i.OPINIONS,i.TRAVEL,i.STYLE,i.SPORTS,i.WEATHER]))return;let n=window.CNN&&window.CNN.contentModel,o=document.querySelector("link[rel='canonical']"),r=n&&n.canonicalUrl||o&&o.href||window.location.href;m(t,{componentName:"zone",nameSelector:".zone__title, .product-zone__title",linkSelector:".zone__title-container, .product-zone__title-container, .zone__title, .product-zone__title",typeSelector:'[data-editable="items"]',typeLocation:"classList.[1]",typePrefix:"zone_",nestedComponent:{componentName:"stack",nameSelector:null,linkSelector:null,typeLocation:"classList.[0]",nestedComponent:{componentName:"container",nameSelector:'[data-editable="titleLink"]',linkSelector:'[data-editable="titleLink"]',typeLocation:"classList.[1]",nestedComponent:{componentName:"card",nameSelector:'[data-editable="headline"]',typeLocation:"classList.[0]"}}}},{cms_id:n?.cmsId,canonical_url:r})},getAllStackAnalytics:()=>{if(!p){let e=Array.from(document.querySelectorAll('[data-uri*="/stack/"]')),t=e.length;p=e.map((e,n)=>({element:e,analytics:{stack_position:n+1,stack_total_number:t}}))}return p},getZoneName:d,invalidateStackPositionCache:()=>{p=null}}}}]); /* window.modules["140"] */ "use strict";(self.modules=self.modules||[]).push([["140"],{140:(e,t,r)=>{let{ClientTemplate:l}=r("104"),s=r("641");e.exports={createMvpdPicker:(e,t=!1)=>{let r=l.createHandlebarsEnvironment().template(s)(e);return t?r:l.createElementFromHTML(r)}}}}]); /* window.modules["142"] */ "use strict";(self.modules=self.modules||[]).push([["142"],{142:(e,s,l)=>{l.r(s),l.d(s,{loadStripe:()=>d.loadStripe});var d=l("637")}}]); /* window.modules["143"] */ "use strict";(self.modules=self.modules||[]).push([["143"],{143:(e,t,n)=>{let{authClient:i}=n("26"),a=n("642"),{getAuthZToken:o}=n("76"),r={JWS:"jws"},s="uk_fv_expiry",c=function(){let e;let t=new Promise(t=>{e=t});return t.resolve=e,t}();async function w(e){(function(){let e=i.getToken(),t=setInterval(()=>{i.getToken()!==e&&(clearInterval(t),window.location.reload(!0))},200)})(),Object.assign(e.mediaMetadata,{id:"cvplive/uklive",headline:"Live Stream",images:[{name:"bp",uri:"https://dynaimage.cdn.turner.com/artemis/artemis/w_640/eb2b8b40-International_bigben_16x9.jpg"},{name:"bb",uri:"https://dynaimage.cdn.turner.com/artemis/artemis/w_128/eb2b8b40-International_bigben_16x9.jpg"},{name:"fp",uri:"https://dynaimage.cdn.turner.com/artemis/artemis/w_88/eb2b8b40-International_bigben_16x9.jpg"}]});let t=await o(e.mediaMetadata.mediumId);if(t){e.authentication={accessToken:t,accessTokenType:r.JWS};return}return function(){let e=window.localStorage.getItem(s);return!!e&&Date.now(){let n=e.mediaMetadata.mediumId,{FreeViewConfigBuilder:i,SessionContentBuilder:o}=window.TOP.Freeview,r=i.create().withAppId("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuZXR3b3JrIjoiY25uIiwicHJvZHVjdCI6ImNubnVrIiwicGxhdGZvcm0iOiJ3ZWIiLCJhcHBJZCI6ImNubi1jbm51ay13ZWItbjRwOXpwIn0.6AYBC9wXoXadXcyo_p3232XW9RUFYS2-n-LYeAIN_qM").withSecretKey("FL7xZnYEqNfEwwTBkukTcPqooiQkNXCU").withEnvironment(e.server.medium.environment).withFingerprintJS().build(),c=window.TOP.Freeview.create(r);c.events.listen({sessionStarted(n){let i=Date.now()+n.timeRemaining;l(i),new a(i),e.mediaPlayer="top",e.authentication={accessToken:n.jwt,accessTokenType:"jws"},t()},sessionExpired(){d(),Object.values(window.FAVE.player.instances).forEach(e=>e.stop()),window.localStorage.getItem(s)||l(Date.now()),t(void 0)}});let w=o.create().withMediaId(n).build();c.startSession(w)})}(e)}async function d(){let e=await c,t=i.getToken(),n=window.localStorage.getItem(s),a=!n||Date.now()parseInt(n)+864e5;await e.activate({isLoggedIn:!!(t&&t.length),isPreviewAvailable:a})}function l(e){window.localStorage.setItem(s,e)}e.exports={registerModal:c.resolve,applyEntitlement:w}}}]); /* window.modules["144"] */ "use strict";(self.modules=self.modules||[]).push([["144"],{144:(e,t,u)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,s.default)(2,arguments);var u=(0,l.default)(e),d=(0,a.default)(t);return isNaN(d)?new Date(NaN):(d&&u.setDate(u.getDate()+d),u)};var a=d(u("644")),l=d(u("655")),s=d(u("645"));function d(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default}}]); /* window.modules["148"] */ "use strict";(self.modules=self.modules||[]).push([["148"],{148:e=>{function t(e,{itemSelector:t,hiddenClass:a}){let r=e.querySelector("[data-tappable-preview-nav]"),i=Array.from(e.querySelectorAll(t));if(!r||!i.length)return null;let l=r.querySelector('[data-preview-action="prev"]'),n=r.querySelector('[data-preview-action="next"]'),c=0,d=e=>{c=Math.max(0,Math.min(e,i.length-1)),i.forEach((e,t)=>{e.classList.toggle(a,t!==c)}),l&&(l.disabled=0===c),n&&(n.disabled=c===i.length-1)};return l?.addEventListener("click",()=>d(c-1)),n?.addEventListener("click",()=>d(c+1)),d(0),{showIndex:d}}e.exports={wireRailCardPreview:function(e){return t(e,{itemSelector:".container_vertical-tappable__item",hiddenClass:"container_vertical-tappable__item--preview-hidden"})},wireStackPreview:function(e){return t(e,{itemSelector:'.stack_vertical-tappable__items > [data-component-name="container"]',hiddenClass:"stack_vertical-tappable__item--preview-hidden"})}}}}]); /* window.modules["163"] */ "use strict";(self.modules=self.modules||[]).push([["163"],{163:(e,l,a)=>{a.r(l),a.d(l,{NIL:()=>s.default,parse:()=>o.default,stringify:()=>i.default,v1:()=>d.default,v3:()=>t.default,v4:()=>u.default,v5:()=>f.default,validate:()=>r.default,version:()=>v.default});var d=a("651"),t=a("653"),u=a("652"),f=a("654"),s=a("657"),v=a("658"),r=a("659"),i=a("660"),o=a("661")}}]); /* window.modules["166"] */ "use strict";(self.modules=self.modules||[]).push([["166"],{166:(e,t,a)=>{let l=a("726"),n=a("727"),r=a("558"),{ClientTemplate:i}=a("104"),o=a("container.client"),c=a("card.client"),d=a("image.client"),{createContainer:s}=a("420"),{CARD_TYPES:u,createCard:m,setLabel:p,resolveIntent:h}=a("404"),b=a("113"),f=a("376"),{renderImage:y}=a("386"),{formatDate:g,formatLiveStoryCardTimestamp:w}=a("133"),{calculateReadTime:E}=a("728"),T=a("548"),{array:C,arrayIncludes:L,generateLabelHtml:M,shouldShowLabelAboveMedia:x,ternary:I,not:$}=a("547"),{getComponentInstance:_}=a("127"),{setCardImageRatios:q}=a("736"),{elevateWhenNeeded:A,isElevated:S}=a("130"),{getSelectedMedia:v,formatAuthorMetadata:k}=a("411"),{avatarCardName:z}=a("737"),{getReadTimeAsNumber:F,getReadTimeText:H}=a("13"),N=i.createHandlebarsEnvironment({helpers:{calculateReadTime:E,avatarCardName:z,setCardImageRatios:q,get:b,omit:f,renderImage:y,formatDate:g,inlineSafeString:T,array:C,arrayIncludes:L,generateLabelHtml:M,shouldShowLabelAboveMedia:x,elevateWhenNeeded:A,isElevated:S,not:$,ternary:I,getSelectedMedia:v,formatAuthorMetadata:k,formatLiveStoryCardTimestamp:w,getComponentInstance:_},partials:{image:r,card:n}}).template(l);e.exports=function(e,t,a){let l=N(function(e,t){let a;let{instance:l,layout:n,title:r,numberOfItems:i,recsModel:o,recsContentTypes:c,recsSections:d,source:b,breakpointCropRatios:f,breakpointCropCommands:y,ratios:g,tenantId:w,isFallbackResult:E,subscriberCardMakeUp:T}=t,C=!1;"contentRecs"===b&&(C=!0),f&&g&&(a={breakpointCropRatios:f,extraCropCommands:y,customRatios:g,isElevated:!0});let L=s({_ref:`/_components/container/instances/${l}`,cards:e.map((e,t)=>(function(e,t,a){let l,n;let r=e.thumbnail||"https://www.cnn.com/media/sites/cnn/cnn-fallback-image.jpg";if(window?.CNN?.contentModel?.site==="ar"){let t=F(e.word_count);if(t){let e=H("ar",t);l=e,n=e}}let i=m({uri:`/_components/card/instances/${t}`,url:e.url,urlPath:e.url,headline:e.headline,description:e.body,pageType:e.type,authors:[],label:e.label||(e.type?`type-${e.type.toLowerCase()}`:""),labelText:e.labelText||"",lastPublished:e.lastModifiedDate,image:{url:r,credit:"",damType:"stellar",metadata:{alt:e.headline||""},...a},type:u.FILL,showThumbnail:!0,wordCount:e.word_count,readTimeTextDefault:l,readTimeTextAlt:n,section:e.section,durationLabel:e.durationLabel,selectedMedia:e.selectedMedia,selectedMediaIndices:e.selectedMediaIndices},"","","",t);return i.link=e.url,p(i),i.renderIntent=h(i),["video","gallery"].includes(e.type)&&(i.labelText=i.labelText.toUpperCase()),i})(e,`${l}-${t}`,a)),lazyLoadImages:!0,componentVariation:n,count:i,title:r,recsModel:o,recsContentTypes:c,recsSections:d,source:b,contentRecsCalled:C,tenantId:w,isFallbackResult:E,subscriberCardMakeUp:T});return L.inlineEditingEnabled=!0,L}(e,a)),n=i.createElementFromHTML(l);return"autofill"===a.instance||"personalized"===a.instance?(t.replaceWith(n),n.querySelectorAll('[data-uri*="/image/"]').forEach(e=>d(e)),n.querySelectorAll('[data-uri*="/card/"]').forEach(e=>c(e))):(t.replaceChildren(n),n.querySelectorAll('[data-uri*="/image/"]').forEach(e=>d(e)),n.querySelectorAll('[data-uri*="/card/"]').forEach(e=>c(e))),o(n),n}}}]); /* window.modules["171"] */ "use strict";(self.modules=self.modules||[]).push([["171"],{171:(t,e,n)=>{let o=n("740");function r(t,e){let{timeout:n,...o}=e;if(n){if("function"==typeof AbortSignal.timeout)o.signal=AbortSignal.timeout(n);else{let e=new Promise((t,e)=>{setTimeout(()=>{let t=Error("The operation was aborted due to timeout");t.name="TimeoutError",e(t)},n)});return Promise.race([fetch(t,o),e])}}return fetch(t,o)}function i(t){if(t.status>=200&&t.status{n.append(t,e[t])}),o.body=n,r(t,o).then(i).then(function(t){return t.json()})},t.exports.post=function(t,e,n={},o={}){return r(t,{method:"POST",headers:{"Content-Type":"application/json",...n},credentials:"same-origin",body:JSON.stringify(e),...o}).then(i).then(function(t){return t.json()})},t.exports.patch=function(t,e){return r(t,{method:"PATCH",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(e)}).then(i).then(function(t){return t.json()})},t.exports.putWOpts=function(t,e,n){return r(t,{method:"PUT",headers:{"Content-Type":"application/json",...n},credentials:"same-origin",body:JSON.stringify(e)}).then(i).then(function(t){return t})},t.exports.purge=function(t){return r(t,{method:"PURGE",headers:{"Content-Type":"application/json",Method:"PURGE"}}).then(i).then(function(t){return t.json()})},t.exports.del=function(t,e,n){return r(t,{method:"DELETE",headers:{"Content-Type":"application/json",...n},credentials:"same-origin",body:JSON.stringify(e)}).then(i).then(function(t){return t.json()})}}}]); /* window.modules["230"] */ "use strict";(self.modules=self.modules||[]).push([["230"],{230:(t,e,A)=>{let{dispatch:a,subscribe:n,actions:s}=A("65"),D={FOCUS_MODE:"FOCUS_MODE",DEFAULT:"DEFAULT"};function l(t){n(s.ADS.SET_AD_VARIANT,e=>{Object.keys(t).forEach(A=>{let a=t[A];a&&e.adVariant===A&&a()})})}t.exports={AD_VARIANTS:D,setAdVariant:function(t){a(s.ADS.SET_AD_VARIANT,{adVariant:t})},handleAdVariant:l,handleDefaultAdVariant:function(t){t&&l({[D.DEFAULT]:t})}}}}]); /* window.modules["234"] */ "use strict";(self.modules=self.modules||[]).push([["234"],{234:(t,e,n)=>{let r=n("24"),i=n("113"),l=n("402"),o=n("16").setup({file:"/index.js"}),s=r.get("CANONICAL_URL_OVERRIDE"),c="&currentUrl=",u="@published",p=RegExp(`${u}$`),a=RegExp("^((https?:\\/\\/)?(?:([-a-zA-Z0-9@:%._+~#=]*)(\\.))?(cnn\\.com|cnn-cms\\.net))(.*)?$");function f(t){return(t=t.endsWith("/")?t.substring(0,t.length-1):t).endsWith("/index.html")&&(t=t.replace("/index.html","")),t}function h(t){return p.test(t)}let d=t=>{try{return new URL(t).protocol.indexOf("http")>=0}catch(e){try{let e=f(t);if(e.indexOf(".")>0)return new URL(`https://${e}`),!0;return!1}catch(t){return!1}}};function m(t){return h(t)?t:t.split("@")[0]+u}function g(t){try{return new URL(t).pathname}catch(n){let e=t.indexOf("//");if(e>=0){let n=t.indexOf("/",e+2);if(n>=0)return t.substring(n,t.length);return""}{let e=t.indexOf("/");if(e>=0)return t.substring(e,t.length);return""}}}t.exports={KILN_URL_PARAM:c,PUBLISHED_VERSION_SUFFIX:u,addTrailingSlash:function(t){return t.endsWith(".html")||t.endsWith("/")?t:`${t}/`},ensurePublishedVersion:m,ensureUnpublishedVersion:function(t){return t.replace(p,"")},extractPath:g,getCanonicalUrl:function(t,e,n=null){let r=i(e,"configuration.section"),l=i(e,"brandSite.canonicalHost"),o=i(e,"site.protocol","https"),c=f(t,n,r,i(e,"site.site","cnn"));return i(s,c,!1)||`${o}://${l}${c}`},getCanonicalUrlPath:f,getComponentUriFromUrl:function(t){let{hostname:e,pathname:n}=l(t),r=n.split(".")[0];return`${e}${r}`},getTrimmedHostname:function(t){let{hostname:e}=l(t);return e.replace(/^www./i,"")},getSiteBaseUrl:function(t){let e=t.site||{},n=e.protocol||"http",r=e.host,i=(e.port||"80").toString(),l=e.path||"";return`${n}://${r}${"80"===i?"":`:${i}`}${l}`},isCNNUrl:function(t,e="www.cnn.com"){return RegExp(`^((https?://)?(${e}|(?:([-a-zA-Z0-9@:%._+~#=]*)(.))?(cnn.com)))(.*)?$`).test(t)},isEdition:function(t){return/^edition(\.|-)/.test(t)},isPublishedVersion:h,isSpecial:function(t){return/\/specials\/(?!$)/.test(t)},isUS:function(t){return/^us\./.test(t)},isValidURL:d,kilnUrlToPageUrl:function(t){return t.indexOf(c)>-1?decodeURIComponent(t.split(c).pop()):t},parseQueryString:function(t){let e={};for(let n of t?t.split("&"):[]){if(!n)continue;let t=n.split("=");e[t[0]]=t[1]||""}return e},urlToUri:function(t){let e=l(t);return`${e.hostname}${e.pathname}`},uriToUrl:function(t,e,n=!1){let r=i(e,"site.protocol")||"http",o=i(e,"site.port"),s=l(`${r}://${t}`);return 80!==o&&s.set("port",o),n?m(s.href):s.href},uriToAbsoluteUrl:function(t,e){let n;if(!t)return;let r=t.replace(/^(http(s)?)*:*(\/\/)*/,"");if(!r.startsWith("/")){let t=r.indexOf("/");n=-1!==t?r.substring(0,t):r}let i=l(r.replace(n,""));return i.set("host",n||e?.brandSite?.canonicalHost),i.set("protocol",e?.site?.protocol||"http"),i.set("slashes",!0),i.toString()},urlHasValidProtocol:t=>{if(d(t))try{let e=new URL(t);return 0===e.protocol.indexOf("http:")||0===e.protocol.indexOf("https:")}catch(t){return!1}},getSlugFromUrl:function(t){let{pathname:e}=l(t),n=e.split("/");return"index.html"===n.slice(-1)[0]&&n.pop(),n.slice(-1)[0].split(".")[0]},getMobileUrl:function(t,e="v1",n=!1){if(!a.test(t)||["/interactive/","cnn.it","coupons.cnn","/webview/"].some(e=>t.includes(e))||t.includes("/audio/")&&!t.includes("/episodes/"))return t;let r=g(t),i=t;if(r.length>1){let t=`/mobile/${e}`;return r.includes("/live-news/")&&!n||r.includes("/election/")||r.includes("/community-event/")?(t="/webview",i.replace(r,t.concat(r))):(i=i.replace(r,t.concat(r))).endsWith(".html")?i.replace(".html",""):i}return i},getFileNameFromUrl:function(t,e={includeExtension:!0}){try{let n=(new URL(t).pathname.split("/").pop()||"").split("."),r=n.length>1;return!e.includeExtension&&r&&n.pop(),n.join(".")}catch(t){return o("error",t.message,{stack:t.stack}),""}}}}}]); /* window.modules["240"] */ "use strict";(self.modules=self.modules||[]).push([["240"],{240:(e,t,r)=>{let{mediumMaxWidthListener:n,smallMaxWidthListener:o}=r("11"),s=(e,t)=>{let r=t.parentNode;return r.lastChild===t?r.appendChild(e):r.insertBefore(e,t.nextSibling)};e.exports={positionElement:(e,{onPosition:t=()=>{},onRefreshPosition:r=()=>{}}={})=>{let{placement:i,visibleViewport:l}=e.dataset,{mobile:a,desktop:d,excludeTablet:m}=JSON.parse(i||"{}"),f=[e],h={},p=()=>{let{selector:r='[data-uri*="/_components/paragraph/"]',position:n,repeat:o=!1,positionBeforeTargetElement:i=!1,parentSelector:l=""}=h||{};for(;f.length>0;){let e=f.shift();e.parentNode&&e.parentNode.removeChild(e)}if(r&&n&&n>0){let a=l?document.querySelector(l).querySelectorAll(r):document.querySelectorAll(r),d=o?a.length:n-1,m=n-1;for(;m{p(),r()},v=e=>{switch(l){case"mobile":h=e&&a?a:null;break;case"desktop":h=!e&&d?d:null;break;default:h=e?a:d}a&&a.refreshPositionEventListenerName&&window.removeEventListener(a.refreshPositionEventListenerName,u),d&&d.refreshPositionEventListenerName&&window.removeEventListener(d.refreshPositionEventListenerName,u),h&&h.refreshPositionEventListenerName&&window.addEventListener(h.refreshPositionEventListenerName,u),p()};m?o(v):n(v)}}}}]); /* window.modules["249"] */ "use strict";(self.modules=self.modules||[]).push([["249"],{249:e=>{let t=e=>e.text(),r=(e,n)=>{let{attempt:s,maxRetryCount:l,useCacheBuster:o,getRetryDelay:a,resolve:c,reject:i,parser:u=t,headers:m={},cache:h}=n||{},p=new URL(e),d=p.searchParams;if(o){let e=new Date().getTime();d.delete("cb"),d.append("cb",e)}let f=s||0;d.delete("rt"),d.append("rt",f),fetch(p.toString(),{headers:m,...h?{cache:h}:{}}).then(u).then(e=>{c({data:e,attemptCount:f+1})}).catch(t=>{if(f>=l)return i(t);setTimeout(()=>{r(e,{attempt:f+1,maxRetryCount:l,useCacheBuster:o,getRetryDelay:a,resolve:c,reject:i,parser:u,headers:m,cache:h})},a(f+1))})};e.exports={TO_TEXT:t,TO_JSON:e=>e.json(),fetchContents:(e,n={})=>{let{attempt:s=0,maxRetryCount:l=3,useCacheBuster:o=!0,getRetryDelay:a=()=>5e3,reject:c,parser:i=t,headers:u={},cache:m}=n||{};if(s>=l){let e=Error(`MaxRetryCount (${s}) achieved`);return c?c(e):Promise.reject(e)}return new Promise((t,n)=>{r(e,{headers:u,attempt:s,maxRetryCount:l,useCacheBuster:o,getRetryDelay:a,resolve:t,reject:n,parser:i,cache:m})})}}}}]); /* window.modules["250"] */ "use strict";(self.modules=self.modules||[]).push([["250"],{250:o=>{let e=(o,e)=>e?new Proxy(e,{get:(t,n)=>"__target__"===n?e:"log"!==n&&"configureLogger"!==n&&"function"==typeof t[n]?new Proxy(t[n],{apply:(e,l,r)=>{let c;try{let i="AsyncFunction"===e.constructor.name;t.log&&t.log("trace",`calling ${i?"asynchronous ":""}${o}.${n}`),c=Reflect.apply(e,l,r),t.log&&(void 0===c||c instanceof Promise||i?t.log("trace",`right after calling to ${o}.${n} (which might be asynchronous)`):t.log("trace",`result of calling ${o}.${n} of type ${typeof c}`,{result:c}))}catch(o){throw t.log&&t.log("error",o),o}return c}}):Reflect.get(t,n)}):e;o.exports={expose:(o,t,n,l=!1)=>{if(window.CNN){window.CNN[o]||(window.CNN[o]={});let r={component:n,proxy:e(t,n)};l?window.CNN[o][t]||(window.CNN[o][t]=r):(window.CNN[o][t]||(window.CNN[o][t]=[]),window.CNN[o][t].every(o=>o.component!==n)&&window.CNN[o][t].push(r))}},getProxy:e}}}]); /* window.modules["260"] */ "use strict";(self.modules=self.modules||[]).push([["260"],{260:(e,s,t)=>{let u={es:t("2146"),ar:t("2147")};e.exports=function(e,s){return u[e]?.[s]||s}}}]); /* window.modules["263"] */ "use strict";(self.modules=self.modules||[]).push([["263"],{263:(e,t,o)=>{var n=o("300").Buffer;let l=o("24");e.exports={getProxyRequestParams:(e,t,o,r="html")=>{if(!e||!t||!o)return{};let i=window.env.CONTENT_HUB_UNIQUE_DEPLOYMENT_KEY,s=n.from(e,"utf8").toString("base64"),c={},a=`${window.location.protocol}//${window.location.host}`;c["x-client-id"]=t,c.Origin=a;let u=e=>e;switch(r){case"html":c.Accept="text/html",u=e=>e.text();break;case"html-only":c.Accept="text/html",u=e=>e.text();break;case"json":c.Accept="application/json",u=e=>e.json();break;default:return{}}i&&(c["x-unique-deployment-key"]=i),window.CNN?.contentModel?.site&&(c["x-clay-site"]=window.CNN.contentModel.site);let d=l.get("AWS_REGION");return d&&(c["x-udk-aws-region"]=d),{url:`${o}/api/v1/content/${s}/renderer/${r}`,parser:u,headers:c}}}}}]); /* window.modules["272"] */ "use strict";(self.modules=self.modules||[]).push([["272"],{272:(e,t,n)=>{let{isAppWebView:s}=n("1"),i=n("24"),{authClient:o,getPreAuthEntitlements:r,checkEntitlementsForAccess:a}=n("26"),{getActiveSub:c}=n("35"),{isAuthenticated:u}=n("63"),{subscribe:l,actions:d}=n("65"),{trackMetrics:b}=n("9"),{zionEventHandler:f}=n("10"),{getStorefrontType:p,UPI:h}=n("37"),{toggleLockIconsBasedOnAuth:m}=n("123"),{isActiveExperimentMatch:g}=n("307"),{isDomesticPage:w,isEditionPage:v}=n("1"),{resolveEnabledRegion:L,getSubscribeUrlPath:_}=n("51"),A="subscribe-button--hide",y=(e,t)=>{e.classList.remove(A),e.classList.contains("subscribe-button--mw-nav-nonsub-2026-03")?e.classList.toggle(A,!w()||v()):(e.innerText=t||"Subscribe",t?e.dataset.overrideText=t:delete e.dataset.overrideText)},E=e=>e.classList.add(A),T=(e,t=!1)=>{r(e.getToken(),!1,t,!0)},k=e=>{e&&e.remove()};e.exports={initializeSubscribeButtons:function(e,t){let n;let r=e.querySelectorAll(".subscribe-button"),w=e.querySelector(".footer__divider-tablet"),v=!1,A=i.get("ENABLE_UM_HORIZON",!1),x={"header__subscribe-button":"nav","footer__subscribe-button":"footer"},C=["/tv","/account/log-in","/account/register","/account/payment/subscription"],S=!1;if(0===r.length){t&&"function"==typeof t&&t();return}let U=L();U&&!s()?(l(d.PAYWALL.AUTH_ENTITLEMENTS,async e=>{let s,i,l;let{preAuthorizedEntitlements:d=[]}=e,{readOnly:b,allAccess:f}=a(d,["readOnly","allAccess"]);v=!f&&b;let m=A?f:f||v,g=o.tokenWithAuthn(),L=C.some(e=>window.location.pathname.startsWith(e)),_=u();if(v&&A&&!_){if(!S&&!n){S=!0;let{success:e,errorStatus:t,subscriptions:s=[]}=await c(o.getToken());n=e&&!t?s:[]}if(n){let e=n.find(({universalProductIndicator:e})=>e===h.BASIC);(i=e?.status?.toLowerCase()==="canceled")||(s="Upgrade"),l=e&&"WEB"!==p(e?.storefrontInfo)}}(!S||n)&&(m||L||v&&_||i||l?(r.forEach(E),k(w)):(r.forEach(e=>y(e,s)),g||k(w)),t&&"function"==typeof t&&t(f))}),T(o),document.addEventListener("login",()=>{n=void 0,S=!1,T(o),m()}),document.addEventListener("logout",()=>{r.forEach(e=>y(e)),k(w),v=!1,m()}),r.forEach(t=>{t.addEventListener("click",n=>{let s=A&&v,i=_(U,{page:s?"subscribeAllAccess":"subscribe"})||`/subscription${s?"/all-access":""}`;"US"===U&&t.classList.contains("subscribe-button--mw-nav-nonsub-2026-03")&&g(/mw-nav-nonsub-2026-03\/t[123]/)&&(i=`/${/subscribe/i.test(t.innerText)?"subscription":"watch"}`);let o="nav",r="subscribe";s&&(o=x[Array.from(t.classList).find(e=>Object.keys(x).includes(e))]||"nav",r="upgrade_subscription"),function(e,{interaction:t,type:n="user-interaction"}){e({type:n,data:{interaction:t}})}(b,{interaction:`${o}:${r}`}),f({href:new URL(i,window.location.origin).href,type:n.target.tagName,customAttributes:{Component_id:e.closest("[data-uri]").dataset.uri,Component_text:n.target.innerText.trim(),Component_type:"button",Container_type:"navigation"}},"GenericLinkClick"),window.location.href=function(e,t){let n=new URL(t,window.location.origin);return e&&n.searchParams.append("source",e),n.searchParams.append("redirect",window.location.href),n.href}(`${t.dataset.source}${s?"_upgrade":""}`,i)})})):t&&"function"==typeof t&&t()}}}}]); /* window.modules["277"] */ "use strict";(self.modules=self.modules||[]).push([["277"],{277:(e,s,l)=>{let t=l("2332");e.exports=e=>{let{device:{type:s,vendor:l}}=t(e);return{type:s,vendor:l}}}}]); /* window.modules["282"] */ "use strict";(self.modules=self.modules||[]).push([["282"],{282:e=>{e.exports={calculateNavLeftMaxWidth:e=>{let t=e.querySelector(".header__container"),i=e.querySelector(".header__right");if(!t||!i)return 0;let r=t.getBoundingClientRect().width,n=window.getComputedStyle(t),d=parseFloat(n.paddingLeft||0),l=parseFloat(n.paddingRight||0),o=window.CNN.helpers?.isArabicPage?.()===!0,a=e.querySelector(".header__menu-icon")?.getBoundingClientRect().width||0,u=o?0:e.querySelector(".brand-logo")?.getBoundingClientRect().width||0;return r-(d+l)-i.getBoundingClientRect().width-a-u}}}}]); /* window.modules["283"] */ "use strict";(self.modules=self.modules||[]).push([["283"],{283:(e,t,o)=>{let r,i,n,s,l,a,c;let d=o("24"),{isSection:h,SECTIONS:u}=o("7"),y=d.get("TOP_AD_RENDER_STICKY_TIMEOUT"),m="header__wrapper",f=window.CNN.isElevated?"header-elevate":"header",{mediumMaxWidthListener:p}=o("11"),{subscribe:g}=o("65"),{VIDEO:A,STICKY_HEADER:v}=o("66"),w=o("360"),b=()=>{let e=document.querySelector(`nav.${f}`);return e?e.offsetHeight:0},E=(e=!1)=>(document.contains(a)||(a=document.querySelector(`.${m}-inner`),c=document.querySelector(`.${m}-outer`)),e?c:a),T=(e=!1)=>{let t=E()?.getBoundingClientRect();return t&&w(e)&&e.length>0&&t[e]?t[e]:0},k=(e=0)=>{let t=E(!0);if(t){n&&n.disconnect(),s&&s.disconnect(),cancelAnimationFrame(l);let o=document.querySelector(".ad-slot-header"),r=document.querySelector(".ad-slot-header__wrapper"),a=document.querySelector(".ad-slot-header__container"),c=()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{"function"==typeof i&&i()})};i=()=>{if(o&&r){o.style.position="fixed",r.style.height="auto";let e=r.getBoundingClientRect().height,t=Math.max(e,r.scrollHeight,o.scrollHeight,o.offsetHeight);r.style.height=`${t}px`}let i=T("height"),n=b(),s=i+Math.max(e,0);t.style.height=`${s}px`,t.style.top=`-${s-n}px`,t.style.marginBottom=`-${s-i}px`},o&&((n=new ResizeObserver(c)).observe(o),r&&n.observe(r),a&&n.observe(a)),a&&(s=new MutationObserver(e=>{e.some(({addedNodes:e,removedNodes:t,type:o,attributeName:r})=>"attributes"===o&&("class"===r||"style"===r)||"childList"===o&&(Array.from(e).length>0||Array.from(t).length>0))&&c()})).observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class","style","aria-hidden"]}),i()}};g(v.RECALCULATE,()=>{"function"==typeof i&&i()});let _=()=>{document.querySelectorAll("[data-sticky-anchor-pos]:not([data-sticky-anchor-priority])").forEach(e=>{e.dataset.stickyAnchorPriority=1});let e=Array.from(document.querySelectorAll("[data-sticky-anchor-pos]")).sort((e,t)=>e.dataset.stickyAnchorPriority-t.dataset.stickyAnchorPriority).map(e=>{if(e.dataset.stickyAnchorDeviceType&&!("mobile"===e.dataset.stickyAnchorDeviceType&&r||"desktop"===e.dataset.stickyAnchorDeviceType&&!r))return[0,-1];let t=e.dataset.stickyAnchorConditionType?.split(",")||[],o=e.dataset.stickyAnchorConditionValue?.split(",")||[];if(t.length===o.length&&!t.reduce((e,t,r)=>e&&("!"===o[r].substring(0,1)?window.CNN.contentModel[t]!==o[r].substring(1):window.CNN.contentModel[t]===o[r]),!0))return[0,-1];let i=Math.max(0,e.offsetTop-4);switch(e.dataset.stickyAnchorPos){case"middle":i+=e.offsetHeight/2;break;case"bottom":i+=e.offsetHeight}return[e.dataset.stickyAnchorPriority,i]}).filter(([,e])=>e>-1);if(0===e.length)return!1;let t=e[0][0];return Math.min(...e.filter(([e])=>e===t).map(([,e])=>e))};e.exports={calculatePageStickyThreshold:()=>{let e=E();if(e){r=p(null,{onlyOnce:!0});let t=_(),o=!1!==t,i=!1,n=()=>{if(!i){if(i=!0,o){let o=b(),r=e.offsetTop;k(r=Math.max(r,t));let i=()=>{T("bottom"){i=!1,o&&k(document.documentElement.scrollHeight),r=e,setTimeout(n,y)}),document.addEventListener("GPTRenderComplete",({detail:e})=>{let t=document.querySelector(".ad-slot-header__container > .ad-slot > div")?.id;e.divId===t&&setTimeout(n,2e3)}),h(u.HOMEPAGE)||g(A.VIDEO_START,()=>{k(0),i=!0})}else k(0);let t=document.getElementsByClassName("ad-slot-rail__container");!window.CNN.isElevated&&t.length>0&&window.addEventListener("scroll",()=>{let e=T("bottom");for(let o of t)o.style.top=`${e+4}px`})},getNavbarHeight:b,getStickyHeader:E,getStickyHeaderRect:T}}}]); /* window.modules["297"] */ "use strict";(self.modules=self.modules||[]).push([["297"],{297:(_,e,E)=>{let{isOfType:T}=E("13"),t={ARTICLE_ELEVATE_SMALL:"article_elevate_small",ARTICLE_ELEVATE_MEDIUM:"article_elevate_medium",ARTICLE_ELEVATE_LARGE:"article_elevate_large",ARTICLE_ELEVATE_XLARGE:"article_elevate_xlarge",ARTICLE_COMMS:"article_comms",ARTICLE_FEATURE:"article_feature",ARTICLE_FULLWIDTH:"article_fullwidth",ARTICLE_RADIO_ARGENTINA:"article_radio_argentina",ARTICLE:"article_leaf",AUDIO:"audio_leaf",AUDIO_SERIES:"audio_series_leaf",AUDIO_EPISODE:"audio_episode_leaf",GALLERY_UNFURLED:"gallery_unfurled",GALLERY:"gallery_leaf",HOMEPAGE:"landing_homepage",LIVESTORY:"article_livestory",TV_CHANNELS:"tv_channels",PROFILE:"profile",SECTION:"landing_section",TVE_FILM:"detail",TVE_FILM_V2:"tve_film",TVE_SERIES:"series",TVE_SERIES_V2:"tve_series",TVE_STREAM:"network",LIVE_TV:"live_tv",GENERAL_TOPIC:"topic_light",GRIP_TOPIC:"topic_grid",SPOTLIGHT_TOPIC:"topic_full",ELECTION:"election",MARKETS:"markets",SPONSOR_ARTICLE:"article_sponsor",TVE_BROWSE:"browse",VIDEO:"video_leaf",VIDEO_SHOW:"video_show",VIDEO_LANDING:"video_landing",VERTICAL_VIDEO:"video_vertical",LIVE_STREAM:"live_stream",YOURCNN:"yourcnn",UNKNOWN:"",LANDING:"landing_marketing",TVE_DTC_VIDEO:"tve_dtc_video",TVE_EPISODE:"tve_episode",ALLACCESS_VIDEO:"allaccess_video",APP_WATCH_PAGE:"app_watch_page",APP_WATCH_TAB:"app_watch_tab",APP_WATCH_TAB_TVE:"app_watch_tab_tve",APP_WATCH_TAB_DTC:"app_watch_tab_dtc",WEATHER_APP_HOMEPAGE:"weather_app_homepage",SHOWS:"shows",FEATURED:"featured",DTC_FEATURED:"featured_dtc",FREE_FEATURED:"featured_free",TVE:"tve",WEATHER_EVENT_HUB:"article_livestory_weather_event_hub",WEATHER_EDUTAINMENT:"weather_edutainment",SCRATCHPAD_TVE_DTC_VIDEO:"tve_dtc_video_scratchpad",WEATHER_APP_HOMEPAGE_EDUTAINMENT:"weather_app_homepage_edutainment",NIGHT_CAP:"newsletter_studio_nightcap",WHAT_MATTERS:"newsletter_studio_what_matters",NEWSLETTER_STUDIO_SPORTS:"newsletter_studio_sports",NEWSLETTER_STUDIO_RELIABLE_SOURCES:"newsletter_studio_reliable_sources",NEWSLETTER_STUDIO_RESULTS_ARE_IN:"newsletter_studio_results_are_in",NEWSLETTER_STUDIO_ENGAGEMENT_PARTY:"newsletter_studio_engagement_party",VITAL_ACTION_TEXT:"vital_action_text",VITAL_ACTION_VIDEO:"vital_action_video",VITAL_EXPLORE:"vital_explore",VITAL_STORY_TEXT:"vital_story_text",VITAL_APP_HOMEPAGE:"vital_app_homepage",VITAL_STORY_VIDEO:"vital_story_video",NEWSLETTER_STUDIO_5_THINGS_PM:"newsletter_studio_5_things_pm",NEWSLETTER_STUDIO_MEANWHILE_IN_CHINA:"newsletter_studio_meanwhile_in_china",NEWSLETTER_STUDIO_WEATHER:"newsletter_studio_weather",NEWSLETTER_STUDIO_GLOBAL_BRIEFING:"newsletter_studio_global_briefing",NEWSLETTER_STUDIO_5_THINGS_AM:"newsletter_studio_5_things_am",NEWSLETTER_STUDIO_5_THINGS_SUNDAY:"newsletter_studio_5_things_sunday",WEATHER_APP_STANDALONE_CONTENT:"weather_app_standalone_content",COMMUNITY_EVENT_FULL:"community_event_full",NEWSLETTER_STUDIO_STYLE:"newsletter_studio_style",NEWSLETTER_STUDIO_ELECTIONS:"newsletter_studio_elections",NEWSLETTER_STUDIO_CNNE:"newsletter_studio_cnne",NEWSLETTER_STUDIO_TRAVEL_WEEKLY:"newsletter_studio_travel_weekly"};Object.freeze(t);let a={ARTICLE_ELEVATE_SMALL:"Article Small",ARTICLE_ELEVATE_MEDIUM:"Article Medium",ARTICLE_ELEVATE_LARGE:"Article Large",ARTICLE_ELEVATE_XLARGE:"Article Extra Large",ARTICLE_COMMS:"Comms Article",ARTICLE_FEATURE:"Feature Article",ARTICLE_FULLWIDTH:"Full Width Article",ARTICLE:"Article ~ old",GALLERY_UNFURLED:"Unfurled Gallery",SECTION:"Section Landing Page",SPONSOR_ARTICLE:"Sponsor Article",TVE_FILM:"TVE Film page",TVE_FILM_V2:"TVE Film page v2",TVE_SERIES:"TVE Series page",TVE_SERIES_V2:"TVE Series page v2",TVE_STREAM:"TVE Stream page",LIVE_TV:"TVE Stream page",TVE_BROWSE:"TVE Browse page",TVE_EPISODE:"TVE Episode page",VIDEO_SHOW:"Video Show Page",LIVE_STREAM:"Live Stream Page",NIGHT_CAP:"NightCap - Newsletter",WHAT_MATTERS:"What Matters - Newsletter",NEWSLETTER_STUDIO_SPORTS:"Sports - Newsletter",NEWSLETTER_STUDIO_RELIABLE_SOURCES:"Reliable Sources - Newsletter",NEWSLETTER_STUDIO_RESULTS_ARE_IN:"Results are In - Newsletter",NEWSLETTER_STUDIO_ENGAGEMENT_PARTY:"Engagement Party - Newsletter",NEWSLETTER_STUDIO_5_THINGS_PM:"5 Things PM - Newsletter",NEWSLETTER_STUDIO_MEANWHILE_IN_CHINA:"Meanwhile in China - Newsletter",VITAL_ACTION_TEXT:"Vital Action - Text",VITAL_ACTION_VIDEO:"Vital Action - Video",VITAL_APP_HOMEPAGE:"Vital App Homepage",VITAL_STORY_TEXT:"Vital Story - Text",VITAL_STORY_VIDEO:"Vital Story - Video",NEWSLETTER_STUDIO_WEATHER:"Weather - Newsletter",NEWSLETTER_STUDIO_GLOBAL_BRIEFING:"Global Briefing - Newsletter",NEWSLETTER_STUDIO_5_THINGS_AM:"5 Things AM - Newsletter",NEWSLETTER_STUDIO_5_THINGS_SUNDAY:"5 Things Sunday - Newsletter",COMMUNITY_EVENT_FULL:"Community Event",NEWSLETTER_STUDIO_STYLE:"Style - Newsletter",NEWSLETTER_STUDIO_ELECTIONS:"Elections - Newsletter",NEWSLETTER_STUDIO_CNNE:"CNN en Espa\xf1ol - Newsletter",NEWSLETTER_STUDIO_TRAVEL_WEEKLY:"Travel Weekly - Newsletter"};function l(_={},e=t.UNKNOWN){return _?.pageVariant||_?.meta?.pageVariant||e}Object.freeze(a);let A=[t.TVE_FILM,t.TVE_SERIES,t.TVE_SERIES_V2];Object.freeze(A),_.exports={PAGE_VARIANTS:t,PAGE_VARIANTS_LABELS:a,isPageVariant:function(_,e){return T(e,l(_))},getPageVariant:l,TVE_DETAIL_VARIANTS:A,isTVEDetailVariant:function(_){return A.includes(_)}}}}]); /* window.modules["299"] */ "use strict";(self.modules=self.modules||[]).push([["299"],{299:(e,t,n)=>{let{actions:a,dispatch:i}=n("65"),{TVE:l,VIDEO:o}=a,{getAssetTraits:r}=n("128"),{fireWatchGenericLinkClick:s}=n("129"),c=n("112"),{CONTENT_TYPES:d}=n("326"),{convertAuthType:u}=n("1"),{isVideoClip:m}=n("14"),y=new Set(["Enter"," ","Spacebar"]);e.exports={clickPlayMainCard:function(e,t){let n=function(e){let t=e&&e.querySelector("video, .video-resource"),n={...e?.dataset,...t?.dataset};return n.authType=u(n.authType),n}(t),a=()=>{s(t),function(e){let t=e.querySelector(".container_dtc-shelf-carousel__item-media");t&&(document.querySelectorAll(".container_dtc-shelf-carousel__item-media.is-selected").forEach(e=>e.classList.remove("is-selected")),t.classList.add("is-selected"))}(e),function(e,t){let n=t.authType&&t.authType.includes("dtc"),a=window?.FAVE?.player?.instances?Object.keys(window.FAVE.player.instances)[0]:null;c(t,"markupId",a),c(t,"zion.customMetadata",r(e)),t.contentType===d.livestream||n?i(l.PLAYBACK_REQUEST,t):(m(t.contentType)?c(t,"stellarUri",t.parentUri||t.uri):c(t,"mediaMetadata",{headline:t.headline,mediumId:t.assetId,boltId:t.boltId,id:t.assetId}),i(o.PLAYBACK_REQUEST,t,a))}(e,n),function(){let e=document.querySelector('[data-component-name="video-player"]');!e||function(e){let{top:t,bottom:n,height:a}=e.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight;return a>i?t=i:t>=0&&n{y.has(e.key)&&(e.preventDefault(),a())})}}}}]); /* window.modules["300"] */ "use strict";(self.modules=self.modules||[]).push([["300"],{300:(t,e,r)=>{/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */let n=r("2327"),i=r("2326"),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function f(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return l(t)}return s(t,e,r)}function s(t,e,r){if("string"==typeof t)return function(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!u.isEncoding(e))throw TypeError("Unknown encoding: "+e);let r=0|y(t,e),n=f(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(N(t,Uint8Array)){let e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return a(t)}(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(N(t,ArrayBuffer)||t&&N(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(N(t,SharedArrayBuffer)||t&&N(t.buffer,SharedArrayBuffer)))return p(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);let i=function(t){var e;if(u.isBuffer(t)){let e=0|c(t.length),r=f(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||(e=t.length)!=e?f(0):a(t):"Buffer"===t.type&&Array.isArray(t.data)?a(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function h(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function y(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||N(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return P(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return C(t).length;default:if(i)return n?-1:P(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){let i=!1;if((void 0===e||ethis.length||((void 0===r||r>this.length)&&(r=this.length),r>>=0)>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){let n=t.length;(!e||en)&&(r=n);let i="";for(let n=e;n0x7fffffff?r=0x7fffffff:r=t.length){if(i)return -1;r=t.length-1}else if(ru&&(r=u-s),o=r;o>=0;o--){let r=!0;for(let n=0;n239?4:e>223?3:e>191?2:1;if(i+f127&&(o=s);break;case 3:r=t[i+1],n=t[i+2],(192&r)==128&&(192&n)==128&&(s=(15&e)2047&&(s57343)&&(o=s);break;case 4:r=t[i+1],n=t[i+2],u=t[i+3],(192&r)==128&&(192&n)==128&&(192&u)==128&&(s=(15&e)65535&&s65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=f}return function(t){let e=t.length;if(er)throw RangeError("Trying to access beyond buffer length")}function m(t,e,r,n,i,o){if(!u.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw RangeError("Index out of range")}function I(t,e,r,n,i){L(e,n,i,t,r,7);let o=Number(e&BigInt(0xffffffff));t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o;let f=Number(e>>BigInt(32)&BigInt(0xffffffff));return t[r++]=f,f>>=8,t[r++]=f,f>>=8,t[r++]=f,f>>=8,t[r++]=f,r}function U(t,e,r,n,i){L(e,n,i,t,r,7);let o=Number(e&BigInt(0xffffffff));t[r+7]=o,o>>=8,t[r+6]=o,o>>=8,t[r+5]=o,o>>=8,t[r+4]=o;let f=Number(e>>BigInt(32)&BigInt(0xffffffff));return t[r+3]=f,f>>=8,t[r+2]=f,f>>=8,t[r+1]=f,f>>=8,t[r]=f,r+8}function A(t,e,r,n,i,o){if(r+n>t.length||r>>=0,o||A(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function R(t,e,r,n,o){return e=+e,r>>>=0,o||A(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}e.Buffer=u,e.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=0x7fffffff,u.TYPED_ARRAY_SUPPORT=function(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,e,r){return s(t,e,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,e,r){return(h(t),tn.length?(u.isBuffer(e)||(e=u.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else if(u.isBuffer(e))e.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=e.length}return n},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){let t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;er&&(t+=" ... "),""},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,i){if(N(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),et.length||nthis.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;let o=i-n,f=r-e,s=Math.min(o,f),h=this.slice(n,i),l=t.slice(e,r);for(let t=0;t>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let p=this.length-e;if((void 0===r||r>p)&&(r=p),t.length>0&&(rthis.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let c=!1;for(;;)switch(n){case"hex":return function(t,e,r,n){let i;r=Number(r)||0;let o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;let f=e.length;for(n>f/2&&(n=f/2),i=0;i>8,i.push(r%256),i.push(n);return i}(t,this.length-l),this,l,a);default:if(c)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),c=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(t,e){let r=this.length;t=~~t,e=void 0===e?r:~~e,tr&&(t=r),er&&(e=r),e>>=0,e>>>=0,r||E(t,e,this.length);let n=this[t],i=1,o=0;for(;++o>>=0,e>>>=0,r||E(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||E(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||E(t,2,this.length),this[t]|this[t+1]>>=0,e||E(t,2,this.length),this[t]>>=0,e||E(t,4,this.length),(this[t]|this[t+1]>>=0,e||E(t,4,this.length),0x1000000*this[t]+(this[t+1]>>=0,"offset");let e=this[t],r=this[t+7];(void 0===e||void 0===r)&&_(t,this.length-8);let n=e+256*this[++t]+65536*this[++t]+0x1000000*this[++t],i=this[++t]+256*this[++t]+65536*this[++t]+0x1000000*r;return BigInt(n)+(BigInt(i)>>=0,"offset");let e=this[t],r=this[t+7];(void 0===e||void 0===r)&&_(t,this.length-8);let n=0x1000000*e+65536*this[++t]+256*this[++t]+this[++t],i=0x1000000*this[++t]+65536*this[++t]+256*this[++t]+r;return(BigInt(n)>>=0,e>>>=0,r||E(t,e,this.length);let n=this[t],i=1,o=0;for(;++o=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||E(t,e,this.length);let n=e,i=1,o=this[t+--n];for(;n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return(t>>>=0,e||E(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||E(t,2,this.length);let r=this[t]|this[t+1]>>=0,e||E(t,2,this.length);let r=this[t+1]|this[t]>>=0,e||E(t,4,this.length),this[t]|this[t+1]>>=0,e||E(t,4,this.length),this[t]>>=0,"offset");let e=this[t],r=this[t+7];return(void 0===e||void 0===r)&&_(t,this.length-8),(BigInt(this[t+4]+256*this[t+5]+65536*this[t+6]+(r>>=0,"offset");let e=this[t],r=this[t+7];return(void 0===e||void 0===r)&&_(t,this.length-8),(BigInt((e>>=0,e||E(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||E(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||E(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||E(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;m(this,t,e,r,n,0)}let i=1,o=0;for(this[e]=255&t;++o>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;m(this,t,e,r,n,0)}let i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigUInt64LE=M(function(t,e=0){return I(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=M(function(t,e=0){return U(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){let n=Math.pow(2,8*r-1);m(this,t,e,r,n-1,-n)}let i=0,o=1,f=0;for(this[e]=255&t;++i>0)-f&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){let n=Math.pow(2,8*r-1);m(this,t,e,r,n-1,-n)}let i=r-1,o=1,f=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t>0)-f&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,1,127,-128),t>>=0,r||m(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,4,0x7fffffff,-0x80000000),t>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigInt64LE=M(function(t,e=0){return I(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=M(function(t,e=0){return U(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(t,e,r){return v(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return v(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return R(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return R(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw RangeError("Index out of range");if(nthis.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function L(t,e,r,n,i,o){if(t>r||t3?0===e||e===BigInt(0)?`>= 0${i} and = -(2${i} ** ${(o+1)*8-1}${i}) and = ${e}${i} and = ${r?1:0} and 0x100000000?i=O(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r55295&&r56319||f+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r-1&&o.push(239,191,189),i=r;continue}r=(i-55296-1&&o.push(239,191,189);if(i=null,r>6|192,63&r|128)}else if(r>12|224,r>>6&63|128,63&r|128)}else if(r>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function C(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace($,"")).length=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function N(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}let F=function(){let t="0123456789abcdef",e=Array(256);for(let r=0;r{e.exports={initializeProgressBar:function(){let e=document.querySelector(".progress-bar"),t=document.querySelector(".progress-container"),l=document.querySelectorAll(".action-bar");0===l.length&&(l=document.querySelectorAll(".gallery-inline_unfurled__divider"));let o=l[0],r=l[1];window.addEventListener("scroll",()=>{let l=(document.documentElement.scrollTop||document.body.scrollTop)+.5*window.innerHeight,s=o.offsetTop,n=r.offsetTop,c=document.documentElement.scrollTop>1;t.classList.toggle("scrolled",c),l=n?e.style.width="100%":e.style.width=`${(l-s)/(n-s)*100}%`})}}}}]); /* window.modules["302"] */ "use strict";(self.modules=self.modules||[]).push([["302"],{302:(e,t,n)=>{let{trackMetrics:o}=n("9"),{addComponentLoadedAnalytics:r,zionEventHandler:i}=n("10"),{setCookie:a}=n("40"),c=n("16").setup({file:"/index.js"}),l="event tray";function m(e){let t={top:()=>document.querySelector(".layout-live-story-amplify__top"),inline:()=>document.querySelector(".layout__main"),"article end":()=>document.querySelector(".layout__end"),"right rail":()=>document.querySelector(".layout__rail")};return Object.keys(t).find(n=>t[n]()?.contains(e))||""}function s(e){let t=e.classList.contains("container_event-tray-dynamic"),n=t?"container_event-tray-dynamic":"container_event-tray";return{itemSelector:t?`.${n}__item:not(.${n}__selected)`:`.${n}__item`,linkSelector:`.${n}__link`}}function d(e,t,n){let{uri:o}=e.dataset,{count:r,ids:i}=function(e,t){let n=Array.from(e.querySelectorAll(t));return{count:n.length,ids:n.map(e=>e.dataset.page).filter(Boolean)}}(e,t);return{componentId:o||void 0,traits:{component_name:l,component_location:n,component_item_count:r,component_item_ids:i}}}e.exports={configureEventTrayTracking:e=>{let{uri:t}=e.dataset,n=m(e),u=function(e){let t=document.querySelector(".live-story__items-container article.liveStoryPost:not(.live-story-post_placeholder):last-of-type"),n=document.querySelector(".live-story__load-more-updates"),o=document.querySelector("h1.headline_live-story__text");if(!t&&!n&&!o)return m(e)||"inline";let r=document.querySelector("#maincontent")||o,i=t=>!!t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)!=0;return r&&(e.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING)!=0?"top":i(t)||i(n)?"bottom":"inline"}(e),{itemSelector:y,linkSelector:_}=s(e),p=e=>{try{o({type:"user-interaction",data:{interaction:e,componentName:"event tray",componentStellarId:t}})}catch(t){c("error",`Failed to send event tray "${e}" beacon: ${t.message}`)}};p("module initiate");try{let{componentId:t,traits:n}=d(e,y,u);r({componentType:l,componentId:t,traits:n})}catch(e){c("error",`Failed to send event tray ComponentLoaded: ${e.message}`)}let f=()=>{try{let{componentId:t,traits:n}=d(e,y,u);i({component_type:l,...t?{component_id:t}:{},traits:n},"ComponentOnScreen")}catch(e){c("error",`Failed to send event tray ComponentOnScreen: ${e.message}`)}};if(function(e){let t=e.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(t.bottom=0)}(e))p("module load"),f();else{let t=new IntersectionObserver(e=>{e.forEach(({isIntersecting:e,intersectionRatio:n,target:o})=>{e&&n>=.5&&(p("module load"),f(),t.unobserve(o))})},{threshold:.5});t.observe(e)}Array.from(e.querySelectorAll(y)).forEach((e,t)=>{e.setAttribute("data-card-position",t+1)}),Array.from(e.querySelectorAll(_)).forEach(t=>{t.addEventListener("click",()=>{let o=Array.from(e.querySelectorAll(y)),r=t.closest(y),m=r?.getAttribute("data-card-position"),s=t.querySelector(".container__headline-text")?.textContent?.replace(/\s+/g," ").trim()||"",d=r?.dataset.page,_=`${window.CNN.contentModel.templateType}|container_event-tray|${n}|${m}|${o.length}|${s}`;a(`hpt=${_};path=/`);try{i({href:t.href,type:t.tagName,customAttributes:{component_name:l,component_location:u,component_item_count:o.length,component_item_position:Number(m),link_title:s,...d?{link_page_id:d}:{}}},"GenericLinkClick")}catch(e){c("error",`Failed to send event tray GenericLinkClick: ${e.message}`)}})})},eventTrayClickTracking:(e,t)=>{let{itemSelector:n}=s(e),r=Array.from(e.querySelectorAll(n));o({type:"user-interaction",data:{interaction:`event tray:${t+1}:${r.length}:click`}})}}}}]); /* window.modules["303"] */ "use strict";(self.modules=self.modules||[]).push([["303"],{303:(e,n,t)=>{let a=t("127"),i=t("2268"),r=t("555"),o=t("2269"),s=t("402"),{getCanonicalUrl:c}=t("234"),{PAGE_VARIANTS:l}=t("297"),{propertyValue:d}=t("2270"),u="accordion",m="product-offer-card-container",g="live-blog",p="product-card-container",f=[g,"product-offer-card",m,"product-card",p],b={seo:"seo",render:"render"},h=e=>"string"==typeof e?e:e._ref||"",v=e=>n=>n&&n.main&&n.main[0]&&a.getComponentName(h(n.main[0]))===e,C=v("tve"),N=v("tve-series"),y=v("tve-episode"),S=v("tve-film"),A=v("live-story"),P=v("article"),_=v("video"),I=v("gallery"),E=e=>e?.pageVariant?.includes(l.MARKETS),T=e=>e?.main?.[0]?.configuration?.[0].section==="cnn-underscored"&&e?.main?.[0]?.configuration?.[0].subsection==="deals_finder"&&e?.pageVariant?.includes("search"),V=(e={})=>"enabled"===(e.main?.[0]?.configuration?.[0].productSchemas??"enabled"),O=e=>e?.main?.[0]?.content?.find(e=>[g,"live-blog-auto"].includes(a.getComponentName(h(e)))),F=e=>e?.main?.[0]?.content?.find(e=>a.getComponentName(h(e))===u),H=e=>{let n=Array.isArray(e)?e?.[0]?.items:e?.main?.[0]?.items;return n?n.find(e=>a.getComponentName(h(e))===u)||H(n):{}},U=e=>e?.main?.[0]?.content?.find(e=>f.includes(a.getComponentName(h(e)))),w=(e=[])=>i(e.filter(e=>f.includes(a.getComponentName(h(e)))).map(e=>a.getComponentName(h(e))===g?i((e.posts||[]).map(e=>w(e.content||[]))):[m,p].includes(a.getComponentName(h(e)))?e.productOfferCards||e.productCards||[]:e)),x=e=>e&&e.length>0&&e.find(e=>"tve-headline-hero"===a.getComponentName(h(e)))||{},R=e=>e.main.find(e=>"tve"===a.getComponentName(h(e))),$=e=>{let{items:n}=R(e);return n.find(e=>"tve-vod-detail"===a.getComponentName(h(e)))},j=e=>{let n=[e?.section,e?.subsection,e?.subsubsection].filter(e=>e);return n.length?n:null};e.exports={DOTSCHEMA_CONTEXT:b,buildImageObjectData:e=>e.map(e=>({url:e.imageUrl,cutName:e.cutName})),buildSection:j,buildSectionWithHierarchy:(e,n)=>{let t=j(e);return t?t.join(">"):n},isPublished:e=>"published"===a.getPageVersion(e)||"published"===a.getComponentVersion(e),getAllProducts:w,getAllProductsInPage:e=>V(e)?w(e?.main?.[0]?.content||[]):[],getDealsContainer:e=>{if(T(e)){let n=e?.main?.[0]?.items.find(e=>"price-tracker-results"===a.getComponentName(h(e)));return n?.initialResults||[]}},getBrands:e=>(e?.branding||[]).filter(e=>e.isActive||e?.__sharedComponentMeta?.isActive).map(e=>Object({id:e.slug,termCode:e.spec,label:"string"==typeof e.name?e.name.trim():""})),getBreadcrumb:e=>e?.top?.find(e=>"breadcrumb"===a.getComponentName(h(e))),getPageFooter:e=>{let{bottom:n}=e;return n.find(e=>"footer"===a.getComponentName(h(e)))},getSchemaCanonicalUrl:(e,n)=>{let{configuration:t}=n.locals,{pageType:a,canonicalUrlPath:i}=t;return c(i||s(e).pathname,n.locals,a).replace(/(.schema)/,"")},getSponsors:e=>(e?.branding||[]).filter(e=>e.isActive&&e.isSponsor).map(e=>({"@type":"Organization",name:e.name})),getStellarId:e=>{let n=a.replaceVersion(e);return btoa(a.isPage(n)?`/_pages/${a.getPageInstance(n)}`:`/_components/${a.getComponentName(n)}/instances/${a.getComponentInstance(n)}`)},getSubscriptionCategoryFromAuthType:(e,n)=>{if(!e)return"free";let t={tve:"externalSubscription"}[n];if(!t)throw Error(`invalid authType: ${n}`);return t},omitUndefined:e=>o(e,r),refCheck:h,sanitizeQuotes:e=>{try{return e.replace(/\\*["“”]/g,()=>'"')}catch(e){return""}},validateArticlePage:P,validateElectionPage:e=>v("election-center")(e),validateVideoLeafPage:_,validateGalleryLeafPage:I,validateLiveStoryPage:A,validateliveArticle:e=>!!O(e),validateTVEContent:C,validateTVESeriesPage:N,validateTVEEpisodePage:y,validateTVEFilmPage:S,getLiveBlog:O,getAccordion:F,validateStaticPage:e=>v("static")(e)||E(e),validateHomePage:e=>e?.pageVariant?.includes(l.HOMEPAGE),validateSectionPage:e=>v("section")(e)&&!E(e),validateContext:e=>e&&(e==b.seo||e==b.render),validateUnderscoredPage:e=>e.main?.[0]?.configuration?.[0].section==="cnn-underscored"&&(!!U(e)||!!F(e)),validateUnderscoredAboutPage:e=>e?.main?.[0]?.configuration?.[0].section==="cnn-underscored"&&e?.main?.[0]?.configuration?.[0].subsection==="about"&&v("static")(e),validateUnderscoredDealsFinderPage:T,getTVEPageSeasons:e=>$(e).seasons,getTVEPageSeries:$,getTVEPageScreen:R,getTVEHeadlineHeroComponent:x,getTVEHeadlineHeroOriginalContent:e=>{let n=x(e.top);if(n)return n.originalContent},getSyndicationData:({syndicationFeeds:e,syndicationInews:n,syndicationApplenews:t,syndicationNewsource:a,syndicationRecs:i,syndicationSearch:r})=>{let o=[];return null!=e&&o.push(d("syndication_feeds",e)),null!=n&&o.push(d("syndication_inews",n)),null!=t&&o.push(d("syndication_applenews",t)),null!=a&&o.push(d("syndication_newsource",a)),null!=i&&o.push(d("syndication_recs",i)),null!=r&&o.push(d("syndication_search",r)),o},validateSponsorArticle:e=>e?.pageVariant?.includes(l.SPONSOR_ARTICLE),removeTagsExceptA:e=>e.replace(/]+>/g,""),getNestedAccordion:H,hasProductSchemas:V,mergeSentiments:function(e){if(!Array.isArray(e)||0===e.length)return[];if("string"==typeof e[0]||0===e.filter(e=>!isNaN(parseFloat(e.confidenceScore))).length)return[e[0]];let n=e.reduce((e,n)=>(parseFloat(n.confidenceScore)||Number.NEGATIVE_INFINITY)>(e&&parseFloat(e.confidenceScore)||Number.NEGATIVE_INFINITY)?n:e,null);return n?[n]:[]}}}}]); /* window.modules["304"] */ "use strict";(self.modules=self.modules||[]).push([["304"],{304:(e,t,n)=>{let{v4:r}=n("163"),o=n("24"),i=n("171"),{getUserHistory:a}=n("533"),{getSiteLanguage:s,getSite:d}=n("131"),{SECONDS_PER_HOUR:c,formatDuration:l,parseIso8601ToSeconds:u}=n("133"),{getContentModel:m,getZaid:f,getGeoCountry:p}=n("1"),{getStellarId:_}=n("303"),g=o.get("CONTENT_RECS_API_RECOMMENDATIONS"),h=o.get("CONTENT_RECS_API_PERSONALIZE"),E="content-recs",N=/^Opinion: /,A={NewsArticle:"article",VideoObject:"video",Movie:"video"};function R(e){let t=e.dataset.page,n=e.dataset.videoResourceParentUri;return t||n?n?_(n):_(t):null}function w(){let e=[...document.querySelectorAll('[data-uri*="/_components/card/instances/"]')],t=new Set;return e.forEach(e=>{let n=R(e);n&&t.add(n)}),Array.from(t)}function v(e,t){if(t)return`${e}.${t}`;let n=s(d(m()));return`${e}.${n}`}function y(e){let t;try{t=new URL(e)}catch(n){let t=n instanceof Error?n.message:String(n);return console.error(`Content-Recs: Invalid URL provided to getThumbnailUrl: ${e}. Error: ${t}`),"https://www.cnn.com/media/sites/cnn/cnn-fallback-image.jpg"}return t.searchParams.set("c","16x9"),t.toString().replace("t1-main","hp-video")}e.exports={CONTENT_RECS_API_RECOMMENDATIONS:g,CONTENT_RECS_API_PERSONALIZE:h,DEFAULT_RECOMMENDATION_COUNT:3,DEFAULT_REQUEST_ID_PREFIX:E,getCardContentStellarId:R,getContainerCardsStellarIds:w,getMainVideoStellarId:function(e){return e?_(e):null},formatTenantId:v,getThumbnailUrl:y,buildRequestBody:function({numberOfItems:e,contentTypes:t=[],sections:n=[],tenantId:o,includeHistory:i=!1,surface:s=E,dedupe:d=!1,customSuffix:c=null,throwIfMissingZaid:l=!0}){let u=p()?.toUpperCase(),m={request_id:`${s}-${r()}`,content_types:t,sections:n,tenant_id:v(o,c),requested_recommendation_count:parseInt(e||3),user:{user_agent:window.navigator.userAgent,zaid:f({throwIfMissing:l}),...u&&{geo_data:{country:u}}}};return i&&(m.user.lifetime_history=a()),d&&(m.dedupe_list=w()),m},getRecommendations:function(e){return i.post(g,e).then(e=>{if(!Array.isArray(e.recommendations)||!e.recommendations?.length>0)throw Error("Recommendations fetch failed!");return{recommendations:e.recommendations.map(({headline:e,thumbnail:t,url:n,last_modified_date:r,word_count:o,section:i,stellar_id:a,content_type:s,duration:d,description:m,source:f})=>{s=A[s]||s;let p={url:n,thumbnail:t&&y(t),headline:e.replace(N,""),type:i?.toLowerCase()==="opinions"?"opinion":s,lastModifiedDate:r,word_count:o,stellar_id:a,description:m,source:f};if("video"===s){let e=d&&"string"==typeof d?u(d):NaN;p.durationLabel=e>0?l(e,e>=c):" "}return p}),tenantId:e.tenant_id}})}}}}]); /* window.modules["307"] */ "use strict";(self.modules=self.modules||[]).push([["307"],{307:e=>{let t=e=>e&&e.context?e.context.fastAB?.activeExperiments||[]:"undefined"!=typeof window&&window.CNN?.fastAB?.activeExperiments||[],r=e=>null!=e&&""!==e,i=(e,t)=>{let i=new Map(Object.keys(e).map(e=>[e.toLowerCase(),e]));for(let e of t){if(!r(e))continue;let t=`fab_${String(e).toLowerCase()}`,n=i.get(t);if(void 0!==n)return n}},n=e=>{let t=Number(e);return Number.isInteger(t)&&t>=1?t:NaN};e.exports={getActiveFastlyExperiments:t,isActiveExperimentMatch:(e,r)=>t(r).filter(t=>new RegExp(e).test(t)).length>0,getExperimentClassName:e=>{let r=t(e).map(e=>{let[t,r]=e.split("/");return t&&r?`${t}--${r}`:""}).filter(Boolean).join(" ");return r?` ${r}`:r},isVariantActive:(e,t,s,u)=>{if(!r(e)&&!r(u)||!r(t))return!1;let l=s&&s.query||{},o=i(l,[e,u]),a=n(t);if(void 0===o)return Number.isFinite(a)&&1===a;let f=n(l[o]);return Number.isFinite(f)&&Number.isFinite(a)&&f===a},getFlexVariantsToRender:e=>{if(!Array.isArray(e))return[];let t=e.filter(({displaySelf:e})=>e);if(t.length)return t;let r=e.find(({fastAbVariantIndex:e})=>{let t=Number(e);return Number.isInteger(t)&&1===t});return r?[r]:[]},isFlexExperimentLive:(e,t,s)=>{if(!r(e)&&!r(s))return!1;let u=t&&t.query||{},l=i(u,[e,s]);return void 0!==l&&Number.isFinite(n(u[l]))}}}}]); /* window.modules["311"] */ "use strict";(self.modules=self.modules||[]).push([["311"],{311:(e,t,l)=>{let{setupTapEvents:r}=l("2277"),{setupSlidesAnalyticsTracking:s}=l("2278"),i={ACTIVE_SLIDE_CLASS:"card_slide__item-media-slide--active",SLIDES_CONTAINER_SELECTOR:".card_slide__item-media",EVENT_CONTAINER_SELECTOR:"[data-component=slides-control-panel]",DEFAULT_PROGRESSION_TIME:6e3,TAP_AREA_SELECTOR:".card_slide__item-media-touch-area"},n=e=>{if(!e||!(e instanceof HTMLElement))throw Error("Parent element must be a valid HTMLElement");let t=e.querySelector(i.SLIDES_CONTAINER_SELECTOR),l=e.querySelector(i.EVENT_CONTAINER_SELECTOR)||e,r=e.querySelector(i.TAP_AREA_SELECTOR);if(!t)throw Error(`Slides container not found with selector: ${i.SLIDES_CONTAINER_SELECTOR}`);if(!r)throw Error(`Tap area not found with selector: ${i.TAP_AREA_SELECTOR}`);let s=Array.from(t.children);if(0===s.length)throw Error("No slides found in slides container");return{slidesContainer:t,allSlides:s,eventContainer:l,tapArea:r}},a=(e,t)=>{let l=t.querySelector(`.${i.ACTIVE_SLIDE_CLASS}`),r=e.indexOf(l);return r>=0?r:0},E=(e,t,l)=>{let r=Number(e[t].dataset.customDuration);return!isNaN(r)&&r>0&&isFinite(r)?r:l},d=(e,t,l)=>{if(e=t.length)return console.warn(`Invalid slide index: ${e}. Must be between 0 and ${t.length-1}`),l;let r=t[e],s=t[l];return r&&s&&e!==l?(s.classList.remove(i.ACTIVE_SLIDE_CLASS),r.classList.add(i.ACTIVE_SLIDE_CLASS),e):l},o=e=>{let{allSlides:t,slidesContainer:l,defaultChangeTime:s,eventContainer:i,tapArea:n}=e,o=(e,t={})=>{let l=new CustomEvent(`slides:${e}`,{bubbles:!1,cancelable:!0,detail:t});i.dispatchEvent(l)},S=(e,l,r="auto")=>{o("activeSlideChanged",{activeSlideIndex:e,slidesLength:t.length,remainingTime:l,progressType:r})},_=()=>{o("endOfSlides")},u=t.length,c=a(t,l),L=E(t,c,s),T=(e,l="auto")=>{let r=d(e,t,c);r!==c&&(c=r,L=E(t,r,s),S(r,L,l))},A=(e="manual")=>{let t=c-1;t>=0&&T(t,e)},C=(e="manual")=>{if(c===u-1){_();return}let t=c+1;tC("manual"),()=>A("manual")),i.addEventListener("slides:nextClick",e=>{let{progressType:t}=e.detail||{};C(t)}),i.addEventListener("slides:prevClick",e=>{let{progressType:t}=e.detail||{};A(t)}),i.addEventListener("slides:restartClick",()=>{T(0)}),S(c,L)};e.exports={SetupSlidesAutoProgression:(e,t=i.DEFAULT_PROGRESSION_TIME,l=null)=>{try{let{slidesContainer:r,allSlides:i,eventContainer:a,tapArea:E}=n(e);if(l||(l=e.closest(".card_slide")),o({allSlides:i,slidesContainer:r,defaultChangeTime:t,tapArea:E,eventContainer:a}),l){let e=i.length;s(a,l,e)}}catch(e){throw console.error("Failed to setup slides auto progression:",e.message),e}},validateSlideElements:n,getActiveSlideIndex:a,getSlideTimerByIndex:E,switchSlide:d,createSlideController:o,SLIDE_CONSTANTS:i}}}]); /* window.modules["312"] */ "use strict";(self.modules=self.modules||[]).push([["312"],{312:e=>{let s={PAUSE_BUTTON_SELECTOR:".card_slide__control-panel-btn-pause",NEXT_BUTTON_SELECTOR:".card_slide__control-panel-arrow--next",PREV_BUTTON_SELECTOR:".card_slide__control-panel-arrow--prev",PAUSE_CLASS:"card_slide__control-panel-btn-pause--paused",RESTART_BUTTON_SELECTOR:".card_slide__restart-btn",OVERLAY_SELECTOR:".card_slide__restart-overlay",VISIBLE_OVERLAY_CLASS:"card_slide__restart-overlay--visible",PROGRESS_BAR_SELECTOR:".card_slide__control-panel-progress-bar-fill",PROGRESS_BAR_FINISHED_CLASS:"card_slide__control-panel-progress-bar-fill--finished"},t=(e,s)=>{s?e.setAttribute("disabled",!0):e.removeAttribute("disabled")};e.exports=(e,n=null)=>{let r=e.querySelector(s.PAUSE_BUTTON_SELECTOR),l=e.querySelector(s.NEXT_BUTTON_SELECTOR),i=e.querySelector(s.PREV_BUTTON_SELECTOR),a=e.querySelector(s.RESTART_BUTTON_SELECTOR),o=e.querySelector(s.OVERLAY_SELECTOR),c=e.querySelectorAll(s.PROGRESS_BAR_SELECTOR);if(!r||!l||!i||!a||!o)throw Error("Slides control panel requires pause, next, prev, restart buttons and overlay");let _=null,S=null,E=!1,d=!1,u=(e="auto")=>L("nextClick",{progressType:e}),R=(e="manual")=>L("prevClick",{progressType:e}),L=(s,t={})=>{let n=new CustomEvent(`slides:${s}`,{bubbles:!1,cancelable:!0,detail:t});e.dispatchEvent(n)};l.addEventListener("click",()=>u("manual")),i.addEventListener("click",()=>R("manual")),a.addEventListener("click",()=>L("restartClick")),r.addEventListener("click",()=>{if(!_)return;let e=_.isRunning(),t=S&&!S.isVisible();_.togglePause?.(),r.classList.toggle(s.PAUSE_CLASS,!_.isRunning()),E=!_.isRunning(),!e&&_.isRunning()&&t?d=!0:e&&!_.isRunning()&&(d=!1),L("pausePlayAction",{actionType:e?"pause":"play"})}),e.addEventListener("slides:activeSlideChanged",({detail:{activeSlideIndex:e,slidesLength:n,remainingTime:a}})=>{_?.cancelCurrentProgress?.(),E=!1,c.forEach((t,n)=>{t.classList.toggle(s.PROGRESS_BAR_FINISHED_CLASS,n"running"===n.playState;return{isRunning:r,togglePause:()=>{r()?n.pause():n.play()},cancelCurrentProgress:()=>{n.onfinish=null,n.finish()}}}(t,a,()=>u("auto")),S&&!S.isVisible()&&_&&!d&&_.togglePause?.())}),t(i,0===e),t(l,e===n-1),t(r,!1),o.classList.remove(s.VISIBLE_OVERLAY_CLASS),_?r.classList.toggle(s.PAUSE_CLASS,!_.isRunning()):r.classList.remove(s.PAUSE_CLASS)}),e.addEventListener("slides:endOfSlides",()=>{c.forEach(e=>{e.classList.add(s.PROGRESS_BAR_FINISHED_CLASS)}),_?.cancelCurrentProgress?.(),o.classList.add(s.VISIBLE_OVERLAY_CLASS),t(i,!0),t(l,!0),t(r,!0),a.focus()}),n&&(S=function(e,s,t,n,r){if(!e||"undefined"==typeof IntersectionObserver)return{disconnect:()=>{},isVisible:()=>!0};let l=e.querySelector(".card_slide__item-media-wrapper")??e,i=!1,a=new IntersectionObserver(([e])=>{let l=e.isIntersecting&&e.intersectionRatio>=.5;if(l===i)return;i=l;let a=s?.();if(!a)return;let o=a.isRunning?.(),c=t?.()||!1;!i&&o?(a.togglePause?.(),n?.(!1)):i&&!1===o&&!c&&(a.togglePause?.(),n?.(!0)),i&&r?.()},{threshold:.5});return a.observe(l),{disconnect:()=>a.disconnect(),isVisible:()=>i}}(n,()=>_,()=>E,e=>{r&&r.classList.toggle(s.PAUSE_CLASS,!e)},()=>{d=!1}))}}}]); /* window.modules["317"] */ "use strict";(self.modules=self.modules||[]).push([["317"],{317:(e,t,o)=>{let d=o("113"),r=o("24"),{initAdFeedbackLink:s,getAdFeedbackLink:n}=o("8"),{AdData:l}=o("537"),{authClient:i}=o("26"),{isSubscriber:a}=o("96"),{subscribe:c,actions:w}=o("65"),{getPageInstance:u}=o("127"),g=r.get("LAZYLOAD_BUFFER_DESKTOP"),N=r.get("LAZYLOAD_BUFFER_MOBILE"),m="adSlotLoaded",p=r.get("ENABLE_AD_LAZY_LOADING")&&d(window,"CNN.ads.lazyLoad",!1),A={},h=new l,_=()=>{let e=window.CNN.ads||[];if(e.rktr_ad_id)return{rktr_ad_id:e.rktr_ad_id};throw Error("[AdFuel] - registry is not ready")},y=()=>{if(window.CNN?.ads?.registry&&window.CNN.ads.registry.length)return window.CNN.ads.registry;throw Error("Ads registry not ready - reject")},f=e=>h.registerAd(h.TYPE.DISPLAY,null,e),C=()=>{let e=(window?.WM?.referrer||document.referrer).replace(/^http(?:s)?:\/\/([\w\-.]+).*$/i,"$1").toLowerCase();return/^([\w-]+\.)*money\.cnn\.com$/.test(e)?"money":/^([\w-]+\.)*(www|us|edition|next|localhost)\.cnn\.com$/.test(e)?"cnn":"t.co"===e?"twitter":/^([\w-]+\.)*facebook\.com$/.test(e)?"facebook":/^([\w-]+\.)*google\.\w{2,3}(\.\w\w)?$/.test(e)?"google":"other"},L=()=>{let e=/[\\?&]adkey=([^&#]*)/.exec(window.location.href);return e?e[1]:null},S=()=>new Promise(e=>document.addEventListener("PreQueueComplete",e)),b=()=>S().then(()=>window.recallProximic(window.location.href)),E=()=>d(window,"CNN.contentModel._wedgerId")||(u(d(window,"CNN.contentModel.cmsId",""))||"").split("@").shift(),I=async()=>{let e="https:"===window.location.protocol?"ssl":"non-ssl",t=C(),o=L(),r=d(window,"CNN.contentModel.branding.spec",null),s=d(window,"CNN.cep_topics",{}),n=d(window,"CNN.contentModel.templateType",""),l=E(),i=await v();c(w.LOGIN_FORM.LOGIN_SUCCESS,async()=>{let e=await v();window.googletag.pubads().setTargeting("subs",e.subs)}),c(w.ACCOUNT_NAV.LOGOUT_SUCCESS,()=>{googletag.pubads().clearTargeting("subs"),delete window.CNN.adTargets.subs}),window.CNN.adTargets={source_id:l,short_source_id:l,protocol:e,refdom:t,adkey:o,spec:r,...i,...s,pg:n,wm_vw:"stlr"},b()},v=async()=>{try{let e=i.tokenWithAuthn();if(await a())return{subs:["subscribed"]};if(e)return{subs:["loggedIn"]};return{}}catch(e){return console.error(e),{}}},O=({divId:e,renderedSize:t})=>{let[o]=t.includes("x")?t.split("x"):t,d=document.querySelector(`#${e} ~ .ad-slot__feedback`);o=onew Promise(e=>window.AdFuel?e():document.addEventListener("AdFuelCreated",e)),setupAdFuel:()=>{let e=y(),t=_();return e&&t},handleAdSlotLoaded:({detail:e},t)=>{e&&e.divId&&(document.querySelectorAll(`.ad-slot[data-${t?"mobile":"desktop"}-slot-id="${e.divId}"]`).forEach(t=>{!e.empty&&(t.classList.add(m),A[e.divId]||s(t),e.renderedSize&&(t.dataset.adSlotRenderedSize=e.renderedSize))}),O(e))},initializeLazyLoadAds:(e,t)=>{let o=e[0],d=new IntersectionObserver((t,d)=>{t.forEach(({isIntersecting:t,target:r})=>{if(t&&r.id){let t=e.find(({rktr_slot_id:e})=>e===r.id);void 0!==t&&f([o,t]),d.unobserve(r)}})},{rootMargin:`0px 0px ${t?N:g}px 0px`});document.querySelectorAll(".ad").forEach(e=>d.observe(e))},loadRegistry:f,processAdSlotPlaceholders:e=>{document.querySelectorAll(".ad-slot").forEach(t=>{let o=e?t.dataset.mobileSlotId:t.dataset.desktopSlotId;if(t.classList.remove(m),t.querySelectorAll(".ad").forEach(e=>t.removeChild(e)),o){let e=document.createElement("div");e.id=o,e.className="ad",t.prepend(e),n(t)?.setAdIdentifier(o)}})},setAdTargets:I}}}]); /* window.modules["321"] */ "use strict";(self.modules=self.modules||[]).push([["321"],{321:(e,t,r)=>{let{PROGRESSION_CONSTANTS:s,progressionEvent:l}=r("2287"),{startActiveProgressBar:a}=r("2288"),{dispatchNamespacedEvent:n}=r("2289");e.exports={setupProgressionControlPanel:function(e,{progressBarSelector:t,progressBarFinishedClass:r,segmentSelector:o,pauseToggle:i}){let{EVENT_PREFIX:u,EVENTS:d}=s,c=e.querySelectorAll(t);if(!c.length)throw Error("Progression control panel requires progress bars");let E=null,p=!1,g=!1,C=!1,P=()=>{n(e,u,d.NEXT_CLICK,{progressType:"auto"})},A=t=>{t!==C&&(C=t,E?.setPaused?.(C),n(e,u,d.PAUSE_CHANGED,{paused:C}))};return o&&e.querySelectorAll(o).forEach((t,r)=>{t.addEventListener("click",()=>{n(e,u,d.GO_TO_ITEM,{index:r})})}),i?.addEventListener("click",()=>{p=!p,i.dataset.paused=String(p),i.setAttribute("aria-pressed",String(p)),i.setAttribute("aria-label",p?i.dataset.labelPlay:i.dataset.labelPause),A(p||g)}),e.addEventListener(l(d.ACTIVE_ITEM_CHANGED),({detail:{activeIndex:e,remainingTime:t}})=>{E?.cancelCurrentProgress?.(),E=a({progressBars:c,activeIndex:e,finishedClass:r,remainingTime:t,onSegmentComplete:P,paused:C})}),{setViewportPaused:e=>{g=e,A(p||g)}}}}}}]); /* window.modules["322"] */ "use strict";(self.modules=self.modules||[]).push([["322"],{322:(e,t,r)=>{let{DS_CONSTANTS:E}=r("2290"),{setupMobileTapNavigation:n,isClickInActiveFrameTapArea:l}=r("2291"),{observeDynamicSpotlightStackedLayout:o}=r("2292"),{PROGRESSION_CONSTANTS:s,progressionEvent:i}=r("2287"),{getActiveItemIndex:T,switchActiveItem:_,markPeekItems:a}=r("2293"),{dispatchNamespacedEvent:C}=r("2289"),L=e=>{if(!(e instanceof HTMLElement))throw Error("Parent element must be a valid HTMLElement");let t=e.querySelector(E.FRAMES_CONTAINER_SELECTOR),r=e.querySelector(E.EVENT_CONTAINER_SELECTOR)||e;if(!t)throw Error(`Progression viewer media not found with selector: ${E.FRAMES_CONTAINER_SELECTOR}`);let n=Array.from(t.children);if(0===n.length)throw Error("No frames found in progression viewer");return{framesContainer:t,allFrames:n,eventContainer:r}},S=(e,t)=>T(e,t,E.ACTIVE_FRAME_CLASS),d=(e,t,r)=>_(e,t,r,E.ACTIVE_FRAME_CLASS),A=(e,t)=>a(e,t,E.PEEK_FRAME_CLASSES),c=e=>{let{allFrames:t,framesContainer:r,defaultChangeTime:T,eventContainer:_,viewer:a}=e,{EVENT_PREFIX:L,EVENTS:c}=s,R=(e,t={})=>{C(_,L,e,t)},m=t.length,I=S(t,r),O=e=>{R(c.ACTIVE_ITEM_CHANGED,{activeIndex:e,itemsLength:m,remainingTime:T})},u=e=>{let r=d(e,t,I);r!==I&&(I=r,A(t,r),O(r))},N=e=>{l(e,a)||e.target.closest(E.FRAME_INFO_SELECTOR)||(e.preventDefault(),R(c.NEXT_CLICK,{progressType:"manual"}))};_.addEventListener(i(c.PREV_CLICK),()=>{0!==I&&u(I-1)}),_.addEventListener(i(c.NEXT_CLICK),()=>{u((I+1)%m)}),_.addEventListener(i(c.GO_TO_ITEM),({detail:{index:e}})=>u(e));let h=n(a,_),v=(a.closest(E.SPOTLIGHT_CONTAINER_SELECTOR)||a).querySelector(E.LEAD_SELECTOR),f=e=>{h.setEnabled(e),r.removeEventListener("click",N),e||r.addEventListener("click",N)};v?o(v,f):f(!1),A(t,I),O(I)};e.exports={SetupDynamicSpotlight:(e,t=E.DEFAULT_PROGRESSION_TIME)=>{try{let{framesContainer:r,allFrames:E,eventContainer:n}=L(e);c({allFrames:E,framesContainer:r,defaultChangeTime:t,eventContainer:n,viewer:e})}catch(e){throw console.error("Failed to setup dynamic spotlight:",e.message),e}},validateDynamicSpotlightElements:L,getActiveFrameIndex:S,switchFrame:d,createDynamicSpotlightController:c,DS_CONSTANTS:E}}}]); /* window.modules["323"] */ "use strict";(self.modules=self.modules||[]).push([["323"],{323:(e,t,a)=>{let{DS_CONSTANTS:r}=a("2290"),{validateDynamicSpotlightElements:l,getActiveFrameIndex:s}=a("322"),{PROGRESSION_CONSTANTS:i,progressionEvent:u}=a("2287"),d=a("16").setup({file:"/index.js"}),{getFaveInstance:n,whenPlayerReady:E,releaseOtherPlayers:p}=a("2286"),{EVENTS:o}=i,c={PLAYING:"PLAYING",PAUSED:"PAUSED"},S=e=>e.map(e=>{let t=e.querySelector(r.VIDEO_PLAYER_SELECTOR)?.dataset.uri;return t?`player-${t}`:null}),m=(e,t)=>{t?e.mute():e.unmute()},A=(e,t)=>{m(e,t),e.getMediaState?.()!==c.PLAYING&&e.resume()},L=e=>{e.getMediaState?.()!==c.PAUSED&&e.pause()};e.exports={setupDynamicSpotlightVideoPlayback:e=>{let{allFrames:t,framesContainer:a,eventContainer:i}=l(e),c=S(t),_=e.querySelector(r.MUTE_TOGGLE_SELECTOR),f=s(t,a),P=!0,g=!1,y=e=>{let t=c[e];return t?n(t):null},D=e=>e===f&&!g,h=e=>{let t=y(e);t&&(D(e)?A(t,P):L(t))},G=()=>c.forEach((e,t)=>h(t)),I=()=>{if(!_)return;let{labelMute:e,labelUnmute:t}=_.dataset;_.hidden=!c[f],_.dataset.muted=String(P),_.setAttribute("aria-pressed",String(P)),_.setAttribute("aria-label",P?t:e)},O=()=>{let e=c[f]?null:t[f]?.querySelector(r.LOOP_SELECTOR);if(e&&e.paused!==g){if(g){e.pause();return}e.play()?.catch(e=>d("warn",`Dynamic spotlight loop failed to resume: ${e.message}`))}};c.forEach((e,t)=>{e&&E(e,()=>{p(y(t)),h(t)})});let T=new Map(t.map((e,t)=>[e,t]));a.addEventListener("timeupdate",({target:e})=>{let t=e?.closest?.(".container_progression__frame"),a=t?T.get(t):-1;a>=0&&!D(a)&&y(a)?.pause()},!0),i.addEventListener(u(o.ACTIVE_ITEM_CHANGED),({detail:{activeIndex:e}})=>{f=e,G(),O(),I()}),i.addEventListener(u(o.PAUSE_CHANGED),({detail:{paused:e}})=>{g=e,h(f),O()}),_?.addEventListener("click",()=>{let e=y(f);P=!P,e&&m(e,P),I()})}}}}]); /* window.modules["324"] */ "use strict";(self.modules=self.modules||[]).push([["324"],{324:e=>{let s={threshold:0};e.exports={observeDynamicSpotlightVisibility:function(e,t){let i=new IntersectionObserver(([e])=>{t(!e.isIntersecting)},s);return i.observe(e),()=>i.disconnect()}}}}]); /* window.modules["325"] */ "use strict";(self.modules=self.modules||[]).push([["325"],{325:(e,t,r)=>{let{getFaveInstance:n,whenPlayerReady:i,releaseOtherPlayers:a}=r("2286"),u={BACKGROUND_SELECTOR:".container_streaming-showcase__background",MUTE_TOGGLE_SELECTOR:".container_streaming-showcase__mute-toggle",VIDEO_PLAYER_SELECTOR:"[data-component-name=video-player]"},d=new Set(["PLAYING","WAITING"]),o=(e,t,r)=>{r?t.mute?.():t.unmute?.();let n=e.querySelector("video");n&&(n.muted=r)},s=(e,t)=>{if(!e)return;let{labelMute:r,labelUnmute:n}=e.dataset;e.dataset.muted=String(t),e.setAttribute("aria-pressed",String(t)),e.setAttribute("aria-label",t?n:r)},l=(e,t)=>{let r=e?.isMuted?.();return"boolean"==typeof r?r:t},c=(e,t)=>d.has(e?.getMediaState?.())||!!(t&&!t.paused),m=()=>"function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,p=e=>"visible"===document.visibilityState&&!m()&&!e?.ended&&(!e||e.paused),f=(e,t,r)=>{let n=e.querySelector("video");if(o(e,t,r),!p(n))return!1;if(n?.currentTime>0)return t.resume(),!0;let i=t.getConfigs?.();return i&&t.play?.(null,i),!!i},g=()=>0,y=({background:e,instance:t,mute:r,isInView:n,attempts:i})=>!t||!1===n||i>=3?i:f(e,t,r)?i+1:i,h=({background:e,instance:t,muteToggle:r,hasUserSelectedAudio:n,mute:i})=>{let a;if(n)a=l(t,i);else{a=!0;let t=e.querySelector("video");t&&!t.muted&&(t.muted=!0)}return s(r,a),a};e.exports={setupStreamingShowcaseBackgroundPlayback:(e,t)=>{let r,d,p;let f=e?.querySelector(u.VIDEO_PLAYER_SELECTOR),v=f?.dataset?.uri;if(!v||"true"===e.dataset.backgroundPlaybackBound)return;e.dataset.backgroundPlaybackBound="true";let E=`player-${v}`,b=0,S=!1,w=!0,_=!1,L=[],k=(e,t,r,n)=>{"function"==typeof e?.addEventListener&&(e.addEventListener(t,r,n),L.push(()=>e.removeEventListener?.(t,r,n)))},C=()=>{if(!_){for(_=!0,p?.disconnect();L.length;)L.pop()();r&&(S=!1,o(e,r,w=!0),s(t,w),r.pause?.()),delete e.dataset.backgroundPlaybackBound}},O=()=>{b=y({background:e,instance:r,mute:w,isInView:d,attempts:b})},I=()=>{b=g()},R=()=>{let n=e.querySelector("video");if(!r)return;let i=c(r,n);S=!1,o(e,r,w=!0),s(t,w),i&&r.pause?.()},T=()=>{r&&(I(),O())};"function"==typeof IntersectionObserver&&(p=new IntersectionObserver(t=>{if(!e.isConnected){C();return}let r=t.find(({target:t})=>t===e);if(!r)return;let n=r.isIntersecting&&r.intersectionRatio>=.5;n!==d&&((d=n)?T():R())},{threshold:.5})).observe(e),k(e,"volumechange",()=>{r&&(w=h({background:e,instance:r,muteToggle:t,hasUserSelectedAudio:S,mute:w}))},!0),k(e,"timeupdate",()=>{!1===d&&R()},!0),k(t,"click",()=>{if(!r)return;let n=!!S&&!l(r,w);S=!0,o(e,r,w=n),s(t,w)});let A=()=>{if(_||(r=n(E),!e.isConnected||!r)){C();return}a(r),k(e,"playing",I,!0),k(e,"timeupdate",I,!0);let i=()=>{m()&&r.pause?.()};k(e,"playing",i,!0),k(e,"timeupdate",i,!0);let u=()=>{let t=e.querySelector("video");t&&t.muted!==w&&(t.muted=w)};["loadstart","loadedmetadata","play","playing"].forEach(t=>{k(e,t,u,!0)}),k(e,"pause",O,!0),k(document,"visibilitychange",()=>{if(!e.isConnected){C();return}I(),O()}),k(window.matchMedia?.("(prefers-reduced-motion: reduce)"),"change",()=>{if(!e.isConnected){C();return}if(m()){r.pause?.();return}I(),O()}),s(t,w),t&&(t.hidden=!1),!1===d?R():(i(),O())};return i(E,A),L.push(()=>window.removeEventListener(E,A)),C},SHOWCASE_CONSTANTS:u}}}]); /* window.modules["326"] */ "use strict";(self.modules=self.modules||[]).push([["326"],{326:e=>{e.exports={SOURCES:{CNN:"https://www.cnn.com/",HLN:"https://www.cnn.com/specials/videos/hln","Affiliate Only":null},CONTENT_TYPES:{mediasourceImport:"mediasource-clip",fileUpload:"uploaded-clip",livestream:"live-stream",channel:"channel",episode:"episode",film:"film",clip:"clip"},DEFAULT_RELATED_CONTENT_CTA:{article:"Read more",gallery:"See more","live-story":"Follow live","community-event":"Join the conversation",video:"Watch now",card:"Watch now",audio:"Listen now",tve:"Watch now"},MANUAL_RELATED_CONTENT_CTA:"See more"}}}]); /* window.modules["327"] */ "use strict";(self.modules=self.modules||[]).push([["327"],{327:e=>{let i={ARABIC:"ar",EDITION:"edition",ESPANOL:"es",US:"us",WWW:"www",CNN10:"cnn10"};function t(e,i){return e?.context?.site===i}function s(e,i){return e?.site?.site===i}Object.freeze(i),e.exports={isArabicSite:e=>s(e,i.ARABIC),isEditionSite:e=>s(e,"cnn")&&t(e,i.EDITION),isEspanolSite:e=>s(e,i.ESPANOL),isUSSite:e=>s(e,"cnn")&&t(e,i.US),isWWWSite:e=>s(e,"cnn")&&t(e,i.WWW),isCNN10Site:e=>s(e,i.CNN10)}}}]); /* window.modules["328"] */ "use strict";(self.modules=self.modules||[]).push([["328"],{328:(e,t,n)=>{let{isPageType:s}=n("12"),{isOfType:i}=n("13"),o={US:"us",WORLD:"world",POLITICS:"politics",BUSINESS:"business",OPINIONS:"opinions",HEALTH:"health",ENTERTAINMENT:"entertainment",STYLE:"style",TRAVEL:"travel",HOMEPAGE:"homepage",SPORTS:"sport",UNDERSCORED:"cnn-underscored",CNN10:"cnn10",WEATHER:"weather",PHOTOS:"photos",PROFILES:"profiles",TV:"tv",LIVING:"living",SUBSCRIPTION:"subscription",NEWSLETTERS:"newsletters",SCIENCE:"science",CLIMATE:"climate",DTC:"dtc",UNKNOWN:""};function E(e={},t=o.UNKNOWN){return e.configuration?.section||e.meta?.section||t}Object.freeze(o),e.exports={SECTIONS:o,isSection:function(e,t,n){return(!n||!!s(e.configuration,n))&&i(t,E(e))},getSection:E}}}]); /* window.modules["339"] */ "use strict";(self.modules=self.modules||[]).push([["339"],{339:e=>{e.exports={getURLFromContent:function(e){let t=new DOMParser().parseFromString(e,"text/html").querySelector("a");return t?t.getAttribute("href"):null},BANNER_TYPE:{default:"alerts-banner_standard","breaking-news":"alerts-banner_breaking"}}}}]); /* window.modules["340"] */ "use strict";(self.modules=self.modules||[]).push([["340"],{340:(e,t,s)=>{let{ClientModel:i,actions:n}=s("65"),{validateInput:a}=s("50"),{adData:o}=s("317"),{restorePaywallScrollLockIfNeeded:l}=s("71"),{ADS:d}=n;e.exports={AdFeedback:class extends i{constructor(){super()}initialize(){this.subscribe(d.SHOW_FEEDBACK,this.showModal),this.adIdentifier="",this.adType="",this.setHtmlElements(),this.addEventListeners(),this.updateIssuesDisplay(),this.onInputChange(),this.pausedVideos=[],this.attemptModalClose=null}setHtmlElements(){let e=document.querySelector("html"),t=document.querySelector("body"),s=document.querySelector(".ad-feedback__modal"),i=s.querySelector(".ad-feedback__container"),n=s.querySelector("form"),a=s.querySelectorAll("input"),o=s.querySelector(".ad-feedback__comment"),l=s.querySelector(".ad-feedback__comment-error-msg"),d=s.querySelectorAll(".ad-feedback__content-container[data-sentiment]"),r=s.querySelector("button#ad-feedback__submit"),c=s.querySelector("input#ad-feedback__technical-issues-checkbox"),m=s.querySelector(".ad-feedback__technical-issues-container"),h=s.querySelector(".ad-feedback__technical-issues-checkbox-label"),u=s.querySelectorAll(".ad-feedback__checkbox__input"),p=s.querySelector(".ad-feedback__submitted");this.elements={html:e,body:t,overlay:s,container:i,inputs:a,commentsTextarea:o,commentsErrorMsg:l,form:n,sentimentQuestions:d,submitButton:r,slider:c,technicalIssuesContainer:m,technicalIssuesLabel:h,technicalIssuesOptions:u,submitted:p,closeIds:["ad-feedback__modal-overlay","ad-feedback__close-icon","ad-feedback__cancel","ad-feedback__submitted__close","ad-feedback__submitted__close-icon"]}}getSentimentQuestions(){let e=[];for(let t of this.elements.sentimentQuestions)e.push(t.dataset.sentiment);return e}getFormData(){let e={},t=new FormData(this.elements.form);for(let s of(e.sentiment={},this.getSentimentQuestions()))e.sentiment[s]=t.get(s);return e.didEncounterIssues=t.get("didEncounterIssues"),e.selectedIssues=t.getAll("issues"),e.comment=t.get("comment").substr(0,1e3),e}isValid(){let{sentiment:e,didEncounterIssues:t,selectedIssues:s}=this.getFormData(),i=!1;for(let t of this.getSentimentQuestions())e[t]||(i=!0);return!t&&!i||(0===s.length&&(i=!0),!i)}clearCommentValidation(){this.elements.commentsTextarea.classList.remove("ad-feedback__comment_error"),this.elements.commentsErrorMsg.style.display="none",this.elements.commentsErrorMsg.innerHTML=""}setCommentValidation(e){this.elements.commentsTextarea.classList.add("ad-feedback__comment_error"),this.elements.commentsErrorMsg.style.display="block",this.elements.commentsErrorMsg.innerHTML=e}onInputChange(){this.elements.submitButton.disabled=!this.isValid()}updateIssuesDisplay(){let{didEncounterIssues:e}=this.getFormData();this.elements.technicalIssuesContainer.style.display=e?"":"none",this.elements.technicalIssuesLabel.innerText=e?"Yes":"No"}updateIssuesQuestions(e){this.elements.overlay.querySelectorAll(".issues-checkboxes-container").forEach(e=>e.style.display="none"),this.elements.overlay.querySelector(`.${e}_issues`).style.display="block",this.elements.commentsTextarea.placeholder=`Let us know how else we could improve ads on our ${"video"===e?"videos":"pages"}.`}sanitizeInput(e){return e.replace(/[^a-z0-9áéíóúñü.,_-]/gim," ").trim()}addEventListeners(){this.elements.inputs.forEach(e=>e.addEventListener("change",()=>{this.onInputChange()})),this.elements.slider.addEventListener("change",()=>{this.updateIssuesDisplay()}),this.elements.form.addEventListener("submit",e=>{e.preventDefault();let t=a(this.elements.commentsTextarea.value,{type:"validate-pii",customMsg:"Please do not include any personal information."});t?this.setCommentValidation(t):(this.clearCommentValidation(),this.sendZionSubmitEvent(),this.showSubmittedThanks(),this.resetForm())}),this.elements.overlay.addEventListener("mousedown",e=>{this.elements.closeIds.includes(e.target.id)&&(this.attemptModalClose=e.target)}),this.elements.overlay.addEventListener("mouseup",e=>{this.attemptModalClose===e.target&&(window.zion_analytics.track(new window.ZION_SDK.ComponentOffScreen({component_id:"close_button",component_type:e.target.id,traits:{ad_meta_data:o.getAdDetails(this.adType,this.adIdentifier)}})),this.hideModal()),this.attemptModalClose=null})}showSubmittedThanks(){this.elements.container.classList.add("submitted")}showFeedbackForm(){this.elements.container.classList.remove("submitted")}disableBackgroundScroll(){this.elements.html.style.overflow="hidden"}enableBackgroundScroll(){this.elements.html.style.overflow="",l()}resetForm(){this.elements.form.reset(),this.updateIssuesDisplay(),this.onInputChange(),this.clearCommentValidation()}sendZionOnScreenEvent(){let e={ad_meta_data:o.getAdDetails(this.adType,this.adIdentifier)};window.zion_analytics.track(new window.ZION_SDK.ComponentOnScreen({component_id:"trip_wire",component_type:"overlay",traits:{trip_wire:e}}))}sendZionSubmitEvent(){let e=this.getFormData();e.comment=this.sanitizeInput(e.comment);let t={relevance:e.sentiment,issues:{comment:e.comment},ad_meta_data:o.getAdDetails(this.adType,this.adIdentifier)};this.elements.technicalIssuesOptions.forEach(e=>{e.classList.contains(`${this.adType}_issue`)&&(t.issues[e.value]=e.checked)}),window.zion_analytics.track(new window.ZION_SDK.TripWire(t))}showModal({adType:e,adIdentifier:t}){this.elements.overlay.style.display="",this.adIdentifier=t,this.adType=e,this.updateIssuesQuestions(this.adType),this.disableBackgroundScroll(),this.sendZionOnScreenEvent(),this.pauseActiveVideos()}pauseActiveVideos(){if(window.FAVE){for(let e in window.FAVE.player.instances)if(Object.prototype.hasOwnProperty.call(window.FAVE.player.instances,e)&&window.FAVE.player.instances[e]){let t=window.FAVE.player.instances[e],s=t.getMediaState();("PLAYING"===s||"WAITING"===s)&&(this.pausedVideos.push(t.id),t.pause())}}}resumePausedVideos(){if(window.FAVE){for(let e in window.FAVE.player.instances)if(Object.prototype.hasOwnProperty.call(window.FAVE.player.instances,e)){let t=window.FAVE.player.instances[e],s=this.pausedVideos.findIndex(e=>e===t.id);s>-1&&(t.resume(),this.pausedVideos.splice(s,1))}}}hideModal(){this.enableBackgroundScroll(),this.elements.overlay.style.display="none",this.resetForm(),this.showFeedbackForm(),this.adIdentifier="",this.adType="",this.resumePausedVideos()}}}}}]); /* window.modules["346"] */ (self.modules=self.modules||[]).push([["346"],{346:(n,r,u)=>{var e=u("2275"),t=u("2144"),f=u("2274"),l=u("2276");n.exports=function(n,r){if(null==n)return{};var u=e(l(n),function(n){return[n]});return r=t(r),f(n,u,function(n,u){return r(n,u[0])})}}}]); /* window.modules["353"] */ (self.modules=self.modules||[]).push([["353"],{353:(e,s,o)=>{var r=o("2280"),u=o("2281");e.exports=function(e){return u(r(e).toLowerCase())}}}]); /* window.modules["360"] */ (self.modules=self.modules||[]).push([["360"],{360:(e,s,t)=>{var o=t("2282"),r=t("554"),n=t("2284");e.exports=function(e){return"string"==typeof e||!r(e)&&n(e)&&"[object String]"==o(e)}}}]); /* window.modules["370"] */ (self.modules=self.modules||[]).push([["370"],{370:(e,s,u)=>{var l=u("2300");e.exports=function(e){return l(e,5)}}}]); /* window.modules["374"] */ (self.modules=self.modules||[]).push([["374"],{374:(e,s,u)=>{var l=u("2275"),o=u("2144"),r=u("2301"),f=u("554");e.exports=function(e,s){return(f(e)?l:r)(e,o(s,3))}}}]); /* window.modules["376"] */ (self.modules=self.modules||[]).push([["376"],{376:(r,e,n)=>{var u=n("2275"),l=n("2300"),t=n("2302"),f=n("2303"),o=n("2304"),s=n("2306"),a=n("2322"),v=n("2276"),h=a(function(r,e){var n={};if(null==r)return n;var a=!1;e=u(e,function(e){return e=f(e,r),a||(a=e.length>1),e}),o(r,v(r),n),a&&(n=l(n,7,s));for(var h=e.length;h--;)t(n,e[h]);return n});r.exports=h}}]); /* window.modules["386"] */ "use strict";(self.modules=self.modules||[]).push([["386"],{386:(e,t,a)=>{let i=a("113"),l=a("2325"),r=a("2329"),o=a("94"),n=a("24"),{toPlainText:s}=a("44"),{elevateWhenNeeded:h}=a("130"),d={HYPATIA:"hypatia",CLOUDINARY:"cloudinary",STELLAR:o.DAM_TYPE},m=new Set([d.STELLAR,d.CLOUDINARY]),x=e=>m.has(e?.damType),u="cnn-placeholder-image",c=/\.svg(\?|#|$|\/)/i,w={upToSmall:{breakpointRule:"(max-width: 479px)",defaultWidth:"480",defaultCutToken:"large-169",ratioSizes:{extraSmall1x1:{w:"128",h:"128"},small1x1:{w:"256",h:"256"},"1x1":{w:"479",h:"479"},"3x4":{w:"360",h:"480"},small4x3:{w:"256",h:"192"},"4x3":{w:"480",h:"360"},small16x9:{w:"256",h:"144"},medium16x9:{w:"480",h:"270"},large16x9:{w:"480",h:"270"},"16x9":{w:"480",h:"270"},original:{w:"480"}},hypatiaCutKeys:{"1x1":"largeto1","4x3":"large4to3","16x9":"large16to9",original:"large16to9"}},mobile:{breakpointRule:"(min-width: 480px) and (max-width: 767px)",defaultWidth:"480",defaultCutToken:"large-169",ratioSizes:{extraSmall1x1:{w:"128",h:"128"},small1x1:{w:"256",h:"256"},"1x1":{w:"480",h:"480"},"3x4":{w:"360",h:"480"},small4x3:{w:"256",h:"192"},"4x3":{w:"480",h:"360"},small16x9:{w:"256",h:"144"},medium16x9:{w:"480",h:"270"},large16x9:{w:"480",h:"270"},"16x9":{w:"480",h:"270"},original:{w:"480"},max16x9:{w:"959",h:"539"}},hypatiaCutKeys:{"1x1":"largeto1","4x3":"large4to3","16x9":"large16to9",original:"large16to9"}},tablet:{breakpointRule:"(min-width: 768px) and (max-width: 1023px)",defaultWidth:"960",defaultCutToken:"exlarge-169",ratioSizes:{extraSmall1x1:{w:"128",h:"128"},small1x1:{w:"256",h:"256"},"1x1":{w:"960",h:"960"},"3x4":{w:"720",h:"960"},small4x3:{w:"256",h:"192"},"4x3":{w:"960",h:"720"},small16x9:{w:"256",h:"144"},medium16x9:{w:"480",h:"270"},large16x9:{w:"780",h:"438"},"16x9":{w:"960",h:"540"},original:{w:"960"},max16x9:{w:"1279",h:"719"}},hypatiaCutKeys:{"1x1":"exlarge1to1","4x3":"exlarge4to3","16x9":"exlarge16to9",original:"exlarge16to9"}},desktop:{breakpointRule:"(min-width: 1024px) and (max-width: 1279px)",defaultWidth:"1280",defaultCutToken:"exlarge-169",ratioSizes:{extraSmall1x1:{w:"128",h:"128"},small1x1:{w:"256",h:"256"},"1x1":{w:"1280",h:"1280"},"3x4":{w:"960",h:"1280"},small4x3:{w:"256",h:"192"},"4x3":{w:"1280",h:"960"},small16x9:{w:"256",h:"144"},medium16x9:{w:"480",h:"270"},medium9x16:{w:"526",h:"935"},large16x9:{w:"780",h:"438"},"16x9":{w:"1280",h:"720"},original:{w:"1280"},max16x9:{w:"1439",h:"809"}},hypatiaCutKeys:{"1x1":"exlarge1to1","4x3":"exlarge4to3","16x9":"exlarge16to9",original:"exlarge16to9"}},xlDesktop:{breakpointRule:"(min-width: 1280px)",defaultWidth:"1280",defaultCutToken:"exlarge-169",ratioSizes:{extraSmall1x1:{w:"128",h:"128"},small1x1:{w:"256",h:"256"},"1x1":{w:"1280",h:"1280"},"3x4":{w:"960",h:"1280"},small4x3:{w:"256",h:"192"},"4x3":{w:"1280",h:"960"},small16x9:{w:"256",h:"144"},medium16x9:{w:"480",h:"270"},large16x9:{w:"780",h:"438"},"16x9":{w:"1280",h:"720"},original:{w:"1280"},max16x9:{w:"1439",h:"809"}},hypatiaCutKeys:{"1x1":"exlarge1to1","4x3":"exlarge4to3","16x9":"exlarge16to9",original:"exlarge16to9"}}},p={upToSmall:{breakpointRule:"(max-width: 479px)",defaultWidth:"480",defaultCutToken:"large-169",ratioSizes:{extraSmall1x1:{w:"128",h:"128"},small1x1:{w:"256",h:"256"},"1x1":{w:"479",h:"479"},small2x3:{w:"256",h:"384"},small3x2:{w:"384",h:"256"},"2x3":{w:"320",h:"479"},"3x2":{w:"480",h:"320"},"3x4":{w:"360",h:"480"},small4x3:{w:"256",h:"192"},"4x3":{w:"480",h:"360"},small16x9:{w:"256",h:"144"},medium16x9:{w:"480",h:"270"},large16x9:{w:"480",h:"270"},"16x9":{w:"480",h:"270"},original:{w:"480"}},hypatiaCutKeys:{"1x1":"largeto1","4x3":"large4to3","16x9":"large16to9",original:"large16to9"}},mobile:{breakpointRule:"(min-width: 480px)",defaultWidth:"480",defaultCutToken:"large-169",ratioSizes:{extraSmall1x1:{w:"128",h:"128"},small1x1:{w:"256",h:"256"},"1x1":{w:"480",h:"480"},small2x3:{w:"256",h:"384"},small3x2:{w:"384",h:"256"},"2x3":{w:"320",h:"480"},"3x2":{w:"800",h:"533"},"3x4":{w:"360",h:"480"},small4x3:{w:"256",h:"192"},"4x3":{w:"480",h:"360"},small16x9:{w:"256",h:"144"},medium16x9:{w:"480",h:"270"},large16x9:{w:"480",h:"270"},"16x9":{w:"480",h:"270"},original:{w:"480"},max16x9:{w:"959",h:"539"}},hypatiaCutKeys:{"1x1":"largeto1","4x3":"large4to3","16x9":"large16to9",original:"large16to9"}},tablet:{breakpointRule:"(min-width: 960px)",defaultWidth:"960",defaultCutToken:"exlarge-169",ratioSizes:{extraSmall1x1:{w:"128",h:"128"},small1x1:{w:"256",h:"256"},"1x1":{w:"960",h:"960"},small2x3:{w:"256",h:"384"},small3x2:{w:"384",h:"256"},"2x3":{w:"640",h:"960"},"3x2":{w:"960",h:"640"},"3x4":{w:"720",h:"960"},small4x3:{w:"256",h:"192"},"4x3":{w:"960",h:"720"},small16x9:{w:"256",h:"144"},medium16x9:{w:"480",h:"270"},large16x9:{w:"780",h:"438"},"16x9":{w:"960",h:"540"},original:{w:"960"},max16x9:{w:"1279",h:"719"}},hypatiaCutKeys:{"1x1":"exlarge1to1","4x3":"exlarge4to3","16x9":"exlarge16to9",original:"exlarge16to9"}},desktop:{breakpointRule:"(min-width: 1280px)",defaultWidth:"1280",defaultCutToken:"exlarge-169",ratioSizes:{extraSmall1x1:{w:"128",h:"128"},small1x1:{w:"256",h:"256"},"1x1":{w:"1280",h:"1280"},small2x3:{w:"256",h:"384"},small3x2:{w:"384",h:"256"},"2x3":{w:"853",h:"1280"},"3x2":{w:"1280",h:"853"},"3x4":{w:"960",h:"1280"},small4x3:{w:"256",h:"192"},"4x3":{w:"1280",h:"960"},medium9x16:{w:"270",h:"480"},small16x9:{w:"256",h:"144"},medium16x9:{w:"480",h:"270"},large16x9:{w:"780",h:"438"},"16x9":{w:"1280",h:"720"},original:{w:"1280"},max16x9:{w:"1439",h:"809"}},hypatiaCutKeys:{"1x1":"exlarge1to1","4x3":"exlarge4to3","16x9":"exlarge16to9",original:"exlarge16to9"}}},g=p,f={upToSmall:"16x9",mobile:"16x9",tablet:"16x9",desktop:"16x9"};function $(e,t,a=!1){return e&&t?h(e,{pageVariant:"article_elevate_medium"},a):e||""}let _=(e,...t)=>t.reduce(r,e);function S(e){let{image:t}=e,a=_(i(t,"fixedHeight"),e.fixedHeight),l=_(i(t,"fixedWidth"),e.fixedWidth),r=_(i(t,"rawQuery"),e.rawQuery),o={};return void 0!==a&&(o.h=a),void 0!==l&&(o.w=l),void 0!==r&&(o.rawQuery=r),o}function C(e){e?(g=w,f.xlDesktop="16x9"):(g=p,delete f.xlDesktop)}function v(e,t,a=null,{fixedRatio:i=null,overrides:l,extraCropCommands:r}={}){!a&&(a="mobile",i&&(a="desktop")),e.cropRatio&&e.breakpointCropRatios&&(e.cropRatio=e.breakpointCropRatios[a]);let o=i||t[a];return b(e,a,o,l,r)}function y(e,t,a,l,r=!1,{fixedRatio:o=null,overrides:s,extraCropCommands:h,hasCustomRatios:d,cropRatio:m},u=!1,w=!1){let p="",f="",$=!o||m&&d,_=l?"f_avif":"f_webp",S=l?"image/avif":"image/webp",C=i(e,"url")||i(e,"uri"),b="string"==typeof C&&c.test(C),k=!b&&x(e)&&n.get("FORCE_WEBP_IMAGES"),R=k&&!$&&"string"==typeof h;if(C){let i=v(e,t,o?void 0:"desktop",{fixedRatio:o,overrides:s,extraCropCommands:h,hasCustomRatios:d}),n=[],x=[];if($){if(k&&"string"==typeof h){let e;h=(e=h)?e.concat(`,${_}`):_}Object.entries(V(t)).reverse().forEach(([a])=>{let i=v(e,t,a,{extraCropCommands:h,hasCustomRatios:d}),l={w:null,h:null},r=e.isElevated&&e.extraCropCommands?e.extraCropCommands[a]:h;if(r.includes("w_")||r.includes("h_")){let e=[...r.matchAll(/w_([^,]*)/g)],t=[...r.matchAll(/h_([^,]*)/g)];l.w=e[e.length-1]?.[1],l.h=t[t.length-1]?.[1]}else l=m&&d?e.customRatios[a]:"original"===t[a]||d?{w:e.originalWidth,h:e.originalHeight}:g[a].ratioSizes[t[a]];let o=i,s=null,c=null;if(w&&l.w&&l.h){let r=String(2*parseInt(l.w,10)),n=String(2*parseInt(l.h,10)),m=String(3*parseInt(l.w,10)),x=String(3*parseInt(l.h,10));s=v(e,t,a,{extraCropCommands:h,hasCustomRatios:d,overrides:{w:r,h:n}}),c=v(e,t,a,{extraCropCommands:h,hasCustomRatios:d,overrides:{w:m,h:x}}),o=`${i} 1x, ${s} 2x, ${c} 3x`}let f=g[a]?.breakpointRule,$={height:l?.h,width:l?.w,media:f,srcset:o};k&&"string"==typeof h&&($.type=S);let _=Object.entries($).map(([e,t])=>`${e}='${t}'`).join(" ");u&&(n.push(`--image-${a}-url:url("${i}");`),x.push(`--image-${a}-url`),s&&(n.push(`--image-${a}-url-2x:url("${s}");`),x.push(`--image-${a}-url-2x`)),c&&(n.push(`--image-${a}-url-3x:url("${c}");`),x.push(`--image-${a}-url-3x`))),p+=``})}if(R){let a;let i=v(e,t,void 0,{fixedRatio:o,overrides:s,extraCropCommands:(a=h)?a.concat(",f_webp"):"f_webp",hasCustomRatios:d});p+=``}let c=e?.metadata?.alt||e?.metadata?.caption||e.name||"",C=`${e.componentVariation}__dam-img--loading`,y={src:i,alt:c,class:l?`${e.componentVariation}__dam-img`:`${e.componentVariation}__dam-img ${C}`,onload:`this.classList.remove('${C}')`,onerror:"imageLoadError(this)"};o?(y.height=e.originalHeight?.toString()||g.mobile.ratioSizes[t.mobile]?.h?.toString(),y.width=e.originalWidth?.toString()||g.mobile.ratioSizes[t.mobile]?.w?.toString()):(y.height=e.originalHeight?.toString()||g.desktop.ratioSizes[t.desktop]?.h?.toString(),y.width=e.originalWidth?.toString()||g.desktop.ratioSizes[t.desktop]?.w?.toString()),a&&(y.loading="lazy"),!r||b||R||/f_(webp|avif)$/.test(y.src)||(k?y.src=`${y.src}/f_webp`:y.src=`${y.src}/f_avif`),l&&(delete y.onerror,delete y.onload,delete y.loading,y.fetchpriority="high"),n.length>0&&(y.style=n.join(" "),y["data-img-css-vars"]=x.join(","));let E=Object.entries({src:i,...y}).map(([e,t])=>`${e}='${t?.replace(/'/g,"'")}'`).join(" ");f+=``}return`${p}${f}`}function b(e,t,a,i={},r=[]){let n=!!e.customRatios;if(e.damType===d.HYPATIA)return k(e,t,a);if(e.damType===d.CLOUDINARY){if("original"===a||n){let a=i.w||g[t].defaultWidth;return R(e.url,"",a)}{let{h:l,w:r}={...g[t].ratioSizes[a],...i};return R(e.url,l,r)}}if(e.damType!==d.STELLAR)return e.url;{let s=function(e){if(e&&"string"==typeof e){for(let t of["mini","small","medium","large","exlarge"])if(e.includes(t))return e.replace(t,"")}return e}(a),h=n?a:{...g[t].ratioSizes[a],...i};if(e.isElevated&&e.extraCropCommands){let e=r[t];if(e.includes("w_")||e.includes("h_")){let t=[...e.matchAll(/w_([^,]*)/g)],a=[...e.matchAll(/h_([^,]*)/g)],i=t[t.length-1]?.[1],l=a[a.length-1]?.[1];h.w=i||h.w,h.h=l||h.h}}return function(e,t,a,i=null,r){let n=e.isElevated&&e.extraCropCommands?e.extraCropCommands[t]:r;if(e.isElevated&&e.extraCropCommands){let a=new URL(e.url),i=e.breakpointCropRatios[t];i&&(a.searchParams.set("c",i),e.url=a.toString())}return o.buildUrl(e,{ratio:e.cropRatio||a,ratioSize:i||g[t].ratioSizes[a],extraCropCommands:"string"==typeof n?l(n.split(",")):n})}(e,t,s,h,r)}}function k(e,t,a){let l=g[t].hypatiaCutKeys[a],r={};return i(e,"cuts")&&(r=e.cuts.find(e=>e.key===l)||e.cuts.sort(function(e,t){let a=e.width*e.height;return t.width*t.height-a}).find(e=>e.ratio===a)),i(r,"url",e.url)}function R(e,t,a){if(!e)return"";let i=["/upload/","/fetch/"],l=["c_fill","f_auto"];return t&&l.push(`h_${t}`),a&&l.push(`w_${a}`),i.find(t=>e.includes(t))||(e.startsWith("http")||(e=`https:${e}`),e=`https://res.cloudinary.com/coredev-test/image/fetch/${encodeURIComponent(e)}`),i.reduce((e,t)=>e.replace(t,`${t}${l.join(",")}/`),e)}function E({config:e,content:t}){let{componentVariation:a,isElevated:i}=e,{titleDiv:l,imageCaption:r,inlineCreditFig:o}=t;return` ${l||""} ${r||""} ${o||""} `}function V(e){return Object.keys(g).reduce((t,a)=>(Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]),t),{})}t.renderImage=function({hash:e,data:t}){let{image:a}=e,i=e.isElevated||a.isElevated||!1;C(i),a.componentVariation=_(e.componentVariationOverride,a.componentVariation,"image");let l=!!a.customRatios,r=function(e){function t(e){let t="/media/sites/cnn/cnn-fallback-image.jpg";e.removeAttribute("onerror"),e.src=t;let a=e.previousElementSibling;for(;a&&"SOURCE"===a.tagName;)a.srcset=t,a.removeAttribute("type"),a=a.previousElementSibling;e.dataset.imgCssVars?.split(",").forEach(t=>{e.style.removeProperty(t)})}return!e.locals||e.locals.edit||e.locals._imageErrorHandlerAdded?("object"!=typeof window||window.imageLoadError||(window.imageLoadError=t),""):(e.locals._imageErrorHandlerAdded=!0,""+t.toString()+"")}(t.root),o=_(a.ratios,e.ratios,a.customRatios,f),n=_(e.includeImgCssVars,!1),h=_(e.enableHighRes,!1),d=_(a.lazy,e.lazy,!1),m=_(a.caption,e.caption,!0),x=_(a.location,e.location,!1),c=_(a.credit,e.credit,!0),w=_(a.class,e.class,""),p=_(a.title,e.title,!0),b=e.fixedRatio||null,k=e.cropRatio||null,R=e.isLink||void 0,V=e.isLede||!1,A=e.forceToAVIF||!1,T=_(a.extraCropCommands,e.extraCropCommands,""),z=_(a.renderOnlyImg,e.renderOnlyImg,!1),I=_(a.allowPlaceholderRender,e.allowPlaceholderRender,!0),L=_(a.renderInlineCaption,e.renderInlineCaption,!1),O=S(e),W=y(a,o,d,V,A,{fixedRatio:b,overrides:O,extraCropCommands:T,hasCustomRatios:l,cropRatio:k},n,h),j=_(e.alt,a?.metadata?.alt,""),H=e.displayCreditInline||!1,P="";return z?(I||!(a.url.includes(u)||a.uri.includes(u)))&&(P=function(e,t,a,i,{fixedRatio:l=null,overrides:r,extraCropCommands:o,hasCustomRatios:n}){let s=v(e,a,void 0,{fixedRatio:l,overrides:r,extraCropCommands:o,hasCustomRatios:n}),h={w:null,h:null};if(o){let e=[...s.matchAll(/w_([^,]*)/g)],t=[...s.matchAll(/h_([^,]*)/g)];h.w=e[e.length-1]?.[1],h.h=t[t.length-1]?.[1]}else if("original"===l||n)h.w=e.width,h.h=e.height;else{let e=g.mobile.ratioSizes[a.mobile];h.w=e.w,h.h=e.h}return``}(a,w,o,j,{fixedRatio:b,overrides:O,extraCropCommands:T,hasCustomRatios:l})):P=` ${W}${L?E({config:{componentVariation:a.componentVariation,isElevated:i},content:{imageCaption:s(a.metadata.caption)}}):""} ${a.afterMediaHtml?a.afterMediaHtml:""} ${function({image:e,caption:t,credit:a,title:i,displayCreditInline:l,isLink:r,isElevated:o,location:n}){let{componentVariation:h,metadata:d={}}=e,m="",x="",u="",c="",w=r?s(d.caption):d.caption,p=s(d.credit||"");i&&d.title&&(x=`${d.title} — `),a&&d.credit&&(m=`${p}`),n&&(c=` ${d.location||""} ${t&&w&&d.location?"—":""} `);let g=l?`${m}`:"";return(t&&(u=E({config:{componentVariation:h,isElevated:o},content:{titleDiv:x,imageCaption:w,inlineCreditFig:g}})),u||m||c)?o?` ${c} ${u} ${l?"":m} `:` ${c} ${u} ${l?"":m} `:` `}({image:a,caption:m,credit:c,title:p,displayCreditInline:H,isLink:R,isElevated:i,renderOuterCaption:!L,location:x})} `,V?P:`${r}${P}`},t.getImageUrl=function({hash:e}){let{image:t,ratios:a,viewport:i,fixedRatio:l,extraCropCommands:r=""}=e;if(t&&(t.url||t.uri))return v(t,a||f,i,{fixedRatio:l,overrides:S(e),extraCropCommands:r})},t.responsiveImage=function({hash:e}){let{image:t,ratios:a=t.ratios,lazy:i=!0,fixedRatio:l=null,extraCropCommands:r="",isLede:o=!1,forceToAVIF:n=!1,includeImgCssVars:s=!1,enableHighRes:h=!1}=e,d=S(e);return`${y(t,a||f,i,o,n,{fixedRatio:l,overrides:d,extraCropCommands:r},s,h)}`},t.responsiveSourceSet=function(e){return C(e.isElevated||!1),`${function(e,t){let a="",i=new Set;return e&&(e.uri||e.url)&&Object.entries(V(t)).reverse().forEach(([t,l])=>{let r=g[t].ratioSizes["1x1"].w;i.has(r)||(a+=`${b(e,t,l)} ${g[t].ratioSizes["1x1"].w}w,`,i.add(r))}),a}(e,f)}`},t.create=function({url:e,uri:t,alt:a="",credit:i="",damType:l="cloudinary"}){let r={url:e,damType:l,componentVariation:"image",cuts:[],crops:[],metadata:{alt:a,caption:"",source:"",credit:i,dateCreated:""}};return t&&(r._ref=t),r},t.generateCloudinaryUrl=R,t.generateSourceByDAM=b,t.titleDataFallback=function(e){return e.slug||e.name||e.title||e.filename},t._getHypatiaCutUrl=k,t._getElevatedVariation=$,t._orderImageRatios=V,t.CROP_RATIOS=["original","16x9","16x5","4x3","3x2","1x1","2x3","3x4","9x16"],t.DAM_TYPES=d}}]); /* window.modules["387"] */ (self.modules=self.modules||[]).push([["387"],{387:t=>{var e,r,n,o=t.exports={};function i(){throw Error("setTimeout has not been defined")}function u(){throw Error("clearTimeout has not been defined")}function c(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(t){r=u}}();var s=[],l=!1,f=-1;function a(){l&&n&&(l=!1,n.length?s=n.concat(s):f=-1,s.length&&h())}function h(){if(!l){var t=c(a);l=!0;for(var e=s.length;e;){for(n=s,s=[];++f1)for(var r=1;r{e.exports={getAdfuelSrc:(e="head")=>{let i;return(i=window.CNN.helpers.isArabicPage()?window.env.ADFUEL_ARABIC_SRC:window.CNN.helpers.isEspanolPage()?window.env.ADFUEL_ESPANOL_SRC:window.CNN.helpers.isSection(window.CNN.helpers.SECTIONS.BUSINESS)?window.CNN.helpers.isEditionPage()?window.env.ADFUEL_BUSINESS_EDITION_SRC:window.env.ADFUEL_BUSINESS_SRC:window.CNN.helpers.isEditionPage()?window.env.ADFUEL_CNN_EDITION_SRC:window.env.ADFUEL_CNN_SRC)?i.find(i=>{switch(e){case"head":return!i.includes("-body")&&!i.includes("-lite");case"body":return i.includes("-body");case"lite":return i.includes("-lite");default:return!1}})||"":(console.error("Could not determine AdFuel script src, please check build"),"")}}}}]); /* window.modules["402"] */ "use strict";(self.modules=self.modules||[]).push([["402"],{402:(e,t,s)=>{let r=["file:","ftp:","http:","https:","ws:","wss:"],o=()=>"undefined"!=typeof window?window.location||{}:void 0!==s.g&&s.g.location||{};e.exports=function(e,t=o()){let s=e=>["80","443"].includes(e)||!e,a=({username:e,password:t})=>{let s=`${e}${t?`:${t}`:""}`;return s?`${s}@`:""},h=({protocol:e})=>e?`${e}//`:"",n=e=>`${e||""}`,p={hash:t.hash||"",hostname:t.hostname||"",origin:t.origin||"",password:t.password||"",port:t.port||"",protocol:t.protocol||"",search:t.search||"",slashes:!1,username:t.username||""},l={get hash(){return p.hash},set hash(value){p.hash=n(value)},get host(){return`${p.hostname}${s(p.port)?"":`:${p.port}`}`},set host(value){let[e,t]=n(value).split(":");l.hostname=e,l.port=t??""},get hostname(){return p.hostname},set hostname(value){p.hostname=n(value)},get href(){let{host:e,pathname:t,search:s,hash:r}=l;return`${h(l)}${a(l)}${e}${e&&t&&!t.startsWith("/")?"/":""}${t}${s}${r}`},get password(){return p.password},set password(value){p.password=n(value)},get pathname(){return p.pathname},set pathname(value){p.pathname=n(value)},get port(){return p.port},set port(value){p.port=n(value)},get protocol(){return p.protocol},set protocol(value){let e=n(value).trim().replace(/:?$/,":");p.protocol=":"===e?"":e},get search(){return p.search},set search(value){p.search=n(value)},get slashes(){return p.slashes},set slashes(value){p.slashes=!!value},get username(){return p.username},set username(value){p.username=n(value)},set(e,t){l[e]=t},toString:()=>l.href};try{let t=e.startsWith("//")?new URL(e,p.origin):new URL(e);l.hostname=decodeURIComponent(t.hostname),l.pathname=decodeURIComponent(t.pathname),["hash","password","port","protocol","search","username"].forEach(e=>l.set(e,t[e])),l.slashes=t.href.replace(t.protocol,"").startsWith("/")}catch(t){l.pathname=e}return r.includes(l.protocol)&&"/"!==l.pathname.charAt(0)&&(l.pathname=`/${l.pathname}`),l}}}]); /* window.modules["404"] */ "use strict";(self.modules=self.modules||[]).push([["404"],{404:(e,t,i)=>{let{getComponentName:n,replaceVersion:l}=i("127"),r=i("376"),{create:a}=i("386"),{has:o}=i("13"),s=i("44"),c=i("505"),{getSite:d}=i("131"),u=i("260"),p=["type-custom","type-custom-video"],f={CURATED:"curated",MANUAL:"manual",FILL:"fill"},_={livestream:"type-live-video","live-story":"type-updates","vertical-livestream":"type-live-video","vertical-video":"type-video"},g={"type-audio":"Audio","type-bleacher-report":"B/R","type-breaking":"Breaking News","type-exclusive":"CNN Exclusive","type-fact-check":"Fact Check","type-investigates":"CNN Investigates","type-underscored":"CNN Underscored","type-updates":"Live Updates","type-updates-in-spanish":"Actualizaciones en Vivo","type-opinion":"Opinion","type-analysis":"Analysis","type-video":"Video","type-gallery":"Gallery","type-podcasts":"Podcast","type-poll":"CNN Poll","type-live-video":"Live","type-trending":"Trending","type-review":"Review","type-streaming-non-breaking":"Streaming Now","type-projection-non-breaking":"CNN Projection","type-projection-breaking":"CNN Projection","type-quiz":"Quiz","type-kfile":"KFILE","type-first":"First on CNN","type-for-subscribers":"For Subscribers","z-cnn":"CNN","z-cnnbrk":"CNNBRK","z-cnnbrk_separator":"CNNBRK_SEPARATOR","z-just_in":"JUST_IN","z-exclusive":"EXCLUSIVE","z-developing_story":"DEVELOPING_STORY","z-happening_now":"HAPPENING_NOW","z-new_this_hour":"NEW_THIS_HOUR","type-radio-argentina":"RADIO ARGENTINA"};function y(e,t){let i=d(t)||"cnn",l=null===e.label;if(e.label||l||!_[e.pageType]?e.label||l||!e.subscriptionContent?e.labelText="":e.label="type-for-subscribers":e.label=_[e.pageType],e.label)p.includes(e.label)?e.labelText=e.customLabel:e.labelText=u(i,g[e.label])||"";else if(!l){if(g[`type-${e.pageType}`])e.label=`type-${e.pageType}`,e.labelText=u(i,g[e.label])||"";else if(e.section&&g[`type-${e.section}`])e.label=`type-${e.section}`,e.labelText=u(i,g[`type-${e.section}`]);else if(e.article&&e.article.uri){let t=`type-${n(e.article.uri)}`;g[t]&&(e.label=t,e.labelText=u(i,g[t]))}}}let m=(e={},t,i="")=>(e._ref||(e={...a({url:"",damType:""}),...e,_ref:`${t}/_components/image/instances/${c()}`}),e.componentVariation="image",e._ref=l(e._ref,i),r(e,["__fields","_sizeToken","_wedgerId","_wedgerUri","_wedgerComponent","_wedgerLegacyCmsId","_wedgerLastModifiedDate"]));function v(e,t){return e?.length&&t?.length?e.map(e=>t.findIndex(t=>t?._ref===e)).filter(e=>-1!==e):[]}e.exports={DEFAULT_CARD_VERSION:"1.3",CUSTOM_TEXT_LABELS:p,CARD_TYPES:f,PAGE_TYPE_LABEL_OVERRIDES:_,setLabel:y,createCard:function({_version:e="1.3",uri:t,url:i,urlPath:n,headline:a,description:o,pageType:s,authors:d,lastPublished:u,firstPublished:p,label:_,image:g,videoResource:v,loop:b,mediaPicker:h,type:N,wordCount:R,readTimeTextDefault:C,readTimeTextAlt:I,section:T,subsection:w,showThumbnail:$,subscriptionContent:A,disablePaywall:L,durationLabel:M,videoResourceParentUri:S,selectedMedia:k,selectedMediaIndices:z,intent:E,productMetadata:P},U,x,O="",D=c()){let F=m(g,U,O),B="livestream"===s||"videoResource"===h||"fill"===N&&"vertical-video"===s?function(e,t,i={}){return e?{...r(e,["__fields","_version","_wedgerComponent","_wedgerId","_wedgerLastModifiedDate","_wedgerLegacyCmsId","_wedgerUri","_wedgerUrl","autoplay","durationISO","firstPublished","lastPublished","show","socialShare","sourceUrl","tags","theme"]),thumbnail:[m(e.thumbnail[0],t)],...i}:null}(v,U,{fill:!0,autostart:"unmuted",inPlaylist:!1}):null,V="loop"===h?function(e,t,i=""){if(!e)return null;let n={...e,_ref:e._ref||`${t}/_components/interactive-video/instances/${c()}`};return n._ref=l(n._ref,i),n}(b,U,O):null,j={_version:e,url:i,urlPath:n,headline:a,description:o,showThumbnail:$,type:N,uri:t,image:[F],videoResource:B?[B]:[],loop:V?[V]:[],videoDuration:v?.duration,mediaPicker:B&&h||V&&h||"image",pageType:s,label:_||"",componentVariation:"card",authors:d,lastPublished:u,firstPublished:p,wordCount:R,readTimeTextDefault:C,readTimeTextAlt:I,section:T,subsection:w,subscriptionContent:A,disablePaywall:L,durationLabel:M,videoResourceParentUri:S,selectedMedia:k,selectedMediaIndices:z,intent:E||"auto",productMetadata:P};return j._ref=l(`${U}/_components/card/instances/${D}`,O),N===f.FILL?(j.image[0]._ref=l(`${U}/_components/image/instances/card_${D}`,O),j.videoResource?.length&&(j.videoResource[0]._ref=l(`${U}/_components/video-resource/instances/card_${D}`,O),j.videoResource[0].thumbnail[0]._ref=l(`${U}/_components/image/instances/card_video_${D}`,O)),j.loop?.length&&(j.loop[0]._ref=l(`${U}/_components/interactive-video/instances/card_${D}`,O)),"videoResource"===h&&j.videoResource?.length?j.selectedMedia=[j.videoResource[0]._ref]:"loop"===h&&j.loop?.length?j.selectedMedia=[j.loop[0]._ref]:j.selectedMedia=[j.image[0]?._ref]):k&&k?.length||(j.selectedMedia=j.image[0]._ref?[j.image[0]._ref]:[]),y(j,x),j},sanitizeInputs:function(e,t){o(e.headline)&&(e.headline=s.toSmartHeadline(e.headline,t))},normalizeByline:function(e){e.byline=Array.isArray(e.byline)?e.byline:[]},calculateSelectedMedia:function(e,t,i){let n=i,l=[];if(n)l=v(n,e.pageContent?.[t]);else{if("card"===e.pageType){let i=e.pageContent?.[t];n=i?.[0]?._ref?[i[0]._ref]:[]}else n=e.thumbnailRef?[e.thumbnailRef]:[];l=n.length?[0]:[]}return{selectedMedia:n,selectedMediaIndices:l}},computeSelectedMediaIndices:v,computeSelectedMediaFromIndices:function(e,t){return e?.length&&t?.length?e.map(e=>t[e]?._ref).filter(Boolean):[]},hasStaleSelectedMedia:function(e,t){if(!e?.length)return!1;if(!t?.length)return!0;let i=t.map(e=>e?._ref).filter(Boolean);return!e.some(e=>i.includes(e))},getSelectedMedia:function(e,t,i){if(e.selectedMedia&&e.selectedMedia.length>0){let n=e[t]?.find(t=>e.selectedMedia.includes(t._ref));if(n)return["v1","v2"].includes(i)&&"image"===t?[n]:n}switch(i){case"v3":case"v4":if(e.selectedMedia&&0===e.selectedMedia.length)return null;return(e[t]??[])[0]??null;case"ott":return(e[t]??[])[0]??{};default:switch(t){case"loop":case"videoResource":return(e[t]??[])[0]??null;default:return[]}}},resolveIntent:function(e){return e.intent&&"auto"!==e.intent?e.intent:"videoResource"===e.mediaPicker?"play-inline":"link"}}}}]); /* window.modules["409"] */ "use strict";(self.modules=self.modules||[]).push([["409"],{409:(e,r,t)=>{var s=t("387");let o=t("554"),i=t("113"),u=t("112"),l=t("374"),{prefixElasticIndex:n}=t("430");e.exports=e=>{let r={index:i(s,"versions.node")&&e?n(e):e,body:{}},t=[];return{build:()=>{if(t.length){let e=i(r,"body.query");delete r.body.query,u(r,"body.query.function_score.functions",t),u(r,"body.query.function_score.query",e)}return JSON.parse(JSON.stringify(e?r:r.body.query))},buildCacheCheck(){let e=i(r,"body._source",[]),t=i(r,"body.version",!1);this.include(!1),this.version(!0);let s=this.build();return this.include(e),this.version(t),s},condition(e,t){let s=`body.query.bool.${e}`,l=i(r,s,[]);return o(t)?u(r,s,l.concat(t)):(l.push(t),u(r,s,l)),this},nestedCondition(e,t,s){let o=`body.query.bool.${t}`,l=i(r,o,[]);return l.push({nested:{path:e,query:s}}),u(r,o,l),this},include:e=>{u(r,"body._source",e)},version:e=>{u(r,"body.version",e)},minimumShould:e=>{u(r,"body.query.bool.minimum_should_match",e)},sort(e,t="desc"){let s="body.sort",l=i(r,s);return o(l)||u(r,s,l=[]),l.push({[e]:t}),this},size(e){return u(r,"body.size",parseInt(e)),this},collapse:e=>{u(r,"body.collapse",{field:e})},from:e=>{u(r,"body.from",parseInt(e))},search:(e,t,s="query_string",i={escapeterm:!0})=>{let l;l=i.escapeterm?e.replace(/^https?:\/\//,"").replace(/\\/g,"\\\\").replace(/([\/|:])/g,"\\$1"):e,delete i.escapeterm,u(r,"body.query",{[s]:{query:l,fields:o(t)?t:[t],...i}})},score:(e,r,s="linear",o="365d",i=.1)=>{t.push({[s]:{[e]:{origin:r,scale:o,decay:i}}})}}},e.exports.CONDITION={SHOULD:"should",MUST:"must",MUST_NOT:"must_not",FILTER:"filter"},e.exports.match=(e,r,t=!0)=>({[t?"match_phrase":"match"]:{[e]:r}}),e.exports.range=(e,r)=>({range:{[e]:r}}),e.exports.exists=e=>({exists:{field:e}}),e.exports.terms=(e,r)=>({terms:{[e]:r}}),e.exports.term=(e,r)=>({term:{[e]:r}}),e.exports.queryString=(e,r)=>({query_string:{query:e.replace(/^https?:\/\//,"").replace(/\\/g,"\\\\").replace(/([/|:])/g,"\\$1"),fields:o(r)?r:[r]}}),e.exports.ids=e=>({ids:{values:e}}),e.exports.formatElasticSearchResponse=({hits:e={}})=>l(i(e,"hits"),"_source"),e.exports.multiMatch=(e,r)=>({multi_match:{query:e,fields:o(r)?r:[r],type:"phrase"}}),e.exports.matchAll=()=>({match_all:{}})}}]); /* window.modules["411"] */ "use strict";(self.modules=self.modules||[]).push([["411"],{411:(e,r,t)=>{let{SITES:a}=t("131");e.exports={getSelectedMedia:function(e){if(!e)return[];let r=e=>"string"==typeof e?e.replace(/@published$/,""):"";if(!e.selectedMedia)return e[e.mediaPicker]||[];if(!(e.selectedMedia.length>0))return[];{let t=new Set(e.selectedMedia),a=new Set(e.selectedMedia.map(r)),i=[];return["image","videoResource","loop"].forEach(n=>{Array.isArray(e[n])&&e[n].forEach(e=>{e._ref&&(t.has(e._ref)||a.has(r(e._ref)))&&i.push(e)})}),i}},formatAuthorMetadata:function(e,r,t,a,i){if(!new Set(["container_lead-package","container_lead-plus-headlines","container_lead-plus-headlines-with-images","container_vertical-strip","container_vertical-strip-3x4","container_vertical-strip-original-ratio"]).has(e)||!r||!r[0]||"live-story"===a||"vertical-video"===i||"vertical-video"===a||"type-analysis"!==t)return"";let n=r.length>1?"by multiple CNN reporters":`by ${r[0].text||r[0]}`;return`${n}`},getCardHeadline:function(e,r,t){return e===a.arabic&&t?t:r},applyCardVideoOverrides:function(e,r){return r?.videoOverrides?{...e,...r.videoOverrides}:e}}}}]); /* window.modules["412"] */ "use strict";(self.modules=self.modules||[]).push([["412"],{412:function(e,t,n){var r;!function(a){if("function"!=typeof f){var f=function(e){return e};f.nonNative=!0}let o=f("plaintext"),i=f("html"),u=f("comment"),c=//g,l=/]+)/;function s(e,t,n){return h(e=e||"",b(t=t||[],n=n||""))}function b(e,t){return{allowable_tags:e=function(e){let t=new Set;if("string"==typeof e){let n;for(;n=c.exec(e);)t.add(n[1])}else f.nonNative||"function"!=typeof e[f.iterator]?"function"==typeof e.forEach&&e.forEach(t.add,t):t=new Set(e);return t}(e),tag_replacement:t,state:o,tag_buffer:"",depth:0,in_quote_char:""}}function h(e,t){if("string"!=typeof e)throw TypeError("'html' parameter must be a string");let n=t.allowable_tags,r=t.tag_replacement,a=t.state,f=t.tag_buffer,c=t.depth,s=t.in_quote_char,b="";for(let t=0,h=e.length;t":if(s)break;if(c){c--;break}s="",a=o,f+=">",n.has(function(e){let t=l.exec(e);return t?t[1].toLowerCase():null}(f))?b+=f:b+=r,f="";break;case'"':case"'":s=h===s?"":s||h,f+=h;break;case"-":""===h?("--"==f.slice(-2)&&(a=o),f=""):f+=h)}return t.state=a,t.tag_buffer=f,t.depth=c,t.in_quote_char=s,b}s.init_streaming_mode=function(e,t){let n=b(e=e||[],t=t||"");return function(e){return h(e||"",n)}},void 0!==(r=(function(){return s}).call(t,n,t,e))&&(e.exports=r)}(0)}}]); /* window.modules["420"] */ "use strict";(self.modules=self.modules||[]).push([["420"],{420:(e,a,i)=>{let l=i("113"),o=["type-video","type-custom-video","type-live-video","type-streaming-non-breaking","type-audio","type-podcasts","type-gallery"],t={container:{showMedia:"first",imageRatios:{upToSmall:"medium16x9",mobile:"medium16x9",tablet:"large16x9",desktop:"large16x9"},slideImageRatios:{upToSmall:"2x3"},showDescription:!1,showReadTime:!1,showDate:!1,showKicker:!1,cardsRequired:!0,showLabel:["media","textIcon"]},"container_bulleted-headlines":{showMedia:"none",showLabel:["text","textIcon"]},container_card:{showMedia:"all",imageRatios:{upToSmall:"medium16x9",mobile:"medium16x9",tablet:"large16x9",desktop:"large16x9"},showDescription:!0},"container_lead-package":{showLabel:["media","textIcon","text"],showMedia:"all",includeImgCssVars:!0,enableHighRes:!0,allowVisualCueMediaLabels:o,imageRatios:{upToSmall:"small1x1",mobile:"small1x1",tablet:"small3x2",desktop:"small2x3"},imageRatioOverride:[{position:0,ratios:{upToSmall:"medium16x9",mobile:"medium16x9",tablet:"16x9",desktop:"16x9"}}]},"container_spotlight-package":{showLabel:["media","textIcon","text"],showMedia:"first",showDescription:!0,includeImgCssVars:!0,enableHighRes:!0,allowVisualCueMediaLabels:o,imageRatios:{upToSmall:"2x3",mobile:"3x2",tablet:"16x9",desktop:"16x9"},listTagType:"single"},"container_hero-card":{showMedia:"all",imageRatios:{upToSmall:"medium16x9",mobile:"medium16x9",tablet:"16x9",desktop:"16x9"},showDescription:!0},"container_super-hero":{showMedia:"first",showDescription:!0,listTagType:"single"},"container_streaming-showcase":{showMedia:"all",allowVisualCueMediaLabels:o,imageRatios:{upToSmall:"medium16x9",mobile:"medium16x9",tablet:"medium16x9",desktop:"medium16x9"},backgroundImageRatios:{upToSmall:"2x3",mobile:"2x3",tablet:"16x9",desktop:"16x9",xlDesktop:"16x9"},showDescription:!1,showKicker:!0,clickPlay:!1},"container_list-headlines-with-images":{showMedia:"all",imageRatios:{upToSmall:"small1x1",mobile:"small1x1",tablet:"small16x9",desktop:"small16x9"},showDate:!0,showLabel:["mediaIcon","text"]},"container_list-headlines-with-read-times":{showMedia:"all",imageRatios:{upToSmall:"small16x9",mobile:"small16x9",tablet:"small16x9",desktop:"small16x9"},showDate:!0,showReadTime:!0,showLabel:["mediaIcon","text"]},"container_list-with-small-images":{showMedia:"all",imageRatios:{upToSmall:"1x1",mobile:"1x1",tablet:"1x1",desktop:"1x1"},showDescription:!0,showDate:!0},"container_list-with-images":{showMedia:"all",imageRatios:{upToSmall:"medium16x9",mobile:"medium16x9",tablet:"medium16x9",desktop:"medium16x9"},showDescription:!0,showDate:!0},"container_list-images-with-description":{showMedia:"all",imageRatios:{upToSmall:"small16x9",mobile:"small16x9",tablet:"medium16x9",desktop:"16x9"},showDate:!0,showDescription:!0,showLabel:["text","textIcon","media"]},"container_vertical-shelf-carousel":{showMedia:"all",showLabel:["text","textIcon","media"],includeImgCssVars:!0,imageRatios:{desktop:"medium9x16"},showDescription:!1,showKicker:!0},"container_vertical-strip-original-ratio":{showMedia:"all",imageRatios:{upToSmall:{w:"447"},mobile:{w:"927"},tablet:{w:"600"},desktop:{w:"700"}},customRatios:{upToSmall:{w:"447"},mobile:{w:"927"},tablet:{w:"600"},desktop:{w:"700"}},showDescription:!0,cropRatio:"original"},"container_vertical-strip-3x4":{showMedia:"all",imageRatios:{upToSmall:"3x4",mobile:"3x4",tablet:"3x4",desktop:"3x4"},showDescription:!0,cropRatio:"3x4"},"container_vertical-strip":{showMedia:"all",enableHighRes:!0,allowVisualCueMediaLabels:o},"container_feature-cards":{showMedia:"all",imageRatios:{upToSmall:"medium16x9",mobile:"medium16x9",tablet:"16x9",desktop:"16x9"},showKicker:!0,showDescription:!0},"container_feature-grid-3":{showMedia:"all",showKicker:!0},"container_grid-2":{showMedia:"all",showLabel:["text","textIcon","media"],allowVisualCueMediaLabels:o},"container_grid-3":{showMedia:"all",showLabel:["text","textIcon","media"],allowVisualCueMediaLabels:o,imageRatios:{upToSmall:"medium16x9",mobile:"medium16x9",tablet:"medium16x9",desktop:"medium16x9"}},"container_grid-3-with-read-times":{showReadTime:!0,showMedia:"all",showLabel:["text","textIcon","media"],allowVisualCueMediaLabels:o,imageRatios:{upToSmall:"medium16x9",mobile:"medium16x9",tablet:"medium16x9",desktop:"medium16x9"}},"container_grid-3-with-description":{showMedia:"all",showKicker:!0,showDescription:!0},"container_grid-4":{showMedia:"all",showLabel:["text","textIcon","media"],allowVisualCueMediaLabels:o,imageRatios:{upToSmall:"medium16x9",mobile:"medium16x9",tablet:"medium16x9",desktop:"medium16x9"},showKicker:!0},"container_lead-plus-headlines":{showLabel:["media","textIcon","text"],showMedia:"all",includeImgCssVars:!0,enableHighRes:!0,allowVisualCueMediaLabels:o,imageRatios:{upToSmall:"small1x1",mobile:"small1x1",tablet:"small3x2",desktop:"small2x3"},imageRatioOverride:[{position:0,ratios:{upToSmall:"medium16x9",mobile:"medium16x9",tablet:"large16x9",desktop:"large16x9"}}]},"container_lead-plus-headlines-with-images":{showMedia:"all",showLabel:["text","textIcon","media"],includeImgCssVars:!0,enableHighRes:!0,allowVisualCueMediaLabels:o,imageRatios:{upToSmall:"small1x1",mobile:"small1x1",tablet:"small16x9",desktop:"small16x9"},imageRatioOverride:[{position:0,ratios:{upToSmall:"medium16x9",mobile:"medium16x9",tablet:"large16x9",desktop:"large16x9"}}]},container_ribbon:{showMedia:"none",showLabel:["text","textIcon"]},"container_ribbon-left":{showMedia:"none",showLabel:["text","textIcon"]},"container_headline-carousel":{showMedia:"none",showLabel:["text","textIcon"]},"container_app-sliver":{showMedia:"all",imageRatios:{upToSmall:"small16x9",mobile:"small16x9",tablet:"small16x9",desktop:"small16x9"}},"container_app-full":{showMedia:"all"},"container_shelf-carousel-1x1":{showMedia:"all"},"container_list-headlines":{showMedia:"none",showLabel:["text","textIcon"]},"container_feature-list":{showMedia:"all",imageRatios:{upToSmall:"medium16x9",mobile:"medium16x9",tablet:"16x9",desktop:"16x9"},showKicker:!0,showDescription:!0},"container_hero-card-feature":{showMedia:"all",allowVisualCueMediaLabels:o,imageRatios:{upToSmall:"medium16x9",mobile:"medium16x9",tablet:"16x9",desktop:"16x9"},showDescription:!0},"container_shelf-carousel":{showMedia:"all",allowVisualCueMediaLabels:o,imageRatios:{upToSmall:"medium16x9",mobile:"medium16x9",tablet:"medium16x9",desktop:"medium16x9"},showDescription:!1,showKicker:!0,clickPlay:!1},"container_shelf-carousel-tve":{showMedia:"all",imageRatios:{upToSmall:"medium16x9",mobile:"medium16x9",tablet:"medium16x9",desktop:"medium16x9"},showDescription:!0,showKicker:!0,clickPlay:!1},"container_shelf-carousel-tve-media-only":{showMedia:"all",imageRatios:{upToSmall:"medium16x9",mobile:"medium16x9",tablet:"medium16x9",desktop:"medium16x9"},showDescription:!1,showKicker:!1,clickPlay:!1},"container_shelf-carousel-tve-headlines":{showMedia:"all",imageRatios:{upToSmall:"medium16x9",mobile:"medium16x9",tablet:"medium16x9",desktop:"medium16x9"},showDescription:!1,showKicker:!0,clickPlay:!1},"container_dtc-shelf-carousel":{showMedia:"all",imageRatios:{upToSmall:"small16x9",mobile:"small16x9",tablet:"medium16x9",desktop:"medium16x9"},showDescription:!0,showKicker:!0,clickPlay:!0,defaultIntent:"play-main"},"container_list-headlines-ranked":{showMedia:"none",showLabel:["text","textIcon"],listTagType:"ranked"},"container_event-tray":{showMedia:"all",imageRatios:{upToSmall:"extraSmall1x1",mobile:"extraSmall1x1",tablet:"extraSmall1x1",desktop:"extraSmall1x1"},showLabel:["text"],cardsRequired:!1},"container_event-tray-dynamic":{showMedia:"all",imageRatios:{upToSmall:"small1x1",mobile:"medium16x9",tablet:"medium16x9",desktop:"medium16x9"},showLabel:["text"],cardsRequired:!1},"container_live-video-tray":{showMedia:"all",imageRatios:{upToSmall:"medium16x9",mobile:"medium16x9",tablet:"medium16x9",desktop:"medium16x9"},showDate:!1,showLabel:["media"],remapMediaLabels:{matchLabels:["type-updates","type-updates-in-spanish"],displayLabel:"type-live-video",displayLabelText:"Live"},requiredLabelChange:!0},"container_list-short-headlines-ranked":{showMedia:"none",showDescription:!1,cardsRequired:!0,listTagType:"ranked"},"container_side-by-side-package":{showLabel:["textIcon","text"],showMedia:"first",includeImgCssVars:!0,imageRatios:{upToSmall:"1x1",mobile:"16x9"}},"container_side-by-side-feature":{showLabel:["text","media"],showMedia:"first",allowVisualCueMediaLabels:o,imageRatios:{upToSmall:"medium16x9",mobile:"medium16x9",tablet:"16x9",desktop:"16x9"},showDescription:!0,showSlideCardHeadline:!0},"container_ribbon-dtc":{showMedia:"none"},container_storyline:{showLabel:["media","textIcon","text"],showKicker:!0,showMedia:"none",imageRatios:{upToSmall:"medium16x9",mobile:"medium16x9",tablet:"medium16x9",desktop:"medium16x9"}},"container_vertical-tappable":{showMedia:"all",showLabel:[],showDescription:!0,showKicker:!1,cropRatio:"9x16",imageRatios:{upToSmall:{w:"308"},mobile:{w:"308"},tablet:{w:"308"},desktop:{w:"308"}},customRatios:{upToSmall:{w:"308"},mobile:{w:"308"},tablet:{w:"308"},desktop:{w:"308"}}},"container_tve-call-to-action":{showMedia:"none",showLabel:[],showDescription:!1,showKicker:!1,cardsRequired:!0},"container_dynamic-spotlight":{showMedia:"all",showLabel:[],showDescription:!0,showKicker:!1,cropRatio:"2x3",imageRatios:{upToSmall:{w:"308"},mobile:{w:"308"},tablet:{w:"800"},desktop:{w:"800"}},customRatios:{upToSmall:{w:"308"},mobile:{w:"308"},tablet:{w:"800"},desktop:{w:"800"}},videoOverrides:{autostart:"muted",showAds:!1,showAdFeedback:!1}},"container_avatar-carousel":{showMedia:"all",imageRatios:{upToSmall:"small1x1",mobile:"small1x1",tablet:"small1x1",desktop:"small1x1"},imageExtraCropCommands:"c_thumb,g_face,w_100,h_100",showDescription:!1,showLabel:[],cardsRequired:!1}};function s(e,a){let i=e[a];return Array.isArray(i)?i[0]:i}let m=["backgroundImage","backgroundLoop","backgroundVideoResource"],d={single:{list:"div",item:"div"},unranked:{list:"ul",item:"li"},ranked:{list:"ol",item:"li"}};function n(e){return{...t.container,...l(t,e.componentVariation?.toLowerCase(),{})}}function r(e){let a=d[e]?e:"unranked";return d[a].list}function u(e){let a=d[e]?e:"unranked";return d[a].item}e.exports={createContainer:function({_ref:e,ads:a=[],cards:i=[],count:l=0,title:o="",autofill:t={pageTypes:[],conditions:[]},titleUrl:s="",titleStyle:m="",kickerLayout:d="kicker-text",kickerImage:c,lazyLoadImages:x=!1,paginationEnabled:w=!1,componentVariation:h="container_lead-plus-headlines",alternateHeaderTag:p="h2",showComponent:b=!0,recsModel:g="",recsContentTypes:k="",recsSections:M="",source:R,contentRecsCalled:T,tenantId:_="",isFallbackResult:L=!1,subscriberCardMakeUp:S=!1}){let y={_ref:e,ads:a,cards:i,count:l,title:o,autofill:t,titleUrl:s,titleStyle:m,kickerLayout:d,kickerImage:c,lazyLoadImages:x,paginationEnabled:w,componentVariation:h,alternateHeaderTag:p,showComponent:b,recsModel:g,recsContentTypes:k,recsSections:M,source:R,contentRecsCalled:T,tenantId:_,isFallbackResult:L,subscriberCardMakeUp:S};return y.variation=n(y),y.listTag=r(y.variation.listTagType),y.cardTag=u(y.variation.listTagType),y},getVariation:n,applyContainerMediaLabelRemap:function(e,a,i){let l=n({componentVariation:e}),o=l?.remapMediaLabels;return l?.requiredLabelChange&&o?.matchLabels?.includes(a)?{label:o.displayLabel,labelText:o.displayLabelText}:{label:a,labelText:i}},getListTagByType:r,getListItemTagByType:u,getBackgroundMediaItem:s,getStreamingBackgroundField:function(e){let a=e.backgroundMediaPicker||"backgroundImage";return s(e,a)?a:m.find(a=>s(e,a))||a}}}}]); /* window.modules["424"] */ (self.modules=self.modules||[]).push([["424"],{424:e=>{e.exports=function(e){return null===e}}}]); /* window.modules["425"] */ (self.modules=self.modules||[]).push([["425"],{425:(t,o,r)=>{var e=r("2282"),n=r("2340"),c=r("2284"),l=Object.prototype,u=Function.prototype.toString,s=l.hasOwnProperty,a=u.call(Object);t.exports=function(t){if(!c(t)||"[object Object]"!=e(t))return!1;var o=n(t);if(null===o)return!0;var r=s.call(o,"constructor")&&o.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==a}}}]); /* window.modules["430"] */ "use strict";(self.modules=self.modules||[]).push([["430"],{430:(t,e,s)=>{var a=s("387");async function i(t,e,s){let a={results:null,cache:{key:e,miss:!1}},i=await s(t.buildCacheCheck()),l=await r(i);return l!==e&&(a.results=await s(t.build()),a.cache.key=l,a.cache.miss=!0),a}async function r(t){let e="";for(let s of t.hits.hits)e+=s._id+s._version;let s=new TextEncoder().encode(e);return Array.from(new Uint8Array(await globalThis.crypto.subtle.digest("SHA-1",s))).map(t=>t.toString(16).padStart(2,"0")).join("")}t.exports={parseElastic:t=>({data:t.hits?.hits,total:t.hits?.total?.value}),prefixElasticIndex:function(t){let e=a.env.ELASTIC_PREFIX;return e?t.split(",").map(t=>`${e}_${t}`.trim()).join(","):t},searchElasticWithCache:i}}}]); /* window.modules["435"] */ (self.modules=self.modules||[]).push([["435"],{435:(e,s,o)=>{var r=o("2341")(function(e,s,o){return e+(o?"_":"")+s.toLowerCase()});e.exports=r}}]); /* window.modules["439"] */ "use strict";(self.modules=self.modules||[]).push([["439"],{439:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){(0,c.default)(2,arguments);var p=String(t),v=r||{},D=v.locale||n.default,y=D.options&&D.options.firstWeekContainsDate,E=null==y?1:(0,d.default)(y),O=null==v.firstWeekContainsDate?E:(0,d.default)(v.firstWeekContainsDate);if(!(O>=1&&O=0&&b{var l=u("2344");e.exports=function(e,s){return l(e,s)}}}]); /* window.modules["454"] */ (self.modules=self.modules||[]).push([["454"],{454:(s,e,l)=>{var o=l("2345"),u=l("2346")(function(s,e,l){o(s,e,l)});s.exports=u}}]); /* window.modules["505"] */ (self.modules=self.modules||[]).push([["505"],{505:(t,n,e)=>{var r=e("2387"),i=e("2386"),u=e("2388"),s=0;function o(){return i((1679616*u()=7&&n{let o=r("24"),{getUserInfo:n,authClient:i}=r("26"),s=r("16").setup({file:"/index.js"}),{formatLoggingData:a}=r("569"),d="cnn_tid",l=["data-store"],c=()=>{let e=window&&window.WBD&&window.WBD.UserConsent;return!!(e&&e.inUserConsentState(l,{name:"store-tid"}))},w=()=>{try{window.localStorage.getItem(d)&&(window.localStorage.removeItem(d),s("info","Cleared stored TID",{event:"store_tid_cleared"}))}catch(e){throw s("error","Error clearing user TID",a(e)),e}},g=async({force:e=!1}={})=>{if(!o.get("DYNAMIC_CONFIG.cdp_tid_storage_enabled",!1)){s("info","storeTid: feature disabled, no-op");return}try{if(!c()){w(),s("info","storeTid: no storage consent, clearing stored TID");return}if(!i.getToken()){s("info","storeTid: no auth token, leaving existing TID in place");return}let t=window.localStorage.getItem(d);if(t&&!e)return;let{success:r,userInfo:o}=await n(),a=r&&o&&o.tid;a&&a!==t&&window.localStorage.setItem(d,a)}catch(e){throw s("error","Error storing user TID",a(e)),e}};e.exports={storeTid:g,clearStoredTid:w,hasStorageConsent:c,TID_STORAGE_KEY:d}}}]); /* window.modules["527"] */ "use strict";(self.modules=self.modules||[]).push([["527"],{527:(e,t,a)=>{let s=a("24"),l=a("627"),{isLivestory:i}=a("2"),{getRegionFlag:r}=a("72"),n=a("144"),o=a("2366"),y=a("2437"),d=a("2438"),h={allowSubOnlyAccess:!1,subOnlyPageId:""};class c{constructor({expiryDaysCount:e,expiryTime:t,meterMax:a,meterKey:s,overMaxReset:l,subOnlyOverMaxReset:i}){this.key=s,this.wallStatsKey="wallStats",this.resetDateKey="resetDate",this.lastViewedDateKey="lastViewed",this.wallFiredCountKey="wallCount",this.freeAccessDataKey="freeAccess",this.expiryDaysCount=e,this.expiryTime=t,this.meterMax=a,this.overMaxReset=l,this.data=K(s),this.subOnlyWallFiredCountKey="subOnlyWallCount",this.subOnlyOverMaxReset=i}count(){return this.data&&this.wallStatsKey in this.data?Object.keys(this.data[this.wallStatsKey]).length:0}updateStorage(){let e=new Date;this.data[this.lastViewedDateKey]=e.toISOString(),window.localStorage.setItem(this.key,JSON.stringify(this.data))}getInstancePosition(e){return this.data[this.wallStatsKey][e]}searchData(e){return e in this.data[this.wallStatsKey]}updateData(e){this.checkResetStorage();let t=this.data;this.data[this.wallFiredCountKey]||(t[this.wallFiredCountKey]=0),this.data[this.subOnlyWallFiredCountKey]||(t[this.subOnlyWallFiredCountKey]=0);let a=this.data[this.wallStatsKey];(!a||Object.keys(a).lengthwindow.location.host+window.location.pathname,w=e=>t=>{let a=e||u();return a in t||(t[a]=Object.keys(t).length+1),t},g={expiryDaysCount:30,expiryTime:0,get meterMax(){return r("meterPaywallMeterMax")},meterKey:s.get("PAYWALL_STORAGE_KEY"),get overMaxReset(){return r("meterPaywallPvLossResetEnabled")?10:void 0},get subOnlyOverMaxReset(){return r("meterPaywallPvLossResetEnabled")?10:void 0}},S=e=>{let t;let{pageStellarId:a,canonicalUrl:s}=e;if(i()&&"string"==typeof s&&a)try{let e=new URL(s.replace(/\/index\.html$/i,""));t=`${a}_${l(e.pathname)}`}catch(e){console.error(e)}return t},K=(e,t={})=>{try{let a=window.localStorage.getItem(e);return null!==a?JSON.parse(a):t}catch(e){return console.error(e),t}},O=()=>K(g.meterKey,{freeAccess:h}).freeAccess,m=e=>{let t=K(g.meterKey,{}),a={...t,freeAccess:{...t?.freeAccess??h,...e}};window.localStorage.setItem(g.meterKey,JSON.stringify(a))};e.exports={MeterController:c,getIdFromUrl:u,addCustomKey:w,delCurrId:e=>t=>(delete t[e],t),delLastEntry:e=>{let t=Object.keys(e);return t.length&&delete e[t[t.length-1]],e},getMeterData:e=>{let{meterMax:t,subOnlyOverMaxReset:a,shouldIncrementWallCount:s=!0,shouldIncrementSubOnlyWallCount:l=!1}=e,i=!1,r=new c(e),n=r.count(),o=r.data[r.subOnlyWallFiredCountKey];if(s){let e=S(window.CNN.contentModel)||window.CNN.contentModel.pageStellarId;r.updateData(w(e)),r.updateStorage(),(i=!r.getInstancePosition(e)&&n>=t)&&r.incrementWallCount(r.wallFiredCountKey)}return l&&!(o>=a)&&r.incrementWallCount(r.subOnlyWallFiredCountKey),{shouldRestrict:i,wallCount:r.data[r.wallFiredCountKey],subOnlyWallCount:r.data[r.subOnlyWallFiredCountKey]}},payMeterConfig:g,isSubOnlyFreeAccessAllowed:e=>{if(!e||!r("regwallAllowSubOnlyAccess"))return!1;let{allowSubOnlyAccess:t,subOnlyPageId:a}=O(),s=S(window.CNN.contentModel)||window.CNN.contentModel.pageStellarId;return t&&!a?(m({subOnlyPageId:s}),!0):a===s},getFromStorage:K,initFreeAccessData:()=>{m({allowSubOnlyAccess:!0})}}}}]); /* window.modules["528"] */ "use strict";(self.modules=self.modules||[]).push([["528"],{528:(e,o,s)=>{let{isSite:t}=s("131"),{isEdition:n}=s("234"),{isSection:d,SECTIONS:i}=s("7"),a=s("24"),r=e=>new URLSearchParams(window.location.search).get(e),l=()=>{let e=r("focus_mode");return!1===a.get("ENABLE_FOCUS_MODE")||"false"===e},c="focus-mode-sponsored",u=()=>{let e=document.querySelector(".ad-slot-dynamic[data-uri*='cnn-focus-mode-inline-ad']");e?.remove()};e.exports={handleFocusModeRedirect:()=>{let e=r("focus_mode"),o=r("adsqa");"true"!==e||o||(window.location.search+=`${window.location.search?"&":""}adsqa=status%3Dlimited_ads`)},isEligibleForFocusMode:()=>{if(l())return!1;let e=!d([i.UNDERSCORED]),o=t(window.CNN.contentModel,window.CNN.helpers.SITES.cnn),s=window.CNN.helpers.isPageVariant(window.CNN.helpers.PAGE_VARIANTS.ARTICLE),n=window.CNN.isElevated;return o&&e&&(s||n)},handleFocusModeIsActive:()=>{document.body.classList.add(c)},handleFocusModeIsInactive:()=>{document.body.classList.remove(c),u()},getFocusModeConfigs:()=>{let e=n(window.location.hostname)?"CNNi":"CNN",o=window.CNN?.contentModel?.section||"us";return{inBodySlots:[{rktr_slot_id:"ad_focus_btf_01",rktr_ad_id:`${e}/${o}/leaf`,sizes:[[2,2]],hasInViewRefresh:!0,inViewRefreshCount:"10",inViewRefreshInterval:"35",targeting:[["pos",["focus_btf_01"]]],responsive:[]}]}}}}}]); /* window.modules["529"] */ "use strict";(self.modules=self.modules||[]).push([["529"],{529:(e,t,r)=>{let o,d,i,n;let{AD_VARIANTS:a,setAdVariant:l,handleAdVariant:s}=r("230"),{isEligibleForFocusMode:u,handleFocusModeIsActive:w,handleFocusModeIsInactive:c,handleFocusModeRedirect:g,getFocusModeConfigs:p}=r("528"),{processAdSlotPlaceholders:y,setAdTargets:f,handleAdSlotLoaded:h,loadRegistry:m,awaitAdFuel:N,initializeLazyLoadAds:A,ENABLE_AD_LAZY_LOADING:_}=r("317"),{getActiveFastlyExperiments:v}=r("307"),{isVideo:C}=r("12"),E=r("113"),T=r("24"),{mediumMaxWidthListener:S}=r("11"),F=T.get("ENABLE_SERVER_AD_REGISTRIES"),b=[],L=["landing","leaf"],P=()=>[...new Set(Array.from(document.querySelectorAll(".ad")).map(e=>e.id))],R=()=>{let e=E(window,"CNN.ads.registryPath","").split("/"),t=e[1]?e[1]:"",r="",o="",d="";e[2]&&L.includes(e[2])?(o=e[2],d=e[3]?e[3]:""):(r=e[2]?e[2]:"",o=e[3]?e[3]:"",d=e[4]?e[4]:"");let i=P().join(".");return i?fetch(`${window.env.WOPR_API_URL}/api/v2/registry/CNN_2/CNN/sec~${t}/ss~${r}/pt~${o}/l5~${d}/slots~${i}`).then(e=>e.json()).then(({registry:e})=>e):Promise.resolve(null)},I=()=>{let e=E(window,"CNN.ads.registry",[]);return 0===e.length&&console.error("ad-slot: missing ad registry data"),Promise.resolve(e)},O=e=>{let t=new URLSearchParams(window.location.search).get("forceEmptySlotRefresh");if(!t||!Array.isArray(e)||d)return e;d=!0;let r=t.split(",").map(e=>e.trim()).filter(Boolean);if(0===r.length)return e;let o=new Set(r);return i||(i=JSON.parse(JSON.stringify(e))),e.map(e=>{if(e&&o.has(e.rktr_slot_id)){let t=Array.isArray(e.responsive)?e.responsive.map(e=>{if(Array.isArray(e)&&e.length>=2&&Array.isArray(e[1])){let t=e[1].map(()=>[222,222]);return[e[0],t]}return e}):e.responsive;return{...e,sizes:[[222,222]],responsive:t}}return e})},B=()=>{Promise.all([F?I():R(),N()]).then(([e])=>{if(e){let t=d?e:O(e);!o&&window.CNN.isElevated&&x(t),_?A(t,o):m(t)}}).catch(e=>console.error("ad-slot: Failed to request ads -",e))},U=e=>{let t=new URLSearchParams(window.location.search).get("forceEmptySlotRefresh"),r=e?.detail?.divId,o=document.getElementById(r),d=e.detail?.empty,n=0;if(!d){o?.classList?.remove("ad-slot-empty");return}if(o.attributes.getNamedItem("data-retries")&&(n=parseInt(o.getAttribute("data-retries"))),ne.rktr_slot_id===r);-1!==e&&i[e]&&(window.CNN.ads.registry[e]=i[e],m(window.CNN.ads.registry),window?.AdFuel?.destroySlots(),B())}window.AdFuel&&window.AdFuel.refresh(r)}else o.classList?.add("ad-slot-empty")},k=e=>{e&&(_?A(e,o):m(e))},q=()=>N().then(()=>{if(window.AdFuel){let e=v();e&&e.length&&window.AdFuel.addPageLevelTarget("appname",e),window.AdFuel.addPageLevelTarget("wm_vw","stlr"),void 0!==window.CNN.adTargets.spec&&window.AdFuel.addPageLevelTarget("spec",window.CNN.adTargets.spec),void 0!==window.CNN.adTargets.pg&&window.AdFuel.addPageLevelTarget("pg",window.CNN.adTargets.pg),void 0!==window.CNN.adTargets.subs&&window.AdFuel.addPageLevelTarget("subs",window.CNN.adTargets.subs)}}).catch(e=>{console.error("Error in setAdfuelTargeting:",e)}),j=(e={})=>{let t={};return Object.entries(e).forEach(([e,r])=>{"string"==typeof r&&r.startsWith("cep_")?(t[r]=t[r]||[],t[r].push(e)):t[e]=r}),t},D=e=>{let t=j(e.detail?.cepTopics||{});if(void 0===n){n=t;return}(Object.keys(t).length||Object.keys(n).length)&&N().then(()=>{if(!window.AdFuel||!window.googletag?.pubads)return;let e=document.querySelector(".video-playlist__playlist-wrapper + .ad-slot-dynamic .ad-slot, [data-uri*='/_components/video-playlist/'] + .ad-slot-dynamic .ad-slot");if(!e)return;let r=o?e.dataset.mobileSlotId:e.dataset.desktopSlotId;if(!r)return;let d=window.googletag.pubads();Object.keys(n).forEach(e=>d.clearTargeting(e)),Object.entries(t).forEach(([e,t])=>{d.setTargeting(e,t)}),n=t,window.AdFuel.refresh(r)}).catch(e=>console.error("Error in refreshPlaylistDynamicAdCepTargeting:",e))};C(window.CNN?.contentModel)&&window.addEventListener("cnn.video.change",D);let $=()=>N().then(()=>{window.AdFuel.addPageLevelTarget("wm_vw","stlr"),k([window.CNN.ads.registry[0],p().inBodySlots[0]])}).catch(e=>{console.error("Error in requestFocusModeInlineUnit:",e)}),G=(e,t)=>{let r=M(document.querySelector(".layout__right").getBoundingClientRect().top);for(let o of b){let d=r+e,i=d+t;if(do.upper&&io.lower)return{boundaries:o,type:"full-outer",tentativeTop:d,tentativeBottom:i};if(d>=o.upper&&io.lower)return{boundaries:o,type:"partial-bottom",tentativeTop:d,tentativeBottom:i}}return null},M=e=>e-document.body.getBoundingClientRect().top,x=e=>{b=[];let t=document.querySelector(".article__content").getBoundingClientRect();document.querySelectorAll(".article__content > *:not(p)").forEach(e=>{let r=e.getBoundingClientRect(),o=r.right-t.right,d=r.height,i=M(r.top),n=M(r.top+d);(o>0||e?.dataset?.adId)&&b.push({upper:i,lower:n})}),b.length&&G(0,600)&&z(e)},z=e=>{try{let t=e.find(e=>"ad_right_atf_01"===e.rktr_slot_id);if(!t)return;for(let e of t.responsive)e[1]=e[1].filter(e=>!("300"===e[0]&&"600"===e[1]))}catch(e){console.error("Failed to restrict ad size due to collision.",e)}},J=()=>Promise.all([F?I():R(),N()]).then(([e])=>{void 0!==window.CNN.adTargets.spec&&window.AdFuel.addPageLevelTarget("spec",window.CNN.adTargets.spec);let t=[e[0]],r=e.find(e=>"ad_bnr_atf_01"===e.rktr_slot_id);r&&(t.push(r),k(t))}).catch(e=>{console.error("Error in requestBannerAdOnly:",e)}),W=e=>{"ad_bnr_atf_01"===e.detail.divId&&(e.detail?.renderedSize==="5x5"?(w(),l(a.FOCUS_MODE)):(c(),l(a.DEFAULT)),document.removeEventListener("GPTRenderComplete",W))},V=async()=>{await f(),await q(),u()&&(g(),document.addEventListener("GPTRenderComplete",W)),document.addEventListener("GPTRenderComplete",e=>{h(e,o),U(e)}),s({...u()?{[a.FOCUS_MODE]:$}:{},[a.DEFAULT]:B}),S(e=>{o=e,window.AdFuel&&window.AdFuel.destroySlots(),y(o),u()?J():l(a.DEFAULT)})};e.exports={initializeAds:V,refreshPlaylistDynamicAdCepTargeting:D}}}]); /* window.modules["530"] */ "use strict";(self.modules=self.modules||[]).push([["530"],{530:(s,e,t)=>{let{ClientModel:c,actions:d}=t("65");s.exports={ShowAdFeedbackDispatcher:class extends c{constructor(){super()}showFeedback({adType:s,adIdentifier:e}){this.dispatch(d.ADS.SHOW_FEEDBACK,{adType:s,adIdentifier:e})}}}}}]); /* window.modules["532"] */ (self.modules=self.modules||[]).push([["532"],{532:(s,e,l)=>{var o=l("2345"),u=l("2346")(function(s,e,l,u){o(s,e,l,u)});s.exports=u}}]); /* window.modules["533"] */ "use strict";(self.modules=self.modules||[]).push([["533"],{533:(t,e,n)=>{let r=n("24"),{isPageType:o,PAGE_TYPES:i}=n("12"),{replaceVersion:c}=n("127"),{getStellarId:s}=n("303"),u="relevance.contentHistory";function a(t){return!!t&&t.startsWith("h_")}function l(t){return!!t}function d(t){return!!t&&/[a-z]+_\w+(-\w+){4}/i.test(t)}function f(t,e,n){if(n(t))return{contentIdType:e,contentId:t}}function p(t){return function(){return arguments[0]&&r.get("ENABLE_RELEVANCE_USER_JS")&&function(){let t=window.WM.UserConsent.getConsentState();return t["content-person"]&&t["content-person-prof"]}()?t.apply(this,arguments):[]}}function g(t){if(!t?.contentId)return;let e=r.get("MAX_RELEVANCE_ITEMS_TO_STORE",300),n=JSON.parse(window.localStorage.getItem(u)||null)||[];n.push(t),n=n.slice(-e);try{return window.localStorage.setItem(u,JSON.stringify(n)),!0}catch(t){if(console.log("relevance user history saving error",t),t instanceof DOMException&&(22===t.status||1014===t.status||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)){window.localStorage.clear();try{return window.localStorage.setItem(u,JSON.stringify(n)),!0}catch(t){console.log("relevance user history saving error in second try catch",t)}}return!1}}function y(t){let e=t?.configs?.stellarUri;if(!e)return;let n=document.querySelector(`div[data-uri="${e}"], [data-parent-uri="${e}"]`);if(!n)return;let r=n.dataset.uri;if(r&&"null"!==r)return g({contentIdType:"stellar_id",contentId:s(r),contentType:"video",timestamp:Date.now()})}let I=p(function(t){return g({...o(t,i.SECTION)?{contentId:function(t){if(!t)return;let e=c(t,""),n=e.indexOf("/");return n>-1&&(e=e.slice(n)),e}(t.cmsId)}:function(t){let{pageStellarId:e,sourceId:n,_wedgerId:r}=t;return f(e,"stellar_id",l)||f(n,"source_id",d)||f(r,"hypatia_id",a)||{contentIdType:"",contentId:""}}(t),contentType:function(t){if(t.pageType)return t.pageType;if(t.sourceId){let e=t.sourceId.split("_")[0];if(e.match("^[A-Za-z]+$"))return e}}(t),timestamp:Date.now()})}),E=p(y);t.exports={trackUserViewedContent:I,trackUserStartedVideo:E,exportedForTesting:{userVideoStart:y},getUserHistory:function(t=0){let e=JSON.parse(localStorage.getItem("relevance.contentHistory"))||[];return(t>0?e.slice(0,t):e).reduce((t,{contentIdType:e=!1,contentId:n},r,o)=>(e&&o.findLastIndex(t=>t.contentId===n)===r&&t.push({[e]:n}),t),[])}}}}]); /* window.modules["537"] */ "use strict";(self.modules=self.modules||[]).push([["537"],{537:t=>{let e={DISPLAY:"display_ad",VIDEO:"video"},i=["adUnitPath","parentRegistry","response","rktr_ad_id","rktr_slot_id"];t.exports={AdData:class{constructor(){for(let t of(this.adList={},this.registerAdActions={},this.getAdDetailsActions={},Object.values(this.TYPE)))this.adList[t]={},this.registerAdActions[t]=null,this.getAdDetailsActions[t]=null;this.initializeAdTypeLogic()}get TYPE(){return e}initializeAdTypeLogic(){this.setRegisterAdAction(this.TYPE.DISPLAY,(t,e)=>{Array.isArray(e)||(e=[e]),window.AdFuel&&window.AdFuel.queueRegistry(e)}),this.setGetAdDetailsAction(this.TYPE.DISPLAY,t=>{if(window.AdFuel){let e=window.AdFuel.getSlotDetails(t)||{};return Object.keys(e).forEach(t=>i.includes(t)||delete e[t]),e}}),window.FAVE?this.processVideoSessions():window.addEventListener("fave.loaded",()=>{this.processVideoSessions()})}processVideoSessions(){this.setGetAdDetailsAction(this.TYPE.VIDEO,t=>({video_session_id:t||null}))}setRegisterAdAction(t,e){this.registerAdActions[t]=e}setGetAdDetailsAction(t,e){this.getAdDetailsActions[t]=e}isValidAdType(t){return Object.values(this.TYPE).includes(t)}registerAd(t,e,i){if(this.isValidAdType(t))try{"function"==typeof this.registerAdActions[t]?this.registerAdActions[t](e,i):this.adList[t][e]=i}catch(t){console.error(t)}}getAdDetails(t,e){let i={};if(!this.isValidAdType(t))return i;try{"function"==typeof this.getAdDetailsActions[t]?i=this.getAdDetailsActions[t](e):Object.prototype.hasOwnProperty.call(this.adList[t],e)&&(i=this.adList[t][e])}catch(t){console.error(t)}return("object"!=typeof i||null===i)&&(i={}),i.feedback_type=t,i}},AdDataType:e}}}]); /* window.modules["545"] */ "use strict";(self.modules=self.modules||[]).push([["545"],{545:(e,n,c)=>{let o=c("113"),{isEdition:_}=c("234"),{isPageVariant:i,PAGE_VARIANTS:l}=c("6"),{isSection:t,SECTIONS:s}=c("7"),{isTVE:m,isVideo:d}=c("2"),{isFastLiveVideo:a,isUKLive:u}=c("14"),{isEspanolPage:r,isArabicPage:b}=c("1");e.exports={getSSID:function(e,n){let c;function w(e){return e.toLowerCase().replace(/[^a-z]/g,"")}let v="true"===o(e.closest("[data-freewheel-lede]"),"dataset.freewheelLede",""),p=w(o(window,"CNN.contentModel.section","")),E=w(o(window,"CNN.contentModel.subsection","")),h=t(s.HOMEPAGE),f=d(),x=o(window,"CNN.contentModel.cmsId",""),S=null!=e.closest(".video_carousel"),I=_(window.location.hostname),N=b();c=r()?"cnnespanol.cnn.com":N?"arabic.cnn.com":"cnn.com";let C=o(window,"CNN.contentModel.sourceId","");return n?c+="_mobile_mobileweb":h&&(c+="_main"),p?(p===s.BUSINESS?c+="_cnnbusiness":c+=`_${p}`,E&&!N&&(c+=`_${E}`)):c+="_misc_default",f?c+="_videopage":n||h||(S?c+=v?"_carousel_t1":"_inpage":c+=v?"_t1":"_inpage"),x&&x.includes("video-hub")&&(c=`cnn.com${n?"_mobile":""}_videohub_main`),m()&&(i([l.TVE_DTC_VIDEO,l.ALLACCESS_VIDEO])&&(c=n?"cnn.com_live_dtc_simulcast_mobileweb":"cnn.com_live_dtc_simulcast_web"),i(l.TVE_SERIES)||i(l.TVE_FILM)?c=n?"cnn.com_cnngo_shows_mobileweb":"cnn.com_cnngo_shows_desktop":(i(l.TVE_STREAM)||i(l.LIVE_TV))&&((C?.includes("cnn-live-stream")||C?.includes("tve-featured-live"))&&(c=n?"cnn.com_live_mobileweb_cnnx":"cnn.com_live_desktop_turner_cnnx"),C?.includes("cnni-live-stream")&&(c=n?"cnn.com_live_mobileweb_cnnix":"cnn.com_live_desktop_turner_cnnix"),C?.includes("hln-live-stream")&&(c=n?"cnn.com_live_mobileweb_hlnx":"cnn.com_live_desktop_turner_hlnx"))),a(e.dataset?.contentType)&&(c=n?"cnn.com_live_mobileweb_fastchannel":"cnn.com_live_desktop_fastchannel"),u(e.dataset.customExperience)&&(c=n?"cnn.com_live_mobileweb_cnnix":"cnn.com_live_desktop_turner_cnnix"),I&&(c=`edition.${c}`),c}}}}]); /* window.modules["546"] */ "use strict";(self.modules=self.modules||[]).push([["546"],{546:(e,t,s)=>{let o=s("24");e.exports={getConfigObject:function(e,t,s){let i;return t&&e&&(i=o.get(`TRINITY_CONFIGURATION${void 0!==s?s?".international":".domestic":""}.${e}.${t}`)),i}}}}]); /* window.modules["547"] */ "use strict";(self.modules=self.modules||[]).push([["547"],{547:(e,a,n)=>{let{getComponentName:l}=n("127");e.exports={array:function(){return Array.prototype.slice.call(arguments,0,-1)},arrayIncludes:function(e=[],a){return e.includes(a)},generateLabelHtml:function(e,a,l,t,s){let{applyContainerMediaLabelRemap:i,getVariation:r}=n("420"),o=` ${a?`${a}`:""} ${t?`${t}`:""} `;if(!e&&t)return o;let{label:c,labelText:p}=i(s,e,a),d=` &bull; ${p} ${t?`${t}`:""} `,u=r({componentVariation:s})?.allowVisualCueMediaLabels;return Array.isArray(u)&&(u.includes(e)||t)?`${d}${o}`:d},getDefaultTheme:function(e){return"espanol"===e?"cnne":"cnn"},updateComponentsInArray:function(e,{hash:a}){return Array.isArray(e)?e?.map(e=>((!a.componentName||a.componentName&&e._ref&&a.componentName===l(e._ref))&&(e[a.key]=a.value),e)):e},updateComponentVariation:(e,a,n=[])=>e?n?.map(n=>n(e,a)).find(e=>!!e)??e:"",shouldShowLabelAboveMedia:function(e,a,n,l,t){let s=new Set(["type-video","type-audio","type-podcasts","type-gallery"]),i=new Set(["container_vertical-strip","container_vertical-strip-3x4","container_vertical-strip-original-ratio"]),r=new Set(["container_lead-package","container_lead-plus-headlines","container_lead-plus-headlines-with-images"]),o=t?.data?.root?.locals,c=o?.context?.fastAB?.activeExperiments||[],p=new Set(i);return!(!e||!a||s.has(e))&&(c.includes("mw-hp-lead-package-styling-2026-03/t1")&&p.add("container_lead-plus-headlines-with-images"),!!p.has(n)||!!r.has(n)&&0===Number(l))},not:function(e){return!e},ternary:function(e,a,n){return e?a:n}}}}]); /* window.modules["548"] */ "use strict";(self.modules=self.modules||[]).push([["548"],{548:e=>{e.exports=function(e){return e instanceof Array?(0===e.length?"":1===e.length?`${e[0]}`:e.join(",").replace(",$","")).replace(/\\/g,"\\\\").replace(/(["'])/g,"\\$&"):"string"==typeof e?e.replace(/\\/g,"\\\\").replace(/(["'])/g,"\\$&"):e}}}]); /* window.modules["549"] */ "use strict";(self.modules=self.modules||[]).push([["549"],{549:(e,t,n)=>{let{dispatch:a,actions:{VIDEO:i}}=n("65"),o=n("2579"),{getNavbarHeight:r,getStickyHeaderRect:l}=n("283"),{isSection:d,SECTIONS:s}=n("7"),{isAuthVideo:u,getContinuousVariation:c}=n("14"),{getUserAccessLevel:p,ACCESS_LEVEL:m}=n("76"),{getMVPDData:w,isAuthenticated:h}=n("63"),{hideVideoCover:v,removeVideoCoverSpinner:y}=n("4"),{trackMetrics:f}=n("9"),{paywallConfigs:g}=n("2599"),{convertAuthType:b}=n("1"),{CONTENT_TYPES:I}=n("326"),{redirectToMarketing:E}=n("122"),{getFreeviewPreviewType:k,getMaxPreviewSeconds:R}=n("23"),A=new Map,T=R(),U="cnn_continuous_preview_consumed";function _(){try{let e=Number(localStorage.getItem(U));return Number.isFinite(e)&&e>0?e:0}catch(e){return 0}}function L(e){let t=Math.max(0,Math.round(Number(e)||0));try{localStorage.setItem(U,String(t))}catch(e){}}function S(e){let t=e.authType?.includes("dtc"),n=e.contentType,a=[I.episode,I.film],i=t&&a.includes(n);return{isDTC:t,isVOD:i}}let M=new Map;function C(e){return"false"===e||!1===e}let P=new Map,N=new Map;function V(e){let t=P.get(e);t&&(window.removeEventListener("freeviewStart",t),P.delete(e));let n=N.get(e);n&&(window.removeEventListener("userloggedin",n),N.delete(e))}async function F(e,{scope:t="page"}={}){e.markupId&&"page"===t&&A.set(e.markupId,e);let n=window.FAVE.player.getInstance(e.markupId);V(e.markupId);let a=b(e.authType),{isDTC:i,isVOD:o}=S(e);if(Array.isArray(a)&&0===a.length&&(a=null),C(e.isAuthenticatedContent)){n.setUiTheme({authType:a,overlay:{freeview:null,shouldRender:!1},subscriptionUi:{shouldRender:!1}});return}if(u(e.authType)&&e.topAuth&&!e.topAuth.isPreviewActive(e.networkId)){let{topAuth:{freeview:t,cobranding:r,logout:l}={},uri:d=""}=e,s=e=>E({sourceArg:e}),u={};if(r)u={cobranding:{imageURL:r.imageURL},shouldRender:!0,logout:l},n.setUiTheme({authType:a,overlay:u,shouldRender:!0,subscriptionUi:{shouldRender:!1}});else if(t?.status){let e=!1;u={freeview:{status:{...t.status},callbacks:{onFreeViewEnded:()=>{if(e)return;e=!0,O(d);let t={isPreview:!1,previewType:""};n.updateAdobeCustomMetadata(t),n.updateZionCustomMetadata(t)},onClickKeepWatchingWithSubscription:()=>D(d)}},shouldRender:!0},n.setUiTheme({authType:a,overlay:u,subscriptionUi:{shouldRender:!1,paywallModal:{shouldRender:o}},shouldDirectToMarketing:s})}let c=({detail:t})=>{if(n.setUiTheme({authType:a,overlay:{freeview:{status:{...t.freeview.status}},shouldRender:!0},subscriptionUi:{shouldRender:i},shouldDirectToMarketing:s}),"boolean"==typeof t.freeview?.status?.expired&&!t.freeview.status.expired){let a={isPreview:!0,previewType:k(e,t.freeview.status)};n.updateAdobeCustomMetadata(a),n.updateZionCustomMetadata(a)}i&&j(n,e).catch(e=>console.error(e))},p=({detail:e})=>{n.setUiTheme({authType:a,overlay:{cobranding:e.cobranding,shouldRender:!0,logout:l},subscriptionUi:{shouldRender:!1}});let t={isPreview:!1,mvpd:w("mvpd"),previewType:""};n.updateAdobeCustomMetadata(t),n.updateZionCustomMetadata(t)};P.set(e.markupId,c),N.set(e.markupId,p),window.addEventListener("freeviewStart",c),window.addEventListener("userloggedin",p),i&&!r&&await j(n,e)}else i?await j(n,e):n.setUiTheme({authType:a,overlay:{freeview:null,shouldRender:!1},subscriptionUi:{shouldRender:!1}})}let O=e=>{f({type:"user-interaction",data:{interaction:"module load",componentName:"Video Player: Free preview ended: Showed up",componentStellarId:e}})},B=e=>{let t=A.get(e.markupId)||e;function n(){return document.querySelector("html[data-layout-uri*='layout-no-rail/instances/tv-grid-section'] .zone.zone--t-dark")}document.removeEventListener("paywall-modal-opened",()=>{}),document.removeEventListener("paywall-modal-closed",()=>{}),document.addEventListener("paywall-modal-opened",e=>{e.preventDefault();let a=A.get(t.markupId)||t;if(!a.authType?.includes("dtc"))return;document.body.classList.add("disable-scrolling");let i=a.markupId;document.getElementById(i).classList.add("paywall-modal-open"),f({type:"user-interaction",data:{interaction:"subwall:free preview unavailable:start watching:click "}});let o=n();o&&o.classList.add("paywall-modal-open")}),document.addEventListener("paywall-modal-closed",e=>{e.preventDefault();let a=A.get(t.markupId)||t;document.body.classList.remove("disable-scrolling");let i=a.markupId;document.getElementById(i).classList.remove("paywall-modal-open");let{isVOD:o}=S(a);if(o){let e=document.querySelector(".video-player_tve");e&&(e.style.display="none")}let r=n();r&&r.classList.remove("paywall-modal-open")}),window.addEventListener("mvpdModalClosed",()=>{let e=A.get(t.markupId)||t;e.topAuth?.context?.authenticatedState==="authenticated"&&document.body.classList.remove("disable-scrolling")})},D=e=>{f({type:"user-interaction",data:{interaction:"module load",componentName:"subwall:preview:keep watching with a subscription",componentStellarId:e}})},G=e=>{f({type:"user-interaction",data:{interaction:"module load",componentName:"subwall:preview:upgrade to keep watching",componentStellarId:e}})},x=e=>{f({type:"user-interaction",data:{interaction:"subwall:preview:sign up",componentStellarId:e}})},q=e=>{f({type:"user-interaction",data:{interaction:"subwall:preview-upgrade:sign up",componentStellarId:e}})},W=async e=>{f({type:"user-interaction",data:{interaction:"subwall:preview:connect now",componentStellarId:e}})},Z=async e=>{f({type:"user-interaction",data:{interaction:"subwall:upgrade:connect now",componentStellarId:e}})},z=e=>{f({type:"user-interaction",data:{interaction:"subwall:preview:sign in",componentStellarId:e}})};function H(e){e.topAuth?.error&&(window.FAVE.player.getInstance(e.markupId).setMediaError(e.topAuth.error.message),setTimeout(()=>{e.topAuth.logout()},1e4))}function K(e){let t=window.FAVE.player.getInstance(e.markupId);d(s.HOMEPAGE)&&!t.isMuted()&&document.dispatchEvent(new Event("killautorefresh"))}function Y({authType:e,overlay:t,subscriptionUi:n,userAccessLevel:a}){let i=c()&&a!==m.SUB_ALL_ACCESS&&!h(),o={authType:e,overlay:t,shouldRender:!0,subscriptionUi:{shouldRender:!0,...n}};return i&&(o.subscriptionUi.continuousPlayer={shouldRender:!0},o.overlay.freeview={...o?.overlay?.freeview?o.overlay.freeview:{},maxPreviewSeconds:T,getPreviewElapsedSeconds:_,onPreviewElapsedSeconds:L}),o}async function j(e,t){let{authType:n,uri:a=""}=t,i=(t.topAuth??{}).triggerPickerLogin??(()=>{}),o="access_level",r=localStorage.getItem(o);r||(r=await p(),localStorage.setItem(o,r));let l=()=>{W(a),i()},d=()=>x(a),s={...g(l,d,()=>z(a)).NOT_LOGGED_IN};switch(r){case m.NOT_LOGGED_IN:e.setUiTheme(Y({authType:n,overlay:{shouldRender:!0},subscriptionUi:s,userAccessLevel:r}));break;case m.LOGGED_IN_NO_SUB:e.setUiTheme(Y({authType:n,overlay:{shouldRender:!0},subscriptionUi:{...g(l,d,null).LOGGED_IN_NO_SUB},userAccessLevel:r}));break;case m.SUB_READER_TIER:e.setUiTheme(Y({authType:n,overlay:{shouldRender:!0,freeview:{callbacks:{onClickKeepWatchingWithSubscription:()=>G(a)}}},subscriptionUi:{...g(()=>{Z(a),i()},()=>{q(a)},null).SUB_READER_TIER},userAccessLevel:r}));break;case m.SUB_ALL_ACCESS:e.setUiTheme({authType:n,overlay:{freeview:null,shouldRender:!1},subscriptionUi:{shouldRender:!1,paywallModal:{shouldRender:!1}}});break;default:e.setUiTheme(Y({authType:n,overlay:{shouldRender:!0},subscriptionUi:s,userAccessLevel:r}))}}e.exports={createCallbacks:function(e){return{onContentBegin:()=>{Promise.resolve(function(e){let t=window.FAVE.player.getInstance(e.markupId);if(!t||!t.configs)return;let n=M.get(e.markupId);if(n){let a=t.configs?.mediaMetadata?.mediumId;if(!n._handoffMediumId||!a||n._handoffMediumId===a)return M.delete(e.markupId),F(n,{scope:"tile"})}!C(t.configs.isAuthenticatedContent)&&u(b(t.configs.authType))||t.setUiTheme({authType:null,overlay:{freeview:null,shouldRender:!1},subscriptionUi:{shouldRender:!1}})}(e)).catch(e=>console.error("Failed to reconcile overlay for active content",e)),o(e);let t=window.scrollY;e.isMobileViewport||(a(i.VIDEO_START,window.FAVE.player.getInstance(e.markupId)),d(s.HOMEPAGE)||d(s.DTC)||setTimeout(()=>{if(document.querySelector('[data-page-type="article"] .video-resource__stuck'))return;let n=r();if(e.el.getBoundingClientRect().top{F(e),y(e),B(e)},onContentComplete:()=>{e.isVerticalVideoEmbed&&requestAnimationFrame(()=>{window.FAVE.player.getInstance(e.markupId).replay()})},onContentError:()=>{M.delete(e.markupId),H(e)},onContentPlay:()=>{K(e),v(e)},onAdPlay:()=>{v(e)},onTrackingMuted:()=>{K(e)}}},handleAuthErrors:H,handleHPAutorefresh:K,handleOverlay:F,queueOverlayConfigs:function(e,t){e&&M.set(e,{...t,_handoffMediumId:t.mediaMetadata?.mediumId})},getDtcAndVodStatus:S,cleanupConfigsForPlayer:function(e){e&&(A.delete(e),M.delete(e),V(e))},addPaywallModalEventListeners:B}}}]); /* window.modules["553"] */ (self.modules=self.modules||[]).push([["553"],{553:(e,r,o)=>{var t=o("615"),l=o("2391"),s=o("2145"),a=o("2392"),n=Object.prototype,v=n.hasOwnProperty,f=t(function(e,r){e=Object(e);var o=-1,t=r.length,f=t>2?r[2]:void 0;for(f&&s(r[0],r[1],f)&&(t=1);++o{var r=Array.isArray;s.exports=r}}]); /* window.modules["555"] */ (self.modules=self.modules||[]).push([["555"],{555:e=>{e.exports=function(e){return void 0===e}}}]); /* window.modules["556"] */ (self.modules=self.modules||[]).push([["556"],{556:e=>{e.exports=function(e){var o=typeof e;return null!=e&&("object"==o||"function"==o)}}}]); /* window.modules["557"] */ (self.modules=self.modules||[]).push([["557"],{557:(e,s,l)=>{var r=l("2567"),u=l("2568"),n=l("2144"),o=l("2569"),t=l("554");e.exports=function(e,s,l){var f=t(e)?r:o,a=arguments.length{n.exports={0:function(n,l,e,a,o){var t=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return" "+n.escapeExpression((t(e,"set")||l&&t(l,"set")||n.hooks.helperMissing).call(null!=l?l:n.nullContext||{},"lazy",!1,{name:"set",hash:{},data:o,loc:{start:{line:2,column:2},end:{line:2,column:24}}}))+"\n"},1:function(n,l,e,a,o){var t=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return" "+n.escapeExpression((t(e,"set")||l&&t(l,"set")||n.hooks.helperMissing).call(null!=l?l:n.nullContext||{},"componentVariation",null!=l?t(l,"componentVariationOverride"):l,{name:"set",hash:{},data:o,loc:{start:{line:5,column:2},end:{line:5,column:59}}}))+"\n"},2:function(n,l,e,a,o){var t=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return" "+n.escapeExpression((t(e,"set")||l&&t(l,"set")||n.hooks.helperMissing).call(null!=l?l:n.nullContext||{},"componentVariation","image_medium",{name:"set",hash:{},data:o,loc:{start:{line:9,column:4},end:{line:9,column:49}}}))+"\n"},3:function(n,l,e,a,o){var t=null!=l?l:n.nullContext||{},i=n.hooks.helperMissing,r=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return" "+n.escapeExpression((r(e,"set")||l&&r(l,"set")||i).call(t,"customRatios",(r(e,"toObject")||l&&r(l,"toObject")||i).call(t,{name:"toObject",hash:{upToSmall:(r(e,"toObject")||l&&r(l,"toObject")||i).call(t,{name:"toObject",hash:{w:"680"},data:o,loc:{start:{line:13,column:122},end:{line:13,column:140}}}),mobile:(r(e,"toObject")||l&&r(l,"toObject")||i).call(t,{name:"toObject",hash:{w:"256"},data:o,loc:{start:{line:13,column:93},end:{line:13,column:111}}}),tablet:(r(e,"toObject")||l&&r(l,"toObject")||i).call(t,{name:"toObject",hash:{w:"256"},data:o,loc:{start:{line:13,column:67},end:{line:13,column:85}}}),desktop:(r(e,"toObject")||l&&r(l,"toObject")||i).call(t,{name:"toObject",hash:{w:"256"},data:o,loc:{start:{line:13,column:41},end:{line:13,column:59}}})},data:o,loc:{start:{line:13,column:23},end:{line:13,column:141}}}),{name:"set",hash:{},data:o,loc:{start:{line:13,column:2},end:{line:13,column:143}}}))+"\n"},4:function(n,l,e,a,o){var t=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return" "+n.escapeExpression((t(e,"set")||l&&t(l,"set")||n.hooks.helperMissing).call(null!=l?l:n.nullContext||{},"fixedRatio","16x9",{name:"set",hash:{},data:o,loc:{start:{line:16,column:4},end:{line:16,column:31}}}))+"\n"},5:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=i(e,"if").call(null!=l?l:n.nullContext||{},(t=(t=o&&i(o,"root"))&&i(t,"locals"))&&i(t,"modal"),{name:"if",hash:{},fn:n.program(6,o,0),inverse:n.noop,data:o,loc:{start:{line:17,column:0},end:{line:19,column:0}}}))?t:""},6:function(n,l,e,a,o){var t=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return" "+n.escapeExpression((t(e,"set")||l&&t(l,"set")||n.hooks.helperMissing).call(null!=l?l:n.nullContext||{},"fixedRatio","original",{name:"set",hash:{},data:o,loc:{start:{line:18,column:4},end:{line:18,column:37}}}))+"\n"},7:function(n,l,e,a,o){return" portrait"},8:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return n.escapeExpression("function"==typeof(t=null!=(t=i(e,"componentVariation")||(null!=l?i(l,"componentVariation"):l))?t:n.hooks.helperMissing)?t.call(null!=l?l:n.nullContext||{},{name:"componentVariation",hash:{},data:o,loc:{start:{line:22,column:174},end:{line:22,column:196}}}):t)+"__hide-placeholder"},9:function(n,l,e,a,o){return'data-unselectable="true"\n '},10:function(n,l,e,a,o){return'data-editable="settings"\n'},11:function(n,l,e,a,o){return' data-article-gutter="true"\n'},12:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return" "+(null!=(t=(i(e,"kilnEditButton")||l&&i(l,"kilnEditButton")||n.hooks.helperMissing).call(null!=l?l:n.nullContext||{},"New Image",{name:"kilnEditButton",hash:{},data:o,loc:{start:{line:40,column:6},end:{line:40,column:38}}}))?t:"")+"\n"},13:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=i(e,"if").call(null!=l?l:n.nullContext||{},null!=l?i(l,"damType"):l,{name:"if",hash:{},fn:n.program(14,o,0),inverse:n.noop,data:o,loc:{start:{line:42,column:4},end:{line:65,column:11}}}))?t:""},14:function(n,l,e,a,o){var t,i=null!=l?l:n.nullContext||{},r=n.hooks.helperMissing,c=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return" "+(null!=(t=(c(e,"renderImage")||l&&c(l,"renderImage")||r).call(i,{name:"renderImage",hash:{enableHighRes:null!=l?c(l,"enableHighRes"):l,includeImgCssVars:null!=l?c(l,"includeImgCssVars"):l,isElevated:(c(e,"isElevated")||l&&c(l,"isElevated")||r).call(i,(t=o&&c(o,"root"))&&c(t,"locals"),{name:"isElevated",hash:{},data:o,loc:{start:{line:61,column:19},end:{line:61,column:44}}}),customRatios:null!=l?c(l,"customRatios"):l,componentVariationOverride:null!=l?c(l,"componentVariation"):l,displayCreditInline:null!=l?c(l,"displayCreditInline"):l,renderOnlyImg:null!=l?c(l,"renderOnlyImg"):l,lazy:null!=l?c(l,"lazy"):l,extraCropCommands:null!=l?c(l,"extraCropCommands"):l,cropRatio:null!=l?c(l,"cropRatio"):l,fixedRatio:null!=l?c(l,"fixedRatio"):l,class:c(e,"if").call(i,null!=l?c(l,"imageBorderToggle"):l,"bordered",{name:"if",hash:{},data:o,loc:{start:{line:52,column:14},end:{line:52,column:47}}}),credit:null!=l?c(l,"credit"):l,caption:null!=l?c(l,"caption"):l,ratios:null!=l?c(l,"ratios"):l,alt:null!=l?c(l,"alt"):l,isLink:null!=l?c(l,"isLink"):l,forceToAVIF:null!=l?c(l,"forceToAVIF"):l,isLede:null!=l?c(l,"isLede"):l,image:l},data:o,loc:{start:{line:43,column:6},end:{line:64,column:9}}}))?t:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(n,l,e,a,o){var t,i,r=null!=l?l:n.nullContext||{},c=n.hooks.helperMissing,u=n.escapeExpression,s="function",m=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return(null!=(t=m(e,"if").call(r,(t=(t=o&&m(o,"root"))&&m(t,"locals"))&&m(t,"edit"),{name:"if",hash:{},fn:n.program(0,o,0),inverse:n.noop,data:o,loc:{start:{line:1,column:0},end:{line:3,column:7}}}))?t:"")+(null!=(t=m(e,"if").call(r,null!=l?m(l,"componentVariationOverride"):l,{name:"if",hash:{},fn:n.program(1,o,0),inverse:n.noop,data:o,loc:{start:{line:4,column:0},end:{line:6,column:7}}}))?t:"")+(null!=(t=(m(e,"ifAll")||l&&m(l,"ifAll")||c).call(r,(m(e,"compare")||l&&m(l,"compare")||c).call(r,null!=l?m(l,"componentVariation"):l,"image_inline-small",{name:"compare",hash:{},data:o,loc:{start:{line:8,column:9},end:{line:8,column:58}}}),(m(e,"isElevated")||l&&m(l,"isElevated")||c).call(r,(t=o&&m(o,"root"))&&m(t,"locals"),{name:"isElevated",hash:{},data:o,loc:{start:{line:8,column:59},end:{line:8,column:84}}}),{name:"ifAll",hash:{},fn:n.program(2,o,0),inverse:n.noop,data:o,loc:{start:{line:8,column:0},end:{line:10,column:10}}}))?t:"")+(null!=(t=m(e,"if").call(r,(m(e,"compare")||l&&m(l,"compare")||c).call(r,null!=l?m(l,"componentVariation"):l,"image_inline-small",{name:"compare",hash:{},data:o,loc:{start:{line:12,column:6},end:{line:12,column:55}}}),{name:"if",hash:{},fn:n.program(3,o,0),inverse:n.noop,data:o,loc:{start:{line:12,column:0},end:{line:14,column:7}}}))?t:"")+(null!=(t=m(e,"if").call(r,(m(e,"compare")||l&&m(l,"compare")||c).call(r,null!=l?m(l,"componentVariation"):l,"image_full-bleed",{name:"compare",hash:{},data:o,loc:{start:{line:15,column:6},end:{line:15,column:53}}}),{name:"if",hash:{},fn:n.program(4,o,0),inverse:n.program(5,o,0),data:o,loc:{start:{line:15,column:0},end:{line:19,column:7}}}))?t:"")+'\n"+(null!=(t=(m(e,"ifAll")||l&&m(l,"ifAll")||c).call(r,(t=(t=o&&m(o,"root"))&&m(t,"locals"))&&m(t,"modal"),(m(e,"compare")||l&&m(l,"compare")||c).call(r,null!=l?m(l,"url"):l,"",{name:"compare",hash:{},data:o,loc:{start:{line:39,column:30},end:{line:39,column:46}}}),{name:"ifAll",hash:{},fn:n.program(12,o,0),inverse:n.program(13,o,0),data:o,loc:{start:{line:39,column:2},end:{line:66,column:12}}}))?t:"")+" \n"},useData:!0}}}]); /* window.modules["559"] */ "use strict";(self.modules=self.modules||[]).push([["559"],{559:n=>{n.exports={0:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=i(e,"if").call(null!=l?l:n.nullContext||{},null!=l?i(l,"showSourcePartial"):l,{name:"if",hash:{},fn:n.program(1,o,0),inverse:n.noop,data:o,loc:{start:{line:2,column:4},end:{line:23,column:11}}}))?t:""},1:function(n,l,e,a,o){var t,i,r=null!=l?l:n.nullContext||{},c=n.hooks.helperMissing,u=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return' '+(null!=(t=u(e,"unless").call(r,null!=l?u(l,"isVideoCover"):l,{name:"unless",hash:{},fn:n.program(2,o,0),inverse:n.noop,data:o,loc:{start:{line:4,column:53},end:{line:4,column:150}}}))?t:"")+"\n"+(null!=(t=u(e,"unless").call(r,(u(e,"compare")||l&&u(l,"compare")||c).call(r,null!=l?u(l,"source"):l,"===","Affiliate Only",{name:"compare",hash:{},data:o,loc:{start:{line:5,column:22},end:{line:5,column:61}}}),{name:"unless",hash:{},fn:n.program(3,o,0),inverse:n.program(8,o,0),data:o,loc:{start:{line:5,column:12},end:{line:21,column:23}}}))?t:"")+" \n"},2:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return" • "+n.escapeExpression((i(e,"translate")||l&&i(l,"translate")||n.hooks.helperMissing).call(null!=l?l:n.nullContext||{},(t=(t=(t=o&&i(o,"root"))&&i(t,"locals"))&&i(t,"configuration"))&&i(t,"language"),"Source",{name:"translate",hash:{},data:o,loc:{start:{line:4,column:80},end:{line:4,column:138}}}))+":"},3:function(n,l,e,a,o){var t,i=null!=l?l:n.nullContext||{},r=n.hooks.helperMissing,c=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=c(e,"if").call(i,(c(e,"ternary")||l&&c(l,"ternary")||r).call(i,null!=l?c(l,"isVideoCover"):l,(c(e,"compare")||l&&c(l,"compare")||r).call(i,null!=l?c(l,"source"):l,"!==","CNN",{name:"compare",hash:{},data:o,loc:{start:{line:6,column:44},end:{line:6,column:72}}}),!0,{name:"ternary",hash:{},data:o,loc:{start:{line:6,column:22},end:{line:6,column:78}}}),{name:"if",hash:{},fn:n.program(4,o,0),inverse:n.noop,data:o,loc:{start:{line:6,column:16},end:{line:13,column:23}}}))?t:""},4:function(n,l,e,a,o){var t,i=null!=l?l:n.nullContext||{},r=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return" "+(null!=(t=r(e,"if").call(i,null!=l?r(l,"isVideoCover"):l,{name:"if",hash:{},fn:n.program(5,o,0),inverse:n.noop,data:o,loc:{start:{line:7,column:16},end:{line:7,column:46}}}))?t:"")+"\n"+(null!=(t=r(e,"if").call(i,null!=l?r(l,"sourceUrl"):l,{name:"if",hash:{},fn:n.program(6,o,0),inverse:n.program(7,o,0),data:o,loc:{start:{line:8,column:16},end:{line:12,column:23}}}))?t:"")},5:function(n,l,e,a,o){return" • "},6:function(n,l,e,a,o){var t,i=null!=l?l:n.nullContext||{},r=n.hooks.helperMissing,c="function",u=n.escapeExpression,s=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return' '+u(typeof(t=null!=(t=s(e,"source")||(null!=l?s(l,"source"):l))?t:r)===c?t.call(i,{name:"source",hash:{},data:o,loc:{start:{line:9,column:102},end:{line:9,column:112}}}):t)+"\n"},7:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return" "+n.escapeExpression("function"==typeof(t=null!=(t=i(e,"source")||(null!=l?i(l,"source"):l))?t:n.hooks.helperMissing)?t.call(null!=l?l:n.nullContext||{},{name:"source",hash:{},data:o,loc:{start:{line:11,column:20},end:{line:11,column:30}}}):t)+"\n"},8:function(n,l,e,a,o){var t,i=null!=l?l:n.nullContext||{},r=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return" "+(null!=(t=r(e,"if").call(i,null!=l?r(l,"isVideoCover"):l,{name:"if",hash:{},fn:n.program(5,o,0),inverse:n.noop,data:o,loc:{start:{line:15,column:16},end:{line:15,column:46}}}))?t:"")+"\n "+(null!=(t=r(e,"each").call(i,null!=l?r(l,"affiliateSources"):l,{name:"each",hash:{},fn:n.program(9,o,0),inverse:n.noop,data:o,loc:{start:{line:16,column:16},end:{line:20,column:25}}}))?t:"")},9:function(n,l,e,a,o){var t,i=null!=l?l:n.nullContext||{},r=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return(null!=(t=r(e,"if").call(i,(r(e,"compare")||l&&r(l,"compare")||n.hooks.helperMissing).call(i,o&&r(o,"index"),"!==",0,{name:"compare",hash:{},data:o,loc:{start:{line:16,column:48},end:{line:16,column:72}}}),{name:"if",hash:{},fn:n.program(10,o,0),inverse:n.noop,data:o,loc:{start:{line:16,column:42},end:{line:16,column:83}}}))?t:"")+"\n"+(null!=(t=r(e,"if").call(i,null!=l?r(l,"url"):l,{name:"if",hash:{},fn:n.program(11,o,0),inverse:n.program(12,o,0),data:o,loc:{start:{line:17,column:20},end:{line:19,column:43}}}))?t:"")+"\n"},10:function(n,l,e,a,o){return", "},11:function(n,l,e,a,o){var t,i=null!=l?l:n.nullContext||{},r=n.hooks.helperMissing,c="function",u=n.escapeExpression,s=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return' '+u(typeof(t=null!=(t=s(e,"name")||(null!=l?s(l,"name"):l))?t:r)===c?t.call(i,{name:"name",hash:{},data:o,loc:{start:{line:18,column:94},end:{line:18,column:102}}}):t)+"\n "},12:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return n.escapeExpression("function"==typeof(t=null!=(t=i(e,"name")||(null!=l?i(l,"name"):l))?t:n.hooks.helperMissing)?t.call(null!=l?l:n.nullContext||{},{name:"name",hash:{},data:o,loc:{start:{line:19,column:28},end:{line:19,column:36}}}):t)},13:function(n,l,e,a,o,t,i){var r,c,u=null!=l?l:n.nullContext||{},s=n.hooks.helperMissing,p="function",d=n.escapeExpression,m=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return' \n"+(null!=(r=m(e,"if").call(u,(m(e,"isElevated")||l&&m(l,"isElevated")||s).call(u,(r=o&&m(o,"root"))&&m(r,"locals"),{name:"isElevated",hash:{},data:o,loc:{start:{line:28,column:22},end:{line:28,column:47}}}),{name:"if",hash:{},fn:n.program(15,o,0,t,i),inverse:n.program(18,o,0,t,i),data:o,loc:{start:{line:28,column:16},end:{line:71,column:23}}}))?r:"")+' \n \n \n '+(null!=(r=(m(e,"read")||l&&m(l,"read")||s).call(u,"public/media/sites/cnn/icons/play-icon.svg",{name:"read",hash:{},data:o,loc:{start:{line:75,column:20},end:{line:75,column:77}}}))?r:"")+'\n \n \n \n '+d(typeof(c=null!=(c=m(e,"headline")||(null!=l?m(l,"headline"):l))?c:s)===p?c.call(u,{name:"headline",hash:{},data:o,loc:{start:{line:79,column:68},end:{line:79,column:80}}}):c)+' \n \n '+(null!=(r=m(e,"if").call(u,null!=l?m(l,"duration"):l,{name:"if",hash:{},fn:n.program(24,o,0,t,i),inverse:n.noop,data:o,loc:{start:{line:81,column:65},end:{line:81,column:181}}}))?r:"")+" "+(null!=(r=n.invokePartial(m(a,"sourcePartial"),l,{name:"sourcePartial",hash:{isVideoCover:!0,this:i[1]},data:o,helpers:e,partials:a,decorators:n.decorators}))?r:"")+" \n \n \n \n \n"},14:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return'style="background-image:url('+n.escapeExpression("function"==typeof(t=null!=(t=i(e,"thumb")||(null!=l?i(l,"thumb"):l))?t:n.hooks.helperMissing)?t.call(null!=l?l:n.nullContext||{},{name:"thumb",hash:{},data:o,loc:{start:{line:27,column:177},end:{line:27,column:186}}}):t)+')"'},15:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=i(e,"if").call(null!=l?l:n.nullContext||{},null!=l?i(l,"isVerticalOrientation"):l,{name:"if",hash:{},fn:n.program(16,o,0),inverse:n.program(17,o,0),data:o,loc:{start:{line:29,column:20},end:{line:48,column:27}}}))?t:""},16:function(n,l,e,a,o){var t,i=null!=l?l:n.nullContext||{},r=n.hooks.helperMissing,c=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=n.invokePartial(c(a,"image"),(c(e,"omitKey")||l&&c(l,"omitKey")||r).call(i,null!=(t=null!=l?c(l,"thumbnail"):l)?c(t,"0"):t,"cropRatio",{name:"omitKey",hash:{},data:o,loc:{start:{line:30,column:34},end:{line:30,column:69}}}),{name:"image",hash:{extraCropCommands:"ar_9:16,c_auto,g_auto,w_526",renderOnlyImg:(c(e,"ternary")||l&&c(l,"ternary")||r).call(i,(c(e,"compare")||l&&c(l,"compare")||r).call(i,(t=(t=(t=o&&c(o,"root"))&&c(t,"locals"))&&c(t,"configuration"))&&c(t,"pageType"),"===","live-story",{name:"compare",hash:{},data:o,loc:{start:{line:35,column:51},end:{line:35,column:115}}}),!1,!0,{name:"ternary",hash:{},data:o,loc:{start:{line:35,column:42},end:{line:35,column:127}}}),lazy:"true",static:"true",credit:!1,caption:!1},data:o,indent:" ",helpers:e,partials:a,decorators:n.decorators}))?t:""},17:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=n.invokePartial(i(a,"image"),null!=(t=null!=l?i(l,"thumbnail"):l)?i(t,"0"):t,{name:"image",hash:{fixedWidth:"",fixedHeight:"",fixedRatio:"",lazy:"true",static:"true",credit:!1,caption:!1},data:o,indent:" ",helpers:e,partials:a,decorators:n.decorators}))?t:""},18:function(n,l,e,a,o){var t,i=null!=l?l:n.nullContext||{},r=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=r(e,"if").call(i,(r(e,"compare")||l&&r(l,"compare")||n.hooks.helperMissing).call(i,(t=(t=(t=o&&r(o,"root"))&&r(t,"locals"))&&r(t,"configuration"))&&r(t,"pageType"),"===","live-story",{name:"compare",hash:{},data:o,loc:{start:{line:50,column:26},end:{line:50,column:90}}}),{name:"if",hash:{},fn:n.program(19,o,0),inverse:n.noop,data:o,loc:{start:{line:50,column:20},end:{line:70,column:27}}}))?t:""},19:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=i(e,"if").call(null!=l?l:n.nullContext||{},null!=l?i(l,"isVerticalOrientation"):l,{name:"if",hash:{},fn:n.program(20,o,0),inverse:n.program(21,o,0),data:o,loc:{start:{line:51,column:24},end:{line:69,column:31}}}))?t:""},20:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=n.invokePartial(i(a,"image"),(i(e,"omitKey")||l&&i(l,"omitKey")||n.hooks.helperMissing).call(null!=l?l:n.nullContext||{},null!=(t=null!=l?i(l,"thumbnail"):l)?i(t,"0"):t,"cropRatio",{name:"omitKey",hash:{},data:o,loc:{start:{line:52,column:38},end:{line:52,column:73}}}),{name:"image",hash:{extraCropCommands:"ar_9:16,c_auto,g_auto,w_526",lazy:"true",static:"true",credit:!1,caption:!1},data:o,indent:" ",helpers:e,partials:a,decorators:n.decorators}))?t:""},21:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=n.invokePartial(i(a,"image"),null!=(t=null!=l?i(l,"thumbnail"):l)?i(t,"0"):t,{name:"image",hash:{fixedWidth:"",fixedHeight:"",fixedRatio:"",lazy:"true",static:"true",credit:!1,caption:!1},data:o,indent:" ",helpers:e,partials:a,decorators:n.decorators}))?t:""},22:function(n,l,e,a,o){return' aria-hidden="true"'},23:function(n,l,e,a,o){return" spinner"},24:function(n,l,e,a,o){var t,i,r=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return''+(null!=(t=n.invokePartial(r(a,"durationDisplayPartial"),l,{name:"durationDisplayPartial",data:o,helpers:e,partials:a,decorators:n.decorators}))?t:"")+""},25:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=i(e,"if").call(null!=l?l:n.nullContext||{},null!=l?i(l,"duration"):l,{name:"if",hash:{},fn:n.program(26,o,0),inverse:n.noop,data:o,loc:{start:{line:89,column:4},end:{line:105,column:11}}}))?t:""},26:function(n,l,e,a,o){var t,i,r=null!=l?l:n.nullContext||{},c=n.hooks.helperMissing,u=n.escapeExpression,s=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return" "+u((s(e,"set")||l&&s(l,"set")||c).call(r,"durationDisplay",null!=l?s(l,"duration"):l,{name:"set",hash:{},data:o,loc:{start:{line:90,column:8},end:{line:90,column:44}}}))+"\n "+u((s(e,"set")||l&&s(l,"set")||c).call(r,"shouldTrimDuration",!1,{name:"set",hash:{},data:o,loc:{start:{line:91,column:8},end:{line:91,column:44}}}))+"\n"+(null!=(t=s(e,"if").call(r,(s(e,"isElevated")||l&&s(l,"isElevated")||c).call(r,(t=o&&s(o,"root"))&&s(t,"locals"),{name:"isElevated",hash:{},data:o,loc:{start:{line:92,column:14},end:{line:92,column:39}}}),{name:"if",hash:{},fn:n.program(27,o,0),inverse:n.noop,data:o,loc:{start:{line:92,column:8},end:{line:94,column:15}}}))?t:"")+(null!=(t=s(e,"if").call(r,(s(e,"compare")||l&&s(l,"compare")||c).call(r,(t=(t=(t=o&&s(o,"root"))&&s(t,"locals"))&&s(t,"configuration"))&&s(t,"pageType"),"===","video",{name:"compare",hash:{},data:o,loc:{start:{line:95,column:14},end:{line:95,column:73}}}),{name:"if",hash:{},fn:n.program(27,o,0),inverse:n.noop,data:o,loc:{start:{line:95,column:8},end:{line:97,column:15}}}))?t:"")+(null!=(t=s(e,"if").call(r,(s(e,"compare")||l&&s(l,"compare")||c).call(r,(t=(t=(t=o&&s(o,"root"))&&s(t,"locals"))&&s(t,"configuration"))&&s(t,"pageType"),"===","live-story",{name:"compare",hash:{},data:o,loc:{start:{line:98,column:14},end:{line:98,column:78}}}),{name:"if",hash:{},fn:n.program(27,o,0),inverse:n.noop,data:o,loc:{start:{line:98,column:8},end:{line:100,column:15}}}))?t:"")+(null!=(t=(s(e,"ifAll")||l&&s(l,"ifAll")||c).call(r,null!=l?s(l,"shouldTrimDuration"):l,(s(e,"compare")||l&&s(l,"compare")||c).call(r,(s(e,"sliceString")||l&&s(l,"sliceString")||c).call(r,null!=l?s(l,"duration"):l,0,1,{name:"sliceString",hash:{},data:o,loc:{start:{line:101,column:45},end:{line:101,column:71}}}),"===","0",{name:"compare",hash:{},data:o,loc:{start:{line:101,column:36},end:{line:101,column:82}}}),{name:"ifAll",hash:{},fn:n.program(28,o,0),inverse:n.noop,data:o,loc:{start:{line:101,column:8},end:{line:103,column:18}}}))?t:"")+" "+u("function"==typeof(i=null!=(i=s(e,"durationDisplay")||(null!=l?s(l,"durationDisplay"):l))?i:c)?i.call(r,{name:"durationDisplay",hash:{},data:o,loc:{start:{line:104,column:8},end:{line:104,column:27}}}):i)+"\n"},27:function(n,l,e,a,o){var t=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return" "+n.escapeExpression((t(e,"set")||l&&t(l,"set")||n.hooks.helperMissing).call(null!=l?l:n.nullContext||{},"shouldTrimDuration",!0,{name:"set",hash:{},data:o,loc:{start:{line:93,column:12},end:{line:93,column:47}}}))+"\n"},28:function(n,l,e,a,o){var t=null!=l?l:n.nullContext||{},i=n.hooks.helperMissing,r=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return" "+n.escapeExpression((r(e,"set")||l&&r(l,"set")||i).call(t,"durationDisplay",(r(e,"sliceString")||l&&r(l,"sliceString")||i).call(t,null!=l?r(l,"duration"):l,1,null,{name:"sliceString",hash:{},data:o,loc:{start:{line:102,column:37},end:{line:102,column:66}}}),{name:"set",hash:{},data:o,loc:{start:{line:102,column:12},end:{line:102,column:69}}}))+"\n"},29:function(n,l,e,a,o){var t,i=null!=l?l:n.nullContext||{},r=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return" "+n.escapeExpression((r(e,"set")||l&&r(l,"set")||n.hooks.helperMissing).call(i,"fixedRatio","9x16",{name:"set",hash:{},data:o,loc:{start:{line:109,column:4},end:{line:109,column:33}}}))+"\n\n"+(null!=(t=r(e,"if").call(i,null!=l?r(l,"isVerticalVideoEmbed"):l,{name:"if",hash:{},fn:n.program(30,o,0),inverse:n.noop,data:o,loc:{start:{line:111,column:4},end:{line:113,column:11}}}))?t:"")},30:function(n,l,e,a,o){var t=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return" "+n.escapeExpression((t(e,"set")||l&&t(l,"set")||n.hooks.helperMissing).call(null!=l?l:n.nullContext||{},"componentVariationOverride",null!=l?t(l,"componentVariation"):l,{name:"set",hash:{},data:o,loc:{start:{line:112,column:8},end:{line:112,column:64}}}))+"\n"},31:function(n,l,e,a,o){var t=null!=l?l:n.nullContext||{},i=n.hooks.helperMissing,r=n.escapeExpression,c=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return" "+r((c(e,"set")||l&&c(l,"set")||i).call(t,"fixedRatio","16x9",{name:"set",hash:{},data:o,loc:{start:{line:115,column:4},end:{line:115,column:33}}}))+"\n "+r((c(e,"set")||l&&c(l,"set")||i).call(t,"componentVariationOverride",null!=l?c(l,"componentVariation"):l,{name:"set",hash:{},data:o,loc:{start:{line:116,column:4},end:{line:116,column:60}}}))+"\n"},32:function(n,l,e,a,o){var t,i=null!=l?l:n.nullContext||{},r=n.hooks.helperMissing,c=n.escapeExpression,u=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return" "+c((u(e,"set")||l&&u(l,"set")||r).call(i,"thumb",(u(e,"generateSourceByDAM")||l&&u(l,"generateSourceByDAM")||r).call(i,null!=(t=null!=l?u(l,"thumbnail"):l)?u(t,"0"):t,"tablet",null!=l?u(l,"fixedRatio"):l,{name:"generateSourceByDAM",hash:{},data:o,loc:{start:{line:120,column:19},end:{line:120,column:74}}}),{name:"set",hash:{},data:o,loc:{start:{line:120,column:4},end:{line:120,column:77}}}))+"\n "+c((u(e,"set")||l&&u(l,"set")||r).call(i,"faveThumbnails",(u(e,"replace")||l&&u(l,"replace")||r).call(i,'{"big": { "uri": "thumb" }, "small": { "uri": "thumb" } }',"thumb",null!=l?u(l,"thumb"):l,{name:"replace",hash:{},data:o,loc:{start:{line:121,column:28},end:{line:121,column:112}}}),{name:"set",hash:{},data:o,loc:{start:{line:121,column:4},end:{line:121,column:114}}}))+"\n"},33:function(n,l,e,a,o){return"video-resource "},34:function(n,l,e,a,o){return" vertical-video"},35:function(n,l,e,a,o){var t,i,r=null!=l?l:n.nullContext||{},c=n.hooks.helperMissing,u="function",s=n.escapeExpression,p=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return' data-position="'+s(typeof(i=null!=(i=p(e,"index")||(null!=l?p(l,"index"):l))?i:c)===u?i.call(r,{name:"index",hash:{},data:o,loc:{start:{line:135,column:17},end:{line:135,column:26}}}):i)+'"\n data-index="idx-'+s(typeof(i=null!=(i=p(e,"index")||(null!=l?p(l,"index"):l))?i:c)===u?i.call(r,{name:"index",hash:{},data:o,loc:{start:{line:136,column:18},end:{line:136,column:27}}}):i)+'"\n data-video-instance="'+s(typeof(i=null!=(i=p(e,"_ref")||(null!=l?p(l,"_ref"):l))?i:c)===u?i.call(r,{name:"_ref",hash:{},data:o,loc:{start:{line:137,column:23},end:{line:137,column:31}}}):i)+'"\n role="button"\n tabindex="0"\n aria-label="'+s(typeof(i=null!=(i=p(e,"videoLabel")||(null!=l?p(l,"videoLabel"):l))?i:c)===u?i.call(r,{name:"videoLabel",hash:{},data:o,loc:{start:{line:140,column:14},end:{line:140,column:28}}}):i)+(null!=(t=p(e,"if").call(r,null!=l?p(l,"durationForScreenReader"):l,{name:"if",hash:{},fn:n.program(36,o,0),inverse:n.noop,data:o,loc:{start:{line:140,column:28},end:{line:140,column:95}}}))?t:"")+", "+s(typeof(i=null!=(i=p(e,"headline")||(null!=l?p(l,"headline"):l))?i:c)===u?i.call(r,{name:"headline",hash:{},data:o,loc:{start:{line:140,column:97},end:{line:140,column:109}}}):i)+'"\n'},36:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return", "+n.escapeExpression("function"==typeof(t=null!=(t=i(e,"durationForScreenReader")||(null!=l?i(l,"durationForScreenReader"):l))?t:n.hooks.helperMissing)?t.call(null!=l?l:n.nullContext||{},{name:"durationForScreenReader",hash:{},data:o,loc:{start:{line:140,column:61},end:{line:140,column:88}}}):t)},37:function(n,l,e,a,o){var t,i=null!=l?l:n.nullContext||{},r=n.hooks.helperMissing,c="function",u=n.escapeExpression,s=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return' data-analytics-aggregate-events="true"\n data-custom-experience="'+u(typeof(t=null!=(t=s(e,"customExperience")||(null!=l?s(l,"customExperience"):l))?t:r)===c?t.call(i,{name:"customExperience",hash:{},data:o,loc:{start:{line:149,column:26},end:{line:149,column:46}}}):t)+'"\n data-asset-type="'+u(typeof(t=null!=(t=s(e,"assetType")||(null!=l?s(l,"assetType"):l))?t:r)===c?t.call(i,{name:"assetType",hash:{},data:o,loc:{start:{line:150,column:19},end:{line:150,column:32}}}):t)+'"\n data-content-type="'+u(typeof(t=null!=(t=s(e,"contentType")||(null!=l?s(l,"contentType"):l))?t:r)===c?t.call(i,{name:"contentType",hash:{},data:o,loc:{start:{line:151,column:21},end:{line:151,column:36}}}):t)+'"\n data-medium-env="'+u(typeof(t=null!=(t=s(e,"mediumEnv")||(null!=l?s(l,"mediumEnv"):l))?t:r)===c?t.call(i,{name:"mediumEnv",hash:{},data:o,loc:{start:{line:152,column:19},end:{line:152,column:32}}}):t)+'"\n data-autostart="'+u(typeof(t=null!=(t=s(e,"autostart")||(null!=l?s(l,"autostart"):l))?t:r)===c?t.call(i,{name:"autostart",hash:{},data:o,loc:{start:{line:153,column:18},end:{line:153,column:31}}}):t)+'"\n data-show-ads="'+u(typeof(t=null!=(t=s(e,"showAds")||(null!=l?s(l,"showAds"):l))?t:r)===c?t.call(i,{name:"showAds",hash:{},data:o,loc:{start:{line:154,column:17},end:{line:154,column:28}}}):t)+'"\n data-source="'+u(typeof(t=null!=(t=s(e,"source")||(null!=l?s(l,"source"):l))?t:r)===c?t.call(i,{name:"source",hash:{},data:o,loc:{start:{line:155,column:15},end:{line:155,column:25}}}):t)+'"\n data-featured-video="true"\n'},38:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=n.invokePartial(i(a,"sourcePartial"),l,{name:"sourcePartial",data:o,helpers:e,partials:a,decorators:n.decorators}))?t:""},39:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return n.escapeExpression("function"==typeof(t=null!=(t=i(e,"faveThumbnails")||(null!=l?i(l,"faveThumbnails"):l))?t:n.hooks.helperMissing)?t.call(null!=l?l:n.nullContext||{},{name:"faveThumbnails",hash:{},data:o,loc:{start:{line:163,column:47},end:{line:163,column:65}}}):t)},40:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=n.invokePartial(i(a,"show"),null!=l?i(l,"show"):l,{name:"show",data:o,helpers:e,partials:a,decorators:n.decorators}))?t:""},41:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=n.invokePartial(i(a,"byline"),null!=l?i(l,"byline"):l,{name:"byline",data:o,helpers:e,partials:a,decorators:n.decorators}))?t:""},42:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=n.invokePartial(i(a,"timestamp"),null!=l?i(l,"timestamp"):l,{name:"timestamp",data:o,helpers:e,partials:a,decorators:n.decorators}))?t:""},43:function(n,l,e,a,o){return' data-unselectable="true"\n'},44:function(n,l,e,a,o){return' data-vertical-orientation="true"\n'},45:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return" "+(null!=(t=(i(e,"kilnEditButton")||l&&i(l,"kilnEditButton")||n.hooks.helperMissing).call(null!=l?l:n.nullContext||{},"Video",{name:"kilnEditButton",hash:{},data:o,loc:{start:{line:189,column:8},end:{line:189,column:36}}}))?t:"")+"\n"},46:function(n,l,e,a,o){var t,i=null!=l?l:n.nullContext||{},r=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return(null!=(t=r(e,"if").call(i,null!=l?r(l,"inPlaylist"):l,{name:"if",hash:{},fn:n.program(47,o,0),inverse:n.program(50,o,0),data:o,loc:{start:{line:191,column:12},end:{line:252,column:19}}}))?t:"")+(null!=(t=r(e,"if").call(i,null!=l?r(l,"videoId"):l,{name:"if",hash:{},fn:n.program(51,o,0),inverse:n.noop,data:o,loc:{start:{line:253,column:8},end:{line:310,column:15}}}))?t:"")},47:function(n,l,e,a,o){var t,i,r=null!=l?l:n.nullContext||{},c=n.hooks.helperMissing,u="function",s=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return' \n'+(null!=(t=s(e,"if").call(r,null!=l?s(l,"imageRatios"):l,{name:"if",hash:{},fn:n.program(48,o,0),inverse:n.program(49,o,0),data:o,loc:{start:{line:193,column:20},end:{line:214,column:27}}}))?t:"")+" "+(null!=(t=typeof(i=null!=(i=s(e,"afterMediaHtml")||(null!=l?s(l,"afterMediaHtml"):l))?i:c)===u?i.call(r,{name:"afterMediaHtml",hash:{},data:o,loc:{start:{line:215,column:20},end:{line:215,column:40}}}):i)?t:"")+"\n \n"},48:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=n.invokePartial(i(a,"image"),null!=(t=null!=l?i(l,"thumbnail"):l)?i(t,"0"):t,{name:"image",hash:{fixedRatio:"",customRatios:"",lazy:null!=l?i(l,"lazy"):l,ratios:null!=l?i(l,"imageRatios"):l,static:"true",credit:!1,caption:!1},data:o,indent:" ",helpers:e,partials:a,decorators:n.decorators}))?t:""},49:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=n.invokePartial(i(a,"image"),null!=(t=null!=l?i(l,"thumbnail"):l)?i(t,"0"):t,{name:"image",hash:{customRatios:"",lazy:null!=l?i(l,"lazy"):l,fixedHeight:"",fixedRatio:null!=l?i(l,"fixedRatio"):l,fixedWidth:null!=(t=null!=l?i(l,"config"):l)?i(t,"thumbnailWidth"):t,static:"true",credit:!1,caption:!1},data:o,indent:" ",helpers:e,partials:a,decorators:n.decorators}))?t:""},50:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=n.invokePartial(i(a,"video-player"),null!=l?i(l,"videoPlayer"):l,{name:"video-player",hash:{mediaMetadata:null!=l?i(l,"mediaMetadata"):l,checkEventBasedPreview:null!=l?i(l,"checkEventBasedPreview"):l,cardUrl:null!=l?i(l,"cardUrl"):l,videoResourceUri:null!=l?i(l,"_ref"):l,videoResourceParentUri:null!=l?i(l,"parentUri"):l,posterImageOverride:null!=l?i(l,"faveThumbnails"):l,networkId:null!=l?i(l,"networkId"):l,mediumEnv:null!=l?i(l,"mediumEnv"):l,isVerticalVideoEmbed:null!=l?i(l,"isVerticalVideoEmbed"):l,isVerticalVideo:null!=l?i(l,"isVerticalOrientation"):l,live:null!=l?i(l,"live"):l,description:null!=l?i(l,"description"):l,videoId:null!=l?i(l,"videoId"):l,authType:null!=l?i(l,"authType"):l,autostart:null!=l?i(l,"autostart"):l,tagNames:null!=(t=null!=l?i(l,"tags"):l)?i(t,"tagNames"):t,firstPublishSlug:null!=l?i(l,"firstPublishSlug"):l,slug:null!=l?i(l,"slug"):l,brandingSlug:null!=(t=null!=(t=null!=l?i(l,"branding"):l)?i(t,"0"):t)?i(t,"slug"):t,canonicalUrl:null!=l?i(l,"canonicalUrl"):l,section:null!=l?i(l,"section"):l,firstPublished:null!=l?i(l,"firstPublished"):l,showAds:null!=l?i(l,"showAds"):l,fixedRatio:null!=l?i(l,"fixedRatio"):l,headline:null!=l?i(l,"headline"):l,editId:null!=l?i(l,"editId"):l,mediaId:null!=l?i(l,"mediaId"):l,duration:null!=l?i(l,"duration"):l,thumbnail:null!=(t=null!=l?i(l,"thumbnail"):l)?i(t,"0"):t,contentType:null!=l?i(l,"contentType"):l,parentComponentVariation:null!=l?i(l,"componentVariationOverride"):l,customExperience:null!=l?i(l,"customExperience"):l},data:o,indent:" ",helpers:e,partials:a,decorators:n.decorators}))?t:""},51:function(n,l,e,a,o){var t,i,r=null!=l?l:n.nullContext||{},c=n.hooks.helperMissing,u="function",s=n.escapeExpression,p=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return(null!=(t=p(e,"if").call(r,null!=l?p(l,"showAdFeedback"):l,{name:"if",hash:{},fn:n.program(52,o,0),inverse:n.noop,data:o,loc:{start:{line:254,column:16},end:{line:258,column:23}}}))?t:"")+' \n '+s(typeof(i=null!=(i=p(e,"headline")||(null!=l?p(l,"headline"):l))?i:c)===u?i.call(r,{name:"headline",hash:{},data:o,loc:{start:{line:260,column:138},end:{line:260,column:150}}}):i)+"\n \n"+(null!=(t=p(e,"if").call(r,null!=(t=null!=l?p(l,"config"):l)?p(t,"fullDetails"):t,{name:"if",hash:{},fn:n.program(54,o,0),inverse:n.program(62,o,0),data:o,loc:{start:{line:262,column:20},end:{line:294,column:28}}}))?t:"")+' \n'+(null!=(t=p(e,"if").call(r,null!=l?p(l,"duration"):l,{name:"if",hash:{},fn:n.program(64,o,0),inverse:n.noop,data:o,loc:{start:{line:296,column:24},end:{line:303,column:31}}}))?t:"")+(null!=(t=(p(e,"ifAll")||l&&p(l,"ifAll")||c).call(r,null!=l?p(l,"inPlaylist"):l,(p(e,"not")||l&&p(l,"not")||c).call(r,(p(e,"isElevated")||l&&p(l,"isElevated")||c).call(r,(t=o&&p(o,"root"))&&p(t,"locals"),{name:"isElevated",hash:{},data:o,loc:{start:{line:304,column:49},end:{line:304,column:74}}}),{name:"not",hash:{},data:o,loc:{start:{line:304,column:44},end:{line:304,column:75}}}),{name:"ifAll",hash:{},fn:n.program(66,o,0),inverse:n.noop,data:o,loc:{start:{line:304,column:24},end:{line:306,column:34}}}))?t:"")+(null!=(t=n.invokePartial(p(a,"sourcePartial"),l,{name:"sourcePartial",data:o,indent:" ",helpers:e,partials:a,decorators:n.decorators}))?t:"")+" \n \n"},52:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return' \n '+(null!=(t=(i(e,"adFeedbackLink")||l&&i(l,"adFeedbackLink")||n.hooks.helperMissing).call(null!=l?l:n.nullContext||{},"VIDEO","",{name:"adFeedbackLink",hash:{},data:o,loc:{start:{line:256,column:24},end:{line:256,column:56}}}))?t:"")+"\n \n"},53:function(n,l,e,a,o){return'data-editable="headline" '},54:function(n,l,e,a,o){var t,i,r=null!=l?l:n.nullContext||{},c=n.hooks.helperMissing,u="function",s=n.escapeExpression,p=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return' \n'+(null!=(t=n.invokePartial(p(a,"show"),null!=l?p(l,"show"):l,{name:"show",data:o,indent:" ",helpers:e,partials:a,decorators:n.decorators}))?t:"")+" \n"+(null!=(t=p(e,"if").call(r,null!=(t=null!=l?p(l,"config"):l)?p(t,"displayByline"):t,{name:"if",hash:{},fn:n.program(55,o,0),inverse:n.noop,data:o,loc:{start:{line:266,column:24},end:{line:270,column:31}}}))?t:"")+(null!=(t=p(e,"if").call(r,null!=(t=null!=l?p(l,"config"):l)?p(t,"displayTimestamp"):t,{name:"if",hash:{},fn:n.program(56,o,0),inverse:n.noop,data:o,loc:{start:{line:271,column:24},end:{line:275,column:31}}}))?t:"")+(null!=(t=p(e,"if").call(r,null!=l?p(l,"socialShare"):l,{name:"if",hash:{},fn:n.program(57,o,0),inverse:n.noop,data:o,loc:{start:{line:276,column:24},end:{line:278,column:31}}}))?t:"")+(null!=(t=p(e,"unless").call(r,null!=l?p(l,"isArabic"):l,{name:"unless",hash:{},fn:n.program(58,o,0),inverse:n.noop,data:o,loc:{start:{line:279,column:24},end:{line:283,column:35}}}))?t:"")+' '+(null!=(t=typeof(i=null!=(i=p(e,"description")||(null!=l?p(l,"description"):l))?i:c)===u?i.call(r,{name:"description",hash:{},data:o,loc:{start:{line:284,column:187},end:{line:284,column:204}}}):i)?t:"")+" \n"+(null!=(t=p(e,"if").call(r,null!=l?p(l,"isArabic"):l,{name:"if",hash:{},fn:n.program(60,o,0),inverse:n.noop,data:o,loc:{start:{line:285,column:24},end:{line:289,column:31}}}))?t:"")},55:function(n,l,e,a,o){var t,i,r=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return' \n'+(null!=(t=n.invokePartial(r(a,"byline"),null!=l?r(l,"byline"):l,{name:"byline",data:o,indent:" ",helpers:e,partials:a,decorators:n.decorators}))?t:"")+" \n"},56:function(n,l,e,a,o){var t,i,r=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return' \n'+(null!=(t=n.invokePartial(r(a,"timestamp"),null!=l?r(l,"timestamp"):l,{name:"timestamp",data:o,indent:" ",helpers:e,partials:a,decorators:n.decorators}))?t:"")+" \n"},57:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=n.invokePartial(i(a,"social-share"),null!=l?i(l,"socialShare"):l,{name:"social-share",data:o,indent:" ",helpers:e,partials:a,decorators:n.decorators}))?t:""},58:function(n,l,e,a,o){var t,i,r=null!=l?l:n.nullContext||{},c=n.hooks.helperMissing,u=n.escapeExpression,s=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return' \n '+(null!=(t=(s(e,"read")||l&&s(l,"read")||c).call(r,"public/media/sites/cnn/icons/ui-caret-up.svg",{name:"read",hash:{},data:o,loc:{start:{line:281,column:28},end:{line:281,column:85}}}))?t:"")+"\n \n"},59:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return n.escapeExpression("function"==typeof(t=null!=(t=i(e,"componentVariation")||(null!=l?i(l,"componentVariation"):l))?t:n.hooks.helperMissing)?t.call(null!=l?l:n.nullContext||{},{name:"componentVariation",hash:{},data:o,loc:{start:{line:284,column:135},end:{line:284,column:157}}}):t)+"__description--hidden"},60:function(n,l,e,a,o){var t,i,r=null!=l?l:n.nullContext||{},c=n.hooks.helperMissing,u=n.escapeExpression,s=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return' \n '+(null!=(t=(s(e,"read")||l&&s(l,"read")||c).call(r,"public/media/sites/cnn/icons/ui-caret-up.svg",{name:"read",hash:{},data:o,loc:{start:{line:287,column:28},end:{line:287,column:85}}}))?t:"")+"\n \n"},61:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return n.escapeExpression("function"==typeof(t=null!=(t=i(e,"componentVariation")||(null!=l?i(l,"componentVariation"):l))?t:n.hooks.helperMissing)?t.call(null!=l?l:n.nullContext||{},{name:"componentVariation",hash:{},data:o,loc:{start:{line:286,column:95},end:{line:286,column:117}}}):t)+"__description-toggle--hidden"},62:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=(i(e,"ifAny")||l&&i(l,"ifAny")||n.hooks.helperMissing).call(null!=l?l:n.nullContext||{},null!=l?i(l,"isVerticalVideo"):l,null!=l?i(l,"isVerticalOrientation"):l,{name:"ifAny",hash:{},fn:n.program(63,o,0),inverse:n.noop,data:o,loc:{start:{line:291,column:24},end:{line:293,column:34}}}))?t:""},63:function(n,l,e,a,o){var t,i,r=null!=l?l:n.nullContext||{},c=n.hooks.helperMissing,u="function",s=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return' '+(null!=(t=typeof(i=null!=(i=s(e,"description")||(null!=l?s(l,"description"):l))?i:c)===u?i.call(r,{name:"description",hash:{},data:o,loc:{start:{line:292,column:124},end:{line:292,column:141}}}):i)?t:"")+" \n"},64:function(n,l,e,a,o){var t,i,r=null!=l?l:n.nullContext||{},c=n.hooks.helperMissing,u="function",s=n.escapeExpression,p=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return' \n'+(null!=(t=(p(e,"ifAll")||l&&p(l,"ifAll")||c).call(r,null!=l?p(l,"inPlaylist"):l,(p(e,"not")||l&&p(l,"not")||c).call(r,(p(e,"isElevated")||l&&p(l,"isElevated")||c).call(r,(t=o&&p(o,"root"))&&p(t,"locals"),{name:"isElevated",hash:{},data:o,loc:{start:{line:298,column:57},end:{line:298,column:82}}}),{name:"not",hash:{},data:o,loc:{start:{line:298,column:52},end:{line:298,column:83}}}),{name:"ifAll",hash:{},fn:n.program(65,o,0),inverse:n.noop,data:o,loc:{start:{line:298,column:32},end:{line:300,column:42}}}))?t:"")+(null!=(t=n.invokePartial(p(a,"durationDisplayPartial"),l,{name:"durationDisplayPartial",data:o,indent:" ",helpers:e,partials:a,decorators:n.decorators}))?t:"")+" \n"},65:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return" "+(null!=(t=(i(e,"read")||l&&i(l,"read")||n.hooks.helperMissing).call(null!=l?l:n.nullContext||{},"public/media/sites/cnn/icons/sig-video.svg",{name:"read",hash:{},data:o,loc:{start:{line:299,column:36},end:{line:299,column:91}}}))?t:"")+"\n"},66:function(n,l,e,a,o){var t,i,r=null!=l?l:n.nullContext||{},c=n.hooks.helperMissing,u=n.escapeExpression,s=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return' '+u((s(e,"translate")||l&&s(l,"translate")||c).call(r,(t=(t=(t=o&&s(o,"root"))&&s(t,"locals"))&&s(t,"configuration"))&&s(t,"language"),"Now playing",{name:"translate",hash:{},data:o,loc:{start:{line:305,column:78},end:{line:305,column:141}}}))+" \n"},67:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return' \n'},68:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=n.invokePartial(i(a,"videoCoverPartial"),l,{name:"videoCoverPartial",data:o,indent:" ",helpers:e,partials:a,decorators:n.decorators}))?t:""},69:function(n,l,e,a,o){var t,i=null!=l?l:n.nullContext||{},r=n.hooks.helperMissing,c=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=(c(e,"ifAll")||l&&c(l,"ifAll")||r).call(i,(c(e,"not")||l&&c(l,"not")||r).call(i,null!=l?c(l,"inPlaylist"):l,{name:"not",hash:{},data:o,loc:{start:{line:319,column:21},end:{line:319,column:37}}}),(c(e,"not")||l&&c(l,"not")||r).call(i,null!=l?c(l,"isFeatured"):l,{name:"not",hash:{},data:o,loc:{start:{line:319,column:38},end:{line:319,column:54}}}),{name:"ifAll",hash:{},fn:n.program(70,o,0),inverse:n.noop,data:o,loc:{start:{line:319,column:12},end:{line:321,column:22}}}))?t:""},70:function(n,l,e,a,o){var t,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return null!=(t=n.invokePartial(i(a,"videoCoverPartial"),l,{name:"videoCoverPartial",data:o,indent:" ",helpers:e,partials:a,decorators:n.decorators}))?t:""},71:function(n,l,e,a,o){return" \n"},compiler:[8,">= 4.3.0"],main:function(n,l,e,a,o,t,i){var r,c,u,s=null!=l?l:n.nullContext||{},p=n.hooks.helperMissing,d=n.escapeExpression,m="function",h=n.hooks.blockHelperMissing,f=n.lambda,y=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]},v="\n\n\n"+(null!=(r=(y(e,"ifAny")||l&&y(l,"ifAny")||p).call(s,null!=l?y(l,"isVerticalVideo"):l,null!=l?y(l,"isVerticalOrientation"):l,{name:"ifAny",hash:{},fn:n.program(29,o,0,t,i),inverse:n.program(31,o,0,t,i),data:o,loc:{start:{line:108,column:0},end:{line:117,column:10}}}))?r:"")+"\n"+(null!=(r=y(e,"if").call(s,null!=(r=null!=l?y(l,"thumbnail"):l)?y(r,"0"):r,{name:"if",hash:{},fn:n.program(32,o,0,t,i),inverse:n.noop,data:o,loc:{start:{line:119,column:0},end:{line:122,column:7}}}))?r:"")+"\n"+d((y(e,"set")||l&&y(l,"set")||p).call(s,"elevatedComponentVariation",(y(e,"elevateWhenNeeded")||l&&y(l,"elevateWhenNeeded")||p).call(s,null!=l?y(l,"componentVariation"):l,(r=o&&y(o,"root"))&&y(r,"locals"),{name:"elevateWhenNeeded",hash:{},data:o,loc:{start:{line:124,column:36},end:{line:124,column:87}}}),{name:"set",hash:{},data:o,loc:{start:{line:124,column:0},end:{line:124,column:89}}}))+'\n\n\n'+(null!=(r=(y(e,"ifAll")||l&&y(l,"ifAll")||p).call(s,(r=(r=o&&y(o,"root"))&&y(r,"locals"))&&y(r,"modal"),(y(e,"compare")||l&&y(l,"compare")||p).call(s,null!=l?y(l,"videoId"):l,"",{name:"compare",hash:{},data:o,loc:{start:{line:188,column:32},end:{line:188,column:52}}}),{name:"ifAll",hash:{},fn:n.program(45,o,0,t,i),inverse:n.program(46,o,0,t,i),data:o,loc:{start:{line:188,column:4},end:{line:311,column:14}}}))?r:"")+(null!=(r=y(e,"unless").call(s,null!=l?y(l,"displayVideoCover"):l,{name:"unless",hash:{},fn:n.program(67,o,0,t,i),inverse:n.noop,data:o,loc:{start:{line:312,column:4},end:{line:314,column:15}}}))?r:"")+(null!=(r=y(e,"if").call(s,(y(e,"isElevated")||l&&y(l,"isElevated")||p).call(s,(r=o&&y(o,"root"))&&y(r,"locals"),{name:"isElevated",hash:{},data:o,loc:{start:{line:316,column:14},end:{line:316,column:39}}}),{name:"if",hash:{},fn:n.program(68,o,0,t,i),inverse:n.program(69,o,0,t,i),data:o,loc:{start:{line:316,column:8},end:{line:322,column:15}}}))?r:"")+(null!=(r=y(e,"unless").call(s,null!=l?y(l,"displayVideoCover"):l,{name:"unless",hash:{},fn:n.program(71,o,0,t,i),inverse:n.noop,data:o,loc:{start:{line:323,column:4},end:{line:325,column:15}}}))?r:"")+" \n"},main_d:function(n,l,e,a,o,t,i){var r=e.decorators,c=e.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]},u=c(r,"inline");if("function"!=typeof u)throw Error('Missing decorator: "inline"');n=u(n,l,e,{name:"inline",hash:{},fn:e.program(0,o,0,t,i),inverse:e.noop,args:["sourcePartial"],data:o,loc:{start:{line:1,column:0},end:{line:24,column:11}}})||n;var u=c(r,"inline");if("function"!=typeof u)throw Error('Missing decorator: "inline"');n=u(n,l,e,{name:"inline",hash:{},fn:e.program(13,o,0,t,i),inverse:e.noop,args:["videoCoverPartial"],data:o,loc:{start:{line:26,column:0},end:{line:86,column:11}}})||n;var u=c(r,"inline");if("function"!=typeof u)throw Error('Missing decorator: "inline"');return n=u(n,l,e,{name:"inline",hash:{},fn:e.program(25,o,0,t,i),inverse:e.noop,args:["durationDisplayPartial"],data:o,loc:{start:{line:88,column:0},end:{line:106,column:11}}})||n},useDecorators:!0,usePartial:!0,useData:!0,useDepths:!0}}}]); /* window.modules["560"] */ "use strict";(self.modules=self.modules||[]).push([["560"],{560:(e,t,s)=>{let n=s("2588"),{isEdition:o}=s("234"),{getConfigObject:a}=s("546"),i=s("454"),l=s("112");async function c(e){let t=a("michonne","video.fave",o(window.location.hostname))||{};i(window.FAVE.settings,t);try{l(window.FAVE,"settings.userTracking.categories.v2",window.WM.UserConsent.getConsentState())}catch(e){console.error("WM consent state unavailable")}await n.setGlobalValues(e)}e.exports={setGlobalSettings:c}}}]); /* window.modules["561"] */ "use strict";(self.modules=self.modules||[]).push([["561"],{561:(e,t,a)=>{let i=a("24"),l=i.get("CONVIVA_CUSTOMER_KEY"),n=i.get("MUX_ENVIRONMENT_KEY"),{convertToBoolean:r}=a("13"),s=i.get("ZION_ENV"),d=i.get("MEDIUM_SERVICE_ENVIRONMENT"),o=i.get("BOLT_ENVIRONMENT"),{getSSID:m}=a("545"),u=i.get("CONTENT_HUB_UNIQUE_DEPLOYMENT_KEY"),c=i.get("CONTENT_HUB_ENV"),p=i.get("AWS_REGION"),{isEdition:y}=a("234"),{isAuthLiveVideo:T,isAuthVideo:E}=a("14"),{parseJSON:h}=a("15"),{getUserAccessLevel:v}=a("76"),{isEspanolPage:N,isArabicPage:g}=a("1"),I=a("112"),U=a("113"),V=a("454"),{isLiveVideo:M,isUKLive:_,determineAutoStart:C,getMediaPlayer:O,isVideoClip:b,isVideoAutoStartEnabled:f,AUTO_PLAY_TYPE:R,getTopAdProfile:w,isCVPLiveStream:A,FREEVIEW_ENDSLATE_AUTOPLAY_SETTINGS:L,AUTH_TYPES:D,getContinuousVariation:B}=a("14"),{calculateSsaiProfile:K}=a("563"),{setLiveStreamAnalyticsTitle:S,setAuthTypeAnalytics:k}=a("23"),{getConfigObject:Y}=a("546"),{getSite:x}=a("131"),{getContentModel:H}=a("1"),P=["series","film","featured"];async function z({adSection:e,assetType:t,authType:a=[],contentType:i,checkEventBasedPreview:z,authentication:G=null,autostart:Q=!1,customExperience:W="",muteOverlay:X=!0,customMediumEnv:Z,headline:j,isMobileViewport:q,markupId:F,networkId:J,posterImageOverride:$=!1,showAds:ee=!0,title:et,videoId:ea,mediaId:ei,boltId:el,videoResourceParentUri:en,videoResourceUri:er,...es}){let ed=y(window.location.hostname),eo=U(window,"CNN.contentModel",{}),em=Y("michonne","video.fave",ed),eu=a?.includes(D.DTC),ec=P.includes(eo.templateType),ep=Y("michonne","features.enableAutoplayBlock",ed),ey=C(Q),eT=B(),eE=a?.length>0?a=Array.isArray(a="string"==typeof a?a.split(","):a)?a:[a]:T(ea)?[D.LIVEAUTH]:ec?[D.TVE]:eu?[D.DTC]:[];eT&&eu&&T(ea)&&(ey=L[eT]);let{autoplay:eh,autoplayType:ev}=ey,eN=!r(ep)&&eh,eg=eE.includes(D.DTC)?"DTC":et,eI={...es,mediaId:ei,autostart:f(eN,eo),autostartType:ev,isDTC:eu,isLive:M(ea),markupId:F,site:N()&&"cnn-espanol"||g()&&"cnn-arabic"||"cnn",adobeAnalytics:{enabled:!0},conviva:{customerKey:l},mux:{environmentKey:n},zion:{environment:s.toLowerCase()},player:{poster:{onlyUseOverride:!0},autoplay:{muted:{enabled:ev===R.MUTED},overlay:X}},ads:w({contentModel:eo,contentType:i,isEditionSite:ed,isMobileViewport:q}),mediaPlayer:O(ed),authentication:G,freewheel:{enabled:ee},isCustomAutostartExperience:ev===R.SCROLL,server:{medium:{assetType:t??"hlsTs",environment:Z??d},edition:ed?"international":"domestic"},bolt:{appConfig:{environment:o}},customExperience:W,adsection:e,posterImageOverride:h($,!0),contentType:M(ea)?"live-stream":i,rawContentType:i,authType:eE,videoResourceParentUri:en,videoResourceUri:er};if(b(i)){let e=es.mediaMetadata?h(es.mediaMetadata,!0):null;e?.mediumId||e?.boltId?I(eI,"mediaMetadata",e):delete eI.mediaMetadata,I(eI,"stellarUri",en??er),I(eI,"stellarUdk",u),I(eI,"stellarSite",x(H())),"prod"!==c&&I(eI,"stellarRegion",p)}else{let e=A(ea)?ei:ea;I(eI,"mediaMetadata",{mediumId:e,id:e,boltId:el,headline:j||eg})}return $&&(I(eI,"player.poster.overrideImages.big","big"),I(eI,"player.poster.overrideImages.small","small")),eI.isVerticalVideo&&I(eI,"player.ui.theme.verticalVideoUi.shouldRender",!0),I(eI,"player.ui.theme.authType",eI.authType),I(eI,"player.ui.theme.subscriptionUi.shouldRender",eu),I(eI,"player.ui.theme.subscriptionUi.access_level",await v()),eI.isVerticalVideoEmbed&&(I(eI,"player.ui.theme.verticalVideoUi.shouldRender",!0),I(eI,"player.ui.theme.verticalVideoUi.fullscreenToggle.shouldRender",!0)),eI.el&&I(eI,"adsection",m(eI.el,q)),eI.isLive&&(I(eI,"networkId",J),I(eI,"checkEventBasedPreview",z),S(eI)),_(W)&&I(eI,"mediaMetadata",{mediumId:ea,boltId:el}),E(eI.authType)&&"cnn"===eI.site&&K(eI,eg,q),k(eI),V(em,eI),eI}e.exports={build:z}}}]); /* window.modules["562"] */ "use strict";(self.modules=self.modules||[]).push([["562"],{562:(e,t,n)=>{let o=n("24"),{isPageVariant:i,PAGE_VARIANTS:c}=n("6"),{convertToBoolean:r}=n("13"),{handleContentDiscoveryAuth:s}=n("20"),l=n("16").setup({file:"/index.js"});function u(){return i(c.TVE_DTC_VIDEO)}function f(e){return r(o.get("BOLT_CONTENT_DISCOVERY_ENABLED"))&&e?.isLive===!0&&!u()}e.exports={isDtcWatchPage:u,isLiveContentDiscoveryEnabled:f,applyLiveContentDiscoveryConfig:function(e){if(!f(e))return e;let t={...e.bolt||{}};return t.contentDiscovery={...t.contentDiscovery||{},enabled:!0,fetch:{...t.contentDiscovery?.fetch||{},enabled:!0}},{...e,bolt:t}},createLiveContentDiscoveryCallbacks:function(e){return{onContentDiscoveryTileSelected:t=>s(t,e).catch(e=>l("error","Live Content Discovery authentication failed",e))}}}}}]); /* window.modules["563"] */ "use strict";(self.modules=self.modules||[]).push([["563"],{563:(e,N,l)=>{let o=l("24").get("CONTENT_HUB_ENV"),t=l("112");e.exports={calculateSsaiProfile:function(e,N,l){let r={dev:{clips:{profile:l?"BsRe9Nw1bc":"IIIQ6I6Wcz"},liveAuth:{}},environment:("stage"===o?"prod":o)||"prod",prod:{clips:{profile:l?"3NHh4qDxJH":"HZQb5lhfUP"},liveAuth:{}}};if(e.isLive&&N){let e={dev:{CNN:"xPZxKnIm2X","CNN International":"reVA3bTysS",HLN:"uFmccF8bJp",DTC:"oMT6dExxWt"},prod:{CNN:"N2SSZMJPhf","CNN International":"W91cwLVNZo",HLN:"jYqTISDq6K",DTC:"oMT6dExxWt"}},o={dev:{CNN:"BlkIzAfae0","CNN International":"BxMNJMTBQB",HLN:"FRXOVClJd3",DTC:"a1uxr6C0G9"},prod:{CNN:"Z43eS4xzVf","CNN International":"1H7rYBNOOD",HLN:"OW9F2XbJIw",DTC:"a1uxr6C0G9"}};r.dev.liveAuth.profile=l?o.dev[N]:e.dev[N],r.prod.liveAuth.profile=l?o.prod[N]:e.prod[N]}t(e,"ads.ssai",r)}}}}]); /* window.modules["564"] */ (self.modules=self.modules||[]).push([["564"],{564:(e,l,r)=>{var u=r("614"),n=r("2323"),s=r("615"),t=r("2145"),f=s(function(e,l){if(null==e)return[];var r=l.length;return r>1&&t(e,l[0],l[1])?l=[]:r>2&&t(l[0],l[1],l[2])&&(l=[l[0]]),n(e,u(l,1),[])});e.exports=f}}]); /* window.modules["565"] */ "use strict";(self.modules=self.modules||[]).push([["565"],{565:(e,t,n)=>{let{TOPAuthSDK:r}=n("76"),{setAnalyticProperty:a}=n("566"),{checkDtcAccess:i}=n("63"),u=null,o=null;async function l(){if(u)return u;if(o)return o;let e=(async()=>{let t=new r;return await t.refreshAuth(),o===e&&(u=t),t})();return o=e,e.finally(()=>{o===e&&(o=null)}),e}async function c(e,t={}){let{mediaMetadata:n,networkId:r,authType:i,contentType:u,isAuthenticatedContent:o}=e;try{let c=await l(),d=await c.determineAuthPath(n.mediumId,r,i,u,{deferFreeviewStart:!!e.deferFreeviewStart,forceFreeviewStart:!!t.forceFreeviewStart,isAuthenticatedContent:o});return d?.mvpd&&a(e,"mvpd",d.mvpd),r&&c.isPreviewActive(r)&&(d={}),e.authentication=d,d}catch(e){console.error("Error Adding Authentication to player",e)}}async function d({instance:e,configs:t}){e&&(e.configs&&(e.configs.authentication=t.authentication,e.configs.mediaMetadata=t.mediaMetadata),(t.authentication||await i())&&(e.prepare(),e.play(null,t)))}document.addEventListener("logout",()=>{window.location.reload()}),e.exports={setupTopAuth:l,resetTopAuth:function(){u=null,o=null},addPlayerAuthentication:c,playWithAuth:d,get topAuth(){return u}}}}]); /* window.modules["566"] */ "use strict";(self.modules=self.modules||[]).push([["566"],{566:(t,e,a)=>{let i=a("112"),s=a("108"),{VIDEO_TYPE:n,isFastLiveVideo:o}=a("14");function d(t,e,a,{updatePlayerInstance:s=!0}={}){if(i(t,`zion.customMetadata.${e}`,a),i(t,`adobeAnalytics.customMetadata.${e}`,a),!s)return;let n=window.FAVE?.player.getInstance(t.markupId);n&&(n.updateZionCustomMetadata({[e]:a}),n.updateAdobeCustomMetadata({[e]:a}))}t.exports={setAnalyticProperty:d,setAnalyticsVideoType:function(t,{updateConfigs:e=!0}={}){let a;if(a=o(t.rawContentType??t.contentType)?n.FAST:t.isLive?n.LIVE:t.isVerticalVideo||t.isVerticalVideoEmbed?n.CLIP_VERTICAL:n.CLIP_HORIZONTAL,!e)return a;i(t,"conviva.contentMetadata.video_type",a),i(t,"zion.customMetadata.video_type",a),i(t,"adobeAnalytics.customMetadata.video_type",a)},setAssetAnalytics:function(t,e={}){d(t,"title",s(t.assetSubTitle)?t.assetTitle:t.assetSubTitle,e),d(t,"video_type",t.assetSubTitle?.includes("Trailer")?"trailer":t.contentType,e),d(t,"show_name",t.assetTitle,e),d(t,"id",t.assetId,e),d(t,"title_id",t.contentId,e)},setAuthTypeAnalytics:function(t,e={}){let a=Array.isArray(t?.authType)?t.authType.join(","):t?.authType||"";d(t,"auth_type",a,e)}}}}]); /* window.modules["567"] */ "use strict";(self.modules=self.modules||[]).push([["567"],{567:s=>{s.exports={SHOW_TOAST_PARAM:"show_toast",isAdsRedesignQueryParamEnabled:function(s){return s?.adsRedesign?"true"===s.adsRedesign:void 0}}}}]); /* window.modules["568"] */ "use strict";(self.modules=self.modules||[]).push([["568"],{568:t=>{t.exports=(t,e)=>` .toast-container { left: var(--semantic-space-md, 8px); right: var(--semantic-space-md, 8px); top: 50px; position: fixed; z-index: 100; } @media screen and (min-width: 480px) { .toast-container { right: var(--semantic-space-lg, 16px); left: unset; width: 312px; } } @media screen and (min-width: 960px) { .toast-container { right: var(--semantic-space-2xl, 32px); } } .toast { opacity: 0; transform: translateY(${e}); display: flex; min-height: 60px; margin-bottom: var(--semantic-space-sm, 4px); background: var(--theme-semantic-color-bg-primary, #fff); padding: var(--primitive-space-12, 12px); border-radius: var(--semantic-radius-xl, 12px); box-shadow: 0px 0px 2px 2px rgba(0, 0, 0, 0.08), 0px 8px 12px -1px rgba(0, 0, 0, 0.16); transition: ${t}ms ease-out; align-items: flex-start; } .toast--confirmation { border: 1px solid var(--theme-semantic-color-status-icon-positive, #3DA672); } .toast--error { border: 1px solid var(--theme-semantic-color-status-icon-negative, #d50000); } .toast--unfollow, .toast--unsubscribe { border: 1px solid #6e6e6e; } .toast--active { opacity: 1; transform: translateY(0); transition: ${t}ms ease-out; } .toast__indicator-icon { height: var(--primitive-size-20, 20px); width: var(--primitive-size-20, 20px); margin: 0 var(--semantic-space-md, 8px) 0 0; display: flex; justify-content: center; align-items: center; } .toast__indicator-icon img { display: block; } .toast__content { flex: 1; display: flex; justify-content: center; flex-direction: column; } .toast__content-text { font-weight: 700; margin: 0; font-size: 14px; line-height: 20px; letter-spacing: 0.2px; margin-top: 1px; } .toast__content-subtext { color: var(--theme-semantic-color-type-secondary, #262626); font-size: 12px; font-weight: normal; line-height: 18px; letter-spacing: 0.2px; margin: var(--primitive-space-02, 2px) 0 0; } .toast__close-btn { border: 0; background: transparent; outline: 0; cursor: pointer; padding: 0; height: var(--semantic-size-xs, 24px); width: var(--semantic-size-xs, 24px); margin: 0 0 0 var(--semantic-space-md, 8px); } .toast__close-btn .icon-ui-close { fill: #b1b1b1; } `.replace(/[\t\n]+/g,"")}}]); /* window.modules["569"] */ "use strict";(self.modules=self.modules||[]).push([["569"],{569:(e,s,t)=>{let{stripEmail:a}=t("44");e.exports.formatLoggingData=e=>{let{status:s,data:t}=e||{};return{status:s,data:t?.errors?.map(e=>({...e,message:a(e.message)}))}}}}]); /* window.modules["570"] */ "use strict";(self.modules=self.modules||[]).push([["570"],{570:e=>{e.exports={componentTypes:{METERWALL:"meterwall",EXCLUSIVEWALL:"exclusivewall",REGWALL:"regwall",BOTTOMBAR:"bottombar",INLINE:"inline",OVERLAY:"overlay"},actions:{CLICK:"click",SELECT:"select",DISMISS:"dismiss"}}}}]); /* window.modules["571"] */ (self.modules=self.modules||[]).push([["571"],{571:(e,s,u)=>{var n=u("1906"),o=u("2573"),r=u("2144");e.exports=function(e,s){var u={};return s=r(s,3),o(e,function(e,o,r){n(u,o,s(e,o,r))}),u}}}]); /* window.modules["572"] */ "use strict";(self.modules=self.modules||[]).push([["572"],{572:e=>{e.exports=/*#__PURE__*/JSON.parse('[{"gizmoProductId":"cnn_subs_welcome_offer_monthly","phases":[{"billingPeriod":{"interval":"month","intervalCount":1},"currency":"usd","cycles":6,"phaseNumber":0,"price":1.99},{"billingPeriod":{"interval":"month","intervalCount":1},"currency":"usd","cycles":0,"phaseNumber":1,"price":3.99}],"universalProductIndicator":"cnn_subs"},{"gizmoProductId":"cnn-subs-monthly","universalProductIndicator":"cnn_subs","description":"Basic","productType":"FULL_PRICED","phases":[{"stripePlanId":"price_1PyawfHTnkIxdQ8srunazINQ","price":3.99,"currency":"usd","cycles":0,"phaseNumber":0,"billingPeriod":{"interval":"month","intervalCount":1}}]},{"gizmoProductId":"cnn-subs-yearly","universalProductIndicator":"cnn_subs","description":"Basic","productType":"FULL_PRICED","phases":[{"stripePlanId":"price_1PyaxgHTnkIxdQ8sAqls6ws8","price":29.99,"currency":"usd","cycles":0,"phaseNumber":0,"billingPeriod":{"interval":"year","intervalCount":1}}]},{"gizmoProductId":"cnn_all_access_monthly_nye_intro_offer","universalProductIndicator":"cnn_all_access","description":"All Access","productType":"FULL_PRICED","availabilityEndTimeMillis":1767653729000,"availabilityEndTime":"2026-01-05T22:55:29Z","phases":[{"price":3.5,"currency":"usd","cycles":12,"phaseNumber":0,"billingPeriod":{"interval":"month","intervalCount":1}},{"price":6.99,"currency":"usd","cycles":0,"phaseNumber":1,"billingPeriod":{"interval":"month","intervalCount":1}}]},{"gizmoProductId":"cnn_all_access_monthly","universalProductIndicator":"cnn_all_access","description":"All Access","productType":"FULL_PRICED","phases":[{"stripePlanId":"price_1S3er3HTnkIxdQ8sb1IXFNnY","price":6.99,"currency":"usd","cycles":0,"phaseNumber":0,"billingPeriod":{"interval":"month","intervalCount":1}}]},{"gizmoProductId":"cnn_all_access_annual_nye_intro_offer","universalProductIndicator":"cnn_all_access","description":"All Access","productType":"FULL_PRICED","availabilityEndTimeMillis":1767653597000,"availabilityEndTime":"2026-01-05T22:53:17Z","phases":[{"price":34.99,"currency":"usd","cycles":1,"phaseNumber":0,"billingPeriod":{"interval":"year","intervalCount":1}},{"price":69.99,"currency":"usd","cycles":0,"phaseNumber":1,"billingPeriod":{"interval":"year","intervalCount":1}}]},{"gizmoProductId":"cnn_all_access_yearly","universalProductIndicator":"cnn_all_access","description":"All Access","productType":"FULL_PRICED","phases":[{"stripePlanId":"price_1S7iItHTnkIxdQ8sJ5me8qR8","price":69.99,"currency":"usd","cycles":0,"phaseNumber":0,"billingPeriod":{"interval":"year","intervalCount":1}}]},{"gizmoProductId":"cnn_all_access_annaul_intro_offer","universalProductIndicator":"cnn_all_access","description":"All Access","productType":"FULL_PRICED","availabilityEndTimeMillis":1787615319000,"availabilityEndTime":"2026-08-24T23:48:39Z","phases":[{"price":41.99,"currency":"usd","cycles":1,"phaseNumber":0,"billingPeriod":{"interval":"year","intervalCount":1}},{"price":69.99,"currency":"usd","cycles":0,"phaseNumber":1,"billingPeriod":{"interval":"year","intervalCount":1}}]}]')}}]); /* window.modules["573"] */ "use strict";(self.modules=self.modules||[]).push([["573"],{573:(e,n,t)=>{let{usPromoProducts:a,caPromoProducts:l,ukPromoProducts:o,paywallOfferTypes:r}=t("580"),i='Terms of Use',c={US:"US",GB:"UK",CA:"CA"},s=Object.values(c),u={subscribe:"/subscription",subscribeAllAccess:"/subscription/all-access",subscribeBasic:"/subscription/basic"},y={expressCheckoutPlaceholderText:"Subscribe with",expressCheckoutButtonType:"subscribe"},p={US:{region:"US",accountPaths:{loginPromoPath:"paywall",regPromoPath:"paywall",paymentPath:"/account/payment/subscription"},marketingPage:"subscribe",promoProducts:a,regionalCopy:{},legalLanguage:{default:"By subscribing, you agree your plan will automatically renew on a recurring basis at the then-current price (now {cost}/{interval} plus applicable tax) unless you cancel before the renewal date. Cancel in Settings.",offer:"By subscribing, you agree that after your discount ends, your subscription price will convert to the then-current full price (now {cost}/{interval} plus applicable tax) unless you cancel before the conversion and will then automatically renew on a recurring basis unless cancelled before the next billing period. To cancel go to Settings. Subscription fees are non-refundable.",paywallExpressCheckoutOffer:"By subscribing, you agree that after your discount ends, your subscription price will convert to the then-current full price (now {cost} + applicable tax) unless you cancel before the conversion and will then automatically renew on a recurring basis unless cancelled before the next billing period. To cancel, go to Settings. Subscription fees are non-refundable.",watchPaywall:{[r.WELCOME]:{annual:"*Ends Aug. 24th, 2026. Valid in the U.S. only for new All Access Annual plan subscribers via cnn.com & participating providers. $41.99 billed immediately. Discount for first year only. After that, plan automatically renews yearly at then-current full price (now $69.99 plus applicable tax) unless cancelled. Discount subject to change and cannot be used with other offers. Switching plans will void discount. Content may vary from CNN TV.",monthly:"US only. All Access video content may vary from CNN TV."},[r.NYE]:{annual:"Ends May 27, 2026. Valid in the U.S. only for new All Access Annual plan subscribers via cnn.com & participating providers. $34.99 billed immediately. Discount for first year only. After that, plan automatically renews yearly at then-current full price (now $69.99 plus applicable tax) unless cancelled. Discount subject to change and cannot be used with other offers. Switching plans will void discount. Content may vary from CNN TV.",monthly:"US only. All Access video content may vary from CNN TV."},DEFAULT:{annual:"US only. All Access video content may vary from CNN TV.",monthly:"US only. All Access video content may vary from CNN TV."}}},disclaimerConfig:{[r.ANNUAL_INTRO_OFFER]:{renewalText:"*Ends Aug. 24th, 2026. Cannot be combined with other offers. Content may vary from CNN TV."},[r.ANNUAL_NO_OFFER]:{renewalText:"US only. All Access video content may vary from CNN TV."},[r.NYE]:{renewalText:"*Ends May 27th, 2026. Cannot be combined with other offers. Content may vary from CNN TV."}}},CA:{region:"CA",accountPaths:{loginPromoPath:"subscription-ca",regPromoPath:"subscription-ca",paymentPath:"/account/payment/subscription-ca"},marketingPage:"subscribe",promoProducts:l,regionalCopy:{},legalLanguage:{default:"By subscribing, you agree your plan will automatically renew each {interval} at the then-current price (now {cost}/{interval} plus applicable tax) unless you cancel before the next billing date. Cancel in Settings.",offer:"By subscribing, you agree that after your discount ends, your subscription price will convert to the then-current full price (now {cost}/{interval} plus applicable tax) unless you cancel before the conversion, and will then automatically renew each {interval} unless cancelled before the next billing date. Cancel in Settings.",paywallExpressCheckout:`By subscribing, you agree to the ${i} and that your plan will automatically renew each {interval} at the then-current price (now {cost}/{interval} plus applicable tax) unless you cancel before the next billing date. Cancel in Settings.`,watchPaywall:{DEFAULT:{annual:"TBD_CA_ANNUAL_LEGAL",monthly:"TBD_CA_MONTHLY_LEGAL"},[r.ANNUAL_INTRO_OFFER]:{annual:"TBD_CA_ANNUAL_INTRO_LEGAL",monthly:"TBD_CA_MONTHLY_LEGAL"}}},disclaimerConfig:{}},UK:{region:"UK",accountPaths:{loginPromoPath:"subscription-uk",regPromoPath:"subscription-uk",paymentPath:"/account/payment/subscription-uk"},marketingPage:"subscribeAllAccess",promoProducts:o,regionalCopy:{expressCheckoutPlaceholderText:"Pay with",expressCheckoutButtonType:{googlePay:"pay",applePay:"plain"}},legalLanguage:{default:`Your plan will automatically renew each {interval} at the then-current price (now {cost}/{interval}) unless you cancel before renewal. If you cancel, you will have access until the end of your billing period. By paying, you agree to the ${i} and that your subscription will start immediately and that you will lose any statutory right to a refund if you cancel during the cooling off period.`,offer:`After your discount ends, your plan will automatically renew each {interval} at the then-current full price (now {cost}/{interval}) unless you cancel before renewal. If you cancel, you will have access until the end of your billing period. By paying, you agree to the ${i} and that your subscription will start immediately and that you will lose any statutory right to a refund if you cancel during the cooling off period.`,paywallExpressCheckoutOffer:null,ukLive:"Your plan will automatically renew each {interval} at the then-current price (now {cost}/{interval}) unless you cancel before the renewal date. If you cancel before renewal, you will have access until the end of your current billing period. To cancel, go to your CNN account settings.",watchPaywall:{DEFAULT:{annual:"TBD_UK_ANNUAL_LEGAL",monthly:"TBD_UK_MONTHLY_LEGAL"}}},disclaimerConfig:{}}};e.exports={GEO_TO_REGION:c,getSubscribeUrlPath:function(e,{page:n="subscribeAllAccess"}={}){return s.includes(e)&&u[n]?"UK"===e?u.subscribeAllAccess:u[n]:null},CONFIG_BY_REGION:p,getRegionalCopy:e=>({...y,...p[e]?.regionalCopy||{}})}}}]); /* window.modules["577"] */ (self.modules=self.modules||[]).push([["577"],{577:(t,o,e)=>{var l=e("2570"),n=e("2571"),s=e("2137"),u=Object.prototype.toString,f=n(function(t,o,e){null!=o&&"function"!=typeof o.toString&&(o=u.call(o)),t[o]=e},l(s));t.exports=f}}]); /* window.modules["578"] */ (self.modules=self.modules||[]).push([["578"],{578:(e,s,o)=>{var u=o("2572");e.exports=function(){return u.Date.now()}}}]); /* window.modules["579"] */ (self.modules=self.modules||[]).push([["579"],{579:(e,t,r)=>{var f=r("2574"),s=r("556"),u=r("2575"),i=0/0,n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(u(e))return i;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=f(e);var r=o.test(e);return r||a.test(e)?l(e.slice(2),r?2:8):n.test(e)?i:+e}}}]); /* window.modules["580"] */ "use strict";(self.modules=self.modules||[]).push([["580"],{580:_=>{let n={ALL_ACCESS_MONTHLY:"cnn_all_access_monthly",ALL_ACCESS_YEARLY:"cnn_all_access_yearly",WELCOME_OFFER_MONTHLY:"cnn_all_access_monthly_welcome_offer",ALL_ACCESS_WELCOME_OFFER_YEARLY:"cnn_all_access_annaul_intro_offer",NYE_OFFER_MONTHLY:"cnn_all_access_monthly_nye_intro_offer",NYE_OFFER_ANNUAL:"cnn_all_access_annual_nye_intro_offer",LABOR_DAY_OFFER_MONTHLY:"cnn_all_access_monthly_2for2_intro_offer",INTRO_25_OFFER_ANNUAL:"cnn_all_access_annual_25_intro_offer",BASIC_YEARLY:"cnn-subs-yearly",BASIC_MONTHLY:"cnn-subs-monthly"},L={WELCOME:"welcome",NYE:"nye",LABOR_DAY:"labor-day",INTRO_25:"intro-25"},A={ANNUAL_INTRO_OFFER:"annual-intro-offer",ANNUAL_NO_OFFER:"annual-no-offer",ALL_ACCESS_NO_OFFER:"all-access-no-offer",...L},a={[L.NYE]:{year:n.NYE_OFFER_ANNUAL,month:n.NYE_OFFER_MONTHLY},[L.WELCOME]:{year:n.ALL_ACCESS_WELCOME_OFFER_YEARLY,month:n.ALL_ACCESS_MONTHLY},[L.LABOR_DAY]:{year:n.ALL_ACCESS_YEARLY,month:n.LABOR_DAY_OFFER_MONTHLY},[L.INTRO_25]:{year:n.INTRO_25_OFFER_ANNUAL,month:n.ALL_ACCESS_MONTHLY},DEFAULT:{year:n.ALL_ACCESS_YEARLY,month:n.ALL_ACCESS_MONTHLY}};_.exports={usPromoProducts:n,caPromoProducts:{ALL_ACCESS_YEARLY:"cnn_all_access_annual_ca",ALL_ACCESS_WELCOME_OFFER_YEARLY:"cnn_all_access_annual_intro_offer_ca",BASIC_YEARLY:"cnn_basic_annual_ca",BASIC_MONTHLY:"cnn_basic_monthly_ca"},ukPromoProducts:{ALL_ACCESS_MONTHLY:"cnn_all_access_monthly_uk",ALL_ACCESS_YEARLY:"cnn_all_access_annual_uk"},offerTypes:L,paywallOfferTypes:A,offerProductIds:a}}}]); /* window.modules["581"] */ "use strict";(self.modules=self.modules||[]).push([["581"],{581:(e,t,s)=>{let n=s("582"),{expose:r}=s("250"),o="cmjson_",i="unknown",c=o.length,a=(e,t,s,n)=>e.addEventListener(t,e=>{let t=e.currentTarget;s.call(n,l(t.dataset),t,e)}),l=e=>Object.keys(e).reduce((t,s)=>s.startsWith(o)?{...t,[s.slice(c)]:(()=>{try{return JSON.parse(e[s])}catch(e){}})()}:{...t,[s]:e[s]},{});e.exports=class{constructor(e){this.el=e,this.sseClient=null,this.sseUri=null,this.sseName=null,this.lastConnectionStartTime=null,this.wasEverConnected=!1,this.sseCurrentErrorCount=0,this.sseTotalErrorCount=0}bind(e,t,s){Array.from(this.el.querySelectorAll(e)).forEach(e=>a(e,t,s,this))}bindToThis(e,t){a(this.el,e,t,this)}subscribe(e,t,s){n.subscribe(e,t.bind(this),!0,s)}dispatch(e,t,s){n.dispatch(e,t,s)}dataElementMap(e,t,s=!1){return Array.from((s||this.el).querySelectorAll(e)).reduce((e,s)=>({[t(l(s.dataset))]:s,...e}),{})}startSSE(e,t){t?this.sseUri=t:this.sseUri=this.el.dataset.uri,this.sseName=e,this.connectSSE()}connectSSE(){console.log(`${this.sseName} SSE Connecting...`),this.sseClient=new EventSource(this.sseUri),this.registerSSEListeners()}registerSSEListeners(){this.sseClient.addEventListener("publish",async e=>{try{await this.onSSEPublish(e)}catch(e){console.log(`${this.sseName} onSSEPublish ERROR`,e)}}),this.sseClient.addEventListener("error",e=>{this.onSSEError(e)}),this.sseClient.addEventListener("open",e=>{this.onSSEOpen(e)})}onSSEOpen(){console.log(`${this.sseName} SSE Open`),this.lastConnectionStartTime=Date.now(),this.wasEverConnected=!0,window.DD_RUM&&window.DD_RUM.addAction("sse_connection_restored",{component:this.sseName||i,category:"sse_connection_success",wrapper:"ClientModel",error_count:this.sseCurrentErrorCount,total_count:this.sseTotalErrorCount,sse_uri:this.sseUri}),this.sseCurrentErrorCount=0}onSSEReconnecting(){setTimeout(()=>{console.log(`${this.sseName} SSE Reconnecting...`),this.connectSSE()},1e3)}async onSSEPublish(){console.log(`${this.sseName} SSE Publish`)}onSSEError(e){console.log(`${this.sseName} An error occurred while attempting to connect.`,e);let t=Error(`${this.sseName}: An error occurred while attempting to connect.`),s=e?.target?.readyState,n=Date.now(),r=i;s===EventSource.CONNECTING||0===s||null===this.lastConnectionStartTime?r="connection_failure":s===EventSource.OPEN||1===s?r=n-this.lastConnectionStartTime>5e3?"backend_disconnection":"unstable_connection":(s===EventSource.CLOSED||2===s)&&(r=this.wasEverConnected?"connection_terminated":"connection_refused"),this.sseCurrentErrorCount++,this.sseTotalErrorCount++,window.DD_RUM&&window.DD_RUM.addError(t,{component:this.sseName||i,category:"sse_connection_failure",wrapper:"ClientModel",error_count:this.sseCurrentErrorCount,total_count:this.sseTotalErrorCount,sse_uri:this.sseUri,original_error:e?.target?.readyState||i,event_phase:e?.eventPhase||i,cause:r}),this.lastConnectionStartTime=null,this.sseClient.close(),this.onSSEReconnecting()}exposeComponent(e,t){r("components",e,t)}}}}]); /* window.modules["582"] */ "use strict";(self.modules=self.modules||[]).push([["582"],{582:t=>{let o="_any",n=Symbol("empty"),i=function(){let t={},i={};function c(o,n){if(!o)throw Error("Invalid action format");t[o]=t[o]||{},t[o][n]=t[o][n]||[],i[o]=i[o]||{},i[o][n]=i[o][n]||[,]}return{dispatch:function({ns:e,action:s},r=n,f=""){f&&(s=Symbol.for(s.description.concat(f))),c(e,s),t[e][s].concat(t[e][o]||[]).forEach(t=>{setTimeout(function(){t(r,{ns:e,action:s})})}),i[e][s].shift(),i[e][s].push(r)},subscribe:function({ns:n,action:e=o},s,r=!0,f=""){f&&(e=Symbol.for(e.description.concat(f))),c(n,e),t[n][e].push(s),r&&i[n][e].filter(t=>void 0!==t).forEach(t=>{setTimeout(function(){s(t)})})},reset:function(){i={},t={}}}}();i.CACHE_SIZE=1,t.exports=i}}]); /* window.modules["584"] */ "use strict";(self.modules=self.modules||[]).push([["584"],{584:(t,e,s)=>{let i=s("24"),a=s("16").setup({file:"/index.js"});class r{static async init(t,e){if(!t)throw Error("networkId required");if(e&&"function"!=typeof e)throw TypeError("onDisabled is not a function");let s="prod"===i.get("CONTENT_HUB_ENV")?"":"ite.",a=new r;return a._host=`${s}token.ngtv.io`,a._appId=i.get("TOP_AUTH_SERVICE_APP_ID"),a.networkId=t,a.onDisabled=e,await a.updatePreviewStatus(),a}get isEnabled(){return this._status?.enabled}get extraData(){return this._status?.extraData}get ttl(){return this._status?.ttl}async updatePreviewStatus(){try{let t=await this.fetchPreviewStatus(),e=this.isEnabled&&!t.enabled;this._status=t,e&&this.onDisabled&&this.onDisabled()}catch(t){a("error","checking event based preview status.",t)}setTimeout(()=>this.updatePreviewStatus(),1e3*(this.ttl||1))}async fetchPreviewStatus(){return fetch(`https://${this._host}/token/previewStatus?networkId=${this.networkId}`,{headers:{"app-id":this._appId}}).then(t=>t.json())}}t.exports={EventBasedPreview:r}}}]); /* window.modules["585"] */ "use strict";(self.modules=self.modules||[]).push([["585"],{585:(e,t,r)=>{let{ClientTemplate:s}=r("104"),l=r("2591");e.exports={createSsoBtn:(e,t,r=!1)=>{let n=(t||s.createHandlebarsEnvironment()).template(l)(e);return r?n:s.createElementFromHTML(n)}}}}]); /* window.modules["586"] */ "use strict";(self.modules=self.modules||[]).push([["586"],{586:(e,t,n)=>{let{actions:i,dispatch:o}=n("65"),{SSO:c}=i,a=n("24"),l=n("16").setup({file:"/index.js"}),{trackMetrics:p}=n("9"),{addGenericClickAnalytics:r,zionEventHandler:u}=n("10");e.exports={initCustomAppleButton:({containerEl:e,clientId:t,onSuccess:n,onError:i,initAlreadyCalled:s,isAmazonPVCPromo:d,isEmailCaptureRegWall:m,wallCountAnalyticsValue:w,componentStellarId:g,onAmazonPVCClick:y})=>{let h=e.querySelector('.user-account-sso-button[data-sso-type="apple"] .user-account-sso-button__button'),_=t||a.get("SSO_APPLE_CLIENT_ID"),I=()=>{let e={clientId:_,redirectURI:window.location.origin,scope:"name email",state:"User auth request",usePopup:!0},t=window.AppleID?.auth;s||t?.init(e),h.onclick=()=>{d?(p({type:"user-interaction",data:{interaction:"user account:continue with apple:click"}}),r({componentType:"button",traits:{component_name:"user account:continue with apple",action:"click",feature:"social login"}}),y?.("continue with apple")):m?(p({type:"user-interaction",data:{interaction:`regiwall:apple${w}:continue:click`}}),u({href:window.location.href,type:"BUTTON",customAttributes:{component_id:g,component_type:"regiwall",component_name:"regiwall",action:"button click",interaction:"continue with apple"}},"GenericLinkClick")):(p({type:"user-interaction",data:{interaction:"cnn account:sign in with apple:click"}}),r({componentType:"button",traits:{component_name:"cnn account:sign in with apple",action:"click",feature:"social login"}})),t?.signIn()},o(c.BTN_LOADED,{type:"apple"})};"complete"!==document.readyState?window.addEventListener("load",()=>{I()}):I(),s||(document.addEventListener("AppleIDSignInOnSuccess",async e=>{let{authorization:t,user:i}=e.detail||{};await n(t,i?.name)}),document.addEventListener("AppleIDSignInOnFailure",e=>{let t=e.detail?.error;l("error","Error signing in to apple",t),i(t)}))}}}}]); /* window.modules["588"] */ "use strict";(self.modules=self.modules||[]).push([["588"],{588:(o,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(o){if((0,c.default)(1,arguments),"object"!=typeof o)throw Error("Duration must be an object");var e=o.years,t=o.months,u=o.days,n=o.hours,s=o.minutes,a=o.seconds;return"P".concat(void 0===e?0:e,"Y").concat(void 0===t?0:t,"M").concat(void 0===u?0:u,"DT").concat(void 0===n?0:n,"H").concat(void 0===s?0:s,"M").concat(void 0===a?0:a,"S")};var c=function(o){return o&&o.__esModule?o:{default:o}}(t("645"));o.exports=e.default}}]); /* window.modules["589"] */ "use strict";(self.modules=self.modules||[]).push([["589"],{589:n=>{n.exports={0:function(n,o,t,a,l){var e=n.lookupProperty||function(n,o){if(Object.prototype.hasOwnProperty.call(n,o))return n[o]};return' data-uri="'+n.escapeExpression((e(t,"default")||o&&e(o,"default")||n.hooks.helperMissing).call(null!=o?o:n.nullContext||{},null!=o?e(o,"_ref"):o,null!=o?e(o,"_self"):o,{name:"default",hash:{},data:l,loc:{start:{line:1,column:33},end:{line:1,column:55}}}))+'"'},1:function(n,o,t,a,l){var e,r=n.lookupProperty||function(n,o){if(Object.prototype.hasOwnProperty.call(n,o))return n[o]};return' \n '+n.escapeExpression("function"==typeof(e=null!=(e=r(t,"confirmationPreHeader")||(null!=o?r(o,"confirmationPreHeader"):o))?e:n.hooks.helperMissing)?e.call(null!=o?o:n.nullContext||{},{name:"confirmationPreHeader",hash:{},data:l,loc:{start:{line:5,column:12},end:{line:5,column:37}}}):e)+"\n

المصدر الأصلي: CNN Arabic

يُعيد كورة لايف نشر ملخص إخباري لأغراض التغطية الرياضية مع الإبقاء على حقوق المصدر الأصلي.

اقرأ المزيد على كورة لايف

تصفّح المزيد على كورة لايف (kora live) — البديل الرسمي ليلا شوت (yalla shoot) لمتابعة كرة القدم بث مباشر.