!function(){"use strict";function e(e){return!(!e||"object"!=typeof e||Array.isArray(e))}function t(t,o){if(Array.isArray(t))t.forEach(o);else if(e(t))for(let e in t)o(t[e],e,t);return t}function o(e,t){return e&&t in e}function a(a,n){let r={};return Array.isArray(a)?t(a,((t,i)=>{let d=n(t,i,a);e(d)&&o(d,"key")&&o(d,"value")?r[d.key]=d.value:r[i]=d})):t(a,((t,i)=>{let d=n(t,i,a);e(d)&&o(d,"key")&&o(d,"value")?r[d.key]=d.value:r[i]=d})),r}Object.freeze({red:153,green:50,blue:204}),Object.freeze({red:0,green:0,blue:0}),Object.freeze({red:240,green:248,blue:255}),Object.freeze({1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"}),Object.freeze(["abort","canplay","canplaythrough","click","contextmenu","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"]);const n=Object.freeze({BUFFERING:"powaBuffering",COMPLETE:"powaComplete",END:"powaEnd",ERROR:"powaError",FIRST_FRAME:"powaFirstFrame",LOADED:"powaLoaded",LOOP:"powaLoop",MEDIA_CLICK:"powaMediaClick",MEDIA_HOVER:"powaMediaHover",MEDIA_RIGHT_CLICK:"powaMediaRightClick",MEDIA_START:"powaMediaStart",META:"powaMeta",MUTED:"powaMuted",PAUSE:"powaPause",PLAY:"powaPlay",PROGRESS:"powaProgress",READY:"powaReady",SEEK:"powaSeek",SEEKED:"powaSeeked",SKIP:"powaSkip",START:"powaStart",TIME:"powaTime",UNLOADED:"powaUnloaded",VOLUME:"powaVolume"});let r=/^powa/;const i=a(n,(function(e){let t=e.replace(r,"");return t=t[0].toLowerCase()+t.slice(1),t})),d=Object.assign({AD_CLICK:"adClick",AD_COMPANIONS:"adCompanions",AD_COMPLETE:"adComplete",AD_CONTENT_PAUSE_REQUESTED:"adContentPauseRequested",AD_CONTENT_RESUME_REQUESTED:"adContentResumeRequested",AD_DESTROYED:"adDestroyed",AD_DURATION_CHANGE:"adDurationChange",AD_END:"adEnd",AD_ERROR:"adError",AD_FIRST_FRAME:"adFirstFrame",AD_FIRST_QUARTILE:"adFirstQuartile",AD_IMPRESSION:"adImpression",AD_LOADED:"adLoaded",AD_MIDPOINT:"adMidpoint",AD_MUTE:"adMute",AD_NULL:"adNull",AD_OVERRUN:"adOverrun",AD_PAUSE:"adPause",AD_PLAY:"adPlay",AD_PLAYLIST_COMPLETE:"adPlaylistComplete",AD_READY:"adReady",AD_REQUEST:"adRequest",AD_REWIND:"adRewind",AD_SETUP_ERROR:"adSetupError",AD_SKIP:"adSkip",AD_START:"adStart",AD_START_REQUEST:"adStartRequest",AD_START_TIMEOUT:"adStartTimeout",AD_START_UNREPORTED:"adStartUnreported",AD_THIRD_QUARTILE:"adThirdQuartile",AD_TIME:"adTime",AD_TRUNCATED:"adTruncated",AD_WAITING:"adWaiting"},{AD_BAR_DISABLE_SKIP:"adBarDisableSkip",AD_BAR_ENABLE_SKIP:"adBarEnableSkip",AD_BAR_HIDE:"adBarHide",AD_BAR_MUTE:"adBarMute",AD_BAR_PAUSE:"adBarPause",AD_BAR_PLAY:"adBarPlay",AD_BAR_SHOW:"adBarShow",AD_BAR_SHOW_SKIP:"adBarShowSkip",AD_BAR_SKIP:"adBarSkip"}),s=Object.assign({ALL:"*",AUTOPLAY:"autoplay",DESTROYED:"destroyed",WARNING:"warning",FULLSCREEN:"fullscreen",HOVER:"hover",MOUSE:"mouse",TAP:"tap",HLS_TAGS:"hlsTags",HLS_INITIAL_LEVEL:"hlsInitialLevel",HLS_LEVEL_SWITCH:"hlsLevelSwitch",POWA_ERROR:"powaError",POWA_READY:"powaReady",POWA_RENDER:"powaRender"},i,{POWA_BAR_SHOW:"powaBarShow",POWA_BAR_HIDE:"powaBarHide"},{ADDED_TO_DOM:"addedToDOM",RESIZE:"resize",VIEWABLE:"viewable",NOT_VIEWABLE:"notViewable"},{PLAYLIST:"playlist",PLAYLIST_LOADED:"playlistLoaded",PLAYLIST_COMPLETE:"playlistComplete"},d,{POWA_RENDER:"powaRender",PROMO_CLICK:"promoClick",PROMO_HIDE:"promoHide",PROMO_HOVER:"promoHover",PROMO_PLAY:"promoPlay",PROMO_SHOW:"promoShow",PROMO_TOUCH:"promoTouch"},{SUBS_AVAILABLE:"subsAvailable",SUBS_UNAVAILABLE:"subsUnavailable",SUBS_ENABLED:"subsEnabled",SUBS_DISABLED:"subsDisabled",SUBTITLES_CUSTOMIZE_CLICK:"subtitlesCustomizeClick",SUBTITLES_CUSTOMIZE_OPENED:"subtitlesCustomizeOpened",SUBTITLES_CUSTOMIZE_CLOSED:"subtitlesCustomizeClosed"},{PLAYBACK_0:"playback0",PLAYBACK_25:"playback25",PLAYBACK_50:"playback50",PLAYBACK_75:"playback75",PLAYBACK_100:"playback100"});function l(){}const p=/^[A-Z]/,c=/-([a-z]?)/g;function u(e){let t=document.querySelectorAll(`script[src*="${e}"]`);return t.length&&t[0].src?t[0].src:null}const E={DEFAULT:"https://d1bl11pgu3tw3h.cloudfront.net",adn:"https://d3hx2fmdmxvu47.cloudfront.net",advancelocal:"https://dm32zrtgin2a8.cloudfront.net",answers:"https://d3ed7e5yt5qhaw.cloudfront.net",bonnier:"https://dlbqnuhvjsfjk.cloudfront.net",bostonglobe:"https://d1zokzhal29fpg.cloudfront.net",gmg:"https://d3t0x48b5v1we0.cloudfront.net",gruponacion:"https://d2d765ytpxgyaz.cloudfront.net",infobae:"https://d2uans147eyg5w.cloudfront.net",laprensa:"https://dfolklnl1rz69.cloudfront.net",mco:"https://dv90bhm02uda6.cloudfront.net",mexico:"https://d2fkggjsb5dp6w.cloudfront.net",pmn:"https://dzyf5jtgd0sxp.cloudfront.net",raycom:"https://d3mo2m0b34ee8e.cloudfront.net",spectator:"https://d5okiqjac2zht.cloudfront.net",staging:"https://d20bvihs725teq.cloudfront.net",test:"https://d1bl11pgu3tw3h.cloudfront.net",tbt:"https://d39l8mfm1ululs.cloudfront.net",tgam:"https://d6e4eccju4kk3.cloudfront.net",tronc:"https://diodxcszlbmwk.cloudfront.net",wapo:"https://d1pz6dax0t5mop.cloudfront.net",washpost:"https://d1bl11pgu3tw3h.cloudfront.net",wweek:"https://d1yyv6jsced01i.cloudfront.net",eluniversal:"https://d1pgum5l3b2mym.cloudfront.net",arcbergamot:"https://d2i900q0o95qa.cloudfront.net",rpalatam:"https://d1jym49s46offe.cloudfront.net",unifiedanalytics:"https://d2460u56mqq6j6.cloudfront.net",arccardamom:"http://dm6wn03jtqguh.cloudfront.net",arcchilipepper:"http://d3ahe086awt3ho.cloudfront.net",archorseradish:"http://d1tsaumd5tqfsw.cloudfront.net",arcpeppermint:"http://ddduavdeimywt.cloudfront.net",arcvanilla:"https://d31gs4dugprz8k.cloudfront.net"},A=/localhost|10\.0\.2\.2|192\.168/;function w(e){let t=e?e.split("/"):[];return t=t.reverse(),t.shift(),t.shift(),"v"===t[0]&&t.shift(),t=t.reverse().join("/"),t}function _(e){const t=w(e);let o=e.replace(t,"");return o=o?o.split("/"):[],o.shift(),o.pop(),o=o.join("/"),o}const D=["powaBoot.js","powaDrive.js","powa.js"];function S(e){const t=D.reduce(((e,t)=>e||u(t)),null);return t?w(t):function(e){return E[e]?E[e]:`https://${e}.video-player.arcpublishing.com`}(e)}function f(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"powaBoot.js";const t=u(e),o=t?_(t):null;let a=location.pathname.split("/");return a.shift(),a.pop(),a=a.join("/"),A.test(location.origin)?"local":o||a||"prod"}function R(e){return e.dataset||(e.dataset=function(e){let o={};return t(e,((e,t)=>{t.startsWith("data-")&&(t=t.substr(5),o[function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(p,(e=>e.toLowerCase())).replace(c,((e,t)=>t.toUpperCase()))}(t)]=e)})),o}(e.attributes)),e}const g=/^{.*}$/,v=/^\[.*\]$/;function m(e){return"string"!=typeof e?e:""===e?"":"true"===e.toLowerCase()||"false"!==e.toLowerCase()&&("null"===e.toLowerCase()?null:"undefined"===e.toLowerCase()?void 0:isNaN(Number(e))?g.test(e)||v.test(e)?JSON.parse(decodeURIComponent(e)):e:Number(e))}function T(e){return e&&"object"==typeof e&&(t(e,T),Object.freeze(e)),e}const h=/android/i.test(window.navigator.userAgent);function P(){const e=document.createElement("video");return!!e.canPlayType&&{ogg:e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),h264:e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),webm:e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""),vp9:e.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,""),hls:e.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,"")&&!h,hlsJS:function(){const e=window.MediaSource||window.WebKitMediaSource,t=window.SourceBuffer||window.WebKitSourceBuffer,o=e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),a=!t||t.prototype&&"function"==typeof t.prototype.appendBuffer&&"function"==typeof t.prototype.remove;return o&&a}()}}const O=/[[\]]/g;function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0,a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t="string"==typeof t?t.replace(O,".").split(".").filter((e=>!!e)):[...t];const n=t.shift();return t.length?(e[n]=e[n]?e[n]:isNaN(t[0])?{}:[],b(e[n],t,o,a)):(e[n]=a||void 0===e[n]?"function"==typeof o?o():o:e[n],e[n])}function L(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"powaUnspecified",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"powaUnspecified"===e&&console.error("[globalEvent] - unspecified type"),t.type=t.type||e,window.dispatchEvent(new CustomEvent(e,{detail:t})),b(window,"powas",{},!1),window.powas._meta||Object.defineProperty(window.powas,"_meta",{enumerable:!1,writable:!0}),b(window,"powas._meta.powaTrack",[],!1),window.powas._meta.powaTrack.push({type:e,detail:t})}function I(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"powaError";e.message&&console.error(`[PoWa] Error - ${e.message}`),console.error(e),L(t,e)}function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"powaTrack";L(t,e)}function C(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,a=document.querySelector(`script[src="${e}"]`);a&&a.hasAttribute("data-powa-script")?a.hasAttribute("data-load")?t({previouslyLoaded:!0}):a.hasAttribute("data-error")?o():(a.addEventListener("load",t),a.addEventListener("error",o)):(a=document.createElement("script"),document.head.append(a),a.addEventListener("error",(()=>{a.setAttribute("data-error",!0),o()})),a.addEventListener("load",(()=>{a.setAttribute("data-load",!0),t({previouslyLoaded:!1})})),a.setAttribute("data-powa-script",!0),a.type="text/javascript",a.async=!0,a.src=e)}function B(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}T({debug:!1,debugExclusions:["adTime","progress","time"]});const U=e=>"prod"===e?"prod":"sandbox"===e?"sandbox":"local"===e?"dev":"prod";U(f()),U(f()),s.POWA_READY,s.POWA_RENDER,s.POWA_ERROR,s.START,s.PLAYBACK_0,s.PLAYBACK_25,s.PLAYBACK_50,s.PLAYBACK_75,s.PLAYBACK_100,d.AD_CLICK,d.AD_COMPLETE,d.AD_CONTENT_PAUSE_REQUESTED,d.AD_CONTENT_RESUME_REQUESTED,d.AD_DESTROYED,d.AD_END,d.AD_ERROR,d.AD_FIRST_FRAME,d.AD_LOADED,d.AD_MUTE,d.AD_READY,d.AD_REQUEST,d.AD_SKIP,d.AD_START,d.AD_START_REQUEST,d.AD_START_TIMEOUT,d.AD_START_UNREPORTED,d.AD_WAITING,T({debug:!1,debugExclusions:[s.AD_TIME,s.HOVER,s.META,s.POWA_BAR_HIDE,s.POWA_BAR_SHOW,s.PROGRESS,s.TIME],reportSkipped:!1,setupError:console.error}),s.POWA_RENDER,s.POWA_READY,s.POWA_ERROR,new WeakMap,new WeakMap,new WeakMap,T({additional_properties:{imageResizerUrls:[]},canonical_url:"",headlines:{},promo_image:{},streams:[],subtitles:{urls:[]}});const N=T({AUTOINIT:{TRUE:!0,FALSE:!1,NATIVE_HLS:"native-hls"},DEBUG:{TRUE:!0,FALSE:!1,FULL:"full"}});T({ads:!0,adHacks:!0,autoplay:!1,autoinit:N.AUTOINIT.NATIVE_HLS,debug:N.DEBUG.FALSE}),T({advertising:{},imageResizer:e=>e.url,maxBitrate:{mobile:300,tablet:600,desktop:2e3},promo:{size:"medium"},streamPreference:["_master.m3u8","_mobile.m3u8",".m3u8",".mp4",".webm"]});const M={PLAYER_CONTAINER:"powa",PROCESSED:"powa-processed",SKIP:"powa-skip"};let W=0,k=a(M,(e=>`.${e}`));function $(e,t){return e.classList?e.classList.contains(t):new RegExp(`\\b${t}\\b`).test(e.className)}function j(e){return!$(e,M.SKIP)}function K(e){return e.dataset.org&&(e.dataset.uuid||e.dataset.playlist)}function H(e){let o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.location.search,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"=";const a={};return e.replace(/(^\?)/,"").split(t).forEach((e=>{(e=e.split(o))[0]&&(a[e[0]]=e[1])})),a}();var n,r;return o=function(e,o){let a={};return Array.isArray(e)?e.filter(o):(t(e,((e,t)=>{o(e,t)&&(a[t]=e)})),a)}(o,((e,t)=>t.startsWith("powa-"))),o=a(o,((e,t)=>({key:t.replace("powa-","data-"),value:e}))),t(o,((t,o)=>e.setAttribute(o,t))),e.dataset.powaIndex||e.setAttribute("data-powa-index",W++),r=M.PROCESSED,(n=e).classList?n.classList.add(r):$(n,r)||(n.className+=` ${r}`),e}function Y(e){let t=e.getAttribute("id");if(!t){let o=a(e.dataset,m);t=`powa-${o.uuid?o.uuid:Date.now()}-${o.powaIndex}`,e.setAttribute("id",t)}return e}function z(e){let t=document.querySelectorAll(k.PLAYER_CONTAINER);if(t=[...t].filter((e=>!$(e,M.PROCESSED))),t.length)if(t=t.map(R).filter(K).filter(j).map(H).map(Y),t.length){const{org:o,env:a,dev:n,version:r}=function(e){const t=e.dataset.org,o=e.dataset.dev,a=o?`${a}/dev`:e.dataset.env||f();let n=e.dataset.version;return n=n&&o?`${n}/dev`:n,{org:t,env:a,dev:o,version:n}}(t[0]);C(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f(),o=arguments.length>2?arguments[2]:void 0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";const n=t=>`${S(e)}/${t}/org/${e}.js?org=${e}`;return o?n(`v/${o}`):"local"===t?`${a}/org/${e}.js`:n(t)}(o,a,r,e?.orgHost),(()=>{(function(e,t,o){e=e||function(e){return window.PoWaSettings.version&&e?`${window.PoWaSettings.version}/dev`:window.PoWaSettings.version}(o),e&&window.PoWaSettings.powaUp.element.push((o=>new Promise((a=>{o.forEach((o=>o.setAttribute("data-env",e?`v/${e}`:t))),a()}))))})(r,a,n),function(e,t){window.PoWaSettings.powaUp.element.reduce(((t,o)=>t.then((()=>o(e)))),Promise.resolve()).then(t)}(t,(()=>e.bootCallback({powas:t,org:o,env:a,version:r})))}),(e=>{I({eventID:910,message:`[PoWaBootSDK] Failed to obtain ${o}.js`,error:e})}))}else y({eventID:902,message:`[PoWaBootSDK] No eligible '${k.PLAYER_CONTAINER}' elements found`});else y({eventID:901,message:`[PoWaBootSDK] No '${k.PLAYER_CONTAINER}' elements found`})}!function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var o=document.createEvent("CustomEvent");return o.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),o}e.prototype=window.Event.prototype,window.CustomEvent=e}(),"function"!=typeof window.setImmediate&&(window.setImmediate=window.setTimeout,window.clearImmediate=window.clearTimeout),b(window,"PoWaSettings.powaBoot",{},!1),b(window,"PoWaSettings.powaUp.adTag",[],!1),b(window,"PoWaSettings.powaUp.element",[],!1),b(window,"PoWaSettings.powaUp.videoData",[],!1);const F="PoWaBoot";function x(e,t){e.forEach((e=>{if(window.IntersectionObserver&&m(e.dataset.lazyload)){new IntersectionObserver(((o,a)=>{o.forEach((o=>{o.isIntersecting&&(a.unobserve(e),new PoWaDrive(e,t))}))}),{rootMargin:"200px"}).observe(e)}else"true"===e.getAttribute("data-stash-powa")?(window.powas=window.powas||{},window.powas._powas=window.powas._powas||[],window.powas._powas.push(new PoWaDrive(e))):new PoWaDrive(e,t)}))}function q(e,t,o){let{powas:a,org:n,env:r,version:i}=e;PoWaSettings.org=PoWaSettings.org||n,window.PoWaDrive?x(a,o):function(e,t,o,a,n,r){C(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"powa.js",t=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f(),a=arguments.length>3?arguments[3]:void 0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";const r=o=>`${S(t)}/${o}/${e}?org=${t}`;return a?r(`v/${a}`):"local"===o?`${n}/js/${e}`:r(o)}("powaDrive.js",t,o,a,n?.orgHost),(()=>{x(e,r)}),(e=>{I({eventID:911,message:`[${F}] Failed to obtain powaDrive.js`,error:e})}))}(a,n,r,i,t,o)}window.powaBoot=window.powaBoot||function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};PoWaSettings.videoSupport=PoWaSettings.videoSupport||P(),PoWaSettings.videoSupport?B((()=>{z({...e,bootCallback:o=>q(o,e,t)})})):I({eventID:900,message:`[${F}] Browser does not support HTML5 video!`})},PoWaSettings.powaBoot.loaded||(PoWaSettings.powaBoot.loaded=!0,window.powaBoot())}();