(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[424728,e=>{var t=e.i(843476),i=e.i(525803),n=e.i(808520),o=e.i(821222),r=e.i(26106),a=e.i(410851);e.s(["f",0,({video:e,autoplay:d,priority:s=!1,sizes:l})=>{let c=e?.poster||e?.imageUrl;return(0,t.jsxs)("div",{className:a.default.placeholder,children:[d&&c&&(0,t.jsx)(i.default,{src:c,alt:"",width:640,height:360,sizes:l,priority:s,fetchPriority:s?"high":"auto",className:a.default.image}),d&&(0,t.jsxs)("div",{className:a.default.loadingBar,children:[(0,t.jsx)("div",{className:a.default.timeline,"aria-hidden":!0}),(0,t.jsxs)("div",{className:a.default.controls,children:[(0,t.jsxs)("div",{className:a.default.decorativeControls,"aria-hidden":!0,children:[(0,t.jsx)(o.f,{width:20,height:20,color:"currentColor"}),(0,t.jsxs)("svg",{className:a.default.secondaryControl,viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("path",{d:"M8 5H21V20H17M8 2L4 5L8 8",stroke:"currentColor",strokeWidth:"2"}),(0,t.jsx)("text",{x:"2",y:"20",fill:"currentColor",fontSize:"11",children:"10"})]})]}),(0,t.jsxs)("div",{className:a.default.loadingStatus,role:"status",children:[(0,t.jsx)("div",{className:a.default.spinner,"aria-hidden":!0,children:(0,t.jsx)(n.f,{size:"small",color:"white"})}),(0,t.jsx)("span",{children:"Loading video..."})]}),(0,t.jsxs)("div",{className:a.default.decorativeControls,"aria-hidden":!0,children:[(0,t.jsx)(r.f,{width:20,height:20}),(0,t.jsxs)("svg",{className:a.default.secondaryControl,viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("path",{d:"M9 3H15L16 6L19 7L21 10V14L19 17L16 18L15 21H9L8 18L5 17L3 14V10L5 7L8 6Z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3",stroke:"currentColor",strokeWidth:"2"})]}),(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",children:(0,t.jsx)("path",{d:"M3 9V3H9M15 3H21V9M21 15V21H15M9 21H3V15",stroke:"currentColor",strokeWidth:"2"})})]})]})]})]})}])},377050,e=>{e.s(["q",0,function(e,t){return null!=t?t:e},"m",0,function(e,t){return null!=t?t:e}])},65392,223578,332065,194031,203760,118954,e=>{function t(){return!1!==window.__shouldLoadAds}function i(){return!!window.google?.ima?.AdsLoader}e.s(["E",0,8e3,"a",0,t,"X",0,function(){return!!window.__videoAdStackReady}],223578);var n=e.i(67175),o=e.i(901076),r=e.i(447996);let a="Newsweek_VideoSlot",d=(0,r.W)(),s=null,l=async()=>s||(s=new Promise(e=>{if(window.__apsVideoUsePrebidAdapter)return void e({amzn_vid:null});let t=(n=0)=>{window._apsInitialized?i():n<20?setTimeout(()=>t(n+1),100):(console.warn("[APS] APS not initialized after 2 seconds, skipping video bid"),e({amzn_vid:null}))},i=()=>{if(!window.apstag||!window.aps)return console.warn("[APS] APS not available - system may not be initialized"),e({amzn_vid:null});(window._apsVideoSlotDefined?Promise.resolve():window.aps.record("ad/slot/define",{imp:[{id:a,video:{startdelay:0,plcmt:2,pos:1,w:640,h:360}}]}).then(()=>window.aps.record("ad/gpid/define",{map:{[a]:"/22541732127/vid.newsweek"}})).then(()=>{window._apsVideoSlotDefined=!0})).then(()=>window.aps.record("ad/targeting/fetch",{itemIds:[a],timeout:d.aps})).then(()=>{let t=window.aps.read("ad/targeting"),i=t?.get(a),n="";if(i&&i.size>0){let e=[];i.forEach((t,i)=>{t&&e.push(`${encodeURIComponent(i)}=${encodeURIComponent(t)}`)}),n=e.join("%26")}e({amzn_vid:n||null})}).catch(t=>{console.error("[APS VIDEO] Error:",t),e({amzn_vid:null})})};t()}).finally(()=>{s=null}));e.s(["w",0,l,"X",0,function(){l().catch(()=>{})}],332065);var c=e.i(242345);let u="Newsweek_VideoSlot",w=(0,r.W)();async function p(){return new Promise(e=>{try{if(window.__apsVideoUsePrebidAdapter){window.amzn_video_bid="",e();return}if(!window.apstag||!window.aps){console.warn("[VIDEO REFRESH] APS not available for refresh"),window.amzn_video_bid="",e();return}if(!window._apsVideoSlotDefined)return void l().then(e=>{window.amzn_video_bid=e.amzn_vid??""}).catch(()=>{window.amzn_video_bid=""}).finally(()=>e());let t=setTimeout(()=>{console.warn("[VIDEO REFRESH] APS refresh timed out"),window.amzn_video_bid="",e()},w.aps+1e3);window.aps.record("ad/targeting/fetch",{itemIds:[u],timeout:w.aps}).then(()=>{clearTimeout(t);let i=window.aps.read("ad/targeting"),n=i?.get(u),o="";if(n&&n.size>0){let e=[];n.forEach(function(t,i){t&&e.push(`${encodeURIComponent(i)}=${encodeURIComponent(t)}`)}),o=e.join("%26")}window.amzn_video_bid=o,e()}).catch(i=>{clearTimeout(t),console.error("[VIDEO REFRESH] APS Bootstrap API error:",i),window.amzn_video_bid="",e()})}catch(t){console.error("[VIDEO REFRESH] Amazon APS refresh error:",t),window.amzn_video_bid="",e()}})}async function m(){if(window.pbjs)return new Promise(e=>{window.pbjs.que=window.pbjs.que||[],window.pbjs?.que.push(()=>{try{if(!(0,c.f)())return void e();window.prebid_video_bid="",window.pbjs?.requestBids({timeout:w.prebid,adUnitCodes:["video"],bidsBackHandler:()=>{try{let e=window.pbjs?.getBidResponses?.()||{},t=e.video?.bids||[],i=t[0]&&t[0].targeting||{},n=Object.entries(i).filter(([,e])=>e);if(n.length>0){let e=n.map(([e,t])=>`${e}=${t}`).join("&");window.prebid_video_bid=e}}catch(e){console.error("[VIDEO REFRESH] Prebid targeting error:",e)}e()}})}catch(t){console.error("[VIDEO REFRESH] Prebid refresh error:",t),e()}})})}function _(){window.amznVideoAPS_refresh=p,window.prebidVideoAd_refresh=m}e.s(["t",0,p,"y",0,_,"K",0,m],194031);let f=(0,r.W)();function v(){return window.google?window.google.ima:void 0}function g(){let e=v();if(e&&"object"==typeof e.settings&&null!==e.settings)return e.settings}function b(){if(window.__imaVpaidConfigured)return!0;try{let e=g();if(e){let t=v(),i=t?.ImaSdkSettings?.VpaidMode?.INSECURE??2;return e.setVpaidMode?.(i),e.setDisableCustomPlaybackForIOS10Plus?.(!0),e.setPlayerType?.("mux/mux-player-react"),e.setPlayerVersion?.("3.5.1"),e.setVideoLoadTimeout?.(f.imaVideoLoad),e.setVpaidTimeout?.(f.imaVpaidTimeout),e.setNumRedirects?.(20),window.__imaVpaidConfigured=!0,!0}}catch{}return!1}function y(){try{if(window.__imaPpidConfigured)return!0;let e=document.cookie.split("; ").find(e=>e.startsWith("nwuid="))?.split("=")[1],t=g();if(e&&t?.setPpid)return t.setPpid(e),window.__imaPpidConfigured=!0,!0}catch{}return!1}function h(){if(window.__imaVastLoadTimeoutPatched)return;let e=v(),t=e?.AdsLoader;if(!t||"function"!=typeof t)return;let i=t.prototype;if(!i||"function"!=typeof i.requestAds)return;let n=i.requestAds;i.requestAds=function(e,...t){return e&&"object"==typeof e&&(e.vastLoadTimeout=f.imaVastLoad),n.call(this,e,...t)},window.__imaVastLoadTimeoutPatched=!0}function A(){if(window.__imaGetAdsManagerPatched)return;let e=v(),t=e?.AdsLoader;if(!t||"function"!=typeof t)return;let i=t.prototype;if(!i||"function"!=typeof i.addEventListener)return;let n=e?.AdsManagerLoadedEvent?.Type?.ADS_MANAGER_LOADED,r=i.addEventListener;i.addEventListener=function(e,t,...i){return e===n&&"function"==typeof t?r.call(this,e,function(e){if("function"==typeof e?.getAdsManager){let t=e.getAdsManager.bind(e);e.getAdsManager=function(...e){try{let t,i,n=(t=(0,o.f)(),(i={"5g":15e3,"4g":2e4,"3g":25e3,no_info:25e3})[t]||i.no_info),r=v(),a=r?.AdsRenderingSettings;if(a&&(!e[1]||"object"!=typeof e[1])){let t=new a;t.loadVideoTimeout=n,t.enablePreloading=!0,e[1]=t}else if(e[1]&&"object"==typeof e[1]){let t=e[1];t.loadVideoTimeout=n,t.enablePreloading=!0}}catch{}let i=t(...e);return i&&(window.__imaAdsManager=i,window.dispatchEvent(new CustomEvent("imaAdsManagerLoaded"))),i}}return t.call(this,e)},...i):r.call(this,e,t,...i)},window.__imaGetAdsManagerPatched=!0}function S(){if(window.__imaAdDisplayContainerPatched)return;let e=v();if(!e?.AdDisplayContainer||"function"!=typeof e.AdDisplayContainer)return;let t=e.AdDisplayContainer;e.AdDisplayContainer=function(e,i,n){let o=e;try{let t=e,i=null;for(;t;){let e=t.getRootNode();if(e===document){i=t;break}if(e instanceof ShadowRoot&&e.host)t=e.host;else break}if(i){let e=i.parentElement;if(e&&document.contains(e)){let t=window.__imaAdsManager,i=window.__imaLightDomAdContainer;if(i&&i.parentElement!==e&&t?.destroy)try{t.destroy()}catch{}let n=i&&document.contains(i)&&i||document.querySelector(".nw-ima-ad-container");n&&n.parentElement!==e&&(e.appendChild(n),e.style.position&&"static"!==e.style.position||(e.style.position="relative")),n||((n=document.createElement("div")).className="nw-ima-ad-container",n.style.cssText="position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:10;overflow:visible;",e.style.position&&"static"!==e.style.position||(e.style.position="relative"),e.appendChild(n)),window.__imaLightDomAdContainer=n,o=n}}}catch{}return new t(o,i,n)},e.AdDisplayContainer.prototype=t.prototype,window.__imaAdDisplayContainerPatched=!0}function P(){if(!window.__imaIntegrationInitialized){let e,t;window.__imaIntegrationInitialized=!0,_();try{if("1"===(0,n.Z)("nwsucrp"))return}catch{}try{(0,n.$)()}catch{}window.google?.ima&&(S(),b(),y(),h(),A()),e=0,(t=()=>{window.__imaVpaidConfigured&&window.__imaVastLoadTimeoutPatched&&window.__imaPpidConfigured&&window.__imaGetAdsManagerPatched||(e+=1,window.google?.ima&&(b(),y(),h(),S(),window.__imaGetAdsManagerPatched||A()),e<30&&setTimeout(t,200))})()}}e.s(["v",0,function(){try{let e=window.__videoAdContext,t=function(){try{let e=window.__videoAdContext;if(e){let t=e.nativeEl;if(t?.tagName==="VIDEO")return t;let i=e=>{let t=e.querySelector("video");if(t?.tagName==="VIDEO")return t;for(let t of e.querySelectorAll("*")){let e=t.shadowRoot;if(e){let t=i(e);if(t)return t}}return null};if(e.shadowRoot){let t=i(e.shadowRoot);if(t)return t}let n=e.media;if(n?.tagName==="VIDEO")return n}if(window.__videoElement?.tagName==="VIDEO")return window.__videoElement}catch{}return null}();if(!e&&!t)return null;let i=0|Number(e?.clientWidth||t?.clientWidth||640),n=0|Number(e?.clientHeight||t?.clientHeight||360),o=!!(e?.autoPlay??e?.autoplay??(e?.getAttribute?.("autoplay")!==null||t?.autoplay)),r=!window.__videoCtpPlaylist&&!!(e?.muted??(e?.getAttribute?.("muted")!==null||t?.muted));return{width:i,height:n,willAutoPlay:o,willPlayMuted:r}}catch{return null}},"O",0,P],203760),e.s(["f",0,function(e={}){if(!t())return Promise.resolve();let n=window.__videoAdStackLoadPromise;if(n)return n;let o=(function(e={}){if(!t())return Promise.resolve();if(i())return window.__imaSdkReadyDispatched||(window.__imaSdkReadyDispatched=!0,window.dispatchEvent(new CustomEvent("imaSdkReady"))),Promise.resolve();let n=window.__imaSdkLoadPromise;if(n)return n;let o=e.timeoutMs??8e3,r=new Promise((e,t)=>{let n,r=!1,a=()=>{if(!r){if(window.__imaSdkReadyDispatched){r=!0,n?.(),e();return}i()&&(r=!0,n?.(),window.__imaSdkReadyDispatched=!0,window.dispatchEvent(new CustomEvent("imaSdkReady")),e())}},d=document.querySelector('script[data-nw-ima-sdk="1"]'),s=window.setTimeout(()=>{r||(n?.(),i()?a():(r=!0,console.error("[IMA] SDK failed to load after timeout"),t(Error("IMA SDK load timeout"))))},o),l=()=>{window.clearTimeout(s),a()},c=()=>{n=function(e,t,i={}){let n,o=!1,r=()=>{o=!0,void 0!==n&&(window.clearTimeout(n),n=void 0),i.readyEvent&&window.removeEventListener(i.readyEvent,d)},a=()=>!!o||!!e()&&(r(),t(),!0),d=()=>{a()};if(a())return r;i.readyEvent&&window.addEventListener(i.readyEvent,d),queueMicrotask(()=>{a()||requestAnimationFrame(()=>{a()||u(0)})});let s=i.initialIntervalMs??16,l=i.maxIntervalMs??500,c=i.maxAttempts??40,u=e=>{if(o||a()||e>=c)return;let t=Math.min(l,Math.round(s*1.5**e));n=window.setTimeout(()=>{a()||u(e+1)},t)};return r}(i,l,{readyEvent:"imaSdkReady"})};if(d)return void c();let u=document.createElement("script");u.async=!0,u.src="https://imasdk.googleapis.com/js/sdkloader/ima3.js",u.setAttribute("data-nw-ima-sdk","1"),u.addEventListener("load",c,{once:!0}),u.addEventListener("error",()=>{r||(r=!0,n?.(),window.clearTimeout(s),console.error("[IMA] SDK script failed to load"),t(Error("IMA SDK script failed to load")))},{once:!0}),document.head.appendChild(u)}).catch(e=>{throw delete window.__imaSdkLoadPromise,e});return window.__imaSdkLoadPromise=r,r})(e).then(()=>{P(),window.__videoAdStackReady=!0}).catch(e=>{throw delete window.__videoAdStackLoadPromise,e});return window.__videoAdStackLoadPromise=o,o}],65392);var E=e.i(990416),R=e.i(837809),C=e.i(494566),j=e.i(778049),x=e.i(958861),I=e.i(599554),D=e.i(879793);let T=(0,r.W)(),L={isInitialized:!1,dvSignals:"",lastUpdated:0},M="video",U=[[640,360]];function k(e){e&&(L.dvSignals=e,L.lastUpdated=Date.now())}function V(){let e=()=>{try{(0,D.g)(M,"/22541732127/vid.newsweek",U,"video")}catch{}};if(window.dvtag&&(window.defineDvtagSlot||window.dvtag.defineSlot))return void e();if(window.onDvtagReady)return void window.onDvtagReady(e,T.verification);let t=()=>{window.removeEventListener("dvtagReady",t),e()};window.addEventListener("dvtagReady",t)}function z(e){return new Promise(t=>{if(V(),function(e=Date.now()){return e-L.lastUpdated<3e4}(Date.now())&&L.dvSignals)return void t(L.dvSignals);let i=(0,r.W)(),n=!1,o=e=>{n||(n=!0,k(e),t(e))},a=()=>{try{var t=window.getDvtagTargeting?.(e)||{};if(!t||"object"!=typeof t)return"";let i=Object.entries(t).filter(([,e])=>e&&Array.isArray(e)&&e.length>0).map(([e,t])=>e.toUpperCase()+"="+t.join(",")).join("&");return i?encodeURIComponent(i):""}catch{return""}};if((window.dvtagReady||window.dvtag)&&window.getDvtagTargeting){let e=a();if(e)return void o(e)}window.onDvtagReady&&window.onDvtagReady(function(){o(a())},i.verification),setTimeout(()=>{o(a())},i.verification)})}async function N(e,t){let i=null,n=new Promise(t=>{i=setTimeout(()=>{t(e)},T.verification)}),o=(async()=>{try{if(!e||"string"!=typeof e)return e;let i=await z(t);if(!i)return e;let n=e;if(n.includes("%%CUST_PARAMS%%"))n=n.replace("%%CUST_PARAMS%%",i);else if(n.includes("cust_params=")){let e=new URL(n),t=e.searchParams.get("cust_params")||"",o="";try{o=decodeURIComponent(t)}catch{o=t}let r="";try{r=decodeURIComponent(i)}catch{r=i}let a=new URLSearchParams(r),d={};a.forEach((e,t)=>{e&&(d[t]=e)});let s={};o.split("&").filter(e=>e).forEach(e=>{let[t,...i]=e.split("=");t&&(s[t]=i.join("="))}),["IDS","QT_LOADED","ABS","CBS","BSC","VLP","TVP"].forEach(e=>delete s[e]),Object.assign(s,d);let l=["ref"],c=Object.entries(s).filter(([e,t])=>l.includes(e)?null!=t:null!=t&&""!==t).map(([e,t])=>`${e}=${t}`).join("&");e.searchParams.delete("cust_params");let u=e.toString(),w=u.includes("?")?"&":"?";n=`${u}${w}cust_params=${encodeURIComponent(c)}`}else{let e=n.includes("?")?"&":"?";n=`${n}${e}cust_params=${i}`}try{return new URL(n),n}catch{return e}}catch{return e}})(),r=await Promise.race([o,n]);return i&&clearTimeout(i),r}var B=e.i(477375),O=e.i(102311),q=e.i(135517);function $(e){let t=e.categories;if("string"==typeof t&&t.trim())return t.split(",")[0].trim();if(Array.isArray(t)&&t.length>0){let e=t[0];if("string"==typeof e&&e.trim())return e.trim()}let i=e.section;return"string"==typeof i&&i.trim()?i.trim():"news"}function H(e){let t=e.replace(/^nwus-/,"").replace(/[-/]/g,"_");return`nwus-${t}`}function G(e,t){let i=e[t];return Array.isArray(i)?i.filter(e=>"string"==typeof e&&e.length>0).join(","):""}function Y(e){let t=window.dataLayer?.[0]||{},i=t.video_duration,n="number"==typeof i&&i>0?i:function(){if("u"0)return Math.round(t)}();return{playbackId:e,title:t.video_title||t.title,description:t.video_description||t.description,duration:n,category:t.video_category||$(t)||void 0,playlistId:t.video_playlist_id||"1",videoType:t.video_type||"No",isLive:!0===t.video_live,mediaUrl:t.video_media_url||""}}function F(e,t,i){let n,o=null!=t&&""!==String(t).trim()?String(t):function(e){let t=0;for(let i=0;i>>0;return String(2e4+t%3329)}(e);if("number"==typeof i&&Number.isFinite(i)&&i>0)n=String(Math.round(i));else{let t=Y(e);"number"==typeof t.duration&&t.duration>0&&(n=String(Math.round(t.duration)))}return{vid:o,vid_d:n}}function W(e,t,i,n,o){let r,a,d,s,l,c,u,w,p,m,_,f,v,g,b,y,h,A,S,P,R,j,I,D,T,L=(u=(0,E.H)(),w=window.dataLayer?.[0]||{},p=(0,q.y)(),m=window.location.pathname.includes("/amp/")||document.documentElement.hasAttribute("amp"),_=w.page_type||((r=window.location.pathname).includes("/rankings/")?"rankings":r.includes("/magazine/")?"magazine":r.includes("/podcasts/")?"podcasts":r.includes("/sports/")?"sports":r.includes("/search/")?"search":r.includes("/topic/")?"topic":r.includes("/authors/")?"authors":"/"===r?"homepage":"article"),f=H($(w)),v=w.section||f,g=w.content_channel_iabs,b=g?.[0]||"n/a",y=w.entityId?.toString(),h=[],Array.isArray(w.topics)?h=w.topics:"string"==typeof w.topics&&w.topics&&(h=w.topics.replace(/'/g,"").split(", ").filter(Boolean)),A=w.writer,S=w.layout,{category:f,section:v,content:b,trafficSource:p,isAMP:m,platform:"mobile"===u?"mobile":"tablet"===u?"tablet":"desktop",browser:"web",pageType:_,articleId:y,topics:h,writer:A,layout:S,totalAds:w.total_ads,pageName:w.page_name,iab_context_v1:G(w,"iab_context_v1"),iab_context_v2:G(w,"iab_context_v2"),iab_context_v3:G(w,"iab_context_v3")}),M=Y(e),U=F(e,void 0!==o?o.databaseIdForGam:t,o?.contentDurationSec),k=(P={},window.gdprConsent&&(P.gdpr=window.gdprConsent),window.ccpaConsent&&(P.ccpa=window.ccpaConsent),P),V=(R={},(0,O.K)(),j=window.dataLayer?.[0]||{},I=window,(D=j.abt??j.ab_test??I.abt)&&(R.abt=D),(T=j.rpmabt??j.rpm_ab_test??I.rpmabt)&&(R.rpmabt=T),R.pbs_ab=(0,x._)(),R.aps_video_path=window.__apsVideoUsePrebidAdapter?"prebid":"aps",R),z=function(){let e={},t=window.dataLayer||[],i="y",n="next";for(let e=t.length-1;e>=0;e--){let o=t[e];if(o.brandsafe&&"string"==typeof o.brandsafe&&(i=o.brandsafe),o.atpl_ver&&"string"==typeof o.atpl_ver&&(n=o.atpl_ver),"y"!==i||"next"!==n)break}return e.brandsafe=i,e.atpl_ver=n,e}(),N=((a={}).focus=document.hidden?"N":"Y",d=document.referrer||"",/newsweek\.com/i.test(d)?a.referrer="internal":d?a.referrer="external":a.referrer="direct",a.ts="nonpromoted",a.trsource=(0,q.y)(),s=navigator.userAgent,l=/; wv/i.test(s),c=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Version)/i.test(s),l?a.brtype="wv_android":c?a.brtype="wv_ios":a.brtype="web",a),B=document.querySelector("mux-player"),W=document.querySelector("mux-video"),K=window.__videoElement||W||B||document.querySelector("video"),X=!1,Z=!1,Q="",J="",ee="";if(K){X=K.hasAttribute("autoplay")||K.autoplay||""===K.getAttribute("autoplay")||"true"===K.getAttribute("autoplay"),Z=K.hasAttribute("muted")||K.muted||""===K.getAttribute("muted")||"true"===K.getAttribute("muted"),Q=K.offsetWidth?.toString()||"",J=K.offsetHeight?.toString()||"";let e=K.getAttribute("src")||"",t=K.currentSrc||K.src||"";e&&!e.startsWith("blob:")?ee=e:t&&!t.startsWith("blob:")&&(ee=t)}let et=window.dfp_cat||L.category;et?.includes("/")&&(et=H(et));let ei={ts:N.ts,content:L.content,cat:et,sitecat:et,group_cat:et,nwnet_section:function(){if(!window.dataLayer)return null;let e=window.dataLayer;for(let t=e.length-1;t>=0;t--){let i=e[t];if(i.nwnet_section&&"string"==typeof i.nwnet_section)return i.nwnet_section}return null}()||"",focus:N.focus,referrer:N.referrer,trsource:N.trsource,brtype:N.brtype,is_gdpr:"0",adexclusion:n?.map(e=>e.title).join(",")||"generic_brand_safety",vid:U.vid,...U.vid_d?{vid_d:U.vid_d}:{},vid_plist:M.playlistId||"2",vidcontent:L.content||"IAB6",iab_context_v1:L.iab_context_v1,iab_context_v2:L.iab_context_v2,iab_context_v3:L.iab_context_v3,autoplay:X?"Y":"N",muted:Z?"Y":"N",media:M.mediaUrl?M.mediaUrl:ee||(e?`https://stream.mux.com/${e}.m3u8`:""),ref:document.referrer?document.referrer:"",title:M.title||"",description:M.description||"",duration:M.duration?M.duration>60?"60plus":M.duration>30?"30to59":M.duration.toString():"",w:Q,h:J,topics:L.topics?.join(",")||"",pageurl:(0,C.Q)(window.location.href),video_type:M.videoType||(M.duration?"Yes":"No"),...(0,C.r)()?{nwdemocr:(0,C.r)()}:{},...k,...V,...{},...z};return i&&Object.assign(ei,i),ei}let K=["ref","iab_context_v1","iab_context_v2","iab_context_v3"],X=["fito","nwdemocr","categories","adunit","article_id","pbs_ab"];function Z(e){let t={...e},i=window.googletag?.pubads?.();if(i)for(let e of X){let n=(i.getTargeting(e)||[]).join(",");!n||e in t||(t[e]=n)}return t.pbs_ab=(0,x._)(),t}function Q(e){return Object.entries(e).filter(([e,t])=>!!K.includes(e)||""!==t&&null!=t).map(([e,t])=>`${e}=${t}`).join("&")}async function J(e,t,i,n="video",o,r,a,d){try{let s=void 0!==d?Promise.resolve(d):Promise.resolve(function(e,t,i,n,o){try{return Q(Z(W(e,t,i,n,o)))}catch(e){return console.error("[VIDEO PARAMETER ASSEMBLY] Failed to collect custom parameters:",e),""}}(t,i,o,r,a)),[l,u,w,p]=await Promise.all([Promise.resolve(function(e="video"){if(!window.pbjs)return console.warn("[VIDEO PARAMETER ASSEMBLY] Prebid.js not available"),{prebid_video_bid:"",prebid_cust_param:""};if(!(0,c.f)())return console.warn("[VIDEO PARAMETER ASSEMBLY] Prebid.js not fully loaded — skipping hb targeting for this assembly"),{prebid_video_bid:"",prebid_cust_param:""};try{let t=window.pbjs.getAdserverTargetingForAdUnitCode(e)||{},i=Object.entries(t).filter(([,e])=>e).map(([e,t])=>`${e}=${t}`).join("&");return window.prebid_video_bid&&""!==window.prebid_video_bid||(window.prebid_video_bid=i),{prebid_video_bid:window.prebid_video_bid||i,prebid_cust_param:""}}catch(e){return console.error("[VIDEO PARAMETER ASSEMBLY] Failed to collect Prebid parameters:",e),{prebid_video_bid:"",prebid_cust_param:""}}}(n)),Promise.resolve(function(){if(!window.apstag||!window.aps)return"";try{let e=window.amzn_video_bid||"";if(!e)return"";try{return decodeURIComponent(e)}catch(t){return console.warn("[APS VIDEO] Failed to decode APS parameters:",t),e}}catch(e){return console.error("[VIDEO PARAMETER ASSEMBLY] Failed to collect APS parameters:",e),""}}()),s,Promise.resolve(window.openads_video_cust?.trim()??"")]);return function(e,t,i,n,o){let r=e,a=[];if(i&&""!==i&&a.push(i),t?.prebid_video_bid&&""!==t.prebid_video_bid){let e=t.prebid_video_bid+(t.prebid_cust_param||"");a.push(e)}o&&""!==o&&a.push(o),n&&""!==n&&a.push(n);let d=a.join("&");if(d){let e=encodeURIComponent(d);if(r.includes("%%CUST_PARAMS%%"))r=r.replace("%%CUST_PARAMS%%",e);else if(r.includes("%25%25CUST_PARAMS%25%25"))r=r.replace("%25%25CUST_PARAMS%25%25",e);else if(r.includes("cust_params=")){let e=new URL(r),t=e.searchParams.get("cust_params")||"",i="";if(t)try{i=decodeURIComponent(t)}catch(e){console.warn("[VIDEO PARAMETER ASSEMBLY] Failed to decode existing cust_params:",e),i=t}let n=i?i+"&"+d:d;e.searchParams.delete("cust_params");let o=e.toString(),a=o.includes("?")?"&":"?";r=`${o}${a}cust_params=${encodeURIComponent(n)}`}else{let t=r.includes("?")?"&":"?";r=`${r}${t}cust_params=${e}`}}return r}(e,l,u,w,p)}catch(t){return console.error("[VIDEO PARAMETER ASSEMBLY] Failed to assemble parameters:",t),e}}let ee="video",et=!1,ei=0;async function en(e,t,i,n){let o=e;try{o=await N(e,ee)}catch{}return eo(o,t,i,n)}function eo(e,t,i,n){try{let o=new URL(e),{vid:r,vid_d:a}=F(t,i,n?.contentDurationSec);o.searchParams.set("vid",r);let d=Y(t);return a&&o.searchParams.set("vid_d",a),n?.mediaUrl&&d.mediaUrl&&o.searchParams.set("media_url",d.mediaUrl),o.toString()}catch{return e}}let er=async(e,t,i,n,o,a,d)=>{let s,u=++ei,w={contentDurationSec:d?.contentDurationSec},p={databaseIdForGam:o,contentDurationSec:d?.contentDurationSec};if(!1===window.__shouldLoadAds)return"";(0,C.M)(),window.openads_video_cust="",V(),L.isInitialized||(L.isInitialized=!0,s=new Promise(e=>{setTimeout(()=>e(""),T.verification)}),Promise.race([z(M),s]).then(e=>{e&&k(e)}).catch(()=>{}));try{let{defaultSizes:s,bidders:m,mediaTypes:_}=(0,B.G)(i),f=(0,x.k)(m.prebid?.bids||[]);if(0===f.length){let t={vid_plist:u.toString()};d?.willAutoplay!==void 0&&(t.autoplay=d.willAutoplay?"Y":"N"),d?.willPlayMuted!==void 0&&(t.muted=d.willPlayMuted?"Y":"N");let i=await J((0,B.l)(s,n,d),e,o||e,ee,t,a,p);return en(i,e,o,w)}f.forEach(e=>{if(!e.params)return;let t=e.params.mediaTypes;t?.banner&&delete t.banner});let v=(0,B.l)(s,void 0,d);try{new URL(v)}catch(e){console.error("[VIDEO FETCHER] Invalid base ad tag URL generated:",v,e),v="https://securepubads.g.doubleclick.net/gampad/ads?env=vp&gdfp_req=1&nofb=1&output=xml_vast&sz=640x360&unviewed_position_start=1&hl=en&ad_rule=0&vpos=preroll&ad_type=video&vad_type=linear&min_ad_duration=5000&max_ad_duration=60000&iu=/22541732127/vid.newsweek&url=https://www.newsweek.com/&cust_params=%%CUST_PARAMS%%"}let g=W(e,o||e,void 0,a,p),b=e=>Q(Z({...g,...e})),y={playback_id:e,...g,vid_plist:u.toString()};if(!window.apstag||!window.aps||!window.pbjs){let t={vid_plist:u.toString()};d?.willAutoplay!==void 0&&(t.autoplay=d.willAutoplay?"Y":"N"),d?.willPlayMuted!==void 0&&(t.muted=d.willPlayMuted?"Y":"N");let i=await J(v,e,o||e,"video",t,a,p,b(t));return en(i,e,o,w)}let h=window.oajs?.generateTID?.()??"",A=l().then(e=>{e.amzn_vid&&(window.amzn_video_bid=e.amzn_vid)}).catch(()=>{}),S=new Promise(e=>{window.pbjs.que=window.pbjs.que||[],window.pbjs?.que.push(()=>{try{if(!(0,c.f)())return void e();let i=window._prebidMainInitializing,n=window._prebidMainInitialized,o=window._prebidFloorsConfigured;if(i)return void window.pbjs?.que.push(()=>{e()});if(!n&&!o){let e=(0,R.$)([{adUnitCode:"video",mediaType:"video",sizes:s,slotPath:"/22541732127/vid.newsweek"}],t),i=(0,I.E)(e);(0,I.I)(window.pbjs,i),(0,I.O)(),window._prebidFloorsConfigured=!0,window._prebidMainInitialized=!0}if(!et){et=!0;let e={code:ee,mediaTypes:{video:{context:"instream",playerSize:s,mimes:["video/mp4","video/webm","application/javascript"],protocols:[2,3,5,6,7,8],api:[2],playbackmethod:[2],delivery:[1,2],startdelay:0,minduration:1,maxduration:60,linearity:1,placement:1,plcmt:2,prodq:1,skip:1,..._,playerSize:s}},ortb2Imp:{exp:(0,r.S)("video"),ext:{gpid:"/22541732127/vid.newsweek",data:{pbadslot:"/22541732127/vid.newsweek"},...h?{tid:h}:{},..."ay"===(0,x._)()?{prebid:{storedrequest:{id:(0,x.K)(ee,(0,E.H)())}}}:{}}},bids:f};window.pbjs?.addAdUnits([e])}let a=(0,r.W)();window.pbjs?.requestBids({timeout:a.prebid,adUnitCodes:[ee],bidsBackHandler:()=>{try{if(!window.pbjs){console.warn("[PREBID VIDEO] Prebid.js not available in bidsBackHandler"),e();return}let t=window.pbjs?.getBidResponses?.();if(t&&t[ee]){let e=t[ee].bids||[];0===e.length&&console.warn("[PREBID VIDEO] No bids received for video slot")}else console.warn("[PREBID VIDEO] No bid responses for video slot");let i=window.pbjs?.getHighestCpmBids?.(ee)?.[0];if(i&&i.cpm&&i.cpm>0){let e={};i.videoCacheKey?e.hb_cache_id=i.videoCacheKey:i.uuid&&(e.hb_uuid=i.uuid),e.hb_bidder=i.bidderCode||i.bidder||"",e.hb_pb=i.pbMg||i.cpm?.toString()||"0",i.adId&&(e.hb_adid=i.adId),i.aid&&(e.hb_vid=i.aid),i.size&&(e.hb_size=i.size),i.adserverTargeting&&Object.assign(e,i.adserverTargeting),Object.assign(y,e);{let t=Object.entries(e).filter(([,e])=>e);if(t.length>0){let e=t.map(([e,t])=>`${e}=${t}`).join("&");window.prebid_video_bid=e}}}try{window.pbjs?.markWinningBidAsUsed?.({adUnitCode:ee})}catch{}e()}catch(t){console.error("[PREBID VIDEO] Error processing bids:",t),e()}}})}catch(t){console.error("[PREBID] Error in Prebid.js configuration:",t),e()}})}),P=new Promise(e=>{if(!window.oajs?.requestBids)return void e();(0,j.G)();let t=(0,r.W)();try{window.oajs.requestBids({adUnits:[{code:ee,mediaTypes:{video:{context:"instream",playerSize:s,mimes:["video/mp4","video/webm","application/javascript"],protocols:[2,3,5,6,7,8],api:[2],playbackmethod:[2],delivery:[1,2],startdelay:0,minduration:1,maxduration:60,linearity:1,..._,playerSize:s}},bids:[{bidder:"thetradedesk",params:{supplySourceId:"newsweek",publisherId:"1"}}],ortb2Imp:{exp:(0,r.S)("video"),ext:{tid:h,gpid:"/22541732127/vid.newsweek",data:{pbadslot:"/22541732127/vid.newsweek"}}}}],timeout:t.openads,bidsBackHandler:()=>{let t=window.oajs?.getHighestCpmBids?.(ee)?.[0];if(t&&t.cpm>0){let e=Object.entries(t.adserverTargeting||{}).filter(([,e])=>null!=e&&""!==String(e)).map(([e,t])=>`${e}=${String(t)}`).join("&");window.openads_video_cust=e}e()}})}catch(t){console.error("[ads] OpenAds video requestBids failed",t),e()}});await Promise.all([A,S,P]);let C={vid_plist:u.toString()};d?.willAutoplay!==void 0&&(C.autoplay=d.willAutoplay?"Y":"N"),d?.willPlayMuted!==void 0&&(C.muted=d.willPlayMuted?"Y":"N");let D=b(C),T=await J(v,e,o||e,ee,C,a,p,D);try{let t=await N(T,ee);if(window.cdlabel||window.cdlabel_group)try{let e=new URL(t),i=e.searchParams.get("cust_params")||"",n="";if(i)try{n=decodeURIComponent(i)}catch(e){console.warn("[VIDEO AD FETCHER] Failed to decode existing cust_params:",e),n=i}let o=new Map;n&&n.split("&").forEach(e=>{let t=e.indexOf("=");t>0&&o.set(e.substring(0,t),e.substring(t+1))}),window.cdlabel&&o.set("cdepl",String(window.cdlabel)),window.cdlabel_group&&o.set("cdepl_group",String(window.cdlabel_group));let r=Array.from(o.entries()).map(([e,t])=>`${e}=${t}`).join("&");e.searchParams.delete("cust_params");let a=e.toString(),d=a.includes("?")?"&":"?";t=`${a}${d}cust_params=${encodeURIComponent(r)}`}catch{}return eo(t,e,o,w)}catch{let t=await J(v,e,o||e,ee,C,a,p,D);return en(t,e,o,{...w,mediaUrl:!0})}}catch(t){console.error("[VIDEO FETCHER] Critical error in ad tag generation:",t);try{let t=await J((0,B.l)([[640,360]],void 0,d),e,o||e,ee,{vid_plist:String(ei||1)},a,p);return en(t,e,o,w)}catch{return en((0,B.l)([[640,360]],void 0,d),e,o,w)}}};e.s(["c",0,function(){et=!1;let e=window.pbjs;e&&("function"==typeof e.removeAdUnit?e.removeAdUnit(ee):Array.isArray(e.que)&&e.que.push(()=>{window.pbjs?.removeAdUnit?.(ee)}))},"m",0,er,"x",0,function(){ei++},"O",0,function(){ei=0}],118954)},268083,e=>{var t=e.i(463452);let i=new Set(["US","CA","GB","AT","BE","CL","CO","CY","CZ","DK","GR","GT","ID","KR","LU","MT","MX","NO","PE","PH","PL","SE","VN"]);e.s(["f",0,function(){var e;return!("u"{e.v({controls:"YUxTzq_controls",decorativeControls:"YUxTzq_decorativeControls",image:"YUxTzq_image",loadingBar:"YUxTzq_loadingBar",loadingStatus:"YUxTzq_loadingStatus",placeholder:"YUxTzq_placeholder",secondaryControl:"YUxTzq_secondaryControl",spinner:"YUxTzq_spinner",timeline:"YUxTzq_timeline"})},667864,e=>{e.v({closeButton:"G_PNxG_closeButton",container:"G_PNxG_container",fullBleedMobile:"G_PNxG_fullBleedMobile",miniPlayer:"G_PNxG_miniPlayer",miniPlayerSlideIn:"G_PNxG_miniPlayerSlideIn",miniPlayerVariantB:"G_PNxG_miniPlayerVariantB",player:"G_PNxG_player",title:"G_PNxG_title"})}]);