@castlabs/prestoplay 6.26.0 → 6.28.0

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 (68) hide show
  1. package/CHANGELOG.md +42 -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 +115 -113
  6. package/cjs/cl.conviva.js +32 -32
  7. package/cjs/cl.core.js +623 -623
  8. package/cjs/cl.crypto.js +9 -9
  9. package/cjs/cl.dash.js +89 -89
  10. package/cjs/cl.externs.js +112 -72
  11. package/cjs/cl.freewheel.js +25 -25
  12. package/cjs/cl.hls.js +78 -77
  13. package/cjs/cl.hlssmpte.js +6 -6
  14. package/cjs/cl.htmlcue.js +30 -30
  15. package/cjs/cl.ima.js +23 -24
  16. package/cjs/cl.mediatailor.js +3 -3
  17. package/cjs/cl.mse.js +353 -345
  18. package/cjs/cl.muxdata.js +14 -15
  19. package/cjs/cl.onboard.js +4 -3
  20. package/cjs/cl.persistent.js +15 -15
  21. package/cjs/cl.playlist.js +6 -6
  22. package/cjs/cl.simid.js +16 -17
  23. package/cjs/cl.smooth.js +72 -72
  24. package/cjs/cl.thumbnails.js +26 -26
  25. package/cjs/cl.tizen.js +73 -72
  26. package/cjs/cl.ttml.js +29 -29
  27. package/cjs/cl.verimatrix.js +5 -5
  28. package/cjs/cl.vimond.js +12 -12
  29. package/cjs/cl.vr.js +19 -19
  30. package/cjs/cl.vtt.js +14 -14
  31. package/cjs/cl.yospace.js +4 -4
  32. package/cjs/cl.youbora.js +38 -38
  33. package/cjs/polyfill.min.js +15 -3
  34. package/cl.adobe.js +3 -3
  35. package/cl.airplay.js +3 -3
  36. package/cl.broadpeak.js +6 -5
  37. package/cl.cast.js +93 -90
  38. package/cl.conviva.js +27 -27
  39. package/cl.core.js +506 -507
  40. package/cl.crypto.js +9 -9
  41. package/cl.dash.js +83 -82
  42. package/cl.externs.js +112 -72
  43. package/cl.freewheel.js +19 -19
  44. package/cl.hls.js +80 -79
  45. package/cl.hlssmpte.js +5 -5
  46. package/cl.htmlcue.js +26 -26
  47. package/cl.ima.js +17 -17
  48. package/cl.mediatailor.js +2 -3
  49. package/cl.mse.js +308 -305
  50. package/cl.muxdata.js +13 -13
  51. package/cl.onboard.js +4 -4
  52. package/cl.persistent.js +11 -11
  53. package/cl.playlist.js +5 -5
  54. package/cl.simid.js +14 -14
  55. package/cl.smooth.js +60 -60
  56. package/cl.thumbnails.js +19 -19
  57. package/cl.tizen.js +57 -57
  58. package/cl.ttml.js +22 -22
  59. package/cl.verimatrix.js +4 -4
  60. package/cl.vimond.js +8 -8
  61. package/cl.vr.js +15 -15
  62. package/cl.vtt.js +12 -12
  63. package/cl.yospace.js +3 -3
  64. package/cl.youbora.js +31 -29
  65. package/package.json +1 -1
  66. package/typings.d.ts +115 -63
  67. package/cjs/cl.sessions.js +0 -21
  68. package/cl.sessions.js +0 -10
package/cjs/cl.core.js CHANGED
@@ -1,542 +1,525 @@
1
1
  (function(){var g={}; var _ = {};
2
- (function(window){var ba,ca,ea,fa,ha,sa,va,za,Aa,Ga,Ha,Ia,Ka,Oa,Pa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,bb,cb,gb,ib,jb,kb,lb,mb,nb,pb,qb,ub,yb,Gb,Hb,Ib,Jb,Kb,Nb,Pb,Sb,Tb,Ub,Xb,Yb,$b,ac,bc,cc,dc,ec,fc,gc,nc,oc,pc,Jc,Oc,Uc,bd,cd,jd,kd,ld,nd,od,qd,rd,td,ud,vd,wd,xd,yd,Dd,Fd,Kd,Rd,Sd,Td,Ud,Vd,Wd,Yd,Zd,$d,ce,de,fe,le,ve,xe,ye,Fe,Ze,ff,hf,jf,kf,lf,mf,nf,of,pf,qf,rf,vf,wf,xf,yf,zf,Af,Cf,Kf,Mf,ag,dg,kg,wg,zg,Fg,Qg,Ug,Vg,Wg,Xg,Yg,$g,ah,bh,gh,kh,oh,qh,ph,rh,sh,th,yh,Bh,zh,Ah,Ch,Eh,Fh,Jh,Mh,Rh,Vh,Xh,Zh,$h,ai,ci,di,bi,fi,gi,ii,mi,ki,ni,pi,
3
- oi,ti,wi,vi,ui,yi,Bi,Ai,zi,ri,qi,xi,si,Ei,Fi,Gi,Ii,Ki,Ji,Mi,Xi,Yi,Zi,aj,cj,dj,fj,gj,kj,mj,oj,ij,rj,Cj,Gj,Hj,Mj,Qj,Sj,Tj,Wj,Rj,Nj,fk,gk,jk,kk,lk,nk,ok,pk,sk,Ek,Fk,Jk,Kk,Hk,Ik,Pk,Rk,Sk,Uk,Xk,Zk,Yk,Wk,$k,Vk,dl,al,bl,el,fl,ml,ul,Fl,Hl,Il,Jl,Tl,Kl,Wl,Yl,$l,am,Zl,cm,dm,Xl,em,fm,gm,hm,im,km,lm,mm,nm,jm,rm,sm,um,xm,zm,Fm,Gm,Hm,Im,Jm,Km,Lm,Mm,Nm,Vm,Wm,Xm,cn,qn,wn,zn,An,Cn,Dn,Ln,Qn,Rn,Wn,bo,co,fo,go,io,jo,ko,lo,mo,no,oo,po,qo,ro,so,to,uo,xo,vo,yo,Ao,Bo,wo,zo,Co,Do,Eo,Fo,Io,Qo,Ro,Xo,Yo,fp,lp,up,rp,sp,yp,Ap,
4
- Dp,Hp,Ip,Mp,wp,qp,Tp,Kp,Up,Wp,Vp,dq,$p,Zp,bq,eq,cq,gq,aq,fq,hp,Bp,Xp,ip,Sp,pp,Op,Pp,jq,Rp,vp,tp,kp,oq,qq,rq,sq,tq,zq,Aq,Cq,Gq,Lq,yq,Mq,Nq,Qq,Sq,Tq,Vq,Wq,Rq,Xq,Yq,Zq,$q,dr,er,fr,W,gr,lr,mr,nr,rr,qr,wr,Ar,Cr,Dr,Fr,Er,Ir,Jr,Hr,yr,Xr,xr,Lr,zr,Yr,Kr,ur,Vr,sr,Gr,$r,Ur,Rr,Sr,Qr,Tr,Pr,Zr,bs,Wr,es,vr,tr,Mr,fs,gs,ds,Br,rs,ss,us,is,js,hs,os,ms,ns,ts,Ds,zs,ys,xs,Es,Cs,Bs,Js,qs,Ls,As,Ks,ks,ls,Gs,Ss,Hs,Is,Ns,Ms,Ts,Rs,Ws,Fs,Os,Xs,Ys,$s,Zs,bt,ct,dt,et,at,gt,it,jt,lt,mt,nt,ot,pt,qt,rt,st,ut,vt,wt,xt,tt,Bt,Dt,Ct,Et,
5
- Ft,X,Kt,Ot,Mt,Pt,Rt,Qt,Tt,Ut,Zt,au,$t,Wt,Jt,Vt,cu,du,eu,hu,iu,gu,fu,lu,nu,mu,qu,ou,tu,uu,su,wu,xu,yu,vu,ku,zu,ju,Cu,Du,Eu,Gu,Hu,Iu,Ju,Ku,Lu,Mu,Nu,Ou,Qu,Tu,Uu,Vu,Su,Xu,Yu,dv,iv,jv,lv,kv,zk,nv,qv,pv,rv,sv,ov,Gk,vv,uv,wv,Ak,zv,vk,aw,dw,ih,fw;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" to a log level. Falling back to default!";_.da="#text";ea="': 'output-restricted'";fa="() is ongoing!";ha=".start";_.ia="6.26.0";_.ja="AUDIO";_.la="AdaptationSet";_.ma="Already destroyed. No-op";
6
- _.na="Already released. No-op";_.oa="Autoplay is not allowed due to browser policy.";_.pa="BANDWIDTH";_.qa="BASIC";sa="CHECKSUM";_.ta="CLOSED-CAPTIONS";_.ua="CODECS";va="Can not set volume to ";_.wa="Cannot retrieve buffer information due to platform limitations";_.xa="CastlabsPlayer";_.ya="Configuration is valid";za="Content-Length";Aa="Content-Type";_.Ea="Could not find configured DRM environment.";_.Fa="DRM environment '";Ga="DRM licenses loaded";Ha="DRMtoday";Ia="DRMtodayOnboard";_.Ja="DURATION";
7
- Ka="Destroying player";_.La="EXT-X-MEDIA";_.Ma="EXT-X-STREAM-INF";Oa="Error while decoding string!";Pa="Error while fetching certificate!";_.Qa="FairPlay Certificate URL is not defined";_.Ra="FairPlay License URL is not defined";_.Sa="GROUP-ID";Ta="HW_SECURE_ALL";Ua="HW_SECURE_CRYPTO";Va="HW_SECURE_DECODE";Wa="HeaderDrm";Xa="Hide video element .";Ya="Invalid track type: ";Za="InvalidStateError";$a="Key status for Key ID '";_.ab="LANGUAGE";bb="License verification failed: ";cb="Load interrupted while a player release is pending";
8
- _.db="Loading player with configuration";_.eb="MaxHeight";_.fb="MaxWidth";gb="Missing media element";_.hb="NAME";ib="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";jb="No event provided!";kb="No items in the playlist";lb="No sources provided!";mb="No track data attached to the event, unable to add track!";nb="Not a persistent session.";_.ob="Not supported";pb="NotAllowedError";qb="NotSupportedError";_.rb="PLAYLIST";_.sb="POST";_.tb="PlayReady License URL is not defined";
9
- ub="Player not ready yet.";_.vb="Player sources";_.wb="Player state change: ";_.xb="Please make sure ";yb="Preloading is not supported by this player.";_.Ab="QualityLevel";_.Bb="RESOLUTION";_.Cb="Representation";_.Db="SUBTITLES";_.Eb="SW_SECURE_CRYPTO";_.Fb="SW_SECURE_DECODE";Gb="Schedule interstitial ";Hb="Session is closed";Ib="Setting native ";Jb="Show video element .";Kb="Skipping Session creation. License for init data was already requested in Session: '";_.Lb="SmoothStreamingMedia";_.Mb="TYPE";
10
- Nb="The index is not in the allowed range.";_.Ob="URI";Pb="Unable to translate ";_.Qb="Unhandled/ignored event";_.Rb="Unregistering listeners";Sb="Unsupported keySystem";Tb="Updating playout limit for interstitial";Ub="Using VTTCue polyfill from 3 argument TextTrackCue.";_.Vb="VIDEO";_.Wb="VOD";Xb="Wait for preloading to finish";Yb="WebkitEmeManager.MediaKeySession.load";_.Zb="Widevine License URL is not defined";$b="Will create EME Manager: ";ac="X-AD-CREATIVE-SIGNALING";bc="X-ASSET-LIST";cc="X-ASSET-URI";
11
- dc="X-PLAYOUT-LIMIT";ec="X-RESTRICT";fc="X-RESUME-OFFSET";gc="X-TIMELINE-OCCUPIES";_.hc="ad-break-started";_.ic="ad-break-stopped";_.jc="ad-buffering";_.kc="ad-clicked";_.lc="ad-completed";_.mc="ad-first-quartile";nc="ad-hls-asset-list-request";oc="ad-hls-asset-list-response";pc="ad-hls-resoled";_.qc="ad-impression";_.rc="ad-loaded";_.sc="ad-midpoint";_.tc="ad-paused";_.uc="ad-progress";_.vc="ad-resumed";_.wc="ad-skipped";_.xc="ad-started";_.zc="ad-stopped";_.Ac="ad-third-quartile";_.Bc="addtrack";
12
- _.Cc="ads-timeline-changed";_.Dc="airplay-casting-ended";_.Ec="airplay-casting-started";_.Fc="airplay-status-changed";_.Gc="application";_.Hc="application/cea-608";_.Ic="application/dash+xml";Jc="application/mp4";_.Kc='application/mp4; codecs\x3d"stpp"';_.Lc='application/mp4; codecs\x3d"wvtt"';_.Mc="application/ttml+xml";_.Nc="application/vnd.ms-sstr+xml";Oc="application/x-www-form-urlencoded";_.Pc="audio";_.Qc="audio/aac";_.Rc="audio/ac3";_.Sc="audio/eac3";_.Tc="audio/mp4";Uc='audio/mp4;codecs\x3d"mp4a.40.2"';
13
- _.Vc="audiobufferchanged";_.Wc="audiotrackchanged";_.Xc="autoplaynotallowed";_.Yc="bitratechanged";_.Zc="boolean";_.$c="bufferingended";_.ad="bufferingstarted";bd="canplay";cd="canplaythrough";_.dd="caption";_.ed="castingstarted";_.fd="caststatuschanged";_.gd="cdn-switch-success";_.hd="cenc";_.id="center";jd="certificate-request";kd="change";ld="chrome";_.md="clpp-fill";nd="clpp-hidden";od="clpp-mc-playlist";qd="clpp-visible";rd="clpp.PlayerFleet";_.sd="clpp.cast.CastSender";td="clpp.drm.HeaderDrm";
14
- ud="clpp.drm.eme.AppleEmeManager";vd="clpp.drm.eme.EmeFactory";wd="clpp.native.Player";xd="clpp.plist.McPlaylist";yd="clpp.utils.Platform";_.zd="codecs";_.Ad="column-reverse";_.Bd="com.adobe.primetime";_.Cd="com.apple.fps";Dd="com.apple.quicktime.HLS";_.Ed="com.microsoft.playready";Fd="com.microsoft.playready.recommendation";_.Gd="com.widevine.alpha";_.Hd="config.drm.customData is not defined";_.Id="content-steering-change";_.Jd="content-steering-location-ban-update";Kd="controls";_.Ld="cuechange";
15
- _.Md="decoder";_.Nd="destroy()";_.Od="disabled";_.Pd="div";Rd="drm.license.req.";Sd="drm.mediaKeys.end";Td="drm.mediaKeys.start";Ud="drm.onPlay.end";Vd="drm.onPlay.start";Wd="drm.sess.update.";_.Xd="drmexpirationupdate";Yd="drmlicenserequested";Zd="drmrenewalstarted";$d="drmsessioncreated";_.ae="drmsessionpersisted";_.be="drmsessionupdate";ce="drmtoday";de="durationchange";_.ee="ec-3";fe="encrypted";_.ge="end";_.he="ended";_.ie="error";_.je="estimatedThroughputKbps";_.ke="forced";le="fullscreenElement";
16
- _.me="function";_.ne="height";_.oe="hidden";_.re="html";_.se="https://";_.te="image";_.ue="internal-error";ve="keystatuseschange";_.we="left";xe="license-renewal";ye="license-request";_.ze="line-left";_.Ae="line-right";_.Be="live-turned-static";_.Ce="load";_.De="loadeddata";_.Ee="loadedmetadata";Fe="loadstart";_.Ge="main";_.He="mdat";_.Ie="mdia";_.Je="message";_.Ke="metadata";_.Le="mimeType";_.Me="minf";_.Ne="moov";_.Pe="mpd-type-changed";_.Qe="mpeg-dash-callback-event";_.Re="none";_.k="number";
17
- _.Se="object";_.Te="onBitrateChanged()";_.Ue="onContentLoaded";_.Ve="onPlayerError()";_.We="onPlayerWillDestroy";_.Xe="onPlayerWillRelease";_.Ye="onStateChanged()";Ze="online-status-changed";_.$e="optional";_.af="org.w3.clearkey";_.bf="output-restricted";_.cf="pause";_.df="persistent";_.ef="persistent-license";ff="picture-in-picture";_.gf="play";hf="player.afterLoad.end";jf="player.afterLoad.start";kf="player.appendLoad.end";lf="player.appendLoad.start";mf="player.beforeLoad.end";nf="player.beforeLoad.start";
18
- of="player.load.end";pf="player.load.start";qf="player.setupPlaylist.end";rf="player.setupPlaylist.start";_.sf="playing";_.tf="playlist-item-changed";_.uf="playlist-modified";vf="playlist.next.end";wf="playlist.next.start";xf="preload-aborted";yf="preload-failed";zf="preloaded";Af="preloading";_.Bf="prevent";Cf="primary-content";_.Ef="progress";_.If="px";_.Jf="ratechange";Kf="released";_.Lf="releasing";Mf="removetrack";_.Nf="required";_.Of="resize";_.Pf="right";_.Qf="sc-playlist-ended";_.Rf="sc-playlist-item-changed";
19
- _.Sf="sc-playlist-live-turned-static";_.Tf="sc-playlist-timeline-changed";_.Uf="seeked";_.Vf="seeking";_.Wf="showing";_.Xf="simid-creative-started";_.Yf="simid-creative-stopped";_.Zf="sinf";_.$f="smooth";ag="stalled";_.bg="start";_.cg="statechanged";dg="status-pending";_.eg="stbl";_.fg="string";_.gg="stsd";_.hg="style";_.ig="subtitle";_.jg="subtitles-htmlcue";kg="temporary";_.lg="text/vtt";_.mg="text/xml";_.ng="texttrackchanged";_.og="timeline-cue-added";_.pg="timeline-cue-enter";_.qg="timeline-cue-exit";
20
- _.rg="timeline-cues-changed";_.sg="timeupdate";_.tg="tracksadded";_.ug="trak";_.vg="ttml-xml";wg="unauthenticated";_.xg="und";_.yg="unknown";zg="update";_.Ag="urn:scte:scte35";_.Bg="urn:scte:scte35:2014";_.Cg="user-seeked";_.Dg="user-seeking";_.Eg="value";Fg="version";_.Gg="vertical-lr";_.Hg="vertical-rl";_.Jg="video";_.Kg="video/mp2t";_.Mg="video/mp4";_.Ng="videobufferchanged";_.Og="videotrackchanged";_.Pg="vimond-response";Qg="visibilitychange";_.Rg="vtt-xml";_.Sg="waiting";_.Tg="waitingforkey";
21
- Ug="webkit-org.w3.clearkey";Vg="webkitkeyadded";Wg="webkitkeyerror";Xg="webkitkeymessage";Yg="webkitneedkey";_.Zg="width";$g="x-dt-csl-tracking-token";ah="x-dt-follow-up-token";bh="x-dt-resp-code";_.ch="yospace-session-ended";_.dh="yospace-session-started";_.fh=function(a){return function(){return _.eh[a].apply(this,arguments)}};gh=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
22
- _.v=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:gh(a)}};_.hh=function(a){if(!(a instanceof Array)){a=_.v(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};_.w=function(a,b){a.prototype=ih(b.prototype);a.prototype.constructor=a;if(jh)jh(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]};
23
- kh=function(){kh=function(){};lh.Symbol||(lh.Symbol=mh)};oh=function(a,b){this.a=a;nh(this,"description",{configurable:!0,writable:!0,value:b})};qh=function(){kh();var a=lh.Symbol.iterator;a||(a=lh.Symbol.iterator=lh.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.me&&nh(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ph(gh(this))}});qh=function(){}};ph=function(a){qh();a={next:a};a[lh.Symbol.iterator]=function(){return this};return a};
24
- rh=function(){this.w=!1;this.l=null;this.f=void 0;this.a=1;this.j=this.o=0;this.B=this.h=null};sh=function(a){if(a.w)throw new TypeError("Generator is already running");a.w=!0};th=function(a,b){a.h={Th:b,wi:!0};a.a=a.o||a.j};_.x=function(a,b,c){a.a=c;return{value:b}};_.z=function(a){a.a=0};_.D=function(a,b,c){a.o=b;void 0!=c&&(a.j=c)};_.uh=function(a){a.o=0;a.j=2};_.vh=function(a,b){a.a=b;a.o=0};_.F=function(a){a.o=0;var b=a.h.Th;a.h=null;return b};_.wh=function(a){a.B=[a.h];a.o=0;a.j=0};
25
- _.xh=function(a){var b=a.B.splice(0)[0];(b=a.h=a.h||b)?b.wi?a.a=a.o||a.j:void 0!=b.D&&a.j<b.D?(a.a=b.D,a.h=null):a.a=a.j:a.a=0};yh=function(a){this.a=new rh;this.f=a};Bh=function(a,b){sh(a.a);var c=a.a.l;if(c)return zh(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return Ah(a)};
26
- zh=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,th(a.a,g),Ah(a)}a.a.l=null;d.call(a.a,f);return Ah(a)};Ah=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,th(a.a,c)}a.a.w=!1;if(a.a.h){b=a.a.h;a.a.h=null;if(b.wi)throw b.Th;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
27
- Ch=function(a){this.next=function(b){sh(a.a);a.a.l?b=zh(a,a.a.l.next,b,a.a.A):(a.a.A(b),b=Ah(a));return b};this["throw"]=function(b){sh(a.a);a.a.l?b=zh(a,a.a.l["throw"],b,a.a.A):(th(a.a,b),b=Ah(a));return b};this["return"]=function(b){return Bh(a,b)};qh();this[Symbol.iterator]=function(){return this}};_.Dh=function(a,b){var c=new Ch(new yh(b));jh&&jh(c,a.prototype);return c};
28
- Eh=function(a,b){if(b){for(var c=lh,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&&nh(c,d,{configurable:!0,writable:!0,value:f})}};Fh=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 Fh(new Ch(new yh(a)))};
29
- _.I=function(a,b){var c=a.split("."),d=Gh;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};Jh=function(a){return a&&0<=Hh[a]?Hh[a]:Ih};Mh=function(a){if(!a)return _.Kh("clpp.log",Pb+a+ca),-1;var b=Lh[a.toUpperCase()];return void 0===b?(_.Kh("clpp.log",Pb+a+ca),-1):b};_.J=function(a){(this.tag=a)&&void 0===Hh[a]&&(Hh[a]=-1)};_.Oh=function(a){Nh.info.apply(Nh,arguments)};
30
- _.Ph=function(a){Nh.debug.apply(Nh,arguments)};_.Kh=function(a){Nh.warn.apply(Nh,arguments)};_.Qh=function(a){Nh.error.apply(Nh,arguments)};Rh=function(a,b){this.lb=a;this.sourceIndex=b};_.Uh=function(a){if(a){var b=a.a();b in _.Sh?_.Th.warn("Player-Factory '"+b+"' already registered"):(_.Sh[b]=a,_.Th.info("Registered Player-Factory: '"+b+"'"))}};Vh=function(a){return Object.values(_.Sh).find(a)||null};_.Wh=function(a){this.f=a;this.a=null};
31
- Xh=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};_.Yh=function(a){this.f=a;this.a=null};Zh=function(a){return 0>=a?Promise.resolve():new Promise(function(b){setTimeout(function(){b()},1E3*a)})};$h=function(){this.Nc=null;this.f=[];this.h=[];this.Da=new _.J(rd);this.a=null;this.j=!1};ai=function(a){return[a.Nc].concat(_.hh(a.f)).filter(function(b){return null!=b})};
32
- ci=function(a,b){var c;_.H(function(d){c=function(){return Promise.all(a.f.filter(function(e){return null!=e.getLoadedSource()}).map(b))};return _.x(d,bi(a,c),0)})};di=function(a,b){var c;return _.H(function(d){c=function(){return Promise.all(ai(a).map(b))};return _.x(d,bi(a,c),0)})};bi=function(a,b){return _.H(function(c){if(1==c.a)return a.a?_.x(c,a.a,2):c.D(2);a.a=b().then(function(){a.a=null});_.z(c)})};_.ei=function(){this.a={}};fi=function(a,b,c,d){this.f=a;this.kd=b;this.a=c;this.ho=!!d};
33
- _.K=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};gi=function(a){this.a=new _.ei;this.f=a};_.hi=function(){this.a=new _.ei};
34
- ii=function(a,b,c){function d(h){for(var l=_.v(e),m=l.next();!m.done;m=l.next())a.off(b,m.value,d);c(h)}for(var e=[fe,"msneedkey",Yg,"needkey"],f=_.v(e),g=f.next();!g.done;g=f.next())a.on(b,g.value,d)};_.li=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)ki(c[b]);a.a.clear()};mi=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};ki=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
35
- ni=function(a){this.m=a;this.l=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.j=new _.hi;this.f=new Set;this.a=new Set;this.h=null;this.g=new _.J("clpp.native.Metadata")};pi=function(a,b){a.j.on(b,_.Bc,function(c){c=c.track;c.kind===_.Ke&&oi(a,c)})};
36
- oi=function(a,b){a.g.debug("onMetadataTrackAdded_()");b.mode=_.oe;var c=!b.cues||0===b.cues.length;if(a.m.isLive()||!c){var d=b.cues;c=qi(d);ri(c);a.a=si(c,a.l);0<a.a.size&&(ti(a,a.a),a.m.trigger(new _.K(_.rg)));a.j.on(b,_.Ld,function(){for(var e=a.m.getPosition(),f=_.v(a.a),g=f.next();!g.done;g=f.next()){var h,l=a;g=g.value;if(Infinity===g.endTime){if(h=!l.f.has(g)){h=g.startTime;var m=h+.5;h=h<=e&&e<=m}h&&(l.f.add(g),l.m.trigger(new _.K(_.pg,{detail:g})))}else h=g.startTime<=e&&e<=g.endTime,!h&&
37
- l.f.has(g)?(l.f["delete"](g),l.m.trigger(new _.K(_.qg,{detail:g}))):h&&!l.f.has(g)&&(l.f.add(g),l.m.trigger(new _.K(_.pg,{detail:g})))}});a.m.isLive()&&(a.h=setInterval(function(){if(b.cues){var e=a.m.getSeekRange().start;for(var f=[],g=_.v(b.cues),h=g.next();!h.done;h=g.next())h=h.value,h.endTime<e&&f.push(h);ui(a,b,f);0<f.length&&a.g.debug("Evicted "+f.length+" old cues.");g=_.v(a.a);for(h=g.next();!h.done;h=g.next())h=h.value,h.endTime<e&&a.a["delete"](h);e=0<f.length}else e=!1;vi(a,b);f=qi(d);
38
- var l=si(f,a.l);g=new Set;h=!1;l=_.v(l);for(var m=l.next();!m.done;m=l.next()){m=m.value;var n=wi(a,m);n?(m.customAttributes&&(n.customAttributes=_.L.ua(n.customAttributes||{},m.customAttributes)||void 0),h=!0):(a.a.add(m),g.add(m))}h=0<g.size||h;ri(f);(e||h)&&a.m.trigger(new _.K(_.rg));ti(a,g)},6E3))}};ti=function(a,b){for(var c=_.v(b),d=c.next();!d.done;d=c.next())a.m.trigger(new _.K(_.og,{detail:d.value}))};
39
- wi=function(a,b){return Array.from(a.a.values()).find(function(c){return b.startTime===c.startTime&&b.endTime===c.endTime})||null};vi=function(a,b){if(b.cues){var c=xi(b.cues).filter(function(l){return l.type===Dd}),d=c.filter(function(l){return l.Hg}),e=c.filter(function(l){return!l.Hg});c=[];e=_.v(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var g=_.v(d),h=g.next();!h.done;h=g.next())h=h.value,yi(f,h)&&(c.push(f),h.Qh=f.startTime)}ui(a,b,c);0<c.length&&a.g.debug("Removed "+c.length+" duplicated cues.")}};
40
- ui=function(a,b,c){c=_.v(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;try{b.removeCue(d)}catch(e){a.g.debug("Failed to remove cue",d,e)}}};yi=function(a,b){var c=a.endTime-a.startTime,d=b.endTime-b.startTime,e=a.Qh||a.startTime,f=b.Qh||b.startTime;return(Infinity===c&&Infinity===d||.01>Math.abs(c-d))&&.5>Math.abs(e-f)&&a.value.key===b.value.key&&a.value.data===b.value.data};
41
- Bi=function(a){var b=[],c={};a=_.v(a);for(var d=a.next();!d.done;c={Kd:c.Kd},d=a.next())c.Kd=d.value,(d=b.find(function(e){return function(f){var g=e.Kd;return f.startTime===g.startTime&&f.endTime===g.endTime}}(c)))?zi(c.Kd,d):(d=Ai(c.Kd),b.push(d));return b};Ai=function(a){var b=a.startTime,c=a.endTime;b={schemeIdUri:"",value:"",startTime:b,endTime:c,id:"T"+b.toFixed(2)+"-"+c.toFixed(2),type:_.Ci,eventElement:null};zi(a,b);return b};
42
- zi=function(a,b){if(a.key.startsWith("X-"))b.customAttributes||(b.customAttributes={}),b.customAttributes[a.key]=a.value,"X-CUSTOM-ID"===a.key&&(b.id=a.value);else if("SCTE35-OUT"===a.key||"SCTE35-IN"===a.key)b.schemeIdUri=_.Bg,b.type=_.Di};ri=function(a){a.forEach(function(b){b.Hg=!0})};qi=function(a){return xi(a).filter(function(b){return b.type===Dd&&!b.Hg})};xi=function(a){var b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next())b.push(c.value);return b};
43
- si=function(a,b){var c=a.map(function(d){return{startTime:d.startTime,endTime:d.endTime,key:d.value.key,value:d.value.data,xi:!1}});c=Ei(c);b&&(c=Fi(c));return new Set(Bi(c))};Ei=function(a){var b=new Set(a),c=new Set(a.filter(function(d){return"SCTE35-OUT"===d.key}).map(Gi));a.filter(function(d){return"SCTE35-IN"===d.key}).forEach(function(d){c.has(Gi(d))||(d.xi=!0)});return Array.from(b.values())};Fi=function(a){a.forEach(function(b){b.xi&&(b.endTime=b.startTime,b.startTime=0)});return a};
44
- Gi=function(a){return a.startTime+"-"+a.endTime};_.Hi=function(a){return Array.isArray(a)?a:[a]};Ii=function(a,b){return a===b?!0:a.length===b.length&&a.every(function(c,d){return c===b[d]})};Ki=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 Ji(a,b)&&Ji(b,a)};Ji=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};
45
- _.Li=function(a,b){b=void 0===b?{}:b;if(b.Lh){for(var c=[],d={},e=_.v(a),f=e.next();!f.done;d={Pe:d.Pe},f=e.next())d.Pe=f.value,c.some(function(g){return function(h){return b.Lh(g.Pe,h)}}(d))||c.push(d.Pe);return c}return Array.from((new Set(a)).values())};Mi=function(a,b){var c=new Set(a),d=new Set(b);return{io:a.filter(function(e){return!d.has(e)}),Cp:a.filter(function(e){return d.has(e)}),Lj:b.filter(function(e){return!c.has(e)})}};
46
- _.Ti=function(a,b,c,d){d=void 0===d?_.Ni:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.Oi;this.writingMode=_.Pi;this.lineInterpretation=_.Qi;this.line=null;this.lineAlign=_.Ri;this.direction=Si;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
47
- _.Wi=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.Ui;this.scroll=Vi;this.cssClassList=[];this.writingMode=this.displayAlign=null};Xi=function(a){this.m=a;this.l=a.getTextDisplayer();this.f=this.h=null;this.a=new _.hi;this.j=!1;this.g=new _.J("clpp.native.CueHandler")};
48
- Yi=function(a,b){var c=b.track;c.kind!==_.Ke&&(c.mode===_.Wf&&(c.mode=_.oe),a.a.on(c,_.Ld,function(d){d=d.target||d.srcElement;d.mode=_.oe;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.l.append(d,[]))}))};_.N=function(a,b,c,d,e){var f=Error.call(this,Zi(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||_.L.ja(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.N)};
49
- Zi=function(a,b,c,d){a=(a===_.O?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.L.ja(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};_.$i=function(a,b){var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=b};
50
- aj=function(a,b){var c=b||Ii,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,_.hh(h))}};_.bj=function(a){return null!=a};cj=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 _.$i("No non-null, non-undefined value found");};
51
- dj=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}};_.ej=function(a){var b;a instanceof _.ej?(fj(this,a.Fb),this.Tc=a.Tc,this.bb=a.bb,gj(this,a.Fd),this.Na=a.Na,_.hj(this,ij(a.a)),this.Gc=a.Gc):a&&(b=String(a).match(jj))?(fj(this,b[1]||"",!0),this.Tc=kj(b[2]||""),this.bb=kj(b[3]||"",!0),gj(this,b[4]),this.Na=kj(b[5]||"",!0),_.hj(this,b[6]||"",!0),this.Gc=kj(b[7]||"")):this.a=new _.lj(null)};
52
- fj=function(a,b,c){a.Fb=c?kj(b,!0):b;a.Fb&&(a.Fb=a.Fb.replace(/:$/,""))};gj=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};_.hj=function(a,b,c){b instanceof _.lj?a.a=b:(c||(b=mj(b,nj)),a.a=new _.lj(b))};kj=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};mj=function(a,b,c){return typeof a===_.fg?(a=encodeURI(a).replace(b,oj),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
53
- oj=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};_.lj=function(a){this.f=a||null};ij=function(a){var b=new _.lj;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};rj=function(a,b){for(var c=_.v(pj[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=_.v(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a===_.qj?"":null};
54
- _.tj=function(a,b){for(var c=sj[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===_.qj?"":null};_.wj=function(a,b,c){return a.map(function(d){d=_.uj(d)||"";return(d=_.vj[b][d])?d:b===_.qj?c&&"vtt"!==c?Jc:_.lg:null}).filter(Boolean)[0]||null};_.uj=function(a){a=(new _.ej(a)).Na.split(".");return 1>=a.length?null:a.pop()};_.xj=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};
55
- _.P=function(a,b,c,d){d=void 0===d?{}:d;a=a.getAttribute(b);if(!a&&d.required)throw new _.N(_.O,4,4023,"Required attribute missing: "+b);return a?a.value:c||null};_.yj=function(a,b){return _.P(a,b,void 0,{required:!0})};_.zj=function(a,b){this.name=a;this.value=b};
56
- _.Aj=function(a,b,c,d,e,f,g,h,l,m,n,p,q,t,u,y,A){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;t=void 0===t?[]:t;u=void 0===u?null:u;y=void 0===y?function(){return""}:y;this.position=a;this.startTime=b;this.endTime=c;this.Ha=g;this.La=d;this.la=e;this.ga=f;this.keyInfo=(void 0===h?null:h)||null;this.sd=_.L.R(l)?!1:!!l;this.timescale=m;this.horizontalTiles=n;this.verticalTiles=p;this.durationPerTile=q;this.a=t||[];this.h=!1;this.initSegment=u;this.ke=
57
- y?y:function(){return""};this.Ra=A};_.Bj=function(a,b,c,d,e,f,g,h,l,m,n,p,q,t,u){t=void 0===t?[]:t;_.Aj.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,t,void 0===u?null:u);this.qa=0};Cj=function(a){return"com.apple.hls.interstitial"===a||"com.apple.hls.overlay"===a};_.Ej=function(a,b){a=_.Dj(a);b=_.Dj(b);return a.split("-")[0]===b.split("-")[0]};
58
- _.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)};Hj=function(a){return a.reduce(function(b,c){return b+c},0)};_.Ij=function(a){if(typeof a!==_.fg)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:{me:a,Je:b,Eo:a*b}};_.Jj=function(a){this.f=a;this.a=0};
59
- _.Kj=function(a,b){b.lastIndex=a.a;var c=b.exec(a.f);c=null==c?null:{position:c.index,length:c[0].length,results:c};if(a.a===a.f.length||null===c||c.position!==a.a)return null;a.a+=c.length;return c.results};_.Lj=function(a,b){for(var c=_.v(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};Mj=function(){};
60
- Qj=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!==b.byteLength)return!1;if(Nj(a)===Nj(b)&&(a.byteOffset||0)===(b.byteOffset||0))return!0;for(var c=_.Oj(a),d=_.Oj(b),e=_.v(Pj(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!==d[f])return!1;return!0};_.Oj=function(a,b,c){c=void 0===c?Infinity:c;return Rj(a,void 0===b?0:b,c,Uint8Array)};Sj=function(a,b,c){c=void 0===c?Infinity:c;return Rj(a,void 0===b?0:b,c,Uint16Array)};
61
- Tj=function(a,b,c){c=void 0===c?Infinity:c;return Rj(a,void 0===b?0:b,c,Uint32Array)};_.Uj=function(a,b,c){c=void 0===c?Infinity:c;return Rj(a,void 0===b?0:b,c,Int32Array)};_.Vj=function(a,b,c){c=void 0===c?Infinity:c;return Rj(a,void 0===b?0:b,c,DataView)};Wj=function(a){return a instanceof ArrayBuffer?a:0===a.byteOffset&&a.byteLength===a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
62
- Rj=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=Nj(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)};Nj=function(a){return a instanceof ArrayBuffer?a:a.buffer};
63
- _.Xj=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;_.Q.startsWith(this.path,
64
- "/")||(this.path="/"+this.path);this.f=b.search;this.h=b.hash};_.Yj=function(a){return a.scheme+"//"+(a.a+(a.port?":"+a.port:"")+a.path+a.h+a.f)};_.Zj=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)},""):""};
65
- _.ak=function(a){var b={};a=a||"";a=a.substring(a.indexOf("?")+1);a=_.v(a.split("\x26"));for(var c=a.next();!c.done;c=a.next()){var d=c.value.split("\x3d");c=decodeURIComponent(d[0]);d=decodeURIComponent(d[1]||"");c&&(b[c]=d)}return b};_.bk=function(a,b){if(a.startsWith("http://")||a.startsWith(_.se))return a;var c=new URL(b);c.search="";return(new URL(a,c)).toString()};
66
- _.ck=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.N(_.O,4,4016,{invalidTag:b});var d=c[1],e=c[2];c=[];var f;if(e){e=new _.Jj(e);var g;(g=_.Kj(e,/^([^,=]+)(?:,|$)/g))&&g[1]&&(f=g[1].trim());for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.Kj(e,h);)c.push(new _.zj(g[1],g[2]||g[3]||""))}return new _.xj(a,d,c,f)};_.ek=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.hh(dk).concat()}};
67
- fk=function(a,b){a.timeout=b.timeout;a.baseDelay=b.baseDelay;a.backoffFactor=b.backoffFactor;a.fuzzFactor=b.fuzzFactor;a.maxAttempts=b.maxAttempts;a.fatalStatusCodes=b.fatalStatusCodes||_.hh(dk).concat()};gk=function(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b};
68
- _.ik=function(a,b){_.L.ja(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.hk,uriIndex:0,method:a.method||"GET",body:a.body||null,headers:Object.assign({},a.headers),allowCrossSiteCredentials:a.allowCrossSiteCredentials||!1,onProgress:a.onProgress||null,onFragment:a.onFragment||null,maxAttempts:a.maxAttempts||1,currentAttempt:0,baseDelay:a.baseDelay||1E3,backoffFactor:a.backoffFactor||2,fuzzFactor:a.fuzzFactor||.5,timeout:a.timeout||0,requestModifiers:a.requestModifiers||
69
- [],responseModifiers:a.responseModifiers||[],startTime:a.startTime||null,endTime:a.endTime||null,contentType:a.contentType||null,licenseRequestType:a.licenseRequestType||null,sessionId:null,bytesRemaining:-1,bytesLoaded:-1,bytesTotal:-1,timescale:a.timescale||null,rateLimitBps:a.rateLimitBps||null,disableFragmentSupport:a.disableFragmentSupport||!1,disableMergedFragments:a.disableMergedFragments||!1,fatalStatusCodes:_.hh(dk).concat(),requestStartTimestamp:null};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&
70
- fk(c,b);return c};_.mk=function(a,b,c,d,e,f,g,h){a={uri:e||d,data:b,headers:a,status:c,timeMs:g,responseStartMs:h,request:f};if(jk(c))return kk(a);throw lk(a);};jk=function(a){return 200<=a&&299>=a&&202!==a};kk=function(a){return{uri:a.uri,data:a.data||new ArrayBuffer(0),headers:a.headers,status:a.status,fromCache:!!a.headers["x-shaka-from-cache"],timeMs:a.timeMs,responseStartMs:a.responseStartMs,request:a.request}};
71
- lk=function(a){a=kk(a);try{var b=_.Q.ee(a.data,!0)}catch(d){b=null}_.Ph("HTTP error text:",b);var c=a.request;return new _.N(0<=(c?c.fatalStatusCodes||[]:[]).indexOf(a.status)?_.O:1,1,1001,{url:a.uri,status:a.status,responseText:b,headers:a.headers,request:a.request,response:a})};nk=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};
72
- ok=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};pk=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()};
73
- _.qk=function(){this.gj=this.Gf=this.done=!1;this.error=this.value=null;var a,b,c=new Promise(function(d,e){a=function(f){this.done=this.Gf=!0;this.value=f;d(f)};b=function(f){this.done=this.gj=!0;this.error=f;e(f)}});c.Gf=!1;c.done=!1;c.gj=!1;c.value=null;c.error=null;c.resolve=a;c.reject=b;return c};_.rk=function(a,b){this.T=a;this.A=b;this.a=!1};sk=function(a,b){a.T.then(function(){return b(!0)},function(){return b(!1)});return a};_.tk=function(){this.a=[]};
74
- _.uk=function(a,b){a.a.push(sk(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.Bk=function(){this.h=[];this.f=[];this.j=[];this.l=[];this.A=!1;this.w=new _.tk;this.a={};this.headers=new Map;this.o=0;this.a.data=vk;!window.fetch||!window.AbortController||_.wk(6)||_.xk()&&68<_.yk().browserVersion.major?(this.a.http=zk,this.a.https=zk):(this.a.http=Ak,this.a.https=Ak)};Ek=function(a,b){var c,d;return _.H(function(e){if(1==e.a)return c=_.Q,_.x(e,a.fetch(b),2);d=e.f;return e["return"](c.Ii(c.ea(d.data)))})};
75
- Fk=function(a,b){var c,d;return _.H(function(e){if(1==e.a)return _.x(e,Ek(a,b),2);c=e.f;if(!c)return e["return"](null);try{d=JSON.parse(c);if(null==d||typeof d!==_.Se)throw Error("Not an object");return e["return"](d)}catch(f){throw new _.$i("Failed to parse JSON response","json-failed");}})};
76
- Jk=function(a,b){if(a.A)return new Gk(Promise.reject(new _.N(1,1,7001,{url:b.uris[b.uriIndex],request:b})));a.o&&0<a.o&&(b.rateLimitBps=a.o);for(var c=[],d=_.v(a.h),e=d.next();!e.done;e=d.next())c.push(e.value);if(b.requestModifiers)for(d=_.v(b.requestModifiers),e=d.next();!e.done;e=d.next())c.push(e.value);b.requestModifiers=c;Hk(a,b);c=[];d=_.v(a.j);for(e=d.next();!e.done;e=d.next())c.push(e.value);if(b.responseModifiers)for(d=_.v(b.responseModifiers),e=d.next();!e.done;e=d.next())c.push(e.value);
77
- b.responseModifiers=c;c=e=new _.qk;try{d={};for(var f=_.v([{type:"public",modifiers:b.requestModifiers},{type:"internal",modifiers:a.f}]),g=f.next();!g.done;d={Se:d.Se},g=f.next()){d.Se=g.value;for(var h={},l=_.v(d.Se.modifiers),m=l.next();!m.done;h={Re:h.Re},m=l.next())h.Re=m.value,c=c.then(function(t,u){return function(y){if(n.a)throw new _.N(_.O,1,7001,y?{url:y.uris[y.uriIndex],request:y}:null);return"internal"===t.Se.type?u.Re(y,void 0)||y:u.Re(y)||y}}(d,h))["catch"](function(t){if(t instanceof
78
- _.N)throw t;throw new _.N(_.O,1,1006,null,t);})}c=c.then(function(t){return{request:t,plugin:Ik(a,t)}});var n=new Gk(c);f={};var p=_.v(b.responseModifiers);for(m=p.next();!m.done;f={Qe:f.Qe},m=p.next())f.Qe=m.value,n.then(function(t){return function(u){function y(){if(n.a)throw new _.N(_.O,1,7001,u?{url:u.request.uris[u.request.uriIndex],request:u.request}:null);}y();var A=t.Qe(u)||u;y();return A}}(f))["catch"](function(t){return function(u){if(u instanceof _.N&&u.data&&u.data.response){var y=t.Qe(u.data.response);
79
- if(y&&y.then)return y.then(function(){return Promise.reject(u)})}return Promise.reject(u)}}(f))["catch"](function(t){if(t instanceof _.N)throw t;throw new _.N(_.O,1,1007,null,t);});p={};var q=_.v(a.l);for(m=q.next();!m.done;p={Qf:p.Qf},m=q.next())p.Qf=m.value,n["catch"](function(t){return function(u){u instanceof _.N&&u.data&&u.data.response||t.Qf({uri:b.uris[b.uriIndex],data:(new Uint8Array(0)).buffer,status:-1,timeMs:0,headers:{},request:b});return Promise.reject(u)}}(p))["catch"](function(t){if(t instanceof
80
- _.N)throw t;throw new _.N(_.O,1,1007,null,t);});_.uk(a.w,n);e.resolve(b);return n}catch(t){return new Gk(Promise.reject(t))}};Kk=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.D(2);break}e=_.ik(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.D(g,4);return _.x(g,a.fetch(e).T,6);case 6:_.vh(g,2);break;case 4:if(f=_.F(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};
81
- Hk=function(a,b){for(var c=_.v(a.headers),d=c.next();!d.done;d=c.next()){var e=_.v(d.value);d=e.next().value;e=e.next().value;b.headers[d]||(b.headers[d]=e)}};Ik=function(a,b){var c=new _.ej(b.uris[b.uriIndex]),d=c.Fb;d||(d=location.protocol,d=d.slice(0,-1),fj(c,d),b.uris[b.uriIndex]=c.toString());var e=a.a[d];if(!e)throw new _.N(_.O,1,1E3,{url:c.toString()});return function(f){return e(f)}};
82
- _.Lk=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=[]};_.Mk=function(a){return a&&a!==_.xg?a:null};
83
- Pk=function(a){if(!a)throw new _.N(_.O,3,3101,Ya+a);if(!_.L.ja(a))throw new _.N(_.O,3,3101,Ya+a+". Track type must be a string!");switch(a.toLowerCase()){case _.S:return _.S;case _.T:return _.T;case _.Nk:return _.Nk;case Ok:return Ok}throw new _.N(_.O,3,3101,"Unknown track type: "+a+".");};
84
- Rk=function(a,b){a=Pk(a);var c=_.Mk(b.kind),d=b.id;d||(d=String(_.Qk++));d=new _.Lk(d,c===_.Ke?Ok:a);d.kind=c;d.label=_.Mk(b.label);d.language=_.Mk(b.language);d.originalLanguage=b.originalLanguage||d.language;return d};Sk=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};_.Tk=function(a,b){this.track=b;this.id=a;this.originalId=this.codec=this.Qd=this.bandwidth=this.height=this.width=null;this.a=!1};
85
- Uk=function(a){this.f=a;this.g=new _.J("clpp.native.hls.HlsMetadataParser");this.a=aj(this.h.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
86
- Xk=function(a,b,c){var d,e,f,g,h;return _.H(function(l){if(1==l.a)return _.x(l,Vk(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.Lk("dummy",_.Nk);h=f.map(function(m,n){var p=new _.Tk("R"+n,g);p.bandwidth=m.bandwidth;p.Qd=m.Qd;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});Wk(h);return l["return"]({renditions:h,mimeType:e||void 0})})};
87
- Zk=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return Yk(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};
88
- Yk=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.ck(0,a);a=b(_.Mb);a=null!=a?{AUDIO:_.T,VIDEO:_.Nk,SUBTITLES:_.S}[a]:void 0;return{type:a,groupId:b(_.Sa),name:b(_.hb),language:b(_.ab),ip:b("AUTOSELECT"),"default":b("DEFAULT"),tp:b("FORCED"),yh:b("CHARACTERISTICS"),uri:b(_.Ob)}};Wk=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.");};
89
- $k=function(a,b){var c,d;return _.H(function(e){if(1==e.a)return c=_.ik(b),_.x(e,Ek(a.f,c),2);d=e.f;return e["return"](d)})};Vk=function(a,b,c){var d,e,f,g;return _.H(function(h){if(1==h.a)return d=al(b),e=bl(b,c),f=d[0]?d[0].codec:null,_.x(h,dl(a,e,f),2);g=h.f;return h["return"]({mimeType:g,renditions:d})})};dl=function(a,b,c){var d,e;return _.H(function(f){if(1==f.a)return b&&c?_.x(f,$k(a,b),2):f["return"](null);d=f.f;e=[el(d,b),fl(d,b)].filter(Boolean);return f["return"](_.wj(e,_.Jg,c))})};
90
- al=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.ck(0,b);if(c.getAttribute(_.Vb))throw Error("Playlist contains alternative video streams.");var d=_.P(c,_.Bb);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.P(c,_.pa);e=e?Number(e):null;var f=_.P(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.P(c,_.ua);c=_.tj(_.Jg,c?c.split(","):[]);return{bandwidth:e,Qd:f,codec:c,width:b,height:d,mimeType:null}})};
91
- bl=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?_.bk(c,b):null};el=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?_.bk(c,b):null};fl=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.P(_.ck(0,c),_.Ob))?_.bk(c,b):null:null};
92
- _.hl=function(a,b,c){for(var d=_.v(_.gl),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.il=function(a){a=_.gl.indexOf(a);0<=a&&_.gl.splice(a,1)};_.jl=function(){};ml=function(a,b){var c=kl;ll.set(a.toLowerCase().split(";")[0]+"-"+c,{priority:c,plugin:b})};_.ql=function(a,b){for(var c=_.v([nl,ol,pl,kl]),d=c.next();!d.done;d=c.next())if(d=ll.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};
93
- _.rl=function(a,b){var c=a;b&&(c+=';codecs\x3d"'+b+'"');return c.replace(/\s/g,"")};_.sl=function(a){return a.split(";")[0]};_.tl=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(","):""};ul=function(){};_.vl=function(){return!!navigator.userAgent.match(/Edge?\//)};_.wk=function(a){return _.wl("Tizen"+(a?" "+String(a):""))};_.xk=function(){return _.wl("Web0S")};
94
- _.yl=function(){return _.xk()&&79===_.xl().major};_.zl=function(){return _.wl("CrKey")};_.Al=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.wk()};_.Bl=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.Al()&&1<navigator.maxTouchPoints};_.Cl=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};_.wl=function(a){return(navigator.userAgent||"").includes(a)};
95
- Fl=function(){if(Dl)return Dl;El||(El=new _.Yh(function(){Dl=null}));(Dl=document.querySelector(_.Jg)||document.querySelector(_.Pc))||(Dl=document.createElement(_.Jg));El.ha(1);return Dl};Hl=function(a,b){try{return parseInt(b,10)}catch(c){Gl.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
96
- Il=function(a){var b={major:-1,name:_.yg};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=Hl(a,c[0]));2<=c.length&&(b.minor=Hl(a,c[1]));3<=c.length&&(b.patch=Hl(a,c[2]));4<=c.length&&(b.build=Hl(a,c[3]));return b};Jl=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};
97
- Tl=function(){var a=Kl();if(!a)return Ll;var b=a.match(/^.+?(?=\))/);if(!b)return Ll;b=b[0];if(Jl(b,["iphone","ipad"]))return Ml;if(Jl(b,["android"]))return Nl;if(Jl(b,["macintosh"]))return Ol;if(Jl(b,["windows nt"]))return Pl;if(Jl(b,["tizen"]))return Ql;if(Jl(b,["web0s"]))return Rl;if(Jl(b,["linux"]))return Sl;Gl.warn("Unable to identify OS from user agent: "+a);return Ll};
98
- _.xl=function(){var a=Kl(),b=["ie","edge","opera","firefox","safari",ld];var c=Tl();for(var d=Ul[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return Il(c[1]);return Il("")};Kl=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
99
- _.yk=function(){var a=Tl();var b=Tl();var c=Ul[b];if(c){c=Kl().match(c.os_version)[1];c=Il(c);if(b===Pl)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=Il("");a:{c=Kl();var d=["ie","edge","opera","firefox","safari",ld],e=Tl();e=Ul[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=Vl}return{os:a,osVersion:b,browser:c,browserVersion:_.xl()}};
100
- Wl=function(){this.g=new _.J("clpp.native.TrackManager");this.m=null;this.f=new _.hi;this.h=[];this.B=0;this.o={};this.F=[];this.a=new Map;this.w=null;this.l=new Map;this.A=!0;this.J=this.Cg.bind(this,_.S);this.L=this.Eg.bind(this,_.S);this.K=this.Dg.bind(this,_.S);this.N=this.Cg.bind(this,_.Nk);this.S=this.Eg.bind(this,_.Nk);this.P=this.Dg.bind(this,_.Nk);this.G=this.Cg.bind(this,_.T);this.I=this.Eg.bind(this,_.T);this.H=this.Dg.bind(this,_.T);this.j=null};
101
- Yl=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=_.hl(c,b.mimeType,_.lg);if(!d)return a.g.warn("Track MIME type is not supported",b),n["return"]();e=_.ik(b.url);return _.x(n,a.m.getNetworkEngine().fetch(e).T,2)}(f=n.f)&&f.data&&(g="External_"+a.B++,a.o[g]=b,h=d.a(_.Oj(f.data)),l=URL.createObjectURL(new Blob([h])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.lg},Xl(a,m,g));_.z(n)})};$l=function(a,b,c){return Zl(a)&&b===_.Nk&&!!c.enableHlsVideoTrackInfo};
102
- am=function(a,b,c){return Zl(a)&&(b===_.T||b===_.S)&&!!c.enableMetadata};Zl=function(a){a=a.m.getLoadedSource();return!(!a||a.type!==_.bm&&!a.url.endsWith(".m3u8"))&&_.Al()};cm=function(a,b,c){var d,e;return _.H(function(f){if(1==f.a)return(d=a.m.getLoadedSource())&&a.j?_.x(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}));_.z(f)})};
103
- dm=function(a,b,c){var d,e,f,g;return _.H(function(h){if(1==h.a)return(d=a.m.getLoadedSource())&&a.j?_.x(h,a.j.a(d.url,c),2):h["return"]();e=h.f;e.Pc&&(f=b.type+":"+b.label,(g=e.Pc.get(f))&&g.yh&&(b.accessibility=g.yh.split(",").map(function(l){return l.trim()}).map(function(l){return{value:l,type:b.type,protocol:"HLS"}})));_.z(h)})};
104
- Xl=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);_.Q.empty(b.url)?e.src=URL.createObjectURL(new Blob([])):e.src=b.url;d.appendChild(e);a.F.push(e)}}};em=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 _.T:return c.audioTracks;case _.Nk:return c.videoTracks;case _.S:return c.textTracks;default:return null}};
105
- fm=function(a,b){var c=em(a,b);c&&(c=Array.from(c),b===_.S&&(c=c.filter(function(d){return d.kind!==_.Ke})));return c};gm=function(a,b){return a.h.filter(function(c){return c.type===b})};hm=function(a,b){var c=a.a.get(b)||null;return c&&c.renditions[0]};im=function(a,b){var c=a.l.get(b);return c&&c.renditions[0]};
106
- km=function(a,b,c){var d=fm(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 _.S:var g="mode";e=_.Wf;f=_.Od;break;case _.T:g="enabled";break;case _.Nk:g="selected"}if(g){d=_.v(d);for(var h=d.next();!h.done;h=d.next())h=h.value,h[g]=jm(c,h,c.type)?e:
107
- f}}}else if(a.g.debug("Disable track type "+b),a.a.get(b)&&d&&b===_.S){g=_.v(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.Od;a.a.set(b,null)}b===_.T?a.m.trigger(new _.K(_.Wc)):b===_.S&&a.m.trigger(new _.K(_.ng))};lm=function(a){return a.enabled||a.selected||a.mode===_.Wf||a.mode===_.oe};
108
- mm=function(a,b,c){c=_.Hi(c).filter(function(e){return e});a.g.info("Find preferred tracks for",b,c);var d=gm(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),km(a,b,e),!0):!1})};nm=function(a){(a=a.m.getTextDisplayer())&&a.remove(0,Infinity)};
109
- jm=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.L.ra(a,{kind:_.Mk(b.kind),language:_.Mk(b.language),label:_.Mk(b.label)},["kind","language","label"])};_.om=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.pm=function(){this.ce=new gi(this);this.$d=[]};rm=function(a){return a.name===pb&&qm.some(function(b){return a.message.startsWith(b)})};sm=function(){};
110
- _.wm=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.Bl()&&(a=360);var b=_.ek();b.maxAttempts=3;a={source:"",license:tm,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,ads:{hls:{enable:!0,resolutionOffsetSec:35}},manifest:{attemptParameters:_.ek(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0,timeline:{version:1,type:void 0}},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,
111
- bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,restrictions:um(a),useCmsd:!0},contentSteering:{enabled:!0,attemptParameters:_.ek()},drm:null,cmcd:{enabled:!1,version:1,rtpSafetyFactor:5},enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:_.Ge,preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],preferSpatialAudio:!1,preferForcedSubtitles:!1,volume:null,startTime:null,loop:!1,lowLatencyMode:!1,suggestedPresentationDelay:void 0,
112
- muted:void 0,forceWaitForTracks:!1,xmlParser:_.vm,streaming:{attemptParameters:b,bufferingGoal:10,rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,relativeTextTimestamp:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.1,disableAudioTracks:!1,disableVideoTracks:!1,smallGapLimit:.5,jumpLargeGaps:!0,gapTolerance:.001,durationBackoff:1,maxSegmentToMediaOffset:1,forceNativeTS:!1,preferNativeHlsOnSafari:!0,safeSeekOffset:5,stallEnabled:!0,stallThreshold:3,stallSkip:.5,
113
- bufferLimitUpdateInterval:.5,overridePasp:!1,enableLiveEdgeChasing:!1,chasingRate:1.15,startChasingAt:5,stopChasingAt:2,chaseJumpDistance:10,patchEdgeWhenMixedContent:!1,ignoreDrift:!1,disableFragmentSupport:!1,disableMergedFragments:!1,ignoreManagedMediaSourceStreamingHints:!1},mediaSource:{codecSwitchingStrategy:_.Bf},restrictions:um(),tizen:{sideStreamText:_.wk(2)},safari:{enableHlsVideoTrackInfo:!1,enableMetadata:!1},mse:{sendPlaybackSessionIdHeader:!1},trickPlay:{speedUpMode:_.Md,preferTrickPlayTracks:!0},
114
- playlist:{timeline:"basic",content:_.Wb,cropTimeline:!1},yospace:{enabled:!1},cmsd:{enabled:!0},mediatailor:{enabled:!1,sessionConfig:{}},disableRestrictions:!1};if(_.wk()||_.xk())a.ads.hls.enable=!1;if(_.wl("Edge/")||_.wk())a.streaming.gapDetectionThreshold=.5;_.xk()&&(a.streaming.stallEnabled=!1);_.yl()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.wk()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=
115
- 0);a.vr={enable:!1,attachMouseListener:!0,fieldOfView:70,sensitivity:1,invertHorizontalControl:!1,invertVerticalControl:!1};return a};
116
- _.ym=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(!b)return _.wm();c=[_.wm()];var d=!1;b=_.v(b);for(var e=b.next();!e.done;e=b.next())e=e.value,null!==e&&void 0!==e&&(_.L.ja(e)&&(e={source:e}),e.lowLatencyMode&&!d&&(c.push({streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{lowLatencyMode:!0}}),d=!0),c.push(e),null!=e.suggestedPresentationDelay&&
117
- c.push({manifest:{suggestedPresentationDelay:e.suggestedPresentationDelay}}));c=_.L.ua.apply(null,c);_.L.ja(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.L.R(c.volume)&&(!_.L.ya(c.volume)||_.L.isNaN(c.volume)))throw new _.N(_.O,7,7100,"config.volume is not a number");if(!_.L.R(c.preferredTextLanguage)&&!_.L.ja(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.N(_.O,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.L.R(c.preferredAudioLanguage)&&
118
- !_.L.ja(c.preferredAudioLanguage)&&!Array.isArray(c.preferredAudioLanguage))throw new _.N(_.O,7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.L.R(c.preferredAudioCodec)&&!_.L.ja(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.N(_.O,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.L.R(c.preferredVideoCodec)&&!_.L.ja(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.N(_.O,7,7100,"config.preferredVideoCodec is not a string or an array");
119
- if(!_.L.R(c.drm)){if(c.drm.env&&!_.L.ja(c.drm.env))throw new _.N(_.O,7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.L.ja(c.drm.offlineId))throw new _.N(_.O,7,7100,"config.drm.offlineId is not a string");}if(d=c.streaming){d.bufferingGoal=Number(d.bufferingGoal);d.rebufferingGoal=Number(d.rebufferingGoal);d.bufferBehind=Number(d.bufferBehind);d.smallGapLimit=Number(d.smallGapLimit);d.durationBackoff=Number(d.durationBackoff);if(!_.L.ya(d.bufferingGoal)||_.L.isNaN(d.bufferingGoal))throw new _.N(_.O,
120
- 7,7100,"config.streaming.bufferingGoal is not a number");if(!_.L.ya(d.rebufferingGoal)||_.L.isNaN(d.rebufferingGoal))throw new _.N(_.O,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.N(_.O,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.L.ya(d.bufferBehind)||_.L.isNaN(d.bufferBehind))throw new _.N(_.O,7,7100,"config.streaming.bufferBehind is not a number");if(!_.L.ya(d.smallGapLimit)||_.L.isNaN(d.smallGapLimit))throw new _.N(_.O,
121
- 7,7100,"config.streaming.smallGapLimit is not a number");if(!_.L.ya(d.durationBackoff)||_.L.isNaN(d.durationBackoff))throw new _.N(_.O,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.L.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.k)throw new _.N(_.O,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");xm(c.restrictions);xm(c.abr.restrictions);c.abr.initialRestrictions&&xm(c.abr.initialRestrictions)}return c};
122
- um=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}};
123
- xm=function(a){_.L.R(a.maxPixels)&&(a.maxPixels=Infinity);_.L.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.L.R(a.maxHeight)&&(a.maxHeight=Infinity);_.L.R(a.maxWidth)&&(a.maxWidth=Infinity);_.L.R(a.minPixels)&&(a.minPixels=0);_.L.R(a.minBandwidth)&&(a.minBandwidth=0);_.L.R(a.minHeight)&&(a.minHeight=0);_.L.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);
124
- 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 _.N(_.O,7,7100,"Restrictions contain NaN");};zm=function(a){return typeof a===_.Se&&!Array.isArray(a)&&"source"in a};
125
- _.Am=function(a){_.pm.call(this);this.log=new _.J(a);this.configuration=this.jb=_.wm();this.ba=this.F=null;this.ve=this.Yg=!1;this.ih=new _.J("clpp.video.events");this.Sd=null;this.lf=-1;this.yj=this.fo.bind(this);this.Ug=new _.Bk;this.N=new _.hi;this.Lg=this.dd=this.td=this.P=null};_.Cm=function(a){return _.Bm.get(a)||null};_.Em=function(a){_.Bm.get(a.id())?Dm.warn("Component already in use."):_.Bm.set(a.id(),a)};
126
- Fm=function(a){return Array.from(_.Bm.values()).find(function(b){return b instanceof a})||null};Gm=function(a){for(var b=_.v(_.Bm.values()),c=b.next();!c.done;c=b.next())a(c.value)};Hm=function(a){Gm(function(b){b.o(a)})};Im=function(a){Gm(function(b){b.h(a)})};Jm=function(){Gm(function(){})};Km=function(){Gm(function(){})};Lm=function(a){if(null!==Fm(a))return null;a=new a;a.f();_.Em(a);Dm.info("Installed component:",a.id());return a};
127
- Mm=function(a){if(a=Fm(a))a.a(),_.Bm["delete"](a.id()),Dm.info("Uninstalled component:",a.id())};Nm=function(){};_.Pm=function(a,b){b=void 0===b?!0:b;var c=_.Om(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")};_.Qm=function(a){a=window.atob(a.replace(/-/g,"+").replace(/_/g,"/"));for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b};
128
- _.Rm=function(a){for(var b=new Uint8Array(a.length/2),c=0;c<a.length;c+=2)b[c/2]=window.parseInt(a.substr(c,2),16);return b};_.Sm=function(a){for(var b="",c=0;c<a.length;++c){var d=a[c].toString(16);1===d.length&&(d="0"+d);b+=d}return b};_.Tm=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.length!==b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!==b[c])return!1;return!0};
129
- _.Um=function(a){for(var b=0,c=0;c<arguments.length;++c)b+=arguments[c].length;b=new Uint8Array(+b);for(var d=c=0;d<arguments.length;++d)b.set(arguments[d],c),c+=arguments[d].length;return b};_.Om=function(a){a=_.Q.fromCharCode(_.Oj(a));return btoa(a)};Vm=function(){this.a=this.f=null;this.g=new _.J("clpp.drm.csl")};Wm=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[$g]=a.f),a.a&&(b.headers[ah]=a.a))};
130
- Xm=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[$g];a.a=b.headers[ah];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(_.Q.ea(_.Qm(c))),{delay:c.renewalPeriod,ep:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};_.Zm=function(a){_.Ym[a.J]=a};
131
- _.an=function(a){var b={attemptParameters:_.ek(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,ignoreUnrecognizedInitData:!0,Qa:{},widevineVersion:_.Gd};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!==
132
- a.ignoreUnrecognizedInitData&&(b.ignoreUnrecognizedInitData=!!a.ignoreUnrecognizedInitData),typeof a.widevineVersion===_.fg&&0<a.widevineVersion.length&&(b.widevineVersion=a.widevineVersion),a.env)){var c=_.Ym[a.env]||null;if(!c)throw _.Ph(_.Ea,_.xb+a.env+_.aa),new _.N(_.O,6,6015,_.Fa+a.env+"' is missing.");b.Qa=_.$m(c,a.customData)||{};_.Q.startsWith(a.env.toLowerCase(),ce)&&(b.enforceSingleSession=!0)}return b};
133
- cn=function(a){a=bn[a];if(!a)return null;var b=_.yk();return b.os===Nl&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.dn=function(a){this.J=a;this.f={}};
134
- _.$m=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[_.Gd];g&&(c[_.Gd]={licenseUrl:g.licenseUrl,videoRobustness:dj(d,g.videoRobustness),audioRobustness:dj(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:cj(b?b.widevineDistinctiveIdentifierRequired:void 0,g.distinctiveIdentifierRequired,!1),persistentStateRequired:cj(b?b.widevinePersistentStateRequired:void 0,g.persistentStateRequired,!1),
135
- serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.fg?cn(f):f});(g=a.f[_.Cd])&&(c[_.Cd]={licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.f[_.Ed])&&(c[_.Ed]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});
136
- return c};_.en=function(a,b){b=void 0===b?!1:b;this.f=_.L.ya(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.h=b;this.buffer=this.f.buffer};_.gn=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.Oj(a.f.buffer);b=_.Oj(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.fn()}};_.V=function(a,b){try{a.f.setUint32(a.a,b,a.h),a.a+=4}catch(c){_.fn()}};_.fn=function(){throw new _.N(_.O,3,3E3);};_.hn=function(a,b){this.f=a;this.h=void 0===b?!0:b;this.a=0};_.jn=function(a){return a.a<a.f.byteLength};
137
- _.ln=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.kn()}};_.mn=function(a){try{var b=a.f.getUint16(a.a,a.h);a.a+=2;return b}catch(c){_.kn()}};_.nn=function(a){try{var b=a.f.getUint32(a.a,a.h);a.a+=4;return b}catch(c){_.kn()}};_.on=function(a){try{var b=a.f.getInt32(a.a,a.h);a.a+=4;return b}catch(c){_.kn()}};
138
- _.pn=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){_.kn()}if(2097151<c)throw new _.N(_.O,3,3001);a.a+=8;return c*Math.pow(2,32)+b};qn=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.ln(a);return c};_.rn=function(a,b){a.a+b>a.f.byteLength&&_.kn();var c=a.a+a.f.byteOffset;c=a.f.buffer.slice(c,c+b);a.a+=b;return _.Oj(c)};
139
- _.kn=function(){throw new _.N(_.O,3,3E3,"Buffer read out of bounds.");};_.sn=function(){this.h=[];this.f=[];this.a=!1;this.g=new _.J("clpp.mp4")};_.tn=function(a){for(;_.jn(a.reader)&&!a.parser.a;)a.parser.Bf(a.start+a.headerSize,a.reader,a.partialOkay)};_.un=function(a){for(var b=_.nn(a.reader);0<b&&!a.parser.a;--b)a.parser.Bf(a.start+a.headerSize,a.reader,a.partialOkay)};_.vn=function(a){return function(b){var c=b.reader.Va()-b.reader.getPosition();a(_.rn(b.reader,c))}};
140
- wn=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.xn=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.yn=function(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)};zn=function(){};An=function(a){var b="";try{b=_.Q.ee(a)}catch(c){}return b};_.Bn=function(a){a=An(a);var b="";a.length&&(b=(new _.Xj(a)).a);return b};
141
- Cn=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.Q.ea(a)),d=_.Qm(c.sinf[0]);(new _.sn).M(_.Zf,_.tn).M("schi",_.tn).M("tenc",function(e){e.reader.skip(6);_.ln(e.reader)&&(e.reader.skip(1),b=_.Sm(_.rn(e.reader,16)));e.parser.stop()}).parse(d)}catch(e){}return b};
142
- Dn=function(a,b,c){if(!c||!c.byteLength)throw new _.N(_.O,6,6102);var d;typeof b===_.fg?d=_.Q.Kf(b,!0):d=b;a=_.Q.Kf(An(a),!0);b=new _.en(12+a.byteLength+d.byteLength+c.byteLength,!0);_.V(b,a.byteLength);_.gn(b,_.Oj(a));_.V(b,d.byteLength);_.gn(b,_.Oj(d));_.V(b,c.byteLength);_.gn(b,_.Oj(c));return _.Oj(b.buffer)};_.En=function(a){var b=_.Oj(a.body);b=_.Pm(b);a.headers[Aa]=Oc;a.body=_.Q.hb("spc\x3d"+b).buffer};
143
- _.Fn=function(a){try{var b=_.Q.ea(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=Wj(_.Qm(b))};
144
- Ln=function(){var a=Gn;if(a===Hn)return"https://lic.drmtoday.com";if(a===In)return"https://lic.staging.drmtoday.com";if(a===Jn)return"https://lic-demo.staging.drmtoday.com";if(a===Kn)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};Qn=function(a){var b=Ln();if(a===_.Gd)return b+Mn;if(a===_.Ed)return b+On;if(a===_.Cd)return b+Pn;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
145
- Rn=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
146
- _.Tn=function(a,b,c){b=An(b);c=c&&c.customData?c.customData:{};b=new _.Xj(Rn(b));var d=_.ak(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.Q.tf(""+a)&&(d.assetId=a,Sn.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.Q.tf(""+e)&&(d.variantId=e,Sn.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],Sn.debug("KeyId found in FPS SKD. Removing other parameters")):
147
- a=["assetId","variantId"];b.f=_.Zj(d,!1,a);"/"!==b.path||b.j.includes(b.a+"/")||(b.path="");b=_.Yj(b);return c.fpsContentId=b};_.Vn=function(a,b,c,d){d=void 0===d?!0:d;c=a.drm;c&&c.env.startsWith(Ha)?c.customData&&(_.Un(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)):Sn.warn(ib)};
148
- Wn=function(a,b,c){_.Vn(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.ej(b.uris[0]);c.a.add(_.df,a);b.uris[0]=c.toString()};
149
- _.Xn=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.Vn(a,b,c,!1);b.headers[Aa]=Oc;c={spc:_.Om(b.body)};if((a=a.drm)&&a.env.startsWith(Ia)&&d){a={};var e=_.ak((new _.Xj(Rn(d))).f);d=e.keyId;if(e=e.assetId)Sn.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(Sn.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(Sn.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(Sn.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
150
- _.Q.Hd(_.Zj(c,!0))};_.Yn=function(a,b){Sn.debug("Clearing response data");if(200===b.status){var c=_.Q.ea(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.Qm(c).buffer}};_.Zn=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(Ha))Sn.warn(ib);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(Ia)){var d=new _.ej(b.uris[0]),e=d.Na;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.Na=e;b.uris[0]=d.toString()}};
151
- _.$n=function(a,b){try{var c=_.Oj(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));Sn.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){Sn.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};
152
- _.Un=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};_.L.Jc(d)&&(a.headers["dt-custom-data"]=btoa(JSON.stringify(d)));(c=c.customData.authToken)&&(a.headers["x-dt-auth-token"]=c)}};bo=function(a){var b={},c=a?a[bh]:void 0;a=ao[a?a[bh]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};
153
- co=function(a){a=a["x-dt-li"];if(!a)return null;try{var b=JSON.parse(atob(a));a={};b.ti&&(a.requestId=b.ti);b.rpd&&(a.delay=Number(b.rpd)/1E3);return a}catch(c){return Sn.warn("Unable to parse DRMtoday License Info header (x-dt-li)",c),null}};_.eo=function(a){this.f=a;this.a=void 0};fo=function(){this.size=0;this.a=void 0;this.g=new _.J("clpp.drm.eme.MediaKeyStatusMap")};go=function(a,b){a.size=void 0===b?0:1;a.g.debug("Setting key status to",b);a.a=b};
154
- io=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=ho.value().get(b),c.one(a,b,d))};jo=function(){this.a=this.f=null};
155
- ko=function(a,b){this.keySystem=a;if(a.startsWith(_.Cd))for(var c=_.v(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.Nf)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.$e,distinctiveIdentifier:_.$e,initDataTypes:e.initDataTypes,sessionTypes:[kg],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=_.v(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])&&
156
- (d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.v(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,_.Mg));d=g?d:null}if(d){this.a=d;return}}c=Error(Sb);c.name=qb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
157
- lo=function(a){this.f=null;this.h=new WebKitMediaKeys(a);this.a=new _.hi;this.j=0;this.g=new _.J(ud);this.g.info("Created Media Keys for "+a)};
158
- mo=function(a,b){a.f=b;_.li(a.a);if(!b)return Promise.resolve();a.a.on(b,fe,function(c){_.Ph("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,Yg,function(c){a.g.debug("Handle webkitNeedKey event");c=_.Oj(c.initData);if(_.Vj(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
159
- c=_.Q.Hc(c.subarray(4),!0);c=_.Q.hb(c);var d=new Event(fe);d.initDataType="skd";d.initData=Wj(c);a.f.dispatchEvent(d)});io(b,HTMLMediaElement.HAVE_METADATA,a.a,function(){return b.webkitSetMediaKeys(a.h)});return Promise.resolve()};no=function(a,b){_.pm.call(this);this.a=null;this.o=a;this.f=this.h=null;this.j=new _.hi;this.sessionId=b;this.expiration=NaN;this.closed=new _.qk;this.l=!1;this.keyStatuses=new fo;this.g=new _.J(ud)};oo=function(a,b){go(a.keyStatuses,b);a.dispatchEvent(new _.K(ve))};
160
- po=function(){};qo=function(){this.a=null;this.g=new _.J("clpp.drm.eme.StandardEmeManager")};ro=function(){};so=function(){this.f=this.a=null;this.h="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.h="webkit")};
161
- to=function(a,b,c,d){this.h=a;this.a=this.keySystem=c;a=!1;c===_.af&&(this.a=Ug,a=!1);var e=!1;d=_.v(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=_.v(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=_.v(f.videoCapabilities),n=g.next();!n.done;n=g.next())m=n.value,m.contentType&&(l=!0,b.canPlayType(m.contentType,
162
- this.a)&&(h.push(m),e=!0));l||(e=b.canPlayType(_.Mg,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.Nf||a||(e=!1);if(e){this.f=f;return}}b=Sb;if(c===_.af||c===_.Gd)b="None of the requested configurations were supported.";c=Error(b);c.name=qb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};uo=function(a,b){this.h=a;this.o=b;this.a=null;this.f=new _.hi;this.j=[];this.l=new Map};
163
- xo=function(a,b){a.a=b;_.li(a.f);b&&(a.f.on(b,a.h+"needkey",function(c){var d=new Event(fe);d.initDataType=_.hd;d.initData=Wj(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.h+"keymessage",function(c){var d=vo(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.K(_.Je,{messageType:e?ye:xe,message:c.message});_.Ph("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.Qh("Session not found",c.sessionId)}),a.f.on(b,a.h+"keyadded",function(c){(c=
164
- vo(a,c.sessionId))&&c.ready()}),a.f.on(b,a.h+"keyerror",function(c){var d=vo(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?wo(d,_.bf):1===e?wo(d,"expired"):wo(d,_.ue))}}))};
165
- vo=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};yo=function(a,b,c,d){_.pm.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 _.qk;this.keyStatuses=new fo};
166
- Ao=function(a,b,c){if(a.o)return Promise.reject(Error("The session is already initialized."));a.o=!0;try{if(a.l===_.ef)if(c)var d=_.Oj(_.Q.hb("LOAD_SESSION|"+c));else{var e=_.Q.hb("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.Oj(b),e.byteLength);d=f}else d=_.Oj(b)}catch(h){return Promise.reject(h)}a.f=new _.qk;var g=zo(a,"generateKeyRequest");try{a.j[g](a.h,d)}catch(h){if(h.name!==Za)return a.f=null,Promise.reject(h);(new _.Yh(function(){try{a.j[g](a.h,d)}catch(l){a.f.reject(l),
167
- a.f=null}})).ha(.01)}return a.f};Bo=function(a,b,c){if(a.a)a.a.then(function(){return Bo(a,b,c)})["catch"](function(){return Bo(a,b,c)});else{a.a=b;if(a.h===Ug){var d=_.Q.ea(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=_.Qm(e.keys[0].k);e=_.Qm(e.keys[0].kid)}else d=_.Oj(c),e=null;var f=zo(a,"addKey");try{a.j[f](a.h,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};wo=function(a,b){go(a.keyStatuses,b);a.dispatchEvent(new _.K(ve))};
168
- zo=function(a,b){return a.w?a.w+b.charAt(0).toUpperCase()+b.slice(1):b};Co=function(){};Do=function(){};Eo=function(){};Fo=function(){};Io=function(a,b){var c=Go;if(a){var d=c.find(function(e){return e.a()===a});if(d)return Ho.info($b+d.a()),d.create();Ho.info("Cannot create selected EME manager, falling back to the default.")}if(b&&(d=c.find(function(e){return e.a()===b})))return Ho.info($b+d.a()),d.create();c=c[0];if(!c)throw Error("Missing EME managers.");Ho.info($b+c.a());return c.create()};
169
- _.Jo=function(){};Qo=function(a,b,c){this.j=new Uint8Array(a);this.a=b;this.f=c};Ro=function(){Qo.apply(this,arguments)};_.To=function(a){var b=_.Rm(a);b=parseInt(b.byteLength,10).toString(16);b=_.Rm("12"+b+a);return new Ro(So,a,b)};
170
- _.Uo=function(a){function b(t){switch(t){case 0:do if(!_.jn(d))throw Error("not enough data to skip!");while(_.ln(d)&128);break;case 1:d.skip(8);break;case 2:d.skip(c());break;case 3:for(;4!==(t=c()&7);)b(t);break;case 5:d.skip(4);break;default:throw Error("invalid wire type "+t);}}function c(){for(var t=_.ln(d),u=(t&127)>>>0,y=7;128<=t&&28>=y;)t=_.ln(d),u=(u|(t&(28>y?127:15))<<y)>>>0,y+=7;return 28<y?-1:u}var d=new _.hn(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.nn(d);var e=_.nn(d);
171
- e=_.xn(e);var f=_.nn(d),g=f>>>24;f&=16777215;var h=_.rn(d,16);h=_.Sm(h);if(0<g){var l=_.nn(d);d.skip(16*l)}l=_.nn(d);for(var m=[],n=null;_.jn(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=qn(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.Ph("Parsed WV PSSH Box","size",a,"name",e,Fg,g,"flags",f,"size",l,"systemId",h,"contentId (base64)",n?_.Om(n):"","keyIds",m.map(function(t){return _.Sm(t)}));return 0<m.length?_.To(_.Sm(m[0])):null};
172
- _.Vo=function(a,b,c,d,e,f){f=void 0===f?null:f;Qo.call(this,a,b,d);this.version=e;this.h=c;this.l=f};
173
- _.ap=function(a){var b=_.Wo;a:{var c=new _.hn(new DataView(a.buffer),!0);_.nn(c);for(_.mn(c);_.jn(c);)if(1===_.mn(c)){var d=_.mn(c);c=_.rn(c,d);break a}c=null}c||(c=a);a=_.Q.Hc(c,!0);d=b.Be(a,"WRMHEADER");a=d.getAttribute(Fg)||"";d=b.Ka(d,"DATA");var e=b.Ka(d,"LA_URL");b=e?b.sa(e):"";e=_.Wo;var f=e.Ka(d,"KID");if(f)if(f=e.sa(f)){var g=e.Ka(d,sa);e=g?e.sa(g):null;e={value:f,cg:e}}else e=null;else e=null;d=e?[e]:(e=Xo(d))?[e]:(d=Yo(d))?d:null;e=d&&d[0]||{};d=e.cg;e=_.Qm(void 0===e.value?"":e.value);
174
- e=_.Zo(e);e=_.Sm(e);return new _.Vo(_.$o,e,b,c,a,d)};_.Zo=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=_.Oj(a);a.set(b,0);return a};Xo=function(a){var b=_.Wo;a=b.Ka(a,"PROTECTINFO");if(!a)return null;var c=b.Ka(a,"KID");if(!c)return null;b=c.getAttribute("VALUE");if(!b)return null;a=c.getAttribute(sa);c=c.getAttribute("ALGID");return{value:b,cg:a,Nj:c}};
175
- Yo=function(a){var b=_.Wo;a=b.Ka(a,"PROTECTINFO");if(!a)return null;a=b.Ka(a,"KIDS");if(!a)return null;a=b.$(a,"KID");if(!a.length)return null;b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(sa);d=d.getAttribute("ALGID");b.push({value:c,cg:e,Nj:d})}}return b.length?b:null};_.cp=function(a){bp&&performance.mark(a)};
176
- _.ep=function(a,b,c){bp&&(b=performance.measure(a,b,c),null!=b&&dp.info('Step: "'+a+'" took '+b.duration.toFixed(0)+" ms."))};fp=function(a){this.f=[];this.h=[];this.a=[];8<=a.byteLength&&(new _.sn).aa("pssh",this.j.bind(this)).parse(a.buffer);0===this.a.length&&_.Kh("No pssh box found!")};
177
- _.jp=function(a,b){var c=this;this.C=a;this.Yb=b;this.K=new Set;this.F=this.J=this.l=null;this.ca=!1;this.a=null;this.L=gp;this.B=new _.hi;this.P=new Vm;this.h=new Map;this.N=[];this.I=new _.qk;this.Kb=0;this.f=null;this.w=function(d){c.A=!0;c.G=!1;c.I.reject(d);a.onError(d)};this.o=new Map;this.ka=new Map;this.da=new _.Yh(function(){return hp(c)});this.j=!1;this.Ea=new _.qk;this.H=!1;this.ia=[];this.jb=!1;this.Y=0;this.g=new _.J("clpp.drm.DrmEngine");this.za=(new _.Yh(function(){ip(c)})).Jb(1);this.I["catch"](function(){});
178
- this.A=this.G=!1;this.S=null};
179
- lp=function(a){var b,c,d,e,f;return _.H(function(g){switch(g.a){case 1:a.B.release();a.B=null;a.P.release();a.P=null;a.A=!1;a.G=!1;a.I.reject();a.za.stop();a.za=null;a.da.stop();a.da=null;b=Array.from(a.h.keys());c=_.v(a.h.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.qd&&e.qd.stop();a.h.clear();return _.x(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),_.D(m,2),_.x(m,kp(h),4);
180
- if(2!=m.a)return _.vh(m,0);l=_.F(m);a.g.warn("Error while closing session",l);_.z(m)})})})),2);case 2:if(!a.F){g.D(3);break}_.D(g,4);return _.x(g,a.l.Vd(null),6);case 6:_.vh(g,5);break;case 4:f=_.F(g),a.g.warn("Error while resetting media keys",f);case 5:a.F=null;case 3:a.l=null,a.a=null,a.K.clear(),a.J=null,a.N=[],a.f=null,a.w=null,a.C=null,a.Y=0,a.S=null,_.z(g)}})};
181
- _.op=function(a,b,c){c=void 0===c?[]:c;a.L=mp;a.N=c;a.H=0<c.length;a.g.debug("Using Persisted Licenses: "+a.H);a.f&&a.f.enableSessionCacheForSkd&&a.g.info("Enabled session cache for SKD license requests");return _.np(a,b)};
182
- up=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.L.kh(a.f.Qa);pp(b,d)}var e=a.f.Qa[_.Cd];d=b.some(function(g){return g.drmInfos.some(function(h){return h.keySystem===_.Cd})});if(!1!==a.f.hp&&_.Al()&&!d&&e){var f=_.v(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos.push({keySystem:_.Cd,licenseServerUri:e.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[],
183
- periodId:null})}if(e=qp(a))for(f=_.v(b),d=f.next();!d.done;d=f.next())d.value.drmInfos=[e];d=rp(b);sp(a,d);d=_.v(d);for(e=d.next();!e.done;e=d.next())tp(e.value,a.f.Qa);return c};_.np=function(a,b){var c=up(a,b),d=rp(b);d=_.v(d);for(var e=d.next();!e.done;e=d.next())vp(a,e.value,a.f.Qa);d=wp(a,b);if(!d.size)return a.ca=!0,Promise.resolve();_.cp(Td);d=_.xp(a,d);return(c?d:d["catch"](function(){})).then(function(){_.cp(Sd);_.ep("DRM queryMediaKeys_()",Td,Sd)})};
184
- rp=function(a){var b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next()){c=_.v(c.value.drmInfos);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};sp=function(a,b){for(var c=_.v(b),d=c.next();!d.done;d=c.next())d=d.value,""===d.licenseServerUri||a.f.Qa[d.keySystem]||(a.f.Qa[d.keySystem]={licenseUrl:""})};
185
- yp=function(a){var b;return _.H(function(c){switch(c.a){case 1:if(a.l.hf())return c["return"]();if(!a.S){c.D(2);break}return _.x(c,a.S,3);case 3:return c["return"]();case 2:return _.D(c,4),a.S=a.l.Vd(a.J),_.x(c,a.S,6);case 6:_.vh(c,0);break;case 4:b=_.F(c);if(a.j)return c["return"]();a.w(new _.N(_.O,6,6003,b.message,b));_.z(c)}})};
186
- Ap=function(a,b){return _.H(function(c){if(1==c.a)return a.g.info("Handle encrypted event for type "+b.initDataType),_.x(c,yp(a),2);if(!b.initData)return c["return"]();_.zp(a,b.initDataType,_.Oj(b.initData));_.z(c)})};
187
- _.Gp=function(a,b){if(!a.J)return ii(a.B,b,function(){a.w(new _.N(_.O,6,6010))}),Promise.resolve();a.F=b;a.l.$e(b);a.B.one(a.F,_.gf,function(){return Bp(a)});a.B.on(a.F,_.Tg,function(e){var f=a.G;a.G=!a.A;!f&&a.G&&(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.l.Ud()!==Cp||a.N.length)d=yp(a);c=Promise.resolve();_.xk()&&38===_.xl().major||(a.a&&a.a.keySystem!==_.af&&!a.a.serverCertificate&&
188
- (c=Dp(a)),c=c.then(function(){return _.Ep(a)}));return Promise.all([d,c]).then(function(){a.j||(_.Fp(a),a.B.on(a.F,fe,function(e){return Ap(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.a&&a.a.keySystem===_.Gd&&1>a.Y&&a.a.serverCertificate&&a.a.serverCertificate.length)return a.g.warn("Detected invalid widevine server certificate!. Retrying"),a.w(new _.N(1,6,6004)),a.a.serverCertificate=null,a.Y++,_.Gp(a,b);1<=a.Y&&a.g.info("Could not get valid widevine server certificate. Giving up");
189
- throw e;}})};_.Ep=function(a){var b,c;return _.H(function(d){if(1==d.a){if(!(a.J&&a.a&&a.a.serverCertificate&&a.a.serverCertificate.length))return d.D(0);_.D(d,3);return _.x(d,a.J.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."),_.vh(d,0);c=_.F(d);throw new _.N(_.O,6,6004,{browserError:c.message});})};
190
- Dp=function(a){var b=a.keySystem(),c=a.f.Qa[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.C.getConfiguration();return Hp(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.ik([d],a.f.attemptParameters);f.type=3;f.licenseRequestType=jd;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.Db.fetch(f).T}).then(function(f){a.a.serverCertificate=
191
- _.Oj(f.data)})["catch"](function(f){var g=f.data.headers;g=Object.assign({message:Pa,url:f.data.url,status:f.data.status,response:f.data.response},g?{headers:g}:{},bo(g));throw new _.N(_.O,6,6100,g,f);})};Hp=function(a,b){var c,d;return _.H(function(e){c=a.C.vd();return c?(d=b&&b.drm&&b.drm.customData)?_.x(e,c(d),0):e["return"]():e["return"]()})};Ip=function(a,b){if(!a)return!1;for(var c=0;c<b.df.length;c++)if(_.Tm(a,b.df[c]))return!0;return!1};
192
- _.Fp=function(a){for(var b=a.a?a.a.initData||[]:[],c=_.v(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.wk(2);if(a.f.enforceSingleSession&&!a.keySystem().startsWith(_.Cd)){var f=a.h.values();f=_.v(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.Tm(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+
193
- ".")),Ip(d.initData,g)||(g.df.push(d.initData),d.keyId&&!g.vb.includes(d.keyId)&&g.vb.push(d.keyId),a.o.get(d.keyId)||a.o.set(d.keyId,dg)),e=!1)}!e||a.H&&a.L===mp||(_.Jp(a,d.keyId,d.initData)&&(e=!1),e&&(a.g.info("Request new media key session on create"),Kp(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.v(a.N);for(d=c.next();!d.done;d=c.next())_.Lp(a,d.value);b.length||a.N.length||(a.A||a.g.info(Ga),a.A=!0,a.G=!1,a.I.resolve());return a.I};
194
- _.zp=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.H||a.L!==mp)){var e=a.keySystem();if(!e.startsWith(_.Cd)&&b===_.hd){var f=new fp(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.F.webkitCurrentPlaybackTargetIsWireless||
195
- _.wk(2)||a.keySystem().startsWith(_.Cd)||!_.Jp(a,d,c,!0))&&Kp(a,d,null,b,c)}};
196
- _.Jp=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.v(a.h.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.h.get(f);if(_.Tm(c,g.initData))return b?g.vb.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.vb.push(b),a.o.get(b)||a.o.set(b,dg),d&&a.g.info(Kb+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.g.info(Kb+(f.sessionId+"'")),!0;if(Ip(c,g))return d&&a.g.info("Skipping Session creation. License for init data was already requested [extra]"),
197
- !0}return!1};Mp=function(a){var b=Infinity;a=a.h.keys();a=_.v(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};
198
- wp=function(a,b){var c=new Set(rp(b)),d=a.H?_.Nf:_.$e,e=a.H?[_.ef]:[kg],f=new Map,g=_.v(c);for(c=g.next();!c.done;c=g.next())c=c.value,f.set(c.keySystem,{initDataTypes:[_.hd],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.$e,persistentState:d,sessionTypes:e,label:c.keySystem,drmInfos:[]});d={};e=_.v(b);for(c=e.next();!c.done;d={Nf:d.Nf,Ld:d.Ld,Uf:d.Uf,Md:d.Md},c=e.next()){c=c.value;g=c.audio;var h=c.video;d.Nf=g?_.Np(g):"";d.Ld=null;g&&"ac-3"===g.codecs.toLowerCase()&&_.wk()&&(d.Ld=
199
- _.Np(g,_.ee));d.Uf=h?_.Np(h):"";d.Md=null;h&&"ac-3"===h.codecs.toLowerCase()&&_.wk()&&(d.Md=_.Np(h,_.ee));var l={},m=_.v(c.drmInfos);for(c=m.next();!c.done;l={ib:l.ib},c=m.next())c=c.value,l.ib=f.get(c.keySystem),l.ib.drmInfos.push(c),c.initData&&c.initData.length&&(l.ib.initDataTypes=_.hh(new Set(c.initData.map(function(n){return n.initDataType}))).concat()),c.distinctiveIdentifierRequired&&(l.ib.distinctiveIdentifier=_.Nf),c.persistentStateRequired&&(l.ib.persistentState=_.Nf),g&&_.Hi(c.audioRobustness).forEach(function(n,
200
- p){return function(q){var t={robustness:q||"",contentType:n.Nf};p.ib.audioCapabilities.find(function(u){return u.robustness===t.robustness&&u.contentType===t.contentType})||p.ib.audioCapabilities.push(t);n.Ld&&p.ib.audioCapabilities.push({robustness:q||"",contentType:n.Ld})}}(d,l)),h&&_.Hi(c.videoRobustness).forEach(function(n,p){return function(q){var t={robustness:q||"",contentType:n.Uf};p.ib.videoCapabilities.find(function(u){return u.robustness===t.robustness&&u.contentType===t.contentType})||
201
- p.ib.videoCapabilities.push(t);n.Md&&p.ib.videoCapabilities.push({robustness:q||"",contentType:n.Md})}}(d,l))}return f};_.Np=function(a,b){var c=_.rl(a.mimeType,b||a.codecs);if(_.ql(c,a.type)){var d=a.type,e=_.ql(c,d);e&&(e=e(),c=e.convertCodecs(d,c),e.destroy())}return c};
202
- _.xp=function(a,b){function c(n,p,q){p.drmInfos.some(function(t){return!!t.licenseServerUri})===n&&(f=f["catch"](function(){if(a.j)return null;if(q===_.Ed){if((_.vl()||g.os===Pl&&_.wl("Chrome")&&!_.vl())&&!a.f.Qa[q].useLegacySystem)return p.label=Fd,a.l.$b(Fd,[p])["catch"](function(){a.g.warn("Unable to create com.microsoft.playready.recommendation. Falling back to com.microsoft.playready.");p.label=_.Ed;Op(p);return a.l.$b(q,[p])});Op(p)}if(q===_.Gd&&a.f.widevineVersion!==_.Gd){var t=a.f.widevineVersion;
203
- if(!t.startsWith(_.Gd))return a.g.error('Invalid "widevineVersion" value "'+t+'".'),Promise.reject();var u=Object.assign({},p,{label:t,distinctiveIdentifier:_.$e,persistentState:_.$e});return a.l.$b(t,[u])["catch"](function(){return a.l.$b(q,[p])})}return a.l.$b(q,[p])["catch"](function(y){a:{if(q===_.Gd&&Pp(p)){var A=_.yk();if(Pp(p)&&A.os===Nl&&A.browser===ld){a.g.warn("requestMediaKeySystemAccess() failed",y);a.g.warn("Will try to recover by removing the robustness attribute of videoCapabilities and audioCapabilities.");
204
- Op(p);y=a.l.$b(q,[p]);break a}}throw y;}return y})}))}if(1===b.size&&b.has(""))return Promise.reject(new _.N(_.O,6,6E3));null===a.l&&(a.l=Io(a.f.emeApi,a.Yb));for(var d=_.v(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;var f=d=new _.qk,g=_.yk(),h=a.f.preferredDrmSystem;if(!h)if(e=_.yk(),e.os===Pl&&10<=e.osVersion.major&&"edge"===e.browser)h=_.Ed;else if("safari"===e.browser)h=
205
- _.Cd;else if(e.browser===ld||"firefox"===e.browser)h=_.Gd;h&&(e=b.get(h))&&(c(!0,e,h),c(!1,e,h));e={};for(var l=_.v([!0,!1]),m=l.next();!m.done;e={Sf:e.Sf},m=l.next())e.Sf=m.value,b.forEach(function(n){return function(p,q){q!==h&&c(n.Sf,p,q)}}(e));f=f["catch"](function(){throw new _.N(_.O,6,6001,"Failed to get MediaKeySystemAccess.");});f=f.then(function(n){if(a.j)return null;a.K.clear();var p=n.getConfiguration();a.g.info("Got MediaKeySystemAccess with configuration",p);var q=p.videoCapabilities||
206
- [],t=_.v(p.audioCapabilities||[]);for(p=t.next();!p.done;p=t.next())a.K.add(p.value.contentType.toLowerCase());q=_.v(q);for(p=q.next();!p.done;p=q.next())a.K.add(p.value.contentType.toLowerCase());q=n.keySystem;p=b.get(_.Qp(n.keySystem));t=[];var u=[],y=[],A=[];Rp(p.drmInfos,t,u,y,A);1<u.length&&_.Kh("Multiple unique server certificates found! Only the first will be used.");1<t.length&&_.Kh("Multiple unique license server URIs found! Only the first will be used.");a.a={keySystem:q,licenseServerUri:t[0],
207
- distinctiveIdentifierRequired:p.distinctiveIdentifier===_.Nf,persistentStateRequired:p.persistentState===_.Nf,audioRobustness:p.audioCapabilities?p.audioCapabilities[0].robustness:"",videoRobustness:p.videoCapabilities?p.videoCapabilities[0].robustness:"",serverCertificate:u[0],initData:y,keyIds:A,periodId:null};if(!a.a.licenseServerUri)throw new _.N(_.O,6,6012,a.a.keySystem);return n.createMediaKeys()}).then(function(n){a.j||(a.g.info("Created MediaKeys for key system",a.a.keySystem),a.J=n,a.ca=
2
+ (function(window){var ba,ca,ea,fa,ha,qa,ua,ya,za,Ca,Fa,Ga,Ia,La,Na,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,$a,ab,eb,gb,hb,ib,jb,kb,lb,nb,ob,sb,xb,Eb,Fb,Gb,Hb,Ib,Lb,Nb,Qb,Rb,Sb,Vb,Wb,Yb,Zb,$b,ac,bc,cc,dc,ec,lc,mc,nc,Mc,Sc,$c,ad,id,jd,kd,md,nd,od,pd,rd,sd,td,ud,vd,wd,xd,Cd,Ed,Kd,Qd,Rd,Sd,Td,Ud,Vd,Xd,Yd,Zd,be,ce,ge,me,ve,xe,ye,Ge,Ze,ff,hf,jf,kf,lf,mf,nf,of,pf,qf,rf,zf,Af,Bf,Cf,Df,Ef,Gf,Kf,Mf,bg,eg,lg,Ag,Dg,Jg,Sg,Wg,Xg,Yg,Zg,$g,bh,ch,dh,ih,mh,qh,sh,rh,th,uh,vh,wh,zh,Ch,Ah,Bh,Dh,Fh,Gh,Kh,Nh,Sh,Wh,ai,gi,hi,ii,ji,ki,li,mi,ni,oi,ri,si,ui,
3
+ xi,vi,zi,Ai,Bi,Ci,Ei,Gi,Fi,Ii,Ki,Oi,Qi,Ri,Ui,Pi,Li,Zi,$i,aj,cj,ej,fj,sj,uj,vj,wj,Gj,xj,Nj,Mj,Sj,Wj,Yj,Zj,bk,ak,ek,fk,dk,Uj,vk,Tj,hk,Vj,wk,gk,Qj,tk,Oj,ck,yk,sk,pk,qk,ok,rk,nk,xk,Ak,uk,Dk,Rj,Pj,ik,Ek,Fk,Ck,Xj,Gk,Jk,Kk,Nk,Ok,Pk,Rk,Sk,Tk,Uk,Vk,gl,hl,jl,Xk,Yk,Wk,dl,al,bl,il,sl,ol,nl,ml,tl,rl,ql,yl,fl,Al,pl,zl,Zk,$k,vl,Hl,wl,xl,Cl,Bl,Jl,Gl,Nl,ul,Dl,Ol,Pl,Rl,Ql,Tl,Ul,Vl,Wl,Sl,bm,em,fm,gm,dm,hm,jm,im,km,lm,mm,pm,om,qm,rm,nm,vm,um,ym,zm,Im,Zl,Lm,Mm,Km,Nm,Pm,Qm,Ml,Xl,Rm,Sm,Vm,cn,hn,kn,ln,pn,vn,zn,Bn,En,Gn,
4
+ Hn,In,Ln,Qn,Sn,Tn,Un,Vn,Wn,Xn,Yn,Zn,ao,bo,co,eo,$n,io,no,mo,oo,po,S,Bo,Fo,Do,Go,Io,Ho,Ko,Lo,Qo,So,Ro,No,Ao,Mo,Uo,Vo,Xo,Yo,Wo,Zo,ap,$o,ep,hp,gp,fp,jp,mp,lp,kp,cp,bp,ip,dp,np,op,pp,Ap,Bp,Mp,Np,Op,dq,jq,mq,nq,pq,qq,tq,zq,Dq,Eq,Jq,Pq,Qq,Sq,Tq,Vq,Wq,Xq,Yq,Zq,$q,ar,br,cr,dr,er,fr,gr,jr,hr,kr,mr,nr,ir,lr,or,pr,qr,rr,ur,wr,xr,Dr,Er,Ir,Or,Xr,Ur,Vr,as,cs,fs,js,ks,os,Zr,Tr,vs,ms,ws,ys,xs,Gs,Cs,Bs,Es,Hs,Fs,Js,Ds,Is,Kr,ds,zs,Lr,us,Sr,qs,rs,Ms,ts,Yr,Wr,Nr,Vs,Xs,Ys,$s,ct,et,dt,bt,ft,at,it,gt,ht,jt,kt,pt,rt,tt,ut,
5
+ st,vt,wt,qt,xt,yt,zt,At,Bt,Dt,Et,Ft,Gt,Ct,It,Ot,Qt,Rt,St,Tt,Yt,Zt,$t,cu,du,Xt,eu,gu,hu,ju,ku,fu,lu,mu,nu,ou,pu,qu,su,vu,wu,uu,tu,zu,Bu,Au,Eu,Cu,Hu,Iu,Gu,Ku,Lu,Mu,Ju,yu,Nu,xu,Qu,Ru,Su,Uu,Vu,Wu,Xu,Yu,Zu,$u,av,bv,dv,Kv,Lv,Ov,Sv,kh,Uv;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" to a log level. Falling back to default!";_.da="#text";ea="': 'output-restricted'";fa="() is ongoing!";ha=".start";_.ia="6.28.0";_.ja="AUDIO";_.ka="AdaptationSet";_.la="Already destroyed. No-op";_.ma="Already released. No-op";
6
+ _.na="Autoplay is not allowed due to browser policy.";_.oa="BANDWIDTH";_.pa="BASIC";qa="CHECKSUM";_.sa="CLOSED-CAPTIONS";_.ta="CODECS";ua="Can not set volume to ";_.va="Cannot retrieve buffer information due to platform limitations";_.xa="CastlabsPlayer";ya="Content-Length";za="Content-Type";_.Aa="Could not find configured DRM environment.";_.Ba="DRM environment '";Ca="DRM licenses loaded";Fa="DRMtoday";Ga="DRMtodayOnboard";_.Ha="DURATION";Ia="Destroying player";_.Ja="EXT-X-MEDIA";_.Ka="EXT-X-STREAM-INF";
7
+ La="Error while decoding string!";Na="Error while fetching certificate!";_.Oa="FairPlay Certificate URL is not defined";_.Pa="FairPlay License URL is not defined";_.Qa="GROUP-ID";Ra="HW_SECURE_ALL";Sa="HW_SECURE_CRYPTO";Ta="HW_SECURE_DECODE";Ua="HeaderDrm";Va="Hide video element .";Wa="Invalid track type: ";Xa="InvalidStateError";Ya="Key status for Key ID '";_.Za="LANGUAGE";$a="License verification failed: ";ab="Load interrupted while a player release is pending";_.bb="Loading player with configuration";
8
+ _.cb="MaxHeight";_.db="MaxWidth";eb="Missing media element";_.fb="NAME";gb="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";hb="No event provided!";ib="No items in the playlist";jb="No sources provided!";kb="No track data attached to the event, unable to add track!";lb="Not a persistent session.";_.mb="Not supported";nb="NotAllowedError";ob="NotSupportedError";_.pb="PLAYLIST";_.qb="POST";_.rb="PlayReady License URL is not defined";sb="Player not ready yet.";
9
+ _.tb="Player sources";_.ub="Player state change: ";_.wb="Please make sure ";xb="Preloading is not supported by this player.";_.yb="QualityLevel";_.zb="RESOLUTION";_.Ab="Representation";_.Bb="SUBTITLES";_.Cb="SW_SECURE_CRYPTO";_.Db="SW_SECURE_DECODE";Eb="Schedule interstitial ";Fb="Session is closed";Gb="Setting native ";Hb="Show video element .";Ib="Skipping Session creation. License for init data was already requested in Session: '";_.Jb="SmoothStreamingMedia";_.Kb="TYPE";Lb="The index is not in the allowed range.";
10
+ _.Mb="URI";Nb="Unable to translate ";_.Ob="Unhandled/ignored event";_.Pb="Unregistering listeners";Qb="Unsupported keySystem";Rb="Updating playout limit for interstitial";Sb="Using VTTCue polyfill from 3 argument TextTrackCue.";_.Tb="VIDEO";_.Ub="VOD";Vb="Wait for preloading to finish";Wb="WebkitEmeManager.MediaKeySession.load";_.Xb="Widevine License URL is not defined";Yb="Will create EME Manager: ";Zb="X-AD-CREATIVE-SIGNALING";$b="X-ASSET-LIST";ac="X-ASSET-URI";bc="X-PLAYOUT-LIMIT";cc="X-RESTRICT";
11
+ dc="X-RESUME-OFFSET";ec="X-TIMELINE-OCCUPIES";_.fc="ad-break-started";_.gc="ad-break-stopped";_.hc="ad-buffering";_.ic="ad-clicked";_.jc="ad-completed";_.kc="ad-first-quartile";lc="ad-hls-asset-list-request";mc="ad-hls-asset-list-response";nc="ad-hls-resoled";_.pc="ad-impression";_.qc="ad-loaded";_.rc="ad-midpoint";_.sc="ad-paused";_.tc="ad-progress";_.uc="ad-resumed";_.vc="ad-skipped";_.wc="ad-started";_.xc="ad-stopped";_.yc="ad-third-quartile";_.zc="addtrack";_.Ac="ads-timeline-changed";_.Bc="airplay-casting-ended";
12
+ _.Cc="airplay-casting-started";_.Dc="airplay-status-changed";_.Ec="application";_.Fc="application/cea-608";_.Gc="application/dash+xml";_.Hc="application/mp4";_.Ic='application/mp4; codecs\x3d"stpp"';_.Jc='application/mp4; codecs\x3d"wvtt"';_.Kc="application/ttml+xml";_.Lc="application/vnd.ms-sstr+xml";Mc="application/x-www-form-urlencoded";_.Nc="audio";_.Oc="audio/aac";_.Pc="audio/ac3";_.Qc="audio/eac3";_.Rc="audio/mp4";Sc='audio/mp4;codecs\x3d"mp4a.40.2"';_.Tc="audiobufferchanged";_.Uc="audiotrackchanged";
13
+ _.Vc="autoplaynotallowed";_.Wc="bitratechanged";_.Xc="boolean";_.Yc="bufferingended";_.Zc="bufferingstarted";$c="canplay";ad="canplaythrough";_.bd="caption";_.cd="castingstarted";_.dd="caststatuschanged";_.ed="cdn-switch-success";_.fd="cenc";_.gd="center";id="certificate-request";jd="change";kd="chrome";_.ld="clpp-fill";md="clpp-hidden";nd="clpp-mc-playlist";od="clpp-visible";pd="clpp.PlayerFleet";_.qd="clpp.cast.CastSender";rd="clpp.drm.DrmToday";sd="clpp.drm.HeaderDrm";td="clpp.drm.eme.AppleEmeManager";
14
+ ud="clpp.drm.eme.EmeFactory";vd="clpp.native.Player";wd="clpp.plist.McPlaylist";xd="clpp.utils.Platform";_.yd="codecs";_.zd="column-reverse";_.Ad="com.adobe.primetime";_.Bd="com.apple.fps";Cd="com.apple.quicktime.HLS";_.Dd="com.microsoft.playready";Ed="com.microsoft.playready.recommendation";_.Fd="com.widevine.alpha";_.Gd="config.drm.customData is not defined";_.Id="content-steering-change";_.Jd="content-steering-location-ban-update";Kd="controls";_.Ld="cuechange";_.Md="decoder";_.Nd="destroy()";
15
+ _.Od="disabled";_.Pd="div";Qd="drm.license.req.";Rd="drm.mediaKeys.end";Sd="drm.mediaKeys.start";Td="drm.onPlay.end";Ud="drm.onPlay.start";Vd="drm.sess.update.";_.Wd="drmexpirationupdate";Xd="drmlicenserequested";Yd="drmrenewalstarted";Zd="drmsessioncreated";_.$d="drmsessionpersisted";_.ae="drmsessionupdate";be="drmtoday";ce="durationchange";_.de="ec-3";ge="encrypted";_.he="end";_.ie="ended";_.je="error";_.ke="estimatedThroughputKbps";_.le="forced";me="fullscreenElement";_.ne="function";_.oe="height";
16
+ _.pe="hidden";_.qe="hls-daterange";_.re="html";_.se="https://";_.te="image";_.ue="internal-error";ve="keystatuseschange";_.we="left";xe="license-renewal";ye="license-request";_.ze="line-left";_.Ae="line-right";_.Be="live-turned-static";_.Ce="load";_.De="loadeddata";_.Ee="loadedmetadata";Ge="loadstart";_.He="main";_.Ie="mdat";_.Je="mdia";_.Ke="message";_.Le="metadata";_.Me="mimeType";_.Ne="minf";_.Oe="moov";_.Pe="mpd-type-changed";_.Qe="mpeg-dash-callback-event";_.Re="none";_.k="number";_.Se="object";
17
+ _.Te="onBitrateChanged()";_.Ue="onContentLoaded";_.Ve="onPlayerError()";_.We="onPlayerWillDestroy";_.Xe="onPlayerWillRelease";_.Ye="onStateChanged()";Ze="online-status-changed";_.$e="optional";_.af="org.w3.clearkey";_.bf="output-restricted";_.cf="pause";_.df="persistent";_.ef="persistent-license";ff="picture-in-picture";_.gf="play";hf="player.afterLoad.end";jf="player.afterLoad.start";kf="player.appendLoad.end";lf="player.appendLoad.start";mf="player.beforeLoad.end";nf="player.beforeLoad.start";
18
+ of="player.load.end";pf="player.load.start";qf="player.setupPlaylist.end";rf="player.setupPlaylist.start";_.sf="playing";_.uf="playlist-item-changed";_.yf="playlist-modified";zf="playlist.next.end";Af="playlist.next.start";Bf="preload-aborted";Cf="preload-failed";Df="preloaded";Ef="preloading";_.Ff="prevent";Gf="primary-content";_.Hf="progress";_.If="px";_.Jf="ratechange";Kf="released";_.Lf="releasing";Mf="removetrack";_.Nf="required";_.Of="resize";_.Pf="right";_.Qf="sc-playlist-ended";_.Rf="sc-playlist-item-changed";
19
+ _.Sf="sc-playlist-live-turned-static";_.Tf="sc-playlist-timeline-changed";_.Uf="scte35";_.Vf="seeked";_.Wf="seeking";_.Xf="showing";_.Yf="simid-creative-started";_.Zf="simid-creative-stopped";_.$f="sinf";_.ag="smooth";bg="stalled";_.cg="start";_.dg="statechanged";eg="status-pending";_.fg="stbl";_.gg="string";_.hg="stsd";_.ig="style";_.jg="subtitle";_.kg="subtitles-htmlcue";lg="temporary";_.mg="text";_.ng="text/vtt";_.og="text/xml";_.pg="texttrackchanged";_.qg="timeline-cue-added";_.rg="timeline-cue-enter";
20
+ _.sg="timeline-cue-exit";_.tg="timeline-cues-changed";_.ug="timeupdate";_.vg="tracksadded";_.xg="trak";_.yg="ttml-xml";Ag="unauthenticated";_.Bg="und";_.Cg="unknown";Dg="update";_.Eg="urn:scte:scte35";_.Fg="urn:scte:scte35:2014";_.Gg="user-seeked";_.Hg="user-seeking";_.Ig="value";Jg="version";_.Kg="vertical-lr";_.Lg="vertical-rl";_.Mg="video";_.Ng="video/mp2t";_.Og="video/mp4";_.Pg="videobufferchanged";_.Qg="videotrackchanged";_.Rg="vimond-response";Sg="visibilitychange";_.Tg="vtt-xml";_.Ug="waiting";
21
+ _.Vg="waitingforkey";Wg="webkit-org.w3.clearkey";Xg="webkitkeyadded";Yg="webkitkeyerror";Zg="webkitkeymessage";$g="webkitneedkey";_.ah="width";bh="x-dt-csl-tracking-token";ch="x-dt-follow-up-token";dh="x-dt-resp-code";_.eh="yospace-session-ended";_.fh="yospace-session-started";_.hh=function(a){return function(){return _.gh[a].apply(this,arguments)}};ih=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
22
+ _.v=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:ih(a)}};_.jh=function(a){if(!(a instanceof Array)){a=_.v(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};_.w=function(a,b){a.prototype=kh(b.prototype);a.prototype.constructor=a;if(lh)lh(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]};
23
+ mh=function(){mh=function(){};nh.Symbol||(nh.Symbol=oh)};qh=function(a,b){this.a=a;ph(this,"description",{configurable:!0,writable:!0,value:b})};sh=function(){mh();var a=nh.Symbol.iterator;a||(a=nh.Symbol.iterator=nh.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.ne&&ph(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return rh(ih(this))}});sh=function(){}};rh=function(a){sh();a={next:a};a[nh.Symbol.iterator]=function(){return this};return a};
24
+ th=function(){this.w=!1;this.l=null;this.f=void 0;this.a=1;this.j=this.o=0;this.B=this.h=null};uh=function(a){if(a.w)throw new TypeError("Generator is already running");a.w=!0};vh=function(a,b){a.h={Uh:b,xi:!0};a.a=a.o||a.j};_.x=function(a,b,c){a.a=c;return{value:b}};_.z=function(a){a.a=0};_.F=function(a,b,c){a.o=b;void 0!=c&&(a.j=c)};wh=function(a){a.o=0;a.j=2};_.G=function(a,b){a.a=b;a.o=0};_.H=function(a){a.o=0;var b=a.h.Uh;a.h=null;return b};_.xh=function(a){a.B=[a.h];a.o=0;a.j=0};
25
+ _.yh=function(a){var b=a.B.splice(0)[0];(b=a.h=a.h||b)?b.xi?a.a=a.o||a.j:void 0!=b.C&&a.j<b.C?(a.a=b.C,a.h=null):a.a=a.j:a.a=0};zh=function(a){this.a=new th;this.f=a};Ch=function(a,b){uh(a.a);var c=a.a.l;if(c)return Ah(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return Bh(a)};
26
+ Ah=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,vh(a.a,g),Bh(a)}a.a.l=null;d.call(a.a,f);return Bh(a)};Bh=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,vh(a.a,c)}a.a.w=!1;if(a.a.h){b=a.a.h;a.a.h=null;if(b.xi)throw b.Uh;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
27
+ Dh=function(a){this.next=function(b){uh(a.a);a.a.l?b=Ah(a,a.a.l.next,b,a.a.A):(a.a.A(b),b=Bh(a));return b};this["throw"]=function(b){uh(a.a);a.a.l?b=Ah(a,a.a.l["throw"],b,a.a.A):(vh(a.a,b),b=Bh(a));return b};this["return"]=function(b){return Ch(a,b)};sh();this[Symbol.iterator]=function(){return this}};_.Eh=function(a,b){var c=new Dh(new zh(b));lh&&lh(c,a.prototype);return c};
28
+ Fh=function(a,b){if(b){for(var c=nh,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&&ph(c,d,{configurable:!0,writable:!0,value:f})}};Gh=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())})};_.I=function(a){return Gh(new Dh(new zh(a)))};
29
+ _.K=function(a,b){var c=a.split("."),d=Hh;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};Kh=function(a){return a&&0<=Ih[a]?Ih[a]:Jh};Nh=function(a){if(!a)return _.Lh("clpp.log",Nb+a+ca),-1;var b=Mh[a.toUpperCase()];return void 0===b?(_.Lh("clpp.log",Nb+a+ca),-1):b};_.L=function(a){(this.tag=a)&&void 0===Ih[a]&&(Ih[a]=-1)};_.Ph=function(a){Oh.info.apply(Oh,arguments)};
30
+ _.Qh=function(a){Oh.debug.apply(Oh,arguments)};_.Lh=function(a){Oh.warn.apply(Oh,arguments)};_.Rh=function(a){Oh.error.apply(Oh,arguments)};Sh=function(a,b){this.jb=a;this.sourceIndex=b};_.Vh=function(a){if(a){var b=a.a();b in _.Th?_.Uh.warn("Player-Factory '"+b+"' already registered"):(_.Th[b]=a,_.Uh.info("Registered Player-Factory: '"+b+"'"))}};Wh=function(a){return Object.values(_.Th).find(a)||null};
31
+ _.Zh=function(a){0<=Xh.indexOf(a)?Yh.warn("Factory '"+a.name()+"' is already registered"):(Xh.push(a),Yh.info("Factory '"+a.name()+"' has been registered."))};ai=function(a,b){var c=Xh.find(function(d){return d.a(a,b)})||null;c&&Yh.info("Chosen ads manager: "+c.name());return c};_.bi=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.di=function(a){return _.ci.get(a)||null};
32
+ _.fi=function(a){_.ci.get(a.id())?ei.warn("Component already in use."):_.ci.set(a.id(),a)};gi=function(a){return Array.from(_.ci.values()).find(function(b){return b instanceof a})||null};hi=function(a){for(var b=_.v(_.ci.values()),c=b.next();!c.done;c=b.next())a(c.value)};ii=function(a){hi(function(b){b.playerConstructed(a)})};ji=function(a){hi(function(b){b.beforeLoad(a)})};ki=function(a){hi(function(b){b.afterLoad(a)})};li=function(a){hi(function(b){b.playerDestroyed(a)})};
33
+ mi=function(a){if(null!==gi(a))return null;a=new a;a.install();_.fi(a);ei.info("Installed component:",a.id());return a};ni=function(a){if(a=gi(a))a.uninstall(),_.ci["delete"](a.id()),ei.info("Uninstalled component:",a.id())};
34
+ _.N=function(a,b,c,d,e){var f=Error.call(this,oi(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||_.M.ia(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.N)};oi=function(a,b,c,d){a=(a===_.O?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.M.ia(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};
35
+ _.pi=function(a,b){var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=b};_.qi=function(){this.a={}};ri=function(a,b,c,d){this.f=a;this.Ve=b;this.a=c;this.fo=!!d};_.Q=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};
36
+ si=function(a){this.a=new _.qi;this.f=a};_.ti=function(){this.a=new _.qi};ui=function(a,b,c){function d(h){for(var l=_.v(e),m=l.next();!m.done;m=l.next())a.off(b,m.value,d);c(h)}for(var e=[ge,"msneedkey",$g,"needkey"],f=_.v(e),g=f.next();!g.done;g=f.next())a.on(b,g.value,d)};_.wi=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)vi(c[b]);a.a.clear()};xi=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};
37
+ vi=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};_.yi=function(){this.Yd=new si(this);this.Ud=[]};zi=function(){};Ai=function(){};Bi=function(a,b,c,d,e,f,g){this.w=this.o=this.l=!1;this.G=a;this.f=b;this.a=c;this.h=d;this.j=0;this.B=e+":"+b;this.H=e;this.videoEl=null;this.A=f;this.F=g||null};Ci=function(a){this.a=a.map(function(b){return{hc:b.getSurface().getMedia().id,player:b,Te:!0,ready:Promise.resolve()}});this.g=new _.L("clpp.plist.PlayerPool")};
38
+ _.Di=function(a){return Array.isArray(a)?a:[a]};Ei=function(a,b){return a===b?!0:a.length===b.length&&a.every(function(c,d){return c===b[d]})};Gi=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 Fi(a,b)&&Fi(b,a)};Fi=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};
39
+ _.Hi=function(a,b){b=void 0===b?{}:b;if(b.Lh){for(var c=[],d={},e=_.v(a),f=e.next();!f.done;d={Ie:d.Ie},f=e.next())d.Ie=f.value,c.some(function(g){return function(h){return b.Lh(g.Ie,h)}}(d))||c.push(d.Ie);return c}return Array.from((new Set(a)).values())};Ii=function(a,b){var c=new Set(a),d=new Set(b);return{ho:a.filter(function(e){return!d.has(e)}),Cp:a.filter(function(e){return d.has(e)}),Rj:b.filter(function(e){return!c.has(e)})}};
40
+ _.Ji=function(a,b){for(var c=_.v(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};Ki=function(){};Oi=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!==b.byteLength)return!1;if(Li(a)===Li(b)&&(a.byteOffset||0)===(b.byteOffset||0))return!0;for(var c=_.Mi(a),d=_.Mi(b),e=_.v(Ni(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!==d[f])return!1;return!0};_.Mi=function(a,b,c){c=void 0===c?Infinity:c;return Pi(a,void 0===b?0:b,c,Uint8Array)};
41
+ Qi=function(a,b,c){c=void 0===c?Infinity:c;return Pi(a,void 0===b?0:b,c,Uint16Array)};Ri=function(a,b,c){c=void 0===c?Infinity:c;return Pi(a,void 0===b?0:b,c,Uint32Array)};_.Si=function(a,b,c){c=void 0===c?Infinity:c;return Pi(a,void 0===b?0:b,c,Int32Array)};_.Ti=function(a,b,c){c=void 0===c?Infinity:c;return Pi(a,void 0===b?0:b,c,DataView)};Ui=function(a){return a instanceof ArrayBuffer?a:0===a.byteOffset&&a.byteLength===a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
42
+ Pi=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=Li(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)};Li=function(a){return a instanceof ArrayBuffer?a:a.buffer};_.Vi=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};_.Wi=function(a,b){a.classList.add(b)};
43
+ _.Xi=function(a,b){if(a&&typeof b===_.Se)for(var c in b)a.style[c]=b[c]};_.Yi=function(a){return document.createElement(a)};Zi=function(){this.a=null;this.h=new Set;this.f=null;this.set(null)};$i=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.h.add(b))};aj=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.h.values());Fi(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.jh(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
44
+ _.bj=function(a){this.f=a;this.a=null};cj=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};_.dj=function(a){this.f=a;this.a=null};ej=function(a){return 0>=a?Promise.resolve():new Promise(function(b){setTimeout(function(){b()},1E3*a)})};fj=function(){};_.gj=function(){return!!navigator.userAgent.match(/Edge?\//)};_.ij=function(a){return _.hj("Tizen"+(a?" "+String(a):""))};
45
+ _.jj=function(){return _.hj("Web0S")};_.lj=function(){return _.jj()&&79===_.kj().major};_.mj=function(){return _.hj("CrKey")};_.nj=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.ij()};_.oj=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.nj()&&1<navigator.maxTouchPoints};_.pj=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};_.hj=function(a){return(navigator.userAgent||"").includes(a)};
46
+ sj=function(){if(qj)return qj;rj||(rj=new _.dj(function(){qj=null}));(qj=document.querySelector(_.Mg)||document.querySelector(_.Nc))||(qj=document.createElement(_.Mg));rj.ha(1);return qj};uj=function(a,b){try{return parseInt(b,10)}catch(c){tj.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
47
+ vj=function(a){var b={major:-1,name:_.Cg};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=uj(a,c[0]));2<=c.length&&(b.minor=uj(a,c[1]));3<=c.length&&(b.patch=uj(a,c[2]));4<=c.length&&(b.build=uj(a,c[3]));return b};wj=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};
48
+ Gj=function(){var a=xj();if(!a)return yj;var b=a.match(/^.+?(?=\))/);if(!b)return yj;b=b[0];if(wj(b,["iphone","ipad"]))return zj;if(wj(b,["android"]))return Aj;if(wj(b,["macintosh"]))return Bj;if(wj(b,["windows nt"]))return Cj;if(wj(b,["tizen"]))return Dj;if(wj(b,["web0s"]))return Ej;if(wj(b,["linux"]))return Fj;tj.warn("Unable to identify OS from user agent: "+a);return yj};
49
+ _.kj=function(){var a=xj(),b=["ie","edge","opera","firefox","safari",kd];var c=Gj();for(var d=Hj[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return vj(c[1]);return vj("")};xj=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
50
+ _.Jj=function(){var a=Gj();var b=Gj();var c=Hj[b];if(c){c=xj().match(c.os_version)[1];c=vj(c);if(b===Cj)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=vj("");a:{c=xj();var d=["ie","edge","opera","firefox","safari",kd],e=Gj();e=Hj[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=Ij}return{os:a,osVersion:b,browser:c,browserVersion:_.kj()}};
51
+ Nj=function(a,b){this.g=new _.L("clpp.PlayerSurface");this.w=_.M.ua(Kj,b);this.f=new Zi;this.h=null;this.a=new Zi;this.l=Lj;Lj+=1;this.o="clpp-video-"+this.l;this.j=new _.ti;if(null==a)throw new _.N(_.O,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.N(_.O,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
52
+ HTMLMediaElement))throw new _.N(_.O,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 _.N(_.O,7,7006,"Container element is not a direct parent of media element");e=d.containerEl}else{e=document.createElement(_.Pd);c.parentNode?c.parentNode.replaceChild(e,
53
+ 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=_.v(f);for(g=f.next();!g.done;g=f.next())g=g.value,c.classList.remove(g),_.Wi(e,g);e.style.cssText=c.style.cssText;c.removeAttribute(_.ig);f=_.v([_.ah,_.oe]);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+_.If);_.ij()||c.removeAttribute(g)}e.appendChild(c)}e&&
54
+ (this.a.set(e),$i(this.a,"clpp-container"),$i(this.a,this.o),$i(this.f,_.ld),$i(this.f,"clpp-video"));d.webOSStartupPatch&&Mj(this,c,e)}};Mj=function(a,b,c){(_.jj()&&53===_.kj().major||_.jj()&&68===_.kj().major||_.lj())&&!b.hasAttribute(Kd)&&(b.style.opacity="0",b.setAttribute(Kd,""),a.j.one(b,ce,function(){b.removeAttribute(Kd);b.style.opacity="1";c&&(c.style.opacity="1")}))};
55
+ Sj=function(a){var b=this;this.j=a;this.A=!!a.sideAdContainer;this.l=[];this.a=a.jj;this.H=Oj(a);this.F=[];var c=Pj(this,this.H,this.j.yl);this.w=new Ci(c);this.f=null;this.B=!1;this.o=new Map;this.I=a.toggleVisible;this.g=new _.L("clpp.interstitial.MultiController");this.h=this.G=!1;this.J=a.xn||function(){};Qj(this).forEach(function(d){return Rj(b,d,!1)})};
56
+ Wj=function(a,b){var c,d,e,f,g,h,l,m,n,p,q,t,u;return _.I(function(y){if(1==y.a){a.g.info("Crop ads by playout limit",b);c=Tj(a);d=a.getCurrentItem();if(!c||!d||!d.$a||null==c.V)return y["return"]();e=a.l.filter(function(B){return!B.primary});f=Math.max.apply(Math,_.jh(e.map(function(B){return B.ub})));if(b>f)return a.g.info("Playout limit is greater than ad pod duration, ignored."),y["return"]();g=d.player.getPosition()+(d.ub-d.duration);h=e.sort(function(B,A){return A.ub-B.ub})[0];l=c.V;m=b<=g;
57
+ if(!m)return y.C(2);n=f-g;c.V-=n;a.g.warn("Playout limit exceeded, immediately returning to primary at "+(c.V.toFixed(1)+" instead of ")+l.toFixed(1));return _.x(y,Uj(a,c.id,_.gf),3)}if(2!=y.a)return h.Da&&h.Da(),p=d.$a,a.a.trigger(new _.Q(_.xc,{ad:p})),a.a.trigger(new _.Q(_.jc,{ad:p})),a.a.trigger(new _.Q(_.gc,{id:d.Pb})),y["return"]();a.g.warn("Limiting playout of ads to",b);q=e.find(function(B){return b<=B.ub&&b>=B.ub-B.duration});if(!q)return a.g.warn("Cannot find ad hit by limit"),y["return"]();
58
+ t=b-(q.ub-q.duration);q.$a.h=t;u=f-b;c.V-=u;a.g.info("Last ad is now ",q.$a.zb(),"with cropped duration",t,"and primary will resume at",c.V.toFixed(1),"instead of",l.toFixed(1));h.Da&&(q.Da=h.Da);q.transition={uf:{position:t,itemId:c.id,V:c.V}};Vj(a,q);_.z(y)})};Yj=function(a){var b;return _.I(function(c){if(1==c.a)return(b=a.f)?"loaded"===b.state?c.C(2):_.x(c,b.ud,2):c["return"]();if(4!=c.a)return _.x(c,b.player.play(),4);b.state=_.sf;Xj(b);_.z(c)})};
59
+ Zj=function(a,b){a.g.info("Add items",b);a.l=a.l.concat(b.map(function(c){return Object.assign({},c,{state:"idle",disposers:[],preloadPromise:Promise.resolve(),ud:Promise.resolve()})}))};bk=function(a){return _.I(function(b){return _.x(b,ak(a,a.l.map(function(c){return c.id})),0)})};
60
+ ak=function(a,b){var c,d,e,f,g;return _.I(function(h){a.g.info("Remove items",b);c=[];d=[];e=_.v(a.l);for(f=e.next();!f.done;f=e.next())g=f.value,b.includes(g.id)?d.push(g):c.push(g);a.l=c;return _.x(h,Promise.all(d.map(function(l){l.disposers.forEach(function(m){return m()});l.disposers=[];return ck(a,l.id)})),0)})};ek=function(a){var b;return _.I(function(c){b=a.l.filter(function(d){return!d.primary}).map(function(d){return d.id});dk(a);return _.x(c,ak(a,b),0)})};
61
+ fk=function(a){var b,c;_.I(function(d){b=a.getCurrentItem();c=b.next[0];if(!(b&&b.primary&&c))return d.C(0);dk(a);return _.x(d,a.play(c),0)})};dk=function(a){var b=Tj(a);b&&(b.transition=void 0,b.next=[],gk(a))};
62
+ Uj=function(a,b,c){var d,e,f,g,h,l;return _.I(function(m){switch(m.a){case 1:if(a.B)return a.g.warn("Cannot "+c+" item while busy (ID: "+b+")"),m["return"]();d=hk(a,b);if(!d)return a.g.warn("Item not found (ID: "+b+")"),m["return"]();a.g.info(c+" item (ID: "+b+")");a.B=!0;if(e=a.f)e.player.isPaused()||(a.A?e.primary?ik(a,e,lk):e.player.pause():e.player.pause()),e.primary?ik(a,e,lk):ik(a,e,mk);(f=a.o.has(b))&&a.o["delete"](b);_.F(m,2,3);if(c===_.gf)return(g=e&&d.primary)?_.x(m,nk(a,d),10):f?_.x(m,
63
+ ok(a,d),10):_.x(m,pk(a,d),10);if(f){a.g.error("Loading preloaded items is not supported");m.C(6);break}return _.x(m,qk(a,d),6);case 10:Xj(d);case 6:Vj(a,d);d.primary?ik(a,d,mk):ik(a,d,lk);d.$a&&rk(a,d,d.$a);if(d.Da)d.player.one(_.ie,d.Da);d.Ri&&d.Ri(d.player.getDuration());e&&sk(a,e);case 3:_.xh(m);a.B=!1;tk(a);uk(a,d.next);_.yh(m);break;case 2:h=_.H(m);a.g.error("Item failed to "+c+" (ID: "+b+")",h);if(d.primary)throw h;if(l=Tj(a))return a.g.warn("Ad failed, resuming primary item"),_.x(m,nk(a,l),
64
+ 3);m.C(3)}})};vk=function(a,b,c){c=void 0===c?!1:c;if(!a.h){var d=Tj(a);d?(d.V=b,c&&(a.h=!0)):a.g.error("Failed to get primary item. Cannot configure resume position.")}};Tj=function(a){return a.l.find(function(b){return!!b.primary})||null};hk=function(a,b){return a.l.find(function(c){return c.id===b})||null};
65
+ Vj=function(a,b){var c=b.transition;if(c&&!c.qj){if(c.Da){var d=c.Da,e=function(){a.g.info("Transition onEnded to (ID: "+d+")");a.play(d)};b.player.one(_.ie,e);b.disposers.push(function(){b.player.off(_.ie,e)})}c.uf&&wk(a,b,function(){var f=a.f.$a;f&&(b.disposers.forEach(function(g){return g()}),b.disposers=[],a.a.trigger(new _.Q(_.xc,{ad:f})),a.a.trigger(new _.Q(_.jc,{ad:f})),a.a.trigger(new _.Q(_.gc,{id:b.Pb})))});c.qj=!0}};
66
+ wk=function(a,b,c){function d(){a.g.info("Stop timeupdate polling");b.player.off(_.ug,f)}function e(){var l=b.player.getPosition();l>=g.position?(c(),a.g.info("Transition onPosition to (ID: "+g.itemId+"), playback position: "+(l.toFixed(3)+" s, transition point: ")+(g.position.toFixed(3)+" s. ")),a.play(g.itemId),l=!0):l=!1;l?h=null:h=requestAnimationFrame(e)}function f(){var l=b.player.getPosition();.5>=g.position-l&&(a.g.info("Start RAF polling"),d(),e())}var g=b.transition.uf,h=null;g.V&&vk(a,
67
+ g.V);a.g.info("Start timeupdate polling");b.player.on(_.ug,f);b.disposers.push(function(){null!=h&&(a.g.info("Stop RAF polling"),cancelAnimationFrame(h),h=null)});b.disposers.push(d)};gk=function(a){a.f&&(a.f.disposers.forEach(function(b){return b()}),a.f.disposers=[],a.f.transition&&(a.f.transition.qj=!1),Vj(a,a.f))};Qj=function(a){return[a.a].concat(_.jh(a.w.a.map(function(b){return b.player})))};tk=function(a){Promise.all(Array.from(a.o.keys()).map(function(b){return ck(a,b)}))};
68
+ Oj=function(a){if(a.sideAdContainer)a=a.sideAdContainer;else if(a=a.jj.getSurface().getContainer(),!a)throw Error("Primary player does not have a container");return a};ck=function(a,b){var c;return _.I(function(d){if(1==d.a){c=a.o.get(b);if(!c)return d.C(0);a.g.info("Stop preloading item (ID: "+b+")");return c.player?_.x(d,xk(a,c.player),3):d.C(3)}a.o["delete"](b);_.z(d)})};yk=function(a){return _.I(function(b){if(1==b.a)return a.f?_.x(b,sk(a,a.f),3):b.C(0);Rj(a,a.a,!0);_.z(b)})};
69
+ sk=function(a,b){var c;return _.I(function(d){if(1==d.a){c=b.player;if(b.primary)return a.g.info("Pause primary playback"),a.A||Rj(a,c,!1),d.C(0);a.g.info("Stop previous playback (ID: "+b.id+")");b.disposers.forEach(function(e){return e()});b.disposers=[];b.player=null;b.videoEl=null;b.role=zk;return b.Ig?(a.g.info("Release player (ID: "+b.id+") after delay "+(b.Ig+" ms.")),_.x(d,new Promise(function(e){setTimeout(function(){return _.I(function(f){if(1==f.a)return _.x(f,xk(a,c),2);Rj(a,c,!1);a.a.trigger(new _.Q("ad-hls-released"));
70
+ e();_.z(f)})},b.Ig)}),0)):_.x(d,xk(a,c),5)}Rj(a,c,!1);return d.C(0)})};pk=function(a,b){return _.I(function(c){if(1==c.a)return _.x(c,qk(a,b),2);if(3!=c.a)return _.x(c,b.player.play(),3);b.state=_.sf;_.z(c)})};qk=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.x(d,Ak(a,!!b.primary),2);if(3!=d.a)return c=d.f,a.f=b,b.role=Bk,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),Rj(a,c,!0),b.state="loading",b.ud=Ck(c,b.config),_.x(d,b.ud,3);b.state="loaded";_.z(d)})};
71
+ ok=function(a,b){var c;return _.I(function(d){switch(d.a){case 1:c=b.player;if(!c)return d["return"]();if(b.state!==Ef){d.C(2);break}a.g.info(Vb);_.F(d,3);return _.x(d,b.preloadPromise,5);case 5:_.G(d,2);break;case 3:_.H(d);case 2:a.f=b;b.role=Bk;Rj(a,c,!0);if(b.state===Df)return _.x(d,c.play(),7);if(b.state!==Cf){d.C(7);break}return _.x(d,Ck(c,b.config),7);case 7:b.state=_.sf,_.z(d)}})};
72
+ rk=function(a,b,c){function d(){a.a.trigger(new _.Q(_.xc,{ad:c}));a.a.trigger(new _.Q(_.jc,{ad:c}));c.f===c.a&&a.a.trigger(new _.Q(_.gc,{id:b.Pb}))}function e(){a.a.trigger(new _.Q(_.hc,{ad:c}))}function f(){a.a.trigger(new _.Q(_.uc,{ad:c}))}function g(){l.isEnded()||a.a.trigger(new _.Q(_.sc,{ad:c}))}function h(){var m=l.getPosition(),n=c.getDuration();c.j=m;a.a.trigger(new _.Q(_.tc,{ad:c}));!c.l&&m>=n/4&&(c.l=!0,a.a.trigger(new _.Q(_.kc,{ad:c})));!c.o&&m>=n/2&&(c.o=!0,a.a.trigger(new _.Q(_.rc,{ad:c})));
73
+ !c.w&&m>=3*n/4&&(c.w=!0,a.a.trigger(new _.Q(_.yc,{ad:c})))}var l=b.player;l.on(_.ug,h);l.on(_.cf,g);l.on(_.sf,f);l.on(_.Zc,e);l.one(_.ie,d);b.disposers.push(function(){l.off(_.ug,h);l.off(_.cf,g);l.off(_.sf,f);l.off(_.Zc,e);l.off(_.ie,d)});1===c.f&&a.a.trigger(new _.Q(_.fc,{id:b.Pb}));c.videoEl=l.getSurface().getMedia();a.a.trigger(new _.Q(_.pc,{ad:c}));a.a.trigger(new _.Q(_.wc,{ad:c}))};
74
+ nk=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();a.J();if(b.state!==Ef){c.C(2);break}a.g.info("Wait for seek to finish");_.F(c,3);return _.x(c,b.preloadPromise,5);case 5:_.G(c,2);break;case 3:_.H(c);case 2:a.h=!1;if(!b.V){c.C(6);break}return _.x(c,b.player.seek(b.V,!0),6);case 6:a.f=b;b.role=Bk;Rj(a,b.player,!0);b.state="loading";if(a.A&&(ik(a,b,mk),!b.player.isPaused())){c.C(9);break}return _.x(c,b.player.play(),9);case 9:b.state=_.sf,_.z(c)}})};
75
+ xk=function(a,b){return _.I(function(c){return b===a.a?c.C(0):_.x(c,a.w.release(b),0)})};Ak=function(a,b){var c;return _.I(function(d){if(1==d.a)return b?d["return"](a.a):_.x(d,a.w.get(),2);c=d.f;if(!c)throw Error("No player available");return d["return"](c)})};uk=function(a,b){var c;_.I(function(d){if(0===b.length)return d["return"]();a.g.info("Preload items (IDs: "+b+")");c=a.l.filter(function(e){return b.includes(e.id)})||[];return _.x(d,Promise.all(c.map(function(e){return Dk(a,e)})),0)})};
76
+ Dk=function(a,b){var c,d,e,f,g;return _.I(function(h){switch(h.a){case 1:if(!b.primary){h.C(2);break}b.state=Ef;a.o.set(b.id,b);if(!b.V||a.A){h.C(3);break}c=b.player;a.g.info("Preparing to resume at",b.V);ik(a,b,lk);return _.x(h,c.seek(b.V,!0),3);case 3:return b.state=Df,h["return"]();case 2:return d=b.id,_.x(h,Ak(a,!1),5);case 5:e=h.f;b.player=e;b.videoEl=e.getSurface().getMedia();b.role=zk;b.state=Ef;_.F(h,6);a.o.set(d,b);b.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (ID: "+
77
+ (d+")")),b.config.autoplay=!1);if(f=a.a.getBandwidthEstimate())b.config.abr||(b.config.abr={}),b.config.abr.defaultBandwidthEstimate=f;b.preloadPromise=Ck(e,b.config);return _.x(h,b.preloadPromise,8);case 8:b.state=Df;_.G(h,0);break;case 6:g=_.H(h),7001===g.code?(a.g.info("Preload aborted (ID: "+d+")"),b.state=Bf):(a.g.warn("Preload failed (ID: "+d+")",g),b.state=Cf),_.z(h)}})};
78
+ Rj=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.debug(Hb+b),d.classList.add(od),d.classList.remove("clpp-hide")):(a.g.debug(Va+b),d.classList.remove(od),d.classList.add("clpp-hide")),a.I&&a.I(d,c))};
79
+ Pj=function(a,b,c){return Array.from({length:2}).map(function(d,e){var f=document.createElement(_.Mg);b.appendChild(f);var g=a.j.jb.create();f=new Nj(f);g.init(f,c);g.setSourceIndex(0);var h=f.getContainer();if(!h)throw Error("Failed to create player surface container element");h.classList.add("secondary");f.getMedia().classList.add("v-"+e);a.F.push(h);return g})};
80
+ ik=function(a,b,c){var d=b?b.Pb||null:null;a.a.getConfiguration().muted||a.G?(a.a.setMuted(!0),Ek(a,!0)):(b.audio&&(c=b.audio),a.j.onAudioDecision&&(c=a.j.onAudioDecision(d)),c===mk?(a.a.setMuted(!1),Ek(a,!0)):c===lk?(a.a.setMuted(!0),Ek(a,!1)):a.g.warn("Audio decision not supported",c))};Ek=function(a,b){a.l.filter(function(c){return!c.primary&&c.player}).forEach(function(c){return c.player.setMuted(b)})};Fk=function(a){a.F.forEach(function(b){return a.H.removeChild(b)});a.F=[];Rj(a,a.a,!0)};
81
+ Ck=function(a,b){return _.I(function(c){return 1==c.a?_.x(c,a.release(),2):_.x(c,a.load(b),0)})};Xj=function(a){if(a.$a){var b=a.player.getDuration();a.maxDuration&&(b=Math.min(b,a.maxDuration));a.$a.h=b}a.wf&&a.wf()};Gk=function(a){return"com.apple.hls.interstitial"===a||"com.apple.hls.overlay"===a};_.Ik=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.jh(Hk).concat()}};
82
+ Jk=function(a,b){a.timeout=b.timeout;a.baseDelay=b.baseDelay;a.backoffFactor=b.backoffFactor;a.fuzzFactor=b.fuzzFactor;a.maxAttempts=b.maxAttempts;a.fatalStatusCodes=b.fatalStatusCodes||_.jh(Hk).concat()};Kk=function(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b};
83
+ _.Mk=function(a,b){_.M.ia(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.Lk,uriIndex:0,method:a.method||"GET",body:a.body||null,headers:Object.assign({},a.headers),allowCrossSiteCredentials:a.allowCrossSiteCredentials||!1,onProgress:a.onProgress||null,onFragment:a.onFragment||null,maxAttempts:a.maxAttempts||1,currentAttempt:0,baseDelay:a.baseDelay||1E3,backoffFactor:a.backoffFactor||2,fuzzFactor:a.fuzzFactor||.5,timeout:a.timeout||0,requestModifiers:a.requestModifiers||
84
+ [],responseModifiers:a.responseModifiers||[],startTime:a.startTime||null,endTime:a.endTime||null,contentType:a.contentType||null,licenseRequestType:a.licenseRequestType||null,sessionId:null,bytesRemaining:-1,bytesLoaded:-1,bytesTotal:-1,timescale:a.timescale||null,rateLimitBps:a.rateLimitBps||null,disableFragmentSupport:a.disableFragmentSupport||!1,disableMergedFragments:a.disableMergedFragments||!1,fatalStatusCodes:_.jh(Hk).concat(),requestStartTimestamp:null};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&
85
+ Jk(c,b);return c};_.Qk=function(a,b,c,d,e,f,g,h){a={uri:e||d,data:b,headers:a,status:c,timeMs:g,responseStartMs:h,request:f};if(Nk(c))return Ok(a);throw Pk(a);};Nk=function(a){return 200<=a&&299>=a&&202!==a};Ok=function(a){return{uri:a.uri,data:a.data||new ArrayBuffer(0),headers:a.headers,status:a.status,fromCache:!!a.headers["x-shaka-from-cache"],timeMs:a.timeMs,responseStartMs:a.responseStartMs,request:a.request}};
86
+ Pk=function(a){a=Ok(a);try{var b=_.R.$d(a.data,!0)}catch(d){b=null}_.Qh("HTTP error text:",b);var c=a.request;return new _.N(0<=(c?c.fatalStatusCodes||[]:[]).indexOf(a.status)?_.O:1,1,1001,{url:a.uri,status:a.status,responseText:b,headers:a.headers,request:a.request,response:a})};Rk=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};
87
+ Sk=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};Tk=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()};Uk=function(a){if(null!==a&&void 0!==a)return Number(a)};Vk=function(a){return a.reduce(function(b,c){return b+c},0)};
88
+ gl=function(a){_.yi.call(this);var b=this;this.j=_.M.ua({Wn:.5},a);this.A=this.h=!1;this.g=new _.L("clpp.interstitial.Player");this.l=a.player;this.l.setSeekInterceptor(function(c,d){if(d)return!0;if(b.h)return!1;var e=Wk(b);if(e)return b.g.info("Seek ignored while binding interstitial",e.$),!1;Xk(b,c);e=Yk(b);var f=Zk(b,c),g=$k(b,c);if(e){if(f&&f!==e)return al(b,f,c),!1;if(g&&g!==e)return bl(b,g,c),!1;if(c<e.startTime-b.j.resolutionOffsetSec)return dl(b,e),!0;if(c<e.startTime)return gk(b.a),b.g.info("Seek inside resolution area of",
89
+ e.$),!0;if(c<=e.endTime)return b.g.info("Seek into the scheduled interstitial",e.$),fk(b.a),!1;if(e.wh)return b.g.info("Jump over a scheduled interstitial",e.$),ek(b.a),e.state=el,!0;b.g.info("Jump over a scheduled interstitial triggering it",e.$);fk(b.a);vk(b.a,c,!0);return!1}return f?(al(b,f,c),!1):g&&!g.Dl?(bl(b,g,c),!1):!0});this.a=new Sj({yl:this.j.config,jj:a.player,preloadMedia:!0,jb:a.jb,sideAdContainer:this.j.sideAdContainer,onAudioDecision:this.j.onAudioDecision,xn:function(){b.g.info("Resume primary content")}});
90
+ this.o=[];this.f=[];this.w=!1;fl(this,a.player)};hl=function(a){return(a=a.a.getCurrentItem())&&!a.primary?a.player:null};
91
+ jl=function(a){var b,c,d;_.I(function(e){var f=a.a;Zj(f,[{id:Gf,primary:!0,config:f.a.getConfiguration(),next:[],ub:0,duration:0,Pb:null}]);var g=Tj(f);if(!g)throw Error("Failed to find primary item");f.f=g;g.role=Bk;g.player=f.a;g.videoEl=g.player.getSurface().getMedia();Rj(f,g.player,!0);b=a.l;c=b.getConfiguration();d=!c.autoplay;a.w=il(a,d,b.isLive(),!1);if(a.w){f=a.a;g=f.w;if(g=g.a[0]?g.a[0].player:null)f.A||Rj(f,f.a,!1),Rj(f,g,!0);return e.C(0)}return c.autoplay?_.x(e,Yj(a.a),0):e.C(0)})};
92
+ Xk=function(a,b){var c=a.l.getPosition();b>=c||a.f.filter(function(d){return 1===d.wd&&!d.once&&d.Ii&&d.startTime>b}).forEach(function(d){d.$g=!0})};Yk=function(a){return a.f.find(function(b){return b.state===kl})||null};Wk=function(a){return a.f.find(function(b){return b.state===ll})||null};dl=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Unschedule interstitial",b.$),_.x(c,ek(a.a),2);b.state=el;_.z(c)})};
93
+ al=function(a,b,c){var d;_.I(function(e){switch(e.a){case 1:a.h=!0;_.F(e,2,3);d=Yk(a);if(!d){e.C(5);break}return _.x(e,dl(a,d),5);case 5:return a.g.info("Seek into interstitial",b.$),_.x(e,ml(a,b),3);case 3:_.xh(e);a.h=!1;_.yh(e);break;case 2:return _.H(e),_.x(e,a.l.seek(c),3)}})};
94
+ bl=function(a,b,c){var d,e;_.I(function(f){switch(f.a){case 1:a.h=!0;_.F(f,2,3);d=Yk(a);if(!d){f.C(5);break}return _.x(f,dl(a,d),5);case 5:return a.g.info("Play jumped interstitial",b.$,"resume at",c.toFixed(2)),_.x(f,ml(a,b,c),3);case 3:_.xh(f);a.h=!1;_.yh(f);break;case 2:return e=_.H(f),a.g.warn("Failed to play jumped interstitial",b.$,e),b.Dl=new Date,_.x(f,a.l.seek(c),3)}})};
95
+ il=function(a,b,c,d){var e=nl(a);a.g.info("Interstitial cues changed",e);var f=e;if(d){f=Ii(a.f.map(function(n){return n.$}),e.map(function(n){return n.id}));ol(a,f.ho);var g=new Set(f.Rj);f=e.filter(function(n){return g.has(n.id)})}if(!pl(a,f))return!1;var h=[],l=[],m=[];f.forEach(function(n){var p=n.customAttributes.CUE||[];p.includes(_.qb)?l.push(n):!d&&p.includes("PRE")?h.push(n):!c&&n.startTime<a.j.Wn?h.push(n):m.push(n)});1<h.length?a.g.warn("Multiple preroll interstitials not supported. Will display only the 1st one."):
96
+ h[0]&&ql(a,h[0],b);m.forEach(function(n){return rl(a,n,1)});1<l.length?a.g.warn("Multiple postroll interstitials not supported. Will display only the 1st one."):l[0]&&rl(a,l[0],2);sl(a,e);return 0<h.length};
97
+ sl=function(a,b){var c,d,e,f;_.I(function(g){c=a.a.getCurrentItem();if(!c)return g["return"]();if(c.primary)return a.f.forEach(function(h){var l=b.find(function(n){return n.id===h.$});if(l){var m=l.customAttributes[bc];null==h.sc&&null!=m&&(a.g.info(Rb,l.id,"Playout limit",m),h.sc=m,1===h.wd&&h.state===kl&&tl(a,h))}}),g["return"]();d=b.find(function(h){return h.id===c.Pb});if(!d)return g["return"]();e=d.customAttributes[bc];if(null==e)return g["return"]();f=a.f.find(function(h){return h.$===d.id});
98
+ if(!f||null!=f.sc)return g["return"]();a.g.info(Rb,d.id,"Playout limit",e);f.sc=e;return _.x(g,Wj(a.a,e),0)})};ol=function(a,b){var c=new Set(b);a.f.forEach(function(d){c.has(d.$)&&!ul(d)&&a.g.warn("Removing an interstitial in active state",d)});a.f=a.f.filter(function(d){return!c.has(d.$)})};nl=function(a){return a.l.getTimelineCues().filter(function(b){return Gk(b.schemeIdUri)&&b.customAttributes})};
99
+ ml=function(a,b,c){var d;return _.I(function(e){if(1==e.a)return _.x(e,vl(a,b),2);d=e.f;if(!d)throw Error("Failed to bind");return _.x(e,wl(a,b,1,!1,c),0)})};tl=function(a,b){_.I(function(c){return 1==c.a?_.x(c,dl(a,b),2):_.x(c,xl(a,b,a.l),0)})};
100
+ rl=function(a,b,c){var d=b.customAttributes[ac],e=b.customAttributes[$b],f=b.customAttributes[dc],g=b.customAttributes[bc],h=b.customAttributes[cc]||[];b.customAttributes[ec]||(b.customAttributes[ec]=null==f||0<f?"RANGE":"POINT");var l=b.customAttributes["X-YOSPACE-AUDIO-PRIORITY"];l="CONTENT"===l?mk:"AD"===l?lk:void 0;var m=b.id,n=b.startTime,p=b.endTime,q=el,t=null==f?null:Math.max(0,b.startTime+f),u="POINT"===b.customAttributes[ec],y=!h.includes("SKIP");h=!h.includes("JUMP");var B=b.customAttributes[Zb];
101
+ if(B)try{var A=JSON.parse(atob(B))}catch(C){A=null}else A=null;b={$:m,startTime:n,endTime:p,state:q,kh:e,lh:d,Ba:null,V:t,lo:f,sc:g,wd:c,vm:u,$j:y,wh:h,uj:A,Ii:null!=f&&0>f,once:(b.customAttributes.CUE||[]).includes("ONCE"),rj:!1,$g:!0,customAttributes:b.customAttributes,audio:l};a.f.push(b);return b};
102
+ ql=function(a,b,c){var d,e,f,g,h;_.I(function(l){switch(l.a){case 1:return d=rl(a,b,0),_.x(l,vl(a,d),2);case 2:e=l.f;f=d.Ba?d.Ba.length:0;if(e&&0<f){_.F(l,8);a.g.info("Player preroll interstitial "+d.$);var m=wl(a,d,0,c);return _.x(l,m,10)}e?a.g.warn("Preroll interstitial has no assets, skipping"):a.g.error("Preroll interstitial failed, skipping");return _.x(l,yk(a.a),5);case 5:if(c){l.C(0);break}return _.x(l,Yj(a.a),0);case 10:_.G(l,0);break;case 8:g=_.H(l);a.g.error("Preroll interstitial failed.",
103
+ g);if(h=Tj(a.a))return _.x(l,a.a.play(h.id),0);l.C(0)}})};yl=function(a){a.o.forEach(function(b){return b()});a.o=[]};
104
+ fl=function(a,b){function c(){a.A=!1}function d(){a.A=!0}function e(){il(a,!1,!0,!0)}function f(){var g,h,l,m,n;return _.I(function(p){switch(p.a){case 1:if(a.h||a.A)return p["return"]();g=b.getPosition();h=zl(a,g);if(!h){p.C(2);break}return _.x(p,vl(a,h),3);case 3:(l=p.f)&&xl(a,h,b);case 2:m=Al(a);if(!(m&&m.state===el&&b.getDuration()-g<a.j.resolutionOffsetSec)){p.C(0);break}return _.x(p,vl(a,m),5);case 5:if(n=p.f)if(m.Ba&&0!==m.Ba.length){var q=a.a.getCurrentItem();if(q){var t=Bl(a,m,2);if(0!==
105
+ t.length){var u=t[0].id;q.next=[u];q.transition={Da:u};a.g.info("Schedule postroll interstitial "+m.$);Cl(a,m,t)}}}else a.g.warn("Postroll interstitial has no assets, ignoring.");_.z(p)}})}b.on(_.ug,f);a.o.push(function(){b.off(_.ug,f)});b.on(_.tg,e);a.o.push(function(){b.off(_.tg,e)});b.on(_.fc,d);a.o.push(function(){b.off(_.fc,d)});b.on(_.gc,c);a.o.push(function(){b.off(_.gc,c)})};Al=function(a){return a.f.find(function(b){return 2===b.wd})||null};
106
+ pl=function(a,b){for(var c=b.sort(function(n,p){return n.startTime-p.startTime}),d=a.j.resolutionOffsetSec,e=Infinity,f=[],g=0;g<c.length-1;g++){var h=c[g],l=c[g+1];l&&(e=Math.min(e,l.startTime-h.endTime));l&&l.startTime<=h.endTime&&f.push("Interstitials "+h.id+" and "+l.id+" overlap.")}e<d&&(c=e/2,a.j.resolutionOffsetSec=c,a.g.info("Interstitials are closer than configured resolutionOffsetSec ("+(d+" s) auto-reconfiguring to ")+(c+" s.")));var m=[];b.forEach(function(n){var p=n.customAttributes[ac];
107
+ n.customAttributes[$b]||p||m.push("Interstitial cue "+n.id+" is invalid it contains neither X-ASSET-LIST nor X-ASSET-URI.")});0<m.length?a.g.error("Invalid interstitials, all interstitials will be skipped. "+m.join(" ")):0<f.length&&a.g.warn("Unsupported format of interstitials, playback may not behave correctly. "+f.join(" "));return 0===m.length};zl=function(a,b){return a.f.find(function(c){var d=c.startTime-b;return 1===c.wd&&ul(c)&&0<d&&d<=a.j.resolutionOffsetSec})||null};
108
+ Zk=function(a,b){return a.f.find(function(c){return ul(c)&&!c.vm&&1===c.wd&&b>c.startTime&&b<c.endTime})||null};$k=function(a,b){var c=a.l.getPosition();return a.f.filter(function(d){return 1===d.wd&&!d.wh}).sort(function(d,e){return e.startTime-d.startTime}).find(function(d){return d.startTime>c&&d.startTime<b})||null};
109
+ vl=function(a,b){var c,d,e,f;return _.I(function(g){switch(g.a){case 1:b.state=ll;if(!b.kh){b.lh?(b.Ba=[{URI:b.lh,DURATION:b.endTime-b.startTime}],a.Za(new _.Q(nc,{id:b.$,detail:Dl(b)})),b.state=El):b.state=Fl;g.C(2);break}_.F(g,3);a.g.info("Load X-ASSET-LIST for "+b.$);a.Za(new _.Q(lc));return _.x(g,Gl(a,b.kh),5);case 5:c=g.f;b.Ba=c.ASSETS;b.Ba&&0!==b.Ba.length||a.g.info("Interstitial "+b.$+" has no assets, will be smoothly skipped");null==b.V&&(d=Vk(b.Ba.map(function(h){return h.DURATION})),e=null==
110
+ b.sc?d:Math.min(b.sc,d),b.V=b.startTime+e);b.state=El;a.Za(new _.Q(mc));a.Za(new _.Q(nc,{id:b.$,detail:c}));_.G(g,2);break;case 3:f=_.H(g),a.g.error("Failed to load X-ASSET-LIST",f),b.state=Fl;case 2:return g["return"](b.state===El)}})};Hl=function(a,b){var c=a.j.Un;if(c){var d=new URL(b);d.searchParams.set("_HLS_primary_id",c);return d.toString()}return b};
111
+ wl=function(a,b,c,d,e){var f,g,h;return _.I(function(l){if(0===b.Ba.length)return l["return"]();f=a.a.getCurrentItem();if(!f)return l["return"]();g=Bl(a,b,c);if(0===g.length)return l["return"]();Cl(a,b,g);(h=0===c&&a.l.isLive())||(null!=e?vk(a.a,e,!0):null!=b.V&&vk(a.a,b.V));return d?_.x(l,a.a.load(g[0].id),0):_.x(l,a.a.play(g[0].id),0)})};
112
+ xl=function(a,b,c){if(b.Ba)if(0===b.Ba.length){var d=function(){c.isLive()?a.g.info("Skipping empty live interstitial "+b.$):null!=b.V&&0!==b.lo?c.seek(b.V):a.g.info("Empty VOD interstitial "+b.$+", continuing to next segment")};c.one(_.rg,d);a.o.push(function(){c.off(_.rg,d)});a.g.info(Eb+b.$+" to be skipped")}else{var e=a.a.getCurrentItem();if(e){var f=Bl(a,b,1);if(0!==f.length){var g=f[0].id;null!=b.V&&vk(a.a,b.V);e.next=[g];e.transition={uf:{position:b.startTime,itemId:g,V:b.V}};a.g.info(Eb+b.$+
113
+ " for "+(b.startTime+" s"));Cl(a,b,f)}}}};Cl=function(a,b,c){Zj(a.a,c);c=a.a;gk(c);c.f&&(c.f.$a&&rk(c,c.f,c.f.$a),tk(c),uk(c,c.f.next));b.state=kl;a.Za(new _.Q(_.qc,{detail:null}))};
114
+ Bl=function(a,b,c){var d=0,e=b.Ba.map(function(h,l){var m=b.$+"-"+l;d+=h.DURATION;return{id:m,config:{source:{url:Hl(a,h.URI),type:_.Il}},duration:h.DURATION,ub:d,Pb:b.$,next:[],$a:new Bi(c,l+1,b.Ba.length,h.DURATION,b.$,b.$j,b.customAttributes||null),audio:b.audio}});e.forEach(function(h,l){var m=l===e.length-1;m&&2===c||(m?(h.next=[Gf],h.transition={Da:Gf}):(m=m?Gf:h.Pb+"-"+(l+1),h.next=[m],h.transition={Da:m}))});e.forEach(function(h){h.wf=function(){var l=h.$a;a.g.info("Playing ad "+(l.f+"/"+
115
+ l.a)+" of interstitial "+h.Pb)}});if(null!=b.sc&&(e=Jl(a,b,e),0===e.length))return[];var f=e[0].wf;e[0].wf=function(){b.rj=!0;b.Ii&&(b.$g=!1);a.g.info("Playing interstitial "+b.$+" with "+(b.Ba.length+" assets and will resume primary content ")+((b.V?"at "+b.V.toFixed(1)+" s":"after interstitial ended")+"."));f()};e[0].Ri=function(h){null==b.V&&(b.V=b.startTime+h,vk(a.a,b.V),a.g.info("Primary content will resume at",b.V.toFixed(1),"s"));b.state=Kl};var g=e[e.length-1];g.Da=function(){b.state=Ll;ak(a.a,
116
+ e.map(function(h){return h.id}));2===c&&yk(a.a)};g.Ig=a.j.adReleaseDelayMs;return e};
117
+ Jl=function(a,b,c){var d=b.sc;a.g.info("Playout limit for "+b.$+" is "+(d+" s"));b=c[c.length-1].ub;if(d>=b)return a.g.info("Playout limit ("+d+") islarger or equal to total duration: ("+(b+").")),c;if(0>=d)return a.g.info("Discarding all ads."),[];var e=c.filter(function(f){return f.ub-f.duration<=d});e.forEach(function(f){f.$a.a=e.length});a=e[e.length-1];c=d-(a.ub-a.duration);.1>Math.abs(c-a.duration)?a.transition.Da=Gf:a.transition.uf={position:c,itemId:Gf,V:null};a.maxDuration=c;return e};
118
+ Gl=function(a,b){var c,d,e,f,g,h;return _.I(function(l){if(1==l.a){c=a.a.cf();if(!c)throw Error("No player found");d=c.getNetworkEngine();e=_.Mk(Hl(a,b));return _.x(l,Ml(d,e),2)}f=l.f;if(null===f)return a.g.warn("X-ASSET-LIST "+b+" returned no content"),l["return"]({ASSETS:[]});g=Nl(f);if(!g)throw new _.pi("Invalid X-ASSET-LIST list response");h=f;return l["return"](h)})};
119
+ Nl=function(a){return a&&a.ASSETS&&Array.isArray(a.ASSETS)?a.ASSETS.every(function(b){return typeof b.URI===_.gg&&typeof b.DURATION===_.k}):!1};ul=function(a){return a.$g&&!(a.once&&a.rj)&&[el,Ll].includes(a.state)};Dl=function(a){var b={URI:a.Ba[0].URI,DURATION:a.Ba[0].DURATION};a.uj&&(b[Zb]=a.uj);return{ASSETS:[b]}};Ol=function(){this.a=null};
120
+ Pl=function(){try{var a=URL.createObjectURL(new Blob);URL.revokeObjectURL(a);return a.slice(a.lastIndexOf("/")+1)}catch(c){var b=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(d){var e=(b+16*Math.random())%16|0;b=Math.floor(b/16);return("x"===d?e:e&3|8).toString(16)})}};Rl=function(a){this.m=a;this.j=this.m.getNetworkEngine();this.a=new _.ti;this.h=null;this.f=!0;Ql(this)};
121
+ Ql=function(a){a.a.on(window,"offline",function(){Sl(a,!1)});a.a.on(window,"online",function(){a.f||Tl(a)});a.a.on(a.m,bg,function(){return Ul(a)});a.a.on(a.m,"suspend",function(){return Ul(a)});a.a.on(a.m,_.Ug,function(){return Ul(a)});a.a.on(a.m,_.sf,function(){a.f||Tl(a)});a.a.on(a.m,_.Hf,function(){a.f||Tl(a)});a.a.on(a.m,_.dg,function(){switch(a.m.getState()){case 2:Ul(a);break;default:Ul(a)}})};Tl=function(a){a.m.getConfiguration().connectivityCheck&&(Vl(a),a.h=(new _.dj(function(){return Wl(a)})).ha(5))};
122
+ Ul=function(a){a.f&&Tl(a)};Vl=function(a){a.h&&(a.h.stop(),a.h=null)};Wl=function(a){var b,c;return _.I(function(d){if(1==d.a)return(b=a.m.getConfiguration().connectivityCheck)&&a.m?_.x(d,Xl(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;Sl(a,c);_.z(d)})};Sl=function(a,b){Vl(a);a.f!==b&&(a.f=b,a.m&&a.m.getConfiguration().connectivityCheck&&a.m.trigger(new _.Q(Ze,{online:a.f})))};_.Yl=function(){this.a=[]};
123
+ _.$l=function(a,b){a.a.push(Zl(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.am=function(){this.kj=this.Ff=this.done=!1;this.error=this.value=null;var a,b,c=new Promise(function(d,e){a=function(f){this.done=this.Ff=!0;this.value=f;d(f)};b=function(f){this.done=this.kj=!0;this.error=f;e(f)}});c.Ff=!1;c.done=!1;c.kj=!1;c.value=null;c.error=null;c.resolve=a;c.reject=b;return c};
124
+ _.cm=function(a,b){var c=[a];var d=bm.apply(_.cm,_.jh(c));if(!d||d.protocol.includes("."))c=b?[a,b]:[a,location.href],c=(d=bm.apply(_.cm,_.jh(c)))?c:null;if(!c)throw new _.N(_.O,1,1011,{message:"The provided URL is invalid.",url:a,base:b});d=_.v(c);c=d.next().value;d=d.next().value;this.a=new URL(c,d);this.f=a.startsWith("//")};bm=function(a,b){try{return new URL(a,b)}catch(c){return null}};em=function(){this.a=dm()};fm=function(a){return dm()-a.a};gm=function(a){var b=new em;b.a=a.a;return b};
125
+ dm=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};hm=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.h=new em};jm=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(im(a,d),Sk(c,d.byteLength,fm(a.h)),a.h.a=dm());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 jm(a,b,c)})})};
126
+ im=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};km=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.h=b;this.f=0};lm=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};
127
+ mm=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.j=new km(a);this.length=a;this.A=b;this.f=this.a=this.h=0;this.l=null;this.o=-1;this.w=new em};
128
+ pm=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,fm(a.w)),a.w.a=dm());if(f)return f=nm(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){lm(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=om(a);for(f=[];e;)f.push(e),e=om(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],
129
+ 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 pm(a,b,c,d)})})};om=function(a){if(0<=a.o&&a.f<a.o)return null;for(var b=qm(a);null!==b;){if(b.name===_.Ie){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=qm(a)}return null};
130
+ qm=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=rm(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=rm(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 _.N(_.O,3,3E3);}if(2097151<e)throw new _.N(_.O,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};
131
+ rm=function(a){var b=a.l.getUint32(a.a,!1);a.a+=4;return b};nm=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};
132
+ vm=function(a){var b=new sm,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new tm,e={Nd:!1,xj:!1};b={T:um(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.Nd||(e.Nd=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.xj=!0;d.abort()},a);b.T=b.T["finally"](function(){window.clearTimeout(f)})}return b};
133
+ um=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,t,u,y,B,A,C,E,D;return _.I(function(J){switch(J.a){case 1:return e=wm,f=new em,g=gm(f),_.F(J,2),_.x(J,e(a,c),4);case 4:h=J.f;l=Kk(h.headers);m={uri:h.url,data:null,headers:l,status:h.status,timeMs:0,responseStartMs:fm(g),request:b};if(Nk(h.status)){J.C(5);break}n=m;return _.x(J,h.arrayBuffer(),6);case 6:throw n.data=J.f,m.timeMs=fm(f),Pk(m);case 5:p=h.headers.get(ya);Rk(b,p);q=p?parseInt(p,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return B=
134
+ h.body.getReader(),A=new mm(q,!b.disableMergedFragments),C=function(P,U){if(d.Nd)return null;U&&U.data&&(Sk(b,U.data.byteLength,fm(g)),g.a=dm());return b.onFragment&&U?b.rateLimitBps?Tk(b.rateLimitBps,fm(f),b.bytesLoaded).then(function(){return b.onFragment(U)}):b.onFragment(U):null},E=m,_.x(J,pm(A,B,C,b.onProgress),12);t=h.body.getReader();u=new hm(q);return _.x(J,jm(u,t,b),9);case 9:y=J.f;if(!b.rateLimitBps){J.C(10);break}return _.x(J,Tk(b.rateLimitBps,fm(f),y.byteLength),10);case 10:m.data=y;J.C(8);
135
+ break;case 12:E.data=J.f;case 8:if(d.Nd)throw Error("Request was aborted");m.timeMs=fm(f);return J["return"](Ok(m));case 2:D=_.H(J);if(d.Nd)throw new _.N(1,1,7001,{url:a,request:b});if(d.xj)throw new _.N(1,1,1003,{url:a,request:b});if(D&&1001===D.code)throw D;_.Rh("Error while fetching data:",D);throw new _.N(1,1,1002,{url:a,error:D,request:b,status:-1},D);}})};
136
+ ym=function(a){var b=a.uris[a.uriIndex],c=new xm,d=new em,e=gm(d),f=0,g,h=new _.am;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=fm(e));p.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!l&&(p=p.getResponseHeader(ya),Rk(a,p),l=!0)};c.onload=function(p){p=p.target;var q=(p.getAllResponseHeaders()||"").trim().split("\r\n"),t={};
137
+ q=_.v(q);for(var u=q.next();!u.done;u=q.next())u=u.value.split(": "),t[u[0].toLowerCase()]=u.slice(1).join(": ");try{var y=fm(e);m||Sk(a,p.response?p.response.length:0,y);var B=_.Qk(t,p.response,p.status,b,p.responseURL,a,y,g);a.rateLimitBps?Tk(a.rateLimitBps,fm(e),a.bytesLoaded).then(function(){h.resolve(B)}):h.resolve(B)}catch(A){h.reject(A)}};c.onerror=function(p){p=p.target;if(0>=p.status)h.reject(new _.N(1,1,1002,{url:b,request:a,status:p.status}));else{var q=p.getAllResponseHeaders(),t={};if(q){q=
138
+ _.v(q.trim().split("\r\n"));for(var u=q.next();!u.done;u=q.next())u=u.value.split(": "),t[u[0].toLowerCase()]=u.slice(1).join(": ")}p=_.Qk(t,p.response,p.status,b,p.responseURL,a,fm(e),g);h.resolve(p)}};c.ontimeout=function(){h.reject(new _.N(1,1,1003,{url:b,request:a}))};c.onprogress=function(p){var q=fm(d);d.a=dm();if(100<q||p.lengthComputable&&p.loaded===p.total)Sk(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{T:h,
139
+ request:a,abort:function(){c.abort();h.reject(new _.N(1,1,7001,{url:b,request:a}));return Promise.resolve()}}};zm=function(){};_.Bm=function(a,b){b=void 0===b?!0:b;var c=_.Am(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")};_.Cm=function(a){a=window.atob(a.replace(/-/g,"+").replace(/_/g,"/"));for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b};
140
+ _.Dm=function(a){for(var b=new Uint8Array(a.length/2),c=0;c<a.length;c+=2)b[c/2]=window.parseInt(a.substr(c,2),16);return b};_.Em=function(a){for(var b="",c=0;c<a.length;++c){var d=a[c].toString(16);1===d.length&&(d="0"+d);b+=d}return b};_.Fm=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.length!==b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!==b[c])return!1;return!0};
141
+ _.Gm=function(a){for(var b=0,c=0;c<arguments.length;++c)b+=arguments[c].length;b=new Uint8Array(+b);for(var d=c=0;d<arguments.length;++d)b.set(arguments[d],c),c+=arguments[d].length;return b};_.Am=function(a){a=_.R.fromCharCode(_.Mi(a));return btoa(a)};
142
+ Im=function(a){try{var b=a.uris[a.uriIndex],c=_.Hm(b);return{T:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{T:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
143
+ _.Hm=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Rh("Bad data URI, failed to parse scheme"),new _.N(_.O,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Rh("Bad data URI, failed to extract encoding and MIME type"),new _.N(_.O,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?_.Cm(a).buffer:_.R.eb(a).buffer,contentType:c}};
144
+ _.Jm=function(a,b){this.T=a;this.B=b;this.a=!1};Zl=function(a,b){a.T.then(function(){return b(!0)},function(){return b(!1)});return a};Lm=function(a,b){_.Jm.call(this,new _.am,function(){return Promise.resolve()});this.F=a;this.h=null;this.w=this.T;this.f=-1;this.j=this.l=this.o=null;this.A=b||null;Km(this)};Mm=function(a,b,c){a.o=setTimeout(b,c)};
145
+ Km=function(a){a.h=a.F.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=Nm(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*Nm(e.request.fuzzFactor,.5));a.f*=Nm(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.l=h;Mm(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.N(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
146
+ 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.T}).then(function(e){a.w.resolve(e)})["catch"](function(e){if(e instanceof _.N){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return a.A&&a.A(e),Km(a);g&&e.a(_.O);a.w.reject(e)}else a.w.reject(e)})};Nm=function(a,b){return null===a||void 0===a?b:a};
147
+ _.Om=function(){this.h=[];this.f=[];this.j=[];this.w=!1;this.o=new _.Yl;this.a={};this.headers=new Map;this.l=0;this.A=null;this.a.data=Im;!window.fetch||!window.AbortController||_.ij(6)||_.jj()&&68<_.Jj().browserVersion.major?(this.a.http=ym,this.a.https=ym):(this.a.http=vm,this.a.https=vm)};Pm=function(a,b){a.A=b};Qm=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.R,_.x(e,a.fetch(b),2);d=e.f;return e["return"](c.Ji(c.ea(d.data)))})};
148
+ Ml=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.x(e,Qm(a,b),2);c=e.f;if(!c)return e["return"](null);try{d=JSON.parse(c);if(null==d||typeof d!==_.Se)throw Error("Not an object");return e["return"](d)}catch(f){throw new _.pi("Failed to parse JSON response","json-failed");}})};
149
+ _.Tm=function(a,b,c){if(a.w)return new Lm(Promise.reject(new _.N(1,1,7001,{url:b.uris[b.uriIndex],request:b})));a.l&&0<a.l&&(b.rateLimitBps=a.l);for(var d=[],e=_.v(a.h),f=e.next();!f.done;f=e.next())d.push(f.value);if(b.requestModifiers)for(e=_.v(b.requestModifiers),f=e.next();!f.done;f=e.next())d.push(f.value);b.requestModifiers=d;Rm(a,b);b.responseModifiers=_.jh(a.j).concat(_.jh(b.responseModifiers||[]));f=d=new _.am;try{e={};for(var g=_.v([{type:"public",modifiers:b.requestModifiers},{type:"internal",
150
+ modifiers:a.f}]),h=g.next();!h.done;e={Le:e.Le},h=g.next()){e.Le=h.value;for(var l={},m=_.v(e.Le.modifiers),n=m.next();!n.done;l={Ke:l.Ke},n=m.next())l.Ke=n.value,f=f.then(function(t,u){return function(y){if(p.a)throw new _.N(_.O,1,7001,y?{url:y.uris[y.uriIndex],request:y}:null);return"internal"===t.Le.type?u.Ke(y,c)||y:u.Ke(y)||y}}(e,l))["catch"](function(t){if(t instanceof _.N)throw t;throw new _.N(_.O,1,1006,null,t);})}f=f.then(function(t){return{request:t,plugin:Sm(a,t)}});var p=new Lm(f,a.A);
151
+ g={};var q=_.v(b.responseModifiers);for(n=q.next();!n.done;g={Je:g.Je},n=q.next())g.Je=n.value,p.then(function(t){return function(u){function y(){if(p.a)throw new _.N(_.O,1,7001,u?{url:u.request.uris[u.request.uriIndex],request:u.request}:null);}y();var B=t.Je(u)||u;y();return B}}(g))["catch"](function(t){return function(u){if(u instanceof _.N&&u.data&&u.data.response){var y=t.Je(u.data.response);if(y&&y.then)return y.then(function(){return Promise.reject(u)})}return Promise.reject(u)}}(g))["catch"](function(t){if(t instanceof
152
+ _.N)throw t;throw new _.N(_.O,1,1007,null,t);});_.$l(a.o,p);d.resolve(b);return p}catch(t){return new Lm(Promise.reject(t))}};Xl=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.I(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.C(2);break}e=_.Mk(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.F(g,4);return _.x(g,a.fetch(e).T,6);case 6:_.G(g,2);break;case 4:if(f=_.H(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};
153
+ Rm=function(a,b){for(var c=_.v(a.headers),d=c.next();!d.done;d=c.next()){var e=_.v(d.value);d=e.next().value;e=e.next().value;b.headers[d]||(b.headers[d]=e)}};Sm=function(a,b){var c=b.uris[b.uriIndex],d=new _.cm(c,location.href);d=d?d.a.protocol.slice(0,-1):"";var e=a.a[d];if(!e)throw new _.N(_.O,1,1E3,{url:c});return function(f){return e(f)}};Vm=function(){Um.forEach(function(a){return a()})};_.Wm=function(a){Um.push(a)};_.Ym=function(a){Xm&&performance.mark(a)};
154
+ _.$m=function(a,b,c){Xm&&(b=performance.measure(a,b,c),null!=b&&Zm.info('Step: "'+a+'" took '+b.duration.toFixed(0)+" ms."))};cn=function(a,b){var c=an;bn.set(a.toLowerCase().split(";")[0]+"-"+c,{priority:c,plugin:b})};_.gn=function(a,b){for(var c=_.v([dn,en,fn,an]),d=c.next();!d.done;d=c.next())if(d=bn.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};
155
+ hn=function(a,b){var c=b||Ei,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,_.jh(h))}};_.jn=function(a){return null!=a};kn=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 _.pi("No non-null, non-undefined value found");};
156
+ ln=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}};
157
+ _.mn=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;_.R.startsWith(this.path,
158
+ "/")||(this.path="/"+this.path);this.f=b.search;this.h=b.hash};_.nn=function(a){return a.scheme+"//"+(a.a+(a.port?":"+a.port:"")+a.path+a.h+a.f)};_.on=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)},""):""};
159
+ pn=function(a){var b={};a=a||"";a=a.substring(a.indexOf("?")+1);a=_.v(a.split("\x26"));for(var c=a.next();!c.done;c=a.next()){var d=c.value.split("\x3d");c=decodeURIComponent(d[0]);d=decodeURIComponent(d[1]||"");c&&(b[c]=d)}return b};_.qn=function(a,b){if(a.startsWith("http://")||a.startsWith(_.se))return a;var c=b;b.startsWith("//")&&(c=location.protocol+c);c=new URL(c);c.search="";return(new URL(a,c)).toString()};
160
+ _.rn=function(a){if(!a)return null;a=(new _.cm(a)).a.pathname.split("/");if(1>a.length)return null;a=a.pop().split(".");return 1>=a.length?null:a.pop().toLowerCase()};vn=function(a,b){for(var c=_.v(sn[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=_.v(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a===_.tn?"":null};_.wn=function(a,b){var c=a;b&&(c+=';codecs\x3d"'+b+'"');return c.replace(/\s/g,"")};_.xn=function(a){return a.split(";")[0]};
161
+ _.yn=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(","):""};zn=function(){};
162
+ _.Dn=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.oj()&&(a=360);var b=_.Ik();b.maxAttempts=3;a={source:"",license:An,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,ads:{hls:{enable:!0,resolutionOffsetSec:35}},manifest:{attemptParameters:_.Ik(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0,timeline:{version:1,type:void 0}},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,
163
+ bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,restrictions:Bn(a),useCmsd:!0},contentSteering:{enabled:!0,attemptParameters:_.Ik()},drm:null,cmcd:{enabled:!1,version:1,rtpMultiplier:5,deliveryMode:"headers"},enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:_.He,preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],preferSpatialAudio:!1,preferForcedSubtitles:!1,volume:null,startTime:null,loop:!1,lowLatencyMode:!1,
164
+ suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,xmlParser:_.Cn,streaming:{attemptParameters:b,bufferingGoal:10,rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,relativeTextTimestamp:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.1,disableAudioTracks:!1,disableVideoTracks:!1,smallGapLimit:.5,jumpLargeGaps:!0,gapTolerance:.001,durationBackoff:1,maxSegmentToMediaOffset:1,forceNativeTS:!1,preferNativeHlsOnSafari:!0,safeSeekOffset:5,stallEnabled:!0,
165
+ stallThreshold:3,stallSkip:.5,bufferLimitUpdateInterval:.5,overridePasp:!1,enableLiveEdgeChasing:!1,chasingRate:1.15,startChasingAt:5,stopChasingAt:2,chaseJumpDistance:10,patchEdgeWhenMixedContent:!1,ignoreDrift:!1,disableFragmentSupport:!1,disableMergedFragments:!1,ignoreManagedMediaSourceStreamingHints:!1},mediaSource:{codecSwitchingStrategy:_.Ff},restrictions:Bn(),tizen:{sideStreamText:_.ij(2)},safari:{enableHlsVideoTrackInfo:!1,enableMetadata:!1},mse:{sendPlaybackSessionIdHeader:!1},trickPlay:{speedUpMode:_.Md,
166
+ preferTrickPlayTracks:!0},playlist:{timeline:"basic",content:_.Ub,cropTimeline:!1},yospace:{enabled:!1},cmsd:{enabled:!0},mediatailor:{enabled:!1,sessionConfig:{}},disableRestrictions:!1,chromecast:{useSenderAbrConfig:!1,useSenderStreamingConfig:!1}};if(_.ij()||_.jj())a.ads.hls.enable=!1;if(_.hj("Edge/")||_.ij())a.streaming.gapDetectionThreshold=.5;_.jj()&&(a.streaming.stallEnabled=!1);_.lj()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=
167
+ .02);_.ij()&&(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};
168
+ _.Fn=function(a,b){b=void 0===b?{}:b;if(!a)return _.Dn();for(var c=[_.Dn()],d=!1,e=_.v(a),f=e.next();!f.done;f=e.next())f=f.value,null!==f&&void 0!==f&&(_.M.ia(f)&&(f={source:f}),f.lowLatencyMode&&!d&&(c.push({streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{lowLatencyMode:!0}}),d=!0),c.push(f),b.no||null==f.suggestedPresentationDelay||c.push({manifest:{suggestedPresentationDelay:f.suggestedPresentationDelay}}));
169
+ c=_.M.ua.apply(null,c);_.M.ia(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.M.R(c.volume)&&(!_.M.xa(c.volume)||_.M.isNaN(c.volume)))throw new _.N(_.O,7,7100,"config.volume is not a number");if(!_.M.R(c.preferredTextLanguage)&&!_.M.ia(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.N(_.O,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.M.R(c.preferredAudioLanguage)&&!_.M.ia(c.preferredAudioLanguage)&&!Array.isArray(c.preferredAudioLanguage))throw new _.N(_.O,
170
+ 7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.M.R(c.preferredAudioCodec)&&!_.M.ia(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.N(_.O,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.M.R(c.preferredVideoCodec)&&!_.M.ia(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.N(_.O,7,7100,"config.preferredVideoCodec is not a string or an array");if(!_.M.R(c.drm)){if(c.drm.env&&!_.M.ia(c.drm.env))throw new _.N(_.O,
171
+ 7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.M.ia(c.drm.offlineId))throw new _.N(_.O,7,7100,"config.drm.offlineId is not a string");}if(d=c.streaming){d.bufferingGoal=Number(d.bufferingGoal);d.rebufferingGoal=Number(d.rebufferingGoal);d.bufferBehind=Number(d.bufferBehind);d.smallGapLimit=Number(d.smallGapLimit);d.durationBackoff=Number(d.durationBackoff);if(!_.M.xa(d.bufferingGoal)||_.M.isNaN(d.bufferingGoal))throw new _.N(_.O,7,7100,"config.streaming.bufferingGoal is not a number");
172
+ if(!_.M.xa(d.rebufferingGoal)||_.M.isNaN(d.rebufferingGoal))throw new _.N(_.O,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.N(_.O,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.M.xa(d.bufferBehind)||_.M.isNaN(d.bufferBehind))throw new _.N(_.O,7,7100,"config.streaming.bufferBehind is not a number");if(!_.M.xa(d.smallGapLimit)||_.M.isNaN(d.smallGapLimit))throw new _.N(_.O,7,7100,"config.streaming.smallGapLimit is not a number");
173
+ if(!_.M.xa(d.durationBackoff)||_.M.isNaN(d.durationBackoff))throw new _.N(_.O,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.M.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.k)throw new _.N(_.O,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");En(c.restrictions);En(c.abr.restrictions);c.abr.initialRestrictions&&En(c.abr.initialRestrictions)}return c};
174
+ Bn=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}};
175
+ En=function(a){_.M.R(a.maxPixels)&&(a.maxPixels=Infinity);_.M.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.M.R(a.maxHeight)&&(a.maxHeight=Infinity);_.M.R(a.maxWidth)&&(a.maxWidth=Infinity);_.M.R(a.minPixels)&&(a.minPixels=0);_.M.R(a.minBandwidth)&&(a.minBandwidth=0);_.M.R(a.minHeight)&&(a.minHeight=0);_.M.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);
176
+ 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 _.N(_.O,7,7100,"Restrictions contain NaN");};Gn=function(a){return typeof a===_.Se&&!Array.isArray(a)&&"source"in a};
177
+ Hn=function(a){if(!a)return null;a=(new _.cm(a)).a.pathname.toUpperCase();return a.endsWith(".MPD")?_.Gc:a.endsWith(".M3U8")?_.Il:a.endsWith(".MP4")?_.Og:a.endsWith(".MP3")?"audio/mp3":a.endsWith("MANIFEST")||a.endsWith(".ISM")?_.Lc:null};_.Jn=function(a){var b;Gn(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.gg||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=In(b[c]);d&&a.push(d)}return a};
178
+ In=function(a){var b=null;_.M.ia(a)&&(a={url:a});typeof a===_.Se&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.M.R(a.drmProtected)||typeof a.drmProtected!==_.Xc||(b.drmProtected=a.drmProtected),_.M.R(a.isLive)||typeof a.isLive!==_.Xc||(b.isLive=a.isLive),_.M.R(a.name)||typeof a.name!==_.gg||(b.name=a.name),_.M.R(a.ic)||typeof a.ic!==_.gg||(b.ic=a.ic),_.M.R(a.hb)||typeof a.hb!==_.gg||(b.hb=a.hb));b&&!b.type&&(b.type=Hn(a.url),b.type?Kn.debug("Detect media type "+b.type+" for "+
179
+ a.url):Kn.warn("Unable to detect media type for "+a.url));return b};Ln=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};_.Nn=function(a){_.Mn[a.J]=a};
180
+ _.Pn=function(a){var b={attemptParameters:_.Ik(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,ignoreUnrecognizedInitData:!0,Oa:{},widevineVersion:_.Fd};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!==
181
+ a.ignoreUnrecognizedInitData&&(b.ignoreUnrecognizedInitData=!!a.ignoreUnrecognizedInitData),typeof a.widevineVersion===_.gg&&0<a.widevineVersion.length&&(b.widevineVersion=a.widevineVersion),a.env)){var c=_.Mn[a.env]||null;if(!c)throw _.Qh(_.Aa,_.wb+a.env+_.aa),new _.N(_.O,6,6015,_.Ba+a.env+"' is missing.");b.Oa=_.On(c,a.customData)||{};_.R.startsWith(a.env.toLowerCase(),be)&&(b.enforceSingleSession=!0)}return b};
182
+ Qn=function(a,b,c){var d=_.R.ea;this.h=a;this.f=b;JSON.parse(d(_.Cm(a)));this.a=JSON.parse(d(_.Cm(b)));this.j=c};
183
+ Sn=function(a){var b=Rn,c=_.R.eb,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=_.Cm(f);return l.verify(m,n,q.buffer,p.buffer)}).then(function(n){n?g():h(new _.pi("Signature Verification failed",Ag))})["catch"](h)}else g()})};Tn=function(a){this.f=a;this.a=null;this.g=new _.L("clpp.utils.LicenseKey")};
184
+ Un=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 Qn(b[0],b[1],b[2]);a.a=b}return a.a};
185
+ Vn=function(a){var b,c,d;return _.I(function(e){if(1==e.a)return b=Un(a),_.F(e,2),_.x(e,Sn(b),4);if(2!=e.a)return _.G(e,0);if((c=_.H(e))&&c.code===Ag)throw c;d=new _.cm(window.location.href);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(d.a.hostname))return e["return"]();throw c;})};
186
+ Wn=function(a){switch((a.ca[0]||{src:"",type:""}).type){case _.Gc:a="dash";break;case _.Lc:a="ss";break;case _.Il:a="hls";break;case _.Og:a="mp4";break;default:a=""}return a};Xn=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};Yn=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};Zn=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};
187
+ ao=function(a){var b=a.configuration,c="no";b.drm&&!_.M.ra(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(be)||$n(a).endsWith("drmtoday.com"))&&(c=be);return c};bo=function(a){a=a.drmInfo;var b="";if(a)switch(a.keySystem){case _.Fd:b="wv";break;case _.Dd:b="pr";break;case _.Bd:b="fps"}return b};co=function(a){a=a.drmInfo;var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};
188
+ eo=function(a){a=a.drmInfo;var b="";if(a)switch(a.videoRobustness){case Ta:case Ra:b="L1";break;case Sa:b="L2";break;case _.Db:case _.Cb:b="L3"}return b};$n=function(a){return(a=(a=a.drmInfo)&&a.licenseServerUri||"")?(new _.cm(a)).a.hostname:""};
189
+ io=function(a,b){var c="ie"===_.Jj().browser,d=b.configuration,e=_.jh(Array.from(_.ci.keys())).concat(_.jh(b.ij));d={"CL-KEY":a.f,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ia,"CL-USER-ID":Xn(d),"CL-ASSET-ID":Yn(d),"CL-SESSION-ID":Zn(d),"CL-PLAYBACK-TYPE":b.isLive?fo:go,"CL-CONTENT-TYPE":Wn(b),"CL-PLUGINS":e.join(" "),"CL-DRM":ao(b),"CL-DRM-CDM":bo(b),"CL-DRM-SEC-LEVEL":eo(b),"CL-DRM-OFFLINE":co(b),"CL-DRM-IP":$n(b)};ho&&ho.companionSdk&&(ho.companionSdk.name&&(d["CL-COMPANION-SDK"]=ho.companionSdk.name),
190
+ ho.companionSdk.version&&(d["CL-COMPANION-SDK-VERSION"]=ho.companionSdk.version));c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=e);e=_.Mk(["https://downloads.castlabs.com/r/register/"]);e.method="GET";e.headers=d;return(new _.Om).fetch(e).T.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=Un(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;
191
+ 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.";break;default:f=Promise.resolve();break a}a.g.error($a+l);f=Promise.reject(new _.N(_.O,7,g,l))}}return f})};
192
+ _.ko=function(a,b){a=_.jo(a);b=_.jo(b);return a.split("-")[0]===b.split("-")[0]};_.jo=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=lo.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};no=function(a){this.m=a;this.f=a.getNetworkEngine();this.h=mo(this);this.f.Gd(this.h);this.a=null};
193
+ mo=function(a){return function(b){var c=b.headers,d=b=null,e=_.M.ji(c,"cmsd-dynamic");c=_.M.ji(c,"cmsd-static");e&&(b=oo(e),a.a=b);if(c)try{e={};var f=c.split(",");for(c=0;c<f.length;c++){var g=po(f[c]),h=g.key,l=g.value;Object.keys(qo).includes(h)&&(e[qo[h]]=l)}d=_.M.pc(e)?e:null}catch(m){ro.error("CmsdManager parseCmsdStaticHeader_ failed:",m),d=null}(b||d)&&a.m.trigger(new _.Q("cmsd-event",{qp:b,Ep:d}))}};
194
+ oo=function(a){try{var b=a.split(",").map(function(c){var d={};c=c.split(";");for(var e=0;e<c.length;e++){var f=po(c[e]),g=f.key;f=f.value;Object.keys(yo).includes(g)&&(d[yo[g]]=f)}return d}).filter(function(c){return _.M.pc(c)});return 0<b.length?b:null}catch(c){return ro.error("CmsdManager parseCmsdDynamicHeader_ failed:",c),null}};
195
+ po=function(a){var b=a.split("\x3d"),c=b[0];b=b[1];if(!c)throw new _.pi("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 _.pi("Parsing CMSD, not recognized value type of "+a);};
196
+ S=function(a,b,c){_.yi.call(this);var d=this;Vm();this.g=new _.L("clpp.Player");this.g.info("SDK version: 6.28.0");if(!a)throw new _.N(_.O,7,7102);this.ya=new _.ti;this.f=this.F=b||_.Dn();this.l=null;void 0===this.f.license&&(this.f.license=An,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 _.N(_.O,7,7101,"No license provided in configuration!");this.j=
197
+ new Nj(a,c);this.G=this.A=this.a=this.I=null;this.J=new _.Om;this.h=null;this.ja=[];this.ka=!0;this.L={};this.Ia=null;this.Z=!0;this.da=this.U=!1;this.O=this.md=null;this.og=!1;this.gb=new Rl(this);this.B=null;this.on(_.dg,function(){d.getState()===_.zo&&(d.a?d.a.unload():Promise.resolve())});this.on(_.Cc,function(){d.og=!0});this.on(_.Bc,function(){d.og=!1});this.on(_.tg,function(){return Ao(d)});Bo(this,this.f.license);this.j.getMedia()&&(a=this.j.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),
198
+ this.g.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),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=_.v(Co);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)}}Do(this,a);this.P=_.pa;ii(this)};
199
+ _.Eo=function(a,b,c){c=void 0===c?null:c;null!=b&&b===a.a?a.a.forwardEventsTo(a):(a.a&&(a.a.stopForwardingEventsTo(a),a.a.destroy(),a.a=null,a.A=null),b&&(b.init(a.j,a.F),b.setNetworkEngine(a.getNetworkEngine()),b.forwardEventsTo(a),a.a=b,a.A=c))};Bo=function(a,b){a.I=new Tn(b);Vn(a.I)["catch"](function(c){setTimeout(function(){a.g.error($a+c);a.trigger(new _.Q(_.je,{detail:new _.N(_.O,7,7101)}));a.destroy()},1E3)})};
200
+ Fo=function(a,b){var c,d;_.I(function(e){if(1==e.a)return a.j.getMedia()||a.j.getCastElement(),a.I||(a.I=new Tn(a.f.license)),_.F(e,2),a.g.debug("Verifying license remotely"),_.x(e,io(a.I,b),4);if(2!=e.a)return a.g.debug("License verified remotely"),_.G(e,0);c=_.H(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(Ln,1E3,d,c);_.z(e)})};
201
+ Do=function(a,b){a.ja=b;for(var c=_.v(a.ja),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.L[e]=d)}a.Qc("onPlayerCreated")};
202
+ Go=function(a){var b,c;return _.I(function(d){switch(d.a){case 1:if(a.Z)return a.g.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.ya.off(document,Sg);a.trigger(new _.Q(_.Lf));a.j&&a.j.release();if(!a.h){d.C(2);break}return _.x(d,a.h.Dc(),3);case 3:a.h=null;case 2:if(!a.B){d.C(4);break}return _.x(d,a.B.release(),5);case 5:a.B=null;case 4:if(a.a)return b=null,c=a.a.on(_.dg,function(e){b=e}),d["return"](a.Qc(_.Xe).then(function(){a.a.stopForwardingEventsTo(a);
203
+ return Promise.all([a.a.release(),a.J.release()])}).then(function(){a.g.debug("Releasing player completed");b&&(a.g.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.dg,c);a.trigger(new _.Q(Kf))}));a.trigger(new _.Q(Kf));return d["return"](new Promise(function(e){return e()}))}})};
204
+ Io=function(a,b,c){if(a.P===_.pb)b=Ho(b,c);else if(2!==(a.a?a.a.canPlay(b[0],c):0)||a.da){a.da=!1;if(b){for(var d=a=null,e=0;e<b.length;e++);e=Object.values(_.Th);for(var f=0;f<b.length;f++)for(var g=0;g<e.length;g++){var h={jb:e[g],confidence:e[g].canPlay(b[f],c)};if(null===a||a.confidence<h.confidence)a=h,d=f}a&&typeof d===_.k&&0<a.confidence?(_.Uh.debug("Player Factory '"+a.jb.a()+"' can play",b[d]),b=new Sh(a.jb,d)):(_.Uh.debug("No compatible Player Factory found for sources:",b),b=null)}else b=
205
+ null;if(!b)throw new _.N(_.O,7,7003,"No player factory compatible with given sources found!");c=b.jb;a=c.create();b={jb:c,player:a,sourceIndex:b.sourceIndex}}else b={jb:a.A,player:a.a,sourceIndex:0};return b};Ho=function(a,b){var c=Wh(function(d){return d.f(_.pb)&&a.every(function(e){return 2===d.canPlay(e,b)})});if(!c)throw new _.N(_.O,7,7003,"No compatible player implementing playlist mode found!");return{jb:c,player:c.create(),sourceIndex:0}};
206
+ Ko=function(a){var b;return _.I(function(c){if(1==c.a){if(!a.a)return a.g.warn(sb),c["return"]();b=a.a;if(!b.Bh)return a.g.warn(xb),c["return"]();a.trigger(new _.Q(Ge));return _.x(c,b.Bh(),2)}return _.x(c,_.Jo(a),0)})};
207
+ _.Oo=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a){if(a.U)throw new _.N(_.O,7,7E3,"Player is already destroyed.");if(!a.j)throw new _.N(_.O,7,7E3,"No surface associated with this player!");_.Ym(nf);return _.x(f,a.release(),2)}if(3!=f.a){d=c||_.Jn(b);if(!b||0===d.length)throw new _.N(_.O,7,7003,jb);a.Ia=d;a.f=_.Fn([a.F,b,{source:d}]);a.Z=!1;e=Io(a,d,a.f);_.Eo(a,e.player,e.jb);Lo(a,a.a);a.a&&a.a.setSourceIndex(e.sourceIndex);Mo(a);a.a&&a.a.setCdnErrorCallback(a.O);No(a,a.f);a.f.cmsd.enabled&&
208
+ (a.B=new no(a),a.a.setCmsdManager(a.B));if(a.f.pauseWhenInBackground)a.ya.on(document,Sg,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});ji(a);return _.x(f,a.Qc("onContentWillLoad",a.f.source[e.sourceIndex]),3)}_.Ym(mf);_.$m("player.beforeLoad",nf,mf);_.z(f)})};
209
+ _.Po=function(a){return _.I(function(b){a.j.getMedia()||a.j.getCastElement();a.trigger(new _.Q(Ge));return _.x(b,Promise.all([a.a.load(a.f),a.h?a.h.load():Promise.resolve()]),0)})};Lo=function(a,b){try{var c=crypto.randomUUID()}catch(d){c=Pl()}a.g.info("Playback session started, ID:",c);b.setPlaybackSessionId(c);a.G=c};Qo=function(a){a.G&&(a.g.info("Playback session ended, ID:",a.G),a.G=null,a.a&&a.a.setPlaybackSessionId(null))};
210
+ So=function(a){var b,c,d,e;_.I(function(f){if(1==f.a){b=[];if(a.f.remoteTextTracks)for(c=_.v(a.f.remoteTextTracks),d=c.next();!d.done;d=c.next())e=d.value,b.push(a.getTrackManager().addTextTrack(e));return _.x(f,Promise.all(b),2)}Ro(a);_.z(f)})};
211
+ Ro=function(a){var b=_.Di(a.f.preferredTextLanguage).filter(function(f){return f}),c=a.f.preferForcedSubtitles,d=a.getTrackManager().oa().filter(function(f){return c?f.kind===_.le:f.kind!==_.le});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().na();e&&e.language?(e=_.jo(e.language||""),b.push(e)):(e=a.getTrackManager().La())&&e.language&&(e=_.jo(e.language||""),b.push(e));0===
212
+ 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=_.jo(f);if(f=d.find(function(h){h=_.jo(h.language||"");return _.ko(h,g)}))return a.getTrackManager().Ya(f),!0;c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles match the preferred languages: ",b);return!1})}};
213
+ _.Jo=function(a){var b;return _.I(function(c){if(1==c.a)return _.Ym(jf),Fo(a,{configuration:a.getConfiguration(),ca:a.ni(),drmInfo:a.getDrmInfo(),ij:Object.keys(a.L),isLive:a.isLive()}),So(a),ki(a),_.x(c,a.Qc(_.Ue),2);if(3!=c.a)return a.f.autoplay?(b=a.h?a.h.ed():!0)?_.x(c,a.play(),3):c.C(3):c.C(3);_.Ym(hf);_.$m("player.afterLoad",jf,hf);_.z(c)})};No=function(a,b){var c=ai(a,b);c&&(a.h=c.create(a))};
214
+ Ao=function(a){if(!a.h&&a.A&&a.a&&a.f.ads.hls.enable&&a.getTimelineCues().some(function(c){return Gk(c.schemeIdUri)})){var b=a.f.mse.sendPlaybackSessionIdHeader?a.G:null;a.h=new Ol;a.h.gd(a.a,a.A,b)}};Mo=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.I(function(c){return a.og&&a.md?_.x(c,a.md(b),0):c["return"]()})})};_.To=function(a){a&&(0<=Co.indexOf(a)||Co.push(a))};Uo=function(){this.Mc=null;this.f=[];this.h=[];this.Ca=new _.L(pd);this.a=null;this.j=!1};
215
+ Vo=function(a){return[a.Mc].concat(_.jh(a.f)).filter(function(b){return null!=b})};Xo=function(a,b){var c;_.I(function(d){c=function(){return Promise.all(a.f.filter(function(e){return null!=e.getLoadedSource()}).map(b))};return _.x(d,Wo(a,c),0)})};Yo=function(a,b){var c;return _.I(function(d){c=function(){return Promise.all(Vo(a).map(b))};return _.x(d,Wo(a,c),0)})};Wo=function(a,b){return _.I(function(c){if(1==c.a)return a.a?_.x(c,a.a,2):c.C(2);a.a=b().then(function(){a.a=null});_.z(c)})};
216
+ Zo=function(a){this.m=a;this.l=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.j=new _.ti;this.f=new Set;this.a=new Set;this.h=null;this.g=new _.L("clpp.native.Metadata")};ap=function(a,b){a.j.on(b,_.zc,function(c){c=c.track;c.kind===_.Le&&$o(a,c)})};
217
+ $o=function(a,b){a.g.debug("onMetadataTrackAdded_()");b.mode=_.pe;var c=!b.cues||0===b.cues.length;if(a.m.isLive()||!c){var d=b.cues;c=bp(d);cp(c);a.a=dp(c,a.l);0<a.a.size&&(ep(a,a.a),a.m.trigger(new _.Q(_.tg)));a.j.on(b,_.Ld,function(){for(var e=a.m.getPosition(),f=_.v(a.a),g=f.next();!g.done;g=f.next()){var h,l=a;g=g.value;if(Infinity===g.endTime){if(h=!l.f.has(g)){h=g.startTime;var m=h+.5;h=h<=e&&e<=m}h&&(l.f.add(g),l.m.trigger(new _.Q(_.rg,{detail:g})))}else h=g.startTime<=e&&e<=g.endTime,!h&&
218
+ l.f.has(g)?(l.f["delete"](g),l.m.trigger(new _.Q(_.sg,{detail:g}))):h&&!l.f.has(g)&&(l.f.add(g),l.m.trigger(new _.Q(_.rg,{detail:g})))}});a.m.isLive()&&(a.h=setInterval(function(){if(b.cues){var e=a.m.getSeekRange().start;for(var f=[],g=_.v(b.cues),h=g.next();!h.done;h=g.next())h=h.value,h.endTime<e&&f.push(h);fp(a,b,f);0<f.length&&a.g.debug("Evicted "+f.length+" old cues.");g=_.v(a.a);for(h=g.next();!h.done;h=g.next())h=h.value,h.endTime<e&&a.a["delete"](h);e=0<f.length}else e=!1;gp(a,b);f=bp(d);
219
+ var l=dp(f,a.l);g=new Set;h=!1;l=_.v(l);for(var m=l.next();!m.done;m=l.next()){m=m.value;var n=hp(a,m);n?(m.customAttributes&&(n.customAttributes=_.M.ua(n.customAttributes||{},m.customAttributes)||void 0),h=!0):(a.a.add(m),g.add(m))}h=0<g.size||h;cp(f);(e||h)&&a.m.trigger(new _.Q(_.tg));ep(a,g)},6E3))}};ep=function(a,b){for(var c=_.v(b),d=c.next();!d.done;d=c.next())a.m.trigger(new _.Q(_.qg,{detail:d.value}))};
220
+ hp=function(a,b){return Array.from(a.a.values()).find(function(c){return b.startTime===c.startTime&&b.endTime===c.endTime})||null};gp=function(a,b){if(b.cues){var c=ip(b.cues).filter(function(l){return l.type===Cd}),d=c.filter(function(l){return l.Gg}),e=c.filter(function(l){return!l.Gg});c=[];e=_.v(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var g=_.v(d),h=g.next();!h.done;h=g.next())h=h.value,jp(f,h)&&(c.push(f),h.Rh=f.startTime)}fp(a,b,c);0<c.length&&a.g.debug("Removed "+c.length+" duplicated cues.")}};
221
+ fp=function(a,b,c){c=_.v(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;try{b.removeCue(d)}catch(e){a.g.debug("Failed to remove cue",d,e)}}};jp=function(a,b){var c=a.endTime-a.startTime,d=b.endTime-b.startTime,e=a.Rh||a.startTime,f=b.Rh||b.startTime;return(Infinity===c&&Infinity===d||.01>Math.abs(c-d))&&.5>Math.abs(e-f)&&a.value.key===b.value.key&&a.value.data===b.value.data};
222
+ mp=function(a){var b=[],c={};a=_.v(a);for(var d=a.next();!d.done;c={Bd:c.Bd},d=a.next())c.Bd=d.value,(d=b.find(function(e){return function(f){var g=e.Bd;return f.startTime===g.startTime&&f.endTime===g.endTime}}(c)))?kp(c.Bd,d):(d=lp(c.Bd),b.push(d));return b};lp=function(a){var b=a.startTime,c=a.endTime;b={schemeIdUri:"",value:"",startTime:b,endTime:c,id:"T"+b.toFixed(2)+"-"+c.toFixed(2),type:_.qe,eventElement:null};kp(a,b);return b};
223
+ kp=function(a,b){if(a.key.startsWith("X-"))b.customAttributes||(b.customAttributes={}),b.customAttributes[a.key]=a.value,"X-CUSTOM-ID"===a.key&&(b.id=a.value);else if("SCTE35-OUT"===a.key||"SCTE35-IN"===a.key)b.schemeIdUri=_.Fg,b.type=_.Uf};cp=function(a){a.forEach(function(b){b.Gg=!0})};bp=function(a){return ip(a).filter(function(b){return b.type===Cd&&!b.Gg})};ip=function(a){var b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next())b.push(c.value);return b};
224
+ dp=function(a,b){var c=a.map(function(d){return{startTime:d.startTime,endTime:d.endTime,key:d.value.key,value:d.value.data,yi:!1}});c=np(c);b&&(c=op(c));return new Set(mp(c))};np=function(a){var b=new Set(a),c=new Set(a.filter(function(d){return"SCTE35-OUT"===d.key}).map(pp));a.filter(function(d){return"SCTE35-IN"===d.key}).forEach(function(d){c.has(pp(d))||(d.yi=!0)});return Array.from(b.values())};op=function(a){a.forEach(function(b){b.yi&&(b.endTime=b.startTime,b.startTime=0)});return a};
225
+ pp=function(a){return a.startTime+"-"+a.endTime};_.wp=function(a,b,c,d){d=void 0===d?_.qp:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.rp;this.writingMode=_.sp;this.lineInterpretation=_.tp;this.line=null;this.lineAlign=_.up;this.direction=vp;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
226
+ _.zp=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.xp;this.scroll=yp;this.cssClassList=[];this.writingMode=this.displayAlign=null};Ap=function(a){this.m=a;this.l=a.getTextDisplayer();this.f=this.h=null;this.a=new _.ti;this.j=!1;this.g=new _.L("clpp.native.CueHandler")};
227
+ Bp=function(a,b){var c=b.track;c.kind!==_.Le&&(c.mode===_.Xf&&(c.mode=_.pe),a.a.on(c,_.Ld,function(d){d=d.target||d.srcElement;d.mode=_.pe;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.l.append(d,[]))}))};_.Dp=function(a,b){for(var c=Cp[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===_.tn?"":null};
228
+ _.Fp=function(a,b,c){return a.map(function(d){d=_.rn(d)||"";return(d=_.Ep[b][d])?d:b===_.tn?c&&"vtt"!==c?_.Hc:_.ng:null}).filter(Boolean)[0]||null};_.Gp=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};_.T=function(a,b,c,d){d=void 0===d?{}:d;a=a.getAttribute(b);if(!a&&d.required)throw new _.N(_.O,4,4023,"Required attribute missing: "+b);return a?a.value:c||null};_.Hp=function(a,b){return _.T(a,b,void 0,{required:!0})};
229
+ _.Ip=function(a,b){this.name=a;this.value=b};
230
+ _.Jp=function(a,b,c,d,e,f,g,h,l,m,n,p,q,t,u,y,B){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;t=void 0===t?[]:t;u=void 0===u?null:u;y=void 0===y?function(){return""}:y;this.position=a;this.startTime=b;this.endTime=c;this.Fa=g;this.Ka=d;this.la=e;this.ga=f;this.keyInfo=(void 0===h?null:h)||null;this.Vd=_.M.R(l)?!1:!!l;this.timescale=m;this.horizontalTiles=n;this.verticalTiles=p;this.durationPerTile=q;this.a=t||[];this.h=!1;this.initSegment=u;this.ee=
231
+ y?y:function(){return""};this.Pa=B};_.Kp=function(a,b,c,d,e,f,g,h,l,m,n,p,q,t,u){t=void 0===t?[]:t;_.Jp.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,t,void 0===u?null:u);this.qa=0};_.Lp=function(a){if(typeof a!==_.gg)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:{ge:a,Ce:b,Eo:a*b}};Mp=function(){this.a=this.f=null;this.g=new _.L("clpp.drm.csl")};
232
+ Np=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[bh]=a.f),a.a&&(b.headers[ch]=a.a))};Op=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[bh];a.a=b.headers[ch];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(_.R.ea(_.Cm(c))),{delay:c.renewalPeriod,ep:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};
233
+ _.Qp=function(a){a=Pp[a];if(!a)return null;var b=_.Jj();return b.os===Aj&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.Rp=function(a){this.J=a;this.f={}};
234
+ _.On=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[_.Fd];g&&(c[_.Fd]={licenseUrl:g.licenseUrl,videoRobustness:ln(d,g.videoRobustness),audioRobustness:ln(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:kn(b?b.widevineDistinctiveIdentifierRequired:void 0,g.distinctiveIdentifierRequired,!1),persistentStateRequired:kn(b?b.widevinePersistentStateRequired:void 0,g.persistentStateRequired,!1),
235
+ serverCertificate:_.Sp(f,g.serverCertificate)});(g=a.f[_.Bd])&&(c[_.Bd]={licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.f[_.Dd])&&(c[_.Dd]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});return c};
236
+ _.Sp=function(a,b){return void 0===a?b:null===a?null:typeof a===_.gg?_.Qp(a):a};_.Tp=function(a,b){b=void 0===b?!1:b;this.f=_.M.xa(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.h=b;this.buffer=this.f.buffer};_.Vp=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.Mi(a.f.buffer);b=_.Mi(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.Up()}};_.W=function(a,b){try{a.f.setUint32(a.a,b,a.h),a.a+=4}catch(c){_.Up()}};_.Up=function(){throw new _.N(_.O,3,3E3);};
237
+ _.Wp=function(a,b){this.f=a;this.h=void 0===b?!0:b;this.a=0};_.Xp=function(a){return a.a<a.f.byteLength};_.Zp=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.Yp()}};_.$p=function(a){try{var b=a.f.getUint16(a.a,a.h);a.a+=2;return b}catch(c){_.Yp()}};_.aq=function(a){try{var b=a.f.getUint32(a.a,a.h);a.a+=4;return b}catch(c){_.Yp()}};_.bq=function(a){try{var b=a.f.getInt32(a.a,a.h);a.a+=4;return b}catch(c){_.Yp()}};
238
+ _.cq=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){_.Yp()}if(2097151<c)throw new _.N(_.O,3,3001);a.a+=8;return c*Math.pow(2,32)+b};dq=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.Zp(a);return c};_.eq=function(a,b){a.a+b>a.f.byteLength&&_.Yp();var c=a.a+a.f.byteOffset;c=a.f.buffer.slice(c,c+b);a.a+=b;return _.Mi(c)};
239
+ _.Yp=function(){throw new _.N(_.O,3,3E3,"Buffer read out of bounds.");};_.fq=function(){this.h=[];this.f=[];this.a=!1;this.g=new _.L("clpp.mp4")};_.gq=function(a){for(;_.Xp(a.reader)&&!a.parser.a;)a.parser.yf(a.start+a.headerSize,a.reader,a.partialOkay)};_.hq=function(a){for(var b=_.aq(a.reader);0<b&&!a.parser.a;--b)a.parser.yf(a.start+a.headerSize,a.reader,a.partialOkay)};_.iq=function(a){return function(b){var c=b.reader.Ua()-b.reader.getPosition();a(_.eq(b.reader,c))}};
240
+ jq=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.kq=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.lq=function(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)};mq=function(){};nq=function(a){var b="";try{b=_.R.$d(a)}catch(c){}return b};_.oq=function(a){a=nq(a);var b="";a.length&&(b=(new _.mn(a)).a);return b};
241
+ pq=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.R.ea(a)),d=_.Cm(c.sinf[0]);(new _.fq).M(_.$f,_.gq).M("schi",_.gq).M("tenc",function(e){e.reader.skip(6);_.Zp(e.reader)&&(e.reader.skip(1),b=_.Em(_.eq(e.reader,16)));e.parser.stop()}).parse(d)}catch(e){}return b};
242
+ qq=function(a,b,c){if(!c||!c.byteLength)throw new _.N(_.O,6,6102);var d;typeof b===_.gg?d=_.R.Jf(b,!0):d=b;a=_.R.Jf(nq(a),!0);b=new _.Tp(12+a.byteLength+d.byteLength+c.byteLength,!0);_.W(b,a.byteLength);_.Vp(b,_.Mi(a));_.W(b,d.byteLength);_.Vp(b,_.Mi(d));_.W(b,c.byteLength);_.Vp(b,_.Mi(c));return _.Mi(b.buffer)};_.rq=function(a){var b=_.Mi(a.body);b=_.Bm(b);a.headers[za]=Mc;a.body=_.R.eb("spc\x3d"+b).buffer};
243
+ _.sq=function(a){try{var b=_.R.ea(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=Ui(_.Cm(b))};tq=function(){};
244
+ zq=function(){var a=uq;if(a===vq)return"https://lic.drmtoday.com";if(a===wq)return"https://lic.staging.drmtoday.com";if(a===xq)return"https://lic-demo.staging.drmtoday.com";if(a===yq)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};Dq=function(a){var b=zq();if(a===_.Fd)return b+Aq;if(a===_.Dd)return b+Bq;if(a===_.Bd)return b+Cq;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
245
+ Eq=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
246
+ _.Gq=function(a,b,c){b=nq(b);c=c&&c.customData?c.customData:{};b=new _.mn(Eq(b));var d=pn(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.R.pf(""+a)&&(d.assetId=a,Fq.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.R.pf(""+e)&&(d.variantId=e,Fq.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],Fq.debug("KeyId found in FPS SKD. Removing other parameters")):
247
+ a=["assetId","variantId"];b.f=_.on(d,!1,a);"/"!==b.path||b.j.includes(b.a+"/")||(b.path="");b=_.nn(b);return c.fpsContentId=b};_.Iq=function(a,b,c,d){d=void 0===d?!0:d;c=a.drm;c&&c.env.startsWith(Fa)?c.customData&&(_.Hq(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)):Fq.warn(gb)};
248
+ Jq=function(a,b,c){_.Iq(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.cm(b.uris[0]);c.a.searchParams.set(_.df,a.toString());b.uris[0]=c.toString()};
249
+ _.Kq=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.Iq(a,b,c,!1);b.headers[za]=Mc;c={spc:_.Am(b.body)};if((a=a.drm)&&a.env.startsWith(Ga)&&d){a={};var e=pn((new _.mn(Eq(d))).f);d=e.keyId;if(e=e.assetId)Fq.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(Fq.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(Fq.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(Fq.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
250
+ _.R.yd(_.on(c,!0))};_.Lq=function(a,b){Fq.debug("Clearing response data");if(200===b.status){var c=_.R.ea(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.Cm(c).buffer}};_.Mq=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(Fa))Fq.warn(gb);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(Ga)){var d=new _.cm(b.uris[0]),e=d.a.pathname;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.a.pathname=e;b.uris[0]=d.toString()}};
251
+ _.Nq=function(a,b){try{var c=_.Mi(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));Fq.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){Fq.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};
252
+ _.Hq=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};_.M.pc(d)&&(a.headers["dt-custom-data"]=btoa(JSON.stringify(d)));(c=c.customData.authToken)&&(a.headers["x-dt-auth-token"]=c)}};Pq=function(a){var b={},c=a?a[dh]:void 0;a=Oq[a?a[dh]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};
253
+ Qq=function(a){a=a["x-dt-li"];if(!a)return null;try{var b=JSON.parse(atob(a));a={};b.ti&&(a.requestId=b.ti);b.rpd&&(a.delay=Number(b.rpd)/1E3);return a}catch(c){return Fq.warn("Unable to parse DRMtoday License Info header (x-dt-li)",c),null}};_.Rq=function(a){this.f=a;this.a=void 0};Sq=function(){this.size=0;this.a=void 0;this.g=new _.L("clpp.drm.eme.MediaKeyStatusMap")};Tq=function(a,b){a.size=void 0===b?0:1;a.g.debug("Setting key status to",b);a.a=b};
254
+ Vq=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Uq.value().get(b),c.one(a,b,d))};Wq=function(){this.a=this.f=null};
255
+ Xq=function(a,b){this.keySystem=a;if(a.startsWith(_.Bd))for(var c=_.v(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.Nf)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.$e,distinctiveIdentifier:_.$e,initDataTypes:e.initDataTypes,sessionTypes:[lg],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=_.v(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])&&
256
+ (d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.v(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,_.Og));d=g?d:null}if(d){this.a=d;return}}c=Error(Qb);c.name=ob;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
257
+ Yq=function(a){this.f=null;this.h=new WebKitMediaKeys(a);this.a=new _.ti;this.j=0;this.g=new _.L(td);this.g.info("Created Media Keys for "+a)};
258
+ Zq=function(a,b){a.f=b;_.wi(a.a);if(!b)return Promise.resolve();a.a.on(b,ge,function(c){_.Qh("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,$g,function(c){a.g.debug("Handle webkitNeedKey event");c=_.Mi(c.initData);if(_.Ti(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
259
+ c=_.R.Gc(c.subarray(4),!0);c=_.R.eb(c);var d=new Event(ge);d.initDataType="skd";d.initData=Ui(c);a.f.dispatchEvent(d)});Vq(b,HTMLMediaElement.HAVE_METADATA,a.a,function(){return b.webkitSetMediaKeys(a.h)});return Promise.resolve()};$q=function(a,b){_.yi.call(this);this.a=null;this.o=a;this.f=this.h=null;this.j=new _.ti;this.sessionId=b;this.expiration=NaN;this.closed=new _.am;this.l=!1;this.keyStatuses=new Sq;this.g=new _.L(td)};ar=function(a,b){Tq(a.keyStatuses,b);a.dispatchEvent(new _.Q(ve))};
260
+ br=function(){};cr=function(){this.a=null;this.g=new _.L("clpp.drm.eme.StandardEmeManager")};dr=function(){};er=function(){this.f=this.a=null;this.h="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.h="webkit")};
261
+ fr=function(a,b,c,d){this.h=a;this.a=this.keySystem=c;a=!1;c===_.af&&(this.a=Wg,a=!1);var e=!1;d=_.v(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=_.v(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=_.v(f.videoCapabilities),n=g.next();!n.done;n=g.next())m=n.value,m.contentType&&(l=!0,b.canPlayType(m.contentType,
262
+ this.a)&&(h.push(m),e=!0));l||(e=b.canPlayType(_.Og,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.Nf||a||(e=!1);if(e){this.f=f;return}}b=Qb;if(c===_.af||c===_.Fd)b="None of the requested configurations were supported.";c=Error(b);c.name=ob;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};gr=function(a,b){this.h=a;this.o=b;this.a=null;this.f=new _.ti;this.j=[];this.l=new Map};
263
+ jr=function(a,b){a.a=b;_.wi(a.f);b&&(a.f.on(b,a.h+"needkey",function(c){var d=new Event(ge);d.initDataType=_.fd;d.initData=Ui(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.h+"keymessage",function(c){var d=hr(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.Q(_.Ke,{messageType:e?ye:xe,message:c.message});_.Qh("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.Rh("Session not found",c.sessionId)}),a.f.on(b,a.h+"keyadded",function(c){(c=
264
+ hr(a,c.sessionId))&&c.ready()}),a.f.on(b,a.h+"keyerror",function(c){var d=hr(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?ir(d,_.bf):1===e?ir(d,"expired"):ir(d,_.ue))}}))};
265
+ hr=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};kr=function(a,b,c,d){_.yi.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 _.am;this.keyStatuses=new Sq};
266
+ mr=function(a,b,c){if(a.o)return Promise.reject(Error("The session is already initialized."));a.o=!0;try{if(a.l===_.ef)if(c)var d=_.Mi(_.R.eb("LOAD_SESSION|"+c));else{var e=_.R.eb("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.Mi(b),e.byteLength);d=f}else d=_.Mi(b)}catch(h){return Promise.reject(h)}a.f=new _.am;var g=lr(a,"generateKeyRequest");try{a.j[g](a.h,d)}catch(h){if(h.name!==Xa)return a.f=null,Promise.reject(h);(new _.dj(function(){try{a.j[g](a.h,d)}catch(l){a.f.reject(l),
267
+ a.f=null}})).ha(.01)}return a.f};nr=function(a,b,c){if(a.a)a.a.then(function(){return nr(a,b,c)})["catch"](function(){return nr(a,b,c)});else{a.a=b;if(a.h===Wg){var d=_.R.ea(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=_.Cm(e.keys[0].k);e=_.Cm(e.keys[0].kid)}else d=_.Mi(c),e=null;var f=lr(a,"addKey");try{a.j[f](a.h,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};ir=function(a,b){Tq(a.keyStatuses,b);a.dispatchEvent(new _.Q(ve))};
268
+ lr=function(a,b){return a.w?a.w+b.charAt(0).toUpperCase()+b.slice(1):b};or=function(){};pr=function(){};qr=function(){};rr=function(){};ur=function(a,b){var c=sr;if(a){var d=c.find(function(e){return e.a()===a});if(d)return tr.info(Yb+d.a()),d.create();tr.info("Cannot create selected EME manager, falling back to the default.")}if(b&&(d=c.find(function(e){return e.a()===b})))return tr.info(Yb+d.a()),d.create();c=c[0];if(!c)throw Error("Missing EME managers.");tr.info(Yb+c.a());return c.create()};
269
+ _.vr=function(){};wr=function(a,b,c){this.j=new Uint8Array(a);this.a=b;this.f=c};xr=function(){wr.apply(this,arguments)};_.zr=function(a){var b=_.Dm(a);b=parseInt(b.byteLength,10).toString(16);b=_.Dm("12"+b+a);return new xr(yr,a,b)};
270
+ _.Ar=function(a){function b(t){switch(t){case 0:do if(!_.Xp(d))throw Error("not enough data to skip!");while(_.Zp(d)&128);break;case 1:d.skip(8);break;case 2:d.skip(c());break;case 3:for(;4!==(t=c()&7);)b(t);break;case 5:d.skip(4);break;default:throw Error("invalid wire type "+t);}}function c(){for(var t=_.Zp(d),u=(t&127)>>>0,y=7;128<=t&&28>=y;)t=_.Zp(d),u=(u|(t&(28>y?127:15))<<y)>>>0,y+=7;return 28<y?-1:u}var d=new _.Wp(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.aq(d);var e=_.aq(d);
271
+ e=_.kq(e);var f=_.aq(d),g=f>>>24;f&=16777215;var h=_.eq(d,16);h=_.Em(h);if(0<g){var l=_.aq(d);d.skip(16*l)}l=_.aq(d);for(var m=[],n=null;_.Xp(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=dq(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.Qh("Parsed WV PSSH Box","size",a,"name",e,Jg,g,"flags",f,"size",l,"systemId",h,"contentId (base64)",n?_.Am(n):"","keyIds",m.map(function(t){return _.Em(t)}));return 0<m.length?_.zr(_.Em(m[0])):null};
272
+ _.Br=function(a,b,c,d,e,f){f=void 0===f?null:f;wr.call(this,a,b,d);this.version=e;this.h=c;this.l=f};
273
+ _.Hr=function(a){var b=_.Cr;a:{var c=new _.Wp(new DataView(a.buffer),!0);_.aq(c);for(_.$p(c);_.Xp(c);)if(1===_.$p(c)){var d=_.$p(c);c=_.eq(c,d);break a}c=null}c||(c=a);a=_.R.Gc(c,!0);d=b.we(a,"WRMHEADER");a=d.getAttribute(Jg)||"";d=b.Ja(d,"DATA");var e=b.Ja(d,"LA_URL");b=e?b.sa(e):"";e=_.Cr;var f=e.Ja(d,"KID");if(f)if(f=e.sa(f)){var g=e.Ja(d,qa);e=g?e.sa(g):null;e={value:f,bg:e}}else e=null;else e=null;d=e?[e]:(e=Dr(d))?[e]:(d=Er(d))?d:null;e=d&&d[0]||{};d=e.bg;e=_.Cm(void 0===e.value?"":e.value);
274
+ e=_.Fr(e);e=_.Em(e);return new _.Br(_.Gr,e,b,c,a,d)};_.Fr=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=_.Mi(a);a.set(b,0);return a};Dr=function(a){var b=_.Cr;a=b.Ja(a,"PROTECTINFO");if(!a)return null;var c=b.Ja(a,"KID");if(!c)return null;b=c.getAttribute("VALUE");if(!b)return null;a=c.getAttribute(qa);c=c.getAttribute("ALGID");return{value:b,bg:a,Tj:c}};
275
+ Er=function(a){var b=_.Cr;a=b.Ja(a,"PROTECTINFO");if(!a)return null;a=b.Ja(a,"KIDS");if(!a)return null;a=b.aa(a,"KID");if(!a.length)return null;b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(qa);d=d.getAttribute("ALGID");b.push({value:c,bg:e,Tj:d})}}return b.length?b:null};Ir=function(a){this.f=[];this.h=[];this.a=[];8<=a.byteLength&&(new _.fq).ba("pssh",this.j.bind(this)).parse(a.buffer);0===this.a.length&&_.Lh("No pssh box found!")};
276
+ _.Mr=function(a,b){var c=this;this.D=a;this.lc=b;this.K=new Set;this.F=this.J=this.l=null;this.da=!1;this.a=null;this.L=Jr;this.B=new _.ti;this.P=new Mp;this.h=new Map;this.O=[];this.I=new _.am;this.Ib=0;this.f=null;this.w=function(d){c.A=!0;c.G=!1;c.I.reject(d);a.onError(d)};this.o=new Map;this.ka=new Map;this.fa=new _.dj(function(){return Kr(c)});this.j=!1;this.Ia=new _.am;this.H=!1;this.ja=[];this.gb=!1;this.Z=0;this.g=new _.L("clpp.drm.DrmEngine");this.ya=(new _.dj(function(){Lr(c)})).Hb(1);this.I["catch"](function(){});
277
+ this.A=this.G=!1;this.U=null};
278
+ Or=function(a){var b,c,d,e,f;return _.I(function(g){switch(g.a){case 1:a.B.release();a.B=null;a.P.release();a.P=null;a.A=!1;a.G=!1;a.I.reject();a.ya.stop();a.ya=null;a.fa.stop();a.fa=null;b=Array.from(a.h.keys());c=_.v(a.h.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.ld&&e.ld.stop();a.h.clear();return _.x(g,Promise.all(b.map(function(h){return Promise.resolve().then(function(){var l;return _.I(function(m){if(1==m.a)return a.g.debug("Closing session",h.sessionId),_.F(m,2),_.x(m,Nr(h),4);
279
+ if(2!=m.a)return _.G(m,0);l=_.H(m);a.g.warn("Error while closing session",l);_.z(m)})})})),2);case 2:if(!a.F){g.C(3);break}_.F(g,4);return _.x(g,a.l.Pd(null),6);case 6:_.G(g,5);break;case 4:f=_.H(g),a.g.warn("Error while resetting media keys",f);case 5:a.F=null;case 3:a.l=null,a.a=null,a.K.clear(),a.J=null,a.O=[],a.f=null,a.w=null,a.D=null,a.Z=0,a.U=null,_.z(g)}})};
280
+ _.Rr=function(a,b,c){c=void 0===c?[]:c;a.L=Pr;a.O=c;a.H=0<c.length;a.g.debug("Using Persisted Licenses: "+a.H);a.f&&a.f.enableSessionCacheForSkd&&a.g.info("Enabled session cache for SKD license requests");return _.Qr(a,b)};
281
+ Xr=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.M.ih(a.f.Oa);Sr(b,d)}var e=a.f.Oa[_.Bd];d=b.some(function(g){return g.drmInfos.some(function(h){return h.keySystem===_.Bd})});if(!1!==a.f.hp&&_.nj()&&!d&&e){var f=_.v(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos.push({keySystem:_.Bd,licenseServerUri:e.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[],
282
+ periodId:null})}if(e=Tr(a))for(f=_.v(b),d=f.next();!d.done;d=f.next())d.value.drmInfos=[e];d=Ur(b);Vr(a,d);d=_.v(d);for(e=d.next();!e.done;e=d.next())Wr(e.value,a.f.Oa);return c};_.Qr=function(a,b){var c=Xr(a,b),d=Ur(b);d=_.v(d);for(var e=d.next();!e.done;e=d.next())Yr(a,e.value,a.f.Oa);d=Zr(a,b);if(!d.size)return a.da=!0,Promise.resolve();_.Ym(Sd);d=_.$r(a,d);return(c?d:d["catch"](function(){})).then(function(){_.Ym(Rd);_.$m("DRM queryMediaKeys_()",Sd,Rd)})};
283
+ Ur=function(a){var b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next()){c=_.v(c.value.drmInfos);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};Vr=function(a,b){for(var c=_.v(b),d=c.next();!d.done;d=c.next())d=d.value,""===d.licenseServerUri||a.f.Oa[d.keySystem]||(a.f.Oa[d.keySystem]={licenseUrl:""})};
284
+ as=function(a){var b;return _.I(function(c){switch(c.a){case 1:if(a.l.ef())return c["return"]();if(!a.U){c.C(2);break}return _.x(c,a.U,3);case 3:return c["return"]();case 2:return _.F(c,4),a.U=a.l.Pd(a.J),_.x(c,a.U,6);case 6:_.G(c,0);break;case 4:b=_.H(c);if(a.j)return c["return"]();a.w(new _.N(_.O,6,6003,b.message,b));_.z(c)}})};
285
+ cs=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Handle encrypted event for type "+b.initDataType),_.x(c,as(a),2);if(!b.initData)return c["return"]();_.bs(a,b.initDataType,_.Mi(b.initData));_.z(c)})};
286
+ _.is=function(a,b){if(!a.J)return ui(a.B,b,function(){a.w(new _.N(_.O,6,6010))}),Promise.resolve();a.F=b;a.l.Xe(b);a.B.one(a.F,_.gf,function(){return ds(a)});a.B.on(a.F,_.Vg,function(e){var f=a.G;a.G=!a.A;!f&&a.G&&(a.g.info("Waiting for DRM license key delivery"),a.D.onEvent(e))});var c=a.a.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.l.Od()!==es||a.O.length)d=as(a);c=Promise.resolve();_.jj()&&38===_.kj().major||(a.a&&a.a.keySystem!==_.af&&!a.a.serverCertificate&&
287
+ (c=fs(a)),c=c.then(function(){return _.gs(a)}));return Promise.all([d,c]).then(function(){a.j||(_.hs(a),a.B.on(a.F,ge,function(e){return cs(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.a&&a.a.keySystem===_.Fd&&1>a.Z&&a.a.serverCertificate&&a.a.serverCertificate.length)return a.g.warn("Detected invalid widevine server certificate!. Retrying"),a.w(new _.N(1,6,6004)),a.a.serverCertificate=null,a.Z++,_.is(a,b);1<=a.Z&&a.g.info("Could not get valid widevine server certificate. Giving up");
288
+ throw e;}})};_.gs=function(a){var b,c;return _.I(function(d){if(1==d.a){if(!(a.J&&a.a&&a.a.serverCertificate&&a.a.serverCertificate.length))return d.C(0);_.F(d,3);return _.x(d,a.J.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."),_.G(d,0);c=_.H(d);throw new _.N(_.O,6,6004,{browserError:c.message});})};
289
+ fs=function(a){var b=a.keySystem(),c=a.f.Oa[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.D.getConfiguration();return js(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.Mk([d],a.f.attemptParameters);f.type=3;f.licenseRequestType=id;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.D.Cb.fetch(f).T}).then(function(f){a.a.serverCertificate=
290
+ _.Mi(f.data)})["catch"](function(f){var g=f.data.headers;g=Object.assign({message:Na,url:f.data.url,status:f.data.status,response:f.data.response},g?{headers:g}:{},Pq(g));throw new _.N(_.O,6,6100,g,f);})};js=function(a,b){var c,d;return _.I(function(e){c=a.D.od();return c?(d=b&&b.drm&&b.drm.customData)?_.x(e,c(d),0):e["return"]():e["return"]()})};ks=function(a,b){if(!a)return!1;for(var c=0;c<b.af.length;c++)if(_.Fm(a,b.af[c]))return!0;return!1};
291
+ _.hs=function(a){for(var b=a.a?a.a.initData||[]:[],c=_.v(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.ij(2);if(a.f.enforceSingleSession&&!a.keySystem().startsWith(_.Bd)){var f=a.h.values();f=_.v(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.Fm(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+
292
+ ".")),ks(d.initData,g)||(g.af.push(d.initData),d.keyId&&!g.sb.includes(d.keyId)&&g.sb.push(d.keyId),a.o.get(d.keyId)||a.o.set(d.keyId,eg)),e=!1)}!e||a.H&&a.L===Pr||(_.ls(a,d.keyId,d.initData)&&(e=!1),e&&(a.g.info("Request new media key session on create"),ms(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.v(a.O);for(d=c.next();!d.done;d=c.next())_.ns(a,d.value);b.length||a.O.length||(a.A||a.g.info(Ca),a.A=!0,a.G=!1,a.I.resolve());return a.I};
293
+ _.bs=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.H||a.L!==Pr)){var e=a.keySystem();if(!e.startsWith(_.Bd)&&b===_.fd){var f=new Ir(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.F.webkitCurrentPlaybackTargetIsWireless||
294
+ _.ij(2)||a.keySystem().startsWith(_.Bd)||!_.ls(a,d,c,!0))&&ms(a,d,null,b,c)}};
295
+ _.ls=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.v(a.h.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.h.get(f);if(_.Fm(c,g.initData))return b?g.sb.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.sb.push(b),a.o.get(b)||a.o.set(b,eg),d&&a.g.info(Ib+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.g.info(Ib+(f.sessionId+"'")),!0;if(ks(c,g))return d&&a.g.info("Skipping Session creation. License for init data was already requested [extra]"),
296
+ !0}return!1};os=function(a){var b=Infinity;a=a.h.keys();a=_.v(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};
297
+ Zr=function(a,b){var c=new Set(Ur(b)),d=a.H?_.Nf:_.$e,e=a.H?[_.ef]:[lg],f=new Map,g=_.v(c);for(c=g.next();!c.done;c=g.next())c=c.value,f.set(c.keySystem,{initDataTypes:[_.fd],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.$e,persistentState:d,sessionTypes:e,label:c.keySystem,drmInfos:[]});d={};e=_.v(b);for(c=e.next();!c.done;d={Nf:d.Nf,Cd:d.Cd,Tf:d.Tf,Dd:d.Dd},c=e.next()){c=c.value;g=c.audio;var h=c.video;d.Nf=g?_.ps(g):"";d.Cd=null;g&&"ac-3"===g.codecs.toLowerCase()&&_.ij()&&(d.Cd=
298
+ _.ps(g,_.de));d.Tf=h?_.ps(h):"";d.Dd=null;h&&"ac-3"===h.codecs.toLowerCase()&&_.ij()&&(d.Dd=_.ps(h,_.de));var l={},m=_.v(c.drmInfos);for(c=m.next();!c.done;l={fb:l.fb},c=m.next())c=c.value,l.fb=f.get(c.keySystem),l.fb.drmInfos.push(c),c.initData&&c.initData.length&&(l.fb.initDataTypes=_.jh(new Set(c.initData.map(function(n){return n.initDataType}))).concat()),c.distinctiveIdentifierRequired&&(l.fb.distinctiveIdentifier=_.Nf),c.persistentStateRequired&&(l.fb.persistentState=_.Nf),g&&_.Di(c.audioRobustness).forEach(function(n,
299
+ p){return function(q){var t={robustness:q||"",contentType:n.Nf};p.fb.audioCapabilities.find(function(u){return u.robustness===t.robustness&&u.contentType===t.contentType})||p.fb.audioCapabilities.push(t);n.Cd&&p.fb.audioCapabilities.push({robustness:q||"",contentType:n.Cd})}}(d,l)),h&&_.Di(c.videoRobustness).forEach(function(n,p){return function(q){var t={robustness:q||"",contentType:n.Tf};p.fb.videoCapabilities.find(function(u){return u.robustness===t.robustness&&u.contentType===t.contentType})||
300
+ p.fb.videoCapabilities.push(t);n.Dd&&p.fb.videoCapabilities.push({robustness:q||"",contentType:n.Dd})}}(d,l))}return f};_.ps=function(a,b){var c=_.wn(a.mimeType,b||a.codecs);if(_.gn(c,a.type)){var d=a.type,e=_.gn(c,d);e&&(e=e(),c=e.convertCodecs(d,c),e.destroy())}return c};
301
+ _.$r=function(a,b){function c(n,p,q){p.drmInfos.some(function(t){return!!t.licenseServerUri})===n&&(f=f["catch"](function(){if(a.j)return null;if(q===_.Dd){if((_.gj()||g.os===Cj&&_.hj("Chrome")&&!_.gj())&&!a.f.Oa[q].useLegacySystem)return p.label=Ed,a.l.Wb(Ed,[p])["catch"](function(){a.g.warn("Unable to create com.microsoft.playready.recommendation. Falling back to com.microsoft.playready.");p.label=_.Dd;qs(p);return a.l.Wb(q,[p])});qs(p)}if(q===_.Fd&&a.f.widevineVersion!==_.Fd){var t=a.f.widevineVersion;
302
+ if(!t.startsWith(_.Fd))return a.g.error('Invalid "widevineVersion" value "'+t+'".'),Promise.reject();var u=Object.assign({},p,{label:t,distinctiveIdentifier:_.$e,persistentState:_.$e});return a.l.Wb(t,[u])["catch"](function(){return a.l.Wb(q,[p])})}return a.l.Wb(q,[p])["catch"](function(y){a:{if(q===_.Fd&&rs(p)){var B=_.Jj();if(rs(p)&&B.os===Aj&&B.browser===kd){a.g.warn("requestMediaKeySystemAccess() failed",y);a.g.warn("Will try to recover by removing the robustness attribute of videoCapabilities and audioCapabilities.");
303
+ qs(p);y=a.l.Wb(q,[p]);break a}}throw y;}return y})}))}if(1===b.size&&b.has(""))return Promise.reject(new _.N(_.O,6,6E3));null===a.l&&(a.l=ur(a.f.emeApi,a.lc));for(var d=_.v(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;var f=d=new _.am,g=_.Jj(),h=a.f.preferredDrmSystem;if(!h)if(e=_.Jj(),e.os===Cj&&10<=e.osVersion.major&&"edge"===e.browser)h=_.Dd;else if("safari"===e.browser)h=
304
+ _.Bd;else if(e.browser===kd||"firefox"===e.browser)h=_.Fd;h&&(e=b.get(h))&&(c(!0,e,h),c(!1,e,h));e={};for(var l=_.v([!0,!1]),m=l.next();!m.done;e={Rf:e.Rf},m=l.next())e.Rf=m.value,b.forEach(function(n){return function(p,q){q!==h&&c(n.Rf,p,q)}}(e));f=f["catch"](function(){throw new _.N(_.O,6,6001,"Failed to get MediaKeySystemAccess.");});f=f.then(function(n){if(a.j)return null;a.K.clear();var p=n.getConfiguration();a.g.info("Got MediaKeySystemAccess with configuration",p);var q=p.videoCapabilities||
305
+ [],t=_.v(p.audioCapabilities||[]);for(p=t.next();!p.done;p=t.next())a.K.add(p.value.contentType.toLowerCase());q=_.v(q);for(p=q.next();!p.done;p=q.next())a.K.add(p.value.contentType.toLowerCase());q=n.keySystem;p=b.get(_.ss(n.keySystem));t=[];var u=[],y=[],B=[];ts(p.drmInfos,t,u,y,B);1<u.length&&_.Lh("Multiple unique server certificates found! Only the first will be used.");1<t.length&&_.Lh("Multiple unique license server URIs found! Only the first will be used.");a.a={keySystem:q,licenseServerUri:t[0],
306
+ distinctiveIdentifierRequired:p.distinctiveIdentifier===_.Nf,persistentStateRequired:p.persistentState===_.Nf,audioRobustness:p.audioCapabilities?p.audioCapabilities[0].robustness:"",videoRobustness:p.videoCapabilities?p.videoCapabilities[0].robustness:"",serverCertificate:u[0],initData:y,keyIds:B,periodId:null};if(!a.a.licenseServerUri)throw new _.N(_.O,6,6012,a.a.keySystem);return n.createMediaKeys()}).then(function(n){a.j||(a.g.info("Created MediaKeys for key system",a.a.keySystem),a.J=n,a.da=
208
307
  !0)})["catch"](function(n){if(!a.j){a.a=null;a.K.clear();if(n instanceof _.N)throw n;throw new _.N(_.O,6,6002,{browserError:n.message});}});d.reject();return f};
209
- qp=function(a){a=_.L.kh(a.f.Qa[_.af]||{});if(0===a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.Rm(f),h=_.Rm(e);g={kty:"oct",kid:_.Pm(g,!1),k:_.Pm(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.Q.hb(d),initDataType:"keyids"}];return{keySystem:_.af,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
308
+ Tr=function(a){a=_.M.ih(a.f.Oa[_.af]||{});if(0===a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.Dm(f),h=_.Dm(e);g={kty:"oct",kid:_.Bm(g,!1),k:_.Bm(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.R.eb(d),initDataType:"keyids"}];return{keySystem:_.af,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
210
309
  initData:d,keyIds:[],periodId:null}};
211
- _.Lp=function(a,b){try{a.g.debug("Attempting to load an offline session",b);var c=a.J.createSession(_.ef)}catch(f){var d=new _.N(_.O,6,6005,{browserError:f.message});a.w(d);return Promise.reject(d)}a.B.on(c,_.Je,a.Ti.bind(a));a.B.on(c,ve,a.Oi.bind(a));var e={initData:null,loaded:!1,vg:Infinity,yc:null,qb:new _.qk,periodId:null,df:[],keyId:null,vb:[],initDataType:null,Ec:null,sessionContext:{ldlDelay:0,customData:{}}};e.qb["catch"](function(){});a.h.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.g.debug("Loaded offline session",
212
- b,f);if(!f)return a.h["delete"](c),a.w(new _.N(_.O,6,6013)),null;e.loaded=!0;Sp(a)&&(a.A||a.g.info(Ga),a.A=!0,a.G=!1,a.I.resolve());return c},function(f){a.j||(a.h["delete"](c),a.w(new _.N(_.O,6,6005,{browserError:f.message})))})};Tp=function(a,b,c,d){if(!b&&c!==_.Zf)return!1;d=b||Cn(d);a=_.v(a.h.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||b&&e.vb.includes(b)||c===_.Zf&&(e.keyId||Cn(e.initData))===d)return!0;return!1};
213
- Kp=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,t,u,y,A,B,E,C,G,M,R,ka,U,ra,Ba,Ca;_.H(function(Da){switch(Da.a){case 1:if(!e.length)return a.g.warn("Empty init data"),Da["return"]();h=b;if(!h)try{h=Up(a,d,e,f)}catch(Na){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:Na,initDataType:d,
214
- initData:e}),a.f.ignoreUnrecognizedInitData)return Da["return"]()}if(g){Da.D(2);break}if(!Tp(a,h,d,e)){Da.D(2);break}l=!0;if("skd"!==d||a.f.enableSessionCacheForSkd){Da.D(4);break}m=_.v(a.h.keys());n=m.next();case 5:if(n.done){Da.D(4);break}p=n.value;q=a.h.get(p);if(!h||q.keyId!==h){Da.D(6);break}a.g.warn("Close and re-open session for "+h);_.D(Da,9);return _.x(Da,p.close(),11);case 11:_.vh(Da,10);break;case 9:t=_.F(Da),a.g.warn("Unable to close session",t);case 10:l=!1;case 6:n=m.next();Da.D(5);
215
- break;case 4:if(l)return a.g.warn("Skip creating a new session for "+h),Da["return"]();case 2:try{y=a.H?_.ef:kg,u=a.J.createSession(y),a.C.onEvent(new _.K($d,{keySystem:a.keySystem()})),a.g.info("Created new "+y+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(Na){return a.w(new _.N(_.O,6,6005,{browserError:Na.message})),Da["return"]()}a.B.on(u,_.Je,a.Ti.bind(a));a.B.on(u,ve,a.Oi.bind(a));A={Ec:f,df:[],initData:e,initDataType:d,keyId:h,vb:h?[h]:[],loaded:!1,vg:Infinity,periodId:c,yc:null,
216
- qb:new _.qk,sessionContext:{ldlDelay:0,customData:{}}};A.qb["catch"](function(){});f&&(B=a.h.get(f),A.sessionContext=B.sessionContext);a.h.set(u,A);h&&!a.o.get(h)&&a.o.set(h,dg);if(e)for(E=0;E<a.a.initData.length;E++)C=a.a.initData[E],C.keyId&&!A.vb.includes(C.keyId)&&_.Tm(C.initData,e)&&(A.keyId||(A.keyId=C.keyId),A.vb.push(C.keyId),a.o.get(C.keyId)||a.o.set(C.keyId,dg));G=_.L;M=G.Ub;R=a.C.getConfiguration();ka=a.keySystem();U=a.f.Qa[ka];Ba=(ra=U.modifiers)&&ra.transformInitData;M(Ba)||(Ba=Vp);try{e=
217
- Ba({playerConfig:R,initData:e,initDataType:d,drmInfo:a.a,drmSystemConfig:U,sessionContext:A.sessionContext,emeApi:a.l.Ud()})}catch(Na){return Ca=Na,Na instanceof _.N||(Ca=new _.N(_.O,6,6016,Na)),A.qb&&A.qb.reject(Na),a.w(Ca),Da["return"]()}a.g.info("Generate License Request for key ID: '"+h+"'");u.generateRequest(d,e.buffer)["catch"](function(Na){if(!a.j){var zb=null;Na.errorCode&&Na.errorCode.systemCode&&(zb=Na.errorCode.systemCode,0>zb&&(zb+=Math.pow(2,32)),zb="0x"+zb.toString(16));a.w(new _.N(_.O,
218
- 6,6006,{browserError:Na.message,error:Na,extended:zb},Na))}});_.z(Da)}})};
219
- Up=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.f.Qa[f];f=a.C.getConfiguration();g=g&&g.modifiers&&g.modifiers.extractContentId;_.L.Ub(g)||(g=Wp);try{var h={ldlDelay:0,customData:{}};e&&(h=a.h.get(e).sessionContext);var l=g(f,c,h);a.g.debug("Extracted Content ID '"+l+"' from SKD");var m=l;break a}catch(E){a.g.warn("Unable to extract Content ID from SKD",E)}m=""}return m}if(b===_.Zf)return Cn(c)||"";if(b===_.hd){m=a.keySystem();try{if(m.match(/^com\.widevine\.alpha/)){var n=
220
- _.Uo(c);if(n)return n.a}else if(Xp(m)){e=new _.hn(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);f=_.nn(e);var p=_.nn(e);g=_.xn(p);var q=_.nn(e);c=q>>>24;l=q&16777215;h=_.rn(e,16);var t=_.Sm(h);if(0<c){var u=_.nn(e);e.skip(16*u)}var y=_.nn(e),A=_.rn(e,y),B=_.ap(A);_.Ph("Parsed PR PSSH Box","size",f,"name",g,Fg,c,"flags",l,"size",y,"systemId",t,"keyId",B.a);if(B)return B.a}}catch(E){throw a.g.warn("Unable to extract Key ID from PSSH data.",{error:E,keySystem:m}),E;}}return""};
221
- Wp=function(a,b){var c=_.Bn(b);_.Ph("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
222
- Vp=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&&g===Yp){a=_.L.Ub;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=Wp);a="";try{a=e(b,c,f)}catch(h){throw new _.N(_.O,6,6103);}if(!a.length)throw new _.N(_.O,6,6101,"Content ID is an empty string");c=Dn(c,a,d)}return c};
223
- dq=function(a,b){var c,d,e,f,g,h,l,m,n,p,q,t,u,y,A,B,E,C;return _.H(function(G){switch(G.a){case 1:c=b.target;d=a.h.get(c);if(!d)return a.g.error("Session metadata not found for "+c.sessionId+"."),G["return"]();e=a.a.licenseServerUri;if(!Zp(a,b)){G.D(2);break}return _.x(G,$p(a,e,b,c,d),3);case 3:return G["return"]();case 2:f=a.Kb;if(!(0<f)){G.D(4);break}a.g.info("Delaying license request by "+f+" s.");return _.x(G,Zh(f),5);case 5:if(a.j)return G["return"]();case 4:g=a.keySystem();h=a.f.Qa[g];"individualization-request"===
224
- b.messageType&&h&&h.individualizationServer&&(e=h.individualizationServer);l=_.ik([e],a.f.attemptParameters);l.type=3;l.body=b.message;l.method=_.sb;l.licenseRequestType=b.messageType===ye&&d.Ec?xe:b.messageType;l.sessionId=c.sessionId;if(l.licenseRequestType===xe)a.C.onEvent(new _.K(Zd));Xp(a.a.keySystem)&&aq(a,l);Wm(a.P,l);m=String(Math.floor(b.timeStamp));return _.x(G,bq(a,l,d,m,e,c.sessionId,b.messageType,f),6);case 6:n=G.f;if(!n)return G["return"]();p=Xm(a.P,n);return _.x(G,cq(a,c,n.data,d,m),
225
- 7);case 7:q=G.f;if(!q)return G["return"]();t=Mp(a);u=p?Date.now()+1E3*p.delay:Number.NaN;a.C.onEvent(new _.K(_.be,{keySystem:g,expirationTime:t,expectedRenewalTime:u}));d.yc&&d.yc.resolve();d.Ec&&(y=d.Ec,a.g.info("Closing expired session '"+y.sessionId+"'"),kp(y)["catch"](function(){a.g.warn("Unable to close expired session in time")}),(A=a.h.get(d.Ec))&&A.qd&&A.qd.stop(),a.h["delete"](d.Ec),d.Ec=null);B=new _.Yh(function(){a.j||(d.loaded=!0,d.qb&&d.qb.resolve(),Sp(a)&&(a.A||a.g.info(Ga),a.A=!0,a.G=
226
- !1,a.I.resolve()))});B.ha(5);null!==d.initData&&(0<d.sessionContext.ldlDelay||p&&(_.Q.startsWith(g,_.Cd)||_.Q.startsWith(g,_.Ed)))&&(E=new _.Yh(function(){!a.j&&a.P&&(a.g.info("Updating CSL Sessions"),Xp(g)?Kp(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):g.startsWith(_.Cd)&&c.update(_.Q.hb("renew")))}),d.qd=E,C=p?p.delay:d.sessionContext.ldlDelay,E.ha(C));_.z(G)}})};
227
- $p=function(a,b,c,d,e){var f,g,h;return _.H(function(l){if(1==l.a)return f=_.ik([b],a.f.attemptParameters),f.type=3,f.body=c.message,f.method=_.sb,f.licenseRequestType=jd,f.sessionId=d.sessionId,_.x(l,eq(a,f,e,b,d.sessionId,c.messageType),2);g=l.f;if(!g)return l["return"]();h=String(Math.floor(c.timeStamp));return _.x(l,cq(a,d,g.data,e,h),0)})};Zp=function(a,b){return!!a.keySystem().match(/^com\.widevine\.alpha/)&&b.message&&2===b.message.byteLength};
228
- bq=function(a,b,c,d,e,f,g,h){var l,m,n,p,q,t,u,y,A,B,E,C;return _.H(function(G){switch(G.a){case 1:return a.g.info("License request for SID:'"+(f+"'/KID:'"+c.keyId+"' from msg '")+(g+"'.")),_.x(G,fq(a,b,c.sessionContext),2);case 2:return a.g.debug("Sending DRM license request to",e,b),a.C.onEvent(new _.K(Yd,{delay:h})),l=Date.now(),_.cp(Rd+d+ha),m=null,_.D(G,3),_.x(G,a.C.Db.fetch(b).T,5);case 5:m=G.f;_.vh(G,4);break;case 3:n=_.F(G);if(a.j)return G["return"](null);p=n;q=p.data.headers;t=bo(q);u=Object.assign({message:"Error while fetching DRM license!",
229
- url:p.data.url,status:p.data.status,response:p.data.response},q?{headers:q}:{},t);y=new _.N(_.O,6,6007,u,p);gq(a,y,c);return G["return"](null);case 4:_.cp(Rd+d+".end");_.ep(Rd+d,Rd+d+ha,Rd+d+".end");A=Date.now()-l;if(B=co(m.headers))a.Kb=B.delay||0;E="";B&&B.requestId&&(E=" RID:"+B.requestId);C=m.data.byteLength;a.g.info("License response for SID:'"+(f+"'/KID:'")+(c.keyId+"' ")+(C+" bytes in ")+(A+"ms"+E));return a.j?G["return"](null):G["return"](m)}})};
230
- eq=function(a,b,c,d,e,f){var g,h,l,m,n,p,q,t,u,y,A,B;return _.H(function(E){switch(E.a){case 1:return a.g.info("WV Server certificate request for SID:'"+(e+" from msg '"+f+"'.")),_.x(E,fq(a,b,c.sessionContext),2);case 2:return a.g.debug("Sending Widevine certificate request to",d,b),g=Date.now(),h=null,_.D(E,3),_.x(E,a.C.Db.fetch(b).T,5);case 5:h=E.f;_.vh(E,4);break;case 3:l=_.F(E);if(a.j)return E["return"](null);m=l;n=m.data.headers;p=bo(n);q=Object.assign({message:Pa,url:m.data.url,status:m.data.status,
231
- response:m.data.response},n?{headers:n}:{},p);t=new _.N(_.O,6,6100,q,m);gq(a,t,c);return E["return"](null);case 4:return u=Date.now()-g,y=co(h.headers),A="",y&&y.requestId&&(A=" RID:"+y.requestId),B=h.data.byteLength,a.g.info("WV Server certificate response for SID:'"+(e+"' ")+(B+" bytes in ")+(u+"ms"+A)),a.j?E["return"](null):E["return"](h)}})};
232
- cq=function(a,b,c,d,e){var f,g;return _.H(function(h){switch(h.a){case 1:return _.cp(Wd+e+ha),_.D(h,2),_.x(h,b.update(c),4);case 4:_.vh(h,3);break;case 2:f=_.F(h);if(a.j)return h["return"](!1);if(f===Hb)return a.g.info("Ignore update for closed sessions"),h["return"](!1);g=new _.N(_.O,6,6008,{browserError:f.message});gq(a,g,d);return h["return"](!1);case 3:return _.cp(Wd+e+".end"),_.ep(Wd+e,Wd+e+ha,Wd+e+".end"),a.j?h["return"](!1):h["return"](!0)}})};
233
- gq=function(a,b,c){a.j||(a.w(b),c.yc&&c.yc.reject(b),c.qb&&c.qb.reject(b))};
234
- aq=function(a,b){var c=_.Q.Hc(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(_.Eg).textContent;b.body=_.Qm(c.querySelector("Challenge").textContent).buffer}else a.g.debug("PlayReady request is already unwrapped."),b.headers[Aa]="text/xml; charset\x3dutf-8"};
235
- fq=function(a,b,c){var d,e,f,g,h,l;return _.H(function(m){if(1==m.a)return d=a.C.getConfiguration(),_.x(m,Hp(a,d),2);e=a.keySystem();h=(g=(f=a.f.Qa[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;h?b.requestModifiers.push(function(n){return h(d,n,c)}):e.startsWith(_.Cd)&&b.requestModifiers.push(function(n){return _.En(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Cd)&&b.responseModifiers.push(function(n){return _.Fn(n)});_.z(m)})};
236
- hp=function(a){var b=a.o,c=a.ka;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.w(new _.N(_.O,6,6014));a.C.Ag(_.L.lh(c));a.A||a.g.info(Ga);a.A=!0;a.G=!1};Bp=function(a){var b;return _.H(function(c){if(1==c.a)return _.cp(Vd),b=a.ia.map(function(d){return dq(a,d)}),a.jb=!0,a.ia=[],_.x(c,Promise.all(b),2);_.cp(Ud);_.ep("drm.onPlay",Vd,Ud);_.z(c)})};Xp=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};
237
- _.Qp=function(a){return Xp(a)?_.Ed:a};_.iq=function(a,b){return a.length&&b.length?0<_.hq(a,b).length:!0};
238
- _.hq=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={Nd:e.Nd},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.Nd=_.hh(g.keyIds||[]).concat();f.keyIds&&f.keyIds.length&&f.keyIds.forEach(function(l){return function(m){l.Nd.includes(m)||l.Nd.push(m)}}(e));c.push({keySystem:g.keySystem,licenseServerUri:g.licenseServerUri||f.licenseServerUri,
239
- licenseServerUriOrigin:g.licenseServerUriOrigin||f.licenseServerUriOrigin,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.Nd,periodId:g.periodId});break}return c};
240
- ip=function(a){a.h.forEach(function(b,c){var d=b.vg,e=c.expiration;isNaN(e)&&(e=Infinity);e!==d&&(a.C.zg(c.sessionId,e),b.vg=e)})};Sp=function(a){a=a.h.values();return _.Lj(a,function(b){return b.loaded})};
241
- pp=function(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseServerUri:f.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[]})});for(var d=_.v(a),e=d.next();!e.done;e=d.next())e.value.drmInfos=c};Op=function(a){for(var b=_.v(a.audioCapabilities||[]),c=b.next();!c.done;c=b.next())delete c.value.robustness;a=_.v(a.videoCapabilities||[]);for(b=a.next();!b.done;b=a.next())delete b.value.robustness};
242
- Pp=function(a){return(a.audioCapabilities||[]).some(jq)||(a.videoCapabilities||[]).some(jq)};jq=function(a){return null!=a.robustness&&""!==a.robustness};
243
- Rp=function(a,b,c,d,e){var f={};a=_.v(a);for(var g=a.next();!g.done;f={Ja:f.Ja},g=a.next()){f.Ja=g.value;b.includes(f.Ja.licenseServerUri)||b.push(f.Ja.licenseServerUri);f.Ja.serverCertificate&&(c.some(function(m){return function(n){return _.Tm(n,m.Ja.serverCertificate)}}(f))||c.push(f.Ja.serverCertificate));if(f.Ja.initData){var h=_.v(f.Ja.initData);for(g=h.next();!g.done;g=h.next())g.value.periodId=f.Ja.periodId;h={};var l=_.v(f.Ja.initData);for(g=l.next();!g.done;h={Oe:h.Oe},g=l.next())h.Oe=g.value,
244
- d.some(function(m){return function(n){var p=m.Oe;return n.keyId&&n.keyId===p.keyId&&n.periodId===p.periodId?!0:!1}}(h))||d.push(h.Oe)}if(f.Ja.keyIds)for(g=0;g<f.Ja.keyIds.length;++g)e.includes(f.Ja.keyIds[g])||e.push(f.Ja.keyIds[g])}};
245
- vp=function(a,b,c){var d=_.Qp(b.keySystem);c=c[d];d===_.af&&b.licenseServerUri?a.g.debug("Using Clear Key data URI for",d):c&&c.licenseUrl?(b.licenseServerUri=c.licenseUrl,a.g.debug("Using license server URI from user-configured clpp.drm.DrmEnvironment (licenseUrl) for",d)):a.g.debug("Using license server URI from the manifest for ",d)};
246
- tp=function(a,b){var c=b[_.Qp(a.keySystem)];a.keyIds||(a.keyIds=[]);c&&(a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness||""),a.audioRobustness||(a.audioRobustness=c.audioRobustness||""),a.serverCertificate||(a.serverCertificate=c.serverCertificate||null))};
247
- kp=function(a){var b,c;return _.H(function(d){if(1==d.a)return b=new Promise(function(e){(new _.Yh(e)).ha(1)}),_.x(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.Kh("Timeout waiting for session close");_.z(d)})};_.mq=function(a,b){a&&b&&(_.kq.set(a,b),_.lq.info("Registered TextDisplayerFactory: '"+a+"'"))};
248
- _.nq=function(a,b){var c=b.find(function(d){return(d=_.kq.get(d))?d.a(a):!1});if(null==c)return _.lq.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;_.lq.info("Chosen the text displayer: "+c);return _.kq.get(c)};oq=function(){this.a=null;this.f=[]};_.pq=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})}};
249
- qq=function(a,b){var c=0;a.a&&a.a.state===b&&(c+=a.a.duration);for(var d=_.v(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state===b?e.duration:0;return c};rq=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.v(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};sq=function(){this.h=this.f=this.j=null;this.a=[]};tq=function(a){return a.a.map(function(b){return _.L.kb(b)})};
250
- _.uq=function(){this.h=this.w=this.B=this.F=this.l=this.o=this.j=this.A=NaN;this.a=new oq;this.f=new sq};_.vq=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:[]}};
251
- zq=function(a){this.g=new _.J("clpp.StateManager");this.m=a;this.a=new _.hi;this.h=_.wq;this.A=_.xq;this.I=0;this.w=-1;this.L=this.o=this.J=this.B=0;this.j=this.f=this.G=!1;this.H=0;this.l=null;this.K=0;this.N=_.Al();this.F=!1;this.J=Date.now();yq(this)};Aq=function(a,b){return Object.keys(b)[a]};
252
- Cq=function(a,b){var c={type:_.cg};b===_.ad||b===_.$c?(c.reason=a.w,b===_.ad?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(a.h===_.Bq&&(c.reason=a.w),a.A===_.Bq&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.h,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
253
- Gq=function(a,b){if(a.h===b)return!1;var c=Date.now(),d=a.h===_.Bq;a.A=a.h;a.h=b;a.A===_.Dq&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;b===_.Bq?(a.L=a.o,a.w=a.f?1:2,a.g.info("Buffering started. Reason: "+Aq(a.w-1,_.Eq)),c=Cq(a,_.ad),a.$a(_.ad,c)):d&&(a.B=a.o-a.L,a.g.info("Buffering finished. Reason: "+Aq(a.w-1,_.Eq)+". Buffering time: "+a.B+" ms"),c=Cq(a,_.$c),a.$a(_.$c,c));c=Aq(a.A,_.Fq);d=Aq(a.h,_.Fq);a.g.info(_.wb+c+" -\x3e "+d);a.$a(_.cg,Cq(a,""));return!0};
254
- Lq=function(a,b){if(a.h===_.Hq)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.f||(a.j=!1,Gq(a,_.Dq));else if(b!==_.sg){var e=a.m.getPosition();e=null!==e&&void 0!==e&&0<=e?a.m.getBufferInfo().Ta(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.h===_.wq,g=typeof a.l===_.k&&2>=a.l&&a.j;e=a.f||
255
- f||e||g;!a.N||a.m.isLive()||a.h!==_.Bq||e||(f=b===_.Uf&&4===a.l,(g=a.A===_.Iq)&&!a.F?e=!0:g||a.F||f||(e=!0));f=!1;e?f=Gq(a,_.Bq):c?f=Gq(a,_.Jq):a.G&&(f=Gq(a,_.Kq));f&&(a.F=!1);a.g.debug("Video state check for event "+b+":: seeking: "+a.f+", waiting: "+a.j+", playing: "+a.G+", paused: "+c+", readyState: "+a.l+", rate: "+a.K+", buffer: "+a.H+", ended: "+d+". Changed state: "+f+", Current state: "+Aq(a.h,_.Fq))}}};
256
- yq=function(a){function b(d){return Lq(a,d.type)}a.g.debug("Start watching for video events for "+a.m.namespace());var c=a.m;a.a.on(c,_.he,function(){a.f||(a.j=!1,Gq(a,_.Dq))});a.a.on(c,bd,b);a.a.on(c,_.sf,function(){a.G=!0;a.j=!1;Lq(a,_.sf)});a.a.on(c,_.cf,function(){a.G=!1;a.j=!1;Lq(a,_.cf)});a.a.on(c,_.sg,b);a.a.on(c,_.Jf,b);a.a.on(c,_.Uf,function(d){a.f=!1;a.j=!1;Lq(a,d.type)});a.a.on(c,_.Vf,function(d){a.f=!0;Lq(a,d.type)});a.a.on(c,ag,b);a.a.on(c,_.Sg,function(){a.j=!0;Lq(a,_.Sg)});a.a.on(c,
257
- _.ie,function(d){(d=d&&d.detail)&&d.severity&&d.severity===_.O&&Gq(a,_.Hq)});a.a.on(c,_.Ee,b);a.a.on(c,cd,function(){a.F=!0;Lq(a,cd)});a.a.on(c,_.Dg,function(d){a.f=!0;Lq(a,d.type)});a.a.on(c,_.Cg,function(d){a.f=!1;a.j=!1;Lq(a,d.type)})};Mq=function(a){a=(new _.ej(a)).Na;if(!a)return null;a=a.toUpperCase();return _.Q.endsWith(a,".MPD")?_.Ic:_.Q.endsWith(a,".M3U8")?_.bm:_.Q.endsWith(a,".MP4")?_.Mg:_.Q.endsWith(a,".MP3")?"audio/mp3":_.Q.endsWith(a,"MANIFEST")||_.Q.endsWith(a,".ISM")?_.Nc:null};
258
- _.Oq=function(a){var b;zm(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.fg||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=Nq(b[c]);d&&a.push(d)}return a};
259
- Nq=function(a){var b=null;_.L.ja(a)&&(a={url:a});typeof a===_.Se&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.L.R(a.drmProtected)||typeof a.drmProtected!==_.Zc||(b.drmProtected=a.drmProtected),_.L.R(a.isLive)||typeof a.isLive!==_.Zc||(b.isLive=a.isLive),_.L.R(a.name)||typeof a.name!==_.fg||(b.name=a.name),_.L.R(a.lc)||typeof a.lc!==_.fg||(b.lc=a.lc),_.L.R(a.audioMimeType)||typeof a.audioMimeType!==_.fg||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=Mq(a.url),b.type?
260
- Pq.debug("Detect media type "+b.type+" for "+a.url):Pq.warn("Unable to detect media type for "+a.url));return b};Qq=function(){_.Am.call(this,wd);this.w=this.H=!1;this.l=this.A=this.o=this.a=this.j=null;this.h=new _.hi;this.G=this.B=this.f=this.I=null};
261
- Sq=function(a,b){if(a.w)throw new _.N(_.O,7,7E3);a.a||(a.h.on(b,_.ie,function(){var c=Rq(a);if(c)a.onError(c)}),a.h.on(b,_.Of,function(){var c=b.videoWidth,d=b.videoHeight,e=a.getTrackManager();e&&0<c&&0<d&&(e.w={width:c,height:d});a.trigger(new _.K(_.Yc,{detail:{width:c,height:d}}))}),a.a=b)};Tq=function(a){var b=_.Al()?Yp:void 0;return new _.jp(a,b)};
262
- Vq=function(a){var b,c,d,e,f;return _.H(function(g){if(1==g.a){if(a.w)return g["return"](Promise.reject(new _.N(_.O,7,7E3)));b=a.ba[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=_.Uq;d=_.an(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=Tq({Db:e,onError:function(h){return a.onError(h)},Ag:function(){},zg:function(h,l){a.trigger(new _.K(_.Xd,
263
- {expirationTime:l}))},onEvent:function(h){h instanceof _.K?a.dispatchEvent(h):a.log.debug(_.Qb,h.type)},getConfiguration:function(){return a.getConfiguration()},vd:function(){return a.vd()}});a.o.f=d;f={id:0,language:_.xg,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,
264
- Ha:0,mimeType:_.Mg,codecs:"",encrypted:!0,keyId:null,language:_.xg,originalLanguage:_.xg,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,yp:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,spatialAudio:!1,fp:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.x(g,_.op(a.o,[f]),2)}return _.x(g,_.Gp(a.o,a.a),0)})};
265
- Wq=function(a,b){io(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){a.getState()!==_.Hq&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};Rq=function(a){if(null===a.ba||!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 _.N(_.O,3,3016,{code:b,rp:c,message:a.a.error.message})};
266
- Xq=function(a){if(a.w)return new _.rk(Promise.reject(new _.N(_.O,7,7E3)),function(){});var b=a.ba[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&Wq(a,c);if(d.preload!==_.Re)a.h.one(d,_.Ee,function(){var g=Date.now()/1E3-e;a.f.B=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.wk()||_.xk())&&d.load();var f=new _.qk;a.h.one(d,ag,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.B||(a.B=(new _.Yh(function(){f.reject(new _.N(_.O,3,3100,{message:"Unable to load media source successfully from "+
267
- b.url,uri:b.url},d.error))})).ha(g))});io(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.h,function(){return f.resolve()});d.error?f.reject(Rq(a)):d.preload===_.Re&&(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,_.ie,function(){f.reject(Rq(a))});
268
- return new _.rk(f,function(){var g=new _.N(_.O,7,7001);f.reject(g);return Promise.resolve()})};
269
- Yq=function(a,b){io(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){if(a.isLive()&&a.getState()!==_.Hq){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)}))}})};
270
- Zq=function(a,b){var c=!1;a.h.on(b,_.Vf,function(){c=b.paused});a.h.on(b,_.Uf,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())})};$q=function(){};_.cr=function(a){0<=ar.indexOf(a)?br.warn("Factory '"+a.name()+"' is already registered"):(ar.push(a),br.info("Factory '"+a.name()+"' has been registered."))};
271
- dr=function(a,b){var c=ar.find(function(d){return d.a(a,b)})||null;c&&br.info("Chosen ads manager: "+c.name());return c};er=function(){};fr=function(){};W=function(a,b,c,d,e,f,g){this.w=this.o=this.l=!1;this.G=a;this.f=b;this.a=c;this.h=d;this.j=0;this.B=e+":"+b;this.H=e;this.videoEl=null;this.A=f;this.F=g||null};gr=function(a){this.a=a.map(function(b){return{videoId:b.getSurface().getMedia().id,player:b,Xe:!0,ready:Promise.resolve()}});this.g=new _.J("clpp.plist.PlayerPool")};
272
- _.hr=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};_.ir=function(a,b){a.classList.add(b)};_.jr=function(a,b){if(a&&typeof b===_.Se)for(var c in b)a.style[c]=b[c]};_.kr=function(a){return document.createElement(a)};lr=function(){this.a=null;this.h=new Set;this.f=null;this.set(null)};mr=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.h.add(b))};
273
- nr=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.h.values());Ji(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.hh(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
274
- rr=function(a,b){this.g=new _.J("clpp.PlayerSurface");this.w=_.L.ua(or,b);this.f=new lr;this.h=null;this.a=new lr;this.l=pr;pr+=1;this.o="clpp-video-"+this.l;this.j=new _.hi;if(null==a)throw new _.N(_.O,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.N(_.O,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
275
- HTMLMediaElement))throw new _.N(_.O,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 _.N(_.O,7,7006,"Container element is not a direct parent of media element");e=d.containerEl}else{e=document.createElement(_.Pd);c.parentNode?c.parentNode.replaceChild(e,
276
- 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=_.v(f);for(g=f.next();!g.done;g=f.next())g=g.value,c.classList.remove(g),_.ir(e,g);e.style.cssText=c.style.cssText;c.removeAttribute(_.hg);f=_.v([_.Zg,_.ne]);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+_.If);_.wk()||c.removeAttribute(g)}e.appendChild(c)}e&&
277
- (this.a.set(e),mr(this.a,"clpp-container"),mr(this.a,this.o),mr(this.f,_.md),mr(this.f,"clpp-video"));d.webOSStartupPatch&&qr(this,c,e)}};qr=function(a,b,c){(_.xk()&&53===_.xl().major||_.xk()&&68===_.xl().major||_.yl())&&!b.hasAttribute(Kd)&&(b.style.opacity="0",b.setAttribute(Kd,""),a.j.one(b,de,function(){b.removeAttribute(Kd);b.style.opacity="1";c&&(c.style.opacity="1")}))};
278
- wr=function(a){var b=this;this.j=a;this.A=!!a.sideAdContainer;this.l=[];this.a=a.fj;this.H=sr(a);this.F=[];var c=tr(this,this.H,this.j.yl);this.w=new gr(c);this.h=null;this.B=!1;this.o=new Map;this.I=a.toggleVisible;this.g=new _.J("clpp.interstitial.MultiController");this.f=this.G=!1;this.J=a.An||function(){};ur(this).forEach(function(d){return vr(b,d,!1)})};
279
- Ar=function(a,b){var c,d,e,f,g,h,l,m,n,p,q,t,u;return _.H(function(y){if(1==y.a){a.g.info("Crop ads by playout limit",b);c=xr(a);d=a.getCurrentItem();if(!c||!d||!d.ab||null==c.V)return y["return"]();e=a.l.filter(function(A){return!A.primary});f=Math.max.apply(Math,_.hh(e.map(function(A){return A.wb})));if(b>f)return a.g.info("Playout limit is greater than ad pod duration, ignored."),y["return"]();g=d.player.getPosition()+(d.wb-d.duration);h=e.sort(function(A,B){return B.wb-A.wb})[0];l=c.V;m=b<=g;
280
- if(!m)return y.D(2);n=f-g;c.V-=n;a.g.warn("Playout limit exceeded, immediately returning to primary at "+(c.V.toFixed(1)+" instead of ")+l.toFixed(1));return _.x(y,yr(a,c.id,_.gf),3)}if(2!=y.a)return h.Fa&&h.Fa(),p=d.ab,a.a.trigger(new _.K(_.zc,{ad:p})),a.a.trigger(new _.K(_.lc,{ad:p})),a.a.trigger(new _.K(_.ic,{id:d.Sb})),y["return"]();a.g.warn("Limiting playout of ads to",b);q=e.find(function(A){return b<=A.wb&&b>=A.wb-A.duration});if(!q)return a.g.warn("Cannot find ad hit by limit"),y["return"]();
281
- t=b-(q.wb-q.duration);q.ab.h=t;u=f-b;c.V-=u;a.g.info("Last ad is now ",q.ab.Bb(),"with cropped duration",t,"and primary will resume at",c.V.toFixed(1),"instead of",l.toFixed(1));h.Fa&&(q.Fa=h.Fa);q.transition={xf:{position:t,itemId:c.id,V:c.V}};zr(a,q);_.z(y)})};Cr=function(a){var b;return _.H(function(c){if(1==c.a)return(b=a.h)?"loaded"===b.state?c.D(2):_.x(c,b.Cd,2):c["return"]();if(4!=c.a)return _.x(c,b.player.play(),4);b.state=_.sf;Br(b);_.z(c)})};
282
- Dr=function(a,b){a.g.info("Add items",b);a.l=a.l.concat(b.map(function(c){return Object.assign({},c,{state:"idle",disposers:[],preloadPromise:Promise.resolve(),Cd:Promise.resolve()})}))};Fr=function(a){return _.H(function(b){return _.x(b,Er(a,a.l.map(function(c){return c.id})),0)})};
283
- Er=function(a,b){var c,d,e,f,g;return _.H(function(h){a.g.info("Remove items",b);c=[];d=[];e=_.v(a.l);for(f=e.next();!f.done;f=e.next())g=f.value,b.includes(g.id)?d.push(g):c.push(g);a.l=c;return _.x(h,Promise.all(d.map(function(l){l.disposers.forEach(function(m){return m()});l.disposers=[];return Gr(a,l.id)})),0)})};Ir=function(a){var b;return _.H(function(c){b=a.l.filter(function(d){return!d.primary}).map(function(d){return d.id});Hr(a);return _.x(c,Er(a,b),0)})};
284
- Jr=function(a){var b,c;_.H(function(d){b=a.getCurrentItem();c=b.next[0];if(!(b&&b.primary&&c))return d.D(0);Hr(a);return _.x(d,a.play(c),0)})};Hr=function(a){var b=xr(a);b&&(b.transition=void 0,b.next=[],Kr(a))};
285
- yr=function(a,b,c){var d,e,f,g,h,l;return _.H(function(m){switch(m.a){case 1:if(a.B)return a.g.warn("Cannot "+c+" item while busy (ID: "+b+")"),m["return"]();d=Lr(a,b);if(!d)return a.g.warn("Item not found (ID: "+b+")"),m["return"]();a.g.info(c+" item (ID: "+b+")");a.B=!0;if(e=a.h)e.player.isPaused()||(a.A?e.primary?Mr(a,e,Nr):e.player.pause():e.player.pause()),e.primary?Mr(a,e,Nr):Mr(a,e,Or);(f=a.o.has(b))&&a.o["delete"](b);_.D(m,2,3);if(c===_.gf)return(g=e&&d.primary)?_.x(m,Pr(a,d),10):f?_.x(m,
286
- Qr(a,d),10):_.x(m,Rr(a,d),10);if(f){a.g.error("Loading preloaded items is not supported");m.D(6);break}return _.x(m,Sr(a,d),6);case 10:Br(d);case 6:zr(a,d);d.primary?Mr(a,d,Or):Mr(a,d,Nr);d.ab&&Tr(a,d,d.ab);if(d.Fa)d.player.one(_.he,d.Fa);d.Pi&&d.Pi(d.player.getDuration());e&&Ur(a,e);case 3:_.wh(m);a.B=!1;Vr(a);Wr(a,d.next);_.xh(m);break;case 2:h=_.F(m);a.g.error("Item failed to "+c+" (ID: "+b+")",h);if(d.primary)throw h;if(l=xr(a))return a.g.warn("Ad failed, resuming primary item"),_.x(m,Pr(a,l),
287
- 3);m.D(3)}})};Xr=function(a,b,c){c=void 0===c?!1:c;if(!a.f){var d=xr(a);d?(d.V=b,c&&(a.f=!0)):a.g.error("Failed to get primary item. Cannot configure resume position.")}};xr=function(a){return a.l.find(function(b){return!!b.primary})||null};Lr=function(a,b){return a.l.find(function(c){return c.id===b})||null};
288
- zr=function(a,b){var c=b.transition;if(c&&!c.lj){if(c.Fa){var d=c.Fa,e=function(){a.g.info("Transition onEnded to (ID: "+d+")");a.play(d)};b.player.one(_.he,e);b.disposers.push(function(){b.player.off(_.he,e)})}c.xf&&Yr(a,b,function(){var f=a.h.ab;f&&(b.disposers.forEach(function(g){return g()}),b.disposers=[],a.a.trigger(new _.K(_.zc,{ad:f})),a.a.trigger(new _.K(_.lc,{ad:f})),a.a.trigger(new _.K(_.ic,{id:b.Sb})))});c.lj=!0}};
289
- Yr=function(a,b,c){function d(){a.g.info("Stop timeupdate polling");b.player.off(_.sg,f)}function e(){var l=b.player.getPosition();l>=g.position?(c(),a.g.info("Transition onPosition to (ID: "+g.itemId+"), playback position: "+(l.toFixed(3)+" s, transition point: ")+(g.position.toFixed(3)+" s. ")),a.play(g.itemId),l=!0):l=!1;l?h=null:h=requestAnimationFrame(e)}function f(){var l=b.player.getPosition();.5>=g.position-l&&(a.g.info("Start RAF polling"),d(),e())}var g=b.transition.xf,h=null;g.V&&Xr(a,
290
- g.V);a.g.info("Start timeupdate polling");b.player.on(_.sg,f);b.disposers.push(function(){null!=h&&(a.g.info("Stop RAF polling"),cancelAnimationFrame(h),h=null)});b.disposers.push(d)};Kr=function(a){a.h&&(a.h.disposers.forEach(function(b){return b()}),a.h.disposers=[],a.h.transition&&(a.h.transition.lj=!1),zr(a,a.h))};ur=function(a){return[a.a].concat(_.hh(a.w.a.map(function(b){return b.player})))};Vr=function(a){Promise.all(Array.from(a.o.keys()).map(function(b){return Gr(a,b)}))};
291
- sr=function(a){if(a.sideAdContainer)a=a.sideAdContainer;else if(a=a.fj.getSurface().getContainer(),!a)throw Error("Primary player does not have a container");return a};Gr=function(a,b){var c;return _.H(function(d){if(1==d.a){c=a.o.get(b);if(!c)return d.D(0);a.g.info("Stop preloading item (ID: "+b+")");return c.player?_.x(d,Zr(a,c.player),3):d.D(3)}a.o["delete"](b);_.z(d)})};$r=function(a){return _.H(function(b){if(1==b.a)return a.h?_.x(b,Ur(a,a.h),3):b.D(0);vr(a,a.a,!0);_.z(b)})};
292
- Ur=function(a,b){var c;return _.H(function(d){if(1==d.a){c=b.player;if(b.primary)return a.g.info("Pause primary playback"),a.A||vr(a,c,!1),d.D(0);a.g.info("Stop previous playback (ID: "+b.id+")");b.disposers.forEach(function(e){return e()});b.disposers=[];b.player=null;b.videoEl=null;b.role=as;return b.Jg?(a.g.info("Release player (ID: "+b.id+") after delay "+(b.Jg+" ms.")),_.x(d,new Promise(function(e){setTimeout(function(){return _.H(function(f){if(1==f.a)return _.x(f,Zr(a,c),2);vr(a,c,!1);a.a.trigger(new _.K("ad-hls-released"));
293
- e();_.z(f)})},b.Jg)}),0)):_.x(d,Zr(a,c),5)}vr(a,c,!1);return d.D(0)})};Rr=function(a,b){return _.H(function(c){if(1==c.a)return _.x(c,Sr(a,b),2);if(3!=c.a)return _.x(c,b.player.play(),3);b.state=_.sf;_.z(c)})};Sr=function(a,b){var c;return _.H(function(d){if(1==d.a)return _.x(d,bs(a,!!b.primary),2);if(3!=d.a)return c=d.f,a.h=b,b.role=cs,a.h.player=c,a.h.videoEl=c.getSurface().getMedia(),vr(a,c,!0),b.state="loading",b.Cd=ds(c,b.config),_.x(d,b.Cd,3);b.state="loaded";_.z(d)})};
294
- Qr=function(a,b){var c;return _.H(function(d){switch(d.a){case 1:c=b.player;if(!c)return d["return"]();if(b.state!==Af){d.D(2);break}a.g.info(Xb);_.D(d,3);return _.x(d,b.preloadPromise,5);case 5:_.vh(d,2);break;case 3:_.F(d);case 2:a.h=b;b.role=cs;vr(a,c,!0);if(b.state===zf)return _.x(d,c.play(),7);if(b.state!==yf){d.D(7);break}return _.x(d,ds(c,b.config),7);case 7:b.state=_.sf,_.z(d)}})};
295
- Tr=function(a,b,c){function d(){a.a.trigger(new _.K(_.zc,{ad:c}));a.a.trigger(new _.K(_.lc,{ad:c}));c.f===c.a&&a.a.trigger(new _.K(_.ic,{id:b.Sb}))}function e(){a.a.trigger(new _.K(_.jc,{ad:c}))}function f(){a.a.trigger(new _.K(_.vc,{ad:c}))}function g(){l.isEnded()||a.a.trigger(new _.K(_.tc,{ad:c}))}function h(){var m=l.getPosition(),n=c.getDuration();c.j=m;a.a.trigger(new _.K(_.uc,{ad:c}));!c.l&&m>=n/4&&(c.l=!0,a.a.trigger(new _.K(_.mc,{ad:c})));!c.o&&m>=n/2&&(c.o=!0,a.a.trigger(new _.K(_.sc,{ad:c})));
296
- !c.w&&m>=3*n/4&&(c.w=!0,a.a.trigger(new _.K(_.Ac,{ad:c})))}var l=b.player;l.on(_.sg,h);l.on(_.cf,g);l.on(_.sf,f);l.on(_.ad,e);l.one(_.he,d);b.disposers.push(function(){l.off(_.sg,h);l.off(_.cf,g);l.off(_.sf,f);l.off(_.ad,e);l.off(_.he,d)});1===c.f&&a.a.trigger(new _.K(_.hc,{id:b.Sb}));c.videoEl=l.getSurface().getMedia();a.a.trigger(new _.K(_.qc,{ad:c}));a.a.trigger(new _.K(_.xc,{ad:c}))};
297
- Pr=function(a,b){return _.H(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();a.J();if(b.state!==Af){c.D(2);break}a.g.info("Wait for seek to finish");_.D(c,3);return _.x(c,b.preloadPromise,5);case 5:_.vh(c,2);break;case 3:_.F(c);case 2:a.f=!1;if(!b.V){c.D(6);break}return _.x(c,b.player.seek(b.V,!0),6);case 6:a.h=b;b.role=cs;vr(a,b.player,!0);b.state="loading";if(a.A&&(Mr(a,b,Or),!b.player.isPaused())){c.D(9);break}return _.x(c,b.player.play(),9);case 9:b.state=_.sf,_.z(c)}})};
298
- Zr=function(a,b){return _.H(function(c){return b===a.a?c.D(0):_.x(c,a.w.release(b),0)})};bs=function(a,b){var c;return _.H(function(d){if(1==d.a)return b?d["return"](a.a):_.x(d,a.w.get(),2);c=d.f;if(!c)throw Error("No player available");return d["return"](c)})};Wr=function(a,b){var c;_.H(function(d){if(0===b.length)return d["return"]();a.g.info("Preload items (IDs: "+b+")");c=a.l.filter(function(e){return b.includes(e.id)})||[];return _.x(d,Promise.all(c.map(function(e){return es(a,e)})),0)})};
299
- es=function(a,b){var c,d,e,f,g;return _.H(function(h){switch(h.a){case 1:if(!b.primary){h.D(2);break}b.state=Af;a.o.set(b.id,b);if(!b.V||a.A){h.D(3);break}c=b.player;a.g.info("Preparing to resume at",b.V);Mr(a,b,Nr);return _.x(h,c.seek(b.V,!0),3);case 3:return b.state=zf,h["return"]();case 2:return d=b.id,_.x(h,bs(a,!1),5);case 5:e=h.f;b.player=e;b.videoEl=e.getSurface().getMedia();b.role=as;b.state=Af;_.D(h,6);a.o.set(d,b);b.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (ID: "+
300
- (d+")")),b.config.autoplay=!1);if(f=a.a.getBandwidthEstimate())b.config.abr||(b.config.abr={}),b.config.abr.defaultBandwidthEstimate=f;b.preloadPromise=ds(e,b.config);return _.x(h,b.preloadPromise,8);case 8:b.state=zf;_.vh(h,0);break;case 6:g=_.F(h),7001===g.code?(a.g.info("Preload aborted (ID: "+d+")"),b.state=xf):(a.g.warn("Preload failed (ID: "+d+")",g),b.state=yf),_.z(h)}})};
301
- vr=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.debug(Jb+b),d.classList.add(qd),d.classList.remove("clpp-hide")):(a.g.debug(Xa+b),d.classList.remove(qd),d.classList.add("clpp-hide")),a.I&&a.I(d,c))};
302
- tr=function(a,b,c){return Array.from({length:2}).map(function(d,e){var f=document.createElement(_.Jg);b.appendChild(f);var g=a.j.lb.create();f=new rr(f);g.init(f,c);g.setSourceIndex(0);var h=f.getContainer();if(!h)throw Error("Failed to create player surface container element");h.classList.add("secondary");f.getMedia().classList.add("v-"+e);a.F.push(h);return g})};
303
- Mr=function(a,b,c){var d=b?b.Sb||null:null;a.a.getConfiguration().muted||a.G?(a.a.setMuted(!0),fs(a,!0)):(b.audio&&(c=b.audio),a.j.onAudioDecision&&(c=a.j.onAudioDecision(d)),c===Or?(a.a.setMuted(!1),fs(a,!0)):c===Nr?(a.a.setMuted(!0),fs(a,!1)):a.g.warn("Audio decision not supported",c))};fs=function(a,b){a.l.filter(function(c){return!c.primary&&c.player}).forEach(function(c){return c.player.setMuted(b)})};gs=function(a){a.F.forEach(function(b){return a.H.removeChild(b)});a.F=[];vr(a,a.a,!0)};
304
- ds=function(a,b){return _.H(function(c){return 1==c.a?_.x(c,a.release(),2):_.x(c,a.load(b),0)})};Br=function(a){if(a.ab){var b=a.player.getDuration();a.maxDuration&&(b=Math.min(b,a.maxDuration));a.ab.h=b}a.zf&&a.zf()};
305
- rs=function(a){_.pm.call(this);var b=this;this.j=_.L.ua({$n:.5},a);this.A=this.f=!1;this.g=new _.J("clpp.interstitial.Player");this.l=a.player;this.l.setSeekInterceptor(function(c,d){if(d)return!0;if(b.f)return!1;var e=hs(b);if(e)return b.g.info("Seek ignored while binding interstitial",e.Z),!1;is(b,c);e=js(b);var f=ks(b,c),g=ls(b,c);if(e){if(f&&f!==e)return ms(b,f,c),!1;if(g&&g!==e)return ns(b,g,c),!1;if(c<e.startTime-b.j.resolutionOffsetSec)return os(b,e),!0;if(c<e.startTime)return Kr(b.a),b.g.info("Seek inside resolution area of",
306
- e.Z),!0;if(c<=e.endTime)return b.g.info("Seek into the scheduled interstitial",e.Z),Jr(b.a),!1;if(e.wh)return b.g.info("Jump over a scheduled interstitial",e.Z),Ir(b.a),e.state=ps,!0;b.g.info("Jump over a scheduled interstitial triggering it",e.Z);Jr(b.a);Xr(b.a,c,!0);return!1}return f?(ms(b,f,c),!1):g&&!g.Dl?(ns(b,g,c),!1):!0});this.a=new wr({yl:this.j.config,fj:a.player,preloadMedia:!0,lb:a.lb,sideAdContainer:this.j.sideAdContainer,onAudioDecision:this.j.onAudioDecision,An:function(){b.g.info("Resume primary content")}});
307
- this.o=[];this.h=[];this.w=!1;qs(this,a.player)};ss=function(a){return(a=a.a.getCurrentItem())&&!a.primary?a.player:null};
308
- us=function(a){var b,c,d;_.H(function(e){var f=a.a;Dr(f,[{id:Cf,primary:!0,config:f.a.getConfiguration(),next:[],wb:0,duration:0,Sb:null}]);var g=xr(f);if(!g)throw Error("Failed to find primary item");f.h=g;g.role=cs;g.player=f.a;g.videoEl=g.player.getSurface().getMedia();vr(f,g.player,!0);b=a.l;c=b.getConfiguration();d=!c.autoplay;a.w=ts(a,d,b.isLive(),!1);if(a.w){f=a.a;g=f.w;if(g=g.a[0]?g.a[0].player:null)f.A||vr(f,f.a,!1),vr(f,g,!0);return e.D(0)}return c.autoplay?_.x(e,Cr(a.a),0):e.D(0)})};
309
- is=function(a,b){var c=a.l.getPosition();b>=c||a.h.filter(function(d){return 1===d.Ed&&!d.once&&d.Hi&&d.startTime>b}).forEach(function(d){d.bh=!0})};js=function(a){return a.h.find(function(b){return b.state===vs})||null};hs=function(a){return a.h.find(function(b){return b.state===ws})||null};os=function(a,b){return _.H(function(c){if(1==c.a)return a.g.info("Unschedule interstitial",b.Z),_.x(c,Ir(a.a),2);b.state=ps;_.z(c)})};
310
- ms=function(a,b,c){var d;_.H(function(e){switch(e.a){case 1:a.f=!0;_.D(e,2,3);d=js(a);if(!d){e.D(5);break}return _.x(e,os(a,d),5);case 5:return a.g.info("Seek into interstitial",b.Z),_.x(e,xs(a,b),3);case 3:_.wh(e);a.f=!1;_.xh(e);break;case 2:return _.F(e),_.x(e,a.l.seek(c),3)}})};
311
- ns=function(a,b,c){var d,e;_.H(function(f){switch(f.a){case 1:a.f=!0;_.D(f,2,3);d=js(a);if(!d){f.D(5);break}return _.x(f,os(a,d),5);case 5:return a.g.info("Play jumped interstitial",b.Z,"resume at",c.toFixed(2)),_.x(f,xs(a,b,c),3);case 3:_.wh(f);a.f=!1;_.xh(f);break;case 2:return e=_.F(f),a.g.warn("Failed to play jumped interstitial",b.Z,e),b.Dl=new Date,_.x(f,a.l.seek(c),3)}})};
312
- ts=function(a,b,c,d){var e=ys(a);a.g.info("Interstitial cues changed",e);var f=e;if(d){f=Mi(a.h.map(function(n){return n.Z}),e.map(function(n){return n.id}));zs(a,f.io);var g=new Set(f.Lj);f=e.filter(function(n){return g.has(n.id)})}if(!As(a,f))return!1;var h=[],l=[],m=[];f.forEach(function(n){var p=n.customAttributes.CUE||[];p.includes(_.sb)?l.push(n):!d&&p.includes("PRE")?h.push(n):!c&&n.startTime<a.j.$n?h.push(n):m.push(n)});1<h.length?a.g.warn("Multiple preroll interstitials not supported. Will display only the 1st one."):
313
- h[0]&&Bs(a,h[0],b);m.forEach(function(n){return Cs(a,n,1)});1<l.length?a.g.warn("Multiple postroll interstitials not supported. Will display only the 1st one."):l[0]&&Cs(a,l[0],2);Ds(a,e);return 0<h.length};
314
- Ds=function(a,b){var c,d,e,f;_.H(function(g){c=a.a.getCurrentItem();if(!c)return g["return"]();if(c.primary)return a.h.forEach(function(h){var l=b.find(function(n){return n.id===h.Z});if(l){var m=l.customAttributes[dc];null==h.sc&&null!=m&&(a.g.info(Tb,l.id,"Playout limit",m),h.sc=m,1===h.Ed&&h.state===vs&&Es(a,h))}}),g["return"]();d=b.find(function(h){return h.id===c.Sb});if(!d)return g["return"]();e=d.customAttributes[dc];if(null==e)return g["return"]();f=a.h.find(function(h){return h.Z===d.id});
315
- if(!f||null!=f.sc)return g["return"]();a.g.info(Tb,d.id,"Playout limit",e);f.sc=e;return _.x(g,Ar(a.a,e),0)})};zs=function(a,b){var c=new Set(b);a.h.forEach(function(d){c.has(d.Z)&&!Fs(d)&&a.g.warn("Removing an interstitial in active state",d)});a.h=a.h.filter(function(d){return!c.has(d.Z)})};ys=function(a){return a.l.getTimelineCues().filter(function(b){return Cj(b.schemeIdUri)&&b.customAttributes})};
316
- xs=function(a,b,c){var d;return _.H(function(e){if(1==e.a)return _.x(e,Gs(a,b),2);d=e.f;if(!d)throw Error("Failed to bind");return _.x(e,Hs(a,b,1,!1,c),0)})};Es=function(a,b){_.H(function(c){return 1==c.a?_.x(c,os(a,b),2):_.x(c,Is(a,b,a.l),0)})};
317
- Cs=function(a,b,c){var d=b.customAttributes[cc],e=b.customAttributes[bc],f=b.customAttributes[fc],g=b.customAttributes[dc],h=b.customAttributes[ec]||[];b.customAttributes[gc]||(b.customAttributes[gc]=null==f||0<f?"RANGE":"POINT");var l=b.customAttributes["X-YOSPACE-AUDIO-PRIORITY"];l="CONTENT"===l?Or:"AD"===l?Nr:void 0;var m=b.id,n=b.startTime,p=b.endTime,q=ps,t=null==f?null:Math.max(0,b.startTime+f),u="POINT"===b.customAttributes[gc],y=!h.includes("SKIP");h=!h.includes("JUMP");var A=b.customAttributes[ac];
318
- if(A)try{var B=JSON.parse(atob(A))}catch(E){B=null}else B=null;b={Z:m,startTime:n,endTime:p,state:q,mh:e,nh:d,Ca:null,V:t,mo:f,sc:g,Ed:c,xm:u,Uj:y,wh:h,pj:B,Hi:null!=f&&0>f,once:(b.customAttributes.CUE||[]).includes("ONCE"),mj:!1,bh:!0,customAttributes:b.customAttributes,audio:l};a.h.push(b);return b};
319
- Bs=function(a,b,c){var d,e,f,g,h;_.H(function(l){switch(l.a){case 1:return d=Cs(a,b,0),_.x(l,Gs(a,d),2);case 2:e=l.f;f=d.Ca?d.Ca.length:0;if(e&&0<f){_.D(l,8);a.g.info("Player preroll interstitial "+d.Z);var m=Hs(a,d,0,c);return _.x(l,m,10)}e?a.g.warn("Preroll interstitial has no assets, skipping"):a.g.error("Preroll interstitial failed, skipping");return _.x(l,$r(a.a),5);case 5:if(c){l.D(0);break}return _.x(l,Cr(a.a),0);case 10:_.vh(l,0);break;case 8:g=_.F(l);a.g.error("Preroll interstitial failed.",
320
- g);if(h=xr(a.a))return _.x(l,a.a.play(h.id),0);l.D(0)}})};Js=function(a){a.o.forEach(function(b){return b()});a.o=[]};
321
- qs=function(a,b){function c(){a.A=!1}function d(){a.A=!0}function e(){ts(a,!1,!0,!0)}function f(){var g,h,l,m,n;return _.H(function(p){switch(p.a){case 1:if(a.f||a.A)return p["return"]();g=b.getPosition();h=Ks(a,g);if(!h){p.D(2);break}return _.x(p,Gs(a,h),3);case 3:(l=p.f)&&Is(a,h,b);case 2:m=Ls(a);if(!(m&&m.state===ps&&b.getDuration()-g<a.j.resolutionOffsetSec)){p.D(0);break}return _.x(p,Gs(a,m),5);case 5:if(n=p.f)if(m.Ca&&0!==m.Ca.length){var q=a.a.getCurrentItem();if(q){var t=Ms(a,m,2);if(0!==
322
- t.length){var u=t[0].id;q.next=[u];q.transition={Fa:u};a.g.info("Schedule postroll interstitial "+m.Z);Ns(a,m,t)}}}else a.g.warn("Postroll interstitial has no assets, ignoring.");_.z(p)}})}b.on(_.sg,f);a.o.push(function(){b.off(_.sg,f)});b.on(_.rg,e);a.o.push(function(){b.off(_.rg,e)});b.on(_.hc,d);a.o.push(function(){b.off(_.hc,d)});b.on(_.ic,c);a.o.push(function(){b.off(_.ic,c)})};Ls=function(a){return a.h.find(function(b){return 2===b.Ed})||null};
323
- As=function(a,b){for(var c=b.sort(function(n,p){return n.startTime-p.startTime}),d=a.j.resolutionOffsetSec,e=Infinity,f=[],g=0;g<c.length-1;g++){var h=c[g],l=c[g+1];l&&(e=Math.min(e,l.startTime-h.endTime));l&&l.startTime<=h.endTime&&f.push("Interstitials "+h.id+" and "+l.id+" overlap.")}e<d&&(c=e/2,a.j.resolutionOffsetSec=c,a.g.info("Interstitials are closer than configured resolutionOffsetSec ("+(d+" s) auto-reconfiguring to ")+(c+" s.")));var m=[];b.forEach(function(n){var p=n.customAttributes[cc];
324
- n.customAttributes[bc]||p||m.push("Interstitial cue "+n.id+" is invalid it contains neither X-ASSET-LIST nor X-ASSET-URI.")});0<m.length?a.g.error("Invalid interstitials, all interstitials will be skipped. "+m.join(" ")):0<f.length&&a.g.warn("Unsupported format of interstitials, playback may not behave correctly. "+f.join(" "));return 0===m.length};Ks=function(a,b){return a.h.find(function(c){var d=c.startTime-b;return 1===c.Ed&&Fs(c)&&0<d&&d<=a.j.resolutionOffsetSec})||null};
325
- ks=function(a,b){return a.h.find(function(c){return Fs(c)&&!c.xm&&1===c.Ed&&b>c.startTime&&b<c.endTime})||null};ls=function(a,b){var c=a.l.getPosition();return a.h.filter(function(d){return 1===d.Ed&&!d.wh}).sort(function(d,e){return e.startTime-d.startTime}).find(function(d){return d.startTime>c&&d.startTime<b})||null};
326
- Gs=function(a,b){var c,d,e,f;return _.H(function(g){switch(g.a){case 1:b.state=ws;if(!b.mh){b.nh?(b.Ca=[{URI:b.nh,DURATION:b.endTime-b.startTime}],a.$a(new _.K(pc,{id:b.Z,detail:Os(b)})),b.state=Ps):b.state=Qs;g.D(2);break}_.D(g,3);a.g.info("Load X-ASSET-LIST for "+b.Z);a.$a(new _.K(nc));return _.x(g,Rs(a,b.mh),5);case 5:c=g.f;b.Ca=c.ASSETS;b.Ca&&0!==b.Ca.length||a.g.info("Interstitial "+b.Z+" has no assets, will be smoothly skipped");null==b.V&&(d=Hj(b.Ca.map(function(h){return h.DURATION})),e=null==
327
- b.sc?d:Math.min(b.sc,d),b.V=b.startTime+e);b.state=Ps;a.$a(new _.K(oc));a.$a(new _.K(pc,{id:b.Z,detail:c}));_.vh(g,2);break;case 3:f=_.F(g),a.g.error("Failed to load X-ASSET-LIST",f),b.state=Qs;case 2:return g["return"](b.state===Ps)}})};Ss=function(a,b){var c=a.j.Yn;if(c){var d=new URL(b);d.searchParams.set("_HLS_primary_id",c);return d.toString()}return b};
328
- Hs=function(a,b,c,d,e){var f,g,h;return _.H(function(l){if(0===b.Ca.length)return l["return"]();f=a.a.getCurrentItem();if(!f)return l["return"]();g=Ms(a,b,c);if(0===g.length)return l["return"]();Ns(a,b,g);(h=0===c&&a.l.isLive())||(null!=e?Xr(a.a,e,!0):null!=b.V&&Xr(a.a,b.V));return d?_.x(l,a.a.load(g[0].id),0):_.x(l,a.a.play(g[0].id),0)})};
329
- Is=function(a,b,c){if(b.Ca)if(0===b.Ca.length){var d=function(){c.isLive()?a.g.info("Skipping empty live interstitial "+b.Z):null!=b.V&&0!==b.mo?c.seek(b.V):a.g.info("Empty VOD interstitial "+b.Z+", continuing to next segment")};c.one(_.pg,d);a.o.push(function(){c.off(_.pg,d)});a.g.info(Gb+b.Z+" to be skipped")}else{var e=a.a.getCurrentItem();if(e){var f=Ms(a,b,1);if(0!==f.length){var g=f[0].id;null!=b.V&&Xr(a.a,b.V);e.next=[g];e.transition={xf:{position:b.startTime,itemId:g,V:b.V}};a.g.info(Gb+b.Z+
330
- " for "+(b.startTime+" s"));Ns(a,b,f)}}}};Ns=function(a,b,c){Dr(a.a,c);c=a.a;Kr(c);c.h&&(c.h.ab&&Tr(c,c.h,c.h.ab),Vr(c),Wr(c,c.h.next));b.state=vs;a.$a(new _.K(_.rc,{detail:null}))};
331
- Ms=function(a,b,c){var d=0,e=b.Ca.map(function(h,l){var m=b.Z+"-"+l;d+=h.DURATION;return{id:m,config:{source:{url:Ss(a,h.URI),type:_.bm}},duration:h.DURATION,wb:d,Sb:b.Z,next:[],ab:new W(c,l+1,b.Ca.length,h.DURATION,b.Z,b.Uj,b.customAttributes||null),audio:b.audio}});e.forEach(function(h,l){var m=l===e.length-1;m&&2===c||(m?(h.next=[Cf],h.transition={Fa:Cf}):(m=m?Cf:h.Sb+"-"+(l+1),h.next=[m],h.transition={Fa:m}))});e.forEach(function(h){h.zf=function(){var l=h.ab;a.g.info("Playing ad "+(l.f+"/"+l.a)+
332
- " of interstitial "+h.Sb)}});if(null!=b.sc&&(e=Ts(a,b,e),0===e.length))return[];var f=e[0].zf;e[0].zf=function(){b.mj=!0;b.Hi&&(b.bh=!1);a.g.info("Playing interstitial "+b.Z+" with "+(b.Ca.length+" assets and will resume primary content ")+((b.V?"at "+b.V.toFixed(1)+" s":"after interstitial ended")+"."));f()};e[0].Pi=function(h){null==b.V&&(b.V=b.startTime+h,Xr(a.a,b.V),a.g.info("Primary content will resume at",b.V.toFixed(1),"s"));b.state=Us};var g=e[e.length-1];g.Fa=function(){b.state=Vs;Er(a.a,
333
- e.map(function(h){return h.id}));2===c&&$r(a.a)};g.Jg=a.j.adReleaseDelayMs;return e};
334
- Ts=function(a,b,c){var d=b.sc;a.g.info("Playout limit for "+b.Z+" is "+(d+" s"));b=c[c.length-1].wb;if(d>=b)return a.g.info("Playout limit ("+d+") islarger or equal to total duration: ("+(b+").")),c;if(0>=d)return a.g.info("Discarding all ads."),[];var e=c.filter(function(f){return f.wb-f.duration<=d});e.forEach(function(f){f.ab.a=e.length});a=e[e.length-1];c=d-(a.wb-a.duration);.1>Math.abs(c-a.duration)?a.transition.Fa=Cf:a.transition.xf={position:c,itemId:Cf,V:null};a.maxDuration=c;return e};
335
- Rs=function(a,b){var c,d,e,f,g,h;return _.H(function(l){if(1==l.a){c=a.a.ff();if(!c)throw Error("No player found");d=c.getNetworkEngine();e=_.ik(Ss(a,b));return _.x(l,Fk(d,e),2)}f=l.f;if(null===f)return a.g.warn("X-ASSET-LIST "+b+" returned no content"),l["return"]({ASSETS:[]});g=Ws(f);if(!g)throw new _.$i("Invalid X-ASSET-LIST list response");h=f;return l["return"](h)})};
336
- Ws=function(a){return a&&a.ASSETS&&Array.isArray(a.ASSETS)?a.ASSETS.every(function(b){return typeof b.URI===_.fg&&typeof b.DURATION===_.k}):!1};Fs=function(a){return a.bh&&!(a.once&&a.mj)&&[ps,Vs].includes(a.state)};Os=function(a){var b={URI:a.Ca[0].URI,DURATION:a.Ca[0].DURATION};a.pj&&(b[ac]=a.pj);return{ASSETS:[b]}};Xs=function(){this.a=null};
337
- Ys=function(){try{var a=URL.createObjectURL(new Blob);URL.revokeObjectURL(a);return a.slice(a.lastIndexOf("/")+1)}catch(c){var b=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(d){var e=(b+16*Math.random())%16|0;b=Math.floor(b/16);return("x"===d?e:e&3|8).toString(16)})}};$s=function(a){this.m=a;this.j=this.m.getNetworkEngine();this.a=new _.hi;this.h=null;this.f=!0;Zs(this)};
338
- Zs=function(a){a.a.on(window,"offline",function(){at(a,!1)});a.a.on(window,"online",function(){a.f||bt(a)});a.a.on(a.m,ag,function(){return ct(a)});a.a.on(a.m,"suspend",function(){return ct(a)});a.a.on(a.m,_.Sg,function(){return ct(a)});a.a.on(a.m,_.sf,function(){a.f||bt(a)});a.a.on(a.m,_.Ef,function(){a.f||bt(a)});a.a.on(a.m,_.cg,function(){switch(a.m.getState()){case _.Bq:ct(a);break;default:ct(a)}})};bt=function(a){a.m.getConfiguration().connectivityCheck&&(dt(a),a.h=(new _.Yh(function(){return et(a)})).ha(5))};
339
- ct=function(a){a.f&&bt(a)};dt=function(a){a.h&&(a.h.stop(),a.h=null)};et=function(a){var b,c;return _.H(function(d){if(1==d.a)return(b=a.m.getConfiguration().connectivityCheck)&&a.m?_.x(d,Kk(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;at(a,c);_.z(d)})};at=function(a,b){dt(a);a.f!==b&&(a.f=b,a.m&&a.m.getConfiguration().connectivityCheck&&a.m.trigger(new _.K(Ze,{online:a.f})))};gt=function(){for(var a=0;a<ft.length;++a)ft[a].kd()};
340
- _.ht=function(a){var b=b||0;a={priority:b,kd:a};for(var c=0;c<ft.length;c++)if(ft[c].priority<b){ft.splice(c,0,a);return}ft.push(a)};it=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};jt=function(a,b,c){var d=_.Q.ea;this.h=a;this.f=b;JSON.parse(d(_.Qm(a)));this.a=JSON.parse(d(_.Qm(b)));this.j=c};
341
- lt=function(a){var b=kt,c=_.Q.hb,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=_.Qm(f);return l.verify(m,n,q.buffer,p.buffer)}).then(function(n){n?g():h(new _.$i("Signature Verification failed",wg))})["catch"](h)}else g()})};mt=function(a){this.f=a;this.a=null;this.g=new _.J("clpp.utils.LicenseKey")};
342
- nt=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 jt(b[0],b[1],b[2]);a.a=b}return a.a};
343
- ot=function(a){var b,c,d;return _.H(function(e){if(1==e.a)return b=nt(a),_.D(e,2),_.x(e,lt(b),4);if(2!=e.a)return _.vh(e,0);if((c=_.F(e))&&c.code===wg)throw c;var f=window.location.href,g=new _.ej(f);d=g.Fb||g.bb?g:new _.ej("//"+f);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(d.bb))return e["return"]();throw c;})};
344
- pt=function(a){switch((a.ba[0]||{src:"",type:""}).type){case _.Ic:a="dash";break;case _.Nc:a="ss";break;case _.bm:a="hls";break;case _.Mg:a="mp4";break;default:a=""}return a};qt=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};rt=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};st=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};
345
- ut=function(a){var b=a.configuration,c="no";b.drm&&!_.L.ra(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(ce)||tt(a).endsWith("drmtoday.com"))&&(c=ce);return c};vt=function(a){a=a.drmInfo;var b="";if(a)switch(a.keySystem){case _.Gd:b="wv";break;case _.Ed:b="pr";break;case _.Cd:b="fps"}return b};wt=function(a){a=a.drmInfo;var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};
346
- xt=function(a){a=a.drmInfo;var b="";if(a)switch(a.videoRobustness){case Va:case Ta:b="L1";break;case Ua:b="L2";break;case _.Fb:case _.Eb:b="L3"}return b};tt=function(a){a=a.drmInfo;return(new _.ej(a&&a.licenseServerUri||"")).bb};
347
- Bt=function(a,b){var c="ie"===_.yk().browser,d=b.configuration,e=_.hh(Array.from(_.Bm.keys())).concat(_.hh(b.ej));d={"CL-KEY":a.f,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ia,"CL-USER-ID":qt(d),"CL-ASSET-ID":rt(d),"CL-SESSION-ID":st(d),"CL-PLAYBACK-TYPE":b.isLive?yt:zt,"CL-CONTENT-TYPE":pt(b),"CL-PLUGINS":e.join(" "),"CL-DRM":ut(b),"CL-DRM-CDM":vt(b),"CL-DRM-SEC-LEVEL":xt(b),"CL-DRM-OFFLINE":wt(b),"CL-DRM-IP":tt(b)};At&&At.companionSdk&&(At.companionSdk.name&&(d["CL-COMPANION-SDK"]=At.companionSdk.name),
348
- At.companionSdk.version&&(d["CL-COMPANION-SDK-VERSION"]=At.companionSdk.version));c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=e);e=_.ik(["https://downloads.castlabs.com/r/register/"]);e.method="GET";e.headers=d;return(new _.Bk).fetch(e).T.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=nt(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;
349
- 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.";break;default:f=Promise.resolve();break a}a.g.error(bb+l);f=Promise.reject(new _.N(_.O,7,g,l))}}return f})};
350
- Dt=function(a){this.m=a;this.f=a.getNetworkEngine();this.h=Ct(this);this.f.gd(this.h);this.a=null};
351
- Ct=function(a){return function(b){var c=b.headers,d=b=null,e=_.L.ii(c,"cmsd-dynamic");c=_.L.ii(c,"cmsd-static");e&&(b=Et(e),a.a=b);if(c)try{e={};var f=c.split(",");for(c=0;c<f.length;c++){var g=Ft(f[c]),h=g.key,l=g.value;Object.keys(Gt).includes(h)&&(e[Gt[h]]=l)}d=_.L.Jc(e)?e:null}catch(m){Ht.error("CmsdManager parseCmsdStaticHeader_ failed:",m),d=null}(b||d)&&a.m.trigger(new _.K("cmsd-event",{qp:b,Ep:d}))}};
352
- Et=function(a){try{var b=a.split(",").map(function(c){var d={};c=c.split(";");for(var e=0;e<c.length;e++){var f=Ft(c[e]),g=f.key;f=f.value;Object.keys(It).includes(g)&&(d[It[g]]=f)}return d}).filter(function(c){return _.L.Jc(c)});return 0<b.length?b:null}catch(c){return Ht.error("CmsdManager parseCmsdDynamicHeader_ failed:",c),null}};
353
- Ft=function(a){var b=a.split("\x3d"),c=b[0];b=b[1];if(!c)throw new _.$i("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 _.$i("Parsing CMSD, not recognized value type of "+a);};
354
- X=function(a,b,c){_.pm.call(this);var d=this;gt();this.g=new _.J("clpp.Player");if(!a)throw new _.N(_.O,7,7102);this.za=new _.hi;this.f=this.F=b||_.wm();this.l=null;void 0===this.f.license&&(this.f.license=tm,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 _.N(_.O,7,7101,"No license provided in configuration!");this.j=new rr(a,c);this.H=this.A=this.a=this.G=
355
- null;this.J=new _.Bk;this.h=null;this.ia=[];this.ka=!0;this.L={};this.Ea=null;this.Y=!0;this.ca=this.S=!1;this.N=this.td=null;this.pg=!1;this.jb=new $s(this);this.B=null;this.on(_.cg,function(){d.getState()===_.Hq&&(d.a?d.a.unload():Promise.resolve())});this.on(_.Ec,function(){d.pg=!0});this.on(_.Dc,function(){d.pg=!1});this.on(_.rg,function(){return Jt(d)});Kt(this,this.f.license);this.j.getMedia()&&(a=this.j.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),this.g.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),
356
- 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=_.v(Lt);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)}}Mt(this,a);this.P=_.qa;Hm(this)};
357
- _.Nt=function(a,b,c){c=void 0===c?null:c;null!=b&&b===a.a?a.a.forwardEventsTo(a):(a.a&&(a.a.stopForwardingEventsTo(a),a.a.destroy(),a.a=null,a.A=null),b&&(b.init(a.j,a.F),b.setNetworkEngine(a.getNetworkEngine()),b.forwardEventsTo(a),a.a=b,a.A=c))};Kt=function(a,b){a.G=new mt(b);ot(a.G)["catch"](function(c){setTimeout(function(){a.g.error(bb+c);a.trigger(new _.K(_.ie,{detail:new _.N(_.O,7,7101)}));a.destroy()},1E3)})};
358
- Ot=function(a,b){var c,d;_.H(function(e){if(1==e.a)return a.j.getMedia()||a.j.getCastElement(),a.G||(a.G=new mt(a.f.license)),_.D(e,2),a.g.debug("Verifying license remotely"),_.x(e,Bt(a.G,b),4);if(2!=e.a)return a.g.debug("License verified remotely"),_.vh(e,0);c=_.F(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(it,1E3,d,c);_.z(e)})};
359
- Mt=function(a,b){a.ia=b;for(var c=_.v(a.ia),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.L[e]=d)}a.Rc("onPlayerCreated")};
360
- Pt=function(a){var b,c;return _.H(function(d){switch(d.a){case 1:if(a.Y)return a.g.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.za.off(document,Qg);a.trigger(new _.K(_.Lf));a.j&&a.j.release();if(!a.h){d.D(2);break}return _.x(d,a.h.Dc(),3);case 3:a.h=null;case 2:if(!a.B){d.D(4);break}return _.x(d,a.B.release(),5);case 5:a.B=null;case 4:if(a.a)return b=null,c=a.a.on(_.cg,function(e){b=e}),d["return"](a.Rc(_.Xe).then(function(){a.a.stopForwardingEventsTo(a);
361
- return Promise.all([a.a.release(),a.J.release()])}).then(function(){a.g.debug("Releasing player completed");b&&(a.g.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.cg,c);a.trigger(new _.K(Kf))}));a.trigger(new _.K(Kf));return d["return"](new Promise(function(e){return e()}))}})};
362
- Rt=function(a,b,c){if(a.P===_.rb)b=Qt(b,c);else if(2!==(a.a?a.a.canPlay(b[0],c):0)||a.ca){a.ca=!1;if(b){for(var d=a=null,e=0;e<b.length;e++);e=Object.values(_.Sh);for(var f=0;f<b.length;f++)for(var g=0;g<e.length;g++){var h={lb:e[g],confidence:e[g].canPlay(b[f],c)};if(null===a||a.confidence<h.confidence)a=h,d=f}a&&typeof d===_.k&&0<a.confidence?(_.Th.debug("Player Factory '"+a.lb.a()+"' can play",b[d]),b=new Rh(a.lb,d)):(_.Th.debug("No compatible Player Factory found for sources:",b),b=null)}else b=
363
- null;if(!b)throw new _.N(_.O,7,7003,"No player factory compatible with given sources found!");c=b.lb;a=c.create();b={lb:c,player:a,sourceIndex:b.sourceIndex}}else b={lb:a.A,player:a.a,sourceIndex:0};return b};Qt=function(a,b){var c=Vh(function(d){return d.f(_.rb)&&a.every(function(e){return 2===d.canPlay(e,b)})});if(!c)throw new _.N(_.O,7,7003,"No compatible player implementing playlist mode found!");return{lb:c,player:c.create(),sourceIndex:0}};
364
- Tt=function(a){var b;return _.H(function(c){if(1==c.a){if(!a.a)return a.g.warn(ub),c["return"]();b=a.a;if(!b.Bh)return a.g.warn(yb),c["return"]();a.trigger(new _.K(Fe));return _.x(c,b.Bh(),2)}return _.x(c,_.St(a),0)})};
365
- _.Xt=function(a,b,c){var d,e;return _.H(function(f){if(1==f.a){if(a.S)throw new _.N(_.O,7,7E3,"Player is already destroyed.");if(!a.j)throw new _.N(_.O,7,7E3,"No surface associated with this player!");_.cp(nf);return _.x(f,a.release(),2)}if(3!=f.a){d=c||_.Oq(b);if(!b||0===d.length)throw new _.N(_.O,7,7003,lb);a.Ea=d;a.f=_.ym(a.F,b,{source:d});a.Y=!1;e=Rt(a,d,a.f);_.Nt(a,e.player,e.lb);Ut(a,a.a);a.a&&a.a.setSourceIndex(e.sourceIndex);Vt(a);a.a&&a.a.setCdnErrorCallback(a.N);Wt(a,a.f);a.f.cmsd.enabled&&
366
- (a.B=new Dt(a),a.a.setCmsdManager(a.B));if(a.f.pauseWhenInBackground)a.za.on(document,Qg,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});Im(a);return _.x(f,a.Rc("onContentWillLoad",a.f.source[e.sourceIndex]),3)}_.cp(mf);_.ep("player.beforeLoad",nf,mf);_.z(f)})};
367
- _.Yt=function(a){return _.H(function(b){a.j.getMedia()||a.j.getCastElement();a.trigger(new _.K(Fe));return _.x(b,Promise.all([a.a.load(a.f),a.h?a.h.load():Promise.resolve()]),0)})};Ut=function(a,b){try{var c=crypto.randomUUID()}catch(d){c=Ys()}a.g.info("Playback session started, ID:",c);b.setPlaybackSessionId(c);a.H=c};Zt=function(a){a.H&&(a.g.info("Playback session ended, ID:",a.H),a.H=null,a.a&&a.a.setPlaybackSessionId(null))};
368
- au=function(a){var b,c,d,e;_.H(function(f){if(1==f.a){b=[];if(a.f.remoteTextTracks)for(c=_.v(a.f.remoteTextTracks),d=c.next();!d.done;d=c.next())e=d.value,b.push(a.getTrackManager().addTextTrack(e));return _.x(f,Promise.all(b),2)}$t(a);_.z(f)})};
369
- $t=function(a){var b=_.Hi(a.f.preferredTextLanguage).filter(function(f){return f}),c=a.f.preferForcedSubtitles,d=a.getTrackManager().oa().filter(function(f){return c?f.kind===_.ke:f.kind!==_.ke});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().na();e&&e.language?(e=_.Dj(e.language||""),b.push(e)):(e=a.getTrackManager().Ma())&&e.language&&(e=_.Dj(e.language||""),b.push(e));0===
370
- 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().Za(f),!0;c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles match the preferred languages: ",b);return!1})}};
371
- _.St=function(a){var b;return _.H(function(c){if(1==c.a)return _.cp(jf),Ot(a,{configuration:a.getConfiguration(),ba:a.mi(),drmInfo:a.getDrmInfo(),ej:Object.keys(a.L),isLive:a.isLive()}),au(a),Jm(),_.x(c,a.Rc(_.Ue),2);if(3!=c.a)return a.f.autoplay?(b=a.h?a.h.hd():!0)?_.x(c,a.play(),3):c.D(3):c.D(3);_.cp(hf);_.ep("player.afterLoad",jf,hf);_.z(c)})};Wt=function(a,b){var c=dr(a,b);c&&(a.h=c.create(a))};
372
- Jt=function(a){if(!a.h&&a.A&&a.a&&a.f.ads.hls.enable&&a.getTimelineCues().some(function(c){return Cj(c.schemeIdUri)})){var b=a.f.mse.sendPlaybackSessionIdHeader?a.H:null;a.h=new Xs;a.h.md(a.a,a.A,b)}};Vt=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.H(function(c){return a.pg&&a.td?_.x(c,a.td(b),0):c["return"]()})})};_.bu=function(a){a&&(0<=Lt.indexOf(a)||Lt.push(a))};
373
- cu=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.F=_.L.ua(this.F,a);this.f=_.L.ua(this.f,a);this.I=0;this.o=[];this.da=!1;this.w=null;this.K=[]};du=function(a){a.K.forEach(function(b){return b()});a.K=[]};
374
- eu=function(a,b){function c(f){a.I=a.o.findIndex(function(g){return g.id===f.id})}a.addEventListener(_.Rf,c);a.K.push(function(){a.removeEventListener(_.Rf,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 _.K(_.Qf)),a.pause())};a.addEventListener(_.sg,e);a.K.push(function(){a.removeEventListener(_.sg,e)})}};
375
- hu=function(a,b){var c,d;return _.H(function(e){switch(e.a){case 1:return _.D(e,2),_.cp(rf),a.P=_.rb,a.ka=!1,c=b.slice(1).map(function(f){return{config:f,ba:_.Oq(f)}}),_.x(e,_.Xt(a,b[0]),4);case 4:return c.forEach(function(f){fu(a,f.config,f.ba)}),a.trigger(new _.K(Fe)),_.x(e,a.a.setupPlaylist(b),5);case 5:return _.x(e,_.St(a),6);case 6:c.forEach(function(f){gu(a,f.config,f.ba)});_.cp(qf);_.ep("player.setupPlaylist",rf,qf);_.vh(e,0);break;case 2:d=_.F(e);if(a.l)throw a.g.info(cb),new _.N(_.O,7,7E3);
376
- throw d;}})};iu=function(a,b){var c,d;return _.H(function(e){if(1==e.a)return _.D(e,2),_.cp(lf),c=_.Oq(b),fu(a,b,c),_.x(e,a.a.appendLoad(b),4);if(2!=e.a)return gu(a,b,c),_.cp(kf),_.ep("player.appendLoad",lf,kf),_.vh(e,0);d=_.F(e);if(a.l)throw a.g.info(cb),new _.N(_.O,7,7E3,{id:b.id});throw d;})};gu=function(a,b,c){Ot(a,{configuration:b,ba:c,drmInfo:a.getDrmInfo(),ej:Object.keys(a.L),isLive:c[0].isLive})};
377
- fu=function(a,b,c){if(0===c.length)throw new _.N(_.O,7,7003,{message:lb,id:b.id});if(1<c.length)throw new _.N(_.O,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 _.N(_.O,7,7003,{message:"Source not supported by the current player!",id:b.id,source:c[0]});};
378
- lu=function(a){_.pm.call(this);var b=this;this.j=_.L.ua({transition:_.cf,preloadMedia:!1},a);this.h=[];this.a=0;var c=ju(a.anchorId,this.j.config);this.w=new gr(c);this.f=null;this.l=!1;this.o=new Map;this.A=a.toggleVisible;this.g=new _.J(xd);this.w.a.forEach(function(d){return ku(b,d.player,!1)})};nu=function(a){return Promise.all(Array.from(a.o.keys()).map(function(b){return mu(a,b)}))};
379
- mu=function(a,b){var c;return _.H(function(d){if(1==d.a){c=a.o.get(b);if(!c)return d.D(0);a.g.info("Stop preloading item (index: "+b+")");return c.player?_.x(d,ou(a,c),3):d.D(3)}a.o["delete"](b);_.z(d)})};qu=function(a,b){return _.H(function(c){if(1==c.a)return a.g.info("Stop current playback (index: "+b.index+")"),b.player.pause(),ku(a,b.player,!1),_.x(c,ou(a,b),2);b.player=null;b.videoEl=null;b.role=pu;_.z(c)})};
380
- ou=function(a,b){return _.H(function(c){b.disposers.forEach(function(d){return d()});b.disposers=[];return b.player?_.x(c,a.w.release(b.player),0):c.D(0)})};tu=function(a,b){var c;return _.H(function(d){if(1==d.a)return _.x(d,a.w.get(),2);if(3!=d.a)return c=d.f,a.f=b,b.role=ru,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),ku(a,c,!0),_.x(d,c.load(b.config),3);su(a,b);return b.config.autoplay?d.D(0):_.x(d,c.play(),0)})};
381
- uu=function(a,b){return _.H(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Af){c.D(2);break}a.g.info(Xb);_.D(c,3);return _.x(c,b.preloadPromise,5);case 5:_.vh(c,2);break;case 3:_.F(c);case 2:a.f=b;b.role=ru;ku(a,b.player,!0);if(b.state===zf)return _.cp(wf),a.j.preloadMedia?_.x(c,b.player.play(),11):_.x(c,Tt(b.player),11);if(b.state!==yf){c.D(7);break}return _.x(c,b.player.load(b.config),7);case 11:_.cp(vf),_.ep("playlist.next",wf,vf);case 7:if(su(a,b),b.config.autoplay)c.D(0);
382
- else return _.x(c,b.player.play(),0)}})};su=function(a,b){if(a.j.autoplayNext){var c=function(){a.g.info("Automatically transition to next item");a.cj()};b.player.on(_.he,c);var d=b.player;b.disposers.push(function(){d.off(_.he,c)})}};wu=function(a){var b;return _.H(function(c){b=a.a+1;a.g.info("Preload following item (index: "+b+")");return _.x(c,vu(a,b),0)})};xu=function(a){var b;return _.H(function(c){b=a.a-1;a.g.info("Preload preceding item (index: "+b+")");return _.x(c,vu(a,b),0)})};
383
- yu=function(a){var b;_.H(function(c){if(0===a.a)return _.x(c,wu(a),0);if(a.a===a.h.length-1)return _.x(c,xu(a),0);b=[a.a-1,a.a+1];a.g.info("Preload items (indices: "+b+")");return _.x(c,Promise.all(b.map(function(d){return vu(a,d)})),0)})};
384
- vu=function(a,b){var c,d,e;return _.H(function(f){switch(f.a){case 1:return _.x(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=pu,d.state=Af,a.trigger(new _.K(zg)),_.D(f,3),a.o.set(b,d),a.j.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),_.x(f,d.preloadPromise,5);case 5:d.state=
385
- zf;a.trigger(new _.K(zg));_.vh(f,0);break;case 3:e=_.F(f),7001===e.code?(a.g.info("Preload aborted (index: "+b+")"),d.state=xf):(a.g.warn("Preload failed (index: "+b+")",e),a.trigger(new _.K(_.ie,{detail:e})),d.state=yf),a.trigger(new _.K(zg)),_.z(f)}})};ku=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.info(Jb+b),d.classList.add(qd)):(a.g.info(Xa+b),d.classList.remove(qd)),a.A&&a.A(d,c))};
386
- zu=function(a){var b;return _.H(function(c){if(1==c.a)return _.x(c,a.w.destroy(),2);b=document.getElementById(a.j.anchorId);if(!b)return c["return"]();b.classList.remove(od);b.innerHTML="";_.z(c)})};
387
- ju=function(a,b){var c=document.getElementById(a);if(!c)throw Error("Anchor element not found");c.classList.add(od);return Array.from({length:3}).map(function(){var d=document.createElement(_.Jg);d.classList.add("clpp-mc-playlist-video-el");var e=document.createElement(_.Pd);e.classList.add("clpp-mc-playlist-item");e.appendChild(d);c.appendChild(e);return new X(d,b)})};
388
- _.Bu=function(a){if(Au.has(a))return Au.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);Au.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),Au.set(a,b),b):!1};Cu=function(a){this.h=a;this.f={keepOriginalTimestamps:!0,remux:!1};this.a=new muxjs.mp4.Transmuxer(this.f)};
389
- Du=function(a,b){var c=b.replace(/mp2t/i,"mp4");a===_.Pc&&(c=c.replace(_.Jg,_.Pc));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};Eu=function(){};_.Fu=function(){};
390
- Gu=function(a,b,c,d,e){_.dn.call(this,Wa);this.l=a;this.j=b;this.h=c;this.a=d;this.o=e;this.g=new _.J(td);_.Q.empty(this.l)?this.g.warn(_.Zb):this.fb(_.Gd,{licenseUrl:this.l,videoRobustness:[_.Fb,void 0],audioRobustness:[_.Eb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.Ae.bind(this)}});_.Q.empty(this.j)?this.g.warn(_.tb):this.fb(_.Ed,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.Ae.bind(this)}});
391
- _.Q.empty(this.h)?this.g.warn(_.Ra):_.Q.empty(this.a)?this.g.warn(_.Qa):this.fb(_.Cd,{licenseUrl:this.h,certificateUrl:this.a,modifiers:{licenseRequest:this.Mi.bind(this),licenseResponse:this.Ni.bind(this),certificateRequest:this.Ae.bind(this),extractContentId:this.Vh.bind(this)}})};Hu=function(){};Iu=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.me)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
392
- Ju=function(a){a=a.target;if(a.webkitPresentationMode===ff){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)};Ku=function(){return this.webkitSupportsPresentationMode(ff)?(this.webkitSetPresentationMode(ff),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
393
- Lu=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};Mu=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};Nu=function(a,b,c){return new window.TextTrackCue(a,b,c)};
394
- Ou=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};Qu=function(a,b,c){if("input"===a)switch(this.type){case "range":a=kd}Pu.call(this,a,b,c)};Tu=function(){this.a=Su()};Uu=function(a){return Su()-a.a};Vu=function(a){var b=new Tu;b.a=a.a;return b};Su=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.Wu=function(a){var b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next()){c=_.v(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};
395
- Xu=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.h=b;this.f=0};Yu=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};_.Zu=function(a,b,c){this.h=a;this.j=b;this.f=c||this.h.getMedia();this.a=null};_.av=function(){this.a=new Blob([$u],{type:_.Mg})};_.bv=function(a,b,c,d){this.id=a;this.f=b;this.a=c;this.h=d};_.cv=function(){this.a=[];this.f=-1;this.h=null};
396
- _.ev=function(a,b,c,d){var e,f;return _.H(function(g){if(1==g.a)return _.D(g,2),_.x(g,dv(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.F(g);f.a(_.O);throw f;})};
397
- dv=function(a,b,c,d){var e,f,g,h;return _.H(function(l){if(1==l.a){if(d){if(e=_.fv[d.toLowerCase()])return l["return"](e);_.Kh("Could not determine manifest type using MIME type ",d)}if(f=_.gv(a)){if(g=_.hv[f])return l["return"](g);_.Kh("Could not determine manifest type for extension ",f)}else _.Kh("Could not find extension for ",a);return d?l.D(2):_.x(l,iv(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(h=_.fv[d])return l["return"](h);_.Kh("Could not determine manifest type using MIME type",d)}throw new _.N(_.O,
398
- 4,4E3,{url:a});})};iv=function(a,b,c){var d,e,f;return _.H(function(g){if(1==g.a)return d=_.ik(a),fk(d,c),d.type=1,d.method="HEAD",_.x(g,b.fetch(d).T,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.gv=function(a){a=(new _.ej(a)).Na.split("/").pop().split(".");return 1===a.length?"":a.pop().toLowerCase()};jv=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.h=new Tu};
399
- lv=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(kv(a,d),ok(c,d.byteLength,Uu(a.h)),a.h.a=Su());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 lv(a,b,c)})})};kv=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};
400
- zk=function(a){var b=a.uris[a.uriIndex],c=new mv,d=new Tu,e=Vu(d),f=0,g,h=new _.qk;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=Uu(e));p.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!l&&(p=p.getResponseHeader(za),nk(a,p),l=!0)};c.onload=function(p){p=p.target;var q=(p.getAllResponseHeaders()||"").trim().split("\r\n"),t={};
401
- q=_.v(q);for(var u=q.next();!u.done;u=q.next())u=u.value.split(": "),t[u[0].toLowerCase()]=u.slice(1).join(": ");try{var y=Uu(e);m||ok(a,p.response?p.response.length:0,y);var A=_.mk(t,p.response,p.status,b,p.responseURL,a,y,g);a.rateLimitBps?pk(a.rateLimitBps,Uu(e),a.bytesLoaded).then(function(){h.resolve(A)}):h.resolve(A)}catch(B){h.reject(B)}};c.onerror=function(p){p=p.target;if(0>=p.status)h.reject(new _.N(1,1,1002,{url:b,request:a,status:p.status}));else{var q=p.getAllResponseHeaders(),t={};if(q){q=
402
- _.v(q.trim().split("\r\n"));for(var u=q.next();!u.done;u=q.next())u=u.value.split(": "),t[u[0].toLowerCase()]=u.slice(1).join(": ")}p=_.mk(t,p.response,p.status,b,p.responseURL,a,Uu(e),g);h.resolve(p)}};c.ontimeout=function(){h.reject(new _.N(1,1,1003,{url:b,request:a}))};c.onprogress=function(p){var q=Uu(d);d.a=Su();if(100<q||p.lengthComputable&&p.loaded===p.total)ok(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{T:h,
403
- request:a,abort:function(){c.abort();h.reject(new _.N(1,1,7001,{url:b,request:a}));return Promise.resolve()}}};nv=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.j=new Xu(a);this.length=a;this.A=b;this.f=this.a=this.h=0;this.l=null;this.o=-1;this.w=new Tu};
404
- qv=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,Uu(a.w)),a.w.a=Su());if(f)return f=ov(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){Yu(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=pv(a);for(f=[];e;)f.push(e),e=pv(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],
405
- 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 qv(a,b,c,d)})})};pv=function(a){if(0<=a.o&&a.f<a.o)return null;for(var b=rv(a);null!==b;){if(b.name===_.He){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=rv(a)}return null};
406
- rv=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=sv(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=sv(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 _.N(_.O,3,3E3);}if(2097151<e)throw new _.N(_.O,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};
407
- sv=function(a){var b=a.l.getUint32(a.a,!1);a.a+=4;return b};ov=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};Gk=function(a){_.rk.call(this,new _.qk,function(){return Promise.resolve()});this.B=a;this.h=null;this.w=this.T;this.f=-1;this.j=this.l=this.o=null;uv(this)};vv=function(a,b,c){a.o=setTimeout(b,c)};
408
- uv=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=wv(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*wv(e.request.fuzzFactor,.5));a.f*=wv(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.l=h;vv(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.N(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
409
- 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.T}).then(function(e){a.w.resolve(e)})["catch"](function(e){if(e instanceof _.N){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return uv(a);g&&e.a(_.O);a.w.reject(e)}else a.w.reject(e)})};wv=function(a,b){return null===a||void 0===a?b:a};
410
- Ak=function(a){var b=new xv,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new yv,e={Td:!1,sj:!1};b={T:zv(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.Td||(e.Td=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.sj=!0;d.abort()},a);b.T=b.T["finally"](function(){window.clearTimeout(f)})}return b};
411
- zv=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,t,u,y,A,B,E,C,G;return _.H(function(M){switch(M.a){case 1:return e=Av,f=new Tu,g=Vu(f),_.D(M,2),_.x(M,e(a,c),4);case 4:h=M.f;l=gk(h.headers);m={uri:h.url,data:null,headers:l,status:h.status,timeMs:0,responseStartMs:Uu(g),request:b};if(jk(h.status)){M.D(5);break}n=m;return _.x(M,h.arrayBuffer(),6);case 6:throw n.data=M.f,m.timeMs=Uu(f),lk(m);case 5:p=h.headers.get(za);nk(b,p);q=p?parseInt(p,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return A=
412
- h.body.getReader(),B=new nv(q,!b.disableMergedFragments),E=function(R,ka){if(d.Td)return null;ka&&ka.data&&(ok(b,ka.data.byteLength,Uu(g)),g.a=Su());return b.onFragment&&ka?b.rateLimitBps?pk(b.rateLimitBps,Uu(f),b.bytesLoaded).then(function(){return b.onFragment(ka)}):b.onFragment(ka):null},C=m,_.x(M,qv(B,A,E,b.onProgress),12);t=h.body.getReader();u=new jv(q);return _.x(M,lv(u,t,b),9);case 9:y=M.f;if(!b.rateLimitBps){M.D(10);break}return _.x(M,pk(b.rateLimitBps,Uu(f),y.byteLength),10);case 10:m.data=
413
- y;M.D(8);break;case 12:C.data=M.f;case 8:if(d.Td)throw Error("Request was aborted");m.timeMs=Uu(f);return M["return"](kk(m));case 2:G=_.F(M);if(d.Td)throw new _.N(1,1,7001,{url:a,request:b});if(d.sj)throw new _.N(1,1,1003,{url:a,request:b});if(G&&1001===G.code)throw G;_.Qh("Error while fetching data:",G);throw new _.N(1,1,1002,{url:a,error:G,request:b,status:-1},G);}})};
414
- vk=function(a){try{var b=a.uris[a.uriIndex],c=_.Bv(b);return{T:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{T:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
415
- _.Bv=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Qh("Bad data URI, failed to parse scheme"),new _.N(_.O,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Qh("Bad data URI, failed to extract encoding and MIME type"),new _.N(_.O,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?_.Qm(a).buffer:_.Q.hb(a).buffer,contentType:c}};
416
- _.Dv=function(a,b){var c=_.rl(_.sl(a),_.tl(a));_.Cv[c]=b};_.Ev=function(a){a=_.rl(_.sl(a),_.tl(a));return _.Cv[a]||null};_.Fv=function(a){a=_.rl(_.sl(a),_.tl(a));delete _.Cv[a]};
417
- _.Ov=function(a){a=a.getConfiguration();a=_.L.kb(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.fg?a.backgroundColor:null;this.S=typeof a.windowColor===_.fg?a.windowColor:null;this.N=typeof a.fontColor===_.fg?a.fontColor:null;this.P=typeof a.fontFamily===_.fg?a.fontFamily:null;this.I=typeof a.fontSize===_.fg?a.fontSize:null;this.B=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.H=typeof a.edgeColor===_.fg?a.edgeColor:"rgba(0, 0, 0, 1)";this.o=null;typeof a.edgeType===
418
- _.fg&&(this.o=a.edgeType)};_.$v=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case Wv:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case Xv:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case Yv:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case Zv:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.Re}};aw=function(a){this.f=a;this.a=null;this.g=new _.J("clpp.text.Mp4TextParser")};
419
- _.cw=function(a){_.Ov.call(this,a);this.l=a.getSurface().getMedia();this.f="clpp-video-"+bw++;this.h=document.createElement(_.hg);this.j=this.w=!1;_.ir(this.l,this.f);document.head.appendChild(this.h);this.Wb()};dw=function(){};_.ew=function(){};_.eh=[];ih=typeof Object.create==_.me?Object.create:function(a){function b(){}b.prototype=a;return new b};
420
- if(typeof Object.setPrototypeOf==_.me)fw=Object.setPrototypeOf;else{var gw;a:{var hw={Gj:!0},iw={};try{iw.__proto__=hw;gw=iw.Gj;break a}catch(a){}gw=!1}fw=gw?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
421
- var jh=fw,nh=typeof Object.defineProperties==_.me?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},lh="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;oh.prototype.toString=function(){return this.a};var mh=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new oh("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
422
- rh.prototype.A=function(a){this.f=a};rh.prototype["return"]=function(a){this.h={"return":a};this.a=this.j};rh.prototype.D=function(a){this.a=a};
423
- Eh("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=lh.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=
424
- 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.F),reject:g(this.h)}};b.prototype.F=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 _.Se:var h=null!=g;break a;case _.me:h=!0;break a;default:h=!1}h?this.B(g):this.o(g)}};
425
- b.prototype.B=function(g){var h=void 0;try{h=g.then}catch(l){this.h(l);return}typeof h==_.me?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();
426
- g.Ye(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,t){return typeof q==_.me?function(u){try{m(q(u))}catch(y){n(y)}}:t}var m,n,p=new b(function(q,t){m=q;n=t});this.Ye(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.Ye=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: "+
427
- 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=_.v(g),n=m.next();!n.done;n=m.next())d(n.value).Ye(h,l)})};b.all=function(g){var h=_.v(g),l=h.next();return l.done?d([]):new b(function(m,n){function p(u){return function(y){q[u]=y;t--;0==t&&m(q)}}var q=[],t=0;do q.push(void 0),t++,d(l.value).Ye(p(q.length-1),n),l=h.next();while(!l.done)})};return b});var Gh=this||self;
428
- Gh.a=!0;_.L={Ej:20,kb:function(a){var b=_.L.R,c=_.L.zi,d=_.L.ua;return b(a)||c(a)?a:d(a)}};_.I("clpp.utils.obj.cloneItem",_.L.kb);_.L.ua=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=_.L.Fi(c,{merging:b[d]},1));return c.merging||null};_.I("clpp.utils.obj.merge",_.L.ua);_.L.Jc=function(a){for(var b in a)if(void 0!==a[b])return!0;return!1};
429
- _.L.Fi=function(a,b,c){var d=_.L.R,e=_.L.zi,f=_.L.Fi,g=_.L.Ub,h=_.L.Bm,l=_.L.qg,m=_.L.vm,n=_.L.zd;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<_.L.Ej&&(a[p]=f(a[p],n,c));return a};_.L.zi=function(a){a=typeof a;return a===_.fg||a===_.k||a===_.Zc};_.L.vm=function(a){return a instanceof Element};_.L.R=function(a){return null===a||"undefined"===typeof a};_.L.zd=function(a){return typeof a===_.Se};
430
- _.L.Ub=function(a){return typeof a===_.me};_.L.ja=function(a){return typeof a===_.fg};_.L.ya=function(a){return typeof a===_.k};_.L.vi=function(a){return typeof a===_.Zc};_.L.qg=function(a){var b=_.L.zd,c=_.L.R;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.L.Bm=function(a){var b=_.L.zd,c=_.L.Ub;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
431
- _.L.ra=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||!_.L.zd(a)||!_.L.zd(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var h=e[g];if(_.L.R(d)||0>d.indexOf(h))if(f[h]=!0,a[h]!==b[h])return!1}if(_.L.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.L.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
432
- _.L.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.L.wm=function(a,b,c){return a>=b&&a<=c};_.L.kh=function(a){for(var b=new Map,c=_.v(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.L.lh=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};
433
- _.L.ii=function(a,b){for(var c=b.toLowerCase(),d=_.v(Object.entries(a)),e=d.next();!e.done;e=d.next()){var f=_.v(e.value);e=f.next().value;f=f.next().value;if(e.toLowerCase()===c)return f}return null};_.L.Ai=function(a,b){for(var c in a){if(!(c in b))return!1;var d=a[c],e=b[c];if(d&&typeof d===_.Se&&e&&typeof e===_.Se){if(!_.L.Ai(d,e))return!1}else if(void 0!==d&&void 0!==e&&d!==e)return!1}return!0};
434
- _.L.Bi=function(a,b){if(!_.L.Ai(a,b))return!1;for(var c in b){if(!(c in a))return!0;var d=a[c],e=b[c];if(!d&&e||d&&typeof d===_.Se&&e&&typeof e===_.Se&&_.L.Bi(d,e))return!0}return!1};var Lh={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.I("clpp.log.Level",Lh);var Ih=0,Hh={},jw=[];_.I("clpp.log.getLoggers",function(){return _.L.kb(Hh)});_.I("clpp.log.addInterceptor",function(a){a&&jw.push(a)});_.I("clpp.log.removeInterceptor",function(a){a&&(a=jw.indexOf(a),0<=a&&jw.splice(a,1))});_.I("clpp.log.getTagLevel",Jh);_.I("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Hh[a]});_.I("clpp.log.setTagLevel",function(a,b){a&&(_.L.ja(b)&&(b=Mh(b)),Hh[a]=b)});
435
- _.I("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.L.ja(a)&&(a=Mh(a));Ih=a});_.I("clpp.log.getLogLevel",function(){return Ih});_.r=_.J.prototype;
436
- _.r.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=Jh(this.tag);if(0<=d){if(d<c)return}else if(Ih<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):
437
- 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.v(jw);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.r.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.r.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.r.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
438
- _.r.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.r.sl=function(a){return a?this.tag?new _.J(this.tag+"."+a):new _.J(a):this};_.I("clpp.log.Logger",_.J);_.J.prototype.createChild=_.J.prototype.sl;_.J.prototype.error=_.J.prototype.error;_.J.prototype.warn=_.J.prototype.warn;_.J.prototype.debug=_.J.prototype.debug;_.J.prototype.info=_.J.prototype.info;_.J.prototype.log=_.J.prototype.log;var Nh=new _.J("clpp");_.I("clpp.log.info",_.Oh);
439
- _.I("clpp.log.debug",_.Ph);_.I("clpp.log.warn",_.Kh);_.I("clpp.log.error",_.Qh);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.Th=new _.J("clpp.players");_.Sh={};_.I("clpp.events.ERROR",_.ie);_.I("clpp.events.LOADEDMETADATA",_.Ee);_.I("clpp.events.BUFFERING_ENDED",_.$c);_.I("clpp.events.BUFFERING_STARTED",_.ad);_.I("clpp.events.STATE_CHANGED",_.cg);_.I("clpp.events.AUDIO_TRACK_CHANGED",_.Wc);_.I("clpp.events.TEXT_TRACK_CHANGED",_.ng);_.I("clpp.events.VIDEO_TRACK_CHANGED",_.Og);_.I("clpp.events.BITRATE_CHANGED",_.Yc);_.I("clpp.events.TRACKS_ADDED",_.tg);_.I("clpp.events.LOAD_START",Fe);_.I("clpp.events.RELEASING",_.Lf);_.I("clpp.events.RELEASED",Kf);
440
- _.I("clpp.events.DESTROYING","destroying");_.I("clpp.events.DESTROYED","destroyed");_.I("clpp.events.VIDEO_BUFFER_CHANGED",_.Ng);_.I("clpp.events.AUDIO_BUFFER_CHANGED",_.Vc);_.I("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.I("clpp.events.DRM_SESSION_CREATED",$d);_.I("clpp.events.DRM_SESSION_UPDATE",_.be);_.I("clpp.events.DRM_SESSION_PERSISTED",_.ae);_.I("clpp.events.DRM_RENEWAL_STARTED",Zd);_.I("clpp.events.DRM_EXPIRATION_UPDATE",_.Xd);_.I("clpp.events.DRM_LICENSE_REQUESTED",Yd);
441
- _.I("clpp.events.AUTOPLAY_NOT_ALLOWED",_.Xc);_.I("clpp.events.PLAY",_.gf);_.I("clpp.events.SEEKING",_.Vf);_.I("clpp.events.SEEKED",_.Uf);_.I("clpp.events.USER_SEEKING",_.Dg);_.I("clpp.events.USER_SEEKED",_.Cg);_.Eq={SEEKING:1,NO_DATA:2};_.I("clpp.events.BufferingReasons",_.Eq);_.I("clpp.events.ADS_TIMELINE_CHANGED",_.Cc);_.I("clpp.events.AD_LOADED",_.rc);_.I("clpp.events.AD_BREAK_STARTED",_.hc);_.I("clpp.events.AD_STARTED",_.xc);_.I("clpp.events.AD_BUFFERING",_.jc);_.I("clpp.events.AD_PROGRESS",_.uc);
442
- _.I("clpp.events.AD_FIRST_QUARTILE",_.mc);_.I("clpp.events.AD_MIDPOINT",_.sc);_.I("clpp.events.AD_THIRD_QUARTILE",_.Ac);_.I("clpp.events.AD_PAUSED",_.tc);_.I("clpp.events.AD_RESUMED",_.vc);_.I("clpp.events.AD_SKIPPED",_.wc);_.I("clpp.events.AD_CLICKED",_.kc);_.I("clpp.events.AD_IMPRESSION",_.qc);_.I("clpp.events.AD_COMPLETED",_.lc);_.I("clpp.events.AD_STOPPED",_.zc);_.I("clpp.events.AD_BREAK_STOPPED",_.ic);_.I("clpp.events.AD_HLS_ASSET_LIST_REQUEST",nc);
443
- _.I("clpp.events.AD_HLS_ASSET_LIST_RESPONSE",oc);_.I("clpp.events.AD_HLS_RESOLVED",pc);_.I("clpp.events.SIMID_CREATIVE_STARTED",_.Xf);_.I("clpp.events.SIMID_CREATIVE_STOPPED",_.Yf);_.I("clpp.events.CASTING_STARTED",_.ed);_.I("clpp.events.CASTING_ENDED","castingended");_.I("clpp.events.CAST_STATUS_CHANGED",_.fd);_.I("clpp.events.AIRPLAY_STATUS_CHANGED",_.Fc);_.I("clpp.events.AIRPLAY_CASTING_STARTED",_.Ec);_.I("clpp.events.AIRPLAY_CASTING_ENDED",_.Dc);_.I("clpp.events.TIMELINE_CUE_ADDED",_.og);
444
- _.I("clpp.events.TIMELINE_CUE_ENTER",_.pg);_.I("clpp.events.TIMELINE_CUE_EXIT",_.qg);_.I("clpp.events.TIMELINE_CUES_CHANGED",_.rg);_.I("clpp.events.MPD_TYPE_CHANGED",_.Pe);_.I("clpp.events.LIVE_TURNED_STATIC",_.Be);_.I("clpp.events.VIMOND_RESPONSE",_.Pg);_.I("clpp.events.PLAYLIST_ITEM_CHANGED",_.tf);_.I("clpp.events.PLAYLIST_MODIFIED",_.uf);_.I("clpp.events.SC_PLAYLIST_TIMELINE_CHANGED",_.Tf);_.I("clpp.events.SC_PLAYLIST_ITEM_CHANGED",_.Rf);_.I("clpp.events.SC_PLAYLIST_ENDED",_.Qf);
445
- _.I("clpp.events.SC_PLAYLIST_LIVE_TURNED_STATIC",_.Sf);_.I("clpp.events.CDN_SWITCH_SUCCESS",_.gd);_.I("clpp.events.ONLINE_STATUS_CHANGED",Ze);_.I("clpp.events.CMSD_EVENT","cmsd-event");_.I("clpp.events.YOSPACE_SESSION_STARTED",_.dh);_.I("clpp.events.YOSPACE_SESSION_ENDED",_.ch);_.I("clpp.events.CONTENT_STEERING_CHANGE",_.Id);_.I("clpp.events.CONTENT_STEERING_LOCATION_BAN_UPDATE",_.Jd);_.Wh.prototype.ha=function(a){return Xh(this,a,!1)};_.Wh.prototype.Jb=function(a){return Xh(this,a,!0)};_.Wh.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.Yh.prototype.Vg=function(){this.stop();this.f();return this};_.Yh.prototype.ha=function(a){var b=this;this.stop();this.a=(new _.Wh(function(){b.f()})).ha(a);return this};_.Yh.prototype.Jb=function(a){var b=this;this.stop();this.a=(new _.Wh(function(){b.f()})).Jb(a);return this};_.Yh.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.I("clpp.utils.Timer",_.Yh);_.Yh.prototype.stop=_.Yh.prototype.stop;_.Yh.prototype.tickEvery=_.Yh.prototype.Jb;_.Yh.prototype.tickAfter=_.Yh.prototype.ha;
446
- _.Yh.prototype.tickNow=_.Yh.prototype.Vg;_.r=$h.prototype;_.r.load=function(a){var b=this;return _.H(function(c){return b.Nc?_.x(c,di(b,function(d){return _.H(function(e){return _.x(e,d.load(a),0)})}),0):(b.Da.warn("No main player, cannot load."),c["return"]())})};_.r.vo=function(a){this.j=a;this.Da.info("Looping set to",a)};_.r.Kj=function(a){this.f.push(a)};
447
- _.r.Jj=function(a){if(this.Nc)this.Da.warn("Main player already set.");else{this.Nc=a;var b=this.Mm.bind(this),c=this.Nm.bind(this),d=this.Yj.bind(this);a.on(_.cg,b);a.on(_.sg,c);a.on(_.he,d);this.h.push(function(){a.off(_.cg,b);a.off(_.sg,c);a.on(_.he,d)})}};_.r.clear=function(){this.Nc=null;this.f=[];this.h.forEach(function(a){return a()});this.h=[]};
448
- _.r.Yj=function(){var a=this;return _.H(function(b){if(!a.j)return b.D(0);a.Da.info("Looping playback.");return _.x(b,di(a,function(c){return _.H(function(d){return 1==d.a?_.x(d,c.seek(0),2):_.x(d,c.play(),0)})}),0)})};
449
- _.r.Mm=function(a){var b=this;this.a||(a=a.detail.currentState,a===_.Kq?(this.Da.info("Mirroring playing."),ci(this,function(c){return _.H(function(d){return _.x(d,c.play(),0)})})):[_.Jq,_.Bq,_.Hq].includes(a)&&(this.Da.info("Mirroring paused/buffering/error."),ci(this,function(c){var d,e;return _.H(function(f){if(1==f.a)return d=Math.round(b.Nc.getPosition())-.1,_.x(f,c.seek(d),2);if(3!=f.a)return _.x(f,Zh(.2),3);e=c.getState();return e!==_.Kq&&e!==_.Bq?f.D(0):_.x(f,c.pause(),0)})})))};
450
- _.r.Nm=function(){var a=this;this.a||ci(this,function(b){var c,d,e,f,g,h,l;return _.H(function(m){switch(m.a){case 1:if(!b.isPaused()){m.D(2);break}return _.x(m,b.play(),2);case 2:c=a.Nc.getPosition();d=b.getPosition();e=c-d;f=Math.abs(e);g=b.getPlaybackRate();h=b.getState();if(h!==_.Kq||.05>=f)return m["return"]();var n=Math.abs(e);l=Math.min(Math.max(1+(.05>=n?0:n/(1>n?6:3))*Math.sign(e),.2),5);if(!(5<=f)){m.D(4);break}b.setPlaybackRate(1);return _.x(m,b.seek(c),5);case 5:return m["return"]();case 4:if(g===
451
- l)return 1!==l&&a.Da.info("Delta "+e.toFixed(1)+" s."),m["return"]();1===l?a.Da.info("Secondary caught up."):1>l?a.Da.info("Secondary slowing down to catch up. Rate: "+(l.toFixed(1)+", delta: "+e.toFixed(1)+" s")):1<l&&a.Da.info("Secondary speeding up to catch up. Rate: "+(l.toFixed(1)+", delta: "+e.toFixed(1)+" s"));b.setPlaybackRate(l);_.z(m)}})})};_.I(rd,$h);$h.prototype.clear=$h.prototype.clear;$h.prototype.addMainPlayer=$h.prototype.Jj;$h.prototype.addSecondaryPlayer=$h.prototype.Kj;
452
- $h.prototype.setLoop=$h.prototype.vo;$h.prototype.load=$h.prototype.load;_.r=_.ei.prototype;_.r.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.r.get=function(a){return(a=this.a[a])?a.slice():[]};_.r.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};_.r.clear=function(){this.a={}};_.r.forEach=function(a){for(var b in this.a)a(b,this.a[b])};fi.prototype.$a=function(a){try{this.kd.handleEvent?this.kd.handleEvent(a):this.kd.call(this.a,a)}catch(b){_.Qh("clpp","Uncaught exception in event handler for event '"+this.f+"'",b,b?b.message:null,b?b.stack:null)}};_.K.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.K.prototype.stopImmediatePropagation=function(){this.f=!0};_.K.prototype.stopPropagation=function(){};_.r=gi.prototype;
453
- _.r.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].$a(a),b[c].ho&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.r.on=function(a,b,c){this.a.push(a,new fi(a,b,c||this.f));return b};_.r.one=function(a,b,c){this.a.push(a,new fi(a,b,c||this.f,!0));return b};_.r.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].kd===b&&(d=this.a.remove(a,c[e])||d);return d};_.r.clear=function(){this.a.clear()};_.hi.prototype.release=function(){_.li(this)};_.hi.prototype.on=function(a,b,c,d){a=new mi(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.hi.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)};_.hi.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||(ki(f),this.a.remove(b,f))}};ni.prototype.release=function(){this.j.release();this.a=new Set;this.f.clear();null!=this.h&&(clearInterval(this.h),this.h=null)};ni.prototype.destroy=function(){var a=this;return _.H(function(b){a.release();_.z(b)})};ni.prototype.getTimelineCues=function(){return Array.from(this.a.values()).sort(function(a,b){return a.startTime-b.startTime})};_.Ti.prototype.ra=function(a){return this.payload===a.payload&&this.startTime===a.startTime&&this.endTime===a.endTime&&this.payloadType===a.payloadType};_.I("clpp.text.Cue",_.Ti);_.Ti.positionAlign={LEFT:_.ze,RIGHT:_.Ae,CENTER:_.id,AUTO:"auto"};_.Ni="text";_.Ti.payloadType={TEXT:_.Ni,VTT_XML:_.Rg,TTML_XML:_.vg};_.Oi=_.id;_.kw={LEFT:_.we,RIGHT:_.Pf,CENTER:_.Oi,START:_.bg,END:_.ge};_.Ti.textAlign=_.kw;var Si="ltr";_.Ti.direction={HORIZONTAL_LEFT_TO_RIGHT:Si,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.Pi="horizontal-tb";
454
- _.Ti.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Pi,VERTICAL_LEFT_TO_RIGHT:_.Gg,VERTICAL_RIGHT_TO_LEFT:_.Hg};_.Qi=0;_.Ti.lineInterpretation={LINE_NUMBER:_.Qi,PERCENTAGE:1};_.Ri=_.bg;_.lw={CENTER:_.id,START:_.Ri,END:_.ge};_.Ti.lineAlign=_.lw;_.I("clpp.text.CueRegion",_.Wi);_.Ui=1;_.Wi.units={PX:0,PERCENTAGE:_.Ui,LINES:2};var Vi="";_.Wi.scrollMode={NONE:Vi,UP:"up"};_.Wi.displayAlign={BEFORE:"flex-end",CENTER:_.id,AFTER:"flex-start"};
455
- _.Wi.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Ad,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};Xi.prototype.destroy=function(){this.a.release();this.j=!1;this.l=this.a=this.h=this.f=null;return Promise.resolve()};Xi.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,_.Bc,function(c){return Yi(b,c)}),this.a.on(this.f,kd,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.Wf&&(e.mode=_.oe)}}))};
456
- Xi.prototype.o=function(a){var b=new _.Ti(a.startTime,a.endTime,a.text,_.Rg);if(_.L.ja(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Gg;break;case "rl":b.writingMode=_.Hg}_.L.ya(a.size)&&(b.size=a.size);if(_.L.ja(a.align))switch(a.align){case _.we:case _.bg:b.textAlign=_.bg;break;case _.id:b.textAlign=_.Oi;break;case _.Pf:case _.ge:b.textAlign=_.ge}_.L.ya(a.position)&&(b.position=a.position);if(_.L.ja(a.positionAlign))switch(a.positionAlign){case _.ze:b.positionAlign=_.ze;break;case _.id:b.positionAlign=
457
- _.id;break;case _.Ae:b.positionAlign=_.Ae}_.L.ya(a.line)&&(b.line=a.line);if(_.L.ja(a.lineAlign))switch(a.lineAlign){case _.bg:b.lineAlign=_.Ri;break;case _.id:b.lineAlign=_.id;break;case _.ge:b.lineAlign=_.ge}_.L.vi(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.Qi:1);return b};_.w(_.N,Error);_.N.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=Zi(this.severity,this.category,this.code,this.data))};_.N.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.I("clpp.Error",_.N);_.O=2;_.N.Severity={RECOVERABLE:1,FATAL:_.O};_.N.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
458
- _.N.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,
459
- 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,
460
- 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,PAUSE_FAILED:3201,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,
461
- DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,UNPLAYABLE_PERIOD:4011,RESTRICTIONS_CANNOT_BE_MET:4012,NO_PERIODS:4014,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_COULD_NOT_GUESS_MIME_TYPE:4021,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,
462
- DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,HLS_COULD_NOT_PARSE_SEGMENT_START_TIME:4030,CONTENT_UNSUPPORTED_BY_BROWSER:4032,SMOOTH_INVALID_MANIFEST_XML:4033,SMOOTH_EMPTY_PRESENTATION:4034,SMOOTH_MEDIA_PROCESSING_ERROR:4035,SMOOTH_INVALID_VERSION:4036,SMOOTH_INVALID_FRAGMENT_METADATA:4037,SMOOTH_REQUIRED_ATTRIBUTE_MISSING:4038,SMOOTH_TRUNCATED_MEDIA_FILE:4039,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4040,HLS_MSE_ENCRYPTED_TS_NOT_SUPPORTED:4041,HLS_PLAYLIST_NOT_UTF8:4042,HLS_PLAYLIST_EMPTY:4043,
463
- HLS_INVALID_VALUE:4044,HLS_DISCONTINUITY_NOT_SUPPORTED:4045,HLS_UNSUPPORTED_FEATURE:4046,HLS_INCOMPATIBLE_PLAYLIST_UPDATE:4047,INVALID_STREAMS_CHOSEN:5005,STREAMING_ERROR:5006,NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,
464
- NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,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,
465
- INVALID_CONTAINER_ELEMENT:7006,INVALID_ARGUMENT:7007,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,
466
- YOUBORA_SDK_MISSING:9100,YOUBORA_INVALID_CONFIGURATION:9101,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,
467
- SESSIONS_INVALID_CONFIGURATION:15E3};_.w(_.$i,Error);var jj=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.r=_.ej.prototype;_.r.Fb="";_.r.Tc="";_.r.bb="";_.r.Fd=null;_.r.Na="";_.r.Gc="";_.r.toString=function(){var a=[],b=this.Fb;b&&a.push(mj(b,mw,!0),":");if(b=this.bb){a.push("//");var c=this.Tc;c&&a.push(mj(c,mw,!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.Na)this.bb&&"/"!=b.charAt(0)&&a.push("/"),a.push(mj(b,"/"==b.charAt(0)?nw:ow,!0));(b=this.a.toString())&&a.push("?",b);(b=this.Gc)&&a.push("#",mj(b,pw));return a.join("")};
468
- _.r.resolve=function(a){var b=new _.ej(this);"data"===b.Fb&&(b=new _.ej);var c=!!a.Fb;c?fj(b,a.Fb):c=!!a.Tc;c?b.Tc=a.Tc:c=!!a.bb;c?b.bb=a.bb:c=null!=a.Fd;var d=a.Na;if(c)gj(b,a.Fd);else if(c=!!a.Na){if("/"!=d.charAt(0))if(this.bb&&!this.Na)d="/"+d;else{var e=b.Na.lastIndexOf("/");-1!=e&&(d=b.Na.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(""):
469
- ".."==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.Na=d:c=""!==a.a.toString();c?_.hj(b,ij(a.a)):c=!!a.Gc;c&&(b.Gc=a.Gc);return b};var mw=/[#\/\?@]/g,ow=/[#\?:]/g,nw=/[#\?]/g,nj=/[#\?@]/g,pw=/#/g;_.lj.prototype.a=null;_.lj.prototype.h=null;
470
- _.lj.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};
471
- _.lj.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 pj;_.qj="text";_.Uq={VIDEO:_.Jg,AUDIO:_.Pc,TEXT:_.qj,Ro:_.Gc,IMAGE:_.te,jh:_.ig};_.qw=1/15;pj={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/]};pj[_.qj]=[/^vtt$/,/^wvtt/,/^stpp/];var sj={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av0?1/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.vj={text:{mp4:Jc,m4s:Jc,m4i:Jc,cmft:Jc,vtt:_.lg,ttml:_.Mc},video:{mp4:_.Mg,m4s:_.Mg,m4f:_.Mg,m4i:_.Mg,m4v:_.Mg,cmfv:_.Mg,ts:_.Kg},audio:{mp4:_.Tc,m4s:_.Tc,m4f:_.Tc,m4i:_.Tc,m4a:_.Tc,cmfa:_.Tc,ts:_.Kg,aac:_.Qc,ec3:_.Sc,ac3:_.Rc},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.xj.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};_.xj.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name===a});return b.length?b[0]:null};_.xj.prototype.hasAttribute=function(a){return null!=this.getAttribute(a)};_.Aj.prototype.getPosition=function(){return this.position};_.Aj.prototype.le=function(){return this.ga?this.ga-this.la+1:null};_.Aj.prototype.f=_.fh(0);_.w(_.Bj,_.Aj);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",
310
+ _.ns=function(a,b){try{a.g.debug("Attempting to load an offline session",b);var c=a.J.createSession(_.ef)}catch(f){var d=new _.N(_.O,6,6005,{browserError:f.message});a.w(d);return Promise.reject(d)}a.B.on(c,_.Ke,a.Vi.bind(a));a.B.on(c,ve,a.Qi.bind(a));var e={initData:null,loaded:!1,tg:Infinity,yc:null,ob:new _.am,periodId:null,af:[],keyId:null,sb:[],initDataType:null,Ec:null,sessionContext:{ldlDelay:0,customData:{}}};e.ob["catch"](function(){});a.h.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.g.debug("Loaded offline session",
311
+ b,f);if(!f)return a.h["delete"](c),a.w(new _.N(_.O,6,6013)),null;e.loaded=!0;us(a)&&(a.A||a.g.info(Ca),a.A=!0,a.G=!1,a.I.resolve());return c},function(f){a.j||(a.h["delete"](c),a.w(new _.N(_.O,6,6005,{browserError:f.message})))})};vs=function(a,b,c,d){if(!b&&c!==_.$f)return!1;d=b||pq(d);a=_.v(a.h.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||b&&e.sb.includes(b)||c===_.$f&&(e.keyId||pq(e.initData))===d)return!0;return!1};
312
+ ms=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,t,u,y,B,A,C,E,D,J,P,U,V,ra,Da,wa;_.I(function(Ea){switch(Ea.a){case 1:if(!e.length)return a.g.warn("Empty init data"),Ea["return"]();h=b;if(!h)try{h=ws(a,d,e,f)}catch(Ma){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:Ma,initDataType:d,
313
+ initData:e}),a.f.ignoreUnrecognizedInitData)return Ea["return"]()}if(g){Ea.C(2);break}if(!vs(a,h,d,e)){Ea.C(2);break}l=!0;if("skd"!==d||a.f.enableSessionCacheForSkd){Ea.C(4);break}m=_.v(a.h.keys());n=m.next();case 5:if(n.done){Ea.C(4);break}p=n.value;q=a.h.get(p);if(!h||q.keyId!==h){Ea.C(6);break}a.g.warn("Close and re-open session for "+h);_.F(Ea,9);return _.x(Ea,p.close(),11);case 11:_.G(Ea,10);break;case 9:t=_.H(Ea),a.g.warn("Unable to close session",t);case 10:l=!1;case 6:n=m.next();Ea.C(5);break;
314
+ case 4:if(l)return a.g.warn("Skip creating a new session for "+h),Ea["return"]();case 2:try{y=a.H?_.ef:lg,u=a.J.createSession(y),a.D.onEvent(new _.Q(Zd,{keySystem:a.keySystem()})),a.g.info("Created new "+y+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(Ma){return a.w(new _.N(_.O,6,6005,{browserError:Ma.message})),Ea["return"]()}a.B.on(u,_.Ke,a.Vi.bind(a));a.B.on(u,ve,a.Qi.bind(a));B={Ec:f,af:[],initData:e,initDataType:d,keyId:h,sb:h?[h]:[],loaded:!1,tg:Infinity,periodId:c,yc:null,
315
+ ob:new _.am,sessionContext:{ldlDelay:0,customData:{}}};B.ob["catch"](function(){});f&&(A=a.h.get(f),B.sessionContext=A.sessionContext);a.h.set(u,B);h&&!a.o.get(h)&&a.o.set(h,eg);if(e)for(C=0;C<a.a.initData.length;C++)E=a.a.initData[C],E.keyId&&!B.sb.includes(E.keyId)&&_.Fm(E.initData,e)&&(B.keyId||(B.keyId=E.keyId),B.sb.push(E.keyId),a.o.get(E.keyId)||a.o.set(E.keyId,eg));D=_.M;J=D.Rb;P=a.D.getConfiguration();U=a.keySystem();V=a.f.Oa[U];Da=(ra=V.modifiers)&&ra.transformInitData;J(Da)||(Da=xs);try{e=
316
+ Da({playerConfig:P,initData:e,initDataType:d,drmInfo:a.a,drmSystemConfig:V,sessionContext:B.sessionContext,emeApi:a.l.Od()})}catch(Ma){return wa=Ma,Ma instanceof _.N||(wa=new _.N(_.O,6,6016,Ma)),B.ob&&B.ob.reject(Ma),a.w(wa),Ea["return"]()}a.g.info("Generate License Request for key ID: '"+h+"'");u.generateRequest(d,e.buffer)["catch"](function(Ma){if(!a.j){var vb=null;Ma.errorCode&&Ma.errorCode.systemCode&&(vb=Ma.errorCode.systemCode,0>vb&&(vb+=Math.pow(2,32)),vb="0x"+vb.toString(16));a.w(new _.N(_.O,
317
+ 6,6006,{browserError:Ma.message,error:Ma,extended:vb},Ma))}});_.z(Ea)}})};
318
+ ws=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.f.Oa[f];f=a.D.getConfiguration();g=g&&g.modifiers&&g.modifiers.extractContentId;_.M.Rb(g)||(g=ys);try{var h={ldlDelay:0,customData:{}};e&&(h=a.h.get(e).sessionContext);var l=g(f,c,h);a.g.debug("Extracted Content ID '"+l+"' from SKD");var m=l;break a}catch(C){a.g.warn("Unable to extract Content ID from SKD",C)}m=""}return m}if(b===_.$f)return pq(c)||"";if(b===_.fd){m=a.keySystem();try{if(m.match(/^com\.widevine\.alpha/)){var n=
319
+ _.Ar(c);if(n)return n.a}else if(zs(m)){e=new _.Wp(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);f=_.aq(e);var p=_.aq(e);g=_.kq(p);var q=_.aq(e);c=q>>>24;l=q&16777215;h=_.eq(e,16);var t=_.Em(h);if(0<c){var u=_.aq(e);e.skip(16*u)}var y=_.aq(e),B=_.eq(e,y),A=_.Hr(B);_.Qh("Parsed PR PSSH Box","size",f,"name",g,Jg,c,"flags",l,"size",y,"systemId",t,"keyId",A.a);if(A)return A.a}}catch(C){throw a.g.warn("Unable to extract Key ID from PSSH data.",{error:C,keySystem:m}),C;}}return""};
320
+ ys=function(a,b){var c=_.oq(b);_.Qh("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
321
+ xs=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&&g===As){a=_.M.Rb;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=ys);a="";try{a=e(b,c,f)}catch(h){throw new _.N(_.O,6,6103);}if(!a.length)throw new _.N(_.O,6,6101,"Content ID is an empty string");c=qq(c,a,d)}return c};
322
+ Gs=function(a,b){var c,d,e,f,g,h,l,m,n,p,q,t,u,y,B,A,C,E;return _.I(function(D){switch(D.a){case 1:c=b.target;d=a.h.get(c);if(!d)return a.g.error("Session metadata not found for "+c.sessionId+"."),D["return"]();e=a.a.licenseServerUri;if(!Bs(a,b)){D.C(2);break}return _.x(D,Cs(a,e,b,c,d),3);case 3:return D["return"]();case 2:f=a.Ib;if(!(0<f)){D.C(4);break}a.g.info("Delaying license request by "+f+" s.");return _.x(D,ej(f),5);case 5:if(a.j)return D["return"]();case 4:g=a.keySystem();h=a.f.Oa[g];"individualization-request"===
323
+ b.messageType&&h&&h.individualizationServer&&(e=h.individualizationServer);l=_.Mk([e],a.f.attemptParameters);l.type=3;l.body=b.message;l.method=_.qb;l.licenseRequestType=b.messageType===ye&&d.Ec?xe:b.messageType;l.sessionId=c.sessionId;if(l.licenseRequestType===xe)a.D.onEvent(new _.Q(Yd));zs(a.a.keySystem)&&Ds(a,l);Np(a.P,l);m=String(Math.floor(b.timeStamp));return _.x(D,Es(a,l,d,m,e,c.sessionId,b.messageType,f),6);case 6:n=D.f;if(!n)return D["return"]();p=Op(a.P,n);return _.x(D,Fs(a,c,n.data,d,m),
324
+ 7);case 7:q=D.f;if(!q)return D["return"]();t=os(a);u=p?Date.now()+1E3*p.delay:Number.NaN;a.D.onEvent(new _.Q(_.ae,{keySystem:g,expirationTime:t,expectedRenewalTime:u}));d.yc&&d.yc.resolve();d.Ec&&(y=d.Ec,a.g.info("Closing expired session '"+y.sessionId+"'"),Nr(y)["catch"](function(){a.g.warn("Unable to close expired session in time")}),(B=a.h.get(d.Ec))&&B.ld&&B.ld.stop(),a.h["delete"](d.Ec),d.Ec=null);A=new _.dj(function(){a.j||(d.loaded=!0,d.ob&&d.ob.resolve(),us(a)&&(a.A||a.g.info(Ca),a.A=!0,a.G=
325
+ !1,a.I.resolve()))});A.ha(5);null!==d.initData&&(0<d.sessionContext.ldlDelay||p&&(_.R.startsWith(g,_.Bd)||_.R.startsWith(g,_.Dd)))&&(C=new _.dj(function(){!a.j&&a.P&&(a.g.info("Updating CSL Sessions"),zs(g)?ms(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):g.startsWith(_.Bd)&&c.update(_.R.eb("renew")))}),d.ld=C,E=p?p.delay:d.sessionContext.ldlDelay,C.ha(E));_.z(D)}})};
326
+ Cs=function(a,b,c,d,e){var f,g,h;return _.I(function(l){if(1==l.a)return f=_.Mk([b],a.f.attemptParameters),f.type=3,f.body=c.message,f.method=_.qb,f.licenseRequestType=id,f.sessionId=d.sessionId,_.x(l,Hs(a,f,e,b,d.sessionId,c.messageType),2);g=l.f;if(!g)return l["return"]();h=String(Math.floor(c.timeStamp));return _.x(l,Fs(a,d,g.data,e,h),0)})};Bs=function(a,b){return!!a.keySystem().match(/^com\.widevine\.alpha/)&&b.message&&2===b.message.byteLength};
327
+ Es=function(a,b,c,d,e,f,g,h){var l,m,n,p,q,t,u,y,B,A,C,E;return _.I(function(D){switch(D.a){case 1:return a.g.info("License request for SID:'"+(f+"'/KID:'"+c.keyId+"' from msg '")+(g+"'.")),_.x(D,Is(a,b,c.sessionContext),2);case 2:return a.g.debug("Sending DRM license request to",e,b),a.D.onEvent(new _.Q(Xd,{delay:h})),l=Date.now(),_.Ym(Qd+d+ha),m=null,_.F(D,3),_.x(D,a.D.Cb.fetch(b).T,5);case 5:m=D.f;_.G(D,4);break;case 3:n=_.H(D);if(a.j)return D["return"](null);p=n;q=p.data.headers;t=Pq(q);u=Object.assign({message:"Error while fetching DRM license!",
328
+ url:p.data.url,status:p.data.status,response:p.data.response},q?{headers:q}:{},t);y=new _.N(_.O,6,6007,u,p);Js(a,y,c);return D["return"](null);case 4:_.Ym(Qd+d+".end");_.$m(Qd+d,Qd+d+ha,Qd+d+".end");B=Date.now()-l;if(A=Qq(m.headers))a.Ib=A.delay||0;C="";A&&A.requestId&&(C=" RID:"+A.requestId);E=m.data.byteLength;a.g.info("License response for SID:'"+(f+"'/KID:'")+(c.keyId+"' ")+(E+" bytes in ")+(B+"ms"+C));return a.j?D["return"](null):D["return"](m)}})};
329
+ Hs=function(a,b,c,d,e,f){var g,h,l,m,n,p,q,t,u,y,B,A;return _.I(function(C){switch(C.a){case 1:return a.g.info("WV Server certificate request for SID:'"+(e+" from msg '"+f+"'.")),_.x(C,Is(a,b,c.sessionContext),2);case 2:return a.g.debug("Sending Widevine certificate request to",d,b),g=Date.now(),h=null,_.F(C,3),_.x(C,a.D.Cb.fetch(b).T,5);case 5:h=C.f;_.G(C,4);break;case 3:l=_.H(C);if(a.j)return C["return"](null);m=l;n=m.data.headers;p=Pq(n);q=Object.assign({message:Na,url:m.data.url,status:m.data.status,
330
+ response:m.data.response},n?{headers:n}:{},p);t=new _.N(_.O,6,6100,q,m);Js(a,t,c);return C["return"](null);case 4:return u=Date.now()-g,y=Qq(h.headers),B="",y&&y.requestId&&(B=" RID:"+y.requestId),A=h.data.byteLength,a.g.info("WV Server certificate response for SID:'"+(e+"' ")+(A+" bytes in ")+(u+"ms"+B)),a.j?C["return"](null):C["return"](h)}})};
331
+ Fs=function(a,b,c,d,e){var f,g;return _.I(function(h){switch(h.a){case 1:return _.Ym(Vd+e+ha),_.F(h,2),_.x(h,b.update(c),4);case 4:_.G(h,3);break;case 2:f=_.H(h);if(a.j)return h["return"](!1);if(f===Fb)return a.g.info("Ignore update for closed sessions"),h["return"](!1);g=new _.N(_.O,6,6008,{browserError:f.message});Js(a,g,d);return h["return"](!1);case 3:return _.Ym(Vd+e+".end"),_.$m(Vd+e,Vd+e+ha,Vd+e+".end"),a.j?h["return"](!1):h["return"](!0)}})};
332
+ Js=function(a,b,c){a.j||(a.w(b),c.yc&&c.yc.reject(b),c.ob&&c.ob.reject(b))};
333
+ Ds=function(a,b){var c=_.R.Gc(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(_.Ig).textContent;b.body=_.Cm(c.querySelector("Challenge").textContent).buffer}else a.g.debug("PlayReady request is already unwrapped."),b.headers[za]="text/xml; charset\x3dutf-8"};
334
+ Is=function(a,b,c){var d,e,f,g,h,l;return _.I(function(m){if(1==m.a)return d=a.D.getConfiguration(),_.x(m,js(a,d),2);e=a.keySystem();h=(g=(f=a.f.Oa[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;h?b.requestModifiers.push(function(n){return h(d,n,c)}):e.startsWith(_.Bd)&&b.requestModifiers.push(function(n){return _.rq(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Bd)&&b.responseModifiers.push(function(n){return _.sq(n)});_.z(m)})};
335
+ Kr=function(a){var b=a.o,c=a.ka;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.w(new _.N(_.O,6,6014));a.D.xg(_.M.jh(c));a.A||a.g.info(Ca);a.A=!0;a.G=!1};ds=function(a){var b;return _.I(function(c){if(1==c.a)return _.Ym(Ud),b=a.ja.map(function(d){return Gs(a,d)}),a.gb=!0,a.ja=[],_.x(c,Promise.all(b),2);_.Ym(Td);_.$m("drm.onPlay",Ud,Td);_.z(c)})};zs=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};
336
+ _.ss=function(a){return zs(a)?_.Dd:a};_.Ls=function(a,b){return a.length&&b.length?0<_.Ks(a,b).length:!0};
337
+ _.Ks=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={Ed:e.Ed},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.Ed=_.jh(g.keyIds||[]).concat();f.keyIds&&f.keyIds.length&&f.keyIds.forEach(function(l){return function(m){l.Ed.includes(m)||l.Ed.push(m)}}(e));c.push({keySystem:g.keySystem,licenseServerUri:g.licenseServerUri||f.licenseServerUri,
338
+ licenseServerUriOrigin:g.licenseServerUriOrigin||f.licenseServerUriOrigin,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.Ed,periodId:g.periodId});break}return c};
339
+ Lr=function(a){a.h.forEach(function(b,c){var d=b.tg,e=c.expiration;isNaN(e)&&(e=Infinity);e!==d&&(a.D.wg(c.sessionId,e),b.tg=e)})};us=function(a){a=a.h.values();return _.Ji(a,function(b){return b.loaded})};
340
+ Sr=function(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseServerUri:f.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[]})});for(var d=_.v(a),e=d.next();!e.done;e=d.next())e.value.drmInfos=c};qs=function(a){for(var b=_.v(a.audioCapabilities||[]),c=b.next();!c.done;c=b.next())delete c.value.robustness;a=_.v(a.videoCapabilities||[]);for(b=a.next();!b.done;b=a.next())delete b.value.robustness};
341
+ rs=function(a){return(a.audioCapabilities||[]).some(Ms)||(a.videoCapabilities||[]).some(Ms)};Ms=function(a){return null!=a.robustness&&""!==a.robustness};
342
+ ts=function(a,b,c,d,e){var f={};a=_.v(a);for(var g=a.next();!g.done;f={Ha:f.Ha},g=a.next()){f.Ha=g.value;b.includes(f.Ha.licenseServerUri)||b.push(f.Ha.licenseServerUri);f.Ha.serverCertificate&&(c.some(function(m){return function(n){return _.Fm(n,m.Ha.serverCertificate)}}(f))||c.push(f.Ha.serverCertificate));if(f.Ha.initData){var h=_.v(f.Ha.initData);for(g=h.next();!g.done;g=h.next())g.value.periodId=f.Ha.periodId;h={};var l=_.v(f.Ha.initData);for(g=l.next();!g.done;h={He:h.He},g=l.next())h.He=g.value,
343
+ d.some(function(m){return function(n){var p=m.He;return n.keyId&&n.keyId===p.keyId&&n.periodId===p.periodId?!0:!1}}(h))||d.push(h.He)}if(f.Ha.keyIds)for(g=0;g<f.Ha.keyIds.length;++g)e.includes(f.Ha.keyIds[g])||e.push(f.Ha.keyIds[g])}};
344
+ Yr=function(a,b,c){var d=_.ss(b.keySystem);c=c[d];d===_.af&&b.licenseServerUri?a.g.debug("Using Clear Key data URI for",d):c&&c.licenseUrl?(b.licenseServerUri=c.licenseUrl,a.g.debug("Using license server URI from user-configured clpp.drm.DrmEnvironment (licenseUrl) for",d)):a.g.debug("Using license server URI from the manifest for ",d)};
345
+ Wr=function(a,b){var c=b[_.ss(a.keySystem)];a.keyIds||(a.keyIds=[]);c&&(a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness||""),a.audioRobustness||(a.audioRobustness=c.audioRobustness||""),a.serverCertificate||(a.serverCertificate=c.serverCertificate||null))};
346
+ Nr=function(a){var b,c;return _.I(function(d){if(1==d.a)return b=new Promise(function(e){(new _.dj(e)).ha(1)}),_.x(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.Lh("Timeout waiting for session close");_.z(d)})};_.Ns=function(a){this.f=a;this.a=0};_.Os=function(a,b){b.lastIndex=a.a;var c=b.exec(a.f);c=null==c?null:{position:c.index,length:c[0].length,results:c};if(a.a===a.f.length||null===c||c.position!==a.a)return null;a.a+=c.length;return c.results};
347
+ _.Ps=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.N(_.O,4,4016,{invalidTag:b});var d=c[1],e=c[2];c=[];var f;if(e){e=new _.Ns(e);var g;(g=_.Os(e,/^([^,=]+)(?:,|$)/g))&&g[1]&&(f=g[1].trim());for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.Os(e,h);)c.push(new _.Ip(g[1],g[2]||g[3]||""))}return new _.Gp(a,d,c,f)};
348
+ _.Qs=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=[]};_.Rs=function(a){return a&&a!==_.Bg?a:null};
349
+ Vs=function(a){if(!a)throw new _.N(_.O,3,3101,Wa+a);if(!_.M.ia(a))throw new _.N(_.O,3,3101,Wa+a+". Track type must be a string!");switch(a.toLowerCase()){case _.Ss:return _.Ss;case _.X:return _.X;case _.Ts:return _.Ts;case Us:return Us}throw new _.N(_.O,3,3101,"Unknown track type: "+a+".");};
350
+ Xs=function(a,b){a=Vs(a);var c=_.Rs(b.kind),d=b.id;d||(d=String(_.Ws++));d=new _.Qs(d,c===_.Le?Us:a);d.kind=c;d.label=_.Rs(b.label);d.language=_.Rs(b.language);d.originalLanguage=b.originalLanguage||d.language;return d};Ys=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};_.Zs=function(a,b){this.track=b;this.id=a;this.originalId=this.codec=this.Jd=this.bandwidth=this.height=this.width=null;this.a=!1};
351
+ $s=function(a){this.f=a;this.g=new _.L("clpp.native.hls.HlsMetadataParser");this.a=hn(this.h.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
352
+ ct=function(a,b,c){var d,e,f,g,h;return _.I(function(l){if(1==l.a)return _.x(l,at(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.Qs("dummy",_.Ts);h=f.map(function(m,n){var p=new _.Zs("R"+n,g);p.bandwidth=m.bandwidth;p.Jd=m.Jd;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});bt(h);return l["return"]({renditions:h,mimeType:e||void 0})})};
353
+ et=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return dt(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};
354
+ dt=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.Ps(0,a);a=b(_.Kb);a=null!=a?{AUDIO:_.X,VIDEO:_.Ts,SUBTITLES:_.Ss}[a]:void 0;return{type:a,groupId:b(_.Qa),name:b(_.fb),language:b(_.Za),ip:b("AUTOSELECT"),"default":b("DEFAULT"),tp:b("FORCED"),yh:b("CHARACTERISTICS"),uri:b(_.Mb)}};bt=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.");};
355
+ ft=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.Mk(b),_.x(e,Qm(a.f,c),2);d=e.f;return e["return"](d)})};at=function(a,b,c){var d,e,f,g;return _.I(function(h){if(1==h.a)return d=gt(b),e=ht(b,c),f=d[0]?d[0].codec:null,_.x(h,it(a,e,f),2);g=h.f;return h["return"]({mimeType:g,renditions:d})})};it=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return b&&c?_.x(f,ft(a,b),2):f["return"](null);d=f.f;e=[jt(d,b),kt(d,b)].filter(Boolean);return f["return"](_.Fp(e,_.Mg,c))})};
356
+ gt=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.Ps(0,b);if(c.getAttribute(_.Tb))throw Error("Playlist contains alternative video streams.");var d=_.T(c,_.zb);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.T(c,_.oa);e=e?Number(e):null;var f=_.T(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.T(c,_.ta);c=_.Dp(_.Mg,c?c.split(","):[]);return{bandwidth:e,Jd:f,codec:c,width:b,height:d,mimeType:null}})};
357
+ ht=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?_.qn(c,b):null};jt=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?_.qn(c,b):null};kt=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.T(_.Ps(0,c),_.Mb))?_.qn(c,b):null:null};
358
+ _.mt=function(a,b,c){for(var d=_.v(_.lt),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.nt=function(a){a=_.lt.indexOf(a);0<=a&&_.lt.splice(a,1)};_.ot=function(){};
359
+ pt=function(){this.g=new _.L("clpp.native.TrackManager");this.m=null;this.f=new _.ti;this.h=[];this.B=0;this.o={};this.F=[];this.a=new Map;this.w=null;this.l=new Map;this.A=!0;this.J=this.zg.bind(this,_.Ss);this.L=this.Bg.bind(this,_.Ss);this.K=this.Ag.bind(this,_.Ss);this.O=this.zg.bind(this,_.Ts);this.U=this.Bg.bind(this,_.Ts);this.P=this.Ag.bind(this,_.Ts);this.G=this.zg.bind(this,_.X);this.I=this.Bg.bind(this,_.X);this.H=this.Ag.bind(this,_.X);this.j=null};
360
+ rt=function(a,b){var c,d,e,f,g,h,l,m,n,p,q;return _.I(function(t){if(1==t.a){c=a.m.getConfiguration();d=_.mt(c,b.mimeType,_.ng);if(!d)return a.g.warn("Track MIME type is not supported",b),t["return"]();e=_.Mk(b.url);f=b.mimeType===_.Hc?"tt":"c";g={objectType:f};h=_.Tm(a.m.getNetworkEngine(),e,g);return _.x(t,h.T,2)}(l=t.f)&&l.data&&(m="External_"+a.B++,a.o[m]=b,n=d.a(_.Mi(l.data)),p=URL.createObjectURL(new Blob([n])),q={url:p,kind:b.kind,language:b.language,label:b.label,mimeType:_.ng},qt(a,q,m));
361
+ _.z(t)})};tt=function(a,b,c){return st(a)&&b===_.Ts&&!!c.enableHlsVideoTrackInfo};ut=function(a,b,c){return st(a)&&(b===_.X||b===_.Ss)&&!!c.enableMetadata};st=function(a){a=a.m.getLoadedSource();return!(!a||a.type!==_.Il&&!a.url.endsWith(".m3u8"))&&_.nj()};
362
+ vt=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return(d=a.m.getLoadedSource())&&a.j?_.x(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}));_.z(f)})};
363
+ wt=function(a,b,c){var d,e,f,g;return _.I(function(h){if(1==h.a)return(d=a.m.getLoadedSource())&&a.j?_.x(h,a.j.a(d.url,c),2):h["return"]();e=h.f;e.Oc&&(f=b.type+":"+b.label,(g=e.Oc.get(f))&&g.yh&&(b.accessibility=g.yh.split(",").map(function(l){return l.trim()}).map(function(l){return{value:l,type:b.type,protocol:"HLS"}})));_.z(h)})};
364
+ qt=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);_.R.empty(b.url)?e.src=URL.createObjectURL(new Blob([])):e.src=b.url;d.appendChild(e);a.F.push(e)}}};xt=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 _.X:return c.audioTracks;case _.Ts:return c.videoTracks;case _.Ss:return c.textTracks;default:return null}};
365
+ yt=function(a,b){var c=xt(a,b);c&&(c=Array.from(c),b===_.Ss&&(c=c.filter(function(d){return d.kind!==_.Le})));return c};zt=function(a,b){return a.h.filter(function(c){return c.type===b})};At=function(a,b){var c=a.a.get(b)||null;return c&&c.renditions[0]};Bt=function(a,b){var c=a.l.get(b);return c&&c.renditions[0]};
366
+ Dt=function(a,b,c){var d=yt(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 _.Ss:var g="mode";e=_.Xf;f=_.Od;break;case _.X:g="enabled";break;case _.Ts:g="selected"}if(g){d=_.v(d);for(var h=d.next();!h.done;h=d.next())h=h.value,h[g]=Ct(c,h,c.type)?e:
367
+ f}}}else if(a.g.debug("Disable track type "+b),a.a.get(b)&&d&&b===_.Ss){g=_.v(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.Od;a.a.set(b,null)}b===_.X?a.m.trigger(new _.Q(_.Uc)):b===_.Ss&&a.m.trigger(new _.Q(_.pg))};Et=function(a){return a.enabled||a.selected||a.mode===_.Xf||a.mode===_.pe};
368
+ Ft=function(a,b,c){c=_.Di(c).filter(function(e){return e});a.g.info("Find preferred tracks for",b,c);var d=zt(a,b);c.some(function(e){var f=_.jo(e);return(e=d.find(function(g){g=_.jo(g.language||"");return _.ko(f,g)}))?(a.g.info("Will select track with id",e.id),Dt(a,b,e),!0):!1})};Gt=function(a){(a=a.m.getTextDisplayer())&&a.remove(0,Infinity)};
369
+ Ct=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.M.ra(a,{kind:_.Rs(b.kind),language:_.Rs(b.language),label:_.Rs(b.label)},["kind","language","label"])};It=function(a){return a.name===nb&&Ht.some(function(b){return a.message.startsWith(b)})};
370
+ _.Jt=function(a){_.yi.call(this);this.log=new _.L(a);this.configuration=this.Ia=_.Dn();this.ca=this.F=null;this.qe=this.Sg=!1;this.eh=new _.L("clpp.video.events");this.Md=null;this.hf=-1;this.Ej=this.eo.bind(this);this.Kd=new _.Om;this.setNetworkEngine(this.Kd);this.O=new _.ti;this.Jg=this.$c=this.md=this.P=null};_.Mt=function(a,b){a&&b&&(_.Kt.set(a,b),_.Lt.info("Registered TextDisplayerFactory: '"+a+"'"))};
371
+ _.Nt=function(a,b){var c=b.find(function(d){return(d=_.Kt.get(d))?d.a(a):!1});if(null==c)return _.Lt.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;_.Lt.info("Chosen the text displayer: "+c);return _.Kt.get(c)};Ot=function(){this.a=null;this.f=[]};_.Pt=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})}};
372
+ Qt=function(a,b){var c=0;a.a&&a.a.state===b&&(c+=a.a.duration);for(var d=_.v(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state===b?e.duration:0;return c};Rt=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.v(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};St=function(){this.h=this.f=this.j=null;this.a=[]};Tt=function(a){return a.a.map(function(b){return _.M.ib(b)})};
373
+ _.Ut=function(){this.h=this.w=this.B=this.F=this.l=this.o=this.j=this.A=NaN;this.a=new Ot;this.f=new St};_.Vt=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:[]}};
374
+ Yt=function(a){this.g=new _.L("clpp.StateManager");this.m=a;this.a=new _.ti;this.f=_.Wt;this.A=7;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.O=_.nj();this.F=!1;this.J=Date.now();Xt(this)};Zt=function(a,b){return Object.keys(b)[a]};
375
+ $t=function(a,b){var c={type:_.dg};b===_.Zc||b===_.Yc?(c.reason=a.w,b===_.Zc?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(2===a.f&&(c.reason=a.w),2===a.A&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
376
+ cu=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=2===a.f;a.A=a.f;a.f=b;5===a.A&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;2===b?(a.L=a.o,a.w=a.h?1:2,a.g.info("Buffering started. Reason: "+Zt(a.w-1,_.au)),c=$t(a,_.Zc),a.Za(_.Zc,c)):d&&(a.B=a.o-a.L,a.g.info("Buffering finished. Reason: "+Zt(a.w-1,_.au)+". Buffering time: "+a.B+" ms"),c=$t(a,_.Yc),a.Za(_.Yc,c));c=Zt(a.A,_.bu);d=Zt(a.f,_.bu);a.g.info(_.ub+c+" -\x3e "+d);a.Za(_.dg,$t(a,""));return!0};
377
+ du=function(a,b){if(a.f===_.zo)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,cu(a,5));else if(b!==_.ug){var e=a.m.getPosition();e=null!==e&&void 0!==e&&0<=e?a.m.getBufferInfo().Ra(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===_.Wt,g=typeof a.l===_.k&&2>=a.l&&a.j;e=a.h||f||
378
+ e||g;!a.O||a.m.isLive()||2!==a.f||e||(f=b===_.Vf&&4===a.l,(g=1===a.A)&&!a.F?e=!0:g||a.F||f||(e=!0));f=!1;e?f=cu(a,2):c?f=cu(a,4):a.G&&(f=cu(a,3));f&&(a.F=!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: "+Zt(a.f,_.bu))}}};
379
+ Xt=function(a){function b(d){return du(a,d.type)}a.g.debug("Start watching for video events for "+a.m.namespace());var c=a.m;a.a.on(c,_.ie,function(){a.h||(a.j=!1,cu(a,5))});a.a.on(c,$c,b);a.a.on(c,_.sf,function(){a.G=!0;a.j=!1;du(a,_.sf)});a.a.on(c,_.cf,function(){a.G=!1;a.j=!1;du(a,_.cf)});a.a.on(c,_.ug,b);a.a.on(c,_.Jf,b);a.a.on(c,_.Vf,function(d){a.h=!1;a.j=!1;du(a,d.type)});a.a.on(c,_.Wf,function(d){a.h=!0;du(a,d.type)});a.a.on(c,bg,b);a.a.on(c,_.Ug,function(){a.j=!0;du(a,_.Ug)});a.a.on(c,_.je,
380
+ function(d){(d=d&&d.detail)&&d.severity&&d.severity===_.O&&cu(a,_.zo)});a.a.on(c,_.Ee,b);a.a.on(c,ad,function(){a.F=!0;du(a,ad)});a.a.on(c,_.Hg,function(d){a.h=!0;du(a,d.type)});a.a.on(c,_.Gg,function(d){a.h=!1;a.j=!1;du(a,d.type)})};eu=function(){_.Jt.call(this,vd);this.w=this.H=!1;this.l=this.A=this.o=this.a=this.j=null;this.h=new _.ti;this.G=this.B=this.f=this.I=null};
381
+ gu=function(a,b){if(a.w)throw new _.N(_.O,7,7E3);a.a||(a.h.on(b,_.je,function(){var c=fu(a);if(c)a.onError(c)}),a.h.on(b,_.Of,function(){var c=b.videoWidth,d=b.videoHeight,e=a.getTrackManager();e&&0<c&&0<d&&(e.w={width:c,height:d});a.trigger(new _.Q(_.Wc,{detail:{width:c,height:d}}))}),a.a=b)};hu=function(a){var b=_.nj()?As:void 0;return new _.Mr(a,b)};
382
+ ju=function(a){var b,c,d,e,f;return _.I(function(g){if(1==g.a){if(a.w)return g["return"](Promise.reject(new _.N(_.O,7,7E3)));b=a.ca[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=_.iu;d=_.Pn(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=hu({Cb:e,onError:function(h){return a.onError(h)},xg:function(){},wg:function(h,l){a.trigger(new _.Q(_.Wd,
383
+ {expirationTime:l}))},onEvent:function(h){h instanceof _.Q?a.dispatchEvent(h):a.log.debug(_.Ob,h.type)},getConfiguration:function(){return a.getConfiguration()},od:function(){return a.od()}});a.o.f=d;f={id:0,language:_.Bg,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,
384
+ Fa:0,mimeType:_.Og,codecs:"",encrypted:!0,keyId:null,language:_.Bg,originalLanguage:_.Bg,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,yp:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,spatialAudio:!1,fp:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.x(g,_.Rr(a.o,[f]),2)}return _.x(g,_.is(a.o,a.a),0)})};
385
+ ku=function(a,b){Vq(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){a.getState()!==_.zo&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};fu=function(a){if(null===a.ca||!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 _.N(_.O,3,3016,{code:b,rp:c,message:a.a.error.message})};
386
+ lu=function(a){if(a.w)return new _.Jm(Promise.reject(new _.N(_.O,7,7E3)),function(){});var b=a.ca[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&ku(a,c);if(d.preload!==_.Re)a.h.one(d,_.Ee,function(){var g=Date.now()/1E3-e;a.f.B=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.ij()||_.jj())&&d.load();var f=new _.am;a.h.one(d,bg,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.B||(a.B=(new _.dj(function(){f.reject(new _.N(_.O,3,3100,{message:"Unable to load media source successfully from "+
387
+ b.url,uri:b.url},d.error))})).ha(g))});Vq(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.h,function(){return f.resolve()});d.error?f.reject(fu(a)):d.preload===_.Re&&(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,_.je,function(){f.reject(fu(a))});
388
+ return new _.Jm(f,function(){var g=new _.N(_.O,7,7001);f.reject(g);return Promise.resolve()})};
389
+ mu=function(a,b){Vq(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){if(a.isLive()&&a.getState()!==_.zo){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)}))}})};
390
+ nu=function(a,b){var c=!1;a.h.on(b,_.Wf,function(){c=b.paused});a.h.on(b,_.Vf,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())})};ou=function(){};
391
+ pu=function(a,b,c){S.call(this,a,b,c);a={manifest:{timeline:{version:2},keepTimelineLive:!0},streaming:{preferNativeHlsOnSafari:!1,enableLiveEdgeChasing:!1,startAtSegmentBoundary:!1}};this.F=_.M.ua(this.F,a);this.f=_.M.ua(this.f,a);this.H=0;this.o=[];this.fa=!1;this.w=null;this.K=[]};qu=function(a){a.K.forEach(function(b){return b()});a.K=[]};
392
+ su=function(a,b){function c(f){a.H=a.o.findIndex(function(g){return g.id===f.id})}a.addEventListener(_.Rf,c);a.K.push(function(){a.removeEventListener(_.Rf,c)});if(b.endTime){var d=b.endTime,e=function(){a.getPosition()>=d&&(a.removeEventListener(_.ug,e),a.g.info("Playlist end time reached. Stopping playback."),a.trigger(new _.Q(_.Qf)),a.pause())};a.addEventListener(_.ug,e);a.K.push(function(){a.removeEventListener(_.ug,e)})}};
393
+ vu=function(a,b){var c,d;return _.I(function(e){switch(e.a){case 1:return _.F(e,2),_.Ym(rf),a.P=_.pb,a.ka=!1,c=b.slice(1).map(function(f){return{config:f,ca:_.Jn(f)}}),_.x(e,_.Oo(a,b[0]),4);case 4:return c.forEach(function(f){tu(a,f.config,f.ca)}),a.trigger(new _.Q(Ge)),_.x(e,a.a.setupPlaylist(b),5);case 5:return _.x(e,_.Jo(a),6);case 6:c.forEach(function(f){uu(a,f.config,f.ca)});_.Ym(qf);_.$m("player.setupPlaylist",rf,qf);_.G(e,0);break;case 2:d=_.H(e);if(a.l)throw a.g.info(ab),new _.N(_.O,7,7E3);
394
+ throw d;}})};wu=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.F(e,2),_.Ym(lf),c=_.Jn(b),tu(a,b,c),_.x(e,a.a.appendLoad(b),4);if(2!=e.a)return uu(a,b,c),_.Ym(kf),_.$m("player.appendLoad",lf,kf),_.G(e,0);d=_.H(e);if(a.l)throw a.g.info(ab),new _.N(_.O,7,7E3,{id:b.id});throw d;})};uu=function(a,b,c){Fo(a,{configuration:b,ca:c,drmInfo:a.getDrmInfo(),ij:Object.keys(a.L),isLive:c[0].isLive})};
395
+ tu=function(a,b,c){if(0===c.length)throw new _.N(_.O,7,7003,{message:jb,id:b.id});if(1<c.length)throw new _.N(_.O,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 _.N(_.O,7,7003,{message:"Source not supported by the current player!",id:b.id,source:c[0]});};
396
+ zu=function(a){_.yi.call(this);var b=this;this.j=_.M.ua({transition:_.cf,preloadMedia:!1},a);this.h=[];this.a=0;var c=xu(a.anchorId,this.j.config);this.w=new Ci(c);this.f=null;this.l=!1;this.o=new Map;this.A=a.toggleVisible;this.g=new _.L(wd);this.w.a.forEach(function(d){return yu(b,d.player,!1)})};Bu=function(a){return Promise.all(Array.from(a.o.keys()).map(function(b){return Au(a,b)}))};
397
+ Au=function(a,b){var c;return _.I(function(d){if(1==d.a){c=a.o.get(b);if(!c)return d.C(0);a.g.info("Stop preloading item (index: "+b+")");return c.player?_.x(d,Cu(a,c),3):d.C(3)}a.o["delete"](b);_.z(d)})};Eu=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Stop current playback (index: "+b.index+")"),b.player.pause(),yu(a,b.player,!1),_.x(c,Cu(a,b),2);b.player=null;b.videoEl=null;b.role=Du;_.z(c)})};
398
+ Cu=function(a,b){return _.I(function(c){b.disposers.forEach(function(d){return d()});b.disposers=[];return b.player?_.x(c,a.w.release(b.player),0):c.C(0)})};Hu=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.x(d,a.w.get(),2);if(3!=d.a)return c=d.f,a.f=b,b.role=Fu,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),yu(a,c,!0),_.x(d,c.load(b.config),3);Gu(a,b);return b.config.autoplay?d.C(0):_.x(d,c.play(),0)})};
399
+ Iu=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Ef){c.C(2);break}a.g.info(Vb);_.F(c,3);return _.x(c,b.preloadPromise,5);case 5:_.G(c,2);break;case 3:_.H(c);case 2:a.f=b;b.role=Fu;yu(a,b.player,!0);if(b.state===Df)return _.Ym(Af),a.j.preloadMedia?_.x(c,b.player.play(),11):_.x(c,Ko(b.player),11);if(b.state!==Cf){c.C(7);break}return _.x(c,b.player.load(b.config),7);case 11:_.Ym(zf),_.$m("playlist.next",Af,zf);case 7:if(Gu(a,b),b.config.autoplay)c.C(0);
400
+ else return _.x(c,b.player.play(),0)}})};Gu=function(a,b){if(a.j.autoplayNext){var c=function(){a.g.info("Automatically transition to next item");a.gj()};b.player.on(_.ie,c);var d=b.player;b.disposers.push(function(){d.off(_.ie,c)})}};Ku=function(a){var b;return _.I(function(c){b=a.a+1;a.g.info("Preload following item (index: "+b+")");return _.x(c,Ju(a,b),0)})};Lu=function(a){var b;return _.I(function(c){b=a.a-1;a.g.info("Preload preceding item (index: "+b+")");return _.x(c,Ju(a,b),0)})};
401
+ Mu=function(a){var b;_.I(function(c){if(0===a.a)return _.x(c,Ku(a),0);if(a.a===a.h.length-1)return _.x(c,Lu(a),0);b=[a.a-1,a.a+1];a.g.info("Preload items (indices: "+b+")");return _.x(c,Promise.all(b.map(function(d){return Ju(a,d)})),0)})};
402
+ Ju=function(a,b){var c,d,e;return _.I(function(f){switch(f.a){case 1:return _.x(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=Du,d.state=Ef,a.trigger(new _.Q(Dg)),_.F(f,3),a.o.set(b,d),a.j.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),_.x(f,d.preloadPromise,5);case 5:d.state=
403
+ Df;a.trigger(new _.Q(Dg));_.G(f,0);break;case 3:e=_.H(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 _.Q(_.je,{detail:e})),d.state=Cf),a.trigger(new _.Q(Dg)),_.z(f)}})};yu=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.info(Hb+b),d.classList.add(od)):(a.g.info(Va+b),d.classList.remove(od)),a.A&&a.A(d,c))};
404
+ Nu=function(a){var b;return _.I(function(c){if(1==c.a)return _.x(c,a.w.destroy(),2);b=document.getElementById(a.j.anchorId);if(!b)return c["return"]();b.classList.remove(nd);b.innerHTML="";_.z(c)})};
405
+ xu=function(a,b){var c=document.getElementById(a);if(!c)throw Error("Anchor element not found");c.classList.add(nd);return Array.from({length:3}).map(function(){var d=document.createElement(_.Mg);d.classList.add("clpp-mc-playlist-video-el");var e=document.createElement(_.Pd);e.classList.add("clpp-mc-playlist-item");e.appendChild(d);c.appendChild(e);return new S(d,b)})};
406
+ _.Pu=function(a){if(Ou.has(a))return Ou.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);Ou.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),Ou.set(a,b),b):!1};Qu=function(a){this.h=a;this.f={keepOriginalTimestamps:!0,remux:!1};this.a=new muxjs.mp4.Transmuxer(this.f)};
407
+ Ru=function(a,b){var c=b.replace(/mp2t/i,"mp4");a===_.Nc&&(c=c.replace(_.Mg,_.Nc));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};Su=function(){};_.Tu=function(){};
408
+ Uu=function(a,b,c,d,e){_.Rp.call(this,Ua);this.l=a;this.j=b;this.h=c;this.a=d;this.o=e;this.g=new _.L(sd);_.R.empty(this.l)?this.g.warn(_.Xb):this.bb(_.Fd,{licenseUrl:this.l,videoRobustness:[_.Db,void 0],audioRobustness:[_.Cb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.ve.bind(this)}});_.R.empty(this.j)?this.g.warn(_.rb):this.bb(_.Dd,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.ve.bind(this)}});
409
+ _.R.empty(this.h)?this.g.warn(_.Pa):_.R.empty(this.a)?this.g.warn(_.Oa):this.bb(_.Bd,{licenseUrl:this.h,certificateUrl:this.a,modifiers:{licenseRequest:this.Oi.bind(this),licenseResponse:this.Pi.bind(this),certificateRequest:this.ve.bind(this),extractContentId:this.Wh.bind(this)}})};Vu=function(){};Wu=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.ne)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
410
+ Xu=function(a){a=a.target;if(a.webkitPresentationMode===ff){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)};Yu=function(){return this.webkitSupportsPresentationMode(ff)?(this.webkitSetPresentationMode(ff),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
411
+ Zu=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};$u=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};av=function(a,b,c){return new window.TextTrackCue(a,b,c)};
412
+ bv=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};dv=function(a,b,c){if("input"===a)switch(this.type){case "range":a=jd}cv.call(this,a,b,c)};_.mv=function(a){var b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next()){c=_.v(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};_.vv=function(a,b,c){this.h=a;this.j=b;this.f=c||this.h.getMedia();this.a=null};_.xv=function(){this.a=new Blob([wv],{type:_.Og})};
413
+ _.zv=function(a,b){var c=_.wn(_.xn(a),_.yn(a));_.yv[c]=b};_.Av=function(a){a=_.wn(_.xn(a),_.yn(a));return _.yv[a]||null};_.Bv=function(a){a=_.wn(_.xn(a),_.yn(a));delete _.yv[a]};
414
+ _.Cv=function(a){a=a.getConfiguration();a=_.M.ib(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.gg?a.backgroundColor:null;this.U=typeof a.windowColor===_.gg?a.windowColor:null;this.O=typeof a.fontColor===_.gg?a.fontColor:null;this.P=typeof a.fontFamily===_.gg?a.fontFamily:null;this.I=typeof a.fontSize===_.gg?a.fontSize:null;this.B=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.H=typeof a.edgeColor===_.gg?a.edgeColor:"rgba(0, 0, 0, 1)";this.o=null;typeof a.edgeType===
415
+ _.gg&&(this.o=a.edgeType)};_.Hv=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case Dv:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case Ev:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case Fv:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case Gv:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.Re}};
416
+ _.Jv=function(a){_.Cv.call(this,a);this.l=a.getSurface().getMedia();this.f="clpp-video-"+Iv++;this.h=document.createElement(_.ig);this.j=this.w=!1;_.Wi(this.l,this.f);document.head.appendChild(this.h);this.Tb()};Kv=function(){};Lv=function(a){this.f=a;this.a=null;this.g=new _.L("clpp.text.Mp4TextParser")};_.Mv=function(a,b,c,d){this.id=a;this.f=b;this.a=c;this.h=d};_.Nv=function(){this.a=[];this.f=-1;this.h=null};
417
+ _.Pv=function(a,b,c,d){var e,f;return _.I(function(g){if(1==g.a)return _.F(g,2),_.x(g,Ov(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.H(g);f.a(_.O);throw f;})};
418
+ Ov=function(a,b,c,d){var e,f,g,h;return _.I(function(l){if(1==l.a){if(d){if(e=_.Qv[d.toLowerCase()])return l["return"](e);_.Lh("Could not determine manifest type using MIME type ",d)}if(f=_.rn(a)){if(g=_.Rv[f])return l["return"](g);_.Lh("Could not determine manifest type for extension ",f)}else _.Lh("Could not find extension for ",a);return d?l.C(2):_.x(l,Sv(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(h=_.Qv[d])return l["return"](h);_.Lh("Could not determine manifest type using MIME type",d)}throw new _.N(_.O,
419
+ 4,4E3,{url:a});})};Sv=function(a,b,c){var d,e,f;return _.I(function(g){if(1==g.a)return d=_.Mk(a),Jk(d,c),d.type=1,d.method="HEAD",_.x(g,b.fetch(d).T,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.Tv=function(){};_.gh=[];kh=typeof Object.create==_.ne?Object.create:function(a){function b(){}b.prototype=a;return new b};
420
+ if(typeof Object.setPrototypeOf==_.ne)Uv=Object.setPrototypeOf;else{var Vv;a:{var Wv={Mj:!0},Xv={};try{Xv.__proto__=Wv;Vv=Xv.Mj;break a}catch(a){}Vv=!1}Uv=Vv?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
421
+ var lh=Uv,ph=typeof Object.defineProperties==_.ne?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},nh="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;qh.prototype.toString=function(){return this.a};var oh=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new qh("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
422
+ th.prototype.A=function(a){this.f=a};th.prototype["return"]=function(a){this.h={"return":a};this.a=this.j};th.prototype.C=function(a){this.a=a};
423
+ Fh("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=nh.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=
424
+ 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.F),reject:g(this.h)}};b.prototype.F=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 _.Se:var h=null!=g;break a;case _.ne:h=!0;break a;default:h=!1}h?this.B(g):this.o(g)}};
425
+ b.prototype.B=function(g){var h=void 0;try{h=g.then}catch(l){this.h(l);return}typeof h==_.ne?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();
426
+ g.Ue(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,t){return typeof q==_.ne?function(u){try{m(q(u))}catch(y){n(y)}}:t}var m,n,p=new b(function(q,t){m=q;n=t});this.Ue(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.Ue=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: "+
427
+ 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=_.v(g),n=m.next();!n.done;n=m.next())d(n.value).Ue(h,l)})};b.all=function(g){var h=_.v(g),l=h.next();return l.done?d([]):new b(function(m,n){function p(u){return function(y){q[u]=y;t--;0==t&&m(q)}}var q=[],t=0;do q.push(void 0),t++,d(l.value).Ue(p(q.length-1),n),l=h.next();while(!l.done)})};return b});var Hh=this||self;
428
+ Hh.a=!0;_.M={Kj:20,ib:function(a){var b=_.M.R,c=_.M.Ai,d=_.M.ua;return b(a)||c(a)?a:d(a)}};_.K("clpp.utils.obj.cloneItem",_.M.ib);_.M.ua=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=_.M.Gi(c,{merging:b[d]},1));return c.merging||null};_.K("clpp.utils.obj.merge",_.M.ua);_.M.pc=function(a){for(var b in a)if(void 0!==a[b])return!0;return!1};
429
+ _.M.Gi=function(a,b,c){var d=_.M.R,e=_.M.Ai,f=_.M.Gi,g=_.M.Rb,h=_.M.zm,l=_.M.pg,m=_.M.tm,n=_.M.sd;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<_.M.Kj&&(a[p]=f(a[p],n,c));return a};_.M.Ai=function(a){a=typeof a;return a===_.gg||a===_.k||a===_.Xc};_.M.tm=function(a){return a instanceof Element};_.M.R=function(a){return null===a||"undefined"===typeof a};_.M.sd=function(a){return typeof a===_.Se};
430
+ _.M.Rb=function(a){return typeof a===_.ne};_.M.ia=function(a){return typeof a===_.gg};_.M.xa=function(a){return typeof a===_.k};_.M.wi=function(a){return typeof a===_.Xc};_.M.pg=function(a){var b=_.M.sd,c=_.M.R;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.M.zm=function(a){var b=_.M.sd,c=_.M.Rb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
431
+ _.M.ra=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||!_.M.sd(a)||!_.M.sd(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var h=e[g];if(_.M.R(d)||0>d.indexOf(h))if(f[h]=!0,a[h]!==b[h])return!1}if(_.M.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.M.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
432
+ _.M.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.M.um=function(a,b,c){return a>=b&&a<=c};_.M.ih=function(a){for(var b=new Map,c=_.v(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.M.jh=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};
433
+ _.M.ji=function(a,b){for(var c=b.toLowerCase(),d=_.v(Object.entries(a)),e=d.next();!e.done;e=d.next()){var f=_.v(e.value);e=f.next().value;f=f.next().value;if(e.toLowerCase()===c)return f}return null};_.M.Bi=function(a,b){for(var c in a){if(!(c in b))return!1;var d=a[c],e=b[c];if(d&&typeof d===_.Se&&e&&typeof e===_.Se){if(!_.M.Bi(d,e))return!1}else if(void 0!==d&&void 0!==e&&d!==e)return!1}return!0};
434
+ _.M.Ci=function(a,b){if(!_.M.Bi(a,b))return!1;for(var c in b){if(!(c in a))return!0;var d=a[c],e=b[c];if(!d&&e||d&&typeof d===_.Se&&e&&typeof e===_.Se&&_.M.Ci(d,e))return!0}return!1};var Mh={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.K("clpp.log.Level",Mh);var Jh=0,Ih={},Yv=[];_.K("clpp.log.getLoggers",function(){return _.M.ib(Ih)});_.K("clpp.log.addInterceptor",function(a){a&&Yv.push(a)});_.K("clpp.log.removeInterceptor",function(a){a&&(a=Yv.indexOf(a),0<=a&&Yv.splice(a,1))});_.K("clpp.log.getTagLevel",Kh);_.K("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Ih[a]});_.K("clpp.log.setTagLevel",function(a,b){a&&(_.M.ia(b)&&(b=Nh(b)),Ih[a]=b)});
435
+ _.K("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.M.ia(a)&&(a=Nh(a));Jh=a});_.K("clpp.log.getLogLevel",function(){return Jh});_.r=_.L.prototype;
436
+ _.r.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=Kh(this.tag);if(0<=d){if(d<c)return}else if(Jh<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):
437
+ 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.v(Yv);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.r.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.r.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.r.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
438
+ _.r.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.r.sl=function(a){return a?this.tag?new _.L(this.tag+"."+a):new _.L(a):this};_.K("clpp.log.Logger",_.L);_.L.prototype.createChild=_.L.prototype.sl;_.L.prototype.error=_.L.prototype.error;_.L.prototype.warn=_.L.prototype.warn;_.L.prototype.debug=_.L.prototype.debug;_.L.prototype.info=_.L.prototype.info;_.L.prototype.log=_.L.prototype.log;var Oh=new _.L("clpp");_.K("clpp.log.info",_.Ph);
439
+ _.K("clpp.log.debug",_.Qh);_.K("clpp.log.warn",_.Lh);_.K("clpp.log.error",_.Rh);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.Uh=new _.L("clpp.players");_.Th={};_.K("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.K("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1,SERVER_GUIDED:2});_.K("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var Yh=new _.L("clpp.ads"),Xh=[];_.r=_.bi.prototype;_.r.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(Lb);};_.r.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(Lb);};_.r.Vb=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)};_.r.Qa=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
440
+ _.r.Lc=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};
441
+ _.r.Ra=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.Qa();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};_.r.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};_.K("clpp.BufferInfo",_.bi);_.bi.prototype.bufferedAheadOf=_.bi.prototype.Ra;
442
+ _.bi.prototype.isBuffered=_.bi.prototype.Lc;_.bi.prototype.bufferEnd=_.bi.prototype.Qa;_.bi.prototype.bufferStart=_.bi.prototype.Vb;_.bi.prototype.end=_.bi.prototype.end;_.bi.prototype.start=_.bi.prototype.start;var ei;ei=new _.L("clpp.Components");_.ci=new Map;_.K("clpp.install",function(a){mi(a)});_.K("clpp.uninstall",function(a){ni(a)});_.w(_.N,Error);_.N.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=oi(this.severity,this.category,this.code,this.data))};_.N.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.K("clpp.Error",_.N);_.O=2;_.N.Severity={RECOVERABLE:1,FATAL:_.O};_.N.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
443
+ _.N.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_MODIFIER_ERROR:1006,RESPONSE_MODIFIER_ERROR:1007,MALFORMED_TEST_URI:1008,MALFORMED_URL:1011,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,FETCH_OR_APPEND_ERROR:2010,INVALID_MP4:2011,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,
444
+ 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,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,
445
+ MP4_PARSER_ERROR:3019,MEDIA_LOAD_ERROR:3100,INVALID_TRACK_TYPE:3101,MEDIA_DECRYPTION_ERROR:3103,PAUSE_FAILED:3201,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,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,UNPLAYABLE_PERIOD:4011,RESTRICTIONS_CANNOT_BE_MET:4012,NO_PERIODS:4014,
446
+ HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_COULD_NOT_GUESS_MIME_TYPE:4021,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,HLS_COULD_NOT_PARSE_SEGMENT_START_TIME:4030,CONTENT_UNSUPPORTED_BY_BROWSER:4032,SMOOTH_INVALID_MANIFEST_XML:4033,
447
+ SMOOTH_EMPTY_PRESENTATION:4034,SMOOTH_MEDIA_PROCESSING_ERROR:4035,SMOOTH_INVALID_VERSION:4036,SMOOTH_INVALID_FRAGMENT_METADATA:4037,SMOOTH_REQUIRED_ATTRIBUTE_MISSING:4038,SMOOTH_TRUNCATED_MEDIA_FILE:4039,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4040,HLS_MSE_ENCRYPTED_TS_NOT_SUPPORTED:4041,HLS_PLAYLIST_NOT_UTF8:4042,HLS_PLAYLIST_EMPTY:4043,HLS_INVALID_VALUE:4044,HLS_DISCONTINUITY_NOT_SUPPORTED:4045,HLS_INCOMPATIBLE_PLAYLIST_UPDATE:4047,HLS_DISJOINT_PLAYLISTS:4048,INVALID_STREAMS_CHOSEN:5005,STREAMING_ERROR:5006,
448
+ NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,REQUESTED_DRM_ENVIRONMENT_UNAVAILABLE:6015,INIT_DATA_TRANSFORM_ERROR:6016,CERTIFICATE_REQUEST_FAILED:6100,
449
+ 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,CANNOT_LOAD_SOURCE:7003,MEDIA_ELEMENT_NOT_FOUND:7004,INVALID_MEDIA_ELEMENT:7005,INVALID_CONTAINER_ELEMENT:7006,INVALID_ARGUMENT:7007,WRONG_ORDER_OF_OPERATIONS:7008,NOT_SUPPORTED:7009,INVALID_CONFIGURATION:7100,INVALID_LICENSE:7101,NO_ELEMENT:7102,USER_ID_NOT_PROVIDED:7103,
450
+ 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,YOUBORA_SDK_VERSION_NOT_SUPPORTED:9102,VIMOND_INVALID_CONFIGURATION:9200,VIMOND_SESSION_ERROR:9201,MUXDATA_INVALID_CONFIGURATION:9300,
451
+ 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};_.w(_.pi,Error);_.r=_.qi.prototype;_.r.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.r.get=function(a){return(a=this.a[a])?a.slice():[]};_.r.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};_.r.clear=function(){this.a={}};_.r.forEach=function(a){for(var b in this.a)a(b,this.a[b])};ri.prototype.Za=function(a){try{this.Ve.handleEvent?this.Ve.handleEvent(a):this.Ve.call(this.a,a)}catch(b){_.Rh("clpp","Uncaught exception in event handler for event '"+this.f+"'",b,b?b.message:null,b?b.stack:null)}};_.Q.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.Q.prototype.stopImmediatePropagation=function(){this.f=!0};_.Q.prototype.stopPropagation=function(){};_.r=si.prototype;
452
+ _.r.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].Za(a),b[c].fo&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.r.on=function(a,b,c){this.a.push(a,new ri(a,b,c||this.f));return b};_.r.one=function(a,b,c){this.a.push(a,new ri(a,b,c||this.f,!0));return b};_.r.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].Ve===b&&(d=this.a.remove(a,c[e])||d);return d};_.r.clear=function(){this.a.clear()};_.ti.prototype.release=function(){_.wi(this)};_.ti.prototype.on=function(a,b,c,d){a=new xi(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.ti.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)};_.ti.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||(vi(f),this.a.remove(b,f))}};_.r=_.yi.prototype;_.r.addEventListener=function(a,b){this.on(a,b)};_.r.removeEventListener=function(a,b){this.off(a,b)};_.r.on=function(a,b,c){return this.Yd.on(a,b,c)};_.r.one=function(a,b,c){return this.Yd.one(a,b,c)};_.r.off=function(a,b){return this.Yd.off(a,b)};_.r.forwardEventsTo=function(a){a&&(0<=this.Ud.indexOf(a)||this.Ud.push(a))};_.r.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};
453
+ _.r.stopForwardingEventsTo=function(a){a&&(a=this.Ud.indexOf(a),0<=a&&this.Ud.splice(a,1))};_.r.trigger=function(a){this.Yd.trigger(a);for(var b=_.v(this.Ud),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.yi.prototype.off=_.yi.prototype.off;_.yi.prototype.one=_.yi.prototype.one;_.yi.prototype.on=_.yi.prototype.on;_.yi.prototype.removeEventListener=_.yi.prototype.removeEventListener;_.yi.prototype.addEventListener=_.yi.prototype.addEventListener;_.r=zi.prototype;_.r.load=function(){};_.r.start=function(){};_.r.gd=function(){};_.r.resume=function(){};_.r.pause=function(){};_.r.skip=function(){};_.r.getVolume=function(){};_.r.setVolume=function(){};_.r.getPosition=function(){};_.r.Dc=function(){};_.r.ed=function(){};_.K("clpp.ads.IAdsManager",zi);zi.prototype.getPosition=zi.prototype.getPosition;zi.prototype.setVolume=zi.prototype.setVolume;zi.prototype.getVolume=zi.prototype.getVolume;zi.prototype.skip=zi.prototype.skip;
454
+ zi.prototype.pause=zi.prototype.pause;zi.prototype.resume=zi.prototype.resume;_.K("clpp.events.ERROR",_.je);_.K("clpp.events.LOADEDMETADATA",_.Ee);_.K("clpp.events.BUFFERING_ENDED",_.Yc);_.K("clpp.events.BUFFERING_STARTED",_.Zc);_.K("clpp.events.STATE_CHANGED",_.dg);_.K("clpp.events.AUDIO_TRACK_CHANGED",_.Uc);_.K("clpp.events.TEXT_TRACK_CHANGED",_.pg);_.K("clpp.events.VIDEO_TRACK_CHANGED",_.Qg);_.K("clpp.events.BITRATE_CHANGED",_.Wc);_.K("clpp.events.TRACKS_ADDED",_.vg);_.K("clpp.events.LOAD_START",Ge);_.K("clpp.events.RELEASING",_.Lf);_.K("clpp.events.RELEASED",Kf);
455
+ _.K("clpp.events.DESTROYING","destroying");_.K("clpp.events.DESTROYED","destroyed");_.K("clpp.events.VIDEO_BUFFER_CHANGED",_.Pg);_.K("clpp.events.AUDIO_BUFFER_CHANGED",_.Tc);_.K("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.K("clpp.events.DRM_SESSION_CREATED",Zd);_.K("clpp.events.DRM_SESSION_UPDATE",_.ae);_.K("clpp.events.DRM_SESSION_PERSISTED",_.$d);_.K("clpp.events.DRM_RENEWAL_STARTED",Yd);_.K("clpp.events.DRM_EXPIRATION_UPDATE",_.Wd);_.K("clpp.events.DRM_LICENSE_REQUESTED",Xd);
456
+ _.K("clpp.events.AUTOPLAY_NOT_ALLOWED",_.Vc);_.K("clpp.events.PLAY",_.gf);_.K("clpp.events.SEEKING",_.Wf);_.K("clpp.events.SEEKED",_.Vf);_.K("clpp.events.USER_SEEKING",_.Hg);_.K("clpp.events.USER_SEEKED",_.Gg);_.au={SEEKING:1,NO_DATA:2};_.K("clpp.events.BufferingReasons",_.au);_.K("clpp.events.ADS_TIMELINE_CHANGED",_.Ac);_.K("clpp.events.AD_LOADED",_.qc);_.K("clpp.events.AD_BREAK_STARTED",_.fc);_.K("clpp.events.AD_STARTED",_.wc);_.K("clpp.events.AD_BUFFERING",_.hc);_.K("clpp.events.AD_PROGRESS",_.tc);
457
+ _.K("clpp.events.AD_FIRST_QUARTILE",_.kc);_.K("clpp.events.AD_MIDPOINT",_.rc);_.K("clpp.events.AD_THIRD_QUARTILE",_.yc);_.K("clpp.events.AD_PAUSED",_.sc);_.K("clpp.events.AD_RESUMED",_.uc);_.K("clpp.events.AD_SKIPPED",_.vc);_.K("clpp.events.AD_CLICKED",_.ic);_.K("clpp.events.AD_IMPRESSION",_.pc);_.K("clpp.events.AD_COMPLETED",_.jc);_.K("clpp.events.AD_STOPPED",_.xc);_.K("clpp.events.AD_BREAK_STOPPED",_.gc);_.K("clpp.events.AD_HLS_ASSET_LIST_REQUEST",lc);
458
+ _.K("clpp.events.AD_HLS_ASSET_LIST_RESPONSE",mc);_.K("clpp.events.AD_HLS_RESOLVED",nc);_.K("clpp.events.SIMID_CREATIVE_STARTED",_.Yf);_.K("clpp.events.SIMID_CREATIVE_STOPPED",_.Zf);_.K("clpp.events.CASTING_STARTED",_.cd);_.K("clpp.events.CASTING_ENDED","castingended");_.K("clpp.events.CAST_STATUS_CHANGED",_.dd);_.K("clpp.events.AIRPLAY_STATUS_CHANGED",_.Dc);_.K("clpp.events.AIRPLAY_CASTING_STARTED",_.Cc);_.K("clpp.events.AIRPLAY_CASTING_ENDED",_.Bc);_.K("clpp.events.TIMELINE_CUE_ADDED",_.qg);
459
+ _.K("clpp.events.TIMELINE_CUE_ENTER",_.rg);_.K("clpp.events.TIMELINE_CUE_EXIT",_.sg);_.K("clpp.events.TIMELINE_CUES_CHANGED",_.tg);_.K("clpp.events.MPD_TYPE_CHANGED",_.Pe);_.K("clpp.events.LIVE_TURNED_STATIC",_.Be);_.K("clpp.events.VIMOND_RESPONSE",_.Rg);_.K("clpp.events.PLAYLIST_ITEM_CHANGED",_.uf);_.K("clpp.events.PLAYLIST_MODIFIED",_.yf);_.K("clpp.events.SC_PLAYLIST_TIMELINE_CHANGED",_.Tf);_.K("clpp.events.SC_PLAYLIST_ITEM_CHANGED",_.Rf);_.K("clpp.events.SC_PLAYLIST_ENDED",_.Qf);
460
+ _.K("clpp.events.SC_PLAYLIST_LIVE_TURNED_STATIC",_.Sf);_.K("clpp.events.CDN_SWITCH_SUCCESS",_.ed);_.K("clpp.events.ONLINE_STATUS_CHANGED",Ze);_.K("clpp.events.CMSD_EVENT","cmsd-event");_.K("clpp.events.YOSPACE_SESSION_STARTED",_.fh);_.K("clpp.events.YOSPACE_SESSION_ENDED",_.eh);_.K("clpp.events.CONTENT_STEERING_CHANGE",_.Id);_.K("clpp.events.CONTENT_STEERING_LOCATION_BAN_UPDATE",_.Jd);_.r=Ai.prototype;_.r.vb=function(){};_.r.wb=function(){};_.r.Bb=function(){};_.r.getId=function(){};_.r.getCreativeId=function(){};_.r.Yb=function(){};_.r.getApiFramework=function(){};_.r.getAdSystem=function(){};_.r.getAdvertiserName=function(){};_.r.getTitle=function(){};_.r.getDuration=function(){};_.r.getPosition=function(){};_.r.getSkipTimeOffset=function(){};_.r.bc=function(){};_.r.xb=function(){};_.r.getMediaUrl=function(){};_.r.lb=function(){};_.r.kb=function(){};_.r.Va=function(){};
461
+ _.r.Wa=function(){};_.r.getPodIndex=function(){};_.r.Mb=function(){};_.r.zb=function(){};_.r.nb=function(){};_.r.getWrapperAdIds=function(){};_.r.getWrapperAdSystems=function(){};_.r.getWrapperCreativeIds=function(){};_.r.ac=function(){};_.r.canSeek=function(){};_.K("clpp.ads.IAd",Ai);Ai.prototype.canSeek=Ai.prototype.canSeek;Ai.prototype.getVideoElement=Ai.prototype.ac;Ai.prototype.getWrapperCreativeIds=Ai.prototype.getWrapperCreativeIds;Ai.prototype.getWrapperAdSystems=Ai.prototype.getWrapperAdSystems;
462
+ Ai.prototype.getWrapperAdIds=Ai.prototype.getWrapperAdIds;Ai.prototype.getSequenceLength=Ai.prototype.nb;Ai.prototype.getPositionInSequence=Ai.prototype.zb;Ai.prototype.getPodTimeOffset=Ai.prototype.Mb;Ai.prototype.getPodIndex=Ai.prototype.getPodIndex;Ai.prototype.getPodType=Ai.prototype.Wa;Ai.prototype.getMediaBitrate=Ai.prototype.Va;Ai.prototype.getMediaHeight=Ai.prototype.kb;Ai.prototype.getMediaWidth=Ai.prototype.lb;Ai.prototype.getMediaUrl=Ai.prototype.getMediaUrl;
463
+ Ai.prototype.getClickThroughUrl=Ai.prototype.xb;Ai.prototype.isBumper=Ai.prototype.bc;Ai.prototype.getSkipTimeOffset=Ai.prototype.getSkipTimeOffset;Ai.prototype.getPosition=Ai.prototype.getPosition;Ai.prototype.getDuration=Ai.prototype.getDuration;Ai.prototype.getTitle=Ai.prototype.getTitle;Ai.prototype.getAdvertiserName=Ai.prototype.getAdvertiserName;Ai.prototype.getAdSystem=Ai.prototype.getAdSystem;Ai.prototype.getApiFramework=Ai.prototype.getApiFramework;Ai.prototype.getSourceId=Ai.prototype.Yb;
464
+ Ai.prototype.getCreativeId=Ai.prototype.getCreativeId;Ai.prototype.getId=Ai.prototype.getId;Ai.prototype.getTechnology=Ai.prototype.Bb;Ai.prototype.getAdManagerVersion=Ai.prototype.wb;Ai.prototype.getAdManagerName=Ai.prototype.vb;_.r=Bi.prototype;_.r.vb=function(){return""};_.r.wb=function(){return""};_.r.Bb=function(){return 2};_.r.getId=function(){return this.B};_.r.getCreativeId=function(){return""};_.r.Yb=function(){return this.H};_.r.getApiFramework=function(){return null};_.r.getAdSystem=function(){return""};_.r.getAdvertiserName=function(){return""};_.r.getTitle=function(){return""};_.r.getDuration=function(){return this.h};_.r.getPosition=function(){return this.j};_.r.getSkipTimeOffset=function(){return-1};
465
+ _.r.canSeek=function(){return this.A};_.r.bc=function(){return!1};_.r.xb=function(){return null};_.r.getMediaUrl=function(){return null};_.r.lb=function(){return 0};_.r.kb=function(){return 0};_.r.Va=function(){return 0};_.r.Wa=function(){return this.G};_.r.getPodIndex=function(){return 0};_.r.Mb=function(){return 0};_.r.zb=function(){return this.f};_.r.nb=function(){return this.a};_.r.getWrapperAdIds=function(){return[]};_.r.getWrapperAdSystems=function(){return[]};_.r.getWrapperCreativeIds=function(){return[]};
466
+ _.r.ac=function(){return this.videoEl};_.r.Vl=function(){return this.F};Bi.prototype.getCustomAttributes=Bi.prototype.Vl;Bi.prototype.getVideoElement=Bi.prototype.ac;Bi.prototype.getWrapperCreativeIds=Bi.prototype.getWrapperCreativeIds;Bi.prototype.getWrapperAdSystems=Bi.prototype.getWrapperAdSystems;Bi.prototype.getWrapperAdIds=Bi.prototype.getWrapperAdIds;Bi.prototype.getSequenceLength=Bi.prototype.nb;Bi.prototype.getPositionInSequence=Bi.prototype.zb;Bi.prototype.getPodTimeOffset=Bi.prototype.Mb;
467
+ Bi.prototype.getPodIndex=Bi.prototype.getPodIndex;Bi.prototype.getPodType=Bi.prototype.Wa;Bi.prototype.getMediaBitrate=Bi.prototype.Va;Bi.prototype.getMediaHeight=Bi.prototype.kb;Bi.prototype.getMediaWidth=Bi.prototype.lb;Bi.prototype.getMediaUrl=Bi.prototype.getMediaUrl;Bi.prototype.getClickThroughUrl=Bi.prototype.xb;Bi.prototype.isBumper=Bi.prototype.bc;Bi.prototype.canSeek=Bi.prototype.canSeek;Bi.prototype.getSkipTimeOffset=Bi.prototype.getSkipTimeOffset;Bi.prototype.getPosition=Bi.prototype.getPosition;
468
+ Bi.prototype.getDuration=Bi.prototype.getDuration;Bi.prototype.getTitle=Bi.prototype.getTitle;Bi.prototype.getAdvertiserName=Bi.prototype.getAdvertiserName;Bi.prototype.getAdSystem=Bi.prototype.getAdSystem;Bi.prototype.getApiFramework=Bi.prototype.getApiFramework;Bi.prototype.getSourceId=Bi.prototype.Yb;Bi.prototype.getCreativeId=Bi.prototype.getCreativeId;Bi.prototype.getId=Bi.prototype.getId;Bi.prototype.getTechnology=Bi.prototype.Bb;Bi.prototype.getAdManagerVersion=Bi.prototype.wb;
469
+ Bi.prototype.getAdManagerName=Bi.prototype.vb;Ci.prototype.has=function(){return this.a.some(function(a){return a.Te})};Ci.prototype.get=function(){var a=this,b;return _.I(function(c){if(1==c.a){b=a.a.find(function(d){return d.Te});if(!b)throw Error("No available players in the pool");b.Te=!1;return _.x(c,b.ready,2)}return c["return"](b.player)})};
470
+ Ci.prototype.release=function(a){var b=this,c=this.a.find(function(d){return d.player===a});if(!c)return Promise.resolve();c.Te=!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};Ci.prototype.destroy=function(){var a=this;return _.I(function(b){return _.x(b,Promise.all(a.a.map(function(c){return c.player.destroy()})),0)})};var Ni=function Zv(a){var c;return _.Eh(Zv,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.x(d,c,3):d.C(0);c++;return d.C(2)})};_.K("clpp.utils.BufferUtils",Ki);Ki.toArrayBuffer=Ui;Ki.toDataView=_.Ti;Ki.toInt32Array=_.Si;Ki.toUint32Array=Ri;Ki.toUint16Array=Qi;Ki.toUint8Array=_.Mi;Ki.equal=Oi;_.R={};_.R.Ca=new _.L("clpp.utils.strings");_.R.Jj=16E3;_.R.fromCharCode=function(a){for(var b=_.R.Jj,c="",d=0;d<a.length;d+=b)c+=String.fromCharCode.apply(null,a.subarray(d,d+b));return c};_.R.ea=function(a){if(!a)return"";a=_.Mi(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(La);return a}a=escape(_.R.fromCharCode(a));try{return decodeURIComponent(a)}catch(b){throw Error(La);}};
471
+ _.K("clpp.utils.strings.fromUtf8",_.R.ea);
472
+ _.R.Gc=function(a,b,c){if(!a)return"";var d=_.R.Ca;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=_.Mi(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(_.Mi(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 _.R.fromCharCode(c)};
473
+ _.R.$d=function(a,b){if(_.M.ia(a))return a;var c="",d=!!b,e=_.Mi(a);239===e[0]&&187===e[1]&&191===e[2]?c=_.R.ea(e):254===e[0]&&255===e[1]?c=_.R.Gc(e.subarray(2),!1):255===e[0]&&254===e[1]&&(c=_.R.Gc(e.subarray(2),!0));var f=function(g,h){return g.byteLength<=h||32<=g[h]&&126>=g[h]}.bind(null,e);_.R.Ca.debug("Unable to find byte-order-mark, making an educated guess.");0===e[0]&&0===e[2]?c=_.R.Gc(a,!1):0===e[1]&&0===e[3]?c=_.R.Gc(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.R.ea(a));if(c)return d&&(c=escape(c)),
474
+ c;throw Error("Unable to detect text encoding");};_.K("clpp.utils.strings.fromBytesAutoDetect",_.R.$d);_.R.eb=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};_.K("clpp.utils.strings.toUtf8",_.R.eb);_.R.Jf=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};
475
+ _.K("clpp.utils.strings.toUtf16",_.R.Jf);_.R.yd=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=Ri(e):2===c?f=Qi(e):f=_.Mi(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};_.K("clpp.utils.strings.toByteArray",_.R.yd);_.R.startsWith=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.K("clpp.utils.strings.startsWith",_.R.startsWith);
476
+ _.R.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};_.K("clpp.utils.strings.endsWith",_.R.endsWith);_.R.pf=function(a){return!!(a&&0<a.length)};_.R.empty=function(a){return!a||0===a.length};_.R.kp=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};_.R.np=function(a){return a.replace(/-(\w)/g,function(b,c){return c.toUpperCase()})};
477
+ _.R.Yf=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.M.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""}};_.K("clpp.utils.strings.bitrateToString",_.R.Yf);
478
+ _.R.Al=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)))};_.K("clpp.utils.strings.durationToString",_.R.Al);
479
+ _.R.Cl=function(a,b){for(var c in b)if(b[c]===a)return c;return""};_.R.km=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};_.K("clpp.utils.strings.hashCode",_.R.km);_.R.Jo=function(a){_.R.tj.innerHTML=a;return _.R.tj.textContent};_.R.tj=document.createElement("span");_.R.Qg=function(a){a=a.replace(/<[^>]+>/gi,"");a=_.R.Jo(a);return a=a.replace(/<[^>]+>/gi,"")};_.R.Ji=function(a){return a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")};_.K("clpp.utils.dom.createHTMLElement",_.Yi);Zi.prototype.set=function(a){this.h.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=aj(this,a)};Zi.prototype.get=function(){return this.a};_.bj.prototype.ha=function(a){return cj(this,a,!1)};_.bj.prototype.Hb=function(a){return cj(this,a,!0)};_.bj.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.dj.prototype.Tg=function(){this.stop();this.f();return this};_.dj.prototype.ha=function(a){var b=this;this.stop();this.a=(new _.bj(function(){b.f()})).ha(a);return this};_.dj.prototype.Hb=function(a){var b=this;this.stop();this.a=(new _.bj(function(){b.f()})).Hb(a);return this};_.dj.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.K("clpp.utils.Timer",_.dj);_.dj.prototype.stop=_.dj.prototype.stop;_.dj.prototype.tickEvery=_.dj.prototype.Hb;_.dj.prototype.tickAfter=_.dj.prototype.ha;
480
+ _.dj.prototype.tickNow=_.dj.prototype.Tg;_.K(xd,fj);fj.getInfo=_.Jj;
481
+ var rj=null,qj=null,tj=new _.L(xd),Aj="android",zj="ios",Fj="linux",Bj="osx",Cj="windows",Dj="tizen",Ej="webos",yj=_.Cg,Ij=_.Cg,Hj={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,
482
+ 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,
483
+ 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},
484
+ 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}};_.r=Nj.prototype;_.r.getMedia=function(){return this.f.get()};_.r.getContainer=function(){return this.a.get()};_.r.getSafeContainer=function(){return this.a};_.r.getId=function(){return this.l};_.r.getUniqueCssClass=function(){return this.o};_.r.getCastElement=function(){return this.h};_.r.isFullscreen=function(){return!!document.fullscreenElement};_.r.hideMediaElement=function(){var a=this.getMedia();a?_.Wi(a,md):this.g.debug("No media element available that could be hidden")};
485
+ _.r.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(md):this.g.debug("No media element available that could be shown")};_.r.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&&_.Wi(a,_.ld);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
486
+ _.r.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.r.hide=function(a){_.Wi(a,md)};_.r.show=function(a){a.classList.remove(md)};_.r.release=function(){this.j.release()};Nj.prototype.removeElementFromContainer=Nj.prototype.removeElementFromContainer;Nj.prototype.addElementToContainer=Nj.prototype.addElementToContainer;Nj.prototype.getCastElement=Nj.prototype.getCastElement;
487
+ Nj.prototype.getContainer=Nj.prototype.getContainer;Nj.prototype.getMedia=Nj.prototype.getMedia;var Kj={disableContainer:!1,webOSStartupPatch:!0,crossorigin:"anonymous",containerEl:null},Lj=1;_.r=Sj.prototype;_.r.getCurrentItem=function(){return this.f};_.r.cf=function(){return this.f?this.f.player:null};_.r.hi=function(){return Array.from(this.o.values())};_.r.je=function(){return 0<this.o.size};_.r.play=function(a){return Uj(this,a,_.gf)};_.r.load=function(a){return Uj(this,a,_.Ce)};_.r.release=function(){var a=this,b,c;return _.I(function(d){if(1==d.a)return b=Promise,c=b.all,_.x(d,bk(a),3);if(2!=d.a)return _.x(d,c.call(b,[d.f,a.f?sk(a,a.f):Promise.resolve()]),2);a.f=null;a.B=!1;_.z(d)})};
488
+ _.r.destroy=function(){var a=this;return _.I(function(b){if(1==b.a)return a.g.info("Destroy"),_.x(b,a.release(),2);if(3!=b.a)return _.x(b,a.w.destroy(),3);Fk(a);_.z(b)})};_.r.isMuted=function(){return this.G};var zk="preload",Bk=_.He,mk="primary",lk="ad";var Hk=[403,401];_.K("clpp.net.DEFAULT_FATAL_STATUS_CODES",Hk);_.K("clpp.net.makeRequest",_.Mk);_.Lk=6;_.K("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.Lk,CONTENT_STEERING:7});_.w(gl,_.yi);_.r=gl.prototype;_.r.destroy=function(){var a=this;return _.I(function(b){yl(a);a.f=[];a.w=!1;a.l.setSeekInterceptor(null);return _.x(b,a.a.destroy(),0)})};_.r.Ob=function(){return this.w};_.r.setMuted=function(a){var b=this.a;(b.G=a)?(b.a.setMuted(!0),Ek(b,!0)):(a=b.getCurrentItem(),ik(b,a,a&&a.Pb?lk:mk))};_.r.isMuted=function(){return this.a.isMuted()};_.r.isLive=function(){var a=this.a.cf();return a?a.isLive():null};_.r.Za=function(a){this.l.trigger(a)};
489
+ var el=0,ll=1,El=2,Fl=3,kl=4,Kl=5,Ll=6;_.r=Ol.prototype;_.r.load=function(){return Promise.resolve()};_.r.start=function(){return Promise.resolve()};_.r.gd=function(a,b,c){var d=a.getConfiguration();a=Object.assign({},{config:d,player:a,jb:b},d.ads.hls||{},{Un:c});this.a=new gl(a);jl(this.a)};_.r.setMuted=function(a){this.a&&this.a.setMuted(a)};_.r.isMuted=function(){return this.a?this.a.isMuted():!0};_.r.resume=function(){var a=hl(this.a);a&&a.play()};_.r.pause=function(){var a=hl(this.a);a&&a.pause()};_.r.skip=function(){};
490
+ _.r.getVolume=function(){var a=hl(this.a);return a?a.getVolume()||0:0};_.r.setVolume=function(a){var b=hl(this.a);if(b)return b.setVolume(a)};_.r.getPosition=function(){var a=hl(this.a);return a?a.getPosition():-1};_.r.ed=function(){return!this.a.Ob()};_.r.Dc=function(){return this.a.destroy()};Ol.prototype.getPosition=Ol.prototype.getPosition;Ol.prototype.setVolume=Ol.prototype.setVolume;Ol.prototype.getVolume=Ol.prototype.getVolume;Ol.prototype.skip=Ol.prototype.skip;Ol.prototype.pause=Ol.prototype.pause;
491
+ Ol.prototype.resume=Ol.prototype.resume;Rl.prototype.release=function(){this.a.release();Vl(this);this.m=null};_.Yl.prototype.destroy=function(){for(var a=[],b=_.v(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.T["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.am.prototype.resolve=function(){};_.am.prototype.reject=function(){};_.cm.prototype.toString=function(){var a=this.a.toString();return this.f?a.replace($v,""):a};var $v=/^[A-Za-z]+:/;var wm=window.fetch,tm=window.AbortController,sm=window.Headers;var xm=window.XMLHttpRequest;_.K("clpp.utils.Uint8ArrayUtils",zm);zm.toStandardBase64=_.Am;zm.concat=_.Gm;zm.equal=_.Fm;zm.toHex=_.Em;zm.fromHex=_.Dm;zm.fromBase64=_.Cm;zm.toBase64Url=_.Bm;_.Jm.prototype.abort=function(){this.a=!0;return this.B()};_.w(Lm,_.Jm);Lm.prototype.then=function(a,b){this.T=this.T.then(a,b);return this};Lm.prototype["catch"]=function(a){this.T=this.T["catch"](a);return this};Lm.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(){})};_.r=_.Om.prototype;_.r.xo=function(a){0<a?_.Lh("Rate limit set to "+a+"bps"):_.Lh("Rate limit disabled");this.l=a};_.r.release=function(){return this.o.destroy()};_.r.destroy=function(){this.w=!0;this.h=[];this.f=[];this.j=[];return this.o.destroy()};_.r.hh=function(a){this.h.push(a)};_.r.Gd=function(a){this.j.push(a)};_.r.lj=function(a){this.h=this.h.filter(function(b){return b!==a})};_.r.Df=function(a){this.j=this.j.filter(function(b){return b!==a})};
492
+ _.r.fetch=function(a){var b=void 0;1===a.type&&(b={objectType:aw});return _.Tm(this,a,b)};_.K("clpp.net.NetworkEngine",_.Om);_.Om.prototype.fetch=_.Om.prototype.fetch;_.Om.prototype.removeResponseModifier=_.Om.prototype.Df;_.Om.prototype.removeRequestModifier=_.Om.prototype.lj;_.Om.prototype.addResponseModifier=_.Om.prototype.Gd;_.Om.prototype.addRequestModifier=_.Om.prototype.hh;_.Om.prototype.setRateLimit=_.Om.prototype.xo;var Um=[];var Xm=!!(performance&&performance.mark&&performance.measure),Zm=new _.L("clpp.perf");_.K("clpp.version",_.ia);_.K("clpp.name",_.xa);var ho=null;_.K("clpp.configure",function(a){ho=a});_.Il="application/x-mpegurl";_.K("clpp.Type",{DASH:_.Gc,HLS:_.Il,SMOOTH_STREAMING:_.Lc,MP4:_.Og,MP3:"audio/mp3"});_.K("clpp.TimelineCueType",{SCTE35:_.Uf,DASH_CALLBACK:_.Qe,HLS_DATERANGE:_.qe,UNKNOWN:_.Cg});_.K("clpp.SpeedUpMode",{DECODER:_.Md,SEEK:"seek"});_.K("clpp.CodecSwitchingStrategy",{PREVENT:_.Ff,SMOOTH:_.ag});var bn=new Map,an=1,fn=2,en=3,dn=4;_.K("clpp.utils.url.queryString",_.on);var sn;_.tn=_.mg;_.iu={VIDEO:_.Mg,AUDIO:_.Nc,TEXT:_.tn,Ro:_.Ec,IMAGE:_.te,gh:_.jg};_.bw=1/15;sn={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/]};sn[_.tn]=[/^vtt$/,/^wvtt/,/^stpp/];_.cw=(new Map).set(_.yd,_.yd).set("frameRate","framerate").set("bandwidth","bitrate").set(_.ah,_.ah).set(_.oe,_.oe).set("channelsCount","channels");var aw="m";_.K("clpp.utils.PlayerConfiguration",zn);zn.create=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return _.Fn(b,{no:!1})};zn.build=_.Fn;_.K("clpp.utils.media.detectType",Hn);var Kn=new _.L("clpp.sources");_.K("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.Cb,SW_SECURE_DECODE:_.Db,HW_SECURE_CRYPTO:Sa,HW_SECURE_DECODE:Ta,HW_SECURE_ALL:Ra});_.K("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.K("clpp.drm.KeySystem",{NONE:_.Re,CLEAR_KEY:_.af,WIDEVINE:_.Fd,PLAYREADY:_.Dd,FAIRPLAY:_.Bd,PRIMETIME:_.Ad});_.Mn={};_.K("clpp.drm.registerDrmEnvironment",_.Nn);var Rn={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},An="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";var go="vod",fo="live";var lo=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",
472
493
  "cs"],["dan","da"],["deu","de"],[_.Pd,"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",
473
494
  "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",
474
495
  "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",
475
496
  "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",
476
- "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);_.Y={pc:function(a,b){return a.filter(function(c){return c.name===b})},tj:function(a){var b=/^[a-zA-Z0-9_-]+$/,c=new Set;a.forEach(function(d){var e=_.P(d,"VALUE"),f=_.P(d,_.hb),g=_.P(d,"IMPORT"),h=_.P(d,"QUERYPARAM");if(1!==[f,g,h].filter(Boolean).length||f&&null==e)throw new _.N(_.O,4,4044,{message:"Invalid tag.",text:d.toString()});d=f||g||h;if(c.has(d))throw new _.N(_.O,4,4044,'EXT-X-DEFINE redefined variable "'+d+'".');if(!b.test(d))throw new _.N(_.O,4,4044,'EXT-X-DEFINE invalid variable name "'+
477
- d+'".');c.add(d)})},kg:function(a,b){var c=Array.isArray(b)?b:[b];return a.filter(function(d){d=_.yj(d,_.Mb);return c.includes(d)})},yd:function(a,b){return a.some(function(c){return c.name===b})},cb: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 _.N(_.O,4,4024,{missingTag:b});return a},ki:function(a,b){return _.Y.cb(a,b,{required:!0})},Yl:function(a,b,c){c=void 0===c?0:c;return(a=_.Y.cb(a,b))?Number(a.value):c},sp:function(a,b,c){return a.filter(function(d){var e=
478
- d.getAttribute(_.Mb);d=d.getAttribute(_.Sa);return e.value===b&&d.value===c})},Tn:function(a){var b=_.Y.cb(a,"EXT-X-TILES");if(!b)return{me:1,Je:1,durationPerTile:null};a=_.P(b,"LAYOUT")||"1x1";b=_.P(b,_.Ja);a=_.Ij(a);return{me:a.me,Je:a.Je,durationPerTile:b?Number(b):null}},tm:function(a){return/^#(?!EXT)/m.test(a)},zm:function(a){return/^(#EXT)/.test(a)},Dm:function(a,b){Array.isArray(a)||(a=[a]);a.forEach(function(c){for(var d=_.v(_.Y.If(c)),e=d.next();!e.done;e=d.next())b(e.value,c)})},If:function(a){var b=
479
- 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)},nm:function(a){return a.some(function(b){return _.Y.yd(b.fa,"EXT-X-ENDLIST")})},Qj:function(a){return _.Y.If(a).filter(_.Y.si)},$i:function(a){if(_.Y.cb(a,"EXT-X-ENDLIST"))return _.Wb;a=_.Y.cb(a,"EXT-X-PLAYLIST-TYPE");if(!a)return"LIVE";if(a.value===_.Wb)return _.Wb;if("EVENT"===a.value)return"EVENT";
480
- throw new _.N(_.O,4,4044,"Invalid EXT-X-PLAYLIST-TYPE value: "+a.value);},Mh:function(a){a={AUDIO:_.Pc,VIDEO:_.Jg,SUBTITLES:_.qj,"CLOSED-CAPTIONS":_.qj}[a.toUpperCase()];if(!a)throw new _.N(_.O,4,4044,"EXT-X-MEDIA tag has an invalid TYPE attribute.");return a},rl:function(a){var b=_.yj(a,_.Mb).toUpperCase();if(_.Y.Mh(b)!==_.qj)return null;a=a.getAttribute("FORCED");a=!(!a||!a.value||"YES"!==a.value.toUpperCase());var c=_.ig;b===_.ta&&(c=_.dd);a&&(c=_.ke);return c},Xi:function(a,b,c){c=void 0===c?
481
- !1:c;var d=0,e=null;if(a){d=a.split("@");a=Number(d[0]);if(0>=a)throw new _.N(_.O,4,4044,"Byte range length must be positive.");if(d[1]){if(d=Number(d[1]),0>d)throw new _.N(_.O,4,4044,"Byte range start byte must not be negative.");}else{if(c)throw new _.N(_.O,4,4044,"Invalid byte range, offset is required but missing.");if(null==b)throw new _.N(_.O,4,4044,"Invalid byte range, cannot calculate offset based on previous byte ranges.");d=b+1}e=d+a-1}return{la:d,ga:e}},Zi:function(a,b){var c=_.Y.cb(a,
482
- "EXT-X-BYTERANGE");return _.Y.Xi(c?c.value:null,b)},On:function(a){a=_.Y.ki(a,"EXTINF").value.split(",");return{duration:Number(a[0]),title:a[1]||null}},aj:function(a,b){function c(f){return null==f?null:Number(f)}b=void 0===b?{}:b;var d={vh:!1,Vj:!1,Wj:null,om:null,bj:null},e=_.Y.cb(a,"EXT-X-SERVER-CONTROL",{required:b.jj});if(!e)return d;d.vh="YES"===_.P(e,"CAN-BLOCK-RELOAD");d.Vj="YES"===_.P(e,"CAN-SKIP-DATERANGES");d.Wj=c(_.P(e,"CAN-SKIP-UNTIL"));d.om=c(_.P(e,"HOLD-BACK"));d.bj=c(_.P(e,"PART-HOLD-BACK",
483
- void 0,{required:b.jj}));return d},Yi:function(a,b,c){c=void 0===c?!1:c;a=_.P(a,"BYTERANGE");return _.Y.Xi(a,b,c)},Sn:function(a){var b=_.Y.pc(a,_.La),c=_.Y.pc(a,_.Ma);a=_.Y.pc(a,"EXT-X-IMAGE-STREAM-INF");return{Pc:{qh:_.Y.kg(b,[_.ja,_.Vb]),closedCaptions:_.Y.kg(b,_.ta),Co:_.Y.kg(b,_.Db)},Ke:c,ng:a}},tl:function(a,b){var c=_.Y.Zi(a.fa,null);return new _.Bj(0,0,0,function(){return[a.a]},c.la,c.ga,0,b)},em:function(a){var b=a.U;a=b[0].startTime;b=b[b.length-1].endTime;return{rc:a,mf:b,duration:b-a}},
484
- bm:function(a){var b=Infinity,c=Infinity;_.Y.Qj(a).forEach(function(d){d=_.Y.em(d);b=Math.min(b,d.rc);c=Math.min(c,d.duration)});return{rc:b,duration:c}},si:function(a){return a.type===_.Pc||a.type===_.Jg},El:function(a){return a.filter(_.Y.si)},$l:function(a){return a.map(function(b){return _.Y.bm(b).duration}).reduce(function(b,c){return b+c},0)},Tl:function(a,b){return a&&b?_.iq(a.drmInfos,b.drmInfos)?_.hq(a.drmInfos,b.drmInfos):null:a?a.drmInfos:b?b.drmInfos:null},vl:function(a,b){return(b?b.dc():
485
- "")+" - "+(a?a.dc():"")},Nh:function(a){return(a.video?a.video.zc:"")+" - "+(a.audio?a.audio.zc:"")},Rn:function(a,b,c,d,e){if(b===_.Wb)return{delay:0,Ie:0};b=_.Y.cb(a,"EXT-X-PART-INF");if(c&&b)return e=Number(_.yj(b,"PART-TARGET")),null!=d?{delay:d,Ie:e}:{delay:_.Y.aj(a,{jj:!0}).bj,Ie:e};a=_.Y.ki(a,"EXT-X-TARGETDURATION");a=Number(a.value);e=e||a;return null!=d?{delay:d,Ie:e}:{delay:3*a,Ie:e}},bf:function(a,b){return a+":"+b},Go:function(a){var b=_.Y.bf,c=new Map;a.forEach(function(d){var e=b(d.a(),
486
- d.f());c.has(e)?(e=c.get(e),e.includes(d)||e.push(d)):c.set(e,[d])});return c},fi:function(a){return _.Dj(a||_.xg)},Kn:function(a){var b=new Map;a=_.v(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=_.P(c,_.ab);d=_.Y.fi(d);var e=_.yj(c,_.Sa);c=_.yj(c,"INSTREAM-ID");b.has(e)||b.set(e,new Map);b.get(e).set(c,d)}return b},zl:function(a){return a.filter(function(b){return"mp4a.40.34"!==b})},Un:function(a){if(!a.hasAttribute("FRAME-RATE")&&!a.hasAttribute(_.Bb))return null;var b=_.P(a,"FRAME-RATE");
487
- a=_.P(a,_.Bb);var c=_.v(a?a.split("x"):[null,null]);a=c.next().value;c=c.next().value;return{frameRate:Gj(b),width:Gj(a),height:Gj(c)}},Cm:function(a){return a.name!==_.La?!0:_.P(a,_.Mb)===_.Db},Ln:function(a,b,c,d){var e=_.P(a,"ID"),f=_.P(a,"START-DATE");if(null===e||null===f)return _.Y.g.warn("Invalid EXT-X-DATERANGE missing mandatory ID or START-DATE attribute, ignoring the EXT-X-DATERANGE tag.",a),null;b=d?c-b:-b;var g=new Date(f);c=g.getTime()/1E3+b;e={id:e,startTime:c,startDate:g,Hf:f};f=Gj(_.P(a,
488
- _.Ja));void 0!==f&&0<=f&&(e.duration=f);d=Gj(_.P(a,"PLANNED-DURATION"));void 0!==d&&0<=d&&(e.plannedDuration=d);var h=_.P(a,"CLASS");null!==h&&(e.schemeIdUri=h);var l=_.P(a,"END-DATE");l=l?new Date(l):null;null!==l&&l.getTime()>=g.getTime()&&(e.endDate=l);g=_.Y.Jn(a)||{};var m=_.P(a,"CUE");m&&(g.CUE=m.split(","));if(Cj(h)){h=_.Y.Pn(a);if(null===h)return _.Y.g.warn("Invalid interstitial attributes, ignoring the EXT-X-DATERANGE tag.",a),null;g=Object.assign(g,h)}_.L.Jc(g)&&(e.customAttributes=g);e.endTime=
489
- l?l.getTime()/1E3+b:f?c+f:d?c+d:c;e.type=_.Ci;return e},Jn:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.v(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.name.trim().startsWith("X-")&&(a[c.name]=c.value);return _.L.Jc(a)?a:null},Pn:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.v(b);for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c.name){case cc:a[cc]=c.value;break;case bc:a[bc]=c.value;break;case fc:a[fc]=Gj(c.value);break;case dc:a[dc]=Gj(c.value);break;
490
- case "X-SNAP":a["X-SNAP"]=c.value.split(",");break;case ec:a[ec]=c.value.split(",")}return a[cc]&&a[bc]||!a[cc]&&!a[bc]?(_.Y.g.warn("Invalid EXT-X-DATERANGE Interstitial attributes X-ASSET-URI, X-ASSET-LIST"),null):_.L.Jc(a)?a:null},Wh:function(a,b){if(!a)return null;var c=a.zc;return b.find(function(d){return d.dc()===c})||null},bi:function(a){return(a=_.P(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}};_.Y.g=new _.J("clpp.hls.Utils");var Pj=function rw(a){var c;return _.Dh(rw,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.x(d,c,3):d.D(0);c++;return d.D(2)})};_.I("clpp.utils.BufferUtils",Mj);Mj.toArrayBuffer=Wj;Mj.toDataView=_.Vj;Mj.toInt32Array=_.Uj;Mj.toUint32Array=Tj;Mj.toUint16Array=Sj;Mj.toUint8Array=_.Oj;Mj.equal=Qj;_.Q={};_.Q.Da=new _.J("clpp.utils.strings");_.Q.Dj=16E3;_.Q.fromCharCode=function(a){for(var b=_.Q.Dj,c="",d=0;d<a.length;d+=b)c+=String.fromCharCode.apply(null,a.subarray(d,d+b));return c};_.Q.ea=function(a){if(!a)return"";a=_.Oj(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(Oa);return a}a=escape(_.Q.fromCharCode(a));try{return decodeURIComponent(a)}catch(b){throw Error(Oa);}};
491
- _.I("clpp.utils.strings.fromUtf8",_.Q.ea);
492
- _.Q.Hc=function(a,b,c){if(!a)return"";var d=_.Q.Da;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=_.Oj(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(_.Oj(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 _.Q.fromCharCode(c)};
493
- _.Q.ee=function(a,b){if(_.L.ja(a))return a;var c="",d=!!b,e=_.Oj(a);239===e[0]&&187===e[1]&&191===e[2]?c=_.Q.ea(e):254===e[0]&&255===e[1]?c=_.Q.Hc(e.subarray(2),!1):255===e[0]&&254===e[1]&&(c=_.Q.Hc(e.subarray(2),!0));var f=function(g,h){return g.byteLength<=h||32<=g[h]&&126>=g[h]}.bind(null,e);_.Q.Da.debug("Unable to find byte-order-mark, making an educated guess.");0===e[0]&&0===e[2]?c=_.Q.Hc(a,!1):0===e[1]&&0===e[3]?c=_.Q.Hc(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.Q.ea(a));if(c)return d&&(c=escape(c)),
494
- c;throw Error("Unable to detect text encoding");};_.I("clpp.utils.strings.fromBytesAutoDetect",_.Q.ee);_.Q.hb=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};_.I("clpp.utils.strings.toUtf8",_.Q.hb);_.Q.Kf=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};
495
- _.I("clpp.utils.strings.toUtf16",_.Q.Kf);_.Q.Hd=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=Tj(e):2===c?f=Sj(e):f=_.Oj(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};_.I("clpp.utils.strings.toByteArray",_.Q.Hd);_.Q.startsWith=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.I("clpp.utils.strings.startsWith",_.Q.startsWith);
496
- _.Q.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};_.I("clpp.utils.strings.endsWith",_.Q.endsWith);_.Q.tf=function(a){return!!(a&&0<a.length)};_.Q.empty=function(a){return!a||0===a.length};_.Q.kp=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};_.Q.np=function(a){return a.replace(/-(\w)/g,function(b,c){return c.toUpperCase()})};
497
- _.Q.Zf=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.L.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""}};_.I("clpp.utils.strings.bitrateToString",_.Q.Zf);
498
- _.Q.Al=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)))};_.I("clpp.utils.strings.durationToString",_.Q.Al);
499
- _.Q.Cl=function(a,b){for(var c in b)if(b[c]===a)return c;return""};_.Q.mm=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};_.I("clpp.utils.strings.hashCode",_.Q.mm);_.Q.Jo=function(a){_.Q.oj.innerHTML=a;return _.Q.oj.textContent};_.Q.oj=document.createElement("span");_.Q.Sg=function(a){a=a.replace(/<[^>]+>/gi,"");a=_.Q.Jo(a);return a=a.replace(/<[^>]+>/gi,"")};_.Q.Ii=function(a){return a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")};_.I("clpp.utils.url.queryString",_.Zj);var dk=[403,401];_.I("clpp.net.DEFAULT_FATAL_STATUS_CODES",dk);_.I("clpp.net.makeRequest",_.ik);_.hk=6;_.I("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.hk,CONTENT_STEERING:7});_.qk.prototype.resolve=function(){};_.qk.prototype.reject=function(){};_.rk.prototype.abort=function(){this.a=!0;return this.A()};_.tk.prototype.destroy=function(){for(var a=[],b=_.v(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.T["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.r=_.Bk.prototype;_.r.xo=function(a){0<a?_.Kh("Rate limit set to "+a+"bps"):_.Kh("Rate limit disabled");this.o=a};_.r.release=function(){return this.w.destroy()};_.r.destroy=function(){this.A=!0;this.h=[];this.f=[];this.j=[];return this.w.destroy()};_.r.Wf=function(a){this.h.push(a)};_.r.gd=function(a){this.j.push(a)};_.r.Kg=function(a){this.h=this.h.filter(function(b){return b!==a})};_.r.Ce=function(a){this.j=this.j.filter(function(b){return b!==a})};_.r.fetch=function(a){return Jk(this,a)};
500
- _.I("clpp.net.NetworkEngine",_.Bk);_.Bk.prototype.fetch=_.Bk.prototype.fetch;_.Bk.prototype.removeResponseModifier=_.Bk.prototype.Ce;_.Bk.prototype.removeRequestModifier=_.Bk.prototype.Kg;_.Bk.prototype.addResponseModifier=_.Bk.prototype.gd;_.Bk.prototype.addRequestModifier=_.Bk.prototype.Wf;_.Bk.prototype.setRateLimit=_.Bk.prototype.xo;var Ok;_.Lk.prototype.ra=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&&Ki(this.roles,a.roles)&&Ki(this.accessibility,a.accessibility,Sk)};_.Lk.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.I("clpp.Track",_.Lk);
501
- _.Lk.prototype.toString=_.Lk.prototype.toString;_.I("clpp.Rendition",_.Tk);_.Qk=1;_.Nk=_.Jg;_.T=_.Pc;_.S="text";Ok=_.Ke;_.sw={VIDEO:_.Nk,AUDIO:_.T,TEXT:_.S,METADATA:Ok};_.Lk.Type=_.sw;Uk.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,_.D(n,2),_.x(n,$k(c,a),4);case 4:d=n.f;_.vh(n,3);break;case 2:return e=_.F(n),c.g.warn("Failed to fetch playlist in order metadata from HLS playlist.",e.message),n["return"](Promise.resolve({}));case 3:f={};_.D(n,5);if(!b.enableHlsVideoTrackInfo){n.D(7);break}return _.x(n,Xk(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.vh(n,6);break;case 5:h=_.F(n),c.g.warn("Failed to parse video metadata from HLS playlist.",
502
- h.message);case 6:return _.D(n,9),_.x(n,Zk(d),11);case 11:l=n.f;f.Pc=l;_.vh(n,10);break;case 9:m=_.F(n),c.g.warn("Failed to parse metadata from HLS playlist.",m.message);case 10:return n["return"](f)}})};_.gl=[];_.r=_.jl.prototype;_.r.bg=function(){return!0};_.r.Ll=function(a){return this.getVideoTracks().find(function(b){return _.L.ra(b,a,a&&Object.keys(a))})};_.r.Hl=function(a){return this.getAudioTracks().find(function(b){return _.L.ra(b,a,a&&Object.keys(a))})};_.r.Jl=function(a){return this.oa().find(function(b){return _.L.ra(b,a,a&&Object.keys(a))})};_.r.Kl=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.L.ra(b,a,a&&Object.keys(a))})};
503
- _.r.Gl=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.L.ra(b,a,a&&Object.keys(a))})};_.r.Il=function(a){return this.oa().flatMap(function(b){return b.renditions}).find(function(b){return _.L.ra(b,a,a&&Object.keys(a))})};_.I("clpp.TrackManager",_.jl);_.jl.prototype.isAbrEnabled=_.jl.prototype.xa;_.jl.prototype.addTextTrack=_.jl.prototype.addTextTrack;_.jl.prototype.findTextRendition=_.jl.prototype.Il;_.jl.prototype.findAudioRendition=_.jl.prototype.Gl;
504
- _.jl.prototype.findVideoRendition=_.jl.prototype.Kl;_.jl.prototype.findTextTrack=_.jl.prototype.Jl;_.jl.prototype.findAudioTrack=_.jl.prototype.Hl;_.jl.prototype.findVideoTrack=_.jl.prototype.Ll;_.jl.prototype.setTextRendition=_.jl.prototype.Hb;_.jl.prototype.setAudioRendition=_.jl.prototype.Gb;_.jl.prototype.setVideoRendition=_.jl.prototype.sb;_.jl.prototype.setTextTrack=_.jl.prototype.Za;_.jl.prototype.setAudioTrack=_.jl.prototype.Ia;_.jl.prototype.setVideoTrack=_.jl.prototype.Ib;
505
- _.jl.prototype.getTextTrack=_.jl.prototype.va;_.jl.prototype.getAudioTrack=_.jl.prototype.na;_.jl.prototype.getVideoTrack=_.jl.prototype.Ma;_.jl.prototype.getLoadingTextRendition=_.jl.prototype.Nb;_.jl.prototype.getLoadingAudioRendition=_.jl.prototype.Mb;_.jl.prototype.getLoadingVideoRendition=_.jl.prototype.Ab;_.jl.prototype.getTextRendition=_.jl.prototype.Ya;_.jl.prototype.getAudioRendition=_.jl.prototype.Ua;_.jl.prototype.getVideoRendition=_.jl.prototype.pa;_.jl.prototype.getTextTracks=_.jl.prototype.oa;
506
- _.jl.prototype.getAudioTracks=_.jl.prototype.getAudioTracks;_.jl.prototype.getVideoTracks=_.jl.prototype.getVideoTracks;_.jl.prototype.canSelectVideoTracks=_.jl.prototype.bg;var ll=new Map,kl=1,pl=2,ol=3,nl=4;_.tw=(new Map).set(_.zd,_.zd).set("frameRate","framerate").set("bandwidth","bitrate").set(_.Zg,_.Zg).set(_.ne,_.ne).set("channelsCount","channels");_.I(yd,ul);ul.getInfo=_.yk;
507
- var El=null,Dl=null,Gl=new _.J(yd),Nl="android",Ml="ios",Sl="linux",Ol="osx",Pl="windows",Ql="tizen",Rl="webos",Ll=_.yg,Vl=_.yg,Ul={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,
508
- 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,
509
- 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},
510
- 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}};_.w(Wl,_.jl);_.r=Wl.prototype;_.r.bg=function(){return!_.Al()};
511
- _.r.Cg=function(a,b){var c=this,d,e,f,g,h,l,m,n,p,q,t,u,y,A,B,E,C,G;return _.H(function(M){if(1==M.a){if(!b)return c.g.warn(jb),M["return"]();d=b.track;if(!d)return c.g.warn(mb),M["return"]();e=a===_.T;f=a===_.Nk;g=a===_.S;h=e||f;l=b.target;if(m=c.h.find(function(R){return jm(R,d,a)}))return c.g.warn("Track from event already exists",d,m),M["return"]();n=Rk(a,d);p=lm(d);if(g){if(d.kind===_.Ke)return M["return"]();void 0!==d.id?q=c.o[d.id]:(t=Object.values(c.o),q=t.find(function(R){return jm(n,R,a)}));
512
- n.kind&&"captions"===n.kind&&(n.mimeType=_.Hc);q&&(n.src=q.url,n.mimeType=q.mimeType)}else if(m=c.h.find(function(R){return R.type===a&&_.L.ra(R,n,["kind","label","language"])}))return m.id=d.id,p&&(c.g.debug(Ib+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"]();_.D(M,2);u=new _.Tk(n.id,n);n.renditions.push(u);c.h.push(n);y=c.m.getConfiguration().safari;return $l(c,a,y)?_.x(M,cm(c,n,y),5):am(c,a,y)?_.x(M,dm(c,n,y),5):M.D(5)}if(2!=
513
- M.a)return c.g.debug(a+" Track added",n),c.m.trigger(new _.K(_.tg)),A=gm(c,a).length,B=!(!l||!l.length),E=l&&l.length||0,C=function(){c.g.debug(Ib+a+" track active. Native track active: "+(p+". Number of tracks: ")+A,d);c.a.set(a,n)},p?C():1===A&&h&&(f?C():B&&1!==E||C()),_.vh(M,0);G=_.F(M);c.g.error("Error while converting track data",G);_.z(M)})};
514
- _.r.Eg=function(a,b){if(b){var c=b.track;if(!c)this.g.warn(mb);else if(a===_.S&&c.kind!==_.Ke){var d=this.h.find(function(e){return jm(e,c,a)});d&&(this.h.splice(this.h.indexOf(d),1),(this.a.get(a)||null)===d&&(this.a.set(a,null),nm(this)),this.g.debug(a+" Track removed, id: ",d.id))}}else this.g.warn(jb)};
515
- _.r.Dg=function(a,b){this.g.debug(a+" Track changed",b);a===_.S&&nm(this);var c=fm(this,a);if(c)for(var d={Zc:0};d.Zc<c.length;d={Zc:d.Zc},++d.Zc)if(lm(c[d.Zc])){if(d=this.h.find(function(e){return function(f){return jm(f,c[e.Zc],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===_.T?this.m.trigger(new _.K(_.Wc)):a===_.S&&this.m.trigger(new _.K(_.ng));break}};_.r.initialize=function(a){this.m=a;this.j=new Uk(a.getNetworkEngine())};
516
- _.r.load=function(){this.A=!1;var a=em(this,_.S);a&&(this.f.on(a,_.Bc,this.J),this.f.on(a,Mf,this.L),this.f.on(a,kd,this.K));if(a=em(this,_.T))this.f.on(a,_.Bc,this.G),this.f.on(a,Mf,this.I),this.f.on(a,kd,this.H);if(a=em(this,_.Nk))this.f.on(a,_.Bc,this.N),this.f.on(a,Mf,this.S),this.f.on(a,kd,this.P);this.f.one(this.m,cd,this.Uk.bind(this))};_.r.release=function(){this.A=!0;this.h=[];this.o={};this.a.clear();this.l.clear();this.f.release()};_.r.destroy=function(){this.release();this.m=null};
517
- _.r.getVideoTracks=function(){return gm(this,_.Nk)};_.r.getAudioTracks=function(){return gm(this,_.T)};_.r.oa=function(){return gm(this,_.S)};_.r.pa=function(){var a=this,b=this.a.get(_.Nk)||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};_.r.Ua=function(){return hm(this,_.T)};_.r.Ya=function(){return hm(this,_.S)};_.r.Ab=function(){return im(this,_.Nk)};
518
- _.r.Mb=function(){return im(this,_.T)};_.r.Nb=function(){return im(this,_.S)};_.r.Ma=function(){return this.a.get(_.Nk)||null};_.r.na=function(){return this.a.get(_.T)||null};_.r.va=function(){return this.a.get(_.S)||null};_.r.Ib=function(a){km(this,_.Nk,a)};_.r.Ia=function(a){km(this,_.T,a)};_.r.Za=function(a){km(this,_.S,a)};_.r.sb=function(a){km(this,_.Nk,a&&a.track)};_.r.Gb=function(a){km(this,_.T,a&&a.track)};_.r.Hb=function(a){km(this,_.S,a&&a.track)};
519
- _.r.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,Xl(b,a,c),d.D(0)):_.x(d,Yl(b,a),0)})};_.r.xa=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
520
- _.r.Uk=function(){var a=this,b,c,d;return _.H(function(e){if(1==e.a){b=a.m.getConfiguration();mm(a,_.T,b.preferredAudioLanguage);c=fm(a,_.S);if(c.some(function(f){return lm(f)}))return e.D(2);d=em(a,_.S);return _.x(e,new Promise(function(f){a.f.one(d,kd,f);(new _.Yh(f)).ha(1)}),2)}if(a.A)return e["return"]();mm(a,_.S,b.preferredTextLanguage);_.z(e)})};Wl.prototype.isAbrEnabled=Wl.prototype.xa;Wl.prototype.addTextTrack=Wl.prototype.addTextTrack;Wl.prototype.setTextRendition=Wl.prototype.Hb;
521
- Wl.prototype.setAudioRendition=Wl.prototype.Gb;Wl.prototype.setVideoRendition=Wl.prototype.sb;Wl.prototype.setTextTrack=Wl.prototype.Za;Wl.prototype.setAudioTrack=Wl.prototype.Ia;Wl.prototype.setVideoTrack=Wl.prototype.Ib;Wl.prototype.getTextTrack=Wl.prototype.va;Wl.prototype.getAudioTrack=Wl.prototype.na;Wl.prototype.getVideoTrack=Wl.prototype.Ma;Wl.prototype.getLoadingTextRendition=Wl.prototype.Nb;Wl.prototype.getLoadingAudioRendition=Wl.prototype.Mb;Wl.prototype.getLoadingVideoRendition=Wl.prototype.Ab;
522
- Wl.prototype.getTextRendition=Wl.prototype.Ya;Wl.prototype.getAudioRendition=Wl.prototype.Ua;Wl.prototype.getVideoRendition=Wl.prototype.pa;Wl.prototype.getTextTracks=Wl.prototype.oa;Wl.prototype.getAudioTracks=Wl.prototype.getAudioTracks;Wl.prototype.getVideoTracks=Wl.prototype.getVideoTracks;Wl.prototype.canSelectVideoTracks=Wl.prototype.bg;_.r=_.om.prototype;_.r.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(Nb);};_.r.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(Nb);};_.r.Zb=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)};_.r.Sa=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
523
- _.r.Mc=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};
524
- _.r.Ta=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.Sa();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};_.r.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};_.I("clpp.BufferInfo",_.om);_.om.prototype.bufferedAheadOf=_.om.prototype.Ta;
525
- _.om.prototype.isBuffered=_.om.prototype.Mc;_.om.prototype.bufferEnd=_.om.prototype.Sa;_.om.prototype.bufferStart=_.om.prototype.Zb;_.om.prototype.end=_.om.prototype.end;_.om.prototype.start=_.om.prototype.start;_.r=_.pm.prototype;_.r.addEventListener=function(a,b){this.on(a,b)};_.r.removeEventListener=function(a,b){this.off(a,b)};_.r.on=function(a,b,c){return this.ce.on(a,b,c)};_.r.one=function(a,b,c){return this.ce.one(a,b,c)};_.r.off=function(a,b){return this.ce.off(a,b)};_.r.forwardEventsTo=function(a){a&&(0<=this.$d.indexOf(a)||this.$d.push(a))};_.r.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};
526
- _.r.stopForwardingEventsTo=function(a){a&&(a=this.$d.indexOf(a),0<=a&&this.$d.splice(a,1))};_.r.trigger=function(a){this.ce.trigger(a);for(var b=_.v(this.$d),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.pm.prototype.off=_.pm.prototype.off;_.pm.prototype.one=_.pm.prototype.one;_.pm.prototype.on=_.pm.prototype.on;_.pm.prototype.removeEventListener=_.pm.prototype.removeEventListener;_.pm.prototype.addEventListener=_.pm.prototype.addEventListener;var qm=["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"];_.I("clpp.version",_.ia);_.I("clpp.name",_.xa);var At=null;_.I("clpp.configure",function(a){At=a});_.bm="application/x-mpegurl";_.I("clpp.Type",{DASH:_.Ic,HLS:_.bm,SMOOTH_STREAMING:_.Nc,MP4:_.Mg,MP3:"audio/mp3"});_.Di="scte35";_.Ci="hls-daterange";_.I("clpp.TimelineCueType",{SCTE35:_.Di,DASH_CALLBACK:_.Qe,HLS_DATERANGE:_.Ci,UNKNOWN:_.yg});_.I("clpp.SpeedUpMode",{DECODER:_.Md,SEEK:"seek"});_.I("clpp.CodecSwitchingStrategy",{PREVENT:_.Bf,SMOOTH:_.$f});_.I("clpp.utils.PlayerConfiguration",sm);sm.create=_.ym;var uw=["abort",bd,cd,de,"emptied",fe,_.he,_.ie,"interruptbegin","interruptend",_.De,_.Ee,Fe,"mozaudioavailable",_.cf,_.gf,_.sf,_.Ef,_.Jf,_.Uf,_.Vf,ag,"suspend",_.sg,"volumechange",_.Sg,_.Tg,_.Of,Yg,Xg,Vg,Wg];_.w(_.Am,_.pm);_.r=_.Am.prototype;_.r.init=function(a,b){this.configuration=this.jb=b;this.F=a;this.log.info("Initializing Player surface");var c=this.F.getMedia();this.log.info("Attaching media element listeners");for(var d=_.v(uw),e=d.next();!e.done;e=d.next())e=e.value,this.N.on(c,e,this.yj,e!==_.ie);this.Sd||(this.Sd=this.Oh());this.Sd.initialize(this);this.F.showMediaElement()};_.r.release=function(){this.P&&(this.P.destroy(),this.P=null);return Promise.resolve()};
527
- _.r.destroy=function(){this.N.release();return this.Ug.release()};_.r.canPlay=function(a,b){return _.Sh[this.namespace()].canPlay(a,b)};_.r.getTimeline=function(){return null};_.r.setupPlaylist=function(){return Promise.reject(_.ob)};_.r.appendLoad=function(){return Promise.reject(_.ob)};_.r.seekWith=function(){return Promise.reject(_.ob)};_.r.detach=function(){return Promise.resolve()};_.r.setSeekInterceptor=function(){};_.r.setPlaybackSessionId=function(){};_.r.getBandwidthEstimate=function(){return null};
528
- _.r.play=function(){var a=this;if(!this.ba)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.F.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||""};rm(d)?(a.trigger(new _.K(_.Xc)),a.log.warn(_.oa)):d.name===pb&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
529
- _.r.pause=function(){var a=this;return this.ba?new Promise(function(b,c){var d=a.getState();if(d!==_.Bq&&d!==_.Dq&&d!==_.Kq&&d!==_.Jq)c(new _.N(_.O,7,3201,"The player state does not allow pause."));else if(a.F.getMedia().pause(),a.getState()===_.Kq)a.N.one(a,_.cg,function(){b()});else b()}):Promise.reject(new _.N(_.O,7,3201,"No sources specified yet. You need to load content before calling pause."))};_.r.isPaused=function(){return this.F.getMedia().paused};_.r.isEnded=function(){return this.F.getMedia().ended};
530
- _.r.getConfiguration=function(){return this.configuration};_.r.setDrmCustomDataModifier=function(a){this.td=a};_.r.setCdnErrorCallback=function(a){this.dd=a};_.r.vd=function(){return this.td};_.r.getSurface=function(){return this.F};_.r.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.om(b?b.buffered:void 0,a)};_.r.getPosition=function(){return this.getMediaPosition()};
531
- _.r.getMediaPosition=function(){var a=this.F.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
532
- _.r.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.F.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,_.Ee,m)}function l(n){var p=b.getMediaPosition(),
533
- q=.1>=Math.abs(a-p),t=.25<p-a,u=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,y=n.type===_.Uf,A=n.type===_.Ef,B=n.type===_.sg,E=A&&u;t=y||q&&E||B&&t;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",t,"Current Time:",p,"Target Time:",a,"Native Event:",y,"Time reached",q,"Timeupdate:",B,"Progress:",A,"ReadyState:",u,"Progress Ready:",E);t?(b.Yg=!1,b.ve=!1,b.N.off(d,_.Uf,l),b.N.off(d,_.sg,l),b.N.off(d,_.Ef,l),b.Ui(),b.trigger(new _.K(_.Cg)),f()):A&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
534
- d.currentTime=a)}function m(){b.trigger(new _.K(_.Dg));b.N.on(d,_.Uf,l);b.N.on(d,_.sg,l);b.N.on(d,_.Ef,l);b.log.info("Seeking to "+a+". Delta "+e);b.Yg=!0;b.ve=!0;d.currentTime=a}b.getState()===_.wq?(b.log.debug("Player is in IDLE state. Postpone seek."),b.N.one(b,_.cg,function(){switch(b.getState()){case _.Bq:case _.Kq:case _.Jq:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
535
- _.r.getVolume=function(){var a=this.F.getMedia();if(a)return a.volume;this.log.warn("No media element available, can not report volume!");return null};_.r.setVolume=function(a){var b=this.F.getMedia();b?_.L.ya(a)?0>a||1<a?this.log.warn(va+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(va+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.r.isMuted=function(){return this.F.getMedia().muted};
536
- _.r.setMuted=function(a){var b=this.F.getMedia();typeof a===_.Zc&&(b.muted=a)};_.r.getDuration=function(){return this.getMediaDuration()};_.r.getMediaDuration=function(){return this.ba?this.F.getMedia().duration:-1};_.r.getTrackManager=function(){return this.Sd};_.r.getPlaybackRate=function(){var a=this.F.getMedia();return a&&a.playbackRate||1};_.r.setPlaybackRate=function(a){var b=this.F.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.r.setSourceIndex=function(a){this.lf=a};_.r.getSourceIndex=function(){return this.lf};
537
- _.r.getLoadedSource=function(){return this.ba&&-1!==this.lf?this.ba[this.lf]:null};_.r.getPeriods=function(){return[]};_.r.getNetworkEngine=function(){return this.Ug};_.r.setNetworkEngine=function(a){this.Ug=a};_.r.setCmsdManager=function(a){this.Lg=a};_.r.getTextDisplayer=function(){return this.P};_.r.getTimelineCues=function(){return[]};_.r.getCueTimeline=function(){return null};_.r.resetAbr=function(){};
538
- _.r.fo=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===_.Ef)this.ih.debug(d);else{var e="";switch(a.type){case _.Jf:e="Rate: "+this.getPlaybackRate();break;case de:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.gf:case _.sf:case "suspend":case _.Sg:case ag:case _.Vf:case _.Uf:case _.sg:case _.Ef:case bd:case cd:b=
539
- this.getBufferInfo().Ta(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.Of:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.ih.info(d)}a.type!==_.ie&&this.trigger(new _.K(a.type,{detail:a}))};_.r.Ui=function(){};var Dm;Dm=new _.J("clpp.Components");_.Bm=new Map;_.I("clpp.install",function(a){Lm(a)});_.I("clpp.uninstall",function(a){Mm(a)});_.I("clpp.utils.Uint8ArrayUtils",Nm);Nm.toStandardBase64=_.Om;Nm.concat=_.Um;Nm.equal=_.Tm;Nm.toHex=_.Sm;Nm.fromHex=_.Rm;Nm.fromBase64=_.Qm;Nm.toBase64Url=_.Pm;Vm.prototype.release=function(){this.a=this.f=null};_.I("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.Eb,SW_SECURE_DECODE:_.Fb,HW_SECURE_CRYPTO:Ua,HW_SECURE_DECODE:Va,HW_SECURE_ALL:Ta});_.I("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.I("clpp.drm.KeySystem",{NONE:_.Re,CLEAR_KEY:_.af,WIDEVINE:_.Gd,PLAYREADY:_.Ed,FAIRPLAY:_.Cd,PRIMETIME:_.Bd});_.Ym={};_.I("clpp.drm.registerDrmEnvironment",_.Zm);var bn={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,
497
+ "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var yo,qo,ro;no.prototype.release=function(){this.a=null;this.f.Df(this.h)};_.dw="maxSuggestedBitrateKbps";yo={du:"duress",etp:_.ke,mb:_.dw,rd:"responseDelay",rtt:"roundTripTime"};qo={at:"availabilityTime",br:"encodedBitrateKbps",ht:"heldTime",n:"intermediaryIdentifier",nor:"nextObjectResponse",nrr:"nextRangeResponse",d:"objectDuration",ot:"objectType",su:"startup",st:"streamType",sf:"streamingFormat",v:Jg};ro=new _.L("clpp.net.CmsdManager");_.w(S,_.yi);_.r=S.prototype;_.r.on=function(a,b,c){return _.yi.prototype.on.call(this,a,b,c)};_.r.one=function(a,b,c){return _.yi.prototype.one.call(this,a,b,c)};_.r.off=function(a,b){return _.yi.prototype.off.call(this,a,b)};_.r.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.Q(_.je,{detail:a}))};_.r.de=function(a){a=this.L[a];void 0===a&&(a=null);return a};_.r.getSurface=function(){return this.j};_.r.getConfiguration=function(){return _.M.ib(this.f)};
498
+ _.r.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.r.detach=function(){return this.a?this.a.detach():Promise.resolve()};_.r.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=Go(this);return this.l["finally"](function(){Qo(a);a.g.debug("Player released");a.l=null})};
499
+ _.r.destroy=function(){var a=this;if(this.U)return this.g.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.U=!0;return this.release().then(function(){a.g.debug(Ia);a.trigger(new _.Q("destroying"));return a.Qc(_.We)}).then(function(){a.a&&a.a.stopForwardingEventsTo(a);a.Yd.clear();a.gb.release();if(a.a)return a.a.destroy()}).then(function(){return a.J.destroy()}).then(function(){li(a);a.a=null;a.A=null;a.trigger(new _.Q("destroyed"))})};
500
+ _.r.load=function(a){var b=this,c,d,e;return _.I(function(f){switch(f.a){case 1:_.F(f,2);_.Ym(pf);b.P=_.pa;b.ka=!0;c=_.Jn(a);d=Gn(a)?a:{};if(d.license)throw new _.N(_.O,7,7100,"License cannot be passed into the load method.");return _.x(f,_.Oo(b,d,c),4);case 4:return _.x(f,_.Po(b),5);case 5:return _.x(f,_.Jo(b),6);case 6:_.Ym(of);_.$m("player.load",pf,of);_.G(f,0);break;case 2:e=_.H(f);Qo(b);if(b.l)throw b.g.info(ab),new _.N(_.O,7,7E3);throw e;}})};
501
+ _.r.preload=function(a){var b=this,c;return _.I(function(d){if(1==d.a)return _.x(d,_.Oo(b,a),2);if(!b.a)return b.g.warn(sb),d["return"]();c=b.a;return c.preload?_.x(d,c.preload(b.f),0):(b.g.warn(xb),d["return"]())})};_.r.Qc=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!this.ka)return Promise.resolve();var e=this;d=this.ja.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.jh(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};
502
+ _.r.use=function(a){(a=mi(a))&&a.playerConstructed(this)};_.r.remove=function(a){return(this.getState()<=_.Wt||this.Z)&&null!==gi(a)?(ni(a),this.da=!0):!1};_.r.play=function(){return this.a?!this.h||this.h instanceof Ol||this.a.namespace()===_.qd?this.a.play():this.h.start(this.a):Promise.reject("No player initialized. You need to load content before calling play.")};_.r.pause=function(){return this.a?this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};
503
+ _.r.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.r.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.bi};_.r.getState=function(){return this.a?this.a.getState():_.Wt};_.r.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.r.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.r.isPaused=function(){return this.a&&this.a.isPaused()||!1};_.r.getPosition=function(){return this.a?this.a.getPosition():0};
504
+ _.r.seek=function(a){return this.getState()===_.zo?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};_.r.getPresentationStartTime=function(){return this.a?this.a.getPresentationStartTime():null};_.r.getSeekRange=function(){return this.a?this.a.getSeekRange():{start:0,end:0}};_.r.Hc=function(){var a=this.a;return a&&a.Hc?a.Hc():null};_.r.getVolume=function(){return this.a?this.a.getVolume():null};_.r.setVolume=function(a){this.a&&this.a.setVolume(a)};
505
+ _.r.getDuration=function(){return this.a?this.a.getDuration():-1};_.r.getAdsManager=function(){return this.h};_.r.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};_.r.getPlaybackRate=function(){return this.a?this.a.getPlaybackRate():1};_.r.setPlaybackRate=function(a,b){this.a&&this.a.setPlaybackRate(a,b)};_.r.isMuted=function(){return this.h&&this.h instanceof Ol?this.h.isMuted():this.a&&this.a.isMuted()||!1};
506
+ _.r.setMuted=function(a){this.a&&this.a.setMuted(a);this.h&&this.h instanceof Ol&&this.h.setMuted(a)};_.r.getNetworkEngine=function(){return this.J};_.r.setNetworkEngine=function(a){this.J=a};_.r.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};_.r.isLive=function(){return!!this.a&&this.a.isLive()};_.r.getStats=function(){return this.a?this.a.getStats():null};_.r.ni=function(){return Object.freeze(this.Ia)};_.r.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};
507
+ _.r.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.r.getCueTimeline=function(){return this.a?this.a.getCueTimeline():null};_.r.resetAbr=function(){this.a&&this.a.resetAbr()};_.r.setDrmCustomDataModifier=function(a){this.md=a;Mo(this)};_.r.setCdnErrorCallback=function(a){this.O=a;this.a&&this.a.setCdnErrorCallback(this.O)};_.K("clpp.Player",S);S.registerPlugin=_.To;S.prototype.setCdnErrorCallback=S.prototype.setCdnErrorCallback;S.prototype.setDrmCustomDataModifier=S.prototype.setDrmCustomDataModifier;
508
+ S.prototype.resetAbr=S.prototype.resetAbr;S.prototype.getTimelineCues=S.prototype.getTimelineCues;S.prototype.getLoadedSource=S.prototype.getLoadedSource;S.prototype.getSources=S.prototype.ni;S.prototype.getStats=S.prototype.getStats;S.prototype.isLive=S.prototype.isLive;S.prototype.getTextDisplayer=S.prototype.getTextDisplayer;S.prototype.setNetworkEngine=S.prototype.setNetworkEngine;S.prototype.getNetworkEngine=S.prototype.getNetworkEngine;S.prototype.setMuted=S.prototype.setMuted;
509
+ S.prototype.isMuted=S.prototype.isMuted;S.prototype.setPlaybackRate=S.prototype.setPlaybackRate;S.prototype.getPlaybackRate=S.prototype.getPlaybackRate;S.prototype.namespace=S.prototype.namespace;S.prototype.getAdsManager=S.prototype.getAdsManager;S.prototype.getDuration=S.prototype.getDuration;S.prototype.setVolume=S.prototype.setVolume;S.prototype.getVolume=S.prototype.getVolume;S.prototype.getTimelineOffset=S.prototype.Hc;S.prototype.getSeekRange=S.prototype.getSeekRange;
510
+ S.prototype.getPresentationStartTime=S.prototype.getPresentationStartTime;S.prototype.seek=S.prototype.seek;S.prototype.getPosition=S.prototype.getPosition;S.prototype.isPaused=S.prototype.isPaused;S.prototype.isEnded=S.prototype.isEnded;S.prototype.getState=S.prototype.getState;S.prototype.getBufferInfo=S.prototype.getBufferInfo;S.prototype.getTrackManager=S.prototype.getTrackManager;S.prototype.pause=S.prototype.pause;S.prototype.play=S.prototype.play;S.prototype.remove=S.prototype.remove;
511
+ S.prototype.use=S.prototype.use;S.prototype.load=S.prototype.load;S.prototype.destroy=S.prototype.destroy;S.prototype.release=S.prototype.release;S.prototype.getDrmInfo=S.prototype.getDrmInfo;S.prototype.getConfiguration=S.prototype.getConfiguration;S.prototype.getSurface=S.prototype.getSurface;S.prototype.getPlugin=S.prototype.de;S.prototype.off=S.prototype.off;S.prototype.one=S.prototype.one;S.prototype.on=S.prototype.on;_.Wt=0;_.zo=6;
512
+ _.bu={IDLE:_.Wt,PREPARING:1,BUFFERING:2,PLAYING:3,PAUSED:4,ENDED:5,ERROR:_.zo,UNSET:7};S.State=_.bu;var Co=[];_.r=Uo.prototype;_.r.load=function(a){var b=this;return _.I(function(c){return b.Mc?_.x(c,Yo(b,function(d){return _.I(function(e){return _.x(e,d.load(a),0)})}),0):(b.Ca.warn("No main player, cannot load."),c["return"]())})};_.r.uo=function(a){this.j=a;this.Ca.info("Looping set to",a)};_.r.Qj=function(a){this.f.push(a)};
513
+ _.r.Pj=function(a){if(this.Mc)this.Ca.warn("Main player already set.");else{this.Mc=a;var b=this.Km.bind(this),c=this.Lm.bind(this),d=this.dk.bind(this);a.on(_.dg,b);a.on(_.ug,c);a.on(_.ie,d);this.h.push(function(){a.off(_.dg,b);a.off(_.ug,c);a.on(_.ie,d)})}};_.r.clear=function(){this.Mc=null;this.f=[];this.h.forEach(function(a){return a()});this.h=[]};
514
+ _.r.dk=function(){var a=this;return _.I(function(b){if(!a.j)return b.C(0);a.Ca.info("Looping playback.");return _.x(b,Yo(a,function(c){return _.I(function(d){return 1==d.a?_.x(d,c.seek(0),2):_.x(d,c.play(),0)})}),0)})};
515
+ _.r.Km=function(a){var b=this;this.a||(a=a.detail.currentState,3===a?(this.Ca.info("Mirroring playing."),Xo(this,function(c){return _.I(function(d){return _.x(d,c.play(),0)})})):[4,2,_.zo].includes(a)&&(this.Ca.info("Mirroring paused/buffering/error."),Xo(this,function(c){var d,e;return _.I(function(f){if(1==f.a)return d=Math.round(b.Mc.getPosition())-.1,_.x(f,c.seek(d),2);if(3!=f.a)return _.x(f,ej(.2),3);e=c.getState();return 3!==e&&2!==e?f.C(0):_.x(f,c.pause(),0)})})))};
516
+ _.r.Lm=function(){var a=this;this.a||Xo(this,function(b){var c,d,e,f,g,h,l;return _.I(function(m){switch(m.a){case 1:if(!b.isPaused()){m.C(2);break}return _.x(m,b.play(),2);case 2:c=a.Mc.getPosition();d=b.getPosition();e=c-d;f=Math.abs(e);g=b.getPlaybackRate();h=b.getState();if(3!==h||.05>=f)return m["return"]();var n=Math.abs(e);l=Math.min(Math.max(1+(.05>=n?0:n/(1>n?6:3))*Math.sign(e),.2),5);if(!(5<=f)){m.C(4);break}b.setPlaybackRate(1);return _.x(m,b.seek(c),5);case 5:return m["return"]();case 4:if(g===
517
+ l)return 1!==l&&a.Ca.info("Delta "+e.toFixed(1)+" s."),m["return"]();1===l?a.Ca.info("Secondary caught up."):1>l?a.Ca.info("Secondary slowing down to catch up. Rate: "+(l.toFixed(1)+", delta: "+e.toFixed(1)+" s")):1<l&&a.Ca.info("Secondary speeding up to catch up. Rate: "+(l.toFixed(1)+", delta: "+e.toFixed(1)+" s"));b.setPlaybackRate(l);_.z(m)}})})};_.K(pd,Uo);Uo.prototype.clear=Uo.prototype.clear;Uo.prototype.addMainPlayer=Uo.prototype.Pj;Uo.prototype.addSecondaryPlayer=Uo.prototype.Qj;
518
+ Uo.prototype.setLoop=Uo.prototype.uo;Uo.prototype.load=Uo.prototype.load;Zo.prototype.release=function(){this.j.release();this.a=new Set;this.f.clear();null!=this.h&&(clearInterval(this.h),this.h=null)};Zo.prototype.destroy=function(){var a=this;return _.I(function(b){a.release();_.z(b)})};Zo.prototype.getTimelineCues=function(){return Array.from(this.a.values()).sort(function(a,b){return a.startTime-b.startTime})};_.wp.prototype.ra=function(a){return this.payload===a.payload&&this.startTime===a.startTime&&this.endTime===a.endTime&&this.payloadType===a.payloadType};_.K("clpp.text.Cue",_.wp);_.wp.positionAlign={LEFT:_.ze,RIGHT:_.Ae,CENTER:_.gd,AUTO:"auto"};_.qp=_.mg;_.wp.payloadType={TEXT:_.qp,VTT_XML:_.Tg,TTML_XML:_.yg};_.rp=_.gd;_.ew={LEFT:_.we,RIGHT:_.Pf,CENTER:_.rp,START:_.cg,END:_.he};_.wp.textAlign=_.ew;var vp="ltr";_.wp.direction={HORIZONTAL_LEFT_TO_RIGHT:vp,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.sp="horizontal-tb";
519
+ _.wp.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.sp,VERTICAL_LEFT_TO_RIGHT:_.Kg,VERTICAL_RIGHT_TO_LEFT:_.Lg};_.tp=0;_.wp.lineInterpretation={LINE_NUMBER:_.tp,PERCENTAGE:1};_.up=_.cg;_.fw={CENTER:_.gd,START:_.up,END:_.he};_.wp.lineAlign=_.fw;_.K("clpp.text.CueRegion",_.zp);_.xp=1;_.zp.units={PX:0,PERCENTAGE:_.xp,LINES:2};var yp="";_.zp.scrollMode={NONE:yp,UP:"up"};_.zp.displayAlign={BEFORE:"flex-end",CENTER:_.gd,AFTER:"flex-start"};
520
+ _.zp.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.zd,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};Ap.prototype.destroy=function(){this.a.release();this.j=!1;this.l=this.a=this.h=this.f=null;return Promise.resolve()};Ap.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,_.zc,function(c){return Bp(b,c)}),this.a.on(this.f,jd,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.Xf&&(e.mode=_.pe)}}))};
521
+ Ap.prototype.o=function(a){var b=new _.wp(a.startTime,a.endTime,a.text,_.Tg);if(_.M.ia(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Kg;break;case "rl":b.writingMode=_.Lg}_.M.xa(a.size)&&(b.size=a.size);if(_.M.ia(a.align))switch(a.align){case _.we:case _.cg:b.textAlign=_.cg;break;case _.gd:b.textAlign=_.rp;break;case _.Pf:case _.he:b.textAlign=_.he}_.M.xa(a.position)&&(b.position=a.position);if(_.M.ia(a.positionAlign))switch(a.positionAlign){case _.ze:b.positionAlign=_.ze;break;case _.gd:b.positionAlign=
522
+ _.gd;break;case _.Ae:b.positionAlign=_.Ae}_.M.xa(a.line)&&(b.line=a.line);if(_.M.ia(a.lineAlign))switch(a.lineAlign){case _.cg:b.lineAlign=_.up;break;case _.gd:b.lineAlign=_.gd;break;case _.he:b.lineAlign=_.he}_.M.wi(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.tp:1);return b};var Cp={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av0?1/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.Ep={text:{mp4:_.Hc,m4s:_.Hc,m4i:_.Hc,cmft:_.Hc,vtt:_.ng,ttml:_.Kc},video:{mp4:_.Og,m4s:_.Og,m4f:_.Og,m4i:_.Og,m4v:_.Og,cmfv:_.Og,ts:_.Ng},audio:{mp4:_.Rc,m4s:_.Rc,m4f:_.Rc,m4i:_.Rc,m4a:_.Rc,cmfa:_.Rc,ts:_.Ng,aac:_.Oc,ec3:_.Qc,ac3:_.Pc},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.Gp.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};_.Gp.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name===a});return b.length?b[0]:null};_.Gp.prototype.hasAttribute=function(a){return null!=this.getAttribute(a)};_.Jp.prototype.getPosition=function(){return this.position};_.Jp.prototype.fe=function(){return this.ga?this.ga-this.la+1:null};_.Jp.prototype.f=_.hh(0);_.w(_.Kp,_.Jp);Mp.prototype.release=function(){this.a=this.f=null};var Pp={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,
540
523
  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,
541
524
  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,
542
525
  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,
@@ -550,104 +533,121 @@ this.getBufferInfo().Ta(c);e="State "+this.getSurface().getMedia().readyState+"
550
533
  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,
551
534
  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,
552
535
  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,
553
- 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]};_.dn.prototype.fb=function(a,b){this.f[a]=b};_.I("clpp.drm.DrmEnvironment",_.dn);_.dn.prototype.setDrmSystem=_.dn.prototype.fb;_.en.prototype.getPosition=function(){return this.a};_.en.prototype.Va=function(){return this.f.byteLength};_.en.prototype.seek=function(a){(0>a||a>=this.f.byteLength)&&_.fn();this.a=a};_.hn.prototype.getPosition=function(){return this.a};_.hn.prototype.Va=function(){return this.f.byteLength};_.hn.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.kn();this.a+=a};_.hn.prototype.seek=function(a){if(0>a||a>=this.f.byteLength)throw _.kn();this.a=a};_.I("clpp.utils.dataview.DataViewReader",_.hn);_.r=_.sn.prototype;_.r.M=function(a,b){var c=wn(a);this.h[c]=vw;this.f[c]=b;return this};_.r.aa=function(a,b){var c=wn(a);this.h[c]=ww;this.f[c]=b;return this};_.r.stop=function(){this.a=!0};_.r.parse=function(a,b){var c=_.Oj(a);c=new _.hn(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.jn(c)&&!this.a;)this.Bf(0,c,b)};
554
- _.r.Bf=function(a,b,c){var d=b.getPosition(),e=_.nn(b),f=_.nn(b),g=!1;this.g.debug("Parsing MP4 box",_.xn(f));switch(e){case 0:e=b.Va()-d;break;case 1:e=_.pn(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.h[f]===ww&&(m=_.nn(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.Va()&&(n=b.Va());n-=b.getPosition();b=0<n?_.rn(b,n):new Uint8Array(0);b=new _.hn(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+
555
- a,headerSize:f,has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.Va()-b.getPosition()),b.skip(a)};_.I("clpp.utils.Mp4Parser",_.sn);_.sn.typeToString=_.xn;_.sn.allData=_.vn;_.sn.sampleDescription=_.un;_.sn.children=_.tn;_.sn.prototype.parseNext=_.sn.prototype.Bf;_.sn.prototype.parse=_.sn.prototype.parse;_.sn.prototype.stop=_.sn.prototype.stop;_.sn.prototype.fullBox=_.sn.prototype.aa;_.sn.prototype.box=_.sn.prototype.M;_.sn.headerSize=_.yn;var vw=0,ww=1;_.I("clpp.utils.FairplayUtils",zn);zn.parseFairPlayResponse=_.Fn;zn.formatFairPlayRequest=_.En;zn.createFairplayPayload=Dn;zn.extractContentId=_.Bn;zn.extractExtXKeyUri=An;var Sn=new _.J("clpp.drm.DrmToday"),Hn="PRODUCTION",In="STAGING",Jn="DEMO",Kn="TEST",xw={PRODUCTION:Hn,STAGING:In,DEMO:Jn,TEST:Kn};_.I("clpp.drm.DrmToday.Environment",xw);_.I("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
556
- for(var Mn="/license-proxy-widevine/cenc/",On="/license-proxy-headerauth/drmtoday/RightsManager.asmx",Pn="/license-server-fairplay/",ao={"00000":"Success","01000":"General Internal Error","02000":"General Request Error","03000":"General Request Authentication Error",10001:"Bad Request",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",
557
- 42E3:"General Playready error",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"},yw={video:[Ta,Va,Ua,_.Fb,_.Eb],audio:[Ta,
558
- Va,Ua,_.Fb,_.Eb]},zw={video:["3000","2000","150"],audio:["2000","150"]},Aw=_.v(Object.keys(xw)),Bw=Aw.next();!Bw.done;Bw=Aw.next()){var Gn=Bw.value,Cw=Ha;Gn!==Hn&&(Cw+="_"+Gn);var Dw=new _.dn(Cw),Ew=null;switch(Gn){case Hn:case In:case Jn:Ew=cn("V2");break;case Kn:Ew=null}Dw.fb(_.Gd,{licenseUrl:Qn(_.Gd),videoRobustness:yw.video,audioRobustness:yw.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:Ew,modifiers:{licenseRequest:_.Vn,licenseResponse:_.$n}});Dw.fb(_.Cd,
559
- {licenseUrl:Qn(_.Cd),certificateUrl:Ln()+"/license-server-fairplay/cert/",modifiers:{licenseRequest:_.Xn,licenseResponse:_.Yn,extractContentId:_.Tn,certificateRequest:_.Zn}});Dw.fb(_.Ed,{licenseUrl:Qn(_.Ed),videoRobustness:zw.video,audioRobustness:zw.audio,modifiers:{licenseRequest:Wn}});_.Zm(Dw)};_.eo.prototype.value=function(){void 0===this.a&&(this.a=this.f());return this.a};_.r=fo.prototype;_.r.getStatus=function(){return this.a};_.r.forEach=function(a){this.a&&a(this.a,Fw.value())};_.r.get=function(a){if(this.has(a))return this.a};_.r.has=function(a){var b=Fw.value();return this.a&&Qj(a,b)?!0:!1};_.r.entries=function(){};_.r.keys=function(){};_.r.values=function(){};var Fw=new _.eo(function(){return Wj(new Uint8Array([0]))});var ho=new _.eo(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.Ee],[HTMLMediaElement.HAVE_CURRENT_DATA,_.De],[HTMLMediaElement.HAVE_FUTURE_DATA,bd],[HTMLMediaElement.HAVE_ENOUGH_DATA,cd]])});_.r=jo.prototype;_.r.$e=function(a){this.f=a};_.r.Vd=function(a){var b=this.a;b&&b!==a&&mo(b,null);return(this.a=a)?mo(a,this.f):Promise.resolve()};_.r.hf=function(){return this.a};_.r.$b=function(a,b){_.Ph("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new ko(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.r.Ud=function(){return Yp};ko.prototype.createMediaKeys=function(){var a=new lo(this.keySystem);return Promise.resolve(a)};
560
- ko.prototype.getConfiguration=function(){_.Ph("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};lo.prototype.createSession=function(a){a=void 0===a?kg:a;this.g.debug("Creating Apple MediaKeys Session");if(a!==kg)throw new TypeError("Session type "+a+ba);return new no(this.h,"__session_"+this.j++)};lo.prototype.setServerCertificate=function(){this.g.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.w(no,_.pm);_.r=no.prototype;
561
- _.r.generateRequest=function(a,b){var c=this;if(this.l)return Promise.reject(Hb);this.g.debug("generateRequest");this.h=new _.qk;try{var d=this.o.createSession(_.Mg,_.Oj(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,Xg,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 _.K(_.Je,{messageType:void 0===f||f===dg?ye:xe,message:Wj(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,Vg,function(e){c.g.debug("onWebkitKeyAdded_",
562
- e);c.f&&(oo(c,"usable"),c.f.resolve(),c.f=null)});this.j.on(d,Wg,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===dg)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),
563
- c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:oo(c,"output-not-allowed");break;default:oo(c,_.ue)}});oo(this,dg)}catch(e){this.h.reject(e)}return this.h};_.r.load=function(){this.g.debug(_.Ce);return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.r.update=function(a){if(this.l)return Promise.reject(Hb);this.g.debug(zg);this.f=new _.qk;try{this.a.update(_.Oj(a))}catch(b){this.f.reject(b)}return this.f};
564
- _.r.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(),_.li(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.r.remove=function(){this.g.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};po.prototype.a=function(){return Yp};po.prototype.f=function(){return!!window.WebKitMediaKeys};
565
- po.prototype.create=function(){return new jo};_.r=qo.prototype;_.r.$e=function(a){this.a=a};_.r.Vd=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(gb)};_.r.hf=function(){return this.a&&this.a.mediaKeys};
566
- _.r.$b=function(a,b){var c=this;this.g.info("Requesting media key system access for",a,b.map(function(d){return Object.assign({},d,{drmInfos:d.drmInfos.map(function(){return"_anonymous_"})})}));return navigator.requestMediaKeySystemAccess(a,b)["catch"](function(d){c.g.info("Failed to request media key system access for "+(a+"."),d);return Promise.reject(d)})};_.r.Ud=function(){return Cp};ro.prototype.a=function(){return Cp};
567
- ro.prototype.f=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};ro.prototype.create=function(){return new qo};_.r=so.prototype;_.r.$e=function(a){this.a=a};_.r.Vd=function(a){_.Ph("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(gb);var b=this.f;b&&b!==a&&xo(b,null);(this.f=a)&&xo(a,this.a);return Promise.resolve()};_.r.hf=function(){return this.f};_.r.$b=function(a,b){_.Ph("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.Jg);c=d.length?d[0]:document.createElement(_.Jg)}var e=new to(this.h,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
568
- _.r.Ud=function(){return Gw};to.prototype.createMediaKeys=function(){return Promise.resolve(new uo(this.h,this.a))};to.prototype.getConfiguration=function(){return this.f};uo.prototype.createSession=function(a){a=void 0===a?kg:a;if(a!==kg&&a!==_.ef)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=Za,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new yo(this.h,this.a,this.o,a);this.j.push(a);return a};
569
- uo.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.w(yo,_.pm);_.r=yo.prototype;_.r.ready=function(){_.Ph("WebkitEmeManager.MediaKeySession.ready");wo(this,"usable");this.a&&this.a.resolve();this.a=null};_.r.generateRequest=function(a,b){_.Ph("WebkitEmeManager.MediaKeySession.generateRequest");return Ao(this,b,null)};_.r.load=function(a){_.Ph(Yb);return this.l===_.ef?Ao(this,null,a):Promise.reject(Error(nb))};_.r.update=function(a){_.Ph(Yb);var b=new _.qk;Bo(this,b,a);return b};
570
- _.r.close=function(){_.Ph("WebkitEmeManager.MediaKeySession.close");if(this.l!==_.ef){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=zo(this,"cancelKeyRequest");try{this.j[a](this.h,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.r.remove=function(){_.Ph("WebkitEmeManager.MediaKeySession.remove");return this.l!==_.ef?Promise.reject(Error(nb)):this.close()};Co.prototype.a=function(){return Gw};
571
- Co.prototype.f=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};Co.prototype.create=function(){return new so};_.r=Do.prototype;_.r.$e=function(){};_.r.Vd=function(a){_.Ph("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.r.hf=function(){return null};_.r.$b=function(){_.Ph("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.r.Ud=function(){return Hw};Eo.prototype.a=function(){return Hw};Eo.prototype.f=function(){return!0};Eo.prototype.create=function(){return new Do};_.I(vd,Fo);var Ho=new _.J(vd),Go=[];Go=[new ro,new po,new Co,new Eo].filter(function(a){return a.f()});var Cp="STANDARD",Yp="APPLE",Gw="WEBKIT",Hw="NOP";Fo.Apis={STANDARD:Cp,APPLE:Yp,WEBKIT:Gw,NOP:Hw};_.r=_.Jo.prototype;_.r.Ka=function(a,b){var c=this.$(a,b);return 1!==c.length?null:c[0]};_.r.ac=_.fh(2);_.r.$=function(a,b){return Array.from(a.childNodes).filter(function(c){return c instanceof Element&&c.tagName===b})};_.r.Fc=_.fh(4);_.r.getAttributeNS=function(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null};_.r.sa=function(a){return Array.from(a.childNodes).every(function(b){return b.nodeType===Node.TEXT_NODE||b.nodeType===Node.CDATA_SECTION_NODE})?a.textContent.trim():null};
572
- _.r.W=_.fh(6);_.r.Be=function(a,b){var c=new DOMParser,d=null;try{d=c.parseFromString(a,_.mg)}catch(e){}if(!d)return null;c=d.documentElement;return b&&c.tagName!==b||0<d.getElementsByTagName("parsererror").length?null:c};_.r.ef=_.fh(8);_.r.od=_.fh(10);_.r.Ef=_.fh(12);_.r.removeChild=function(a,b){a.removeChild(b)};_.r.pf=_.fh(14);_.r.nf=_.fh(16);_.r.Ff=_.fh(18);_.r.He=_.fh(20);_.Wo=new _.Jo;_.Iw=new _.J("clpp.xml.Parser");_.vm="dom";var So;_.$o=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];So=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.w(Ro,Qo);_.w(_.Vo,Qo);var bp=!!(performance&&performance.mark&&performance.measure),dp=new _.J("clpp.perf");fp.prototype.j=function(a){if(1<a.version)_.Kh("Unrecognized PSSH version found!");else{var b=_.Sm(_.rn(a.reader,16)),c=[];if(0<a.version)for(var d=_.nn(a.reader),e=0;e<d;++e){var f=_.Sm(_.rn(a.reader,16));c.push(f)}d=_.nn(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.Va()&&_.Kh("Mismatch between box size and data size!")}};_.r=_.jp.prototype;_.r.destroy=function(){var a=this;return _.H(function(b){if(1==b.a){if(a.j)return _.x(b,a.Ea,0);a.j=!0;return _.x(b,lp(a),4)}a.Ea.resolve();return b.D(0)})};_.r.keySystem=function(){return this.a?_.Qp(this.a.keySystem):""};_.r.getDrmInfo=function(){return this.a};_.r.Ti=function(a){var b=this;return _.H(function(c){return b.H&&b.L===mp?c["return"]():!b.f.delayLicenseRequestUntilPlayed||b.F&&!b.F.paused||b.jb?_.x(c,dq(b,a),0):(b.ia.push(a),c.D(0))})};
573
- _.r.Oi=function(a){var b=this,c=a.target;this.g.info("Key status changed for session",c.sessionId);var d=this.h.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if(typeof h===_.fg){var l=h;h=g;g=l}if(Xp(b.a.keySystem)&&16===h.byteLength&&_.vl()){l=_.Vj(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!==dg&&(d.loaded=!0);d&&d.qb&&d.qb.resolve();"expired"===g&&(e=!0);l=_.Oj(h);var q=_.Sm(l);"00"===q&&d&&d.keyId?q=d.keyId:
574
- b.a.keySystem.startsWith(_.Cd)&&16!==l.byteLength&&(q=_.Q.fromCharCode(l));(l=q||"")?b.g.info($a+q+"': "+g):b.g.info("Key status global keys: "+g);b.o.set(l,g);d&&!d.keyId&&b.h.forEach(function(t,u){u===c||t.keyId!==q||t.loaded||(t.loaded=!0)})});d&&d.loaded&&d.vb.forEach(function(g){b.o.get(g)===dg&&(b.g.warn($a+g+ea),b.o.set(g,_.bf))});for(a=0;a<this.a.initData.length;a++){var f=this.a.initData[a];f.keyId&&this.o.get(f.keyId)===dg&&_.Tm(f.initData,d.initData)&&(this.g.warn($a+f.keyId+ea),this.o.set(f.keyId,
575
- _.bf))}a=c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.yc&&(this.g.debug("Session has expired",c.sessionId),(a=this.h.get(c))&&a.qd&&a.qd.stop(),this.h["delete"](c),c.close()["catch"](function(){}));Sp(this)&&(this.I.resolve(),1!==this.h.size||e?this.da.ha(.5):hp(this))};var mp=0,gp=3;_.kq=new Map;_.lq=new _.J("clpp.text");_.uq.prototype.getStats=function(){return{width:this.A,height:this.j,streamBandwidth:this.w,decodedFrames:this.l,droppedFrames:this.o,corruptedFrames:this.F,estimatedBandwidth:this.h,loadLatency:this.B,playTime:qq(this.a,_.Kq),pauseTime:qq(this.a,_.Jq),bufferingTime:qq(this.a,_.Bq),stateHistory:rq(this.a),switchHistory:tq(this.f)}};zq.prototype.$a=function(a,b){this.m&&this.m.trigger(new _.K(a,{detail:b}))};zq.prototype.getState=function(){return Cq(this,"")};zq.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.m.namespace());this.a.release()};_.I("clpp.utils.media.detectType",Mq);var Pq=new _.J("clpp.sources");_.w(Qq,_.Am);_.r=Qq.prototype;_.r.init=function(a,b){_.Am.prototype.init.call(this,a,b);this.j=new zq(this);Gq(this.j,_.wq)};_.r.namespace=function(){return wd};
576
- _.r.unload=function(){var a=this,b;return _.H(function(c){if(a.ba){a.log.debug("Releasing player with source",a.ba);a.B&&(a.B.stop(),a.B=null);(b=a.getTrackManager())&&b.release();a.A&&(a.A.destroy(),a.A=null);a.P&&(a.P.destroy(),a.P=null);a.l&&a.l.release();a.o&&(a.o.destroy(),a.o=null);_.li(a.h);a.f&&(a.f=new _.uq);a.G=null;a.ba=null;a.H=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());if(a.w)throw new _.N(_.O,7,7E3);if(a.a){var d=a.a;a.h.off(d,_.ie);a.h.off(d,_.Of);a.a=null}}_.z(c)})};
577
- _.r.release=function(){var a=this;return _.Am.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.j&&Gq(a.j,_.wq)})};
578
- _.r.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.Am.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Ka);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})};_.r.getDrmInfo=function(){return this.o?this.o.getDrmInfo():null};
579
- _.r.getTrackManager=function(){return this.Sd};
580
- _.r.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"](Promise.reject(new _.N(_.O,7,7E3)));if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.L;d=b.F.getMedia();b.I=Date.now()/1E3;b.f=new _.uq;b.h.on(b,_.cg,function(){b.f&&_.pq(b.f.a,b.getState())});Gq(b.j,_.Iq);b.ba=_.Oq(a);b.configuration=_.ym(b.jb,a);b.log.debug(_.db,b.configuration);b.log.debug(_.vb,b.ba);e=_.nq(b.configuration,
581
- [_.re,"native"]);b.P=e.create(b);b.P.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.Cm(_.jg)&&!_.Cl()&&(b.A=new Xi(b),b.A.start(d));b.l?b.l.release():b.l=new ni(b);d.textTracks&&pi(b.l,d.textTracks);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,bd,function(){b.trigger(new _.K(_.tg))});null==b.configuration.startTime&&Yq(b,d);_.Al()&&Zq(b,d);
582
- _.D(h,2);Sq(b,d);return _.x(h,Vq(b),4);case 4:return _.x(h,Xq(b).T,5);case 5:_.vh(h,0);break;case 2:g=_.F(h),b.H=!1,b.onError(g),_.z(h)}})};_.r.onError=function(a){this.H||(a.severity===_.O&&null!==this.j&&Gq(this.j,_.Hq),this.trigger(new _.K(_.ie,{detail:a})))};_.r.Oh=function(){return new Wl};_.r.getState=function(){return null!==this.j?this.j.getState().currentState:_.xq};
536
+ 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]};_.Rp.prototype.bb=function(a,b){this.f[a]=b};_.K("clpp.drm.DrmEnvironment",_.Rp);_.Rp.prototype.setDrmSystem=_.Rp.prototype.bb;_.Tp.prototype.getPosition=function(){return this.a};_.Tp.prototype.Ua=function(){return this.f.byteLength};_.Tp.prototype.seek=function(a){(0>a||a>=this.f.byteLength)&&_.Up();this.a=a};_.Wp.prototype.getPosition=function(){return this.a};_.Wp.prototype.Ua=function(){return this.f.byteLength};_.Wp.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.Yp();this.a+=a};_.Wp.prototype.seek=function(a){if(0>a||a>=this.f.byteLength)throw _.Yp();this.a=a};_.K("clpp.utils.dataview.DataViewReader",_.Wp);_.r=_.fq.prototype;_.r.M=function(a,b){var c=jq(a);this.h[c]=gw;this.f[c]=b;return this};_.r.ba=function(a,b){var c=jq(a);this.h[c]=hw;this.f[c]=b;return this};_.r.stop=function(){this.a=!0};_.r.parse=function(a,b){var c=_.Mi(a);c=new _.Wp(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.Xp(c)&&!this.a;)this.yf(0,c,b)};
537
+ _.r.yf=function(a,b,c){var d=b.getPosition(),e=_.aq(b),f=_.aq(b),g=!1;this.g.debug("Parsing MP4 box",_.kq(f));switch(e){case 0:e=b.Ua()-d;break;case 1:e=_.cq(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.h[f]===hw&&(m=_.aq(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.Ua()&&(n=b.Ua());n-=b.getPosition();b=0<n?_.eq(b,n):new Uint8Array(0);b=new _.Wp(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+
538
+ a,headerSize:f,has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.Ua()-b.getPosition()),b.skip(a)};_.K("clpp.utils.Mp4Parser",_.fq);_.fq.typeToString=_.kq;_.fq.allData=_.iq;_.fq.sampleDescription=_.hq;_.fq.children=_.gq;_.fq.prototype.parseNext=_.fq.prototype.yf;_.fq.prototype.parse=_.fq.prototype.parse;_.fq.prototype.stop=_.fq.prototype.stop;_.fq.prototype.fullBox=_.fq.prototype.ba;_.fq.prototype.box=_.fq.prototype.M;_.fq.headerSize=_.lq;var gw=0,hw=1;_.K("clpp.utils.FairplayUtils",mq);mq.parseFairPlayResponse=_.sq;mq.formatFairPlayRequest=_.rq;mq.createFairplayPayload=qq;mq.extractContentId=_.oq;mq.extractExtXKeyUri=nq;_.K(rd,tq);var Fq=new _.L(rd),vq="PRODUCTION",wq="STAGING",xq="DEMO",yq="TEST",iw={PRODUCTION:vq,STAGING:wq,DEMO:xq,TEST:yq};tq.Environment=iw;tq.WidevineCertificates={V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"};
539
+ for(var Aq="/license-proxy-widevine/cenc/",Bq="/license-proxy-headerauth/drmtoday/RightsManager.asmx",Cq="/license-server-fairplay/",Oq={"00000":"Success","01000":"General Internal Error","02000":"General Request Error","03000":"General Request Authentication Error",10001:"Bad Request",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",
540
+ 42E3:"General Playready error",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"},jw={video:[Ra,Ta,Sa,_.Db,_.Cb],audio:[Ra,
541
+ Ta,Sa,_.Db,_.Cb]},kw={video:["3000","2000","150"],audio:["2000","150"]},lw=_.v(Object.keys(iw)),mw=lw.next();!mw.done;mw=lw.next()){var uq=mw.value,nw=Fa;uq!==vq&&(nw+="_"+uq);var ow=new _.Rp(nw),pw=null;switch(uq){case vq:case wq:case xq:pw=_.Qp("V2");break;case yq:pw=null}ow.bb(_.Fd,{licenseUrl:Dq(_.Fd),videoRobustness:jw.video,audioRobustness:jw.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:pw,modifiers:{licenseRequest:_.Iq,licenseResponse:_.Nq}});ow.bb(_.Bd,
542
+ {licenseUrl:Dq(_.Bd),certificateUrl:zq()+"/license-server-fairplay/cert/",modifiers:{licenseRequest:_.Kq,licenseResponse:_.Lq,extractContentId:_.Gq,certificateRequest:_.Mq}});ow.bb(_.Dd,{licenseUrl:Dq(_.Dd),videoRobustness:kw.video,audioRobustness:kw.audio,modifiers:{licenseRequest:Jq}});_.Nn(ow)};_.Rq.prototype.value=function(){void 0===this.a&&(this.a=this.f());return this.a};_.r=Sq.prototype;_.r.getStatus=function(){return this.a};_.r.forEach=function(a){this.a&&a(this.a,qw.value())};_.r.get=function(a){if(this.has(a))return this.a};_.r.has=function(a){var b=qw.value();return this.a&&Oi(a,b)?!0:!1};_.r.entries=function(){};_.r.keys=function(){};_.r.values=function(){};var qw=new _.Rq(function(){return Ui(new Uint8Array([0]))});var Uq=new _.Rq(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.Ee],[HTMLMediaElement.HAVE_CURRENT_DATA,_.De],[HTMLMediaElement.HAVE_FUTURE_DATA,$c],[HTMLMediaElement.HAVE_ENOUGH_DATA,ad]])});_.r=Wq.prototype;_.r.Xe=function(a){this.f=a};_.r.Pd=function(a){var b=this.a;b&&b!==a&&Zq(b,null);return(this.a=a)?Zq(a,this.f):Promise.resolve()};_.r.ef=function(){return this.a};_.r.Wb=function(a,b){_.Qh("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new Xq(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.r.Od=function(){return As};Xq.prototype.createMediaKeys=function(){var a=new Yq(this.keySystem);return Promise.resolve(a)};
543
+ Xq.prototype.getConfiguration=function(){_.Qh("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};Yq.prototype.createSession=function(a){a=void 0===a?lg:a;this.g.debug("Creating Apple MediaKeys Session");if(a!==lg)throw new TypeError("Session type "+a+ba);return new $q(this.h,"__session_"+this.j++)};Yq.prototype.setServerCertificate=function(){this.g.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.w($q,_.yi);_.r=$q.prototype;
544
+ _.r.generateRequest=function(a,b){var c=this;if(this.l)return Promise.reject(Fb);this.g.debug("generateRequest");this.h=new _.am;try{var d=this.o.createSession(_.Og,_.Mi(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,Zg,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 _.Q(_.Ke,{messageType:void 0===f||f===eg?ye:xe,message:Ui(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,Xg,function(e){c.g.debug("onWebkitKeyAdded_",
545
+ e);c.f&&(ar(c,"usable"),c.f.resolve(),c.f=null)});this.j.on(d,Yg,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===eg)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),
546
+ c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:ar(c,"output-not-allowed");break;default:ar(c,_.ue)}});ar(this,eg)}catch(e){this.h.reject(e)}return this.h};_.r.load=function(){this.g.debug(_.Ce);return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.r.update=function(a){if(this.l)return Promise.reject(Fb);this.g.debug(Dg);this.f=new _.am;try{this.a.update(_.Mi(a))}catch(b){this.f.reject(b)}return this.f};
547
+ _.r.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(),_.wi(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.r.remove=function(){this.g.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};br.prototype.a=function(){return As};br.prototype.f=function(){return!!window.WebKitMediaKeys};
548
+ br.prototype.create=function(){return new Wq};_.r=cr.prototype;_.r.Xe=function(a){this.a=a};_.r.Pd=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(eb)};_.r.ef=function(){return this.a&&this.a.mediaKeys};
549
+ _.r.Wb=function(a,b){var c=this;this.g.info("Requesting media key system access for",a,b.map(function(d){return Object.assign({},d,{drmInfos:d.drmInfos.map(function(){return"_anonymous_"})})}));return navigator.requestMediaKeySystemAccess(a,b)["catch"](function(d){c.g.info("Failed to request media key system access for "+(a+"."),d);return Promise.reject(d)})};_.r.Od=function(){return es};dr.prototype.a=function(){return es};
550
+ dr.prototype.f=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};dr.prototype.create=function(){return new cr};_.r=er.prototype;_.r.Xe=function(a){this.a=a};_.r.Pd=function(a){_.Qh("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(eb);var b=this.f;b&&b!==a&&jr(b,null);(this.f=a)&&jr(a,this.a);return Promise.resolve()};_.r.ef=function(){return this.f};_.r.Wb=function(a,b){_.Qh("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.Mg);c=d.length?d[0]:document.createElement(_.Mg)}var e=new fr(this.h,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
551
+ _.r.Od=function(){return rw};fr.prototype.createMediaKeys=function(){return Promise.resolve(new gr(this.h,this.a))};fr.prototype.getConfiguration=function(){return this.f};gr.prototype.createSession=function(a){a=void 0===a?lg:a;if(a!==lg&&a!==_.ef)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=Xa,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new kr(this.h,this.a,this.o,a);this.j.push(a);return a};
552
+ gr.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.w(kr,_.yi);_.r=kr.prototype;_.r.ready=function(){_.Qh("WebkitEmeManager.MediaKeySession.ready");ir(this,"usable");this.a&&this.a.resolve();this.a=null};_.r.generateRequest=function(a,b){_.Qh("WebkitEmeManager.MediaKeySession.generateRequest");return mr(this,b,null)};_.r.load=function(a){_.Qh(Wb);return this.l===_.ef?mr(this,null,a):Promise.reject(Error(lb))};_.r.update=function(a){_.Qh(Wb);var b=new _.am;nr(this,b,a);return b};
553
+ _.r.close=function(){_.Qh("WebkitEmeManager.MediaKeySession.close");if(this.l!==_.ef){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=lr(this,"cancelKeyRequest");try{this.j[a](this.h,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.r.remove=function(){_.Qh("WebkitEmeManager.MediaKeySession.remove");return this.l!==_.ef?Promise.reject(Error(lb)):this.close()};or.prototype.a=function(){return rw};
554
+ or.prototype.f=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};or.prototype.create=function(){return new er};_.r=pr.prototype;_.r.Xe=function(){};_.r.Pd=function(a){_.Qh("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.r.ef=function(){return null};_.r.Wb=function(){_.Qh("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.r.Od=function(){return sw};qr.prototype.a=function(){return sw};qr.prototype.f=function(){return!0};qr.prototype.create=function(){return new pr};_.K(ud,rr);var tr=new _.L(ud),sr=[];sr=[new dr,new br,new or,new qr].filter(function(a){return a.f()});var es="STANDARD",As="APPLE",rw="WEBKIT",sw="NOP";rr.Apis={STANDARD:es,APPLE:As,WEBKIT:rw,NOP:sw};_.r=_.vr.prototype;_.r.Ja=function(a,b){var c=this.aa(a,b);return 1!==c.length?null:c[0]};_.r.Xb=_.hh(2);_.r.aa=function(a,b){return Array.from(a.childNodes).filter(function(c){return c instanceof Element&&c.tagName===b})};_.r.Fc=_.hh(4);_.r.getAttributeNS=function(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null};_.r.sa=function(a){return Array.from(a.childNodes).every(function(b){return b.nodeType===Node.TEXT_NODE||b.nodeType===Node.CDATA_SECTION_NODE})?a.textContent.trim():null};
555
+ _.r.W=_.hh(6);_.r.we=function(a,b){var c=new DOMParser,d=null;try{d=c.parseFromString(a,_.og)}catch(e){}if(!d)return null;c=d.documentElement;return b&&c.tagName!==b||0<d.getElementsByTagName("parsererror").length?null:c};_.r.bf=_.hh(8);_.r.jd=_.hh(10);_.r.Bf=_.hh(12);_.r.removeChild=function(a,b){a.removeChild(b)};_.r.lf=_.hh(14);_.r.kf=_.hh(16);_.r.Cf=_.hh(18);_.r.Ae=_.hh(20);_.Cr=new _.vr;_.tw=new _.L("clpp.xml.Parser");_.Cn="dom";var yr;_.Gr=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];yr=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.w(xr,wr);_.w(_.Br,wr);Ir.prototype.j=function(a){if(1<a.version)_.Lh("Unrecognized PSSH version found!");else{var b=_.Em(_.eq(a.reader,16)),c=[];if(0<a.version)for(var d=_.aq(a.reader),e=0;e<d;++e){var f=_.Em(_.eq(a.reader,16));c.push(f)}d=_.aq(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.Ua()&&_.Lh("Mismatch between box size and data size!")}};_.r=_.Mr.prototype;_.r.destroy=function(){var a=this;return _.I(function(b){if(1==b.a){if(a.j)return _.x(b,a.Ia,0);a.j=!0;return _.x(b,Or(a),4)}a.Ia.resolve();return b.C(0)})};_.r.keySystem=function(){return this.a?_.ss(this.a.keySystem):""};_.r.getDrmInfo=function(){return this.a};_.r.Vi=function(a){var b=this;return _.I(function(c){return b.H&&b.L===Pr?c["return"]():!b.f.delayLicenseRequestUntilPlayed||b.F&&!b.F.paused||b.gb?_.x(c,Gs(b,a),0):(b.ja.push(a),c.C(0))})};
556
+ _.r.Qi=function(a){var b=this,c=a.target;this.g.info("Key status changed for session",c.sessionId);var d=this.h.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if(typeof h===_.gg){var l=h;h=g;g=l}if(zs(b.a.keySystem)&&16===h.byteLength&&_.gj()){l=_.Ti(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!==eg&&(d.loaded=!0);d&&d.ob&&d.ob.resolve();"expired"===g&&(e=!0);l=_.Mi(h);var q=_.Em(l);"00"===q&&d&&d.keyId?q=d.keyId:
557
+ b.a.keySystem.startsWith(_.Bd)&&16!==l.byteLength&&(q=_.R.fromCharCode(l));(l=q||"")?b.g.info(Ya+q+"': "+g):b.g.info("Key status global keys: "+g);b.o.set(l,g);d&&!d.keyId&&b.h.forEach(function(t,u){u===c||t.keyId!==q||t.loaded||(t.loaded=!0)})});d&&d.loaded&&d.sb.forEach(function(g){b.o.get(g)===eg&&(b.g.warn(Ya+g+ea),b.o.set(g,_.bf))});for(a=0;a<this.a.initData.length;a++){var f=this.a.initData[a];f.keyId&&this.o.get(f.keyId)===eg&&_.Fm(f.initData,d.initData)&&(this.g.warn(Ya+f.keyId+ea),this.o.set(f.keyId,
558
+ _.bf))}a=c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.yc&&(this.g.debug("Session has expired",c.sessionId),(a=this.h.get(c))&&a.ld&&a.ld.stop(),this.h["delete"](c),c.close()["catch"](function(){}));us(this)&&(this.I.resolve(),1!==this.h.size||e?this.fa.ha(.5):Kr(this))};var Pr=0,Jr=3;_.Y={oc:function(a,b){return a.filter(function(c){return c.name===b})},yj:function(a){var b=/^[a-zA-Z0-9_-]+$/,c=new Set;a.forEach(function(d){var e=_.T(d,"VALUE"),f=_.T(d,_.fb),g=_.T(d,"IMPORT"),h=_.T(d,"QUERYPARAM");if(1!==[f,g,h].filter(Boolean).length||f&&null==e)throw new _.N(_.O,4,4044,{message:"Invalid tag.",text:d.toString()});d=f||g||h;if(c.has(d))throw new _.N(_.O,4,4044,'EXT-X-DEFINE redefined variable "'+d+'".');if(!b.test(d))throw new _.N(_.O,4,4044,'EXT-X-DEFINE invalid variable name "'+
559
+ d+'".');c.add(d)})},jg:function(a,b){var c=Array.isArray(b)?b:[b];return a.filter(function(d){d=_.Hp(d,_.Kb);return c.includes(d)})},Ic:function(a,b){return a.some(function(c){return c.name===b})},Ta: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 _.N(_.O,4,4024,{missingTag:b});return a},li:function(a,b){return _.Y.Ta(a,b,{required:!0})},Yl:function(a,b,c){c=void 0===c?0:c;return(a=_.Y.Ta(a,b))?Number(a.value):c},sp:function(a,b,c){return a.filter(function(d){var e=
560
+ d.getAttribute(_.Kb);d=d.getAttribute(_.Qa);return e.value===b&&d.value===c})},Pn:function(a){var b=_.Y.Ta(a,"EXT-X-TILES");if(!b)return{ge:1,Ce:1,durationPerTile:null};a=_.T(b,"LAYOUT")||"1x1";b=_.T(b,_.Ha);a=_.Lp(a);return{ge:a.ge,Ce:a.Ce,durationPerTile:b?Number(b):null}},rm:function(a){return/^#(?!EXT)/m.test(a)},xm:function(a){return/^(#EXT)/.test(a)},Bm:function(a,b){Array.isArray(a)||(a=[a]);a.forEach(function(c){for(var d=_.v(_.Y.Hf(c)),e=d.next();!e.done;e=d.next())b(e.value,c)})},Hf:function(a){var b=
561
+ 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)},lm:function(a){return a.some(function(b){return _.Y.Ic(b.Y,"EXT-X-ENDLIST")})},Wj:function(a){return _.Y.Hf(a).filter(_.Y.vi)},dj:function(a){if(_.Y.Ta(a,"EXT-X-ENDLIST"))return _.Ub;a=_.Y.Ta(a,"EXT-X-PLAYLIST-TYPE");if(!a)return"LIVE";if(a.value===_.Ub)return _.Ub;if("EVENT"===a.value)return"EVENT";
562
+ throw new _.N(_.O,4,4044,"Invalid EXT-X-PLAYLIST-TYPE value: "+a.value);},Mh:function(a){a={AUDIO:_.Nc,VIDEO:_.Mg,SUBTITLES:_.tn,"CLOSED-CAPTIONS":_.tn}[a.toUpperCase()];if(!a)throw new _.N(_.O,4,4044,"EXT-X-MEDIA tag has an invalid TYPE attribute.");return a},rl:function(a){var b=_.Hp(a,_.Kb).toUpperCase();if(_.Y.Mh(b)!==_.tn)return null;a=a.getAttribute("FORCED");a=!(!a||!a.value||"YES"!==a.value.toUpperCase());var c=_.jg;b===_.sa&&(c=_.bd);a&&(c=_.le);return c},$i:function(a,b,c){c=void 0===c?
563
+ !1:c;var d=0,e=null;if(a){d=a.split("@");a=Number(d[0]);if(0>=a)throw new _.N(_.O,4,4044,"Byte range length must be positive.");if(d[1]){if(d=Number(d[1]),0>d)throw new _.N(_.O,4,4044,"Byte range start byte must not be negative.");}else{if(c)throw new _.N(_.O,4,4044,"Invalid byte range, offset is required but missing.");if(null==b)throw new _.N(_.O,4,4044,"Invalid byte range, cannot calculate offset based on previous byte ranges.");d=b+1}e=d+a-1}return{la:d,ga:e}},bj:function(a,b){var c=_.Y.Ta(a,
564
+ "EXT-X-BYTERANGE");return _.Y.$i(c?c.value:null,b)},cj:function(a){a=_.Y.li(a,"EXTINF").value.split(",");var b=Number(a[0]);if(isNaN(b))throw new _.N(_.O,4,4044,"#EXTINF must be a number.");return{duration:b,title:a[1]||null}},ej:function(a,b){function c(f){return null==f?null:Number(f)}b=void 0===b?{}:b;var d={vh:!1,ak:!1,bk:null,mm:null,fj:null},e=_.Y.Ta(a,"EXT-X-SERVER-CONTROL",{required:b.oj});if(!e)return d;d.vh="YES"===_.T(e,"CAN-BLOCK-RELOAD");d.ak="YES"===_.T(e,"CAN-SKIP-DATERANGES");d.bk=
565
+ c(_.T(e,"CAN-SKIP-UNTIL"));d.mm=c(_.T(e,"HOLD-BACK"));d.fj=c(_.T(e,"PART-HOLD-BACK",void 0,{required:b.oj}));return d},aj:function(a,b,c){c=void 0===c?!1:c;a=_.T(a,"BYTERANGE");return _.Y.$i(a,b,c)},On:function(a){var b=_.Y.oc(a,_.Ja),c=_.Y.oc(a,_.Ka);a=_.Y.oc(a,"EXT-X-IMAGE-STREAM-INF");return{Oc:{ph:_.Y.jg(b,[_.ja,_.Tb]),closedCaptions:_.Y.jg(b,_.sa),Co:_.Y.jg(b,_.Bb)},De:c,mg:a}},tl:function(a,b){var c=_.Y.bj(a.Y,null);return new _.Kp(0,0,0,function(){return[a.a]},c.la,c.ga,0,b)},em:function(a){var b=
566
+ a.S;a=b[0].startTime;b=b[b.length-1].endTime;return{rc:a,jf:b,duration:b-a}},bm:function(a){var b=Infinity,c=Infinity;_.Y.Wj(a).forEach(function(d){d=_.Y.em(d);b=Math.min(b,d.rc);c=Math.min(c,d.duration)});return{rc:b,duration:c}},vi:function(a){return a.type===_.Nc||a.type===_.Mg},El:function(a){return a.filter(_.Y.vi)},$l:function(a){return a.map(function(b){return _.Y.bm(b).duration}).reduce(function(b,c){return b+c},0)},Tl:function(a,b){return a&&b?_.Ls(a.drmInfos,b.drmInfos)?_.Ks(a.drmInfos,
567
+ b.drmInfos):null:a?a.drmInfos:b?b.drmInfos:null},vl:function(a,b){return(b?b.$b():"")+" - "+(a?a.$b():"")},Nh:function(a){return(a.video?a.video.zc:"")+" - "+(a.audio?a.audio.zc:"")},Nn:function(a,b,c,d,e){if(b===_.Ub)return{delay:0,Be:0};b=_.Y.Ta(a,"EXT-X-PART-INF");if(c&&b)return e=Number(_.Hp(b,"PART-TARGET")),null!=d?{delay:d,Be:e}:{delay:_.Y.ej(a,{oj:!0}).fj,Be:e};a=_.Y.li(a,"EXT-X-TARGETDURATION");a=Number(a.value);e=e||a;return null!=d?{delay:d,Be:e}:{delay:3*a,Be:e}},Ze:function(a,b){return a+
568
+ ":"+b},Go:function(a){var b=_.Y.Ze,c=new Map;a.forEach(function(d){var e=b(d.a(),d.f());c.has(e)?(e=c.get(e),e.includes(d)||e.push(d)):c.set(e,[d])});return c},gi:function(a){return _.jo(a||_.Bg)},Hn:function(a){var b=new Map;a=_.v(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=_.T(c,_.Za);d=_.Y.gi(d);var e=_.Hp(c,_.Qa);c=_.Hp(c,"INSTREAM-ID");b.has(e)||b.set(e,new Map);b.get(e).set(c,d)}return b},zl:function(a){return a.filter(function(b){return"mp4a.40.34"!==b})},Qn:function(a){if(!a.hasAttribute("FRAME-RATE")&&
569
+ !a.hasAttribute(_.zb))return null;var b=_.T(a,"FRAME-RATE");a=_.T(a,_.zb);var c=_.v(a?a.split("x"):[null,null]);a=c.next().value;c=c.next().value;return{frameRate:Uk(b),width:Uk(a),height:Uk(c)}},Am:function(a){return a.name!==_.Ja?!0:_.T(a,_.Kb)===_.Bb},In:function(a,b,c,d){var e=_.T(a,"ID"),f=_.T(a,"START-DATE");if(null===e||null===f)return _.Y.g.warn("Invalid EXT-X-DATERANGE missing mandatory ID or START-DATE attribute, ignoring the EXT-X-DATERANGE tag.",a),null;b=d?c-b:-b;var g=new Date(f);c=
570
+ g.getTime()/1E3+b;e={id:e,startTime:c,startDate:g,Gf:f};f=Uk(_.T(a,_.Ha));void 0!==f&&0<=f&&(e.duration=f);d=Uk(_.T(a,"PLANNED-DURATION"));void 0!==d&&0<=d&&(e.plannedDuration=d);var h=_.T(a,"CLASS");null!==h&&(e.schemeIdUri=h);var l=_.T(a,"END-DATE");l=l?new Date(l):null;null!==l&&l.getTime()>=g.getTime()&&(e.endDate=l);g=_.Y.Gn(a)||{};var m=_.T(a,"CUE");m&&(g.CUE=m.split(","));if(Gk(h)){h=_.Y.Ln(a);if(null===h)return _.Y.g.warn("Invalid interstitial attributes, ignoring the EXT-X-DATERANGE tag.",
571
+ a),null;g=Object.assign(g,h)}_.M.pc(g)&&(e.customAttributes=g);e.endTime=l?l.getTime()/1E3+b:f?c+f:d?c+d:c;e.type=_.qe;return e},Gn:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.v(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.name.trim().startsWith("X-")&&(a[c.name]=c.value);return _.M.pc(a)?a:null},Ln:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.v(b);for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c.name){case ac:a[ac]=c.value;break;case $b:a[$b]=
572
+ c.value;break;case dc:a[dc]=Uk(c.value);break;case bc:a[bc]=Uk(c.value);break;case "X-SNAP":a["X-SNAP"]=c.value.split(",");break;case cc:a[cc]=c.value.split(",")}return a[ac]&&a[$b]||!a[ac]&&!a[$b]?(_.Y.g.warn("Invalid EXT-X-DATERANGE Interstitial attributes X-ASSET-URI, X-ASSET-LIST"),null):_.M.pc(a)?a:null},Xh:function(a,b){if(!a)return null;var c=a.zc;return b.find(function(d){return d.$b()===c})||null},ci:function(a){return(a=_.T(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}};_.Y.g=new _.L("clpp.hls.Utils");var Us;_.Qs.prototype.ra=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&&Gi(this.roles,a.roles)&&Gi(this.accessibility,a.accessibility,Ys)};_.Qs.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.K("clpp.Track",_.Qs);
573
+ _.Qs.prototype.toString=_.Qs.prototype.toString;_.K("clpp.Rendition",_.Zs);_.Ws=1;_.Ts=_.Mg;_.X=_.Nc;_.Ss=_.mg;Us=_.Le;_.uw={VIDEO:_.Ts,AUDIO:_.X,TEXT:_.Ss,METADATA:Us};_.Qs.Type=_.uw;$s.prototype.h=function(a,b){var c=this,d,e,f,g,h,l,m;return _.I(function(n){switch(n.a){case 1:return d=null,_.F(n,2),_.x(n,ft(c,a),4);case 4:d=n.f;_.G(n,3);break;case 2:return e=_.H(n),c.g.warn("Failed to fetch playlist in order metadata from HLS playlist.",e.message),n["return"](Promise.resolve({}));case 3:f={};_.F(n,5);if(!b.enableHlsVideoTrackInfo){n.C(7);break}return _.x(n,ct(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.G(n,6);break;case 5:h=_.H(n),c.g.warn("Failed to parse video metadata from HLS playlist.",
574
+ h.message);case 6:return _.F(n,9),_.x(n,et(d),11);case 11:l=n.f;f.Oc=l;_.G(n,10);break;case 9:m=_.H(n),c.g.warn("Failed to parse metadata from HLS playlist.",m.message);case 10:return n["return"](f)}})};_.lt=[];_.r=_.ot.prototype;_.r.ag=function(){return!0};_.r.Ll=function(a){return this.getVideoTracks().find(function(b){return _.M.ra(b,a,a&&Object.keys(a))})};_.r.Hl=function(a){return this.getAudioTracks().find(function(b){return _.M.ra(b,a,a&&Object.keys(a))})};_.r.Jl=function(a){return this.oa().find(function(b){return _.M.ra(b,a,a&&Object.keys(a))})};_.r.Kl=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.M.ra(b,a,a&&Object.keys(a))})};
575
+ _.r.Gl=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.M.ra(b,a,a&&Object.keys(a))})};_.r.Il=function(a){return this.oa().flatMap(function(b){return b.renditions}).find(function(b){return _.M.ra(b,a,a&&Object.keys(a))})};_.K("clpp.TrackManager",_.ot);_.ot.prototype.isAbrEnabled=_.ot.prototype.wa;_.ot.prototype.addTextTrack=_.ot.prototype.addTextTrack;_.ot.prototype.findTextRendition=_.ot.prototype.Il;_.ot.prototype.findAudioRendition=_.ot.prototype.Gl;
576
+ _.ot.prototype.findVideoRendition=_.ot.prototype.Kl;_.ot.prototype.findTextTrack=_.ot.prototype.Jl;_.ot.prototype.findAudioTrack=_.ot.prototype.Hl;_.ot.prototype.findVideoTrack=_.ot.prototype.Ll;_.ot.prototype.setTextRendition=_.ot.prototype.Fb;_.ot.prototype.setAudioRendition=_.ot.prototype.Eb;_.ot.prototype.setVideoRendition=_.ot.prototype.qb;_.ot.prototype.setTextTrack=_.ot.prototype.Ya;_.ot.prototype.setAudioTrack=_.ot.prototype.Ga;_.ot.prototype.setVideoTrack=_.ot.prototype.Gb;
577
+ _.ot.prototype.getTextTrack=_.ot.prototype.va;_.ot.prototype.getAudioTrack=_.ot.prototype.na;_.ot.prototype.getVideoTrack=_.ot.prototype.La;_.ot.prototype.getLoadingTextRendition=_.ot.prototype.Lb;_.ot.prototype.getLoadingAudioRendition=_.ot.prototype.Kb;_.ot.prototype.getLoadingVideoRendition=_.ot.prototype.yb;_.ot.prototype.getTextRendition=_.ot.prototype.Xa;_.ot.prototype.getAudioRendition=_.ot.prototype.Sa;_.ot.prototype.getVideoRendition=_.ot.prototype.pa;_.ot.prototype.getTextTracks=_.ot.prototype.oa;
578
+ _.ot.prototype.getAudioTracks=_.ot.prototype.getAudioTracks;_.ot.prototype.getVideoTracks=_.ot.prototype.getVideoTracks;_.ot.prototype.canSelectVideoTracks=_.ot.prototype.ag;_.w(pt,_.ot);_.r=pt.prototype;_.r.ag=function(){return!_.nj()};
579
+ _.r.zg=function(a,b){var c=this,d,e,f,g,h,l,m,n,p,q,t,u,y,B,A,C,E,D;return _.I(function(J){if(1==J.a){if(!b)return c.g.warn(hb),J["return"]();d=b.track;if(!d)return c.g.warn(kb),J["return"]();e=a===_.X;f=a===_.Ts;g=a===_.Ss;h=e||f;l=b.target;if(m=c.h.find(function(P){return Ct(P,d,a)}))return c.g.warn("Track from event already exists",d,m),J["return"]();n=Xs(a,d);p=Et(d);if(g){if(d.kind===_.Le)return J["return"]();void 0!==d.id?q=c.o[d.id]:(t=Object.values(c.o),q=t.find(function(P){return Ct(n,P,
580
+ a)}));n.kind&&"captions"===n.kind&&(n.mimeType=_.Fc);q&&(n.src=q.url,n.mimeType=q.mimeType)}else if(m=c.h.find(function(P){return P.type===a&&_.M.ra(P,n,["kind","label","language"])}))return m.id=d.id,p&&(c.g.debug(Gb+a+" track active"),c.a.set(a,m)),c.g.debug("Track from event seems to already exists, flipped native track to",d),J["return"]();_.F(J,2);u=new _.Zs(n.id,n);n.renditions.push(u);c.h.push(n);y=c.m.getConfiguration().safari;return tt(c,a,y)?_.x(J,vt(c,n,y),5):ut(c,a,y)?_.x(J,wt(c,n,y),
581
+ 5):J.C(5)}if(2!=J.a)return c.g.debug(a+" Track added",n),c.m.trigger(new _.Q(_.vg)),B=zt(c,a).length,A=!(!l||!l.length),C=l&&l.length||0,E=function(){c.g.debug(Gb+a+" track active. Native track active: "+(p+". Number of tracks: ")+B,d);c.a.set(a,n)},p?E():1===B&&h&&(f?E():A&&1!==C||E()),_.G(J,0);D=_.H(J);c.g.error("Error while converting track data",D);_.z(J)})};
582
+ _.r.Bg=function(a,b){if(b){var c=b.track;if(!c)this.g.warn(kb);else if(a===_.Ss&&c.kind!==_.Le){var d=this.h.find(function(e){return Ct(e,c,a)});d&&(this.h.splice(this.h.indexOf(d),1),(this.a.get(a)||null)===d&&(this.a.set(a,null),Gt(this)),this.g.debug(a+" Track removed, id: ",d.id))}}else this.g.warn(hb)};
583
+ _.r.Ag=function(a,b){this.g.debug(a+" Track changed",b);a===_.Ss&&Gt(this);var c=yt(this,a);if(c)for(var d={Xc:0};d.Xc<c.length;d={Xc:d.Xc},++d.Xc)if(Et(c[d.Xc])){if(d=this.h.find(function(e){return function(f){return Ct(f,c[e.Xc],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===_.X?this.m.trigger(new _.Q(_.Uc)):a===_.Ss&&this.m.trigger(new _.Q(_.pg));break}};_.r.initialize=function(a){this.m=a;this.j=new $s(a.getNetworkEngine())};
584
+ _.r.load=function(){this.A=!1;var a=xt(this,_.Ss);a&&(this.f.on(a,_.zc,this.J),this.f.on(a,Mf,this.L),this.f.on(a,jd,this.K));if(a=xt(this,_.X))this.f.on(a,_.zc,this.G),this.f.on(a,Mf,this.I),this.f.on(a,jd,this.H);if(a=xt(this,_.Ts))this.f.on(a,_.zc,this.O),this.f.on(a,Mf,this.U),this.f.on(a,jd,this.P);this.f.one(this.m,ad,this.Zk.bind(this))};_.r.release=function(){this.A=!0;this.h=[];this.o={};this.a.clear();this.l.clear();this.f.release()};_.r.destroy=function(){this.release();this.m=null};
585
+ _.r.getVideoTracks=function(){return zt(this,_.Ts)};_.r.getAudioTracks=function(){return zt(this,_.X)};_.r.oa=function(){return zt(this,_.Ss)};_.r.pa=function(){var a=this,b=this.a.get(_.Ts)||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};_.r.Sa=function(){return At(this,_.X)};_.r.Xa=function(){return At(this,_.Ss)};_.r.yb=function(){return Bt(this,_.Ts)};
586
+ _.r.Kb=function(){return Bt(this,_.X)};_.r.Lb=function(){return Bt(this,_.Ss)};_.r.La=function(){return this.a.get(_.Ts)||null};_.r.na=function(){return this.a.get(_.X)||null};_.r.va=function(){return this.a.get(_.Ss)||null};_.r.Gb=function(a){Dt(this,_.Ts,a)};_.r.Ga=function(a){Dt(this,_.X,a)};_.r.Ya=function(a){Dt(this,_.Ss,a)};_.r.qb=function(a){Dt(this,_.Ts,a&&a.track)};_.r.Eb=function(a){Dt(this,_.X,a&&a.track)};_.r.Fb=function(a){Dt(this,_.Ss,a&&a.track)};
587
+ _.r.addTextTrack=function(a){var b=this,c;return _.I(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.B++,b.o[c]=a,qt(b,a,c),d.C(0)):_.x(d,rt(b,a),0)})};_.r.wa=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
588
+ _.r.Zk=function(){var a=this,b,c,d;return _.I(function(e){if(1==e.a){b=a.m.getConfiguration();Ft(a,_.X,b.preferredAudioLanguage);c=yt(a,_.Ss);if(c.some(function(f){return Et(f)}))return e.C(2);d=xt(a,_.Ss);return _.x(e,new Promise(function(f){a.f.one(d,jd,f);(new _.dj(f)).ha(1)}),2)}if(a.A)return e["return"]();Ft(a,_.Ss,b.preferredTextLanguage);_.z(e)})};pt.prototype.isAbrEnabled=pt.prototype.wa;pt.prototype.addTextTrack=pt.prototype.addTextTrack;pt.prototype.setTextRendition=pt.prototype.Fb;
589
+ pt.prototype.setAudioRendition=pt.prototype.Eb;pt.prototype.setVideoRendition=pt.prototype.qb;pt.prototype.setTextTrack=pt.prototype.Ya;pt.prototype.setAudioTrack=pt.prototype.Ga;pt.prototype.setVideoTrack=pt.prototype.Gb;pt.prototype.getTextTrack=pt.prototype.va;pt.prototype.getAudioTrack=pt.prototype.na;pt.prototype.getVideoTrack=pt.prototype.La;pt.prototype.getLoadingTextRendition=pt.prototype.Lb;pt.prototype.getLoadingAudioRendition=pt.prototype.Kb;pt.prototype.getLoadingVideoRendition=pt.prototype.yb;
590
+ pt.prototype.getTextRendition=pt.prototype.Xa;pt.prototype.getAudioRendition=pt.prototype.Sa;pt.prototype.getVideoRendition=pt.prototype.pa;pt.prototype.getTextTracks=pt.prototype.oa;pt.prototype.getAudioTracks=pt.prototype.getAudioTracks;pt.prototype.getVideoTracks=pt.prototype.getVideoTracks;pt.prototype.canSelectVideoTracks=pt.prototype.ag;var Ht=["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 vw=["abort",$c,ad,ce,"emptied",ge,_.ie,_.je,"interruptbegin","interruptend",_.De,_.Ee,Ge,"mozaudioavailable",_.cf,_.gf,_.sf,_.Hf,_.Jf,_.Vf,_.Wf,bg,"suspend",_.ug,"volumechange",_.Ug,_.Vg,_.Of,$g,Zg,Xg,Yg];_.w(_.Jt,_.yi);_.r=_.Jt.prototype;_.r.init=function(a,b){this.configuration=this.Ia=b;this.F=a;this.log.info("Initializing Player surface");var c=this.F.getMedia();this.log.info("Attaching media element listeners");for(var d=_.v(vw),e=d.next();!e.done;e=d.next())e=e.value,this.O.on(c,e,this.Ej,e!==_.je);this.Md||(this.Md=this.Oh());this.Md.initialize(this);this.F.showMediaElement()};_.r.release=function(){this.P&&(this.P.destroy(),this.P=null);return Promise.resolve()};
591
+ _.r.destroy=function(){this.O.release();return this.Kd.release()};_.r.canPlay=function(a,b){return _.Th[this.namespace()].canPlay(a,b)};_.r.getTimeline=function(){return null};_.r.setupPlaylist=function(){return Promise.reject(_.mb)};_.r.appendLoad=function(){return Promise.reject(_.mb)};_.r.seekWith=function(){return Promise.reject(_.mb)};_.r.detach=function(){return Promise.resolve()};_.r.setSeekInterceptor=function(){};_.r.setPlaybackSessionId=function(){};_.r.getBandwidthEstimate=function(){return null};
592
+ _.r.play=function(){var a=this;if(!this.ca)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.F.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||""};It(d)?(a.trigger(new _.Q(_.Vc)),a.log.warn(_.na)):d.name===nb&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
593
+ _.r.pause=function(){var a=this;return this.ca?new Promise(function(b,c){var d=a.getState();if(2!==d&&5!==d&&3!==d&&4!==d)c(new _.N(_.O,7,3201,"The player state does not allow pause."));else if(a.F.getMedia().pause(),3===a.getState())a.O.one(a,_.dg,function(){b()});else b()}):Promise.reject(new _.N(_.O,7,3201,"No sources specified yet. You need to load content before calling pause."))};_.r.isPaused=function(){return this.F.getMedia().paused};_.r.isEnded=function(){return this.F.getMedia().ended};
594
+ _.r.getConfiguration=function(){return this.configuration};_.r.setDrmCustomDataModifier=function(a){this.md=a};_.r.setCdnErrorCallback=function(a){this.$c=a};_.r.od=function(){return this.md};_.r.getSurface=function(){return this.F};_.r.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.bi(b?b.buffered:void 0,a)};_.r.getPosition=function(){return this.getMediaPosition()};
595
+ _.r.getMediaPosition=function(){var a=this.F.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
596
+ _.r.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.F.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.O.one(d,_.Ee,m)}function l(n){var p=b.getMediaPosition(),
597
+ q=.1>=Math.abs(a-p),t=.25<p-a,u=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,y=n.type===_.Vf,B=n.type===_.Hf,A=n.type===_.ug,C=B&&u;t=y||q&&C||A&&t;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",t,"Current Time:",p,"Target Time:",a,"Native Event:",y,"Time reached",q,"Timeupdate:",A,"Progress:",B,"ReadyState:",u,"Progress Ready:",C);t?(b.Sg=!1,b.qe=!1,b.O.off(d,_.Vf,l),b.O.off(d,_.ug,l),b.O.off(d,_.Hf,l),b.Wi(),b.trigger(new _.Q(_.Gg)),f()):B&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
598
+ d.currentTime=a)}function m(){b.trigger(new _.Q(_.Hg));b.O.on(d,_.Vf,l);b.O.on(d,_.ug,l);b.O.on(d,_.Hf,l);b.log.info("Seeking to "+a+". Delta "+e);b.Sg=!0;b.qe=!0;d.currentTime=a}b.getState()===_.Wt?(b.log.debug("Player is in IDLE state. Postpone seek."),b.O.one(b,_.dg,function(){switch(b.getState()){case 2:case 3:case 4:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
599
+ _.r.getVolume=function(){var a=this.F.getMedia();if(a)return a.volume;this.log.warn("No media element available, can not report volume!");return null};_.r.setVolume=function(a){var b=this.F.getMedia();b?_.M.xa(a)?0>a||1<a?this.log.warn(ua+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(ua+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.r.isMuted=function(){return this.F.getMedia().muted};
600
+ _.r.setMuted=function(a){var b=this.F.getMedia();typeof a===_.Xc&&(b.muted=a)};_.r.getDuration=function(){return this.getMediaDuration()};_.r.getMediaDuration=function(){return this.ca?this.F.getMedia().duration:-1};_.r.getTrackManager=function(){return this.Md};_.r.getPlaybackRate=function(){var a=this.F.getMedia();return a&&a.playbackRate||1};_.r.setPlaybackRate=function(a){var b=this.F.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.r.setSourceIndex=function(a){this.hf=a};_.r.getSourceIndex=function(){return this.hf};
601
+ _.r.getLoadedSource=function(){return this.ca&&-1!==this.hf?this.ca[this.hf]:null};_.r.getPeriods=function(){return[]};_.r.getNetworkEngine=function(){return this.Kd};_.r.setNetworkEngine=function(a){var b=this;this.Kd=a;Pm(this.Kd,function(c){b.onError(c)})};_.r.setCmsdManager=function(a){this.Jg=a};_.r.getTextDisplayer=function(){return this.P};_.r.getTimelineCues=function(){return[]};_.r.getCueTimeline=function(){return null};_.r.resetAbr=function(){};
602
+ _.r.eo=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.ug||a.type===_.Hf)this.eh.debug(d);else{var e="";switch(a.type){case _.Jf:e="Rate: "+this.getPlaybackRate();break;case ce:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.gf:case _.sf:case "suspend":case _.Ug:case bg:case _.Wf:case _.Vf:case _.ug:case _.Hf:case $c:case ad:b=
603
+ this.getBufferInfo().Ra(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.Of:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.eh.info(d)}a.type!==_.je&&this.trigger(new _.Q(a.type,{detail:a}))};_.r.Wi=function(){};_.Kt=new Map;_.Lt=new _.L("clpp.text");_.Ut.prototype.getStats=function(){return{width:this.A,height:this.j,streamBandwidth:this.w,decodedFrames:this.l,droppedFrames:this.o,corruptedFrames:this.F,estimatedBandwidth:this.h,loadLatency:this.B,playTime:Qt(this.a,3),pauseTime:Qt(this.a,4),bufferingTime:Qt(this.a,2),stateHistory:Rt(this.a),switchHistory:Tt(this.f)}};Yt.prototype.Za=function(a,b){this.m&&this.m.trigger(new _.Q(a,{detail:b}))};Yt.prototype.getState=function(){return $t(this,"")};Yt.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.m.namespace());this.a.release()};_.w(eu,_.Jt);_.r=eu.prototype;_.r.init=function(a,b){_.Jt.prototype.init.call(this,a,b);this.j=new Yt(this);cu(this.j,_.Wt)};_.r.namespace=function(){return vd};
604
+ _.r.unload=function(){var a=this,b;return _.I(function(c){if(a.ca){a.log.debug("Releasing player with source",a.ca);a.B&&(a.B.stop(),a.B=null);(b=a.getTrackManager())&&b.release();a.A&&(a.A.destroy(),a.A=null);a.P&&(a.P.destroy(),a.P=null);a.l&&a.l.release();a.o&&(a.o.destroy(),a.o=null);_.wi(a.h);a.f&&(a.f=new _.Ut);a.G=null;a.ca=null;a.H=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());if(a.w)throw new _.N(_.O,7,7E3);if(a.a){var d=a.a;a.h.off(d,_.je);a.h.off(d,_.Of);a.a=null}}_.z(c)})};
605
+ _.r.release=function(){var a=this;return _.Jt.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.j&&cu(a.j,_.Wt)})};
606
+ _.r.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.Jt.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Ia);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})};_.r.getDrmInfo=function(){return this.o?this.o.getDrmInfo():null};
607
+ _.r.getTrackManager=function(){return this.Md};
608
+ _.r.load=function(a){var b=this,c,d,e,f,g;return _.I(function(h){switch(h.a){case 1:if(b.w)return h["return"](Promise.reject(new _.N(_.O,7,7E3)));if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.M;d=b.F.getMedia();b.I=Date.now()/1E3;b.f=new _.Ut;b.h.on(b,_.dg,function(){b.f&&_.Pt(b.f.a,b.getState())});cu(b.j,1);b.ca=_.Jn(a);b.configuration=_.Fn([b.Ia,a]);b.log.debug(_.bb,b.configuration);b.log.debug(_.tb,b.ca);e=_.Nt(b.configuration,
609
+ [_.re,"native"]);b.P=e.create(b);b.P.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.di(_.kg)&&!_.pj()&&(b.A=new Ap(b),b.A.start(d));b.l?b.l.release():b.l=new Zo(b);d.textTracks&&ap(b.l,d.textTracks);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,$c,function(){b.trigger(new _.Q(_.vg))});null==b.configuration.startTime&&mu(b,d);_.nj()&&nu(b,d);
610
+ _.F(h,2);gu(b,d);return _.x(h,ju(b),4);case 4:return _.x(h,lu(b).T,5);case 5:_.G(h,0);break;case 2:g=_.H(h),b.H=!1,b.onError(g),_.z(h)}})};_.r.onError=function(a){this.H||(a.severity===_.O&&null!==this.j&&cu(this.j,_.zo),this.trigger(new _.Q(_.je,{detail:a})))};_.r.Oh=function(){return new pt};_.r.getState=function(){return null!==this.j?this.j.getState().currentState:7};
583
611
  _.r.getPresentationStartTime=function(){if(this.a&&this.a.getStartDate&&this.isLive()){var a=this.a.getStartDate();return isNaN(a.getTime())?null:a.getTime()/1E3}return null};_.r.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}};_.r.isLive=function(){return this.a&&this.a.src?Infinity===this.a.duration:!1};
584
- _.r.getStats=function(){if(!this.f||!this.a)return _.vq();this.f&&_.pq(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.A=a.videoWidth;b.j=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.o=Number(a.droppedVideoFrames),b.l=c,this.f.F=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.pa())a.bandwidth&&(this.f.w=a.bandwidth),a.Qd&&(this.f.h=a.Qd);return this.f.getStats()};
585
- _.r.getTimelineCues=function(){return this.l?this.l.getTimelineCues():[]};_.r.getCueTimeline=function(){return null};$q.prototype.a=function(){return wd};$q.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.Ic,e=c===_.Nc,f=c===_.bm;return _.zl()||d||e||f&&!_.Al()?0:""!==Fl().canPlayType(c)?f&&_.Al()&&(window.ManagedMediaSource||window.MediaSource&&MediaSource.isTypeSupported)&&!b.streaming.preferNativeHlsOnSafari?1:2:0};$q.prototype.f=function(a){return a===_.qa};$q.prototype.create=function(){return new Qq};
586
- _.Uh(new $q);_.I("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.I("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1,SERVER_GUIDED:2});_.I("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var br=new _.J("clpp.ads"),ar=[];_.r=er.prototype;_.r.load=function(){};_.r.start=function(){};_.r.md=function(){};_.r.resume=function(){};_.r.pause=function(){};_.r.skip=function(){};_.r.getVolume=function(){};_.r.setVolume=function(){};_.r.getPosition=function(){};_.r.Dc=function(){};_.r.hd=function(){};_.I("clpp.ads.IAdsManager",er);er.prototype.getPosition=er.prototype.getPosition;er.prototype.setVolume=er.prototype.setVolume;er.prototype.getVolume=er.prototype.getVolume;er.prototype.skip=er.prototype.skip;
587
- er.prototype.pause=er.prototype.pause;er.prototype.resume=er.prototype.resume;_.r=fr.prototype;_.r.xb=function(){};_.r.yb=function(){};_.r.Cb=function(){};_.r.getId=function(){};_.r.getCreativeId=function(){};_.r.bc=function(){};_.r.getApiFramework=function(){};_.r.getAdSystem=function(){};_.r.getAdvertiserName=function(){};_.r.getTitle=function(){};_.r.getDuration=function(){};_.r.getPosition=function(){};_.r.getSkipTimeOffset=function(){};_.r.fc=function(){};_.r.zb=function(){};_.r.getMediaUrl=function(){};_.r.ob=function(){};_.r.nb=function(){};_.r.Wa=function(){};
588
- _.r.Xa=function(){};_.r.getPodIndex=function(){};_.r.Ob=function(){};_.r.Bb=function(){};_.r.pb=function(){};_.r.getWrapperAdIds=function(){};_.r.getWrapperAdSystems=function(){};_.r.getWrapperCreativeIds=function(){};_.r.ec=function(){};_.r.canSeek=function(){};_.I("clpp.ads.IAd",fr);fr.prototype.canSeek=fr.prototype.canSeek;fr.prototype.getVideoElement=fr.prototype.ec;fr.prototype.getWrapperCreativeIds=fr.prototype.getWrapperCreativeIds;fr.prototype.getWrapperAdSystems=fr.prototype.getWrapperAdSystems;
589
- fr.prototype.getWrapperAdIds=fr.prototype.getWrapperAdIds;fr.prototype.getSequenceLength=fr.prototype.pb;fr.prototype.getPositionInSequence=fr.prototype.Bb;fr.prototype.getPodTimeOffset=fr.prototype.Ob;fr.prototype.getPodIndex=fr.prototype.getPodIndex;fr.prototype.getPodType=fr.prototype.Xa;fr.prototype.getMediaBitrate=fr.prototype.Wa;fr.prototype.getMediaHeight=fr.prototype.nb;fr.prototype.getMediaWidth=fr.prototype.ob;fr.prototype.getMediaUrl=fr.prototype.getMediaUrl;
590
- fr.prototype.getClickThroughUrl=fr.prototype.zb;fr.prototype.isBumper=fr.prototype.fc;fr.prototype.getSkipTimeOffset=fr.prototype.getSkipTimeOffset;fr.prototype.getPosition=fr.prototype.getPosition;fr.prototype.getDuration=fr.prototype.getDuration;fr.prototype.getTitle=fr.prototype.getTitle;fr.prototype.getAdvertiserName=fr.prototype.getAdvertiserName;fr.prototype.getAdSystem=fr.prototype.getAdSystem;fr.prototype.getApiFramework=fr.prototype.getApiFramework;fr.prototype.getSourceId=fr.prototype.bc;
591
- fr.prototype.getCreativeId=fr.prototype.getCreativeId;fr.prototype.getId=fr.prototype.getId;fr.prototype.getTechnology=fr.prototype.Cb;fr.prototype.getAdManagerVersion=fr.prototype.yb;fr.prototype.getAdManagerName=fr.prototype.xb;_.r=W.prototype;_.r.xb=function(){return""};_.r.yb=function(){return""};_.r.Cb=function(){return 2};_.r.getId=function(){return this.B};_.r.getCreativeId=function(){return""};_.r.bc=function(){return this.H};_.r.getApiFramework=function(){return null};_.r.getAdSystem=function(){return""};_.r.getAdvertiserName=function(){return""};_.r.getTitle=function(){return""};_.r.getDuration=function(){return this.h};_.r.getPosition=function(){return this.j};_.r.getSkipTimeOffset=function(){return-1};
592
- _.r.canSeek=function(){return this.A};_.r.fc=function(){return!1};_.r.zb=function(){return null};_.r.getMediaUrl=function(){return null};_.r.ob=function(){return 0};_.r.nb=function(){return 0};_.r.Wa=function(){return 0};_.r.Xa=function(){return this.G};_.r.getPodIndex=function(){return 0};_.r.Ob=function(){return 0};_.r.Bb=function(){return this.f};_.r.pb=function(){return this.a};_.r.getWrapperAdIds=function(){return[]};_.r.getWrapperAdSystems=function(){return[]};_.r.getWrapperCreativeIds=function(){return[]};
593
- _.r.ec=function(){return this.videoEl};_.r.Vl=function(){return this.F};W.prototype.getCustomAttributes=W.prototype.Vl;W.prototype.getVideoElement=W.prototype.ec;W.prototype.getWrapperCreativeIds=W.prototype.getWrapperCreativeIds;W.prototype.getWrapperAdSystems=W.prototype.getWrapperAdSystems;W.prototype.getWrapperAdIds=W.prototype.getWrapperAdIds;W.prototype.getSequenceLength=W.prototype.pb;W.prototype.getPositionInSequence=W.prototype.Bb;W.prototype.getPodTimeOffset=W.prototype.Ob;
594
- W.prototype.getPodIndex=W.prototype.getPodIndex;W.prototype.getPodType=W.prototype.Xa;W.prototype.getMediaBitrate=W.prototype.Wa;W.prototype.getMediaHeight=W.prototype.nb;W.prototype.getMediaWidth=W.prototype.ob;W.prototype.getMediaUrl=W.prototype.getMediaUrl;W.prototype.getClickThroughUrl=W.prototype.zb;W.prototype.isBumper=W.prototype.fc;W.prototype.canSeek=W.prototype.canSeek;W.prototype.getSkipTimeOffset=W.prototype.getSkipTimeOffset;W.prototype.getPosition=W.prototype.getPosition;
595
- W.prototype.getDuration=W.prototype.getDuration;W.prototype.getTitle=W.prototype.getTitle;W.prototype.getAdvertiserName=W.prototype.getAdvertiserName;W.prototype.getAdSystem=W.prototype.getAdSystem;W.prototype.getApiFramework=W.prototype.getApiFramework;W.prototype.getSourceId=W.prototype.bc;W.prototype.getCreativeId=W.prototype.getCreativeId;W.prototype.getId=W.prototype.getId;W.prototype.getTechnology=W.prototype.Cb;W.prototype.getAdManagerVersion=W.prototype.yb;W.prototype.getAdManagerName=W.prototype.xb;gr.prototype.has=function(){return this.a.some(function(a){return a.Xe})};gr.prototype.get=function(){var a=this,b;return _.H(function(c){if(1==c.a){b=a.a.find(function(d){return d.Xe});if(!b)throw Error("No available players in the pool");b.Xe=!1;return _.x(c,b.ready,2)}return c["return"](b.player)})};
596
- gr.prototype.release=function(a){var b=this,c=this.a.find(function(d){return d.player===a});if(!c)return Promise.resolve();c.Xe=!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};gr.prototype.destroy=function(){var a=this;return _.H(function(b){return _.x(b,Promise.all(a.a.map(function(c){return c.player.destroy()})),0)})};_.I("clpp.utils.dom.createHTMLElement",_.kr);lr.prototype.set=function(a){this.h.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=nr(this,a)};lr.prototype.get=function(){return this.a};_.r=rr.prototype;_.r.getMedia=function(){return this.f.get()};_.r.getContainer=function(){return this.a.get()};_.r.getSafeContainer=function(){return this.a};_.r.getId=function(){return this.l};_.r.getUniqueCssClass=function(){return this.o};_.r.getCastElement=function(){return this.h};_.r.isFullscreen=function(){return!!document.fullscreenElement};_.r.hideMediaElement=function(){var a=this.getMedia();a?_.ir(a,nd):this.g.debug("No media element available that could be hidden")};
597
- _.r.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(nd):this.g.debug("No media element available that could be shown")};_.r.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&&_.ir(a,_.md);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
598
- _.r.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.r.hide=function(a){_.ir(a,nd)};_.r.show=function(a){a.classList.remove(nd)};_.r.release=function(){this.j.release()};rr.prototype.removeElementFromContainer=rr.prototype.removeElementFromContainer;rr.prototype.addElementToContainer=rr.prototype.addElementToContainer;rr.prototype.getCastElement=rr.prototype.getCastElement;
599
- rr.prototype.getContainer=rr.prototype.getContainer;rr.prototype.getMedia=rr.prototype.getMedia;var or={disableContainer:!1,webOSStartupPatch:!0,crossorigin:"anonymous",containerEl:null},pr=1;_.r=wr.prototype;_.r.getCurrentItem=function(){return this.h};_.r.ff=function(){return this.h?this.h.player:null};_.r.gi=function(){return Array.from(this.o.values())};_.r.oe=function(){return 0<this.o.size};_.r.play=function(a){return yr(this,a,_.gf)};_.r.load=function(a){return yr(this,a,_.Ce)};_.r.release=function(){var a=this,b,c;return _.H(function(d){if(1==d.a)return b=Promise,c=b.all,_.x(d,Fr(a),3);if(2!=d.a)return _.x(d,c.call(b,[d.f,a.h?Ur(a,a.h):Promise.resolve()]),2);a.h=null;a.B=!1;_.z(d)})};
600
- _.r.destroy=function(){var a=this;return _.H(function(b){if(1==b.a)return a.g.info("Destroy"),_.x(b,a.release(),2);if(3!=b.a)return _.x(b,a.w.destroy(),3);gs(a);_.z(b)})};_.r.isMuted=function(){return this.G};var as="preload",cs=_.Ge,Or="primary",Nr="ad";_.w(rs,_.pm);_.r=rs.prototype;_.r.destroy=function(){var a=this;return _.H(function(b){Js(a);a.h=[];a.w=!1;a.l.setSeekInterceptor(null);return _.x(b,a.a.destroy(),0)})};_.r.Rb=function(){return this.w};_.r.setMuted=function(a){var b=this.a;(b.G=a)?(b.a.setMuted(!0),fs(b,!0)):(a=b.getCurrentItem(),Mr(b,a,a&&a.Sb?Nr:Or))};_.r.isMuted=function(){return this.a.isMuted()};_.r.isLive=function(){var a=this.a.ff();return a?a.isLive():null};_.r.$a=function(a){this.l.trigger(a)};
601
- var ps=0,ws=1,Ps=2,Qs=3,vs=4,Us=5,Vs=6;_.r=Xs.prototype;_.r.load=function(){return Promise.resolve()};_.r.start=function(){return Promise.resolve()};_.r.md=function(a,b,c){var d=a.getConfiguration();a=Object.assign({},{config:d,player:a,lb:b},d.ads.hls||{},{Yn:c});this.a=new rs(a);us(this.a)};_.r.setMuted=function(a){this.a&&this.a.setMuted(a)};_.r.isMuted=function(){return this.a?this.a.isMuted():!0};_.r.resume=function(){var a=ss(this.a);a&&a.play()};_.r.pause=function(){var a=ss(this.a);a&&a.pause()};_.r.skip=function(){};
602
- _.r.getVolume=function(){var a=ss(this.a);return a?a.getVolume()||0:0};_.r.setVolume=function(a){var b=ss(this.a);if(b)return b.setVolume(a)};_.r.getPosition=function(){var a=ss(this.a);return a?a.getPosition():-1};_.r.hd=function(){return!this.a.Rb()};_.r.Dc=function(){return this.a.destroy()};Xs.prototype.getPosition=Xs.prototype.getPosition;Xs.prototype.setVolume=Xs.prototype.setVolume;Xs.prototype.getVolume=Xs.prototype.getVolume;Xs.prototype.skip=Xs.prototype.skip;Xs.prototype.pause=Xs.prototype.pause;
603
- Xs.prototype.resume=Xs.prototype.resume;$s.prototype.release=function(){this.a.release();dt(this);this.m=null};var ft=[];var kt={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},tm="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";var zt="vod",yt="live";var It,Gt,Ht;Dt.prototype.release=function(){this.a=null;this.f.Ce(this.h)};_.Jw="maxSuggestedBitrateKbps";It={du:"duress",etp:_.je,mb:_.Jw,rd:"responseDelay",rtt:"roundTripTime"};Gt={at:"availabilityTime",br:"encodedBitrateKbps",ht:"heldTime",n:"intermediaryIdentifier",nor:"nextObjectResponse",nrr:"nextRangeResponse",d:"objectDuration",ot:"objectType",su:"startup",st:"streamType",sf:"streamingFormat",v:Fg};Ht=new _.J("clpp.net.CmsdManager");_.w(X,_.pm);_.r=X.prototype;_.r.on=function(a,b,c){return _.pm.prototype.on.call(this,a,b,c)};_.r.one=function(a,b,c){return _.pm.prototype.one.call(this,a,b,c)};_.r.off=function(a,b){return _.pm.prototype.off.call(this,a,b)};_.r.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.K(_.ie,{detail:a}))};_.r.je=function(a){a=this.L[a];void 0===a&&(a=null);return a};_.r.getSurface=function(){return this.j};_.r.getConfiguration=function(){return _.L.kb(this.f)};
604
- _.r.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.r.detach=function(){return this.a?this.a.detach():Promise.resolve()};_.r.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=Pt(this);return this.l["finally"](function(){Zt(a);a.g.debug("Player released");a.l=null})};
605
- _.r.destroy=function(){var a=this;if(this.S)return this.g.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.S=!0;return this.release().then(function(){a.g.debug(Ka);a.trigger(new _.K("destroying"));return a.Rc(_.We)}).then(function(){a.a&&a.a.stopForwardingEventsTo(a);a.ce.clear();a.jb.release();if(a.a)return a.a.destroy()}).then(function(){return a.J.destroy()}).then(function(){Km();a.a=null;a.A=null;a.trigger(new _.K("destroyed"))})};
606
- _.r.load=function(a){var b=this,c,d,e;return _.H(function(f){switch(f.a){case 1:_.D(f,2);_.cp(pf);b.P=_.qa;b.ka=!0;c=_.Oq(a);d=zm(a)?a:{};if(d.license)throw new _.N(_.O,7,7100,"License cannot be passed into the load method.");return _.x(f,_.Xt(b,d,c),4);case 4:return _.x(f,_.Yt(b),5);case 5:return _.x(f,_.St(b),6);case 6:_.cp(of);_.ep("player.load",pf,of);_.vh(f,0);break;case 2:e=_.F(f);Zt(b);if(b.l)throw b.g.info(cb),new _.N(_.O,7,7E3);throw e;}})};
607
- _.r.preload=function(a){var b=this,c;return _.H(function(d){if(1==d.a)return _.x(d,_.Xt(b,a),2);if(!b.a)return b.g.warn(ub),d["return"]();c=b.a;return c.preload?_.x(d,c.preload(b.f),0):(b.g.warn(yb),d["return"]())})};_.r.Rc=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!this.ka)return Promise.resolve();var e=this;d=this.ia.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.hh(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};
608
- _.r.use=function(a){(a=Lm(a))&&a.o(this)};_.r.remove=function(a){return(this.getState()<=_.wq||this.Y)&&null!==Fm(a)?(Mm(a),this.ca=!0):!1};_.r.play=function(){return this.a?!this.h||this.h instanceof Xs||this.a.namespace()===_.sd?this.a.play():this.h.start(this.a):Promise.reject("No player initialized. You need to load content before calling play.")};_.r.pause=function(){return this.a?this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};
609
- _.r.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.r.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.om};_.r.getState=function(){return this.a?this.a.getState():_.wq};_.r.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.r.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.r.isPaused=function(){return this.a&&this.a.isPaused()||!1};_.r.getPosition=function(){return this.a?this.a.getPosition():0};
610
- _.r.seek=function(a){return this.getState()===_.Hq?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};_.r.getPresentationStartTime=function(){return this.a?this.a.getPresentationStartTime():null};_.r.getSeekRange=function(){return this.a?this.a.getSeekRange():{start:0,end:0}};_.r.Ic=function(){var a=this.a;return a&&a.Ic?a.Ic():null};_.r.getVolume=function(){return this.a?this.a.getVolume():null};_.r.setVolume=function(a){this.a&&this.a.setVolume(a)};
611
- _.r.getDuration=function(){return this.a?this.a.getDuration():-1};_.r.getAdsManager=function(){return this.h};_.r.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};_.r.getPlaybackRate=function(){return this.a?this.a.getPlaybackRate():1};_.r.setPlaybackRate=function(a,b){this.a&&this.a.setPlaybackRate(a,b)};_.r.isMuted=function(){return this.h&&this.h instanceof Xs?this.h.isMuted():this.a&&this.a.isMuted()||!1};
612
- _.r.setMuted=function(a){this.a&&this.a.setMuted(a);this.h&&this.h instanceof Xs&&this.h.setMuted(a)};_.r.getNetworkEngine=function(){return this.J};_.r.setNetworkEngine=function(a){this.J=a};_.r.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};_.r.isLive=function(){return!!this.a&&this.a.isLive()};_.r.getStats=function(){return this.a?this.a.getStats():null};_.r.mi=function(){return Object.freeze(this.Ea)};_.r.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};
613
- _.r.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.r.getCueTimeline=function(){return this.a?this.a.getCueTimeline():null};_.r.resetAbr=function(){this.a&&this.a.resetAbr()};_.r.setDrmCustomDataModifier=function(a){this.td=a;Vt(this)};_.r.setCdnErrorCallback=function(a){this.N=a;this.a&&this.a.setCdnErrorCallback(this.N)};_.I("clpp.Player",X);X.registerPlugin=_.bu;X.prototype.setCdnErrorCallback=X.prototype.setCdnErrorCallback;X.prototype.setDrmCustomDataModifier=X.prototype.setDrmCustomDataModifier;
614
- X.prototype.resetAbr=X.prototype.resetAbr;X.prototype.getTimelineCues=X.prototype.getTimelineCues;X.prototype.getLoadedSource=X.prototype.getLoadedSource;X.prototype.getSources=X.prototype.mi;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;
615
- X.prototype.isMuted=X.prototype.isMuted;X.prototype.setPlaybackRate=X.prototype.setPlaybackRate;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.Ic;X.prototype.getSeekRange=X.prototype.getSeekRange;
616
- X.prototype.getPresentationStartTime=X.prototype.getPresentationStartTime;X.prototype.seek=X.prototype.seek;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;
617
- X.prototype.use=X.prototype.use;X.prototype.load=X.prototype.load;X.prototype.destroy=X.prototype.destroy;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.je;X.prototype.off=X.prototype.off;X.prototype.one=X.prototype.one;X.prototype.on=X.prototype.on;_.wq=0;_.Iq=1;_.Bq=2;_.Kq=3;_.Jq=4;_.Dq=5;_.Hq=6;_.xq=7;
618
- _.Fq={IDLE:_.wq,PREPARING:_.Iq,BUFFERING:_.Bq,PLAYING:_.Kq,PAUSED:_.Jq,ENDED:_.Dq,ERROR:_.Hq,UNSET:_.xq};X.State=_.Fq;var Lt=[];_.w(cu,X);_.r=cu.prototype;
619
- _.r.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 _.N(_.O,7,7008,"Cannot call open() while "+c.w+fa);if(0!==a)throw new _.N(_.O,7,7007,"The index parameter only supports the value of 0.");if(0===b.length)throw new _.N(_.O,7,7003,lb);if(b.some(function(p){return!p.id||!p.source}))throw new _.N(_.O,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 _.N(_.O,7,
612
+ _.r.getStats=function(){if(!this.f||!this.a)return _.Vt();this.f&&_.Pt(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.A=a.videoWidth;b.j=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.o=Number(a.droppedVideoFrames),b.l=c,this.f.F=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.pa())a.bandwidth&&(this.f.w=a.bandwidth),a.Jd&&(this.f.h=a.Jd);return this.f.getStats()};
613
+ _.r.getTimelineCues=function(){return this.l?this.l.getTimelineCues():[]};_.r.getCueTimeline=function(){return null};ou.prototype.a=function(){return vd};ou.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.Gc,e=c===_.Lc,f=c===_.Il;return _.mj()||d||e||f&&!_.nj()?0:""!==sj().canPlayType(c)?f&&_.nj()&&(window.ManagedMediaSource||window.MediaSource&&MediaSource.isTypeSupported)&&!b.streaming.preferNativeHlsOnSafari?1:2:0};ou.prototype.f=function(a){return a===_.pa};ou.prototype.create=function(){return new eu};_.w(pu,S);_.r=pu.prototype;
614
+ _.r.open=function(a,b){var c=this,d,e,f,g,h,l,m;return _.I(function(n){if(1==n.a){if(c.w)throw new _.N(_.O,7,7008,"Cannot call open() while "+c.w+fa);if(0!==a)throw new _.N(_.O,7,7007,"The index parameter only supports the value of 0.");if(0===b.length)throw new _.N(_.O,7,7003,jb);if(b.some(function(p){return!p.id||!p.source}))throw new _.N(_.O,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 _.N(_.O,7,
620
615
  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 _.N(_.O,7,7100,"Unsupported `playlist.timeline` config value!");h=e.startTime;if(null!=h&&(typeof h!==_.k||0>h))throw new _.N(_.O,7,7100,"Invalid `playlist.startTime` config value!");l=e.endTime;if(null!=l&&(typeof l!==_.k||0>l||null!=h&&l<=h))throw new _.N(_.O,7,7100,"Invalid `playlist.endTime` config value!");m=e.content;if("DVR"===m&&!l)throw new _.N(_.O,7,
621
- 7100,"`playlist.endTime` config value is required for DVR content!");}_.uh(n);du(c);c.w="open";return _.x(n,hu(c,b),4)}2!=n.a&&(c.I=0,c.o=b,c.da=!0,eu(c,b[0].playlist||{}));_.wh(n);c.w=null;return _.xh(n)})};
622
- _.r.Ij=function(a){var b=this,c;return _.H(function(d){if(1==d.a){if(b.w)throw new _.N(_.O,7,7008,"Cannot call addItem() while "+b.w+fa);if(!b.da)throw new _.N(_.O,7,7008,"open() must be called before addItem()!");if(!a.id||!a.source)throw new _.N(_.O,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 _.N(_.O,7,7100,"A config with this `id` already exists in the playlist!");_.uh(d);b.w="addItem";b.o.push(a);return _.x(d,
623
- iu(b,a),2)}_.wh(d);b.w=null;return _.xh(d)})};_.r.getCurrentItem=function(){return this.o[this.I]||null};_.r.getCurrentItemIndex=function(){return this.I};_.r.cm=function(){return _.hh(this.o).concat()};_.r.le=function(){return this.o.length};_.r.getTimeline=function(){return this.a?this.a.getTimeline():null};_.r.seekWith=function(a){return this.a?this.a.seekWith(a):Promise.resolve()};_.r.release=function(){this.o=[];this.I=0;this.da=!1;return X.prototype.release.call(this)};
624
- _.r.destroy=function(){du(this);return X.prototype.destroy.call(this)};_.r.setCdnErrorCallback=function(){throw new _.N(1,7,7009,"CDN switching is not supported!");};_.I("clpp.plist.ScPlaylist",cu);cu.prototype.setCdnErrorCallback=cu.prototype.setCdnErrorCallback;cu.prototype.destroy=cu.prototype.destroy;cu.prototype.release=cu.prototype.release;cu.prototype.seekWith=cu.prototype.seekWith;cu.prototype.getTimeline=cu.prototype.getTimeline;cu.prototype.getSize=cu.prototype.le;
625
- cu.prototype.getPlaylist=cu.prototype.cm;cu.prototype.getCurrentItemIndex=cu.prototype.getCurrentItemIndex;cu.prototype.getCurrentItem=cu.prototype.getCurrentItem;cu.prototype.addItem=cu.prototype.Ij;cu.prototype.open=cu.prototype.open;_.w(lu,_.pm);_.r=lu.prototype;_.r.he=function(){return this.f};_.r.ff=function(){return this.f?this.f.player:null};_.r.ei=function(){return this.o.get(this.a+1)||null};_.r.hi=function(){return this.o.get(this.a-1)||null};_.r.gi=function(){return[this.hi(),this.ei()].filter(Boolean)};_.r.so=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:[]}})};
626
- _.r.ro=function(a){if(0===this.h.length)throw Error(kb);if(0>a||a>this.h.length-1)throw Error("Index out of bounds");this.a=a};_.r.oe=function(){return this.a<this.h.length-1};_.r.ni=function(){return 0<this.a};
627
- _.r.Wn=function(){var a=this,b,c;return _.H(function(d){switch(d.a){case 1:if(a.l)return a.g.warn("Cannot play first item while busy"),d["return"]();if(0===a.h.length)return a.g.warn(kb),d["return"]();a.l=!0;a.g.info("First (index: "+a.a+")");b=a.h[a.a];_.D(d,2,3);a.g.info("First loading (index: "+a.a+")");return _.x(d,tu(a,b),5);case 5:a.g.info("First playing (index: "+a.a+")");case 3:_.wh(d);a.l=!1;yu(a);_.xh(d);break;case 2:throw c=_.F(d),a.g.error("First failed (index: "+a.a+")"),c;}})};
628
- _.r.cj=function(){var a=this,b,c,d;return _.H(function(e){switch(e.a){case 1:if(a.l)return a.g.warn("Cannot play next item while busy"),e["return"]();if(!a.oe())return a.g.warn("There are no more items in the playlist"),e["return"]();a.l=!0;a.a+=1;a.g.info("Next (index: "+a.a+")");b=a.f;a.j.transition===_.cf&&b.player.pause();mu(a,a.a+-2);a.o["delete"](a.a);c=a.h[a.a];_.D(e,2,3);a.g.info("Next loading (index: "+a.a+")");return _.x(e,uu(a,c),5);case 5:a.g.info("Next playing (index: "+a.a+")");case 3:_.wh(e);
629
- a.l=!1;b&&qu(a,b);yu(a);_.xh(e);break;case 2:throw d=_.F(e),a.g.error("Next failed (index: "+a.a+")"),d;}})};
630
- _.r.Xn=function(){var a=this,b,c,d;return _.H(function(e){switch(e.a){case 1:if(a.l)return a.g.warn("Cannot play previous item while busy"),e["return"]();if(!a.ni())return a.g.warn("There are no more previous items in the playlist"),e["return"]();a.l=!0;--a.a;a.g.info("Previous (index: "+a.a+")");b=a.f;a.j.transition===_.cf&&b.player.pause();mu(a,a.a+2);a.o["delete"](a.a);c=a.h[a.a];_.D(e,2,3);a.g.info("Previous loading (index: "+a.a+")");return _.x(e,uu(a,c),5);case 5:a.g.info("Previous playing (index: "+
631
- a.a+")");case 3:_.wh(e);a.l=!1;b&&qu(a,b);yu(a);_.xh(e);break;case 2:throw d=_.F(e),a.g.error("Previous failed (index: "+a.a+")"),d;}})};_.r.destroy=function(){var a=this;return _.H(function(b){return 1==b.a?(a.g.info("Destroy"),_.x(b,Promise.all([nu(a),a.f?qu(a,a.f):Promise.resolve()]),2)):_.x(b,zu(a),0)})};_.I(xd,lu);lu.prototype.destroy=lu.prototype.destroy;lu.prototype.playPrev=lu.prototype.Xn;lu.prototype.playNext=lu.prototype.cj;lu.prototype.playFirst=lu.prototype.Wn;lu.prototype.hasPrev=lu.prototype.ni;
632
- lu.prototype.hasNext=lu.prototype.oe;lu.prototype.setIndex=lu.prototype.ro;lu.prototype.setItems=lu.prototype.so;lu.prototype.getPreloading=lu.prototype.gi;lu.prototype.getPrev=lu.prototype.hi;lu.prototype.getNext=lu.prototype.ei;lu.prototype.getCurrentPlayer=lu.prototype.ff;lu.prototype.getCurrent=lu.prototype.he;var pu="preload",ru=_.Ge;var Au=new Map;_.r=Cu.prototype;_.r.destroy=function(){this.a.dispose();this.a=null};_.r.reset=function(){this.a=new muxjs.mp4.Transmuxer(this.f)};_.r.isSupported=function(a,b){var c="mp2t"===a.toLowerCase().split(";")[0].split("/")[1],d=a.toLowerCase().split(";")[0]===_.Qc;if(!window.muxjs||!c&&!d)return!1;if(d)return _.Bu(Uc);if(b)return _.Bu(Du(b,a));c=Du(_.Pc,a);d=Du(_.Jg,a);return _.Bu(c)||_.Bu(d)};_.r.isMuxed=function(a,b){return 1<this.demuxMimeTypes(a,b).size};
633
- _.r.demuxMimeTypes=function(a,b){var c=new Map;c.set(a,b);try{var d=_.sl(b),e=_.tl(b).split(","),f=new Map,g=rj(_.Pc,e),h=rj(_.Jg,e);g&&f.set(_.Pc,this.convertCodecs(_.Pc,_.rl(d,g)));h&&f.set(_.Jg,this.convertCodecs(_.Jg,_.rl(d,h)));return f}catch(l){return c}};_.r.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]===_.Qc?Uc:"mp2t"===b.toLowerCase().split(";")[0].split("/")[1]?Du(a,b):b};_.r.getOriginalMimeType=function(){return this.h};
634
- _.r.transmux=function(a){function b(){g={video:_.Um.apply(Nm,_.hh(d)),captions:f,audio:_.Um.apply(Nm,_.hh(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===Kw?d.push(l):h.type===Lw&&e.push(l)}var d=[],e=[],f=[],g=null;a=_.Oj(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 _.N(_.O,3,3018);return g};
635
- ml(_.Qc,function(){return new Cu(_.Qc)});ml(_.Kg,function(){return new Cu(_.Kg)});var Lw=_.Pc,Kw=_.Jg;Eu.prototype.getCuePoints=function(){};Eu.prototype.Rb=function(){};Eu.prototype.Qb=function(){};_.I("clpp.ads.IAdsTimeline",Eu);Eu.prototype.hasPostroll=Eu.prototype.Qb;Eu.prototype.hasPreroll=Eu.prototype.Rb;Eu.prototype.getCuePoints=Eu.prototype.getCuePoints;_.Fu.prototype.f=function(){};_.Fu.prototype.a=function(){};_.Fu.prototype.h=function(){};_.Fu.prototype.o=function(){};_.w(Gu,_.dn);Gu.prototype.Ae=function(a,b){for(var c=a.drm.customData.headers||{},d=_.v(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};Gu.prototype.Vh=function(a,b){var c=An(b);switch(this.o){case Mw:return c;case Nw:return(new _.Xj(c)).a;default:throw Error("Unknown content ID strategy");}};Gu.prototype.Mi=function(a,b){b.headers[Aa]=Oc;this.Ae(a,b);var c={spc:_.Om(b.body)};b.body=_.Q.Hd(_.Zj(c,!0))};
636
- Gu.prototype.Ni=function(a,b){var c=_.Q.ea(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.Qm(c).buffer};_.I(td,Gu);Gu.prototype.onFairPlayLicenseResponse=Gu.prototype.Ni;Gu.prototype.onFairPlayLicenseRequest=Gu.prototype.Mi;Gu.prototype.extractFairPlayContentId=Gu.prototype.Vh;Gu.prototype.onLicenseRequest=Gu.prototype.Ae;Gu.prototype.constructor=Gu.prototype.constructor;Gu.NAME=Wa;var Nw="hostname",Mw="full-skd";
637
- Gu.FairPlayContentIdStrategy={HOSTNAME:Nw,FULL_SKD:Mw};_.w(Hu,_.Fu);Hu.prototype.h=function(a){a=a.getConfiguration();if(a.drm&&a.drm&&a.drm.env===Wa){a=a.drm.customData;if(!a)throw new _.N(_.O,7,7100,_.Hd);a=new Gu(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||Mw);_.Zm(a)}};Hu.prototype.a=function(){delete _.Ym.HeaderDrm};Hu.prototype.id=function(){return"headerdrm"};_.I("clpp.drm.HeaderDrmComponent",Hu);_.ht(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=_.Oj(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.ht(function(){_.Ph("mathRound.install")});_.ht(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;le in document||(Object.defineProperty(document,le,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
638
- {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Iu);document.addEventListener("webkitfullscreenerror",Iu);document.addEventListener("mozfullscreenchange",Iu);document.addEventListener("mozfullscreenerror",Iu);document.addEventListener("MSFullscreenChange",Iu);document.addEventListener("MSFullscreenError",Iu)}});_.ht(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Ph("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Ku,document.exitPictureInPicture=Lu,document.addEventListener("webkitpresentationmodechanged",Ju,!0))}});_.ht(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=Mu)}});_.ht(function(){if(window.VTTCue)_.Oh("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Oh(Ub),window.VTTCue=Nu;else if(6===a)_.Oh("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=Ou;else{try{var b=!!Nu(1,2,"")}catch(c){b=!1}b&&(_.Oh(Ub),window.VTTCue=Nu)}}else _.Qh("VTTCue not available.")});var Pu;_.ht(function(){_.Ph("InputEvent.install");_.wl("Trident/")&&HTMLInputElement.prototype.addEventListener!==Qu&&(_.Oh("Patching input event support on IE."),Pu=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=Qu)});_.ht(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.ht(function(){_.Ph("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}}});_.Zu.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)};_.Zu.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.av.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.Jg);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.qk;c=c.play();var e=(new _.Yh(function(){b(a)})).ha(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===qb?b(!0):b(!1)}):b(!0);return d};
639
- var $u=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,
616
+ 7100,"`playlist.endTime` config value is required for DVR content!");}wh(n);qu(c);c.w="open";return _.x(n,vu(c,b),4)}2!=n.a&&(c.H=0,c.o=b,c.fa=!0,su(c,b[0].playlist||{}));_.xh(n);c.w=null;return _.yh(n)})};
617
+ _.r.Oj=function(a){var b=this,c;return _.I(function(d){if(1==d.a){if(b.w)throw new _.N(_.O,7,7008,"Cannot call addItem() while "+b.w+fa);if(!b.fa)throw new _.N(_.O,7,7008,"open() must be called before addItem()!");if(!a.id||!a.source)throw new _.N(_.O,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 _.N(_.O,7,7100,"A config with this `id` already exists in the playlist!");wh(d);b.w="addItem";b.o.push(a);return _.x(d,
618
+ wu(b,a),2)}_.xh(d);b.w=null;return _.yh(d)})};_.r.getCurrentItem=function(){return this.o[this.H]||null};_.r.getCurrentItemIndex=function(){return this.H};_.r.cm=function(){return _.jh(this.o).concat()};_.r.fe=function(){return this.o.length};_.r.getTimeline=function(){return this.a?this.a.getTimeline():null};_.r.seekWith=function(a){return this.a?this.a.seekWith(a):Promise.resolve()};_.r.release=function(){this.o=[];this.H=0;this.fa=!1;return S.prototype.release.call(this)};
619
+ _.r.destroy=function(){qu(this);return S.prototype.destroy.call(this)};_.r.setCdnErrorCallback=function(){throw new _.N(1,7,7009,"CDN switching is not supported!");};_.K("clpp.plist.ScPlaylist",pu);pu.prototype.setCdnErrorCallback=pu.prototype.setCdnErrorCallback;pu.prototype.destroy=pu.prototype.destroy;pu.prototype.release=pu.prototype.release;pu.prototype.seekWith=pu.prototype.seekWith;pu.prototype.getTimeline=pu.prototype.getTimeline;pu.prototype.getSize=pu.prototype.fe;
620
+ pu.prototype.getPlaylist=pu.prototype.cm;pu.prototype.getCurrentItemIndex=pu.prototype.getCurrentItemIndex;pu.prototype.getCurrentItem=pu.prototype.getCurrentItem;pu.prototype.addItem=pu.prototype.Oj;pu.prototype.open=pu.prototype.open;_.w(zu,_.yi);_.r=zu.prototype;_.r.ce=function(){return this.f};_.r.cf=function(){return this.f?this.f.player:null};_.r.fi=function(){return this.o.get(this.a+1)||null};_.r.ii=function(){return this.o.get(this.a-1)||null};_.r.hi=function(){return[this.ii(),this.fi()].filter(Boolean)};_.r.ro=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:[]}})};
621
+ _.r.qo=function(a){if(0===this.h.length)throw Error(ib);if(0>a||a>this.h.length-1)throw Error("Index out of bounds");this.a=a};_.r.je=function(){return this.a<this.h.length-1};_.r.oi=function(){return 0<this.a};
622
+ _.r.Sn=function(){var a=this,b,c;return _.I(function(d){switch(d.a){case 1:if(a.l)return a.g.warn("Cannot play first item while busy"),d["return"]();if(0===a.h.length)return a.g.warn(ib),d["return"]();a.l=!0;a.g.info("First (index: "+a.a+")");b=a.h[a.a];_.F(d,2,3);a.g.info("First loading (index: "+a.a+")");return _.x(d,Hu(a,b),5);case 5:a.g.info("First playing (index: "+a.a+")");case 3:_.xh(d);a.l=!1;Mu(a);_.yh(d);break;case 2:throw c=_.H(d),a.g.error("First failed (index: "+a.a+")"),c;}})};
623
+ _.r.gj=function(){var a=this,b,c,d;return _.I(function(e){switch(e.a){case 1:if(a.l)return a.g.warn("Cannot play next item while busy"),e["return"]();if(!a.je())return a.g.warn("There are no more items in the playlist"),e["return"]();a.l=!0;a.a+=1;a.g.info("Next (index: "+a.a+")");b=a.f;a.j.transition===_.cf&&b.player.pause();Au(a,a.a+-2);a.o["delete"](a.a);c=a.h[a.a];_.F(e,2,3);a.g.info("Next loading (index: "+a.a+")");return _.x(e,Iu(a,c),5);case 5:a.g.info("Next playing (index: "+a.a+")");case 3:_.xh(e);
624
+ a.l=!1;b&&Eu(a,b);Mu(a);_.yh(e);break;case 2:throw d=_.H(e),a.g.error("Next failed (index: "+a.a+")"),d;}})};
625
+ _.r.Tn=function(){var a=this,b,c,d;return _.I(function(e){switch(e.a){case 1:if(a.l)return a.g.warn("Cannot play previous item while busy"),e["return"]();if(!a.oi())return a.g.warn("There are no more previous items in the playlist"),e["return"]();a.l=!0;--a.a;a.g.info("Previous (index: "+a.a+")");b=a.f;a.j.transition===_.cf&&b.player.pause();Au(a,a.a+2);a.o["delete"](a.a);c=a.h[a.a];_.F(e,2,3);a.g.info("Previous loading (index: "+a.a+")");return _.x(e,Iu(a,c),5);case 5:a.g.info("Previous playing (index: "+
626
+ a.a+")");case 3:_.xh(e);a.l=!1;b&&Eu(a,b);Mu(a);_.yh(e);break;case 2:throw d=_.H(e),a.g.error("Previous failed (index: "+a.a+")"),d;}})};_.r.destroy=function(){var a=this;return _.I(function(b){return 1==b.a?(a.g.info("Destroy"),_.x(b,Promise.all([Bu(a),a.f?Eu(a,a.f):Promise.resolve()]),2)):_.x(b,Nu(a),0)})};_.K(wd,zu);zu.prototype.destroy=zu.prototype.destroy;zu.prototype.playPrev=zu.prototype.Tn;zu.prototype.playNext=zu.prototype.gj;zu.prototype.playFirst=zu.prototype.Sn;zu.prototype.hasPrev=zu.prototype.oi;
627
+ zu.prototype.hasNext=zu.prototype.je;zu.prototype.setIndex=zu.prototype.qo;zu.prototype.setItems=zu.prototype.ro;zu.prototype.getPreloading=zu.prototype.hi;zu.prototype.getPrev=zu.prototype.ii;zu.prototype.getNext=zu.prototype.fi;zu.prototype.getCurrentPlayer=zu.prototype.cf;zu.prototype.getCurrent=zu.prototype.ce;var Du="preload",Fu=_.He;var Ou=new Map;_.r=Qu.prototype;_.r.destroy=function(){this.a.dispose();this.a=null};_.r.reset=function(){this.a=new muxjs.mp4.Transmuxer(this.f)};_.r.isSupported=function(a,b){var c="mp2t"===a.toLowerCase().split(";")[0].split("/")[1],d=a.toLowerCase().split(";")[0]===_.Oc;if(!window.muxjs||!c&&!d)return!1;if(d)return _.Pu(Sc);if(b)return _.Pu(Ru(b,a));c=Ru(_.Nc,a);d=Ru(_.Mg,a);return _.Pu(c)||_.Pu(d)};_.r.isMuxed=function(a,b){return 1<this.demuxMimeTypes(a,b).size};
628
+ _.r.demuxMimeTypes=function(a,b){var c=new Map;c.set(a,b);try{var d=_.xn(b),e=_.yn(b).split(","),f=new Map,g=vn(_.Nc,e),h=vn(_.Mg,e);g&&f.set(_.Nc,this.convertCodecs(_.Nc,_.wn(d,g)));h&&f.set(_.Mg,this.convertCodecs(_.Mg,_.wn(d,h)));return f}catch(l){return c}};_.r.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]===_.Oc?Sc:"mp2t"===b.toLowerCase().split(";")[0].split("/")[1]?Ru(a,b):b};_.r.getOriginalMimeType=function(){return this.h};
629
+ _.r.transmux=function(a){function b(){g={video:_.Gm.apply(zm,_.jh(d)),captions:f,audio:_.Gm.apply(zm,_.jh(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===ww?d.push(l):h.type===xw&&e.push(l)}var d=[],e=[],f=[],g=null;a=_.Mi(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 _.N(_.O,3,3018);return g};
630
+ var xw=_.Nc,ww=_.Mg;Su.prototype.getCuePoints=function(){};Su.prototype.Ob=function(){};Su.prototype.Nb=function(){};_.K("clpp.ads.IAdsTimeline",Su);Su.prototype.hasPostroll=Su.prototype.Nb;Su.prototype.hasPreroll=Su.prototype.Ob;Su.prototype.getCuePoints=Su.prototype.getCuePoints;_.r=_.Tu.prototype;_.r.install=function(){};_.r.uninstall=function(){};_.r.beforeLoad=function(){};_.r.afterLoad=function(){};_.r.playerConstructed=function(){};_.r.playerDestroyed=function(){};_.w(Uu,_.Rp);Uu.prototype.ve=function(a,b){for(var c=a.drm.customData.headers||{},d=_.v(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};Uu.prototype.Wh=function(a,b){var c=nq(b);switch(this.o){case yw:return c;case zw:return(new _.mn(c)).a;default:throw Error("Unknown content ID strategy");}};Uu.prototype.Oi=function(a,b){b.headers[za]=Mc;this.ve(a,b);var c={spc:_.Am(b.body)};b.body=_.R.yd(_.on(c,!0))};
631
+ Uu.prototype.Pi=function(a,b){var c=_.R.ea(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.Cm(c).buffer};_.K(sd,Uu);Uu.prototype.onFairPlayLicenseResponse=Uu.prototype.Pi;Uu.prototype.onFairPlayLicenseRequest=Uu.prototype.Oi;Uu.prototype.extractFairPlayContentId=Uu.prototype.Wh;Uu.prototype.onLicenseRequest=Uu.prototype.ve;Uu.prototype.constructor=Uu.prototype.constructor;Uu.NAME=Ua;var zw="hostname",yw="full-skd";
632
+ Uu.FairPlayContentIdStrategy={HOSTNAME:zw,FULL_SKD:yw};_.w(Vu,_.Tu);Vu.prototype.beforeLoad=function(a){a=a.getConfiguration();if(a.drm&&a.drm&&a.drm.env===Ua){a=a.drm.customData;if(!a)throw new _.N(_.O,7,7100,_.Gd);a=new Uu(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||yw);_.Nn(a)}};Vu.prototype.uninstall=function(){delete _.Mn.HeaderDrm};Vu.prototype.id=function(){return"headerdrm"};_.K("clpp.drm.HeaderDrmComponent",Vu);var cv;_.vv.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)};_.vv.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.xv.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.Mg);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.am;c=c.play();var e=(new _.dj(function(){b(a)})).ha(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===ob?b(!0):b(!1)}):b(!0);return d};
633
+ var wv=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,
640
634
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
641
635
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
642
636
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
643
637
  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,
644
638
  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,
645
- 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]);_.r=_.bv.prototype;_.r.getDuration=function(){return this.a};_.r.getId=function(){return this.id};_.r.cc=function(){return this.f};_.r.se=function(){return this.h};_.r.ra=function(a){return this.getId()===a.getId()&&this.cc()===a.cc()&&this.getDuration()===a.getDuration()&&this.se()===a.se()};_.I("clpp.media.TimelineWindow",_.bv);_.bv.prototype.isDynamic=_.bv.prototype.se;_.bv.prototype.getStart=_.bv.prototype.cc;_.bv.prototype.getId=_.bv.prototype.getId;_.bv.prototype.getDuration=_.bv.prototype.getDuration;_.Ow=new _.J("clpp.media.TimestampParser");_.r=_.cv.prototype;_.r.gm=function(a){return this.a[a]||null};_.r.hm=function(){return this.a.length};_.r.im=function(){return this.a};_.r.ci=function(){return this.a[this.f]||null};_.r.Ul=function(){return this.f};_.I("clpp.media.Timeline",_.cv);_.cv.prototype.getCurrentWindowIndex=_.cv.prototype.Ul;_.cv.prototype.getCurrentWindow=_.cv.prototype.ci;_.cv.prototype.getWindows=_.cv.prototype.im;_.cv.prototype.getWindowCount=_.cv.prototype.hm;_.cv.prototype.getWindow=_.cv.prototype.gm;_.fv={};_.hv={};var mv=window.XMLHttpRequest;_.w(Gk,_.rk);Gk.prototype.then=function(a,b){this.T=this.T.then(a,b);return this};Gk.prototype["catch"]=function(a){this.T=this.T["catch"](a);return this};Gk.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(){})};var Av=window.fetch,yv=window.AbortController,xv=window.Headers;_.Cv={};_.r=_.Ov.prototype;_.r.getBackgroundColor=function(){return this.K};_.r.setBackgroundColor=function(a){this.K=a;this.Wb()};_.r.getWindowColor=function(){return this.S};_.r.setWindowColor=function(a){this.S=a;this.Wb()};_.r.getFontFamily=function(){return this.P};_.r.setFontFamily=function(a){this.P=a;this.Wb()};_.r.getFontColor=function(){return this.N};_.r.setFontColor=function(a){this.N=a;this.Wb()};_.r.getFontSize=function(){return this.I};_.r.setFontSize=function(a){this.I=a;this.Wb()};
646
- _.r.getFontSizePercent=function(){return null===this.B?Pw:this.B};_.r.setFontSizePercent=function(a){this.B=a;this.Wb()};_.r.getEdgeColor=function(){return this.H};_.r.setEdgeColor=function(a){this.H=a;this.Wb()};_.r.getEdgeType=function(){return this.o};_.r.setEdgeType=function(a){this.o=a;this.Wb()};_.Ov.prototype.setEdgeType=_.Ov.prototype.setEdgeType;_.Ov.prototype.getEdgeType=_.Ov.prototype.getEdgeType;_.Ov.prototype.setEdgeColor=_.Ov.prototype.setEdgeColor;_.Ov.prototype.getEdgeColor=_.Ov.prototype.getEdgeColor;
647
- _.Ov.prototype.setFontSizePercent=_.Ov.prototype.setFontSizePercent;_.Ov.prototype.getFontSizePercent=_.Ov.prototype.getFontSizePercent;_.Ov.prototype.setFontSize=_.Ov.prototype.setFontSize;_.Ov.prototype.getFontSize=_.Ov.prototype.getFontSize;_.Ov.prototype.setFontColor=_.Ov.prototype.setFontColor;_.Ov.prototype.getFontColor=_.Ov.prototype.getFontColor;_.Ov.prototype.setFontFamily=_.Ov.prototype.setFontFamily;_.Ov.prototype.getFontFamily=_.Ov.prototype.getFontFamily;
648
- _.Ov.prototype.setWindowColor=_.Ov.prototype.setWindowColor;_.Ov.prototype.getWindowColor=_.Ov.prototype.getWindowColor;_.Ov.prototype.setBackgroundColor=_.Ov.prototype.setBackgroundColor;_.Ov.prototype.getBackgroundColor=_.Ov.prototype.getBackgroundColor;var Pw=1/15;var Wv="raised",Xv="depressed",Zv="dropshadow",Yv="uniform";_.I("clpp.text.EdgeType",{NONE:_.Re,RAISED:Wv,DEPRESSED:Xv,DROP_SHADOW:Zv,UNIFORM:Yv});aw.prototype.parseInit=function(a){try{var b=_.Ev(_.Kc);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=_.Ev(_.Lc);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 _.N(_.O,2,2011);}};
649
- aw.prototype.parseMedia=function(a,b){if(!this.a)throw new _.N(_.O,2,2011);return this.a.parseMedia(a,b)};_.Dv(Jc,aw);_.w(_.cw,_.Ov);_.r=_.cw.prototype;_.r.append=function(){};_.r.remove=function(){return!0};_.r.isTextVisible=function(){return this.w};_.r.setTextVisibility=function(a){this.w=a};
650
- _.r.Wb=function(){if(!this.j){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.$v(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.h.textContent="."+this.f+"::cue {"+b+"}"}};_.r.destroy=function(){this.l.classList.remove(this.f);document.head.removeChild(this.h);this.j=!0;return Promise.resolve()};var bw=0;dw.prototype.a=function(){return!0};dw.prototype.create=function(a){return new _.cw(a)};_.mq("native",new dw);_.r=_.ew.prototype;_.r.onPlayerCreated=function(){};_.r.onContentWillLoad=function(){return Promise.resolve()};_.r.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.r.onPlayerWillDestroy=function(){};_.r.onPlayerWillRelease=function(){};}.call(g,this));
639
+ 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]);_.yv={};_.r=_.Cv.prototype;_.r.getBackgroundColor=function(){return this.K};_.r.setBackgroundColor=function(a){this.K=a;this.Tb()};_.r.getWindowColor=function(){return this.U};_.r.setWindowColor=function(a){this.U=a;this.Tb()};_.r.getFontFamily=function(){return this.P};_.r.setFontFamily=function(a){this.P=a;this.Tb()};_.r.getFontColor=function(){return this.O};_.r.setFontColor=function(a){this.O=a;this.Tb()};_.r.getFontSize=function(){return this.I};_.r.setFontSize=function(a){this.I=a;this.Tb()};
640
+ _.r.getFontSizePercent=function(){return null===this.B?Aw:this.B};_.r.setFontSizePercent=function(a){this.B=a;this.Tb()};_.r.getEdgeColor=function(){return this.H};_.r.setEdgeColor=function(a){this.H=a;this.Tb()};_.r.getEdgeType=function(){return this.o};_.r.setEdgeType=function(a){this.o=a;this.Tb()};_.Cv.prototype.setEdgeType=_.Cv.prototype.setEdgeType;_.Cv.prototype.getEdgeType=_.Cv.prototype.getEdgeType;_.Cv.prototype.setEdgeColor=_.Cv.prototype.setEdgeColor;_.Cv.prototype.getEdgeColor=_.Cv.prototype.getEdgeColor;
641
+ _.Cv.prototype.setFontSizePercent=_.Cv.prototype.setFontSizePercent;_.Cv.prototype.getFontSizePercent=_.Cv.prototype.getFontSizePercent;_.Cv.prototype.setFontSize=_.Cv.prototype.setFontSize;_.Cv.prototype.getFontSize=_.Cv.prototype.getFontSize;_.Cv.prototype.setFontColor=_.Cv.prototype.setFontColor;_.Cv.prototype.getFontColor=_.Cv.prototype.getFontColor;_.Cv.prototype.setFontFamily=_.Cv.prototype.setFontFamily;_.Cv.prototype.getFontFamily=_.Cv.prototype.getFontFamily;
642
+ _.Cv.prototype.setWindowColor=_.Cv.prototype.setWindowColor;_.Cv.prototype.getWindowColor=_.Cv.prototype.getWindowColor;_.Cv.prototype.setBackgroundColor=_.Cv.prototype.setBackgroundColor;_.Cv.prototype.getBackgroundColor=_.Cv.prototype.getBackgroundColor;var Aw=1/15;_.w(_.Jv,_.Cv);_.r=_.Jv.prototype;_.r.append=function(){};_.r.remove=function(){return!0};_.r.isTextVisible=function(){return this.w};_.r.setTextVisibility=function(a){this.w=a};
643
+ _.r.Tb=function(){if(!this.j){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.Hv(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.h.textContent="."+this.f+"::cue {"+b+"}"}};_.r.destroy=function(){this.l.classList.remove(this.f);document.head.removeChild(this.h);this.j=!0;return Promise.resolve()};var Iv=0;Kv.prototype.a=function(){return!0};Kv.prototype.create=function(a){return new _.Jv(a)};Lv.prototype.parseInit=function(a){try{var b=_.Av(_.Ic);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=_.Av(_.Jc);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 _.N(_.O,2,2011);}};
644
+ Lv.prototype.parseMedia=function(a,b){if(!this.a)throw new _.N(_.O,2,2011);return this.a.parseMedia(a,b)};_.Wm(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=_.Mi(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});
645
+ _.Wm(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;me in document||(Object.defineProperty(document,me,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
646
+ {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Wu);document.addEventListener("webkitfullscreenerror",Wu);document.addEventListener("mozfullscreenchange",Wu);document.addEventListener("mozfullscreenerror",Wu);document.addEventListener("MSFullscreenChange",Wu);document.addEventListener("MSFullscreenError",Wu)}});
647
+ _.Wm(function(){_.Qh("InputEvent.install");_.hj("Trident/")&&HTMLInputElement.prototype.addEventListener!==dv&&(_.Ph("Patching input event support on IE."),cv=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=dv)});_.Wm(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.Wm(function(){_.Qh("mathRound.install")});
648
+ _.Wm(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Qh("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Yu,document.exitPictureInPicture=Zu,document.addEventListener("webkitpresentationmodechanged",Xu,!0))}});
649
+ _.Wm(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=$u)}});_.Wm(function(){_.Qh("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}}});
650
+ _.Wm(function(){if(window.VTTCue)_.Ph("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Ph(Sb),window.VTTCue=av;else if(6===a)_.Ph("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=bv;else{try{var b=!!av(1,2,"")}catch(c){b=!1}b&&(_.Ph(Sb),window.VTTCue=av)}}else _.Rh("VTTCue not available.")});_.Vh(new ou);_.zv(_.Hc,Lv);_.Mt("native",new Kv);cn(_.Oc,function(){return new Qu(_.Oc)});cn(_.Ng,function(){return new Qu(_.Ng)});_.r=_.Mv.prototype;_.r.getDuration=function(){return this.a};_.r.getId=function(){return this.id};_.r.Zb=function(){return this.f};_.r.ne=function(){return this.h};_.r.ra=function(a){return this.getId()===a.getId()&&this.Zb()===a.Zb()&&this.getDuration()===a.getDuration()&&this.ne()===a.ne()};_.K("clpp.media.TimelineWindow",_.Mv);_.Mv.prototype.isDynamic=_.Mv.prototype.ne;_.Mv.prototype.getStart=_.Mv.prototype.Zb;_.Mv.prototype.getId=_.Mv.prototype.getId;_.Mv.prototype.getDuration=_.Mv.prototype.getDuration;_.Bw=new _.L("clpp.media.TimestampParser");_.r=_.Nv.prototype;_.r.gm=function(a){return this.a[a]||null};_.r.hm=function(){return this.a.length};_.r.im=function(){return this.a};_.r.di=function(){return this.a[this.f]||null};_.r.Ul=function(){return this.f};_.K("clpp.media.Timeline",_.Nv);_.Nv.prototype.getCurrentWindowIndex=_.Nv.prototype.Ul;_.Nv.prototype.getCurrentWindow=_.Nv.prototype.di;_.Nv.prototype.getWindows=_.Nv.prototype.im;_.Nv.prototype.getWindowCount=_.Nv.prototype.hm;_.Nv.prototype.getWindow=_.Nv.prototype.gm;_.Qv={};_.Rv={};var Dv="raised",Ev="depressed",Gv="dropshadow",Fv="uniform";_.K("clpp.text.EdgeType",{NONE:_.Re,RAISED:Dv,DEPRESSED:Ev,DROP_SHADOW:Gv,UNIFORM:Fv});_.r=_.Tv.prototype;_.r.onPlayerCreated=function(){};_.r.onContentWillLoad=function(){return Promise.resolve()};_.r.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.r.onPlayerWillDestroy=function(){};_.r.onPlayerWillRelease=function(){};}.call(g,this));
651
651
  g.clpp._ = _;
652
652
  if (typeof(module)!="undefined"&&module.exports) {module.exports=g.clpp;}
653
653
  else if (typeof(define)!="undefined" && define.amd) {define(function(){return g.clpp;});}