@castlabs/prestoplay 6.17.0 → 6.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/cjs/cl.adobe.js +3 -3
  3. package/cjs/cl.airplay.js +3 -3
  4. package/cjs/cl.broadpeak.js +7 -7
  5. package/cjs/cl.cast.js +98 -98
  6. package/cjs/cl.conviva.js +31 -31
  7. package/cjs/cl.core.js +372 -369
  8. package/cjs/cl.crypto.js +8 -8
  9. package/cjs/cl.dash.js +71 -71
  10. package/cjs/cl.externs.js +1 -1
  11. package/cjs/cl.freewheel.js +21 -21
  12. package/cjs/cl.hls.js +67 -67
  13. package/cjs/cl.hlssmpte.js +6 -6
  14. package/cjs/cl.htmlcue.js +29 -29
  15. package/cjs/cl.ima.js +22 -22
  16. package/cjs/cl.mse.js +302 -302
  17. package/cjs/cl.muxdata.js +14 -14
  18. package/cjs/cl.onboard.js +3 -3
  19. package/cjs/cl.persistent.js +13 -13
  20. package/cjs/cl.playlist.js +6 -6
  21. package/cjs/cl.sessions.js +15 -15
  22. package/cjs/cl.simid.js +15 -15
  23. package/cjs/cl.smooth.js +71 -71
  24. package/cjs/cl.thumbnails.js +26 -26
  25. package/cjs/cl.tizen.js +64 -64
  26. package/cjs/cl.ttml.js +28 -28
  27. package/cjs/cl.verimatrix.js +5 -5
  28. package/cjs/cl.vimond.js +9 -9
  29. package/cjs/cl.vr.js +18 -18
  30. package/cjs/cl.vtt.js +14 -14
  31. package/cjs/cl.youbora.js +14 -14
  32. package/cl.adobe.js +3 -3
  33. package/cl.airplay.js +3 -3
  34. package/cl.broadpeak.js +5 -5
  35. package/cl.cast.js +83 -83
  36. package/cl.conviva.js +26 -26
  37. package/cl.core.js +324 -323
  38. package/cl.crypto.js +8 -8
  39. package/cl.dash.js +69 -69
  40. package/cl.externs.js +1 -1
  41. package/cl.freewheel.js +15 -15
  42. package/cl.hls.js +72 -72
  43. package/cl.hlssmpte.js +5 -5
  44. package/cl.htmlcue.js +26 -26
  45. package/cl.ima.js +15 -15
  46. package/cl.mse.js +267 -268
  47. package/cl.muxdata.js +11 -11
  48. package/cl.onboard.js +4 -4
  49. package/cl.persistent.js +10 -10
  50. package/cl.playlist.js +5 -5
  51. package/cl.sessions.js +10 -10
  52. package/cl.simid.js +13 -13
  53. package/cl.smooth.js +59 -59
  54. package/cl.thumbnails.js +19 -19
  55. package/cl.tizen.js +54 -54
  56. package/cl.ttml.js +22 -22
  57. package/cl.verimatrix.js +4 -4
  58. package/cl.vimond.js +6 -6
  59. package/cl.vr.js +14 -14
  60. package/cl.vtt.js +11 -11
  61. package/cl.youbora.js +12 -12
  62. package/package.json +1 -1
  63. package/typings.d.ts +3 -2
package/cjs/cl.core.js CHANGED
@@ -1,54 +1,54 @@
1
1
  (function(){var g={}; var _ = {};
2
- (function(window){var aa,ca,da,ea,fa,ha,qa,ta,xa,ya,Ba,Ea,Fa,Ha,Ja,Na,Sa,Ta,Wa,Ya,Za,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,vb,wb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Ib,Jb,Mb,Pb,Rb,Vb,Zb,$b,ac,bc,cc,fc,hc,kc,lc,oc,qc,tc,uc,vc,wc,xc,Wc,ad,hd,od,pd,wd,xd,yd,Ad,Bd,Cd,Dd,Ed,Hd,Id,Jd,Kd,Ld,Md,Rd,Td,Wd,be,ce,de,ee,ge,he,je,me,ne,pe,ue,Be,Ce,Ee,Fe,Le,df,lf,nf,of,pf,qf,rf,sf,tf,uf,vf,wf,Af,Ef,Ff,Gf,Hf,If,Kf,Lf,Pf,Rf,fg,ig,pg,wg,xg,Ng,Rg,Sg,Tg,Ug,Vg,Xg,Yg,Zg,ah,bh,fh,jh,lh,kh,mh,nh,oh,th,wh,uh,vh,xh,zh,Ah,Eh,Hh,Mh,Qh,Sh,Th,Zh,Wh,$h,bi,
2
+ (function(window){var aa,ca,da,ea,fa,ha,qa,ta,xa,ya,Ba,Ea,Fa,Ha,Ja,Na,Sa,Ta,Wa,Ya,Za,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,vb,wb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Ib,Jb,Mb,Pb,Rb,Vb,Zb,$b,ac,bc,ec,gc,jc,kc,nc,oc,sc,tc,uc,vc,wc,Vc,$c,gd,nd,od,vd,wd,xd,zd,Ad,Bd,Cd,Dd,Fd,Hd,Id,Jd,Kd,Ld,Qd,Sd,Vd,ae,be,ce,de,ee,ge,ie,le,me,oe,te,Ae,Be,De,Ee,Ke,cf,kf,mf,nf,of,pf,qf,rf,sf,tf,uf,vf,zf,Af,Bf,Ff,Gf,Hf,Jf,Kf,Of,Qf,eg,hg,og,ug,wg,xg,Ng,Rg,Sg,Tg,Ug,Vg,Xg,Yg,Zg,ah,bh,fh,jh,lh,kh,mh,nh,oh,th,wh,uh,vh,xh,zh,Ah,Eh,Hh,Mh,Qh,Sh,Th,Zh,Wh,$h,bi,
3
3
  ai,di,gi,ki,mi,li,yi,zi,Ai,Ci,Ei,Fi,Hi,Ii,Mi,Oi,Qi,Ki,Si,gj,jj,nj,pj,qj,tj,oj,kj,uj,Bj,Hj,Lj,Mj,Nj,Qj,Rj,bk,ck,dk,jk,nk,ok,uk,vk,yk,Ak,zk,xk,Bk,wk,Ek,Ck,Dk,Fk,Gk,Mk,Vk,Xk,il,kl,ll,ml,wl,nl,zl,Bl,Dl,El,Cl,Gl,Hl,Al,Il,Jl,Kl,Ll,Ml,Ql,Rl,Sl,Tl,Nl,Xl,Yl,$l,bm,dm,jm,km,lm,mm,nm,om,pm,qm,rm,sm,tm,um,Am,Nm,Tm,Wm,Xm,Zm,$m,gn,ln,mn,tn,zn,An,Cn,Dn,In,Jn,On,Pn,Wn,bo,ro,to,vo,zo,Ao,Eo,jo,ho,Lo,Co,Mo,Oo,No,To,So,Qo,Ro,Yn,uo,Po,Zn,Ko,go,Go,Ho,Wo,Jo,io,ao,ap,cp,dp,ep,fp,kp,op,pp,rp,vp,Ap,np,Bp,Cp,Fp,Ip,Jp,Lp,Mp,
4
- Hp,Gp,Np,Op,Pp,Qp,Vp,$p,aq,bq,fq,eq,hq,gq,jq,kq,lq,mq,iq,oq,qq,rq,sq,tq,uq,vq,wq,xq,zq,Aq,Bq,Cq,yq,Fq,X,Gq,Kq,Iq,Lq,Oq,Nq,Mq,Pq,Rq,Wq,Vq,Sq,Yq,Zq,$q,cr,dr,br,ar,er,hr,jr,ir,mr,kr,pr,qr,or,sr,tr,ur,rr,gr,vr,fr,yr,zr,Cr,Dr,Er,Fr,Ir,Gr,Jr,Lr,Nr,Mr,Pr,Hr,Qr,Br,Rr,Ar,Xr,$r,Zr,ds,bs,cs,Ur,Vr,as,ks,gs,hs,is,ss,ts,qs,As,Sr,Yr,Es,Fs,Gs,Hs,Up,Is,Ks,Ls,Ms,Ns,Os,Ps,Qs,Rs,Ss,Ts,Us,Vs,Ws,Xs,Ys,Zs,bt,$s,ct,et,ft,at,dt,gt,ht,it,jt,kt,lt,mt,nt,ot,pt,rt,tt,ut,vt,st,xt,yt,Et,Jt,Kt,Mt,Lt,Yj,Ot,Rt,Qt,St,Tt,Pt,Vt,Wt,Ut,
5
- Xt,Zt,au,Zj,fu,Uj,su,vu,dh,xu;aa=" coming up at ";_.ba=" is registered.";ca=" is unsupported on this platform.";da=" to a log level. Falling back to default!";ea="': 'output-restricted'";fa="() is ongoing!";ha=".start";_.ia="6.17.0";_.ja="AdaptationSet";_.ka="Already destroyed. No-op";_.la="Already released. No-op";_.ma="Autoplay is not allowed due to browser policy.";_.na="BANDWIDTH";_.pa="BASIC";qa="CHECKSUM";_.ra="CLOSED-CAPTIONS";_.sa="CODECS";ta="Can not set volume to ";_.ua="Cannot retrieve buffer information due to platform limitations";
4
+ Hp,Gp,Np,Op,Pp,Qp,Vp,$p,aq,bq,fq,eq,hq,gq,jq,kq,lq,mq,iq,oq,qq,rq,tq,uq,vq,wq,xq,yq,zq,Aq,Cq,Dq,Eq,Fq,Bq,Iq,X,Jq,Nq,Lq,Oq,Rq,Qq,Pq,Sq,Uq,Zq,Yq,Vq,ar,br,cr,fr,gr,er,dr,hr,kr,mr,lr,pr,nr,sr,tr,rr,vr,wr,xr,ur,jr,yr,ir,Br,Cr,Fr,Gr,Hr,Ir,Lr,Jr,Mr,Or,Qr,Pr,Sr,Kr,Tr,Er,Ur,Dr,$r,cs,bs,gs,es,fs,Xr,Yr,ds,ns,js,ks,ls,vs,ws,ts,Ds,Vr,as,Hs,Is,Js,Ks,Up,Ls,Ns,Os,Ps,Qs,Rs,Ss,Ts,Us,Vs,Ws,Xs,Ys,Zs,$s,at,bt,et,ct,ft,ht,it,dt,gt,jt,kt,lt,mt,nt,ot,pt,qt,rt,st,ut,wt,xt,yt,vt,At,Bt,Ht,Mt,Nt,Pt,Ot,Yj,Rt,Ut,Tt,Vt,Wt,St,Zt,
5
+ $t,Yt,au,bu,du,Zj,iu,Uj,vu,yu,dh,Au;aa=" coming up at ";_.ba=" is registered.";ca=" is unsupported on this platform.";da=" to a log level. Falling back to default!";ea="': 'output-restricted'";fa="() is ongoing!";ha=".start";_.ia="6.17.1";_.ja="AdaptationSet";_.ka="Already destroyed. No-op";_.la="Already released. No-op";_.ma="Autoplay is not allowed due to browser policy.";_.na="BANDWIDTH";_.pa="BASIC";qa="CHECKSUM";_.ra="CLOSED-CAPTIONS";_.sa="CODECS";ta="Can not set volume to ";_.ua="Cannot retrieve buffer information due to platform limitations";
6
6
  _.va="CastlabsPlayer";_.wa="Configuration is valid";xa="Content-Length";ya="Content-Type";_.za="Could not find configured DRM environment.";_.Aa="DRM environment '";Ba="DRM licenses loaded";Ea="DRMtoday";Fa="DRMtodayOnboard";_.Ga="DURATION";Ha="Destroying player";_.Ia="Disable track type ";Ja="EXT-X-BYTERANGE";_.Ka="EXT-X-DATERANGE";_.La="EXT-X-DISCONTINUITY";_.Ma="EXT-X-DISCONTINUITY-SEQUENCE";Na="EXT-X-ENDLIST";_.Oa="EXT-X-KEY";_.Pa="EXT-X-MAP";_.Ra="EXT-X-MEDIA-SEQUENCE";Sa="EXT-X-PART-INF";
7
7
  Ta="EXT-X-PLAYLIST-TYPE";_.Ua="EXT-X-PRELOAD-HINT";_.Va="EXT-X-PROGRAM-DATE-TIME";Wa="EXT-X-SERVER-CONTROL";_.Xa="EXT-X-STREAM-INF";Ya="EXT-X-TARGETDURATION";Za="Error while decoding string!";_.$a="Error while fetching license!";_.cb="FairPlay Certificate URL is not defined";_.db="FairPlay License URL is not defined";_.eb="GROUP-ID";gb="HW_SECURE_ALL";hb="HW_SECURE_CRYPTO";ib="HW_SECURE_DECODE";jb="HeaderDrm";kb="Hide video element .";lb="Interstitial ";mb="Interstitial cue ";nb="Interstitials ";
8
8
  ob="Invalid track type: ";pb="InvalidStateError";qb="Item failed (ID: ";rb="Item loading (ID: ";sb="Item not found (ID: ";tb="Key status for Key ID '";_.ub="LANGUAGE";vb="License verification failed: ";wb="Load interrupted while a player release is pending";_.xb="Loading player with configuration";_.yb="MaxHeight";_.zb="MaxWidth";Ab="Missing media element";Bb="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";Cb="No event provided!";Db="No items in the playlist";
9
9
  Eb="No sources provided!";Fb="No track data attached to the event, unable to add track!";Gb="Not a persistent session.";_.Hb="Not supported";Ib="NotAllowedError";Jb="NotSupportedError";_.Kb="PLAYLIST";_.Lb="PlayReady License URL is not defined";Mb="Player not ready yet.";_.Nb="Player sources";_.Ob="Player state change: ";Pb="Playing interstitial asset ";_.Qb="Please make sure ";Rb="Preloading is not supported by this player.";_.Sb="QualityLevel";_.Tb="RESOLUTION";_.Ub="Representation";Vb="STANDARD";
10
- _.Wb="SUBTITLES";_.Xb="SW_SECURE_CRYPTO";_.Yb="SW_SECURE_DECODE";Zb="Session is closed";$b="Setting native ";ac="Show video element .";bc="Signature Verification failed";cc="Skipping Session creation. License for init data was already requested in Session: '";_.dc="SmoothStreamingMedia";_.ec="TYPE";fc="The index is not in the allowed range.";_.gc="URI";hc="Unable to translate ";_.ic="Unhandled/ignored event";_.jc="Unregistering listeners";kc="Unsupported keySystem";lc="Using VTTCue polyfill from 3 argument TextTrackCue.";
11
- _.mc="VIDEO";_.nc="VOD";oc="Wait for preloading to finish";qc="WebkitEmeManager.MediaKeySession.load";_.sc="Widevine License URL is not defined";tc="Will create EME Manager: ";uc="X-ASSET-LIST";vc="X-ASSET-URI";wc="X-PLAYOUT-LIMIT";xc="X-RESUME-OFFSET";_.yc="ad-break-started";_.zc="ad-break-stopped";_.Ac="ad-buffering";_.Bc="ad-clicked";_.Cc="ad-completed";_.Dc="ad-first-quartile";_.Ec="ad-impression";_.Fc="ad-loaded";_.Gc="ad-midpoint";_.Hc="ad-paused";_.Ic="ad-progress";_.Jc="ad-resumed";_.Kc="ad-skipped";
12
- _.Lc="ad-started";_.Mc="ad-stopped";_.Nc="ad-third-quartile";_.Oc="addtrack";_.Pc="ads-timeline-changed";_.Qc="airplay-casting-ended";_.Rc="airplay-casting-started";_.Sc="airplay-status-changed";_.Tc="application";_.Uc="application/cea-608";_.Vc="application/dash+xml";Wc="application/mp4";_.Xc='application/mp4; codecs\x3d"stpp"';_.Yc='application/mp4; codecs\x3d"wvtt"';_.Zc="application/ttml+xml";_.$c="application/vnd.ms-sstr+xml";ad="application/x-www-form-urlencoded";_.bd="audio";_.cd="audio/aac";
13
- _.dd="audio/ac3";_.ed="audio/eac3";_.gd="audio/mp4";hd='audio/mp4;codecs\x3d"mp4a.40.2"';_.id="audiobufferchanged";_.jd="autoplaynotallowed";_.kd="bitratechanged";_.ld="boolean";_.md="bufferingended";_.nd="bufferingstarted";od="canplay";pd="canplaythrough";_.qd="caption";_.rd="castingstarted";_.sd="caststatuschanged";_.td="cdn-switch-success";_.ud="cenc";_.vd="center";wd="certificate-request";xd="change";yd="chrome";_.zd="clpp-fill";Ad="clpp-hidden";Bd="clpp-mc-playlist";Cd="clpp-mc-playlist-item";
14
- Dd="clpp-mc-playlist-video-el";Ed="clpp-visible";_.Fd="clpp.cast.CastSender";Hd="clpp.drm.HeaderDrm";Id="clpp.drm.eme.AppleEmeManager";Jd="clpp.interstitial.Player";Kd="clpp.native.Player";Ld="clpp.plist.McPlaylist";Md="clpp.utils.Platform";_.Nd="codecs";_.Od="column-reverse";_.Pd="com.adobe.primetime";_.Qd="com.apple.fps";Rd="com.apple.hls.interstitial";_.Sd="com.microsoft.playready";Td="com.microsoft.playready.recommendation";_.Ud="com.widevine.alpha";_.Vd="config.drm.customData is not defined";
15
- Wd="controls";_.Xd="cuechange";_.Yd="decoder";_.Zd="destroy()";_.$d="disabled";_.ae="div";be="drm.license.req.";ce="drm.mediaKeys.end";de="drm.mediaKeys.start";ee="drm.onPlay.end";ge="drm.onPlay.start";he="drm.sess.update.";_.ie="drmexpirationupdate";je="drmrenewalstarted";_.ke="drmsessionpersisted";_.le="drmsessionupdate";me="drmtoday";ne="durationchange";_.oe="ec-3";pe="encrypted";_.qe="end";_.re="ended";_.se="error";_.te="forced";ue="fullscreenElement";_.ve="function";_.we="height";_.xe="hidden";
16
- _.ye="html";_.ze="image";_.Ae="internal-error";Be="itemchange";Ce="keystatuseschange";_.De="left";Ee="license-renewal";Fe="license-request";_.Ge="line-left";_.He="line-right";_.Ie="live-turned-static";_.Je="loadeddata";_.Ke="loadedmetadata";Le="loadstart";_.Ne="main";_.Oe="mdat";_.Pe="mdia";_.Qe="message";_.Re="metadata";_.Se="mimeType";_.Te="minf";_.Ue="moov";_.Ve="mpd-type-changed";_.We="mpeg-dash-callback-event";_.Xe="none";_.k="number";_.Ye="object";_.Ze="onBitrateChanged()";_.$e="onPlayerError()";
17
- _.af="onPlayerWillDestroy";_.bf="onPlayerWillRelease";_.cf="onStateChanged()";df="online-status-changed";_.ef="optional";_.ff="org.w3.clearkey";_.gf="output-restricted";_.hf="pause";_.jf="persistent";_.kf="persistent-license";lf="picture-in-picture";_.mf="play";nf="player.afterLoad.end";of="player.afterLoad.start";pf="player.appendLoad.end";qf="player.appendLoad.start";rf="player.beforeLoad.end";sf="player.beforeLoad.start";tf="player.load.end";uf="player.load.start";vf="player.setupPlaylist.end";
18
- wf="player.setupPlaylist.start";_.xf="playing";_.yf="playlist-item-changed";_.zf="playlist-modified";Af="playlist.next.end";Ef="playlist.next.start";Ff="preload-aborted";Gf="preload-failed";Hf="preloaded";If="preloading";_.Jf="prevent";Kf="primary-before-load";Lf="primary-content";_.Mf="progress";_.Nf="px";_.Of="ratechange";Pf="released";_.Qf="releasing";Rf="removetrack";_.Sf="required";_.Tf="resize";_.Uf="right";_.Vf="sc-playlist-ended";_.Wf="sc-playlist-item-changed";_.Xf="sc-playlist-live-turned-static";
19
- _.Yf="sc-playlist-timeline-changed";_.Zf="seeked";_.$f="seeking";_.ag="showing";_.bg="simid-creative-started";_.cg="simid-creative-stopped";_.dg="sinf";_.eg="smooth";fg="stalled";_.gg="start";_.hg="statechanged";ig="status-pending";_.jg="stbl";_.kg="string";_.lg="stsd";_.mg="style";_.ng="subtitle";_.og="subtitles-htmlcue";pg="temporary";_.qg="text/vtt";_.rg="text/xml";_.sg="timeupdate";_.tg="trak";_.ug="ttml-xml";_.vg="und";wg="unknown";xg="update";_.yg="urn:scte:scte35";_.zg="urn:scte:scte35:2014";
20
- _.Cg="user-seeked";_.Dg="user-seeking";_.Fg="value";_.Gg="vertical-lr";_.Hg="vertical-rl";_.r="video";_.Ig="video/mp2t";_.Jg="video/mp4";_.Kg="videobufferchanged";_.Lg="videotrackchanged";_.Mg="vimond-response";Ng="visibilitychange";_.Og="vtt-xml";_.Pg="waiting";_.Qg="waitingforkey";Rg="webkit-org.w3.clearkey";Sg="webkitkeyadded";Tg="webkitkeyerror";Ug="webkitkeymessage";Vg="webkitneedkey";_.Wg="width";Xg="x-dt-csl-tracking-token";Yg="x-dt-follow-up-token";Zg="x-dt-resp-code";
10
+ _.Wb="SUBTITLES";_.Xb="SW_SECURE_CRYPTO";_.Yb="SW_SECURE_DECODE";Zb="Session is closed";$b="Setting native ";ac="Show video element .";bc="Skipping Session creation. License for init data was already requested in Session: '";_.cc="SmoothStreamingMedia";_.dc="TYPE";ec="The index is not in the allowed range.";_.fc="URI";gc="Unable to translate ";_.hc="Unhandled/ignored event";_.ic="Unregistering listeners";jc="Unsupported keySystem";kc="Using VTTCue polyfill from 3 argument TextTrackCue.";_.lc="VIDEO";
11
+ _.mc="VOD";nc="Wait for preloading to finish";oc="WebkitEmeManager.MediaKeySession.load";_.qc="Widevine License URL is not defined";sc="Will create EME Manager: ";tc="X-ASSET-LIST";uc="X-ASSET-URI";vc="X-PLAYOUT-LIMIT";wc="X-RESUME-OFFSET";_.xc="ad-break-started";_.yc="ad-break-stopped";_.zc="ad-buffering";_.Ac="ad-clicked";_.Bc="ad-completed";_.Cc="ad-first-quartile";_.Dc="ad-impression";_.Ec="ad-loaded";_.Fc="ad-midpoint";_.Gc="ad-paused";_.Hc="ad-progress";_.Ic="ad-resumed";_.Jc="ad-skipped";
12
+ _.Kc="ad-started";_.Lc="ad-stopped";_.Mc="ad-third-quartile";_.Nc="addtrack";_.Oc="ads-timeline-changed";_.Pc="airplay-casting-ended";_.Qc="airplay-casting-started";_.Rc="airplay-status-changed";_.Sc="application";_.Tc="application/cea-608";_.Uc="application/dash+xml";Vc="application/mp4";_.Wc='application/mp4; codecs\x3d"stpp"';_.Xc='application/mp4; codecs\x3d"wvtt"';_.Yc="application/ttml+xml";_.Zc="application/vnd.ms-sstr+xml";$c="application/x-www-form-urlencoded";_.ad="audio";_.bd="audio/aac";
13
+ _.cd="audio/ac3";_.dd="audio/eac3";_.ed="audio/mp4";gd='audio/mp4;codecs\x3d"mp4a.40.2"';_.hd="audiobufferchanged";_.id="autoplaynotallowed";_.jd="bitratechanged";_.kd="boolean";_.ld="bufferingended";_.md="bufferingstarted";nd="canplay";od="canplaythrough";_.pd="caption";_.qd="castingstarted";_.rd="caststatuschanged";_.sd="cdn-switch-success";_.td="cenc";_.ud="center";vd="certificate-request";wd="change";xd="chrome";_.yd="clpp-fill";zd="clpp-hidden";Ad="clpp-mc-playlist";Bd="clpp-mc-playlist-item";
14
+ Cd="clpp-mc-playlist-video-el";Dd="clpp-visible";_.Ed="clpp.cast.CastSender";Fd="clpp.drm.HeaderDrm";Hd="clpp.drm.eme.AppleEmeManager";Id="clpp.interstitial.Player";Jd="clpp.native.Player";Kd="clpp.plist.McPlaylist";Ld="clpp.utils.Platform";_.Md="codecs";_.Nd="column-reverse";_.Od="com.adobe.primetime";_.Pd="com.apple.fps";Qd="com.apple.hls.interstitial";_.Rd="com.microsoft.playready";Sd="com.microsoft.playready.recommendation";_.Td="com.widevine.alpha";_.Ud="config.drm.customData is not defined";
15
+ Vd="controls";_.Wd="cuechange";_.Xd="decoder";_.Yd="destroy()";_.Zd="disabled";_.$d="div";ae="drm.license.req.";be="drm.mediaKeys.end";ce="drm.mediaKeys.start";de="drm.onPlay.end";ee="drm.onPlay.start";ge="drm.sess.update.";_.he="drmexpirationupdate";ie="drmrenewalstarted";_.je="drmsessionpersisted";_.ke="drmsessionupdate";le="drmtoday";me="durationchange";_.ne="ec-3";oe="encrypted";_.pe="end";_.qe="ended";_.re="error";_.se="forced";te="fullscreenElement";_.ue="function";_.ve="height";_.we="hidden";
16
+ _.xe="html";_.ye="image";_.ze="internal-error";Ae="itemchange";Be="keystatuseschange";_.Ce="left";De="license-renewal";Ee="license-request";_.Fe="line-left";_.Ge="line-right";_.He="live-turned-static";_.Ie="loadeddata";_.Je="loadedmetadata";Ke="loadstart";_.Le="main";_.Ne="mdat";_.Oe="mdia";_.Pe="message";_.Qe="metadata";_.Re="mimeType";_.Se="minf";_.Te="moov";_.Ue="mpd-type-changed";_.Ve="mpeg-dash-callback-event";_.We="none";_.k="number";_.Xe="object";_.Ye="onBitrateChanged()";_.Ze="onPlayerError()";
17
+ _.$e="onPlayerWillDestroy";_.af="onPlayerWillRelease";_.bf="onStateChanged()";cf="online-status-changed";_.df="optional";_.ef="org.w3.clearkey";_.ff="output-restricted";_.gf="pause";_.hf="persistent";_.jf="persistent-license";kf="picture-in-picture";_.lf="play";mf="player.afterLoad.end";nf="player.afterLoad.start";of="player.appendLoad.end";pf="player.appendLoad.start";qf="player.beforeLoad.end";rf="player.beforeLoad.start";sf="player.load.end";tf="player.load.start";uf="player.setupPlaylist.end";
18
+ vf="player.setupPlaylist.start";_.wf="playing";_.xf="playlist-item-changed";_.yf="playlist-modified";zf="playlist.next.end";Af="playlist.next.start";Bf="preload-aborted";Ff="preload-failed";Gf="preloaded";Hf="preloading";_.If="prevent";Jf="primary-before-load";Kf="primary-content";_.Lf="progress";_.Mf="px";_.Nf="ratechange";Of="released";_.Pf="releasing";Qf="removetrack";_.Rf="required";_.Sf="resize";_.Tf="right";_.Uf="sc-playlist-ended";_.Vf="sc-playlist-item-changed";_.Wf="sc-playlist-live-turned-static";
19
+ _.Xf="sc-playlist-timeline-changed";_.Yf="seeked";_.Zf="seeking";_.$f="showing";_.ag="simid-creative-started";_.bg="simid-creative-stopped";_.cg="sinf";_.dg="smooth";eg="stalled";_.fg="start";_.gg="statechanged";hg="status-pending";_.ig="stbl";_.jg="string";_.kg="stsd";_.lg="style";_.mg="subtitle";_.ng="subtitles-htmlcue";og="temporary";_.pg="text/vtt";_.qg="text/xml";_.rg="timeupdate";_.sg="trak";_.tg="ttml-xml";ug="unauthenticated";_.vg="und";wg="unknown";xg="update";_.yg="urn:scte:scte35";
20
+ _.zg="urn:scte:scte35:2014";_.Cg="user-seeked";_.Dg="user-seeking";_.Fg="value";_.Gg="vertical-lr";_.Hg="vertical-rl";_.r="video";_.Ig="video/mp2t";_.Jg="video/mp4";_.Kg="videobufferchanged";_.Lg="videotrackchanged";_.Mg="vimond-response";Ng="visibilitychange";_.Og="vtt-xml";_.Pg="waiting";_.Qg="waitingforkey";Rg="webkit-org.w3.clearkey";Sg="webkitkeyadded";Tg="webkitkeyerror";Ug="webkitkeymessage";Vg="webkitneedkey";_.Wg="width";Xg="x-dt-csl-tracking-token";Yg="x-dt-follow-up-token";Zg="x-dt-resp-code";
21
21
  ah=function(a){return function(){return _.$g[a].apply(this,arguments)}};bh=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};_.w=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:bh(a)}};_.ch=function(a){if(!(a instanceof Array)){a=_.w(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};
22
22
  _.x=function(a,b){a.prototype=dh(b.prototype);a.prototype.constructor=a;if(eh)eh(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c]};fh=function(){fh=function(){};gh.Symbol||(gh.Symbol=hh)};jh=function(a,b){this.a=a;ih(this,"description",{configurable:!0,writable:!0,value:b})};
23
- lh=function(){fh();var a=gh.Symbol.iterator;a||(a=gh.Symbol.iterator=gh.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.ve&&ih(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return kh(bh(this))}});lh=function(){}};kh=function(a){lh();a={next:a};a[gh.Symbol.iterator]=function(){return this};return a};mh=function(){this.w=!1;this.l=null;this.f=void 0;this.a=1;this.j=this.o=0;this.B=this.h=null};nh=function(a){if(a.w)throw new TypeError("Generator is already running");a.w=!0};
23
+ lh=function(){fh();var a=gh.Symbol.iterator;a||(a=gh.Symbol.iterator=gh.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.ue&&ih(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return kh(bh(this))}});lh=function(){}};kh=function(a){lh();a={next:a};a[gh.Symbol.iterator]=function(){return this};return a};mh=function(){this.w=!1;this.l=null;this.f=void 0;this.a=1;this.j=this.o=0;this.B=this.h=null};nh=function(a){if(a.w)throw new TypeError("Generator is already running");a.w=!0};
24
24
  oh=function(a,b){a.h={eh:b,Dh:!0};a.a=a.o||a.j};_.y=function(a,b,c){a.a=c;return{value:b}};_.A=function(a){a.a=0};_.B=function(a,b,c){a.o=b;void 0!=c&&(a.j=c)};_.ph=function(a){a.o=0;a.j=2};_.qh=function(a,b){a.a=b;a.o=0};_.E=function(a){a.o=0;var b=a.h.eh;a.h=null;return b};_.rh=function(a){a.B=[a.h];a.o=0;a.j=0};_.sh=function(a,b){var c=a.B.splice(0)[0];(c=a.h=a.h||c)?c.Dh?a.a=a.o||a.j:void 0!=c.F&&a.j<c.F?(a.a=c.F,a.h=null):a.a=a.j:a.a=b};th=function(a){this.a=new mh;this.f=a};
25
25
  wh=function(a,b){nh(a.a);var c=a.a.l;if(c)return uh(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return vh(a)};uh=function(a,b,c,d){try{var e=b.call(a.a.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.a.w=!1,e;var f=e.value}catch(g){return a.a.l=null,oh(a.a,g),vh(a)}a.a.l=null;d.call(a.a,f);return vh(a)};
26
26
  vh=function(a){for(;a.a.a;)try{var b=a.f(a.a);if(b)return a.a.w=!1,{value:b.value,done:!1}}catch(c){a.a.f=void 0,oh(a.a,c)}a.a.w=!1;if(a.a.h){b=a.a.h;a.a.h=null;if(b.Dh)throw b.eh;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
27
27
  xh=function(a){this.next=function(b){nh(a.a);a.a.l?b=uh(a,a.a.l.next,b,a.a.A):(a.a.A(b),b=vh(a));return b};this["throw"]=function(b){nh(a.a);a.a.l?b=uh(a,a.a.l["throw"],b,a.a.A):(oh(a.a,b),b=vh(a));return b};this["return"]=function(b){return wh(a,b)};lh();this[Symbol.iterator]=function(){return this}};_.yh=function(a,b){var c=new xh(new th(b));eh&&eh(c,a.prototype);return c};
28
28
  zh=function(a,b){if(b){for(var c=gh,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];f in c||(c[f]={});c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&ih(c,d,{configurable:!0,writable:!0,value:f})}};Ah=function(a){function b(d){return a.next(d)}function c(d){return a["throw"](d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})};_.H=function(a){return Ah(new xh(new th(a)))};
29
- _.J=function(a,b){var c=a.split("."),d=Bh;c[0]in d||"undefined"==typeof d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}:d[e]=b};Eh=function(a){return a&&0<=Ch[a]?Ch[a]:Dh};Hh=function(a){if(!a)return _.Fh("clpp.log",hc+a+da),-1;var b=Gh[a.toUpperCase()];return void 0===b?(_.Fh("clpp.log",hc+a+da),-1):b};_.K=function(a){(this.tag=a)&&void 0===Ch[a]&&(Ch[a]=-1)};_.Jh=function(a){Ih.info.apply(Ih,arguments)};
29
+ _.J=function(a,b){var c=a.split("."),d=Bh;c[0]in d||"undefined"==typeof d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}:d[e]=b};Eh=function(a){return a&&0<=Ch[a]?Ch[a]:Dh};Hh=function(a){if(!a)return _.Fh("clpp.log",gc+a+da),-1;var b=Gh[a.toUpperCase()];return void 0===b?(_.Fh("clpp.log",gc+a+da),-1):b};_.K=function(a){(this.tag=a)&&void 0===Ch[a]&&(Ch[a]=-1)};_.Jh=function(a){Ih.info.apply(Ih,arguments)};
30
30
  _.Kh=function(a){Ih.debug.apply(Ih,arguments)};_.Fh=function(a){Ih.warn.apply(Ih,arguments)};_.Lh=function(a){Ih.error.apply(Ih,arguments)};Mh=function(a,b){this.Rb=a;this.sourceIndex=b};_.Ph=function(a){if(a){var b=a.a();b in _.Nh?_.Oh.warn("Player-Factory '"+b+"' already registered"):(_.Nh[b]=a,_.Oh.info("Registered Player-Factory: '"+b+"'"))}};Qh=function(a){return Object.values(_.Nh).find(a)||null};_.Rh=function(){this.a={}};Sh=function(a,b,c,d){this.f=a;this.Qc=b;this.a=c;this.Um=!!d};
31
31
  _.L=function(a,b){if(b)for(var c in b)this[c]=b[c];this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.f=this.a=!1};Th=function(a){this.a=new _.Rh;this.f=a};_.Uh=function(){this.a=new _.Rh};
32
32
  _.Vh=function(a,b,c,d){function e(h){for(var l=_.w(c),m=l.next();!m.done;m=l.next())a.off(b,m.value,e);d(h)}for(var f=_.w(c),g=f.next();!g.done;g=f.next())a.on(b,g.value,e)};_.Xh=function(a){var b=a.a,c=[],d;for(d in b.a)c.push.apply(c,b.a[d]);for(b=0;b<c.length;++b)Wh(c[b]);a.a.clear()};Zh=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};Wh=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
33
- $h=function(a){this.m=a;this.o=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.j=null;this.f=new _.Uh;this.a=this.l=null;this.h=[];this.g=new _.K("clpp.native.Metadata")};bi=function(a,b){a.j=b;a.l=a.j.textTracks;a.f.on(a.l,_.Oc,function(c){c=c.track;c.kind===_.Re&&ai(a,c)})};
34
- ai=function(a,b){function c(l){for(var m=_.w(d),n=m.next();!n.done;n=m.next())if(n=n.value,l.startTime===n.startTime&&l.endTime===n.endTime)return n;m={schemeIdUri:"",value:"",startTime:0,endTime:0,id:"",type:_.ci,eventElement:null};a.o&&e&&"SCTE35-IN"===l.value.key&&0<l.startTime?(m.startTime=0,m.endTime=l.startTime):(m.startTime=l.startTime,m.endTime=l.endTime);e=!1;d.push(m);return d[d.length-1]}a.g.debug("onMetadata_()");b.mode=_.xe;var d=[],e=!0;if(b.cues){for(var f=_.w(b.cues),g=f.next();!g.done;g=
35
- f.next())if(g=g.value,!di(a,g)){var h=c(g);switch(g.value.key){case "SCTE35-IN":case "SCTE35-OUT":h.schemeIdUri=_.zg;h.type=_.ei;break;case "X-CUSTOM-ID":h.id=g.value.data}}f=_.w(d);for(g=f.next();!g.done;g=f.next())a.m.trigger(new _.L(_.fi,{detail:g.value}));Array.prototype.push.apply(a.h,d);gi(a,d,b);a.f.off(b,_.Xd);a.f.on(b,_.Xd,function(l){l=l.target.activeCues;l=l.length?di(a,l[0]):a.a;var m;if(m=l)m=a.m.getPosition(),m=l.startTime<=m&&m<l.endTime;if(m)a.a=l,a.m.trigger(new _.L(_.hi,{detail:l}));
33
+ $h=function(a){this.m=a;this.o=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.j=null;this.f=new _.Uh;this.a=this.l=null;this.h=[];this.g=new _.K("clpp.native.Metadata")};bi=function(a,b){a.j=b;a.l=a.j.textTracks;a.f.on(a.l,_.Nc,function(c){c=c.track;c.kind===_.Qe&&ai(a,c)})};
34
+ ai=function(a,b){function c(l){for(var m=_.w(d),n=m.next();!n.done;n=m.next())if(n=n.value,l.startTime===n.startTime&&l.endTime===n.endTime)return n;m={schemeIdUri:"",value:"",startTime:0,endTime:0,id:"",type:_.ci,eventElement:null};a.o&&e&&"SCTE35-IN"===l.value.key&&0<l.startTime?(m.startTime=0,m.endTime=l.startTime):(m.startTime=l.startTime,m.endTime=l.endTime);e=!1;d.push(m);return d[d.length-1]}a.g.debug("onMetadata_()");b.mode=_.we;var d=[],e=!0;if(b.cues){for(var f=_.w(b.cues),g=f.next();!g.done;g=
35
+ f.next())if(g=g.value,!di(a,g)){var h=c(g);switch(g.value.key){case "SCTE35-IN":case "SCTE35-OUT":h.schemeIdUri=_.zg;h.type=_.ei;break;case "X-CUSTOM-ID":h.id=g.value.data}}f=_.w(d);for(g=f.next();!g.done;g=f.next())a.m.trigger(new _.L(_.fi,{detail:g.value}));Array.prototype.push.apply(a.h,d);gi(a,d,b);a.f.off(b,_.Wd);a.f.on(b,_.Wd,function(l){l=l.target.activeCues;l=l.length?di(a,l[0]):a.a;var m;if(m=l)m=a.m.getPosition(),m=l.startTime<=m&&m<l.endTime;if(m)a.a=l,a.m.trigger(new _.L(_.hi,{detail:l}));
36
36
  else{if(l=a.a)l=a.a,m=a.m.getPosition(),l=l.endTime<=m;l&&(l=a.a,a.a=null,a.m.trigger(new _.L(_.ii,{detail:l})))}})}};di=function(a,b){for(var c=_.w(a.h),d=c.next();!d.done;d=c.next())if(d=d.value,b.startTime===d.startTime&&b.endTime===d.endTime)return d;return null};gi=function(a,b,c){if(a.o){for(;0<c.cues.length;)c.removeCue(c.cues[0]);b.forEach(function(d){c.addCue(new DataCue(d.startTime,d.endTime,{key:"SCTE35-OUT",data:null}))})}};_.ji=function(a){return Array.isArray(a)?a:[a]};
37
37
  ki=function(a,b){return a===b?!0:a.length===b.length&&a.every(function(c,d){return c===b[d]})};mi=function(a,b,c){if(null==a&&null==b)return!0;if(null==a||null==b)return!1;a=c?a.map(c):a;b=c?b.map(c):b;return li(a,b)&&li(b,a)};li=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};
38
38
  _.ni=function(a,b){b=void 0===b?{}:b;if(b.Wg){for(var c=[],d={},e=_.w(a),f=e.next();!f.done;d={ee:d.ee},f=e.next())d.ee=f.value,c.some(function(g){return function(h){return b.Wg(g.ee,h)}}(d))||c.push(d.ee);return c}return Array.from((new Set(a)).values())};
39
39
  _.ui=function(a,b,c,d){d=void 0===d?_.oi:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.pi;this.writingMode=_.qi;this.lineInterpretation=_.ri;this.line=null;this.lineAlign=_.si;this.direction=ti;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
40
40
  _.xi=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.vi;this.scroll=wi;this.cssClassList=[];this.writingMode=this.displayAlign=null};yi=function(a){this.m=a;this.l=a.getTextDisplayer();this.f=this.h=null;this.a=new _.Uh;this.j=!1;this.g=new _.K("clpp.native.CueHandler")};
41
- zi=function(a,b){var c=b.track;c.kind!==_.Re&&(c.mode===_.ag&&(c.mode=_.xe),a.a.on(c,_.Xd,function(d){d=d.target||d.srcElement;d.mode=_.xe;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.l.append(d,[]))}))};_.P=function(a,b,c,d,e){var f=Error.call(this,Ai(a,b,c,d));this.message=f.message;"stack"in f&&(this.stack=f.stack);this.severity=a;this.category=b;this.code=c;this.data=!d||_.O.ca(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.P)};
41
+ zi=function(a,b){var c=b.track;c.kind!==_.Qe&&(c.mode===_.$f&&(c.mode=_.we),a.a.on(c,_.Wd,function(d){d=d.target||d.srcElement;d.mode=_.we;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.l.append(d,[]))}))};_.P=function(a,b,c,d,e){var f=Error.call(this,Ai(a,b,c,d));this.message=f.message;"stack"in f&&(this.stack=f.stack);this.severity=a;this.category=b;this.code=c;this.data=!d||_.O.ca(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.P)};
42
42
  Ai=function(a,b,c,d){a=(a===_.Q?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.O.ca(d))a+=": "+d;else if(null!=d)if(null!=d.message)a+=": "+d.message,delete d.message;else try{a+=": "+JSON.stringify(d)}catch(e){}return a};_.Bi=function(a,b){var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=b};
43
43
  Ci=function(a,b){var c=b||ki,d=null,e=null,f=!1;return function(g){for(var h=[],l=0;l<arguments.length;++l)h[l]=arguments[l];if(f&&c(h,d))return e;f=!0;d=h;return e=a.apply(null,_.ch(h))}};_.Di=function(a){return null!=a};Ei=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}throw new _.Bi("No non-null, non-undefined value found");};
44
44
  Fi=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}};_.Gi=function(a){var b;a instanceof _.Gi?(Hi(this,a.hb),this.Bc=a.Bc,this.Oa=a.Oa,Ii(this,a.fd),this.Ba=a.Ba,_.Ji(this,Ki(a.a)),this.nc=a.nc):a&&(b=String(a).match(Li))?(Hi(this,b[1]||"",!0),this.Bc=Mi(b[2]||""),this.Oa=Mi(b[3]||"",!0),Ii(this,b[4]),this.Ba=Mi(b[5]||"",!0),_.Ji(this,b[6]||"",!0),this.nc=Mi(b[7]||"")):this.a=new _.Ni(null)};
45
- Hi=function(a,b,c){a.hb=c?Mi(b,!0):b;a.hb&&(a.hb=a.hb.replace(/:$/,""))};Ii=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.fd=b}else a.fd=null};_.Ji=function(a,b,c){b instanceof _.Ni?a.a=b:(c||(b=Oi(b,Pi)),a.a=new _.Ni(b))};Mi=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};Oi=function(a,b,c){return typeof a===_.kg?(a=encodeURI(a).replace(b,Qi),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
45
+ Hi=function(a,b,c){a.hb=c?Mi(b,!0):b;a.hb&&(a.hb=a.hb.replace(/:$/,""))};Ii=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.fd=b}else a.fd=null};_.Ji=function(a,b,c){b instanceof _.Ni?a.a=b:(c||(b=Oi(b,Pi)),a.a=new _.Ni(b))};Mi=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};Oi=function(a,b,c){return typeof a===_.jg?(a=encodeURI(a).replace(b,Qi),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
46
46
  Qi=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};_.Ni=function(a){this.f=a||null};Ki=function(a){var b=new _.Ni;b.f=a.f;if(a.a){var c={},d;for(d in a.a)c[d]=a.a[d].concat();b.a=c;b.h=a.h}return b};Si=function(a,b){for(var c=_.w(Ri[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=_.w(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a===_.R?"":null};
47
- _.Ui=function(a,b){for(var c=Ti[a],d=0;d<c.length;d++)for(var e=0;e<b.length;e++)if(c[d].test(b[e].trim()))return b[e].trim();return a===_.R?"":null};_.Xi=function(a,b,c){return a.map(function(d){d=_.Vi(d)||"";return(d=_.Wi[b][d])?d:b===_.R?c&&"vtt"!==c?Wc:_.qg:null}).filter(Boolean)[0]||null};_.Vi=function(a){a=(new _.Gi(a)).Ba.split(".");return 1>=a.length?null:a.pop()};_.Yi=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};
47
+ _.Ui=function(a,b){for(var c=Ti[a],d=0;d<c.length;d++)for(var e=0;e<b.length;e++)if(c[d].test(b[e].trim()))return b[e].trim();return a===_.R?"":null};_.Xi=function(a,b,c){return a.map(function(d){d=_.Vi(d)||"";return(d=_.Wi[b][d])?d:b===_.R?c&&"vtt"!==c?Vc:_.pg:null}).filter(Boolean)[0]||null};_.Vi=function(a){a=(new _.Gi(a)).Ba.split(".");return 1>=a.length?null:a.pop()};_.Yi=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};
48
48
  _.Zi=function(a,b,c,d){d=void 0===d?{}:d;a=a.getAttribute(b);if(!a&&d.required)throw new _.P(_.Q,4,4023,"Required attribute missing: "+b);return a?a.value:c||null};_.$i=function(a,b){return _.Zi(a,b,void 0,{required:!0})};_.aj=function(a,b){this.name=a;this.value=b};
49
49
  _.bj=function(a,b,c,d,e,f,g,h,l,m,n,p,q,u){l=void 0===l?!1:l;m=void 0===m?null:m;n=void 0===n?null:n;p=void 0===p?null:p;q=void 0===q?null:q;u=void 0===u?[]:u;this.position=a;this.startTime=b;this.endTime=c;this.ya=g;this.Ra=d;this.wa=e;this.ka=f;this.keyInfo=(void 0===h?null:h)||null;this.Vc=_.O.R(l)?!1:!!l;this.timescale=m;this.horizontalTiles=n;this.verticalTiles=p;this.durationPerTile=q;this.a=u||[];this.h=!1};
50
50
  _.cj=function(a,b,c,d,e,f,g,h,l,m,n,p,q,u){u=void 0===u?[]:u;_.bj.call(this,a,b,c,d,e,f,g,void 0===h?null:h,void 0===l?!1:l,void 0===m?null:m,void 0===n?null:n,void 0===p?null:p,void 0===q?null:q,u);this.initSegment=void 0;this.ga=0};_.ej=function(a,b){a=_.dj(a);b=_.dj(b);return a.split("-")[0]===b.split("-")[0]};_.dj=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=fj.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};gj=function(a){if(null!==a&&void 0!==a)return Number(a)};
51
- _.hj=function(a){if(typeof a!==_.kg)return null;var b=a.trim().match(/^(\d+)x(\d+)$/);if(!b)return null;a=parseInt(b[1],10);b=parseInt(b[2],10);return 0>=a||0>=b?null:{Gd:a,ae:b,mn:a*b}};_.ij=function(a,b){for(var c=_.w(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};jj=function(){};
51
+ _.hj=function(a){if(typeof a!==_.jg)return null;var b=a.trim().match(/^(\d+)x(\d+)$/);if(!b)return null;a=parseInt(b[1],10);b=parseInt(b[2],10);return 0>=a||0>=b?null:{Gd:a,ae:b,mn:a*b}};_.ij=function(a,b){for(var c=_.w(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};jj=function(){};
52
52
  nj=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!==b.byteLength)return!1;if(kj(a)===kj(b)&&(a.byteOffset||0)===(b.byteOffset||0))return!0;for(var c=_.lj(a),d=_.lj(b),e=_.w(mj(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!==d[f])return!1;return!0};_.lj=function(a,b,c){c=void 0===c?Infinity:c;return oj(a,void 0===b?0:b,c,Uint8Array)};pj=function(a,b,c){c=void 0===c?Infinity:c;return oj(a,void 0===b?0:b,c,Uint16Array)};
53
53
  qj=function(a,b,c){c=void 0===c?Infinity:c;return oj(a,void 0===b?0:b,c,Uint32Array)};_.rj=function(a,b,c){c=void 0===c?Infinity:c;return oj(a,void 0===b?0:b,c,Int32Array)};_.sj=function(a,b,c){c=void 0===c?Infinity:c;return oj(a,void 0===b?0:b,c,DataView)};tj=function(a){return a instanceof ArrayBuffer?a:0===a.byteOffset&&a.byteLength===a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
54
54
  oj=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=kj(a),g=(a.byteOffset||0)+a.byteLength;a=Math.max(0,Math.min((a.byteOffset||0)+b*e,g));c=Math.min(a+Math.max(c*e,0),g);a/=e;return new d(f,a,c/e-a)};kj=function(a){return a instanceof ArrayBuffer?a:a.buffer};uj=function(){};_.wj=function(a,b){b=void 0===b?!0:b;var c=_.vj(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")};
@@ -63,11 +63,11 @@ Hj(c,b);return c};_.Kj=function(a,b,c,d,e,f,g,h){e&&(d=e);e={uri:d,data:b||new A
63
63
  Lj=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};Mj=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};Nj=function(a,b,c){if(0>=a)return Promise.resolve();var d=8*c/a-b/1E3;return 0<d?new Promise(function(e){setTimeout(e,1E3*d)}):Promise.resolve()};_.Oj=function(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c};
64
64
  _.Pj=function(a,b){this.P=a;this.A=b;this.a=!1};Qj=function(a,b){a.P.then(function(){return b(!0)},function(){return b(!1)});return a};Rj=function(a,b,c){try{var d=a(b);if(d&&d.P&&d.abort)return c.resolve(d.P),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){})["catch"](function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}};_.Sj=function(){this.a=[]};
65
65
  _.Tj=function(a,b){a.a.push(Qj(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.ak=function(){this.f=[];this.h=[];this.j=[];this.w=!1;this.o=new _.Sj;this.a={};this.l=0;this.a.data=Uj;!window.fetch||!window.AbortController||_.Vj(6)||_.Wj()&&68<_.Xj().browserVersion.major?(this.a.http=Yj,this.a.https=Yj):(this.a.http=Zj,this.a.https=Zj)};bk=function(a,b){var c,d;return _.H(function(e){if(1==e.a)return c=_.S,_.y(e,a.fetch(b),2);d=e.f;return e["return"](c.Nh(c.ba(d.data)))})};
66
- ck=function(a,b){var c,d;return _.H(function(e){if(1==e.a)return _.y(e,bk(a,b),2);c=e.f;try{d=JSON.parse(c);if(null==d||typeof d!==_.Ye)throw Error("Not an object");return e["return"](d)}catch(f){throw new _.Bi("Failed to parse JSON response","json-failed");}})};
66
+ ck=function(a,b){var c,d;return _.H(function(e){if(1==e.a)return _.y(e,bk(a,b),2);c=e.f;try{d=JSON.parse(c);if(null==d||typeof d!==_.Xe)throw Error("Not an object");return e["return"](d)}catch(f){throw new _.Bi("Failed to parse JSON response","json-failed");}})};
67
67
  dk=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.H(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.F(2);break}e=_.Jj(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.B(g,4);return _.y(g,a.fetch(e).P,6);case 6:_.qh(g,2);break;case 4:if(f=_.E(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};
68
68
  _.ek=function(a,b){this.id=a;this.type=b;this.roles=[];this.frameRate=this.label=this.originalLanguage=this.language=this.kind=null;this.trickPlay=!1;this.channelsCount=this.src=this.mimeType=null;this.spatialAudio=!1;this.renditions=[];this.accessibility=[]};_.fk=function(a){return a&&a!==_.vg?a:null};
69
69
  jk=function(a){if(!a)throw new _.P(_.Q,3,3101,ob+a);if(!_.O.ca(a))throw new _.P(_.Q,3,3101,ob+a+". Track type must be a string!");switch(a.toLowerCase()){case _.T:return _.T;case _.gk:return _.gk;case _.hk:return _.hk;case ik:return ik}throw new _.P(_.Q,3,3101,"Unknown track type: "+a+".");};
70
- nk=function(a,b){a=jk(a);var c=_.fk(b.kind),d=b.id;d||(d=String(_.kk++));d=new _.ek(d,c===_.Re?ik:a);d.kind=c;d.label=_.fk(b.label);d.language=_.fk(b.language);d.originalLanguage=b.originalLanguage||d.language;return d};ok=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};
70
+ nk=function(a,b){a=jk(a);var c=_.fk(b.kind),d=b.id;d||(d=String(_.kk++));d=new _.ek(d,c===_.Qe?ik:a);d.kind=c;d.label=_.fk(b.label);d.language=_.fk(b.language);d.originalLanguage=b.originalLanguage||d.language;return d};ok=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};
71
71
  _.pk=function(a,b){this.track=b;this.id=a;this.originalId=this.drm=this.drmInfo=this.codec=this.od=this.bandwidth=this.height=this.width=null};
72
72
  _.qk=function(a){this.j=a;this.scheme=null;var b=document.createElement("a"),c=a.match(/^(.*:)(\/\/(.*))$/),d=!1;if(c){if(this.scheme=c[1],b.href=c[2],":"===b.protocol||""===b.host&&""===b.pathname)b.href="//dummy.com/"+c[3],d=!0}else{b.href=a;if(":"===b.protocol||""===b.host&&""===b.pathname)b.href="//dummy.com/"+a.match(/\/?\/?(.*)/)[1],d=!0;this.scheme=b.protocol}""===this.scheme&&(this.scheme=window.location.protocol);this.a=d?"":b.hostname;this.port=b.port;this.path=b.pathname;_.S.startsWith(this.path,
73
73
  "/")||(this.path="/"+this.path);this.f=b.search;this.h=b.hash};_.rk=function(a){return a.scheme+"//"+(a.a+(a.port?":"+a.port:"")+a.path+a.h+a.f)};_.sk=function(a,b,c){return a?(c||Object.keys(a).sort()).reduce(function(d,e){if(!(e in a))return d;var f=a[e],g="\x26";""===d&&(g=b?"":"?");d=d+g+encodeURIComponent(e);return d=d+"\x3d"+encodeURIComponent(void 0===f?"":f)},""):""};
@@ -75,33 +75,33 @@ _.tk=function(a){var b={};a=a||"";a=a.substring(a.indexOf("?")+1);a=_.w(a.split(
75
75
  vk=function(a){this.f=a;this.g=new _.K("clpp.native.hls.HlsMetadataParser");this.a=Ci(this.h.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
76
76
  yk=function(a,b,c){var d,e,f,g,h;return _.H(function(l){if(1==l.a)return _.y(l,wk(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.ek("dummy",_.hk);h=f.map(function(m,n){var p=new _.pk("R"+n,g);p.bandwidth=m.bandwidth;p.od=m.od;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});xk(h);return l["return"]({renditions:h,mimeType:e||void 0})})};
77
77
  Ak=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return zk(c)});var b=new Map;a.forEach(function(c){if(c.type&&c.name){var d=c.type+":"+c.name;if(b.has(d))throw Error("#EXT-X-MEDIA:NAME attributes are not unique. It is impossible to map HLS metadata to Safari data structures.");b.set(d,c)}});return b};
78
- zk=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.Ej(0,a);a=b(_.ec);a=null!=a?{AUDIO:_.gk,VIDEO:_.hk,SUBTITLES:_.T}[a]:void 0;return{type:a,groupId:b(_.eb),name:b("NAME"),language:b(_.ub),On:b("AUTOSELECT"),"default":b("DEFAULT"),Yn:b("FORCED"),Dg:b("CHARACTERISTICS"),uri:b(_.gc)}};xk=function(a){var b=new Set;a.forEach(function(c){b.add(c.width+"x"+c.height)});if(b.size<a.length)throw Error("Playlist contains multiple renditions with the same resolution.");};
78
+ zk=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.Ej(0,a);a=b(_.dc);a=null!=a?{AUDIO:_.gk,VIDEO:_.hk,SUBTITLES:_.T}[a]:void 0;return{type:a,groupId:b(_.eb),name:b("NAME"),language:b(_.ub),On:b("AUTOSELECT"),"default":b("DEFAULT"),Yn:b("FORCED"),Dg:b("CHARACTERISTICS"),uri:b(_.fc)}};xk=function(a){var b=new Set;a.forEach(function(c){b.add(c.width+"x"+c.height)});if(b.size<a.length)throw Error("Playlist contains multiple renditions with the same resolution.");};
79
79
  Bk=function(a,b){var c,d;return _.H(function(e){if(1==e.a)return c=_.Jj(b),_.y(e,bk(a.f,c),2);d=e.f;return e["return"](d)})};wk=function(a,b,c){var d,e,f,g;return _.H(function(h){if(1==h.a)return d=Ck(b),e=Dk(b,c),f=d[0]?d[0].codec:null,_.y(h,Ek(a,e,f),2);g=h.f;return h["return"]({mimeType:g,renditions:d})})};Ek=function(a,b,c){var d,e;return _.H(function(f){if(1==f.a)return b&&c?_.y(f,Bk(a,b),2):f["return"](null);d=f.f;e=[Fk(d,b),Gk(d,b)].filter(Boolean);return f["return"](_.Xi(e,_.r,c))})};
80
- Ck=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.Ej(0,b);if(c.getAttribute(_.mc))throw Error("Playlist contains alternative video streams.");var d=_.Zi(c,_.Tb);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.Zi(c,_.na);e=e?Number(e):null;var f=_.Zi(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.Zi(c,_.sa);c=_.Ui(_.r,c?c.split(","):[]);return{bandwidth:e,od:f,codec:c,width:b,height:d,mimeType:null}})};
81
- Dk=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?uk(c,b):null};Fk=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?uk(c,b):null};Gk=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.Zi(_.Ej(0,c),_.gc))?uk(c,b):null:null};
80
+ Ck=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.Ej(0,b);if(c.getAttribute(_.lc))throw Error("Playlist contains alternative video streams.");var d=_.Zi(c,_.Tb);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.Zi(c,_.na);e=e?Number(e):null;var f=_.Zi(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.Zi(c,_.sa);c=_.Ui(_.r,c?c.split(","):[]);return{bandwidth:e,od:f,codec:c,width:b,height:d,mimeType:null}})};
81
+ Dk=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?uk(c,b):null};Fk=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?uk(c,b):null};Gk=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.Zi(_.Ej(0,c),_.fc))?uk(c,b):null:null};
82
82
  _.Ik=function(a,b,c){for(var d=_.w(_.Hk),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.Jk=function(a){a=_.Hk.indexOf(a);0<=a&&_.Hk.splice(a,1)};_.V=function(){};Mk=function(a,b){var c=Kk;Lk.set(a.toLowerCase().split(";")[0]+"-"+c,{priority:c,plugin:b})};_.Qk=function(a,b){for(var c=_.w([Nk,Ok,Pk,Kk]),d=c.next();!d.done;d=c.next())if(d=Lk.get(a.toLowerCase().split(";")[0]+"-"+d.value)){var e=d.plugin(),f=e.isSupported(a,b);e.destroy();if(f)return d.plugin}return null};
83
83
  _.Rk=function(a,b){var c=a;b&&(c+=';codecs\x3d"'+b+'"');return c.replace(/\s/g,"")};_.Sk=function(a){return a.split(";")[0]};_.Tk=function(a){a=a.split(/\s*;\s*/);a.shift();return(a=a.find(function(b){return b.startsWith("codecs\x3d")}))?a.split("\x3d")[1].replace(/^"|"$/g,"").split(/\s*,\s*/).join(","):""};_.Uk=function(a){this.f=a;this.a=null};
84
84
  Vk=function(a,b,c){function d(){e&&a.f()}a.stop();var e=!0,f=null;a.a=function(){c?clearInterval(f):clearTimeout(f);e=!1};f=c?setInterval(d,1E3*b):setTimeout(d,1E3*b);return a};_.Wk=function(a){this.f=a;this.a=null};Xk=function(){};_.Yk=function(){return!!navigator.userAgent.match(/Edge?\//)};_.Vj=function(a){return _.Zk("Tizen"+(a?" "+String(a):""))};_.Wj=function(){return _.Zk("Web0S")};_.al=function(){return _.Wj()&&79===_.$k().major};_.bl=function(){return _.Zk("CrKey")};
85
85
  _.dl=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.Vj()};_.el=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.dl()&&1<navigator.maxTouchPoints};_.fl=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};_.Zk=function(a){return(navigator.userAgent||"").includes(a)};
86
- il=function(){if(gl)return gl;hl||(hl=new _.Wk(function(){gl=null}));(gl=document.querySelector(_.r)||document.querySelector(_.bd))||(gl=document.createElement(_.r));hl.da(1);return gl};kl=function(a,b){try{return parseInt(b,10)}catch(c){jl.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
86
+ il=function(){if(gl)return gl;hl||(hl=new _.Wk(function(){gl=null}));(gl=document.querySelector(_.r)||document.querySelector(_.ad))||(gl=document.createElement(_.r));hl.da(1);return gl};kl=function(a,b){try{return parseInt(b,10)}catch(c){jl.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
87
87
  ll=function(a){var b={major:-1,name:wg};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=kl(a,c[0]));2<=c.length&&(b.minor=kl(a,c[1]));3<=c.length&&(b.patch=kl(a,c[2]));4<=c.length&&(b.build=kl(a,c[3]));return b};ml=function(a,b){if(!a||!b||0===b.length)return!1;for(var c=0;c<b.length;c++)if(0<=a.indexOf(b[c]))return!0;return!1};
88
88
  wl=function(){var a=nl();if(!a)return ol;var b=a.match(/^.+?(?=\))/);if(!b)return ol;b=b[0];if(ml(b,["iphone","ipad"]))return pl;if(ml(b,["android"]))return ql;if(ml(b,["macintosh"]))return rl;if(ml(b,["windows nt"]))return sl;if(ml(b,["tizen"]))return tl;if(ml(b,["web0s"]))return ul;if(ml(b,["linux"]))return vl;jl.warn("Unable to identify OS from user agent: "+a);return ol};
89
- _.$k=function(){var a=nl(),b=["ie","edge","opera","firefox","safari",yd];var c=wl();for(var d=xl[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return ll(c[1]);return ll("")};nl=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
90
- _.Xj=function(){var a=wl();var b=wl();var c=xl[b];if(c){c=nl().match(c.os_version)[1];c=ll(c);if(b===sl)if("5.1"===c.name)c.name="xp";else if("6.1"===c.name)c.name="7";else if("6.2"===c.name||"6.3"===c.name)c.name="8";b=c}else b=ll("");a:{c=nl();var d=["ie","edge","opera","firefox","safari",yd],e=wl();e=xl[e];for(var f=0,g=d.length;f<g;f++)if(e[d[f]]&&c.match(e[d[f]])){c=d[f];break a}c=yl}return{os:a,osVersion:b,browser:c,browserVersion:_.$k()}};
89
+ _.$k=function(){var a=nl(),b=["ie","edge","opera","firefox","safari",xd];var c=wl();for(var d=xl[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return ll(c[1]);return ll("")};nl=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
90
+ _.Xj=function(){var a=wl();var b=wl();var c=xl[b];if(c){c=nl().match(c.os_version)[1];c=ll(c);if(b===sl)if("5.1"===c.name)c.name="xp";else if("6.1"===c.name)c.name="7";else if("6.2"===c.name||"6.3"===c.name)c.name="8";b=c}else b=ll("");a:{c=nl();var d=["ie","edge","opera","firefox","safari",xd],e=wl();e=xl[e];for(var f=0,g=d.length;f<g;f++)if(e[d[f]]&&c.match(e[d[f]])){c=d[f];break a}c=yl}return{os:a,osVersion:b,browser:c,browserVersion:_.$k()}};
91
91
  zl=function(){this.g=new _.K("clpp.native.TrackManager");this.m=null;this.f=new _.Uh;this.h=[];this.B=0;this.o={};this.D=[];this.a=new Map;this.w=null;this.l=new Map;this.A=!0;this.J=this.Sf.bind(this,_.T);this.L=this.Uf.bind(this,_.T);this.K=this.Tf.bind(this,_.T);this.N=this.Sf.bind(this,_.hk);this.V=this.Uf.bind(this,_.hk);this.S=this.Tf.bind(this,_.hk);this.G=this.Sf.bind(this,_.gk);this.I=this.Uf.bind(this,_.gk);this.H=this.Tf.bind(this,_.gk);this.j=null};
92
- Bl=function(a,b){var c,d,e,f,g,h,l,m;return _.H(function(n){if(1==n.a){c=a.m.getConfiguration();d=_.Ik(c,b.mimeType,_.qg);if(!d)return a.g.warn("Track MIME type is not supported",b),n["return"]();e=_.Jj(b.url);return _.y(n,a.m.getNetworkEngine().fetch(e).P,2)}(f=n.f)&&f.data&&(g="External_"+a.B++,a.o[g]=b,h=d.a(_.lj(f.data)),l=URL.createObjectURL(new Blob([h])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.qg},Al(a,m,g));_.A(n)})};Dl=function(a,b,c){return Cl(a)&&b===_.hk&&!!c.enableHlsVideoTrackInfo};
92
+ Bl=function(a,b){var c,d,e,f,g,h,l,m;return _.H(function(n){if(1==n.a){c=a.m.getConfiguration();d=_.Ik(c,b.mimeType,_.pg);if(!d)return a.g.warn("Track MIME type is not supported",b),n["return"]();e=_.Jj(b.url);return _.y(n,a.m.getNetworkEngine().fetch(e).P,2)}(f=n.f)&&f.data&&(g="External_"+a.B++,a.o[g]=b,h=d.a(_.lj(f.data)),l=URL.createObjectURL(new Blob([h])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.pg},Al(a,m,g));_.A(n)})};Dl=function(a,b,c){return Cl(a)&&b===_.hk&&!!c.enableHlsVideoTrackInfo};
93
93
  El=function(a,b,c){return Cl(a)&&(b===_.gk||b===_.T)&&!!c.enableMetadata};Cl=function(a){a=a.m.getLoadedSource();return!(!a||a.type!==_.Fl&&!a.url.endsWith(".m3u8"))&&_.dl()};Gl=function(a,b,c){var d,e;return _.H(function(f){if(1==f.a)return(d=a.m.getLoadedSource())&&a.j?_.y(f,a.j.a(d.url,c),2):f["return"]();e=f.f;e.mimeType&&(b.mimeType=e.mimeType);e.renditions&&0<e.renditions.length&&(b.renditions=e.renditions,b.renditions.forEach(function(g){g.track=b}));_.A(f)})};
94
94
  Hl=function(a,b,c){var d,e,f,g;return _.H(function(h){if(1==h.a)return(d=a.m.getLoadedSource())&&a.j?_.y(h,a.j.a(d.url,c),2):h["return"]();e=h.f;e.dd&&(f=b.type+":"+b.label,(g=e.dd.get(f))&&g.Dg&&(b.accessibility=g.Dg.split(",").map(function(l){return l.trim()}).map(function(l){return{value:l,type:b.type,protocol:"HLS"}})));_.A(h)})};
95
95
  Al=function(a,b,c){if(a.m){var d=a.m.getSurface().getMedia();if(d){var e=document.createElement("track");e.id=c;e.kind=b.kind;e.srclang=b.language;b.label&&(e.label=b.label);_.S.empty(b.url)?e.src=URL.createObjectURL(new Blob([])):e.src=b.url;d.appendChild(e);a.D.push(e)}}};Il=function(a,b){if(!a.m)return null;var c=a.m.getSurface();if(!c)return null;c=c.getMedia();if(!c)return null;switch(b){case _.gk:return c.audioTracks;case _.hk:return c.videoTracks;case _.T:return c.textTracks;default:return null}};
96
- Jl=function(a,b){var c=Il(a,b);c&&(c=Array.from(c),b===_.T&&(c=c.filter(function(d){return d.kind!==_.Re})));return c};Kl=function(a,b){return a.h.filter(function(c){return c.type===b})};Ll=function(a,b){var c=a.a.get(b)||null;return c&&c.renditions[0]};Ml=function(a,b){var c=a.l.get(b);return c&&c.renditions[0]};
97
- Ql=function(a,b,c){var d=Jl(a,b);if(c){if(void 0===a.h.find(function(l){return l.id===c.id}))throw Error("Unknown track with ID "+c.id+" and type "+b);if(c.type!==b)throw Error("Types mismatch for track "+c.type+" and arg "+b);a.g.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.l.set(b,c);var e=!0,f=!1;switch(b){case _.T:var g="mode";e=_.ag;f=_.$d;break;case _.gk:g="enabled";break;case _.hk:g="selected"}if(g){d=_.w(d);for(var h=d.next();!h.done;h=d.next())h=h.value,h[g]=Nl(c,h,c.type)?e:
98
- f}}}else if(a.g.debug(_.Ia+b),a.a.get(b)&&d&&b===_.T){g=_.w(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.$d;a.a.set(b,null)}b===_.gk?a.m.trigger(new _.L(_.Ol)):b===_.T&&a.m.trigger(new _.L(_.Pl))};Rl=function(a){return a.enabled||a.selected||a.mode===_.ag||a.mode===_.xe};
96
+ Jl=function(a,b){var c=Il(a,b);c&&(c=Array.from(c),b===_.T&&(c=c.filter(function(d){return d.kind!==_.Qe})));return c};Kl=function(a,b){return a.h.filter(function(c){return c.type===b})};Ll=function(a,b){var c=a.a.get(b)||null;return c&&c.renditions[0]};Ml=function(a,b){var c=a.l.get(b);return c&&c.renditions[0]};
97
+ Ql=function(a,b,c){var d=Jl(a,b);if(c){if(void 0===a.h.find(function(l){return l.id===c.id}))throw Error("Unknown track with ID "+c.id+" and type "+b);if(c.type!==b)throw Error("Types mismatch for track "+c.type+" and arg "+b);a.g.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.l.set(b,c);var e=!0,f=!1;switch(b){case _.T:var g="mode";e=_.$f;f=_.Zd;break;case _.gk:g="enabled";break;case _.hk:g="selected"}if(g){d=_.w(d);for(var h=d.next();!h.done;h=d.next())h=h.value,h[g]=Nl(c,h,c.type)?e:
98
+ f}}}else if(a.g.debug(_.Ia+b),a.a.get(b)&&d&&b===_.T){g=_.w(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.Zd;a.a.set(b,null)}b===_.gk?a.m.trigger(new _.L(_.Ol)):b===_.T&&a.m.trigger(new _.L(_.Pl))};Rl=function(a){return a.enabled||a.selected||a.mode===_.$f||a.mode===_.we};
99
99
  Sl=function(a,b,c){c=_.ji(c).filter(function(e){return e});a.g.info("Find preferred tracks for",b,c);var d=Kl(a,b);c.some(function(e){var f=_.dj(e);return(e=d.find(function(g){g=_.dj(g.language||"");return _.ej(f,g)}))?(a.g.info("Will select track with id",e.id),Ql(a,b,e),!0):!1})};Tl=function(a){(a=a.m.getTextDisplayer())&&a.remove(0,Infinity)};
100
100
  Nl=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.O.la(a,{kind:_.fk(b.kind),language:_.fk(b.language),label:_.fk(b.label)},["kind","language","label"])};_.Ul=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.Vl=function(){this.yd=new Th(this);this.vd=[]};Xl=function(a){return a.name===Ib&&Wl.some(function(b){return a.message.startsWith(b)})};Yl=function(){};
101
101
  _.am=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.el()&&(a=360);var b=_.Gj();b.maxAttempts=3;a={source:"",license:Zl,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,manifest:{attemptParameters:_.Gj(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0,timeline:{version:1}},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,
102
- restrictions:$l(a),useCmsd:!1},drm:null,enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:_.Ne,preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],preferSpatialAudio:!1,preferForcedSubtitles:!1,volume:null,startTime:null,loop:!1,lowLatencyMode:!1,suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,streaming:{attemptParameters:b,bufferingGoal:10,rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,
102
+ restrictions:$l(a),useCmsd:!1},drm:null,enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:_.Le,preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],preferSpatialAudio:!1,preferForcedSubtitles:!1,volume:null,startTime:null,loop:!1,lowLatencyMode:!1,suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,streaming:{attemptParameters:b,bufferingGoal:10,rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,
103
103
  alwaysStreamText:!1,relativeTextTimestamp:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.1,disableAudioTracks:!1,disableVideoTracks:!1,smallGapLimit:.5,jumpLargeGaps:!0,durationBackoff:1,maxSegmentToMediaOffset:1,forceNativeTS:!1,preferNativeHlsOnSafari:!0,safeSeekOffset:5,stallEnabled:!0,stallThreshold:3,stallSkip:.5,bufferLimitUpdateInterval:.5,overridePasp:!1,enableLiveEdgeChasing:!1,chasingRate:1.15,startChasingAt:5,stopChasingAt:2,chaseJumpDistance:10,patchEdgeWhenMixedContent:!1,ignoreDrift:!1,
104
- disableFragmentSupport:!1,disableMergedFragments:!1,ignoreManagedMediaSourceStreamingHints:!1},mediaSource:{codecSwitchingStrategy:_.Jf},restrictions:$l(),tizen:{sideStreamText:_.Vj(2)},safari:{enableHlsVideoTrackInfo:!1,enableMetadata:!1},trickPlay:{speedUpMode:_.Yd,preferTrickPlayTracks:!0},playlist:{timeline:"basic",content:_.nc,cropTimeline:!1}};if(_.Zk("Edge/")||_.Vj())a.streaming.gapDetectionThreshold=.5;_.Wj()&&(a.streaming.stallEnabled=!1);_.al()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=
104
+ disableFragmentSupport:!1,disableMergedFragments:!1,ignoreManagedMediaSourceStreamingHints:!1},mediaSource:{codecSwitchingStrategy:_.If},restrictions:$l(),tizen:{sideStreamText:_.Vj(2)},safari:{enableHlsVideoTrackInfo:!1,enableMetadata:!1},trickPlay:{speedUpMode:_.Xd,preferTrickPlayTracks:!0},playlist:{timeline:"basic",content:_.mc,cropTimeline:!1}};if(_.Zk("Edge/")||_.Vj())a.streaming.gapDetectionThreshold=.5;_.Wj()&&(a.streaming.stallEnabled=!1);_.al()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=
105
105
  1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.Vj()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=0);a.vr={enable:!1,attachMouseListener:!0,fieldOfView:70,sensitivity:1,invertHorizontalControl:!1,invertVerticalControl:!1};return a};
106
106
  _.cm=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(!b)return _.am();c=[_.am()];var d=!1;b=_.w(b);for(var e=b.next();!e.done;e=b.next())e=e.value,null!==e&&void 0!==e&&(_.O.ca(e)&&(e={source:e}),e.lowLatencyMode&&!d&&(c.push({streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,ignoreDrift:!0,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{lowLatencyMode:!0}}),d=!0),c.push(e),null!=
107
107
  e.suggestedPresentationDelay&&c.push({manifest:{suggestedPresentationDelay:e.suggestedPresentationDelay}}));c=_.O.oa.apply(null,c);_.O.ca(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.O.R(c.volume)&&(!_.O.ra(c.volume)||_.O.isNaN(c.volume)))throw new _.P(_.Q,7,7100,"config.volume is not a number");if(!_.O.R(c.preferredTextLanguage)&&!_.O.ca(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.P(_.Q,7,7100,"config.preferredTextLanguage is not a string or an array");
@@ -111,96 +111,96 @@ if(!_.O.ra(d.bufferingGoal)||_.O.isNaN(d.bufferingGoal))throw new _.P(_.Q,7,7100
111
111
  if(!_.O.ra(d.smallGapLimit)||_.O.isNaN(d.smallGapLimit))throw new _.P(_.Q,7,7100,"config.streaming.smallGapLimit is not a number");if(!_.O.ra(d.durationBackoff)||_.O.isNaN(d.durationBackoff))throw new _.P(_.Q,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.O.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.k)throw new _.P(_.Q,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");bm(c.restrictions);
112
112
  bm(c.abr.restrictions);c.abr.initialRestrictions&&bm(c.abr.initialRestrictions)}return c};$l=function(a){a=void 0===a?Infinity:a;return{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minBandwidth:0,maxBandwidth:Infinity}};
113
113
  bm=function(a){_.O.R(a.maxPixels)&&(a.maxPixels=Infinity);_.O.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.O.R(a.maxHeight)&&(a.maxHeight=Infinity);_.O.R(a.maxWidth)&&(a.maxWidth=Infinity);_.O.R(a.minPixels)&&(a.minPixels=0);_.O.R(a.minBandwidth)&&(a.minBandwidth=0);_.O.R(a.minHeight)&&(a.minHeight=0);_.O.R(a.minWidth)&&(a.minWidth=0);a.minWidth=Number(a.minWidth);a.maxWidth=Number(a.maxWidth);a.minHeight=Number(a.minHeight);a.maxHeight=Number(a.maxHeight);a.minBandwidth=Number(a.minBandwidth);
114
- a.maxBandwidth=Number(a.maxBandwidth);a.minPixels=Number(a.minPixels);a.maxPixels=Number(a.maxPixels);if(Number.isNaN(a.minWidth)||Number.isNaN(a.maxWidth)||Number.isNaN(a.minHeight)||Number.isNaN(a.maxHeight)||Number.isNaN(a.minBandwidth)||Number.isNaN(a.maxBandwidth)||Number.isNaN(a.minPixels)||Number.isNaN(a.maxPixels))throw new _.P(_.Q,7,7100,"Restrictions contain NaN");};dm=function(a){return typeof a===_.Ye&&!Array.isArray(a)&&"source"in a};
115
- _.em=function(a){_.Vl.call(this);this.log=new _.K(a);this.configuration=this.Kc=_.am();this.Z=this.D=null;this.Pd=this.ag=!1;this.rg=new _.K("clpp.video.events");this.xd=null;this.Ae=-1;this.Di=this.Tm.bind(this);this.Yf=new _.ak;this.N=new _.Uh;this.Jc=this.Wc=this.V=null};_.gm=function(a){return _.fm.get(a)||null};_.im=function(a){_.fm.get(a.id())?hm.warn("Component already in use."):_.fm.set(a.id(),a)};jm=function(a){return Array.from(_.fm.values()).find(function(b){return b instanceof a})||null};
114
+ a.maxBandwidth=Number(a.maxBandwidth);a.minPixels=Number(a.minPixels);a.maxPixels=Number(a.maxPixels);if(Number.isNaN(a.minWidth)||Number.isNaN(a.maxWidth)||Number.isNaN(a.minHeight)||Number.isNaN(a.maxHeight)||Number.isNaN(a.minBandwidth)||Number.isNaN(a.maxBandwidth)||Number.isNaN(a.minPixels)||Number.isNaN(a.maxPixels))throw new _.P(_.Q,7,7100,"Restrictions contain NaN");};dm=function(a){return typeof a===_.Xe&&!Array.isArray(a)&&"source"in a};
115
+ _.em=function(a){_.Vl.call(this);this.log=new _.K(a);this.configuration=this.Kc=_.am();this.Z=this.D=null;this.Pd=this.ag=!1;this.rg=new _.K("clpp.video.events");this.xd=null;this.Be=-1;this.Di=this.Tm.bind(this);this.Yf=new _.ak;this.N=new _.Uh;this.Jc=this.Wc=this.V=null};_.gm=function(a){return _.fm.get(a)||null};_.im=function(a){_.fm.get(a.id())?hm.warn("Component already in use."):_.fm.set(a.id(),a)};jm=function(a){return Array.from(_.fm.values()).find(function(b){return b instanceof a})||null};
116
116
  km=function(a){for(var b=_.w(_.fm.values()),c=b.next();!c.done;c=b.next())a(c.value)};lm=function(a){km(function(b){b.o(a)})};mm=function(a){km(function(b){b.h(a)})};nm=function(){km(function(){})};om=function(){km(function(){})};pm=function(a){if(null!==jm(a))return null;a=new a;a.f();_.im(a);hm.info("Installed component:",a.id());return a};qm=function(a){if(a=jm(a))a.a(),_.fm["delete"](a.id()),hm.info("Uninstalled component:",a.id())};rm=function(){this.a=this.f=null;this.g=new _.K("clpp.drm.csl")};
117
117
  sm=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[Xg]=a.f),a.a&&(b.headers[Yg]=a.a))};tm=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[Xg];a.a=b.headers[Yg];var c=b.headers["x-dt-csl-renewal-info"];a.f&&a.g.debug("Loaded tracking token "+a.f);a.a&&a.g.debug("Loaded followup token "+a.a);if(c)return c=JSON.parse(_.S.ba(_.xj(c))),{delay:c.renewalPeriod,Ln:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};
118
- um=function(a){return _.S.startsWith(a,_.Qd)||_.S.startsWith(a,_.Sd)};_.wm=function(a){_.vm[a.J]=a};
118
+ um=function(a){return _.S.startsWith(a,_.Pd)||_.S.startsWith(a,_.Rd)};_.wm=function(a){_.vm[a.J]=a};
119
119
  _.ym=function(a){var b={attemptParameters:_.Gj(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,ignoreUnrecognizedInitData:!0,$a:{}};if(a&&(b.enforceSingleSession=!!a.enforceSingleSession,b.delayLicenseRequestUntilPlayed=!!a.delayLicenseRequestUntilPlayed,b.preferredDrmSystem=a.preferredDrmSystem,b.emeApi=a.emeApi,a.attemptParameters&&(b.attemptParameters=a.attemptParameters),b.enableSessionCacheForSkd=!!a.enableSessionCacheForSkd,void 0!==a.ignoreUnrecognizedInitData&&
120
- (b.ignoreUnrecognizedInitData=!!a.ignoreUnrecognizedInitData),a.env)){var c=_.vm[a.env]||null;if(!c)throw _.Kh(_.za,_.Qb+a.env+_.ba),new _.P(_.Q,6,6015,_.Aa+a.env+"' is missing.");b.$a=_.xm(c,a.customData)||{};_.S.startsWith(a.env.toLowerCase(),me)&&(b.enforceSingleSession=!0)}return b};Am=function(a){a=zm[a];if(!a)return null;var b=_.Xj();return b.os===ql&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.Bm=function(a){this.J=a;this.f={}};
121
- _.xm=function(a,b){var c={},d=b?b.widevineVideoRobustness:void 0,e=b?b.widevineAudioRobustness:void 0,f=b?b.serverCertificate:void 0,g=a.f[_.Ud];g&&(c[_.Ud]={licenseUrl:g.licenseUrl,videoRobustness:Fi(d,g.videoRobustness),audioRobustness:Fi(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:Ei(b?b.widevineDistinctiveIdentifierRequired:void 0,g.distinctiveIdentifierRequired,!1),persistentStateRequired:Ei(b?b.widevinePersistentStateRequired:void 0,g.persistentStateRequired,!1),
122
- serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.kg?Am(f):f});(g=a.f[_.Qd])&&(c[_.Qd]={licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.f[_.Sd])&&(c[_.Sd]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});
120
+ (b.ignoreUnrecognizedInitData=!!a.ignoreUnrecognizedInitData),a.env)){var c=_.vm[a.env]||null;if(!c)throw _.Kh(_.za,_.Qb+a.env+_.ba),new _.P(_.Q,6,6015,_.Aa+a.env+"' is missing.");b.$a=_.xm(c,a.customData)||{};_.S.startsWith(a.env.toLowerCase(),le)&&(b.enforceSingleSession=!0)}return b};Am=function(a){a=zm[a];if(!a)return null;var b=_.Xj();return b.os===ql&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.Bm=function(a){this.J=a;this.f={}};
121
+ _.xm=function(a,b){var c={},d=b?b.widevineVideoRobustness:void 0,e=b?b.widevineAudioRobustness:void 0,f=b?b.serverCertificate:void 0,g=a.f[_.Td];g&&(c[_.Td]={licenseUrl:g.licenseUrl,videoRobustness:Fi(d,g.videoRobustness),audioRobustness:Fi(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:Ei(b?b.widevineDistinctiveIdentifierRequired:void 0,g.distinctiveIdentifierRequired,!1),persistentStateRequired:Ei(b?b.widevinePersistentStateRequired:void 0,g.persistentStateRequired,!1),
122
+ serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.jg?Am(f):f});(g=a.f[_.Pd])&&(c[_.Pd]={licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.f[_.Rd])&&(c[_.Rd]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});
123
123
  return c};_.Cm=function(a,b){b=void 0===b?!1:b;this.f=_.O.ra(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.h=b;this.buffer=this.f.buffer};_.Em=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.lj(a.f.buffer);b=_.lj(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.Dm()}};_.W=function(a,b){try{a.f.setUint32(a.a,b,a.h),a.a+=4}catch(c){_.Dm()}};_.Dm=function(){throw new _.P(_.Q,3,3E3);};_.Fm=function(a,b){this.f=a;this.h=void 0===b?!0:b;this.a=0};_.Gm=function(a){return a.a<a.f.byteLength};
124
124
  _.Im=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.Hm()}};_.Jm=function(a){try{var b=a.f.getUint16(a.a,a.h);a.a+=2;return b}catch(c){_.Hm()}};_.Km=function(a){try{var b=a.f.getUint32(a.a,a.h);a.a+=4;return b}catch(c){_.Hm()}};_.Lm=function(a){try{var b=a.f.getInt32(a.a,a.h);a.a+=4;return b}catch(c){_.Hm()}};
125
125
  _.Mm=function(a){var b=0,c=0;try{!0===a.h?(b=a.f.getUint32(a.a,!0),c=a.f.getUint32(a.a+4,!0)):(c=a.f.getUint32(a.a,!1),b=a.f.getUint32(a.a+4,!1))}catch(d){_.Hm()}if(2097151<c)throw new _.P(_.Q,3,3001);a.a+=8;return c*Math.pow(2,32)+b};Nm=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.Im(a);return c};_.Om=function(a,b){a.a+b>a.f.byteLength&&_.Hm();var c=a.a+a.f.byteOffset;c=a.f.buffer.slice(c,c+b);a.a+=b;return _.lj(c)};
126
- _.Hm=function(){throw new _.P(_.Q,3,3E3,"Buffer read out of bounds.");};_.Pm=function(){this.h=[];this.f=[];this.a=!1;this.g=new _.K("clpp.mp4")};_.Qm=function(a){for(;_.Gm(a.reader)&&!a.parser.a;)a.parser.Ke(a.start+a.headerSize,a.reader,a.partialOkay)};_.Rm=function(a){for(var b=_.Km(a.reader);0<b&&!a.parser.a;--b)a.parser.Ke(a.start+a.headerSize,a.reader,a.partialOkay)};_.Sm=function(a){return function(b){var c=b.reader.Ha()-b.reader.getPosition();a(_.Om(b.reader,c))}};
126
+ _.Hm=function(){throw new _.P(_.Q,3,3E3,"Buffer read out of bounds.");};_.Pm=function(){this.h=[];this.f=[];this.a=!1;this.g=new _.K("clpp.mp4")};_.Qm=function(a){for(;_.Gm(a.reader)&&!a.parser.a;)a.parser.Le(a.start+a.headerSize,a.reader,a.partialOkay)};_.Rm=function(a){for(var b=_.Km(a.reader);0<b&&!a.parser.a;--b)a.parser.Le(a.start+a.headerSize,a.reader,a.partialOkay)};_.Sm=function(a){return function(b){var c=b.reader.Ha()-b.reader.getPosition();a(_.Om(b.reader,c))}};
127
127
  Tm=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.Um=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.Vm=function(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)};Wm=function(){};Xm=function(a){var b="";try{b=_.S.Bd(a)}catch(c){}return b};_.Ym=function(a){a=Xm(a);var b="";a.length&&(b=(new _.qk(a)).a);return b};
128
- Zm=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.S.ba(a)),d=_.xj(c.sinf[0]);(new _.Pm).M(_.dg,_.Qm).M("schi",_.Qm).M("tenc",function(e){e.reader.skip(6);_.Im(e.reader)&&(e.reader.skip(1),b=_.zj(_.Om(e.reader,16)));e.parser.stop()}).parse(d)}catch(e){}return b};
129
- $m=function(a,b,c){if(!c||!c.byteLength)throw new _.P(_.Q,6,6102);var d;typeof b===_.kg?d=_.S.Oe(b,!0):d=b;a=_.S.Oe(Xm(a),!0);b=new _.Cm(12+a.byteLength+d.byteLength+c.byteLength,!0);_.W(b,a.byteLength);_.Em(b,_.lj(a));_.W(b,d.byteLength);_.Em(b,_.lj(d));_.W(b,c.byteLength);_.Em(b,_.lj(c));return _.lj(b.buffer)};_.an=function(a){var b=_.lj(a.body);b=_.wj(b);a.headers[ya]=ad;a.body=_.S.Va("spc\x3d"+b).buffer};
128
+ Zm=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.S.ba(a)),d=_.xj(c.sinf[0]);(new _.Pm).M(_.cg,_.Qm).M("schi",_.Qm).M("tenc",function(e){e.reader.skip(6);_.Im(e.reader)&&(e.reader.skip(1),b=_.zj(_.Om(e.reader,16)));e.parser.stop()}).parse(d)}catch(e){}return b};
129
+ $m=function(a,b,c){if(!c||!c.byteLength)throw new _.P(_.Q,6,6102);var d;typeof b===_.jg?d=_.S.Pe(b,!0):d=b;a=_.S.Pe(Xm(a),!0);b=new _.Cm(12+a.byteLength+d.byteLength+c.byteLength,!0);_.W(b,a.byteLength);_.Em(b,_.lj(a));_.W(b,d.byteLength);_.Em(b,_.lj(d));_.W(b,c.byteLength);_.Em(b,_.lj(c));return _.lj(b.buffer)};_.an=function(a){var b=_.lj(a.body);b=_.wj(b);a.headers[ya]=$c;a.body=_.S.Va("spc\x3d"+b).buffer};
130
130
  _.bn=function(a){try{var b=_.S.ba(a.data)}catch(d){return}b=b.trim();"\x3cckc\x3e"===b.substr(0,5)&&"\x3c/ckc\x3e"===b.substr(-6)&&(b=b.slice(5,-6));try{var c=JSON.parse(b);c.ckc&&(b=c.ckc);c.CkcMessage&&(b=c.CkcMessage);c.License&&(b=c.License)}catch(d){}a.data=tj(_.xj(b))};
131
- gn=function(){var a=cn;if(a===dn)return"https://lic.drmtoday.com";if(a===en)return"https://lic.staging.drmtoday.com";if(a===fn)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};ln=function(a){var b=gn();if(a===_.Ud)return b+hn;if(a===_.Sd)return b+jn;if(a===_.Qd)return b+kn;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
131
+ gn=function(){var a=cn;if(a===dn)return"https://lic.drmtoday.com";if(a===en)return"https://lic.staging.drmtoday.com";if(a===fn)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};ln=function(a){var b=gn();if(a===_.Td)return b+hn;if(a===_.Rd)return b+jn;if(a===_.Pd)return b+kn;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
132
132
  mn=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
133
- _.qn=function(a,b,c){b=Xm(b);c=c&&c.customData?c.customData:{};b=new _.qk(mn(b));var d=_.tk(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.S.Ee(""+a)&&(d.assetId=a,pn.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.S.Ee(""+e)&&(d.variantId=e,pn.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],pn.debug("KeyId found in FPS SKD. Removing other parameters")):
133
+ _.qn=function(a,b,c){b=Xm(b);c=c&&c.customData?c.customData:{};b=new _.qk(mn(b));var d=_.tk(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.S.Fe(""+a)&&(d.assetId=a,pn.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.S.Fe(""+e)&&(d.variantId=e,pn.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],pn.debug("KeyId found in FPS SKD. Removing other parameters")):
134
134
  a=["assetId","variantId"];b.f=_.sk(d,!1,a);"/"!==b.path||b.j.includes(b.a+"/")||(b.path="");b=_.rk(b);return c.fpsContentId=b};_.sn=function(a,b,c,d){d=void 0===d?!0:d;c=a.drm;c&&c.env.startsWith(Ea)?c.customData&&(_.rn(b,a),a=b.uris[0],d&&c.customData.assetId&&(a+="?assetId\x3d"+encodeURI(""+c.customData.assetId),c.customData.variantId&&(a+="\x26variantId\x3d"+encodeURI(""+c.customData.variantId)),b.uris[0]=a)):pn.warn(Bb)};
135
- tn=function(a,b,c){_.sn(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.Gi(b.uris[0]);c.a.add(_.jf,a);b.uris[0]=c.toString()};
136
- _.un=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.sn(a,b,c,!1);b.headers[ya]=ad;c={spc:_.vj(b.body)};if((a=a.drm)&&a.env.startsWith(Fa)&&d){a={};var e=_.tk((new _.qk(mn(d))).f);d=e.keyId;if(e=e.assetId)pn.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(pn.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(pn.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(pn.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
135
+ tn=function(a,b,c){_.sn(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.Gi(b.uris[0]);c.a.add(_.hf,a);b.uris[0]=c.toString()};
136
+ _.un=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.sn(a,b,c,!1);b.headers[ya]=$c;c={spc:_.vj(b.body)};if((a=a.drm)&&a.env.startsWith(Fa)&&d){a={};var e=_.tk((new _.qk(mn(d))).f);d=e.keyId;if(e=e.assetId)pn.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(pn.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(pn.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(pn.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
137
137
  _.S.jd(_.sk(c,!0))};_.vn=function(a,b){pn.debug("Clearing response data");if(200===b.status){var c=_.S.ba(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.xj(c).buffer}};_.wn=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(Ea))pn.warn(Bb);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(Fa)){var d=new _.Gi(b.uris[0]),e=d.Ba;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.Ba=e;b.uris[0]=d.toString()}};
138
138
  _.xn=function(a,b){try{var c=_.lj(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));pn.debug("Widevine License response",d);var e=atob(d.license),f=new Uint8Array(e.length);for(c=0;c<e.length;++c)f[c]=e.charCodeAt(c);b.data=f.buffer}catch(g){pn.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};
139
139
  _.rn=function(a,b){var c=b.drm;if(c&&c.customData){var d={userId:c.customData.userId,sessionId:c.customData.sessionId,merchant:c.customData.merchant};_.O.Jd(d)&&(a.headers["dt-custom-data"]=btoa(JSON.stringify(d)));(c=c.customData.authToken)&&(a.headers["x-dt-auth-token"]=c)}};zn=function(a){var b={},c=a?a[Zg]:void 0;a=yn[a?a[Zg]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};An=function(){};
140
140
  Cn=function(a,b){b=void 0===b?0:b;_.Jh("Registering EME Factory: "+a.a());for(var c={priority:b,Rb:a},d=0;d<Bn.length;++d)if(Bn[d].priority<b){Bn.splice(d,0,c);return}Bn.push(c)};
141
- Dn=function(a){if(a){var b=Bn.find(function(d){return d.Rb.a()===a}).Rb;if(b&&b.isSupported())return _.Jh(tc+b.a()),b.create();_.Jh("Cannot create selected EME manager. Choosing by priority list.")}b=_.w(Bn);for(var c=b.next();!c.done;c=b.next())if(c=c.value.Rb,c.isSupported())return _.Jh(tc+c.a()),c.create();throw Error("Missing EME managers");};_.Fn=function(a,b){var c=_.En(a,b);return 1!==c.length?null:c[0]};
141
+ Dn=function(a){if(a){var b=Bn.find(function(d){return d.Rb.a()===a}).Rb;if(b&&b.isSupported())return _.Jh(sc+b.a()),b.create();_.Jh("Cannot create selected EME manager. Choosing by priority list.")}b=_.w(Bn);for(var c=b.next();!c.done;c=b.next())if(c=c.value.Rb,c.isSupported())return _.Jh(sc+c.a()),c.create();throw Error("Missing EME managers");};_.Fn=function(a,b){var c=_.En(a,b);return 1!==c.length?null:c[0]};
142
142
  _.En=function(a,b){return Array.prototype.filter.call(a.childNodes,function(c){return c instanceof Element&&c.tagName===b})};_.Gn=function(a){return Array.prototype.every.call(a.childNodes,function(b){return b.nodeType===Node.TEXT_NODE||b.nodeType===Node.CDATA_SECTION_NODE})?a.textContent.trim():null};
143
- _.Hn=function(a,b){var c=new DOMParser,d=null,e=null;try{e=c.parseFromString(a,_.rg)}catch(f){}e&&e.documentElement.tagName===b&&(d=e.documentElement);return d&&0<d.getElementsByTagName("parsererror").length?null:d};In=function(a,b,c){this.j=new Uint8Array(a);this.a=b;this.f=c};Jn=function(){In.apply(this,arguments)};_.Ln=function(a){var b=_.yj(a);b=parseInt(b.byteLength,10).toString(16);b=_.yj("12"+b+a);return new Jn(Kn,a,b)};
143
+ _.Hn=function(a,b){var c=new DOMParser,d=null,e=null;try{e=c.parseFromString(a,_.qg)}catch(f){}e&&e.documentElement.tagName===b&&(d=e.documentElement);return d&&0<d.getElementsByTagName("parsererror").length?null:d};In=function(a,b,c){this.j=new Uint8Array(a);this.a=b;this.f=c};Jn=function(){In.apply(this,arguments)};_.Ln=function(a){var b=_.yj(a);b=parseInt(b.byteLength,10).toString(16);b=_.yj("12"+b+a);return new Jn(Kn,a,b)};
144
144
  _.Mn=function(a){function b(u){switch(u){case 0:do if(!_.Gm(d))throw Error("not enough data to skip!");while(_.Im(d)&128);break;case 1:d.skip(8);break;case 2:d.skip(c());break;case 3:for(;4!==(u=c()&7);)b(u);break;case 5:d.skip(4);break;default:throw Error("invalid wire type "+u);}}function c(){for(var u=_.Im(d),v=(u&127)>>>0,z=7;128<=u&&28>=z;)u=_.Im(d),v=(v|(u&(28>z?127:15))<<z)>>>0,z+=7;return 28<z?-1:v}var d=new _.Fm(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.Km(d);var e=_.Km(d);
145
145
  e=_.Um(e);var f=_.Km(d),g=f>>>24;f&=16777215;var h=_.Om(d,16);h=_.zj(h);if(0<g){var l=_.Km(d);d.skip(16*l)}l=_.Km(d);for(var m=[],n=null;_.Gm(d);){var p=c(),q=p&7;p>>>=3;if(2===q){q=c();if(0>q)throw Error("unable to read length of field "+p);q=Nm(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.Kh("Parsed WV PSSH Box","size",a,"name",e,"version",g,"flags",f,"size",l,"systemId",h,"contentId (base64)",n?_.vj(n):"","keyIds",m.map(function(u){return _.zj(u)}));return 0<m.length?_.Ln(_.zj(m[0])):null};
146
146
  _.Nn=function(a,b,c,d,e,f){f=void 0===f?null:f;In.call(this,a,b,d);this.version=e;this.h=c;this.l=f};
147
- _.Sn=function(a){a:{var b=new _.Fm(new DataView(a.buffer),!0);_.Km(b);for(_.Jm(b);_.Gm(b);)if(1===_.Jm(b)){var c=_.Jm(b);b=_.Om(b,c);break a}b=null}b||(b=a);a=_.S.oc(b,!0);c=_.Hn(a,"WRMHEADER");a=c.getAttribute("version");var d=_.Fn(c,"DATA");c=(c=_.Fn(d,"LA_URL"))?_.Gn(c):"";var e;if(e=_.Fn(d,"KID"))if(e=_.Gn(e)){var f=_.Fn(d,qa);e={value:e,lf:f?f.textContent.trim():null}}else e=null;else e=null;d=e?[e]:(e=On(d))?[e]:(d=Pn(d))?d:null;e=d&&d[0]||{};d=e.lf;e=_.xj(void 0===e.value?"":e.value);e=_.Qn(e);
148
- e=_.zj(e);return new _.Nn(_.Rn,e,c,b,a,d)};_.Qn=function(a){var b=[];b.push(a[3]);b.push(a[2]);b.push(a[1]);b.push(a[0]);b.push(a[5]);b.push(a[4]);b.push(a[7]);b.push(a[6]);a=_.lj(a);a.set(b,0);return a};On=function(a){a=_.Fn(a,"PROTECTINFO");if(!a)return null;var b=_.Fn(a,"KID");if(!b)return null;a=b.getAttribute("VALUE");if(!a)return null;var c=b.getAttribute(qa);b=b.getAttribute("ALGID");return{value:a,lf:c,Qi:b}};
149
- Pn=function(a){a=_.Fn(a,"PROTECTINFO");if(!a)return null;a=_.Fn(a,"KIDS");if(!a)return null;var b=_.En(a,"KID");if(!b.length)return null;a=[];b=_.w(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(qa);d=d.getAttribute("ALGID");a.push({value:c,lf:e,Qi:d})}}return a.length?a:null};_.Un=function(a){Tn&&performance.mark(a)};_.Vn=function(a,b,c){Tn&&performance.measure(a,b,c)};
147
+ _.Sn=function(a){a:{var b=new _.Fm(new DataView(a.buffer),!0);_.Km(b);for(_.Jm(b);_.Gm(b);)if(1===_.Jm(b)){var c=_.Jm(b);b=_.Om(b,c);break a}b=null}b||(b=a);a=_.S.oc(b,!0);c=_.Hn(a,"WRMHEADER");a=c.getAttribute("version");var d=_.Fn(c,"DATA");c=(c=_.Fn(d,"LA_URL"))?_.Gn(c):"";var e;if(e=_.Fn(d,"KID"))if(e=_.Gn(e)){var f=_.Fn(d,qa);e={value:e,mf:f?f.textContent.trim():null}}else e=null;else e=null;d=e?[e]:(e=On(d))?[e]:(d=Pn(d))?d:null;e=d&&d[0]||{};d=e.mf;e=_.xj(void 0===e.value?"":e.value);e=_.Qn(e);
148
+ e=_.zj(e);return new _.Nn(_.Rn,e,c,b,a,d)};_.Qn=function(a){var b=[];b.push(a[3]);b.push(a[2]);b.push(a[1]);b.push(a[0]);b.push(a[5]);b.push(a[4]);b.push(a[7]);b.push(a[6]);a=_.lj(a);a.set(b,0);return a};On=function(a){a=_.Fn(a,"PROTECTINFO");if(!a)return null;var b=_.Fn(a,"KID");if(!b)return null;a=b.getAttribute("VALUE");if(!a)return null;var c=b.getAttribute(qa);b=b.getAttribute("ALGID");return{value:a,mf:c,Qi:b}};
149
+ Pn=function(a){a=_.Fn(a,"PROTECTINFO");if(!a)return null;a=_.Fn(a,"KIDS");if(!a)return null;var b=_.En(a,"KID");if(!b.length)return null;a=[];b=_.w(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(qa);d=d.getAttribute("ALGID");a.push({value:c,mf:e,Qi:d})}}return a.length?a:null};_.Un=function(a){Tn&&performance.mark(a)};_.Vn=function(a,b,c){Tn&&performance.measure(a,b,c)};
150
150
  Wn=function(a){this.f=[];this.h=[];this.a=[];8<=a.byteLength&&(new _.Pm).Y("pssh",this.j.bind(this)).parse(a.buffer);0===this.a.length&&_.Fh("No pssh box found!")};
151
151
  _.$n=function(a){var b=this;this.C=a;this.J=new Set;this.B=this.I=this.o=null;this.$=!1;this.a=null;this.K=Xn;this.A=new _.Uh;this.N=new rm;this.f=new Map;this.L=[];this.H=new _.Oj;this.h=null;this.T=function(c){b.w=!0;b.D=!1;b.H.reject(c);a.onError(c)};this.l=new Map;this.fa=new Map;this.aa=new _.Wk(function(){return Yn(b)});this.j=!1;this.Ea=new _.Oj;this.G=!1;this.ea=[];this.Ma=!1;this.V=0;this.g=new _.K("clpp.drm.DrmEngine");this.ja=(new _.Wk(function(){Zn(b)})).lb(1);this.H["catch"](function(){});
152
152
  this.w=this.D=!1;this.S=null};
153
153
  bo=function(a){var b,c,d,e,f;return _.H(function(g){switch(g.a){case 1:a.A.release();a.A=null;a.N.release();a.N=null;a.w=!1;a.D=!1;a.H.reject();a.ja.stop();a.ja=null;a.aa.stop();a.aa=null;b=Array.from(a.f.keys());c=_.w(a.f.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.Tc&&e.Tc.stop();a.f.clear();return _.y(g,Promise.all(b.map(function(h){return Promise.resolve().then(function(){var l;return _.H(function(m){if(1==m.a)return a.g.debug("Closing session",h.sessionId),_.B(m,2),_.y(m,ao(h),4);
154
154
  if(2!=m.a)return _.qh(m,0);l=_.E(m);a.g.warn("Error while closing session",l);_.A(m)})})})),2);case 2:if(!a.B){g.F(3);break}_.B(g,4);return _.y(g,a.o.rd(null),6);case 6:_.qh(g,5);break;case 4:f=_.E(g),a.g.warn("Error while resetting media keys",f);case 5:a.B=null;case 3:a.o=null,a.a=null,a.J.clear(),a.I=null,a.L=[],a.h=null,a.T=null,a.C=null,a.V=0,a.S=null,_.A(g)}})};
155
155
  _.fo=function(a,b,c){c=void 0===c?[]:c;a.K=co;a.L=c;a.G=0<c.length;a.g.debug("Using Persisted Licenses: "+a.G);a.h&&a.h.enableSessionCacheForSkd&&a.g.info("Enabled session cache for SKD license requests");return _.eo(a,b)};
156
- _.eo=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.O.sg(a.h.$a);go(b,d)}var e=ho(a);if(e){var f=_.w(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos=[e]}e=_.w(b);for(d=e.next();!d.done;d=e.next())for(d=_.w(d.value.drmInfos),f=d.next();!f.done;f=d.next())io(f.value,a.h.$a);d=jo(a,b);if(!d.size)return a.$=!0,Promise.resolve();_.Un(de);d=_.qo(a,d);return(c?d:d["catch"](function(){})).then(function(){_.Un(ce);_.Vn("DRM queryMediaKeys_()",de,ce)})};
157
- ro=function(a){var b;return _.H(function(c){switch(c.a){case 1:if(a.o.xe())return c["return"]();if(!a.S){c.F(2);break}return _.y(c,a.S,3);case 3:return c["return"]();case 2:return _.B(c,4),a.S=a.o.rd(a.I),_.y(c,a.S,6);case 6:_.qh(c,0);break;case 4:b=_.E(c);if(a.j)return c["return"]();a.T(new _.P(_.Q,6,6003,b.message,b));_.A(c)}})};
156
+ _.eo=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.O.sg(a.h.$a);go(b,d)}var e=ho(a);if(e){var f=_.w(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos=[e]}e=_.w(b);for(d=e.next();!d.done;d=e.next())for(d=_.w(d.value.drmInfos),f=d.next();!f.done;f=d.next())io(f.value,a.h.$a);d=jo(a,b);if(!d.size)return a.$=!0,Promise.resolve();_.Un(ce);d=_.qo(a,d);return(c?d:d["catch"](function(){})).then(function(){_.Un(be);_.Vn("DRM queryMediaKeys_()",ce,be)})};
157
+ ro=function(a){var b;return _.H(function(c){switch(c.a){case 1:if(a.o.ye())return c["return"]();if(!a.S){c.F(2);break}return _.y(c,a.S,3);case 3:return c["return"]();case 2:return _.B(c,4),a.S=a.o.rd(a.I),_.y(c,a.S,6);case 6:_.qh(c,0);break;case 4:b=_.E(c);if(a.j)return c["return"]();a.T(new _.P(_.Q,6,6003,b.message,b));_.A(c)}})};
158
158
  to=function(a,b){return _.H(function(c){if(1==c.a)return a.g.info("Handle encrypted event for type "+b.initDataType),_.y(c,ro(a),2);if(!b.initData)return c["return"]();_.so(a,b.initDataType,_.lj(b.initData));_.A(c)})};
159
- _.yo=function(a,b){if(!a.I)return _.Vh(a.A,b,[pe,"msneedkey",Vg,"needkey"],function(){a.T(new _.P(_.Q,6,6010))}),Promise.resolve();a.B=b;a.o.pe(b);a.A.one(a.B,_.mf,function(){return uo(a)});a.A.on(a.B,_.Qg,function(e){var f=a.D;a.D=!a.w;!f&&a.D&&(a.g.info("Waiting for DRM license key delivery"),a.C.onEvent(e))});var c=a.a.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.o.qd()!==Vb||a.L.length)d=ro(a);c=Promise.resolve();_.Wj()&&38===_.$k().major||(a.a&&a.a.keySystem!==
160
- _.ff&&!a.a.serverCertificate&&(c=vo(a)),c=c.then(function(){return _.wo(a)}));return Promise.all([d,c]).then(function(){a.j||(_.xo(a),a.A.on(a.B,pe,function(e){return to(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.a&&a.a.keySystem===_.Ud&&1>a.V&&a.a.serverCertificate&&a.a.serverCertificate.length)return a.g.warn("Detected invalid widevine server certificate!. Retrying"),a.T(new _.P(1,6,6004)),a.a.serverCertificate=null,a.V++,_.yo(a,b);1<=a.V&&a.g.info("Could not get valid widevine server certificate. Giving up");
159
+ _.yo=function(a,b){if(!a.I)return _.Vh(a.A,b,[oe,"msneedkey",Vg,"needkey"],function(){a.T(new _.P(_.Q,6,6010))}),Promise.resolve();a.B=b;a.o.pe(b);a.A.one(a.B,_.lf,function(){return uo(a)});a.A.on(a.B,_.Qg,function(e){var f=a.D;a.D=!a.w;!f&&a.D&&(a.g.info("Waiting for DRM license key delivery"),a.C.onEvent(e))});var c=a.a.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.o.qd()!==Vb||a.L.length)d=ro(a);c=Promise.resolve();_.Wj()&&38===_.$k().major||(a.a&&a.a.keySystem!==
160
+ _.ef&&!a.a.serverCertificate&&(c=vo(a)),c=c.then(function(){return _.wo(a)}));return Promise.all([d,c]).then(function(){a.j||(_.xo(a),a.A.on(a.B,oe,function(e){return to(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.a&&a.a.keySystem===_.Td&&1>a.V&&a.a.serverCertificate&&a.a.serverCertificate.length)return a.g.warn("Detected invalid widevine server certificate!. Retrying"),a.T(new _.P(1,6,6004)),a.a.serverCertificate=null,a.V++,_.yo(a,b);1<=a.V&&a.g.info("Could not get valid widevine server certificate. Giving up");
161
161
  throw e;}})};_.wo=function(a){var b,c;return _.H(function(d){if(1==d.a){if(!(a.I&&a.a&&a.a.serverCertificate&&a.a.serverCertificate.length))return d.F(0);_.B(d,3);return _.y(d,a.I.setServerCertificate(a.a.serverCertificate),5)}if(3!=d.a)return b=d.f,void 0===b||b||a.g.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.qh(d,0);c=_.E(d);throw new _.P(_.Q,6,6004,{browserError:c.message});})};
162
- vo=function(a){var b=a.keySystem(),c=a.h.$a[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.C.getConfiguration();return zo(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.Jj([d],a.h.attemptParameters);f.type=3;f.licenseRequestType=wd;g&&f.requestModifiers.push(function(l){return g(e,l)});h&&f.responseModifiers.push(function(l){return h(e,l)});a.g.debug("Fetching certificate");return a.C.vb.fetch(f).P}).then(function(f){a.a.serverCertificate=
162
+ vo=function(a){var b=a.keySystem(),c=a.h.$a[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.C.getConfiguration();return zo(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.Jj([d],a.h.attemptParameters);f.type=3;f.licenseRequestType=vd;g&&f.requestModifiers.push(function(l){return g(e,l)});h&&f.responseModifiers.push(function(l){return h(e,l)});a.g.debug("Fetching certificate");return a.C.vb.fetch(f).P}).then(function(f){a.a.serverCertificate=
163
163
  _.lj(f.data)})["catch"](function(f){var g=f.data.headers;g=Object.assign({message:"Error while fetching certificate!",url:f.data.url,status:f.data.status,response:f.data.response},g?{headers:g}:{},zn(g));throw new _.P(_.Q,6,6100,g,f);})};zo=function(a,b){var c,d;return _.H(function(e){c=a.C.Yc();return c?(d=b&&b.drm&&b.drm.customData)?_.y(e,c(d),0):e["return"]():e["return"]()})};Ao=function(a,b){if(!a)return!1;for(var c=0;c<b.ue.length;c++)if(_.Aj(a,b.ue[c]))return!0;return!1};
164
- _.xo=function(a){for(var b=a.a?a.a.initData||[]:[],c=_.w(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.Vj(2);if(a.h.enforceSingleSession&&!a.keySystem().startsWith(_.Qd)){var f=a.f.values();f=_.w(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.Aj(d.initData,g.initData)?(a.g.info("Skipping Session creation. Existing init data in single session mode!"),e=!1):g.periodId===d.periodId&&(a.g.info("Skipping Session creation. Merging init data for period in single session mode for Key ID "+(d.keyId+
165
- ".")),Ao(d.initData,g)||(g.ue.push(d.initData),d.keyId&&!g.bb.includes(d.keyId)&&g.bb.push(d.keyId),a.l.get(d.keyId)||a.l.set(d.keyId,ig)),e=!1)}!e||a.G&&a.K===co||(_.Bo(a,d.keyId,d.initData)&&(e=!1),e&&(a.g.info("Request new media key session on create"),Co(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.w(a.L);for(d=c.next();!d.done;d=c.next())_.Do(a,d.value);b.length||a.L.length||(a.w||a.g.info(Ba),a.w=!0,a.D=!1,a.H.resolve());return a.H};
166
- _.so=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.G||a.K!==co)){var e=a.keySystem();if(!e.startsWith(_.Qd)&&b===_.ud){var f=new Wn(c);if(1<f.a.length&&(e={"org.w3.clearkey":"1077efecc0b24d02ace33c1e52e2fb4b","com.widevine.alpha":"edef8ba979d64acea3c827dcd51d21ed","com.microsoft.playready":"9a04f07998404286ab92e65be0885f95","com.adobe.primetime":"f239e769efa348509c16a903c6932efb"}[e]))for(var g=0;g<f.f.length;g++)if(e===f.f[g]){c=c.subarray(f.a[g].start,f.a[g].end+1);break}}(a.B.webkitCurrentPlaybackTargetIsWireless||
167
- _.Vj(2)||a.keySystem().startsWith(_.Qd)||!_.Bo(a,d,c,!0))&&Co(a,d,null,b,c)}};
168
- _.Bo=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.w(a.f.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.f.get(f);if(_.Aj(c,g.initData))return b?g.bb.includes(b)?d&&a.g.info("Skipping Session creation. License for init data with Key ID "+(b+" was already requested in Session: '")+(f.sessionId+"'. ")):(g.bb.push(b),a.l.get(b)||a.l.set(b,ig),d&&a.g.info(cc+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.g.info(cc+(f.sessionId+"'")),!0;if(Ao(c,g))return d&&a.g.info("Skipping Session creation. License for init data was already requested [extra]"),
164
+ _.xo=function(a){for(var b=a.a?a.a.initData||[]:[],c=_.w(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.Vj(2);if(a.h.enforceSingleSession&&!a.keySystem().startsWith(_.Pd)){var f=a.f.values();f=_.w(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.Aj(d.initData,g.initData)?(a.g.info("Skipping Session creation. Existing init data in single session mode!"),e=!1):g.periodId===d.periodId&&(a.g.info("Skipping Session creation. Merging init data for period in single session mode for Key ID "+(d.keyId+
165
+ ".")),Ao(d.initData,g)||(g.ue.push(d.initData),d.keyId&&!g.bb.includes(d.keyId)&&g.bb.push(d.keyId),a.l.get(d.keyId)||a.l.set(d.keyId,hg)),e=!1)}!e||a.G&&a.K===co||(_.Bo(a,d.keyId,d.initData)&&(e=!1),e&&(a.g.info("Request new media key session on create"),Co(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.w(a.L);for(d=c.next();!d.done;d=c.next())_.Do(a,d.value);b.length||a.L.length||(a.w||a.g.info(Ba),a.w=!0,a.D=!1,a.H.resolve());return a.H};
166
+ _.so=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.G||a.K!==co)){var e=a.keySystem();if(!e.startsWith(_.Pd)&&b===_.td){var f=new Wn(c);if(1<f.a.length&&(e={"org.w3.clearkey":"1077efecc0b24d02ace33c1e52e2fb4b","com.widevine.alpha":"edef8ba979d64acea3c827dcd51d21ed","com.microsoft.playready":"9a04f07998404286ab92e65be0885f95","com.adobe.primetime":"f239e769efa348509c16a903c6932efb"}[e]))for(var g=0;g<f.f.length;g++)if(e===f.f[g]){c=c.subarray(f.a[g].start,f.a[g].end+1);break}}(a.B.webkitCurrentPlaybackTargetIsWireless||
167
+ _.Vj(2)||a.keySystem().startsWith(_.Pd)||!_.Bo(a,d,c,!0))&&Co(a,d,null,b,c)}};
168
+ _.Bo=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.w(a.f.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.f.get(f);if(_.Aj(c,g.initData))return b?g.bb.includes(b)?d&&a.g.info("Skipping Session creation. License for init data with Key ID "+(b+" was already requested in Session: '")+(f.sessionId+"'. ")):(g.bb.push(b),a.l.get(b)||a.l.set(b,hg),d&&a.g.info(bc+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.g.info(bc+(f.sessionId+"'")),!0;if(Ao(c,g))return d&&a.g.info("Skipping Session creation. License for init data was already requested [extra]"),
169
169
  !0}return!1};Eo=function(a){var b=Infinity;a=a.f.keys();a=_.w(a);for(var c=a.next();!c.done;c=a.next())c=c.value,isNaN(c.expiration)||(b=Math.min(b,c.expiration));return b};
170
- jo=function(a,b){for(var c=new Set,d=_.w(b),e=d.next();!e.done;e=d.next()){var f=_.w(e.value.drmInfos);for(e=f.next();!e.done;e=f.next())e=e.value,io(e,a.h.$a),c.add(e)}f=a.G?_.Sf:_.ef;var g=a.G?[_.kf]:[pg];d=new Map;c=_.w(c);for(e=c.next();!e.done;e=c.next())e=e.value,d.set(e.keySystem,{initDataTypes:[_.ud],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.ef,persistentState:f,sessionTypes:g,label:e.keySystem,drmInfos:[]});c={};f=_.w(b);for(e=f.next();!e.done;c={Se:c.Se,kd:c.kd,cf:c.cf,
171
- ld:c.ld},e=f.next()){e=e.value;g=e.audio;var h=e.video;c.Se=g?_.Fo(g):"";c.kd=null;g&&"ac-3"===g.codecs.toLowerCase()&&_.Vj()&&(c.kd=_.Fo(g,_.oe));c.cf=h?_.Fo(h):"";c.ld=null;h&&"ac-3"===h.codecs.toLowerCase()&&_.Vj()&&(c.ld=_.Fo(h,_.oe));var l={},m=_.w(e.drmInfos);for(e=m.next();!e.done;l={Wa:l.Wa},e=m.next())e=e.value,l.Wa=d.get(e.keySystem),l.Wa.drmInfos.push(e),e.initData&&e.initData.length&&(l.Wa.initDataTypes=_.ch(new Set(e.initData.map(function(n){return n.initDataType}))).concat()),e.distinctiveIdentifierRequired&&
172
- (l.Wa.distinctiveIdentifier=_.Sf),e.persistentStateRequired&&(l.Wa.persistentState=_.Sf),g&&_.ji(e.audioRobustness).forEach(function(n,p){return function(q){var u={robustness:q||"",contentType:n.Se};p.Wa.audioCapabilities.find(function(v){return v.robustness===u.robustness&&v.contentType===u.contentType})||p.Wa.audioCapabilities.push(u);n.kd&&p.Wa.audioCapabilities.push({robustness:q||"",contentType:n.kd})}}(c,l)),h&&_.ji(e.videoRobustness).forEach(function(n,p){return function(q){var u={robustness:q||
173
- "",contentType:n.cf};p.Wa.videoCapabilities.find(function(v){return v.robustness===u.robustness&&v.contentType===u.contentType})||p.Wa.videoCapabilities.push(u);n.ld&&p.Wa.videoCapabilities.push({robustness:q||"",contentType:n.ld})}}(c,l))}return d};_.Fo=function(a,b){var c=_.Rk(a.mimeType,b||a.codecs);if(_.Qk(c,a.type)){var d=a.type,e=_.Qk(c,d);e&&(e=e(),c=e.convertCodecs(d,c),e.destroy())}return c};
174
- _.qo=function(a,b){function c(m,n,p){n.drmInfos.some(function(q){return!!q.licenseServerUri})===m&&(f=f["catch"](function(){if(a.j)return null;if(p===_.Sd){if(_.Yk()&&!a.h.$a[p].useLegacySystem)return n.label=Td,a.o.kc(Td,[n])["catch"](function(){a.g.warn("Unable to create com.microsoft.playready.recommendation. Falling back to com.microsoft.playready.");n.label=_.Sd;Go(n);return a.o.kc(p,[n])});Go(n)}return a.o.kc(p,[n])["catch"](function(q){a:{if(p===_.Ud&&Ho(n)){var u=_.Xj();if(Ho(n)&&u.os===ql&&
175
- u.browser===yd){a.g.warn("requestMediaKeySystemAccess() failed",q);a.g.warn("Will try to recover by removing the robustness attribute of videoCapabilities and audioCapabilities.");Go(n);q=a.o.kc(p,[n]);break a}}throw q;}return q})}))}if(1===b.size&&b.has(""))return Promise.reject(new _.P(_.Q,6,6E3));null===a.o&&(a.o=Dn(a.h.emeApi));for(var d=_.w(b.values()),e=d.next();!e.done;e=d.next())e=e.value,0===e.audioCapabilities.length&&delete e.audioCapabilities,0===e.videoCapabilities.length&&delete e.videoCapabilities;
176
- var f=d=new _.Oj,g=a.h.preferredDrmSystem;if(!g)if(e=_.Xj(),e.os===sl&&10<=e.osVersion.major&&"edge"===e.browser)g=_.Sd;else if("safari"===e.browser)g=_.Qd;else if(e.browser===yd||"firefox"===e.browser)g=_.Ud;g&&(e=b.get(g))&&(c(!0,e,g),c(!1,e,g));e={};for(var h=_.w([!0,!1]),l=h.next();!l.done;e={af:e.af},l=h.next())e.af=l.value,b.forEach(function(m){return function(n,p){p!==g&&c(m.af,n,p)}}(e));f=f["catch"](function(m){throw new _.P(_.Q,6,6001,null,m);});f=f.then(function(m){if(a.j)return null;a.J.clear();
170
+ jo=function(a,b){for(var c=new Set,d=_.w(b),e=d.next();!e.done;e=d.next()){var f=_.w(e.value.drmInfos);for(e=f.next();!e.done;e=f.next())e=e.value,io(e,a.h.$a),c.add(e)}f=a.G?_.Rf:_.df;var g=a.G?[_.jf]:[og];d=new Map;c=_.w(c);for(e=c.next();!e.done;e=c.next())e=e.value,d.set(e.keySystem,{initDataTypes:[_.td],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.df,persistentState:f,sessionTypes:g,label:e.keySystem,drmInfos:[]});c={};f=_.w(b);for(e=f.next();!e.done;c={Te:c.Te,kd:c.kd,df:c.df,
171
+ ld:c.ld},e=f.next()){e=e.value;g=e.audio;var h=e.video;c.Te=g?_.Fo(g):"";c.kd=null;g&&"ac-3"===g.codecs.toLowerCase()&&_.Vj()&&(c.kd=_.Fo(g,_.ne));c.df=h?_.Fo(h):"";c.ld=null;h&&"ac-3"===h.codecs.toLowerCase()&&_.Vj()&&(c.ld=_.Fo(h,_.ne));var l={},m=_.w(e.drmInfos);for(e=m.next();!e.done;l={Wa:l.Wa},e=m.next())e=e.value,l.Wa=d.get(e.keySystem),l.Wa.drmInfos.push(e),e.initData&&e.initData.length&&(l.Wa.initDataTypes=_.ch(new Set(e.initData.map(function(n){return n.initDataType}))).concat()),e.distinctiveIdentifierRequired&&
172
+ (l.Wa.distinctiveIdentifier=_.Rf),e.persistentStateRequired&&(l.Wa.persistentState=_.Rf),g&&_.ji(e.audioRobustness).forEach(function(n,p){return function(q){var u={robustness:q||"",contentType:n.Te};p.Wa.audioCapabilities.find(function(v){return v.robustness===u.robustness&&v.contentType===u.contentType})||p.Wa.audioCapabilities.push(u);n.kd&&p.Wa.audioCapabilities.push({robustness:q||"",contentType:n.kd})}}(c,l)),h&&_.ji(e.videoRobustness).forEach(function(n,p){return function(q){var u={robustness:q||
173
+ "",contentType:n.df};p.Wa.videoCapabilities.find(function(v){return v.robustness===u.robustness&&v.contentType===u.contentType})||p.Wa.videoCapabilities.push(u);n.ld&&p.Wa.videoCapabilities.push({robustness:q||"",contentType:n.ld})}}(c,l))}return d};_.Fo=function(a,b){var c=_.Rk(a.mimeType,b||a.codecs);if(_.Qk(c,a.type)){var d=a.type,e=_.Qk(c,d);e&&(e=e(),c=e.convertCodecs(d,c),e.destroy())}return c};
174
+ _.qo=function(a,b){function c(m,n,p){n.drmInfos.some(function(q){return!!q.licenseServerUri})===m&&(f=f["catch"](function(){if(a.j)return null;if(p===_.Rd){if(_.Yk()&&!a.h.$a[p].useLegacySystem)return n.label=Sd,a.o.kc(Sd,[n])["catch"](function(){a.g.warn("Unable to create com.microsoft.playready.recommendation. Falling back to com.microsoft.playready.");n.label=_.Rd;Go(n);return a.o.kc(p,[n])});Go(n)}return a.o.kc(p,[n])["catch"](function(q){a:{if(p===_.Td&&Ho(n)){var u=_.Xj();if(Ho(n)&&u.os===ql&&
175
+ u.browser===xd){a.g.warn("requestMediaKeySystemAccess() failed",q);a.g.warn("Will try to recover by removing the robustness attribute of videoCapabilities and audioCapabilities.");Go(n);q=a.o.kc(p,[n]);break a}}throw q;}return q})}))}if(1===b.size&&b.has(""))return Promise.reject(new _.P(_.Q,6,6E3));null===a.o&&(a.o=Dn(a.h.emeApi));for(var d=_.w(b.values()),e=d.next();!e.done;e=d.next())e=e.value,0===e.audioCapabilities.length&&delete e.audioCapabilities,0===e.videoCapabilities.length&&delete e.videoCapabilities;
176
+ var f=d=new _.Oj,g=a.h.preferredDrmSystem;if(!g)if(e=_.Xj(),e.os===sl&&10<=e.osVersion.major&&"edge"===e.browser)g=_.Rd;else if("safari"===e.browser)g=_.Pd;else if(e.browser===xd||"firefox"===e.browser)g=_.Td;g&&(e=b.get(g))&&(c(!0,e,g),c(!1,e,g));e={};for(var h=_.w([!0,!1]),l=h.next();!l.done;e={bf:e.bf},l=h.next())e.bf=l.value,b.forEach(function(m){return function(n,p){p!==g&&c(m.bf,n,p)}}(e));f=f["catch"](function(m){throw new _.P(_.Q,6,6001,null,m);});f=f.then(function(m){if(a.j)return null;a.J.clear();
177
177
  var n=m.getConfiguration();a.g.info("Got MediaKeySystemAccess with configuration",n);var p=n.videoCapabilities||[],q=_.w(n.audioCapabilities||[]);for(n=q.next();!n.done;n=q.next())a.J.add(n.value.contentType.toLowerCase());p=_.w(p);for(n=p.next();!n.done;n=p.next())a.J.add(n.value.contentType.toLowerCase());p=m.keySystem;n=b.get(_.Io(m.keySystem));q=[];var u=[],v=[],z=[];Jo(n.drmInfos,q,u,v,z);1<u.length&&_.Fh("Multiple unique server certificates found! Only the first will be used.");1<q.length&&
178
- _.Fh("Multiple unique license server URIs found! Only the first will be used.");a.a={keySystem:p,licenseServerUri:q[0],distinctiveIdentifierRequired:n.distinctiveIdentifier===_.Sf,persistentStateRequired:n.persistentState===_.Sf,audioRobustness:n.audioCapabilities?n.audioCapabilities[0].robustness:"",videoRobustness:n.videoCapabilities?n.videoCapabilities[0].robustness:"",serverCertificate:u[0],initData:v,keyIds:z,periodId:null};if(!a.a.licenseServerUri)throw new _.P(_.Q,6,6012,a.a.keySystem);return m.createMediaKeys()}).then(function(m){a.j||
178
+ _.Fh("Multiple unique license server URIs found! Only the first will be used.");a.a={keySystem:p,licenseServerUri:q[0],distinctiveIdentifierRequired:n.distinctiveIdentifier===_.Rf,persistentStateRequired:n.persistentState===_.Rf,audioRobustness:n.audioCapabilities?n.audioCapabilities[0].robustness:"",videoRobustness:n.videoCapabilities?n.videoCapabilities[0].robustness:"",serverCertificate:u[0],initData:v,keyIds:z,periodId:null};if(!a.a.licenseServerUri)throw new _.P(_.Q,6,6012,a.a.keySystem);return m.createMediaKeys()}).then(function(m){a.j||
179
179
  (a.g.info("Created MediaKeys for key system",a.a.keySystem),a.I=m,a.$=!0)})["catch"](function(m){if(!a.j){a.a=null;a.J.clear();if(m instanceof _.P)throw m;throw new _.P(_.Q,6,6002,{browserError:m.message});}});d.reject();return f};
180
- ho=function(a){a=_.O.sg(a.h.$a[_.ff]||{});if(0===a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.yj(f),h=_.yj(e);g={kty:"oct",kid:_.wj(g,!1),k:_.wj(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.S.Va(d),initDataType:"keyids"}];return{keySystem:_.ff,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
180
+ ho=function(a){a=_.O.sg(a.h.$a[_.ef]||{});if(0===a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.yj(f),h=_.yj(e);g={kty:"oct",kid:_.wj(g,!1),k:_.wj(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.S.Va(d),initDataType:"keyids"}];return{keySystem:_.ef,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
181
181
  initData:d,keyIds:[],periodId:null}};
182
- _.Do=function(a,b){try{a.g.debug("Attempting to load an offline session",b);var c=a.I.createSession(_.kf)}catch(f){var d=new _.P(_.Q,6,6005,{browserError:f.message});a.T(d);return Promise.reject(d)}a.A.on(c,_.Qe,a.$h.bind(a));a.A.on(c,Ce,a.Vh.bind(a));var e={initData:null,loaded:!1,Lf:Infinity,xb:null,Ka:new _.Oj,periodId:null,ue:[],keyId:null,bb:[],initDataType:null,mc:null,sessionContext:{ldlDelay:0,customData:{}}};e.Ka["catch"](function(){});a.f.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.g.debug("Loaded offline session",
183
- b,f);if(!f)return a.f["delete"](c),a.T(new _.P(_.Q,6,6013)),null;e.loaded=!0;Ko(a)&&(a.w||a.g.info(Ba),a.w=!0,a.D=!1,a.H.resolve());return c},function(f){a.j||(a.f["delete"](c),a.T(new _.P(_.Q,6,6005,{browserError:f.message})))})};Lo=function(a,b,c,d){if(!b&&c!==_.dg)return!1;d=b||Zm(d);a=_.w(a.f.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||b&&e.bb.includes(b)||c===_.dg&&(e.keyId||Zm(e.initData))===d)return!0;return!1};
182
+ _.Do=function(a,b){try{a.g.debug("Attempting to load an offline session",b);var c=a.I.createSession(_.jf)}catch(f){var d=new _.P(_.Q,6,6005,{browserError:f.message});a.T(d);return Promise.reject(d)}a.A.on(c,_.Pe,a.$h.bind(a));a.A.on(c,Be,a.Vh.bind(a));var e={initData:null,loaded:!1,Lf:Infinity,xb:null,Ka:new _.Oj,periodId:null,ue:[],keyId:null,bb:[],initDataType:null,mc:null,sessionContext:{ldlDelay:0,customData:{}}};e.Ka["catch"](function(){});a.f.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.g.debug("Loaded offline session",
183
+ b,f);if(!f)return a.f["delete"](c),a.T(new _.P(_.Q,6,6013)),null;e.loaded=!0;Ko(a)&&(a.w||a.g.info(Ba),a.w=!0,a.D=!1,a.H.resolve());return c},function(f){a.j||(a.f["delete"](c),a.T(new _.P(_.Q,6,6005,{browserError:f.message})))})};Lo=function(a,b,c,d){if(!b&&c!==_.cg)return!1;d=b||Zm(d);a=_.w(a.f.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||b&&e.bb.includes(b)||c===_.cg&&(e.keyId||Zm(e.initData))===d)return!0;return!1};
184
184
  Co=function(a,b,c,d,e,f,g){f=void 0===f?null:f;g=void 0===g?!1:g;var h,l,m,n,p,q,u,v,z,C,I,F,D,G,M,N,U,oa,Ca,ab,bb;_.H(function(Qa){switch(Qa.a){case 1:if(!e.length)return a.g.warn("Empty init data"),Qa["return"]();h=b;if(!h)try{h=Mo(a,d,e,f)}catch(Da){if(a.g.warn("Ignoring unrecognized init data. This may be caused by unsupported or malformed init data. Set `drm.ignoreUnrecognizedInitData \x3d false` if you want to override this behavior and use the init data after all.",{error:Da,initDataType:d,
185
185
  initData:e}),a.h.ignoreUnrecognizedInitData)return Qa["return"]()}if(g){Qa.F(2);break}if(!Lo(a,h,d,e)){Qa.F(2);break}l=!0;if("skd"!==d||a.h.enableSessionCacheForSkd){Qa.F(4);break}m=_.w(a.f.keys());n=m.next();case 5:if(n.done){Qa.F(4);break}p=n.value;q=a.f.get(p);if(!h||q.keyId!==h){Qa.F(6);break}a.g.warn("Close and re-open session for "+h);_.B(Qa,9);return _.y(Qa,p.close(),11);case 11:_.qh(Qa,10);break;case 9:u=_.E(Qa),a.g.warn("Unable to close session",u);case 10:l=!1;case 6:n=m.next();Qa.F(5);
186
- break;case 4:if(l)return a.g.warn("Skip creating a new session for "+h),Qa["return"]();case 2:try{z=a.G?_.kf:pg,v=a.I.createSession(z),a.g.info("Created new "+z+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(Da){return a.T(new _.P(_.Q,6,6005,{browserError:Da.message})),Qa["return"]()}a.A.on(v,_.Qe,a.$h.bind(a));a.A.on(v,Ce,a.Vh.bind(a));C={mc:f,ue:[],initData:e,initDataType:d,keyId:h,bb:h?[h]:[],loaded:!1,Lf:Infinity,periodId:c,xb:null,Ka:new _.Oj,sessionContext:{ldlDelay:0,customData:{}}};
187
- C.Ka["catch"](function(){});f&&(I=a.f.get(f),C.sessionContext=I.sessionContext);a.f.set(v,C);h&&!a.l.get(h)&&a.l.set(h,ig);if(e)for(F=0;F<a.a.initData.length;F++)D=a.a.initData[F],D.keyId&&!C.bb.includes(D.keyId)&&_.Aj(D.initData,e)&&(C.keyId||(C.keyId=D.keyId),C.bb.push(D.keyId),a.l.get(D.keyId)||a.l.set(D.keyId,ig));G=_.O;M=G.ub;N=a.C.getConfiguration();U=a.keySystem();oa=a.h.$a[U];ab=(Ca=oa.modifiers)&&Ca.transformInitData;M(ab)||(ab=No);try{e=ab({playerConfig:N,initData:e,initDataType:d,drmInfo:a.a,
186
+ break;case 4:if(l)return a.g.warn("Skip creating a new session for "+h),Qa["return"]();case 2:try{z=a.G?_.jf:og,v=a.I.createSession(z),a.g.info("Created new "+z+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(Da){return a.T(new _.P(_.Q,6,6005,{browserError:Da.message})),Qa["return"]()}a.A.on(v,_.Pe,a.$h.bind(a));a.A.on(v,Be,a.Vh.bind(a));C={mc:f,ue:[],initData:e,initDataType:d,keyId:h,bb:h?[h]:[],loaded:!1,Lf:Infinity,periodId:c,xb:null,Ka:new _.Oj,sessionContext:{ldlDelay:0,customData:{}}};
187
+ C.Ka["catch"](function(){});f&&(I=a.f.get(f),C.sessionContext=I.sessionContext);a.f.set(v,C);h&&!a.l.get(h)&&a.l.set(h,hg);if(e)for(F=0;F<a.a.initData.length;F++)D=a.a.initData[F],D.keyId&&!C.bb.includes(D.keyId)&&_.Aj(D.initData,e)&&(C.keyId||(C.keyId=D.keyId),C.bb.push(D.keyId),a.l.get(D.keyId)||a.l.set(D.keyId,hg));G=_.O;M=G.ub;N=a.C.getConfiguration();U=a.keySystem();oa=a.h.$a[U];ab=(Ca=oa.modifiers)&&Ca.transformInitData;M(ab)||(ab=No);try{e=ab({playerConfig:N,initData:e,initDataType:d,drmInfo:a.a,
188
188
  drmSystemConfig:oa,sessionContext:C.sessionContext,emeApi:a.o.qd()})}catch(Da){return bb=Da,Da instanceof _.P||(bb=new _.P(_.Q,6,6016,Da)),C.Ka&&C.Ka.reject(Da),a.T(bb),Qa["return"]()}a.g.info("Generate License Request for key ID: '"+h+"'");v.generateRequest(d,e.buffer)["catch"](function(Da){if(!a.j){var fb=null;Da.errorCode&&Da.errorCode.systemCode&&(fb=Da.errorCode.systemCode,0>fb&&(fb+=Math.pow(2,32)),fb="0x"+fb.toString(16));a.T(new _.P(_.Q,6,6006,{browserError:Da.message,error:Da,extended:fb},
189
189
  Da))}});_.A(Qa)}})};
190
- Mo=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{var e=d;e=void 0===e?null:e;var f=a.keySystem(),g=a.h.$a[f];f=a.C.getConfiguration();g=g&&g.modifiers&&g.modifiers.extractContentId;_.O.ub(g)||(g=Oo);try{var h={ldlDelay:0,customData:{}};e&&(h=a.f.get(e).sessionContext);var l=g(f,c,h);a.g.debug("Extracted Content ID '"+l+"' from SKD");var m=l;break a}catch(F){a.g.warn("Unable to extract Content ID from SKD",F)}m=""}return m}if(b===_.dg)return Zm(c)||"";if(b===_.ud){m=a.keySystem();try{if(m.match(/^com\.widevine\.alpha/)){var n=
190
+ Mo=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{var e=d;e=void 0===e?null:e;var f=a.keySystem(),g=a.h.$a[f];f=a.C.getConfiguration();g=g&&g.modifiers&&g.modifiers.extractContentId;_.O.ub(g)||(g=Oo);try{var h={ldlDelay:0,customData:{}};e&&(h=a.f.get(e).sessionContext);var l=g(f,c,h);a.g.debug("Extracted Content ID '"+l+"' from SKD");var m=l;break a}catch(F){a.g.warn("Unable to extract Content ID from SKD",F)}m=""}return m}if(b===_.cg)return Zm(c)||"";if(b===_.td){m=a.keySystem();try{if(m.match(/^com\.widevine\.alpha/)){var n=
191
191
  _.Mn(c);if(n)return n.a}else if(Po(m)){e=new _.Fm(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);f=_.Km(e);var p=_.Km(e);g=_.Um(p);var q=_.Km(e);c=q>>>24;l=q&16777215;h=_.Om(e,16);var u=_.zj(h);if(0<c){var v=_.Km(e);e.skip(16*v)}var z=_.Km(e),C=_.Om(e,z),I=_.Sn(C);_.Kh("Parsed PR PSSH Box","size",f,"name",g,"version",c,"flags",l,"size",z,"systemId",u,"keyId",I.a);if(I)return I.a}}catch(F){throw a.g.warn("Unable to extract Key ID from PSSH data.",{error:F,keySystem:m}),F;}}return""};
192
192
  Oo=function(a,b){var c=_.Ym(b);_.Kh("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
193
193
  No=function(a){var b=a.playerConfig,c=a.initData,d=a.drmInfo,e=a.drmSystemConfig,f=a.sessionContext,g=a.emeApi;if("skd"===a.initDataType&&"APPLE"===g){a=_.O.ub;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=Oo);a="";try{a=e(b,c,f)}catch(h){throw new _.P(_.Q,6,6103);}if(!a.length)throw new _.P(_.Q,6,6101,"Content ID is an empty string");c=$m(c,a,d)}return c};
194
194
  To=function(a,b){var c=b.target,d=a.f.get(c),e=a.keySystem(),f=!1;e.match(/^com\.widevine\.alpha/)&&b.message&&2===b.message.byteLength?(f=!0,a.g.info("WV Server certificate request for SID:'"+(c.sessionId+" from msg '")+(b.messageType+"'"))):a.g.info("License request for SID:'"+(c.sessionId+"'/KID:'"+d.keyId+"' from msg '")+(b.messageType+"'"));var g=a.a.licenseServerUri;e=a.h.$a[e];"individualization-request"===b.messageType&&e&&e.individualizationServer&&(g=e.individualizationServer);var h=_.Jj([g],
195
- a.h.attemptParameters);h.type=3;h.body=b.message;h.method="POST";h.licenseRequestType=b.messageType===Fe&&d.mc?Ee:f?wd:b.messageType;h.sessionId=c.sessionId;if(h.licenseRequestType===Ee)a.C.onEvent(new _.L(je));Po(a.a.keySystem)&&Qo(a,h);sm(a.N,h);var l=Math.floor(b.timeStamp),m=Date.now();return Ro(a,h,d.sessionContext).then(function(){_.Un(be+l+ha);a.g.debug("Sending DRM license request to",g,h);return a.C.vb.fetch(h).P}).then(function(n){_.Un(be+l+".end");_.Vn(be+l,be+l+ha,be+l+".end");if(a.j)return Promise.reject();
196
- var p=Date.now()-m,q=So(a,n),u="";q&&(u=" RID:"+q);q=n&&n.data?n.data.byteLength:-1;f?a.g.info("WV Server certificate response for SID:'"+(c.sessionId+"' ")+(q+" bytes in ")+(p+"ms"+u)):a.g.info("License response for SID:'"+(c.sessionId+"'/KID:'")+(d.keyId+"' ")+(q+" bytes in ")+(p+"ms"+u));var v=tm(a.N,n);_.Un(he+l+ha);return c.update(n.data).then(function(){_.Un(he+l+".end");_.Vn(he+l,he+l+ha,he+l+".end");if(!f){var z=Eo(a),C=v?Date.now()+1E3*v.delay:Number.NaN;z=new _.L(_.le,{keySystem:a.keySystem(),
195
+ a.h.attemptParameters);h.type=3;h.body=b.message;h.method="POST";h.licenseRequestType=b.messageType===Ee&&d.mc?De:f?vd:b.messageType;h.sessionId=c.sessionId;if(h.licenseRequestType===De)a.C.onEvent(new _.L(ie));Po(a.a.keySystem)&&Qo(a,h);sm(a.N,h);var l=Math.floor(b.timeStamp),m=Date.now();return Ro(a,h,d.sessionContext).then(function(){_.Un(ae+l+ha);a.g.debug("Sending DRM license request to",g,h);return a.C.vb.fetch(h).P}).then(function(n){_.Un(ae+l+".end");_.Vn(ae+l,ae+l+ha,ae+l+".end");if(a.j)return Promise.reject();
196
+ var p=Date.now()-m,q=So(a,n),u="";q&&(u=" RID:"+q);q=n&&n.data?n.data.byteLength:-1;f?a.g.info("WV Server certificate response for SID:'"+(c.sessionId+"' ")+(q+" bytes in ")+(p+"ms"+u)):a.g.info("License response for SID:'"+(c.sessionId+"'/KID:'")+(d.keyId+"' ")+(q+" bytes in ")+(p+"ms"+u));var v=tm(a.N,n);_.Un(ge+l+ha);return c.update(n.data).then(function(){_.Un(ge+l+".end");_.Vn(ge+l,ge+l+ha,ge+l+".end");if(!f){var z=Eo(a),C=v?Date.now()+1E3*v.delay:Number.NaN;z=new _.L(_.ke,{keySystem:a.keySystem(),
197
197
  expirationTime:z,expectedRenewalTime:C});a.C.onEvent(z);d&&(d.xb&&d.xb.resolve(),d.mc&&(z=d.mc,a.g.info("Closing expired session '"+z.sessionId+"'"),ao(z)["catch"](function(){a.g.warn("Unable to close expired session in time")}),(z=a.f.get(d.mc))&&z.Tc&&z.Tc.stop(),a.f["delete"](d.mc),d.mc=null),(new _.Wk(function(){a.j||(d.loaded=!0,d.Ka&&d.Ka.resolve(),Ko(a)&&(a.w||a.g.info(Ba),a.w=!0,a.D=!1,a.H.resolve()))})).da(5),null!==d.initData&&(0<d.sessionContext.ldlDelay||v&&um(a.keySystem()))&&(z=new _.Wk(function(){!a.j&&
198
- a.N&&(a.g.info("Updating CSL Sessions"),Po(a.keySystem())?Co(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):a.keySystem().startsWith(_.Qd)&&c.update(_.S.Va("renew")))}),d.Tc=z,z.da(v?v.delay:d.sessionContext.ldlDelay)))}})},function(n){var p,q,u,v;return _.H(function(z){if(a.j)return z["return"]();p=n.data.headers;q=zn(p);u=Object.assign({message:_.$a,url:n.data.url,status:n.data.status,response:n.data.response},p?{headers:p}:{},q);v=new _.P(_.Q,6,6007,u,n);a.T(v);d&&d.xb&&d.xb.reject(v);d&&
198
+ a.N&&(a.g.info("Updating CSL Sessions"),Po(a.keySystem())?Co(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):a.keySystem().startsWith(_.Pd)&&c.update(_.S.Va("renew")))}),d.Tc=z,z.da(v?v.delay:d.sessionContext.ldlDelay)))}})},function(n){var p,q,u,v;return _.H(function(z){if(a.j)return z["return"]();p=n.data.headers;q=zn(p);u=Object.assign({message:_.$a,url:n.data.url,status:n.data.status,response:n.data.response},p?{headers:p}:{},q);v=new _.P(_.Q,6,6007,u,n);a.T(v);d&&d.xb&&d.xb.reject(v);d&&
199
199
  d.Ka&&d.Ka.reject(v);_.A(z)})})["catch"](function(n){a.j||(n===Zb?a.g.info("Ignore update for closed sessions"):(n=new _.P(_.Q,6,6008,{browserError:n.message}),a.T(n),d&&d.xb&&d.xb.reject(n),d&&d.Ka&&d.Ka.reject(n)))})};So=function(a,b){if(!b||!b.headers)return"";var c=b.headers["x-dt-li"];if(c)try{return JSON.parse(_.S.ba(_.xj(c))).ti}catch(d){a.g.warn("Unable to parse DRMtoday Request ID",d)}return""};
200
200
  Qo=function(a,b){var c=_.S.oc(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.g.debug("Unwrapping PlayReady request.");c=(new DOMParser).parseFromString(c,"application/xml");for(var d=c.getElementsByTagName("HttpHeader"),e=0;e<d.length;++e)b.headers[d[e].querySelector("name").textContent]=d[e].querySelector(_.Fg).textContent;b.body=_.xj(c.querySelector("Challenge").textContent).buffer}else a.g.debug("PlayReady request is already unwrapped."),b.headers[ya]="text/xml; charset\x3dutf-8"};
201
- Ro=function(a,b,c){var d,e,f,g,h,l;return _.H(function(m){if(1==m.a)return d=a.C.getConfiguration(),_.y(m,zo(a,d),2);e=a.keySystem();h=(g=(f=a.h.$a[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;h?b.requestModifiers.push(function(n){return h(d,n,c)}):e.startsWith(_.Qd)&&b.requestModifiers.push(function(n){return _.an(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Qd)&&b.responseModifiers.push(function(n){return _.bn(n)});_.A(m)})};
202
- Yn=function(a){var b=a.l,c=a.fa;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"===d})&&a.T(new _.P(_.Q,6,6014));a.C.Qf(_.O.tg(c));a.w||a.g.info(Ba);a.w=!0;a.D=!1};uo=function(a){var b;return _.H(function(c){if(1==c.a)return _.Un(ge),b=a.ea.map(function(d){return To(a,d)}),a.Ma=!0,a.ea=[],_.y(c,Promise.all(b),2);_.Un(ee);_.Vn("drm.onPlay",ge,ee);_.A(c)})};Po=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};
203
- _.Io=function(a){return Po(a)?_.Sd:a};_.Vo=function(a,b){return a.length&&b.length?0<_.Uo(a,b).length:!0};
201
+ Ro=function(a,b,c){var d,e,f,g,h,l;return _.H(function(m){if(1==m.a)return d=a.C.getConfiguration(),_.y(m,zo(a,d),2);e=a.keySystem();h=(g=(f=a.h.$a[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;h?b.requestModifiers.push(function(n){return h(d,n,c)}):e.startsWith(_.Pd)&&b.requestModifiers.push(function(n){return _.an(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Pd)&&b.responseModifiers.push(function(n){return _.bn(n)});_.A(m)})};
202
+ Yn=function(a){var b=a.l,c=a.fa;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"===d})&&a.T(new _.P(_.Q,6,6014));a.C.Qf(_.O.tg(c));a.w||a.g.info(Ba);a.w=!0;a.D=!1};uo=function(a){var b;return _.H(function(c){if(1==c.a)return _.Un(ee),b=a.ea.map(function(d){return To(a,d)}),a.Ma=!0,a.ea=[],_.y(c,Promise.all(b),2);_.Un(de);_.Vn("drm.onPlay",ee,de);_.A(c)})};Po=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};
203
+ _.Io=function(a){return Po(a)?_.Rd:a};_.Vo=function(a,b){return a.length&&b.length?0<_.Uo(a,b).length:!0};
204
204
  _.Uo=function(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=0;d<a.length;d++)for(var e={},f=0;f<b.length;e={md:e.md},f++)if(a[d].keySystem===b[f].keySystem&&a[d].periodId===b[f].periodId){var g=a[d];f=b[f];var h=[];h=h.concat(g.initData||[]);h=h.concat(f.initData||[]);e.md=_.ch(g.keyIds||[]).concat();f.keyIds&&f.keyIds.length&&f.keyIds.forEach(function(l){return function(m){l.md.includes(m)||l.md.push(m)}}(e));c.push({keySystem:g.keySystem,licenseServerUri:g.licenseServerUri||f.licenseServerUri,
205
205
  distinctiveIdentifierRequired:g.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:g.persistentStateRequired||f.persistentStateRequired,videoRobustness:g.videoRobustness||f.videoRobustness,audioRobustness:g.audioRobustness||f.audioRobustness,serverCertificate:g.serverCertificate||f.serverCertificate,initData:h,keyIds:e.md,periodId:g.periodId});break}return c};
206
206
  Zn=function(a){a.f.forEach(function(b,c){var d=b.Lf,e=c.expiration;isNaN(e)&&(e=Infinity);e!==d&&(a.C.Pf(c.sessionId,e),b.Lf=e)})};Ko=function(a){a=a.f.values();return _.ij(a,function(b){return b.loaded})};
@@ -208,183 +208,186 @@ go=function(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseSer
208
208
  Ho=function(a){return(a.audioCapabilities||[]).some(Wo)||(a.videoCapabilities||[]).some(Wo)};Wo=function(a){return null!=a.robustness&&""!==a.robustness};
209
209
  Jo=function(a,b,c,d,e){var f={};a=_.w(a);for(var g=a.next();!g.done;f={Aa:f.Aa},g=a.next()){f.Aa=g.value;b.includes(f.Aa.licenseServerUri)||b.push(f.Aa.licenseServerUri);f.Aa.serverCertificate&&(c.some(function(m){return function(n){return _.Aj(n,m.Aa.serverCertificate)}}(f))||c.push(f.Aa.serverCertificate));if(f.Aa.initData){var h=_.w(f.Aa.initData);for(g=h.next();!g.done;g=h.next())g.value.periodId=f.Aa.periodId;h={};var l=_.w(f.Aa.initData);for(g=l.next();!g.done;h={de:h.de},g=l.next())h.de=g.value,
210
210
  d.some(function(m){return function(n){var p=m.de;return n.keyId&&n.keyId===p.keyId&&n.periodId===p.periodId?!0:!1}}(h))||d.push(h.de)}if(f.Aa.keyIds)for(g=0;g<f.Aa.keyIds.length;++g)e.includes(f.Aa.keyIds[g])||e.push(f.Aa.keyIds[g])}};
211
- io=function(a,b){if(a.keySystem){var c=_.Io(a.keySystem),d=b[c];c===_.ff&&a.licenseServerUri||(d&&(a.licenseServerUri=d.licenseUrl||""),a.keyIds||(a.keyIds=[]),d&&(a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=d.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=d.persistentStateRequired),a.videoRobustness||(a.videoRobustness=d.videoRobustness||""),a.audioRobustness||(a.audioRobustness=d.audioRobustness||""),a.serverCertificate||(a.serverCertificate=
211
+ io=function(a,b){if(a.keySystem){var c=_.Io(a.keySystem),d=b[c];c===_.ef&&a.licenseServerUri||(d&&(a.licenseServerUri=d.licenseUrl||""),a.keyIds||(a.keyIds=[]),d&&(a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=d.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=d.persistentStateRequired),a.videoRobustness||(a.videoRobustness=d.videoRobustness||""),a.audioRobustness||(a.audioRobustness=d.audioRobustness||""),a.serverCertificate||(a.serverCertificate=
212
212
  d.serverCertificate||null)))}};ao=function(a){var b,c;return _.H(function(d){if(1==d.a)return b=new Promise(function(e){(new _.Wk(e)).da(1)}),_.y(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.Fh("Timeout waiting for session close");_.A(d)})};_.Zo=function(a,b){a&&b&&(_.Xo.set(a,b),_.Yo.info("Registered TextDisplayerFactory: '"+a+"'"))};
213
213
  _.$o=function(a,b){var c=b.find(function(d){return(d=_.Xo.get(d))?d.isSupported(a):!1});if(null==c)return _.Yo.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;_.Yo.info("Chosen the text displayer: "+c);return _.Xo.get(c)};ap=function(){this.a=null;this.f=[]};
214
214
  _.bp=function(a,b){if(null==a.a)a.a={timestamp:Date.now()/1E3,state:b,duration:0};else{var c=Date.now()/1E3;a.a.duration=c-a.a.timestamp;a.a.state!==b&&(a.f.push(a.a),a.a={timestamp:c,state:b,duration:0})}};cp=function(a,b){var c=0;a.a&&a.a.state===b&&(c+=a.a.duration);for(var d=_.w(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state===b?e.duration:0;return c};
215
215
  dp=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.w(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};ep=function(){this.h=this.f=this.j=null;this.a=[]};fp=function(a){return a.a.map(function(b){return _.O.Na(b)})};_.gp=function(){this.f=this.o=this.A=this.D=this.j=this.l=this.h=this.w=NaN;this.a=new ap;this.B=new ep};
216
216
  _.hp=function(){return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,estimatedBandwidth:NaN,loadLatency:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,switchHistory:[],stateHistory:[]}};_.ip=function(a){this.f=a;this.a=void 0};kp=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=jp.value().get(b),c.one(a,b,d))};
217
217
  op=function(a){this.g=new _.K("clpp.StateManager");this.m=a;this.a=new _.Uh;this.f=_.lp;this.A=_.mp;this.I=0;this.w=-1;this.L=this.o=this.J=this.B=0;this.j=this.h=this.G=!1;this.H=0;this.l=null;this.K=0;this.N=_.dl();this.D=!1;this.J=Date.now();np(this)};pp=function(a,b){return Object.keys(b)[a]};
218
- rp=function(a,b){var c={type:_.hg};b===_.nd||b===_.md?(c.reason=a.w,b===_.nd?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(a.f===_.qp&&(c.reason=a.w),a.A===_.qp&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
219
- vp=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=a.f===_.qp;a.A=a.f;a.f=b;a.A===_.sp&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;b===_.qp?(a.L=a.o,a.w=a.h?1:2,a.g.info("Buffering started. Reason: "+pp(a.w-1,_.tp)),c=rp(a,_.nd),a.fc(_.nd,c)):d&&(a.B=a.o-a.L,a.g.info("Buffering finished. Reason: "+pp(a.w-1,_.tp)+". Buffering time: "+a.B+" ms"),c=rp(a,_.md),a.fc(_.md,c));c=pp(a.A,_.up);d=pp(a.f,_.up);a.g.info(_.Ob+c+" -\x3e "+d);a.fc(_.hg,rp(a,""));return!0};
220
- Ap=function(a,b){if(a.f===_.wp)a.g.warn("Player is in error state, aborting any further state checks");else{var c=a.m.isPaused(),d=a.m?a.m.isEnded():!1;if(d)a.h||(a.j=!1,vp(a,_.sp));else if(b!==_.sg){var e=a.m.getPosition();e=null!==e&&void 0!==e&&0<=e?a.m.getBufferInfo().xa(e,!0):-1;a.H=e;e=a.m.getSurface().getMedia();a.l=e?e.readyState:null;a.K=a.m.getPlaybackRate()||1;e=typeof a.l===_.k&&2>a.l&&2===e.networkState;var f=typeof a.l===_.k&&0>=a.H&&a.f===_.lp,g=typeof a.l===_.k&&2>=a.l&&a.j;e=a.h||
221
- f||e||g;!a.N||a.m.isLive()||a.f!==_.qp||e||(f=b===_.Zf&&4===a.l,(g=a.A===_.xp)&&!a.D?e=!0:g||a.D||f||(e=!0));f=!1;e?f=vp(a,_.qp):c?f=vp(a,_.yp):a.G&&(f=vp(a,_.zp));f&&(a.D=!1);a.g.debug("Video state check for event "+b+":: seeking: "+a.h+", waiting: "+a.j+", playing: "+a.G+", paused: "+c+", readyState: "+a.l+", rate: "+a.K+", buffer: "+a.H+", ended: "+d+". Changed state: "+f+", Current state: "+pp(a.f,_.up))}}};
222
- np=function(a){function b(d){return Ap(a,d.type)}a.g.debug("Start watching for video events for "+a.m.namespace());var c=a.m;a.a.on(c,_.re,function(){a.h||(a.j=!1,vp(a,_.sp))});a.a.on(c,od,b);a.a.on(c,_.xf,function(){a.G=!0;a.j=!1;Ap(a,_.xf)});a.a.on(c,_.hf,function(){a.G=!1;a.j=!1;Ap(a,_.hf)});a.a.on(c,_.sg,b);a.a.on(c,_.Of,b);a.a.on(c,_.Zf,function(d){a.h=!1;a.j=!1;Ap(a,d.type)});a.a.on(c,_.$f,function(d){a.h=!0;Ap(a,d.type)});a.a.on(c,fg,b);a.a.on(c,_.Pg,function(){a.j=!0;Ap(a,_.Pg)});a.a.on(c,
223
- _.se,function(d){return a.T(d)});a.a.on(c,_.Ke,b);a.a.on(c,pd,function(){a.D=!0;Ap(a,pd)});a.a.on(c,_.Dg,function(d){a.h=!0;Ap(a,d.type)});a.a.on(c,_.Cg,function(d){a.h=!1;a.j=!1;Ap(a,d.type)})};Bp=function(a){a=(new _.Gi(a)).Ba;if(!a)return null;a=a.toUpperCase();return _.S.endsWith(a,".MPD")?_.Vc:_.S.endsWith(a,".M3U8")?_.Fl:_.S.endsWith(a,".MP4")?_.Jg:_.S.endsWith(a,"MANIFEST")||_.S.endsWith(a,".ISM")?_.$c:null};
224
- _.Dp=function(a){var b;dm(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.kg||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=Cp(b[c]);d&&a.push(d)}return a};
225
- Cp=function(a){var b=null;_.O.ca(a)&&(a={url:a});typeof a===_.Ye&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.O.R(a.drmProtected)||typeof a.drmProtected!==_.ld||(b.drmProtected=a.drmProtected),_.O.R(a.isLive)||typeof a.isLive!==_.ld||(b.isLive=a.isLive),_.O.R(a.name)||typeof a.name!==_.kg||(b.name=a.name),_.O.R(a.Mb)||typeof a.Mb!==_.kg||(b.Mb=a.Mb),_.O.R(a.audioMimeType)||typeof a.audioMimeType!==_.kg||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=Bp(a.url),b.type?
226
- Ep.debug("Detect media type "+b.type+" for "+a.url):Ep.warn("Unable to detect media type for "+a.url));return b};Fp=function(){_.em.call(this,Kd);this.w=this.H=!1;this.l=this.A=this.o=this.a=this.j=null;this.h=new _.Uh;this.G=this.B=this.f=this.I=null};
227
- Ip=function(a,b){return a.w?Gp():new Promise(function(c){a.a||(a.h.on(b,_.se,function(){var d=Hp(a);if(d)a.onError(d)}),a.h.on(b,_.Tf,function(){var d=b.videoWidth,e=b.videoHeight,f=a.getTrackManager();f&&0<d&&0<e&&(f.w={width:d,height:e});a.trigger(new _.L(_.kd,{detail:{width:d,height:e}}))}),a.a=b);c()})};Jp=function(a){return a.w?Gp():new Promise(function(b){if(a.a){var c=a.a;a.h.off(c,_.se);a.h.off(c,_.Tf);a.a=null}b()})};
228
- Lp=function(a){var b,c,d,e,f;return _.H(function(g){if(1==g.a){if(a.w)return g["return"](Gp());b=a.Z[a.getSourceIndex()];if(!a.configuration.drm||!1===b.drmProtected)return a.log.debug("No DRM configuration present.","Skipping DRM engine initialization"),g["return"](Promise.resolve());c=_.Kp;d=_.ym(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=new _.$n({vb:e,onError:function(h){return a.onError(h)},Qf:function(){},Pf:function(h,l){a.trigger(new _.L(_.ie,{expirationTime:l}))},
229
- onEvent:function(h){h instanceof _.L?a.dispatchEvent(h):a.log.debug(_.ic,h.type)},getConfiguration:function(){return a.getConfiguration()},Yc:function(){return a.Yc()}});a.o.h=d;f={id:0,language:_.vg,primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:Promise.resolve.bind(Promise),findSegmentPosition:function(){return null},getSegmentReference:function(){return null},adjustSegmentDurations:function(){},getDuration:a.getDuration.bind(a),initSegmentReference:null,ya:0,mimeType:_.Jg,
218
+ rp=function(a,b){var c={type:_.gg};b===_.md||b===_.ld?(c.reason=a.w,b===_.md?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(a.f===_.qp&&(c.reason=a.w),a.A===_.qp&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
219
+ vp=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=a.f===_.qp;a.A=a.f;a.f=b;a.A===_.sp&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;b===_.qp?(a.L=a.o,a.w=a.h?1:2,a.g.info("Buffering started. Reason: "+pp(a.w-1,_.tp)),c=rp(a,_.md),a.fc(_.md,c)):d&&(a.B=a.o-a.L,a.g.info("Buffering finished. Reason: "+pp(a.w-1,_.tp)+". Buffering time: "+a.B+" ms"),c=rp(a,_.ld),a.fc(_.ld,c));c=pp(a.A,_.up);d=pp(a.f,_.up);a.g.info(_.Ob+c+" -\x3e "+d);a.fc(_.gg,rp(a,""));return!0};
220
+ Ap=function(a,b){if(a.f===_.wp)a.g.warn("Player is in error state, aborting any further state checks");else{var c=a.m.isPaused(),d=a.m?a.m.isEnded():!1;if(d)a.h||(a.j=!1,vp(a,_.sp));else if(b!==_.rg){var e=a.m.getPosition();e=null!==e&&void 0!==e&&0<=e?a.m.getBufferInfo().xa(e,!0):-1;a.H=e;e=a.m.getSurface().getMedia();a.l=e?e.readyState:null;a.K=a.m.getPlaybackRate()||1;e=typeof a.l===_.k&&2>a.l&&2===e.networkState;var f=typeof a.l===_.k&&0>=a.H&&a.f===_.lp,g=typeof a.l===_.k&&2>=a.l&&a.j;e=a.h||
221
+ f||e||g;!a.N||a.m.isLive()||a.f!==_.qp||e||(f=b===_.Yf&&4===a.l,(g=a.A===_.xp)&&!a.D?e=!0:g||a.D||f||(e=!0));f=!1;e?f=vp(a,_.qp):c?f=vp(a,_.yp):a.G&&(f=vp(a,_.zp));f&&(a.D=!1);a.g.debug("Video state check for event "+b+":: seeking: "+a.h+", waiting: "+a.j+", playing: "+a.G+", paused: "+c+", readyState: "+a.l+", rate: "+a.K+", buffer: "+a.H+", ended: "+d+". Changed state: "+f+", Current state: "+pp(a.f,_.up))}}};
222
+ np=function(a){function b(d){return Ap(a,d.type)}a.g.debug("Start watching for video events for "+a.m.namespace());var c=a.m;a.a.on(c,_.qe,function(){a.h||(a.j=!1,vp(a,_.sp))});a.a.on(c,nd,b);a.a.on(c,_.wf,function(){a.G=!0;a.j=!1;Ap(a,_.wf)});a.a.on(c,_.gf,function(){a.G=!1;a.j=!1;Ap(a,_.gf)});a.a.on(c,_.rg,b);a.a.on(c,_.Nf,b);a.a.on(c,_.Yf,function(d){a.h=!1;a.j=!1;Ap(a,d.type)});a.a.on(c,_.Zf,function(d){a.h=!0;Ap(a,d.type)});a.a.on(c,eg,b);a.a.on(c,_.Pg,function(){a.j=!0;Ap(a,_.Pg)});a.a.on(c,
223
+ _.re,function(d){return a.T(d)});a.a.on(c,_.Je,b);a.a.on(c,od,function(){a.D=!0;Ap(a,od)});a.a.on(c,_.Dg,function(d){a.h=!0;Ap(a,d.type)});a.a.on(c,_.Cg,function(d){a.h=!1;a.j=!1;Ap(a,d.type)})};Bp=function(a){a=(new _.Gi(a)).Ba;if(!a)return null;a=a.toUpperCase();return _.S.endsWith(a,".MPD")?_.Uc:_.S.endsWith(a,".M3U8")?_.Fl:_.S.endsWith(a,".MP4")?_.Jg:_.S.endsWith(a,"MANIFEST")||_.S.endsWith(a,".ISM")?_.Zc:null};
224
+ _.Dp=function(a){var b;dm(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.jg||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=Cp(b[c]);d&&a.push(d)}return a};
225
+ Cp=function(a){var b=null;_.O.ca(a)&&(a={url:a});typeof a===_.Xe&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.O.R(a.drmProtected)||typeof a.drmProtected!==_.kd||(b.drmProtected=a.drmProtected),_.O.R(a.isLive)||typeof a.isLive!==_.kd||(b.isLive=a.isLive),_.O.R(a.name)||typeof a.name!==_.jg||(b.name=a.name),_.O.R(a.Mb)||typeof a.Mb!==_.jg||(b.Mb=a.Mb),_.O.R(a.audioMimeType)||typeof a.audioMimeType!==_.jg||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=Bp(a.url),b.type?
226
+ Ep.debug("Detect media type "+b.type+" for "+a.url):Ep.warn("Unable to detect media type for "+a.url));return b};Fp=function(){_.em.call(this,Jd);this.w=this.H=!1;this.l=this.A=this.o=this.a=this.j=null;this.h=new _.Uh;this.G=this.B=this.f=this.I=null};
227
+ Ip=function(a,b){return a.w?Gp():new Promise(function(c){a.a||(a.h.on(b,_.re,function(){var d=Hp(a);if(d)a.onError(d)}),a.h.on(b,_.Sf,function(){var d=b.videoWidth,e=b.videoHeight,f=a.getTrackManager();f&&0<d&&0<e&&(f.w={width:d,height:e});a.trigger(new _.L(_.jd,{detail:{width:d,height:e}}))}),a.a=b);c()})};Jp=function(a){return a.w?Gp():new Promise(function(b){if(a.a){var c=a.a;a.h.off(c,_.re);a.h.off(c,_.Sf);a.a=null}b()})};
228
+ Lp=function(a){var b,c,d,e,f;return _.H(function(g){if(1==g.a){if(a.w)return g["return"](Gp());b=a.Z[a.getSourceIndex()];if(!a.configuration.drm||!1===b.drmProtected)return a.log.debug("No DRM configuration present.","Skipping DRM engine initialization"),g["return"](Promise.resolve());c=_.Kp;d=_.ym(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=new _.$n({vb:e,onError:function(h){return a.onError(h)},Qf:function(){},Pf:function(h,l){a.trigger(new _.L(_.he,{expirationTime:l}))},
229
+ onEvent:function(h){h instanceof _.L?a.dispatchEvent(h):a.log.debug(_.hc,h.type)},getConfiguration:function(){return a.getConfiguration()},Yc:function(){return a.Yc()}});a.o.h=d;f={id:0,language:_.vg,primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:Promise.resolve.bind(Promise),findSegmentPosition:function(){return null},getSegmentReference:function(){return null},adjustSegmentDurations:function(){},getDuration:a.getDuration.bind(a),initSegmentReference:null,ya:0,mimeType:_.Jg,
230
230
  codecs:"",encrypted:!0,keyId:null,language:_.vg,originalLanguage:_.vg,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,eo:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,spatialAudio:!1,Mn:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.y(g,_.fo(a.o,[f]),2)}return 3!=g.a?_.y(g,_.yo(a.o,a.a),3):g["return"](Promise.resolve())})};
231
231
  Mp=function(a,b){kp(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){a.getState()!==_.wp&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};Hp=function(a){if(null===a.Z||!a.a.error)return null;var b=a.a.error.code;if(1===b)return null;var c=a.a.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new _.P(_.Q,3,3016,{code:b,Wn:c,message:a.a.error.message})};Gp=function(){return Promise.reject(new _.P(_.Q,7,7E3))};
232
- Np=function(a){if(a.w)return new _.Pj(Gp(),function(){});var b=a.Z[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&Mp(a,c);if(d.preload!==_.Xe)a.h.one(d,_.Ke,function(){var g=Date.now()/1E3-e;a.f.A=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.Vj()||_.Wj())&&d.load();var f=new _.Oj;a.h.one(d,fg,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.B||(a.B=(new _.Wk(function(){f.reject(new _.P(_.Q,3,3100,{message:"Unable to load media source successfully from "+
233
- b.url,uri:b.url},d.error))})).da(g))});kp(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.h,function(){return f.resolve()});d.error?f.reject(Hp(a)):d.preload===_.Xe&&(a.log.warn('With \x3cvideo preload\x3d"none"\x3e, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way. Please do not use preload\x3d"none" with PRESTOplay for Web Apps.'),f.resolve());a.h.one(d,_.se,function(){f.reject(Hp(a))});
232
+ Np=function(a){if(a.w)return new _.Pj(Gp(),function(){});var b=a.Z[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&Mp(a,c);if(d.preload!==_.We)a.h.one(d,_.Je,function(){var g=Date.now()/1E3-e;a.f.A=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.Vj()||_.Wj())&&d.load();var f=new _.Oj;a.h.one(d,eg,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.B||(a.B=(new _.Wk(function(){f.reject(new _.P(_.Q,3,3100,{message:"Unable to load media source successfully from "+
233
+ b.url,uri:b.url},d.error))})).da(g))});kp(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.h,function(){return f.resolve()});d.error?f.reject(Hp(a)):d.preload===_.We&&(a.log.warn('With \x3cvideo preload\x3d"none"\x3e, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way. Please do not use preload\x3d"none" with PRESTOplay for Web Apps.'),f.resolve());a.h.one(d,_.re,function(){f.reject(Hp(a))});
234
234
  return new _.Pj(f,function(){var g=new _.P(_.Q,7,7001);f.reject(g);return Promise.resolve()})};
235
235
  Op=function(a,b){kp(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){if(a.isLive()&&a.getState()!==_.wp){var c=a.getSeekRange().end,d=a.getPosition();Infinity===c||20>c-d||(a.log.warn("Detected that HLS live stream was not started from close to the live edge. Auto-fixing, seeking to seek range end.(position: "+(d+", seek range end: "+c+")")),a.seek(c)["catch"](function(e){a.log.warn("Error while seeking to seek range edge.",e)}))}})};
236
- Pp=function(a,b){var c=!1;a.h.on(b,_.$f,function(){c=b.paused});a.h.on(b,_.Zf,function(){.2>b.duration-b.currentTime&&b.paused&&!c&&(a.log.warn("Player was auto-paused during seek to the end, auto-resuming."),b.play())})};Qp=function(){};_.Tp=function(a){a&&(0<=Rp.indexOf(a)?Sp.warn("Factory '"+a.name()+"' is already registered"):(Rp.push(a),Sp.info("Factory "+a.name()+"' has been registered.")))};
237
- Vp=function(a,b){var c=Rp.find(function(d){return d.isSupported(a,b)});c||(c=new Up);Sp.info("Chosen ads: "+c.name());return c};_.Wp=function(a,b){var c=document.createElement(a),d;for(d in b){var e=b[d];null===e||void 0===e?c.setAttribute(d,""):c.setAttribute(d,e)}return c};_.Xp=function(a,b){a.classList.add(b)};_.Yp=function(a,b){if(a&&typeof b===_.Ye)for(var c in b)a.style[c]=b[c]};_.Zp=function(a){return document.createElement(a)};$p=function(){this.a=null;this.h=new Set;this.f=null;this.set(null)};
236
+ Pp=function(a,b){var c=!1;a.h.on(b,_.Zf,function(){c=b.paused});a.h.on(b,_.Yf,function(){.2>b.duration-b.currentTime&&b.paused&&!c&&(a.log.warn("Player was auto-paused during seek to the end, auto-resuming."),b.play())})};Qp=function(){};_.Tp=function(a){a&&(0<=Rp.indexOf(a)?Sp.warn("Factory '"+a.name()+"' is already registered"):(Rp.push(a),Sp.info("Factory "+a.name()+"' has been registered.")))};
237
+ Vp=function(a,b){var c=Rp.find(function(d){return d.isSupported(a,b)});c||(c=new Up);Sp.info("Chosen ads: "+c.name());return c};_.Wp=function(a,b){var c=document.createElement(a),d;for(d in b){var e=b[d];null===e||void 0===e?c.setAttribute(d,""):c.setAttribute(d,e)}return c};_.Xp=function(a,b){a.classList.add(b)};_.Yp=function(a,b){if(a&&typeof b===_.Xe)for(var c in b)a.style[c]=b[c]};_.Zp=function(a){return document.createElement(a)};$p=function(){this.a=null;this.h=new Set;this.f=null;this.set(null)};
238
238
  aq=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.h.add(b))};bq=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.h.values());li(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.ch(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
239
239
  fq=function(a,b){this.g=new _.K("clpp.PlayerSurface");this.w=_.O.oa(cq,b);this.f=new $p;this.h=null;this.a=new $p;this.l=dq;dq+=1;this.o="clpp-video-"+this.l;this.j=new _.Uh;if(null==a)throw new _.P(_.Q,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.P(_.Q,7,7004,"Media element not found");var d=this.w;this.g.debug("Initializing Player Surface on ",c);if("cast-media-player"===c.tagName.toLowerCase())this.h=c;else{if(!(c instanceof
240
- HTMLMediaElement))throw new _.P(_.Q,7,7005,"Media element is not instance of HTMLMediaElement");if(!c.hasAttribute("crossorigin")){var e=d.crossorigin;this.g.info("Setting media elements crossorigin to "+e);c.setAttribute("crossorigin",e)}this.f.set(c);if(d.disableContainer)e=null;else if(d.containerEl){if(c.parentNode!==d.containerEl)throw new _.P(_.Q,7,7006,"Container element is not a direct parent of media element");e=d.containerEl}else{e=document.createElement(_.ae);c.parentNode?c.parentNode.replaceChild(e,
241
- c):this.g.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!");for(var f=[],g=0;g<c.classList.length;g++)f.push(c.classList[g]);f=_.w(f);for(g=f.next();!g.done;g=f.next())g=g.value,c.classList.remove(g),_.Xp(e,g);e.style.cssText=c.style.cssText;c.removeAttribute(_.mg);f=_.w([_.Wg,_.we]);for(g=f.next();!g.done;g=f.next()){g=g.value;var h=c.getAttribute(g);h=parseInt(h,10);isNaN(h)||(e.style[g]=h+_.Nf);_.Vj()||c.removeAttribute(g)}e.appendChild(c)}e&&
242
- (this.a.set(e),aq(this.a,"clpp-container"),aq(this.a,this.o),aq(this.f,_.zd),aq(this.f,"clpp-video"));d.webOSStartupPatch&&eq(this,c,e)}};eq=function(a,b,c){(_.Wj()&&53===_.$k().major||_.Wj()&&68===_.$k().major||_.al())&&!b.hasAttribute(Wd)&&(b.style.opacity="0",b.setAttribute(Wd,""),a.j.one(b,ne,function(){b.removeAttribute(Wd);b.style.opacity="1";c&&(c.style.opacity="1")}))};hq=function(a){this.m=a;this.j=this.m.getNetworkEngine();this.a=new _.Uh;this.h=null;this.f=!0;gq(this)};
243
- gq=function(a){a.a.on(window,"offline",function(){iq(a,!1)});a.a.on(window,"online",function(){a.f||jq(a)});a.a.on(a.m,fg,function(){return kq(a)});a.a.on(a.m,"suspend",function(){return kq(a)});a.a.on(a.m,_.Pg,function(){return kq(a)});a.a.on(a.m,_.xf,function(){a.f||jq(a)});a.a.on(a.m,_.Mf,function(){a.f||jq(a)});a.a.on(a.m,_.hg,function(){switch(a.m.getState()){case _.qp:kq(a);break;default:kq(a)}})};jq=function(a){a.m.getConfiguration().connectivityCheck&&(lq(a),a.h=(new _.Wk(function(){return mq(a)})).da(5))};
244
- kq=function(a){a.f&&jq(a)};lq=function(a){a.h&&(a.h.stop(),a.h=null)};mq=function(a){var b,c;return _.H(function(d){if(1==d.a)return(b=a.m.getConfiguration().connectivityCheck)&&a.m?_.y(d,dk(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;iq(a,c);_.A(d)})};iq=function(a,b){lq(a);a.f!==b&&(a.f=b,a.m&&a.m.getConfiguration().connectivityCheck&&a.m.trigger(new _.L(df,{online:a.f})))};oq=function(){for(var a=0;a<nq.length;++a)nq[a].Qc()};
245
- _.pq=function(a,b){b=b||0;for(var c={priority:b,Qc:a},d=0;d<nq.length;d++)if(nq[d].priority<b){nq.splice(d,0,c);return}nq.push(c)};qq=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};rq=function(a,b,c){var d=_.S.ba;this.h=a;this.f=b;JSON.parse(d(_.xj(a)));this.a=JSON.parse(d(_.xj(b)));this.j=c};sq=function(a){this.license=a;this.a=null;this.g=new _.K("clpp.utils.LicenseKey")};
246
- tq=function(a){if(!a.a){var b=a.license.split(".");if(3!==b.length)throw Error("Expected to find 3 data sections in JWT raw data");b=new rq(b[0],b[1],b[2]);a.a=b}return a.a};uq=function(a){switch((a.Z[0]||{src:"",type:""}).type){case _.Vc:a="dash";break;case _.$c:a="ss";break;case _.Fl:a="hls";break;case _.Jg:a="mp4";break;default:a=""}return a};vq=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};
247
- wq=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};xq=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};zq=function(a){var b=a.configuration,c="no";b.drm&&!_.O.la(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(me)||yq(a).endsWith("drmtoday.com"))&&(c=me);return c};
248
- Aq=function(a){a=a.drmInfo;var b="";if(a)switch(a.keySystem){case _.Ud:b="wv";break;case _.Sd:b="pr";break;case _.Qd:b="fps"}return b};Bq=function(a){a=a.drmInfo;var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};Cq=function(a){a=a.drmInfo;var b="";if(a)switch(a.videoRobustness){case ib:case gb:b="L1";break;case hb:b="L2";break;case _.Yb:case _.Xb:b="L3"}return b};yq=function(a){a=a.drmInfo;return(new _.Gi(a&&a.licenseServerUri||"")).Oa};
249
- Fq=function(a,b){var c="ie"===_.Xj().browser,d=b.configuration,e=_.ch(Array.from(_.fm.keys())).concat(_.ch(b.ii));d={"CL-KEY":a.license,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ia,"CL-USER-ID":vq(d),"CL-ASSET-ID":wq(d),"CL-SESSION-ID":xq(d),"CL-PLAYBACK-TYPE":b.isLive?Dq:Eq,"CL-CONTENT-TYPE":uq(b),"CL-PLUGINS":e.join(" "),"CL-DRM":zq(b),"CL-DRM-CDM":Aq(b),"CL-DRM-SEC-LEVEL":Cq(b),"CL-DRM-OFFLINE":Bq(b),"CL-DRM-IP":yq(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=e);e=
250
- _.Jj(["https://downloads.castlabs.com/r/register/"]);e.method="GET";e.headers=d;return(new _.ak).fetch(e).P.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=tq(a);f=f.data;var h=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(h){case 403:case 404:g=7101;var l="castLabs Player license is invalid";if(403===h){h=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=h+(": "+
251
- l)}else f=l+"!";l=f;break;case 412:g=7103;l="License requires a viewer ID. It should be supplied either via the `viewerId` config or in case of DRMtoday via the `drm.customData.userID` config.";break;default:f=Promise.resolve();break a}a.g.error(vb+l);f=Promise.reject(new _.P(_.Q,7,g,l))}}return f})};
240
+ HTMLMediaElement))throw new _.P(_.Q,7,7005,"Media element is not instance of HTMLMediaElement");if(!c.hasAttribute("crossorigin")){var e=d.crossorigin;this.g.info("Setting media elements crossorigin to "+e);c.setAttribute("crossorigin",e)}this.f.set(c);if(d.disableContainer)e=null;else if(d.containerEl){if(c.parentNode!==d.containerEl)throw new _.P(_.Q,7,7006,"Container element is not a direct parent of media element");e=d.containerEl}else{e=document.createElement(_.$d);c.parentNode?c.parentNode.replaceChild(e,
241
+ c):this.g.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!");for(var f=[],g=0;g<c.classList.length;g++)f.push(c.classList[g]);f=_.w(f);for(g=f.next();!g.done;g=f.next())g=g.value,c.classList.remove(g),_.Xp(e,g);e.style.cssText=c.style.cssText;c.removeAttribute(_.lg);f=_.w([_.Wg,_.ve]);for(g=f.next();!g.done;g=f.next()){g=g.value;var h=c.getAttribute(g);h=parseInt(h,10);isNaN(h)||(e.style[g]=h+_.Mf);_.Vj()||c.removeAttribute(g)}e.appendChild(c)}e&&
242
+ (this.a.set(e),aq(this.a,"clpp-container"),aq(this.a,this.o),aq(this.f,_.yd),aq(this.f,"clpp-video"));d.webOSStartupPatch&&eq(this,c,e)}};eq=function(a,b,c){(_.Wj()&&53===_.$k().major||_.Wj()&&68===_.$k().major||_.al())&&!b.hasAttribute(Vd)&&(b.style.opacity="0",b.setAttribute(Vd,""),a.j.one(b,me,function(){b.removeAttribute(Vd);b.style.opacity="1";c&&(c.style.opacity="1")}))};hq=function(a){this.m=a;this.j=this.m.getNetworkEngine();this.a=new _.Uh;this.h=null;this.f=!0;gq(this)};
243
+ gq=function(a){a.a.on(window,"offline",function(){iq(a,!1)});a.a.on(window,"online",function(){a.f||jq(a)});a.a.on(a.m,eg,function(){return kq(a)});a.a.on(a.m,"suspend",function(){return kq(a)});a.a.on(a.m,_.Pg,function(){return kq(a)});a.a.on(a.m,_.wf,function(){a.f||jq(a)});a.a.on(a.m,_.Lf,function(){a.f||jq(a)});a.a.on(a.m,_.gg,function(){switch(a.m.getState()){case _.qp:kq(a);break;default:kq(a)}})};jq=function(a){a.m.getConfiguration().connectivityCheck&&(lq(a),a.h=(new _.Wk(function(){return mq(a)})).da(5))};
244
+ kq=function(a){a.f&&jq(a)};lq=function(a){a.h&&(a.h.stop(),a.h=null)};mq=function(a){var b,c;return _.H(function(d){if(1==d.a)return(b=a.m.getConfiguration().connectivityCheck)&&a.m?_.y(d,dk(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;iq(a,c);_.A(d)})};iq=function(a,b){lq(a);a.f!==b&&(a.f=b,a.m&&a.m.getConfiguration().connectivityCheck&&a.m.trigger(new _.L(cf,{online:a.f})))};oq=function(){for(var a=0;a<nq.length;++a)nq[a].Qc()};
245
+ _.pq=function(a,b){b=b||0;for(var c={priority:b,Qc:a},d=0;d<nq.length;d++)if(nq[d].priority<b){nq.splice(d,0,c);return}nq.push(c)};qq=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};rq=function(a,b,c){var d=_.S.ba;this.h=a;this.f=b;JSON.parse(d(_.xj(a)));this.a=JSON.parse(d(_.xj(b)));this.j=c};
246
+ tq=function(a){var b=sq,c=_.S.Va,d={kty:"RSA",n:b.n,e:b.e},e=a.h+"."+a.f,f=a.j;return new Promise(function(g,h){try{var l=window&&window.crypto&&window.crypto.subtle}catch(n){}if(l){var m={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};l.importKey("jwk",d,m,!1,["verify"]).then(function(n){var p=c(e),q=_.xj(f);return l.verify(m,n,q.buffer,p.buffer)}).then(function(n){n?g():h(new _.Bi("Signature Verification failed",ug))})["catch"](h)}else g()})};uq=function(a){this.f=a;this.a=null;this.g=new _.K("clpp.utils.LicenseKey")};
247
+ vq=function(a){if(!a.a){var b=a.f.split(".");if(3!==b.length)throw Error("Expected to find 3 data sections in JWT raw data");b=new rq(b[0],b[1],b[2]);a.a=b}return a.a};
248
+ wq=function(a){var b,c,d;return _.H(function(e){if(1==e.a)return b=vq(a),_.B(e,2),_.y(e,tq(b),4);if(2!=e.a)return _.qh(e,0);if((c=_.E(e))&&c.code===ug)throw c;var f=window.location.href,g=new _.Gi(f);d=g.hb||g.Oa?g:new _.Gi("//"+f);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(d.Oa))return e["return"]();throw c;})};
249
+ xq=function(a){switch((a.Z[0]||{src:"",type:""}).type){case _.Uc:a="dash";break;case _.Zc:a="ss";break;case _.Fl:a="hls";break;case _.Jg:a="mp4";break;default:a=""}return a};yq=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};zq=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};Aq=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};
250
+ Cq=function(a){var b=a.configuration,c="no";b.drm&&!_.O.la(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(le)||Bq(a).endsWith("drmtoday.com"))&&(c=le);return c};Dq=function(a){a=a.drmInfo;var b="";if(a)switch(a.keySystem){case _.Td:b="wv";break;case _.Rd:b="pr";break;case _.Pd:b="fps"}return b};Eq=function(a){a=a.drmInfo;var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};
251
+ Fq=function(a){a=a.drmInfo;var b="";if(a)switch(a.videoRobustness){case ib:case gb:b="L1";break;case hb:b="L2";break;case _.Yb:case _.Xb:b="L3"}return b};Bq=function(a){a=a.drmInfo;return(new _.Gi(a&&a.licenseServerUri||"")).Oa};
252
+ Iq=function(a,b){var c="ie"===_.Xj().browser,d=b.configuration,e=_.ch(Array.from(_.fm.keys())).concat(_.ch(b.ii));d={"CL-KEY":a.f,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ia,"CL-USER-ID":yq(d),"CL-ASSET-ID":zq(d),"CL-SESSION-ID":Aq(d),"CL-PLAYBACK-TYPE":b.isLive?Gq:Hq,"CL-CONTENT-TYPE":xq(b),"CL-PLUGINS":e.join(" "),"CL-DRM":Cq(b),"CL-DRM-CDM":Dq(b),"CL-DRM-SEC-LEVEL":Fq(b),"CL-DRM-OFFLINE":Eq(b),"CL-DRM-IP":Bq(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=e);e=_.Jj(["https://downloads.castlabs.com/r/register/"]);
253
+ e.method="GET";e.headers=d;return(new _.ak).fetch(e).P.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=vq(a);f=f.data;var h=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(h){case 403:case 404:g=7101;var l="castLabs Player license is invalid";if(403===h){h=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=h+(": "+l)}else f=l+"!";l=f;break;case 412:g=7103;l="License requires a viewer ID. It should be supplied either via the `viewerId` config or in case of DRMtoday via the `drm.customData.userID` config.";
254
+ break;default:f=Promise.resolve();break a}a.g.error(vb+l);f=Promise.reject(new _.P(_.Q,7,g,l))}}return f})};
252
255
  X=function(a,b,c){_.Vl.call(this);var d=this;oq();this.g=new _.K("clpp.Player");if(!a)throw new _.P(_.Q,7,7102);this.ea=new _.Uh;this.f=this.A=b||_.am();this.l=null;void 0===this.f.license&&(this.f.license=Zl,this.g.warn("You are using the embedded demo license!"));if(!this.f.license)throw this.g.error("You provided null or empty string as your license. Please check your license configuration."),new _.P(_.Q,7,7101,"No license provided in configuration!");this.h=new fq(a,c);this.a=this.B=null;this.G=
253
- new _.ak;this.j=null;this.$=[];this.aa=!0;this.I={};this.fa=null;this.N=!0;this.S=this.L=!1;this.J=this.Wc=null;this.tf=!1;this.ja=new hq(this);this.on(_.hg,function(){d.getState()===_.wp&&(d.a?d.a.unload():Promise.resolve())});this.on(_.Rc,this.Ph.bind(this));this.on(_.Qc,this.Ph.bind(this));Gq(this,this.f.license);this.h.getMedia()&&(a=this.h.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),this.g.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),
254
- void 0===this.f.autoplay&&(this.f.autoplay=!0,this.g.debug("Setting autoplay in configuration since it was specified in the video element"))));a=[];b=_.w(Hq);for(c=b.next();!c.done;c=b.next()){c=c.value;try{var e=c.create(this.f);e&&a.push(e)}catch(f){this.g.error("Error while creating player plugin",f)}}Iq(this,a);this.K=_.pa;lm(this)};
255
- _.Jq=function(a,b){null!=b&&b===a.a?a.a.forwardEventsTo(a):(a.a&&(a.a.stopForwardingEventsTo(a),a.a.destroy(),a.a=null),b&&(b.init(a.h,a.A),b.setNetworkEngine(a.getNetworkEngine()),b.forwardEventsTo(a),a.a=b))};Gq=function(a,b){a.B=new sq(b);a.B.verify()["catch"](function(c){setTimeout(function(){a.g.error(vb+c);a.trigger(new _.L(_.se,{detail:new _.P(_.Q,7,7101)}));a.destroy()},1E3)})};
256
- Kq=function(a,b){var c,d;_.H(function(e){if(1==e.a)return a.h.getMedia()||a.h.getCastElement(),a.B||(a.B=new sq(a.f.license)),_.B(e,2),a.g.debug("Verifying license remotely"),_.y(e,Fq(a.B,b),4);if(2!=e.a)return a.g.debug("License verified remotely"),_.qh(e,0);c=_.E(e);a.g.debug("License rejected by remote",c);d={release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)};setTimeout(qq,1E3,d,c);_.A(e)})};
257
- Iq=function(a,b){a.$=b;for(var c=_.w(a.$),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.I[e]=d)}a.xc("onPlayerCreated")};
258
- Lq=function(a){var b,c;return _.H(function(d){if(1==d.a){if(a.N)return a.g.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.ea.off(document,Ng);a.trigger(new _.L(_.Qf));a.h&&a.h.release();return a.j?_.y(d,a.j.dispose(),3):d.F(2)}2!=d.a&&(a.j=null);if(a.a)return b=null,c=a.a.on(_.hg,function(e){b=e}),d["return"](a.xc(_.bf).then(function(){a.a.stopForwardingEventsTo(a);return Promise.all([a.a.release(),a.G.release()])}).then(function(){a.g.debug("Releasing player completed");
259
- b&&(a.g.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.hg,c);a.trigger(new _.L(Pf))}));a.trigger(new _.L(Pf));return d["return"](new Promise(function(e){return e()}))})};Oq=function(a,b,c){return a.K===_.Kb?Mq(b,c):Nq(a,b,c)};Nq=function(a,b,c){var d;return _.H(function(e){if((d=2===(a.a?a.a.canPlay(b[0],c):0))&&!a.S)return e["return"]({player:a.a,sourceIndex:0});a.S=!1;return e["return"](Pq(a,b,c))})};
260
- Mq=function(a,b){var c=Qh(function(d){return d.f(_.Kb)&&a.every(function(e){return 2===d.canPlay(e,b)})});if(!c)throw new _.P(_.Q,7,7003,"No compatible player implementing playlist mode found!");return Promise.resolve({player:c.create(),sourceIndex:0})};
261
- Pq=function(a,b,c){return new Promise(function(d,e){var f;if(b){for(var g=f=null,h=0;h<b.length;h++);h=Object.values(_.Nh);for(var l=0;l<b.length;l++)for(var m=0;m<h.length;m++){var n={Rb:h[m],confidence:h[m].canPlay(b[l],c)};if(null===f||f.confidence<n.confidence)f=n,g=l}f&&typeof g===_.k&&0<f.confidence?(_.Oh.debug("Player Factory '"+f.Rb.a()+"' can play",b[g]),f=new Mh(f.Rb,g)):(_.Oh.error("No compatible Player Factory found for sources:",b),f=null)}else f=null;f?(g=f.Rb.create(),d({player:g,sourceIndex:f.sourceIndex})):
262
- (f=new _.L(_.se,{detail:new _.P(_.Q,7,7003)}),a.trigger(f),e(f))})};Rq=function(a){var b;return _.H(function(c){if(1==c.a){if(!a.a)return a.g.warn(Mb),c["return"]();b=a.a;if(!b.Hg)return a.g.warn(Rb),c["return"]();a.trigger(new _.L(Le));return _.y(c,b.Hg(),2)}return _.y(c,_.Qq(a),0)})};
263
- _.Tq=function(a,b,c){var d,e;return _.H(function(f){switch(f.a){case 1:if(a.L)throw new _.P(_.Q,7,7E3,"Player is already destroyed.");if(!a.h)throw new _.P(_.Q,7,7E3,"No surface associated with this player!");_.Un(sf);return _.y(f,a.release(),2);case 2:d=c||_.Dp(b);if(!b||0===d.length)throw new _.P(_.Q,7,7003,Eb);a.fa=d;a.f=_.cm(a.A,b,{source:d});a.N=!1;return _.y(f,Oq(a,d,a.f),3);case 3:e=f.f;_.Jq(a,e.player);a.a&&a.a.setSourceIndex(e.sourceIndex);Sq(a);a.a&&a.a.setCdnErrorCallback(a.J);a.j=Vp(a,
264
- a.f).create(a);if(a.f.pauseWhenInBackground)a.ea.on(document,Ng,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});mm(a);return _.y(f,a.xc("onContentWillLoad",d[e.sourceIndex]),4);case 4:_.Un(rf),_.Vn("player.beforeLoad",sf,rf),_.A(f)}})};_.Uq=function(a){return _.H(function(b){a.h.getMedia()||a.h.getCastElement();a.trigger(new _.L(Le));return _.y(b,Promise.all([a.a.load(a.f),a.j.load()]),0)})};
265
- Wq=function(a){var b,c,d,e;_.H(function(f){if(1==f.a){b=[];if(a.f.remoteTextTracks)for(c=_.w(a.f.remoteTextTracks),d=c.next();!d.done;d=c.next())e=d.value,b.push(a.getTrackManager().addTextTrack(e));return _.y(f,Promise.all(b),2)}Vq(a);_.A(f)})};
266
- Vq=function(a){var b=_.ji(a.f.preferredTextLanguage).filter(function(f){return f}),c=a.f.preferForcedSubtitles,d=a.getTrackManager().ia().filter(function(f){return c?f.kind===_.te:f.kind!==_.te});if(0===d.length)c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles are available.");else{if(c&&0===b.length){var e=a.getTrackManager().ma();e&&e.language?(e=_.dj(e.language||""),b.push(e)):(e=a.getTrackManager().Ja())&&e.language&&(e=_.dj(e.language||""),b.push(e));0===
256
+ new _.ak;this.j=null;this.$=[];this.aa=!0;this.I={};this.fa=null;this.N=!0;this.S=this.L=!1;this.J=this.Wc=null;this.uf=!1;this.ja=new hq(this);this.on(_.gg,function(){d.getState()===_.wp&&(d.a?d.a.unload():Promise.resolve())});this.on(_.Qc,this.Ph.bind(this));this.on(_.Pc,this.Ph.bind(this));Jq(this,this.f.license);this.h.getMedia()&&(a=this.h.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),this.g.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),
257
+ void 0===this.f.autoplay&&(this.f.autoplay=!0,this.g.debug("Setting autoplay in configuration since it was specified in the video element"))));a=[];b=_.w(Kq);for(c=b.next();!c.done;c=b.next()){c=c.value;try{var e=c.create(this.f);e&&a.push(e)}catch(f){this.g.error("Error while creating player plugin",f)}}Lq(this,a);this.K=_.pa;lm(this)};
258
+ _.Mq=function(a,b){null!=b&&b===a.a?a.a.forwardEventsTo(a):(a.a&&(a.a.stopForwardingEventsTo(a),a.a.destroy(),a.a=null),b&&(b.init(a.h,a.A),b.setNetworkEngine(a.getNetworkEngine()),b.forwardEventsTo(a),a.a=b))};Jq=function(a,b){a.B=new uq(b);wq(a.B)["catch"](function(c){setTimeout(function(){a.g.error(vb+c);a.trigger(new _.L(_.re,{detail:new _.P(_.Q,7,7101)}));a.destroy()},1E3)})};
259
+ Nq=function(a,b){var c,d;_.H(function(e){if(1==e.a)return a.h.getMedia()||a.h.getCastElement(),a.B||(a.B=new uq(a.f.license)),_.B(e,2),a.g.debug("Verifying license remotely"),_.y(e,Iq(a.B,b),4);if(2!=e.a)return a.g.debug("License verified remotely"),_.qh(e,0);c=_.E(e);a.g.debug("License rejected by remote",c);d={release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)};setTimeout(qq,1E3,d,c);_.A(e)})};
260
+ Lq=function(a,b){a.$=b;for(var c=_.w(a.$),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.I[e]=d)}a.xc("onPlayerCreated")};
261
+ Oq=function(a){var b,c;return _.H(function(d){if(1==d.a){if(a.N)return a.g.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.ea.off(document,Ng);a.trigger(new _.L(_.Pf));a.h&&a.h.release();return a.j?_.y(d,a.j.dispose(),3):d.F(2)}2!=d.a&&(a.j=null);if(a.a)return b=null,c=a.a.on(_.gg,function(e){b=e}),d["return"](a.xc(_.af).then(function(){a.a.stopForwardingEventsTo(a);return Promise.all([a.a.release(),a.G.release()])}).then(function(){a.g.debug("Releasing player completed");
262
+ b&&(a.g.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.gg,c);a.trigger(new _.L(Of))}));a.trigger(new _.L(Of));return d["return"](new Promise(function(e){return e()}))})};Rq=function(a,b,c){return a.K===_.Kb?Pq(b,c):Qq(a,b,c)};Qq=function(a,b,c){var d;return _.H(function(e){if((d=2===(a.a?a.a.canPlay(b[0],c):0))&&!a.S)return e["return"]({player:a.a,sourceIndex:0});a.S=!1;return e["return"](Sq(a,b,c))})};
263
+ Pq=function(a,b){var c=Qh(function(d){return d.f(_.Kb)&&a.every(function(e){return 2===d.canPlay(e,b)})});if(!c)throw new _.P(_.Q,7,7003,"No compatible player implementing playlist mode found!");return Promise.resolve({player:c.create(),sourceIndex:0})};
264
+ Sq=function(a,b,c){return new Promise(function(d,e){var f;if(b){for(var g=f=null,h=0;h<b.length;h++);h=Object.values(_.Nh);for(var l=0;l<b.length;l++)for(var m=0;m<h.length;m++){var n={Rb:h[m],confidence:h[m].canPlay(b[l],c)};if(null===f||f.confidence<n.confidence)f=n,g=l}f&&typeof g===_.k&&0<f.confidence?(_.Oh.debug("Player Factory '"+f.Rb.a()+"' can play",b[g]),f=new Mh(f.Rb,g)):(_.Oh.error("No compatible Player Factory found for sources:",b),f=null)}else f=null;f?(g=f.Rb.create(),d({player:g,sourceIndex:f.sourceIndex})):
265
+ (f=new _.L(_.re,{detail:new _.P(_.Q,7,7003)}),a.trigger(f),e(f))})};Uq=function(a){var b;return _.H(function(c){if(1==c.a){if(!a.a)return a.g.warn(Mb),c["return"]();b=a.a;if(!b.Hg)return a.g.warn(Rb),c["return"]();a.trigger(new _.L(Ke));return _.y(c,b.Hg(),2)}return _.y(c,_.Tq(a),0)})};
266
+ _.Wq=function(a,b,c){var d,e;return _.H(function(f){switch(f.a){case 1:if(a.L)throw new _.P(_.Q,7,7E3,"Player is already destroyed.");if(!a.h)throw new _.P(_.Q,7,7E3,"No surface associated with this player!");_.Un(rf);return _.y(f,a.release(),2);case 2:d=c||_.Dp(b);if(!b||0===d.length)throw new _.P(_.Q,7,7003,Eb);a.fa=d;a.f=_.cm(a.A,b,{source:d});a.N=!1;return _.y(f,Rq(a,d,a.f),3);case 3:e=f.f;_.Mq(a,e.player);a.a&&a.a.setSourceIndex(e.sourceIndex);Vq(a);a.a&&a.a.setCdnErrorCallback(a.J);a.j=Vp(a,
267
+ a.f).create(a);if(a.f.pauseWhenInBackground)a.ea.on(document,Ng,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});mm(a);return _.y(f,a.xc("onContentWillLoad",d[e.sourceIndex]),4);case 4:_.Un(qf),_.Vn("player.beforeLoad",rf,qf),_.A(f)}})};_.Xq=function(a){return _.H(function(b){a.h.getMedia()||a.h.getCastElement();a.trigger(new _.L(Ke));return _.y(b,Promise.all([a.a.load(a.f),a.j.load()]),0)})};
268
+ Zq=function(a){var b,c,d,e;_.H(function(f){if(1==f.a){b=[];if(a.f.remoteTextTracks)for(c=_.w(a.f.remoteTextTracks),d=c.next();!d.done;d=c.next())e=d.value,b.push(a.getTrackManager().addTextTrack(e));return _.y(f,Promise.all(b),2)}Yq(a);_.A(f)})};
269
+ Yq=function(a){var b=_.ji(a.f.preferredTextLanguage).filter(function(f){return f}),c=a.f.preferForcedSubtitles,d=a.getTrackManager().ia().filter(function(f){return c?f.kind===_.se:f.kind!==_.se});if(0===d.length)c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles are available.");else{if(c&&0===b.length){var e=a.getTrackManager().ma();e&&e.language?(e=_.dj(e.language||""),b.push(e)):(e=a.getTrackManager().Ja())&&e.language&&(e=_.dj(e.language||""),b.push(e));0===
267
270
  b.length&&a.g.warn("Forced subtitles are configured to be preferred, but neither the preferred text language is set, nor the audio or video track language is available to determine which forced subtitles language to select.")}b.some(function(f){var g=_.dj(f);if(f=d.find(function(h){h=_.dj(h.language||"");return _.ej(h,g)}))return a.getTrackManager().La(f),!0;c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles match the preferred languages: ",b);return!1})}};
268
- _.Qq=function(a){return _.H(function(b){if(1==b.a)return _.Un(of),Kq(a,{configuration:a.getConfiguration(),Z:a.uh(),drmInfo:a.getDrmInfo(),ii:Object.keys(a.I),isLive:a.isLive()}),Wq(a),nm(),_.y(b,a.xc("onContentLoaded"),2);if(3!=b.a)return a.f.autoplay?_.y(b,a.play(),3):b.F(3);_.Un(nf);_.Vn("player.afterLoad",of,nf);_.A(b)})};Sq=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.H(function(c){if(!a.Wc||!a.tf)return c.F(0);a.tf=!1;return _.y(c,a.Wc(b),0)})})};
269
- _.Xq=function(a){a&&(0<=Hq.indexOf(a)||Hq.push(a))};Yq=function(a,b,c){X.call(this,a,b,c);a={manifest:{timeline:{version:2},keepTimelineLive:!0},streaming:{preferNativeHlsOnSafari:!1,enableLiveEdgeChasing:!1,startAtSegmentBoundary:!1}};this.A=_.O.oa(this.A,a);this.f=_.O.oa(this.f,a);this.D=0;this.o=[];this.V=!1;this.w=null;this.H=[]};Zq=function(a){a.H.forEach(function(b){return b()});a.H=[]};
270
- $q=function(a,b){function c(f){a.D=a.o.findIndex(function(g){return g.id===f.id})}a.addEventListener(_.Wf,c);a.H.push(function(){a.removeEventListener(_.Wf,c)});if(b.endTime){var d=b.endTime,e=function(){a.getPosition()>=d&&(a.removeEventListener(_.sg,e),a.g.info("Playlist end time reached. Stopping playback."),a.trigger(new _.L(_.Vf)),a.pause())};a.addEventListener(_.sg,e);a.H.push(function(){a.removeEventListener(_.sg,e)})}};
271
- cr=function(a,b){var c,d;return _.H(function(e){switch(e.a){case 1:return _.B(e,2),_.Un(wf),a.K=_.Kb,a.aa=!1,c=b.slice(1).map(function(f){return{config:f,Z:_.Dp(f)}}),_.y(e,_.Tq(a,b[0]),4);case 4:return c.forEach(function(f){ar(a,f.config,f.Z)}),a.trigger(new _.L(Le)),_.y(e,a.a.setupPlaylist(b),5);case 5:return _.y(e,_.Qq(a),6);case 6:c.forEach(function(f){br(a,f.config,f.Z)});_.Un(vf);_.Vn("player.setupPlaylist",wf,vf);_.qh(e,0);break;case 2:d=_.E(e);if(a.l)throw a.g.info(wb),new _.P(_.Q,7,7E3);
272
- throw d;}})};dr=function(a,b){var c,d;return _.H(function(e){if(1==e.a)return _.B(e,2),_.Un(qf),c=_.Dp(b),ar(a,b,c),_.y(e,a.a.appendLoad(b),4);if(2!=e.a)return br(a,b,c),_.Un(pf),_.Vn("player.appendLoad",qf,pf),_.qh(e,0);d=_.E(e);if(a.l)throw a.g.info(wb),new _.P(_.Q,7,7E3,{id:b.id});throw d;})};br=function(a,b,c){Kq(a,{configuration:b,Z:c,drmInfo:a.getDrmInfo(),ii:Object.keys(a.I),isLive:c[0].isLive})};
273
- ar=function(a,b,c){if(0===c.length)throw new _.P(_.Q,7,7003,{message:Eb,id:b.id});if(1<c.length)throw new _.P(_.Q,7,7003,{message:"Multiple sources not supported!",id:b.id,source:c});if(2!==(a.a?a.a.canPlay(c[0],a.f):0))throw new _.P(_.Q,7,7003,{message:"Source not supported by the current player!",id:b.id,source:c[0]});};er=function(a){this.a=a.map(function(b){return{videoId:b.getSurface().getMedia().id,player:b,ke:!0,ready:Promise.resolve()}});this.g=new _.K("clpp.plist.PlayerPool")};
274
- hr=function(a){_.Vl.call(this);var b=this;this.o=_.O.oa({transition:_.hf,preloadMedia:!1},a);this.h=[];this.a=0;var c=fr(a.anchorId,this.o.config);this.w=new er(c);this.f=null;this.j=!1;this.l=new Map;this.A=a.toggleVisible;this.g=new _.K(Ld);this.w.a.forEach(function(d){return gr(b,d.player,!1)})};jr=function(a){return Promise.all(Array.from(a.l.keys()).map(function(b){return ir(a,b)}))};
275
- ir=function(a,b){var c;return _.H(function(d){if(1==d.a){c=a.l.get(b);if(!c)return d.F(0);a.g.info("Stop preloading item (index: "+b+")");return c.player?_.y(d,kr(a,c),3):d.F(3)}a.l["delete"](b);_.A(d)})};mr=function(a,b){return _.H(function(c){if(1==c.a)return a.g.info("Stop current playback (index: "+b.index+")"),b.player.pause(),gr(a,b.player,!1),_.y(c,kr(a,b),2);b.player=null;b.videoEl=null;b.role=lr;_.A(c)})};
276
- kr=function(a,b){return _.H(function(c){b.disposers.forEach(function(d){return d()});b.disposers=[];return b.player?_.y(c,a.w.release(b.player),0):c.F(0)})};pr=function(a,b){var c;return _.H(function(d){if(1==d.a)return _.y(d,a.w.get(),2);if(3!=d.a)return c=d.f,a.f=b,b.role=nr,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),gr(a,c,!0),_.y(d,c.load(b.config),3);or(a,b);return b.config.autoplay?d.F(0):_.y(d,c.play(),0)})};
277
- qr=function(a,b){return _.H(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==If){c.F(2);break}a.g.info(oc);_.B(c,3);return _.y(c,b.preloadPromise,5);case 5:_.qh(c,2);break;case 3:_.E(c);case 2:a.f=b;b.role=nr;gr(a,b.player,!0);if(b.state===Hf)return _.Un(Ef),a.o.preloadMedia?_.y(c,b.player.play(),11):_.y(c,Rq(b.player),11);if(b.state!==Gf){c.F(7);break}return _.y(c,b.player.load(b.config),7);case 11:_.Un(Af),_.Vn("playlist.next",Ef,Af);case 7:if(or(a,b),b.config.autoplay)c.F(0);
278
- else return _.y(c,b.player.play(),0)}})};or=function(a,b){if(a.o.autoplayNext){var c=function(){a.g.info("Automatically transition to next item");a.hi()};b.player.on(_.re,c);var d=b.player;b.disposers.push(function(){d.off(_.re,c)})}};sr=function(a){var b;return _.H(function(c){b=a.a+1;a.g.info("Preload following item (index: "+b+")");return _.y(c,rr(a,b),0)})};tr=function(a){var b;return _.H(function(c){b=a.a-1;a.g.info("Preload preceding item (index: "+b+")");return _.y(c,rr(a,b),0)})};
279
- ur=function(a){var b;_.H(function(c){if(0===a.a)return _.y(c,sr(a),0);if(a.a===a.h.length-1)return _.y(c,tr(a),0);b=[a.a-1,a.a+1];a.g.info("Preload items (indices: "+b+")");return _.y(c,Promise.all(b.map(function(d){return rr(a,d)})),0)})};
280
- rr=function(a,b){var c,d,e;return _.H(function(f){switch(f.a){case 1:return _.y(f,a.w.get(),2);case 2:return c=f.f,d=a.h[b],d.player=c,d.videoEl=c.getSurface().getMedia(),d.role=lr,d.state=If,a.trigger(new _.L(xg)),_.B(f,3),a.l.set(b,d),a.o.preloadMedia?(d.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (index: "+(b+")")),d.config.autoplay=!1),d.preloadPromise=c.load(d.config)):d.preloadPromise=c.preload(d.config),_.y(f,d.preloadPromise,5);case 5:d.state=
281
- Hf;a.trigger(new _.L(xg));_.qh(f,0);break;case 3:e=_.E(f),7001===e.code?(a.g.info("Preload aborted (index: "+b+")"),d.state=Ff):(a.g.warn("Preload failed (index: "+b+")",e),a.trigger(new _.L(_.se,{detail:e})),d.state=Gf),a.trigger(new _.L(xg)),_.A(f)}})};gr=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.info(ac+b),d.classList.add(Ed)):(a.g.info(kb+b),d.classList.remove(Ed)),a.A&&a.A(d,c))};
282
- vr=function(a){var b;return _.H(function(c){if(1==c.a)return _.y(c,a.w.destroy(),2);b=document.getElementById(a.o.anchorId);if(!b)return c["return"]();b.classList.remove(Bd);b.innerHTML="";_.A(c)})};
283
- fr=function(a,b){var c=document.getElementById(a);if(!c)throw Error("Anchor element not found");c.classList.add(Bd);return Array.from({length:3}).map(function(){var d=document.createElement(_.r);d.classList.add(Dd);var e=document.createElement(_.ae);e.classList.add(Cd);e.appendChild(d);c.appendChild(e);return new X(d,b)})};
284
- _.xr=function(a){if(wr.has(a))return wr.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);wr.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),wr.set(a,b),b):!1};yr=function(a){this.h=a;this.f={keepOriginalTimestamps:!0,remux:!1};this.a=new muxjs.mp4.Transmuxer(this.f)};
285
- zr=function(a,b){var c=b.replace(/mp2t/i,"mp4");a===_.bd&&(c=c.replace(_.r,_.bd));var d=/avc1\.(66|77|100)\.(\d+)/.exec(c);if(d){var e="avc1.",f=d[1],g=Number(d[2]);e=("66"===f?e+"4200":"77"===f?e+"4d00":e+"6400")+(g>>4).toString(16);e+=(g&15).toString(16);c=c.replace(d[0],e)}return c};
286
- Cr=function(a){_.Vl.call(this);var b=this;this.o=_.O.oa({Cl:2},a);this.j=[];var c=Ar(a.anchorEl,this.o.Cl+1,this.o.vk);this.l=new er(c);this.a=null;this.h=!1;this.f=new Map;this.A=!1;this.w=a.toggleVisible;this.g=new _.K("clpp.interstitial.MultiController");this.l.a.forEach(function(d){return Br(b,d.player,!1)})};
287
- Dr=function(a){var b;return _.H(function(c){if(1==c.a)return(b=a.a)?"loaded"===b.state?c.F(2):_.y(c,b.Ud,2):c["return"]();if(4!=c.a)return _.y(c,b.player.play(),4);b.state=_.xf;b.wc&&b.wc();_.A(c)})};Er=function(a,b){a.A=b;var c=a.a&&a.a.player;c&&Br(a,c,!b)};
288
- Fr=function(a,b){var c=b.transition;if(c){if(c.vc){var d=c.vc,e=function(){a.g.info("Transition onEnded to (ID: "+d+")");a.play(d)};b.player.on(_.re,e);b.disposers.push(function(){b.player.off(_.re,e)})}if(c.Rh){var f=function(l){var m=c.Rh.find(function(n){return n.cueId===l.detail.id});m&&(a.g.info("Transition onCue to (ID: "+m.itemId+")"),a.play(m.itemId))};b.player.on(_.hi,f);b.disposers.push(function(){b.player.off(_.hi,f)})}if(c.Xh){var g=c.Xh,h=function(){b.player.getPosition()>=g.position&&
289
- (a.g.info("Transition onPosition to (ID: "+g.itemId+")"),a.play(g.itemId))};b.player.on(_.sg,h);b.disposers.push(function(){b.player.off(_.sg,h)})}}};Ir=function(a){a.a&&(a.a.disposers.forEach(function(b){return b()}),a.a.disposers=[],Fr(a,a.a),Gr(a),Hr(a,a.a.next))};Gr=function(a){return Promise.all(Array.from(a.f.keys()).map(function(b){return Jr(a,b)}))};
290
- Jr=function(a,b){var c;return _.H(function(d){if(1==d.a){c=a.f.get(b);if(!c)return d.F(0);a.g.info("Stop preloading item (ID: "+b+")");return c.player?_.y(d,a.l.release(c.player),3):d.F(3)}a.f["delete"](b);_.A(d)})};Lr=function(a,b){var c;return _.H(function(d){if(1==d.a)return a.g.info("Stop current playback (ID: "+b.id+")"),b.disposers.forEach(function(e){return e()}),b.disposers=[],c=b.player,b.player=null,b.videoEl=null,b.role=Kr,c.pause(),_.y(d,a.l.release(c),2);Br(a,c,!1);_.A(d)})};
291
- Nr=function(a,b){return _.H(function(c){if(1==c.a)return _.y(c,Mr(a,b),2);if(3!=c.a)return b.config.autoplay?c.F(3):_.y(c,b.player.play(),3);b.state=_.xf;_.A(c)})};Mr=function(a,b){var c,d;return _.H(function(e){if(1==e.a)return _.y(e,a.l.get(),2);if(3!=e.a)return c=e.f,a.a=b,b.role=Or,a.a.player=c,a.a.videoEl=c.getSurface().getMedia(),Br(a,c,!0),b.primary&&a.trigger(new _.L(Kf,{detail:{player:c}})),b.state="loading",d=b,_.y(e,c.load(b.config),3);d.Ud=e.f;b.state="loaded";_.A(e)})};
292
- Pr=function(a,b){return _.H(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==If){c.F(2);break}a.g.info(oc);_.B(c,3);return _.y(c,b.preloadPromise,5);case 5:_.qh(c,2);break;case 3:_.E(c);case 2:a.a=b;b.role=Or;Br(a,b.player,!0);b.state="loading";if(b.state===Hf)return _.y(c,b.player.play(),7);if(b.state!==Gf){c.F(7);break}return _.y(c,b.player.load(b.config),7);case 7:if(b.config.autoplay){c.F(11);break}return _.y(c,b.player.play(),11);case 11:b.state=_.xf,_.A(c)}})};
293
- Hr=function(a,b){var c;_.H(function(d){if(0===b.length)return d["return"]();a.g.info("Preload items (IDs: "+b+")");c=a.j.filter(function(e){return b.includes(e.id)})||[];return _.y(d,Promise.all(c.map(function(e){return Qr(a,e)})),0)})};
294
- Qr=function(a,b){var c,d,e;return _.H(function(f){switch(f.a){case 1:return c=b.id,_.y(f,a.l.get(),2);case 2:return d=f.f,b.player=d,b.videoEl=d.getSurface().getMedia(),b.role=Kr,b.state=If,a.trigger(new _.L(xg)),_.B(f,3),a.f.set(c,b),b.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (ID: "+(c+")")),b.config.autoplay=!1),b.primary&&a.trigger(new _.L(Kf,{detail:{player:d}})),b.preloadPromise=d.load(b.config),_.y(f,b.preloadPromise,5);case 5:b.state=
295
- Hf;a.trigger(new _.L(xg));_.qh(f,0);break;case 3:e=_.E(f),7001===e.code?(a.g.info("Preload aborted (ID: "+c+")"),b.state=Ff):(a.g.warn("Preload failed (ID: "+c+")",e),a.trigger(new _.L(_.se,{detail:e})),b.state=Gf),a.trigger(new _.L(xg)),_.A(f)}})};
296
- Br=function(a,b,c){if(!a.A){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.info(ac+b),d.classList.add(Ed),d.classList.remove("clpp-hide")):(a.g.info(kb+b),d.classList.remove(Ed),d.classList.add("clpp-hide")),a.w&&a.w(d,c))}};Rr=function(a){var b;return _.H(function(c){if(1==c.a)return _.y(c,a.l.destroy(),2);b=a.o.anchorEl;if(!b)return c["return"]();b.classList.remove(Bd);b.innerHTML="";_.A(c)})};
297
- Ar=function(a,b,c){a.classList.add(Bd);return Array.from({length:b}).map(function(){var d=document.createElement(_.r);d.classList.add(Dd);var e=document.createElement(_.ae);e.classList.add(Cd);e.appendChild(d);a.appendChild(e);return new X(d,c)})};
298
- Xr=function(a){_.Vl.call(this);var b=this;this.l=new Sr;this.f=_.O.oa({prerollMarginSec:.5,resolutionOffsetSec:35,yospace:{enabled:!1}},a);this.g=new _.K(Jd);this.o=null;this.a=new Cr({vk:this.f.config,anchorEl:a.anchorEl,preloadMedia:!0});Er(this.a,!0);this.a.on(Be,function(c){var d=c.detail;d.primary&&(b.o=d.player.getDuration());b.trigger(new _.L(Tr,c));Ur(b);d.primary&&Vr(b,d.player)});this.j=[];this.a.on(Kf,function(c){b.trigger(new _.L(Wr,{detail:{player:c.detail.player}}))});this.h=[]};
299
- $r=function(a,b,c){var d,e,f,g,h,l,m,n;return _.H(function(p){switch(p.a){case 1:return b.source?_.y(p,a.unload(),2):(a.g.error("Config must be of type cl.api.PlayerConfiguration"),p["return"]());case 2:d=_.O.Na(b);if(!a.f.yospace.enabled){p.F(3);break}e=_.Dp(b);1!==e.length&&a.g.warn("Multiple sources found this is currently not supported, only the first one will be used.");f=e[0];return _.y(p,Yr(a.l,f.url),4);case 4:g=p.f,d.source={url:g,type:_.Fl};case 3:return a.a.je([{id:Lf,primary:!0,config:d,
300
- next:[]}]),_.y(p,a.a.load(Lf),5);case 5:h=a.a.Bb();if(!h||!h.ve())return a.g.error("Failed to get cue timeline after load"),p["return"]();l=h.ve();m=Array.from(l.cues());if(n=Zr(a,m,c))p.F(0);else if(Er(a.a,!1),c)p.F(0);else return _.y(p,Dr(a.a),0)}})};
301
- Zr=function(a,b,c){function d(g){return g.startTime<a.f.prerollMarginSec}var e=b.filter(function(g){return g.schemeIdUri===Rd&&g.Xa});a.g.info("Interstitial cues found",e);if(!as(a,e))return!1;b=e.find(d);var f=e.filter(function(g){return g.startTime<a.f.resolutionOffsetSec&&!d(g)});e=e.filter(function(g){return!(g.startTime<a.f.resolutionOffsetSec)});b&&bs(a,b,c);0<f.length&&f.forEach(function(g){return cs(a,g)});e.forEach(function(g){return ds(a,g)});a.trigger(new _.L(es,{detail:a.Dd()}));return!!b};
302
- ds=function(a,b){var c=b.Xa[xc];c={cueId:b.id,startTime:b.startTime,endTime:b.endTime,state:fs,ug:b.Xa[uc],vg:b.Xa[vc],Fa:null,resumePosition:null==c?b.endTime:b.startTime+c,playoutLimit:b.Xa[wc]};a.h.push(c);return c};
303
- bs=function(a,b,c){var d,e,f;_.H(function(g){if(1==g.a)return d=ds(a,b),_.y(g,gs(a,d),2);e=g.f;f=d.Fa?d.Fa.length:0;if(e&&0<f)return hs(a,d,c),g.F(0);e?a.g.warn("Preroll interstitial has no assets, skipping"):a.g.error("Preroll interstitial failed, skipping");Er(a.a,!1);return c?g.F(0):_.y(g,Dr(a.a),0)})};
304
- cs=function(a,b){var c,d,e,f;return _.H(function(g){if(1==g.a)return c=ds(a,b),a.g.info(lb+c.cueId+aa+(c.startTime+" s")),_.y(g,gs(a,c),2);if(d=g.f){e=a.a.getCurrentItem();if(!e)return a.g.error("Cannot schedule interstitial "+(c.cueId+", no primary content not found in playlist")),g["return"]();if(!e.player)return g["return"]();f=e.player;e.state===_.xf?is(a,c,f):e.wc=function(){is(a,c,f)}}_.A(g)})};Ur=function(a){a.j.forEach(function(b){return b()});a.j=[]};
305
- Vr=function(a,b){function c(){a.trigger(new _.L(js))}function d(){var e,f,g;return _.H(function(h){if(1==h.a){e=b.getPosition();f=ks(a,e);if(!f)return h.F(0);a.g.info(lb+f.cueId+aa+(f.startTime+" s"));return _.y(h,gs(a,f),3)}(g=h.f)&&is(a,f,b);_.A(h)})}b.addEventListener(_.sg,d);a.j.push(function(){b.removeEventListener(_.sg,d)});b.on(_.re,c);a.j.push(function(){b.off(_.re,c)})};
306
- as=function(a,b){for(var c=b.sort(function(m,n){return m.startTime-n.startTime}),d=a.f.resolutionOffsetSec,e=[],f=0;f<c.length-1;f++){var g=c[f],h=c[f+1];h&&h.startTime-g.endTime<d&&e.push(nb+g.id+" and "+h.id+" are too close to each other (less than "+(d+" s)."));h&&h.startTime<=g.endTime&&e.push(nb+g.id+" and "+h.id+" overlap.")}var l=[];b.forEach(function(m){var n=m.Xa[vc],p=m.Xa[wc];m.Xa[uc]||n?null!=p&&1>p&&a.g.warn(mb+m.id+" is invalid X-PLAYOUT-LIMIT is less than 1 s.",m):l.push(mb+m.id+" is invalid it contains neither X-ASSET-LIST nor X-ASSET-URI.")});
307
- 0<l.length?a.g.error("Invalid interstitials, all interstitials will be skipped. "+l.join(" ")):0<e.length&&a.g.warn("Unsupported format of interstitials, playback may not behave correctly. "+e.join(" "));return 0===l.length};ks=function(a,b){return a.h.find(function(c){var d=c.startTime-b;return c.state===fs&&0<d&&d<=a.f.resolutionOffsetSec})||null};
308
- gs=function(a,b){var c,d,e;return _.H(function(f){switch(f.a){case 1:b.state=ls;c={id:b.cueId,startTime:b.startTime,endTime:b.endTime,resumePosition:b.resumePosition,itemCount:-1,playoutLimit:b.playoutLimit};a.trigger(new _.L(ms,{detail:c}));if(!b.ug){b.vg?(b.Fa=[{URI:b.vg,DURATION:b.endTime-b.startTime}],b.state=ns):b.state=os;f.F(2);break}_.B(f,3,4);a.g.info("Load X-ASSET-LIST for "+b.cueId);a.trigger(new _.L(ps,{detail:c}));d=b;return _.y(f,qs(a,b.ug),6);case 6:d.Fa=f.f,b.state=ns,c.itemCount=
309
- b.Fa.length;case 4:_.rh(f);a.trigger(new _.L(rs,{detail:c}));_.sh(f,2);break;case 3:e=_.E(f);a.g.error("Failed to load X-ASSET-LIST",e);b.state=os;f.F(4);break;case 2:return f["return"](b.state===ns)}})};hs=function(a,b,c){var d,e;_.H(function(f){if(1==f.a){d=a.a.getCurrentItem();if(!d)return f["return"]();e=ss(a,b,"preroll");a.a.je(e);ts(a,d,b,e,!0);Ir(a.a);b.state=ns;return c?_.y(f,a.a.load(e[0].id),3):_.y(f,a.a.play(e[0].id),3)}Er(a.a,!1);_.A(f)})};
310
- is=function(a,b,c){if(b.Fa)if(0===b.Fa.length){var d=function(){c.seek(b.resumePosition)};c.on(_.hi,d);a.j.push(function(){c.off(_.hi,d)});a.g.info(lb+b.cueId+" scheduled to be skipped")}else{var e=a.a.getCurrentItem();if(e){var f=ss(a,b);a.a.je(f);var g=f[0].id;ts(a,e,b,f,!1);e.next=[g];e.transition={Rh:[{cueId:b.cueId,itemId:g}]};Ir(a.a);b.state=ns;a.g.info(lb+b.cueId+" scheduled for "+(b.startTime+" s"));a.trigger(new _.L(us,{detail:{id:b.cueId,startTime:b.startTime,endTime:b.endTime,resumePosition:b.resumePosition,
271
+ _.Tq=function(a){return _.H(function(b){if(1==b.a)return _.Un(nf),Nq(a,{configuration:a.getConfiguration(),Z:a.uh(),drmInfo:a.getDrmInfo(),ii:Object.keys(a.I),isLive:a.isLive()}),Zq(a),nm(),_.y(b,a.xc("onContentLoaded"),2);if(3!=b.a)return a.f.autoplay?_.y(b,a.play(),3):b.F(3);_.Un(mf);_.Vn("player.afterLoad",nf,mf);_.A(b)})};Vq=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.H(function(c){if(!a.Wc||!a.uf)return c.F(0);a.uf=!1;return _.y(c,a.Wc(b),0)})})};
272
+ _.$q=function(a){a&&(0<=Kq.indexOf(a)||Kq.push(a))};ar=function(a,b,c){X.call(this,a,b,c);a={manifest:{timeline:{version:2},keepTimelineLive:!0},streaming:{preferNativeHlsOnSafari:!1,enableLiveEdgeChasing:!1,startAtSegmentBoundary:!1}};this.A=_.O.oa(this.A,a);this.f=_.O.oa(this.f,a);this.D=0;this.o=[];this.V=!1;this.w=null;this.H=[]};br=function(a){a.H.forEach(function(b){return b()});a.H=[]};
273
+ cr=function(a,b){function c(f){a.D=a.o.findIndex(function(g){return g.id===f.id})}a.addEventListener(_.Vf,c);a.H.push(function(){a.removeEventListener(_.Vf,c)});if(b.endTime){var d=b.endTime,e=function(){a.getPosition()>=d&&(a.removeEventListener(_.rg,e),a.g.info("Playlist end time reached. Stopping playback."),a.trigger(new _.L(_.Uf)),a.pause())};a.addEventListener(_.rg,e);a.H.push(function(){a.removeEventListener(_.rg,e)})}};
274
+ fr=function(a,b){var c,d;return _.H(function(e){switch(e.a){case 1:return _.B(e,2),_.Un(vf),a.K=_.Kb,a.aa=!1,c=b.slice(1).map(function(f){return{config:f,Z:_.Dp(f)}}),_.y(e,_.Wq(a,b[0]),4);case 4:return c.forEach(function(f){dr(a,f.config,f.Z)}),a.trigger(new _.L(Ke)),_.y(e,a.a.setupPlaylist(b),5);case 5:return _.y(e,_.Tq(a),6);case 6:c.forEach(function(f){er(a,f.config,f.Z)});_.Un(uf);_.Vn("player.setupPlaylist",vf,uf);_.qh(e,0);break;case 2:d=_.E(e);if(a.l)throw a.g.info(wb),new _.P(_.Q,7,7E3);
275
+ throw d;}})};gr=function(a,b){var c,d;return _.H(function(e){if(1==e.a)return _.B(e,2),_.Un(pf),c=_.Dp(b),dr(a,b,c),_.y(e,a.a.appendLoad(b),4);if(2!=e.a)return er(a,b,c),_.Un(of),_.Vn("player.appendLoad",pf,of),_.qh(e,0);d=_.E(e);if(a.l)throw a.g.info(wb),new _.P(_.Q,7,7E3,{id:b.id});throw d;})};er=function(a,b,c){Nq(a,{configuration:b,Z:c,drmInfo:a.getDrmInfo(),ii:Object.keys(a.I),isLive:c[0].isLive})};
276
+ dr=function(a,b,c){if(0===c.length)throw new _.P(_.Q,7,7003,{message:Eb,id:b.id});if(1<c.length)throw new _.P(_.Q,7,7003,{message:"Multiple sources not supported!",id:b.id,source:c});if(2!==(a.a?a.a.canPlay(c[0],a.f):0))throw new _.P(_.Q,7,7003,{message:"Source not supported by the current player!",id:b.id,source:c[0]});};hr=function(a){this.a=a.map(function(b){return{videoId:b.getSurface().getMedia().id,player:b,ke:!0,ready:Promise.resolve()}});this.g=new _.K("clpp.plist.PlayerPool")};
277
+ kr=function(a){_.Vl.call(this);var b=this;this.o=_.O.oa({transition:_.gf,preloadMedia:!1},a);this.h=[];this.a=0;var c=ir(a.anchorId,this.o.config);this.w=new hr(c);this.f=null;this.j=!1;this.l=new Map;this.A=a.toggleVisible;this.g=new _.K(Kd);this.w.a.forEach(function(d){return jr(b,d.player,!1)})};mr=function(a){return Promise.all(Array.from(a.l.keys()).map(function(b){return lr(a,b)}))};
278
+ lr=function(a,b){var c;return _.H(function(d){if(1==d.a){c=a.l.get(b);if(!c)return d.F(0);a.g.info("Stop preloading item (index: "+b+")");return c.player?_.y(d,nr(a,c),3):d.F(3)}a.l["delete"](b);_.A(d)})};pr=function(a,b){return _.H(function(c){if(1==c.a)return a.g.info("Stop current playback (index: "+b.index+")"),b.player.pause(),jr(a,b.player,!1),_.y(c,nr(a,b),2);b.player=null;b.videoEl=null;b.role=or;_.A(c)})};
279
+ nr=function(a,b){return _.H(function(c){b.disposers.forEach(function(d){return d()});b.disposers=[];return b.player?_.y(c,a.w.release(b.player),0):c.F(0)})};sr=function(a,b){var c;return _.H(function(d){if(1==d.a)return _.y(d,a.w.get(),2);if(3!=d.a)return c=d.f,a.f=b,b.role=qr,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),jr(a,c,!0),_.y(d,c.load(b.config),3);rr(a,b);return b.config.autoplay?d.F(0):_.y(d,c.play(),0)})};
280
+ tr=function(a,b){return _.H(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Hf){c.F(2);break}a.g.info(nc);_.B(c,3);return _.y(c,b.preloadPromise,5);case 5:_.qh(c,2);break;case 3:_.E(c);case 2:a.f=b;b.role=qr;jr(a,b.player,!0);if(b.state===Gf)return _.Un(Af),a.o.preloadMedia?_.y(c,b.player.play(),11):_.y(c,Uq(b.player),11);if(b.state!==Ff){c.F(7);break}return _.y(c,b.player.load(b.config),7);case 11:_.Un(zf),_.Vn("playlist.next",Af,zf);case 7:if(rr(a,b),b.config.autoplay)c.F(0);
281
+ else return _.y(c,b.player.play(),0)}})};rr=function(a,b){if(a.o.autoplayNext){var c=function(){a.g.info("Automatically transition to next item");a.hi()};b.player.on(_.qe,c);var d=b.player;b.disposers.push(function(){d.off(_.qe,c)})}};vr=function(a){var b;return _.H(function(c){b=a.a+1;a.g.info("Preload following item (index: "+b+")");return _.y(c,ur(a,b),0)})};wr=function(a){var b;return _.H(function(c){b=a.a-1;a.g.info("Preload preceding item (index: "+b+")");return _.y(c,ur(a,b),0)})};
282
+ xr=function(a){var b;_.H(function(c){if(0===a.a)return _.y(c,vr(a),0);if(a.a===a.h.length-1)return _.y(c,wr(a),0);b=[a.a-1,a.a+1];a.g.info("Preload items (indices: "+b+")");return _.y(c,Promise.all(b.map(function(d){return ur(a,d)})),0)})};
283
+ ur=function(a,b){var c,d,e;return _.H(function(f){switch(f.a){case 1:return _.y(f,a.w.get(),2);case 2:return c=f.f,d=a.h[b],d.player=c,d.videoEl=c.getSurface().getMedia(),d.role=or,d.state=Hf,a.trigger(new _.L(xg)),_.B(f,3),a.l.set(b,d),a.o.preloadMedia?(d.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (index: "+(b+")")),d.config.autoplay=!1),d.preloadPromise=c.load(d.config)):d.preloadPromise=c.preload(d.config),_.y(f,d.preloadPromise,5);case 5:d.state=
284
+ Gf;a.trigger(new _.L(xg));_.qh(f,0);break;case 3:e=_.E(f),7001===e.code?(a.g.info("Preload aborted (index: "+b+")"),d.state=Bf):(a.g.warn("Preload failed (index: "+b+")",e),a.trigger(new _.L(_.re,{detail:e})),d.state=Ff),a.trigger(new _.L(xg)),_.A(f)}})};jr=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.info(ac+b),d.classList.add(Dd)):(a.g.info(kb+b),d.classList.remove(Dd)),a.A&&a.A(d,c))};
285
+ yr=function(a){var b;return _.H(function(c){if(1==c.a)return _.y(c,a.w.destroy(),2);b=document.getElementById(a.o.anchorId);if(!b)return c["return"]();b.classList.remove(Ad);b.innerHTML="";_.A(c)})};
286
+ ir=function(a,b){var c=document.getElementById(a);if(!c)throw Error("Anchor element not found");c.classList.add(Ad);return Array.from({length:3}).map(function(){var d=document.createElement(_.r);d.classList.add(Cd);var e=document.createElement(_.$d);e.classList.add(Bd);e.appendChild(d);c.appendChild(e);return new X(d,b)})};
287
+ _.Ar=function(a){if(zr.has(a))return zr.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);zr.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),zr.set(a,b),b):!1};Br=function(a){this.h=a;this.f={keepOriginalTimestamps:!0,remux:!1};this.a=new muxjs.mp4.Transmuxer(this.f)};
288
+ Cr=function(a,b){var c=b.replace(/mp2t/i,"mp4");a===_.ad&&(c=c.replace(_.r,_.ad));var d=/avc1\.(66|77|100)\.(\d+)/.exec(c);if(d){var e="avc1.",f=d[1],g=Number(d[2]);e=("66"===f?e+"4200":"77"===f?e+"4d00":e+"6400")+(g>>4).toString(16);e+=(g&15).toString(16);c=c.replace(d[0],e)}return c};
289
+ Fr=function(a){_.Vl.call(this);var b=this;this.o=_.O.oa({Cl:2},a);this.j=[];var c=Dr(a.anchorEl,this.o.Cl+1,this.o.vk);this.l=new hr(c);this.a=null;this.h=!1;this.f=new Map;this.A=!1;this.w=a.toggleVisible;this.g=new _.K("clpp.interstitial.MultiController");this.l.a.forEach(function(d){return Er(b,d.player,!1)})};
290
+ Gr=function(a){var b;return _.H(function(c){if(1==c.a)return(b=a.a)?"loaded"===b.state?c.F(2):_.y(c,b.Ud,2):c["return"]();if(4!=c.a)return _.y(c,b.player.play(),4);b.state=_.wf;b.wc&&b.wc();_.A(c)})};Hr=function(a,b){a.A=b;var c=a.a&&a.a.player;c&&Er(a,c,!b)};
291
+ Ir=function(a,b){var c=b.transition;if(c){if(c.vc){var d=c.vc,e=function(){a.g.info("Transition onEnded to (ID: "+d+")");a.play(d)};b.player.on(_.qe,e);b.disposers.push(function(){b.player.off(_.qe,e)})}if(c.Rh){var f=function(l){var m=c.Rh.find(function(n){return n.cueId===l.detail.id});m&&(a.g.info("Transition onCue to (ID: "+m.itemId+")"),a.play(m.itemId))};b.player.on(_.hi,f);b.disposers.push(function(){b.player.off(_.hi,f)})}if(c.Xh){var g=c.Xh,h=function(){b.player.getPosition()>=g.position&&
292
+ (a.g.info("Transition onPosition to (ID: "+g.itemId+")"),a.play(g.itemId))};b.player.on(_.rg,h);b.disposers.push(function(){b.player.off(_.rg,h)})}}};Lr=function(a){a.a&&(a.a.disposers.forEach(function(b){return b()}),a.a.disposers=[],Ir(a,a.a),Jr(a),Kr(a,a.a.next))};Jr=function(a){return Promise.all(Array.from(a.f.keys()).map(function(b){return Mr(a,b)}))};
293
+ Mr=function(a,b){var c;return _.H(function(d){if(1==d.a){c=a.f.get(b);if(!c)return d.F(0);a.g.info("Stop preloading item (ID: "+b+")");return c.player?_.y(d,a.l.release(c.player),3):d.F(3)}a.f["delete"](b);_.A(d)})};Or=function(a,b){var c;return _.H(function(d){if(1==d.a)return a.g.info("Stop current playback (ID: "+b.id+")"),b.disposers.forEach(function(e){return e()}),b.disposers=[],c=b.player,b.player=null,b.videoEl=null,b.role=Nr,c.pause(),_.y(d,a.l.release(c),2);Er(a,c,!1);_.A(d)})};
294
+ Qr=function(a,b){return _.H(function(c){if(1==c.a)return _.y(c,Pr(a,b),2);if(3!=c.a)return b.config.autoplay?c.F(3):_.y(c,b.player.play(),3);b.state=_.wf;_.A(c)})};Pr=function(a,b){var c,d;return _.H(function(e){if(1==e.a)return _.y(e,a.l.get(),2);if(3!=e.a)return c=e.f,a.a=b,b.role=Rr,a.a.player=c,a.a.videoEl=c.getSurface().getMedia(),Er(a,c,!0),b.primary&&a.trigger(new _.L(Jf,{detail:{player:c}})),b.state="loading",d=b,_.y(e,c.load(b.config),3);d.Ud=e.f;b.state="loaded";_.A(e)})};
295
+ Sr=function(a,b){return _.H(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Hf){c.F(2);break}a.g.info(nc);_.B(c,3);return _.y(c,b.preloadPromise,5);case 5:_.qh(c,2);break;case 3:_.E(c);case 2:a.a=b;b.role=Rr;Er(a,b.player,!0);b.state="loading";if(b.state===Gf)return _.y(c,b.player.play(),7);if(b.state!==Ff){c.F(7);break}return _.y(c,b.player.load(b.config),7);case 7:if(b.config.autoplay){c.F(11);break}return _.y(c,b.player.play(),11);case 11:b.state=_.wf,_.A(c)}})};
296
+ Kr=function(a,b){var c;_.H(function(d){if(0===b.length)return d["return"]();a.g.info("Preload items (IDs: "+b+")");c=a.j.filter(function(e){return b.includes(e.id)})||[];return _.y(d,Promise.all(c.map(function(e){return Tr(a,e)})),0)})};
297
+ Tr=function(a,b){var c,d,e;return _.H(function(f){switch(f.a){case 1:return c=b.id,_.y(f,a.l.get(),2);case 2:return d=f.f,b.player=d,b.videoEl=d.getSurface().getMedia(),b.role=Nr,b.state=Hf,a.trigger(new _.L(xg)),_.B(f,3),a.f.set(c,b),b.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (ID: "+(c+")")),b.config.autoplay=!1),b.primary&&a.trigger(new _.L(Jf,{detail:{player:d}})),b.preloadPromise=d.load(b.config),_.y(f,b.preloadPromise,5);case 5:b.state=
298
+ Gf;a.trigger(new _.L(xg));_.qh(f,0);break;case 3:e=_.E(f),7001===e.code?(a.g.info("Preload aborted (ID: "+c+")"),b.state=Bf):(a.g.warn("Preload failed (ID: "+c+")",e),a.trigger(new _.L(_.re,{detail:e})),b.state=Ff),a.trigger(new _.L(xg)),_.A(f)}})};
299
+ Er=function(a,b,c){if(!a.A){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.info(ac+b),d.classList.add(Dd),d.classList.remove("clpp-hide")):(a.g.info(kb+b),d.classList.remove(Dd),d.classList.add("clpp-hide")),a.w&&a.w(d,c))}};Ur=function(a){var b;return _.H(function(c){if(1==c.a)return _.y(c,a.l.destroy(),2);b=a.o.anchorEl;if(!b)return c["return"]();b.classList.remove(Ad);b.innerHTML="";_.A(c)})};
300
+ Dr=function(a,b,c){a.classList.add(Ad);return Array.from({length:b}).map(function(){var d=document.createElement(_.r);d.classList.add(Cd);var e=document.createElement(_.$d);e.classList.add(Bd);e.appendChild(d);a.appendChild(e);return new X(d,c)})};
301
+ $r=function(a){_.Vl.call(this);var b=this;this.l=new Vr;this.f=_.O.oa({prerollMarginSec:.5,resolutionOffsetSec:35,yospace:{enabled:!1}},a);this.g=new _.K(Id);this.o=null;this.a=new Fr({vk:this.f.config,anchorEl:a.anchorEl,preloadMedia:!0});Hr(this.a,!0);this.a.on(Ae,function(c){var d=c.detail;d.primary&&(b.o=d.player.getDuration());b.trigger(new _.L(Wr,c));Xr(b);d.primary&&Yr(b,d.player)});this.j=[];this.a.on(Jf,function(c){b.trigger(new _.L(Zr,{detail:{player:c.detail.player}}))});this.h=[]};
302
+ cs=function(a,b,c){var d,e,f,g,h,l,m,n;return _.H(function(p){switch(p.a){case 1:return b.source?_.y(p,a.unload(),2):(a.g.error("Config must be of type cl.api.PlayerConfiguration"),p["return"]());case 2:d=_.O.Na(b);if(!a.f.yospace.enabled){p.F(3);break}e=_.Dp(b);1!==e.length&&a.g.warn("Multiple sources found this is currently not supported, only the first one will be used.");f=e[0];return _.y(p,as(a.l,f.url),4);case 4:g=p.f,d.source={url:g,type:_.Fl};case 3:return a.a.je([{id:Kf,primary:!0,config:d,
303
+ next:[]}]),_.y(p,a.a.load(Kf),5);case 5:h=a.a.Bb();if(!h||!h.we())return a.g.error("Failed to get cue timeline after load"),p["return"]();l=h.we();m=Array.from(l.cues());if(n=bs(a,m,c))p.F(0);else if(Hr(a.a,!1),c)p.F(0);else return _.y(p,Gr(a.a),0)}})};
304
+ bs=function(a,b,c){function d(g){return g.startTime<a.f.prerollMarginSec}var e=b.filter(function(g){return g.schemeIdUri===Qd&&g.Xa});a.g.info("Interstitial cues found",e);if(!ds(a,e))return!1;b=e.find(d);var f=e.filter(function(g){return g.startTime<a.f.resolutionOffsetSec&&!d(g)});e=e.filter(function(g){return!(g.startTime<a.f.resolutionOffsetSec)});b&&es(a,b,c);0<f.length&&f.forEach(function(g){return fs(a,g)});e.forEach(function(g){return gs(a,g)});a.trigger(new _.L(hs,{detail:a.Dd()}));return!!b};
305
+ gs=function(a,b){var c=b.Xa[wc];c={cueId:b.id,startTime:b.startTime,endTime:b.endTime,state:is,ug:b.Xa[tc],vg:b.Xa[uc],Fa:null,resumePosition:null==c?b.endTime:b.startTime+c,playoutLimit:b.Xa[vc]};a.h.push(c);return c};
306
+ es=function(a,b,c){var d,e,f;_.H(function(g){if(1==g.a)return d=gs(a,b),_.y(g,js(a,d),2);e=g.f;f=d.Fa?d.Fa.length:0;if(e&&0<f)return ks(a,d,c),g.F(0);e?a.g.warn("Preroll interstitial has no assets, skipping"):a.g.error("Preroll interstitial failed, skipping");Hr(a.a,!1);return c?g.F(0):_.y(g,Gr(a.a),0)})};
307
+ fs=function(a,b){var c,d,e,f;return _.H(function(g){if(1==g.a)return c=gs(a,b),a.g.info(lb+c.cueId+aa+(c.startTime+" s")),_.y(g,js(a,c),2);if(d=g.f){e=a.a.getCurrentItem();if(!e)return a.g.error("Cannot schedule interstitial "+(c.cueId+", no primary content not found in playlist")),g["return"]();if(!e.player)return g["return"]();f=e.player;e.state===_.wf?ls(a,c,f):e.wc=function(){ls(a,c,f)}}_.A(g)})};Xr=function(a){a.j.forEach(function(b){return b()});a.j=[]};
308
+ Yr=function(a,b){function c(){a.trigger(new _.L(ms))}function d(){var e,f,g;return _.H(function(h){if(1==h.a){e=b.getPosition();f=ns(a,e);if(!f)return h.F(0);a.g.info(lb+f.cueId+aa+(f.startTime+" s"));return _.y(h,js(a,f),3)}(g=h.f)&&ls(a,f,b);_.A(h)})}b.addEventListener(_.rg,d);a.j.push(function(){b.removeEventListener(_.rg,d)});b.on(_.qe,c);a.j.push(function(){b.off(_.qe,c)})};
309
+ ds=function(a,b){for(var c=b.sort(function(m,n){return m.startTime-n.startTime}),d=a.f.resolutionOffsetSec,e=[],f=0;f<c.length-1;f++){var g=c[f],h=c[f+1];h&&h.startTime-g.endTime<d&&e.push(nb+g.id+" and "+h.id+" are too close to each other (less than "+(d+" s)."));h&&h.startTime<=g.endTime&&e.push(nb+g.id+" and "+h.id+" overlap.")}var l=[];b.forEach(function(m){var n=m.Xa[uc],p=m.Xa[vc];m.Xa[tc]||n?null!=p&&1>p&&a.g.warn(mb+m.id+" is invalid X-PLAYOUT-LIMIT is less than 1 s.",m):l.push(mb+m.id+" is invalid it contains neither X-ASSET-LIST nor X-ASSET-URI.")});
310
+ 0<l.length?a.g.error("Invalid interstitials, all interstitials will be skipped. "+l.join(" ")):0<e.length&&a.g.warn("Unsupported format of interstitials, playback may not behave correctly. "+e.join(" "));return 0===l.length};ns=function(a,b){return a.h.find(function(c){var d=c.startTime-b;return c.state===is&&0<d&&d<=a.f.resolutionOffsetSec})||null};
311
+ js=function(a,b){var c,d,e;return _.H(function(f){switch(f.a){case 1:b.state=os;c={id:b.cueId,startTime:b.startTime,endTime:b.endTime,resumePosition:b.resumePosition,itemCount:-1,playoutLimit:b.playoutLimit};a.trigger(new _.L(ps,{detail:c}));if(!b.ug){b.vg?(b.Fa=[{URI:b.vg,DURATION:b.endTime-b.startTime}],b.state=qs):b.state=rs;f.F(2);break}_.B(f,3,4);a.g.info("Load X-ASSET-LIST for "+b.cueId);a.trigger(new _.L(ss,{detail:c}));d=b;return _.y(f,ts(a,b.ug),6);case 6:d.Fa=f.f,b.state=qs,c.itemCount=
312
+ b.Fa.length;case 4:_.rh(f);a.trigger(new _.L(us,{detail:c}));_.sh(f,2);break;case 3:e=_.E(f);a.g.error("Failed to load X-ASSET-LIST",e);b.state=rs;f.F(4);break;case 2:return f["return"](b.state===qs)}})};ks=function(a,b,c){var d,e;_.H(function(f){if(1==f.a){d=a.a.getCurrentItem();if(!d)return f["return"]();e=vs(a,b,"preroll");a.a.je(e);ws(a,d,b,e,!0);Lr(a.a);b.state=qs;return c?_.y(f,a.a.load(e[0].id),3):_.y(f,a.a.play(e[0].id),3)}Hr(a.a,!1);_.A(f)})};
313
+ ls=function(a,b,c){if(b.Fa)if(0===b.Fa.length){var d=function(){c.seek(b.resumePosition)};c.on(_.hi,d);a.j.push(function(){c.off(_.hi,d)});a.g.info(lb+b.cueId+" scheduled to be skipped")}else{var e=a.a.getCurrentItem();if(e){var f=vs(a,b);a.a.je(f);var g=f[0].id;ws(a,e,b,f,!1);e.next=[g];e.transition={Rh:[{cueId:b.cueId,itemId:g}]};Lr(a.a);b.state=qs;a.g.info(lb+b.cueId+" scheduled for "+(b.startTime+" s"));a.trigger(new _.L(xs,{detail:{id:b.cueId,startTime:b.startTime,endTime:b.endTime,resumePosition:b.resumePosition,
311
314
  itemCount:f.length,playoutLimit:b.playoutLimit}}))}}};
312
- ss=function(a,b,c){c=void 0===c?"":c;var d=0,e=b.Fa.map(function(l,m){var n=b.cueId+"-"+m,p=m===b.Fa.length-1?Lf:b.cueId+"-"+(m+1);d+=l.DURATION;n={id:n,config:{source:{url:l.URI,type:_.Fl}},next:[p],transition:{vc:p},duration:l.DURATION,ah:d,Zn:b.cueId};return a.f.interstitialAssetConverter?a.f.interstitialAssetConverter(n):n});e.forEach(function(l,m){l.wc=function(){a.g.info(Pb+l.id,l);a.trigger(new _.L(vs,{detail:{id:l.id,podId:b.cueId,uri:l.config.source.url,duration:l.duration,podOrder:m+1,podCount:b.Fa.length}}))}});
313
- if(null!=b.playoutLimit){var f=b.playoutLimit;a.g.info("Playout limit for "+b.cueId+" is "+(f+" s"));e=e.filter(function(l){return l.ah-l.duration<=f});var g=e[e.length-1],h=Math.abs(g.ah-f);1>h?g.transition.vc=Lf:(g.transition.vc=void 0,g.transition.Xh={position:g.duration-h,itemId:Lf});g.next=[Lf]}e[0].wc=function(){a.g.info("Playing interstitial "+c+" "+b.cueId+" with "+(b.Fa.length+" assets and will resume primary content at ")+(b.resumePosition+" s."),e);a.g.info(Pb+e[0].id,e[0]);a.trigger(new _.L(ws,
314
- {detail:{id:b.cueId,startTime:b.startTime,endTime:b.endTime,resumePosition:b.resumePosition,itemCount:e.length,playoutLimit:b.playoutLimit}}));a.trigger(new _.L(vs,{detail:{id:e[0].id,podId:b.cueId,uri:b.Fa[0].URI,duration:b.Fa[0].DURATION,podOrder:1,podCount:b.Fa.length}}))};return e};
315
- ts=function(a,b,c,d,e){b.wc=function(){a.g.info("Resuming primary content at "+(b.config.startTime+" s."));a.trigger(new _.L(xs,{detail:{id:c.cueId}}));c.state=ys;a.a.removeItems(d.map(function(f){return f.id}));b.next=[];e&&a.trigger(new _.L(zs))};b.config.startTime=c.resumePosition};
316
- qs=function(a,b){var c,d,e,f,g,h;return _.H(function(l){if(1==l.a){c=a.a.Bb();if(!c)throw Error("No player found");d=c.getNetworkEngine();e=_.Jj(b);return _.y(l,ck(d,e),2)}f=l.f;g=As(f);if(!g)throw new _.Bi("Invalid X-ASSET-LIST list response");h=f;return l["return"](Promise.resolve(h.ASSETS))})};As=function(a){return a&&a.ASSETS&&Array.isArray(a.ASSETS)?a.ASSETS.every(function(b){return typeof b.URI===_.kg&&typeof b.DURATION===_.k}):!1};Sr=function(){this.a=null};
317
- Yr=function(a,b){var c=Bs,d;return _.H(function(e){if(1==e.a){a.a=null;if(typeof YospaceAdManagement!==_.Ye)throw new _.P(_.Q,7,7003,"Yospace SDK not found.");if(typeof b!==_.kg)throw new _.P(_.Q,7,7003,"Yospace URL must be a string.");a:switch(c){case Bs:var f=YospaceAdManagement.SessionVOD.create(b);break a;case Cs:f=YospaceAdManagement.SessionLive.create(b);break a;case Ds:f=YospaceAdManagement.SessionDVRLive.create(b);break a;default:throw new _.P(_.Q,7,7003,"Yospace stream type unknown "+c+".");
318
- }return _.y(e,f,2)}d=e.f;if(d.getSessionState()!==YospaceAdManagement.SessionState.INITIALISED)throw new _.P(_.Q,7,7003,"Yospace session failed to initialize");a.a=d;return e["return"](d.getPlaybackUrl())})};Es=function(){};Fs=function(){};Gs=function(){};Hs=function(){};Up=function(){};Is=function(){};_.Js=function(){};Ks=function(){this.a=null;this.g=new _.K("clpp.drm.eme.StandardEmeManager")};Ls=function(){};Ms=function(){this.size=0;this.a=void 0;this.g=new _.K("clpp.drm.eme.MediaKeyStatusMap")};
319
- Ns=function(a,b){a.size=void 0===b?0:1;a.g.debug("Setting key status to",b);a.a=b};Os=function(){};Ps=function(){};Qs=function(){this.a=this.f=null};
320
- Rs=function(a,b){this.keySystem=a;if(a.startsWith(_.Qd))for(var c=_.w(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.Sf)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.ef,distinctiveIdentifier:_.ef,initDataTypes:e.initDataTypes,sessionTypes:[pg],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=_.w(e.audioCapabilities),l=h.next();!l.done;l=h.next())l=l.value,l.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&
321
- (d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.w(e.videoCapabilities),l=e.next();!l.done;l=e.next())h=l.value,h.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,h.contentType.split(";")[0])&&(d.videoCapabilities.push(h),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,_.Jg));d=g?d:null}if(d){this.a=d;return}}c=Error(kc);c.name=Jb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
322
- Ss=function(a){this.f=null;this.h=new WebKitMediaKeys(a);this.a=new _.Uh;this.j=0;this.g=new _.K(Id);this.g.info("Created Media Keys for "+a)};
323
- Ts=function(a,b){a.f=b;_.Xh(a.a);if(!b)return Promise.resolve();a.a.on(b,pe,function(c){_.Kh("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);"MediaEncryptedEvent"in window&&c instanceof MediaEncryptedEvent&&(a.g.info("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.a.on(b,Vg,function(c){a.g.debug("Handle webkitNeedKey event");c=_.lj(c.initData);if(_.sj(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
324
- c=_.S.oc(c.subarray(4),!0);c=_.S.Va(c);var d=new Event(pe);d.initDataType="skd";d.initData=tj(c);a.f.dispatchEvent(d)});kp(b,HTMLMediaElement.HAVE_METADATA,a.a,function(){return b.webkitSetMediaKeys(a.h)});return Promise.resolve()};Us=function(a,b){_.Vl.call(this);this.a=null;this.o=a;this.f=this.h=null;this.j=new _.Uh;this.sessionId=b;this.expiration=NaN;this.closed=new _.Oj;this.l=!1;this.keyStatuses=new Ms;this.g=new _.K(Id)};Vs=function(a,b){Ns(a.keyStatuses,b);a.dispatchEvent(new _.L(Ce))};
325
- Ws=function(){};Xs=function(){this.f=this.a=null;this.h="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.h="webkit")};
326
- Ys=function(a,b,c,d){this.h=a;this.a=this.keySystem=c;a=!1;c===_.ff&&(this.a=Rg,a=!1);var e=!1;d=_.w(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[],h=[],l=!1;if(f.audioCapabilities)for(var m=_.w(f.audioCapabilities),n=m.next();!n.done;n=m.next())n=n.value,n.contentType&&(l=!0,b.canPlayType(n.contentType.split(";")[0],this.a)&&(g.push(n),e=!0));if(f.videoCapabilities)for(g=_.w(f.videoCapabilities),n=g.next();!n.done;n=g.next())m=n.value,m.contentType&&(l=!0,b.canPlayType(m.contentType,
327
- this.a)&&(h.push(m),e=!0));l||(e=b.canPlayType(_.Jg,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.Sf||a||(e=!1);if(e){this.f=f;return}}b=kc;if(c===_.ff||c===_.Ud)b="None of the requested configurations were supported.";c=Error(b);c.name=Jb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};Zs=function(a,b){this.h=a;this.o=b;this.a=null;this.f=new _.Uh;this.j=[];this.l=new Map};
328
- bt=function(a,b){a.a=b;_.Xh(a.f);b&&(a.f.on(b,a.h+"needkey",function(c){var d=new Event(pe);d.initDataType=_.ud;d.initData=tj(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.h+"keymessage",function(c){var d=$s(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.L(_.Qe,{messageType:e?Fe:Ee,message:c.message});_.Kh("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.Lh("Session not found",c.sessionId)}),a.f.on(b,a.h+"keyadded",function(c){(c=
329
- $s(a,c.sessionId))&&c.ready()}),a.f.on(b,a.h+"keyerror",function(c){var d=$s(a,c.sessionId);if(d){var e=Error("EME v0.1b key error"),f=c.errorCode;f.systemCode=c.systemCode;e.errorCode=f;!c.sessionId&&d.f?(45===c.systemCode&&(e.message="Unsupported session type."),d.f.reject(e),d.f=null):c.sessionId&&d.a?(d.a.reject(e),d.a=null):(e=c.systemCode,c.errorCode.code===MediaKeyError.MEDIA_KEYERR_OUTPUT?at(d,_.gf):1===e?at(d,"expired"):at(d,_.Ae))}}))};
330
- $s=function(a,b){var c=a.l.get(b);return c?c:(c=a.j.shift())?(c.sessionId=b,a.l.set(b,c),c):null};ct=function(a,b,c,d){_.Vl.call(this);this.w=a;this.j=b;this.o=!1;this.a=this.f=null;this.h=c;this.l=d;this.sessionId="";this.expiration=NaN;this.closed=new _.Oj;this.keyStatuses=new Ms};
331
- et=function(a,b,c){if(a.o)return Promise.reject(Error("The session is already initialized."));a.o=!0;try{if(a.l===_.kf)if(c)var d=_.lj(_.S.Va("LOAD_SESSION|"+c));else{var e=_.S.Va("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.lj(b),e.byteLength);d=f}else d=_.lj(b)}catch(h){return Promise.reject(h)}a.f=new _.Oj;var g=dt(a,"generateKeyRequest");try{a.j[g](a.h,d)}catch(h){if(h.name!==pb)return a.f=null,Promise.reject(h);(new _.Wk(function(){try{a.j[g](a.h,d)}catch(l){a.f.reject(l),
332
- a.f=null}})).da(.01)}return a.f};ft=function(a,b,c){if(a.a)a.a.then(function(){return ft(a,b,c)})["catch"](function(){return ft(a,b,c)});else{a.a=b;if(a.h===Rg){var d=_.S.ba(c);var e=JSON.parse(d);"oct"!==e.keys[0].kty&&(a.a.reject(Error("Response is not a valid JSON Web Key Set.")),a.a=null);d=_.xj(e.keys[0].k);e=_.xj(e.keys[0].kid)}else d=_.lj(c),e=null;var f=dt(a,"addKey");try{a.j[f](a.h,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};at=function(a,b){Ns(a.keyStatuses,b);a.dispatchEvent(new _.L(Ce))};
333
- dt=function(a,b){return a.w?a.w+b.charAt(0).toUpperCase()+b.slice(1):b};gt=function(){};
334
- ht=function(a,b,c,d,e){_.Bm.call(this,jb);this.l=a;this.j=b;this.h=c;this.a=d;this.o=e;this.g=new _.K(Hd);_.S.empty(this.l)?this.g.warn(_.sc):this.Ta(_.Ud,{licenseUrl:this.l,videoRobustness:[_.Yb,void 0],audioRobustness:[_.Xb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.Wd.bind(this)}});_.S.empty(this.j)?this.g.warn(_.Lb):this.Ta(_.Sd,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.Wd.bind(this)}});
335
- _.S.empty(this.h)?this.g.warn(_.db):_.S.empty(this.a)?this.g.warn(_.cb):this.Ta(_.Qd,{licenseUrl:this.h,certificateUrl:this.a,modifiers:{licenseRequest:this.Th.bind(this),licenseResponse:this.Uh.bind(this),certificateRequest:this.Wd.bind(this),extractContentId:this.gh.bind(this)}})};it=function(){};jt=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.ve)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
336
- kt=function(a){a=a.target;if(a.webkitPresentationMode===lf){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement===a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)};lt=function(){return this.webkitSupportsPresentationMode(lf)?(this.webkitSetPresentationMode(lf),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
337
- mt=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};nt=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};ot=function(a,b,c){return new window.TextTrackCue(a,b,c)};
338
- pt=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};rt=function(a,b,c){if("input"===a)switch(this.type){case "range":a=xd}qt.call(this,a,b,c)};tt=function(){this.a=st()};ut=function(a){return st()-a.a};vt=function(a){var b=new tt;b.a=a.a;return b};st=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.wt=function(a){var b=[];a=_.w(a);for(var c=a.next();!c.done;c=a.next()){c=_.w(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};
339
- xt=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.h=b;this.f=0};yt=function(a,b){var c=a.f+b.byteLength;if(c>a.a.byteLength){var d=a.a;a.a=new Uint8Array(Math.max(Math.ceil(a.a.buffer.byteLength*a.h),c));a.a.set(d)}a.a.set(b,a.f);a.f+=b.byteLength};_.zt=function(a,b,c){this.h=a;this.j=b;this.f=c||this.h.getMedia();this.a=null};_.Bt=function(){this.a=new Blob([At],{type:_.Jg})};_.Ct=function(a,b,c,d){this.id=a;this.f=b;this.a=c;this.h=d};_.Dt=function(){this.a=[];this.f=-1;this.h=null};
340
- _.Ft=function(a,b,c,d){var e,f;return _.H(function(g){if(1==g.a)return _.B(g,2),_.y(g,Et(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.E(g);f.a(_.Q);throw f;})};
341
- Et=function(a,b,c,d){var e,f,g,h;return _.H(function(l){if(1==l.a){if(d){if(e=_.Gt[d.toLowerCase()])return l["return"](e);_.Fh("Could not determine manifest type using MIME type ",d)}if(f=_.Ht(a)){if(g=_.It[f])return l["return"](g);_.Fh("Could not determine manifest type for extension ",f)}else _.Fh("Could not find extension for ",a);return d?l.F(2):_.y(l,Jt(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(h=_.Gt[d])return l["return"](h);_.Fh("Could not determine manifest type using MIME type",d)}throw new _.P(_.Q,
342
- 4,4E3,{url:a});})};Jt=function(a,b,c){var d,e,f;return _.H(function(g){if(1==g.a)return d=_.Jj(a),Hj(d,c),d.type=1,d.method="HEAD",_.y(g,b.fetch(d).P,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.Ht=function(a){a=(new _.Gi(a)).Ba.split("/").pop().split(".");return 1===a.length?"":a.pop().toLowerCase()};Kt=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.h=new tt};
343
- Mt=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(Lt(a,d),Mj(c,d.byteLength,ut(a.h)),a.h.a=st());return e?(e=a.a.buffer,a.a.byteLength!==a.f&&(e=e.slice(0,a.f)),Promise.resolve(e)):Promise.resolve().then(function(){return Mt(a,b,c)})})};Lt=function(a,b){var c=a.f+b.byteLength;if(a.a.byteLength<c){for(var d=a.a.byteLength;d<c;)d*=2;c=new Uint8Array(d);c.set(a.a);a.a=c}a.a.set(b,a.f);a.f+=b.byteLength};
344
- Yj=function(a){var b=a.uris[a.uriIndex],c=new Nt,d=new tt,e=vt(d),f=0,g,h=new _.Oj;c.open(a.method,b,!0);c.responseType="arraybuffer";c.timeout=a.timeout;c.withCredentials=a.allowCrossSiteCredentials;var l=!1,m=!1;c.onreadystatechange=function(p){p=p.target;p.readyState>=XMLHttpRequest.LOADING&&0===f&&(g=ut(e));p.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!l&&(p=p.getResponseHeader(xa),Lj(a,p),l=!0)};c.onload=function(p){p=p.target;var q=(p.getAllResponseHeaders()||"").trim().split("\r\n"),u={};
345
- q=_.w(q);for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),u[v[0].toLowerCase()]=v.slice(1).join(": ");try{var z=ut(e);m||Mj(a,p.response?p.response.length:0,z);var C=_.Kj(u,p.response,p.status,b,p.responseURL,a,z,g);a.rateLimitBps?Nj(a.rateLimitBps,ut(e),a.bytesLoaded).then(function(){h.resolve(C)}):h.resolve(C)}catch(I){h.reject(I)}};c.onerror=function(p){p=p.target;if(0>=p.status)h.reject(new _.P(1,1,1002,{url:b,request:a,status:p.status}));else{var q=p.getAllResponseHeaders(),u={};if(q){q=
346
- _.w(q.trim().split("\r\n"));for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),u[v[0].toLowerCase()]=v.slice(1).join(": ")}p=_.Kj(u,p.response,p.status,b,p.responseURL,a,ut(e),g);h.resolve(p)}};c.ontimeout=function(){h.reject(new _.P(1,1,1003,{url:b,request:a}))};c.onprogress=function(p){var q=ut(d);d.a=st();if(100<q||p.lengthComputable&&p.loaded===p.total)Mj(a,p.loaded-f,q),f=p.loaded,m=!0};for(var n in a.headers)c.setRequestHeader(n.toLowerCase(),a.headers[n]);c.send(a.body);return{P:h,
347
- request:a,abort:function(){c.abort();h.reject(new _.P(1,1,7001,{url:b,request:a}));return Promise.resolve()}}};Ot=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.j=new xt(a);this.length=a;this.A=b;this.f=this.a=this.h=0;this.l=null;this.o=-1;this.w=new tt};
348
- Rt=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,ut(a.w)),a.w.a=st());if(f)return f=Pt(a),(f=c(!0,f))?f.then(function(){return a.j.a.buffer}):Promise.resolve(a.j.a.buffer);var g=Promise.resolve();if(null!=e){yt(a.j,e);a.a=a.h;a.f=a.j.f;a.l=new DataView(a.j.a.buffer,0,a.j.f);e=Qt(a);for(f=[];e;)f.push(e),e=Qt(a);if(!a.A)f.forEach(function(m){g=g.then(function(){return c(!1,m)})});else if(0<f.length){e=f[0];if(1<f.length){e=f[0];var h=f[f.length-1],
349
- l=h.end-e.start;e={start:e.start,end:h.end,length:l,data:new DataView(a.j.a.buffer,e.start,l),count:f.length}}(f=c(!1,e))&&(g=f)}}return g.then(function(){return Rt(a,b,c,d)})})};Qt=function(a){if(0<=a.o&&a.f<a.o)return null;for(var b=St(a);null!==b;){if(b.name===_.Oe){var c={start:a.h,end:b.end,length:b.end-a.h,data:new DataView(a.j.a.buffer,a.h,b.end-a.h),count:1};a.h=b.end;return c}b=St(a)}return null};
350
- St=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=Tt(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=Tt(a);d=String.fromCharCode(d>>24&255,d>>16&255,d>>8&255,d&255);switch(c){case 0:c=a.f-b;break;case 1:if(a.a+8>=a.f)return a.a=a.f,null;try{var e=a.l.getUint32(a.a,!1);var f=a.l.getUint32(a.a+4,!1)}catch(g){throw new _.P(_.Q,3,3E3);}if(2097151<e)throw new _.P(_.Q,3,3E3);a.a+=8;c=e*Math.pow(2,32)+f}c=b+c;a.o=c;return a.f>=c?(a.a=c,{name:d,start:b,end:c}):null};
351
- Tt=function(a){var b=a.l.getUint32(a.a,!1);a.a+=4;return b};Pt=function(a){var b=null;a.h!==a.f&&(b={start:a.h,end:a.f,length:a.f-a.h,data:new DataView(a.j.a.buffer,a.h,a.f-a.h),count:-1});return b};Vt=function(a){_.Pj.call(this,new _.Oj,function(){return Promise.resolve()});this.B=a;this.h=null;this.w=this.P;this.f=-1;this.j=this.l=this.o=null;Ut(this)};Wt=function(a,b,c){a.o=setTimeout(b,c)};
352
- Ut=function(a){a.h=a.B.then(function(e){a.j=e.request;e.request.uriIndex=e.request.currentAttempt%e.request.uris.length;if(0<e.request.currentAttempt){-1===a.f&&(a.f=Xt(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*Xt(e.request.fuzzFactor,.5));a.f*=Xt(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.l=h;Wt(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.P(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
353
- return e.plugin(e.request)});var b=0,c=0,d=0;return a.h.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.P}).then(function(e){a.w.resolve(e)})["catch"](function(e){if(e instanceof _.P){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return Ut(a);g&&e.a(_.Q);a.w.reject(e)}else a.w.reject(e)})};Xt=function(a,b){return null===a||void 0===a?b:a};_.$t=function(a){this.a=!1;this.h=a;this.j=Zt(this);this.h.Nc(this.j);this.f=null};
354
- Zt=function(a){return function(b){if(a.a&&(b=_.O.Zk(b.headers))){try{var c=new Map,d=b.split(";");for(b=0;b<d.length;b++){var e=au(d[b]),f=e.key,g=e.value;Object.values(bu).includes(f)&&c.set(f,g)}var h=c}catch(l){cu.error("CmsdManager parseCmsdDynamicHeader_ failed:",l),h=null}a.f=h}}};
355
- au=function(a){var b=a.split("\x3d"),c=b[0];b=b[1];if(!c)throw new _.Bi("Parsing CMSD, missing parameter or wrong format");if(c&&!b)return{key:c,value:!0};var d=b[0];if('"'===d&&'"'===b[b.length-1])return{key:c,value:b.replaceAll(/(^")|("$)/g,"")};if(/^[-0-9]/.test(d))return{key:c,value:parseInt(b,10)};if(/^[a-zA-Z*]/.test(d))return{key:c,value:b};throw new _.Bi("Parsing CMSD, not recognized value type of "+a);};
356
- Zj=function(a){var b=new du,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new eu,e={pd:!1,vi:!1};b={P:fu(a.uris[a.uriIndex],a,{body:a.body||void 0,headers:b,method:a.method,signal:d.signal,credentials:a.allowCrossSiteCredentials?"include":void 0},e),request:a,abort:function(){e.pd||(e.pd=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.vi=!0;d.abort()},a);b.P=b.P["finally"](function(){window.clearTimeout(f)})}return b};
357
- fu=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,u,v,z,C,I,F,D;return _.H(function(G){switch(G.a){case 1:return e=gu,l=new tt,m=vt(l),_.B(G,2),_.y(G,e(a,c),4);case 4:f=G.f;h=ut(l);n=f.headers.get(xa);Lj(b,n);p=n?parseInt(n,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return v=f.body.getReader(),z=new Ot(p,!b.disableMergedFragments),C=function(M,N){if(d.pd)return null;N&&N.data&&(Mj(b,N.data.byteLength,ut(l)),l.a=st());return b.onFragment&&N?b.rateLimitBps?Nj(b.rateLimitBps,ut(m),b.bytesLoaded).then(function(){return b.onFragment(N)}):
358
- b.onFragment(N):null},_.y(G,Rt(z,v,C,b.onProgress),10);q=f.body.getReader();u=new Kt(p);return _.y(G,Mt(u,q,b),7);case 7:g=G.f;if(!b.rateLimitBps){G.F(6);break}return _.y(G,Nj(b.rateLimitBps,ut(m),g.byteLength),6);case 10:g=G.f;case 6:_.qh(G,3);break;case 2:I=_.E(G);if(d.pd)throw new _.P(1,1,7001,{url:a,request:b});if(d.vi)throw new _.P(1,1,1003,{url:a,request:b});_.Lh("Error while fetching data:",I);throw new _.P(1,1,1002,{url:a,error:I,request:b,status:-1},I);case 3:F={};D=f.headers;D.forEach(function(M,
359
- N){F[N.trim()]=M});if(d.pd)throw new _.P(1,1,7001,{url:a,request:b});return G["return"](_.Kj(F,g,f.status,a,f.url,b,ut(m),h))}})};Uj=function(a){try{var b=a.uris[a.uriIndex],c=_.hu(b);return{P:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{P:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
360
- _.hu=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Lh("Bad data URI, failed to parse scheme"),new _.P(_.Q,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Lh("Bad data URI, failed to extract encoding and MIME type"),new _.P(_.Q,1,1004,{uri:a});var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"===b[b.length-1]&&(d=!0,b.pop());return{data:d?_.xj(a).buffer:_.S.Va(a).buffer,contentType:c}};
361
- _.ju=function(a,b){var c=_.Rk(_.Sk(a),_.Tk(a));_.iu[c]=b};_.ku=function(a){a=_.Rk(_.Sk(a),_.Tk(a));return _.iu[a]||null};_.lu=function(a){a=_.Rk(_.Sk(a),_.Tk(a));delete _.iu[a]};
362
- _.mu=function(a){a=a.getConfiguration();a=_.O.Na(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.kg?a.backgroundColor:null;this.V=typeof a.windowColor===_.kg?a.windowColor:null;this.N=typeof a.fontColor===_.kg?a.fontColor:null;this.S=typeof a.fontFamily===_.kg?a.fontFamily:null;this.I=typeof a.fontSize===_.kg?a.fontSize:null;this.B=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.H=typeof a.edgeColor===_.kg?a.edgeColor:"rgba(0, 0, 0, 1)";this.o=null;typeof a.edgeType===
363
- _.kg&&(this.o=a.edgeType)};_.ru=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case nu:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case ou:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case pu:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case qu:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.Xe}};su=function(a){this.f=a;this.a=null;this.g=new _.K("clpp.text.Mp4TextParser")};
364
- _.uu=function(a){_.mu.call(this,a);this.l=a.getSurface().getMedia();this.f="clpp-video-"+tu++;this.h=document.createElement(_.mg);this.j=this.w=!1;_.Xp(this.l,this.f);document.head.appendChild(this.h);this.yb()};vu=function(){};_.wu=function(){};_.$g=[];dh=typeof Object.create==_.ve?Object.create:function(a){function b(){}b.prototype=a;return new b};
365
- if(typeof Object.setPrototypeOf==_.ve)xu=Object.setPrototypeOf;else{var yu;a:{var zu={Ni:!0},Au={};try{Au.__proto__=zu;yu=Au.Ni;break a}catch(a){}yu=!1}xu=yu?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
366
- var eh=xu,ih=typeof Object.defineProperties==_.ve?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},gh="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;jh.prototype.toString=function(){return this.a};var hh=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new jh("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
315
+ vs=function(a,b,c){c=void 0===c?"":c;var d=0,e=b.Fa.map(function(l,m){var n=b.cueId+"-"+m,p=m===b.Fa.length-1?Kf:b.cueId+"-"+(m+1);d+=l.DURATION;n={id:n,config:{source:{url:l.URI,type:_.Fl}},next:[p],transition:{vc:p},duration:l.DURATION,ah:d,Zn:b.cueId};return a.f.interstitialAssetConverter?a.f.interstitialAssetConverter(n):n});e.forEach(function(l,m){l.wc=function(){a.g.info(Pb+l.id,l);a.trigger(new _.L(ys,{detail:{id:l.id,podId:b.cueId,uri:l.config.source.url,duration:l.duration,podOrder:m+1,podCount:b.Fa.length}}))}});
316
+ if(null!=b.playoutLimit){var f=b.playoutLimit;a.g.info("Playout limit for "+b.cueId+" is "+(f+" s"));e=e.filter(function(l){return l.ah-l.duration<=f});var g=e[e.length-1],h=Math.abs(g.ah-f);1>h?g.transition.vc=Kf:(g.transition.vc=void 0,g.transition.Xh={position:g.duration-h,itemId:Kf});g.next=[Kf]}e[0].wc=function(){a.g.info("Playing interstitial "+c+" "+b.cueId+" with "+(b.Fa.length+" assets and will resume primary content at ")+(b.resumePosition+" s."),e);a.g.info(Pb+e[0].id,e[0]);a.trigger(new _.L(zs,
317
+ {detail:{id:b.cueId,startTime:b.startTime,endTime:b.endTime,resumePosition:b.resumePosition,itemCount:e.length,playoutLimit:b.playoutLimit}}));a.trigger(new _.L(ys,{detail:{id:e[0].id,podId:b.cueId,uri:b.Fa[0].URI,duration:b.Fa[0].DURATION,podOrder:1,podCount:b.Fa.length}}))};return e};
318
+ ws=function(a,b,c,d,e){b.wc=function(){a.g.info("Resuming primary content at "+(b.config.startTime+" s."));a.trigger(new _.L(As,{detail:{id:c.cueId}}));c.state=Bs;a.a.removeItems(d.map(function(f){return f.id}));b.next=[];e&&a.trigger(new _.L(Cs))};b.config.startTime=c.resumePosition};
319
+ ts=function(a,b){var c,d,e,f,g,h;return _.H(function(l){if(1==l.a){c=a.a.Bb();if(!c)throw Error("No player found");d=c.getNetworkEngine();e=_.Jj(b);return _.y(l,ck(d,e),2)}f=l.f;g=Ds(f);if(!g)throw new _.Bi("Invalid X-ASSET-LIST list response");h=f;return l["return"](Promise.resolve(h.ASSETS))})};Ds=function(a){return a&&a.ASSETS&&Array.isArray(a.ASSETS)?a.ASSETS.every(function(b){return typeof b.URI===_.jg&&typeof b.DURATION===_.k}):!1};Vr=function(){this.a=null};
320
+ as=function(a,b){var c=Es,d;return _.H(function(e){if(1==e.a){a.a=null;if(typeof YospaceAdManagement!==_.Xe)throw new _.P(_.Q,7,7003,"Yospace SDK not found.");if(typeof b!==_.jg)throw new _.P(_.Q,7,7003,"Yospace URL must be a string.");a:switch(c){case Es:var f=YospaceAdManagement.SessionVOD.create(b);break a;case Fs:f=YospaceAdManagement.SessionLive.create(b);break a;case Gs:f=YospaceAdManagement.SessionDVRLive.create(b);break a;default:throw new _.P(_.Q,7,7003,"Yospace stream type unknown "+c+".");
321
+ }return _.y(e,f,2)}d=e.f;if(d.getSessionState()!==YospaceAdManagement.SessionState.INITIALISED)throw new _.P(_.Q,7,7003,"Yospace session failed to initialize");a.a=d;return e["return"](d.getPlaybackUrl())})};Hs=function(){};Is=function(){};Js=function(){};Ks=function(){};Up=function(){};Ls=function(){};_.Ms=function(){};Ns=function(){this.a=null;this.g=new _.K("clpp.drm.eme.StandardEmeManager")};Os=function(){};Ps=function(){this.size=0;this.a=void 0;this.g=new _.K("clpp.drm.eme.MediaKeyStatusMap")};
322
+ Qs=function(a,b){a.size=void 0===b?0:1;a.g.debug("Setting key status to",b);a.a=b};Rs=function(){};Ss=function(){};Ts=function(){this.a=this.f=null};
323
+ Us=function(a,b){this.keySystem=a;if(a.startsWith(_.Pd))for(var c=_.w(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.Rf)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.df,distinctiveIdentifier:_.df,initDataTypes:e.initDataTypes,sessionTypes:[og],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=_.w(e.audioCapabilities),l=h.next();!l.done;l=h.next())l=l.value,l.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&
324
+ (d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.w(e.videoCapabilities),l=e.next();!l.done;l=e.next())h=l.value,h.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,h.contentType.split(";")[0])&&(d.videoCapabilities.push(h),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,_.Jg));d=g?d:null}if(d){this.a=d;return}}c=Error(jc);c.name=Jb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
325
+ Vs=function(a){this.f=null;this.h=new WebKitMediaKeys(a);this.a=new _.Uh;this.j=0;this.g=new _.K(Hd);this.g.info("Created Media Keys for "+a)};
326
+ Ws=function(a,b){a.f=b;_.Xh(a.a);if(!b)return Promise.resolve();a.a.on(b,oe,function(c){_.Kh("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);"MediaEncryptedEvent"in window&&c instanceof MediaEncryptedEvent&&(a.g.info("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.a.on(b,Vg,function(c){a.g.debug("Handle webkitNeedKey event");c=_.lj(c.initData);if(_.sj(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
327
+ c=_.S.oc(c.subarray(4),!0);c=_.S.Va(c);var d=new Event(oe);d.initDataType="skd";d.initData=tj(c);a.f.dispatchEvent(d)});kp(b,HTMLMediaElement.HAVE_METADATA,a.a,function(){return b.webkitSetMediaKeys(a.h)});return Promise.resolve()};Xs=function(a,b){_.Vl.call(this);this.a=null;this.o=a;this.f=this.h=null;this.j=new _.Uh;this.sessionId=b;this.expiration=NaN;this.closed=new _.Oj;this.l=!1;this.keyStatuses=new Ps;this.g=new _.K(Hd)};Ys=function(a,b){Qs(a.keyStatuses,b);a.dispatchEvent(new _.L(Be))};
328
+ Zs=function(){};$s=function(){this.f=this.a=null;this.h="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.h="webkit")};
329
+ at=function(a,b,c,d){this.h=a;this.a=this.keySystem=c;a=!1;c===_.ef&&(this.a=Rg,a=!1);var e=!1;d=_.w(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[],h=[],l=!1;if(f.audioCapabilities)for(var m=_.w(f.audioCapabilities),n=m.next();!n.done;n=m.next())n=n.value,n.contentType&&(l=!0,b.canPlayType(n.contentType.split(";")[0],this.a)&&(g.push(n),e=!0));if(f.videoCapabilities)for(g=_.w(f.videoCapabilities),n=g.next();!n.done;n=g.next())m=n.value,m.contentType&&(l=!0,b.canPlayType(m.contentType,
330
+ this.a)&&(h.push(m),e=!0));l||(e=b.canPlayType(_.Jg,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.Rf||a||(e=!1);if(e){this.f=f;return}}b=jc;if(c===_.ef||c===_.Td)b="None of the requested configurations were supported.";c=Error(b);c.name=Jb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};bt=function(a,b){this.h=a;this.o=b;this.a=null;this.f=new _.Uh;this.j=[];this.l=new Map};
331
+ et=function(a,b){a.a=b;_.Xh(a.f);b&&(a.f.on(b,a.h+"needkey",function(c){var d=new Event(oe);d.initDataType=_.td;d.initData=tj(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.h+"keymessage",function(c){var d=ct(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.L(_.Pe,{messageType:e?Ee:De,message:c.message});_.Kh("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.Lh("Session not found",c.sessionId)}),a.f.on(b,a.h+"keyadded",function(c){(c=
332
+ ct(a,c.sessionId))&&c.ready()}),a.f.on(b,a.h+"keyerror",function(c){var d=ct(a,c.sessionId);if(d){var e=Error("EME v0.1b key error"),f=c.errorCode;f.systemCode=c.systemCode;e.errorCode=f;!c.sessionId&&d.f?(45===c.systemCode&&(e.message="Unsupported session type."),d.f.reject(e),d.f=null):c.sessionId&&d.a?(d.a.reject(e),d.a=null):(e=c.systemCode,c.errorCode.code===MediaKeyError.MEDIA_KEYERR_OUTPUT?dt(d,_.ff):1===e?dt(d,"expired"):dt(d,_.ze))}}))};
333
+ ct=function(a,b){var c=a.l.get(b);return c?c:(c=a.j.shift())?(c.sessionId=b,a.l.set(b,c),c):null};ft=function(a,b,c,d){_.Vl.call(this);this.w=a;this.j=b;this.o=!1;this.a=this.f=null;this.h=c;this.l=d;this.sessionId="";this.expiration=NaN;this.closed=new _.Oj;this.keyStatuses=new Ps};
334
+ ht=function(a,b,c){if(a.o)return Promise.reject(Error("The session is already initialized."));a.o=!0;try{if(a.l===_.jf)if(c)var d=_.lj(_.S.Va("LOAD_SESSION|"+c));else{var e=_.S.Va("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.lj(b),e.byteLength);d=f}else d=_.lj(b)}catch(h){return Promise.reject(h)}a.f=new _.Oj;var g=gt(a,"generateKeyRequest");try{a.j[g](a.h,d)}catch(h){if(h.name!==pb)return a.f=null,Promise.reject(h);(new _.Wk(function(){try{a.j[g](a.h,d)}catch(l){a.f.reject(l),
335
+ a.f=null}})).da(.01)}return a.f};it=function(a,b,c){if(a.a)a.a.then(function(){return it(a,b,c)})["catch"](function(){return it(a,b,c)});else{a.a=b;if(a.h===Rg){var d=_.S.ba(c);var e=JSON.parse(d);"oct"!==e.keys[0].kty&&(a.a.reject(Error("Response is not a valid JSON Web Key Set.")),a.a=null);d=_.xj(e.keys[0].k);e=_.xj(e.keys[0].kid)}else d=_.lj(c),e=null;var f=gt(a,"addKey");try{a.j[f](a.h,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};dt=function(a,b){Qs(a.keyStatuses,b);a.dispatchEvent(new _.L(Be))};
336
+ gt=function(a,b){return a.w?a.w+b.charAt(0).toUpperCase()+b.slice(1):b};jt=function(){};
337
+ kt=function(a,b,c,d,e){_.Bm.call(this,jb);this.l=a;this.j=b;this.h=c;this.a=d;this.o=e;this.g=new _.K(Fd);_.S.empty(this.l)?this.g.warn(_.qc):this.Ta(_.Td,{licenseUrl:this.l,videoRobustness:[_.Yb,void 0],audioRobustness:[_.Xb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.Wd.bind(this)}});_.S.empty(this.j)?this.g.warn(_.Lb):this.Ta(_.Rd,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.Wd.bind(this)}});
338
+ _.S.empty(this.h)?this.g.warn(_.db):_.S.empty(this.a)?this.g.warn(_.cb):this.Ta(_.Pd,{licenseUrl:this.h,certificateUrl:this.a,modifiers:{licenseRequest:this.Th.bind(this),licenseResponse:this.Uh.bind(this),certificateRequest:this.Wd.bind(this),extractContentId:this.gh.bind(this)}})};lt=function(){};mt=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.ue)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
339
+ nt=function(a){a=a.target;if(a.webkitPresentationMode===kf){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement===a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)};ot=function(){return this.webkitSupportsPresentationMode(kf)?(this.webkitSetPresentationMode(kf),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
340
+ pt=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};qt=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};rt=function(a,b,c){return new window.TextTrackCue(a,b,c)};
341
+ st=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};ut=function(a,b,c){if("input"===a)switch(this.type){case "range":a=wd}tt.call(this,a,b,c)};wt=function(){this.a=vt()};xt=function(a){return vt()-a.a};yt=function(a){var b=new wt;b.a=a.a;return b};vt=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.zt=function(a){var b=[];a=_.w(a);for(var c=a.next();!c.done;c=a.next()){c=_.w(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};
342
+ At=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.h=b;this.f=0};Bt=function(a,b){var c=a.f+b.byteLength;if(c>a.a.byteLength){var d=a.a;a.a=new Uint8Array(Math.max(Math.ceil(a.a.buffer.byteLength*a.h),c));a.a.set(d)}a.a.set(b,a.f);a.f+=b.byteLength};_.Ct=function(a,b,c){this.h=a;this.j=b;this.f=c||this.h.getMedia();this.a=null};_.Et=function(){this.a=new Blob([Dt],{type:_.Jg})};_.Ft=function(a,b,c,d){this.id=a;this.f=b;this.a=c;this.h=d};_.Gt=function(){this.a=[];this.f=-1;this.h=null};
343
+ _.It=function(a,b,c,d){var e,f;return _.H(function(g){if(1==g.a)return _.B(g,2),_.y(g,Ht(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.E(g);f.a(_.Q);throw f;})};
344
+ Ht=function(a,b,c,d){var e,f,g,h;return _.H(function(l){if(1==l.a){if(d){if(e=_.Jt[d.toLowerCase()])return l["return"](e);_.Fh("Could not determine manifest type using MIME type ",d)}if(f=_.Kt(a)){if(g=_.Lt[f])return l["return"](g);_.Fh("Could not determine manifest type for extension ",f)}else _.Fh("Could not find extension for ",a);return d?l.F(2):_.y(l,Mt(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(h=_.Jt[d])return l["return"](h);_.Fh("Could not determine manifest type using MIME type",d)}throw new _.P(_.Q,
345
+ 4,4E3,{url:a});})};Mt=function(a,b,c){var d,e,f;return _.H(function(g){if(1==g.a)return d=_.Jj(a),Hj(d,c),d.type=1,d.method="HEAD",_.y(g,b.fetch(d).P,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.Kt=function(a){a=(new _.Gi(a)).Ba.split("/").pop().split(".");return 1===a.length?"":a.pop().toLowerCase()};Nt=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.h=new wt};
346
+ Pt=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(Ot(a,d),Mj(c,d.byteLength,xt(a.h)),a.h.a=vt());return e?(e=a.a.buffer,a.a.byteLength!==a.f&&(e=e.slice(0,a.f)),Promise.resolve(e)):Promise.resolve().then(function(){return Pt(a,b,c)})})};Ot=function(a,b){var c=a.f+b.byteLength;if(a.a.byteLength<c){for(var d=a.a.byteLength;d<c;)d*=2;c=new Uint8Array(d);c.set(a.a);a.a=c}a.a.set(b,a.f);a.f+=b.byteLength};
347
+ Yj=function(a){var b=a.uris[a.uriIndex],c=new Qt,d=new wt,e=yt(d),f=0,g,h=new _.Oj;c.open(a.method,b,!0);c.responseType="arraybuffer";c.timeout=a.timeout;c.withCredentials=a.allowCrossSiteCredentials;var l=!1,m=!1;c.onreadystatechange=function(p){p=p.target;p.readyState>=XMLHttpRequest.LOADING&&0===f&&(g=xt(e));p.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!l&&(p=p.getResponseHeader(xa),Lj(a,p),l=!0)};c.onload=function(p){p=p.target;var q=(p.getAllResponseHeaders()||"").trim().split("\r\n"),u={};
348
+ q=_.w(q);for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),u[v[0].toLowerCase()]=v.slice(1).join(": ");try{var z=xt(e);m||Mj(a,p.response?p.response.length:0,z);var C=_.Kj(u,p.response,p.status,b,p.responseURL,a,z,g);a.rateLimitBps?Nj(a.rateLimitBps,xt(e),a.bytesLoaded).then(function(){h.resolve(C)}):h.resolve(C)}catch(I){h.reject(I)}};c.onerror=function(p){p=p.target;if(0>=p.status)h.reject(new _.P(1,1,1002,{url:b,request:a,status:p.status}));else{var q=p.getAllResponseHeaders(),u={};if(q){q=
349
+ _.w(q.trim().split("\r\n"));for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),u[v[0].toLowerCase()]=v.slice(1).join(": ")}p=_.Kj(u,p.response,p.status,b,p.responseURL,a,xt(e),g);h.resolve(p)}};c.ontimeout=function(){h.reject(new _.P(1,1,1003,{url:b,request:a}))};c.onprogress=function(p){var q=xt(d);d.a=vt();if(100<q||p.lengthComputable&&p.loaded===p.total)Mj(a,p.loaded-f,q),f=p.loaded,m=!0};for(var n in a.headers)c.setRequestHeader(n.toLowerCase(),a.headers[n]);c.send(a.body);return{P:h,
350
+ request:a,abort:function(){c.abort();h.reject(new _.P(1,1,7001,{url:b,request:a}));return Promise.resolve()}}};Rt=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.j=new At(a);this.length=a;this.A=b;this.f=this.a=this.h=0;this.l=null;this.o=-1;this.w=new wt};
351
+ Ut=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,xt(a.w)),a.w.a=vt());if(f)return f=St(a),(f=c(!0,f))?f.then(function(){return a.j.a.buffer}):Promise.resolve(a.j.a.buffer);var g=Promise.resolve();if(null!=e){Bt(a.j,e);a.a=a.h;a.f=a.j.f;a.l=new DataView(a.j.a.buffer,0,a.j.f);e=Tt(a);for(f=[];e;)f.push(e),e=Tt(a);if(!a.A)f.forEach(function(m){g=g.then(function(){return c(!1,m)})});else if(0<f.length){e=f[0];if(1<f.length){e=f[0];var h=f[f.length-1],
352
+ l=h.end-e.start;e={start:e.start,end:h.end,length:l,data:new DataView(a.j.a.buffer,e.start,l),count:f.length}}(f=c(!1,e))&&(g=f)}}return g.then(function(){return Ut(a,b,c,d)})})};Tt=function(a){if(0<=a.o&&a.f<a.o)return null;for(var b=Vt(a);null!==b;){if(b.name===_.Ne){var c={start:a.h,end:b.end,length:b.end-a.h,data:new DataView(a.j.a.buffer,a.h,b.end-a.h),count:1};a.h=b.end;return c}b=Vt(a)}return null};
353
+ Vt=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=Wt(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=Wt(a);d=String.fromCharCode(d>>24&255,d>>16&255,d>>8&255,d&255);switch(c){case 0:c=a.f-b;break;case 1:if(a.a+8>=a.f)return a.a=a.f,null;try{var e=a.l.getUint32(a.a,!1);var f=a.l.getUint32(a.a+4,!1)}catch(g){throw new _.P(_.Q,3,3E3);}if(2097151<e)throw new _.P(_.Q,3,3E3);a.a+=8;c=e*Math.pow(2,32)+f}c=b+c;a.o=c;return a.f>=c?(a.a=c,{name:d,start:b,end:c}):null};
354
+ Wt=function(a){var b=a.l.getUint32(a.a,!1);a.a+=4;return b};St=function(a){var b=null;a.h!==a.f&&(b={start:a.h,end:a.f,length:a.f-a.h,data:new DataView(a.j.a.buffer,a.h,a.f-a.h),count:-1});return b};Zt=function(a){_.Pj.call(this,new _.Oj,function(){return Promise.resolve()});this.B=a;this.h=null;this.w=this.P;this.f=-1;this.j=this.l=this.o=null;Yt(this)};$t=function(a,b,c){a.o=setTimeout(b,c)};
355
+ Yt=function(a){a.h=a.B.then(function(e){a.j=e.request;e.request.uriIndex=e.request.currentAttempt%e.request.uris.length;if(0<e.request.currentAttempt){-1===a.f&&(a.f=au(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*au(e.request.fuzzFactor,.5));a.f*=au(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.l=h;$t(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.P(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
356
+ return e.plugin(e.request)});var b=0,c=0,d=0;return a.h.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.P}).then(function(e){a.w.resolve(e)})["catch"](function(e){if(e instanceof _.P){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return Yt(a);g&&e.a(_.Q);a.w.reject(e)}else a.w.reject(e)})};au=function(a,b){return null===a||void 0===a?b:a};_.cu=function(a){this.a=!1;this.h=a;this.j=bu(this);this.h.Nc(this.j);this.f=null};
357
+ bu=function(a){return function(b){if(a.a&&(b=_.O.Zk(b.headers))){try{var c=new Map,d=b.split(";");for(b=0;b<d.length;b++){var e=du(d[b]),f=e.key,g=e.value;Object.values(eu).includes(f)&&c.set(f,g)}var h=c}catch(l){fu.error("CmsdManager parseCmsdDynamicHeader_ failed:",l),h=null}a.f=h}}};
358
+ du=function(a){var b=a.split("\x3d"),c=b[0];b=b[1];if(!c)throw new _.Bi("Parsing CMSD, missing parameter or wrong format");if(c&&!b)return{key:c,value:!0};var d=b[0];if('"'===d&&'"'===b[b.length-1])return{key:c,value:b.replaceAll(/(^")|("$)/g,"")};if(/^[-0-9]/.test(d))return{key:c,value:parseInt(b,10)};if(/^[a-zA-Z*]/.test(d))return{key:c,value:b};throw new _.Bi("Parsing CMSD, not recognized value type of "+a);};
359
+ Zj=function(a){var b=new gu,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new hu,e={pd:!1,vi:!1};b={P:iu(a.uris[a.uriIndex],a,{body:a.body||void 0,headers:b,method:a.method,signal:d.signal,credentials:a.allowCrossSiteCredentials?"include":void 0},e),request:a,abort:function(){e.pd||(e.pd=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.vi=!0;d.abort()},a);b.P=b.P["finally"](function(){window.clearTimeout(f)})}return b};
360
+ iu=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,u,v,z,C,I,F,D;return _.H(function(G){switch(G.a){case 1:return e=ju,l=new wt,m=yt(l),_.B(G,2),_.y(G,e(a,c),4);case 4:f=G.f;h=xt(l);n=f.headers.get(xa);Lj(b,n);p=n?parseInt(n,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return v=f.body.getReader(),z=new Rt(p,!b.disableMergedFragments),C=function(M,N){if(d.pd)return null;N&&N.data&&(Mj(b,N.data.byteLength,xt(l)),l.a=vt());return b.onFragment&&N?b.rateLimitBps?Nj(b.rateLimitBps,xt(m),b.bytesLoaded).then(function(){return b.onFragment(N)}):
361
+ b.onFragment(N):null},_.y(G,Ut(z,v,C,b.onProgress),10);q=f.body.getReader();u=new Nt(p);return _.y(G,Pt(u,q,b),7);case 7:g=G.f;if(!b.rateLimitBps){G.F(6);break}return _.y(G,Nj(b.rateLimitBps,xt(m),g.byteLength),6);case 10:g=G.f;case 6:_.qh(G,3);break;case 2:I=_.E(G);if(d.pd)throw new _.P(1,1,7001,{url:a,request:b});if(d.vi)throw new _.P(1,1,1003,{url:a,request:b});_.Lh("Error while fetching data:",I);throw new _.P(1,1,1002,{url:a,error:I,request:b,status:-1},I);case 3:F={};D=f.headers;D.forEach(function(M,
362
+ N){F[N.trim()]=M});if(d.pd)throw new _.P(1,1,7001,{url:a,request:b});return G["return"](_.Kj(F,g,f.status,a,f.url,b,xt(m),h))}})};Uj=function(a){try{var b=a.uris[a.uriIndex],c=_.ku(b);return{P:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{P:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
363
+ _.ku=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Lh("Bad data URI, failed to parse scheme"),new _.P(_.Q,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Lh("Bad data URI, failed to extract encoding and MIME type"),new _.P(_.Q,1,1004,{uri:a});var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"===b[b.length-1]&&(d=!0,b.pop());return{data:d?_.xj(a).buffer:_.S.Va(a).buffer,contentType:c}};
364
+ _.mu=function(a,b){var c=_.Rk(_.Sk(a),_.Tk(a));_.lu[c]=b};_.nu=function(a){a=_.Rk(_.Sk(a),_.Tk(a));return _.lu[a]||null};_.ou=function(a){a=_.Rk(_.Sk(a),_.Tk(a));delete _.lu[a]};
365
+ _.pu=function(a){a=a.getConfiguration();a=_.O.Na(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.jg?a.backgroundColor:null;this.V=typeof a.windowColor===_.jg?a.windowColor:null;this.N=typeof a.fontColor===_.jg?a.fontColor:null;this.S=typeof a.fontFamily===_.jg?a.fontFamily:null;this.I=typeof a.fontSize===_.jg?a.fontSize:null;this.B=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.H=typeof a.edgeColor===_.jg?a.edgeColor:"rgba(0, 0, 0, 1)";this.o=null;typeof a.edgeType===
366
+ _.jg&&(this.o=a.edgeType)};_.uu=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case qu:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case ru:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case su:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case tu:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.We}};vu=function(a){this.f=a;this.a=null;this.g=new _.K("clpp.text.Mp4TextParser")};
367
+ _.xu=function(a){_.pu.call(this,a);this.l=a.getSurface().getMedia();this.f="clpp-video-"+wu++;this.h=document.createElement(_.lg);this.j=this.w=!1;_.Xp(this.l,this.f);document.head.appendChild(this.h);this.yb()};yu=function(){};_.zu=function(){};_.$g=[];dh=typeof Object.create==_.ue?Object.create:function(a){function b(){}b.prototype=a;return new b};
368
+ if(typeof Object.setPrototypeOf==_.ue)Au=Object.setPrototypeOf;else{var Bu;a:{var Cu={Ni:!0},Du={};try{Du.__proto__=Cu;Bu=Du.Ni;break a}catch(a){}Bu=!1}Au=Bu?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
369
+ var eh=Au,ih=typeof Object.defineProperties==_.ue?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},gh="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;jh.prototype.toString=function(){return this.a};var hh=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new jh("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
367
370
  mh.prototype.A=function(a){this.f=a};mh.prototype["return"]=function(a){this.h={"return":a};this.a=this.j};mh.prototype.F=function(a){this.a=a};
368
371
  zh("Promise",function(a){function b(g){this.f=0;this.l=void 0;this.a=[];var h=this.j();try{g(h.resolve,h.reject)}catch(l){h.reject(l)}}function c(){this.a=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.f=function(g){if(null==this.a){this.a=[];var h=this;this.h(function(){h.l()})}this.a.push(g)};var e=gh.setTimeout;c.prototype.h=function(g){e(g,0)};c.prototype.l=function(){for(;this.a&&this.a.length;){var g=this.a;this.a=[];for(var h=0;h<g.length;++h){var l=
369
- g[h];g[h]=null;try{l()}catch(m){this.j(m)}}}this.a=null};c.prototype.j=function(g){this.h(function(){throw g;})};b.prototype.j=function(){function g(m){return function(n){l||(l=!0,m.call(h,n))}}var h=this,l=!1;return{resolve:g(this.D),reject:g(this.h)}};b.prototype.D=function(g){if(g===this)this.h(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.G(g);else{a:switch(typeof g){case _.Ye:var h=null!=g;break a;case _.ve:h=!0;break a;default:h=!1}h?this.B(g):this.o(g)}};
370
- b.prototype.B=function(g){var h=void 0;try{h=g.then}catch(l){this.h(l);return}typeof h==_.ve?this.H(h,g):this.o(g)};b.prototype.h=function(g){this.w(2,g)};b.prototype.o=function(g){this.w(1,g)};b.prototype.w=function(g,h){if(0!=this.f)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.f);this.f=g;this.l=h;this.A()};b.prototype.A=function(){if(null!=this.a){for(var g=0;g<this.a.length;++g)f.f(this.a[g]);this.a=null}};var f=new c;b.prototype.G=function(g){var h=this.j();
371
- g.le(h.resolve,h.reject)};b.prototype.H=function(g,h){var l=this.j();try{g.call(h,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,h){function l(q,u){return typeof q==_.ve?function(v){try{m(q(v))}catch(z){n(z)}}:u}var m,n,p=new b(function(q,u){m=q;n=u});this.le(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.le=function(g,h){function l(){switch(m.f){case 1:g(m.l);break;case 2:h(m.l);break;default:throw Error("Unexpected state: "+
372
+ g[h];g[h]=null;try{l()}catch(m){this.j(m)}}}this.a=null};c.prototype.j=function(g){this.h(function(){throw g;})};b.prototype.j=function(){function g(m){return function(n){l||(l=!0,m.call(h,n))}}var h=this,l=!1;return{resolve:g(this.D),reject:g(this.h)}};b.prototype.D=function(g){if(g===this)this.h(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.G(g);else{a:switch(typeof g){case _.Xe:var h=null!=g;break a;case _.ue:h=!0;break a;default:h=!1}h?this.B(g):this.o(g)}};
373
+ b.prototype.B=function(g){var h=void 0;try{h=g.then}catch(l){this.h(l);return}typeof h==_.ue?this.H(h,g):this.o(g)};b.prototype.h=function(g){this.w(2,g)};b.prototype.o=function(g){this.w(1,g)};b.prototype.w=function(g,h){if(0!=this.f)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.f);this.f=g;this.l=h;this.A()};b.prototype.A=function(){if(null!=this.a){for(var g=0;g<this.a.length;++g)f.f(this.a[g]);this.a=null}};var f=new c;b.prototype.G=function(g){var h=this.j();
374
+ g.le(h.resolve,h.reject)};b.prototype.H=function(g,h){var l=this.j();try{g.call(h,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,h){function l(q,u){return typeof q==_.ue?function(v){try{m(q(v))}catch(z){n(z)}}:u}var m,n,p=new b(function(q,u){m=q;n=u});this.le(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.le=function(g,h){function l(){switch(m.f){case 1:g(m.l);break;case 2:h(m.l);break;default:throw Error("Unexpected state: "+
372
375
  m.f);}}var m=this;null==this.a?f.f(l):this.a.push(l)};b.resolve=d;b.reject=function(g){return new b(function(h,l){l(g)})};b.race=function(g){return new b(function(h,l){for(var m=_.w(g),n=m.next();!n.done;n=m.next())d(n.value).le(h,l)})};b.all=function(g){var h=_.w(g),l=h.next();return l.done?d([]):new b(function(m,n){function p(v){return function(z){q[v]=z;u--;0==u&&m(q)}}var q=[],u=0;do q.push(void 0),u++,d(l.value).le(p(q.length-1),n),l=h.next();while(!l.done)})};return b});var Bh=this||self;
373
376
  Bh.a=!0;_.O={Ki:20,Na:function(a){var b=_.O.R,c=_.O.Gh,d=_.O.oa;return b(a)||c(a)?a:d(a)}};_.J("clpp.utils.obj.cloneItem",_.O.Na);_.O.oa=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];c={};for(var d=0;d<b.length;d++)null!=b[d]&&(c=_.O.Lh(c,{merging:b[d]},1));return c.merging||null};_.J("clpp.utils.obj.merge",_.O.oa);_.O.Jd=function(a){for(var b in a)if(void 0!==a[b])return!0;return!1};
374
- _.O.Lh=function(a,b,c){var d=_.O.R,e=_.O.Gh,f=_.O.Lh,g=_.O.ub,h=_.O.tl,l=_.O.Fh,m=_.O.pl,n=_.O.bd;c+=1;if(d(a)||!n(a))a={};for(var p in b)n=b[p],e(n)||d(n)||g(n)||m(n)?a[p]=n:h(n)?a[p]=n.subarray(0):n instanceof Array?a[p]=f([],n,c):!d(n)&&l(n)&&c<_.O.Ki&&(a[p]=f(a[p],n,c));return a};_.O.Gh=function(a){a=typeof a;return a===_.kg||a===_.k||a===_.ld};_.O.pl=function(a){return a instanceof Element};_.O.R=function(a){return null===a||"undefined"===typeof a};_.O.bd=function(a){return typeof a===_.Ye};
375
- _.O.ub=function(a){return typeof a===_.ve};_.O.ca=function(a){return typeof a===_.kg};_.O.ra=function(a){return typeof a===_.k};_.O.Bh=function(a){return typeof a===_.ld};_.O.Fh=function(a){var b=_.O.bd,c=_.O.R;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.O.tl=function(a){var b=_.O.bd,c=_.O.ub;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
377
+ _.O.Lh=function(a,b,c){var d=_.O.R,e=_.O.Gh,f=_.O.Lh,g=_.O.ub,h=_.O.tl,l=_.O.Fh,m=_.O.pl,n=_.O.bd;c+=1;if(d(a)||!n(a))a={};for(var p in b)n=b[p],e(n)||d(n)||g(n)||m(n)?a[p]=n:h(n)?a[p]=n.subarray(0):n instanceof Array?a[p]=f([],n,c):!d(n)&&l(n)&&c<_.O.Ki&&(a[p]=f(a[p],n,c));return a};_.O.Gh=function(a){a=typeof a;return a===_.jg||a===_.k||a===_.kd};_.O.pl=function(a){return a instanceof Element};_.O.R=function(a){return null===a||"undefined"===typeof a};_.O.bd=function(a){return typeof a===_.Xe};
378
+ _.O.ub=function(a){return typeof a===_.ue};_.O.ca=function(a){return typeof a===_.jg};_.O.ra=function(a){return typeof a===_.k};_.O.Bh=function(a){return typeof a===_.kd};_.O.Fh=function(a){var b=_.O.bd,c=_.O.R;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.O.tl=function(a){var b=_.O.bd,c=_.O.ub;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
376
379
  _.O.la=function(a,b,c,d){if(a===b||null===a&&null===b||void 0===a&&void 0===b)return!0;if(null===a&&null!==b||null!==a&&null===b||void 0!==a&&void 0===b||void 0===a&&void 0!==b||!_.O.bd(a)||!_.O.bd(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var h=e[g];if(_.O.R(d)||0>d.indexOf(h))if(f[h]=!0,a[h]!==b[h])return!1}if(_.O.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.O.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
377
- _.O.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.O.ql=function(a,b,c){return a>=b&&a<=c};_.O.sg=function(a){for(var b=new Map,c=_.w(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.O.tg=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};_.O.Zk=function(a){a=_.w(Object.entries(a));for(var b=a.next();!b.done;b=a.next()){var c=_.w(b.value);b=c.next().value;c=c.next().value;if("cmsd-dynamic"===b.toLowerCase())return c}return null};var Gh={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.J("clpp.log.Level",Gh);var Dh=3,Ch={},Bu=[];_.J("clpp.log.getLoggers",function(){return _.O.Na(Ch)});_.J("clpp.log.addInterceptor",function(a){a&&Bu.push(a)});_.J("clpp.log.removeInterceptor",function(a){a&&(a=Bu.indexOf(a),0<=a&&Bu.splice(a,1))});_.J("clpp.log.getTagLevel",Eh);_.J("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Ch[a]});_.J("clpp.log.setTagLevel",function(a,b){a&&(_.O.ca(b)&&(b=Hh(b)),Ch[a]=b)});
380
+ _.O.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.O.ql=function(a,b,c){return a>=b&&a<=c};_.O.sg=function(a){for(var b=new Map,c=_.w(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.O.tg=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};_.O.Zk=function(a){a=_.w(Object.entries(a));for(var b=a.next();!b.done;b=a.next()){var c=_.w(b.value);b=c.next().value;c=c.next().value;if("cmsd-dynamic"===b.toLowerCase())return c}return null};var Gh={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.J("clpp.log.Level",Gh);var Dh=3,Ch={},Eu=[];_.J("clpp.log.getLoggers",function(){return _.O.Na(Ch)});_.J("clpp.log.addInterceptor",function(a){a&&Eu.push(a)});_.J("clpp.log.removeInterceptor",function(a){a&&(a=Eu.indexOf(a),0<=a&&Eu.splice(a,1))});_.J("clpp.log.getTagLevel",Eh);_.J("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Ch[a]});_.J("clpp.log.setTagLevel",function(a,b){a&&(_.O.ca(b)&&(b=Hh(b)),Ch[a]=b)});
378
381
  _.J("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.O.ca(a)&&(a=Hh(a));Dh=a});_.J("clpp.log.getLogLevel",function(){return Dh});_.t=_.K.prototype;
379
382
  _.t.log=function(a,b){if(window.console){if(1<arguments.length){var c=arguments[0];Array.prototype.shift.call(arguments)}else c=3;var d=Eh(this.tag);if(0<=d){if(d<c)return}else if(Dh<c)return;this.tag&&Array.prototype.unshift.call(arguments,"["+this.tag+"]");d=new Date;d.toISOString&&(d=d.toISOString().substring(11).replace("Z",""),Array.prototype.unshift.call(arguments,d));4===c?console.log.apply(console,arguments):3===c?console.info.apply(console,arguments):2===c?console.warn.apply(console,arguments):
380
- 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.w(Bu);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.t.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.t.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.t.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
383
+ 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.w(Eu);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.t.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.t.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.t.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
381
384
  _.t.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.t.qk=function(a){return a?this.tag?new _.K(this.tag+"."+a):new _.K(a):this};_.J("clpp.log.Logger",_.K);_.K.prototype.createChild=_.K.prototype.qk;_.K.prototype.error=_.K.prototype.error;_.K.prototype.warn=_.K.prototype.warn;_.K.prototype.debug=_.K.prototype.debug;_.K.prototype.info=_.K.prototype.info;_.K.prototype.log=_.K.prototype.log;var Ih=new _.K("clpp");_.J("clpp.log.info",_.Jh);
382
385
  _.J("clpp.log.debug",_.Kh);_.J("clpp.log.warn",_.Fh);_.J("clpp.log.error",_.Lh);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.Oh=new _.K("clpp.players");_.Nh={};_.t=_.Rh.prototype;_.t.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.t.get=function(a){return(a=this.a[a])?a.slice():[]};_.t.remove=function(a,b){var c=this.a[a];if(!c)return!1;for(var d=!1,e=0;e<c.length;++e)c[e]===b&&(c.splice(e,1),--e,d=!0);return d};_.t.clear=function(){this.a={}};_.t.forEach=function(a){for(var b in this.a)a(b,this.a[b])};Sh.prototype.fc=function(a){try{this.Qc.handleEvent?this.Qc.handleEvent(a):this.Qc.call(this.a,a)}catch(b){_.Lh("clpp","Uncaught exception in event handler for event '"+this.f+"'",b,b?b.message:null,b?b.stack:null)}};_.L.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.L.prototype.stopImmediatePropagation=function(){this.f=!0};_.L.prototype.stopPropagation=function(){};_.t=Th.prototype;
383
- _.t.trigger=function(a){var b=this.a.get(a.type);if(b)for(var c=0;c<b.length&&(a.target=this.f,a.currentTarget=this.f,b[c].fc(a),b[c].Um&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.t.on=function(a,b,c){this.a.push(a,new Sh(a,b,c||this.f));return b};_.t.one=function(a,b,c){this.a.push(a,new Sh(a,b,c||this.f,!0));return b};_.t.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].Qc===b&&(d=this.a.remove(a,c[e])||d);return d};_.t.clear=function(){this.a.clear()};_.Uh.prototype.release=function(){_.Xh(this)};_.Uh.prototype.on=function(a,b,c,d){a=new Zh(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.Uh.prototype.one=function(a,b,c){function d(f){e.off(a,b,d);return c(f)}var e=this;this.on(a,b,d)};_.Uh.prototype.off=function(a,b,c){for(var d=this.a.get(b)||[],e=0;e<d.length;++e){var f=d[e];f.target!==a||c!==f.a&&c||(Wh(f),this.a.remove(b,f))}};$h.prototype.release=function(){this.f.release();this.h=[];this.a=null};$h.prototype.destroy=function(){var a=this;return _.H(function(b){a.release();a.l=null;a.j=null;_.A(b)})};$h.prototype.getTimelineCues=function(){return this.h};_.ui.prototype.la=function(a){return this.payload===a.payload&&this.startTime===a.startTime&&this.endTime===a.endTime&&this.payloadType===a.payloadType};_.J("clpp.text.Cue",_.ui);_.ui.positionAlign={LEFT:_.Ge,RIGHT:_.He,CENTER:_.vd,AUTO:"auto"};_.oi="text";_.ui.payloadType={TEXT:_.oi,VTT_XML:_.Og,TTML_XML:_.ug};_.pi=_.vd;_.Cu={LEFT:_.De,RIGHT:_.Uf,CENTER:_.pi,START:_.De,END:_.Uf};_.ui.textAlign=_.Cu;var ti="ltr";_.ui.direction={HORIZONTAL_LEFT_TO_RIGHT:ti,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.qi="horizontal-tb";
384
- _.ui.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.qi,VERTICAL_LEFT_TO_RIGHT:_.Gg,VERTICAL_RIGHT_TO_LEFT:_.Hg};_.ri=0;_.ui.lineInterpretation={LINE_NUMBER:_.ri,PERCENTAGE:1};_.si=_.gg;_.Du={CENTER:_.vd,START:_.si,END:_.qe};_.ui.lineAlign=_.Du;_.J("clpp.text.CueRegion",_.xi);_.vi=1;_.xi.units={PX:0,PERCENTAGE:_.vi,LINES:2};var wi="";_.xi.scrollMode={NONE:wi,UP:"up"};_.xi.displayAlign={BEFORE:"flex-end",CENTER:_.vd,AFTER:"flex-start"};
385
- _.xi.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Od,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};yi.prototype.destroy=function(){this.a.release();this.j=!1;this.l=this.a=this.h=this.f=null;return Promise.resolve()};yi.prototype.start=function(a){var b=this;this.j?this.g.warn("Already started. Ignoring request..."):(this.j=!0,this.h=a,this.f=this.h.textTracks,this.a.on(this.f,_.Oc,function(c){return zi(b,c)}),this.a.on(this.f,xd,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.ag&&(e.mode=_.xe)}}))};
386
- yi.prototype.o=function(a){var b=new _.ui(a.startTime,a.endTime,a.text,_.Og);if(_.O.ca(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Gg;break;case "rl":b.writingMode=_.Hg}_.O.ra(a.size)&&(b.size=a.size);if(_.O.ca(a.align))switch(a.align){case _.De:case _.gg:b.textAlign=_.De;break;case _.vd:b.textAlign=_.pi;break;case _.Uf:case _.qe:b.textAlign=_.Uf}_.O.ra(a.position)&&(b.position=a.position);if(_.O.ca(a.positionAlign))switch(a.positionAlign){case _.Ge:b.positionAlign=_.Ge;break;case _.vd:b.positionAlign=
387
- _.vd;break;case _.He:b.positionAlign=_.He}_.O.ra(a.line)&&(b.line=a.line);if(_.O.ca(a.lineAlign))switch(a.lineAlign){case _.gg:b.lineAlign=_.si;break;case _.vd:b.lineAlign=_.vd;break;case _.qe:b.lineAlign=_.qe}_.O.Bh(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.ri:1);return b};_.x(_.P,Error);_.P.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=Ai(this.severity,this.category,this.code,this.data))};_.P.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.J("clpp.Error",_.P);_.Q=2;_.P.Severity={RECOVERABLE:1,FATAL:_.Q};_.P.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
386
+ _.t.trigger=function(a){var b=this.a.get(a.type);if(b)for(var c=0;c<b.length&&(a.target=this.f,a.currentTarget=this.f,b[c].fc(a),b[c].Um&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.t.on=function(a,b,c){this.a.push(a,new Sh(a,b,c||this.f));return b};_.t.one=function(a,b,c){this.a.push(a,new Sh(a,b,c||this.f,!0));return b};_.t.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].Qc===b&&(d=this.a.remove(a,c[e])||d);return d};_.t.clear=function(){this.a.clear()};_.Uh.prototype.release=function(){_.Xh(this)};_.Uh.prototype.on=function(a,b,c,d){a=new Zh(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.Uh.prototype.one=function(a,b,c){function d(f){e.off(a,b,d);return c(f)}var e=this;this.on(a,b,d)};_.Uh.prototype.off=function(a,b,c){for(var d=this.a.get(b)||[],e=0;e<d.length;++e){var f=d[e];f.target!==a||c!==f.a&&c||(Wh(f),this.a.remove(b,f))}};$h.prototype.release=function(){this.f.release();this.h=[];this.a=null};$h.prototype.destroy=function(){var a=this;return _.H(function(b){a.release();a.l=null;a.j=null;_.A(b)})};$h.prototype.getTimelineCues=function(){return this.h};_.ui.prototype.la=function(a){return this.payload===a.payload&&this.startTime===a.startTime&&this.endTime===a.endTime&&this.payloadType===a.payloadType};_.J("clpp.text.Cue",_.ui);_.ui.positionAlign={LEFT:_.Fe,RIGHT:_.Ge,CENTER:_.ud,AUTO:"auto"};_.oi="text";_.ui.payloadType={TEXT:_.oi,VTT_XML:_.Og,TTML_XML:_.tg};_.pi=_.ud;_.Fu={LEFT:_.Ce,RIGHT:_.Tf,CENTER:_.pi,START:_.Ce,END:_.Tf};_.ui.textAlign=_.Fu;var ti="ltr";_.ui.direction={HORIZONTAL_LEFT_TO_RIGHT:ti,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.qi="horizontal-tb";
387
+ _.ui.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.qi,VERTICAL_LEFT_TO_RIGHT:_.Gg,VERTICAL_RIGHT_TO_LEFT:_.Hg};_.ri=0;_.ui.lineInterpretation={LINE_NUMBER:_.ri,PERCENTAGE:1};_.si=_.fg;_.Ou={CENTER:_.ud,START:_.si,END:_.pe};_.ui.lineAlign=_.Ou;_.J("clpp.text.CueRegion",_.xi);_.vi=1;_.xi.units={PX:0,PERCENTAGE:_.vi,LINES:2};var wi="";_.xi.scrollMode={NONE:wi,UP:"up"};_.xi.displayAlign={BEFORE:"flex-end",CENTER:_.ud,AFTER:"flex-start"};
388
+ _.xi.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Nd,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};yi.prototype.destroy=function(){this.a.release();this.j=!1;this.l=this.a=this.h=this.f=null;return Promise.resolve()};yi.prototype.start=function(a){var b=this;this.j?this.g.warn("Already started. Ignoring request..."):(this.j=!0,this.h=a,this.f=this.h.textTracks,this.a.on(this.f,_.Nc,function(c){return zi(b,c)}),this.a.on(this.f,wd,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.$f&&(e.mode=_.we)}}))};
389
+ yi.prototype.o=function(a){var b=new _.ui(a.startTime,a.endTime,a.text,_.Og);if(_.O.ca(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Gg;break;case "rl":b.writingMode=_.Hg}_.O.ra(a.size)&&(b.size=a.size);if(_.O.ca(a.align))switch(a.align){case _.Ce:case _.fg:b.textAlign=_.Ce;break;case _.ud:b.textAlign=_.pi;break;case _.Tf:case _.pe:b.textAlign=_.Tf}_.O.ra(a.position)&&(b.position=a.position);if(_.O.ca(a.positionAlign))switch(a.positionAlign){case _.Fe:b.positionAlign=_.Fe;break;case _.ud:b.positionAlign=
390
+ _.ud;break;case _.Ge:b.positionAlign=_.Ge}_.O.ra(a.line)&&(b.line=a.line);if(_.O.ca(a.lineAlign))switch(a.lineAlign){case _.fg:b.lineAlign=_.si;break;case _.ud:b.lineAlign=_.ud;break;case _.pe:b.lineAlign=_.pe}_.O.Bh(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.ri:1);return b};_.x(_.P,Error);_.P.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=Ai(this.severity,this.category,this.code,this.data))};_.P.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.J("clpp.Error",_.P);_.Q=2;_.P.Severity={RECOVERABLE:1,FATAL:_.Q};_.P.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
388
391
  _.P.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,UNKNOWN_DATA_URI_ENCODING:1005,REQUEST_MODIFIER_ERROR:1006,RESPONSE_MODIFIER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,FETCH_OR_APPEND_ERROR:2010,INVALID_MP4:2011,
389
392
  TEXT_PARSER_MISSING:2012,THUMBNAILS_FAILED_TO_LOAD:2013,THUMBNAIL_ERROR:2014,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,
390
393
  MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,MP4_PARSER_ERROR:3019,MEDIA_LOAD_ERROR:3100,INVALID_TRACK_TYPE:3101,UNKNOWN_TRACK:3102,MEDIA_DECRYPTION_ERROR:3103,PLAY_NOT_ALLOWED:3200,UNABLE_TO_GUESS_MANIFEST_TYPE:4E3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,
@@ -394,90 +397,90 @@ HLS_DISCONTINUITY_NOT_SUPPORTED:4045,HLS_UNSUPPORTED_FEATURE:4046,HLS_INCOMPATIB
394
397
  EXPIRED:6014,REQUESTED_DRM_ENVIRONMENT_UNAVAILABLE:6015,INIT_DATA_TRANSFORM_ERROR:6016,CERTIFICATE_REQUEST_FAILED:6100,NO_CONTENT_ID:6101,SERVER_CERTIFICATE_REQUIRED:6102,EXTRACT_CONTENT_ID_MODIFIER_ERROR:6103,FAILED_TO_PERSIST_SESSION:6200,FAILED_TO_REMOVE_SESSION:6201,INVALID_SESSION_STORAGE_IMPLEMENTATION:6202,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,CANNOT_LOAD_SOURCE:7003,MEDIA_ELEMENT_NOT_FOUND:7004,INVALID_MEDIA_ELEMENT:7005,INVALID_CONTAINER_ELEMENT:7006,INVALID_ARGUMENT:7007,
395
398
  WRONG_ORDER_OF_OPERATIONS:7008,NOT_SUPPORTED:7009,INVALID_CONFIGURATION:7100,INVALID_LICENSE:7101,NO_ELEMENT:7102,USER_ID_NOT_PROVIDED:7103,KEY_LOAD_ERROR:7104,TIZEN_INTERNAL_ERROR:7200,CAF_INTERNAL_ERROR:7300,INTERNAL_CAST_ERROR:8E3,CAST_API_NOT_READY:8001,NO_RECEIVERS_AVAILABLE:8002,ALREADY_CASTING:8003,NO_CAST_SESSION:8004,CONVIVA_SDK_NOT_LOADED:9E3,CONVIVA_INVALID_CONFIGURATION:9001,CONVIVA_RUNTIME_ERROR:9002,GL_CONTEXT_ERROR:9003,GL_SHADER_ERROR:9004,YOUBORA_SDK_MISSING:9100,YOUBORA_INVALID_CONFIGURATION:9101,
396
399
  YOUBORA_SDK_VERSION_NOT_SUPPORTED:9102,VIMOND_INVALID_CONFIGURATION:9200,VIMOND_SESSION_ERROR:9201,MUXDATA_INVALID_CONFIGURATION:9300,MUX_SDK_MISSING:9301,MUXDATA_INIT_ERROR:9302,IMA_SDK_MISSING:1E4,IMA_INVALID_CONFIGURATION:10001,IMA_UNSUPPORTED_PLATFORM:10002,AD_ERROR:10003,SIMID_CONTAINER_MISSING:10100,BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3,SESSIONS_INVALID_CONFIGURATION:15E3};
397
- _.x(_.Bi,Error);var Li=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.t=_.Gi.prototype;_.t.hb="";_.t.Bc="";_.t.Oa="";_.t.fd=null;_.t.Ba="";_.t.nc="";_.t.toString=function(){var a=[],b=this.hb;b&&a.push(Oi(b,Eu,!0),":");if(b=this.Oa){a.push("//");var c=this.Bc;c&&a.push(Oi(c,Eu,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.fd;null!=b&&a.push(":",String(b))}if(b=this.Ba)this.Oa&&"/"!=b.charAt(0)&&a.push("/"),a.push(Oi(b,"/"==b.charAt(0)?Fu:Gu,!0));(b=this.a.toString())&&a.push("?",b);(b=this.nc)&&a.push("#",Oi(b,Pu));return a.join("")};
400
+ _.x(_.Bi,Error);var Li=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.t=_.Gi.prototype;_.t.hb="";_.t.Bc="";_.t.Oa="";_.t.fd=null;_.t.Ba="";_.t.nc="";_.t.toString=function(){var a=[],b=this.hb;b&&a.push(Oi(b,Wu,!0),":");if(b=this.Oa){a.push("//");var c=this.Bc;c&&a.push(Oi(c,Wu,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.fd;null!=b&&a.push(":",String(b))}if(b=this.Ba)this.Oa&&"/"!=b.charAt(0)&&a.push("/"),a.push(Oi(b,"/"==b.charAt(0)?Xu:Yu,!0));(b=this.a.toString())&&a.push("?",b);(b=this.nc)&&a.push("#",Oi(b,Zu));return a.join("")};
398
401
  _.t.resolve=function(a){var b=new _.Gi(this);"data"===b.hb&&(b=new _.Gi);var c=!!a.hb;c?Hi(b,a.hb):c=!!a.Bc;c?b.Bc=a.Bc:c=!!a.Oa;c?b.Oa=a.Oa:c=null!=a.fd;var d=a.Ba;if(c)Ii(b,a.fd);else if(c=!!a.Ba){if("/"!=d.charAt(0))if(this.Oa&&!this.Ba)d="/"+d;else{var e=b.Ba.lastIndexOf("/");-1!=e&&(d=b.Ba.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):
399
- ".."==h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.Ba=d:c=""!==a.a.toString();c?_.Ji(b,Ki(a.a)):c=!!a.nc;c&&(b.nc=a.nc);return b};var Eu=/[#\/\?@]/g,Gu=/[#\?:]/g,Fu=/[#\?]/g,Pi=/[#\?@]/g,Pu=/#/g;_.Ni.prototype.a=null;_.Ni.prototype.h=null;
402
+ ".."==h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.Ba=d:c=""!==a.a.toString();c?_.Ji(b,Ki(a.a)):c=!!a.nc;c&&(b.nc=a.nc);return b};var Wu=/[#\/\?@]/g,Yu=/[#\?:]/g,Xu=/[#\?]/g,Pi=/[#\?@]/g,Zu=/#/g;_.Ni.prototype.a=null;_.Ni.prototype.h=null;
400
403
  _.Ni.prototype.add=function(a,b){if(!this.a&&(this.a={},this.h=0,this.f))for(var c=this.f.split("\x26"),d=0;d<c.length;d++){var e=c[d].indexOf("\x3d"),f=null;if(0<=e){var g=c[d].substring(0,e);f=c[d].substring(e+1)}else g=c[d];g=decodeURIComponent(g.replace(/\+/g," "));f=f||"";this.add(g,decodeURIComponent(f.replace(/\+/g," ")))}this.f=null;(c=this.a.hasOwnProperty(a)&&this.a[a])||(this.a[a]=c=[]);c.push(b);null!==this.h&&this.h++;return this};
401
- _.Ni.prototype.toString=function(){if(this.f)return this.f;if(!this.a)return"";var a=[],b;for(b in this.a)for(var c=encodeURIComponent(b),d=this.a[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="\x3d"+encodeURIComponent(d[e]));a.push(f)}return this.f=a.join("\x26")};var Ri;_.R="text";_.Kp={VIDEO:_.r,AUDIO:_.bd,TEXT:_.R,yn:_.Tc,IMAGE:_.ze,Mi:_.ng};_.Xu=1/15;Ri={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4/,/^dts[cex]$/,/^iamf/,/^mhm[12]/],video:[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/,/^dva/,/^dav/]};Ri[_.R]=[/^vtt$/,/^wvtt/,/^stpp/];var Ti={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av0?1/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.Wi={text:{mp4:Wc,m4s:Wc,m4i:Wc,cmft:Wc,vtt:_.qg,ttml:_.Zc},video:{mp4:_.Jg,m4s:_.Jg,m4i:_.Jg,m4v:_.Jg,cmfv:_.Jg,ts:_.Ig},audio:{mp4:_.gd,m4s:_.gd,m4i:_.gd,m4a:_.gd,cmfa:_.gd,ts:_.Ig,aac:_.cd,ec3:_.ed,ac3:_.dd},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.Yi.prototype.toString=function(){function a(d){return d.name+"\x3d"+(isNaN(Number(d.value))?'"'+d.value+'"':d.value)}var b="#"+this.name,c=this.attributes?this.attributes.map(a):[];this.value&&c.unshift(this.value);0<c.length&&(b+=":"+c.join(","));return b};_.Yi.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name===a});return b.length?b[0]:null};_.bj.prototype.getPosition=function(){return this.position};_.bj.prototype.Fd=function(){return this.ka?this.ka-this.wa+1:null};_.bj.prototype.f=ah(0);_.x(_.cj,_.bj);var fj=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze",
402
- "cs"],["dan","da"],["deu","de"],[_.ae,"dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice",
404
+ _.Ni.prototype.toString=function(){if(this.f)return this.f;if(!this.a)return"";var a=[],b;for(b in this.a)for(var c=encodeURIComponent(b),d=this.a[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="\x3d"+encodeURIComponent(d[e]));a.push(f)}return this.f=a.join("\x26")};var Ri;_.R="text";_.Kp={VIDEO:_.r,AUDIO:_.ad,TEXT:_.R,yn:_.Sc,IMAGE:_.ye,Mi:_.mg};_.$u=1/15;Ri={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4/,/^dts[cex]$/,/^iamf/,/^mhm[12]/],video:[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/,/^dva/,/^dav/]};Ri[_.R]=[/^vtt$/,/^wvtt/,/^stpp/];var Ti={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av0?1/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.Wi={text:{mp4:Vc,m4s:Vc,m4i:Vc,cmft:Vc,vtt:_.pg,ttml:_.Yc},video:{mp4:_.Jg,m4s:_.Jg,m4i:_.Jg,m4v:_.Jg,cmfv:_.Jg,ts:_.Ig},audio:{mp4:_.ed,m4s:_.ed,m4i:_.ed,m4a:_.ed,cmfa:_.ed,ts:_.Ig,aac:_.bd,ec3:_.dd,ac3:_.cd},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.Yi.prototype.toString=function(){function a(d){return d.name+"\x3d"+(isNaN(Number(d.value))?'"'+d.value+'"':d.value)}var b="#"+this.name,c=this.attributes?this.attributes.map(a):[];this.value&&c.unshift(this.value);0<c.length&&(b+=":"+c.join(","));return b};_.Yi.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name===a});return b.length?b[0]:null};_.bj.prototype.getPosition=function(){return this.position};_.bj.prototype.Fd=function(){return this.ka?this.ka-this.wa+1:null};_.bj.prototype.f=ah(0);_.x(_.cj,_.bj);var fj=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze",
405
+ "cs"],["dan","da"],["deu","de"],[_.$d,"dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice",
403
406
  "is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao",
404
407
  "mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san",
405
408
  "sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie",
406
- "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var mj=function Yu(a){var c;return _.yh(Yu,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.y(d,c,3):d.F(0);c++;return d.F(2)})};_.J("clpp.utils.BufferUtils",jj);jj.toArrayBuffer=tj;jj.toDataView=_.sj;jj.toInt32Array=_.rj;jj.toUint32Array=qj;jj.toUint16Array=pj;jj.toUint8Array=_.lj;jj.equal=nj;_.S={};_.S.cd=new _.K("clpp.utils.strings");_.S.Ji=16E3;_.S.fromCharCode=function(a){for(var b=_.S.Ji,c="",d=0;d<a.length;d+=b)c+=String.fromCharCode.apply(null,a.subarray(d,d+b));return c};_.S.ba=function(a){if(!a)return"";a=_.lj(a);239===a[0]&&187===a[1]&&191===a[2]&&(a=a.subarray(3));if("TextDecoder"in window){a=(new TextDecoder).decode(a);if(a.includes("\ufffd"))throw Error(Za);return a}a=escape(_.S.fromCharCode(a));try{return decodeURIComponent(a)}catch(b){throw Error(Za);}};
409
+ "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var mj=function av(a){var c;return _.yh(av,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.y(d,c,3):d.F(0);c++;return d.F(2)})};_.J("clpp.utils.BufferUtils",jj);jj.toArrayBuffer=tj;jj.toDataView=_.sj;jj.toInt32Array=_.rj;jj.toUint32Array=qj;jj.toUint16Array=pj;jj.toUint8Array=_.lj;jj.equal=nj;_.S={};_.S.cd=new _.K("clpp.utils.strings");_.S.Ji=16E3;_.S.fromCharCode=function(a){for(var b=_.S.Ji,c="",d=0;d<a.length;d+=b)c+=String.fromCharCode.apply(null,a.subarray(d,d+b));return c};_.S.ba=function(a){if(!a)return"";a=_.lj(a);239===a[0]&&187===a[1]&&191===a[2]&&(a=a.subarray(3));if("TextDecoder"in window){a=(new TextDecoder).decode(a);if(a.includes("\ufffd"))throw Error(Za);return a}a=escape(_.S.fromCharCode(a));try{return decodeURIComponent(a)}catch(b){throw Error(Za);}};
407
410
  _.J("clpp.utils.strings.fromUtf8",_.S.ba);
408
411
  _.S.oc=function(a,b,c){if(!a)return"";var d=_.S.cd;if(!c&&0!==a.byteLength%2)throw d.error("Data has an incorrect length, must be even."),Error("Data does not seem to be UTF-16 encoded!");c=_.lj(a);if(b&&255===c[0]&&254===c[1]||254===c[0]&&255===c[1])a=c.subarray(2);a instanceof ArrayBuffer?d=a:(c=new Uint8Array(a.byteLength),c.set(_.lj(a)),d=c.buffer);a=Math.floor(a.byteLength/2);c=new Uint16Array(a);d=new DataView(d);for(var e=0;e<a;e++)c[e]=d.getUint16(2*e,b);return _.S.fromCharCode(c)};
409
412
  _.S.Bd=function(a,b){if(_.O.ca(a))return a;var c="",d=!!b,e=_.lj(a);239===e[0]&&187===e[1]&&191===e[2]?c=_.S.ba(e):254===e[0]&&255===e[1]?c=_.S.oc(e.subarray(2),!1):255===e[0]&&254===e[1]&&(c=_.S.oc(e.subarray(2),!0));var f=function(g,h){return g.byteLength<=h||32<=g[h]&&126>=g[h]}.bind(null,e);_.S.cd.debug("Unable to find byte-order-mark, making an educated guess.");0===e[0]&&0===e[2]?c=_.S.oc(a,!1):0===e[1]&&0===e[3]?c=_.S.oc(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.S.ba(a));if(c)return d&&(c=escape(c)),
410
- c;throw Error("Unable to detect text encoding");};_.J("clpp.utils.strings.fromBytesAutoDetect",_.S.Bd);_.S.Va=function(a){if("TextEncoder"in window)return(new TextEncoder).encode(a);a=encodeURIComponent(a);a=unescape(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b};_.J("clpp.utils.strings.toUtf8",_.S.Va);_.S.Oe=function(a,b){for(var c=new Uint8Array(2*a.length),d=new DataView(c.buffer),e=0;e<a.length;++e)d.setUint16(2*e,a.charCodeAt(e),b);return c.buffer};
411
- _.J("clpp.utils.strings.toUtf16",_.S.Oe);_.S.jd=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=qj(e):2===c?f=pj(e):f=_.lj(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};_.J("clpp.utils.strings.toByteArray",_.S.jd);_.S.startsWith=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.J("clpp.utils.strings.startsWith",_.S.startsWith);
412
- _.S.endsWith=function(a,b){if(String.prototype.endsWith)return a.endsWith(b);var c=a.length-b.length,d=a.lastIndexOf(b,c);return-1!==d&&d===c};_.J("clpp.utils.strings.endsWith",_.S.endsWith);_.S.Ee=function(a){return!!(a&&0<a.length)};_.S.empty=function(a){return!a||0===a.length};_.S.Qn=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};_.S.Tn=function(a){return a.replace(/-(\w)/g,function(b,c){return c.toUpperCase()})};
413
- _.S.gf=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.O.isNaN(b))return"";a="bps";1E3<=Math.abs(b)&&(a="Kbps",b/=1E3);1E3<=Math.abs(b)&&(a="Mbps",b/=1E3);return b.toFixed(2).replace(/[.,]00$/,"")+a}catch(c){return""}};_.J("clpp.utils.strings.bitrateToString",_.S.gf);
413
+ c;throw Error("Unable to detect text encoding");};_.J("clpp.utils.strings.fromBytesAutoDetect",_.S.Bd);_.S.Va=function(a){if("TextEncoder"in window)return(new TextEncoder).encode(a);a=encodeURIComponent(a);a=unescape(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b};_.J("clpp.utils.strings.toUtf8",_.S.Va);_.S.Pe=function(a,b){for(var c=new Uint8Array(2*a.length),d=new DataView(c.buffer),e=0;e<a.length;++e)d.setUint16(2*e,a.charCodeAt(e),b);return c.buffer};
414
+ _.J("clpp.utils.strings.toUtf16",_.S.Pe);_.S.jd=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=qj(e):2===c?f=pj(e):f=_.lj(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};_.J("clpp.utils.strings.toByteArray",_.S.jd);_.S.startsWith=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.J("clpp.utils.strings.startsWith",_.S.startsWith);
415
+ _.S.endsWith=function(a,b){if(String.prototype.endsWith)return a.endsWith(b);var c=a.length-b.length,d=a.lastIndexOf(b,c);return-1!==d&&d===c};_.J("clpp.utils.strings.endsWith",_.S.endsWith);_.S.Fe=function(a){return!!(a&&0<a.length)};_.S.empty=function(a){return!a||0===a.length};_.S.Qn=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};_.S.Tn=function(a){return a.replace(/-(\w)/g,function(b,c){return c.toUpperCase()})};
416
+ _.S.hf=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.O.isNaN(b))return"";a="bps";1E3<=Math.abs(b)&&(a="Kbps",b/=1E3);1E3<=Math.abs(b)&&(a="Mbps",b/=1E3);return b.toFixed(2).replace(/[.,]00$/,"")+a}catch(c){return""}};_.J("clpp.utils.strings.bitrateToString",_.S.hf);
414
417
  _.S.xk=function(a,b){function c(h){return function(l,m){return d(h,m.length-1)}}function d(h,l){return h.length<l?d("0"+h,l):h}b=void 0===b?"%h:%mm:%ss":b;if(null===a||void 0===a)a=0;if(null===b||void 0===b)b="%h:%mm:%ss";var e=Math.floor(a/3600),f=Math.floor((a-3600*e)/60),g=Math.floor(a-3600*e-60*f);return b.replace(/(%h+)/,c(String(e))).replace(/(%m+)/,c(String(f))).replace(/(%s+)/,c(String(g)))};_.J("clpp.utils.strings.durationToString",_.S.xk);
415
418
  _.S.zk=function(a,b){for(var c in b)if(b[c]===a)return c;return""};_.S.il=function(a){var b=0;if(0===a.length)return b;for(var c=0;c<a.length;c++)b=(b<<5)-b+a.charCodeAt(c),b|=0;return b};_.J("clpp.utils.strings.hashCode",_.S.il);_.S.rn=function(a){_.S.pi.innerHTML=a;return _.S.pi.textContent};_.S.pi=document.createElement("span");_.S.hg=function(a){a=a.replace(/<[^>]+>/gi,"");a=_.S.rn(a);return a=a.replace(/<[^>]+>/gi,"")};_.S.Nh=function(a){return a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")};_.J("clpp.utils.Uint8ArrayUtils",uj);uj.toStandardBase64=_.vj;uj.concat=Bj;uj.equal=_.Aj;uj.toHex=_.zj;uj.fromHex=_.yj;uj.fromBase64=_.xj;uj.toBase64Url=_.wj;_.Y={Sb:function(a,b){return a.filter(function(c){return c.name===b})},yi:function(a){var b=/^[a-zA-Z0-9_-]+$/,c=new Set;a.forEach(function(d){var e=_.Zi(d,"VALUE"),f=_.Zi(d,"NAME"),g=_.Zi(d,"IMPORT"),h=_.Zi(d,"QUERYPARAM");if(1!==[f,g,h].filter(Boolean).length||f&&null==e)throw new _.P(_.Q,4,4044,{message:"Invalid tag.",text:d.toString()});d=f||g||h;if(c.has(d))throw new _.P(_.Q,4,4044,'EXT-X-DEFINE redefined variable "'+d+'".');if(!b.test(d))throw new _.P(_.Q,4,4044,'EXT-X-DEFINE invalid variable name "'+
416
- d+'".');c.add(d)})},xf:function(a,b){var c=Array.isArray(b)?b:[b];return a.filter(function(d){d=_.$i(d,_.ec);return c.includes(d)})},Yb:function(a,b){return a.some(function(c){return c.name===b})},Qa:function(a,b,c){c=void 0===c?{}:c;a=a.find(function(d){return d.name===b})||null;if(!a&&c.required)throw new _.P(_.Q,4,4024,{missingTag:b});return a},th:function(a,b){return _.Y.Qa(a,b,{required:!0})},Sk:function(a,b,c){c=void 0===c?0:c;return(a=_.Y.Qa(a,b))?Number(a.value):c},Xn:function(a,b,c){return a.filter(function(d){var e=
417
- d.getAttribute(_.ec);d=d.getAttribute(_.eb);return e.value===b&&d.value===c})},Km:function(a){var b=_.Y.Qa(a,"EXT-X-TILES");if(!b)return{Gd:1,ae:1,durationPerTile:null};a=_.Zi(b,"LAYOUT")||"1x1";b=_.Zi(b,_.Ga);a=_.hj(a);return{Gd:a.Gd,ae:a.ae,durationPerTile:b?Number(b):null}},td:function(a,b,c){c=void 0===c?!0:c;a=new _.Gi(a);b=new _.Gi(b);b=a.resolve(b).toString();return c?b:decodeURI(b)},Ch:function(a){return/^#(?!EXT)/m.test(a)},Jh:function(a,b){Array.isArray(a)||(a=[a]);a.forEach(function(c){for(var d=
418
- _.w(_.Y.Me(c)),e=d.next();!e.done;e=d.next())b(e.value,c)})},Me:function(a){var b=new Set;a.variants.forEach(function(c){c.audio&&b.add(c.audio);c.video&&b.add(c.video)});a.textStreams.forEach(function(c){return b.add(c)});a.thumbStreams.forEach(function(c){return b.add(c)});return Array.from(b)},jl:function(a){return a.some(function(b){return _.Y.Yb(b.X,Na)})},Ui:function(a){return _.Y.Me(a).filter(_.Y.Ah)},Jm:function(a,b){var c=_.Y.Qa(a,Na);if(b&&c)return _.nc;c=_.Y.Qa(a,Ta);if(!c)return"LIVE";
419
- if(c.value===_.nc)return _.nc;if("EVENT"===c.value)return"EVENT";throw new _.P(_.Q,4,4044,"Invalid EXT-X-PLAYLIST-TYPE value: "+c.value);},Xg:function(a){a={AUDIO:_.bd,VIDEO:_.r,SUBTITLES:_.R,"CLOSED-CAPTIONS":_.R}[a.toUpperCase()];if(!a)throw new _.P(_.Q,4,4044,"EXT-X-MEDIA tag has an invalid TYPE attribute.");return a},nk:function(a){var b=_.$i(a,_.ec).toUpperCase();if(_.Y.Xg(b)!==_.R)return null;a=a.getAttribute("FORCED");a=!(!a||!a.value||"YES"!==a.value.toUpperCase());var c=_.ng;b===_.ra&&(c=
420
- _.qd);a&&(c=_.te);return c},ci:function(a,b,c){c=void 0===c?!1:c;var d=0,e=null;if(a){d=a.split("@");a=Number(d[0]);if(0>=a)throw new _.P(_.Q,4,4044,"Byte range length must be positive.");if(d[1]){if(d=Number(d[1]),0>d)throw new _.P(_.Q,4,4044,"Byte range start byte must not be negative.");}else{if(c)throw new _.P(_.Q,4,4044,"Invalid byte range, offset is required but missing.");if(null==b)throw new _.P(_.Q,4,4044,"Invalid byte range, cannot calculate offset based on previous byte ranges.");d=b+1}e=
419
+ d+'".');c.add(d)})},yf:function(a,b){var c=Array.isArray(b)?b:[b];return a.filter(function(d){d=_.$i(d,_.dc);return c.includes(d)})},Yb:function(a,b){return a.some(function(c){return c.name===b})},Qa:function(a,b,c){c=void 0===c?{}:c;a=a.find(function(d){return d.name===b})||null;if(!a&&c.required)throw new _.P(_.Q,4,4024,{missingTag:b});return a},th:function(a,b){return _.Y.Qa(a,b,{required:!0})},Sk:function(a,b,c){c=void 0===c?0:c;return(a=_.Y.Qa(a,b))?Number(a.value):c},Xn:function(a,b,c){return a.filter(function(d){var e=
420
+ d.getAttribute(_.dc);d=d.getAttribute(_.eb);return e.value===b&&d.value===c})},Km:function(a){var b=_.Y.Qa(a,"EXT-X-TILES");if(!b)return{Gd:1,ae:1,durationPerTile:null};a=_.Zi(b,"LAYOUT")||"1x1";b=_.Zi(b,_.Ga);a=_.hj(a);return{Gd:a.Gd,ae:a.ae,durationPerTile:b?Number(b):null}},td:function(a,b,c){c=void 0===c?!0:c;a=new _.Gi(a);b=new _.Gi(b);b=a.resolve(b).toString();return c?b:decodeURI(b)},Ch:function(a){return/^#(?!EXT)/m.test(a)},Jh:function(a,b){Array.isArray(a)||(a=[a]);a.forEach(function(c){for(var d=
421
+ _.w(_.Y.Ne(c)),e=d.next();!e.done;e=d.next())b(e.value,c)})},Ne:function(a){var b=new Set;a.variants.forEach(function(c){c.audio&&b.add(c.audio);c.video&&b.add(c.video)});a.textStreams.forEach(function(c){return b.add(c)});a.thumbStreams.forEach(function(c){return b.add(c)});return Array.from(b)},jl:function(a){return a.some(function(b){return _.Y.Yb(b.X,Na)})},Ui:function(a){return _.Y.Ne(a).filter(_.Y.Ah)},Jm:function(a,b){var c=_.Y.Qa(a,Na);if(b&&c)return _.mc;c=_.Y.Qa(a,Ta);if(!c)return"LIVE";
422
+ if(c.value===_.mc)return _.mc;if("EVENT"===c.value)return"EVENT";throw new _.P(_.Q,4,4044,"Invalid EXT-X-PLAYLIST-TYPE value: "+c.value);},Xg:function(a){a={AUDIO:_.ad,VIDEO:_.r,SUBTITLES:_.R,"CLOSED-CAPTIONS":_.R}[a.toUpperCase()];if(!a)throw new _.P(_.Q,4,4044,"EXT-X-MEDIA tag has an invalid TYPE attribute.");return a},nk:function(a){var b=_.$i(a,_.dc).toUpperCase();if(_.Y.Xg(b)!==_.R)return null;a=a.getAttribute("FORCED");a=!(!a||!a.value||"YES"!==a.value.toUpperCase());var c=_.mg;b===_.ra&&(c=
423
+ _.pd);a&&(c=_.se);return c},ci:function(a,b,c){c=void 0===c?!1:c;var d=0,e=null;if(a){d=a.split("@");a=Number(d[0]);if(0>=a)throw new _.P(_.Q,4,4044,"Byte range length must be positive.");if(d[1]){if(d=Number(d[1]),0>d)throw new _.P(_.Q,4,4044,"Byte range start byte must not be negative.");}else{if(c)throw new _.P(_.Q,4,4044,"Invalid byte range, offset is required but missing.");if(null==b)throw new _.P(_.Q,4,4044,"Invalid byte range, cannot calculate offset based on previous byte ranges.");d=b+1}e=
421
424
  d+a-1}return{wa:d,ka:e}},ei:function(a,b){var c=_.Y.Qa(a,Ja);return _.Y.ci(c?c.value:null,b)},Em:function(a){a=_.Y.th(a,"EXTINF").value.split(",");return{duration:Number(a[0]),title:a[1]||null}},fi:function(a,b){function c(f){return null==f?null:Number(f)}b=void 0===b?{}:b;var d={me:!1,Yi:!1,Zi:null,kl:null,gi:null},e=_.Y.Qa(a,Wa,{required:b.li});if(!e)return d;d.me="YES"===_.Zi(e,"CAN-BLOCK-RELOAD");d.Yi="YES"===_.Zi(e,"CAN-SKIP-DATERANGES");d.Zi=c(_.Zi(e,"CAN-SKIP-UNTIL"));d.kl=c(_.Zi(e,"HOLD-BACK"));
422
- d.gi=c(_.Zi(e,"PART-HOLD-BACK",void 0,{required:b.li}));return d},di:function(a,b,c){c=void 0===c?!1:c;a=_.Zi(a,"BYTERANGE");return _.Y.ci(a,b,c)},Hm:function(a){var b=_.Y.Sb(a,"EXT-X-MEDIA"),c=_.Y.Sb(a,_.Xa);a=_.Y.Sb(a,"EXT-X-IMAGE-STREAM-INF");return{dd:{Si:_.Y.xf(b,["AUDIO",_.mc]),closedCaptions:_.Y.xf(b,_.ra),kn:_.Y.xf(b,_.Wb)},be:c,Ef:a}},rk:function(a,b){var c=_.Y.ei(a.X,null);return new _.cj(0,0,0,function(){return[a.a]},c.wa,c.ka,0,b)},Af:function(a,b){if(null==a)return null;var c=Object.assign({},
423
- a);null==c.iv&&(c.iv=Bj(new Uint8Array(12),new Uint8Array([b>>24&255,b>>16&255,b>>8&255,b&255])));return c},al:function(a){var b=a.U;a=b[0].startTime;b=b[b.length-1].endTime;return{$b:a,Ce:b,duration:b-a}},Xk:function(a){var b=Infinity,c=Infinity;_.Y.Ui(a).forEach(function(d){d=_.Y.al(d);b=Math.min(b,d.$b);c=Math.min(c,d.duration)});return{$b:b,duration:c}},Ah:function(a){return a.type===_.bd||a.type===_.r},Ak:function(a){return a.filter(_.Y.Ah)},Wk:function(a){return a.map(function(b){return _.Y.Xk(b).duration}).reduce(function(b,
424
- c){return b+c},0)},Ok:function(a,b){return a&&b?_.Vo(a.drmInfos,b.drmInfos)?_.Uo(a.drmInfos,b.drmInfos):null:a?a.drmInfos:b?b.drmInfos:null},sk:function(a,b){return(b?b.Wb():"")+" - "+(a?a.Wb():"")},Zg:function(a){return(a.video?a.video.Lb:"")+" - "+(a.audio?a.audio.Lb:"")},Gm:function(a,b,c,d){if(b===_.nc)return{delay:0,Ac:0};b=_.Y.Qa(a,Sa);if(c&&b)return c=Number(_.$i(b,"PART-TARGET")),null!=d?{delay:d,Ac:c}:{delay:_.Y.fi(a,{li:!0}).gi,Ac:c};a=_.Y.th(a,Ya);a=Number(a.value);return null!=d?{delay:d,
425
+ d.gi=c(_.Zi(e,"PART-HOLD-BACK",void 0,{required:b.li}));return d},di:function(a,b,c){c=void 0===c?!1:c;a=_.Zi(a,"BYTERANGE");return _.Y.ci(a,b,c)},Hm:function(a){var b=_.Y.Sb(a,"EXT-X-MEDIA"),c=_.Y.Sb(a,_.Xa);a=_.Y.Sb(a,"EXT-X-IMAGE-STREAM-INF");return{dd:{Si:_.Y.yf(b,["AUDIO",_.lc]),closedCaptions:_.Y.yf(b,_.ra),kn:_.Y.yf(b,_.Wb)},be:c,Ef:a}},rk:function(a,b){var c=_.Y.ei(a.X,null);return new _.cj(0,0,0,function(){return[a.a]},c.wa,c.ka,0,b)},Af:function(a,b){if(null==a)return null;var c=Object.assign({},
426
+ a);null==c.iv&&(c.iv=Bj(new Uint8Array(12),new Uint8Array([b>>24&255,b>>16&255,b>>8&255,b&255])));return c},al:function(a){var b=a.U;a=b[0].startTime;b=b[b.length-1].endTime;return{$b:a,De:b,duration:b-a}},Xk:function(a){var b=Infinity,c=Infinity;_.Y.Ui(a).forEach(function(d){d=_.Y.al(d);b=Math.min(b,d.$b);c=Math.min(c,d.duration)});return{$b:b,duration:c}},Ah:function(a){return a.type===_.ad||a.type===_.r},Ak:function(a){return a.filter(_.Y.Ah)},Wk:function(a){return a.map(function(b){return _.Y.Xk(b).duration}).reduce(function(b,
427
+ c){return b+c},0)},Ok:function(a,b){return a&&b?_.Vo(a.drmInfos,b.drmInfos)?_.Uo(a.drmInfos,b.drmInfos):null:a?a.drmInfos:b?b.drmInfos:null},sk:function(a,b){return(b?b.Wb():"")+" - "+(a?a.Wb():"")},Zg:function(a){return(a.video?a.video.Lb:"")+" - "+(a.audio?a.audio.Lb:"")},Gm:function(a,b,c,d){if(b===_.mc)return{delay:0,Ac:0};b=_.Y.Qa(a,Sa);if(c&&b)return c=Number(_.$i(b,"PART-TARGET")),null!=d?{delay:d,Ac:c}:{delay:_.Y.fi(a,{li:!0}).gi,Ac:c};a=_.Y.th(a,Ya);a=Number(a.value);return null!=d?{delay:d,
425
428
  Ac:a}:{delay:3*a,Ac:a}},Vk:function(a){var b=[];_.Y.Jh(a,function(c){b.push(c.yl)});return{delay:Math.max.apply(Math,_.ch(b.map(function(c){return c.delay}))),Ac:Math.min.apply(Math,_.ch(b.map(function(c){return c.Ac})))}},nn:function(a){var b=new Map;a.forEach(function(c){var d=c.Tk();b.has(d)?(d=b.get(d),d.includes(c)||d.push(c)):b.set(d,[c])});return b},qh:function(a){return _.dj(a||_.vg)},Am:function(a){var b=new Map;a=_.w(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=_.Zi(c,_.ub);
426
429
  d=_.Y.qh(d);var e=_.$i(c,_.eb);c=_.$i(c,"INSTREAM-ID");b.has(e)||b.set(e,new Map);b.get(e).set(c,d)}return b},wk:function(a){a=_.w(a.audio.concat(a.video));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=b.Nk().filter(function(d){return"mp4a.40.34"!==d});b.$m(c)}},Lm:function(a){if(null==a.getAttribute("FRAME-RATE")&&null==a.getAttribute(_.Tb))return null;var b=_.Zi(a,"FRAME-RATE");a=_.Zi(a,_.Tb);var c=_.w(a?a.split("x"):[null,null]);a=c.next().value;c=c.next().value;return{frameRate:gj(b),
427
- width:gj(a),height:gj(c)}},ul:function(a){return"EXT-X-MEDIA"!==a.name?!0:_.Zi(a,_.ec)===_.Wb},Bm:function(a,b){var c=_.Zi(a,"ID"),d=_.Zi(a,"START-DATE");if(null===c||null===d)return _.Y.g.warn("Invalid EXT-X-DATERANGE missing mandatory ID or START-DATE attribute, ignoring the EXT-X-DATERANGE tag.",a),null;var e=new Date(d);d=e.getTime()/1E3-b;c={id:c,startTime:d,startDate:e};var f=gj(_.Zi(a,_.Ga));void 0!==f&&0<=f&&(c.duration=f);var g=gj(_.Zi(a,"PLANNED-DURATION"));void 0!==g&&0<=g&&(c.plannedDuration=
428
- g);var h=_.Zi(a,"CLASS");null!==h&&(c.schemeIdUri=h);var l=_.Zi(a,"END-DATE");l=l?new Date(l):null;null!==l&&l.getTime()>=e.getTime()&&(c.endDate=l);e=_.Y.zm(a)||{};if(h===Rd){h=_.Y.Fm(a);if(null===h)return _.Y.g.warn("Invalid interstitial attributes, ignoring the EXT-X-DATERANGE tag.",a),null;e=Object.assign(e,h)}_.O.Jd(e)&&(c.Xa=e);c.endTime=l?l.getTime()/1E3:f?d+f:g?d+g:d;c.type=Zu;return c},zm:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.w(b);for(var c=b.next();!c.done;c=b.next())c=
429
- c.value,c.name.startsWith("X-")&&(a[c.name]=c.value);return _.O.Jd(a)?a:null},Fm:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.w(b);for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c.name){case vc:a[vc]=c.value;break;case uc:a[uc]=c.value;break;case xc:a[xc]=gj(c.value);break;case wc:a[wc]=gj(c.value);break;case "X-SNAP":a["X-SNAP"]=c.value.split(",");break;case "X-RESTRICT":a["X-SNAP"]=c.value.split(",")}return a[vc]&&a[uc]||!a[vc]&&!a[uc]?(_.Y.g.warn("Invalid EXT-X-DATERANGE Interstitial attributes X-ASSET-URI, X-ASSET-LIST"),
430
- null):_.O.Jd(a)?a:null},ih:function(a,b){if(!a)return null;var c=a.Lb;return b.find(function(d){return d.Wb()===c})||null}};_.Y.g=new _.K("clpp.hls.Utils");_.$u=new Set([_.Ma,Na,"EXT-X-I-FRAMES-ONLY",_.Ra,Sa,Ta,Wa,Ya]);_.av=new Set(["EXTINF",Ja,_.La,_.Oa,_.Pa,_.Va]);_.bv=new Set(["EXT-X-PART",_.Ua]);_.cv=new Set([_.Ka]);var Fj=[403,401];_.J("clpp.net.DEFAULT_FATAL_STATUS_CODES",Fj);_.J("clpp.net.makeRequest",_.Jj);_.Ij=6;_.J("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.Ij});_.Oj.prototype.resolve=function(){};_.Oj.prototype.reject=function(){};_.Pj.prototype.abort=function(){this.a=!0;return this.A()};_.Pj.prototype.ne=function(a,b){function c(){e.reject(new _.P(_.Q,7,7001));return d.abort()}var d=this,e=new _.Oj;this.P.then(function(f){d.a?e.reject(new _.P(_.Q,7,7001)):a?c=Rj(a,f,e):e.resolve(f)},function(f){b?c=Rj(b,f,e):e.reject(f)});return new _.Pj(e,function(){return c()})};_.Pj.aborted=function(){var a=Promise.reject(new _.P(_.Q,7,7001));a["catch"](function(){});return new _.Pj(a,function(){return Promise.resolve()})};
431
- _.Pj.prototype.chain=_.Pj.prototype.ne;_.Sj.prototype.destroy=function(){for(var a=[],b=_.w(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.P["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.t=_.ak.prototype;_.t.en=function(a){0<a?_.Fh("Rate limit set to "+a+"bps"):_.Fh("Rate limit disabled");this.l=a};_.t.release=function(){return this.o.destroy()};_.t.destroy=function(){this.w=!0;this.f=[];this.h=[];return this.o.destroy()};_.t.ef=function(a){this.f.push(a)};_.t.Nc=function(a){this.h.push(a)};_.t.$f=function(a){this.f=this.f.filter(function(b){return b!==a})};_.t.Xd=function(a){this.h=this.h.filter(function(b){return b!==a})};
432
- _.t.fetch=function(a){var b=this;if(this.w)return new Vt(Promise.reject(new _.P(1,1,7001,{url:a.uris[a.uriIndex],request:a})));this.l&&0<this.l&&(a.rateLimitBps=this.l);for(var c=[],d=_.w(this.f),e=d.next();!e.done;e=d.next())c.push(e.value);if(a.requestModifiers)for(d=_.w(a.requestModifiers),e=d.next();!e.done;e=d.next())c.push(e.value);a.requestModifiers=c;c=[];d=_.w(this.h);for(e=d.next();!e.done;e=d.next())c.push(e.value);if(a.responseModifiers)for(d=_.w(a.responseModifiers),e=d.next();!e.done;e=
433
- d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.Oj;try{var f={},g=_.w(a.requestModifiers);for(e=g.next();!e.done;f={We:f.We},e=g.next())f.We=e.value,d=d.then(function(n){return function(p){if(h.a)throw new _.P(_.Q,1,7001,p?{url:p.uris[p.uriIndex],request:p}:null);return n.We(p)||p}}(f))["catch"](function(n){if(n instanceof _.P)throw n;throw new _.P(_.Q,1,1006,null,n);});d=d.then(function(n){var p=new _.Gi(n.uris[n.uriIndex]),q=p.hb;q||(q=location.protocol,q=q.slice(0,-1),Hi(p,q),n.uris[n.uriIndex]=
434
- p.toString());q=b.a[q];if(!q)throw new _.P(_.Q,1,1E3,{url:p.toString()});return{request:n,plugin:q}});var h=new Vt(d);g={};var l=_.w(a.responseModifiers);for(e=l.next();!e.done;g={fe:g.fe},e=l.next())g.fe=e.value,h.then(function(n){return function(p){function q(){if(h.a)throw new _.P(_.Q,1,7001,p?{url:p.request.uris[p.request.uriIndex],request:p.request}:null);}q();var u=n.fe(p)||p;q();return u}}(g))["catch"](function(n){return function(p){if(p instanceof _.P&&p.data&&p.data.response){var q=n.fe(p.data.response);
435
- if(q&&q.then)return q.then(function(){return Promise.reject(p)})}return Promise.reject(p)}}(g))["catch"](function(n){if(n instanceof _.P)throw n;throw new _.P(_.Q,1,1007,null,n);});l={};var m=_.w(this.j);for(e=m.next();!e.done;l={Xe:l.Xe},e=m.next())l.Xe=e.value,h["catch"](function(n){return function(p){p instanceof _.P&&p.data&&p.data.response||n.Xe({uri:a.uris[a.uriIndex],data:(new Uint8Array(0)).buffer,status:-1,timeMs:0,headers:{},request:a});return Promise.reject(p)}}(l))["catch"](function(n){if(n instanceof
436
- _.P)throw n;throw new _.P(_.Q,1,1007,null,n);});_.Tj(this.o,h);c.resolve(a);return h}catch(n){return new Vt(Promise.reject(n))}};_.J("clpp.net.NetworkEngine",_.ak);_.ak.prototype.fetch=_.ak.prototype.fetch;_.ak.prototype.removeResponseModifier=_.ak.prototype.Xd;_.ak.prototype.removeRequestModifier=_.ak.prototype.$f;_.ak.prototype.addResponseModifier=_.ak.prototype.Nc;_.ak.prototype.addRequestModifier=_.ak.prototype.ef;_.ak.prototype.setRateLimit=_.ak.prototype.en;var ik;_.ek.prototype.la=function(a){return this.type===a.type&&this.channelsCount===a.channelsCount&&this.frameRate===a.frameRate&&this.trickPlay===a.trickPlay&&this.kind===a.kind&&this.label===a.label&&this.language===a.language&&this.mimeType===a.mimeType&&mi(this.roles,a.roles)&&mi(this.accessibility,a.accessibility,ok)};_.ek.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.J("clpp.Track",_.ek);
437
- _.ek.prototype.toString=_.ek.prototype.toString;_.J("clpp.Rendition",_.pk);_.kk=1;_.hk=_.r;_.gk=_.bd;_.T="text";ik=_.Re;_.dv={VIDEO:_.hk,AUDIO:_.gk,TEXT:_.T,METADATA:ik};_.ek.Type=_.dv;_.J("clpp.utils.url.queryString",_.sk);vk.prototype.h=function(a,b){var c=this,d,e,f,g,h,l,m;return _.H(function(n){switch(n.a){case 1:return d=null,_.B(n,2),_.y(n,Bk(c,a),4);case 4:d=n.f;_.qh(n,3);break;case 2:return e=_.E(n),c.g.warn("Failed to fetch playlist in order metadata from HLS playlist.",e.message),n["return"](Promise.resolve({}));case 3:f={};_.B(n,5);if(!b.enableHlsVideoTrackInfo){n.F(7);break}return _.y(n,yk(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.qh(n,6);break;case 5:h=_.E(n),c.g.warn("Failed to parse video metadata from HLS playlist.",
438
- h.message);case 6:return _.B(n,9),_.y(n,Ak(d),11);case 11:l=n.f;f.dd=l;_.qh(n,10);break;case 9:m=_.E(n),c.g.warn("Failed to parse metadata from HLS playlist.",m.message);case 10:return n["return"](f)}})};_.Hk=[];_.t=_.V.prototype;_.t.kf=function(){return!0};_.t.Gk=function(a){return this.getVideoTracks().find(function(b){return _.O.la(b,a,a&&Object.keys(a))})};_.t.Ck=function(a){return this.getAudioTracks().find(function(b){return _.O.la(b,a,a&&Object.keys(a))})};_.t.Ek=function(a){return this.ia().find(function(b){return _.O.la(b,a,a&&Object.keys(a))})};_.t.Fk=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.O.la(b,a,a&&Object.keys(a))})};
430
+ width:gj(a),height:gj(c)}},ul:function(a){return"EXT-X-MEDIA"!==a.name?!0:_.Zi(a,_.dc)===_.Wb},Bm:function(a,b){var c=_.Zi(a,"ID"),d=_.Zi(a,"START-DATE");if(null===c||null===d)return _.Y.g.warn("Invalid EXT-X-DATERANGE missing mandatory ID or START-DATE attribute, ignoring the EXT-X-DATERANGE tag.",a),null;var e=new Date(d);d=e.getTime()/1E3-b;c={id:c,startTime:d,startDate:e};var f=gj(_.Zi(a,_.Ga));void 0!==f&&0<=f&&(c.duration=f);var g=gj(_.Zi(a,"PLANNED-DURATION"));void 0!==g&&0<=g&&(c.plannedDuration=
431
+ g);var h=_.Zi(a,"CLASS");null!==h&&(c.schemeIdUri=h);var l=_.Zi(a,"END-DATE");l=l?new Date(l):null;null!==l&&l.getTime()>=e.getTime()&&(c.endDate=l);e=_.Y.zm(a)||{};if(h===Qd){h=_.Y.Fm(a);if(null===h)return _.Y.g.warn("Invalid interstitial attributes, ignoring the EXT-X-DATERANGE tag.",a),null;e=Object.assign(e,h)}_.O.Jd(e)&&(c.Xa=e);c.endTime=l?l.getTime()/1E3:f?d+f:g?d+g:d;c.type=bv;return c},zm:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.w(b);for(var c=b.next();!c.done;c=b.next())c=
432
+ c.value,c.name.startsWith("X-")&&(a[c.name]=c.value);return _.O.Jd(a)?a:null},Fm:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.w(b);for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c.name){case uc:a[uc]=c.value;break;case tc:a[tc]=c.value;break;case wc:a[wc]=gj(c.value);break;case vc:a[vc]=gj(c.value);break;case "X-SNAP":a["X-SNAP"]=c.value.split(",");break;case "X-RESTRICT":a["X-SNAP"]=c.value.split(",")}return a[uc]&&a[tc]||!a[uc]&&!a[tc]?(_.Y.g.warn("Invalid EXT-X-DATERANGE Interstitial attributes X-ASSET-URI, X-ASSET-LIST"),
433
+ null):_.O.Jd(a)?a:null},ih:function(a,b){if(!a)return null;var c=a.Lb;return b.find(function(d){return d.Wb()===c})||null}};_.Y.g=new _.K("clpp.hls.Utils");_.cv=new Set([_.Ma,Na,"EXT-X-I-FRAMES-ONLY",_.Ra,Sa,Ta,Wa,Ya]);_.dv=new Set(["EXTINF",Ja,_.La,_.Oa,_.Pa,_.Va]);_.ev=new Set(["EXT-X-PART",_.Ua]);_.fv=new Set([_.Ka]);var Fj=[403,401];_.J("clpp.net.DEFAULT_FATAL_STATUS_CODES",Fj);_.J("clpp.net.makeRequest",_.Jj);_.Ij=6;_.J("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.Ij});_.Oj.prototype.resolve=function(){};_.Oj.prototype.reject=function(){};_.Pj.prototype.abort=function(){this.a=!0;return this.A()};_.Pj.prototype.ne=function(a,b){function c(){e.reject(new _.P(_.Q,7,7001));return d.abort()}var d=this,e=new _.Oj;this.P.then(function(f){d.a?e.reject(new _.P(_.Q,7,7001)):a?c=Rj(a,f,e):e.resolve(f)},function(f){b?c=Rj(b,f,e):e.reject(f)});return new _.Pj(e,function(){return c()})};_.Pj.aborted=function(){var a=Promise.reject(new _.P(_.Q,7,7001));a["catch"](function(){});return new _.Pj(a,function(){return Promise.resolve()})};
434
+ _.Pj.prototype.chain=_.Pj.prototype.ne;_.Sj.prototype.destroy=function(){for(var a=[],b=_.w(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.P["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.t=_.ak.prototype;_.t.en=function(a){0<a?_.Fh("Rate limit set to "+a+"bps"):_.Fh("Rate limit disabled");this.l=a};_.t.release=function(){return this.o.destroy()};_.t.destroy=function(){this.w=!0;this.f=[];this.h=[];return this.o.destroy()};_.t.ff=function(a){this.f.push(a)};_.t.Nc=function(a){this.h.push(a)};_.t.$f=function(a){this.f=this.f.filter(function(b){return b!==a})};_.t.Xd=function(a){this.h=this.h.filter(function(b){return b!==a})};
435
+ _.t.fetch=function(a){var b=this;if(this.w)return new Zt(Promise.reject(new _.P(1,1,7001,{url:a.uris[a.uriIndex],request:a})));this.l&&0<this.l&&(a.rateLimitBps=this.l);for(var c=[],d=_.w(this.f),e=d.next();!e.done;e=d.next())c.push(e.value);if(a.requestModifiers)for(d=_.w(a.requestModifiers),e=d.next();!e.done;e=d.next())c.push(e.value);a.requestModifiers=c;c=[];d=_.w(this.h);for(e=d.next();!e.done;e=d.next())c.push(e.value);if(a.responseModifiers)for(d=_.w(a.responseModifiers),e=d.next();!e.done;e=
436
+ d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.Oj;try{var f={},g=_.w(a.requestModifiers);for(e=g.next();!e.done;f={Xe:f.Xe},e=g.next())f.Xe=e.value,d=d.then(function(n){return function(p){if(h.a)throw new _.P(_.Q,1,7001,p?{url:p.uris[p.uriIndex],request:p}:null);return n.Xe(p)||p}}(f))["catch"](function(n){if(n instanceof _.P)throw n;throw new _.P(_.Q,1,1006,null,n);});d=d.then(function(n){var p=new _.Gi(n.uris[n.uriIndex]),q=p.hb;q||(q=location.protocol,q=q.slice(0,-1),Hi(p,q),n.uris[n.uriIndex]=
437
+ p.toString());q=b.a[q];if(!q)throw new _.P(_.Q,1,1E3,{url:p.toString()});return{request:n,plugin:q}});var h=new Zt(d);g={};var l=_.w(a.responseModifiers);for(e=l.next();!e.done;g={fe:g.fe},e=l.next())g.fe=e.value,h.then(function(n){return function(p){function q(){if(h.a)throw new _.P(_.Q,1,7001,p?{url:p.request.uris[p.request.uriIndex],request:p.request}:null);}q();var u=n.fe(p)||p;q();return u}}(g))["catch"](function(n){return function(p){if(p instanceof _.P&&p.data&&p.data.response){var q=n.fe(p.data.response);
438
+ if(q&&q.then)return q.then(function(){return Promise.reject(p)})}return Promise.reject(p)}}(g))["catch"](function(n){if(n instanceof _.P)throw n;throw new _.P(_.Q,1,1007,null,n);});l={};var m=_.w(this.j);for(e=m.next();!e.done;l={Ye:l.Ye},e=m.next())l.Ye=e.value,h["catch"](function(n){return function(p){p instanceof _.P&&p.data&&p.data.response||n.Ye({uri:a.uris[a.uriIndex],data:(new Uint8Array(0)).buffer,status:-1,timeMs:0,headers:{},request:a});return Promise.reject(p)}}(l))["catch"](function(n){if(n instanceof
439
+ _.P)throw n;throw new _.P(_.Q,1,1007,null,n);});_.Tj(this.o,h);c.resolve(a);return h}catch(n){return new Zt(Promise.reject(n))}};_.J("clpp.net.NetworkEngine",_.ak);_.ak.prototype.fetch=_.ak.prototype.fetch;_.ak.prototype.removeResponseModifier=_.ak.prototype.Xd;_.ak.prototype.removeRequestModifier=_.ak.prototype.$f;_.ak.prototype.addResponseModifier=_.ak.prototype.Nc;_.ak.prototype.addRequestModifier=_.ak.prototype.ff;_.ak.prototype.setRateLimit=_.ak.prototype.en;var ik;_.ek.prototype.la=function(a){return this.type===a.type&&this.channelsCount===a.channelsCount&&this.frameRate===a.frameRate&&this.trickPlay===a.trickPlay&&this.kind===a.kind&&this.label===a.label&&this.language===a.language&&this.mimeType===a.mimeType&&mi(this.roles,a.roles)&&mi(this.accessibility,a.accessibility,ok)};_.ek.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.J("clpp.Track",_.ek);
440
+ _.ek.prototype.toString=_.ek.prototype.toString;_.J("clpp.Rendition",_.pk);_.kk=1;_.hk=_.r;_.gk=_.ad;_.T="text";ik=_.Qe;_.gv={VIDEO:_.hk,AUDIO:_.gk,TEXT:_.T,METADATA:ik};_.ek.Type=_.gv;_.J("clpp.utils.url.queryString",_.sk);vk.prototype.h=function(a,b){var c=this,d,e,f,g,h,l,m;return _.H(function(n){switch(n.a){case 1:return d=null,_.B(n,2),_.y(n,Bk(c,a),4);case 4:d=n.f;_.qh(n,3);break;case 2:return e=_.E(n),c.g.warn("Failed to fetch playlist in order metadata from HLS playlist.",e.message),n["return"](Promise.resolve({}));case 3:f={};_.B(n,5);if(!b.enableHlsVideoTrackInfo){n.F(7);break}return _.y(n,yk(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.qh(n,6);break;case 5:h=_.E(n),c.g.warn("Failed to parse video metadata from HLS playlist.",
441
+ h.message);case 6:return _.B(n,9),_.y(n,Ak(d),11);case 11:l=n.f;f.dd=l;_.qh(n,10);break;case 9:m=_.E(n),c.g.warn("Failed to parse metadata from HLS playlist.",m.message);case 10:return n["return"](f)}})};_.Hk=[];_.t=_.V.prototype;_.t.lf=function(){return!0};_.t.Gk=function(a){return this.getVideoTracks().find(function(b){return _.O.la(b,a,a&&Object.keys(a))})};_.t.Ck=function(a){return this.getAudioTracks().find(function(b){return _.O.la(b,a,a&&Object.keys(a))})};_.t.Ek=function(a){return this.ia().find(function(b){return _.O.la(b,a,a&&Object.keys(a))})};_.t.Fk=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.O.la(b,a,a&&Object.keys(a))})};
439
442
  _.t.Bk=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.O.la(b,a,a&&Object.keys(a))})};_.t.Dk=function(a){return this.ia().flatMap(function(b){return b.renditions}).find(function(b){return _.O.la(b,a,a&&Object.keys(a))})};_.J("clpp.TrackManager",_.V);_.V.prototype.isAbrEnabled=_.V.prototype.qa;_.V.prototype.addTextTrack=_.V.prototype.addTextTrack;_.V.prototype.findTextRendition=_.V.prototype.Dk;_.V.prototype.findAudioRendition=_.V.prototype.Bk;
440
443
  _.V.prototype.findVideoRendition=_.V.prototype.Fk;_.V.prototype.findTextTrack=_.V.prototype.Ek;_.V.prototype.findAudioTrack=_.V.prototype.Ck;_.V.prototype.findVideoTrack=_.V.prototype.Gk;_.V.prototype.setTextRendition=_.V.prototype.jb;_.V.prototype.setAudioRendition=_.V.prototype.ib;_.V.prototype.setVideoRendition=_.V.prototype.Za;_.V.prototype.setTextTrack=_.V.prototype.La;_.V.prototype.setAudioTrack=_.V.prototype.za;_.V.prototype.setVideoTrack=_.V.prototype.kb;_.V.prototype.getTextTrack=_.V.prototype.ua;
441
444
  _.V.prototype.getAudioTrack=_.V.prototype.ma;_.V.prototype.getVideoTrack=_.V.prototype.Ja;_.V.prototype.getLoadingTextRendition=_.V.prototype.ob;_.V.prototype.getLoadingAudioRendition=_.V.prototype.nb;_.V.prototype.getLoadingVideoRendition=_.V.prototype.eb;_.V.prototype.getTextRendition=_.V.prototype.Ia;_.V.prototype.getAudioRendition=_.V.prototype.Pa;_.V.prototype.getVideoRendition=_.V.prototype.na;_.V.prototype.getTextTracks=_.V.prototype.ia;_.V.prototype.getAudioTracks=_.V.prototype.getAudioTracks;
442
- _.V.prototype.getVideoTracks=_.V.prototype.getVideoTracks;_.V.prototype.canSelectVideoTracks=_.V.prototype.kf;var Lk=new Map,Kk=1,Pk=2,Ok=3,Nk=4;_.ev=(new Map).set(_.Nd,_.Nd).set("frameRate","framerate").set("bandwidth","bitrate").set(_.Wg,_.Wg).set(_.we,_.we).set("channelsCount","channels");_.Uk.prototype.da=function(a){return Vk(this,a,!1)};_.Uk.prototype.lb=function(a){return Vk(this,a,!0)};_.Uk.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.Wk.prototype.kg=function(){this.stop();this.f();return this};_.Wk.prototype.da=function(a){var b=this;this.stop();this.a=(new _.Uk(function(){b.f()})).da(a);return this};_.Wk.prototype.lb=function(a){var b=this;this.stop();this.a=(new _.Uk(function(){b.f()})).lb(a);return this};_.Wk.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.J("clpp.utils.Timer",_.Wk);_.Wk.prototype.stop=_.Wk.prototype.stop;_.Wk.prototype.tickEvery=_.Wk.prototype.lb;_.Wk.prototype.tickAfter=_.Wk.prototype.da;
443
- _.Wk.prototype.tickNow=_.Wk.prototype.kg;_.J(Md,Xk);Xk.getInfo=_.Xj;
444
- var hl=null,gl=null,jl=new _.K(Md),ql="android",pl="ios",vl="linux",rl="osx",sl="windows",tl="tizen",ul="webos",ol=wg,yl=wg,xl={windows:{os_version:/windows\s+?nt\s([\d.]+)/i,ie:/windows\s+?nt.+?trident\/[\d.]+.*rv:([\d.]+)/i,edge:/windows\s+?nt.+?edge?\/([\d.]+)/i,chrome:/windows\s+?nt.+?chrome\/([\d.]+)/i,firefox:/windows\s+?nt.+?firefox\/([\d.]+)/i,opera:/windows\s+?nt.+?opr\/([\d.]+)/i},osx:{os_version:/macintosh.+?([\d._]+)/i,safari:/macintosh.+?version\/([\d._]+).+?safari/i,edge:/macintosh.+?edge?\/([\d._]+)/i,
445
+ _.V.prototype.getVideoTracks=_.V.prototype.getVideoTracks;_.V.prototype.canSelectVideoTracks=_.V.prototype.lf;var Lk=new Map,Kk=1,Pk=2,Ok=3,Nk=4;_.hv=(new Map).set(_.Md,_.Md).set("frameRate","framerate").set("bandwidth","bitrate").set(_.Wg,_.Wg).set(_.ve,_.ve).set("channelsCount","channels");_.Uk.prototype.da=function(a){return Vk(this,a,!1)};_.Uk.prototype.lb=function(a){return Vk(this,a,!0)};_.Uk.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.Wk.prototype.kg=function(){this.stop();this.f();return this};_.Wk.prototype.da=function(a){var b=this;this.stop();this.a=(new _.Uk(function(){b.f()})).da(a);return this};_.Wk.prototype.lb=function(a){var b=this;this.stop();this.a=(new _.Uk(function(){b.f()})).lb(a);return this};_.Wk.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.J("clpp.utils.Timer",_.Wk);_.Wk.prototype.stop=_.Wk.prototype.stop;_.Wk.prototype.tickEvery=_.Wk.prototype.lb;_.Wk.prototype.tickAfter=_.Wk.prototype.da;
446
+ _.Wk.prototype.tickNow=_.Wk.prototype.kg;_.J(Ld,Xk);Xk.getInfo=_.Xj;
447
+ var hl=null,gl=null,jl=new _.K(Ld),ql="android",pl="ios",vl="linux",rl="osx",sl="windows",tl="tizen",ul="webos",ol=wg,yl=wg,xl={windows:{os_version:/windows\s+?nt\s([\d.]+)/i,ie:/windows\s+?nt.+?trident\/[\d.]+.*rv:([\d.]+)/i,edge:/windows\s+?nt.+?edge?\/([\d.]+)/i,chrome:/windows\s+?nt.+?chrome\/([\d.]+)/i,firefox:/windows\s+?nt.+?firefox\/([\d.]+)/i,opera:/windows\s+?nt.+?opr\/([\d.]+)/i},osx:{os_version:/macintosh.+?([\d._]+)/i,safari:/macintosh.+?version\/([\d._]+).+?safari/i,edge:/macintosh.+?edge?\/([\d._]+)/i,
445
448
  chrome:/macintosh.+?chrome\/([\d._]+)/i,firefox:/macintosh.+?firefox\/([\d._]+)/i,opera:/macintosh.+?opr\/([\d._]+)/i},unknown:{ie:/.+?trident\/([\d.]+)/i,edge:/.+?edge?\/([\d.]+)/i,safari:/.+?version\/([\d._]+).+?safari/i,chrome:/.+?chrome\/([\d._]+)/i,firefox:/.+?firefox\/([\d._]+)/i,opera:/.+?opr\/([\d._]+)/i},android:{os_version:/android.+?([\d._]+)/i,chrome:/android.+?chrome\/([\d._]+)/i,firefox:/android.+?firefox\/([\d._]+)/i,opera:/android.+?opr\/([\d._]+)/i},ios:{os_version:/(?:iPad|iPhone).+?([\d._]+)/i,
446
449
  chrome:/.+?CriOS\/([\d._]+)/i,firefox:/.+?FxiOS\/([\d._]+)/i,safari:/.+?version\/([\d._]+).+?safari/i,opera:/.+?opr\/([\d._]+)/i},linux:{os_version:/linux.+?([\d._]+)/i,safari:/linux.+?version\/([\d._]+).+?safari/i,chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i},tizen:{os_version:/tizen.+?([\d._]+)/i,safari:/linux.+?version\/([\d._]+).+?safari/i,chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i},
447
- webos:{os_version:/linux.+?([\d._]+)/i,safari:/linux.+?version\/([\d._]+).+?safari/i,chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i}};_.x(zl,_.V);_.t=zl.prototype;_.t.kf=function(){return!_.dl()};
448
- _.t.Sf=function(a,b){var c=this,d,e,f,g,h,l,m,n,p,q,u,v,z,C,I,F,D,G;return _.H(function(M){if(1==M.a){if(!b)return c.g.warn(Cb),M["return"]();d=b.track;if(!d)return c.g.warn(Fb),M["return"]();e=a===_.gk;f=a===_.hk;g=a===_.T;h=e||f;l=b.target;if(m=c.h.find(function(N){return Nl(N,d,a)}))return c.g.warn("Track from event already exists",d,m),M["return"]();n=nk(a,d);p=Rl(d);if(g){if(d.kind===_.Re)return M["return"]();void 0!==d.id?q=c.o[d.id]:(u=Object.values(c.o),q=u.find(function(N){return Nl(n,N,
449
- a)}));n.kind&&"captions"===n.kind&&(n.mimeType=_.Uc);q&&(n.src=q.url,n.mimeType=q.mimeType)}else if(m=c.h.find(function(N){return N.type===a&&_.O.la(N,n,["kind","label","language"])}))return m.id=d.id,p&&(c.g.debug($b+a+" track active"),c.a.set(a,m)),c.g.debug("Track from event seems to already exists, flipped native track to",d),M["return"]();_.B(M,2);v=new _.pk(n.id,n);n.renditions.push(v);c.h.push(n);z=c.m.getConfiguration().safari;return Dl(c,a,z)?_.y(M,Gl(c,n,z),5):El(c,a,z)?_.y(M,Hl(c,n,z),
450
- 5):M.F(5)}if(2!=M.a)return c.g.debug(a+" Track added",n),c.m.trigger(new _.L(_.fv)),C=Kl(c,a).length,I=!(!l||!l.length),F=l&&l.length||0,D=function(){c.g.debug($b+a+" track active. Native track active: "+(p+". Number of tracks: ")+C,d);c.a.set(a,n)},p?D():1===C&&h&&(f?D():I&&1!==F||D()),_.qh(M,0);G=_.E(M);c.g.error("Error while converting track data",G);_.A(M)})};
451
- _.t.Uf=function(a,b){if(b){var c=b.track;if(!c)this.g.warn(Fb);else if(a===_.T&&c.kind!==_.Re){var d=this.h.find(function(e){return Nl(e,c,a)});d&&(this.h.splice(this.h.indexOf(d),1),(this.a.get(a)||null)===d&&(this.a.set(a,null),Tl(this)),this.g.debug(a+" Track removed, id: ",d.id))}}else this.g.warn(Cb)};
450
+ webos:{os_version:/linux.+?([\d._]+)/i,safari:/linux.+?version\/([\d._]+).+?safari/i,chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i}};_.x(zl,_.V);_.t=zl.prototype;_.t.lf=function(){return!_.dl()};
451
+ _.t.Sf=function(a,b){var c=this,d,e,f,g,h,l,m,n,p,q,u,v,z,C,I,F,D,G;return _.H(function(M){if(1==M.a){if(!b)return c.g.warn(Cb),M["return"]();d=b.track;if(!d)return c.g.warn(Fb),M["return"]();e=a===_.gk;f=a===_.hk;g=a===_.T;h=e||f;l=b.target;if(m=c.h.find(function(N){return Nl(N,d,a)}))return c.g.warn("Track from event already exists",d,m),M["return"]();n=nk(a,d);p=Rl(d);if(g){if(d.kind===_.Qe)return M["return"]();void 0!==d.id?q=c.o[d.id]:(u=Object.values(c.o),q=u.find(function(N){return Nl(n,N,
452
+ a)}));n.kind&&"captions"===n.kind&&(n.mimeType=_.Tc);q&&(n.src=q.url,n.mimeType=q.mimeType)}else if(m=c.h.find(function(N){return N.type===a&&_.O.la(N,n,["kind","label","language"])}))return m.id=d.id,p&&(c.g.debug($b+a+" track active"),c.a.set(a,m)),c.g.debug("Track from event seems to already exists, flipped native track to",d),M["return"]();_.B(M,2);v=new _.pk(n.id,n);n.renditions.push(v);c.h.push(n);z=c.m.getConfiguration().safari;return Dl(c,a,z)?_.y(M,Gl(c,n,z),5):El(c,a,z)?_.y(M,Hl(c,n,z),
453
+ 5):M.F(5)}if(2!=M.a)return c.g.debug(a+" Track added",n),c.m.trigger(new _.L(_.iv)),C=Kl(c,a).length,I=!(!l||!l.length),F=l&&l.length||0,D=function(){c.g.debug($b+a+" track active. Native track active: "+(p+". Number of tracks: ")+C,d);c.a.set(a,n)},p?D():1===C&&h&&(f?D():I&&1!==F||D()),_.qh(M,0);G=_.E(M);c.g.error("Error while converting track data",G);_.A(M)})};
454
+ _.t.Uf=function(a,b){if(b){var c=b.track;if(!c)this.g.warn(Fb);else if(a===_.T&&c.kind!==_.Qe){var d=this.h.find(function(e){return Nl(e,c,a)});d&&(this.h.splice(this.h.indexOf(d),1),(this.a.get(a)||null)===d&&(this.a.set(a,null),Tl(this)),this.g.debug(a+" Track removed, id: ",d.id))}}else this.g.warn(Cb)};
452
455
  _.t.Tf=function(a,b){this.g.debug(a+" Track changed",b);a===_.T&&Tl(this);var c=Jl(this,a);if(c)for(var d={Gc:0};d.Gc<c.length;d={Gc:d.Gc},++d.Gc)if(Rl(c[d.Gc])){if(d=this.h.find(function(e){return function(f){return Nl(f,c[e.Gc],a)}}(d)))this.a.set(a,d),this.g.debug("Track change detected, id:",d.id),d===this.l.get(a)&&this.l.set(a,null),a===_.gk?this.m.trigger(new _.L(_.Ol)):a===_.T&&this.m.trigger(new _.L(_.Pl));break}};_.t.initialize=function(a){this.m=a;this.j=new vk(a.getNetworkEngine())};
453
- _.t.load=function(){this.A=!1;var a=Il(this,_.T);a&&(this.f.on(a,_.Oc,this.J),this.f.on(a,Rf,this.L),this.f.on(a,xd,this.K));if(a=Il(this,_.gk))this.f.on(a,_.Oc,this.G),this.f.on(a,Rf,this.I),this.f.on(a,xd,this.H);if(a=Il(this,_.hk))this.f.on(a,_.Oc,this.N),this.f.on(a,Rf,this.V),this.f.on(a,xd,this.S);this.f.one(this.m,pd,this.Sj.bind(this))};_.t.release=function(){this.A=!0;this.h=[];this.o={};this.a.clear();this.l.clear();this.f.release()};_.t.destroy=function(){this.release();this.m=null};
456
+ _.t.load=function(){this.A=!1;var a=Il(this,_.T);a&&(this.f.on(a,_.Nc,this.J),this.f.on(a,Qf,this.L),this.f.on(a,wd,this.K));if(a=Il(this,_.gk))this.f.on(a,_.Nc,this.G),this.f.on(a,Qf,this.I),this.f.on(a,wd,this.H);if(a=Il(this,_.hk))this.f.on(a,_.Nc,this.N),this.f.on(a,Qf,this.V),this.f.on(a,wd,this.S);this.f.one(this.m,od,this.Sj.bind(this))};_.t.release=function(){this.A=!0;this.h=[];this.o={};this.a.clear();this.l.clear();this.f.release()};_.t.destroy=function(){this.release();this.m=null};
454
457
  _.t.getVideoTracks=function(){return Kl(this,_.hk)};_.t.getAudioTracks=function(){return Kl(this,_.gk)};_.t.ia=function(){return Kl(this,_.T)};_.t.na=function(){var a=this,b=this.a.get(_.hk)||null;if(!b)return null;if(this.w){var c=b.renditions.find(function(d){return d.width===a.w.width&&d.height===a.w.height});if(c)return c}return b.renditions[0]||null};_.t.Pa=function(){return Ll(this,_.gk)};_.t.Ia=function(){return Ll(this,_.T)};_.t.eb=function(){return Ml(this,_.hk)};
455
458
  _.t.nb=function(){return Ml(this,_.gk)};_.t.ob=function(){return Ml(this,_.T)};_.t.Ja=function(){return this.a.get(_.hk)||null};_.t.ma=function(){return this.a.get(_.gk)||null};_.t.ua=function(){return this.a.get(_.T)||null};_.t.kb=function(a){Ql(this,_.hk,a)};_.t.za=function(a){Ql(this,_.gk,a)};_.t.La=function(a){Ql(this,_.T,a)};_.t.Za=function(a){Ql(this,_.hk,a&&a.track)};_.t.ib=function(a){Ql(this,_.gk,a&&a.track)};_.t.jb=function(a){Ql(this,_.T,a&&a.track)};
456
459
  _.t.addTextTrack=function(a){var b=this,c;return _.H(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.B++,b.o[c]=a,Al(b,a,c),d.F(0)):_.y(d,Bl(b,a),0)})};_.t.qa=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
457
- _.t.Sj=function(){var a=this,b,c,d;return _.H(function(e){if(1==e.a){b=a.m.getConfiguration();Sl(a,_.gk,b.preferredAudioLanguage);c=Jl(a,_.T);if(c.some(function(f){return Rl(f)}))return e.F(2);d=Il(a,_.T);return _.y(e,new Promise(function(f){a.f.one(d,xd,f);(new _.Wk(f)).da(1)}),2)}if(a.A)return e["return"]();Sl(a,_.T,b.preferredTextLanguage);_.A(e)})};zl.prototype.isAbrEnabled=zl.prototype.qa;zl.prototype.addTextTrack=zl.prototype.addTextTrack;zl.prototype.setTextRendition=zl.prototype.jb;
460
+ _.t.Sj=function(){var a=this,b,c,d;return _.H(function(e){if(1==e.a){b=a.m.getConfiguration();Sl(a,_.gk,b.preferredAudioLanguage);c=Jl(a,_.T);if(c.some(function(f){return Rl(f)}))return e.F(2);d=Il(a,_.T);return _.y(e,new Promise(function(f){a.f.one(d,wd,f);(new _.Wk(f)).da(1)}),2)}if(a.A)return e["return"]();Sl(a,_.T,b.preferredTextLanguage);_.A(e)})};zl.prototype.isAbrEnabled=zl.prototype.qa;zl.prototype.addTextTrack=zl.prototype.addTextTrack;zl.prototype.setTextRendition=zl.prototype.jb;
458
461
  zl.prototype.setAudioRendition=zl.prototype.ib;zl.prototype.setVideoRendition=zl.prototype.Za;zl.prototype.setTextTrack=zl.prototype.La;zl.prototype.setAudioTrack=zl.prototype.za;zl.prototype.setVideoTrack=zl.prototype.kb;zl.prototype.getTextTrack=zl.prototype.ua;zl.prototype.getAudioTrack=zl.prototype.ma;zl.prototype.getVideoTrack=zl.prototype.Ja;zl.prototype.getLoadingTextRendition=zl.prototype.ob;zl.prototype.getLoadingAudioRendition=zl.prototype.nb;zl.prototype.getLoadingVideoRendition=zl.prototype.eb;
459
- zl.prototype.getTextRendition=zl.prototype.Ia;zl.prototype.getAudioRendition=zl.prototype.Pa;zl.prototype.getVideoRendition=zl.prototype.na;zl.prototype.getTextTracks=zl.prototype.ia;zl.prototype.getAudioTracks=zl.prototype.getAudioTracks;zl.prototype.getVideoTracks=zl.prototype.getVideoTracks;zl.prototype.canSelectVideoTracks=zl.prototype.kf;_.t=_.Ul.prototype;_.t.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(fc);};_.t.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(fc);};_.t.Ga=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:1===this.length&&0>this.start(0)?0:this.start(0)};_.t.ha=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
462
+ zl.prototype.getTextRendition=zl.prototype.Ia;zl.prototype.getAudioRendition=zl.prototype.Pa;zl.prototype.getVideoRendition=zl.prototype.na;zl.prototype.getTextTracks=zl.prototype.ia;zl.prototype.getAudioTracks=zl.prototype.getAudioTracks;zl.prototype.getVideoTracks=zl.prototype.getVideoTracks;zl.prototype.canSelectVideoTracks=zl.prototype.lf;_.t=_.Ul.prototype;_.t.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(ec);};_.t.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(ec);};_.t.Ga=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:1===this.length&&0>this.start(0)?0:this.start(0)};_.t.ha=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
460
463
  _.t.sb=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?0:c;if(!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)||a>this.end(this.length-1))return!1;if(b)return c+a>=this.start(0)&&a<=this.end(this.length-1);for(b=0;b<this.length;b++)if(c+a>=this.start(b)&&a<=this.end(b))return!0;return!1};
461
464
  _.t.xa=function(a,b){b=void 0===b?!1:b;if(!this.length||1===this.length&&1E-6>this.end(0)-this.start(0))return 0;var c=0;if(b){var d=this.ha();null!=d&&(c=Math.max(0,d-a))}else for(d=this.length-1;0<=d&&this.end(d)>a;--d)c+=this.end(d)-Math.max(this.start(d),a);return c};_.t.toString=function(){for(var a="",b=0;b<this.length;b++)0<b&&(a+=" "),a+=this.start(b).toFixed(3)+"-"+this.end(b).toFixed(3);return a};_.J("clpp.BufferInfo",_.Ul);_.Ul.prototype.bufferedAheadOf=_.Ul.prototype.xa;
462
465
  _.Ul.prototype.isBuffered=_.Ul.prototype.sb;_.Ul.prototype.bufferEnd=_.Ul.prototype.ha;_.Ul.prototype.bufferStart=_.Ul.prototype.Ga;_.Ul.prototype.end=_.Ul.prototype.end;_.Ul.prototype.start=_.Ul.prototype.start;_.t=_.Vl.prototype;_.t.addEventListener=function(a,b){this.on(a,b)};_.t.removeEventListener=function(a,b){this.off(a,b)};_.t.on=function(a,b,c){return this.yd.on(a,b,c)};_.t.one=function(a,b,c){return this.yd.one(a,b,c)};_.t.off=function(a,b){return this.yd.off(a,b)};_.t.forwardEventsTo=function(a){a&&(0<=this.vd.indexOf(a)||this.vd.push(a))};_.t.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};
463
- _.t.stopForwardingEventsTo=function(a){a&&(a=this.vd.indexOf(a),0<=a&&this.vd.splice(a,1))};_.t.trigger=function(a){this.yd.trigger(a);for(var b=_.w(this.vd),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.Vl.prototype.off=_.Vl.prototype.off;_.Vl.prototype.one=_.Vl.prototype.one;_.Vl.prototype.on=_.Vl.prototype.on;_.Vl.prototype.removeEventListener=_.Vl.prototype.removeEventListener;_.Vl.prototype.addEventListener=_.Vl.prototype.addEventListener;_.J("clpp.events.ERROR",_.se);_.J("clpp.events.LOADEDMETADATA",_.Ke);_.J("clpp.events.BUFFERING_ENDED",_.md);_.J("clpp.events.BUFFERING_STARTED",_.nd);_.J("clpp.events.STATE_CHANGED",_.hg);_.Ol="audiotrackchanged";_.J("clpp.events.AUDIO_TRACK_CHANGED",_.Ol);_.Pl="texttrackchanged";_.J("clpp.events.TEXT_TRACK_CHANGED",_.Pl);_.J("clpp.events.VIDEO_TRACK_CHANGED",_.Lg);_.J("clpp.events.BITRATE_CHANGED",_.kd);_.fv="tracksadded";_.J("clpp.events.TRACKS_ADDED",_.fv);_.J("clpp.events.LOAD_START",Le);
464
- _.J("clpp.events.RELEASING",_.Qf);_.J("clpp.events.RELEASED",Pf);_.J("clpp.events.DESTROYING","destroying");_.J("clpp.events.DESTROYED","destroyed");_.J("clpp.events.VIDEO_BUFFER_CHANGED",_.Kg);_.J("clpp.events.AUDIO_BUFFER_CHANGED",_.id);_.J("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.J("clpp.events.DRM_SESSION_UPDATE",_.le);_.J("clpp.events.DRM_SESSION_PERSISTED",_.ke);_.J("clpp.events.DRM_RENEWAL_STARTED",je);_.J("clpp.events.DRM_EXPIRATION_UPDATE",_.ie);
465
- _.J("clpp.events.AUTOPLAY_NOT_ALLOWED",_.jd);_.J("clpp.events.PLAY",_.mf);_.J("clpp.events.SEEKING",_.$f);_.J("clpp.events.SEEKED",_.Zf);_.J("clpp.events.USER_SEEKING",_.Dg);_.J("clpp.events.USER_SEEKED",_.Cg);_.tp={SEEKING:1,NO_DATA:2};_.J("clpp.events.BufferingReasons",_.tp);_.J("clpp.events.ADS_TIMELINE_CHANGED",_.Pc);_.J("clpp.events.AD_LOADED",_.Fc);_.J("clpp.events.AD_BREAK_STARTED",_.yc);_.J("clpp.events.AD_STARTED",_.Lc);_.J("clpp.events.AD_BUFFERING",_.Ac);_.J("clpp.events.AD_PROGRESS",_.Ic);
466
- _.J("clpp.events.AD_FIRST_QUARTILE",_.Dc);_.J("clpp.events.AD_MIDPOINT",_.Gc);_.J("clpp.events.AD_THIRD_QUARTILE",_.Nc);_.J("clpp.events.AD_PAUSED",_.Hc);_.J("clpp.events.AD_RESUMED",_.Jc);_.J("clpp.events.AD_SKIPPED",_.Kc);_.J("clpp.events.AD_CLICKED",_.Bc);_.J("clpp.events.AD_IMPRESSION",_.Ec);_.J("clpp.events.AD_COMPLETED",_.Cc);_.J("clpp.events.AD_STOPPED",_.Mc);_.J("clpp.events.AD_BREAK_STOPPED",_.zc);_.J("clpp.events.SIMID_CREATIVE_STARTED",_.bg);_.J("clpp.events.SIMID_CREATIVE_STOPPED",_.cg);
467
- _.J("clpp.events.CASTING_STARTED",_.rd);_.J("clpp.events.CASTING_ENDED","castingended");_.J("clpp.events.CAST_STATUS_CHANGED",_.sd);_.J("clpp.events.AIRPLAY_STATUS_CHANGED",_.Sc);_.J("clpp.events.AIRPLAY_CASTING_STARTED",_.Rc);_.J("clpp.events.AIRPLAY_CASTING_ENDED",_.Qc);_.fi="timeline-cue-added";_.J("clpp.events.TIMELINE_CUE_ADDED",_.fi);_.hi="timeline-cue-enter";_.J("clpp.events.TIMELINE_CUE_ENTER",_.hi);_.ii="timeline-cue-exit";_.J("clpp.events.TIMELINE_CUE_EXIT",_.ii);
468
- _.J("clpp.events.MPD_TYPE_CHANGED",_.Ve);_.J("clpp.events.LIVE_TURNED_STATIC",_.Ie);_.J("clpp.events.VIMOND_RESPONSE",_.Mg);_.J("clpp.events.PLAYLIST_ITEM_CHANGED",_.yf);_.J("clpp.events.PLAYLIST_MODIFIED",_.zf);_.J("clpp.events.SC_PLAYLIST_TIMELINE_CHANGED",_.Yf);_.J("clpp.events.SC_PLAYLIST_ITEM_CHANGED",_.Wf);_.J("clpp.events.SC_PLAYLIST_ENDED",_.Vf);_.J("clpp.events.SC_PLAYLIST_LIVE_TURNED_STATIC",_.Xf);_.J("clpp.events.CDN_SWITCH_SUCCESS",_.td);_.J("clpp.events.ONLINE_STATUS_CHANGED",df);var Wl=["play() failed because the user didn't interact","The play method is not allowed by the user agent","The request is not allowed by the user agent or the platform"];var Zu;_.J("clpp.version",_.ia);_.J("clpp.name",_.va);_.Fl="application/x-mpegurl";_.J("clpp.Type",{DASH:_.Vc,HLS:_.Fl,SMOOTH_STREAMING:_.$c,MP4:_.Jg});_.ei="scte35";Zu="hls-daterange";_.ci=wg;_.J("clpp.TimelineCueType",{SCTE35:_.ei,DASH_CALLBACK:_.We,HLS_DATERANGE:Zu,UNKNOWN:_.ci});_.J("clpp.SpeedUpMode",{DECODER:_.Yd,SEEK:"seek"});_.J("clpp.CodecSwitchingStrategy",{PREVENT:_.Jf,SMOOTH:_.eg});_.J("clpp.utils.PlayerConfiguration",Yl);Yl.create=_.cm;var gv=["abort",od,pd,ne,"emptied",pe,_.re,_.se,"interruptbegin","interruptend",_.Je,_.Ke,Le,"mozaudioavailable",_.hf,_.mf,_.xf,_.Mf,_.Of,_.Zf,_.$f,fg,"suspend",_.sg,"volumechange",_.Pg,_.Qg,_.Tf,Vg,Ug,Sg,Tg];_.x(_.em,_.Vl);_.t=_.em.prototype;_.t.init=function(a,b){this.configuration=this.Kc=b;this.D=a;this.log.info("Initializing Player surface");var c=this.D.getMedia();this.log.info("Attaching media element listeners");for(var d=_.w(gv),e=d.next();!e.done;e=d.next())e=e.value,this.N.on(c,e,this.Di,e!==_.se);this.xd||(this.xd=this.$g());this.xd.initialize(this);this.D.showMediaElement()};_.t.release=function(){this.V&&(this.V.destroy(),this.V=null);return Promise.resolve()};
466
+ _.t.stopForwardingEventsTo=function(a){a&&(a=this.vd.indexOf(a),0<=a&&this.vd.splice(a,1))};_.t.trigger=function(a){this.yd.trigger(a);for(var b=_.w(this.vd),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.Vl.prototype.off=_.Vl.prototype.off;_.Vl.prototype.one=_.Vl.prototype.one;_.Vl.prototype.on=_.Vl.prototype.on;_.Vl.prototype.removeEventListener=_.Vl.prototype.removeEventListener;_.Vl.prototype.addEventListener=_.Vl.prototype.addEventListener;_.J("clpp.events.ERROR",_.re);_.J("clpp.events.LOADEDMETADATA",_.Je);_.J("clpp.events.BUFFERING_ENDED",_.ld);_.J("clpp.events.BUFFERING_STARTED",_.md);_.J("clpp.events.STATE_CHANGED",_.gg);_.Ol="audiotrackchanged";_.J("clpp.events.AUDIO_TRACK_CHANGED",_.Ol);_.Pl="texttrackchanged";_.J("clpp.events.TEXT_TRACK_CHANGED",_.Pl);_.J("clpp.events.VIDEO_TRACK_CHANGED",_.Lg);_.J("clpp.events.BITRATE_CHANGED",_.jd);_.iv="tracksadded";_.J("clpp.events.TRACKS_ADDED",_.iv);_.J("clpp.events.LOAD_START",Ke);
467
+ _.J("clpp.events.RELEASING",_.Pf);_.J("clpp.events.RELEASED",Of);_.J("clpp.events.DESTROYING","destroying");_.J("clpp.events.DESTROYED","destroyed");_.J("clpp.events.VIDEO_BUFFER_CHANGED",_.Kg);_.J("clpp.events.AUDIO_BUFFER_CHANGED",_.hd);_.J("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.J("clpp.events.DRM_SESSION_UPDATE",_.ke);_.J("clpp.events.DRM_SESSION_PERSISTED",_.je);_.J("clpp.events.DRM_RENEWAL_STARTED",ie);_.J("clpp.events.DRM_EXPIRATION_UPDATE",_.he);
468
+ _.J("clpp.events.AUTOPLAY_NOT_ALLOWED",_.id);_.J("clpp.events.PLAY",_.lf);_.J("clpp.events.SEEKING",_.Zf);_.J("clpp.events.SEEKED",_.Yf);_.J("clpp.events.USER_SEEKING",_.Dg);_.J("clpp.events.USER_SEEKED",_.Cg);_.tp={SEEKING:1,NO_DATA:2};_.J("clpp.events.BufferingReasons",_.tp);_.J("clpp.events.ADS_TIMELINE_CHANGED",_.Oc);_.J("clpp.events.AD_LOADED",_.Ec);_.J("clpp.events.AD_BREAK_STARTED",_.xc);_.J("clpp.events.AD_STARTED",_.Kc);_.J("clpp.events.AD_BUFFERING",_.zc);_.J("clpp.events.AD_PROGRESS",_.Hc);
469
+ _.J("clpp.events.AD_FIRST_QUARTILE",_.Cc);_.J("clpp.events.AD_MIDPOINT",_.Fc);_.J("clpp.events.AD_THIRD_QUARTILE",_.Mc);_.J("clpp.events.AD_PAUSED",_.Gc);_.J("clpp.events.AD_RESUMED",_.Ic);_.J("clpp.events.AD_SKIPPED",_.Jc);_.J("clpp.events.AD_CLICKED",_.Ac);_.J("clpp.events.AD_IMPRESSION",_.Dc);_.J("clpp.events.AD_COMPLETED",_.Bc);_.J("clpp.events.AD_STOPPED",_.Lc);_.J("clpp.events.AD_BREAK_STOPPED",_.yc);_.J("clpp.events.SIMID_CREATIVE_STARTED",_.ag);_.J("clpp.events.SIMID_CREATIVE_STOPPED",_.bg);
470
+ _.J("clpp.events.CASTING_STARTED",_.qd);_.J("clpp.events.CASTING_ENDED","castingended");_.J("clpp.events.CAST_STATUS_CHANGED",_.rd);_.J("clpp.events.AIRPLAY_STATUS_CHANGED",_.Rc);_.J("clpp.events.AIRPLAY_CASTING_STARTED",_.Qc);_.J("clpp.events.AIRPLAY_CASTING_ENDED",_.Pc);_.fi="timeline-cue-added";_.J("clpp.events.TIMELINE_CUE_ADDED",_.fi);_.hi="timeline-cue-enter";_.J("clpp.events.TIMELINE_CUE_ENTER",_.hi);_.ii="timeline-cue-exit";_.J("clpp.events.TIMELINE_CUE_EXIT",_.ii);
471
+ _.J("clpp.events.MPD_TYPE_CHANGED",_.Ue);_.J("clpp.events.LIVE_TURNED_STATIC",_.He);_.J("clpp.events.VIMOND_RESPONSE",_.Mg);_.J("clpp.events.PLAYLIST_ITEM_CHANGED",_.xf);_.J("clpp.events.PLAYLIST_MODIFIED",_.yf);_.J("clpp.events.SC_PLAYLIST_TIMELINE_CHANGED",_.Xf);_.J("clpp.events.SC_PLAYLIST_ITEM_CHANGED",_.Vf);_.J("clpp.events.SC_PLAYLIST_ENDED",_.Uf);_.J("clpp.events.SC_PLAYLIST_LIVE_TURNED_STATIC",_.Wf);_.J("clpp.events.CDN_SWITCH_SUCCESS",_.sd);_.J("clpp.events.ONLINE_STATUS_CHANGED",cf);var Wl=["play() failed because the user didn't interact","The play method is not allowed by the user agent","The request is not allowed by the user agent or the platform"];var bv;_.J("clpp.version",_.ia);_.J("clpp.name",_.va);_.Fl="application/x-mpegurl";_.J("clpp.Type",{DASH:_.Uc,HLS:_.Fl,SMOOTH_STREAMING:_.Zc,MP4:_.Jg});_.ei="scte35";bv="hls-daterange";_.ci=wg;_.J("clpp.TimelineCueType",{SCTE35:_.ei,DASH_CALLBACK:_.Ve,HLS_DATERANGE:bv,UNKNOWN:_.ci});_.J("clpp.SpeedUpMode",{DECODER:_.Xd,SEEK:"seek"});_.J("clpp.CodecSwitchingStrategy",{PREVENT:_.If,SMOOTH:_.dg});_.J("clpp.utils.PlayerConfiguration",Yl);Yl.create=_.cm;var jv=["abort",nd,od,me,"emptied",oe,_.qe,_.re,"interruptbegin","interruptend",_.Ie,_.Je,Ke,"mozaudioavailable",_.gf,_.lf,_.wf,_.Lf,_.Nf,_.Yf,_.Zf,eg,"suspend",_.rg,"volumechange",_.Pg,_.Qg,_.Sf,Vg,Ug,Sg,Tg];_.x(_.em,_.Vl);_.t=_.em.prototype;_.t.init=function(a,b){this.configuration=this.Kc=b;this.D=a;this.log.info("Initializing Player surface");var c=this.D.getMedia();this.log.info("Attaching media element listeners");for(var d=_.w(jv),e=d.next();!e.done;e=d.next())e=e.value,this.N.on(c,e,this.Di,e!==_.re);this.xd||(this.xd=this.$g());this.xd.initialize(this);this.D.showMediaElement()};_.t.release=function(){this.V&&(this.V.destroy(),this.V=null);return Promise.resolve()};
469
472
  _.t.destroy=function(){this.N.release();return this.Yf.release()};_.t.canPlay=function(a,b){return _.Nh[this.namespace()].canPlay(a,b)};_.t.getTimeline=function(){return null};_.t.setupPlaylist=function(){return Promise.reject(_.Hb)};_.t.appendLoad=function(){return Promise.reject(_.Hb)};_.t.seekWith=function(){return Promise.reject(_.Hb)};
470
- _.t.play=function(){var a=this;if(!this.Z)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.D.getMedia().play();return Promise.resolve(b)["catch"](function(c){a.log.info("Caught play promise exception",c);var d={name:c.name||"",message:c.message||"",stack:c.stack||""};Xl(d)?(a.trigger(new _.L(_.jd)),a.log.warn(_.ma)):d.name===Ib&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
471
- _.t.pause=function(){var a=this;return this.Z?new Promise(function(b,c){var d=a.getState();if(d!==_.qp&&d!==_.sp&&d!==_.zp&&d!==_.yp)c();else if(a.D.getMedia().pause(),a.getState()===_.zp)a.N.one(a,_.hg,function(){b()});else b()}):Promise.reject("No sources specified yet. You need to load content before calling pause.")};_.t.isPaused=function(){return this.D.getMedia().paused};_.t.isEnded=function(){return this.D.getMedia().ended};_.t.getConfiguration=function(){return this.configuration};
473
+ _.t.play=function(){var a=this;if(!this.Z)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.D.getMedia().play();return Promise.resolve(b)["catch"](function(c){a.log.info("Caught play promise exception",c);var d={name:c.name||"",message:c.message||"",stack:c.stack||""};Xl(d)?(a.trigger(new _.L(_.id)),a.log.warn(_.ma)):d.name===Ib&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
474
+ _.t.pause=function(){var a=this;return this.Z?new Promise(function(b,c){var d=a.getState();if(d!==_.qp&&d!==_.sp&&d!==_.zp&&d!==_.yp)c();else if(a.D.getMedia().pause(),a.getState()===_.zp)a.N.one(a,_.gg,function(){b()});else b()}):Promise.reject("No sources specified yet. You need to load content before calling pause.")};_.t.isPaused=function(){return this.D.getMedia().paused};_.t.isEnded=function(){return this.D.getMedia().ended};_.t.getConfiguration=function(){return this.configuration};
472
475
  _.t.setDrmCustomDataModifier=function(a){this.Wc=a};_.t.setCdnErrorCallback=function(a){this.Jc=a};_.t.Yc=function(){return this.Wc};_.t.getSurface=function(){return this.D};_.t.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.Ul(b?b.buffered:void 0,a)};_.t.getPosition=function(){return this.getMediaPosition()};_.t.getMediaPosition=function(){var a=this.D.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
473
- _.t.seek=function(a){var b=this,c=this.getMediaPosition();if(void 0===a||null===a||typeof a!==_.k||a===c)return Promise.resolve();var d=this.D.getMedia();if(!d)return this.log.warn("No media element available, can not set current time!"),Promise.reject();var e=a-c;return.1>=Math.abs(e)?(this.log.info("Skip seek. Delta "+Math.abs(e)+" \x3c 0.1"),Promise.resolve()):new Promise(function(f,g){function h(){if(d.readyState>HTMLMediaElement.HAVE_NOTHING)m();else b.N.one(d,_.Ke,m)}function l(n){var p=b.getMediaPosition(),
474
- q=.1>=Math.abs(a-p),u=.25<p-a,v=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,z=n.type===_.Zf,C=n.type===_.Mf,I=n.type===_.sg,F=C&&v;u=z||q&&F||I&&u;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",u,"Current Time:",p,"Target Time:",a,"Native Event:",z,"Time reached",q,"Timeupdate:",I,"Progress:",C,"ReadyState:",v,"Progress Ready:",F);u?(b.ag=!1,b.Pd=!1,b.N.off(d,_.Zf,l),b.N.off(d,_.sg,l),b.N.off(d,_.Mf,l),b.ai(),b.trigger(new _.L(_.Cg)),f()):C&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
475
- d.currentTime=a)}function m(){b.trigger(new _.L(_.Dg));b.N.on(d,_.Zf,l);b.N.on(d,_.sg,l);b.N.on(d,_.Mf,l);b.log.info("Seeking to "+a+". Delta "+e);b.ag=!0;b.Pd=!0;d.currentTime=a}b.getState()===_.lp?(b.log.debug("Player is in IDLE state. Postpone seek."),b.N.one(b,_.hg,function(){switch(b.getState()){case _.qp:case _.zp:case _.yp:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
476
+ _.t.seek=function(a){var b=this,c=this.getMediaPosition();if(void 0===a||null===a||typeof a!==_.k||a===c)return Promise.resolve();var d=this.D.getMedia();if(!d)return this.log.warn("No media element available, can not set current time!"),Promise.reject();var e=a-c;return.1>=Math.abs(e)?(this.log.info("Skip seek. Delta "+Math.abs(e)+" \x3c 0.1"),Promise.resolve()):new Promise(function(f,g){function h(){if(d.readyState>HTMLMediaElement.HAVE_NOTHING)m();else b.N.one(d,_.Je,m)}function l(n){var p=b.getMediaPosition(),
477
+ q=.1>=Math.abs(a-p),u=.25<p-a,v=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,z=n.type===_.Yf,C=n.type===_.Lf,I=n.type===_.rg,F=C&&v;u=z||q&&F||I&&u;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",u,"Current Time:",p,"Target Time:",a,"Native Event:",z,"Time reached",q,"Timeupdate:",I,"Progress:",C,"ReadyState:",v,"Progress Ready:",F);u?(b.ag=!1,b.Pd=!1,b.N.off(d,_.Yf,l),b.N.off(d,_.rg,l),b.N.off(d,_.Lf,l),b.ai(),b.trigger(new _.L(_.Cg)),f()):C&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
478
+ d.currentTime=a)}function m(){b.trigger(new _.L(_.Dg));b.N.on(d,_.Yf,l);b.N.on(d,_.rg,l);b.N.on(d,_.Lf,l);b.log.info("Seeking to "+a+". Delta "+e);b.ag=!0;b.Pd=!0;d.currentTime=a}b.getState()===_.lp?(b.log.debug("Player is in IDLE state. Postpone seek."),b.N.one(b,_.gg,function(){switch(b.getState()){case _.qp:case _.zp:case _.yp:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
476
479
  _.t.getVolume=function(){var a=this.D.getMedia();if(a)return a.volume;this.log.warn("No media element available, can not report volume!");return null};_.t.setVolume=function(a){var b=this.D.getMedia();b?_.O.ra(a)?0>a||1<a?this.log.warn(ta+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(ta+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.t.isMuted=function(){return this.D.getMedia().muted};
477
- _.t.setMuted=function(a){var b=this.D.getMedia();typeof a===_.ld&&(b.muted=a)};_.t.getDuration=function(){return this.getMediaDuration()};_.t.getMediaDuration=function(){return this.Z?this.D.getMedia().duration:-1};_.t.getTrackManager=function(){return this.xd};_.t.getPlaybackRate=function(){var a=this.D.getMedia();return a&&a.playbackRate||1};_.t.setPlaybackRate=function(a){var b=this.D.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.t.setSourceIndex=function(a){this.Ae=a};_.t.getSourceIndex=function(){return this.Ae};
478
- _.t.getLoadedSource=function(){return this.Z&&-1!==this.Ae?this.Z[this.Ae]:null};_.t.getPeriods=function(){return[]};_.t.getNetworkEngine=function(){return this.Yf};_.t.setNetworkEngine=function(a){this.Yf=a};_.t.getTextDisplayer=function(){return this.V};_.t.getTimelineCues=function(){return[]};_.t.resetAbr=function(){};
479
- _.t.Tm=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.sg||a.type===_.Mf)this.rg.debug(d);else{var e="";switch(a.type){case _.Of:e="Rate: "+this.getPlaybackRate();break;case ne:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.mf:case _.xf:case "suspend":case _.Pg:case fg:case _.$f:case _.Zf:case _.sg:case _.Mf:case od:case pd:b=
480
- this.getBufferInfo().xa(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.Tf:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.rg.info(d)}a.type!==_.se&&this.trigger(new _.L(a.type,{detail:a}))};_.t.ai=function(){};_.em.prototype.getTextDisplayer=_.em.prototype.getTextDisplayer;_.em.prototype.setNetworkEngine=_.em.prototype.setNetworkEngine;_.em.prototype.getNetworkEngine=_.em.prototype.getNetworkEngine;var hm;hm=new _.K("clpp.Components");_.fm=new Map;_.J("clpp.install",function(a){pm(a)});_.J("clpp.uninstall",function(a){qm(a)});rm.prototype.release=function(){this.a=this.f=null};_.J("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.Xb,SW_SECURE_DECODE:_.Yb,HW_SECURE_CRYPTO:hb,HW_SECURE_DECODE:ib,HW_SECURE_ALL:gb});_.J("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.J("clpp.drm.KeySystem",{NONE:_.Xe,CLEAR_KEY:_.ff,WIDEVINE:_.Ud,PLAYREADY:_.Sd,FAIRPLAY:_.Qd,PRIMETIME:_.Pd});_.vm={};_.J("clpp.drm.registerDrmEnvironment",_.wm);var zm={V1_STAGING:[10,191,2,8,3,18,16,40,112,52,84,192,8,246,54,24,173,231,68,61,182,196,200,24,139,231,249,144,5,34,142,2,48,130,1,10,2,130,1,1,0,181,33,18,184,208,93,2,63,204,93,149,226,194,81,193,198,73,180,23,124,216,210,190,239,53,91,176,103,67,222,102,30,61,42,188,49,130,183,153,70,213,95,220,8,223,233,84,7,129,94,154,98,116,179,34,162,199,245,224,103,187,95,10,192,122,137,212,90,234,148,178,81,111,7,91,102,239,129,29,13,38,225,185,166,184,148,242,185,133,121,98,170,23,28,79,102,99,13,62,76,
480
+ _.t.setMuted=function(a){var b=this.D.getMedia();typeof a===_.kd&&(b.muted=a)};_.t.getDuration=function(){return this.getMediaDuration()};_.t.getMediaDuration=function(){return this.Z?this.D.getMedia().duration:-1};_.t.getTrackManager=function(){return this.xd};_.t.getPlaybackRate=function(){var a=this.D.getMedia();return a&&a.playbackRate||1};_.t.setPlaybackRate=function(a){var b=this.D.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.t.setSourceIndex=function(a){this.Be=a};_.t.getSourceIndex=function(){return this.Be};
481
+ _.t.getLoadedSource=function(){return this.Z&&-1!==this.Be?this.Z[this.Be]:null};_.t.getPeriods=function(){return[]};_.t.getNetworkEngine=function(){return this.Yf};_.t.setNetworkEngine=function(a){this.Yf=a};_.t.getTextDisplayer=function(){return this.V};_.t.getTimelineCues=function(){return[]};_.t.resetAbr=function(){};
482
+ _.t.Tm=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.rg||a.type===_.Lf)this.rg.debug(d);else{var e="";switch(a.type){case _.Nf:e="Rate: "+this.getPlaybackRate();break;case me:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.lf:case _.wf:case "suspend":case _.Pg:case eg:case _.Zf:case _.Yf:case _.rg:case _.Lf:case nd:case od:b=
483
+ this.getBufferInfo().xa(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.Sf:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.rg.info(d)}a.type!==_.re&&this.trigger(new _.L(a.type,{detail:a}))};_.t.ai=function(){};_.em.prototype.getTextDisplayer=_.em.prototype.getTextDisplayer;_.em.prototype.setNetworkEngine=_.em.prototype.setNetworkEngine;_.em.prototype.getNetworkEngine=_.em.prototype.getNetworkEngine;var hm;hm=new _.K("clpp.Components");_.fm=new Map;_.J("clpp.install",function(a){pm(a)});_.J("clpp.uninstall",function(a){qm(a)});rm.prototype.release=function(){this.a=this.f=null};_.J("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.Xb,SW_SECURE_DECODE:_.Yb,HW_SECURE_CRYPTO:hb,HW_SECURE_DECODE:ib,HW_SECURE_ALL:gb});_.J("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.J("clpp.drm.KeySystem",{NONE:_.We,CLEAR_KEY:_.ef,WIDEVINE:_.Td,PLAYREADY:_.Rd,FAIRPLAY:_.Pd,PRIMETIME:_.Od});_.vm={};_.J("clpp.drm.registerDrmEnvironment",_.wm);var zm={V1_STAGING:[10,191,2,8,3,18,16,40,112,52,84,192,8,246,54,24,173,231,68,61,182,196,200,24,139,231,249,144,5,34,142,2,48,130,1,10,2,130,1,1,0,181,33,18,184,208,93,2,63,204,93,149,226,194,81,193,198,73,180,23,124,216,210,190,239,53,91,176,103,67,222,102,30,61,42,188,49,130,183,153,70,213,95,220,8,223,233,84,7,129,94,154,98,116,179,34,162,199,245,224,103,187,95,10,192,122,137,212,90,234,148,178,81,111,7,91,102,239,129,29,13,38,225,185,166,184,148,242,185,133,121,98,170,23,28,79,102,99,13,62,76,
481
484
  96,39,24,137,127,94,30,249,182,170,245,173,77,186,42,126,20,23,109,241,52,161,211,24,91,90,33,138,192,90,76,65,240,129,239,255,128,163,160,64,197,11,9,187,199,64,238,220,216,241,77,103,90,145,152,15,146,202,125,220,100,106,6,173,173,81,1,247,74,14,73,140,192,31,0,83,43,172,33,120,80,189,144,94,144,146,54,86,183,223,239,239,66,72,103,103,243,62,246,40,61,79,66,84,171,114,88,147,144,190,229,88,8,241,214,104,8,13,69,216,147,194,188,162,247,77,96,160,192,208,160,153,60,239,1,96,71,3,51,76,54,56,19,148,
482
485
  134,188,157,175,36,253,103,160,127,154,217,67,2,3,1,0,1,58,18,115,116,97,103,105,110,103,46,103,111,111,103,108,101,46,99,111,109,18,128,3,152,62,48,53,38,117,244,11,167,21,252,36,155,218,229,212,172,114,73,162,102,101,33,228,54,85,115,149,41,114,31,248,128,224,170,239,197,226,123,201,128,218,234,218,191,63,195,134,208,132,160,44,130,83,120,72,204,117,63,244,151,176,17,167,218,151,120,138,0,226,170,107,132,205,125,113,192,122,72,235,246,22,2,204,165,163,243,32,48,167,41,92,48,218,145,91,145,220,24,
483
486
  185,188,149,147,184,222,139,181,15,13,237,193,41,56,184,233,224,57,205,222,24,250,130,232,27,176,50,99,15,233,85,216,90,86,108,225,84,48,11,246,212,193,189,18,105,102,53,107,40,125,101,123,24,206,99,208,239,212,95,197,38,158,151,234,177,28,181,99,229,86,67,178,111,244,159,16,156,33,1,175,202,243,91,131,47,40,143,13,157,69,150,14,37,158,133,251,93,36,219,210,207,130,118,76,93,217,191,114,126,251,233,200,97,248,105,50,31,106,222,24,144,95,77,146,249,166,218,101,54,219,132,117,135,29,22,142,135,11,178,
@@ -491,108 +494,108 @@ this.getBufferInfo().xa(c);e="State "+this.getSurface().getMedia().readyState+"
491
494
  21,58,231,13,118,215,58,166,74,44,51,103,50,120,198,197,213,64,34,105,66,115,72,235,88,51,28,238,54,93,147,140,187,28,173,50,109,5,234,155,141,29,52,234,135,38,55,103,111,116,98,171,210,13,211,129,249,70,57,64,155,151,38,8,225,188,229,3,247,234,26,46,91,211,250,252,38,87,111,205,37,108,74,168,112,74,116,191,73,170,243,167,54,36,20,23,72,67,35,181,159,241,102,250,221,22,18,92,161,54,236,172,183,214,18,160,199,92,46,171,180,211,90,64,62,144,121,201,77,74,211,17,244,49,124,244,120,116,148,234,184,79,
492
495
  136,12,176,34,231,39,149,87,28,219,2,3,1,0,1,58,12,99,97,115,116,108,97,98,115,46,99,111,109,64,1,18,128,3,50,97,151,165,120,63,210,172,84,187,10,36,166,202,149,32,118,107,37,251,186,217,170,254,4,95,20,85,66,157,43,154,24,66,136,147,101,223,78,204,173,228,175,111,100,168,97,164,222,84,160,51,79,233,227,223,105,252,85,11,242,129,199,206,11,9,236,118,163,118,204,179,159,69,108,223,229,114,176,8,26,36,9,23,103,233,62,55,162,154,209,96,98,102,80,173,114,233,213,36,56,135,65,188,245,176,95,70,189,199,
493
496
  143,81,72,182,124,207,225,238,28,172,144,110,89,44,12,137,51,52,239,130,117,119,15,207,200,229,142,166,8,80,79,111,255,191,70,47,189,108,75,234,184,241,119,21,255,98,167,124,132,30,239,102,113,7,132,96,39,134,123,220,209,255,110,222,35,147,0,77,125,253,129,139,66,158,126,221,13,117,113,163,143,235,9,130,180,3,133,94,152,45,199,69,168,182,95,122,82,25,203,10,99,191,186,193,238,225,224,140,156,142,171,110,26,214,32,240,6,218,138,10,47,114,133,17,1,151,43,213,223,198,210,186,81,18,50,221,84,177,180,
494
- 26,58,164,235,113,177,235,207,22,230,8,119,76,167,166,176,173,209,214,53,116,116,231,227,221,238,174,87,249,19,166,195,81,47,210,172,15,75,251,202,192,80,85,213,23,17,178,104,181,193,115,239,91,72,230,167,55,143,10,250,26,54,8,60,13,213,206,235,3,215,179,205,232,1,144,158,35,48,196,149,117,219,63,196,130,117,40,165,193,65,215,122,44,201,218,67,216,6,131,178,5,168,229,21,137,112,215,254,127,48,160,181,68,49,255,64,46,247,236,85,155,146,208,5,219,252,37,174,31,218,136,135,55,119,112]};_.Bm.prototype.Ta=function(a,b){this.f[a]=b};_.J("clpp.drm.DrmEnvironment",_.Bm);_.Bm.prototype.setDrmSystem=_.Bm.prototype.Ta;_.Cm.prototype.getPosition=function(){return this.a};_.Cm.prototype.Ha=function(){return this.f.byteLength};_.Cm.prototype.seek=function(a){(0>a||a>=this.f.byteLength)&&_.Dm();this.a=a};_.Fm.prototype.getPosition=function(){return this.a};_.Fm.prototype.Ha=function(){return this.f.byteLength};_.Fm.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.Hm();this.a+=a};_.Fm.prototype.seek=function(a){if(0>a||a>=this.f.byteLength)throw _.Hm();this.a=a};_.J("clpp.utils.dataview.DataViewReader",_.Fm);_.t=_.Pm.prototype;_.t.M=function(a,b){var c=Tm(a);this.h[c]=hv;this.f[c]=b;return this};_.t.Y=function(a,b){var c=Tm(a);this.h[c]=iv;this.f[c]=b;return this};_.t.stop=function(){this.a=!0};_.t.parse=function(a,b){var c=_.lj(a);c=new _.Fm(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.Gm(c)&&!this.a;)this.Ke(0,c,b)};
495
- _.t.Ke=function(a,b,c){var d=b.getPosition(),e=_.Km(b),f=_.Km(b),g=!1;this.g.debug("Parsing MP4 box",_.Um(f));switch(e){case 0:e=b.Ha()-d;break;case 1:e=_.Mm(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.h[f]===iv&&(m=_.Km(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.Ha()&&(n=b.Ha());n-=b.getPosition();b=0<n?_.Om(b,n):new Uint8Array(0);b=new _.Fm(new DataView(b.buffer,b.byteOffset,b.byteLength),!1);h({parser:this,partialOkay:c||!1,version:l,flags:m,reader:b,size:e,start:d+
496
- a,headerSize:f,has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.Ha()-b.getPosition()),b.skip(a)};_.J("clpp.utils.Mp4Parser",_.Pm);_.Pm.typeToString=_.Um;_.Pm.allData=_.Sm;_.Pm.sampleDescription=_.Rm;_.Pm.children=_.Qm;_.Pm.prototype.parseNext=_.Pm.prototype.Ke;_.Pm.prototype.parse=_.Pm.prototype.parse;_.Pm.prototype.stop=_.Pm.prototype.stop;_.Pm.prototype.fullBox=_.Pm.prototype.Y;_.Pm.prototype.box=_.Pm.prototype.M;_.Pm.headerSize=_.Vm;var hv=0,iv=1;_.J("clpp.utils.FairplayUtils",Wm);Wm.parseFairPlayResponse=_.bn;Wm.formatFairPlayRequest=_.an;Wm.createFairplayPayload=$m;Wm.extractContentId=_.Ym;Wm.extractExtXKeyUri=Xm;var pn=new _.K("clpp.drm.DrmToday"),dn="PRODUCTION",en="STAGING",fn="TEST",jv={PRODUCTION:dn,STAGING:en,TEST:fn};_.J("clpp.drm.DrmToday.Environment",jv);_.J("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
497
+ 26,58,164,235,113,177,235,207,22,230,8,119,76,167,166,176,173,209,214,53,116,116,231,227,221,238,174,87,249,19,166,195,81,47,210,172,15,75,251,202,192,80,85,213,23,17,178,104,181,193,115,239,91,72,230,167,55,143,10,250,26,54,8,60,13,213,206,235,3,215,179,205,232,1,144,158,35,48,196,149,117,219,63,196,130,117,40,165,193,65,215,122,44,201,218,67,216,6,131,178,5,168,229,21,137,112,215,254,127,48,160,181,68,49,255,64,46,247,236,85,155,146,208,5,219,252,37,174,31,218,136,135,55,119,112]};_.Bm.prototype.Ta=function(a,b){this.f[a]=b};_.J("clpp.drm.DrmEnvironment",_.Bm);_.Bm.prototype.setDrmSystem=_.Bm.prototype.Ta;_.Cm.prototype.getPosition=function(){return this.a};_.Cm.prototype.Ha=function(){return this.f.byteLength};_.Cm.prototype.seek=function(a){(0>a||a>=this.f.byteLength)&&_.Dm();this.a=a};_.Fm.prototype.getPosition=function(){return this.a};_.Fm.prototype.Ha=function(){return this.f.byteLength};_.Fm.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.Hm();this.a+=a};_.Fm.prototype.seek=function(a){if(0>a||a>=this.f.byteLength)throw _.Hm();this.a=a};_.J("clpp.utils.dataview.DataViewReader",_.Fm);_.t=_.Pm.prototype;_.t.M=function(a,b){var c=Tm(a);this.h[c]=kv;this.f[c]=b;return this};_.t.Y=function(a,b){var c=Tm(a);this.h[c]=lv;this.f[c]=b;return this};_.t.stop=function(){this.a=!0};_.t.parse=function(a,b){var c=_.lj(a);c=new _.Fm(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.Gm(c)&&!this.a;)this.Le(0,c,b)};
498
+ _.t.Le=function(a,b,c){var d=b.getPosition(),e=_.Km(b),f=_.Km(b),g=!1;this.g.debug("Parsing MP4 box",_.Um(f));switch(e){case 0:e=b.Ha()-d;break;case 1:e=_.Mm(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.h[f]===lv&&(m=_.Km(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.Ha()&&(n=b.Ha());n-=b.getPosition();b=0<n?_.Om(b,n):new Uint8Array(0);b=new _.Fm(new DataView(b.buffer,b.byteOffset,b.byteLength),!1);h({parser:this,partialOkay:c||!1,version:l,flags:m,reader:b,size:e,start:d+
499
+ a,headerSize:f,has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.Ha()-b.getPosition()),b.skip(a)};_.J("clpp.utils.Mp4Parser",_.Pm);_.Pm.typeToString=_.Um;_.Pm.allData=_.Sm;_.Pm.sampleDescription=_.Rm;_.Pm.children=_.Qm;_.Pm.prototype.parseNext=_.Pm.prototype.Le;_.Pm.prototype.parse=_.Pm.prototype.parse;_.Pm.prototype.stop=_.Pm.prototype.stop;_.Pm.prototype.fullBox=_.Pm.prototype.Y;_.Pm.prototype.box=_.Pm.prototype.M;_.Pm.headerSize=_.Vm;var kv=0,lv=1;_.J("clpp.utils.FairplayUtils",Wm);Wm.parseFairPlayResponse=_.bn;Wm.formatFairPlayRequest=_.an;Wm.createFairplayPayload=$m;Wm.extractContentId=_.Ym;Wm.extractExtXKeyUri=Xm;var pn=new _.K("clpp.drm.DrmToday"),dn="PRODUCTION",en="STAGING",fn="TEST",mv={PRODUCTION:dn,STAGING:en,TEST:fn};_.J("clpp.drm.DrmToday.Environment",mv);_.J("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
497
500
  for(var hn="/license-proxy-widevine/cenc/",jn="/license-proxy-headerauth/drmtoday/RightsManager.asmx",kn="/license-server-fairplay/",yn={"00000":"Success","01000":"General Internal Error","02000":"General Request Error","03000":"General Request Authentication Error",3E4:"General DRM error",4E4:"General Widevine Modular error",40001:"Widevine Device Certificate Revocation (wv 127)",40002:"Widevine Device Certificate Revocation - Permanently (wv 175)",41E3:"General Widevine Classic error",42E3:"General Playready error",
498
- 43E3:"General Fairplay error",44E3:"General OMA error",44001:"OMA Device registration failed",45E3:"General CDRM error",45001:"CDRM Device registration failed",6E4:"CSL",60001:"CSL - INVALID",60100:"CSL - Denied by Stream Limiting",7E4:"General Output Protection",70001:"All keys filtered by EOP settings",8E4:"TAKE DOWN",80001:"TAKE DOWN - Denied by Take Down",9E4:"General GBL error",90001:"License delivery prohibited in your region"},kv={video:[gb,ib,hb,_.Yb,_.Xb],audio:[_.Yb,_.Xb]},lv={video:["3000",
499
- "2000","150"],audio:["2000","150"]},mv=_.w(Object.keys(jv)),nv=mv.next();!nv.done;nv=mv.next()){var cn=nv.value,ov=Ea;cn!==dn&&(ov+="_"+cn);var pv=new _.Bm(ov),qv=null;switch(cn){case dn:qv=Am("V1_PROD");break;case en:qv=Am("V2");break;case fn:qv=null}pv.Ta(_.Ud,{licenseUrl:ln(_.Ud),videoRobustness:kv.video,audioRobustness:kv.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:qv,modifiers:{licenseRequest:_.sn,licenseResponse:_.xn}});pv.Ta(_.Qd,{licenseUrl:ln(_.Qd),
500
- certificateUrl:gn()+"/license-server-fairplay/cert/",modifiers:{licenseRequest:_.un,licenseResponse:_.vn,extractContentId:_.qn,certificateRequest:_.wn}});pv.Ta(_.Sd,{licenseUrl:ln(_.Sd),videoRobustness:lv.video,audioRobustness:lv.audio,modifiers:{licenseRequest:tn}});_.wm(pv)};_.J("clpp.drm.eme.EmeFactory",An);var Bn=[];An.Apis={STANDARD:Vb,APPLE:"APPLE",WEBKIT:"WEBKIT",NOP:"NOP"};var Kn;_.Rn=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];Kn=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.x(Jn,In);_.x(_.Nn,In);var Tn=!!(performance&&performance.mark&&performance.measure);Wn.prototype.j=function(a){if(1<a.version)_.Fh("Unrecognized PSSH version found!");else{var b=_.zj(_.Om(a.reader,16)),c=[];if(0<a.version)for(var d=_.Km(a.reader),e=0;e<d;++e){var f=_.zj(_.Om(a.reader,16));c.push(f)}d=_.Km(a.reader);a.reader.skip(d);this.h.push.apply(this.h,c);this.f.push(b);this.a.push({start:a.start,end:a.start+a.size-1});a.reader.getPosition()!==a.reader.Ha()&&_.Fh("Mismatch between box size and data size!")}};_.t=_.$n.prototype;_.t.destroy=function(){var a=this;return _.H(function(b){if(1==b.a){if(a.j)return _.y(b,a.Ea,0);a.j=!0;return _.y(b,bo(a),4)}a.Ea.resolve();return b.F(0)})};_.t.keySystem=function(){return this.a?_.Io(this.a.keySystem):""};_.t.getDrmInfo=function(){return this.a};
501
+ 43E3:"General Fairplay error",44E3:"General OMA error",44001:"OMA Device registration failed",45E3:"General CDRM error",45001:"CDRM Device registration failed",6E4:"CSL",60001:"CSL - INVALID",60100:"CSL - Denied by Stream Limiting",7E4:"General Output Protection",70001:"All keys filtered by EOP settings",8E4:"TAKE DOWN",80001:"TAKE DOWN - Denied by Take Down",9E4:"General GBL error",90001:"License delivery prohibited in your region"},nv={video:[gb,ib,hb,_.Yb,_.Xb],audio:[_.Yb,_.Xb]},ov={video:["3000",
502
+ "2000","150"],audio:["2000","150"]},pv=_.w(Object.keys(mv)),qv=pv.next();!qv.done;qv=pv.next()){var cn=qv.value,rv=Ea;cn!==dn&&(rv+="_"+cn);var sv=new _.Bm(rv),uv=null;switch(cn){case dn:uv=Am("V1_PROD");break;case en:uv=Am("V2");break;case fn:uv=null}sv.Ta(_.Td,{licenseUrl:ln(_.Td),videoRobustness:nv.video,audioRobustness:nv.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:uv,modifiers:{licenseRequest:_.sn,licenseResponse:_.xn}});sv.Ta(_.Pd,{licenseUrl:ln(_.Pd),
503
+ certificateUrl:gn()+"/license-server-fairplay/cert/",modifiers:{licenseRequest:_.un,licenseResponse:_.vn,extractContentId:_.qn,certificateRequest:_.wn}});sv.Ta(_.Rd,{licenseUrl:ln(_.Rd),videoRobustness:ov.video,audioRobustness:ov.audio,modifiers:{licenseRequest:tn}});_.wm(sv)};_.J("clpp.drm.eme.EmeFactory",An);var Bn=[];An.Apis={STANDARD:Vb,APPLE:"APPLE",WEBKIT:"WEBKIT",NOP:"NOP"};var Kn;_.Rn=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];Kn=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.x(Jn,In);_.x(_.Nn,In);var Tn=!!(performance&&performance.mark&&performance.measure);Wn.prototype.j=function(a){if(1<a.version)_.Fh("Unrecognized PSSH version found!");else{var b=_.zj(_.Om(a.reader,16)),c=[];if(0<a.version)for(var d=_.Km(a.reader),e=0;e<d;++e){var f=_.zj(_.Om(a.reader,16));c.push(f)}d=_.Km(a.reader);a.reader.skip(d);this.h.push.apply(this.h,c);this.f.push(b);this.a.push({start:a.start,end:a.start+a.size-1});a.reader.getPosition()!==a.reader.Ha()&&_.Fh("Mismatch between box size and data size!")}};_.t=_.$n.prototype;_.t.destroy=function(){var a=this;return _.H(function(b){if(1==b.a){if(a.j)return _.y(b,a.Ea,0);a.j=!0;return _.y(b,bo(a),4)}a.Ea.resolve();return b.F(0)})};_.t.keySystem=function(){return this.a?_.Io(this.a.keySystem):""};_.t.getDrmInfo=function(){return this.a};
501
504
  _.t.$h=function(a){var b=this,c,d,e;return _.H(function(f){if(1==f.a){if(b.G&&b.K===co)return f["return"]();c=Math.floor(a.timeStamp);d="drm.msg."+c+ha;e="drm.msg."+c+".end";_.Un(d);return!b.h.delayLicenseRequestUntilPlayed||b.B&&!b.B.paused||b.Ma?_.y(f,To(b,a),2):(b.ea.push(a),f.F(2))}_.Un(e);_.Vn("drm.sess.msg."+c,d,e);_.A(f)})};
502
- _.t.Vh=function(a){var b=this,c=a.target;this.g.info("Key status changed for session",c.sessionId);var d=this.f.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if(typeof h===_.kg){var l=h;h=g;g=l}if(Po(b.a.keySystem)&&16===h.byteLength&&_.Yk()){l=_.sj(h);var m=l.getUint32(0,!0),n=l.getUint16(4,!0),p=l.getUint16(6,!0);l.setUint32(0,m,!1);l.setUint16(4,n,!1);l.setUint16(6,p,!1)}d&&g!==ig&&(d.loaded=!0);d&&d.Ka&&d.Ka.resolve();"expired"===g&&(e=!0);l=_.lj(h);var q=_.zj(l);"00"===q&&d&&d.keyId?q=d.keyId:
503
- b.a.keySystem.startsWith(_.Qd)&&16!==l.byteLength&&(q=_.S.fromCharCode(l));(l=q||"")?b.g.info(tb+q+"': "+g):b.g.info("Key status global keys: "+g);b.l.set(l,g);d&&!d.keyId&&b.f.forEach(function(u,v){v===c||u.keyId!==q||u.loaded||(u.loaded=!0)})});d&&d.loaded&&d.bb.forEach(function(g){b.l.get(g)===ig&&(b.g.warn(tb+g+ea),b.l.set(g,_.gf))});for(a=0;a<this.a.initData.length;a++){var f=this.a.initData[a];f.keyId&&this.l.get(f.keyId)===ig&&_.Aj(f.initData,d.initData)&&(this.g.warn(tb+f.keyId+ea),this.l.set(f.keyId,
504
- _.gf))}a=c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.xb&&(this.g.debug("Session has expired",c.sessionId),(a=this.f.get(c))&&a.Tc&&a.Tc.stop(),this.f["delete"](c),c.close()["catch"](function(){}));Ko(this)&&(this.H.resolve(),1!==this.f.size||e?this.aa.da(.5):Yn(this))};var co=0,Xn=3;_.Xo=new Map;_.Yo=new _.K("clpp.text");_.gp.prototype.getStats=function(){return{width:this.w,height:this.h,streamBandwidth:this.o,decodedFrames:this.j,droppedFrames:this.l,corruptedFrames:this.D,estimatedBandwidth:this.f,loadLatency:this.A,playTime:cp(this.a,_.zp),pauseTime:cp(this.a,_.yp),bufferingTime:cp(this.a,_.qp),stateHistory:dp(this.a),switchHistory:fp(this.B)}};_.ip.prototype.value=function(){void 0===this.a&&(this.a=this.f());return this.a};var jp=new _.ip(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.Ke],[HTMLMediaElement.HAVE_CURRENT_DATA,_.Je],[HTMLMediaElement.HAVE_FUTURE_DATA,od],[HTMLMediaElement.HAVE_ENOUGH_DATA,pd]])});op.prototype.fc=function(a,b){this.m&&this.m.trigger(new _.L(a,{detail:b}))};op.prototype.getState=function(){return rp(this,"")};op.prototype.T=function(a){(a=a&&a.detail)&&a.severity&&a.severity===_.Q&&vp(this,_.wp)};op.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.m.namespace());this.a.release()};_.J("clpp.utils.media.detectType",Bp);var Ep=new _.K("clpp.sources");_.x(Fp,_.em);_.t=Fp.prototype;_.t.init=function(a,b){_.em.prototype.init.call(this,a,b);this.j=new op(this);vp(this.j,_.lp)};_.t.namespace=function(){return Kd};
505
+ _.t.Vh=function(a){var b=this,c=a.target;this.g.info("Key status changed for session",c.sessionId);var d=this.f.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if(typeof h===_.jg){var l=h;h=g;g=l}if(Po(b.a.keySystem)&&16===h.byteLength&&_.Yk()){l=_.sj(h);var m=l.getUint32(0,!0),n=l.getUint16(4,!0),p=l.getUint16(6,!0);l.setUint32(0,m,!1);l.setUint16(4,n,!1);l.setUint16(6,p,!1)}d&&g!==hg&&(d.loaded=!0);d&&d.Ka&&d.Ka.resolve();"expired"===g&&(e=!0);l=_.lj(h);var q=_.zj(l);"00"===q&&d&&d.keyId?q=d.keyId:
506
+ b.a.keySystem.startsWith(_.Pd)&&16!==l.byteLength&&(q=_.S.fromCharCode(l));(l=q||"")?b.g.info(tb+q+"': "+g):b.g.info("Key status global keys: "+g);b.l.set(l,g);d&&!d.keyId&&b.f.forEach(function(u,v){v===c||u.keyId!==q||u.loaded||(u.loaded=!0)})});d&&d.loaded&&d.bb.forEach(function(g){b.l.get(g)===hg&&(b.g.warn(tb+g+ea),b.l.set(g,_.ff))});for(a=0;a<this.a.initData.length;a++){var f=this.a.initData[a];f.keyId&&this.l.get(f.keyId)===hg&&_.Aj(f.initData,d.initData)&&(this.g.warn(tb+f.keyId+ea),this.l.set(f.keyId,
507
+ _.ff))}a=c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.xb&&(this.g.debug("Session has expired",c.sessionId),(a=this.f.get(c))&&a.Tc&&a.Tc.stop(),this.f["delete"](c),c.close()["catch"](function(){}));Ko(this)&&(this.H.resolve(),1!==this.f.size||e?this.aa.da(.5):Yn(this))};var co=0,Xn=3;_.Xo=new Map;_.Yo=new _.K("clpp.text");_.gp.prototype.getStats=function(){return{width:this.w,height:this.h,streamBandwidth:this.o,decodedFrames:this.j,droppedFrames:this.l,corruptedFrames:this.D,estimatedBandwidth:this.f,loadLatency:this.A,playTime:cp(this.a,_.zp),pauseTime:cp(this.a,_.yp),bufferingTime:cp(this.a,_.qp),stateHistory:dp(this.a),switchHistory:fp(this.B)}};_.ip.prototype.value=function(){void 0===this.a&&(this.a=this.f());return this.a};var jp=new _.ip(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.Je],[HTMLMediaElement.HAVE_CURRENT_DATA,_.Ie],[HTMLMediaElement.HAVE_FUTURE_DATA,nd],[HTMLMediaElement.HAVE_ENOUGH_DATA,od]])});op.prototype.fc=function(a,b){this.m&&this.m.trigger(new _.L(a,{detail:b}))};op.prototype.getState=function(){return rp(this,"")};op.prototype.T=function(a){(a=a&&a.detail)&&a.severity&&a.severity===_.Q&&vp(this,_.wp)};op.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.m.namespace());this.a.release()};_.J("clpp.utils.media.detectType",Bp);var Ep=new _.K("clpp.sources");_.x(Fp,_.em);_.t=Fp.prototype;_.t.init=function(a,b){_.em.prototype.init.call(this,a,b);this.j=new op(this);vp(this.j,_.lp)};_.t.namespace=function(){return Jd};
505
508
  _.t.unload=function(){var a=this,b;return _.H(function(c){if(!a.Z)return c.F(0);a.log.debug("Releasing player with source",a.Z);a.B&&(a.B.stop(),a.B=null);(b=a.getTrackManager())&&b.release();a.A&&(a.A.destroy(),a.A=null);a.V&&(a.V.destroy(),a.V=null);a.l&&a.l.release();a.o&&(a.o.destroy(),a.o=null);_.Xh(a.h);a.f&&(a.f=new _.gp);a.G=null;a.Z=null;a.H=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());return _.y(c,Jp(a),0)})};
506
509
  _.t.release=function(){var a=this;return _.em.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.j&&vp(a.j,_.lp)})};
507
510
  _.t.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.em.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Ha);var b=a.getTrackManager();b&&b.destroy();a.l&&(a.l.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.l=null);a.j&&(a.j.destroy(),a.j=null);a.f=null})};_.t.getDrmInfo=function(){return this.o?this.o.getDrmInfo():null};
508
511
  _.t.detach=function(){};_.t.getTrackManager=function(){return this.xd};
509
- _.t.load=function(a){var b=this,c,d,e,f,g;return _.H(function(h){switch(h.a){case 1:if(b.w)return h["return"](Gp());if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.O;d=b.D.getMedia();b.I=Date.now()/1E3;b.f=new _.gp;b.h.on(b,_.hg,function(){b.f&&_.bp(b.f.a,b.getState())});vp(b.j,_.xp);b.Z=_.Dp(a);b.configuration=_.cm(b.Kc,a);b.log.debug(_.xb,b.configuration);b.log.debug(_.Nb,b.Z);e=_.$o(b.configuration,[_.ye,"native"]);
510
- b.V=e.create(b);b.V.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.gm(_.og)&&!_.fl()&&(b.A=new yi(b),b.A.start(d));b.l?b.l.release():b.l=new $h(b);bi(b.l,d);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.R(b.configuration.volume)||b.setVolume(b.configuration.volume);c.R(b.configuration.muted)||b.setMuted(b.configuration.muted);b.h.one(d,od,function(){b.trigger(new _.L(_.fv))});null==b.configuration.startTime&&Op(b,d);_.dl()&&Pp(b,d);_.B(h,2);return _.y(h,Ip(b,d),4);case 4:return _.y(h,
511
- Lp(b),5);case 5:return _.y(h,Np(b).P,6);case 6:_.qh(h,0);break;case 2:g=_.E(h),b.H=!1,b.onError(g),_.A(h)}})};_.t.onError=function(a){this.H||(a.severity===_.Q&&null!==this.j&&vp(this.j,_.wp),this.trigger(new _.L(_.se,{detail:a})))};_.t.$g=function(){return new zl};_.t.getState=function(){return null!==this.j?this.j.getState().currentState:_.mp};
512
+ _.t.load=function(a){var b=this,c,d,e,f,g;return _.H(function(h){switch(h.a){case 1:if(b.w)return h["return"](Gp());if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.O;d=b.D.getMedia();b.I=Date.now()/1E3;b.f=new _.gp;b.h.on(b,_.gg,function(){b.f&&_.bp(b.f.a,b.getState())});vp(b.j,_.xp);b.Z=_.Dp(a);b.configuration=_.cm(b.Kc,a);b.log.debug(_.xb,b.configuration);b.log.debug(_.Nb,b.Z);e=_.$o(b.configuration,[_.xe,"native"]);
513
+ b.V=e.create(b);b.V.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.gm(_.ng)&&!_.fl()&&(b.A=new yi(b),b.A.start(d));b.l?b.l.release():b.l=new $h(b);bi(b.l,d);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.R(b.configuration.volume)||b.setVolume(b.configuration.volume);c.R(b.configuration.muted)||b.setMuted(b.configuration.muted);b.h.one(d,nd,function(){b.trigger(new _.L(_.iv))});null==b.configuration.startTime&&Op(b,d);_.dl()&&Pp(b,d);_.B(h,2);return _.y(h,Ip(b,d),4);case 4:return _.y(h,
514
+ Lp(b),5);case 5:return _.y(h,Np(b).P,6);case 6:_.qh(h,0);break;case 2:g=_.E(h),b.H=!1,b.onError(g),_.A(h)}})};_.t.onError=function(a){this.H||(a.severity===_.Q&&null!==this.j&&vp(this.j,_.wp),this.trigger(new _.L(_.re,{detail:a})))};_.t.$g=function(){return new zl};_.t.getState=function(){return null!==this.j?this.j.getState().currentState:_.mp};
512
515
  _.t.getPresentationStartTime=function(){if(this.a&&this.a.getStartDate&&this.isLive()){var a=this.a.getStartDate();return isNaN(a.getTime())?(this.log.warn("EXT-X-PROGRAM-DATETIME required to get presentation start time as Date!"),null):a.getTime()/1E3}return null};_.t.getSeekRange=function(){var a=this.getSurface().getMedia();if(a&&a.src){a=a.seekable;if(a.length)return this.G=a={start:a.start(0),end:a.end(a.length-1)};if(this.G)return this.G}return{start:0,end:0}};
513
516
  _.t.isLive=function(){return this.a&&this.a.src?Infinity===this.a.duration:!1};
514
517
  _.t.getStats=function(){if(!this.f||!this.a)return _.hp();this.f&&_.bp(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.w=a.videoWidth;b.h=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.l=Number(a.droppedVideoFrames),b.j=c,this.f.D=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.na())a.bandwidth&&(this.f.o=a.bandwidth),a.od&&(this.f.f=a.od);return this.f.getStats()};
515
- _.t.getTimelineCues=function(){return this.l?this.l.getTimelineCues():[]};Qp.prototype.a=function(){return Kd};Qp.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.Vc,e=c===_.$c,f=c===_.Fl;return _.bl()||d||e||f&&!_.dl()?0:""!==il().canPlayType(c)?f&&_.dl()&&(window.ManagedMediaSource||window.MediaSource&&MediaSource.isTypeSupported)&&!b.streaming.preferNativeHlsOnSafari?1:2:0};Qp.prototype.f=function(a){return a===_.pa};Qp.prototype.create=function(){return new Fp};_.Ph(new Qp);_.J("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.J("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1});_.J("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var Sp=new _.K("clpp.ads"),Rp=[];_.J("clpp.utils.dom.createHTMLElement",_.Zp);$p.prototype.set=function(a){this.h.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=bq(this,a)};$p.prototype.get=function(){return this.a};_.t=fq.prototype;_.t.getMedia=function(){return this.f.get()};_.t.getContainer=function(){return this.a.get()};_.t.getSafeContainer=function(){return this.a};_.t.getId=function(){return this.l};_.t.getUniqueCssClass=function(){return this.o};_.t.getCastElement=function(){return this.h};_.t.isFullscreen=function(){return!!document.fullscreenElement};_.t.hideMediaElement=function(){var a=this.getMedia();a?_.Xp(a,Ad):this.g.debug("No media element available that could be hidden")};
516
- _.t.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(Ad):this.g.debug("No media element available that could be shown")};_.t.addElementToContainer=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.getContainer();if(!d)throw Error("No container is available. Unable to add element");b&&_.Xp(a,_.zd);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
517
- _.t.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.t.hide=function(a){_.Xp(a,Ad)};_.t.show=function(a){a.classList.remove(Ad)};_.t.release=function(){this.j.release()};fq.prototype.removeElementFromContainer=fq.prototype.removeElementFromContainer;fq.prototype.addElementToContainer=fq.prototype.addElementToContainer;fq.prototype.getCastElement=fq.prototype.getCastElement;
518
- fq.prototype.getContainer=fq.prototype.getContainer;fq.prototype.getMedia=fq.prototype.getMedia;var cq={disableContainer:!1,webOSStartupPatch:!0,crossorigin:"anonymous",containerEl:null},dq=1;hq.prototype.release=function(){this.a.release();lq(this);this.m=null};_.J("clpp.polyfill.installAll",oq);var nq=[];_.J("clpp.polyfill.register",_.pq);rq.prototype.verify=function(a,b){var c=_.S.Va,d={kty:"RSA",n:a.n,e:a.e},e=this.h+"."+this.f,f=this.j;return new Promise(function(g,h){try{var l=window&&window.crypto&&window.crypto.subtle}catch(n){}if(l){var m={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};l.importKey("jwk",d,m,!1,["verify"]).then(function(n){var p=c(e),q=_.xj(f);return l.verify(m,n,q.buffer,p.buffer)}).then(function(n){n?g():h(bc)})["catch"](h)}else b?h("Web Crypto API is not supported"):g()})};var rv={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},Zl="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";sq.prototype.verify=function(){var a=this;return(new Promise(function(b,c){try{var d=tq(a);b(d)}catch(e){c()}})).then(function(b){return b.verify(rv)})["catch"](function(b){if(b&&b!==bc){var c=window.location.href;var d=new _.Gi(c);c=d.hb||d.Oa?d:new _.Gi("//"+c);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(c.Oa))return Promise.resolve()}throw b;})};var Eq="vod",Dq="live";_.x(X,_.Vl);_.t=X.prototype;_.t.on=function(a,b,c){return _.Vl.prototype.on.call(this,a,b,c)};_.t.one=function(a,b,c){return _.Vl.prototype.one.call(this,a,b,c)};_.t.off=function(a,b){return _.Vl.prototype.off.call(this,a,b)};_.t.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.L(_.se,{detail:a}))};_.t.pc=function(a){a=this.I[a];void 0===a&&(a=null);return a};_.t.getSurface=function(){return this.h};_.t.getConfiguration=function(){return _.O.Na(this.f)};
519
- _.t.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.t.detach=function(){return this.a?this.a.detach():Promise.resolve()};_.t.release=function(){var a=this;if(null!=this.l)return this.g.info("Player release already in progress"),this.l;this.g.debug("Releasing player");this.l=Lq(this);return this.l["finally"](function(){a.g.debug("Player released");a.l=null})};
520
- _.t.destroy=function(){var a=this;if(this.L)return this.g.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.L=!0;return this.release().then(function(){a.g.debug(Ha);a.trigger(new _.L("destroying"));return a.xc(_.af)}).then(function(){a.a&&a.a.stopForwardingEventsTo(a);a.yd.clear();a.ja.release();if(a.a)return a.a.destroy()}).then(function(){return a.G.destroy()}).then(function(){om();a.a=null;a.trigger(new _.L("destroyed"))})};
521
- _.t.load=function(a){var b=this,c,d,e;return _.H(function(f){switch(f.a){case 1:return _.B(f,2),_.Un(uf),b.K=_.pa,b.aa=!0,c=_.Dp(a),d=dm(a)?a:{},_.y(f,_.Tq(b,d,c),4);case 4:return _.y(f,_.Uq(b),5);case 5:return _.y(f,_.Qq(b),6);case 6:_.Un(tf);_.Vn("player.load",uf,tf);_.qh(f,0);break;case 2:e=_.E(f);if(b.l)throw b.g.info(wb),new _.P(_.Q,7,7E3);throw e;}})};
522
- _.t.preload=function(a){var b=this,c;return _.H(function(d){if(1==d.a)return _.y(d,_.Tq(b,a),2);if(!b.a)return b.g.warn(Mb),d["return"]();c=b.a;return c.preload?_.y(d,c.preload(b.f),0):(b.g.warn(Rb),d["return"]())})};_.t.xc=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!this.aa)return Promise.resolve();var e=this;d=this.$.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.ch(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};
523
- _.t.use=function(a){(a=pm(a))&&a.o(this)};_.t.remove=function(a){return(this.getState()<=_.lp||this.N)&&null!==jm(a)?(qm(a),this.S=!0):!1};_.t.play=function(){return this.a?this.j&&this.a.namespace()!==_.Fd?this.j.start(this.a):this.a.play():Promise.reject("No player initialized. You need to load content before calling play.")};_.t.pause=function(){return this.a?this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};
518
+ _.t.getTimelineCues=function(){return this.l?this.l.getTimelineCues():[]};Qp.prototype.a=function(){return Jd};Qp.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.Uc,e=c===_.Zc,f=c===_.Fl;return _.bl()||d||e||f&&!_.dl()?0:""!==il().canPlayType(c)?f&&_.dl()&&(window.ManagedMediaSource||window.MediaSource&&MediaSource.isTypeSupported)&&!b.streaming.preferNativeHlsOnSafari?1:2:0};Qp.prototype.f=function(a){return a===_.pa};Qp.prototype.create=function(){return new Fp};_.Ph(new Qp);_.J("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.J("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1});_.J("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var Sp=new _.K("clpp.ads"),Rp=[];_.J("clpp.utils.dom.createHTMLElement",_.Zp);$p.prototype.set=function(a){this.h.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=bq(this,a)};$p.prototype.get=function(){return this.a};_.t=fq.prototype;_.t.getMedia=function(){return this.f.get()};_.t.getContainer=function(){return this.a.get()};_.t.getSafeContainer=function(){return this.a};_.t.getId=function(){return this.l};_.t.getUniqueCssClass=function(){return this.o};_.t.getCastElement=function(){return this.h};_.t.isFullscreen=function(){return!!document.fullscreenElement};_.t.hideMediaElement=function(){var a=this.getMedia();a?_.Xp(a,zd):this.g.debug("No media element available that could be hidden")};
519
+ _.t.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(zd):this.g.debug("No media element available that could be shown")};_.t.addElementToContainer=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.getContainer();if(!d)throw Error("No container is available. Unable to add element");b&&_.Xp(a,_.yd);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
520
+ _.t.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.t.hide=function(a){_.Xp(a,zd)};_.t.show=function(a){a.classList.remove(zd)};_.t.release=function(){this.j.release()};fq.prototype.removeElementFromContainer=fq.prototype.removeElementFromContainer;fq.prototype.addElementToContainer=fq.prototype.addElementToContainer;fq.prototype.getCastElement=fq.prototype.getCastElement;
521
+ fq.prototype.getContainer=fq.prototype.getContainer;fq.prototype.getMedia=fq.prototype.getMedia;var cq={disableContainer:!1,webOSStartupPatch:!0,crossorigin:"anonymous",containerEl:null},dq=1;hq.prototype.release=function(){this.a.release();lq(this);this.m=null};_.J("clpp.polyfill.installAll",oq);var nq=[];_.J("clpp.polyfill.register",_.pq);var sq={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},Zl="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";var Hq="vod",Gq="live";_.x(X,_.Vl);_.t=X.prototype;_.t.on=function(a,b,c){return _.Vl.prototype.on.call(this,a,b,c)};_.t.one=function(a,b,c){return _.Vl.prototype.one.call(this,a,b,c)};_.t.off=function(a,b){return _.Vl.prototype.off.call(this,a,b)};_.t.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.L(_.re,{detail:a}))};_.t.pc=function(a){a=this.I[a];void 0===a&&(a=null);return a};_.t.getSurface=function(){return this.h};_.t.getConfiguration=function(){return _.O.Na(this.f)};
522
+ _.t.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.t.detach=function(){return this.a?this.a.detach():Promise.resolve()};_.t.release=function(){var a=this;if(null!=this.l)return this.g.info("Player release already in progress"),this.l;this.g.debug("Releasing player");this.l=Oq(this);return this.l["finally"](function(){a.g.debug("Player released");a.l=null})};
523
+ _.t.destroy=function(){var a=this;if(this.L)return this.g.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.L=!0;return this.release().then(function(){a.g.debug(Ha);a.trigger(new _.L("destroying"));return a.xc(_.$e)}).then(function(){a.a&&a.a.stopForwardingEventsTo(a);a.yd.clear();a.ja.release();if(a.a)return a.a.destroy()}).then(function(){return a.G.destroy()}).then(function(){om();a.a=null;a.trigger(new _.L("destroyed"))})};
524
+ _.t.load=function(a){var b=this,c,d,e;return _.H(function(f){switch(f.a){case 1:return _.B(f,2),_.Un(tf),b.K=_.pa,b.aa=!0,c=_.Dp(a),d=dm(a)?a:{},_.y(f,_.Wq(b,d,c),4);case 4:return _.y(f,_.Xq(b),5);case 5:return _.y(f,_.Tq(b),6);case 6:_.Un(sf);_.Vn("player.load",tf,sf);_.qh(f,0);break;case 2:e=_.E(f);if(b.l)throw b.g.info(wb),new _.P(_.Q,7,7E3);throw e;}})};
525
+ _.t.preload=function(a){var b=this,c;return _.H(function(d){if(1==d.a)return _.y(d,_.Wq(b,a),2);if(!b.a)return b.g.warn(Mb),d["return"]();c=b.a;return c.preload?_.y(d,c.preload(b.f),0):(b.g.warn(Rb),d["return"]())})};_.t.xc=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!this.aa)return Promise.resolve();var e=this;d=this.$.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.ch(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};
526
+ _.t.use=function(a){(a=pm(a))&&a.o(this)};_.t.remove=function(a){return(this.getState()<=_.lp||this.N)&&null!==jm(a)?(qm(a),this.S=!0):!1};_.t.play=function(){return this.a?this.j&&this.a.namespace()!==_.Ed?this.j.start(this.a):this.a.play():Promise.reject("No player initialized. You need to load content before calling play.")};_.t.pause=function(){return this.a?this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};
524
527
  _.t.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.t.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.Ul};_.t.getState=function(){return this.a?this.a.getState():_.lp};_.t.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.t.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.t.isPaused=function(){return this.a&&this.a.isPaused()||!1};_.t.getPosition=function(){return this.a?this.a.getPosition():0};
525
528
  _.t.seek=function(a){return this.getState()===_.wp?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};_.t.getPresentationStartTime=function(){return this.a?this.a.getPresentationStartTime():null};_.t.getSeekRange=function(){return this.a?this.a.getSeekRange():{start:0,end:0}};_.t.qc=function(){var a=this.a;return a&&a.qc?a.qc():null};_.t.getVolume=function(){return this.a?this.a.getVolume():null};_.t.setVolume=function(a){this.a&&this.a.setVolume(a)};
526
529
  _.t.getDuration=function(){return this.a?this.a.getDuration():-1};_.t.getAdsManager=function(){return this.j};_.t.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};_.t.getPlaybackRate=function(){return this.a?this.a.getPlaybackRate():1};_.t.setPlaybackRate=function(a,b){this.a&&this.a.setPlaybackRate(a,b)};_.t.isMuted=function(){return this.a&&this.a.isMuted()||!1};_.t.setMuted=function(a){this.a&&this.a.setMuted(a)};_.t.getNetworkEngine=function(){return this.G};
527
- _.t.setNetworkEngine=function(a){this.G=a};_.t.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};_.t.isLive=function(){return!!this.a&&this.a.isLive()};_.t.getStats=function(){return this.a?this.a.getStats():null};_.t.uh=function(){return Object.freeze(this.fa)};_.t.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};_.t.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.t.ve=function(){return this.a?this.a.ve():null};
528
- _.t.resetAbr=function(){this.a&&this.a.resetAbr()};_.t.setDrmCustomDataModifier=function(a){this.Wc=a;Sq(this)};_.t.setCdnErrorCallback=function(a){this.J=a;this.a&&this.a.setCdnErrorCallback(this.J)};_.t.Ph=function(){this.tf=!0};_.J("clpp.Player",X);X.registerPlugin=_.Xq;X.prototype.setCdnErrorCallback=X.prototype.setCdnErrorCallback;X.prototype.setDrmCustomDataModifier=X.prototype.setDrmCustomDataModifier;X.prototype.resetAbr=X.prototype.resetAbr;X.prototype.getTimelineCues=X.prototype.getTimelineCues;
530
+ _.t.setNetworkEngine=function(a){this.G=a};_.t.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};_.t.isLive=function(){return!!this.a&&this.a.isLive()};_.t.getStats=function(){return this.a?this.a.getStats():null};_.t.uh=function(){return Object.freeze(this.fa)};_.t.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};_.t.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.t.we=function(){return this.a?this.a.we():null};
531
+ _.t.resetAbr=function(){this.a&&this.a.resetAbr()};_.t.setDrmCustomDataModifier=function(a){this.Wc=a;Vq(this)};_.t.setCdnErrorCallback=function(a){this.J=a;this.a&&this.a.setCdnErrorCallback(this.J)};_.t.Ph=function(){this.uf=!0};_.J("clpp.Player",X);X.registerPlugin=_.$q;X.prototype.setCdnErrorCallback=X.prototype.setCdnErrorCallback;X.prototype.setDrmCustomDataModifier=X.prototype.setDrmCustomDataModifier;X.prototype.resetAbr=X.prototype.resetAbr;X.prototype.getTimelineCues=X.prototype.getTimelineCues;
529
532
  X.prototype.getLoadedSource=X.prototype.getLoadedSource;X.prototype.getSources=X.prototype.uh;X.prototype.getStats=X.prototype.getStats;X.prototype.isLive=X.prototype.isLive;X.prototype.getTextDisplayer=X.prototype.getTextDisplayer;X.prototype.setNetworkEngine=X.prototype.setNetworkEngine;X.prototype.getNetworkEngine=X.prototype.getNetworkEngine;X.prototype.setMuted=X.prototype.setMuted;X.prototype.isMuted=X.prototype.isMuted;X.prototype.setPlaybackRate=X.prototype.setPlaybackRate;
530
533
  X.prototype.getPlaybackRate=X.prototype.getPlaybackRate;X.prototype.namespace=X.prototype.namespace;X.prototype.getAdsManager=X.prototype.getAdsManager;X.prototype.getDuration=X.prototype.getDuration;X.prototype.setVolume=X.prototype.setVolume;X.prototype.getVolume=X.prototype.getVolume;X.prototype.getTimelineOffset=X.prototype.qc;X.prototype.getSeekRange=X.prototype.getSeekRange;X.prototype.getPresentationStartTime=X.prototype.getPresentationStartTime;X.prototype.seek=X.prototype.seek;
531
534
  X.prototype.getPosition=X.prototype.getPosition;X.prototype.isPaused=X.prototype.isPaused;X.prototype.isEnded=X.prototype.isEnded;X.prototype.getState=X.prototype.getState;X.prototype.getBufferInfo=X.prototype.getBufferInfo;X.prototype.getTrackManager=X.prototype.getTrackManager;X.prototype.pause=X.prototype.pause;X.prototype.play=X.prototype.play;X.prototype.remove=X.prototype.remove;X.prototype.use=X.prototype.use;X.prototype.load=X.prototype.load;X.prototype.destroy=X.prototype.destroy;
532
535
  X.prototype.release=X.prototype.release;X.prototype.getDrmInfo=X.prototype.getDrmInfo;X.prototype.getConfiguration=X.prototype.getConfiguration;X.prototype.getSurface=X.prototype.getSurface;X.prototype.getPlugin=X.prototype.pc;X.prototype.off=X.prototype.off;X.prototype.one=X.prototype.one;X.prototype.on=X.prototype.on;_.lp=0;_.xp=1;_.qp=2;_.zp=3;_.yp=4;_.sp=5;_.wp=6;_.mp=7;_.up={IDLE:_.lp,PREPARING:_.xp,BUFFERING:_.qp,PLAYING:_.zp,PAUSED:_.yp,ENDED:_.sp,ERROR:_.wp,UNSET:_.mp};X.State=_.up;
533
- var Hq=[];_.x(Yq,X);_.t=Yq.prototype;
536
+ var Kq=[];_.x(ar,X);_.t=ar.prototype;
534
537
  _.t.open=function(a,b){var c=this,d,e,f,g,h,l,m;return _.H(function(n){if(1==n.a){if(c.w)throw new _.P(_.Q,7,7008,"Cannot call open() while "+c.w+fa);if(0!==a)throw new _.P(_.Q,7,7007,"The index parameter only supports the value of 0.");if(0===b.length)throw new _.P(_.Q,7,7003,Eb);if(b.some(function(p){return!p.id||!p.source}))throw new _.P(_.Q,7,7100,"Some config is missing required properties `id` or `source`!");d=new Set(b.map(function(p){return p.id}));if(d.size!==b.length)throw new _.P(_.Q,7,
535
538
  7100,"Some config contains a non-unique property `id`!");if(e=b[0].playlist){f=e.timeline;g=["flat","basic"];if(f&&!g.includes(f))throw new _.P(_.Q,7,7100,"Unsupported `playlist.timeline` config value!");h=e.startTime;if(null!=h&&(typeof h!==_.k||0>h))throw new _.P(_.Q,7,7100,"Invalid `playlist.startTime` config value!");l=e.endTime;if(null!=l&&(typeof l!==_.k||0>l||null!=h&&l<=h))throw new _.P(_.Q,7,7100,"Invalid `playlist.endTime` config value!");m=e.content;if("DVR"===m&&!l)throw new _.P(_.Q,7,
536
- 7100,"`playlist.endTime` config value is required for DVR content!");}_.ph(n);Zq(c);c.w="open";return _.y(n,cr(c,b),4)}2!=n.a&&(c.D=0,c.o=b,c.V=!0,$q(c,b[0].playlist||{}));_.rh(n);c.w=null;return _.sh(n,0)})};
539
+ 7100,"`playlist.endTime` config value is required for DVR content!");}_.ph(n);br(c);c.w="open";return _.y(n,fr(c,b),4)}2!=n.a&&(c.D=0,c.o=b,c.V=!0,cr(c,b[0].playlist||{}));_.rh(n);c.w=null;return _.sh(n,0)})};
537
540
  _.t.Oi=function(a){var b=this,c;return _.H(function(d){if(1==d.a){if(b.w)throw new _.P(_.Q,7,7008,"Cannot call addItem() while "+b.w+fa);if(!b.V)throw new _.P(_.Q,7,7008,"open() must be called before addItem()!");if(!a.id||!a.source)throw new _.P(_.Q,7,7100,"The config is missing required properties `id` or `source`!");c=new Set(b.o.map(function(e){return e.id}));if(c.has(a.id))throw new _.P(_.Q,7,7100,"A config with this `id` already exists in the playlist!");_.ph(d);b.w="addItem";b.o.push(a);return _.y(d,
538
- dr(b,a),2)}_.rh(d);b.w=null;return _.sh(d,0)})};_.t.getCurrentItem=function(){return this.o[this.D]||null};_.t.getCurrentItemIndex=function(){return this.D};_.t.Yk=function(){return _.ch(this.o).concat()};_.t.Fd=function(){return this.o.length};_.t.getTimeline=function(){return this.a?this.a.getTimeline():null};_.t.seekWith=function(a){return this.a?this.a.seekWith(a):Promise.resolve()};_.t.release=function(){this.o=[];this.D=0;this.V=!1;return X.prototype.release.call(this)};
539
- _.t.destroy=function(){Zq(this);return X.prototype.destroy.call(this)};_.t.setCdnErrorCallback=function(){throw new _.P(1,7,7009,"CDN switching is not supported!");};_.J("clpp.plist.ScPlaylist",Yq);Yq.prototype.setCdnErrorCallback=Yq.prototype.setCdnErrorCallback;Yq.prototype.destroy=Yq.prototype.destroy;Yq.prototype.release=Yq.prototype.release;Yq.prototype.seekWith=Yq.prototype.seekWith;Yq.prototype.getTimeline=Yq.prototype.getTimeline;Yq.prototype.getSize=Yq.prototype.Fd;
540
- Yq.prototype.getPlaylist=Yq.prototype.Yk;Yq.prototype.getCurrentItemIndex=Yq.prototype.getCurrentItemIndex;Yq.prototype.getCurrentItem=Yq.prototype.getCurrentItem;Yq.prototype.addItem=Yq.prototype.Oi;Yq.prototype.open=Yq.prototype.open;er.prototype.has=function(){return this.a.some(function(a){return a.ke})};er.prototype.get=function(){var a=this,b;return _.H(function(c){if(1==c.a){b=a.a.find(function(d){return d.ke});if(!b)throw Error("No available players in the pool");b.ke=!1;return _.y(c,b.ready,2)}return c["return"](b.player)})};
541
- er.prototype.release=function(a){var b=this,c=this.a.find(function(d){return d.player===a});if(!c)return Promise.resolve();c.ke=!0;c.ready=new Promise(function(d){a.release()["catch"](function(e){b.g.error("Failed to unload player",e)}).then(d)});return c.ready};er.prototype.destroy=function(){var a=this;return _.H(function(b){return _.y(b,Promise.all(a.a.map(function(c){return c.player.destroy()})),0)})};_.x(hr,_.Vl);_.t=hr.prototype;_.t.Ed=function(){return this.f};_.t.Bb=function(){return this.f?this.f.player:null};_.t.ph=function(){return this.l.get(this.a+1)||null};_.t.rh=function(){return this.l.get(this.a-1)||null};_.t.Cf=function(){return[this.rh(),this.ph()].filter(Boolean)};_.t.bn=function(a){if(0<this.h.length)throw Error("Cannot re-set items in the playlist");this.g.info("Set items",a);this.h=a.map(function(b,c){return{config:b,index:c,preloadPromise:Promise.resolve(),disposers:[]}})};
541
+ gr(b,a),2)}_.rh(d);b.w=null;return _.sh(d,0)})};_.t.getCurrentItem=function(){return this.o[this.D]||null};_.t.getCurrentItemIndex=function(){return this.D};_.t.Yk=function(){return _.ch(this.o).concat()};_.t.Fd=function(){return this.o.length};_.t.getTimeline=function(){return this.a?this.a.getTimeline():null};_.t.seekWith=function(a){return this.a?this.a.seekWith(a):Promise.resolve()};_.t.release=function(){this.o=[];this.D=0;this.V=!1;return X.prototype.release.call(this)};
542
+ _.t.destroy=function(){br(this);return X.prototype.destroy.call(this)};_.t.setCdnErrorCallback=function(){throw new _.P(1,7,7009,"CDN switching is not supported!");};_.J("clpp.plist.ScPlaylist",ar);ar.prototype.setCdnErrorCallback=ar.prototype.setCdnErrorCallback;ar.prototype.destroy=ar.prototype.destroy;ar.prototype.release=ar.prototype.release;ar.prototype.seekWith=ar.prototype.seekWith;ar.prototype.getTimeline=ar.prototype.getTimeline;ar.prototype.getSize=ar.prototype.Fd;
543
+ ar.prototype.getPlaylist=ar.prototype.Yk;ar.prototype.getCurrentItemIndex=ar.prototype.getCurrentItemIndex;ar.prototype.getCurrentItem=ar.prototype.getCurrentItem;ar.prototype.addItem=ar.prototype.Oi;ar.prototype.open=ar.prototype.open;hr.prototype.has=function(){return this.a.some(function(a){return a.ke})};hr.prototype.get=function(){var a=this,b;return _.H(function(c){if(1==c.a){b=a.a.find(function(d){return d.ke});if(!b)throw Error("No available players in the pool");b.ke=!1;return _.y(c,b.ready,2)}return c["return"](b.player)})};
544
+ hr.prototype.release=function(a){var b=this,c=this.a.find(function(d){return d.player===a});if(!c)return Promise.resolve();c.ke=!0;c.ready=new Promise(function(d){a.release()["catch"](function(e){b.g.error("Failed to unload player",e)}).then(d)});return c.ready};hr.prototype.destroy=function(){var a=this;return _.H(function(b){return _.y(b,Promise.all(a.a.map(function(c){return c.player.destroy()})),0)})};_.x(kr,_.Vl);_.t=kr.prototype;_.t.Ed=function(){return this.f};_.t.Bb=function(){return this.f?this.f.player:null};_.t.ph=function(){return this.l.get(this.a+1)||null};_.t.rh=function(){return this.l.get(this.a-1)||null};_.t.Cf=function(){return[this.rh(),this.ph()].filter(Boolean)};_.t.bn=function(a){if(0<this.h.length)throw Error("Cannot re-set items in the playlist");this.g.info("Set items",a);this.h=a.map(function(b,c){return{config:b,index:c,preloadPromise:Promise.resolve(),disposers:[]}})};
542
545
  _.t.an=function(a){if(0===this.h.length)throw Error(Db);if(0>a||a>this.h.length-1)throw Error("Index out of bounds");this.a=a};_.t.$c=function(){return this.a<this.h.length-1};_.t.wh=function(){return 0<this.a};
543
- _.t.Nm=function(){var a=this,b,c;return _.H(function(d){switch(d.a){case 1:if(a.j)return a.g.warn("Cannot play first item while busy"),d["return"]();if(0===a.h.length)return a.g.warn(Db),d["return"]();a.j=!0;a.g.info("First (index: "+a.a+")");b=a.h[a.a];_.B(d,2,3);a.g.info("First loading (index: "+a.a+")");return _.y(d,pr(a,b),5);case 5:a.g.info("First playing (index: "+a.a+")");case 3:_.rh(d);a.j=!1;ur(a);_.sh(d,0);break;case 2:throw c=_.E(d),a.g.error("First failed (index: "+a.a+")"),c;}})};
544
- _.t.hi=function(){var a=this,b,c,d;return _.H(function(e){switch(e.a){case 1:if(a.j)return a.g.warn("Cannot play next item while busy"),e["return"]();if(!a.$c())return a.g.warn("There are no more items in the playlist"),e["return"]();a.j=!0;a.a+=1;a.g.info("Next (index: "+a.a+")");b=a.f;a.o.transition===_.hf&&b.player.pause();ir(a,a.a+-2);a.l["delete"](a.a);c=a.h[a.a];_.B(e,2,3);a.g.info("Next loading (index: "+a.a+")");return _.y(e,qr(a,c),5);case 5:a.g.info("Next playing (index: "+a.a+")");case 3:_.rh(e);
545
- a.j=!1;b&&mr(a,b);ur(a);_.sh(e,0);break;case 2:throw d=_.E(e),a.g.error("Next failed (index: "+a.a+")"),d;}})};
546
- _.t.Om=function(){var a=this,b,c,d;return _.H(function(e){switch(e.a){case 1:if(a.j)return a.g.warn("Cannot play previous item while busy"),e["return"]();if(!a.wh())return a.g.warn("There are no more previous items in the playlist"),e["return"]();a.j=!0;--a.a;a.g.info("Previous (index: "+a.a+")");b=a.f;a.o.transition===_.hf&&b.player.pause();ir(a,a.a+2);a.l["delete"](a.a);c=a.h[a.a];_.B(e,2,3);a.g.info("Previous loading (index: "+a.a+")");return _.y(e,qr(a,c),5);case 5:a.g.info("Previous playing (index: "+
547
- a.a+")");case 3:_.rh(e);a.j=!1;b&&mr(a,b);ur(a);_.sh(e,0);break;case 2:throw d=_.E(e),a.g.error("Previous failed (index: "+a.a+")"),d;}})};_.t.destroy=function(){var a=this;return _.H(function(b){return 1==b.a?(a.g.info("Destroy"),_.y(b,Promise.all([jr(a),a.f?mr(a,a.f):Promise.resolve()]),2)):_.y(b,vr(a),0)})};_.J(Ld,hr);hr.prototype.destroy=hr.prototype.destroy;hr.prototype.playPrev=hr.prototype.Om;hr.prototype.playNext=hr.prototype.hi;hr.prototype.playFirst=hr.prototype.Nm;
548
- hr.prototype.hasPrev=hr.prototype.wh;hr.prototype.hasNext=hr.prototype.$c;hr.prototype.setIndex=hr.prototype.an;hr.prototype.setItems=hr.prototype.bn;hr.prototype.getPreloading=hr.prototype.Cf;hr.prototype.getPrev=hr.prototype.rh;hr.prototype.getNext=hr.prototype.ph;hr.prototype.getCurrentPlayer=hr.prototype.Bb;hr.prototype.getCurrent=hr.prototype.Ed;var lr="preload",nr=_.Ne;var wr=new Map;_.t=yr.prototype;_.t.destroy=function(){this.a.dispose();this.a=null};_.t.reset=function(){this.a=new muxjs.mp4.Transmuxer(this.f)};_.t.isSupported=function(a,b){var c="mp2t"===a.toLowerCase().split(";")[0].split("/")[1],d=a.toLowerCase().split(";")[0]===_.cd;if(!window.muxjs||!c&&!d)return!1;if(d)return _.xr(hd);if(b)return _.xr(zr(b,a));c=zr(_.bd,a);d=zr(_.r,a);return _.xr(c)||_.xr(d)};_.t.isMuxed=function(a,b){return 1<this.demuxMimeTypes(a,b).size};
549
- _.t.demuxMimeTypes=function(a,b){var c=new Map;c.set(a,b);try{var d=_.Sk(b),e=_.Tk(b).split(","),f=new Map,g=Si(_.bd,e),h=Si(_.r,e);g&&f.set(_.bd,this.convertCodecs(_.bd,_.Rk(d,g)));h&&f.set(_.r,this.convertCodecs(_.r,_.Rk(d,h)));return f}catch(l){return c}};_.t.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]===_.cd?hd:"mp2t"===b.toLowerCase().split(";")[0].split("/")[1]?zr(a,b):b};_.t.getOriginalMimeType=function(){return this.h};
550
- _.t.transmux=function(a){function b(){g={video:Bj.apply(uj,_.ch(d)),captions:f,audio:Bj.apply(uj,_.ch(e))}}function c(h){f=h.captions;var l=new Uint8Array(h.data.byteLength+h.initSegment.byteLength);l.set(h.initSegment,0);l.set(h.data,h.initSegment.byteLength);h.type===sv?d.push(l):h.type===uv&&e.push(l)}var d=[],e=[],f=[],g=null;a=_.lj(a);this.a.on("data",c);this.a.on("done",b);this.a.push(a);this.a.flush();this.a.off("data",c);this.a.off("done",b);if(!g)throw new _.P(_.Q,3,3018);return g};
551
- Mk(_.cd,function(){return new yr(_.cd)});Mk(_.Ig,function(){return new yr(_.Ig)});var uv=_.bd,sv=_.r;_.x(Cr,_.Vl);_.t=Cr.prototype;_.t.getCurrentItem=function(){return this.a};_.t.Bb=function(){return this.a?this.a.player:null};_.t.Cf=function(){return Array.from(this.f.values())};_.t.je=function(a){this.g.info("Add items",a);this.j=this.j.concat(a.map(function(b){return Object.assign({},b,{state:"idle",disposers:[],preloadPromise:Promise.resolve(),Ud:Promise.resolve()})}))};
546
+ _.t.Nm=function(){var a=this,b,c;return _.H(function(d){switch(d.a){case 1:if(a.j)return a.g.warn("Cannot play first item while busy"),d["return"]();if(0===a.h.length)return a.g.warn(Db),d["return"]();a.j=!0;a.g.info("First (index: "+a.a+")");b=a.h[a.a];_.B(d,2,3);a.g.info("First loading (index: "+a.a+")");return _.y(d,sr(a,b),5);case 5:a.g.info("First playing (index: "+a.a+")");case 3:_.rh(d);a.j=!1;xr(a);_.sh(d,0);break;case 2:throw c=_.E(d),a.g.error("First failed (index: "+a.a+")"),c;}})};
547
+ _.t.hi=function(){var a=this,b,c,d;return _.H(function(e){switch(e.a){case 1:if(a.j)return a.g.warn("Cannot play next item while busy"),e["return"]();if(!a.$c())return a.g.warn("There are no more items in the playlist"),e["return"]();a.j=!0;a.a+=1;a.g.info("Next (index: "+a.a+")");b=a.f;a.o.transition===_.gf&&b.player.pause();lr(a,a.a+-2);a.l["delete"](a.a);c=a.h[a.a];_.B(e,2,3);a.g.info("Next loading (index: "+a.a+")");return _.y(e,tr(a,c),5);case 5:a.g.info("Next playing (index: "+a.a+")");case 3:_.rh(e);
548
+ a.j=!1;b&&pr(a,b);xr(a);_.sh(e,0);break;case 2:throw d=_.E(e),a.g.error("Next failed (index: "+a.a+")"),d;}})};
549
+ _.t.Om=function(){var a=this,b,c,d;return _.H(function(e){switch(e.a){case 1:if(a.j)return a.g.warn("Cannot play previous item while busy"),e["return"]();if(!a.wh())return a.g.warn("There are no more previous items in the playlist"),e["return"]();a.j=!0;--a.a;a.g.info("Previous (index: "+a.a+")");b=a.f;a.o.transition===_.gf&&b.player.pause();lr(a,a.a+2);a.l["delete"](a.a);c=a.h[a.a];_.B(e,2,3);a.g.info("Previous loading (index: "+a.a+")");return _.y(e,tr(a,c),5);case 5:a.g.info("Previous playing (index: "+
550
+ a.a+")");case 3:_.rh(e);a.j=!1;b&&pr(a,b);xr(a);_.sh(e,0);break;case 2:throw d=_.E(e),a.g.error("Previous failed (index: "+a.a+")"),d;}})};_.t.destroy=function(){var a=this;return _.H(function(b){return 1==b.a?(a.g.info("Destroy"),_.y(b,Promise.all([mr(a),a.f?pr(a,a.f):Promise.resolve()]),2)):_.y(b,yr(a),0)})};_.J(Kd,kr);kr.prototype.destroy=kr.prototype.destroy;kr.prototype.playPrev=kr.prototype.Om;kr.prototype.playNext=kr.prototype.hi;kr.prototype.playFirst=kr.prototype.Nm;
551
+ kr.prototype.hasPrev=kr.prototype.wh;kr.prototype.hasNext=kr.prototype.$c;kr.prototype.setIndex=kr.prototype.an;kr.prototype.setItems=kr.prototype.bn;kr.prototype.getPreloading=kr.prototype.Cf;kr.prototype.getPrev=kr.prototype.rh;kr.prototype.getNext=kr.prototype.ph;kr.prototype.getCurrentPlayer=kr.prototype.Bb;kr.prototype.getCurrent=kr.prototype.Ed;var or="preload",qr=_.Le;var zr=new Map;_.t=Br.prototype;_.t.destroy=function(){this.a.dispose();this.a=null};_.t.reset=function(){this.a=new muxjs.mp4.Transmuxer(this.f)};_.t.isSupported=function(a,b){var c="mp2t"===a.toLowerCase().split(";")[0].split("/")[1],d=a.toLowerCase().split(";")[0]===_.bd;if(!window.muxjs||!c&&!d)return!1;if(d)return _.Ar(gd);if(b)return _.Ar(Cr(b,a));c=Cr(_.ad,a);d=Cr(_.r,a);return _.Ar(c)||_.Ar(d)};_.t.isMuxed=function(a,b){return 1<this.demuxMimeTypes(a,b).size};
552
+ _.t.demuxMimeTypes=function(a,b){var c=new Map;c.set(a,b);try{var d=_.Sk(b),e=_.Tk(b).split(","),f=new Map,g=Si(_.ad,e),h=Si(_.r,e);g&&f.set(_.ad,this.convertCodecs(_.ad,_.Rk(d,g)));h&&f.set(_.r,this.convertCodecs(_.r,_.Rk(d,h)));return f}catch(l){return c}};_.t.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]===_.bd?gd:"mp2t"===b.toLowerCase().split(";")[0].split("/")[1]?Cr(a,b):b};_.t.getOriginalMimeType=function(){return this.h};
553
+ _.t.transmux=function(a){function b(){g={video:Bj.apply(uj,_.ch(d)),captions:f,audio:Bj.apply(uj,_.ch(e))}}function c(h){f=h.captions;var l=new Uint8Array(h.data.byteLength+h.initSegment.byteLength);l.set(h.initSegment,0);l.set(h.data,h.initSegment.byteLength);h.type===vv?d.push(l):h.type===wv&&e.push(l)}var d=[],e=[],f=[],g=null;a=_.lj(a);this.a.on("data",c);this.a.on("done",b);this.a.push(a);this.a.flush();this.a.off("data",c);this.a.off("done",b);if(!g)throw new _.P(_.Q,3,3018);return g};
554
+ Mk(_.bd,function(){return new Br(_.bd)});Mk(_.Ig,function(){return new Br(_.Ig)});var wv=_.ad,vv=_.r;_.x(Fr,_.Vl);_.t=Fr.prototype;_.t.getCurrentItem=function(){return this.a};_.t.Bb=function(){return this.a?this.a.player:null};_.t.Cf=function(){return Array.from(this.f.values())};_.t.je=function(a){this.g.info("Add items",a);this.j=this.j.concat(a.map(function(b){return Object.assign({},b,{state:"idle",disposers:[],preloadPromise:Promise.resolve(),Ud:Promise.resolve()})}))};
552
555
  _.t.removeItems=function(a){this.g.info("Remove items",a);a?this.j=this.j.filter(function(b){return!a.includes(b.id)}):this.j=[]};_.t.$c=function(){return 0<this.f.size};
553
- _.t.play=function(a){var b=this,c,d,e,f;return _.H(function(g){switch(g.a){case 1:if(b.h)return b.g.warn("Cannot play item while busy (ID: "+a+")"),g["return"]();c=b.getItem(a);if(!c)return b.g.warn(sb+a+")"),g["return"]();b.g.info("Play item (ID: "+a+")");b.h=!0;(d=b.a)&&d.player.pause();(e=b.f.has(a))&&b.f["delete"](a);_.B(g,2,3);b.g.info(rb+a+")");return e?_.y(g,Pr(b,c),6):_.y(g,Nr(b,c),6);case 6:c.wc&&c.wc(),b.trigger(new _.L(Be,{detail:c})),Fr(b,c),b.g.info("Item playing (ID: "+a+")");case 3:_.rh(g);
554
- b.h=!1;d&&Lr(b,d);Gr(b);Hr(b,c.next);_.sh(g,0);break;case 2:throw f=_.E(g),b.g.error(qb+a+")"),f;}})};
555
- _.t.load=function(a){var b=this,c,d,e,f;return _.H(function(g){switch(g.a){case 1:if(b.h)return b.g.warn("Cannot load item while busy (ID: "+a+")"),g["return"]();c=b.getItem(a);if(!c)return b.g.warn(sb+a+")"),g["return"]();b.g.info("Load item (ID: "+a+")");b.h=!0;(d=b.a)&&d.player.pause();(e=b.f.has(a))&&b.f["delete"](a);_.B(g,2,3);b.g.info(rb+a+")");if(e){b.g.error("Loading preloaded items is not supported");g.F(5);break}return _.y(g,Mr(b,c),5);case 5:b.trigger(new _.L(Be,{detail:c})),Fr(b,c),b.g.info("Item loaded (ID: "+
556
- a+")");case 3:_.rh(g);b.h=!1;d&&Lr(b,d);Gr(b);Hr(b,c.next);_.sh(g,0);break;case 2:throw f=_.E(g),b.g.error(qb+a+")"),f;}})};_.t.getItem=function(a){return this.j.find(function(b){return b.id===a})||null};_.t.release=function(){var a=this;return _.H(function(b){if(1==b.a)return _.y(b,Promise.all([Gr(a),a.a?Lr(a,a.a):Promise.resolve()]),2);a.a=null;a.h=!1;a.removeItems();Er(a,!0);_.A(b)})};
557
- _.t.destroy=function(){var a=this;return _.H(function(b){return 1==b.a?(a.g.info("Destroy"),_.y(b,a.release(),2)):_.y(b,Rr(a),0)})};Cr.prototype.destroy=Cr.prototype.destroy;Cr.prototype.release=Cr.prototype.release;Cr.prototype.getItem=Cr.prototype.getItem;Cr.prototype.load=Cr.prototype.load;Cr.prototype.play=Cr.prototype.play;Cr.prototype.hasNext=Cr.prototype.$c;Cr.prototype.removeItems=Cr.prototype.removeItems;Cr.prototype.addItems=Cr.prototype.je;Cr.prototype.getPreloading=Cr.prototype.Cf;
558
- Cr.prototype.getCurrentPlayer=Cr.prototype.Bb;Cr.prototype.getCurrentItem=Cr.prototype.getCurrentItem;var Kr="preload",Or=_.Ne;_.x(Xr,_.Vl);_.t=Xr.prototype;_.t.load=function(a){var b=this,c;return _.H(function(d){if(1==d.a)return _.y(d,$r(b,a,!1),2);b.trigger(new _.L(vv));c=b.a.getCurrentItem();c.primary&&b.trigger(new _.L(zs));_.A(d)})};_.t.Dd=function(){var a=this.o;return a?this.h.map(function(b){return{cueId:b.cueId,startTime:b.startTime,endTime:b.endTime,primaryDuration:a}}):[]};_.t.fl=function(){return this.l.a};_.t.Al=function(a){var b=this;return _.H(function(c){return _.y(c,$r(b,a,!0),0)})};
559
- _.t.unload=function(){var a=this;return _.H(function(b){if(1==b.a)return _.y(b,a.a.release(),2);a.h=[];a.l.release();_.A(b)})};_.t.destroy=function(){var a=this;return _.H(function(b){if(1==b.a)return _.y(b,a.a.destroy(),2);a.h=[];a.l.release();_.A(b)})};_.t.sn=function(){var a=this,b;return _.H(function(c){if(1==c.a)return _.y(c,Dr(a.a),2);a.trigger(new _.L(vv));b=a.a.getCurrentItem();b.primary&&a.trigger(new _.L(zs));_.A(c)})};
560
- _.t.getPosition=function(){var a=this.a.Bb();return a?a.getPosition():null};_.t.Bb=function(){return this.a.Bb()};_.t.getCurrentItem=function(){return this.a.getCurrentItem()};_.J(Jd,Xr);Xr.prototype.getCurrentItem=Xr.prototype.getCurrentItem;Xr.prototype.getCurrentPlayer=Xr.prototype.Bb;Xr.prototype.getPosition=Xr.prototype.getPosition;Xr.prototype.unpause=Xr.prototype.sn;Xr.prototype.destroy=Xr.prototype.destroy;Xr.prototype.unload=Xr.prototype.unload;Xr.prototype.loadPaused=Xr.prototype.Al;
561
- Xr.prototype.getYospaceSession=Xr.prototype.fl;Xr.prototype.getCues=Xr.prototype.Dd;Xr.prototype.load=Xr.prototype.load;
562
- var fs="new",ls="preparing",ns="ready",ys="completed",os="failed",ms="interstitial-preload-started",ps="x-asset-list-request-started",rs="x-asset-list-request-ended",us="interstitial-scheduled",ws="interstitial-started",xs="interstitial-ended",vs="interstitial-item-started",Wr="primary-player-changed",Tr="item-changed",vv="playback-started",zs="primary-started",js="primary-ended",es="cues-changed";
563
- _.J("clpp.interstitial.Event",{RESOLUTION_STARTED:ms,ASSET_LIST_STARTED:ps,ASSET_LIST_ENDED:rs,SCHEDULED:us,STARTED:ws,ENDED:xs,ITEM_STARTED:vs,PRIMARY_PLAYER_CHANGED:Wr,ITEM_CHANGED:Tr,PLAYBACK_STARTED:vv,PRIMARY_STARTED:zs,PRIMARY_ENDED:js,CUES_CHANGED:es});Sr.prototype.release=function(){this.a&&(this.a.shutdown(),this.a=null)};var Bs=_.nc,Cs="LIVE",Ds="DVR";_.t=Es.prototype;_.t.zb=function(){};_.t.Ab=function(){};_.t.Gb=function(){};_.t.getId=function(){};_.t.getCreativeId=function(){};_.t.getApiFramework=function(){};_.t.getAdSystem=function(){};_.t.getAdvertiserName=function(){};_.t.getTitle=function(){};_.t.getDuration=function(){};_.t.getSkipTimeOffset=function(){};_.t.tc=function(){};_.t.Tb=function(){};_.t.getMediaUrl=function(){};_.t.Db=function(){};_.t.Cb=function(){};_.t.pb=function(){};_.t.fb=function(){};_.t.getPodIndex=function(){};
564
- _.t.Ub=function(){};_.t.Vb=function(){};_.t.Fb=function(){};_.t.getWrapperAdIds=function(){};_.t.getWrapperAdSystems=function(){};_.t.getWrapperCreativeIds=function(){};_.J("clpp.ads.IAd",Es);Es.prototype.getWrapperCreativeIds=Es.prototype.getWrapperCreativeIds;Es.prototype.getWrapperAdSystems=Es.prototype.getWrapperAdSystems;Es.prototype.getWrapperAdIds=Es.prototype.getWrapperAdIds;Es.prototype.getSequenceLength=Es.prototype.Fb;Es.prototype.getPositionInSequence=Es.prototype.Vb;
565
- Es.prototype.getPodTimeOffset=Es.prototype.Ub;Es.prototype.getPodIndex=Es.prototype.getPodIndex;Es.prototype.getPodType=Es.prototype.fb;Es.prototype.getMediaBitrate=Es.prototype.pb;Es.prototype.getMediaHeight=Es.prototype.Cb;Es.prototype.getMediaWidth=Es.prototype.Db;Es.prototype.getMediaUrl=Es.prototype.getMediaUrl;Es.prototype.getClickThroughUrl=Es.prototype.Tb;Es.prototype.isBumper=Es.prototype.tc;Es.prototype.getSkipTimeOffset=Es.prototype.getSkipTimeOffset;Es.prototype.getDuration=Es.prototype.getDuration;
566
- Es.prototype.getTitle=Es.prototype.getTitle;Es.prototype.getAdvertiserName=Es.prototype.getAdvertiserName;Es.prototype.getAdSystem=Es.prototype.getAdSystem;Es.prototype.getApiFramework=Es.prototype.getApiFramework;Es.prototype.getCreativeId=Es.prototype.getCreativeId;Es.prototype.getId=Es.prototype.getId;Es.prototype.getTechnology=Es.prototype.Gb;Es.prototype.getAdManagerVersion=Es.prototype.Ab;Es.prototype.getAdManagerName=Es.prototype.zb;Fs.prototype.name=function(){};Fs.prototype.isSupported=function(){};Fs.prototype.create=function(){};_.J("clpp.ads.IAdsManagerFactory",Fs);Fs.prototype.create=Fs.prototype.create;Fs.prototype.isSupported=Fs.prototype.isSupported;Fs.prototype.name=Fs.prototype.name;_.t=Gs.prototype;_.t.load=function(){};_.t.start=function(){};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){};_.t.setVolume=function(){};_.t.getPosition=function(){};_.t.dispose=function(){};_.J("clpp.ads.IAdsManager",Gs);Gs.prototype.getPosition=Gs.prototype.getPosition;Gs.prototype.setVolume=Gs.prototype.setVolume;Gs.prototype.getVolume=Gs.prototype.getVolume;Gs.prototype.skip=Gs.prototype.skip;Gs.prototype.pause=Gs.prototype.pause;
567
- Gs.prototype.resume=Gs.prototype.resume;_.t=Hs.prototype;_.t.load=function(){return Promise.resolve()};_.t.start=function(a){return a.play()};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){return 1};_.t.setVolume=function(){};_.t.getPosition=function(){return-1};_.t.dispose=function(){return _.H(function(a){_.A(a)})};Hs.prototype.dispose=Hs.prototype.dispose;Hs.prototype.getPosition=Hs.prototype.getPosition;Hs.prototype.setVolume=Hs.prototype.setVolume;Hs.prototype.getVolume=Hs.prototype.getVolume;
568
- Hs.prototype.skip=Hs.prototype.skip;Hs.prototype.pause=Hs.prototype.pause;Hs.prototype.resume=Hs.prototype.resume;Hs.prototype.start=Hs.prototype.start;Hs.prototype.load=Hs.prototype.load;Up.prototype.name=function(){return"clpp.ads.NopAdsManagerFactory"};Up.prototype.isSupported=function(){return!0};Up.prototype.create=function(){return new Hs};Up.prototype.create=Up.prototype.create;Up.prototype.isSupported=Up.prototype.isSupported;Up.prototype.name=Up.prototype.name;Is.prototype.getCuePoints=function(){};Is.prototype.Xb=function(){};Is.prototype.rb=function(){};_.J("clpp.ads.IAdsTimeline",Is);Is.prototype.hasPostroll=Is.prototype.rb;Is.prototype.hasPreroll=Is.prototype.Xb;Is.prototype.getCuePoints=Is.prototype.getCuePoints;_.Js.prototype.f=function(){};_.Js.prototype.a=function(){};_.Js.prototype.h=function(){};_.Js.prototype.o=function(){};_.t=Ks.prototype;_.t.pe=function(a){this.a=a};_.t.rd=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(Ab)};_.t.xe=function(){return this.a&&this.a.mediaKeys};_.t.kc=function(a,b){this.g.debug("Requesting media key system access for",a,b.map(function(c){return Object.assign({},c,{drmInfos:c.drmInfos.map(function(){return"_anonymous_"})})}));return navigator.requestMediaKeySystemAccess(a,b)["catch"](function(c){c.message&&(c=Error(c.message+" (keySystem: "+a+")"));return Promise.reject(c)})};
569
- _.t.qd=function(){return Vb};Ls.prototype.a=function(){return Vb};Ls.prototype.isSupported=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};Ls.prototype.create=function(){return new Ks};Cn(new Ls,1E3);_.t=Ms.prototype;_.t.getStatus=function(){return this.a};_.t.forEach=function(a){this.a&&a(this.a,wv.value())};_.t.get=function(a){if(this.has(a))return this.a};_.t.has=function(a){var b=wv.value();return this.a&&nj(a,b)?!0:!1};_.t.entries=function(){};_.t.keys=function(){};_.t.values=function(){};var wv=new _.ip(function(){return tj(new Uint8Array([0]))});_.t=Os.prototype;_.t.pe=function(){};_.t.rd=function(a){_.Kh("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.t.xe=function(){return null};_.t.kc=function(){_.Kh("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.t.qd=function(){return"NOP"};Ps.prototype.a=function(){return"NOP"};Ps.prototype.isSupported=function(){return!0};Ps.prototype.create=function(){return new Os};
570
- Cn(new Ps,-1);_.t=Qs.prototype;_.t.pe=function(a){this.f=a};_.t.rd=function(a){var b=this.a;b&&b!==a&&Ts(b,null);return(this.a=a)?Ts(a,this.f):Promise.resolve()};_.t.xe=function(){return this.a};_.t.kc=function(a,b){_.Kh("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new Rs(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.t.qd=function(){return"APPLE"};Rs.prototype.createMediaKeys=function(){var a=new Ss(this.keySystem);return Promise.resolve(a)};
571
- Rs.prototype.getConfiguration=function(){_.Kh("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};Ss.prototype.createSession=function(a){a=void 0===a?pg:a;this.g.debug("Creating Apple MediaKeys Session");if(a!==pg)throw new TypeError("Session type "+a+ca);return new Us(this.h,"__session_"+this.j++)};Ss.prototype.setServerCertificate=function(){this.g.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.x(Us,_.Vl);_.t=Us.prototype;
572
- _.t.generateRequest=function(a,b){var c=this;if(this.l)return Promise.reject(Zb);this.g.debug("generateRequest");this.h=new _.Oj;try{var d=this.o.createSession(_.Jg,_.lj(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,Ug,function(e){var f=c.keyStatuses.getStatus();c.g.debug("Received Key Message in "+c.sessionId);c.h&&(c.h.resolve(),c.h=null);e=new _.L(_.Qe,{messageType:void 0===f||f===ig?Fe:Ee,message:tj(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,Sg,function(e){c.g.debug("onWebkitKeyAdded_",
573
- e);c.f&&(Vs(c,"usable"),c.f.resolve(),c.f=null)});this.j.on(d,Tg,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===ig)c.g.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.g.error("Received key error in session "+c.sessionId+" with code "+(c.a.error.code+". Session Status ")+(e+".")),e=Error("EME AppleEmeManager key error"),e.errorCode=c.a.error,null!==c.h)c.h.reject(e),c.h=null;else if(null!==c.f)c.f.reject(e),
574
- c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:Vs(c,"output-not-allowed");break;default:Vs(c,_.Ae)}});Vs(this,ig)}catch(e){this.h.reject(e)}return this.h};_.t.load=function(){this.g.debug("load");return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.t.update=function(a){if(this.l)return Promise.reject(Zb);this.g.debug(xg);this.f=new _.Oj;try{this.a.update(_.lj(a))}catch(b){this.f.reject(b)}return this.f};
575
- _.t.close=function(){if(this.l)return this.closed;this.g.info("Closing Key Session "+this.sessionId);this.l=!0;try{this.a.close(),this.closed.resolve(),_.Xh(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.t.remove=function(){this.g.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};Ws.prototype.a=function(){return"APPLE"};Ws.prototype.isSupported=function(){return!!window.WebKitMediaKeys};
576
- Ws.prototype.create=function(){return new Qs};Cn(new Ws,1100);_.t=Xs.prototype;_.t.pe=function(a){this.a=a};_.t.rd=function(a){_.Kh("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(Ab);var b=this.f;b&&b!==a&&bt(b,null);(this.f=a)&&bt(a,this.a);return Promise.resolve()};_.t.xe=function(){return this.f};_.t.kc=function(a,b){_.Kh("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.r);c=d.length?d[0]:document.createElement(_.r)}var e=new Ys(this.h,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
577
- _.t.qd=function(){return"WEBKIT"};Ys.prototype.createMediaKeys=function(){return Promise.resolve(new Zs(this.h,this.a))};Ys.prototype.getConfiguration=function(){return this.f};Zs.prototype.createSession=function(a){a=void 0===a?pg:a;if(a!==pg&&a!==_.kf)throw new TypeError("Session type "+a+ca);if(!this.a)throw a=Error("Media element is missing."),a.name=pb,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new ct(this.h,this.a,this.o,a);this.j.push(a);return a};
578
- Zs.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.x(ct,_.Vl);_.t=ct.prototype;_.t.ready=function(){_.Kh("WebkitEmeManager.MediaKeySession.ready");at(this,"usable");this.a&&this.a.resolve();this.a=null};_.t.generateRequest=function(a,b){_.Kh("WebkitEmeManager.MediaKeySession.generateRequest");return et(this,b,null)};_.t.load=function(a){_.Kh(qc);return this.l===_.kf?et(this,null,a):Promise.reject(Error(Gb))};_.t.update=function(a){_.Kh(qc);var b=new _.Oj;ft(this,b,a);return b};
579
- _.t.close=function(){_.Kh("WebkitEmeManager.MediaKeySession.close");if(this.l!==_.kf){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=dt(this,"cancelKeyRequest");try{this.j[a](this.h,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.t.remove=function(){_.Kh("WebkitEmeManager.MediaKeySession.remove");return this.l!==_.kf?Promise.reject(Error(Gb)):this.close()};gt.prototype.a=function(){return"WEBKIT"};
580
- gt.prototype.isSupported=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};gt.prototype.create=function(){return new Xs};Cn(new gt);_.x(ht,_.Bm);ht.prototype.Wd=function(a,b){for(var c=a.drm.customData.headers||{},d=_.w(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};ht.prototype.gh=function(a,b){var c=Xm(b);switch(this.o){case xv:return c;case yv:return(new _.qk(c)).a;default:throw Error("Unknown content ID strategy");}};ht.prototype.Th=function(a,b){b.headers[ya]=ad;this.Wd(a,b);var c={spc:_.vj(b.body)};b.body=_.S.jd(_.sk(c,!0))};
581
- ht.prototype.Uh=function(a,b){var c=_.S.ba(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.xj(c).buffer};_.J(Hd,ht);ht.prototype.onFairPlayLicenseResponse=ht.prototype.Uh;ht.prototype.onFairPlayLicenseRequest=ht.prototype.Th;ht.prototype.extractFairPlayContentId=ht.prototype.gh;ht.prototype.onLicenseRequest=ht.prototype.Wd;ht.prototype.constructor=ht.prototype.constructor;ht.NAME=jb;var yv="hostname",xv="full-skd";
582
- ht.FairPlayContentIdStrategy={HOSTNAME:yv,FULL_SKD:xv};_.x(it,_.Js);it.prototype.h=function(a){a=a.getConfiguration();if(a.drm&&a.drm&&a.drm.env===jb){a=a.drm.customData;if(!a)throw new _.P(_.Q,7,7100,_.Vd);a=new ht(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||xv);_.wm(a)}};it.prototype.a=function(){delete _.vm.HeaderDrm};it.prototype.id=function(){return"headerdrm"};_.J("clpp.drm.HeaderDrmComponent",it);_.pq(function(){ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(a,b){b=void 0!==b?b:this.byteLength;a=Math.floor(a);b=Math.floor(b);0>a&&(a+=this.byteLength);0>b&&(b+=this.byteLength);a=Math.min(Math.max(0,a),this.byteLength);b=Math.min(Math.max(0,b),this.byteLength);if(0>=b-a)return new ArrayBuffer(0);var c=new ArrayBuffer(b-a),d=_.lj(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.pq(function(){_.Kh("mathRound.install")});_.pq(function(){if(window.Document){var a=Element.prototype;a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||a.webkitRequestFullscreen;a=Document.prototype;a.exitFullscreen=a.exitFullscreen||a.mozCancelFullScreen||a.msExitFullscreen||a.webkitExitFullscreen;ue in document||(Object.defineProperty(document,ue,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
583
- {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",jt);document.addEventListener("webkitfullscreenerror",jt);document.addEventListener("mozfullscreenchange",jt);document.addEventListener("mozfullscreenerror",jt);document.addEventListener("MSFullscreenChange",jt);document.addEventListener("MSFullscreenError",jt)}});_.pq(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Kh("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=lt,document.exitPictureInPicture=mt,document.addEventListener("webkitpresentationmodechanged",kt,!0))}});_.pq(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=nt)}});_.pq(function(){if(window.VTTCue)_.Jh("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Jh(lc),window.VTTCue=ot;else if(6===a)_.Jh("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=pt;else{try{var b=!!ot(1,2,"")}catch(c){b=!1}b&&(_.Jh(lc),window.VTTCue=ot)}}else _.Lh("VTTCue not available.")});var qt;_.pq(function(){_.Kh("InputEvent.install");_.Zk("Trident/")&&HTMLInputElement.prototype.addEventListener!==rt&&(_.Jh("Patching input event support on IE."),qt=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=rt)});_.pq(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.pq(function(){_.Kh("VideoPlayPromise.install");if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b["catch"](function(){});return b}}});_.zt.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.j(b.contentRect.width,b.contentRect.height,a.h.isFullscreen())});this.f&&this.a.observe(this.f)};_.zt.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.Bt.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.r);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.Oj;c=c.play();var e=(new _.Wk(function(){b(a)})).da(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===Jb?b(!0):b(!1)}):b(!0);return d};
584
- var At=new Uint8Array([0,0,0,28,102,116,121,112,105,115,111,109,0,0,2,0,105,115,111,109,105,115,111,50,109,112,52,49,0,0,0,8,102,114,101,101,0,0,2,239,109,100,97,116,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
556
+ _.t.play=function(a){var b=this,c,d,e,f;return _.H(function(g){switch(g.a){case 1:if(b.h)return b.g.warn("Cannot play item while busy (ID: "+a+")"),g["return"]();c=b.getItem(a);if(!c)return b.g.warn(sb+a+")"),g["return"]();b.g.info("Play item (ID: "+a+")");b.h=!0;(d=b.a)&&d.player.pause();(e=b.f.has(a))&&b.f["delete"](a);_.B(g,2,3);b.g.info(rb+a+")");return e?_.y(g,Sr(b,c),6):_.y(g,Qr(b,c),6);case 6:c.wc&&c.wc(),b.trigger(new _.L(Ae,{detail:c})),Ir(b,c),b.g.info("Item playing (ID: "+a+")");case 3:_.rh(g);
557
+ b.h=!1;d&&Or(b,d);Jr(b);Kr(b,c.next);_.sh(g,0);break;case 2:throw f=_.E(g),b.g.error(qb+a+")"),f;}})};
558
+ _.t.load=function(a){var b=this,c,d,e,f;return _.H(function(g){switch(g.a){case 1:if(b.h)return b.g.warn("Cannot load item while busy (ID: "+a+")"),g["return"]();c=b.getItem(a);if(!c)return b.g.warn(sb+a+")"),g["return"]();b.g.info("Load item (ID: "+a+")");b.h=!0;(d=b.a)&&d.player.pause();(e=b.f.has(a))&&b.f["delete"](a);_.B(g,2,3);b.g.info(rb+a+")");if(e){b.g.error("Loading preloaded items is not supported");g.F(5);break}return _.y(g,Pr(b,c),5);case 5:b.trigger(new _.L(Ae,{detail:c})),Ir(b,c),b.g.info("Item loaded (ID: "+
559
+ a+")");case 3:_.rh(g);b.h=!1;d&&Or(b,d);Jr(b);Kr(b,c.next);_.sh(g,0);break;case 2:throw f=_.E(g),b.g.error(qb+a+")"),f;}})};_.t.getItem=function(a){return this.j.find(function(b){return b.id===a})||null};_.t.release=function(){var a=this;return _.H(function(b){if(1==b.a)return _.y(b,Promise.all([Jr(a),a.a?Or(a,a.a):Promise.resolve()]),2);a.a=null;a.h=!1;a.removeItems();Hr(a,!0);_.A(b)})};
560
+ _.t.destroy=function(){var a=this;return _.H(function(b){return 1==b.a?(a.g.info("Destroy"),_.y(b,a.release(),2)):_.y(b,Ur(a),0)})};Fr.prototype.destroy=Fr.prototype.destroy;Fr.prototype.release=Fr.prototype.release;Fr.prototype.getItem=Fr.prototype.getItem;Fr.prototype.load=Fr.prototype.load;Fr.prototype.play=Fr.prototype.play;Fr.prototype.hasNext=Fr.prototype.$c;Fr.prototype.removeItems=Fr.prototype.removeItems;Fr.prototype.addItems=Fr.prototype.je;Fr.prototype.getPreloading=Fr.prototype.Cf;
561
+ Fr.prototype.getCurrentPlayer=Fr.prototype.Bb;Fr.prototype.getCurrentItem=Fr.prototype.getCurrentItem;var Nr="preload",Rr=_.Le;_.x($r,_.Vl);_.t=$r.prototype;_.t.load=function(a){var b=this,c;return _.H(function(d){if(1==d.a)return _.y(d,cs(b,a,!1),2);b.trigger(new _.L(xv));c=b.a.getCurrentItem();c.primary&&b.trigger(new _.L(Cs));_.A(d)})};_.t.Dd=function(){var a=this.o;return a?this.h.map(function(b){return{cueId:b.cueId,startTime:b.startTime,endTime:b.endTime,primaryDuration:a}}):[]};_.t.fl=function(){return this.l.a};_.t.Al=function(a){var b=this;return _.H(function(c){return _.y(c,cs(b,a,!0),0)})};
562
+ _.t.unload=function(){var a=this;return _.H(function(b){if(1==b.a)return _.y(b,a.a.release(),2);a.h=[];a.l.release();_.A(b)})};_.t.destroy=function(){var a=this;return _.H(function(b){if(1==b.a)return _.y(b,a.a.destroy(),2);a.h=[];a.l.release();_.A(b)})};_.t.sn=function(){var a=this,b;return _.H(function(c){if(1==c.a)return _.y(c,Gr(a.a),2);a.trigger(new _.L(xv));b=a.a.getCurrentItem();b.primary&&a.trigger(new _.L(Cs));_.A(c)})};
563
+ _.t.getPosition=function(){var a=this.a.Bb();return a?a.getPosition():null};_.t.Bb=function(){return this.a.Bb()};_.t.getCurrentItem=function(){return this.a.getCurrentItem()};_.J(Id,$r);$r.prototype.getCurrentItem=$r.prototype.getCurrentItem;$r.prototype.getCurrentPlayer=$r.prototype.Bb;$r.prototype.getPosition=$r.prototype.getPosition;$r.prototype.unpause=$r.prototype.sn;$r.prototype.destroy=$r.prototype.destroy;$r.prototype.unload=$r.prototype.unload;$r.prototype.loadPaused=$r.prototype.Al;
564
+ $r.prototype.getYospaceSession=$r.prototype.fl;$r.prototype.getCues=$r.prototype.Dd;$r.prototype.load=$r.prototype.load;
565
+ var is="new",os="preparing",qs="ready",Bs="completed",rs="failed",ps="interstitial-preload-started",ss="x-asset-list-request-started",us="x-asset-list-request-ended",xs="interstitial-scheduled",zs="interstitial-started",As="interstitial-ended",ys="interstitial-item-started",Zr="primary-player-changed",Wr="item-changed",xv="playback-started",Cs="primary-started",ms="primary-ended",hs="cues-changed";
566
+ _.J("clpp.interstitial.Event",{RESOLUTION_STARTED:ps,ASSET_LIST_STARTED:ss,ASSET_LIST_ENDED:us,SCHEDULED:xs,STARTED:zs,ENDED:As,ITEM_STARTED:ys,PRIMARY_PLAYER_CHANGED:Zr,ITEM_CHANGED:Wr,PLAYBACK_STARTED:xv,PRIMARY_STARTED:Cs,PRIMARY_ENDED:ms,CUES_CHANGED:hs});Vr.prototype.release=function(){this.a&&(this.a.shutdown(),this.a=null)};var Es=_.mc,Fs="LIVE",Gs="DVR";_.t=Hs.prototype;_.t.zb=function(){};_.t.Ab=function(){};_.t.Gb=function(){};_.t.getId=function(){};_.t.getCreativeId=function(){};_.t.getApiFramework=function(){};_.t.getAdSystem=function(){};_.t.getAdvertiserName=function(){};_.t.getTitle=function(){};_.t.getDuration=function(){};_.t.getSkipTimeOffset=function(){};_.t.tc=function(){};_.t.Tb=function(){};_.t.getMediaUrl=function(){};_.t.Db=function(){};_.t.Cb=function(){};_.t.pb=function(){};_.t.fb=function(){};_.t.getPodIndex=function(){};
567
+ _.t.Ub=function(){};_.t.Vb=function(){};_.t.Fb=function(){};_.t.getWrapperAdIds=function(){};_.t.getWrapperAdSystems=function(){};_.t.getWrapperCreativeIds=function(){};_.J("clpp.ads.IAd",Hs);Hs.prototype.getWrapperCreativeIds=Hs.prototype.getWrapperCreativeIds;Hs.prototype.getWrapperAdSystems=Hs.prototype.getWrapperAdSystems;Hs.prototype.getWrapperAdIds=Hs.prototype.getWrapperAdIds;Hs.prototype.getSequenceLength=Hs.prototype.Fb;Hs.prototype.getPositionInSequence=Hs.prototype.Vb;
568
+ Hs.prototype.getPodTimeOffset=Hs.prototype.Ub;Hs.prototype.getPodIndex=Hs.prototype.getPodIndex;Hs.prototype.getPodType=Hs.prototype.fb;Hs.prototype.getMediaBitrate=Hs.prototype.pb;Hs.prototype.getMediaHeight=Hs.prototype.Cb;Hs.prototype.getMediaWidth=Hs.prototype.Db;Hs.prototype.getMediaUrl=Hs.prototype.getMediaUrl;Hs.prototype.getClickThroughUrl=Hs.prototype.Tb;Hs.prototype.isBumper=Hs.prototype.tc;Hs.prototype.getSkipTimeOffset=Hs.prototype.getSkipTimeOffset;Hs.prototype.getDuration=Hs.prototype.getDuration;
569
+ Hs.prototype.getTitle=Hs.prototype.getTitle;Hs.prototype.getAdvertiserName=Hs.prototype.getAdvertiserName;Hs.prototype.getAdSystem=Hs.prototype.getAdSystem;Hs.prototype.getApiFramework=Hs.prototype.getApiFramework;Hs.prototype.getCreativeId=Hs.prototype.getCreativeId;Hs.prototype.getId=Hs.prototype.getId;Hs.prototype.getTechnology=Hs.prototype.Gb;Hs.prototype.getAdManagerVersion=Hs.prototype.Ab;Hs.prototype.getAdManagerName=Hs.prototype.zb;Is.prototype.name=function(){};Is.prototype.isSupported=function(){};Is.prototype.create=function(){};_.J("clpp.ads.IAdsManagerFactory",Is);Is.prototype.create=Is.prototype.create;Is.prototype.isSupported=Is.prototype.isSupported;Is.prototype.name=Is.prototype.name;_.t=Js.prototype;_.t.load=function(){};_.t.start=function(){};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){};_.t.setVolume=function(){};_.t.getPosition=function(){};_.t.dispose=function(){};_.J("clpp.ads.IAdsManager",Js);Js.prototype.getPosition=Js.prototype.getPosition;Js.prototype.setVolume=Js.prototype.setVolume;Js.prototype.getVolume=Js.prototype.getVolume;Js.prototype.skip=Js.prototype.skip;Js.prototype.pause=Js.prototype.pause;
570
+ Js.prototype.resume=Js.prototype.resume;_.t=Ks.prototype;_.t.load=function(){return Promise.resolve()};_.t.start=function(a){return a.play()};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){return 1};_.t.setVolume=function(){};_.t.getPosition=function(){return-1};_.t.dispose=function(){return _.H(function(a){_.A(a)})};Ks.prototype.dispose=Ks.prototype.dispose;Ks.prototype.getPosition=Ks.prototype.getPosition;Ks.prototype.setVolume=Ks.prototype.setVolume;Ks.prototype.getVolume=Ks.prototype.getVolume;
571
+ Ks.prototype.skip=Ks.prototype.skip;Ks.prototype.pause=Ks.prototype.pause;Ks.prototype.resume=Ks.prototype.resume;Ks.prototype.start=Ks.prototype.start;Ks.prototype.load=Ks.prototype.load;Up.prototype.name=function(){return"clpp.ads.NopAdsManagerFactory"};Up.prototype.isSupported=function(){return!0};Up.prototype.create=function(){return new Ks};Up.prototype.create=Up.prototype.create;Up.prototype.isSupported=Up.prototype.isSupported;Up.prototype.name=Up.prototype.name;Ls.prototype.getCuePoints=function(){};Ls.prototype.Xb=function(){};Ls.prototype.rb=function(){};_.J("clpp.ads.IAdsTimeline",Ls);Ls.prototype.hasPostroll=Ls.prototype.rb;Ls.prototype.hasPreroll=Ls.prototype.Xb;Ls.prototype.getCuePoints=Ls.prototype.getCuePoints;_.Ms.prototype.f=function(){};_.Ms.prototype.a=function(){};_.Ms.prototype.h=function(){};_.Ms.prototype.o=function(){};_.t=Ns.prototype;_.t.pe=function(a){this.a=a};_.t.rd=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(Ab)};_.t.ye=function(){return this.a&&this.a.mediaKeys};_.t.kc=function(a,b){this.g.debug("Requesting media key system access for",a,b.map(function(c){return Object.assign({},c,{drmInfos:c.drmInfos.map(function(){return"_anonymous_"})})}));return navigator.requestMediaKeySystemAccess(a,b)["catch"](function(c){c.message&&(c=Error(c.message+" (keySystem: "+a+")"));return Promise.reject(c)})};
572
+ _.t.qd=function(){return Vb};Os.prototype.a=function(){return Vb};Os.prototype.isSupported=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};Os.prototype.create=function(){return new Ns};Cn(new Os,1E3);_.t=Ps.prototype;_.t.getStatus=function(){return this.a};_.t.forEach=function(a){this.a&&a(this.a,yv.value())};_.t.get=function(a){if(this.has(a))return this.a};_.t.has=function(a){var b=yv.value();return this.a&&nj(a,b)?!0:!1};_.t.entries=function(){};_.t.keys=function(){};_.t.values=function(){};var yv=new _.ip(function(){return tj(new Uint8Array([0]))});_.t=Rs.prototype;_.t.pe=function(){};_.t.rd=function(a){_.Kh("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.t.ye=function(){return null};_.t.kc=function(){_.Kh("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.t.qd=function(){return"NOP"};Ss.prototype.a=function(){return"NOP"};Ss.prototype.isSupported=function(){return!0};Ss.prototype.create=function(){return new Rs};
573
+ Cn(new Ss,-1);_.t=Ts.prototype;_.t.pe=function(a){this.f=a};_.t.rd=function(a){var b=this.a;b&&b!==a&&Ws(b,null);return(this.a=a)?Ws(a,this.f):Promise.resolve()};_.t.ye=function(){return this.a};_.t.kc=function(a,b){_.Kh("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new Us(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.t.qd=function(){return"APPLE"};Us.prototype.createMediaKeys=function(){var a=new Vs(this.keySystem);return Promise.resolve(a)};
574
+ Us.prototype.getConfiguration=function(){_.Kh("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};Vs.prototype.createSession=function(a){a=void 0===a?og:a;this.g.debug("Creating Apple MediaKeys Session");if(a!==og)throw new TypeError("Session type "+a+ca);return new Xs(this.h,"__session_"+this.j++)};Vs.prototype.setServerCertificate=function(){this.g.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.x(Xs,_.Vl);_.t=Xs.prototype;
575
+ _.t.generateRequest=function(a,b){var c=this;if(this.l)return Promise.reject(Zb);this.g.debug("generateRequest");this.h=new _.Oj;try{var d=this.o.createSession(_.Jg,_.lj(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,Ug,function(e){var f=c.keyStatuses.getStatus();c.g.debug("Received Key Message in "+c.sessionId);c.h&&(c.h.resolve(),c.h=null);e=new _.L(_.Pe,{messageType:void 0===f||f===hg?Ee:De,message:tj(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,Sg,function(e){c.g.debug("onWebkitKeyAdded_",
576
+ e);c.f&&(Ys(c,"usable"),c.f.resolve(),c.f=null)});this.j.on(d,Tg,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===hg)c.g.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.g.error("Received key error in session "+c.sessionId+" with code "+(c.a.error.code+". Session Status ")+(e+".")),e=Error("EME AppleEmeManager key error"),e.errorCode=c.a.error,null!==c.h)c.h.reject(e),c.h=null;else if(null!==c.f)c.f.reject(e),
577
+ c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:Ys(c,"output-not-allowed");break;default:Ys(c,_.ze)}});Ys(this,hg)}catch(e){this.h.reject(e)}return this.h};_.t.load=function(){this.g.debug("load");return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.t.update=function(a){if(this.l)return Promise.reject(Zb);this.g.debug(xg);this.f=new _.Oj;try{this.a.update(_.lj(a))}catch(b){this.f.reject(b)}return this.f};
578
+ _.t.close=function(){if(this.l)return this.closed;this.g.info("Closing Key Session "+this.sessionId);this.l=!0;try{this.a.close(),this.closed.resolve(),_.Xh(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.t.remove=function(){this.g.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};Zs.prototype.a=function(){return"APPLE"};Zs.prototype.isSupported=function(){return!!window.WebKitMediaKeys};
579
+ Zs.prototype.create=function(){return new Ts};Cn(new Zs,1100);_.t=$s.prototype;_.t.pe=function(a){this.a=a};_.t.rd=function(a){_.Kh("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(Ab);var b=this.f;b&&b!==a&&et(b,null);(this.f=a)&&et(a,this.a);return Promise.resolve()};_.t.ye=function(){return this.f};_.t.kc=function(a,b){_.Kh("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.r);c=d.length?d[0]:document.createElement(_.r)}var e=new at(this.h,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
580
+ _.t.qd=function(){return"WEBKIT"};at.prototype.createMediaKeys=function(){return Promise.resolve(new bt(this.h,this.a))};at.prototype.getConfiguration=function(){return this.f};bt.prototype.createSession=function(a){a=void 0===a?og:a;if(a!==og&&a!==_.jf)throw new TypeError("Session type "+a+ca);if(!this.a)throw a=Error("Media element is missing."),a.name=pb,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new ft(this.h,this.a,this.o,a);this.j.push(a);return a};
581
+ bt.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.x(ft,_.Vl);_.t=ft.prototype;_.t.ready=function(){_.Kh("WebkitEmeManager.MediaKeySession.ready");dt(this,"usable");this.a&&this.a.resolve();this.a=null};_.t.generateRequest=function(a,b){_.Kh("WebkitEmeManager.MediaKeySession.generateRequest");return ht(this,b,null)};_.t.load=function(a){_.Kh(oc);return this.l===_.jf?ht(this,null,a):Promise.reject(Error(Gb))};_.t.update=function(a){_.Kh(oc);var b=new _.Oj;it(this,b,a);return b};
582
+ _.t.close=function(){_.Kh("WebkitEmeManager.MediaKeySession.close");if(this.l!==_.jf){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=gt(this,"cancelKeyRequest");try{this.j[a](this.h,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.t.remove=function(){_.Kh("WebkitEmeManager.MediaKeySession.remove");return this.l!==_.jf?Promise.reject(Error(Gb)):this.close()};jt.prototype.a=function(){return"WEBKIT"};
583
+ jt.prototype.isSupported=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};jt.prototype.create=function(){return new $s};Cn(new jt);_.x(kt,_.Bm);kt.prototype.Wd=function(a,b){for(var c=a.drm.customData.headers||{},d=_.w(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};kt.prototype.gh=function(a,b){var c=Xm(b);switch(this.o){case zv:return c;case Av:return(new _.qk(c)).a;default:throw Error("Unknown content ID strategy");}};kt.prototype.Th=function(a,b){b.headers[ya]=$c;this.Wd(a,b);var c={spc:_.vj(b.body)};b.body=_.S.jd(_.sk(c,!0))};
584
+ kt.prototype.Uh=function(a,b){var c=_.S.ba(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.xj(c).buffer};_.J(Fd,kt);kt.prototype.onFairPlayLicenseResponse=kt.prototype.Uh;kt.prototype.onFairPlayLicenseRequest=kt.prototype.Th;kt.prototype.extractFairPlayContentId=kt.prototype.gh;kt.prototype.onLicenseRequest=kt.prototype.Wd;kt.prototype.constructor=kt.prototype.constructor;kt.NAME=jb;var Av="hostname",zv="full-skd";
585
+ kt.FairPlayContentIdStrategy={HOSTNAME:Av,FULL_SKD:zv};_.x(lt,_.Ms);lt.prototype.h=function(a){a=a.getConfiguration();if(a.drm&&a.drm&&a.drm.env===jb){a=a.drm.customData;if(!a)throw new _.P(_.Q,7,7100,_.Ud);a=new kt(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||zv);_.wm(a)}};lt.prototype.a=function(){delete _.vm.HeaderDrm};lt.prototype.id=function(){return"headerdrm"};_.J("clpp.drm.HeaderDrmComponent",lt);_.pq(function(){ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(a,b){b=void 0!==b?b:this.byteLength;a=Math.floor(a);b=Math.floor(b);0>a&&(a+=this.byteLength);0>b&&(b+=this.byteLength);a=Math.min(Math.max(0,a),this.byteLength);b=Math.min(Math.max(0,b),this.byteLength);if(0>=b-a)return new ArrayBuffer(0);var c=new ArrayBuffer(b-a),d=_.lj(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.pq(function(){_.Kh("mathRound.install")});_.pq(function(){if(window.Document){var a=Element.prototype;a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||a.webkitRequestFullscreen;a=Document.prototype;a.exitFullscreen=a.exitFullscreen||a.mozCancelFullScreen||a.msExitFullscreen||a.webkitExitFullscreen;te in document||(Object.defineProperty(document,te,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
586
+ {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",mt);document.addEventListener("webkitfullscreenerror",mt);document.addEventListener("mozfullscreenchange",mt);document.addEventListener("mozfullscreenerror",mt);document.addEventListener("MSFullscreenChange",mt);document.addEventListener("MSFullscreenError",mt)}});_.pq(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Kh("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=ot,document.exitPictureInPicture=pt,document.addEventListener("webkitpresentationmodechanged",nt,!0))}});_.pq(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=qt)}});_.pq(function(){if(window.VTTCue)_.Jh("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Jh(kc),window.VTTCue=rt;else if(6===a)_.Jh("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=st;else{try{var b=!!rt(1,2,"")}catch(c){b=!1}b&&(_.Jh(kc),window.VTTCue=rt)}}else _.Lh("VTTCue not available.")});var tt;_.pq(function(){_.Kh("InputEvent.install");_.Zk("Trident/")&&HTMLInputElement.prototype.addEventListener!==ut&&(_.Jh("Patching input event support on IE."),tt=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=ut)});_.pq(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.pq(function(){_.Kh("VideoPlayPromise.install");if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b["catch"](function(){});return b}}});_.Ct.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.j(b.contentRect.width,b.contentRect.height,a.h.isFullscreen())});this.f&&this.a.observe(this.f)};_.Ct.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.Et.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.r);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.Oj;c=c.play();var e=(new _.Wk(function(){b(a)})).da(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===Jb?b(!0):b(!1)}):b(!0);return d};
587
+ var Dt=new Uint8Array([0,0,0,28,102,116,121,112,105,115,111,109,0,0,2,0,105,115,111,109,105,115,111,50,109,112,52,49,0,0,0,8,102,114,101,101,0,0,2,239,109,100,97,116,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
585
588
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
586
589
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,128,0,0,0,0,
587
590
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,0,0,2,194,109,111,111,118,0,0,0,108,109,118,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,232,0,0,0,47,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,1,236,116,114,97,107,0,0,0,92,116,107,104,100,0,0,0,3,0,0,0,0,
588
591
  0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,47,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,101,100,116,115,0,0,0,28,101,108,115,116,0,0,0,0,0,0,0,1,0,0,0,47,0,0,0,0,0,1,0,0,0,0,1,100,109,100,105,97,0,0,0,32,109,100,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,68,0,0,8,0,85,196,0,0,0,0,0,45,104,100,108,114,0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0,0,0,1,15,109,105,110,102,
589
592
  0,0,0,16,115,109,104,100,0,0,0,0,0,0,0,0,0,0,0,36,100,105,110,102,0,0,0,28,100,114,101,102,0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1,0,0,0,211,115,116,98,108,0,0,0,103,115,116,115,100,0,0,0,0,0,0,0,1,0,0,0,87,109,112,52,97,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,2,0,16,0,0,0,0,172,68,0,0,0,0,0,51,101,115,100,115,0,0,0,0,3,128,128,128,34,0,2,0,4,128,128,128,20,64,21,0,0,0,0,1,244,0,0,1,243,249,5,128,128,128,2,18,16,6,128,128,128,1,2,0,0,0,24,115,116,116,115,0,0,0,0,0,0,0,1,0,0,0,2,0,0,4,0,0,0,0,28,
590
- 115,116,115,99,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,28,115,116,115,122,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,115,0,0,1,116,0,0,0,20,115,116,99,111,0,0,0,0,0,0,0,1,0,0,0,44,0,0,0,98,117,100,116,97,0,0,0,90,109,101,116,97,0,0,0,0,0,0,0,33,104,100,108,114,0,0,0,0,0,0,0,0,109,100,105,114,97,112,112,108,0,0,0,0,0,0,0,0,0,0,0,0,45,105,108,115,116,0,0,0,37,169,116,111,111,0,0,0,29,100,97,116,97,0,0,0,1,0,0,0,0,76,97,118,102,53,54,46,52,48,46,49,48,49]);_.t=_.Ct.prototype;_.t.getDuration=function(){return this.a};_.t.getId=function(){return this.id};_.t.qb=function(){return this.f};_.t.Nd=function(){return this.h};_.t.la=function(a){return this.getId()===a.getId()&&this.qb()===a.qb()&&this.getDuration()===a.getDuration()&&this.Nd()===a.Nd()};_.J("clpp.media.TimelineWindow",_.Ct);_.Ct.prototype.isDynamic=_.Ct.prototype.Nd;_.Ct.prototype.getStart=_.Ct.prototype.qb;_.Ct.prototype.getId=_.Ct.prototype.getId;_.Ct.prototype.getDuration=_.Ct.prototype.getDuration;_.zv=new _.K("clpp.media.TimestampParser");_.t=_.Dt.prototype;_.t.cl=function(a){return this.a[a]||null};_.t.dl=function(){return this.a.length};_.t.el=function(){return this.a};_.t.mh=function(){return this.a[this.f]||null};_.t.Pk=function(){return this.f};_.J("clpp.media.Timeline",_.Dt);_.Dt.prototype.getCurrentWindowIndex=_.Dt.prototype.Pk;_.Dt.prototype.getCurrentWindow=_.Dt.prototype.mh;_.Dt.prototype.getWindows=_.Dt.prototype.el;_.Dt.prototype.getWindowCount=_.Dt.prototype.dl;_.Dt.prototype.getWindow=_.Dt.prototype.cl;_.Gt={};_.It={};var Nt=window.XMLHttpRequest;_.x(Vt,_.Pj);Vt.prototype.then=function(a,b){this.P=this.P.then(a,b);return this};Vt.prototype["catch"]=function(a){this.P=this.P["catch"](a);return this};Vt.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.h.then(function(b){a.o&&clearTimeout(a.o);a.l&&a.l();return b.abort()})["catch"](function(){})};_.$t.prototype.enabled=function(){return this.a};_.$t.prototype.oh=function(){return this.a&&this.f&&this.f.has(Av)?1E3*this.f.get(Av):null};_.$t.prototype.release=function(){this.f=null;this.a=!1;this.h.Xd(this.j)};_.$t.prototype.getEstimatedThroughput=_.$t.prototype.oh;var Av="etp",bu={Dn:Av},cu=new _.K("clpp.net.CmsdManager");var gu=window.fetch,eu=window.AbortController,du=window.Headers;_.iu={};_.t=_.mu.prototype;_.t.getBackgroundColor=function(){return this.K};_.t.setBackgroundColor=function(a){this.K=a;this.yb()};_.t.getWindowColor=function(){return this.V};_.t.setWindowColor=function(a){this.V=a;this.yb()};_.t.getFontFamily=function(){return this.S};_.t.setFontFamily=function(a){this.S=a;this.yb()};_.t.getFontColor=function(){return this.N};_.t.setFontColor=function(a){this.N=a;this.yb()};_.t.getFontSize=function(){return this.I};_.t.setFontSize=function(a){this.I=a;this.yb()};
591
- _.t.getFontSizePercent=function(){return null===this.B?Bv:this.B};_.t.setFontSizePercent=function(a){this.B=a;this.yb()};_.t.getEdgeColor=function(){return this.H};_.t.setEdgeColor=function(a){this.H=a;this.yb()};_.t.getEdgeType=function(){return this.o};_.t.setEdgeType=function(a){this.o=a;this.yb()};_.mu.prototype.setEdgeType=_.mu.prototype.setEdgeType;_.mu.prototype.getEdgeType=_.mu.prototype.getEdgeType;_.mu.prototype.setEdgeColor=_.mu.prototype.setEdgeColor;_.mu.prototype.getEdgeColor=_.mu.prototype.getEdgeColor;
592
- _.mu.prototype.setFontSizePercent=_.mu.prototype.setFontSizePercent;_.mu.prototype.getFontSizePercent=_.mu.prototype.getFontSizePercent;_.mu.prototype.setFontSize=_.mu.prototype.setFontSize;_.mu.prototype.getFontSize=_.mu.prototype.getFontSize;_.mu.prototype.setFontColor=_.mu.prototype.setFontColor;_.mu.prototype.getFontColor=_.mu.prototype.getFontColor;_.mu.prototype.setFontFamily=_.mu.prototype.setFontFamily;_.mu.prototype.getFontFamily=_.mu.prototype.getFontFamily;
593
- _.mu.prototype.setWindowColor=_.mu.prototype.setWindowColor;_.mu.prototype.getWindowColor=_.mu.prototype.getWindowColor;_.mu.prototype.setBackgroundColor=_.mu.prototype.setBackgroundColor;_.mu.prototype.getBackgroundColor=_.mu.prototype.getBackgroundColor;var Bv=1/15;var nu="raised",ou="depressed",qu="dropshadow",pu="uniform";_.J("clpp.text.EdgeType",{NONE:_.Xe,RAISED:nu,DEPRESSED:ou,DROP_SHADOW:qu,UNIFORM:pu});su.prototype.parseInit=function(a){try{var b=_.ku(_.Xc);if(b){var c=new b(this.f);c.parseInit(a)}else this.g.warn("The clpp.ttml.Mp4TtmlParser class is not available. Please register the ttml component first.")}catch(e){c=null}if(c)this.a=c;else{try{var d=_.ku(_.Yc);d?(c=new d(this.f),c.parseInit(a)):this.g.warn("The clpp.vtt.Mp4VttParser class is not available. Please register the vtt component first.")}catch(e){c=null}if(c)this.a=c;else throw new _.P(_.Q,2,2011);}};
594
- su.prototype.parseMedia=function(a,b){if(!this.a)throw new _.P(_.Q,2,2011);return this.a.parseMedia(a,b)};_.ju(Wc,su);_.x(_.uu,_.mu);_.t=_.uu.prototype;_.t.append=function(){};_.t.remove=function(){return!0};_.t.isTextVisible=function(){return this.w};_.t.setTextVisibility=function(a){this.w=a};
595
- _.t.yb=function(){if(!this.j){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.ru(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.h.textContent="."+this.f+"::cue {"+b+"}"}};_.t.destroy=function(){this.l.classList.remove(this.f);document.head.removeChild(this.h);this.j=!0;return Promise.resolve()};var tu=0;vu.prototype.isSupported=function(){return!0};vu.prototype.create=function(a){return new _.uu(a)};_.Zo("native",new vu);_.wu.prototype.onContentWillLoad=function(){return Promise.resolve()};_.wu.prototype.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.wu.prototype.onPlayerWillDestroy=function(){};_.wu.prototype.onPlayerWillRelease=function(){};}.call(g,this));
593
+ 115,116,115,99,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,28,115,116,115,122,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,115,0,0,1,116,0,0,0,20,115,116,99,111,0,0,0,0,0,0,0,1,0,0,0,44,0,0,0,98,117,100,116,97,0,0,0,90,109,101,116,97,0,0,0,0,0,0,0,33,104,100,108,114,0,0,0,0,0,0,0,0,109,100,105,114,97,112,112,108,0,0,0,0,0,0,0,0,0,0,0,0,45,105,108,115,116,0,0,0,37,169,116,111,111,0,0,0,29,100,97,116,97,0,0,0,1,0,0,0,0,76,97,118,102,53,54,46,52,48,46,49,48,49]);_.t=_.Ft.prototype;_.t.getDuration=function(){return this.a};_.t.getId=function(){return this.id};_.t.qb=function(){return this.f};_.t.Nd=function(){return this.h};_.t.la=function(a){return this.getId()===a.getId()&&this.qb()===a.qb()&&this.getDuration()===a.getDuration()&&this.Nd()===a.Nd()};_.J("clpp.media.TimelineWindow",_.Ft);_.Ft.prototype.isDynamic=_.Ft.prototype.Nd;_.Ft.prototype.getStart=_.Ft.prototype.qb;_.Ft.prototype.getId=_.Ft.prototype.getId;_.Ft.prototype.getDuration=_.Ft.prototype.getDuration;_.Bv=new _.K("clpp.media.TimestampParser");_.t=_.Gt.prototype;_.t.cl=function(a){return this.a[a]||null};_.t.dl=function(){return this.a.length};_.t.el=function(){return this.a};_.t.mh=function(){return this.a[this.f]||null};_.t.Pk=function(){return this.f};_.J("clpp.media.Timeline",_.Gt);_.Gt.prototype.getCurrentWindowIndex=_.Gt.prototype.Pk;_.Gt.prototype.getCurrentWindow=_.Gt.prototype.mh;_.Gt.prototype.getWindows=_.Gt.prototype.el;_.Gt.prototype.getWindowCount=_.Gt.prototype.dl;_.Gt.prototype.getWindow=_.Gt.prototype.cl;_.Jt={};_.Lt={};var Qt=window.XMLHttpRequest;_.x(Zt,_.Pj);Zt.prototype.then=function(a,b){this.P=this.P.then(a,b);return this};Zt.prototype["catch"]=function(a){this.P=this.P["catch"](a);return this};Zt.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.h.then(function(b){a.o&&clearTimeout(a.o);a.l&&a.l();return b.abort()})["catch"](function(){})};_.cu.prototype.enabled=function(){return this.a};_.cu.prototype.oh=function(){return this.a&&this.f&&this.f.has(Cv)?1E3*this.f.get(Cv):null};_.cu.prototype.release=function(){this.f=null;this.a=!1;this.h.Xd(this.j)};_.cu.prototype.getEstimatedThroughput=_.cu.prototype.oh;var Cv="etp",eu={Dn:Cv},fu=new _.K("clpp.net.CmsdManager");var ju=window.fetch,hu=window.AbortController,gu=window.Headers;_.lu={};_.t=_.pu.prototype;_.t.getBackgroundColor=function(){return this.K};_.t.setBackgroundColor=function(a){this.K=a;this.yb()};_.t.getWindowColor=function(){return this.V};_.t.setWindowColor=function(a){this.V=a;this.yb()};_.t.getFontFamily=function(){return this.S};_.t.setFontFamily=function(a){this.S=a;this.yb()};_.t.getFontColor=function(){return this.N};_.t.setFontColor=function(a){this.N=a;this.yb()};_.t.getFontSize=function(){return this.I};_.t.setFontSize=function(a){this.I=a;this.yb()};
594
+ _.t.getFontSizePercent=function(){return null===this.B?Dv:this.B};_.t.setFontSizePercent=function(a){this.B=a;this.yb()};_.t.getEdgeColor=function(){return this.H};_.t.setEdgeColor=function(a){this.H=a;this.yb()};_.t.getEdgeType=function(){return this.o};_.t.setEdgeType=function(a){this.o=a;this.yb()};_.pu.prototype.setEdgeType=_.pu.prototype.setEdgeType;_.pu.prototype.getEdgeType=_.pu.prototype.getEdgeType;_.pu.prototype.setEdgeColor=_.pu.prototype.setEdgeColor;_.pu.prototype.getEdgeColor=_.pu.prototype.getEdgeColor;
595
+ _.pu.prototype.setFontSizePercent=_.pu.prototype.setFontSizePercent;_.pu.prototype.getFontSizePercent=_.pu.prototype.getFontSizePercent;_.pu.prototype.setFontSize=_.pu.prototype.setFontSize;_.pu.prototype.getFontSize=_.pu.prototype.getFontSize;_.pu.prototype.setFontColor=_.pu.prototype.setFontColor;_.pu.prototype.getFontColor=_.pu.prototype.getFontColor;_.pu.prototype.setFontFamily=_.pu.prototype.setFontFamily;_.pu.prototype.getFontFamily=_.pu.prototype.getFontFamily;
596
+ _.pu.prototype.setWindowColor=_.pu.prototype.setWindowColor;_.pu.prototype.getWindowColor=_.pu.prototype.getWindowColor;_.pu.prototype.setBackgroundColor=_.pu.prototype.setBackgroundColor;_.pu.prototype.getBackgroundColor=_.pu.prototype.getBackgroundColor;var Dv=1/15;var qu="raised",ru="depressed",tu="dropshadow",su="uniform";_.J("clpp.text.EdgeType",{NONE:_.We,RAISED:qu,DEPRESSED:ru,DROP_SHADOW:tu,UNIFORM:su});vu.prototype.parseInit=function(a){try{var b=_.nu(_.Wc);if(b){var c=new b(this.f);c.parseInit(a)}else this.g.warn("The clpp.ttml.Mp4TtmlParser class is not available. Please register the ttml component first.")}catch(e){c=null}if(c)this.a=c;else{try{var d=_.nu(_.Xc);d?(c=new d(this.f),c.parseInit(a)):this.g.warn("The clpp.vtt.Mp4VttParser class is not available. Please register the vtt component first.")}catch(e){c=null}if(c)this.a=c;else throw new _.P(_.Q,2,2011);}};
597
+ vu.prototype.parseMedia=function(a,b){if(!this.a)throw new _.P(_.Q,2,2011);return this.a.parseMedia(a,b)};_.mu(Vc,vu);_.x(_.xu,_.pu);_.t=_.xu.prototype;_.t.append=function(){};_.t.remove=function(){return!0};_.t.isTextVisible=function(){return this.w};_.t.setTextVisibility=function(a){this.w=a};
598
+ _.t.yb=function(){if(!this.j){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.uu(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.h.textContent="."+this.f+"::cue {"+b+"}"}};_.t.destroy=function(){this.l.classList.remove(this.f);document.head.removeChild(this.h);this.j=!0;return Promise.resolve()};var wu=0;yu.prototype.isSupported=function(){return!0};yu.prototype.create=function(a){return new _.xu(a)};_.Zo("native",new yu);_.zu.prototype.onContentWillLoad=function(){return Promise.resolve()};_.zu.prototype.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.zu.prototype.onPlayerWillDestroy=function(){};_.zu.prototype.onPlayerWillRelease=function(){};}.call(g,this));
596
599
  g.clpp._ = _;
597
600
  if (typeof(module)!="undefined"&&module.exports) {module.exports=g.clpp;}
598
601
  else if (typeof(define)!="undefined" && define.amd) {define(function(){return g.clpp;});}