@castlabs/prestoplay 6.7.0 → 6.8.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 (59) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/cjs/cl.adobe.js +3 -3
  3. package/cjs/cl.airplay.js +3 -3
  4. package/cjs/cl.broadpeak.js +6 -6
  5. package/cjs/cl.cast.js +110 -110
  6. package/cjs/cl.conviva.js +33 -33
  7. package/cjs/cl.core.js +416 -417
  8. package/cjs/cl.crypto.js +9 -9
  9. package/cjs/cl.dash.js +72 -72
  10. package/cjs/cl.externs.js +26 -26
  11. package/cjs/cl.freewheel.js +23 -23
  12. package/cjs/cl.hls.js +67 -67
  13. package/cjs/cl.hlssmpte.js +6 -6
  14. package/cjs/cl.htmlcue.js +31 -31
  15. package/cjs/cl.ima.js +23 -23
  16. package/cjs/cl.mse.js +270 -259
  17. package/cjs/cl.muxdata.js +15 -11
  18. package/cjs/cl.onboard.js +3 -3
  19. package/cjs/cl.persistent.js +13 -13
  20. package/cjs/cl.playlist.js +6 -6
  21. package/cjs/cl.smooth.js +70 -70
  22. package/cjs/cl.thumbnails.js +24 -24
  23. package/cjs/cl.tizen.js +69 -69
  24. package/cjs/cl.ttml.js +27 -27
  25. package/cjs/cl.verimatrix.js +5 -5
  26. package/cjs/cl.vimond.js +13 -13
  27. package/cjs/cl.vr.js +19 -19
  28. package/cjs/cl.vtt.js +14 -14
  29. package/cjs/cl.youbora.js +18 -18
  30. package/cl.adobe.js +3 -3
  31. package/cl.airplay.js +3 -3
  32. package/cl.broadpeak.js +5 -5
  33. package/cl.cast.js +86 -86
  34. package/cl.conviva.js +27 -27
  35. package/cl.core.js +355 -360
  36. package/cl.crypto.js +8 -8
  37. package/cl.dash.js +66 -66
  38. package/cl.externs.js +26 -26
  39. package/cl.freewheel.js +19 -19
  40. package/cl.hls.js +58 -57
  41. package/cl.hlssmpte.js +5 -5
  42. package/cl.htmlcue.js +25 -25
  43. package/cl.ima.js +17 -17
  44. package/cl.mse.js +237 -227
  45. package/cl.muxdata.js +12 -9
  46. package/cl.onboard.js +4 -4
  47. package/cl.persistent.js +9 -9
  48. package/cl.playlist.js +5 -5
  49. package/cl.smooth.js +58 -58
  50. package/cl.thumbnails.js +17 -17
  51. package/cl.tizen.js +57 -57
  52. package/cl.ttml.js +22 -22
  53. package/cl.verimatrix.js +4 -4
  54. package/cl.vimond.js +8 -8
  55. package/cl.vr.js +15 -15
  56. package/cl.vtt.js +12 -12
  57. package/cl.youbora.js +14 -14
  58. package/package.json +1 -1
  59. package/typings.d.ts +47 -20
package/cjs/cl.core.js CHANGED
@@ -1,316 +1,315 @@
1
1
  (function(){var g={}; var _ = {};
2
- (function(window){var ba,ca,da,ma,oa,sa,ua,ya,za,Ca,Da,Ga,Ma,Oa,Pa,Qa,Ra,Sa,Ta,Xa,Ya,Za,$a,ab,bb,cb,mb,pb,rb,sb,tb,vb,xb,Bb,Cb,Fb,Hb,fc,kc,yc,zc,Fc,Gc,Hc,Jc,Lc,Mc,Nc,Oc,Wc,bd,ed,fd,gd,kd,qd,sd,td,yd,Bd,Rd,Yd,fe,he,pe,te,Be,Je,Xe,af,bf,cf,df,ef,hf,kf,lf,mf,qf,uf,wf,vf,xf,yf,zf,Df,Gf,Ef,Ff,Hf,Jf,Kf,Of,Qf,Vf,Wf,cg,dg,ig,gg,jg,lg,kg,ng,qg,Dg,Eg,Gg,Ig,Hg,Jg,Mg,Ng,Rg,Tg,Vg,Sg,Pg,ch,kh,oh,qh,rh,uh,ph,mh,vh,yh,Xh,ai,bi,ci,fi,gi,qi,ri,wi,yi,zi,Ei,Fi,Gi,Ji,Li,Ki,Ii,Mi,Hi,Pi,Ni,Oi,Qi,Ui,$i,bj,oj,qj,rj,sj,Cj,ej,tj,Fj,Hj,Jj,Kj,
3
- Ij,Mj,Nj,Gj,Oj,Pj,Qj,Rj,Sj,Wj,Xj,Yj,Zj,Tj,dk,ek,gk,ik,qk,rk,sk,tk,uk,Ak,Ck,Mk,Tk,Wk,Xk,Zk,$k,hl,ll,ml,ql,wl,xl,zl,Al,Fl,Gl,Ll,Ml,Ql,Wl,em,gm,im,mm,nm,rm,cm,am,vm,pm,wm,ym,xm,Im,Hm,Am,Gm,Sl,hm,zm,Tl,um,$l,tm,bm,Vl,Nm,Pm,Qm,Rm,Sm,Xm,an,bn,dn,hn,nn,$m,on,pn,sn,vn,wn,yn,zn,un,tn,An,Bn,Cn,Hn,Mn,Nn,On,Sn,Rn,Un,Tn,Wn,Xn,Yn,Zn,Vn,ao,co,eo,fo,go,ho,io,jo,ko,mo,no,oo,po,lo,so,U,uo,to,wo,yo,zo,Do,Ao,V,Go,Ho,Io,Gn,Jo,Lo,Mo,No,Oo,Po,Qo,Ro,So,To,Uo,Vo,Wo,Xo,Yo,Zo,$o,cp,ap,dp,fp,gp,bp,ep,hp,ip,jp,kp,lp,mp,np,op,
4
- pp,qp,sp,up,vp,wp,tp,yp,zp,Dp,Ip,Jp,Lp,Kp,ni,Np,Qp,Pp,Rp,Sp,Op,Up,Vp,Tp,Wp,oi,Zp,ji,jq,mq,of,oq;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" to a log level. Falling back to default!";da="': 'output-restricted'";_.ea="6.7.0";_.fa="AdaptationSet";_.ha="Already destroyed. No-op";_.ia="Already released. No-op";_.ka="Autoplay is not allowed due to browser policy.";_.la="BANDWIDTH";ma="CHECKSUM";_.na="CODECS";oa="Can not set volume to ";_.qa="Cannot retrieve buffer information due to platform limitations";
5
- _.ra="CastlabsPlayer";sa="Content-Length";ua="Content-Type";_.va="Could not find configured DRM environment.";_.xa="DRM environment '";ya="DRM licenses loaded";za="DRMtoday";Ca="DRMtodayOnboard";Da="Destroying player";_.Ea="Disable track type ";Ga="Error while decoding string!";_.Ha="Error while fetching license!";_.Ia="FairPlay Certificate URL is not defined";_.Ja="FairPlay License URL is not defined";_.La="GROUP-ID";Ma="HW_SECURE_CRYPTO";Oa="HW_SECURE_DECODE";Pa="HeaderDrm";Qa="Invalid track type: ";
2
+ (function(window){var ba,ca,da,oa,sa,ta,xa,za,Aa,Ba,Ea,Ma,Na,Pa,Qa,Ra,Sa,Ta,Xa,Ya,Za,$a,ab,bb,cb,lb,ob,pb,rb,sb,ub,wb,zb,Ab,Db,Gb,ec,jc,xc,yc,Ec,Fc,Gc,Ic,Kc,Lc,Mc,Nc,Vc,ad,dd,ed,fd,jd,pd,rd,sd,xd,Ad,Qd,Xd,ee,ge,oe,re,Ae,Ie,We,$e,af,bf,cf,df,ff,hf,jf,lf,pf,tf,vf,uf,wf,xf,yf,Cf,Ff,Df,Ef,Gf,If,Jf,Nf,Pf,Uf,Vf,$f,cg,hg,fg,ig,kg,jg,mg,pg,Cg,Dg,Fg,Hg,Gg,Ig,Lg,Mg,Qg,Sg,Ug,Rg,Og,bh,jh,mh,ph,qh,th,oh,kh,uh,Wh,$h,ai,bi,ei,fi,pi,qi,vi,xi,yi,Di,Ei,Fi,Ii,Ki,Ji,Hi,Li,Gi,Oi,Mi,Ni,Pi,Qi,Zi,aj,nj,pj,qj,rj,Bj,dj,sj,Ej,Gj,Ij,Jj,Hj,Lj,
3
+ Mj,Fj,Nj,Oj,Pj,Qj,Rj,Vj,Wj,Xj,Yj,Sj,ck,dk,fk,hk,pk,qk,rk,sk,tk,zk,Bk,Lk,Sk,Vk,Wk,Yk,Zk,gl,kl,ll,pl,vl,wl,yl,zl,Bl,Fl,Ll,Ul,Wl,Yl,bm,cm,gm,Sl,Ql,km,em,lm,nm,mm,sm,rm,pm,qm,Hl,Xl,om,Il,jm,Pl,im,Rl,Kl,xm,zm,Am,Bm,Cm,Mm,Qm,Rm,Tm,Xm,bn,Pm,cn,dn,gn,kn,ln,nn,on,jn,hn,pn,qn,rn,wn,Bn,Cn,Dn,Hn,Gn,Jn,In,Ln,Mn,Nn,On,Kn,Qn,Sn,Tn,Un,Vn,Wn,Xn,Yn,Zn,ao,bo,co,eo,$n,ho,U,jo,io,lo,no,oo,so,po,V,vo,wo,xo,vn,yo,Ao,Bo,Co,Do,Eo,Fo,Go,Ho,Io,Jo,Ko,Lo,Mo,No,Oo,Po,So,Qo,To,Vo,Wo,Ro,Uo,Xo,Yo,Zo,$o,ap,bp,cp,dp,ep,fp,hp,jp,kp,
4
+ lp,ip,np,op,sp,xp,yp,Ap,zp,mi,Cp,Fp,Ep,Gp,Hp,Dp,Jp,Kp,Ip,Lp,ni,Op,ii,Zp,bq,nf,dq;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" to a log level. Falling back to default!";da="': 'output-restricted'";_.ea="6.8.0";_.fa="AdaptationSet";_.ha="Already destroyed. No-op";_.ia="Already released. No-op";_.la="Autoplay is not allowed due to browser policy.";_.ma="BANDWIDTH";_.na="CODECS";oa="Can not set volume to ";_.pa="Cannot retrieve buffer information due to platform limitations";
5
+ _.ra="CastlabsPlayer";sa="Content-Length";ta="Content-Type";_.va="Could not find configured DRM environment.";_.wa="DRM environment '";xa="DRM licenses loaded";za="DRMtoday";Aa="DRMtodayOnboard";Ba="Destroying player";_.Ca="Disable track type ";Ea="Error while decoding string!";_.Fa="Error while fetching license!";_.Ga="FairPlay Certificate URL is not defined";_.Ha="FairPlay License URL is not defined";_.Ia="GROUP-ID";Ma="HW_SECURE_CRYPTO";Na="HW_SECURE_DECODE";Pa="HeaderDrm";Qa="Invalid track type: ";
6
6
  Ra="InvalidStateError";Sa="Key status for Key ID '";Ta="License verification failed: ";_.Ua="Loading player with configuration";_.Va="MaxHeight";_.Wa="MaxWidth";Xa="Missing media element";Ya="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";Za="No event provided!";$a="No track data attached to the event, unable to add track!";ab="Not a persistent session.";bb="NotAllowedError";cb="NotSupportedError";_.db="PlayReady License URL is not defined";
7
- _.eb="Player sources";_.fb="Player state change: ";_.hb="Please make sure ";_.ib="QualityLevel";_.jb="RESOLUTION";_.kb="Releasing player with source";_.lb="Representation";mb="STANDARD";_.nb="SW_SECURE_CRYPTO";_.ob="SW_SECURE_DECODE";pb="Session is closed";rb="Setting native ";sb="Signature Verification failed";tb="Skipping Session creation. License for init data was already requested in Session: '";_.ub="SmoothStreamingMedia";vb="The index is not in the allowed range.";_.wb="URI";xb="Unable to translate ";
8
- _.yb="Unhandled/ignored event";_.zb="Unregistering listeners";Bb="Unsupported keySystem";Cb="Using VTTCue polyfill from 3 argument TextTrackCue.";_.Db="VIDEO";Fb="WebkitEmeManager.MediaKeySession.load";_.Gb="Widevine License URL is not defined";Hb="Will create EME Manager: ";_.Ib="ad-break-started";_.Jb="ad-break-stopped";_.Kb="ad-buffering";_.Lb="ad-clicked";_.Mb="ad-completed";_.Nb="ad-first-quartile";_.Ob="ad-impression";_.Pb="ad-loaded";_.Qb="ad-midpoint";_.Rb="ad-paused";_.Sb="ad-progress";
9
- _.Tb="ad-resumed";_.Ub="ad-skipped";_.Vb="ad-started";_.Wb="ad-stopped";_.Xb="ad-third-quartile";_.Yb="addtrack";_.Zb="ads-timeline-changed";_.$b="airplay-casting-ended";_.ac="airplay-casting-started";_.bc="airplay-status-changed";_.cc="application";_.dc="application/cea-608";_.ec="application/dash+xml";fc="application/mp4";_.gc='application/mp4; codecs\x3d"stpp"';_.hc='application/mp4; codecs\x3d"wvtt"';_.ic="application/ttml+xml";_.jc="application/vnd.ms-sstr+xml";kc="application/x-www-form-urlencoded";
10
- _.lc="audio";_.nc="audio/aac";_.pc="audio/ac3";_.qc="audio/eac3";_.rc="audio/mp4";_.sc="audiobufferchanged";_.tc="autoplaynotallowed";_.uc="bitratechanged";_.vc="boolean";_.wc="bufferingended";_.xc="bufferingstarted";yc="canplay";zc="canplaythrough";_.Ac="castingstarted";_.Bc="caststatuschanged";_.Cc="cdn-switch-success";_.Dc="cenc";_.Ec="center";Fc="certificate-request";Gc="change";Hc="chrome";_.Ic="clpp-fill";Jc="clpp-hidden";_.Kc="clpp.cast.CastSender";Lc="clpp.drm.HeaderDrm";Mc="clpp.drm.eme.AppleEmeManager";
11
- Nc="clpp.native.Player";Oc="clpp.utils.Platform";_.Pc="codecs";_.Qc="column-reverse";_.Rc="com.adobe.primetime";_.Sc="com.apple.fps";_.Tc="com.microsoft.playready";_.Uc="com.widevine.alpha";_.Vc="config.drm.customData is not defined";Wc="controls";_.Xc="cuechange";_.Yc="destroy()";_.Zc="disabled";_.$c="div";_.ad="drmexpirationupdate";bd="drmrenewalstarted";_.cd="drmsessionpersisted";_.dd="drmsessionupdate";ed="drmtoday";fd="durationchange";gd="encrypted";_.hd="end";_.id="ended";_.jd="error";kd="fullscreenElement";
12
- _.ld="function";_.md="height";_.nd="hidden";_.od="image";_.pd="internal-error";qd="keystatuseschange";_.rd="left";sd="license-renewal";td="license-request";_.ud="line-left";_.vd="line-right";_.wd="loadeddata";_.xd="loadedmetadata";yd="loadstart";_.zd="mdat";_.Ad="mdia";Bd="message";_.Cd="metadata";_.Dd="mimeType";_.Ed="minf";_.Gd="moov";_.Hd="mp4";_.Id="mpd-type-changed";_.Jd="mpeg-dash-callback-event";_.Kd="none";_.k="number";_.Ld="object";_.Md="onBitrateChanged()";_.Nd="onPlayerError()";_.Od="onPlayerWillDestroy";
13
- _.Pd="onPlayerWillRelease";_.Qd="onStateChanged()";Rd="online-status-changed";_.Sd="optional";_.Td="org.w3.clearkey";_.Ud="output-restricted";_.Vd="pause";_.Wd="persistent";_.Xd="persistent-license";Yd="picture-in-picture";_.Zd="play";_.$d="playing";_.ae="playlist-item-changed";_.be="playlist-modified";_.ce="progress";_.de="px";_.ee="ratechange";fe="released";_.ge="releasing";he="removetrack";_.ie="required";_.je="resize";_.ke="right";_.le="seeked";_.me="seeking";_.ne="showing";_.oe="sinf";pe="stalled";
14
- _.qe="start";_.se="statechanged";te="status-pending";_.ue="stbl";_.ve="string";_.we="stsd";_.xe="style";_.ye="subtitle";_.ze="subtitles-htmlcue";_.Ae="subtitles-ttml";Be="temporary";_.Ce="text";_.De="text/vtt";_.Ee="text/xml";_.Fe="timeupdate";_.Ge="trak";_.He="ttml-xml";_.Ie="und";Je="unknown";_.Ke="urn:scte:scte35";_.Le="urn:scte:scte35:2014";_.Me="user-seeked";_.Ne="user-seeking";_.Oe="value";_.Pe="vertical-lr";_.Qe="vertical-rl";_.Re="video";_.Se="video/mp2t";_.Te="video/mp4";_.Ue="videobufferchanged";
15
- _.Ve="videotrackchanged";_.We="vimond-response";Xe="visibilitychange";_.Ye="vtt-xml";_.Ze="waiting";_.$e="waitingforkey";af="webkit-org.w3.clearkey";bf="webkitkeyadded";cf="webkitkeyerror";df="webkitkeymessage";ef="webkitneedkey";_.gf="width";hf="x-dt-csl-tracking-token";kf="x-dt-follow-up-token";lf="x-dt-resp-code";mf=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
16
- _.u=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:mf(a)}};_.nf=function(a){if(!(a instanceof Array)){a=_.u(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};_.w=function(a,b){a.prototype=of(b.prototype);a.prototype.constructor=a;if(pf)pf(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]};
17
- qf=function(){qf=function(){};rf.Symbol||(rf.Symbol=sf)};uf=function(a,b){this.a=a;tf(this,"description",{configurable:!0,writable:!0,value:b})};wf=function(){qf();var a=rf.Symbol.iterator;a||(a=rf.Symbol.iterator=rf.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.ld&&tf(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return vf(mf(this))}});wf=function(){}};vf=function(a){wf();a={next:a};a[rf.Symbol.iterator]=function(){return this};return a};
18
- xf=function(){this.w=!1;this.j=null;this.f=void 0;this.a=1;this.m=this.o=0;this.B=this.g=null};yf=function(a){if(a.w)throw new TypeError("Generator is already running");a.w=!0};zf=function(a,b){a.g={Wf:b,lg:!0};a.a=a.o||a.m};_.x=function(a,b,c){a.a=c;return{value:b}};_.z=function(a){a.a=0};_.Af=function(a,b,c){a.o=b;void 0!=c&&(a.m=c)};_.Bf=function(a,b,c){a.a=b;a.o=c||0};_.Cf=function(a,b){a.o=b||0;var c=a.g.Wf;a.g=null;return c};Df=function(a){this.a=new xf;this.f=a};
19
- Gf=function(a,b){yf(a.a);var c=a.a.j;if(c)return Ef(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return Ff(a)};Ef=function(a,b,c,d){try{var e=b.call(a.a.j,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.j=null,zf(a.a,g),Ff(a)}a.a.j=null;d.call(a.a,f);return Ff(a)};
20
- Ff=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,zf(a.a,c)}a.a.w=!1;if(a.a.g){b=a.a.g;a.a.g=null;if(b.lg)throw b.Wf;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
21
- Hf=function(a){this.next=function(b){yf(a.a);a.a.j?b=Ef(a,a.a.j.next,b,a.a.A):(a.a.A(b),b=Ff(a));return b};this["throw"]=function(b){yf(a.a);a.a.j?b=Ef(a,a.a.j["throw"],b,a.a.A):(zf(a.a,b),b=Ff(a));return b};this["return"]=function(b){return Gf(a,b)};wf();this[Symbol.iterator]=function(){return this}};_.If=function(a,b){var c=new Hf(new Df(b));pf&&pf(c,a.prototype);return c};
22
- Jf=function(a,b){if(b){for(var c=rf,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&&tf(c,d,{configurable:!0,writable:!0,value:f})}};Kf=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())})};_.B=function(a){return Kf(new Hf(new Df(a)))};
23
- _.C=function(a,b){var c=a.split("."),d=Lf;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};Of=function(a){return a&&0<=Mf[a]?Mf[a]:Nf};Qf=function(a){if(!a)return _.G("clpp.log",xb+a+ca),-1;var b=Pf[a.toUpperCase()];return void 0===b?(_.G("clpp.log",xb+a+ca),-1):b};_.H=function(a){(this.a=a)&&void 0===Mf[a]&&(Mf[a]=-1)};_.Sf=function(a){Rf.info.apply(Rf,arguments)};
24
- _.Tf=function(a){Rf.debug.apply(Rf,arguments)};_.G=function(a){Rf.warn.apply(Rf,arguments)};_.Uf=function(a){Rf.error.apply(Rf,arguments)};Vf=function(a,b){this.Mb=a;this.a=b};Wf=function(a,b){this.a=a;this.f=b};_.Zf=function(a){if(a){var b=a.a();b in _.Xf?_.Yf.warn("Player-Factory '"+b+"' already registered"):(_.Xf[b]=a,_.Yf.info("Registered Player-Factory: '"+b+"'"))}};_.$f=function(){this.a={}};cg=function(a,b,c,d){this.f=a;this.Bc=b;this.a=c;this.Nk=!!d};
25
- _.I=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};dg=function(a){this.a=new _.$f;this.f=a};_.eg=function(){this.a=new _.$f};
26
- _.fg=function(a,b,c,d){function e(h){for(var l=_.u(c),m=l.next();!m.done;m=l.next())a.off(b,m.value,e);d(h)}for(var f=_.u(c),g=f.next();!g.done;g=f.next())a.on(b,g.value,e)};_.hg=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)gg(c[b]);a.a.clear()};ig=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};gg=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
27
- jg=function(a){this.l=a;this.o=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.j=null;this.f=new _.eg;this.a=this.m=null;this.g=[];this.h=new _.H("clpp.native.Metadata")};lg=function(a,b){a.j=b;a.m=a.j.textTracks;a.f.on(a.m,_.Yb,function(c){c=c.track;c.kind===_.Cd&&kg(a,c)})};
28
- kg=function(a,b){function c(l){for(var m=_.u(d),n=m.next();!n.done;n=m.next())if(n=n.value,l.startTime===n.startTime&&l.endTime===n.endTime)return n;m={schemeIdUri:"",value:"",startTime:0,endTime:0,id:"",type:_.mg,eventElement:null};a.o&&e&&"SCTE35-IN"===l.value.key&&0<l.startTime?(m.startTime=0,m.endTime=l.startTime):(m.startTime=l.startTime,m.endTime=l.endTime);e=!1;d.push(m);return d[d.length-1]}a.h.debug("onMetadata_()");b.mode=_.nd;var d=[],e=!0;if(b.cues){for(var f=_.u(b.cues),g=f.next();!g.done;g=
29
- f.next())if(g=g.value,!ng(a,g)){var h=c(g);switch(g.value.key){case "SCTE35-IN":case "SCTE35-OUT":h.schemeIdUri=_.Le;h.type=_.og;break;case "X-CUSTOM-ID":h.id=g.value.data}}f=_.u(d);for(g=f.next();!g.done;g=f.next())a.l.trigger(new _.I(_.pg,{detail:g.value}));Array.prototype.push.apply(a.g,d);qg(a,d,b);a.f.off(b,_.Xc);a.f.on(b,_.Xc,function(l){l=l.target.activeCues;l=l.length?ng(a,l[0]):a.a;var m;if(m=l)m=a.l.getPosition(),m=l.startTime<=m&&m<l.endTime;if(m)a.a=l,a.l.trigger(new _.I(_.rg,{detail:l}));
30
- else{if(l=a.a)l=a.a,m=a.l.getPosition(),l=l.endTime<=m;l&&(l=a.a,a.a=null,a.l.trigger(new _.I(_.sg,{detail:l})))}})}};ng=function(a,b){for(var c=_.u(a.g),d=c.next();!d.done;d=c.next())if(d=d.value,b.startTime===d.startTime&&b.endTime===d.endTime)return d;return null};qg=function(a,b,c){if(a.o){for(;0<c.cues.length;)c.removeCue(c.cues[0]);b.forEach(function(d){c.addCue(new DataCue(d.startTime,d.endTime,{key:"SCTE35-OUT",data:null}))})}};
31
- _.zg=function(a,b,c,d){d=void 0===d?_.tg:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.ug;this.writingMode=_.vg;this.lineInterpretation=_.wg;this.line=null;this.lineAlign=_.xg;this.direction=yg;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
32
- _.Cg=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.Ag;this.scroll=Bg;this.cssClassList=[];this.writingMode=this.displayAlign=null};Dg=function(a){this.l=a;this.m=a.getTextDisplayer();this.f=this.g=null;this.a=new _.eg;this.j=!1;this.h=new _.H("clpp.native.CueHandler")};
33
- Eg=function(a,b){var c=b.track;c.kind!==_.Cd&&(c.mode===_.ne&&(c.mode=_.nd),a.a.on(c,_.Xc,function(d){d=d.target||d.srcElement;d.mode=_.nd;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.m.append(d,[]))}))};_.Fg=function(a){return Array.isArray(a)?a:[a]};Gg=function(a,b){return a===b?!0:a.length===b.length&&a.every(function(c,d){return c===b[d]})};Ig=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 Hg(a,b)&&Hg(b,a)};
34
- Hg=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};Jg=function(a,b){var c=b||Gg,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,_.nf(h))}};_.Kg=function(a){return null!=a};
35
- _.Lg=function(a){var b;a instanceof _.Lg?(Mg(this,a.ab),this.mc=a.mc,this.Ra=a.Ra,Ng(this,a.Qc),this.za=a.za,_.Og(this,Pg(a.a)),this.bc=a.bc):a&&(b=String(a).match(Qg))?(Mg(this,b[1]||"",!0),this.mc=Rg(b[2]||""),this.Ra=Rg(b[3]||"",!0),Ng(this,b[4]),this.za=Rg(b[5]||"",!0),_.Og(this,b[6]||"",!0),this.bc=Rg(b[7]||"")):this.a=new Sg(null)};Mg=function(a,b,c){a.ab=c?Rg(b,!0):b;a.ab&&(a.ab=a.ab.replace(/:$/,""))};
36
- Ng=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Qc=b}else a.Qc=null};_.Og=function(a,b,c){b instanceof Sg?a.a=b:(c||(b=Tg(b,Ug)),a.a=new Sg(b))};Rg=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};Tg=function(a,b,c){return typeof a===_.ve?(a=encodeURI(a).replace(b,Vg),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};Vg=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};Sg=function(a){this.f=a||null};
37
- _.Wg=function(a){if(!a.a&&(a.a={},a.g=0,a.f))for(var b=a.f.split("\x26"),c=0;c<b.length;c++){var d=b[c].indexOf("\x3d"),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}};Pg=function(a){var b=new Sg;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.g=a.g}return b};
38
- _.Yg=function(a,b){for(var c=Xg[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===_.Ce?"":null};_.ah=function(a,b,c){a=_.Zg(a)||"";return(a=_.$g[b][a])?a:b===_.Ce?c&&"vtt"!==c?fc:_.De:null};_.bh=function(a,b,c){return a.map(function(d){return _.ah(d,b,c)}).filter(Boolean)[0]||null};_.Zg=function(a){a=(new _.Lg(a)).za.split(".");return 1>=a.length?null:a.pop()};
39
- _.L=function(a,b,c,d,e){var f=Error.call(this,ch(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||_.K.Y(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.L)};
40
- ch=function(a,b,c,d){a=(a===_.M?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.K.Y(d))a+=": "+d;else if(null!=d&&void 0!=d)if(null!=d.message&&void 0!=d.message)a+=": "+d.message,delete d.message;else try{a+=": "+JSON.stringify(d)}catch(e){}return a};_.dh=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};
41
- _.eh=function(a,b,c,d){d=void 0===d?{}:d;a=a.getAttribute(b);if(!a&&d.required)throw new _.L(_.M,4,4023,"Required attribute missing: "+b);return a?a.value:c||null};_.fh=function(a,b){this.name=a;this.value=b};_.hh=function(a,b){a=_.gh(a);b=_.gh(b);return a.split("-")[0]==b.split("-")[0]};_.gh=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=ih.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};
42
- _.jh=function(a,b){for(var c=_.u(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};kh=function(){};oh=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(mh(a)==mh(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;for(var c=_.N(a),d=_.N(b),e=_.u(nh(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!=d[f])return!1;return!0};_.N=function(a,b,c){c=void 0===c?Infinity:c;return ph(a,void 0===b?0:b,c,Uint8Array)};
43
- qh=function(a,b,c){c=void 0===c?Infinity:c;return ph(a,void 0===b?0:b,c,Uint16Array)};rh=function(a,b,c){c=void 0===c?Infinity:c;return ph(a,void 0===b?0:b,c,Uint32Array)};_.sh=function(a,b,c){c=void 0===c?Infinity:c;return ph(a,void 0===b?0:b,c,Int32Array)};_.th=function(a,b,c){c=void 0===c?Infinity:c;return ph(a,void 0===b?0:b,c,DataView)};uh=function(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
44
- ph=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=mh(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)};mh=function(a){return a instanceof ArrayBuffer?a:a.buffer};vh=function(a){for(var b="",c=0;c<a.length;c+=16E3)b+=String.fromCharCode.apply(null,a.subarray(c,c+16E3));return b};
45
- _.wh=function(a){if(!a)return"";a=_.N(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(Ga);return a}a=escape(vh(a));try{return decodeURIComponent(a)}catch(b){throw Error(Ga);}};
46
- yh=function(a,b,c){if(!a)return"";if(!c&&0!==a.byteLength%2)throw xh.error("Data has an incorrect length, must be even."),Error("Data does not seem to be UTF-16 encoded!");c=_.N(a);if(b&&255===c[0]&&254===c[1]||254===c[0]&&255===c[1])a=c.subarray(2);if(a instanceof ArrayBuffer)var d=a;else c=new Uint8Array(a.byteLength),c.set(_.N(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 vh(c)};
47
- _.zh=function(a,b){if(_.K.Y(a))return a;var c="",d=!!b,e=_.N(a);239==e[0]&&187==e[1]&&191==e[2]?c=_.wh(e):254==e[0]&&255==e[1]?c=yh(e.subarray(2),!1):255==e[0]&&254==e[1]&&(c=yh(e.subarray(2),!0));var f=function(g,h){return g.byteLength<=h||32<=g[h]&&126>=g[h]}.bind(null,e);xh.debug("Unable to find byte-order-mark, making an educated guess.");0==e[0]&&0==e[2]?c=yh(a,!1):0==e[1]&&0==e[3]?c=yh(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.wh(a));if(c)return d&&(c=escape(c)),c;throw Error("Unable to detect text encoding");
48
- };_.Ah=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};_.Bh=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};_.Ch=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=rh(e):2===c?f=qh(e):f=_.N(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};
49
- _.Dh=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.Eh=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};_.Fh=function(a){return!!(a&&0<a.length)};_.Gh=function(a){return!a||0===a.length};
50
- _.Hh=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.K.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""}};_.Jh=function(a){a=a.replace(/<[^>]+>/gi,"");Ih.innerHTML=a;a=Ih.textContent;return a=a.replace(/<[^>]+>/gi,"")};_.Kh=function(){};_.Mh=function(a,b){var c=void 0==b?!0:b,d=_.Lh(a).replace(/\+/g,"-").replace(/\//g,"_");return c?d:d.replace(/[=]*$/,"")};
51
- _.Nh=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};_.Oh=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};_.Ph=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};
52
- _.Qh=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};_.Rh=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};_.Lh=function(a){a=vh(_.N(a));return btoa(a)};_.Sh=function(a){this.f=a;this.a=0};
53
- _.Th=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};
54
- _.Uh=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.L(_.M,4,4016,{invalidTag:b});var d=c[1],e=c[2];c=[];var f;if(e){e=new _.Sh(e);var g;(g=_.Th(e,/^([^,=]+)(?:,|$)/g))&&(f=g[1]);for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.Th(e,h);)c.push(new _.fh(g[1],g[2]||g[3]))}return new _.dh(a,d,c,f)};_.Wh=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.nf(Vh).concat()}};
55
- Xh=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||_.nf(Vh).concat()};
56
- _.Zh=function(a,b){_.K.Y(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.Yh,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||
57
- [],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:_.nf(Vh).concat(),requestStartTimestamp:null};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&
58
- Xh(c,b);return c};_.$h=function(a,b,c,d,e,f,g,h){e&&(d=e);e={uri:d,data:b||new ArrayBuffer(0),headers:a,status:c,fromCache:!!a["x-shaka-from-cache"],timeMs:g,responseStartMs:h,request:f};if(200<=c&&299>=c&&202!==c)return e;g=null;try{g=_.zh(b,!0)}catch(l){}_.Tf("HTTP error text:",g);throw new _.L(0<=(f.fatalStatusCodes||[]).indexOf(c)?_.M:1,1,1001,{url:d,status:c,responseText:g,headers:a,request:f,response:e});};
59
- ai=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};bi=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};ci=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()};_.di=function(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c};
60
- _.ei=function(a,b){this.O=a;this.A=b;this.a=!1};fi=function(a,b){a.O.then(function(){return b(!0)},function(){return b(!1)});return a};gi=function(a,b,c){try{var d=a(b);if(d&&d.O&&d.abort)return c.resolve(d.O),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){})["catch"](function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}};_.hi=function(){this.a=[]};
61
- _.ii=function(a,b){a.a.push(fi(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.pi=function(){this.f=[];this.g=[];this.o=!1;this.m=new _.hi;this.a={};this.j=0;this.a.data=ji;!window.fetch||!window.AbortController||_.ki(6)||_.li()&&68<_.mi().browserVersion.major?(this.a.http=ni,this.a.https=ni):(this.a.http=oi,this.a.https=oi)};qi=function(a,b){var c;return _.B(function(d){if(1==d.a)return _.x(d,a.fetch(b),2);c=d.f;return d["return"](_.wh(c.data))})};
62
- ri=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.B(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.G(2);break}e=_.Zh(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.Af(g,4);return _.x(g,a.fetch(e).O,6);case 6:_.Bf(g,2);break;case 4:if(f=_.Cf(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};
63
- _.si=function(a,b){this.id=a;this.type=b;this.roles=[];this.channelsCount=this.src=this.mimeType=this.frameRate=this.label=this.language=this.kind=null;this.renditions=[];this.accessibility=[]};_.ti=function(a){return a&&a!==_.Ie?a:null};
64
- wi=function(a){if(!a)throw new _.L(_.M,3,3101,Qa+a);if(!_.K.Y(a))throw new _.L(_.M,3,3101,Qa+a+". Track type must be a string!");switch(a.toLowerCase()){case _.O:return _.O;case _.Q:return _.Q;case _.ui:return _.ui;case vi:return vi}throw new _.L(_.M,3,3101,"Unknown track type: "+a+".");};yi=function(a,b){a=wi(a);var c=_.ti(b.kind),d=b.id;d||(d=String(_.xi++));d=new _.si(d,c===_.Cd?vi:a);d.kind=c;d.label=_.ti(b.label);d.language=_.ti(b.language);return d};
65
- zi=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};_.Ai=function(a,b){this.track=b;this.id=a;this.originalId=this.drm=this.drmInfo=this.codec=this.Wc=this.bandwidth=this.height=this.width=null};
66
- _.Bi=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;_.Dh(this.path,
67
- "/")||(this.path="/"+this.path);this.f=b.search;this.g=b.hash};_.Ci=function(a){return a.scheme+"//"+(a.a+(a.port?":"+a.port:"")+a.path+a.g+a.f)};_.Di=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)},""):""};
68
- Ei=function(a){var b={};a=a||"";a=a.substring(a.indexOf("?")+1);a=_.u(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};Fi=function(a,b){return a.startsWith("http:://")||a.startsWith("https:://")?a:(new URL(a,b)).toString()};
69
- Gi=function(a){this.f=a;this.h=new _.H("clpp.native.hls.HlsMetadataParser");this.a=Jg(this.g.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
70
- Ji=function(a,b,c){var d,e,f,g,h;return _.B(function(l){if(1==l.a)return _.x(l,Hi(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.si("dummy",_.ui);h=f.map(function(m,n){var p=new _.Ai("R"+n,g);p.bandwidth=m.bandwidth;p.Wc=m.Wc;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});Ii(h);return l["return"]({renditions:h,mimeType:e||void 0})})};
71
- Li=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return Ki(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};
72
- Ki=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.Uh(0,a);a=b("TYPE");a=null!=a?{AUDIO:_.Q,VIDEO:_.ui,SUBTITLES:_.O}[a]:void 0;return{type:a,groupId:b(_.La),name:b("NAME"),language:b("LANGUAGE"),Al:b("AUTOSELECT"),"default":b("DEFAULT"),Il:b("FORCED"),If:b("CHARACTERISTICS"),uri:b(_.wb)}};Ii=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.");};
73
- Mi=function(a,b){var c,d;return _.B(function(e){if(1==e.a)return c=_.Zh(b),_.x(e,qi(a.f,c),2);d=e.f;return e["return"](d)})};Hi=function(a,b,c){var d,e,f,g;return _.B(function(h){if(1==h.a)return d=Ni(b),e=Oi(b,c),f=d[0]?d[0].codec:null,_.x(h,Pi(a,e,f),2);g=h.f;return h["return"]({mimeType:g,renditions:d})})};Pi=function(a,b,c){var d,e;return _.B(function(f){if(1==f.a)return b&&c?_.x(f,Mi(a,b),2):f["return"](null);d=f.f;e=[Qi(d,b),Ui(d,b)].filter(Boolean);return f["return"](_.bh(e,_.Re,c))})};
74
- Ni=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.Uh(0,b);if(c.getAttribute(_.Db))throw Error("Playlist contains alternative video streams.");var d=_.eh(c,_.jb);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.eh(c,_.la);e=e?Number(e):null;var f=_.eh(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.eh(c,_.na);c=_.Yg(_.Re,c?c.split(","):[]);return{bandwidth:e,Wc:f,codec:c,width:b,height:d,mimeType:null}})};
75
- Oi=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?Fi(c,b):null};Qi=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?Fi(c,b):null};Ui=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.eh(_.Uh(0,c),_.wb))?Fi(c,b):null:null};
76
- _.Wi=function(a,b,c){for(var d=_.u(_.Vi),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.Xi=function(a){a=_.Vi.indexOf(a);0<=a&&_.Vi.splice(a,1)};_.R=function(){};_.Yi=function(a,b){var c=a;b&&(c+='; codecs\x3d"'+b+'"');return c};_.Zi=function(a){this.f=a;this.a=null};$i=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};
77
- _.aj=function(a){this.f=a;this.a=null};bj=function(){};_.cj=function(){return!!navigator.userAgent.match(/Edge?\//)};_.ki=function(a){return _.dj("Tizen"+(a?" "+String(a):""))};_.li=function(){return _.dj("Web0S")};_.fj=function(){return _.li()&&79===ej().major};_.gj=function(){return _.dj("CrKey")};_.hj=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.ki()};_.ij=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.hj()&&1<navigator.maxTouchPoints};
78
- _.jj=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};_.dj=function(a){return(navigator.userAgent||"").includes(a)};oj=function(){if(mj)return mj;nj||(nj=new _.aj(function(){mj=null}));(mj=document.querySelector(_.Re)||document.querySelector(_.lc))||(mj=document.createElement(_.Re));nj.Z(1);return mj};qj=function(a,b){try{return parseInt(b,10)}catch(c){pj.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
79
- rj=function(a){var b={major:-1,name:Je};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=qj(a,c[0]));2<=c.length&&(b.minor=qj(a,c[1]));3<=c.length&&(b.patch=qj(a,c[2]));4<=c.length&&(b.build=qj(a,c[3]));return b};sj=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};
80
- Cj=function(){var a=tj();if(!a)return uj;var b=a.match(/^.+?(?=\))/);if(!b)return uj;b=b[0];if(sj(b,["iphone","ipad"]))return vj;if(sj(b,["android"]))return wj;if(sj(b,["macintosh"]))return xj;if(sj(b,["windows nt"]))return yj;if(sj(b,["tizen"]))return zj;if(sj(b,["web0s"]))return Aj;if(sj(b,["linux"]))return Bj;pj.warn("Unable to identify OS from user agent: "+a);return uj};
81
- ej=function(){var a=tj(),b=["ie","edge","opera","firefox","safari",Hc];var c=Cj();for(var d=Dj[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return rj(c[1]);return rj("")};tj=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
82
- _.mi=function(){var a=Cj();var b=Cj();var c=Dj[b];if(c){c=tj().match(c.os_version)[1];c=rj(c);if(b===yj)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=rj("");a:{c=tj();var d=["ie","edge","opera","firefox","safari",Hc],e=Cj();e=Dj[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=Ej}return{os:a,osVersion:b,browser:c,browserVersion:ej()}};
83
- Fj=function(){this.h=new _.H("clpp.native.TrackManager");this.l=null;this.f=new _.eg;this.g=[];this.B=0;this.o={};this.D=[];this.a=new Map;this.w=null;this.m=new Map;this.A=!0;this.J=this.af.bind(this,_.O);this.M=this.cf.bind(this,_.O);this.K=this.bf.bind(this,_.O);this.P=this.af.bind(this,_.ui);this.V=this.cf.bind(this,_.ui);this.T=this.bf.bind(this,_.ui);this.F=this.af.bind(this,_.Q);this.I=this.cf.bind(this,_.Q);this.H=this.bf.bind(this,_.Q);this.j=null};
84
- Hj=function(a,b){var c,d,e,f,g,h,l,m;return _.B(function(n){if(1==n.a){c=a.l.getConfiguration();d=_.Wi(c,b.mimeType,_.De);if(!d)return a.h.warn("Track mimetype is not supported",b),n["return"]();e=_.Zh(b.url);return _.x(n,a.l.getNetworkEngine().fetch(e).O,2)}(f=n.f)&&f.data&&(g="External_"+a.B++,a.o[g]=b,h=d.a(_.N(f.data)),l=URL.createObjectURL(new Blob([h])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.De},Gj(a,m,g));_.z(n)})};Jj=function(a,b,c){return Ij(a)&&b===_.ui&&!!c.enableHlsVideoTrackInfo};
85
- Kj=function(a,b,c){return Ij(a)&&(b===_.Q||b===_.O)&&!!c.enableMetadata};Ij=function(a){a=a.l.getLoadedSource();return!(!a||a.type!==_.Lj&&!a.url.endsWith(".m3u8"))&&_.hj()};Mj=function(a,b,c){var d,e;return _.B(function(f){if(1==f.a)return(d=a.l.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)})};
86
- Nj=function(a,b,c){var d,e,f,g;return _.B(function(h){if(1==h.a)return(d=a.l.getLoadedSource())&&a.j?_.x(h,a.j.a(d.url,c),2):h["return"]();e=h.f;e.Nc&&(f=b.type+":"+b.label,(g=e.Nc.get(f))&&g.If&&(b.accessibility=g.If.split(",").map(function(l){return l.trim()}).map(function(l){return{value:l,type:b.type,protocol:"HLS"}})));_.z(h)})};
87
- Gj=function(a,b,c){if(a.l){var d=a.l.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);e.src=_.Gh(b.url)?URL.createObjectURL(new Blob([])):b.url;d.appendChild(e);a.D.push(e)}}};Oj=function(a,b){if(!a.l)return null;var c=a.l.getSurface();if(!c)return null;c=c.getMedia();if(!c)return null;switch(b){case _.Q:return c.audioTracks;case _.ui:return c.videoTracks;case _.O:return c.textTracks;default:return null}};
88
- Pj=function(a,b){var c=Oj(a,b);c&&(c=Array.from(c),b===_.O&&(c=c.filter(function(d){return d.kind!==_.Cd})));return c};Qj=function(a,b){return a.g.filter(function(c){return c.type===b})};Rj=function(a,b){var c=a.a.get(b)||null;return c&&c.renditions[0]};Sj=function(a,b){var c=a.m.get(b);return c&&c.renditions[0]};
89
- Wj=function(a,b,c){var d=Pj(a,b);if(c){if(void 0===a.g.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.h.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.m.set(b,c);var e=!0,f=!1;switch(b){case _.O:var g="mode";e=_.ne;f=_.Zc;break;case _.Q:g="enabled";break;case _.ui:g="selected"}if(g){d=_.u(d);for(var h=d.next();!h.done;h=d.next())h=h.value,h[g]=Tj(c,h,c.type)?e:
90
- f}}}else if(a.h.debug(_.Ea+b),a.a.get(b)&&d&&b===_.O){g=_.u(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.Zc;a.a.set(b,null)}b===_.Q?a.l.trigger(new _.I(_.Uj)):b===_.O&&a.l.trigger(new _.I(_.Vj))};Xj=function(a){return a.enabled||a.selected||a.mode===_.ne||a.mode===_.nd};
91
- Yj=function(a,b,c){c=_.Fg(c).filter(function(e){return e});a.h.info("Find preferred tracks for",b,c);var d=Qj(a,b);c.some(function(e){var f=_.gh(e);return(e=d.find(function(g){g=_.gh(g.language||"");return _.hh(f,g)}))?(a.h.info("Will select track with id",e.id),Wj(a,b,e),!0):!1})};Zj=function(a){(a=a.l.getTextDisplayer())&&a.remove(0,Infinity)};
92
- Tj=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.K.xa(a,{kind:_.ti(b.kind),language:_.ti(b.language),label:_.ti(b.label)},["kind","language","label"])};_.ak=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.bk=function(){this.jd=new dg(this);this.gd=[]};dk=function(a){return a.name===bb&&ck.some(function(b){return a.message.startsWith(b)})};ek=function(){};
93
- _.hk=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.ij()&&(a=360);var b=_.Wh();b.maxAttempts=3;a={source:"",license:fk,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,manifest:{attemptParameters:_.Wh(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,
94
- restrictions:gk(a)},drm:null,enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:"main",preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],volume:null,startTime:null,loop:!1,lowLatencyMode:!1,suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,streaming:{attemptParameters:b,bufferingGoal:10,rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,relativeTextTimestamp:!1,startAtSegmentBoundary:!1,
95
- gapDetectionThreshold:.1,smallGapLimit:.5,jumpLargeGaps:!0,durationBackoff:1,maxSegmentToMediaOffset:1,forceNativeTS:!1,preferNativeHlsOnSafari:!0,safeSeekOffset:5,stallEnabled:!0,stallThreshold:3,stallSkip:.5,bufferLimitUpdateInterval:.5,overridePasp:!1,enableLiveEdgeChasing:!1,chasingRate:1.15,startChasingAt:5,stopChasingAt:2,chaseJumpDistance:10,patchEdgeWhenMixedContent:!1,ignoreDrift:!1,disableFragmentSupport:!1,disableMergedFragments:!1},restrictions:gk(),tizen:{sideStreamText:_.ki(2)},safari:{enableHlsVideoTrackInfo:!1,
96
- enableMetadata:!0}};if(_.dj("Edge/")||_.ki())a.streaming.gapDetectionThreshold=.5;_.li()&&(a.streaming.stallEnabled=!1);_.fj()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.ki()&&(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};
97
- _.jk=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(!b)return _.hk();c=[_.hk()];var d=!1;b=_.u(b);for(var e=b.next();!e.done;e=b.next())e=e.value,null!==e&&void 0!==e&&(_.K.Y(e)&&(e={source:e}),e.lowLatencyMode&&!d&&(c.push({suggestedPresentationDelay:0,streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{hlsLowLatency:!0}}),d=!0),
98
- c.push(e));c=_.K.ya.apply(null,c);_.K.Y(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.K.R(c.volume)&&(!_.K.la(c.volume)||_.K.isNaN(c.volume)))throw new _.L(_.M,7,7100,"config.volume is not a number");if(!_.K.R(c.preferredTextLanguage)&&!_.K.Y(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.L(_.M,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.K.R(c.preferredAudioLanguage)&&!_.K.Y(c.preferredAudioLanguage)&&!Array.isArray(c.preferredAudioLanguage))throw new _.L(_.M,
99
- 7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.K.R(c.preferredAudioCodec)&&!_.K.Y(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.L(_.M,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.K.R(c.preferredVideoCodec)&&!_.K.Y(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.L(_.M,7,7100,"config.preferredVideoCodec is not a string or an array");if(!_.K.R(c.drm)){if(c.drm.env&&!_.K.Y(c.drm.env))throw new _.L(_.M,
100
- 7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.K.Y(c.drm.offlineId))throw new _.L(_.M,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(!_.K.la(d.bufferingGoal)||_.K.isNaN(d.bufferingGoal))throw new _.L(_.M,7,7100,"config.streaming.bufferingGoal is not a number");
7
+ _.eb="Player sources";_.fb="Player state change: ";_.gb="Please make sure ";_.hb="QualityLevel";_.ib="RESOLUTION";_.jb="Releasing player with source";_.kb="Representation";lb="STANDARD";_.mb="SW_SECURE_CRYPTO";_.nb="SW_SECURE_DECODE";ob="Session is closed";pb="Setting native ";rb="Signature Verification failed";sb="Skipping Session creation. License for init data was already requested in Session: '";_.tb="SmoothStreamingMedia";ub="The index is not in the allowed range.";_.vb="URI";wb="Unable to translate ";
8
+ _.xb="Unhandled/ignored event";_.yb="Unregistering listeners";zb="Unsupported keySystem";Ab="Using VTTCue polyfill from 3 argument TextTrackCue.";_.Cb="VIDEO";Db="WebkitEmeManager.MediaKeySession.load";_.Eb="Widevine License URL is not defined";Gb="Will create EME Manager: ";_.Hb="ad-break-started";_.Ib="ad-break-stopped";_.Jb="ad-buffering";_.Kb="ad-clicked";_.Lb="ad-completed";_.Mb="ad-first-quartile";_.Nb="ad-impression";_.Ob="ad-loaded";_.Pb="ad-midpoint";_.Qb="ad-paused";_.Rb="ad-progress";
9
+ _.Sb="ad-resumed";_.Tb="ad-skipped";_.Ub="ad-started";_.Vb="ad-stopped";_.Wb="ad-third-quartile";_.Xb="addtrack";_.Yb="ads-timeline-changed";_.Zb="airplay-casting-ended";_.$b="airplay-casting-started";_.ac="airplay-status-changed";_.bc="application";_.cc="application/cea-608";_.dc="application/dash+xml";ec="application/mp4";_.fc='application/mp4; codecs\x3d"stpp"';_.gc='application/mp4; codecs\x3d"wvtt"';_.hc="application/ttml+xml";_.ic="application/vnd.ms-sstr+xml";jc="application/x-www-form-urlencoded";
10
+ _.kc="audio";_.lc="audio/aac";_.mc="audio/ac3";_.oc="audio/eac3";_.qc="audio/mp4";_.rc="audiobufferchanged";_.sc="autoplaynotallowed";_.tc="bitratechanged";_.uc="boolean";_.vc="bufferingended";_.wc="bufferingstarted";xc="canplay";yc="canplaythrough";_.zc="castingstarted";_.Ac="caststatuschanged";_.Bc="cdn-switch-success";_.Cc="cenc";_.Dc="center";Ec="certificate-request";Fc="change";Gc="chrome";_.Hc="clpp-fill";Ic="clpp-hidden";_.Jc="clpp.cast.CastSender";Kc="clpp.drm.HeaderDrm";Lc="clpp.drm.eme.AppleEmeManager";
11
+ Mc="clpp.native.Player";Nc="clpp.utils.Platform";_.Oc="codecs";_.Pc="column-reverse";_.Qc="com.adobe.primetime";_.Rc="com.apple.fps";_.Sc="com.microsoft.playready";_.Tc="com.widevine.alpha";_.Uc="config.drm.customData is not defined";Vc="controls";_.Wc="cuechange";_.Xc="destroy()";_.Yc="disabled";_.Zc="div";_.$c="drmexpirationupdate";ad="drmrenewalstarted";_.bd="drmsessionpersisted";_.cd="drmsessionupdate";dd="drmtoday";ed="durationchange";fd="encrypted";_.gd="end";_.hd="ended";_.id="error";jd="fullscreenElement";
12
+ _.kd="function";_.ld="height";_.md="hidden";_.nd="image";_.od="internal-error";pd="keystatuseschange";_.qd="left";rd="license-renewal";sd="license-request";_.td="line-left";_.ud="line-right";_.vd="loadeddata";_.wd="loadedmetadata";xd="loadstart";_.yd="mdat";_.zd="mdia";Ad="message";_.Bd="metadata";_.Cd="mimeType";_.Dd="minf";_.Ed="moov";_.Fd="mp4";_.Gd="mpd-type-changed";_.Id="mpeg-dash-callback-event";_.Jd="none";_.k="number";_.Kd="object";_.Ld="onBitrateChanged()";_.Md="onPlayerError()";_.Nd="onPlayerWillDestroy";
13
+ _.Od="onPlayerWillRelease";_.Pd="onStateChanged()";Qd="online-status-changed";_.Rd="optional";_.Sd="org.w3.clearkey";_.Td="output-restricted";_.Ud="pause";_.Vd="persistent";_.Wd="persistent-license";Xd="picture-in-picture";_.Yd="play";_.Zd="playing";_.$d="playlist-item-changed";_.ae="playlist-modified";_.be="progress";_.ce="px";_.de="ratechange";ee="released";_.fe="releasing";ge="removetrack";_.he="required";_.ie="resize";_.je="right";_.ke="seeked";_.le="seeking";_.me="showing";_.ne="sinf";oe="stalled";
14
+ _.pe="start";_.qe="statechanged";re="status-pending";_.te="stbl";_.ue="string";_.ve="stsd";_.we="style";_.xe="subtitle";_.ye="subtitles-htmlcue";_.ze="subtitles-ttml";Ae="temporary";_.Be="text";_.Ce="text/vtt";_.De="text/xml";_.Ee="timeupdate";_.Fe="trak";_.Ge="ttml-xml";_.He="und";Ie="unknown";_.Je="urn:scte:scte35";_.Ke="urn:scte:scte35:2014";_.Le="user-seeked";_.Me="user-seeking";_.Ne="value";_.Oe="vertical-lr";_.Pe="vertical-rl";_.Qe="video";_.Re="video/mp2t";_.Se="video/mp4";_.Te="videobufferchanged";
15
+ _.Ue="videotrackchanged";_.Ve="vimond-response";We="visibilitychange";_.Xe="vtt-xml";_.Ye="waiting";_.Ze="waitingforkey";$e="webkit-org.w3.clearkey";af="webkitkeyadded";bf="webkitkeyerror";cf="webkitkeymessage";df="webkitneedkey";_.ef="width";ff="x-dt-csl-tracking-token";hf="x-dt-follow-up-token";jf="x-dt-resp-code";lf=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
16
+ _.u=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:lf(a)}};_.mf=function(a){if(!(a instanceof Array)){a=_.u(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};_.w=function(a,b){a.prototype=nf(b.prototype);a.prototype.constructor=a;if(of)of(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]};
17
+ pf=function(){pf=function(){};qf.Symbol||(qf.Symbol=rf)};tf=function(a,b){this.a=a;sf(this,"description",{configurable:!0,writable:!0,value:b})};vf=function(){pf();var a=qf.Symbol.iterator;a||(a=qf.Symbol.iterator=qf.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.kd&&sf(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return uf(lf(this))}});vf=function(){}};uf=function(a){vf();a={next:a};a[qf.Symbol.iterator]=function(){return this};return a};
18
+ wf=function(){this.w=!1;this.j=null;this.f=void 0;this.a=1;this.m=this.o=0;this.B=this.g=null};xf=function(a){if(a.w)throw new TypeError("Generator is already running");a.w=!0};yf=function(a,b){a.g={Xf:b,mg:!0};a.a=a.o||a.m};_.x=function(a,b,c){a.a=c;return{value:b}};_.z=function(a){a.a=0};_.zf=function(a,b,c){a.o=b;void 0!=c&&(a.m=c)};_.Af=function(a,b,c){a.a=b;a.o=c||0};_.Bf=function(a,b){a.o=b||0;var c=a.g.Xf;a.g=null;return c};Cf=function(a){this.a=new wf;this.f=a};
19
+ Ff=function(a,b){xf(a.a);var c=a.a.j;if(c)return Df(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return Ef(a)};Df=function(a,b,c,d){try{var e=b.call(a.a.j,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.j=null,yf(a.a,g),Ef(a)}a.a.j=null;d.call(a.a,f);return Ef(a)};
20
+ Ef=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,yf(a.a,c)}a.a.w=!1;if(a.a.g){b=a.a.g;a.a.g=null;if(b.mg)throw b.Xf;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
21
+ Gf=function(a){this.next=function(b){xf(a.a);a.a.j?b=Df(a,a.a.j.next,b,a.a.A):(a.a.A(b),b=Ef(a));return b};this["throw"]=function(b){xf(a.a);a.a.j?b=Df(a,a.a.j["throw"],b,a.a.A):(yf(a.a,b),b=Ef(a));return b};this["return"]=function(b){return Ff(a,b)};vf();this[Symbol.iterator]=function(){return this}};_.Hf=function(a,b){var c=new Gf(new Cf(b));of&&of(c,a.prototype);return c};
22
+ If=function(a,b){if(b){for(var c=qf,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&&sf(c,d,{configurable:!0,writable:!0,value:f})}};Jf=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())})};_.B=function(a){return Jf(new Gf(new Cf(a)))};
23
+ _.C=function(a,b){var c=a.split("."),d=Kf;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};Nf=function(a){return a&&0<=Lf[a]?Lf[a]:Mf};Pf=function(a){if(!a)return _.F("clpp.log",wb+a+ca),-1;var b=Of[a.toUpperCase()];return void 0===b?(_.F("clpp.log",wb+a+ca),-1):b};_.H=function(a){(this.a=a)&&void 0===Lf[a]&&(Lf[a]=-1)};_.Rf=function(a){Qf.info.apply(Qf,arguments)};
24
+ _.Sf=function(a){Qf.debug.apply(Qf,arguments)};_.F=function(a){Qf.warn.apply(Qf,arguments)};_.Tf=function(a){Qf.error.apply(Qf,arguments)};Uf=function(a,b){this.Mb=a;this.a=b};Vf=function(a,b){this.a=a;this.f=b};_.Yf=function(a){if(a){var b=a.a();b in _.Wf?_.Xf.warn("Player-Factory '"+b+"' already registered"):(_.Wf[b]=a,_.Xf.info("Registered Player-Factory: '"+b+"'"))}};_.Zf=function(){this.a={}};$f=function(a,b,c,d){this.f=a;this.Bc=b;this.a=c;this.Tk=!!d};
25
+ _.J=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};cg=function(a){this.a=new _.Zf;this.f=a};_.dg=function(){this.a=new _.Zf};
26
+ _.eg=function(a,b,c,d){function e(h){for(var l=_.u(c),m=l.next();!m.done;m=l.next())a.off(b,m.value,e);d(h)}for(var f=_.u(c),g=f.next();!g.done;g=f.next())a.on(b,g.value,e)};_.gg=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)fg(c[b]);a.a.clear()};hg=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};fg=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
27
+ ig=function(a){this.l=a;this.o=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.j=null;this.f=new _.dg;this.a=this.m=null;this.g=[];this.h=new _.H("clpp.native.Metadata")};kg=function(a,b){a.j=b;a.m=a.j.textTracks;a.f.on(a.m,_.Xb,function(c){c=c.track;c.kind===_.Bd&&jg(a,c)})};
28
+ jg=function(a,b){function c(l){for(var m=_.u(d),n=m.next();!n.done;n=m.next())if(n=n.value,l.startTime===n.startTime&&l.endTime===n.endTime)return n;m={schemeIdUri:"",value:"",startTime:0,endTime:0,id:"",type:_.lg,eventElement:null};a.o&&e&&"SCTE35-IN"===l.value.key&&0<l.startTime?(m.startTime=0,m.endTime=l.startTime):(m.startTime=l.startTime,m.endTime=l.endTime);e=!1;d.push(m);return d[d.length-1]}a.h.debug("onMetadata_()");b.mode=_.md;var d=[],e=!0;if(b.cues){for(var f=_.u(b.cues),g=f.next();!g.done;g=
29
+ f.next())if(g=g.value,!mg(a,g)){var h=c(g);switch(g.value.key){case "SCTE35-IN":case "SCTE35-OUT":h.schemeIdUri=_.Ke;h.type=_.ng;break;case "X-CUSTOM-ID":h.id=g.value.data}}f=_.u(d);for(g=f.next();!g.done;g=f.next())a.l.trigger(new _.J(_.og,{detail:g.value}));Array.prototype.push.apply(a.g,d);pg(a,d,b);a.f.off(b,_.Wc);a.f.on(b,_.Wc,function(l){l=l.target.activeCues;l=l.length?mg(a,l[0]):a.a;var m;if(m=l)m=a.l.getPosition(),m=l.startTime<=m&&m<l.endTime;if(m)a.a=l,a.l.trigger(new _.J(_.qg,{detail:l}));
30
+ else{if(l=a.a)l=a.a,m=a.l.getPosition(),l=l.endTime<=m;l&&(l=a.a,a.a=null,a.l.trigger(new _.J(_.rg,{detail:l})))}})}};mg=function(a,b){for(var c=_.u(a.g),d=c.next();!d.done;d=c.next())if(d=d.value,b.startTime===d.startTime&&b.endTime===d.endTime)return d;return null};pg=function(a,b,c){if(a.o){for(;0<c.cues.length;)c.removeCue(c.cues[0]);b.forEach(function(d){c.addCue(new DataCue(d.startTime,d.endTime,{key:"SCTE35-OUT",data:null}))})}};
31
+ _.yg=function(a,b,c,d){d=void 0===d?_.sg:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.tg;this.writingMode=_.ug;this.lineInterpretation=_.vg;this.line=null;this.lineAlign=_.wg;this.direction=xg;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
32
+ _.Bg=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.zg;this.scroll=Ag;this.cssClassList=[];this.writingMode=this.displayAlign=null};Cg=function(a){this.l=a;this.m=a.getTextDisplayer();this.f=this.g=null;this.a=new _.dg;this.j=!1;this.h=new _.H("clpp.native.CueHandler")};
33
+ Dg=function(a,b){var c=b.track;c.kind!==_.Bd&&(c.mode===_.me&&(c.mode=_.md),a.a.on(c,_.Wc,function(d){d=d.target||d.srcElement;d.mode=_.md;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.m.append(d,[]))}))};_.Eg=function(a){return Array.isArray(a)?a:[a]};Fg=function(a,b){return a===b?!0:a.length===b.length&&a.every(function(c,d){return c===b[d]})};Hg=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 Gg(a,b)&&Gg(b,a)};
34
+ Gg=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};Ig=function(a,b){var c=b||Fg,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,_.mf(h))}};_.Jg=function(a){return null!=a};
35
+ _.Kg=function(a){var b;a instanceof _.Kg?(Lg(this,a.$a),this.mc=a.mc,this.Ra=a.Ra,Mg(this,a.Rc),this.za=a.za,_.Ng(this,Og(a.a)),this.bc=a.bc):a&&(b=String(a).match(Pg))?(Lg(this,b[1]||"",!0),this.mc=Qg(b[2]||""),this.Ra=Qg(b[3]||"",!0),Mg(this,b[4]),this.za=Qg(b[5]||"",!0),_.Ng(this,b[6]||"",!0),this.bc=Qg(b[7]||"")):this.a=new Rg(null)};Lg=function(a,b,c){a.$a=c?Qg(b,!0):b;a.$a&&(a.$a=a.$a.replace(/:$/,""))};
36
+ Mg=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Rc=b}else a.Rc=null};_.Ng=function(a,b,c){b instanceof Rg?a.a=b:(c||(b=Sg(b,Tg)),a.a=new Rg(b))};Qg=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};Sg=function(a,b,c){return typeof a===_.ue?(a=encodeURI(a).replace(b,Ug),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};Ug=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};Rg=function(a){this.f=a||null};
37
+ _.Vg=function(a){if(!a.a&&(a.a={},a.g=0,a.f))for(var b=a.f.split("\x26"),c=0;c<b.length;c++){var d=b[c].indexOf("\x3d"),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}};Og=function(a){var b=new Rg;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.g=a.g}return b};
38
+ _.Xg=function(a,b){for(var c=Wg[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===_.Be?"":null};_.$g=function(a,b,c){a=_.Yg(a)||"";return(a=_.Zg[b][a])?a:b===_.Be?c&&"vtt"!==c?ec:_.Ce:null};_.ah=function(a,b,c){return a.map(function(d){return _.$g(d,b,c)}).filter(Boolean)[0]||null};_.Yg=function(a){a=(new _.Kg(a)).za.split(".");return 1>=a.length?null:a.pop()};
39
+ _.L=function(a,b,c,d,e){var f=Error.call(this,bh(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||_.K.Z(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.L)};
40
+ bh=function(a,b,c,d){a=(a===_.M?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.K.Z(d))a+=": "+d;else if(null!=d&&void 0!=d)if(null!=d.message&&void 0!=d.message)a+=": "+d.message,delete d.message;else try{a+=": "+JSON.stringify(d)}catch(e){}return a};_.ch=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};
41
+ _.dh=function(a,b,c,d){d=void 0===d?{}:d;a=a.getAttribute(b);if(!a&&d.required)throw new _.L(_.M,4,4023,"Required attribute missing: "+b);return a?a.value:c||null};_.eh=function(a,b){this.name=a;this.value=b};_.gh=function(a,b){a=_.fh(a);b=_.fh(b);return a.split("-")[0]==b.split("-")[0]};_.fh=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=hh.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};
42
+ _.ih=function(a,b){for(var c=_.u(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};jh=function(){};mh=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(kh(a)==kh(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;for(var c=_.N(a),d=_.N(b),e=_.u(lh(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!=d[f])return!1;return!0};_.N=function(a,b,c){c=void 0===c?Infinity:c;return oh(a,void 0===b?0:b,c,Uint8Array)};
43
+ ph=function(a,b,c){c=void 0===c?Infinity:c;return oh(a,void 0===b?0:b,c,Uint16Array)};qh=function(a,b,c){c=void 0===c?Infinity:c;return oh(a,void 0===b?0:b,c,Uint32Array)};_.rh=function(a,b,c){c=void 0===c?Infinity:c;return oh(a,void 0===b?0:b,c,Int32Array)};_.sh=function(a,b,c){c=void 0===c?Infinity:c;return oh(a,void 0===b?0:b,c,DataView)};th=function(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
44
+ oh=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=kh(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)};kh=function(a){return a instanceof ArrayBuffer?a:a.buffer};uh=function(a){for(var b="",c=0;c<a.length;c+=16E3)b+=String.fromCharCode.apply(null,a.subarray(c,c+16E3));return b};
45
+ _.vh=function(a){if(!a)return"";a=_.N(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(Ea);return a}a=escape(uh(a));try{return decodeURIComponent(a)}catch(b){throw Error(Ea);}};
46
+ _.xh=function(a,b,c){if(!a)return"";if(!c&&0!==a.byteLength%2)throw wh.error("Data has an incorrect length, must be even."),Error("Data does not seem to be UTF-16 encoded!");c=_.N(a);if(b&&255===c[0]&&254===c[1]||254===c[0]&&255===c[1])a=c.subarray(2);if(a instanceof ArrayBuffer)var d=a;else c=new Uint8Array(a.byteLength),c.set(_.N(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 uh(c)};
47
+ _.yh=function(a,b){if(_.K.Z(a))return a;var c="",d=!!b,e=_.N(a);239==e[0]&&187==e[1]&&191==e[2]?c=_.vh(e):254==e[0]&&255==e[1]?c=_.xh(e.subarray(2),!1):255==e[0]&&254==e[1]&&(c=_.xh(e.subarray(2),!0));var f=function(g,h){return g.byteLength<=h||32<=g[h]&&126>=g[h]}.bind(null,e);wh.debug("Unable to find byte-order-mark, making an educated guess.");0==e[0]&&0==e[2]?c=_.xh(a,!1):0==e[1]&&0==e[3]?c=_.xh(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.vh(a));if(c)return d&&(c=escape(c)),c;throw Error("Unable to detect text encoding");
48
+ };_.zh=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};_.Ah=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};_.Bh=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=qh(e):2===c?f=ph(e):f=_.N(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};
49
+ _.Ch=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.Dh=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};_.Eh=function(a){return!!(a&&0<a.length)};_.Fh=function(a){return!a||0===a.length};
50
+ _.Gh=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.K.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""}};_.Ih=function(a){a=a.replace(/<[^>]+>/gi,"");Hh.innerHTML=a;a=Hh.textContent;return a=a.replace(/<[^>]+>/gi,"")};_.Jh=function(){};_.Lh=function(a,b){var c=void 0==b?!0:b,d=_.Kh(a).replace(/\+/g,"-").replace(/\//g,"_");return c?d:d.replace(/[=]*$/,"")};
51
+ _.Mh=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};_.Nh=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};_.Oh=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};
52
+ _.Ph=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};_.Qh=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};_.Kh=function(a){a=uh(_.N(a));return btoa(a)};_.Rh=function(a){this.f=a;this.a=0};
53
+ _.Sh=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};
54
+ _.Th=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.L(_.M,4,4016,{invalidTag:b});var d=c[1],e=c[2];c=[];var f;if(e){e=new _.Rh(e);var g;(g=_.Sh(e,/^([^,=]+)(?:,|$)/g))&&(f=g[1]);for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.Sh(e,h);)c.push(new _.eh(g[1],g[2]||g[3]))}return new _.ch(a,d,c,f)};_.Vh=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.mf(Uh).concat()}};
55
+ Wh=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||_.mf(Uh).concat()};
56
+ _.Yh=function(a,b){_.K.Z(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.Xh,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||
57
+ [],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:_.mf(Uh).concat(),requestStartTimestamp:null};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&
58
+ Wh(c,b);return c};_.Zh=function(a,b,c,d,e,f,g,h){e&&(d=e);e={uri:d,data:b||new ArrayBuffer(0),headers:a,status:c,fromCache:!!a["x-shaka-from-cache"],timeMs:g,responseStartMs:h,request:f};if(200<=c&&299>=c&&202!==c)return e;g=null;try{g=_.yh(b,!0)}catch(l){}_.Sf("HTTP error text:",g);throw new _.L(0<=(f.fatalStatusCodes||[]).indexOf(c)?_.M:1,1,1001,{url:d,status:c,responseText:g,headers:a,request:f,response:e});};
59
+ $h=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};ai=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};bi=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()};_.ci=function(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c};
60
+ _.di=function(a,b){this.P=a;this.A=b;this.a=!1};ei=function(a,b){a.P.then(function(){return b(!0)},function(){return b(!1)});return a};fi=function(a,b,c){try{var d=a(b);if(d&&d.P&&d.abort)return c.resolve(d.P),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){})["catch"](function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}};_.gi=function(){this.a=[]};
61
+ _.hi=function(a,b){a.a.push(ei(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.oi=function(){this.f=[];this.g=[];this.o=!1;this.m=new _.gi;this.a={};this.j=0;this.a.data=ii;!window.fetch||!window.AbortController||_.ji(6)||_.ki()&&68<_.li().browserVersion.major?(this.a.http=mi,this.a.https=mi):(this.a.http=ni,this.a.https=ni)};pi=function(a,b){var c;return _.B(function(d){if(1==d.a)return _.x(d,a.fetch(b),2);c=d.f;return d["return"](_.vh(c.data))})};
62
+ qi=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.B(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.G(2);break}e=_.Yh(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.zf(g,4);return _.x(g,a.fetch(e).P,6);case 6:_.Af(g,2);break;case 4:if(f=_.Bf(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};
63
+ _.ri=function(a,b){this.id=a;this.type=b;this.roles=[];this.channelsCount=this.src=this.mimeType=this.frameRate=this.label=this.language=this.kind=null;this.renditions=[];this.accessibility=[]};_.si=function(a){return a&&a!==_.He?a:null};
64
+ vi=function(a){if(!a)throw new _.L(_.M,3,3101,Qa+a);if(!_.K.Z(a))throw new _.L(_.M,3,3101,Qa+a+". Track type must be a string!");switch(a.toLowerCase()){case _.O:return _.O;case _.P:return _.P;case _.ti:return _.ti;case ui:return ui}throw new _.L(_.M,3,3101,"Unknown track type: "+a+".");};xi=function(a,b){a=vi(a);var c=_.si(b.kind),d=b.id;d||(d=String(_.wi++));d=new _.ri(d,c===_.Bd?ui:a);d.kind=c;d.label=_.si(b.label);d.language=_.si(b.language);return d};
65
+ yi=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};_.zi=function(a,b){this.track=b;this.id=a;this.originalId=this.drm=this.drmInfo=this.codec=this.Xc=this.bandwidth=this.height=this.width=null};
66
+ _.Ai=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;_.Ch(this.path,
67
+ "/")||(this.path="/"+this.path);this.f=b.search;this.g=b.hash};_.Bi=function(a){return a.scheme+"//"+(a.a+(a.port?":"+a.port:"")+a.path+a.g+a.f)};_.Ci=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)},""):""};
68
+ Di=function(a){var b={};a=a||"";a=a.substring(a.indexOf("?")+1);a=_.u(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};Ei=function(a,b){return a.startsWith("http:://")||a.startsWith("https:://")?a:(new URL(a,b)).toString()};
69
+ Fi=function(a){this.f=a;this.h=new _.H("clpp.native.hls.HlsMetadataParser");this.a=Ig(this.g.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
70
+ Ii=function(a,b,c){var d,e,f,g,h;return _.B(function(l){if(1==l.a)return _.x(l,Gi(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.ri("dummy",_.ti);h=f.map(function(m,n){var p=new _.zi("R"+n,g);p.bandwidth=m.bandwidth;p.Xc=m.Xc;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});Hi(h);return l["return"]({renditions:h,mimeType:e||void 0})})};
71
+ Ki=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return Ji(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};
72
+ Ji=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.Th(0,a);a=b("TYPE");a=null!=a?{AUDIO:_.P,VIDEO:_.ti,SUBTITLES:_.O}[a]:void 0;return{type:a,groupId:b(_.Ia),name:b("NAME"),language:b("LANGUAGE"),Gl:b("AUTOSELECT"),"default":b("DEFAULT"),Ol:b("FORCED"),If:b("CHARACTERISTICS"),uri:b(_.vb)}};Hi=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.");};
73
+ Li=function(a,b){var c,d;return _.B(function(e){if(1==e.a)return c=_.Yh(b),_.x(e,pi(a.f,c),2);d=e.f;return e["return"](d)})};Gi=function(a,b,c){var d,e,f,g;return _.B(function(h){if(1==h.a)return d=Mi(b),e=Ni(b,c),f=d[0]?d[0].codec:null,_.x(h,Oi(a,e,f),2);g=h.f;return h["return"]({mimeType:g,renditions:d})})};Oi=function(a,b,c){var d,e;return _.B(function(f){if(1==f.a)return b&&c?_.x(f,Li(a,b),2):f["return"](null);d=f.f;e=[Pi(d,b),Qi(d,b)].filter(Boolean);return f["return"](_.ah(e,_.Qe,c))})};
74
+ Mi=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.Th(0,b);if(c.getAttribute(_.Cb))throw Error("Playlist contains alternative video streams.");var d=_.dh(c,_.ib);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.dh(c,_.ma);e=e?Number(e):null;var f=_.dh(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.dh(c,_.na);c=_.Xg(_.Qe,c?c.split(","):[]);return{bandwidth:e,Xc:f,codec:c,width:b,height:d,mimeType:null}})};
75
+ Ni=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?Ei(c,b):null};Pi=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?Ei(c,b):null};Qi=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.dh(_.Th(0,c),_.vb))?Ei(c,b):null:null};
76
+ _.Vi=function(a,b,c){for(var d=_.u(_.Ui),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.Wi=function(a){a=_.Ui.indexOf(a);0<=a&&_.Ui.splice(a,1)};_.Q=function(){};_.Xi=function(a,b){var c=a;b&&(c+='; codecs\x3d"'+b+'"');return c};_.Yi=function(a){this.f=a;this.a=null};Zi=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};
77
+ _.$i=function(a){this.f=a;this.a=null};aj=function(){};_.bj=function(){return!!navigator.userAgent.match(/Edge?\//)};_.ji=function(a){return _.cj("Tizen"+(a?" "+String(a):""))};_.ki=function(){return _.cj("Web0S")};_.ej=function(){return _.ki()&&79===dj().major};_.fj=function(){return _.cj("CrKey")};_.gj=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.ji()};_.hj=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.gj()&&1<navigator.maxTouchPoints};
78
+ _.ij=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};_.cj=function(a){return(navigator.userAgent||"").includes(a)};nj=function(){if(jj)return jj;mj||(mj=new _.$i(function(){jj=null}));(jj=document.querySelector(_.Qe)||document.querySelector(_.kc))||(jj=document.createElement(_.Qe));mj.$(1);return jj};pj=function(a,b){try{return parseInt(b,10)}catch(c){oj.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
79
+ qj=function(a){var b={major:-1,name:Ie};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=pj(a,c[0]));2<=c.length&&(b.minor=pj(a,c[1]));3<=c.length&&(b.patch=pj(a,c[2]));4<=c.length&&(b.build=pj(a,c[3]));return b};rj=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};
80
+ Bj=function(){var a=sj();if(!a)return tj;var b=a.match(/^.+?(?=\))/);if(!b)return tj;b=b[0];if(rj(b,["iphone","ipad"]))return uj;if(rj(b,["android"]))return vj;if(rj(b,["macintosh"]))return wj;if(rj(b,["windows nt"]))return xj;if(rj(b,["tizen"]))return yj;if(rj(b,["web0s"]))return zj;if(rj(b,["linux"]))return Aj;oj.warn("Unable to identify OS from user agent: "+a);return tj};
81
+ dj=function(){var a=sj(),b=["ie","edge","opera","firefox","safari",Gc];var c=Bj();for(var d=Cj[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return qj(c[1]);return qj("")};sj=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
82
+ _.li=function(){var a=Bj();var b=Bj();var c=Cj[b];if(c){c=sj().match(c.os_version)[1];c=qj(c);if(b===xj)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=qj("");a:{c=sj();var d=["ie","edge","opera","firefox","safari",Gc],e=Bj();e=Cj[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=Dj}return{os:a,osVersion:b,browser:c,browserVersion:dj()}};
83
+ Ej=function(){this.h=new _.H("clpp.native.TrackManager");this.l=null;this.f=new _.dg;this.g=[];this.B=0;this.o={};this.D=[];this.a=new Map;this.w=null;this.m=new Map;this.A=!0;this.J=this.af.bind(this,_.O);this.L=this.cf.bind(this,_.O);this.K=this.bf.bind(this,_.O);this.O=this.af.bind(this,_.ti);this.V=this.cf.bind(this,_.ti);this.S=this.bf.bind(this,_.ti);this.F=this.af.bind(this,_.P);this.I=this.cf.bind(this,_.P);this.H=this.bf.bind(this,_.P);this.j=null};
84
+ Gj=function(a,b){var c,d,e,f,g,h,l,m;return _.B(function(n){if(1==n.a){c=a.l.getConfiguration();d=_.Vi(c,b.mimeType,_.Ce);if(!d)return a.h.warn("Track mimetype is not supported",b),n["return"]();e=_.Yh(b.url);return _.x(n,a.l.getNetworkEngine().fetch(e).P,2)}(f=n.f)&&f.data&&(g="External_"+a.B++,a.o[g]=b,h=d.a(_.N(f.data)),l=URL.createObjectURL(new Blob([h])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.Ce},Fj(a,m,g));_.z(n)})};Ij=function(a,b,c){return Hj(a)&&b===_.ti&&!!c.enableHlsVideoTrackInfo};
85
+ Jj=function(a,b,c){return Hj(a)&&(b===_.P||b===_.O)&&!!c.enableMetadata};Hj=function(a){a=a.l.getLoadedSource();return!(!a||a.type!==_.Kj&&!a.url.endsWith(".m3u8"))&&_.gj()};Lj=function(a,b,c){var d,e;return _.B(function(f){if(1==f.a)return(d=a.l.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)})};
86
+ Mj=function(a,b,c){var d,e,f,g;return _.B(function(h){if(1==h.a)return(d=a.l.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.If&&(b.accessibility=g.If.split(",").map(function(l){return l.trim()}).map(function(l){return{value:l,type:b.type,protocol:"HLS"}})));_.z(h)})};
87
+ Fj=function(a,b,c){if(a.l){var d=a.l.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);e.src=_.Fh(b.url)?URL.createObjectURL(new Blob([])):b.url;d.appendChild(e);a.D.push(e)}}};Nj=function(a,b){if(!a.l)return null;var c=a.l.getSurface();if(!c)return null;c=c.getMedia();if(!c)return null;switch(b){case _.P:return c.audioTracks;case _.ti:return c.videoTracks;case _.O:return c.textTracks;default:return null}};
88
+ Oj=function(a,b){var c=Nj(a,b);c&&(c=Array.from(c),b===_.O&&(c=c.filter(function(d){return d.kind!==_.Bd})));return c};Pj=function(a,b){return a.g.filter(function(c){return c.type===b})};Qj=function(a,b){var c=a.a.get(b)||null;return c&&c.renditions[0]};Rj=function(a,b){var c=a.m.get(b);return c&&c.renditions[0]};
89
+ Vj=function(a,b,c){var d=Oj(a,b);if(c){if(void 0===a.g.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.h.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.m.set(b,c);var e=!0,f=!1;switch(b){case _.O:var g="mode";e=_.me;f=_.Yc;break;case _.P:g="enabled";break;case _.ti:g="selected"}if(g){d=_.u(d);for(var h=d.next();!h.done;h=d.next())h=h.value,h[g]=Sj(c,h,c.type)?e:
90
+ f}}}else if(a.h.debug(_.Ca+b),a.a.get(b)&&d&&b===_.O){g=_.u(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.Yc;a.a.set(b,null)}b===_.P?a.l.trigger(new _.J(_.Tj)):b===_.O&&a.l.trigger(new _.J(_.Uj))};Wj=function(a){return a.enabled||a.selected||a.mode===_.me||a.mode===_.md};
91
+ Xj=function(a,b,c){c=_.Eg(c).filter(function(e){return e});a.h.info("Find preferred tracks for",b,c);var d=Pj(a,b);c.some(function(e){var f=_.fh(e);return(e=d.find(function(g){g=_.fh(g.language||"");return _.gh(f,g)}))?(a.h.info("Will select track with id",e.id),Vj(a,b,e),!0):!1})};Yj=function(a){(a=a.l.getTextDisplayer())&&a.remove(0,Infinity)};
92
+ Sj=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.K.ya(a,{kind:_.si(b.kind),language:_.si(b.language),label:_.si(b.label)},["kind","language","label"])};_.Zj=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.ak=function(){this.kd=new cg(this);this.hd=[]};ck=function(a){return a.name===bb&&bk.some(function(b){return a.message.startsWith(b)})};dk=function(){};
93
+ _.gk=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.hj()&&(a=360);var b=_.Vh();b.maxAttempts=3;a={source:"",license:ek,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,manifest:{attemptParameters:_.Vh(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,
94
+ restrictions:fk(a)},drm:null,enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:"main",preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],volume:null,startTime:null,loop:!1,lowLatencyMode:!1,suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,streaming:{attemptParameters:b,bufferingGoal:10,rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,relativeTextTimestamp:!1,startAtSegmentBoundary:!1,
95
+ gapDetectionThreshold:.1,disableAudioTracks:!1,disableVideoTracks:!1,smallGapLimit:.5,jumpLargeGaps:!0,durationBackoff:1,maxSegmentToMediaOffset:1,forceNativeTS:!1,preferNativeHlsOnSafari:!0,safeSeekOffset:5,stallEnabled:!0,stallThreshold:3,stallSkip:.5,bufferLimitUpdateInterval:.5,overridePasp:!1,enableLiveEdgeChasing:!1,chasingRate:1.15,startChasingAt:5,stopChasingAt:2,chaseJumpDistance:10,patchEdgeWhenMixedContent:!1,ignoreDrift:!1,disableFragmentSupport:!1,disableMergedFragments:!1},restrictions:fk(),
96
+ tizen:{sideStreamText:_.ji(2)},safari:{enableHlsVideoTrackInfo:!1,enableMetadata:!0}};if(_.cj("Edge/")||_.ji())a.streaming.gapDetectionThreshold=.5;_.ki()&&(a.streaming.stallEnabled=!1);_.ej()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.ji()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=0);a.vr={enable:!1,attachMouseListener:!0,fieldOfView:70,sensitivity:1,invertHorizontalControl:!1,
97
+ invertVerticalControl:!1};return a};
98
+ _.ik=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(!b)return _.gk();c=[_.gk()];var d=!1;b=_.u(b);for(var e=b.next();!e.done;e=b.next())e=e.value,null!==e&&void 0!==e&&(_.K.Z(e)&&(e={source:e}),e.lowLatencyMode&&!d&&(c.push({suggestedPresentationDelay:0,streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{hlsLowLatency:!0}}),d=!0),
99
+ c.push(e));c=_.K.ua.apply(null,c);_.K.Z(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.K.R(c.volume)&&(!_.K.la(c.volume)||_.K.isNaN(c.volume)))throw new _.L(_.M,7,7100,"config.volume is not a number");if(!_.K.R(c.preferredTextLanguage)&&!_.K.Z(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.L(_.M,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.K.R(c.preferredAudioLanguage)&&!_.K.Z(c.preferredAudioLanguage)&&!Array.isArray(c.preferredAudioLanguage))throw new _.L(_.M,
100
+ 7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.K.R(c.preferredAudioCodec)&&!_.K.Z(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.L(_.M,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.K.R(c.preferredVideoCodec)&&!_.K.Z(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.L(_.M,7,7100,"config.preferredVideoCodec is not a string or an array");if(!_.K.R(c.drm)){if(c.drm.env&&!_.K.Z(c.drm.env))throw new _.L(_.M,
101
+ 7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.K.Z(c.drm.offlineId))throw new _.L(_.M,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(!_.K.la(d.bufferingGoal)||_.K.isNaN(d.bufferingGoal))throw new _.L(_.M,7,7100,"config.streaming.bufferingGoal is not a number");
101
102
  if(!_.K.la(d.rebufferingGoal)||_.K.isNaN(d.rebufferingGoal))throw new _.L(_.M,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.L(_.M,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.K.la(d.bufferBehind)||_.K.isNaN(d.bufferBehind))throw new _.L(_.M,7,7100,"config.streaming.bufferBehind is not a number");if(!_.K.la(d.smallGapLimit)||_.K.isNaN(d.smallGapLimit))throw new _.L(_.M,7,7100,"config.streaming.smallGapLimit is not a number");
102
- if(!_.K.la(d.durationBackoff)||_.K.isNaN(d.durationBackoff))throw new _.L(_.M,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.K.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.k)throw new _.L(_.M,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");ik(c.restrictions);ik(c.abr.restrictions);c.abr.initialRestrictions&&ik(c.abr.initialRestrictions)}return c};
103
- gk=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}};
104
- ik=function(a){_.K.R(a.maxPixels)&&(a.maxPixels=Infinity);_.K.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.K.R(a.maxHeight)&&(a.maxHeight=Infinity);_.K.R(a.maxWidth)&&(a.maxWidth=Infinity);_.K.R(a.minPixels)&&(a.minPixels=0);_.K.R(a.minBandwidth)&&(a.minBandwidth=0);_.K.R(a.minHeight)&&(a.minHeight=0);_.K.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);
105
- 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 _.L(_.M,7,7100,"Restrictions contain NaN");};_.kk=function(a){return typeof a===_.Ld&&!Array.isArray(a)&&"source"in a};
106
- _.lk=function(a){_.bk.call(this);this.log=new _.H(a);this.configuration=this.Kd=_.hk();this.w=this.D=null;this.Ud=this.Oe=!1;this.Yg=new _.H("clpp.video.events");this.Xc=null;this.Md=-1;this.cl=this.Mk.bind(this);this.sg=new _.pi;this.M=new _.eg;this.uc=this.Gc=this.K=null};_.nk=function(a){return _.mk.get(a)||null};_.pk=function(a){_.mk.get(a.id())?ok.warn("Component already in use."):_.mk.set(a.id(),a)};qk=function(a){for(var b=_.u(_.mk.values()),c=b.next();!c.done;c=b.next())a(c.value)};
107
- rk=function(){this.a=this.f=null;this.h=new _.H("clpp.drm.csl")};sk=function(a,b){3===b.type&&(a.f&&(a.h.debug("Attaching tracking token"),b.headers[hf]=a.f),a.a&&(b.headers[kf]=a.a))};
108
- tk=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[hf];a.a=b.headers[kf];var c=b.headers["x-dt-csl-renewal-info"];a.f&&a.h.debug("Loaded tracking token "+a.f);a.a&&a.h.debug("Loaded followup token "+a.a);if(c)return c=JSON.parse(_.wh(_.Nh(c))),{delay:c.renewalPeriod,xl:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};uk=function(a){return _.Dh(a,_.Sc)||_.Dh(a,_.Tc)};_.wk=function(a){_.vk[a.J]=a};
109
- _.yk=function(a){var b={attemptParameters:_.Wh(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,Ua:{}};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,a.env)){var c=_.vk[a.env]||null;if(!c)throw _.Tf(_.va,_.hb+
110
- a.env+_.aa),new _.L(_.M,6,6015,_.xa+a.env+"' is missing.");b.Ua=_.xk(c,a.customData)||{};_.Dh(a.env.toLowerCase(),ed)&&(b.enforceSingleSession=!0)}return b};Ak=function(a){a=zk[a];if(!a)return null;var b=_.mi();return b.os===wj&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.Bk=function(a){this.J=a;this.f={}};Ck=function(a,b){var c=_.mi();if(c.os!==wj||c.browser!==Hc)return a||b};
111
- _.xk=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[_.Uc];g&&(c[_.Uc]={licenseUrl:g.licenseUrl,videoRobustness:Ck(d,g.videoRobustness),audioRobustness:Ck(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:g.distinctiveIdentifierRequired,persistentStateRequired:g.persistentStateRequired,serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.ve?Ak(f):f});(g=a.f[_.Sc])&&(c[_.Sc]=
112
- {licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.f[_.Tc])&&(c[_.Tc]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});return c};
113
- _.Dk=function(a,b){this.f=_.K.la(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.g=!!b;this.buffer=this.f.buffer};_.Fk=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.N(a.f.buffer);b=_.N(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.Ek()}};_.S=function(a,b){try{a.f.setUint32(a.a,b,a.g),a.a+=4}catch(c){_.Ek()}};_.Ek=function(){throw new _.L(_.M,3,3E3);};_.Gk=function(a,b){this.f=a;this.g=void 0===b?!0:b;this.a=0};_.Hk=function(a){return a.a<a.f.byteLength};
114
- _.Jk=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.Ik()}};_.Kk=function(a){try{var b=a.f.getUint16(a.a,a.g);a.a+=2;return b}catch(c){_.Ik()}};_.T=function(a){try{var b=a.f.getUint32(a.a,a.g);a.a+=4;return b}catch(c){_.Ik()}};_.Lk=function(a){try{var b=a.f.getInt32(a.a,a.g);a.a+=4;return b}catch(c){_.Ik()}};Mk=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.Jk(a);return c};
115
- _.Nk=function(a){var b=0;try{if(a.g){var c=a.f.getUint32(a.a,!0);b=a.f.getUint32(a.a+4,!0)}else b=a.f.getUint32(a.a,!1),c=a.f.getUint32(a.a+4,!1)}catch(d){_.Ik()}if(2097151<b)throw new _.L(_.M,3,3001);a.a+=8;return b*Math.pow(2,32)+c};_.Ok=function(a,b){a.a+b>a.f.byteLength&&_.Ik();var c=a.f.buffer.slice(a.a,a.a+b);a.a+=b;return _.N(c)};_.Ik=function(){throw new _.L(_.M,3,3E3,"Buffer read out of bounds.");};_.Pk=function(){this.g=[];this.f=[];this.a=!1;this.h=new _.H("clpp.mp4")};
116
- _.Qk=function(a){for(;_.Hk(a.reader)&&!a.parser.a;)a.parser.$d(a.start+a.headerSize,a.reader,a.partialOkay)};_.Rk=function(a){for(var b=_.T(a.reader);0<b&&!a.parser.a;--b)a.parser.$d(a.start+a.headerSize,a.reader,a.partialOkay)};_.Sk=function(a){return function(b){var c=b.reader.Ca()-b.reader.getPosition();a(_.Ok(b.reader,c))}};Tk=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.Uk=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};
117
- _.Vk=function(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)};Wk=function(){};Xk=function(a){var b="";try{b=_.zh(a)}catch(c){}return b};_.Yk=function(a){a=Xk(a);var b="";a.length&&(b=(new _.Bi(a)).a);return b};Zk=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.wh(a)),d=_.Nh(c.sinf[0]);(new _.Pk).L(_.oe,_.Qk).L("schi",_.Qk).L("tenc",function(e){e.reader.skip(6);_.Jk(e.reader)&&(e.reader.skip(1),b=_.Ph(_.Ok(e.reader,16)));e.parser.stop()}).parse(d)}catch(e){}return b};
118
- $k=function(a,b,c){if(!c||!c.byteLength)throw new _.L(_.M,6,6102);var d;typeof b===_.ve?d=_.Bh(b,!0):d=b;a=_.Bh(Xk(a),!0);b=new _.Dk(12+a.byteLength+d.byteLength+c.byteLength,!0);_.S(b,a.byteLength);_.Fk(b,_.N(a));_.S(b,d.byteLength);_.Fk(b,_.N(d));_.S(b,c.byteLength);_.Fk(b,_.N(c));return _.N(b.buffer)};_.al=function(a){var b=_.N(a.body);b=_.Mh(b);a.headers[ua]=kc;a.body=_.Ah("spc\x3d"+b).buffer};
119
- _.bl=function(a){try{var b=_.wh(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=uh(_.Nh(b))};
120
- hl=function(){var a=dl;if(a===el)return"https://lic.drmtoday.com";if(a===fl)return"https://lic.staging.drmtoday.com";if(a===gl)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};ll=function(a){var b=hl();if(a==_.Uc)return b+il;if(a==_.Tc)return b+jl;if(a==_.Sc)return b+kl;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
121
- ml=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
122
- _.ol=function(a,b,c){b=Xk(b);c=c&&c.customData?c.customData:{};b=new _.Bi(ml(b));var d=Ei(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.Fh(""+a)&&(d.assetId=a,nl.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.Fh(""+e)&&(d.variantId=e,nl.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],nl.debug("KeyId found in FPS SKD. Removing other parameters")):
123
- a=["assetId","variantId"];b.f=_.Di(d,!1,a);"/"!==b.path||b.j.includes(b.a+"/")||(b.path="");b=_.Ci(b);return c.fpsContentId=b};
124
- _.pl=function(a,b,c,d){d=void 0===d?!0:d;a=a.drm;a&&a.env.startsWith(za)?a.customData&&(c=btoa(JSON.stringify({userId:a.customData.userId,sessionId:a.customData.sessionId,merchant:a.customData.merchant})),b.headers["dt-custom-data"]=c,a.customData.authToken&&(b.headers["x-dt-auth-token"]=""+a.customData.authToken),c=b.uris[0],d&&a.customData.assetId&&(c+="?assetId\x3d"+encodeURI(""+a.customData.assetId),a.customData.variantId&&(c+="\x26variantId\x3d"+encodeURI(""+a.customData.variantId)),b.uris[0]=
125
- c)):nl.warn(Ya)};ql=function(a,b,c){_.pl(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.Lg(b.uris[0]);c.a.add(_.Wd,a);b.uris[0]=c.toString()};
126
- _.rl=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.pl(a,b,c,!1);b.headers[ua]=kc;c={spc:_.Lh(b.body)};if((a=a.drm)&&a.env.startsWith(Ca)&&d){a={};var e=Ei((new _.Bi(ml(d))).f);d=e.keyId;if(e=e.assetId)nl.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(nl.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(nl.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(nl.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
127
- _.Ch(_.Di(c,!0))};_.sl=function(a,b){nl.debug("Clearing response data");if(200===b.status){var c=_.wh(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.Nh(c).buffer}};_.tl=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(za))nl.warn(Ya);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(Ca)){var d=new _.Lg(b.uris[0]),e=d.za;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.za=e;b.uris[0]=d.toString()}};
128
- _.ul=function(a,b){try{var c=_.N(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));nl.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){nl.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};wl=function(a){var b={},c=a?a[lf]:void 0;a=vl[a?a[lf]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};xl=function(){};
129
- zl=function(a,b){b=void 0===b?0:b;_.Sf("Registering EME Factory: "+a.a());for(var c={priority:b,Mb:a},d=0;d<yl.length;++d)if(yl[d].priority<b){yl.splice(d,0,c);return}yl.push(c)};
130
- Al=function(a){if(a){var b=yl.find(function(d){return d.Mb.a()===a}).Mb;if(b&&b.$())return _.Sf(Hb+b.a()),b.create();_.Sf("Cannot create selected EME manager. Choosing by priority list.")}b=_.u(yl);for(var c=b.next();!c.done;c=b.next())if(c=c.value.Mb,c.$())return _.Sf(Hb+c.a()),c.create();throw Error("Missing EME managers");};_.Cl=function(a,b){var c=_.Bl(a,b);return 1!=c.length?null:c[0]};
131
- _.Bl=function(a,b){return Array.prototype.filter.call(a.childNodes,function(c){return c instanceof Element&&c.tagName==b})};_.Dl=function(a){return Array.prototype.every.call(a.childNodes,function(b){return b.nodeType==Node.TEXT_NODE||b.nodeType==Node.CDATA_SECTION_NODE})?a.textContent.trim():null};
132
- _.El=function(a,b){var c=new DOMParser,d=null,e=null;try{e=c.parseFromString(a,_.Ee)}catch(f){}e&&e.documentElement.tagName==b&&(d=e.documentElement);return d&&0<d.getElementsByTagName("parsererror").length?null:d};Fl=function(a,b,c){this.j=new Uint8Array(a);this.a=b;this.f=c};Gl=function(){Fl.apply(this,arguments)};_.Il=function(a){var b=_.Oh(a);b=parseInt(b.byteLength,10).toString(16);b=_.Oh("12"+b+a);return new Gl(Hl,a,b)};
133
- _.Jl=function(a){function b(r){switch(r){case 0:do if(!_.Hk(d))throw Error("not enough data to skip!");while(_.Jk(d)&128);break;case 1:d.skip(8);break;case 2:d.skip(c());break;case 3:for(;4!==(r=c()&7);)b(r);break;case 5:d.skip(4);break;default:throw Error("invalid wire type "+r);}}function c(){for(var r=_.Jk(d),v=(r&127)>>>0,y=7;128<=r&&28>=y;)r=_.Jk(d),v=(v|(r&(28>y?127:15))<<y)>>>0,y+=7;return 28<y?-1:v}var d=new _.Gk(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.T(d);var e=_.T(d);e=
134
- _.Uk(e);var f=_.T(d),g=f>>>24;f&=16777215;var h=_.Ok(d,16);h=_.Ph(h);if(0<g){var l=_.T(d);d.skip(16*l)}l=_.T(d);for(var m=[],n=null;_.Hk(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=Mk(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.Tf("Parsed WV PSSH Box","size",a,"name",e,"version",g,"flags",f,"size",l,"systemId",h,"contentId (base64)",n?_.Lh(n):"","keyIds",m.map(function(r){return _.Ph(r)}));return 0<m.length?_.Il(_.Ph(m[0])):null};
135
- _.Kl=function(a,b,c,d,e,f){f=void 0===f?null:f;Fl.call(this,a,b,d);this.version=e;this.g=c;this.m=f};
136
- _.Pl=function(a){a:{a=new _.Gk(new DataView(a.buffer),!0);_.T(a);for(_.Kk(a);_.Hk(a);)if(1===_.Kk(a)){var b=_.Kk(a);a=_.Ok(a,b);break a}a=null}b=yh(a,!0);var c=_.El(b,"WRMHEADER");b=c.getAttribute("version");var d=_.Cl(c,"DATA");c=(c=_.Cl(d,"LA_URL"))?_.Dl(c):"";var e;if(e=_.Cl(d,"KID"))if(e=_.Dl(e)){var f=_.Cl(d,ma);e={value:e,se:f?f.textContent.trim():null}}else e=null;else e=null;d=e?[e]:(e=Ll(d))?[e]:(d=Ml(d))?d:null;e=d&&d[0]||{};d=e.se;e=_.Nh(void 0===e.value?"":e.value);e=_.Nl(e);e=_.Ph(e);
137
- return new _.Kl(_.Ol,e,c,a,b,d)};_.Nl=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=_.N(a);a.set(b,0);return a};Ll=function(a){a=_.Cl(a,"PROTECTINFO");if(!a)return null;var b=_.Cl(a,"KID");if(!b)return null;a=b.getAttribute("VALUE");if(!a)return null;var c=b.getAttribute(ma);b=b.getAttribute("ALGID");return{value:a,se:c,nh:b}};
138
- Ml=function(a){a=_.Cl(a,"PROTECTINFO");if(!a)return null;a=_.Cl(a,"KIDS");if(!a)return null;var b=_.Bl(a,"KID");if(!b.length)return null;a=[];b=_.u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(ma);d=d.getAttribute("ALGID");a.push({value:c,se:e,nh:d})}}return a.length?a:null};Ql=function(a){this.f=[];this.g=[];this.a=[];8<=a.byteLength&&(new _.Pk).W("pssh",this.j.bind(this)).parse(a.buffer);0==this.a.length&&_.G("No pssh box found!")};
139
- _.Ul=function(a){var b=this;this.C=a;this.M=new Set;this.B=this.I=this.o=null;this.da=!1;this.a=null;this.J=Rl;this.A=new _.eg;this.P=new rk;this.f=new Map;this.K=[];this.H=new _.di;this.g=null;this.S=function(c){b.w=!0;b.D=!1;b.H.reject(c);a.onError(c)};this.m=new Map;this.ma=new Map;this.ga=new _.aj(function(){return Sl(b)});this.j=!1;this.Ga=new _.di;this.F=!1;this.ha=[];this.Va=!1;this.V=0;this.h=new _.H("clpp.drm.DrmEngine");this.na=(new _.aj(function(){Tl(b)})).eb(1);this.H["catch"](function(){});
140
- this.w=this.D=!1;this.T=null};
141
- Wl=function(a){var b,c,d,e,f;return _.B(function(g){switch(g.a){case 1:a.A.release();a.A=null;a.P.release();a.P=null;a.w=!1;a.D=!1;a.H.reject();a.na.stop();a.na=null;a.ga.stop();a.ga=null;b=Array.from(a.f.keys());c=_.u(a.f.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.Ec&&e.Ec.stop();a.f.clear();return _.x(g,Promise.all(b.map(function(h){return Promise.resolve().then(function(){var l;return _.B(function(m){if(1==m.a)return a.h.debug("Closing session",h.sessionId),_.Af(m,2),_.x(m,Vl(h),4);
142
- if(2!=m.a)return _.Bf(m,0);l=_.Cf(m);a.h.warn("Error while closing session",l);_.z(m)})})})),2);case 2:if(!a.B){g.G(3);break}_.Af(g,4);return _.x(g,a.o.bd(null),6);case 6:_.Bf(g,5);break;case 4:f=_.Cf(g),a.h.warn("Error while resetting media keys",f);case 5:a.B=null;case 3:a.o=null,a.a=null,a.M.clear(),a.I=null,a.K=[],a.g=null,a.S=null,a.C=null,a.V=0,a.T=null,_.z(g)}})};
143
- _.Zl=function(a,b,c){a.J=Xl;a.K=c;a.F=0<c.length;a.h.debug("Using Persisted Licenses: "+a.F);a.g&&a.g.enableSessionCacheForSkd&&a.h.info("Enabled session cache for SKD license requests");return _.Yl(a,b)};
144
- _.Yl=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.K.Af(a.g.Ua);$l(b,d)}var e=am(a);if(e){var f=_.u(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos=[e]}e=_.u(b);for(d=e.next();!d.done;d=e.next())for(d=_.u(d.value.drmInfos),f=d.next();!f.done;f=d.next())bm(f.value,a.g.Ua);d=cm(a,b);if(!d.size)return a.da=!0,Promise.resolve();d=_.dm(a,d);return c?d:d["catch"](function(){})};
145
- em=function(a){var b;return _.B(function(c){switch(c.a){case 1:if(a.o.Qd())return c["return"]();if(!a.T){c.G(2);break}return _.x(c,a.T,3);case 3:return c["return"]();case 2:return _.Af(c,4),a.T=a.o.bd(a.I),_.x(c,a.T,6);case 6:_.Bf(c,0);break;case 4:b=_.Cf(c);if(a.j)return c["return"]();a.S(new _.L(_.M,6,6003,b.message,b));_.z(c)}})};
146
- gm=function(a,b){return _.B(function(c){if(1==c.a)return a.h.info("Handle encrypted event for type "+b.initDataType),_.x(c,em(a),2);if(!b.initData)return c["return"]();_.fm(a,b.initDataType,_.N(b.initData));_.z(c)})};
147
- _.lm=function(a,b){if(!a.I)return _.fg(a.A,b,[gd,"msneedkey",ef,"needkey"],function(){a.S(new _.L(_.M,6,6010))}),Promise.resolve();a.B=b;a.o.Gd(b);a.A.one(a.B,_.Zd,function(){return hm(a)});a.A.on(a.B,_.$e,function(e){var f=a.D;a.D=!a.w;!f&&a.D&&(a.h.info("Waiting for DRM license key delivery"),a.C.onEvent(e))});var c=a.a.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.o.$c()!==mb||a.K.length)d=em(a);c=Promise.resolve();_.li()&&38===ej().major||(a.a&&a.a.keySystem!==
148
- _.Td&&!a.a.serverCertificate&&(c=im(a)),c=c.then(function(){return _.jm(a)}));return Promise.all([d,c]).then(function(){a.j||(_.km(a),a.A.on(a.B,gd,function(e){return gm(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.a&&a.a.keySystem===_.Uc&&1>a.V&&a.a.serverCertificate&&a.a.serverCertificate.length)return a.h.warn("Detected invalid widevine server certificate!. Retrying"),a.S(new _.L(1,6,6004)),a.a.serverCertificate=null,a.V++,_.lm(a,b);1<=a.V&&a.h.info("Could not get valid widevine server certificate. Giving up");
149
- throw e;}})};_.jm=function(a){var b,c;return _.B(function(d){if(1==d.a){if(!(a.I&&a.a&&a.a.serverCertificate&&a.a.serverCertificate.length))return d.G(0);_.Af(d,3);return _.x(d,a.I.setServerCertificate(a.a.serverCertificate),5)}if(3!=d.a)return b=d.f,void 0===b||b||a.h.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.Bf(d,0);c=_.Cf(d);throw new _.L(_.M,6,6004,{browserError:c.message});})};
150
- im=function(a){var b=a.keySystem(),c=a.g.Ua[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.C.getConfiguration();return mm(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.Zh([d],a.g.attemptParameters);f.type=3;f.licenseRequestType=Fc;g&&f.requestModifiers.push(function(l){return g(e,l)});h&&f.responseModifiers.push(function(l){return h(e,l)});a.h.debug("Fetching certificate");return a.C.Cb.fetch(f).O}).then(function(f){a.a.serverCertificate=
151
- _.N(f.data)})["catch"](function(f){var g=f.data.headers;g=Object.assign({message:"Error while fetching certificate!",url:f.data.url,status:f.data.status,response:f.data.response},g?{headers:g}:{},wl(g));throw new _.L(_.M,6,6100,g,f);})};mm=function(a,b){var c,d;return _.B(function(e){c=a.C.Kc();return c?(d=b&&b.drm&&b.drm.customData)?_.x(e,c(d),0):e["return"]():e["return"]()})};nm=function(a,b){if(!a)return!1;for(var c=0;c<b.Ld.length;c++)if(_.Qh(a,b.Ld[c]))return!0;return!1};
152
- _.km=function(a){for(var b=a.a?a.a.initData||[]:[],c=_.u(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.ki(2);if(a.g.enforceSingleSession&&!a.keySystem().startsWith(_.Sc)){var f=a.f.values();f=_.u(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.Qh(d.initData,g.initData)?(a.h.info("Skipping Session creation. Existing init data in single session mode!"),e=!1):g.periodId===d.periodId&&(a.h.info("Skipping Session creation. Merging init data for period in single session mode for Key ID "+(d.keyId+
153
- ".")),nm(d.initData,g)||(g.Ld.push(d.initData),d.keyId&&!g.fb.includes(d.keyId)&&g.fb.push(d.keyId),a.m.get(d.keyId)||a.m.set(d.keyId,te)),e=!1)}!e||a.F&&a.J===Xl||(_.om(a,d.keyId,d.initData)&&(e=!1),e&&(a.h.info("Request new media key session on create"),pm(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.u(a.K);for(d=c.next();!d.done;d=c.next())_.qm(a,d.value);b.length||a.K.length||(a.w||a.h.info(ya),a.w=!0,a.D=!1,a.H.resolve());return a.H};
154
- _.fm=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.F||a.J!==Xl)){var e=a.keySystem();if(!e.startsWith(_.Sc)){var f=new Ql(c);if(1<f.a.length&&(e={"org.w3.clearkey":"1077efecc0b24d02ace33c1e52e2fb4b","com.widevine.alpha":"edef8ba979d64acea3c827dcd51d21ed","com.microsoft.playready":"9a04f07998404286ab92e65be0885f95","com.adobe.primetime":"f239e769efa348509c16a903c6932efb"}[e]))for(var g=0;g<f.f.length;g++)if(e===f.f[g]){c=c.subarray(f.a[g].start,f.a[g].end+1);break}}(a.B.webkitCurrentPlaybackTargetIsWireless||
155
- _.ki(2)||a.keySystem().startsWith(_.Sc)||!_.om(a,d,c,!0))&&pm(a,d,null,b,c)}};
156
- _.om=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.u(a.f.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.f.get(f);if(_.Qh(c,g.initData))return b?g.fb.includes(b)?d&&a.h.info("Skipping Session creation. License for init data with Key ID "+(b+" was already requested in Session: '")+(f.sessionId+"'. ")):(g.fb.push(b),a.m.get(b)||a.m.set(b,te),d&&a.h.info(tb+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.h.info(tb+(f.sessionId+"'")),!0;if(nm(c,g))return d&&a.h.info("Skipping Session creation. License for init data was already requested [extra]"),
157
- !0}return!1};rm=function(a){var b=Infinity;a=a.f.keys();a=_.u(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};
158
- cm=function(a,b){for(var c=new Set,d=_.u(b),e=d.next();!e.done;e=d.next()){var f=_.u(e.value.drmInfos);for(e=f.next();!e.done;e=f.next())c.add(e.value)}d=_.u(c);for(e=d.next();!e.done;e=d.next())bm(e.value,a.g.Ua);f=a.F?_.ie:_.Sd;var g=a.F?[_.Xd]:[Be];d=new Map;c=_.u(c);for(e=c.next();!e.done;e=c.next())e=e.value,d.set(e.keySystem,{initDataTypes:[_.Dc],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.Sd,persistentState:f,sessionTypes:g,label:e.keySystem,drmInfos:[]});c={};f=_.u(b);
159
- for(e=f.next();!e.done;c={ee:c.ee,me:c.me},e=f.next()){e=e.value;g=e.audio;var h=e.video;c.ee=g?_.Yi(g.mimeType,g.codecs):"";c.me=h?_.Yi(h.mimeType,h.codecs):"";var l={},m=_.u(e.drmInfos);for(e=m.next();!e.done;l={Ib:l.Ib},e=m.next())e=e.value,l.Ib=d.get(e.keySystem),l.Ib.drmInfos.push(e),e.initData&&e.initData.length&&(l.Ib.initDataTypes=_.nf(new Set(e.initData.map(function(n){return n.initDataType}))).concat()),e.distinctiveIdentifierRequired&&(l.Ib.distinctiveIdentifier=_.ie),e.persistentStateRequired&&
160
- (l.Ib.persistentState=_.ie),g&&_.Fg(e.audioRobustness).forEach(function(n,p){return function(q){p.Ib.audioCapabilities.push({robustness:q||"",contentType:n.ee})}}(c,l)),h&&_.Fg(e.videoRobustness).forEach(function(n,p){return function(q){p.Ib.videoCapabilities.push({robustness:q||"",contentType:n.me})}}(c,l))}return d};
161
- _.dm=function(a,b){function c(n,p,q){p.drmInfos.some(function(r){return!!r.licenseServerUri})==n&&(g=g["catch"](function(){if(a.j)return null;if(q===_.Tc){var r=a.C.getConfiguration();if(!_.cj()||r.streaming.patchEdgeWhenMixedContent||a.g.Ua[q].useLegacySystem)d(p);else return a.o.Cc("com.microsoft.playready.recommendation",[p])["catch"](function(){d(p);return a.o.Cc(q,[p])})}return a.o.Cc(q,[p])}))}function d(n){for(var p=_.u(n.audioCapabilities),q=p.next();!q.done;q=p.next())delete q.value.robustness;
162
- n=_.u(n.videoCapabilities);for(p=n.next();!p.done;p=n.next())delete p.value.robustness}if(1==b.size&&b.has(""))return Promise.reject(new _.L(_.M,6,6E3));null===a.o&&(a.o=Al(a.g.emeApi));for(var e=_.u(b.values()),f=e.next();!f.done;f=e.next())f=f.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;var g=e=new _.di,h=a.g.preferredDrmSystem;if(!h)if(f=_.mi(),f.os===yj&&10<=f.osVersion.major&&"edge"===f.browser)h=_.Tc;else if("safari"===
163
- f.browser)h=_.Sc;else if(f.browser===Hc||"firefox"===f.browser)h=_.Uc;h&&(f=b.get(h))&&(c(!0,f,h),c(!1,f,h));f={};for(var l=_.u([!0,!1]),m=l.next();!m.done;f={ke:f.ke},m=l.next())f.ke=m.value,b.forEach(function(n){return function(p,q){q!==h&&c(n.ke,p,q)}}(f));g=g["catch"](function(n){throw new _.L(_.M,6,6001,null,n);});g=g.then(function(n){if(a.j)return null;a.M.clear();var p=n.getConfiguration();a.h.debug("Got MediaKeySystemAccess with configuration",p);var q=p.videoCapabilities||[],r=_.u(p.audioCapabilities||
164
- []);for(p=r.next();!p.done;p=r.next())a.M.add(p.value.contentType);q=_.u(q);for(p=q.next();!p.done;p=q.next())a.M.add(p.value.contentType);q=n.keySystem;p=b.get(_.sm(n.keySystem));r=[];var v=[],y=[],A=[];tm(p.drmInfos,r,v,y,A);1<v.length&&_.G("Multiple unique server certificates found! Only the first will be used.");1<r.length&&_.G("Multiple unique license server URIs found! Only the first will be used.");a.a={keySystem:q,licenseServerUri:r[0],distinctiveIdentifierRequired:p.distinctiveIdentifier==
165
- _.ie,persistentStateRequired:p.persistentState==_.ie,audioRobustness:p.audioCapabilities?p.audioCapabilities[0].robustness:"",videoRobustness:p.videoCapabilities?p.videoCapabilities[0].robustness:"",serverCertificate:v[0],initData:y,keyIds:A,periodId:null};if(!a.a.licenseServerUri)throw new _.L(_.M,6,6012,a.a.keySystem);return n.createMediaKeys()}).then(function(n){a.j||(a.h.info("Created MediaKeys for key system",a.a.keySystem),a.I=n,a.da=!0)})["catch"](function(n){if(!a.j){a.a=null;a.M.clear();
103
+ if(!_.K.la(d.durationBackoff)||_.K.isNaN(d.durationBackoff))throw new _.L(_.M,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.K.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.k)throw new _.L(_.M,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");hk(c.restrictions);hk(c.abr.restrictions);c.abr.initialRestrictions&&hk(c.abr.initialRestrictions)}return c};
104
+ fk=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}};
105
+ hk=function(a){_.K.R(a.maxPixels)&&(a.maxPixels=Infinity);_.K.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.K.R(a.maxHeight)&&(a.maxHeight=Infinity);_.K.R(a.maxWidth)&&(a.maxWidth=Infinity);_.K.R(a.minPixels)&&(a.minPixels=0);_.K.R(a.minBandwidth)&&(a.minBandwidth=0);_.K.R(a.minHeight)&&(a.minHeight=0);_.K.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);
106
+ 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 _.L(_.M,7,7100,"Restrictions contain NaN");};_.jk=function(a){return typeof a===_.Kd&&!Array.isArray(a)&&"source"in a};
107
+ _.kk=function(a){_.ak.call(this);this.log=new _.H(a);this.configuration=this.Md=_.gk();this.w=this.D=null;this.Vd=this.Oe=!1;this.$g=new _.H("clpp.video.events");this.Yc=null;this.Od=-1;this.il=this.Sk.bind(this);this.tg=new _.oi;this.L=new _.dg;this.uc=this.Gc=this.K=null};_.mk=function(a){return _.lk.get(a)||null};_.ok=function(a){_.lk.get(a.id())?nk.warn("Component already in use."):_.lk.set(a.id(),a)};pk=function(a){for(var b=_.u(_.lk.values()),c=b.next();!c.done;c=b.next())a(c.value)};
108
+ qk=function(){this.a=this.f=null;this.h=new _.H("clpp.drm.csl")};rk=function(a,b){3===b.type&&(a.f&&(a.h.debug("Attaching tracking token"),b.headers[ff]=a.f),a.a&&(b.headers[hf]=a.a))};
109
+ sk=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[ff];a.a=b.headers[hf];var c=b.headers["x-dt-csl-renewal-info"];a.f&&a.h.debug("Loaded tracking token "+a.f);a.a&&a.h.debug("Loaded followup token "+a.a);if(c)return c=JSON.parse(_.vh(_.Mh(c))),{delay:c.renewalPeriod,Dl:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};tk=function(a){return _.Ch(a,_.Rc)||_.Ch(a,_.Sc)};_.vk=function(a){_.uk[a.J]=a};
110
+ _.xk=function(a){var b={attemptParameters:_.Vh(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,ignoreUnrecognizedInitData:!0,Ua:{}};if(a&&(b.enforceSingleSession=!!a.enforceSingleSession,b.delayLicenseRequestUntilPlayed=!!a.delayLicenseRequestUntilPlayed,b.preferredDrmSystem=a.preferredDrmSystem,b.emeApi=a.emeApi,a.attemptParameters&&(b.attemptParameters=a.attemptParameters),b.enableSessionCacheForSkd=!!a.enableSessionCacheForSkd,void 0!==a.ignoreUnrecognizedInitData&&
111
+ (b.ignoreUnrecognizedInitData=!!a.ignoreUnrecognizedInitData),a.env)){var c=_.uk[a.env]||null;if(!c)throw _.Sf(_.va,_.gb+a.env+_.aa),new _.L(_.M,6,6015,_.wa+a.env+"' is missing.");b.Ua=_.wk(c,a.customData)||{};_.Ch(a.env.toLowerCase(),dd)&&(b.enforceSingleSession=!0)}return b};zk=function(a){a=yk[a];if(!a)return null;var b=_.li();return b.os===vj&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.Ak=function(a){this.J=a;this.f={}};
112
+ Bk=function(a,b){var c=_.li();if(c.os!==vj||c.browser!==Gc)return a||b};
113
+ _.wk=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[_.Tc];g&&(c[_.Tc]={licenseUrl:g.licenseUrl,videoRobustness:Bk(d,g.videoRobustness),audioRobustness:Bk(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:g.distinctiveIdentifierRequired,persistentStateRequired:g.persistentStateRequired,serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.ue?zk(f):f});(g=a.f[_.Rc])&&(c[_.Rc]=
114
+ {licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.f[_.Sc])&&(c[_.Sc]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});return c};
115
+ _.Ck=function(a,b){this.f=_.K.la(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.g=!!b;this.buffer=this.f.buffer};_.Ek=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.N(a.f.buffer);b=_.N(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.Dk()}};_.R=function(a,b){try{a.f.setUint32(a.a,b,a.g),a.a+=4}catch(c){_.Dk()}};_.Dk=function(){throw new _.L(_.M,3,3E3);};_.Fk=function(a,b){this.f=a;this.g=void 0===b?!0:b;this.a=0};_.Gk=function(a){return a.a<a.f.byteLength};
116
+ _.Ik=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.Hk()}};_.Jk=function(a){try{var b=a.f.getUint16(a.a,a.g);a.a+=2;return b}catch(c){_.Hk()}};_.T=function(a){try{var b=a.f.getUint32(a.a,a.g);a.a+=4;return b}catch(c){_.Hk()}};_.Kk=function(a){try{var b=a.f.getInt32(a.a,a.g);a.a+=4;return b}catch(c){_.Hk()}};Lk=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.Ik(a);return c};
117
+ _.Mk=function(a){var b=0;try{if(a.g){var c=a.f.getUint32(a.a,!0);b=a.f.getUint32(a.a+4,!0)}else b=a.f.getUint32(a.a,!1),c=a.f.getUint32(a.a+4,!1)}catch(d){_.Hk()}if(2097151<b)throw new _.L(_.M,3,3001);a.a+=8;return b*Math.pow(2,32)+c};_.Nk=function(a,b){a.a+b>a.f.byteLength&&_.Hk();var c=a.f.buffer.slice(a.a,a.a+b);a.a+=b;return _.N(c)};_.Hk=function(){throw new _.L(_.M,3,3E3,"Buffer read out of bounds.");};_.Ok=function(){this.g=[];this.f=[];this.a=!1;this.h=new _.H("clpp.mp4")};
118
+ _.Pk=function(a){for(;_.Gk(a.reader)&&!a.parser.a;)a.parser.$d(a.start+a.headerSize,a.reader,a.partialOkay)};_.Qk=function(a){for(var b=_.T(a.reader);0<b&&!a.parser.a;--b)a.parser.$d(a.start+a.headerSize,a.reader,a.partialOkay)};_.Rk=function(a){return function(b){var c=b.reader.Ca()-b.reader.getPosition();a(_.Nk(b.reader,c))}};Sk=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.Tk=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};
119
+ _.Uk=function(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)};Vk=function(){};Wk=function(a){var b="";try{b=_.yh(a)}catch(c){}return b};_.Xk=function(a){a=Wk(a);var b="";a.length&&(b=(new _.Ai(a)).a);return b};Yk=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.vh(a)),d=_.Mh(c.sinf[0]);(new _.Ok).M(_.ne,_.Pk).M("schi",_.Pk).M("tenc",function(e){e.reader.skip(6);_.Ik(e.reader)&&(e.reader.skip(1),b=_.Oh(_.Nk(e.reader,16)));e.parser.stop()}).parse(d)}catch(e){}return b};
120
+ Zk=function(a,b,c){if(!c||!c.byteLength)throw new _.L(_.M,6,6102);var d;typeof b===_.ue?d=_.Ah(b,!0):d=b;a=_.Ah(Wk(a),!0);b=new _.Ck(12+a.byteLength+d.byteLength+c.byteLength,!0);_.R(b,a.byteLength);_.Ek(b,_.N(a));_.R(b,d.byteLength);_.Ek(b,_.N(d));_.R(b,c.byteLength);_.Ek(b,_.N(c));return _.N(b.buffer)};_.$k=function(a){var b=_.N(a.body);b=_.Lh(b);a.headers[ta]=jc;a.body=_.zh("spc\x3d"+b).buffer};
121
+ _.al=function(a){try{var b=_.vh(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=th(_.Mh(b))};
122
+ gl=function(){var a=bl;if(a===dl)return"https://lic.drmtoday.com";if(a===el)return"https://lic.staging.drmtoday.com";if(a===fl)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};kl=function(a){var b=gl();if(a==_.Tc)return b+hl;if(a==_.Sc)return b+il;if(a==_.Rc)return b+jl;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
123
+ ll=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
124
+ _.nl=function(a,b,c){b=Wk(b);c=c&&c.customData?c.customData:{};b=new _.Ai(ll(b));var d=Di(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.Eh(""+a)&&(d.assetId=a,ml.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.Eh(""+e)&&(d.variantId=e,ml.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],ml.debug("KeyId found in FPS SKD. Removing other parameters")):
125
+ a=["assetId","variantId"];b.f=_.Ci(d,!1,a);"/"!==b.path||b.j.includes(b.a+"/")||(b.path="");b=_.Bi(b);return c.fpsContentId=b};
126
+ _.ol=function(a,b,c,d){d=void 0===d?!0:d;a=a.drm;a&&a.env.startsWith(za)?a.customData&&(c=btoa(JSON.stringify({userId:a.customData.userId,sessionId:a.customData.sessionId,merchant:a.customData.merchant})),b.headers["dt-custom-data"]=c,a.customData.authToken&&(b.headers["x-dt-auth-token"]=""+a.customData.authToken),c=b.uris[0],d&&a.customData.assetId&&(c+="?assetId\x3d"+encodeURI(""+a.customData.assetId),a.customData.variantId&&(c+="\x26variantId\x3d"+encodeURI(""+a.customData.variantId)),b.uris[0]=
127
+ c)):ml.warn(Ya)};pl=function(a,b,c){_.ol(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.Kg(b.uris[0]);c.a.add(_.Vd,a);b.uris[0]=c.toString()};
128
+ _.ql=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.ol(a,b,c,!1);b.headers[ta]=jc;c={spc:_.Kh(b.body)};if((a=a.drm)&&a.env.startsWith(Aa)&&d){a={};var e=Di((new _.Ai(ll(d))).f);d=e.keyId;if(e=e.assetId)ml.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(ml.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(ml.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(ml.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
129
+ _.Bh(_.Ci(c,!0))};_.rl=function(a,b){ml.debug("Clearing response data");if(200===b.status){var c=_.vh(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.Mh(c).buffer}};_.sl=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(za))ml.warn(Ya);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(Aa)){var d=new _.Kg(b.uris[0]),e=d.za;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.za=e;b.uris[0]=d.toString()}};
130
+ _.tl=function(a,b){try{var c=_.N(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));ml.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){ml.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};vl=function(a){var b={},c=a?a[jf]:void 0;a=ul[a?a[jf]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};wl=function(){};
131
+ yl=function(a,b){b=void 0===b?0:b;_.Rf("Registering EME Factory: "+a.a());for(var c={priority:b,Mb:a},d=0;d<xl.length;++d)if(xl[d].priority<b){xl.splice(d,0,c);return}xl.push(c)};
132
+ zl=function(a){if(a){var b=xl.find(function(d){return d.Mb.a()===a}).Mb;if(b&&b.aa())return _.Rf(Gb+b.a()),b.create();_.Rf("Cannot create selected EME manager. Choosing by priority list.")}b=_.u(xl);for(var c=b.next();!c.done;c=b.next())if(c=c.value.Mb,c.aa())return _.Rf(Gb+c.a()),c.create();throw Error("Missing EME managers");};_.Al=function(a,b,c){this.j=new Uint8Array(a);this.a=b;this.f=c};Bl=function(){_.Al.apply(this,arguments)};
133
+ _.Dl=function(a){var b=_.Nh(a);b=parseInt(b.byteLength,10).toString(16);b=_.Nh("12"+b+a);return new Bl(Cl,a,b)};
134
+ _.El=function(a){function b(r){switch(r){case 0:do if(!_.Gk(d))throw Error("not enough data to skip!");while(_.Ik(d)&128);break;case 1:d.skip(8);break;case 2:d.skip(c());break;case 3:for(;4!==(r=c()&7);)b(r);break;case 5:d.skip(4);break;default:throw Error("invalid wire type "+r);}}function c(){for(var r=_.Ik(d),v=(r&127)>>>0,y=7;128<=r&&28>=y;)r=_.Ik(d),v=(v|(r&(28>y?127:15))<<y)>>>0,y+=7;return 28<y?-1:v}var d=new _.Fk(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.T(d);var e=_.T(d);e=
135
+ _.Tk(e);var f=_.T(d),g=f>>>24;f&=16777215;var h=_.Nk(d,16);h=_.Oh(h);if(0<g){var l=_.T(d);d.skip(16*l)}l=_.T(d);for(var m=[],n=null;_.Gk(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=Lk(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.Sf("Parsed WV PSSH Box","size",a,"name",e,"version",g,"flags",f,"size",l,"systemId",h,"contentId (base64)",n?_.Kh(n):"","keyIds",m.map(function(r){return _.Oh(r)}));return 0<m.length?_.Dl(_.Oh(m[0])):null};
136
+ Fl=function(a){this.f=[];this.g=[];this.a=[];8<=a.byteLength&&(new _.Ok).X("pssh",this.j.bind(this)).parse(a.buffer);0==this.a.length&&_.F("No pssh box found!")};
137
+ _.Jl=function(a){var b=this;this.C=a;this.L=new Set;this.B=this.I=this.o=null;this.da=!1;this.a=null;this.J=Gl;this.A=new _.dg;this.O=new qk;this.f=new Map;this.K=[];this.H=new _.ci;this.g=null;this.T=function(c){b.w=!0;b.D=!1;b.H.reject(c);a.onError(c)};this.m=new Map;this.ma=new Map;this.ga=new _.$i(function(){return Hl(b)});this.j=!1;this.Ga=new _.ci;this.F=!1;this.ha=[];this.Va=!1;this.V=0;this.h=new _.H("clpp.drm.DrmEngine");this.na=(new _.$i(function(){Il(b)})).cb(1);this.H["catch"](function(){});
138
+ this.w=this.D=!1;this.S=null};
139
+ Ll=function(a){var b,c,d,e,f;return _.B(function(g){switch(g.a){case 1:a.A.release();a.A=null;a.O.release();a.O=null;a.w=!1;a.D=!1;a.H.reject();a.na.stop();a.na=null;a.ga.stop();a.ga=null;b=Array.from(a.f.keys());c=_.u(a.f.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.Ec&&e.Ec.stop();a.f.clear();return _.x(g,Promise.all(b.map(function(h){return Promise.resolve().then(function(){var l;return _.B(function(m){if(1==m.a)return a.h.debug("Closing session",h.sessionId),_.zf(m,2),_.x(m,Kl(h),4);
140
+ if(2!=m.a)return _.Af(m,0);l=_.Bf(m);a.h.warn("Error while closing session",l);_.z(m)})})})),2);case 2:if(!a.B){g.G(3);break}_.zf(g,4);return _.x(g,a.o.cd(null),6);case 6:_.Af(g,5);break;case 4:f=_.Bf(g),a.h.warn("Error while resetting media keys",f);case 5:a.B=null;case 3:a.o=null,a.a=null,a.L.clear(),a.I=null,a.K=[],a.g=null,a.T=null,a.C=null,a.V=0,a.S=null,_.z(g)}})};
141
+ _.Ol=function(a,b,c){a.J=Ml;a.K=c;a.F=0<c.length;a.h.debug("Using Persisted Licenses: "+a.F);a.g&&a.g.enableSessionCacheForSkd&&a.h.info("Enabled session cache for SKD license requests");return _.Nl(a,b)};
142
+ _.Nl=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.K.Af(a.g.Ua);Pl(b,d)}var e=Ql(a);if(e){var f=_.u(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos=[e]}e=_.u(b);for(d=e.next();!d.done;d=e.next())for(d=_.u(d.value.drmInfos),f=d.next();!f.done;f=d.next())Rl(f.value,a.g.Ua);d=Sl(a,b);if(!d.size)return a.da=!0,Promise.resolve();d=_.Tl(a,d);return c?d:d["catch"](function(){})};
143
+ Ul=function(a){var b;return _.B(function(c){switch(c.a){case 1:if(a.o.Rd())return c["return"]();if(!a.S){c.G(2);break}return _.x(c,a.S,3);case 3:return c["return"]();case 2:return _.zf(c,4),a.S=a.o.cd(a.I),_.x(c,a.S,6);case 6:_.Af(c,0);break;case 4:b=_.Bf(c);if(a.j)return c["return"]();a.T(new _.L(_.M,6,6003,b.message,b));_.z(c)}})};
144
+ Wl=function(a,b){return _.B(function(c){if(1==c.a)return a.h.info("Handle encrypted event for type "+b.initDataType),_.x(c,Ul(a),2);if(!b.initData)return c["return"]();_.Vl(a,b.initDataType,_.N(b.initData));_.z(c)})};
145
+ _.am=function(a,b){if(!a.I)return _.eg(a.A,b,[fd,"msneedkey",df,"needkey"],function(){a.T(new _.L(_.M,6,6010))}),Promise.resolve();a.B=b;a.o.Jd(b);a.A.one(a.B,_.Yd,function(){return Xl(a)});a.A.on(a.B,_.Ze,function(e){var f=a.D;a.D=!a.w;!f&&a.D&&(a.h.info("Waiting for DRM license key delivery"),a.C.onEvent(e))});var c=a.a.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.o.bd()!==lb||a.K.length)d=Ul(a);c=Promise.resolve();_.ki()&&38===dj().major||(a.a&&a.a.keySystem!==
146
+ _.Sd&&!a.a.serverCertificate&&(c=Yl(a)),c=c.then(function(){return _.Zl(a)}));return Promise.all([d,c]).then(function(){a.j||(_.$l(a),a.A.on(a.B,fd,function(e){return Wl(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.a&&a.a.keySystem===_.Tc&&1>a.V&&a.a.serverCertificate&&a.a.serverCertificate.length)return a.h.warn("Detected invalid widevine server certificate!. Retrying"),a.T(new _.L(1,6,6004)),a.a.serverCertificate=null,a.V++,_.am(a,b);1<=a.V&&a.h.info("Could not get valid widevine server certificate. Giving up");
147
+ throw e;}})};_.Zl=function(a){var b,c;return _.B(function(d){if(1==d.a){if(!(a.I&&a.a&&a.a.serverCertificate&&a.a.serverCertificate.length))return d.G(0);_.zf(d,3);return _.x(d,a.I.setServerCertificate(a.a.serverCertificate),5)}if(3!=d.a)return b=d.f,void 0===b||b||a.h.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.Af(d,0);c=_.Bf(d);throw new _.L(_.M,6,6004,{browserError:c.message});})};
148
+ Yl=function(a){var b=a.keySystem(),c=a.g.Ua[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.C.getConfiguration();return bm(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.Yh([d],a.g.attemptParameters);f.type=3;f.licenseRequestType=Ec;g&&f.requestModifiers.push(function(l){return g(e,l)});h&&f.responseModifiers.push(function(l){return h(e,l)});a.h.debug("Fetching certificate");return a.C.Cb.fetch(f).P}).then(function(f){a.a.serverCertificate=
149
+ _.N(f.data)})["catch"](function(f){var g=f.data.headers;g=Object.assign({message:"Error while fetching certificate!",url:f.data.url,status:f.data.status,response:f.data.response},g?{headers:g}:{},vl(g));throw new _.L(_.M,6,6100,g,f);})};bm=function(a,b){var c,d;return _.B(function(e){c=a.C.Kc();return c?(d=b&&b.drm&&b.drm.customData)?_.x(e,c(d),0):e["return"]():e["return"]()})};cm=function(a,b){if(!a)return!1;for(var c=0;c<b.Nd.length;c++)if(_.Ph(a,b.Nd[c]))return!0;return!1};
150
+ _.$l=function(a){for(var b=a.a?a.a.initData||[]:[],c=_.u(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.ji(2);if(a.g.enforceSingleSession&&!a.keySystem().startsWith(_.Rc)){var f=a.f.values();f=_.u(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.Ph(d.initData,g.initData)?(a.h.info("Skipping Session creation. Existing init data in single session mode!"),e=!1):g.periodId===d.periodId&&(a.h.info("Skipping Session creation. Merging init data for period in single session mode for Key ID "+(d.keyId+
151
+ ".")),cm(d.initData,g)||(g.Nd.push(d.initData),d.keyId&&!g.eb.includes(d.keyId)&&g.eb.push(d.keyId),a.m.get(d.keyId)||a.m.set(d.keyId,re)),e=!1)}!e||a.F&&a.J===Ml||(_.dm(a,d.keyId,d.initData)&&(e=!1),e&&(a.h.info("Request new media key session on create"),em(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.u(a.K);for(d=c.next();!d.done;d=c.next())_.fm(a,d.value);b.length||a.K.length||(a.w||a.h.info(xa),a.w=!0,a.D=!1,a.H.resolve());return a.H};
152
+ _.Vl=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.F||a.J!==Ml)){var e=a.keySystem();if(!e.startsWith(_.Rc)&&b===_.Cc){var f=new Fl(c);if(1<f.a.length&&(e={"org.w3.clearkey":"1077efecc0b24d02ace33c1e52e2fb4b","com.widevine.alpha":"edef8ba979d64acea3c827dcd51d21ed","com.microsoft.playready":"9a04f07998404286ab92e65be0885f95","com.adobe.primetime":"f239e769efa348509c16a903c6932efb"}[e]))for(var g=0;g<f.f.length;g++)if(e===f.f[g]){c=c.subarray(f.a[g].start,f.a[g].end+1);break}}(a.B.webkitCurrentPlaybackTargetIsWireless||
153
+ _.ji(2)||a.keySystem().startsWith(_.Rc)||!_.dm(a,d,c,!0))&&em(a,d,null,b,c)}};
154
+ _.dm=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.u(a.f.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.f.get(f);if(_.Ph(c,g.initData))return b?g.eb.includes(b)?d&&a.h.info("Skipping Session creation. License for init data with Key ID "+(b+" was already requested in Session: '")+(f.sessionId+"'. ")):(g.eb.push(b),a.m.get(b)||a.m.set(b,re),d&&a.h.info(sb+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.h.info(sb+(f.sessionId+"'")),!0;if(cm(c,g))return d&&a.h.info("Skipping Session creation. License for init data was already requested [extra]"),
155
+ !0}return!1};gm=function(a){var b=Infinity;a=a.f.keys();a=_.u(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};
156
+ Sl=function(a,b){for(var c=new Set,d=_.u(b),e=d.next();!e.done;e=d.next()){var f=_.u(e.value.drmInfos);for(e=f.next();!e.done;e=f.next())c.add(e.value)}d=_.u(c);for(e=d.next();!e.done;e=d.next())Rl(e.value,a.g.Ua);f=a.F?_.he:_.Rd;var g=a.F?[_.Wd]:[Ae];d=new Map;c=_.u(c);for(e=c.next();!e.done;e=c.next())e=e.value,d.set(e.keySystem,{initDataTypes:[_.Cc],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.Rd,persistentState:f,sessionTypes:g,label:e.keySystem,drmInfos:[]});c={};f=_.u(b);
157
+ for(e=f.next();!e.done;c={fe:c.fe,ne:c.ne},e=f.next()){e=e.value;g=e.audio;var h=e.video;c.fe=g?_.Xi(g.mimeType,g.codecs):"";c.ne=h?_.Xi(h.mimeType,h.codecs):"";var l={},m=_.u(e.drmInfos);for(e=m.next();!e.done;l={Ib:l.Ib},e=m.next())e=e.value,l.Ib=d.get(e.keySystem),l.Ib.drmInfos.push(e),e.initData&&e.initData.length&&(l.Ib.initDataTypes=_.mf(new Set(e.initData.map(function(n){return n.initDataType}))).concat()),e.distinctiveIdentifierRequired&&(l.Ib.distinctiveIdentifier=_.he),e.persistentStateRequired&&
158
+ (l.Ib.persistentState=_.he),g&&_.Eg(e.audioRobustness).forEach(function(n,p){return function(q){p.Ib.audioCapabilities.push({robustness:q||"",contentType:n.fe})}}(c,l)),h&&_.Eg(e.videoRobustness).forEach(function(n,p){return function(q){p.Ib.videoCapabilities.push({robustness:q||"",contentType:n.ne})}}(c,l))}return d};
159
+ _.Tl=function(a,b){function c(n,p,q){p.drmInfos.some(function(r){return!!r.licenseServerUri})==n&&(g=g["catch"](function(){if(a.j)return null;if(q===_.Sc){var r=a.C.getConfiguration();if(!_.bj()||r.streaming.patchEdgeWhenMixedContent||a.g.Ua[q].useLegacySystem)d(p);else return a.o.Cc("com.microsoft.playready.recommendation",[p])["catch"](function(){d(p);return a.o.Cc(q,[p])})}return a.o.Cc(q,[p])}))}function d(n){for(var p=_.u(n.audioCapabilities),q=p.next();!q.done;q=p.next())delete q.value.robustness;
160
+ n=_.u(n.videoCapabilities);for(p=n.next();!p.done;p=n.next())delete p.value.robustness}if(1==b.size&&b.has(""))return Promise.reject(new _.L(_.M,6,6E3));null===a.o&&(a.o=zl(a.g.emeApi));for(var e=_.u(b.values()),f=e.next();!f.done;f=e.next())f=f.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;var g=e=new _.ci,h=a.g.preferredDrmSystem;if(!h)if(f=_.li(),f.os===xj&&10<=f.osVersion.major&&"edge"===f.browser)h=_.Sc;else if("safari"===
161
+ f.browser)h=_.Rc;else if(f.browser===Gc||"firefox"===f.browser)h=_.Tc;h&&(f=b.get(h))&&(c(!0,f,h),c(!1,f,h));f={};for(var l=_.u([!0,!1]),m=l.next();!m.done;f={le:f.le},m=l.next())f.le=m.value,b.forEach(function(n){return function(p,q){q!==h&&c(n.le,p,q)}}(f));g=g["catch"](function(n){throw new _.L(_.M,6,6001,null,n);});g=g.then(function(n){if(a.j)return null;a.L.clear();var p=n.getConfiguration();a.h.debug("Got MediaKeySystemAccess with configuration",p);var q=p.videoCapabilities||[],r=_.u(p.audioCapabilities||
162
+ []);for(p=r.next();!p.done;p=r.next())a.L.add(p.value.contentType);q=_.u(q);for(p=q.next();!p.done;p=q.next())a.L.add(p.value.contentType);q=n.keySystem;p=b.get(_.hm(n.keySystem));r=[];var v=[],y=[],A=[];im(p.drmInfos,r,v,y,A);1<v.length&&_.F("Multiple unique server certificates found! Only the first will be used.");1<r.length&&_.F("Multiple unique license server URIs found! Only the first will be used.");a.a={keySystem:q,licenseServerUri:r[0],distinctiveIdentifierRequired:p.distinctiveIdentifier==
163
+ _.he,persistentStateRequired:p.persistentState==_.he,audioRobustness:p.audioCapabilities?p.audioCapabilities[0].robustness:"",videoRobustness:p.videoCapabilities?p.videoCapabilities[0].robustness:"",serverCertificate:v[0],initData:y,keyIds:A,periodId:null};if(!a.a.licenseServerUri)throw new _.L(_.M,6,6012,a.a.keySystem);return n.createMediaKeys()}).then(function(n){a.j||(a.h.info("Created MediaKeys for key system",a.a.keySystem),a.I=n,a.da=!0)})["catch"](function(n){if(!a.j){a.a=null;a.L.clear();
166
164
  if(n instanceof _.L)throw n;throw new _.L(_.M,6,6002,{browserError:n.message});}});e.reject();return g};
167
- am=function(a){a=_.K.Af(a.g.Ua[_.Td]||{});if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.Oh(f),h=_.Oh(e);g={kty:"oct",kid:_.Mh(g,!1),k:_.Mh(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.Ah(d),initDataType:"keyids"}];return{keySystem:_.Td,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
165
+ Ql=function(a){a=_.K.Af(a.g.Ua[_.Sd]||{});if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.Nh(f),h=_.Nh(e);g={kty:"oct",kid:_.Lh(g,!1),k:_.Lh(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.zh(d),initDataType:"keyids"}];return{keySystem:_.Sd,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
168
166
  initData:d,keyIds:[],periodId:null}};
169
- _.qm=function(a,b){try{a.h.debug("Attempting to load an offline session",b);var c=a.I.createSession(_.Xd)}catch(f){var d=new _.L(_.M,6,6005,{browserError:f.message});a.S(d);return Promise.reject(d)}a.A.on(c,Bd,a.Fg.bind(a));a.A.on(c,qd,a.Bg.bind(a));var e={initData:null,loaded:!1,Ve:Infinity,qb:null,Da:new _.di,periodId:null,Ld:[],keyId:null,fb:[],initDataType:null,ac:null,sessionContext:{ldlDelay:0,customData:{}}};e.Da["catch"](function(){});a.f.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.h.debug("Loaded offline session",
170
- b,f);if(!f)return a.f["delete"](c),a.S(new _.L(_.M,6,6013)),null;e.loaded=!0;um(a)&&(a.w||a.h.info(ya),a.w=!0,a.D=!1,a.H.resolve());return c},function(f){a.j||(a.f["delete"](c),a.S(new _.L(_.M,6,6005,{browserError:f.message})))})};vm=function(a,b,c,d){if(!b&&c!==_.oe)return!1;d=b||Zk(d);a=_.u(a.f.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||c===_.oe&&(e.keyId||Zk(e.initData))===d)return!0;return!1};
171
- pm=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,r,v,y,A,E,F,D,J,ja,P,Na,pa,ta,Fa,Ka;_.B(function(wa){switch(wa.a){case 1:if(!e.length)return wa["return"]();h=b||wm(a,d,e,f);if(g){wa.G(2);break}if(!vm(a,h,d,e)){wa.G(2);break}l=!0;if("skd"!==d||a.g.enableSessionCacheForSkd){wa.G(4);break}m=_.u(a.f.keys());n=m.next();case 5:if(n.done){wa.G(4);break}p=n.value;q=a.f.get(p);if(!h||q.keyId!==h){wa.G(6);break}a.h.warn("Close and re-open session for "+h);_.Af(wa,9);return _.x(wa,
172
- p.close(),11);case 11:_.Bf(wa,10);break;case 9:r=_.Cf(wa),a.h.warn("Unable to close session",r);case 10:l=!1;case 6:n=m.next();wa.G(5);break;case 4:if(l)return a.h.warn("Skip creating a new session for "+h),wa["return"]();case 2:try{y=a.F?_.Xd:Be,v=a.I.createSession(y),a.h.info("Created new "+y+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(Aa){return a.S(new _.L(_.M,6,6005,{browserError:Aa.message})),wa["return"]()}a.A.on(v,Bd,a.Fg.bind(a));a.A.on(v,qd,a.Bg.bind(a));A={ac:f,Ld:[],
173
- initData:e,initDataType:d,keyId:h,fb:h?[h]:[],loaded:!1,Ve:Infinity,periodId:c,qb:null,Da:new _.di,sessionContext:{ldlDelay:0,customData:{}}};A.Da["catch"](function(){});f&&(E=a.f.get(f),A.sessionContext=E.sessionContext);a.f.set(v,A);h&&!a.m.get(h)&&a.m.set(h,te);if(e)for(F=0;F<a.a.initData.length;F++)D=a.a.initData[F],D.keyId&&!A.fb.includes(D.keyId)&&_.Qh(D.initData,e)&&(A.keyId||(A.keyId=D.keyId),A.fb.push(D.keyId),a.m.get(D.keyId)||a.m.set(D.keyId,te));J=_.K;ja=J.mb;P=a.C.getConfiguration();
174
- Na=a.keySystem();pa=a.g.Ua[Na];Fa=(ta=pa.modifiers)&&ta.transformInitData;ja(Fa)||(Fa=xm);try{e=Fa({playerConfig:P,initData:e,initDataType:d,drmInfo:a.a,drmSystemConfig:pa,sessionContext:A.sessionContext,emeApi:a.o.$c()})}catch(Aa){return Ka=Aa,Aa instanceof _.L||(Ka=new _.L(_.M,6,6016,Aa)),A.Da&&A.Da.reject(Aa),a.S(Ka),wa["return"]()}a.h.info("Generate License Request for key ID: '"+h+"'");v.generateRequest(d,e.buffer)["catch"](function(Aa){if(!a.j){var Ba=null;Aa.errorCode&&Aa.errorCode.systemCode&&
175
- (Ba=Aa.errorCode.systemCode,0>Ba&&(Ba+=Math.pow(2,32)),Ba="0x"+Ba.toString(16));a.S(new _.L(_.M,6,6006,{browserError:Aa.message,error:Aa,extended:Ba},Aa))}});_.z(wa)}})};
176
- wm=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{b=d;b=void 0===b?null:b;d=a.keySystem();var e=a.g.Ua[d];d=a.C.getConfiguration();e=e&&e.modifiers&&e.modifiers.extractContentId;_.K.mb(e)||(e=ym);try{var f={ldlDelay:0,customData:{}};b&&(f=a.f.get(b).sessionContext);var g=e(d,c,f);a.h.debug("Extracted Content ID '"+g+"' from SKD");var h=g;break a}catch(l){a.h.warn("Unable to extract Content ID from SKD",l)}h=""}return h}if(b===_.oe)return Zk(c)||"";if(b===_.Dc)try{e=a.keySystem();if(zm(e))return _.Pl(c).a;
177
- if(e.match(/^com\.widevine\.alpha/)&&(f=_.Jl(c)))return f.a}catch(l){a.h.warn("Unable to extract Key ID from PSSH data",l)}return""};ym=function(a,b){var c=_.Yk(b);_.Tf("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
178
- xm=function(a){var b=a.playerConfig,c=a.initData,d=a.drmInfo,e=a.drmSystemConfig,f=a.sessionContext,g=a.emeApi;if("skd"===a.initDataType&&"APPLE"===g){a=_.K.mb;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=ym);a="";try{a=e(b,c,f)}catch(h){throw new _.L(_.M,6,6103);}if(!a.length)throw new _.L(_.M,6,6101,"Content ID is an empty string");c=$k(c,a,d)}return c};
179
- Im=function(a,b){var c=b.target,d=a.f.get(c),e=a.keySystem(),f=!1;e.match(/^com\.widevine\.alpha/)&&b.message&&2===b.message.byteLength?(f=!0,a.h.info("WV Server certificate request for SID:'"+(c.sessionId+" from msg '")+(b.messageType+"'"))):a.h.info("License request for SID:'"+(c.sessionId+"'/KID:'"+d.keyId+"' from msg '")+(b.messageType+"'"));var g=a.a.licenseServerUri;e=a.g.Ua[e];"individualization-request"===b.messageType&&e&&e.individualizationServer&&(g=e.individualizationServer);var h=_.Zh([g],
180
- a.g.attemptParameters);h.type=3;h.body=b.message;h.method="POST";h.licenseRequestType=b.messageType===td&&d.ac?sd:f?Fc:b.messageType;h.sessionId=c.sessionId;if(h.licenseRequestType===sd)a.C.onEvent(new _.I(bd));zm(a.a.keySystem)&&Am(a,h);sk(a.P,h);var l=Date.now();return Gm(a,h,d.sessionContext).then(function(){a.h.debug("Sending DRM license request to",g,h);return a.C.Cb.fetch(h).O}).then(function(m){if(a.j)return Promise.reject();var n=Date.now()-l,p=Hm(a,m),q="";p&&(q=" RID:"+p);p=m&&m.data?m.data.byteLength:
181
- -1;f?a.h.info("WV Server certificate response for SID:'"+(c.sessionId+"' ")+(p+" bytes in ")+(n+"ms"+q)):a.h.info("License response for SID:'"+(c.sessionId+"'/KID:'")+(d.keyId+"' ")+(p+" bytes in ")+(n+"ms"+q));var r=tk(a.P,m);return c.update(m.data).then(function(){if(!f){var v=rm(a),y=r?Date.now()+1E3*r.delay:Number.NaN;v=new _.I(_.dd,{keySystem:a.keySystem(),expirationTime:v,expectedRenewalTime:y});a.C.onEvent(v);d&&(d.qb&&d.qb.resolve(),d.ac&&(v=d.ac,a.h.info("Closing expired session '"+v.sessionId+
182
- "'"),Vl(v)["catch"](function(){a.h.warn("Unable to close expired session in time")}),(v=a.f.get(d.ac))&&v.Ec&&v.Ec.stop(),a.f["delete"](d.ac),d.ac=null),(new _.aj(function(){a.j||(d.loaded=!0,d.Da&&d.Da.resolve(),um(a)&&(a.w||a.h.info(ya),a.w=!0,a.D=!1,a.H.resolve()))})).Z(5),null!==d.initData&&(0<d.sessionContext.ldlDelay||r&&uk(a.keySystem()))&&(v=new _.aj(function(){!a.j&&a.P&&(a.h.info("Updating CSL Sessions"),zm(a.keySystem())?pm(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):a.keySystem().startsWith(_.Sc)&&
183
- c.update(_.Ah("renew")))}),d.Ec=v,v.Z(r?r.delay:d.sessionContext.ldlDelay)))}})},function(m){var n,p,q,r;return _.B(function(v){if(a.j)return v["return"]();n=m.data.headers;p=wl(n);q=Object.assign({message:_.Ha,url:m.data.url,status:m.data.status,response:m.data.response},n?{headers:n}:{},p);r=new _.L(_.M,6,6007,q,m);a.S(r);d&&d.qb&&d.qb.reject(r);d&&d.Da&&d.Da.reject(r);_.z(v)})})["catch"](function(m){a.j||(m===pb?a.h.info("Ignore update for closed sessions"):(m=new _.L(_.M,6,6008,{browserError:m.message}),
184
- a.S(m),d&&d.qb&&d.qb.reject(m),d&&d.Da&&d.Da.reject(m)))})};Hm=function(a,b){if(!b||!b.headers)return"";var c=b.headers["x-dt-li"];if(c)try{return JSON.parse(_.wh(_.Nh(c))).ti}catch(d){a.h.warn("Unable to parse DRMtoday Request ID",d)}return""};
185
- Am=function(a,b){var c=yh(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.h.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(_.Oe).textContent;b.body=_.Nh(c.querySelector("Challenge").textContent).buffer}else a.h.debug("PlayReady request is already unwrapped."),b.headers[ua]="text/xml; charset\x3dutf-8"};
186
- Gm=function(a,b,c){var d,e,f,g,h,l;return _.B(function(m){if(1==m.a)return d=a.C.getConfiguration(),_.x(m,mm(a,d),2);e=a.keySystem();h=(g=(f=a.g.Ua[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;h?b.requestModifiers.push(function(n){return h(d,n,c)}):e.startsWith(_.Sc)&&b.requestModifiers.push(function(n){return _.al(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Sc)&&b.responseModifiers.push(function(n){return _.bl(n)});_.z(m)})};
187
- Sl=function(a){var b=a.m,c=a.ma;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.S(new _.L(_.M,6,6014));a.C.Ze(_.K.Bf(c));a.w||a.h.info(ya);a.w=!0;a.D=!1};hm=function(a){var b;return _.B(function(c){b=a.ha.map(function(d){return Im(a,d)});a.Va=!0;a.ha=[];return _.x(c,Promise.all(b),0)})};zm=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};_.sm=function(a){return zm(a)?_.Tc:a};
188
- Tl=function(a){a.f.forEach(function(b,c){var d=b.Ve,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.C.onExpirationUpdated(c.sessionId,e),b.Ve=e)})};um=function(a){a=a.f.values();return _.jh(a,function(b){return b.loaded})};
189
- $l=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=_.u(a),e=d.next();!e.done;e=d.next())e.value.drmInfos=c};
190
- tm=function(a,b,c,d,e){var f={};a=_.u(a);for(var g=a.next();!g.done;f={wa:f.wa},g=a.next()){f.wa=g.value;b.includes(f.wa.licenseServerUri)||b.push(f.wa.licenseServerUri);f.wa.serverCertificate&&(c.some(function(m){return function(n){return _.Qh(n,m.wa.serverCertificate)}}(f))||c.push(f.wa.serverCertificate));if(f.wa.initData){var h=_.u(f.wa.initData);for(g=h.next();!g.done;g=h.next())g.value.periodId=f.wa.periodId;h={};var l=_.u(f.wa.initData);for(g=l.next();!g.done;h={yd:h.yd},g=l.next())h.yd=g.value,
191
- d.some(function(m){return function(n){var p=m.yd;return n.keyId&&n.keyId==p.keyId&&n.periodId===p.periodId?!0:!1}}(h))||d.push(h.yd)}if(f.wa.keyIds)for(g=0;g<f.wa.keyIds.length;++g)e.includes(f.wa.keyIds[g])||e.push(f.wa.keyIds[g])}};
192
- bm=function(a,b){if(a.keySystem){var c=_.sm(a.keySystem),d=b[c];c===_.Td&&a.licenseServerUri||(d&&(a.licenseServerUri=d.licenseUrl||""),a.keyIds||(a.keyIds=[]),d&&(a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=d.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=d.persistentStateRequired),a.videoRobustness||(a.videoRobustness=d.videoRobustness||""),a.audioRobustness||(a.audioRobustness=d.audioRobustness||""),a.serverCertificate||(a.serverCertificate=
193
- d.serverCertificate||null)))}};Vl=function(a){var b,c;return _.B(function(d){if(1==d.a)return b=new Promise(function(e){(new _.aj(e)).Z(1)}),_.x(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.G("Timeout waiting for session close");_.z(d)})};_.Lm=function(a,b){a&&b&&(Jm.set(a,b),Km.info("Registered TextDisplayerFactory: '"+a+"'"))};
194
- _.Mm=function(a,b){var c=b.find(function(d){return(d=Jm.get(d))?d.$(a):!1});if(null==c)return Km.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;Km.info("Chosen the text displayer: "+c);return Jm.get(c)};Nm=function(){this.a=null;this.f=[]};_.Om=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})}};
195
- Pm=function(a,b){var c=0;a.a&&a.a.state==b&&(c+=a.a.duration);for(var d=_.u(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state==b?e.duration:0;return c};Qm=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.u(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};Rm=function(){this.g=this.f=this.j=null;this.a=[]};Sm=function(a){return a.a.map(function(b){return _.K.Qa(b)})};
196
- _.Tm=function(){this.f=this.o=this.A=this.D=this.j=this.m=this.g=this.w=NaN;this.a=new Nm;this.B=new Rm};_.Um=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:[]}};_.Vm=function(a){this.f=a;this.a=void 0};Xm=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Wm.value().get(b),c.one(a,b,d))};
197
- an=function(a){this.h=new _.H("clpp.StateManager");this.l=a;this.a=new _.eg;this.f=_.Ym;this.A=_.Zm;this.I=0;this.w=-1;this.M=this.o=this.J=this.B=0;this.j=this.m=this.F=!1;this.H=0;this.g=null;this.K=0;this.P=_.hj();this.D=!1;this.J=Date.now();$m(this)};bn=function(a,b){return Object.keys(b)[a]};
198
- dn=function(a,b){var c={type:_.se};b===_.xc||b===_.wc?(c.reason=a.w,b===_.xc?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(a.f===_.cn&&(c.reason=a.w),a.A===_.cn&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
199
- hn=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=a.f===_.cn;a.A=a.f;a.f=b;a.A===_.en&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;b===_.cn?(a.M=a.o,a.w=a.m?1:2,a.h.info("Buffering started. Reason: "+bn(a.w-1,_.fn)),c=dn(a,_.xc),a.Wb(_.xc,c)):d&&(a.B=a.o-a.M,a.h.info("Buffering finished. Reason: "+bn(a.w-1,_.fn)+". Buffering time: "+a.B+" ms"),c=dn(a,_.wc),a.Wb(_.wc,c));c=bn(a.A,_.gn);d=bn(a.f,_.gn);a.h.info(_.fb+c+" -\x3e "+d);a.Wb(_.se,dn(a,""));return!0};
200
- nn=function(a,b){if(a.f===_.jn)a.h.warn("Player is in error state, aborting any further state checks");else{var c=a.l.isPaused();var d=a.l.getPosition();var e=a.l.getDuration();if(d=a.l.isEnded()||a.f===_.en&&1>=Math.abs(d-e)||c&&d>=e)hn(a,_.en)&&a.h.debug("Player claims to be in ended state, not checking more");else if(b!==_.Fe){e=a.l.getPosition();e=null!==e&&void 0!==e&&0<=e?a.l.getBufferInfo().Ha(e,!0):-1;a.H=e;e=a.l.getSurface().getMedia();a.g=e?e.readyState:null;a.K=a.l.getPlaybackRate()||1;
201
- e=typeof a.g===_.k&&2>a.g&&2===e.networkState;var f=typeof a.g===_.k&&0>=a.H&&a.f===_.Ym,g=typeof a.g===_.k&&2>=a.g&&a.j;e=a.m||f||e||g;!a.P||a.l.isLive()||a.f!==_.cn||e||(f=b===_.le&&4===a.g,(g=a.A===_.kn)&&!a.D?e=!0:g||a.D||f||(e=!0));f=!1;e?f=hn(a,_.cn):c?f=hn(a,_.ln):a.F&&(f=hn(a,_.mn));f&&(a.D=!1);a.h.debug("Video state check for event "+b+":: seeking: "+a.m+", waiting: "+a.j+", playing: "+a.F+", paused: "+c+", readyState: "+a.g+", rate: "+a.K+", buffer: "+a.H+", ended: "+d+". Changed state: "+
202
- f+", Current state: "+bn(a.f,_.gn))}}};
203
- $m=function(a){function b(d){return nn(a,d.type)}a.h.debug("Start watching for video events for "+a.l.namespace());var c=a.l;a.a.on(c,_.id,function(){a.j=!1;hn(a,_.en)});a.a.on(c,yc,b);a.a.on(c,_.$d,function(){a.F=!0;a.j=!1;nn(a,_.$d)});a.a.on(c,_.Vd,function(){a.F=!1;a.j=!1;nn(a,_.Vd)});a.a.on(c,_.Fe,b);a.a.on(c,_.ee,b);a.a.on(c,_.le,function(d){a.m=!1;a.j=!1;nn(a,d.type)});a.a.on(c,_.me,function(d){a.m=!0;nn(a,d.type)});a.a.on(c,pe,b);a.a.on(c,_.Ze,function(){a.j=!0;nn(a,_.Ze)});a.a.on(c,_.jd,function(d){return a.S(d)});
204
- a.a.on(c,_.xd,b);a.a.on(c,zc,function(){a.D=!0;nn(a,zc)});a.a.on(c,_.Ne,function(d){a.m=!0;nn(a,d.type)});a.a.on(c,_.Me,function(d){a.m=!1;a.j=!1;nn(a,d.type)})};on=function(a){a=(new _.Lg(a)).za;if(!a)return null;a=a.toUpperCase();return _.Eh(a,".MPD")?_.ec:_.Eh(a,".M3U8")?_.Lj:_.Eh(a,".MP4")?_.Te:_.Eh(a,"MANIFEST")||_.Eh(a,".ISM")?_.jc:null};
205
- _.qn=function(a){var b;_.kk(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.ve||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=pn(b[c]);d&&a.push(d)}return a};
206
- pn=function(a){var b=null;_.K.Y(a)&&(a={url:a});typeof a===_.Ld&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.K.R(a.drmProtected)||typeof a.drmProtected!==_.vc||(b.drmProtected=a.drmProtected),_.K.R(a.isLive)||typeof a.isLive!==_.vc||(b.isLive=a.isLive),_.K.R(a.name)||typeof a.name!==_.ve||(b.name=a.name),_.K.R(a.Gb)||typeof a.Gb!==_.ve||(b.Gb=a.Gb),_.K.R(a.audioMimeType)||typeof a.audioMimeType!==_.ve||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=on(a.url),b.type?
207
- rn.debug("Detect media type "+b.type+" for "+a.url):rn.warn("Unable to detect media type for "+a.url));return b};sn=function(){_.lk.call(this,Nc);this.A=this.I=!1;this.m=this.B=this.o=this.a=this.j=null;this.g=new _.eg;this.H=this.F=this.f=this.J=null};
208
- vn=function(a,b){return a.A?tn():new Promise(function(c){a.a||(a.g.on(b,_.jd,function(){var d=un(a);if(d)a.onError(d)}),a.g.on(b,_.je,function(){var d=b.videoWidth,e=b.videoHeight,f=a.getTrackManager();f&&0<d&&0<e&&(f.w={width:d,height:e});a.trigger(new _.I(_.uc,{detail:{width:d,height:e}}))}),a.a=b);c()})};wn=function(a){return a.A?tn():new Promise(function(b){if(a.a){var c=a.a;a.g.off(c,_.jd);a.g.off(c,_.je);a.a=null}b()})};
209
- yn=function(a){var b,c,d,e,f;return _.B(function(g){if(1==g.a){if(a.A)return g["return"](tn());b=a.w[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=_.xn;d=_.yk(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=new _.Ul({Cb:e,onError:function(h){return a.onError(h)},Ze:function(){},onExpirationUpdated:function(h,l){a.trigger(new _.I(_.ad,
210
- {expirationTime:l}))},onEvent:function(h){h instanceof _.I?a.dispatchEvent(h):a.log.debug(_.yb,h.type)},getConfiguration:function(){return a.getConfiguration()},Kc:function(){return a.Kc()}});a.o.g=d;f={id:0,language:_.Ie,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,
211
- Na:0,mimeType:_.Te,codecs:"",encrypted:!0,keyId:null,language:_.Ie,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,Nl:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,yl:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.x(g,_.Zl(a.o,[f],[]),2)}return 3!=g.a?_.x(g,_.lm(a.o,a.a),3):g["return"](Promise.resolve())})};
212
- zn=function(a,b){Xm(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.g,function(){a.getState()!==_.jn&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};un=function(a){if(null===a.w||!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 _.L(_.M,3,3016,{code:b,Gl:c,message:a.a.error.message})};tn=function(){return Promise.reject(new _.L(_.M,7,7E3))};
213
- An=function(a){if(a.A)return new _.ei(tn(),function(){});var b=a.w[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.J;c&&zn(a,c);if(d.preload!==_.Kd)a.g.one(d,_.xd,function(){var g=Date.now()/1E3-e;a.f.A=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.ki()||_.li())&&d.load();var f=new _.di;a.g.one(d,pe,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.F||(a.F=(new _.aj(function(){f.reject(new _.L(_.M,3,3100,{message:"Unable to load media source successfully from "+
214
- b.url,uri:b.url},d.error))})).Z(g))});Xm(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.g,function(){return f.resolve()});d.error?f.reject(un(a)):d.preload===_.Kd&&(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.g.one(d,_.jd,function(){f.reject(un(a))});
215
- return new _.ei(f,function(){var g=new _.L(_.M,7,7001);f.reject(g);return Promise.resolve()})};
216
- Bn=function(a,b){Xm(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.g,function(){if(a.isLive()&&a.getState()!==_.jn){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)}))}})};Cn=function(){};
217
- _.Fn=function(a){a&&(0<=Dn.indexOf(a)?En.warn("Factory '"+a.name()+"' is already registered"):(Dn.push(a),En.info("Factory "+a.name()+"' has been registered.")))};Hn=function(a,b){var c=Dn.find(function(d){return d.$(a,b)});c||(c=new Gn);En.info("Chosen ads: "+c.name());return c};_.In=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};_.Jn=function(a,b){a.classList.add(b)};
218
- _.Kn=function(a,b){if(a&&typeof b===_.Ld)for(var c in b)a.style[c]=b[c]};_.Ln=function(a){return document.createElement(a)};Mn=function(){this.a=null;this.g=new Set;this.f=null;this.set(null)};Nn=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.g.add(b))};On=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.g.values());Hg(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.nf(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
219
- Sn=function(a,b){this.h=new _.H("clpp.PlayerSurface");this.w=_.K.ya(Pn,b);this.f=new Mn;this.g=null;this.a=new Mn;this.m=Qn;Qn+=1;this.o="clpp-video-"+this.m;this.j=new _.eg;if(null==a)throw new _.L(_.M,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.L(_.M,7,7004,"Media element not found");var d=this.w;this.h.debug("Initializing Player Surface on ",c);if("cast-media-player"===c.tagName.toLowerCase())this.g=c;else{if(!(c instanceof
220
- HTMLMediaElement))throw new _.L(_.M,7,7005,"Media element is not instance of HTMLMediaElement");if(!c.hasAttribute("crossorigin")){var e=d.crossorigin;this.h.info("Setting media elements crossorigin to "+e);c.setAttribute("crossorigin",e)}this.f.set(c);if(d.disableContainer)d=null;else if(d.containerEl){if(c.parentNode!==d.containerEl)throw new _.L(_.M,7,7006,"Container element is not a direct parent of media element");d=d.containerEl}else{d=document.createElement(_.$c);c.parentNode?c.parentNode.replaceChild(d,
221
- c):this.h.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!");e=[];for(var f=0;f<c.classList.length;f++)e.push(c.classList[f]);e=_.u(e);for(f=e.next();!f.done;f=e.next())f=f.value,c.classList.remove(f),_.Jn(d,f);d.style.cssText=c.style.cssText;c.removeAttribute(_.xe);e=_.u([_.gf,_.md]);for(f=e.next();!f.done;f=e.next()){f=f.value;var g=c.getAttribute(f);g=parseInt(g,10);isNaN(g)||(d.style[f]=g+_.de);_.ki()||c.removeAttribute(f)}d.appendChild(c)}d&&
222
- (this.a.set(d),Nn(this.a,"clpp-container"),Nn(this.a,this.o),Nn(this.f,_.Ic),Nn(this.f,"clpp-video"));Rn(this,c,d)}};Rn=function(a,b,c){(_.li()&&53===ej().major||_.li()&&68===ej().major||_.fj())&&!b.hasAttribute(Wc)&&(b.style.opacity="0",b.setAttribute(Wc,""),a.j.one(b,fd,function(){b.removeAttribute(Wc);b.style.opacity="1";c&&(c.style.opacity="1")}))};Un=function(a){this.l=a;this.j=this.l.getNetworkEngine();this.a=new _.eg;this.g=null;this.f=!0;Tn(this)};
223
- Tn=function(a){a.a.on(window,"offline",function(){Vn(a,!1)});a.a.on(window,"online",function(){a.f||Wn(a)});a.a.on(a.l,pe,function(){return Xn(a)});a.a.on(a.l,"suspend",function(){return Xn(a)});a.a.on(a.l,_.Ze,function(){return Xn(a)});a.a.on(a.l,_.$d,function(){a.f||Wn(a)});a.a.on(a.l,_.ce,function(){a.f||Wn(a)});a.a.on(a.l,_.se,function(){switch(a.l.getState()){case _.cn:Xn(a);break;default:Xn(a)}})};Wn=function(a){a.l.getConfiguration().connectivityCheck&&(Yn(a),a.g=(new _.aj(function(){return Zn(a)})).Z(5))};
224
- Xn=function(a){a.f&&Wn(a)};Yn=function(a){a.g&&(a.g.stop(),a.g=null)};Zn=function(a){var b,c;return _.B(function(d){if(1==d.a)return(b=a.l.getConfiguration().connectivityCheck)&&a.l?_.x(d,ri(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;Vn(a,c);_.z(d)})};Vn=function(a,b){Yn(a);a.f!==b&&(a.f=b,a.l&&a.l.getConfiguration().connectivityCheck&&a.l.trigger(new _.I(Rd,{online:a.f})))};ao=function(){for(var a=0;a<$n.length;++a)$n[a].Bc()};
225
- _.bo=function(a,b){b=b||0;for(var c={priority:b,Bc:a},d=0;d<$n.length;d++)if($n[d].priority<b){$n.splice(d,0,c);return}$n.push(c)};co=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};eo=function(a,b,c){this.g=a;this.f=b;JSON.parse(_.wh(_.Nh(a)));this.a=JSON.parse(_.wh(_.Nh(b)));this.j=c};fo=function(a){this.license=a;this.a=null;this.h=new _.H("clpp.utils.LicenseKey")};
226
- go=function(a){if(!a.a){var b=a.license.split(".");if(3!==b.length)throw Error("Expected to find 3 data sections in JWT raw data");b=new eo(b[0],b[1],b[2]);a.a=b}return a.a};ho=function(a){switch((a.Rd()[0]||{src:"",type:""}).type){case _.ec:a="dash";break;case _.jc:a="ss";break;case _.Lj:a="hls";break;case _.Te:a=_.Hd;break;default:a=""}return a};io=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};
227
- jo=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};ko=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};mo=function(a){var b=a.getConfiguration(),c="no";b.drm&&!_.K.xa(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(ed)||lo(a).endsWith("drmtoday.com"))&&(c=ed);return c};
228
- no=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.keySystem){case _.Uc:b="wv";break;case _.Tc:b="pr";break;case _.Sc:b="fps"}return b};oo=function(a){a=a.getDrmInfo();var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};po=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.videoRobustness){case Oa:case "HW_SECURE_ALL":b="L1";break;case Ma:b="L2";break;case _.ob:case _.nb:b="L3"}return b};lo=function(a){a=a.getDrmInfo();return(new _.Lg(a&&a.licenseServerUri||"")).Ra};
229
- so=function(a,b){var c="ie"===_.mi().browser,d=b.getConfiguration(),e=_.nf(Array.from(_.mk.keys())).concat(_.nf(b.hj()));d={"CL-KEY":a.license,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ea,"CL-USER-ID":io(d),"CL-ASSET-ID":jo(d),"CL-SESSION-ID":ko(d),"CL-PLAYBACK-TYPE":b.isLive()?qo:ro,"CL-CONTENT-TYPE":ho(b),"CL-PLUGINS":e.join(" "),"CL-DRM":mo(b),"CL-DRM-CDM":no(b),"CL-DRM-SEC-LEVEL":po(b),"CL-DRM-OFFLINE":oo(b),"CL-DRM-IP":lo(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=
230
- e);e=_.Zh(["https://downloads.castlabs.com/r/register/"]);e.method="GET";e.headers=d;return(new _.pi).fetch(e).O.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=go(a);f=f.data;var h=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(h){case 403:case 404:g=7101;var l="castLabs Player license is invalid";if(403===h){h=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=
167
+ _.fm=function(a,b){try{a.h.debug("Attempting to load an offline session",b);var c=a.I.createSession(_.Wd)}catch(f){var d=new _.L(_.M,6,6005,{browserError:f.message});a.T(d);return Promise.reject(d)}a.A.on(c,Ad,a.Gg.bind(a));a.A.on(c,pd,a.Cg.bind(a));var e={initData:null,loaded:!1,Ve:Infinity,pb:null,Da:new _.ci,periodId:null,Nd:[],keyId:null,eb:[],initDataType:null,ac:null,sessionContext:{ldlDelay:0,customData:{}}};e.Da["catch"](function(){});a.f.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.h.debug("Loaded offline session",
168
+ b,f);if(!f)return a.f["delete"](c),a.T(new _.L(_.M,6,6013)),null;e.loaded=!0;jm(a)&&(a.w||a.h.info(xa),a.w=!0,a.D=!1,a.H.resolve());return c},function(f){a.j||(a.f["delete"](c),a.T(new _.L(_.M,6,6005,{browserError:f.message})))})};km=function(a,b,c,d){if(!b&&c!==_.ne)return!1;d=b||Yk(d);a=_.u(a.f.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||c===_.ne&&(e.keyId||Yk(e.initData))===d)return!0;return!1};
169
+ em=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,r,v,y,A,E,G,D,I,ja,S,Ja,ka,ya,Da,Oa;_.B(function(qa){switch(qa.a){case 1:if(!e.length)return a.h.warn("Empty init data"),qa["return"]();h=b;if(!h)try{h=lm(a,d,e,f)}catch(ua){if(a.h.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:ua,initDataType:d,
170
+ initData:e}),a.g.ignoreUnrecognizedInitData)return qa["return"]()}if(g){qa.G(2);break}if(!km(a,h,d,e)){qa.G(2);break}l=!0;if("skd"!==d||a.g.enableSessionCacheForSkd){qa.G(4);break}m=_.u(a.f.keys());n=m.next();case 5:if(n.done){qa.G(4);break}p=n.value;q=a.f.get(p);if(!h||q.keyId!==h){qa.G(6);break}a.h.warn("Close and re-open session for "+h);_.zf(qa,9);return _.x(qa,p.close(),11);case 11:_.Af(qa,10);break;case 9:r=_.Bf(qa),a.h.warn("Unable to close session",r);case 10:l=!1;case 6:n=m.next();qa.G(5);
171
+ break;case 4:if(l)return a.h.warn("Skip creating a new session for "+h),qa["return"]();case 2:try{y=a.F?_.Wd:Ae,v=a.I.createSession(y),a.h.info("Created new "+y+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(ua){return a.T(new _.L(_.M,6,6005,{browserError:ua.message})),qa["return"]()}a.A.on(v,Ad,a.Gg.bind(a));a.A.on(v,pd,a.Cg.bind(a));A={ac:f,Nd:[],initData:e,initDataType:d,keyId:h,eb:h?[h]:[],loaded:!1,Ve:Infinity,periodId:c,pb:null,Da:new _.ci,sessionContext:{ldlDelay:0,customData:{}}};
172
+ A.Da["catch"](function(){});f&&(E=a.f.get(f),A.sessionContext=E.sessionContext);a.f.set(v,A);h&&!a.m.get(h)&&a.m.set(h,re);if(e)for(G=0;G<a.a.initData.length;G++)D=a.a.initData[G],D.keyId&&!A.eb.includes(D.keyId)&&_.Ph(D.initData,e)&&(A.keyId||(A.keyId=D.keyId),A.eb.push(D.keyId),a.m.get(D.keyId)||a.m.set(D.keyId,re));I=_.K;ja=I.lb;S=a.C.getConfiguration();Ja=a.keySystem();ka=a.g.Ua[Ja];Da=(ya=ka.modifiers)&&ya.transformInitData;ja(Da)||(Da=mm);try{e=Da({playerConfig:S,initData:e,initDataType:d,drmInfo:a.a,
173
+ drmSystemConfig:ka,sessionContext:A.sessionContext,emeApi:a.o.bd()})}catch(ua){return Oa=ua,ua instanceof _.L||(Oa=new _.L(_.M,6,6016,ua)),A.Da&&A.Da.reject(ua),a.T(Oa),qa["return"]()}a.h.info("Generate License Request for key ID: '"+h+"'");v.generateRequest(d,e.buffer)["catch"](function(ua){if(!a.j){var Ka=null;ua.errorCode&&ua.errorCode.systemCode&&(Ka=ua.errorCode.systemCode,0>Ka&&(Ka+=Math.pow(2,32)),Ka="0x"+Ka.toString(16));a.T(new _.L(_.M,6,6006,{browserError:ua.message,error:ua,extended:Ka},
174
+ ua))}});_.z(qa)}})};
175
+ lm=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{var e=d;e=void 0===e?null:e;b=a.keySystem();d=a.g.Ua[b];b=a.C.getConfiguration();d=d&&d.modifiers&&d.modifiers.extractContentId;_.K.lb(d)||(d=nm);try{var f={ldlDelay:0,customData:{}};e&&(f=a.f.get(e).sessionContext);var g=d(b,c,f);a.h.debug("Extracted Content ID '"+g+"' from SKD");var h=g;break a}catch(l){a.h.warn("Unable to extract Content ID from SKD",l)}h=""}return h}if(b===_.ne)return Yk(c)||"";if(b===_.Cc){h=a.keySystem();try{if(h.match(/^com\.widevine\.alpha/)&&
176
+ (e=_.El(c)))return e.a}catch(l){throw a.h.warn("Unable to extract Key ID from PSSH data.",{error:l,keySystem:h}),l;}}return""};nm=function(a,b){var c=_.Xk(b);_.Sf("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
177
+ mm=function(a){var b=a.playerConfig,c=a.initData,d=a.drmInfo,e=a.drmSystemConfig,f=a.sessionContext,g=a.emeApi;if("skd"===a.initDataType&&"APPLE"===g){a=_.K.lb;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=nm);a="";try{a=e(b,c,f)}catch(h){throw new _.L(_.M,6,6103);}if(!a.length)throw new _.L(_.M,6,6101,"Content ID is an empty string");c=Zk(c,a,d)}return c};
178
+ sm=function(a,b){var c=b.target,d=a.f.get(c),e=a.keySystem(),f=!1;e.match(/^com\.widevine\.alpha/)&&b.message&&2===b.message.byteLength?(f=!0,a.h.info("WV Server certificate request for SID:'"+(c.sessionId+" from msg '")+(b.messageType+"'"))):a.h.info("License request for SID:'"+(c.sessionId+"'/KID:'"+d.keyId+"' from msg '")+(b.messageType+"'"));var g=a.a.licenseServerUri;e=a.g.Ua[e];"individualization-request"===b.messageType&&e&&e.individualizationServer&&(g=e.individualizationServer);var h=_.Yh([g],
179
+ a.g.attemptParameters);h.type=3;h.body=b.message;h.method="POST";h.licenseRequestType=b.messageType===sd&&d.ac?rd:f?Ec:b.messageType;h.sessionId=c.sessionId;if(h.licenseRequestType===rd)a.C.onEvent(new _.J(ad));om(a.a.keySystem)&&pm(a,h);rk(a.O,h);var l=Date.now();return qm(a,h,d.sessionContext).then(function(){a.h.debug("Sending DRM license request to",g,h);return a.C.Cb.fetch(h).P}).then(function(m){if(a.j)return Promise.reject();var n=Date.now()-l,p=rm(a,m),q="";p&&(q=" RID:"+p);p=m&&m.data?m.data.byteLength:
180
+ -1;f?a.h.info("WV Server certificate response for SID:'"+(c.sessionId+"' ")+(p+" bytes in ")+(n+"ms"+q)):a.h.info("License response for SID:'"+(c.sessionId+"'/KID:'")+(d.keyId+"' ")+(p+" bytes in ")+(n+"ms"+q));var r=sk(a.O,m);return c.update(m.data).then(function(){if(!f){var v=gm(a),y=r?Date.now()+1E3*r.delay:Number.NaN;v=new _.J(_.cd,{keySystem:a.keySystem(),expirationTime:v,expectedRenewalTime:y});a.C.onEvent(v);d&&(d.pb&&d.pb.resolve(),d.ac&&(v=d.ac,a.h.info("Closing expired session '"+v.sessionId+
181
+ "'"),Kl(v)["catch"](function(){a.h.warn("Unable to close expired session in time")}),(v=a.f.get(d.ac))&&v.Ec&&v.Ec.stop(),a.f["delete"](d.ac),d.ac=null),(new _.$i(function(){a.j||(d.loaded=!0,d.Da&&d.Da.resolve(),jm(a)&&(a.w||a.h.info(xa),a.w=!0,a.D=!1,a.H.resolve()))})).$(5),null!==d.initData&&(0<d.sessionContext.ldlDelay||r&&tk(a.keySystem()))&&(v=new _.$i(function(){!a.j&&a.O&&(a.h.info("Updating CSL Sessions"),om(a.keySystem())?em(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):a.keySystem().startsWith(_.Rc)&&
182
+ c.update(_.zh("renew")))}),d.Ec=v,v.$(r?r.delay:d.sessionContext.ldlDelay)))}})},function(m){var n,p,q,r;return _.B(function(v){if(a.j)return v["return"]();n=m.data.headers;p=vl(n);q=Object.assign({message:_.Fa,url:m.data.url,status:m.data.status,response:m.data.response},n?{headers:n}:{},p);r=new _.L(_.M,6,6007,q,m);a.T(r);d&&d.pb&&d.pb.reject(r);d&&d.Da&&d.Da.reject(r);_.z(v)})})["catch"](function(m){a.j||(m===ob?a.h.info("Ignore update for closed sessions"):(m=new _.L(_.M,6,6008,{browserError:m.message}),
183
+ a.T(m),d&&d.pb&&d.pb.reject(m),d&&d.Da&&d.Da.reject(m)))})};rm=function(a,b){if(!b||!b.headers)return"";var c=b.headers["x-dt-li"];if(c)try{return JSON.parse(_.vh(_.Mh(c))).ti}catch(d){a.h.warn("Unable to parse DRMtoday Request ID",d)}return""};
184
+ pm=function(a,b){var c=_.xh(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.h.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(_.Ne).textContent;b.body=_.Mh(c.querySelector("Challenge").textContent).buffer}else a.h.debug("PlayReady request is already unwrapped."),b.headers[ta]="text/xml; charset\x3dutf-8"};
185
+ qm=function(a,b,c){var d,e,f,g,h,l;return _.B(function(m){if(1==m.a)return d=a.C.getConfiguration(),_.x(m,bm(a,d),2);e=a.keySystem();h=(g=(f=a.g.Ua[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;h?b.requestModifiers.push(function(n){return h(d,n,c)}):e.startsWith(_.Rc)&&b.requestModifiers.push(function(n){return _.$k(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Rc)&&b.responseModifiers.push(function(n){return _.al(n)});_.z(m)})};
186
+ Hl=function(a){var b=a.m,c=a.ma;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.T(new _.L(_.M,6,6014));a.C.Ze(_.K.Bf(c));a.w||a.h.info(xa);a.w=!0;a.D=!1};Xl=function(a){var b;return _.B(function(c){b=a.ha.map(function(d){return sm(a,d)});a.Va=!0;a.ha=[];return _.x(c,Promise.all(b),0)})};om=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};_.hm=function(a){return om(a)?_.Sc:a};
187
+ Il=function(a){a.f.forEach(function(b,c){var d=b.Ve,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.C.onExpirationUpdated(c.sessionId,e),b.Ve=e)})};jm=function(a){a=a.f.values();return _.ih(a,function(b){return b.loaded})};
188
+ Pl=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=_.u(a),e=d.next();!e.done;e=d.next())e.value.drmInfos=c};
189
+ im=function(a,b,c,d,e){var f={};a=_.u(a);for(var g=a.next();!g.done;f={xa:f.xa},g=a.next()){f.xa=g.value;b.includes(f.xa.licenseServerUri)||b.push(f.xa.licenseServerUri);f.xa.serverCertificate&&(c.some(function(m){return function(n){return _.Ph(n,m.xa.serverCertificate)}}(f))||c.push(f.xa.serverCertificate));if(f.xa.initData){var h=_.u(f.xa.initData);for(g=h.next();!g.done;g=h.next())g.value.periodId=f.xa.periodId;h={};var l=_.u(f.xa.initData);for(g=l.next();!g.done;h={zd:h.zd},g=l.next())h.zd=g.value,
190
+ d.some(function(m){return function(n){var p=m.zd;return n.keyId&&n.keyId==p.keyId&&n.periodId===p.periodId?!0:!1}}(h))||d.push(h.zd)}if(f.xa.keyIds)for(g=0;g<f.xa.keyIds.length;++g)e.includes(f.xa.keyIds[g])||e.push(f.xa.keyIds[g])}};
191
+ Rl=function(a,b){if(a.keySystem){var c=_.hm(a.keySystem),d=b[c];c===_.Sd&&a.licenseServerUri||(d&&(a.licenseServerUri=d.licenseUrl||""),a.keyIds||(a.keyIds=[]),d&&(a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=d.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=d.persistentStateRequired),a.videoRobustness||(a.videoRobustness=d.videoRobustness||""),a.audioRobustness||(a.audioRobustness=d.audioRobustness||""),a.serverCertificate||(a.serverCertificate=
192
+ d.serverCertificate||null)))}};Kl=function(a){var b,c;return _.B(function(d){if(1==d.a)return b=new Promise(function(e){(new _.$i(e)).$(1)}),_.x(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.F("Timeout waiting for session close");_.z(d)})};_.vm=function(a,b){a&&b&&(tm.set(a,b),um.info("Registered TextDisplayerFactory: '"+a+"'"))};
193
+ _.wm=function(a,b){var c=b.find(function(d){return(d=tm.get(d))?d.aa(a):!1});if(null==c)return um.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;um.info("Chosen the text displayer: "+c);return tm.get(c)};xm=function(){this.a=null;this.f=[]};_.ym=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})}};
194
+ zm=function(a,b){var c=0;a.a&&a.a.state==b&&(c+=a.a.duration);for(var d=_.u(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state==b?e.duration:0;return c};Am=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.u(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};Bm=function(){this.g=this.f=this.j=null;this.a=[]};Cm=function(a){return a.a.map(function(b){return _.K.Qa(b)})};
195
+ _.Dm=function(){this.f=this.o=this.A=this.D=this.j=this.m=this.g=this.w=NaN;this.a=new xm;this.B=new Bm};_.Em=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:[]}};_.Km=function(a){this.f=a;this.a=void 0};Mm=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Lm.value().get(b),c.one(a,b,d))};
196
+ Qm=function(a){this.h=new _.H("clpp.StateManager");this.l=a;this.a=new _.dg;this.f=_.Nm;this.A=_.Om;this.I=0;this.w=-1;this.L=this.o=this.J=this.B=0;this.j=this.m=this.F=!1;this.H=0;this.g=null;this.K=0;this.O=_.gj();this.D=!1;this.J=Date.now();Pm(this)};Rm=function(a,b){return Object.keys(b)[a]};
197
+ Tm=function(a,b){var c={type:_.qe};b===_.wc||b===_.vc?(c.reason=a.w,b===_.wc?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(a.f===_.Sm&&(c.reason=a.w),a.A===_.Sm&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
198
+ Xm=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=a.f===_.Sm;a.A=a.f;a.f=b;a.A===_.Um&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;b===_.Sm?(a.L=a.o,a.w=a.m?1:2,a.h.info("Buffering started. Reason: "+Rm(a.w-1,_.Vm)),c=Tm(a,_.wc),a.Wb(_.wc,c)):d&&(a.B=a.o-a.L,a.h.info("Buffering finished. Reason: "+Rm(a.w-1,_.Vm)+". Buffering time: "+a.B+" ms"),c=Tm(a,_.vc),a.Wb(_.vc,c));c=Rm(a.A,_.Wm);d=Rm(a.f,_.Wm);a.h.info(_.fb+c+" -\x3e "+d);a.Wb(_.qe,Tm(a,""));return!0};
199
+ bn=function(a,b){if(a.f===_.Ym)a.h.warn("Player is in error state, aborting any further state checks");else{var c=a.l.isPaused();var d=a.l.getPosition();var e=a.l.getDuration();if(d=a.l.isEnded()||a.f===_.Um&&1>=Math.abs(d-e)||c&&d>=e)Xm(a,_.Um)&&a.h.debug("Player claims to be in ended state, not checking more");else if(b!==_.Ee){e=a.l.getPosition();e=null!==e&&void 0!==e&&0<=e?a.l.getBufferInfo().Ha(e,!0):-1;a.H=e;e=a.l.getSurface().getMedia();a.g=e?e.readyState:null;a.K=a.l.getPlaybackRate()||1;
200
+ e=typeof a.g===_.k&&2>a.g&&2===e.networkState;var f=typeof a.g===_.k&&0>=a.H&&a.f===_.Nm,g=typeof a.g===_.k&&2>=a.g&&a.j;e=a.m||f||e||g;!a.O||a.l.isLive()||a.f!==_.Sm||e||(f=b===_.ke&&4===a.g,(g=a.A===_.Zm)&&!a.D?e=!0:g||a.D||f||(e=!0));f=!1;e?f=Xm(a,_.Sm):c?f=Xm(a,_.$m):a.F&&(f=Xm(a,_.an));f&&(a.D=!1);a.h.debug("Video state check for event "+b+":: seeking: "+a.m+", waiting: "+a.j+", playing: "+a.F+", paused: "+c+", readyState: "+a.g+", rate: "+a.K+", buffer: "+a.H+", ended: "+d+". Changed state: "+
201
+ f+", Current state: "+Rm(a.f,_.Wm))}}};
202
+ Pm=function(a){function b(d){return bn(a,d.type)}a.h.debug("Start watching for video events for "+a.l.namespace());var c=a.l;a.a.on(c,_.hd,function(){a.j=!1;Xm(a,_.Um)});a.a.on(c,xc,b);a.a.on(c,_.Zd,function(){a.F=!0;a.j=!1;bn(a,_.Zd)});a.a.on(c,_.Ud,function(){a.F=!1;a.j=!1;bn(a,_.Ud)});a.a.on(c,_.Ee,b);a.a.on(c,_.de,b);a.a.on(c,_.ke,function(d){a.m=!1;a.j=!1;bn(a,d.type)});a.a.on(c,_.le,function(d){a.m=!0;bn(a,d.type)});a.a.on(c,oe,b);a.a.on(c,_.Ye,function(){a.j=!0;bn(a,_.Ye)});a.a.on(c,_.id,function(d){return a.T(d)});
203
+ a.a.on(c,_.wd,b);a.a.on(c,yc,function(){a.D=!0;bn(a,yc)});a.a.on(c,_.Me,function(d){a.m=!0;bn(a,d.type)});a.a.on(c,_.Le,function(d){a.m=!1;a.j=!1;bn(a,d.type)})};cn=function(a){a=(new _.Kg(a)).za;if(!a)return null;a=a.toUpperCase();return _.Dh(a,".MPD")?_.dc:_.Dh(a,".M3U8")?_.Kj:_.Dh(a,".MP4")?_.Se:_.Dh(a,"MANIFEST")||_.Dh(a,".ISM")?_.ic:null};
204
+ _.en=function(a){var b;_.jk(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.ue||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=dn(b[c]);d&&a.push(d)}return a};
205
+ dn=function(a){var b=null;_.K.Z(a)&&(a={url:a});typeof a===_.Kd&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.K.R(a.drmProtected)||typeof a.drmProtected!==_.uc||(b.drmProtected=a.drmProtected),_.K.R(a.isLive)||typeof a.isLive!==_.uc||(b.isLive=a.isLive),_.K.R(a.name)||typeof a.name!==_.ue||(b.name=a.name),_.K.R(a.Gb)||typeof a.Gb!==_.ue||(b.Gb=a.Gb),_.K.R(a.audioMimeType)||typeof a.audioMimeType!==_.ue||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=cn(a.url),b.type?
206
+ fn.debug("Detect media type "+b.type+" for "+a.url):fn.warn("Unable to detect media type for "+a.url));return b};gn=function(){_.kk.call(this,Mc);this.A=this.I=!1;this.m=this.B=this.o=this.a=this.j=null;this.g=new _.dg;this.H=this.F=this.f=this.J=null};
207
+ kn=function(a,b){return a.A?hn():new Promise(function(c){a.a||(a.g.on(b,_.id,function(){var d=jn(a);if(d)a.onError(d)}),a.g.on(b,_.ie,function(){var d=b.videoWidth,e=b.videoHeight,f=a.getTrackManager();f&&0<d&&0<e&&(f.w={width:d,height:e});a.trigger(new _.J(_.tc,{detail:{width:d,height:e}}))}),a.a=b);c()})};ln=function(a){return a.A?hn():new Promise(function(b){if(a.a){var c=a.a;a.g.off(c,_.id);a.g.off(c,_.ie);a.a=null}b()})};
208
+ nn=function(a){var b,c,d,e,f;return _.B(function(g){if(1==g.a){if(a.A)return g["return"](hn());b=a.w[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=_.mn;d=_.xk(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=new _.Jl({Cb:e,onError:function(h){return a.onError(h)},Ze:function(){},onExpirationUpdated:function(h,l){a.trigger(new _.J(_.$c,
209
+ {expirationTime:l}))},onEvent:function(h){h instanceof _.J?a.dispatchEvent(h):a.log.debug(_.xb,h.type)},getConfiguration:function(){return a.getConfiguration()},Kc:function(){return a.Kc()}});a.o.g=d;f={id:0,language:_.He,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,
210
+ Na:0,mimeType:_.Se,codecs:"",encrypted:!0,keyId:null,language:_.He,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,Tl:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,El:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.x(g,_.Ol(a.o,[f],[]),2)}return 3!=g.a?_.x(g,_.am(a.o,a.a),3):g["return"](Promise.resolve())})};
211
+ on=function(a,b){Mm(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.g,function(){a.getState()!==_.Ym&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};jn=function(a){if(null===a.w||!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 _.L(_.M,3,3016,{code:b,Ml:c,message:a.a.error.message})};hn=function(){return Promise.reject(new _.L(_.M,7,7E3))};
212
+ pn=function(a){if(a.A)return new _.di(hn(),function(){});var b=a.w[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.J;c&&on(a,c);if(d.preload!==_.Jd)a.g.one(d,_.wd,function(){var g=Date.now()/1E3-e;a.f.A=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.ji()||_.ki())&&d.load();var f=new _.ci;a.g.one(d,oe,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.F||(a.F=(new _.$i(function(){f.reject(new _.L(_.M,3,3100,{message:"Unable to load media source successfully from "+
213
+ b.url,uri:b.url},d.error))})).$(g))});Mm(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.g,function(){return f.resolve()});d.error?f.reject(jn(a)):d.preload===_.Jd&&(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.g.one(d,_.id,function(){f.reject(jn(a))});
214
+ return new _.di(f,function(){var g=new _.L(_.M,7,7001);f.reject(g);return Promise.resolve()})};
215
+ qn=function(a,b){Mm(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.g,function(){if(a.isLive()&&a.getState()!==_.Ym){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)}))}})};rn=function(){};
216
+ _.un=function(a){a&&(0<=sn.indexOf(a)?tn.warn("Factory '"+a.name()+"' is already registered"):(sn.push(a),tn.info("Factory "+a.name()+"' has been registered.")))};wn=function(a,b){var c=sn.find(function(d){return d.aa(a,b)});c||(c=new vn);tn.info("Chosen ads: "+c.name());return c};_.xn=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};_.yn=function(a,b){a.classList.add(b)};
217
+ _.zn=function(a,b){if(a&&typeof b===_.Kd)for(var c in b)a.style[c]=b[c]};_.An=function(a){return document.createElement(a)};Bn=function(){this.a=null;this.g=new Set;this.f=null;this.set(null)};Cn=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.g.add(b))};Dn=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.g.values());Gg(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.mf(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
218
+ Hn=function(a,b){this.h=new _.H("clpp.PlayerSurface");this.w=_.K.ua(En,b);this.f=new Bn;this.g=null;this.a=new Bn;this.m=Fn;Fn+=1;this.o="clpp-video-"+this.m;this.j=new _.dg;if(null==a)throw new _.L(_.M,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.L(_.M,7,7004,"Media element not found");var d=this.w;this.h.debug("Initializing Player Surface on ",c);if("cast-media-player"===c.tagName.toLowerCase())this.g=c;else{if(!(c instanceof
219
+ HTMLMediaElement))throw new _.L(_.M,7,7005,"Media element is not instance of HTMLMediaElement");if(!c.hasAttribute("crossorigin")){var e=d.crossorigin;this.h.info("Setting media elements crossorigin to "+e);c.setAttribute("crossorigin",e)}this.f.set(c);if(d.disableContainer)d=null;else if(d.containerEl){if(c.parentNode!==d.containerEl)throw new _.L(_.M,7,7006,"Container element is not a direct parent of media element");d=d.containerEl}else{d=document.createElement(_.Zc);c.parentNode?c.parentNode.replaceChild(d,
220
+ c):this.h.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!");e=[];for(var f=0;f<c.classList.length;f++)e.push(c.classList[f]);e=_.u(e);for(f=e.next();!f.done;f=e.next())f=f.value,c.classList.remove(f),_.yn(d,f);d.style.cssText=c.style.cssText;c.removeAttribute(_.we);e=_.u([_.ef,_.ld]);for(f=e.next();!f.done;f=e.next()){f=f.value;var g=c.getAttribute(f);g=parseInt(g,10);isNaN(g)||(d.style[f]=g+_.ce);_.ji()||c.removeAttribute(f)}d.appendChild(c)}d&&
221
+ (this.a.set(d),Cn(this.a,"clpp-container"),Cn(this.a,this.o),Cn(this.f,_.Hc),Cn(this.f,"clpp-video"));Gn(this,c,d)}};Gn=function(a,b,c){(_.ki()&&53===dj().major||_.ki()&&68===dj().major||_.ej())&&!b.hasAttribute(Vc)&&(b.style.opacity="0",b.setAttribute(Vc,""),a.j.one(b,ed,function(){b.removeAttribute(Vc);b.style.opacity="1";c&&(c.style.opacity="1")}))};Jn=function(a){this.l=a;this.j=this.l.getNetworkEngine();this.a=new _.dg;this.g=null;this.f=!0;In(this)};
222
+ In=function(a){a.a.on(window,"offline",function(){Kn(a,!1)});a.a.on(window,"online",function(){a.f||Ln(a)});a.a.on(a.l,oe,function(){return Mn(a)});a.a.on(a.l,"suspend",function(){return Mn(a)});a.a.on(a.l,_.Ye,function(){return Mn(a)});a.a.on(a.l,_.Zd,function(){a.f||Ln(a)});a.a.on(a.l,_.be,function(){a.f||Ln(a)});a.a.on(a.l,_.qe,function(){switch(a.l.getState()){case _.Sm:Mn(a);break;default:Mn(a)}})};Ln=function(a){a.l.getConfiguration().connectivityCheck&&(Nn(a),a.g=(new _.$i(function(){return On(a)})).$(5))};
223
+ Mn=function(a){a.f&&Ln(a)};Nn=function(a){a.g&&(a.g.stop(),a.g=null)};On=function(a){var b,c;return _.B(function(d){if(1==d.a)return(b=a.l.getConfiguration().connectivityCheck)&&a.l?_.x(d,qi(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;Kn(a,c);_.z(d)})};Kn=function(a,b){Nn(a);a.f!==b&&(a.f=b,a.l&&a.l.getConfiguration().connectivityCheck&&a.l.trigger(new _.J(Qd,{online:a.f})))};Qn=function(){for(var a=0;a<Pn.length;++a)Pn[a].Bc()};
224
+ _.Rn=function(a,b){b=b||0;for(var c={priority:b,Bc:a},d=0;d<Pn.length;d++)if(Pn[d].priority<b){Pn.splice(d,0,c);return}Pn.push(c)};Sn=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};Tn=function(a,b,c){this.g=a;this.f=b;JSON.parse(_.vh(_.Mh(a)));this.a=JSON.parse(_.vh(_.Mh(b)));this.j=c};Un=function(a){this.license=a;this.a=null;this.h=new _.H("clpp.utils.LicenseKey")};
225
+ Vn=function(a){if(!a.a){var b=a.license.split(".");if(3!==b.length)throw Error("Expected to find 3 data sections in JWT raw data");b=new Tn(b[0],b[1],b[2]);a.a=b}return a.a};Wn=function(a){switch((a.Sd()[0]||{src:"",type:""}).type){case _.dc:a="dash";break;case _.ic:a="ss";break;case _.Kj:a="hls";break;case _.Se:a=_.Fd;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:""};
226
+ 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:""};ao=function(a){var b=a.getConfiguration(),c="no";b.drm&&!_.K.ya(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(dd)||$n(a).endsWith("drmtoday.com"))&&(c=dd);return c};
227
+ bo=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.keySystem){case _.Tc:b="wv";break;case _.Sc:b="pr";break;case _.Rc:b="fps"}return b};co=function(a){a=a.getDrmInfo();var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};eo=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.videoRobustness){case Na:case "HW_SECURE_ALL":b="L1";break;case Ma:b="L2";break;case _.nb:case _.mb:b="L3"}return b};$n=function(a){a=a.getDrmInfo();return(new _.Kg(a&&a.licenseServerUri||"")).Ra};
228
+ ho=function(a,b){var c="ie"===_.li().browser,d=b.getConfiguration(),e=_.mf(Array.from(_.lk.keys())).concat(_.mf(b.jj()));d={"CL-KEY":a.license,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ea,"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)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=
229
+ e);e=_.Yh(["https://downloads.castlabs.com/r/register/"]);e.method="GET";e.headers=d;return(new _.oi).fetch(e).P.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=Vn(a);f=f.data;var h=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(h){case 403:case 404:g=7101;var l="castLabs Player license is invalid";if(403===h){h=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=
231
230
  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.h.error(Ta+l);f=Promise.reject(new _.L(_.M,7,g,l))}}return f})};
232
- U=function(a,b,c){_.bk.call(this);var d=this;ao();this.h=new _.H("clpp.Player");if(!a)throw new _.L(_.M,7,7102);this.A=new _.eg;this.f=this.T=b||_.hk();this.m=null;void 0===this.f.license&&(this.f.license=fk,this.h.warn("You are using the embedded demo license!"));if(!this.f.license)throw this.h.error("You provided null or empty string as your license. Please check your license configuration."),new _.L(_.M,7,7101,"No license provided in configuration!");this.g=new Sn(a,c);this.a=this.w=null;this.H=
233
- new _.pi;this.j=null;this.K=[];this.M={};this.o=null;this.I=!0;this.J=this.F=!1;this.D=this.Gc=null;this.xe=!1;this.V=new Un(this);this.P=!1;this.B=function(f){(f=f.detail)&&f.currentState===_.mn&&(d.off(_.se,d.B),to(d))};this.on(_.se,function(){d.getState()===_.jn&&d.unload()});this.on(_.ac,this.vg.bind(this));this.on(_.$b,this.vg.bind(this));uo(this,this.f.license);this.g.getMedia()&&(a=this.g.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),this.h.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),
234
- void 0===this.f.autoplay&&(this.f.autoplay=!0,this.h.debug("Setting autoplay in configuration since it was specified in the video element"))));a=[];b=_.u(vo);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.h.error("Error while creating player plugin",f)}}wo(this,a);_.mk.clear()};_.xo=function(a,b){b!==a.a&&(a.a&&(a.a.removeDelegate(a),a.a.destroy()),a.a=b,a.a&&(a.a.init(a.g,a.f),a.a.setNetworkEngine(a.getNetworkEngine()),a.a.addDelegate(a)))};
235
- uo=function(a,b){a.w=new fo(b);a.w.verify()["catch"](function(c){setTimeout(function(){a.h.error(Ta+c);a.trigger(new _.I(_.jd,{detail:new _.L(_.M,7,7101)}));a.destroy()},1E3)})};
236
- to=function(a){if(!a.P){a.P=!0;a.g.getMedia()||a.g.getCastElement();a.w||(a.w=new fo(a.f.license));var b=Object.keys(a.M);so(a.w,{getConfiguration:a.getConfiguration.bind(a),Rd:a.Rd.bind(a),getDrmInfo:a.getDrmInfo.bind(a),hj:function(){return b},isLive:a.isLive.bind(a)}).then(function(){a.h.debug("License verified remotely")})["catch"](function(c){setTimeout(co,1E3,{release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)},c)})}};
237
- wo=function(a,b){a.K=b;for(var c=_.u(a.K),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.M[e]=d)}a.ic("onPlayerCreated")};
238
- yo=function(a){var b,c;return _.B(function(d){if(1==d.a){if(a.I)return a.h.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.off(_.se,a.B);a.A.off(a,_.se,a.B);a.A.off(document,Xe);a.trigger(new _.I(_.ge));a.P=!1;a.g&&a.g.release();return a.j?_.x(d,a.j.dispose(),3):d.G(2)}2!=d.a&&(a.j=null);qk(function(e){e.release()});if(a.a)return b=null,c=a.a.on(_.se,function(e){b=e}),d["return"](a.ic(_.Pd).then(function(){a.a.removeDelegate(a);return Promise.all([a.a.release(),
239
- a.H.release()])}).then(function(){a.h.debug("Releasing player completed");b&&(a.h.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.se,c);a.trigger(new _.I(fe))}));a.trigger(new _.I(fe));return d["return"](new Promise(function(e){return e()}))})};
240
- zo=function(a,b,c){return new Promise(function(d,e){var f;if(b){for(var g=f=null,h=0;h<b.length;h++);h=Object.values(_.Xf);for(var l=0;l<b.length;l++)for(var m=0;m<h.length;m++){var n={Mb:h[m],confidence:h[m].canPlay(b[l],c)};if(null===f||f.confidence<n.confidence)f=n,g=l}f&&typeof g===_.k&&0<f.confidence?(_.Yf.debug("Player Factory '"+f.Mb.a()+"' can play",b[g]),f=new Vf(f.Mb,g)):(_.Yf.error("No compatible Player Factory found for sources:",b),f=null)}else f=null;f?(g=f.Mb.create(),d(new Wf(g,f.a))):
241
- (f=new _.I(_.jd,{detail:new _.L(_.M,7,7003)}),a.trigger(f),e(f))})};
242
- _.Bo=function(a,b){var c,d,e,f;return _.B(function(g){switch(g.a){case 1:if(a.F)throw Error("Player is already destroyed.");if(!a.g)throw Error("No surface associated with this player!");return _.x(g,a.release(),2);case 2:a.o=_.qn(b);c=_.kk(b);a.f=_.jk(a.T,c?b:{},{source:a.o});if(0===a.o.length)throw Error("Invalid request to load: could not find source to load");a.I=!1;e=0;if(!a.J&&2===a.canPlay(a.o[0],a.f)){g.G(3);break}return _.x(g,zo(a,a.o,a.f),4);case 4:f=g.f,d=f.a,e=f.f,a.J=!1;case 3:d?_.xo(a,
243
- d):a.a.addDelegate(a);Ao(a);a.a&&a.a.setCdnErrorCallback(a.D);a.j=Hn(a,a.f).create(a);a.setSourceIndex(e);if(a.f.pauseWhenInBackground)a.A.on(document,Xe,function(){document.hidden?(a.h.debug("Player is hidden: pausing..."),a.pause()):(a.h.debug("Player is visible: resuming..."),a.play())});qk(function(h){h.$b()});return _.x(g,a.ic("onContentWillLoad",a.f.source[e]),0)}})};
244
- _.Co=function(a){return _.B(function(b){a.g.getMedia()||a.g.getCastElement();a.A.on(a,_.se,a.B);a.trigger(new _.I(yd));return _.x(b,Promise.all([a.a.load(a.f),a.j.load()]),0)})};Do=function(a){var b=_.Fg(a.f.preferredTextLanguage).filter(function(d){return d}),c=a.getTrackManager().ia();b.some(function(d){var e=_.gh(d);return(d=c.find(function(f){f=_.gh(f.language||"");return _.hh(f,e)}))?(a.getTrackManager().Ea(d),!0):!1})};
245
- _.Eo=function(a){var b,c,d,e;return _.B(function(f){if(1==f.a){b=[];if(a.f.remoteTextTracks)for(c=_.u(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)}return 3!=f.a?(Do(a),qk(function(){}),_.x(f,a.ic("onContentLoaded"),3)):a.f.autoplay?_.x(f,a.play(),0):f.G(0)})};Ao=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.B(function(c){if(!a.Gc||!a.xe)return c.G(0);a.xe=!1;return _.x(c,a.Gc(b),0)})})};
246
- _.Fo=function(a){a&&(0<=vo.indexOf(a)||vo.push(a))};V=function(){};Go=function(){};Ho=function(){};Io=function(){};Gn=function(){};Jo=function(){};_.Ko=function(){};Lo=function(){this.a=null};Mo=function(){};No=function(){this.size=0;this.a=void 0;this.h=new _.H("clpp.drm.eme.MediaKeyStatusMap")};Oo=function(a,b){a.size=void 0===b?0:1;a.h.debug("Setting key status to",b);a.a=b};Po=function(){};Qo=function(){};Ro=function(){this.a=this.f=null};
247
- So=function(a,b){this.keySystem=a;if(a.startsWith(_.Sc))for(var c=_.u(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.ie)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.Sd,distinctiveIdentifier:_.Sd,initDataTypes:e.initDataTypes,sessionTypes:[Be],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=_.u(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])&&
248
- (d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.u(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,_.Te));d=g?d:null}if(d){this.a=d;return}}c=Error(Bb);c.name=cb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
249
- To=function(a){this.f=null;this.g=new WebKitMediaKeys(a);this.a=new _.eg;this.j=0;this.h=new _.H(Mc);this.h.info("Created Media Keys for "+a)};
250
- Uo=function(a,b){a.f=b;_.hg(a.a);if(!b)return Promise.resolve();a.a.on(b,gd,function(c){_.Tf("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);"MediaEncryptedEvent"in window&&c instanceof MediaEncryptedEvent&&(a.h.info("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.a.on(b,ef,function(c){a.h.debug("Handle webkitNeedKey event");c=_.N(c.initData);if(_.th(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
251
- c=yh(c.subarray(4),!0);c=_.Ah(c);var d=new Event(gd);d.initDataType="skd";d.initData=uh(c);a.f.dispatchEvent(d)});Xm(b,HTMLMediaElement.HAVE_METADATA,a.a,function(){return b.webkitSetMediaKeys(a.g)});return Promise.resolve()};Vo=function(a,b){_.bk.call(this);this.a=null;this.o=a;this.f=this.g=null;this.j=new _.eg;this.sessionId=b;this.expiration=NaN;this.closed=new _.di;this.m=!1;this.keyStatuses=new No;this.h=new _.H(Mc)};Wo=function(a,b){Oo(a.keyStatuses,b);a.dispatchEvent(new _.I(qd))};Xo=function(){};
252
- Yo=function(){this.f=this.a=null;this.g="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.g="webkit")};
253
- Zo=function(a,b,c,d){this.g=a;this.a=this.keySystem=c;a=!1;c===_.Td&&(this.a=af,a=!1);var e=!1;d=_.u(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=_.u(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=_.u(f.videoCapabilities),n=g.next();!n.done;n=g.next())m=n.value,m.contentType&&(l=!0,b.canPlayType(m.contentType,
254
- this.a)&&(h.push(m),e=!0));l||(e=b.canPlayType(_.Te,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.ie||a||(e=!1);if(e){this.f=f;return}}b=Bb;if(c===_.Td||c===_.Uc)b="None of the requested configurations were supported.";c=Error(b);c.name=cb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};$o=function(a,b){this.g=a;this.o=b;this.a=null;this.f=new _.eg;this.j=[];this.m=new Map};
255
- cp=function(a,b){a.a=b;_.hg(a.f);b&&(a.f.on(b,a.g+"needkey",function(c){var d=new Event(gd);d.initDataType=_.Dc;d.initData=uh(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.g+"keymessage",function(c){var d=ap(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.I(Bd,{messageType:e?td:sd,message:c.message});_.Tf("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.Uf("Session not found",c.sessionId)}),a.f.on(b,a.g+"keyadded",function(c){if(c=
256
- ap(a,c.sessionId))_.Tf("WebkitEmeManager.MediaKeySession.ready"),bp(c,"usable"),c.a&&c.a.resolve(),c.a=null}),a.f.on(b,a.g+"keyerror",function(c){var d=ap(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?bp(d,_.Ud):1===e?bp(d,"expired"):
257
- bp(d,_.pd))}}))};ap=function(a,b){var c=a.m.get(b);return c?c:(c=a.j.shift())?(c.sessionId=b,a.m.set(b,c),c):null};dp=function(a,b,c,d){_.bk.call(this);this.w=a;this.j=b;this.o=!1;this.a=this.f=null;this.g=c;this.m=d;this.sessionId="";this.expiration=NaN;this.closed=new _.di;this.keyStatuses=new No};
258
- fp=function(a,b,c){if(a.o)return Promise.reject(Error("The session is already initialized."));a.o=!0;try{if(a.m===_.Xd)if(c)var d=_.N(_.Ah("LOAD_SESSION|"+c));else{var e=_.Ah("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.N(b),e.byteLength);d=f}else d=_.N(b)}catch(h){return Promise.reject(h)}a.f=new _.di;var g=ep(a,"generateKeyRequest");try{a.j[g](a.g,d)}catch(h){if(h.name!==Ra)return a.f=null,Promise.reject(h);(new _.aj(function(){try{a.j[g](a.g,d)}catch(l){a.f.reject(l),
259
- a.f=null}})).Z(.01)}return a.f};gp=function(a,b,c){if(a.a)a.a.then(function(){return gp(a,b,c)})["catch"](function(){return gp(a,b,c)});else{a.a=b;if(a.g===af){var d=_.wh(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=_.Nh(e.keys[0].k);e=_.Nh(e.keys[0].kid)}else d=_.N(c),e=null;var f=ep(a,"addKey");try{a.j[f](a.g,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};bp=function(a,b){Oo(a.keyStatuses,b);a.dispatchEvent(new _.I(qd))};
260
- ep=function(a,b){return a.w?a.w+b.charAt(0).toUpperCase()+b.slice(1):b};hp=function(){};
261
- ip=function(a,b,c,d,e){_.Bk.call(this,Pa);this.m=a;this.j=b;this.g=c;this.a=d;this.o=e;this.h=new _.H(Lc);_.Gh(this.m)?this.h.warn(_.Gb):this.Oa(_.Uc,{licenseUrl:this.m,videoRobustness:[_.ob,void 0],audioRobustness:[_.nb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.rd.bind(this)}});_.Gh(this.j)?this.h.warn(_.db):this.Oa(_.Tc,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.rd.bind(this)}});
262
- _.Gh(this.g)?this.h.warn(_.Ja):_.Gh(this.a)?this.h.warn(_.Ia):this.Oa(_.Sc,{licenseUrl:this.g,certificateUrl:this.a,modifiers:{licenseRequest:this.zg.bind(this),licenseResponse:this.Ag.bind(this),certificateRequest:this.rd.bind(this),extractContentId:this.Yf.bind(this)}})};jp=function(){this.l=null};kp=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.ld)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
263
- lp=function(a){a=a.target;if(a.webkitPresentationMode===Yd){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)};mp=function(){return this.webkitSupportsPresentationMode(Yd)?(this.webkitSetPresentationMode(Yd),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
264
- np=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};op=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};pp=function(a,b,c){return new window.TextTrackCue(a,b,c)};
265
- qp=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};sp=function(a,b,c){if("input"===a)switch(this.type){case "range":a=Gc}rp.call(this,a,b,c)};up=function(){this.a=tp()};vp=function(a){return tp()-a.a};wp=function(a){var b=new up;b.a=a.a;return b};tp=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.xp=function(a){var b=[];a=_.u(a);for(var c=a.next();!c.done;c=a.next()){c=_.u(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};
266
- yp=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.g=b;this.f=0};zp=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.g),c));a.a.set(d)}a.a.set(b,a.f);a.f+=b.byteLength};_.Ap=function(a,b,c){this.f=a;this.j=b;this.g=c||this.f.getMedia();this.a=null};_.Cp=function(){this.a=new Blob([Bp],{type:_.Te})};
267
- _.Ep=function(a,b,c,d){var e,f;return _.B(function(g){if(1==g.a)return _.Af(g,2),_.x(g,Dp(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.Cf(g);f.a(_.M);throw f;})};
268
- Dp=function(a,b,c,d){var e,f,g,h;return _.B(function(l){if(1==l.a){if(d){if(e=_.Fp[d.toLowerCase()])return l["return"](e);_.G("Could not determine manifest type using MIME type ",d)}if(f=_.Gp(a)){if(g=_.Hp[f])return l["return"](g);_.G("Could not determine manifest type for extension ",f)}else _.G("Could not find extension for ",a);return d?l.G(2):_.x(l,Ip(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(h=_.Fp[d])return l["return"](h);_.G("Could not determine manifest type using MIME type",d)}throw new _.L(_.M,4,
269
- 4E3,{url:a});})};Ip=function(a,b,c){var d,e,f;return _.B(function(g){if(1==g.a)return d=_.Zh(a),Xh(d,c),d.type=1,d.method="HEAD",_.x(g,b.fetch(d).O,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.Gp=function(a){a=(new _.Lg(a)).za.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()};Jp=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.g=new up};
270
- Lp=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(Kp(a,d),bi(c,d.byteLength,vp(a.g)),a.g.a=tp());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 Lp(a,b,c)})})};Kp=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};
271
- ni=function(a){var b=a.uris[a.uriIndex],c=new Mp,d=new up,e=wp(d),f=0,g,h=new _.di;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=vp(e));p.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!l&&(p=p.getResponseHeader(sa),ai(a,p),l=!0)};c.onload=function(p){p=p.target;var q=(p.getAllResponseHeaders()||"").trim().split("\r\n"),r={};
272
- q=_.u(q);for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),r[v[0].toLowerCase()]=v.slice(1).join(": ");try{var y=vp(e);m||bi(a,p.response?p.response.length:0,y);var A=_.$h(r,p.response,p.status,b,p.responseURL,a,y,g);a.rateLimitBps?ci(a.rateLimitBps,vp(e),a.bytesLoaded).then(function(){h.resolve(A)}):h.resolve(A)}catch(E){h.reject(E)}};c.onerror=function(p){p=p.target;if(0>=p.status)h.reject(new _.L(1,1,1002,{url:b,request:a,status:p.status}));else{var q=p.getAllResponseHeaders(),r={};if(q){q=
273
- _.u(q.trim().split("\r\n"));for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),r[v[0].toLowerCase()]=v.slice(1).join(": ")}p=_.$h(r,p.response,p.status,b,p.responseURL,a,vp(e),g);h.resolve(p)}};c.ontimeout=function(){h.reject(new _.L(1,1,1003,{url:b,request:a}))};c.onprogress=function(p){var q=vp(d);d.a=tp();if(100<q||p.lengthComputable&&p.loaded===p.total)bi(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{O:h,
274
- request:a,abort:function(){c.abort();h.reject(new _.L(1,1,7001,{url:b,request:a}));return Promise.resolve()}}};Np=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.j=new yp(a);this.length=a;this.A=b;this.f=this.a=this.g=0;this.m=null;this.o=-1;this.w=new up};
275
- Qp=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,vp(a.w)),a.w.a=tp());if(f)return f=Op(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){zp(a.j,e);a.a=a.g;a.f=a.j.f;a.m=new DataView(a.j.a.buffer,0,a.j.f);e=Pp(a);for(f=[];e;)f.push(e),e=Pp(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],
276
- 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 Qp(a,b,c,d)})})};Pp=function(a){if(0<=a.o&&a.f<a.o)return null;for(var b=Rp(a);null!==b;){if(b.name===_.zd){var c={start:a.g,end:b.end,length:b.end-a.g,data:new DataView(a.j.a.buffer,a.g,b.end-a.g),count:1};a.g=b.end;return c}b=Rp(a)}return null};
277
- Rp=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=Sp(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=Sp(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.m.getUint32(a.a,!1);var f=a.m.getUint32(a.a+4,!1)}catch(g){throw new _.L(_.M,3,3E3);}if(2097151<e)throw new _.L(_.M,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};
278
- Sp=function(a){var b=a.m.getUint32(a.a,!1);a.a+=4;return b};Op=function(a){var b=null;a.g!==a.f&&(b={start:a.g,end:a.f,length:a.f-a.g,data:new DataView(a.j.a.buffer,a.g,a.f-a.g),count:-1});return b};Up=function(a){_.ei.call(this,new _.di,function(){return Promise.resolve()});this.B=a;this.g=null;this.w=this.O;this.f=-1;this.j=this.m=this.o=null;Tp(this)};Vp=function(a,b,c){a.o=setTimeout(b,c)};
279
- Tp=function(a){a.g=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=Wp(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*Wp(e.request.fuzzFactor,.5));a.f*=Wp(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.m=h;Vp(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.L(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
280
- return e.plugin(e.request)});var b=0,c=0,d=0;return a.g.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.O}).then(function(e){a.w.resolve(e)})["catch"](function(e){if(e instanceof _.L){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return Tp(a);g&&e.a(_.M);a.w.reject(e)}else a.w.reject(e)})};Wp=function(a,b){return null===a||void 0===a?b:a};
281
- oi=function(a){var b=new Xp,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new Yp,e={Zc:!1,$g:!1};b={O:Zp(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.Zc||(e.Zc=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.$g=!0;d.abort()},a);b.O=b.O["finally"](function(){window.clearTimeout(f)})}return b};
282
- Zp=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,r,v,y,A,E,F,D;return _.B(function(J){switch(J.a){case 1:return e=$p,l=new up,m=wp(l),_.Af(J,2),_.x(J,e(a,c),4);case 4:f=J.f;h=vp(l);n=f.headers.get(sa);ai(b,n);p=n?parseInt(n,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return v=f.body.getReader(),y=new Np(p,!b.disableMergedFragments),A=function(ja,P){if(d.Zc)return null;P&&P.data&&(bi(b,P.data.byteLength,vp(l)),l.a=tp());return b.onFragment&&P?b.rateLimitBps?ci(b.rateLimitBps,vp(m),b.bytesLoaded).then(function(){return b.onFragment(P)}):
283
- b.onFragment(P):null},_.x(J,Qp(y,v,A,b.onProgress),10);q=f.body.getReader();r=new Jp(p);return _.x(J,Lp(r,q,b),7);case 7:g=J.f;if(!b.rateLimitBps){J.G(6);break}return _.x(J,ci(b.rateLimitBps,vp(m),g.byteLength),6);case 10:g=J.f;case 6:_.Bf(J,3);break;case 2:E=_.Cf(J);if(d.Zc)throw new _.L(1,1,7001,{url:a,request:b});if(d.$g)throw new _.L(1,1,1003,{url:a,request:b});_.Uf("Error while fetching data:",E);throw new _.L(1,1,1002,{url:a,error:E,request:b,status:-1},E);case 3:F={};D=f.headers;D.forEach(function(ja,
284
- P){F[P.trim()]=ja});if(d.Zc)throw new _.L(1,1,7001,{url:a,request:b});return J["return"](_.$h(F,g,f.status,a,f.url,b,vp(m),h))}})};ji=function(a){try{var b=a.uris[a.uriIndex],c=_.aq(b);return{O:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{O:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
285
- _.aq=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Uf("Bad data URI, failed to parse scheme"),new _.L(_.M,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Uf("Bad data URI, failed to extract encoding and MIME type"),new _.L(_.M,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?_.Nh(a).buffer:_.Ah(a).buffer,contentType:c}};_.cq=function(a){delete _.bq[a]};
286
- _.dq=function(a){a=a.getConfiguration();a=_.K.Qa(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.ve?a.backgroundColor:null;this.V=typeof a.windowColor===_.ve?a.windowColor:null;this.P=typeof a.fontColor===_.ve?a.fontColor:null;this.T=typeof a.fontFamily===_.ve?a.fontFamily:null;this.I=typeof a.fontSize===_.ve?a.fontSize:null;this.B=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.H=typeof a.edgeColor===_.ve?a.edgeColor:"rgba(0, 0, 0, 1)";this.o=null;typeof a.edgeType===
287
- _.ve&&(this.o=a.edgeType)};_.iq=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case eq:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case fq:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case gq:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case hq:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.Kd}};jq=function(a){this.f=a;this.a=null;this.h=new _.H("clpp.text.Mp4TextParser")};
288
- _.lq=function(a){_.dq.call(this,a);this.m=a.getSurface().getMedia();this.f="clpp-video-"+kq++;this.g=document.createElement(_.xe);this.j=this.w=!1;_.Jn(this.m,this.f);document.head.appendChild(this.g);this.rb()};mq=function(){};_.nq=function(){};of=typeof Object.create==_.ld?Object.create:function(a){function b(){}b.prototype=a;return new b};
289
- if(typeof Object.setPrototypeOf==_.ld)oq=Object.setPrototypeOf;else{var pq;a:{var qq={ih:!0},rq={};try{rq.__proto__=qq;pq=rq.ih;break a}catch(a){}pq=!1}oq=pq?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
290
- var pf=oq,tf=typeof Object.defineProperties==_.ld?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},rf="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;uf.prototype.toString=function(){return this.a};var sf=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new uf("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
291
- xf.prototype.A=function(a){this.f=a};xf.prototype["return"]=function(a){this.g={"return":a};this.a=this.m};xf.prototype.G=function(a){this.a=a};
292
- Jf("Promise",function(a){function b(g){this.f=0;this.m=void 0;this.a=[];var h=this.g();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.g(function(){h.m()})}this.a.push(g)};var e=rf.setTimeout;c.prototype.g=function(g){e(g,0)};c.prototype.m=function(){for(;this.a&&this.a.length;){var g=this.a;this.a=[];for(var h=0;h<g.length;++h){var l=
293
- g[h];g[h]=null;try{l()}catch(m){this.j(m)}}}this.a=null};c.prototype.j=function(g){this.g(function(){throw g;})};b.prototype.g=function(){function g(m){return function(n){l||(l=!0,m.call(h,n))}}var h=this,l=!1;return{resolve:g(this.D),reject:g(this.j)}};b.prototype.D=function(g){if(g===this)this.j(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.F(g);else{a:switch(typeof g){case _.Ld:var h=null!=g;break a;case _.ld:h=!0;break a;default:h=!1}h?this.B(g):this.o(g)}};
294
- b.prototype.B=function(g){var h=void 0;try{h=g.then}catch(l){this.j(l);return}typeof h==_.ld?this.H(h,g):this.o(g)};b.prototype.j=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.m=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.F=function(g){var h=this.g();
295
- g.Cd(h.resolve,h.reject)};b.prototype.H=function(g,h){var l=this.g();try{g.call(h,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,h){function l(q,r){return typeof q==_.ld?function(v){try{m(q(v))}catch(y){n(y)}}:r}var m,n,p=new b(function(q,r){m=q;n=r});this.Cd(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.Cd=function(g,h){function l(){switch(m.f){case 1:g(m.m);break;case 2:h(m.m);break;default:throw Error("Unexpected state: "+
296
- 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=_.u(g),n=m.next();!n.done;n=m.next())d(n.value).Cd(h,l)})};b.all=function(g){var h=_.u(g),l=h.next();return l.done?d([]):new b(function(m,n){function p(v){return function(y){q[v]=y;r--;0==r&&m(q)}}var q=[],r=0;do q.push(void 0),r++,d(l.value).Cd(p(q.length-1),n),l=h.next();while(!l.done)})};return b});var Lf=this||self;
297
- Lf.a=!0;_.K={gh:20,Qa:function(a){var b=_.K.R,c=_.K.ng,d=_.K.ya;return b(a)||c(a)?a:d(a)}};_.C("clpp.utils.obj.cloneItem",_.K.Qa);_.K.ya=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=_.K.qg(c,{merging:b[d]},1));return c.merging||null};_.C("clpp.utils.obj.merge",_.K.ya);
298
- _.K.qg=function(a,b,c){var d=_.K.R,e=_.K.ng,f=_.K.qg,g=_.K.mb,h=_.K.yj,l=_.K.mg,m=_.K.uj,n=_.K.Mc;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<_.K.gh&&(a[p]=f(a[p],n,c));return a};_.K.ng=function(a){a=typeof a;return a===_.ve||a===_.k||a===_.vc};_.K.uj=function(a){return a instanceof Element};_.K.R=function(a){return null===a||"undefined"===typeof a};_.K.Mc=function(a){return typeof a===_.Ld};
299
- _.K.mb=function(a){return typeof a===_.ld};_.K.Y=function(a){return typeof a===_.ve};_.K.la=function(a){return typeof a===_.k};_.K.kg=function(a){return typeof a===_.vc};_.K.mg=function(a){var b=_.K.Mc,c=_.K.R;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.K.yj=function(a){var b=_.K.Mc,c=_.K.mb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
300
- _.K.xa=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||!_.K.Mc(a)||!_.K.Mc(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var h=e[g];if(_.K.R(d)||0>d.indexOf(h))if(f[h]=!0,a[h]!==b[h])return!1}if(_.K.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.K.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
301
- _.K.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.K.vj=function(a,b,c){return a>=b&&a<=c};_.K.Af=function(a){for(var b=new Map,c=_.u(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.K.Bf=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};var Pf={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.C("clpp.log.Level",Pf);var Nf=3,Mf={},sq=[];_.C("clpp.log.getLoggers",function(){return _.K.Qa(Mf)});_.C("clpp.log.addInterceptor",function(a){a&&sq.push(a)});_.C("clpp.log.removeInterceptor",function(a){a&&(a=sq.indexOf(a),0<=a&&sq.splice(a,1))});_.C("clpp.log.getTagLevel",Of);_.C("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Mf[a]});_.C("clpp.log.setTagLevel",function(a,b){a&&(_.K.Y(b)&&(b=Qf(b)),Mf[a]=b)});
302
- _.C("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.K.Y(a)&&(a=Qf(a));Nf=a});_.C("clpp.log.getLogLevel",function(){return Nf});_.t=_.H.prototype;
303
- _.t.log=function(a,b){if(window.console){if(1<arguments.length){var c=arguments[0];Array.prototype.shift.call(arguments)}else c=3;var d=Of(this.a);if(0<=d){if(d<c)return}else if(Nf<c)return;this.a&&Array.prototype.unshift.call(arguments,"["+this.a+"]");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):
304
- 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.u(sq);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.t.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.t.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.t.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
305
- _.t.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.t.Ji=function(a){return a?this.a?new _.H(this.a+"."+a):new _.H(a):this};_.C("clpp.log.Logger",_.H);_.H.prototype.createChild=_.H.prototype.Ji;_.H.prototype.error=_.H.prototype.error;_.H.prototype.warn=_.H.prototype.warn;_.H.prototype.debug=_.H.prototype.debug;_.H.prototype.info=_.H.prototype.info;_.H.prototype.log=_.H.prototype.log;var Rf=new _.H("clpp");_.C("clpp.log.info",_.Sf);
306
- _.C("clpp.log.debug",_.Tf);_.C("clpp.log.warn",_.G);_.C("clpp.log.error",_.Uf);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.Yf=new _.H("clpp.players");_.Xf={};_.$f.prototype.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.$f.prototype.get=function(a){return(a=this.a[a])?a.slice():[]};_.$f.prototype.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};_.$f.prototype.clear=function(){this.a={}};cg.prototype.Wb=function(a){try{this.Bc.handleEvent?this.Bc.handleEvent(a):this.Bc.call(this.a,a)}catch(b){_.Uf("clpp","Uncaught exception in event handler for event '"+this.f+"'",b,b?b.message:null,b?b.stack:null)}};_.I.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.I.prototype.stopImmediatePropagation=function(){this.f=!0};_.I.prototype.stopPropagation=function(){};_.t=dg.prototype;
307
- _.t.trigger=function(a){var b=this.a.get(a.type);if(b)for(var c=0;c<b.length&&(a.target=this.f,a.currentTarget=this.f,b[c].Wb(a),b[c].Nk&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.t.on=function(a,b,c){this.a.push(a,new cg(a,b,c||this.f));return b};_.t.one=function(a,b,c){this.a.push(a,new cg(a,b,c||this.f,!0));return b};_.t.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].Bc===b&&(d=this.a.remove(a,c[e])||d);return d};_.t.clear=function(){this.a.clear()};_.eg.prototype.release=function(){_.hg(this)};_.eg.prototype.on=function(a,b,c,d){a=new ig(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.eg.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)};_.eg.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||(gg(f),this.a.remove(b,f))}};jg.prototype.release=function(){this.f.release();this.g=[];this.a=null};jg.prototype.destroy=function(){var a=this;return _.B(function(b){a.release();a.m=null;a.j=null;_.z(b)})};jg.prototype.getTimelineCues=function(){return this.g};_.C("clpp.text.Cue",_.zg);_.zg.positionAlign={LEFT:_.ud,RIGHT:_.vd,CENTER:_.Ec,AUTO:"auto"};_.tg=_.Ce;_.zg.payloadType={TEXT:_.tg,VTT_XML:_.Ye,TTML_XML:_.He};_.ug=_.Ec;_.tq={LEFT:_.rd,RIGHT:_.ke,CENTER:_.ug,START:_.rd,END:_.ke};_.zg.textAlign=_.tq;var yg="ltr";_.zg.direction={HORIZONTAL_LEFT_TO_RIGHT:yg,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.vg="horizontal-tb";_.zg.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.vg,VERTICAL_LEFT_TO_RIGHT:_.Pe,VERTICAL_RIGHT_TO_LEFT:_.Qe};_.wg=0;
308
- _.zg.lineInterpretation={LINE_NUMBER:_.wg,PERCENTAGE:1};_.xg=_.qe;_.uq={CENTER:_.Ec,START:_.xg,END:_.hd};_.zg.lineAlign=_.uq;_.C("clpp.text.CueRegion",_.Cg);_.Ag=1;_.Cg.units={PX:0,PERCENTAGE:_.Ag,LINES:2};var Bg="";_.Cg.scrollMode={NONE:Bg,UP:"up"};_.Cg.displayAlign={BEFORE:"flex-end",CENTER:_.Ec,AFTER:"flex-start"};_.Cg.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Qc,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};Dg.prototype.destroy=function(){this.a.release();this.j=!1;this.m=this.a=this.g=this.f=null;return Promise.resolve()};Dg.prototype.start=function(a){var b=this;this.j?this.h.warn("Already started. Ignoring request..."):(this.j=!0,this.g=a,this.f=this.g.textTracks,this.a.on(this.f,_.Yb,function(c){return Eg(b,c)}),this.a.on(this.f,Gc,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.ne&&(e.mode=_.nd)}}))};
309
- Dg.prototype.o=function(a){var b=new _.zg(a.startTime,a.endTime,a.text,_.Ye);if(_.K.Y(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Pe;break;case "rl":b.writingMode=_.Qe}_.K.la(a.size)&&(b.size=a.size);if(_.K.Y(a.align))switch(a.align){case _.rd:case _.qe:b.textAlign=_.rd;break;case _.Ec:b.textAlign=_.ug;break;case _.ke:case _.hd:b.textAlign=_.ke}_.K.la(a.position)&&(b.position=a.position);if(_.K.Y(a.positionAlign))switch(a.positionAlign){case _.ud:b.positionAlign=_.ud;break;case _.Ec:b.positionAlign=
310
- _.Ec;break;case _.vd:b.positionAlign=_.vd}_.K.la(a.line)&&(b.line=a.line);if(_.K.Y(a.lineAlign))switch(a.lineAlign){case _.qe:b.lineAlign=_.xg;break;case _.Ec:b.lineAlign=_.Ec;break;case _.hd:b.lineAlign=_.hd}_.K.kg(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.wg:1);return b};var Qg=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.t=_.Lg.prototype;_.t.ab="";_.t.mc="";_.t.Ra="";_.t.Qc=null;_.t.za="";_.t.bc="";_.t.toString=function(){var a=[],b=this.ab;b&&a.push(Tg(b,vq,!0),":");if(b=this.Ra){a.push("//");var c=this.mc;c&&a.push(Tg(c,vq,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Qc;null!=b&&a.push(":",String(b))}if(b=this.za)this.Ra&&"/"!=b.charAt(0)&&a.push("/"),a.push(Tg(b,"/"==b.charAt(0)?wq:xq,!0));(b=this.a.toString())&&a.push("?",b);(b=this.bc)&&a.push("#",Tg(b,yq));return a.join("")};
311
- _.t.resolve=function(a){var b=new _.Lg(this);"data"===b.ab&&(b=new _.Lg);var c=!!a.ab;c?Mg(b,a.ab):c=!!a.mc;c?b.mc=a.mc:c=!!a.Ra;c?b.Ra=a.Ra:c=null!=a.Qc;var d=a.za;if(c)Ng(b,a.Qc);else if(c=!!a.za){if("/"!=d.charAt(0))if(this.Ra&&!this.za)d="/"+d;else{var e=b.za.lastIndexOf("/");-1!=e&&(d=b.za.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(""):
312
- ".."==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.za=d:c=""!==a.a.toString();c?_.Og(b,Pg(a.a)):c=!!a.bc;c&&(b.bc=a.bc);return b};var vq=/[#\/\?@]/g,xq=/[#\?:]/g,wq=/[#\?]/g,Ug=/[#\?@]/g,yq=/#/g;Sg.prototype.a=null;Sg.prototype.g=null;Sg.prototype.add=function(a,b){_.Wg(this);this.f=null;var c=this.a.hasOwnProperty(a)&&this.a[a];c||(this.a[a]=c=[]);c.push(b);null!==this.g&&this.g++;return this};
313
- Sg.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")};_.xn={VIDEO:_.Re,AUDIO:_.lc,TEXT:_.Ce,hl:_.cc,IMAGE:_.od,sl:_.ye};_.zq=1/15;var Xg={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.$g={text:{mp4:fc,m4s:fc,m4i:fc,cmft:fc,vtt:_.De,ttml:_.ic},video:{mp4:_.Te,m4s:_.Te,m4i:_.Te,m4v:_.Te,cmfv:_.Te,ts:_.Se},audio:{mp4:_.rc,m4s:_.rc,m4i:_.rc,m4a:_.rc,cmfa:_.rc,ts:_.Se,aac:_.nc,ec3:_.qc,ac3:_.pc},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.w(_.L,Error);_.L.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=ch(this.severity,this.category,this.code,this.data))};_.L.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.C("clpp.Error",_.L);_.M=2;_.L.Severity={RECOVERABLE:1,FATAL:_.M};_.L.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
231
+ U=function(a,b,c){_.ak.call(this);var d=this;Qn();this.h=new _.H("clpp.Player");if(!a)throw new _.L(_.M,7,7102);this.A=new _.dg;this.f=this.S=b||_.gk();this.m=null;void 0===this.f.license&&(this.f.license=ek,this.h.warn("You are using the embedded demo license!"));if(!this.f.license)throw this.h.error("You provided null or empty string as your license. Please check your license configuration."),new _.L(_.M,7,7101,"No license provided in configuration!");this.g=new Hn(a,c);this.a=this.w=null;this.H=
232
+ new _.oi;this.j=null;this.K=[];this.L={};this.o=null;this.I=!0;this.J=this.F=!1;this.D=this.Gc=null;this.xe=!1;this.V=new Jn(this);this.O=!1;this.B=function(f){(f=f.detail)&&f.currentState===_.an&&(d.off(_.qe,d.B),io(d))};this.on(_.qe,function(){d.getState()===_.Ym&&d.unload()});this.on(_.$b,this.wg.bind(this));this.on(_.Zb,this.wg.bind(this));jo(this,this.f.license);this.g.getMedia()&&(a=this.g.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),this.h.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),
233
+ void 0===this.f.autoplay&&(this.f.autoplay=!0,this.h.debug("Setting autoplay in configuration since it was specified in the video element"))));a=[];b=_.u(ko);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.h.error("Error while creating player plugin",f)}}lo(this,a);_.lk.clear()};_.mo=function(a,b){b!==a.a&&(a.a&&(a.a.removeDelegate(a),a.a.destroy()),a.a=b,a.a&&(a.a.init(a.g,a.f),a.a.setNetworkEngine(a.getNetworkEngine()),a.a.addDelegate(a)))};
234
+ jo=function(a,b){a.w=new Un(b);a.w.verify()["catch"](function(c){setTimeout(function(){a.h.error(Ta+c);a.trigger(new _.J(_.id,{detail:new _.L(_.M,7,7101)}));a.destroy()},1E3)})};
235
+ io=function(a){if(!a.O){a.O=!0;a.g.getMedia()||a.g.getCastElement();a.w||(a.w=new Un(a.f.license));var b=Object.keys(a.L);ho(a.w,{getConfiguration:a.getConfiguration.bind(a),Sd:a.Sd.bind(a),getDrmInfo:a.getDrmInfo.bind(a),jj:function(){return b},isLive:a.isLive.bind(a)}).then(function(){a.h.debug("License verified remotely")})["catch"](function(c){setTimeout(Sn,1E3,{release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)},c)})}};
236
+ lo=function(a,b){a.K=b;for(var c=_.u(a.K),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.L[e]=d)}a.ic("onPlayerCreated")};
237
+ no=function(a){var b,c;return _.B(function(d){if(1==d.a){if(a.I)return a.h.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.off(_.qe,a.B);a.A.off(a,_.qe,a.B);a.A.off(document,We);a.trigger(new _.J(_.fe));a.O=!1;a.g&&a.g.release();return a.j?_.x(d,a.j.dispose(),3):d.G(2)}2!=d.a&&(a.j=null);pk(function(e){e.release()});if(a.a)return b=null,c=a.a.on(_.qe,function(e){b=e}),d["return"](a.ic(_.Od).then(function(){a.a.removeDelegate(a);return Promise.all([a.a.release(),
238
+ a.H.release()])}).then(function(){a.h.debug("Releasing player completed");b&&(a.h.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.qe,c);a.trigger(new _.J(ee))}));a.trigger(new _.J(ee));return d["return"](new Promise(function(e){return e()}))})};
239
+ oo=function(a,b,c){return new Promise(function(d,e){var f;if(b){for(var g=f=null,h=0;h<b.length;h++);h=Object.values(_.Wf);for(var l=0;l<b.length;l++)for(var m=0;m<h.length;m++){var n={Mb:h[m],confidence:h[m].canPlay(b[l],c)};if(null===f||f.confidence<n.confidence)f=n,g=l}f&&typeof g===_.k&&0<f.confidence?(_.Xf.debug("Player Factory '"+f.Mb.a()+"' can play",b[g]),f=new Uf(f.Mb,g)):(_.Xf.error("No compatible Player Factory found for sources:",b),f=null)}else f=null;f?(g=f.Mb.create(),d(new Vf(g,f.a))):
240
+ (f=new _.J(_.id,{detail:new _.L(_.M,7,7003)}),a.trigger(f),e(f))})};
241
+ _.qo=function(a,b){var c,d,e,f;return _.B(function(g){switch(g.a){case 1:if(a.F)throw Error("Player is already destroyed.");if(!a.g)throw Error("No surface associated with this player!");return _.x(g,a.release(),2);case 2:a.o=_.en(b);c=_.jk(b);a.f=_.ik(a.S,c?b:{},{source:a.o});if(0===a.o.length)throw Error("Invalid request to load: could not find source to load");a.I=!1;e=0;if(!a.J&&2===a.canPlay(a.o[0],a.f)){g.G(3);break}return _.x(g,oo(a,a.o,a.f),4);case 4:f=g.f,d=f.a,e=f.f,a.J=!1;case 3:d?_.mo(a,
242
+ d):a.a.addDelegate(a);po(a);a.a&&a.a.setCdnErrorCallback(a.D);a.j=wn(a,a.f).create(a);a.setSourceIndex(e);if(a.f.pauseWhenInBackground)a.A.on(document,We,function(){document.hidden?(a.h.debug("Player is hidden: pausing..."),a.pause()):(a.h.debug("Player is visible: resuming..."),a.play())});pk(function(h){h.$b()});return _.x(g,a.ic("onContentWillLoad",a.f.source[e]),0)}})};
243
+ _.ro=function(a){return _.B(function(b){a.g.getMedia()||a.g.getCastElement();a.A.on(a,_.qe,a.B);a.trigger(new _.J(xd));return _.x(b,Promise.all([a.a.load(a.f),a.j.load()]),0)})};so=function(a){var b=_.Eg(a.f.preferredTextLanguage).filter(function(d){return d}),c=a.getTrackManager().ia();b.some(function(d){var e=_.fh(d);return(d=c.find(function(f){f=_.fh(f.language||"");return _.gh(f,e)}))?(a.getTrackManager().Ea(d),!0):!1})};
244
+ _.to=function(a){var b,c,d,e;return _.B(function(f){if(1==f.a){b=[];if(a.f.remoteTextTracks)for(c=_.u(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)}return 3!=f.a?(so(a),pk(function(){}),_.x(f,a.ic("onContentLoaded"),3)):a.f.autoplay?_.x(f,a.play(),0):f.G(0)})};po=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.B(function(c){if(!a.Gc||!a.xe)return c.G(0);a.xe=!1;return _.x(c,a.Gc(b),0)})})};
245
+ _.uo=function(a){a&&(0<=ko.indexOf(a)||ko.push(a))};V=function(){};vo=function(){};wo=function(){};xo=function(){};vn=function(){};yo=function(){};_.zo=function(){};Ao=function(){this.a=null};Bo=function(){};Co=function(){this.size=0;this.a=void 0;this.h=new _.H("clpp.drm.eme.MediaKeyStatusMap")};Do=function(a,b){a.size=void 0===b?0:1;a.h.debug("Setting key status to",b);a.a=b};Eo=function(){};Fo=function(){};Go=function(){this.a=this.f=null};
246
+ Ho=function(a,b){this.keySystem=a;if(a.startsWith(_.Rc))for(var c=_.u(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.he)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.Rd,distinctiveIdentifier:_.Rd,initDataTypes:e.initDataTypes,sessionTypes:[Ae],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=_.u(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])&&
247
+ (d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.u(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,_.Se));d=g?d:null}if(d){this.a=d;return}}c=Error(zb);c.name=cb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
248
+ Io=function(a){this.f=null;this.g=new WebKitMediaKeys(a);this.a=new _.dg;this.j=0;this.h=new _.H(Lc);this.h.info("Created Media Keys for "+a)};
249
+ Jo=function(a,b){a.f=b;_.gg(a.a);if(!b)return Promise.resolve();a.a.on(b,fd,function(c){_.Sf("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);"MediaEncryptedEvent"in window&&c instanceof MediaEncryptedEvent&&(a.h.info("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.a.on(b,df,function(c){a.h.debug("Handle webkitNeedKey event");c=_.N(c.initData);if(_.sh(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
250
+ c=_.xh(c.subarray(4),!0);c=_.zh(c);var d=new Event(fd);d.initDataType="skd";d.initData=th(c);a.f.dispatchEvent(d)});Mm(b,HTMLMediaElement.HAVE_METADATA,a.a,function(){return b.webkitSetMediaKeys(a.g)});return Promise.resolve()};Ko=function(a,b){_.ak.call(this);this.a=null;this.o=a;this.f=this.g=null;this.j=new _.dg;this.sessionId=b;this.expiration=NaN;this.closed=new _.ci;this.m=!1;this.keyStatuses=new Co;this.h=new _.H(Lc)};Lo=function(a,b){Do(a.keyStatuses,b);a.dispatchEvent(new _.J(pd))};Mo=function(){};
251
+ No=function(){this.f=this.a=null;this.g="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.g="webkit")};
252
+ Oo=function(a,b,c,d){this.g=a;this.a=this.keySystem=c;a=!1;c===_.Sd&&(this.a=$e,a=!1);var e=!1;d=_.u(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=_.u(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=_.u(f.videoCapabilities),n=g.next();!n.done;n=g.next())m=n.value,m.contentType&&(l=!0,b.canPlayType(m.contentType,
253
+ this.a)&&(h.push(m),e=!0));l||(e=b.canPlayType(_.Se,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.he||a||(e=!1);if(e){this.f=f;return}}b=zb;if(c===_.Sd||c===_.Tc)b="None of the requested configurations were supported.";c=Error(b);c.name=cb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};Po=function(a,b){this.g=a;this.o=b;this.a=null;this.f=new _.dg;this.j=[];this.m=new Map};
254
+ So=function(a,b){a.a=b;_.gg(a.f);b&&(a.f.on(b,a.g+"needkey",function(c){var d=new Event(fd);d.initDataType=_.Cc;d.initData=th(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.g+"keymessage",function(c){var d=Qo(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.J(Ad,{messageType:e?sd:rd,message:c.message});_.Sf("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.Tf("Session not found",c.sessionId)}),a.f.on(b,a.g+"keyadded",function(c){if(c=
255
+ Qo(a,c.sessionId))_.Sf("WebkitEmeManager.MediaKeySession.ready"),Ro(c,"usable"),c.a&&c.a.resolve(),c.a=null}),a.f.on(b,a.g+"keyerror",function(c){var d=Qo(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?Ro(d,_.Td):1===e?Ro(d,"expired"):
256
+ Ro(d,_.od))}}))};Qo=function(a,b){var c=a.m.get(b);return c?c:(c=a.j.shift())?(c.sessionId=b,a.m.set(b,c),c):null};To=function(a,b,c,d){_.ak.call(this);this.w=a;this.j=b;this.o=!1;this.a=this.f=null;this.g=c;this.m=d;this.sessionId="";this.expiration=NaN;this.closed=new _.ci;this.keyStatuses=new Co};
257
+ Vo=function(a,b,c){if(a.o)return Promise.reject(Error("The session is already initialized."));a.o=!0;try{if(a.m===_.Wd)if(c)var d=_.N(_.zh("LOAD_SESSION|"+c));else{var e=_.zh("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.N(b),e.byteLength);d=f}else d=_.N(b)}catch(h){return Promise.reject(h)}a.f=new _.ci;var g=Uo(a,"generateKeyRequest");try{a.j[g](a.g,d)}catch(h){if(h.name!==Ra)return a.f=null,Promise.reject(h);(new _.$i(function(){try{a.j[g](a.g,d)}catch(l){a.f.reject(l),
258
+ a.f=null}})).$(.01)}return a.f};Wo=function(a,b,c){if(a.a)a.a.then(function(){return Wo(a,b,c)})["catch"](function(){return Wo(a,b,c)});else{a.a=b;if(a.g===$e){var d=_.vh(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=_.Mh(e.keys[0].k);e=_.Mh(e.keys[0].kid)}else d=_.N(c),e=null;var f=Uo(a,"addKey");try{a.j[f](a.g,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};Ro=function(a,b){Do(a.keyStatuses,b);a.dispatchEvent(new _.J(pd))};
259
+ Uo=function(a,b){return a.w?a.w+b.charAt(0).toUpperCase()+b.slice(1):b};Xo=function(){};
260
+ Yo=function(a,b,c,d,e){_.Ak.call(this,Pa);this.m=a;this.j=b;this.g=c;this.a=d;this.o=e;this.h=new _.H(Kc);_.Fh(this.m)?this.h.warn(_.Eb):this.Oa(_.Tc,{licenseUrl:this.m,videoRobustness:[_.nb,void 0],audioRobustness:[_.mb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.sd.bind(this)}});_.Fh(this.j)?this.h.warn(_.db):this.Oa(_.Sc,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.sd.bind(this)}});
261
+ _.Fh(this.g)?this.h.warn(_.Ha):_.Fh(this.a)?this.h.warn(_.Ga):this.Oa(_.Rc,{licenseUrl:this.g,certificateUrl:this.a,modifiers:{licenseRequest:this.Ag.bind(this),licenseResponse:this.Bg.bind(this),certificateRequest:this.sd.bind(this),extractContentId:this.Zf.bind(this)}})};Zo=function(){this.l=null};$o=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.kd)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
262
+ ap=function(a){a=a.target;if(a.webkitPresentationMode===Xd){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)};bp=function(){return this.webkitSupportsPresentationMode(Xd)?(this.webkitSetPresentationMode(Xd),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
263
+ cp=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};dp=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};ep=function(a,b,c){return new window.TextTrackCue(a,b,c)};
264
+ fp=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};hp=function(a,b,c){if("input"===a)switch(this.type){case "range":a=Fc}gp.call(this,a,b,c)};jp=function(){this.a=ip()};kp=function(a){return ip()-a.a};lp=function(a){var b=new jp;b.a=a.a;return b};ip=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.mp=function(a){var b=[];a=_.u(a);for(var c=a.next();!c.done;c=a.next()){c=_.u(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};
265
+ np=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.g=b;this.f=0};op=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.g),c));a.a.set(d)}a.a.set(b,a.f);a.f+=b.byteLength};_.pp=function(a,b,c){this.f=a;this.j=b;this.g=c||this.f.getMedia();this.a=null};_.rp=function(){this.a=new Blob([qp],{type:_.Se})};
266
+ _.tp=function(a,b,c,d){var e,f;return _.B(function(g){if(1==g.a)return _.zf(g,2),_.x(g,sp(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.Bf(g);f.a(_.M);throw f;})};
267
+ sp=function(a,b,c,d){var e,f,g,h;return _.B(function(l){if(1==l.a){if(d){if(e=_.up[d.toLowerCase()])return l["return"](e);_.F("Could not determine manifest type using MIME type ",d)}if(f=_.vp(a)){if(g=_.wp[f])return l["return"](g);_.F("Could not determine manifest type for extension ",f)}else _.F("Could not find extension for ",a);return d?l.G(2):_.x(l,xp(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(h=_.up[d])return l["return"](h);_.F("Could not determine manifest type using MIME type",d)}throw new _.L(_.M,4,
268
+ 4E3,{url:a});})};xp=function(a,b,c){var d,e,f;return _.B(function(g){if(1==g.a)return d=_.Yh(a),Wh(d,c),d.type=1,d.method="HEAD",_.x(g,b.fetch(d).P,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.vp=function(a){a=(new _.Kg(a)).za.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()};yp=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.g=new jp};
269
+ Ap=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(zp(a,d),ai(c,d.byteLength,kp(a.g)),a.g.a=ip());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 Ap(a,b,c)})})};zp=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};
270
+ mi=function(a){var b=a.uris[a.uriIndex],c=new Bp,d=new jp,e=lp(d),f=0,g,h=new _.ci;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=kp(e));p.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!l&&(p=p.getResponseHeader(sa),$h(a,p),l=!0)};c.onload=function(p){p=p.target;var q=(p.getAllResponseHeaders()||"").trim().split("\r\n"),r={};
271
+ q=_.u(q);for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),r[v[0].toLowerCase()]=v.slice(1).join(": ");try{var y=kp(e);m||ai(a,p.response?p.response.length:0,y);var A=_.Zh(r,p.response,p.status,b,p.responseURL,a,y,g);a.rateLimitBps?bi(a.rateLimitBps,kp(e),a.bytesLoaded).then(function(){h.resolve(A)}):h.resolve(A)}catch(E){h.reject(E)}};c.onerror=function(p){p=p.target;if(0>=p.status)h.reject(new _.L(1,1,1002,{url:b,request:a,status:p.status}));else{var q=p.getAllResponseHeaders(),r={};if(q){q=
272
+ _.u(q.trim().split("\r\n"));for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),r[v[0].toLowerCase()]=v.slice(1).join(": ")}p=_.Zh(r,p.response,p.status,b,p.responseURL,a,kp(e),g);h.resolve(p)}};c.ontimeout=function(){h.reject(new _.L(1,1,1003,{url:b,request:a}))};c.onprogress=function(p){var q=kp(d);d.a=ip();if(100<q||p.lengthComputable&&p.loaded===p.total)ai(a,p.loaded-f,q),f=p.loaded,m=!0};for(var n in a.headers)c.setRequestHeader(n.toLowerCase(),a.headers[n]);c.send(a.body);return{P:h,
273
+ request:a,abort:function(){c.abort();h.reject(new _.L(1,1,7001,{url:b,request:a}));return Promise.resolve()}}};Cp=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.j=new np(a);this.length=a;this.A=b;this.f=this.a=this.g=0;this.m=null;this.o=-1;this.w=new jp};
274
+ Fp=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,kp(a.w)),a.w.a=ip());if(f)return f=Dp(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){op(a.j,e);a.a=a.g;a.f=a.j.f;a.m=new DataView(a.j.a.buffer,0,a.j.f);e=Ep(a);for(f=[];e;)f.push(e),e=Ep(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],
275
+ 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 Fp(a,b,c,d)})})};Ep=function(a){if(0<=a.o&&a.f<a.o)return null;for(var b=Gp(a);null!==b;){if(b.name===_.yd){var c={start:a.g,end:b.end,length:b.end-a.g,data:new DataView(a.j.a.buffer,a.g,b.end-a.g),count:1};a.g=b.end;return c}b=Gp(a)}return null};
276
+ Gp=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=Hp(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=Hp(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.m.getUint32(a.a,!1);var f=a.m.getUint32(a.a+4,!1)}catch(g){throw new _.L(_.M,3,3E3);}if(2097151<e)throw new _.L(_.M,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};
277
+ Hp=function(a){var b=a.m.getUint32(a.a,!1);a.a+=4;return b};Dp=function(a){var b=null;a.g!==a.f&&(b={start:a.g,end:a.f,length:a.f-a.g,data:new DataView(a.j.a.buffer,a.g,a.f-a.g),count:-1});return b};Jp=function(a){_.di.call(this,new _.ci,function(){return Promise.resolve()});this.B=a;this.g=null;this.w=this.P;this.f=-1;this.j=this.m=this.o=null;Ip(this)};Kp=function(a,b,c){a.o=setTimeout(b,c)};
278
+ Ip=function(a){a.g=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=Lp(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*Lp(e.request.fuzzFactor,.5));a.f*=Lp(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.m=h;Kp(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.L(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
279
+ return e.plugin(e.request)});var b=0,c=0,d=0;return a.g.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.P}).then(function(e){a.w.resolve(e)})["catch"](function(e){if(e instanceof _.L){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return Ip(a);g&&e.a(_.M);a.w.reject(e)}else a.w.reject(e)})};Lp=function(a,b){return null===a||void 0===a?b:a};
280
+ ni=function(a){var b=new Mp,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new Np,e={$c:!1,bh:!1};b={P:Op(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.$c||(e.$c=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.bh=!0;d.abort()},a);b.P=b.P["finally"](function(){window.clearTimeout(f)})}return b};
281
+ Op=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,r,v,y,A,E,G,D;return _.B(function(I){switch(I.a){case 1:return e=Pp,l=new jp,m=lp(l),_.zf(I,2),_.x(I,e(a,c),4);case 4:f=I.f;h=kp(l);n=f.headers.get(sa);$h(b,n);p=n?parseInt(n,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return v=f.body.getReader(),y=new Cp(p,!b.disableMergedFragments),A=function(ja,S){if(d.$c)return null;S&&S.data&&(ai(b,S.data.byteLength,kp(l)),l.a=ip());return b.onFragment&&S?b.rateLimitBps?bi(b.rateLimitBps,kp(m),b.bytesLoaded).then(function(){return b.onFragment(S)}):
282
+ b.onFragment(S):null},_.x(I,Fp(y,v,A,b.onProgress),10);q=f.body.getReader();r=new yp(p);return _.x(I,Ap(r,q,b),7);case 7:g=I.f;if(!b.rateLimitBps){I.G(6);break}return _.x(I,bi(b.rateLimitBps,kp(m),g.byteLength),6);case 10:g=I.f;case 6:_.Af(I,3);break;case 2:E=_.Bf(I);if(d.$c)throw new _.L(1,1,7001,{url:a,request:b});if(d.bh)throw new _.L(1,1,1003,{url:a,request:b});_.Tf("Error while fetching data:",E);throw new _.L(1,1,1002,{url:a,error:E,request:b,status:-1},E);case 3:G={};D=f.headers;D.forEach(function(ja,
283
+ S){G[S.trim()]=ja});if(d.$c)throw new _.L(1,1,7001,{url:a,request:b});return I["return"](_.Zh(G,g,f.status,a,f.url,b,kp(m),h))}})};ii=function(a){try{var b=a.uris[a.uriIndex],c=_.Qp(b);return{P:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{P:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
284
+ _.Qp=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Tf("Bad data URI, failed to parse scheme"),new _.L(_.M,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Tf("Bad data URI, failed to extract encoding and MIME type"),new _.L(_.M,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?_.Mh(a).buffer:_.zh(a).buffer,contentType:c}};_.Sp=function(a){delete _.Rp[a]};
285
+ _.Tp=function(a){a=a.getConfiguration();a=_.K.Qa(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.ue?a.backgroundColor:null;this.V=typeof a.windowColor===_.ue?a.windowColor:null;this.O=typeof a.fontColor===_.ue?a.fontColor:null;this.S=typeof a.fontFamily===_.ue?a.fontFamily:null;this.I=typeof a.fontSize===_.ue?a.fontSize:null;this.B=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.H=typeof a.edgeColor===_.ue?a.edgeColor:"rgba(0, 0, 0, 1)";this.o=null;typeof a.edgeType===
286
+ _.ue&&(this.o=a.edgeType)};_.Yp=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case Up:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case Vp:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case Wp:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case Xp:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.Jd}};Zp=function(a){this.f=a;this.a=null;this.h=new _.H("clpp.text.Mp4TextParser")};
287
+ _.aq=function(a){_.Tp.call(this,a);this.m=a.getSurface().getMedia();this.f="clpp-video-"+$p++;this.g=document.createElement(_.we);this.j=this.w=!1;_.yn(this.m,this.f);document.head.appendChild(this.g);this.qb()};bq=function(){};_.cq=function(){};nf=typeof Object.create==_.kd?Object.create:function(a){function b(){}b.prototype=a;return new b};
288
+ if(typeof Object.setPrototypeOf==_.kd)dq=Object.setPrototypeOf;else{var eq;a:{var fq={kh:!0},gq={};try{gq.__proto__=fq;eq=gq.kh;break a}catch(a){}eq=!1}dq=eq?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
289
+ var of=dq,sf=typeof Object.defineProperties==_.kd?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},qf="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;tf.prototype.toString=function(){return this.a};var rf=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new tf("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
290
+ wf.prototype.A=function(a){this.f=a};wf.prototype["return"]=function(a){this.g={"return":a};this.a=this.m};wf.prototype.G=function(a){this.a=a};
291
+ If("Promise",function(a){function b(g){this.f=0;this.m=void 0;this.a=[];var h=this.g();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.g(function(){h.m()})}this.a.push(g)};var e=qf.setTimeout;c.prototype.g=function(g){e(g,0)};c.prototype.m=function(){for(;this.a&&this.a.length;){var g=this.a;this.a=[];for(var h=0;h<g.length;++h){var l=
292
+ g[h];g[h]=null;try{l()}catch(m){this.j(m)}}}this.a=null};c.prototype.j=function(g){this.g(function(){throw g;})};b.prototype.g=function(){function g(m){return function(n){l||(l=!0,m.call(h,n))}}var h=this,l=!1;return{resolve:g(this.D),reject:g(this.j)}};b.prototype.D=function(g){if(g===this)this.j(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.F(g);else{a:switch(typeof g){case _.Kd:var h=null!=g;break a;case _.kd:h=!0;break a;default:h=!1}h?this.B(g):this.o(g)}};
293
+ b.prototype.B=function(g){var h=void 0;try{h=g.then}catch(l){this.j(l);return}typeof h==_.kd?this.H(h,g):this.o(g)};b.prototype.j=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.m=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.F=function(g){var h=this.g();
294
+ g.Ed(h.resolve,h.reject)};b.prototype.H=function(g,h){var l=this.g();try{g.call(h,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,h){function l(q,r){return typeof q==_.kd?function(v){try{m(q(v))}catch(y){n(y)}}:r}var m,n,p=new b(function(q,r){m=q;n=r});this.Ed(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.Ed=function(g,h){function l(){switch(m.f){case 1:g(m.m);break;case 2:h(m.m);break;default:throw Error("Unexpected state: "+
295
+ 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=_.u(g),n=m.next();!n.done;n=m.next())d(n.value).Ed(h,l)})};b.all=function(g){var h=_.u(g),l=h.next();return l.done?d([]):new b(function(m,n){function p(v){return function(y){q[v]=y;r--;0==r&&m(q)}}var q=[],r=0;do q.push(void 0),r++,d(l.value).Ed(p(q.length-1),n),l=h.next();while(!l.done)})};return b});var Kf=this||self;
296
+ Kf.a=!0;_.K={ih:20,Qa:function(a){var b=_.K.R,c=_.K.og,d=_.K.ua;return b(a)||c(a)?a:d(a)}};_.C("clpp.utils.obj.cloneItem",_.K.Qa);_.K.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=_.K.rg(c,{merging:b[d]},1));return c.merging||null};_.C("clpp.utils.obj.merge",_.K.ua);
297
+ _.K.rg=function(a,b,c){var d=_.K.R,e=_.K.og,f=_.K.rg,g=_.K.lb,h=_.K.Bj,l=_.K.ng,m=_.K.xj,n=_.K.Nc;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<_.K.ih&&(a[p]=f(a[p],n,c));return a};_.K.og=function(a){a=typeof a;return a===_.ue||a===_.k||a===_.uc};_.K.xj=function(a){return a instanceof Element};_.K.R=function(a){return null===a||"undefined"===typeof a};_.K.Nc=function(a){return typeof a===_.Kd};
298
+ _.K.lb=function(a){return typeof a===_.kd};_.K.Z=function(a){return typeof a===_.ue};_.K.la=function(a){return typeof a===_.k};_.K.lg=function(a){return typeof a===_.uc};_.K.ng=function(a){var b=_.K.Nc,c=_.K.R;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.K.Bj=function(a){var b=_.K.Nc,c=_.K.lb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
299
+ _.K.ya=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||!_.K.Nc(a)||!_.K.Nc(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var h=e[g];if(_.K.R(d)||0>d.indexOf(h))if(f[h]=!0,a[h]!==b[h])return!1}if(_.K.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.K.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
300
+ _.K.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.K.yj=function(a,b,c){return a>=b&&a<=c};_.K.Af=function(a){for(var b=new Map,c=_.u(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.K.Bf=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};var Of={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.C("clpp.log.Level",Of);var Mf=3,Lf={},hq=[];_.C("clpp.log.getLoggers",function(){return _.K.Qa(Lf)});_.C("clpp.log.addInterceptor",function(a){a&&hq.push(a)});_.C("clpp.log.removeInterceptor",function(a){a&&(a=hq.indexOf(a),0<=a&&hq.splice(a,1))});_.C("clpp.log.getTagLevel",Nf);_.C("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Lf[a]});_.C("clpp.log.setTagLevel",function(a,b){a&&(_.K.Z(b)&&(b=Pf(b)),Lf[a]=b)});
301
+ _.C("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.K.Z(a)&&(a=Pf(a));Mf=a});_.C("clpp.log.getLogLevel",function(){return Mf});_.t=_.H.prototype;
302
+ _.t.log=function(a,b){if(window.console){if(1<arguments.length){var c=arguments[0];Array.prototype.shift.call(arguments)}else c=3;var d=Nf(this.a);if(0<=d){if(d<c)return}else if(Mf<c)return;this.a&&Array.prototype.unshift.call(arguments,"["+this.a+"]");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):
303
+ 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.u(hq);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.t.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.t.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.t.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
304
+ _.t.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.t.Li=function(a){return a?this.a?new _.H(this.a+"."+a):new _.H(a):this};_.C("clpp.log.Logger",_.H);_.H.prototype.createChild=_.H.prototype.Li;_.H.prototype.error=_.H.prototype.error;_.H.prototype.warn=_.H.prototype.warn;_.H.prototype.debug=_.H.prototype.debug;_.H.prototype.info=_.H.prototype.info;_.H.prototype.log=_.H.prototype.log;var Qf=new _.H("clpp");_.C("clpp.log.info",_.Rf);
305
+ _.C("clpp.log.debug",_.Sf);_.C("clpp.log.warn",_.F);_.C("clpp.log.error",_.Tf);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.Xf=new _.H("clpp.players");_.Wf={};_.Zf.prototype.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.Zf.prototype.get=function(a){return(a=this.a[a])?a.slice():[]};_.Zf.prototype.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};_.Zf.prototype.clear=function(){this.a={}};$f.prototype.Wb=function(a){try{this.Bc.handleEvent?this.Bc.handleEvent(a):this.Bc.call(this.a,a)}catch(b){_.Tf("clpp","Uncaught exception in event handler for event '"+this.f+"'",b,b?b.message:null,b?b.stack:null)}};_.J.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.J.prototype.stopImmediatePropagation=function(){this.f=!0};_.J.prototype.stopPropagation=function(){};_.t=cg.prototype;
306
+ _.t.trigger=function(a){var b=this.a.get(a.type);if(b)for(var c=0;c<b.length&&(a.target=this.f,a.currentTarget=this.f,b[c].Wb(a),b[c].Tk&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.t.on=function(a,b,c){this.a.push(a,new $f(a,b,c||this.f));return b};_.t.one=function(a,b,c){this.a.push(a,new $f(a,b,c||this.f,!0));return b};_.t.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].Bc===b&&(d=this.a.remove(a,c[e])||d);return d};_.t.clear=function(){this.a.clear()};_.dg.prototype.release=function(){_.gg(this)};_.dg.prototype.on=function(a,b,c,d){a=new hg(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.dg.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)};_.dg.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||(fg(f),this.a.remove(b,f))}};ig.prototype.release=function(){this.f.release();this.g=[];this.a=null};ig.prototype.destroy=function(){var a=this;return _.B(function(b){a.release();a.m=null;a.j=null;_.z(b)})};ig.prototype.getTimelineCues=function(){return this.g};_.C("clpp.text.Cue",_.yg);_.yg.positionAlign={LEFT:_.td,RIGHT:_.ud,CENTER:_.Dc,AUTO:"auto"};_.sg=_.Be;_.yg.payloadType={TEXT:_.sg,VTT_XML:_.Xe,TTML_XML:_.Ge};_.tg=_.Dc;_.iq={LEFT:_.qd,RIGHT:_.je,CENTER:_.tg,START:_.qd,END:_.je};_.yg.textAlign=_.iq;var xg="ltr";_.yg.direction={HORIZONTAL_LEFT_TO_RIGHT:xg,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.ug="horizontal-tb";_.yg.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.ug,VERTICAL_LEFT_TO_RIGHT:_.Oe,VERTICAL_RIGHT_TO_LEFT:_.Pe};_.vg=0;
307
+ _.yg.lineInterpretation={LINE_NUMBER:_.vg,PERCENTAGE:1};_.wg=_.pe;_.jq={CENTER:_.Dc,START:_.wg,END:_.gd};_.yg.lineAlign=_.jq;_.C("clpp.text.CueRegion",_.Bg);_.zg=1;_.Bg.units={PX:0,PERCENTAGE:_.zg,LINES:2};var Ag="";_.Bg.scrollMode={NONE:Ag,UP:"up"};_.Bg.displayAlign={BEFORE:"flex-end",CENTER:_.Dc,AFTER:"flex-start"};_.Bg.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Pc,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};Cg.prototype.destroy=function(){this.a.release();this.j=!1;this.m=this.a=this.g=this.f=null;return Promise.resolve()};Cg.prototype.start=function(a){var b=this;this.j?this.h.warn("Already started. Ignoring request..."):(this.j=!0,this.g=a,this.f=this.g.textTracks,this.a.on(this.f,_.Xb,function(c){return Dg(b,c)}),this.a.on(this.f,Fc,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.me&&(e.mode=_.md)}}))};
308
+ Cg.prototype.o=function(a){var b=new _.yg(a.startTime,a.endTime,a.text,_.Xe);if(_.K.Z(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Oe;break;case "rl":b.writingMode=_.Pe}_.K.la(a.size)&&(b.size=a.size);if(_.K.Z(a.align))switch(a.align){case _.qd:case _.pe:b.textAlign=_.qd;break;case _.Dc:b.textAlign=_.tg;break;case _.je:case _.gd:b.textAlign=_.je}_.K.la(a.position)&&(b.position=a.position);if(_.K.Z(a.positionAlign))switch(a.positionAlign){case _.td:b.positionAlign=_.td;break;case _.Dc:b.positionAlign=
309
+ _.Dc;break;case _.ud:b.positionAlign=_.ud}_.K.la(a.line)&&(b.line=a.line);if(_.K.Z(a.lineAlign))switch(a.lineAlign){case _.pe:b.lineAlign=_.wg;break;case _.Dc:b.lineAlign=_.Dc;break;case _.gd:b.lineAlign=_.gd}_.K.lg(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.vg:1);return b};var Pg=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.t=_.Kg.prototype;_.t.$a="";_.t.mc="";_.t.Ra="";_.t.Rc=null;_.t.za="";_.t.bc="";_.t.toString=function(){var a=[],b=this.$a;b&&a.push(Sg(b,kq,!0),":");if(b=this.Ra){a.push("//");var c=this.mc;c&&a.push(Sg(c,kq,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Rc;null!=b&&a.push(":",String(b))}if(b=this.za)this.Ra&&"/"!=b.charAt(0)&&a.push("/"),a.push(Sg(b,"/"==b.charAt(0)?lq:mq,!0));(b=this.a.toString())&&a.push("?",b);(b=this.bc)&&a.push("#",Sg(b,nq));return a.join("")};
310
+ _.t.resolve=function(a){var b=new _.Kg(this);"data"===b.$a&&(b=new _.Kg);var c=!!a.$a;c?Lg(b,a.$a):c=!!a.mc;c?b.mc=a.mc:c=!!a.Ra;c?b.Ra=a.Ra:c=null!=a.Rc;var d=a.za;if(c)Mg(b,a.Rc);else if(c=!!a.za){if("/"!=d.charAt(0))if(this.Ra&&!this.za)d="/"+d;else{var e=b.za.lastIndexOf("/");-1!=e&&(d=b.za.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(""):
311
+ ".."==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.za=d:c=""!==a.a.toString();c?_.Ng(b,Og(a.a)):c=!!a.bc;c&&(b.bc=a.bc);return b};var kq=/[#\/\?@]/g,mq=/[#\?:]/g,lq=/[#\?]/g,Tg=/[#\?@]/g,nq=/#/g;Rg.prototype.a=null;Rg.prototype.g=null;Rg.prototype.add=function(a,b){_.Vg(this);this.f=null;var c=this.a.hasOwnProperty(a)&&this.a[a];c||(this.a[a]=c=[]);c.push(b);null!==this.g&&this.g++;return this};
312
+ Rg.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")};_.mn={VIDEO:_.Qe,AUDIO:_.kc,TEXT:_.Be,nl:_.bc,IMAGE:_.nd,yl:_.xe};_.oq=1/15;var Wg={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.Zg={text:{mp4:ec,m4s:ec,m4i:ec,cmft:ec,vtt:_.Ce,ttml:_.hc},video:{mp4:_.Se,m4s:_.Se,m4i:_.Se,m4v:_.Se,cmfv:_.Se,ts:_.Re},audio:{mp4:_.qc,m4s:_.qc,m4i:_.qc,m4a:_.qc,cmfa:_.qc,ts:_.Re,aac:_.lc,ec3:_.oc,ac3:_.mc},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.w(_.L,Error);_.L.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=bh(this.severity,this.category,this.code,this.data))};_.L.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.C("clpp.Error",_.L);_.M=2;_.L.Severity={RECOVERABLE:1,FATAL:_.M};_.L.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
314
313
  _.L.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,
315
314
  TEXT_PARSER_MISSING:2012,THUMBNAILS_FAILED_TO_LOAD:2013,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,
316
315
  MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,MP4_PARSER_ERROR:3019,MEDIA_LOAD_ERROR:3100,INVALID_TRACK_TYPE:3101,UNKNOWN_TRACK:3102,MEDIA_DECRYPTION_ERROR:3103,PLAY_NOT_ALLOWED:3200,UNABLE_TO_GUESS_MANIFEST_TYPE:4E3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,
@@ -319,64 +318,64 @@ DASH_XLINK_DEPTH_LIMIT:4028,HLS_COULD_NOT_PARSE_SEGMENT_START_TIME:4030,CONTENT_
319
318
  HLS_DISCONTINUITY_NOT_SUPPORTED:4045,HLS_UNSUPPORTED_FEATURE:4046,INVALID_STREAMS_CHOSEN:5005,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,
320
319
  INIT_DATA_TRANSFORM_ERROR:6016,CERTIFICATE_REQUEST_FAILED:6100,NO_CONTENT_ID:6101,SERVER_CERTIFICATE_REQUIRED:6102,EXTRACT_CONTENT_ID_MODIFIER_ERROR:6103,FAILED_TO_PERSIST_SESSION:6200,FAILED_TO_REMOVE_SESSION:6201,INVALID_SESSION_STORAGE_IMPLEMENTATION:6202,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,CANNOT_LOAD_SOURCE:7003,MEDIA_ELEMENT_NOT_FOUND:7004,INVALID_MEDIA_ELEMENT:7005,INVALID_CONTAINER_ELEMENT:7006,INVALID_CONFIGURATION:7100,INVALID_LICENSE:7101,NO_ELEMENT:7102,USER_ID_NOT_PROVIDED:7103,
321
320
  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,
322
- MUX_SDK_MISSING:9301,MUXDATA_INIT_ERROR:9302,IMA_SDK_MISSING:1E4,IMA_INVALID_CONFIGURATION:10001,IMA_UNSUPPORTED_PLATFORM:10002,AD_ERROR:10003,BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3};_.dh.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};_.dh.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name==a});return b.length?b[0]:null};var ih=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",
323
- "cs"],["dan","da"],["deu","de"],[_.$c,"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",
321
+ MUX_SDK_MISSING:9301,MUXDATA_INIT_ERROR:9302,IMA_SDK_MISSING:1E4,IMA_INVALID_CONFIGURATION:10001,IMA_UNSUPPORTED_PLATFORM:10002,AD_ERROR:10003,BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3};_.ch.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};_.ch.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name==a});return b.length?b[0]:null};var hh=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",
322
+ "cs"],["dan","da"],["deu","de"],[_.Zc,"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",
324
323
  "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",
325
324
  "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",
326
325
  "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",
327
- "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var nh=function Aq(a){var c;return _.If(Aq,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.x(d,c,3):d.G(0);c++;return d.G(2)})};_.C("clpp.utils.BufferUtils",kh);kh.toArrayBuffer=uh;kh.toDataView=_.th;kh.toInt32Array=_.sh;kh.toUint32Array=rh;kh.toUint16Array=qh;kh.toUint8Array=_.N;kh.equal=oh;var xh=new _.H("clpp.utils.strings");_.C("clpp.utils.strings.fromUtf8",_.wh);_.C("clpp.utils.strings.fromBytesAutoDetect",_.zh);_.C("clpp.utils.strings.toUtf8",_.Ah);_.C("clpp.utils.strings.toUtf16",_.Bh);_.C("clpp.utils.strings.toByteArray",_.Ch);_.C("clpp.utils.strings.startsWith",_.Dh);_.C("clpp.utils.strings.endsWith",_.Eh);_.C("clpp.utils.strings.bitrateToString",_.Hh);
326
+ "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var lh=function pq(a){var c;return _.Hf(pq,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.x(d,c,3):d.G(0);c++;return d.G(2)})};_.C("clpp.utils.BufferUtils",jh);jh.toArrayBuffer=th;jh.toDataView=_.sh;jh.toInt32Array=_.rh;jh.toUint32Array=qh;jh.toUint16Array=ph;jh.toUint8Array=_.N;jh.equal=mh;var wh=new _.H("clpp.utils.strings");_.C("clpp.utils.strings.fromUtf8",_.vh);_.C("clpp.utils.strings.fromBytesAutoDetect",_.yh);_.C("clpp.utils.strings.toUtf8",_.zh);_.C("clpp.utils.strings.toUtf16",_.Ah);_.C("clpp.utils.strings.toByteArray",_.Bh);_.C("clpp.utils.strings.startsWith",_.Ch);_.C("clpp.utils.strings.endsWith",_.Dh);_.C("clpp.utils.strings.bitrateToString",_.Gh);
328
327
  _.C("clpp.utils.strings.durationToString",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)))});
329
- _.C("clpp.utils.strings.hashCode",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});var Ih=document.createElement("span");_.C("clpp.utils.Uint8ArrayUtils",_.Kh);_.Kh.toStandardBase64=_.Lh;_.Kh.concat=_.Rh;_.Kh.equal=_.Qh;_.Kh.toHex=_.Ph;_.Kh.fromHex=_.Oh;_.Kh.fromBase64=_.Nh;_.Kh.toBase64Url=_.Mh;var Vh=[403,401];_.C("clpp.net.DEFAULT_FATAL_STATUS_CODES",Vh);_.C("clpp.net.makeRequest",_.Zh);_.Yh=6;_.C("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.Yh});_.di.prototype.resolve=function(){};_.di.prototype.reject=function(){};_.ei.prototype.abort=function(){this.a=!0;return this.A()};_.ei.prototype.Ed=function(a,b){function c(){e.reject(new _.L(_.M,7,7001));return d.abort()}var d=this,e=new _.di;this.O.then(function(f){d.a?e.reject(new _.L(_.M,7,7001)):a?c=gi(a,f,e):e.resolve(f)},function(f){b?c=gi(b,f,e):e.reject(f)});return new _.ei(e,function(){return c()})};_.ei.aborted=function(){var a=Promise.reject(new _.L(_.M,7,7001));a["catch"](function(){});return new _.ei(a,function(){return Promise.resolve()})};
330
- _.ei.prototype.chain=_.ei.prototype.Ed;_.hi.prototype.destroy=function(){for(var a=[],b=_.u(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.O["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.t=_.pi.prototype;_.t.Vk=function(a){0<a?_.G("Rate limit set to "+a+"bps"):_.G("Rate limit disabled");this.j=a};_.t.release=function(){return this.m.destroy()};_.t.destroy=function(){this.o=!0;this.f=[];this.g=[];return this.m.destroy()};_.t.lh=function(a){this.f.push(a)};_.t.ne=function(a){this.g.push(a)};_.t.Ok=function(a){this.f=this.f.filter(function(b){return b!==a})};_.t.hf=function(a){this.g=this.g.filter(function(b){return b!==a})};
331
- _.t.fetch=function(a){var b=this;if(this.o)return new Up(Promise.reject(new _.L(1,1,7001,{url:a.uris[a.uriIndex],request:a})));this.j&&0<this.j&&(a.rateLimitBps=this.j);for(var c=[],d=_.u(this.f),e=d.next();!e.done;e=d.next())c.push(e.value);if(a.requestModifiers)for(d=_.u(a.requestModifiers),e=d.next();!e.done;e=d.next())c.push(e.value);a.requestModifiers=c;c=[];d=_.u(this.g);for(e=d.next();!e.done;e=d.next())c.push(e.value);if(a.responseModifiers)for(d=_.u(a.responseModifiers),e=d.next();!e.done;e=
332
- d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.di;try{var f={},g=_.u(a.requestModifiers);for(e=g.next();!e.done;f={ge:f.ge},e=g.next())f.ge=e.value,d=d.then(function(m){return function(n){if(h.a)throw new _.L(_.M,1,7001,n?{url:n.uris[n.uriIndex],request:n}:null);return m.ge(n)||n}}(f))["catch"](function(m){if(m instanceof _.L)throw m;throw new _.L(_.M,1,1006,null,m);});d=d.then(function(m){var n=new _.Lg(m.uris[m.uriIndex]),p=n.ab;p||(p=location.protocol,p=p.slice(0,-1),Mg(n,p),m.uris[m.uriIndex]=
333
- n.toString());p=b.a[p];if(!p)throw new _.L(_.M,1,1E3,{url:n.toString()});return{request:m,plugin:p}});var h=new Up(d);g={};var l=_.u(a.responseModifiers);for(e=l.next();!e.done;g={zd:g.zd},e=l.next())g.zd=e.value,h.then(function(m){return function(n){function p(){if(h.a)throw new _.L(_.M,1,7001,n?{url:n.request.uris[n.request.uriIndex],request:n.request}:null);}p();var q=m.zd(n)||n;p();return q}}(g))["catch"](function(m){return function(n){if(n instanceof _.L&&n.data&&n.data.response){var p=m.zd(n.data.response);
334
- if(p)return p.then(function(){return Promise.reject(n)})}return Promise.reject(n)}}(g))["catch"](function(m){if(m instanceof _.L)throw m;throw new _.L(_.M,1,1007,null,m);});_.ii(this.m,h);c.resolve(a);return h}catch(m){return new Up(Promise.reject(m))}};_.C("clpp.net.NetworkEngine",_.pi);_.pi.prototype.fetch=_.pi.prototype.fetch;_.pi.prototype.removeResponseModifier=_.pi.prototype.hf;_.pi.prototype.removeRequestModifier=_.pi.prototype.Ok;_.pi.prototype.addResponseModifier=_.pi.prototype.ne;
335
- _.pi.prototype.addRequestModifier=_.pi.prototype.lh;_.pi.prototype.setRateLimit=_.pi.prototype.Vk;var vi;_.si.prototype.xa=function(a){return this.type===a.type&&this.channelsCount===a.channelsCount&&this.frameRate===a.frameRate&&this.kind===a.kind&&this.label===a.label&&this.language===a.language&&this.mimeType===a.mimeType&&Ig(this.roles,a.roles)&&Ig(this.accessibility,a.accessibility,zi)};_.si.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.C("clpp.Track",_.si);_.si.prototype.toString=_.si.prototype.toString;
336
- _.C("clpp.Rendition",_.Ai);_.xi=1;_.ui=_.Re;_.Q=_.lc;_.O=_.Ce;vi=_.Cd;_.Bq={VIDEO:_.ui,AUDIO:_.Q,TEXT:_.O,METADATA:vi};_.si.Type=_.Bq;_.C("clpp.utils.url.queryString",_.Di);Gi.prototype.g=function(a,b){var c=this,d,e,f,g,h,l,m;return _.B(function(n){switch(n.a){case 1:return d=null,_.Af(n,2),_.x(n,Mi(c,a),4);case 4:d=n.f;_.Bf(n,3);break;case 2:return e=_.Cf(n),c.h.warn("Failed to fetch playlist in order metadata from HLS playlist.",e.message),n["return"](Promise.resolve({}));case 3:f={};_.Af(n,5);if(!b.enableHlsVideoTrackInfo){n.G(7);break}return _.x(n,Ji(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.Bf(n,6);break;case 5:h=_.Cf(n),c.h.warn("Failed to parse video metadata from HLS playlist.",
337
- h.message);case 6:return _.Af(n,9),_.x(n,Li(d),11);case 11:l=n.f;f.Nc=l;_.Bf(n,10);break;case 9:m=_.Cf(n),c.h.warn("Failed to parse metadata from HLS playlist.",m.message);case 10:return n["return"](f)}})};_.Vi=[];_.t=_.R.prototype;_.t.re=function(){return!0};_.t.Vi=function(a){return this.getVideoTracks().find(function(b){return _.K.xa(b,a,a&&Object.keys(a))})};_.t.Ri=function(a){return this.getAudioTracks().find(function(b){return _.K.xa(b,a,a&&Object.keys(a))})};_.t.Ti=function(a){return this.ia().find(function(b){return _.K.xa(b,a,a&&Object.keys(a))})};_.t.Ui=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.K.xa(b,a,a&&Object.keys(a))})};
338
- _.t.Qi=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.K.xa(b,a,a&&Object.keys(a))})};_.t.Si=function(a){return this.ia().flatMap(function(b){return b.renditions}).find(function(b){return _.K.xa(b,a,a&&Object.keys(a))})};_.C("clpp.TrackManager",_.R);_.R.prototype.isAbrEnabled=_.R.prototype.ka;_.R.prototype.addTextTrack=_.R.prototype.addTextTrack;_.R.prototype.findTextRendition=_.R.prototype.Si;_.R.prototype.findAudioRendition=_.R.prototype.Qi;
339
- _.R.prototype.findVideoRendition=_.R.prototype.Ui;_.R.prototype.findTextTrack=_.R.prototype.Ti;_.R.prototype.findAudioTrack=_.R.prototype.Ri;_.R.prototype.findVideoTrack=_.R.prototype.Vi;_.R.prototype.setTextRendition=_.R.prototype.pb;_.R.prototype.setAudioRendition=_.R.prototype.ob;_.R.prototype.setVideoRendition=_.R.prototype.bb;_.R.prototype.setTextTrack=_.R.prototype.Ea;_.R.prototype.setAudioTrack=_.R.prototype.va;_.R.prototype.setVideoTrack=_.R.prototype.cb;_.R.prototype.getTextTrack=_.R.prototype.qa;
340
- _.R.prototype.getAudioTrack=_.R.prototype.pa;_.R.prototype.getVideoTrack=_.R.prototype.La;_.R.prototype.getLoadingTextRendition=_.R.prototype.ib;_.R.prototype.getLoadingAudioRendition=_.R.prototype.hb;_.R.prototype.getLoadingVideoRendition=_.R.prototype.Xa;_.R.prototype.getTextRendition=_.R.prototype.Ja;_.R.prototype.getAudioRendition=_.R.prototype.Ia;_.R.prototype.getVideoRendition=_.R.prototype.fa;_.R.prototype.getTextTracks=_.R.prototype.ia;_.R.prototype.getAudioTracks=_.R.prototype.getAudioTracks;
341
- _.R.prototype.getVideoTracks=_.R.prototype.getVideoTracks;_.R.prototype.canSelectVideoTracks=_.R.prototype.re;_.Cq=(new Map).set(_.Pc,_.Pc).set("frameRate","framerate").set("bandwidth","bitrate").set(_.gf,_.gf).set(_.md,_.md).set("channelsCount","channels");_.Zi.prototype.Z=function(a){return $i(this,a,!1)};_.Zi.prototype.eb=function(a){return $i(this,a,!0)};_.Zi.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.aj.prototype.sf=function(){this.stop();this.f();return this};_.aj.prototype.Z=function(a){var b=this;this.stop();this.a=(new _.Zi(function(){b.f()})).Z(a);return this};_.aj.prototype.eb=function(a){var b=this;this.stop();this.a=(new _.Zi(function(){b.f()})).eb(a);return this};_.aj.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.C("clpp.utils.Timer",_.aj);_.aj.prototype.stop=_.aj.prototype.stop;_.aj.prototype.tickEvery=_.aj.prototype.eb;_.aj.prototype.tickAfter=_.aj.prototype.Z;
342
- _.aj.prototype.tickNow=_.aj.prototype.sf;_.C(Oc,bj);bj.getInfo=_.mi;
343
- var nj=null,mj=null,pj=new _.H(Oc),wj="android",vj="ios",Bj="linux",xj="osx",yj="windows",zj="tizen",Aj="webos",uj=Je,Ej=Je,Dj={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,
328
+ _.C("clpp.utils.strings.hashCode",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});var Hh=document.createElement("span");_.C("clpp.utils.Uint8ArrayUtils",_.Jh);_.Jh.toStandardBase64=_.Kh;_.Jh.concat=_.Qh;_.Jh.equal=_.Ph;_.Jh.toHex=_.Oh;_.Jh.fromHex=_.Nh;_.Jh.fromBase64=_.Mh;_.Jh.toBase64Url=_.Lh;var Uh=[403,401];_.C("clpp.net.DEFAULT_FATAL_STATUS_CODES",Uh);_.C("clpp.net.makeRequest",_.Yh);_.Xh=6;_.C("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.Xh});_.ci.prototype.resolve=function(){};_.ci.prototype.reject=function(){};_.di.prototype.abort=function(){this.a=!0;return this.A()};_.di.prototype.Gd=function(a,b){function c(){e.reject(new _.L(_.M,7,7001));return d.abort()}var d=this,e=new _.ci;this.P.then(function(f){d.a?e.reject(new _.L(_.M,7,7001)):a?c=fi(a,f,e):e.resolve(f)},function(f){b?c=fi(b,f,e):e.reject(f)});return new _.di(e,function(){return c()})};_.di.aborted=function(){var a=Promise.reject(new _.L(_.M,7,7001));a["catch"](function(){});return new _.di(a,function(){return Promise.resolve()})};
329
+ _.di.prototype.chain=_.di.prototype.Gd;_.gi.prototype.destroy=function(){for(var a=[],b=_.u(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.P["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.t=_.oi.prototype;_.t.al=function(a){0<a?_.F("Rate limit set to "+a+"bps"):_.F("Rate limit disabled");this.j=a};_.t.release=function(){return this.m.destroy()};_.t.destroy=function(){this.o=!0;this.f=[];this.g=[];return this.m.destroy()};_.t.yf=function(a){this.f.push(a)};_.t.Dd=function(a){this.g.push(a)};_.t.Rg=function(a){this.f=this.f.filter(function(b){return b!==a})};_.t.ae=function(a){this.g=this.g.filter(function(b){return b!==a})};
330
+ _.t.fetch=function(a){var b=this;if(this.o)return new Jp(Promise.reject(new _.L(1,1,7001,{url:a.uris[a.uriIndex],request:a})));this.j&&0<this.j&&(a.rateLimitBps=this.j);for(var c=[],d=_.u(this.f),e=d.next();!e.done;e=d.next())c.push(e.value);if(a.requestModifiers)for(d=_.u(a.requestModifiers),e=d.next();!e.done;e=d.next())c.push(e.value);a.requestModifiers=c;c=[];d=_.u(this.g);for(e=d.next();!e.done;e=d.next())c.push(e.value);if(a.responseModifiers)for(d=_.u(a.responseModifiers),e=d.next();!e.done;e=
331
+ d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.ci;try{var f={},g=_.u(a.requestModifiers);for(e=g.next();!e.done;f={he:f.he},e=g.next())f.he=e.value,d=d.then(function(m){return function(n){if(h.a)throw new _.L(_.M,1,7001,n?{url:n.uris[n.uriIndex],request:n}:null);return m.he(n)||n}}(f))["catch"](function(m){if(m instanceof _.L)throw m;throw new _.L(_.M,1,1006,null,m);});d=d.then(function(m){var n=new _.Kg(m.uris[m.uriIndex]),p=n.$a;p||(p=location.protocol,p=p.slice(0,-1),Lg(n,p),m.uris[m.uriIndex]=
332
+ n.toString());p=b.a[p];if(!p)throw new _.L(_.M,1,1E3,{url:n.toString()});return{request:m,plugin:p}});var h=new Jp(d);g={};var l=_.u(a.responseModifiers);for(e=l.next();!e.done;g={Bd:g.Bd},e=l.next())g.Bd=e.value,h.then(function(m){return function(n){function p(){if(h.a)throw new _.L(_.M,1,7001,n?{url:n.request.uris[n.request.uriIndex],request:n.request}:null);}p();var q=m.Bd(n)||n;p();return q}}(g))["catch"](function(m){return function(n){if(n instanceof _.L&&n.data&&n.data.response){var p=m.Bd(n.data.response);
333
+ if(p)return p.then(function(){return Promise.reject(n)})}return Promise.reject(n)}}(g))["catch"](function(m){if(m instanceof _.L)throw m;throw new _.L(_.M,1,1007,null,m);});_.hi(this.m,h);c.resolve(a);return h}catch(m){return new Jp(Promise.reject(m))}};_.C("clpp.net.NetworkEngine",_.oi);_.oi.prototype.fetch=_.oi.prototype.fetch;_.oi.prototype.removeResponseModifier=_.oi.prototype.ae;_.oi.prototype.removeRequestModifier=_.oi.prototype.Rg;_.oi.prototype.addResponseModifier=_.oi.prototype.Dd;
334
+ _.oi.prototype.addRequestModifier=_.oi.prototype.yf;_.oi.prototype.setRateLimit=_.oi.prototype.al;var ui;_.ri.prototype.ya=function(a){return this.type===a.type&&this.channelsCount===a.channelsCount&&this.frameRate===a.frameRate&&this.kind===a.kind&&this.label===a.label&&this.language===a.language&&this.mimeType===a.mimeType&&Hg(this.roles,a.roles)&&Hg(this.accessibility,a.accessibility,yi)};_.ri.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.C("clpp.Track",_.ri);_.ri.prototype.toString=_.ri.prototype.toString;
335
+ _.C("clpp.Rendition",_.zi);_.wi=1;_.ti=_.Qe;_.P=_.kc;_.O=_.Be;ui=_.Bd;_.qq={VIDEO:_.ti,AUDIO:_.P,TEXT:_.O,METADATA:ui};_.ri.Type=_.qq;_.C("clpp.utils.url.queryString",_.Ci);Fi.prototype.g=function(a,b){var c=this,d,e,f,g,h,l,m;return _.B(function(n){switch(n.a){case 1:return d=null,_.zf(n,2),_.x(n,Li(c,a),4);case 4:d=n.f;_.Af(n,3);break;case 2:return e=_.Bf(n),c.h.warn("Failed to fetch playlist in order metadata from HLS playlist.",e.message),n["return"](Promise.resolve({}));case 3:f={};_.zf(n,5);if(!b.enableHlsVideoTrackInfo){n.G(7);break}return _.x(n,Ii(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.Af(n,6);break;case 5:h=_.Bf(n),c.h.warn("Failed to parse video metadata from HLS playlist.",
336
+ h.message);case 6:return _.zf(n,9),_.x(n,Ki(d),11);case 11:l=n.f;f.Oc=l;_.Af(n,10);break;case 9:m=_.Bf(n),c.h.warn("Failed to parse metadata from HLS playlist.",m.message);case 10:return n["return"](f)}})};_.Ui=[];_.t=_.Q.prototype;_.t.re=function(){return!0};_.t.Xi=function(a){return this.getVideoTracks().find(function(b){return _.K.ya(b,a,a&&Object.keys(a))})};_.t.Ti=function(a){return this.getAudioTracks().find(function(b){return _.K.ya(b,a,a&&Object.keys(a))})};_.t.Vi=function(a){return this.ia().find(function(b){return _.K.ya(b,a,a&&Object.keys(a))})};_.t.Wi=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.K.ya(b,a,a&&Object.keys(a))})};
337
+ _.t.Si=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.K.ya(b,a,a&&Object.keys(a))})};_.t.Ui=function(a){return this.ia().flatMap(function(b){return b.renditions}).find(function(b){return _.K.ya(b,a,a&&Object.keys(a))})};_.C("clpp.TrackManager",_.Q);_.Q.prototype.isAbrEnabled=_.Q.prototype.ka;_.Q.prototype.addTextTrack=_.Q.prototype.addTextTrack;_.Q.prototype.findTextRendition=_.Q.prototype.Ui;_.Q.prototype.findAudioRendition=_.Q.prototype.Si;
338
+ _.Q.prototype.findVideoRendition=_.Q.prototype.Wi;_.Q.prototype.findTextTrack=_.Q.prototype.Vi;_.Q.prototype.findAudioTrack=_.Q.prototype.Ti;_.Q.prototype.findVideoTrack=_.Q.prototype.Xi;_.Q.prototype.setTextRendition=_.Q.prototype.ob;_.Q.prototype.setAudioRendition=_.Q.prototype.nb;_.Q.prototype.setVideoRendition=_.Q.prototype.ab;_.Q.prototype.setTextTrack=_.Q.prototype.Ea;_.Q.prototype.setAudioTrack=_.Q.prototype.wa;_.Q.prototype.setVideoTrack=_.Q.prototype.bb;_.Q.prototype.getTextTrack=_.Q.prototype.qa;
339
+ _.Q.prototype.getAudioTrack=_.Q.prototype.pa;_.Q.prototype.getVideoTrack=_.Q.prototype.La;_.Q.prototype.getLoadingTextRendition=_.Q.prototype.hb;_.Q.prototype.getLoadingAudioRendition=_.Q.prototype.gb;_.Q.prototype.getLoadingVideoRendition=_.Q.prototype.Xa;_.Q.prototype.getTextRendition=_.Q.prototype.Ja;_.Q.prototype.getAudioRendition=_.Q.prototype.Ia;_.Q.prototype.getVideoRendition=_.Q.prototype.fa;_.Q.prototype.getTextTracks=_.Q.prototype.ia;_.Q.prototype.getAudioTracks=_.Q.prototype.getAudioTracks;
340
+ _.Q.prototype.getVideoTracks=_.Q.prototype.getVideoTracks;_.Q.prototype.canSelectVideoTracks=_.Q.prototype.re;_.rq=new Map;_.sq=(new Map).set(_.Oc,_.Oc).set("frameRate","framerate").set("bandwidth","bitrate").set(_.ef,_.ef).set(_.ld,_.ld).set("channelsCount","channels");_.Yi.prototype.$=function(a){return Zi(this,a,!1)};_.Yi.prototype.cb=function(a){return Zi(this,a,!0)};_.Yi.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.$i.prototype.rf=function(){this.stop();this.f();return this};_.$i.prototype.$=function(a){var b=this;this.stop();this.a=(new _.Yi(function(){b.f()})).$(a);return this};_.$i.prototype.cb=function(a){var b=this;this.stop();this.a=(new _.Yi(function(){b.f()})).cb(a);return this};_.$i.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.C("clpp.utils.Timer",_.$i);_.$i.prototype.stop=_.$i.prototype.stop;_.$i.prototype.tickEvery=_.$i.prototype.cb;_.$i.prototype.tickAfter=_.$i.prototype.$;
341
+ _.$i.prototype.tickNow=_.$i.prototype.rf;_.C(Nc,aj);aj.getInfo=_.li;
342
+ var mj=null,jj=null,oj=new _.H(Nc),vj="android",uj="ios",Aj="linux",wj="osx",xj="windows",yj="tizen",zj="webos",tj=Ie,Dj=Ie,Cj={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,
344
343
  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,
345
344
  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},
346
- 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(Fj,_.R);_.t=Fj.prototype;_.t.re=function(){return!_.hj()};
347
- _.t.af=function(a,b){var c=this,d,e,f,g,h,l,m,n,p,q,r;return _.B(function(v){if(1==v.a){if(!b)return c.h.warn(Za),v["return"]();d=b.track;if(!d)return c.h.warn($a),v["return"]();if(e=c.g.find(function(y){return Tj(y,d,a)}))return c.h.warn("Track from event already exists",d,e),v["return"]();f=yi(a,d);g=Xj(d);if(a===_.O){if(d.kind===_.Cd)return v["return"]();void 0!==d.id?h=c.o[d.id]:(l=Object.values(c.o),h=l.find(function(y){return Tj(f,y,a)}));f.kind&&"captions"===f.kind&&(f.mimeType=_.dc);h&&(f.src=
348
- h.url,f.mimeType=h.mimeType)}else if(e=c.g.find(function(y){return y.type===a&&_.K.xa(y,f,["kind","label","language"])}))return e.id=d.id,g&&(c.h.debug(rb+a+" track active"),c.a.set(a,e)),c.h.debug("Track from event seems to already exists, flipped native track to",d),v["return"]();_.Af(v,2);m=new _.Ai(f.id,f);f.renditions.push(m);c.g.push(f);n=c.l.getConfiguration().safari;return Jj(c,a,n)?_.x(v,Mj(c,f,n),5):Kj(c,a,n)?_.x(v,Nj(c,f,n),5):v.G(5)}if(2!=v.a){c.h.debug(a+" Track added",f);c.l.trigger(new _.I(_.Dq));
349
- p=Qj(c,a).length;q=a===_.ui||a===_.Q;if(g||1===p&&q)c.h.debug(rb+a+" track active. Native track active: "+(g+". Number of tracks: ")+p,d),c.a.set(a,f);return _.Bf(v,0)}r=_.Cf(v);c.h.error("Error while converting track data",r);_.z(v)})};
350
- _.t.cf=function(a,b){if(b){var c=b.track;if(!c)this.h.warn($a);else if(a===_.O&&c.kind!==_.Cd){var d=this.g.find(function(e){return Tj(e,c,a)});d&&(this.g.splice(this.g.indexOf(d),1),(this.a.get(a)||null)===d&&(this.a.set(a,null),Zj(this)),this.h.debug(a+" Track removed, id: ",d.id))}}else this.h.warn(Za)};
351
- _.t.bf=function(a,b){this.h.debug(a+" Track changed",b);a===_.O&&Zj(this);var c=Pj(this,a);if(c)for(var d={sc:0};d.sc<c.length;d={sc:d.sc},++d.sc)if(Xj(c[d.sc])){if(d=this.g.find(function(e){return function(f){return Tj(f,c[e.sc],a)}}(d)))this.a.set(a,d),this.h.debug("Track change detected, id:",d.id),d===this.m.get(a)&&this.m.set(a,null),a===_.Q?this.l.trigger(new _.I(_.Uj)):a===_.O&&this.l.trigger(new _.I(_.Vj));break}};_.t.initialize=function(a){this.l=a;this.j=new Gi(a.getNetworkEngine())};
352
- _.t.load=function(){this.A=!1;var a=Oj(this,_.O);a&&(this.f.on(a,_.Yb,this.J),this.f.on(a,he,this.M),this.f.on(a,Gc,this.K));if(a=Oj(this,_.Q))this.f.on(a,_.Yb,this.F),this.f.on(a,he,this.I),this.f.on(a,Gc,this.H);if(a=Oj(this,_.ui))this.f.on(a,_.Yb,this.P),this.f.on(a,he,this.V),this.f.on(a,Gc,this.T);this.f.one(this.l,zc,this.mi.bind(this))};_.t.release=function(){this.A=!0;this.g=[];this.o={};this.a.clear();this.m.clear();this.f.release()};_.t.destroy=function(){this.release();this.l=null};
353
- _.t.getVideoTracks=function(){return Qj(this,_.ui)};_.t.getAudioTracks=function(){return Qj(this,_.Q)};_.t.ia=function(){return Qj(this,_.O)};_.t.fa=function(){var a=this,b=this.a.get(_.ui)||null;if(!b)return null;if(this.w){var c=b.renditions.find(function(d){return d.width===a.w.width&&d.height===a.w.height});if(c)return c}return b.renditions[0]||null};_.t.Ia=function(){return Rj(this,_.Q)};_.t.Ja=function(){return Rj(this,_.O)};_.t.Xa=function(){return Sj(this,_.ui)};
354
- _.t.hb=function(){return Sj(this,_.Q)};_.t.ib=function(){return Sj(this,_.O)};_.t.La=function(){return this.a.get(_.ui)||null};_.t.pa=function(){return this.a.get(_.Q)||null};_.t.qa=function(){return this.a.get(_.O)||null};_.t.cb=function(a){Wj(this,_.ui,a)};_.t.va=function(a){Wj(this,_.Q,a)};_.t.Ea=function(a){Wj(this,_.O,a)};_.t.bb=function(a){Wj(this,_.ui,a&&a.track)};_.t.ob=function(a){Wj(this,_.Q,a&&a.track)};_.t.pb=function(a){Wj(this,_.O,a&&a.track)};
355
- _.t.addTextTrack=function(a){var b=this,c;return _.B(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.B++,b.o[c]=a,Gj(b,a,c),d.G(0)):_.x(d,Hj(b,a),0)})};_.t.ka=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
356
- _.t.mi=function(){var a=this,b,c,d;return _.B(function(e){if(1==e.a){b=a.l.getConfiguration();Yj(a,_.Q,b.preferredAudioLanguage);c=Pj(a,_.O);if(c.some(function(f){return Xj(f)}))return e.G(2);d=Oj(a,_.O);return _.x(e,new Promise(function(f){a.f.one(d,Gc,f);(new _.aj(f)).Z(1)}),2)}if(a.A)return e["return"]();Yj(a,_.O,b.preferredTextLanguage);_.z(e)})};Fj.prototype.isAbrEnabled=Fj.prototype.ka;Fj.prototype.addTextTrack=Fj.prototype.addTextTrack;Fj.prototype.setTextRendition=Fj.prototype.pb;
357
- Fj.prototype.setAudioRendition=Fj.prototype.ob;Fj.prototype.setVideoRendition=Fj.prototype.bb;Fj.prototype.setTextTrack=Fj.prototype.Ea;Fj.prototype.setAudioTrack=Fj.prototype.va;Fj.prototype.setVideoTrack=Fj.prototype.cb;Fj.prototype.getTextTrack=Fj.prototype.qa;Fj.prototype.getAudioTrack=Fj.prototype.pa;Fj.prototype.getVideoTrack=Fj.prototype.La;Fj.prototype.getLoadingTextRendition=Fj.prototype.ib;Fj.prototype.getLoadingAudioRendition=Fj.prototype.hb;Fj.prototype.getLoadingVideoRendition=Fj.prototype.Xa;
358
- Fj.prototype.getTextRendition=Fj.prototype.Ja;Fj.prototype.getAudioRendition=Fj.prototype.Ia;Fj.prototype.getVideoRendition=Fj.prototype.fa;Fj.prototype.getTextTracks=Fj.prototype.ia;Fj.prototype.getAudioTracks=Fj.prototype.getAudioTracks;Fj.prototype.getVideoTracks=Fj.prototype.getVideoTracks;Fj.prototype.canSelectVideoTracks=Fj.prototype.re;_.t=_.ak.prototype;_.t.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(vb);};_.t.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(vb);};_.t.tb=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:1===this.length&&0>this.start(0)?0:this.start(0)};_.t.Ba=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
345
+ 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(Ej,_.Q);_.t=Ej.prototype;_.t.re=function(){return!_.gj()};
346
+ _.t.af=function(a,b){var c=this,d,e,f,g,h,l,m,n,p,q,r;return _.B(function(v){if(1==v.a){if(!b)return c.h.warn(Za),v["return"]();d=b.track;if(!d)return c.h.warn($a),v["return"]();if(e=c.g.find(function(y){return Sj(y,d,a)}))return c.h.warn("Track from event already exists",d,e),v["return"]();f=xi(a,d);g=Wj(d);if(a===_.O){if(d.kind===_.Bd)return v["return"]();void 0!==d.id?h=c.o[d.id]:(l=Object.values(c.o),h=l.find(function(y){return Sj(f,y,a)}));f.kind&&"captions"===f.kind&&(f.mimeType=_.cc);h&&(f.src=
347
+ h.url,f.mimeType=h.mimeType)}else if(e=c.g.find(function(y){return y.type===a&&_.K.ya(y,f,["kind","label","language"])}))return e.id=d.id,g&&(c.h.debug(pb+a+" track active"),c.a.set(a,e)),c.h.debug("Track from event seems to already exists, flipped native track to",d),v["return"]();_.zf(v,2);m=new _.zi(f.id,f);f.renditions.push(m);c.g.push(f);n=c.l.getConfiguration().safari;return Ij(c,a,n)?_.x(v,Lj(c,f,n),5):Jj(c,a,n)?_.x(v,Mj(c,f,n),5):v.G(5)}if(2!=v.a){c.h.debug(a+" Track added",f);c.l.trigger(new _.J(_.tq));
348
+ p=Pj(c,a).length;q=a===_.ti||a===_.P;if(g||1===p&&q)c.h.debug(pb+a+" track active. Native track active: "+(g+". Number of tracks: ")+p,d),c.a.set(a,f);return _.Af(v,0)}r=_.Bf(v);c.h.error("Error while converting track data",r);_.z(v)})};
349
+ _.t.cf=function(a,b){if(b){var c=b.track;if(!c)this.h.warn($a);else if(a===_.O&&c.kind!==_.Bd){var d=this.g.find(function(e){return Sj(e,c,a)});d&&(this.g.splice(this.g.indexOf(d),1),(this.a.get(a)||null)===d&&(this.a.set(a,null),Yj(this)),this.h.debug(a+" Track removed, id: ",d.id))}}else this.h.warn(Za)};
350
+ _.t.bf=function(a,b){this.h.debug(a+" Track changed",b);a===_.O&&Yj(this);var c=Oj(this,a);if(c)for(var d={sc:0};d.sc<c.length;d={sc:d.sc},++d.sc)if(Wj(c[d.sc])){if(d=this.g.find(function(e){return function(f){return Sj(f,c[e.sc],a)}}(d)))this.a.set(a,d),this.h.debug("Track change detected, id:",d.id),d===this.m.get(a)&&this.m.set(a,null),a===_.P?this.l.trigger(new _.J(_.Tj)):a===_.O&&this.l.trigger(new _.J(_.Uj));break}};_.t.initialize=function(a){this.l=a;this.j=new Fi(a.getNetworkEngine())};
351
+ _.t.load=function(){this.A=!1;var a=Nj(this,_.O);a&&(this.f.on(a,_.Xb,this.J),this.f.on(a,ge,this.L),this.f.on(a,Fc,this.K));if(a=Nj(this,_.P))this.f.on(a,_.Xb,this.F),this.f.on(a,ge,this.I),this.f.on(a,Fc,this.H);if(a=Nj(this,_.ti))this.f.on(a,_.Xb,this.O),this.f.on(a,ge,this.V),this.f.on(a,Fc,this.S);this.f.one(this.l,yc,this.oi.bind(this))};_.t.release=function(){this.A=!0;this.g=[];this.o={};this.a.clear();this.m.clear();this.f.release()};_.t.destroy=function(){this.release();this.l=null};
352
+ _.t.getVideoTracks=function(){return Pj(this,_.ti)};_.t.getAudioTracks=function(){return Pj(this,_.P)};_.t.ia=function(){return Pj(this,_.O)};_.t.fa=function(){var a=this,b=this.a.get(_.ti)||null;if(!b)return null;if(this.w){var c=b.renditions.find(function(d){return d.width===a.w.width&&d.height===a.w.height});if(c)return c}return b.renditions[0]||null};_.t.Ia=function(){return Qj(this,_.P)};_.t.Ja=function(){return Qj(this,_.O)};_.t.Xa=function(){return Rj(this,_.ti)};
353
+ _.t.gb=function(){return Rj(this,_.P)};_.t.hb=function(){return Rj(this,_.O)};_.t.La=function(){return this.a.get(_.ti)||null};_.t.pa=function(){return this.a.get(_.P)||null};_.t.qa=function(){return this.a.get(_.O)||null};_.t.bb=function(a){Vj(this,_.ti,a)};_.t.wa=function(a){Vj(this,_.P,a)};_.t.Ea=function(a){Vj(this,_.O,a)};_.t.ab=function(a){Vj(this,_.ti,a&&a.track)};_.t.nb=function(a){Vj(this,_.P,a&&a.track)};_.t.ob=function(a){Vj(this,_.O,a&&a.track)};
354
+ _.t.addTextTrack=function(a){var b=this,c;return _.B(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.B++,b.o[c]=a,Fj(b,a,c),d.G(0)):_.x(d,Gj(b,a),0)})};_.t.ka=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
355
+ _.t.oi=function(){var a=this,b,c,d;return _.B(function(e){if(1==e.a){b=a.l.getConfiguration();Xj(a,_.P,b.preferredAudioLanguage);c=Oj(a,_.O);if(c.some(function(f){return Wj(f)}))return e.G(2);d=Nj(a,_.O);return _.x(e,new Promise(function(f){a.f.one(d,Fc,f);(new _.$i(f)).$(1)}),2)}if(a.A)return e["return"]();Xj(a,_.O,b.preferredTextLanguage);_.z(e)})};Ej.prototype.isAbrEnabled=Ej.prototype.ka;Ej.prototype.addTextTrack=Ej.prototype.addTextTrack;Ej.prototype.setTextRendition=Ej.prototype.ob;
356
+ Ej.prototype.setAudioRendition=Ej.prototype.nb;Ej.prototype.setVideoRendition=Ej.prototype.ab;Ej.prototype.setTextTrack=Ej.prototype.Ea;Ej.prototype.setAudioTrack=Ej.prototype.wa;Ej.prototype.setVideoTrack=Ej.prototype.bb;Ej.prototype.getTextTrack=Ej.prototype.qa;Ej.prototype.getAudioTrack=Ej.prototype.pa;Ej.prototype.getVideoTrack=Ej.prototype.La;Ej.prototype.getLoadingTextRendition=Ej.prototype.hb;Ej.prototype.getLoadingAudioRendition=Ej.prototype.gb;Ej.prototype.getLoadingVideoRendition=Ej.prototype.Xa;
357
+ Ej.prototype.getTextRendition=Ej.prototype.Ja;Ej.prototype.getAudioRendition=Ej.prototype.Ia;Ej.prototype.getVideoRendition=Ej.prototype.fa;Ej.prototype.getTextTracks=Ej.prototype.ia;Ej.prototype.getAudioTracks=Ej.prototype.getAudioTracks;Ej.prototype.getVideoTracks=Ej.prototype.getVideoTracks;Ej.prototype.canSelectVideoTracks=Ej.prototype.re;_.t=_.Zj.prototype;_.t.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(ub);};_.t.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(ub);};_.t.sb=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:1===this.length&&0>this.start(0)?0:this.start(0)};_.t.Ba=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
359
358
  _.t.fc=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};
360
- _.t.Ha=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.Ba();null!=d&&(c=Math.max(0,d-a))}else for(d=this.length-1;0<=d&&this.end(d)>a;--d)c+=this.end(d)-Math.max(this.start(d),a);return c};_.t.toString=function(){for(var a="",b=0;b<this.length;b++)0<b&&(a+=" "),a+=this.start(b).toFixed(3)+"-"+this.end(b).toFixed(3);return a};_.C("clpp.BufferInfo",_.ak);_.ak.prototype.bufferedAheadOf=_.ak.prototype.Ha;
361
- _.ak.prototype.isBuffered=_.ak.prototype.fc;_.ak.prototype.bufferEnd=_.ak.prototype.Ba;_.ak.prototype.bufferStart=_.ak.prototype.tb;_.ak.prototype.end=_.ak.prototype.end;_.ak.prototype.start=_.ak.prototype.start;_.t=_.bk.prototype;_.t.addEventListener=function(a,b){this.on(a,b)};_.t.removeEventListener=function(a,b){this.off(a,b)};_.t.on=function(a,b,c){return this.jd.on(a,b,c)};_.t.one=function(a,b,c){return this.jd.one(a,b,c)};_.t.off=function(a,b){return this.jd.off(a,b)};_.t.addDelegate=function(a){a&&(0<=this.gd.indexOf(a)||this.gd.push(a))};_.t.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};_.t.removeDelegate=function(a){a&&(a=this.gd.indexOf(a),0<=a&&this.gd.splice(a,1))};
362
- _.t.trigger=function(a){this.jd.trigger(a);for(var b=_.u(this.gd),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.bk.prototype.off=_.bk.prototype.off;_.bk.prototype.one=_.bk.prototype.one;_.bk.prototype.on=_.bk.prototype.on;_.bk.prototype.removeEventListener=_.bk.prototype.removeEventListener;_.bk.prototype.addEventListener=_.bk.prototype.addEventListener;_.C("clpp.events.ERROR",_.jd);_.C("clpp.events.LOADEDMETADATA",_.xd);_.C("clpp.events.BUFFERING_ENDED",_.wc);_.C("clpp.events.BUFFERING_STARTED",_.xc);_.C("clpp.events.STATE_CHANGED",_.se);_.Uj="audiotrackchanged";_.C("clpp.events.AUDIO_TRACK_CHANGED",_.Uj);_.Vj="texttrackchanged";_.C("clpp.events.TEXT_TRACK_CHANGED",_.Vj);_.C("clpp.events.VIDEO_TRACK_CHANGED",_.Ve);_.C("clpp.events.BITRATE_CHANGED",_.uc);_.Dq="tracksadded";_.C("clpp.events.TRACKS_ADDED",_.Dq);_.C("clpp.events.LOAD_START",yd);
363
- _.C("clpp.events.RELEASING",_.ge);_.C("clpp.events.RELEASED",fe);_.C("clpp.events.DESTROYING","destroying");_.C("clpp.events.DESTROYED","destroyed");_.C("clpp.events.VIDEO_BUFFER_CHANGED",_.Ue);_.C("clpp.events.AUDIO_BUFFER_CHANGED",_.sc);_.C("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.C("clpp.events.DRM_SESSION_UPDATE",_.dd);_.C("clpp.events.DRM_SESSION_PERSISTED",_.cd);_.C("clpp.events.DRM_RENEWAL_STARTED",bd);_.C("clpp.events.DRM_EXPIRATION_UPDATE",_.ad);
364
- _.C("clpp.events.AUTOPLAY_NOT_ALLOWED",_.tc);_.C("clpp.events.PLAY",_.Zd);_.C("clpp.events.SEEKING",_.me);_.C("clpp.events.SEEKED",_.le);_.C("clpp.events.USER_SEEKING",_.Ne);_.C("clpp.events.USER_SEEKED",_.Me);_.fn={SEEKING:1,NO_DATA:2};_.C("clpp.events.BufferingReasons",_.fn);_.C("clpp.events.ADS_TIMELINE_CHANGED",_.Zb);_.C("clpp.events.AD_LOADED",_.Pb);_.C("clpp.events.AD_BREAK_STARTED",_.Ib);_.C("clpp.events.AD_STARTED",_.Vb);_.C("clpp.events.AD_BUFFERING",_.Kb);_.C("clpp.events.AD_PROGRESS",_.Sb);
365
- _.C("clpp.events.AD_FIRST_QUARTILE",_.Nb);_.C("clpp.events.AD_MIDPOINT",_.Qb);_.C("clpp.events.AD_THIRD_QUARTILE",_.Xb);_.C("clpp.events.AD_PAUSED",_.Rb);_.C("clpp.events.AD_RESUMED",_.Tb);_.C("clpp.events.AD_SKIPPED",_.Ub);_.C("clpp.events.AD_CLICKED",_.Lb);_.C("clpp.events.AD_IMPRESSION",_.Ob);_.C("clpp.events.AD_COMPLETED",_.Mb);_.C("clpp.events.AD_STOPPED",_.Wb);_.C("clpp.events.AD_BREAK_STOPPED",_.Jb);_.C("clpp.events.CASTING_STARTED",_.Ac);_.C("clpp.events.CASTING_ENDED","castingended");
366
- _.C("clpp.events.CAST_STATUS_CHANGED",_.Bc);_.C("clpp.events.AIRPLAY_STATUS_CHANGED",_.bc);_.C("clpp.events.AIRPLAY_CASTING_STARTED",_.ac);_.C("clpp.events.AIRPLAY_CASTING_ENDED",_.$b);_.pg="timeline-cue-added";_.C("clpp.events.TIMELINE_CUE_ADDED",_.pg);_.rg="timeline-cue-enter";_.C("clpp.events.TIMELINE_CUE_ENTER",_.rg);_.sg="timeline-cue-exit";_.C("clpp.events.TIMELINE_CUE_EXIT",_.sg);_.C("clpp.events.MPD_TYPE_CHANGED",_.Id);_.C("clpp.events.VIMOND_RESPONSE",_.We);
367
- _.C("clpp.events.PLAYLIST_ITEM_CHANGED",_.ae);_.C("clpp.events.PLAYLIST_MODIFIED",_.be);_.C("clpp.events.CDN_SWITCH_SUCCESS",_.Cc);_.C("clpp.events.ONLINE_STATUS_CHANGED",Rd);var ck=["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"];_.C("clpp.utils.PlayerConfiguration",ek);ek.create=_.jk;var Eq=["abort",yc,zc,fd,"emptied",gd,_.id,_.jd,"interruptbegin","interruptend",_.wd,_.xd,yd,"mozaudioavailable",_.Vd,_.Zd,_.$d,_.ce,_.ee,_.le,_.me,pe,"suspend",_.Fe,"volumechange",_.Ze,_.$e,_.je,ef,df,bf,cf];_.w(_.lk,_.bk);_.t=_.lk.prototype;_.t.init=function(a,b){this.configuration=this.Kd=b;this.D=a;this.log.info("Initializing Player surface");var c=this.D.getMedia();this.log.info("Attaching media element listeners");for(var d=_.u(Eq),e=d.next();!e.done;e=d.next())e=e.value,this.M.on(c,e,this.cl,e!==_.jd);this.Xc||(this.Xc=this.Tf());this.Xc.initialize(this);this.D.showMediaElement()};_.t.release=function(){this.K&&(this.K.destroy(),this.K=null);return Promise.resolve()};
368
- _.t.destroy=function(){this.M.release();return Promise.resolve()};_.t.canPlay=function(a,b){return _.Xf[this.namespace()].canPlay(a,b)};
369
- _.t.play=function(){var a=this;if(!this.w)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.D.getMedia().play();return Promise.resolve(b)["catch"](function(c){a.log.info("Caught play promise exception",c);var d={name:c.name||"",message:c.message||"",stack:c.stack||""};dk(d)?(a.trigger(new _.I(_.tc)),a.log.warn(_.ka)):d.name===bb&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
370
- _.t.pause=function(){var a=this;return this.w?new Promise(function(b,c){var d=a.getState();if(d!==_.cn&&d!==_.en&&d!==_.mn&&d!==_.ln)c();else if(a.D.getMedia().pause(),a.getState()===_.mn)a.M.one(a,_.se,function(){b()});else b()}):Promise.reject("No sources specified yet. You need to load content before calling pause.")};_.t.isPaused=function(){return this.D.getMedia().paused};_.t.isEnded=function(){return this.D.getMedia().ended};_.t.getConfiguration=function(){return this.configuration};
371
- _.t.setDrmCustomDataModifier=function(a){this.Gc=a};_.t.setCdnErrorCallback=function(a){this.uc=a};_.t.Kc=function(){return this.Gc};_.t.getSurface=function(){return this.D};_.t.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.ak(b?b.buffered:void 0,a)};_.t.getPosition=function(){var a=this.D.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
372
- _.t.seek=function(a){var b=this,c=this.getPosition();if(void 0===a||null===a||typeof a!==_.k||a===c)return Promise.resolve();var d=this.D.getMedia();if(!d)return this.log.warn("No media element available, can not set current time!"),Promise.reject();var e=a-c;return.1>=Math.abs(e)?(this.log.info("Skip seek. Delta "+Math.abs(e)+" \x3c 0.1"),Promise.resolve()):new Promise(function(f,g){function h(){if(d.readyState>HTMLMediaElement.HAVE_NOTHING)m();else b.M.one(d,_.xd,m)}function l(n){var p=b.getPosition(),
373
- q=.1>=Math.abs(a-p),r=.25<p-a,v=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,y=n.type===_.le,A=n.type===_.ce,E=n.type===_.Fe,F=A&&v;r=y||q&&F||E&&r;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",r,"Current Time:",p,"Target Time:",a,"Native Event:",y,"Time reached",q,"Timeupdate:",E,"Progress:",A,"ReadyState:",v,"Progress Ready:",F);r?(b.Oe=!1,b.Ud=!1,b.M.off(d,_.le,l),b.M.off(d,_.Fe,l),b.M.off(d,_.ce,l),b.Gg(),b.trigger(new _.I(_.Me)),f()):A&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
374
- d.currentTime=a)}function m(){b.trigger(new _.I(_.Ne));b.M.on(d,_.le,l);b.M.on(d,_.Fe,l);b.M.on(d,_.ce,l);b.log.info("Seeking to "+a+". Delta "+e);b.Oe=!0;b.Ud=!0;d.currentTime=a}b.getState()===_.Ym?(b.log.debug("Player is in IDLE state. Postpone seek."),b.M.one(b,_.se,function(){switch(b.getState()){case _.cn:case _.mn:case _.ln:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
359
+ _.t.Ha=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.Ba();null!=d&&(c=Math.max(0,d-a))}else for(d=this.length-1;0<=d&&this.end(d)>a;--d)c+=this.end(d)-Math.max(this.start(d),a);return c};_.t.toString=function(){for(var a="",b=0;b<this.length;b++)0<b&&(a+=" "),a+=this.start(b).toFixed(3)+"-"+this.end(b).toFixed(3);return a};_.C("clpp.BufferInfo",_.Zj);_.Zj.prototype.bufferedAheadOf=_.Zj.prototype.Ha;
360
+ _.Zj.prototype.isBuffered=_.Zj.prototype.fc;_.Zj.prototype.bufferEnd=_.Zj.prototype.Ba;_.Zj.prototype.bufferStart=_.Zj.prototype.sb;_.Zj.prototype.end=_.Zj.prototype.end;_.Zj.prototype.start=_.Zj.prototype.start;_.t=_.ak.prototype;_.t.addEventListener=function(a,b){this.on(a,b)};_.t.removeEventListener=function(a,b){this.off(a,b)};_.t.on=function(a,b,c){return this.kd.on(a,b,c)};_.t.one=function(a,b,c){return this.kd.one(a,b,c)};_.t.off=function(a,b){return this.kd.off(a,b)};_.t.addDelegate=function(a){a&&(0<=this.hd.indexOf(a)||this.hd.push(a))};_.t.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};_.t.removeDelegate=function(a){a&&(a=this.hd.indexOf(a),0<=a&&this.hd.splice(a,1))};
361
+ _.t.trigger=function(a){this.kd.trigger(a);for(var b=_.u(this.hd),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.ak.prototype.off=_.ak.prototype.off;_.ak.prototype.one=_.ak.prototype.one;_.ak.prototype.on=_.ak.prototype.on;_.ak.prototype.removeEventListener=_.ak.prototype.removeEventListener;_.ak.prototype.addEventListener=_.ak.prototype.addEventListener;_.C("clpp.events.ERROR",_.id);_.C("clpp.events.LOADEDMETADATA",_.wd);_.C("clpp.events.BUFFERING_ENDED",_.vc);_.C("clpp.events.BUFFERING_STARTED",_.wc);_.C("clpp.events.STATE_CHANGED",_.qe);_.Tj="audiotrackchanged";_.C("clpp.events.AUDIO_TRACK_CHANGED",_.Tj);_.Uj="texttrackchanged";_.C("clpp.events.TEXT_TRACK_CHANGED",_.Uj);_.C("clpp.events.VIDEO_TRACK_CHANGED",_.Ue);_.C("clpp.events.BITRATE_CHANGED",_.tc);_.tq="tracksadded";_.C("clpp.events.TRACKS_ADDED",_.tq);_.C("clpp.events.LOAD_START",xd);
362
+ _.C("clpp.events.RELEASING",_.fe);_.C("clpp.events.RELEASED",ee);_.C("clpp.events.DESTROYING","destroying");_.C("clpp.events.DESTROYED","destroyed");_.C("clpp.events.VIDEO_BUFFER_CHANGED",_.Te);_.C("clpp.events.AUDIO_BUFFER_CHANGED",_.rc);_.C("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.C("clpp.events.DRM_SESSION_UPDATE",_.cd);_.C("clpp.events.DRM_SESSION_PERSISTED",_.bd);_.C("clpp.events.DRM_RENEWAL_STARTED",ad);_.C("clpp.events.DRM_EXPIRATION_UPDATE",_.$c);
363
+ _.C("clpp.events.AUTOPLAY_NOT_ALLOWED",_.sc);_.C("clpp.events.PLAY",_.Yd);_.C("clpp.events.SEEKING",_.le);_.C("clpp.events.SEEKED",_.ke);_.C("clpp.events.USER_SEEKING",_.Me);_.C("clpp.events.USER_SEEKED",_.Le);_.Vm={SEEKING:1,NO_DATA:2};_.C("clpp.events.BufferingReasons",_.Vm);_.C("clpp.events.ADS_TIMELINE_CHANGED",_.Yb);_.C("clpp.events.AD_LOADED",_.Ob);_.C("clpp.events.AD_BREAK_STARTED",_.Hb);_.C("clpp.events.AD_STARTED",_.Ub);_.C("clpp.events.AD_BUFFERING",_.Jb);_.C("clpp.events.AD_PROGRESS",_.Rb);
364
+ _.C("clpp.events.AD_FIRST_QUARTILE",_.Mb);_.C("clpp.events.AD_MIDPOINT",_.Pb);_.C("clpp.events.AD_THIRD_QUARTILE",_.Wb);_.C("clpp.events.AD_PAUSED",_.Qb);_.C("clpp.events.AD_RESUMED",_.Sb);_.C("clpp.events.AD_SKIPPED",_.Tb);_.C("clpp.events.AD_CLICKED",_.Kb);_.C("clpp.events.AD_IMPRESSION",_.Nb);_.C("clpp.events.AD_COMPLETED",_.Lb);_.C("clpp.events.AD_STOPPED",_.Vb);_.C("clpp.events.AD_BREAK_STOPPED",_.Ib);_.C("clpp.events.CASTING_STARTED",_.zc);_.C("clpp.events.CASTING_ENDED","castingended");
365
+ _.C("clpp.events.CAST_STATUS_CHANGED",_.Ac);_.C("clpp.events.AIRPLAY_STATUS_CHANGED",_.ac);_.C("clpp.events.AIRPLAY_CASTING_STARTED",_.$b);_.C("clpp.events.AIRPLAY_CASTING_ENDED",_.Zb);_.og="timeline-cue-added";_.C("clpp.events.TIMELINE_CUE_ADDED",_.og);_.qg="timeline-cue-enter";_.C("clpp.events.TIMELINE_CUE_ENTER",_.qg);_.rg="timeline-cue-exit";_.C("clpp.events.TIMELINE_CUE_EXIT",_.rg);_.C("clpp.events.MPD_TYPE_CHANGED",_.Gd);_.C("clpp.events.VIMOND_RESPONSE",_.Ve);
366
+ _.C("clpp.events.PLAYLIST_ITEM_CHANGED",_.$d);_.C("clpp.events.PLAYLIST_MODIFIED",_.ae);_.C("clpp.events.CDN_SWITCH_SUCCESS",_.Bc);_.C("clpp.events.ONLINE_STATUS_CHANGED",Qd);var bk=["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"];_.C("clpp.utils.PlayerConfiguration",dk);dk.create=_.ik;var uq=["abort",xc,yc,ed,"emptied",fd,_.hd,_.id,"interruptbegin","interruptend",_.vd,_.wd,xd,"mozaudioavailable",_.Ud,_.Yd,_.Zd,_.be,_.de,_.ke,_.le,oe,"suspend",_.Ee,"volumechange",_.Ye,_.Ze,_.ie,df,cf,af,bf];_.w(_.kk,_.ak);_.t=_.kk.prototype;_.t.init=function(a,b){this.configuration=this.Md=b;this.D=a;this.log.info("Initializing Player surface");var c=this.D.getMedia();this.log.info("Attaching media element listeners");for(var d=_.u(uq),e=d.next();!e.done;e=d.next())e=e.value,this.L.on(c,e,this.il,e!==_.id);this.Yc||(this.Yc=this.Uf());this.Yc.initialize(this);this.D.showMediaElement()};_.t.release=function(){this.K&&(this.K.destroy(),this.K=null);return Promise.resolve()};
367
+ _.t.destroy=function(){this.L.release();return Promise.resolve()};_.t.canPlay=function(a,b){return _.Wf[this.namespace()].canPlay(a,b)};
368
+ _.t.play=function(){var a=this;if(!this.w)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.D.getMedia().play();return Promise.resolve(b)["catch"](function(c){a.log.info("Caught play promise exception",c);var d={name:c.name||"",message:c.message||"",stack:c.stack||""};ck(d)?(a.trigger(new _.J(_.sc)),a.log.warn(_.la)):d.name===bb&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
369
+ _.t.pause=function(){var a=this;return this.w?new Promise(function(b,c){var d=a.getState();if(d!==_.Sm&&d!==_.Um&&d!==_.an&&d!==_.$m)c();else if(a.D.getMedia().pause(),a.getState()===_.an)a.L.one(a,_.qe,function(){b()});else b()}):Promise.reject("No sources specified yet. You need to load content before calling pause.")};_.t.isPaused=function(){return this.D.getMedia().paused};_.t.isEnded=function(){return this.D.getMedia().ended};_.t.getConfiguration=function(){return this.configuration};
370
+ _.t.setDrmCustomDataModifier=function(a){this.Gc=a};_.t.setCdnErrorCallback=function(a){this.uc=a};_.t.Kc=function(){return this.Gc};_.t.getSurface=function(){return this.D};_.t.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.Zj(b?b.buffered:void 0,a)};_.t.getPosition=function(){var a=this.D.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
371
+ _.t.seek=function(a){var b=this,c=this.getPosition();if(void 0===a||null===a||typeof a!==_.k||a===c)return Promise.resolve();var d=this.D.getMedia();if(!d)return this.log.warn("No media element available, can not set current time!"),Promise.reject();var e=a-c;return.1>=Math.abs(e)?(this.log.info("Skip seek. Delta "+Math.abs(e)+" \x3c 0.1"),Promise.resolve()):new Promise(function(f,g){function h(){if(d.readyState>HTMLMediaElement.HAVE_NOTHING)m();else b.L.one(d,_.wd,m)}function l(n){var p=b.getPosition(),
372
+ q=.1>=Math.abs(a-p),r=.25<p-a,v=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,y=n.type===_.ke,A=n.type===_.be,E=n.type===_.Ee,G=A&&v;r=y||q&&G||E&&r;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",r,"Current Time:",p,"Target Time:",a,"Native Event:",y,"Time reached",q,"Timeupdate:",E,"Progress:",A,"ReadyState:",v,"Progress Ready:",G);r?(b.Oe=!1,b.Vd=!1,b.L.off(d,_.ke,l),b.L.off(d,_.Ee,l),b.L.off(d,_.be,l),b.Hg(),b.trigger(new _.J(_.Le)),f()):A&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
373
+ d.currentTime=a)}function m(){b.trigger(new _.J(_.Me));b.L.on(d,_.ke,l);b.L.on(d,_.Ee,l);b.L.on(d,_.be,l);b.log.info("Seeking to "+a+". Delta "+e);b.Oe=!0;b.Vd=!0;d.currentTime=a}b.getState()===_.Nm?(b.log.debug("Player is in IDLE state. Postpone seek."),b.L.one(b,_.qe,function(){switch(b.getState()){case _.Sm:case _.an:case _.$m:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
375
374
  _.t.getVolume=function(){var a=this.D.getMedia();if(a)return a.volume;this.log.warn("No media element available, can not report volume!");return null};_.t.setVolume=function(a){var b=this.D.getMedia();b?_.K.la(a)?0>a||1<a?this.log.warn(oa+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(oa+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.t.isMuted=function(){return this.D.getMedia().muted};
376
- _.t.setMuted=function(a){var b=this.D.getMedia();typeof a===_.vc&&(b.muted=a)};_.t.getDuration=function(){return this.w?this.D.getMedia().duration:-1};_.t.getTrackManager=function(){return this.Xc};_.t.getPlaybackRate=function(){var a=this.D.getMedia();return a&&a.playbackRate||1};_.t.setPlaybackRate=function(a){var b=this.D.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.t.setSourceIndex=function(a){this.Md=a};_.t.getSourceIndex=function(){return this.Md};
377
- _.t.getLoadedSource=function(){return this.w&&-1!==this.Md?this.w[this.Md]:null};_.t.getPeriods=function(){return[]};_.t.getNetworkEngine=function(){return this.sg};_.t.setNetworkEngine=function(a){this.sg=a};_.t.getTextDisplayer=function(){return this.K};_.t.getTimelineCues=function(){return[]};_.t.resetAbr=function(){};
378
- _.t.Mk=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.Fe||a.type===_.ce)this.Yg.debug(d);else{var e="";switch(a.type){case _.ee:e="Rate: "+this.getPlaybackRate();break;case fd:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.Zd:case _.$d:case "suspend":case _.Ze:case pe:case _.me:case _.le:case _.Fe:case _.ce:case yc:case zc:b=
379
- this.getBufferInfo().Ha(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.je:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.Yg.info(d)}a.type!==_.jd&&this.trigger(new _.I(a.type,{detail:a}))};_.t.Gg=function(){};_.lk.prototype.getTextDisplayer=_.lk.prototype.getTextDisplayer;_.lk.prototype.setNetworkEngine=_.lk.prototype.setNetworkEngine;_.lk.prototype.getNetworkEngine=_.lk.prototype.getNetworkEngine;var ok;ok=new _.H("clpp.Components");_.mk=new Map;rk.prototype.release=function(){this.a=this.f=null};_.C("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.nb,SW_SECURE_DECODE:_.ob,HW_SECURE_CRYPTO:Ma,HW_SECURE_DECODE:Oa,HW_SECURE_ALL:"HW_SECURE_ALL"});_.C("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.C("clpp.drm.KeySystem",{NONE:_.Kd,CLEAR_KEY:_.Td,WIDEVINE:_.Uc,PLAYREADY:_.Tc,FAIRPLAY:_.Sc,PRIMETIME:_.Rc});_.vk={};_.C("clpp.drm.registerDrmEnvironment",_.wk);var zk={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,
375
+ _.t.setMuted=function(a){var b=this.D.getMedia();typeof a===_.uc&&(b.muted=a)};_.t.getDuration=function(){return this.w?this.D.getMedia().duration:-1};_.t.getTrackManager=function(){return this.Yc};_.t.getPlaybackRate=function(){var a=this.D.getMedia();return a&&a.playbackRate||1};_.t.setPlaybackRate=function(a){var b=this.D.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.t.setSourceIndex=function(a){this.Od=a};_.t.getSourceIndex=function(){return this.Od};
376
+ _.t.getLoadedSource=function(){return this.w&&-1!==this.Od?this.w[this.Od]:null};_.t.getPeriods=function(){return[]};_.t.getNetworkEngine=function(){return this.tg};_.t.setNetworkEngine=function(a){this.tg=a};_.t.getTextDisplayer=function(){return this.K};_.t.getTimelineCues=function(){return[]};_.t.resetAbr=function(){};
377
+ _.t.Sk=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.Ee||a.type===_.be)this.$g.debug(d);else{var e="";switch(a.type){case _.de:e="Rate: "+this.getPlaybackRate();break;case ed:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.Yd:case _.Zd:case "suspend":case _.Ye:case oe:case _.le:case _.ke:case _.Ee:case _.be:case xc:case yc:b=
378
+ this.getBufferInfo().Ha(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.ie:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.$g.info(d)}a.type!==_.id&&this.trigger(new _.J(a.type,{detail:a}))};_.t.Hg=function(){};_.kk.prototype.getTextDisplayer=_.kk.prototype.getTextDisplayer;_.kk.prototype.setNetworkEngine=_.kk.prototype.setNetworkEngine;_.kk.prototype.getNetworkEngine=_.kk.prototype.getNetworkEngine;var nk;nk=new _.H("clpp.Components");_.lk=new Map;qk.prototype.release=function(){this.a=this.f=null};_.C("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.mb,SW_SECURE_DECODE:_.nb,HW_SECURE_CRYPTO:Ma,HW_SECURE_DECODE:Na,HW_SECURE_ALL:"HW_SECURE_ALL"});_.C("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.C("clpp.drm.KeySystem",{NONE:_.Jd,CLEAR_KEY:_.Sd,WIDEVINE:_.Tc,PLAYREADY:_.Sc,FAIRPLAY:_.Rc,PRIMETIME:_.Qc});_.uk={};_.C("clpp.drm.registerDrmEnvironment",_.vk);var yk={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,
380
379
  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,
381
380
  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,
382
381
  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,
@@ -390,77 +389,77 @@ this.getBufferInfo().Ha(c);e="State "+this.getSurface().getMedia().readyState+"
390
389
  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,
391
390
  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,
392
391
  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,
393
- 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]};_.Bk.prototype.Oa=function(a,b){this.f[a]=b};_.C("clpp.drm.DrmEnvironment",_.Bk);_.Bk.prototype.setDrmSystem=_.Bk.prototype.Oa;_.Dk.prototype.getPosition=function(){return this.a};_.Dk.prototype.Ca=function(){return this.f.byteLength};_.Dk.prototype.seek=function(a){(0>a||a>this.f.byteLength)&&_.Ek();this.a=a};_.Dk.prototype.seek=_.Dk.prototype.seek;_.Gk.prototype.getPosition=function(){return this.a};_.Gk.prototype.Ca=function(){return this.f.byteLength};_.Gk.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.Ik();this.a+=a};_.Gk.prototype.seek=function(a){if(0>a||a>this.f.byteLength)throw _.Ik();this.a=a};
394
- _.C("clpp.utils.dataview.DataViewReader",_.Gk);_.t=_.Pk.prototype;_.t.L=function(a,b){var c=Tk(a);this.g[c]=Fq;this.f[c]=b;return this};_.t.W=function(a,b){var c=Tk(a);this.g[c]=Gq;this.f[c]=b;return this};_.t.stop=function(){this.a=!0};_.t.parse=function(a,b){var c=_.N(a);c=new _.Gk(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.Hk(c)&&!this.a;)this.$d(0,c,b)};
395
- _.t.$d=function(a,b,c){var d=b.getPosition(),e=_.T(b),f=_.T(b),g=!1;this.h.debug("Parsing MP4 box",_.Uk(f));switch(e){case 0:e=b.Ca()-d;break;case 1:e=_.Nk(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.g[f]==Gq&&(m=_.T(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.Ca()&&(n=b.Ca());n-=b.getPosition();b=0<n?_.Ok(b,n):new Uint8Array(0);b=new _.Gk(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+a,headerSize:f,
396
- has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.Ca()-b.getPosition()),b.skip(a)};_.C("clpp.utils.Mp4Parser",_.Pk);_.Pk.typeToString=_.Uk;_.Pk.allData=_.Sk;_.Pk.sampleDescription=_.Rk;_.Pk.children=_.Qk;_.Pk.prototype.parseNext=_.Pk.prototype.$d;_.Pk.prototype.parse=_.Pk.prototype.parse;_.Pk.prototype.stop=_.Pk.prototype.stop;_.Pk.prototype.fullBox=_.Pk.prototype.W;_.Pk.prototype.box=_.Pk.prototype.L;_.Pk.headerSize=_.Vk;var Fq=0,Gq=1;_.C("clpp.utils.FairplayUtils",Wk);Wk.parseFairPlayResponse=_.bl;Wk.formatFairPlayRequest=_.al;Wk.createFairplayPayload=$k;Wk.extractContentId=_.Yk;Wk.extractExtXKeyUri=Xk;var nl=new _.H("clpp.drm.DrmToday"),el="PRODUCTION",fl="STAGING",gl="TEST",Hq={PRODUCTION:el,STAGING:fl,TEST:gl};_.C("clpp.drm.DrmToday.Environment",Hq);_.C("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
397
- for(var il="/license-proxy-widevine/cenc/",jl="/license-proxy-headerauth/drmtoday/RightsManager.asmx",kl="/license-server-fairplay/",vl={"00000":"Success","01000":"General Internal Error","02000":"General Request Error","03000":"General Request Authentication Error",3E4:"General DRM error",4E4:"General Widevine Modular error",40001:"Widevine Device Certificate Revocation (wv 127)",40002:"Widevine Device Certificate Revocation - Permanently (wv 175)",41E3:"General Widevine Classic error",42E3:"General Playready error",
398
- 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"},Iq={video:[_.ob,void 0],audio:[_.nb,void 0]},Jq={video:["3000"],
399
- audio:["2000"]},Kq=_.u(Object.keys(Hq)),Lq=Kq.next();!Lq.done;Lq=Kq.next()){var dl=Lq.value,Mq=za;dl!==el&&(Mq+="_"+dl);var Nq=new _.Bk(Mq),Oq=null;switch(dl){case el:Oq=Ak("V1_PROD");break;case fl:Oq=Ak("V2");break;case gl:Oq=null}Nq.Oa(_.Uc,{licenseUrl:ll(_.Uc),videoRobustness:Iq.video,audioRobustness:Iq.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:Oq,modifiers:{licenseRequest:_.pl,licenseResponse:_.ul}});Nq.Oa(_.Sc,{licenseUrl:ll(_.Sc),certificateUrl:hl()+
400
- "/license-server-fairplay/cert/",modifiers:{licenseRequest:_.rl,licenseResponse:_.sl,extractContentId:_.ol,certificateRequest:_.tl}});Nq.Oa(_.Tc,{licenseUrl:ll(_.Tc),videoRobustness:Jq.video,audioRobustness:Jq.audio,modifiers:{licenseRequest:ql}});_.wk(Nq)};_.C("clpp.drm.eme.EmeFactory",xl);var yl=[];xl.Apis={STANDARD:mb,APPLE:"APPLE",WEBKIT:"WEBKIT",NOP:"NOP"};var Hl;_.Ol=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];Hl=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.w(Gl,Fl);_.w(_.Kl,Fl);Ql.prototype.j=function(a){if(1<a.version)_.G("Unrecognized PSSH version found!");else{var b=_.Ph(_.Ok(a.reader,16)),c=[];if(0<a.version)for(var d=_.T(a.reader),e=0;e<d;++e){var f=_.Ph(_.Ok(a.reader,16));c.push(f)}d=_.T(a.reader);a.reader.skip(d);this.g.push.apply(this.g,c);this.f.push(b);this.a.push({start:a.start,end:a.start+a.size-1});a.reader.getPosition()!=a.reader.Ca()&&_.G("Mismatch between box size and data size!")}};_.t=_.Ul.prototype;_.t.destroy=function(){var a=this;return _.B(function(b){if(1==b.a){if(a.j)return _.x(b,a.Ga,0);a.j=!0;return _.x(b,Wl(a),4)}a.Ga.resolve();return b.G(0)})};_.t.keySystem=function(){return this.a?_.sm(this.a.keySystem):""};_.t.getDrmInfo=function(){return this.a};_.t.Fg=function(a){var b=this;return _.B(function(c){return b.F&&b.J===Xl?c["return"]():!b.g.delayLicenseRequestUntilPlayed||b.B&&!b.B.paused||b.Va?_.x(c,Im(b,a),0):(b.ha.push(a),c.G(0))})};
401
- _.t.Bg=function(a){var b=this,c=a.target;this.h.info("Key status changed for session",c.sessionId);var d=this.f.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if(typeof h==_.ve){var l=h;h=g;g=l}if(zm(b.a.keySystem)&&16===h.byteLength&&_.cj()){l=_.th(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!==te&&(d.loaded=!0);d&&d.Da&&d.Da.resolve();"expired"===g&&(e=!0);l=_.N(h);var q=_.Ph(l);"00"===q&&d&&d.keyId?q=d.keyId:
402
- b.a.keySystem.startsWith(_.Sc)&&16!==l.byteLength&&(q=vh(l));(l=q||"")?b.h.info(Sa+q+"': "+g):b.h.info("Key status global keys: "+g);b.m.set(l,g);d&&!d.keyId&&b.f.forEach(function(r,v){v===c||r.keyId!==q||r.loaded||(r.loaded=!0)})});d&&d.loaded&&d.fb.forEach(function(g){b.m.get(g)===te&&(b.h.warn(Sa+g+da),b.m.set(g,_.Ud))});for(a=0;a<this.a.initData.length;a++){var f=this.a.initData[a];f.keyId&&this.m.get(f.keyId)===te&&_.Qh(f.initData,d.initData)&&(this.h.warn(Sa+f.keyId+da),this.m.set(f.keyId,_.Ud))}a=
403
- c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.qb&&(this.h.debug("Session has expired",c.sessionId),(a=this.f.get(c))&&a.Ec&&a.Ec.stop(),this.f["delete"](c),c.close()["catch"](function(){}));um(this)&&(this.H.resolve(),1!==this.f.size||e?this.ga.Z(.5):Sl(this))};var Xl=0,Rl=3;var Jm=new Map,Km=new _.H("clpp.text");_.Tm.prototype.getStats=function(){return{width:this.w,height:this.g,streamBandwidth:this.o,decodedFrames:this.j,droppedFrames:this.m,corruptedFrames:this.D,estimatedBandwidth:this.f,loadLatency:this.A,playTime:Pm(this.a,_.mn),pauseTime:Pm(this.a,_.ln),bufferingTime:Pm(this.a,_.cn),stateHistory:Qm(this.a),switchHistory:Sm(this.B)}};_.Vm.prototype.value=function(){void 0==this.a&&(this.a=this.f());return this.a};var Wm=new _.Vm(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.xd],[HTMLMediaElement.HAVE_CURRENT_DATA,_.wd],[HTMLMediaElement.HAVE_FUTURE_DATA,yc],[HTMLMediaElement.HAVE_ENOUGH_DATA,zc]])});an.prototype.Wb=function(a,b){this.l&&this.l.trigger(new _.I(a,{detail:b}))};an.prototype.getState=function(){return dn(this,"")};an.prototype.S=function(a){(a=a&&a.detail)&&a.severity&&a.severity===_.M&&hn(this,_.jn)};an.prototype.destroy=function(){this.h.debug("Stop watching for video events for "+this.l.namespace());this.a.release()};_.C("clpp.version",_.ea);_.C("clpp.name",_.ra);_.Lj="application/x-mpegurl";_.C("clpp.Type",{DASH:_.ec,HLS:_.Lj,SMOOTH_STREAMING:_.jc,MP4:_.Te});_.og="scte35";_.mg=Je;_.C("clpp.TimelineCueType",{SCTE35:_.og,DASH_CALLBACK:_.Jd,UNKNOWN:_.mg});_.C("clpp.utils.media.detectType",on);var rn=new _.H("clpp.sources");_.w(sn,_.lk);_.t=sn.prototype;_.t.init=function(a,b){_.lk.prototype.init.call(this,a,b);this.j=new an(this);hn(this.j,_.Ym)};_.t.namespace=function(){return Nc};
404
- _.t.unload=function(){var a=this,b;return _.B(function(c){if(!a.w)return c.G(0);a.log.debug(_.kb,a.w);a.F&&(a.F.stop(),a.F=null);(b=a.getTrackManager())&&b.release();a.B&&(a.B.destroy(),a.B=null);a.K&&(a.K.destroy(),a.K=null);a.m&&a.m.release();a.o&&(a.o.destroy(),a.o=null);_.hg(a.g);a.f&&(a.f=new _.Tm);a.H=null;a.w=null;a.I=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());return _.x(c,wn(a),0)})};
405
- _.t.release=function(){var a=this;return _.lk.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.j&&hn(a.j,_.Ym)})};
406
- _.t.destroy=function(){var a=this;if(this.A)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.A=!0;return _.lk.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Da);var b=a.getTrackManager();b&&b.destroy();a.m&&(a.m.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.m=null);a.j&&(a.j.destroy(),a.j=null);a.f=null})};_.t.getDrmInfo=function(){return this.o?this.o.getDrmInfo():null};
407
- _.t.detach=function(){};_.t.getTrackManager=function(){return this.Xc};
408
- _.t.load=function(a){var b=this,c,d,e,f,g;return _.B(function(h){switch(h.a){case 1:if(b.A)return h["return"](tn());if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.K;d=b.D.getMedia();b.J=Date.now()/1E3;b.f=new _.Tm;b.g.on(b,_.se,function(){b.f&&_.Om(b.f.a,b.getState())});hn(b.j,_.kn);b.w=_.qn(a);_.kk(a)&&(b.configuration=_.jk(b.Kd,a));b.log.debug(_.Ua,b.configuration);b.log.debug(_.eb,b.w);e=_.Mm(b.configuration,["html",
409
- "native"]);b.K=e.create(b);b.K.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.nk(_.ze)&&!_.jj()&&(b.B=new Dg(b),b.B.start(d));b.m?b.m.release():b.m=new jg(b);lg(b.m,d);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.R(b.configuration.volume)||b.setVolume(b.configuration.volume);c.R(b.configuration.muted)||b.setMuted(b.configuration.muted);b.g.one(d,yc,function(){b.trigger(new _.I(_.Dq))});null==b.configuration.startTime&&Bn(b,d);_.Af(h,2);return _.x(h,vn(b,d),4);case 4:return _.x(h,
410
- yn(b),5);case 5:return _.x(h,An(b).O,6);case 6:_.Bf(h,0);break;case 2:g=_.Cf(h),b.I=!1,b.onError(g),_.z(h)}})};_.t.onError=function(a){this.I||(a.severity===_.M&&null!==this.j&&hn(this.j,_.jn),this.trigger(new _.I(_.jd,{detail:a})))};_.t.Tf=function(){return new Fj};_.t.getState=function(){return null!==this.j?this.j.getState().currentState:_.Zm};
392
+ 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]};_.Ak.prototype.Oa=function(a,b){this.f[a]=b};_.C("clpp.drm.DrmEnvironment",_.Ak);_.Ak.prototype.setDrmSystem=_.Ak.prototype.Oa;_.Ck.prototype.getPosition=function(){return this.a};_.Ck.prototype.Ca=function(){return this.f.byteLength};_.Ck.prototype.seek=function(a){(0>a||a>this.f.byteLength)&&_.Dk();this.a=a};_.Ck.prototype.seek=_.Ck.prototype.seek;_.Fk.prototype.getPosition=function(){return this.a};_.Fk.prototype.Ca=function(){return this.f.byteLength};_.Fk.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.Hk();this.a+=a};_.Fk.prototype.seek=function(a){if(0>a||a>this.f.byteLength)throw _.Hk();this.a=a};
393
+ _.C("clpp.utils.dataview.DataViewReader",_.Fk);_.t=_.Ok.prototype;_.t.M=function(a,b){var c=Sk(a);this.g[c]=vq;this.f[c]=b;return this};_.t.X=function(a,b){var c=Sk(a);this.g[c]=wq;this.f[c]=b;return this};_.t.stop=function(){this.a=!0};_.t.parse=function(a,b){var c=_.N(a);c=new _.Fk(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.Gk(c)&&!this.a;)this.$d(0,c,b)};
394
+ _.t.$d=function(a,b,c){var d=b.getPosition(),e=_.T(b),f=_.T(b),g=!1;this.h.debug("Parsing MP4 box",_.Tk(f));switch(e){case 0:e=b.Ca()-d;break;case 1:e=_.Mk(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.g[f]==wq&&(m=_.T(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.Ca()&&(n=b.Ca());n-=b.getPosition();b=0<n?_.Nk(b,n):new Uint8Array(0);b=new _.Fk(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+a,headerSize:f,
395
+ has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.Ca()-b.getPosition()),b.skip(a)};_.C("clpp.utils.Mp4Parser",_.Ok);_.Ok.typeToString=_.Tk;_.Ok.allData=_.Rk;_.Ok.sampleDescription=_.Qk;_.Ok.children=_.Pk;_.Ok.prototype.parseNext=_.Ok.prototype.$d;_.Ok.prototype.parse=_.Ok.prototype.parse;_.Ok.prototype.stop=_.Ok.prototype.stop;_.Ok.prototype.fullBox=_.Ok.prototype.X;_.Ok.prototype.box=_.Ok.prototype.M;_.Ok.headerSize=_.Uk;var vq=0,wq=1;_.C("clpp.utils.FairplayUtils",Vk);Vk.parseFairPlayResponse=_.al;Vk.formatFairPlayRequest=_.$k;Vk.createFairplayPayload=Zk;Vk.extractContentId=_.Xk;Vk.extractExtXKeyUri=Wk;var ml=new _.H("clpp.drm.DrmToday"),dl="PRODUCTION",el="STAGING",fl="TEST",xq={PRODUCTION:dl,STAGING:el,TEST:fl};_.C("clpp.drm.DrmToday.Environment",xq);_.C("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
396
+ for(var hl="/license-proxy-widevine/cenc/",il="/license-proxy-headerauth/drmtoday/RightsManager.asmx",jl="/license-server-fairplay/",ul={"00000":"Success","01000":"General Internal Error","02000":"General Request Error","03000":"General Request Authentication Error",3E4:"General DRM error",4E4:"General Widevine Modular error",40001:"Widevine Device Certificate Revocation (wv 127)",40002:"Widevine Device Certificate Revocation - Permanently (wv 175)",41E3:"General Widevine Classic error",42E3:"General Playready error",
397
+ 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"},yq={video:[_.nb,void 0],audio:[_.mb,void 0]},zq={video:["3000"],
398
+ audio:["2000"]},Aq=_.u(Object.keys(xq)),Bq=Aq.next();!Bq.done;Bq=Aq.next()){var bl=Bq.value,Cq=za;bl!==dl&&(Cq+="_"+bl);var Dq=new _.Ak(Cq),Eq=null;switch(bl){case dl:Eq=zk("V1_PROD");break;case el:Eq=zk("V2");break;case fl:Eq=null}Dq.Oa(_.Tc,{licenseUrl:kl(_.Tc),videoRobustness:yq.video,audioRobustness:yq.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:Eq,modifiers:{licenseRequest:_.ol,licenseResponse:_.tl}});Dq.Oa(_.Rc,{licenseUrl:kl(_.Rc),certificateUrl:gl()+
399
+ "/license-server-fairplay/cert/",modifiers:{licenseRequest:_.ql,licenseResponse:_.rl,extractContentId:_.nl,certificateRequest:_.sl}});Dq.Oa(_.Sc,{licenseUrl:kl(_.Sc),videoRobustness:zq.video,audioRobustness:zq.audio,modifiers:{licenseRequest:pl}});_.vk(Dq)};_.C("clpp.drm.eme.EmeFactory",wl);var xl=[];wl.Apis={STANDARD:lb,APPLE:"APPLE",WEBKIT:"WEBKIT",NOP:"NOP"};var Cl=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.w(Bl,_.Al);Fl.prototype.j=function(a){if(1<a.version)_.F("Unrecognized PSSH version found!");else{var b=_.Oh(_.Nk(a.reader,16)),c=[];if(0<a.version)for(var d=_.T(a.reader),e=0;e<d;++e){var f=_.Oh(_.Nk(a.reader,16));c.push(f)}d=_.T(a.reader);a.reader.skip(d);this.g.push.apply(this.g,c);this.f.push(b);this.a.push({start:a.start,end:a.start+a.size-1});a.reader.getPosition()!=a.reader.Ca()&&_.F("Mismatch between box size and data size!")}};_.t=_.Jl.prototype;_.t.destroy=function(){var a=this;return _.B(function(b){if(1==b.a){if(a.j)return _.x(b,a.Ga,0);a.j=!0;return _.x(b,Ll(a),4)}a.Ga.resolve();return b.G(0)})};_.t.keySystem=function(){return this.a?_.hm(this.a.keySystem):""};_.t.getDrmInfo=function(){return this.a};_.t.Gg=function(a){var b=this;return _.B(function(c){return b.F&&b.J===Ml?c["return"]():!b.g.delayLicenseRequestUntilPlayed||b.B&&!b.B.paused||b.Va?_.x(c,sm(b,a),0):(b.ha.push(a),c.G(0))})};
400
+ _.t.Cg=function(a){var b=this,c=a.target;this.h.info("Key status changed for session",c.sessionId);var d=this.f.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if(typeof h==_.ue){var l=h;h=g;g=l}if(om(b.a.keySystem)&&16===h.byteLength&&_.bj()){l=_.sh(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!==re&&(d.loaded=!0);d&&d.Da&&d.Da.resolve();"expired"===g&&(e=!0);l=_.N(h);var q=_.Oh(l);"00"===q&&d&&d.keyId?q=d.keyId:
401
+ b.a.keySystem.startsWith(_.Rc)&&16!==l.byteLength&&(q=uh(l));(l=q||"")?b.h.info(Sa+q+"': "+g):b.h.info("Key status global keys: "+g);b.m.set(l,g);d&&!d.keyId&&b.f.forEach(function(r,v){v===c||r.keyId!==q||r.loaded||(r.loaded=!0)})});d&&d.loaded&&d.eb.forEach(function(g){b.m.get(g)===re&&(b.h.warn(Sa+g+da),b.m.set(g,_.Td))});for(a=0;a<this.a.initData.length;a++){var f=this.a.initData[a];f.keyId&&this.m.get(f.keyId)===re&&_.Ph(f.initData,d.initData)&&(this.h.warn(Sa+f.keyId+da),this.m.set(f.keyId,_.Td))}a=
402
+ c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.pb&&(this.h.debug("Session has expired",c.sessionId),(a=this.f.get(c))&&a.Ec&&a.Ec.stop(),this.f["delete"](c),c.close()["catch"](function(){}));jm(this)&&(this.H.resolve(),1!==this.f.size||e?this.ga.$(.5):Hl(this))};var Ml=0,Gl=3;var tm=new Map,um=new _.H("clpp.text");_.Dm.prototype.getStats=function(){return{width:this.w,height:this.g,streamBandwidth:this.o,decodedFrames:this.j,droppedFrames:this.m,corruptedFrames:this.D,estimatedBandwidth:this.f,loadLatency:this.A,playTime:zm(this.a,_.an),pauseTime:zm(this.a,_.$m),bufferingTime:zm(this.a,_.Sm),stateHistory:Am(this.a),switchHistory:Cm(this.B)}};_.Km.prototype.value=function(){void 0==this.a&&(this.a=this.f());return this.a};var Lm=new _.Km(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.wd],[HTMLMediaElement.HAVE_CURRENT_DATA,_.vd],[HTMLMediaElement.HAVE_FUTURE_DATA,xc],[HTMLMediaElement.HAVE_ENOUGH_DATA,yc]])});Qm.prototype.Wb=function(a,b){this.l&&this.l.trigger(new _.J(a,{detail:b}))};Qm.prototype.getState=function(){return Tm(this,"")};Qm.prototype.T=function(a){(a=a&&a.detail)&&a.severity&&a.severity===_.M&&Xm(this,_.Ym)};Qm.prototype.destroy=function(){this.h.debug("Stop watching for video events for "+this.l.namespace());this.a.release()};_.C("clpp.version",_.ea);_.C("clpp.name",_.ra);_.Kj="application/x-mpegurl";_.C("clpp.Type",{DASH:_.dc,HLS:_.Kj,SMOOTH_STREAMING:_.ic,MP4:_.Se});_.ng="scte35";_.lg=Ie;_.C("clpp.TimelineCueType",{SCTE35:_.ng,DASH_CALLBACK:_.Id,UNKNOWN:_.lg});_.C("clpp.utils.media.detectType",cn);var fn=new _.H("clpp.sources");_.w(gn,_.kk);_.t=gn.prototype;_.t.init=function(a,b){_.kk.prototype.init.call(this,a,b);this.j=new Qm(this);Xm(this.j,_.Nm)};_.t.namespace=function(){return Mc};
403
+ _.t.unload=function(){var a=this,b;return _.B(function(c){if(!a.w)return c.G(0);a.log.debug(_.jb,a.w);a.F&&(a.F.stop(),a.F=null);(b=a.getTrackManager())&&b.release();a.B&&(a.B.destroy(),a.B=null);a.K&&(a.K.destroy(),a.K=null);a.m&&a.m.release();a.o&&(a.o.destroy(),a.o=null);_.gg(a.g);a.f&&(a.f=new _.Dm);a.H=null;a.w=null;a.I=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());return _.x(c,ln(a),0)})};
404
+ _.t.release=function(){var a=this;return _.kk.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.j&&Xm(a.j,_.Nm)})};
405
+ _.t.destroy=function(){var a=this;if(this.A)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.A=!0;return _.kk.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Ba);var b=a.getTrackManager();b&&b.destroy();a.m&&(a.m.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.m=null);a.j&&(a.j.destroy(),a.j=null);a.f=null})};_.t.getDrmInfo=function(){return this.o?this.o.getDrmInfo():null};
406
+ _.t.detach=function(){};_.t.getTrackManager=function(){return this.Yc};
407
+ _.t.load=function(a){var b=this,c,d,e,f,g;return _.B(function(h){switch(h.a){case 1:if(b.A)return h["return"](hn());if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.K;d=b.D.getMedia();b.J=Date.now()/1E3;b.f=new _.Dm;b.g.on(b,_.qe,function(){b.f&&_.ym(b.f.a,b.getState())});Xm(b.j,_.Zm);b.w=_.en(a);_.jk(a)&&(b.configuration=_.ik(b.Md,a));b.log.debug(_.Ua,b.configuration);b.log.debug(_.eb,b.w);e=_.wm(b.configuration,["html",
408
+ "native"]);b.K=e.create(b);b.K.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.mk(_.ye)&&!_.ij()&&(b.B=new Cg(b),b.B.start(d));b.m?b.m.release():b.m=new ig(b);kg(b.m,d);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.R(b.configuration.volume)||b.setVolume(b.configuration.volume);c.R(b.configuration.muted)||b.setMuted(b.configuration.muted);b.g.one(d,xc,function(){b.trigger(new _.J(_.tq))});null==b.configuration.startTime&&qn(b,d);_.zf(h,2);return _.x(h,kn(b,d),4);case 4:return _.x(h,
409
+ nn(b),5);case 5:return _.x(h,pn(b).P,6);case 6:_.Af(h,0);break;case 2:g=_.Bf(h),b.I=!1,b.onError(g),_.z(h)}})};_.t.onError=function(a){this.I||(a.severity===_.M&&null!==this.j&&Xm(this.j,_.Ym),this.trigger(new _.J(_.id,{detail:a})))};_.t.Uf=function(){return new Ej};_.t.getState=function(){return null!==this.j?this.j.getState().currentState:_.Om};
411
410
  _.t.getPresentationStartTime=function(){if(this.a&&this.a.getStartDate&&this.isLive()){var a=this.a.getStartDate();return isNaN(a.getTime())?(this.log.warn("EXT-X-PROGRAM-DATETIME required to get presentation start time as Date!"),null):a.getTime()/1E3}return null};_.t.getSeekRange=function(){var a=this.getSurface().getMedia();if(a&&a.src){a=a.seekable;if(a.length)return this.H=a={start:a.start(0),end:a.end(a.length-1)};if(this.H)return this.H}return{start:0,end:0}};
412
411
  _.t.isLive=function(){return this.a&&this.a.src?Infinity===this.a.duration:!1};
413
- _.t.getStats=function(){if(!this.f||!this.a)return _.Um();this.f&&_.Om(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.w=a.videoWidth;b.g=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.m=Number(a.droppedVideoFrames),b.j=c,this.f.D=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.fa())a.bandwidth&&(this.f.o=a.bandwidth),a.Wc&&(this.f.f=a.Wc);return this.f.getStats()};
414
- _.t.getTimelineCues=function(){return this.m?this.m.getTimelineCues():[]};Cn.prototype.a=function(){return Nc};Cn.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.ec,e=c===_.jc,f=c===_.Lj;return _.gj()||d||e||f&&!_.hj()?0:""!==oj().canPlayType(c)?f&&_.hj()&&window.MediaSource&&MediaSource.isTypeSupported&&!b.streaming.preferNativeHlsOnSafari?1:2:0};Cn.prototype.create=function(){return new sn};_.Zf(new Cn);_.C("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.C("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1});_.C("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var En=new _.H("clpp.ads"),Dn=[];_.C("clpp.utils.dom.createHTMLElement",_.Ln);Mn.prototype.set=function(a){this.g.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=On(this,a)};Mn.prototype.get=function(){return this.a};_.t=Sn.prototype;_.t.getMedia=function(){return this.f.get()};_.t.getContainer=function(){return this.a.get()};_.t.getSafeContainer=function(){return this.a};_.t.getId=function(){return this.m};_.t.getUniqueCssClass=function(){return this.o};_.t.getCastElement=function(){return this.g};_.t.isFullscreen=function(){return!!document.fullscreenElement};_.t.hideMediaElement=function(){var a=this.getMedia();a?_.Jn(a,Jc):this.h.debug("No media element available that could be hidden")};
415
- _.t.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(Jc):this.h.debug("No media element available that could be shown")};_.t.addElementToContainer=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.getContainer();if(!d)throw Error("No container is available. Unable to add element");b&&_.Jn(a,_.Ic);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
416
- _.t.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.t.hide=function(a){_.Jn(a,Jc)};_.t.show=function(a){a.classList.remove(Jc)};_.t.release=function(){this.j.release()};Sn.prototype.removeElementFromContainer=Sn.prototype.removeElementFromContainer;Sn.prototype.addElementToContainer=Sn.prototype.addElementToContainer;Sn.prototype.getCastElement=Sn.prototype.getCastElement;
417
- Sn.prototype.getContainer=Sn.prototype.getContainer;Sn.prototype.getMedia=Sn.prototype.getMedia;var Pn={disableContainer:!1,crossorigin:"anonymous",containerEl:null},Qn=1;Un.prototype.release=function(){this.a.release();Yn(this);this.l=null};_.C("clpp.polyfill.installAll",ao);var $n=[];_.C("clpp.polyfill.register",_.bo);eo.prototype.verify=function(a,b){var c={kty:"RSA",n:a.n,e:a.e},d=this.g+"."+this.f,e=this.j;return new Promise(function(f,g){try{var h=window&&window.crypto&&window.crypto.subtle}catch(m){}if(h){var l={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};h.importKey("jwk",c,l,!1,["verify"]).then(function(m){var n=_.Ah(d),p=_.Nh(e);return h.verify(l,m,p.buffer,n.buffer)}).then(function(m){m?f():g(sb)})["catch"](g)}else b?g("Web Crypto API is not supported"):f()})};var Pq={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},fk="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";fo.prototype.verify=function(){var a=this;return(new Promise(function(b,c){try{var d=go(a);b(d)}catch(e){c()}})).then(function(b){return b.verify(Pq)})["catch"](function(b){if(b&&b!==sb){var c=window.location.href;var d=new _.Lg(c);c=d.ab||d.Ra?d:new _.Lg("//"+c);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(c.Ra))return Promise.resolve()}throw b;})};var ro="vod",qo="live";_.w(U,_.bk);_.t=U.prototype;_.t.on=function(a,b,c){return _.bk.prototype.on.call(this,a,b,c)};_.t.one=function(a,b,c){return _.bk.prototype.one.call(this,a,b,c)};_.t.off=function(a,b){return _.bk.prototype.off.call(this,a,b)};_.t.init=function(){};_.t.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.I(_.jd,{detail:a}))};_.t.cc=function(a){a=this.M[a];void 0===a&&(a=null);return a};_.t.getSurface=function(){return this.g};_.t.getConfiguration=function(){return _.K.Qa(this.f)};
418
- _.t.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.t.unload=function(){return this.a?this.a.unload():Promise.resolve()};_.t.detach=function(){return this.a?this.a.detach():Promise.resolve()};_.t.release=function(){var a=this;if(null!=this.m)return this.h.info("Player release already in progress"),this.m;this.h.debug("Releasing player");this.m=yo(this);return this.m["finally"](function(){a.h.debug("Player released");a.m=null})};
419
- _.t.destroy=function(){var a=this;if(this.F)return this.h.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.F=!0;return this.release().then(function(){a.h.debug(Da);a.trigger(new _.I("destroying"));return a.ic(_.Od)}).then(function(){a.a&&a.a.removeDelegate(a);a.jd.clear();a.V.release();if(a.a)return a.a.destroy()}).then(function(){qk(function(b){b.Fa()});_.mk.clear();a.a=null;a.trigger(new _.I("destroyed"))})};
420
- _.t.load=function(a){var b=this,c;return _.B(function(d){switch(d.a){case 1:return _.Af(d,2),_.x(d,_.Bo(b,a),4);case 4:return _.x(d,_.Co(b),5);case 5:return _.x(d,_.Eo(b),6);case 6:_.Bf(d,0);break;case 2:c=_.Cf(d);if(b.m)throw b.h.info("Load interrupted while a player release is pending"),new _.L(_.M,7,7E3);throw c;}})};
421
- _.t.ic=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];var e=this;d=this.K.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.nf(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};_.t.use=function(a){a=new a;a.Ma(this);_.pk(a)};_.t.remove=function(a){if(this.getState()<=_.Ym||this.I){var b="";qk(function(c){c instanceof a&&(b=c.id(),c.Fa())});if(b)return _.mk["delete"](b),this.J=!0}return!1};
422
- _.t.play=function(){return this.a?this.j&&this.a.namespace()!==_.Kc?this.j.start(this.a):this.a.play():Promise.reject("No player initialized. You need to load content before calling play.")};_.t.pause=function(){return this.a?this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};_.t.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.t.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.ak};
423
- _.t.getState=function(){return this.a?this.a.getState():_.Ym};_.t.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.t.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.t.isPaused=function(){return this.a&&this.a.isPaused()||!1};_.t.getPosition=function(){return this.a?this.a.getPosition():0};_.t.seek=function(a){return this.getState()===_.jn?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};
412
+ _.t.getStats=function(){if(!this.f||!this.a)return _.Em();this.f&&_.ym(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.w=a.videoWidth;b.g=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.m=Number(a.droppedVideoFrames),b.j=c,this.f.D=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.fa())a.bandwidth&&(this.f.o=a.bandwidth),a.Xc&&(this.f.f=a.Xc);return this.f.getStats()};
413
+ _.t.getTimelineCues=function(){return this.m?this.m.getTimelineCues():[]};rn.prototype.a=function(){return Mc};rn.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.dc,e=c===_.ic,f=c===_.Kj;return _.fj()||d||e||f&&!_.gj()?0:""!==nj().canPlayType(c)?f&&_.gj()&&(window.ManagedMediaSource||window.MediaSource&&MediaSource.isTypeSupported)&&!b.streaming.preferNativeHlsOnSafari?1:2:0};rn.prototype.create=function(){return new gn};_.Yf(new rn);_.C("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.C("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1});_.C("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var tn=new _.H("clpp.ads"),sn=[];_.C("clpp.utils.dom.createHTMLElement",_.An);Bn.prototype.set=function(a){this.g.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=Dn(this,a)};Bn.prototype.get=function(){return this.a};_.t=Hn.prototype;_.t.getMedia=function(){return this.f.get()};_.t.getContainer=function(){return this.a.get()};_.t.getSafeContainer=function(){return this.a};_.t.getId=function(){return this.m};_.t.getUniqueCssClass=function(){return this.o};_.t.getCastElement=function(){return this.g};_.t.isFullscreen=function(){return!!document.fullscreenElement};_.t.hideMediaElement=function(){var a=this.getMedia();a?_.yn(a,Ic):this.h.debug("No media element available that could be hidden")};
414
+ _.t.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(Ic):this.h.debug("No media element available that could be shown")};_.t.addElementToContainer=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.getContainer();if(!d)throw Error("No container is available. Unable to add element");b&&_.yn(a,_.Hc);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
415
+ _.t.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.t.hide=function(a){_.yn(a,Ic)};_.t.show=function(a){a.classList.remove(Ic)};_.t.release=function(){this.j.release()};Hn.prototype.removeElementFromContainer=Hn.prototype.removeElementFromContainer;Hn.prototype.addElementToContainer=Hn.prototype.addElementToContainer;Hn.prototype.getCastElement=Hn.prototype.getCastElement;
416
+ Hn.prototype.getContainer=Hn.prototype.getContainer;Hn.prototype.getMedia=Hn.prototype.getMedia;var En={disableContainer:!1,crossorigin:"anonymous",containerEl:null},Fn=1;Jn.prototype.release=function(){this.a.release();Nn(this);this.l=null};_.C("clpp.polyfill.installAll",Qn);var Pn=[];_.C("clpp.polyfill.register",_.Rn);Tn.prototype.verify=function(a,b){var c={kty:"RSA",n:a.n,e:a.e},d=this.g+"."+this.f,e=this.j;return new Promise(function(f,g){try{var h=window&&window.crypto&&window.crypto.subtle}catch(m){}if(h){var l={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};h.importKey("jwk",c,l,!1,["verify"]).then(function(m){var n=_.zh(d),p=_.Mh(e);return h.verify(l,m,p.buffer,n.buffer)}).then(function(m){m?f():g(rb)})["catch"](g)}else b?g("Web Crypto API is not supported"):f()})};var Fq={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},ek="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";Un.prototype.verify=function(){var a=this;return(new Promise(function(b,c){try{var d=Vn(a);b(d)}catch(e){c()}})).then(function(b){return b.verify(Fq)})["catch"](function(b){if(b&&b!==rb){var c=window.location.href;var d=new _.Kg(c);c=d.$a||d.Ra?d:new _.Kg("//"+c);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(c.Ra))return Promise.resolve()}throw b;})};var go="vod",fo="live";_.w(U,_.ak);_.t=U.prototype;_.t.on=function(a,b,c){return _.ak.prototype.on.call(this,a,b,c)};_.t.one=function(a,b,c){return _.ak.prototype.one.call(this,a,b,c)};_.t.off=function(a,b){return _.ak.prototype.off.call(this,a,b)};_.t.init=function(){};_.t.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.J(_.id,{detail:a}))};_.t.cc=function(a){a=this.L[a];void 0===a&&(a=null);return a};_.t.getSurface=function(){return this.g};_.t.getConfiguration=function(){return _.K.Qa(this.f)};
417
+ _.t.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.t.unload=function(){return this.a?this.a.unload():Promise.resolve()};_.t.detach=function(){return this.a?this.a.detach():Promise.resolve()};_.t.release=function(){var a=this;if(null!=this.m)return this.h.info("Player release already in progress"),this.m;this.h.debug("Releasing player");this.m=no(this);return this.m["finally"](function(){a.h.debug("Player released");a.m=null})};
418
+ _.t.destroy=function(){var a=this;if(this.F)return this.h.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.F=!0;return this.release().then(function(){a.h.debug(Ba);a.trigger(new _.J("destroying"));return a.ic(_.Nd)}).then(function(){a.a&&a.a.removeDelegate(a);a.kd.clear();a.V.release();if(a.a)return a.a.destroy()}).then(function(){pk(function(b){b.Fa()});_.lk.clear();a.a=null;a.trigger(new _.J("destroyed"))})};
419
+ _.t.load=function(a){var b=this,c;return _.B(function(d){switch(d.a){case 1:return _.zf(d,2),_.x(d,_.qo(b,a),4);case 4:return _.x(d,_.ro(b),5);case 5:return _.x(d,_.to(b),6);case 6:_.Af(d,0);break;case 2:c=_.Bf(d);if(b.m)throw b.h.info("Load interrupted while a player release is pending"),new _.L(_.M,7,7E3);throw c;}})};
420
+ _.t.ic=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];var e=this;d=this.K.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.mf(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};_.t.use=function(a){a=new a;a.Ma(this);_.ok(a)};_.t.remove=function(a){if(this.getState()<=_.Nm||this.I){var b="";pk(function(c){c instanceof a&&(b=c.id(),c.Fa())});if(b)return _.lk["delete"](b),this.J=!0}return!1};
421
+ _.t.play=function(){return this.a?this.j&&this.a.namespace()!==_.Jc?this.j.start(this.a):this.a.play():Promise.reject("No player initialized. You need to load content before calling play.")};_.t.pause=function(){return this.a?this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};_.t.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.t.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.Zj};
422
+ _.t.getState=function(){return this.a?this.a.getState():_.Nm};_.t.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.t.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.t.isPaused=function(){return this.a&&this.a.isPaused()||!1};_.t.getPosition=function(){return this.a?this.a.getPosition():0};_.t.seek=function(a){return this.getState()===_.Ym?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};
424
423
  _.t.getPresentationStartTime=function(){return this.a?this.a.getPresentationStartTime():null};_.t.getSeekRange=function(){return this.a?this.a.getSeekRange():{start:0,end:0}};_.t.getVolume=function(){return this.a?this.a.getVolume():null};_.t.setVolume=function(a){this.a&&this.a.setVolume(a)};_.t.getDuration=function(){return this.a?this.a.getDuration():-1};_.t.getAdsManager=function(){return this.j};_.t.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};
425
424
  _.t.canPlay=function(a,b){return this.a?this.a.canPlay(a,b):0};_.t.getPlaybackRate=function(){return this.a?this.a.getPlaybackRate():1};_.t.setPlaybackRate=function(a){this.a&&this.a.setPlaybackRate(a)};_.t.isMuted=function(){return this.a&&this.a.isMuted()||!1};_.t.setMuted=function(a){this.a&&this.a.setMuted(a)};_.t.getNetworkEngine=function(){return this.H};_.t.setNetworkEngine=function(a){this.H=a};_.t.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};
426
- _.t.isLive=function(){return!!this.a&&this.a.isLive()};_.t.getStats=function(){return this.a?this.a.getStats():null};_.t.Rd=function(){return Object.freeze(this.o)};_.t.setSourceIndex=function(a){this.a&&this.a.setSourceIndex(a)};_.t.getSourceIndex=function(){return this.a?this.a.getSourceIndex():-1};_.t.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};_.t.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.t.resetAbr=function(){this.a&&this.a.resetAbr()};
427
- _.t.setDrmCustomDataModifier=function(a){this.Gc=a;Ao(this)};_.t.setCdnErrorCallback=function(a){this.D=a;this.a&&this.a.setCdnErrorCallback(this.D)};_.t.vg=function(){this.xe=!0};_.C("clpp.Player",U);U.registerPlugin=_.Fo;U.prototype.setCdnErrorCallback=U.prototype.setCdnErrorCallback;U.prototype.setDrmCustomDataModifier=U.prototype.setDrmCustomDataModifier;U.prototype.resetAbr=U.prototype.resetAbr;U.prototype.getTimelineCues=U.prototype.getTimelineCues;U.prototype.getLoadedSource=U.prototype.getLoadedSource;
428
- U.prototype.getSources=U.prototype.Rd;U.prototype.getStats=U.prototype.getStats;U.prototype.isLive=U.prototype.isLive;U.prototype.getTextDisplayer=U.prototype.getTextDisplayer;U.prototype.setNetworkEngine=U.prototype.setNetworkEngine;U.prototype.getNetworkEngine=U.prototype.getNetworkEngine;U.prototype.setMuted=U.prototype.setMuted;U.prototype.isMuted=U.prototype.isMuted;U.prototype.setPlaybackRate=U.prototype.setPlaybackRate;U.prototype.getPlaybackRate=U.prototype.getPlaybackRate;
425
+ _.t.isLive=function(){return!!this.a&&this.a.isLive()};_.t.getStats=function(){return this.a?this.a.getStats():null};_.t.Sd=function(){return Object.freeze(this.o)};_.t.setSourceIndex=function(a){this.a&&this.a.setSourceIndex(a)};_.t.getSourceIndex=function(){return this.a?this.a.getSourceIndex():-1};_.t.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};_.t.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.t.resetAbr=function(){this.a&&this.a.resetAbr()};
426
+ _.t.setDrmCustomDataModifier=function(a){this.Gc=a;po(this)};_.t.setCdnErrorCallback=function(a){this.D=a;this.a&&this.a.setCdnErrorCallback(this.D)};_.t.wg=function(){this.xe=!0};_.C("clpp.Player",U);U.registerPlugin=_.uo;U.prototype.setCdnErrorCallback=U.prototype.setCdnErrorCallback;U.prototype.setDrmCustomDataModifier=U.prototype.setDrmCustomDataModifier;U.prototype.resetAbr=U.prototype.resetAbr;U.prototype.getTimelineCues=U.prototype.getTimelineCues;U.prototype.getLoadedSource=U.prototype.getLoadedSource;
427
+ U.prototype.getSources=U.prototype.Sd;U.prototype.getStats=U.prototype.getStats;U.prototype.isLive=U.prototype.isLive;U.prototype.getTextDisplayer=U.prototype.getTextDisplayer;U.prototype.setNetworkEngine=U.prototype.setNetworkEngine;U.prototype.getNetworkEngine=U.prototype.getNetworkEngine;U.prototype.setMuted=U.prototype.setMuted;U.prototype.isMuted=U.prototype.isMuted;U.prototype.setPlaybackRate=U.prototype.setPlaybackRate;U.prototype.getPlaybackRate=U.prototype.getPlaybackRate;
429
428
  U.prototype.namespace=U.prototype.namespace;U.prototype.getAdsManager=U.prototype.getAdsManager;U.prototype.getDuration=U.prototype.getDuration;U.prototype.setVolume=U.prototype.setVolume;U.prototype.getVolume=U.prototype.getVolume;U.prototype.getSeekRange=U.prototype.getSeekRange;U.prototype.getPresentationStartTime=U.prototype.getPresentationStartTime;U.prototype.seek=U.prototype.seek;U.prototype.getPosition=U.prototype.getPosition;U.prototype.isPaused=U.prototype.isPaused;U.prototype.isEnded=U.prototype.isEnded;
430
429
  U.prototype.getState=U.prototype.getState;U.prototype.getBufferInfo=U.prototype.getBufferInfo;U.prototype.getTrackManager=U.prototype.getTrackManager;U.prototype.pause=U.prototype.pause;U.prototype.play=U.prototype.play;U.prototype.remove=U.prototype.remove;U.prototype.use=U.prototype.use;U.prototype.load=U.prototype.load;U.prototype.destroy=U.prototype.destroy;U.prototype.release=U.prototype.release;U.prototype.getDrmInfo=U.prototype.getDrmInfo;U.prototype.getConfiguration=U.prototype.getConfiguration;
431
- U.prototype.getSurface=U.prototype.getSurface;U.prototype.getPlugin=U.prototype.cc;U.prototype.off=U.prototype.off;U.prototype.one=U.prototype.one;U.prototype.on=U.prototype.on;_.Ym=0;_.kn=1;_.cn=2;_.mn=3;_.ln=4;_.en=5;_.jn=6;_.Zm=7;_.gn={IDLE:_.Ym,PREPARING:_.kn,BUFFERING:_.cn,PLAYING:_.mn,PAUSED:_.ln,ENDED:_.en,ERROR:_.jn,UNSET:_.Zm};U.State=_.gn;var vo=[];_.t=V.prototype;_.t.ub=function(){};_.t.vb=function(){};_.t.Ab=function(){};_.t.getId=function(){};_.t.getCreativeId=function(){};_.t.getApiFramework=function(){};_.t.getAdSystem=function(){};_.t.getAdvertiserName=function(){};_.t.getTitle=function(){};_.t.getDuration=function(){};_.t.getSkipTimeOffset=function(){};_.t.gc=function(){};_.t.Nb=function(){};_.t.getMediaUrl=function(){};_.t.xb=function(){};_.t.wb=function(){};_.t.jb=function(){};_.t.Ya=function(){};_.t.getPodIndex=function(){};
432
- _.t.Ob=function(){};_.t.Pb=function(){};_.t.zb=function(){};_.t.getWrapperAdIds=function(){};_.t.getWrapperAdSystems=function(){};_.t.getWrapperCreativeIds=function(){};_.C("clpp.ads.IAd",V);V.prototype.getWrapperCreativeIds=V.prototype.getWrapperCreativeIds;V.prototype.getWrapperAdSystems=V.prototype.getWrapperAdSystems;V.prototype.getWrapperAdIds=V.prototype.getWrapperAdIds;V.prototype.getSequenceLength=V.prototype.zb;V.prototype.getPositionInSequence=V.prototype.Pb;
433
- V.prototype.getPodTimeOffset=V.prototype.Ob;V.prototype.getPodIndex=V.prototype.getPodIndex;V.prototype.getPodType=V.prototype.Ya;V.prototype.getMediaBitrate=V.prototype.jb;V.prototype.getMediaHeight=V.prototype.wb;V.prototype.getMediaWidth=V.prototype.xb;V.prototype.getMediaUrl=V.prototype.getMediaUrl;V.prototype.getClickThroughUrl=V.prototype.Nb;V.prototype.isBumper=V.prototype.gc;V.prototype.getSkipTimeOffset=V.prototype.getSkipTimeOffset;V.prototype.getDuration=V.prototype.getDuration;
434
- V.prototype.getTitle=V.prototype.getTitle;V.prototype.getAdvertiserName=V.prototype.getAdvertiserName;V.prototype.getAdSystem=V.prototype.getAdSystem;V.prototype.getApiFramework=V.prototype.getApiFramework;V.prototype.getCreativeId=V.prototype.getCreativeId;V.prototype.getId=V.prototype.getId;V.prototype.getTechnology=V.prototype.Ab;V.prototype.getAdManagerVersion=V.prototype.vb;V.prototype.getAdManagerName=V.prototype.ub;Go.prototype.name=function(){};Go.prototype.$=function(){};Go.prototype.create=function(){};_.C("clpp.ads.IAdsManagerFactory",Go);Go.prototype.create=Go.prototype.create;Go.prototype.isSupported=Go.prototype.$;Go.prototype.name=Go.prototype.name;_.t=Ho.prototype;_.t.load=function(){};_.t.start=function(){};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){};_.t.setVolume=function(){};_.t.getPosition=function(){};_.t.dispose=function(){};_.C("clpp.ads.IAdsManager",Ho);Ho.prototype.getPosition=Ho.prototype.getPosition;Ho.prototype.setVolume=Ho.prototype.setVolume;Ho.prototype.getVolume=Ho.prototype.getVolume;Ho.prototype.skip=Ho.prototype.skip;Ho.prototype.pause=Ho.prototype.pause;
435
- Ho.prototype.resume=Ho.prototype.resume;_.t=Io.prototype;_.t.load=function(){return Promise.resolve()};_.t.start=function(a){return a.play()};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){return 1};_.t.setVolume=function(){};_.t.getPosition=function(){return-1};_.t.dispose=function(){return _.B(function(a){_.z(a)})};Io.prototype.dispose=Io.prototype.dispose;Io.prototype.getPosition=Io.prototype.getPosition;Io.prototype.setVolume=Io.prototype.setVolume;Io.prototype.getVolume=Io.prototype.getVolume;
436
- Io.prototype.skip=Io.prototype.skip;Io.prototype.pause=Io.prototype.pause;Io.prototype.resume=Io.prototype.resume;Io.prototype.start=Io.prototype.start;Io.prototype.load=Io.prototype.load;Gn.prototype.name=function(){return"clpp.ads.NopAdsManagerFactory"};Gn.prototype.$=function(){return!0};Gn.prototype.create=function(){return new Io};Gn.prototype.create=Gn.prototype.create;Gn.prototype.isSupported=Gn.prototype.$;Gn.prototype.name=Gn.prototype.name;Jo.prototype.getCuePoints=function(){};Jo.prototype.Qb=function(){};Jo.prototype.kb=function(){};_.C("clpp.ads.IAdsTimeline",Jo);Jo.prototype.hasPostroll=Jo.prototype.kb;Jo.prototype.hasPreroll=Jo.prototype.Qb;Jo.prototype.getCuePoints=Jo.prototype.getCuePoints;_.Ko.prototype.$b=function(){};_.Ko.prototype.release=function(){};_.t=Lo.prototype;_.t.Gd=function(a){this.a=a};_.t.bd=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(Xa)};_.t.Qd=function(){return this.a&&this.a.mediaKeys};_.t.Cc=function(a,b){return navigator.requestMediaKeySystemAccess(a,b)};_.t.$c=function(){return mb};Mo.prototype.a=function(){return mb};Mo.prototype.$=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};
437
- Mo.prototype.create=function(){return new Lo};zl(new Mo,1E3);_.t=No.prototype;_.t.getStatus=function(){return this.a};_.t.forEach=function(a){this.a&&a(this.a,Qq.value())};_.t.get=function(a){if(this.has(a))return this.a};_.t.has=function(a){var b=Qq.value();return this.a&&oh(a,b)?!0:!1};_.t.entries=function(){};_.t.keys=function(){};_.t.values=function(){};var Qq=new _.Vm(function(){return uh(new Uint8Array([0]))});_.t=Po.prototype;_.t.Gd=function(){};_.t.bd=function(a){_.Tf("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.t.Qd=function(){return null};_.t.Cc=function(){_.Tf("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.t.$c=function(){return"NOP"};Qo.prototype.a=function(){return"NOP"};Qo.prototype.$=function(){return!0};Qo.prototype.create=function(){return new Po};
438
- zl(new Qo,-1);_.t=Ro.prototype;_.t.Gd=function(a){this.f=a};_.t.bd=function(a){var b=this.a;b&&b!==a&&Uo(b,null);return(this.a=a)?Uo(a,this.f):Promise.resolve()};_.t.Qd=function(){return this.a};_.t.Cc=function(a,b){_.Tf("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new So(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.t.$c=function(){return"APPLE"};So.prototype.createMediaKeys=function(){var a=new To(this.keySystem);return Promise.resolve(a)};
439
- So.prototype.getConfiguration=function(){_.Tf("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};To.prototype.createSession=function(a){a=void 0===a?Be:a;this.h.debug("Creating Apple MediaKeys Session");if(a!==Be)throw new TypeError("Session type "+a+ba);return new Vo(this.g,"__session_"+this.j++)};To.prototype.setServerCertificate=function(){this.h.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.w(Vo,_.bk);_.t=Vo.prototype;
440
- _.t.generateRequest=function(a,b){var c=this;if(this.m)return Promise.reject(pb);this.h.debug("generateRequest");this.g=new _.di;try{var d=this.o.createSession(_.Te,_.N(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,df,function(e){var f=c.keyStatuses.getStatus();c.h.debug("Received Key Message in "+c.sessionId);c.g&&(c.g.resolve(),c.g=null);e=new _.I(Bd,{messageType:void 0===f||f===te?td:sd,message:uh(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,bf,function(e){c.h.debug("onWebkitKeyAdded_",
441
- e);c.f&&(Wo(c,"usable"),c.f.resolve(),c.f=null)});this.j.on(d,cf,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===te)c.h.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.h.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.g)c.g.reject(e),c.g=null;else if(null!==c.f)c.f.reject(e),
442
- c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:Wo(c,"output-not-allowed");break;default:Wo(c,_.pd)}});Wo(this,te)}catch(e){this.g.reject(e)}return this.g};_.t.load=function(){this.h.debug("load");return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.t.update=function(a){if(this.m)return Promise.reject(pb);this.h.debug("update");this.f=new _.di;try{this.a.update(_.N(a))}catch(b){this.f.reject(b)}return this.f};
443
- _.t.close=function(){if(this.m)return this.closed;this.h.info("Closing Key Session "+this.sessionId);this.m=!0;try{this.a.close(),this.closed.resolve(),_.hg(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.t.remove=function(){this.h.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};Xo.prototype.a=function(){return"APPLE"};Xo.prototype.$=function(){return!!window.WebKitMediaKeys};
444
- Xo.prototype.create=function(){return new Ro};zl(new Xo,1100);_.t=Yo.prototype;_.t.Gd=function(a){this.a=a};_.t.bd=function(a){_.Tf("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(Xa);var b=this.f;b&&b!==a&&cp(b,null);(this.f=a)&&cp(a,this.a);return Promise.resolve()};_.t.Qd=function(){return this.f};_.t.Cc=function(a,b){_.Tf("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.Re);c=d.length?d[0]:document.createElement(_.Re)}var e=new Zo(this.g,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
445
- _.t.$c=function(){return"WEBKIT"};Zo.prototype.createMediaKeys=function(){return Promise.resolve(new $o(this.g,this.a))};Zo.prototype.getConfiguration=function(){return this.f};$o.prototype.createSession=function(a){a=void 0===a?Be:a;if(a!==Be&&a!==_.Xd)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=Ra,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new dp(this.g,this.a,this.o,a);this.j.push(a);return a};
446
- $o.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.w(dp,_.bk);_.t=dp.prototype;_.t.generateRequest=function(a,b){_.Tf("WebkitEmeManager.MediaKeySession.generateRequest");return fp(this,b,null)};_.t.load=function(a){_.Tf(Fb);return this.m===_.Xd?fp(this,null,a):Promise.reject(Error(ab))};_.t.update=function(a){_.Tf(Fb);var b=new _.di;gp(this,b,a);return b};
447
- _.t.close=function(){_.Tf("WebkitEmeManager.MediaKeySession.close");if(this.m!==_.Xd){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=ep(this,"cancelKeyRequest");try{this.j[a](this.g,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.t.remove=function(){_.Tf("WebkitEmeManager.MediaKeySession.remove");return this.m!==_.Xd?Promise.reject(Error(ab)):this.close()};hp.prototype.a=function(){return"WEBKIT"};
448
- hp.prototype.$=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};hp.prototype.create=function(){return new Yo};zl(new hp);_.w(ip,_.Bk);ip.prototype.rd=function(a,b){for(var c=a.drm.customData.headers||{},d=_.u(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};ip.prototype.Yf=function(a,b){var c=Xk(b);switch(this.o){case Rq:return c;case Sq:return(new _.Bi(c)).a;default:throw Error("Unknown content ID strategy");}};ip.prototype.zg=function(a,b){b.headers[ua]=kc;this.rd(a,b);var c={spc:_.Lh(b.body)};b.body=_.Ch(_.Di(c,!0))};
449
- ip.prototype.Ag=function(a,b){var c=_.wh(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.Nh(c).buffer};_.C(Lc,ip);ip.prototype.onFairPlayLicenseResponse=ip.prototype.Ag;ip.prototype.onFairPlayLicenseRequest=ip.prototype.zg;ip.prototype.extractFairPlayContentId=ip.prototype.Yf;ip.prototype.onLicenseRequest=ip.prototype.rd;ip.prototype.constructor=ip.prototype.constructor;ip.NAME=Pa;var Sq="hostname",Rq="full-skd";
450
- ip.FairPlayContentIdStrategy={HOSTNAME:Sq,FULL_SKD:Rq};_.w(jp,_.Ko);_.t=jp.prototype;_.t.Ma=function(a){this.l=a};_.t.Fa=function(){this.l=null};_.t.$b=function(){var a=this.l.getConfiguration();if(a.drm&&a.drm&&a.drm.env===Pa){a=a.drm.customData;if(!a)throw new _.L(_.M,7,7100,_.Vc);a=new ip(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||Rq);_.wk(a)}};_.t.release=function(){};_.t.id=function(){return"headerdrm"};_.C("clpp.drm.HeaderDrmComponent",jp);_.bo(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=_.N(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.bo(function(){_.Tf("mathRound.install")});_.bo(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;kd in document||(Object.defineProperty(document,kd,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
451
- {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",kp);document.addEventListener("webkitfullscreenerror",kp);document.addEventListener("mozfullscreenchange",kp);document.addEventListener("mozfullscreenerror",kp);document.addEventListener("MSFullscreenChange",kp);document.addEventListener("MSFullscreenError",kp)}});_.bo(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Tf("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=mp,document.exitPictureInPicture=np,document.addEventListener("webkitpresentationmodechanged",lp,!0))}});_.bo(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=op)}});_.bo(function(){if(window.VTTCue)_.Sf("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Sf(Cb),window.VTTCue=pp;else if(6===a)_.Sf("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=qp;else{try{var b=!!pp(1,2,"")}catch(c){b=!1}b&&(_.Sf(Cb),window.VTTCue=pp)}}else _.Uf("VTTCue not available.")});var rp;_.bo(function(){_.Tf("InputEvent.install");_.dj("Trident/")&&HTMLInputElement.prototype.addEventListener!==sp&&(_.Sf("Patching input event support on IE."),rp=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=sp)});_.bo(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.bo(function(){_.Tf("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}}});_.Ap.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.j(b.contentRect.width,b.contentRect.height,a.f.isFullscreen())});this.a.observe(this.g)};_.Ap.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.Cp.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.Re);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.di;c=c.play();var e=(new _.aj(function(){b(a)})).Z(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===cb?b(!0):b(!1)}):b(!0);return d};
452
- var Bp=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,
430
+ U.prototype.getSurface=U.prototype.getSurface;U.prototype.getPlugin=U.prototype.cc;U.prototype.off=U.prototype.off;U.prototype.one=U.prototype.one;U.prototype.on=U.prototype.on;_.Nm=0;_.Zm=1;_.Sm=2;_.an=3;_.$m=4;_.Um=5;_.Ym=6;_.Om=7;_.Wm={IDLE:_.Nm,PREPARING:_.Zm,BUFFERING:_.Sm,PLAYING:_.an,PAUSED:_.$m,ENDED:_.Um,ERROR:_.Ym,UNSET:_.Om};U.State=_.Wm;var ko=[];_.t=V.prototype;_.t.tb=function(){};_.t.ub=function(){};_.t.zb=function(){};_.t.getId=function(){};_.t.getCreativeId=function(){};_.t.getApiFramework=function(){};_.t.getAdSystem=function(){};_.t.getAdvertiserName=function(){};_.t.getTitle=function(){};_.t.getDuration=function(){};_.t.getSkipTimeOffset=function(){};_.t.gc=function(){};_.t.Nb=function(){};_.t.getMediaUrl=function(){};_.t.wb=function(){};_.t.vb=function(){};_.t.ib=function(){};_.t.Ya=function(){};_.t.getPodIndex=function(){};
431
+ _.t.Ob=function(){};_.t.Pb=function(){};_.t.yb=function(){};_.t.getWrapperAdIds=function(){};_.t.getWrapperAdSystems=function(){};_.t.getWrapperCreativeIds=function(){};_.C("clpp.ads.IAd",V);V.prototype.getWrapperCreativeIds=V.prototype.getWrapperCreativeIds;V.prototype.getWrapperAdSystems=V.prototype.getWrapperAdSystems;V.prototype.getWrapperAdIds=V.prototype.getWrapperAdIds;V.prototype.getSequenceLength=V.prototype.yb;V.prototype.getPositionInSequence=V.prototype.Pb;
432
+ V.prototype.getPodTimeOffset=V.prototype.Ob;V.prototype.getPodIndex=V.prototype.getPodIndex;V.prototype.getPodType=V.prototype.Ya;V.prototype.getMediaBitrate=V.prototype.ib;V.prototype.getMediaHeight=V.prototype.vb;V.prototype.getMediaWidth=V.prototype.wb;V.prototype.getMediaUrl=V.prototype.getMediaUrl;V.prototype.getClickThroughUrl=V.prototype.Nb;V.prototype.isBumper=V.prototype.gc;V.prototype.getSkipTimeOffset=V.prototype.getSkipTimeOffset;V.prototype.getDuration=V.prototype.getDuration;
433
+ V.prototype.getTitle=V.prototype.getTitle;V.prototype.getAdvertiserName=V.prototype.getAdvertiserName;V.prototype.getAdSystem=V.prototype.getAdSystem;V.prototype.getApiFramework=V.prototype.getApiFramework;V.prototype.getCreativeId=V.prototype.getCreativeId;V.prototype.getId=V.prototype.getId;V.prototype.getTechnology=V.prototype.zb;V.prototype.getAdManagerVersion=V.prototype.ub;V.prototype.getAdManagerName=V.prototype.tb;vo.prototype.name=function(){};vo.prototype.aa=function(){};vo.prototype.create=function(){};_.C("clpp.ads.IAdsManagerFactory",vo);vo.prototype.create=vo.prototype.create;vo.prototype.isSupported=vo.prototype.aa;vo.prototype.name=vo.prototype.name;_.t=wo.prototype;_.t.load=function(){};_.t.start=function(){};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){};_.t.setVolume=function(){};_.t.getPosition=function(){};_.t.dispose=function(){};_.C("clpp.ads.IAdsManager",wo);wo.prototype.getPosition=wo.prototype.getPosition;wo.prototype.setVolume=wo.prototype.setVolume;wo.prototype.getVolume=wo.prototype.getVolume;wo.prototype.skip=wo.prototype.skip;wo.prototype.pause=wo.prototype.pause;
434
+ wo.prototype.resume=wo.prototype.resume;_.t=xo.prototype;_.t.load=function(){return Promise.resolve()};_.t.start=function(a){return a.play()};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){return 1};_.t.setVolume=function(){};_.t.getPosition=function(){return-1};_.t.dispose=function(){return _.B(function(a){_.z(a)})};xo.prototype.dispose=xo.prototype.dispose;xo.prototype.getPosition=xo.prototype.getPosition;xo.prototype.setVolume=xo.prototype.setVolume;xo.prototype.getVolume=xo.prototype.getVolume;
435
+ xo.prototype.skip=xo.prototype.skip;xo.prototype.pause=xo.prototype.pause;xo.prototype.resume=xo.prototype.resume;xo.prototype.start=xo.prototype.start;xo.prototype.load=xo.prototype.load;vn.prototype.name=function(){return"clpp.ads.NopAdsManagerFactory"};vn.prototype.aa=function(){return!0};vn.prototype.create=function(){return new xo};vn.prototype.create=vn.prototype.create;vn.prototype.isSupported=vn.prototype.aa;vn.prototype.name=vn.prototype.name;yo.prototype.getCuePoints=function(){};yo.prototype.Qb=function(){};yo.prototype.jb=function(){};_.C("clpp.ads.IAdsTimeline",yo);yo.prototype.hasPostroll=yo.prototype.jb;yo.prototype.hasPreroll=yo.prototype.Qb;yo.prototype.getCuePoints=yo.prototype.getCuePoints;_.zo.prototype.$b=function(){};_.zo.prototype.release=function(){};_.t=Ao.prototype;_.t.Jd=function(a){this.a=a};_.t.cd=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(Xa)};_.t.Rd=function(){return this.a&&this.a.mediaKeys};_.t.Cc=function(a,b){return navigator.requestMediaKeySystemAccess(a,b)};_.t.bd=function(){return lb};Bo.prototype.a=function(){return lb};Bo.prototype.aa=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};
436
+ Bo.prototype.create=function(){return new Ao};yl(new Bo,1E3);_.t=Co.prototype;_.t.getStatus=function(){return this.a};_.t.forEach=function(a){this.a&&a(this.a,Gq.value())};_.t.get=function(a){if(this.has(a))return this.a};_.t.has=function(a){var b=Gq.value();return this.a&&mh(a,b)?!0:!1};_.t.entries=function(){};_.t.keys=function(){};_.t.values=function(){};var Gq=new _.Km(function(){return th(new Uint8Array([0]))});_.t=Eo.prototype;_.t.Jd=function(){};_.t.cd=function(a){_.Sf("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.t.Rd=function(){return null};_.t.Cc=function(){_.Sf("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.t.bd=function(){return"NOP"};Fo.prototype.a=function(){return"NOP"};Fo.prototype.aa=function(){return!0};Fo.prototype.create=function(){return new Eo};
437
+ yl(new Fo,-1);_.t=Go.prototype;_.t.Jd=function(a){this.f=a};_.t.cd=function(a){var b=this.a;b&&b!==a&&Jo(b,null);return(this.a=a)?Jo(a,this.f):Promise.resolve()};_.t.Rd=function(){return this.a};_.t.Cc=function(a,b){_.Sf("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new Ho(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.t.bd=function(){return"APPLE"};Ho.prototype.createMediaKeys=function(){var a=new Io(this.keySystem);return Promise.resolve(a)};
438
+ Ho.prototype.getConfiguration=function(){_.Sf("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};Io.prototype.createSession=function(a){a=void 0===a?Ae:a;this.h.debug("Creating Apple MediaKeys Session");if(a!==Ae)throw new TypeError("Session type "+a+ba);return new Ko(this.g,"__session_"+this.j++)};Io.prototype.setServerCertificate=function(){this.h.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.w(Ko,_.ak);_.t=Ko.prototype;
439
+ _.t.generateRequest=function(a,b){var c=this;if(this.m)return Promise.reject(ob);this.h.debug("generateRequest");this.g=new _.ci;try{var d=this.o.createSession(_.Se,_.N(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,cf,function(e){var f=c.keyStatuses.getStatus();c.h.debug("Received Key Message in "+c.sessionId);c.g&&(c.g.resolve(),c.g=null);e=new _.J(Ad,{messageType:void 0===f||f===re?sd:rd,message:th(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,af,function(e){c.h.debug("onWebkitKeyAdded_",
440
+ e);c.f&&(Lo(c,"usable"),c.f.resolve(),c.f=null)});this.j.on(d,bf,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===re)c.h.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.h.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.g)c.g.reject(e),c.g=null;else if(null!==c.f)c.f.reject(e),
441
+ c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:Lo(c,"output-not-allowed");break;default:Lo(c,_.od)}});Lo(this,re)}catch(e){this.g.reject(e)}return this.g};_.t.load=function(){this.h.debug("load");return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.t.update=function(a){if(this.m)return Promise.reject(ob);this.h.debug("update");this.f=new _.ci;try{this.a.update(_.N(a))}catch(b){this.f.reject(b)}return this.f};
442
+ _.t.close=function(){if(this.m)return this.closed;this.h.info("Closing Key Session "+this.sessionId);this.m=!0;try{this.a.close(),this.closed.resolve(),_.gg(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.t.remove=function(){this.h.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};Mo.prototype.a=function(){return"APPLE"};Mo.prototype.aa=function(){return!!window.WebKitMediaKeys};
443
+ Mo.prototype.create=function(){return new Go};yl(new Mo,1100);_.t=No.prototype;_.t.Jd=function(a){this.a=a};_.t.cd=function(a){_.Sf("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(Xa);var b=this.f;b&&b!==a&&So(b,null);(this.f=a)&&So(a,this.a);return Promise.resolve()};_.t.Rd=function(){return this.f};_.t.Cc=function(a,b){_.Sf("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.Qe);c=d.length?d[0]:document.createElement(_.Qe)}var e=new Oo(this.g,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
444
+ _.t.bd=function(){return"WEBKIT"};Oo.prototype.createMediaKeys=function(){return Promise.resolve(new Po(this.g,this.a))};Oo.prototype.getConfiguration=function(){return this.f};Po.prototype.createSession=function(a){a=void 0===a?Ae:a;if(a!==Ae&&a!==_.Wd)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=Ra,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new To(this.g,this.a,this.o,a);this.j.push(a);return a};
445
+ Po.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.w(To,_.ak);_.t=To.prototype;_.t.generateRequest=function(a,b){_.Sf("WebkitEmeManager.MediaKeySession.generateRequest");return Vo(this,b,null)};_.t.load=function(a){_.Sf(Db);return this.m===_.Wd?Vo(this,null,a):Promise.reject(Error(ab))};_.t.update=function(a){_.Sf(Db);var b=new _.ci;Wo(this,b,a);return b};
446
+ _.t.close=function(){_.Sf("WebkitEmeManager.MediaKeySession.close");if(this.m!==_.Wd){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=Uo(this,"cancelKeyRequest");try{this.j[a](this.g,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.t.remove=function(){_.Sf("WebkitEmeManager.MediaKeySession.remove");return this.m!==_.Wd?Promise.reject(Error(ab)):this.close()};Xo.prototype.a=function(){return"WEBKIT"};
447
+ Xo.prototype.aa=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};Xo.prototype.create=function(){return new No};yl(new Xo);_.w(Yo,_.Ak);Yo.prototype.sd=function(a,b){for(var c=a.drm.customData.headers||{},d=_.u(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};Yo.prototype.Zf=function(a,b){var c=Wk(b);switch(this.o){case Hq:return c;case Iq:return(new _.Ai(c)).a;default:throw Error("Unknown content ID strategy");}};Yo.prototype.Ag=function(a,b){b.headers[ta]=jc;this.sd(a,b);var c={spc:_.Kh(b.body)};b.body=_.Bh(_.Ci(c,!0))};
448
+ Yo.prototype.Bg=function(a,b){var c=_.vh(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.Mh(c).buffer};_.C(Kc,Yo);Yo.prototype.onFairPlayLicenseResponse=Yo.prototype.Bg;Yo.prototype.onFairPlayLicenseRequest=Yo.prototype.Ag;Yo.prototype.extractFairPlayContentId=Yo.prototype.Zf;Yo.prototype.onLicenseRequest=Yo.prototype.sd;Yo.prototype.constructor=Yo.prototype.constructor;Yo.NAME=Pa;var Iq="hostname",Hq="full-skd";
449
+ Yo.FairPlayContentIdStrategy={HOSTNAME:Iq,FULL_SKD:Hq};_.w(Zo,_.zo);_.t=Zo.prototype;_.t.Ma=function(a){this.l=a};_.t.Fa=function(){this.l=null};_.t.$b=function(){var a=this.l.getConfiguration();if(a.drm&&a.drm&&a.drm.env===Pa){a=a.drm.customData;if(!a)throw new _.L(_.M,7,7100,_.Uc);a=new Yo(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||Hq);_.vk(a)}};_.t.release=function(){};_.t.id=function(){return"headerdrm"};_.C("clpp.drm.HeaderDrmComponent",Zo);_.Rn(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=_.N(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.Rn(function(){_.Sf("mathRound.install")});_.Rn(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;jd in document||(Object.defineProperty(document,jd,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
450
+ {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",$o);document.addEventListener("webkitfullscreenerror",$o);document.addEventListener("mozfullscreenchange",$o);document.addEventListener("mozfullscreenerror",$o);document.addEventListener("MSFullscreenChange",$o);document.addEventListener("MSFullscreenError",$o)}});_.Rn(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Sf("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=bp,document.exitPictureInPicture=cp,document.addEventListener("webkitpresentationmodechanged",ap,!0))}});_.Rn(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=dp)}});_.Rn(function(){if(window.VTTCue)_.Rf("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Rf(Ab),window.VTTCue=ep;else if(6===a)_.Rf("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=fp;else{try{var b=!!ep(1,2,"")}catch(c){b=!1}b&&(_.Rf(Ab),window.VTTCue=ep)}}else _.Tf("VTTCue not available.")});var gp;_.Rn(function(){_.Sf("InputEvent.install");_.cj("Trident/")&&HTMLInputElement.prototype.addEventListener!==hp&&(_.Rf("Patching input event support on IE."),gp=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=hp)});_.Rn(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.Rn(function(){_.Sf("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}}});_.pp.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.j(b.contentRect.width,b.contentRect.height,a.f.isFullscreen())});this.a.observe(this.g)};_.pp.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.rp.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.Qe);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.ci;c=c.play();var e=(new _.$i(function(){b(a)})).$(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===cb?b(!0):b(!1)}):b(!0);return d};
451
+ var qp=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,
453
452
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
454
453
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
455
454
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
456
455
  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,
457
456
  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,
458
- 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]);_.Tq=new _.H("clpp.media.TimestampParser");_.Fp={};_.Hp={};var Mp=window.XMLHttpRequest;_.w(Up,_.ei);Up.prototype.then=function(a,b){this.O=this.O.then(a,b);return this};Up.prototype["catch"]=function(a){this.O=this.O["catch"](a);return this};Up.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.g.then(function(b){a.o&&clearTimeout(a.o);a.m&&a.m();return b.abort()})["catch"](function(){})};var $p=window.fetch,Yp=window.AbortController,Xp=window.Headers;_.bq={};_.t=_.dq.prototype;_.t.getBackgroundColor=function(){return this.K};_.t.setBackgroundColor=function(a){this.K=a;this.rb()};_.t.getWindowColor=function(){return this.V};_.t.setWindowColor=function(a){this.V=a;this.rb()};_.t.getFontFamily=function(){return this.T};_.t.setFontFamily=function(a){this.T=a;this.rb()};_.t.getFontColor=function(){return this.P};_.t.setFontColor=function(a){this.P=a;this.rb()};_.t.getFontSize=function(){return this.I};_.t.setFontSize=function(a){this.I=a;this.rb()};
459
- _.t.getFontSizePercent=function(){return null===this.B?Uq:this.B};_.t.setFontSizePercent=function(a){this.B=a;this.rb()};_.t.getEdgeColor=function(){return this.H};_.t.setEdgeColor=function(a){this.H=a;this.rb()};_.t.getEdgeType=function(){return this.o};_.t.setEdgeType=function(a){this.o=a;this.rb()};_.dq.prototype.setEdgeType=_.dq.prototype.setEdgeType;_.dq.prototype.getEdgeType=_.dq.prototype.getEdgeType;_.dq.prototype.setEdgeColor=_.dq.prototype.setEdgeColor;_.dq.prototype.getEdgeColor=_.dq.prototype.getEdgeColor;
460
- _.dq.prototype.setFontSizePercent=_.dq.prototype.setFontSizePercent;_.dq.prototype.getFontSizePercent=_.dq.prototype.getFontSizePercent;_.dq.prototype.setFontSize=_.dq.prototype.setFontSize;_.dq.prototype.getFontSize=_.dq.prototype.getFontSize;_.dq.prototype.setFontColor=_.dq.prototype.setFontColor;_.dq.prototype.getFontColor=_.dq.prototype.getFontColor;_.dq.prototype.setFontFamily=_.dq.prototype.setFontFamily;_.dq.prototype.getFontFamily=_.dq.prototype.getFontFamily;
461
- _.dq.prototype.setWindowColor=_.dq.prototype.setWindowColor;_.dq.prototype.getWindowColor=_.dq.prototype.getWindowColor;_.dq.prototype.setBackgroundColor=_.dq.prototype.setBackgroundColor;_.dq.prototype.getBackgroundColor=_.dq.prototype.getBackgroundColor;var Uq=1/15;var eq="raised",fq="depressed",hq="dropshadow",gq="uniform";_.C("clpp.text.EdgeType",{NONE:_.Kd,RAISED:eq,DEPRESSED:fq,DROP_SHADOW:hq,UNIFORM:gq});jq.prototype.parseInit=function(a){try{var b=_.bq[_.gc]||null;if(b){var c=new b(this.f);c.parseInit(a)}else this.h.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=_.bq[_.hc]||null;d?(c=new d(this.f),c.parseInit(a)):this.h.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 _.L(_.M,2,2011);}};
462
- jq.prototype.parseMedia=function(a,b){if(!this.a)throw new _.L(_.M,2,2011);return this.a.parseMedia(a,b)};_.bq[fc]=jq;_.w(_.lq,_.dq);_.t=_.lq.prototype;_.t.append=function(){};_.t.remove=function(){return!0};_.t.isTextVisible=function(){return this.w};_.t.setTextVisibility=function(a){this.w=a};
463
- _.t.rb=function(){if(!this.j){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.iq(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.g.textContent="."+this.f+"::cue {"+b+"}"}};_.t.destroy=function(){this.m.classList.remove(this.f);document.head.removeChild(this.g);this.j=!0;return Promise.resolve()};var kq=0;mq.prototype.$=function(){return!0};mq.prototype.create=function(a){return new _.lq(a)};_.Lm("native",new mq);_.nq.prototype.onContentWillLoad=function(){return Promise.resolve()};_.nq.prototype.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.nq.prototype.onPlayerWillDestroy=function(){};_.nq.prototype.onPlayerWillRelease=function(){};}.call(g,this));
457
+ 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]);_.Jq=new _.H("clpp.media.TimestampParser");_.up={};_.wp={};var Bp=window.XMLHttpRequest;_.w(Jp,_.di);Jp.prototype.then=function(a,b){this.P=this.P.then(a,b);return this};Jp.prototype["catch"]=function(a){this.P=this.P["catch"](a);return this};Jp.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.g.then(function(b){a.o&&clearTimeout(a.o);a.m&&a.m();return b.abort()})["catch"](function(){})};var Pp=window.fetch,Np=window.AbortController,Mp=window.Headers;_.Rp={};_.t=_.Tp.prototype;_.t.getBackgroundColor=function(){return this.K};_.t.setBackgroundColor=function(a){this.K=a;this.qb()};_.t.getWindowColor=function(){return this.V};_.t.setWindowColor=function(a){this.V=a;this.qb()};_.t.getFontFamily=function(){return this.S};_.t.setFontFamily=function(a){this.S=a;this.qb()};_.t.getFontColor=function(){return this.O};_.t.setFontColor=function(a){this.O=a;this.qb()};_.t.getFontSize=function(){return this.I};_.t.setFontSize=function(a){this.I=a;this.qb()};
458
+ _.t.getFontSizePercent=function(){return null===this.B?Kq:this.B};_.t.setFontSizePercent=function(a){this.B=a;this.qb()};_.t.getEdgeColor=function(){return this.H};_.t.setEdgeColor=function(a){this.H=a;this.qb()};_.t.getEdgeType=function(){return this.o};_.t.setEdgeType=function(a){this.o=a;this.qb()};_.Tp.prototype.setEdgeType=_.Tp.prototype.setEdgeType;_.Tp.prototype.getEdgeType=_.Tp.prototype.getEdgeType;_.Tp.prototype.setEdgeColor=_.Tp.prototype.setEdgeColor;_.Tp.prototype.getEdgeColor=_.Tp.prototype.getEdgeColor;
459
+ _.Tp.prototype.setFontSizePercent=_.Tp.prototype.setFontSizePercent;_.Tp.prototype.getFontSizePercent=_.Tp.prototype.getFontSizePercent;_.Tp.prototype.setFontSize=_.Tp.prototype.setFontSize;_.Tp.prototype.getFontSize=_.Tp.prototype.getFontSize;_.Tp.prototype.setFontColor=_.Tp.prototype.setFontColor;_.Tp.prototype.getFontColor=_.Tp.prototype.getFontColor;_.Tp.prototype.setFontFamily=_.Tp.prototype.setFontFamily;_.Tp.prototype.getFontFamily=_.Tp.prototype.getFontFamily;
460
+ _.Tp.prototype.setWindowColor=_.Tp.prototype.setWindowColor;_.Tp.prototype.getWindowColor=_.Tp.prototype.getWindowColor;_.Tp.prototype.setBackgroundColor=_.Tp.prototype.setBackgroundColor;_.Tp.prototype.getBackgroundColor=_.Tp.prototype.getBackgroundColor;var Kq=1/15;var Up="raised",Vp="depressed",Xp="dropshadow",Wp="uniform";_.C("clpp.text.EdgeType",{NONE:_.Jd,RAISED:Up,DEPRESSED:Vp,DROP_SHADOW:Xp,UNIFORM:Wp});Zp.prototype.parseInit=function(a){try{var b=_.Rp[_.fc]||null;if(b){var c=new b(this.f);c.parseInit(a)}else this.h.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=_.Rp[_.gc]||null;d?(c=new d(this.f),c.parseInit(a)):this.h.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 _.L(_.M,2,2011);}};
461
+ Zp.prototype.parseMedia=function(a,b){if(!this.a)throw new _.L(_.M,2,2011);return this.a.parseMedia(a,b)};_.Rp[ec]=Zp;_.w(_.aq,_.Tp);_.t=_.aq.prototype;_.t.append=function(){};_.t.remove=function(){return!0};_.t.isTextVisible=function(){return this.w};_.t.setTextVisibility=function(a){this.w=a};
462
+ _.t.qb=function(){if(!this.j){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.Yp(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.g.textContent="."+this.f+"::cue {"+b+"}"}};_.t.destroy=function(){this.m.classList.remove(this.f);document.head.removeChild(this.g);this.j=!0;return Promise.resolve()};var $p=0;bq.prototype.aa=function(){return!0};bq.prototype.create=function(a){return new _.aq(a)};_.vm("native",new bq);_.cq.prototype.onContentWillLoad=function(){return Promise.resolve()};_.cq.prototype.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.cq.prototype.onPlayerWillDestroy=function(){};_.cq.prototype.onPlayerWillRelease=function(){};}.call(g,this));
464
463
  g.clpp._ = _;
465
464
  if (typeof(module)!="undefined"&&module.exports) {module.exports=g.clpp;}
466
465
  else if (typeof(define)!="undefined" && define.amd) {define(function(){return g.clpp;});}