PageSourceSearch

https://zattoo.com/app-d3a422aa90f5a4593613.js

js zattoo.com collected 2026-09-24 08:45:08 UTC 630,945 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="69fff270-ad93-4a29-af93-156e96df3427",e._sentryDebugIdIdentifier="sentry-dbid-69fff270-ad93-4a29-af93-156e96df3427")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"[email protected]"},window.__ICON_SPRITES__=["/icons-d67a13c26fbb8edd0e0b5b9fc3ce0a57.svg"],(()=>{var e,t,s,n,i,r={3232(e,t,s){var n={"./de.json":5007,"./en.json":7815,"./es.json":272,"./fr.json":4788,"./it.json":7645};function i(e){var t=r(e);return s(t)}function r(e){if(!s.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=r,e.exports=i,i.id=3232},9222(e,t,s){"use strict";s.d(t,{FY:()=>i,G_:()=>n,a$:()=>r});const n="VIDEO",i="AUDIO",r="TEXT"},3955(e,t,s){"use strict";s.d(t,{OI:()=>u,bh:()=>a,f8:()=>m,gm:()=>h,hq:()=>o,ij:()=>p,nr:()=>c,un:()=>l,wU:()=>g});const{maxTouchPoints:n,platform:i,userAgent:r}=window.navigator,o="Samsung Internet",a=Boolean(r.match(/ipad/i))||Boolean(n&&n>2&&/MacIntel/.test(i)),l=Boolean(r.match(/iphone|ipod|ipad/i)),c=/^((?!chrome|android).)*safari/i.test(r),d=Boolean(r.match(/chrome\//i)),p=Boolean(r.match(/SamsungBrowser/i)),u=Boolean(r.match(/\bSilk\b/)),h=Boolean(r.match(/rv:.+Gecko\/.+Firefox\//i)),m=l||a||c&&!d,g=[{id:o,logo:"https://cdnjs.cloudflare.com/ajax/libs/browser-logos/62.2.10/samsung-internet/samsung-internet.svg",url:"https://samsung.com/global/galaxy/apps/samsung-internet"},{id:"Chrome",logo:"https://cdnjs.cloudflare.com/ajax/libs/browser-logos/62.2.10/chrome/chrome.svg",url:"https://google.com/chrome"},{id:"Firefox",logo:"https://cdnjs.cloudflare.com/ajax/libs/browser-logos/62.2.10/firefox/firefox.svg",url:"https://mozilla.org"},{id:"Edge",logo:"https://cdnjs.cloudflare.com/ajax/libs/browser-logos/62.2.10/edge/edge.svg",url:"https://www.microsoft.com/edge"}]},5356(e,t,s){"use strict";s.d(t,{QJ:()=>i,V$:()=>n,lM:()=>r});const n=e=>{const{messageData:t}=e;if(!t)return null;const s=t.split("_");return{recorderStart:s[0],recorderEnd:s[1],transcoderStart:s[2],transcoderEnd:s[3],packagerEnd:s[4]}},i=e=>fetch(e).then(e=>null).catch(e=>null),r=(e,t)=>{if(!t.includes("z32="))return Promise.resolve();const s=t.concat("&event_type=LIVE_LATENCY",`&record_start=${e.recorderStart}`,`&record_end=${e.recorderEnd}`,`&transcode_start=${e.transcoderStart}`,`&transcode_end=${e.transcoderEnd}`,`&package_end=${e.packagerEnd}`,`&download_end=${e.playerDownloaded}`,`&play_start=${e.playerStart}`,`&video_buffer=${e.videoBuffer}`,`&device_time=${Date.now()}`);return i(s)}},8182(e,t,s){"use strict";s.d(t,{CY:()=>n,_7:()=>r,bC:()=>i});const n=!0,i=5e3,r=1/0},7627(e,t,s){"use strict";s.d(t,{CN:()=>p,EF:()=>l,EP:()=>m,F8:()=>C,IS:()=>x,Kk:()=>A,M5:()=>n,NN:()=>d,Nq:()=>b,Q2:()=>T,R7:()=>S,SQ:()=>g,Wb:()=>v,Wu:()=>N,YF:()=>_,ZH:()=>o,fm:()=>c,hV:()=>a,oM:()=>E,pJ:()=>y,uH:()=>i,vS:()=>h,xj:()=>r,yE:()=>u});const n="PLAYER_AUDIO_QUALITY_CHANGED",i="PLAYER_AUDIO_TRACK_CHANGED",r="PLAYER_AUDIO_TRACKS_ADDED",o="PLAYER_AUTOPLAY_BLOCKED",a="PLAYER_ENDED",l="PLAYER_ERROR_THREW",c="METADATA_FIRED",d="PLAYER_PAUSED",p="PLAYER_PLAYED",u="PLAYER_READY",h="PLAYER_RESIZED",m="PLAYER_SEEK_FINISHED",g="SEGMENT_PLAYED",y="STALL_STARTED",_="STALL_FINISHED",E="PLAYER_SUBTITLES_CUE_ENTERED",v="PLAYER_SUBTITLES_CUE_EXITED",x="PLAYER_SUBTITLES_TRACKS_ADDED",b="PLAYER_SUBTITLES_TRACK_REMOVED",A="PLAYER_SUBTITLES_TRACKS_CHANGED",S="PLAYER_TIME_CHANGED",T="PLAYER_TIME_SHIFTED",C="PLAYER_VIDEO_QUALITY_CHANGED",N="PLAYER_WARNED"},4793(e,t,s){"use strict";s.d(t,{y:()=>n});const n="off"},5990(e,t,s){"use strict";var n={};s.r(n),s.d(n,{double:()=>Qi,quadruple:()=>Zi,single:()=>Xi});var i={};s.r(i),s.d(i,{EXPANDED:()=>Qy,MINI:()=>Zy,NONE:()=>Xy});var r={};s.r(r),s.d(r,{HORIZONTAL:()=>e_,VERTICAL:()=>Jy});var o={};s.r(o),s.d(o,{ANY:()=>zD,LOWER_VOLUME:()=>
1$D,MUTE:()=>KD,PAUSE:()=>QD,PLAY:()=>ZD,RAISE_VOLUME:()=>XD,REPLAY:()=>tR,SEEK_BACKWARD:()=>JD,SEEK_FORWARD:()=>eR,TOGGLE_AUDIO:()=>sR,TOGGLE_CINEMA:()=>nR,TOGGLE_FULLSCREEN:()=>iR,TOGGLE_PIP:()=>rR,TOGGLE_SUBTITLES:()=>oR,UNMUTE:()=>aR,ZAP_NEXT:()=>lR,ZAP_PREVIOUS:()=>cR});var a={};s.r(a),s.d(a,{CAROUSEL:()=>uk,GRID:()=>mk,LIST:()=>gk,MARQUEE:()=>hk});var l=s(134),c=s(4976),d=s(5338),p=s(578),u=s(5949),h=s(3741),m=s(5027);const g=/{{(\w+)}}/g,y=e=>"string"!=typeof e;let _={},E=null;const v=e=>{_=e},x=(e,t={})=>{let s=_[e];return s?(y(s)&&(s=1===t.count?s.one:s.other),((e,t)=>e.replace(g,(e,s)=>t[s]))(s,t)):`(?) ${e}`},b=JSON.parse('{"client":"web","config":{"features":{"advertisement_video":{"enabled":true},"chromecast":{"enabled":true,"options":{"cast_id":{"live":"E5008075","rc":"ED7C7AED"}}},"replay":{"enabled":true,"options":{"indicator":["AT","DE"]}},"product_analytics":{"enabled":true},"legal_settings":{"enabled":true,"options":{"transparency":true}},"adscale":{"enabled":true},"account_management":{"enabled":true,"options":{"base_url":"/start"}},"account_recovery":{"enabled":true},"advertisement_display":{"enabled":true},"analytics_braze":{"enabled":true,"options":{"id":"a35baec0-4e3d-4c23-a6a3-1f72820e595e","safari_website_push_id":"web.com.zattoo"}},"analytics_hotjar":{"enabled":false,"options":{"user_subscription_indication":false,"ids":{"zattoo.com":1227573}}},"cms":{"enabled":true},"company_about":{"enabled":true,"options":{"multi_language":true,"url":"https://zattoo.com"}},"connected_content_external":{"enabled":false},"connected_content_vod":{"enabled":false},"couch_shopping":{"enabled":true,"options":{"storage_key":"shop.v1.TV_LOGIN_TOKEN"}},"emergency_fallback":{"enabled":true,"options":{"links":[{"text":"Zattoo International","url":"/int"},{"text":"Zattoo Schweiz","url":"/ch"},{"text":"Zattoo Deutschland","url":"/de"}]}},"exactag":{"enabled":true,"options":{"campaigns":{"AT":"f4a4da9aa7eadfd23c7bdb7cf57b3112","CH":"cfb03a2de5e7dbb8def9999bb7ced6be","DE":"f0bbac6fa079f1e00b2c14c1d3c6ccf0"},"page_type":"web-app","site_group":"zrw"}},"gtag":{"enabled":true,"options":{"id":"UA-5494480-27"}},"imprint":{"enabled":false},"manifest":{"enabled":true,"options":{"localizableMembers":{"en":{"description":"Zattoo lets you stream your favorite TV channels on all devices. That\'s how modern TV works: Simple. Good value. Multiscreen."},"es":{"description":"Televisión por Internet en todos tus dispositivos. Reproduce todos los canales de televisión con un solo clic. Fácil. Barato. Multipantalla."},"it":{"description":"Con Zattoo hai a disposizione tutti i canali TV con una sola app. È questa la televisione moderna: Semplice. Conveniente. Multischermo."},"fr":{"description":"Regarde toutes les chaînes en direct et en Full-HD sur tous les appareils avec une connexion internet. Facile. Avantageux. Multi-écran."}},"screenshots":{"width":750,"height":1500,"order":["highlights.png","channels.png","guide.png"]}}},"menu":{"enabled":true,"options":{"logo":{"top":-2}}},"no_script":{"enabled":true,"options":{"title":"Zattoo - TV Streaming"}},"oauth_login":{"enabled":true},"redirect_new_sso_user":{"enabled":true,"options":{"url":"/start/sso_completion?isNewUser=true"}},"shapes":{"enabled":true},"smart_buffer":{"enabled":true},"shop":{"enabled":true,"options":{"anonymous_redeem":{"path":"/start/redeem","parameters":{"signup":"signup"},"allow_all_queries":true},"channel_upsell":{"path":"/start/payment","parameters":{"cid":"selectedChannel","redirect":"successUrl"},"limited_platform":{"account_permissions":["smart_hd"],"product_name":"Smart HD"}},"redeem":{"path":"/redeem","allow_all_queries":true},"subscription":{"path":"/start/payment","parameters":{"redirect":"successUrl","service_type":"selectedServiceType"}},"upgrade":{"auth_redirect":true,"path":"/start/shop","parameters":{"redirect":"successUrl"}},"signup":{"auth_redirect":true,"path":"/start/signup"}}},"sso_amazon":{"enabled":true,"options":{"id":"amzn1.application-oa2-client.93ba6c9ac8754af586a093d017b058ae"}},"sso_facebook":{"enabled":true,"options":{"id":"193687390731957"}},"sso_google":{"enabled":true,"options":{"client":"369533819528","id":"160e4072b12pa7lponurcj59d36r2upp"}},"tcf":{"enabled":true,"options":{"id":"757d38a7-4a42-460e-be9d-95c9e89fe43d"}},"welcome_background":{"enabled":false},"zapping":{"enabled":true,"options":{"delay":300}},"zuya_consents":{"enabled":false},"sso_order":["google","facebook","amazon"]}
1,"id":"zattoo","title":"Zattoo","description":"Mit Zattoo streamst du TV über das Internet: zuhause und unterwegs. So geht Fernsehen heute: Einfach. Günstig. Multiscreen.","publisher":"Zattoo International AG","languages":{"default_locale":"de","locales":["es","de","en","fr","it"],"use_formal":false},"emails":{"support":"[email protected]"},"links":{"account":"https://zattoo.com/account","forgot_password":"https://zattoo.com/account/recovery","forgot_pin":"/account/account-info/pin","imprint":"https://zattoo.com/company/tos/impressum","privacy_policy":"https://zattoo.com/company/privacy","register":"/start/shop","support":"https://support.zattoo.com","terms_and_conditions":"https://zattoo.com/company/terms"},"app_id":3,"domains":{"live":"https://zattoo.com"},"stages":["master","rc","release","qa"]},"family":"web","styles":{"hue__0":"#000000","hue__10":"#1a1a1a","hue__20":"#232323","hue__30":"#2d2d2d","hue__40":"#383838","hue__50":"#414141","hue__70":"#717171","hue__80":"#9b9b9b","hue__85":"#c2c2c2","hue__90":"#ebebeb","hue__100":"#ffffff","hue__b100":"#f96522","hue__b100c":"#ffffff","hue__b100gd":"135deg","hue__b100ge":"#f95b1f","hue__b100gs":"#f96522","hue__b200":"#00a1a6","hue__b200c":"#ffffff","hue__b200gd":"90deg","hue__b200ge":"#005255","hue__b200gs":"#00a1a6","hue__s100":"#3f4042","hue__s200":"#e5292d","hue__s300":"#ffab00","hue__s400":"#008a56","hue__ad":"#ffbd38","hue__overlay":"#1a1a1a","hue__shadow":"#1a1a1a","rgb__0":"0, 0, 0","rgb__10":"26, 26, 26","rgb__20":"35, 35, 35","rgb__30":"45, 45, 45","rgb__40":"56, 56, 56","rgb__50":"65, 65, 65","rgb__70":"113, 113, 113","rgb__80":"155, 155, 155","rgb__85":"194, 194, 194","rgb__90":"235, 235, 235","rgb__100":"255, 255, 255","rgb__b100":"249, 101, 34","rgb__b100c":"255, 255, 255","rgb__b100gd":"135deg","rgb__b100ge":"249, 91, 31","rgb__b100gs":"249, 101, 34","rgb__b200":"0, 161, 166","rgb__b200c":"255, 255, 255","rgb__b200gd":"90deg","rgb__b200ge":"0, 82, 85","rgb__b200gs":"0, 161, 166","rgb__s100":"63, 64, 66","rgb__s200":"229, 41, 45","rgb__s300":"255, 171, 0","rgb__s400":"0, 138, 86","rgb__ad":"255, 189, 56","rgb__overlay":"26, 26, 26","rgb__shadow":"26, 26, 26"}}'),A=b.config,S=(b.styles,A.app_id),T=A.id,C=A.title,N=A.features,f=A.languages,I=A.links||{},w=A.emails||{};let O=null;const D=e=>f.locales.includes(e)?e:f.default_locale,R=()=>O||D((()=>{if(!E){const e=navigator.language.toLowerCase();[E]=e.split("-")}return E})());const j=()=>x(373),k=()=>x(374),P=()=>x(375),L=()=>x(378),M=()=>x(379),U=()=>x(380),V=()=>x(381),B=()=>x(382),F=()=>x(384),H=()=>x(390),G=()=>x(415),q=()=>x(416),Y=()=>x(434),W=()=>x(439),z=Symbol("skipped error"),$=Symbol("reported error"),K=["TryCatch"];let Q=!1;const Z=e=>{e||(e=new Error("Unknown error")),h.Cp(e)},X=e=>{h.wd(e,"warning")},J=()=>{u.mn({lang:R(),title:x(428),subtitle:x(426),subtitle2:x(427),labelName:x(425),labelEmail:x(424),labelComments:x(423),labelClose:x(421),labelSubmit:x(422)})};var ee="cxy8K";const te=["The operation is insecure"];var se=s(702),ne=s(9677);const ie=e=>`web-app.v1.${e}`,re=e=>{try{localStorage.removeItem(ie(e))}catch{}},oe=(e,t)=>{try{localStorage.setItem(ie(e),JSON.stringify(t))}catch{}},ae=e=>{try{const t=`${localStorage.getItem(ie(e))}`;return JSON.parse(t)}catch(t){t instanceof DOMException||(X(`Failed to parse key ${e}`),re(e))}return null},le="SETTINGS_ZAPI_STAGE",ce=()=>{const e=ae(le);return Object.values(ne).includes(e)?e:ne.PRODUCTION};var de=s(913),pe=s(4848);const ue=e=>t=>{const s=(0,de.zy)(),n=(0,de.Zp)(),i=(0,de.g)(),r=t;return(0,pe.jsx)(e,{...r,location:s,navigate:n,params:i})};var he=s(8798),me=s(6401);const ge=b.config.features,ye=ge.shop?.options||{},_e=(e,t)=>
1{if(!ge.shop?.enabled||!e?.path)return null;const{allow_all_queries:s,parameters:n}=e;if(!n&&!s)return e.path;let i=t;"undefined"!=typeof window&&(i=n?.redirect?{redirect:String(window.location),...t}:t);const r=Object.entries(i||{}).reduce((e,[t,i])=>{const r=t,o=n?.[r]||(s?r:null);return i&&o&&(e[o]=i),e},{});return(0,me.A)(r)?e.path:`${e.path}?${he.A.stringify(r)}`},Ee=e=>_e(ye.upgrade,e),ve=e=>_e(ye.anonymous_redeem,e),xe=e=>_e(ye.redeem,e),be=e=>e?.service_type&&e?.redirect?_e(ye.subscription,e):null,Ae="/login",Se="/login/oauth",Te="/404",Ce=e=>e.sessionLib.account,Ne=e=>Boolean(Ce(e)),fe=e=>Ce(e)?.name,Ie=e=>Ce(e)?.public_id,we=e=>Ce(e)?.permissions,Oe=e=>Ce(e)?.service_country;var De=s(793),Re=s(6540);const je=(e,t,s)=>{const n=s.value;return{configurable:!0,get(){const e=n.bind(this);return Object.defineProperty(this,t,{configurable:!0,value:e,writable:!0}),e}}},ke=e=>(e=>{const t=O;return O=D(e),t!==O})(e||R())?(e=>fetch(s(3232)(`./${e}.json`)).then(e=>e.json()).catch(()=>Promise.reject(new Error("Failed to load i18n"))))(R()).then(v):Promise.resolve();var Pe=s(3955);const Le=["mobile","model","platform","platformVersion","fullVersionList"],Me=[/Edge/i,/Chrome/i,/Safari/i,/Firefox/i,/Opera/i],Ue={browserName:null,browserVersion:null,deviceModel:null,isMobile:null,osName:null,osVersion:null};let Ve;const Be=()=>Ve||(Ve=navigator.userAgentData?(async()=>{const e=await navigator.userAgentData.getHighEntropyValues(Le),t=e?.fullVersionList?.find(e=>Me.some(t=>t.test(e.brand)))??e?.fullVersionList?.[0]??{};return{browserName:t.brand,browserVersion:t.version,deviceModel:e.model,isMobile:e.mobile,osName:e.platform,osVersion:e.platformVersion}})():(async()=>{const e=await s.e(59).then(s.t.bind(s,7503,23));return{browserName:e.name,browserVersion:e.version,deviceModel:e.product,isMobile:null,osName:e.os?.family,osVersion:e.os?.version}})(),Ve=Ve.catch(e=>(Z(e),Ue)),Ve),Fe=void 0!==window.orientation,He=(()=>{const e=window.matchMedia("(pointer: coarse)");return()=>e.matches})(),Ge=Boolean(navigator.userAgent.match(/Mobi/)),qe=Boolean(navigator.userAgent.match(/Android/i));var Ye=s(53);var We="jqxZ6",ze="rI5az",$e="HldgA";class Ke extends Re.Component{constructor(e){super(e),this.timeoutId=null,this.state={ready:!e.delayed}}clear(){this.timeoutId&&clearTimeout(this.timeoutId)}runWithDelay(){this.props.delayed&&(this.timeoutId=setTimeout(()=>{this.setState({ready:!0})},300))}componentDidMount(){this.runWithDelay()}componentWillUnmount(){this.clear()}render(){const{props:e}=this;return this.state.ready?(0,pe.jsxs)("div",{className:(0,Ye.A)("TMDJp",e.className,{[ze]:e.centered,[$e]:e.paused}),"data-soul":e.soul||"LOADING_INDICATOR","aria-live":"polite",role:"status",children:[(0,pe.jsxs)("div",{className:"yan5J",children:[(0,pe.jsx)("div",{className:(0,Ye.A)(We,"u_TQw")}),(0,pe.jsx)("div",{className:(0,Ye.A)(We,"Qifqk")}),(0,pe.jsx)("div",{className:(0,Ye.A)(We,"nLmRu")})]}),e.text&&(0,pe.jsx)("div",{className:"zixa5",children:e.text})]}):null}}const Qe="browser",Ze="cookies",Xe="generic",Je="offline",et="medium",tt="tight",st="spaced";var nt="_JApi",it="iLk2i",rt="Gg8uj",ot="hlNTl",at="f2fqE";const lt=e=>(0,pe.jsx)("div",{className:(0,Ye.A)(nt,{[it]:"endspaced"===e.vertical,[ot]:e.vertical===st,[rt]:e.horizontal===et,[at]:e.horizontal===tt},e.className),"data-anchor":e.anchor,"data-soul":e.soul,"data-context":e.dataContext,ref:e.reference,children:e.children}),ct="action",dt="classic",pt="floating",ut="micro",ht="rich",mt="alternative",gt="destructive",yt="ghost alternative",_t="primary",Et="secondary";var vt="vp7_C",xt="q48wh",bt="aKjTU",At="ro82k";const St=e=>(0,pe.jsxs)(lt,{soul:e.soul,className:(0,Ye.A)("Un4K6",{[vt]:e.isStandalone}),vertical:st,children:[(0,pe.jsx)(e.image,{alt:e.title}),(0,pe.jsx)("h1",{className:"vqzZW",children:e.title}),e.text&&(0,pe.jsx)("p",{className:At,children:e.text}),e.children,(0,pe.jsxs)("div",{className:"hFNtc",children:[e.primary&&(0,pe.jsx)(e.primary,{className:(0,Ye.A)(xt,{[bt]:!e.secondary}),kind:dt,color:_t}),e.secondary&&(0,pe.jsx)(e.secondary,{className:xt,kind:dt,color:Et})]})]}),Tt="icons-close",Ct="icons-play";var Nt="xfEgN";
1const ft=e=>{const{ariaHidden:t=!0}=e;return(0,pe.jsx)("svg",{className:(0,Ye.A)(Nt,e.className),"data-soul":e.soul,role:"img","aria-label":e.id,"aria-hidden":t,children:(0,pe.jsx)("use",{xlinkHref:`#${e.id}`})})},It="icons-settings-default",wt=(e,t)=>{let s=-1/0;return(...n)=>{const i=Date.now(),r=i-s;s=i,r>=t&&e(...n)}};var Ot=s(3466);const Dt="undefined"!=typeof gtag,Rt=(e,t)=>Object.values(e).includes(t),jt=(e,t)=>{if(e===t)return!0;const s=Object.keys(e),n=Object.keys(t);return s.length===n.length&&s.every(s=>e[s]===t[s])},kt=["user","login","email","password"],Pt=e=>{return he.A.stringify((t=e,Object.keys(t).forEach(e=>{t[e]||!1===t[e]||delete t[e]}),t));var t},Lt=e=>!!e&&kt.some(t=>e.includes(t)),Mt=()=>{let e;try{e=new URL(document.referrer).search}catch{e=""}return Lt(location.search)||Lt(e)},Ut=e=>e?String(e).replace((()=>{const e=kt.map(e=>`(${e}=([^&]*))|(${e}%3D(.*)%26)`).join("|");return new RegExp(e,"g")})(),"**"):"";var Vt=s(3947);const Bt=768,Ft=1024,Ht=()=>window.innerWidth<Ft,Gt=()=>window.innerWidth<Bt,qt=e=>{const t=e.closest("[data-context]");return t?t.dataset.context:null},Yt=(e,t,s)=>t||e?"deleteRecording_watched":(0,Vt.zg)(s)?"unset":"deleteRecording_unwatched",Wt=()=>Gt()?"mobile":Ht()?"tablet":"desktop",zt="channel_list",$t="program_info",Kt="guide",Qt="grid",Zt="search",Xt="player",Jt="recording",es="program_info_similarProgram",ts="series",ss="vod_movies",ns="vod_series";let is=null;const rs=e=>{if(!Dt)return;const{user_id:t}=e;t&&(is=t),gtag("config",ge.gtag?.options?.id,{user_id:is,...e})},os=e=>{Dt&&rs({page_path:Ut(e.path),page_title:e.title})},as=({action:e,beacon:t,category:s,label:n,nonInteraction:i,value:r})=>{if(!Dt)return;if(Mt())return;const o={};s&&(o.event_category=s),n&&(o.event_label=n),r&&(o.value=r),i&&(o.non_interaction=!0),t&&(o.transport_type="beacon"),gtag("event",e,{user_id:is,...o})},ls=({action:e,category:t,elementIndex:s,targetNode:n,teaserIndex:i,view:r})=>{if(!Dt)return;let o;const a=(e=>{const t=e.closest("[data-context-editorial-id]");return t?t.dataset.contextEditorialId?.replace(/_/g,"-"):null})(n),l=(e=>{const t=e.closest("[data-context-element-id]");return t?t.dataset.contextElementId?.replace(/_/g,"-"):null})(n),c=(e=>{const t=e.closest("[data-context-page-kind]");return t?t.dataset.contextPageKind:null})(n);let d=qt(n);switch(c&&(d=c===Ot.Q?"hub":Qt),d){case"hub":o=`${d}_${a}_${s+1||0}_${r}_${l}_teaser_${i}`;break;case Qt:o=`${d}_${a}_${i}`;break;default:o=d}as({action:e,category:t,label:o})},cs=({category:e,context:t,elementIndex:s,targetNode:n,teaserIndex:i,view:r})=>{if(!Dt)return;const o=qt(n);switch(o){case $t:case zt:case Jt:case Zt:case ts:as({action:"open",category:"programInfo",label:t?`${o}_${t}`:o});break;case Kt:as({action:"open",category:"programInfo",label:o}),as({action:"click_info",category:"guideNavigation",label:t});break;case es:as({action:"click_similarProgram",category:"programInfo",label:"none"});break;case Xt:as({action:"open",category:e,label:o});break;default:ls({action:"open",category:e||"programInfo",elementIndex:s,targetNode:n,teaserIndex:i,view:r})}},ds=(e,t)=>{Dt&&gtag("set",e,String(null!=t?t:"none"))},ps=e=>{window.addEventListener("beforeunload",e.onClose),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&e.scheduleDelivery()})},us=e=>{window.removeEventListener("beforeunload",e.onClose),document.removeEventListener("visibilitychange",e.scheduleDelivery)};var hs,ms="F2drU",gs="ST2e3",ys="UHAL9",_s="VulfQ",Es="ccg6u",vs="aPwQc",xs="W7q6m",bs="np1s8",As="aw3i7",Ss="jkZjT",Ts="grKue",Cs="XRQxq",Ns="AtTJ2",fs="vukPo",Is="Km72f",ws="Ti6gy",Os="jBbAK",Ds="hUxiI",Rs="ZzUzE",js="Emh38",ks="f9sVQ",Ps="RuGUD",Ls="ISxVI",Ms="ZL0Bp",Us="goAfZ",Vs="aEnl8",Bs="chV7O",Fs="ERcrr";let Hs=(hs=class extends Re.Component{constructor(e){super(e),e.clicksTimeout&&(this.onClick=wt(this.onClick,e.clicksTimeout))}onClickActive(e){const{props:t}=this;t.onClick?.(e),as({action:t.soul,...t.analyticsData})}onClickDisabled(e){const{props:t}=this;t.onClickDisabled?.(e),as({action:t.soul,label:"disabled",...t.analyticsData})}onClick(e){this.props.disabled?this.onClickDisabled(e):this.onClickActive(e)}render(){const{props:e}=this,{active:t,analyticsData:s,children:n,className:i,clicksTimeout:r,color:o,contentCenter:a,contentClassName:l,contentHidden:c,control:d,disabled:p,hidden:u,inverse:h,kind:m,link:g,noClick:y,onClick:_,onClickDisabled:E,soul:v,tap:x,title:b,virtual:A,withHover:S=!0,...T}=e,C=m===ct,N=m===dt,f=m===ht,I=m===pt,w=m===ut;return(0,pe.jsx)(d,{"aria-hidden":u,className:(0,Ye.A)("zbfPZ",{[gs]:e.active,[vs]:p,[Ss]:u,[Cs]:y,[fs]:!A,[ys]:o===mt,[Es]:o===gt,[bs]:o===yt,[As]:!o&&h,[Ns]:"passive"===o,[Is]:o===_t,[Os]:o===Et,[ms]:C,[_s]:N,[xs]:I,[Ts]:w,[ws]:f,[Ds]:x,[Rs]:S},i),"data-soul":v,disabled:p&&!e.onClickDisabled,tabIndex:p?-1:e.tabIndex,reference:T.reference,title:b,style:T.style,onClick:this.onClick,...T,children:n&&(0,pe.jsx)("span",{className:(0,Ye.A)("ZBzY
11",l,{[Ms]:c,[js]:C,[Ps]:N,[Ls]:I,[Vs]:w,[Bs]:f,[Us]:g,[Fs]:x,[ks]:a}),children:n})})}},(0,De.A)(hs.prototype,"onClick",[je],Object.getOwnPropertyDescriptor(hs.prototype,"onClick"),hs.prototype),hs);const Gs=({reference:e,...t})=>(0,pe.jsx)("a",{ref:e,...t}),qs=({children:e,...t})=>(0,pe.jsx)(Hs,{control:t.href?Gs:c.N_,...t,children:e}),Ys=e=>(0,pe.jsx)(qs,{...e,soul:"error_control_reload",href:location.origin,children:x(383)});const Ws=e=>(0,pe.jsx)(St,{soul:"FORBIDDEN_COOKIES",title:x(410),text:x(409),image:()=>(0,pe.jsx)(ft,{id:It,className:"YFsWS"}),primary:Ys,isStandalone:e.isStandalone}),zs="black",$s="transparent",Ks="lazy";var Qs,Zs="kVG0J",Xs="UxlLT",Js="LM9ZE";let en=(Qs=class extends Re.Component{constructor(...e){super(...e),this.isLoaded=!1,this.loadingFailed=!1}onLoad(){this.isLoaded=!0,this.forceUpdate()}onError(){this.loadingFailed=!0,this.forceUpdate()}isLoadingFailed(){return!this.props.src||this.loadingFailed}shouldComponentUpdate(e){return this.props.src!==e.src&&(this.isLoaded=!1,this.loadingFailed=!1),!0}render(){const{props:e}=this,{fadeIn:t}=e,s=this.isLoadingFailed(),n=e.fallback||zs,i=t?this.onLoad:void 0,r=s&&n===zs,o=s?n===$s:t;return(0,pe.jsx)("img",{className:(0,Ye.A)("iGWO7",{[Xs]:t&&this.isLoaded,[Zs]:r,[Js]:o},e.className),"data-soul":e.soul,alt:e.alt,height:e.height,width:e.width,src:e.src,srcSet:e.src2x?`${e.src} 1x, ${e.src2x} 2x`:void 0,onError:this.onError,onLoad:i,ref:e.reference,loading:e.loading,"aria-hidden":e.ariaHidden,"data-ot-ignore":!0})}},(0,De.A)(Qs.prototype,"onLoad",[je],Object.getOwnPropertyDescriptor(Qs.prototype,"onLoad"),Qs.prototype),(0,De.A)(Qs.prototype,"onError",[je],Object.getOwnPropertyDescriptor(Qs.prototype,"onError"),Qs.prototype),Qs);const tn=s.p+"assets/index-30ebffbd2694c6b6a8ed.svg";var sn="huOFr",nn="CXDkB",rn="ZDF7M",on="TbTiW";const an=({reference:e,submit:t,...s})=>(0,pe.jsx)("button",{ref:e,type:t?"submit":"button",...s}),ln=e=>{const{contentClassName:t,icon:s,iconClassName:n,reverse:i,text:r,textClassName:o,title:a,truncate:l,...c}=e,d=s&&r;return(0,pe.jsxs)(Hs,{control:an,contentClassName:(0,Ye.A)({[nn]:i},t),title:a||r,"aria-label":a||r,...c,children:[s&&(0,pe.jsx)(ft,{id:s,className:(0,Ye.A)({[sn]:d,[rn]:d&&i},n)}),l||o?(0,pe.jsx)("span",{className:(0,Ye.A)({[on]:l},o),children:r}):(0,pe.jsx)(pe.Fragment,{children:r})]})},cn=e=>(0,pe.jsx)(ln,{...e,soul:"error_control_report",onClick:J,text:x(408)}),dn=e=>(0,pe.jsx)(St,{title:e.title||q(),text:G(),image:e=>(0,pe.jsx)(en,{src:tn,height:200,width:200,...e}),soul:"ERROR_GENERIC_PAGE",primary:cn,secondary:Ys,isStandalone:e.isStandalone,withShapes:e.withShapes});const pn=e=>{const t=Pe.wU.filter(e=>!(!Pe.ij&&e.id===Pe.hq)),s=!Pe.un&&!Pe.bh&&t.length>0,n=[x(412)];return s&&n.push(x(411)),(0,pe.jsx)(St,{title:q(),text:n.join("\n"),image:e=>(0,pe.jsx)(en,{src:tn,height:200,width:200,...e}),secondary:Ys,isStandalone:e.isStandalone,withShapes:e.withShapes,children:s&&(0,pe.jsx)("div",{className:"kol_W",children:t.map(e=>{const t=e.id;return(0,pe.jsxs)(qs,{className:"stmrH",contentClassName:"imMPj",href:e.url,target:"_blank",rel:"noopener",soul:"ERROR_LINK_TO_BROWSER",children:[(0,pe.jsx)(en,{className:"mrApo",width:64,height:64,src:e.logo,alt:t}),(0,pe.jsx)("span",{className:"jtlUE",children:t})]},t)})})})},un=s.p+"assets/index-4001a3d657a249af0f6e.svg",hn=e=>{return(0,pe.jsx)(St,{soul:"OFFLINE_PAGE",title:x(414),text:(t={tenantTitle:C},x(413,t)),image:e=>(0,pe.jsx)(en,{src:un,height:200,width:200,...e}),primary:Ys,isStandalone:e.isStandalone,withShapes:e.withShapes});var t};var mn=s(3561);const gn="success",yn="danger",_n="warning",En="info";var vn=s(2302),xn=s(4741);var bn;const An=Boolean(navigator.sendBeacon&&window.Blob);let Sn,Tn=(bn=class{set reportingUrl(e){this._reportingUrl=e}get reportingUrl(){return this._reportingUrl}constructor(e){var t;this.threshold=10,this.pendingEvents=[],this.pendingRequest=Promise.resolve(),this.additionalEventData=null,this.failingSince=null,this.onEvent=null,this.options={logInterval:6e5,...e},this.reportingUrl=`${t=e.isProd,t?"https://events.zahs.tv":"https://events-staging.zahs.tv"}/${e.endpoint}`,this.reportingProtocolVersion=e.version,this.deliveryCycle=(0,xn.A)(()=>{this.scheduleDelivery(),this.deliveryCycle()},this.options.logInterval),this.onInitialize=e.onInitialize,this.onDestroy=e.onDestroy,this.onEvent=e.onEvent,this.initialize()}initialize(){this.deliveryCycle(),this.onInitialize?.({onClose:this.onClose,scheduleDelivery:this.scheduleDelivery})}destroy(){this.pendingEvents=null,this.pendingRequest=null,this.deliveryCycle.cancel(),this.onDestroy?.({onClose:this.onClose,scheduleDelivery:this.scheduleDelivery})}scheduleDelivery(e=!0){const t=e?vn.A:Promise.reject;return this.pendingRequest=this.pendingRequest.then(this.submitPendingEvents,this.submitPendingEvents).catch(t),this.pendingRequest}cleanPendingEvents(){this.pendingEvents=[]}submitPendingEvents(){const e=this.pendingEvents.splice(0),t=this.createPayload(e);return e.length?(async(e,t)=>{let s;try{s=await fetch(e,{body:JSON.stringify(t),headers:{"Content-Type":"application/json"},method:"POST"})}catch(e){return Promise.reject(e)}return s.ok?Promise.resolve():Promise.reject(new Error("Failed to send product-analytics to server"))})(this.reportingUrl,t).then(()=>this.onRequestSuccess()).catch(t=>(this.pendingEvents.unshift(...e),this.onRequestFail(),Promise.reject(t))):Promise.resolve()}createPayload(e){return{events:e,v:this.reportingProtocolVersion}}createEvent(e,t){const s=new Date(t);return{...this.additionalEventData,...e,app_id:this.options.app_id,...this.options.generateEventId?{event_id:this.options.generateEventId()}:{},timestamp_iso:s.toISOString(),timezone_offset:s.getTimezoneOffset()}}markEvent(e,t=Date.now()){const s=this.createEvent(e,t);this.pendingEvents.push(s),this.onEvent?.(s,{reportingUrl:this.reportingUrl}),this.pendingEvents.length>=this.threshold&&this.scheduleDelivery()}onRequestSuccess(){this.threshold=10,this.failingSince=null}onRequestFail(){this.failingSince||(this.threshold=1/0,this.failingSince=Date.now());Date.now()-this.failingSince>=36e5&&this.options.onServerDown?.()}onClose(){if(!An||!this.pendingEvents.length)return;const e=this.createPayload(this.pendingEvents),t=new Blob([JSON.stringify(e)]);navigator.sendBeacon(this.reportingUrl,t)}},(0,De.A)(bn.prototype,"scheduleDelivery",[je],Object.getOwnPropertyDescriptor(bn.prototype,"scheduleDelivery"),bn.prototype),(0,De.A)(bn.prototype,"submitPendingEvents",[je],Object.getOwnPropertyDescriptor(bn.prototype,"submitPendingEvents"),bn.prototype),(0,De.A)(bn.prototype,"onClose",[je],Object.getOwnPropertyDescriptor(bn.prototype,"onClose"),bn.prototype),bn);const Cn="BOOKMARK_CHANGE",Nn="CHANNELS_VIEW_OPEN",fn="FAVORITES_CHANGE",In="GUIDE_DATE_PICK",wn="NAVIGATION_VIEW_OPEN",On="NOTIFICATION_VIEW",Dn="PARENTAL_PIN_ENTRY",Rn="RECORDING_ADD",jn="RECORDING_REMOVE",kn="STREAM_RECEIVED",Pn="STREAM_REQUEST";let Ln,Mn;const Un=(e,t)=>{Mn&&Ln&&Ln.markEvent(e,t)},Vn=((()=>{const e=new Map})(),(()=>{let e=!1;return(t={})=>{Mn&&Ln&&!e&&(Ln.markEvent({type:"APP_OPEN",...t},Sn),e=!0)}})());const Bn="EVENT_MESSAGE_NOTIFICATION_CREATED",Fn="EVENT_MESSAGE_NOTIFICATION_DELET
1ED",Hn="EVENT_MESSAGE_NOTIFICATIONS_ALL_DELETED",Gn="NOTIFICATION",qn=(e,t,s)=>{const n=new CustomEvent(Bn,{detail:{id:(0,mn.Ak)(),job:s,kind:Gn,options:{nature:e,unique:!0,...t}}});window.dispatchEvent(n),Un({type:On,content:t.soul})},Yn=(e,t)=>qn(yn,e,t),Wn=(e,t)=>qn(gn,e,t),zn=(e,t)=>qn(En,e,t),$n=(e,t)=>qn(_n,e,t),Kn=()=>{Yn({autoDismiss:!0,soul:"NETWORK_NOTIFICATION_CONNECTION_LOST",text:x(417)})};var Qn,Zn;let Xn=(Zn=class extends Re.Component{constructor(e){super(e),this.state={errorType:null,ready:!1},"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&"ResizeObserver"in window&&"ResizeObserverEntry"in window&&"Promise"in window&&"finally"in window.Promise.prototype&&"flat"in Array.prototype&&"flatMap"in Array.prototype&&"fromEntries"in Object&&"replaceAll"in String.prototype&&"addEventListener"in MediaQueryList.prototype&&"removeEventListener"in MediaQueryList.prototype?e.ignoreCookiesErrors||navigator.cookieEnabled&&(()=>{const e="test";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch{return!1}})()?!1===navigator.onLine&&(this.state.errorType=Je):this.state.errorType=Ze:this.state.errorType=Qe}prepareErrorScreen(){return ke().then(()=>{this.setState({ready:!0})})}onOffline(){Kn()}onOnline(){this.state.errorType===Je&&location.reload()}componentDidMount(){this.state.errorType&&this.prepareErrorScreen(),window.addEventListener("online",this.onOnline),window.addEventListener("offline",this.onOffline)}componentWillUnmount(){window.removeEventListener("online",this.onOnline),window.removeEventListener("offline",this.onOffline)}componentDidCatch(e){Q=!0,Z(e),this.setState({errorType:Xe}),this.prepareErrorScreen()}render(){const{state:e}=this;if(e.errorType&&!e.ready)return(0,pe.jsx)(Ke,{centered:!0,delayed:!0});switch(e.errorType){case Qe:return(0,pe.jsx)(pn,{isStandalone:!0});case Ze:return(0,pe.jsx)(Ws,{isStandalone:!0});case Je:return(0,pe.jsx)(hn,{isStandalone:!0});case Xe:return(0,pe.jsx)(dn,{isStandalone:!0});default:return this.props.children}}},Zn.displayName="Error",Qn=Zn,(0,De.A)(Qn.prototype,"onOffline",[je],Object.getOwnPropertyDescriptor(Qn.prototype,"onOffline"),Qn.prototype),(0,De.A)(Qn.prototype,"onOnline",[je],Object.getOwnPropertyDescriptor(Qn.prototype,"onOnline"),Qn.prototype),Qn);const Jn=(0,l.Ng)()(Xn),ei="INPUT_SOURCE_SET",ti="keyboard",si="pointer",ni="inputSourceKeyboard";var ii,ri;let oi=(ri=class extends Re.PureComponent{setInputSource(e){const t={type:ei,inputSource:e};this.props.dispatch(t)}tagKeyboard(){document.body.classList.add(ni)}tagPointer(){document.body.classList.remove(ni)}setPointer(){this.setInputSource(si),this.tagPointer(),ds("dimension24",si),this.trackKeyboard()}setKeyboard(e){"Tab"===e.key&&this.tagKeyboard(),this.setInputSource(ti),ds("dimension24",ti),this.trackPointer()}trackPointer(){this.clearTracking(),window.addEventListener("pointerdown",this.setPointer,!0)}trackKeyboard(){this.clearTracking(),window.addEventListener("keydown",this.setKeyboard,!0)}clearTracking(){window.removeEventListener("keydown",this.setKeyboard,!0),window.removeEventListener("pointerdown",this.setPointer,!0)}componentDidMount(){this.setPointer()}componentWillUnmount(){this.clearTracking()}render(){return null}},ri.displayName="InputSource",ii=ri,(0,De.A)(ii.prototype,"setPointer",[je],Object.getOwnPropertyDescriptor(ii.prototype,"setPointer"),ii.prototype),(0,De.A)(ii.prototype,"setKeyboard",[je],Object.getOwnPropertyDescriptor(ii.prototype,"setKeyboard"),ii.prototype),ii);const ai=(0,l.Ng)()(oi);var li=s(961);const ci=e=>{const t=document.fullscreenElement||document.webkitFullscreenElement||document.body;return(0,li.createPortal)(e,t)};const di=e=>(0,pe.jsx)("ul",{className:(0,Ye.A)("_2_sI",e.className),children:e.children}),pi=(e,t)=>{var s,n;let i=(n=class extends Re.Component{constructor(...e){super(...e),this.state={messages:[]},this.removeMessageEventListener=(e,t)=>{window.removeEventListener(e,t)}}hasMessages(){return this.state.messages.length>0}filterUnique(e,t){return t.options.unique?e.filter(e=>e.options.soul!==t.options.soul):e}createMessage(e){const t=e.detail;this.setState(e=>({messages:[t,...this.filterUnique(e.messages,t)]}))}deleteMessage(e){const t=e.detail;this.setState(e=>({messages:[...e.messages.filter(e=>e.id!==t)]}))}deleteAllMessages(){this.setState({messages:[]})}addMessageEventListener(e,t){window.addEventListener(e,t)}subscribe(){const{eventMap:e}=t;this.addMessageEventListener(e.create,this.createMessage),this.addMessageEventListener(e.delete,this.deleteMessage),e.delete_all&&this.addMessageEventListener(e.delete_all,this.deleteAllMessages)}unsubscribe(){const{eventMap:e}=t;this.removeMessageEventListener(e.create,this.createMessage),this.removeMessageEventListener(e.delete,this.deleteMessage),e.delete_all&&this.removeMessageEventListener(e.delete_all,this.deleteAllMessages)}componentDidMount(){this.subscribe()}componentWillUnmount(){this.unsubscribe()}render(){const t=this.props;return(0,pe.jsx)(e,{messages:this.state.messages,hasMessages:this.hasMessages(),...t})}},n.displayName=e.displayName||e.name,s=n,(0,De.A)(s.prototype,"createMessage",[je],Object.getOwnPropertyDescriptor(s.prototype,"createMessage"),s.prototype),(0,De.A)(s.prototype,"deleteMessage",[je],Object.getOwnPropertyDescriptor(s.prototype,"deleteMessage"),s.prototype),(0,De.A)(s.prototype,"deleteAllMessages",[je],Object.getOwnPropertyDescriptor(s.prototype,"deleteAllMessages"),s.prototype),s);return i};var ui="ULCUM";const hi="LEFT",mi="RIGHT";var gi;let yi=(gi=class extends Re.Component{constructor(...e){super(...e),this.active=!1,this.start={time:null,x:null,y:null},this.end={time:null,x:null,y:null},this.state={swipeable:!1},this.swipeGestureInitTimeout=null}getDistanceX(){return this.start&&this.end?this.end.x-this.start.x:0}hasTextSelection(){const e=this.getSwipeElement();if(!e)return!1;const t=window.getSelection(),s=t.toString();return e.contains(t.focusNode)&&s?.length>0}getSwipeElement(){return this.props.reference?.current}updateSwipeProgress(){if(!this.props.onSwipeProgress)return;const e=this.getSwipeElement();if(!e)return;const t=this.getDistanceX();0!==t&&(this.props.onLeft||this.props.onRight)&&this.props.onSwipeProgress?.(t,e.getBoundingClientRect().width)}restoreSwipeProgress(){if(!this.props.onSwipeProgress)return;const e=this.getSwipeElement();e&&this.props.onSwipeProgress(0,e.getBoundingClientRect().width)}swipeCallback(e){e===hi?this.props.onLeft?.():e===mi&&this.props.onRight?.()}getSwipe(){if(!this.start.x||!this.end.x)return null;const e=this.getDistanceX(),t=Math.abs(e);if(t<this.getDistanceToSwipe())return null;if(t/(Date.now()-this.start.time)<(this.props.speed||.1))return null;return.8*t<Math.abs(this.end.y-this.start.y)?null:e>0?mi:hi}getDistanceToSwipe(){const e=this.props.threshold||.2,t=this.getSwipeElement();return t?t.getBoundingClientRect().width*e:0}setSwipeGestureInitTimeout(e){this.swipeGestureInitTimeout=setTimeout(()=>{this.hasTextSelection()||(this.initializeSwipeGesture(e),this.setState({swipeable:!0}))},200)}clearSwipeGestureInitTimeout(){He()||clearTimeout(this.swipeGestureInitTimeout)}initializeSwipeGesture(e){this.start={time:Date.now(),x:e.clientX,y:e.clientY},this.active=!0}complete(e){this.clearSwipeGestureInitTimeout();const t=this.getSwipeElement();if(!t)return;if(!this.active)return void(this.end=null);if(t.contains(e.relatedTarget))return;this.active=!1,this.end={...this.end,x:e.clientX,y:e.clientY},this.setState({swipeable:!1});const s=this.getSwipe();s?this.swipeCallback(s):this.restoreSwipeProgress()}init(e){this.hasTextSelection()||(He()?this.initializeSwipeGesture(e):this.setSwipeGestureInitTimeout(e))}preventClickOnSwipe(e){Math.floor(Math.abs(this.getDistanceX()))>0&&(e.preventDefault(),e.stopPropagation())}update(e){if(!this.active||!this.start.x)return;this.end={...this.end,x:e.clientX,y:e.clientY};if(!Math.abs(this.getDistanceX()))return;He()&&this.setState({swipeable:!0}),this.updateSwipeProgress();const t=this.getSwipe();t&&(this.active=!1,this.swipeCallback(t),this.setState({swipeable:!1}))}subscribe(){const e=this.getSwipeElement();e&&(e.addEventListener("pointerdown",this.init,!0),e.addEventListener("pointermove",this.update,!0),e.addEventListener("pointerup",this.complete,!0),e.addEventListener("pointercancel",this.complete,!0),e.addEventListener("pointerout",this.complete,!0),e.addEventListener("click",this.preventClickOnSwipe,!0))}unsubscribe(){const e=this.getSwipeElement();e&&(e.removeEventListener("pointerdown",this.init,!0),e.removeEventListener("pointermove",this.update,!0),e.removeEventListener("pointerup",this.complete,!0),e.removeEventListener("pointercancel",this.complete,!0),e.removeEventListener("pointerout",this.complete,!0),e.removeEventListener("click",this.preventClickOnSwipe,!0))}componentDidMount(){this.subscribe()}componentWillUnmount(){this.unsubscribe()}render(){const{children:e}=this.props;return(0,Re.cloneElement)(e,{className:(0,Ye.A)(e.props.className,"K2ng2",{[ui]:this.state.swipeable})})}},(0,De.A)(gi.prototype,"complete",[je],Object.getOwnPropertyDescriptor(gi.prototype,"complete"),gi.prototype),(0,De.A)(gi.prototype,"init",[je],Object.getOwnPropertyDescriptor(gi.prototype,"init"),gi.prototype),(0,De.A)(gi.prototype,"preventClickOnSwipe",[je],Object.getOwnPropertyDescriptor(gi.prototype,"preventClickOnSwipe"),gi.prototype),(0,De.A)(gi.prototype,"update",[je],Object.getOwnPropertyDescriptor(gi.prototype,"update"),gi.prototype),gi);const _i="EVENT_MESSAGE_TOAST_CREATED",Ei="EVENT_MESSAGE_TOAST_DELETED",vi="TOAST",xi=(e,t)=>{const s=new CustomEvent(_i,{detail:{id:(0,mn.Ak)(),kind:vi,options:{nature:e,unique:!0,...t}}});window.dispatchEvent(s),Un({type:On,content:t.soul})},bi=e=>{xi(En,e)},Ai=e=>{xi(yn,e)},Si=e=>{var t;let s=(t=class extends Re.PureComponent{constructor(...e){super(...e),this.state={isGoingOut:!1},this.elementRef=(0,Re.createRef)(),this.timeoutId=null}onClose(e){this.setState({isGoingOut:!0}),as({action:"dismissMessage",category:"messages",label:e})}getDismissDuration(){const{options:e}=this.props;return e.autoDismissTimer?e.autoDismissTimer:this.props.job?7e3:(t=e.text)?Math.min(Math.max(70*t.length,2e3),7e3):2e3;var t}setDismissDuration(){const{options:e}=this.props;if(!1===e.autoDismiss)return;const t=this.getDismissDuration();this.timeoutId=window.setTimeout(()=>{this.onClose("auto_dismiss")},t)}deleteMessage(){const{id:e,kind:t}=this.props;t===vi?(e=>{const t=new CustomEvent(Ei,{detail:e});window.dispatchEvent(t)})(e):t===Gn&&(e=>{const t=new CustomEvent(Fn,{detail:e});window.dispatchEvent(t)})(e)}onAnimationEnd(e){e.animationName.includes("messageAppear")?this.setDismissDuration():e.animationName.includes("messageDisappear")&&this.deleteMessage()}onCallbackAction(){const{job:e}=this.props;return e?(e.onConfirm?.(),e.autoClose&&this.onClose("job_click"),null):null}onSwipeProgress(e,t){const s=this.elementRef?.current;s&&(s.style.opacity=""+(t-Math.abs(e))/t,s.style.transform=`translateX(${e}px)`)}componentWillUnmount(){clearTimeout(this.timeoutId)}render(){const t=this.props;return(0,pe.jsx)(yi,{reference:this.elementRef,onRight:()=>this.onClose("swipe_right"),onLeft:()=>this.onClose("swipe_left"),onSwipeProgress:this.onSwipeProgress,threshold:.4,children:(0,pe.jsx)(e,{isGoingOut:this.state.isGoingOut,onClose:this.onClose,onAnimationEnd:this.onAnimationEnd,onCallbackAction:this.onCallbackAction,reference:this.elementRef,...t})})}},(0,De.A)(t.prototype,"onClose",[je],Object.getOwnPropertyDescriptor(t.prototype,"onClose"),t.prototype),(0,De.A)(t.prototype,"onAnimationEnd",[je],Object.getOwnPropertyDescriptor(t.prototype,"onAnimationEnd"),t.prototype),(0,De.A)(t.prototype,"onCallbackAction",[je],Object.getOwnPropertyDescriptor(t.prototype,"onCallbackAction"),t.prototype),(0,De.A)(t.prototype,"onSwipeProgress",[je],Object.getOwnPropertyDescriptor(t.prototype,"onSwipeProgress"),t.prototype),t);return s};var Ti="H6jgQ";const Ci=({className:e,iconClassName:t,inverse:s,...n})=>(0,pe.jsx)(ln,{className:(0,Ye.A)("zNRjF",{[Ti]:s},e),title:P(),...n,icon:Tt,iconClassName:(0,Ye.A)("g1gb1",t)});var Ni="jIwZs";const fi=e=>(0,pe.jsx)("li",{className:(0,Ye.A)("j7Px9",{[Ni]:e.isGoingOut}),onAnimationEnd:e.onAnimationEnd,"data-soul":e.soul,ref:e.reference,children:(0,pe.jsxs)("div",{className:(0,Ye.A)("dd1sR",e.className),children:[e.children,(0,pe.jsx)(Ci,{className:(0,Ye.A)("i5rfq",e.controlCloseClassName),iconClassName:e.controlCloseIconClassName,soul:e.controlCloseDataSoul,onClick:()=>e.onClose("control_click")})]})}
1),Ii="icons-success",wi="icons-error",Oi="icons-info",Di=e=>{switch(e){case gn:return Ii;case yn:return wi;case En:case _n:return Oi;default:return null}},Ri=e=>{switch(e){case gn:return"SUCCESS_ICON";case yn:return"DANGER_ICON";case En:return"INFO_ICON";case _n:return"WARNING_ICON";default:return}};var ji="ZNJvw",ki="afWUH",Pi="wlIXp",Li="bRh_2";const Mi=Si(e=>{const{options:t}=e,{nature:s}=t;return(0,pe.jsxs)(fi,{className:(0,Ye.A)(e.className,"a4wUn"),isGoingOut:e.isGoingOut,onClose:e.onClose,onAnimationEnd:e.onAnimationEnd,soul:t.soul,controlCloseDataSoul:"NOTIFICATION_CONTROL_CLOSE",reference:e.reference,children:[(0,pe.jsxs)("div",{className:"cGGJG",children:[t.nature&&(0,pe.jsx)(ft,{className:(0,Ye.A)("mjTP6",{[ji]:s===yn,[ki]:s===En,[Pi]:s===gn,[Li]:s===_n}),id:Di(s),soul:Ri(s)}),(0,pe.jsx)("p",{"data-soul":"NOTIFICATION_TEXT",children:t.text})]}),e.job&&(0,pe.jsx)("div",{className:"OiPtP",children:(0,pe.jsx)(ln,{color:Et,kind:ut,onClick:e.onCallbackAction,title:e.job.text,soul:"NOTIFICATION_CONTROL_CONFIRM",text:e.job.text})})]})});const Ui=pi(e=>e.hasMessages?(0,pe.jsx)(di,{className:"ttE39",children:e.messages.map(e=>{const t=e;return(0,pe.jsx)(Mi,{id:t.id,kind:t.kind,options:t.options,job:t.job},t.id)})}):null,{eventMap:{create:Bn,delete:Fn,delete_all:Hn}});var Vi="Udbhw",Bi="I39xM",Fi="fmerI",Hi="qCPqS",Gi="p01a7",qi="ClbjK",Yi="ZmY2d",Wi="a967N";const zi=Si(e=>{const{options:t}=e,{nature:s}=t,n=s===yn,i=s===En,r=s===gn,o=s===_n;return(0,pe.jsx)(fi,{className:(0,Ye.A)(e.className,"gbUDM",{[Vi]:n,[Bi]:i,[Fi]:r,[Hi]:o}),reference:e.reference,isGoingOut:e.isGoingOut,onClose:e.onClose,onAnimationEnd:e.onAnimationEnd,soul:t.soul,controlCloseDataSoul:"TOAST_CONTROL_CLOSE",controlCloseClassName:(0,Ye.A)({[Wi]:o}),controlCloseIconClassName:(0,Ye.A)({[Gi]:n,[qi]:r,[Yi]:o}),children:t.text})}),$i=pi(e=>e.hasMessages?(0,pe.jsx)(di,{children:e.messages.map(e=>{const t=e;return(0,pe.jsx)(zi,{id:t.id,kind:t.kind,options:t.options},t.id)})}):null,{eventMap:{create:_i,delete:Ei}});const Ki=()=>ci((0,pe.jsxs)("div",{className:"g1MN6",role:"status","aria-live":"polite",children:[(0,pe.jsx)(Ui,{}),(0,pe.jsx)($i,{})]}));var Qi="yROVz",Zi="uvsMp",Xi="SYZXS";const Ji="KEY_HANDLER_MAP_ANNOUNCED",er="KEY_HANDLER_MAP_DISCARDED",tr="KEY_ENTER",sr="KEY_ESCAPE",nr="KEY_LEFT",ir="KEY_UP",rr="KEY_RIGHT",or="KEY_SPACE",ar="KEY_DOWN",lr="KEY_A",cr="KEY_B",dr="KEY_C",pr="KEY_F",ur="KEY_H",hr="KEY_K",mr="KEY_M",gr="KEY_P",yr="KEY_T",_r="KEY_J",Er="KEY_L",vr={ArrowDown:ar,ArrowLeft:nr,ArrowRight:rr,ArrowUp:ir,Backspace:"KEY_BACKSPACE",Enter:tr,Escape:sr,Pause:"KEY_PAUSE",Space:or,KeyA:lr,KeyB:cr,KeyC:dr,KeyF:pr,KeyH:ur,KeyJ:_r,KeyK:hr,KeyL:Er,KeyM:mr,KeyP:gr,KeyT:yr," ":or,a:lr,b:cr,c:dr,f:pr,h:ur,j:_r,k:hr,l:Er,m:mr,p:gr,t:yr},xr=e=>e.keyHandler.exclusiveId;var br,Ar;let Sr=0,Tr=(Ar=class extends Re.Component{constructor(...e){super(...e),this.componentId=Sr++}handleKeyDown(e){const{props:t}=this,s=document.querySelector("input:focus, textarea:focus"),n=(e=>{let t=vr[e.key]||vr[e.key?.toLowerCase()];return t||e.key?.match(/\w/g)||(t=vr[e.code]),t?(e.shiftKey&&(t+="_SHIFT"),t):null})(e);if(n===tr&&document.body.classList.contains(ni))return;if(s&&!t.allowKeysFromInput)return;if(e.ctrlKey||e.metaKey||e.altKey)return;const i=t.keyMap[n];i&&(e.preventDefault(),null===t.exclusiveId?i():t.exclusiveId===this.componentId&&(i(),e.stopImmediatePropagation()))}componentDidMount(){const{dispatch:e,exclusive:t,keyMap:s}=this.props;e(((e,t,s=!1)=>({type:Ji,exclusive:s,handlerId:e,keys:t}))(this.componentId,Object.keys(s),t)),document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown),this.props.dispatch((e=>({type:er,handlerId:e}))(this.componentId))}shouldComponentUpdate(){return!1}render(){return null}},Ar.displayName="KeyHandler",br=Ar,(0,De.A)(br.prototype,"handleKeyDown",[je],Object.getOwnPropertyDescriptor(br.prototype,"handleKeyDown"),br.prototype),br);const Cr=(0,l.Ng)(e=>({exclusiveId:xr(e)}))(Tr);var Nr,fr;let Ir=((fr=class extends Re.Component{constructor(...e){super(...e),this.loading=!1,this.container=(0,Re.createRef)()}load(){this.loading=!0,s.e(866).then(s.bind(s,2697)).then(e=>{const t=this.container.current;t&&(this.trap=e.createFocusTrap(t,{allowOutsideClick:!0,setReturnFocus:this.props.setReturnFocus}),this.trap.activate())}).finally(()=>{this.loading=!1})}handleKeyDown(e){"Tab"!==e.key||this.loading||this.trap||this.load()}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){this.trap?.deactivate(),document.removeEventListener("keydown",this.handleKeyDown)}render(){const{children:e,className:t,setReturnFocus:s,...n}=this.props;return(0,pe.jsx)("div",{...n,className:t,role:"dialog",ref:this.container,children:e})}}).displayName="FocusTrap",Nr=fr,(0,De.A)(Nr.prototype,"load",[je],Object.getOwnPropertyDescriptor(Nr.prototype,"load"),Nr.prototype),(0,De.A)(Nr.prototype,"handleKeyDown",[je],Object.getOwnPropertyDescriptor(Nr.prototype,"handleKeyDown"),Nr.prototype),Nr);const wr="DANGER",Or="NEUTRAL",Dr="center";var Rr="VTFq8";let jr;class kr extends Re.Component{componentDidMount(){s.e(845).then(s.bind(s,4901)).then(e=>{jr=e.micromark,this.forceUpdate()})}render(){const e=this.props.children;return e&&jr?(0,pe.jsx)("div",{className:"CXOKF","data-soul":"MARKDOWN_CONTENT",dangerouslySetInnerHTML:{__html:jr(e)}}):null}}var Pr="_Il2z",Lr="bKJVx",Mr="i93bv",Ur="_LXlV",Vr="m_vNG";class Br{constructor(){this.locks=new Set,this.scrollbarsSize={x:0,y:0}}lockScroll(){const{documentElement:e}=document,{scrollLeft:t,scrollTop:s}=e,n={x:window.innerHeight-e.clientHeight,y:window.innerWidth-e.clientWidth};this.scrollbarsSize=n,document.body.classList.add(Lr),e.classList.add(Pr),Pe.gm?e.classList.add(Mr):(this.scrollbarsSize.x&&(e.classList.add(Ur),document.body.scrollLeft=t),this.scrollbarsSize.y&&(e.classList.add(Vr),document.body.scrollTop=s))}unlockScroll(){const{documentElement:e}=document,{scrollLeft:t,scrollTop:s}=document.body;document.body.classList.remove(Lr),e.classList.remove(Pr),Pe.gm?e.classList.remove(Mr):(this.scrollbarsSize.x&&(e.classList.remove(Ur),e.scrollLeft=t),this.scrollbarsSize.y&&(e.classList.remove(Vr),e.scrollTop=s))}addLock(){this.locks.size||this.lockScroll();const e=Symbol("scroll-lock");return this.locks.add(e),e}removeLock(e){this.locks.delete(e),this.locks.size||this.unlockScroll()}isLocked(){return this.locks.size>0}
1static getInstance(){return this.instance_||(this.instance_=new Br),this.instance_}}Br.instance_=void 0;var Fr="Up4mI";class Hr extends Re.Component{constructor(...e){super(...e),this.lockId=void 0}componentDidMount(){this.lockId=Br.getInstance().addLock()}componentWillUnmount(){Br.getInstance().removeLock(this.lockId)}render(){const{props:e}=this;return ci((0,pe.jsxs)("div",{"data-soul":"OVERLAY_PORTAL",className:"NuxoP",children:[(0,pe.jsx)("div",{onClick:e.onClick,className:(0,Ye.A)("_OKLB",e.className,{[Fr]:e.onClick}),"data-soul":"OVERLAY_PORTAL_BACKDROP",role:"presentation"}),e.children]}))}}var Gr="oA_9l";const qr=e=>e.total<2?null:(0,pe.jsx)("div",{className:"eqdhL","data-soul":"MODAL_PAGINATION_BULLETPOINTS",children:Array.from({length:e.total}).map((t,s)=>{const n=s===e.current;return(0,pe.jsx)("span",{className:(0,Ye.A)("LC_1N",{[Gr]:n})},`pagination-${String(s)}`)})});var Yr="fgy08",Wr="cNQYH",zr="kKx2M",$r="dyadc",Kr="puS8Y",Qr="hENPk";const Zr={[wr]:gt,[Or]:_t},Xr=e=>{const{message:t,options:s={},primaryJob:n,secondaryJob:i}=e;return(0,pe.jsx)(Hr,{className:"oketa",children:(0,pe.jsxs)(Ir,{"data-soul":t.soul||"MODAL",role:"dialog","aria-modal":"true","aria-labelledby":t.title,className:(0,Ye.A)("zS_qe",{[Yr]:Boolean(t.image?.src)}),children:[(0,pe.jsxs)("div",{"data-soul":"MODAL_BODY",className:(0,Ye.A)("vImi9",{[zr]:t.textAlign===Dr}),children:[!s.preventClose&&(0,pe.jsx)(Ci,{className:"NnPcu",onClick:e.onClose,soul:"MODAL_CONTROL_CLOSE",tap:!0}),t.image?.src&&(0,pe.jsx)("div",{className:"jmykk",children:(0,pe.jsx)(en,{className:"XFGZi",src:t.image.src,src2x:t.image.src2x,alt:t.title,width:t.image.width||448,height:t.image.height||180,soul:"MODAL_IMAGE"})}),t.title&&(0,pe.jsx)("h2",{className:(0,Ye.A)("cZXeB",Qi),"data-soul":"MODAL_TITLE",children:t.title}),t.text&&(0,pe.jsx)("div",{className:(0,Ye.A)("PgVJH",{[$r]:!t.title}),children:(0,pe.jsx)("div",{className:(0,Ye.A)("YqkwY",Rr,{[Qr]:e.pagination.total>1}),children:t.withMarkdown?(0,pe.jsx)(kr,{children:t.text}):t.text})}),(0,pe.jsx)(qr,{...e.pagination}),(0,pe.jsxs)("div",{className:(0,Ye.A)("h3doj",{[Kr]:!t.text}),children:[!s.primaryOnly&&(0,pe.jsx)(ln,{className:Wr,onClick:i.callback,title:i.text,kind:dt,color:Et,soul:i.soul,text:i.text}),n&&(0,pe.jsx)(ln,{className:Wr,onClick:n.callback,title:n.text,kind:dt,color:Zr[e.nature],soul:n.soul,text:n.text})]})]}),(0,pe.jsx)(Cr,{exclusive:!0,keyMap:{[tr]:n.callback,[sr]:e.onClose}})]})})};const Jr=new(s(4486).b),eo="EVENT_MODAL_SHOWN",to=Jr,so=(e,t)=>{to.emit(eo,{...e,nature:t})},no=e=>{so(e,wr)},io=e=>{so(e,Or)};var ro;let oo=(ro=class extends Re.Component{constructor(...e){super(...e),this.state={data:null,index:0}}getMessagesLength(){return this.state.data?.messages?.length||0}updateIndex(e){const t=this.state.index+e;t<this.getMessagesLength()&&t>=0?this.setState({index:t}):this.setState({index:0})}getMessages(){return this.state.data?.messages||[]}getPrimaryJob(){if(this.state.index<this.getMessagesLength()-1)return{callback:()=>this.updateIndex(1),soul:"MODAL_CONTROL_NEXT",text:V()};const{job:e}=this.state.data;return{callback:t=>{e.callback?.(t),this.closeModal()},soul:e.soul||"MODAL_CONTROL_PRIMARY",text:e.text}}getSecondaryJob(){const{cancelJob:e}=this.state.data;if(this.state.index>0)return{callback:()=>this.updateIndex(-1),soul:"MODAL_CONTROL_BACK",text:j()};return{callback:t=>{e?.callback?(e.callback(t),this.closeModal()):this.onClose()},soul:e?.soul||"MODAL_CONTROL_SECONDARY",text:e?.text||k()}}onClose(){const{options:e}=this.state.data;e?.preventClose||(e?.onClose?.(),this.closeModal())}showModal(e){this.setState({data:e,index:0})}closeModal(){this.setState({data:null,index:0})}componentDidMount(){var e;e=this.showModal,to.on(eo,e)}componentWillUnmount(){to.off(eo)}render(){const{data:e,index:t}=this.state;if(!e)return null;const s=this.getMessages()[t];return(0,pe.jsx)(Xr,{nature:e.nature,options:e.options,primaryJob:this.getPrimaryJob(),secondaryJob:this.getSecondaryJob(),onClose:this.onClose,message:s,pagination:{current:t,total:this.getMessagesLength()}})}},(0,De.A)(ro.prototype,"updateIndex",[je],Object.getOwnPropertyDescriptor(ro.prototype,"updateIndex"),ro.prototype),(0,De.A)(ro.prototype,"getSecondaryJob",[je],Object.getOwnPropertyDescriptor(ro.prototype,"getSecondaryJob"),ro.prototype),(0,De.A)(ro.prototype,"onClose",[je],Object.getOwnPropertyDescriptor(ro.prototype,"onClose"),ro.prototype),(0,De.A)(ro.prototype,"showModal",[je],Object.getOwnPropertyDescriptor(ro.prototype,"showModal"),ro.prototype),(0,De.A)(ro.prototype,"closeModal",[je],Object.getOwnPropertyDescriptor(ro.prototype,"closeModal"),ro.prototype),ro);const ao=e=>e.sessionLib,lo=e=>ao(e).active,co=e=>ao(e).current_country,po=e=>ao(e).language,uo=e=>ao(e).power_guide_hash,ho=e=>ao(e).lineup_hash,mo="CONSENTS_SET",go=({id:e,async:t,scriptElement:s,src:n})=>new Promise((i,r)=>{const o=s||document.createElement("script");o.type="text/javascript",o.src=n,e&&(o.id=e),t&&(o.async=!0),o.onload||(o.onload=()=>{i()}),o.onerror||(o.onerror=e=>{r(e)}),document.querySelector("head").appendChild(o)}),yo="READY",_o="ERROR",Eo=()=>window.tcfScriptStatus===yo&&window.tcfAutoblockScriptStatus===yo,vo="TCF_CONFIRMED",xo="T
1CF_SCRIPT_READY",bo="TCF_SCRIPT_ERROR",Ao="TCF_AUTOBLOCK_SCRIPT_READY",So="TCF_AUTOBLOCK_SCRIPT_ERROR";var To;let Co=0,No=(To=class{constructor(e){this.script=void 0,this.options=void 0,this.mutationObserver=void 0,this.resolve=void 0,this.reject=void 0,this.onScriptLoad=void 0,this.onScriptError=void 0,this.options={autoblock:!0,...e}}cleanupWindowAttributes(){delete window[this.onScriptLoad],delete window[this.onScriptError]}attachAttributesToWindow(){const e=Co++;this.onScriptLoad=`__onLoad${e}`,this.onScriptError=`__onError${e}`,window[this.onScriptLoad]=()=>{this.resolve(),this.cleanupWindowAttributes()},window[this.onScriptError]=()=>{this.reject(new Error("Script loading failed.")),this.cleanupWindowAttributes()},this.script.setAttribute("onload",`window.${this.onScriptLoad}()`),this.script.setAttribute("onerror",`window.${this.onScriptError}()`)}mutationCallback(){"text/plain"===this.script.getAttribute("type")&&(this.options.onBlocked(),this.unobserveOnBlockedObserver())}unobserveOnBlockedObserver(){this.mutationObserver.disconnect(),this.mutationObserver=null}initOnBlockedObserver(){this.mutationObserver=new MutationObserver(this.mutationCallback),this.mutationObserver.observe(this.script,{attributeFilter:["type"]})}addAdditionalSettings(){this.options.autoblock||this.script.setAttribute("data-ot-ignore","true"),this.options.onBlocked&&this.initOnBlockedObserver(),this.attachAttributesToWindow()}injectScriptFailed(){this.reject(new Error("TCF scripts failed to load."))}tcfScriptsReady(){return!this.options.autoblock||Eo()}tcfScriptsErrored(){return this.options.autoblock&&(window.tcfScriptStatus===_o||window.tcfAutoblockScriptStatus===_o)}onTcfScriptLoad(){window.tcfScriptStatus=yo,Eo()&&(this.attachScript(),this.unsubscribe())}onTcfAutoblockScriptLoad(){window.tcfAutoblockScriptStatus=yo,Eo()&&(this.attachScript(),this.unsubscribe())}onTcfScriptError(){window.tcfScriptStatus=_o,this.injectScriptFailed(),this.unsubscribe()}onTcfAutoblockScriptError(){window.tcfAutoblockScriptStatus=_o,this.injectScriptFailed(),this.unsubscribe()}subscribe(){document.addEventListener(xo,this.onTcfScriptLoad,{once:!0}),document.addEventListener(bo,this.onTcfScriptError,{once:!0}),document.addEventListener(Ao,this.onTcfAutoblockScriptLoad,{once:!0}),document.addEventListener(So,this.onTcfAutoblockScriptError,{once:!0})}unsubscribe(){document.removeEventListener(xo,this.onTcfScriptLoad),document.removeEventListener(bo,this.onTcfScriptError),document.removeEventListener(Ao,this.onTcfAutoblockScriptLoad),document.removeEventListener(So,this.onTcfAutoblockScriptError)}attachScript(){this.script=document.createElement("script"),this.addAdditionalSettings(),go({id:this.options.id,async:this.options.async,scriptElement:this.script,src:this.options.src}).then(this.resolve).catch(this.reject)}init(){this.tcfScriptsReady()?this.attachScript():this.tcfScriptsErrored()?this.injectScriptFailed():this.subscribe()}getInstance(){return new Promise((e,t)=>{this.resolve=e,this.reject=t,this.init()})}},(0,De.A)(To.prototype,"mutationCallback",[je],Object.getOwnPropertyDescriptor(To.prototype,"mutationCallback"),To.prototype),(0,De.A)(To.prototype,"tcfScriptsReady",[je],Object.getOwnPropertyDescriptor(To.prototype,"tcfScriptsReady"),To.prototype),(0,De.A)(To.prototype,"tcfScriptsErrored",[je],Object.getOwnPropertyDescriptor(To.prototype,"tcfScriptsErrored"),To.prototype),(0,De.A)(To.prototype,"onTcfScriptLoad",[je],Object.getOwnPropertyDescriptor(To.prototype,"onTcfScriptLoad"),To.prototype),(0,De.A)(To.prototype,"onTcfAutoblockScriptLoad",[je],Object.getOwnPropertyDescriptor(To.prototype,"onTcfAutoblockScriptLoad"),To.prototype),To);const fo="STRICTLY_NECESSARY_COOKIES",Io="PERFORMANCE_COOKIES",wo="FUNCTIONAL_COOKIES",Oo="TARGETING_COOKIES",Do="SOCIAL_MEDIA_COOKIES",Ro=e=>new No(e).getInstance(),jo=()=>{{const e=window.OptanonActiveGroups||"";return{[fo]:!0,[Io]:e.includes("C0002"),[wo]:e.includes("C0003"),[Oo]:e.includes("C0004"),[Do]:e.includes("C0005")}}},ko=()=>{window.Optanon?.ToggleInfoDisplay()},Po=()=>!window.Optanon||window.Optanon?.IsAlertBoxClosed();var Lo=s(8987);let Mo=null;const Uo=()=>{Mo=Lo.A.get("eupubconsent-v2")};var Vo;let Bo=(Vo=class extends Re.Component{onConsentConfirmed(){this.props.dispatch({type:mo,groups:jo()}),Uo()}sdkChangeLanguage(){var e;e=this.props.language,window.Optanon?.changeLanguage?.(e)}syncLanguage(){Po()?this.sdkChangeLanguage():document.addEventListener(vo,this.sdkChangeLanguage,{once:!0})}subscribe(){document.addEventListener(vo,this.onConsentConfirmed)}unsubscribe(){document.removeEventListener(vo,this.onConsentConfirmed),document.removeEventListener(vo,this.sdkChangeLanguage)}componentDidMount(){Po()&&this.onConsentConfirmed(),this.syncLanguage(),this.subscribe()}componentWillUnmount(){this.unsubscribe()}componentDidUpdate(e){e.language!==this.props.language&&this.syncLanguage()}render(){return null}},(0,De.A)(Vo.prototype,"onConsentConfirmed",[je],Object.getOwnPropertyDescriptor(Vo.prototype,"onConsentConfirmed"),Vo.prototype),(0,De.A)(Vo.prototype,"sdkChangeLanguage",[je],Object.getOwnPropertyDescriptor(Vo.prototype,"sdkChangeLanguage"),Vo.prototype),Vo);Bo.displayName="Tcf";const Fo=(0,l.Ng)(e=>({language:po(e)}))(Bo);var Ho=s(6515);const Go="LIB_SESSION_STORED";var qo=s(8423),Yo=s(6471);const Wo=e=>
1e===Yo.OO,zo=e=>e===Yo.eO,$o=(e,t)=>(e.replay?.options?.indicator||[]).includes(t);const Ko=e=>new Date(e).getTime(),Qo=e=>Ko(e)/1e3,Zo=e=>e&&`${e.replace(/^http:\/\//i,"https://")}/`,Xo=e=>{const t=s(5208),n={"Content-Type":"application/json"};return e&&(n["X-Zapi-Stage"]=e),fetch(`${t}?id=${(0,qo.A)()}`,{headers:n}).then(e=>e.ok?e.json():Promise.reject()).catch(()=>Promise.reject(new Error("Failed to load client app token")))},Jo=(e,t)=>(t.session_token?e.client_app_token=t.session_token:e.app_tid=t.app_tid,e),ea=e=>{const{assets:t,nonlive:s}=e,n=Qo(s.replay_earliest_start_time),i=Qo(e.current_time),r=n?Vt.a(i-n,"ceil"):0,o=2*Vt.W_,a=Ko(e.current_time),l=(new Date).getTime(),c=Math.abs(l-a);return{...e,assets:{...t,image_base_url:Zo(t.image_base_url),logo_base_url:Zo(t.logo_base_url)},isDeviceTimeWrong:c>=o,nonlive:{...s,recording_earliest_start_time:Qo(s.recording_earliest_start_time),replay_days:r,replay_earliest_start_time:n,showReplayIndicator:$o(N,e.current_country)}}};var ta=s(1046);const sa="3.2631.0",na="uuid";const ia=()=>{let e=Lo.A.get(na);return e||(e=(0,mn.Ak)(),Lo.A.set(na,e,{expires:3650,sameSite:"strict"})),e},ra=()=>ta.rJ().then(()=>{location.reload()}).catch(e=>{Z(e),Yn({autoDismiss:!1,soul:"SESSION_NOTIFICATION_CLOSE_ERROR",text:x(431)})});const oa=e=>async t=>(await ke(e.language),t((e=>({type:Go,session:e}))(e))),aa=e=>async t=>{const s=ce(),n=((e,t)=>{const s={app_version:sa,uuid:ia()};return t&&(s.login_token=t),Jo(s,e)})(await Xo(s),e),i=await Ho.C1(n);if(!i.active){const e=new Error("@ZAPI_SESSION_V3_HELLO resulted in an inactive session");return Promise.reject(e)}return t(oa(i))},la=e=>e.sessionLib.assets,ca=e=>la(e).logo_base_url,da=e=>la(e).image_base_url,pa=(0,Re.createContext)(null);var ua=s(183);const ha="$",ma=(e,t)=>{const[s,...n]=e,[i,...r]=t;return e.length<=1?[...e,...t].filter(Boolean):[s,i,...ma(n,r)].filter(Boolean)},ga=e=>ma(e.text.split(ha),Re.Children.toArray(e.children)),ya=e=>(0,pe.jsx)(ln,{...e,onClick:ra,soul:"ERROR_CONTROL_LOGOUT",text:M()}),_a=s.p+"assets/location-7067cf0e41d735f4b978.svg",Ea=e=>{return e.error?.code===ua.VV?(0,pe.jsx)(St,{image:e=>(0,pe.jsx)(en,{src:_a,height:200,width:200,...e}),title:x(430),primary:Ys,secondary:ya,isStandalone:!0,withShapes:!0,children:(0,pe.jsx)("p",{className:At,children:(0,pe.jsx)(ga,{text:(t={link:ha,tenantTitle:C},x(429,t)),children:(0,pe.jsx)(qs,{soul:"SESSION_ERROR_LINK_TO_SUPPORT",href:`mailto:${w.support}`,target:"_blank",rel:"noopener",link:!0,children:w.support})})})}):(0,pe.jsx)(St,{title:x(432),text:G(),image:e=>(0,pe.jsx)(en,{src:tn,height:200,width:200,...e}),primary:Ys,secondary:cn,isStandalone:!0,withShapes:!0});var t};class va extends Re.Component{constructor(...e){super(...e),this.state={error:null,withError:!1}}async establishSession(){const{props:e}=this;try{await e.dispatch(aa())}catch(e){return Z(e),await ke(),this.setState({error:e,withError:!0}),Promise.reject(e)}}componentDidMount(){this.establishSession()}render(){const{props:e,state:t}=this;return t.withError?(0,pe.jsx)(Ea,{error:t.error}):e.isSessionActive?(0,pe.jsx)(pa.Provider,{value:{imageBaseUrl:e.imageBaseUrl,logoBaseUrl:e.logoBaseUrl},children:e.children}):(0,pe.jsx)(Ke,{centered:!0,delayed:!0})}}va.displayName="Session";const xa=(0,l.Ng)(e=>({imageBaseUrl:da(e),isSessionActive:lo(e),logoBaseUrl:ca(e)}))(va);var ba=s(3149);const Aa="ROUTES_CHANGED",Sa="ROUTES_FROM_CHANGED",Ta="ROUTES_CHANGE_REQUESTED",Ca="ROUTES_QUERY_CHANGE_REQUESTED",Na="ROUTES_LISTENER_INITIALIZED",fa="ROUTES_EDITORIAL_PATHS_STORED",Ia="PUSH",wa="REPLACE",Oa=e=>e.routes.path,Da=e=>e.routes.strategy,Ra=e=>e.routes.pathPrevious,ja=e=>e.routes.pathFrom,ka=e=>e.routes.queryParams,Pa=e=>{const t=e.routes.queryParams,s=he.A.stringify(t);return s?`?${s}`:""},La=e=>e.routes.state,Ma=e=>e.routes.landingLocation,Ua=e=>Ma(e).path,Va=e=>Ma(e).query,Ba=e=>e.routes.editorialPaths,Fa=e=>({type:Sa,pathFrom:e}),Ha=(e,t)=>({...e.preserve&&t,..."string"==typeof e.queryParams?he.A.parse(e.queryParams):e.queryParams}),Ga=e=>(t,s)=>{const n="string"==typeof e?{path:e}:e,i={...n,queryParams:Ha(n,ka(s())),strategy:Ia};t({type:Ta,routeInfo:i})},qa=e=>(t,s)=>{const n="string"==typeof e?{path:e}:e,i={...n,queryParams:Ha(n,ka(s())),strategy:wa};t({type:Ta,routeInfo:i})},Ya=e=>({type:Ca,queryParams:e}),Wa=e=>{const t=(0,de.zy)(),s=(0,de.Zp)(),n=(0,de.wQ)(),i=(0,l.wA)(),r=(0,Re.useRef)(!1);return(0,Re.useEffect)(()=>{!r.current&&(0,ba.A)(t)&&(r.current=!0,i(((e,t)=>({type:Na,landingLocation:t,navigate:e}))(s,{path:t.pathname,query:t.search})))},[s,i,t]),(0,Re.useEffect)(()=>{const e=he.A.parse(t.search);var s;i((s={path:t.pathname,queryParams:e,state:t.state,strategy:n},{type:Aa,routeInfo:s}))},[i,t,n]),e.children},za=s.p+"assets/favicon/512x512-dark.png?r=fa4a7d7d9407736f46d9",$a=s.p+"assets/favicon/512x512-light.png?r=fa4a7d7d9407736f46d9",Ka=()=>((0,Re.useLayoutEffect)(()=>{const e=e=>{const t=document.querySelector("link[rel='icon']");t&&(e?t.setAttribute("href",za):t.setAttribute("href",$a))},t=t=>{e(t.matches)},s=window.matchMedia("(prefers-color-scheme: dark)");
1return s.addEventListener("change",t),e(s.matches),()=>{s.removeEventListener("change",t)}},[]),null),Qa="dismissed",Za="eligible",Xa="installed",Ja=e=>e.pwaPromo,el=e=>Ja(e).status===Za,tl=e=>Ja(e).status===Qa;const sl=()=>x(6),nl=()=>x(8),il=()=>x(13),rl=()=>x(18),ol=()=>x(27),al=()=>x(29),ll=()=>x(32),cl=()=>x(34),dl=()=>x(36),pl=()=>x(37),ul=()=>x(38),hl=()=>x(39),ml=()=>x(40),gl=e=>x(47,e),yl=()=>x(64),_l=()=>x(91),El=()=>x(92),vl=()=>x(94),xl=()=>x(97),bl=()=>x(102),Al=()=>x(104),Sl=()=>x(106),Tl=()=>x(109),Cl=e=>x(113,e),Nl=()=>x(115),fl=()=>x(121),Il=()=>x(124),wl=()=>x(125),Ol=()=>x(126),Dl=()=>x(127),Rl=()=>x(128),jl=()=>x(129),kl=()=>x(130),Pl=e=>x(136,e),Ll=()=>x(137),Ml=()=>x(138),Ul=e=>x(140,e),Vl=e=>x(143,e),Bl=()=>x(144),Fl=()=>x(149),Hl=()=>x(151),Gl=e=>x(155,e),ql=e=>x(158,e),Yl=()=>x(171),Wl=()=>x(182),zl=()=>x(189),$l=()=>x(191),Kl=e=>x(200,e),Ql=()=>x(201),Zl=e=>x(202,e),Xl=e=>x(203,e),Jl=()=>x(205),ec=e=>x(208,e),tc=e=>x(209,e),sc=()=>x(212),nc=e=>x(213,e),ic=()=>x(215),rc=()=>x(232),oc=()=>x(246),ac=()=>x(252),lc=()=>x(254),cc=()=>x(263),dc=()=>x(265),pc=()=>x(266),uc=e=>x(267,e),hc=e=>x(268,e),mc=()=>x(292),gc=e=>x(303,e),yc=e=>x(306,e),_c=()=>x(309),Ec=()=>x(310),vc=()=>x(315),xc=e=>x(319,e),bc=e=>x(320,e),Ac=()=>x(328),Sc=()=>x(337),Tc=e=>x(346,e),Cc=e=>x(358,e),Nc=e=>x(360,e),fc=e=>x(361,e),Ic=e=>x(362,e),wc=e=>x(366,e),Oc=()=>x(367);let Dc;const Rc="PWA_STATUS_CHANGED",jc=e=>({status:e,type:Rc}),kc=()=>e=>(Dc?(Dc.prompt(),Dc.userChoice):Promise.reject(new Error("No PWA Promo deferred prompt available"))).then(t=>{"accepted"===t.outcome?(e(jc(Xa)),as({action:"PWA install accepted",category:"Promo"})):as({action:"PWA install dismissed",category:"Promo"})}).catch(e=>{Yn({text:x(211),soul:"PWA_PROMO_INSTALL_FAILED"}),Z(e)}),Pc=()=>{const e=(0,l.wA)(),t=(0,l.d4)(tl);return(0,Re.useEffect)(()=>{if(t)return null;const s=t=>{t.preventDefault(),(e=>{Dc=e})(t),e(jc(Za))},n=()=>{e(jc(Xa)),as({action:"PWA installed",category:"Promo"})};return window.addEventListener("appinstalled",n),window.addEventListener("beforeinstallprompt",s),()=>{window.removeEventListener("appinstalled",n),window.removeEventListener("beforeinstallprompt",s)}},[t,e]),null},Lc="braze_cards",Mc="/assume",Uc="/account/recovery",Vc="/reset-password",Bc="/highlights",Fc="group",Hc="/channels",Gc=`${Hc}/:${Fc}?`,qc="/",Yc="AUTHENTICATION_DATA_CLEARED",Wc=()=>({type:Yc});class zc extends Re.Component{componentDidMount(){const{props:e}=this;e.isAuthenticated&&e.dispatch(Wc()),ta.aJ({...e.queryParams,remember:!0}).then(()=>{location.href=qc}).catch(e=>{Z(e),location.href=Ae})}render(){return(0,pe.jsx)(Ke,{centered:!0})}}zc.displayName="AssumeLogin";const $c=(0,l.Ng)(e=>({queryParams:ka(e),isAuthenticated:Ne(e)}))(zc);var Kc=s(4314);const Qc="guide",Zc="series_recordings",Xc="series",Jc="settings",ed="vod_series",td=e=>e.context.context,sd=e=>td(e).title,nd=e=>td(e).description,id=e=>td(e).canonical,rd=e=>td(e).path,od=e=>td(e).funnel,ad=e=>od(e)===Kc.RECORDINGS,ld=e=>od(e)===Zc,cd=e=>od(e)===Qc,dd=e=>od(e)===Kc.CHANNELS,pd=e=>ld(e)||(e=>od(e)===Xc)(e),ud=e=>od(e)===Kc.VOD,hd=e=>ud(e)||(e=>od(e)===ed)(e),md=e=>od(e)===Jc,gd=e=>od(e)===Kc.START||od(e)===Xc,yd=e=>ad(e)||ld(e),_d=e=>e.context.isChangeScheduled,Ed=e=>{const t=e.description||x(148);return(({canonical:e,description:t,language:s,title:n})=>{(0,Re.useEffect)(()=>{let t=document.querySelector("link[rel='canonical']");const s=()=>{t?.remove()};if(e)return t?t.setAttribute("href",e):(t=document.createElement("link"),t.setAttribute("rel","canonical"),t.setAttribute("href",e),document.head.appendChild(t)),s;s()},[e]),(0,Re.useEffect)(()=>{n&&(document.title=n),s&&(document.documentElement.lang=s)},[n,s]),(0,Re.useEffect)(()=>{const e=document.head.querySelector('meta[name="description"]');if(e)t?e.content=t:e.remove();else if(t){const e=document.createElement("meta");e.setAttribute("name","description"),e.setAttribute("content",t),document.head.appendChild(e)}},[t])})({title:e.title||C,language:e.language,canonical:e.canonical,description:t}),null};Ed.displayName="Context";const vd=(0,l.Ng)(e=>({canonical:id(e),description:nd(e),language:po(e),title:sd(e)}))(Ed),xd="ScreenOrientation"in window&&screen.orientation instanceof ScreenOrientation,bd="ORIENTATION_CHANGED",Ad="landscape",Sd=()=>(xd?screen.orientation.type.startsWith(Ad):90===Math.abs(Number(window.orientation)))?Ad:"portrait",Td=()=>{const e=(0,l.wA)();return(0,Re.useEffect)(()=>{const t=()=>{e({type:bd,orientation:Sd()})};return xd?screen.orientation.addEventListener("change",t):window.addEventListener("orientationchange",t),()=>{xd?screen.orientation.removeEventListener("change",t):window.removeEventListener("orientationchange",t)}},[]),null};const Cd=()=>{const e=(0,de.Zp)(),t=(0,l.d4)(ka),s=ve(t);return(0,Re.useEffect)(()=>{"true"===t.signup?window.location.replace(s):(e(s),zn({text:x(233),autoDismiss:!1,soul:"ANONYMOUS_REDEEM_REDIRECT_NOTIFICATION_LOGIN"}))},[t,s,e]),null};const Nd="username",fd="ALLOWED",Id="DENIED",wd=e=>e.tcf.groups,Od=e=>(e=>
1e.tcf.ready)(e)?wd(e).TARGETING_COOKIES?fd:Id:"PENDING",Dd=e=>Od(e)===fd;const Rd=()=>{const e=(0,l.d4)(Ua),t=(0,l.d4)(Va),s=he.A.parse(t),n=ge.shop?.options.redeem?.path,i=e.match(n)?ve(s):I.register;return(0,pe.jsx)(qs,{href:i,className:"EnZEK",soul:"SHOP_REGISTER_LINK",link:!0,children:x(117)})},jd="CINEMA",kd="FULL_SCREEN",Pd="HIDDEN",Ld="SPLIT",Md=(e,t)=>{const s={};t&&(s.login_success=!1,s.login_error_code=(e=>"string"==typeof e?e:e.code?String(e.code):e.name)(t)),Un({type:"APP_LOGIN",login_method:e,login_success:!0,...s})},Ud=()=>{Un({type:"PAGE_OPEN",page_name:location.pathname})},Vd="/ondemand",Bd="/recordings",Fd="/guide",Hd=`${Fd}/favorites`,Gd=`${Fd}/:${Fc}?`,qd="/settings",Yd=e=>e.sessionLib.content_pages,Wd=e=>Yd(e)?.start,zd=e=>Yd(e)?.recordings,$d=e=>Yd(e)?.vod,Kd="pageId",Qd=`/p/:${Kd}`,Zd=`/tc/:${Kd}`,Xd=e=>`/p/${e}`,Jd=e=>`/tc/${e}`,ep=(e,t)=>{switch(t){case Ot.Q:return Xd(e);case Ot.Y:return Jd(e);default:return null}},tp=(e,t,s)=>{const n=e[t];return n||ep(t,s)},sp=e=>Xd(Wd(e)),np=e=>Boolean(Wd(e)),ip=e=>np(e)?Bc:Hc,rp=e=>np(e)?Kc.START:Kc.CHANNELS,op=e=>{switch(rp(e)){case Kc.START:return Ol();case Kc.CHANNELS:return Il();default:return null}},ap=e=>rp(e)===od(e),lp=e=>e.editorial.navigation,cp=e=>!(0,me.A)(lp(e));var dp=s(6996);const pp=e=>e.window.opened,up=e=>e.window.originLocation,hp="all",mp="favorites",gp=e=>e.lineup.current.group,yp=e=>gp(e)===hp,_p=e=>gp(e)===mp,Ep=e=>e.lineup.current.availableList,vp=e=>e.lineup.current.collection;var xp=s(2325),bp=s(3753);const Ap={availability:bp.Hh,level:null,logo_token:null,title:null},Sp=e=>e?.qualities&&0!==e?.qualities.length?e.qualities[0]:Ap,Tp=e=>e?Sp(e)?.availability:null,Cp=e=>!!e&&Tp(e)===bp.OO,Np=e=>!Cp(e),fp=e=>!!e&&Tp(e)===bp.og,Ip=e=>!!e&&Tp(e)===bp.eO,wp=e=>!!e&&Tp(e)===bp.$2,Op=e=>e.channelsLib,Dp=e=>Op(e).visibleChannels,Rp=(0,xp.Mz)(Dp,e=>{const t={};return e.forEach(e=>{e.url_cid!==e.cid&&(t[e.url_cid]=e.cid)}),t}),jp=e=>Op(e).channelsMap,kp=(e,t)=>{const s=Rp(e)[t]??t;return jp(e)[s]?s:null},Pp=e=>Op(e).favoritesCID,Lp=e=>Op(e).groups,Mp=e=>Op(e).groupAliases,Up=((0,xp.Mz)(Dp,e=>e.find(Cp)?.cid),e=>(0,me.A)(Pp(e))),Vp=e=>e.channelsSidebar.opened,Bp=e=>e.channelsSidebar.exist,Fp=e=>_p(e)&&Up(e),Hp="live",Gp="replay",qp="recording",Yp="timeshift",Wp="vod-movie",zp="vod-episode",$p=e=>e.stream.mode,Kp=e=>$p(e)===Hp,Qp=e=>$p(e)===Yp,Zp=e=>$p(e)===Gp,Xp=e=>$p(e)===qp,Jp=e=>$p(e)===Wp,eu=e=>$p(e)===zp,tu=e=>Jp(e)||eu(e),su=e=>!eu(e),nu=e=>tu(e)?"videoInfo":"programInfo",iu=e=>Kp(e)||Qp(e)||Zp(e),ru=e=>Kp(e)||Qp(e),ou=e=>Kp(e)||Zp(e)||Xp(e)||Qp(e),au=e=>Zp(e)||Xp(e)||Qp(e);var lu=s(261);const cu=e=>e.sessionLib.ads,du=e=>cu(e).allowed,pu=e=>!(e=>Ce(e)?.privacy_settings)(e)?.includes("npa"),uu="idle",hu="paused",mu="LOADED";const gu=e=>e.ima.adInfo,yu=e=>e.ima.podInfo,_u=e=>e.ima.status,Eu=e=>e.ima.status===hu,vu=e=>e.ima.active,xu=e=>0===(e=>yu(e).index)(e),bu=e=>e.ima.currentTime,Au=e=>gu(e).position,Su=e=>gu(e).duration,Tu=e=>gu(e).skipTimeOffset,Cu=e=>-1!==Tu(e),Nu=e=>{if(!Cu(e))return-1;const t=Tu(e)-Math.floor(bu(e));return Math.max(0,t)},fu=e=>yu(e).total,Iu=e=>(e=>e.ima.sdkStatus)(e)===mu,wu=e=>yu(e).duration,Ou="player",Du="cast",Ru=e=>e.media.mode,ju=e=>Ru(e)===Du,ku=e=>Ru(e)===Ou,Pu=e=>"pip"===Ru(e),Lu=e=>Pu(e)||ju(e);var Mu=s(1879);const Uu=({startTime:e,endTime:t,prePadding:s=0,postPadding:n=0})=>!(0,Mu.A)(e)||!(0,Mu.A)(t)||e>t?0:t-e+n+s,Vu=(e,t)=>(0,Mu.A)(e)?((!(0,Mu.A)(t)||t<e)&&(t=(0,Vt.hY)()),t-e):0,Bu=({currentTime:e,endTime:t})=>!(0,Mu.A)(t)||!(0,Mu.A)(e)||e>t?0:t-e,Fu=e=>e.player.time.current;var Hu=s(9247);const Gu=e=>e.dai.isActive,qu=e=>e.dai.sdkLoaded,Yu=e=>{const t=co(e);return[Hu.CH,Hu.DE].includes(t)?`/40762806/prel-10-${t.toLowerCase()}/prel-10-video/prel-10-ad-insertion/prel-10-google-dai`:null},Wu=e=>e.stream.timeshift.registered_at,zu=e=>e.stream.timeshift.allowed_offset,$u=e=>e.stream.timeshift.resumeTime,Ku=e=>{if(!Qp(e))return null;const t=Wu(e),s=Zg(e)-t,n=zu(e);return s>n?t+(s-n):t},Qu=e=>e.stream.program,Zu=e=>Qu(e).id,Xu=e=>Qu(e).t,Ju=e=>Qu(e).s,eh=e=>Qu(e).e,th=e=>(0,Vt.v9)(Ju(e),eh(e),{excludeEnd:!0}),sh=e=>e.stream.recording.id,nh=(e,t)=>Xp(e)&&sh(e)===t,ih=e=>(0,Vt.tM)(e.stream.recording.end);var rh=s(2506);const oh="purchased",ah="rented",lh="subscribable",ch="upcoming",dh="available",ph=e=>e.sessionLib.nonlive,uh=e=>ph(e).recording_duration_limit,hh=e=>ph(e).recording_number_limit,mh=e=>ph(e).vod_eligible,gh=e=>ph(e).recording_earliest_start_time,yh=e=>Boolean(gh(e)),_h=e=>ph(e).replay_availability,Eh=e=>Boolean(ph(e).recording_series_eligible),vh=e=>ph(e).recording_subscribable,xh=e=>!(e=>ph(e).local_recording_eligible)(e),bh=e=>ph(e).showReplayIndicator,Ah=e=>mh(e)?e.vodLib.status:null,Sh=(e,t,s)=>((e,t,s)=>e?.[t]?e[t][s]:null)(Ah(e),t,s),Th=e=>mh(e)?e.vodLib.subscriptions:null;var Ch=s(6022),Nh=s(6711),fh=s(5890);const Ih=[fh.SD,fh.HD,fh.H,fh.e],wh=(e,t,s)=>!(0,Mu.A)(e)||!(0,Mu.A)(t)||!(0,Mu.A)(s)||s<e||s>=t?0:s-e,Oh=e=>!(!e.isReplayAvailable&&!e.isRecordingAvailable)&&0!==wh(e.startTime,e.endTime,e.wat
1chPosition),Dh=e=>{switch(e){case Nh.OB:case Nh.nB:case Nh.Ng:case Nh.Hv:case Nh.L4:case Nh.hN:return!0;default:return!1}},Rh=(e,t)=>{const s=e?.toLowerCase(),n=t?.toLowerCase();return Ih.indexOf(s)-Ih.indexOf(n)},jh=(e,t)=>Rh(e,t)>=0,kh=e=>e?.flatMap(e=>e?.terms),Ph=(e,t)=>e.find(e=>e.vod_type===t),Lh=e=>e?.find(({vod_type:e})=>e===Ch.vG),Mh=e=>{const t=e.find(e=>(e.vod_type===Ch.vG||e.vod_type===Ch.sd)&&e.terms?.[0]?.consumption_only);return Boolean(t)},Uh=e=>e?.request_on_audio_switch,Vh=e=>e?.ordered&&!e.expired?e.term_token:null,Bh=(e,t)=>{if(!e||!t)return null;let s;for(const n of e){const e=t.includes(n.subscription_sku);if(e&&n.vod_type===Ch.B$)return n;!s&&e&&n.vod_type===Ch.jb&&(s=n)}return s},Fh=(e,t,s)=>((e,t)=>Bh(e,t)?.token)(e,t)||Vh(s),Hh=(e,t)=>kh(e).find(e=>e.token===t),Gh=(e,t,s)=>Boolean(Fh(e,t,s)),qh=e=>Boolean(e.length)&&e.every(({vod_type:e})=>e===Ch.B$||e===Ch.jb),Yh=(e,t)=>Bh(t,e)?"subscribed":qh(t)?lh:dh,Wh=e=>{if(!e?.ordered)return dh;switch(e?.vod_type){case Ch.sd:return e.expired?dh:ah;case Ch.vG:return oh;default:return dh}},zh=(e,t,s)=>{if(s.preview)return ch;if(0===s.terms_catalog.length)return null;const n=kh(s.terms_catalog);if(qh(n))return Yh(t,n);if((e=>Boolean(e.length)&&e.every(({vod_type:e})=>e===Ch.vG||e===Ch.sd))(n))return Wh(e);const i=Wh(e),r=Yh(t,n),o=i===dh,a=r===dh;return o&&a?dh:a?i:r},$h=e=>e.stream.vod_content,Kh=e=>$h(e)?.id,Qh=e=>$h(e)?.episode,Zh=e=>$h(e)?.series,Xh=e=>Zh(e)?.current_season,Jh=e=>Zh(e)?.id,em=e=>Xh(e)?.id,tm=e=>Qh(e)?.id,sm=e=>$h(e)?.term_token,nm=e=>(e=>$h(e)?.trailer_token)(e)===sm(e),im=e=>$h(e)?.title,rm=e=>Xh(e)?.title,om=e=>Xh(e)?.number,am=e=>Qh(e)?.number,lm=e=>$h(e)?.duration,cm=e=>$h(e)?.brand?.logo_token,dm=e=>$h(e)?.isSingleAudioStream,pm=e=>$h(e)?.nextEpisode,um=e=>{const t=pm(e);return Sh(e,rh.Uh,t.id)};const hm=e=>!!e&&Vt.v9(e.s,e.e,{excludeEnd:!0}),mm=e=>!!e&&Vt.zg(e.s),gm="REPLAY_AVAILABLE",ym="REPLAY_NOT_AVAILABLE",_m="REPLAY_RESTRICTED",Em="REPLAY_SUBSCRIBABLE";const vm=e=>{const{broadcast:t}=e;if(s=e.replayAvailability,!Wo(s)&&!zo(s))return ym;var s;if(Np(e.channel))return"REPLAY_BLOCKED";if(!t||mm(t))return ym;const n=(e=>e?e?.max_ry_u?e:{...e,max_ry_u:e.ry_u}:null)(t),i=(0,Vt.hY)(),{max_ry_u:r,ry_u:o}=n;return!r&&Wo(e.replayAvailability)&&hm(t)?_m:r?zo(e.replayAvailability)?Em:r<i?ym:r===o||o&&o>=i?gm:Em:ym},xm=e=>e===gm,bm=e=>e===Em,Am=e=>xm(vm(e)),Sm=e=>e.stream.channel,Tm=e=>Sm(e).url_cid,Cm=e=>Sm(e).cid,Nm=e=>Sm(e).title,fm=e=>Sp(Sm(e))?.logo_token,Im=e=>Sm(e).is_gt12_bv,wm="MAIN",Om="AVAILABLE",Dm="MARKERS_AD_BREAK_PLAYING",Rm="MARKERS_REQUIRED",jm=(e,t,s)=>e>=t&&e<s,km=(e,t)=>{const{promo:s}=t;return jm(e,t.start,t.end)?jm(e,t.start,t.mainEnd)?wm:s&&jm(e,s.start,s.end)?"PROMO":"IN_TRANSITION":null},Pm=(e,t)=>e.flatMap(e=>e.ad_breaks?.map(e=>((e,t)=>{const s=e.start/1e3,n=e.end/1e3;let i=null,r=n;return"number"==typeof e.promo_start&&(r=e.ads_end/1e3,i={start:e.promo_start/1e3,end:n}),{id:`${t}-${s}`,start:s,end:n,mainEnd:r,promo:i}})(e,t))).filter(Boolean);const Lm=e=>e.streamMarkersLib,Mm=e=>Lm(e).markersHandling,Um=e=>(e=>Lm(e).markers)(e).length>0,Vm=e=>Mm(e).forward_seeking_needs_markers,Bm=e=>Mm(e).adbreak_skip_allowed,Fm=e=>Lm(e).adBreaks,Hm=e=>(e=>Mm(e).adbreaks_in_scrub_bar)(e)?Fm(e):null,Gm=e=>((e,t)=>Lm(e).adBreaks.find(e=>e.id===t))(e,Lm(e).activeAdBreak),qm=e=>Lm(e).activeAdBreakArea,Ym=e=>Bm(e)&&(e=>null!==qm(e))(e),Wm=e=>Vm(e)?Um(e)?(e=>qm(e)===wm)(e)?Dm:Om:Rm:Om,zm=e=>Wm(e)===Om,$m="AVAILABLE",Km="FORBIDDEN",Qm=e=>!vu(e)&&(!Kp(e)||Vg(e)&&Am({broadcast:Qu(e),channel:Sm(e),replayAvailability:_h(e)})),Zm=e=>vu(e)?Km:tu(e)||Kp(e)&&Vg(e)&&!Rg(e)?$m:Zp(e)||Xp(e)?Pg(e)?zm(e)?$m:Wm(e):Km:Qp(e)?(e=>e.stream.timeshift.forward_seeking)(e)?$m:Km:Kp(e)?"LIVE_FORBIDDEN":Km,Xm=e=>Zm(e)===$m;var Jm=s(7061);const eg=e=>e.stream.source,tg=e=>e.stream.source.local,sg=e=>e.stream.source.cast,ng=e=>eg(e).authToken,ig=e=>tg(e).url,rg=e=>tg(e).licenseUrl,og=e=>eg(e).streamType,ag=e=>null!==tg(e).url,lg=e=>eg(e).ads,cg=e=>eg(e).externalSubtitles,dg=e=>lg(e).length>0,pg=e=>tg(e).csid,ug=e=>e.videoAds.bcff,hg=e=>{const t=lg(e).find(e=>e.type===Jm.lI);return t},mg=e=>ug(e).streamAdBreakId,gg="AVAILABLE",yg="UNAVAILABLE",_g=e=>e.cast.sdk===gg,Eg=e=>null!==e.cast.sdk,vg=e=>e.cast.status,xg=e=>e.cast.session.current,bg=e=>!!_g(e)&&xg(e)===cast.framework.SessionState.SESSION_STARTING,Ag=e=>!!_g(e)&&[cast.framework.SessionState.SESSION_ENDED,cast.framework.SessionState.SESSION_START_FAILED].includes(xg(e)),Sg=e=>!!_g(e)&&(vg(e)===cast.framework.CastState.CONNECTED||vg(e)===cast.framework.CastState.NOT_CONNECTED||vg(e)===cast.framework.CastState.CONNECTING),Tg=e=>Sg(e)&&e.cast.intro,Cg=e=>!!_g(e)&&(vg(e)===cast.framework.CastState.CONNECTING||xg(e)===cast.framework.SessionState.SESSION_STARTING||xg(e)===cast.framework.SessionState.SESSION_ENDING),Ng=e=>!!_g(e)&&(vg(e)===cast.framework.CastState.CONNECTED||xg(e)===cast.framework.SessionState.SESSION_ENDING||xg(e)===cast.framework.SessionState.SESSION_RESUMED||xg(e)===cast.framework.SessionState.SESSION_STARTED),fg=e=>e.cast?.player.isSyncing,Ig=e=>ru(e)?(e=>e.cast?.player.currentAbsoluteTime)(e):(e=>e.cast?.player.currentRelativeTime)(e),wg=e=>!Xm(e)||Um(e)&&!Bm(e),Og=e=>Boolean(hg(e))&&Fm(e).length>0;const Dg=e=>e.stream.parameters,Rg=e=>Dg(e).syncWithAiring,jg=e=>
1Dg(e).initialTime,kg=e=>Qp(e)?$u(e)-Wu(e):jg(e),Pg=e=>Dg(e).seekForwardEligible,Lg=e=>Dg(e).postPadding||0,Mg=e=>Dg(e).prePadding||0,Ug=e=>Dg(e).autoplay,Vg=e=>Dg(e).replaySeekingAllowed,Bg=e=>Dg(e).registerTimeshift,Fg=e=>"available"===Bg(e),Hg=e=>"subscribable"===Bg(e),Gg=e=>Dg(e).unregisteredTimeshift,qg=e=>"subscribable"===Gg(e),Yg=(e,t=!0)=>{switch($p(e)){case Hp:case Yp:return Ju(e);case Gp:return t?Ju(e)-Mg(e):Ju(e);case qp:{const s=Ju(e),n=(e=>(0,Vt.tM)(e.stream.recording.start))(e);return n>s?n:t?n-Mg(e):n}case Wp:case zp:return 0;case null:return null;default:return Z(new Error(`Stream couldn't calculate start time for ${$p(e)} Mode`)),null}},Wg=e=>ju(e)?Ig(e):Fu(e),zg=e=>ju(e)?(e=>e.cast?.player.duration)(e):(e=>e.player.time.duration)(e),$g=(e,t=!0)=>{const s=zg(e);switch($p(e)){case Hp:case Yp:return eh(e);case Gp:if(s){const n=t?s:s-Mg(e)-Lg(e);return Yg(e,t)+n}return t?eh(e)+Lg(e):eh(e);case qp:if(s){const n=t?s:s-Mg(e)-Lg(e);return Yg(e,t)+n}return t?ih(e)+Lg(e):ih(e);case Wp:case zp:return s||lm(e);case null:return null;default:return Z(new Error(`Stream couldn't calculate end time for ${$p(e)} Mode`)),null}},Kg=(e,t=!0)=>{const s=zg(e);if(s&&s!==1/0)return t?s:s-Mg(e)-Lg(e);if(tu(e)&&nm(e))return 0;switch($p(e)){case Hp:case Yp:return Uu({startTime:Ju(e),endTime:eh(e)});case Gp:case qp:return Uu({startTime:Yg(e),endTime:$g(e),...t&&{prePadding:Mg(e),postPadding:Lg(e)}});case zp:case Wp:return lm(e);case null:return null;default:return Z(new Error(`Stream couldn't calculate duration time for ${$p(e)} Mode`)),null}},Qg=e=>{const t=Wg(e),s=(0,Vt.pw)(t);switch($p(e)){case Hp:{const e=(0,Vt.hY)();return t<e-Vt.W_?e:t}case Yp:return s?t:null;case Gp:case qp:return s?null:t+Yg(e);case Wp:case zp:return s?null:t;default:return t}},Zg=e=>{const t=Qp(e)?(e=>e.stream.timeshift.liveGap)(e):60;return(0,Vt.hY)()-t},Xg=e=>{const t=Wg(e);return ru(e)?Vu(Ju(e),t):t},Jg=e=>ju(e)?(e=>e.cast?.player.cuePoints)(e):(e=>e.ima.cuePoints)(e),ey=e=>Dg(e).couldHavePreRollAd,ty=e=>Dg(e).latencyMeasurementInterval>=0,sy=e=>Dg(e).isContinuous,ny="buffering",iy="fetching",ry="ready",oy="paused",ay="playing",ly="seeking";const cy=e=>e.stream.status,dy=e=>cy(e).current,py=e=>Boolean(dy(e)),uy=e=>dy(e)===oy,hy=e=>cy(e).wasPaused,my=e=>dy(e)===ay,gy=e=>dy(e)===ly,yy=e=>dy(e)===ny,_y=e=>gy(e)||yy(e),Ey=e=>ju(e)?py(e):cy(e).ready,vy=e=>e.player.lifecycle.autoplayBlocked,xy=e=>e.player.lifecycle.booted,by=e=>e.player.lifecycle.loadData,Ay=e=>du(e)&&xu(e),Sy=e=>e.videoAds.core.settings,Ty=e=>xy(e)&&Iu(e),Cy=e=>e.videoAds.core.requestedAd,Ny=e=>{const t=Cy(e);return t&&((e,t)=>{const{type:s}=t;return Im(e)&&(Zp(e)||Xp(e))&&(s===Jm.ps||s===Jm.lI)})(e,t)},fy=e=>{const t=Cy(e);return!!t&&(t.is_channel_ad||Ny(e))},Iy="ready",wy="failed",Oy=e=>du(e)&&(e=>e.displayAds.apiStatus===Iy)(e)&&(e=>Oa(e)!==Te)(e),Dy=e=>e.displayAds.slots,Ry=e=>Oy(e)&&!qy(e)&&!ey(e),jy=e=>{if(!Oy(e)||!Ey(e)||!ou(e)||Ay(e))return!1;const t=Object.values(Dy(e)).find(e=>e.style===lu.H4);return!!t&&(t.rendered&&!t.isEmpty)},ky=e=>Oy(e)&&!jy(e)&&!vu(e),Py=e=>!qy(e)&&ou(e)&&!ey(e),Ly=e=>qy(e),My=e=>!Gy(e)&&!Lu(e),Uy="MEDIA_VIEW",Vy=e=>e.media.view.current,By=e=>e.media.view.previous,Fy=e=>Vy(e)===jd,Hy=e=>By(e)===jd,Gy=e=>Vy(e)===kd,qy=e=>Vy(e)===Pd,Yy=e=>Vy(e)===Ld,Wy=e=>qy(e)&&(()=>{const e=ae(Uy);switch(e){case Ld:case jd:return e;default:return Ld}})()===jd,zy=e=>Fy(e)&&iu(e)&&Bp(e),$y=e=>Fy(e)&&iu(e)&&Vp(e),Ky=e=>jy(e)&&!Gy(e),Qy="EXPANDED",Zy="MINI",Xy="NONE",Jy="vertical",e_="horizontal",t_=e=>e.menu,s_=e=>t_(e).current,n_=e=>s_(e).visible,i_=e=>s_(e).direction,r_=e=>s_(e).size,o_=e=>r_(e)===Qy,a_=e=>r_(e)===Zy,l_=e=>i_(e)===e_,c_=e=>l_(e)&&!h_(e)&&!pp(e)&&(Yy(e)||qy(e)),d_=e=>{const t=Oa(e),s=[Vd,Bc,Bd,Hc,Fd];return l_(e)||s.push(qd),!!s.some(e=>
1t.startsWith(e))},p_=e=>{const{breadcrumbs:t}=e.context,s=t[t.length-2];return!s&&!d_(e)||s&&!s.funnel||((e,t)=>!(!e?.length||!t)&&e.some(e=>t.includes(e.content_id)))(lp(e),Oa(e))?(e=>{switch(od(e)){case Zc:case Kc.RECORDINGS:return{path:Bd,title:Dl()};case Jc:return{path:ip(e),title:op(e)};case Xc:case Kc.START:return{path:Bc,title:Ol()};case Kc.VOD:case ed:return{path:Vd,title:kl()};default:return null}})(e):s},u_=e=>d_(e)?null:p_(e),h_=e=>Boolean(u_(e)),m_="CONTEXT_CHANGED",g_="CONTEXT_CLEARED",y_="CONTEXT_CHANGE_SCHEDULED",__="CONTEXT_BREADCRUMBS_CLEARED",E_=e=>(t,s)=>{const n=s();d_(n)&&t({type:__});const i=location.pathname;os({title:e.title,path:i+location.search}),t({type:m_,context:{...e,path:i}})},v_=()=>({type:y_}),x_=s.p+"assets/dark-8b43ec6d97cd078d51bd.svg",b_=e=>(0,pe.jsx)(en,{className:e.className,src:x_,alt:C,soul:"LOGO",width:e.width,height:e.height});var A_="iKojm";const S_=e=>{const{className:t,full:s,...n}=e;return(0,pe.jsx)(lt,{className:(0,Ye.A)({[A_]:s},t),...n})},T_=e=>(0,pe.jsxs)("svg",{id:"globy",className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 455.59 455.59",children:[(0,pe.jsx)("title",{children:"Globy"}),(0,pe.jsx)("circle",{cx:"227.79",cy:"227.79",r:"218.68",fill:"#fc541f"})]}),C_=e=>(0,pe.jsxs)("svg",{id:"liny",className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 99.06 344.34",children:[(0,pe.jsx)("title",{children:"Liny"}),(0,pe.jsx)("rect",{x:"-118.16",y:"123.93",width:"335.38",height:"96.48",rx:"16.06",ry:"16.06",transform:"translate(221.7 122.64) rotate(90)",fill:"#6c56eb"})]}),N_=e=>(0,pe.jsxs)("svg",{id:"screeny",className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 292.91 246.07",children:[(0,pe.jsx)("title",{children:"Screeny"}),(0,pe.jsx)("path",{fill:"#232323",fillRule:"evenodd",d:"M234.24,239.77C187,243.47,119.86,236.54,81,228.51c-15-3-23.57-5.27-35.47-8.77C29.65,215,17,205.66,11.83,183c-5.89-29.13-7.76-77.09-2.31-115.3C12.76,50.79,23,37.32,39.3,31.85,75.65,18.45,169,.31,241.39,6.54a44.35,44.35,0,0,1,39.45,36.8c1.6,9.23,2.88,19.51,3.81,30.43,3.59,42.06,2.46,90.4-4.71,127-5.77,26.93-17.2,36.71-45.7,39Z"})]}),f_=e=>(0,pe.jsxs)("svg",{className:e.className,id:"zee",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 863.62 150.07",children:[(0,pe.jsx)("title",{children:"Zee"}),(0,pe.jsx)("path",{d:"M364.44,138.52a31.8,31.8,0,0,1,2.31-47.27h0l36-27.77a.5.5,0,0,0-.3-.9L14,62.22a.51.51,0,0,1-.5-.5l-.16-59a.5.5,0,0,1,.5-.51l476.35.13A31.79,31.79,0,0,1,522,34.05a32,32,0,0,1-12.72,25.56l-35,27a.5.5,0,0,0,.3.9l375,.23a.5.5,0,0,1,.51.5l.16,59a.5.5,0,0,1-.5.51H386.09A31.64,31.64,0,0,1,364.44,138.52Z",fill:"#00a1ab"})]});const I_=()=>(0,pe.jsxs)("div",{className:"yu3Uy","data-soul":"SHAPES_BACKGROUND",children:[(0,pe.jsx)(T_,{className:"nE6d9"}),(0,pe.jsx)(C_,{className:"tLRvQ"}),(0,pe.jsx)(N_,{className:"yKVH3"}),(0,pe.jsx)(f_,{className:"CwnFL"})]});s.p;var w_="fzBAv";const O_=e=>(0,pe.jsx)("div",{className:(0,Ye.A)({[w_]:e.fadeOut},e.className),role:"img","aria-label":e.title,style:{backgroundImage:`url(${e.src})`}});const D_=e=>(0,pe.jsxs)("div",{className:"ctkdO",children:[(0,pe.jsxs)(S_,{className:"Q_iAr",horizontal:et,children:[(0,pe.jsxs)("div",{className:(0,Ye.A)("heII2",e.className),"data-soul":e.soul,children:[(0,pe.jsxs)("header",{className:"xYm97",children:[(0,pe.jsx)(b_,{className:"EZAEd"}),e.iconId&&(0,pe.jsx)("div",{className:"KB4lX",children:(0,pe.jsx)(ft,{className:"i6Qdq",id:e.iconId})}),(0,pe.jsx)("h1",{className:"h8P9M","data-soul":"AUTHENTICATION_PAGE_HEADING",children:e.title})]}),e.children]}),e.isLoading&&(0,pe.jsx)("div",{className:"Kpavw",children:(0,pe.jsx)(Ke,{centered:!0})})]}),!1,(0,pe.jsx)(I_,{})]}),R_="icons-eye-off",j_="icons-eye";var k_="BAVaG",P_="zQ0bK",L_="sKGiv";const M_=({className:e,error:t,fullWidth:s,inverse:n,kind:i,reference:r,soul:o,...a})=>(0,pe.jsx)("input",{className:(0,Ye.A)(e,"rmXuz",{[k_]:s,[P_]:n,[L_]:"outlined"===i}),"data-soul":o,ref:r,"aria-invalid":Boolean(t),...a}),U_="TEXT_FIELD",V_="bordered";var B_="bFLZ8",F_="EvEZX",H_="BlxFN",G_="M_9pV",q_="i9whJ",Y_="ogoRP";const W_=(0,Re.memo)(e=>{const{className:t,kind:s=e.kind||V_,label:n,reference:i,soul:r=e.soul||U_,wrapperClassName:o,...a}=e,{error:l}=a;return(0,pe.jsxs)("div",{className:(0,Ye.A)(o,{[B_]:s===V_,[F_]:l,[H_]:a.fullWidth,[G_]:a.inverse}),children:[(0,pe.jsx)(M_,{className:(0,Ye.A)(t,"iSKOW",{[q_]:s===V_}),placeholder:n,reference:i,soul:r,...a}),(0,pe.jsx)("label",{htmlFor:a.id,className:(0,Ye.A)("USE4T",{[Y_]:s===V_}),children:n}),l&&(0,pe.jsxs)("div",{className:"lbBqP",title:l,role:"alert","data-soul":"TEXT_FIELD_ERROR",children:[(0,pe.jsx)(ft,{className:"x5SDi",i
1d:wi}),l]})]})});var z_="xJpwi";const $_=e=>{const[t,s]=(0,Re.useState)(!1),n=e.kind||V_;return(0,pe.jsxs)("div",{className:(0,Ye.A)("KryOi",{[z_]:e.fullWidth}),children:[(0,pe.jsx)(W_,{id:e.id,className:"ekD0q",soul:e.soul||"PASSWORD_FIELD_INPUT",type:t?"text":"password",kind:n,name:e.name,onChange:e.onChange,label:e.label,autoComplete:e.autoComplete,reference:e.reference,error:e.error,inverse:e.inverse,required:!0,fullWidth:e.fullWidth}),(0,pe.jsx)(ln,{className:"UFbmj",onClick:()=>{s(!t)},soul:"PASSWORD_FIELD_SHOW","aria-pressed":t,"aria-controls":e.id,title:t?L():F(),icon:t?R_:j_,iconClassName:"s_HPY"})]})},K_="sso_canceled",Q_="subscription_required",Z_="invalid_locale",X_="invalid_credentials",J_="too_many_failed_login_attempts",eE="unknown_zuya_server_failure",tE="AUTHENTICATION_INPUT_USERNAME",sE=e=>t=>(Lo.A.remove(`${T}.isSignup`),(async e=>{try{const t=ge.couch_shopping?.options?.storage_key;if(!t)return;const s=JSON.parse(sessionStorage.getItem(t));if(!s)return;const{is_valid:n,is_assigned:i}=await ta.ky(s);n&&!i&&(await ta.z0({new_login:e,login_token:s}),sessionStorage.removeItem(t))}catch(e){(0,h.Cp)(e)}})(e.account.name),t(oa(e)));const nE=e=>(0,pe.jsx)(ln,{className:"dL0eC",contentClassName:"QQrzx",onClick:e.onClick,kind:dt,color:e.color||_t,soul:e.soul||"AUTHENTICATION_SUBMIT",text:e.text,submit:!0});I.forgot_password;const iE=()=>(0,pe.jsx)(qs,{className:"MegfG",to:Uc,soul:"LINK_FORGOT_PASSWORD",link:!0,children:x(96)});var rE,oE,aE="mdsYf";let lE=(oE=class extends Re.Component{onSubmit(e){e.preventDefault();const{currentTarget:t}=e;if(!t.checkValidity())return void t.reportValidity();const{props:s}=this,{dispatch:n}=s,i=new FormData(t),r={login:i.get("email").trim(),password:i.get("password")},o=Boolean(i.get("remember"));o&&(r.remember=o),s.onLoginStart(),n((e=>t=>ta.aJ({login:e.login,password:e.password,remember:!0,keep_lang:!ge.account_management?.enabled}).then(e=>t(sE(e))))(r)).then(s.onLoginFinished).catch(e=>{let t;switch(e?.code){case ua.VV:t=Z_;break;case ua.$1:t=X_;break;case ua.mm:t=Q_;break;case ua.uE:t=J_;break;case ua.YJ:t=eE;break;default:t={code:e.code,message:e.message,name:e.name,stack:e.stack,status:e.status}}s.onError(t)})}render(){return(0,pe.jsxs)("form",{onSubmit:this.onSubmit,"data-soul":"AUTHENTICATION_FORM",noValidate:!0,children:[(0,pe.jsx)("div",{className:aE,children:(0,pe.jsx)(W_,{id:"email",soul:tE,type:"text",name:"email",label:Tl(),autoComplete:"email",required:!0,fullWidth:!0})}),(0,pe.jsx)("div",{className:aE,children:(0,pe.jsx)($_,{id:"password",name:"password",label:x(108),autoComplete:"current-password",fullWidth:!0,soul:"AUTHENTICATION_INPUT_PASSWORD"})}),(0,pe.jsx)("div",{className:(0,Ye.A)(aE,"xY5xW"),children:(0,pe.jsx)(iE,{})}),(0,pe.jsx)("div",{className:(0,Ye.A)(aE,"BU64h"),children:(0,pe.jsx)(nE,{color:_t,text:x(123)})})]})}},oE.displayName="Credentials",rE=oE,(0,De.A)(rE.prototype,"onSubmit",[je],Object.getOwnPropertyDescriptor(rE.prototype,"onSubmit"),rE.prototype),rE);const cE=(0,l.Ng)()(lE);var dE=s(3849);const pE=ge.sso_amazon,uE=ge.sso_facebook,hE=ge.sso_google,mE="fbAsyncInit";class gE{constructor(e){this.providerId=dE.rt,this.territory=void 0,this.initPromise=void 0,this.territory=e}init(){return this.initPromise||(this.initPromise=this.loadFacebookAPI().then(()=>{FB.init({appId:uE.options.id,cookie:!0,version:"v10.0"})})),this.initPromise}login(){return new Promise((e,t)=>{FB.login(s=>{"connected"!==s.status?t(K_):e(s.authResponse.accessToken)},{scope:"email",return_scopes:!0})})}onLoginFinished(){FB.logout()}loadFacebookAPI(){return new Promise((e,t)=>{window[mE]=()=>{delete window[mE],e()},Ro({src:`https://connect.facebook.net/${this.territory}/sdk.js`,async:!0,autoblock:!1}).catch(t)})}}class yE{constructor(){this.providerId=dE.A8,this.initPromise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0,this.tokenClient=void 0}loadAuth2(){return Ro({src:"https://accounts.google.com/gsi/client",async:!0,autoblock:!1})}init(){return this.initPromise||(this.initPromise=this.loadAuth2().then(()=>{const{options:e}=hE;this.tokenClient=window.google.accounts.oauth2.initTokenClient({client_id:`${e.client}-${e.id}.apps.googleusercontent.com`,scope:"profile email",callback:e=>{this.resolvePromise(e.access_token)},error_callback:e=>{this.rejectPromise("popup_closed"===e.type?K_:e)}})})),this.initPromise}login(){return new Promise((e,t)=>
1{try{this.resolvePromise=e,this.rejectPromise=t,this.tokenClient.requestAccessToken()}catch(e){t(e)}})}static getInstance(){return this.instance_||(this.instance_=new yE),this.instance_}}yE.instance_=void 0;const _E="onAmazonLoginReady";class EE{constructor(){this.providerId=dE.RA,this.initPromise=void 0,this.popupCheckIntervalID=null,this.notifyClosedTimeoutID=null,this.originalWinOpen=window.open}init(){return this.initPromise||(this.initPromise=this.loadSdk()),this.initPromise}login(){return new Promise((e,t)=>{this.stopObservingPopup();const s={scope:"profile",response_type:"code",pkce:!0,popup:!0},n=s=>{const{error:n}=s;this.stopObservingPopup(),n?t(n):window.amazon.Login.retrieveToken(s.code,({access_token:t})=>{e(t)})};try{this.observeClosedPopup(()=>{t(K_)}),window.amazon.Login.authorize(s,n)}catch(e){this.stopObservingPopup(),t(e)}})}onLoginFinished(){window.amazon.Login.logout()}observeClosedPopup(e){window.open=(...t)=>{const s=this.originalWinOpen.apply(window,t);return window.open=this.originalWinOpen,s?(this.popupCheckIntervalID=setInterval(()=>{s.closed&&(this.stopObservingPopup(),this.notifyClosedTimeoutID=setTimeout(e,1e3))},100),s):null}}stopObservingPopup(){window.open=this.originalWinOpen,null!==this.popupCheckIntervalID&&(clearInterval(this.popupCheckIntervalID),this.popupCheckIntervalID=null),null!==this.notifyClosedTimeoutID&&(clearTimeout(this.notifyClosedTimeoutID),this.notifyClosedTimeoutID=null)}loadSdk(){return new Promise((e,t)=>{window[_E]=()=>{delete window[_E];try{const t=window.amazon.Login;t.setClientId(pE?.options.id),t.setRegion(t.Region.Europe),e()}catch(e){t(e)}},Ro({src:"https://assets.loginwithamazon.com/sdk/na/login1.js",autoblock:!1}).catch(t)})}static getInstance(){return this.instance||(this.instance=new EE),this.instance}}EE.instance=void 0;const vE=e=>(0,pe.jsx)(ln,{className:(0,Ye.A)("ngxac",e.className),title:e.title,onClick:e.onClick,soul:e.soul,disabled:e.disabled,contentClassName:"hWB2F",icon:e.iconID,iconClassName:"EfiJo",text:e.text,virtual:!0}),xE="CONSENT_MISSING",bE="ERRORED",AE="PENDING";var SE,TE;let CE=(TE=class extends Re.Component{constructor(...e){super(...e),this.state={status:this.props.consentStatus===Id?xE:AE}}isConsentGiven(){return this.props.consentStatus===fd}onLoginFinished(){const{props:e}=this;e.service.onLoginFinished?.(),e.onLoginFinished()}login(){const{props:e}=this,{service:t}=e,{providerId:s}=t;return e.onLoginStart(),t.login().then(t=>e.dispatch(((e,t)=>async s=>{const n=await ta.LQ({access_token:e,provider:t,remember:!0,keep_lang:!ge.account_management?.enabled}),i=await s(sE(n));return n.account.new&&window.location.replace(ge.redirect_new_sso_user.options.url),i})(t,s))).then(()=>{this.onLoginFinished()}).catch(t=>{t?"string"==typeof t&&t!==K_&&(t=new Error(`Failed to login with ${s} SSO: ${t}`)):t=new Error(`Unknown ${s} SSO error`),e.onError(t)})}initService(){const{service:e}=this.props;return e.init().then(()=>{this.setState({status:"READY"})}).catch(t=>{this.setState({status:bE});let s=t?.message||t;"string"!=typeof s&&(s="unknown"),t=new Error(`Failed to initialize ${e.providerId} SSO: ${s}`),Z(t)})}onLoginClick(){this.isConsentGiven()?this.login():this.props.onBlocked()}componentDidUpdate(e){e.consentStatus!==this.props.consentStatus&&(this.isConsentGiven()?this.initService():this.setState({status:xE}))}componentDidMount(){this.isConsentGiven()&&this.initService()}render(){const{props:e}=this,t=[AE,bE].includes(this.state.status);return(0,pe.jsx)(vE,{className:e.className,title:e.title,onClick:this.onLoginClick,soul:e.soul,iconID:e.iconID,text:e.text,disabled:t})}},TE.displayName="SSOProvider",SE=TE,(0,De.A)(SE.prototype,"onLoginClick",[je],Object.getOwnPropertyDescriptor(SE.prototype,"onLoginClick"),SE.prototype),SE);const NE=(0,l.Ng)()(CE);let fE;const IE=e=>{const t=(0,l.d4)(co),s=((e,t)=>`${e.toLowerCase()}_${t.toUpperCase()}`)(R(),t),n=(0,pe.jsx)(NE,{className:"gQJcL",title:vl(),text:vl(),service:EE.getInstance(),iconID:"icons-amazon",soul:"LOGIN_SSO_AMAZON",...e,onBlocked:()=>e.onBlocked(x(95))},dE.RA),i=(0,pe.jsx)(NE,{className:"O19Ly",title:Al(),text:Al(),service:yE.getInstance(),iconID:"icons-google",soul:"LOGIN_SSO_GOOGLE",...e,onBlocked:()=>e.onBlocked(x(105))},dE.A8),r=(fE||(fE=new gE(s)),(0,pe.jsx)(NE,{className:"nYYij",title:bl(),text:bl(),service:fE,iconID:"icons-facebook",soul:"LOGIN_SSO_FACEBOOK",...e,onBlocked:()=>e.onBlocked(x(103))},dE.rt)),o={[dE.rt]:r,[dE.RA]:n,[dE.A8]:i};return(0,pe.jsx)("section",{className:"_UeRc",children:["google","facebook","amazon"].map(e=>o[e])})};var wE,OE;let DE=(OE=class extends Re.Component{constructor(...e){super(...e),this.state={isLoading:!1}}handleError(e){switch(e){case Z_:$n({text:(t={tenantTitle:C}
1,x(98,t)),autoDismiss:!1,soul:"LOGIN_NOTIFICATION_INVALID_LOCALE"});break;case X_:Yn({text:x(101),soul:"LOGIN_NOTIFICATION_INVALID_CREDENTIALS_ERROR"});break;case J_:Yn({text:x(100),soul:"LOGIN_NOTIFICATION_TOO_MANY_FAILED_LOGIN_ATTEMPTS_ERROR"});break;case Q_:$n({text:x(99),autoDismiss:!1,soul:"LOGIN_NOTIFICATION_SUBSCRIPTION_REQUIRED_ERROR"});break;case"zero_touch":zn({text:x(433),soul:"LOGIN_NOTIFICATION_ZERO_TOUCH_ERROR"});break;case eE:Yn({text:x(76),soul:"LOGIN_UNKNOWN_ZUYA_SERVER_FAILURE"});break;case K_:break;default:Z(e),Yn({text:xl(),soul:"LOGIN_NOTIFICATION_UNKNOWN_ERROR"})}var t}onLoginStart(){this.setState({isLoading:!0})}onLoginComplete(e){Md(e),(()=>{const e=new CustomEvent(Hn);window.dispatchEvent(e)})();const{auth_redirect:t}=he.A.parse(this.props.landingLocationQuery);t&&location.replace(location.origin+t)}onLoginError(e,t){this.setState({isLoading:!1}),this.handleError(t),Md(e,t)}onBlocked(e){Yn({text:e,soul:"LOGIN_SSO_MISSING_CONSENT",unique:!0},{text:x(31),onConfirm:ko,autoClose:!0})}componentDidMount(){this.props.dispatch(E_({title:Sl(),description:x(192),canonical:location.href}))}componentWillUnmount(){this.props.dispatch({type:g_})}render(){const e=!this.props.noSignup&&I.register;return(0,pe.jsxs)(D_,{isLoading:this.state.isLoading,title:Sl(),soul:"AUTHENTICATION_LOGIN_PAGE",children:[(0,pe.jsx)(cE,{onLoginStart:this.onLoginStart,onLoginFinished:()=>this.onLoginComplete(Nd),onError:e=>this.onLoginError(Nd,e)}),void 0,(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)("div",{className:"gWQtz",children:x(122)}),(0,pe.jsx)(IE,{onLoginStart:this.onLoginStart,onLoginFinished:()=>this.onLoginComplete("sso"),onError:e=>this.onLoginError("sso",e),onBlocked:this.onBlocked,consentStatus:this.props.targetingCookiesStatus})]}),e&&(0,pe.jsxs)("div",{className:"wx_Mv","data-soul":"AUTHENTICATION_SIGNUP_SECTION",children:[(0,pe.jsx)("p",{className:"h7gRB",children:(t={title:C},x(118,t))}),(0,pe.jsx)(Rd,{})]}),!1]});var t}},OE.displayName="LoginPage",wE=OE,(0,De.A)(wE.prototype,"onLoginStart",[je],Object.getOwnPropertyDescriptor(wE.prototype,"onLoginStart"),wE.prototype),(0,De.A)(wE.prototype,"onLoginComplete",[je],Object.getOwnPropertyDescriptor(wE.prototype,"onLoginComplete"),wE.prototype),(0,De.A)(wE.prototype,"onLoginError",[je],Object.getOwnPropertyDescriptor(wE.prototype,"onLoginError"),wE.prototype),(0,De.A)(wE.prototype,"onBlocked",[je],Object.getOwnPropertyDescriptor(wE.prototype,"onBlocked"),wE.prototype),wE);const RE=(0,l.Ng)(e=>({landingLocationQuery:Va(e),queryParams:ka(e),targetingCookiesStatus:Od(e)}))(DE);class jE extends Re.Component{async redirect(){const e=this.getQuery(),{authorization_code:t}=await ta.Lc({client_id:e.client_id}),s=this.buildRedirectURL(t);window.location.replace(s)}getQuery(){return he.A.parse(this.props.location.search)}isQueryValid(){const e=this.getQuery();return Boolean(e.client_id&&e.redirect_uri)}buildRedirectURL(e){const t=this.getQuery(),s=he.A.stringify({code:e,state:t.state});return`${t.redirect_uri}?${s}`}componentDidMount(){this.isQueryValid()?this.props.isAuthenticated&&this.redirect():Yn({text:q(),soul:"OAUTH_NOTIFICATION_NOT_VALID_ERROR"})}componentDidUpdate(e){const{isAuthenticated:t}=this.props;t&&e.isAuthenticated!==t&&this.redirect()}render(){return!this.props.isAuthenticated&&this.isQueryValid()?(0,pe.jsx)(RE,{noSignup:!0}):(0,pe.jsx)(de.C5,{to:Ae})}}jE.displayName="OAuthLogin";const kE=(0,l.Ng)(e=>({isAuthenticated:Ne(e)}))(ue(jE)),PE=e=>(0,pe.jsx)(St,{title:x(418),text:x(193),image:e=>(0,pe.jsx)(en,{src:tn,height:200,width:200,...e}),primary:e.primary,soul:e.soul}),LE=()=>{const e=(0,l.wA)();return(0,Re.useEffect)(()=>{e(E_({title:x(196),description:x(195)}))},[e]),(0,pe.jsx)(PE,{soul:"NOT_FOUND_PAGE",primary:e=>(0,pe.jsx)(qs,{...e,soul:"NOT_FOUND_LINK_TO_HOME",to:qc,kind:dt,color:_t,children:x(194)})})},ME=e=>(0,pe.jsx)(qs,{...e,to:Ae,soul:"LINK_BACK",children:x(107)});var UE,VE,BE="yTGsd",FE="iTDBU",HE="NL5Tb",GE="ZOVq6";const qE="email";let YE=(VE=class extends Re.Component{constructor(...e){super(...e),this.state={email:null,isLoading:!1,sent:!1}}onSubmit(e){e.preventDefault();const{currentTarget:t}=e;if(!t.checkValidity())return void t.reportValidity();const s={login:new FormData(t).get(qE).trim()};this.setState({isLoading:!0,email:s.login}),ta.HB(s).then(()=>{this.setState({sent:!0,isLoading:!1})}).catch(e=>{Z(e),Yn({text:xl(),autoDismiss:!1,soul:"RECOVERY_NOTIFICATION_UNKNOWN_ERROR"}),this.setState({isLoading:!1})})}componentDidMount(){this.props.dispatch(E_({title:Nl(),canonical:location.href}))}render(){const{state:e}=this,{sent:t}=e,s=t?"icons-share-email":void 0,n=t?x(116):Nl();return(0,pe.jsx)(D_,{className:"FpRkQ",iconId:s,isLoading:e.isLoading,soul:t?"AUTHENTICATION_RECOVERY_SUCCESS_PAGE":"AUTHENTICATION_RECOVERY_REQUEST_PAGE",title:n,children:t?(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)("p",{className:GE,children:(0,pe.jsx)(ga,{text:(i={email:ha},x(112,i)),children:(0,pe.jsx)("strong",{className:"hyR7e",children:e.email})})}),(0,pe.jsx)(ME,{className:(0,Ye.A)(BE,"gKmej"),contentClassName:FE,color:_t,kind:dt}),(0,pe.jsx)("p",{className:"w0XNd",children:(0,pe.jsx)(ga,{text:Cl({link:ha}),children:(0,pe.jsx)(qs,{soul:"LINK_CUSTOMER_SUPPORT",href:`mailto:${w.support}?subject=FORGOT%20PASSWORD`,target:"_blank",rel:"noopener",link:!0,children:x(114)})})})]}):(0,pe.jsxs)("form",{onSubmit:this.onSubmit,noValidate:!0,children:[(0,pe.jsx)("p",{className:GE,children:x(110)}),(0,pe.jsx)("div",{className:HE,children:(0,pe.jsx)(W_,{id:qE,soul:tE,type:"email",name:"email",label:Tl(),autoComplete:"off",required:!0,fullWidth:!0})}),(0,pe.jsx)("div",{className:(0,Ye.A)(HE,"lxfTb"),children:(0,pe.jsx)(nE,{text:
1x(111)})}),(0,pe.jsx)(ME,{className:BE,contentClassName:FE,link:!0})]})});var i}},VE.displayName="Recovery",UE=VE,(0,De.A)(UE.prototype,"onSubmit",[je],Object.getOwnPropertyDescriptor(UE.prototype,"onSubmit"),UE.prototype),UE);const WE=(0,l.Ng)()(YE),zE=()=>(e,t)=>{e(Ga(ip(t())))},$E="token";var KE,QE,ZE="x2R48";const XE="new_password",JE="new_password_confirm";let ev=(QE=class extends Re.Component{constructor(...e){super(...e),this.state={isLoading:!1,newPasswordConfirmError:null,erroredOnce:!1,expired:!1},this.newPasswordInputRef=(0,Re.createRef)()}onSubmit(e){e.preventDefault();const{currentTarget:t}=e;if(!t.checkValidity())return void t.reportValidity();const{props:s}=this,{queryParams:n}=s,i=new FormData(t),r=i.get(XE),o=i.get(JE);r&&o&&r!==o?this.setState({erroredOnce:!0,newPasswordConfirmError:fl()}):(this.setState({isLoading:!0}),ta.ec({token:n[$E],pid:n.pid,key:n.key,new_password:r,new_password_confirm:o}).then(()=>{s.dispatch((e,t)=>{e(qa(ip(t())))}),Wn({text:x(5),autoDismiss:!1,soul:"RESET_NOTIFICATION_SUCCESS"})}).catch(e=>{switch(this.setState({isLoading:!1}),Z(e),e.code){case ua.$1:return void this.setState({expired:!0});case ua.yd:return void Yn({text:e.response.errors?.new_password_confirm||xl(),autoDismiss:!1,soul:"RESET_NOTIFICATION_NEW_PASSWORD_CONFIRM_ERROR"});default:Yn({text:xl(),autoDismiss:!1,soul:"RESET_NOTIFICATION_UNKNOWN_ERROR"})}}))}onConfirmInputChange(e){const t=e.target.value===this.newPasswordInputRef.current.value,{newPasswordConfirmError:s}=this.state;s&&t?this.setState({newPasswordConfirmError:null}):!this.state.erroredOnce||s||t||this.setState({newPasswordConfirmError:fl()})}componentDidMount(){const{props:e}=this,{queryParams:t}=e;t[$E]&&t.pid&&t.key||e.dispatch(zE()),e.dispatch(E_({title:sl(),canonical:location.href}))}render(){const{state:e}=this;return(0,pe.jsxs)(D_,{className:"ejnWn",title:sl(),isLoading:e.isLoading,soul:e.expired?"AUTHENTICATION_RESET_EXPIRED_PAGE":"AUTHENTICATION_RESET_SUBMIT_PAGE",children:[e.expired&&(0,pe.jsx)("p",{className:"QkkLC",children:(0,pe.jsx)(ga,{text:(t={link:ha},x(2,t)),children:(0,pe.jsx)(qs,{to:Uc,soul:"LINK_RECOVERY",link:!0,children:x(3)})})}),!e.expired&&(0,pe.jsxs)("form",{onSubmit:this.onSubmit,noValidate:!0,children:[(0,pe.jsx)("div",{className:ZE,children:(0,pe.jsx)($_,{id:XE,name:XE,label:x(119),soul:"RESET_CONTROL_NEW_PASSWORD",reference:this.newPasswordInputRef,autoComplete:"new-password",fullWidth:!0})}),(0,pe.jsx)("div",{className:ZE,children:(0,pe.jsx)($_,{id:JE,name:JE,onChange:this.onConfirmInputChange,label:x(120),soul:"RESET_CONTROL_CONFIRM_PASSWORD",error:e.newPasswordConfirmError,autoComplete:"new-password",fullWidth:!0})}),(0,pe.jsx)("div",{className:(0,Ye.A)(ZE,"XI28I"),children:(0,pe.jsx)(nE,{text:x(4)})})]})]});var t}},QE.displayName="Reset",KE=QE,(0,De.A)(KE.prototype,"onSubmit",[je],Object.getOwnPropertyDescriptor(KE.prototype,"onSubmit"),KE.prototype),(0,De.A)(KE.prototype,"onConfirmInputChange",[je],Object.getOwnPropertyDescriptor(KE.prototype,"onConfirmInputChange"),KE.prototype),KE);const tv=(0,l.Ng)(e=>({queryParams:ka(e)}))(ev);var sv="YYUVB";const nv=e=>e.highlighter.portal,iv=e=>e.highlighter.exist,rv="HIGHLIGHTER_SET",ov="HIGHLIGHTER_PORTAL_SET",av=e=>({type:rv,exist:e}),lv="HIGHLIGHTER_PORTAL",cv=()=>{const e=(0,l.wA)(),t=(0,l.d4)(iv),s=(0,l.d4)(nv);return(0,Re.useEffect)(()=>{s!==t&&(e((e=>({type:ov,exist:e}))(t)),t?document.body.classList.add(sv):document.body.classList.remove(sv))},[t]),t?(0,pe.jsx)("aside",{id:lv}):null},dv=()=>{const e=(0,l.d4)(po);return(0,Re.useEffect)(()=>{if(!e)return;let t="/manifest.json";e!==f.default_locale&&(t=`/manifest-${e}.json`);const s=document.querySelector("link[rel='manifest']");s.getAttribute("href")!==t&&s.setAttribute("href",t)},[e]),null};const pv=e=>(0,pe.jsx)("h1",{className:(0,Ye.A)("TYe7G",e.className),"data-soul":"HEADER_TITLE",children:(0,pe.jsx)("span",{className:"akcfl",children:e.title})});var uv="YfeIj",hv="T4Cv1";const mv="LEFT",gv="RIGHT",yv=e=>(0,pe.jsx)("div",{className:(0,Ye.A)("amY4V",e.className,{[uv]:e.side===mv,[hv]:e.side===gv}),children:e.children}),_v=e=>(0,pe.jsx)("header",{className:(0,Ye.A)("hEW48",e.className),"data-soul":"HEADER",children:e.children});class Ev extends Re.PureComponent{constructor(...e){super(...e),this.state={isLoading:!0},this.reference=(0,Re.createRef)(),this.getOverlayContainer=()=>document.getElementById("zl-container"),this.injectZenloopOverlay=()=>{const{locale:e}=this.props,t=ge.nps.options.urls[e];return go({src:t,id:"zl-website-overlay-loader"}).then(()=>{window.Zenloop=window.Zenloop||{},window.Zenloop.recipient={identity:this.props.publicId,identity_type:"custom"};const e=this.getOverlayContainer();this.reference.current.appendChild(e),e.setAttribute("data-soul","NPS_SURVEY_CONTAINER")})},this.showSurvey=()=>{this.injectZenloopOverlay().then(()=>{this.setState({isLoading:!1})}).catch(e=>{Z(e),location.pathname=qc})}}componentDidMount(){this.showSurvey()}render(){return(0,pe.jsxs)("div",{className:"eLLO2",ref:this.reference,children:[(0,pe.jsx)(b_,{className:"uNFkR"}),this.state.isLoading&&(0,pe.jsx)(Ke,{className:"BYvrN",centered:!0,delayed:!0})]})}}(0,l.Ng)(e=>({locale:po(e),publicId:Ie(e)}))(Ev);const vv=()=>((0,Re.useEffect)(()=>{ra()},[]),(0,pe.jsx)(de.C5,{to:Uc})),xv="/logout",bv="utm_source",Av=new URLSearchParams(location.search).get(bv),Sv=`/account${Av?`?${bv}=${Av}`:""}`,Tv=(e,t)=>
1!(!e||!t)&&t.some(t=>e.startsWith(t)),Cv=[Ae,xv,Vc,Uc],Nv=[Sv,...Object.values(ye).reduce((e,t)=>(t.auth_redirect&&e.push(t.path),e),[])],fv=["/live","/program","/ondemand/videos"],Iv=()=>{const e=(0,l.d4)(Ma),t=document.referrer&&new URL(document.referrer),s=t&&t.origin===location.origin,{path:n,query:i}=e;return!(e=>{try{return new URL(e,location.origin).pathname===e}catch{return!1}})(n)||Tv(n,Cv)?(0,pe.jsx)(de.C5,{to:qc,replace:!0}):s&&Tv(t.pathname,fv)?(0,pe.jsx)(de.C5,{to:t.pathname,replace:!0}):s&&Tv(t.pathname,Nv)?(window.location.replace(document.referrer+i),null):(0,pe.jsx)(de.C5,{to:n+i,replace:!0})},wv=e=>e/10+"rem",Ov=(e,t)=>e/t*100+"%",Dv="icons-arrow-thin-left",Rv=560,jv="WINDOW_CLOSED",kv="WINDOW_OPENED",Pv=(e,t)=>(s,n)=>{const i=n(),r=up(i),o=((e,t)=>{const s=up(e);return!s||s.pathname===Oa(e)&&(!t||(0,dp.A)(he.A.parse(s.search),he.A.parse(Pa(e))))})(i,t);s(Ga(o?e:{path:r?.pathname,queryParams:r?.search})),s({type:jv})};const Lv=()=>window.innerWidth<=Rv,Mv=e=>{const t=(0,l.wA)(),[s,n]=(0,Re.useState)(Lv());(0,Re.useEffect)(()=>{var s;return t((s=e.originLocation,{type:kv,originLocation:s})),()=>{t((e,t)=>{pp(t())&&e({type:jv})})}},[]),(0,Re.useEffect)(()=>{const e=()=>{n(Lv())};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]);const i=()=>{t(Pv(e.homePath,e.validateQuery))},r=s?Dv:Tt;return(0,pe.jsx)(Hr,{className:"gFNB0",onClick:i,children:(0,pe.jsxs)(Ir,{style:{"--content_width":wv(Rv)},className:(0,Ye.A)("TeMTI",Rr),"data-soul":"WINDOW","data-scroll-area":!0,children:[(0,pe.jsx)(ln,{className:"uxmNr",onClick:i,title:x(440),soul:"WINDOW_CONTROL_CLOSE",icon:r,iconClassName:"FlwX2",tap:!0}),e.children,(0,pe.jsx)(Cr,{exclusive:!0,keyMap:{[sr]:i}})]})})},Uv=e=>e.hasWindow||e.originLocation===e.location?(0,pe.jsx)(Mv,{originLocation:e.originLocation,homePath:e.homePath,children:e.children}):null,Vv=e=>Boolean($d(e)),Bv=e=>l_(e)&&(e=>we(e)?.includes("free"))(e)&&rd(e)===Bc&&qy(e)&&!_d(e),Fv="movie_id",Hv="series_id",Gv="season_id",qv="episode_id",Yv="term_token",Wv="/live",zv=e=>`${Wv}/${e}`,$v=`${Wv}/:cda`,Kv="/watch",Qv=(e,t)=>`${Kv}/${e}/${t}`,Zv=`${Kv}/:cda/:pid`,Xv="/recording",Jv=e=>`${Xv}/${e}`,ex=`${Xv}/:rid`,tx="/vod/movies",sx="/vod/series",nx=`${tx}/:${Fv}/:${Yv}`,ix=`${sx}/:${Hv}/:${Gv}/:${qv}/:${Yv}`,rx=(e,t)=>`${tx}/${e}/${t}`,ox=e=>`${sx}/${e.series_id}/${e.season_id}/${e.episode_id}/${e.term_token}`,ax="/program/:cda/:id",lx=(e,t)=>t?`/program/${e}/${t}`:null,cx="request",dx="/search",px=`${dx}/:${cx}`,ux=e=>{const t=he.A.parse(location.search);return{pathname:`/search/${encodeURIComponent(e)}`,query:t}},hx=e=>e&&e.startsWith(dx),mx="tv_series_id",gx="season",yx=`/series/:cda/:${mx}/:${gx}?`,_x=(e,t,s)=>{const n=`/series/${t}/${e}`;return s?`${n}/${s}`:n},Ex="/vod/movies/:id",vx=e=>e?`/vod/movies/${e}`:null,xx=`/vod/movies/:${Fv}/watch`,bx=`/vod/series/:${Hv}/:${Gv}/:${qv}/watch`,Ax="series_id",Sx="season_id",Tx="episode_id",Cx=`/vod/series/:${Ax}/:${Sx}?/:${Tx}?`,Nx=(e,t)=>`/vod/series/${e}/${t}`,fx="CAST_SDK_REQUESTED",Ix="CAST_SDK_STATUS_CHANGED",wx="CAST_STATUS_CHANGED",Ox="CAST_INTRO_CLOSED",Dx="CAST_SESSION_REQUESTED",Rx="CAST_SESSION_STATUS_CHANGED",jx="CAST_SESSION_ON",kx="CAST_SESSION_OFF",Px="CAST_AUDIO_TRACK_REQUESTED",Lx="CAST_LOAD_REQUESTED",Mx="CAST_PAUSE_REQUESTED",Ux="CAST_PLAY_REQUESTED",Vx="CAST_SEEK_REQUESTED",Bx="CAST_STOP_REQUESTED",Fx="CAST_SUBTITLES_TRACK_REQUESTED",Hx="CAST_RECEIVER_STATUS_CHANGED",Gx="CAST_RECEIVER_VOLUME_CHANGED",qx="CAST_VOLUME_CHANGE_REQUESTED",Yx="CAST_VOLUME_MUTE_CHANGE_REQUESTED",Wx="CAST_CURRENT_TIME_CHANGED",zx="CAST_DURATION_CHANGED",$x="CAST_CUE_POINTS_SET",Kx="CAST_STREAMS_SYNC_STATUS_CHANGED",Qx="CAST_VIDEO_ENDED",Zx=e=>({type:Ix,status:e}),Xx="CAST_ENVIRONMENT",Jx={...ge.chromecast?.options.cast_id||{},dynamic:"62BAEA3E"},eb=ae(Xx)||Jx.live;class tb extends Re.PureComponent{componentDidMount(){const{props:e}=this;e.isSDKRequested||e.dispatch({type:fx,receiverApplicationId:eb})}render(){return null}}tb.displayName="Cast";const sb=(0,l.Ng)(e=>({isSDKRequested:Eg(e)}))(tb);var nb=s(1269),ib=s(1538);const rb=6*Vt.pO,ob=()=>{const e=new Date;return e.setSeconds(0,0),e.setMinutes(120*Math.floor(e.getMinutes()/120)),(0,Vt.rv)(e.getTime())};const ab=e=>{const t={};return Object.keys(e).forEach(s=>{const n=e[s],i=n.filter((e,t)=>
1{const s=n[t-1];return!s||e.s>=s.e});t[s]=i}),t},lb=e=>e.epg.block.map,cb=(()=>{let e;return()=>(e||(e={bo:null,id:null,s:null,e:null,et:null,i:null,g:null,t:x(61),ser_e:null,r_e:null,e_no:null,s_no:null,cc:[]}),e)})(),db=e=>Vt.v9(e.s,e.e,{excludeEnd:!0}),pb=e=>Vt.zg(e.s),ub=(e=[])=>t=>e.find(t)||cb(),hb=e=>ub(e)(db),mb=e=>ub(e)(pb),gb=e=>{const t={},s=Object.keys(e);return n=>{for(let i=0;i<s.length;i++){const r=s[i];t[r]=n(e[r])}return t}},yb=e=>gb(e)(hb),_b=e=>gb(e)(mb),Eb="EPG_LINEUP_MAPS_UPDATED";let vb=null,xb=null;const bb=()=>(e,t)=>{const s=lb(t());e({type:Eb,live:yb(s),upcoming:_b(s)})},Ab=()=>{xb&&(clearInterval(xb),xb=null),vb=null},Sb="EPG_BLOCK_UPDATE_STARTED",Tb="EPG_BLOCK_UPDATE_STOPPED",Cb="EPG_BLOCK_UPDATED",Nb=()=>(e,t)=>{const s=t(),n=ob(),i=(e=>e+rb)(n);return nb.th({start:n,end:i,luhash:ho(s)}).then(t=>{const s=ab(t.channels);return e({type:Cb,channels:s,start:n,end:i}),e(bb()),t})},fb=()=>(e,t)=>{const s=(e=>e.epg.block.timeoutID)(t());s&&(clearTimeout(s),e({type:Tb}))},Ib=()=>(e,t)=>{e(fb());const s=(e=>e.epg.block.start)(t()),n=setTimeout(()=>{e(Nb()).then(()=>{e(Ib())})},(e=>{let t=ob();if(e!==t)return 0;const s=Date.now();return t+=(0,Vt.H8)(120),t*=1e3,t+=(0,Vt.vO)((0,ib.A)(15,60)),t-s})(s));e({type:Sb,timeoutID:n})},wb=()=>e=>{e(Ib()),e(e=>{Ab(),vb=()=>e(bb()),xb=setInterval(vb,6e4)})};var Ob=s(3634);const Db="METADATA_CONFIG_RECEIVED";var Rb=s(493),jb=s(2664);const kb=(0,Rb.zD)("vod/subscriptions/pullSubscriptions",jb.C1),Pb=(0,Rb.zD)("vod/status/pullContent",jb.KJ),Lb=(0,Rb.zD)("vod/watchList/updateVODWatchlist",jb.TA),Mb=(0,Rb.zD)("vod/watchList/addToVODWatchlist",e=>jb.e4(e)),Ub=(0,Rb.zD)("vod/watchList/removeFromVODWatchlist",e=>jb.AO(e)),Vb=(0,Rb.zD)("vod/init",async(e,{dispatch:t})=>{await Promise.all([t(Pb()),t(kb()),t(Lb())])}),Bb="EPG_STATUS_RECEIVED",Fb="EPG_POSITION_UPDATED",Hb=e=>Object.entries(e).reduce((e,[t,s])=>(e[t]={...s,position:Vt.tM(s.position),last_streamed_at:Vt.tM(s.last_streamed_at)},e),{});var Gb=s(173);var qb=s(4903);const Yb="LIB_CHANNELS_RECEIVED",Wb="LIB_CHANNELS_FAVORITES_UPDATED",zb="LIB_CHANNELS_FAVORITES_OPTIMISTICALLY_UPDATED";const $b=(e,t)=>t.reduce((t,s)=>{const n=e[s];return n&&t.push(n),t},[]),Kb=(e,t)=>{const s=(0,qb.A)(e,"cid");return $b(s,t)},Qb=(e,t=!1)=>async(s,n)=>{const i=Kb(Dp(n()),e);t||await Gb.DP({cids:e}),s({type:t?zb:Wb,favoritesCID:e,favoriteVisibleChannels:i})};var Zb=s(5763),Xb=s(665);const Jb=[bp.Hh,bp.og,bp.$2,bp.eO,bp.OO],eA=["all","favorites"],tA=e=>{return{...e,qualities:(t=e.qualities,t.slice().sort((e,t)=>{const s=Jb.indexOf(e.availability),n=Jb.indexOf(t.availability);return s===n?Ih.indexOf(t.level)-Ih.indexOf(e.level):n-s}))};var t},sA=e=>{const t=e.qualities.map(e=>({availability:e.availability,drm_required:e.drm_required,level:e.level,logo_token:e.logo_token,title:e.title}));return{alias_cids:e.aliases,cid:e.cid,group_ids:[],is_gt12_bv:e.is_gt12_bv,is_radio:e.is_radio,number:e.number,qualities:t,recording:e.recording,title:e.title,url_cid:e.display_alias}},nA="NPVR_PLAYLIST_RECEIVED",iA="NPVR_RECORD_ADDED",rA="NPVR_RECORD_RESTORED",oA="NPVR_RECORD_REMOVED",aA="NVPR_RECORD_FORCE_REQUESTED",lA="NVPR_SERIES_RECORD_FORCE_REQUESTED",cA="NPVR_REMOVE_REQUESTED",dA="NPVR_REMOVE_COMPLETED",pA="NPVR_ADD_REQUESTED",uA="NPVR_ADD_COMPLETED",hA="icons-record-remove",mA="icons-record",gA="icons-record-series-active",yA="icons-record-series",_A=e=>!e||Np(e)&&!wp(e),EA=(e,t={})=>{const s=t.link||Ee();io(s?{messages:[e],job:{callback(){window.open(s,"_blank")},text:t.jobText||x(131)}}:{messages:[e],job:{text:t.jobText||ol()},options:{primaryOnly:!0}})},vA=e=>{as({action:"upgrade_click",category:Wt(),label:e})},xA="record",bA="unrecord",AA="illegal",SA="upgrade",TA=e=>{const t=e&&e.expiration;return!!t&&(0,Vt.sJ)((0,Vt.tM)(t))},CA=(e,t)=>t?`${e} - ${t}`:e,NA=(e,t)=>e<t,fA=e=>e>(0,Vt.hY)(),IA=(e,t)=>`${e}-${t}`,wA=e=>{const{program:t}=e;if(!t)return null;const{recordingSeriesEligible:s,rid:n}=e,i=t.ts_id&&t.ser_e;if(s&&i){if(n)return{disabled:!1,iconId:hA,kind:bA,text:x(163)};if(_A(e.channel)||!t.s||!t.e)return null;if(NA(e.recordingEarliestStartTime,t.e)&&fA(t.rg_u))return{disabled:!1,iconId:mA,kind:xA,text:x(162)}}return(e=>{const{rid:t}=e;if(t)return{disabled:!1,iconId:hA,kind:bA,text:x(152)};const{program:s}=e;if(!s.e||_A(e.channel))return null;const{recordingSubscribable:n}=e;return NA(e.recordingEarliestStartTime,s.e)||n?n?fA(s.rg_u)?{disabled:!0,iconId:mA,kind:SA,text:Hl()}:null:fA(s.rg_u)?{disabled:!1,iconId:mA,kind:xA,text:Hl()}:{disabled:!0,iconId:mA,kind:AA,text:Hl()}:null})(e)},OA=e=>{const{channel:t,series:s}=e;if(!t)return null;if(s&&s.cid===t.cid)return{text:x(166),iconId:gA,kind:bA};if(!e.recordingSeriesEligible)return null;const{program:n}=e;return n&&n.ser_e&&n.ts_id&&!_A(e.channel)?{text:x(165),iconId:yA,kind:xA}:null},DA=e=>({iconId:e?gA:yA,text:e?x(227):Hl()}),RA=e=>{EA({title:x(153),text:Gl({title:e})})},jA=()=>{bi({text:x(216),soul:"NPVR_TOAST_RECORDINGS_ILLEGAL"})};const kA=()=>async e=>{const t=await(0,Zb.Do)(),s=t.channels?.map(sA)||[],n={},i={},r={};
1Array.isArray(t.recordings)&&t.recordings.forEach(e=>{const{id:t}=e;if(n[t]=e,i[e.program_id]=t,e.tv_series_id){const s=IA(e.cid,e.tv_series_id),n=r[s];Array.isArray(n)?n.push(t):r[s]=[t]}});const o={};return Array.isArray(t.recorded_tv_series)&&t.recorded_tv_series.forEach(e=>{o[IA(e.cid,e.tv_series_id)]=e}),e({type:nA,duration:t.playlist_duration,map:n,pidrid:i,seriesRecords:r,seriesMap:o,channels:s})},PA="CONNECTED_CONTENT_STORED";var LA=s(3763);const MA={externalEnabled:!0,vodEnabled:!0},UA=(e,t=MA)=>{const s=e.cc?.[0]?.content_type;return!!s&&(!(!t.vodEnabled||LA.nl!==s&&LA.CC!==s)||!(!t.externalEnabled||LA.uM!==s))},VA=e=>t=>nb.w7({pghash:e}).then(e=>t((e=>({type:PA,map:e}))((e=>{if(!e?.connected_contents)return null;const t={};return Object.entries(e.connected_contents).forEach(([e,s])=>{t[e]=s.reduce((e,t)=>(e[t]=!0,e),{})}),t})(e)))).catch(e=>{Z(e)}),BA=()=>(e,t)=>{const s=t(),n=[e(async(e,t)=>{const s=t(),n=uo(s),[i,{favorites:r}]=await Promise.all([Gb.x({pghash:n}),Gb.qM()]);return{...i,favoritesCID:r}}),e(Nb()),e(async e=>{try{const{broadcast_states:t}=await nb.eG();e({type:Bb,broadcast_states:Hb(t)})}catch(e){Z(e)}}
1),e(VA(uo(s)))],i=[];if(yh(s)&&i.push(e(kA())),mh(s)){const t=e;i.push(t(Vb()))}return Promise.all([...n,...i]).then(([s])=>{const n=(e=>e.npvr.channels.collection)(t());e(((e,t=[])=>{const s=e.channels.slice();if(t.length){const e=(0,qb.A)(s,"cid");t.forEach(t=>{e[t.cid]||s.push(t)})}return{type:Yb,...e,channels:s}})(s,n)),e(wb()),e(e=>Ob.E().then(({rating_sources:t})=>{e({type:Db,rating_sources:t})}))})},FA=e=>{const[t,s]=(0,Re.useState)(!1),[n,i]=(0,Re.useState)(null),r=(0,l.wA)();if((0,Re.useEffect)(()=>(r(BA()).then(()=>{s(!0)}).catch(e=>{e||(e=new Error("Unknown error when loading essential app data")),i(e)}),()=>{r(e=>{Ab(),e(fb())})}),[r]),n)throw n;return t?(0,pe.jsx)(pe.Fragment,{children:e.children}):(0,pe.jsx)(Ke,{centered:!0,delayed:!0})},HA=e=>e.code===ua.DI,GA=e=>e.code===ua.L0,qA=e=>e.code===ua.K8,YA=e=>e.code===ua.i1,WA=e=>HA(e)||qA(e)||YA(e)||GA(e);const zA=e=>(0,pe.jsx)(Hr,{className:"T1tVB",onClick:()=>{e.preventBackdropClose||e.onHide()},children:(0,pe.jsxs)(Ir,{"aria-modal":"true",className:(0,Ye.A)("WBcfV","q66S9",e.classname),style:{"--content_width":wv(650)},children:[(0,pe.jsxs)("div",{className:"tS8o2","data-soul":e.soul,children:[(0,pe.jsx)(Ci,{className:"eCpfr",iconClassName:"PyfrW",onClick:e.onHide,tap:!0,soul:"MODAL_CLOSE_CONTROL"}),e.children]}),(0,pe.jsx)(Cr,{exclusive:!0,keyMap:{[sr]:e.onHide}})]})}),$A="movies",KA="program",QA="series",ZA=e=>e===rh.nl?$A:QA,XA=(0,Rb.Z0)({name:"vod/status",initialState:{},reducers:{updateVODStatusContentItem:(e,t)=>{const{item:s,teasableId:n,teasableType:i}=t.payload;e[i]||(e[i]={}),e[i][n]={...e[i][n],...s}}},extraReducers:e=>{e.addCase(Pb.fulfilled,(e,t)=>t.payload)}}),{updateVODStatusContentItem:JA}=XA.actions,eS=e=>e.code===ua.yO,tS=e=>e.code===ua.xi,sS="vodMovie",nS="vodTrailer",iS="vodEpisode",rS=(e,t=ss)=>{as({action:e,category:"watch",label:t})},oS=(e,t)=>e===rh.My?`Season_${t}`:e===rh.Uh?`Episode_${t}`:`Movie_${t}`,aS=(e,t,s)=>{as({action:"startVodOrder",category:"order",label:oS(e,t),value:s})},lS=(e,t=ss)=>{as({action:e,category:"bookmark",label:t})},cS="QUALITY_SELECTION",dS="PROCESSING_ORDER",pS=e=>mh(e)?e.vod.order:null,uS=e=>pS(e)?.active,hS=e=>pS(e)?.title,mS=e=>pS(e)?.brand,gS=e=>pS(e)?.imageToken,yS=e=>pS(e)?.teasableId,_S=e=>pS(e)?.teasableType,ES=e=>pS(e)?.selectedTerm,vS=e=>pS(e)?.termsCatalog,xS=e=>pS(e)?.termsCatalog?.vod_type,bS=e=>(0,Mu.A)(ES(e))?(e=>pS(e)?.processing)(e)?dS:null:cS,AS="VOD_ORDER_MODAL_ACTIVATED",SS="VOD_ORDER_MODAL_DEACTIVATED",TS="VOD_ORDER_QUALITY_SELECTED",CS="VOD_ORDER_STARTED",NS=e=>t=>{t({type:AS,data:e}),Un({type:"VOD_PURCHASE_BUTTON",content_id:e.teasableId,content_id_type:e.contentIdType,purchase_type:e.purchaseType})},fS=()=>({type:SS}),IS=(e,t={})=>async(s,n)=>{const i=s,r=n(),o=yS(r),a=_S(r),l=xS(r);s({type:CS});try{const n=await jb.fN({teasable_id:o,teasable_type:a,term_token:e,...t.pin&&{pin:t.pin},...t.confirmed&&{confirmed:t.confirmed},...t.campaign_token&&{campaign_token:t.campaign_token}});if(s(fS()),i(JA({item:n,teasableId:o,teasableType:a})),a===rh.My&&await i(Pb()),l===Ch.sd){const{rental_period_in_seconds:e}=n,t=e>Vt.hZ?Nc:fc;Wn({text:t({title:n.title,quality:n.quality,rentalPeriod:e>Vt.hZ?(0,Vt.a)(e):(0,Vt.Sr)(e)}),soul:"VOD_NOTIFICATION_RENT_SUCCESS"})}else Wn({text:(c={title:n.title,quality:n.quality},x(348,c)),soul:"VOD_NOTIFICATION_BUY_SUCCESS"});Un({type:"VOD_PURCHASE_COMPLETE",content_id:n.teasable_id,content_id_type:ZA(n.teasable_type),term_token:e})}catch(e){const t=e;if(WA(t)||eS(t)||tS(t))throw t;s(fS());const n=(e=>e.code===ua.mj)(t);if(n||(e=>e.code===ua.O4)(t))return void(e=>{const t=e?{text:x(342),soul:"VOD_MODAL_PURCHASE_BLOCKED"}:{text:x(343),soul:"VOD_MODAL_PURCHASE_LIMITED"};io({messages:[{title:x(345),...t,textAlign:Dr}],options:{primaryOnly:!0},job:{text:x(344)}})})(n);if((e=>e.code===ua.zQ)(t))return void Yn({text:x(341),soul:"VOD_NOTIFICATION_CAMPAIGN_EXPIRED"});Z(t),l===Ch.sd?Yn({text:x(359),soul:"VOD_NOTIFICATION_RENT_ERROR"}):Yn({text:x(347),soul:"VOD_NOTIFICATION_BUY_ERROR"})}finally{((e,t)=>{as({action:"completeVodOrder",category:"order",label:oS(e,t)})})(a,l)}var c};var wS="I9QMn",OS="U0yWu",DS=s(3157);const RS="icons-shield",jS="icons-locked",kS=(e,t)=>{if(!(0,Mu.A)(e))return null;const s=e<0?t:"",n=Math.abs(e),i=(0,Vt.Sr)(n),r=i?`${i}:`:"",o=(0,Vt.xY)(n-3600*i),a=(0,Vt.nY)(n);return`${s}${r}${(0,Vt.mh)(o)}:${(0,Vt.mh)(a)}`};const PS=e=>(0,pe.jsxs)("svg",{viewBox:"0 0 36 36",className:(0,Ye.A)("l2CGq",e.className),"aria-hidden":!0,
1children:[(0,pe.jsx)("path",{className:"qgq5n",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"}),(0,pe.jsx)("path",{className:"zhVMb",strokeDasharray:100*e.value+", 100",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"})]});var LS="QBCpe";const MS=e=>(0,pe.jsx)("strong",{className:"JC26d",children:e.text});const US=e=>{return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)("p",{className:"y2pLC",children:e.title}),(0,pe.jsx)("p",{className:"UxgwP",children:(0,pe.jsxs)(ga,{text:(t={showTitle:ha,price:ha},x(323,t)),children:[(0,pe.jsx)(MS,{text:e.contentTitle}),(0,pe.jsx)(MS,{text:e.price})]})})]});var t};var VS;let BS=(VS=class extends Re.Component{constructor(...e){super(...e),this.updateIntervalId=null}startUpdates(){this.endUpdates(),this.updateIntervalId=setInterval(this.update,1e3)}endUpdates(){this.updateIntervalId&&(clearInterval(this.updateIntervalId),this.updateIntervalId=null)}update(){this.props.lockedUntil>=Vt.hY()?this.forceUpdate():(this.endUpdates(),this.props.onPinUnlocked())}getRemainingTime(){const e=this.props.lockedUntil-Vt.hY();return(0,DS.A)(e,0,this.props.lockDuration)}getProgressValue(){return 1-this.getRemainingTime()/this.props.lockDuration}componentDidMount(){this.startUpdates()}componentWillUnmount(){this.endUpdates()}render(){const e=this.getRemainingTime(),t=kS(e,"+");return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(US,{title:x(326),price:this.props.price,contentTitle:this.props.title}),(0,pe.jsxs)("div",{className:"ClNmy","data-soul":"PIN_LOCK_ICON",children:[(0,pe.jsx)(PS,{value:this.getProgressValue(),className:"O_WPa"}),(0,pe.jsx)(ft,{id:RS,className:"iypMD"}),(0,pe.jsx)(ft,{id:jS,className:"Yhbzp"})]}),(0,pe.jsx)("p",{className:LS,children:Xl({time:t})})]})}},(0,De.A)(VS.prototype,"update",[je],Object.getOwnPropertyDescriptor(VS.prototype,"update"),VS.prototype),VS);const FS="pin-input";var HS="XFW0R",GS="NaU5I",qS="XAWaE";const YS=e=>{const t=(0,Re.useRef)(void 0),[s,n]=(0,Re.useState)(e.value||""),[i,r]=(0,Re.useState)(!e.readOnly),[o,a]=(0,Re.useState)(!1),l=e.label||x(419);return(0,pe.jsxs)("div",{className:(0,Ye.A)("f0xFi",e.className),"data-soul":e.soul,children:[e.label&&(0,pe.jsx)("label",{htmlFor:FS,className:"W0izW",children:e.label}),(0,pe.jsxs)("label",{className:"pNURI",children:[(()=>{const t=[];for(let n=0;n<4;n++){const r=n<s.length,a=r||n===s.length&&i,l=e.readOnly||o,c=i&&(n===s.length||n===s.length-1&&4===s.length);t.push((0,pe.jsx)("span",{className:(0,Ye.A)("bjDr3",{[HS]:a,[GS]:!l&&r,[qS]:c}),"data-soul":"PIN_ITEM",children:l&&s[n]},n))}return t})(),(0,pe.jsx)("input",{ref:t,type:"password",id:FS,name:e.name,className:"jTaeo",value:s,onChange:t=>{const i=t.currentTarget.value.replace(/[^0-9]/gi,"");i!==s&&(e.onChange&&e.onChange(i),n(i))},onFocus:()=>{if(t.current){const e=s.length;t.current.setSelectionRange(e,e),t.current.focus()}r(!0)},onBlur:()=>{r(!1)},onKeyDown:e=>{["ArrowLeft","ArrowRight"].includes(e.key)&&e.preventDefault()},readOnly:e.readOnly,disabled:e.readOnly,"data-soul":"PIN_FIELD_INPUT",maxLength:4,autoFocus:!0,autoComplete:"off","aria-label":l})]}),e.withEye&&(0,pe.jsx)(ln,{className:"U891Q",onClick:()=>{a(!o)},soul:"PIN_FIELD_SHOW","aria-pressed":o,"aria-controls":FS,title:o?L():F(),icon:o?R_:j_,iconClassName:"_1juP1"})]})};const WS=e=>(0,pe.jsxs)("form",{className:"yUqPA","data-soul":"VOD_ORDER_PIN_FORM",children:[(0,pe.jsx)(US,{title:e.vodType===Ch.sd?x(325):x(324),price:e.price,contentTitle:e.title}),(0,pe.jsx)(YS,{className:"Rcx7H",onChange:t=>{4===t.length&&e.onPinApply(t)}}),e.attemptsLeft<4&&(0,pe.jsx)("p",{className:LS,children:Kl({number:e.attemptsLeft})}),(0,pe.jsx)(ln,{contentClassName:"yxIuj",soul:"VOD_ORDER_FORGOT_PIN_CONTROL",onClick:()=>{const e=!I.vod_order_forgot_pin,t=e?null:()=>{window.open(I.vod_order_forgot_pin,"_blank")},s={text:e?ol():Ql(),callback:t},n={text:x(e?322:199),textAlign:Dr,soul:"VOD_ORDER_FORGOT_PIN_MODAL"};io({messages:[n],job:s,options:{preventClose:!0,primaryOnly:e}})},kind:dt,color:yt,text:Jl(),tap:!0})]}),zS=e=>((0,Re.useEffect)(()=>{Un({type:"VOD_PURCHASE_PIN_ENTRY",content_id_type:ZA(e.teasableType),content_id:e.contentId,term_token:e.termToken})},[e.teasableType,e.termToken,e.contentId]),(0,pe.jsx)("div",{className:(0,Ye.A)("S6vdH",wS),"data-soul":"VOD_ORDER_PIN_MODAL",children:e.attemptsLeft?(0,pe.jsx)(WS,{attemptsLeft:e.attemptsLeft,onPinApply:e.onPinApply,vodType:e.vodType,title:e.title,price:e.price}):(0,pe.jsx)(BS,{lockedUntil:e.lockedUntil,lockDuration:e.lockDuration,onPinUnlocked:e.onPinUnlocked,title:e.title,price:e.price})})),$S="icons-gift",KS=e=>{const t=e.toUpperCase();switch(e.toLowerCase()){case fh.e:return`${x(357)} (${t})`;case fh.H:return`${x(354)} (${t})`;case fh.HD:return`${x(355)} (${t})`;case fh.SD:return`${x(356)} (${t})`;default:return t}};const QS=e=>{const t=e.isCampaign?$S:null;return(0,pe.jsxs)("div",{className:"TWDnx",children:[(0,pe.jsx)("span",{className:"oKvrU",children:KS(e.quality)}),(0,pe.jsx)(ln,{onClick:e.onClick,soul:"VOD_MODAL_QUALITY_OPTION_CONTROL",kind:dt,color:Et,className:"YIw4v",icon:t,text:(()=>
1{if(e.isCampaign)return x(349);return(e.vodType===Ch.sd?Cc:Tc)({price:e.price,quality:e.quality.toUpperCase()})})()})]})};var ZS=s(1142);const XS=e=>{const{height:t,imageBaseUrl:s,token:n,width:i}=e;return{height:t,src:(0,ZS.Rm)({height:t,token:n,url:s,width:i}),src2x:(0,ZS.Rm)({height:2*t,token:n,url:s,width:2*i}),width:i}},JS=({height:e,token:t,width:s,...n})=>{const{imageBaseUrl:i}=(0,Re.useContext)(pa);return(0,pe.jsx)(en,{soul:"ZATTIC_IMAGE",...XS({height:e,imageBaseUrl:i,token:t,width:s}),...n})};const eT={width:160,height:240},tT=e=>(0,pe.jsx)("div",{className:"pttkm",children:(0,pe.jsx)(JS,{alt:e.alt,className:"ldiMl",soul:"IMAGE_PORTRAIT",token:e.imageToken,title:e.title,...eT})}),sT="icons-info-filled";var nT=s(4238),iT=s(2335);const rT="rakuten_tv",oT=e=>Math.max(...e,0),aT="playready",lT="widevine",cT="fairplay";var dT=s(9198);const pT="com.widevine.alpha",uT="com.apple.fps",hT="com.apple.fps.1_0",mT="com.apple.fps.2_0",gT="com.apple.fps.3_0",yT={HW_SECURE_ALL:1,HW_SECURE_DECODE:1,HW_SECURE_CRYPTO:2,SW_SECURE_CRYPTO:3,SW_SECURE_DECODE:3},_T=["1.0","1.1","1.2","1.3","1.4","2.0","2.1","2.2","2.3"],ET=e=>{switch(e){case cT:return uT;case aT:return"com.microsoft.playready.recommendation";case lT:return pT;default:return null}},vT=e=>e?.reduce((e,t)=>("usable"===t?.status&&e.push(Number(t.version)),e),[])??[],xT=e=>{const t=Math.max(...vT(e),0);return t>=2?1:t>=1?0:"Unprotected"},bT=async()=>{const e=[];return window.WebKitMediaKeys&&[uT,hT,mT,gT].some(e=>window.WebKitMediaKeys.isTypeSupported?.(e))?e.push(cT):window.navigator.requestMediaKeySystemAccess&&"function"==typeof window.navigator.requestMediaKeySystemAccess&&await(async e=>{const t=[{audioCapabilities:[{contentType:'audio/mp4;codecs="mp4a.40.2"'}],initDataTypes:["cenc"],videoCapabilities:[{contentType:'video/mp4;codecs="avc1.4d4020"'}]}];try{return await window.navigator.requestMediaKeySystemAccess(e,t),!0}catch{return!1}})(pT)&&e.push(lT),e},AT=async e=>{let t={hdcpSupported:[],max_drm_lvl:null,max_hdcp_type:null,maxHdcpVer:null,name:e,robustness:null,system:ET(e)};const s=Pe.OI||!1;switch(e){case lT:{t.max_drm_lvl=3;const n=await(async(e,t)=>{let s;const n=ET(e);for await(const i of t){const t=[{audioCapabilities:[{contentType:'audio/mp4;codecs="mp4a.40.2"',robustness:i}],videoCapabilities:[{contentType:'video/mp4;codecs="avc1.4d4020"',robustness:i}]}];try{const r=await navigator.requestMediaKeySystemAccess(n,t),o=await r.createMediaKeys(),a=await Promise.all(_T.map(async e=>"getStatusForPolicy"in o?{status:await o.getStatusForPolicy({minHdcpVersion:e}),version:e}:null)),l=vT(a);s={hdcpSupported:l,max_drm_lvl:yT[i]||Number(i),max_hdcp_type:a.some(e=>!e)?null:xT(a),maxHdcpVer:oT(l),name:e,robustness:String(i),system:n};break}catch{}}return s})(e,Object.keys(yT));n&&(t={...n}),!t.max_hdcp_type&&s&&(t.max_hdcp_type="Unprotected",t.hdcpSupported=[]);break}}return t},ST={[cT]:{hdcpSupported:[],max_drm_lvl:null,max_hdcp_type:null,maxHdcpVer:null,name:null,robustness:null,system:null},[aT]:{hdcpSupported:[],max_drm_lvl:null,max_hdcp_type:null,maxHdcpVer:null,name:null,robustness:null,system:null},[lT]:{hdcpSupported:[],max_drm_lvl:null,max_hdcp_type:null,maxHdcpVer:null,name:null,robustness:null,system:null}},TT=e=>{const t=[aT,lT];e!==rT&&t.push(cT);const s=t.find(e=>Boolean(ST[e].name))||lT;return ST[s]},CT=e=>{const t=oT(e?.hdcpSupported);return t>=2.2?1:t>=1.4?0:"Unprotected"},NT=(e,t,s)=>{if(e===dT.fi){if(3e3===t)return s>=2.2?fh.e:s>=1.4?fh.H:fh.SD;if(2e3===t)return s>=1.4?fh.H:fh.SD}else if(e===dT.$5){if(3!==t)return fh.SD;if(s>=1.4)return fh.HD}else if(e===dT.rx)return fh.H;return fh.SD},fT=(e,t)=>e?[dT.UG,dT.iY].includes(t.supportedDrmStreamType)?null:t.supportedDrmStreamType:dT.jr,IT="IS_SAFARI",wT="IS_MOBILE_OR_TABLET",OT=async()=>await(async()=>!!(Pe.bh||Pe.un||Pe.ij||Pe.OI||Ge||qe)||!!(await Be()).isMobile)()?wT:Pe.f8?IT:null,DT=e=>e?dT.fi:dT.jr,RT={[dT.jr]:!Pe.f8,[dT.$5]:!Pe.f8,[dT.dr]:Pe.f8,[dT.iY]:Pe.f8},jT=[dT.jr,dT.dr],kT=[dT.$5,dT.iY],PT=(e,t)=>{const s=e&&t?kT:jT,n=e?dT.$5:dT.jr;return s.find(e=>RT[e])||n},LT=e=>e?dT.$5:dT.jr;const MT=async(e,t)=>{try{e&&await(async()=>{const e=(await bT()).map(e=>AT(e));await Promise.all(e).then(e=>
1{e.forEach(e=>{ST[e.name]={...e}})})})()}catch{}const s=TT(t),n=(e=>{switch(e){case lT:return dT.$5;case aT:return dT.fi;case cT:return dT.iY;default:return dT.$5}})(s.name);return{dolbySupported:!1,drmLevel:{[n]:s.max_drm_lvl},drmSystem:s.system,hdcpSupported:s.hdcpSupported,maxHdcpType:s.max_hdcp_type,subtitlesCodec:nT.c,supportedDrmStreamType:n}},UT=async(e,t)=>{if(t===rT){const s=await OT();if(s)return{error:s,playbackSupport:null};const n=await MT(e,t),i=fT(e,n),r=((e,t)=>e?t.drmLevel[fT(e,t)]:0)(e,n);return{playbackSupport:{cast_stream_type:DT(e),eac3_supported:n.dolbySupported,hdr_type:iT.x3,max_drm_lvl:r,max_hdcp_type:CT(n),max_quality_playable:NT(i,r,oT(n.hdcpSupported)),stream_type:i,ttml:n.subtitlesCodec===nT.c,vtt:n.subtitlesCodec===nT.D}}}{const s=await MT(e,t),n=s.supportedDrmStreamType,i=s.drmLevel[n];return{playbackSupport:{cast_stream_type:LT(e),eac3_supported:s.dolbySupported,max_drm_lvl:i,max_hdcp_type:s.maxHdcpType,max_quality_playable:fh.HD,stream_type:PT(e,Boolean(s.drmSystem)),ttml:s.subtitlesCodec===nT.c,vtt:s.subtitlesCodec===nT.D}}}},VT=e=>e?.external_stream_id;class BT extends Re.Component{constructor(...e){super(...e),this.state={isLoading:!0,maxQualityPlayable:null,noCapabilityError:null}}getCapabilityMessage(){switch(this.state.noCapabilityError){case wT:return x(352);case IT:return x(353);default:return x(351)}}async getMaxQualityPlayable(){try{const{playbackSupport:e,error:t}=await UT(this.props.term.drm_required,VT(this.props.term));this.setState({maxQualityPlayable:e?.max_quality_playable,noCapabilityError:t,isLoading:!1})}catch(e){Z(`Playback capability error: ${e}`)}}componentDidMount(){this.getMaxQualityPlayable()}render(){const{maxQualityPlayable:e}=this.state;return this.state.isLoading||e&&jh(e,this.props.term.quality)||e&&this.props.selectedQuality&&jh(e,this.props.selectedQuality)?null:(0,pe.jsxs)("div",{className:(0,Ye.A)("xo1Bt",this.props.className),children:[(0,pe.jsx)(ft,{id:sT,className:"NY9Ji"}),(0,pe.jsx)("p",{children:e?(0,pe.jsx)(ga,{text:(t={quality:ha},x(350,t)),children:(0,pe.jsx)(MS,{text:KS(e)})}):this.getCapabilityMessage()})]});var t}}const FT=e=>(0,pe.jsxs)("div",{className:(0,Ye.A)(wS,Rr),"data-soul":e.soul||"VOD_ORDER_STEP",children:[(0,pe.jsx)("h2",{className:(0,Ye.A)("VG2Pk",n),children:e.title}),e.campaignDisclaimer&&(0,pe.jsx)("p",{className:OS,"data-soul":"VOD_CAMPAIGN_DISCLAIMER",children:e.campaignDisclaimer}),e.disclaimer&&(0,pe.jsx)("p",{className:OS,children:e.disclaimer}),(0,pe.jsxs)("div",{className:"TqVgq",children:[e.imageToken&&(0,pe.jsx)(JS,{token:e.imageToken,className:"q2_or",alt:e.title,...eT}),(0,pe.jsx)("div",{className:(0,Ye.A)("mJOpe",e.contentClassName),children:e.children})]}),e.qualityIndicatorProps&&(0,pe.jsx)(BT,{className:"bl3rw",...e.qualityIndicatorProps})]}),HT=e=>{const t=e.terms.slice().sort((e,t)=>Rh(t.quality,e.quality));const s=t[0],n=(0,Re.useMemo)(()=>{if(!s.campaign)return null;const{disclaimer:e}=s.campaign,t=`(${Ic({price:s.price})})`;return e?`${e} ${t}`:t},[s.campaign,s.price]);return(0,pe.jsx)(FT,{title:e.title,imageToken:e.imageToken,qualityIndicatorProps:{term:s},disclaimer:s.disclaimer,campaignDisclaimer:n,soul:"VOD_ORDER_QUALITY_SELECTION_MODAL",children:(0,pe.jsx)("div",{children:t.map(t=>(0,pe.jsx)(QS,{onClick:()=>(t=>{const s=e.terms.findIndex(e=>e.token===t);e.onQualitySelect(s),Un({type:"VOD_PURCHASE_VIDEO_OPTION",content_id:e.contentId,content_id_type:ZA(e.teasableType),term_token:t})})(t.token),quality:t.quality,price:t.price,vodType:e.vodType,isCampaign:Boolean(t.campaign)},t.token))})})};const GT=e=>((0,Re.useEffect)(()=>{Un({type:"VOD_PURCHASE_TNC"})},[]),(0,pe.jsxs)("div",{className:"myEla","data-soul":"VOD_TNC_MODAL",children:[(0,pe.jsx)("h2",{className:"oJNk9",children:e.tnc.title}),(0,pe.jsx)("div",{dangerouslySetInnerHTML:{__html:e.tnc.content_to_display},className:(0,Ye.A)("CzY8n",Rr)}),(0,pe.jsxs)("div",{className:"hoLvo",children:[(0,pe.jsx)(ln,{onClick:()=>e.onConfirm(e.tnc.id),soul:"VOD_ORDER_ACCEPT_TNC",text:e.tnc.printable_description,kind:dt,color:_t,className:"VBXLi"}),(0,pe.jsx)(ln,{onClick:e.onCancel,soul:"VOD_ORDER_CANCEL_TNC",text:k(),kind:dt,color:Et})]})]}));var qT="tn5NS";const YT=e=>{const{term:t}=e;(0,Re.useEffect)(()=>{Un({type:"VOD_PURCHASE_CONFIRMATION",term_token:t.token,content_id:e.contentId,content_id_type:ZA(e.teasableType)})},[t,e.contentId,e.teasableType]);const s=e.vodType===Ch.sd?bc:xc;return(0,pe.jsxs)(FT,{title:x(321),disclaimer:t.disclaimer,campaignDisclaimer:t.campaign?.disclaimer,imageToken:e.imageToken,contentClassName:"lR_R7",soul:"VOD_ORDER_CONFIRMATION_MODAL",children:[(0,pe.jsx)("p",{className:"VSZD4",children:(0,pe.jsxs)(ga,{text:s({showName:ha,price:ha,showQuality:ha}),children:[(0,pe.jsx)(MS,{text:e.title}),(0,pe.jsx)(MS,{text:KS(t.quality)}),(0,pe.jsx)(MS,{text:t.price})]})}),(0,pe.jsxs)("div",{className:"grJth",children:[(0,pe.jsx)(ln,{onClick:e.onConfirm,soul:"VOD_ORDER_CONFIRMATION_CONFIRM",text:x(317),kind:dt,color:_t,className:qT}),(0,pe.jsx)(ln,{onClick:e.onCancel,soul:"VOD_ORDER_CONFIRMATION_CANCEL",text:x(318),kind:dt,color:Et,className:qT})]})]})};var WT=s(5668),zT=s(5883),$T=s(9340);const KT=({format:e,format2x:t,inverse:s,token:n,...i})=>{const{logoBaseUrl:r}=(0,Re.useContext)(pa),o=s?zT.A:zT.m;return(0,pe.jsx)(en,{src:(0,$T.dQ)({format:e,kind:o,token:n,url:r}),src2x:t?(0,$T.dQ)({format:t,kind:o,token:n,url:r}):void 0,soul:"ZATTIC_LOGO",...i,fallback:$s})};const QT=e=>e.logoToken?(0,pe.jsx)(KT,{alt:e.title,token:e.logoToken,format:WT.w1,format2x:WT.eB,height:40,width:70,className:"kL27y"}):null,ZT=e=>(0,pe.jsx)(FT,{title:e.title,disclaimer:e.term.disclaimer,children:(0,pe.jsx)(Ke,{centered:!0})});var XT,JT;const eC={isTncRequired:!1,isPinRequired:!1,attemptsLeft:0,lockedUntil:-1,lockDuration:-1,tnc:null,pin:null,isConfirmationRequired:!1,orderConfirmed:!1,publisherId:null};let tC=(JT=class extends Re.PureComponent{constructor(...e){super(...e),this.state=eC}onHide(){this.props.dispatch(fS()),this.setState(eC)}onPinApply(e){this.setState({pin:e,isPinRequired:!1},()=>{this.handleOrder()})}onConfirmOrder(){this.setState({orderConfirmed:!0,isConfirmationRequired:!1},()=>{this.handleOrder()})}onPinLocked(e){this.setState({attemptsLeft:0,lockedUntil:e.response.locked_until,lockDuration:e.response.total_locked_seconds,isPinRequired:!0,pin:null})}onPinInvalid(e){this.setState({attemptsLeft:e.response.attempts_left,lockDuration:e.response.total_locked_seconds,isPinRequired:!0,pin:null}),$n({text:Zl({count:e.response.attempts_left}),soul:"VOD_ORDER_NOTIFICATION_PIN_INVALID",unique:!1})}onPinMissing(e){this.setState({attemptsLeft:e.response.attempts_left,isPinRequired:!0})}onTncRequired(e){const t=e.response.latest_tncs[0],s=e.response.publisher_id;this.setState({tnc:t,publisherId:s})}onConfirmationRequired(){this.setState({isConfirmationRequired:!0})}async onQualitySelect(e){var t;await this.props.dispatch((t=e,{type:TS,value:t})),this.handleOrder()}getSelectedTerm(){const{props:e}=this;return e.termsCatalog.terms[e.selectedTerm]}handleOrder(){this.props.dispatch(IS(this.getSelectedTerm()?.token,{pin:this.state.pin,confirmed:this.state.orderConfirmed,campaign_token:this.getSelectedTerm()?.campaign?.token})).catch(e=>{HA(e)?this.onPinMissing(e):qA(e)?this.onPinInvalid(e):GA(e)?this.onPinLocked(e):eS(e)?this.onTncRequired(e):tS(e)?this.onConfirmationRequired():Z(e)})}componentDidUpdate(e){e.active&&!this.props.active&&this.setState(eC)}onAcceptTnc(e){var t;this.setState({tnc:null}),this.props.dispatch((t={tnc_id:e,publisher_id:this.state.publisherId},async()=>{try{await jb.vQ(t)}catch(e){Z(e)}})).then(()=>{this.handleOrder()})}render(){const{props:e,state:t}=this;if(!e.active)return null;const s=this.getSelectedTerm();return(0,pe.jsxs)(zA,{onHide:this.onHide,soul:"VOD_ORDER_MODAL",children:[(0,pe.jsx)(QT,{...e.brand}),(()=>{switch(e.step){case cS:return(0,pe.jsx)(HT,{title:e.title,imageToken:e.imageToken,terms:e.termsCatalog.terms,vodType:e.vodType,teasableType:e.teasableType,contentId:e.teasableId,onQualitySelect:this.onQualitySelect});case dS:return t.isPinRequired?(0,pe.jsx)(zS,{onDeactivate:this.onHide,attemptsLeft:t.attemptsLeft,onPinApply:this.onPinApply,onPinUnlocked:this.handleOrder,lockedUntil:t.lockedUntil,lockDuration:t.lockDuration,teasableType:e.teasableType,termToken:s.token,contentId:e.teasableId,title:e.title,price:s.price,vodType:e.vodType}):t.tnc?(0,pe.jsx)(GT,{onCancel:this.onHide,onConfirm:this.onAcceptTnc,tnc:this.state.tnc}
1):t.isConfirmationRequired?(0,pe.jsx)(YT,{title:e.title,onConfirm:this.onConfirmOrder,onCancel:this.onHide,vodType:e.vodType,imageToken:e.imageToken,term:s,teasableType:e.teasableType,contentId:e.teasableId}):(0,pe.jsx)(ZT,{title:e.title,term:s});default:return null}})()]})}},JT.displayName="VodOrder",XT=JT,(0,De.A)(XT.prototype,"onHide",[je],Object.getOwnPropertyDescriptor(XT.prototype,"onHide"),XT.prototype),(0,De.A)(XT.prototype,"onPinApply",[je],Object.getOwnPropertyDescriptor(XT.prototype,"onPinApply"),XT.prototype),(0,De.A)(XT.prototype,"onConfirmOrder",[je],Object.getOwnPropertyDescriptor(XT.prototype,"onConfirmOrder"),XT.prototype),(0,De.A)(XT.prototype,"onPinLocked",[je],Object.getOwnPropertyDescriptor(XT.prototype,"onPinLocked"),XT.prototype),(0,De.A)(XT.prototype,"onPinInvalid",[je],Object.getOwnPropertyDescriptor(XT.prototype,"onPinInvalid"),XT.prototype),(0,De.A)(XT.prototype,"onPinMissing",[je],Object.getOwnPropertyDescriptor(XT.prototype,"onPinMissing"),XT.prototype),(0,De.A)(XT.prototype,"onTncRequired",[je],Object.getOwnPropertyDescriptor(XT.prototype,"onTncRequired"),XT.prototype),(0,De.A)(XT.prototype,"onConfirmationRequired",[je],Object.getOwnPropertyDescriptor(XT.prototype,"onConfirmationRequired"),XT.prototype),(0,De.A)(XT.prototype,"onQualitySelect",[je],Object.getOwnPropertyDescriptor(XT.prototype,"onQualitySelect"),XT.prototype),(0,De.A)(XT.prototype,"handleOrder",[je],Object.getOwnPropertyDescriptor(XT.prototype,"handleOrder"),XT.prototype),(0,De.A)(XT.prototype,"onAcceptTnc",[je],Object.getOwnPropertyDescriptor(XT.prototype,"onAcceptTnc"),XT.prototype),XT);const sC=(0,l.Ng)(e=>({active:uS(e),selectedTerm:ES(e),step:bS(e),title:hS(e),termsCatalog:vS(e),vodType:xS(e),teasableType:_S(e),teasableId:yS(e),imageToken:gS(e),brand:mS(e)}))(tC);var nC=s(8916);const iC="PLAYER_DEBUG",rC=(()=>{const e=ae(iC);return!!(0,nC.A)(e)&&e})(),oC=He()&&!(Pe.bh||Pe.un),aC=e=>(e=>e.media.zoom)(e).zoomed,lC=e=>!!Gy(e)&&!vu(e),cC=e=>lC(e)&&aC(e),dC=e=>!xy(e)||!Ey(e),pC="icons-pause",uC="icons-backward",hC="icons-forward",mC="icons-restart",gC="icons-volume-mute",yC="icons-volume-on",_C="icons-arrow-thin-right",EC="icons-subtitle",vC="channel",xC="program",bC="recording",AC="movie_id",SC="series_id",TC="season_id",CC="episode_id",NC="term_token",fC=Pe.un||Pe.bh,IC=Pe.un,wC=Pe.un||Pe.bh,OC=e=>(e=>e.player.fullscreen.available)(e)&&!ju(e)&&!(IC&&vu(e)),DC="PLAYER_FULLSCREEN_ENTER_REQUESTED",RC="PLAYER_FULLSCREEN_ENTER_REJECTED",jC="PLAYER_FULLSCREEN_EXIT_REQUESTED",kC="PLAYER_FULLSCREEN_AVAILABILITY_SET",PC="PLAYER_EVENTS_AUDIO_QUALITY_CHANGED",LC="PLAYER_EVENTS_AUDIO_TRACK_CHANGED",MC="PLAYER_EVENTS_AUDIO_TRACKS_ADDED",UC="PLAYER_EVENTS_AUTOPLAY_BLOCKED",VC="PLAYER_EVENTS_ENDED",BC="PLAYER_EVENTS_ERRORED",FC="PLAYER_EVENTS_FULLSCREEN_ENTERED",HC="PLAYER_EVENTS_FULLSCREEN_EXITED",GC="PLAYER_EVENTS_PAUSED",qC="PLAYER_EVENTS_PLAYED",YC="PLAYER_EVENTS_READY",WC="PLAYER_EVENTS_RESIZED",zC="PLAYER_EVENTS_SEEK_FINISHED",$C="PLAYER_SEGMENT_PLAYED",KC="PLAYER_EVENTS_STALL_FINISHED",QC="PLAYER_EVENTS_STALL_STARTED",ZC="PLAYER_EVENTS_SUBTITLES_TRACKS_ADDED",XC="PLAYER_EVENTS_SUBTITLES_TRACK_REMOVED",JC="PLAYER_EVENTS_SUBTITLES_TRACK_CHANGED",eN="PLAYER_EVENTS_SUBTITLES_CUE_EXITED",tN="PLAYER_EVENTS_SUBTITLES_CUE_ENTERED",sN="PLAYER_EVENTS_TIME_SHIFTED",nN="PLAYER_EVENTS_VIDEO_QUALITY_CHANGED",iN="PLAYER_EVENTS_WARNED",rN=(e=!0)=>({type:DC,lockOrientation:e}),oN=e=>({type:kC,available:e}),aN=()=>({type:jC}),lN=()=>(e,t)=>{const s=t();OC(s)&&(Gy(s)?e(aN()):e(rN()))},cN="player_container",dN="fullscreen_container",pN="player_video_node",uN=()=>document.getElementById(pN),hN=()=>{const e=uN();return{width:e?.clientWidth,height:e?.clientHeight}},mN=(e=uN())=>!!e&&(document.pictureInPictureEnabled&&!e.disablePictureInPicture),gN="PLAYER_PIP_ENTERED",yN="PLAYER_PIP_ENTER_REQUESTED",_N="PLAYER_PIP_EXITED",EN="PLAYER_PIP_EXIT_REQUESTED";let vN=!1;const xN=()=>({type:yN}),bN=()=>e=>{vN||(vN=!0,e({type:gN}))},AN=e=>({type:EN,streamClosed:e}),SN=()=>e=>{vN&&(vN=!1,e({type:_N}))},TN=()=>vN?AN():xN();var CN=s(9442);const NN=async(e,t)=>{const{programs:s}=await nb.IK({pghash:e,program_ids:[t]});return s[0]},fN=e=>e.inputSource,IN=e=>fN(e)===ti,wN="trailer",ON="PLAY",DN="TRACK_AUDIO_CHANGED",RN="AD_BREAK_START";var jN=s(9222);const kN=(e,t)=>t.every(e=>!e)?e:`${e}${t.join(";")}`,PN=e=>e.type===jN.G_?(e=>{const{bitrate:t,codec:s,fps:n,height:i,width:r}=e;return kN("video/",[t,r&&i&&`${r}x${i}`,s,n])})(e):e.type===jN.FY?(e=>{const{bitrate:t,codec:s,language:n}=e;return kN("audio/",[n,t,s])})(e):e.type===jN.a$?(e=>{const{codec:t,language:s}=e;return kN("text/",[s,t])})(e):null,LN=e=>e.map(e=>
1PN(e)).filter(Boolean);let MN=!1;const UN=e=>{MN=e},VN=()=>({screen_size_w:document.documentElement.clientWidth,screen_size_h:document.documentElement.clientHeight});let BN;const FN=new Map,HN=[];let GN,qN,YN;const WN=(e,t)=>{const{psid:s}=t,n=FN.get(s);if(!n)return;const i={type:e.type,data:{...e.data,psid:s,csid:n.csid,time:Math.floor(t.time),seq:t.seq,app_ver:sa}};qN.markEvent(i,t.time)},zN=(e,t={withPlaybackStatusData:!0})=>{if(!qN||!MN)return;const s=Date.now(),n=HN.length<1?null:HN[HN.length-1],i=FN.get(n);if(!n||!i)return;const r=i.seq++;let o={};t.withPlaybackStatusData&&(o=(()=>{const e=YN?.();let t=e?.bufferedDuration;return t>3*Vt.W_&&(t=-1),{buf_dur:t,cur_bitrate:e?.bitrate,cur_media_time:Math.floor(1e3*e?.rawCurrentTime||0)}})());const a={...e.data,...o},l={time:s,psid:n,seq:r,csid:i.csid};WN({type:e.type,data:a},l)},$N=()=>{if(!qN)return;const e=Date.now(),t=`${(1e6*e).toString(16)}-${`00000000${Math.floor(Math.random()*2**32).toString(16)}`.substr(-8)+`00000000${Math.floor(Math.random()*2**32).toString(16)}`.substr(-8)}`.toUpperCase();return((e,t)=>{if(FN.set(e,{seq:0,sessionCreationTime:t}),HN.push(e),HN.length<=10)return;const s=HN.shift();FN.delete(s)})(t,e),t},KN=e=>{if(!qN)return;BN=qN.scheduleDelivery();const t=FN.get(e.psid);if(!t)return;const s=t.seq++,n=YN?.(),{width:i,height:r}=hN(),{playerVersion:o,playerName:a}=YN?.()||{},l={asset_id:String(e.asset_id),asset_type:e.asset_type,player_ver:o,player_name:a,buf_player_conf_min_buf:n?.playerConfig.minBuffer,stream_type:e.streamType?.toUpperCase(),player_size_w:i,player_size_h:r,...VN()};e.stream_id&&(l.stream_id=e.stream_id),e.stream_provider_id&&(l.stream_provider_id=e.stream_provider_id),(async()=>{const[n]=await Promise.all([Be(),BN]),i={type:"NEW_SESSION",data:{...l,browser_name:n.browserName,device_os:n.osName,device_os_ver:n.osVersion,device_name:n.deviceModel}},r={psid:e.psid,time:t.sessionCreationTime,seq:s};WN(i,r)})()},QN=()=>{clearTimeout(GN)},ZN=()=>{qN&&(QN(),GN=setInterval(()=>{try{zN({type:"STATUS"})}catch(e){Z(e),QN()}},2e4))},XN=(0,xn.A)(()=>{const{width:e,height:t}=hN();zN({type:"GEOMETRY_CHANGED",data:{player_size_w:e,player_size_h:t,...VN()}})},1e3),JN=e=>{if(!qN)return;const t=FN.get(e);if(!t)return;const s=t.seq++,n=Date.now();(async()=>{BN&&await BN;WN({type:"WATCH_SENT"},{psid:e,time:n,seq:s})})()},ef=(e,t)=>{if(!qN)return;const{csid:s,streamUrl:n,tempTelemetryEnabled:i,tempTelemetryUrl:r}={csid:(o=t).csid,streamUrl:o.stream.url,tempTelemetryEnabled:Boolean(o.tracking?.temp_telemetry_enabled),tempTelemetryUrl:o.tracking?.temp_telemetry_url};var o;if(!i)return qN.cleanPendingEvents(),UN(i),void QN();const a=Date.now();var l;UN(i),l=r,qN&&(qN.reportingUrl=l);const c=FN.get(e);if(!c)return;c.csid=s;const d=c.seq++;WN({type:"WATCH_RECEIVED",data:{url:n}},{psid:e,csid:s,time:a,seq:d})},tf=(e,t)=>jp(e)[t],sf=(e,t)=>tf(e,t).title,nf=(e,t)=>{const s=tf(e,t);return Np(s)},rf=(e,t)=>{const s=tf(e,t);return Ip(s)},of=(e,t)=>{const s=kp(e,t);return s?jp(e)[s].url_cid:null};class af extends Error{constructor(e=""){super(e),this.message=`The device is not capable to play the requested stream. Reason: ${e}`,this.reason=e}}const lf=e=>e instanceof af,cf=async(e,t)=>{try{const t=await e();return Promise.resolve(t)}catch(e){return lf(e)?(t?.(e),Promise.resolve()):(0,m.r6)(e)&&WA(e)?Promise.resolve():(Z(e),Promise.reject(t?t(e):e))}},df="THUMBNAILS_PERMISSION",pf=()=>Boolean(ae(df)),uf=async({isDRMRequired:e,isCastAvailable:t,pin:s,streamProviderId:n})=>{const{playbackSupport:i}=await UT(e,n);if(!i)return null;const r={stream_type:i.stream_type,https_watch_urls:!0,thumbnail_seeking:pf(),sdh_subtitles:!0};return n&&i.max_quality_playable&&(r.quality=i.max_quality_playable),i.eac3_supported&&(r.enable_eac3=!0),i.max_drm_lvl&&(r.max_drm_lvl=i.max_drm_lvl),i.max_hdcp_type&&(r.max_hdcp_type=i.max_hdcp_type),i.hdr_type&&(r.hdr_type=i.hdr_type),s&&(r.youth_protection_pin=s),t&&(r.cast_stream_type=i.cast_stream_type),r.tc_string=(Mo||Uo(),Mo),r},hf=(e,t)=>
1{const s=t.stream,n=s.watch_urls.slice().sort(({maxrate:e},{maxrate:t})=>e*t===0?e-t:t-e)[0];return{ads:s.ads||[],authToken:t.auth_token,externalSubtitles:t.all_subtitles,streamType:e.stream_type,local:{url:n.url,csid:t.csid,licenseUrl:n.license_url},cast:{url:s.cast_url,csid:t.cast_csid,licenseUrl:s.cast_license_url}}},mf=e=>e.epg.status,gf=(e,t)=>{const s=mf(e)[t];return s?s.position:null},yf="PLAYER_DEBUG_STREAM_INFO_STORED",_f=e=>({type:yf,streamType:e}),Ef="STREAM_LIVE_RECEIVED",vf="STREAM_LIVE_PROGRAM_UPDATED",xf="STREAM_UNSYNC_CHANGED",bf="STREAM_CLEANED",Af="STREAM_CLOSE_REQUESTED",Sf="STREAM_ERROR_APPEARED",Tf="STREAM_PAUSE_REQUESTED",Cf="STREAM_PLAY_REQUESTED",Nf="STREAM_SEEK_REQUESTED",ff="STREAM_SHIFT_REQUESTED",If="STREAM_WATCH_ANNOUNCED",wf="STREAM_STOP_REQUESTED",Of=e=>{let t;switch(e){case IT:t=x(299);break;case wT:t=x(298);break;default:t=x(300)}no({messages:[{title:x(301),textAlign:Dr,text:t}],job:{text:Fl()},options:{primaryOnly:!0}})},Df=(e,t)=>({type:Af,force:e,local:t}),Rf=e=>({type:If,streamMode:e}),jf=e=>t=>{if(t(Df()),lf(e))return void Of(e.reason);const s=e;Yn({text:s?.code?Ul({code:s.code}):yl(),soul:"STREAM_NOTIFICATION_WATCH_ERROR"})},kf="STREAM_MODE_STORED",Pf="STREAM_VOD_CONTENT_STORED",Lf="STREAM_CHANNEL_STORED",Mf=e=>({type:Lf,channel:e}),Uf="STREAM_PROGRAM_STORED",Vf=e=>({type:Uf,program:e}),Bf=()=>({type:vf}),Ff="STREAM_RECORDING_RECEIVED",Hf="STREAM_RECORDING_REMOVED",Gf="STREAM_RECORDING_STORED",qf=e=>({type:Gf,recording:e});const Yf=e=>e.npvr.recordings.map,Wf=e=>Object.keys(Yf(e)).length,zf=e=>e.npvr.recordings.pidrid,$f=(e,t)=>zf(e)[t],Kf=(e,t)=>Yf(e)[t]||null,Qf=(e,t)=>{const s=$f(e,t);return Kf(e,s)},Zf=(e,t)=>Kf(e,t)?.title,Xf=e=>!Wf(e),Jf=(e,t)=>((e,t)=>{const s=Kf(e,t);return s?(0,Vt.tM)(s.position):null})(e,$f(e,t)),eI=(e,t)=>{const s=Qf(e,t),n=Jf(e,t);return!!s&&Boolean(n-(0,Vt.tM)(s.start))},tI=e=>(t,s)=>{const n=s();switch(t((e=>({type:kf,mode:e}))(e.mode)),e.mode){case Wp:case zp:t((i=e.vod_content,{type:Pf,vod_content:i}));break;default:{const{program:s}=e,i=s&&$f(n,s.id);e.channel&&t(Mf(e.channel)),t(Vf(s)),e.mode===qp?t(qf(e.recording)):i&&t(qf(Kf(n,i)));break}}var i},sI=e=>x(e?24:26),nI=(e,t,s)=>{let n=x(25,{channelTitle:e});if(t){const e=(e=>x(23,e))({productLevel:s,tenantTitle:C});n=`${e}\n\n${n}`}return n},iI=(e,t)=>e?t?"CHANNEL_UPSELL_LIMITED_PLATFORM":"CHANNEL_UPSELL_MODAL":"CHANNEL_UPSELL_MODAL_CONFIRMATION_ONLY",rI=(e,t)=>{if(e&&t)return x(132)},oI=(e,t,s)=>{const n=(i={cid:t},_e(ye.channel_upsell,i));var i;const r=Boolean(n),o=ye?.channel_upsell?.limited_platform,a=o&&s.some(e=>o.account_permissions.includes(e)),l={title:sI(a),text:nI(e,a,o?.product_name),withMarkdown:!0,soul:iI(r,a)},c={link:n,jobText:rI(r,a)};return EA(l,c)},aI=e=>(t,s)=>{const n=s(),i=tf(n,e);var r;i?wp(i)?zn({text:(r={tenantTitle:C},x(75,r)),soul:"STREAM_NOTIFICATION_INTERNAL_NETWORK_REQUIRED"}):t((e=>(t,s)=>{const n=s(),i=sf(n,e),r=we(n);oI(i,e,r)})(e)):Yn({text:yl(),soul:"STREAM_MESSAGE_ERROR"})},lI="STREAM_TIMESHIFT_INFO_STORED",cI="STREAM_TIMESHIFT_SWITCHED",dI="STREAM_TIMESHIFT_RECEIVED",pI="STREAM_TIMESHIFT_RESUME_TIME_STORED",uI=(e,t)=>s=>{io({messages:[{title:Ec(),text:_c()}],job:{text:Fl(),callback:()=>{s({type:cI,payload:{mode:e,request:t}})}}})},hI=e=>t=>{const{cid:s,pid:n,rid:i,mode:r,watchContext:o}=e;switch(r){case Hp:t(bI({cid:s,watchContext:o}));break;case qp:t(zI({rid:i,watchContext:o}));break;case Gp:t(xw({pid:n,watchContext:o}));break;default:return null}return null},mI=(e,t)=>(s,n)=>{const i=(e=>e?{title:x(235),text:x(234),soul:"STREAM_CONFIRMATION_EXIT_REPLAY"}:{title:Ec(),text:_c(),soul:"STREAM_CONFIRMATION_EXIT_TIMESHIFT"})(Zp(n())),r=(e,t)=>{Un({type:"CONFIRMATION_VIEW",content:e,confirmation_response:t})};io({messages:[i],options:{onClose:()=>{r(i.soul,!1)}},job:{text:Fl(),callback:()=>{s({type:e,payload:t}),r(i.soul,!0)}},cancelJob:{text:k(),callback:()=>{r(i.soul,!1)}}})},gI=e=>e.epg.lineup.live,yI=e=>e.epg.lineup.upcoming,_I=(e,t)=>gI(e)[t]||cb(),EI=e=>e.epg.lineup.updateTime,vI=()=>{zn({text:x(48),soul:"STREAM_TOAST_DRM_LIMIT_APPLIED"})},xI=(e,t)=>(s,n)=>cf(async()=>{const i=n(),r=tf(i,e),o=_I(i,e),a=_h(i);s(Rf(Hp));const l=$N();s(tI({mode:Hp,program:o,channel:r}));const c=await uf({isDRMRequired:Sp(r).drm_required,isCastAvailable:Sg(i),pin:t}),d=Am({broadcast:o,channel:r,replayAvailability:a}),p={cid:e,...c,...d&&{timeshift:10800}};KN({psid:l,asset_id:e,asset_type:"LIVE",streamType:p.stream_type}),JN(l);const u=await(0,CN.ZU)(p);return ef(l,u),u.drm_limit_applied&&vI(),s(_f(p.stream_type)),t&&Un({type:Dn,pin_success:!0}),Un({type:kn,channel_id:r.cid,csid:u.csid,mode:"live",program_id:o.id}),s(((e,t)=>({type:Ef,source:hf(e,t),googleAssetKey:t.google_asset_key,registerTimeshift:t.register_timeshift,requestPINAt:t.youth_protection_pin_required_at,replaySeekingAllowed:t.stream.replay_seeking_allowed,trackingInfo:t.tracking,unregisteredTimeshift:t.unregistered_timeshift,nielsenTrackingInfo:{subbrand:t.nielsen_subbrand,stationId:t.nielsen_station_id}}))(p,u))}),bI=e=>(t,s)=>{const n=s(),{cid:i}=e;if(Un({type:Pn,user_interaction:fN(n),...e.watchContext}),nf(n,i))return t(aI(i)),py(n)||t(Df()),Promise.resolve();const r=!e.force&&ag(n);return r&&Qp(n)?(t(uI(Hp,{cid:i,pin:e.pin})),Promise.resolve()):r&&(e=>iu(e)&&!Rg(e))(n)?(t(mI(xf,{cid:i,pin:e.pin})),Promise.resolve()):Wy(n)?(t(eO(i)),Promise.resolve()):t(xI(i,e.pin))},AI={forward_seeking_needs_markers:!1,adbreak_skip_allowed:!1,adbreaks_in_scrub_bar:!1},SI="STREAM_MARKERS_SET",TI="STREAM_MARKERS_CLEANED",CI="STREAM_MARKERS_AD_BREAK_ENTERED",NI="STREAM_MARKERS_AD_BREAK_EXITED",fI="STREAM_MARKERS_AD_BREAK_VISITED",II="STREAM_MARKERS_AD_BREAK_COMPLETED",wI="STREAM_MARKERS_AD_BREAK_AREA_UPDATED",OI="STREAM_MARKERS_HANDLING_UPDATED",DI=e=>{const t=e.markers||[];return{type:SI,adBreaks:Pm(t,e.markersId),markers:t,markersHandling:e.markersHandling}},RI=e=>({type:II,adBreakId:e}),jI=(e,t)=>(s,n)=>{const i=n(),r=Fm(i),o=qm(i),a=Gm(i),l=((e,t)=>t.find(t=>null!==km(e,t)))(e,r);if(a&&e>a.mainEnd&&o===wm&&!a.completed&&t&&s(RI(a.id)),l){const n=km(e,l);l.id!==a?.id?s((c=l.id,{type:CI,adBreakArea:n,adBreakId:c})):n!==qm(i)&&s((e=>({type:wI,adBreakArea:e}))(n)),n===wm&&!l.visited&&t&&s((e=>({type:fI,adBreakId:e}))(l.id))}else a&&s({type:NI});var c},kI=e=>({type:ff,position:e}),PI=e=>(t,s)=>{const n=s(),i="STREAM_TOAST_SEEK_FORWARD_FORBIDDEN";switch(e||(e=Zm(n)),e){case Km:bi({text:x(185),soul:i});break;case Dm:bi({text:x(80),soul:i});break;case Rm:bi({text:x(78),soul:i})}},LI=e=>(t,s)=>{t({type:Nf,time:e,autoplay:my(s())})},MI=(e,t)=>(s,n)=>{const i=n(),r=t??Xg(i)-30;as({action:"jumpBackward",category:"videoPlayer",label:e,value:r}),Kp(i)?s(xw({pid:Zu(i),initialTime:r,isContinuous:!0})):Qp(i)?s(kI(r)):s(LI(r))},UI=e=>(t,s)=>{const n=s(),i=Kg(n),r=(e=>Vu(Yg(e),Zg(e)))(n),o=Wg(n),a=((e,t,s)=>{if(!Vm(e))return t;if(!zm(e))return s;const n=Fm(e).find(e=>jm(e.start,s,t));return n?n.start:t})(n,e,o);let l=a;l=l>=r?r:Math.min(l,i),a!==e&&t(PI(Dm)),t(LI(l))},VI=(e,t)=>(s,n)=>{const i=n(),r=t??Xg(i)+60;as({action:"jumpForward",category:"videoPlayer",label:e,value:r}),Xm(i)?Qp(i)||Kp(i)?s(kI(r)):ou(i)?s(UI(r)):s(LI(r)):s(PI())},BI=e=>(t,s)=>{const n=s();return t(((e,t)=>async()=>
1{if(!t?.is_gt12_bv)return AI;const{marker_handling:s}=await Gb.ez({cda:t.cid,pghash:e});return s?{...AI,...s}:AI})(uo(n),e))},FI=()=>({type:Sf}),HI=e=>Jw(Jv(e)),GI=e=>e.padding.post||0,qI=e=>e.padding.pre||0,YI=e=>!1!==e.forward_seeking,WI=(e,t,s)=>(n,i)=>cf(async()=>{n(Rf(qp));const r=$N(),o=i(),a=tf(o,e.cid),l=await NN(uo(o),e.program_id);n(tI({mode:qp,channel:a,program:l,recording:e}));const c=await uf({isDRMRequired:Sp(a)?.drm_required,isCastAvailable:Sg(o),pin:s}),d={recording_id:`${e.id}`,with_schedule:Boolean(a?.is_gt12_bv),...c};KN({psid:r,asset_id:e.id,asset_type:"RECORDING",streamType:d.stream_type}),JN(r);const[p,u]=await Promise.all([(0,CN.cc)(d),n(BI(a))]);ef(r,p);const{stream:h}=p,m=gf(o,l.id),g=wh((0,Vt.tM)(e.start),(0,Vt.tM)(e.end),m);p.drm_limit_applied&&vI(),n(_f(d.stream_type)),s&&Un({type:Dn,pin_success:!0}),Un({type:kn,mode:"recording",csid:p.csid,channel_id:e.cid,program_id:l.id}),n(DI({markers:h.schedule,markersId:`${e.cid}-${l.id}`,markersHandling:u})),n({type:Ff,recording:e,fromStart:t,initialTime:g,trackingInfo:p.tracking,source:hf(d,p),prePadding:qI(h),postPadding:GI(h),seekForwardEligible:YI(h),nielsenTrackingInfo:{subbrand:p.nielsen_subbrand,stationId:p.nielsen_station_id}})},t=>n(((e,t)=>async(s,n)=>{const i=e,r=await NN(uo(n()),t.program_id),{code:o}=i;o===ua.GO?($n({text:x(154),soul:"STREAM_NOTIFICATION_RECORDINGS_NOT_READY_WARNING"}),s(bI({cid:r.cid}))):o===ua.Id&&(0,Vt.v9)(r.s,r.e,{excludeEnd:!0})?s(bI({cid:r.cid})):(s(Df()),Yn({text:Ul({code:o}),soul:"STREAM_NOTIFICATION_RECORDINGS_ERROR"}))})(t,e))),zI=e=>(t,s)=>{const n=s();Un({type:Pn,user_interaction:fN(n),...e.watchContext});const i=Yf(n)[e.rid];return i?TA(i)?Promise.resolve():ag(n)&&(e=>ru(e)&&!Rg(e))(n)?(t(uI(qp,{recording:i})),Promise.resolve()):Wy(n)?(t(HI(i.id)),Promise.resolve()):t(WI(i,e.fromStart,e.pin)):(Yn({text:x(150),soul:"STREAM_NOTIFICATION_RECORDINGS_ERROR"}),t(FI()),Promise.reject(new Error("Recording ID doesn't exist")))},$I="STREAM_REPLAY_RECEIVED",KI="STREAM_REPLAY_NEXT_REQUESTED",QI="STREAM_PARAMETERS_STORED",ZI="STREAM_TIME_CHANGED",XI=e=>({type:QI,parameters:e}),JI="NOT_AVAILABLE",ew="BLOCKED",tw="BLOCKED_LIVE",sw="BLOCKED_UPCOMING",nw="BLOCKED_RECORDING",iw="SUBSCRIBE_TO_REPLAY",rw="UPCOMING",ow="HAS_CONNECTED_CONTENT",aw="RESTRICTED_REPLAY",lw="RESUME_RECORDING",cw="RESUME_REPLAY",dw="WATCH_LIVE",pw="WATCH_RECORDING",uw="WATCH_REPLAY",hw=e=>{switch(e){case cw:case lw:return{text:pl(),title:pl()};case pw:return{text:hl(),title:x(41)};case uw:return{text:hl(),title:x(42)};case tw:case dw:return{text:ml(),title:ml()};default:return{text:hl(),title:hl()}}},mw=()=>EA({title:x(238),text:x(237),soul:"BROADCAST_SUBSCRIBE_TO_REPLAY_MODAL"}),gw=()=>{bi({text:x(35),soul:"STREAM_TOAST_REPLAY_DISABLED"})},yw=()=>(e,t)=>{const s=t();gw();const n=0===Bu({endTime:$g(s),currentTime:Qg(s)});(!py(s)||n||ju(s))&&(e(Zw()),e(Df()))},_w=e=>t=>{t(Jw(Qv(e.cda,e.pid),null))},Ew=e=>(t,s)=>cf(async()=>{const n=s(),{cid:i,program:r,pin:o,psid:a}=e,l=tf(n,i);t(XI({isContinuous:e.isContinuous}));const c=await uf({isDRMRequired:Sp(l).drm_required,isCastAvailable:Sg(n),pin:o}),d={cid:i,program_id:r.id,pre_padding:0,post_padding:0,with_schedule:Boolean(l.is_gt12_bv),...c};KN({psid:a,asset_id:r.id,asset_type:"REPLAY",streamType:d.stream_type}),JN(a);const[p,u]=await Promise.all([CN.gp(d),t(BI(l))]);ef(a,p);const{stream:h,drm_limit_applied:m}=p;m&&vI(),t(_f(d.stream_type)),o&&Un({type:Dn,pin_success:!0}),Un({type:kn,mode:"replay",csid:p.csid,channel_id:l.cid,program_id:r.id}),t(DI({markers:p.stream.schedule,markersId:`${l.cid}-${r.id}`,markersHandling:u})),t({type:$I,source:hf(d,p),prePadding:qI(h),postPadding:GI(h),seekForwardEligible:YI(h),initialTime:e.initialTime,autoPlay:e.autoPlay,trackingInfo:p.tracking,isContinuous:e.isContinuous,nielsenTrackingInfo:{subbrand:p.nielsen_subbrand,stationId:p.nielsen_station_id}})},e=>t((e=>t=>{const s=e;return s.code===ua.GO?(t(Df()),$n({text:x(236),soul:"STREAM_NOTIFICATION_REPLAY_NOT_READY_WARNING"})):t(jf(s)),s})(e))),vw=e=>(t,s)=>{const n=s(),{channelId:i,program:r}=e,o=tf(n,i),a=r.id!==Zu(n);t(Rf(Gp));const l=$N();t(tI({mode:Gp,channel:o,program:r}));const c=a||!uy(n);return t(Ew({cid:i,pin:e.pin,initialTime:e.initialTime,isContinuous:e.isContinuous,program:r,autoPlay:c,psid:l}))},xw=e=>async(t,s)=>{const n=s(),{pid:i,initialTime:r}=e,o=e.isContinuous||(e=>cy(e).loadingNext)(n);Un({type:Pn,user_interaction:fN(n),...e.watchContext});const a=await NN(uo(n),i);if(!a)return t(yw()),null;const l=tf(n,a.cid),c=_h(n),d=vm({broadcast:a,channel:l,replayAvailability:c}
1);if(bm(d))return mw(),null;if(!xm(d))return t(yw()),null;const p=r>=0?r:wh(a.s,a.e,gf(n,i));return ag(n)&&Qp(n)?(t(uI(Gp,{channelId:a.cid,program:a,initialTime:p,pin:e.pin})),null):Wy(n)?(t(_w({cda:l.url_cid,pid:a.id})),null):t(vw({channelId:a.cid,program:a,initialTime:p,pin:e.pin,isContinuous:Boolean(o)}))},bw=(e,t)=>s=>{t&&!hm(e)?s(zI({rid:t,fromStart:!0})):s(xw({pid:e.id,initialTime:0}))},Aw=(e,t)=>Jw(rx(e,t)),Sw=e=>Jw(ox(e)),Tw=e=>e.streamLib.pin.isRequired,Cw=e=>e.streamLib.pin.attemptsLeft,Nw=e=>e.streamLib.pin.lockedUntil,fw=e=>e.streamLib.pin.lockDuration,Iw=e=>Tw(e)&&!Cw(e),ww="CINEMA",Ow="SPLIT",Dw=e=>e.media.wrapper,Rw=e=>Dw(e)===ww,jw=e=>Dw(e)===Ow,kw=e=>py(e)||Tw(e),Pw=[ah,oh,ch,dh],Lw=(e,t)=>e.find(e=>e.id===t),Mw=e=>({contentIdType:e.type===rh.nl?$A:QA,imageToken:e.image_token,brand:{title:e.brand?.title,logoToken:e.brand?.logo_token}}),Uw=(e,t)=>{let s="";if(e&&(s+=x(247,{season:e})),t){const e=(e=>x(63,e))({episode:t});s+=s?` ${e}`:e}return s},Vw=(e,t)=>{if(!e)return"";if(!t)return e.join(", ");const s=new Intl.DisplayNames([t],{type:"language"});return e.map(e=>{if(!e)return null;try{return s.of(e)}catch{return e}}).filter(Boolean).join(", ")},Bw=e=>e?`${Oc()} ${e}`:x(368),Fw=e=>{const t=e.episodeTitle||e.seriesTitle,s=Uw(e.seasonNumber,e.episodeNumber);return s?`${s} - ${t}`:t},Hw=e=>{switch($p(e)){case Hp:case Yp:case Gp:case qp:return Qu(e).t;case Wp:return im(e);case zp:return rm(e);default:return null}},Gw=e=>Kp(e)?Nm(e):Hw(e),qw=e=>{switch($p(e)){case Hp:case Yp:case Gp:case qp:return Qu(e).et;case Wp:return(e=>$h(e)?.subtitle)(e);case zp:return Fw({episodeNumber:am(e),episodeTitle:im(e),seasonNumber:om(e),seriesTitle:rm(e)});default:return null}},Yw=e=>{switch($p(e)){case Hp:case Yp:case Gp:case qp:return(e=>e.stream.program.i_t)(e);case Wp:case zp:return(e=>$h(e)?.image_token)(e);default:return null}},Ww=e=>{switch($p(e)){case Hp:case Yp:case Gp:case qp:return fm(e);case Wp:case zp:return cm(e);default:return null}},zw=e=>{switch($p(e)){case Hp:case Yp:case Gp:case qp:return Nm(e);case Wp:case zp:return(e=>$h(e)?.brand?.title)(e);default:return null}},$w=e=>{switch($p(e)){case Hp:case Yp:case Gp:case qp:return lx(Tm(e),Zu(e));case Wp:return vx(Kh(e));case zp:return Nx(Jh(e),em(e));default:return null}},Kw={[vC]:null,[xC]:null,[bC]:null,[AC]:null,[SC]:null,[TC]:null,[CC]:null,[NC]:null},Qw=()=>(e,t)=>{const s=t();ru(s)&&e(Ya({...Kw,[vC]:Tm(s)})),Zp(s)&&e(Ya({...Kw,[vC]:Tm(s),[xC]:Zu(s)})),Xp(s)&&e(Ya({...Kw,[bC]:sh(s)})),Jp(s)&&e(Ya({...Kw,[AC]:Kh(s),[NC]:sm(s)})),eu(s)&&e(Ya({...Kw,[SC]:Jh(s),[TC]:em(s),[CC]:tm(s),[NC]:sm(s)}))},Zw=()=>e=>{e(Ya(Kw))},Xw=()=>(e,t)=>{const s=t(),n=Oa(s);(Kp(s)||Qp(s))&&n!==zv(Tm(s))&&e(eO(Tm(s))),Zp(s)&&n!==Qv(Tm(s),Zu(s))&&e(_w({cda:Tm(s),pid:Zu(s)})),Xp(s)&&n!==Jv(sh(s))&&e(HI(sh(s)));const i=Kh(s),r=sm(s);Jp(s)&&n!==rx(i,r)&&e(Aw(i,r));const o={series_id:Jh(s),season_id:em(s),episode_id:tm(s),term_token:r};eu(s)&&n!==ox(o)&&e(Sw(o))},Jw=(e,t,s)=>(n,i)=>{const r=i();let o;Pu(r)&&n(AN()),pp(r)&&(o=up(r).pathname),Fy(r)||Gy(r)||n(Fa(o||Oa(i()))),n(Ga({path:e,queryParams:t,state:s}))},eO=e=>Jw(zv(e)),tO=e=>!ju(e)&&!Gy(e),sO="MEDIA_VIEW_CHANGED",nO=({view:e})=>(t,s)=>{const n=Vy(s()),i=py(s());e!==n&&(e!==jd&&e!==Ld||(e=>{oe(Uy,e)})(e),t({type:sO,current:e}),((e,t)=>{e&&t!==Pd&&Un({type:"MEDIA_VIEW_CHANGE",view_mode:t.toLowerCase()})})(i,e))},iO=()=>(e,t)=>{const s=t(),n=ja(s);e(n?Ga(n):zE())},rO=()=>(e,t)=>{const s=t();Kp(s)||Qp(s)?e(eO(Tm(s))):Zp(s)?e(_w({cda:Tm(s),pid:Zu(s)})):Xp(s)?e(HI(sh(s))):Jp(s)?e(Aw(Kh(s),sm(s))):eu(s)&&e(Sw({series_id:Jh(s),season_id:em(s),episode_id:tm(s),term_token:sm(s)}))},oO=()=>(e,t)=>{const s=t();tO(s)&&(Fy(s)?e(iO()):e(rO()))},aO=()=>(e,t)=>{const s=t();switch(Vy(s)){case kd:Hy(s)&&e(iO()),e(aN());break;case jd:e(iO());break;case Pd:e(nO({view:Ld}))}},lO=Ey,cO=e=>(t,s)=>cf(async()=>{const{cid:n}=e,i=s();t(Rf(Yp));const r=$N(),o=tf(i,e.cid),a=await NN(uo(i),e.pid);let{resumeTime:l}=e;l||(l=Wu(i));const c={cid:n,...await uf({isDRMRequired:Sp(o).drm_required,isCastAvailable:Sg(i),pin:e.pin})};KN({psid:r,asset_id:n,asset_type:"TIMESHIFT",streamType:c.stream_type}),t(tI({mode:Yp,channel:o,program:a}
1)),t((e=>({type:pI,resumeTime:e}))(l)),JN(r);const d=await CN.Eg(c);return ef(r,d),d.drm_limit_applied&&vI(),t(_f(c.stream_type)),e.pin&&Un({type:Dn,pin_success:!0}),Un({type:kn,mode:"timeshift",csid:d.csid,channel_id:o.cid,program_id:a?.id}),t({type:dI,source:hf(c,d),requestPINAt:d.youth_protection_pin_required_at,trackingInfo:d.tracking})}),dO=e=>(t,s)=>{const{cid:n}=e,i=s();return Un({type:Pn,user_interaction:fN(i)}),nf(i,n)?(t(aI(n)),Promise.resolve()):t(cO(e))},pO=()=>(e,t)=>{const s=t();if(!lO(s))return Promise.resolve();if(e(XI({autoplay:!0})),Kp(s)){if(Wu(s))return e(dO({cid:Cm(s),pid:Zu(s),resumeTime:Qg(s)}))}return Promise.resolve(e({type:Cf}))},uO=()=>async(e,t)=>{const s=t();if((e=>!!Kp(e)&&!Wu(e)&&!Gu(e)&&Fg(e))(s)){const t=await CN.lL({cid:Cm(s)});e((i=t,(e,t)=>{const s=(0,Vt.hY)()-Math.floor(Qg(t()));return e({type:lI,timeshiftInfo:i,liveGap:s})})),t.quality_limited&&zn({text:(n={restrictedQuality:t.allowed_quality.toUpperCase()},x(145,n)),soul:"STREAM_NOTIFICATION_RESTRICTED_QUALITY"})}var n,i;e(XI({autoplay:!1})),e({type:Tf})},hO=()=>(e,t)=>{const s=t();if(!Kp(s))return;const n=Gg(s);Hg(s)||qg(s)?EA({title:x(142),text:x(141),soul:"STREAM_SUBSCRIBE_TO_REPLAY_MODAL"}):"eligible"===n&&zn({text:x(133),soul:"STREAM_NOTIFICATION_UNREGISTERED_TIMESHIFT_PAUSE"})},mO=()=>(e,t)=>{e(LI(Mg(t())))},gO=!Fe,yO=100,_O=e=>ju(e)?(e=>e.cast?.player.volume)(e):e.stream.volume.level,EO=e=>ju(e)?(e=>e.cast?.player.muted)(e):e.stream.volume.muted,vO=e=>!ju(e)||(e=>e.cast?.player.canChangeVolume)(e),xO=e=>!EO(e)&&0!==_O(e),bO="STREAM_VOLUME_MUTED",AO="STREAM_VOLUME_UNMUTED",SO="STREAM_VOLUME_UPDATED",TO=()=>({type:bO}),CO=(e=!1)=>({type:AO,avoidRestore:e}),NO=e=>(e=(0,DS.A)(e,0,yO),{type:SO,level:e}),fO=(e,t)=>e-t*Math.floor(e/t),IO="STREAM_ZAP_STARTED",wO="STREAM_ZAP_FINISHED";let OO=null;const DO=(e,t)=>t?e?"keyboard_arrowRight":"player_channel_next":e?"keyboard_arrowLeft":"player_channel_previous",RO=(e,t,s)=>(n,i)=>{const r=i(),o=vp(r)[e],a=o.cid;clearTimeout(OO),!ag(r)||Rg(r)?(n(Vf(gI(r)[a])),n(Mf(o)),n({type:IO}),OO=setTimeout(()=>{n({type:wO,cid:a}),as({action:"live",category:"watch",label:DO(t,s)})},700)):n(mI(xf,{cid:a}))},jO=(e,t,s)=>{const n=vp(e),i=Ep(e),r=i.length;if(!r)return n.length?-2:-1;const o=i.indexOf(t);if(-1===o&&-1===s)return r-1;const a=fO(o+s,r);return n.findIndex(e=>e.cid===i[a])},kO=e=>(t,s)=>{const n=s(),i=Cm(n),r=jO(n,i,1);if(r>=0)t(RO(r,e,!0));else if(-2===r){const e=vp(n)[0];t(aI(e.cid))}},PO=e=>(t,s)=>{const n=s(),i=Cm(n),r=jO(n,i,-1);if(r>=0)t(RO(r,e,!1));else if(-2===r){const e=vp(n),s=e[e.length-1];t(aI(s.cid))}},LO=(e,t,s)=>{if(!t.hasOwnProperty(s))return null;const n=e.findIndex(e=>e[s]===t[s]);if(-1===n)return;return e[(n+1)%e.length]},MO="STREAM_SUBTITLES_AVAILABLE_TRACKS_STORED",UO="STREAM_SUBTITLES_TRACK_STORED",VO="STREAM_SUBTITLES_AUTO_ENABLED_STORED",BO="CAST_INTRO",FO=e=>({type:Vx,position:e}),HO=(e,t)=>({type:Wx,relativeTime:e,absoluteTime:t}),GO=()=>({type:Lx}),qO=e=>({type:Hx,status:e}),YO=e=>({type:Yx,isMuted:e}),WO=e=>({type:Kx,isSyncing:e}),zO=()=>(oe(BO,!1),{type:Ox}),$O="PLAYER_SUBTITLES_TRACK_CHANGE_REQUESTED",KO="PLAYER_SUBTITLES_CUE_CLEARED",QO=()=>({type:KO}),ZO=e=>e.stream.subtitles.track,XO=e=>e.stream.subtitles.availableTracks,JO=e=>!(0,me.A)(XO(e)),eD=e=>e.stream.subtitles.autoEnabled,tD="SUBTITLES_TRACK",sD="SUBTITLES_AUTO_ENABLED_ENABLED",nD=e=>{if((0,me.A)(e))return null;const t=ae(tD),s=t?.hearingImpaired;let n=t&&e.find(e=>e.languageCode===t.languageCode&&e.hearingImpaired===s);return n||(n=t&&e.find(e=>e.languageCode===t.languageCode)),n||e[0]},iD=(e,t,s)=>Boolean(e&&Array.isArray(s)&&t!==e&&s.find(t=>t.languageCode===e)),rD=e=>(t,s)=>{const n=s(),i=((e,t)=>{if(!t||!e||!e.length)return null;const s=e.find(({id:e,languageCode:s,hearingImpaired:n})=>e&&t.id===e||s&&t.languageCode===s&&t.hearingImpaired===n);return s||e.find(({id:e,languageCode:s})=>e&&t.id===e||s&&t.languageCode===s)})(XO(n),e);if(!i)return null;ju(n)?t((e=>({type:Fx,track:e}))(i)):t((e=>({type:$O,track:e}))(i));const r=eD(n);var o;return r&&(o=r===i.languageCode,oe(sD,o)),i},oD=e=>({type:UO,track:e}),aD=e=>({type:MO,availableTracks:e}),lD=(e,t)=>(s,n)=>{const i=n();if(1===t.length||JO(i)&&ZO(i)?.label===e?.label)return null;s(aD(t));const r=eD(i);if((()=>{const e=ae(sD);return!(0,nC.A)(e)||e})()&&iD(r,e.languageCode,t))return s(rD({languageCode:r}));const o=nD(t),a=o?.languageCode,l=o?.hearingImpaired;return iD(a,e.languageCode,t)?s(rD({languageCode:a,hearingImpaired:l})):s(oD(e))},cD=e=>t=>{const s=t(rD(e));s&&((e=>{oe(tD,e)})(s),Un({type:"SUBTITLE_CHANGE",subtitle_option:s.languageCode}))},dD=e=>e.stream.audio.track,pD=e=>e.stream.audio.availableTracks,uD=e=>!(0,me.A)(e.stream.audio.availableTracks),hD=e=>!(tu(e)&&dm(e)),mD="PLAYER_AUDIO_TRACK_CHANGE_REQUESTED",gD=(e,t,s)=>e||!t||s-t<=60?0:t,yD="STREAM_VOD_RECEIVED",_D="AUDIO_TRACK",ED=e=>{if((0,me.A)(e))return null;const t=ae(_D);return t&&e.find(e=>e.languageCode===t.languageCode)||e[0]},vD=e=>{oe(_D,e)},xD=e=>t=>{vD(null),t(jf(e))},bD=(e,t,s)=>{const n=Hh(e.terms_catalog,s);return{id:e.id,type:e.type,brand:e.brand,title:e.title,subtitle:e.subtitle,trailer_token:e.trailer_token,runtime:e.runtime,duration:(0,Vt.H8)(e.runtime),image_token:e.image_token,drm_required:n?.drm_required,position:t?t.position:0,term_token:s,year:e.year,isSingleAudioStream:Uh(n)}},AD=async e=>{const{episodeId:t,series:s}=e,{current_season:n}=s,i=n.episodes.findIndex(e=>e.id===t),r=n.episodes[i+1];if(r)return r;const o=s.seasons.findIndex(e=>e.id===n.id),a=s.seasons[o+1];if(!a)return null;const l=await jb.Jw({series_id:s.id,season_id:a.id});return l.current_season?.episodes[0]},SD=e=>{const{vod:t,psid:s,isEpisode:n}=e;return async(i,r)=>{const o=n?t.episodes[0].terms_catalog:t.terms_catalog,a=kh(o)[0],l=await uf({isDRMRequired:!1,isCastAvailable:Sg(r()),pin:e.pin,streamProviderId:VT(a)}),c={teasable_id:e.id,teasable_type:t.type,https_watch_urls:!0,...l};if(Uh(a)){const e=t?.trailer_audio_languages?.[0];if(!e)throw new Error("No trailer audio language found");c.lang=e}KN({psid:s,asset_id:t.id,asset_type:"VOD_TRAILER",streamType:c.stream_type}),JN(s);const d=await CN.r4(c);return ef(s,d),{requestData:c,response:d}}},TD=e=>{const{vod:t,psid:s,maxQualityPurchased:n,termToken:i}=e;return async(r,o)=>{const a=Hh(t.terms_catalog,i),l=VT(a),c=await uf({isDRMRequired:a.drm_required,isCastAvailable:Sg(o()),pin:e.pin,streamProviderId:l}),d={term_token:i,teasable_id:t.id,teasable_type:t.type,...c},p={psid:s,asset_id:i,asset_type:"VOD",streamType:d.stream_type,stream_provider_id:l};if(Uh(a)){if(d.lang=e.lang,!d.lang)throw new Error("No VOD audio language found");p.stream_id=e.streamId}KN(p),JN(s);const u=await CN.Mx(d);ef(s,u);const h=n&&d?.quality&&!jh(d.quality,n.toLowerCase());return(u.drm_limit_applied||h)&&vI(),r(_f(d.stream_type)),{requestData:d,response:u}}},CD=e=>(t,s)=>cf(async()=>{const n=s(),{movie_id:i,term_token:r,pin:o}=e;t(Rf(Wp));const a=$N(),l=await jb.wH({movie_id:i}),c=l.trailer_token===r,d=c?kh(l.terms_catalog)[0]:Hh(l.terms_catalog,r),{playbackSupport:p,error:u}=await UT(!c&&d?.drm_required,VT(d));if(!p)throw new af(u);const h=Sh(n,rh.nl,i);t(tI({mode:Wp,vod_content:{movie:l,...bD(l,h,r)}}));const m=t(wD({term:d,track:e.track,hdrType:p.hdr_type,dolbySupported:p.eac3_supported,isTrailer:c})),{requestData:g,response:y}=c?await t(SD({vod:l,id:i,pin:o,psid:a})):await t(TD({vod:l,termToken:r,pin:o,psid:a,lang:m?.languageCode,streamId:m?.streamingOptionToken,maxQualityPurchased:h?.quality}));return o&&Un({type:Dn,pin_success:!0}),Un({type:kn,mode:c?wN:"vod-movie",csid:y.csid,content_id:l.id,content_id_type:$A,term_token:r}),t({type:yD,csid:y.csid,source:hf(g,y),initialTime:gD(c,h?.position,(0,Vt.H8)(l.runtime)),trackingInfo:y.tracking})},e=>t(xD(e))),ND=e=>(t,s)=>{const n=s();return Un({type:Pn,user_interaction:fN(n),...e.watchContext}),ag(n)&&Qp(n)?(t(uI(Wp,{movieId:e.movie_id,termToken:e.term_token}
1)),Promise.resolve()):Wy(n)?(t(Aw(e.movie_id,e.term_token)),Promise.resolve()):t(CD(e))},fD=e=>(t,s)=>cf(async()=>{const n=s();t(Rf(zp));const i=$N(),{series_id:r,season_id:o,episode_id:a,term_token:l,pin:c}=e,d=await jb.Jw({series_id:r,season_id:o}),{current_season:p}=d,u=p?.trailer_token&&p.trailer_token===l,h=Lw(p?.episodes,a),m={...p,...h},g=u?kh(p.terms_catalog)[0]:Hh(h.terms_catalog,l),[{playbackSupport:y,error:_},E]=await Promise.all([UT(!u&&g.drm_required,VT(g)),AD({series:d,episodeId:h.id})]);if(!y)throw new af(_);const v=Sh(n,rh.Uh,a);t(tI({mode:zp,vod_content:{episode:h,series:d,...bD(m,v,l),nextEpisode:E}}));const x=t(wD({term:g,track:e.track,hdrType:y.hdr_type,dolbySupported:y.eac3_supported,isTrailer:u})),{requestData:b,response:A}=u?await t(SD({vod:m,id:p.id,pin:c,psid:i,isEpisode:!0})):await t(TD({vod:m,termToken:l,pin:c,psid:i,lang:x?.languageCode,streamId:x?.streamingOptionToken,maxQualityPurchased:v?.quality}));return c&&Un({type:Dn,pin_success:!0}),Un({type:kn,mode:u?wN:"vod-episode",csid:A.csid,content_id:h?.id||p.id,content_id_type:QA,term_token:l}),t({type:yD,csid:A.csid,source:hf(b,A),initialTime:gD(u,v?.position,(0,Vt.H8)(m.runtime)),trackingInfo:A.tracking})},e=>t(xD(e))),ID=e=>(t,s)=>{const n=s();return Un({type:Pn,user_interaction:fN(n),...e.watchContext}),ag(n)&&Qp(n)?(t(uI(zp,e)),Promise.resolve()):Wy(n)?(t(Sw(e)),Promise.resolve()):t(fD(e))},wD=e=>t=>{if(e.isTrailer||!Uh(e.term))return e.track;let s=e.track;const n=(i=((e,t,s)=>{if(!e)return[];let n=e;s||(n=n.filter(e=>e.audio_qualities.includes("2.0")));const i=(e=>e.flatMap(e=>e.audio_qualities.flatMap(t=>e.audio_language_codes.map(s=>({dolby:"5.1"===t,languageCode:s,token:e.token})))).filter((e,t,s)=>t===s.findIndex(t=>t.languageCode===e.languageCode&&t.dolby===e.dolby)))(((e,t)=>e.filter(e=>e.hdr_types.includes(t)))(n,t));return s?i:i.filter(e=>!e.dolby)})(e.term.streaming_options,e.hdrType,e.dolbySupported),i.map(({dolby:e,languageCode:t,token:s})=>({id:`audio/${t}${e?"-dolby":""}`,dolby:e,label:t,languageCode:t,streamingOptionToken:s})));var i;return s||(s=ED(n)),t(LD({track:s,availableTracks:n})),s},OD="STREAM_AUDIO_AVAILABLE_TRACKS_STORED",DD="STREAM_AUDIO_TRACK_STORED",RD=e=>async(t,s)=>{const n=s(),i=pD(n).find(({id:t,languageCode:s})=>t&&t===e.id||s&&s===e.languageCode);if(!i)return null;let r;return r=ju(n)?await t((e=>({type:Px,track:e}))(i)):await t((e=>({type:mD,track:e}))(i)),vD(i),dD(n)&&Un({type:"AUDIO_CHANGE",audio_option:i.languageCode}),r},jD=e=>(t,s)=>{const n=s();switch($p(n)){case Wp:case zp:if(dm(n)){t((e=>(t,s)=>{const n=s(),i=pD(n),r=sm(n),o=i.find(t=>t.id===e.id);let a;a=Jp(n)?t(ND({movie_id:Kh(n),term_token:r,track:o})):t(ID({series_id:Jh(n),season_id:em(n),episode_id:tm(n),term_token:r,track:o})),a.then(()=>{t(RD({languageCode:o.languageCode}))})})(e));break}t(RD(e));break;default:t(RD(e))}as({action:"toggleAudio",category:"videoPlayer",label:e.languageCode}),zN({type:DN,data:{language:e.languageCode}})},kD=e=>({type:DD,track:e}),PD=e=>({type:OD,availableTracks:e}),LD=e=>(t,s)=>{const{track:n,availableTracks:i}=e,r=s();if((0,me.A)(i)||uD(r)&&dD(r)?.id===n?.id)return;t(PD(i));const o=ED(i),a=o?.languageCode;a&&a!==n?.languageCode&&i.find(e=>e.languageCode===a)&&t(RD({languageCode:a})),t(kD(n))},MD=e=>!Kp(e)||!!Zu(e)&&(Fg(e)||"available"===Gg(e)),UD=e=>!!Kp(e)&&(!!Hg(e)||(qg(e)||(e=>"eligible"===Gg(e))(e))),VD=e=>mN()&&!(e=>Sm(e).is_radio)(e)&&!ju(e)&&!Gy(e),BD=e=>e.stream.zap,FD=e=>iu(e),HD=e=>{if(!FD(e))return!1;const t=Ep(e);return!(e=>0===vp(e).length)(e)&&(t.length>1||!t.includes(Cm(e)))},GD=e=>e.osd.settings,qD="KEYBOARD",YD="GUI",WD="SURFACE",zD="ANY",$D="LOWER_VOLUME",KD="OSD_MUTE",QD="OSD_PAUSE",ZD="OSD_PLAY",XD="RAISE_VOLUME",JD="OSD_SEEK_BACKWARD",eR="OSD_SEEK_FORWARD",tR="REPLAY",sR="TOGGLE_AUDIO",nR="OSD_TOGGLE_CINEMA",iR="OSD_TOGGLE_FULLSCREEN",rR="OSD_TOGGLE_PIP",oR="TOGGLE_SUBTITLES",aR="OSD_UNMUTE",lR="ZAP_NEXT",cR="ZAP_PREVIOUS",dR=(e,t=YD,s)=>{const n=new CustomEvent(e,{detail:{source:t,...s}});window.dispatchEvent(n),e!==zD&&dR(zD,t,s)},pR=(e,t)=>{window.addEventListener(e,t)},uR=(e,t)=>{window.removeEventListener(e,t)},hR=e=>(t,s)=>{const n=s();uy(n)?t((e=>(t,s)=>{const n=s();vu(n)||(t(pO()),dR(ZD,e,{iconId:Ct,persistent:!1}))})(e)):t((e=>(t,s)=>{const n=s();UD(n)?t(hO()):MD(n)&&!vu(n)&&(t(uO()),dR(QD,e,{iconId:pC,persistent:!0}))})(e))},mR=(e,t)=>(s,n)=>{Qm(n())&&(s(MI(e)),dR(JD,t,{iconId:uC}))},gR=(e,t)=>(s,n)=>{const i=n();Xm(i)&&(s(VI(e)),dR(eR,t,{iconId:hC}))},yR=e=>(t,s)=>{const n=s();xO(n)?t((e=>t=>{t(TO()),dR(KD,e,{iconId:gC})})(e)):t((e=>t=>{t(CO()),dR(aR,e,{iconId:yC})})(e))},_R=e=>(t,s)=>{t((e,t)=>
1{const s=t(),n=_O(s)+5;e(NO(n))}),dR(XD,e,{output:`${_O(s())}%`})},ER=e=>(t,s)=>{t((e,t)=>{const s=t(),n=_O(s)-5;e(NO(n))}),dR($D,e,{output:`${_O(s())}%`})},vR=e=>(t,s)=>{if(!HD(s()))return;t(kO(e===qD)),dR(lR,e,{iconId:_C})},xR=e=>(t,s)=>{if(!HD(s()))return;t(PO(e===qD)),dR(cR,e,{iconId:Dv})},bR=e=>(t,s)=>{if(!JO(s()))return;const n=t((e,t)=>{const s=t(),n=LO(XO(s),ZO(s),"id");return e(cD({id:n.id})),n});dR(oR,e,{output:n.label.toUpperCase(),iconId:EC})},AR=e=>(t,s)=>{if(!uD(s()))return;const n=t((e,t)=>{const s=t(),n=LO(pD(s),dD(s),"id");return e(RD({id:n.id})),n});dR(sR,e,{output:n.languageCode?.toUpperCase(),iconId:"icons-audiomenu"})},SR=()=>{const e=(0,l.wA)();return(0,pe.jsx)(Cr,{keyMap:{[lr]:()=>e(AR(qD)),[or]:()=>e(hR(qD)),[hr]:()=>e(hR(qD)),[ar]:()=>e(ER(qD)),[ir]:()=>e(_R(qD)),[gr]:()=>e((e=>(t,s)=>{const n=s();VD(n)&&!vu(n)&&(t(TN()),dR(rR,e))})(qD)),[yr]:()=>e((e=>(t,s)=>{const n=s();tO(n)&&(t(oO()),dR(nR,e))})(qD)),[pr]:()=>e((e=>(t,s)=>{const n=s();OC(n)&&(t(lN()),dR(iR,e))})(qD)),[mr]:()=>e(yR(qD)),[_r]:()=>e(xR(qD)),[Er]:()=>e(vR(qD)),[cr]:()=>e((e=>(t,s)=>{const n=s();if(!GD(n).replay)return;if(!ru(n))return t(mO()),void dR(tR,e,{iconId:mC});const i=Qu(n),r=Sm(n),o=_h(n);switch(vm({broadcast:i,channel:r,replayAvailability:o})){case gm:t(bw(i,sh(n))),dR(tR,e,{iconId:mC});break;case Em:mw();break;case _m:gw()}})(qD)),[rr]:()=>e(gR("keyboard",qD)),[nr]:()=>e(mR("keyboard",qD)),[dr]:()=>e(bR(qD))}})},TR="dai-ui";var CR="wKJng",NR="mW4UY";const fR=e=>(0,pe.jsx)("div",{className:(0,Ye.A)("Qs5qr",e.className,{[CR]:e.isViewFullscreen,[NR]:"l"===e.size}),"data-soul":"OSD_BOTTOM",children:e.children}),IR="k";var wR="Pc3eI",OR="XjL9c",DR="hA5ZA",RR="wFjci",jR="w0j1J";const kR=({className:e,children:t,disabled:s,iconId:n,iconClassName:i,isMiddle:r,isPreview:o,hasShadow:a,...l})=>o?(0,pe.jsx)("div",{className:(0,Ye.A)(wR,e)}):(0,pe.jsxs)(Hs,{className:(0,Ye.A)(wR,e,{[OR]:s,[jR]:r}),disabled:s,control:an,...l,children:[n&&(0,pe.jsx)(ft,{id:n,className:(0,Ye.A)(DR,i,{[RR]:a})}),t]}),PR=e=>{const t=(0,l.wA)(),s=(0,l.d4)(tO),n=(0,l.d4)(Fy),i=(0,Re.useCallback)(()=>{t(oO())},[t]);return s?(0,pe.jsx)(kR,{contentCenter:!0,onClick:i,title:`${x(n?173:172)} (t)`,iconId:n?"icons-cinema-out":"icons-cinema-in",soul:"OSD_CONTROL_CINEMA",hasShadow:e.hasShadow}):null},LR=({close:e,isViewFullscreen:t,...s})=>Pe.bh&&t?null:(0,pe.jsx)(kR,{onClick:e,contentCenter:!0,title:P(),iconId:Tt,soul:"OSD_CONTROL_CLOSE",...s}),MR=e=>{const t=(0,l.wA)(),s=(0,l.d4)(OC),n=(0,l.d4)(Gy),i=(0,Re.useCallback)(()=>{t(lN())},[t]);return s?(0,pe.jsx)(kR,{contentCenter:!0,onClick:i,title:`${x(n?176:175)} (f)`,iconId:n?"icons-shrink":"icons-expand",soul:"OSD_CONTROL_FULLSCREEN",hasShadow:e.hasShadow}):null};var UR=s(4022);const VR=(e,t,s)=>{const n=e-(Math.max(s+e-t,0)-Math.min(s,0));return(0,DS.A)(n,0,e)},BR=(e,t)=>{const{height:s,width:n}=e;t||(t=document.documentElement.getBoundingClientRect());const i=((e,t)=>{const s=e.width,n=t.width;return VR(s,n,e.left)})(e,t),r=((e,t)=>{const s=e.height,n=t.height;return VR(s,n,e.top)})(e,t),o=n*s,a=i*r;return o&&a?a/o:0},FR="left",HR="right",GR="center",qR="top",YR="bottom",WR="center";var zR="XM1oe",$R="Sj8sG",KR="KoVcN",QR="p0pfv",ZR="pV2UI",XR="FsplY",JR="IyLAt",ej="PJF5q";const tj={x:0,y:0};class sj extends Re.PureComponent{constructor(...e){super(...e),this.dropdownRef=(0,Re.createRef)(),this.state={align:null,location:tj,opened:!1,revealed:!1}}getAlignment(){return{x:this.state.align?.x||this.props.alignX,y:this.state.align?.y||this.props.alignY}}getLocationFor(e,t,s){const{offsetX:n,offsetY:i}=this.props,r=e.left-this.state.location.x,o=e.top-this.state.location.y;let a,l;return a=s.x===FR?t.right-e.width+n:s.x===HR?t.left-n:t.left+t.width/2-e.width/2+n,l=s.y===qR?t.top-e.height-i:s.y===YR?t.bottom+i:t.top-(e.height/2-t.height/2)+i,a-=r,l-=o,{x:a,y:l}}getVisibleRatioX(e,t,s){const n=e.width,i=document.documentElement.clientWidth,{x:r}=this.getLocationFor(e,t,{x:s});return VR(n,i,r)/n}getVisibleRatioY(e,t,s){const n=e.height,i=document.documentElement.clientHeight,{y:r}=this.getLocationFor(e,t,{y:s});return VR(n,i,r)/n}getOptimalAlignment(e,t){return 1===e[t]?t:Object.entries(e).filter(([e])=>t===GR||e!==GR).sort(([,e],[,t])=>t-e)[0][0]}adjustAlignment(e,t){return{x:this.getOptimalAlignment({[GR]:this.getVisibleRatioX(e,t,GR),[FR]:this.getVisibleRatioX(e,t,FR),[HR]:this.getVisibleRatioX(e,t,HR)},this.props.alignX),y:this.getOptimalAlignment({[YR]:this.getVisibleRatioY(e,t,YR),[WR]:this.getVisibleRatioY(e,t,WR),[qR]:this.getVisibleRatioY(e,t,qR)},this.props.alignY)}}
1adjustLocation(e,t,s){const{clientHeight:n,clientWidth:i}=document.documentElement,r=this.getLocationFor(e,t,s);return s.x===FR?r.x+=-Math.min(r.x,0):s.x===HR&&(r.x-=Math.max(r.x+e.width-i,0)),s.y===qR?r.y+=-Math.min(r.y,0):s.y===YR&&(r.y-=Math.max(r.y+e.height-n,0)),r}getBestPosition(e){const t=e.getBoundingClientRect(),s=this.dropdownRef.current.getBoundingClientRect(),n=this.adjustAlignment(s,t);return{align:n,location:this.adjustLocation(s,t,n)}}adjustPosition(e){const t=this.getBestPosition(e);this.setState({...t})}getElement(){return this.dropdownRef.current}open(e){this.setState({opened:!0},()=>{this.adjustPosition(e),this.setState({revealed:!0})})}close(){this.setState({location:tj,opened:!1,revealed:!1})}render(){if(!this.state.opened)return null;const{props:e}=this,{location:t}=this.state,s=this.getAlignment();return ci((0,pe.jsx)("div",{style:{left:`${t.x}px`,top:`${t.y}px`},ref:this.dropdownRef,className:(0,Ye.A)("zdMum",e.className,{[zR]:s.x===GR,[$R]:s.x===FR,[KR]:s.x===HR,[QR]:s.y===YR,[ZR]:s.y===WR,[XR]:s.y===qR,[JR]:e.animated,[ej]:e.animated&&this.state.revealed}),"data-soul":e.soul,children:e.children}))}}sj.defaultProps={alignX:FR,alignY:qR,animated:!0,offsetX:0,offsetY:0};const nj="EVENT_DROPDOWN_CLOSED";var ij,rj;let oj=((rj=class extends Re.Component{constructor(...e){super(...e),this.dropdownRef=(0,Re.createRef)(),this.clickedOnControl=!1}open(e){this.initListeners(),this.dropdownRef.current.open(e),this.props.onOpen?.()}close(){this.cleanListeners(),this.dropdownRef.current.close(),this.props.onClose?.()}initListeners(){window.addEventListener("resize",this.close),window.addEventListener(nj,this.close),document.addEventListener("click",this.onDocumentClick),document.addEventListener("scroll",this.onScroll,{capture:!0})}cleanListeners(){window.removeEventListener("resize",this.close),window.removeEventListener(nj,this.close),document.removeEventListener("click",this.onDocumentClick),document.removeEventListener("scroll",this.onScroll,{capture:!0})}isOutsideDropdown(e){const t=this.dropdownRef.current.getElement();return e!==t&&!t.contains(e)}onControlClick(e){this.clickedOnControl=!0,this.dropdownRef.current.state.opened?this.close():this.open(e.currentTarget)}onScroll(e){const t=e.target;this.props.closeOnScroll&&this.isOutsideDropdown(t)&&this.close()}onDocumentClick(e){const t=e.target;!this.clickedOnControl&&this.isOutsideDropdown(t)&&this.close(),this.clickedOnControl=!1}componentWillUnmount(){this.cleanListeners()}render(){const{props:e}=this,t=Re.Children.toArray(e.children),[,...s]=t,{className:n,...i}=e,r=t[0];return(0,pe.jsxs)(pe.Fragment,{children:[(0,Re.cloneElement)(r,{...r.props,onClick:this.onControlClick}),(0,pe.jsx)(sj,{...i,ref:this.dropdownRef,children:(0,pe.jsxs)(Ir,{className:n,setReturnFocus:e.setReturnFocus,children:[s,(0,pe.jsx)(Cr,{exclusive:!0,keyMap:{[sr]:()=>this.close()}})]})})]})}}).defaultProps={closeOnScroll:!0},ij=rj,(0,De.A)(ij.prototype,"close",[je],Object.getOwnPropertyDescriptor(ij.prototype,"close"),ij.prototype),(0,De.A)(ij.prototype,"onControlClick",[je],Object.getOwnPropertyDescriptor(ij.prototype,"onControlClick"),ij.prototype),(0,De.A)(ij.prototype,"onScroll",[je],Object.getOwnPropertyDescriptor(ij.prototype,"onScroll"),ij.prototype),(0,De.A)(ij.prototype,"onDocumentClick",[je],Object.getOwnPropertyDescriptor(ij.prototype,"onDocumentClick"),ij.prototype),ij);var aj;let lj=(aj=class extends Re.Component{constructor(...e){super(...e),this.dropdownRef=(0,Re.createRef)()}open(e){this.initListeners(),this.dropdownRef.current.open(e),this.props.onOpen?.()}close(){this.cleanListeners(),this.dropdownRef.current.close(),this.props.onClose?.()}initListeners(){document.addEventListener("scroll",this.onScroll,{capture:!0})}cleanListeners(){document.removeEventListener("scroll",this.onScroll,{capture:!0})}onMouseEnter(e){this.open(e.currentTarget)}onMouseLeave(){this.close()}onScroll(){this.close()}componentWillUnmount(){this.cleanListeners()}render(){const{props:e}=this,t=Re.Children.toArray(e.children),[s,...n]=t;return(0,pe.jsxs)("div",{className:e.containerClassName,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,children:[s,(0,pe.jsx)(sj,{...e,ref:this.dropdownRef,children:n})]})}},(0,De.A)(aj.prototype,"onMouseEnter",[je],Object.getOwnPropertyDescriptor(aj.prototype,"onMouseEnter"),aj.prototype),(0,De.A)(aj.prototype,"onMouseLeave",[je],Object.getOwnPropertyDescriptor(aj.prototype,"onMouseLeave"),aj.prototype),(0,De.A)(aj.prototype,"onScroll",[je],Object.getOwnPropertyDescriptor(aj.prototype,"onScroll"),aj.prototype),aj);const cj="fader";var dj="BzWU5",pj="bt3by",uj="kQrPR",hj="h5V9O";const mj=({className:e,disabled:t,max:s,min:n,value:i,knob:r,hasShadow:o,...a})=>(0,pe.jsx)("input",{className:(0,Ye.A)(e,"t9Wrc",{[hj]:"radio"===r,[uj]:r===cj,[dj]:t,[pj]:o}),type:"range","aria-valuemax":s,"aria-valuemin":n,"aria-valuenow":i,max:s,min:n,value:i,disabled:t,...a}),gj=e=>
1({level:_O(e),muted:EO(e),canChangeVolume:vO(e)});const yj="horizontal";var _j="XPYRD",Ej="Uoq0k";var vj,xj;let bj=(xj=class extends Re.PureComponent{constructor(...e){super(...e),this.state={level:this.props.level},this.notifyVolumeLevelDelayed=(0,UR.A)(this.notifyVolumeLevel.bind(this),this.props.invocationDelay),this.syncVolumeDelayed=(0,xn.A)(this.syncVolume.bind(this),100)}onRangeChange(e){const t=parseInt(e.target.value,10);this.syncVolumeDelayed.cancel(),this.setState({level:t},this.notifyVolumeLevelDelayed)}onClick(){this.hasSound()?this.props.mute():this.props.unmute(),this.props.unpersist?.()}syncVolume(){const{level:e}=this.props;e!==this.state.level&&this.setState({level:e})}notifyVolumeLevel(){this.props.updateLevel(this.state.level)}hasSound(){return!this.props.muted&&0!==this.state.level}componentDidUpdate(e){this.props.level!==e.level&&this.syncVolumeDelayed()}componentWillUnmount(){this.syncVolumeDelayed.cancel(),this.notifyVolumeLevelDelayed.cancel()}render(){const{props:e}=this,{level:t}=this.state,s=this.hasSound(),n=this.props.orientation===yj;let i=t;s||(i=0);const r=(0,pe.jsx)(kR,{title:`${x(s?186:187)} (m)`,contentCenter:!0,iconId:s?yC:gC,soul:"OSD_CONTROL_MUTE",hasShadow:e.hasShadow,onClick:this.onClick,className:e.className,disabled:!e.canChangeVolume});return gO&&e.canChangeVolume?(0,pe.jsxs)(lj,{className:(0,Ye.A)({[Ej]:!n}),containerClassName:(0,Ye.A)({[_j]:!n}),onOpen:e.persist,onClose:e.unpersist,alignX:n?HR:GR,alignY:n?WR:qR,offsetX:n?-50:0,animated:!1,children:[r,(0,pe.jsxs)("div",{className:"CYDGS",children:[(0,pe.jsx)(mj,{className:"iXMa9",knob:cj,min:0,max:yO,step:1,onChange:this.onRangeChange,value:i,hasShadow:!0}),(0,pe.jsx)("div",{className:"yUm9P",children:(0,pe.jsx)("div",{style:{width:`${i}%`},className:"eQKVH"})})]})]}):(0,pe.jsx)("div",{className:(0,Ye.A)({[_j]:!n}),children:r})}},xj.displayName="OSDControlVolume",vj=xj,(0,De.A)(vj.prototype,"onRangeChange",[je],Object.getOwnPropertyDescriptor(vj.prototype,"onRangeChange"),vj.prototype),(0,De.A)(vj.prototype,"onClick",[je],Object.getOwnPropertyDescriptor(vj.prototype,"onClick"),vj.prototype),vj);const Aj=(e=>{var t,s;let n=((s=class extends Re.Component{mute(){this.props.dispatch(TO())}unmute(){this.props.dispatch(CO())}updateLevel(e){const{props:t}=this;t.level!==e&&t.dispatch(NO(e))}render(){const t=this.props;return(0,pe.jsx)(e,{mute:this.mute,unmute:this.unmute,updateLevel:this.updateLevel,...t})}}).displayName=e.displayName||e.name,t=s,(0,De.A)(t.prototype,"mute",[je],Object.getOwnPropertyDescriptor(t.prototype,"mute"),t.prototype),(0,De.A)(t.prototype,"unmute",[je],Object.getOwnPropertyDescriptor(t.prototype,"unmute"),t.prototype),(0,De.A)(t.prototype,"updateLevel",[je],Object.getOwnPropertyDescriptor(t.prototype,"updateLevel"),t.prototype),t);return(0,l.Ng)(gj)(n)})(bj),Sj=({canPlay:e,prime:t,...s})=>(0,pe.jsx)(kR,{title:`${hl()} (${IR})`,iconId:Ct,soul:"OSD_CONTROL_PLAY",disabled:!e,color:t?_t:void 0,kind:t?pt:void 0,isMiddle:!0,...s});var Tj="uGHgV";const Cj=e=>(0,pe.jsx)("div",{className:(0,Ye.A)("VYSoh",e.className,{[Tj]:e.fadeOut}),"data-soul":e.soul,children:e.children});const Nj=()=>{const e=(0,l.wA)(),t=(0,l.d4)(lO),s=(0,l.d4)(uy),n=(0,l.d4)(Gy);return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(Cj,{children:(0,pe.jsx)(LR,{close:()=>e(Df()),isViewFullscreen:n})}),s&&(0,pe.jsx)(Sj,{className:"tXC1X",onClick:()=>{e(pO())},canPlay:t,prime:!0}),(0,pe.jsxs)(fR,{isViewFullscreen:n,children:[(0,pe.jsx)(Aj,{hasShadow:!0}),(0,pe.jsx)(PR,{hasShadow:!0}),(0,pe.jsx)(MR,{hasShadow:!0})]})]})};var fj="MdBpd";const Ij=()=>{const e=(0,l.d4)(Gu),t=(0,l.d4)(dC),s=e&&!t;return(0,pe.jsxs)("div",{id:TR,className:(0,Ye.A)("zh6VT",{[fj]:e}),children:[e&&(0,pe.jsx)(Nj,{}),s&&(0,pe.jsx)(SR,{})]})};var wj=s(8515);const Oj=(e,t)=>Boolean(e&&t&&e!==t),Dj=(e,t,s)=>s?!(0,dp.A)((0,wj.A)(e,s),(0,wj.A)(t,s)):!(0,dp.A)(e,t),Rj=e=>e?.getSlotId()?.getId?.()||null,jj=e=>Ht()||!e?0:300;var kj=s(4214),Pj=s(6784);const Lj=new Map,Mj=new Map,Uj=(e,t,s)=>{const n=((e,t)=>{const s={id:e,payload:t},n=Array.from(Mj.entries()).find(([,e])=>(0,dp.A)(e,s));if(n)return n[0];const i=Symbol("request-uuid");return Mj.set(i,s),i})(e,t);let i=Lj.get(n);
1return i||(i=s(),Lj.set(n,i)),i.catch(e=>(Mj.delete(n),Lj.delete(n),Promise.reject(e)))},Vj="DISPLAY_ADS_SLOT_STORED",Bj="DISPLAY_ADS_SLOT_CLEARED",Fj="DISPLAY_ADS_API_STATUS_CHANGED";let Hj=!1;const Gj=e=>({type:Vj,slot:e}),qj=e=>({type:Fj,apiStatus:e}),Yj=e=>t=>Uj(Pj.u,e,()=>kj.V(e).then(e=>(Hj=!0,e)).catch(e=>(Hj||!(0,m.r6)(e)||(e.code===ua.Ws?((e=>{e[z]=!0})(e),t(qj(wy))):Hj=!0),Promise.reject(e))));const Wj=e=>({canUpdateAdBlocks:My(e),contextPath:rd(e),cid:Cm(e),path:Oa(e),slots:Dy(e)}),zj=(e,t)=>{var s,n;let i=(n=class extends Re.Component{constructor(...e){super(...e),this.nodeId=`${t.id}-${(0,mn.Ak)()}`,this.slot=null,this.intervalId=null,this.isBrandingDay=t.style===lu.H4,this.isComponentMounted=!1,this.state={fitted:!1}}isEmpty(e){return e[Rj(this.slot)]?.isEmpty}isHidden(e,t){return this.isEmpty(e)||!t}isContextChanged(e){return t.updateOnEveryPathChange?Oj(this.props.path,e.path):Oj(this.props.contextPath,e.contextPath)}getAvailableWidth(){return t.sizes||window.innerWidth<Bt?window.innerWidth:window.innerWidth-200-300}filterSizes(e){switch(t.style){case lu.QB:{const t=this.getAvailableWidth();return e.filter(e=>{let[s]=e;return(0,Mu.A)(s)?(s+=28,s<=t&&(!(window.innerWidth>=Bt)||s>=600)):s})}case lu.hP:return 0===this.props.index?e.filter(e=>"fluid"!==e):e.filter(e=>"fluid"!==e&&Number(e[1])<=300);case lu.H4:return["fluid"];default:return e}}initSlot(e,s,n){if(this.intervalId&&this.stopUpdates(),!this.isComponentMounted)return;const i=t.adUnitPath||e,r=t.sizes||n;this.slot=googletag.defineSlot(i,r,this.nodeId).addService(googletag.pubads());const o=Rj(this.slot);o&&(Object.keys(s).forEach(e=>{const t=e,n=s[t];this.slot.setTargeting(t,n)}),this.isBrandingDay&&googletag.pubads().refresh([this.slot]),this.props.dispatch(Gj({id:o,rendered:!1,style:t.style})),googletag.display(this.nodeId),t.updateInterval&&this.startUpdates())}destroy(){const{slot:e}=this;var t;this.slot=null,this.props.dispatch((t=Rj(e),{type:Bj,id:t})),googletag.destroySlots([e])}async create(){const{props:e}=this,{requiresCid:s,startsFrom:n,endsTo:i}=t;if(!(!this.isComponentMounted||n&&n>window.innerWidth||i&&i<window.innerWidth||s&&!e.cid))try{const s={ad_style:t.style};e.cid&&(s.cid=e.cid);const n=await e.dispatch(Yj(s)),i=this.filterSizes(n.size);if(!this.isComponentMounted||(0,me.A)(t.sizes||i))return;this.setState({fitted:!0},()=>{this.initSlot(n.adUnitPath,n.targeting,i)})}catch(e){Z(e)}}recreate(){this.props.canUpdateAdBlocks&&this.slot&&(this.destroy(),this.create())}startUpdates(){this.intervalId=setInterval(this.recreate,t.updateInterval)}stopUpdates(){clearInterval(this.intervalId),this.intervalId=null}componentDidMount(){this.isComponentMounted=!0,this.create()}componentDidUpdate(e){const{props:s}=this;var n,i;!this.slot&&t.requiresCid&&(n=s.cid,i=e.cid,Boolean(!(e=>!(null==e))(i)&&n))?this.create():this.slot&&!this.isBrandingDay&&this.isContextChanged(e)&&this.recreate()}componentWillUnmount(){this.isComponentMounted=!1,this.destroy(),this.stopUpdates()}shouldComponentUpdate(e,t){return this.isContextChanged(e)||this.isHidden(this.props.slots,this.state.fitted)!==this.isHidden(e.slots,t.fitted)}render(){const{className:t,slots:s,...n}=this.props,i=n;return(0,pe.jsx)(e,{...i,id:this.nodeId,className:(0,Ye.A)(t,"AcRXX"),destroy:this.destroy,hidden:this.isHidden(s,this.state.fitted)})}},n.displayName=e.displayName||e.name,s=n,(0,De.A)(s.prototype,"destroy",[je],Object.getOwnPropertyDescriptor(s.prototype,"destroy"),s.prototype),(0,De.A)(s.prototype,"recreate",[je],Object.getOwnPropertyDescriptor(s.prototype,"recreate"),s.prototype),s);return(0,l.Ng)(Wj)(i)};class $j extends Re.PureComponent{constructor(...e){super(...e),this.state={hasClose:!1},this.timeoutId=null}clear(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}schedule(){this.clear(),this.timeoutId=setTimeout(()=>{this.setState({hasClose:!0})},3e4)}hasCloseBtn(){return this.state.hasClose&&this.props.isBrandingDayActive}componentDidUpdate(e){this.props.isBrandingDayActive&&!e.isBrandingDayActive&&this.schedule()}componentWillUnmount(){this.clear()}render(){const{props:e}=this;return e.hidden||!e.isModeBroadcast?null:(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)("div",{id:e.id,className:"VprhW"}),this.hasCloseBtn()&&(0,pe.jsx)(ln,{className:"FXGFu",onClick:e.destroy,soul:"CLOSE_AD",title:x(46),icon:Tt,iconClassName:"UkvO0",tap:!0})]})}}$j.displayName="DisplayAdsBrandingDay";const Kj=zj((0,l.Ng)(e=>({isBrandingDayActive:jy(e),isModeBroadcast:ou(e)}))($j),{id:`div-gpt-ad-${lu.H4}`,style:lu.H4,requiresCid:!0,startsFrom:Bt}),Qj=e=>e.player.profile.type,Zj=e=>e.player.profile.version,Xj=e=>e.player.debug.audio.bitrate,Jj=e=>e.player.debug.audio.codec,ek=e=>e.player.debug.audio.duration,tk=e=>e.player.debug.meta.streamType,sk=e=>e.player.debug.video.bitrate,nk=e=>e.player.debug.video.codec,ik=e=>e.player.debug.video.duration,rk=e=>e.player.debug.video.frameRate,ok=e=>e.player.debug.video.delay,ak=e=>{const{width:t,height:s}=e.player.debug.video;return t&&s?`${t}×${s}`:null};var lk="FNKCx",ck="lIeZ3";
1const dk=({title:e,fields:t})=>(0,pe.jsxs)("div",{className:"EgJbQ",children:[(0,pe.jsx)("div",{className:(0,Ye.A)(lk,"IWSVj"),children:e}),t.map(({key:e,value:t})=>t?(0,pe.jsxs)("div",{className:lk,children:[(0,pe.jsx)("div",{className:"yJSIR",children:e}),(0,pe.jsx)("div",{className:"t2Pr6",children:t})]},e):null)]}),pk=()=>{const e=(0,l.d4)(Xj),t=(0,l.d4)(Jj),s=(0,l.d4)(ek),n=(0,l.d4)(Qj),i=(0,l.d4)(Zj),r=(0,l.d4)(tk),o=(0,l.d4)(sk),a=(0,l.d4)(nk),c=(0,l.d4)(ok),d=(0,l.d4)(ik),p=(0,l.d4)(rk),u=(0,l.d4)(ak),h=TT(),m=[{key:"Player",value:n},{key:"Stream",value:r},{key:"Est. Delay",value:c?`${c}s`:null},{key:"Version",value:i}],g=[{key:"Type",value:h.system},{key:"Max DRM",value:h.max_drm_lvl},{key:"Max HDCP Type",value:String(h.max_hdcp_type)},{key:"Max HDCP Version",value:String(h.maxHdcpVer)},{key:"Robustness",value:h.robustness}],y=[{key:"Codec",value:a},{key:"Bitrate",value:o&&o/1e3+"Mbps"},{key:"Seg.",value:d&&`${d}s`},{key:"Resolution",value:u},{key:"Frames",value:p}],_=[{key:"Codec",value:t},{key:"Bitrate",value:e&&e/1e3+"Mb"},{key:"Seg.",value:s&&`${s}s`}];return(0,pe.jsxs)("div",{className:"ls7gF",children:[(0,pe.jsx)("div",{className:ck,children:m.some(e=>e.value)&&(0,pe.jsx)(dk,{title:"Meta",fields:m})}),(0,pe.jsx)("div",{className:ck,children:g.some(e=>e.value)&&(0,pe.jsx)(dk,{title:"DRM",fields:g})}),(0,pe.jsxs)("div",{className:ck,children:[y.some(e=>e.value)&&(0,pe.jsx)(dk,{title:"Video",fields:y}),_.some(e=>e.value)&&(0,pe.jsx)(dk,{title:"Audio",fields:_})]})]})},uk="carousel",hk="marquee",mk="grid",gk="list";var yk="Yha3g";const _k="icons-favorite-empty",Ek="add",vk="remove",xk=e=>async(t,s)=>{const n=s(),i=Pp(n);if(!i.includes(e))try{await t(Qb([...i,e])),(e=>{xi(gn,e)})({text:(r={channel:sf(n,e)},x(134,r)),soul:"LINEUP_FAVORITES_TOAST_ADD_SUCCESS",unique:!1}),Un({type:fn,channel_id:e,favorites_state:Ek})}catch(e){Z(e),Ai({text:yl(),soul:"LINEUP_FAVORITES_TOAST_ADD_FAILED"})}var r},bk=e=>async(t,s)=>{const n=s(),i=Pp(n);if(i.includes(e))try{await t(Qb(i.filter(t=>t!==e))),bi({text:(r={channel:sf(n,e)},x(135,r)),soul:"LINEUP_FAVORITES_TOAST_REMOVE_SUCCESS",unique:!1}),Un({type:fn,channel_id:e,favorites_state:vk})}catch(e){Z(e),Ai({text:yl(),soul:"LINEUP_FAVORITES_TOAST_REMOVE_FAILED"})}var r};const Ak=()=>{const e=(0,l.wA)(),t=(0,l.d4)(Cm),s=(0,l.d4)(Nm);return(0,pe.jsxs)("div",{className:"FtKUw",children:[(0,pe.jsx)("h2",{className:"W6K42",children:x(19)}),(0,pe.jsx)("p",{className:"i6A2T",children:(n={channelTitle:s},x(17,n))}),(0,pe.jsx)(ln,{onClick:()=>{e(xk(t)),as({action:"addChannel",category:"manageFavorites",label:"channel_sidebar_emptyState"})},className:"NEOPM",contentClassName:"zN7i_",kind:ht,color:_t,soul:"ADD_FAVORITE_CONTROL_ADD",control:an,icon:_k,iconClassName:"hT7p8",text:rl(),textClassName:"KAdlM"}),(0,pe.jsx)("span",{className:"vmci0",children:rl()})]});var n},Sk=e=>e.npvr.series.records,Tk=(e,t,s)=>e.npvr.series.map[IA(t,s)],Ck=e=>zf(e),Nk=e=>Yf(e),fk=(e,t)=>((e,t)=>{const s=Yf(e)[t];return s?s.level:null})(e,t),Ik=(e,t)=>((e,t)=>{const s=Yf(e)[t];return s?s.restricted_quality:null})(e,t),wk=({reference:e,...t})=>(0,pe.jsx)("span",{ref:e,...t}),Ok=e=>(0,pe.jsx)(Hs,{control:wk,...e}),Dk="DETAILS_LINK",Rk=e=>{const t=(0,de.zy)(),s=e.title?(n={title:e.title},x(400,n)):x(401);var n;return e.pathname?(0,pe.jsx)(qs,{className:e.className,contentClassName:e.contentClassName,soul:Dk,to:{pathname:e.pathname,search:t.search},state:{window:!1!==e.hasWindow,...e.state},title:s,onClick:t=>{cs({category:e.analyticsCategory,context:e.analyticsLabel,elementIndex:e.elementIndex,targetNode:t.currentTarget,teaserIndex:e.teaserIndex,view:e.view})},virtual:e.virtual,tabIndex:e.tabIndex,children:e.children}):(0,pe.jsx)(Ok,{className:e.className,contentClassName:e.contentClassName,soul:Dk,virtual:e.virtual,disabled:!0,children:e.children})};var jk="vJECL",kk="bR6Pe",Pk="LAP4i";const Lk=e=>(0,pe.jsx)(Rk,{...e,className:jk,virtual:!0}),Mk={format:WT.w1,format2x:WT.eB,height:40,width:70},Uk={format:WT.bb,format2x:WT.DV,height:24,width:42},Vk=e=>{const{view:t}=e,s=e.large?Mk:Uk;return e.token?(0,pe.jsx)(KT,{alt:e.alt,className:e.className,soul:"TEASER_LOGO",format:s.format,format2x:s.format2x,token:e.token,width:s.width,height:s.height,title:e.title}):t!==mk&&t!==uk?null:(0,pe.jsx)("span",{style:{height:s.height}})};var Bk="wCgcd";const Fk=e=>{const{view:t}=e;return(0,pe.jsx)("footer",{className:(0,Ye.A)("PKD2o",{[Bk]:t===mk||t===uk},e.className),children:e.children})};var Hk="tJsRe",Gk="GGPET";const qk=e=>{const{condensed:t,descriptionHasTwoRows:s,pretitle:n,text:i,title:r}=e;return(0,pe.jsxs)("header",{className:(0,Ye.A)("Ldcvs",{[Hk]:e.condensed},e.className),children:[(r||n)&&(0,pe.jsxs)("h3",{className:(0,Ye.A)("slisk",Xi,{[Gk]:t},e.titleClassName),"data-soul":"TEASER_TITLE",children:[n&&(0,pe.jsx)("span",{className:"Q7Vrz",children:n}),r]}),i&&(0,pe.jsx)("p",{className:(0,Ye.A)({[Qi]:s,[Xi]:!s}),"data-soul":"TEASER_TEXT",children:i})]})};
1var Yk="tfGlV",Wk="p3nfU",zk="K1iWa",$k="clKoG";const Kk=e=>{const{view:t}=e;return(0,pe.jsx)("div",{className:(0,Ye.A)("LuaD8",{[Yk]:t===gk,[Wk]:t===mk||t===uk,[zk]:t===hk,[$k]:e.withMenu},e.className),"data-cid":e.cid,children:e.children})};var Qk=s(7074);var Zk;const Xk=ge.thumbnails?.options.baseUrl;let Jk=(Zk=class extends Re.Component{constructor(...e){super(...e),this.imageRef=(0,Re.createRef)(),this.rafID=null,this.timeoutID=null,this.state={hash:this.createHash()}}createHash(){return Date.now().toString()}invalidateHash(){this.setState({hash:this.createHash()})}cancelRAF(){null!==this.rafID&&(cancelAnimationFrame(this.rafID),this.rafID=null)}cancelUpdate(){this.cancelRAF(),null!==this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)}scheduleRAF(){this.cancelRAF(),this.rafID=requestAnimationFrame(this.onAnimationFrame)}scheduleUpdate(){this.cancelUpdate(),this.timeoutID=setTimeout(this.onTimeout,this.props.timeout)}onAnimationFrame(){const e=this.imageRef.current.getBoundingClientRect();this.rafID=null,BR(e)>0&&this.invalidateHash(),this.scheduleUpdate()}onTimeout(){this.timeoutID=null,this.scheduleRAF()}componentDidMount(){this.scheduleUpdate()}componentWillUnmount(){this.cancelUpdate()}render(){const{cid:e,height:t,timeout:s,width:n,...i}=this.props,{hash:r}=this.state,o=(0,Qk.E)({baseUrl:Xk,cid:e,hash:r,height:t,width:n}),a=(0,Qk.E)({baseUrl:Xk,cid:e,hash:r,height:2*t,width:2*n});return(0,pe.jsx)(en,{src:o,src2x:a,soul:"ZATTIC_THUMB",width:n,height:t,reference:this.imageRef,...i})}},(0,De.A)(Zk.prototype,"onAnimationFrame",[je],Object.getOwnPropertyDescriptor(Zk.prototype,"onAnimationFrame"),Zk.prototype),(0,De.A)(Zk.prototype,"onTimeout",[je],Object.getOwnPropertyDescriptor(Zk.prototype,"onTimeout"),Zk.prototype),Zk);var eP="ZET5U";const tP=e=>(0,pe.jsx)("div",{className:(0,Ye.A)("OkY9s",e.className,{[eP]:e.isFull}),children:e.children});var sP="yzAt8",nP="LC0nH",iP="eC7BB",rP="pp2_d",oP="gyeFp",aP="z0goj",lP="OEeXm",cP="ICtrF";const dP="image",pP="thumb-image";var uP="XJufc",hP="qFOye",mP="UFqh0",gP="MvrFq",yP="HSpLJ",_P="cRLCM",EP="bCqjI";const vP=e=>{const{view:t}=e,s=t===gk,n=t===uk||t===mk,i=t===hk,r=n&&!e.full,o=i||s||e.full,a=(0,Ye.A)(e.className,nP,{[iP]:n||i,[rP]:s,[oP]:o,[uP]:o,[hP]:s,[mP]:r}),l=(0,Ye.A)(e.sourceClassName,{[gP]:o,[yP]:s,[_P]:r});if(e.kind===pP){const s=(e=>{switch(e){case gk:case mk:case uk:return{height:180,width:320};default:return{height:360,width:640}}})(t);return(0,pe.jsxs)(tP,{isFull:o,className:a,children:[(0,pe.jsx)(Jk,{alt:e.alt,className:(0,Ye.A)(l,EP),cid:e.cid,title:e.title,width:s.width,height:s.height,timeout:(0,ib.A)(22500,37500),fadeIn:!0}),e.children]})}const c=(e=>{const t=[uk,mk,gk].includes(e.view);return e.full||!t?{height:e.height||360,width:e.width||640}:{height:e.height||180,width:e.width||320}})({full:e.full,height:e.height,view:t,width:e.width});return(0,pe.jsxs)(tP,{isFull:o,className:a,children:[(0,pe.jsx)(JS,{className:(0,Ye.A)(l,EP),token:e.token,alt:e.alt,title:e.title,width:c.width,height:c.height,fadeIn:!0}),e.children]})};var xP="HYk_x",bP="QYlqU";const AP=e=>{const t=(e=>{const{valueMax:t,valueMin:s,valueNow:n}=e;return!((0,Mu.A)(n)&&(0,Mu.A)(s)&&(0,Mu.A)(t))||n<s?0:n>t?100:(n-s)/(t-s)*100})(e),s=e.hideOnZero&&0===t;return(0,pe.jsx)("div",{className:(0,Ye.A)("CjA96",e.className,{[xP]:e.disabled,[bP]:s}),role:"progressbar","aria-valuemax":e.valueMax,"aria-valuemin":e.valueMin,"aria-valuenow":e.valueNow,"aria-valuetext":e.title,"data-soul":e.soul||"PROGRESSBAR","data-value":t,style:{"--progressBar_value":`${t}%`}})};const SP=e=>e.hasProgress&&(0,pe.jsx)(AP,{className:(0,Ye.A)("wbsER",e.className),soul:"TEASER_PROGRESSBAR",title:Y(),valueNow:e.progressTimeNow,valueMin:e.progressTimeMin,valueMax:e.progressTimeMax,hideOnZero:!0});var TP=s(6817);const CP=e=>x(385,{count:e}),NP=e=>x(387,{count:e}),fP=e=>x(386,{count:e}),IP=e=>x(389,{minutes:e}),wP=e=>x(388,{count:e});const OP=(e,t="short")=>{const s=(0,Vt.Sr)(e),n=(0,Vt.xY)(e-3600*s);let i="";return s&&(i+="short"===t?`${NP(s)} `:`${fP(s)} `),n&&(i+="short"===t?`${IP(n)}`:`${wP(n)}`),i.trim()};var DP=s(960),RP=s(3592);const jP="WEEKDAY_SHORT",kP="DATE_SHORT",PP="DATE_WEEK",LP="DATE_LONG",MP="TIME_SHORT",UP={[LP]:{day:"numeric",month:"numeric",year:"numeric"},[kP]:{day:"numeric",month:"numeric"},[PP]:{day:"numeric",month:"numeric",weekday:"long"},[MP]:{hour:"numeric",minute:"numeric"},[jP]:{weekday:"short"}},VP=new Map;let BP=null;const FP=(e,t)=>
1{const s=new Date(e),n=(()=>{const e=R(),[t,s]=navigator.language.split("-");return e===t&&s?`${e}-${s}`:e})();n!==BP&&((e=>{Object.keys(UP).forEach(t=>{const s=UP[t],n=new Intl.DateTimeFormat(e,s);VP.set(t,n)})})(n),BP=n);try{return VP.get(t).format(s)}catch(e){return Z(e),null}},HP=e=>{const t=(0,Vt.a)(e,"round"),s=(0,Vt.Sr)(e,"round"),n=(0,Vt.xY)(e);return t>2?CP(t):s>2?NP(s):n>0?IP(n):e>0?IP(1):null},GP=e=>{const t=(0,Vt.vO)(e),s=Date.now(),n=t-s,i=(0,DP.m)(t,s);return(0,RP.s)(t,s)?0===i?n>0&&n<=2*Vt.W_?(e=>!e||e<0?null:e>=Vt.W_-Vt._0?`${H()} ${fP(Math.round(e/Vt.W_))}`:`${H()} ${wP(Math.ceil(e/Vt._0))}`)(n):x(391):1===i?x(392):-1===i?x(393):FP(t,PP):FP(t,LP)},qP=e=>{const t=(0,DP.m)((0,Vt.vO)(e),Date.now());return t>=-1&&t<=1?",":" |"},YP="compact",WP=e=>{const{start:t,end:s,format:n}=e;if(!t||!s)return x(406);const i=(({start:e,end:t,format:s,relativeTimeString:n})=>{const i=(0,Vt.vO)(e),r=FP(i,MP);if(!r)return null;if("mini"===s){if((0,Vt.sJ)(t)){const e=FP(i,kP);return e?`${e} | ${r}`:null}if((0,Vt.v9)(e,t,{excludeEnd:!0}))return`${W()} ${r}`;if((0,Vt.zg)(e))return`${n?`${n}${qP(e)} `:""}${r}`}const o=FP((0,Vt.vO)(t),MP);if(!o)return null;const a=`${OP(t-e)}`;let l=`${r} — ${o}`;return(0,Vt.sJ)(t)&&(l=`${n?`${n}${qP(e)} `:""}${l} (${a})`),(0,Vt.v9)(e,t,{excludeEnd:!0})&&(l=`${W()} ${l} (${a})`),(0,Vt.zg)(e)&&(l=`${n?`${n}${qP(e)} `:""}${l} (${a})`),l})({start:t,end:s,format:n,relativeTimeString:GP(t)});return i},zP=e=>WP(e)?(0,pe.jsx)("time",{className:e.className,children:WP(e)}):null;var $P="m1fHf",KP="KXIxl";const QP=e=>{switch(e.view){case mk:case uk:return"mini";default:return YP}},ZP=e=>{if(e.duration)return(0,pe.jsx)("time",{className:(0,Ye.A)($P,e.className),children:OP(e.duration)});const t=e.highlightUpcoming&&(0,Vt.zg)(e.startTime);return(0,pe.jsx)(zP,{className:(0,Ye.A)($P,{[KP]:t},e.className),start:e.startTime,end:e.endTime,format:QP(e)})};var XP="TW3I2";const JP="icons-favorite";var eL="jyMso",tL="mnmY7",sL="Z9M5p",nL="jbeK5",iL="FBufC";const rL="left",oL="right",aL=e=>{const{title:t,position:s=rL}=e;return(0,pe.jsx)("span",{className:(0,Ye.A)("Ou89r",{[eL]:s===rL,[sL]:s===oL,[tL]:e.lighted},e.className),"data-soul":e.soul||"RIBBON","aria-label":t,children:(0,pe.jsx)(ft,{id:e.iconId,className:(0,Ye.A)("MHQGR",{[nL]:s===rL,[iL]:s===oL})})})},lL=e=>(0,pe.jsx)(aL,{className:e.className,soul:"RIBBON_FAVORITE",iconId:JP,title:x(14)}),cL=e=>(0,pe.jsx)(aL,{className:e.className,soul:"RIBBON_LOCKED",iconId:jS,title:x(15),position:e.position,lighted:!0}),dL="icons-record-scheduled",pL="icons-record-success",uL="icons-record-running",hL="icons-record-series-running";const mL=(0,Re.memo)(e=>e.iconId||e.text?(0,pe.jsxs)("span",{className:(0,Ye.A)("ywRO1",e.className),"data-soul":e.soul,children:[e.iconId&&(0,pe.jsx)(ft,{className:(0,Ye.A)("vfGJS",e.iconClassName),id:e.iconId}),e.text&&(0,pe.jsx)("span",{className:"hFei1",children:e.text})]}):null),gL=e=>{const{program:t}=e,s=(0,l.d4)(e=>((e,t)=>$f(e,t))(e,t.id)),n=(0,l.d4)(e=>fk(e,s)),i=(0,l.d4)(e=>Ik(e,s)),r=(0,l.d4)(s=>((e,t,s)=>Tk(e,t,s))(s,e.cid,t.ts_id)),o=(0,l.d4)(Eh);if(!s&&!r)return null;const a=(({program:e,recordingSeriesEligible:t,rid:s,series:n})=>{const i=hm(e),r=mm(e),o=Vt.sJ(e.e);if(t&&e.ser_e)if(e.ts_id){if(r){if(n)return"icons-record-series-scheduled";if(s)return dL}if(o){if(n)return"icons-record-series-success";if(s)return pL}if(i){if(n)return hL;if(s)return uL}if(!o&&!r)return null}else{if(r)return dL;if(o)return pL;if(i)return uL;if(!o&&!r)return null}return i?uL:o?pL:dL})({program:t,recordingSeriesEligible:o,rid:s,series:r});if(!a)return null;let c="";return i&&(c=`${c} (${n.toUpperCase()})`),(0,pe.jsx)(mL,{className:e.className,soul:"RECORD_INDICATOR",iconClassName:e.iconClassName,iconId:a,text:c})},yL=e=>(0,nC.A)(e)?e?0:-1:0,_L=e=>(0,pe.jsx)(qs,{className:jk,soul:"MARQUEE_LINK",onClick:t=>{t.preventDefault(),e.onClick(e.id)},hidden:e.hidden,"aria-hidden":!0,href:`#${e.id}`,virtual:!0,tabIndex:e.tabIndex}),EL=e=>(0,pe.jsx)(ln,{className:jk,onClick:e.onClick,reference:e.reference,title:e.title,soul:e.soul,disabled:e.disabled,onClickDisabled:e.onClickDisabled,clicksTimeout:1e3,virtual:!0,tabIndex:e.tabIndex});var vL="pIGqV",xL="bzWq5";const bL=e=>(0,pe.jsx)("div",{className:(0,Ye.A)("IYwUE",e.className),children:e.children});const AL=e=>{const{channel:t,program:s}=e,n=Boolean(s.id);return(0,pe.jsx)(bL,{children:(0,pe.jsxs)(Rk,{className:"cauqy",contentClassName:"LKEde",pathname:lx(t.url_cid,s.id),analyticsCategory:e.analyticsCategory,analyticsLabel:e.anal
1yticsLabel,elementIndex:e.elementIndex,teaserIndex:e.teaserIndex,view:e.view,title:s.t,children:[t&&(0,pe.jsx)("span",{className:"Nfhkh",children:(0,pe.jsx)(KT,{alt:t.title,className:"CSBjt",token:Sp(t).logo_token,width:45,height:25,inverse:!0})}),(0,pe.jsxs)("span",{className:"Cv5Wd",children:[(0,pe.jsx)("span",{className:"glBOK",children:s.t}),s.et&&(0,pe.jsx)("span",{className:"gY5rj",children:s.et})]}),n&&(0,pe.jsx)(ft,{className:"QzT1a",id:_C})]})})};const SL=({soul:e,disabled:t,iconId:s,onClick:n,onClickDisabled:i,text:r})=>(0,pe.jsx)(ln,{className:"nZ9ET",soul:e,kind:ht,onClick:n,onClickDisabled:i,contentClassName:"QAUiw",disabled:t,text:r,icon:s,iconClassName:"JiftW",tap:!0});var TL,CL;let NL=(CL=class extends Re.Component{addFavorite(e){this.props.dispatch(xk(this.props.cid));const t=qt(e.currentTarget);as({action:"addChannel",category:"manageFavorites",label:t===zt?"eg_channel_list":t})}removeFavorite(e){this.props.dispatch(bk(this.props.cid));const t=qt(e.currentTarget);as({action:"removeChannel",category:"manageFavorites",label:t===zt?"eg_channel_list":t})}isFavorite(){return this.props.favoritesList.includes(this.props.cid)}render(){const{cid:e}=this.props,t=this.isFavorite();return(0,pe.jsx)(bL,{children:(0,pe.jsx)(SL,{iconId:t?_k:JP,onClick:t?this.removeFavorite:this.addFavorite,text:t?il():x(12),disabled:!e,soul:"OVERFLOW_CONTROL_FAVORITES"})})}},CL.displayName="FavoritesOverflowItem",TL=CL,(0,De.A)(TL.prototype,"addFavorite",[je],Object.getOwnPropertyDescriptor(TL.prototype,"addFavorite"),TL.prototype),(0,De.A)(TL.prototype,"removeFavorite",[je],Object.getOwnPropertyDescriptor(TL.prototype,"removeFavorite"),TL.prototype),TL);const fL=(0,l.Ng)(e=>({favoritesList:Pp(e),currentPath:Oa(e)}))(NL),IL=e=>e.editorial.meta,wL=e=>IL(e).pageId,OL=e=>IL(e).sorting,DL=e=>IL(e).filters,RL=e=>IL(e).isProcessing,jL=e=>e.editorial.teasers,kL=(e,t)=>jL(e)[t],PL=(e,t)=>(0,me.A)(kL(e,t)),LL=e=>e.editorial.pages,ML=e=>LL(e)[wL(e)],UL=e=>ML(e)?.display_total_recordings,VL=e=>ML(e)?.navigation_context,BL=e=>VL(e)===Kc.RECORDINGS,FL=e=>{const t=ML(e);return t?.sortings},HL=e=>{const t=ML(e);return t?.filterings},GL=e=>Boolean(ML(e)?.display_manage_recordings),qL=e=>!(0,me.A)(FL(e))||!(0,me.A)(HL(e)),YL=e=>qL(e)||GL(e),WL=e=>{const t=ML(e);return t?.teasers_total},zL=e=>!(e=>IL(e).wiped)(e)&&0!==WL(e),$L=(e,t)=>kL(e,wL(e)).map(e=>{const{teasable:s}=e;return t[s.id]}),KL=e=>ML(e)?.kind,QL=e=>KL(e)===Ot.Y,ZL=e=>KL(e)===Ot.Q,XL=e=>QL(e)&&!cp(e)||l_(e)&&!cp(e)&&h_(e)&&!pp(e);var JL=s(4778),eM=s(9180);const tM="EDITORIAL_TEASERS_CLEANED",sM="EDITORIAL_TEASERS_STORED",nM=e=>(t,s)=>{const n=s(),i=DL(n),r=OL(n);return JL.TL({public_id:e.elementId,page:e.chunkNumber||0,per_page:e.perChunk||25,pghash:e.pghash,...i&&{filters:i},...r&&{sorting:r}})},iM=(e,t)=>(s,n)=>{const i=kL(n(),e)||[];s({type:sM,elementId:e,teasersCollection:i.concat(t)})},rM=e=>e.editorial.elements,oM=(e,t)=>BL(e)&&t,aM=(e,t)=>rM(e)[t],lM=(e,t)=>aM(e,t)?.total,cM=e=>{const t=jL(e),s=rM(e);return Object.entries(s).every(([e,s])=>s.isLoaded&&(0,me.A)(t[e]))},dM="EDITORIAL_ELEMENTS_STORED",pM="EDITORIAL_ELEMENT_STORED",uM="EDITORIAL_ELEMENT_LOADED",hM=(e,t,s)=>n=>n(nM({pghash:t,elementId:e})).then(t=>(n(((e,t,s)=>(n,i)=>{const r=i(),o={...rM(r)},a=e.page_public_id;o[t]={...o[t],pageId:a,logoToken:e.logo_token,subtitle:e.subtitle,title:e.title,total:e.teasers_total,path:a?Xd(a):Jd(t)},s&&(o[t].style=s),n({type:pM,elements:o})})(t,e,s)),n(iM(e,t.teasers)),n((e=>({type:uM,elementId:e}))(e)),t)),mM="EDITORIAL_SUB_NAVIGATION_STORED",gM="EDITORIAL_SUB_NAVIGATION_CLEANED",yM=e=>async t=>{try{const s=await JL.wH(e);t({type:mM,subNavigationTabs:s.sub_navigation_tabs})}catch(e){Z(e)}},_M=()=>({type:gM});var EM=s(2748),vM=s(2911);const xM="EDITORIAL_META_FILTERS_CLEARED",bM="EDITORIAL_META_FILTERS_UPDATED",AM="EDITORIAL_META_PROCESSING_FINISHED",SM="EDITORIAL_META_PROCESSING_STARTED",TM="EDITORIAL_META_SORTING_UPDATED",CM="EDITORIAL_META_STORED",NM="EDITORIAL_META_WIPED",fM=e=>({type:CM,...e}),IM=()=>({type:NM}),wM="EDITORIAL_CLEANED",OM=()=>({type:wM}),DM="EDITORIAL_PAGE_STORED",RM=(e,t)=>({type:DM,pageId:e,page:t}),jM=(e,t)=>async(s,n)=>{const i=n(),r={pghash:t,public_id:e},o=await Uj(eM.KB,r,()=>JL.l$(r)),{elements:a}=o,l={...rM(i)},c=[];
1a.forEach(e=>{const t=e.element_content_id;if(!t)return null;const s=l[t];return l[t]={...s,perChunk:e.content.per_page,style:e.content.style,kind:e.element_type},c.push(t),null}),s((e=>({type:dM,elements:e}))(l));const d={kind:Ot.Q,elementsList:c,...o};return d.navigation_context||(d.navigation_context=Kc.START),d.sub_navigation_public_id?await s(yM(d.sub_navigation_public_id)):s(_M()),s(RM(e,d)),s(fM({pageId:e})),d},kM=(e,t)=>async(s,n)=>{const i=n(),r=await s(hM(e,t));if(!r)return Promise.reject(new Error("Failed to fetch drilldown page"));const o={kind:Ot.Y,...r};return o.navigation_context||(o.navigation_context=(e=>{const t=od(e);return Object.values(Kc).includes(t)?t:Kc.START})(i)),o.sub_navigation_public_id?await s(yM(o.sub_navigation_public_id)):s(_M()),s(RM(e,o)),s(fM({pageId:e,sorting:o.current_sorting,filters:o.current_filterings})),o},PM=(e,t)=>async s=>{s({type:tM});const n=await s(hM(e,t));if(!n)return Promise.reject(new Error("Failed to fetch drilldown page"));const i={kind:Ot.Y,...n};return s(RM(e,i)),s(fM({pageId:e,sorting:i.current_sorting,filters:i.current_filterings})),i},LM=(e,t,s)=>n=>{switch(e){case Ot.Y:n(PM(t,s));break;case Ot.Q:n(OM()),n(jM(t,s))}},MM="EPG_SERIES_CLEANED",UM="EPG_SERIES_CONTEXT_STORED",VM="EPG_SERIES_RECEIVED",BM="EPG_SERIES_RECORDING_STATE_TOGGLED",FM="EPG_SERIES_SORTING_STORED",HM=e=>e.epg.series,GM=e=>HM(e).display_manage_recordings,qM=e=>HM(e).tv_series_id,YM=e=>HM(e).cid,WM=e=>HM(e).programs||[],zM=e=>HM(e).sortings,$M=e=>HM(e).current_sorting,KM=e=>HM(e).current_filterings,QM=e=>{const{season_numbers:t}=HM(e);return t&&[...t.map(e=>`${e}`),"ALL"]},ZM=e=>{const{current_season_number:t,programs:s}=HM(e);if(t)return t;if(s){const e=s.find(e=>e.cw);if(e&&e.s_no)return e.s_no}return""},XM=(e,t)=>WM(e).reduce((e,{id:s})=>(t[s]&&e.push(t[s]),e),[]),JM=e=>HM(e).current_season_number,eU=e=>HM(e).context.recordingsOnly,tU=e=>HM(e).context.allEpisodesPath,sU=e=>({cid:YM(e),tv_series_id:qM(e),...eU(e)&&{recordings_only:!0}}),nU=(e,t)=>async(s,n)=>{try{const r=await Zb._P({recording_id:e});await s(kA()),BL(n())&&s(LM(KL(n()),wL(n()),uo(n())));const{recording:o}=r;s({type:rA,recording:o}),Wn({text:(i={title:Zf(n(),e)},x(157,i)),soul:"NPVR_NOTIFICATION_RECORDINGS_UNDO_REMOVE_SUCCESS",unique:!1}),t&&t()}catch(e){Z(e),Ai({text:yl(),soul:"NPVR_NOTIFICATION_RECORDINGS_UNDO_REMOVE_ERROR"})}var i},iU=e=>({type:cA,rid:e}),rU=e=>({type:dA,rid:e}),oU=e=>async(t,s)=>{const{rid:n,program:i,removeCallback:r,undoCallback:o}=e;t(iU(n));try{await Zb.ml({recording_id:n}),await t(kA()),t({type:oA}),BL(s())&&t(LM(KL(s()),wL(s()),uo(s()))),zn({text:ec({title:CA(i.t,i.et)}),soul:"NPVR_NOTIFICATION_RECORDINGS_REMOVE_SUCCESS",unique:!1},{onConfirm:()=>{t(nU(n,o))},autoClose:!0,text:x(156)}),r&&r(),Un({type:jn,content_id_array:[n],content_id_type_array:[KA]})}catch(e){Z(e),Ai({text:yl(),soul:"NPVR_TOAST_RECORDINGS_REMOVE_ERROR"})}t(rU(n))},aU=e=>async(t,s)=>{const{rid:n,channel:i,title:r,tvSeriesId:o,callback:a}=e;t(iU(n||o));try{n?await Zb.n$({recording_id:n,remove_recording:!0}):o&&(await Zb.hB({tv_series_id:o,cid:i.cid}),t({type:BM,series:{...HM(s()),series_recording_active:!1}})),t(kA()),t({type:oA}),zn({text:ql({title:r,channelTitle:i.title}),soul:"NPVR_NOTIFICATION_SERIES_REMOVE_SUCCESS",unique:!1});const e=s();if(ad(e)){const s=KL(e),n=wL(e);if(!n)return void t(qa(Bd));Ot.Y===s?t(PM(n,uo(e))):Ot.Q===s&&t(jM(n,uo(e)))}a&&a(),Un({type:jn,content_id_array:[n],content_id_type_array:[QA]})}catch(e){Z(e),Ai({text:yl(),soul:"NPVR_TOAST_SERIES_REMOVE_ERROR"})}t(rU(n||o))},lU=e=>({type:pA,id:e}),cU=e=>({type:uA,id:e}),dU=e=>t=>{const{error:s,pid:n,title:i,channelTitle:r}=e,{code:o}=s;if(o===ua.nr)(e=>{xi(_n,e)})({text:x(139),soul:"NPVR_TOAST_RECORDINGS_LIMIT"});else if(n&&o===ua.ZP){t((e=>t=>{const{pid:s,title:n,channelTitle:i,amount:r}=e;io({messages:[{title:Ml(),text:Pl({title:n,amount:r})}],job:{text:Ll(),callback:()=>{t({type:aA,payload:{pid:s,title:n,channelTitle:i}})}}})})({pid:n,title:i,channelTitle:r,amount:s.response.num_to_record||0}))}else Ai({text:yl(),soul:"NPVR_TOAST_UNKNOWN_ERROR"}),Z(s)},pU=(e,t,s)=>{var n;Wn({text:(n={title:e,channelTitle:t},x(164,n)),soul:"NPVR_NOTIFICATION_SERIES_ADD_SUCCESS",unique:!1}),Un({type:Rn,content_id:s,content_id_type:QA})},uU=e=>async t=>{const{pid:s,channelTitle:n,title:i,isSeries:r,forceRecording:o,shouldSe
1ndRecordingPosition:a}=e;t(lU(s));try{const e=await Zb.ZW({program_id:s,series:Boolean(r),series_force:Boolean(o),...a&&{position:(new Date).toISOString()}});await t(kA());const{recording:l}=e;t({type:iA,recording:l}),r?pU(i,n,s):(Wn({text:tc({title:CA(l.title,l.episode_title)}),soul:"NPVR_NOTIFICATION_RECORDINGS_ADD_SUCCESS",unique:!1}),Un({type:Rn,content_id:s,content_id_type:KA}))}catch(e){t(dU({error:e,pid:s,title:i,channelTitle:n}))}t(cU(s))},hU=e=>async(t,s)=>{const{channel:n,title:i,tvSeriesId:r,forceSeriesRecording:o}=e;t(lU(r));try{await Zb.Dh({cid:n.cid,tv_series_id:r,series_force:o}),t({type:BM,series:{...HM(s()),series_recording_active:!0}}),await t(kA()),pU(i,n.title,r)}catch(e){const s=e;if(Z(e),s.code===ua.ZP){const e=s.response.num_to_record||0;io({messages:[{title:Ml(),text:Pl({title:i,amount:e})}],job:{text:Ll(),callback:()=>{t({type:lA,payload:{tvSeriesId:r,title:i,channel:n}})}}})}else t(dU({error:s,title:i,channelTitle:n.title}))}t(cU(r))},mU=(e,t)=>e.npvr.pending.remove.includes(t),gU=(e,t)=>{if(((e,t)=>e.npvr.pending.add.includes(t))(e,t))return!0;const s=$f(e,t);return mU(e,s)},yU=(e,t)=>{const s=t.program.id,n=$f(e,s);return{isActionPending:gU(e,s),isRecordingPlaying:nh(e,n),isRecordingWatched:eI(e,s),recordingEarliestStartTime:gh(e),recordingSeriesEligible:Eh(e),recordingSubscribable:vh(e),rid:n}},_U=e=>{var t,s;let n=(s=class extends Re.Component{removePlayingRecording(e){const{props:t}=this;t.dispatch(oU({rid:t.rid,program:t.program,removeCallback:t.onRemove,undoCallback:t.onRemoveUndo})),ls({action:"deleteRecording_watched",category:"recordings",view:t.view,elementIndex:t.elementIndex,teaserIndex:t.teaserIndex,targetNode:e.currentTarget}),t.dispatch(Df(!0,!1))}record(e){const{props:t}=this,{program:s}=t;t.dispatch(uU({pid:s.id,title:CA(s.t,s.et),channelTitle:t.channel.title,shouldSendRecordingPosition:(0,Vt.v9)(s.s,s.e,{excludeEnd:!0})})),ls({action:"set",category:"recordings",view:t.view,elementIndex:t.elementIndex,teaserIndex:t.teaserIndex,targetNode:e.currentTarget})}unrecord(e){const{props:t}=this;t.isRecordingPlaying?no({messages:[{title:x(161),text:x(159)}],job:{callback:e=>this.removePlayingRecording(e),text:x(160)}}):(t.dispatch(oU({rid:t.rid,program:t.program,removeCallback:t.onRemove,undoCallback:t.onRemoveUndo})),ls({action:Yt(t.isRecordingPlaying,t.isRecordingWatched,t.program.s),category:"recordings",view:t.view,elementIndex:t.elementIndex,teaserIndex:t.teaserIndex,targetNode:e.currentTarget}))}messageOnRecordUpgrade(){RA(this.props.channel.title)}messageOnRecordIllegal(){jA()}getOnClick(e){switch(e){case xA:return this.record;case bA:return this.unrecord;default:return}}getSoul(e){switch(e){case xA:return"OVERFLOW_RECORD_EPISODE_ADD";case bA:return"OVERFLOW_RECORD_EPISODE_REMOVE";case AA:return"OVERFLOW_RECORD_EPISODE_ILLEGAL";case SA:return"OVERFLOW_RECORD_EPISODE_UPGRADE";default:return null}}getOnClickDisabled(e){switch(e){case AA:return this.messageOnRecordIllegal;case SA:return this.messageOnRecordUpgrade;default:return}}getChildProps(){const{props:e}=this,t=wA({channel:e.channel,program:e.program,recordingEarliestStartTime:e.recordingEarliestStartTime,recordingSubscribable:e.recordingSubscribable,recordingSeriesEligible:e.recordingSeriesEligible,rid:e.rid});if(!t)return null;const{kind:s,...n}=t;return{...n,onClick:this.getOnClick(s),onClickDisabled:e.isActionPending?null:this.getOnClickDisabled(s),disabled:n.disabled||e.isActionPending,soul:this.getSoul(s)}}render(){const t=this.getChildProps();return t?(0,pe.jsx)(e,{...this.props,...t}):null}},s.displayName=e.displayName||e.name,t=s,(0,De.A)(t.prototype,"record",[je],Object.getOwnPropertyDescriptor(t.prototype,"record"),t.prototype),(0,De.A)(t.prototype,"unrecord",[je],Object.getOwnPropertyDescriptor(t.prototype,"unrecord"),t.prototype),(0,De.A)(t.prototype,"messageOnRecordUpgrade",[je],Object.getOwnPropertyDescriptor(t.prototype,"messageOnRecordUpgrade"),t.prototype),(0,De.A)(t.prototype,"messageOnRecordIllegal",[je],Object.getOwnPropertyDescriptor(t.prototype,"messageOnRecordIllegal"),t.prototype),t);return(0,l.Ng)(yU)(n)},EU=_U(e=>(0,pe.jsx)(bL,{children:(0,pe.jsx)(SL,{soul:e.soul||"OVERFLOW_RECORD_EPISODE",disabled:e.disabled,iconId:e.iconId,onClick:e.onClick,onClickDisabled:e.onClickDisabled,text:e.text})})),vU=(e,t)=>({isActionPending:gU(e,t.program.id),recordingEarliestStartTime:gh(e),recordingSubscribable:vh(e),recordingSeriesEligible:Eh(e),rid:$f(e,t.program.id),series:Tk(e,t.channel?.cid,t.program.ts_id)}),xU=e=>(0,pe.jsx)(bL,{children:(0,pe.jsx)(SL,{soul:e.soul||"OVERFLOW_RECORD_SERIES",iconId:e.iconId,onClick:e.onClick,text:e.text,disabled:e.disabled})});xU.displayName="RecordSeriesOverflowItem";const bU=(e=>{var t,s;let n=(s=class extends Re.Component{record(e){const{props:t}=this,{program:s}=t,n=wA({channel:t.channel,program:t.program,recordingEarliestStartTime:t.recordingEarliestStartTime,recordingSeriesEligible:t.recordingSeriesEligible,re
1cordingSubscribable:t.recordingSubscribable,rid:t.rid});var i;i=n?.kind,[xA,bA].includes(i)?this.props.dispatch(uU({pid:s.id,title:CA(s.t,s.et),channelTitle:t.channel.title,isSeries:!0})):this.props.dispatch(hU({channel:t.channel,tvSeriesId:t.program.ts_id,title:t.program.t})),ls({action:"set_series",category:"recordings",view:t.view,elementIndex:t.elementIndex,teaserIndex:t.teaserIndex,targetNode:e.currentTarget})}unrecord(e){const{props:t}=this,{program:s}=t;t.dispatch(aU({channel:t.channel,title:CA(s.t,s.et),rid:t.rid,tvSeriesId:t.series.tv_series_id,callback:t.onRemove})),ls({action:"unset_series",category:"recordings",view:t.view,elementIndex:t.elementIndex,teaserIndex:t.teaserIndex,targetNode:e.currentTarget})}messageOnRecordUpgrade(){RA(this.props.channel.title)}messageOnRecordIllegal(){jA()}getOnClick(e){switch(e){case xA:return this.record;case bA:return this.unrecord;case AA:return this.messageOnRecordIllegal;case SA:return this.messageOnRecordUpgrade;default:return}}getSoul(e){switch(e){case xA:return"OVERFLOW_RECORD_SERIES_ADD";case bA:return"OVERFLOW_RECORD_SERIES_REMOVE";case AA:return"OVERFLOW_RECORD_SERIES_ILLEGAL";case SA:return"OVERFLOW_RECORD_SERIES_UPGRADE";default:return null}}getChildProps(){const{props:e}=this,t=OA({channel:e.channel,program:e.program,recordingSeriesEligible:e.recordingSeriesEligible,series:e.series});if(!t)return null;const{kind:s,...n}=t;return{...n,onClick:this.getOnClick(s),disabled:e.isActionPending,soul:this.getSoul(s)}}render(){const t=this.getChildProps();return t?(0,pe.jsx)(e,{...this.props,...t}):null}},s.displayName=e.displayName||e.name,t=s,(0,De.A)(t.prototype,"record",[je],Object.getOwnPropertyDescriptor(t.prototype,"record"),t.prototype),(0,De.A)(t.prototype,"unrecord",[je],Object.getOwnPropertyDescriptor(t.prototype,"unrecord"),t.prototype),(0,De.A)(t.prototype,"messageOnRecordUpgrade",[je],Object.getOwnPropertyDescriptor(t.prototype,"messageOnRecordUpgrade"),t.prototype),(0,De.A)(t.prototype,"messageOnRecordIllegal",[je],Object.getOwnPropertyDescriptor(t.prototype,"messageOnRecordIllegal"),t.prototype),t);return(0,l.Ng)(vU)(n)})(xU),AU="icons-restart-locked",SU=(e,t)=>({replayAvailability:_h(e),rid:$f(e,t.program.id)}),TU=(e,t={})=>{var s,n;let i=((n=class extends Re.Component{onClickActive(){const{props:e}=this;e.dispatch(bw(e.program,e.rid))}onClickSubscribe(){mw()}onClickDisabled(){gw()}getChildProps(){const{props:e}=this;switch(vm({broadcast:e.program,channel:e.channel,replayAvailability:e.replayAvailability})){case gm:return{text:cl(),iconId:mC,disabled:!1,onClick:this.onClickActive};case Em:return{text:ul(),iconId:AU,disabled:!1,onClick:this.onClickSubscribe};case _m:return{text:cl(),iconId:mC,disabled:!0,onClickDisabled:this.onClickDisabled};default:return t.enforceAppearance?{text:cl(),iconId:mC,disabled:!0}:null}}render(){const t=this.getChildProps();return t?(0,pe.jsx)(e,{...this.props,...t}):null}}).displayName=e.displayName||e.name,s=n,(0,De.A)(s.prototype,"onClickActive",[je],Object.getOwnPropertyDescriptor(s.prototype,"onClickActive"),s.prototype),(0,De.A)(s.prototype,"onClickSubscribe",[je],Object.getOwnPropertyDescriptor(s.prototype,"onClickSubscribe"),s.prototype),(0,De.A)(s.prototype,"onClickDisabled",[je],Object.getOwnPropertyDescriptor(s.prototype,"onClickDisabled"),s.prototype),s);return(0,l.Ng)(SU)(i)},CU=e=>{const{analyticsContext:t,elementIndex:s,onClick:n,teaserIndex:i,view:r}=e,o=(0,Re.useCallback)(e=>{n(e),ls({action:"replay",category:"watch",view:r,targetNode:e.currentTarget,elementIndex:s,teaserIndex:i}),t===Kt&&as({action:"click_watch",category:"guideNavigation",label:"past_replay"})},[t,s,n,i,r]);return(0,pe.jsx)(bL,{children:(0,pe.jsx)(SL,{iconId:e.iconId,soul:"OVERFLOW_CONTROL_REPLAY",disabled:e.disabled,onClick:o,onClickDisabled:e.onClickDisabled,text:e.text})})};CU.displayName="ReplayOverflowItem";const NU=TU(CU);const fU=e=>(0,pe.jsx)(ln,{className:(0,Ye.A)("RLha2",e.className),soul:e.soul||"MENU_CONTROL_TOGGLE",contentCenter:!0,tabIndex:e.tabIndex,kind:ct,onClick:e.onClick,reference:e.reference,icon:"icons-more",iconClassName:"r1C1w",title:x(438)});var IU="nHcPO",wU="liWEk",OU="gtWFD",DU="zBiEd";const RU=e=>{const{view:t}=e;if(t===hk)return null;const s=[mk,uk].includes(t),n=gk===t;return(0,pe.jsxs)(oj,{soul:"TEASER_MENU",offsetY:12,className:(0,Ye.A)("QoDDj",IU),children:[(0,pe.jsx)(fU,{className:(0,Ye.A)(wU,{[OU]:s,[DU]:n}),tabIndex:-1}),e.children]})},jU=e=>{const{channel:t,program:s}=e,{cid:n}=t;return(0,pe.jsxs)(RU,{view:e.view,children:[(0,pe.jsx)(AL,{channel:t,program:s}),(0,pe.jsx)(fL,{cid:n}),(0,pe.jsx)(bU,{program:s,channel:t}),(0,pe.jsx)(EU,{program:s,channel:t}),(0,pe.jsx)(NU,{channel:t,program:s})]})}
1,kU="NEAREST",PU="CENTER",LU="START",MU={left:0,top:0},UU={alignInAllAreas:!0,alignX:kU,alignY:kU,alwaysScrollX:!1,alwaysScrollY:!1},VU=(e,t={})=>{t={...UU,...t};const{alignX:s,alignY:n}=t;if(!e)return;const i=document.documentElement,r=e.parentElement.closest("[data-scroll-area]")||i,o=r===i;if(o&&document.body.classList.contains(sv))return;let{scrollLeft:a,scrollTop:l}=r;o||(a=0,l=0);const c=e.getBoundingClientRect(),d=r.getBoundingClientRect(),p=o?(e=>{const t=e.closest("[data-content-viewport]");if(!t)return MU;const s=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{left:n.left-s.left,top:n.top-s.top}})(e):MU,u=c.left-d.left-a-p.left,h=c.top-d.top-l-p.top,m=c.right-d.right-a,g=c.bottom-d.bottom-l,y=d.width-p.left,_=d.height-p.top,E=c.width,v=c.height,x=VR(E,y,u),b=VR(v,_,h),A=t.alwaysScrollX||x!==E,S=t.alwaysScrollY||b!==v;let T,C;T=A?s===LU?u:"END"===s?m:s===PU?u-y/2+E/2:Math.abs(u)<Math.abs(m)?u:m:0,t.offsetX&&A&&(T+=t.offsetX),C=S?n===LU?h:"END"===s?g:n===PU?h-_/2+v/2:Math.abs(h)<Math.abs(g)?h:g:0,t.offsetY&&S&&(C+=t.offsetY),!o&&t.alignInAllAreas&&VU(r,t),r.scrollBy(T,C)};class BU{constructor(){this.locked=!1,this.unlockInteraction=(0,xn.A)(()=>{this.locked=!1},1)}isLocked(){return this.locked}lockNextInteraction(){this.locked=!0,this.unlockInteraction.cancel()}interactionHappened(){this.locked&&this.unlockInteraction()}static getInstance(){return this.instance_||(this.instance_=new BU),this.instance_}}BU.instance_=void 0;var FU=s(6774);const HU=e=>e===FU.Y;var GU="oeOvg",qU="vHCPR",YU="Y70eE",WU="F3TGX",zU="qx89Q",$U="KpxgW",KU="YXMfL",QU="vpz7F";const ZU=e=>{const t=e.isStreaming||e.isHighlighted||e.isPicked;return(0,pe.jsx)("section",{ref:e.sectionRef,className:(0,Ye.A)("UWZow",sP,{[aP]:t,[cP]:e.isUpcoming,[GU]:e.isActiveInMarquee,[qU]:e.view===uk,[YU]:e.disabled,[WU]:e.view===mk,[zU]:e.view===gk,[$U]:e.view===hk,[KU]:HU(e.imageStyle)},e.className),"data-soul":e.soul,"aria-current":e.isStreaming?"true":void 0,"data-highlighted":e.isHighlighted,children:e.children&&(0,pe.jsx)("div",{className:(0,Ye.A)("XM6wE",e.contentClassName,{[QU]:e.isHidden}),children:e.children})})};var XU;let JU=(XU=class{constructor(e,t){this.root=void 0,this.rootMargin=void 0,this.observer=void 0,this.observations=new Map,this.root=e,this.rootMargin=t,this.observer=new IntersectionObserver(this.onIntersectionChange,{root:e,rootMargin:t})}subscribe(e,t){this.observations.has(e)?(this.observations.get(e).add(t),this.observer.unobserve(e)):this.observations.set(e,new Set([t])),this.observer.observe(e)}unsubscribe(e,t){const s=this.observations.get(e);s&&(s.delete(t),s.size||(this.observer.unobserve(e),this.observations.delete(e)))}destroy(){this.observer.disconnect(),this.root=null,this.rootMargin=null,this.observer=null}hasObservations(){return this.observations.size>0}notify(e){const t=this.observations.get(e.target);t&&t.forEach(t=>{t(e)})}onIntersectionChange(e){const t=new Map;e.forEach(e=>{t.set(e.target,e)}),t.forEach(this.notify,this)}},(0,De.A)(XU.prototype,"onIntersectionChange",[je],Object.getOwnPropertyDescriptor(XU.prototype,"onIntersectionChange"),XU.prototype),XU);const eV=new Set,tV={root:null,rootMargin:"0px 0px 0px 0px"},sV=e=>Array.from(eV).find(t=>t.root===e.root&&t.rootMargin===e.rootMargin),nV=e=>({...tV,...e}),iV=(e,t,s)=>{s=nV(s);let n=sV(s);n||(n=new JU(s.root,s.rootMargin),eV.add(n)),n.subscribe(e,t)},rV=(e,t,s)=>{s=nV(s);const n=sV(s);n&&(n.unsubscribe(e,t),n.hasObservations()||(n.destroy(),eV.delete(n)))};var oV;let aV=(oV=class{constructor(e,t=!1){this.isVisible=void 0,this.wasVisibleOnce=void 0,this.forceVisible=void 0,this.observedElement=null,this.options=void 0,this.forceVisible=t,this.isVisible=t,this.wasVisibleOnce=t,this.onVisibilityChange=e}init(e,t){this.forceVisible||(this.observedElement=e,this.options=t,iV(this.observedElement,this.onIntersectionChange,t))}destroy(){this.forceVisible||(rV(this.observedElement,this.onIntersectionChange,this.options),this.options=null,this.observedElement=null)}shouldRenderContent(){return this.wasVisibleOnce||this.isVisible}shouldUpdateProps(e,t){return!!this.isVisible&&!jt(e,t)}onPropsReceived(e,t){this.isVisible||this.receivedPropsWhileHidden||(this.receivedPropsWhileHidden=!jt(e,t))}onElementRendered(){this.isVisible&&(this.wasVisibleOnce=!0),this.receivedPropsWhileHidden=!1}shouldUpdateOnIntersection(e){const{isVisible:t,wasVisibleOnce:s}=this;return!(!e||t===e)&&(!s||this.receivedPropsWhileHidden)}onIntersectionChange(e){const{isVisible:t}=this,{isIntersecting:s}=e,n=this.shouldUpdateOnIntersection(s);this.isVisible=s,t!==s&&this.onVisibilityChange(this.isVisible,n)}},(0,De.A)(oV.prototype,"onIntersectionChange",[je],Object.getOwnPropertyDescriptor(oV.prototype,"onIntersectionChange"),oV.prototype),oV);const lV="IN_EDIT",cV="IS_PICKED",dV=e=>e===cV,pV=e=>(e=>e===lV)(e)||dV(e),uV=(e,t)=>e?t?cV:lV:"NONE",hV=(e,t={})=>{var s,n;return(n=class extends Re.Component{constructor(...e){super(...e),this.sectionRef=(0,Re.createRef)(),this.isContentHidden=!1,this.contentLoader=new aV(this.onVisibilityChanged,this.isMarquee()),this.initialScrollIntoView=(0,xn.A)(this.scrollIntoView.bind(this,!0),1)}isMarquee(){return this.props.view===hk}scrollIntoView(e){let t={};e&&(t={alignX:LU,alignY:LU,alwaysScrollX:!0,alwaysScrollY:!0}),BU.getInstance().lockNextInteraction(),VU(this.sectionRef.current,t)}updateContentVisibility(){const e=this.contentLoader.isVisible;if(this.isContentHidden!==e)return;const t=this.sectionRef.current?.firstElementChild;t&&(this.isContentHidden=!e,t.classList.toggle(QU,this.isContentHidden))}onVisibilityChanged(e,t){t?this.forceUpdate(this.updateContentVisibility):this.updateContentVisibility()}shouldComponentUpdate(e){const{contentLoader:t,props:s}=this;return t.onPropsReceived(s,e),!s.isStreaming&&e.isStreaming?(this.scrollIntoView(),!0):s.view!==e.view||t.shouldUpdateProps(s,e)}componentDidMount(){const e=this.sectionRef.current;(this.props.isHighlighted||this.props.isStreaming)&&this.initialScrollIntoView(),this.contentLoader.init(this.sectionRef.current,{root:e.closest("[data-scroll-area=true]"),rootMargin:"260px 220p
1x 260px 220px"})}componentWillUnmount(){this.initialScrollIntoView.cancel(),this.contentLoader.destroy(),this.contentLoader=null}render(){const{contentLoader:s,props:n}=this;return s.onElementRendered(),(0,pe.jsx)(ZU,{className:(0,Ye.A)(n.className,t.className),contentClassName:(0,Ye.A)(n.contentClassName,t.contentClassName),isActiveInMarquee:n.isActiveInMarquee,isHighlighted:n.isHighlighted&&!pV(n.editStatus),isStreaming:n.isStreaming,isUpcoming:n.isUpcoming,disabled:n.disabled,view:n.view,sectionRef:this.sectionRef,soul:n.soul||t.soul,imageStyle:n.imageStyle,isPicked:dV(n.editStatus),children:s.shouldRenderContent()&&(0,pe.jsx)(e,{...n,sectionRef:this.sectionRef})})}}).displayName=e.displayName||e.name,s=n,(0,De.A)(s.prototype,"updateContentVisibility",[je],Object.getOwnPropertyDescriptor(s.prototype,"updateContentVisibility"),s.prototype),(0,De.A)(s.prototype,"onVisibilityChanged",[je],Object.getOwnPropertyDescriptor(s.prototype,"onVisibilityChanged"),s.prototype),s};var mV="f376q",gV="uYZ4Q",yV="xrBam",_V="o_1nG",EV="A589m",vV="_BQZ2",xV="vMjas",bV="Pl26M",AV="f8HTn",SV="ueWFv",TV="rcBwm",CV="I954G";const NV="TEASER_CHANNEL_OVERLAY_WATCH",fV=((e,t={})=>{const s=hV(e,t);return e=>{const t=e.view===gk,{className:n,...i}=e;return(0,pe.jsx)(s,{...i,className:(0,Ye.A)(n,{[CV]:t})})}})(e=>{const{channel:t,isLocked:s,program:n,view:i}=e;if(!t||!n)return null;const r=i===gk,o=i===mk||i===uk,a=i===hk,l=!1!==e.hasMenu,c=e.title||t.title,d=e.title||n.t,p=e.text||e.program.et,u=lx(t.url_cid,n.id),h=!1!==e.hasDetails&&u,m=yL(e.isActiveInMarquee),g=s=>{s.preventDefault(),e.watchLive(t.cid),as({action:"live",category:"watch",label:qt(s.currentTarget)})};return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(vP,{alt:d,kind:pP,cid:t.cid,className:(0,Ye.A)({[SV]:r,[AV]:e.deemphasised}),sourceClassName:(0,Ye.A)("uFqfF",{[TV]:r}),view:i,token:e.imageToken,title:c,children:!r&&(0,pe.jsx)(EL,{onClick:g,title:yc({title:c}),soul:NV,tabIndex:h?-1:0})}),(0,pe.jsxs)(Kk,{className:(0,Ye.A)({[mV]:r,[gV]:o,[yV]:e.deemphasised}),cid:t.cid,view:i,withMenu:l,children:[(0,pe.jsx)(Vk,{className:(0,Ye.A)("_SHNb",{[vV]:r,[bV]:e.deemphasised,[xV]:o}),token:Sp(t).logo_token,alt:c,view:i,large:!a}),(0,pe.jsx)(qk,{className:(0,Ye.A)({[EV]:e.deemphasised}),title:d,text:p,condensed:r}),(0,pe.jsxs)(Fk,{className:(0,Ye.A)({[_V]:e.deemphasised}),view:i,children:[(0,pe.jsx)(SP,{progressTimeNow:Vt.hY(),progressTimeMax:n.e,progressTimeMin:n.s,hasProgress:!0}),(0,pe.jsxs)("div",{className:XP,children:[(0,pe.jsx)(gL,{className:vL,cid:t.cid,program:n}),(0,pe.jsx)(ZP,{startTime:n.s,endTime:n.e,view:i})]}),l&&(0,pe.jsx)(jU,{channel:t,program:n,view:i})]}),h&&!r&&(0,pe.jsx)(Lk,{pathname:lx(t.url_cid,n.id),tabIndex:m,title:d})]}),a&&(0,pe.jsx)(_L,{id:e.teaserIndex,hidden:e.isActiveInMarquee,onClick:e.onClickLinkMarquee,tabIndex:-1}),r&&(0,pe.jsx)(EL,{onClick:g,title:yc({title:c}),soul:NV}),e.isFavorite&&(0,pe.jsx)(lL,{className:xL}),s&&(0,pe.jsx)(cL,{className:xL})]})},{soul:"TEASER_CHANNEL"});const IV=e=>{const{program:t}=e;return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(ZP,{className:"mD27V",startTime:t.s,endTime:t.e,view:gk}),(0,pe.jsx)(qk,{className:"WmkCh",titleClassName:"yv1f9",title:t.t,text:t.et,condensed:!0}),(0,pe.jsx)(Lk,{pathname:lx(e.cid,t.id),analyticsLabel:"preview",title:t.t})]})};IV.displayName="TeaserPreview";const wV=hV(IV,{className:"cDf4j",contentClassName:"e4O7T",soul:"TEASER_PREVIEW"});const OV=e=>e.channels.map(t=>{const{cid:s}=t,n=e.livePrograms[s];if(!n)return null;const i=s===e.streamCID;return(0,pe.jsxs)(Re.Fragment,{children:[(0,pe.jsx)(fV,{channel:t,deemphasised:e.deemphasised,hasDetails:e.hasDetails,hasMenu:e.hasMenu,isFavorite:e.channelsFavoritesList.includes(s),isStreaming:i,isLocked:Ip(t),program:n,rid:e.pidrid[n.id],view:e.view,watchLive:e.watchLive,timerUpdate:e.updateTime}),e.withUpcomingPrograms&&(0,pe.jsx)(wV,{className:"PrLWt",view:e.view,program:e.upcomingPrograms[s],cid:s,timerUpdate:e.updateTime})]},s)}),DV="icons-delete";var RV,jV="qlkxV",kV="plC3V",PV="IDBJh",LV="viysM",MV="C0OGN";let UV=(RV=class extends Re.Component{removeFavorite(){this.props.removeFavorite(this.props.channel.cid)}render(){const{props:e}=this,{view:t,channel:s}=e;if(!s)return null;const n=t===mk;return(0,pe.jsx)("div",{"data-id":s.cid,className:"vkBdE",children:(0,pe.jsxs)(ZU,{className:(0,Ye.A)({[MV]:t===gk}),contentClassName:"OzFFG",soul:"TEASER_CHANNEL_SORT",view:t,children:[(0,pe.jsx)(ln,{className:(0,Ye.A)("o5Vdy",{[PV]:n}),onClick:this.removeFavorite,soul:"TEASER_CHANNEL_FAVORITE_REMOVE",kind:pt,title:il(),icon:DV,iconClassName:"jIcPx"}),(0,pe.jsx)(Vk,{alt:s.title,className:(0,Ye.A)("KzMGx",{[kV]:n}),token:s.qualities[0].logo_token,view:t,large:!0}),(0,pe.jsx)("h2",{className:(0,Ye.A)("yfJth",{[LV]:n}),children:s.title}),(0,pe.jsx)(ft,{className:(0,Ye.A)("k5Uyh",{[jV]:n}),id:"icons-sort-list"})]})})}},(0,De.A)(RV.prototype,"removeFavorite",[je],Object.getOwnPropertyDescriptor(RV.prototype,"removeFavorite"),RV.prototype),RV);const VV=e=>(0,pe.jsx)(pe.Fragment,{children:e.channels.map(t=>(0,pe.jsx)(UV,{channel:t,view:e.view,removeFavorite:e.removeFavorite},t.cid))});var BV="lE9tn",FV="zy2pO",HV="S2DcB";const GV=e=>(0,pe.jsx)("div",{id:e.id,className:(0,Ye.A)({[HV]:e.view===mk,[FV]:e.view===gk,[BV]:e.isPortrait&&e.view===mk},e.className),"data-soul":e.soul,"data-context":e.dataContext,children:e.children});var qV,YV,WV="f25_m";let zV=(YV=class extends Re.PureComponent{watchLive(e){this.props.dispatch(bI({cid:e}))}removeFavorite(e){this.props.dispatch(bk(e))}getView(){return this.props.view===mk?mk:gk}render(){const{props:e}=this,t=this.getView(),s=!(0,me.A)(e.upcomingPrograms)&&t===gk&&!e.inSort;return(0,pe.jsx)(GV,{view:t,dataContext:e.dataContext,className:(0,Ye.A)({[WV]:s}),children:(()=>(0,me.A)(e.livePrograms)?x(22):e.inSort?(0,pe.jsx)(VV,{channels:e.channels,view:t,removeFavorite:this.removeFavorite}):(0,pe.jsx)(OV,{view:t,channels:e.channels,channelsFavoritesList:e.channelsFavoritesList,deemphasised:e.deemphasised,streamCID:e.streamCID,livePrograms:e.livePrograms,pidrid:e.pidrid,hasDetail
1s:e.hasDetails,hasMenu:e.hasMenu,upcomingPrograms:e.upcomingPrograms,updateTime:e.updateTime,watchLive:this.watchLive,withUpcomingPrograms:s},e.group))()})}},YV.displayName="Channels",qV=YV,(0,De.A)(qV.prototype,"watchLive",[je],Object.getOwnPropertyDescriptor(qV.prototype,"watchLive"),qV.prototype),(0,De.A)(qV.prototype,"removeFavorite",[je],Object.getOwnPropertyDescriptor(qV.prototype,"removeFavorite"),qV.prototype),qV);const $V=(0,l.Ng)((e,t)=>({channels:vp(e),channelsFavoritesList:Pp(e),group:gp(e),livePrograms:gI(e),pidrid:Ck(e),streamCID:Cm(e),upcomingPrograms:t.hasUpcomingPrograms?yI(e):void 0,updateTime:EI(e)}))(zV),KV="CINEMA_CHANNELS_SIDEBAR_OPENED",QV=()=>{const e=ae(KV);return!(0,nC.A)(e)||e},ZV="LINEUP_CURRENT_UPDATED",XV="LINEUP_GROUP",JV=e=>(t,s)=>{const n=s();let i;e||(e=gp(n));const r=Dp(n);switch(e){case hp:i=r;break;case mp:{const e=Pp(n);i=Kb(r,e);break}default:{const t=Mp(n)[e],s=(e=>Op(e).groupedChannels)(n)[t];i=Kb(r,s);break}}return oe(XV,e),t({type:ZV,group:e,collection:i})},eB="CHANNELS_SIDEBAR_CLOSED",tB="CHANNELS_SIDEBAR_OPENED",sB="CHANNELS_SIDEBAR_ALLOWED",nB="CHANNELS_SIDEBAR_DISALLOWED",iB=()=>({type:sB}),rB=()=>({type:nB}),oB=()=>(e,t)=>{const s=t();Fy(s)&&oe(KV,!0),e({type:tB}),Un({type:Nn,channel_group:gp(s),user_interaction:fN(s)})},aB=()=>(e,t)=>{Fy(t())&&oe(KV,!1),e({type:eB})},lB=()=>(e,t)=>{if(!Fy(t()))return;e(QV()?oB():aB())},cB=()=>(e,t)=>{Vp(t())?e(aB()):e(oB())},dB=e=>(0,l.d4)(Gy)?(0,li.createPortal)(e.children,document.getElementById(cN)):(0,pe.jsx)(pe.Fragment,{children:e.children}),pB="previous",uB="next";var hB="WL_Cu",mB="u5bW8",gB="ApVLD",yB="RU2ln",_B="n40t9",EB="owzZ0",vB="YLI3k";const xB=e=>{const t=e.direction===pB,s=t?B():V(),n=t?Dv:_C;return(0,pe.jsx)(ln,{className:(0,Ye.A)("gUan2",e.className,{[vB]:e.visible,[mB]:e.direction===uB,[yB]:t,[gB]:e.hasDim&&!t,[_B]:e.hasDim&&t,[EB]:e.inTransparent}),contentClassName:(0,Ye.A)("PfUI7",{[hB]:e.inTransparent}),onClick:e.onClick,title:e.title||s,soul:e.soul,color:Et,reference:e.reference,icon:n,iconClassName:"PaOAk"})},bB=(e,t={range:.5})=>{var s,n;let i=(n=class extends Re.PureComponent{constructor(...e){super(...e),this.state={leftEdgeReached:!0,rightEdgeReached:!1},this.scrollAreaReference=(0,Re.createRef)(),this.onScrollDelayed=(0,xn.A)(this.onScroll.bind(this),300)}previous(){this.getScrollArea().scrollLeft-=t.range*this.getScrollArea().clientWidth}next(){this.getScrollArea().scrollLeft+=t.range*this.getScrollArea().clientWidth,this.updateScrollEdges()}scrollSelectedIntoView(){const e=this.getScrollArea(),t=e.querySelector(this.props.scrollSubject);t&&(e.style.scrollBehavior="auto",VU(t,{alignInAllAreas:!1,alignX:PU,alwaysScrollX:!0}),e.style.scrollBehavior="")}updateScrollEdges(){if(this.props.isHidden)return;const{state:e}=this,t=this.getScrollArea(),s=t.scrollWidth-t.offsetWidth,n=Math.ceil(t.scrollLeft),i=n>=s-1,r=0===n;e.leftEdgeReached===r&&e.rightEdgeReached===i||this.setState({leftEdgeReached:r,rightEdgeReached:i})}getScrollArea(){return this.scrollAreaReference.current}onScroll(){this.updateScrollEdges()}componentDidMount(){this.getScrollArea().addEventListener("scroll",this.onScrollDelayed),this.props.scrollSubject&&this.scrollSelectedIntoView(),this.updateScrollEdges()}componentDidUpdate(){this.updateScrollEdges()}componentWillUnmount(){this.onScrollDelayed.cancel(),this.getScrollArea().removeEventListener("scroll",this.onScrollDelayed)}render(){const{state:t}=this,s=this.props;return(0,pe.jsx)(e,{leftEdgeReached:t.leftEdgeReached,rightEdgeReached:t.rightEdgeReached,reference:this.scrollAreaReference,next:this.next,previous:this.previous,scrollSelectedIntoView:this.scrollSelectedIntoView,...s})}},n.displayName=e.displayName||e.name,s=n,(0,De.A)(s.prototype,"previous",[je],Object.getOwnPropertyDescriptor(s.prototype,"previous"),s.prototype),(0,De.A)(s.prototype,"next",[je],Object.getOwnPropertyDescriptor(s.prototype,"next"),s.prototype),(0,De.A)(s.prototype,"scrollSelectedIntoView",[je],Object.getOwnPropertyDescriptor(s.prototype,"scrollSelectedIntoView"),s.prototype),s);return i};var AB="g_JTY",SB="LvDXA",TB="J6KQY",CB="G2tKl";const NB=e=>(0,pe.jsxs)("div",{"data-soul":e.soul||"CLUSTER",className:(0,Ye.A)("MJ6a2",e.className),children:[(0,pe.jsx)(xB,{direction:pB,onClick:e.previous,visible:!e.leftEdgeReached,hasDim:e.sideDim,soul:"CLUSTER_CONTROL_PREVIOUS",inTransparent:e.inTransparent,className:(0,Ye.A)(TB,{[CB]:e.inTransparent})}),(0,pe.jsx)("div",{className:(0,Ye.A)("QJIGN",Rr),ref:e.reference,role:e.role,"data-scroll-area":!0,children:e.children}),(0,pe.jsx)(xB,{direction:uB,onClick:e.next,visible:!e.rightEdgeReached,hasDim:e.sideDim,soul:"CLUSTER_CONTROL_NEXT",inTransparent:e.inTransparent,className:(0,Ye.A)(TB,{[CB]:e.inTransparent})})]});NB.displayName="Cluster";const fB=bB(NB);var IB,wB;let OB=(wB=class extends Re.Component{changeGroup(e){this.props.dispatch((e=>(t,s)=>{t(JV(e));const n=s(),i=ja(n);
1i&&[Hc,Fd].forEach(s=>{i.indexOf(s)>-1&&t(Fa(`${s}/${e}`))}),Un({type:Nn,channel_group:e,user_interaction:fN(n)}),as({action:"clickTab",category:"tabNavigation"})})(e))}componentDidMount(){this.props.dispatch(JV(this.props.group))}render(){const{props:e}=this,t=[{id:null,name:_l(),alias_id:hp,soul:"CHANNELS_SIDEBAR_CLUSTER_CONTROL_ALL"},{id:null,name:El(),alias_id:mp,soul:"CHANNELS_SIDEBAR_CLUSTER_CONTROL_FAVORITES"},...e.groups];return(0,pe.jsx)(fB,{className:e.className,scrollSubject:"[aria-current]",isHidden:this.props.isHidden,sideDim:!0,children:t.map(t=>{const{alias_id:s}=t,n=e.group===s;return(0,pe.jsx)(ln,{className:(0,Ye.A)(AB,{[SB]:n}),onClick:()=>this.changeGroup(s),soul:t.soul||"CHANNELS_SIDEBAR_CLUSTER_CONTROL","aria-current":e.group===s?"group":void 0,tabIndex:n?-1:0,text:t.name},s)})})}},wB.displayName="OSDChannelsCluster",IB=wB,(0,De.A)(IB.prototype,"changeGroup",[je],Object.getOwnPropertyDescriptor(IB.prototype,"changeGroup"),IB.prototype),IB);const DB=(0,l.Ng)(e=>({group:gp(e),groups:Lp(e)}))(OB);var RB="DSV21",jB="UkXm4",kB="TgO8K",PB="RBeNH";const LB=(0,Re.memo)(()=>{const e=(0,l.wA)(),t=(0,l.d4)(Fp),s=(0,l.d4)(Fy),n=(0,l.d4)(Gy),i=(0,l.d4)(Vp);if(!(0,l.d4)(Bp))return null;const r=()=>e(aB()),o=`${x(174)} (${x(89)})`;return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(dB,{children:(0,pe.jsxs)("div",{className:(0,Ye.A)("eod9Q",{[RB]:!i,[jB]:s,[kB]:n}),"data-soul":"CHANNELS_SIDEBAR",children:[(0,pe.jsxs)("div",{className:(0,Ye.A)("UjSP5",{[PB]:n}),children:[(0,pe.jsx)(DB,{className:"hL8xd",isHidden:!i}),t?(0,pe.jsx)(Ak,{}):(0,pe.jsx)("div",{className:(0,Ye.A)("P7FVs",Rr,yk),"data-scroll-area":!0,children:(0,pe.jsx)($V,{view:gk,deemphasised:!n,hasMenu:!1})}),(0,pe.jsx)(ln,{className:"JKq7S",onClick:r,kind:pt,color:Et,title:o,soul:"CHANNELS_SIDEBAR_CONTROL_CLOSE",icon:Dv,iconClassName:"Z0gwV"})]}),n&&(0,pe.jsx)(ln,{className:"K2tBT",onClick:r,title:o,soul:"CHANNELS_SIDEBAR_LAYER_CLOSE"})]})}),(0,pe.jsx)(Cr,{keyMap:{[sr]:r,[ur]:()=>{s&&window.innerWidth<Ft||e(cB())}}})]})}),MB="IMA_ALL_FINISHED",UB="IMA_BOOTED",VB="IMA_FINISHED",BB="IMA_LOAD_REQUESTED",HB="IMA_LOAD_REJECTED",GB="IMA_LOADED",qB="IMA_MANIFEST_LOADED",YB="IMA_META_STORED",WB="IMA_PAUSE_REQUESTED",zB="IMA_PAUSED",$B="IMA_PLAY_REQUESTED",KB="IMA_PLAY_STARTED",QB="IMA_POD_READY",ZB="IMA_PROGRESSED",XB="IMA_RELOAD_REQUESTED",JB="IMA_SDK_LOAD_REQUESTED",eF="IMA_SDK_LOADED",tF="IMA_SDK_LOAD_FAILED",sF="IMA_SET_VOLUME",nF="IMA_SKIPPED",iF="IMA_STOP_REQUESTED",rF="IMA_STREAM_PAUSED",oF="IMA_STREAM_RESTORED",aF="IMA_THIRD_QUARTILE_REACHED",lF="IMA_AD_ERROR",cF=()=>({type:WB}),dF=()=>({type:$B}),pF=()=>({type:iF}),uF=e=>({type:sF,volume:e}),hF=()=>({type:oF}),mF=()=>({type:tF}),gF="PLAYER_VOLUME_MUTED",yF="PLAYER_VOLUME_UNMUTED",_F="PLAYER_VOLUME_UPDATED",EF=()=>({type:gF}),vF=()=>({type:yF}),xF="PLAYER_AUTOPLAY_BLOCKED",bF="PLAYER_BOOT_REQUESTED",AF="PLAYER_BOOTED",SF="PLAYER_DESTROY_REQUESTED",TF="PLAYER_FETCHED",CF="PLAYER_QUEUED",NF="PLAYER_UNQUEUED",fF="PLAYER_LOAD_REQUESTED",IF="PLAYER_UNLOAD_REQUESTED",wF=e=>({type:xF,value:e}),OF=e=>({type:fF,data:e}),DF=()=>({type:NF}),RF=()=>({type:IF}),jF=()=>(e,t)=>{e(bI({cid:Cm(t())}))},kF=e=>dg(e)&&Boolean(_u(e)),PF="middle",LF="bottom",MF={skin:PF,isSkinBottom:!1,isSkinMiddle:!0},UF=(0,Re.createContext)(MF),VF=CSS.supports("scroll-snap-align: start")&&!Pe.nr,BF=e=>e.logoToken?(0,pe.jsx)(KT,{alt:e.alt,className:e.className,token:e.logoToken,format:WT.w1,format2x:WT.eB,soul:"OSD_CONTENT_PROVIDER_LOGO",width:80,height:45}):null;var FF="hj3GF",HF="Zjjn5",GF="gUAAV";const qF=e=>{const t=(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)("span",{className:"bK42J","data-soul":"OSD_HEADING_TITLE",children:e.title}),e.subtitle&&(0,pe.jsx)("span",{className:"iAd1E","data-soul":"OSD_HEADING_SUBTITLE",children:e.subt
1itle})]});return(0,pe.jsx)("div",{className:(0,Ye.A)("mtGVo",e.className,{[HF]:"m"===e.size,[FF]:"l"===e.size}),"data-soul":"OSD_HEADING",children:e.hasDetails?(0,pe.jsx)(Rk,{contentClassName:GF,pathname:e.detailsPath,analyticsCategory:e.analyticsCategory,children:t}):(0,pe.jsx)("span",{className:GF,children:t})})},YF="previous",WF="next";const zF=(0,Re.memo)(e=>{const t=(0,l.d4)(FD),s=(0,l.d4)(HD),n=(0,l.wA)();if(!t)return null;const{className:i,...r}=(()=>{switch(e.position){case YF:return{className:"CbAMv",iconId:Dv,onClick:()=>n(xR(YD)),title:`${pc()} (j)`,soul:"OSD_CONTROL_ZAP_PREVIOUS"};case WF:return{className:"CqIfZ",iconId:_C,onClick:()=>n(vR(YD)),title:`${dc()} (l)`,soul:"OSD_CONTROL_ZAP_NEXT"};default:return null}})();return(0,pe.jsx)(kR,{className:(0,Ye.A)("xJ70S",i),iconClassName:"Z0TQb",disabled:!s,contentCenter:!0,isPreview:e.isPreview,...r})}),$F=(e,t,s=R())=>!e||(0,me.A)(t)?null:t[e]?.[s]||`${t.default?.[s]} (${e})`;var KF="Rz_BI",QF="Rp9gb",ZF="q39LM";const XF=e=>{const{inverse:t}=e;return(0,pe.jsxs)("label",{className:(0,Ye.A)("djpt5",{[KF]:t,[QF]:t&&e.checked},e.className),"data-soul":e.soul,children:[(0,pe.jsx)("input",{className:"KuLhF",id:e.id,name:e.name,type:"radio",value:e.value,onChange:e.onChange,checked:e.checked,defaultChecked:e.defaultChecked}),(0,pe.jsx)("span",{className:"mldc6"}),(0,pe.jsx)("span",{className:"WYMWJ"}),(0,pe.jsx)("span",{className:(0,Ye.A)("I83Nn",e.contentClassName,{[ZF]:e.checked}),children:e.text})]})};var JF="xVoUP",eH="VNWAW",tH="UfkmK",sH="_0HxKj",nH="blrWI",iH="cMY4R";class rH extends Re.PureComponent{render(){const{props:e}=this,{audioTrack:t,languageNames:s}=e;return(0,me.A)(t)?null:(0,pe.jsxs)("div",{className:(0,Ye.A)(sH,Rr),children:[(0,pe.jsx)("div",{className:nH,children:Yl()}),e.availableAudioTracks.map(({id:e,languageCode:n})=>{const i=e===t.id;return(0,pe.jsx)("div",{className:JF,"data-soul":"AUDIO_TRACK_OPTION",children:(0,pe.jsx)(XF,{className:(0,Ye.A)(eH,{[tH]:i}),contentClassName:Qi,checked:i,text:$F(n,s),name:"audio",onChange:()=>this.props.changeAudioTrack({id:e,languageCode:n}),value:e,inverse:!0})},e)})]})}}const oH=e=>{const t=t=>{e.setSubtitlesTrack({id:t.target.value})};return(0,pe.jsxs)("div",{className:(0,Ye.A)(sH,Rr),"data-soul":"OSD_CONTROL_SUBTITLES",children:[(0,pe.jsx)("div",{className:nH,children:Wl()}),(0,me.A)(e.subtitlesTrack)?(0,pe.jsx)("p",{className:"bHzlg",children:x(180)}):e.availableSubtitlesTracks.map(({id:s,languageCode:n,hearingImpaired:i})=>{const r=s===e.subtitlesTrack.id,o=n?$F(n,e.languageNames):x(302),a=i?`${o} (${x(181)})`:o;return(0,pe.jsx)("div",{className:JF,children:(0,pe.jsx)(XF,{className:(0,Ye.A)(eH,{[tH]:r}),checked:r,text:a,name:"subtitles",onChange:t,value:s,inverse:!0,soul:"OSD_CONTROL_SUBTITLES_OPTION",id:n||"empty_language_code",contentClassName:(0,Ye.A)(Qi,"NTJTL")})},s)})]})},aH=e=>e.stream.tracks.languageNames,lH=e=>{const t=(0,l.wA)(),s=(0,l.d4)(Yy),n=(0,l.d4)(dD),i=(0,l.d4)(pD),r=(0,l.d4)(ZO),o=(0,l.d4)(XO),a=(0,l.d4)(aH);return(0,pe.jsxs)(oj,{onOpen:e.onDropdownOpen,onClose:e.onDropdownClose,animated:!1,children:[(0,pe.jsx)(kR,{contentCenter:!0,iconId:EC,soul:"OSD_CONTROL_MEDIA",title:`${Yl()} (a) / ${Wl()} (c)`}),(0,pe.jsxs)("div",{className:(0,Ye.A)("wCBru",{[iH]:s},Rr),children:[(0,pe.jsx)(rH,{audioTrack:n,availableAudioTracks:i,changeAudioTrack:e=>{t(jD(e))},languageNames:a}),(0,pe.jsx)(oH,{subtitlesTrack:r,availableSubtitlesTracks:o,setSubtitlesTrack:e=>{t(cD(e))},languageNames:a})]})]})},cH=_U(e=>(0,pe.jsx)(kR,{contentCenter:!0,soul:"OSD_CONTROL_RECORDS",disabled:e.disabled,iconId:e.iconId,onClick:e.onClick,onClickDisabled:e.onClickDisabled,title:e.text})),dH=(0,Re.memo)(e=>{const{channel:t,program:s}=e,n=(0,l.d4)(e=>$f(e,s.id)),i=(0,l.d4)(e=>Tk(e,t.cid,s.ts_id)),r=(0,l.d4)(gh),o=(0,l.d4)(Eh),a=(0,l.d4)(vh),c=wA({channel:t,program:s,recordingEarliestStartTime:r,recordingSeriesEligible:o,recordingSubscribable:a,rid:n});if(OA({channel:t,program:s,recordingSeriesEligible:o,series:i})){const i=DA(n);return(0,pe.jsxs)(oj,{className:IU,onOpen:e.onDropdownOpen,onClose:e.onDropdownClose,children:[(0,pe.jsx)(kR,{soul:"OSD_CONTROL_RECORDS",iconId:i.iconId,title:i.text}),(0,pe.jsx)(bU,{program:s,channel:t}),(0,pe.jsx)(EU,{program:s,channel:t})]})}return c?(0,pe.jsx)(cH,{channel:t,program:s}):null});var pH="gBFry";
1const uH=({symbol:e,text:t})=>(0,pe.jsxs)("tr",{children:[(0,pe.jsx)("td",{className:pH,children:e&&(0,pe.jsx)("span",{className:"RNihi",children:e})}),(0,pe.jsx)("td",{className:pH,children:t})]},e),hH=({hasPiP:e})=>(0,pe.jsx)("table",{className:(0,Ye.A)("Ajev1"),"data-soul":"HOTKEYS_INFO_TABLE",children:(0,pe.jsxs)("tbody",{children:[(0,pe.jsx)(uH,{symbol:`${IR} / ${x(90)}`,text:x(278)}),(0,pe.jsx)(uH,{symbol:"l",text:dc()}),(0,pe.jsx)(uH,{symbol:"j",text:pc()}),(0,pe.jsx)(uH,{symbol:"h",text:x(274)}),(0,pe.jsx)(uH,{symbol:"→",text:hc({seconds:60})}),(0,pe.jsx)(uH,{symbol:"←",text:uc({seconds:30})}),(0,pe.jsx)(uH,{symbol:"b",text:cl()}),(0,pe.jsx)(uH,{symbol:"a",text:Yl()}),(0,pe.jsx)(uH,{symbol:"c",text:Wl()}),e&&(0,pe.jsx)(uH,{symbol:"p",text:x(273)}),(0,pe.jsx)(uH,{symbol:"t",text:x(271)}),(0,pe.jsx)(uH,{symbol:"f",text:x(272)}),(0,pe.jsx)(uH,{symbol:"m",text:x(275)}),(0,pe.jsx)(uH,{symbol:"↑",text:x(277)}),(0,pe.jsx)(uH,{symbol:"↓",text:x(276)})]})});const mH=e=>He()?null:(0,pe.jsxs)(oj,{className:(0,Ye.A)("mnC4o",IU,Rr),onOpen:e.onDropdownOpen,onClose:e.onDropdownClose,children:[(0,pe.jsx)(kR,{contentCenter:!0,iconId:"icons-help",soul:"OSD_CONTROL_INFO",className:"eVDYi",title:cc()}),(0,pe.jsx)("h3",{className:"p_WN5",children:cc()}),(0,pe.jsx)(hH,{hasPiP:e.hasPiP})]});const gH=e=>e===LF,yH=e=>e===PF;var _H="hr6ya";const EH=e=>{const t=He()&&VF,s=gH(e.skin)?"l":"m";return(0,pe.jsxs)(Cj,{className:e.className,fadeOut:e.inZap,soul:e.soul,children:[e.settings.close&&(0,pe.jsx)(LR,{className:_H,close:e.onClose,isViewFullscreen:e.isMediaViewFullscreen,isPreview:e.isPreview}),e.settings.zap&&!t&&(0,pe.jsx)(zF,{position:YF,isPreview:e.isPreview}),(0,pe.jsx)(BF,{alt:e.distributorTitle,className:"mkDwf",logoToken:e.logoToken}),e.settings.zap&&!t&&(0,pe.jsx)(zF,{position:WF,isPreview:e.isPreview}),!e.hasOnlyMeta&&(0,pe.jsx)(gL,{className:"e2Qyt",iconClassName:"GHfez",cid:e.channel.cid,program:e.program}),(0,pe.jsx)(qF,{className:_H,hasDetails:e.settings.broadcastDetails&&e.openDetailsInWindow,detailsPath:e.detailsPath,analyticsCategory:e.analyticsCategory,title:e.title,subtitle:e.subtitle,size:s}),!e.hasOnlyMeta&&(e.isMediaViewCinema||e.isMediaViewFullscreen)&&(0,pe.jsx)(mH,{hasPiP:e.hasPiP,onDropdownOpen:e.onDropdownOpen,onDropdownClose:e.onDropdownClose}),!e.hasOnlyMeta&&e.isModeBroadcast&&(0,pe.jsx)(dH,{channel:e.channel,program:e.program,onDropdownOpen:e.onDropdownOpen,onDropdownClose:e.onDropdownClose}),!e.hasOnlyMeta&&(0,pe.jsx)(lH,{onDropdownOpen:e.onDropdownOpen,onDropdownClose:e.onDropdownClose})]})};var vH,xH;let bH=((xH=class extends Re.Component{close(){this.props.dispatch(Df())}render(){const{skin:e}=this.context,{props:t}=this;return(0,pe.jsx)(EH,{onClose:this.close,skin:e,soul:"OSD_TOP",...t})}}).displayName="OSDTop",xH.contextType=UF,vH=xH,(0,De.A)(vH.prototype,"close",[je],Object.getOwnPropertyDescriptor(vH.prototype,"close"),vH.prototype),vH);const AH=(0,l.Ng)(e=>({analyticsCategory:nu(e),channel:Sm(e),detailsPath:$w(e),distributorTitle:zw(e),hasPiP:VD(e),inZap:BD(e),isMediaViewCinema:Fy(e),isMediaViewFullscreen:Gy(e),isModeBroadcast:ou(e),logoToken:Ww(e),openDetailsInWindow:su(e),program:Qu(e),settings:GD(e),subtitle:qw(e),title:Hw(e)}))(bH);var SH="GKQHP",TH="dUpTF",CH="rsWGT",NH="RmNiN",fH="ajGbD",IH="OUoWD";const wH=e=>(0,pe.jsx)(Ke,{className:(0,Ye.A)("mkggn",e.className),centered:!0});const OH=()=>{const e=(0,l.d4)(lO),t=(0,l.d4)(dC),s=(0,l.d4)(kF),n=(0,l.d4)(Kp),i=(0,l.wA)(),r=(0,Re.useCallback)(()=>{s&&i({type:XB}),!Pe.nr&&n?i(jF()):(s&&i(EF()),i(pO())),i(wF(!1))},[i,n,s]);return(0,pe.jsxs)("div",{className:(0,Ye.A)(SH,TH,"sbgD9"),children:[(0,pe.jsx)(AH,{hasOnlyMeta:!0}),t?(0,pe.jsx)(wH,{}):(0,pe.jsx)(Sj,{className:"N31HG",canPlay:e,onClick:r,prime:!0})]})},DH="STREAM_PIN_REQUIRED",RH="STREAM_PIN_CLEARED",jH="STREAM_PIN_LOCKED",kH="STREAM_PIN_UNLOCKED",PH="STREAM_PIN_PROVIDED",LH="STREAM_PIN_SCHEDULED",MH="STREAM_PIN_SCHEDULED_RESOLVED",UH="STREAM_PIN_ERROR_RECEIVED",VH=()=>({type:RH}),BH=e=>({type:LH,timestamp:e});var FH="_JZaf",HH="BcNXT";var GH,qH;const YH="pin-field";let WH=(qH=class extends Re.Component{constructor(...e){super(...e),this.formRef=(0,Re.createRef)()}applyPin(e){this.props.dispatch((e=>({type:PH,pin:e}))(e))}isComplete(e){return 4===e.length}onSubmit(e){e.preventDefault();const t=new FormData(e.currentTarget).get(YH);this.isComplete(t)&&this.applyPin(t)}onPinChange(e){this.isComplete(e)&&this.applyPin(e)}onForgot(){Un({type:"PARENTAL_PIN_FORGOT"});const e=!I.forgot_pin,t=e?null:()=>{Un({type:"PARENTAL_PIN_MANAGE"}),window.open(I.forgot_pin,"_blank")},s={text:e?ol():Ql(),callback:t},n={text:x(e?197:198),textAlign:Dr};io({messages:[n],job:s,options:{primaryOnly:e,onClose:()=>{Un({type:"PARENTAL_PIN_CANCEL"})}}})}render(){return(0,pe.jsxs)("form",{className:"xcAKX",onSubmit:this.onSubmit,ref:this.formRef,"data-soul":"PIN_FORM",children:[(0,pe.jsx)("p",{className:HH,children:x(206)}),(0,pe.jsx)(YS,{name:YH,className:"NWegj",onChange:this.onPinChange}),this.props.PINAttemptsLeft<3&&(0,pe.jsx)("p",{className:FH,children:Kl({number:this.props.PINAttemptsLeft})}),(0,pe.jsx)(ln,{contentClassName:"RP3ap",soul:"PIN_FORGOT_CONTROL",onClick:this.onForgot,kind:dt,color:yt,text:Jl(),tap:!0})]})}},qH.displayName="PINForm",GH=qH,(0,De.A)(GH.prototype,"onSubmit",[je],Object.getOwnPropertyDescriptor(GH.prototype,"onSubmit"),GH.prototype),(0,De.A)(GH.prototype,"onPinChange",[je],Object.getOwnPropertyDescriptor(GH.prototype,"onPinChange"),GH.prototype),(0,De.A)(GH.prototype,"onForgot",[je],Object.getOwnPropertyDescriptor(GH.prototype,"onForgot"),GH.prototype),GH);const zH=(0,l.Ng)(e=>({PINAttemptsLeft:Cw(e)}))(WH);var $H,KH;let QH=(KH=class extends Re.Component{constructor(...e){super(...e),this.updateTimerID=null}startUpdates(){this.endUpdates(),this.updateTimerID=setInterval(this.update,1e3)}
1endUpdates(){this.updateTimerID&&(clearInterval(this.updateTimerID),this.updateTimerID=null)}update(){this.forceUpdate()}getRemainingTime(){const{props:e}=this,t=e.lockedUntil-Vt.hY();return(0,DS.A)(t,0,e.lockDuration)}getProgressValue(){return 1-this.getRemainingTime()/this.props.lockDuration}componentDidMount(){this.startUpdates()}componentWillUnmount(){this.endUpdates()}render(){const e=this.getRemainingTime(),t=kS(e,"+");return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)("p",{className:HH,children:x(204)}),(0,pe.jsxs)("div",{className:"kdaRY",children:[(0,pe.jsx)(PS,{value:this.getProgressValue(),className:"_5F3R"}),(0,pe.jsx)(ft,{id:RS,className:"tuDAi"}),(0,pe.jsx)(ft,{id:jS,className:"PW9Oh"})]}),(0,pe.jsx)("p",{className:FH,children:Xl({time:t})})]})}},KH.displayName="PINLock",$H=KH,(0,De.A)($H.prototype,"update",[je],Object.getOwnPropertyDescriptor($H.prototype,"update"),$H.prototype),$H);const ZH=(0,l.Ng)()(QH),XH=e=>(0,pe.jsxs)("div",{className:"q3UWq",children:[(0,pe.jsx)(AH,{className:"Z72Mu",hasOnlyMeta:!0}),(0,pe.jsxs)("div",{className:"TTAci",children:[!e.isLocked&&(0,pe.jsx)(zH,{}),e.isLocked&&(0,pe.jsx)(ZH,{lockedUntil:e.lockedUntil,lockDuration:e.lockDuration})]})]});XH.displayName="PIN";const JH=(0,l.Ng)(e=>({isLocked:Iw(e),lockedUntil:Nw(e),lockDuration:fw(e)}))(XH),eG="IDLE",tG="READY",sG=e=>e.pauseAdLib,nG=e=>sG(e).image,iG=e=>sG(e).status,rG=e=>iG(e)===eG,oG=e=>iG(e)===tG,aG=e=>sG(e).isDisplayed,lG="PLAYER_PERSISTENT_OSD",cG=(()=>{const e=ae(lG);return!!(0,nC.A)(e)&&e})(),dG=e=>e.player.subtitles.cueText,pG=e=>e.player.subtitles.active,uG=e=>({cueText:dG(e),hasSubtitles:pG(e),isViewFullscreen:Gy(e)});var hG="JTnmt",mG="wqKjs";const gG=e=>e.hasSubtitles?(0,pe.jsx)("div",{className:"MOnLk",children:(0,pe.jsx)("div",{className:(0,Ye.A)("qFFuX",{[hG]:e.isViewFullscreen,[mG]:e.isOsdBottomVisible}),children:e.cueText})}):null;gG.displayName="OSDSubtitles";const yG=(_G=gG,(0,l.Ng)(uG)(_G));var _G,EG="TWYGe";const vG="image",xG="thumb",bG=e=>{const{imageBaseUrl:t}=(0,Re.useContext)(pa);let s;return e.type===xG&&e.cid?s=(0,Qk.E)({cid:e.cid,width:1024,height:576,hash:(new Date).setSeconds(0,0).toString()}):e.type===vG&&e.token&&(s=(0,ZS.Rm)({url:t,token:e.token,width:640,height:360})),s?(0,pe.jsx)("div",{className:(0,Ye.A)("wbjkt",{[EG]:e.blur},e.className),style:{backgroundImage:`url(${s})`},children:e.children}):null};var AG="kfxzz";const SG=()=>{const e=(0,l.d4)(Cm),t=(0,l.d4)(Yw),s=(0,l.d4)(Kp),n=(0,Re.useContext)(UF);return(0,pe.jsx)(bG,{className:(0,Ye.A)({[AG]:n.isSkinBottom}),cid:e,type:s?xG:vG,token:t,blur:!s})};var TG,CG=s(7431);let NG=(TG=class e{constructor(){this.observer=new ResizeObserver(this.onSizeChange),this.observations=new WeakMap}subscribe(e,t){const{observations:s}=this;if(s.has(e)){const n=s.get(e);n.subscribers.add(t),n.initial||setTimeout(t,1)}else s.set(e,{initial:!0,subscribers:new Set([t])}),this.observer.observe(e)}unsubscribe(e,t){const s=this.observations.get(e);if(!s)return;const{subscribers:n}=s;n.delete(t),n.size||(this.observer.unobserve(e),this.observations.delete(e))}notify(e){const t=this.observations.get(e);t.initial=!1,t.subscribers.forEach(e=>{e()})}onSizeChange(e){const t=new Set;e.forEach(e=>{t.add(e.target)}),t.forEach(this.notify,this)}static getInstance(){return this.instance_||(this.instance_=new e),this.instance_}},(0,De.A)(TG.prototype,"onSizeChange",[je],Object.getOwnPropertyDescriptor(TG.prototype,"onSizeChange"),TG.prototype),TG);const fG=(e,t)=>{NG.getInstance().subscribe(e,t)},IG=(e,t)=>{NG.getInstance().unsubscribe(e,t)},wG="PAUSE_AD_SESSION_STARTED",OG="PAUSE_AD_SESSION_ENDED",DG="PAUSE_AD_IMAGE_SET",RG="PAUSE_AD_STATUS_SET",jG="PAUSE_AD_DISPLAY_STATUS_SET",kG=e=>({type:RG,status:e});var PG,LG,MG="qBg2G";const UG=16/9;let VG=(LG=class extends Re.Component{constructor(...e){super(...e),this.state={width:"auto",isLoaded:!1,canDisplay:!1},this.containerRef=(0,Re.createRef)()}getOSDElement(){return this.containerRef.current.parentElement}isDisplayed(){const{state:e}=this;return e.canDisplay&&e.isLoaded}updateDisplayStatus(){this.props.dispatch((e=>({type:jG,isDisplayed:e}))(this.isDisplayed()))}getVideoWidth(){const e=this.getOSDElement(),t=e.clientWidth,s=e.clientHeight;return(0,CG.A)(t/s,2)>(0,CG.A)(UG,2)?Math.min(s*UG,t):t}updateDimensions(){const{image:e}=this.props,t=this.containerRef.current,s=this.getVideoWidth(),n=e.width/e.height,i=t.firstElementChild.clientHeight,r=t.clientHeight-i,o=Math.floor(.64*s),a=Math.max(Math.ceil(.54*s),370);let l=o,c=l/n;c>r&&(c=r,l=c*n),this.setState({width:Math.round(l),canDisplay:l>=a})}onResume(){this.props.dispatch(pO())}onResize(){this.updateDimensions()}onLoad(){this.setState({isLoaded:!0})}componentDidMount(){fG(this.getOSDElement(),this.onResize)}componentWillUnmount(){IG(this.getOSDElement(),this.onResize)}componentDidUpdate(e,t){(t.canDisplay&&t.isLoaded)!==this.isDisplayed()&&this.updateDisplayStatus()}render(){const{state:e}=this,{image:t}=this.props,s=e.isLoaded||e.canDisplay;return(0,pe.jsxs)("div",{ref:this.containerRef,className:(0,Ye.A)("lOEkB",{[MG]:this.isDisplayed()}),style:{width:e.width},children:[(0,pe.jsx)(ln,{className:"RYc3A",kind:dt,soul:"PAUSE_AD_RESUME_BUTTON",onClick:this.onResume,text:x(79),icon:Ct,iconClassName:"AlMTT",reverse:!0}),s&&(0,pe.jsx)("img",{src:t.src,width:t.width,height:t.height,className:"p76OV",onLoad:this.onLoad,alt:"pause-ad"})]})}},LG.displayName="PauseAd",PG=LG,(0,De.A)(PG.prototype,"onResume",[je],Object.getOwnPropertyDescriptor(PG.prototype,"onResume"),PG.prototype),(0,De.A)(PG.prototype,"onResize",[je],Object.getOwnPropertyDescriptor(PG.prototype,"onResize"),PG.prototype),(0,De.A)(PG.prototype,"onLoad",[je],Object.getOwnPropertyDescriptor(PG.prototype,"onLoad"),PG.prototype),PG);const BG=(0,l.Ng)(e=>({image:nG(e)}))(VG);var FG;let HG=(FG=class e{constructor(){this.cache=new Map}load(e,t){const s=this.cache.get(e);s?s.img.complete?t(s.img):s.callbacks.add(t):this.loadNewImage(e,t)}cancel(e,t){const s=this.cache.get(e);s?.callbacks.delete(t)}
1clear(){this.cache.forEach(e=>{e.img.src=""}),this.cache.clear()}loadNewImage(e,t){const s=new Image;this.cache.set(e,{img:s,callbacks:new Set([t])}),s.crossOrigin="anonymous",s.onload=this.onImageLoaded,s.src=e}onImageLoaded(e){const t=e.target,s=this.cache.get(t.src);s.callbacks.forEach(e=>{e(t)}),s.callbacks.clear()}static getInstance(){return this.instance_||(this.instance_=new e),this.instance_}},(0,De.A)(FG.prototype,"onImageLoaded",[je],Object.getOwnPropertyDescriptor(FG.prototype,"onImageLoaded"),FG.prototype),FG);var GG="RUBJZ",qG="QfuFR";const YG=Object.values(o),WG=({cleanAnimation:e})=>{const[t,s]=(0,Re.useState)(null),[n,i]=(0,Re.useState)(null),r=(0,Re.useRef)(void 0);return(0,Re.useEffect)(()=>{const e=e=>{e.detail.source!==YD&&(e.detail.iconId||e.detail.output)&&(n===e.detail.iconId&&t===e.detail.output||(i(e.detail.iconId),s(e.detail.output)),(()=>{const e=r.current;r&&(e.classList.remove(GG),e.offsetWidth,e.classList.add(GG),e.addEventListener("onanimationend",()=>{e.classList.remove(GG)}))})())};return YG.forEach(t=>{pR(t,e)}),()=>{YG.forEach(t=>{uR(t,e)})}},[]),(0,Re.useEffect)(()=>{const t=r.current;e&&t&&t.classList.remove(GG)},[e]),(0,pe.jsx)("div",{className:"gaUB5",children:(0,pe.jsxs)("div",{ref:r,className:"YgjTA",children:[n&&(0,pe.jsx)(ft,{id:n}),t&&(0,pe.jsx)("span",{className:(0,Ye.A)({[qG]:n}),children:t})]})})},zG=e=>{const{token:t,width:s,height:n,...i}=e,{imageBaseUrl:r}=(0,Re.useContext)(pa);return(0,pe.jsx)(O_,{src:(0,ZS.Rm)({url:r,token:t,width:s,height:n}),...i})};const $G=e=>e.imageToken?(0,pe.jsx)("div",{className:"qgAKp",children:(0,pe.jsx)(zG,{className:"yL2nP",token:e.imageToken,width:1024,height:576,title:e.title})}):null;$G.displayName="MediaImage";const KG=(0,l.Ng)(e=>({title:Hw(e),imageToken:Yw(e)}))($G),QG="media";const ZG=()=>{const e=(0,l.wA)(),t=(0,Re.useCallback)(()=>{e(zO())},[e]);return(0,Re.useEffect)(()=>(document.getElementById(QG).addEventListener("click",t),()=>{document.getElementById(QG).removeEventListener("click",t)}),[t]),(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)("p",{className:"QdNK_",children:x(11)}),(0,pe.jsx)(Cr,{exclusive:!0,keyMap:{[sr]:t}})]})},XG=e=>({type:Rx,sessionStatus:e});var JG="eBjim",eq="SMcbo",tq="fLQUG";const sq=()=>{const e=(0,l.wA)(),t=(0,l.d4)(Sg),s=(0,l.d4)(Tg),n=(0,l.d4)(Cg),i=(0,l.d4)(Ng);return t?(0,pe.jsx)(kR,{className:(0,Ye.A)("aZUs0","BysTb"),title:x(9),soul:"CONTROL_CAST",onClick:()=>{e({type:Dx})},children:(0,pe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:(0,Ye.A)(Nt,DR,{[JG]:s}),viewBox:"0 0 24 24",children:(0,pe.jsxs)("g",{fill:"none",children:[(0,pe.jsx)("path",{className:(0,Ye.A)(DR,{[tq]:n}),d:"M1 18v3h3c0-1.66-1.34-3-3-3z"}),(0,pe.jsx)("path",{className:(0,Ye.A)(DR,{[tq]:n}),d:"M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"}),(0,pe.jsx)("path",{className:(0,Ye.A)(DR,{[tq]:n}),d:"M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"}),(0,pe.jsx)("path",{className:DR,d:"M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),(0,pe.jsx)("path",{className:(0,Ye.A)(DR,"lvMjZ",{[eq]:i}),d:"M19,7 L5,7 L5,8.63 C8.96,9.91 12.09,13.04 13.37,17 L19,17 L19,7 L19,7 Z"})]})})}):null},nq="icons-pip-in";var iq="q2Qhh";const rq=()=>{const e=(0,l.wA)(),t=(0,l.d4)(VD),s=(0,l.d4)(Pu),n=(0,Re.useCallback)(()=>{e(TN())},[e]);return t?(0,pe.jsx)(kR,{onClick:n,title:`${s?x(33):ll()} (p)`,iconId:s?"icons-pip-out":nq,soul:"OSD_CONTROL_PIP",iconClassName:(0,Ye.A)({[iq]:s}),contentCenter:!0}):null},oq=e=>!!(Kp(e)||Qp(e)||Zp(e))||!!Xp(e)&&th(e),aq=e=>!!Kp(e)||!!(Xp(e)||Zp(e)||Qp(e))&&(th(e)||(e=>{const t=Ju(e),s=eh(e);return(0,Vt.v9)(t-Mg(e),t,{excludeEnd:!0})||(0,Vt.v9)(s,s+Lg(e),{excludeEnd:!0})})(e));const lq=e=>{const t=(0,l.wA)();return e.hasAir?(0,pe.jsx)(kR,{onClick:()=>{t(jF())},contentCenter:!0,disabled:e.disabled,title:x(177),iconId:"icons-live",soul:"OSD_CONTROL_AIR",analyticsData:{category:"videoPlayer"},iconClassName:"BZFGb",isMiddle:e.isMiddle}):null},cq=e=>{const t=(0,l.wA)(),s=()=>{t(hO())};return e.isPlaying?e.hasPause?(0,pe.jsx)(kR,{title:`${x(179)} (${IR})`,iconId:pC,soul:"OSD_CONTROL_PAUSE",onClick:e.canPause?e.pause:void 0,disabled:!e.canPause,onClickDisabled:e.isPauseForbidden?s:void 0,isMiddle:e.isMiddle}):null:(0,pe.jsx)(kR,{title:`${hl()} (${IR})`,iconId:Ct,soul:"OSD_CONTROL_PLAY",onClick:e.play,disabled:!e.canPlay,isMiddle:e.isMiddle})},dq=e=>{const{dispatch:t}=e,s=(0,Re.useCallback)(()=>{t(mR("player_button"))},[t]);return(0,pe.jsx)(kR,{disabled:!e.replaySeekingAllowed||e.disabled,onClick:s,onClickDisabled:e.onClickDisabled,contentCenter:!0,title:`${uc({seconds:30})} (←)`,iconId:uC,soul:"OSD_CONTROL_SEEK_TO_REPLAY",isMiddle:e.isMiddle})};dq.displayName="OSDControlSeekToReplay";const pq=(0,l.Ng)(e=>({channel:Sm(e),program:Qu(e),replaySeekingAllowed:Vg(e)}))(TU(dq,{enforceAppearance:!0})),uq=e=>{const t=(0,l.wA)(),s=(0,l.d4)(Qm);return(0,pe.jsx)(kR,{onClick:()=>{t(mR("player_button"))},contentCenter:!0,title:`${uc({seconds:30})} (←)`,disabled:!s,iconId:uC,soul:"OSD_CONTROL_SEEK_BACKWARD",isMiddle:e.isMiddle})},hq=e=>e.hasSeek?e.isModeLive?(0,pe.jsx)(pq,{isMiddle:e.isMiddle}):(0,pe.jsx)(uq,{isMiddle:e.isMiddle}):null,mq=e=>{const t=(0,l.wA)(),s=(0,l.d4)(Xm),n=(0,Re.useCallback)(()=>{t(gR("player_button"))},[t]),i=(0,Re.useCallback)(()=>{t(PI())},[t]);return e.hasSeek?(0,pe.jsx)(kR,{onClick:n,onClickDisabled:i,contentCenter:!0,title:`${hc({seconds:60})} (→)`,disabled:!s,iconId:hC,soul:"OSD_CONTROL_SEEK_FORWARD",isMiddle:e.isMiddle}):null},gq=e=>{const{onClick:t}=e,s=(0,Re.useCallback)(e=>{t(e),as({category:"watch",action:"replay",label:"player_replay"})},[t]);return(0,pe.jsx)(kR,{contentCenter:!0,soul:"OSD_CONTROL_REPLAY",disabled:e.disabled,iconId:e.iconId,onClick:s,onClickDisabled:e.onClickDisabled,title:e.text,isMiddle:e.isMiddle})};gq.displayName="OSDControlReplay";const yq=(0,l.Ng)(e=>({channel:Sm(e),program:Qu(e)}))(TU(gq,{enforceAppearance:!0})),_q=e=>{const t=(0,l.wA)();return(0,pe.jsx)(kR,{onClick:()=>{t(mO())},contentCenter:!0,title:dl(),iconId:mC,soul:"OSD_CONTROL_RESTART",isMiddle:e.isMiddle})},Eq=e=>e.hasReplay?e.isModeLinear?(0,pe.jsx)(yq,{isMiddle:e.isMiddle}):(0,pe.jsx)(_q,{isMiddle:e.isMiddle}):null,vq="LIVE",xq="PLAY_PAUSE",bq="REPLAY_RESTART",Aq="SEEK_BACKWARD",Sq="SEEK_FORWARD",Tq=e=>{const t=(0,l.wA)(),s=(0,Re.useContext)(UF),n=(0,l.d4)(MD),i=(0,l.d4)(lO),r=(0,l.d4)(oq),o=(0,l.d4)(ru),a=(0,l.d4)(Kp),c=(0,l.d4)(UD),d=(0,l.d4)(my),p=(0,l.d4)(GD),u=(0,l.d4)(Rg),h=(0,l.d4)(_y),m=()=>{t(pO()),e.unpersist()},g=()=>{t(uO()),e.persist()},y=s.isSkinMiddle;return(0,pe.jsx)(pe.Fragment,{children:(s.isSkinBottom?[xq,bq,Aq,Sq,vq]:[Aq,bq,xq,vq,Sq]).map(e=>(e=>{switch(e){case vq:return(0,pe.jsx)(lq,{hasAir:p.air&&r,disabled:u,isMiddle:y},e);
1case xq:return h&&s.isSkinBottom?null:(0,pe.jsx)(cq,{canPause:n,canPlay:i,hasPause:p.pause,isPauseForbidden:c,isPlaying:d,pause:g,play:m,isMiddle:y},e);case Aq:return(0,pe.jsx)(hq,{hasSeek:p.seek,isMiddle:y,isModeLive:a},e);case Sq:return(0,pe.jsx)(mq,{hasSeek:p.seek,isMiddle:y},e);case bq:return(0,pe.jsx)(Eq,{hasReplay:p.replay,isModeLinear:o,isMiddle:y},e);default:return null}})(e))})};var Cq="N8ruk";const Nq=e=>(0,pe.jsx)("div",{className:(0,Ye.A)(Cq,e.className),children:(0,pe.jsxs)(Hs,{control:an,className:"vZ7Hs",contentClassName:"N0eRL",onClick:e.onSkip,title:vc(),soul:"VIDEO_ADS_SKIP",children:[vc(),(0,pe.jsx)("span",{className:"CkciX"})]})});var fq,Iq;let wq=(Iq=class extends Re.Component{onSkip(){this.props.dispatch((e,t)=>{const s=t(),n=Gm(s);Un({type:"ADS_SKIP",csid:pg(s)}),e(UI(n.end))})}render(){return(0,pe.jsx)(Nq,{onSkip:this.onSkip,className:"eDbT9"})}},Iq.displayName="OSDControlSkipAds",fq=Iq,(0,De.A)(fq.prototype,"onSkip",[je],Object.getOwnPropertyDescriptor(fq.prototype,"onSkip"),fq.prototype),fq);const Oq=(0,l.Ng)()(wq),Dq="PLAYER_SEEK_STARTED",Rq="PLAYER_THUMBNAIL_REQUESTED";var jq;let kq=(jq=class extends Re.Component{constructor(...e){super(...e),this.canvasRef=(0,Re.createRef)(),this.service=HG.getInstance()}onThumbnailLoaded(e){const{thumbnail:t}=this.props,s=this.canvasRef.current,n=s.getContext("2d");s.width=t.width,s.height=t.height,n.drawImage(e,t.x,t.y,t.width,t.height,0,0,t.width,t.height)}componentDidMount(){this.service.load(this.props.thumbnail.url,this.onThumbnailLoaded)}componentDidUpdate(e){this.props.thumbnail!==e.thumbnail&&(this.service.cancel(e.thumbnail.url,this.onThumbnailLoaded),this.service.load(this.props.thumbnail.url,this.onThumbnailLoaded))}componentWillUnmount(){this.service.cancel(this.props.thumbnail.url,this.onThumbnailLoaded)}render(){return(0,pe.jsx)("canvas",{className:"Mma1q","data-soul":"OSD_THUMBNAIL",ref:this.canvasRef})}},(0,De.A)(jq.prototype,"onThumbnailLoaded",[je],Object.getOwnPropertyDescriptor(jq.prototype,"onThumbnailLoaded"),jq.prototype),jq);var Pq="b4ljN",Lq="rWNv4";const Mq=e=>{const t=Boolean(e.thumbnail);return(0,pe.jsxs)("div",{className:"B0NM9",children:[e.children,(0,pe.jsxs)("div",{className:(0,Ye.A)("Wo2F8",{[Pq]:e.withPreview,[Lq]:t}),style:{"--osd_progress":`${e.progressPct}%`},children:[t&&(0,pe.jsx)(kq,{thumbnail:e.thumbnail}),(0,pe.jsx)("time",{className:"vuzGa",children:e.elapsedTimeText})]})]})};const Uq=e=>(0,pe.jsx)("div",{className:(0,Ye.A)("zkET6",e.className),"data-soul":"OSD_PROGRESS",children:e.children});const Vq=(e,t)=>e/t*100+"%",Bq=e=>{const t=e.end-e.start;return(0,pe.jsx)(pe.Fragment,{children:e.cuePoints.map(e=>e>t?null:(0,pe.jsx)("div",{className:"wkC_5",style:{left:Vq(e,t)}},e))})};var Fq;let Hq=(Fq=class extends Re.PureComponent{constructor(...e){super(...e),this.state={appliedPosition:this.props.now,inInteraction:!1}}assertPosition(e){const{props:t}=this,{appliedPosition:s}=this.state,n=t.canDecrease?t.minEdge:s,i=t.canIncrease?t.maxEdge:s;return!t.canIncrease&&e>s&&t.onIncreaseForbidden?.(),(0,DS.A)(e,n,i)}applyPosition(){const{state:e}=this,t=this.assertPosition(this.props.now),s=e.appliedPosition!==t;this.setState({appliedPosition:t,inInteraction:!1}),this.props.onChangeEnd({time:t,changed:s}),this.props.onPreviewCancel()}computePosition(e,t){const{props:s}=this,n=e.target,i=(0,DS.A)(e.nativeEvent.offsetX,0,n.clientWidth)/n.clientWidth,r=Math.round(s.min+(s.max-s.min)*i);return t?r>this.state.appliedPosition&&!s.canIncrease?this.state.appliedPosition:this.putInRange(r):r}putInRange(e){const{props:t}=this;return(0,DS.A)(e,t.minEdge,t.maxEdge)}onPointerDown(e){const t=e.target,s=this.computePosition(e,!0);t.setPointerCapture(e.pointerId),this.props.onChangeStart(s),this.setState({inInteraction:!0})}onPointerUp(e){e.target.releasePointerCapture(e.pointerId),this.applyPosition()}onPointerMove(e){const{props:t}=this,s=this.computePosition(e),n=this.putInRange(s);s===n||this.state.inInteraction?this.props.now!==n&&t.onPreviewPosition(n):t.onPreviewCancel()}static getDerivedStateFromProps(e,t){return t.inInteraction?null:{...t,appliedPosition:e.now}}getProgress(){const{props:e}=this;return(e.now-e.min)/(e.max-e.min)}render(){return(0,pe.jsx)("div",{className:"LS2av",onPointerDown:this.onPointerDown,onPointerUp:this.onPointerUp,onPointerMove:this.onPointerMove,onPointerLeave:this.props.onPreviewCancel,style:{"--osd_progress":this.getProgress()}})}},(0,De.A)(Fq.prototype,"onPointerDown",[je],Object.getOwnPropertyDescriptor(Fq.prototype,"onPointerDown"),Fq.prototype),(0,De.A)(Fq.prototype,"onPointerUp",[je],Object.getOwnPropertyDescriptor(Fq.prototype,"onPointerUp"),Fq.prototype),(0,De.A)(Fq.prototype,"onPointerMove",[je],Object.getOwnPropertyDescriptor(Fq.prototype,"onPointerMove"),Fq.prototype),Fq);var Gq="B8noE",qq="aapSh",Yq="ciVVM";const Wq="accent",zq="primary",$q="secondary",Kq=(e,t,s)=>(s-e)/(t-e)*100,Qq=(e,t,s)=>{const n=Kq(e,t,s);return n>=0&&n<=100?100-n+"%":"0"},Zq=(e,t,s)=>{const n=Kq(e,t,s);return n>=0&&n<=100?`${n}%`:"0"},Xq=e=>(0,pe.jsx)("div",{className:(0,Ye.A)("KHPak",{[qq]:e.kind===zq,[Yq]:e.kind===$q,[Gq]:e.kind===Wq}),style:{left:Zq(e.min,e.max,e.start),right:Qq(e.min,e.max,e.end)}}),Jq=e=>e.areas.map((t,s)=>(0,pe.jsx)(Xq,{kind:Wq,min:0,max:e.max-e.min,start:t.start,end:t.end},s));var eY="Pj5qy";const tY=(0,Re.memo)(e=>(0,pe.jsxs)(pe.Fragment,{children:[e.cuePoints&&(0,pe.jsx)(Bq,{start:e.min,end:e.max,cuePoints:e.cuePoints}),e.hasSecondaryBar&&(0,pe.jsx)(AP,{className:(0,Ye.A)(eY,"f0MQe"),disabled:e.disabled,title:x(184),valueNow:e.secondaryBarNow,valueMin:e.min,valueMax:e.max}),e.hasSecondaryFloatingBar&&(0,pe.jsx)(Xq,{kind:$q,min:e.min,max:e.max,start:e.secondaryFloatingBarStart,end:e.secondaryFloatingBarEnd}),e.hasPrimaryBar&&(0,pe.jsx)(AP,{className:eY,disabled:e.disabled,title:x(183),valueNow:e.primaryBarNow,valueMin:e.min,valueMax:e.max}),e.hasPrimaryFloatingBar&&(0,pe.jsx)(Xq,{kind:zq,min:e.min,max:e.max,start:e.primaryFloatingBarStart,end:e.primaryFloatingBarEnd}),e.areas&&(0,pe.jsx)(Jq,{min:e.min,max:e.max,areas:e.areas}),!e.disabled&&(0,pe.jsx)(Hq,{canDecrease:e.canDecrease,canIncrease:e.canIncrease,disabled:e.disabled,max:e.max,maxEdge:e.maxEdge,min:e.min,minEdge:e.minEdge,now:e.now||0,onChangeStart:e.onChangeStart,onCh
1angeEnd:e.onChangeEnd,onPreviewPosition:e.onPreviewPosition,onPreviewCancel:e.onPreviewCancel,onIncreaseForbidden:e.onIncreaseForbidden})]}));var sY="_i_7X",nY="QpcmI";const iY=e=>(0,pe.jsx)("time",{className:(0,Ye.A)("dE23Z",{[nY]:"m"===e.size,[sY]:"l"===e.size}),title:x(308),"data-soul":"OSD_PROGRESS_TIMER",children:e.text});var rY,oY;let aY=(oY=class extends Re.PureComponent{constructor(...e){super(...e),this.state={inInteraction:!1,withPreview:!1,previewTime:null,thumbnail:null},this.onIncreaseForbiddenDelayed=(0,xn.A)(this.onIncreaseForbidden,500)}isTimeAvailable(){return(0,Mu.A)(this.props.currentTime)&&(0,Mu.A)(this.props.startTime)&&Boolean(this.props.durationTime)}progressPct(){const{state:e,props:t}=this;return this.isTimeAvailable()?((e,t,s=2)=>!(0,Mu.A)(e)||!(0,Mu.A)(t)||e<0||t<0?0:Number(Math.min(e/t*100,100).toFixed(s)))(Vu(t.startTime,e.previewTime),t.durationTime):null}getElapsedTimeText(){if(!this.isTimeAvailable())return null;const{state:e,props:t}=this;let s=Vu(t.startTime,e.previewTime);return(t.isModeRecording||t.isModeReplay)&&(s-=t.prePadding),kS(s,"-")}getRemainingTimeText(){if(!this.isTimeAvailable())return null;const{props:e}=this;let t=Bu({endTime:e.endTime,currentTime:this.getCurrentTime()});return e.isModeVOD&&t<0?null:((e.isModeRecording||e.isModeReplay)&&(t-=e.postPadding),kS(t,"+"))}jumpToTime(e){const{props:t}=this,s=Vu(t.startTime,e);s<t.elapsedTime?t.dispatch(MI("player_progressBar",s)):s>t.elapsedTime&&t.dispatch(VI("player_progressBar",s))}getThumbnail(e){const{props:t}=this;return(t.isModeRecording||t.isModeReplay)&&(e=Vu(t.startTime,e)),t.dispatch((e=>({type:Rq,time:e}))(e)).thumbnail}getCurrentTime(){return this.state.inInteraction?this.state.previewTime:this.props.currentTime}onPreviewPosition(e){this.setState({thumbnail:this.getThumbnail(e),previewTime:e,withPreview:!0})}onPreviewCancel(){this.setState({withPreview:!1})}onChangeStart(e){this.props.persist(),this.setState({inInteraction:!0,previewTime:e})}onChangeEnd(e){const{time:t}=e;e.changed&&this.jumpToTime(t),this.props.unpersist(),this.setState({inInteraction:!1})}onIncreaseForbidden(){this.props.dispatch(PI())}componentWillUnmount(){this.onIncreaseForbiddenDelayed.cancel()}render(){const{props:e,state:t}=this,{isModeTimeshift:s,liveEdge:n}=e,i=this.getCurrentTime(),r=!this.isTimeAvailable(),o=s?e.timeshiftStart:e.startTime,a=e.hasAiringBar?n:e.endTime;return(0,pe.jsxs)(Uq,{className:e.className,children:[(0,pe.jsx)(Mq,{elapsedTimeText:this.getElapsedTimeText(),progressPct:this.progressPct(),thumbnail:t.thumbnail,withPreview:t.withPreview,children:(0,pe.jsx)(tY,{areas:e.adBreaks,canDecrease:e.hasSeekBackward,canIncrease:e.hasSeekForward,cuePoints:e.cuePoints,hasPrimaryBar:!r&&!s,hasSecondaryBar:!r&&e.hasAiringBar&&!s,hasPrimaryFloatingBar:!r&&s,hasSecondaryFloatingBar:!r&&s,min:e.startTime,minEdge:o,max:e.endTime,maxEdge:a,now:i,primaryBarNow:i,secondaryBarNow:n,primaryFloatingBarStart:e.timeshiftStart,primaryFloatingBarEnd:i,secondaryFloatingBarStart:e.timeshiftStart,secondaryFloatingBarEnd:n,onChangeStart:this.onChangeStart,onChangeEnd:this.onChangeEnd,onPreviewPosition:this.onPreviewPosition,onPreviewCancel:this.onPreviewCancel,onIncreaseForbidden:this.onIncreaseForbiddenDelayed,disabled:r})}),(0,pe.jsx)(iY,{size:e.timerSize,text:this.getRemainingTimeText()})]})}},oY.displayName="OSDProgress",rY=oY,(0,De.A)(rY.prototype,"onPreviewPosition",[je],Object.getOwnPropertyDescriptor(rY.prototype,"onPreviewPosition"),rY.prototype),(0,De.A)(rY.prototype,"onPreviewCancel",[je],Object.getOwnPropertyDescriptor(rY.prototype,"onPreviewCancel"),rY.prototype),(0,De.A)(rY.prototype,"onChangeStart",[je],Object.getOwnPropertyDescriptor(rY.prototype,"onChangeStart"),rY.prototype),(0,De.A)(rY.prototype,"onChangeEnd",[je],Object.getOwnPropertyDescriptor(rY.prototype,"onChangeEnd"),rY.prototype),(0,De.A)(rY.prototype,"onIncreaseForbidden",[je],Object.getOwnPropertyDescriptor(rY.prototype,"onIncreaseForbidden"),rY.prototype),rY);const lY=(0,l.Ng)(e=>({adBreaks:Hm(e),cuePoints:Jg(e),currentTime:Math.floor(Qg(e)),durationTime:Kg(e),elapsedTime:Xg(e),endTime:$g(e),hasAiringBar:aq(e),hasSeekBackward:Qm(e),hasSeekForward:Xm(e),isModeVOD:tu(e),isModeRecording:Xp(e),isModeReplay:Zp(e),isModeTimeshift:Qp(e),isUpdating:_y(e),liveEdge:Zg(e),postPadding:Lg(e),prePadding:Mg(e),startTime:Yg(e),timeshiftStart:Ku(e)}))(aY);var cY="kz8eu";const dY=e=>{const t=(0,l.d4)(Gy),s=(0,l.d4)(_y),n=(0,l.d4)(GD),i=(0,l.d4)(Tg),r=(0,l.d4)(Ym),{isSkinBottom:o}=(0,Re.useContext)(UF),a=o?yj:"verical",c=o?"l":"m",d=o?"l":"m";return(0,pe.jsxs)(fR,{size:d,isViewFullscreen:t,children:[r&&(0,pe.jsx)(Oq,{}),o&&s&&(0,pe.jsx)("div",{className:"IaYl_"}),o&&(0,pe.jsx)(Tq,{persist:e.persist,unpersist:e.unpersist}),(o||!s)&&(0,pe.jsx)(Aj,{invocationDelay:150,persist:e.persist,unpersist:e.unpersist,orientation:a}),(0,pe.jsx)(lY,{className:(0,Ye.A)({[cY]:o}),timerSize:c,persist:e.persist,unpersist:e.unpersist}),o&&(0,pe.jsx)("div",{className:"eMJO8"}),n.pip&&(0,pe.jsx)(rq,{}),n.cinema&&(0,pe.jsx)(PR,{}),(0,pe.jsx)(sq,{}),(0,pe.jsx)(MR,{}),i&&(0,pe.jsx)(ZG,{})]})},pY="icons-channel-list-default";var uY="qEbG5",hY="Mu2jr";const mY=(0,Re.memo)(e=>{const t=(0,l.d4)(Fy),s=(0,l.d4)(Gy),n=(0,l.d4)(Bp),i=(0,l.d4)(Vp),r=(0,l.wA)();return!n||i?null:(0,pe.jsx)(kR,{className:(0,Ye.A)("gvKBs",{[uY]:t,[hY]:s}),onClick:()=>r(cB()),contentCenter:!0,title:`${x(178)} (h)`,iconId:pY,soul:"OSD_CONTROL_CHANNELS",isMiddle:e.isMiddle})});const gY=e=>(0,pe.jsxs)("p",{className:"VkrOJ",children:[(0,pe.jsx)(ft,{id:e.iconId,className:"pLXCk"}),e.text]}),yY=(0,Re.memo)(()=>{let e;try{e=cast.framework.CastContext.getInstance().getCurrentSession().getCastDevice().friendlyName}catch(e){Z(e)}return e?(0,pe.jsx)(gY,{iconId:"icons-tv",text:e}):null}),_Y=(0,Re.memo)(()=>(0,pe.jsx)(gY,{iconId:nq,text:ll()}
1));const EY=e=>(0,pe.jsx)("div",{className:(0,Ye.A)("uhUim",e.className),"data-soul":"OSD_MIDDLE",children:e.children});const vY=e=>(0,pe.jsx)("div",{className:"BY_EX","data-soul":"OSD_MIDDLE_STREAM_CONTROLS",children:e.children});class xY extends Re.Component{render(){const{props:e}=this,{isSkinBottom:t}=this.context;return(0,pe.jsxs)(EY,{children:[e.settings.channelsSidebar&&(0,pe.jsx)(mY,{isMiddle:!t,hasShadow:t}),(0,pe.jsx)(vY,{children:!t&&(0,pe.jsx)(Tq,{persist:e.persist,unpersist:e.unpersist})}),e.settings.cast&&e.isMediaModeCast&&(0,pe.jsx)(yY,{}),e.settings.pip&&e.isModePiP&&(0,pe.jsx)(_Y,{})]})}}xY.displayName="OSDMiddle",xY.contextType=UF;const bY=(0,l.Ng)(e=>({isMediaModeCast:ju(e),isModePiP:Pu(e),settings:GD(e)}))(xY),AY=(e,t,s)=>{s={timeout:200,...s};const n=(0,Re.useRef)(void 0);return(0,Re.useCallback)(i=>{n&&(clearTimeout(n.current),n.current=null),t&&1===i.detail&&(n.current=setTimeout(()=>{t(i)},s.timeout)),i.detail%2==0&&e(i)},[t,e,s.timeout])};var SY;let TY=(SY=class{constructor(e){this.element=e.element,this.touchCache=new Map,this.onPinchIn=e.onPinchIn,this.onPinchOut=e.onPinchOut,this.threshold=e.threshold||30}euclideanDistance(e){return Math.sqrt((e[0].clientX-e[1].clientX)**2+(e[0].clientY-e[1].clientY)**2)}getDistanceBetween(e,t){const s=this.euclideanDistance(e);return this.euclideanDistance(t)-s}onTouchStart(e){2===e.targetTouches.length?(e.preventDefault(),e.stopPropagation(),this.touchCache.set(e.targetTouches[0].identifier,e.targetTouches[0]),this.touchCache.set(e.targetTouches[1].identifier,e.targetTouches[1])):this.touchCache.clear()}onTouchMove(e){const t=Array.from(e.targetTouches);if(2!==t.length)return void this.touchCache.clear();if(e.preventDefault(),e.stopPropagation(),!this.touchCache.has(t[0].identifier)||!this.touchCache.has(t[1].identifier))return void this.touchCache.clear();const s=this.getDistanceBetween([...this.touchCache.values()],t);Math.abs(s)<this.threshold||(s>0&&this.onPinchIn?.(),s<0&&this.onPinchOut?.())}onTouchEnd(e){this.touchCache.clear(),2===e.targetTouches.length&&(e.preventDefault(),e.stopPropagation())}observe(){this.element.addEventListener("touchstart",this.onTouchStart,!0),this.element.addEventListener("touchmove",this.onTouchMove,!0),this.element.addEventListener("touchend",this.onTouchEnd,!0)}unobserve(){this.element.removeEventListener("touchstart",this.onTouchStart,!0),this.element.removeEventListener("touchmove",this.onTouchMove,!0),this.element.removeEventListener("touchend",this.onTouchEnd,!0)}},(0,De.A)(SY.prototype,"onTouchStart",[je],Object.getOwnPropertyDescriptor(SY.prototype,"onTouchStart"),SY.prototype),(0,De.A)(SY.prototype,"onTouchMove",[je],Object.getOwnPropertyDescriptor(SY.prototype,"onTouchMove"),SY.prototype),(0,De.A)(SY.prototype,"onTouchEnd",[je],Object.getOwnPropertyDescriptor(SY.prototype,"onTouchEnd"),SY.prototype),SY);const CY="MEDIA_ZOOM_CHANGED",NY=e=>(t,s)=>{const n=s();lC(n)&&e!==aC(n)&&t({type:CY,zoomed:e})};var fY="_WXd0",IY="GYZeR",wY="QMs08",OY="BZH0P";const DY=e=>{const t=(0,Re.useRef)(void 0),s=(0,l.wA)(),n=(0,l.d4)(Qm),i=(0,l.d4)(Xm),r=(0,l.d4)(Fy),o=(0,l.d4)(Gy);(({dependencies:e=[],disabled:t,reference:s,...n})=>{(0,Re.useEffect)(()=>{if(t)return;const e=new TY({element:s.current,...n});return e.observe(),()=>{e.unobserve()}},e)})({reference:t,onPinchIn:()=>s(NY(!0)),onPinchOut:()=>s(NY(!1)),disabled:!oC,dependencies:[t]});const a=AY(()=>{s(mR("player_doubleClick",WD))},e.onClick),c=AY(()=>{s(gR("player_doubleClick",WD))},e.onClick),d=AY(()=>{s(lN()),as({action:"toggleView",category:"videoPlayer",label:"player_doubleClick"})},e.onClick);return(0,pe.jsxs)("div",{className:(0,Ye.A)("NCG8t",{[fY]:e.inFront}),onDoubleClick:vn.A,ref:t,children:[(0,pe.jsx)("div",{className:"bFRmd",onClick:d,onTouchStart:e.onTouchStart,"data-soul":"OSD_SURFACE_FULLSCREEN",role:"button","aria-hidden":!0}),n&&(0,pe.jsx)("div",{className:(0,Ye.A)(IY,"hxVFH",{[wY]:r,[OY]:o}),"data-soul":"OSD_SURFACE_SEEK_BACKWARD",onClick:a,onTouchStart:e.onTouchStart,role:"button","aria-hidden":!0}),i&&(0,pe.jsx)("div",{className:(0,Ye.A)(IY,"oFuLS",{[wY]:r,[OY]:o}),"data-soul":"OSD_SURFACE_SEEK_FORWARD",onClick:c,onTouchStart:e.onTouchStart,role:"button","aria-hidden":!0})]})};const RY=(0,Re.memo)(()=>(0,l.d4)(_y)?(0,pe.jsx)("div",{className:"T4sIP",children:(0,pe.jsx)(Ke,{className:"yYsdS",centered:!0,soul:"OSD_UPDATE_INDICATOR"})}):null);var jY,kY;let PY=(kY=class extends Re.PureComponent{constructor(...e){super(...e),this.state={hasAll:!1,hasOnlyMeta:!1,hasOpenedDropdown:!1,persistent:!1},this.elementRef=(0,Re.createRef)(),this.hideTimeout=null,this.preventNextMove=!1}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}persist(){this.clearHideTimeout(),this.setState({persistent:!0},this.showOSD)}unpersist(){this.setState({persistent:!1},this.showOSD)}toggleHasOpenedDropdown(){this.setState({hasOpenedDropdown:!this.state.hasOpenedDropdown})}
1showOSD(e=!1){this.setState({hasAll:!e,hasOnlyMeta:e}),this.clearHideTimeout(),this.state.persistent||(this.hideTimeout=setTimeout(this.hideOSD,3e3))}hideOSD(){this.clearHideTimeout(),this.setState({hasAll:!1,hasOnlyMeta:!1})}hasAll(){const{props:e}=this;return!e.isAdsActive&&(!(e.isLoading&&!e.isSeeking)&&(!!e.isModeExternal||(!(!e.hasIntro&&!e.castIsCommuting)||(!!cG||this.state.hasAll))))}hasOnlyMeta(){return!this.props.isAdsActive&&(this.state.hasOnlyMeta||this.props.isLoading)}isVisible(){return this.hasAll()||this.hasOnlyMeta()}isDimmed(){return this.hasAll()||this.props.isPauseAdDisplayed}onPointerMove(){this.preventNextMove?this.preventNextMove=!1:this.showOSD()}onMouseLeave(){this.hideOSD()}onOSDEvent(e){!0!==e.detail.persistent?!1!==e.detail.persistent?this.showOSD():this.unpersist():this.persist()}onTouchStart(e){e.currentTarget===e.target&&(this.preventNextMove=!0)}onClick(){this.state.hasAll?this.hideOSD():this.showOSD()}onFocusIn(){!this.state.persistent&&this.props.isInputSourceKeyboard&&this.persist()}onFocusOut(){this.state.persistent&&!this.state.hasOpenedDropdown&&this.unpersist()}subscribe(){const e=this.elementRef.current;e.addEventListener("focusin",this.onFocusIn),e.addEventListener("focusout",this.onFocusOut),pR(zD,this.onOSDEvent)}unsubscribe(){const e=this.elementRef.current;this.clearHideTimeout(),e.removeEventListener("focusin",this.onFocusIn),e.removeEventListener("focusout",this.onFocusOut),uR(zD,this.onOSDEvent)}componentDidUpdate(e){const{props:t}=this;(t.streamUrl&&t.streamUrl!==e.streamUrl||t.pid&&t.pid!==e.pid)&&(HG.getInstance().clear(),this.showOSD(!0))}componentDidMount(){this.subscribe()}componentWillUnmount(){this.unsubscribe()}render(){const{props:e}=this,{isSkinBottom:t}=this.context,s=this.hasAll(),n=this.hasOnlyMeta(),i=this.isVisible(),r=e.channelsSidebarOpened&&e.isViewFullscreen,o=!s&&!n;return(0,pe.jsxs)("div",{className:(0,Ye.A)(SH,{[TH]:this.isDimmed()&&!t,[CH]:this.isDimmed()&&t,[IH]:n,[NH]:e.isLoading,[fH]:r}),ref:this.elementRef,onMouseLeave:this.onMouseLeave,onMouseMove:this.onPointerMove,onTouchMove:this.onPointerMove,"data-context":Xt,"data-soul":"OSD",children:[e.isModeExternal&&(0,pe.jsx)(KG,{}),e.isLoading&&!e.isModeExternal&&(0,pe.jsx)(SG,{}),!e.isLoading&&(0,pe.jsx)(DY,{inFront:o,onClick:this.onClick,onTouchStart:this.onTouchStart}),i&&(0,pe.jsx)(AH,{hasOnlyMeta:n,onDropdownOpen:()=>{this.persist(),this.toggleHasOpenedDropdown()},onDropdownClose:()=>{this.unpersist(),this.toggleHasOpenedDropdown()}}),!e.isLoading&&(0,pe.jsx)(WG,{cleanAnimation:r}),s&&!e.inZap&&!e.isLoading&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(bY,{persist:this.persist,unpersist:this.unpersist}),(0,pe.jsx)(dY,{persist:this.persist,unpersist:this.unpersist})]}),e.shouldDisplayPauseAd&&(0,pe.jsx)(BG,{}),(0,pe.jsx)(RY,{}),e.isModePlayer&&(0,pe.jsx)(yG,{isOsdBottomVisible:s}),e.isLoading&&(0,pe.jsx)(wH,{})]})}},kY.displayName="OSDMain",kY.contextType=UF,jY=kY,(0,De.A)(jY.prototype,"persist",[je],Object.getOwnPropertyDescriptor(jY.prototype,"persist"),jY.prototype),(0,De.A)(jY.prototype,"unpersist",[je],Object.getOwnPropertyDescriptor(jY.prototype,"unpersist"),jY.prototype),(0,De.A)(jY.prototype,"toggleHasOpenedDropdown",[je],Object.getOwnPropertyDescriptor(jY.prototype,"toggleHasOpenedDropdown"),jY.prototype),(0,De.A)(jY.prototype,"showOSD",[je],Object.getOwnPropertyDescriptor(jY.prototype,"showOSD"),jY.prototype),(0,De.A)(jY.prototype,"hideOSD",[je],Object.getOwnPropertyDescriptor(jY.prototype,"hideOSD"),jY.prototype),(0,De.A)(jY.prototype,"onPointerMove",[je],Object.getOwnPropertyDescriptor(jY.prototype,"onPointerMove"),jY.prototype),(0,De.A)(jY.prototype,"onMouseLeave",[je],Object.getOwnPropertyDescriptor(jY.prototype,"onMouseLeave"),jY.prototype),(0,De.A)(jY.prototype,"onOSDEvent",[je],Object.getOwnPropertyDescriptor(jY.prototype,"onOSDEvent"),jY.prototype),(0,De.A)(jY.prototype,"onTouchStart",[je],Object.getOwnPropertyDescriptor(jY.prototype,"onTouchStart"),jY.prototype),(0,De.A)(jY.prototype,"onClick",[je],Object.getOwnPropertyDescriptor(jY.prototype,"onClick"),jY.prototype),(0,De.A)(jY.prototype,"onFocusIn",[je],Object.getOwnPropertyDescriptor(jY.prototype,"onFocusIn"),jY.prototype),(0,De.A)(jY.prototype,"onFocusOut",[je],Object.getOwnPropertyDescriptor(jY.prototype,"onFocusOut"),jY.prototype),(0,De.A)(jY.prototype,"subscribe",[je],Object.getOwnPropertyDescriptor(jY.prototype,"subscribe"),jY.prototype),(0,De.A)(jY.prototype,"unsubscribe",[je],Object.getOwnPropertyDescriptor(jY.prototype,"unsubscribe"),jY.prototype),jY);const LY=(0,l.Ng)(e=>({castIsCommuting:Cg(e),channelsSidebarOpened:Vp(e),hasIntro:Tg(e),inZap:BD(e),isAdsActive:vu(e),isInputSourceKeyboard:IN(e),isLive:Kp(e),isLoading:dC(e),isModeExternal:Lu(e),isModePlayer:ku(e),isPauseAdDisplayed:aG(e),isPaused:uy(e),isSeeking:gy(e),isViewFullscreen:Gy(e),isViewSplit:Yy(e),pid:Zu(e),shouldDisplayPauseAd:oG(e),streamUrl:ig(e)}))(PY),MY=(0,Re.memo)(()=>{const e=(0,l.d4)(dC),t=(0,l.d4)(Tw),s=(0,l.d4)(vy);return t?(0,pe.jsx)(JH,{}):(0,pe.jsxs)(pe.Fragment,{children:[s?(0,pe.jsx)(OH,{}):(0,pe.jsx)(LY,{}),!e&&(0,pe.jsx)(SR,{})]})});var UY="Pl6m8";const VY=e=>{const t=(0,l.wA)();return(0,Re.useEffect)(()=>(t({type:bF}),()=>{t({type:SF})}),[]),(0,pe.jsx)("div",{id:cN,className:(0,Ye.A)("xvE9d",{[UY]:e.zoomed}),ref:e.reference,"data-soul":"PLAYER_CONTAINER",children:e.children})};var BY;let FY=(BY=class e{constructor(){this.isBlocked=!1,this.instance_=void 0}register(e){e.addEventListener("mouseenter",this.onMouseEnter),e.addEventListener("mouseleave",this.onMouseLeave)}unregister(e){e.removeEventListener("mouseenter",this.onMouseEnter),e.removeEventListener("mouseleave",this.onMouseLeave)}preventOverscroll(){document.body.style.setProperty("overscroll-behavior-x","contain"),this.isBlocked=!0}allowOverscroll(){document.body.style.removeProperty("overscroll-behavior-x"),this.isBlocked=!1}onMouseEnter(){this.isBlocked||this.preventOverscroll()}onMouseLeave(){this.isBlocked&&this.allowOverscroll()}
1static getInstance(){return this.instance_||(this.instance_=new e),this.instance_}},(0,De.A)(BY.prototype,"onMouseEnter",[je],Object.getOwnPropertyDescriptor(BY.prototype,"onMouseEnter"),BY.prototype),(0,De.A)(BY.prototype,"onMouseLeave",[je],Object.getOwnPropertyDescriptor(BY.prototype,"onMouseLeave"),BY.prototype),BY);class HY extends Re.Component{constructor(e){super(e),this.onPlayDelayed=(0,xn.A)(this.onPlay.bind(this),700)}onPlay(){const{props:e}=this;e.onPlay(e.channel.cid)}componentDidMount(){this.props.isActive&&this.onPlayDelayed()}componentDidUpdate(e){const{isActive:t}=this.props;e.isActive!==t&&t?this.onPlayDelayed():t||this.onPlayDelayed.cancel()}componentWillUnmount(){this.onPlayDelayed.cancel()}render(){const{props:e}=this,{channel:t,program:s}=e,n=s.et;return(0,pe.jsxs)(bG,{type:xG,cid:t.cid,className:(0,Ye.A)("EQhYR",{[AG]:gH(e.skin)}),children:[(0,pe.jsx)(EH,{settings:e.settings,channel:e.channel,title:s.t,subtitle:n,logoToken:Sp(t).logo_token,distributorTitle:t.title,hasOnlyMeta:!0,isPreview:!0,skin:e.skin}),e.isActive&&(0,pe.jsx)(wH,{className:"dtmRV"})]})}}var GY,qY="TuMRK";const YY=(()=>{const e=2e-4,t=e.toString().length-2,s=[1];for(let n=.993;n<1;n+=e){const e=parseFloat(n.toFixed(t));1!==e&&s.push(e)}return s})();let WY=(GY=class extends Re.PureComponent{constructor(e){super(e),this.visibleRafID=null,this.isFullyVisible=!1,this.elementRef=(0,Re.createRef)(),this.observer=null,this.initObserverDelayed=(0,xn.A)(this.initObserver.bind(this),60)}initObserver(){const e=this.elementRef.current.parentElement;this.observer=new IntersectionObserver(this.onIntersectionChange,{root:e,threshold:YY,rootMargin:"0px 0px 1px 0px"}),this.observer.observe(this.elementRef.current)}scrollToElement(){this.elementRef.current.scrollIntoView(!1)}onIntersectionChange(e){const t=e[e.length-1],{rootBounds:s,intersectionRatio:n,boundingClientRect:i}=t,r=Math.min(Math.abs(i.left-s.left),Math.abs(i.right-s.right));let o;o=this.observer.thresholds.some(e=>n>=e)&&this.isFullyVisible?r<=1:!this.isFullyVisible&&r<.5,this.cancelVisibleNotification(),this.isFullyVisible!==o&&o?this.onVisible():o||this.onHidden()}notify(e){this.isFullyVisible=e,this.props.onVisibilityChange({cid:this.props.cid,isFullyVisible:e})}onHidden(){this.notify(!1)}onVisible(){this.cancelVisibleNotification(),this.visibleRafID=requestAnimationFrame(()=>{this.visibleRafID=null,this.notify(!0)})}cancelVisibleNotification(){null!==this.visibleRafID&&(cancelAnimationFrame(this.visibleRafID),this.visibleRafID=null)}componentDidUpdate(e){this.props.isActive&&!e.isActive&&this.scrollToElement()}componentDidMount(){this.initObserverDelayed()}componentWillUnmount(){this.cancelVisibleNotification(),this.initObserverDelayed.cancel(),this.observer&&(this.observer.disconnect(),this.observer=null)}render(){const{props:e}=this;return(0,pe.jsx)("div",{className:(0,Ye.A)("DYAbj",{[qY]:e.isHidden}),style:{order:e.order},ref:this.elementRef,children:e.children})}},(0,De.A)(GY.prototype,"onIntersectionChange",[je],Object.getOwnPropertyDescriptor(GY.prototype,"onIntersectionChange"),GY.prototype),GY);const zY=e=>{const t=Cm(e);return{activeChannel:tf(e,t),canZap:HD(e),channels:vp(e),isAdsActive:vu(e),livePrograms:gI(e),withBrandingDay:Ky(e),settings:GD(e),streamCID:t}};var $Y,KY,QY="r1uAH";const ZY="PLAYER_PLACEHOLDER";let XY=(KY=class extends Re.PureComponent{constructor(...e){super(...e),this.lastVisibleCID=this.props.streamCID,this.visibleCID=this.props.streamCID,this.elementRef=(0,Re.createRef)()}isEnabled(){return VF&&this.props.isActive}isCIDVisible(e){return this.visibleCID===e}setVisibleCID(e){this.lastVisibleCID=e,this.visibleCID=e}scrollToPlayer(){const e=document.getElementById(cN).parentElement;this.elementRef.current.scrollLeft+=0,e.scrollIntoView(!1)}getChannelsQueue(){const{channels:e}=this.props,t=e.length,s=[];if(!this.isEnabled()||t<2)return s;const n=e.findIndex(e=>e.cid===this.lastVisibleCID),i=n+1;let r=n-1;2===t&&(r=n);for(let n=r;n<=i;n++){const i=fO(n,t);s.push(e[i])}return s}createPreview(e,t){const{skin:s}=this.context,{props:n}=this,{cid:i}=e;if(i===n.streamCID)return ZY;const r=this.isCIDVisible(i);let o=this.props.livePrograms[i];return o||(o={}),(0,pe.jsx)(WY,{cid:i,order:t,isActive:r,onVisibilityChange:this.onPreviewVisibilityChange,children:(0,pe.jsx)(HY,{program:o,channel:e,isActive:r,onPlay:n.switchStream,settings:n.settings,skin:s})},i)}onResize(){this.isEnabled()&&this.scrollToPlayer()}onPreviewVisibilityChange(e){if(!this.isEnabled())return;const{cid:t}=e;e.isFullyVisible&&this.visibleCID!==t?(this.setVisibleCID(t),this.forceUpdate()):this.visibleCID===t&&(this.visibleCID=null,this.forceUpdate())}componentDidMount(){if(!VF)return;const e=this.elementRef.current;FY.getInstance().register(e),fG(e,this.onResize)}componentWillUnmount(){if(!VF)return;const e=this.elementRef.current;FY.getInstance().unregister(e),IG(e,this.onResize)}componentDidUpdate(e){if(!this.isEnabled())return;const{props:t}=this;t.channels===e.channels&&t.isActive===e.isActive||this.scrollToPlayer()}UNSAFE_componentWillReceiveProps(e){const{streamCID:t}=e;this.props.streamCID!==t&&this.setVisibleCID(t)}render(){const{props:e}=this,t=this.getChannelsQueue().map(this.createPreview,this),s=Boolean(t.length),n=t.indexOf(ZY),i=n>-1,r=s&&!i;return i&&t.splice(n,1),(0,pe.jsxs)("div",{id:dN,className:(0,Ye.A)("U111L",Rr,{[QY]:e.withBrandingDay}),ref:this.elementRef,children:[(0,pe.jsx)(WY,{cid:e.streamCID,order:n,isHidden:r,isActive:this.isCIDVisible(e.streamCID),onVisibilityChange:this.onPreviewVisibilityChange,children:e.children}),t]})}}
1,KY.displayName="SwipeToZap",KY.contextType=UF,$Y=KY,(0,De.A)($Y.prototype,"onResize",[je],Object.getOwnPropertyDescriptor($Y.prototype,"onResize"),$Y.prototype),(0,De.A)($Y.prototype,"onPreviewVisibilityChange",[je],Object.getOwnPropertyDescriptor($Y.prototype,"onPreviewVisibilityChange"),$Y.prototype),$Y);const JY=(e=>{var t,s;let n=(s=class extends Re.PureComponent{constructor(...e){super(...e),this.channels=this.normalizeChannels(this.props.channels,this.props.activeChannel)}findChannelIndex(e){return this.channels.findIndex(t=>t.cid===e)}isEnabled(){const{props:e}=this;return e.canZap&&e.activeChannel&&!e.isAdsActive}isMovingForward(e){const t=this.findChannelIndex(e),s=this.findChannelIndex(this.props.streamCID),n=this.channels.length-1;return-1===t||-1===s||(s===n&&0===t||(0!==s||t!==n)&&t>s)}sendAnalyticsEvent(e){as({action:"live",category:"watch",label:e?"swipe_right":"swipe_left"})}switchStream(e){const t=this.isMovingForward(e);this.props.dispatch(bI({force:!0,cid:e})),this.sendAnalyticsEvent(t)}normalizeChannels(e,t){const s=e.filter(e=>!Np(e));return t&&!s.includes(t)&&s.push(t),s}UNSAFE_componentWillReceiveProps(e){const{props:t}=this,{channels:s,activeChannel:n}=e;t.channels===s&&t.activeChannel===n||(this.channels=this.normalizeChannels(s,n))}render(){const{props:t}=this,s=t;return(0,pe.jsx)(e,{...s,channels:this.channels,isActive:this.isEnabled(),switchStream:this.switchStream})}},s.displayName=e.displayName||e.name,t=s,(0,De.A)(t.prototype,"switchStream",[je],Object.getOwnPropertyDescriptor(t.prototype,"switchStream"),t.prototype),t);return(0,l.Ng)(zY)(n)})(XY),eW="ima_player_container",tW=e=>{const t=Bu({endTime:e.duration,currentTime:Math.floor(e.currentTime)}),s=kS(t,"-"),n=(i={position:e.position,total:e.total,time:s},x(314,i));var i;return(0,pe.jsx)("time",{className:e.className,children:n})};var sW="n1pQM";const nW=e=>{const{timeout:t}=e;return(0,pe.jsx)("div",{className:(0,Ye.A)(Cq,"povwj",e.className),children:(0,pe.jsx)("span",{className:"Q4am2",children:(s={count:t},x(316,s))})});var s},iW=()=>{const e=(0,l.d4)(bu),t=(0,l.d4)(Su),s=(0,l.d4)(Cu),n=(0,l.d4)(Gy),i=(0,l.d4)(Eu),r=(0,l.d4)(Au),o=(0,l.d4)(Sy),a=(0,l.d4)(Nu),c=(0,l.d4)(fu),d=(0,l.d4)(fy),p=(0,l.wA)(),u=()=>{p((e,t)=>{Eu(t())?e(dF()):e(cF())})};return(0,pe.jsxs)("div",{className:"jCBxL","data-soul":"VIDEO_ADS_OSD",children:[(0,pe.jsx)(Cj,{children:o.close&&(0,pe.jsx)(LR,{close:()=>p(Df()),isViewFullscreen:n})}),(0,pe.jsx)(AP,{valueNow:e,valueMin:0,valueMax:t,className:"ZHBsZ"}),(0,pe.jsxs)(EY,{children:[(0,pe.jsx)(vY,{children:i&&(0,pe.jsx)(Sj,{onClick:u,canPlay:!0,prime:!0})}),s&&a&&(0,pe.jsx)(nW,{timeout:a})]}),(0,pe.jsxs)(fR,{className:"yoYLW",isViewFullscreen:n,children:[o.volume&&(0,pe.jsx)(Aj,{hasShadow:!0}),d?(0,pe.jsx)("span",{className:sW,children:x(77)}):o.counter?(0,pe.jsx)(tW,{className:sW,total:c,position:r,duration:t,currentTime:e}):null,o.cinema&&(0,pe.jsx)(PR,{hasShadow:!0}),o.fullscreen&&(0,pe.jsx)(MR,{hasShadow:!0})]}),(0,pe.jsx)(Cr,{keyMap:{[or]:u,[hr]:u}})]})};var rW="jZng0";const oW=()=>{const e=(0,l.d4)(vu),t=(0,l.wA)();return(0,Re.useEffect)(()=>{t({type:JB})},[t]),(0,pe.jsx)("div",{id:eW,className:(0,Ye.A)("wh2Hc",{[rW]:e}),"data-soul":"IMA_PLAYER_CONTAINER",children:e&&(0,pe.jsx)(iW,{})})},aW=e=>({isImaActive:vu(e),isDaiActive:Gu(e)});var lW="lU_Xp",cW="rkG8O",dW="EfuI3",pW="dqFuV",uW="dbD4G",hW="dyj_o",mW="ZA7Ll",gW="V7DQQ",yW="pYD1m",_W="UXg9z";const EW=e=>{const t=(0,Re.useContext)(UF),s=(0,l.d4)(Ry),n=(0,l.d4)(jy),i=(0,l.d4)(Gu),r=(0,l.d4)(qu),o=(0,l.d4)(ku),a=(0,l.d4)(qy),c=(0,l.d4)(Yy),d=(0,l.d4)(Fy),p=(0,l.d4)(Gy),u=(0,l.d4)(cC),h=(0,l.d4)(zy),m=(0,l.d4)($y),g=!(a||r&&i),y=oC&&u;return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)("div",{id:QG,className:(0,Ye.A)("rrGy7",{[hW]:t.isSkinBottom,[mW]:t.isSkinMiddle,[dW]:c,[lW]:a,[pW]:h,[uW]:m,[cW]:Pe.bh&&p}),"data-soul":"MEDIA",children:(0,pe.jsx)("div",{className:(0,Ye.A)("MPMwB",{[_W]:c,[yW]:d,[gW]:n}),children:(0,pe.jsxs)("div",{className:"KTEjb",children:[s&&(0,pe.jsx)(Kj,{}),(0,pe.jsxs)(JY,{children:[(0,pe.jsxs)(VY,{zoomed:y,reference:e.reference,children:[(0,pe.jsx)(oW,{}),r&&(0,pe.jsx)(Ij,{}),g&&(0,pe.jsx)(MY,{})]}),rC&&o&&(0,pe.jsx)(pk,{})]})]})})}),!c&&(0,pe.jsx)(LB,{})]})};EW.displayName="Media";const vW=(e=>{var t,s;let n=((s=class extends Re.Component{constructor(...e){super(...e),this.state={skin:null},this.elementRef=(0,Re.createRef)()}getElementRef(){return this.elementRef.current}getSkin(){const e=this.getElementRef();return e?.getBoundingClientRect().width<960||this.props.isImaActive||this.props.isDaiActive?PF:LF}changeMediaSkin(){this.setState({skin:this.getSkin()})}componentDidUpdate(e){e.isImaActive===this.props.isImaActive&&e.isDaiActive===this.props.isDaiActive||this.changeMediaSkin()}componentDidMount(){const e=this.getElementRef();fG(e,this.changeMediaSkin)}componentWillUnmount(){const e=this.getElementRef();IG(e,this.changeMediaSkin)}render(){const{skin:t}=this.state,s=this.props;return(0,pe.jsx)(UF.Provider,{value:{skin:t,isSkinBottom:gH(t),isSkinMiddle:yH(t)},children:(0,pe.jsx)(e,{reference:this.elementRef,...s})})}}).displayName="MediaSkin",t=s,(0,De.A)(t.prototype,"changeMediaSkin",[je],Object.getOwnPropertyDescriptor(t.prototype,"changeMediaSkin"),t.prototype),t);return(0,l.Ng)(aW)(n)})((0,Re.memo)(EW));var xW;let bW=(xW=class extends Re.Component{constructor(...e){super(...e),this.scrollPosition=0,this.lastScrollPosition=0,this.appliedOffset=0,this.maxOffset=null,this.isHidden=!1}getElement(){return this.props.elementRef.current}getScrollRoot(){return document.documentElement}updateDimensions(){const e=this.getElement();this.maxOffset=e.clientHeight}updateScrollPosition(){const e=this.getScrollRoot().scrollTop;this.scrollPosition=Math.max(0,e)}syncLastScrollPosition(){this.lastScrollPosition=this.scrollPosition}notifyVisibilityChange(){this.props.onVisibilityChange?.(!this.isHidden)}setHidden(){if(this.isHidden)return;const{maxOffset:e}=this;this.getElement().style.setProperty("transform",`translateY(-${e}px)`),this.isHidden=!0,this.notifyVisibilityChange()}setVisible(){if(!this.isHidden)return;this.getElement().style.removeProperty("transform"),this.isHidden=!1,this.notifyVisibilityChange()}updateOffset(){const{maxOffset:e}=this,t=this.scrollPosition-this.lastScrollPosition;let s;s=this.isHidden&&this.scrollPosition<e?0:(0,DS.A)(this.appliedOffset+t,0,e),0===s?this.setVisible():s===e&&this.setHidden(),this.syncLastScrollPosition(),this.appliedOffset=s}reset(){this.appliedOffset=0,this.syncLastScrollPosition(),this.setVisible()}onScroll(){const e=BU.getInstance(),t=Br.getInstance(),s=!this.props.disabled&&!t.isLocked(),n=this.props.disabled||e.isLocked();e.interactionHappened(),t.isLocked()||this.updateScrollPosition(),n&&this.syncLastScrollPosition(),s&&this.updateOffset()}onResize(){this.updateDimensions(),this.props.onResize?.(),this.props.disabled||this.reset()}componentDidUpdate(e){this.props.disabled!==e.disabled&&this.reset()}componentDidMount(){this.updateScrollPosition(),this.updateDimensions(),this.reset(),document.addEventListener("scroll",this.onScroll),fG(this.getElement(),this.onResize)}componentWillUnmount(){document.removeEventListener("scroll",this.onScroll),IG(this.getElement(),this.onResize)}render(){return this.props.children}},(0,De.A)(xW.prototype,"onScroll",[je],Object.getOwnPropertyDescriptor(xW.prototype,"onScroll"),xW.prototype),(0,De.A)(xW.prototype,"onResize",[je],Object.getOwnPropertyDescriptor(xW.prototype,"onResize"),xW.prototype),xW);
1const AW="selective",SW=e=>e.edit.inEdit,TW=e=>"all"===e.edit.mode,CW=e=>e.edit.pickedIds,NW=e=>e.edit.excludedIds,fW=e=>e.edit.total,IW=e=>ad(e)?fW(e)===WL(e):!!pd(e)&&fW(e)===XM(e,zf(e)).length,wW="sub_panel";var OW,DW,RW="DGBy4";let jW=(DW=class extends Re.Component{constructor(...e){super(...e),this.state={focused:!1,height:0},this.mutationObserver=void 0,this.elementRef=(0,Re.createRef)()}getElement(){return this.elementRef?.current}initListeners(){const e=this.getElement();e&&(this.mutationObserver=new MutationObserver(this.updateSize),this.mutationObserver.observe(e,{childList:!0,subtree:!0,attributes:!1}),e.addEventListener("focusin",this.onFocusIn),e.addEventListener("focusout",this.onFocusOut))}removeListeners(){const e=this.getElement();e&&(e.removeEventListener("focusin",this.onFocusIn),e.removeEventListener("focusout",this.onFocusOut),this.mutationObserver.disconnect(),this.mutationObserver=null)}updateSize(){const e=this.getElement();e&&this.state.height!==e.clientHeight&&this.setState({height:e.clientHeight})}setVisibility(e){document.body.classList.toggle("subPanel__hidden",!e)}onFocusIn(){!this.state.focused&&this.props.isInputSourceKeyboard&&this.setState({focused:!0})}onFocusOut(){this.state.focused&&this.setState({focused:!1})}componentDidMount(){this.initListeners(),this.setVisibility(!0),this.updateSize()}componentWillUnmount(){this.removeListeners(),this.setVisibility(!1)}render(){const e=this.props.inEdit||this.state.focused;return(0,pe.jsxs)(bW,{elementRef:this.elementRef,disabled:e,onVisibilityChange:this.setVisibility,onResize:this.updateSize,children:[(0,pe.jsx)("div",{className:"dhNio",ref:this.elementRef,children:(0,pe.jsx)("div",{id:wW})}),(0,pe.jsx)("div",{className:(0,Ye.A)("liJBY",{[RW]:this.props.hasUpgradeBanner}),style:{height:this.state.height}})]})}},DW.displayName="TopPanel",OW=DW,(0,De.A)(OW.prototype,"updateSize",[je],Object.getOwnPropertyDescriptor(OW.prototype,"updateSize"),OW.prototype),(0,De.A)(OW.prototype,"setVisibility",[je],Object.getOwnPropertyDescriptor(OW.prototype,"setVisibility"),OW.prototype),(0,De.A)(OW.prototype,"onFocusIn",[je],Object.getOwnPropertyDescriptor(OW.prototype,"onFocusIn"),OW.prototype),(0,De.A)(OW.prototype,"onFocusOut",[je],Object.getOwnPropertyDescriptor(OW.prototype,"onFocusOut"),OW.prototype),OW);const kW=(0,l.Ng)(e=>({hasUpgradeBanner:Bv(e),inEdit:SW(e),isInputSourceKeyboard:IN(e)}))(jW),PW="media_content";var LW="w5Gdk";class MW extends Re.PureComponent{updateClasses(){const{view:e}=this.props,{classList:t}=document.body;e!==kd&&(t.toggle("wlfqg",e===jd),t.toggle("dEqLz",e===Ld),t.toggle("iXrrr",e===Pd))}componentDidMount(){this.updateClasses()}componentDidUpdate(e){const{props:t}=this;t.view!==e.view&&this.updateClasses()}render(){const{props:e}=this;return(0,pe.jsxs)("div",{className:"M2lWM","data-view":e.view,"data-soul":"MEDIA_TEMPLATE",children:[(0,pe.jsx)(vW,{}),(0,pe.jsx)(kW,{}),(0,pe.jsx)("div",{className:(0,Ye.A)("NYgF7",{[LW]:e.hasUpgradeBanner}),id:PW,"data-content-viewport":!0,children:e.children})]})}}MW.displayName="MediaTemplate";const UW=(0,l.Ng)(e=>({hasUpgradeBanner:Bv(e),view:Vy(e)}))(MW);var VW=s(5998);const BW=e=>e?.code===ua.XF,FW="ALL",HW=()=>({type:MM}),GW=({series:e})=>t=>(t({type:VM,series:e}),e),qW=e=>t=>{t(HW()),Ai({text:yl(),soul:"EPG_TOAST_SERIES_FATCHING_FAILED"}),Z(e)},YW=e=>async t=>{const s=await nb.Tn(e);return t(GW(s))},WW=e=>async t=>{const s=await nb.ng(e);return t(GW(s))},zW=()=>(e,t)=>{const s=p_(t());e(qa({path:s?s.path:Bd,preserve:!0}))},$W="EDIT_CLEARED",KW="EDIT_CHANGED",QW="EDIT_MODE_CHANGED",ZW="EDIT_PICKED",XW="EDIT_PICKED_ALL",JW="EDIT_PICKED_MULTIPLE",ez="EDIT_REMOVE_ALL_CONFIRMED",tz="EDIT_REMOVE_SELECTIVE_CONFIRMED",sz="EDIT_UNPICKED",nz="EDIT_UNPICKED_ALL",iz=e=>({type:KW,inEdit:e}),rz=e=>({type:QW,mode:e}),oz=()=>e=>{e(rz("all")),e({type:XW})},az=(e,t)=>({type:JW,pickedIds:e,total:t}),lz=()=>e=>{e(rz(AW)),e({type:nz})},cz=()=>(e,t)=>{const s=t(),n=x(55),i=(r={total:fW(s)},x(54,r));var r;const o=x(53);TW(s)?no({messages:[{title:n,text:i,soul:"EDIT_MODAL_REMOVE_ALL_RECORDINGS"}],job:{text:o,callback:()=>e({type:ez})}}):no({messages:[{title:n,text:i,soul:"EDIT_MODAL_REMOVE_RECORDINGS"}],job:{text:o,callback:()=>e({type:tz})}})},dz=(e,t,s)=>{const n={force:!0,recording_ids:e};return(0,me.A)(t)||(n.filters=t),as({action:"deleteMultipleRecordings",category:"recordings",label:s?"allRecordingsOnPage":"selectedRecordings"}),Zb.pY(n)},pz=()=>({type:$W}),uz=e=>async(t,s)=>{const n=s(),i=fW(n);t({type:SM}),t(pz());const r=CW(n);try{ad(n)&&(e?await((e,t,s)=>{const n={force:!0,teaser_collection_public_id:e};return(0,me.A)(s)||(n.filters=s),(0,me.A)(t)||(n.exclude_recording_ids=t),as({action:"deleteMultipleRecordings",category:"recordings",label:"allRecordingsOnPage"}),Zb.qw(n)})(wL(n),NW(n),DL(n)):await dz(r,DL(n)),await t(PM(wL(n),uo(n)))),pd(n)&&await dz(r,DL(n),e),await t(kA()),Wn({text:(o={count:i},x(57,o)),soul:"EDIT_NOTIFICATION_BATCH_REMOVE_SUCCESS"}),Un({type:jn,content_id_array:r,content_id_type_array:[KA]})}catch(e){Z(e),Yn({text:x(56),soul:"EDIT_NOTIFICATION_BATCH_REMOVE_
1ERROR"})}var o;t({type:AM})},hz=()=>async(e,t)=>{const s=t(),n=sU(s);try{await e(YW({...n,all_seasons:!0}))}catch(t){if((0,m.r6)(t)&&BW(t))return;e(qW(t))}},mz=e=>async(t,s)=>{const n=s(),i=JM(n),r=HM(n).season_numbers.includes(i),o=e.pickedIds.length===WM(n).length;if(e.all||o){if(r)try{return await t(hz()),t((e,t)=>{e(qa({path:tU(t()),preserve:!0}))})}catch(e){return Z(e),t(zW())}return t(zW())}return t(r?async(e,t)=>{const s=t(),n=sU(s),i=JM(s);try{await e(WW({...n,season_number:i}))}catch(t){e(qW(t))}}:hz())},gz=e=>e.braze,yz=e=>gz(e).booted,_z=e=>gz(e).hasControl;const Ez=e=>{const{className:t,logoClassName:s,...n}=e;return(0,pe.jsx)(c.N_,{...n,to:qc,className:(0,Ye.A)("IzIIk",e.className),"data-soul":"LOGO_LINK",children:(0,pe.jsx)(b_,{className:(0,Ye.A)("nU1wI",e.logoClassName)})})},vz="BRAZE_BOOTED",xz="BRAZE_CONTROL_AVAILABILITY_SET";let bz,Az;const Sz=()=>{bz&&(bz.enableSDK(),bz?.initialize(Az.id,{appVersion:"3.2631.0",baseUrl:"sdk.iad-01.braze.com",disablePushTokenMaintenance:Az.disablePushTokenMaintenance,enableLogging:!1,manageServiceWorkerExternally:!0,safariWebsitePushId:Az.safari_website_push_id}))};var Tz="BgVpF";const Cz=e=>(0,pe.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:e.className,children:[(0,pe.jsx)("defs",{children:(0,pe.jsx)("path",{d:"M13,7 C13,7.6 12.6,8 12,8 L6,8 C5.4,8 5,7.6 5,7 C5,6.4 5.4,6 6,6 L12,6 C12.6,6 13,6.4 13,7 M12,12 L6,12 C5.4,12 5,12.4 5,13 C5,13.6 5.4,14 6,14 L12,14 C12.6,14 13,13.6 13,13 C13,12.4 12.6,12 12,12 M24,13.8 L24,16.2 C24,18.3 22.3,20 20.2,20 L20,20 L19.8,20 L14,20 L14,20 C14,20 14,20 14,20 L4,20 C1.8,20 0,18.2 0,16 L0,4 C0,1.8 1.8,0 4,0 L14,0 C16.2,0 18,1.8 18,4 L18,10 C18.5,10 19.1,10 19.8,10 L20.2,10 C22.3,10 24,11.7 24,13.8 M16,4 C16,2.9 15.1,2 14,2 L4,2 C2.9,2 2,2.9 2,4 L2,16 C2,17.1 2.9,18 4,18 L14,18 L14,18 L16,18 L16,16.2 L16,
110 L16,4 M22,13.8 C22,12.8 21.2,12 20.2,12 L19.8,12 C18.8,12 18,12 18,12 L18,16 L18,16.2 C18,17.2 18.8,18 19.8,18 L20,18 L20.2,18 C21.2,18 22,17.2 22,16.2 L22,13.8 ",id:"news-feed"})}),(0,pe.jsx)("use",{xlinkHref:"#news-feed",fillRule:"evenodd"})]});var Nz="JCkbR";const fz=e=>(0,pe.jsx)(Hs,{control:an,className:(0,Ye.A)("m0IuE",{[Nz]:e.withNotification}),title:x(0),soul:"BRAZE_CARDS_CONTROL",onClick:e.onClick,tap:!0,children:(0,pe.jsx)(Cz,{className:"itjzh"})});var Iz,wz;let Oz=(wz=class extends Re.Component{constructor(...e){super(...e),this.state={opened:!1,unreadCards:0},this.contentRef=(0,Re.createRef)(),this.runUpdatesCycle=(0,xn.A)(()=>{this.updateCards(),this.runUpdatesCycle()},6e5)}updateCards(){(bz?new Promise((e,t)=>{bz.requestContentCardsRefresh(()=>{e(bz.getCachedContentCards())},t)}):Promise.resolve({cards:[],getUnviewedCardCount:()=>0,lastUpdated:new Date})).then(e=>{const t=e?.cards?.length>0;this.setState({opened:this.state.opened&&t,unreadCards:e.getUnviewedCardCount()}),this.props.dispatch((e=>({type:xz,hasControl:e}))(t))}).catch(e=>{e&&Z(e)})}start(){this.updateCards(),this.runUpdatesCycle()}open(){var e;this.setState({opened:!0,unreadCards:0}),e=this.contentRef.current,bz?.showContentCards(e)}close(){this.setState({opened:!1})}toggle(){this.state.opened?this.close():this.open()}componentDidMount(){this.props.ready&&this.start()}componentDidUpdate(e){const{props:t}=this;t.ready&&t.ready!==e.ready&&this.start()}componentWillUnmount(){this.runUpdatesCycle.cancel()}render(){const{state:e}=this;return(0,pe.jsxs)(pe.Fragment,{children:[this.props.hasControl&&(0,pe.jsx)(fz,{onClick:this.toggle,withNotification:e.unreadCards>0}),e.opened&&(0,pe.jsx)(Cr,{exclusive:!0,keyMap:{[sr]:this.close}}),(0,li.createPortal)((0,pe.jsxs)("section",{className:(0,Ye.A)("eNsP9",{[Tz]:e.opened}),children:[(0,pe.jsxs)("div",{className:"apiLY",children:[(0,pe.jsx)("h1",{children:x(1)}),(0,pe.jsx)(ln,{soul:"BRAZE_CARDS_CLOSE",kind:pt,onClick:this.close,title:P(),icon:Tt})]}),(0,pe.jsx)("div",{ref:this.contentRef,className:"PL7_Q"})]}),document.getElementById(Lc))]})}},wz.displayName="BrazeCards",Iz=wz,(0,De.A)(Iz.prototype,"close",[je],Object.getOwnPropertyDescriptor(Iz.prototype,"close"),Iz.prototype),(0,De.A)(Iz.prototype,"toggle",[je],Object.getOwnPropertyDescriptor(Iz.prototype,"toggle"),Iz.prototype),Iz);const Dz=(0,l.Ng)(e=>({hasControl:_z(e),ready:yz(e)}))(Oz),Rz="SEARCH_QUERY_CHANGED",jz="SEARCH_ENDED",kz="SEARCH_CLEAR_REQUESTED",Pz="SEARCH_STARTED",Lz="SEARCH_DONE",Mz="search_input",Uz=e=>e.search.inProgress,Vz=e=>{const t=Oa(e);if(!hx(t))return"";const s=t.slice(8);try{return decodeURIComponent(s)}catch(e){if(!(e instanceof URIError))throw e;return s}},Bz="icons-search";var Fz="p7hjc",Hz="CG7K1";const Gz=e=>{const t=(0,Re.createRef)();(0,Re.useEffect)(()=>{t.current&&t.current.focus(),as({action:"openSearch",category:"internalSearch"})},[t]);return(0,pe.jsxs)("form",{className:"ZYILS",autoComplete:"off",onSubmit:e=>{e.preventDefault()},"data-soul":"SEARCH_FIELD",children:[(0,pe.jsx)(ln,{className:(0,Ye.A)("CB0zw"),soul:"SEARCH_CONTROL_BACK",onClick:t=>{t.preventDefault(),e.close()},icon:Dv,iconClassName:Fz,title:j()}),(0,pe.jsxs)("div",{className:"O7JQ8",children:[(0,pe.jsx)("label",{className:"lOpGw",htmlFor:Mz,"data-soul":"SEARCH_INPUT_LABEL",children:e.inProgress?(0,pe.jsx)(Ke,{}):(0,pe.jsx)(ft,{className:Fz,id:Bz})}),(0,pe.jsx)("input",{className:(0,Ye.A)("Y2We4",{[Hz]:Boolean(e.query)}),"data-soul":"SEARCH_INPUT",onBlur:()=>{e.query||e.close()},onChange:e.onChange,value:e.query,"aria-label":x(242),type:"search",name:"search",placeholder:x(243),ref:t})]}),(0,pe.jsx)(Cr,{allowKeysFromInput:!0,exclusive:!0,keyMap:{[sr]:()=>{e.query?e.clear():e.close()}}})]})};var qz="sVnJa",Yz="rc49z";const Wz=e=>(0,pe.jsx)(ln,{iconClassName:qz,soul:"SEARCH_CONTROL",onClick:e.onClick,tap:!0,id:Mz,icon:Bz,title:x(241)});var zz="xshkj",$z="wPBz3";const Kz=e=>hx(Oa(e)),Qz=e=>pp(e),Zz=()=>{const e=(0,l.wA)(),t=(0,l.d4)(Uz),s=(0,l.d4)(SW),n=(0,l.d4)(l_),i=(0,l.d4)(Kz),r=(0,l.d4)(Qz),o=(0,l.d4)(Vz),[a,c]=(0,Re.useState)(!1),[d,p]=(0,Re.useState)(o),u=(0,Re.useRef)(i),h=(0,Re.useRef)(o),m=(0,Re.useMemo)(()=>(0,xn.A)(t=>{h.current=t,e((e=>({type:Rz,query:e}))(t))},400),[e]);(0,Re.useEffect)(()=>()=>{m.cancel()},[m]),(0,Re.useEffect)(()=>{const e=u.current;u.current=i,!e||i||r||(c(!1),p(""),h.current="")},[i,r]),(0,Re.useEffect)(()=>{const e=h.current;o===e||o===e.trim()||(h.current=o,p(o))},[o]);const g=Boolean(d)||a;return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(Wz,{className:(0,Ye.A)({[zz]:s,[$z]:n}),onClick:()=>{c(!0)}}),g&&(0,pe.jsx)(Gz,{close:()=>{c(!1),p(""),h.current="",e({type:jz})},clear:()=>{p(""),h.current=""},onChange:e=>{const{value:t}=e.target;p(t),m(t)},inProgress:t,query:d})]})},Xz="icons-settings-active",Jz=()=>{const e=(0,l.d4)(md);return(0,pe.jsx)(qs,{soul:"HEADER_CONTROL_SETTINGS",to:{pathname:qd,search:location.search},tap:!0,children:(0,pe.jsx)(ft,{className:(0,Ye.A)(qz,{[Yz]:e}),id:e?Xz:It})})},e$=()=>(e=>{const[t,s]=(0,Re.useState)(window.innerWidth<e);return(0,Re.useEffect)(()=>{const t=()=>{s(window.innerWidth<e)};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[]),t})(Ft),t$="icons-recordings-active",s$="icons-cart";var n$="LaQoY",i$="P4RcA",r$="gZ8KS",o$="oyFEq",a$="yIZY5",l$="RetjU",c$="XJhnC",d$="GcUDT";const p$=e=>{const{className:t,direction:s,soul:n,iconIdDefault:i,iconIdActive:r,iconClassName:o,isActive:a,mini:l,location:d,tabIndex:p,title:u,pathname:h,plainLink:m,...g}=e,y=s===e_,_=s===Jy,E=a?r:i,v=E&&(0,pe.jsx)(ft,{className:(0,Ye.A)("lWhl6",o),id:E}),x=y?(0,pe.jsxs)(pe.Fragment,{children:[v,(0,pe.jsx)("p",{className:(0,Ye.A)("H_RNk",Xi),children:u})]}):(0,pe.jsxs)(pe.Fragment,{children:[u,v]});return(0,pe.jsx)("li",{className:(0,Ye.A)("tLexi",{[d$]:_,[c$]:y}),children:m?(0,pe.jsx)(qs,{className:(0,Ye.A)(n$,t,{[o$]:l,[a$]:_,[r$]:y}),contentClassName:l$,href:h,title:u,soul:n,tabIndex:p,...g,children:x}):(0,pe.jsx)(c.k2,{className:(0,Ye.A)(n$,t,{[o$]:l,[i$]:a}),to:{pathname:h,search:d.search},"data-soul":n,tabIndex:p,title:u,...g,children:(0,pe.jsx)("span",{className:l$,children:x})})})};var u$=s(9116);const h$="MENU_SIZE",m$="MENU_DIRECTION_V3",g$=e_,y$=()=>{const e=ae(m$);return Rt(r,e)?e:g$},_$=e=>{oe(m$,e)},E$=(e,t)=>
1t===hp?e:`${e}/${t}`,v$=e=>{if(e===e_)return Xy;const t=(()=>{const e=ae(h$);return Rt(i,e)?e:Qy})();return t===Xy?Zy:t},x$=e=>{as({action:"menu_item_click",category:Wt(),label:e})},b$=e=>Boolean(yh(e)&&zd(e)),A$=e=>Xd(zd(e)),S$=e=>!yh(e)&&vh(e);var T$="yTzf2",C$="K_gLx";const N$=e=>{const t=(0,l.d4)(gd),s=(0,l.d4)(md),n=(0,l.d4)(dd),i=(0,l.d4)(cd),r=(0,l.d4)(hd),o=(0,l.d4)(yd),a=(0,l.d4)(np),c=(0,l.d4)(gp),d=(0,l.d4)(b$),p=(0,l.d4)(S$),u=(0,l.d4)(Vv),h=(0,de.zy)(),m=e$(),g=e.direction===Jy,y=e.direction===e_,_=Ee(),E=I.shop,v=!m||g,x=v&&Boolean(E),b=g;return(0,pe.jsxs)("ul",{className:(0,Ye.A)({[T$]:y,[C$]:g}),"data-soul":"MENU_LIST",children:[a&&(0,pe.jsx)(p$,{direction:e.direction,pathname:Bc,location:h,isActive:t,soul:"MENU_LINK_HIGHLIGHTS",iconIdDefault:"icons-highlights-default",iconIdActive:"icons-highlights-active",onClick:()=>{e.onClick?.(),x$(Kc.START)},tabIndex:e.getTabIndex(t),title:Ol()}),(0,pe.jsx)(p$,{direction:e.direction,pathname:E$(Hc,c),location:h,isActive:n,soul:"MENU_LINK_CHANNELS",tabIndex:e.getTabIndex(n),iconIdDefault:pY,iconIdActive:"icons-channel-list-active",onClick:()=>{e.onClick?.(),x$(Kc.CHANNELS)},title:Il()}),(0,pe.jsx)(p$,{direction:e.direction,pathname:E$(Fd,c),location:h,isActive:i,soul:"MENU_LINK_GUIDE",tabIndex:e.getTabIndex(i),iconIdDefault:"icons-program-default",iconIdActive:"icons-program-active",onClick:()=>{e.onClick?.(),x$(Qc)},title:wl()}),(d||p)&&(0,pe.jsx)(p$,{direction:e.direction,pathname:Bd,location:h,isActive:o,soul:"MENU_LINK_RECORDINGS",tabIndex:e.getTabIndex(o),iconIdDefault:"icons-recordings-default",iconIdActive:t$,onClick:()=>{e.onClick?.(),x$(Kc.RECORDINGS)},title:Dl()}),u&&(0,pe.jsx)(p$,{direction:e.direction,pathname:Vd,location:h,isActive:r,soul:"MENU_LINK_ON_DEMAND",tabIndex:e.getTabIndex(r),iconIdDefault:"icons-vod-default",iconIdActive:"icons-vod-active",onClick:()=>{e.onClick?.(),x$(Kc.VOD)},title:kl()}),v&&(0,pe.jsx)(p$,{direction:e.direction,onClick:()=>{as({action:"openShop",category:"shopReference",label:"shopButton"}),Un({type:"UPGRADE_PAGE_FROM_MENU_OPEN"}),e.onClick?.(),x$("upgrade"),vA("menu")},pathname:_,location:h,iconClassName:"BXykj",plainLink:!0,mini:e.mini,tabIndex:e.getTabIndex(),soul:"MENU_LINK_UPGRADE",iconIdDefault:"icons-upgrade-default",iconIdActive:"icons-upgrade-active",title:jl()}),x&&(0,pe.jsx)(p$,{direction:e.direction,pathname:E,location:h,target:"_blank",plainLink:!0,mini:e.mini,tabIndex:e.getTabIndex(),soul:"MENU_LINK_SHOP",iconIdDefault:s$,iconIdActive:s$,title:jl()}),b&&(0,pe.jsx)(p$,{direction:e.direction,pathname:qd,location:h,onClick:()=>{e.onClick?.(),x$(Jc)},mini:e.mini,isActive:s,tabIndex:e.getTabIndex(s),soul:"MENU_LINK_SETTINGS",iconIdDefault:It,iconIdActive:Xz,title:Rl()})]})},f$="menu_placeholder";var I$="X85ku";const w$=e=>{const t=e$(),s=(0,pe.jsx)("nav",{className:(0,Ye.A)("CgzNX",{[I$]:e.hasBackNavigation}),style:{"--menuHorizontal_visibleHeight":t?wv(72):String(0)},"data-soul":"MENU_HORIZONTAL_CONTAINER",children:(0,pe.jsx)(N$,{direction:e_,getTabIndex:e=>e?-1:0})}),n=document.getElementById(f$);return t&&n?(0,li.createPortal)(s,n):s};var O$="iI0aY",D$="JUQzH",R$="QaH00",j$="FEZ0b",k$="tcdfg";const P$=e=>{const t=e.menuDirection===Jy,s=e.menuDirection===e_;return(0,pe.jsx)(ln,{soul:"EDIT_CONTROL_CANCEL",onClick:e.onClick,icon:Tt,text:t?P():void 0,className:(0,Ye.A)(O$,{[D$]:s}),iconClassName:(0,Ye.A)(R$,{[j$]:s}
1),textClassName:k$,tap:!0})};const L$=e=>{const{className:t,iconClassName:s,titleClassName:n,title:i,...r}=e;return(0,pe.jsxs)(qs,{className:t,to:{pathname:e.path,search:e.queryString},state:r,soul:"BACK_NAVIGATION_CONTROL",tap:!0,children:[(0,pe.jsx)(ft,{id:Dv,className:s}),i&&(0,pe.jsx)("span",{className:(0,Ye.A)("Bsk68",n),children:i})]})},M$=e=>{const{isMenuHorizontal:t,...s}=e;return(0,pe.jsx)(L$,{className:(0,Ye.A)(O$,{[D$]:t}),iconClassName:(0,Ye.A)(R$,{[j$]:t}),titleClassName:k$,...s})},U$="icons-burger",V$="MENU_PREVIOUS_RESTORED",B$="MENU_SIZE_CHANGED",F$="MENU_VISIBILITY_CHANGED",H$=e=>(t,s)=>{const n=s();if(l_(n))return;const i=e===Qy;t({type:B$,direction:i_(n),size:e,visible:i}),i&&Un({type:wn,user_interaction:fN(n)})},G$=e=>(t,s)=>{const n=s();t({type:F$,direction:i_(n),visible:e,size:e?Qy:Zy}),e&&Un({type:wn,user_interaction:fN(n)})};const q$=()=>{const e=(0,l.wA)(),t=(0,l.d4)(n_),s=(0,Re.useRef)(void 0);return(0,pe.jsx)(ln,{reference:s,className:"qJqcO",onClick:()=>{e(G$(!0))},soul:"MENU_CONTROL_OPEN",title:$l(),"aria-expanded":t,"aria-controls":"menu",icon:U$,iconClassName:"mxW2T",contentCenter:!0,tap:!0})},Y$=e=>{const t=e.menuDirection===Jy,s=e.menuDirection===e_;return e.inEdit?(0,pe.jsx)(P$,{menuDirection:e.menuDirection,onClick:e.cancelEdit}):e.breadcrumb?(0,pe.jsx)(M$,{...e.breadcrumb,queryString:e.queryString,title:t&&e.breadcrumb.title,isMenuHorizontal:s}):t?(0,pe.jsx)(q$,{}):null};var W$,z$,$$="sgQEV",K$="eB3fd",Q$="PvpTj",Z$="dB26m",X$="segFK",J$="zL0sG",eK="rF9ha",tK="MpKKg",sK="Ctw1k",nK="bMUyJ";let iK=(z$=class extends Re.PureComponent{cancelEdit(){this.props.dispatch(iz(!1)),as({action:"exit_edit_mode",category:this.props.funnel,label:"header_control_click"})}pickAll(){this.props.dispatch(oz())}unpickAll(){this.props.dispatch(lz())}getBreadcrumb(){const{props:e}=this;return e.isContextAboutToChange?null:e.breadcrumb}getTitle(){const{props:e}=this;return e.isContextAboutToChange?null:e.inEdit?x(88):e.contextTitle}render(){const{props:e}=this;if(e.isMediaViewCinema)return null;const t=this.getBreadcrumb(),s=this.getTitle(),n=e.menuDirection===e_,i=e.menuDirection===Jy,r=e.isHomeFunnel&&!t;return(0,pe.jsxs)(_v,{className:(0,Ye.A)("vQvfI",{[K$]:e.hasUpgradeBanner,[$$]:n,[Q$]:i}),children:[(0,pe.jsxs)(yv,{side:mv,className:(0,Ye.A)({[J$]:n,[eK]:i,[X$]:n&&e.hasBrazeControl}),children:[(0,pe.jsx)(Y$,{cancelEdit:this.cancelEdit,breadcrumb:t,queryString:e.queryString,inEdit:e.inEdit,menuDirection:e.menuDirection}),n&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(Ez,{className:(0,Ye.A)("fAEcV",{[Z$]:!r}),logoClassName:"YcIyQ"}),(0,pe.jsx)(pv,{className:(0,Ye.A)({[nK]:n,[sK]:r}),title:s}),(0,pe.jsx)(w$,{hasBackNavigation:e.hasBackNavigation})]})]}),i&&(0,pe.jsx)(pv,{title:s}),(0,pe.jsxs)(yv,{className:(0,Ye.A)("L8O5e",{[tK]:i&&e.hasBrazeControl}),side:gv,children:[(0,pe.jsx)(Dz,{}),(0,pe.jsx)(Zz,{}),n&&(0,pe.jsx)(Jz,{})]})]})}},z$.displayName="Header",W$=z$,(0,De.A)(W$.prototype,"cancelEdit",[je],Object.getOwnPropertyDescriptor(W$.prototype,"cancelEdit"),W$.prototype),(0,De.A)(W$.prototype,"pickAll",[je],Object.getOwnPropertyDescriptor(W$.prototype,"pickAll"),W$.prototype),(0,De.A)(W$.prototype,"unpickAll",[je],Object.getOwnPropertyDescriptor(W$.prototype,"unpickAll"),W$.prototype),W$);const rK=(0,l.Ng)(e=>({breadcrumb:u_(e),contextTitle:sd(e),hasUpgradeBanner:Bv(e),funnel:od(e),hasBrazeControl:_z(e),hasBackNavigation:h_(e),inEdit:SW(e),isContextAboutToChange:_d(e),isHomeFunnel:ap(e),isMediaViewCinema:Fy(e),menuDirection:i_(e),queryString:Pa(e)}))(iK);var oK=s(7439);const aK=[[300,250],[300,600]];const lK=()=>(0,pe.jsx)("span",{className:"Qw_k_",children:gl({title:C})});const cK=e=>e.hidden?null:(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)("div",{id:e.id,className:(0,Ye.A)("meLoy",e.className)}),(0,pe.jsx)(lK,{})]});cK.displayName="DisplayAdsDynamic";const dK=zj(cK,{id:"div-gpt-ad-dynamic-sidebar",style:lu.Jx,startsFrom:Ft,updateOnEveryPathChange:!0});const pK=e=>e.hidden?null:(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)("div",{id:e.id,className:(0,Ye.A)("z9WcV",e.className)}),(0,pe.jsx)(lK,{})]});pK.displayName="DisplayAdsSide";const uK=zj(pK,{id:"div-gpt-ad-side",style:lu.hP,updateInterval:4e4,requiresCid:!0,startsFrom:Ft,updateOnEveryPathChange:!0});var hK="BNHAU";class mK extends Re.Component{constructor(...e){super(...e),this.ref=(0,Re.createRef)(),this.state={sideAmount:0}}componentDidMount(){const[,e]=aK[0],t=Math.floor(this.ref.current.offsetHeight/e)-1;this.setState({sideAmount:t<3?t:3})}render(){const{props:e}=this;return e.isBrandingDayActive?null:(0,pe.jsxs)("aside",{"data-soul":"DISPLAY_ADS_SIDEBAR",className:(0,Ye.A)("ICXCm",{[hK]:e.hasTVSA}),ref:this.ref,children:[e.hasTVSA&&(0,oK.A)(this.state.sideAmount,e=>(0,pe.jsx)(uK,{index:e},`side_${e}`)),e.hasDynamic&&(0,pe.jsx)(dK,{})]})}}mK.displayName="DisplayAdsSidebar";const gK=(e=>t=>{const s=(0,l.d4)(ky);return(0,Re.useEffect)(()=>{const e=wv(jj(s));document.body.style.setProperty("--sidebar_width",e)},[s]),s?(0,pe.jsx)(e,{...t}):null})((0,l.Ng)(e=>({hasDynamic:Ly(e),hasTVSA:Py(e),isBrandingDayActive:jy(e)}))(mK));var yK="aAyFK",_K="wjPLw",EK="_zPAY",vK="o48RS";const xK=e=>((0,Re.useEffect)(()=>(document.body.classList.add(sv),()=>{document.body.classList.remove(sv)}),[]),(0,pe.jsx)(ln,{soul:e.soul||"DRAWER_OVERLAY",onClick:e.close,className:(0,Ye.A)("Z1b8C",e.className),tabIndex:-1,title:zl(),withHover:!1})),bK="RIGHT",AK=e=>{const t=e.as,{overlayOptions:s}=e,n=s?.isVisible?Ir:"div",i=(0,Ye.A)("zSr0R",yk,ee,"AxbDJ");return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(t,{className:(0,Ye.A)("l4F3h",{[_K]:e.isOpen,[yK]:"LEFT"===e.position,[EK]:e.position===bK},e.className),"data-soul":e.soul||"DRAWER",ref:e.reference,children:(0,pe.jsx)(n,{className:(0,Ye.A)({[vK]:e.noScroll,[i]:!e.noScroll},e.containerClassName),children:e.children})}),s?.isVisible&&(0,pe.jsx)(xK,{close:e.close,className:s.className,soul:s.soul}),e.isOpen&&(0,pe.jsx)(Cr,{exclusive:s?.isVisible,keyMap:{[sr]:e.close}})]})};const SK=e=>(0,pe.jsx)(ln,{className:"LoZJH",onClick:e.close,soul:"MENU_CONTROL_CLOSE",title:zl(),"aria-expanded":e.isVisible,tabIndex:e.isVisible?0:-1,"aria-controls":"menu",icon:Tt,iconClassName:"UB1zl",contentCenter:!0,tap:!0});const TK=()=>{const e=(0,l.wA)(),t=(0,l.d4)(o_),s=t?x(190):$l();return(0,pe.jsx)(ln,{className:"YVj_c",onClick:()=>{e(H$(t?Zy:Qy))},soul:"MENU_CONTROL_SIZE",title:s,"aria-expanded":t,"aria-controls":"menu",icon:U$,iconClassName:"s7Pnx",contentCenter:!0,tap:!0})},CK=s.p+"assets/512x512-4e730a55b868fe4cc96a.png";const NK=()=>(0,pe.jsx)("div",{className:"wx1iy","data-soul":"PWA_IMAGE",children:(0,pe.jsx)(en,{className:"X1ggr",width:24,height:24,src:CK,alt:C})});var fK="u04bB",IK="kJIH6";const wK=e=>{const t=(0,l.wA)(),s=(0,l.d4)(el),n=e.hidden?-1:0;return s?(0,pe.jsxs)("div",{className:(0,Ye.A)("oYSNb",{[fK]:e.hidden}),children:[(0,pe.jsxs)("div",{className:"x8Mu8",children:[(0,pe.jsx)(NK,{}),(0,pe.jsx)("div",{className:"_hmkb",children:nc({tenantTitle:C})})]}),(0,pe.jsxs)("div",{className:"FcG5E",children:[(0,pe.jsx)(ln,{className:IK,onClick:()=>{t(jc(Qa))}
1,soul:"PROMO_NOT_NOW",kind:ut,tabIndex:n,text:x(210)}),(0,pe.jsx)(ln,{className:IK,onClick:()=>t(kc()),soul:"PROMO_INSTALL",kind:ut,color:_t,tabIndex:n,text:sc()})]})]}):null};var OK,DK,RK="GH9Xe",jK="PKLZp";let kK=(DK=class extends Re.PureComponent{constructor(...e){super(...e),this.reference=(0,Re.createRef)(),this.state={isBeforeM:Gt()}}getTabIndex(e){return!this.props.isVisible&&this.state.isBeforeM||e?-1:0}close(){this.props.dispatch(G$(!1))}closeBeforeM(){this.state.isBeforeM&&this.close()}onSwipeLeft(){this.props.isVisible&&this.close()}onSwipeRight(){this.props.isVisible||this.props.dispatch(G$(!0))}handleResize(){this.setState({isBeforeM:Gt()})}subscribe(){window.addEventListener("resize",this.handleResize)}unsubscribe(){window.removeEventListener("resize",this.handleResize)}componentDidMount(){this.subscribe()}componentWillUnmount(){this.unsubscribe()}render(){const{props:e}=this,{isSizeMini:t,isVisible:s}=e,n=!e.isViewFullscreen,i=s?.2:.1;return(0,pe.jsx)(pe.Fragment,{children:(0,pe.jsx)(yi,{reference:this.reference,onLeft:this.onSwipeLeft,onRight:this.onSwipeRight,threshold:i,children:(0,pe.jsxs)(AK,{className:(0,Ye.A)("hhDaG",{[jK]:!n,[RK]:t}),containerClassName:"GtvW9",isOpen:s,as:"nav",soul:"MENU_CONTAINER",reference:this.reference,close:this.close,overlayOptions:{isVisible:n&&s&&this.state.isBeforeM,soul:"MENU_OVERLAY"},noScroll:!0,children:[(0,pe.jsxs)("div",{className:"qgTWw",children:[(0,pe.jsx)(Ez,{style:(0,u$.A)(ge.menu.options.logo,e=>wv(e)),onClick:this.closeBeforeM,tabIndex:s?0:-1}),(0,pe.jsx)(TK,{}),(0,pe.jsx)(SK,{isVisible:s,close:this.close})]}),(0,pe.jsxs)("div",{className:(0,Ye.A)("VCg1v",Rr),children:[(0,pe.jsx)(N$,{direction:Jy,onClick:this.closeBeforeM,getTabIndex:this.getTabIndex,mini:t}),(0,pe.jsx)(wK,{hidden:t})]})]})})})}},DK.displayName="Menu",OK=DK,(0,De.A)(OK.prototype,"getTabIndex",[je],Object.getOwnPropertyDescriptor(OK.prototype,"getTabIndex"),OK.prototype),(0,De.A)(OK.prototype,"close",[je],Object.getOwnPropertyDescriptor(OK.prototype,"close"),OK.prototype),(0,De.A)(OK.prototype,"closeBeforeM",[je],Object.getOwnPropertyDescriptor(OK.prototype,"closeBeforeM"),OK.prototype),(0,De.A)(OK.prototype,"onSwipeLeft",[je],Object.getOwnPropertyDescriptor(OK.prototype,"onSwipeLeft"),OK.prototype),(0,De.A)(OK.prototype,"onSwipeRight",[je],Object.getOwnPropertyDescriptor(OK.prototype,"onSwipeRight"),OK.prototype),(0,De.A)(OK.prototype,"handleResize",[je],Object.getOwnPropertyDescriptor(OK.prototype,"handleResize"),OK.prototype),OK);const PK=(0,l.Ng)(e=>({isVisible:n_(e),isSizeMini:a_(e),isViewFullscreen:Gy(e)}))(kK),LK=e=>{const t=(0,l.d4)(i_),s=(0,l.d4)(c_),n=(0,l.d4)(r_),i=e$();return(0,Re.useEffect)(()=>{let e;switch(n){case Qy:e=200;break;case Zy:e=64;break;default:e=0}document.body.style.setProperty("--menuVertical_width",wv(e))},[n]),(0,Re.useEffect)(()=>{const e=s&&i?72:0;document.body.style.setProperty("--menuHorizontal_height",wv(e))},[s,i]),t===Jy?(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(PK,{}),e.children]}):(0,pe.jsxs)(pe.Fragment,{children:[e.children,(0,pe.jsx)("div",{id:f$})]})};s.p,s.p,s.p,s.p,s.p;const MK="main";var UK="BkJzL";const VK=e=>{const t=(0,l.d4)(Bv);return(0,pe.jsxs)("div",{className:(0,Ye.A)("TgIrg",{[UK]:t}),children:[void 0,(0,pe.jsx)(LK,{children:(0,pe.jsx)(rK,{})}),(0,pe.jsx)("main",{id:MK,className:"pw_xV",children:e.children}),(0,pe.jsx)(gK,{})]})};class BK extends Re.Component{componentDidMount(){const{props:e}=this,{dispatch:t}=e;e.isActive&&t(Df(!0)),Un({type:"APP_LOGOUT"}),t(Wc()),ra()}render(){return(0,pe.jsx)(Ke,{text:x(93),centered:!0})}}BK.displayName="LogoutPage";const FK=(0,l.Ng)(e=>({isActive:py(e)}))(BK);const HK=e=>(0,pe.jsx)("article",{className:"J0MC4","data-context":$t,"data-soul":"DETAILS_TEMPLATE",children:e.children}),GK=(e,t)=>{const s=t.params.cda,n=of(e,s);return{routeCDA:n,routeCID:kp(e,n)}},qK=(e,t={})=>{class s extends Re.Component{isLandedOnCID(){const{props:e}=this,{routeCID:t}=e;return this.initialCDA()===t&&e.routeCDA!==t}hasValidCDA(){return Boolean(this.props.routeCDA)}initialCDA(){return this.props.params.cda}buildCDAPath(){const{props:e}=this,t=this.initialCDA();return((e,t,s)=>e.split("/").map(e=>e===t?s:e).join("/"))(e.location.pathname,t,e.routeCDA)}getChildProps(){const{props:e}=this;return{routeCDA:e.routeCDA||this.initialCDA(),routeCID:e.routeCID||this.initialCDA()}}render(){const{props:s}=this,n=this.getChildProps();if(!this.hasValidCDA()&&!t.preventNotFound)return(0,pe.jsx)(de.C5,{to:Te});if(this.isLandedOnCID())return(0,pe.jsx)(de.C5,{to:{...s.location,pathname:this.buildCDAPath()}});const i={...s,...n};return(0,pe.jsx)(e,{...i})}}return s.displayName=e.displayName||e.name,ue((0,l.Ng)(GK)(s))};const YK=e=>(0,pe.jsx)("div",{className:(0,Ye.A)("c9XZ9",e.className),"data-soul":e.soul||"DETAILS_MAIN",children:e.children});const WK=e=>(0,pe.jsx)("div",{className:(0,Ye.A)("oYwua",e.className),children:e.children}),zK=()=>(0,pe.jsx)(YK,{children:(0,pe.jsx)(WK,{children:(0,pe.jsx)(PE,{soul:"BROADCAST_DETAILS_NOT_FOUND"})})}),$K=e=>(e=>(e=>e.metadataLib)(e).rating_sources)(e).imdb,KK=e=>$K(e)?.max_rating,QK=e=>$K(e)?.logo_token,ZK=e=>$K(e)?.title,XK=e=>e.split(" ").map(([e])=>e).join("");const JK=e=>(0,pe.jsxs)("div",{className:"TaWRZ",children:[e.children,(0,pe.jsx)(WK,{className:(0,Ye.A)("C9z4n",sP,nP,iP)})]});var eQ="uJDpO";const tQ=e=>4*e/3,sQ={width:Rv,height:(nQ=Rv,9*nQ/16)};var nQ;class iQ extends Re.PureComponent{render(){const{props:e}=this;return(0,pe.jsx)(JS,{alt:e.alt,className:(0,Ye.A)("_Fumw",{[eQ]:e.blurred}),soul:e.soul,title:e.title,token:e.imageToken,...sQ})}}var rQ="_fMVo";const oQ=e=>(0,pe.jsxs)("header",{className:(0,Ye.A)("VzlIQ",{[rQ]:e.withOverlap}),"data-soul":"DETAILS_HEADER",children:[e.children,(0,pe.jsx)("h2",{className:"GhRkL",children:e.title}),e.subtitle&&(0,pe.jsx)("h3",{className:(0,Ye.A)("hCK_E",Xi),children:e.subt
1itle})]});const aQ=e=>{return e.logoToken?(0,pe.jsx)(KT,{alt:e.alt,className:"h4RCQ",soul:"DETAILS_LOGO",token:e.logoToken,width:(t=20,16*t/9),height:20,title:e.title}):null;var t};const lQ=e=>(0,pe.jsx)("div",{className:"xSZM7",children:e.children});var cQ="p2ssr";const dQ=e=>{const{position:t,program:s}=e,{s:n,e:i}=s,r=!(0,Vt.v9)(n,i,{excludeEnd:!0})&&!t;return(0,pe.jsx)(AP,{className:(0,Ye.A)("N9Hre",{[cQ]:r}),title:Y(),valueNow:t||(0,Vt.hY)(),valueMin:n,valueMax:i,hideOnZero:!0})};const pQ=e=>{const{program:t}=e;return(0,pe.jsx)(zP,{className:(0,Ye.A)("OAeFT",e.className),start:t.s,end:t.e,format:YP})},uQ=(e,t)=>{if(!t)return!1;if((0,me.A)(e))return!1;const s=e;return!s.expiration||!(0,Vt.sJ)((0,Vt.tM)(s.expiration))};const hQ=e=>{const{broadcast:t,channel:s,isRecordingEnabled:n}=e;if(!t)return JI;const i=Vt.zg(t.s),r=UA(t,e.connectedContent),o=Np(s);if(i&&r&&!o)return ow;if(o&&i)return sw;if(i)return rw;const a=fp(s),l=vm({broadcast:t,channel:s,replayAvailability:e.replayAvailability}),c=xm(l),d=Vt.v9(t.s,t.e,{excludeEnd:!0}),p=uQ(e.recording,n),u=Oh({startTime:t.s,endTime:t.e,isRecordingAvailable:p,isReplayAvailable:c,watchPosition:e.position}),h=e.recording;return o&&d?tw:o&&!a||!u||!p||h.partial&&c?a&&p?pw:o&&p?nw:o?ew:u&&c?cw:d?dw:!p||h.partial&&c?c?uw:r?ow:bm(l)?iw:JI:pw:lw},mQ=e=>{const{broadcast:t}=e;if(!t)return JI;const s=UA(t,e.connectedContent);if(Np(e.channel))return s?ow:JI;const n=vm({broadcast:t,channel:e.channel,replayAvailability:e.replayAvailability}),i=xm(n),r=bm(n),o=(e=>e===_m)(n),a=Vt.v9(t.s,t.e,{excludeEnd:!0}),l=uQ(e.recording,e.isRecordingEnabled),c=Oh({startTime:t.s,endTime:t.e,isRecordingAvailable:l,isReplayAvailable:i,watchPosition:e.position}),d=e.recording;return c&&a?dw:!c||!l||d.partial&&i?c&&i?uw:c&&r?iw:!a||!l||d.partial&&i?a&&i?uw:a&&r?iw:a&&o?aw:JI:pw:pw},gQ=e=>{switch(e){case tw:case nw:case pw:case uw:case dw:case lw:case cw:return!0;default:return!1}},yQ=e=>{switch(e){case tw:case sw:case nw:case ew:case iw:return!0;default:return!1}},_Q=(e,t=7)=>{if(!e)return null;const s=(0,Vt.tM)(e)-(0,Vt.hY)();return s<0?x(214):(0,Vt.a)(s,"round")<=t?(n={time:HP(s)},x(217,n)):null;var n},EQ=e=>{switch(e){case tw:case dw:return Hp;case cw:case uw:return Gp;case nw:case lw:case pw:return qp;default:return null}},vQ=e=>e.orientation;var xQ="bcVpe";const bQ=zj(e=>e.hidden?null:(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)("div",{className:"bPjCv",children:gl({title:C})}),(0,pe.jsx)("div",{id:e.id,className:(0,Ye.A)("wrida",e.className)})]}),{id:`div-gpt-ad-${lu.uD}`,style:lu.uD,endsTo:Bt}),AQ=()=>{const e=(0,l.d4)(py);return"landscape"===(0,l.d4)(vQ)?null:(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)("aside",{className:(0,Ye.A)("Y0XdJ",{[xQ]:e}),children:(0,pe.jsx)(bQ,{})}),(0,pe.jsx)("div",{className:"NRGLr"})]})};const SQ=e=>(0,pe.jsx)(mL,{className:e.className,soul:"RECORD_EXPIRATION_INDICATOR",iconId:sT,iconClassName:(0,Ye.A)("LSntR",e.iconClassName),text:e.expirationTime});const TQ=e=>{const t=e.programReplayUntil-(0,Vt.hY)();if(t<=0)return null;const s=HP(t),n=x(45,{time:s});return(0,pe.jsx)(mL,{className:e.className,soul:"REPLAY_INDICATOR",iconClassName:"UwIKH",iconId:mC,text:n})};var CQ="mTQxj",NQ="kTnX1",fQ="uAjZo";
1const IQ=e=>e.replace(/\s+/g,"-").toLowerCase(),wQ=e=>{const[t,s]=(0,Re.useState)(e.canCollapse),[n,i]=(0,Re.useState)(0);(0,Re.useEffect)(()=>{s(e.canCollapse)},[e.canCollapse]);const r=x(t?377:376);return e.tabs.length<1?null:(0,pe.jsxs)("div",{"data-soul":"TABS",className:"WDYS8",children:[(0,pe.jsxs)("div",{className:"jaB9j",children:[(0,pe.jsx)(fB,{className:"Wm5iu",role:"tablist",children:e.tabs.map((e,r)=>{const o=r===n,a=IQ(e);return(0,pe.jsx)("a",{role:"tab","aria-selected":o?"true":void 0,id:a,href:`#section-${a}`,tabIndex:o?-1:void 0,onClick:e=>{e.preventDefault(),i(r),s(!1)},className:(0,Ye.A)(AB,{[NQ]:o,[fQ]:t}),"data-soul":"TABS_ITEM",children:e},a)})}),e.canCollapse&&(0,pe.jsx)(ln,{className:"XWlMd",contentClassName:"uVBfl","aria-expanded":!t,color:yt,soul:"TABS_CONTROL_TOGGLE",kind:ct,onClick:()=>{s(!t)},title:r,text:r})]}),(0,pe.jsx)("div",{className:(0,Ye.A)("oauGg",{[CQ]:t}),children:e.tabs.map((t,s)=>{const i=s===n,r=IQ(t);return(0,pe.jsx)("section",{role:"tabpanel",id:`#section-${r}`,"aria-labelledby":r,className:e.sectionClassName,hidden:!i,"data-soul":"TABS_SECTION",children:e.children[s]},r)})})]})};var OQ="elo1K",DQ="jcd1h";const RQ="all",jQ="desktop";var kQ;let PQ=(kQ=class extends Re.Component{constructor(...e){super(...e),this.textRef=(0,Re.createRef)(),this.state={isRevealed:!1,isTextTruncated:!1}}isTextTruncated(){const e=this.textRef.current;return!!e&&Math.trunc(e.scrollHeight)>e.clientHeight}updateTextVisibility(){const e=this.isTextTruncated();e!==this.state.isTextTruncated&&this.setState({isTextTruncated:e})}reveal(){this.setState({isRevealed:!0,isTextTruncated:!1})}onRevealClick(){this.reveal()}onTextResize(){this.updateTextVisibility()}componentDidMount(){this.updateTextVisibility(),fG(this.textRef.current,this.onTextResize)}componentWillUnmount(){IG(this.textRef.current,this.onTextResize)}render(){const{props:e}=this,{isRevealed:t,isTextTruncated:s}=this.state,n=e.truncateScreen||RQ;return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)("p",{className:(0,Ye.A)("vvIdL",e.className,{[OQ]:!t&&n===RQ,[DQ]:!t&&n===jQ}),ref:this.textRef,children:e.children}),!t&&s&&(0,pe.jsx)(ln,{className:"FSv4v",color:yt,soul:"DESCRIPTION_CONTROL_SHOW_MORE",kind:ct,onClick:this.onRevealClick,title:U(),text:U()})]})}},(0,De.A)(kQ.prototype,"onRevealClick",[je],Object.getOwnPropertyDescriptor(kQ.prototype,"onRevealClick"),kQ.prototype),(0,De.A)(kQ.prototype,"onTextResize",[je],Object.getOwnPropertyDescriptor(kQ.prototype,"onTextResize"),kQ.prototype),kQ);const LQ={detail:"|",soul:"DETAILS_CONTENT_ATTRIBUTE_SEPARATOR",term:"Separator"},MQ=e=>e?`${OP(e)}`:null,UQ=(e,t)=>{let s=null;if(e&&(s=x(420,{season:e})),t){const e=(e=>x(407,e))({episode:t.toString().padStart(2,"0")});s?s+=` ${e}`:s=e}return s?.trim()},VQ=e=>{const t=[];var s;return e.season&&e.episodeNumber&&t.push({detail:UQ(e.season,e.episodeNumber),soul:"DETAILS_CONTENT_ATTRIBUTE_SEASON_EPISODE",term:x(405)}),e.genres&&e.genres.length>0&&t.push({detail:e.genres[0].trim(),soul:"DETAILS_CONTENT_ATTRIBUTE_GENRE",term:x(399)}),e.year&&t.push({detail:String(e.year),soul:"DETAILS_CONTENT_ATTRIBUTE_PRODUCTION_YEAR",term:x(404)}),e.duration&&t.push({detail:MQ(e.duration),soul:"DETAILS_CONTENT_ATTRIBUTE_DURATION",term:x(398)}),e.countries&&t.push({detail:(s=e.countries,s?s.split(/\s/g).join("/").trim():null),soul:"DETAILS_CONTENT_ATTRIBUTE_PRODUCTION_COUNTRY",term:x(403)}),e.youthProtectionRating&&t.push({detail:e.youthProtectionRating,soul:"DETAILS_CONTENT_ATTRIBUTE_RATING",term:x(394)}),e.price&&t.push(LQ,{detail:e.price,soul:"DETAILS_CONTENT_ATTRIBUTE_PRICE",term:x(402)}),t};var BQ="q8tgB",FQ="vlBi8";const HQ=e=>{const{countries:t,duration:s,episodeNumber:n,genres:i,imdb:r,imdbLogoToken:o,imdbMaxRating:a,imdbTitle:l,price:c,season:d,year:p,youthProtectionRating:u}=e;return(0,pe.jsxs)("dl",{className:"ghpqz","data-soul":e.soul||"DETAILS_CONTENT_ATTRIBUTES",children:[VQ({countries:t,duration:s,episodeNumber:n,genres:i,price:c,season:d,year:p,youthProtectionRating:u}).map(e=>(0,pe.jsxs)(Re.Fragment,{children:[(0,pe.jsx)("dt",{className:FQ,children:e.term}),(0,pe.jsx)("dd",{className:BQ,title:e.term,"data-soul":e.soul,children:e.detail})]},e.term)),r&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)("dt",{className:FQ,children:l}),(0,pe.jsxs)("dd",{className:BQ,children:[(0,pe.jsx)(KT,{height:16,width:32,token:o,alt:l,className:"royAS"}),r.rating," / ",a]})]})]})};const GQ=e=>{const{countries:t,duration:s,episodeNumber:n,genres:i,imdb:r,imdbLogoToken:o,imdbMaxRating:a,imdbTitle:l,season:c,year:d,youthProtectionRating:p}=e;return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(HQ,{genres:i,year:d,duration:s,countries:t,youthProtectionRating:p,season:c,episodeNumber:n,imdb:r,imdbLogoToken:o,imdbMaxRating:a,imdbTitle:l}),(0,pe.jsx)(PQ,{className:"HUkpG",children:e.description||x(397)})]})};var qQ="sBcMN";const YQ=e=>{return(0,pe.jsxs)("span",{className:"vMT0c","data-soul":e.soul,children:[(0,pe.jsx)("span",{className:"N23Em",children:e.name}),(0,pe.jsx)("span",{className:(0,Ye.A)(Zi,{[qQ]:!e.characterName}),children:e.characterName?(t={character_name:e.characterName},x(436,t)):e.role})]});var t};var WQ="nmWzq";const zQ=e=>(0,pe.jsx)(pe.Fragment,{children:e.imageToken?(0,pe.jsx)(JS,{alt:e.alt,className:WQ,soul:"CREDITS_PORTRAIT",token:e.imageToken,width:120,height:tQ(120),loading:Ks}):(0,pe.jsx)("span",{className:(0,Ye.A)("Wlmu3",{[WQ]:e.extended}),children:e.initials})});var $Q="v4R4u";const KQ=e=>(0,pe.jsx)("ul",{className:(0,Ye.A)("_yxUp",{[$Q]:e.extended}),children:e.children});const QQ=e=>(0,pe.jsx)(KQ,{extended:e.extended,children:e.credits.map(t=>(0,pe.jsxs)("li",{className:"blFZI","data-soul":"DETAILS_TABS_CREDITS_IT
1EM",children:[(0,pe.jsx)(qs,{to:ux(t.name),soul:"DETAILS_TABS_CREDITS_LINK_SEARCH_BY_NAME",children:(0,pe.jsx)(zQ,{alt:t.name,extended:e.extended,imageToken:t.imageToken,initials:t.initials})}),(0,pe.jsx)(YQ,{characterName:t.characterName,name:t.name,role:t.role})]},t.role+t.name))}),ZQ=e=>{const t=[x(396)],s=!(0,me.A)(e.credits),n=(i=e.countries)?i.split(",").map(e=>e.trim()).join("/"):"";var i;return s&&t.push(x(395)),(0,pe.jsx)("div",{className:"j1Iej",children:(0,pe.jsxs)(wQ,{tabs:t,children:[(0,pe.jsx)(GQ,{duration:e.duration,year:e.year,countries:n,genres:e.genres,description:e.description,youthProtectionRating:e.youthProtectionRating,season:e.season,episodeNumber:e.episodeNumber,imdb:e.imdb,imdbLogoToken:e.imdbLogoToken,imdbMaxRating:e.imdbMaxRating,imdbTitle:e.imdbTitle}),s&&(0,pe.jsx)(QQ,{credits:e.credits,extended:e.extendedCredits})]})})};var XQ="hDvvR",JQ="Z_b7v";const eZ=e=>(0,pe.jsxs)("div",{className:(0,Ye.A)("Su7Ag",e.className),"data-soul":e.soul||"DETAILS_CONTROLS_BAR",children:[e.mainControls,e.children&&(0,pe.jsx)("div",{className:(0,Ye.A)("j_KMo",{[XQ]:e.dim}),children:(0,pe.jsx)("div",{className:(0,Ye.A)("yQInT",Rr,{[JQ]:e.dim}),children:e.children})})]}),tZ=e=>e.settings.secrets,sZ=e=>tZ(e)&&fe(e)?.endsWith("@zattoo.com"),nZ="icons-edit";const iZ=e=>(0,pe.jsxs)("div",{className:(0,Ye.A)("wV0Ws",e.className),"data-soul":e.soul||"LABEL_WRAPPER",children:[e.children,(0,pe.jsx)("div",{className:(0,Ye.A)("fcyrN",e.labelClassName),children:e.label})]});const rZ=e=>(0,pe.jsx)(iZ,{className:(0,Ye.A)("vuIJi",e.className),labelClassName:(0,Ye.A)("MWBBs",e.labelClassName),label:e.label,soul:e.soul,children:e.children}),oZ=e=>{if(!e.path)return null;const t=`https://cms.zattoo.com/${e.path}`;return(0,pe.jsx)(rZ,{className:e.className,label:`${al()} CMS`,children:(0,pe.jsx)(qs,{color:Et,kind:pt,soul:"DETAILS_CMS_LINK",target:"_blank",to:t,children:(0,pe.jsx)(ft,{id:nZ})})})},aZ="primary",lZ="secondary",cZ=e=>(0,pe.jsx)(rZ,{className:e.className,label:e.label,children:(0,pe.jsx)(ln,{color:e.priority===aZ?_t:e.priority===lZ?Et:null,disabled:e.disabled,kind:pt,onClick:e.onClick,onClickDisabled:e.onClickDisabled,soul:e.soul,title:e.title||e.label,icon:e.iconId})}),dZ=e=>(0,pe.jsx)(cZ,{priority:e.priority,onClick:mw,soul:(()=>{switch(e.priority){case aZ:return"BROADCAST_CONTROL_SUBSCRIBE_TO_REPLAY_PRIMARY";case lZ:return"BROADCAST_CONTROL_SUBSCRIBE_TO_REPLAY_SECONDARY";default:return null}})(),iconId:AU,label:ul()}),pZ=e=>e.connectedContent;var uZ;let hZ=(uZ=class extends Re.Component{constructor(...e){super(...e),this.state={content:null,contentType:null,token:null}}async fetchConnectedContentDetails(){const[e]=this.props.cc,{content_id:t,content_type:s}=e;if(this.props.allAvailableConnectedContentMap[s]?.[t])switch(s){case LA.nl:{const e=await jb.wH({movie_id:t}),n=this.props.status?.[LA.nl]?.[e.id],i=kh(e.terms_catalog),r=Fh(i,this.props.subscriptions,n);(r||Ph(e.terms_catalog,Ch.B$))&&this.setState({content:e,contentType:s,token:r});break}case LA.CC:{const e=await jb.xo(t),n=this.props.status?.[LA.nl]?.[e.id],i=kh(e.terms_catalog),r=Fh(i,this.props.subscriptions,n);(r||Ph(e.terms_catalog,Ch.B$))&&this.setState({content:e,contentType:s,token:r});break}case LA.uM:{const e=await JL.DL({id:t,pghash:this.props.pghash});this.setState({content:e,contentType:s});break}}}upgradeSvod(e){const t=be({service_type:e.subscription_service_type,redirect:this.props.path});io(t?{messages:[{title:Bl(),text:Vl({subscription_name:e.subscription_name})}],job:{callback:()=>{window.open(t,"_blank")},text:Fl()}}:{messages:[{title:Bl(),text:Vl({subscription_name:e.subscription_name})}],options:{primaryOnly:!0},job:{text:ol()}})}watchContent(){const{dispatch:e}=this.props,{content:t,contentType:s,token:n}=this.state;switch(s){case LA.nl:{const s=t;n?e(ND({movie_id:s.id,term_token:n})):this.upgradeSvod(Ph(s.terms_catalog,Ch.B$)?.terms[0]);break}case LA.CC:{const s=t;n?e(ID({series_id:s.series_id,season_id:s.season_id,episode_id:s.id,term_token:n})):this.upgradeSvod(Ph(s.terms_catalog,Ch.B$)?.terms[0]);break}case LA.uM:{const e=t;window.open(e.url,"_blank");break}}}isExternalContent(){return this.state.contentType===LA.uM}getTitle(){if(this.isExternalContent()){const t=this.state.content;
1return e={appName:t.external_app.title},x(65,e)}var e;return hl()}componentDidMount(){this.fetchConnectedContentDetails()}render(){if(!this.state.content)return null;const e=!this.state.token&&!this.isExternalContent(),t=this.getTitle();return(0,pe.jsx)(rZ,{label:t,children:(0,pe.jsx)(ln,{soul:"CONNECTED_CONTENT_WATCH",onClick:this.watchContent,color:_t,kind:pt,icon:e?jS:Ct,title:t})})}},(0,De.A)(uZ.prototype,"upgradeSvod",[je],Object.getOwnPropertyDescriptor(uZ.prototype,"upgradeSvod"),uZ.prototype),(0,De.A)(uZ.prototype,"watchContent",[je],Object.getOwnPropertyDescriptor(uZ.prototype,"watchContent"),uZ.prototype),uZ);hZ.displayName="ConnectedContentPlayControl";const mZ=(0,l.Ng)(e=>({path:Oa(e),pghash:uo(e),status:Ah(e),subscriptions:Th(e),allAvailableConnectedContentMap:pZ(e)}))(hZ),gZ=e=>{switch(e){case Hp:return"live";case qp:return"pvr";case Gp:return"replay";default:return null}},yZ=e=>{const t=(0,l.wA)(),s=s=>{s.preventDefault();const n=EQ(e.action);t(hI({cid:e.channel.cid,mode:n,pid:e.program.id,rid:e.recording?.id})),as({action:gZ(n),category:"watch",label:$t})},n=hw(e.action);return(0,pe.jsx)(cZ,{label:n.text,soul:"BROADCAST_DETAILS_CONTROL_WATCH_PRIMARY",onClick:s,onClickDisabled:s,disabled:e.disabled,title:n.title,iconId:Ct,priority:aZ})},_Z=e=>{const{action:t}=e;return gQ(t)?(0,pe.jsx)(yZ,{action:t,channel:e.channel,program:e.program,recording:e.recording,disabled:e.disabled}):(e=>e===iw)(t)?(0,pe.jsx)(dZ,{priority:aZ}):(e=>e===ow)(t)?(0,pe.jsx)(mZ,{cc:e.program.cc}):null},EZ=e=>{const t=(0,l.d4)(ad),{ts_id:s}=e.program;if(!s)return null;const n={action:"open",category:"seriesInfo",label:$t};return(0,pe.jsx)(rZ,{className:e.className,label:x(30),children:(0,pe.jsx)(qs,{analyticsData:n,color:Et,kind:pt,soul:"BROADCAST_DETAILS_ALL_EPISODES",to:{pathname:_x(s,e.channel.url_cid)},state:{recordingsOnly:t},children:(0,pe.jsx)(ft,{id:"icons-series"})})})},vZ=e=>(0,pe.jsx)(rZ,{className:e.className,label:e.text,children:(0,pe.jsx)(ln,{soul:e.soul,onClick:e.onClick,onClickDisabled:e.onClickDisabled,disabled:e.disabled,color:e.color||Et,kind:pt,icon:e.iconId,title:nl()})});vZ.displayName="SingleControlNpvr";const xZ=_U(vZ),bZ="BROADCAST_DETAILS_RECORDS",AZ=(0,Re.memo)(e=>{const{channel:t,program:s}=e,n=(0,l.d4)(gh),i=(0,l.d4)(Eh),r=(0,l.d4)(vh),o=(0,l.d4)(e=>$f(e,s.id)),a=(0,l.d4)(e=>Tk(e,t.cid,s.ts_id)),c=wA({channel:t,program:s,recordingEarliestStartTime:n,recordingSeriesEligible:i,recordingSubscribable:r,rid:o});if(OA({channel:t,program:s,recordingSeriesEligible:i,series:a})){const n=DA(o);return(0,pe.jsx)(rZ,{className:e.className,label:n.text,children:(0,pe.jsxs)(oj,{offsetY:12,className:IU,children:[(0,pe.jsx)(ln,{soul:bZ,color:Et,kind:pt,icon:n.iconId,title:nl()}),(0,pe.jsx)(bU,{program:s,channel:t}),(0,pe.jsx)(EU,{program:s,channel:t})]})})}return c?(0,pe.jsx)(xZ,{className:e.className,channel:t,program:s,soul:bZ}):null}),SZ=e=>{const t=(0,l.wA)();return(0,pe.jsx)(cZ,{className:e.className,label:dl(),soul:"BROADCAST_DETAILS_CONTROL_WATCH_RECORDING_SECONDARY",onClick:()=>{t(zI({rid:e.recording.id,fromStart:!0})),as({action:"pvr",category:"watch",label:$t})},iconId:mC,priority:lZ})},TZ=e=>{const t=(0,l.wA)();return(0,pe.jsx)(cZ,{className:e.className,label:dl(),soul:"BROADCAST_DETAILS_CONTROL_WATCH_REPLAY_SECONDARY",onClick:async()=>{await t(xw({pid:e.program.id,initialTime:0})),as({action:"replay",category:"watch",label:$t})},iconId:mC,priority:lZ})},CZ=e=>{const t=(0,l.wA)();return(0,pe.jsx)(cZ,{className:e.className,label:ml(),soul:"BROADCAST_DETAILS_CONTROL_WATCH_LIVE_SECONDARY",onClick:()=>{t(bI({cid:e.channel.cid})),as({action:"live",category:"watch",label:$t})},iconId:Ct,priority:lZ})},NZ=e=>(0,pe.jsx)(cZ,{className:e.className,label:dl(),soul:"BROADCAST_DETAILS_CONTROL_RESTRICTED_REPLAY",onClickDisabled:()=>{gw()},iconId:mC,priority:lZ,disabled:!0}),fZ=e=>{switch(e.action){case dw:return(0,pe.jsx)(CZ,{channel:e.channel,className:e.className});case uw:return(0,pe.jsx)(TZ,{program:e.program,className:e.className});case aw:return(0,pe.jsx)(NZ,{className:e.className});case pw:return(0,pe.jsx)(SZ,{className:e.className,recording:e.recording});case iw:return(0,pe.jsx)(dZ,{priority:lZ});default:return null}};var IZ="DGi1V";const wZ=e=>{const t=(0,l.d4)(sZ);return(0,pe.jsxs)(eZ,{dim:!0,mainControls:(0,pe.jsx)(_Z,{action:e.primaryAction,channel:e.channel,disabled:e.watchDisabled,recording:e.recording,program:e.program}),children:[(0,pe.jsx)(fZ,{action:e.secondaryAction,channel:e.channel,program:e.program,recording:e.recording}),(0,pe.jsx)(AZ,{className:IZ,program:e.program,channel:e.channel}),(0,pe.jsx)(EZ,{className:IZ,program:e.program,channel:e.channel}),t&&(0,pe.jsx)(oZ,{path:`tv/broadcasts/${e.program.id}`,className:IZ})]})};const OZ=e=>(0,pe.jsx)(WK,{className:(0,Ye.A)("vDl6C",e.className),children:e.children});const DZ=e=>(0,pe.jsxs)("section",{className:"JhLpi","data-soul":e.soul,"data-context":e.dataContext,children:[(0,pe.jsx)("h3",{className:"sOwyW",children:e.title}),e.children]});var RZ,jZ;let kZ=(jZ=class extends Re.Component{watchLive(e){this.props.dispatch(bI({cid:e}))}render(){const{props:e}=this,{liveProgram:t}=e;if(!t||t.id===e.program.id||fp(e.channel))return null;const{channel:s}=e;return(0,pe.jsx)(DZ,{title:(n={title:s.title},x(16,n)),soul:"DETAILS_LIVE_PROGRAM",dataContext:"program_info_airingNow",children:(0,pe.jsx)(fV,{program:t,channel:s,view:gk,id:`${t.id}`,isFavorite:e.isFavorite,rid:e.rid,isLocked:e.isSubscribable,watchLive:this.watchLive})});var n}},jZ.displayName="LiveProgram",RZ=jZ,(0,De.A)(RZ.prototype,"watchLive",[je],Object.getOwnPropertyDescriptor(RZ.prototype,"watchLive"),RZ.prototype),RZ);const PZ=(0,l.Ng)((e,t)=>{const{cid:s}=t.channel;return{isFavorite:Pp(e).includes(s),isSubscribable:rf(e,s),liveProgram:_I(e,s)}})(kZ);var LZ="MTG22";var MZ;let UZ=(MZ=class{constructor(){this.timer=null,this.isLongPressTriggered=!1,this.element=void 0,this.callback=void 0}clear(){this.timer&&(clearTimeout(this.timer),this.timer=null)}schedule(){this.clear(),this.timer=setTimeout(()=>{this.callback(),this.isLongPressTriggered=!0},500)}clearLongPress(){this.element&&(this.element.classList.remove(LZ),this.clear())}
1onTouchStart(){this.element&&(this.element.classList.add(LZ),this.schedule())}onTouchEnd(e){this.isLongPressTriggered&&(e.preventDefault(),this.isLongPressTriggered=!1),this.clearLongPress()}preventContextMenu(e){return e.preventDefault(),!1}subscribe(e,t){He()&&e&&t&&(this.element=e,this.callback=t,e.addEventListener("touchstart",this.onTouchStart,!0),e.addEventListener("touchmove",this.clearLongPress,!0),e.addEventListener("touchend",this.onTouchEnd,!0),e.addEventListener("contextmenu",this.preventContextMenu,!0))}unsubscribe(){He()&&this.element&&(this.element.removeEventListener("touchstart",this.onTouchStart,!0),this.element.removeEventListener("touchmove",this.clearLongPress,!0),this.element.removeEventListener("touchend",this.onTouchEnd,!0),this.element.removeEventListener("contextmenu",this.preventContextMenu,!0),this.clear())}},(0,De.A)(MZ.prototype,"clearLongPress",[je],Object.getOwnPropertyDescriptor(MZ.prototype,"clearLongPress"),MZ.prototype),(0,De.A)(MZ.prototype,"onTouchStart",[je],Object.getOwnPropertyDescriptor(MZ.prototype,"onTouchStart"),MZ.prototype),(0,De.A)(MZ.prototype,"onTouchEnd",[je],Object.getOwnPropertyDescriptor(MZ.prototype,"onTouchEnd"),MZ.prototype),MZ);var VZ="MIwcK",BZ="t80xy",FZ="J2Fmn";const HZ=e=>{const{view:t}=e;return(0,pe.jsx)(ln,{className:(0,Ye.A)("opeBS",{[VZ]:t===mk||t===uk,[FZ]:t===hk,[BZ]:e.isPortrait}),onClick:e.onClick,onClickDisabled:e.onClickDisabled,soul:e.soul,title:e.title||hl(),color:_t,kind:pt,disabled:e.disabled,contentCenter:!0,icon:Ct,tabIndex:-1})};const GZ=e=>(0,pe.jsx)(ln,{className:(0,Ye.A)("zGVOU",jk,Pk),onClick:()=>{e.isPicked?e.unpick(e.pickId):e.pick(e.pickId)},soul:"TEASER_OVERLAY_BORDERED_PICK","aria-pressed":e.isPicked,title:gc({title:e.title})}),qZ=e=>{const{view:t,program:s,channel:n}=e;return(0,pe.jsxs)(RU,{view:t,children:[(0,pe.jsx)(AL,{channel:e.channel,program:s,elementIndex:e.elementIndex,teaserIndex:e.teaserIndex,view:e.view}),(0,pe.jsx)(bU,{program:s,channel:n,elementIndex:e.elementIndex,teaserIndex:e.teaserIndex,view:e.view}),(0,pe.jsx)(EU,{program:s,channel:n,elementIndex:e.elementIndex,teaserIndex:e.teaserIndex,view:e.view}),(0,pe.jsx)(NU,{channel:n,program:s,elementIndex:e.elementIndex,teaserIndex:e.teaserIndex,view:e.view})]})};var YZ="ArPEG",WZ="eM9Sp",zZ="z7475";const $Z=e=>{const{view:t}=e,s=[mk,uk].includes(t),n=gk===t;return(0,pe.jsx)("div",{className:(0,Ye.A)("pAI0j",wU,{[OU]:s,[DU]:n,[zZ]:e.isPicked,[WZ]:t===hk}),"data-soul":"TEASER_EDIT_INDICATOR",children:(0,pe.jsx)(ft,{className:(0,Ye.A)("GJMXP",{[YZ]:e.isPicked}),id:Ii})})};var KZ,QZ;let ZZ=(QZ=class extends Re.PureComponent{constructor(...e){super(...e),this.longPressListener=new UZ}hasData(){return Boolean(this.props.channel&&this.props.program)}getPosition(){const{props:e}=this;return e.position?e.position:hm(e.program)?Vt.hY():null}getBroadcastAction(){const{props:e}=this;return hQ({channel:e.channel,broadcast:e.program,position:e.position,recording:e.recording,replayAvailability:e.replayAvailability,isRecordingEnabled:e.networkRecordingEligible})}getStreamMode(){return EQ(this.getBroadcastAction())}getWatchControlTitle(e){const{title:t}=hw(e);return t}watchBroadcast(e){e.preventDefault();const{props:t}=this,s=this.getStreamMode(),n=t.recording&&t.recording.id;t.watchBroadcast({cid:t.channel.cid,mode:s,program:t.program,rid:n,teaserIndex:t.teaserIndex}),ls({action:gZ(s),category:"watch",view:t.view,targetNode:e.currentTarget,elementIndex:t.elementIndex,teaserIndex:t.teaserIndex})}componentDidMount(){this.longPressListener.subscribe(this.props.sectionRef?.current,this.props.onLongPress)}componentWillUnmount(){this.longPressListener.unsubscribe()}render(){if(!this.hasData())return null;const{props:e}=this,{program:t,text:s,title:n,view:i}=e,r=this.getPosition(),o=this.getBroadcastAction(),a=gQ(o),l=yQ(o),c=TA(e.recording)||l||!a,d=i===gk,p=!1!==e.hasDetails,u=!1!==e.hasMenu,h=lx(e.channel.url_cid,t.id),m=_Q(e.recording?.expiration),g=pV(e.editStatus),y=dV(e.editStatus),_=(d||!p)&&a,E=!d&&a&&!g,v=!_&&E,x=yL(e.isActiveInMarquee);return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsxs)(vP,{alt:n,kind:dP,view:i,token:e.imageToken,children:[v&&(0,pe.jsx)(EL,{onClick:this.watchBroadcast,onClickDisabled:this.watchBroadcast,disabled:c,title:hl(),soul:"TEASER_BROADCAST_PICTURE_OVERLAY_WATCH",tabIndex:-1}),E&&(0,pe.jsx)(HZ,{disabled:c,view:i,onClick:this.watchBroadcast,onClickDisabled:this.watchBroadcast,soul:"TEASER_BROADCAST_CONTROL_WATCH",title:this.getWatchControlTitle(o)})]}),(0,pe.jsxs)(Kk,{view:i,withMenu:u,children:[(0,pe.jsx)(Vk,{alt:n,token:Sp(e.channel).logo_token,view:i}),(0,pe.jsx)(qk,{title:n,text:s}),(0,pe.jsxs)(Fk,{view:i,children:[r&&(0,pe.jsx)(SP,{hasProgress:!0,progressTimeNow:r,progressTimeMax:t.e,progressTimeMin:t.s}),(0,pe.jsxs)("div",{className:XP,children:[(0,pe.jsx)(gL,{className:vL,cid:e.channel.cid,program:t}),m?(0,pe.jsx)(SQ,{className:"YgeBM",iconClassName:"K3x8N",expirationTime:m}):(0,pe.jsx)(ZP,{startTime:t.s,endTime:t.e,view:i})]}),u&&!g&&(0,pe.jsx)(qZ,{channel:e.channel,elementIndex:e.elementIndex,program:t,teaserIndex:e.teaserIndex,view:i}),g&&(0,pe.jsx)($Z,{view:i,isPicked:y})]}
1),p&&!d&&(0,pe.jsx)(Lk,{pathname:h,elementIndex:e.elementIndex,teaserIndex:e.teaserIndex,view:e.view,tabIndex:a&&!g?0:-1,title:n})]}),p&&!a&&(0,pe.jsx)(Lk,{pathname:h,elementIndex:e.elementIndex,teaserIndex:e.teaserIndex,view:e.view,tabIndex:x,title:n}),_&&(0,pe.jsx)(EL,{onClick:this.watchBroadcast,onClickDisabled:this.watchBroadcast,disabled:c,title:hl(),soul:"TEASER_BROADCAST_OVERLAY_WATCH"}),g&&(0,pe.jsx)(GZ,{title:n,isPicked:y,pick:e.pick,pickId:e.pickId,unpick:e.unpick}),l&&(0,pe.jsx)(cL,{className:xL}),i===hk&&(0,pe.jsx)(_L,{id:e.teaserIndex,hidden:e.isActiveInMarquee,onClick:e.onClickLinkMarquee,tabIndex:-1})]})}},QZ.displayName="TeaserBroadcast",KZ=QZ,(0,De.A)(KZ.prototype,"watchBroadcast",[je],Object.getOwnPropertyDescriptor(KZ.prototype,"watchBroadcast"),KZ.prototype),KZ);const XZ=hV(ZZ,{soul:"TEASER_BROADCAST"}),JZ=e=>({channels:jp(e),networkRecordingEligible:xh(e),replayAvailability:_h(e)}),eX=e=>{const t=e.similarPrograms.map(({program:t,channel:s})=>{const n=`${t.id}`;return(0,pe.jsx)(XZ,{channel:s,id:n,imageToken:t.i_t,isLocked:Ip(s),program:t,replayAvailability:e.replayAvailability,title:t.t,text:t.et,view:gk,watchBroadcast:e.watchBroadcast,networkRecordingEligible:e.networkRecordingEligible},n)});return t.length?(0,pe.jsx)(DZ,{title:x(62),soul:"DETAILS_SIMILAR_PROGRAMS",dataContext:es,children:t}):null};eX.displayName="SimilarPrograms";const tX=(e=>{var t,s;let n=(s=class extends Re.Component{constructor(...e){super(...e),this.state={similarPrograms:[]}}trackSimilarPrograms(){as({action:"show_similarProgram",category:"programInfo",label:"none",nonInteraction:!0})}watchBroadcast(e){this.props.dispatch(hI({cid:e.cid,pid:e.program.id,rid:e.rid,mode:e.mode}))}formatRelatedPrograms(e){return e.map(e=>{const{props:t}=this;return{channel:t.channels[e.cid],program:e}}).filter(e=>Boolean(e.channel))}fetchRelated(){const{props:e}=this;var t;e.dispatch((t=e.program.id,e=>nb.dW({program_id:t}).then(s=>e({type:"EPG_SIMILAR_PROGRAMS_RECEIVED",programs:s.programs,pid:t})))).then(({programs:e})=>this.formatRelatedPrograms(e)).then(e=>{e.length>0&&this.trackSimilarPrograms(),this.setState({similarPrograms:e})})}componentDidMount(){this.fetchRelated()}componentDidUpdate(e){e.program.id!==this.props.program.id&&this.fetchRelated()}render(){const t=this.props;return(0,pe.jsx)(e,{...t,similarPrograms:this.state.similarPrograms,watchBroadcast:this.watchBroadcast})}},s.displayName=e.displayName||e.name,t=s,(0,De.A)(t.prototype,"watchBroadcast",[je],Object.getOwnPropertyDescriptor(t.prototype,"watchBroadcast"),t.prototype),t);return(0,l.Ng)(JZ)(n)})(eX);var sX="s56Jp";const nX=e=>{const{channel:t,program:s,position:n,replayAvailability:i}=e,r=(0,l.d4)(e=>Qf(e,s.id)),o=(0,l.d4)(QK),a=(0,l.d4)(KK),c=(0,l.d4)(ZK),d=Am({broadcast:s,channel:t,replayAvailability:i}),p=r?.id,u=s.e-s.s,h=_Q(r?.expiration,1/0),m=hQ({broadcast:s,channel:t,recording:r,position:n,replayAvailability:i,isRecordingEnabled:e.networkRecordingEligible}),g=mQ({broadcast:s,channel:t,recording:r,position:n,replayAvailability:i,isRecordingEnabled:e.networkRecordingEligible}),y=EQ(m),_=yQ(m),E=(0,Re.useCallback)(()=>((e,t,s)=>{const n=[...s||[],...t||[]];return n?n.reduce((e,t)=>(t.f_n&&t.r&&e.push({characterName:t.c_n,imageToken:t.i_t,initials:XK(t.f_n),name:t.f_n,role:t.r}),e),[]):Object.keys(e).reduce((t,s)=>[...t,...e[s].map(e=>({initials:XK(e),name:e,role:s}))],[])})(s.cr,s.crew,s.cast),[s]);return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsxs)(YK,{soul:"BROADCAST_DETAILS_BODY",children:[(0,pe.jsx)(JK,{children:(0,pe.jsx)(iQ,{alt:s.t,imageToken:s.i_t})}),(0,pe.jsxs)(WK,{children:[(0,pe.jsx)(oQ,{title:s.t,subtitle:s.et,withOverlap:!0,children:(0,pe.jsx)(aQ,{logoToken:Sp(t).logo_token,alt:t.title})}),(0,pe.jsx)(dQ,{program:s,position:n}),(0,pe.jsx)(pQ,{className:"P5yDy",program:s}),(0,pe.jsxs)(lQ,{children:[h?(0,pe.jsx)(SQ,{className:sX,expirationTime:h}):(0,pe.jsx)(gL,{className:sX,cid:t.cid,program:s,showText:!0}),d&&(0,pe.jsx)(TQ,{className:sX,programReplayUntil:s.ry_u})]}),(0,pe.jsx)(wZ,{primaryAction:m,secondaryAction:g,channel:t,watchDisabled:_,mode:y,program:s,recording:r}),(0,pe.jsx)(ZQ,{credits:E(),description:s.d,countries:s.country,genres:s.g,year:s.year,duration:u,youthProtectionRating:s.yp_r,season:s.s_no,episodeNumber:s.e_no,imdb:s.r?.imdb,imdbLogoToken:o,imdbMaxRating:a,imdbTitle:c,extendedCredits:!0})]}),_&&(0,pe.jsx)(cL,{position:oL})]}),(0,pe.jsxs)(OZ,{children:[(0,pe.jsx)(PZ,{program:s,channel:t,rid:p}),(0,pe.jsx)(tX,{program:s})]}),e.hasDisplayAds&&(0,pe.jsx)(AQ,{})]})},iX=e=>parseInt(e.id,10);class rX extends Re.Component{constructor(...e){super(...e),this.state={isLoading:!1,program:null,channel:null}}
1hasDetails(){return Boolean(this.state.program&&this.state.channel)}setAnalytics(){if(!this.hasDetails())return;const{program:e,channel:t}=this.state;let s;var n;s=Vt.v9(e.s,e.e,{excludeEnd:!0})?"live":Vt.zg(e.s)?"upcoming":"past",n={dimension25:e.t,dimension26:e.et,dimension27:e.channel_name,dimension28:"broadcast",dimension29:s,dimension30:e.c.toString(),dimension31:e.g.toString(),dimension32:e.year,dimension33:e.country,dimension34:e.yp_r,dimension35:e.id,dimension36:Np(t),dimension37:Boolean(e.ts_id)},Dt&&(Object.keys(n).forEach(e=>{n[e]=String(null!=n[e]?n[e]:"none")}),gtag("set",n)),os({title:"programInfo",path:location.pathname+location.search}),this.props.previousPath||as({action:"open",category:"programInfo",label:"link"}),Ud()}async fetchProgram(){this.setState({isLoading:!0});const e=await NN(this.props.pghash,iX(this.props.params));if(!e)return void this.setState({isLoading:!1});const t=this.props.channels[e.cid];this.setState({isLoading:!1,program:e,channel:t},()=>{this.setAnalytics()})}componentDidMount(){this.fetchProgram()}componentDidUpdate(e){iX(e.params)!==iX(this.props.params)&&this.fetchProgram()}componentWillUnmount(){(e=>{if(!Dt)return;const t={};e.forEach(e=>{t[e]=null}),gtag("set",t)})(["dimension25","dimension26","dimension27","dimension28","dimension29","dimension30","dimension31","dimension32","dimension33","dimension34","dimension35","dimension36","dimension37"])}render(){const{props:e}=this;return(0,pe.jsx)(HK,{children:(()=>this.state.isLoading?(0,pe.jsx)(Ke,{centered:!0,delayed:!0}):this.hasDetails()?(0,pe.jsx)(nX,{program:this.state.program,channel:this.state.channel,position:e.position,hasDisplayAds:e.hasDisplayAds,replayAvailability:e.replayAvailability,networkRecordingEligible:e.networkRecordingEligible}):(0,pe.jsx)(zK,{}))()})}}rX.displayName="BroadcastDetails";const oX=qK((0,l.Ng)((e,t)=>({channels:jp(e),hasDisplayAds:Oy(e),networkRecordingEligible:xh(e),pghash:uo(e),previousPath:Ra(e),position:gf(e,iX(t.params)),replayAvailability:_h(e)}))(rX),{preventNotFound:!0}),aX=()=>{const e=(0,l.d4)(ka);return(0,Re.useEffect)(()=>{window.location.replace(ve(e))},[e]),null},lX=()=>((0,Re.useEffect)(()=>{ra()},[]),null),cX=e=>e[Fv],dX=e=>e[qv];class pX extends Re.Component{async mount(){const{props:e}=this;if(e.isVODEligible)try{const t=e.params[Hv],s=(e=>e[Gv])(e.params),n=dX(e.params),i=await jb.Jw({series_id:t,season_id:s}),r=Lw(i?.current_season?.episodes,n),o=kh(r?.terms_catalog),a=Fh(o,e.subscriptions,e.status);if(a)return void e.dispatch(qa(ox({series_id:t,season_id:s,episode_id:n,term_token:a})));e.dispatch(qa(Nx(t,s)))}catch(t){Z(t),e.dispatch(qa(Te))}else e.dispatch(qa(Te))}componentDidMount(){this.mount()}render(){return null}}pX.displayName="VODExternalEpisodeWatch";const uX=ue((0,l.Ng)((e,t)=>{const s=dX(t.params);return{isVODEligible:mh(e),status:Sh(e,rh.Uh,s),subscriptions:Th(e)}})(pX));class hX extends Re.Component{async mount(){const{props:e}=this;if(e.isVODEligible)try{const t=cX(e.params),s=await jb.wH({movie_id:t}),n=kh(s?.terms_catalog),i=Fh(n,e.subscriptions,e.status);if(i)return void e.dispatch(qa(rx(t,i)));e.dispatch(qa(vx(t)))}catch(t){Z(t),e.dispatch(qa(Te))}else e.dispatch(qa(Te))}componentDidMount(){this.mount()}render(){return null}}hX.displayName="VODExternalMovieWatch";const mX=ue((0,l.Ng)((e,t)=>{const s=cX(t.params);return{isVODEligible:mh(e),status:Sh(e,rh.nl,s),subscriptions:Th(e)}})(hX)),gX=e=>e.id;var yX=s(5434);const _X=e=>x("directors"===e?437:435),EX=e=>(0,yX.A)(e,(e,t)=>e.map(({name:e})=>({initials:XK(e),name:e,role:_X(t)}))).flat(),vX=e=>mh(e)?e.vodLib.watchList:null,xX=(e,t,s)=>{if(!mh(e))return null;const n=vX(e);return Boolean(n[t]?.[s])},bX=e=>{var t;io({messages:[{title:Ac(),text:(t={showTitle:e.title},x(327,t)),textAlign:Dr,soul:"VOD_CONSUMPTION_ONLY_MODAL",image:{...XS({imageBaseUrl:e.imageBaseUrl,token:e.token,width:e.width,height:e.height})}}],options:{primaryOnly:!0},job:{text:P()}}),Un({type:"VOD_PURCHASE_HOW_TO_BUTTON",content_id:e.teasableId,content_id_type:ZA(e.teasableType)})},AX="VOD_DETAILS_CONTROL_OVERLAY_PLAY";const SX=e=>{if(!e.packageName)return null;const t=e.isSubscribed?(s={package_name:e.packageName},x(339,s)):(e=>x(340,e))({package_name:e.packageName});var s;return(0,pe.jsx)("div",{className:"DLHug","data-soul":"VOD_BRAND_MESSAGE",children:t})};const TX=e=>(0,pe.jsx)(rZ,{className:"JNkZL",label:Sc(),children:(0,pe.jsx)(ln,{color:Et,kind:pt,onClick:e.onClick,soul:"VOD_DETAILS_CONTROL_TRAILER_PLAY",icon:"icons-trailer",title:Sc()})});const CX=e=>{const t=e.isBookmarked?"icons-bookmark-remove":"icons-bookmark",s=e.isBookmarked?x(333):x(331);return(0,pe.jsx)(rZ,{className:"F2pnZ",label:s,children:(0,pe.jsx)(ln,{soul:"VOD_DETAILS_CONTROL_BOOKMARK",onClick:e.onClick,color:Et,kind:pt,"aria-pressed":e.isBookmarked,icon:t,title:s})})};const NX=e=>{const t=hl();return(0,pe.jsx)(rZ,{className:"tImus",label:t,children:(0,pe.jsx)(ln,{soul:"VOD_DETAILS_CONTROL_PLAY",onClick:e.onClick,color:_t,kind:pt,icon:Ct,title:t})})};const fX=e=>(0,pe.jsx)(rZ,{className:"ujTOs",labelClassName:"xMB3u",label:e.title,children:(0,pe.jsx)(ln,{className:"UCvJ3",soul:e.soul,onClick:e.onClick,color:e.primary?_t:Et,kind:dt,text:e.isCampaign?void 0:e.price,icon:e.isCampaign?$S:void 0})}),IX=e=>{const{campaign:t,season:s,...n}=e,i=Boolean(e.campaign);return(0,pe.jsx)(fX,{title:i?e.campaign.call_to_action:e.season?(r={season_no:e.season},x(363,r)):x(332),soul:i?"VOD_DETAILS_CONTROL_CAMPAIGN_EST":"VOD_DETAILS_CONTROL_EST",isCampaign:i,...n});var r},wX=e=>{const{campaign:t,season:s,...n}=e,i=Boolean(e.campaign);return(0,pe.jsx)(fX,{title:i?e.campaign.call_to_action:e.season?(r={season_no:e.season},x(364,r)):x(334),soul:i?"VOD_DETAILS_CONTROL_CAMPAIGN_TVOD":"VOD_DETAILS_CONTROL_TVOD",isCampaign:i,...n});var r};const OX=e=>(0,pe.jsx)(rZ,{className:"Ai5kB",label:x(335),children:(0,pe.jsx)(ln,{analyticsData:e.analyticsData,className:"EkBEd",color:_t,kind:dt,soul:"VOD_DETAILS_CONTROL_SVOD",onClick:()=>{const t=be({service_type:e.serviceType,redirect:e.path});t?window.open(t,"_blank"):io({messages:[{title:Bl(),text:Vl({subscription_name:e.subscriptionName}),soul:"VOD_DETAILS_MODAL_CONTROL_CONFIRM_SVOD"}],job:{text:ol()},options:{primaryOnly:!0}})},text:x(336)})});const DX=e=>(0,pe.jsx)(rZ,{className:"Dknvg",label:Ac(),children:(0,pe.jsx)(ln,{className:"ouXYN",soul:"VOD_DETAILS_CONTROL_CONSUMPTION_ONLY",onClick:e.onClick,color:Et,kind:dt,icon:sT,title:Ac()})}),RX=e=>Mh(e.termsCatalogList)?(0,pe.jsx)(DX,{onClick:e.onConsumptionOnly}):(0,pe.jsx)(pe.Fragment,{children:e.termsCatalogList.map((t,s)=>{const n=`${t.vod_type}-${s}`,i=0===s,r=t.terms[0],o=r?.subscription_service_type,a=(l=e.contentType,c=o,{action:"subscribe",category:"order",label:`${oS(l,Ch.B$)}_${c}`});var l,c;switch(t.vod_type){case Ch.jb:return e.termsCatalogList.find(e=>e.vod_type===Ch.B$)?null:(0,pe.jsx)(OX,{analyticsData:a,serviceType:o,path:e.path,subscriptionName:r?.subscription_name},n);case Ch.B$:return(0,pe.jsx)(OX,{analyticsData:a,serviceType:o,path:e.path,subscriptionName:r?.subscription_name},n);case Ch.sd:return(0,pe.jsx)(wX,{onClick:e.onOrderTVOD,price:r.price,primary:i,season:e.season,campaign:r.campaign},n);case Ch.vG:return(0,pe.jsx)(IX,{onClick:e.onOrderEST,price:r.price,primary:i,season:e.season,campaign:r.campaign},n);default:return null}})}),jX=e=>{const{isPlayable:t,contentType:s,onWatchContent:n,...i}=e;return e.isPlayable?e.contentType===rh.nl?(0,pe.jsx)(NX,{onClick:e.onWatchContent}):null:(0,pe.jsx)(RX,{contentType:s,...i})},kX=e=>{const t=(0,l.d4)(sZ);return(0,pe.jsxs)(eZ,{dim:e.dim,mainControls:(0,pe.jsx)(jX,{contentType:e.contentType,isPlayable:e.isPlayable,onConsumptionOnly:e.onConsumptionOnly,onOrderEST:e.onOrderEST,onOrderTVOD:e.onOrderTVOD,path:e.path,termsCatalogList:e.termsCatalogList,onWatchContent:e.onWatchContent,season:e.season}),children:[(0,pe.jsx)(CX,{isBookmarked:e.isBookmarked,onClick:e.onBookmarkToggle}),e.hasTeaser&&(0,pe.jsx)(TX,{onClick:e.onWatchTrailer}),t&&(0,pe.jsx)(oZ,{path:e.CMSPath})]})};const PX=e=>{const t=e.maxStars||5,s=100*e.rating/5,n=Array.from({length:t},(e,t)=>(0,pe.jsx)(ft,{id:JP,className:"CR5h3"},`star-${t}`));return(0,pe.jsxs)("div",{className:(0,Ye.A)("el3op",e.className),title:(i={count:e.rating},x(297,i)),"data-soul":"STARS_RATING",children:[n,(0,pe.jsx)("div",{style:{width:`${s}%`},className:"DvLz7",children:n})]});var i};const LX=e=>(0,pe.jsx)(PX,{className:"KnCuV",rating:e.rating});var MX="kmYtt";const UX=e=>{const t=(0,l.d4)(po),s=(0,l.d4)(QK),n=(0,l.d4)(KK),i=(0,l.d4)(ZK),r=Vw(e.captions,t),o=Vw(e.audio,t);return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(HQ,{genres:e.genres,year:e.year,duration:(0,Vt.H8)(e.duration),youthProtectionRating:e.youthProtectionRating,price:e.originalPrice,imdb:e.imdb,imdbLogoToken:s,imdbMaxRating:n,imdbTitle:i}),(0,pe.jsx)(PQ,{className:"ik88j",truncateScreen:e.truncateScreen,children:e.description||x(44)}),(0,pe.jsxs)("ul",{className:"lae01",children:[o&&(0,pe.jsxs)("li",{children:[(0,pe.jsx)("span",{className:MX,children:x(329)}),o]}),r&&(0,pe.jsxs)("li",{children:[(0,pe.jsx)("span",{className:MX,children:x(330)}),r]})]})]})};const VX=e=>{const t=[x(338)],s=!(0,me.A)(e.credits);
1return s&&t.push(x(43)),(0,pe.jsxs)(wQ,{className:"Oyjlv",canCollapse:e.canCollapse,tabs:t,children:[(0,pe.jsx)(UX,{audio:e.audio,captions:e.captions,description:e.description,duration:e.duration,genres:e.genres,year:e.year,imdb:e.imdb,youthProtectionRating:e.youthProtectionRating,truncateScreen:e.canCollapse?jQ:RQ,originalPrice:e.originalPrice}),s&&(0,pe.jsx)(QQ,{credits:e.credits})]},e.contentId)},BX=e=>{const t=x(372);return(0,pe.jsx)(mL,{className:e.className,iconId:Oi,text:t,title:t})};const FX=e=>{const t=x(370);return(0,pe.jsx)(mL,{className:e.className,iconClassName:"kDFe3",iconId:Ii,text:t,title:t})};const HX=e=>{const{ordered_until:t}=e.status,s=t-Vt.hY(),n=(i={duration:HP(s)},x(371,i));var i;return(0,pe.jsx)(mL,{iconClassName:"cHbbI",className:e.className,iconId:Ii,text:n,title:n})};const GX=e=>(0,pe.jsx)("div",{className:(0,Ye.A)(e.className,"YWLZF"),children:(0,pe.jsx)("span",{className:"vCSlS",children:e.date})}),qX=e=>{const{status:t,vod:s,state:n}=e;switch(n){case ah:return(0,pe.jsx)(HX,{className:e.className,status:t});case oh:return(0,pe.jsx)(FX,{className:e.className});case ch:return(0,pe.jsx)(GX,{className:e.className,date:s.release_date});case dh:return e.hideAvailableState?null:t?.expired?(0,pe.jsx)(BX,{className:e.className}):e.displayPrice?(0,pe.jsx)(pe.Fragment,{children:e.displayPrice}):null;default:return null}};var YX="cXkmx";const WX=e=>(0,pe.jsx)(AP,{className:"OVAoX",title:mc(),valueNow:e.position,valueMin:0,valueMax:(0,Vt.H8)(e.runtime),hideOnZero:!0});var zX,$X;let KX=($X=class extends Re.Component{getToken(){const{status:e,subscriptions:t,vod:s}=this.props;return Fh(kh(s.terms_catalog),t,e)}getOriginalPrice(){const{vod:e}=this.props;if(!e||!e.terms_catalog||Mh(e.terms_catalog))return"";const t=(s=e.terms_catalog,kh(s).find(e=>e.campaign));var s;return t?Ic({price:t.price}):""}watchMovie(){const{dispatch:e,vod:t}=this.props;e(ND({movie_id:t.id,term_token:this.getToken()})),rS(sS)}watchTrailer(){const{dispatch:e,vod:t}=this.props;e(ND({movie_id:t.id,term_token:t.trailer_token})),rS(nS)}orderTVOD(){const{dispatch:e,vod:t}=this.props,s=Ph(t.terms_catalog,Ch.sd);e(NS({teasableId:t.id,teasableType:rh.nl,title:t.title,termsCatalog:s,purchaseType:Ch.sd,...Mw(t)})),aS(rh.nl,Ch.sd,s?.terms?.length)}orderEST(){const{dispatch:e,vod:t}=this.props,s=Ph(t.terms_catalog,Ch.vG);e(NS({teasableId:t.id,teasableType:rh.nl,title:t.title,termsCatalog:s,purchaseType:Ch.vG,...Mw(t)})),aS(rh.nl,Ch.vG,s?.terms?.length)}onConsumptionOnly(){const{imageBaseUrl:e}=this.context,{vod:t}=this.props;bX({title:t.title,imageBaseUrl:e,token:t.image_token,...sQ,teasableId:t.id,teasableType:rh.nl})}toggleBookmark(){const{dispatch:e,inWatchList:t,vod:s}=this.props,n=e;n(t?Ub({teasable_id:s.id,teasable_type:rh.nl}):Mb({teasable_id:s.id,teasable_type:rh.nl})),lS(t?"removeVodMovie":"addVodMovie"),Un({type:Cn,content_id:s.id,content_id_type:$A,bookmark_state:t?vk:Ek})}render(){const{props:e}=this,{vod:t}=e,s=t.image_style===FU.Y,n=kh(t.terms_catalog),i=qh(n),r=Boolean(this.getToken()),o=((e,t)=>{const s=Bh(e,t);return s?s.subscription_name:e.find(e=>e.vod_type===Ch.B$)?.subscription_name||e.find(e=>e.vod_type===Ch.jb)?.subscription_name})(n,e.subscriptions),a=e.status?.position>0?e.status?.position:null,l=zh(e.status,e.subscriptions,t);return(0,pe.jsxs)(YK,{children:[(0,pe.jsxs)(JK,{children:[s&&(0,pe.jsx)(tT,{alt:t.title,imageToken:t.image_token}),(0,pe.jsx)(iQ,{alt:t.title,imageToken:t.image_token,blurred:s,soul:"VOD_DETAILS_IMAGE"}),(r||t.trailer_token)&&(0,pe.jsx)(ln,{className:(0,Ye.A)(YX,"yjwqh"),kind:pt,onClick:r?this.watchMovie:this.watchTrailer,title:hl(),soul:AX,icon:Ct})]}),(0,pe.jsxs)(WK,{children:[(0,pe.jsx)(oQ,{title:t.title,subtitle:t.subtitle,withOverlap:!s,children:t.brand&&(0,pe.jsx)(aQ,{alt:t.brand.title,logoToken:t.brand.logo_token})}),r&&a&&(0,pe.jsx)(WX,{position:a,runtime:t.runtime}),!r&&t.review_rating>0&&(0,pe.jsx)(LX,{rating:t.review_rating}),(0,pe.jsx)(qX,{status:e.status,vod:e.vod,state:l,hideAvailableState:!0,className:"VaLtC",displayPrice:e.vod.display_price}),i&&(0,pe.jsx)(SX,{isSubscribed:r,packageName:o}),(0,pe.jsx)(kX,{contentType:rh.nl,dim:!0,hasTeaser:Boolean(t.trailer_token),CMSPath:`vod/movies/${t.id}`,isPlayable:r,isBookmarked:e.inWatchList,onBookmarkToggle:this.toggleBookmark,onConsumptionOnly:this.onConsumptionOnly,onOrderEST:this.orderEST,onOrderTVOD:this.orderTVOD,onWatchContent:this.watchMovie,onWatchTrailer:this.watchTrailer,path:e.path,termsCatalogList:t.terms_catalog}),(0,pe.jsx)(VX,{contentId:t.id,credits:EX(t.credits),description:t.description,genres:t.genres,imdb:t.ratings?.imdb,year:t.year,duration:t.runtime,youthProtectionRating:t.age_rating,audio:t.video_audio_languages,captions:t.video_caption_languages,originalPrice
1:this.getOriginalPrice()})]})]})}},$X.displayName="DetailsBody",$X.contextType=pa,zX=$X,(0,De.A)(zX.prototype,"watchMovie",[je],Object.getOwnPropertyDescriptor(zX.prototype,"watchMovie"),zX.prototype),(0,De.A)(zX.prototype,"watchTrailer",[je],Object.getOwnPropertyDescriptor(zX.prototype,"watchTrailer"),zX.prototype),(0,De.A)(zX.prototype,"orderTVOD",[je],Object.getOwnPropertyDescriptor(zX.prototype,"orderTVOD"),zX.prototype),(0,De.A)(zX.prototype,"orderEST",[je],Object.getOwnPropertyDescriptor(zX.prototype,"orderEST"),zX.prototype),(0,De.A)(zX.prototype,"onConsumptionOnly",[je],Object.getOwnPropertyDescriptor(zX.prototype,"onConsumptionOnly"),zX.prototype),(0,De.A)(zX.prototype,"toggleBookmark",[je],Object.getOwnPropertyDescriptor(zX.prototype,"toggleBookmark"),zX.prototype),zX);const QX=(0,l.Ng)((e,{vod:t})=>({status:Sh(e,t.type,t.id),inWatchList:xX(e,t.type,t.id),subscriptions:Th(e),path:Oa(e)}))(KX);class ZX extends Re.Component{constructor(...e){super(...e),this.state={movie:null}}isReady(){return Boolean(this.state.movie)}setAnalytics(){os({title:"vodContentInfo",path:location.pathname+location.search}),this.props.previousPath||as({action:"open",category:"vodContentInfo",label:"link"}),Ud()}async fetchVOD(){if(!this.props.isVODEligible)return void this.props.dispatch(qa(Te));const e=gX(this.props.params);try{const t=await jb.wH({movie_id:e});this.setState({movie:t}),this.setAnalytics()}catch(e){Z(e),this.props.dispatch(qa(Te))}}componentDidMount(){this.fetchVOD()}componentDidUpdate(e){gX(e.params)!==gX(this.props.params)&&this.fetchVOD()}render(){return(0,pe.jsx)(HK,{children:this.isReady()?(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(QX,{vod:this.state.movie}),this.props.hasDisplayAds&&(0,pe.jsx)(AQ,{})]}):(0,pe.jsx)(Ke,{centered:!0,delayed:!0})})}}ZX.displayName="VODMovieDetails";const XX=(0,l.Ng)(e=>({isVODEligible:mh(e),hasDisplayAds:Oy(e),previousPath:Ra(e)}))(ue(ZX));const JX=e=>(0,pe.jsx)(qs,{className:"vM4Zp",contentClassName:"NOMIN",kind:dt,href:`#${e.id}`,onClick:()=>{e.scroll&&setTimeout(()=>{VU(document.getElementById(e.id),{alignY:LU,alwaysScrollY:!0})},1)},soul:e.soul,children:e.children}),eJ=()=>{const e=(0,l.d4)(qy),t=(0,l.d4)(cp),s=(0,l.d4)(ZL),n=(0,l.d4)(cd),i=(0,l.d4)(dd),r=t&&s||n||i;return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(JX,{id:Mz,soul:"SKIP_TO_SEARCH",children:x(296)}),!e&&(0,pe.jsx)(JX,{id:QG,soul:"SKIP_TO_MEDIA",children:x(294)}),r&&(0,pe.jsx)(JX,{id:wW,soul:"SKIP_TO_PAGE_NAVIGATION",children:x(295)}),(0,pe.jsx)(JX,{id:PW,soul:"SKIP_TO_MAIN_CONTENT",scroll:!0,children:x(293)})]})},tJ="LAST_WATCHED_CDA",sJ=()=>{const e=(0,l.wA)(),t=ae(tJ),s=(0,l.d4)(e=>t?kp(e,t):null);return(0,Re.useEffect)(()=>{const t=s?zv(s):Hc;e(qa(t))},[s,e]),null};const nJ=()=>(0,pe.jsx)("aside",{"data-soul":"SHOP_UPGRADE_BANNER",className:"BRvKI",children:(0,pe.jsx)(qs,{className:"fiBjq",contentClassName:"iJqfv",soul:"SHOP_UPGRADE_BANNER_LINK",href:Ee(),link:!0,onClick:()=>{vA("banner"),as({action:"openShop",category:"shopReference",label:"shopUpgradeBanner"})},children:x(7)})}),iJ="MEDIA_WRAPPER_CHANGED",rJ=e=>({type:iJ,wrapper:e});class oJ extends Re.PureComponent{constructor(...e){super(...e),this.canRestoreMenu=!0}componentDidUpdate(){this.canRestoreMenu&&this.props.isMenuSizeExpanded&&(this.canRestoreMenu=!1)}componentDidMount(){const{dispatch:e}=this.props;e(rJ(ww)),e(nO({view:jd})),e(H$(Zy))}componentWillUnmount(){const{dispatch:e}=this.props;e(rJ(null)),e(nO({view:Pd})),this.canRestoreMenu&&e((e,t)=>{const s=t();if(l_(s))return;const{current:n,previous:i}=t_(s),r=n.visible!==i.visible,o=n.size!==i.size;(r||o)&&(e({type:V$,direction:i_(s),size:i.size,visible:i.visible}),r&&i.visible&&Un({type:wn,user_interaction:fN(s)}))})}render(){return this.props.isMediaWrapperCinema?(0,pe.jsx)(de.sv,{}):null}}oJ.displayName="MediaWrapperCinema";const aJ=(0,l.Ng)(e=>({isMediaWrapperCinema:Rw(e),isMenuSizeExpanded:o_(e)}))(oJ);class lJ extends Re.PureComponent{componentDidMount(){const{props:e}=this;e.dispatch(iB()),e.dispatch(lB()),(e.isModeLive||e.isModeTimeshift)&&e.streamCDA===e.routeCDA||e.dispatch(bI({cid:e.routeCID}))}componentDidUpdate(e){const{props:t}=this,{routeCDA:s}=t;if(Oj(s,e.routeCDA)){const{dispatch:e}=t;e(E_({title:t.channelTitle})),t.streamCDA!==s&&e(bI({cid:t.routeCID}))}}componentWillUnmount(){this.props.dispatch(rB())}render(){return null}}lJ.displayName="LivePage";const cJ=qK((0,l.Ng)(e=>({streamCDA:Tm(e),channelTitle:Nm(e),isModeLive:Kp(e),isModeTimeshift:Qp(e)}))(lJ));const dJ=e=>Number(e.pid),pJ=e=>e[Fv],uJ=e=>e[Hv],hJ=e=>e[Gv],mJ=e=>e[qv],gJ=e=>e[Yv];class yJ extends Re.Component{componentDidMount(){const{cda:e,dis
1patch:t,isModeReplay:s,pid:n,routeCDA:i}=this.props;t(iB()),t(lB());const r=dJ(this.props.params);s&&e===i&&n===r||t(xw({pid:r}))}componentDidUpdate(e){const t=dJ(this.props.params);if(Oj(t,dJ(e.params))){const{dispatch:e,pid:s,programTitle:n}=this.props;e(E_({title:n})),s&&s!==t&&e(xw({pid:t}))}}componentWillUnmount(){this.props.dispatch(rB())}render(){return null}}yJ.displayName="ReplayPage";const _J=qK((0,l.Ng)(e=>({cda:Tm(e),channelTitle:Nm(e),isModeReplay:Zp(e),pid:Zu(e),programTitle:Xu(e)}))(yJ));class EJ extends Re.Component{componentDidMount(){const{dispatch:e,hasRecordingsFunnel:t}=this.props;t||e(FI());const{isModeRecording:s,isActive:n,rid:i}=this.props,r=(o=this.props.params,Number(o.rid));var o;n&&s&&i===r||e(zI({rid:r}))}render(){return null}}EJ.displayName="RecordingPage";const vJ=(0,l.Ng)(e=>({hasRecordingsFunnel:b$(e),isActive:py(e),isModeRecording:Xp(e),rid:sh(e)}))(ue(EJ));class xJ extends Re.Component{componentDidMount(){const{props:e}=this,{params:t}=e;e.isActive||!pJ(t)?!e.isActive&&uJ(t)&&e.dispatch(ID({series_id:uJ(t),season_id:hJ(t),episode_id:mJ(t),term_token:gJ(t)})):e.dispatch(ND({movie_id:pJ(t),term_token:gJ(t)}))}render(){return null}}xJ.displayName="VODPage";const bJ=(0,l.Ng)(e=>({isActive:py(e)}))(ue(xJ)),AJ=e=>kp(e,(e=>{const t=ka(e)[vC];return of(e,t)})(e)),SJ=e=>{const t=ka(e)[xC];return t?Number(t):void 0},TJ=e=>{const t=ka(e)[bC];return t?Number(t):void 0},CJ=e=>ka(e)[AC],NJ=e=>ka(e)[SC],fJ=e=>ka(e)[TC],IJ=e=>ka(e)[CC],wJ=e=>ka(e)[NC];class OJ extends Re.PureComponent{componentDidMount(){const{props:e}=this,{dispatch:t}=e;if(t(rJ(Ow)),e.isActive)return void t(aO());const{cid:s,pid:n,rid:i,movie_id:r,series_id:o,episode_id:a,season_id:l,term_token:c}=e;s&&n?t(xw({pid:n})):s?t(bI({cid:s})):i?t(zI({rid:i})):r&&c?t(ND({movie_id:r,term_token:c})):o&&c&&t(ID({series_id:o,season_id:l,episode_id:a,term_token:c}))}componentWillUnmount(){this.props.dispatch(rJ(null)),this.props.dispatch(nO({view:Pd}))}render(){return this.props.isMediaWrapperSplit?(0,pe.jsx)(de.sv,{}):null}}OJ.displayName="MediaWrapperSplit";const DJ=(0,l.Ng)(e=>({cid:AJ(e),pid:SJ(e),rid:TJ(e),movie_id:CJ(e),series_id:NJ(e),season_id:fJ(e),episode_id:IJ(e),term_token:wJ(e),isActive:kw(e),isMediaViewSplit:Yy(e),isMediaWrapperSplit:jw(e)}))(OJ),RJ="CHANNELS_VIEW",jJ=(e,t)=>s=>{const[n,i]=(0,Re.useState)(((e,t)=>{const s=ae(e);return Rt(a,s)?s:t})(t.key,t.defaultView)),r=(0,Re.useCallback)(e=>{((e,t)=>{oe(e,t)})(t.key,e),i(e)},[]),o=s;return(0,pe.jsx)(e,{changeView:r,view:n,...o})};var kJ="tfdjj",PJ="qdYcE",LJ="RVKzx",MJ="AbhBR",UJ="i3hR_",VJ="BIrys",BJ="GOmsD",FJ="PFrH5";const HJ=e=>(0,pe.jsxs)("div",{id:e.id,className:(0,Ye.A)("mF6Tc",e.className,{[kJ]:e.arrow?.includes("bottom"),[PJ]:e.arrow?.includes("center"),[LJ]:e.inverse,[MJ]:e.arrow?.includes("left"),[UJ]:e.arrow?.includes("right"),[VJ]:e.arrow?.includes("top"),[BJ]:Boolean(e.arrow),[FJ]:e.onClose}),role:"tooltip","data-soul":e.soul||"TOOLTIP",children:[e.iconId&&(0,pe.jsx)(ft,{id:e.iconId,className:"Wm1G6"}),(0,pe.jsxs)("div",{children:[e.title&&(0,pe.jsx)("div",{className:"sKo4x",children:e.title}),e.children]}),e.onClose&&(0,pe.jsx)(Ci,{inverse:!e.inverse,className:"wup4L",soul:"TOOLTIP_CLOSE",onClick:e.onClose})]}),GJ="LINEUP_ONBOARDING_UPDATED",qJ=(e,t=!0)=>({type:GJ,data:e,setFavoritesOnboarding:t}),YJ=e=>e.lineup.onboarding,WJ=e=>YJ(e).managed,zJ=e=>!(e=>YJ(e).visited)(e)&&Up(e)&&!_p(e),$J=e=>!(e=>YJ(e).onboarded)(e)&&Up(e)&&yp(e)&&qy(e),KJ=(0,Re.memo)(e=>(0,pe.jsx)(fB,{className:e.className,sideDim:e.sideDim,inTransparent:e.inTransparent,soul:e.soul,scrollSubject:"[aria-current]",children:e.collection.map(t=>{const{pathname:s}=t;return(0,pe.jsx)(c.k2,{onClick:t.onClick,"data-soul":t.soul,className:({isActive:e})=>(0,Ye.A)(AB,t.className,{[SB]:e}),to:{pathname:s,search:e.search},end:t.exact,ref:t.reference,tabIndex:t.tabIndex,children:t.text},s)})}));const QJ=e=>{const t=(0,l.wA)(),s=(0,l.d4)(iv),n=(0,l.d4)(nv),i=(()=>{const[e,t]=(0,Re.useState)({height:window.innerHeight,width:window.innerWidth});return(0,Re.useEffect)(()=>{const e=()=>{t({height:window.innerHeight,width:window.innerWidth})};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),e})(),{onClick:r,onRefClick:o}=e,a=e.reference?.current,c=()=>{r?r():t(av(!1))},d=(0,Re.useCallback)(()=>{o?o():t(av(!1))},[t,o]);if((0,Re.useEffect)(()=>{a&&(s?a.addEventListener("click",d):a.removeEventListener("click",d))},[t,a,s,d]),(0,Re.useEffect)(()=>(t(av(!0)),()=>{t(av(!1)),a?.removeEventListener("click",d)}),[t,d]),!a||!n)return null;const p=a.getBoundingClientRect(),u=p.x+p.width/2,h=p.y+p.height/2,m=p.height,g=Math.max(p.width,p.height),y=Ov(p.left,i.width),_=Ov(p.right,i.width),E=Ov(p.top,i.height),v=Ov(p.bottom,i.height);return(0,li.createPortal)((0,pe.jsxs)("div",{className:"da8dY",style:{backgroundImage:`radial-gradient(circle at ${u}px ${h}px, transparent ${m}px, transparent ${g}px, var(--hue__0) ${e.dim||50}%)`,clipPath:`polygon(0% 0%, 0% 100%, ${y} 100%, ${y} ${E}, ${_} ${E}, ${_} ${v}, ${y} ${v}, ${y} 100%, 100% 100%, 100% 0%)`},onClick:e=>{e.target===e.currentTarget&&c()},role:"presentation",children:[(0,pe.jsx)("div",{className:"Up5IO",style:{to
1p:p.top,left:p.left,width:p.width,height:p.height},children:e.children}),(0,pe.jsx)(Cr,{exclusive:!0,keyMap:{[sr]:c}})]}),document.getElementById(lv))};const ZJ=e=>{const{currentStep:t,totalSteps:s}=e;return(0,pe.jsxs)("div",{className:"Tu8PU",children:[(0,pe.jsx)("span",{className:"zmqh7",children:(n={currentStep:t,totalSteps:s},x(167,n))}),e.onBack&&(0,pe.jsx)(ln,{kind:dt,soul:"ONBOARDING_STEP_BACK",className:"rCcPC",contentClassName:"gDsgQ",onClick:e.onBack,text:x(168)}),(0,pe.jsx)(ln,{kind:ut,onClick:e.onConfirm,soul:"ONBOARDING_STEP_CONFIRM",color:_t,text:x(t<s?170:169)})]});var n};var XJ,JJ="QIP4m",e0="rfIyi";let t0=(XJ=class extends Re.Component{constructor(...e){super(...e),this.state={currentStepIndex:0,isDone:!1}}trackOnboardingStep(){this.props.trackingCategory&&as({action:`show_onboarding_step_${this.state.currentStepIndex+1}`,category:this.props.trackingCategory,label:"onboarding"})}onComplete(){this.props.onComplete(),this.props.trackingCategory&&as({action:"finish_onboarding",category:this.props.trackingCategory,label:"onboarding"})}componentDidMount(){this.trackOnboardingStep()}getCurrentStepConfig(){return this.props.steps[this.state.currentStepIndex]}onNextStep(){if(this.state.currentStepIndex+1===this.props.steps.length)return this.setState({isDone:!0}),void this.onComplete();this.setState({currentStepIndex:this.state.currentStepIndex+1},this.trackOnboardingStep)}onPreviousStep(){this.setState({currentStepIndex:this.state.currentStepIndex-1},this.trackOnboardingStep)}getTotalSteps(){return this.props.steps.length}hasMultipleSteps(){return this.getTotalSteps()>1}render(){if(this.state.isDone)return null;const e=this.getCurrentStepConfig();return e?(0,pe.jsx)(QJ,{dim:this.props.dim,reference:e.reference,onClick:this.onComplete,onRefClick:this.onComplete,children:(0,pe.jsxs)(HJ,{...e.toolTipProps,onClose:this.onComplete,className:(0,Ye.A)("rpMYy",{[e0]:this.hasMultipleSteps()},e.toolTipProps.className),children:[(0,pe.jsx)("p",{className:(0,Ye.A)({[JJ]:this.hasMultipleSteps()}),children:e.content}),this.hasMultipleSteps()&&(0,pe.jsx)(ZJ,{currentStep:this.state.currentStepIndex+1,totalSteps:this.getTotalSteps(),onConfirm:this.onNextStep,onBack:this.state.currentStepIndex>0&&this.onPreviousStep})]})}):null}},(0,De.A)(XJ.prototype,"onComplete",[je],Object.getOwnPropertyDescriptor(XJ.prototype,"onComplete"),XJ.prototype),(0,De.A)(XJ.prototype,"onNextStep",[je],Object.getOwnPropertyDescriptor(XJ.prototype,"onNextStep"),XJ.prototype),(0,De.A)(XJ.prototype,"onPreviousStep",[je],Object.getOwnPropertyDescriptor(XJ.prototype,"onPreviousStep"),XJ.prototype),XJ);var s0="Dkyop";const n0=({path:e,search:t,groups:s})=>{const n=(0,l.d4)(zJ),i=(0,l.d4)($J),r=(0,l.wA)(),o=(0,Re.useRef)(void 0),a=(0,l.d4)(yp),c=(0,l.d4)(_p),d=(0,l.d4)(gp),p=()=>{as({action:"clickTab",label:e})},u=()=>{r(qJ({onboarded:!0}))};return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(KJ,{collection:[{pathname:e,text:_l(),soul:"LINEUP_NAV_ITEM_ALL",exact:!0,onClick:p,tabIndex:a?-1:0},{pathname:`${e}/${mp}`,text:El(),soul:"LINEUP_NAV_ITEM_FAVORITES",className:(0,Ye.A)({[s0]:n}),onClick:()=>{p(),i&&u(),n&&r(qJ({visited:!0}))},reference:o,tabIndex:c?-1:0},...s.map(t=>{const s=t.alias_id===d;return{pathname:`${e}/${t.alias_id}`,text:t.name,soul:"LINEUP_NAV_ITEM",onClick:p,tabIndex:s?-1:0}})],soul:"LINEUP_NAVIGATION",search:t,sideDim:!0}),i&&(0,pe.jsx)(t0,{onComplete:u,steps:[{content:x(69),reference:o,toolTipProps:{id:"FAVORITES_ONBOARDING",arrow:"top left",className:"gagLx",title:x(70)}}]})]})},i0="icons-list";var r0;let o0=(r0=class extends Re.PureComponent{isListView(){return this.props.view===gk}toggleView(){const{changeView:e}=this.props;this.isListView()?e(mk):e(gk)}render(){const e=this.isListView();return(0,pe.jsx)("div",{className:(0,Ye.A)("wKgZk",this.props.className),children:(0,pe.jsx)(ln,{className:"ipfel",onClick:this.toggleView,soul:"CONTROL_VIEW",title:x(e?20:21),"data-view":this.props.view,icon:e?"icons-th":i0,iconClassName:"_7L_cQ"})})}},(0,De.A)(r0.prototype,"toggleView",[je],Object.getOwnPropertyDescriptor(r0.prototype,"toggleView"),r0.prototype),r0);const a0=e=>(0,li.createPortal)(e.children,document.getElementById(wW));var l0="AL7Dm";const c0=e=>(0,pe.jsx)(a0,{children:(0,pe.jsx)("div",{className:(0,Ye.A)("IWyk6",e.className,{[l0]:e.hasSecondRow}),children:e.children})});const d0=e=>(0,pe.jsxs)(c0,{className:"iI9lx",children:[(0,pe.jsx)(n0,{path:e.path,search:e.search,groups:e.groups}),(0,pe.jsx)(o0,{changeView:e.changeView,view:e.view})]});var p0;const u0={animation:300,ghostClass:"NUt4O",chosenClass:"cEntl",delay:150,forceFallback:!0,supportPointer:!1};let h0=(p0=class extends Re.Component{constructor(...e){super(...e),this.sortable=null,this.helperRef=(0,Re.createRef)()}onSort(e){const{props:t}=this;t.onSort&&t.onSort(e),t.onListUpdated&&t.onListUpdated(this.sortable.toArray())}async boot(){const{default:e}=await s.e(554).then(s.bind(s,246));this.sortable=new e(this.getContainerElement(),{...u0,...this.props,onSort:this.onSort})}clean(){this.sortable&&(this.sortable.destroy(),this.sortable=null)}getContainerElement(){return this.helperRef.current.previousSibling}componentDidMount(){this.boot()}componentWillUnmount(){this.clean()}render(){return(0,pe.jsxs)(pe.Fragment,{children:[this.props.children,(0,pe.jsx)("span",{ref:this.helperRef})]})}},(0,De.A)(p0.prototype,"onSort",[je],Object.getOwnPropertyDescriptor(p0.prototype,"onSort"),p0.prototype),p0);const m0=e=>(0,pe.jsx)("aside",{className:"SnekU",children:(0,pe.jsx)("div",{className:"Tud_
1w",children:e.children})});const g0=e=>(0,pe.jsx)("div",{className:(0,Ye.A)("ZdEoh",e.className),children:e.children}),y0="SORT_CONTROL",_0="FAVORITES_MANAGE";var E0,v0;let x0=(v0=class extends Re.Component{constructor(...e){super(...e),this.state={inSort:!1},this.reference=(0,Re.createRef)()}closeTooltip(){this.props.dispatch(qJ({managed:!0}))}onListUpdated(e){this.props.dispatch(Qb(e))}enableSort(e){this.setState({inSort:!0}),e&&this.closeTooltip()}disableSort(){this.setState({inSort:!1})}render(){const{props:e,state:t}=this,s=!e.managed,n=t.inSort?x(28):al();return(0,pe.jsxs)("div",{className:"ybcka",children:[t.inSort?(0,pe.jsx)(h0,{onListUpdated:this.onListUpdated,dataIdAttr:"data-id",children:(0,Re.cloneElement)(e.children,{inSort:t.inSort})}):e.children,(0,pe.jsx)(m0,{children:(0,pe.jsxs)(g0,{children:[(0,pe.jsx)(ln,{id:y0,className:"Sdrdn",onClick:()=>{t.inSort?this.disableSort():this.enableSort(s)},soul:y0,active:t.inSort,title:n,color:mt,kind:ht,reference:this.reference,"aria-labelledby":_0,tabIndex:-1,text:n,icon:t.inSort?Ii:nZ}),s&&(0,pe.jsx)(QJ,{reference:this.reference,dim:85,onClick:this.closeTooltip,onRefClick:this.closeTooltip,children:(0,pe.jsx)(HJ,{id:_0,className:"ysAKJ",title:x(74),iconId:i0,arrow:"bottom center",onClose:this.closeTooltip,children:x(73)})})]})}),t.inSort&&(0,pe.jsx)(Cr,{keyMap:{[sr]:this.disableSort}})]})}},v0.displayName="DragList",E0=v0,(0,De.A)(E0.prototype,"closeTooltip",[je],Object.getOwnPropertyDescriptor(E0.prototype,"closeTooltip"),E0.prototype),(0,De.A)(E0.prototype,"onListUpdated",[je],Object.getOwnPropertyDescriptor(E0.prototype,"onListUpdated"),E0.prototype),(0,De.A)(E0.prototype,"enableSort",[je],Object.getOwnPropertyDescriptor(E0.prototype,"enableSort"),E0.prototype),(0,De.A)(E0.prototype,"disableSort",[je],Object.getOwnPropertyDescriptor(E0.prototype,"disableSort"),E0.prototype),E0);const b0=(0,l.Ng)(e=>({managed:WJ(e)}))(x0),A0="icons-arrow-thin-down";var S0="qY5pi";const T0=e=>(0,pe.jsx)(ln,{className:(0,Ye.A)(jk,Pk,{[kk]:e.dark}),onClick:()=>{e.isPicked?e.unpick(e.pickId):e.pick(e.pickId)},soul:"TEASER_OVERLAY_PICK","aria-pressed":e.isPicked,icon:e.isPicked?Ii:void 0,iconClassName:(0,Ye.A)({[S0]:e.isPicked}),title:gc({title:e.title})}),C0=()=>(0,pe.jsx)("div",{className:(0,Ye.A)(jk,kk)});const N0=e=>{const[t,s]=(0,Re.useState)(!1);return(0,pe.jsxs)("li",{title:e.title,className:"Bfeez",children:[(0,pe.jsx)(KT,{alt:e.title,className:"svQnJ",token:e.logoToken,format:WT.w1,format2x:WT.eB,loading:Ks,width:70,height:40,inverse:!0}),(0,pe.jsx)(T0,{isPicked:t,pick:()=>{s(!0),e.setSelectedChannels([...new Set([...e.selectedChannels,e.cid])])},pickId:e.id,unpick:()=>{s(!1),e.setSelectedChannels(e.selectedChannels.filter(t=>t!==e.cid))},title:e.title}),t&&(0,pe.jsx)(C0,{})]})};var f0="dmkjb",I0="koS8O";const w0=()=>{const e=(0,l.d4)(Dp),t=(0,l.wA)(),[s,n]=(0,Re.useState)(!1),[i,r]=(0,Re.useState)([]);return(0,pe.jsxs)(S_,{className:"y3Btk",vertical:st,soul:"FAVORITES_ONBOARDING_PAGE",children:[(0,pe.jsx)("h2",{className:"b43cf",children:x(72)}),(0,pe.jsx)("p",{className:"RCene",children:x(71)}),(0,pe.jsx)("ul",{className:(0,Ye.A)("qURUt",{[f0]:!s}),children:e.slice(0,s?e.length:15).map((e,t)=>(0,pe.jsx)(N0,{cid:e.cid,id:t,title:e.title,logoToken:Sp(e).logo_token,selectedChannels:i,setSelectedChannels:r},e.cid))}),!s&&(0,pe.jsx)(ln,{contentClassName:"IRAPs",soul:"FAVORITES_SHOW_MORE_CONTROL",kind:dt,onClick:()=>{n(!0)},text:x(68),icon:A0,iconClassName:"VL66E",reverse:!0}),(0,pe.jsx)("div",{className:(0,Ye.A)("n6rqq",{[I0]:s}),children:(0,pe.jsx)(ln,{className:"z4BMs",contentClassName:"OupG_",soul:"FAVORITES_PROCEED_CONTROL",kind:dt,color:_t,disabled:!i.length,onClick:async()=>{try{await t(Qb(i)),Wn({text:x(66),soul:"FAVORITES_ADD_SUCCESS"}),as({action:"addFavoritesOnboarding"}),i.forEach(()=>{as({action:"addChannel",category:"manageFavorites",label:"favorites_onboarding"})})}catch(e){Z(e),Yn({text:yl(),soul:"FAVORITES_ADD_FAILED"})}},text:x(67)})})]})},O0=e=>(0,l.d4)(Up)?(0,pe.jsx)(w0,{}):e.draggable?(0,pe.jsx)(b0,{children:e.children}):e.children,D0=()=>{document.documentElement.scrollTop=0},R0=e=>({group:gp(e),groupAliases:Mp(e)}),j0=(e,t)=>{class s extends Re.Component{constructor(...e){super(...e),this.isInitialRender=!0}getRouteGroup(e,t=!0){const s=e.params[Fc];return!s&&t?hp:s}getGroups(){const e=Object.keys(this.props.groupAliases);return[mp,...e]}updateGroup(e){this.props.dispatch(JV(e))}shouldComponentUpdate(e){const{props:t}=this,s=this.getRouteGroup(t),n=this.getRouteGroup(e);return s===n||n===e.group||(this.updateGroup(n),!1)}componentDidUpdate(e){this.props.group!==e.group&&D0()}componentDidMount(){const{props:e}=this,{dispatch:s}=e,n=this.getRouteGroup(e,!1);D0(),n?this.getGroups().includes(n)?e.group!==n&&this.updateGroup(n):s(qa({path:t,preserve:!0})):e.group!==hp&&this.updateGroup(hp)}render(){const{props:t,isInitialRender:s}=this;if(this.isInitialRender=!1,s&&t.group!==this.getRouteGroup(t))return null;const n=t;return(0,pe.jsx)(e,{...n})}}return s.displayName=e.displayName||e.name,ue((0,l.Ng)(R0)(s))};class k0 extends Re.PureComponent{componentDidMount(){this.props.dispatch(E_({title:Il(),description:x(188),funnel:Kc.CHANNELS})),Ud()}componentDidUpdate(e){e.group!==this.props.group&&Ud()}isFavoritesGroup(){return this.props.group===mp}renderChannels(){const{props:e}=this,t=(0,pe.jsx)($V,{view:e.view,dataContext:zt,hasUpcomingPrograms:!0});return this.isFavoritesGroup()?(0,pe.jsx)(O0,{draggable:!0,children:t}):t}render(){const{props:e}=this;return(0,pe.jsxs)(S_,{soul:"CHANNELS_PAGE",children:[(0,pe.jsx)(d0,{path:Hc,search:e.location.search,changeView:e.changeView,view:e.view,groups:e.groups}),this.renderChannels(),e.hasDisplayAds&&!this.isFavoritesGroup()&&(0,pe.jsx)(AQ,{})]})}}k0.displayName="ChannelsPage";const P0=j0(jJ((0,l.Ng)(e=>({groups:Lp(e),hasDisplayAds:Oy(e)}))(k0),{key:RJ,defaultView:gk}),Hc);class L0{constructor(){this.timerID=null,this.subscribers=new Set}subscribe(e){const{subscribers:t}=this;t.size||this.scheduleUpdate(),t.add(e)}unsubscribe(e){const{subscribers:t}=this;this.subscribers.delete(e),t.size||this.stopUpdates()}scheduleUpdate(){this.timerID=setTimeout(()=>{this.timerID=null,this.scheduleUpdate(),this.notifySubscribers()},(0,Vt.ho)())}stopUpdates(){this.timerID&&(clearTimeout(this.timerID),this.timerID=null)}notifySubscribers(){const e=(0,Vt.hY)();
1this.subscribers.forEach(t=>{t(e)})}static getInstance(){return this.instance_||(this.instance_=new L0),this.instance_}}L0.instance_=void 0;const M0="GUIDE_POSITION_UPDATED",U0=e=>e.guide,V0=e=>U0(e).position,B0=e=>U0(e).day,F0={DE:{primary:72900,secondary:79200},default:{primary:72e3,secondary:79200}},H0=e=>Math.max((e=>ph(e).replay_days)(e),7),G0=320;var q0=s(6010),Y0=s(1730);const W0=()=>{const e=document.documentElement.getBoundingClientRect();return{x:-e.left,y:-e.top}},z0=e=>{let t;t=e instanceof Date?e:new Date((0,Vt.vO)(e));return`time-${t.getHours()}${t.getMinutes()}`},$0=e=>e+4*Vt.pO,K0=e=>$0(e)+24*Vt.pO,Q0=()=>q0._(Y0.o(Date.now()-4*Vt.W_)),Z0=e=>e===Q0(),X0=e=>e===rw?"upcoming":(e=>e===dw)(e)?"live":(e=>{switch(e){case lw:case pw:return!0;default:return!1}})(e)?"recording":(e=>{switch(e){case cw:case uw:return!0;default:return!1}})(e)?"past_replay":"past_noreplay",J0="ACTIVE_CHANNEL";var e1="MZsXI";class t1 extends Re.PureComponent{constructor(...e){super(...e),this.elementRef=(0,Re.createRef)(),this.onClick=wt(()=>{const{props:e}=this;e.watchLive(e.channel.cid)},1e3)}render(){const{props:e}=this,t=e.channel?.qualities[0]?.logo_token;return(0,pe.jsxs)("button",{className:(0,Ye.A)("RAGRH",{[e1]:e.isHighlighted}),title:yc({title:e.channel.title}),onClick:this.onClick,ref:this.elementRef,id:this.props.isHighlighted?J0:void 0,"data-soul":"GUIDE_CHANNEL",children:[(0,pe.jsx)(KT,{alt:e.channel.title,token:t,format:WT.w1,format2x:WT.eB,width:70,height:40,loading:Ks}),e.isBlocked?(0,pe.jsx)(cL,{}):e.isFavorite?(0,pe.jsx)(lL,{}):null]})}}const s1=e=>(0,pe.jsx)("div",{className:"p3M91","data-context":Kt,children:e.channels.map(t=>{const{cid:s}=t;return(0,pe.jsx)(t1,{channel:t,isHighlighted:e.streamCID===s,isFavorite:e.favoritesList.includes(s),isBlocked:Np(t),watchLive:e.watchLive},s)})});var n1,i1="wz6Zb",r1="r12hz",o1="ViaHK",a1="VHOzZ",l1="aWeSf",c1="qOVhy",d1="sXWIv",p1="huiHW",u1="oSDAI";let h1=(n1=class extends Re.Component{constructor(...e){super(...e),this.state={now:(0,Vt.hY)()}}componentDidMount(){L0.getInstance().subscribe(this.onNextMinute)}componentWillUnmount(){L0.getInstance().unsubscribe(this.onNextMinute)}onNextMinute(){this.setState({now:(0,Vt.hY)()})}render(){return(0,pe.jsx)(AP,{...this.props,valueNow:this.state.now})}},(0,De.A)(n1.prototype,"onNextMinute",[je],Object.getOwnPropertyDescriptor(n1.prototype,"onNextMinute"),n1.prototype),n1);const m1=e=>(0,pe.jsx)(mL,{className:e.className,iconId:mC});var g1="pXMOx",y1="vmDlq",_1="EBaG8";const E1=e=>{const t=(0,de.zy)();return(0,pe.jsx)(c.N_,{className:(0,Ye.A)("YJtXC",{[y1]:e.isStreaming,[g1]:e.isPlayable,[_1]:e.isUpcoming}),to:{pathname:e.path,search:t.search},state:{window:!0,guide:!0},onClick:t=>{cs({context:X0(e.broadcastAction),targetNode:t.currentTarget})},children:e.children})};var v1,x1;let b1=((x1=class extends Re.Component{onClick(){const{props:e}=this;e.dispatch(bI({cid:e.channel.cid})),as({action:"live",category:"watch",label:e.analyticsContext}),e.analyticsContext===Kt&&as({action:"click_watch",category:"guideNavigation",label:"live"})}render(){return(0,pe.jsx)(bL,{children:(0,pe.jsx)(SL,{iconId:Ct,onClick:this.onClick,text:ml(),soul:"OVERFLOW_WATCH_LIVE"})})}}).displayName="LiveOverflowItem",v1=x1,(0,De.A)(v1.prototype,"onClick",[je],Object.getOwnPropertyDescriptor(v1.prototype,"onClick"),v1.prototype),v1);const A1=(0,l.Ng)()(b1),S1=e=>{const{program:t,channel:s}=e,n=X0(e.broadcastAction);return(0,pe.jsxs)(oj,{offsetY:12,className:IU,children:[(0,pe.jsx)(fU,{className:e.className,tabIndex:-1}),(0,pe.jsx)(AL,{channel:s,program:t,analyticsLabel:n}),(0,pe.jsx)(bU,{program:t,channel:s}),(0,pe.jsx)(EU,{program:t,channel:s}),e.isAiring&&(0,pe.jsx)(A1,{channel:s,analyticsContext:Kt}),(0,pe.jsx)(NU,{channel:s,program:t,analyticsContext:Kt})]})};const T1=e=>{const t=(0,l.wA)(),{channel:s,program:n,recording:i}=e,r=(0,l.d4)(e=>gf(e,n.id)),o=(0,l.d4)(xh),a=hQ({broadcast:n,channel:s,recording:i,position:r,replayAvailability:e.replayAvailability,isRecordingEnabled:o}),c=EQ(a),d=hw(a),p=X0(a),u=(0,Re.useCallback)(()=>{const e=i;t(hI({cid:s.cid,pid:n.id,rid:e?.id,mode:c})),as({action:"click_watch",category:"guideNavigation",label:p}),as({action:gZ(c),category:"watch",label:Kt})},[p,s,t,c,n,i]);return(0,pe.jsx)(ln,{className:"x26ts",onClick:u,title:d.title,soul:"GUIDE_PROGRAM_CONTROL_WATCH",icon:Ct,iconClassName:"c4So0"})};var C1;let N1=(C1=class extends Re.PureComponent{constructor(...e){super(...e),this.state={isExpanded:!1},this.expandProgramDelayed=(0,xn.A)(this.expandProgram.bind(this),300)}expandProgram(){this.setState({isExpanded:!0})}collapseProgram(){this.setState({isExpanded:!1})}onMouseEnter(){He()||this.expandProgramDelayed()}onMouseLeave(){this.expandProgramDelayed.cancel(),this.state.isExpanded&&this.collapseProgram()}componentWillUnmount(){this.expandProgramDelayed.cancel()}render(){const{props:e}=this,{isExpanded:t}=this.state,{channel:s,isAiring:n,isUpcoming:i,isStreaming:r,program:o}=e,a=Boolean(e.recording),l=r||t,c=l&&n,d=l||a,p=e.isWatchable||e.hasConnectedContent(o),u=e.showReplayIndicator&&e.canReplay&&!a,h=e.isHighlighted||n,m=e.programsRenderer.shouldDisplayProgram(e.index),g=!t&&e.width<27,y=!(l||g),_=l?(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)("div",{className:"UP4ac",children:o.t}),c&&(0,pe.jsx)(h1,{className:"wTPWk",title:mc(),valueMin:o.s,valueMax:o.e,hideOnZero:!0}),d&&(0,pe.jsxs)("span",{className:(0,Ye.A)("SpZZO"),children:[a&&(0,pe.jsx)(gL,{className:(0,Ye.A)(p1),cid:s.cid,program:o}),u&&(0,pe.jsx)(m1,{className:(0,Ye.A)(p1)}),l&&(0,pe.jsx)(zP,{className:"LpPvC",start:o.s,end:o.e,format:YP})]})]}):o.t;return(0,pe.jsxs)("div",{className:(0,Ye.A)("jefW3",sP,{[r1]:!m,[i1]:t,[o1]:h,[a1]:r,[lP]:h,[aP]:r}),style:{width:e.width,left:e.offset},onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,children:[t&&(0,pe.jsxs)("div",{className:(0,Ye.A)("o9MIT",nP,rP),children:[n&&!r?(0,pe.jsx)(Jk,{className:d1,cid:s.cid,alt:o.t,width:112,height:84,timeout:4e3}):(0,pe.jsx)(JS,{className:d1,alt:o.t,token:o.i_t,width:112,height:84}),e.isWatchable&&!r&&(0,pe.jsx)(T1,{isAiring:n,channel:s,program:o,recording:e.recording,replayAvailability:e.replayAvailability})]}),(0,pe.jsxs)(E1,{path:e.path,isStreaming:r,isPlayable:p,isUpcoming:i,broadcastAction:e.broadcastAction,children:[(0,pe.jsx)("span",{className:(0,Ye.A)("in76M",{[l1]:g,[c1]:l}),children:_}),y&&a&&(0,pe.jsx)(gL,{className:(0,Ye.A)(p1,u1),cid:s.cid,program:o}),y&&u&&(0,pe.jsx)(m1,{className:(0,Ye.A)(p1,u1)})]}),t&&(0,pe.jsx)("div",{className:"Rx92x",children:(0,pe.jsx)(S1,{broadcastAction:e.broadcastAction,channel:s,isAiring:n,program:o})})]})}},(0,De.A)(C1.prototype,"onMouseEnter",[je],Object.getOwnPropertyDescriptor(C1.prototype,"onMouseEnter"),C1.prototype),(0,De.A)(C1.prototype,"onMouseLeave",[je],Object.getOwnPropertyDescriptor(C1.prototype,"onMouseLeave"),C1.prototype),C1);const f1=e=>{const{channel:t,programs:s,programsRenderer:n,replayAvailability:i}=e;if((0,me.A)(s))return null;const r=t=>((e,t)=>{if(!UA(e)||!t)return!1;const{content_id:s,content_type:n}=e.cc[0];return t[n]?.[s]})(t,e.allAvailableConnectedContentMap);return(0,pe.jsx)(pe.Fragment,{children:n.renderPrograms(s,e.day,s=>{const{program:o}=s,{id:a}=o,l=e.recordings[e.pidrid[a]],c=hQ({broadcast:o,channel:t,recording:l,replayAvailability:i,isRecordingEnabled:e.networkRecordingEligible}),d=mm(o),p=hm(o),u=gQ(c),h=Am({broadcast:o,channel:t,replayAvailability:i});return(0,pe.jsx)(N1,{broadcastAction:c,canReplay:h,hasConnectedContent:r,recording:l,index:s.index,isAiring:p,isHighlighted:e.isHighlighted,isStreaming:a===e.streamPID,isUpcoming:d,isWatchable:u,offset:s.left,width:s.width,path:lx(t.url_cid,a),channel:t,program:o,replayAvailability:i,showReplayIndicator:e.showReplayIndicator,programsRenderer:n},a)})})},I1="GUIDE_PROGRAMS_LIST";var w1,O1;let D1=(O1=class e{constructor(){this.viewportPosition=void 0,this.viewportWidth=void 0,this.documentRect=void 0,this.programsOffset=void 0,this.programsListElement=void 0,this.subscribers=new Set,this.wasResizedOnce=!1}updateDocumentRect(){this.documentRect=document.documentElement.getBoundingClientRect()}updateProgramsOffset(){this.programsOffset=this.programsListElement.getBoundingClientRect().left-this.documentRect.left}updateViewport(){const{documentRect:e}=this;this.viewportPosition=e.left+480,this.viewportWidth=e.width+960-this.programsOffset}init(){this.programsListElement=document.getElementById(I1),this.updateDocumentRect(),this.updateProgramsOffset(),this.updateViewport(),document.addEventListener("scroll",this.onScroll),fG(document.getElementById(MK),this.onResize)}clean(){this.documentRect=null,this.programsListElement=null,this.programsOffset=null,this.wasResizedOnce=!1,document.removeEventListener("scroll",this.onScroll),IG(document.getElementById(MK),this.onResize)}subscribe(e){this.subscribers.add(e),1===this.subscribers.size&&this.init()}unsubscribe(e){this.subscribers.delete(e),this.subscribers.size||this.clean()}
1notifySubscribers(){this.subscribers.forEach(e=>{e()})}onScroll(){const{documentRect:e}=this;Br.getInstance().isLocked()||(this.updateDocumentRect(),this.updateViewport(),this.documentRect.left!==e.left&&this.notifySubscribers())}onResize(){this.wasResizedOnce?(this.updateDocumentRect(),this.updateProgramsOffset(),this.updateViewport(),this.notifySubscribers()):this.wasResizedOnce=!0}static getInstance(){return this.instance_||(this.instance_=new e),this.instance_}},O1.instance_=void 0,w1=O1,(0,De.A)(w1.prototype,"onScroll",[je],Object.getOwnPropertyDescriptor(w1.prototype,"onScroll"),w1.prototype),(0,De.A)(w1.prototype,"onResize",[je],Object.getOwnPropertyDescriptor(w1.prototype,"onResize"),w1.prototype),w1);var R1;let j1=(R1=class{constructor(e){this.programEntries=[],this.isContainerVisible=!1,this.programsContainer=void 0,this.viewportObserver=D1.getInstance(),this.programsContainer=e,this.viewportObserver.subscribe(this.updateVisibility)}durationToWidth(e){return e/Vt.pO*G0}renderPrograms(e,t,s){const n=$0(t),i=K0(t);let r=n,o=0;return this.programEntries=[],e.map((e,t)=>{const{s:a,e:l}=e,c=Math.max(0,a-r),d=o+this.durationToWidth(c),p=0===t?l-n-c:Math.min(l,i)-a,u=this.durationToWidth(p),h={left:d,width:u,visible:!1,index:t,program:e};return h.visible=this.isProgramVisible(h),r=l,o=d+u,this.programEntries.push(h),s(h)})}shouldDisplayProgram(e){return this.programEntries[e].visible}containerVisibilityChanged(e){this.isContainerVisible=e,this.updateVisibility()}destroy(){this.viewportObserver.unsubscribe(this.updateVisibility),this.programEntries=null,this.programsContainer=null,this.viewportObserver=null}isProgramVisible(e){const{viewportWidth:t,viewportPosition:s}=this.viewportObserver,n=e.width,i=e.left+s;return VR(n,t,i)/n>0}updateProgramVisibility(e){const t=this.isProgramVisible(e);if(t===e.visible)return;const s=this.programsContainer.children[e.index];e.visible=t,s.classList.toggle(r1,!t)}updateVisibility(){this.isContainerVisible&&this.programEntries.forEach(this.updateProgramVisibility,this)}},(0,De.A)(R1.prototype,"updateVisibility",[je],Object.getOwnPropertyDescriptor(R1.prototype,"updateVisibility"),R1.prototype),R1);var k1="d_DI5";var P1;let L1=(P1=class extends Re.Component{constructor(...e){super(...e),this.sectionRef=(0,Re.createRef)(),this.contentLoader=new aV(this.onVisibilityChange)}setContentVisibility(e){this.sectionRef.current.firstElementChild.classList.toggle(k1,!e)}shouldComponentUpdate(e){return this.contentLoader.onPropsReceived(this.props,e),this.contentLoader.shouldUpdateProps(this.props,e)}componentDidMount(){const e=this.sectionRef.current;this.programsRenderer=new j1(e.firstElementChild),this.contentLoader.init(e,{rootMargin:"400px 0px 400px 0px"})}componentWillUnmount(){this.contentLoader.destroy(),this.programsRenderer.destroy(),this.contentLoader=null,this.programsRenderer=null}onVisibilityChange(e,t){this.programsRenderer.containerVisibilityChanged(e),t?this.forceUpdate(()=>{this.setContentVisibility(e)}):this.setContentVisibility(e)}render(){const{props:e,contentLoader:t}=this;return t.onElementRendered(),(0,pe.jsx)("section",{ref:this.sectionRef,className:(0,Ye.A)("h1nJB","Uscb3"),children:(0,pe.jsx)("div",{className:(0,Ye.A)("d0FmP",{[k1]:!t.isVisible}),"data-soul":"GUIDE_CHANNEL_PROGRAMS",children:t.shouldRenderContent()&&(0,pe.jsx)(f1,{...e,programsRenderer:this.programsRenderer})})})}},(0,De.A)(P1.prototype,"onVisibilityChange",[je],Object.getOwnPropertyDescriptor(P1.prototype,"onVisibilityChange"),P1.prototype),P1);const M1=e=>(0,pe.jsx)("div",{id:I1,"data-context":e.dataContext,children:e.channels.map(t=>{const{cid:s}=t,n=e.guideInfo[s];return(0,pe.jsx)(L1,{channel:t,allAvailableConnectedContentMap:e.allAvailableConnectedContentMap,day:e.day,isHighlighted:e.streamCID===s,isToday:e.isToday,networkRecordingEligible:e.networkRecordingEligible,now:e.now,pidrid:e.pidrid,recordings:e.recordings,programs:n,replayAvailability:e.replayAvailability,showReplayIndicator:e.showReplayIndicator,streamPID:e.streamPID},s)})});const U1=e=>e.isUpdating?(0,pe.jsx)(Ke,{className:"rbDAJ",text:x(87)}):(0,pe.jsxs)("div",{className:"Hn9XT","data-content-viewport":!0,children:[(0,pe.jsx)(s1,{channels:e.channels,favoritesList:e.favoritesList,streamCID:e.streamCID,watchLive:e.watchLive}),(0,pe.jsx)(M1,{channels:e.channels,allAvailableConnectedContentMap:e.allAvailableConnectedContentMap,dataContext:Kt,day:e.day,isToday:e.isToday,networkRecordingEligible:e.networkRecordingEligible,now:e.now,pidrid:e.pidrid,recordings:e.recordings,guideInfo:e.guideInfo,replayAvailability:e.replayAvailability,showReplayIndicator:e.showReplayIndicator,streamCID:e.streamCID,streamPID:e.streamPID})]});var V1="ykagH";const B1=e=>(0,pe.jsx)("div",{className:(0,Ye.A)("gHMAD",{[V1]:e.hasGuide}),style:{"--channel_width":"100px","--grid_width":"7680px","--hour_width":"320px","--side_width":"52px"},"data-soul":"GUIDE_CONTENT",children:e.children});var F1=s(3999),H1=s(9876),G1=s(84);const q1="onlyDate",Y1=(e,t)=>{const s=(0,Vt.vO)(e);switch(t){case"onlyTime":return(0,G1.GP)(s,"HH:mm");case q1:return(0,G1.GP)(s,"dd/MM/yyyy");default:return(0,G1.GP)(s,"HH:mm dd/MM/yyyy")}},W1=(0,Re.memo)(e=>(0,pe.jsxs)("span",{className:e.className,"aria-current":"date","data-soul":"GUIDE_DATEPICKER_CURRENT_DAY",children:[e.name,(0,pe.jsx)("br",{}),e.date]}));var z1="BD6eO",$1="pHh2w",K1="W9YxI",Q1="TFbu6",Z1="IjbSO";var X1,J1;let e2=(J1=class extends Re.Component{previous(){this.props.previous(),as({action:"selectDay",category:"guideNavigation",label:"previousDay"})}next(){this.props.next(),as({action:"selectDay",category:"guideNavigation",label:"nextDay"})}pickDay(e){this.props.pickDay(e);const t=Z0(e);Un({type:In,guide_date_selection:t?"today":Y1(e,q1)}),as({action:"selectDay",label:"datePicker",category:"guideNavigation"})}componentDidUpdate(e){e.day!==this.props.day&&this.props.scrollSelectedIntoView()}render(){const{props:e}=this,{rightEdgeReached:t,leftEdgeReached:s}=e,n=new Date,i=Array(e.daysBeforeToday+14+1).fill(null).map((t,s)=>q0._(Y0.o(F1.f(n,s-e.daysBeforeToday))));return(0,pe.jsxs)("div",{className:"S4zFi",style:{"--datepicker_width":"364px","--date_width":"52px"},children:[(0,pe.jsx)(xB,{direction:pB,onClick:this.previous,visible:!s,soul:"GUIDE_DATEPICKER_CONTROL_PREVIOUS",className:Z1,hasDim:!0}),(0,pe.jsx)("div",{className:(0,Ye.A)("gC5Am",Rr,{[K1]:s,[Q1]:t}),ref:e.reference,"data-scroll-area":!0,"data-soul":"GUIDE_DATEPICKER_CONTAINER",children:i.map(t=>{const s=H1.S(t).getDate(),n=Z0(t),i=(e=>e<Q0())(t),r=n?x(86):FP((0,Vt.vO)(t),jP);return t===e.day?(0,pe.jsx)(W1,{day:e.day,className:(0,Ye.A)(z1,"aJp4K",{[$1]:n}),date:s,name:r},t):(0,pe.jsxs)(Hs,{contentClassName:(0,Ye.A)(z1,{[$1]:n}),soul:i?"GUIDE_DATEPICKER_CONTROL_DAY_PAST":"GUIDE_DATEPICKER_CONTROL_DAY_FUTURE",onClick:e=>{e.preventDefault(),this.pickDay(t),this.props.updatePosition()},control:an,children:[r,(0,pe.jsx)("br",{}),s]},t)})}),(0,pe.jsx)(xB,{direction:uB,onClick:this.next,visible:!t,soul:"GUIDE_DATEPICKER_CONTROL_NEXT",className:Z1,hasDim:!0})]})}},J1.displayName="GuideDatepicker",X1=J1,(0,De.A)(X1.prototype,"previous",[je],Object.getOwnPropertyDescriptor(X1.prototype,"previous"),X1.prototype),(0,De.A)(X1.prototype,"next",[je],Object.getOwnPropertyDescriptor(X1.prototype,"next"),X1.prototype),(0,De.A)(X1.prototype,"pickDay",[je],Object.getOwnPropertyDescriptor(X1.prototype,"pickDay"),X1.prototype),X1);const t2=bB(e2,{range:.45});var s2="jBiWX";const n2=e=>(0,pe.jsx)(a0,{children:(0,pe.jsx)("div",{className:(0,Ye.A)("A_RJb",{[s2]:e.hasGuide}),children:e.children})});var i2="ZJIr8",r2="wZGyD",o2="hi1aT";const a2=(e,t,s)=>{const n=document.getElementById(e);if(n){VU(n,{alignX:PU,alwaysScrollX:!0}),as({action:"selectHour",category:"guideNavigation",label:"timePicker"});const e=Z0(s);Un({type:In,guide_date_selection:e?t:`${t} ${Y1(s,q1)}`})}},l2=e=>{const{isSizeMini:t}=e;return(0,pe.jsxs)("div",{className:"_5_S8",children:[e.primeTimes.map((s,n)=>{const i=(e=>{const t=new Date((0,Vt.vO)(e));return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds())})(s),r=z0(i),o=FP(i,MP);return o?(0,pe.jsx)(ln,{onClick:a2.bind(null,r,o,e.day),className:(0,Ye.A)(i2,{[r2]:t,[o2]:0!==n}),soul:"GUIDE_CONTROL_PRIME_TIME",color:Et,kind:ut,text:o},r):null}),(0,pe.jsx)(ln,{onClick:e.onNow,className:i2,color:_t,soul:"GUIDE_CONTROL_NOW",kind:ut,disabled:e.isNowDisabled,text:x(82)})]})};var c2,d2="ZKOO2";let p2=(c2=class extends Re.PureComponent{constructor(e){super(e),this.state={isLeft
1EdgeReached:!1,isRightEdgeReached:!1},this.maxPastDay=(0,F1.f)((0,Vt.vO)(Q0()),-this.props.daysBeforeToday).getTime(),this.maxFutureDay=(0,F1.f)((0,Vt.vO)(Q0()),14).getTime(),this.onScrollDelayed=(0,xn.A)(this.onScroll.bind(this),300)}hasMoreFutureDays(){return(0,Vt.vO)(this.props.day)!==this.maxFutureDay}hasMorePastDays(){return(0,Vt.vO)(this.props.day)!==this.maxPastDay}async next(){this.state.isRightEdgeReached?(this.props.updatePosition({x:-document.documentElement.scrollWidth}),await this.props.pickDay(this.props.day+Vt.hZ)):window.scrollBy({left:960,behavior:"smooth"})}async previous(){this.state.isLeftEdgeReached?(this.props.updatePosition({x:document.documentElement.scrollWidth}),await this.props.pickDay(this.props.day-Vt.hZ)):window.scrollBy({left:-960,behavior:"smooth"})}updateInfo(){const{state:e}=this,t=document.documentElement,s=t.getBoundingClientRect(),n=0===s.left,i=Math.round(s.width-s.left)===t.scrollWidth;e.isRightEdgeReached===i&&e.isLeftEdgeReached===n||this.setState({isLeftEdgeReached:n,isRightEdgeReached:i})}onScroll(){this.updateInfo()}componentDidUpdate(e){e.day!==this.props.day&&this.updateInfo()}componentDidMount(){this.updateInfo(),window.addEventListener("scroll",this.onScrollDelayed)}componentWillUnmount(){this.onScrollDelayed.cancel(),window.removeEventListener("scroll",this.onScrollDelayed)}render(){const{isLeftEdgeReached:e,isRightEdgeReached:t}=this.state,s=e?x(83):x(84,{hours:3});const n=t?x(81):(e=>x(85,e))({hours:3}),i=!t||this.hasMoreFutureDays(),r=!e||this.hasMorePastDays();return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(xB,{direction:pB,onClick:this.previous,visible:r,title:s,className:(0,Ye.A)(d2,"I5Dsc"),soul:"GUIDE_CONTROL_PREVIOUS"}),(0,pe.jsx)(xB,{direction:uB,onClick:this.next,visible:i,title:n,className:(0,Ye.A)(d2,"d8xqd"),soul:"GUIDE_CONTROL_NEXT"})]})}},(0,De.A)(c2.prototype,"next",[je],Object.getOwnPropertyDescriptor(c2.prototype,"next"),c2.prototype),(0,De.A)(c2.prototype,"previous",[je],Object.getOwnPropertyDescriptor(c2.prototype,"previous"),c2.prototype),c2);const u2=e=>{const t=[];for(let s=0;s<24;s++){const n=e+s*Vt.pO;t.push(n)}return t},h2=(0,Re.memo)(e=>{const{day:t}=e,s=$0(t);let n=null;return(0,pe.jsx)(pe.Fragment,{children:u2(s).map(e=>{const t=FP((0,Vt.vO)(e),MP);return t===n?null:(n=t,(0,pe.jsxs)("div",{className:"GS7Z5",children:[(0,pe.jsx)("span",{className:"y80wl",children:t}),(0,pe.jsx)("span",{id:z0(e),className:"ijYjs"}),(0,pe.jsx)("span",{id:z0(e+15*Vt.j9),className:"hHdbh"}),(0,pe.jsx)("span",{id:z0(e+30*Vt.j9),className:"GzfTt"}),(0,pe.jsx)("span",{id:z0(e+45*Vt.j9),className:"NnU_i"})]},e))})})});var m2;let g2=(m2=class extends Re.Component{constructor(...e){super(...e),this.observedNowElement=null}observeNowPosition(){const{props:e}=this,t=e.nowControlRef.current;this.observedNowElement&&this.unobserveNowPosition(),t&&(iV(t,this.onIntersectionChange),this.observedNowElement=t)}unobserveNowPosition(){this.observedNowElement&&(rV(this.observedNowElement,this.onIntersectionChange),this.observedNowElement=null)}onIntersectionChange(e){this.props.changeNowVisibility(e.isIntersecting)}componentDidUpdate(){this.props.nowControlRef.current!==this.observedNowElement&&this.observeNowPosition()}componentDidMount(){this.observeNowPosition()}componentWillUnmount(){this.props.updatePosition(),this.unobserveNowPosition()}render(){const{props:e}=this,t=(e=>{const t=$0(e);return((0,Vt.hY)()-t)/Vt.pO*G0})(e.day),s=`${t+100}px`;return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsxs)("div",{className:"UWolo",children:[(0,pe.jsx)(h2,{day:e.day}),e.hasNowIndicator&&(0,pe.jsx)("div",{className:"EeeIc","data-soul":"GUIDE_TIMELINE_NOW_INDICATOR",ref:e.nowControlRef,style:{left:s},children:FP(Date.now(),MP)})]}),e.hasNowLine&&(0,pe.jsx)("div",{className:"cqnPu","data-soul":"GUIDE_TIMELINE_NOW_LINE",style:{left:s}})]})}},(0,De.A)(m2.prototype,"onIntersectionChange",[je],Object.getOwnPropertyDescriptor(m2.prototype,"onIntersectionChange"),m2.prototype),m2);var y2;let _2=(y2=class extends Re.PureComponent{constructor(...e){super(...e),this.nextPosition=this.props.position,this.nowControlRef=(0,Re.createRef)(),this.primeTimes=Object.values(F0[this.props.serviceCountry]||F0.default),this.state={isNowVisible:!1},this.scrollToNowDelayed=(0,xn.A)(this.scrollToNow.bind(this),100)}hasNowLine(){const{props:e}=this;return e.isToday&&e.ready&&!e.isUpdating}changeNowVisibility(e){this.setState({isNowVisible:e})}scrollToNow(){const e=this.nowControlRef?.current;if(!e)return;const t=jj(this.props.hasSidebar)/2;VU(e,{alignX:PU,alwaysScrollX:!0,offsetX:t})}scrollToActiveChannel(){const e=document.getElementById(J0);
1VU(e,{alignY:LU,alwaysScrollY:!0}),this.nextPosition?document.documentElement.scrollTo({left:this.nextPosition.x}):this.scrollToNow()}scrollToNextPosition(e){BU.getInstance().lockNextInteraction(),this.props.hasActiveChannel&&e?this.scrollToActiveChannel():this.nextPosition?document.documentElement.scrollTo(this.nextPosition.x,this.nextPosition.y):this.scrollToNow()}onNow(){const{props:e}=this;e.isToday?this.scrollToNow():e.pickDay(Q0()).then(this.scrollToNow),as({action:"jumpToNow",category:"guideNavigation"}),Un({type:In,guide_date_selection:"now"})}isNowDisabled(){return!!this.props.isToday&&this.state.isNowVisible}updatePosition(e={}){this.nextPosition={...W0(),...e}}componentDidUpdate(e){const{props:t}=this;if(this.props.isUpdating)return;const s=e.day===t.day;(!e.ready&&t.ready||!e.hasGuide&&t.hasGuide||!s||!e.hasActiveChannel&&t.hasActiveChannel)&&this.scrollToNextPosition(s)}componentDidMount(){this.scrollToNowDelayed()}render(){const{props:e}=this,{day:t,hasGuide:s,isSizeMini:n,pickDay:i}=e;return(0,pe.jsxs)(B1,{hasGuide:s,children:[(0,pe.jsxs)(n2,{hasGuide:s,children:[(0,pe.jsx)(n0,{groups:e.groups,path:e.path,search:e.search}),s&&(0,pe.jsxs)("div",{className:"pIxuY",children:[(0,pe.jsx)(t2,{day:t,updatePosition:this.updatePosition,pickDay:i,daysBeforeToday:e.daysBeforeToday,scrollSubject:"[aria-current]"}),(0,pe.jsx)(l2,{day:t,isNowDisabled:this.isNowDisabled(),isSizeMini:n,onNow:this.onNow,primeTimes:this.primeTimes})]})]}),s&&(0,pe.jsx)(g2,{hasNowIndicator:e.isToday,hasNowLine:this.hasNowLine(),now:e.now,nowControlRef:this.nowControlRef,changeNowVisibility:this.changeNowVisibility,updatePosition:this.updatePosition,day:e.day}),e.children,s&&(0,pe.jsx)(p2,{day:t,pickDay:i,updatePosition:this.updatePosition,daysBeforeToday:this.props.daysBeforeToday})]})}},(0,De.A)(y2.prototype,"changeNowVisibility",[je],Object.getOwnPropertyDescriptor(y2.prototype,"changeNowVisibility"),y2.prototype),(0,De.A)(y2.prototype,"scrollToNow",[je],Object.getOwnPropertyDescriptor(y2.prototype,"scrollToNow"),y2.prototype),(0,De.A)(y2.prototype,"scrollToNextPosition",[je],Object.getOwnPropertyDescriptor(y2.prototype,"scrollToNextPosition"),y2.prototype),(0,De.A)(y2.prototype,"onNow",[je],Object.getOwnPropertyDescriptor(y2.prototype,"onNow"),y2.prototype),(0,De.A)(y2.prototype,"updatePosition",[je],Object.getOwnPropertyDescriptor(y2.prototype,"updatePosition"),y2.prototype),y2);var E2,v2;let x2=(v2=class extends Re.PureComponent{constructor(...e){super(...e),this.state={day:this.props.initialDay,isUpdating:!0,now:(0,Vt.hY)(),guideInfo:null}}isReady(){return!(0,me.A)(this.state.guideInfo)}isToday(){return Z0(this.state.day)}hasGuide(){const{props:e}=this;return!(e.location.pathname===Hd&&(0,me.A)(e.favoritesList))}hasActiveChannel(){return this.props.channels.some(e=>e.cid===this.props.streamCID)}setMeta(){this.props.dispatch(E_({title:wl(),funnel:Qc})),Ud()}updateNow(e){this.setState({now:e})}async fetchAll(e,t){const{props:s}=this,n=await nb.th({luhash:s.luhash,start:e,end:t}),i=ab(n.channels);return(0,me.A)(i)&&X("Power Guide for 24h is empty"),i}async fetchData(e){const t=$0(e),s=K0(e);this.setState({isUpdating:!0});const n=await this.fetchAll(t,s);this.setState({guideInfo:n,isUpdating:!1,day:e})}async pickDay(e){await this.fetchData(e)}watchLive(e){this.props.dispatch(bI({cid:e}))}isDayOver(e){const t=Q0(),{state:s}=this,{day:n}=s;return e===t&&n===t&&s.now-4*Vt.pO>n+Vt.hZ}componentDidUpdate(e,t){this.isDayOver(t.day)&&!this.state.isUpdating&&this.pickDay(Q0()),e.group!==this.props.group&&this.setMeta()}componentDidMount(){this.setMeta(),this.fetchData(this.state.day),L0.getInstance().subscribe(this.updateNow)}componentWillUnmount(){this.props.dispatch(((e,t)=>({type:M0,day:e,position:t}))(this.state.day,W0())),L0.getInstance().unsubscribe(this.updateNow)}renderGrid(){const{props:e,state:t}=this,s=(0,pe.jsx)(U1,{channels:e.channels,allAvailableConnectedContentMap:e.allAvailableConnectedContentMap,day:t.day,favoritesList:e.favoritesList,guideInfo:t.guideInfo,isToday:this.isToday(),isUpdating:t.isUpdating,networkRecordingEligible:e.networkRecordingEligible,now:t.now,pidrid:e.pidrid,recordings:e.recordings,ready:this.isReady(),replayAvailability:e.replayAvailability,showReplayIndicator:e.showReplayIndicator,streamCID:e.streamCID,streamPID:e.streamPID,watchLive:this.watchLive});return e.group===mp?(0,pe.jsx)(O0,{children:s}):s}render(){const{props:e,state:t}=this;return(0,pe.jsxs)(_2,{day:t.day,groups:e.groups,hasActiveChannel:this.hasActiveChannel(),hasGuide:this.hasGuide(),position:e.initialPosition,hasSidebar:e.hasSidebar,isSizeMini:e.isSizeMini,isUpdating:t.isUpdating,isToday:this.isToday(),now:t.now,path:Fd,pickDay:this.pickDay,ready:this.isReady(),search:e.location.search,serviceCountry:e.serviceCountry,daysBeforeToday:e.daysBeforeToday,children:[this.renderGrid(),e.hasDisplayAds&&(0,pe.jsx)(AQ,{})]})}}
1,v2.displayName="Guide",E2=v2,(0,De.A)(E2.prototype,"updateNow",[je],Object.getOwnPropertyDescriptor(E2.prototype,"updateNow"),E2.prototype),(0,De.A)(E2.prototype,"pickDay",[je],Object.getOwnPropertyDescriptor(E2.prototype,"pickDay"),E2.prototype),(0,De.A)(E2.prototype,"watchLive",[je],Object.getOwnPropertyDescriptor(E2.prototype,"watchLive"),E2.prototype),E2);const b2=j0((0,l.Ng)(e=>({allAvailableConnectedContentMap:pZ(e),channels:vp(e),favoritesList:Pp(e),groups:Lp(e),hasDisplayAds:Oy(e),hasSidebar:ky(e),initialDay:B0(e),initialPosition:V0(e),isSizeMini:a_(e),luhash:ho(e),networkRecordingEligible:xh(e),recordings:Nk(e),pidrid:Ck(e),replayAvailability:_h(e),serviceCountry:Oe(e),showReplayIndicator:bh(e),streamCID:Cm(e),streamPID:Zu(e),daysBeforeToday:H0(e)}))(x2),Fd);var A2=s(3365),S2=s(9054);const T2="last",C2=e=>({isInputSourceKeyboard:IN(e)});var N2="TfMUH",f2="DZl3_";const I2=(0,Re.memo)(e=>{const{title:t,path:s,canDrilldown:n}=e;return(0,pe.jsx)(S_,{className:"Kv6SS",children:!1!==n?(0,pe.jsxs)(c.N_,{className:N2,to:{pathname:s,search:e.queryString},"data-soul":"EDITORIAL_ELEMENT_HEADER",children:[(0,pe.jsx)("h2",{className:f2,children:t}),(0,pe.jsx)(ft,{id:_C,className:"fCkop"})]}):(0,pe.jsx)("h2",{className:(0,Ye.A)(N2,f2),children:t})})});var w2=s(5588),O2="oV6rr",D2="crmC_";const R2="TEASER_OVERLAY_LINK",j2=e=>(0,pe.jsx)(qs,{className:jk,contentClassName:"osqEc",soul:R2,...e});const k2=({logoToken:e,title:t,total:s,path:n})=>{const i=(0,w2.B6)({path:Zd},n);return(0,pe.jsxs)(pe.Fragment,{children:[e&&(0,pe.jsx)(KT,{alt:t,token:e,width:200,height:100,fadeIn:!0}),i?(r={total:s},x(305,r)):x(304),(0,pe.jsx)(j2,{to:n,title:t})]});var r};k2.displayName="TeaserIntro";const P2=hV(k2,{className:(0,Ye.A)("peV1w",O2,D2),contentClassName:"xjPdx",soul:"TEASER_INTRO"}),L2=e=>gd(e)||ud(e),M2=({scheme:e,host:t,path:s})=>{const n=e+t+(s||"");return(e=>{try{const t=new URL(e);return"http:"===t.protocol||"https:"===t.protocol}catch{return!1}})(n)?n:null},U2=e=>(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(vP,{kind:dP,token:e.imageToken,alt:e.title,view:e.view}),(0,pe.jsx)(Kk,{view:e.view,children:(0,pe.jsx)(qk,{title:e.title,text:e.text})}),e.view===hk&&(0,pe.jsx)(_L,{id:e.teaserIndex,hidden:e.isActiveInMarquee,onClick:e.onClickLinkMarquee,tabIndex:-1})]});U2.displayName="TeaserGeneric";const V2=hV(U2,{soul:"TEASER_GENERIC"}),B2=({className:e,hasIcon:t,text:s})=>s?(0,pe.jsx)(mL,{className:e,iconId:t?hL:void 0,text:s}):null;var F2="qIBy_",H2="BpXaj";class G2 extends Re.Component{shouldComponentUpdate(e){return Dj(e,this.props)}render(){const{props:e}=this,{channel:t,title:s,total:n,view:i}=e,r=i===gk,o=i===mk||i===uk,a=yL(e.isActiveInMarquee);return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(vP,{alt:s,kind:dP,token:e.imageToken,view:i,full:!0}),(0,pe.jsxs)(Kk,{className:(0,Ye.A)({[H2]:r,[F2]:o}),view:i,children:[t&&(0,pe.jsx)(Vk,{alt:t.title,token:Sp(t).logo_token,view:i}),(0,pe.jsx)("h2",{className:(0,Ye.A)("DOckq",Xi),"data-soul":"TEASER_SERIES_TITLE",children:s}),(0,pe.jsx)("div",{className:(0,Ye.A)(XP,"hCVHm"),children:(0,pe.jsx)(B2,{className:"p0JqR",text:n?(l={count:n},x(307,l)):void 0,hasIcon:!0})})]}),(0,pe.jsx)(Lk,{pathname:_x(e.tvSeriesId,t.url_cid),elementIndex:e.elementIndex,teaserIndex:e.teaserIndex,hasWindow:!1,view:e.view,analyticsCategory:"seriesInfo",state:{seriesPath:e.path,recordingsOnly:e.recordingsOnly},tabIndex:a,title:s}),e.isLocked&&(0,pe.jsx)(cL,{className:xL}),e.view===hk&&(0,pe.jsx)(_L,{id:e.teaserIndex,hidden:e.isActiveInMarquee,onClick:e.onClickLinkMarquee,tabIndex:-1})]});var l}}G2.displayName="TeaserSeries";const q2=(e=>{const t=hV(e,{soul:"TEASER_SERIES"}),s=e=>{const s=e.view===hk;return(0,pe.jsx)(t,{...e,className:(0,Ye.A)(e.className,{[O2]:!s,[D2]:!s})})};return s.displayName=e.displayName||e.name,s})(G2),Y2=e=>{const t=yL(e.isActiveInMarquee);return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(vP,{kind:dP,token:e.imageToken,alt:e.title,view:e.view}),(0,pe.jsx)(Kk,{view:e.view,children:(0,pe.jsx)(qk,{title:e.title,text:e.text})}),(0,pe.jsx)(j2,{to:ep(e.path,e.pageKind),title:e.title,tabIndex:t}),e.view===hk&&(0,pe.jsx)(_L,{id:e.teaserIndex,hidden:e.isActiveInMarquee,onClick:e.onClickLinkMarquee,tabIndex:-1})]})};
1Y2.displayName="TeaserEditorialLink";const W2=hV(Y2);const z2=e=>{const t=yL(e.isActiveInMarquee);return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(vP,{kind:dP,token:e.imageToken,alt:e.title,view:e.view}),(0,pe.jsxs)(Kk,{view:e.view,children:[(0,pe.jsx)(Vk,{alt:e.title,token:e.logo,view:e.view}),(0,pe.jsx)(qk,{title:e.title,text:e.text}),(0,pe.jsx)(Fk,{view:e.view,children:e.callToAction&&(0,pe.jsx)("p",{className:"VUP5D",children:e.callToAction})})]}),e.url&&(0,pe.jsx)(qs,{className:"z7L6b",href:e.url,target:"_blank",soul:R2,title:e.title,tabIndex:t}),e.view===hk&&(0,pe.jsx)(_L,{id:e.teaserIndex,hidden:e.isActiveInMarquee,onClick:e.onClickLinkMarquee,tabIndex:-1})]})};z2.displayName="TeaserExternal";const $2=hV(z2,{soul:"TEASER_EXTERNAL"});var K2="pyJmg",Q2="SMNZA";var Z2,X2;let J2=(X2=class extends Re.PureComponent{getTitle(){return this.props.title||this.props.movie.title}getText(){return this.props.text||this.props.movie.subtitle}watchVOD(e){e.preventDefault();const{props:t}=this;t.watchVOD({movieId:t.movie.id,teaserIndex:t.teaserIndex,term:this.getToken()}),ls({action:sS,category:"watch",view:t.view,targetNode:e.currentTarget,elementIndex:t.elementIndex,teaserIndex:t.teaserIndex})}getToken(){const{movie:e,status:t,subscriptions:s}=this.props;return Fh(kh(e.terms_catalog),s,t)}render(){if(!this.props.movie)return null;const{props:e}=this,{movie:t,status:s,subscriptions:n}=e,i=this.getTitle(),r=s?.position,o=e.view===gk,a=HU(e.imageStyle)&&e.view!==hk&&e.view!==gk,l=vx(t.id),c=Gh(kh(t.terms_catalog),n,s),d=zh(s,e.subscriptions,t),p=d===lh,u=yL(e.isActiveInMarquee),h=e.view!==hk?t.display_price:null;return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsxs)(vP,{kind:dP,alt:i,view:e.view,token:e.imageToken,full:a,width:a?240:null,height:a?320:null,children:[c&&(0,pe.jsx)(EL,{onClick:this.watchVOD,onClickDisabled:this.watchVOD,title:hl(),soul:"TEASER_MOVIE_OVERLAY_WATCH",tabIndex:-1}),!o&&c&&(0,pe.jsx)(HZ,{view:e.view,onClick:this.watchVOD,onClickDisabled:this.watchVOD,soul:"TEASER_MOVIE_CONTROL_WATCH",isPortrait:a})]}),(0,pe.jsxs)(Kk,{view:e.view,className:(0,Ye.A)({[Q2]:a}),children:[(0,pe.jsx)(Vk,{alt:i,token:t.brand?.logo_token,view:e.view}),(0,pe.jsx)(qk,{title:i,text:a?"":this.getText(),titleClassName:(0,Ye.A)(Qi,"dTmH2")}),(0,pe.jsxs)(Fk,{view:e.view,children:[c&&Boolean(r)&&(0,pe.jsx)(SP,{hasProgress:!0,progressTimeNow:r,progressTimeMax:(0,Vt.H8)(t.runtime),progressTimeMin:0}),(0,pe.jsx)("div",{className:XP,children:(0,pe.jsx)(qX,{status:s,vod:t,state:d,displayPrice:h})})]}),!a&&c&&(0,pe.jsx)(Lk,{pathname:l,elementIndex:e.elementIndex,teaserIndex:e.teaserIndex,view:e.view,tabIndex:u,title:i})]}),!p&&t.ribbon&&(0,pe.jsx)("span",{className:K2,"data-soul":"TEASER_MOVIE_TAG",children:t.ribbon}),p&&(0,pe.jsx)(cL,{className:xL}),(!c||a)&&(0,pe.jsx)(Lk,{pathname:l,elementIndex:e.elementIndex,teaserIndex:e.teaserIndex,view:e.view,tabIndex:u,title:i}),e.view===hk&&(0,pe.jsx)(_L,{id:e.teaserIndex,hidden:e.isActiveInMarquee,onClick:e.onClickLinkMarquee,tabIndex:-1})]})}},X2.displayName="TeaserMovie",Z2=X2,(0,De.A)(Z2.prototype,"watchVOD",[je],Object.getOwnPropertyDescriptor(Z2.prototype,"watchVOD"),Z2.prototype),Z2);const e4=hV(J2,{soul:"TEASER_MOVIE"});var t4;let s4=(t4=class extends Re.PureComponent{getTitle(){return this.props.title||this.props.episode.title}getText(){return this.props.text||this.props.episode.subtitle}watchVOD(e){e.preventDefault();const{props:t}=this;t.watchVOD({series_id:t.episode.series_id,season_id:t.episode.season_id,episode_id:t.episode.id,teaserIndex:t.teaserIndex,term_token:Fh(kh(t.episode.terms_catalog),t.subscriptions,t.status)}),ls({action:iS,category:"watch",view:t.view,targetNode:e.currentTarget,elementIndex:t.elementIndex,teaserIndex:t.teaserIndex})}render(){const{props:e}=this;if(!e.episode)return null;const{episode:t,status:s,subscriptions:n}=e,i=this.getTitle(),r=s?.position,o=(a=t.series_id,l=t.season_id,c=t.id,`/vod/series/${a}/${l}/${c}`);var a,l,c;const d=Gh(kh(t.terms_catalog),n,s),p=zh(s,n,t)===lh,u=yL(e.isActiveInMarquee);return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsxs)(vP,{kind:dP,alt:i,view:e.view,token:e.imageToken,children:[d&&(0,pe.jsx)(EL,{onClick:this.watchVOD,onClickDisabled:this.watchVOD,title:hl(),soul:"TEASER_EPISODE_OVERLAY_WATCH"}),e.view!==gk&&d&&(0,pe.jsx)(HZ,{view:e.view,onClick:this.watchVOD,onClickDisabled:this.watchVOD,soul:"TEASER_EPISODE_CONTROL_WATCH"})]}),(0,pe.jsxs)(Kk,{view:e.view,children:[(0,pe.jsx)(Vk,{alt:i,token:t.brand?.logo_token,view:e.view}),(0,pe.jsx)(qk,{title:i,text:this.getText(),titleClassName:Qi}),(0,pe.jsxs)(Fk,{view:e.view,children:[d&&Boolean(r)&&(0,pe.jsx)(SP,{hasProgress:!0,progressTimeNow:r,progressTimeMax:(0,Vt.H8)(t.runtime),progressTimeMin:0}),t.ribbon&&(0,pe.jsx)("div",{className:"ldBif","data-soul":"TEASER_EPISODE_TAG",children:t.ribbon})]}),d&&(0,pe.jsx)(Lk,{pathname:o,elementIndex:e.elementIndex,teaserIndex:e.teaserIndex,analyticsCategory:"seriesInfo",view:e.view,hasWindow:!1,tabIndex:-1,title:i})]}),p&&(0,pe.jsx)(cL,{className:xL}),!d&&(0,pe.jsx)(Lk,{pathname:o,elementIndex:e.elementIndex,teaserIndex:e.teaserIndex,analyticsCategory:"seriesInfo",view:e.view,hasWindow:!1,tabIndex:u,title:i}),e.view===hk&&(0,pe.jsx)(_L,{id:e.teaserIndex,hidden:e.isActiveInMarquee,onClick:e.onClickLinkMarquee,tabIndex:-1})]})}},(0,De.A)(t4.prototype,"watchVOD",[je],Object.getOwnPropertyDescriptor(t4.prototype,"watchVOD"),t4.prototype),t4);const n4=hV(s4,{soul:"TEASER_EPISODE"});var i4="CHEYe",r4="FUS3e";class o4 extends Re.Component{shouldComponentUpdate(e){return Dj(e,this.props)}render(){const{props:e}=this,{series:t,title:s,view:n}=e,i=n===gk,r=n===mk||n===uk,o=t.seasons.length,a=Nx(t.id,t.current_season.id),l=yL(e.isActiveInMarquee);return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(vP,{kind:dP,token:e.imageToken,alt:s,view:n,full:!0}),(0,pe.jsxs)(Kk,{className:(0,Ye.A)({[r4]:i,[i4]:r}),view:n,children:[(0,pe.jsx)(Vk,{alt:t.title,token:t.brand?.logo_token,view:n}),(0,pe.jsx)("h2",{className:(0,Ye.A)("kt1bY",Xi),children:s}),(0,pe.jsx)("div",{className:(0,Ye.A)(XP,"Ylmuf"),children:(c={count:o},x(369,c))})]}),(0,pe.jsx)(Lk,{pathname:a,elementIndex:e.elementIndex,teaserIndex:e.teaserIndex,analyticsCategory:"seriesInfo",view:e.view,hasWindow:!1,tabIndex:l,title:s}),t.ribbon&&(0,pe.jsx)("span",{className:K2,children:t.ribbon}),e.view===hk&&(0,pe.jsx)(_L,{id:e.teaserIndex,hidden:e.isActiveInMarquee,onClick:e.onClickLinkMarquee,tabIndex:-1})]});var c}}o4.displayName="TeaserVODSeries";const a4=(e=>{const t=hV(e,{soul:"TEASER_VOD_SERIES"}),s=e=>{const s=e.view===hk;return(0,pe.jsx)(t,{...e,className:(0,Ye.A)(e.className,{[O2]:!s,[D2]:!s})})};return s.displayName=e.displayName||e.name,s})(o4);var l4,c4;const d4="Required data data is missing";let p4=(c4=class extends Re.Component{getWatchContext(e){return this.props.collectsWatchContext?{category_contents:this.props.list.map(({teasable_id:e})=>e).join(),content_category:this.props.pageId,content_index:e}:null}watchVOD(e){this.props.dispatch(ND({term_token:e.term,movie_id:e.movieId,watchContext:this.getWatchContext(e.teaserIndex)}))}watchVODEpisode(e){this.props.dispatch(ID({...e,watchContext:this.getWatchContext(e.teaserIndex)}))}watchLive(e,t){this.props.dispatch(bI({cid:e,watchContext:this.getWatchContext(t)}
1))}watchBroadcast(e){this.props.dispatch(hI({cid:e.cid,pid:e.program.id,rid:e.rid,mode:e.mode,watchContext:this.getWatchContext(e.teaserIndex)}))}channelRecordsList(e,t){return t?t.filter(t=>this.props.recordings[t].cid===e):null}getChannel(e){return this.props.channels[e]}shouldComponentUpdate(e){return Dj(this.props,e)}renderTeaser(e,t){const{props:s}=this,{view:n}=s,i=`${e.teasable_id}`,r={key:i+t,id:i,imageToken:e.image_token,title:e.title,text:e.text,view:n,teaserIndex:t,elementIndex:this.props.index,pageId:this.props.pageId},o=n===hk,a={isActiveInMarquee:o?s.activeMarqueeIndex===t:null,onClickLinkMarquee:o?s.onClickLinkMarquee:null};switch(e.teasable_type){case LA.tT:{const{teasable:t}=e;if(!t)return(0,pe.jsx)(V2,{text:d4,...r,...a});const{edit:n,epgStatus:i,pidrid:o,recordings:l}=s,c=t,d=this.getChannel(t.cid);let p;if(!d)return null;const u=o[c.id];if(((e,t)=>!e&&t)(u,c.hide_unless_recording))return null;if(n){const e=u,t=n.isPicked(e),{inEdit:s,pick:i,unpick:r,onLongPress:o}=n,a=uV(s,t);p={pickId:e,editStatus:a,pick:i,unpick:r,onLongPress:()=>o(e)}}const h=l[u],m=i[c.id]?.position,g=!u&&Ip(d);return(0,pe.jsx)(XZ,{channel:d,program:c,recording:h,isLocked:g,isStreaming:r.id===`${s.streamPID}`,watchBroadcast:this.watchBroadcast,timerUpdate:s.updateTime,hasDetails:s.hasDetails,hasMenu:s.hasMenu,position:m,replayAvailability:s.replayAvailability,networkRecordingEligible:s.networkRecordingEligible,...r,...p,...a})}case LA.du:{const{teasable:t}=e;if(!t)return(0,pe.jsx)(V2,{text:d4,...r,...a});const{cid:n}=t,i=t.now||{},o=this.getChannel(n);return o?(0,pe.jsx)(fV,{...r,...a,id:o.cid,channel:o,program:i,isFavorite:s.channelsFavoritesList.includes(n),isStreaming:n===s.streamCID,isLocked:Ip(o),rid:s.pidrid[i.id],watchLive:this.watchLive,timerUpdate:s.updateTime}):null}case LA.Jg:{const{teasable:t}=e;if(!t)return(0,pe.jsx)(V2,{text:d4,...r,...a});const n=this.getChannel(t.cid);if(!n)return null;const i=t.tv_series_id,o=IA(t.cid,i),l=s.seriesRecords[o],c=this.channelRecordsList(t.cid,l),d=c&&c.length;return(0,pe.jsx)(q2,{channel:n,isLocked:Ip(n),path:this.props.path,recordingsOnly:t.recordings_only,seriesRecordingEligible:t.series_recording_eligible,total:d,tvSeriesId:i,...r,...a})}case LA.u0:case LA.qK:return(0,pe.jsx)(W2,{path:i,pageKind:e.teasable_type,...r,...a});case LA.nl:if(s.isVODEligible){const{teasable:t}=e;if(((e,t,s)=>e&&(!t[rh.nl]||!t[rh.nl][s]))(t.hide_unless_watchlist,s.watchList,t.id))return null;const n=s.vodStatus?.[LA.nl];return(0,pe.jsx)(e4,{...r,...a,movie:t,isStreaming:r.id===s.streamVODID,status:n?.[i],imageStyle:t.image_style,subscriptions:s.vodSubscriptions,watchVOD:this.watchVOD})}return(0,pe.jsx)(V2,{text:"VOD Movie not active yet",...r,...a});case LA.wo:if(s.isVODEligible){const{teasable:t}=e;return((e,t,s)=>e&&!t[rh.wo]?.[s])(t.hide_unless_watchlist,s.watchList,t.id)?null:(0,pe.jsx)(a4,{...r,...a,series:t})}return(0,pe.jsx)(V2,{text:"VOD Series not active yet",...r,...a});case LA.CC:if(s.isVODEligible){const{teasable:t}=e,n=s.vodStatus?.[LA.CC];return(0,pe.jsx)(n4,{...r,...a,episode:t,status:n?.[i],subscriptions:s.vodSubscriptions,watchVOD:this.watchVODEpisode,isStreaming:r.id===`${s.streamVODID}`})}return(0,pe.jsx)(V2,{text:"VOD Episode not active yet",...r,...a});case LA.AM:{const t=M2(e.teasable);return t?(0,pe.jsx)($2,{url:t,...r,...a}):null}case LA.uM:{const{teasable:t}=e;return(0,pe.jsx)($2,{url:t.url,logo:t.external_app.brand_logo_token,callToAction:t.external_app.call_to_action,...r,...a,text:r.text||t.subtitle})}default:return(0,pe.jsx)(V2,{text:"Unknown teaser type. Please report",...r,...a})}}render(){return this.props.list.map(this.renderTeaser,this)}},c4.displayName="TeasersList",l4=c4,(0,De.A)(l4.prototype,"getWatchContext",[je],Object.getOwnPropertyDescriptor(l4.prototype,"getWatchContext"),l4.prototype),(0,De.A)(l4.prototype,"watchVOD",[je],Object.getOwnPropertyDescriptor(l4.prototype,"watchVOD"),l4.prototype),(0,De.A)(l4.prototype,"watchVODEpisode",[je],Object.getOwnPropertyDescriptor(l4.prototype,"watchVODEpisode"),l4.prototype),(0,De.A)(l4.prototype,"watchLive",[je],Object.getOwnPropertyDescriptor(l4.prototype,"watchLive"),l4.prototype),(0,De.A)(l4.prototype,"watchBroadcast",[je],Object.getOwnPropertyDescriptor(l4.prototype,"watchBroadcast"),l4.prototype),l4);const u4=(0,l.Ng)(e=>({channels:jp(e),channelsFavoritesList:Pp(e),collectsWatchContext:L2(e),epgStatus:mf(e),isVODEligible:mh(e),networkRecordingEligible:xh(e),path:Oa(e),pidrid:zf(e),recordings:Yf(e),replayAvailability:_h(e),seriesRecords:Sk(e),streamCID:Cm(e),streamPID:Zu(e),streamVODID:Kh(e),updateTime:EI(e),vodStatus:Ah(e),vodSubscriptions:Th(e),watchList:vX(e)}))(p4),h4=e=>{var t,s;let n=(s=class extends Re.Component{constructor(...e){super(...e),this.loaderRef=(0,Re.createRef)(),this.cachedRef=null,this.wasVisibleOnce=!1,this.state={isVisible:!1}}componentDidMount(){this.cachedRef=this.loaderRef.current,this.cachedRef&&iV(this.cachedRef,this.onIntersectionChange)}componentWillUnmount(){this.cachedRef&&rV(this.cachedRef,this.onIntersectionChange)}onIntersectionChange(e){const{isIntersecting:t}=e;this.state.isVisible!==t&&this.setState({isVisible:t})}render(){const{isVisible:t}=this.state,{wasVisibleOnce:s}=this,n=this.props;return!s&&t&&(this.wasVisibleOnce=!0),(0,pe.jsx)(e,{...n,loaderRef
1:this.loaderRef,isVisible:t,wasVisibleOnce:s})}},s.displayName=e.displayName||e.name,t=s,(0,De.A)(t.prototype,"onIntersectionChange",[je],Object.getOwnPropertyDescriptor(t.prototype,"onIntersectionChange"),t.prototype),t);return n};const m4=e=>(0,pe.jsx)(ZU,{className:"W3DAQ",sectionRef:e.loaderRef,view:e.view,children:(0,pe.jsx)(Ke,{className:"t4TrY",paused:!e.isVisible,centered:!0,delayed:!0})});m4.displayName="TeaserLoader";const g4=h4(m4);var y4;let _4=(y4=class extends Re.Component{constructor(...e){super(...e),this.trackingElementRef=(0,Re.createRef)(),this.observer=null,this.observedElement=null,this.listItemsCount=0}getTrackingElement(){return this.trackingElementRef.current}getScrollRoot(){return this.props.useParentScrollContainer?this.getTrackingElement().parentElement:null}getRootMargin(){const{props:e}=this,{margin:t}=e;let s;return s=t?e.isScrollHorizontal?`0px ${t} 0px 0px`:`0px 0px ${t} 0px`:"0px",s}countListItems(){return this.getTrackingElement().parentElement.childElementCount}initObserver(){this.observer=new IntersectionObserver(this.onIntersectionChange,{root:this.getScrollRoot(),rootMargin:this.getRootMargin()})}observeTrackingElement(){this.unobserveTrackingElement(),this.observedElement=this.getTrackingElement(),this.observer.observe(this.observedElement)}unobserveTrackingElement(){this.observedElement&&(this.observer.unobserve(this.observedElement),this.observedElement=null)}onIntersectionChange(e){e.some(({isIntersecting:e})=>e)&&(this.unobserveTrackingElement(),this.props.onReached())}componentDidMount(){this.listItemsCount=this.countListItems(),this.initObserver(),this.observeTrackingElement()}componentDidUpdate(){const e=this.countListItems();e!==this.listItemsCount&&(this.listItemsCount=e,this.observedElement||this.observeTrackingElement())}componentWillUnmount(){this.observedElement=null,this.observer&&(this.observer.disconnect(),this.observer=null)}render(){return(0,pe.jsx)("span",{className:"h3Mj9",ref:this.trackingElementRef})}},(0,De.A)(y4.prototype,"onIntersectionChange",[je],Object.getOwnPropertyDescriptor(y4.prototype,"onIntersectionChange"),y4.prototype),y4);var E4,v4;let x4=((v4=class extends Re.Component{hasMoreToLoad(){return this.props.total>this.props.teasersCollection.length}loadNextChunk(){const{props:e}=this,t=Math.ceil(e.teasersCollection.length/25);e.dispatch(((e,t,s)=>n=>n(nM({pghash:s,elementId:e,chunkNumber:t})).then(t=>n(iM(e,t.teasers))))(e.pageId,t,e.pghash))}hasOwnScrollArea(){return this.props.view===uk}onLastTeaserVisible(){this.hasMoreToLoad()&&this.loadNextChunk()}render(){const{props:e}=this,t=this.hasOwnScrollArea();return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(u4,{index:e.index,pageId:e.pageId,edit:e.edit,list:e.teasersCollection,view:e.view,hasDetails:e.hasDetails,hasMenu:e.hasMenu}),this.hasMoreToLoad()&&(0,pe.jsx)(g4,{view:e.view}),(0,pe.jsx)(_4,{margin:"600px",onReached:this.onLastTeaserVisible,useParentScrollContainer:t,isScrollHorizontal:t})]})}}).displayName="TeasersChunksList",E4=v4,(0,De.A)(E4.prototype,"onLastTeaserVisible",[je],Object.getOwnPropertyDescriptor(E4.prototype,"onLastTeaserVisible"),E4.prototype),E4);const b4=(0,l.Ng)((e,t)=>({total:t.total??lM(e,t.pageId),teasersCollection:t.teasersCollection||kL(e,t.pageId),pghash:uo(e)}))(x4),A4="next",S4="previous";var T4="Sy2pm",C4="DgcBt";class N4 extends Re.PureComponent{isNext(){return this.props.direction===A4}isPrevious(){return this.props.direction===S4}getTitle(){return this.isPrevious()?B():V()}getSoul(){return this.isPrevious()?"SLIDE_CONTROL_PREVIOUS":"SLIDE_CONTROL_NEXT"}getIconId(){return this.isPrevious()?Dv:_C}render(){const{onClick:e}=this.props;return(0,pe.jsx)(ln,{className:(0,Ye.A)("EXjF_",{slideControl__visible:this.props.visible,[T4]:this.isNext(),[C4]:this.isPrevious()}),onClick:e,title:this.getTitle(),soul:this.getSoul(),color:Et,kind:pt,tabIndex:this.props.visible?0:-1,reference:this.props.reference,icon:this.getIconId()})}}var f4="_6XfTY",I4="K1KWu",w4="cr5U8";class O4 extends Re.PureComponent{getTeasersTotalCount(){const{props:e}=this;return e.isDoppelganger?Math.min(e.element.total,25):e.element.total}render(){const{props:e}=this,t=this.getTeasersTotalCount();return(0,pe.jsxs)("div",{className:(0,Ye.A)(f4,e.className),"data-context":e.dataContext,"data-context-element-id":e.pageId,"data-soul":"ELEMENT_CAROUSEL",children:[(0,pe.jsx)(I2,{title:e.element.title,path:e.element.path,canDrilldown:e.canDrilldown,queryString:e.queryString}),(0,pe.jsxs)("div",{className:I4,children:[(0,pe.jsx)(N4,{direction:S4,onClick:e.previous,visible:!e.leftEdgeReached,reference:e.previousReference}),(0,pe.jsxs)("div",{className:(0,Ye.A)(w4,Rr),ref:e.reference,"data-scroll-area":!0,children:[e.element.logoToken&&!e.isDoppelganger&&(0,pe.jsx)(P2,{logoToken:e.element.logoToken,title:e.element.title,total:t,view:uk,path:e.element.path}),(0,pe.jsx)(b4,{hasMenu:e.hasMenu,index:e.index,pageId:e.pageId,hasDetail
1s:e.hasDetails,teasersCollection:e.teasersCollection,total:t,view:uk})]}),(0,pe.jsx)(N4,{direction:A4,onClick:e.next,visible:!e.rightEdgeReached,reference:e.nextReference})]})]})}}O4.displayName="ElementCarousel";const D4=bB((e=>{var t,s;let n=(s=class extends Re.PureComponent{constructor(...e){super(...e),this.nextReference=(0,Re.createRef)(),this.previousReference=(0,Re.createRef)()}getTabbableElement(e){const t=this.getScrollArea(),s=t.getBoundingClientRect(),n=Array.from(t.children);e===T2&&n.reverse();const i=n.find(e=>{const t=e.getBoundingClientRect();return s.left<=t.left&&s.right>=t.right});return(0,S2.Kr)(i,{includeContainer:!0})[0]}onFocusIn(e){if(!this.props.isInputSourceKeyboard)return;const{relatedTarget:t}=e,s=this.previousReference.current,n=this.nextReference.current;if(t===n)return void this.getTabbableElement(T2)?.focus();if(t===s)return void this.getTabbableElement("first")?.focus();const i=e.target.getBoundingClientRect(),r=this.getScrollArea().getBoundingClientRect();r.left>i.left?s.focus():r.right<i.right&&n.focus()}getScrollArea(){return this.props.reference.current}componentDidMount(){this.getScrollArea().addEventListener("focusin",this.onFocusIn)}componentWillUnmount(){this.getScrollArea().removeEventListener("focusin",this.onFocusIn)}render(){const t=this.props;return(0,pe.jsx)(e,{nextReference:this.nextReference,previousReference:this.previousReference,...t})}},s.displayName=e.displayName||e.name,t=s,(0,De.A)(t.prototype,"onFocusIn",[je],Object.getOwnPropertyDescriptor(t.prototype,"onFocusIn"),t.prototype),t);return(0,l.Ng)(C2)(n)})(O4));var R4=s(9639);var j4="gy4MI";const k4=e=>{const{summary:t,isInProgress:s}=e,n=(0,Re.useRef)(!1);t&&(n.current=!0);const i=Boolean(s)&&n.current,r=Boolean(t)||i,[o,a]=(0,Re.useState)(r);if(r&&!o&&a(!0),!o)return null;return(0,pe.jsx)("div",{className:(0,Ye.A)("NpzWp",{[j4]:!r}),onAnimationEnd:()=>{r||(n.current=!1,a(!1))},children:(0,pe.jsx)("div",{className:"_wN9B",children:(0,pe.jsxs)(S_,{className:"SbG2E",soul:"SEARCH_AI_SUMMARY",children:[(0,pe.jsxs)("div",{className:"dXOJJ",children:[(0,pe.jsx)("span",{className:"tXLNp",children:x(240)}),(0,pe.jsxs)("span",{className:"J1A8P",children:[(0,pe.jsx)(ft,{className:"WJwmc",id:"icons-sparkle"}),x(239)]})]}),i?(0,pe.jsx)("div",{className:"g3EcP",children:(0,pe.jsx)("span",{className:"PbCnG"})}):(0,pe.jsx)("p",{className:"nlWsK",children:t})]})})})},P4=s.p+"assets/image-655f6db8bf1f686dcd67.svg",L4=e=>{return(0,pe.jsx)(St,{title:oc(),text:(t={query:e.query},x(245,t)),image:()=>(0,pe.jsx)(en,{width:150,height:150,src:P4,alt:oc()}),soul:"SEARCH_EMPTY_RESULTS"});var t},M4=e=>{const{elements:t,summary:s,query:n}=e,i=(0,l.d4)(Uz),{search:r}=(0,de.zy)();if(!n||n.length<3)return null;const o=t.filter(e=>e.teasers.length>0);return i||o.length?(0,pe.jsxs)("div",{"data-soul":"SEARCH_RESULTS_PAGE",children:[(0,pe.jsx)(k4,{summary:s,isInProgress:i}),o.map(e=>{return(0,pe.jsx)(D4,{canDrilldown:!1,element:(t=e,{isLoaded:!0,kind:R4.Hi,logoToken:"",pageId:t.title,path:"",perChunk:t.teasers.length,style:t.content.style,subtitle:t.subtitle,text:"",title:t.title,total:t.teasers.length}),pageId:e.title,teasersCollection:e.teasers,dataContext:Zt,queryString:r},e.title);var t})]}):(0,pe.jsx)(L4,{query:n})},U4=()=>{const e=(0,l.wA)(),t=(0,de.g)()[cx],[s,n]=(0,Re.useState)([]),[i,r]=(0,Re.useState)("");let o="";try{o=t?decodeURIComponent(t):""}catch(e){if(!(e instanceof URIError))throw e}return(0,Re.useEffect)(()=>{const t=new AbortController;if(o.length>=3){const s=async()=>{e({type:Pz});try{const e=await A2.C({query:o},{signal:t.signal});n(e.elements),r(e.summary??"")}catch(e){(0,m.r6)(e)&&e.code===ua.oq||(n([]),r(""))}finally{t.signal.aborted||e({type:Lz})}};s()}else n([]),r("");return()=>{t.abort()}},[o,e]),(0,Re.useEffect)(()=>{const t=document.getElementById(Mz);return t&&t.focus(),e(E_({title:x(244)})),Ud(),()=>{e({type:kz})}},[e]),(0,pe.jsx)(M4,{elements:s,summary:i,query:o})},V4=s.p+"assets/recordings-upgrade-d0763f565b2355676078.svg";class B4 extends Re.Component{getPoints(){return x(231).split("\n")}componentDidMount(){this.props.dispatch(E_({title:Dl(),funnel:Kc.RECORDINGS})),Ud()}render(){const e=Ee();return(0,pe.jsxs)(S_,{className:"rafL8",full:!0,horizontal:et,vertical:st,soul:"RECORDINGS_UPGRADE_PAGE",children:[(0,pe.jsx)(en,{src:V4,alt:rc(),width:200,height:"auto"}),(0,pe.jsx)("h2",{className:"CdTsb",children:rc()}),(0,pe.jsx)("ul",{className:"LVeBG",children:this.getPoints().map((e,t)=>(0,pe.jsx)("li",{className:"NcAAq",children:e},t))}),e&&(0,pe.jsx)(qs,{className:"QDSt1",href:e,color:_t,kind:dt,soul:"RECORDINGS_UPGRADE_SHOP_LINK",children:x(230)})]})}}B4.displayName="RecordingsUpgrade";const F4=(0,l.Ng)()(B4);const H4=e=>(0,pe.jsxs)("section",{className:"nKdtn","data-soul":e.soul,children:[e.title&&(0,pe.jsx)("h2",{id:e.id,className:"HYDl6",children:e.title}),(0,pe.jsx)("div",{className:"Lwt8S",children:e.children})]});var G4="TY3BY",q4="CGoeb";I.account;const Y4=()=>{const e=(0,l.d4)(fe);return(0,pe.jsxs)(H4,{id:"account",title:x(257),children:[(0,pe.jsxs)("div",{className:(0,Ye.A)("MSsV_"),children:[(0,pe.jsxs)("p",{className:"E6mBN",children:[(0,pe.jsx)("span",{className:"hF0jV",children:x(255)}),(0,pe.jsx)("span",{className:"DqbBp","data-soul":"SETTINGS_ACCOUNT_NAME",children:e})]}),(0,pe.jsx)(qs,{className:G4,to:xv,soul:"SETTINGS_CONTROL_LOGOUT",kind:ut,color:Et,children:M()})]}),(0,pe.jsx)(qs,{className:"p8eso",color:yt,href:Sv,soul:"SETTINGS_CONTROL_ACCOUNT",target:"_self",link:!0,children:x(256)})]})};var W4="HU3Yj",z4="zQgY2";var $4;let K4=($4=class extends Re.Component{constructor(...e){super(...e),this.state={expanded:!1}}handleClick(){this.setState({expanded:!this.state.expanded})}render(){const{props:e,state:t}=this;return(0,pe.jsxs)("div",{className:(0,Ye.A)("ezzEe",e.className),"data-soul":e.soul,children:[(0,pe.jsxs)("button",{onClick:this.handleClick,className:"GvuBW","aria-label":e.title,"aria-expanded":t.expanded,"data-soul":"HOTKEYS_INFO_CONTROL",children:[(0,pe.jsx)("span",{className:"SRiTc",children:e.title}),(0,pe.jsx)(ft,{id:A0,className:(0,Ye.A)("Cizbd",{[z4]:t.expanded})})]}),(0,pe.jsx)("div",{className:(0,Ye.A)("DnFLs",{[W4]:t.expanded}),children:e.children})]})}},(0,De.A)($4.prototype,"handleClick",[je],Object.getOwnPropertyDescriptor($4.prototype,"handleClick"),$4.prototype),$4);const Q4=I.support,Z4=()=>(0,pe.jsxs)(H4,{id:"help",title:x(270),children:[(0,pe.jsx)(K4,{title:cc(),className:"tGgQr",soul:"SETTINGS_HOTKEYS_EXPANDER",children:(0,pe.jsx)(hH,{hasPiP:!0})}),Q4?(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)("span",{className:"zDUE9",children:x(264)}),(0,pe.jsx)(qs,{target:"_blank",rel:"noopener",color:yt,href:Q4,soul:"SETTINGS_SUPPORT_LINK",link:!0,children:x(269)})]}):null]});const X4="switcher";var J4="FnAWV",e3="MVo6Z",t3="UakYb",s3="n0Qpx",n3="dEGAo",i3="QMmMY",r3="HLLVb",o3="emhoe",a3="U11mM",l3="UbhJi",c3="H7A3P",d3="esmDy";const p3=e=>{const[t,s]=(0,Re.useState)(!1),{reversed:n}=e,i="classic"===e.kind,r=e.kind===X4,o=e.disabled||t;return(0,pe.jsxs)("label",{className:(0,Ye.A)("bSMkn",e.className,{[J4]:i,[e3]:e.disabled,[t3]:e.fullWidth,[s3]:t,[n3]:n,[i3]:r}),"data-soul":e.soul,children:[(0,pe.jsx)("input",{className:"lNg7I",id:e.id,name:e.name,type:"checkbox",value:e.value,onChange:async t=>{if(e.onChange){e.async&&s(!0);try{await e.onChange(t)}
1catch(s){t.target.checked=!t.target.checked,e.onError?.(s)}e.async&&s(!1)}},checked:e.checked,defaultChecked:e.defaultChecked,disabled:o,role:e.role,"data-soul":"CHECKBOX"}),(0,pe.jsx)("span",{className:(0,Ye.A)("KY4zm",{[r3]:i,[o3]:n,[a3]:r})}),(0,pe.jsx)("span",{className:(0,Ye.A)("MXQ4A",{[l3]:i,[c3]:n,[d3]:r}),children:i&&(0,pe.jsx)(ft,{id:Ii,className:"eS5O0"})}),(0,pe.jsx)("span",{className:"dkvUU",children:e.children})]})};const u3=e=>{const{children:t,className:s,soul:n,...i}=e;return(0,pe.jsx)(p3,{...i,role:"switch",className:(0,Ye.A)("hIsDo",s),kind:X4,soul:n||"SWITCH_FIELD_CHECKBOX",reversed:!0,fullWidth:!0,children:t&&(0,pe.jsx)("div",{className:e.contentClassName,children:t})})};const h3=e=>(0,pe.jsx)(ln,{className:e.className,soul:"PRIVACY_SETTINGS",onClick:ko,color:yt,text:x(284),link:!0});const m3=I.privacy_policy,g3=()=>(0,pe.jsxs)(H4,{id:"privacy",title:x(283),children:[(0,pe.jsx)("div",{className:"bl6cu",children:m3&&(0,pe.jsx)("div",{className:q4,children:(0,pe.jsx)(qs,{target:"_blank",rel:"noopener",color:yt,href:m3,soul:"SETTINGS_PRIVACY_LINK",link:!0,children:x(282)})})}),(0,pe.jsx)(h3,{className:q4}),!1]});var y3="GzGYt";const _3=ge.company_about?.options?.url,E3=I.imprint,v3=ge.company_about?.options?.multi_language,x3=I.terms_and_conditions,b3=()=>{const e=((e,t)=>{let s;switch(e){case Hu.CH:switch(t){case TP.DE:s="ch";break;case TP.FR:s="ch/fr";break;default:s="ch/en"}break;case Hu.DE:s=t===TP.DE?"de":"de/en";break;case Hu.DK:s="dk";break;case Hu.ES:s=t===TP.ES?"es":"es/en";break;case Hu.GB:s="gb";break;default:s="int"}return s})((0,l.d4)(Oe),(0,l.d4)(po)),t=v3?`${_3}/${e}`:`${_3}`;return(0,pe.jsxs)(H4,{id:"generalInformation",title:x(262),children:[(0,pe.jsxs)("div",{className:y3,children:[(0,pe.jsx)("span",{className:"JXpuZ",children:x(259)}),(0,pe.jsx)(qs,{target:"_blank",rel:"noopener",color:yt,soul:"SETTINGS_ABOUT_LINK",href:t,link:!0,children:C})]}),x3&&(0,pe.jsx)("div",{className:y3,children:(0,pe.jsx)(qs,{target:"_blank",rel:"noopener",color:yt,href:x3,soul:"SETTINGS_TERMS_LINK",link:!0,children:x(261)})}),E3&&(0,pe.jsx)("div",{className:y3,children:(0,pe.jsx)(qs,{target:"_blank",rel:"noopener",color:yt,href:E3,soul:"SETTINGS_LEGAL_NOTES_LINK",link:!0,children:x(260)})})]})},A3=()=>{const e=((e,t,s=" ")=>e.split("").reduce((e,n,i)=>(e+=n,(i+1)%t===0&&(e+=s),e),"").trim())(ia().slice(-8),4);return(0,pe.jsxs)(H4,{title:x(258),children:["*** ",e]})};var S3="mks3Z";const T3=()=>{const e=Ee();return(0,pe.jsxs)(H4,{title:x(290),soul:"SETTINGS_UPGRADE_SECTION",children:[(0,pe.jsx)("div",{className:S3,children:(0,pe.jsx)("p",{children:x(288)})}),(0,pe.jsx)("div",{className:S3,children:(0,pe.jsx)(qs,{color:yt,href:e,soul:"SETTINGS_UPGRADE_LINK",target:"_self",link:!0,onClick:()=>{vA("settings"),as({action:"openShop",category:"shopReference",label:"shopSettingsUpgrade"})},children:x(289)})})]})};const C3=()=>{const e=(0,l.wA)();if(!(0,l.d4)(el))return null;return(0,pe.jsx)(H4,{soul:"SETTINGS_PWA_PROMO_SECTION",children:(0,pe.jsxs)("div",{className:"DNpJb",children:[(0,pe.jsx)(NK,{}),(0,pe.jsx)("div",{className:"DdamC",children:nc({tenantTitle:C})}),(0,pe.jsx)(ln,{className:(0,Ye.A)("nOpF5",G4),onClick:()=>e(kc()),soul:"SETTINGS_PWA_PROMO_CONTROL",kind:ut,color:_t,text:sc()})]})})};const N3=I.revoke_contract,f3=()=>(0,pe.jsxs)(H4,{id:"revokeContract",title:x(287),soul:"SETTINGS_REVOKE_CONTRACT_SECTION",children:[(0,pe.jsx)("p",{className:"oZ_bZ","data-soul":"SETTINGS_REVOKE_CONTRACT_INFO",children:x(286)}),(0,pe.jsx)(qs,{color:yt,href:N3,soul:"SETTINGS_CONTROL_REVOKE_CONTRACT",target:"_blank",rel:"noopener",link:!0,children:x(285)})]});const I3=e=>(0,pe.jsxs)("div",{className:"U_VWs",children:[(0,pe.jsx)("h3",{className:"l2kP4",children:e.title}),(0,pe.jsx)("div",{className:"b68h3",children:e.children})]});const w3={[Jy]:e_,[e_]:Jy},O3=e=>{const t=(0,l.d4)(i_),s=t===Jy,n=e.secret?I3:H4;return(0,pe.jsxs)(n,{title:x(280),children:[(0,pe.jsx)(u3,{className:"YWwp_",soul:"MENU_LEGACY_TOGGLE",checked:s,onChange:()=>{_$(w3[t]),Un({type:"LEGACY_MENU_TOGGLE",enabled:!s}),location.reload()},children:(0,pe.jsx)("p",{className:"tqsVC",children:x(281)})}
1),x(279)]})},D3="SETTINGS_SECRETS_ACTIVATED",R3="SETTINGS_SECRETS";var j3="NTPUt";const k3=()=>{const[e,t]=(0,Re.useState)(0),s=(0,l.d4)(tZ),n=(0,l.wA)();return(0,Re.useEffect)(()=>{10===e&&n(e=>{oe(R3,!0),bi({text:"Secrets activated",soul:"SECRETS_TOAST_ACTIVATED"}),e({type:D3})})},[n,e]),(0,pe.jsx)(H4,{title:x(291),children:s?(0,pe.jsx)("span",{className:j3,children:sa}):(0,pe.jsx)("button",{className:j3,onClick:()=>{t(e+1)},"data-soul":"APPLICATION_VERSION",children:sa})})};var P3;let L3=(P3=class extends Re.Component{constructor(...e){super(...e),this.state={triggerError:!1}}onCrashBtnClick(){this.setState({triggerError:!0})}render(){if(this.state.triggerError)throw new Error;return(0,pe.jsx)(I3,{title:"Error Screen",children:(0,pe.jsx)(ln,{kind:dt,color:gt,onClick:this.onCrashBtnClick,soul:"SETTINGS_ERROR_SCREEN_BTN",text:"Crash Application"})})}},(0,De.A)(P3.prototype,"onCrashBtnClick",[je],Object.getOwnPropertyDescriptor(P3.prototype,"onCrashBtnClick"),P3.prototype),P3);var M3;const U3="cast-envs-list";let V3=(M3=class extends Re.Component{constructor(...e){super(...e),this.state={pickedAppId:eb}}onSubmit(e){e.preventDefault(),oe(Xx,this.state.pickedAppId),location.reload()}onEnvironmentChange(e){this.setState({pickedAppId:e.target.value})}getEnvironmentName(e){return Object.keys(Jx).find(t=>Jx[t]===e)}render(){const{pickedAppId:e}=this.state,t=Object.values(Jx).map(e=>(0,pe.jsx)("option",{value:e,children:this.getEnvironmentName(e)},e));return(0,pe.jsx)(I3,{title:"Chromecast",children:(0,pe.jsxs)("form",{className:"lZJR3",onSubmit:this.onSubmit,autoComplete:"off",children:[(0,pe.jsx)(M_,{name:"cast",list:U3,className:"kWj7C",defaultValue:e,onChange:this.onEnvironmentChange}),(0,pe.jsx)("datalist",{id:U3,children:t}),(0,pe.jsx)(ln,{kind:dt,color:Et,disabled:e===eb,soul:"SETTINGS_CONTROL_CAST_ENVIRONMENT",text:"Change",submit:!0})]})})}},(0,De.A)(M3.prototype,"onSubmit",[je],Object.getOwnPropertyDescriptor(M3.prototype,"onSubmit"),M3.prototype),(0,De.A)(M3.prototype,"onEnvironmentChange",[je],Object.getOwnPropertyDescriptor(M3.prototype,"onEnvironmentChange"),M3.prototype),M3);const B3=()=>(0,pe.jsx)(I3,{title:"Mode Activity",children:(0,pe.jsx)(ln,{onClick:()=>{re(iC),re(Xx),re(R3),window.location.reload()},soul:"SECRETS_DEACTIVATION",kind:dt,color:Et,text:"Clean & Deactivate"})}),F3=()=>(0,pe.jsx)(I3,{title:"App Host",children:(0,pe.jsx)("p",{children:location.host})});var H3="pz5Vd";const G3="field";var q3="h5a_V",Y3="_MEea",W3="k34xZ",z3="HCRjk",$3="ALUX9",K3="SQ9Fa",Q3="hyv1s",Z3="zmK1K";const X3=e=>{const{color:t,fullWidth:s,inverse:n,kind:i}=e;return(0,pe.jsxs)("span",{className:(0,Ye.A)(e.wrapClassName,{[Q3]:s,[Z3]:n,[H3]:i===G3},"yz5sg"),children:[(0,pe.jsx)("select",{autoFocus:e.autofocus,className:(0,Ye.A)("shEvM",{[z3]:s,[$3]:"primary"===t,[K3]:"secondary"===t,[Y3]:"button"===i,[W3]:i===G3},e.className),disabled:e.disabled,defaultValue:e.defaultValue,form:e.form,id:e.id,multiple:e.multiple,name:e.name,onChange:e.onChange,required:e.required,size:e.size,"data-soul":e.soul,children:e.children.map(e=>{const{value:t}=e;return(0,pe.jsx)("option",{value:t,label:e.label,disabled:e.disabled,selected:e.selected,children:e.text},t)})}),(0,pe.jsx)("span",{className:(0,Ye.A)("iXz13",{[q3]:i===G3})})]})},J3=()=>{const[e,t]=(0,Re.useState)(ce()),s=Object.values(ne).map(e=>({text:e,value:e}));return(0,pe.jsx)(X3,{name:"ZAPI Stage",onChange:e=>{return s=e.target.value,t(s),oe(le,s),void ra();var s},defaultValue:e,"data-soul":"ZAPI_STAGE_CONTROL",children:s})},e5=()=>(0,pe.jsx)(I3,{title:"ZAPI Stage",children:(0,pe.jsx)(J3,{})}),t5=()=>(0,pe.jsxs)(I3,{title:"Player",children:[(0,pe.jsx)(u3,{soul:"PLAYER_DEBUG_SWITCH",onChange:()=>{oe(iC,!rC),location.reload()},defaultChecked:rC,children:"Debug"}),(0,pe.jsx)(u3,{soul:"PLAYER_PERSISTENT_OSD_SWITCH",onChange:()=>{oe(lG,!cG),location.reload()},defaultChecked:cG,children:"Persistent OSD"}),(0,pe.jsx)(u3,{onChange:()=>{oe(df,!pf()),location.reload()},defaultChecked:pf(),children:"Thumbnails"})]});var s5=s(6923),n5="i2eAd";const i5=()=>{const[e,t]=(0,Re.useState)(null);return(0,Re.useEffect)(()=>{Be().then(e=>{t(e)})},[]),(0,pe.jsx)(I3,{title:"System Info",children:e?(0,pe.jsx)("table",{children:(0,pe.jsx)("tbody",{children:Object.entries(e).map(([e,t])=>(0,pe.jsxs)("tr",{children:[(0,pe.jsx)("th",{className:n5,children:(0,s5.A)(e)}),(0,pe.jsx)("td",{className:n5,children:t||"-"})]},e))})}):(0,pe.jsx)(Ke,{})})},r5=()=>(0,pe.jsxs)(H4,{id:"secrets",title:"Secrets",soul:"SECRETS_SECTION",children:[(0,pe.jsx)(e5,{}),(0,pe.jsx)(i5,{}),(0,pe.jsx)(t5,{}),(0,pe.jsx)(O3,{secret:!0}),(0,pe.jsx)(V3,{}),(0,pe.jsx)(F3,{}),(0,pe.jsx)(L3,{}),(0,pe.jsx)(B3,{})]}),o5=()=>{const e=(0,l.wA)(),t=(0,l.d4)(tZ),s=(0,l.d4)(l_);return(0,Re.useEffect)(()=>{e(E_({funnel:Jc,title:Rl()})),D0(),Ud()},[e]),(0,pe.jsxs)(S_,{className:"DUk1d",vertical:st,horizontal:et,soul:"SETTINGS_PAGE",children:[(0,pe.jsx)(Y4,{}),s&&(0,pe.jsx)(C3,{}),(0,pe.jsx)(T3,{}),(0,pe.jsx)(Z4,{}),I.revoke_contract&&(0,pe.jsx)(f3,{}),(I.privacy_policy,(0,pe.jsx)(g3,{})),!1,(0,pe.jsx)(b3,{}),void 0,(0,pe.jsx)(k3,{}),t&&(0,pe.jsx)(r5,{}),(0,pe.jsx)(A3,{})]})},a5=e=>parseInt(e[mx],10);const l5=e=>{const{imageBaseUrl:t}=(0,Re.useContext)(pa),s=(0,ZS.Rm)({url:t,token:e.token,width:.1*Number(e.width),height:.1*Number(e.height)});return(0,pe.jsx)(en,{alt:e.alt,className:(0,Ye.A)(e.className,"zSLfb"),src:s,soul:"PLACEHOLDER_IMAGE",width:e.width,height:e.height,ariaHidden:!0,fadeIn:!0})},c5=({token:e,dimensions:t,title:s,width:n,height:i,...r})=>{const{imageBaseUrl:o}=(0,Re.useContext)(pa);return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(l5,{alt:s,token:e,width:n,height:i,className:r.className}),(0,pe.jsxs)("picture",{...r,children:[t.map(t=>(0,pe.jsx)("source",{srcSet:`${(0,ZS.Rm)({url:o,token:e,width:t.width,height:t.height})}, ${(0,ZS.Rm)({url:o,token:e,width:2*t.width,height:2*t.height})} 2x`,media:`(min-width: ${t.from}px)`},t.from)),(0,pe.jsx)(en,{alt:s,soul:"ZATTIC_PICTURE",fadeIn:!0,...XS({imageBaseUrl:o,token:e,width:n,height:i}),...r})]})]})};var d5="LdJT2";const p5=e=>{const t=(0,l.d4)(u_),s=(0,l.d4)(Pa),{className:n,iconClassName:i,...r}=e;return(0,pe.jsx)(L$,{className:(0,Ye.A)("MCYaT",n),iconClassName:(0,Ye.A)(d5,i),...t,queryString:s,...r})},u5=e=>(0,pe.jsx)(Ci,{className:e.className,iconClassName:(0,Ye.A)(d5,e.iconClassName),onClick:e.onClick,soul:"EDIT_MODE_CONTROL_CLOSE",tap:!0});var h5="Z1_RP",m5="QS4_f",g5="uW1t7",y5="rJIed",_5="NtIRI",E5="PFIFj",v5="lDgWR",x5="BR0st";const b5=e=>(0,pe.jsxs)("div",{className:(0,Ye.A)(h5,"LiJnB"),children:[e.inEdit?(0,pe.jsx)(u5,{className:(0,Ye.A)(_5,"hlC4o"),iconClassName:x5,onClick:e.cancelEdit}):(0,pe.jsx)(p5,{iconClassName:x5,title:null}),(0,pe.jsx)("h2",{className:(0,Ye.A)(x5,m5,g5),children:e.inEdit?ac():e.title})]});var A5="Eqe03",S5="eg1V2";const T5=e=>{const{image_token:t}=e.series,s=_A(e.channel),{text:n,hasControl:i}=((e,t,s)=>s?e?{text:x(251),hasControl:!0}:t?{text:Gl({title:s}),hasControl:!1}:{text:x(250),hasControl:!0}:{text:null,hasControl:!1})(e.series.series_recording_active,s,e.channel?.title);return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)("div",{className:"mEWLd","data-soul":"SERIES_HEADER",children:t&&(0,pe.jsx)(c5,{className:"OqdlT",token:t,title:e.series.title,width:448,height:252,dimensions:[{width:1024,height:576,from:Bt},{width:762,height:432,from:411}]})}),e.isMenuHorizontal&&(0,pe.jsx)(b5,{inEdit:e.inEdit,cancelEdit:e.cancelEdit,title:e.series.title}),(0,pe.jsxs)(S_,{className:(0,Ye.A)("k4lvz",{[A5]:e.isViewSplit,[S5]:e.isViewSplit&&e.isMenuHorizontal}),horizontal:tt,children:[e.channel&&(0,pe.jsx)(KT,{alt:e.channel.title,className:"t8EUZ",token:Sp(e.channel).logo_token,width:72,height:24,fadeIn:!0}),(0,pe.jsx)("h2",{className:"_7Do5","data-soul":"SERIES_HEADER_HEADING",children:e.series.title}),e.isRecordingAvailable&&(0,pe.jsx)("div",{className:"zIkzw",children:i?(0,pe.jsx)(u3,{className:"ktmzw",id:"series-recording-switch",onChange:e.toggleSeriesRecording,checked:e.series.series_recording_active,soul:"SERIES_SWITCHER",async:!0,disabled:e.inEdit,children:(0,pe.jsx)(B2,{hasIcon:e.series.series_recording_active,text:n})}):(0,pe.jsx)(B2,{hasIcon:e.series.series_recording_active,text:n})})]})]})},C5=e=>({funnel:od(e),inEdit:SW(e),pickedIds:CW(e)}),N5=e=>{var t,s;let n=(s=class extends Re.Component{pick(e,t){this.props.dispatch((e=>(t,s)=>{const n=s();t({type:ZW,pickedIds:(0,EM.A)(CW(n),[e]),excludedIds:TW(n)?(0,VW.A)(NW(n),[e]):[]})})(e)),as({action:"select_recording",category:this.props.funnel,label:t?"longpress":"click"})}unpick(e,t){this.props.dispatch((e=>(t,s)=>{const n=s();t({type:sz,pickedIds:(0,VW.A)(CW(n),[e]),excludedIds:TW(n)?(0,EM.A)(NW(n),[e]):[]})})(e)),as({action:"unselect_recording",category:this.props.funnel,label:t?"longpress":"click"})}isPicked(e){const{pickedIds:t}=this.props;return!!Array.isArray(t)&&t.includes(e)}onLongPress(e){this.isPicked(e)?this.unpick(e,!0):(this.props.inEdit||(this.props.dispatch(iz(!0)),as({action:"enter_edit_mode",category:this.props.funnel,label:"longpress"})),this.pick(e,!0))}render(){const{inEdit:t,pickedIds:s,...n}=this.props,i=n;return(0,pe.jsx)(e,{edit:{inEdit:t,pickedIds:s,pick:this.pick,unpick:this.unpick,onLongPress:this.onLongPress,isPicked:this.isPicked},...i})}},s.displayName=e.displayName||e.name,t=s,(0,De.A)(t.prototype,"pick",[je],Object.getOwnPropertyDescriptor(t.prototype,"pick"),t.prototype),(0,De.A)(t.prototype,"unpick",[je],Object.getOwnPropertyDescriptor(t.prototype,"unpick"),t.prototype),(0,De.A)(t.prototype,"isPicked",[je],Object.getOwnPropertyDescriptor(t.prototype,"isPicked"),t.prototype),(0,De.A)(t.prototype,"onLongPress",[je],Object.getOwnPropertyDescriptor(t.prototype,"onLongPress"),t.prototype),t);return(0,l.Ng)(C5)(n)},f5=e=>(0,pe.jsxs)(RU,{view:e.view,children:[(0,pe.jsx)(AL,{channel:e.channel,program:e.program}),(0,pe.jsx)(bU,{program:e.program,channel:e.channel,onRemove:e.onSeriesRecordRemove}),(0,pe.jsx)(EU,{program:e.program,channel:e.channel,onRemove:e.onEpisodeRecordRemove,onRemoveUndo:e.onEpisodeRecordRemoveUndo}),(0,pe.jsx)(NU,{channel:e.channel,program:e.program})]});var I5,w5;let O5=(w5=class extends Re.Component{constructor(...e){super(...e),this.longPressListener=new UZ}watch(e){e.preventDefault(),this.props.watchBroadcast(this.props.program,this.props.position),as({action:"pvr",category:"watch",label:Jt})}getPosition(){const{props:e}=this;if(e.position)return e.position;return hm(e.program)?Vt.hY():null}shouldComponentUpdate(e){return Dj(e,this.props)}componentDidMount(){this.longPressListener.subscribe(this.props.sectionRef?.current,this.props.onLongPress)}componentWillUnmount(){this.longPressListener.unsubscribe()}render(){const{props:e}=this;if(!e.program)return null;const{program:t,channel:s,view:n}=e,{e:i,s:r}=t,o=`${t.id}`,a=t.et||t.t||e.fallbackTitle,l=Uw(t.s_no,t.e_no),c=this.getPosition(),d=mm(t),p=pV(e.editStatus),u=dV(e.editStatus);return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(vP,{kind:dP,view:n,token:t.i_t,alt:a,children:(0,pe.jsx)(EL,{onClick:this.watch,title:hl(),soul:"TEASER_SERIES_EPISODE_OVERLAY_WATCH",tabIndex:-1})}),(0,pe.jsxs)(Kk,{view:n,withMenu:!0,children:[(0,pe.jsx)(qk,{pretitle:l,title:a,text:t.d,descriptionHasTwoRows:!0}),(0,pe.jsxs)(Fk,{view:n,children:[(0,pe.jsx)(SP,{hasProgress:!d,progressTimeNow:c,progressTimeMax:i,progressTimeMin:r}),(0,pe.jsxs)("div",{className:XP,children:[(0,pe.jsx)(gL,{className:vL,cid:s.cid,program:t}),(0,pe.jsx)(ZP,{startTime:r,endTime:i,view:n,highlightUpcoming:!0})]}),p?(0,pe.jsx)($Z,{view:n,isPicked:u}
1):(0,pe.jsx)(f5,{channel:s,program:t,view:n,onEpisodeRecordRemove:e.onEpisodeRecordRemove,onSeriesRecordRemove:e.onSeriesRecordRemove,onEpisodeRecordRemoveUndo:e.onEpisodeRecordRemoveUndo})]}),(0,pe.jsx)(Lk,{pathname:lx(s.cid,o),tabIndex:p?-1:0,title:a})]}),p?(0,pe.jsx)(GZ,{isPicked:u,pick:e.pick,pickId:e.pickId,unpick:e.unpick,title:a}):d&&(0,pe.jsx)(C0,{})]})}},w5.displayName="TeaserSeriesEpisode",I5=w5,(0,De.A)(I5.prototype,"watch",[je],Object.getOwnPropertyDescriptor(I5.prototype,"watch"),I5.prototype),I5);const D5=hV(O5,{soul:"TEASER_SERIES_EPISODE"});class R5 extends Re.Component{shouldComponentUpdate(e){return Dj(e,this.props)}render(){const{edit:e,epgStatus:t,programs:s,view:n}=this.props;return(0,pe.jsx)(GV,{className:"lLwM3",view:n,children:s.length?s.map(s=>{const i=this.props.pidrid[s.id],r=t[s.id]?.position;return(0,pe.jsx)(D5,{position:r,channel:this.props.channel,disabled:e.inEdit&&!i,isStreaming:s.id===this.props.streamPID,isHighlighted:s.cw,program:s,fallbackTitle:this.props.title,view:n,watchBroadcast:this.props.watchBroadcast,pickId:i,editStatus:uV(e.inEdit,e.isPicked(i)),pick:e.pick,unpick:e.unpick,onSeriesRecordRemove:this.props.onSeriesRecordRemove,onEpisodeRecordRemove:this.props.onEpisodeRecordRemove,onEpisodeRecordRemoveUndo:this.props.onEpisodeRecordRemoveUndo,onLongPress:()=>e.onLongPress(i)},`${s.id}`)}):(0,pe.jsx)("p",{children:lc()})})}}R5.displayName="SeriesEpisodesList";const j5=N5(R5);var k5,P5;let L5=(P5=class extends Re.Component{constructor(...e){super(...e),this.state={ready:!1,findCurrentSeasonFromAll:this.props.season===FW}}redirectToAllEpisodes(){this.props.dispatch(qa({path:this.props.path,preserve:!0}))}getSeriesRequest(){const e={tv_series_id:this.props.tvSeriesId,cid:this.props.channel?.cid},{recordingsOnly:t}=this.props;return t&&(e.recordings_only=t),e}isAllSeasons(){return this.props.season===FW}fetchSeries(){const{dispatch:e}=this.props,t=this.getSeriesRequest();return this.isAllSeasons()?e(YW({...t,all_seasons:!this.state.findCurrentSeasonFromAll})):e(WW({...t,season_number:Number(this.props.season)}))}onRecordRemove(e=!1){if(!this.props.recordingsOnly)return;(1===this.props.series?.programs?.length||e)&&!this.isAllSeasons()?this.redirectToAllEpisodes():this.remount()}getPrograms(){return this.isAllSeasons()?this.props.series.programs:this.props.series.programs.filter(({s_no:e})=>e===parseInt(this.props.season,10))}async mount(){let e;this.setState({ready:!1});try{e=await this.fetchSeries(),this.setState({ready:!0})}catch(e){this.props.dispatch((e=>t=>{(0,m.r6)(e)&&BW(e)||t(qW(e))})(e))}if(e){const{title:t}=e;this.props.dispatch(E_({funnel:this.props.recordingsOnly?Zc:Xc,title:t}))}else this.props.dispatch((t=this.props.breadcrumbPath,e=>{e(qa({path:t||Bd,preserve:!0}))}));var t}remount(){this.props.inEdit&&this.props.dispatch(pz()),this.mount()}shouldRedirect(){const{seasons:e}=this.props;return!e||!e.includes(this.props.season)}handleRoute(){const{props:e}=this,{dispatch:t}=e;let s;null===e.series.tv_series_id?s=Te:this.shouldRedirect()?s=e.path:this.props.seasons.includes(String(e.defaultSeason))&&(s=_x(e.series.tv_series_id,e.channel.url_cid,String(e.defaultSeason))),s&&t(qa({path:s,preserve:!0}))}async componentDidMount(){await this.mount(),this.handleRoute()}componentDidUpdate(e){const t=this.props.season!==e.season,s=this.state.ready&&this.props.recordingsOnly&&this.props.series.series_recording_active!==e.series.series_recording_active;(t||s)&&(!this.state.findCurrentSeasonFromAll||s?(this.remount(),s&&!this.isAllSeasons()&&this.redirectToAllEpisodes()):this.setState({findCurrentSeasonFromAll:!1}))}render(){return this.state.ready?this.props.seasons.includes(this.props.season)&&(0,pe.jsx)(j5,{channel:this.props.channel,programs:this.getPrograms(),pidrid:this.props.pidrid,streamPID:this.props.streamPID,title:this.props.series.title,view:gk,watchBroadcast:this.props.watchBroadcast,onSeriesRecordRemove:()=>this.onRecordRemove(!0),onEpisodeRecordRemove:()=>this.onRecordRemove(),onEpisodeRecordRemoveUndo:this.fetchSeries,epgStatus:this.props.epgStatus}):(0,pe.jsx)(Ke,{centered:!0,delayed:!0})}}
1,P5.displayName="SeriesSeason",k5=P5,(0,De.A)(k5.prototype,"fetchSeries",[je],Object.getOwnPropertyDescriptor(k5.prototype,"fetchSeries"),k5.prototype),(0,De.A)(k5.prototype,"onRecordRemove",[je],Object.getOwnPropertyDescriptor(k5.prototype,"onRecordRemove"),k5.prototype),k5);const M5=(0,l.Ng)()(L5);const U5=e=>({inEdit:SW(e),total:fW(e)});var V5;const B5=(e=>{var t,s;let n=((s=class extends Re.Component{change(){this.props.dispatch(iz(!this.props.inEdit))}remove(){this.props.dispatch(cz())}render(){const t=this.props;return(0,pe.jsx)(e,{inEdit:this.props.inEdit,onChange:this.change,onRemove:this.remove,total:this.props.total,...t})}}).displayName="EditControl",t=s,(0,De.A)(t.prototype,"change",[je],Object.getOwnPropertyDescriptor(t.prototype,"change"),t.prototype),(0,De.A)(t.prototype,"remove",[je],Object.getOwnPropertyDescriptor(t.prototype,"remove"),t.prototype),t);return(0,l.Ng)(U5)(n)})((V5=class extends Re.PureComponent{onEnter(){this.props.onChange(),as({action:"enter_edit_mode",category:this.props.funnel,label:"control_click"})}onCancel(e){this.props.onChange(),as({action:"exit_edit_mode",category:this.props.funnel,label:e})}onRemove(){this.props.onRemove(),as({action:"remove_recordings",category:this.props.funnel,label:"control_click"})}getConfig(){const{total:e}=this.props;return this.props.inEdit?0===e?{controlProps:{color:Et,onClick:()=>{this.onCancel("control_click")},kind:dt},text:k()}:{controlProps:{color:gt,onClick:this.onRemove,kind:ht},text:(t={total:e},x(50,t)),iconId:DV}:{controlProps:{color:Et,onClick:this.onEnter,kind:ht},iconId:nZ,text:x(49)};var t}render(){const{text:e,iconId:t,controlProps:s}=this.getConfig();return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(ln,{className:this.props.className,title:e,soul:"EDIT_CONTROL",reference:this.props.reference,...s,icon:t,text:e,truncate:!0}),this.props.inEdit&&(0,pe.jsx)(Cr,{exclusive:!0,keyMap:{[sr]:()=>{this.onCancel("keyboard_esc")}}})]})}},(0,De.A)(V5.prototype,"onEnter",[je],Object.getOwnPropertyDescriptor(V5.prototype,"onEnter"),V5.prototype),(0,De.A)(V5.prototype,"onCancel",[je],Object.getOwnPropertyDescriptor(V5.prototype,"onCancel"),V5.prototype),(0,De.A)(V5.prototype,"onRemove",[je],Object.getOwnPropertyDescriptor(V5.prototype,"onRemove"),V5.prototype),V5));const F5=e=>{const{hasUnselectAll:t}=e,s=x(t?52:51);return(0,pe.jsx)(ln,{className:(0,Ye.A)("smdUN",e.className),contentClassName:"RFjiE",soul:e.soul||"SELECT_ALL",kind:ut,color:Et,onClick:()=>{let s;t?(e.unpickAll(),s="unselect_all"):(e.pickAll(),s="select_all"),as({action:s,category:e.funnel})},title:s,text:s,icon:"icons-select-all",reference:e.reference})};var H5="klHp6";const G5=()=>{const e=(0,l.wA)(),t=(0,l.d4)(od);return(0,pe.jsx)(bL,{children:(0,pe.jsx)(SL,{soul:"SERIES_EDIT_CONTROL",iconId:nZ,onClick:()=>{e(iz(!0)),as({action:"enter_edit_mode",category:t,label:"control_click"})},text:ac()})})},q5="icons-filter",Y5=e=>(0,pe.jsx)(bL,{children:(0,pe.jsx)(SL,{soul:"SERIES_SORT_CONTROL",iconId:q5,onClick:e.onClick,text:x(253)})}),W5=e=>ci((0,pe.jsx)(AK,{...e}));const z5=e=>(0,pe.jsxs)("div",{className:"o25Ti",children:[(0,pe.jsx)("legend",{className:"yzxLX",children:e.title}),e.children]});const $5=e=>(0,pe.jsx)("fieldset",{className:"XH9fB",children:e.children}),K5=e=>(0,pe.jsxs)($5,{children:[(0,pe.jsx)(z5,{title:x(313)}),e.availableSortings.map(({param:t,...s})=>(0,pe.jsx)(XF,{onChange:e.applySort,checked:t===e.sorting,className:"iycyR",contentClassName:"O6iGd",text:s.label,name:"sort",value:t,soul:"SORT_RADIO"},t))]});var Q5;let Z5=(Q5=class extends Re.Component{onChange({target:e}){this.props.applyFilter(this.props.id,e.value,e.checked)}render(){const e=this.props.currentValues||[];return this.props.availableValuesList.map(({value:t,...s})=>(0,pe.jsx)(u3,{onChange:this.onChange,checked:e.includes(t),className:"TyNBH",name:"sort",value:t,soul:"FILTER_CHECKBOX",children:s.label},t))}},(0,De.A)(Q5.prototype,"onChange",[je],Object.getOwnPropertyDescriptor(Q5.prototype,"onChange"),Q5.prototype),Q5);const X5=e=>(0,pe.jsxs)($5,{children:[(0,pe.jsx)(z5,{title:x(312),children:(0,pe.jsx)(ln,{onClick:e.clearAllFilters,soul:"CLEAR_ALL_FILTERS",className:"otHLk",disabled:(0,me.A)(e.filters),color:Et,kind:ut,text:x(311)})}),e.availableFiltersList.map(t=>{const{param:s}=t;return(0,pe.jsx)(Z5,{applyFilter:e.applyFilter,availableValuesList:t.values,currentValues:e.filters[s],id:s},s)})]});class J5 extends Re.Component{constructor(...e){super(...e),this.drawerRef=(0,Re.createRef)()}hasSort(){return!(0,me.A)(this.props.availableSortings)}hasFilter(){return!(0,me.A)(this.props.availableFiltersList)}render(){return(0,pe.jsx)(yi,{onRight:()=>{this.props.onClose("swipe_right")},reference:this.drawerRef,children:(0,pe.jsxs)(W5,{isOpen:this.props.isOpen,className:(0,Ye.A)("mWwjk","BRbr4"),close:this.props.onClose,overlayOptions:{isVisible:this.props.isOpen,className:"s6QfJ"},position:bK,as:"form",children:[(0,pe.jsxs)("h1",{className:"qgEoP",children:[(0,pe.jsx)(Ci,{soul:"SORT_AND_FILTER_CONTROL_CLOSE",className:"zD2Nd",onClick:()=>this.props.onClose("control_click"),tap:!0}),ic()]}),this.hasSort()&&(0,pe.jsx)(K5,{availableSortings:this.props.availableSortings,applySort:this.props.applySort,sorting:this.props.sorting}),this.hasFilter()&&(0,pe.jsx)(X5,{applyFilter:this.props.applyFilter,availableFiltersList:this.props.availableFiltersList,clearAllFilters:this.props.clearAllFilters,filters:this.props.filters})]})})}}var e6,t6;let s6=(t6=class extends Re.Component{applySort(e){const{dispatch:t}=this.props;var s;t((s=e.target.value,{type:FM,sorting:s})),t(((e,t)=>(s,n)=>{const i=n(),r={cid:YM(i),filters:KM(i),sorting:$M(i),tv_series_id:qM(i),...t&&{recordings_only:t}};
1try{s(e===FW?YW({...r,all_seasons:!0}):WW({...r,season_number:parseInt(e,10)}))}catch(e){s(qW(e))}})(this.props.season,this.props.recordingsOnly)),as({action:"apply_sort",category:this.props.funnel})}close(e){this.props.onClose(),as({action:"close_sort_and_filter",category:this.props.funnel,label:e})}applyFilter(e,t,s){}clearAllFilters(){}render(){return(0,pe.jsx)(J5,{isOpen:this.props.isOpen,onClose:this.props.onClose,applyFilter:this.applyFilter,applySort:this.applySort,availableFiltersList:null,availableSortings:this.props.availableSortings,clearAllFilters:this.clearAllFilters,filters:null,sorting:this.props.sorting})}},t6.displayName="SeriesSortAndFilter",e6=t6,(0,De.A)(e6.prototype,"applySort",[je],Object.getOwnPropertyDescriptor(e6.prototype,"applySort"),e6.prototype),(0,De.A)(e6.prototype,"close",[je],Object.getOwnPropertyDescriptor(e6.prototype,"close"),e6.prototype),(0,De.A)(e6.prototype,"applyFilter",[je],Object.getOwnPropertyDescriptor(e6.prototype,"applyFilter"),e6.prototype),(0,De.A)(e6.prototype,"clearAllFilters",[je],Object.getOwnPropertyDescriptor(e6.prototype,"clearAllFilters"),e6.prototype),e6);const n6=(0,l.Ng)(e=>({availableSortings:zM(e),funnel:od(e),sorting:$M(e)}))(s6),i6=e=>{const[t,s]=(0,Re.useState)(!1),n=(0,Re.useRef)(void 0);return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsxs)(oj,{soul:"SERIES_MENU",className:(0,Ye.A)("WYUhu",IU),offsetY:12,closeOnScroll:!0,setReturnFocus:n.current,children:[(0,pe.jsx)(fU,{reference:n,soul:"SERIES_MENU_CONTROL",tabIndex:0}),(0,pe.jsx)(G5,{}),(0,pe.jsx)(Y5,{onClick:()=>{(()=>{const e=new CustomEvent(nj);window.dispatchEvent(e)})(),s(!0),as({action:"open_sort_and_filter",category:e.funnel})}})]}),(0,pe.jsx)(n6,{season:e.season,recordingsOnly:e.recordingsOnly,isOpen:t,onClose:()=>{s(!1)}})]})},r6="SERIES_SEASON_NAV_ITEM";const o6=({path:e,seasons:t})=>{const s=(0,de.zy)();return(0,pe.jsx)(KJ,{className:"QwlNy",collection:[...t.map(t=>t===FW?{pathname:`${e}`,text:x(248),exact:!0,soul:r6}:{pathname:`${e}/${t}`,text:`${x(249)} ${t}`,soul:r6})],search:s.search,soul:"SERIES_NAVIGATION",inTransparent:!0})};var a6,l6;let c6=((l6=class extends Re.Component{constructor(...e){super(...e),this.selectAllButtonRef=(0,Re.createRef)()}pickAll(){this.props.dispatch(oz())}unpickAll(){this.props.dispatch(lz())}componentDidUpdate(e){!e.inEdit&&this.props.inEdit&&this.selectAllButtonRef.current&&this.selectAllButtonRef.current.focus()}render(){return(0,pe.jsx)("div",{className:"x21TO",children:this.props.inEdit?(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(F5,{hasUnselectAll:this.props.hasUnselectAll,pickAll:this.pickAll,unpickAll:this.unpickAll,className:H5,funnel:this.props.funnel,reference:this.selectAllButtonRef}),(0,pe.jsx)(B5,{className:H5,funnel:this.props.funnel})]}):(0,pe.jsxs)(pe.Fragment,{children:[this.props.seasons.length>0&&(0,pe.jsx)(o6,{seasons:this.props.seasons,path:this.props.path}),this.props.displayManageRecordings&&this.props.recordingsOnly&&(0,pe.jsx)(i6,{season:this.props.season,recordingsOnly:this.props.recordingsOnly,funnel:this.props.funnel})]})})}}).displayName="SeriesNavigation",a6=l6,(0,De.A)(a6.prototype,"pickAll",[je],Object.getOwnPropertyDescriptor(a6.prototype,"pickAll"),a6.prototype),(0,De.A)(a6.prototype,"unpickAll",[je],Object.getOwnPropertyDescriptor(a6.prototype,"unpickAll"),a6.prototype),a6);const d6=(0,l.Ng)(e=>({editorialPathsMap:Ba(e),funnel:od(e),hasUnselectAll:IW(e),subNavigation:lp(e)}))(c6);var p6,u6;let h6=(u6=class extends Re.Component{constructor(...e){super(...e),this.state={recordingsOnly:this.props.location?.state?.recordingsOnly||this.isChannelPVROnly()}}isChannelPVROnly(){return fp(this.props.channel)}getPath(){return _x(this.props.tvSeriesId,this.props.routeCDA)}isAvailable(){return this.props.recordingSeriesEligible&&this.props.series.series_recording_eligible}async activateSeriesRecording(e,t){await this.props.dispatch(hU({title:e.title,channel:t,tvSeriesId:e.tv_series_id})),as({action:"set_series",category:"recordings",label:"series"})}async deactivateSeriesRecording(e,t){await this.props.dispatch(aU({rid:null,channel:t,title:e.title,tvSeriesId:e.tv_series_id})),as({action:"unset_series",category:"recordings",label:"series"})}async toggleSeriesRecording(e){const{props:t}=this,{channel:s,series:n}=t,{checked:i}=e.target;this.isAvailable()&&n.series_recording_active!==i?i?await this.activateSeriesRecording(n,s):await this.deactivateSeriesRecording(n,s):e.preventDefault()}watchBroadcast(e,t){const{props:s}=this,{channel:n}=s,i=s.pidrid[e.id],r=EQ(hQ({broadcast:e,channel:n,recording:s.recordings[i],position:t,replayAvailability:s.replayAvailability,isRecordingEnabled:s.networkRecordingEligible}));this.props.dispatch(hI({cid:n.cid,pid:e.id,rid:i,mode:r})),as({action:gZ(r),category:"watch",label:ts})}cancelEdit(){this.props.dispatch(iz(!1)),as({action:"exit_edit_mode",category:"recordings",label:"series_banner_control_click"})}componentWillUnmount(){const{dispatch:e}=this.props;this.props.inEdit&&e(pz()),e(HW())}componentDidMount(){this.props.dispatch((e=>({type:UM,context:e}))({recordingsOnly:this.props.location?.state?.recordingsOnly||this.isChannelPVROnly(),allEpisodesPath:this.getPath()})),D0(),Ud()}shouldComponentUpdate(e){return Dj(this.props,e)}render(){const{props:e}=this,t=this.getPath();return(0,pe.jsxs)(S_,{className:"TIAax",children:[(0,pe.jsx)(T5,{channel:e.channel,isRecordingAvailable:this.isAvailable(),isViewSplit:e.isViewSplit,series:e.series,toggleSeriesRecording:this.toggleSeriesRecording,inEdit:e.inEdit,isMenuHorizontal:e.isMenuHorizontal,cancelEdit:this.cancelEdit}),(0,pe.jsxs)(S_,{className:"hZrQZ",horizontal:tt,dataContext:ts,soul:"SERIES_CONTENT",children:[(0,pe.jsx)(d6,{season:e.season,seasons:e.seasons,path:t,displayManageRecordings:e.displayManageRecordings,recordingsOnly:this.state.recordingsOnly,inEdit:e.inEdit}),(0,pe.jsx)(M5,{channel:e.channel,defaultSeason:e.defaultSeason,inEdit:e.inEdit,path:t,pidrid:e.pidrid,recordingsOnly:this.state.recordingsOnly,series:e.series,seasons:e.seasons,season:e.season,streamPID:e.streamPID,tvSeriesId:e.tvSeriesId,watchBroadcast:this.watchBroadcast,breadcrumbPath:e.location?.state?.seriesPath,epgStatus:e.epgStatus})]})]})}},u6.displayName="SeriesPage",p6=u6,(0,De.A)(p6.prototype,"toggleSeriesRecording",[je],Object.getOwnPropertyDescriptor(p6.prototype,"toggleSeriesRecording"),p6.prototype),(0,De.A)(p6.prototype,"watchBroadcast",[je],Object.getOwnPropertyDescriptor(p6.prototype,"watchBroadcast"),p6.prototype),(0,De.A)(p6.prototype,"cancelEdit",[je],Object.getOwnPropertyDescriptor(p6.prototype,"cancelEdit"),p6.prototype),p6);const m6=qK((0,l.Ng)((e,t)=>{return{channel:tf(e,t.routeCID),defaultSeason:ZM(e),displayManageRecordings:GM(e),epgStatus:mf(e),inEdit:SW(e),isMenuHorizontal:l_(e),isViewSplit:Yy(e),networkRecordingEligible:xh(e),pidrid:zf(e),recordings:Yf(e),recordingSeriesEligible:Eh(e),replayAvailability:_h(e),season:(s=t.params,s[gx]||FW),seasons:QM(e)||[],series:HM(e),streamPID:Zu(e),tvSeriesId:a5(t.params)};var s})(h6),{preventNotFound:!0}),g6=e=>e[Ax],y6=e=>e[Sx],_6=e=>e[Tx];const E6=({seriesId:e,seasons:t})=>{const s=(0,de.zy)();return(0,pe.jsx)(KJ,{className:"g91SN",collection:[...t.map(t=>({pathname:Nx(e,t.id),text:Bw(t.number),soul:"SERIES_NAVIGATION_ITEM"}))],soul:"SERIES_NAVIGATION",search:s.search,inTransparent:!0})};var v6="XhS9q",x6="q2OJQ";const b6={width:448,height:252},A6=e=>{const{series:t,isContentSubscribable:s,...n}=e,{current_season:i,image_token:r}=t,o=kh(i.terms_catalog),a=Bw(i.number),{imageBaseUrl:l}=(0,Re.useContext)(pa);return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)("div",{className:"H4b7t",children:r&&(0,pe.jsx)(c5,{className:"qjstV",token:r,title:i.title,...b6,dimensions:[{width:1024,height:576,from:Bt},{width:762,height:432,from:411}]})}),e.isMenuHorizontal&&(0,pe.jsx)(b5,{title:t.title}),(0,pe.jsxs)(S_,{className:(0,Ye.A)("MooLD",{[v6]:e.isViewSplit,[x6]:e.isViewSplit&&e.isMenuHorizontal}),horizontal:tt,soul:"VOD_SERIES_HEADER",children:[i.trailer_token&&(0,pe.jsx)(ln,{className:(0,Ye.A)(YX,"TNvP4"),kind:pt,onClick:e.onWatchTrailer,title:hl(),soul:AX,icon:Ct}),t.brand?.logo_token&&(0,pe.jsx)(KT,{alt:t.brand?.title,className:"v_KIL",height:24,token:t.brand?.logo_token,width:72}),(0,pe.jsx)("h2",{className:"GHu0I",children:i.title}),(0,pe.jsx)("p",{children:a}),i.review_rating>0&&(0,pe.jsx)(LX,{rating:i.review_rating}),s&&(0,pe.jsx)(SX,{isSubscribed:e.isPlayable,packageName:o[0].subscription_name}),(0,pe.jsx)(kX,{onConsumptionOnly:()=>{bX({title:i.title,imageBaseUrl:l,token:r,...b6,teasableId:i.id,teasableType:rh.My})},CMSPath:`vod/series/${t.id}`,contentType:rh.wo,season:i.number,termsCatalogList:i.terms_catalog,...n})]})]})},S6=e=>(0,pe.jsx)(bL,{children:(0,pe.jsx)(SL,{soul:e.soul,iconId:e.iconId,onClick:e.onClick,text:e.text,disabled:e.disabled})}),T6=e=>{const{episodeESTTerm:t,episodeState:s,hasEpisodeOption:n,hasSeasonOption:i,isPlayable:r,seasonESTTerm:o,seasonState:a}=e;return(0,pe.jsxs)(RU,{view:e.view,children:[n&&(0,pe.jsx)(S6,{soul:"OVERFLOW_BUY_EPISODE",disabled:s!==dh||r,onClick:e.onOrderEpisodeEST,text:(l={price:t.price},x(365,l))}),i&&(0,pe.jsx)(S6,{soul:"OVERFLOW_BUY_SEASON",disabled:r||a!==dh,onClick:e.onOrderSeasonEST,text:wc({price:o.price})})]});var l};var C6,N6,f6="eCV_w";let I6=(N6=class extends Re.Component{getToken(){const{episode:e,status:t,subscriptions:s}=this.props;return Fh(kh(e.terms_catalog),s,t)}watchVOD(){const{props:e}=this,t=this.getToken();e.watchVOD({series_id:e.series.id,season_id:e.series.current_season.id,episode_id:e.episode.id,term_token:t})}orderEpisodeEST(){const{props:e}=this,{episode:t,series:s}=e;e.orderEpisodeEST(t.id,Fw({episodeNumber:t.number,episodeTitle:t.title,seasonNumber:s.current_season.number,seriesTitle:s.title}))}orderVOD(e){e?this.orderEpisodeEST():this.props.orderSeasonEST()}shouldComponentUpdate(e){return Dj(e,this.props)}render(){const{props:e}=this,t=e.episode.title||e.series.title,s=e.status?.position,n=Uw(e.series.current_season.number,e.episode.number),i=Boolean(this.getToken()),r=zh(e.status,e.subscriptions,e.episode),o=Lh(kh(e.episode.terms_catalog)),a=Lh(e.seasonTerms),l=Mh(e.episode.terms_catalog),c=(e=>{const t=Lh(kh(e.terms_catalog));return!Mh(e.terms_catalog)&&Boolean(t?.price)&&!t?.season_purchase_only})(e.episode),d=!l&&Boolean(a?.price),p=c||d,u=e.isContentSubscribable&&!i,h=yL(e.isActiveInMarquee),m=(g=r,Pw.includes(g));var g;const y=i?this.watchVOD:()=>this.orderVOD(c);return(0,pe.jsxs)(pe.Fragment,{children:[!u&&!(!i&&!p)&&(0,pe.jsx)(EL,{onClick:y,onClickDisabled:y,title:hl(),soul:i?"TEASER_EPISODE_OVERLAY_WATCH":"TEASER_EPISODE_OVERLAY_ORDER",tabIndex:h}),(0,pe.jsx)(vP,{kind:dP,view:e.view,token:e.episode.image_token||e.series.image_token,alt:t}),(0,pe.jsxs)(Kk,{view:e.view,withMenu:p,children:[(0,pe.jsx)(qk,{pretitle:n,title:t,text:e.episode.description,titleClassName:(0,Ye.A)({[f6]:p}),descriptionHasTwoRows:!0}),(0,pe.jsxs)(Fk,{view:e.view,children:[i&&Boolean(s)&&(0,pe.jsx)(SP,{hasProgress:!0,progressTimeNow:s,progressTimeMax:(0,Vt.H8)(e.episode.runtime),progressTimeMin:0}),(0,pe.jsxs)("div",{className:XP,children:[m&&(0,pe.jsx)(qX,{status:e.status,vod:e.episode,state:r,displayPrice:c?e.episode.dis
1play_price:void 0}),!m&&e.episode.ribbon&&(0,pe.jsx)("span",{className:"XuxMQ",children:e.episode.ribbon})]}),!i&&p&&(0,pe.jsx)(T6,{episodeESTTerm:o,episodeState:r,hasEpisodeOption:c,hasSeasonOption:d,isPlayable:e.isPlayable,onOrderEpisodeEST:this.orderEpisodeEST,onOrderSeasonEST:this.props.orderSeasonEST,seasonESTTerm:a,seasonState:e.seasonState,view:e.view})]})]}),u&&(0,pe.jsx)(cL,{className:xL}),r===ch&&(0,pe.jsx)(C0,{})]})}},N6.displayName="TeaserVODSeriesEpisode",C6=N6,(0,De.A)(C6.prototype,"watchVOD",[je],Object.getOwnPropertyDescriptor(C6.prototype,"watchVOD"),C6.prototype),(0,De.A)(C6.prototype,"orderEpisodeEST",[je],Object.getOwnPropertyDescriptor(C6.prototype,"orderEpisodeEST"),C6.prototype),(0,De.A)(C6.prototype,"orderVOD",[je],Object.getOwnPropertyDescriptor(C6.prototype,"orderVOD"),C6.prototype),C6);const w6=hV(I6,{soul:"TEASER_VOD_SERIES_EPISODE"});class O6 extends Re.Component{shouldComponentUpdate(e){return Dj(e,this.props)}render(){const{props:e}=this,t=e.status?.[rh.Uh],s=zh(e.status?.[rh.My]?.[e.series.current_season.id],e.subscriptions,e.series.current_season);return(0,pe.jsx)(GV,{view:gk,soul:"VOD_SERIES_CONTAINER",children:e.episodes?.length?e.episodes.map(n=>(0,pe.jsx)(w6,{episode:n,isContentSubscribable:e.isContentSubscribable,isPlayable:e.isPlayable,orderEpisodeEST:e.onOrderEpisodeEST,orderSeasonEST:e.onOrderSeasonEST,seasonState:s,seasonTerms:e.seasonTerms,series:e.series,status:t?.[n.id],subscriptions:e.subscriptions,view:gk,watchVOD:e.watchVOD,isHighlighted:e.highlightedEpisodeID===n.id,isStreaming:!e.highlightedEpisodeID&&e.streamVODID===n.id},`${n.id}`)):(0,pe.jsx)("p",{"data-soul":"VOD_EMPTY_SEASON",children:lc()})})}}var D6="fIbxU";const R6=(0,Re.memo)(e=>{const{series:t}=e,{current_season:s}=t,n=kh(s.terms_catalog),i=qh(n),r=(e=>{const{season:t,status:s}=e;if(Bh(e.terms,e.subscriptions))return!0;const n=s?.[rh.My]?.[t.id];return!!Vh(n)||void 0!==t.episodes&&t.episodes.every(e=>{const t=s?.[rh.Uh]?.[e.id];return Boolean(Vh(t))})})({season:s,terms:n,subscriptions:e.subscriptions,status:e.status});return(0,pe.jsxs)(S_,{soul:"VOD_SERIES_SEASON",className:"wms8k",children:[(0,pe.jsx)(A6,{hasTeaser:e.hasTeaser,isBookmarked:e.isBookmarked,isContentSubscribable:i,isPlayable:r,isViewSplit:e.isViewSplit,onBookmarkToggle:e.onBookmarkToggle,onOrderEST:e.onOrderSeasonEST,onOrderTVOD:e.onOrderSeasonTVOD,onWatchTrailer:e.onWatchTrailer,path:e.path,series:t,isMenuHorizontal:e.isMenuHorizontal}),(0,pe.jsx)(S_,{className:D6,horizontal:tt,vertical:st,children:(0,pe.jsx)(VX,{audio:s.video_audio_languages,canCollapse:!0,captions:s.video_caption_languages,contentId:s.id,credits:EX(t.credits),description:t.description,genres:t.genres,year:s.year,youthProtectionRating:t.age_rating})}),(0,pe.jsxs)(S_,{className:D6,horizontal:tt,vertical:st,children:[t.seasons.length>0&&(0,pe.jsx)(E6,{seasons:t.seasons,seriesId:t.id}),(0,pe.jsx)(O6,{episodes:s.episodes,isContentSubscribable:i,onOrderEpisodeEST:e.onOrderEpisodeEST,onOrderSeasonEST:e.onOrderSeasonEST,isPlayable:r,seasonTerms:n,series:t,status:e.status,subscriptions:e.subscriptions,watchVOD:e.onWatchVODEpisode,highlightedEpisodeID:e.highlightedEpisodeID,streamVODID:e.streamVODID})]})]})});var j6,k6;let P6=(k6=class extends Re.PureComponent{constructor(...e){super(...e),this.state={series:null,seasonId:null}}isReady(){return Boolean(this.state.series)}setAnalytics(){os({title:"vodContentInfo",path:location.pathname+location.search}),this.props.previousPath||as({action:"open",category:"vodContentInfo",label:"link"}),Ud()}setSeriesStateAndContext(e,t){const{current_season:s}=e;s.id!==t&&this.props.dispatch(qa(Nx(e.id,s.id))),this.props.dispatch(E_({title:e.title,funnel:ed})),this.setState({series:e,seasonId:s.id})}watchVOD(e){const{dispatch:t}=this.props;t(ID(e)),_6(this.props.params)&&t(qa({path:Nx(e.series_id,e.season_id),preserve:!0})),rS(iS,ns)}watchTrailer(){const{dispatch:e}=this.props,{series:t}=this.state;e(ID({series_id:t.id,season_id:t.current_season.id,term_token:t.current_season.trailer_token})),rS(nS,ns)}getSeasonTitle(){const{series:e}=this.state,t=`${Oc()} ${e.current_season.number}`;return`${e.title} - ${t}`}orderTVOD(){const{dispatch:e}=this.props,{series:t}=this.state,s=Ph(t.current_season.terms_catalog,Ch.sd);e(NS({teasableId:t.current_season.id,teasableType:rh.My,title:this.getSeasonTitle(),termsCatalog:s,purchaseType:Ch.sd,...Mw(t)})),aS(rh.My,Ch.sd,s?.terms?.length)}orderEST(){const{dispatch:e}=this.props,{series:t}=this.state,s=Ph(t.current_season.terms_catalog,Ch.vG);e(NS({teasableId:t.current_season.id,teasableType:rh.My,title:this.getSeasonTitle(),termsCatalog:s,purchaseType:Ch.vG,...Mw(t)})),aS(rh.My,Ch.vG,s?.terms?.length)}orderEpisodeEST(e,t){const{series:s}=this.state,n=Lw(s?.current_season?.episodes,e),i=Ph(n?.terms_catalog,Ch.vG);this.props.dispatch(NS({teasableId:e,teasableType:rh.Uh,title:t,termsCatalog:i,purchaseType:Ch.vG,...Mw(s)}))}toggleBookmark(){const{dispatch:e,inWatchList:t}=this.props,{series:s}=this.state,n=e;n(t?Ub({teasable_id:s.id,teasable_type:rh.wo}):Mb({teasable_id:s.id,teasable_type:rh.wo}
1)),lS(t?"removeVodSeries":"addVodSeries",ns),Un({type:Cn,content_id:s.id,content_id_type:QA,bookmark_state:t?vk:Ek})}async fetchVODSeries(){const{props:e}=this;if(!e.isVODEligible)return void e.dispatch(qa(Te));const t=g6(e.params),s=y6(e.params);try{const e=await jb.Jw({series_id:t,...s?{season_id:s}:{}});this.setSeriesStateAndContext(e,s),this.setAnalytics()}catch(t){Z(t),e.dispatch(qa(Te))}}componentDidMount(){this.fetchVODSeries()}componentDidUpdate(e){(g6(e.params)!==g6(this.props.params)||this.state.seasonId&&this.state.seasonId!==y6(this.props.params))&&this.fetchVODSeries()}render(){const{series:e}=this.state,{props:t}=this;return this.isReady()?(0,pe.jsx)(R6,{hasTeaser:Boolean(e.current_season.trailer_token),isMenuHorizontal:t.isMenuHorizontal,isBookmarked:t.inWatchList,isViewSplit:t.isViewSplit,onBookmarkToggle:this.toggleBookmark,onOrderEpisodeEST:this.orderEpisodeEST,onOrderSeasonEST:this.orderEST,onOrderSeasonTVOD:this.orderTVOD,onWatchTrailer:this.watchTrailer,onWatchVODEpisode:this.watchVOD,path:t.path,series:e,status:t.vodStatus,streamVODID:t.streamVODID,subscriptions:t.subscriptions,highlightedEpisodeID:_6(t.params)}):(0,pe.jsx)(Ke,{centered:!0,delayed:!0})}},k6.displayName="VODSeriesDetails",j6=k6,(0,De.A)(j6.prototype,"watchVOD",[je],Object.getOwnPropertyDescriptor(j6.prototype,"watchVOD"),j6.prototype),(0,De.A)(j6.prototype,"watchTrailer",[je],Object.getOwnPropertyDescriptor(j6.prototype,"watchTrailer"),j6.prototype),(0,De.A)(j6.prototype,"orderTVOD",[je],Object.getOwnPropertyDescriptor(j6.prototype,"orderTVOD"),j6.prototype),(0,De.A)(j6.prototype,"orderEST",[je],Object.getOwnPropertyDescriptor(j6.prototype,"orderEST"),j6.prototype),(0,De.A)(j6.prototype,"orderEpisodeEST",[je],Object.getOwnPropertyDescriptor(j6.prototype,"orderEpisodeEST"),j6.prototype),(0,De.A)(j6.prototype,"toggleBookmark",[je],Object.getOwnPropertyDescriptor(j6.prototype,"toggleBookmark"),j6.prototype),j6);const L6=ue((0,l.Ng)((e,t)=>({isMenuHorizontal:l_(e),inWatchList:xX(e,rh.wo,g6(t.params)),isViewSplit:Yy(e),isVODEligible:mh(e),path:Oa(e),previousPath:Ra(e),streamVODID:Kh(e),subscriptions:Th(e),vodStatus:Ah(e)}))(P6)),M6=s.p+"assets/empty-recordings-81ec17294b212a4f7d03.svg",U6=()=>(0,pe.jsx)(St,{title:x(226),text:x(224),image:e=>(0,pe.jsx)(en,{src:M6,alt:x(225),height:136,width:136,...e}),primary:e=>(0,pe.jsx)(qs,{soul:"EMPTY_RECORDINGS_LINK_TO_GUIDE",to:Fd,...e,children:x(223)}),soul:"EMPTY_RECORDINGS_PAGE"}),V6=s.p+"assets/no-filtered-recordings-45900d82b6730ed170ce.svg",B6=e=>(0,pe.jsx)(St,{title:x(222),text:x(220),soul:"NO_FILTERED_RECORDINGS_PAGE",image:e=>(0,pe.jsx)(en,{src:V6,alt:x(221),height:136,width:136,...e}),primary:t=>(0,pe.jsx)(ln,{text:x(219),onClick:e.onClearFilter,soul:"NO_FILTERED_RECORDINGS_CLEAR_FILTERS",...t})}),F6=()=>{const e=(0,l.d4)(DL),t=(0,l.d4)(wL),s=(0,l.d4)(uo),n=(0,l.wA)(),i=()=>{n(((e,t)=>s=>{s(OM()),s(PM(e,t))})(t,s))};return(0,me.A)(e)?(0,pe.jsx)(U6,{}):(0,pe.jsx)(B6,{onClearFilter:i})};class H6 extends Re.Component{shouldComponentUpdate(e){return Dj(e,this.props)}render(){const{editorialPathsMap:e,search:t,subNavigation:s,pageId:n}=this.props;return this.props.hasSubNavigation?(0,pe.jsx)(KJ,{collection:[...s.map(t=>{const s=n===t.content_id;return{pathname:tp(e,t.content_id,t.content_type),text:t.title,soul:"EDITORIAL_NAV_ITEM",tabIndex:s?-1:0}})],search:t,sideDim:!0}):null}}H6.displayName="EditorialCluster";const G6=(0,l.Ng)(e=>({hasSubNavigation:cp(e),search:Pa(e),subNavigation:lp(e),editorialPathsMap:Ba(e),path:Oa(e),pageId:wL(e)}))(H6),q6=e=>{const t=(0,l.d4)(XL),s=(0,l.d4)(l_),n=(0,l.d4)(sd),i=(0,l.d4)(WL);return(0,pe.jsxs)(c0,{className:h5,hasSecondRow:e.hasSecondRow,children:[t&&(0,pe.jsxs)(pe.Fragment,{children:[s&&(0,pe.jsx)(p5,{title:null}
1),(0,pe.jsx)("h2",{className:(0,Ye.A)(m5,{[g5]:s,[y5]:s&&!i}),children:i?(r={title:n,count:i},x(60,r)):n})]}),(0,pe.jsx)(G6,{}),e.children]});var r},Y6=e=>e.npvr.duration;class W6 extends Re.PureComponent{getText(){const{duration:e,recordingDurationLimit:t,recordingNumberLimit:s,size:n}=this.props;return t?(i={size:e?OP((0,Vt.H8)(e)):0,maxSize:OP((0,Vt.H8)(t),"full")},x(229,i)):(e=>x(228,e))({size:n,maxSize:s});var i}getRemainingCapacity(){const{props:e}=this,{recordingDurationLimit:t}=e;return t?e.duration/t:e.size/e.recordingNumberLimit}render(){return this.props.displayTotalRecordings?(0,pe.jsx)("div",{className:"Qx3zR","data-soul":"EDITORIAL_TOTAL_RECORDS",children:(0,pe.jsxs)("div",{className:"wup7x",children:[(0,pe.jsxs)("div",{className:"LGszj",children:[(0,pe.jsx)(PS,{value:this.getRemainingCapacity(),className:"rBCSi"}),(0,pe.jsx)(ft,{className:"wDrft",id:t$})]}),this.getText()]})}):null}}W6.displayName="EditorialTotalRecords";const z6=(0,l.Ng)(e=>({displayTotalRecordings:UL(e),duration:Y6(e),recordingDurationLimit:uh(e),recordingNumberLimit:hh(e),size:Wf(e)}))(W6),$6=e=>e?.[Kd],K6=e=>e.navigationContext===Kc.RECORDINGS?(0,pe.jsx)(F6,{}):(0,pe.jsx)(S_,{horizontal:et,vertical:st,children:(0,pe.jsx)("h2",{children:x(58)})});K6.displayName="Empty";const Q6=(0,l.Ng)(e=>({navigationContext:VL(e)}))(K6);var Z6=s(470),X6="vDZ0Y";const J6=e=>e.hidden?null:(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)("div",{id:e.id,className:(0,Ye.A)("lbdqH",e.className)}),(0,pe.jsx)("div",{className:"cOWvq",children:gl({title:C})})]});J6.displayName="DisplayAdsBillboardContent";const e9=zj(J6,{id:`div-gpt-ad-${lu.QB}`,style:window.innerWidth>=Bt?lu.QB:lu.wv}),t9=e=>{const t=(0,l.d4)(py);return(0,pe.jsx)("aside",{ref:e.loaderRef,className:(0,Ye.A)("y6ZwS",{[X6]:t}),style:{"--safeSpace":wv(14)},children:(e.wasVisibleOnce||e.isVisible)&&(0,pe.jsx)(e9,{})})};t9.displayName="DisplayAdsBillboard";const s9=h4(t9);const n9=e=>{const t=[];for(let s=0;s<e;s++)t.push((0,pe.jsx)(ZU,{view:uk},s));return t},i9=(0,Re.memo)(e=>(0,pe.jsx)("div",{ref:e.carouselRef,className:(0,Ye.A)(f4,"LCw0i"),children:(0,pe.jsx)("div",{className:(0,Ye.A)(I4,w4,Rr),children:n9(Math.max(Math.round(window.innerWidth/264),3))})}));var r9="b9UtW",o9="GJOHZ",a9="puZ6F";const l9=e=>{if((0,l.d4)(Yy))return(0,pe.jsx)(i9,{carouselRef:e.marqueeRef});const t=(()=>{const e=[];for(let t=0;t<3;t++)e.push((0,pe.jsx)(ZU,{view:hk,isActiveInMarquee:!0},t));return e})();return(0,pe.jsx)("div",{ref:e.marqueeRef,className:(0,Ye.A)(r9,"MpHWL"),children:(0,pe.jsx)("div",{className:a9,children:t})})},c9=(e,t,s)=>Math.min(Math.max(t,e),s),d9="CENTER";class p9{constructor(e,t){this.viewportSize_=0,this.containerSize_=0,this.scrollPosition_=0,this.element=void 0,this.offset=0,this.size=0,this.isRelocated=!1,this.canBeLooped_=!1,this.alignment_=void 0,this.element=e,this.alignment_=t}reflow(e){const t=this.element.getBoundingClientRect();this.offset=t.left-e.viewportOffset,this.size=t.width,this.containerSize_=e.containerSize,this.viewportSize_=e.viewportSize,this.scrollPosition_=e.containerOffset}setRelocationMode(e){this.canBeLooped_=e}setAlignmentMode(e){this.alignment_=e}getIntersectionRatio(e=!1){const{size:t}=this;let{offset:s}=this,n=0;return e&&(s=this.getInitialLocation()),n=s>=0?this.viewportSize_-s:t+s,n=c9(n,0,t),n/t}getInitialLocation(){const e=this.scrollPosition_;if(!this.isRelocated)return e+this.offset;let t=this.offset+e;return e<0?t+=this.containerSize_:t-=this.containerSize_,t}updatePosition(e){const t=e-this.scrollPosition_,{offset:s,isRelocated:n}=this.getNextPosition(t);if(n!==this.isRelocated){const t=Math.round(s+e)<this.containerSize_/2?-1:1;this.element.style.left=n?100*t+"%":""}this.offset=s,this.isRelocated=n,this.scrollPosition_=e}getDistance(e=0,t=this.alignment_){const{offset:s}=this.getNextPosition(e);let n=s;if(t===d9?n-=(this.viewportSize_-this.size)/2:"END"===t&&(n-=this.viewportSize_-this.size),!this.canBeLooped_)return n;const i=n-this.containerSize_*Math.sign(n);return Math.abs(i)<Math.abs(n)?i:n}getNextPosition(e){const{size:t}=this;let{isRelocated:s}=this,n=this.offset-e;return this.canBeLooped_?((n+this.containerSize_<this.viewportSize_||n+t>this.containerSize_)&&(n-=Math.sign(n)*this.containerSize_,s=!s),{offset:n,isRelocated:s}):{offset:n,isRelocated:s}}}class u9{constructor(e,t){this.iterationID_=null,this.startTime_=-1,this.targetValue_=0,this.currentValue_=0,this.callback_=void 0,this.easing_=void 0,this.callback_=e,this.easing_=t,this.iterate_=this.iterate_.bind(this)}get remainingValue(){return this.targetValue_-this.currentValue_}get targetValue(){return this.targetValue_}get currentValue(){return this.currentValue_}get progress(){return 1-this.remainingValue/this.targetValue_}start(e){this.stop(),this.targetValue_=e,this.currentValue_=0,this.startTime_=Date.now(),this.iterationID_=requestAnimationFrame(this.iterate_)}stop(){null!==this.iterationID_&&cancelAnimationFrame(this.iterationID_),this.iterationID_=null,this.targetValue_=0,this.currentValue_=0,this.startTime_=-1}iterate_(){const e=Date.now()-this.startTime_,t=this.easing_(e,this.currentValue_,this.targetValue_);this.iterationID_=1===t?null:requestAnimationFrame(this.iterate_);const s=this.currentValue_,n=this.targetValue_*t;this.currentValue_=n,this.callback_(n,s)}}const h9="onpointerdown"in document,m9="ontouchstart"in document,g9={x:0,y:0},y9=e=>{let t=0,s=0;if(m9&&e instanceof TouchEvent){let n=e.targetTouches;"touchend"===e.type&&(n=e.changedTouches);const[i]=n;t=i.clientX,s=i.clientY}else e instanceof MouseEvent&&(t=e.clientX,s=e.clientY);return{x:t,y:s}},_9=(e,t,s)=>({x:e.x,y:e.y,startX:s.x,startY:s.y,deltaX:t.x-e.x,deltaY:t.y-e.y});class E9{constructor(e,t){this.minDragDelta_=3,this.isPressed_=!1,this.isDragging_=!1,this.coords_=g9,this.pressedCoords_=g9,this.target_=void 0,this.observer_=void 0,this.target_=e,this.observer_=t,this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.onClick_=this.onClick_.bind(this)}subscribe(){h9?(this.target_.addEventListener("pointerdown",this.onPointerDown_),this.target_.addEventListener("pointermove",this.onPointerMove_),this.target_.addEventListener("pointerup",this.onPointerUp_)):m9?(this.target_.addEventListener("touchstart",this.onPointerDown_),document.addEventListener("touchmove",this.onPointerMove_),document.addEventListener("touchend",this.onPointerUp_)):(this.target_.addEventListener("mousedown",this.onPointerDown_),document.addEventListener("mousemove",this.onPointerMove_),document.addEventListener("mouseup",this.onPointerUp_)),this.target_.addEventListener("click",this.onClick_)}unsubscribe(){h9?(this.target_.removeEventListener("pointerdown",this.onPointerDown_),this.target_.removeEventListener("pointermove",this.onPointerMove_),this.target_.removeEventListener("pointerup",this.onPointerUp_)):m9?(this.target_.removeEventListener("touchstart",this.onPointerDown_),document.removeEventListener("touchmove",this.onPointerMove_),document.removeEventListener("touchend",this.onPointerUp_)):(this.target_.removeEventListener("mousedown",this.onPointerDown_),document.removeEventListener("mousemove",this.onPointerMove_),document.removeEventListener("mouseup",this.onPointerUp_)),this.target_.removeEventListener("click",this.onClick_)}destroy(){this.unsubscribe(),delete this.target_}onPointerDown_(e){"touchstart"!==e.type&&e.preventDefault(),this.target_.focus(),this.pressedCoords_=y9(e),this.isPressed_=!0,this.isDragging_=!1}onPointerMove_(e){if(!this.isPressed_)return;if(this.isDragging_)return void this.onDragChange_(e);const t=y9(e),s=this.pressedCoords_.x-t.x,n=this.pressedCoords_.y-t.y;(Math.abs(s)>this.minDragDelta_||Math.abs(n)>this.minDragDelta_)&&this.onDragStart_(e)}onPointerUp_(e){this.isPressed_=!1,this.isDragging_&&this.onDragEnd_(e)}onDragStart_(e){e.preventDefault(),h9&&e instanceof PointerEvent&&this.target_.setPointerCapture(e.pointerId);const t=this.pressedCoords_,s=_9(t,t,t);this.isDragging_=!0,this.coords_=t,this.observer_.onDragStart(s)}onDragChange_(e){e.preventDefault();const t=y9(e),s=_9(t,this.coords_,this.pressedCoords_);
1this.coords_=t,this.observer_.onDragChange(s)}onDragEnd_(e){h9&&e instanceof PointerEvent&&this.target_.releasePointerCapture(e.pointerId);const t=y9(e),s=_9(t,this.coords_,this.pressedCoords_);this.observer_.onDragEnd(s)}onClick_(e){this.isDragging_&&(e.preventDefault(),e.stopPropagation())}}const v9=(e,t)=>new E9(e,t),x9=(e,t)=>new p9(e,t);class b9{constructor(){this.subscribers_=new Map}subscribe(e,t){const s=this.subscribers_.get(e);s?s.push(t):this.subscribers_.set(e,[t])}unsubscribe(e,t){const s=this.subscribers_.get(e);if(!s)return;const n=s.indexOf(t);-1!==n&&s.splice(n,1),s.length||this.subscribers_.delete(e)}dispatch(e,t=null){const s=this.subscribers_.get(e);if(!s)return;const n=this.createEvent_(e,t);s.forEach(e=>{e(n)})}disconnect(){this.subscribers_.clear()}createEvent_(e,t){return{type:e,data:t}}}const A9="SLIDE_CHANGED",S9={isLooped:!0,alignment:d9};class T9{constructor(e){this.canBeLooped_=!0,this.items=[],this.startItem_=void 0,this.endItem_=void 0,this.currentIndex_=0,this.options_=void 0,this.offset_=0,this.viewport_=void 0,this.container_=void 0,this.viewportSize_=0,this.containerSize_=0,this.decayHandler_=void 0,this.carouselItemFactory_=void 0,this.observer=void 0;const{options:t={}}=e;this.options_={...S9,...t},this.observer=e.observer,this.viewport_=e.viewport,this.container_=e.container,this.carouselItemFactory_=e.carouselItemFactory,this.decayHandler_=e.decayHandlerFactory(this.onAnimationStep_.bind(this)),this.reflow()}get currentIndex(){return this.currentIndex_}set currentIndex(e){const t=this.currentIndex_;this.currentIndex_=e,t!==e&&this.onIndexChange_(e,t)}get viewport(){return this.viewport_}get container(){return this.container_}reflow(){const e=this.viewport_.getBoundingClientRect(),t=this.container_.getBoundingClientRect();this.items=this.createItems_(),this.startItem_=this.items[0],this.endItem_=this.items[this.items.length-1],this.offset_=e.left-t.left,this.viewportSize_=e.width,this.containerSize_=t.width,this.canBeLooped_=!1,this.items.forEach(t=>{this.updateItem_(t,e.left),t.getIntersectionRatio(!0)||(this.canBeLooped_=!0),t.offset<=this.startItem_.offset&&(this.startItem_=t),t.offset>=this.endItem_.offset&&(this.endItem_=t)}),this.items.forEach(e=>{e.setRelocationMode(this.isLooped())});const s=this.items[this.currentIndex];this.moveBy(s.getDistance())}updateItem_(e,t){const s={containerSize:this.containerSize_,viewportSize:this.viewportSize_,containerOffset:this.offset_,viewportOffset:t};e.reflow(s)}createItems_(){const e=new Map,t=Array.from(this.container_.children);return this.items.forEach(t=>{e.set(t.element,t)}),t.map(t=>{let s=e.get(t);return s||(s=this.carouselItemFactory_(t,this.options_.alignment)),s})}destroy(){this.decayHandler_.stop(),this.items=[],delete this.container_,delete this.viewport_,delete this.decayHandler_,delete this.endItem_,delete this.startItem_,delete this.observer}next(){this.navigate(1)}prev(){this.navigate(-1)}goToIndex(e){const t=this.items.length-1;if(e<0||e>t)throw new RangeError(`Provided index needs to be in range of 0 and ${t}.`);const s=this.items[e],n=this.decayHandler_.remainingValue,i=n+s.getDistance(n);this.scrollBy(i)}navigate(e){const t=this.normalizeIndex(this.currentIndex+e);this.currentIndex=t,this.goToIndex(t)}moveBy(e){e=this.normalizeDelta(e),this.offset_+=e;const t=`translateX(${-100*this.offset_/this.containerSize_}%)`;this.container_.style.transform=t,this.container_.style.webkitTransform=t,this.items.forEach(e=>{e.updatePosition(this.offset_)}),this.observer.dispatch("POSITION_CHANGED")}scrollBy(e){e=this.normalizeScrollDelta(e);const t=this.getClosestElement(this.normalizeDelta(e)).index;this.currentIndex=t,this.observer.dispatch("SCROLL_START"),this.decayHandler_.start(e)}stopScroll(){this.observer.dispatch("SCROLL_END"),this.decayHandler_.stop()}isLooped(){return this.canBeLooped_&&this.options_.isLooped}onAnimationStep_(e,t){this.moveBy(e-t),this.decayHandler_.remainingValue||this.stopScroll()}onIndexChange_(e,t){this.observer.dispatch(A9,{current:e,previous:t})}getClosestElement(e=0){const t={distance:1/0,index:-1};return this.items.reduce((t,s,n)=>{const i=s.getDistance(e);return Math.abs(i)>Math.abs(t.distance)?t:{distance:i,index:n}},t)}normalizeIndex(e){const t=this.items.length;return this.options_.isLooped?e-t*Math.floor(e/t):c9(e,0,t-1)}normalizeDelta(e){const t=this.offset_+e;return(t>this.containerSize_||t<-this.viewportSize_)&&this.isLooped()?e-this.containerSize_*Math.sign(t):e}normalizeScrollDelta(e){if(!this.isLooped()){const t=this.endItem_.getDistance(),s=this.startItem_.getDistance();e=c9(e,s,t)}return e}}const C9=e=>t=>((e,t)=>new u9(e,t))(t,e);class N9{constructor(){this.trackedValues_=[],this.threshold_=100}get velocity(){const e=this.trackedValues_,t=e[0],s=e[e.length-1],n=s.time-t.time||1;return(s.value-t.value)/n}start(e){this.trackedValues_=[],this.update(e)}stop(){const e=this.trackedValues_.pop();e&&this.update(e.value)}update(e){const t=Date.now(),s=this.trackedValues_;for(;s.length>0&&!(t-s[0].time<=this.threshold_);)s.shift();s.push({value:e,time:t})}}class f9{constructor(e){this.carousel_=void 0,this.carousel_=e}get currentIndex(){return this.carousel_.currentIndex}set currentIndex(e){this.carousel_.currentIndex=e}get viewport(){return this.carousel_.viewport}get container(){return this.carousel_.container}get observer(){return this.carousel_.observer}get items(){return this.carousel_.items}reflow(){this.carousel_.reflow()}destroy(){this.carousel_.destroy()}next(){this.carousel_.next()}prev(){this.carousel_.prev()}goToIndex(e){this.carousel_.goToIndex(e)}getClosestElement(e){return this.carousel_.getClosestElement(e)}scrollBy(e){this.carousel_.scrollBy(e)}moveBy(e){this.carousel_.moveBy(e)}stopScroll(){this.carousel_.stopScroll()}normalizeIndex(e){return this.carousel_.normalizeIndex(e)}normalizeDelta(e){return this.carousel_.normalizeDelta(e)}normalizeScrollDelta(e){return this.carousel_.normalizeScrollDelta(e)}}const I9={isAligned:!0,momentum:.4,maxPerScroll:null};class w9 extends f9{constructor(e,t,s,n={}){super(e),this.options_=void 0,this.dragStartIndex_=null,this.minInertialDistance_=10,this.velocityTracker_=void 0,this.dragListener_=void 0,this.velocityTracker_=s,this.dragListener_=t(this.viewport,{onDragStart:this.onDragStart_.bind(this),onDragChange:this.onDragChange_.bind(this),onDragEnd:this.onDragEnd_.bind(this)}),this.options_={...I9,...n},this.viewport.style.touchAction="pan-y",this.dragListener_.subscribe()}
1destroy(){super.destroy(),this.dragListener_.destroy(),delete this.velocityTracker_,delete this.dragListener_}onDragStart_(e){this.dragStartIndex_=this.getClosestElement().index,this.stopScroll(),this.velocityTracker_.start(e.x)}onDragChange_(e){this.moveBy(e.deltaX),this.velocityTracker_.update(e.x)}onDragEnd_(e){this.velocityTracker_.update(e.x),this.velocityTracker_.stop();const t=-1e3*this.velocityTracker_.velocity*this.options_.momentum,s=Math.sign(e.startX-e.x);let n=Math.abs(t)>=this.minInertialDistance_?t:0;n||(n=1e-4*s);const i=this.normalizeScrollDelta(n);this.dragStartIndex_=null,this.scrollBy(i)}normalizeScrollDelta(e){const{maxPerScroll:t,isAligned:s}=this.options_;if(e=super.normalizeScrollDelta(e),s){e+=this.getClosestElement(this.normalizeDelta(e)).distance}if(s&&null!==t){const s=null!==this.dragStartIndex_?this.dragStartIndex_:this.currentIndex,n=Math.sign(e),i=this.normalizeIndex(s+t*n),r=this.items[i].getDistance();Math.abs(e)>Math.abs(r)&&(e=r)}return e}}const O9={ArrowLeft:"prev",ArrowRight:"next"};class D9 extends f9{constructor(e,t=O9){super(e),this.keyboardMap_=void 0,this.keyboardMap_=t,this.onKeyDown_=this.onKeyDown_.bind(this),this.viewport.setAttribute("tabindex","-1"),this.viewport.addEventListener("keydown",this.onKeyDown_)}destroy(){this.viewport.removeEventListener("keydown",this.onKeyDown_),super.destroy()}onKeyDown_(e){const t=this.keyboardMap_[e.key||e.which.toString()];t&&(e.preventDefault(),this[t]())}}const R9=e=>(0,pe.jsx)(u4,{activeMarqueeIndex:e.activeMarqueeIndex,onClickLinkMarquee:e.onClickLinkMarquee,list:e.teasersCollection,view:hk,pageId:e.pageId});R9.displayName="ElementMarquee";const j9=(0,l.Ng)((e,t)=>({hidden:Yy(e),teasersCollection:kL(e,t.pageId)}))((e=>{var t,s;let n=(s=class extends Re.Component{constructor(...e){super(...e),this.state={activeIndex:0},this.carousel=void 0,this.viewportRef=(0,Re.createRef)(),this.containerRef=(0,Re.createRef)()}goToPrevious(){this.carousel&&this.carousel.prev()}goToNext(){this.carousel&&this.carousel.next()}goToTeaser(e){this.carousel?this.carousel.goToIndex(e):this.setState({activeIndex:e})}initCarousel(){let e;e=((e,t,s,n)=>new T9({viewport:e,container:t,options:n,observer:new b9,decayHandlerFactory:C9(s),carouselItemFactory:x9}))(this.viewportRef.current,this.containerRef.current,((e=.92)=>(t,s,n)=>{const i=n-s,r=n-i*e;return Math.abs(i)<1?1:r/n})(.86)),e=((e,t)=>{const s=new N9;return new w9(e,v9,s,t)})(e,{maxPerScroll:1}),e=((e,t)=>new D9(e,t))(e),this.carousel=e,this.carousel.observer.subscribe(A9,this.onCarouselSlideChange.bind(this))}getItems(e){return e.length<4?this.getItems(e.concat(e)):e}onCarouselSlideChange({data:e}){const t=e.current;this.setState({activeIndex:t})}onResize(){this.carousel.reflow()}componentDidMount(){this.initCarousel(),fG(this.viewportRef.current,this.onResize)}componentWillUnmount(){this.carousel.observer.disconnect(),this.carousel.destroy(),IG(this.viewportRef.current,this.onResize)}render(){const{props:t}=this,s=this.getItems(t.teasersCollection),n=t;return(0,pe.jsxs)("div",{className:(0,Ye.A)(r9,{[o9]:t.hidden}),ref:this.viewportRef,"data-soul":"ELEMENT_MARQUEE",children:[(0,pe.jsx)(N4,{direction:S4,onClick:this.goToPrevious,visible:!0}),(0,pe.jsx)("div",{className:a9,"data-context-element-id":t.pageId,ref:this.containerRef,children:(0,pe.jsx)(e,{activeMarqueeIndex:this.state.activeIndex,onClickLinkMarquee:this.goToTeaser,...n,teasersCollection:s})}),(0,pe.jsx)(N4,{direction:A4,onClick:this.goToNext,visible:!0})]})}},s.displayName=e.displayName||e.name,t=s,(0,De.A)(t.prototype,"goToPrevious",[je],Object.getOwnPropertyDescriptor(t.prototype,"goToPrevious"),t.prototype),(0,De.A)(t.prototype,"goToNext",[je],Object.getOwnPropertyDescriptor(t.prototype,"goToNext"),t.prototype),(0,De.A)(t.prototype,"goToTeaser",[je],Object.getOwnPropertyDescriptor(t.prototype,"goToTeaser"),t.prototype),(0,De.A)(t.prototype,"onResize",[je],Object.getOwnPropertyDescriptor(t.prototype,"onResize"),t.prototype),t);return n})(R9));var k9,P9;let L9=((P9=class extends Re.Component{constructor(...e){super(...e),this.elementRef=(0,Re.createRef)(),this.observedElement=null}observeVisibility(){const e=this.elementRef.current;e&&(this.observedElement=e,iV(this.observedElement,this.onVisibilityChanged))}unobserveVisibility(){const{observedElement:e}=this;e&&(this.observedElement=null,rV(e,this.onVisibilityChanged))}shouldRenderElement(){const{element:e}=this.props;return e?!e.isLoaded||e.total>0:(X("Carousel or Marquee doesn't have an element"),!1)}onElementVisible(){const{props:e}=this;this.unobserveVisibility(),e.dispatch(hM(e.pageId,e.pghash))}onVisibilityChanged(e){e.isIntersecting&&this.onElementVisible()}shouldComponentUpdate(e){return!!e.element?.isLoaded&&!jt(this.props,e)}componentDidMount(){this.observeVisibility()}componentWillUnmount(){this.unobserveVisibility()}render(){const{props:e}=this,{pageId:t,element:s}=e;if(!this.shouldRenderElement())return null;const n=s.isLoaded;switch(e.element.style){case Z6.ju:return n?(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(j9,{pageId:t}),e.hasDisplayAds&&!e.isTeasersCollectionEmpty&&(0,pe.jsx)(s9,{}),(0,pe.jsx)(D4,{index:e.index,className:"rygLl",element:s,pageId:t,isDoppelganger:!0,queryString:e.queryString})]}):(0,pe.jsx)(l9,{marqueeRef:this.elementRef});case Z6.$g:return n?(0,pe.jsx)(D4,{index:e.index,element:s,pageId:t,canDrilldown:e.canDrilldown,hasDetail
1s:e.hasDetails,hasMenu:e.hasMenu,queryString:e.queryString}):(0,pe.jsx)(i9,{carouselRef:this.elementRef});default:return null}}}).displayName="EditorialElement",k9=P9,(0,De.A)(k9.prototype,"onVisibilityChanged",[je],Object.getOwnPropertyDescriptor(k9.prototype,"onVisibilityChanged"),k9.prototype),k9);const M9=(0,l.Ng)((e,t)=>({hasDisplayAds:Oy(e),element:aM(e,t.pageId),pghash:uo(e),queryString:Pa(e),isTeasersCollectionEmpty:PL(e,t.pageId)}))(L9),U9=e=>{const t=(0,l.d4)(jL);return e.elementsList.map((s,n)=>{const i=e.hasDisplayAds&&n>0&&n%3==0&&!(0,me.A)(t);return(0,pe.jsxs)(Re.Fragment,{children:[i&&(0,pe.jsx)(s9,{}),(0,pe.jsx)(M9,{pageId:s,index:n})]},s+n)})};const V9=()=>(0,pe.jsx)(Ke,{className:"uLxGQ",text:x(59),delayed:!0});var B9,F9;let H9=(F9=class extends Re.Component{pageId(){return $6(this.props.params)||this.props.pageId}fetchPage(){const{props:e}=this;return e.dispatch(jM(this.pageId(),e.pghash))}cleanPage(){this.props.dispatch(OM())}applyScrollPosition(){const{locationStrategy:e}=this.props,{lastScrollY:t}=this.props.locationState;"POP"!==e&&t?document.documentElement.scrollTop=t:e===Ia&&(document.documentElement.scrollTop=0)}async mount(){const{props:e}=this,{dispatch:t}=e;if(t(v_()),!this.pageId())return void t(qa(Te));let s;try{s=await this.fetchPage()}catch(e){return Z(e),void t(qa(Te))}t(E_({funnel:s.navigation_context,title:s.title})),this.applyScrollPosition(),as({action:`hub_${this.pageId()}`,category:"openPage"}),Ud()}remount(){this.cleanPage(),this.mount()}componentDidMount(){this.mount()}componentDidUpdate(e){Oj($6(this.props.params),$6(e.params))&&this.remount()}componentWillUnmount(){var e;this.props.dispatch((e={lastScrollY:document.documentElement.scrollTop},(t,s)=>{const n=s(),i=td(n);return t({type:m_,context:{...i,...e}})})),this.cleanPage()}render(){const{props:e}=this,t=this.pageId(),s=e.pages[t];return(0,pe.jsxs)("div",{"data-context-editorial-id":t,"data-context-page-kind":Ot.Q,"data-soul":e.soul,children:[(0,pe.jsx)(q6,{hasSecondRow:this.props.displayTotalRecordings,children:(0,pe.jsx)(z6,{})}),(()=>{if(!s)return(0,pe.jsx)(V9,{});const{elementsList:t}=s;return!t.length||e.isElementsEmpty?(0,pe.jsx)(Q6,{}):e.hasEmptyRecordings?(0,pe.jsx)(F6,{}):(0,pe.jsx)(U9,{elementsList:t,hasDisplayAds:e.hasDisplayAds})})()]})}},F9.displayName="EditorialHubPage",B9=F9,(0,De.A)(B9.prototype,"fetchPage",[je],Object.getOwnPropertyDescriptor(B9.prototype,"fetchPage"),B9.prototype),(0,De.A)(B9.prototype,"cleanPage",[je],Object.getOwnPropertyDescriptor(B9.prototype,"cleanPage"),B9.prototype),B9);const G9=ue((0,l.Ng)(e=>({hasDisplayAds:Oy(e),hasEmptyRecordings:oM(e,Xf(e)),isElementsEmpty:cM(e),pghash:uo(e),pages:LL(e),locationState:La(e),locationStrategy:Da(e),displayTotalRecordings:UL(e)}))(H9)),q9="EDITORIAL_VIEW";var Y9="iNbOV";var W9,z9;let $9=((z9=class extends Re.Component{applySort(e){const{dispatch:t}=this.props;var s;t((s=e.target.value,{type:TM,sorting:s})),t(PM(this.props.pageId,this.props.pghash)),as({action:"apply_sort",category:this.props.funnel}),Un({type:"COLLECTION_SORT",sort_option:e.target.value})}applyFilter(e,t,s){const{dispatch:n}=this.props;s?(n(((e,t)=>(s,n)=>{const i=DL(n()),r=i[e]||[];return s({type:bM,filters:{...i,[e]:(0,EM.A)(r,[t])}})})(e,t)),Un({type:"COLLECTION_FILTER",filter_option:t})):n(((e,t)=>(s,n)=>{const i=DL(n()),r=[...i[e]||[]];return(0,vM.A)(r,e=>e===t),(0,me.A)(r)&&delete i[e],s({type:bM,filters:{...i,...(0,me.A)(r)?null:{[e]:r}}})})(e,t)),n(PM(this.props.pageId,this.props.pghash)),as({action:s?"add_filter":"remove_filter",category:this.props.funnel})}clearAllFilters(){const{dispatch:e}=this.props;e({type:xM}),e(PM(this.props.pageId,this.props.pghash)),as({action:"clear_all_filters",category:this.props.funnel})}render(){return(0,pe.jsx)(J5,{applyFilter:this.applyFilter,applySort:this.applySort,availableFiltersList:this.props.availableFiltersList,availableSortings:this.props.availableSortings,clearAllFilters:this.clearAllFilters,filters:this.props.filters,sorting:this.props.sorting,isOpen:this.props.isOpen,onClose:this.props.onClose})}}).displayName="EditorialSortAndFilter",W9=z9,(0,De.A)(W9.prototype,"applySort",[je],Object.getOwnPropertyDescriptor(W9.prototype,"applySort"),W9.prototype),(0,De.A)(W9.prototype,"applyFilter",[je],Object.getOwnPropertyDescriptor(W9.prototype,"applyFilter"),W9.prototype),(0,De.A)(W9.prototype,"clearAllFilters",[je],Object.getOwnPropertyDescriptor(W9.prototype,"clearAllFilters"),W9.prototype),W9);const K9=(0,l.Ng)(e=>({availableFiltersList:HL(e),availableSortings:FL(e),filters:DL(e),funnel:od(e),pageId:wL(e),pghash:uo(e),sorting:OL(e)}))($9);var Q9,Z9;let X9=(Z9=class extends Re.Component{constructor(...e){super(...e),this.state={isOpen:!1}}getSelectedFiltersCount(){const{selectedFilters:e}=this.props;return e?Object.values(e).reduce((e,t)=>
1e+t.length,0):0}hasSort(){return!(0,me.A)(this.props.availableSortings)}hasFilter(){return!(0,me.A)(this.props.availableFiltersList)}hasData(){return this.hasSort()||this.hasFilter()}open(){this.setState({isOpen:!0}),as({action:"open_sort_and_filter",category:this.props.funnel,label:"control_click"})}close(e){this.setState({isOpen:!1}),as({action:"close_sort_and_filter",category:this.props.funnel,label:e})}render(){const e=this.getSelectedFiltersCount();return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(ln,{reference:this.props.reference,className:Y9,soul:"SORT_AND_FILTER_CONTROL",color:Et,kind:ht,disabled:!this.hasData(),onClick:this.open,icon:q5,text:`${ic()}${e>0?` (${e})`:""}`,truncate:!0}),(0,pe.jsx)(K9,{isOpen:this.state.isOpen,onClose:this.close})]})}},Z9.displayName="SortAndFilterControl",Q9=Z9,(0,De.A)(Q9.prototype,"open",[je],Object.getOwnPropertyDescriptor(Q9.prototype,"open"),Q9.prototype),(0,De.A)(Q9.prototype,"close",[je],Object.getOwnPropertyDescriptor(Q9.prototype,"close"),Q9.prototype),Q9);const J9=(0,l.Ng)(e=>({availableFiltersList:HL(e),availableSortings:FL(e),selectedFilters:DL(e),funnel:od(e)}))(X9),e8=()=>{const e=(0,l.d4)(qL),t=(0,l.d4)(GL),s=(0,l.d4)(od),n=(0,Re.useRef)(void 0),i=(0,Re.useRef)(void 0);return(0,pe.jsxs)("div",{className:"Puktb",children:[t&&(0,pe.jsx)(B5,{className:Y9,reference:n,funnel:s}),e&&(0,pe.jsx)(J9,{reference:i})]})};var t8,s8,n8="P_Ys3";let i8=((s8=class extends Re.Component{constructor(...e){super(...e),this.selectAlButtonRef=(0,Re.createRef)()}cancelEdit(){this.props.dispatch(iz(!1)),as({action:"exit_edit_mode",category:this.props.funnel,label:"sub_header_control_click"})}pickAll(){this.props.dispatch(oz())}unpickAll(){this.props.dispatch(lz())}getTitle(){const e=this.props.subNavigation.find(e=>{const t=tp(this.props.editorialPathsMap,e.content_id,e.content_type);return this.props.path===t});return e?.title}componentDidMount(){this.selectAlButtonRef.current&&this.selectAlButtonRef.current.focus()}render(){const{isMenuHorizontal:e}=this.props;return(0,pe.jsxs)(c0,{hasSecondRow:!0,children:[(0,pe.jsxs)("div",{className:(0,Ye.A)("DvaE4",{[E5]:e}),children:[e&&(0,pe.jsx)(u5,{className:_5,onClick:this.cancelEdit}),(0,pe.jsx)("p",{className:(0,Ye.A)(AB,SB,"O18fa",{[v5]:e}),children:e?(t={pageTitle:this.getTitle()},x(218,t)):this.getTitle()}),(0,pe.jsx)(F5,{hasUnselectAll:this.props.hasUnselectAll,pickAll:this.pickAll,unpickAll:this.unpickAll,className:"QYIjL",funnel:this.props.funnel,reference:this.selectAlButtonRef})]}),(0,pe.jsx)(e8,{})]});var t}}).displayName="EditModeSubHeader",t8=s8,(0,De.A)(t8.prototype,"cancelEdit",[je],Object.getOwnPropertyDescriptor(t8.prototype,"cancelEdit"),t8.prototype),(0,De.A)(t8.prototype,"pickAll",[je],Object.getOwnPropertyDescriptor(t8.prototype,"pickAll"),t8.prototype),(0,De.A)(t8.prototype,"unpickAll",[je],Object.getOwnPropertyDescriptor(t8.prototype,"unpickAll"),t8.prototype),t8);const r8=(0,l.Ng)(e=>({editorialPathsMap:Ba(e),funnel:od(e),hasUnselectAll:IW(e),isMenuHorizontal:l_(e),path:Oa(e),subNavigation:lp(e)}))(i8);var o8;let a8=(o8=class extends Re.PureComponent{subscribe(){window.addEventListener("resize",this.updateView)}unsubscribe(){window.removeEventListener("resize",this.updateView)}updateView(){window.innerWidth>=Bt&&this.props.view!==mk&&this.props.changeView?.(mk)}componentDidMount(){this.props.forceGridViewFromM&&(this.updateView(),this.subscribe())}componentWillUnmount(){this.props.forceGridViewFromM&&this.unsubscribe()}componentDidUpdate(e){if(this.props.forceGridViewFromM!==e.forceGridViewFromM)return this.props.forceGridViewFromM?(this.updateView(),void this.subscribe()):void this.unsubscribe()}render(){const{props:e}=this,t=e.page.teaser_image_style===FU.Y;return(0,pe.jsx)(GV,{view:e.view,isPortrait:t,soul:"DRILLDOWN_CONTAINER",children:(0,pe.jsx)(b4,{edit:e.edit,pageId:e.pageId,view:e.view})})}},(0,De.A)(o8.prototype,"updateView",[je],Object.getOwnPropertyDescriptor(o8.prototype,"updateView"),o8.prototype),o8);var l8,c8;let d8=(c8=class extends Re.Component{fetchPage(){return this.props.dispatch(kM(this.props.pageId,this.props.pghash))}cleanPage(){const{dispatch:e}=this.props;e(OM())}async mount(){let e;if(this.props.dispatch(v_()),this.props.pageId){try{e=await this.fetchPage()}catch(e){return Z(e),void this.props.dispatch(qa(Te))}this.props.dispatch(E_({funnel:e.navigation_context,title:e.title})),D0(),as({action:`grid_${this.props.pageId}`,category:"openPage"}),Ud()}else this.props.dispatch(qa(Te))}remount(){this.cleanPage(),this.mount()}componentDidMount(){this.mount()}componentDidUpdate(e){Oj($6(this.props.params),$6(e.params))&&this.remount()}componentWillUnmount(){this.cleanPage()}render(){const{props:e}=this,t=e.pages[e.pageId],s=!t||e.isProcessing||e.isTeasersCollectionEmpty,n=e.hasControls&&e.pageHasTeasersCollection;return(0,pe.jsxs)("div",{"data-context-editorial-id":e.pageId,"data-context-page-kind":Ot.Y,className:(0,Ye.A)("NzcnW",nt),children:[this.props.inEdit&&(0,pe.jsx)(r8,{}),!this.props.inEdit&&(0,pe.jsxs)(q6,{hasSecondRow:n,children:[!s&&(0,pe.jsx)(o0,{changeView:e.changeView,view:e.view,className:(0,Ye.A)({[n8]:e.hasControls})}),n&&(0,pe.jsx)(e8,{})]}),e.pageHasTeasersCollection?s?(0,pe.jsx)(V9,{}):(0,pe.jsx)(a8,{page:t,pageId:e.pageId,forceGridViewFromM:e.hasControls,edit:e.edit,view:e.view,changeView:e.changeView}):(0,pe.jsx)(Q6,{})]})}},c8.displayName="EditorialDrilldownPage",l8=c8,(0,De.A)(l8.prototype,"fetchPage",[je],Object.getOwnPropertyDescriptor(l8.prototype,"fetchPage"),l8.prototype),(0,De.A)(l8.prototype,"cleanPage",[je],Object.getOwnPropertyDescriptor(l8.prototype,"cleanPage"),l8.prototype),l8);const p8=jJ(N5(ue((0,l.Ng)((e,t)=>{const s=$6(t.params);return{hasControls:YL(e),hasEdit:GL(e),inEdit:SW(e),isProcessing:RL(e),isTeasersCollectionEmpty:PL(e,s),pageHasTeasersCollection:zL(e),pageId:s,pages:LL(e),pghash:uo(e)}})(d8))),{key:q9,defaultView:mk}),u8=e=>(0,pe.jsx)(G9,{soul:"HIGHLIGHTS_PAGE",pageId:e.startPublicId});u8.displayName="Highlights";const h8=(0,l.Ng)(e=>({startPublicId:Wd(e)}))(u8),m8=e=>(0,pe.jsx)(G9,{soul:"VOD_PAGE",pageId:e.VODPublicId});m8.displayName="VodPage";const g8=(0,l.Ng)(e=>({VODPublicId:$d(e)}))(m8),y8=e=>(0,pe.jsx)(G9,{soul:"RECORDINGS_PAGE",pageId:e.recordingsPublicId});y8.displayName="RecordingsPage";const _8=(0,l.Ng)(e=>({recordingsPublicId:zd(e)}))(y8),E8=e=>Xd($d(e)),v8=e=>{const t=(0,de.zy)(),s=(0,l.d4)(Ra),n=(0,l.d4)(ip),i=(0,l.d4)(np),r=(0,l.d4)(b$),o=(0,l.d4)(S$),a=(0,l.d4)(mh),c=(0,l.d4)(Bv),d=(0,l.d4)(Vv),p=(0,l.d4)(A$),u=(0,l.d4)(E8),h=(0,l.d4)(sp);return(0,pe.jsxs)(FA,{children:[(0,pe.jsx)(eJ,{}),c&&(0,pe.jsx)(nJ,{}),(0,pe.jsx)(VK,{children:(0,pe.jsxs)(UW,{children:[(0,pe.jsxs)(de.BV,{location:e.originLocation,children:[(0,pe.jsx)(de.qh,{path:qc,element:(0,pe.jsx)(de.C5,{to:n})}),a&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(de.qh,{path:bx,element:(0,pe.jsx)(uX,{})}),(0,pe.jsx)(de.qh,{path:xx,element:(0,pe.jsx)(mX,{})})]}),(0,pe.jsxs)(de.qh,{element:(0,pe.jsx)(aJ,{}),children:[(0,pe.jsx)(de.qh,{path:$v,element:(0,pe.jsx)(cJ,{})}),(0,pe.jsx)(de.qh,{path:Zv,element:(0,pe.jsx)(_J,{})}),r&&(0,pe.jsx)(de.qh,{path:ex,element:(0,pe.jsx)(vJ,{})}),a&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(de.qh,{path:nx,element:(0,pe.jsx)(bJ,{})}),(0,pe.jsx)(de.qh,{path:ix,element:(0,pe.jsx)(bJ,{})})]})]}),(0,pe.jsxs)(de.qh,{element:(0,pe.jsx)(DJ,{}),children:[(0,pe.jsx)(de.qh,{path:ax}),(0,pe.jsx)(de.qh,{path:Gc,element:(0,pe.jsx)(P0,{})}),(0,pe.jsx)(de.qh,{path:Gd,element:(0,pe.jsx)(b2,{})}),(0,pe.jsx)(de.qh,{path:px,element:(0,pe.jsx)(U4,{})}),(0,pe.jsxs)(de.qh,{path:qd,children:[(0,pe.jsx)(de.qh,{index:!0,element:(0,pe.jsx)(o5,{})}),(0,pe.jsx)(de.qh,{path:"*",element:(0,pe.jsx)(de.C5,{to:qd}
1)})]}),(0,pe.jsx)(de.qh,{path:yx,element:(0,pe.jsx)(m6,{})}),(0,pe.jsx)(de.qh,{path:Qd,element:(0,pe.jsx)(G9,{})}),(0,pe.jsx)(de.qh,{path:Zd,element:(0,pe.jsx)(p8,{})}),(0,pe.jsx)(de.qh,{path:Te,element:(0,pe.jsx)(LE,{})}),a&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(de.qh,{path:Cx,element:(0,pe.jsx)(L6,{})}),(0,pe.jsx)(de.qh,{path:Ex})]}),o&&(0,pe.jsx)(pe.Fragment,{children:(0,pe.jsxs)(de.qh,{path:Bd,children:[(0,pe.jsx)(de.qh,{index:!0,element:(0,pe.jsx)(F4,{})}),(0,pe.jsx)(de.qh,{path:"*",element:(0,pe.jsx)(de.C5,{to:Bd})})]})}),r&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(de.qh,{path:p,element:(0,pe.jsx)(de.C5,{to:Bd})}),(0,pe.jsxs)(de.qh,{path:Bd,children:[(0,pe.jsx)(de.qh,{index:!0,element:(0,pe.jsx)(_8,{})}),(0,pe.jsx)(de.qh,{path:"*",element:(0,pe.jsx)(de.C5,{to:Bd})})]})]}),d&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(de.qh,{path:u,element:(0,pe.jsx)(de.C5,{to:Vd})}),(0,pe.jsxs)(de.qh,{path:Vd,children:[(0,pe.jsx)(de.qh,{index:!0,element:(0,pe.jsx)(g8,{})}),(0,pe.jsx)(de.qh,{path:"*",element:(0,pe.jsx)(de.C5,{to:Vd})})]})]}),i&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(de.qh,{path:h,element:(0,pe.jsx)(de.C5,{to:Bc})}),(0,pe.jsxs)(de.qh,{path:Bc,children:[(0,pe.jsx)(de.qh,{index:!0,element:(0,pe.jsx)(h8,{})}),(0,pe.jsx)(de.qh,{path:"*",element:(0,pe.jsx)(de.C5,{to:Bc})})]})]})]}),(0,pe.jsx)(de.qh,{path:"/last-watched",element:(0,pe.jsx)(sJ,{})}),(0,pe.jsx)(de.qh,{path:Te,element:(0,pe.jsx)(LE,{})}),(0,pe.jsx)(de.qh,{path:xv,element:(0,pe.jsx)(FK,{})}),(0,pe.jsx)(de.qh,{path:xe(),element:(0,pe.jsx)(aX,{})}),(0,pe.jsx)(de.qh,{path:Se,element:(0,pe.jsx)(kE,{})}),(0,pe.jsx)(de.qh,{path:Vc,element:(0,pe.jsx)(lX,{})}),(0,pe.jsx)(de.qh,{path:"*",element:(0,pe.jsx)(de.C5,{to:s===Ae?n:Te,replace:!0})})]}),(0,pe.jsxs)(de.BV,{children:[(0,pe.jsx)(de.qh,{path:ax,element:(0,pe.jsx)(Uv,{hasWindow:e.hasWindow,originLocation:e.originLocation,location:t,homePath:n,children:(0,pe.jsx)(oX,{})})}),a&&(0,pe.jsx)(pe.Fragment,{children:(0,pe.jsx)(de.qh,{path:Ex,element:(0,pe.jsx)(Uv,{hasWindow:e.hasWindow,originLocation:e.originLocation,location:t,homePath:n,children:(0,pe.jsx)(XX,{})})})})]}),(0,pe.jsx)(sb,{}),a&&(0,pe.jsx)(sC,{})]})}),!1]})},x8=ue((e=>{class t extends Re.Component{constructor(...e){super(...e),this.previousLocation=this.props.location}hasWindow(){return this.props.location.state?.window}componentDidUpdate(){const{props:e}=this;this.hasWindow()||(this.previousLocation=e.location)}render(){const t=this.hasWindow(),s=this.props;return(0,pe.jsx)(e,{hasWindow:t,originLocation:t?this.previousLocation:s.location,...s})}}return t.displayName=e.displayName||e.name,t})(e=>{const t=(0,l.d4)(Ne);return(0,pe.jsx)(Wa,{children:(0,pe.jsxs)(Jn,{children:[(0,pe.jsx)(Ki,{}),(0,pe.jsx)(oo,{}),(0,pe.jsx)(Ka,{}),(0,pe.jsxs)(xa,{children:[(0,pe.jsx)(vd,{}),t&&(0,pe.jsxs)(de.BV,{children:[void 0,(0,pe.jsx)(de.qh,{path:Ae,element:(0,pe.jsx)(Iv,{})}),(0,pe.jsx)(de.qh,{path:Uc,element:(0,pe.jsx)(vv,{})}),(0,pe.jsx)(de.qh,{path:Mc,element:(0,pe.jsx)($c,{})}),(0,pe.jsx)(de.qh,{path:"*",element:(0,pe.jsx)(v8,{...e})})]}),!t&&(0,pe.jsxs)(de.BV,{children:[(0,pe.jsx)(de.qh,{path:Ae,element:(0,pe.jsx)(RE,{})}),(0,pe.jsx)(de.qh,{path:Mc,element:(0,pe.jsx)($c,{})}),(0,pe.jsx)(de.qh,{path:Uc,element:(0,pe.jsx)(WE,{})}),(0,pe.jsx)(de.qh,{path:Vc,element:(0,pe.jsx)(tv,{})}),(0,pe.jsx)(de.qh,{path:xe(),element:(0,pe.jsx)(Cd,{})}),void 0,(0,pe.jsx)(de.qh,{path:Se,element:(0,pe.jsx)(kE,{})}),(0,pe.jsx)(de.qh,{path:Te,element:(0,pe.jsx)(LE,{})}),(0,pe.jsx)(de.qh,{path:"*",element:(0,pe.jsx)(de.C5,{to:Ae})})]}),(0,pe.jsx)(Fo,{}),(0,pe.jsx)(ai,{}),(0,pe.jsx)(Td,{}),(0,pe.jsx)(dv,{})]}),!1,(0,pe.jsx)("aside",{id:Lc}),(0,pe.jsx)(cv,{}),(0,pe.jsx)(Pc,{})]})})}));var b8=s(1829);const A8={rating_sources:{imdb:{logo_token:null,max_rating:null,min_rating:null,title:""}}},S8={image:null,isDisplayed:!1,status:eG},T8={channelNumberDisplayDigits:3,channelsMap:{},favoritesCID:[],favoriteVisibleChannels:[],groupAliases:{},groupedChannels:{},groups:[],visibleChannels:[],visibleChannelsByNumberMap:{},visibleChannelsCID:[],visibleChannelsMap:{}},C8={attemptsLeft:0,isInvalid:!1,isRequired:!1,lockDuration:-1,lockedUntil:-1,scheduledAt:-1},N8=(0,b8.HY)({pin:(e=C8,t)=>{switch(t.type){case DH:return{...C8,attemptsLeft:t.attemptsLeft,isInvalid:t.isInvalid,isRequired:!0};case kH:return{...C8,attemptsLeft:3,isRequired:!0};case jH:return{attemptsLeft:0,isRequired:!0,lockDuration:t.lockDuration,lockedUntil:t.lockedUntil,scheduledAt:-1};case LH:return{...C8,scheduledAt:t.timestamp};case RH:return C8;default:return e}}}),f8=(e,t,s)=>e.map(e=>e.id!==t?e:{...e,...s}),I8={activeAdBreak:null,activeAdBreakArea:null,adBreaks:[],markers:[],markersHandling:AI},w8=si,O8={exclusiveId:null,keysFlat:[],list:[]},D8=e=>{const t=[];for(let s=0;s<e.length;s++){const n=e[s];for(let e=0;e<n.keys.length;e++){const s=n.keys[e];-1===t.indexOf(s)&&t.push(s)}}return t},R8={groups:jo(),ready:!1},j8={editorialPaths:{},landingLocation:null,path:null,pathFrom:null,pathPrevious:null,queryParams:{},state:{},strategy:null},k8={account:null,active:!1,ads:{allowed:null,ppid:null,skip_time:null},assets:{image_base_url:null,logo_base_url:null},current_country:null,current_time:null,isDeviceTimeWrong:!1,language:null,lineup_hash:null,nonlive:{local_recording_eligible:null,replay_days:0,showReplayIndicator:!1}
1,power_guide_hash:null,shop_url:null},P8="PROFILE_LOADED",L8={domborn:null,firstname:null,gender:null,lang:null,lastname:null,monthborn:null,sendalerts:null,yearborn:null},M8={opened:!1,originLocation:null},U8=(0,Rb.Z0)({name:"vod/subscriptions",initialState:[],reducers:{},extraReducers:e=>{e.addCase(kb.fulfilled,(e,t)=>Object.keys(t.payload))}}),V8=(0,Rb.Z0)({name:"vod/watch-list",initialState:null,reducers:{},extraReducers:e=>{e.addCase(Mb.fulfilled,(e,t)=>t.payload),e.addCase(Lb.fulfilled,(e,t)=>t.payload),e.addCase(Ub.fulfilled,(e,t)=>t.payload)}}),B8=(0,b8.HY)({status:XA.reducer,subscriptions:U8.reducer,watchList:V8.reducer}),F8={},H8=(0,b8.HY)({experiments:(e=F8,t)=>"AB_TESTING_EXPERIMENT_SET"===t.type?{...e,[t.id]:t.variant}:e}),G8={booted:!1,hasControl:!1},q8={current:null,previous:null},Y8={canChangeVolume:null,currentRelativeTime:0,currentAbsoluteTime:0,duration:null,muted:!1,volume:null,cuePoints:null,isSyncing:!1},W8=ae(BO)??!0,z8=(0,b8.HY)({intro:(e=W8,t)=>t.type!==Ox&&e,player:(e=Y8,t)=>{switch(t.type){case Gx:return{...e,canChangeVolume:t.canChange,muted:t.isMuted,volume:t.level};case zx:return{...e,duration:t.duration};case Wx:return{...e,currentRelativeTime:t.relativeTime,currentAbsoluteTime:t.absoluteTime};case $x:return{...e,cuePoints:t.cuePoints};case Lx:return{...e,currentRelativeTime:0,currentAbsoluteTime:0,duration:null,cuePoints:null};case Kx:return{...e,isSyncing:t.isSyncing};case kx:return Y8;default:return e}},receiver:(e=null,t)=>t.type===Hx?t.status:e,sdk:(e=null,t)=>t.type===Ix?t.status:e,session:(e=q8,t)=>t.type===Rx?{current:t.sessionStatus,previous:e.current}:e,status:(e=null,t)=>t.type===wx?t.status:e}),$8=QV(),K8=(0,b8.HY)({exist:(e=false,t)=>{switch(t.type){case sB:return!0;case nB:return!1;default:return e}},opened:(e=$8,t)=>{switch(t.type){case tB:return!0;case nB:case eB:return!1;default:return e}}}),Q8={breadcrumbs:[],context:{funnel:null,title:null,description:null,path:null},isChangeScheduled:!1},Z8=(e,t)=>{const s=t.findIndex(t=>t.path===e.path);return-1!==s&&(t=t.slice(0,s)),t.push(e),t.slice()},X8="DAI_SDK_LOADED",J8="DAI_AD_ACTIVENESS_CHANGED",e7={isActive:!1,sdkLoaded:!1},t7={slots:{},apiStatus:null},s7={filters:{},isProcessing:!1,pageId:"",wiped:!1},n7=[],i7={},r7={},o7={},a7=(0,b8.HY)({meta:(e=s7,t)=>{switch(t.type){case CM:{const{type:e,...s}=t;return{...s7,...s}}case bM:return{...e,filters:t.filters};case TM:return{...e,sorting:t.sorting};case SM:return{...e,isProcessing:!0};case AM:return{...e,isProcessing:!1};case xM:return{...e,filters:s7.filters};case NM:return{...e,wiped:!0};case wM:return s7;default:return e}},navigation:(e=n7,t)=>{switch(t.type){case mM:return t.subNavigationTabs;case gM:return n7;default:return e}},pages:(e=i7,t)=>{switch(t.type){case DM:return{...e,[t.pageId]:t.page};case wM:return i7;default:return e}},elements:(e=r7,t)=>{switch(t.type){case pM:case dM:return t.elements;case uM:return{...e,[t.elementId]:{...e[t.elementId],isLoaded:!0}};case wM:return r7;default:return e}},teasers:(e=o7,t)=>{switch(t.type){case sM:return{...e,[t.elementId]:t.teasersCollection};case tM:case wM:return o7;default:return e}}}),l7={inEdit:!1,mode:AW,pickedIds:[],excludedIds:[],total:0},c7={map:null,timeoutID:null,start:null,end:null},d7=(e,t)=>jt(t,e)?e:t,p7={live:{},upcoming:{},updateTime:null},u7={filterings:null,available_episodes:null,sortings:null,cid:null,context:{recordingsOnly:null,allEpisodesPath:null},current_season_number:null,display_manage_recordings:null,current_filterings:{},future_episodes:null,image_token:null,programs:null,season_numbers:null,series_recording_active:null,series_recording_eligible:null,current_sorting:null,title:null,total_episodes:null,tv_series_id:null},h7={},m7=(0,b8.HY)({block:(e=c7,t)=>{switch(t.type){case Cb:return{...e,map:t.channels,start:t.start,end:t.end};case Sb:return{...e,timeoutID:t.timeoutID};case Tb:return{...e,timeoutID:null};default:return e}},lineup:(e=p7,t)=>t.type===Eb?{...e,live:d7(e.live,t.live),upcoming:d7(e.upcoming,t.upcoming),updateTime:Date.now()}:e,series:(e=u7,t)=>{switch(t.type){case BM:case VM:return{...e,...t.series};case FM:return{...e,current_sorting:t.sorting};case MM:return u7;case UM:return{...e,context:t.context};default:return e}},status:(e=h7,t)=>{switch(t.type){case Bb:return t.broadcast_states;case Fb:return{...e,...t.broadcast_state};default:return e}}}),g7={position:null,day:Q0()},y7={exist:!1,portal:!1},_7={adInfo:{},podInfo:{},adInfoReady:!1,podInfoReady:!1,cuePoints:null,currentTime:null,status:null,sdkStatus:null,active:!1},E7={eligible:!1,topics:null},v7=e=>e.reduce((e,t)=>
1(Np(t)||e.push(t.cid),e),[]),x7={group:hp,collection:[],availableList:[]},b7={managed:!0,onboarded:!0,visited:!0},A7=(0,b8.HY)({current:(e=x7,t)=>t.type===ZV?{...e,group:t.group,collection:t.collection,availableList:v7(t.collection)}:e,onboarding:(e=b7,t)=>t.type===GJ?{...e,...t.data}:e}),S7="MEASUREMENT_STARTUP_RESET",T7="MEASUREMENT_STARTUP_STORED",C7={triggered:null,urlReceived:null,adsStarted:null,streamRestored:null,contentStarted:null,bitrate:null,bufferedDuration:null,networkEffectiveType:null,networkType:null,trackingPixelUrl:null},N7=(0,b8.HY)({startup:(e=C7,t)=>{switch(t.type){case If:return{...C7,triggered:Date.now()};case yD:case $I:case Ff:case dI:case Ef:return{...e,trackingPixelUrl:t.trackingInfo.event_pixel,urlReceived:Date.now()};case qC:return{...e,contentStarted:Date.now()};case KB:return e.adsStarted?e:{...e,adsStarted:Date.now()};case oF:return{...e,streamRestored:Date.now()};case T7:return{...e,...t.data};case S7:return C7;default:return e}}}),f7="MEDIA_MODE_CHANGED",I7=Ou,w7={current:Pd,previous:null},O7="MEDIA_ZOOMED_IN",D7={zoomed:(()=>{const e=ae(O7);return!!(0,nC.A)(e)&&e})()},R7=(0,b8.HY)({mode:(e=I7,t)=>t.type===f7?t.mode:e,view:(e=w7,t)=>t.type===sO?{current:t.current,previous:e.current}:e,wrapper:(e=null,t)=>t.type===iJ?t.wrapper:e,zoom:(e=D7,t)=>t.type===CY?{...e,zoomed:t.zoomed}:e}),j7={current:(()=>{const e=y$(),t=v$(e);return{size:t,direction:e,visible:window.innerWidth>=Bt&&t===Qy}})(),previous:{size:null,direction:null,visible:!1}},k7={collection:[]};var P7=s(1937);const L7={add:[],remove:[]},M7={map:{},pidrid:{}},U7={records:{},map:{}},V7=(0,b8.HY)({channels:(e=k7,t)=>t.type===nA?{collection:t.channels}:e,duration:(e=null,t)=>t.type===nA?t.duration||null:e,pending:(e=L7,t)=>{switch(t.type){case pA:return{...e,add:[...e.add,t.id]};case uA:return{...e,add:(0,P7.A)(e.add,t.id)};case cA:return{...e,remove:[...e.remove,t.rid]};case dA:return{...e,remove:(0,P7.A)(e.remove,t.rid)};default:return e}},recordings:(e=M7,t)=>{switch(t.type){case"NPVR_PLAYLIST_ITEM_UPDATED":{const{recording:s}=t;return{...e,map:{...e.map,[s.id]:s}}}case nA:return{map:t.map,pidrid:t.pidrid};default:return e}},series:(e=U7,t)=>t.type===nA?{records:t.seriesRecords,map:t.seriesMap}:e}),B7={total:0,requiredConsents:[]},F7=Sd(),H7={air:!0,cast:!0,channelsSidebar:!0,cinema:!0,close:!0,pip:!0,pause:!0,broadcastDetails:!0,replay:!0,seek:!0,zap:!0},G7=(0,b8.HY)({settings:(e=H7,t)=>"OSD_SETTINGS_CHANGED"===t.type?{...e,...t.settings}:e}),q7="PLAYER_DEBUG_AUDIO_INFO_STORED",Y7={bitrate:null,codec:null,duration:null},W7={streamType:null},z7="PLAYER_DEBUG_VIDEO_INFO_STORED",$7={bitrate:null,codec:null,duration:null,frameRate:null,height:null,width:null},K7=(0,b8.HY)({audio:(e=Y7,t)=>{switch(t.type){case q7:return{...e,...t.audioInfo};case fF:return Y7;default:return e}},meta:(e=W7,t)=>{switch(t.type){case yf:return{...e,streamType:t.streamType};case IF:return W7;default:return e}},video:(e=$7,t)=>{switch(t.type){case z7:return{...e,...t.videoInfo};case fF:return $7;default:return e}}}),Q7={available:null},Z7={autoplayBlocked:!1,booted:!1,loadData:null},X7="PLAYER_PROFILE_UPDATED",J7={name:null,type:null,version:null},eee="PLAYER_SMART_BUFFER_SESSION_STARTED",tee=3*1.6,see=Math.floor(tee),nee=(e,t,s)=>{let n;n=0===s?t/2:2*t;const i=.5*n+.33*e+.17*see;return Math.floor(Math.min(20.8,Math.max(tee,i)))},iee={active:!1,averageBuffer:0,currentBuffer:see,forceTargetBuffer:null,stuttersCount:0,tunedSessionsCount:0},ree="PLAYER_STATUS_UPDATED",oee={buffer:{bitrate:-1,bufferedDuration:-1},playerConfig:{smartBuffer:!1,minBuffer:null}};var aee=s(4793);const lee={active:!1,cueText:null},cee="PLAYER_TIME_CURRENT_UPDATED",dee="PLAYER_TIME_DATA_UPDATED",pee={current:0,duration:null},uee=(0,b8.HY)({debug:K7,fullscreen:(e=Q7,t)=>t.type===kC?{available:t.available}:e,lifecycle:(e=Z7,t)=>{switch(t.type){case xF:return{...e,autoplayBlocked:t.value};case AF:return{...e,booted:!0};case CF:return{...e,loadData:t.loadData};case NF:return{...e,loadData:null};default:return e}},profile:(e=J7,t)=>t.type===X7?{...e,...t.profile}:e,smartBuffer:(e=iee,t)=>{switch(t.type){case eee:{if(!t.smartBuffer)return{...e,active:!1};const{averageBuffer:n,currentBuffer:i,tunedSessionsCount:r,stuttersCount:o}=e,a=(n*(s=r)+i)/(s+1);return{averageBuffer:a,currentBuffer:nee(a,i,o),tunedSessionsCount:r+1,active:!0,stuttersCount:0,forceTargetBuffer:e.forceTargetBuffer}}case QC:return e.active?{...e,stuttersCount:e.stuttersCount+1}:e;case"PLAYER_SMART_BUFFER_FORCE_TARGET_BUFFER_SET":return{...e,forceTargetBuffer:t.target};case"PLAYER_SMART_BUFFER_FORCE_TARGET_BUFFER_UNSET":return{...e,forceTargetBuffer:null};default:return e}var s},status:(e=oee,t)=>
1t.type===ree?t.statusSnapshot:e,subtitles:(e=lee,t)=>{switch(t.type){case $O:return{...e,active:t.track.id!==aee.y};case tN:return{...e,cueText:t.cueText};case eN:case KO:return{...e,cueText:null};default:return e}},time:(e=pee,t)=>{switch(t.type){case dee:return{...e,duration:t.duration};case cee:return{...e,current:t.current};case IF:return pee;default:return e}}}),hee="PWA_PROMO_INSTALL_DISMISSED",mee={status:(()=>{if(y$()===e_)return re(hee),!1;const e=ae(hee);return!!(0,nC.A)(e)&&e})()?Qa:"idle"},gee={query:null,inProgress:!1},yee=(()=>{const e=ae(R3);return!!(0,nC.A)(e)&&e})(),_ee=(0,b8.HY)({secrets:(e=yee,t)=>t.type===D3||e}),Eee={track:null,availableTracks:[]},vee={url_cid:null,cid:null,group_ids:[],recording:null,title:null,is_radio:null,number:null,qualities:[]};const xee={autoplay:s(8182).CY,couldHavePreRollAd:!0,initialTime:0,latencyMeasurementInterval:-1,postPadding:0,prePadding:0,seekForwardEligible:!1,startOffset:0,syncWithAiring:!1,registerTimeshift:null,replaySeekingAllowed:!1,unregisteredTimeshift:null,isContinuous:!1},bee={cid:null,c:[],channel_name:null,country:null,cr:null,d:null,e:null,e_no:null,et:null,g:[],i_t:null,id:null,r_e:null,ry_u:null,s:null,s_no:null,ser_e:null,t:null,ts_id:null,year:null,yp_r:null},Aee={id:null,cid:null,end:null,episode_title:null,image_token:null,level:null,partial:null,position:null,program_id:null,series_recording_eligible:null,start:null,title:null,tv_series_id:null,restricted_quality:null},See="STREAM_SOURCE_STORED",Tee={ads:[],streamType:null,authToken:null,local:{url:null,csid:null,licenseUrl:null},cast:{url:null,csid:null,licenseUrl:null},externalSubtitles:null},Cee="STREAM_STATUS_CHANGED",Nee={current:null,ready:!1,wasPaused:null,loadingNext:!1},fee={track:null,availableTracks:[],autoEnabled:null},Iee={allowed_offset:null,allowed_quality:null,forward_seeking:!1,liveGap:null,registered_at:null,resumeTime:null},wee="STREAM_TRACKS_LANGUAGE_NAMES_STORED",Oee={languageNames:null},Dee={previousPostPadding:0},Ree={movie:null,series:null,episode:null,nextEpisode:null,id:null,type:null,brand:null,title:null,subtitle:null,trailer_token:null,runtime:null,duration:null,image_token:null,drm_required:null,position:null,term_token:null,year:null,isSingleAudioStream:!1},jee="VOLUME_LEVEL",kee="VOLUME_MUTED",Pee={muted:(()=>{const e=ae(kee);return!!(0,nC.A)(e)&&e})(),level:gO?(()=>{const e=ae(jee);return(0,Mu.A)(e)?e:yO})():yO},Lee=(0,b8.HY)({audio:(e=Eee,t)=>{switch(t.type){case DD:return{...e,track:t.track};case OD:return{...e,availableTracks:t.availableTracks};case bf:return Eee;default:return e}},channel:(e=vee,t)=>{switch(t.type){case Lf:return{...t.channel};case bf:return vee;default:return e}},mode:(e=null,t)=>{switch(t.type){case kf:return t.mode;case bf:return null;default:return e}},parameters:(e=xee,t)=>{switch(t.type){case QI:return{...e,...t.parameters};case bf:return xee;default:return e}},program:(e=bee,t)=>{switch(t.type){case Uf:return{...bee,...t.program};case bf:return bee;default:return e}},recording:(e=Aee,t)=>{switch(t.type){case Gf:return t.recording;case Hf:case bf:return Aee;default:return e}},replay:(e=Dee,t)=>{switch(t.type){case KI:return{...e,previousPostPadding:t.previousPostPadding};case fF:return Dee;default:return e}},source:(e=Tee,t)=>{switch(t.type){case See:return t.source;case bf:return Tee;default:return e}},status:(e=Nee,t)=>{switch(t.type){case Cee:{const{status:s,wasPaused:n}=t,i=e.ready||s===ry;return{...e,current:s,ready:i,wasPaused:n}}case KI:return{...e,loadingNext:!0};case bf:return Nee;default:return e}},subtitles:(e=fee,t)=>{switch(t.type){case VO:return{...e,autoEnabled:t.language};case UO:return{...e,track:t.track};case MO:return{...e,availableTracks:t.availableTracks};case bf:return fee;default:return e}},timeshift:(e=Iee,t)=>{switch(t.type){case lI:{const{timeshiftInfo:s,liveGap:n}=t;return{...e,...s,liveGap:n,resumeTime:s.registered_at}}case pI:return{...e,resumeTime:t.resumeTime};case cI:case bf:return Iee;default:return e}},tracks:(e=Oee,t)=>t.type===wee?{languageNames:t.languageNames}:e,vod_content:(e=Ree,t)=>{switch(t.type){case Pf:return t.vod_content;case bf:return Ree;default:return e}},volume:(e=Pee,t)=>{switch(t.type){case bO:return{...e,muted:!0}
1;case AO:return{...e,muted:!1};case SO:return{...e,level:t.level};default:return e}},zap:(e=false,t)=>{switch(t.type){case wO:return!1;case IO:return!0;default:return e}}}),Mee="VIDEO_ADS_BCFF_STARTED",Uee="VIDEO_ADS_BCFF_CLEANED",Vee={seekTarget:null,streamAdBreakId:null},Bee="VIDEO_ADS_REQUESTED",Fee={settings:{cinema:!0,close:!0,counter:!0,expandPreroll:!0,fullscreen:!0,skip:!0,volume:!0},requestedAd:null},Hee=(0,b8.HY)({core:(e=Fee,t)=>{switch(t.type){case"VIDEO_ADS_SETTINGS_CHANGED":return{...e,settings:t.settings};case Bee:return{...e,requestedAd:t.adInfo};case bf:return{...e,requestedAd:null};default:return e}},bcff:(e=Vee,t)=>{switch(t.type){case Mee:return{...e,seekTarget:t.seekTarget,streamAdBreakId:t.streamAdBreakId};case Uee:return Vee;default:return e}}}),Gee={active:!1,brand:null,imageToken:null,processing:!1,selectedTerm:null,teasableId:null,teasableType:null,termsCatalog:null,title:null},qee=(0,b8.HY)({order:(e=Gee,t)=>{switch(t.type){case AS:return{...e,...t.data,active:!0,processing:!1};case SS:return Gee;case TS:return{...e,selectedTerm:t.value};case CS:return{...e,processing:!0};default:return e}}}),Yee=(0,b8.HY)({abTesting:H8,braze:(e=G8,t)=>{switch(t.type){case vz:return{...e,booted:!0};case xz:return{...e,hasControl:t.hasControl};default:return e}},cast:z8,channelsLib:(e=T8,t)=>{switch(t.type){case Yb:{const s=t.channels.map(tA),n=[],i={},r={},o={},a=[];s.forEach(e=>{i[e.cid]=e,(e=>{const t=Tp(e);return t===bp.OO||t===bp.eO||t===bp.$2})(e)&&(n.push(e),a.push(e.cid),r[e.cid]=e,o[e.number]=e)});const l=(e=>{const t={};return e.forEach(e=>{e.group_ids.forEach(s=>{t[s]||(t[s]=[]),t[s].push(e.cid)})}),t})(n),c=(e=>{const t=new Set(eA);return e.map(e=>{let s=(0,Xb.A)(e.name);return encodeURIComponent(s)!==s?s=String(e.id):t.has(s)&&(s=`${s}-${e.id}`),t.add(s),{...e,alias_id:s}})})(t.groups).filter(({id:e})=>l[e]),d=$b(r,t.favoritesCID).map(({cid:e})=>e),p=Kb(n,d),u=(e=>{const t=e.map(e=>[e.alias_id,e.id]);return Object.fromEntries(t)})(c),h=(e=>{const t=e??[],s=t.length?Math.max(...t.map(e=>e.number)):0;return Math.max(3,String(s).length)})(n);return{...e,channelNumberDisplayDigits:h,channelsMap:i,favoritesCID:d,favoriteVisibleChannels:p,groupAliases:u,groupedChannels:l,groups:c,visibleChannels:n,visibleChannelsByNumberMap:o,visibleChannelsCID:a,visibleChannelsMap:r}}case Wb:case zb:return{...e,favoritesCID:t.favoritesCID,favoriteVisibleChannels:t.favoriteVisibleChannels};default:return e}},channelsSidebar:K8,context:(e=Q8,t)=>{switch(t.type){case m_:{const{context:s}=t;return{...e,context:s,breadcrumbs:Z8(s,e.breadcrumbs),isChangeScheduled:!1}}case y_:return{...e,isChangeScheduled:!0};case __:return{...e,breadcrumbs:[]};case g_:return Q8;default:return e}},connectedContent:(e=null,t)=>t.type===PA?{...t.map}:e,dai:(e=e7,t)=>{switch(t.type){case X8:return{...e,sdkLoaded:!0};case J8:return{...e,isActive:t.isActive};default:return e}},displayAds:(e=t7,t)=>{switch(t.type){case Vj:{const s=t.slot.id;return{...e,slots:{...e.slots,[s]:{...e.slots[s],...t.slot}}}}case Bj:{const{[t.id]:s,...n}=e.slots;return{...e,slots:n}}case Fj:return{...e,apiStatus:t.apiStatus};default:return e}},edit:(e=l7,t)=>{switch(t.type){case KW:return{...l7,inEdit:t.inEdit};case QW:return{...e,mode:t.mode};case JW:return{...e,pickedIds:t.pickedIds,total:t.total||e.total};case ZW:return{...e,pickedIds:t.pickedIds,excludedIds:t.excludedIds,total:e.total+1};case sz:return{...e,pickedIds:t.pickedIds,excludedIds:t.excludedIds,total:e.total-1};case nz:return{...e,pickedIds:[],total:0};case $W:return{...l7};default:return e}},editorial:a7,epg:m7,guide:(e=g7,t)=>{switch(t.type){case M0:return{...e,...t};case ZV:return{...e,position:null};default:return e}},highlighter:(e=y7,t)=>{switch(t.type){case rv:return{...e,exist:t.exist};case ov:return{...e,portal:t.exist};default:return e}},inAppMessages:(e=E7,t)=>"IN_APP_MESSAGES_SET"===t.type?{...e,eligible:t.eligible,topics:t.topics}:e,ima:(e=_7,t)=>{switch(t.type){case JB:return{...e,sdkStatus:"LOADING"};case eF:return{...e,sdkStatus:mu};case tF:return{...e,sdkStatus:"UNAVAILABLE"};case BB:return{...e,status:"loading"};case lF:case HB:return{...e,status:null};case QB:return{...e,podInfo:t.podInfo,podInfoReady:!0};case GB:return{...e,adInfo:t.adData,adInfoReady:!0,currentTime:null};case YB:return{...e,status:uu,cuePoints:t.cuePoints};case ZB:return{...e,currentTime:t.currentTime};case KB:case $B:return{...e,status:"playing"};case zB:return{...e,status:hu};case rF:return{...e,active:!0};case oF:return{..._7,cuePoints:e.cuePoints,status:uu,sdkStatus:e.sdkStatus};case MB:case iF:return{..._7,sdkStatus:e.sdkStatus};default:return e}},inputSource:(e=w8,t)=>t.type===ei?t.inputSource:e,keyHandler:(e=O8,t)=>{switch(t.type){case Ji:{const{exclusive:s,handlerId:n,keys:i}
1=t,r=e.list.concat({id:n,keys:i});return{...e,exclusiveId:s?n:e.exclusiveId,keysFlat:D8(r),list:r}}case er:{const s=t.handlerId,n=((e,t)=>{for(let s=0;s<e.length;s++)if(e[s].id===t)return s;return-1})(e.list,s);if(-1!==n){const t=((e,t)=>{const s=e.slice();return s.splice(t,1),s})(e.list,n);return{...e,exclusiveId:e.exclusiveId===s?null:e.exclusiveId,keysFlat:D8(t),list:t}}return e}default:return e}},lineup:A7,measurement:N7,media:R7,menu:(e=j7,t)=>{switch(t.type){case V$:case F$:case B$:return{current:{direction:t.direction,size:t.size,visible:t.visible},previous:e.current};default:return e}},metadataLib:(e=A8,t)=>t.type===Db?{...e,rating_sources:t.rating_sources}:e,npvr:V7,optIn:(e=B7,t)=>{switch(t.type){case"OPT_IN_CONSENT_DECLINED":case"OPT_IN_CONSENT_ACCEPTED":return{...e,requiredConsents:t.requiredConsents};case"OPT_IN_REQUIRED_CONSENTS_SET":return{...e,requiredConsents:t.requiredConsents,total:t.total};default:return e}},tcf:(e=R8,t)=>t.type===mo?{groups:t.groups,ready:!0}:e,orientation:(e=F7,t)=>t.type===bd?t.orientation:e,osd:G7,pauseAdLib:(e=S8,t)=>{switch(t.type){case DG:return{...e,image:t.image};case RG:return{...e,status:t.status};case jG:return{...e,isDisplayed:t.isDisplayed};case OG:return S8;default:return e}},player:uee,profile:(e=L8,t)=>t.type===P8?t.profile:e,pwaPromo:(e=mee,t)=>t.type===Rc?{...e,status:t.status}:e,routes:(e=j8,t)=>{switch(t.type){case Aa:{const{routeInfo:s}=t;return{...e,...s,pathPrevious:e.path,state:s.state||{}}}case Sa:return{...e,pathFrom:t.pathFrom};case Na:return{...e,landingLocation:t.landingLocation};case fa:return{...e,editorialPaths:t.editorialPaths};default:return e}},search:(e=gee,t)=>{switch(t.type){case Rz:return{...e,query:t.query};case Pz:return{...e,inProgress:!0};case Lz:return{...e,inProgress:!1};case kz:return gee;default:return e}},sessionLib:(e=k8,t)=>{switch(t.type){case Go:return{...e,...ea(t.session)};case"LIB_SESSION_RESET":return k8;case"LIB_SESSION_RESTRICTED_USAGE_UPDATED":return{...e,account:{...e.account,restricted_usage:t.restrictedUsage}};default:return e}},settings:_ee,stream:Lee,streamLib:N8,streamMarkersLib:(e=I8,t)=>{switch(t.type){case SI:return{...e,adBreaks:t.adBreaks,markers:t.markers,markersHandling:t.markersHandling};case OI:return{...e,markersHandling:{...e.markersHandling,...t.markersHandling}};case CI:return{...e,activeAdBreak:t.adBreakId,activeAdBreakArea:t.adBreakArea};case fI:return{...e,adBreaks:f8(e.adBreaks,t.adBreakId,{visited:!0})};case II:return{...e,adBreaks:f8(e.adBreaks,t.adBreakId,{completed:!0,visited:!0})};case wI:return{...e,activeAdBreakArea:t.adBreakArea};case NI:return{...e,activeAdBreak:null,activeAdBreakArea:null};case TI:return I8;default:return e}},videoAds:Hee,vodLib:B8,vod:qee,window:(e=M8,t)=>{switch(t.type){case jv:return{opened:!1,originLocation:null};case kv:return{opened:!0,originLocation:t.originLocation};default:return e}}});let Wee=!1;let zee;const $ee=({getState:e})=>{let t=!1;return s=>n=>{const i=s(n);if(n.type===Go){const s=e();!t&&Ne(s)&&(t=!0,go({src:"https://js.adscale.de/map.js",async:!0}).catch(()=>{}))}return i}},Kee=e=>{if(!e)return hp;const t=ae(XV);return[mp,...e].includes(t)?t:hp};rs({anonymize_ip:!0});const Qee=({getState:e})=>t=>s=>{switch(s.type){case Go:{const n=t(s),i=e(),r=we(i);Array.isArray(r)&&ds("dimension1",r.join(", "));const o=du(i)?"ads enabled":"ads disabled";return ds("dimension2",o),ds("dimension6","production".toUpperCase()),ds("dimension9",Wd(i)),ds("dimension10",$d(i)),ds("dimension11",zd(i)),ds("dimension13",po(i)),ds("dimension14",Oe(i)),ds("dimension17",hh(i)),ds("dimension20",Eh(i)),rs({user_id:Ie(i)}),n}case Wb:{const n=t(s);return ds("dimension15",Pp(e()).length),n}case Yb:{const n=t(s),i=e(),r=Object.keys(Mp(i)),o=Kee(r);return ds("dimension4",o),ds("dimension15",Pp(i).length),n}case nA:{const n=t(s);return ds("dimension18",Wf(e())),n}case m_:{const n=t(s),i=e();return ds("dimension21",od(i)),n}case Aa:{const n=t(s),i=e(),r=wL(i);return(ZL(i)||QL(i))&&as({action:"show",category:"teaserCollections",value:lM(i,r)}),n}case mo:{const n=t(s);return window[`ga-disable-${ge.gtag.options.id}`]=!Dd(e()),n}default:return t(s)}},Zee=()=>{const e=bz;e&&e.subscribeToInAppMessage(t=>{let s=!0;if(t instanceof e.InAppMessage){"push-primer"===t.extras["msg-id"]&&((!e.isPushSupported()||e.isPushPermissionGranted()||e.isPushBlocked())&&(s=!1),(t instanceof e.FullScreenMessage||t instanceof e.ModalMessage)&&null!==t.buttons[0]&&t.buttons[0].subscribeToClickedEvent(()=>{e.requestPushPermission()}))}s&&e.showInAppMessage(t)})},Xee=({dispatch:e,getState:t})=>{let n=!1;const i=()=>{const i=t();var r;n=!0,(r=ge.analytics_braze.options,Az=r,s.e(120).then(s.bind(s,1180)).then(e=>{bz=e})).then(()=>{var t;n=!1,Sz(),t=Ie(i),bz?.changeUser(t),Zee(),bz?.openSession(),ds("dimension22",Boolean(bz?.isPushSupported())),ds("dimension23",Boolean(bz?.isPushPermissionGranted())),e({type:vz})})};return e=>s=>
1{switch(s.type){case Go:case mo:{const r=e(s),o=t(),a=yz(o),l=Ne(o),c=Dd(o),d=c&&l&&!n&&!a,p=a&&c!==Boolean(bz&&!bz.isDisabled());return d?i():p&&(c?Sz():bz?.disableSDK()),r}default:return e(s)}}},Jee="LIVE",ete="REPLAY",tte="RECORDING",ste="TIMESHIFT",nte="VOD_MOVIE",ite="VOD_EPISODE",rte=e=>t=>{const s=t({type:f7,mode:e});return Un({type:"MEDIA_MODE_CHANGE",media_mode:e}),s},ote="urn:x-cast:com.zattoo.cast.media",ate="STREAM_BUFFERING",lte="STREAM_PAUSED",cte="STREAM_PLAYING",dte="ADS_PLAYING",pte=e=>e.cast.receiver,ute=(e,t)=>{const s=t.map(({id:e})=>Number(e));return e.filter(e=>s.includes(e))},hte=e=>{const{tracks:t}=e.media;return t.length?t.filter(e=>e.type===chrome.cast.media.TrackType.AUDIO).map(e=>({contentType:e.trackContentType,id:`${e.trackId}`,languageCode:e.language})):[]},mte=e=>{const{tracks:t}=e.media;return t.length?[{id:aee.y},...t.filter(e=>e.type===chrome.cast.media.TrackType.TEXT).map(e=>({contentType:e.trackContentType,id:`${e.trackId}`,languageCode:e.language,kind:e.subtype}))]:[]},gte=e=>ute(e.activeTrackIds,mte(e)),yte=e=>e.vast_url.includes("pubads.g.doubleclick.net"),_te=e=>({id:(0,mn.Ak)(),...e}),Ete=e=>(e=>sg(e).url)(e)||ig(e),vte=e=>(e=>sg(e).licenseUrl)(e)||rg(e),xte=e=>{const t=lg(e).find(yte);return t?t.cast_vast_url||t.vast_url:null},bte=e=>{switch($p(e)){case Hp:return{cid:Cm(e),streamType:Jee};case qp:return{recordingId:sh(e),streamType:tte};case Gp:return{cid:Cm(e),programId:Zu(e),streamType:ete};case Yp:return{cid:Cm(e),registeredAtTime:Wu(e),allowedOffset:zu(e),streamType:ste};case Wp:return{id:Kh(e),termToken:sm(e),streamType:nte};case zp:return{seriesId:Jh(e),seasonId:em(e),episodeId:tm(e),termToken:sm(e),streamType:ite};default:return null}},Ate=e=>{switch($p(e)){case Hp:return`${Jee}-${Cm(e)}`;case Yp:return`${ste}-${Cm(e)}`;case Gp:return`${ete}-${Cm(e)}-${Zu(e)}`;case qp:return`${tte}-${sh(e)}`;case Wp:return`${nte}-${Kh(e)}`;case zp:return`${ite}-${tm(e)}`;default:return null}},Ste=e=>{const{media:t}=chrome.cast,s={metadataType:t.MetadataType.GENERIC,title:Hw(e),subtitle:qw(e)};let n;if(iu(e)&&(s.sectionStartAbsoluteTime=Yg(e)),ou(e)){const t=Qu(e);s.title=t.t,s.subtitle=t.et,t.s_no&&(s.season=t.s_no),t.e_no&&(s.episode=t.e_no),t.year&&(s.originalAirdate=new Date(t.year,1).toISOString()),n=fm(e)}if(tu(e)){s.metadataType=Jp(e)?t.MetadataType.MOVIE:t.MetadataType.TV_SHOW;const i=(e=>$h(e)?.year)(e);i&&(s.releaseDate=new Date(i,1).toISOString()),n=cm(e),s.metadataType=t.MetadataType.MOVIE}else s.sectionDuration=Kg(e);return n&&(s.images=[{url:(0,$T.dQ)({url:ca(e),token:n,format:WT.sN}),width:640,height:360}]),s},Tte=e=>{const{media:t}=chrome.cast,s=Ate(e),n=new t.MediaInfo(s,"application/dash+xml");return n.contentUrl=Ete(e),n.metadata=Ste(e),n.customData=(e=>({licenseUrl:vte(e),vastUrl:xte(e),watchInfo:bte(e),blockLocalFFW:wg(e),version:1}))(e),n.streamType=ru(e)?t.StreamType.LIVE:t.StreamType.BUFFERED,n},Cte=e=>{const t=Tte(e),s=(e=>{if(Kp(e))return null;if(Qp(e))return(Fu(e)||Qg(e))-$u(e);return dy(e)?Fu(e):jg(e)})(e),n=new chrome.cast.media.LoadRequest(t);return null!==s&&(n.currentTime=s),n.autoplay=Ug(e),n},Nte=({dispatch:e,getState:t})=>{let s,n,i,r,o,a=!1,l=null,c=null,d=null,p=null,u=null;const h=()=>{const{isMuted:t,canControlVolume:s}=r,n=Math.round(100*r.volumeLevel);e(((e,t,s)=>({type:Gx,level:e,canChange:t,isMuted:s}))(n,s,t)),s&&(0===n||t)&&e(TO())},m=e=>{const t=e?.media?.tracks;return t?.length?t.map(e=>`${e.trackId}:${e.language}:${e.type}`).join(","):""},g=()=>{const s=t(),n=i.getMediaSession();let r,o;if(d=m(n),hD(s)){const t=hte(n),s=mte(n);r=(e=>{const t=hte(e);return ED(t)})(n),o=(e=>{const t=mte(e);return nD(t)})(n),t.length&&(e(PD(t)),e(kD(r))),s.length&&(e(aD(s)),e(oD(o)))}else r=dD(s);const a=[r?Number(r.id):1];o&&o.id!==aee.y&&a.push(Number(o.id));const l=new chrome.cast.media.EditTracksInfoRequest(a);n.editTracksInfo(l,vn.A,e=>{Z(e.description)})},y=()=>{const e=i?.getMediaSession(),t=r.mediaInfo?.startAbsoluteTime,s=e?.currentTime;return t&&null!=s&&s>r.duration?{absoluteTime:Math.trunc(s),startAbsoluteTime:t}:null},_=()=>{const s=t(),n=y();if(n){const{startAbsoluteTime:t,absoluteTime:s}=n;return void e(HO(s-t,s))}const i=Math.trunc(r.currentTime);let o=i;ru(s)&&(o+=r.mediaInfo.startAbsoluteTime),e(HO(i,o))},E=()=>{const s=t();let{duration:n}=r;(ru(s)||-1===n)&&(n=null),e((e=>({type:zx,duration:e}))(n))},v=t=>{e((e=>({type:OI,markersHandling:e}))({forward_seeking_needs_markers:t}))},b=()=>{const s=i.getMediaSession();if(!s||!s.media)return Promise.reject(new Error("No media session available"));const n=s.media.customData,r=t(),{watchInfo:o}=n;switch(o.streamType){case Jee:{const{cid:t}=o;if(tf(r,t)&&!nf(r,t))return e(bI({cid:t,force:!0}));break}case tte:{const t=o.recordingId;if(((e,t)=>Boolean(Yf(e)[t]))(r,t))return e(zI({rid:t}));break}case ete:if(!tf(r,o.cid))break;return e(xw({pid:o.programId}));case nte:return e(ND({movie_id:o.id,term_token:o.termToken}));case ite:return e(ID({series_id:o.seriesId,season_id:o.seasonId,episode_id:o.episodeId,term_token:o.termToken}));default:return Promise.reject(new Error("Failed to synchronize Cast streams"))}return Promise.reject(new Error("Failed to synchronize Cast streams"))},A=()=>{const s=t(),n=pte(s);E(),_(),e(WO(!1)),e(qO(n)),p=null},S=()=>{const s=i.getMediaSession();if(!s||!s.media)return Promise.resolve();const n=t(),r=Ate(n),o=s.media.contentId;return o===r||p===o?Promise.resolve():(e(WO(!0)),b().then(A).catch(t=>((t,s)=>{p!==s?(p=s,Z(t),e(WO(!1)),e(Df(!0,!0)),bi({text:x(10),soul:"CAST_TOAST_UNAVAILABLE_STREAM_ERROR"})):e(WO(!1))})(t,o)))},T=()=>{const s=t(),n=r.mediaInfo,o=Ate(s),a=n.contentId;c&&a===c&&(c=null);const d=i.getMediaSession();if(!l){const{IdleReason:s}=chrome.cast.media;l=()=>{const n=i.getMediaSession();if(!n)return;if(n.idleReason===s.FINISHED)return void e({type:Qx});const r=t(),o=Ate(r),a=n.media?.contentId;c||fg(r)||a&&a!==o&&S()}}d.removeUpdateListener(l),d.addUpdateListener(l),c||o===a||S(),g()},C=t=>{switch(t.field){case"playerState":(()=>{const{playerState:t}=r,{PlayerState:s}=chrome.cast.media,n={[s.IDLE]:"APP_IDLE",[s.PLAYING]:cte,[s.PAUSED]:lte,[s.BUFFERING]:ate}[t];n&&e(qO(n))})();break;case"volumeLevel":case"isMuted":case"canControlVolume":h();break;case"currentTime":_();break;case"duration":E();break;case"mediaInfo":{const e=m(i.getMediaSession());a&&r.mediaInfo?.hasOwnProperty("tracks")?(a=!1,T()):e&&e!==d&&g();break}case"isMediaLoaded":{if(!r.isMediaLoaded){a=!1;break}const e=i.getMediaSession();if(null===e?.currentItemId)break;r.mediaInfo?.hasOwnProperty("tracks")?T():a=!0;break}}},N=(t,s)=>{const n=JSON.parse(s);switch(n.type){case"status_changed":{const{statusType:t}=n;t===dte&&e(qO(t));break}case"ads_info_update":e((e=>({type:$x,cuePoints:e}))(n.cuePoints))}},f=i=>
1{const a=t(),l=new chrome.cast.CredentialsData(fe(a));s=cast.framework,n=s.CastContext.getInstance(),r=new s.RemotePlayer,o=new s.RemotePlayerController(r),n.setOptions({receiverApplicationId:i,autoJoinPolicy:chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED,androidReceiverCompatible:!0,credentialsData:l}),n.addEventListener(s.CastContextEventType.CAST_STATE_CHANGED,t=>{var s;e((s=t.castState,{type:wx,status:s}))}),n.addEventListener(s.CastContextEventType.SESSION_STATE_CHANGED,s=>{e(XG(s.sessionState)),Tg(t())&&e(zO())})};return a=>l=>{switch(l.type){case fx:{const t=a(l);return window.__onGCastApiAvailable=t=>{t&&chrome?.cast?.isAvailable&&"function"==typeof chrome.cast.CredentialsData&&"string"==typeof window.cast?.framework?.VERSION?(e(Zx(gg)),f(l.receiverApplicationId)):e(Zx(yg))},e(Zx("LOADING")),Ro({src:"https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1",autoblock:!1}).catch(()=>{e(Zx(yg))}),t}case Dx:{const s=a(l),i=t();return xg(i)&&!Ag(i)||e(XG(cast.framework.SessionState.SESSION_STARTING)),Tg(i)&&e(zO()),n.requestSession().catch(()=>{const s=t();bg(s)&&e(XG((e=>e.cast.session.previous)(s)))}),s}case Rx:{const s=a(l),n=t();return!i&&(e=>!!_g(e)&&[cast.framework.SessionState.SESSION_STARTED,cast.framework.SessionState.SESSION_RESUMED].includes(xg(e)))(n)?(e({type:jx}),s):i&&Ag(n)?(e({type:kx}),s):s}case jx:{const c=a(l),d=t();return e(rte(Du)),i=n.getCurrentSession(),i.addMessageListener(ote,N),o.addEventListener(s.RemotePlayerEventType.ANY_CHANGE,C),u&&clearInterval(u),u=setInterval(()=>{r.isMediaLoaded&&y()&&_()},1e3),EO(d)&&r.canControlVolume&&e(YO(!0)),ag(d)&&e(GO()),h(),as({action:"startCasting",category:"casting",label:"chromecast_live"}),c}case kx:{const n=t(),r=Ig(n),c=a(l);return $p(n)&&Og(n)&&v(!1),e(rte(Ou)),e(XI({initialTime:r})),o.removeEventListener(s.RemotePlayerEventType.ANY_CHANGE,C),u&&(clearInterval(u),u=null),i&&(i.removeMessageListener(ote,N),i=null),p=null,c}case Lx:{const e=a(l),s=t();if(Og(s)&&v(!0),!fg(s)){const e=Cte(s);c=Ate(s),i.loadMedia(e)}return e}case qx:{const e=a(l);return i.setVolume(l.level/100),e}case Yx:{const e=a(l);return i.setMute(l.isMuted),e}case Mx:{const e=a(l);return r.isPaused=!1,o.playOrPause(),e}case Ux:{const e=a(l);return r.isPaused=!0,o.playOrPause(),e}case Bx:{const e=a(l);return o.stop(),(e=>pte(e)===dte)(t())&&i.sendMessage(ote,{type:"stop_ads"}),as({action:"stopCasting",category:"casting",label:"chromecast_live"}),e}case Vx:{const s=a(l),n=t();let i,c;if(ru(n)){const{startAbsoluteTime:e}=r.mediaInfo,t=Yg(n)+l.position;i=Math.max(e,t),c=i-e}else c=(0,DS.A)(l.position,0,r.duration),i=c;return r.currentTime=c,o.seek(),e(HO(c,i)),s}case Px:{const t=a(l),s=i.getMediaSession();if(!s)return null;const{track:n}=l,r=[Number(n.id),...gte(s)],o=new chrome.cast.media.EditTracksInfoRequest(r);return s.editTracksInfo(o,()=>{e(kD(n))},e=>{Z(e.description)}),t}case Fx:{const t=a(l),s=i.getMediaSession();if(!s)return null;const{track:n}=l,r=(e=>ute(e.activeTrackIds,hte(e)))(s).slice();n.id!==aee.y&&r.push(Number(n.id));const o=new chrome.cast.media.EditTracksInfoRequest(r);return s.editTracksInfo(o,()=>{e(oD(n))},e=>{Z(e.description)}),t}case vf:{const e=a(l);if(!i)return e;const s=(e=>!!e&&e.playerState!==chrome.cast.media.PlayerState.IDLE)(i.getMediaSession());return s&&i.sendMessage(ote,{type:"set_media_metadata",metadata:Ste(t())}),e}case Yc:{const e=a(l);return re(BO),e}default:return a(l)}}},fte=e=>{if(!e)return null;const t=new Date(e).getTime(),s=Date.now()-t,n=new Date(s);return Math.abs(n.getUTCFullYear()-1970)},Ite=e=>e.profile.gender,wte=e=>e.profile.domborn,Ote=e=>e.profile.monthborn,Dte=e=>e.profile.yearborn,Rte=e=>((e,t,s)=>{if(!e)return null;let n=e;return t&&(n+=`.${t}`),t&&s&&(n+=`.${s}`),n})(Dte(e),Ote(e),wte(e));var jte=s(7627);const kte="PLAYER_PLAY_REQUESTED",Pte=()=>({type:kte}),Lte=e=>({type:J8,isActive:e});let Mte,Ute=!1,Vte=!1,Bte=!1,Fte=null;const Hte=e=>e?e[0].toLowerCase():"none",Gte=e=>{const t=new google.ima.dai.api.LiveStreamRequest;t.assetKey=e.assetKey,t.apiKey=e.apiKey;const s={ppid:e.publicId};e.currentAdUnit&&(s.iu=e.currentAdUnit);const n=(e=>he.A.stringify(e))({age:e.age,channel:e.cid,cid:e.cid,gender:Hte(e.gender),language:e.language,uid:e.publicId});n&&(s.cust_params=n),t.adTagParameters=s,Mte.requestStream(t)},qte=e=>{const t=e.detail.metadata?.properties?.messageData;t&&Mte?.onTimedMetadata({TXXX:t})},Yte=({dispatch:e,getState:t})=>s=>n=>{if(n.type===Go){const i=s(n),r=t();return Ne(r)&&du(r)&&!(e=>null!==e.displayAds.apiStatus)(r)?(e(qj("loading")),new Promise((e,t)=>
1{go({src:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"}).then(()=>{googletag.apiReady&&!googletag.getVersion()?t():googletag.cmd.push(e)}).catch(t)}).then(()=>{(()=>{const s=t();googletag.pubads().set("adsense_background_color","#000"),googletag.pubads().enableSingleRequest(),pu(s)?googletag.pubads().setRequestNonPersonalizedAds(0):googletag.pubads().setRequestNonPersonalizedAds(1),googletag.pubads().enableLazyLoad({fetchMarginPercent:500,renderMarginPercent:200,mobileScaling:2}),googletag.pubads().addEventListener("slotRenderEnded",t=>{try{e(Gj({id:Rj(t.slot),isEmpty:t.isEmpty,rendered:!0}))}catch(e){Z(e)}}),googletag.enableServices()})(),e(qj(Iy))}).catch(()=>{e(qj(wy))}),i):i}return s(n)},Wte="start",zte="pause",$te="fast_forward";let Kte,Qte=!1;const Zte=(e,t)=>{Kte&&Qte&&Kte.markEvent(e,t)},Xte=e=>{switch(e){case Jm.Hz:return zte;case Jm.lI:return $te;case Jm.ps:return Wte;default:return null}},Jte="AD_REQUEST",ese="AD_RESPONSE";let tse=!1,sse=!1,nse=null;const ise=()=>{sse=!0},rse=()=>tse&&!sse,ose="FAVORITES_ONBOARDING",ase=()=>({type:S7}),lse=e=>e.measurement.startup,cse=e=>{const{bitrate:t,bufferedDuration:s,networkEffectiveType:n,networkType:i}=lse(e),r={};return n&&(r.networkEffectiveType=n),i&&(r.networkType=i),{bitrate:t,bufferedDuration:s,...r}},dse=e=>{const{triggered:t,urlReceived:s,adsStarted:n,streamRestored:i,contentStarted:r}=lse(e);return{triggered:t,urlReceived:s,adsStarted:n,streamRestored:i,contentStarted:r}},pse=e=>({timestamps:dse(e),...cse(e)}),use=e=>lse(e).trackingPixelUrl;var hse=s(5356);const mse=(e,t)=>{const{timestamps:s,...n}=e;s.adsStarted||(s.adsStarted=s.streamRestored?s.contentStarted:0);((e,t)=>{if(!t||!t.includes("z32="))return Promise.resolve();const s=t.concat("&event_type=STREAM_STARTUP",`&bitrate=${e.bitrate}`,`&buffered_duration=${e.bufferedDuration}`,`&triggered_ts=${e.timestamps.triggered}`,`&url_received_ts=${e.timestamps.urlReceived}`,`&ads_started_ts=${e.timestamps.adsStarted}`,`&content_started_ts=${e.timestamps.contentStarted}`,e.networkType?`&network_type=${e.networkType}`:"",e.networkEffectiveType?`&network_effective_type=${e.networkEffectiveType}`:"");(0,hse.QJ)(s)})({...n,networkEffectiveType:navigator?.connection?.effectiveType,networkType:navigator?.connection?.type,timestamps:s},t)},gse=({dispatch:e,getState:t})=>s=>n=>{switch(n.type){case qC:{const i=s(n),r=t(),o=pse(r),a=use(r);return dg(r)&&!o.timestamps.streamRestored||(mse(o,a),e(ase())),i}case oF:{const i=s(n),r=t(),o=pse(r),a=use(r);return!o.timestamps.adsStarted&&!o.timestamps.contentStarted||(o.timestamps.contentStarted=Date.now(),mse(o,a),e(ase())),i}default:return s(n)}};let yse=!0;const _se=[({dispatch:e,getState:t})=>s=>n=>{switch(n.type){case sO:return n.current!==Vy(t())&&s(n);case jx:{const i=s(n);return py(t())&&e(aO()),i}case Yc:{const e=s(n);return re(Uy),e}case DC:{const e=s(n);return yse=n.lockOrientation,e}case FC:{const i=s(n),r=t();try{yse&&xd&&screen.orientation?.lock?.(Ad)?.catch(vn.A)}catch(e){Z(e)}return e(nO({view:kd})),Pu(r)&&e(SN()),Vp(r)&&e(aB()),!Bp(r)&&iu(r)&&e(iB()),i}case HC:{const i=s(n),r=t();return Gy(r)&&e(nO({view:By(r)})),Bp(r)&&(Hy(r)?e(lB()):e(rB())),i}case gN:{const i=s(n),r=t();return Fy(r)?e(iO()):Gy(r)&&e(aN()),e(rte("pip")),i}case _N:{const i=s(n);return Pu(t())&&e(rte(Ou)),i}default:return s(n)}},({dispatch:e,getState:t})=>s=>n=>{if(n.type===iJ){const i=s(n),r=t();return jw(r)&&kw(r)&&!Pa(r)&&e(Qw()),i}return s(n)},()=>e=>t=>{switch(t.type){case CY:{const s=e(t);return oe(O7,t.zoomed),bi({text:t.zoomed?x(146):x(147),soul:"MEDIA_TOAST_ZOOM",autoDismissTimer:2e3}),as({action:t.zoomed?"zoomIn":"zoomOut",category:"videoPlayer",label:"player_pinch"}),s}case Yc:{const s=e(t);return re(O7),s}default:return e(t)}}],Ese="ZPUSH_NPVR_PLAYLIST_UPDATED",vse="ZPUSH_VOD_ORDER_UPDATED";let xse=!1;const bse=e=>e.type===Jm.Hz;class Ase{constructor(){this.timeoutId=null,this.rejectPromise=void 0}start(e){return new Promise((t,s)=>{this.timeoutId=setTimeout(()=>{this.timeoutId=null,this.rejectPromise=null,t()},e),this.rejectPromise=s})}cancel(){null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.rejectPromise&&(this.rejectPromise(null),this.rejectPromise=null)}}class Sse{constructor(e,t){this.adInfo=void 0,this.adId=(0,mn.Ak)(),this.offset=void 0,this.timeoutCtrl=void 0,this.pendingRequest=void 0,this.streamTime=void 0,this.adInfo=e,this.offset=1e3*(e.offset??0),this.streamTime=t}destroy(){this.clearTimeout(),this.clearPendingRequest()}clearTimeout(){this.timeoutCtrl&&(this.timeoutCtrl.cancel(),this.timeoutCtrl=null)}clearPendingRequest(){this.pendingRequest&&(4!==this.pendingRequest.readyState&&this.pendingRequest.abort(),this.pendingRequest=null)}wait(){return this.timeoutCtrl=new Ase,this.timeoutCtrl.start(this.offset)}load(){return new Promise((e,t)=>
1{Zte({type:Jte,ad_id:this.adId,ad_type:zte}),this.load_(t=>{Zte({type:ese,ad_id:this.adId,ad_type:zte}),e(t)},e=>{Zte({type:ese,ad_id:this.adId,ad_type:zte,response_error:e}),t(e)})})}load_(e,t){const s=new XMLHttpRequest;this.pendingRequest=s,s.addEventListener("load",()=>{const{status:n}=s;if(200===n)try{const t=this.parseVAST(s.responseText);e(t)}catch{t("malformed_vast")}else t(String(n));this.clearPendingRequest()}),s.addEventListener("error",()=>{t("network_error"),this.clearPendingRequest()}),s.addEventListener("abort",()=>{t("request_aborted"),this.clearPendingRequest()}),s.open("GET",this.getVASTUrl()),s.send()}getOriginalDateTime(){const e=new Date(1e3*this.streamTime),[t]=e.toISOString().split(".");return`${t}Z`}getVASTUrl(){const e=(new Date).toISOString(),t=he.A.parseUrl(this.adInfo.vast_url);for(const s of Object.keys(t.query)){const n=t.query[s];"string"==typeof n&&(t.query[s]=n.replace(/\[timestamp\]/gi,e))}return t.query.Originaldatetime=this.getOriginalDateTime(),he.A.stringifyUrl(t)}parseVAST(e){const t=(new DOMParser).parseFromString(e,"application/xml").querySelector("Creatives > Creative > NonLinearAds"),s=t.querySelectorAll("TrackingEvents > Tracking"),n=t.querySelector("NonLinear"),i=n.querySelector("StaticResource"),r=Array.from(s).map(e=>[e.getAttribute("event"),e.textContent]),o={height:Number(n.getAttribute("height")),src:i.textContent,width:Number(n.getAttribute("width"))},a=Object.fromEntries(r);return{adId:this.adId,image:o,trackingEvents:a}}}class Tse{constructor(e){this.vastInfo=void 0,this.displaySent=!1,this.shortDurationSent=!1,this.longDurationSent=!1,this.trackShortDuration=(0,xn.A)(()=>{this.shortDurationSent=!0,Zte({type:"AD_PAUSE_10_SEC",ad_id:this.vastInfo.adId}),this.dispatchEvent("overlayViewDuration")},3e3),this.trackLongDuration=(0,xn.A)(()=>{this.longDurationSent=!0,this.dispatchEvent("otherAdInteraction")},6e4),this.vastInfo=e}displayed(){this.displaySent||(this.displaySent=!0,Zte({type:"AD_PAUSE_DISPLAY",ad_id:this.vastInfo.adId}),this.dispatchEvent("creativeView")),this.trackDuration()}close(){this.displaySent&&this.dispatchEvent("close"),this.cancelDurationTracking()}hidden(){this.cancelDurationTracking()}trackDuration(){this.shortDurationSent||this.trackShortDuration(),this.longDurationSent||this.trackLongDuration()}cancelDurationTracking(){this.trackLongDuration.cancel(),this.trackShortDuration.cancel()}dispatchEvent(e){const t=this.vastInfo.trackingEvents[e];if(!t)return Promise.reject(new Error(`Pause Ad: event "${e}" is not defined.`));const s=encodeURIComponent((new Date).toISOString()),n=t.replace(/\[timestamp\]/gi,s);return fetch(n).then(t=>t.ok?Promise.resolve():Promise.reject(new Error(`Pause Ad: Failed to send "${e}" event.`)))}}const Cse=[({dispatch:e,getState:t})=>{let s;const n=()=>{const e=t();return Boolean(s)&&uy(e)&&rG(e)&&ku(e)&&!vu(e)&&!vy(e)},i=()=>{const n=t(),i=Qg(n);e(((e,t)=>({type:wG,adInfo:e,streamTime:t}))(s,i))},r=()=>{const s=t();rG(s)||e({type:OG})};return e=>o=>{switch(o.type){case Cee:{const s=e(o),a=t();return n()?i():(my(a)||gy(a))&&r(),s}case f7:{const s=e(o),a=t();return n()?i():Lu(a)&&r(),s}case See:return s=o.source.ads?.find(bse),e(o);case bf:return s=null,r(),e(o);default:return e(o)}}},({dispatch:e})=>{let t,s;return n=>i=>{switch(i.type){case wG:return t=new Sse(i.adInfo,i.streamTime),Zte({type:"PAUSE"}),t.wait().then(()=>t.load()).then(t=>{var n;s=new Tse(t),e((n=t.image,{type:DG,image:n})),e(kG(tG))}).catch(vn.A),e(kG("PENDING")),n(i);case OG:return t&&(t.destroy(),t=null),s&&(s.close(),s=null),n(i);case jG:return s?(i.isDisplayed?s.displayed():s.hidden(),n(i)):n(i);default:return n(i)}}}];class Nse{constructor(e){this.container=void 0,this.onChange=void 0,this.container=e}enterFullscreen(e){return this.container.requestFullscreen(e)}exitFullscreen(){return document.fullscreenElement?document.exitFullscreen():Promise.resolve()}subscribe(e){e.onFullScreenReady(),this.onChange=()=>document.fullscreenElement?e.onEnter():e.onExit(),document.addEventListener("fullscreenchange",this.onChange)}unsubscribe(){document.removeEventListener("fullscreenchange",this.onChange)}destroy(){this.unsubscribe(),this.container=null,this.onChange=null}}class fse{constructor(e){this.container=void 0,this.onChange=void 0,this.container=e}enterFullscreen(){try{return this.container.webkitRequestFullscreen(),Promise.resolve()}catch(e){return Promise.reject(e)}}exitFullscreen(){try{return document.webkitFullscreenElement&&document.webkitExitFullscreen(),Promise.resolve()}catch(e){return Promise.reject(e)}}subscribe(e){e.onFullScreenReady(),this.onChange=()=>document.webkitFullscreenElement?e.onEnter():e.onExit(),document.addEventListener("webkitfullscreenchange",this.onChange)}unsubscribe(){document.removeEventListener("webkitfullscreenchange",this.onChange)}destroy(){this.unsubscribe(),this.container=null,this.onChange=null}}class Ise{constructor(e){this.videoNode=void 0,this.onBeginFullscreen=void 0,this.onEndFullscreen=void 0,this.onVideoLoadStart=void 0,this.onLoadedMetaData=void 0,this.videoNode=e}enterFullscreen(){try{return this.videoNode.webkitDisplayingFullscreen||this.videoNode.webkitEnterFullscreen(),Promise.resolve()}catch(e){return Promise.reject(e)}}exitFullscreen(){try{return this.videoNode.webkitDisplayingFullscreen&&this.videoNode.webkitExitFullscreen(),Promise.resolve()}catch(e){return Promise.reject(e)}}subscribe(e){this.onBeginFullscreen=()=>{"picture-in-picture"!==this.videoNode.webkitPresentationMode&&e.onEnter()},this.onEndFullscreen=()=>{e.onExit()},this.onVideoLoadStart=e.onVideoLoadStart,this.onLoadedMetaData=()=>{this.videoNode.webkitSupportsFullscreen&&e.onFullScreenReady()},this.videoNode.addEventListener("webkitbeginfullscreen",this.onBeginFullscreen),this.videoNode.addEventListener("webkitendfullscreen",this.onEndFullscreen),this.videoNode.addEventListener("loadstart",this.onVideoLoadStart),this.videoNode.addEventListener("loadedmetadata",this.onLoadedMetaData)}unsubscribe(){this.videoNode.removeEventListener("webkitbeginfullscreen",this.onBeginFullscreen),this.videoNode.removeEventListener("webkitendfullscreen",this.onEndFullscreen),this.videoNode.removeEventListener("loadstart",this.onVideoLoadStart),this.videoNode.removeEventListener("loadedmetadata",this.onLoadedMetaData)}destroy(){this.unsubscribe(),this.videoNode=null,this.onBeginFullscreen=null,this.onEndFullscreen=null}}const wse="PLAYER_MEASUREMENT_STARTED",Ose="PLAYER_MEASUREMENT_STOPPED",Dse=({text:e})=>(e=>{const t=document.createElement("div");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue})((e=>e.replace(/^\s+|\s+$/g,""))((e=>e.replace(/(<([^>]+)>)/gi,""))(e.replace(/<br\s*[/]?>/gi,"\n")))),Rse={[jte.M5]:{type:PC,debugOnly:!0},[jte.xj]:{type:MC},[jte.uH]:{type:LC},[jte.ZH]:{type:UC},[jte.hV]:{type:VC},[jte.EF]:{type:BC},[jte.NN]:{type:GC},[jte.CN]:{type:qC},[jte.yE]:{type:YC},[jte.vS]:{type:WC}
1,[jte.EP]:{type:zC},[jte.SQ]:{type:$C,debugOnly:!0},[jte.YF]:{type:KC},[jte.pJ]:{type:QC},[jte.oM]:{type:tN},[jte.Wb]:{type:eN},[jte.IS]:{type:ZC},[jte.Nq]:{type:XC},[jte.Kk]:{type:JC},[jte.Q2]:{type:sN},[jte.F8]:{type:nN,debugOnly:!0},[jte.Wu]:{type:iN}},jse=e=>e.player.smartBuffer.active,kse=e=>e.player.smartBuffer.forceTargetBuffer,Pse=e=>kse(e)?kse(e):jse(e)?e.player.smartBuffer.currentBuffer:12,Lse=()=>({type:cee,current:null}),Mse="PLAYER_SHIFT_STARTED",Use="PLAYER_SHIFT_ENDED";const Vse=e=>({type:q7,audioInfo:e}),Bse=e=>({type:z7,videoInfo:e}),Fse="PLAYER_PAUSE_REQUESTED";let Hse;const Gse=[({dispatch:e,getState:t})=>{let n,i=null,r=!1;const o=()=>{const s=Fu(t()),n=Math.trunc(s)-Math.trunc(Hse.currentTime);Math.abs(n)>=1&&e(Lse())};return a=>l=>{switch(l.type){case bF:{const r=a(l);return s.e(951).then(s.bind(s,9770)).then(({BitmovinAdapter:s})=>{Hse=new s(document.getElementById(cN),document.getElementById(dN));try{Hse.boot({buffer:Pse(t()),id:pN})}catch(e){return void(Q||Z(e))}var r,a;r=document.getElementById(dN)||document.getElementById(cN),a=uN(),n=document.fullscreenEnabled?new Nse(r):document.webkitFullscreenEnabled?new fse(r):Pe.un||Pe.bh?new Ise(a):null,n&&n.subscribe({onEnter:()=>e({type:FC}),onExit:()=>e({type:HC}),onVideoLoadStart:()=>e(oN(!1)),onFullScreenReady:()=>e(oN(!0))}),i=e((e,t)=>{const s=uN(),n=()=>e(bN()),i=()=>e(SN());let r,o;if(Pe.un){const n=()=>
1{"picture-in-picture"===s.webkitPresentationMode&&Gy(t())&&(e(aN()),e(xN()))};s.addEventListener("resize",n),r=()=>{s.removeEventListener("resize",n)}}return mN()&&(s.addEventListener("enterpictureinpicture",n),s.addEventListener("leavepictureinpicture",i),o=()=>{s.removeEventListener("enterpictureinpicture",n),s.removeEventListener("leavepictureinpicture",i)}),()=>{r?.(),o?.()}}),window.addEventListener(jte.R7,o),e((e=>t=>{const s=Object.keys(e),n={};return s.forEach(s=>{const i=e[s];if(!rC&&i.debugOnly)return;const r=({detail:e})=>{t({type:i.type,detail:e})};n[s]=r,window.addEventListener(s,r)}),()=>{s.forEach(e=>{window.removeEventListener(e,n[e])})}})(Rse)),e({type:AF})}),r}case AF:{const s=a(l),n=t();Hse.volume=_O(n),xO(n)?Hse.unmute():Hse.mute();const i=by(n);return i&&(e(DF()),e(OF(i))),s}case SF:return Hse?.destroy().then(()=>{Hse=null,n&&n.destroy(),i()}),a(l);case wse:return Hse.startMeasurement(l.trackingPixelUrl,l.interval),a(l);case Ose:return Hse?.stopMeasurement(),a(l);case cee:{let e=Hse.currentTime;const s=t();return Qp(s)&&(e=(0,Vt.pw)(e)?e:Fu(s)),a({...l,current:e})}case kte:{const e=a(l);return Hse.play(),e}case Fse:{const e=a(l);return Hse.pause(),as({action:"pause",category:"videoPlayer"}),e}case X7:return a({...l,profile:{name:Hse.name,type:Hse.getPlayerType(),version:Hse.getVersion()}});case ree:return a({...l,statusSnapshot:{buffer:Hse.getBufferInfo(),playerConfig:{...Hse.getConfig(),smartBuffer:jse(t())}}});case Dq:{const t=a(l);return Hse.currentTime=l.time,e(Lse()),t}case Mse:{const s=a(l),n=t(),i=Xg(n)-l.position,r=Hse.timeshift-i,o=(0,DS.A)(r,Hse.getMaxTimeshift(),-1),c=Kp(n)&&r>0;return Hse.timeshift=o,e((e=>({type:Use,syncWithAiring:e}))(c)),e(Lse()),s}case zC:case sN:{const s=a(l);return e(Lse()),pG(t())&&e(QO()),s}case fF:{let s,n=t();return xy(n)?(s=a(l),vy(n)&&e(wF(!1)),e((e=>({type:eee,smartBuffer:e}))(l.data.smartBuffer)),n=t(),Hse.load({...l.data,config:{buffer:Pse(n)},robustness:TT().robustness}).then(()=>{n=t();let s=Hse.getDuration();ru(n)&&(s=null),e((e=>({type:dee,duration:e}))(s)),e(Lse()),hD(n)&&e(LD({track:Hse.audioTrack,availableTracks:Hse.getAvailableAudioTracks()})),e(lD(Hse.subtitlesTrack,Hse.getAvailableSubtitlesTracks())),e({type:TF})}).catch(()=>{e(jf())}),s):(e((d=l.data,{type:CF,loadData:d})),null)}case IF:{const t=a(l);return Hse?.unload(),document.pictureInPictureElement&&e(AN()),t}case _F:{const e=a(l);return Hse.volume=l.level,e}case gF:{const e=a(l);return Hse.mute(),e}case yF:{const e=a(l);return Hse.unmute(),e}case DC:return n&&n.enterFullscreen({navigationUI:"hide"}).catch(t=>{Z(t),e({type:RC})}),a(l);case jC:return n&&n.exitFullscreen().catch(e=>{Z(e)}),a(l);case FC:{const e=a(l);return as({action:"goFullscreen",category:"videoPlayer"}),e}case yN:{const t=a(l);return uN().requestPictureInPicture().then(()=>{e(bN())}).catch(vn.A),t}case EN:{const t=a(l);return!document.pictureInPictureElement||r||(r=!0,document.exitPictureInPicture().then(()=>{e(SN()),l.streamClosed&&e(RF())}).finally(()=>{r=!1})),t}case mD:try{Hse.audioTrack=l.track}catch(e){Z(e)}return a(l);case PC:{const t=a(l);return e(Vse(Hse.getAudioData())),t}case MC:{const s=a(l),n=t();return hD(n)&&e(LD({track:Hse.audioTrack,availableTracks:Hse.getAvailableAudioTracks()})),s}case LC:{const t=a(l);e(kD(Hse.audioTrack));const{languageCode:s}=Hse.audioTrack;return as({action:"toggleAudio",category:"videoPlayer",label:s}),zN({type:DN,data:{language:s}}),t}case YC:{const t=a(l);return e({type:X7,profile:null}),e({type:ree,statusSnapshot:null}),t}case $C:{const t=a(l),{detail:s}=l;if(s.mimeType.includes("video")){const{wallClockTime:t}=s;e(Bse({bitrate:s.mediaInfo.bitrate,delay:t?(0,Vt.rv)(t-s.timestamp):void 0,duration:s.duration,frameRate:s.mediaInfo.frameRate,width:s.mediaInfo.width,height:s.mediaInfo.height}))}else s.mimeType.includes("audio")&&e(Vse({bitrate:s.mediaInfo.bitrate,duration:s.duration}));return t}case ZC:{const t=a(l);return e(lD(Hse.subtitlesTrack,Hse.getAvailableSubtitlesTracks())),t}case JC:{const s=a(l),n=t();return pG(n)&&e(QO()),e(oD(Hse.subtitlesTrack)),as({action:"activateSubtitles",category:"videoPlayer",label:Hse.subt
1itlesTrack.languageCode}),s}case XC:{const s=a(l),n=t();return pG(n)&&(e(QO()),as({action:"deactivateSubtitles",category:"videoPlayer",label:dG(n)})),s}case nN:{const t=a(l);return e(Bse(Hse.getVideoData())),zN({type:"QUALITY_CHANGED"}),t}case $O:try{Hse.subtitlesTrack=l.track}catch(e){Z(e)}return a(l);case qC:return e((c=Hse.getBufferInfo(),{type:T7,data:c})),vy(t())&&e(wF(!1)),a(l);case tN:{let e;return l.detail&&(e=Dse(l.detail)),a({...l,cueText:e})}case UC:{const t=a(l);return e(wF(!0)),t}case iN:{const e=a(l);return l.detail?(X(`Code ${l.detail.code}. ${l.detail.message}`),e):e}case Rq:return{...l,thumbnail:Hse.getThumbnail(l.time)};case BC:{const t=a(l);return zN({type:"ERROR",data:{err_type:l.detail?.name,err_payload:l.detail?.message}}),e(Df()),Yn({text:Ul({code:l.detail?.name}),soul:"PLAYER_NOTIFICATION_STREAM_ERROR"}),t}default:return a(l)}var c,d}},(qse=()=>{if(!Hse)return null;const e=Hse.getBufferInfo();return{bitrate:e.bitrate,bufferedDuration:e.bufferedDuration,playerConfig:Hse.getConfig(),rawCurrentTime:Hse.currentTime,playerName:Hse.name,playerVersion:Hse.getVersion(),streamRepresentations:Hse.getAvailableRepresentations()}},({getState:e})=>t=>s=>{switch(s.type){case Go:{const n=t(s),i=e();return Ne(i)&&(e=>{if(YN=e.playerTrackingDataCallback,!qN){const{appId:t}=e;qN=new Tn({app_id:t,endpoint:`playback/${t}`,version:2,isProd:!0,onDestroy:us,onInitialize:ps})}qN.additionalEventData={public_id:e.publicId}})({appId:S,publicId:Ie(e()),playerTrackingDataCallback:qse}),n}case Tf:case wf:case Af:case Sf:{const e=t(s);return QN(),e}case Cee:{const n=t(s),i=e();return(e=>dy(e)===iy)(i)&&zN({type:ON}),my(i)&&(zN({type:"PLAYING"}),ZN()),yy(i)&&(zN({type:"BUFFERING"}),QN()),n}case kte:{const e=t(s);return zN({type:ON}),e}case YC:{const e=t(s);return zN({type:"READY"}),(()=>{const e=YN?.(),t=e?.streamRepresentations;t&&t.length?zN({type:"STREAM_LOADED",data:{representations:LN(t)}},{withPlaybackStatusData:!0}):zN({type:"LOG",data:{code:"error_retrieving_stream_representations",message:"player could not retrieve stream representations"}},{withPlaybackStatusData:!0})})(),window.addEventListener("resize",XN),e}case IF:{const e=t(s);return window.removeEventListener("resize",XN),e}case WC:{const n=t(s),i=e();return qy(i)||XN(),n}default:return t(s)}})];var qse;const Yse=()=>crypto.randomUUID(),Wse=({getState:e})=>{Sn=window["pa-3.2631.0"]?.domComplete||Date.now();const t=async()=>{const t=e(),s=Ie(t),n=await Be();((e,t)=>{if(!t||Ln)return;Mn=t;const{app_id:s,generateEventId:n,isProd:i,onDestroy:r,onEvent:o,onInitialize:a,...l}=e;Ln=new Tn({endpoint:"pa_events",app_id:e.app_id,generateEventId:n,isProd:i,onDestroy:r,onEvent:o,onInitialize:a,onServerDown(){Ln.destroy(),Ln=null},version:1}),Ln.additionalEventData={...l,public_id:null,user_agent:navigator.userAgent}})({app_id:S,client:"web",version:"3.2631.0",uuid:ia(),generateEventId:Yse,isProd:!0,os_version:n.osVersion,device_name:n.osName,browser_version:`${n.browserName} ${n.browserVersion}`,device_model:n.deviceModel,onInitialize:ps,onDestroy:us},!0),s&&(e=>{Mn&&Ln&&(Ln.additionalEventData={...Ln.additionalEventData,public_id:e})})(s),Vn({referrer:document.referrer,target_page:location.pathname})};return e=>s=>{if(s.type===Go){const n=e(s);return t(),n}return e(s)}};let zse;var $se=s(2923),Kse=s(407);const Qse=()=>({type:Ose}),Zse=()=>({type:Fse}),Xse=()=>({type:bf}),Jse=(e=!1)=>({type:wf,local:e}),ene=(e,t)=>e!==ay&&(e===oy||t),tne=e=>(t,s)=>{t({type:Cee,status:e,wasPaused:ene(e,hy(s()))})},sne=e=>({authToken:ng(e),isTimeshift:Qp(e),licenseUrl:rg(e),startOffset:kg(e),streamType:og(e),url:ig(e),externalSubtitles:cg(e)});let nne=null;const ine=e=>({type:See,source:e}),{mediaSession:rne}=navigator,one=({dispatch:e,getState:t})=>{const s=()=>{const e=t(),s=Kg(e),n=Xg(e);if((0,Mu.A)(s)&&(0,Mu.A)(n)&&isFinite(s)&&isFinite(n)&&!(n>s)&&!(n<0))try{rne.setPositionState({duration:s,position:n,playbackRate:1})}catch(e){Z(e)}},n=()=>{rne.setActionHandler("play",null),rne.setActionHandler("pause",null),rne.setActionHandler("seekbackward",null),rne.setActionHandler("seekforward",null),rne.setActionHandler("previoustrack",null),rne.setActionHandler("nexttrack",
1null),rne.setActionHandler("stop",null),rne.setActionHandler("seekto",null)},i=()=>{n(),(()=>{const s=t(),n=Xm(s),i=Qm(s);MD(s)&&(rne.setActionHandler("pause",()=>e(uO())),rne.setActionHandler("play",()=>e(pO()))),i&&rne.setActionHandler("seekbackward",()=>e(MI("mediaSession"))),n&&rne.setActionHandler("seekforward",()=>e(VI("mediaSession")));try{rne.setActionHandler("stop",()=>{const s=t();bg(s)||e(Df())})}catch(e){Z(e)}if(i&&n)try{rne.setActionHandler("seekto",t=>e(LI(t.seekTime)))}catch(e){Z(e)}HD(s)&&(rne.setActionHandler("nexttrack",()=>e(kO())),rne.setActionHandler("previoustrack",()=>e(PO())))})()},r=()=>{const e=t();rne.metadata=new window.MediaMetadata({title:Hw(e)||"",artist:qw(e)||"",album:zw(e)||"",artwork:[[128,128],[256,256],[512,512]].map(([t,s])=>({sizes:`${t}x${s}`,src:(0,ZS.Rm)({url:da(e),token:Yw(e),width:t,height:s}),type:"image/jpeg"}))}),i(),s()};return t=>o=>{switch(o.type){case Cee:{const e=t(o),{status:s}=o;return s===ry?r():s===ay?rne.playbackState="playing":s===oy&&(rne.playbackState="paused"),e}case vf:{const e=t(o);return r(),e}case GB:return n(),rne.setActionHandler("pause",()=>e(cF())),rne.setActionHandler("play",()=>e(dF())),rne.setActionHandler("stop",()=>e(Df())),t(o);case KB:return rne.playbackState="playing",t(o);case zB:return rne.playbackState="paused",t(o);case ZI:return s(),t(o);case oF:case ZV:{const e=t(o);return i(),e}default:return t(o)}}};let ane=null;const lne=()=>{ane&&(clearTimeout(ane),ane=null)};let cne=null;const dne=()=>{cne&&(clearTimeout(cne),cne=null)},pne=[({dispatch:e,getState:t})=>s=>n=>{switch(n.type){case LH:{const t=s(n);dne();const i=n.timestamp-Vt.hY();return cne=setTimeout(()=>{e({type:MH})},Vt.vO(i)),t}case MH:{const i=s(n),r=t();if(e(VH()),Kp(r)){const t=Cm(r);e(bI({cid:t,force:!0}))}else Qp(r)&&e(dO({cid:Cm(r),pid:Zu(r),resumeTime:Qg(r)}));return i}case UH:{const t=s(n),{error:o}=n;if(e(Jse()),GA(o))e((i=o.response.locked_until,r=o.response.total_locked_seconds,{type:jH,lockDuration:r,lockedUntil:i}));else if(YA(o))e(Df()),$n({text:x(207),soul:"STREAM_NOTIFICATION_PIN_SETUP_REQUIRED"});else{const t=o.response.attempts_left;qA(o)&&(Un({type:Dn,pin_success:!1,pin_error:`${o.code}`}),$n({text:Zl({count:t}),soul:"STREAM_NOTIFICATION_PIN_INVALID",unique:!1})),e(((e,t=!1)=>(Un({type:"PARENTAL_PIN_REQUEST"}),{type:DH,attemptsLeft:e,isInvalid:t}))(t))}return t}case PH:{const i=s(n),r=t(),{pin:o}=n,a=$p(r),l=sy(r);switch(e(VH()),a){case Hp:e(bI({cid:Cm(r),force:!0,pin:o}));break;case Gp:e(xw({pid:Zu(r),pin:o,isContinuous:l}));break;case Yp:e(dO({cid:Cm(r),pid:Zu(r),resumeTime:$u(r),pin:o}));break;case qp:e(zI({rid:sh(r),fromStart:!1,pin:o}));break;case Wp:e(ND({movie_id:Kh(r),term_token:sm(r),pin:o}));break;case zp:e(ID({series_id:Jh(r),season_id:em(r),episode_id:tm(r),term_token:sm(r),pin:o}))}return i}case kH:case RH:case DH:{const e=s(n);return dne(),e}case bf:{const t=s(n);return e(VH()),t}default:return s(n)}var i,r},({dispatch:e})=>t=>s=>{switch(s.type){case jH:{const n=t(s);lne();const i=s.lockedUntil-Vt.hY();return ane=setTimeout(()=>{e({type:kH})},Vt.vO(i)),n}case kH:case RH:case DH:{const e=t(s);return lne(),e}default:return t(s)}}],une=e=>!!au(e)||tu(e)&&!nm(e),hne=(e,t,s)=>e?e+t:s?t+s:t,mne=e=>hy(e)?oy:ay,gne=[({dispatch:e})=>t=>s=>{if(s.type===xf){const n=t(s);return e(xI(s.payload.cid,s.payload.pin)),n}return t(s)},({dispatch:e,getState:t})=>((0,Kse.Ok)(t=>(Dh(t.endpointID)&&e((e,t)=>{const s=t();jw(s)?e(Qw()):Rw(s)&&(e(Xw()),e(E_({title:Gw(s),funnel:od(s)})))}),t)),(0,Kse.OD)((t,s)=>t.catch(t=>{const{endpointID:n}=s;return t.code===ua.Ws&&Dh(n)?e(e=>{e(Df()),Kn()}):WA(t)&&Dh(n)?e((e=>({type:UH,error:e}))(t)):n===Nh.OB&&e(jf(t)),Promise.reject(t)})),s=>n=>{switch(n.type){case If:{const i=s(n),r=t();return _u(r)&&e(pF()),$p(r)&&!Wu(r)&&e(Xse()),ty(r)&&e(Qse()),qy(r)&&e(aO()),i}case Lf:{const i=s(n),r=t();return Pu(r)&&!VD(r)&&e(AN()),i}case Tf:{const i=s(n),r=t();return ku(r)||Pu(r)?e(Zse()):ju(r)&&e({type:Mx}),i}case Cf:{const i=s(n),r=t();return ku(r)||Pu(r)?e(Pte()):ju(r)&&e({type:Ux}),i}case Nf:{const i=s(n),r=t();return ku(r)||Pu(r)?e(((e,t)=>({type:Dq,time:e,autoplay:t}))(n.time,n.autoplay)):ju(r)&&e(FO(n.time)),i}case ff:{const i=s(n),r=t();return ju(r)?e(FO(n.position)):e(((e,t)=>({type:Mse,position:e,autoplay:t}))(n.position)),i}case Af:{const i=s(n),r=t();return e(Jse(n.local)),Yy(r)&&e(Zw()),e(nO({view:Pd})),e(Xse()),Fy(r)&&e(iO()),Gy(r)&&(e(aN()),By(r)===jd&&e(iO())),i}case wf:{const i=s(n),r=t();return by(r)&&e(DF()),ju(r)&&!n.local&&e({type:Bx}),ku(r)&&e(RF()),Pu(r)&&e(AN(!0)),_u(r)&&e(pF()),i}case Sf:{const t=s(n);return e(Df()),t}case SO:{const r=s(n),o=t();return EO(o)&&n.level>0&&e(CO(!0)),vu(o)&&e(uF(n.level/100)),ju(o)?e((i=n.level,{type:qx,level:i})):(e((e=>({type:_F,level:e}))(n.level)),oe(jee,n.level)),0===n.level&&e(TO()),r}case bO:{const i=s(n),r=t();return vu(r)&&e(uF(0)),ju(r)&&e(YO(!0)),e(EF()),oe(kee,!0),i}case AO:{const i=s(n),r=t();return 0!==_O(r)||n.avoidRestore||e(NO(10)),ju(r)&&e(YO(!1)),vu(r)?(e(uF(_O(r)/100)),fC&&(e(vF()),e(EF()))):e(vF()),oe(kee,!1),i}case bF:return(0,$se.$w)().then(t=>{e({type:wee,languageNames:t})}),s(n);case cee:case Wx:{const t=s(n);return e({type:ZI}),t}case fF:{const t=s(n);return e(tne(iy)),t}case TF:{const t=s(n);return e(tne("decoding")),t}case YC:{const t=s(n);return e(tne(ry)),t}case QC:{const t=s(n);return e(tne(ny)),t}case KC:{const i=s(n),r=mne(t());return e(tne(r)),i}case GC:{const i=s(n),r=t();return ty(r)&&e(Qse()),Rg(r)&&!vy(r)&&e(XI({syncWithAiring:!1})),e(tne(oy)),i}case qC:{const t=s(n);return e(tne(ay)),t}case Dq:case Mse:{const t=s(n);return e(tne(ly)),t}case Use:{const t=s(n);return e(XI({syncWithAiring:n.syncWithAiring})),t}case sN:case zC:{const i=s(n),r=t();Ug(r)||e(Zse());const o=mne(t());return e(tne(o)),i}case VC:case Qx:{const i=s(n),r=t();switch($p(r)){case Gp:e(async(e,t)=>{const s=t(),n=Cm(s),i=Tm(s),r=eh(s),o=r+Vt.pO,a=(await nb.th({start:r,end:o,luhash:ho(s),cids:[n]})).channels,l=a[n]&&a[n][0];if(!l)return e(Df()),null;const c=tf(s,n),d=_h(s);if(!Am({broadcast:l,channel:c,replayAvailability:d}))return e(Df()),null;const p=Lg(s);if(e({type:KI,previousPostPadding:p}),Fy(s))return e(_w({cda:i,pid:l.id}));const u={...ka(s),program:l.id};return e(Ya(u)),e(xw({pid:l.id,isContinuous:!0}))});break;case zp:if(!(e=>{if(!pm(e))return!1;const t=um(e),s=pm(e),n=Th(e);if(zh(t,n,s)===ah)return!1;const i=Fh(kh(s.terms_catalog),n,t);return Boolean(i)})(r)){e(Df(!0));break}e((e,t)=>
1{const s=t(),n=Qh(s),i=pm(s),r=um(s),o=Th(s),a=Fh(kh(i.terms_catalog),o,r);e(ID({series_id:i.series_id,season_id:i.season_id,episode_id:i.id,term_token:a})),n.season_id!==i.season_id&&e(qa({path:Nx(i.series_id,i.season_id),preserve:!0})),Un({type:"VOD_NEXT_EPISODE_AUTOPLAY"})});break;default:e(Df(!0))}return i}case DC:{const i=s(n);return Pu(t())&&e(AN()),i}case wO:{const t=s(n);return e(bI({cid:n.cid})),t}case Hx:{const i=s(n),{status:r}=n,o={[ate]:ny,[lte]:oy,[cte]:ay,[dte]:oy};return Rg(t())&&r===lte&&e(XI({syncWithAiring:!1})),o[r]&&e(tne(o[r])),i}case jx:{const i=s(n),r=t();return _u(r)&&e(pF()),py(r)&&e(RF()),i}case kx:{const i=s(n),r=t();return py(r)&&(e(XI({isContinuous:!0})),e(OF(sne(r)))),i}case YB:{const t=s(n);return n.cuePoints&&0===n.cuePoints[0]||e(XI({couldHavePreRollAd:!1})),t}case KB:{const i=s(n),r=t();return Kp(r)?xO(r)&&e(EF()):e(uO()),(e=>Sy(e).expandPreroll)(r)&&Yy(r)&&Ay(r)&&e(rO()),i}default:return s(n)}var i}),({dispatch:e,getState:t})=>s=>n=>{switch(n.type){case Ef:{const o=s(n);e(ine(n.source));const{requestPINAt:a}=n;a&&e(BH(a));const l=n?.trackingInfo?.latency_measurement_interval;e(XI({autoplay:!0,couldHavePreRollAd:n.source.ads?.length>0,latencyMeasurementInterval:l,registerTimeshift:n.registerTimeshift,replaySeekingAllowed:n.replaySeekingAllowed,syncWithAiring:!0,unregisteredTimeshift:n.unregisteredTimeshift,trackingInfo:n.trackingInfo,nielsenTrackingInfo:n.nielsenTrackingInfo}));const c=t();return ju(c)?e(GO()):(e(OF({...sne(c),smartBuffer:!0})),l>=0&&xy(c)&&e((i=n.trackingInfo.event_pixel,r=(0,Vt.vO)(l),{type:wse,trackingPixelUrl:i,interval:r}))),o}case ZI:{const i=t();return Kp(i)&&e((e,t)=>{const s=t(),n=Cm(s);if(!n)return;const i=_I(s,n),r=Zu(s)!==i.id,o=((e,t)=>e>=t)(Qg(s),eh(s));r&&o&&(e(Vf(i)),e(Bf()))}),s(n)}default:return s(n)}var i,r},({dispatch:e,getState:t})=>s=>n=>{if(n.type===$I){const i=s(n);e(ine(n.source));let r=t();const o=(e=>(e=>e.stream.replay)(e).previousPostPadding)(r);return e(XI({initialTime:hne(n.initialTime,n.prePadding,o),prePadding:n.prePadding,postPadding:n.postPadding,syncWithAiring:!1,seekForwardEligible:n.seekForwardEligible,autoplay:n.autoPlay,isContinuous:n.isContinuous,trackingInfo:n.trackingInfo,nielsenTrackingInfo:n.nielsenTrackingInfo})),r=t(),ju(r)?e(GO()):e(OF(sne(r))),i}return s(n)},({dispatch:e,getState:t})=>s=>n=>{switch(n.type){case Ff:{const i=s(n);e(ine(n.source));const r=n.fromStart?n.prePadding:n.initialTime+n.prePadding;e(XI({initialTime:r,prePadding:n.prePadding,postPadding:n.postPadding,syncWithAiring:!1,seekForwardEligible:n.seekForwardEligible,trackingInfo:n.trackingInfo,nielsenTrackingInfo:n.nielsenTrackingInfo}));const o=t();return ju(o)?e(GO()):e(OF(sne(o))),i}case iA:case rA:{const i=s(n),r=t();if(iu(r)){const{program_id:t}=n.recording;t===Zu(r)&&e(qf(n.recording))}return i}case oA:{const i=s(n),r=t();return iu(r)&&sh(r)&&e({type:Hf}),i}default:return s(n)}},({dispatch:e,getState:t})=>s=>n=>{if(n.type===yD){const i=s(n);e(ine(n.source)),e(XI({autoplay:!0,initialTime:n.initialTime,seekForwardEligible:!0,trackingInfo:n.trackingInfo,nielsenTrackingInfo:n.nielsenTrackingInfo}));const r=t();return ju(r)?e(GO()):e(OF({...sne(r)})),Pu(r)&&e(AN()),i}return s(n)},({dispatch:e,getState:t})=>s=>n=>{switch(n.type){case cI:{const t=s(n);switch(n.payload.mode){case Hp:{const t=n.payload.request;e(xI(t.cid,t.pin));break}case Gp:{const t=n.payload.request;e(vw(t));break}case qp:{const t=n.payload.request;e(WI(t.recording));break}case Wp:{const t=n.payload.request;e(CD({movie_id:t.movieId,term_token:t.termToken}));break}case zp:{const t=n.payload.request;e(fD(t));break}}return t}case dI:{const i=s(n);e(ine(n.source));const{requestPINAt:r}=n,o=t();return ju(o)?e(GO()):e(OF(sne(o))),Rw(o)&&(e(Xw()),e(E_({title:Nm(o),funnel:od(o)}))),r&&e(BH(r)),i}case ZI:{const i=t();if(!Qp(i))return s(n);const r=Qg(i);uy(i)&&Ku(i)>=r&&!ju(i)&&e(Pte());const o=((e,t,s)=>lb(e)[t].find(e=>s>=e.s&&s<=e.e))(i,Cm(i),Qg(i));return o&&(r<Ju(i)||r>eh(i))&&(e(Vf(o)),e(Bf())),s(n)}default:return s(n)}},({dispatch:e,getState:t})=>s=>n=>{switch(n.type){case bd:{const i=s(n),r=t(),o=vQ(r);return Vy(r)===Pd?i:o===Ad?(e(rN(!1)),i):(e(aO()),i)}case RC:{const i=s(n),r=t(),o=vQ(r),a=Vy(r);return o===Ad&&a===Ld&&e(rO()),i}default:return s(n)}},...pne,({dispatch:e,getState:t})=>{let s,n=null;const i=()=>{s=-1/0},r=e=>{if(!(0,Mu.A)(e)||e<0)return!1;const t=Math.abs(e-s);return s=e,!(t<10)},o=()=>{const s=t(),n=Qg(s);if(!r(n))return Promise.resolve();if(tu(s)){const t=$h(s);return e(((e,t)=>s=>{const n=s,{id:i,type:r}=e;return jb.XM({teasable_id:i,teasable_type:r,position:Math.floor(t)}).then(e=>n(JA({item:e,teasableId:i,teasableType:r})))})(t,n))}if(au(s)){const t=Zu(s);return e(((e,t)=>async s=>{try{const{broadcast_state:n}=await nb.sZ({broadcast_id:e,position:t});s({type:Fb,broadcast_state:Hb(n)})}catch(e){Z(e)}})(t,n))}return Promise.resolve()},a=()=>{const s=t(),n=Math.floor(Qg(s));
1if(r(n)){if(tu(s)){const t=$h(s);e(JA({item:{position:n},teasableId:t.id,teasableType:t.type}))}if(au(s)){const t=Zu(s);e(((e,t)=>({type:Fb,broadcast_state:{[e]:{position:Math.floor(t),last_streamed_at:Vt.tM((new Date).toISOString())}}}))(t,n))}}},l=()=>{null!==n&&(clearTimeout(n),n=null)};return i(),e=>s=>{switch(s.type){case If:{const n=t();return l(),une(n)&&my(n)&&o(),i(),e(s)}case wf:{const n=t(),r=sh(n);return l(),une(n)&&my(n)&&!mU(n,r)&&o(),i(),e(s)}case zC:case Tf:{const n=e(s),i=t();return une(i)&&o(),n}case Cee:{const i=e(s),r=t();return l(),une(r)&&my(r)&&(()=>{l();const e=()=>{a(),null!==n&&(clearTimeout(n),n=setTimeout(e,6e4))};n=setTimeout(e,6e4)})(),i}default:return e(s)}}},({dispatch:e,getState:t})=>s=>n=>{switch(n.type){case rF:{const i=s(n);return IC&&Gy(t())&&e(aN()),e(AN()),i}case oF:{const i=s(n),r=t();return IC&&(e=>By(e)===kd)(r)&&e(rN()),xO(r)?e(vF()):e(EF()),Kp(r)||e(pO()),ey(r)&&e(XI({couldHavePreRollAd:!1})),i}default:return s(n)}},()=>e=>t=>{if(t.type===Yc){const s=e(t);return re(kee),re(jee),s}return e(t)},({dispatch:e,getState:t})=>s=>n=>{switch(n.type){case Cee:case ZI:{const i=s(n),r=t(),o=my(r),a=Wg(r);return e(jI(a,o)),i}case bf:return e({type:TI}),s(n);case CI:{const e=s(n),i=t();return Ym(i)&&Un({type:"SKIP_ADS_DISPLAY",csid:pg(i)}),e}default:return s(n)}},({dispatch:e})=>((0,Kse.OD)(async(t,s)=>{if(Dh(s.endpointID)){const s=await t;e((n=s.auto_enabled_subtitles,{type:VO,language:n}))}var n;return t}),e=>t=>{if(t.type===Yc){const s=e(t);return re(tD),re(sD),s}return e(t)})];let yne,_ne,Ene,vne,xne;null===nne&&(nne=(()=>{if(!("mediaSession"in navigator))return!1;if(!("setPositionState"in navigator.mediaSession))return!1;try{navigator.mediaSession.setActionHandler("stop",null)}catch{return!1}try{navigator.mediaSession.setActionHandler("seekto",null)}catch{return!1}return!0})()),nne&&gne.push(one);const bne=()=>{vne&&vne.destroy(),xne&&(xne=null,Ene.contentComplete())},Ane=()=>{vne&&(vne.init(window.innerWidth,window.innerHeight,window.google?.ima?.ViewMode.NORMAL),vne.start())};const Sne=e=>t=>{t((e=>({type:Bee,adInfo:e}))(e)),t((e=>({type:BB,vastUrl:e}))(e.vast_url))},Tne=()=>({type:Uee});
1var Cne=s(3395);const Nne=[({dispatch:e,getState:t})=>s=>n=>{switch(n.type){case JB:return go({src:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}).then(()=>{yne=window.google?.ima,e(yne?{type:eF}:mF())}).catch(()=>{e(mF())}),s(n);case UB:{s(n),yne.settings.setLocale(n.locale),wC?(yne.settings.setDisableCustomPlaybackForIOS10Plus(!0),_ne=new yne.AdDisplayContainer(n.mediaContainer,n.mediaElement)):_ne=new yne.AdDisplayContainer(n.mediaContainer),_ne.initialize(),Ene=new yne.AdsLoader(_ne),Ene.getSettings().setFeatureFlags?.({disableClickAdPause:!0});const i=s=>{if(!_u(t()))return;const i=new yne.AdsRenderingSettings;if(i.bitrate=2500,i.useStyledLinearAds=!1,i.uiElements=[],vne=s.getAdsManager(n.mediaElement,i),e({type:qB}),vne.addEventListener(yne.AdEvent.Type.ALL_ADS_COMPLETED,()=>{bne(),e({type:MB}),zN({type:"AD_BREAK_END"},{withPlaybackStatusData:!1})}),vne.addEventListener(yne.AdEvent.Type.COMPLETE,t=>{e({type:VB});const s=t.getAd();zN({type:"AD_END",data:{ad_id:s.getAdId()}},{withPlaybackStatusData:!1})}),vne.addEventListener(yne.AdEvent.Type.AD_METADATA,()=>{e((e=>({type:YB,cuePoints:e}))(vne.getCuePoints()))}),vne.addEventListener(yne.AdEvent.Type.LOADED,s=>{const n=t(),i=s.getAd(),r=i.getAdPodInfo();var o;(e=>e.ima.podInfoReady)(n)||e((e=>({type:QB,podInfo:e}))({index:r.getPodIndex(),total:r.getTotalAds(),duration:r.getMaxDuration()})),e((o={duration:i.getDuration(),position:r.getAdPosition(),skipTimeOffset:i.getSkipTimeOffset(),title:i.getTitle()},{type:GB,adData:o})),zN({type:"AD_LOADED",data:{ad_id:i.getAdId(),ad_dur_ms:i.getDuration()}},{withPlaybackStatusData:!1})}),vne.addEventListener(yne.AdEvent.Type.CONTENT_PAUSE_REQUESTED,()=>{e({type:rF})}),vne.addEventListener(yne.AdEvent.Type.CONTENT_RESUME_REQUESTED,()=>{e(hF())}),vne.addEventListener(yne.AdEvent.Type.PAUSED,()=>{e({type:zB})}),vne.addEventListener(yne.AdEvent.Type.RESUMED,()=>{e(dF())}),vne.addEventListener(yne.AdEvent.Type.STARTED,t=>{e({type:KB});const s=t.getAd();zN({type:"AD_STARTED",data:{ad_id:s.getAdId(),ad_bitrate:2500,ad_type:s.getContentType(),ad_url:s.getMediaUrl(),ad_width:s.getVastMediaWidth(),ad_height:s.getVastMediaHeight()}},{withPlaybackStatusData:!1})}),vne.addEventListener(yne.AdEvent.Type.AD_PROGRESS,t=>{const s=t.getAdData();e((e=>({type:ZB,currentTime:e}))(s.currentTime))}),vne.addEventListener(yne.AdEvent.Type.THIRD_QUARTILE,()=>{e({type:aF})}),vne.addEventListener(yne.AdEvent.Type.CLICK,()=>{vne.pause()}),vne.addEventListener(yne.AdEvent.Type.SKIPPED,()=>{e({type:nF})}),!vy(t()))try{Ane()}catch(t){e((e=>({type:"IMA_BOOT_ERRORED",error:e}))(t))}},r=s=>{const n=s.getError(),i=t();bne(),e((e=>({type:lF,error:e}))({code:n.getErrorCode(),message:n.getMessage()})),vu(i)&&e(hF()),zN({type:"AD_ERROR",data:{ad_err_code:String(n.getErrorCode()),ad_err_payload:n.message}},{withPlaybackStatusData:!1})};return Ene.addEventListener(yne.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,i),Ene.addEventListener(yne.AdErrorEvent.Type.AD_ERROR,r),null}case WB:{const e=s(n);return vne?.pause(),e}case $B:{const e=s(n);return vne?.resume(),e}case BB:{const t=s(n);return bne(),Ene?(xne=new yne.AdsRequest,xne.adTagUrl=n.vastUrl,Ene.requestAds(xne),zN({type:RN},{withPlaybackStatusData:!1}),t):(e({type:HB}),null)}case XB:{const e=s(n);return vne?(fC&&vne.setVolume(0),_u(t())||Ene.requestAds(xne),Ane(),zN({type:RN},{withPlaybackStatusData:!1}),e):null}case sF:{const e=s(n);return vne?.setVolume(n.volume),e}case iF:{const e=s(n);return bne(),e}default:return s(n)}},({dispatch:e,getState:t})=>{const s=(e,t)=>{const s=new URL(e.vast_url);return s.searchParams.set("Maxduration",t.toString()),s.toString()},n=(n,i,r)=>{const o=((e,s)=>
1{const n=t(),i=Wg(n),r=Math.round(s.mainEnd-i);return(0,DS.A)(r,0,e.max_duration)})(n,i);if(0===o)return;const a=_te({...n,vast_url:s(n,o)});e(((e,t)=>({type:Mee,streamAdBreakId:e,seekTarget:t}))(i.id,r)),e(Sne(a))};return s=>i=>{switch(i.type){case Nf:{const e=t(),r=Wg(e),o=hg(e),a=i.time>r;if(!o||!a||(e=>Boolean(mg(e)))(e))return s(i);const l=(e=>{const s=t();return Fm(s).find(t=>!!t.visited&&!t.completed&&e>t.start)})(i.time);if(l){const e=Math.max(i.time,l.end);n(o,l,e)}return s(i)}case MB:{const n=s(i),r=t(),o=(e=>ug(e).seekTarget)(r),a=mg(r);return a?(e(RI(a)),e(UI(o)),e(Tne()),n):n}case lF:{const n=t(),r=mg(n);if(!r)return s(i);const{error:o}=i;return o.code===google?.ima?.AdError.ErrorCode.VAST_EMPTY_RESPONSE&&e(RI(r)),e(Tne()),s(i)}case HB:case bf:return e(Tne()),s(i);default:return s(i)}}},({dispatch:e,getState:t})=>{let s=!1,n=!1;const i=()=>{const s=t(),n=sy(s),i=(e=>lg(e).find(e=>e.type===Jm.ps||e.type===Jm.Sn))(s);if(!i)return;if(i.type===Jm.ps&&n)return;const r=_te(i);e(Sne(r))};return r=>o=>{switch(o.type){case AF:case eF:{const a=r(o),l=t();return Ty(l)?(e((({mediaContainer:e,mediaElement:t,locale:s})=>({type:UB,mediaContainer:e,mediaElement:t,locale:s}))({mediaContainer:document.getElementById(eW),mediaElement:document.getElementById(cN).querySelector("video"),locale:R()})),s&&i(),n=!0,s=!1,a):a}case TF:{const e=r(o);return n?i():s=!0,e}case GB:{const s=r(o),n=t(),i=xO(n)?_O(n)/100:0;return e(uF(i)),s}case nF:case aF:{const e=r(o),s=t(),n=Cy(s);return yte(n)&&Cne.QO(),e}default:return r(o)}}}];let fne,Ine;const wne=[({dispatch:e,getState:t})=>s=>n=>{if(n.type===Go){const i=s(n),r=(e=>Ce(e)?.zpush_url)(t());return Ine===r?i:(Ine=r,fne&&(fne.close(),fne=null),r?(fne=new EventSource(r),fne.addEventListener("playlistUpdated",()=>{e({type:Ese})}),fne.addEventListener("vodOrderUpdated",()=>{e({type:vse})}),fne.addEventListener("notify",e=>{"order_completed"===(e=>{let t;try{t="string"==typeof e.data?JSON.parse(e.data):e.data}catch{t=e.data}return{...e,data:t}})(e).data.id&&location.reload()}),i):i)}return s(n)},()=>e=>t=>{switch(t.type){case Na:{const s=e(t);return zee=t.navigate,s}case Ta:{const s=e(t),{routeInfo:n}=t,i=Pt(n.queryParams);return zee({pathname:n.path,search:i},{replace:n.strategy===wa,state:n.state}),s}case Ca:{const s=e(t),n=Pt(t.queryParams);return zee({pathname:location.pathname,search:n},{replace:!0}),s}default:return e(t)}},({dispatch:e,getState:t})=>s=>n=>{if(n.type===Go){const i=s(n),r=t(),o={[$d(r)]:Vd,[Wd(r)]:Bc,[zd(r)]:Bd};return e((e=>({type:fa,editorialPaths:e}))(o)),i}return s(n)},({dispatch:e,getState:t})=>{const s=()=>
1{if(Ute=!1,Bte=!0,Fte){Mte?.reset();const t={...Fte,googleAssetKey:null};e(t)}},n=async()=>{if(Ute=!0,!window.google?.ima?.dai?.api?.StreamManager)return void s();const n=uN(),i=document.getElementById(TR);google.ima.settings.setFeatureFlags({enableOmidBeta:!0}),Mte=new google.ima.dai.api.StreamManager(n,i);Mte.addEventListener([google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,google.ima.dai.api.StreamEvent.Type.ERROR,google.ima.dai.api.StreamEvent.Type.LOADED],t=>{switch(t.type){case google.ima.dai.api.StreamEvent.Type.LOADED:{const{url:s}=t.getStreamData();window.addEventListener(jte.fm,qte);const n={...Fte,googleAssetKey:null,source:{...Fte.source,local:{...Fte.source.local,url:s}}};e(n);break}case google.ima.dai.api.StreamEvent.Type.ERROR:Mte?.reset(),e({...Fte,googleAssetKey:null});break;case google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED:e(Lte(!0));break;case google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED:e(Lte(!1))}},!1);try{await e(e=>ta.E$().then(({user_profile:t})=>{e({type:P8,profile:t})}))}catch(e){Z(e)}const r=t();Fte?.googleAssetKey&&Gte({age:fte(Rte(r)),assetKey:Fte.googleAssetKey,cid:Cm(r),currentAdUnit:Yu(r),gender:Ite(r),language:po(r),publicId:Ie(r)}),Ute=!1,Vte=!0};return i=>r=>{switch(r.type){case AF:{const e=i(r);return!Vte&&qu(t())&&n(),e}case SF:{const e=i(r);return window.removeEventListener(jte.fm,qte),e}case GC:{const s=i(r);return Gu(t())&&e(Pte()),s}case Ef:{const o=i(r),a=t();return!r.googleAssetKey||Bte?o:(Fte=r,Vte||Ute||go({src:"https://imasdk.googleapis.com/js/sdkloader/ima3_dai.js"}).then(()=>{e({type:X8}),xy(t())&&n()}).catch(s),Vte&&Gte({age:fte(Rte(a)),assetKey:r.googleAssetKey,cid:Cm(a),currentAdUnit:Yu(a),gender:Ite(a),language:po(a),publicId:Ie(a)}),null)}case bf:return Fte=null,Mte?.reset(),window.removeEventListener(jte.fm,qte),i(r);default:return i(r)}}},...Gse,gse,...Nne,...gne,..._se,({getState:e,dispatch:t})=>s=>n=>{switch(n.type){case Yb:{const i=s(n),r=e(),o=Object.keys(Mp(r)),a=Kee(o);if(t(JV(a)),!Up(r))return i;const l=YJ(r),c=(()=>{const e=ae(ose);return e?{managed:Boolean(e?.managed),onboarded:Boolean(e?.onboarded),visited:Boolean(e?.visited)}:null})();return c?jt(l,c)||t(qJ(c,!1)):t(qJ({managed:!1,onboarded:!1,visited:!1})),i}case GJ:{const t=s(n);return n.setFavoritesOnboarding&&(i=YJ(e()),oe(ose,i)),t}case Wb:{const i=s(n),r=e();return gp(r)===mp&&t(JV()),i}case Yc:{const e=s(n);return re(XV),e}default:return s(n)}var i},({dispatch:e,getState:t})=>s=>n=>{switch(n.type){case XW:{const i=s(n),r=t();if(ad(r)&&e(az($L(r,zf(r)),WL(r))),pd(r)){const t=XM(r,zf(r));e(az(t,t.length))}return i}case sM:{const i=s(n),r=t();return TW(r)?(e(az((0,VW.A)($L(r,zf(r)),NW(r)))),i):i}case ez:{const i=s(n),r=t();return(async()=>{if(await e(uz(!0)),pd(r)){const t=CW(r);e(mz({pickedIds:t,all:!0}))}else WL(r)===fW(r)&&e(IM())})(),i}case tz:{const i=s(n),r=t();return(async()=>{if(await e(uz()),pd(r)){const t=CW(r);e(mz({pickedIds:t,all:!1}))}wL(r)&&lM(r,wL(r))===fW(r)&&e(IM())})(),i}case wM:{const t=s(n);return e(pz()),t}default:return s(n)}},()=>e=>t=>{if(t.type===Yc){const s=e(t);return re(q9),s}return e(t)},({dispatch:e})=>t=>s=>{switch(s.type){case"NPVR_RECORD_UNDO_REQUESTED":{const n=t(s);return e(nU(s.rid,s.callback)),n}case lA:{const n=t(s);return e(hU({channel:s.payload.channel,title:s.payload.title,tvSeriesId:s.payload.tvSeriesId,forceSeriesRecording:!0})),n}case aA:{const n=t(s);return e(uU({pid:s.payload.pid,channelTitle:s.payload.channelTitle,title:s.payload.title,isSeries:!0,forceRecording:!0})),n}case Ese:{const n=t(s);return e(kA()),n}default:return t(s)}},({dispatch:e,getState:t})=>s=>n=>{if(n.type===vse){const i=s(n),r=t();e(LM(KL(r),wL(r),uo(r)));return e(Pb()),i}return s(n)},({dispatch:e,getState:t})=>s=>n=>{switch(n.type){case Rz:{const i=(e=>e.search.query)(t()),r=s(n),{query:o}=n,a=t(),l=Oa(a),c=hx(l);c||(zse=l);const d=o!==i;if(!(o.length>=3&&d))return r;const p=ux(o);return c?e(qa({path:p.pathname,preserve:!0})):(e(Ga({path:p.pathname,preserve:!0})),as({action:"openShowAllResult",category:"internalSearch"})),r}case jz:{const i=s(n),r=t(),o=Oa(r),a=ip(r);return hx(o)?(e(Ga({path:zse||a,preserve:!0})),zse=null,i):i}default:return s(n)}},({dispatch:e,getState:t})=>s=>n=>{if(n.type===If){const i=s(n),r=t(),o=pp(r),a=ip(r);return o&&e(Pv(a)),i}return s(n)},({getState:e})=>t=>s=>{if(s.type===Go){const n=t(s),i=Ie(e());return i&&h.PN(e=>{e.setUser({id:i})}),n}return t(s)},({getState:e})=>t=>s=>{if(s.type===Na){const n=t(s),{query:i}=Ma(e()),{partner:r}=he.A.parse(i),o=r;
1return o&&!xse&&(xse=!0,(0,Ho.R$)({partner:o})),n}return t(s)},()=>e=>t=>{if(t.type===Yc){const s=e(t);return re(_D),s}return e(t)},()=>e=>t=>{if(t.type===Yc){const s=e(t);return re(KV),s}return e(t)},()=>e=>t=>{if(t.type===Yc){const s=e(t);return re(RJ),s}return e(t)},()=>e=>t=>{switch(t.type){case Yc:{const s=e(t);return re(m$),re(h$),s}case V$:case B$:case F$:{const s=e(t);return(e=>{oe(h$,e)})(t.size),_$(t.direction),s}default:return e(t)}},...Cse,({getState:e})=>t=>s=>{if(s.type===mo){if(Wee||Mt())return t(s);const n=t(s),i=e(),r=wd(i),{options:o}=ge.exactag;return Ro({autoblock:!1,src:"https://attr.zattoo.com/js/exactag.js"}).then(()=>{const e={campaign:o.campaigns[co(i)]||null,cdnURL:"//attr.zattoo.com",consent:{marketing:r.TARGETING_COOKIES?1:0,statistics:r.PERFORMANCE_COOKIES?1:0},cuid:Ie(i),optin_c0002:String(r.PERFORMANCE_COOKIES),optin_c0003:String(r.FUNCTIONAL_COOKIES),optin_c0004:String(r.TARGETING_COOKIES),optout:String(!r.PERFORMANCE_COOKIES),pagetype:o.page_type,sitegroup:o.site_group,subid:location.pathname,trackingURL:"//attr.zattoo.com"};window.exactag.track(e),Wee=!0}).catch(vn.A),n}return t(s)},({getState:e})=>((e=>{Kte=new Tn({endpoint:"ad_events",app_id:e.app_id,isProd:!0,logInterval:3e4,onDestroy:e.onInitialize,onInitialize:e.onInitialize,version:1})})({app_id:S,onDestroy:us,onInitialize:ps}),t=>s=>{switch(s.type){case See:{const i=t(s),r=e();return Im(r)?(n={channel_id:Cm(r),program_id:Zu(r)},Kte&&(Kte.additionalEventData={...Kte.additionalEventData,...n},Qte=!0),i):i}case bf:return Kte&&(Kte.additionalEventData={},Qte=!1),t(s);case BB:{const n=t(s),i=e();if(!Ny(i)||!Iu(i))return n;const r=Cy(i),o=Xte(r.type),a={type:Jte,ad_id:r.id,ad_type:o};if(o===$te){const e=new URL(r.vast_url).searchParams.get("Maxduration");a.ad_request_length=Number(e),Zte({type:"FAST_FORWARD"})}else if(o===Wte){const e=Zp(i)?"replay":"recording";Zte({type:"REPLAY",stream_type:e})}return Zte(a),tse=!0,sse=!1,nse=null,n}case qB:return nse=Date.now(),t(s);case QB:{const n=t(s),i=e();if(!rse())return n;const r=Cy(i),o=Xte(r.type);return Zte({type:ese,ad_id:r.id,ad_type:o,ad_count:fu(i),ad_response_length:wu(i)},nse),ise(),n}case KB:{const n=t(s),i=e();if(!Ny(i))return n;const r=Cy(i),o=Xte(r.type);return Zte({type:"AD_START",ad_id:r.id,ad_type:o,ad_index:Au(i)-1}),n}case VB:{const n=t(s),i=e();if(!Ny(i))return n;const r=Cy(i),o=Xte(r.type);return Zte({type:"AD_COMPLETE",ad_id:r.id,ad_type:o,ad_index:Au(i)-1,asset_length:Su(i)}),n}case lF:{const n=t(s),i=e();if(!rse())return n;const r=Cy(i),o=Xte(r.type);return Zte({type:ese,ad_id:r.id,ad_type:o,ad_count:null,ad_response_length:null,response_error:String(s.error.code)}),ise(),n}default:return t(s)}var n}),()=>e=>t=>{switch(t.type){case Lf:{const s=e(t);return oe(tJ,t.channel.url_cid),s}case Yc:{const s=e(t);return re(tJ),s}default:return e(t)}},()=>e=>t=>{switch(t.type){case Rc:{const s=e(t);return t.status===Qa&&oe(hee,!0),s}case Yc:{const s=e(t);return re(hee),s}default:return e(t)}}];wne.push(Nte),wne.push(Yte),Dt&&wne.push(Qee),wne.push(Wse),wne.push(Xee),wne.push($ee);const One=(0,Rb.U1)({devTools:!1,middleware:e=>e({immutableCheck:!1,serializableCheck:!1,thunk:!0}).concat(wne),reducer:Yee});((e={})=>{const t=!0,s="[email protected]",n="https://[email protected]/1357851";u.Ts({autoSessionTracking:!1,beforeSend(e,t){if(-1!==location.search.indexOf("fbclid"))return null;const s=t?.originalException;if(s instanceof Error){if(s[$])return null;if(s[z])return null;s[$]=!0}return(0,m.r6)(s)&&(e.fingerprint=["zapi-error",s.request.endpointID,String(s.code)]),e},dsn:n,enabled:t,environment:"release",ignoreErrors:[/ResizeObserver loop/],integrations:e=>e.filter(({name:e})=>!K.includes(e)),release:s}),h.PN(t=>{t.setTag("revision","7912fe91e90741383044b0b031863fb6bf6a32c2"),t.setTag("client","web"),t.setTag("tenant",T),t.setTags(e)})})(),(0,p.K)(),"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/service-worker.js").catch(e=>{te.some(t=>e.message.includes(t))||Z(e)})}),(()=>{const e=document.createElement("div");e.style.overflow="scroll",document.body.appendChild(e);const t=e.offsetWidth-e.clientWidth;return e.remove(),0===t})()||(document.documentElement.classList.add(ee),document.documentElement.classList.toggle("T4VjJ",!0)),(0,se.Kl)({stage:ce()});(0,d.createRoot)(document.getElementById("root")).render((0,pe.jsx)(l.Kq,{store:One,children:(0,pe.jsx)(c.Kd,{children:(0,pe.jsx)(x8,{})})}))},5007(e,t,s){"use strict";e.exports=s.p+"assets/de-eece57d749f25447ca4a.json"},7815(e,t,s){"use strict";e.exports=s.p+"assets/en-a135a42c04809e5f61c4.json"}
1,272(e,t,s){"use strict";e.exports=s.p+"assets/es-92494b88bfbe3375f012.json"},4788(e,t,s){"use strict";e.exports=s.p+"assets/fr-e230b29db3aae68767cf.json"},7645(e,t,s){"use strict";e.exports=s.p+"assets/it-c7b30ccb763149e049cc.json"},5208(e,t,s){"use strict";e.exports=s.p+"token.json"}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var s=o[e]={id:e,loaded:!1,exports:{}};return r[e].call(s.exports,s,s.exports,a),s.loaded=!0,s.exports}a.m=r,a.amdD=function(){throw new Error("define cannot be used indirect")},e=[],a.O=(t,s,n,i)=>{if(!s){var r=1/0;for(d=0;d<e.length;d++){for(var[s,n,i]=e[d],o=!0,l=0;l<s.length;l++)(!1&i||r>=i)&&Object.keys(a.O).every(e=>a.O[e](s[l]))?s.splice(l--,1):(o=!1,i<r&&(r=i));if(o){e.splice(d--,1);var c=n();void 0!==c&&(t=c)}}return t}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[s,n,i]},a.F={},a.E=e=>{Object.keys(a.F).map(t=>{a.F[t](e)})},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},s=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var i=Object.create(null);a.r(i);var r={};t=t||[null,s({}),s([]),s(s)];for(var o=2&n&&e;("object"==typeof o||"function"==typeof o)&&!~t.indexOf(o);o=s(o))Object.getOwnPropertyNames(o).forEach(t=>r[t]=()=>e[t]);return r.default=()=>e,a.d(i,r),i},a.d=(e,t)=>{for(var s in t)a.o(t,s)&&!a.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,s)=>(a.f[s](e,t),t),[])),a.u=e=>({59:"vendor-platform",120:"vendor-braze",554:"vendor-sortable",845:"vendor-micromark",866:"vendor-focus-trap",951:"player-bitmovin-adapter"}[e]+"-"+{59:"4865918d15aa498aad03",120:"516c99fe319620690434",554:"8c6a9aa7db382f1b60b0",845:"f65371aed02ff4197041",866:"ecfb4687a3afbc6e5aff",951:"ababcf6b599528895243"}[e]+".js"),a.miniCssF=e=>{},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},i="@zattoo/frontend:",a.l=(e,t,s,r)=>{if(n[e])n[e].push(t);else{var o,l;if(void 0!==s)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var p=c[d];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==i+s){o=p;break}}o||(l=!0,(o=document.createElement("script")).charset="utf-8",a.nc&&o.setAttribute("nonce",a.nc),o.setAttribute("data-webpack",i+s),o.src=e),n[e]=[t];var u=(t,s)=>{o.onerror=o.onload=null,clearTimeout(h);var i=n[e];if(delete n[e],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach(e=>e(s)),t)return t(s)},h=setTimeout(u.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=u.bind(null,o.onerror),o.onload=u.bind(null,o.onload),l&&document.head.appendChild(o)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.p="/",(()=>{var e={524:0};a.f.j=(t,s)=>{var n=a.o(e,t)?e[t]:void 0;if(0!==n)if(n)s.push(n[2]);else{var i=new Promise((s,i)=>n=e[t]=[s,i]);s.push(n[2]=i);var r=a.p+a.u(t),o=new Error;a.l(r,s=>{if(a.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var i=s&&("load"===s.type?"missing":s.type),r=s&&s.target&&s.target.src;o.message="Loading chunk "+t+" failed.\n("+i+": "+r+")",o.name="ChunkLoadError",o.type=i,o.request=r,n[1](o)}},"chunk-"+t,t)}},a.F.j=t=>{if(!a.o(e,t)||void 0===e[t]){e[t]=null;var s=document.createElement("link");s.charset="utf-8",a.nc&&s.setAttribute("nonce",a.nc),s.rel="prefetch",s.as="script",s.href=a.p+a.u(t),document.head.appendChild(s)}},a.O.j=t=>0===e[t];var t=(t,s)=>{var n,i,[r,o,l]=s,c=0;if(r.some(t=>0!==e[t])){for(n in o)a.o(o,n)&&(a.m[n]=o[n]);
1if(l)var d=l(a)}for(t&&t(s);c<r.length;c++)i=r[c],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return a.O(d)},s=self.webpackChunk_zattoo_frontend=self.webpackChunk_zattoo_frontend||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))})(),a.O(0,[524],()=>{a.E(951)},5);var l=a.O(void 0,[96],()=>a(5990));l=a.O(l)})();
2//

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.