@castlabs/prestoplay 6.14.1 → 6.16.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 (61) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/cjs/cl.adobe.js +3 -3
  3. package/cjs/cl.airplay.js +3 -3
  4. package/cjs/cl.broadpeak.js +7 -7
  5. package/cjs/cl.cast.js +114 -112
  6. package/cjs/cl.conviva.js +33 -33
  7. package/cjs/cl.core.js +553 -538
  8. package/cjs/cl.crypto.js +9 -9
  9. package/cjs/cl.dash.js +74 -73
  10. package/cjs/cl.externs.js +193 -58
  11. package/cjs/cl.freewheel.js +24 -24
  12. package/cjs/cl.hls.js +69 -69
  13. package/cjs/cl.hlssmpte.js +6 -6
  14. package/cjs/cl.htmlcue.js +29 -29
  15. package/cjs/cl.ima.js +24 -24
  16. package/cjs/cl.mse.js +368 -264
  17. package/cjs/cl.muxdata.js +15 -15
  18. package/cjs/cl.onboard.js +3 -3
  19. package/cjs/cl.persistent.js +14 -14
  20. package/cjs/cl.playlist.js +6 -6
  21. package/cjs/cl.simid.js +15 -15
  22. package/cjs/cl.smooth.js +72 -71
  23. package/cjs/cl.thumbnails.js +26 -26
  24. package/cjs/cl.tizen.js +71 -71
  25. package/cjs/cl.ttml.js +28 -28
  26. package/cjs/cl.verimatrix.js +5 -5
  27. package/cjs/cl.vimond.js +13 -13
  28. package/cjs/cl.vr.js +19 -19
  29. package/cjs/cl.vtt.js +14 -14
  30. package/cjs/cl.youbora.js +20 -20
  31. package/cl.adobe.js +3 -3
  32. package/cl.airplay.js +3 -3
  33. package/cl.broadpeak.js +5 -5
  34. package/cl.cast.js +89 -88
  35. package/cl.conviva.js +27 -27
  36. package/cl.core.js +455 -443
  37. package/cl.crypto.js +9 -9
  38. package/cl.dash.js +70 -68
  39. package/cl.externs.js +189 -58
  40. package/cl.freewheel.js +19 -19
  41. package/cl.hls.js +71 -71
  42. package/cl.hlssmpte.js +5 -5
  43. package/cl.htmlcue.js +26 -26
  44. package/cl.ima.js +17 -17
  45. package/cl.mse.js +318 -236
  46. package/cl.muxdata.js +13 -13
  47. package/cl.onboard.js +4 -4
  48. package/cl.persistent.js +11 -11
  49. package/cl.playlist.js +5 -5
  50. package/cl.simid.js +13 -13
  51. package/cl.smooth.js +59 -59
  52. package/cl.thumbnails.js +19 -19
  53. package/cl.tizen.js +57 -57
  54. package/cl.ttml.js +22 -22
  55. package/cl.verimatrix.js +4 -4
  56. package/cl.vimond.js +8 -8
  57. package/cl.vr.js +15 -15
  58. package/cl.vtt.js +12 -12
  59. package/cl.youbora.js +15 -15
  60. package/package.json +1 -1
  61. package/typings.d.ts +393 -57
package/cjs/cl.core.js CHANGED
@@ -1,471 +1,478 @@
1
1
  (function(){var g={}; var _ = {};
2
- (function(window){var aa,da,ea,fa,ha,pa,ta,wa,xa,Aa,Ba,Da,Fa,Ja,Na,Ra,Sa,Wa,Ya,Za,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,sb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Hb,Lb,Nb,Sb,Wb,Xb,Yb,Zb,$b,cc,ec,ic,jc,mc,nc,pc,qc,rc,sc,tc,Uc,Zc,ed,ld,md,ud,vd,wd,yd,zd,Ad,Bd,Cd,Ed,Fd,Gd,Hd,Id,Jd,Pd,Rd,Ud,$d,ae,be,ce,de,ee,ge,je,ke,me,re,ye,ze,Ce,De,Je,af,hf,kf,lf,mf,nf,rf,sf,wf,xf,yf,zf,Af,Bf,Cf,Df,Hf,Jf,Tf,Wf,cg,jg,lg,zg,Dg,Eg,Fg,Gg,Hg,Jg,Kg,Lg,Ng,Og,Sg,Wg,Yg,Xg,Zg,$g,ah,eh,hh,fh,gh,ih,kh,lh,ph,rh,wh,Ch,Dh,Ih,Gh,Jh,Lh,Kh,Nh,Qh,Uh,Wh,Vh,hi,
3
- ii,ji,ki,li,oi,pi,ri,si,wi,yi,Ai,ui,Ei,Ti,Vi,Zi,aj,bj,ej,$i,Wi,fj,mj,sj,wj,xj,yj,Bj,Cj,Oj,Pj,Qj,Wj,Yj,Zj,fk,gk,jk,lk,kk,ik,mk,hk,pk,nk,ok,qk,rk,xk,Dk,Fk,Hk,Sk,Uk,Vk,Wk,gl,Kk,Xk,jl,ll,nl,ol,ml,ql,rl,kl,sl,tl,ul,vl,wl,Al,Bl,Cl,Dl,xl,Hl,Il,Kl,Ml,Ol,Ul,Vl,Wl,Xl,Yl,Zl,$l,am,bm,cm,dm,em,km,wm,Cm,Fm,Im,Km,Lm,Sm,Wm,Xm,bn,hn,jn,ln,mn,rn,sn,xn,yn,Ln,Rn,$n,bo,eo,io,jo,no,Yn,Wn,uo,lo,vo,xo,wo,Co,Bo,zo,Ao,Nn,co,yo,On,to,Vn,po,qo,Fo,so,Xn,Qn,Ko,Mo,No,Oo,Po,Uo,Yo,Zo,ap,ep,jp,Xo,kp,lp,op,rp,sp,up,vp,qp,pp,wp,xp,
4
- yp,zp,Ep,Jp,Kp,Lp,Pp,Op,Rp,Qp,Tp,Up,Vp,Wp,Sp,Yp,$p,aq,bq,cq,dq,eq,fq,gq,iq,jq,kq,lq,hq,oq,X,pq,tq,rq,uq,vq,xq,Cq,Bq,yq,Eq,Hq,Jq,Iq,Mq,Kq,Pq,Qq,Oq,Sq,Tq,Uq,Rq,Gq,Vq,Fq,$q,ar,dr,er,fr,gr,jr,hr,kr,mr,or,nr,qr,ir,rr,cr,sr,br,xr,zr,yr,Dr,Br,Cr,ur,vr,Ar,Kr,Gr,Hr,Ir,Sr,Tr,Qr,$r,as,bs,cs,ds,Dp,es,gs,hs,is,js,ks,ls,ms,ns,os,ps,qs,rs,ss,ts,us,vs,ys,ws,zs,Bs,Cs,xs,As,Ds,Es,Fs,Gs,Hs,Is,Js,Ks,Ls,Ms,Os,Qs,Rs,Ss,Ps,Vs,Ws,$s,et,ft,ht,gt,Jj,jt,mt,lt,nt,ot,kt,qt,rt,pt,st,tt,vt,Kj,At,Fj,bu,eu,Qg,gu;aa=" coming up at ";
5
- _.ca=" is registered.";da=" is unsupported on this platform.";ea=" to a log level. Falling back to default!";fa="': 'output-restricted'";ha=".start";_.ia="6.14.1";_.ja="AdaptationSet";_.ka="Already destroyed. No-op";_.la="Already released. No-op";_.ma="Autoplay is not allowed due to browser policy.";_.na="BANDWIDTH";pa="CHECKSUM";_.ra="CLOSED-CAPTIONS";_.sa="CODECS";ta="Can not set volume to ";_.ua="Cannot retrieve buffer information due to platform limitations";_.va="CastlabsPlayer";wa="Content-Length";
6
- xa="Content-Type";_.ya="Could not find configured DRM environment.";_.za="DRM environment '";Aa="DRM licenses loaded";Ba="DRMtoday";Da="DRMtodayOnboard";_.Ea="DURATION";Fa="Destroying player";_.Ha="Disable track type ";Ja="EXT-X-BYTERANGE";_.Ka="EXT-X-DATERANGE";_.La="EXT-X-DISCONTINUITY";_.Ma="EXT-X-DISCONTINUITY-SEQUENCE";Na="EXT-X-ENDLIST";_.Oa="EXT-X-KEY";_.Pa="EXT-X-MAP";_.Qa="EXT-X-MEDIA-SEQUENCE";Ra="EXT-X-PART-INF";Sa="EXT-X-PLAYLIST-TYPE";_.Ua="EXT-X-PRELOAD-HINT";_.Va="EXT-X-PROGRAM-DATE-TIME";
7
- Wa="EXT-X-SERVER-CONTROL";_.Xa="EXT-X-STREAM-INF";Ya="EXT-X-TARGETDURATION";Za="Error while decoding string!";_.$a="Error while fetching license!";_.ab="FairPlay Certificate URL is not defined";_.bb="FairPlay License URL is not defined";_.cb="GROUP-ID";db="HW_SECURE_ALL";eb="HW_SECURE_CRYPTO";fb="HW_SECURE_DECODE";gb="HeaderDrm";hb="Hide video element .";ib="Interstitial ";jb="Interstitial cue ";kb="Interstitials ";lb="Invalid track type: ";mb="InvalidStateError";nb="Item failed (ID: ";ob="Item loading (ID: ";
8
- pb="Item not found (ID: ";qb="Key status for Key ID '";_.rb="LANGUAGE";sb="License verification failed: ";_.ub="Loading player with configuration";_.vb="MaxHeight";_.wb="MaxWidth";xb="Missing media element";yb="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";zb="No event provided!";Ab="No items in the playlist";Bb="No sources provided!";Cb="No track data attached to the event, unable to add track!";Db="Not a persistent session.";Eb="NotAllowedError";
9
- Fb="NotSupportedError";_.Gb="PlayReady License URL is not defined";Hb="Player not ready yet.";_.Jb="Player sources";_.Kb="Player state change: ";Lb="Playing interstitial asset ";_.Mb="Please make sure ";Nb="Preloading is not supported by this player.";_.Ob="QualityLevel";_.Pb="RESOLUTION";_.Qb="Releasing player with source";_.Rb="Representation";Sb="STANDARD";_.Tb="SUBTITLES";_.Ub="SW_SECURE_CRYPTO";_.Vb="SW_SECURE_DECODE";Wb="Session is closed";Xb="Setting native ";Yb="Show video element .";Zb="Signature Verification failed";
10
- $b="Skipping Session creation. License for init data was already requested in Session: '";_.ac="SmoothStreamingMedia";_.bc="TYPE";cc="The index is not in the allowed range.";_.dc="URI";ec="Unable to translate ";_.fc="Unhandled/ignored event";_.gc="Unregistering listeners";ic="Unsupported keySystem";jc="Using VTTCue polyfill from 3 argument TextTrackCue.";_.kc="VIDEO";_.lc="VOD";mc="Wait for preloading to finish";nc="WebkitEmeManager.MediaKeySession.load";_.oc="Widevine License URL is not defined";
11
- pc="Will create EME Manager: ";qc="X-ASSET-LIST";rc="X-ASSET-URI";sc="X-PLAYOUT-LIMIT";tc="X-RESUME-OFFSET";_.uc="ad-break-started";_.vc="ad-break-stopped";_.wc="ad-buffering";_.xc="ad-clicked";_.yc="ad-completed";_.zc="ad-first-quartile";_.Ac="ad-impression";_.Bc="ad-loaded";_.Cc="ad-midpoint";_.Dc="ad-paused";_.Ec="ad-progress";_.Fc="ad-resumed";_.Gc="ad-skipped";_.Hc="ad-started";_.Ic="ad-stopped";_.Jc="ad-third-quartile";_.Kc="addtrack";_.Lc="ads-timeline-changed";_.Mc="airplay-casting-ended";
12
- _.Nc="airplay-casting-started";_.Qc="airplay-status-changed";_.Rc="application";_.Sc="application/cea-608";_.Tc="application/dash+xml";Uc="application/mp4";_.Vc='application/mp4; codecs\x3d"stpp"';_.Wc='application/mp4; codecs\x3d"wvtt"';_.Xc="application/ttml+xml";_.Yc="application/vnd.ms-sstr+xml";Zc="application/x-www-form-urlencoded";_.$c="audio";_.ad="audio/aac";_.bd="audio/ac3";_.cd="audio/eac3";_.dd="audio/mp4";ed='audio/mp4;codecs\x3d"mp4a.40.2"';_.fd="audiobufferchanged";_.gd="autoplaynotallowed";
13
- _.hd="bitratechanged";_.id="boolean";_.jd="bufferingended";_.kd="bufferingstarted";ld="canplay";md="canplaythrough";_.nd="caption";_.od="castingstarted";_.pd="caststatuschanged";_.qd="cdn-switch-success";_.rd="cenc";_.td="center";ud="certificate-request";vd="change";wd="chrome";_.xd="clpp-fill";yd="clpp-hidden";zd="clpp-mc-playlist";Ad="clpp-mc-playlist-item";Bd="clpp-mc-playlist-video-el";Cd="clpp-visible";_.Dd="clpp.cast.CastSender";Ed="clpp.drm.HeaderDrm";Fd="clpp.drm.eme.AppleEmeManager";Gd="clpp.interstitial.Player";
14
- Hd="clpp.native.Player";Id="clpp.plist.McPlaylist";Jd="clpp.utils.Platform";_.Kd="codecs";_.Ld="column-reverse";_.Md="com.adobe.primetime";_.Od="com.apple.fps";Pd="com.apple.hls.interstitial";_.Qd="com.microsoft.playready";Rd="com.microsoft.playready.recommendation";_.Sd="com.widevine.alpha";_.Td="config.drm.customData is not defined";Ud="controls";_.Vd="cuechange";_.Wd="decoder";_.Xd="destroy()";_.Yd="disabled";_.Zd="div";$d="drm.license.req.";ae="drm.mediaKeys.end";be="drm.mediaKeys.start";ce="drm.onPlay.end";
15
- de="drm.onPlay.start";ee="drm.sess.update.";_.fe="drmexpirationupdate";ge="drmrenewalstarted";_.he="drmsessionpersisted";_.ie="drmsessionupdate";je="drmtoday";ke="durationchange";_.le="ec-3";me="encrypted";_.ne="end";_.oe="ended";_.pe="error";_.qe="forced";re="fullscreenElement";_.se="function";_.te="height";_.ue="hidden";_.ve="html";_.we="image";_.xe="internal-error";ye="itemchange";ze="keystatuseschange";_.Be="left";Ce="license-renewal";De="license-request";_.Ee="line-left";_.Fe="line-right";
16
- _.Ge="live-turned-static";_.He="loadeddata";_.Ie="loadedmetadata";Je="loadstart";_.Ke="main";_.Le="mdat";_.Me="mdia";_.Ne="message";_.Oe="metadata";_.Pe="mimeType";_.Qe="minf";_.Re="moov";_.Se="mpd-type-changed";_.Te="mpeg-dash-callback-event";_.Ue="none";_.k="number";_.Ve="object";_.We="onBitrateChanged()";_.Xe="onPlayerError()";_.Ye="onPlayerWillDestroy";_.Ze="onPlayerWillRelease";_.$e="onStateChanged()";af="online-status-changed";_.bf="optional";_.cf="org.w3.clearkey";_.df="output-restricted";
17
- _.ef="pause";_.ff="persistent";_.gf="persistent-license";hf="picture-in-picture";_.jf="play";kf="player.afterLoad.end";lf="player.afterLoad.start";mf="player.beforeLoad.end";nf="player.beforeLoad.start";rf="player.load.end";sf="player.load.start";_.tf="playing";_.uf="playlist-item-changed";_.vf="playlist-modified";wf="playlist.next.end";xf="playlist.next.start";yf="preload-aborted";zf="preload-failed";Af="preloaded";Bf="preloading";Cf="primary-before-load";Df="primary-content";_.Ef="progress";
18
- _.Ff="px";_.Gf="ratechange";Hf="released";_.If="releasing";Jf="removetrack";_.Kf="required";_.Lf="resize";_.Mf="right";_.Nf="seeked";_.Of="seeking";_.Pf="showing";_.Qf="simid-creative-started";_.Rf="simid-creative-stopped";_.Sf="sinf";Tf="stalled";_.Uf="start";_.Vf="statechanged";Wf="status-pending";_.Xf="stbl";_.Yf="string";_.Zf="stsd";_.$f="style";_.ag="subtitle";_.bg="subtitles-htmlcue";cg="temporary";_.dg="text/vtt";_.eg="text/xml";_.fg="timeupdate";_.gg="trak";_.hg="ttml-xml";_.ig="und";jg="unknown";
19
- lg="update";_.mg="urn:scte:scte35";_.ng="urn:scte:scte35:2014";_.og="user-seeked";_.pg="user-seeking";_.qg="value";_.rg="vertical-lr";_.sg="vertical-rl";_.tg="video";_.ug="video/mp2t";_.vg="video/mp4";_.wg="videobufferchanged";_.xg="videotrackchanged";_.yg="vimond-response";zg="visibilitychange";_.Ag="vtt-xml";_.Bg="waiting";_.Cg="waitingforkey";Dg="webkit-org.w3.clearkey";Eg="webkitkeyadded";Fg="webkitkeyerror";Gg="webkitkeymessage";Hg="webkitneedkey";_.Ig="width";Jg="x-dt-csl-tracking-token";
20
- Kg="x-dt-follow-up-token";Lg="x-dt-resp-code";Ng=function(a){return function(){return _.Mg[a].apply(this,arguments)}};Og=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};_.u=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:Og(a)}};_.Pg=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};
21
- _.w=function(a,b){a.prototype=Qg(b.prototype);a.prototype.constructor=a;if(Rg)Rg(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]};Sg=function(){Sg=function(){};Tg.Symbol||(Tg.Symbol=Ug)};Wg=function(a,b){this.a=a;Vg(this,"description",{configurable:!0,writable:!0,value:b})};
22
- Yg=function(){Sg();var a=Tg.Symbol.iterator;a||(a=Tg.Symbol.iterator=Tg.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.se&&Vg(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return Xg(Og(this))}});Yg=function(){}};Xg=function(a){Yg();a={next:a};a[Tg.Symbol.iterator]=function(){return this};return a};Zg=function(){this.w=!1;this.j=null;this.f=void 0;this.a=1;this.l=this.o=0;this.B=this.h=null};$g=function(a){if(a.w)throw new TypeError("Generator is already running");a.w=!0};
23
- ah=function(a,b){a.h={Cg:b,bh:!0};a.a=a.o||a.l};_.x=function(a,b,c){a.a=c;return{value:b}};_.y=function(a){a.a=0};_.A=function(a,b,c){a.o=b;void 0!=c&&(a.l=c)};_.bh=function(a,b,c){a.a=b;a.o=c||0};_.C=function(a,b){a.o=b||0;var c=a.h.Cg;a.h=null;return c};_.ch=function(a){a.B=[a.h];a.o=0;a.l=0};_.dh=function(a,b){var c=a.B.splice(0)[0];(c=a.h=a.h||c)?c.bh?a.a=a.o||a.l:void 0!=c.F&&a.l<c.F?(a.a=c.F,a.h=null):a.a=a.l:a.a=b};eh=function(a){this.a=new Zg;this.f=a};
24
- hh=function(a,b){$g(a.a);var c=a.a.j;if(c)return fh(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return gh(a)};fh=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,ah(a.a,g),gh(a)}a.a.j=null;d.call(a.a,f);return gh(a)};
25
- gh=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,ah(a.a,c)}a.a.w=!1;if(a.a.h){b=a.a.h;a.a.h=null;if(b.bh)throw b.Cg;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
26
- ih=function(a){this.next=function(b){$g(a.a);a.a.j?b=fh(a,a.a.j.next,b,a.a.A):(a.a.A(b),b=gh(a));return b};this["throw"]=function(b){$g(a.a);a.a.j?b=fh(a,a.a.j["throw"],b,a.a.A):(ah(a.a,b),b=gh(a));return b};this["return"]=function(b){return hh(a,b)};Yg();this[Symbol.iterator]=function(){return this}};_.jh=function(a,b){var c=new ih(new eh(b));Rg&&Rg(c,a.prototype);return c};
27
- kh=function(a,b){if(b){for(var c=Tg,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&&Vg(c,d,{configurable:!0,writable:!0,value:f})}};lh=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())})};_.E=function(a){return lh(new ih(new eh(a)))};
28
- _.I=function(a,b){var c=a.split("."),d=mh;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};ph=function(a){return a&&0<=nh[a]?nh[a]:oh};rh=function(a){if(!a)return _.J("clpp.log",ec+a+ea),-1;var b=qh[a.toUpperCase()];return void 0===b?(_.J("clpp.log",ec+a+ea),-1):b};_.K=function(a){(this.tag=a)&&void 0===nh[a]&&(nh[a]=-1)};_.th=function(a){sh.info.apply(sh,arguments)};
29
- _.uh=function(a){sh.debug.apply(sh,arguments)};_.J=function(a){sh.warn.apply(sh,arguments)};_.vh=function(a){sh.error.apply(sh,arguments)};wh=function(a,b){this.Pb=a;this.sourceIndex=b};_.zh=function(a){if(a){var b=a.a();b in _.xh?_.yh.warn("Player-Factory '"+b+"' already registered"):(_.xh[b]=a,_.yh.info("Registered Player-Factory: '"+b+"'"))}};_.Ah=function(){this.a={}};Ch=function(a,b,c,d){this.f=a;this.Jc=b;this.a=c;this.cm=!!d};
30
- _.L=function(a,b){if(b)for(var c in b)this[c]=b[c];this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.f=this.a=!1};Dh=function(a){this.a=new _.Ah;this.f=a};_.Eh=function(){this.a=new _.Ah};
31
- _.Fh=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)};_.Hh=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)Gh(c[b]);a.a.clear()};Ih=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};Gh=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
32
- Jh=function(a){this.m=a;this.o=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.j=null;this.f=new _.Eh;this.a=this.l=null;this.h=[];this.g=new _.K("clpp.native.Metadata")};Lh=function(a,b){a.j=b;a.l=a.j.textTracks;a.f.on(a.l,_.Kc,function(c){c=c.track;c.kind===_.Oe&&Kh(a,c)})};
33
- Kh=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:_.Mh,eventElement:null};a.o&&e&&"SCTE35-IN"===l.value.key&&0<l.startTime?(m.startTime=0,m.endTime=l.startTime):(m.startTime=l.startTime,m.endTime=l.endTime);e=!1;d.push(m);return d[d.length-1]}a.g.debug("onMetadata_()");b.mode=_.ue;var d=[],e=!0;if(b.cues){for(var f=_.u(b.cues),g=f.next();!g.done;g=
34
- f.next())if(g=g.value,!Nh(a,g)){var h=c(g);switch(g.value.key){case "SCTE35-IN":case "SCTE35-OUT":h.schemeIdUri=_.ng;h.type=_.Oh;break;case "X-CUSTOM-ID":h.id=g.value.data}}f=_.u(d);for(g=f.next();!g.done;g=f.next())a.m.trigger(new _.L(_.Ph,{detail:g.value}));Array.prototype.push.apply(a.h,d);Qh(a,d,b);a.f.off(b,_.Vd);a.f.on(b,_.Vd,function(l){l=l.target.activeCues;l=l.length?Nh(a,l[0]):a.a;var m;if(m=l)m=a.m.getPosition(),m=l.startTime<=m&&m<l.endTime;if(m)a.a=l,a.m.trigger(new _.L(_.Rh,{detail:l}));
35
- else{if(l=a.a)l=a.a,m=a.m.getPosition(),l=l.endTime<=m;l&&(l=a.a,a.a=null,a.m.trigger(new _.L(_.Sh,{detail:l})))}})}};Nh=function(a,b){for(var c=_.u(a.h),d=c.next();!d.done;d=c.next())if(d=d.value,b.startTime===d.startTime&&b.endTime===d.endTime)return d;return null};Qh=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}))})}};_.Th=function(a){return Array.isArray(a)?a:[a]};
36
- Uh=function(a,b){return a===b?!0:a.length===b.length&&a.every(function(c,d){return c===b[d]})};Wh=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 Vh(a,b)&&Vh(b,a)};Vh=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};
37
- _.Xh=function(a,b){b=void 0===b?{}:b;if(b.ug){for(var c=[],d={},e=_.u(a),f=e.next();!f.done;d={Ud:d.Ud},f=e.next())d.Ud=f.value,c.some(function(g){return function(h){return b.ug(g.Ud,h)}}(d))||c.push(d.Ud);return c}return Array.from((new Set(a)).values())};
38
- _.di=function(a,b,c,d){d=void 0===d?_.Yh:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.Zh;this.writingMode=_.$h;this.lineInterpretation=_.ai;this.line=null;this.lineAlign=_.bi;this.direction=ci;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
39
- _.gi=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.ei;this.scroll=fi;this.cssClassList=[];this.writingMode=this.displayAlign=null};hi=function(a){this.m=a;this.l=a.getTextDisplayer();this.f=this.h=null;this.a=new _.Eh;this.j=!1;this.g=new _.K("clpp.native.CueHandler")};
40
- ii=function(a,b){var c=b.track;c.kind!==_.Oe&&(c.mode===_.Pf&&(c.mode=_.ue),a.a.on(c,_.Vd,function(d){d=d.target||d.srcElement;d.mode=_.ue;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.l.append(d,[]))}))};_.P=function(a,b,c,d,e){var f=Error.call(this,ji(a,b,c,d));this.message=f.message;"stack"in f&&(this.stack=f.stack);this.severity=a;this.category=b;this.code=c;this.data=!d||_.O.$(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.P)};
41
- ji=function(a,b,c,d){a=(a===_.Q?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.O.$(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};ki=function(a,b){var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=b};
42
- li=function(a,b){var c=b||Uh,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,_.Pg(h))}};_.mi=function(a,b){return a.concat(b)};_.ni=function(a){return null!=a};oi=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}throw new ki("No non-null, non-undefined value found");};
43
- pi=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}};_.qi=function(a){var b;a instanceof _.qi?(ri(this,a.gb),this.xc=a.xc,this.Oa=a.Oa,si(this,a.Zc),this.Ba=a.Ba,_.ti(this,ui(a.a)),this.jc=a.jc):a&&(b=String(a).match(vi))?(ri(this,b[1]||"",!0),this.xc=wi(b[2]||""),this.Oa=wi(b[3]||"",!0),si(this,b[4]),this.Ba=wi(b[5]||"",!0),_.ti(this,b[6]||"",!0),this.jc=wi(b[7]||"")):this.a=new _.xi(null)};
44
- ri=function(a,b,c){a.gb=c?wi(b,!0):b;a.gb&&(a.gb=a.gb.replace(/:$/,""))};si=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Zc=b}else a.Zc=null};_.ti=function(a,b,c){b instanceof _.xi?a.a=b:(c||(b=yi(b,zi)),a.a=new _.xi(b))};wi=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};yi=function(a,b,c){return typeof a===_.Yf?(a=encodeURI(a).replace(b,Ai),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
45
- Ai=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};_.xi=function(a){this.f=a||null};ui=function(a){var b=new _.xi;b.f=a.f;if(a.a){var c={},d;for(d in a.a)c[d]=a.a[d].concat();b.a=c;b.h=a.h}return b};_.Bi=function(a,b){if(0==b.length)return a;var c=b.map(function(d){return new _.qi(d)});return a.map(function(d){return new _.qi(d)}).map(function(d){return c.map(d.resolve.bind(d))}).reduce(_.mi,[]).map(function(d){return d.toString()})};
46
- Ei=function(a,b){for(var c=_.u(Ci[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=_.u(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a===_.Di?"":null};_.Gi=function(a,b){for(var c=Fi[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===_.Di?"":null};_.Ji=function(a,b,c){return a.map(function(d){d=_.Hi(d)||"";return(d=_.Ii[b][d])?d:b===_.Di?c&&"vtt"!==c?Uc:_.dg:null}).filter(Boolean)[0]||null};
47
- _.Hi=function(a){a=(new _.qi(a)).Ba.split(".");return 1>=a.length?null:a.pop()};_.Ki=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};_.Li=function(a,b,c,d){d=void 0===d?{}:d;a=a.getAttribute(b);if(!a&&d.required)throw new _.P(_.Q,4,4023,"Required attribute missing: "+b);return a?a.value:c||null};_.Mi=function(a,b){return _.Li(a,b,void 0,{required:!0})};_.Ni=function(a,b){this.name=a;this.value=b};
48
- _.Oi=function(a,b,c,d,e,f,g,h,l,m,n,p,q,t){l=void 0===l?!1:l;m=void 0===m?null:m;n=void 0===n?null:n;p=void 0===p?null:p;q=void 0===q?null:q;t=void 0===t?[]:t;this.position=a;this.startTime=b;this.endTime=c;this.ya=g;this.Ra=d;this.wa=e;this.ia=f;this.keyInfo=(void 0===h?null:h)||null;this.Mc=_.O.R(l)?!1:!!l;this.timescale=m;this.horizontalTiles=n;this.verticalTiles=p;this.durationPerTile=q;this.a=t||[];this.h=!1};
49
- _.Pi=function(a,b,c,d,e,f,g,h,l,m,n,p,q,t){t=void 0===t?[]:t;_.Oi.call(this,a,b,c,d,e,f,g,void 0===h?null:h,void 0===l?!1:l,void 0===m?null:m,void 0===n?null:n,void 0===p?null:p,void 0===q?null:q,t);this.initSegment=void 0;this.ba=0};_.Ri=function(a,b){a=_.Qi(a);b=_.Qi(b);return a.split("-")[0]==b.split("-")[0]};_.Qi=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Si.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};Ti=function(a){if(null!==a&&void 0!==a)return Number(a)};
50
- _.Ui=function(a,b){for(var c=_.u(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};Vi=function(){};Zi=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Wi(a)==Wi(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;for(var c=_.Xi(a),d=_.Xi(b),e=_.u(Yi(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!=d[f])return!1;return!0};_.Xi=function(a,b,c){c=void 0===c?Infinity:c;return $i(a,void 0===b?0:b,c,Uint8Array)};
51
- aj=function(a,b,c){c=void 0===c?Infinity:c;return $i(a,void 0===b?0:b,c,Uint16Array)};bj=function(a,b,c){c=void 0===c?Infinity:c;return $i(a,void 0===b?0:b,c,Uint32Array)};_.cj=function(a,b,c){c=void 0===c?Infinity:c;return $i(a,void 0===b?0:b,c,Int32Array)};_.dj=function(a,b,c){c=void 0===c?Infinity:c;return $i(a,void 0===b?0:b,c,DataView)};ej=function(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
52
- $i=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=Wi(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)};Wi=function(a){return a instanceof ArrayBuffer?a:a.buffer};fj=function(){};_.hj=function(a,b){var c=void 0==b?!0:b,d=_.gj(a).replace(/\+/g,"-").replace(/\//g,"_");return c?d:d.replace(/[=]*$/,"")};
53
- _.ij=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};_.jj=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};_.kj=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};
54
- _.lj=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};mj=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};_.gj=function(a){a=_.R.fromCharCode(_.Xi(a));return btoa(a)};_.nj=function(a){this.f=a;this.a=0};
55
- _.oj=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};
56
- _.pj=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.P(_.Q,4,4016,{invalidTag:b});var d=c[1],e=c[2];c=[];var f;if(e){e=new _.nj(e);var g;(g=_.oj(e,/^([^,=]+)(?:,|$)/g))&&(f=g[1]);for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.oj(e,h);)c.push(new _.Ni(g[1],g[2]||g[3]))}return new _.Ki(a,d,c,f)};_.rj=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.Pg(qj).concat()}};
57
- sj=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||_.Pg(qj).concat()};
58
- _.uj=function(a,b){_.O.$(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.tj,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||
59
- [],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:_.Pg(qj).concat(),requestStartTimestamp:null};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&
60
- sj(c,b);return c};_.vj=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=_.R.zd(b,!0)}catch(l){}_.uh("HTTP error text:",g);throw new _.P(0<=(f.fatalStatusCodes||[]).indexOf(c)?_.Q:1,1,1001,{url:d,status:c,responseText:g,headers:a,request:f,response:e});};
61
- wj=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};xj=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};yj=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()};_.zj=function(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c};
62
- _.Aj=function(a,b){this.O=a;this.A=b;this.a=!1};Bj=function(a,b){a.O.then(function(){return b(!0)},function(){return b(!1)});return a};Cj=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()}}};_.Dj=function(){this.a=[]};
63
- _.Ej=function(a,b){a.a.push(Bj(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.Nj=function(){this.f=[];this.h=[];this.o=!1;this.l=new _.Dj;this.a={};this.j=0;this.a.data=Fj;!window.fetch||!window.AbortController||_.Gj(6)||_.Hj()&&68<_.Ij().browserVersion.major?(this.a.http=Jj,this.a.https=Jj):(this.a.http=Kj,this.a.https=Kj)};Oj=function(a,b){var c,d;return _.E(function(e){if(1==e.a)return c=_.R,_.x(e,a.fetch(b),2);d=e.f;return e["return"](c.jh(c.Z(d.data)))})};
64
- Pj=function(a,b){var c,d;return _.E(function(e){if(1==e.a)return _.x(e,Oj(a,b),2);c=e.f;try{d=JSON.parse(c);if(null==d||typeof d!==_.Ve)throw Error("Not an object");return e["return"](d)}catch(f){throw new ki("Failed to parse JSON response","json-failed");}})};
65
- Qj=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.E(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.F(2);break}e=_.uj(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.A(g,4);return _.x(g,a.fetch(e).O,6);case 6:_.bh(g,2);break;case 4:if(f=_.C(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};
66
- _.Rj=function(a,b){this.id=a;this.type=b;this.roles=[];this.frameRate=this.label=this.originalLanguage=this.language=this.kind=null;this.trickPlay=!1;this.channelsCount=this.src=this.mimeType=null;this.spatialAudio=!1;this.renditions=[];this.accessibility=[]};_.Sj=function(a){return a&&a!==_.ig?a:null};
67
- Wj=function(a){if(!a)throw new _.P(_.Q,3,3101,lb+a);if(!_.O.$(a))throw new _.P(_.Q,3,3101,lb+a+". Track type must be a string!");switch(a.toLowerCase()){case _.T:return _.T;case _.Tj:return _.Tj;case _.Uj:return _.Uj;case Vj:return Vj}throw new _.P(_.Q,3,3101,"Unknown track type: "+a+".");};
68
- Yj=function(a,b){a=Wj(a);var c=_.Sj(b.kind),d=b.id;d||(d=String(_.Xj++));d=new _.Rj(d,c===_.Oe?Vj:a);d.kind=c;d.label=_.Sj(b.label);d.language=_.Sj(b.language);d.originalLanguage=b.originalLanguage||d.language;return d};Zj=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};
69
- _.ak=function(a,b){this.track=b;this.id=a;this.originalId=this.drm=this.drmInfo=this.codec=this.ld=this.bandwidth=this.height=this.width=null};
70
- _.bk=function(a){this.j=a;this.scheme=null;var b=document.createElement("a"),c=a.match(/^(.*:)(\/\/(.*))$/),d=!1;if(c){if(this.scheme=c[1],b.href=c[2],":"===b.protocol||""===b.host&&""===b.pathname)b.href="//dummy.com/"+c[3],d=!0}else{b.href=a;if(":"===b.protocol||""===b.host&&""===b.pathname)b.href="//dummy.com/"+a.match(/\/?\/?(.*)/)[1],d=!0;this.scheme=b.protocol}""===this.scheme&&(this.scheme=window.location.protocol);this.a=d?"":b.hostname;this.port=b.port;this.path=b.pathname;_.R.startsWith(this.path,
71
- "/")||(this.path="/"+this.path);this.f=b.search;this.h=b.hash};_.ck=function(a){return a.scheme+"//"+(a.a+(a.port?":"+a.port:"")+a.path+a.h+a.f)};_.dk=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)},""):""};
72
- _.ek=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};fk=function(a,b){return a.startsWith("http:://")||a.startsWith("https:://")?a:(new URL(a,b)).toString()};
73
- gk=function(a){this.f=a;this.g=new _.K("clpp.native.hls.HlsMetadataParser");this.a=li(this.h.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
74
- jk=function(a,b,c){var d,e,f,g,h;return _.E(function(l){if(1==l.a)return _.x(l,hk(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.Rj("dummy",_.Uj);h=f.map(function(m,n){var p=new _.ak("R"+n,g);p.bandwidth=m.bandwidth;p.ld=m.ld;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});ik(h);return l["return"]({renditions:h,mimeType:e||void 0})})};
75
- lk=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return kk(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};
76
- kk=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.pj(0,a);a=b(_.bc);a=null!=a?{AUDIO:_.Tj,VIDEO:_.Uj,SUBTITLES:_.T}[a]:void 0;return{type:a,groupId:b(_.cb),name:b("NAME"),language:b(_.rb),Wm:b("AUTOSELECT"),"default":b("DEFAULT"),fn:b("FORCED"),ig:b("CHARACTERISTICS"),uri:b(_.dc)}};ik=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.");};
77
- mk=function(a,b){var c,d;return _.E(function(e){if(1==e.a)return c=_.uj(b),_.x(e,Oj(a.f,c),2);d=e.f;return e["return"](d)})};hk=function(a,b,c){var d,e,f,g;return _.E(function(h){if(1==h.a)return d=nk(b),e=ok(b,c),f=d[0]?d[0].codec:null,_.x(h,pk(a,e,f),2);g=h.f;return h["return"]({mimeType:g,renditions:d})})};pk=function(a,b,c){var d,e;return _.E(function(f){if(1==f.a)return b&&c?_.x(f,mk(a,b),2):f["return"](null);d=f.f;e=[qk(d,b),rk(d,b)].filter(Boolean);return f["return"](_.Ji(e,_.tg,c))})};
78
- nk=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.pj(0,b);if(c.getAttribute(_.kc))throw Error("Playlist contains alternative video streams.");var d=_.Li(c,_.Pb);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.Li(c,_.na);e=e?Number(e):null;var f=_.Li(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.Li(c,_.sa);c=_.Gi(_.tg,c?c.split(","):[]);return{bandwidth:e,ld:f,codec:c,width:b,height:d,mimeType:null}})};
79
- ok=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?fk(c,b):null};qk=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?fk(c,b):null};rk=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.Li(_.pj(0,c),_.dc))?fk(c,b):null:null};
80
- _.tk=function(a,b,c){for(var d=_.u(_.sk),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.uk=function(a){a=_.sk.indexOf(a);0<=a&&_.sk.splice(a,1)};_.U=function(){};xk=function(a,b){var c=vk;wk.set(a.toLowerCase().split(";")[0]+"-"+c,{priority:c,plugin:b})};_.Bk=function(a,b){for(var c=_.u([yk,zk,Ak,vk]),d=c.next();!d.done;d=c.next())if(d=wk.get(a.toLowerCase().split(";")[0]+"-"+d.value)){var e=d.plugin(),f=e.isSupported(a,b);e.destroy();if(f)return d.plugin}return null};
81
- _.Ck=function(a,b){var c=a;b&&(c+=';codecs\x3d"'+b+'"');return c};Dk=function(a){a=a.split(/ *; */);a.shift();return(a=a.find(function(b){return b.startsWith("codecs\x3d")}))?a.split("\x3d")[1].replace(/^"|"$/g,"").split(/ *, */).join(","):""};_.Ek=function(a){this.f=a;this.a=null};Fk=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};_.Gk=function(a){this.f=a;this.a=null};
82
- Hk=function(){};_.Ik=function(){return!!navigator.userAgent.match(/Edge?\//)};_.Gj=function(a){return _.Jk("Tizen"+(a?" "+String(a):""))};_.Hj=function(){return _.Jk("Web0S")};_.Lk=function(){return _.Hj()&&79===Kk().major};_.Mk=function(){return _.Jk("CrKey")};_.Nk=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.Gj()};_.Ok=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.Nk()&&1<navigator.maxTouchPoints};_.Pk=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};
83
- _.Jk=function(a){return(navigator.userAgent||"").includes(a)};Sk=function(){if(Qk)return Qk;Rk||(Rk=new _.Gk(function(){Qk=null}));(Qk=document.querySelector(_.tg)||document.querySelector(_.$c))||(Qk=document.createElement(_.tg));Rk.aa(1);return Qk};Uk=function(a,b){try{return parseInt(b,10)}catch(c){Tk.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
84
- Vk=function(a){var b={major:-1,name:jg};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=Uk(a,c[0]));2<=c.length&&(b.minor=Uk(a,c[1]));3<=c.length&&(b.patch=Uk(a,c[2]));4<=c.length&&(b.build=Uk(a,c[3]));return b};Wk=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};
85
- gl=function(){var a=Xk();if(!a)return Yk;var b=a.match(/^.+?(?=\))/);if(!b)return Yk;b=b[0];if(Wk(b,["iphone","ipad"]))return Zk;if(Wk(b,["android"]))return $k;if(Wk(b,["macintosh"]))return al;if(Wk(b,["windows nt"]))return bl;if(Wk(b,["tizen"]))return dl;if(Wk(b,["web0s"]))return el;if(Wk(b,["linux"]))return fl;Tk.warn("Unable to identify OS from user agent: "+a);return Yk};
86
- Kk=function(){var a=Xk(),b=["ie","edge","opera","firefox","safari",wd];var c=gl();for(var d=hl[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return Vk(c[1]);return Vk("")};Xk=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
87
- _.Ij=function(){var a=gl();var b=gl();var c=hl[b];if(c){c=Xk().match(c.os_version)[1];c=Vk(c);if(b===bl)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=Vk("");a:{c=Xk();var d=["ie","edge","opera","firefox","safari",wd],e=gl();e=hl[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=il}return{os:a,osVersion:b,browser:c,browserVersion:Kk()}};
88
- jl=function(){this.g=new _.K("clpp.native.TrackManager");this.m=null;this.f=new _.Eh;this.h=[];this.B=0;this.o={};this.D=[];this.a=new Map;this.w=null;this.l=new Map;this.A=!0;this.J=this.Bf.bind(this,_.T);this.L=this.Df.bind(this,_.T);this.K=this.Cf.bind(this,_.T);this.P=this.Bf.bind(this,_.Uj);this.V=this.Df.bind(this,_.Uj);this.U=this.Cf.bind(this,_.Uj);this.G=this.Bf.bind(this,_.Tj);this.I=this.Df.bind(this,_.Tj);this.H=this.Cf.bind(this,_.Tj);this.j=null};
89
- ll=function(a,b){var c,d,e,f,g,h,l,m;return _.E(function(n){if(1==n.a){c=a.m.getConfiguration();d=_.tk(c,b.mimeType,_.dg);if(!d)return a.g.warn("Track MIME type is not supported",b),n["return"]();e=_.uj(b.url);return _.x(n,a.m.getNetworkEngine().fetch(e).O,2)}(f=n.f)&&f.data&&(g="External_"+a.B++,a.o[g]=b,h=d.a(_.Xi(f.data)),l=URL.createObjectURL(new Blob([h])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.dg},kl(a,m,g));_.y(n)})};nl=function(a,b,c){return ml(a)&&b===_.Uj&&!!c.enableHlsVideoTrackInfo};
90
- ol=function(a,b,c){return ml(a)&&(b===_.Tj||b===_.T)&&!!c.enableMetadata};ml=function(a){a=a.m.getLoadedSource();return!(!a||a.type!==_.pl&&!a.url.endsWith(".m3u8"))&&_.Nk()};ql=function(a,b,c){var d,e;return _.E(function(f){if(1==f.a)return(d=a.m.getLoadedSource())&&a.j?_.x(f,a.j.a(d.url,c),2):f["return"]();e=f.f;e.mimeType&&(b.mimeType=e.mimeType);e.renditions&&0<e.renditions.length&&(b.renditions=e.renditions,b.renditions.forEach(function(g){g.track=b}));_.y(f)})};
91
- rl=function(a,b,c){var d,e,f,g;return _.E(function(h){if(1==h.a)return(d=a.m.getLoadedSource())&&a.j?_.x(h,a.j.a(d.url,c),2):h["return"]();e=h.f;e.Wc&&(f=b.type+":"+b.label,(g=e.Wc.get(f))&&g.ig&&(b.accessibility=g.ig.split(",").map(function(l){return l.trim()}).map(function(l){return{value:l,type:b.type,protocol:"HLS"}})));_.y(h)})};
92
- kl=function(a,b,c){if(a.m){var d=a.m.getSurface().getMedia();if(d){var e=document.createElement("track");e.id=c;e.kind=b.kind;e.srclang=b.language;b.label&&(e.label=b.label);_.R.empty(b.url)?e.src=URL.createObjectURL(new Blob([])):e.src=b.url;d.appendChild(e);a.D.push(e)}}};sl=function(a,b){if(!a.m)return null;var c=a.m.getSurface();if(!c)return null;c=c.getMedia();if(!c)return null;switch(b){case _.Tj:return c.audioTracks;case _.Uj:return c.videoTracks;case _.T:return c.textTracks;default:return null}};
93
- tl=function(a,b){var c=sl(a,b);c&&(c=Array.from(c),b===_.T&&(c=c.filter(function(d){return d.kind!==_.Oe})));return c};ul=function(a,b){return a.h.filter(function(c){return c.type===b})};vl=function(a,b){var c=a.a.get(b)||null;return c&&c.renditions[0]};wl=function(a,b){var c=a.l.get(b);return c&&c.renditions[0]};
94
- Al=function(a,b,c){var d=tl(a,b);if(c){if(void 0===a.h.find(function(l){return l.id===c.id}))throw Error("Unknown track with ID "+c.id+" and type "+b);if(c.type!==b)throw Error("Types mismatch for track "+c.type+" and arg "+b);a.g.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.l.set(b,c);var e=!0,f=!1;switch(b){case _.T:var g="mode";e=_.Pf;f=_.Yd;break;case _.Tj:g="enabled";break;case _.Uj:g="selected"}if(g){d=_.u(d);for(var h=d.next();!h.done;h=d.next())h=h.value,h[g]=xl(c,h,c.type)?e:
95
- f}}}else if(a.g.debug(_.Ha+b),a.a.get(b)&&d&&b===_.T){g=_.u(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.Yd;a.a.set(b,null)}b===_.Tj?a.m.trigger(new _.L(_.yl)):b===_.T&&a.m.trigger(new _.L(_.zl))};Bl=function(a){return a.enabled||a.selected||a.mode===_.Pf||a.mode===_.ue};
96
- Cl=function(a,b,c){c=_.Th(c).filter(function(e){return e});a.g.info("Find preferred tracks for",b,c);var d=ul(a,b);c.some(function(e){var f=_.Qi(e);return(e=d.find(function(g){g=_.Qi(g.language||"");return _.Ri(f,g)}))?(a.g.info("Will select track with id",e.id),Al(a,b,e),!0):!1})};Dl=function(a){(a=a.m.getTextDisplayer())&&a.remove(0,Infinity)};
97
- xl=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.O.ta(a,{kind:_.Sj(b.kind),language:_.Sj(b.language),label:_.Sj(b.label)},["kind","language","label"])};_.El=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.Fl=function(){this.yd=new Dh(this);this.vd=[]};Hl=function(a){return a.name===Eb&&Gl.some(function(b){return a.message.startsWith(b)})};Il=function(){};
98
- _.Ll=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.Ok()&&(a=360);var b=_.rj();b.maxAttempts=3;a={source:"",license:Jl,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,manifest:{attemptParameters:_.rj(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0,timeline:{version:1}},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,
99
- restrictions:Kl(a),useCmsd:!1},drm:null,enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:_.Ke,preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],preferSpatialAudio:!1,preferForcedSubtitles:!1,volume:null,startTime:null,loop:!1,lowLatencyMode:!1,suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,streaming:{attemptParameters:b,bufferingGoal:10,rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,
2
+ (function(window){var ba,da,ea,fa,ha,ia,ra,ua,xa,ya,Ba,Ea,Fa,Ha,Ja,Na,Sa,Ta,Wa,Ya,Za,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,vb,wb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Ib,Jb,Mb,Pb,Rb,Vb,Zb,$b,ac,bc,cc,fc,hc,kc,lc,oc,pc,tc,uc,vc,wc,xc,Wc,ad,hd,od,pd,wd,xd,yd,Ad,Bd,Cd,Dd,Ed,Hd,Id,Jd,Kd,Ld,Md,Rd,Td,Wd,be,ce,de,ee,ge,he,je,me,ne,pe,ue,Be,Ce,Ee,Fe,Le,df,lf,nf,of,pf,qf,rf,sf,tf,uf,vf,wf,Af,Bf,Cf,Df,Ef,Ff,Hf,If,Mf,Of,fg,ig,pg,wg,xg,Mg,Rg,Sg,Tg,Ug,Vg,Xg,Yg,Zg,ah,bh,fh,jh,lh,kh,mh,nh,oh,ph,th,wh,uh,vh,xh,zh,Ah,Eh,Hh,Mh,Qh,Sh,Th,Yh,Wh,Zh,
3
+ ai,$h,ci,gi,ki,mi,li,yi,zi,Ai,Ci,Fi,Gi,Ii,Ji,Ni,Pi,Ri,Li,Ui,ij,lj,pj,rj,sj,vj,qj,mj,wj,Dj,Jj,Nj,Oj,Pj,Sj,Tj,dk,ek,fk,lk,nk,ok,wk,xk,Ak,Ck,Bk,zk,Dk,yk,Gk,Ek,Fk,Hk,Ik,Pk,Yk,$k,ll,nl,ol,pl,zl,ql,Cl,El,Gl,Hl,Fl,Jl,Kl,Dl,Ll,Ml,Nl,Ol,Pl,Tl,Ul,Vl,Wl,Ql,$l,am,cm,em,gm,mm,nm,om,pm,qm,rm,sm,tm,um,vm,wm,xm,Dm,Pm,Vm,Ym,Zm,an,bn,jn,nn,on,tn,zn,An,En,Fn,Kn,Ln,Qn,Rn,Yn,eo,no,po,ro,vo,wo,Go,lo,jo,No,Eo,Oo,Qo,Po,Vo,Uo,So,To,$n,qo,Ro,ao,Mo,io,Io,Jo,Yo,Lo,ko,co,cp,ep,fp,gp,hp,mp,qp,rp,tp,xp,Cp,pp,Dp,Ep,Hp,Kp,Lp,Np,
4
+ Op,Jp,Ip,Pp,Qp,Rp,Sp,Xp,bq,cq,dq,hq,gq,jq,iq,lq,mq,nq,oq,kq,qq,sq,tq,uq,vq,wq,xq,yq,zq,Bq,Cq,Dq,Eq,Aq,Hq,X,Iq,Mq,Kq,Nq,Qq,Pq,Oq,Rq,Tq,Yq,Xq,Uq,$q,ar,br,er,fr,dr,cr,gr,jr,lr,kr,or,mr,rr,sr,qr,ur,vr,wr,tr,ir,xr,hr,Ar,Br,Er,Fr,Gr,Hr,Kr,Ir,Lr,Nr,Pr,Or,Rr,Jr,Sr,Dr,Tr,Cr,Yr,$r,Zr,ds,bs,cs,Vr,Wr,as,ks,gs,hs,is,ss,ts,qs,As,Bs,Cs,Ds,Es,Wp,Fs,Hs,Is,Js,Ks,Ls,Ms,Ns,Os,Ps,Qs,Rs,Ss,Ts,Us,Vs,Ws,Zs,Xs,$s,bt,ct,Ys,at,dt,et,ft,gt,ht,it,jt,kt,lt,mt,ot,qt,rt,st,pt,ut,vt,Bt,Gt,Ht,Jt,It,ak,Lt,Ot,Nt,Pt,Qt,Mt,St,Tt,Rt,Ut,
5
+ Vt,Xt,bk,bu,Wj,pu,su,dh,uu;_.aa=" - ";ba=" coming up at ";_.ca=" is registered.";da=" is unsupported on this platform.";ea=" to a log level. Falling back to default!";fa="': 'output-restricted'";ha="() is ongoing!";ia=".start";_.ja="6.16.0";_.ka="AdaptationSet";_.la="Already destroyed. No-op";_.ma="Already released. No-op";_.na="Autoplay is not allowed due to browser policy.";_.oa="BANDWIDTH";_.qa="BASIC";ra="CHECKSUM";_.sa="CLOSED-CAPTIONS";_.ta="CODECS";ua="Can not set volume to ";_.va="Cannot retrieve buffer information due to platform limitations";
6
+ _.wa="CastlabsPlayer";xa="Content-Length";ya="Content-Type";_.za="Could not find configured DRM environment.";_.Aa="DRM environment '";Ba="DRM licenses loaded";Ea="DRMtoday";Fa="DRMtodayOnboard";_.Ga="DURATION";Ha="Destroying player";_.Ia="Disable track type ";Ja="EXT-X-BYTERANGE";_.Ka="EXT-X-DATERANGE";_.La="EXT-X-DISCONTINUITY";_.Ma="EXT-X-DISCONTINUITY-SEQUENCE";Na="EXT-X-ENDLIST";_.Oa="EXT-X-KEY";_.Pa="EXT-X-MAP";_.Ra="EXT-X-MEDIA-SEQUENCE";Sa="EXT-X-PART-INF";Ta="EXT-X-PLAYLIST-TYPE";_.Ua="EXT-X-PRELOAD-HINT";
7
+ _.Va="EXT-X-PROGRAM-DATE-TIME";Wa="EXT-X-SERVER-CONTROL";_.Xa="EXT-X-STREAM-INF";Ya="EXT-X-TARGETDURATION";Za="Error while decoding string!";_.bb="Error while fetching license!";_.cb="FairPlay Certificate URL is not defined";_.db="FairPlay License URL is not defined";_.eb="GROUP-ID";gb="HW_SECURE_ALL";hb="HW_SECURE_CRYPTO";ib="HW_SECURE_DECODE";jb="HeaderDrm";kb="Hide video element .";lb="Interstitial ";mb="Interstitial cue ";nb="Interstitials ";ob="Invalid track type: ";pb="InvalidStateError";
8
+ qb="Item failed (ID: ";rb="Item loading (ID: ";sb="Item not found (ID: ";tb="Key status for Key ID '";_.ub="LANGUAGE";vb="License verification failed: ";wb="Load interrupted while a player release is pending";_.xb="Loading player with configuration";_.yb="MaxHeight";_.zb="MaxWidth";Ab="Missing media element";Bb="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";Cb="No event provided!";Db="No items in the playlist";Eb="No sources provided!";Fb="No track data attached to the event, unable to add track!";
9
+ Gb="Not a persistent session.";_.Hb="Not supported";Ib="NotAllowedError";Jb="NotSupportedError";_.Kb="PLAYLIST";_.Lb="PlayReady License URL is not defined";Mb="Player not ready yet.";_.Nb="Player sources";_.Ob="Player state change: ";Pb="Playing interstitial asset ";_.Qb="Please make sure ";Rb="Preloading is not supported by this player.";_.Sb="QualityLevel";_.Tb="RESOLUTION";_.Ub="Representation";Vb="STANDARD";_.Wb="SUBTITLES";_.Xb="SW_SECURE_CRYPTO";_.Yb="SW_SECURE_DECODE";Zb="Session is closed";
10
+ $b="Setting native ";ac="Show video element .";bc="Signature Verification failed";cc="Skipping Session creation. License for init data was already requested in Session: '";_.dc="SmoothStreamingMedia";_.ec="TYPE";fc="The index is not in the allowed range.";_.gc="URI";hc="Unable to translate ";_.ic="Unhandled/ignored event";_.jc="Unregistering listeners";kc="Unsupported keySystem";lc="Using VTTCue polyfill from 3 argument TextTrackCue.";_.mc="VIDEO";_.nc="VOD";oc="Wait for preloading to finish";
11
+ pc="WebkitEmeManager.MediaKeySession.load";_.rc="Widevine License URL is not defined";tc="Will create EME Manager: ";uc="X-ASSET-LIST";vc="X-ASSET-URI";wc="X-PLAYOUT-LIMIT";xc="X-RESUME-OFFSET";_.yc="ad-break-started";_.zc="ad-break-stopped";_.Ac="ad-buffering";_.Bc="ad-clicked";_.Cc="ad-completed";_.Dc="ad-first-quartile";_.Ec="ad-impression";_.Fc="ad-loaded";_.Gc="ad-midpoint";_.Hc="ad-paused";_.Ic="ad-progress";_.Jc="ad-resumed";_.Kc="ad-skipped";_.Lc="ad-started";_.Mc="ad-stopped";_.Nc="ad-third-quartile";
12
+ _.Oc="addtrack";_.Pc="ads-timeline-changed";_.Qc="airplay-casting-ended";_.Rc="airplay-casting-started";_.Sc="airplay-status-changed";_.Tc="application";_.Uc="application/cea-608";_.Vc="application/dash+xml";Wc="application/mp4";_.Xc='application/mp4; codecs\x3d"stpp"';_.Yc='application/mp4; codecs\x3d"wvtt"';_.Zc="application/ttml+xml";_.$c="application/vnd.ms-sstr+xml";ad="application/x-www-form-urlencoded";_.bd="audio";_.cd="audio/aac";_.dd="audio/ac3";_.fd="audio/eac3";_.gd="audio/mp4";hd='audio/mp4;codecs\x3d"mp4a.40.2"';
13
+ _.id="audiobufferchanged";_.jd="autoplaynotallowed";_.kd="bitratechanged";_.ld="boolean";_.md="bufferingended";_.nd="bufferingstarted";od="canplay";pd="canplaythrough";_.qd="caption";_.rd="castingstarted";_.sd="caststatuschanged";_.td="cdn-switch-success";_.ud="cenc";_.vd="center";wd="certificate-request";xd="change";yd="chrome";_.zd="clpp-fill";Ad="clpp-hidden";Bd="clpp-mc-playlist";Cd="clpp-mc-playlist-item";Dd="clpp-mc-playlist-video-el";Ed="clpp-visible";_.Fd="clpp.cast.CastSender";Hd="clpp.drm.HeaderDrm";
14
+ Id="clpp.drm.eme.AppleEmeManager";Jd="clpp.interstitial.Player";Kd="clpp.native.Player";Ld="clpp.plist.McPlaylist";Md="clpp.utils.Platform";_.Nd="codecs";_.Od="column-reverse";_.Pd="com.adobe.primetime";_.Qd="com.apple.fps";Rd="com.apple.hls.interstitial";_.Sd="com.microsoft.playready";Td="com.microsoft.playready.recommendation";_.Ud="com.widevine.alpha";_.Vd="config.drm.customData is not defined";Wd="controls";_.Xd="cuechange";_.Yd="decoder";_.Zd="destroy()";_.$d="disabled";_.ae="div";be="drm.license.req.";
15
+ ce="drm.mediaKeys.end";de="drm.mediaKeys.start";ee="drm.onPlay.end";ge="drm.onPlay.start";he="drm.sess.update.";_.ie="drmexpirationupdate";je="drmrenewalstarted";_.ke="drmsessionpersisted";_.le="drmsessionupdate";me="drmtoday";ne="durationchange";_.oe="ec-3";pe="encrypted";_.qe="end";_.re="ended";_.se="error";_.te="forced";ue="fullscreenElement";_.ve="function";_.we="height";_.xe="hidden";_.ye="html";_.ze="image";_.Ae="internal-error";Be="itemchange";Ce="keystatuseschange";_.De="left";Ee="license-renewal";
16
+ Fe="license-request";_.Ge="line-left";_.He="line-right";_.Ie="live-turned-static";_.Je="loadeddata";_.Ke="loadedmetadata";Le="loadstart";_.Me="main";_.Ne="mdat";_.Oe="mdia";_.Pe="message";_.Re="metadata";_.Se="mimeType";_.Te="minf";_.Ue="moov";_.Ve="mpd-type-changed";_.We="mpeg-dash-callback-event";_.Xe="none";_.k="number";_.Ye="object";_.Ze="onBitrateChanged()";_.$e="onPlayerError()";_.af="onPlayerWillDestroy";_.bf="onPlayerWillRelease";_.cf="onStateChanged()";df="online-status-changed";_.ef="optional";
17
+ _.ff="org.w3.clearkey";_.gf="output-restricted";_.hf="pause";_.jf="persistent";_.kf="persistent-license";lf="picture-in-picture";_.mf="play";nf="player.afterLoad.end";of="player.afterLoad.start";pf="player.appendLoad.end";qf="player.appendLoad.start";rf="player.beforeLoad.end";sf="player.beforeLoad.start";tf="player.load.end";uf="player.load.start";vf="player.setupPlaylist.end";wf="player.setupPlaylist.start";_.xf="playing";_.yf="playlist-item-changed";_.zf="playlist-modified";Af="playlist.next.end";
18
+ Bf="playlist.next.start";Cf="preload-aborted";Df="preload-failed";Ef="preloaded";Ff="preloading";_.Gf="prevent";Hf="primary-before-load";If="primary-content";_.Jf="progress";_.Kf="px";_.Lf="ratechange";Mf="released";_.Nf="releasing";Of="removetrack";_.Pf="required";_.Tf="resize";_.Uf="right";_.Vf="sc-playlist-ended";_.Wf="sc-playlist-item-changed";_.Xf="sc-playlist-live-turned-static";_.Yf="sc-playlist-timeline-changed";_.Zf="seeked";_.$f="seeking";_.ag="showing";_.bg="simid-creative-started";
19
+ _.cg="simid-creative-stopped";_.dg="sinf";_.eg="smooth";fg="stalled";_.gg="start";_.hg="statechanged";ig="status-pending";_.jg="stbl";_.kg="string";_.lg="stsd";_.mg="style";_.ng="subtitle";_.og="subtitles-htmlcue";pg="temporary";_.qg="text/vtt";_.rg="text/xml";_.sg="timeupdate";_.tg="trak";_.ug="ttml-xml";_.vg="und";wg="unknown";xg="update";_.yg="urn:scte:scte35";_.zg="urn:scte:scte35:2014";_.Ag="user-seeked";_.Bg="user-seeking";_.Cg="value";_.Dg="vertical-lr";_.Eg="vertical-rl";_.r="video";
20
+ _.Fg="video/mp2t";_.Gg="video/mp4";_.Hg="videobufferchanged";_.Ig="videotrackchanged";_.Jg="vimond-response";Mg="visibilitychange";_.Ng="vtt-xml";_.Pg="waiting";_.Qg="waitingforkey";Rg="webkit-org.w3.clearkey";Sg="webkitkeyadded";Tg="webkitkeyerror";Ug="webkitkeymessage";Vg="webkitneedkey";_.Wg="width";Xg="x-dt-csl-tracking-token";Yg="x-dt-follow-up-token";Zg="x-dt-resp-code";ah=function(a){return function(){return _.$g[a].apply(this,arguments)}};
21
+ bh=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};_.w=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:bh(a)}};_.ch=function(a){if(!(a instanceof Array)){a=_.w(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};
22
+ _.x=function(a,b){a.prototype=dh(b.prototype);a.prototype.constructor=a;if(eh)eh(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c]};fh=function(){fh=function(){};gh.Symbol||(gh.Symbol=hh)};jh=function(a,b){this.a=a;ih(this,"description",{configurable:!0,writable:!0,value:b})};
23
+ lh=function(){fh();var a=gh.Symbol.iterator;a||(a=gh.Symbol.iterator=gh.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.ve&&ih(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return kh(bh(this))}});lh=function(){}};kh=function(a){lh();a={next:a};a[gh.Symbol.iterator]=function(){return this};return a};mh=function(){this.w=!1;this.l=null;this.f=void 0;this.a=1;this.j=this.o=0;this.C=this.h=null};nh=function(a){if(a.w)throw new TypeError("Generator is already running");a.w=!0};
24
+ oh=function(a,b){a.h={wh:b,Vh:!0};a.a=a.o||a.j};_.y=function(a,b,c){a.a=c;return{value:b}};_.C=function(a){a.a=0};_.D=function(a,b,c){a.o=b;void 0!=c&&(a.j=c)};ph=function(a){a.o=0;a.j=2};_.qh=function(a,b){a.a=b;a.o=0};_.E=function(a){a.o=0;var b=a.h.wh;a.h=null;return b};_.rh=function(a){a.C=[a.h];a.o=0;a.j=0};_.sh=function(a,b){var c=a.C.splice(0)[0];(c=a.h=a.h||c)?c.Vh?a.a=a.o||a.j:void 0!=c.F&&a.j<c.F?(a.a=c.F,a.h=null):a.a=a.j:a.a=b};th=function(a){this.a=new mh;this.f=a};
25
+ wh=function(a,b){nh(a.a);var c=a.a.l;if(c)return uh(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return vh(a)};uh=function(a,b,c,d){try{var e=b.call(a.a.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.a.w=!1,e;var f=e.value}catch(g){return a.a.l=null,oh(a.a,g),vh(a)}a.a.l=null;d.call(a.a,f);return vh(a)};
26
+ vh=function(a){for(;a.a.a;)try{var b=a.f(a.a);if(b)return a.a.w=!1,{value:b.value,done:!1}}catch(c){a.a.f=void 0,oh(a.a,c)}a.a.w=!1;if(a.a.h){b=a.a.h;a.a.h=null;if(b.Vh)throw b.wh;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
27
+ xh=function(a){this.next=function(b){nh(a.a);a.a.l?b=uh(a,a.a.l.next,b,a.a.A):(a.a.A(b),b=vh(a));return b};this["throw"]=function(b){nh(a.a);a.a.l?b=uh(a,a.a.l["throw"],b,a.a.A):(oh(a.a,b),b=vh(a));return b};this["return"]=function(b){return wh(a,b)};lh();this[Symbol.iterator]=function(){return this}};_.yh=function(a,b){var c=new xh(new th(b));eh&&eh(c,a.prototype);return c};
28
+ zh=function(a,b){if(b){for(var c=gh,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];f in c||(c[f]={});c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&ih(c,d,{configurable:!0,writable:!0,value:f})}};Ah=function(a){function b(d){return a.next(d)}function c(d){return a["throw"](d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})};_.I=function(a){return Ah(new xh(new th(a)))};
29
+ _.J=function(a,b){var c=a.split("."),d=Bh;c[0]in d||"undefined"==typeof d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}:d[e]=b};Eh=function(a){return a&&0<=Ch[a]?Ch[a]:Dh};Hh=function(a){if(!a)return _.Fh("clpp.log",hc+a+ea),-1;var b=Gh[a.toUpperCase()];return void 0===b?(_.Fh("clpp.log",hc+a+ea),-1):b};_.K=function(a){(this.tag=a)&&void 0===Ch[a]&&(Ch[a]=-1)};_.Jh=function(a){Ih.info.apply(Ih,arguments)};
30
+ _.Kh=function(a){Ih.debug.apply(Ih,arguments)};_.Fh=function(a){Ih.warn.apply(Ih,arguments)};_.Lh=function(a){Ih.error.apply(Ih,arguments)};Mh=function(a,b){this.bc=a;this.sourceIndex=b};_.Ph=function(a){if(a){var b=a.a();b in _.Nh?_.Oh.warn("Player-Factory '"+b+"' already registered"):(_.Nh[b]=a,_.Oh.info("Registered Player-Factory: '"+b+"'"))}};Qh=function(a){return Object.values(_.Nh).find(a)||null};_.Rh=function(){this.a={}};Sh=function(a,b,c,d){this.f=a;this.bd=b;this.a=c;this.an=!!d};
31
+ _.L=function(a,b){if(b)for(var c in b)this[c]=b[c];this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.f=this.a=!1};Th=function(a){this.a=new _.Rh;this.f=a};_.Uh=function(){this.a=new _.Rh};
32
+ _.Vh=function(a,b,c,d){function e(h){for(var l=_.w(c),m=l.next();!m.done;m=l.next())a.off(b,m.value,e);d(h)}for(var f=_.w(c),g=f.next();!g.done;g=f.next())a.on(b,g.value,e)};_.Xh=function(a){var b=a.a,c=[],d;for(d in b.a)c.push.apply(c,b.a[d]);for(b=0;b<c.length;++b)Wh(c[b]);a.a.clear()};Yh=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};Wh=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
33
+ Zh=function(a){this.m=a;this.o=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.j=null;this.f=new _.Uh;this.a=this.l=null;this.h=[];this.g=new _.K("clpp.native.Metadata")};ai=function(a,b){a.j=b;a.l=a.j.textTracks;a.f.on(a.l,_.Oc,function(c){c=c.track;c.kind===_.Re&&$h(a,c)})};
34
+ $h=function(a,b){function c(l){for(var m=_.w(d),n=m.next();!n.done;n=m.next())if(n=n.value,l.startTime===n.startTime&&l.endTime===n.endTime)return n;m={schemeIdUri:"",value:"",startTime:0,endTime:0,id:"",type:_.bi,eventElement:null};a.o&&e&&"SCTE35-IN"===l.value.key&&0<l.startTime?(m.startTime=0,m.endTime=l.startTime):(m.startTime=l.startTime,m.endTime=l.endTime);e=!1;d.push(m);return d[d.length-1]}a.g.debug("onMetadata_()");b.mode=_.xe;var d=[],e=!0;if(b.cues){for(var f=_.w(b.cues),g=f.next();!g.done;g=
35
+ f.next())if(g=g.value,!ci(a,g)){var h=c(g);switch(g.value.key){case "SCTE35-IN":case "SCTE35-OUT":h.schemeIdUri=_.zg;h.type=_.di;break;case "X-CUSTOM-ID":h.id=g.value.data}}f=_.w(d);for(g=f.next();!g.done;g=f.next())a.m.trigger(new _.L(_.fi,{detail:g.value}));Array.prototype.push.apply(a.h,d);gi(a,d,b);a.f.off(b,_.Xd);a.f.on(b,_.Xd,function(l){l=l.target.activeCues;l=l.length?ci(a,l[0]):a.a;var m;if(m=l)m=a.m.getPosition(),m=l.startTime<=m&&m<l.endTime;if(m)a.a=l,a.m.trigger(new _.L(_.hi,{detail:l}));
36
+ else{if(l=a.a)l=a.a,m=a.m.getPosition(),l=l.endTime<=m;l&&(l=a.a,a.a=null,a.m.trigger(new _.L(_.ii,{detail:l})))}})}};ci=function(a,b){for(var c=_.w(a.h),d=c.next();!d.done;d=c.next())if(d=d.value,b.startTime===d.startTime&&b.endTime===d.endTime)return d;return null};gi=function(a,b,c){if(a.o){for(;0<c.cues.length;)c.removeCue(c.cues[0]);b.forEach(function(d){c.addCue(new DataCue(d.startTime,d.endTime,{key:"SCTE35-OUT",data:null}))})}};_.ji=function(a){return Array.isArray(a)?a:[a]};
37
+ ki=function(a,b){return a===b?!0:a.length===b.length&&a.every(function(c,d){return c===b[d]})};mi=function(a,b,c){if(null==a&&null==b)return!0;if(null==a||null==b)return!1;a=c?a.map(c):a;b=c?b.map(c):b;return li(a,b)&&li(b,a)};li=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};
38
+ _.ni=function(a,b){b=void 0===b?{}:b;if(b.oh){for(var c=[],d={},e=_.w(a),f=e.next();!f.done;d={ue:d.ue},f=e.next())d.ue=f.value,c.some(function(g){return function(h){return b.oh(g.ue,h)}}(d))||c.push(d.ue);return c}return Array.from((new Set(a)).values())};
39
+ _.ui=function(a,b,c,d){d=void 0===d?_.oi:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.pi;this.writingMode=_.qi;this.lineInterpretation=_.ri;this.line=null;this.lineAlign=_.si;this.direction=ti;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
40
+ _.xi=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.vi;this.scroll=wi;this.cssClassList=[];this.writingMode=this.displayAlign=null};yi=function(a){this.m=a;this.l=a.getTextDisplayer();this.f=this.h=null;this.a=new _.Uh;this.j=!1;this.g=new _.K("clpp.native.CueHandler")};
41
+ zi=function(a,b){var c=b.track;c.kind!==_.Re&&(c.mode===_.ag&&(c.mode=_.xe),a.a.on(c,_.Xd,function(d){d=d.target||d.srcElement;d.mode=_.xe;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.l.append(d,[]))}))};_.P=function(a,b,c,d,e){var f=Error.call(this,Ai(a,b,c,d));this.message=f.message;"stack"in f&&(this.stack=f.stack);this.severity=a;this.category=b;this.code=c;this.data=!d||_.O.ga(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.P)};
42
+ Ai=function(a,b,c,d){a=(a===_.Q?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.O.ga(d))a+=": "+d;else if(null!=d)if(null!=d.message)a+=": "+d.message,delete d.message;else try{a+=": "+JSON.stringify(d)}catch(e){}return a};_.Bi=function(a,b){var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=b};
43
+ Ci=function(a,b){var c=b||ki,d=null,e=null,f=!1;return function(g){for(var h=[],l=0;l<arguments.length;++l)h[l]=arguments[l];if(f&&c(h,d))return e;f=!0;d=h;return e=a.apply(null,_.ch(h))}};_.Di=function(a,b){return a.concat(b)};_.Ei=function(a){return null!=a};Fi=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}throw new _.Bi("No non-null, non-undefined value found");};
44
+ Gi=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}};_.Hi=function(a){var b;a instanceof _.Hi?(Ii(this,a.ub),this.Mc=a.Mc,this.Ya=a.Ya,Ji(this,a.ud),this.Ma=a.Ma,_.Ki(this,Li(a.a)),this.uc=a.uc):a&&(b=String(a).match(Mi))?(Ii(this,b[1]||"",!0),this.Mc=Ni(b[2]||""),this.Ya=Ni(b[3]||"",!0),Ji(this,b[4]),this.Ma=Ni(b[5]||"",!0),_.Ki(this,b[6]||"",!0),this.uc=Ni(b[7]||"")):this.a=new _.Oi(null)};
45
+ Ii=function(a,b,c){a.ub=c?Ni(b,!0):b;a.ub&&(a.ub=a.ub.replace(/:$/,""))};Ji=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.ud=b}else a.ud=null};_.Ki=function(a,b,c){b instanceof _.Oi?a.a=b:(c||(b=Pi(b,Qi)),a.a=new _.Oi(b))};Ni=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};Pi=function(a,b,c){return typeof a===_.kg?(a=encodeURI(a).replace(b,Ri),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
46
+ Ri=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};_.Oi=function(a){this.f=a||null};Li=function(a){var b=new _.Oi;b.f=a.f;if(a.a){var c={},d;for(d in a.a)c[d]=a.a[d].concat();b.a=c;b.h=a.h}return b};_.Si=function(a,b){if(0===b.length)return a;var c=b.map(function(d){return new _.Hi(d)});return a.map(function(d){return new _.Hi(d)}).map(function(d){return c.map(d.resolve.bind(d))}).reduce(_.Di,[]).map(function(d){return d.toString()})};
47
+ Ui=function(a,b){for(var c=_.w(Ti[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=_.w(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a===_.R?"":null};_.Wi=function(a,b){for(var c=Vi[a],d=0;d<c.length;d++)for(var e=0;e<b.length;e++)if(c[d].test(b[e].trim()))return b[e].trim();return a===_.R?"":null};_.Zi=function(a,b,c){return a.map(function(d){d=_.Xi(d)||"";return(d=_.Yi[b][d])?d:b===_.R?c&&"vtt"!==c?Wc:_.qg:null}).filter(Boolean)[0]||null};
48
+ _.Xi=function(a){a=(new _.Hi(a)).Ma.split(".");return 1>=a.length?null:a.pop()};_.$i=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};_.aj=function(a,b,c,d){d=void 0===d?{}:d;a=a.getAttribute(b);if(!a&&d.required)throw new _.P(_.Q,4,4023,"Required attribute missing: "+b);return a?a.value:c||null};_.bj=function(a,b){return _.aj(a,b,void 0,{required:!0})};_.cj=function(a,b){this.name=a;this.value=b};
49
+ _.dj=function(a,b,c,d,e,f,g,h,l,m,n,p,q,t){l=void 0===l?!1:l;m=void 0===m?null:m;n=void 0===n?null:n;p=void 0===p?null:p;q=void 0===q?null:q;t=void 0===t?[]:t;this.position=a;this.startTime=b;this.endTime=c;this.za=g;this.Sa=d;this.Aa=e;this.la=f;this.keyInfo=(void 0===h?null:h)||null;this.ac=_.O.S(l)?!1:!!l;this.timescale=m;this.horizontalTiles=n;this.verticalTiles=p;this.durationPerTile=q;this.a=t||[];this.h=!1};
50
+ _.ej=function(a,b,c,d,e,f,g,h,l,m,n,p,q,t){t=void 0===t?[]:t;_.dj.call(this,a,b,c,d,e,f,g,void 0===h?null:h,void 0===l?!1:l,void 0===m?null:m,void 0===n?null:n,void 0===p?null:p,void 0===q?null:q,t);this.initSegment=void 0;this.ka=0};_.gj=function(a,b){a=_.fj(a);b=_.fj(b);return a.split("-")[0]===b.split("-")[0]};_.fj=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=hj.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};ij=function(a){if(null!==a&&void 0!==a)return Number(a)};
51
+ _.jj=function(a){if(typeof a!==_.kg)return null;var b=a.trim().match(/^(\d+)x(\d+)$/);if(!b)return null;a=parseInt(b[1],10);b=parseInt(b[2],10);return 0>=a||0>=b?null:{Td:a,qe:b,tn:a*b}};_.kj=function(a,b){for(var c=_.w(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};lj=function(){};
52
+ pj=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!==b.byteLength)return!1;if(mj(a)===mj(b)&&(a.byteOffset||0)===(b.byteOffset||0))return!0;for(var c=_.nj(a),d=_.nj(b),e=_.w(oj(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!==d[f])return!1;return!0};_.nj=function(a,b,c){c=void 0===c?Infinity:c;return qj(a,void 0===b?0:b,c,Uint8Array)};rj=function(a,b,c){c=void 0===c?Infinity:c;return qj(a,void 0===b?0:b,c,Uint16Array)};
53
+ sj=function(a,b,c){c=void 0===c?Infinity:c;return qj(a,void 0===b?0:b,c,Uint32Array)};_.tj=function(a,b,c){c=void 0===c?Infinity:c;return qj(a,void 0===b?0:b,c,Int32Array)};_.uj=function(a,b,c){c=void 0===c?Infinity:c;return qj(a,void 0===b?0:b,c,DataView)};vj=function(a){return a instanceof ArrayBuffer?a:0===a.byteOffset&&a.byteLength===a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
54
+ qj=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=mj(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)};mj=function(a){return a instanceof ArrayBuffer?a:a.buffer};wj=function(){};_.yj=function(a,b){b=void 0===b?!0:b;var c=_.xj(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")};
55
+ _.zj=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};_.Aj=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};_.Bj=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};
56
+ _.Cj=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};Dj=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};_.xj=function(a){a=_.S.fromCharCode(_.nj(a));return btoa(a)};_.Ej=function(a){this.f=a;this.a=0};
57
+ _.Fj=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};
58
+ _.Gj=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.P(_.Q,4,4016,{invalidTag:b});var d=c[1],e=c[2];c=[];var f;if(e){e=new _.Ej(e);var g;(g=_.Fj(e,/^([^,=]+)(?:,|$)/g))&&(f=g[1]);for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.Fj(e,h);)c.push(new _.cj(g[1],g[2]||g[3]))}return new _.$i(a,d,c,f)};_.Ij=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.ch(Hj).concat()}};
59
+ Jj=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||_.ch(Hj).concat()};
60
+ _.Lj=function(a,b){_.O.ga(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.Kj,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||
61
+ [],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:_.ch(Hj).concat(),requestStartTimestamp:null};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&
62
+ Jj(c,b);return c};_.Mj=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=_.S.Pd(b,!0)}catch(l){}_.Kh("HTTP error text:",g);throw new _.P(0<=(f.fatalStatusCodes||[]).indexOf(c)?_.Q:1,1,1001,{url:d,status:c,responseText:g,headers:a,request:f,response:e});};
63
+ Nj=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};Oj=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};Pj=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()};_.Qj=function(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c};
64
+ _.Rj=function(a,b){this.N=a;this.A=b;this.a=!1};Sj=function(a,b){a.N.then(function(){return b(!0)},function(){return b(!1)});return a};Tj=function(a,b,c){try{var d=a(b);if(d&&d.N&&d.abort)return c.resolve(d.N),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()}}};_.Uj=function(){this.a=[]};
65
+ _.Vj=function(a,b){a.a.push(Sj(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.ck=function(){this.f=[];this.h=[];this.o=!1;this.l=new _.Uj;this.a={};this.j=0;this.a.data=Wj;!window.fetch||!window.AbortController||_.Xj(6)||_.Yj()&&68<_.Zj().browserVersion.major?(this.a.http=ak,this.a.https=ak):(this.a.http=bk,this.a.https=bk)};dk=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.S,_.y(e,a.fetch(b),2);d=e.f;return e["return"](c.ci(c.ea(d.data)))})};
66
+ ek=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.y(e,dk(a,b),2);c=e.f;try{d=JSON.parse(c);if(null==d||typeof d!==_.Ye)throw Error("Not an object");return e["return"](d)}catch(f){throw new _.Bi("Failed to parse JSON response","json-failed");}})};
67
+ fk=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.I(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.F(2);break}e=_.Lj(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.D(g,4);return _.y(g,a.fetch(e).N,6);case 6:_.qh(g,2);break;case 4:if(f=_.E(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};
68
+ _.gk=function(a,b){this.id=a;this.type=b;this.roles=[];this.frameRate=this.label=this.originalLanguage=this.language=this.kind=null;this.trickPlay=!1;this.channelsCount=this.src=this.mimeType=null;this.spatialAudio=!1;this.renditions=[];this.accessibility=[]};_.hk=function(a){return a&&a!==_.vg?a:null};
69
+ lk=function(a){if(!a)throw new _.P(_.Q,3,3101,ob+a);if(!_.O.ga(a))throw new _.P(_.Q,3,3101,ob+a+". Track type must be a string!");switch(a.toLowerCase()){case _.T:return _.T;case _.ik:return _.ik;case _.jk:return _.jk;case kk:return kk}throw new _.P(_.Q,3,3101,"Unknown track type: "+a+".");};
70
+ nk=function(a,b){a=lk(a);var c=_.hk(b.kind),d=b.id;d||(d=String(_.mk++));d=new _.gk(d,c===_.Re?kk:a);d.kind=c;d.label=_.hk(b.label);d.language=_.hk(b.language);d.originalLanguage=b.originalLanguage||d.language;return d};ok=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};
71
+ _.rk=function(a,b){this.track=b;this.id=a;this.originalId=this.drm=this.drmInfo=this.codec=this.Dd=this.bandwidth=this.height=this.width=null};
72
+ _.sk=function(a){this.j=a;this.scheme=null;var b=document.createElement("a"),c=a.match(/^(.*:)(\/\/(.*))$/),d=!1;if(c){if(this.scheme=c[1],b.href=c[2],":"===b.protocol||""===b.host&&""===b.pathname)b.href="//dummy.com/"+c[3],d=!0}else{b.href=a;if(":"===b.protocol||""===b.host&&""===b.pathname)b.href="//dummy.com/"+a.match(/\/?\/?(.*)/)[1],d=!0;this.scheme=b.protocol}""===this.scheme&&(this.scheme=window.location.protocol);this.a=d?"":b.hostname;this.port=b.port;this.path=b.pathname;_.S.startsWith(this.path,
73
+ "/")||(this.path="/"+this.path);this.f=b.search;this.h=b.hash};_.tk=function(a){return a.scheme+"//"+(a.a+(a.port?":"+a.port:"")+a.path+a.h+a.f)};_.uk=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)},""):""};
74
+ _.vk=function(a){var b={};a=a||"";a=a.substring(a.indexOf("?")+1);a=_.w(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};wk=function(a,b){return a.startsWith("http:://")||a.startsWith("https:://")?a:(new URL(a,b)).toString()};
75
+ xk=function(a){this.f=a;this.g=new _.K("clpp.native.hls.HlsMetadataParser");this.a=Ci(this.h.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
76
+ Ak=function(a,b,c){var d,e,f,g,h;return _.I(function(l){if(1==l.a)return _.y(l,yk(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.gk("dummy",_.jk);h=f.map(function(m,n){var p=new _.rk("R"+n,g);p.bandwidth=m.bandwidth;p.Dd=m.Dd;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});zk(h);return l["return"]({renditions:h,mimeType:e||void 0})})};
77
+ Ck=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return Bk(c)});var b=new Map;a.forEach(function(c){if(c.type&&c.name){var d=c.type+":"+c.name;if(b.has(d))throw Error("#EXT-X-MEDIA:NAME attributes are not unique. It is impossible to map HLS metadata to Safari data structures.");b.set(d,c)}});return b};
78
+ Bk=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.Gj(0,a);a=b(_.ec);a=null!=a?{AUDIO:_.ik,VIDEO:_.jk,SUBTITLES:_.T}[a]:void 0;return{type:a,groupId:b(_.eb),name:b("NAME"),language:b(_.ub),Sn:b("AUTOSELECT"),"default":b("DEFAULT"),bo:b("FORCED"),Vg:b("CHARACTERISTICS"),uri:b(_.gc)}};zk=function(a){var b=new Set;a.forEach(function(c){b.add(c.width+"x"+c.height)});if(b.size<a.length)throw Error("Playlist contains multiple renditions with the same resolution.");};
79
+ Dk=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.Lj(b),_.y(e,dk(a.f,c),2);d=e.f;return e["return"](d)})};yk=function(a,b,c){var d,e,f,g;return _.I(function(h){if(1==h.a)return d=Ek(b),e=Fk(b,c),f=d[0]?d[0].codec:null,_.y(h,Gk(a,e,f),2);g=h.f;return h["return"]({mimeType:g,renditions:d})})};Gk=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return b&&c?_.y(f,Dk(a,b),2):f["return"](null);d=f.f;e=[Hk(d,b),Ik(d,b)].filter(Boolean);return f["return"](_.Zi(e,_.r,c))})};
80
+ Ek=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.Gj(0,b);if(c.getAttribute(_.mc))throw Error("Playlist contains alternative video streams.");var d=_.aj(c,_.Tb);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.aj(c,_.oa);e=e?Number(e):null;var f=_.aj(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.aj(c,_.ta);c=_.Wi(_.r,c?c.split(","):[]);return{bandwidth:e,Dd:f,codec:c,width:b,height:d,mimeType:null}})};
81
+ Fk=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?wk(c,b):null};Hk=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?wk(c,b):null};Ik=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.aj(_.Gj(0,c),_.gc))?wk(c,b):null:null};
82
+ _.Kk=function(a,b,c){for(var d=_.w(_.Jk),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.Lk=function(a){a=_.Jk.indexOf(a);0<=a&&_.Jk.splice(a,1)};_.Mk=function(){};Pk=function(a,b){var c=Nk;Ok.set(a.toLowerCase().split(";")[0]+"-"+c,{priority:c,plugin:b})};_.Tk=function(a,b){for(var c=_.w([Qk,Rk,Sk,Nk]),d=c.next();!d.done;d=c.next())if(d=Ok.get(a.toLowerCase().split(";")[0]+"-"+d.value)){var e=d.plugin(),f=e.isSupported(a,b);e.destroy();if(f)return d.plugin}return null};
83
+ _.Uk=function(a,b){var c=a;b&&(c+=';codecs\x3d"'+b+'"');return c.replace(/\s/g,"")};_.Vk=function(a){return a.split(";")[0]};_.Wk=function(a){a=a.split(/\s*;\s*/);a.shift();return(a=a.find(function(b){return b.startsWith("codecs\x3d")}))?a.split("\x3d")[1].replace(/^"|"$/g,"").split(/\s*,\s*/).join(","):""};_.Xk=function(a){this.f=a;this.a=null};
84
+ Yk=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};_.Zk=function(a){this.f=a;this.a=null};$k=function(){};_.al=function(){return!!navigator.userAgent.match(/Edge?\//)};_.Xj=function(a){return _.bl("Tizen"+(a?" "+String(a):""))};_.Yj=function(){return _.bl("Web0S")};_.el=function(){return _.Yj()&&79===_.dl().major};_.fl=function(){return _.bl("CrKey")};
85
+ _.gl=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.Xj()};_.hl=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.gl()&&1<navigator.maxTouchPoints};_.il=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};_.bl=function(a){return(navigator.userAgent||"").includes(a)};
86
+ ll=function(){if(jl)return jl;kl||(kl=new _.Zk(function(){jl=null}));(jl=document.querySelector(_.r)||document.querySelector(_.bd))||(jl=document.createElement(_.r));kl.fa(1);return jl};nl=function(a,b){try{return parseInt(b,10)}catch(c){ml.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
87
+ ol=function(a){var b={major:-1,name:wg};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=nl(a,c[0]));2<=c.length&&(b.minor=nl(a,c[1]));3<=c.length&&(b.patch=nl(a,c[2]));4<=c.length&&(b.build=nl(a,c[3]));return b};pl=function(a,b){if(!a||!b||0===b.length)return!1;for(var c=0;c<b.length;c++)if(0<=a.indexOf(b[c]))return!0;return!1};
88
+ zl=function(){var a=ql();if(!a)return rl;var b=a.match(/^.+?(?=\))/);if(!b)return rl;b=b[0];if(pl(b,["iphone","ipad"]))return sl;if(pl(b,["android"]))return tl;if(pl(b,["macintosh"]))return ul;if(pl(b,["windows nt"]))return vl;if(pl(b,["tizen"]))return wl;if(pl(b,["web0s"]))return xl;if(pl(b,["linux"]))return yl;ml.warn("Unable to identify OS from user agent: "+a);return rl};
89
+ _.dl=function(){var a=ql(),b=["ie","edge","opera","firefox","safari",yd];var c=zl();for(var d=Al[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return ol(c[1]);return ol("")};ql=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
90
+ _.Zj=function(){var a=zl();var b=zl();var c=Al[b];if(c){c=ql().match(c.os_version)[1];c=ol(c);if(b===vl)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=ol("");a:{c=ql();var d=["ie","edge","opera","firefox","safari",yd],e=zl();e=Al[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=Bl}return{os:a,osVersion:b,browser:c,browserVersion:_.dl()}};
91
+ Cl=function(){this.g=new _.K("clpp.native.TrackManager");this.m=null;this.f=new _.Uh;this.h=[];this.C=0;this.o={};this.D=[];this.a=new Map;this.w=null;this.l=new Map;this.A=!0;this.J=this.gg.bind(this,_.T);this.M=this.ig.bind(this,_.T);this.L=this.hg.bind(this,_.T);this.P=this.gg.bind(this,_.jk);this.W=this.ig.bind(this,_.jk);this.T=this.hg.bind(this,_.jk);this.G=this.gg.bind(this,_.ik);this.I=this.ig.bind(this,_.ik);this.H=this.hg.bind(this,_.ik);this.j=null};
92
+ El=function(a,b){var c,d,e,f,g,h,l,m;return _.I(function(n){if(1==n.a){c=a.m.getConfiguration();d=_.Kk(c,b.mimeType,_.qg);if(!d)return a.g.warn("Track MIME type is not supported",b),n["return"]();e=_.Lj(b.url);return _.y(n,a.m.getNetworkEngine().fetch(e).N,2)}(f=n.f)&&f.data&&(g="External_"+a.C++,a.o[g]=b,h=d.a(_.nj(f.data)),l=URL.createObjectURL(new Blob([h])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.qg},Dl(a,m,g));_.C(n)})};Gl=function(a,b,c){return Fl(a)&&b===_.jk&&!!c.enableHlsVideoTrackInfo};
93
+ Hl=function(a,b,c){return Fl(a)&&(b===_.ik||b===_.T)&&!!c.enableMetadata};Fl=function(a){a=a.m.getLoadedSource();return!(!a||a.type!==_.Il&&!a.url.endsWith(".m3u8"))&&_.gl()};Jl=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return(d=a.m.getLoadedSource())&&a.j?_.y(f,a.j.a(d.url,c),2):f["return"]();e=f.f;e.mimeType&&(b.mimeType=e.mimeType);e.renditions&&0<e.renditions.length&&(b.renditions=e.renditions,b.renditions.forEach(function(g){g.track=b}));_.C(f)})};
94
+ Kl=function(a,b,c){var d,e,f,g;return _.I(function(h){if(1==h.a)return(d=a.m.getLoadedSource())&&a.j?_.y(h,a.j.a(d.url,c),2):h["return"]();e=h.f;e.pd&&(f=b.type+":"+b.label,(g=e.pd.get(f))&&g.Vg&&(b.accessibility=g.Vg.split(",").map(function(l){return l.trim()}).map(function(l){return{value:l,type:b.type,protocol:"HLS"}})));_.C(h)})};
95
+ Dl=function(a,b,c){if(a.m){var d=a.m.getSurface().getMedia();if(d){var e=document.createElement("track");e.id=c;e.kind=b.kind;e.srclang=b.language;b.label&&(e.label=b.label);_.S.empty(b.url)?e.src=URL.createObjectURL(new Blob([])):e.src=b.url;d.appendChild(e);a.D.push(e)}}};Ll=function(a,b){if(!a.m)return null;var c=a.m.getSurface();if(!c)return null;c=c.getMedia();if(!c)return null;switch(b){case _.ik:return c.audioTracks;case _.jk:return c.videoTracks;case _.T:return c.textTracks;default:return null}};
96
+ Ml=function(a,b){var c=Ll(a,b);c&&(c=Array.from(c),b===_.T&&(c=c.filter(function(d){return d.kind!==_.Re})));return c};Nl=function(a,b){return a.h.filter(function(c){return c.type===b})};Ol=function(a,b){var c=a.a.get(b)||null;return c&&c.renditions[0]};Pl=function(a,b){var c=a.l.get(b);return c&&c.renditions[0]};
97
+ Tl=function(a,b,c){var d=Ml(a,b);if(c){if(void 0===a.h.find(function(l){return l.id===c.id}))throw Error("Unknown track with ID "+c.id+" and type "+b);if(c.type!==b)throw Error("Types mismatch for track "+c.type+" and arg "+b);a.g.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.l.set(b,c);var e=!0,f=!1;switch(b){case _.T:var g="mode";e=_.ag;f=_.$d;break;case _.ik:g="enabled";break;case _.jk:g="selected"}if(g){d=_.w(d);for(var h=d.next();!h.done;h=d.next())h=h.value,h[g]=Ql(c,h,c.type)?e:
98
+ f}}}else if(a.g.debug(_.Ia+b),a.a.get(b)&&d&&b===_.T){g=_.w(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.$d;a.a.set(b,null)}b===_.ik?a.m.trigger(new _.L(_.Rl)):b===_.T&&a.m.trigger(new _.L(_.Sl))};Ul=function(a){return a.enabled||a.selected||a.mode===_.ag||a.mode===_.xe};
99
+ Vl=function(a,b,c){c=_.ji(c).filter(function(e){return e});a.g.info("Find preferred tracks for",b,c);var d=Nl(a,b);c.some(function(e){var f=_.fj(e);return(e=d.find(function(g){g=_.fj(g.language||"");return _.gj(f,g)}))?(a.g.info("Will select track with id",e.id),Tl(a,b,e),!0):!1})};Wl=function(a){(a=a.m.getTextDisplayer())&&a.remove(0,Infinity)};
100
+ Ql=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.O.oa(a,{kind:_.hk(b.kind),language:_.hk(b.language),label:_.hk(b.label)},["kind","language","label"])};_.Xl=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.Yl=function(){this.Nd=new Th(this);this.Ld=[]};$l=function(a){return a.name===Ib&&Zl.some(function(b){return a.message.startsWith(b)})};am=function(){};
101
+ _.dm=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.hl()&&(a=360);var b=_.Ij();b.maxAttempts=3;a={source:"",license:bm,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,manifest:{attemptParameters:_.Ij(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0,timeline:{version:1}},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,
102
+ restrictions:cm(a),useCmsd:!1},drm:null,enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:_.Me,preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],preferSpatialAudio:!1,preferForcedSubtitles:!1,volume:null,startTime:null,loop:!1,lowLatencyMode:!1,suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,streaming:{attemptParameters:b,bufferingGoal:10,rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,
100
103
  alwaysStreamText:!1,relativeTextTimestamp:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.1,disableAudioTracks:!1,disableVideoTracks:!1,smallGapLimit:.5,jumpLargeGaps:!0,durationBackoff:1,maxSegmentToMediaOffset:1,forceNativeTS:!1,preferNativeHlsOnSafari:!0,safeSeekOffset:5,stallEnabled:!0,stallThreshold:3,stallSkip:.5,bufferLimitUpdateInterval:.5,overridePasp:!1,enableLiveEdgeChasing:!1,chasingRate:1.15,startChasingAt:5,stopChasingAt:2,chaseJumpDistance:10,patchEdgeWhenMixedContent:!1,ignoreDrift:!1,
101
- disableFragmentSupport:!1,disableMergedFragments:!1,ignoreManagedMediaSourceStreamingHints:!1},restrictions:Kl(),tizen:{sideStreamText:_.Gj(2)},safari:{enableHlsVideoTrackInfo:!1,enableMetadata:!1},trickPlay:{speedUpMode:_.Wd,preferTrickPlayTracks:!0}};if(_.Jk("Edge/")||_.Gj())a.streaming.gapDetectionThreshold=.5;_.Hj()&&(a.streaming.stallEnabled=!1);_.Lk()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.Gj()&&(a.streaming.stallEnabled=
102
- !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};
103
- _.Nl=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(!b)return _.Ll();c=[_.Ll()];var d=!1;b=_.u(b);for(var e=b.next();!e.done;e=b.next())e=e.value,null!==e&&void 0!==e&&(_.O.$(e)&&(e={source:e}),e.lowLatencyMode&&!d&&(c.push({streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,ignoreDrift:!0,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{lowLatencyMode:!0}}),d=!0),c.push(e),null!=
104
- e.suggestedPresentationDelay&&c.push({manifest:{suggestedPresentationDelay:e.suggestedPresentationDelay}}));c=_.O.oa.apply(null,c);_.O.$(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.O.R(c.volume)&&(!_.O.na(c.volume)||_.O.isNaN(c.volume)))throw new _.P(_.Q,7,7100,"config.volume is not a number");if(!_.O.R(c.preferredTextLanguage)&&!_.O.$(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.P(_.Q,7,7100,"config.preferredTextLanguage is not a string or an array");
105
- if(!_.O.R(c.preferredAudioLanguage)&&!_.O.$(c.preferredAudioLanguage)&&!Array.isArray(c.preferredAudioLanguage))throw new _.P(_.Q,7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.O.R(c.preferredAudioCodec)&&!_.O.$(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.P(_.Q,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.O.R(c.preferredVideoCodec)&&!_.O.$(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.P(_.Q,
106
- 7,7100,"config.preferredVideoCodec is not a string or an array");if(!_.O.R(c.drm)){if(c.drm.env&&!_.O.$(c.drm.env))throw new _.P(_.Q,7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.O.$(c.drm.offlineId))throw new _.P(_.Q,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);
107
- if(!_.O.na(d.bufferingGoal)||_.O.isNaN(d.bufferingGoal))throw new _.P(_.Q,7,7100,"config.streaming.bufferingGoal is not a number");if(!_.O.na(d.rebufferingGoal)||_.O.isNaN(d.rebufferingGoal))throw new _.P(_.Q,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.P(_.Q,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.O.na(d.bufferBehind)||_.O.isNaN(d.bufferBehind))throw new _.P(_.Q,7,7100,"config.streaming.bufferBehind is not a number");
108
- if(!_.O.na(d.smallGapLimit)||_.O.isNaN(d.smallGapLimit))throw new _.P(_.Q,7,7100,"config.streaming.smallGapLimit is not a number");if(!_.O.na(d.durationBackoff)||_.O.isNaN(d.durationBackoff))throw new _.P(_.Q,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.O.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.k)throw new _.P(_.Q,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");Ml(c.restrictions);
109
- Ml(c.abr.restrictions);c.abr.initialRestrictions&&Ml(c.abr.initialRestrictions)}return c};Kl=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}};
110
- Ml=function(a){_.O.R(a.maxPixels)&&(a.maxPixels=Infinity);_.O.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.O.R(a.maxHeight)&&(a.maxHeight=Infinity);_.O.R(a.maxWidth)&&(a.maxWidth=Infinity);_.O.R(a.minPixels)&&(a.minPixels=0);_.O.R(a.minBandwidth)&&(a.minBandwidth=0);_.O.R(a.minHeight)&&(a.minHeight=0);_.O.R(a.minWidth)&&(a.minWidth=0);a.minWidth=Number(a.minWidth);a.maxWidth=Number(a.maxWidth);a.minHeight=Number(a.minHeight);a.maxHeight=Number(a.maxHeight);a.minBandwidth=Number(a.minBandwidth);
111
- a.maxBandwidth=Number(a.maxBandwidth);a.minPixels=Number(a.minPixels);a.maxPixels=Number(a.maxPixels);if(Number.isNaN(a.minWidth)||Number.isNaN(a.maxWidth)||Number.isNaN(a.minHeight)||Number.isNaN(a.maxHeight)||Number.isNaN(a.minBandwidth)||Number.isNaN(a.maxBandwidth)||Number.isNaN(a.minPixels)||Number.isNaN(a.maxPixels))throw new _.P(_.Q,7,7100,"Restrictions contain NaN");};Ol=function(a){return typeof a===_.Ve&&!Array.isArray(a)&&"source"in a};
112
- _.Pl=function(a){_.Fl.call(this);this.log=new _.K(a);this.configuration=this.ge=_.Ll();this.ca=this.A=null;this.td=this.nf=!1;this.Xh=new _.K("clpp.video.events");this.dd=null;this.he=-1;this.Dm=this.bm.bind(this);this.mf=new _.Nj;this.P=new _.Eh;this.Ec=this.Nc=this.L=null};_.Rl=function(a){return _.Ql.get(a)||null};_.Tl=function(a){_.Ql.get(a.id())?Sl.warn("Component already in use."):_.Ql.set(a.id(),a)};Ul=function(a){return Array.from(_.Ql.values()).find(function(b){return b instanceof a})||null};
113
- Vl=function(a){for(var b=_.u(_.Ql.values()),c=b.next();!c.done;c=b.next())a(c.value)};Wl=function(a){Vl(function(b){b.o(a)})};Xl=function(a){Vl(function(b){b.h(a)})};Yl=function(){Vl(function(){})};Zl=function(){Vl(function(){})};$l=function(a){if(null!==Ul(a))return null;a=new a;a.f();_.Tl(a);Sl.info("Installed component:",a.id());return a};am=function(a){if(a=Ul(a))a.a(),_.Ql["delete"](a.id()),Sl.info("Uninstalled component:",a.id())};bm=function(){this.a=this.f=null;this.g=new _.K("clpp.drm.csl")};
114
- cm=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[Jg]=a.f),a.a&&(b.headers[Kg]=a.a))};dm=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[Jg];a.a=b.headers[Kg];var c=b.headers["x-dt-csl-renewal-info"];a.f&&a.g.debug("Loaded tracking token "+a.f);a.a&&a.g.debug("Loaded followup token "+a.a);if(c)return c=JSON.parse(_.R.Z(_.ij(c))),{delay:c.renewalPeriod,Tm:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};
115
- em=function(a){return _.R.startsWith(a,_.Od)||_.R.startsWith(a,_.Qd)};_.gm=function(a){_.fm[a.J]=a};
116
- _.im=function(a){var b={attemptParameters:_.rj(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,ignoreUnrecognizedInitData:!0,$a:{}};if(a&&(b.enforceSingleSession=!!a.enforceSingleSession,b.delayLicenseRequestUntilPlayed=!!a.delayLicenseRequestUntilPlayed,b.preferredDrmSystem=a.preferredDrmSystem,b.emeApi=a.emeApi,a.attemptParameters&&(b.attemptParameters=a.attemptParameters),b.enableSessionCacheForSkd=!!a.enableSessionCacheForSkd,void 0!==a.ignoreUnrecognizedInitData&&
117
- (b.ignoreUnrecognizedInitData=!!a.ignoreUnrecognizedInitData),a.env)){var c=_.fm[a.env]||null;if(!c)throw _.uh(_.ya,_.Mb+a.env+_.ca),new _.P(_.Q,6,6015,_.za+a.env+"' is missing.");b.$a=_.hm(c,a.customData)||{};_.R.startsWith(a.env.toLowerCase(),je)&&(b.enforceSingleSession=!0)}return b};km=function(a){a=jm[a];if(!a)return null;var b=_.Ij();return b.os===$k&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.lm=function(a){this.J=a;this.f={}};
118
- _.hm=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[_.Sd];g&&(c[_.Sd]={licenseUrl:g.licenseUrl,videoRobustness:pi(d,g.videoRobustness),audioRobustness:pi(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:oi(b?b.widevineDistinctiveIdentifierRequired:void 0,g.distinctiveIdentifierRequired,!1),persistentStateRequired:oi(b?b.widevinePersistentStateRequired:void 0,g.persistentStateRequired,!1),
119
- serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.Yf?km(f):f});(g=a.f[_.Od])&&(c[_.Od]={licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.f[_.Qd])&&(c[_.Qd]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});
120
- return c};_.mm=function(a,b){b=void 0===b?!1:b;this.f=_.O.na(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.h=b;this.buffer=this.f.buffer};_.om=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.Xi(a.f.buffer);b=_.Xi(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.nm()}};_.V=function(a,b){try{a.f.setUint32(a.a,b,a.h),a.a+=4}catch(c){_.nm()}};_.nm=function(){throw new _.P(_.Q,3,3E3);};_.pm=function(a,b){this.f=a;this.h=void 0===b?!0:b;this.a=0};_.qm=function(a){return a.a<a.f.byteLength};
121
- _.sm=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.rm()}};_.tm=function(a){try{var b=a.f.getUint16(a.a,a.h);a.a+=2;return b}catch(c){_.rm()}};_.W=function(a){try{var b=a.f.getUint32(a.a,a.h);a.a+=4;return b}catch(c){_.rm()}};_.um=function(a){try{var b=a.f.getInt32(a.a,a.h);a.a+=4;return b}catch(c){_.rm()}};
122
- _.vm=function(a){var b=0,c=0;try{!0===a.h?(b=a.f.getUint32(a.a,!0),c=a.f.getUint32(a.a+4,!0)):(c=a.f.getUint32(a.a,!1),b=a.f.getUint32(a.a+4,!1))}catch(d){_.rm()}if(2097151<c)throw new _.P(_.Q,3,3001);a.a+=8;return c*Math.pow(2,32)+b};wm=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.sm(a);return c};_.xm=function(a,b){a.a+b>a.f.byteLength&&_.rm();var c=a.a+a.f.byteOffset;c=a.f.buffer.slice(c,c+b);a.a+=b;return _.Xi(c)};
123
- _.rm=function(){throw new _.P(_.Q,3,3E3,"Buffer read out of bounds.");};_.ym=function(){this.h=[];this.f=[];this.a=!1;this.g=new _.K("clpp.mp4")};_.zm=function(a){for(;_.qm(a.reader)&&!a.parser.a;)a.parser.xe(a.start+a.headerSize,a.reader,a.partialOkay)};_.Am=function(a){for(var b=_.W(a.reader);0<b&&!a.parser.a;--b)a.parser.xe(a.start+a.headerSize,a.reader,a.partialOkay)};_.Bm=function(a){return function(b){var c=b.reader.Ga()-b.reader.getPosition();a(_.xm(b.reader,c))}};
124
- Cm=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.Dm=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.Em=function(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)};Fm=function(){};Im=function(a){var b="";try{b=_.R.zd(a)}catch(c){}return b};_.Jm=function(a){a=Im(a);var b="";a.length&&(b=(new _.bk(a)).a);return b};
125
- Km=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.R.Z(a)),d=_.ij(c.sinf[0]);(new _.ym).M(_.Sf,_.zm).M("schi",_.zm).M("tenc",function(e){e.reader.skip(6);_.sm(e.reader)&&(e.reader.skip(1),b=_.kj(_.xm(e.reader,16)));e.parser.stop()}).parse(d)}catch(e){}return b};
126
- Lm=function(a,b,c){if(!c||!c.byteLength)throw new _.P(_.Q,6,6102);var d;typeof b===_.Yf?d=_.R.Be(b,!0):d=b;a=_.R.Be(Im(a),!0);b=new _.mm(12+a.byteLength+d.byteLength+c.byteLength,!0);_.V(b,a.byteLength);_.om(b,_.Xi(a));_.V(b,d.byteLength);_.om(b,_.Xi(d));_.V(b,c.byteLength);_.om(b,_.Xi(c));return _.Xi(b.buffer)};_.Mm=function(a){var b=_.Xi(a.body);b=_.hj(b);a.headers[xa]=Zc;a.body=_.R.Ua("spc\x3d"+b).buffer};
127
- _.Nm=function(a){try{var b=_.R.Z(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=ej(_.ij(b))};
128
- Sm=function(){var a=Om;if(a===Pm)return"https://lic.drmtoday.com";if(a===Qm)return"https://lic.staging.drmtoday.com";if(a===Rm)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};Wm=function(a){var b=Sm();if(a==_.Sd)return b+Tm;if(a==_.Qd)return b+Um;if(a==_.Od)return b+Vm;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
129
- Xm=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
130
- _.Zm=function(a,b,c){b=Im(b);c=c&&c.customData?c.customData:{};b=new _.bk(Xm(b));var d=_.ek(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.R.te(""+a)&&(d.assetId=a,Ym.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.R.te(""+e)&&(d.variantId=e,Ym.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],Ym.debug("KeyId found in FPS SKD. Removing other parameters")):
131
- a=["assetId","variantId"];b.f=_.dk(d,!1,a);"/"!==b.path||b.j.includes(b.a+"/")||(b.path="");b=_.ck(b);return c.fpsContentId=b};_.an=function(a,b,c,d){d=void 0===d?!0:d;c=a.drm;c&&c.env.startsWith(Ba)?c.customData&&(_.$m(b,a),a=b.uris[0],d&&c.customData.assetId&&(a+="?assetId\x3d"+encodeURI(""+c.customData.assetId),c.customData.variantId&&(a+="\x26variantId\x3d"+encodeURI(""+c.customData.variantId)),b.uris[0]=a)):Ym.warn(yb)};
132
- bn=function(a,b,c){_.an(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.qi(b.uris[0]);c.a.add(_.ff,a);b.uris[0]=c.toString()};
133
- _.cn=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.an(a,b,c,!1);b.headers[xa]=Zc;c={spc:_.gj(b.body)};if((a=a.drm)&&a.env.startsWith(Da)&&d){a={};var e=_.ek((new _.bk(Xm(d))).f);d=e.keyId;if(e=e.assetId)Ym.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(Ym.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(Ym.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(Ym.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
134
- _.R.cd(_.dk(c,!0))};_.dn=function(a,b){Ym.debug("Clearing response data");if(200===b.status){var c=_.R.Z(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.ij(c).buffer}};_.en=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(Ba))Ym.warn(yb);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(Da)){var d=new _.qi(b.uris[0]),e=d.Ba;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.Ba=e;b.uris[0]=d.toString()}};
135
- _.fn=function(a,b){try{var c=_.Xi(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));Ym.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){Ym.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};
136
- _.$m=function(a,b){var c=b.drm;if(c&&c.customData){var d={userId:c.customData.userId,sessionId:c.customData.sessionId,merchant:c.customData.merchant};_.O.Dd(d)&&(a.headers["dt-custom-data"]=btoa(JSON.stringify(d)));(c=c.customData.authToken)&&(a.headers["x-dt-auth-token"]=c)}};hn=function(a){var b={},c=a?a[Lg]:void 0;a=gn[a?a[Lg]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};jn=function(){};
137
- ln=function(a,b){b=void 0===b?0:b;_.th("Registering EME Factory: "+a.a());for(var c={priority:b,Pb:a},d=0;d<kn.length;++d)if(kn[d].priority<b){kn.splice(d,0,c);return}kn.push(c)};
138
- mn=function(a){if(a){var b=kn.find(function(d){return d.Pb.a()===a}).Pb;if(b&&b.isSupported())return _.th(pc+b.a()),b.create();_.th("Cannot create selected EME manager. Choosing by priority list.")}b=_.u(kn);for(var c=b.next();!c.done;c=b.next())if(c=c.value.Pb,c.isSupported())return _.th(pc+c.a()),c.create();throw Error("Missing EME managers");};_.on=function(a,b){var c=_.nn(a,b);return 1!=c.length?null:c[0]};
139
- _.nn=function(a,b){return Array.prototype.filter.call(a.childNodes,function(c){return c instanceof Element&&c.tagName==b})};_.pn=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};
140
- _.qn=function(a,b){var c=new DOMParser,d=null,e=null;try{e=c.parseFromString(a,_.eg)}catch(f){}e&&e.documentElement.tagName==b&&(d=e.documentElement);return d&&0<d.getElementsByTagName("parsererror").length?null:d};rn=function(a,b,c){this.j=new Uint8Array(a);this.a=b;this.f=c};sn=function(){rn.apply(this,arguments)};_.un=function(a){var b=_.jj(a);b=parseInt(b.byteLength,10).toString(16);b=_.jj("12"+b+a);return new sn(tn,a,b)};
141
- _.vn=function(a){function b(t){switch(t){case 0:do if(!_.qm(d))throw Error("not enough data to skip!");while(_.sm(d)&128);break;case 1:d.skip(8);break;case 2:d.skip(c());break;case 3:for(;4!==(t=c()&7);)b(t);break;case 5:d.skip(4);break;default:throw Error("invalid wire type "+t);}}function c(){for(var t=_.sm(d),v=(t&127)>>>0,z=7;128<=t&&28>=z;)t=_.sm(d),v=(v|(t&(28>z?127:15))<<z)>>>0,z+=7;return 28<z?-1:v}var d=new _.pm(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.W(d);var e=_.W(d);e=
142
- _.Dm(e);var f=_.W(d),g=f>>>24;f&=16777215;var h=_.xm(d,16);h=_.kj(h);if(0<g){var l=_.W(d);d.skip(16*l)}l=_.W(d);for(var m=[],n=null;_.qm(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=wm(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.uh("Parsed WV PSSH Box","size",a,"name",e,"version",g,"flags",f,"size",l,"systemId",h,"contentId (base64)",n?_.gj(n):"","keyIds",m.map(function(t){return _.kj(t)}));return 0<m.length?_.un(_.kj(m[0])):null};
143
- _.wn=function(a,b,c,d,e,f){f=void 0===f?null:f;rn.call(this,a,b,d);this.version=e;this.h=c;this.l=f};
144
- _.Bn=function(a){a:{var b=new _.pm(new DataView(a.buffer),!0);_.W(b);for(_.tm(b);_.qm(b);)if(1===_.tm(b)){var c=_.tm(b);b=_.xm(b,c);break a}b=null}b||(b=a);a=_.R.kc(b,!0);c=_.qn(a,"WRMHEADER");a=c.getAttribute("version");var d=_.on(c,"DATA");c=(c=_.on(d,"LA_URL"))?_.pn(c):"";var e;if(e=_.on(d,"KID"))if(e=_.pn(e)){var f=_.on(d,pa);e={value:e,Ue:f?f.textContent.trim():null}}else e=null;else e=null;d=e?[e]:(e=xn(d))?[e]:(d=yn(d))?d:null;e=d&&d[0]||{};d=e.Ue;e=_.ij(void 0===e.value?"":e.value);e=_.zn(e);
145
- e=_.kj(e);return new _.wn(_.An,e,c,b,a,d)};_.zn=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=_.Xi(a);a.set(b,0);return a};xn=function(a){a=_.on(a,"PROTECTINFO");if(!a)return null;var b=_.on(a,"KID");if(!b)return null;a=b.getAttribute("VALUE");if(!a)return null;var c=b.getAttribute(pa);b=b.getAttribute("ALGID");return{value:a,Ue:c,hi:b}};
146
- yn=function(a){a=_.on(a,"PROTECTINFO");if(!a)return null;a=_.on(a,"KIDS");if(!a)return null;var b=_.nn(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(pa);d=d.getAttribute("ALGID");a.push({value:c,Ue:e,hi:d})}}return a.length?a:null};_.Jn=function(a){In&&performance.mark(a)};_.Kn=function(a,b,c){In&&performance.measure(a,b,c)};
147
- Ln=function(a){this.f=[];this.h=[];this.a=[];8<=a.byteLength&&(new _.ym).Y("pssh",this.j.bind(this)).parse(a.buffer);0==this.a.length&&_.J("No pssh box found!")};
148
- _.Pn=function(a){var b=this;this.C=a;this.J=new Set;this.B=this.I=this.o=null;this.da=!1;this.a=null;this.K=Mn;this.A=new _.Eh;this.P=new bm;this.f=new Map;this.L=[];this.H=new _.zj;this.h=null;this.T=function(c){b.w=!0;b.D=!1;b.H.reject(c);a.onError(c)};this.l=new Map;this.pa=new Map;this.ga=new _.Gk(function(){return Nn(b)});this.j=!1;this.Da=new _.zj;this.G=!1;this.ha=[];this.Wa=!1;this.V=0;this.g=new _.K("clpp.drm.DrmEngine");this.qa=(new _.Gk(function(){On(b)})).kb(1);this.H["catch"](function(){});
149
- this.w=this.D=!1;this.U=null};
150
- Rn=function(a){var b,c,d,e,f;return _.E(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.qa.stop();a.qa=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.Lc&&e.Lc.stop();a.f.clear();return _.x(g,Promise.all(b.map(function(h){return Promise.resolve().then(function(){var l;return _.E(function(m){if(1==m.a)return a.g.debug("Closing session",h.sessionId),_.A(m,2),_.x(m,Qn(h),4);
151
- if(2!=m.a)return _.bh(m,0);l=_.C(m);a.g.warn("Error while closing session",l);_.y(m)})})})),2);case 2:if(!a.B){g.F(3);break}_.A(g,4);return _.x(g,a.o.qd(null),6);case 6:_.bh(g,5);break;case 4:f=_.C(g),a.g.warn("Error while resetting media keys",f);case 5:a.B=null;case 3:a.o=null,a.a=null,a.J.clear(),a.I=null,a.L=[],a.h=null,a.T=null,a.C=null,a.V=0,a.U=null,_.y(g)}})};
152
- _.Un=function(a,b,c){c=void 0===c?[]:c;a.K=Sn;a.L=c;a.G=0<c.length;a.g.debug("Using Persisted Licenses: "+a.G);a.h&&a.h.enableSessionCacheForSkd&&a.g.info("Enabled session cache for SKD license requests");return _.Tn(a,b)};
153
- _.Tn=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.O.Yf(a.h.$a);Vn(b,d)}var e=Wn(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())Xn(f.value,a.h.$a);d=Yn(a,b);if(!d.size)return a.da=!0,Promise.resolve();_.Jn(be);d=_.Zn(a,d);return(c?d:d["catch"](function(){})).then(function(){_.Jn(ae);_.Kn("DRM queryMediaKeys_()",be,ae)})};
154
- $n=function(a){var b;return _.E(function(c){switch(c.a){case 1:if(a.o.le())return c["return"]();if(!a.U){c.F(2);break}return _.x(c,a.U,3);case 3:return c["return"]();case 2:return _.A(c,4),a.U=a.o.qd(a.I),_.x(c,a.U,6);case 6:_.bh(c,0);break;case 4:b=_.C(c);if(a.j)return c["return"]();a.T(new _.P(_.Q,6,6003,b.message,b));_.y(c)}})};
155
- bo=function(a,b){return _.E(function(c){if(1==c.a)return a.g.info("Handle encrypted event for type "+b.initDataType),_.x(c,$n(a),2);if(!b.initData)return c["return"]();_.ao(a,b.initDataType,_.Xi(b.initData));_.y(c)})};
156
- _.ho=function(a,b){if(!a.I)return _.Fh(a.A,b,[me,"msneedkey",Hg,"needkey"],function(){a.T(new _.P(_.Q,6,6010))}),Promise.resolve();a.B=b;a.o.ce(b);a.A.one(a.B,_.jf,function(){return co(a)});a.A.on(a.B,_.Cg,function(e){var f=a.D;a.D=!a.w;!f&&a.D&&(a.g.info("Waiting for DRM license key delivery"),a.C.onEvent(e))});var c=a.a.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.o.pd()!==Sb||a.L.length)d=$n(a);c=Promise.resolve();_.Hj()&&38===Kk().major||(a.a&&a.a.keySystem!==
157
- _.cf&&!a.a.serverCertificate&&(c=eo(a)),c=c.then(function(){return _.fo(a)}));return Promise.all([d,c]).then(function(){a.j||(_.go(a),a.A.on(a.B,me,function(e){return bo(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.a&&a.a.keySystem===_.Sd&&1>a.V&&a.a.serverCertificate&&a.a.serverCertificate.length)return a.g.warn("Detected invalid widevine server certificate!. Retrying"),a.T(new _.P(1,6,6004)),a.a.serverCertificate=null,a.V++,_.ho(a,b);1<=a.V&&a.g.info("Could not get valid widevine server certificate. Giving up");
158
- throw e;}})};_.fo=function(a){var b,c;return _.E(function(d){if(1==d.a){if(!(a.I&&a.a&&a.a.serverCertificate&&a.a.serverCertificate.length))return d.F(0);_.A(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.g.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.bh(d,0);c=_.C(d);throw new _.P(_.Q,6,6004,{browserError:c.message});})};
159
- eo=function(a){var b=a.keySystem(),c=a.h.$a[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.C.getConfiguration();return io(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.uj([d],a.h.attemptParameters);f.type=3;f.licenseRequestType=ud;g&&f.requestModifiers.push(function(l){return g(e,l)});h&&f.responseModifiers.push(function(l){return h(e,l)});a.g.debug("Fetching certificate");return a.C.sb.fetch(f).O}).then(function(f){a.a.serverCertificate=
160
- _.Xi(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}:{},hn(g));throw new _.P(_.Q,6,6100,g,f);})};io=function(a,b){var c,d;return _.E(function(e){c=a.C.Qc();return c?(d=b&&b.drm&&b.drm.customData)?_.x(e,c(d),0):e["return"]():e["return"]()})};jo=function(a,b){if(!a)return!1;for(var c=0;c<b.fe.length;c++)if(_.lj(a,b.fe[c]))return!0;return!1};
161
- _.go=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=!_.Gj(2);if(a.h.enforceSingleSession&&!a.keySystem().startsWith(_.Od)){var f=a.f.values();f=_.u(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.lj(d.initData,g.initData)?(a.g.info("Skipping Session creation. Existing init data in single session mode!"),e=!1):g.periodId===d.periodId&&(a.g.info("Skipping Session creation. Merging init data for period in single session mode for Key ID "+(d.keyId+
162
- ".")),jo(d.initData,g)||(g.fe.push(d.initData),d.keyId&&!g.ab.includes(d.keyId)&&g.ab.push(d.keyId),a.l.get(d.keyId)||a.l.set(d.keyId,Wf)),e=!1)}!e||a.G&&a.K===Sn||(_.ko(a,d.keyId,d.initData)&&(e=!1),e&&(a.g.info("Request new media key session on create"),lo(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.u(a.L);for(d=c.next();!d.done;d=c.next())_.mo(a,d.value);b.length||a.L.length||(a.w||a.g.info(Aa),a.w=!0,a.D=!1,a.H.resolve());return a.H};
163
- _.ao=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.G||a.K!==Sn)){var e=a.keySystem();if(!e.startsWith(_.Od)&&b===_.rd){var f=new Ln(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||
164
- _.Gj(2)||a.keySystem().startsWith(_.Od)||!_.ko(a,d,c,!0))&&lo(a,d,null,b,c)}};
165
- _.ko=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(_.lj(c,g.initData))return b?g.ab.includes(b)?d&&a.g.info("Skipping Session creation. License for init data with Key ID "+(b+" was already requested in Session: '")+(f.sessionId+"'. ")):(g.ab.push(b),a.l.get(b)||a.l.set(b,Wf),d&&a.g.info($b+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.g.info($b+(f.sessionId+"'")),!0;if(jo(c,g))return d&&a.g.info("Skipping Session creation. License for init data was already requested [extra]"),
166
- !0}return!1};no=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};
167
- Yn=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())e=e.value,Xn(e,a.h.$a),c.add(e)}f=a.G?_.Kf:_.bf;var g=a.G?[_.gf]:[cg];d=new Map;c=_.u(c);for(e=c.next();!e.done;e=c.next())e=e.value,d.set(e.keySystem,{initDataTypes:[_.rd],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.bf,persistentState:f,sessionTypes:g,label:e.keySystem,drmInfos:[]});c={};f=_.u(b);for(e=f.next();!e.done;c={Ge:c.Ge,ed:c.ed,Ne:c.Ne,
168
- fd:c.fd},e=f.next()){e=e.value;g=e.audio;var h=e.video;c.Ge=g?_.oo(g):"";c.ed=null;g&&"ac-3"===g.codecs.toLowerCase()&&_.Gj()&&(c.ed=_.oo(g,_.le));c.Ne=h?_.oo(h):"";c.fd=null;h&&"ac-3"===h.codecs.toLowerCase()&&_.Gj()&&(c.fd=_.oo(h,_.le));var l={},m=_.u(e.drmInfos);for(e=m.next();!e.done;l={Va:l.Va},e=m.next())e=e.value,l.Va=d.get(e.keySystem),l.Va.drmInfos.push(e),e.initData&&e.initData.length&&(l.Va.initDataTypes=_.Pg(new Set(e.initData.map(function(n){return n.initDataType}))).concat()),e.distinctiveIdentifierRequired&&
169
- (l.Va.distinctiveIdentifier=_.Kf),e.persistentStateRequired&&(l.Va.persistentState=_.Kf),g&&_.Th(e.audioRobustness).forEach(function(n,p){return function(q){var t={robustness:q||"",contentType:n.Ge};p.Va.audioCapabilities.find(function(v){return v.robustness===t.robustness&&v.contentType===t.contentType})||p.Va.audioCapabilities.push(t);n.ed&&p.Va.audioCapabilities.push({robustness:q||"",contentType:n.ed})}}(c,l)),h&&_.Th(e.videoRobustness).forEach(function(n,p){return function(q){var t={robustness:q||
170
- "",contentType:n.Ne};p.Va.videoCapabilities.find(function(v){return v.robustness===t.robustness&&v.contentType===t.contentType})||p.Va.videoCapabilities.push(t);n.fd&&p.Va.videoCapabilities.push({robustness:q||"",contentType:n.fd})}}(c,l))}return d};_.oo=function(a,b){var c=_.Ck(a.mimeType,b||a.codecs);if(_.Bk(c,a.type)){var d=a.type,e=_.Bk(c,d);e&&(e=e(),c=e.convertCodecs(d,c),e.destroy())}return c};
171
- _.Zn=function(a,b){function c(m,n,p){n.drmInfos.some(function(q){return!!q.licenseServerUri})==m&&(f=f["catch"](function(){if(a.j)return null;if(p===_.Qd){if(_.Ik()&&!a.h.$a[p].useLegacySystem)return n.label=Rd,a.o.hc(Rd,[n])["catch"](function(){a.g.warn("Unable to create com.microsoft.playready.recommendation. Falling back to com.microsoft.playready.");n.label=_.Qd;po(n);return a.o.hc(p,[n])});po(n)}return a.o.hc(p,[n])["catch"](function(q){a:{if(p===_.Sd&&qo(n)){var t=_.Ij();if(qo(n)&&t.os===$k&&
172
- t.browser===wd){a.g.warn("requestMediaKeySystemAccess() failed",q);a.g.warn("Will try to recover by removing the robustness attribute of videoCapabilities and audioCapabilities.");po(n);q=a.o.hc(p,[n]);break a}}throw q;}return q})}))}if(1==b.size&&b.has(""))return Promise.reject(new _.P(_.Q,6,6E3));null===a.o&&(a.o=mn(a.h.emeApi));for(var d=_.u(b.values()),e=d.next();!e.done;e=d.next())e=e.value,0===e.audioCapabilities.length&&delete e.audioCapabilities,0===e.videoCapabilities.length&&delete e.videoCapabilities;
173
- var f=d=new _.zj,g=a.h.preferredDrmSystem;if(!g)if(e=_.Ij(),e.os===bl&&10<=e.osVersion.major&&"edge"===e.browser)g=_.Qd;else if("safari"===e.browser)g=_.Od;else if(e.browser===wd||"firefox"===e.browser)g=_.Sd;g&&(e=b.get(g))&&(c(!0,e,g),c(!1,e,g));e={};for(var h=_.u([!0,!1]),l=h.next();!l.done;e={Le:e.Le},l=h.next())e.Le=l.value,b.forEach(function(m){return function(n,p){p!==g&&c(m.Le,n,p)}}(e));f=f["catch"](function(m){throw new _.P(_.Q,6,6001,null,m);});f=f.then(function(m){if(a.j)return null;a.J.clear();
174
- var n=m.getConfiguration();a.g.info("Got MediaKeySystemAccess with configuration",n);var p=n.videoCapabilities||[],q=_.u(n.audioCapabilities||[]);for(n=q.next();!n.done;n=q.next())a.J.add(n.value.contentType.toLowerCase());p=_.u(p);for(n=p.next();!n.done;n=p.next())a.J.add(n.value.contentType.toLowerCase());p=m.keySystem;n=b.get(_.ro(m.keySystem));q=[];var t=[],v=[],z=[];so(n.drmInfos,q,t,v,z);1<t.length&&_.J("Multiple unique server certificates found! Only the first will be used.");1<q.length&&_.J("Multiple unique license server URIs found! Only the first will be used.");
175
- a.a={keySystem:p,licenseServerUri:q[0],distinctiveIdentifierRequired:n.distinctiveIdentifier==_.Kf,persistentStateRequired:n.persistentState==_.Kf,audioRobustness:n.audioCapabilities?n.audioCapabilities[0].robustness:"",videoRobustness:n.videoCapabilities?n.videoCapabilities[0].robustness:"",serverCertificate:t[0],initData:v,keyIds:z,periodId:null};if(!a.a.licenseServerUri)throw new _.P(_.Q,6,6012,a.a.keySystem);return m.createMediaKeys()}).then(function(m){a.j||(a.g.info("Created MediaKeys for key system",
176
- a.a.keySystem),a.I=m,a.da=!0)})["catch"](function(m){if(!a.j){a.a=null;a.J.clear();if(m instanceof _.P)throw m;throw new _.P(_.Q,6,6002,{browserError:m.message});}});d.reject();return f};
177
- Wn=function(a){a=_.O.Yf(a.h.$a[_.cf]||{});if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.jj(f),h=_.jj(e);g={kty:"oct",kid:_.hj(g,!1),k:_.hj(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.R.Ua(d),initDataType:"keyids"}];return{keySystem:_.cf,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
104
+ disableFragmentSupport:!1,disableMergedFragments:!1,ignoreManagedMediaSourceStreamingHints:!1},mediaSource:{codecSwitchingStrategy:_.Gf},restrictions:cm(),tizen:{sideStreamText:_.Xj(2)},safari:{enableHlsVideoTrackInfo:!1,enableMetadata:!1},trickPlay:{speedUpMode:_.Yd,preferTrickPlayTracks:!0},playlist:{timeline:"basic",content:_.nc,cropTimeline:!1}};if(_.bl("Edge/")||_.Xj())a.streaming.gapDetectionThreshold=.5;_.Yj()&&(a.streaming.stallEnabled=!1);_.el()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=
105
+ 1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.Xj()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=0);a.vr={enable:!1,attachMouseListener:!0,fieldOfView:70,sensitivity:1,invertHorizontalControl:!1,invertVerticalControl:!1};return a};
106
+ _.fm=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(!b)return _.dm();c=[_.dm()];var d=!1;b=_.w(b);for(var e=b.next();!e.done;e=b.next())e=e.value,null!==e&&void 0!==e&&(_.O.ga(e)&&(e={source:e}),e.lowLatencyMode&&!d&&(c.push({streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,ignoreDrift:!0,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{lowLatencyMode:!0}}),d=!0),c.push(e),null!=
107
+ e.suggestedPresentationDelay&&c.push({manifest:{suggestedPresentationDelay:e.suggestedPresentationDelay}}));c=_.O.ra.apply(null,c);_.O.ga(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.O.S(c.volume)&&(!_.O.ya(c.volume)||_.O.isNaN(c.volume)))throw new _.P(_.Q,7,7100,"config.volume is not a number");if(!_.O.S(c.preferredTextLanguage)&&!_.O.ga(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.P(_.Q,7,7100,"config.preferredTextLanguage is not a string or an array");
108
+ if(!_.O.S(c.preferredAudioLanguage)&&!_.O.ga(c.preferredAudioLanguage)&&!Array.isArray(c.preferredAudioLanguage))throw new _.P(_.Q,7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.O.S(c.preferredAudioCodec)&&!_.O.ga(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.P(_.Q,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.O.S(c.preferredVideoCodec)&&!_.O.ga(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.P(_.Q,
109
+ 7,7100,"config.preferredVideoCodec is not a string or an array");if(!_.O.S(c.drm)){if(c.drm.env&&!_.O.ga(c.drm.env))throw new _.P(_.Q,7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.O.ga(c.drm.offlineId))throw new _.P(_.Q,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);
110
+ if(!_.O.ya(d.bufferingGoal)||_.O.isNaN(d.bufferingGoal))throw new _.P(_.Q,7,7100,"config.streaming.bufferingGoal is not a number");if(!_.O.ya(d.rebufferingGoal)||_.O.isNaN(d.rebufferingGoal))throw new _.P(_.Q,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.P(_.Q,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.O.ya(d.bufferBehind)||_.O.isNaN(d.bufferBehind))throw new _.P(_.Q,7,7100,"config.streaming.bufferBehind is not a number");
111
+ if(!_.O.ya(d.smallGapLimit)||_.O.isNaN(d.smallGapLimit))throw new _.P(_.Q,7,7100,"config.streaming.smallGapLimit is not a number");if(!_.O.ya(d.durationBackoff)||_.O.isNaN(d.durationBackoff))throw new _.P(_.Q,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.O.S(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.k)throw new _.P(_.Q,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");em(c.restrictions);
112
+ em(c.abr.restrictions);c.abr.initialRestrictions&&em(c.abr.initialRestrictions)}return c};cm=function(a){a=void 0===a?Infinity:a;return{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minBandwidth:0,maxBandwidth:Infinity}};
113
+ em=function(a){_.O.S(a.maxPixels)&&(a.maxPixels=Infinity);_.O.S(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.O.S(a.maxHeight)&&(a.maxHeight=Infinity);_.O.S(a.maxWidth)&&(a.maxWidth=Infinity);_.O.S(a.minPixels)&&(a.minPixels=0);_.O.S(a.minBandwidth)&&(a.minBandwidth=0);_.O.S(a.minHeight)&&(a.minHeight=0);_.O.S(a.minWidth)&&(a.minWidth=0);a.minWidth=Number(a.minWidth);a.maxWidth=Number(a.maxWidth);a.minHeight=Number(a.minHeight);a.maxHeight=Number(a.maxHeight);a.minBandwidth=Number(a.minBandwidth);
114
+ a.maxBandwidth=Number(a.maxBandwidth);a.minPixels=Number(a.minPixels);a.maxPixels=Number(a.maxPixels);if(Number.isNaN(a.minWidth)||Number.isNaN(a.maxWidth)||Number.isNaN(a.minHeight)||Number.isNaN(a.maxHeight)||Number.isNaN(a.minBandwidth)||Number.isNaN(a.maxBandwidth)||Number.isNaN(a.minPixels)||Number.isNaN(a.maxPixels))throw new _.P(_.Q,7,7100,"Restrictions contain NaN");};gm=function(a){return typeof a===_.Ye&&!Array.isArray(a)&&"source"in a};
115
+ _.hm=function(a){_.Yl.call(this);this.log=new _.K(a);this.configuration=this.Vc=_.dm();this.$=this.D=null;this.ae=this.og=!1;this.Gg=new _.K("clpp.video.events");this.Md=null;this.Qe=-1;this.Vi=this.$m.bind(this);this.mg=new _.ck;this.P=new _.Uh;this.Uc=this.hd=this.ia=null};_.jm=function(a){return _.im.get(a)||null};_.lm=function(a){_.im.get(a.id())?km.warn("Component already in use."):_.im.set(a.id(),a)};mm=function(a){return Array.from(_.im.values()).find(function(b){return b instanceof a})||null};
116
+ nm=function(a){for(var b=_.w(_.im.values()),c=b.next();!c.done;c=b.next())a(c.value)};om=function(a){nm(function(b){b.o(a)})};pm=function(a){nm(function(b){b.h(a)})};qm=function(){nm(function(){})};rm=function(){nm(function(){})};sm=function(a){if(null!==mm(a))return null;a=new a;a.f();_.lm(a);km.info("Installed component:",a.id());return a};tm=function(a){if(a=mm(a))a.a(),_.im["delete"](a.id()),km.info("Uninstalled component:",a.id())};um=function(){this.a=this.f=null;this.g=new _.K("clpp.drm.csl")};
117
+ vm=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[Xg]=a.f),a.a&&(b.headers[Yg]=a.a))};wm=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[Xg];a.a=b.headers[Yg];var c=b.headers["x-dt-csl-renewal-info"];a.f&&a.g.debug("Loaded tracking token "+a.f);a.a&&a.g.debug("Loaded followup token "+a.a);if(c)return c=JSON.parse(_.S.ea(_.zj(c))),{delay:c.renewalPeriod,Pn:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};
118
+ xm=function(a){return _.S.startsWith(a,_.Qd)||_.S.startsWith(a,_.Sd)};_.zm=function(a){_.ym[a.J]=a};
119
+ _.Bm=function(a){var b={attemptParameters:_.Ij(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,ignoreUnrecognizedInitData:!0,mb:{}};if(a&&(b.enforceSingleSession=!!a.enforceSingleSession,b.delayLicenseRequestUntilPlayed=!!a.delayLicenseRequestUntilPlayed,b.preferredDrmSystem=a.preferredDrmSystem,b.emeApi=a.emeApi,a.attemptParameters&&(b.attemptParameters=a.attemptParameters),b.enableSessionCacheForSkd=!!a.enableSessionCacheForSkd,void 0!==a.ignoreUnrecognizedInitData&&
120
+ (b.ignoreUnrecognizedInitData=!!a.ignoreUnrecognizedInitData),a.env)){var c=_.ym[a.env]||null;if(!c)throw _.Kh(_.za,_.Qb+a.env+_.ca),new _.P(_.Q,6,6015,_.Aa+a.env+"' is missing.");b.mb=_.Am(c,a.customData)||{};_.S.startsWith(a.env.toLowerCase(),me)&&(b.enforceSingleSession=!0)}return b};Dm=function(a){a=Cm[a];if(!a)return null;var b=_.Zj();return b.os===tl&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.Em=function(a){this.J=a;this.f={}};
121
+ _.Am=function(a,b){var c={},d=b?b.widevineVideoRobustness:void 0,e=b?b.widevineAudioRobustness:void 0,f=b?b.serverCertificate:void 0,g=a.f[_.Ud];g&&(c[_.Ud]={licenseUrl:g.licenseUrl,videoRobustness:Gi(d,g.videoRobustness),audioRobustness:Gi(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:Fi(b?b.widevineDistinctiveIdentifierRequired:void 0,g.distinctiveIdentifierRequired,!1),persistentStateRequired:Fi(b?b.widevinePersistentStateRequired:void 0,g.persistentStateRequired,!1),
122
+ serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.kg?Dm(f):f});(g=a.f[_.Qd])&&(c[_.Qd]={licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.f[_.Sd])&&(c[_.Sd]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});
123
+ return c};_.Fm=function(a,b){b=void 0===b?!1:b;this.f=_.O.ya(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.h=b;this.buffer=this.f.buffer};_.Hm=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.nj(a.f.buffer);b=_.nj(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.Gm()}};_.U=function(a,b){try{a.f.setUint32(a.a,b,a.h),a.a+=4}catch(c){_.Gm()}};_.Gm=function(){throw new _.P(_.Q,3,3E3);};_.Im=function(a,b){this.f=a;this.h=void 0===b?!0:b;this.a=0};_.Jm=function(a){return a.a<a.f.byteLength};
124
+ _.Lm=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.Km()}};_.Mm=function(a){try{var b=a.f.getUint16(a.a,a.h);a.a+=2;return b}catch(c){_.Km()}};_.V=function(a){try{var b=a.f.getUint32(a.a,a.h);a.a+=4;return b}catch(c){_.Km()}};_.Nm=function(a){try{var b=a.f.getInt32(a.a,a.h);a.a+=4;return b}catch(c){_.Km()}};
125
+ _.Om=function(a){var b=0,c=0;try{!0===a.h?(b=a.f.getUint32(a.a,!0),c=a.f.getUint32(a.a+4,!0)):(c=a.f.getUint32(a.a,!1),b=a.f.getUint32(a.a+4,!1))}catch(d){_.Km()}if(2097151<c)throw new _.P(_.Q,3,3001);a.a+=8;return c*Math.pow(2,32)+b};Pm=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.Lm(a);return c};_.Qm=function(a,b){a.a+b>a.f.byteLength&&_.Km();var c=a.a+a.f.byteOffset;c=a.f.buffer.slice(c,c+b);a.a+=b;return _.nj(c)};
126
+ _.Km=function(){throw new _.P(_.Q,3,3E3,"Buffer read out of bounds.");};_.Rm=function(){this.h=[];this.f=[];this.a=!1;this.g=new _.K("clpp.mp4")};_.Sm=function(a){for(;_.Jm(a.reader)&&!a.parser.a;)a.parser.af(a.start+a.headerSize,a.reader,a.partialOkay)};_.Tm=function(a){for(var b=_.V(a.reader);0<b&&!a.parser.a;--b)a.parser.af(a.start+a.headerSize,a.reader,a.partialOkay)};_.Um=function(a){return function(b){var c=b.reader.La()-b.reader.getPosition();a(_.Qm(b.reader,c))}};
127
+ Vm=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.Wm=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.Xm=function(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)};Ym=function(){};Zm=function(a){var b="";try{b=_.S.Pd(a)}catch(c){}return b};_.$m=function(a){a=Zm(a);var b="";a.length&&(b=(new _.sk(a)).a);return b};
128
+ an=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.S.ea(a)),d=_.zj(c.sinf[0]);(new _.Rm).K(_.dg,_.Sm).K("schi",_.Sm).K("tenc",function(e){e.reader.skip(6);_.Lm(e.reader)&&(e.reader.skip(1),b=_.Bj(_.Qm(e.reader,16)));e.parser.stop()}).parse(d)}catch(e){}return b};
129
+ bn=function(a,b,c){if(!c||!c.byteLength)throw new _.P(_.Q,6,6102);var d;typeof b===_.kg?d=_.S.gf(b,!0):d=b;a=_.S.gf(Zm(a),!0);b=new _.Fm(12+a.byteLength+d.byteLength+c.byteLength,!0);_.U(b,a.byteLength);_.Hm(b,_.nj(a));_.U(b,d.byteLength);_.Hm(b,_.nj(d));_.U(b,c.byteLength);_.Hm(b,_.nj(c));return _.nj(b.buffer)};_.cn=function(a){var b=_.nj(a.body);b=_.yj(b);a.headers[ya]=ad;a.body=_.S.hb("spc\x3d"+b).buffer};
130
+ _.dn=function(a){try{var b=_.S.ea(a.data)}catch(d){return}b=b.trim();"\x3cckc\x3e"===b.substr(0,5)&&"\x3c/ckc\x3e"===b.substr(-6)&&(b=b.slice(5,-6));try{var c=JSON.parse(b);c.ckc&&(b=c.ckc);c.CkcMessage&&(b=c.CkcMessage);c.License&&(b=c.License)}catch(d){}a.data=vj(_.zj(b))};
131
+ jn=function(){var a=en;if(a===fn)return"https://lic.drmtoday.com";if(a===gn)return"https://lic.staging.drmtoday.com";if(a===hn)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};nn=function(a){var b=jn();if(a===_.Ud)return b+kn;if(a===_.Sd)return b+ln;if(a===_.Qd)return b+mn;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
132
+ on=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
133
+ _.qn=function(a,b,c){b=Zm(b);c=c&&c.customData?c.customData:{};b=new _.sk(on(b));var d=_.vk(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.S.Ue(""+a)&&(d.assetId=a,pn.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.S.Ue(""+e)&&(d.variantId=e,pn.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],pn.debug("KeyId found in FPS SKD. Removing other parameters")):
134
+ a=["assetId","variantId"];b.f=_.uk(d,!1,a);"/"!==b.path||b.j.includes(b.a+"/")||(b.path="");b=_.tk(b);return c.fpsContentId=b};_.sn=function(a,b,c,d){d=void 0===d?!0:d;c=a.drm;c&&c.env.startsWith(Ea)?c.customData&&(_.rn(b,a),a=b.uris[0],d&&c.customData.assetId&&(a+="?assetId\x3d"+encodeURI(""+c.customData.assetId),c.customData.variantId&&(a+="\x26variantId\x3d"+encodeURI(""+c.customData.variantId)),b.uris[0]=a)):pn.warn(Bb)};
135
+ tn=function(a,b,c){_.sn(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.Hi(b.uris[0]);c.a.add(_.jf,a);b.uris[0]=c.toString()};
136
+ _.un=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.sn(a,b,c,!1);b.headers[ya]=ad;c={spc:_.xj(b.body)};if((a=a.drm)&&a.env.startsWith(Fa)&&d){a={};var e=_.vk((new _.sk(on(d))).f);d=e.keyId;if(e=e.assetId)pn.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(pn.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(pn.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(pn.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
137
+ _.S.wd(_.uk(c,!0))};_.vn=function(a,b){pn.debug("Clearing response data");if(200===b.status){var c=_.S.ea(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.zj(c).buffer}};_.wn=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(Ea))pn.warn(Bb);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(Fa)){var d=new _.Hi(b.uris[0]),e=d.Ma;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.Ma=e;b.uris[0]=d.toString()}};
138
+ _.xn=function(a,b){try{var c=_.nj(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));pn.debug("Widevine License response",d);var e=atob(d.license),f=new Uint8Array(e.length);for(c=0;c<e.length;++c)f[c]=e.charCodeAt(c);b.data=f.buffer}catch(g){pn.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};
139
+ _.rn=function(a,b){var c=b.drm;if(c&&c.customData){var d={userId:c.customData.userId,sessionId:c.customData.sessionId,merchant:c.customData.merchant};_.O.Vd(d)&&(a.headers["dt-custom-data"]=btoa(JSON.stringify(d)));(c=c.customData.authToken)&&(a.headers["x-dt-auth-token"]=c)}};zn=function(a){var b={},c=a?a[Zg]:void 0;a=yn[a?a[Zg]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};An=function(){};
140
+ En=function(a,b){b=void 0===b?0:b;_.Jh("Registering EME Factory: "+a.a());for(var c={priority:b,bc:a},d=0;d<Dn.length;++d)if(Dn[d].priority<b){Dn.splice(d,0,c);return}Dn.push(c)};
141
+ Fn=function(a){if(a){var b=Dn.find(function(d){return d.bc.a()===a}).bc;if(b&&b.isSupported())return _.Jh(tc+b.a()),b.create();_.Jh("Cannot create selected EME manager. Choosing by priority list.")}b=_.w(Dn);for(var c=b.next();!c.done;c=b.next())if(c=c.value.bc,c.isSupported())return _.Jh(tc+c.a()),c.create();throw Error("Missing EME managers");};_.Hn=function(a,b){var c=_.Gn(a,b);return 1!==c.length?null:c[0]};
142
+ _.Gn=function(a,b){return Array.prototype.filter.call(a.childNodes,function(c){return c instanceof Element&&c.tagName===b})};_.In=function(a){return Array.prototype.every.call(a.childNodes,function(b){return b.nodeType===Node.TEXT_NODE||b.nodeType===Node.CDATA_SECTION_NODE})?a.textContent.trim():null};
143
+ _.Jn=function(a,b){var c=new DOMParser,d=null,e=null;try{e=c.parseFromString(a,_.rg)}catch(f){}e&&e.documentElement.tagName===b&&(d=e.documentElement);return d&&0<d.getElementsByTagName("parsererror").length?null:d};Kn=function(a,b,c){this.j=new Uint8Array(a);this.a=b;this.f=c};Ln=function(){Kn.apply(this,arguments)};_.Nn=function(a){var b=_.Aj(a);b=parseInt(b.byteLength,10).toString(16);b=_.Aj("12"+b+a);return new Ln(Mn,a,b)};
144
+ _.On=function(a){function b(t){switch(t){case 0:do if(!_.Jm(d))throw Error("not enough data to skip!");while(_.Lm(d)&128);break;case 1:d.skip(8);break;case 2:d.skip(c());break;case 3:for(;4!==(t=c()&7);)b(t);break;case 5:d.skip(4);break;default:throw Error("invalid wire type "+t);}}function c(){for(var t=_.Lm(d),v=(t&127)>>>0,z=7;128<=t&&28>=z;)t=_.Lm(d),v=(v|(t&(28>z?127:15))<<z)>>>0,z+=7;return 28<z?-1:v}var d=new _.Im(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.V(d);var e=_.V(d);e=
145
+ _.Wm(e);var f=_.V(d),g=f>>>24;f&=16777215;var h=_.Qm(d,16);h=_.Bj(h);if(0<g){var l=_.V(d);d.skip(16*l)}l=_.V(d);for(var m=[],n=null;_.Jm(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=Pm(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.Kh("Parsed WV PSSH Box","size",a,"name",e,"version",g,"flags",f,"size",l,"systemId",h,"contentId (base64)",n?_.xj(n):"","keyIds",m.map(function(t){return _.Bj(t)}));return 0<m.length?_.Nn(_.Bj(m[0])):null};
146
+ _.Pn=function(a,b,c,d,e,f){f=void 0===f?null:f;Kn.call(this,a,b,d);this.version=e;this.h=c;this.l=f};
147
+ _.Un=function(a){a:{var b=new _.Im(new DataView(a.buffer),!0);_.V(b);for(_.Mm(b);_.Jm(b);)if(1===_.Mm(b)){var c=_.Mm(b);b=_.Qm(b,c);break a}b=null}b||(b=a);a=_.S.vc(b,!0);c=_.Jn(a,"WRMHEADER");a=c.getAttribute("version");var d=_.Hn(c,"DATA");c=(c=_.Hn(d,"LA_URL"))?_.In(c):"";var e;if(e=_.Hn(d,"KID"))if(e=_.In(e)){var f=_.Hn(d,ra);e={value:e,Bf:f?f.textContent.trim():null}}else e=null;else e=null;d=e?[e]:(e=Qn(d))?[e]:(d=Rn(d))?d:null;e=d&&d[0]||{};d=e.Bf;e=_.zj(void 0===e.value?"":e.value);e=_.Sn(e);
148
+ e=_.Bj(e);return new _.Pn(_.Tn,e,c,b,a,d)};_.Sn=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=_.nj(a);a.set(b,0);return a};Qn=function(a){a=_.Hn(a,"PROTECTINFO");if(!a)return null;var b=_.Hn(a,"KID");if(!b)return null;a=b.getAttribute("VALUE");if(!a)return null;var c=b.getAttribute(ra);b=b.getAttribute("ALGID");return{value:a,Bf:c,hj:b}};
149
+ Rn=function(a){a=_.Hn(a,"PROTECTINFO");if(!a)return null;a=_.Hn(a,"KIDS");if(!a)return null;var b=_.Gn(a,"KID");if(!b.length)return null;a=[];b=_.w(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(ra);d=d.getAttribute("ALGID");a.push({value:c,Bf:e,hj:d})}}return a.length?a:null};_.Wn=function(a){Vn&&performance.mark(a)};_.Xn=function(a,b,c){Vn&&performance.measure(a,b,c)};
150
+ Yn=function(a){this.f=[];this.h=[];this.a=[];8<=a.byteLength&&(new _.Rm).Y("pssh",this.j.bind(this)).parse(a.buffer);0===this.a.length&&_.Fh("No pssh box found!")};
151
+ _.bo=function(a){var b=this;this.B=a;this.J=new Set;this.C=this.I=this.o=null;this.ba=!1;this.a=null;this.L=Zn;this.A=new _.Uh;this.P=new um;this.f=new Map;this.M=[];this.H=new _.Qj;this.h=null;this.V=function(c){b.w=!0;b.D=!1;b.H.reject(c);a.onError(c)};this.l=new Map;this.ja=new Map;this.ca=new _.Zk(function(){return $n(b)});this.j=!1;this.Pa=new _.Qj;this.G=!1;this.ia=[];this.Wa=!1;this.W=0;this.g=new _.K("clpp.drm.DrmEngine");this.na=(new _.Zk(function(){ao(b)})).yb(1);this.H["catch"](function(){});
152
+ this.w=this.D=!1;this.T=null};
153
+ eo=function(a){var b,c,d,e,f;return _.I(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.ca.stop();a.ca=null;b=Array.from(a.f.keys());c=_.w(a.f.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.fd&&e.fd.stop();a.f.clear();return _.y(g,Promise.all(b.map(function(h){return Promise.resolve().then(function(){var l;return _.I(function(m){if(1==m.a)return a.g.debug("Closing session",h.sessionId),_.D(m,2),_.y(m,co(h),4);
154
+ if(2!=m.a)return _.qh(m,0);l=_.E(m);a.g.warn("Error while closing session",l);_.C(m)})})})),2);case 2:if(!a.C){g.F(3);break}_.D(g,4);return _.y(g,a.o.Gd(null),6);case 6:_.qh(g,5);break;case 4:f=_.E(g),a.g.warn("Error while resetting media keys",f);case 5:a.C=null;case 3:a.o=null,a.a=null,a.J.clear(),a.I=null,a.M=[],a.h=null,a.V=null,a.B=null,a.W=0,a.T=null,_.C(g)}})};
155
+ _.ho=function(a,b,c){c=void 0===c?[]:c;a.L=fo;a.M=c;a.G=0<c.length;a.g.debug("Using Persisted Licenses: "+a.G);a.h&&a.h.enableSessionCacheForSkd&&a.g.info("Enabled session cache for SKD license requests");return _.go(a,b)};
156
+ _.go=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.O.Ig(a.h.mb);io(b,d)}var e=jo(a);if(e){var f=_.w(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos=[e]}e=_.w(b);for(d=e.next();!d.done;d=e.next())for(d=_.w(d.value.drmInfos),f=d.next();!f.done;f=d.next())ko(f.value,a.h.mb);d=lo(a,b);if(!d.size)return a.ba=!0,Promise.resolve();_.Wn(de);d=_.mo(a,d);return(c?d:d["catch"](function(){})).then(function(){_.Wn(ce);_.Xn("DRM queryMediaKeys_()",de,ce)})};
157
+ no=function(a){var b;return _.I(function(c){switch(c.a){case 1:if(a.o.Me())return c["return"]();if(!a.T){c.F(2);break}return _.y(c,a.T,3);case 3:return c["return"]();case 2:return _.D(c,4),a.T=a.o.Gd(a.I),_.y(c,a.T,6);case 6:_.qh(c,0);break;case 4:b=_.E(c);if(a.j)return c["return"]();a.V(new _.P(_.Q,6,6003,b.message,b));_.C(c)}})};
158
+ po=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Handle encrypted event for type "+b.initDataType),_.y(c,no(a),2);if(!b.initData)return c["return"]();_.oo(a,b.initDataType,_.nj(b.initData));_.C(c)})};
159
+ _.uo=function(a,b){if(!a.I)return _.Vh(a.A,b,[pe,"msneedkey",Vg,"needkey"],function(){a.V(new _.P(_.Q,6,6010))}),Promise.resolve();a.C=b;a.o.Ee(b);a.A.one(a.C,_.mf,function(){return qo(a)});a.A.on(a.C,_.Qg,function(e){var f=a.D;a.D=!a.w;!f&&a.D&&(a.g.info("Waiting for DRM license key delivery"),a.B.onEvent(e))});var c=a.a.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.o.Fd()!==Vb||a.M.length)d=no(a);c=Promise.resolve();_.Yj()&&38===_.dl().major||(a.a&&a.a.keySystem!==
160
+ _.ff&&!a.a.serverCertificate&&(c=ro(a)),c=c.then(function(){return _.so(a)}));return Promise.all([d,c]).then(function(){a.j||(_.to(a),a.A.on(a.C,pe,function(e){return po(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.a&&a.a.keySystem===_.Ud&&1>a.W&&a.a.serverCertificate&&a.a.serverCertificate.length)return a.g.warn("Detected invalid widevine server certificate!. Retrying"),a.V(new _.P(1,6,6004)),a.a.serverCertificate=null,a.W++,_.uo(a,b);1<=a.W&&a.g.info("Could not get valid widevine server certificate. Giving up");
161
+ throw e;}})};_.so=function(a){var b,c;return _.I(function(d){if(1==d.a){if(!(a.I&&a.a&&a.a.serverCertificate&&a.a.serverCertificate.length))return d.F(0);_.D(d,3);return _.y(d,a.I.setServerCertificate(a.a.serverCertificate),5)}if(3!=d.a)return b=d.f,void 0===b||b||a.g.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.qh(d,0);c=_.E(d);throw new _.P(_.Q,6,6004,{browserError:c.message});})};
162
+ ro=function(a){var b=a.keySystem(),c=a.h.mb[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.B.getConfiguration();return vo(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.Lj([d],a.h.attemptParameters);f.type=3;f.licenseRequestType=wd;g&&f.requestModifiers.push(function(l){return g(e,l)});h&&f.responseModifiers.push(function(l){return h(e,l)});a.g.debug("Fetching certificate");return a.B.bb.fetch(f).N}).then(function(f){a.a.serverCertificate=
163
+ _.nj(f.data)})["catch"](function(f){var g=f.data.headers;g=Object.assign({message:"Error while fetching certificate!",url:f.data.url,status:f.data.status,response:f.data.response},g?{headers:g}:{},zn(g));throw new _.P(_.Q,6,6100,g,f);})};vo=function(a,b){var c,d;return _.I(function(e){c=a.B.ld();return c?(d=b&&b.drm&&b.drm.customData)?_.y(e,c(d),0):e["return"]():e["return"]()})};wo=function(a,b){if(!a)return!1;for(var c=0;c<b.Ie.length;c++)if(_.Cj(a,b.Ie[c]))return!0;return!1};
164
+ _.to=function(a){for(var b=a.a?a.a.initData||[]:[],c=_.w(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.Xj(2);if(a.h.enforceSingleSession&&!a.keySystem().startsWith(_.Qd)){var f=a.f.values();f=_.w(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.Cj(d.initData,g.initData)?(a.g.info("Skipping Session creation. Existing init data in single session mode!"),e=!1):g.periodId===d.periodId&&(a.g.info("Skipping Session creation. Merging init data for period in single session mode for Key ID "+(d.keyId+
165
+ ".")),wo(d.initData,g)||(g.Ie.push(d.initData),d.keyId&&!g.nb.includes(d.keyId)&&g.nb.push(d.keyId),a.l.get(d.keyId)||a.l.set(d.keyId,ig)),e=!1)}!e||a.G&&a.L===fo||(_.xo(a,d.keyId,d.initData)&&(e=!1),e&&(a.g.info("Request new media key session on create"),Eo(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.w(a.M);for(d=c.next();!d.done;d=c.next())_.Fo(a,d.value);b.length||a.M.length||(a.w||a.g.info(Ba),a.w=!0,a.D=!1,a.H.resolve());return a.H};
166
+ _.oo=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.G||a.L!==fo)){var e=a.keySystem();if(!e.startsWith(_.Qd)&&b===_.ud){var f=new Yn(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.C.webkitCurrentPlaybackTargetIsWireless||
167
+ _.Xj(2)||a.keySystem().startsWith(_.Qd)||!_.xo(a,d,c,!0))&&Eo(a,d,null,b,c)}};
168
+ _.xo=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.w(a.f.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.f.get(f);if(_.Cj(c,g.initData))return b?g.nb.includes(b)?d&&a.g.info("Skipping Session creation. License for init data with Key ID "+(b+" was already requested in Session: '")+(f.sessionId+"'. ")):(g.nb.push(b),a.l.get(b)||a.l.set(b,ig),d&&a.g.info(cc+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.g.info(cc+(f.sessionId+"'")),!0;if(wo(c,g))return d&&a.g.info("Skipping Session creation. License for init data was already requested [extra]"),
169
+ !0}return!1};Go=function(a){var b=Infinity;a=a.f.keys();a=_.w(a);for(var c=a.next();!c.done;c=a.next())c=c.value,isNaN(c.expiration)||(b=Math.min(b,c.expiration));return b};
170
+ lo=function(a,b){for(var c=new Set,d=_.w(b),e=d.next();!e.done;e=d.next()){var f=_.w(e.value.drmInfos);for(e=f.next();!e.done;e=f.next())e=e.value,ko(e,a.h.mb),c.add(e)}f=a.G?_.Pf:_.ef;var g=a.G?[_.kf]:[pg];d=new Map;c=_.w(c);for(e=c.next();!e.done;e=c.next())e=e.value,d.set(e.keySystem,{initDataTypes:[_.ud],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.ef,persistentState:f,sessionTypes:g,label:e.keySystem,drmInfos:[]});c={};f=_.w(b);for(e=f.next();!e.done;c={lf:c.lf,xd:c.xd,wf:c.wf,
171
+ yd:c.yd},e=f.next()){e=e.value;g=e.audio;var h=e.video;c.lf=g?_.Ho(g):"";c.xd=null;g&&"ac-3"===g.codecs.toLowerCase()&&_.Xj()&&(c.xd=_.Ho(g,_.oe));c.wf=h?_.Ho(h):"";c.yd=null;h&&"ac-3"===h.codecs.toLowerCase()&&_.Xj()&&(c.yd=_.Ho(h,_.oe));var l={},m=_.w(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=_.ch(new Set(e.initData.map(function(n){return n.initDataType}))).concat()),e.distinctiveIdentifierRequired&&
172
+ (l.ib.distinctiveIdentifier=_.Pf),e.persistentStateRequired&&(l.ib.persistentState=_.Pf),g&&_.ji(e.audioRobustness).forEach(function(n,p){return function(q){var t={robustness:q||"",contentType:n.lf};p.ib.audioCapabilities.find(function(v){return v.robustness===t.robustness&&v.contentType===t.contentType})||p.ib.audioCapabilities.push(t);n.xd&&p.ib.audioCapabilities.push({robustness:q||"",contentType:n.xd})}}(c,l)),h&&_.ji(e.videoRobustness).forEach(function(n,p){return function(q){var t={robustness:q||
173
+ "",contentType:n.wf};p.ib.videoCapabilities.find(function(v){return v.robustness===t.robustness&&v.contentType===t.contentType})||p.ib.videoCapabilities.push(t);n.yd&&p.ib.videoCapabilities.push({robustness:q||"",contentType:n.yd})}}(c,l))}return d};_.Ho=function(a,b){var c=_.Uk(a.mimeType,b||a.codecs);if(_.Tk(c,a.type)){var d=a.type,e=_.Tk(c,d);e&&(e=e(),c=e.convertCodecs(d,c),e.destroy())}return c};
174
+ _.mo=function(a,b){function c(m,n,p){n.drmInfos.some(function(q){return!!q.licenseServerUri})===m&&(f=f["catch"](function(){if(a.j)return null;if(p===_.Sd){if(_.al()&&!a.h.mb[p].useLegacySystem)return n.label=Td,a.o.rc(Td,[n])["catch"](function(){a.g.warn("Unable to create com.microsoft.playready.recommendation. Falling back to com.microsoft.playready.");n.label=_.Sd;Io(n);return a.o.rc(p,[n])});Io(n)}return a.o.rc(p,[n])["catch"](function(q){a:{if(p===_.Ud&&Jo(n)){var t=_.Zj();if(Jo(n)&&t.os===tl&&
175
+ t.browser===yd){a.g.warn("requestMediaKeySystemAccess() failed",q);a.g.warn("Will try to recover by removing the robustness attribute of videoCapabilities and audioCapabilities.");Io(n);q=a.o.rc(p,[n]);break a}}throw q;}return q})}))}if(1===b.size&&b.has(""))return Promise.reject(new _.P(_.Q,6,6E3));null===a.o&&(a.o=Fn(a.h.emeApi));for(var d=_.w(b.values()),e=d.next();!e.done;e=d.next())e=e.value,0===e.audioCapabilities.length&&delete e.audioCapabilities,0===e.videoCapabilities.length&&delete e.videoCapabilities;
176
+ var f=d=new _.Qj,g=a.h.preferredDrmSystem;if(!g)if(e=_.Zj(),e.os===vl&&10<=e.osVersion.major&&"edge"===e.browser)g=_.Sd;else if("safari"===e.browser)g=_.Qd;else if(e.browser===yd||"firefox"===e.browser)g=_.Ud;g&&(e=b.get(g))&&(c(!0,e,g),c(!1,e,g));e={};for(var h=_.w([!0,!1]),l=h.next();!l.done;e={uf:e.uf},l=h.next())e.uf=l.value,b.forEach(function(m){return function(n,p){p!==g&&c(m.uf,n,p)}}(e));f=f["catch"](function(m){throw new _.P(_.Q,6,6001,null,m);});f=f.then(function(m){if(a.j)return null;a.J.clear();
177
+ var n=m.getConfiguration();a.g.info("Got MediaKeySystemAccess with configuration",n);var p=n.videoCapabilities||[],q=_.w(n.audioCapabilities||[]);for(n=q.next();!n.done;n=q.next())a.J.add(n.value.contentType.toLowerCase());p=_.w(p);for(n=p.next();!n.done;n=p.next())a.J.add(n.value.contentType.toLowerCase());p=m.keySystem;n=b.get(_.Ko(m.keySystem));q=[];var t=[],v=[],z=[];Lo(n.drmInfos,q,t,v,z);1<t.length&&_.Fh("Multiple unique server certificates found! Only the first will be used.");1<q.length&&
178
+ _.Fh("Multiple unique license server URIs found! Only the first will be used.");a.a={keySystem:p,licenseServerUri:q[0],distinctiveIdentifierRequired:n.distinctiveIdentifier===_.Pf,persistentStateRequired:n.persistentState===_.Pf,audioRobustness:n.audioCapabilities?n.audioCapabilities[0].robustness:"",videoRobustness:n.videoCapabilities?n.videoCapabilities[0].robustness:"",serverCertificate:t[0],initData:v,keyIds:z,periodId:null};if(!a.a.licenseServerUri)throw new _.P(_.Q,6,6012,a.a.keySystem);return m.createMediaKeys()}).then(function(m){a.j||
179
+ (a.g.info("Created MediaKeys for key system",a.a.keySystem),a.I=m,a.ba=!0)})["catch"](function(m){if(!a.j){a.a=null;a.J.clear();if(m instanceof _.P)throw m;throw new _.P(_.Q,6,6002,{browserError:m.message});}});d.reject();return f};
180
+ jo=function(a){a=_.O.Ig(a.h.mb[_.ff]||{});if(0===a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.Aj(f),h=_.Aj(e);g={kty:"oct",kid:_.yj(g,!1),k:_.yj(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.S.hb(d),initDataType:"keyids"}];return{keySystem:_.ff,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
178
181
  initData:d,keyIds:[],periodId:null}};
179
- _.mo=function(a,b){try{a.g.debug("Attempting to load an offline session",b);var c=a.I.createSession(_.gf)}catch(f){var d=new _.P(_.Q,6,6005,{browserError:f.message});a.T(d);return Promise.reject(d)}a.A.on(c,_.Ne,a.wh.bind(a));a.A.on(c,ze,a.rh.bind(a));var e={initData:null,loaded:!1,uf:Infinity,ub:null,Ja:new _.zj,periodId:null,fe:[],keyId:null,ab:[],initDataType:null,ic:null,sessionContext:{ldlDelay:0,customData:{}}};e.Ja["catch"](function(){});a.f.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.g.debug("Loaded offline session",
180
- b,f);if(!f)return a.f["delete"](c),a.T(new _.P(_.Q,6,6013)),null;e.loaded=!0;to(a)&&(a.w||a.g.info(Aa),a.w=!0,a.D=!1,a.H.resolve());return c},function(f){a.j||(a.f["delete"](c),a.T(new _.P(_.Q,6,6005,{browserError:f.message})))})};uo=function(a,b,c,d){if(!b&&c!==_.Sf)return!1;d=b||Km(d);a=_.u(a.f.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||b&&e.ab.includes(b)||c===_.Sf&&(e.keyId||Km(e.initData))===d)return!0;return!1};
181
- lo=function(a,b,c,d,e,f,g){f=void 0===f?null:f;g=void 0===g?!1:g;var h,l,m,n,p,q,t,v,z,D,G,F,B,H,N,M,S,ba,qa,Ta,Ga;_.E(function(Ca){switch(Ca.a){case 1:if(!e.length)return a.g.warn("Empty init data"),Ca["return"]();h=b;if(!h)try{h=vo(a,d,e,f)}catch(oa){if(a.g.warn("Ignoring unrecognized init data. This may be caused by unsupported or malformed init data. Set `drm.ignoreUnrecognizedInitData \x3d false` if you want to override this behavior and use the init data after all.",{error:oa,initDataType:d,
182
- initData:e}),a.h.ignoreUnrecognizedInitData)return Ca["return"]()}if(g){Ca.F(2);break}if(!uo(a,h,d,e)){Ca.F(2);break}l=!0;if("skd"!==d||a.h.enableSessionCacheForSkd){Ca.F(4);break}m=_.u(a.f.keys());n=m.next();case 5:if(n.done){Ca.F(4);break}p=n.value;q=a.f.get(p);if(!h||q.keyId!==h){Ca.F(6);break}a.g.warn("Close and re-open session for "+h);_.A(Ca,9);return _.x(Ca,p.close(),11);case 11:_.bh(Ca,10);break;case 9:t=_.C(Ca),a.g.warn("Unable to close session",t);case 10:l=!1;case 6:n=m.next();Ca.F(5);
183
- break;case 4:if(l)return a.g.warn("Skip creating a new session for "+h),Ca["return"]();case 2:try{z=a.G?_.gf:cg,v=a.I.createSession(z),a.g.info("Created new "+z+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(oa){return a.T(new _.P(_.Q,6,6005,{browserError:oa.message})),Ca["return"]()}a.A.on(v,_.Ne,a.wh.bind(a));a.A.on(v,ze,a.rh.bind(a));D={ic:f,fe:[],initData:e,initDataType:d,keyId:h,ab:h?[h]:[],loaded:!1,uf:Infinity,periodId:c,ub:null,Ja:new _.zj,sessionContext:{ldlDelay:0,customData:{}}};
184
- D.Ja["catch"](function(){});f&&(G=a.f.get(f),D.sessionContext=G.sessionContext);a.f.set(v,D);h&&!a.l.get(h)&&a.l.set(h,Wf);if(e)for(F=0;F<a.a.initData.length;F++)B=a.a.initData[F],B.keyId&&!D.ab.includes(B.keyId)&&_.lj(B.initData,e)&&(D.keyId||(D.keyId=B.keyId),D.ab.push(B.keyId),a.l.get(B.keyId)||a.l.set(B.keyId,Wf));H=_.O;N=H.rb;M=a.C.getConfiguration();S=a.keySystem();ba=a.h.$a[S];Ta=(qa=ba.modifiers)&&qa.transformInitData;N(Ta)||(Ta=wo);try{e=Ta({playerConfig:M,initData:e,initDataType:d,drmInfo:a.a,
185
- drmSystemConfig:ba,sessionContext:D.sessionContext,emeApi:a.o.pd()})}catch(oa){return Ga=oa,oa instanceof _.P||(Ga=new _.P(_.Q,6,6016,oa)),D.Ja&&D.Ja.reject(oa),a.T(Ga),Ca["return"]()}a.g.info("Generate License Request for key ID: '"+h+"'");v.generateRequest(d,e.buffer)["catch"](function(oa){if(!a.j){var Ia=null;oa.errorCode&&oa.errorCode.systemCode&&(Ia=oa.errorCode.systemCode,0>Ia&&(Ia+=Math.pow(2,32)),Ia="0x"+Ia.toString(16));a.T(new _.P(_.Q,6,6006,{browserError:oa.message,error:oa,extended:Ia},
186
- oa))}});_.y(Ca)}})};
187
- vo=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{var e=d;e=void 0===e?null:e;var f=a.keySystem(),g=a.h.$a[f];f=a.C.getConfiguration();g=g&&g.modifiers&&g.modifiers.extractContentId;_.O.rb(g)||(g=xo);try{var h={ldlDelay:0,customData:{}};e&&(h=a.f.get(e).sessionContext);var l=g(f,c,h);a.g.debug("Extracted Content ID '"+l+"' from SKD");var m=l;break a}catch(F){a.g.warn("Unable to extract Content ID from SKD",F)}m=""}return m}if(b===_.Sf)return Km(c)||"";if(b===_.rd){m=a.keySystem();try{if(m.match(/^com\.widevine\.alpha/)){var n=
188
- _.vn(c);if(n)return n.a}else if(yo(m)){e=new _.pm(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);f=_.W(e);var p=_.W(e);g=_.Dm(p);var q=_.W(e);c=q>>>24;l=q&16777215;h=_.xm(e,16);var t=_.kj(h);if(0<c){var v=_.W(e);e.skip(16*v)}var z=_.W(e),D=_.xm(e,z),G=_.Bn(D);_.uh("Parsed PR PSSH Box","size",f,"name",g,"version",c,"flags",l,"size",z,"systemId",t,"keyId",G.a);if(G)return G.a}}catch(F){throw a.g.warn("Unable to extract Key ID from PSSH data.",{error:F,keySystem:m}),F;}}return""};
189
- xo=function(a,b){var c=_.Jm(b);_.uh("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
190
- wo=function(a){var b=a.playerConfig,c=a.initData,d=a.drmInfo,e=a.drmSystemConfig,f=a.sessionContext,g=a.emeApi;if("skd"===a.initDataType&&"APPLE"===g){a=_.O.rb;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=xo);a="";try{a=e(b,c,f)}catch(h){throw new _.P(_.Q,6,6103);}if(!a.length)throw new _.P(_.Q,6,6101,"Content ID is an empty string");c=Lm(c,a,d)}return c};
191
- Co=function(a,b){var c=b.target,d=a.f.get(c),e=a.keySystem(),f=!1;e.match(/^com\.widevine\.alpha/)&&b.message&&2===b.message.byteLength?(f=!0,a.g.info("WV Server certificate request for SID:'"+(c.sessionId+" from msg '")+(b.messageType+"'"))):a.g.info("License request for SID:'"+(c.sessionId+"'/KID:'"+d.keyId+"' from msg '")+(b.messageType+"'"));var g=a.a.licenseServerUri;e=a.h.$a[e];"individualization-request"===b.messageType&&e&&e.individualizationServer&&(g=e.individualizationServer);var h=_.uj([g],
192
- a.h.attemptParameters);h.type=3;h.body=b.message;h.method="POST";h.licenseRequestType=b.messageType===De&&d.ic?Ce:f?ud:b.messageType;h.sessionId=c.sessionId;if(h.licenseRequestType===Ce)a.C.onEvent(new _.L(ge));yo(a.a.keySystem)&&zo(a,h);cm(a.P,h);var l=Math.floor(b.timeStamp),m=Date.now();return Ao(a,h,d.sessionContext).then(function(){_.Jn($d+l+ha);a.g.debug("Sending DRM license request to",g,h);return a.C.sb.fetch(h).O}).then(function(n){_.Jn($d+l+".end");_.Kn($d+l,$d+l+ha,$d+l+".end");if(a.j)return Promise.reject();
193
- var p=Date.now()-m,q=Bo(a,n),t="";q&&(t=" RID:"+q);q=n&&n.data?n.data.byteLength:-1;f?a.g.info("WV Server certificate response for SID:'"+(c.sessionId+"' ")+(q+" bytes in ")+(p+"ms"+t)):a.g.info("License response for SID:'"+(c.sessionId+"'/KID:'")+(d.keyId+"' ")+(q+" bytes in ")+(p+"ms"+t));var v=dm(a.P,n);_.Jn(ee+l+ha);return c.update(n.data).then(function(){_.Jn(ee+l+".end");_.Kn(ee+l,ee+l+ha,ee+l+".end");if(!f){var z=no(a),D=v?Date.now()+1E3*v.delay:Number.NaN;z=new _.L(_.ie,{keySystem:a.keySystem(),
194
- expirationTime:z,expectedRenewalTime:D});a.C.onEvent(z);d&&(d.ub&&d.ub.resolve(),d.ic&&(z=d.ic,a.g.info("Closing expired session '"+z.sessionId+"'"),Qn(z)["catch"](function(){a.g.warn("Unable to close expired session in time")}),(z=a.f.get(d.ic))&&z.Lc&&z.Lc.stop(),a.f["delete"](d.ic),d.ic=null),(new _.Gk(function(){a.j||(d.loaded=!0,d.Ja&&d.Ja.resolve(),to(a)&&(a.w||a.g.info(Aa),a.w=!0,a.D=!1,a.H.resolve()))})).aa(5),null!==d.initData&&(0<d.sessionContext.ldlDelay||v&&em(a.keySystem()))&&(z=new _.Gk(function(){!a.j&&
195
- a.P&&(a.g.info("Updating CSL Sessions"),yo(a.keySystem())?lo(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):a.keySystem().startsWith(_.Od)&&c.update(_.R.Ua("renew")))}),d.Lc=z,z.aa(v?v.delay:d.sessionContext.ldlDelay)))}})},function(n){var p,q,t,v;return _.E(function(z){if(a.j)return z["return"]();p=n.data.headers;q=hn(p);t=Object.assign({message:_.$a,url:n.data.url,status:n.data.status,response:n.data.response},p?{headers:p}:{},q);v=new _.P(_.Q,6,6007,t,n);a.T(v);d&&d.ub&&d.ub.reject(v);d&&
196
- d.Ja&&d.Ja.reject(v);_.y(z)})})["catch"](function(n){a.j||(n===Wb?a.g.info("Ignore update for closed sessions"):(n=new _.P(_.Q,6,6008,{browserError:n.message}),a.T(n),d&&d.ub&&d.ub.reject(n),d&&d.Ja&&d.Ja.reject(n)))})};Bo=function(a,b){if(!b||!b.headers)return"";var c=b.headers["x-dt-li"];if(c)try{return JSON.parse(_.R.Z(_.ij(c))).ti}catch(d){a.g.warn("Unable to parse DRMtoday Request ID",d)}return""};
197
- zo=function(a,b){var c=_.R.kc(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.g.debug("Unwrapping PlayReady request.");c=(new DOMParser).parseFromString(c,"application/xml");for(var d=c.getElementsByTagName("HttpHeader"),e=0;e<d.length;++e)b.headers[d[e].querySelector("name").textContent]=d[e].querySelector(_.qg).textContent;b.body=_.ij(c.querySelector("Challenge").textContent).buffer}else a.g.debug("PlayReady request is already unwrapped."),b.headers[xa]="text/xml; charset\x3dutf-8"};
198
- Ao=function(a,b,c){var d,e,f,g,h,l;return _.E(function(m){if(1==m.a)return d=a.C.getConfiguration(),_.x(m,io(a,d),2);e=a.keySystem();h=(g=(f=a.h.$a[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;h?b.requestModifiers.push(function(n){return h(d,n,c)}):e.startsWith(_.Od)&&b.requestModifiers.push(function(n){return _.Mm(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Od)&&b.responseModifiers.push(function(n){return _.Nm(n)});_.y(m)})};
199
- Nn=function(a){var b=a.l,c=a.pa;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.T(new _.P(_.Q,6,6014));a.C.zf(_.O.Zf(c));a.w||a.g.info(Aa);a.w=!0;a.D=!1};co=function(a){var b;return _.E(function(c){if(1==c.a)return _.Jn(de),b=a.ha.map(function(d){return Co(a,d)}),a.Wa=!0,a.ha=[],_.x(c,Promise.all(b),2);_.Jn(ce);_.Kn("drm.onPlay",de,ce);_.y(c)})};yo=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};
200
- _.ro=function(a){return yo(a)?_.Qd:a};_.Eo=function(a,b){return a.length&&b.length?0<_.Do(a,b).length:!0};
201
- _.Do=function(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=0;d<a.length;d++)for(var e={},f=0;f<b.length;e={gd:e.gd},f++)if(a[d].keySystem===b[f].keySystem&&a[d].periodId===b[f].periodId){var g=a[d];f=b[f];var h=[];h=h.concat(g.initData||[]);h=h.concat(f.initData||[]);e.gd=_.Pg(g.keyIds||[]).concat();f.keyIds&&f.keyIds.length&&f.keyIds.forEach(function(l){return function(m){l.gd.includes(m)||l.gd.push(m)}}(e));c.push({keySystem:g.keySystem,licenseServerUri:g.licenseServerUri||f.licenseServerUri,
202
- distinctiveIdentifierRequired:g.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:g.persistentStateRequired||f.persistentStateRequired,videoRobustness:g.videoRobustness||f.videoRobustness,audioRobustness:g.audioRobustness||f.audioRobustness,serverCertificate:g.serverCertificate||f.serverCertificate,initData:h,keyIds:e.gd,periodId:g.periodId});break}return c};
203
- On=function(a){a.f.forEach(function(b,c){var d=b.uf,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.C.yf(c.sessionId,e),b.uf=e)})};to=function(a){a=a.f.values();return _.Ui(a,function(b){return b.loaded})};
204
- Vn=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};po=function(a){for(var b=_.u(a.audioCapabilities||[]),c=b.next();!c.done;c=b.next())delete c.value.robustness;a=_.u(a.videoCapabilities||[]);for(b=a.next();!b.done;b=a.next())delete b.value.robustness};
205
- qo=function(a){return(a.audioCapabilities||[]).some(Fo)||(a.videoCapabilities||[]).some(Fo)};Fo=function(a){return null!=a.robustness&&""!==a.robustness};
206
- so=function(a,b,c,d,e){var f={};a=_.u(a);for(var g=a.next();!g.done;f={Aa:f.Aa},g=a.next()){f.Aa=g.value;b.includes(f.Aa.licenseServerUri)||b.push(f.Aa.licenseServerUri);f.Aa.serverCertificate&&(c.some(function(m){return function(n){return _.lj(n,m.Aa.serverCertificate)}}(f))||c.push(f.Aa.serverCertificate));if(f.Aa.initData){var h=_.u(f.Aa.initData);for(g=h.next();!g.done;g=h.next())g.value.periodId=f.Aa.periodId;h={};var l=_.u(f.Aa.initData);for(g=l.next();!g.done;h={Td:h.Td},g=l.next())h.Td=g.value,
207
- d.some(function(m){return function(n){var p=m.Td;return n.keyId&&n.keyId==p.keyId&&n.periodId===p.periodId?!0:!1}}(h))||d.push(h.Td)}if(f.Aa.keyIds)for(g=0;g<f.Aa.keyIds.length;++g)e.includes(f.Aa.keyIds[g])||e.push(f.Aa.keyIds[g])}};
208
- Xn=function(a,b){if(a.keySystem){var c=_.ro(a.keySystem),d=b[c];c===_.cf&&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=
209
- d.serverCertificate||null)))}};Qn=function(a){var b,c;return _.E(function(d){if(1==d.a)return b=new Promise(function(e){(new _.Gk(e)).aa(1)}),_.x(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.J("Timeout waiting for session close");_.y(d)})};_.Io=function(a,b){a&&b&&(_.Go.set(a,b),_.Ho.info("Registered TextDisplayerFactory: '"+a+"'"))};
210
- _.Jo=function(a,b){var c=b.find(function(d){return(d=_.Go.get(d))?d.isSupported(a):!1});if(null==c)return _.Ho.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;_.Ho.info("Chosen the text displayer: "+c);return _.Go.get(c)};Ko=function(){this.a=null;this.f=[]};
211
- _.Lo=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})}};Mo=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};
212
- No=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};Oo=function(){this.h=this.f=this.j=null;this.a=[]};Po=function(a){return a.a.map(function(b){return _.O.Na(b)})};_.Qo=function(){this.f=this.o=this.A=this.D=this.j=this.l=this.h=this.w=NaN;this.a=new Ko;this.B=new Oo};
213
- _.Ro=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:[]}};_.So=function(a){this.f=a;this.a=void 0};Uo=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=To.value().get(b),c.one(a,b,d))};
214
- Yo=function(a){this.g=new _.K("clpp.StateManager");this.m=a;this.a=new _.Eh;this.f=_.Vo;this.A=_.Wo;this.I=0;this.w=-1;this.L=this.o=this.J=this.B=0;this.j=this.h=this.G=!1;this.H=0;this.l=null;this.K=0;this.P=_.Nk();this.D=!1;this.J=Date.now();Xo(this)};Zo=function(a,b){return Object.keys(b)[a]};
215
- ap=function(a,b){var c={type:_.Vf};b===_.kd||b===_.jd?(c.reason=a.w,b===_.kd?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(a.f===_.$o&&(c.reason=a.w),a.A===_.$o&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
216
- ep=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=a.f===_.$o;a.A=a.f;a.f=b;a.A===_.bp&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;b===_.$o?(a.L=a.o,a.w=a.h?1:2,a.g.info("Buffering started. Reason: "+Zo(a.w-1,_.cp)),c=ap(a,_.kd),a.dc(_.kd,c)):d&&(a.B=a.o-a.L,a.g.info("Buffering finished. Reason: "+Zo(a.w-1,_.cp)+". Buffering time: "+a.B+" ms"),c=ap(a,_.jd),a.dc(_.jd,c));c=Zo(a.A,_.dp);d=Zo(a.f,_.dp);a.g.info(_.Kb+c+" -\x3e "+d);a.dc(_.Vf,ap(a,""));return!0};
217
- jp=function(a,b){if(a.f===_.fp)a.g.warn("Player is in error state, aborting any further state checks");else{var c=a.m.isPaused(),d=a.m?a.m.isEnded():!1;if(d)a.h||(a.j=!1,ep(a,_.bp));else if(b!==_.fg){var e=a.m.getPosition();e=null!==e&&void 0!==e&&0<=e?a.m.getBufferInfo().Ma(e,!0):-1;a.H=e;e=a.m.getSurface().getMedia();a.l=e?e.readyState:null;a.K=a.m.getPlaybackRate()||1;e=typeof a.l===_.k&&2>a.l&&2===e.networkState;var f=typeof a.l===_.k&&0>=a.H&&a.f===_.Vo,g=typeof a.l===_.k&&2>=a.l&&a.j;e=a.h||
218
- f||e||g;!a.P||a.m.isLive()||a.f!==_.$o||e||(f=b===_.Nf&&4===a.l,(g=a.A===_.gp)&&!a.D?e=!0:g||a.D||f||(e=!0));f=!1;e?f=ep(a,_.$o):c?f=ep(a,_.hp):a.G&&(f=ep(a,_.ip));f&&(a.D=!1);a.g.debug("Video state check for event "+b+":: seeking: "+a.h+", waiting: "+a.j+", playing: "+a.G+", paused: "+c+", readyState: "+a.l+", rate: "+a.K+", buffer: "+a.H+", ended: "+d+". Changed state: "+f+", Current state: "+Zo(a.f,_.dp))}}};
219
- Xo=function(a){function b(d){return jp(a,d.type)}a.g.debug("Start watching for video events for "+a.m.namespace());var c=a.m;a.a.on(c,_.oe,function(){a.h||(a.j=!1,ep(a,_.bp))});a.a.on(c,ld,b);a.a.on(c,_.tf,function(){a.G=!0;a.j=!1;jp(a,_.tf)});a.a.on(c,_.ef,function(){a.G=!1;a.j=!1;jp(a,_.ef)});a.a.on(c,_.fg,b);a.a.on(c,_.Gf,b);a.a.on(c,_.Nf,function(d){a.h=!1;a.j=!1;jp(a,d.type)});a.a.on(c,_.Of,function(d){a.h=!0;jp(a,d.type)});a.a.on(c,Tf,b);a.a.on(c,_.Bg,function(){a.j=!0;jp(a,_.Bg)});a.a.on(c,
220
- _.pe,function(d){return a.T(d)});a.a.on(c,_.Ie,b);a.a.on(c,md,function(){a.D=!0;jp(a,md)});a.a.on(c,_.pg,function(d){a.h=!0;jp(a,d.type)});a.a.on(c,_.og,function(d){a.h=!1;a.j=!1;jp(a,d.type)})};kp=function(a){a=(new _.qi(a)).Ba;if(!a)return null;a=a.toUpperCase();return _.R.endsWith(a,".MPD")?_.Tc:_.R.endsWith(a,".M3U8")?_.pl:_.R.endsWith(a,".MP4")?_.vg:_.R.endsWith(a,"MANIFEST")||_.R.endsWith(a,".ISM")?_.Yc:null};
221
- _.mp=function(a){var b;Ol(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.Yf||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=lp(b[c]);d&&a.push(d)}return a};
222
- lp=function(a){var b=null;_.O.$(a)&&(a={url:a});typeof a===_.Ve&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.O.R(a.drmProtected)||typeof a.drmProtected!==_.id||(b.drmProtected=a.drmProtected),_.O.R(a.isLive)||typeof a.isLive!==_.id||(b.isLive=a.isLive),_.O.R(a.name)||typeof a.name!==_.Yf||(b.name=a.name),_.O.R(a.Lb)||typeof a.Lb!==_.Yf||(b.Lb=a.Lb),_.O.R(a.audioMimeType)||typeof a.audioMimeType!==_.Yf||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=kp(a.url),b.type?
223
- np.debug("Detect media type "+b.type+" for "+a.url):np.warn("Unable to detect media type for "+a.url));return b};op=function(){_.Pl.call(this,Hd);this.w=this.H=!1;this.l=this.B=this.o=this.a=this.j=null;this.h=new _.Eh;this.G=this.D=this.f=this.I=null};
224
- rp=function(a,b){return a.w?pp():new Promise(function(c){a.a||(a.h.on(b,_.pe,function(){var d=qp(a);if(d)a.onError(d)}),a.h.on(b,_.Lf,function(){var d=b.videoWidth,e=b.videoHeight,f=a.getTrackManager();f&&0<d&&0<e&&(f.w={width:d,height:e});a.trigger(new _.L(_.hd,{detail:{width:d,height:e}}))}),a.a=b);c()})};sp=function(a){return a.w?pp():new Promise(function(b){if(a.a){var c=a.a;a.h.off(c,_.pe);a.h.off(c,_.Lf);a.a=null}b()})};
225
- up=function(a){var b,c,d,e,f;return _.E(function(g){if(1==g.a){if(a.w)return g["return"](pp());b=a.ca[a.getSourceIndex()];if(!a.configuration.drm||!1===b.drmProtected)return a.log.debug("No DRM configuration present.","Skipping DRM engine initialization"),g["return"](Promise.resolve());c=_.tp;d=_.im(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=new _.Pn({sb:e,onError:function(h){return a.onError(h)},zf:function(){},yf:function(h,l){a.trigger(new _.L(_.fe,{expirationTime:l}))},
226
- onEvent:function(h){h instanceof _.L?a.dispatchEvent(h):a.log.debug(_.fc,h.type)},getConfiguration:function(){return a.getConfiguration()},Qc:function(){return a.Qc()}});a.o.h=d;f={id:0,language:_.ig,primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:Promise.resolve.bind(Promise),findSegmentPosition:function(){return null},getSegmentReference:function(){return null},adjustSegmentDurations:function(){},getDuration:a.getDuration.bind(a),initSegmentReference:null,ya:0,mimeType:_.vg,
227
- codecs:"",encrypted:!0,keyId:null,language:_.ig,originalLanguage:_.ig,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,mn:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,spatialAudio:!1,Um:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.x(g,_.Un(a.o,[f]),2)}return 3!=g.a?_.x(g,_.ho(a.o,a.a),3):g["return"](Promise.resolve())})};
228
- vp=function(a,b){Uo(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){a.getState()!==_.fp&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};qp=function(a){if(null===a.ca||!a.a.error)return null;var b=a.a.error.code;if(1===b)return null;var c=a.a.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new _.P(_.Q,3,3016,{code:b,dn:c,message:a.a.error.message})};pp=function(){return Promise.reject(new _.P(_.Q,7,7E3))};
229
- wp=function(a){if(a.w)return new _.Aj(pp(),function(){});var b=a.ca[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&vp(a,c);if(d.preload!==_.Ue)a.h.one(d,_.Ie,function(){var g=Date.now()/1E3-e;a.f.A=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.Gj()||_.Hj())&&d.load();var f=new _.zj;a.h.one(d,Tf,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.D||(a.D=(new _.Gk(function(){f.reject(new _.P(_.Q,3,3100,{message:"Unable to load media source successfully from "+
230
- b.url,uri:b.url},d.error))})).aa(g))});Uo(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.h,function(){return f.resolve()});d.error?f.reject(qp(a)):d.preload===_.Ue&&(a.log.warn('With \x3cvideo preload\x3d"none"\x3e, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way. Please do not use preload\x3d"none" with PRESTOplay for Web Apps.'),f.resolve());a.h.one(d,_.pe,function(){f.reject(qp(a))});
231
- return new _.Aj(f,function(){var g=new _.P(_.Q,7,7001);f.reject(g);return Promise.resolve()})};
232
- xp=function(a,b){Uo(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){if(a.isLive()&&a.getState()!==_.fp){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)}))}})};
233
- yp=function(a,b){var c=!1;a.h.on(b,_.Of,function(){c=b.paused});a.h.on(b,_.Nf,function(){.2>b.duration-b.currentTime&&b.paused&&!c&&(a.log.warn("Player was auto-paused during seek to the end, auto-resuming."),b.play())})};zp=function(){};_.Cp=function(a){a&&(0<=Ap.indexOf(a)?Bp.warn("Factory '"+a.name()+"' is already registered"):(Ap.push(a),Bp.info("Factory "+a.name()+"' has been registered.")))};
234
- Ep=function(a,b){var c=Ap.find(function(d){return d.isSupported(a,b)});c||(c=new Dp);Bp.info("Chosen ads: "+c.name());return c};_.Fp=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};_.Gp=function(a,b){a.classList.add(b)};_.Hp=function(a,b){if(a&&typeof b===_.Ve)for(var c in b)a.style[c]=b[c]};_.Ip=function(a){return document.createElement(a)};Jp=function(){this.a=null;this.h=new Set;this.f=null;this.set(null)};
235
- Kp=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.h.add(b))};Lp=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.h.values());Vh(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.Pg(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
236
- Pp=function(a,b){this.g=new _.K("clpp.PlayerSurface");this.w=_.O.oa(Mp,b);this.f=new Jp;this.h=null;this.a=new Jp;this.l=Np;Np+=1;this.o="clpp-video-"+this.l;this.j=new _.Eh;if(null==a)throw new _.P(_.Q,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.P(_.Q,7,7004,"Media element not found");var d=this.w;this.g.debug("Initializing Player Surface on ",c);if("cast-media-player"===c.tagName.toLowerCase())this.h=c;else{if(!(c instanceof
237
- HTMLMediaElement))throw new _.P(_.Q,7,7005,"Media element is not instance of HTMLMediaElement");if(!c.hasAttribute("crossorigin")){var e=d.crossorigin;this.g.info("Setting media elements crossorigin to "+e);c.setAttribute("crossorigin",e)}this.f.set(c);if(d.disableContainer)e=null;else if(d.containerEl){if(c.parentNode!==d.containerEl)throw new _.P(_.Q,7,7006,"Container element is not a direct parent of media element");e=d.containerEl}else{e=document.createElement(_.Zd);c.parentNode?c.parentNode.replaceChild(e,
238
- c):this.g.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!");for(var f=[],g=0;g<c.classList.length;g++)f.push(c.classList[g]);f=_.u(f);for(g=f.next();!g.done;g=f.next())g=g.value,c.classList.remove(g),_.Gp(e,g);e.style.cssText=c.style.cssText;c.removeAttribute(_.$f);f=_.u([_.Ig,_.te]);for(g=f.next();!g.done;g=f.next()){g=g.value;var h=c.getAttribute(g);h=parseInt(h,10);isNaN(h)||(e.style[g]=h+_.Ff);_.Gj()||c.removeAttribute(g)}e.appendChild(c)}e&&
239
- (this.a.set(e),Kp(this.a,"clpp-container"),Kp(this.a,this.o),Kp(this.f,_.xd),Kp(this.f,"clpp-video"));d.webOSStartupPatch&&Op(this,c,e)}};Op=function(a,b,c){(_.Hj()&&53===Kk().major||_.Hj()&&68===Kk().major||_.Lk())&&!b.hasAttribute(Ud)&&(b.style.opacity="0",b.setAttribute(Ud,""),a.j.one(b,ke,function(){b.removeAttribute(Ud);b.style.opacity="1";c&&(c.style.opacity="1")}))};Rp=function(a){this.m=a;this.j=this.m.getNetworkEngine();this.a=new _.Eh;this.h=null;this.f=!0;Qp(this)};
240
- Qp=function(a){a.a.on(window,"offline",function(){Sp(a,!1)});a.a.on(window,"online",function(){a.f||Tp(a)});a.a.on(a.m,Tf,function(){return Up(a)});a.a.on(a.m,"suspend",function(){return Up(a)});a.a.on(a.m,_.Bg,function(){return Up(a)});a.a.on(a.m,_.tf,function(){a.f||Tp(a)});a.a.on(a.m,_.Ef,function(){a.f||Tp(a)});a.a.on(a.m,_.Vf,function(){switch(a.m.getState()){case _.$o:Up(a);break;default:Up(a)}})};Tp=function(a){a.m.getConfiguration().connectivityCheck&&(Vp(a),a.h=(new _.Gk(function(){return Wp(a)})).aa(5))};
241
- Up=function(a){a.f&&Tp(a)};Vp=function(a){a.h&&(a.h.stop(),a.h=null)};Wp=function(a){var b,c;return _.E(function(d){if(1==d.a)return(b=a.m.getConfiguration().connectivityCheck)&&a.m?_.x(d,Qj(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;Sp(a,c);_.y(d)})};Sp=function(a,b){Vp(a);a.f!==b&&(a.f=b,a.m&&a.m.getConfiguration().connectivityCheck&&a.m.trigger(new _.L(af,{online:a.f})))};Yp=function(){for(var a=0;a<Xp.length;++a)Xp[a].Jc()};
242
- _.Zp=function(a,b){b=b||0;for(var c={priority:b,Jc:a},d=0;d<Xp.length;d++)if(Xp[d].priority<b){Xp.splice(d,0,c);return}Xp.push(c)};$p=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};aq=function(a,b,c){var d=_.R.Z;this.h=a;this.f=b;JSON.parse(d(_.ij(a)));this.a=JSON.parse(d(_.ij(b)));this.j=c};bq=function(a){this.license=a;this.a=null;this.g=new _.K("clpp.utils.LicenseKey")};
243
- cq=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 aq(b[0],b[1],b[2]);a.a=b}return a.a};dq=function(a){switch((a.ca[0]||{src:"",type:""}).type){case _.Tc:a="dash";break;case _.Yc:a="ss";break;case _.pl:a="hls";break;case _.vg:a="mp4";break;default:a=""}return a};eq=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};
244
- fq=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};gq=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};iq=function(a){var b=a.configuration,c="no";b.drm&&!_.O.ta(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(je)||hq(a).endsWith("drmtoday.com"))&&(c=je);return c};
245
- jq=function(a){a=a.drmInfo;var b="";if(a)switch(a.keySystem){case _.Sd:b="wv";break;case _.Qd:b="pr";break;case _.Od:b="fps"}return b};kq=function(a){a=a.drmInfo;var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};lq=function(a){a=a.drmInfo;var b="";if(a)switch(a.videoRobustness){case fb:case db:b="L1";break;case eb:b="L2";break;case _.Vb:case _.Ub:b="L3"}return b};hq=function(a){a=a.drmInfo;return(new _.qi(a&&a.licenseServerUri||"")).Oa};
246
- oq=function(a,b){var c="ie"===_.Ij().browser,d=b.configuration,e=_.Pg(Array.from(_.Ql.keys())).concat(_.Pg(b.Yl));d={"CL-KEY":a.license,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ia,"CL-USER-ID":eq(d),"CL-ASSET-ID":fq(d),"CL-SESSION-ID":gq(d),"CL-PLAYBACK-TYPE":b.isLive?mq:nq,"CL-CONTENT-TYPE":dq(b),"CL-PLUGINS":e.join(" "),"CL-DRM":iq(b),"CL-DRM-CDM":jq(b),"CL-DRM-SEC-LEVEL":lq(b),"CL-DRM-OFFLINE":kq(b),"CL-DRM-IP":hq(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=e);e=
247
- _.uj(["https://downloads.castlabs.com/r/register/"]);e.method="GET";e.headers=d;return(new _.Nj).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=cq(a);f=f.data;var h=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(h){case 403:case 404:g=7101;var l="castLabs Player license is invalid";if(403===h){h=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=h+(": "+
248
- l)}else f=l+"!";l=f;break;case 412:g=7103;l="License requires a viewer ID. It should be supplied either via the `viewerId` config or in case of DRMtoday via the `drm.customData.userID` config.";break;default:f=Promise.resolve();break a}a.g.error(sb+l);f=Promise.reject(new _.P(_.Q,7,g,l))}}return f})};
249
- X=function(a,b,c){_.Fl.call(this);var d=this;Yp();this.g=new _.K("clpp.Player");if(!a)throw new _.P(_.Q,7,7102);this.K=new _.Eh;this.f=this.L=b||_.Ll();this.l=null;void 0===this.f.license&&(this.f.license=Jl,this.g.warn("You are using the embedded demo license!"));if(!this.f.license)throw this.g.error("You provided null or empty string as your license. Please check your license configuration."),new _.P(_.Q,7,7101,"No license provided in configuration!");this.h=new Pp(a,c);this.a=this.w=null;this.A=
250
- new _.Nj;this.j=null;this.I=[];this.P=!0;this.J={};this.o=null;this.G=!0;this.H=this.D=!1;this.B=this.Nc=null;this.Ze=!1;this.U=new Rp(this);this.on(_.Vf,function(){d.getState()===_.fp&&(d.a?d.a.unload():Promise.resolve())});this.on(_.Nc,this.lh.bind(this));this.on(_.Mc,this.lh.bind(this));pq(this,this.f.license);this.h.getMedia()&&(a=this.h.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),this.g.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),
251
- void 0===this.f.autoplay&&(this.f.autoplay=!0,this.g.debug("Setting autoplay in configuration since it was specified in the video element"))));a=[];b=_.u(qq);for(c=b.next();!c.done;c=b.next()){c=c.value;try{var e=c.create(this.f);e&&a.push(e)}catch(f){this.g.error("Error while creating player plugin",f)}}rq(this,a);Wl(this)};_.sq=function(a,b){b!==a.a&&(a.a&&(a.a.removeDelegate(a),a.a.destroy()),a.a=b,a.a&&(a.a.init(a.h,a.f),a.a.setNetworkEngine(a.getNetworkEngine()),a.a.addDelegate(a)))};
252
- pq=function(a,b){a.w=new bq(b);a.w.verify()["catch"](function(c){setTimeout(function(){a.g.error(sb+c);a.trigger(new _.L(_.pe,{detail:new _.P(_.Q,7,7101)}));a.destroy()},1E3)})};
253
- tq=function(a,b){var c,d;_.E(function(e){if(1==e.a)return a.h.getMedia()||a.h.getCastElement(),a.w||(a.w=new bq(a.f.license)),_.A(e,2),a.g.debug("Verifying license remotely"),_.x(e,oq(a.w,b),4);if(2!=e.a)return a.g.debug("License verified remotely"),_.bh(e,0);c=_.C(e);a.g.debug("License rejected by remote",c);d={release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)};setTimeout($p,1E3,d,c);_.y(e)})};
254
- rq=function(a,b){a.I=b;for(var c=_.u(a.I),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.J[e]=d)}a.tc("onPlayerCreated")};
255
- uq=function(a){var b,c;return _.E(function(d){if(1==d.a){if(a.G)return a.g.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.K.off(document,zg);a.trigger(new _.L(_.If));a.h&&a.h.release();return a.j?_.x(d,a.j.dispose(),3):d.F(2)}2!=d.a&&(a.j=null);if(a.a)return b=null,c=a.a.on(_.Vf,function(e){b=e}),d["return"](a.tc(_.Ze).then(function(){a.a.removeDelegate(a);return Promise.all([a.a.release(),a.A.release()])}).then(function(){a.g.debug("Releasing player completed");
256
- b&&(a.g.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.Vf,c);a.trigger(new _.L(Hf))}));a.trigger(new _.L(Hf));return d["return"](new Promise(function(e){return e()}))})};
257
- vq=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(_.xh);for(var l=0;l<b.length;l++)for(var m=0;m<h.length;m++){var n={Pb: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?(_.yh.debug("Player Factory '"+f.Pb.a()+"' can play",b[g]),f=new wh(f.Pb,g)):(_.yh.error("No compatible Player Factory found for sources:",b),f=null)}else f=null;f?(g=f.Pb.create(),d({player:g,sourceIndex:f.sourceIndex})):
258
- (f=new _.L(_.pe,{detail:new _.P(_.Q,7,7003)}),a.trigger(f),e(f))})};xq=function(a){var b;return _.E(function(c){if(1==c.a){if(!a.a)return a.g.warn(Hb),c["return"]();b=a.a;if(!b.lg)return a.g.warn(Nb),c["return"]();a.trigger(new _.L(Je));return _.x(c,b.lg(),2)}return _.x(c,_.wq(a),0)})};
259
- _.zq=function(a,b){var c,d,e,f;return _.E(function(g){switch(g.a){case 1:_.Jn(nf);if(a.D)throw Error("Player is already destroyed.");if(!a.h)throw Error("No surface associated with this player!");return _.x(g,a.release(),2);case 2:if(!b)throw new _.P(_.Q,7,7003,Bb);a.o=_.mp(b);c=Ol(b);a.f=_.Nl(a.L,c?b:{},{source:a.o});if(0===a.o.length)throw new _.P(_.Q,7,7003,Bb);a.G=!1;e=0;if(!a.H&&2===(a.a?a.a.canPlay(a.o[0],a.f):0)){g.F(3);break}return _.x(g,vq(a,a.o,a.f),4);case 4:f=g.f,d=f.player,e=f.sourceIndex,
260
- a.H=!1;case 3:d?_.sq(a,d):a.a.addDelegate(a);yq(a);a.a&&a.a.setCdnErrorCallback(a.B);a.j=Ep(a,a.f).create(a);a.a&&a.a.setSourceIndex(e);if(a.f.pauseWhenInBackground)a.K.on(document,zg,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});Xl(a);return _.x(g,a.tc("onContentWillLoad",a.f.source[e]),5);case 5:_.Jn(mf),_.Kn("player.beforeLoad",nf,mf),_.y(g)}})};
261
- _.Aq=function(a){return _.E(function(b){a.h.getMedia()||a.h.getCastElement();a.trigger(new _.L(Je));return _.x(b,Promise.all([a.a.load(a.f),a.j.load()]),0)})};Cq=function(a){var b,c,d,e;_.E(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)}Bq(a);_.y(f)})};
262
- Bq=function(a){var b=_.Th(a.f.preferredTextLanguage).filter(function(f){return f}),c=a.f.preferForcedSubtitles,d=a.getTrackManager().ea().filter(function(f){return c?f.kind===_.qe:f.kind!==_.qe});if(0===d.length)c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles are available.");else{if(c&&0===b.length){var e=a.getTrackManager().ja();e&&e.language?(e=_.Qi(e.language||""),b.push(e)):(e=a.getTrackManager().Ia())&&e.language&&(e=_.Qi(e.language||""),b.push(e));0===
263
- b.length&&a.g.warn("Forced subtitles are configured to be preferred, but neither the preferred text language is set, nor the audio or video track language is available to determine which forced subtitles language to select.")}b.some(function(f){var g=_.Qi(f);if(f=d.find(function(h){h=_.Qi(h.language||"");return _.Ri(h,g)}))return a.getTrackManager().La(f),!0;c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles match the preferred languages: ",b);return!1})}};
264
- _.wq=function(a){return _.E(function(b){if(1==b.a)return _.Jn(lf),tq(a,{configuration:a.getConfiguration(),ca:a.Sg(),drmInfo:a.getDrmInfo(),Yl:Object.keys(a.J),isLive:a.isLive()}),Cq(a),Yl(),_.x(b,a.tc("onContentLoaded"),2);if(3!=b.a)return a.f.autoplay?_.x(b,a.play(),3):b.F(3);_.Jn(kf);_.Kn("player.afterLoad",lf,kf);_.y(b)})};yq=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.E(function(c){if(!a.Nc||!a.Ze)return c.F(0);a.Ze=!1;return _.x(c,a.Nc(b),0)})})};
265
- _.Dq=function(a){a&&(0<=qq.indexOf(a)||qq.push(a))};Eq=function(a){this.a=a.map(function(b){return{videoId:b.getSurface().getMedia().id,player:b,Yd:!0,ready:Promise.resolve()}});this.g=new _.K("clpp.plist.PlayerPool")};
266
- Hq=function(a){_.Fl.call(this);var b=this;this.o=_.O.oa({transition:_.ef,preloadMedia:!1},a);this.h=[];this.a=0;var c=Fq(a.anchorId,this.o.config);this.w=new Eq(c);this.f=null;this.j=!1;this.l=new Map;this.A=a.toggleVisible;this.g=new _.K(Id);this.w.a.forEach(function(d){return Gq(b,d.player,!1)})};Jq=function(a){return Promise.all(Array.from(a.l.keys()).map(function(b){return Iq(a,b)}))};
267
- Iq=function(a,b){var c;return _.E(function(d){if(1==d.a){c=a.l.get(b);if(!c)return d.F(0);a.g.info("Stop preloading item (index: "+b+")");return c.player?_.x(d,Kq(a,c),3):d.F(3)}a.l["delete"](b);_.y(d)})};Mq=function(a,b){return _.E(function(c){if(1==c.a)return a.g.info("Stop current playback (index: "+b.index+")"),b.player.pause(),Gq(a,b.player,!1),_.x(c,Kq(a,b),2);b.player=null;b.videoEl=null;b.role=Lq;_.y(c)})};
268
- Kq=function(a,b){return _.E(function(c){b.disposers.forEach(function(d){return d()});b.disposers=[];return b.player?_.x(c,a.w.release(b.player),0):c.F(0)})};Pq=function(a,b){var c;return _.E(function(d){if(1==d.a)return _.x(d,a.w.get(),2);if(3!=d.a)return c=d.f,a.f=b,b.role=Nq,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),Gq(a,c,!0),_.x(d,c.load(b.config),3);Oq(a,b);return b.config.autoplay?d.F(0):_.x(d,c.play(),0)})};
269
- Qq=function(a,b){return _.E(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Bf){c.F(2);break}a.g.info(mc);_.A(c,3);return _.x(c,b.preloadPromise,5);case 5:_.bh(c,2);break;case 3:_.C(c);case 2:a.f=b;b.role=Nq;Gq(a,b.player,!0);if(b.state===Af)return _.Jn(xf),a.o.preloadMedia?_.x(c,b.player.play(),11):_.x(c,xq(b.player),11);if(b.state!==zf){c.F(7);break}return _.x(c,b.player.load(b.config),7);case 11:_.Jn(wf),_.Kn("playlist.next",xf,wf);case 7:if(Oq(a,b),b.config.autoplay)c.F(0);
270
- else return _.x(c,b.player.play(),0)}})};Oq=function(a,b){if(a.o.autoplayNext){var c=function(){a.g.info("Automatically transition to next item");a.Eh()};b.player.on(_.oe,c);var d=b.player;b.disposers.push(function(){d.off(_.oe,c)})}};Sq=function(a){var b;return _.E(function(c){b=a.a+1;a.g.info("Preload following item (index: "+b+")");return _.x(c,Rq(a,b),0)})};Tq=function(a){var b;return _.E(function(c){b=a.a-1;a.g.info("Preload preceding item (index: "+b+")");return _.x(c,Rq(a,b),0)})};
271
- Uq=function(a){var b;_.E(function(c){if(0===a.a)return _.x(c,Sq(a),0);if(a.a===a.h.length-1)return _.x(c,Tq(a),0);b=[a.a-1,a.a+1];a.g.info("Preload items (indices: "+b+")");return _.x(c,Promise.all(b.map(function(d){return Rq(a,d)})),0)})};
272
- Rq=function(a,b){var c,d,e;return _.E(function(f){switch(f.a){case 1:return _.x(f,a.w.get(),2);case 2:return c=f.f,d=a.h[b],d.player=c,d.videoEl=c.getSurface().getMedia(),d.role=Lq,d.state=Bf,a.trigger(new _.L(lg)),_.A(f,3),a.l.set(b,d),a.o.preloadMedia?(d.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (index: "+(b+")")),d.config.autoplay=!1),d.preloadPromise=c.load(d.config)):d.preloadPromise=c.preload(d.config),_.x(f,d.preloadPromise,5);case 5:d.state=
273
- Af;a.trigger(new _.L(lg));_.bh(f,0);break;case 3:e=_.C(f),7001===e.code?(a.g.info("Preload aborted (index: "+b+")"),d.state=yf):(a.g.warn("Preload failed (index: "+b+")",e),a.trigger(new _.L(_.pe,{detail:e})),d.state=zf),a.trigger(new _.L(lg)),_.y(f)}})};Gq=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.info(Yb+b),d.classList.add(Cd)):(a.g.info(hb+b),d.classList.remove(Cd)),a.A&&a.A(d,c))};
274
- Vq=function(a){var b;return _.E(function(c){if(1==c.a)return _.x(c,a.w.destroy(),2);b=document.getElementById(a.o.anchorId);if(!b)return c["return"]();b.classList.remove(zd);b.innerHTML="";_.y(c)})};
275
- Fq=function(a,b){var c=document.getElementById(a);if(!c)throw Error("Anchor element not found");c.classList.add(zd);return Array.from({length:3}).map(function(){var d=document.createElement(_.tg);d.classList.add(Bd);var e=document.createElement(_.Zd);e.classList.add(Ad);e.appendChild(d);c.appendChild(e);return new X(d,b)})};
276
- _.Xq=function(a){if(Wq.has(a))return Wq.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);Wq.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),Wq.set(a,b),b):!1};
277
- $q=function(a){var b=this;this.w=a;this.a=new muxjs.mp4.Transmuxer({keepOriginalTimestamps:!0,remux:!1});this.f=null;this.o=[];this.l=[];this.h=[];this.j=!1;this.a.on("data",function(c){b.h=c.captions;var d=new Uint8Array(c.data.byteLength+c.initSegment.byteLength);d.set(c.initSegment,0);d.set(c.data,c.initSegment.byteLength);c.type===Yq?b.o.push(d):c.type===Zq&&b.l.push(d)});this.a.on("done",function(){var c={video:mj.apply(fj,_.Pg(b.o)),captions:b.h,audio:mj.apply(fj,_.Pg(b.l))};b.f.resolve(c);
278
- b.j=!1})};ar=function(a,b){var c=b.replace(/mp2t/i,"mp4");a==_.$c&&(c=c.replace(_.tg,_.$c));var d=/avc1\.(66|77|100)\.(\d+)/.exec(c);if(d){var e="avc1.",f=d[1],g=Number(d[2]);e=("66"==f?e+"4200":"77"==f?e+"4d00":e+"6400")+(g>>4).toString(16);e+=(g&15).toString(16);c=c.replace(d[0],e)}return c};
279
- dr=function(a){_.Fl.call(this);var b=this;this.o=_.O.oa({Mk:2},a);this.j=[];var c=br(a.anchorEl,this.o.Mk+1,this.o.Lj);this.l=new Eq(c);this.a=null;this.h=!1;this.f=new Map;this.A=!1;this.w=a.toggleVisible;this.g=new _.K("clpp.interstitial.MultiController");this.l.a.forEach(function(d){return cr(b,d.player,!1)})};
280
- er=function(a){var b;return _.E(function(c){if(1==c.a)return(b=a.a)?"loaded"===b.state?c.F(2):_.x(c,b.Ld,2):c["return"]();if(4!=c.a)return _.x(c,b.player.play(),4);b.state=_.tf;b.sc&&b.sc();_.y(c)})};fr=function(a,b){a.A=b;var c=a.a&&a.a.player;c&&cr(a,c,!b)};
281
- gr=function(a,b){var c=b.transition;if(c){if(c.rc){var d=c.rc,e=function(){a.g.info("Transition onEnded to (ID: "+d+")");a.play(d)};b.player.on(_.oe,e);b.disposers.push(function(){b.player.off(_.oe,e)})}if(c.nh){var f=function(l){var m=c.nh.find(function(n){return n.cueId===l.detail.id});m&&(a.g.info("Transition onCue to (ID: "+m.itemId+")"),a.play(m.itemId))};b.player.on(_.Rh,f);b.disposers.push(function(){b.player.off(_.Rh,f)})}if(c.th){var g=c.th,h=function(){b.player.getPosition()>=g.position&&
282
- (a.g.info("Transition onPosition to (ID: "+g.itemId+")"),a.play(g.itemId))};b.player.on(_.fg,h);b.disposers.push(function(){b.player.off(_.fg,h)})}}};jr=function(a){a.a&&(a.a.disposers.forEach(function(b){return b()}),a.a.disposers=[],gr(a,a.a),hr(a),ir(a,a.a.next))};hr=function(a){return Promise.all(Array.from(a.f.keys()).map(function(b){return kr(a,b)}))};
283
- kr=function(a,b){var c;return _.E(function(d){if(1==d.a){c=a.f.get(b);if(!c)return d.F(0);a.g.info("Stop preloading item (ID: "+b+")");return c.player?_.x(d,a.l.release(c.player),3):d.F(3)}a.f["delete"](b);_.y(d)})};mr=function(a,b){var c;return _.E(function(d){if(1==d.a)return a.g.info("Stop current playback (ID: "+b.id+")"),b.disposers.forEach(function(e){return e()}),b.disposers=[],c=b.player,b.player=null,b.videoEl=null,b.role=lr,c.pause(),_.x(d,a.l.release(c),2);cr(a,c,!1);_.y(d)})};
284
- or=function(a,b){return _.E(function(c){if(1==c.a)return _.x(c,nr(a,b),2);if(3!=c.a)return b.config.autoplay?c.F(3):_.x(c,b.player.play(),3);b.state=_.tf;_.y(c)})};nr=function(a,b){var c,d;return _.E(function(e){if(1==e.a)return _.x(e,a.l.get(),2);if(3!=e.a)return c=e.f,a.a=b,b.role=pr,a.a.player=c,a.a.videoEl=c.getSurface().getMedia(),cr(a,c,!0),b.primary&&a.trigger(new _.L(Cf,{detail:{player:c}})),b.state="loading",d=b,_.x(e,c.load(b.config),3);d.Ld=e.f;b.state="loaded";_.y(e)})};
285
- qr=function(a,b){return _.E(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Bf){c.F(2);break}a.g.info(mc);_.A(c,3);return _.x(c,b.preloadPromise,5);case 5:_.bh(c,2);break;case 3:_.C(c);case 2:a.a=b;b.role=pr;cr(a,b.player,!0);b.state="loading";if(b.state===Af)return _.x(c,b.player.play(),7);if(b.state!==zf){c.F(7);break}return _.x(c,b.player.load(b.config),7);case 7:if(b.config.autoplay){c.F(11);break}return _.x(c,b.player.play(),11);case 11:b.state=_.tf,_.y(c)}})};
286
- ir=function(a,b){var c;_.E(function(d){if(0===b.length)return d["return"]();a.g.info("Preload items (IDs: "+b+")");c=a.j.filter(function(e){return b.includes(e.id)})||[];return _.x(d,Promise.all(c.map(function(e){return rr(a,e)})),0)})};
287
- rr=function(a,b){var c,d,e;return _.E(function(f){switch(f.a){case 1:return c=b.id,_.x(f,a.l.get(),2);case 2:return d=f.f,b.player=d,b.videoEl=d.getSurface().getMedia(),b.role=lr,b.state=Bf,a.trigger(new _.L(lg)),_.A(f,3),a.f.set(c,b),b.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (ID: "+(c+")")),b.config.autoplay=!1),b.primary&&a.trigger(new _.L(Cf,{detail:{player:d}})),b.preloadPromise=d.load(b.config),_.x(f,b.preloadPromise,5);case 5:b.state=
288
- Af;a.trigger(new _.L(lg));_.bh(f,0);break;case 3:e=_.C(f),7001===e.code?(a.g.info("Preload aborted (ID: "+c+")"),b.state=yf):(a.g.warn("Preload failed (ID: "+c+")",e),a.trigger(new _.L(_.pe,{detail:e})),b.state=zf),a.trigger(new _.L(lg)),_.y(f)}})};
289
- cr=function(a,b,c){if(!a.A){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.info(Yb+b),d.classList.add(Cd),d.classList.remove("clpp-hide")):(a.g.info(hb+b),d.classList.remove(Cd),d.classList.add("clpp-hide")),a.w&&a.w(d,c))}};sr=function(a){var b;return _.E(function(c){if(1==c.a)return _.x(c,a.l.destroy(),2);b=a.o.anchorEl;if(!b)return c["return"]();b.classList.remove(zd);b.innerHTML="";_.y(c)})};
290
- br=function(a,b,c){a.classList.add(zd);return Array.from({length:b}).map(function(){var d=document.createElement(_.tg);d.classList.add(Bd);var e=document.createElement(_.Zd);e.classList.add(Ad);e.appendChild(d);a.appendChild(e);return new X(d,c)})};
291
- xr=function(a){_.Fl.call(this);var b=this;this.f=_.O.oa({prerollMarginSec:.5,resolutionOffsetSec:35},a);this.g=new _.K(Gd);this.l=null;this.a=new dr({Lj:this.f.config,anchorEl:a.anchorEl,preloadMedia:!0});fr(this.a,!0);this.a.on(ye,function(c){var d=c.detail;d.primary&&(b.l=d.player.getDuration());b.trigger(new _.L(tr,c));ur(b);d.primary&&vr(b,d.player)});this.h=[];this.a.on(Cf,function(c){b.trigger(new _.L(wr,{detail:{player:c.detail.player}}))});this.j=[]};
292
- zr=function(a,b,c){var d,e,f,g;return _.E(function(h){if(1==h.a){if(!b.source)return a.g.error("Config must be of type cl.api.PlayerConfiguration"),h["return"]();a.a.Xd([{id:Df,primary:!0,config:_.O.Na(b),next:[]}]);return _.x(h,a.a.load(Df),2)}d=a.a.Ab();if(!d||!d.je())return a.g.error("Failed to get cue timeline after load"),h["return"]();e=d.je();f=Array.from(e.cues());if(g=yr(a,f,c))return h.F(0);fr(a.a,!1);return c?h.F(0):_.x(h,er(a.a),0)})};
293
- yr=function(a,b,c){function d(g){return g.startTime<a.f.prerollMarginSec}var e=b.filter(function(g){return g.schemeIdUri===Pd&&g.Xa});a.g.info("Interstitial cues found",e);if(!Ar(a,e))return!1;b=e.find(d);var f=e.filter(function(g){return g.startTime<a.f.resolutionOffsetSec&&!d(g)});e=e.filter(function(g){return!(g.startTime<a.f.resolutionOffsetSec)});b&&Br(a,b,c);0<f.length&&f.forEach(function(g){return Cr(a,g)});e.forEach(function(g){return Dr(a,g)});a.trigger(new _.L(Er,{detail:a.Bd()}));return!!b};
294
- Dr=function(a,b){var c=b.Xa[tc];c={cueId:b.id,startTime:b.startTime,endTime:b.endTime,state:Fr,$f:b.Xa[qc],ag:b.Xa[rc],Ea:null,resumePosition:null==c?b.endTime:b.startTime+c,playoutLimit:b.Xa[sc]};a.j.push(c);return c};
295
- Br=function(a,b,c){var d,e,f;_.E(function(g){if(1==g.a)return d=Dr(a,b),_.x(g,Gr(a,d),2);e=g.f;f=d.Ea?d.Ea.length:0;if(e&&0<f)return Hr(a,d,c),g.F(0);e?a.g.warn("Preroll interstitial has no assets, skipping"):a.g.error("Preroll interstitial failed, skipping");fr(a.a,!1);return c?g.F(0):_.x(g,er(a.a),0)})};
296
- Cr=function(a,b){var c,d,e,f;return _.E(function(g){if(1==g.a)return c=Dr(a,b),a.g.info(ib+c.cueId+aa+(c.startTime+" s")),_.x(g,Gr(a,c),2);if(d=g.f){e=a.a.getCurrentItem();if(!e)return a.g.error("Cannot schedule interstitial "+(c.cueId+", no primary content not found in playlist")),g["return"]();if(!e.player)return g["return"]();f=e.player;e.state===_.tf?Ir(a,c,f):e.sc=function(){Ir(a,c,f)}}_.y(g)})};ur=function(a){a.h.forEach(function(b){return b()});a.h=[]};
297
- vr=function(a,b){function c(){a.trigger(new _.L(Jr))}function d(){var e,f,g;return _.E(function(h){if(1==h.a){e=b.getPosition();f=Kr(a,e);if(!f)return h.F(0);a.g.info(ib+f.cueId+aa+(f.startTime+" s"));return _.x(h,Gr(a,f),3)}(g=h.f)&&Ir(a,f,b);_.y(h)})}b.addEventListener(_.fg,d);a.h.push(function(){b.removeEventListener(_.fg,d)});b.on(_.oe,c);a.h.push(function(){b.off(_.oe,c)})};
298
- Ar=function(a,b){for(var c=b.sort(function(m,n){return m.startTime-n.startTime}),d=a.f.resolutionOffsetSec,e=[],f=0;f<c.length-1;f++){var g=c[f],h=c[f+1];h&&h.startTime-g.endTime<d&&e.push(kb+g.id+" and "+h.id+" are too close to each other (less than "+(d+" s)."));h&&h.startTime<=g.endTime&&e.push(kb+g.id+" and "+h.id+" overlap.")}var l=[];b.forEach(function(m){var n=m.Xa[rc],p=m.Xa[sc];m.Xa[qc]||n?null!=p&&1>p&&a.g.warn(jb+m.id+" is invalid X-PLAYOUT-LIMIT is less than 1 s.",m):l.push(jb+m.id+" is invalid it contains neither X-ASSET-LIST nor X-ASSET-URI.")});
299
- 0<l.length?a.g.error("Invalid interstitials, all interstitials will be skipped. "+l.join(" ")):0<e.length&&a.g.warn("Unsupported format of interstitials, playback may not behave correctly. "+e.join(" "));return 0===l.length};Kr=function(a,b){return a.j.find(function(c){var d=c.startTime-b;return c.state===Fr&&0<d&&d<=a.f.resolutionOffsetSec})||null};
300
- Gr=function(a,b){var c,d,e;return _.E(function(f){switch(f.a){case 1:b.state=Lr;c={id:b.cueId,startTime:b.startTime,endTime:b.endTime,resumePosition:b.resumePosition,itemCount:-1,playoutLimit:b.playoutLimit};a.trigger(new _.L(Mr,{detail:c}));if(!b.$f){b.ag?(b.Ea=[{URI:b.ag,DURATION:b.endTime-b.startTime}],b.state=Nr):b.state=Or;f.F(2);break}_.A(f,3,4);a.g.info("Load X-ASSET-LIST for "+b.cueId);a.trigger(new _.L(Pr,{detail:c}));d=b;return _.x(f,Qr(a,b.$f),6);case 6:d.Ea=f.f,b.state=Nr,c.itemCount=
301
- b.Ea.length;case 4:_.ch(f);a.trigger(new _.L(Rr,{detail:c}));_.dh(f,2);break;case 3:e=_.C(f);a.g.error("Failed to load X-ASSET-LIST",e);b.state=Or;f.F(4);break;case 2:return f["return"](b.state===Nr)}})};Hr=function(a,b,c){var d,e;_.E(function(f){if(1==f.a){d=a.a.getCurrentItem();if(!d)return f["return"]();e=Sr(a,b,"preroll");a.a.Xd(e);Tr(a,d,b,e,!0);jr(a.a);b.state=Nr;return c?_.x(f,a.a.load(e[0].id),3):_.x(f,a.a.play(e[0].id),3)}fr(a.a,!1);_.y(f)})};
302
- Ir=function(a,b,c){if(b.Ea)if(0===b.Ea.length){var d=function(){c.seek(b.resumePosition)};c.on(_.Rh,d);a.h.push(function(){c.off(_.Rh,d)});a.g.info(ib+b.cueId+" scheduled to be skipped")}else{var e=a.a.getCurrentItem();if(e){var f=Sr(a,b);a.a.Xd(f);var g=f[0].id;Tr(a,e,b,f,!1);e.next=[g];e.transition={nh:[{cueId:b.cueId,itemId:g}]};jr(a.a);b.state=Nr;a.g.info(ib+b.cueId+" scheduled for "+(b.startTime+" s"));a.trigger(new _.L(Ur,{detail:{id:b.cueId,startTime:b.startTime,endTime:b.endTime,resumePosition:b.resumePosition,
182
+ _.Fo=function(a,b){try{a.g.debug("Attempting to load an offline session",b);var c=a.I.createSession(_.kf)}catch(f){var d=new _.P(_.Q,6,6005,{browserError:f.message});a.V(d);return Promise.reject(d)}a.A.on(c,_.Pe,a.pi.bind(a));a.A.on(c,Ce,a.ki.bind(a));var e={initData:null,loaded:!1,$f:Infinity,Jb:null,Ua:new _.Qj,periodId:null,Ie:[],keyId:null,nb:[],initDataType:null,tc:null,sessionContext:{ldlDelay:0,customData:{}}};e.Ua["catch"](function(){});a.f.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.g.debug("Loaded offline session",
183
+ b,f);if(!f)return a.f["delete"](c),a.V(new _.P(_.Q,6,6013)),null;e.loaded=!0;Mo(a)&&(a.w||a.g.info(Ba),a.w=!0,a.D=!1,a.H.resolve());return c},function(f){a.j||(a.f["delete"](c),a.V(new _.P(_.Q,6,6005,{browserError:f.message})))})};No=function(a,b,c,d){if(!b&&c!==_.dg)return!1;d=b||an(d);a=_.w(a.f.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||b&&e.nb.includes(b)||c===_.dg&&(e.keyId||an(e.initData))===d)return!0;return!1};
184
+ Eo=function(a,b,c,d,e,f,g){f=void 0===f?null:f;g=void 0===g?!1:g;var h,l,m,n,p,q,t,v,z,B,F,G,A,H,M,N,W,pa,Ca,$a,ab;_.I(function(Qa){switch(Qa.a){case 1:if(!e.length)return a.g.warn("Empty init data"),Qa["return"]();h=b;if(!h)try{h=Oo(a,d,e,f)}catch(Da){if(a.g.warn("Ignoring unrecognized init data. This may be caused by unsupported or malformed init data. Set `drm.ignoreUnrecognizedInitData \x3d false` if you want to override this behavior and use the init data after all.",{error:Da,initDataType:d,
185
+ initData:e}),a.h.ignoreUnrecognizedInitData)return Qa["return"]()}if(g){Qa.F(2);break}if(!No(a,h,d,e)){Qa.F(2);break}l=!0;if("skd"!==d||a.h.enableSessionCacheForSkd){Qa.F(4);break}m=_.w(a.f.keys());n=m.next();case 5:if(n.done){Qa.F(4);break}p=n.value;q=a.f.get(p);if(!h||q.keyId!==h){Qa.F(6);break}a.g.warn("Close and re-open session for "+h);_.D(Qa,9);return _.y(Qa,p.close(),11);case 11:_.qh(Qa,10);break;case 9:t=_.E(Qa),a.g.warn("Unable to close session",t);case 10:l=!1;case 6:n=m.next();Qa.F(5);
186
+ break;case 4:if(l)return a.g.warn("Skip creating a new session for "+h),Qa["return"]();case 2:try{z=a.G?_.kf:pg,v=a.I.createSession(z),a.g.info("Created new "+z+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(Da){return a.V(new _.P(_.Q,6,6005,{browserError:Da.message})),Qa["return"]()}a.A.on(v,_.Pe,a.pi.bind(a));a.A.on(v,Ce,a.ki.bind(a));B={tc:f,Ie:[],initData:e,initDataType:d,keyId:h,nb:h?[h]:[],loaded:!1,$f:Infinity,periodId:c,Jb:null,Ua:new _.Qj,sessionContext:{ldlDelay:0,customData:{}}};
187
+ B.Ua["catch"](function(){});f&&(F=a.f.get(f),B.sessionContext=F.sessionContext);a.f.set(v,B);h&&!a.l.get(h)&&a.l.set(h,ig);if(e)for(G=0;G<a.a.initData.length;G++)A=a.a.initData[G],A.keyId&&!B.nb.includes(A.keyId)&&_.Cj(A.initData,e)&&(B.keyId||(B.keyId=A.keyId),B.nb.push(A.keyId),a.l.get(A.keyId)||a.l.set(A.keyId,ig));H=_.O;M=H.Hb;N=a.B.getConfiguration();W=a.keySystem();pa=a.h.mb[W];$a=(Ca=pa.modifiers)&&Ca.transformInitData;M($a)||($a=Po);try{e=$a({playerConfig:N,initData:e,initDataType:d,drmInfo:a.a,
188
+ drmSystemConfig:pa,sessionContext:B.sessionContext,emeApi:a.o.Fd()})}catch(Da){return ab=Da,Da instanceof _.P||(ab=new _.P(_.Q,6,6016,Da)),B.Ua&&B.Ua.reject(Da),a.V(ab),Qa["return"]()}a.g.info("Generate License Request for key ID: '"+h+"'");v.generateRequest(d,e.buffer)["catch"](function(Da){if(!a.j){var fb=null;Da.errorCode&&Da.errorCode.systemCode&&(fb=Da.errorCode.systemCode,0>fb&&(fb+=Math.pow(2,32)),fb="0x"+fb.toString(16));a.V(new _.P(_.Q,6,6006,{browserError:Da.message,error:Da,extended:fb},
189
+ Da))}});_.C(Qa)}})};
190
+ Oo=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{var e=d;e=void 0===e?null:e;var f=a.keySystem(),g=a.h.mb[f];f=a.B.getConfiguration();g=g&&g.modifiers&&g.modifiers.extractContentId;_.O.Hb(g)||(g=Qo);try{var h={ldlDelay:0,customData:{}};e&&(h=a.f.get(e).sessionContext);var l=g(f,c,h);a.g.debug("Extracted Content ID '"+l+"' from SKD");var m=l;break a}catch(G){a.g.warn("Unable to extract Content ID from SKD",G)}m=""}return m}if(b===_.dg)return an(c)||"";if(b===_.ud){m=a.keySystem();try{if(m.match(/^com\.widevine\.alpha/)){var n=
191
+ _.On(c);if(n)return n.a}else if(Ro(m)){e=new _.Im(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);f=_.V(e);var p=_.V(e);g=_.Wm(p);var q=_.V(e);c=q>>>24;l=q&16777215;h=_.Qm(e,16);var t=_.Bj(h);if(0<c){var v=_.V(e);e.skip(16*v)}var z=_.V(e),B=_.Qm(e,z),F=_.Un(B);_.Kh("Parsed PR PSSH Box","size",f,"name",g,"version",c,"flags",l,"size",z,"systemId",t,"keyId",F.a);if(F)return F.a}}catch(G){throw a.g.warn("Unable to extract Key ID from PSSH data.",{error:G,keySystem:m}),G;}}return""};
192
+ Qo=function(a,b){var c=_.$m(b);_.Kh("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
193
+ Po=function(a){var b=a.playerConfig,c=a.initData,d=a.drmInfo,e=a.drmSystemConfig,f=a.sessionContext,g=a.emeApi;if("skd"===a.initDataType&&"APPLE"===g){a=_.O.Hb;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=Qo);a="";try{a=e(b,c,f)}catch(h){throw new _.P(_.Q,6,6103);}if(!a.length)throw new _.P(_.Q,6,6101,"Content ID is an empty string");c=bn(c,a,d)}return c};
194
+ Vo=function(a,b){var c=b.target,d=a.f.get(c),e=a.keySystem(),f=!1;e.match(/^com\.widevine\.alpha/)&&b.message&&2===b.message.byteLength?(f=!0,a.g.info("WV Server certificate request for SID:'"+(c.sessionId+" from msg '")+(b.messageType+"'"))):a.g.info("License request for SID:'"+(c.sessionId+"'/KID:'"+d.keyId+"' from msg '")+(b.messageType+"'"));var g=a.a.licenseServerUri;e=a.h.mb[e];"individualization-request"===b.messageType&&e&&e.individualizationServer&&(g=e.individualizationServer);var h=_.Lj([g],
195
+ a.h.attemptParameters);h.type=3;h.body=b.message;h.method="POST";h.licenseRequestType=b.messageType===Fe&&d.tc?Ee:f?wd:b.messageType;h.sessionId=c.sessionId;if(h.licenseRequestType===Ee)a.B.onEvent(new _.L(je));Ro(a.a.keySystem)&&So(a,h);vm(a.P,h);var l=Math.floor(b.timeStamp),m=Date.now();return To(a,h,d.sessionContext).then(function(){_.Wn(be+l+ia);a.g.debug("Sending DRM license request to",g,h);return a.B.bb.fetch(h).N}).then(function(n){_.Wn(be+l+".end");_.Xn(be+l,be+l+ia,be+l+".end");if(a.j)return Promise.reject();
196
+ var p=Date.now()-m,q=Uo(a,n),t="";q&&(t=" RID:"+q);q=n&&n.data?n.data.byteLength:-1;f?a.g.info("WV Server certificate response for SID:'"+(c.sessionId+"' ")+(q+" bytes in ")+(p+"ms"+t)):a.g.info("License response for SID:'"+(c.sessionId+"'/KID:'")+(d.keyId+"' ")+(q+" bytes in ")+(p+"ms"+t));var v=wm(a.P,n);_.Wn(he+l+ia);return c.update(n.data).then(function(){_.Wn(he+l+".end");_.Xn(he+l,he+l+ia,he+l+".end");if(!f){var z=Go(a),B=v?Date.now()+1E3*v.delay:Number.NaN;z=new _.L(_.le,{keySystem:a.keySystem(),
197
+ expirationTime:z,expectedRenewalTime:B});a.B.onEvent(z);d&&(d.Jb&&d.Jb.resolve(),d.tc&&(z=d.tc,a.g.info("Closing expired session '"+z.sessionId+"'"),co(z)["catch"](function(){a.g.warn("Unable to close expired session in time")}),(z=a.f.get(d.tc))&&z.fd&&z.fd.stop(),a.f["delete"](d.tc),d.tc=null),(new _.Zk(function(){a.j||(d.loaded=!0,d.Ua&&d.Ua.resolve(),Mo(a)&&(a.w||a.g.info(Ba),a.w=!0,a.D=!1,a.H.resolve()))})).fa(5),null!==d.initData&&(0<d.sessionContext.ldlDelay||v&&xm(a.keySystem()))&&(z=new _.Zk(function(){!a.j&&
198
+ a.P&&(a.g.info("Updating CSL Sessions"),Ro(a.keySystem())?Eo(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):a.keySystem().startsWith(_.Qd)&&c.update(_.S.hb("renew")))}),d.fd=z,z.fa(v?v.delay:d.sessionContext.ldlDelay)))}})},function(n){var p,q,t,v;return _.I(function(z){if(a.j)return z["return"]();p=n.data.headers;q=zn(p);t=Object.assign({message:_.bb,url:n.data.url,status:n.data.status,response:n.data.response},p?{headers:p}:{},q);v=new _.P(_.Q,6,6007,t,n);a.V(v);d&&d.Jb&&d.Jb.reject(v);d&&
199
+ d.Ua&&d.Ua.reject(v);_.C(z)})})["catch"](function(n){a.j||(n===Zb?a.g.info("Ignore update for closed sessions"):(n=new _.P(_.Q,6,6008,{browserError:n.message}),a.V(n),d&&d.Jb&&d.Jb.reject(n),d&&d.Ua&&d.Ua.reject(n)))})};Uo=function(a,b){if(!b||!b.headers)return"";var c=b.headers["x-dt-li"];if(c)try{return JSON.parse(_.S.ea(_.zj(c))).ti}catch(d){a.g.warn("Unable to parse DRMtoday Request ID",d)}return""};
200
+ So=function(a,b){var c=_.S.vc(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.g.debug("Unwrapping PlayReady request.");c=(new DOMParser).parseFromString(c,"application/xml");for(var d=c.getElementsByTagName("HttpHeader"),e=0;e<d.length;++e)b.headers[d[e].querySelector("name").textContent]=d[e].querySelector(_.Cg).textContent;b.body=_.zj(c.querySelector("Challenge").textContent).buffer}else a.g.debug("PlayReady request is already unwrapped."),b.headers[ya]="text/xml; charset\x3dutf-8"};
201
+ To=function(a,b,c){var d,e,f,g,h,l;return _.I(function(m){if(1==m.a)return d=a.B.getConfiguration(),_.y(m,vo(a,d),2);e=a.keySystem();h=(g=(f=a.h.mb[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;h?b.requestModifiers.push(function(n){return h(d,n,c)}):e.startsWith(_.Qd)&&b.requestModifiers.push(function(n){return _.cn(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Qd)&&b.responseModifiers.push(function(n){return _.dn(n)});_.C(m)})};
202
+ $n=function(a){var b=a.l,c=a.ja;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.V(new _.P(_.Q,6,6014));a.B.dg(_.O.Jg(c));a.w||a.g.info(Ba);a.w=!0;a.D=!1};qo=function(a){var b;return _.I(function(c){if(1==c.a)return _.Wn(ge),b=a.ia.map(function(d){return Vo(a,d)}),a.Wa=!0,a.ia=[],_.y(c,Promise.all(b),2);_.Wn(ee);_.Xn("drm.onPlay",ge,ee);_.C(c)})};Ro=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};
203
+ _.Ko=function(a){return Ro(a)?_.Sd:a};_.Xo=function(a,b){return a.length&&b.length?0<_.Wo(a,b).length:!0};
204
+ _.Wo=function(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=0;d<a.length;d++)for(var e={},f=0;f<b.length;e={zd:e.zd},f++)if(a[d].keySystem===b[f].keySystem&&a[d].periodId===b[f].periodId){var g=a[d];f=b[f];var h=[];h=h.concat(g.initData||[]);h=h.concat(f.initData||[]);e.zd=_.ch(g.keyIds||[]).concat();f.keyIds&&f.keyIds.length&&f.keyIds.forEach(function(l){return function(m){l.zd.includes(m)||l.zd.push(m)}}(e));c.push({keySystem:g.keySystem,licenseServerUri:g.licenseServerUri||f.licenseServerUri,
205
+ distinctiveIdentifierRequired:g.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:g.persistentStateRequired||f.persistentStateRequired,videoRobustness:g.videoRobustness||f.videoRobustness,audioRobustness:g.audioRobustness||f.audioRobustness,serverCertificate:g.serverCertificate||f.serverCertificate,initData:h,keyIds:e.zd,periodId:g.periodId});break}return c};
206
+ ao=function(a){a.f.forEach(function(b,c){var d=b.$f,e=c.expiration;isNaN(e)&&(e=Infinity);e!==d&&(a.B.bg(c.sessionId,e),b.$f=e)})};Mo=function(a){a=a.f.values();return _.kj(a,function(b){return b.loaded})};
207
+ io=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=_.w(a),e=d.next();!e.done;e=d.next())e.value.drmInfos=c};Io=function(a){for(var b=_.w(a.audioCapabilities||[]),c=b.next();!c.done;c=b.next())delete c.value.robustness;a=_.w(a.videoCapabilities||[]);for(b=a.next();!b.done;b=a.next())delete b.value.robustness};
208
+ Jo=function(a){return(a.audioCapabilities||[]).some(Yo)||(a.videoCapabilities||[]).some(Yo)};Yo=function(a){return null!=a.robustness&&""!==a.robustness};
209
+ Lo=function(a,b,c,d,e){var f={};a=_.w(a);for(var g=a.next();!g.done;f={Ja:f.Ja},g=a.next()){f.Ja=g.value;b.includes(f.Ja.licenseServerUri)||b.push(f.Ja.licenseServerUri);f.Ja.serverCertificate&&(c.some(function(m){return function(n){return _.Cj(n,m.Ja.serverCertificate)}}(f))||c.push(f.Ja.serverCertificate));if(f.Ja.initData){var h=_.w(f.Ja.initData);for(g=h.next();!g.done;g=h.next())g.value.periodId=f.Ja.periodId;h={};var l=_.w(f.Ja.initData);for(g=l.next();!g.done;h={te:h.te},g=l.next())h.te=g.value,
210
+ d.some(function(m){return function(n){var p=m.te;return n.keyId&&n.keyId===p.keyId&&n.periodId===p.periodId?!0:!1}}(h))||d.push(h.te)}if(f.Ja.keyIds)for(g=0;g<f.Ja.keyIds.length;++g)e.includes(f.Ja.keyIds[g])||e.push(f.Ja.keyIds[g])}};
211
+ ko=function(a,b){if(a.keySystem){var c=_.Ko(a.keySystem),d=b[c];c===_.ff&&a.licenseServerUri||(d&&(a.licenseServerUri=d.licenseUrl||""),a.keyIds||(a.keyIds=[]),d&&(a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=d.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=d.persistentStateRequired),a.videoRobustness||(a.videoRobustness=d.videoRobustness||""),a.audioRobustness||(a.audioRobustness=d.audioRobustness||""),a.serverCertificate||(a.serverCertificate=
212
+ d.serverCertificate||null)))}};co=function(a){var b,c;return _.I(function(d){if(1==d.a)return b=new Promise(function(e){(new _.Zk(e)).fa(1)}),_.y(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.Fh("Timeout waiting for session close");_.C(d)})};_.ap=function(a,b){a&&b&&(_.Zo.set(a,b),_.$o.info("Registered TextDisplayerFactory: '"+a+"'"))};
213
+ _.bp=function(a,b){var c=b.find(function(d){return(d=_.Zo.get(d))?d.isSupported(a):!1});if(null==c)return _.$o.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;_.$o.info("Chosen the text displayer: "+c);return _.Zo.get(c)};cp=function(){this.a=null;this.f=[]};
214
+ _.dp=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})}};ep=function(a,b){var c=0;a.a&&a.a.state===b&&(c+=a.a.duration);for(var d=_.w(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state===b?e.duration:0;return c};
215
+ fp=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.w(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};gp=function(){this.h=this.f=this.j=null;this.a=[]};hp=function(a){return a.a.map(function(b){return _.O.Xa(b)})};_.ip=function(){this.f=this.o=this.A=this.D=this.j=this.l=this.h=this.w=NaN;this.a=new cp;this.C=new gp};
216
+ _.jp=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:[]}};_.kp=function(a){this.f=a;this.a=void 0};mp=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=lp.value().get(b),c.one(a,b,d))};
217
+ qp=function(a){this.g=new _.K("clpp.StateManager");this.m=a;this.a=new _.Uh;this.f=_.np;this.A=_.op;this.I=0;this.w=-1;this.M=this.o=this.J=this.C=0;this.j=this.h=this.G=!1;this.H=0;this.l=null;this.L=0;this.P=_.gl();this.D=!1;this.J=Date.now();pp(this)};rp=function(a,b){return Object.keys(b)[a]};
218
+ tp=function(a,b){var c={type:_.hg};b===_.nd||b===_.md?(c.reason=a.w,b===_.nd?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.C):(a.f===_.sp&&(c.reason=a.w),a.A===_.sp&&(c.reason=a.w,c.bufferedTimeMS=a.C),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
219
+ xp=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=a.f===_.sp;a.A=a.f;a.f=b;a.A===_.up&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;b===_.sp?(a.M=a.o,a.w=a.h?1:2,a.g.info("Buffering started. Reason: "+rp(a.w-1,_.vp)),c=tp(a,_.nd),a.nc(_.nd,c)):d&&(a.C=a.o-a.M,a.g.info("Buffering finished. Reason: "+rp(a.w-1,_.vp)+". Buffering time: "+a.C+" ms"),c=tp(a,_.md),a.nc(_.md,c));c=rp(a.A,_.wp);d=rp(a.f,_.wp);a.g.info(_.Ob+c+" -\x3e "+d);a.nc(_.hg,tp(a,""));return!0};
220
+ Cp=function(a,b){if(a.f===_.yp)a.g.warn("Player is in error state, aborting any further state checks");else{var c=a.m.isPaused(),d=a.m?a.m.isEnded():!1;if(d)a.h||(a.j=!1,xp(a,_.up));else if(b!==_.sg){var e=a.m.getPosition();e=null!==e&&void 0!==e&&0<=e?a.m.getBufferInfo().Da(e,!0):-1;a.H=e;e=a.m.getSurface().getMedia();a.l=e?e.readyState:null;a.L=a.m.getPlaybackRate()||1;e=typeof a.l===_.k&&2>a.l&&2===e.networkState;var f=typeof a.l===_.k&&0>=a.H&&a.f===_.np,g=typeof a.l===_.k&&2>=a.l&&a.j;e=a.h||
221
+ f||e||g;!a.P||a.m.isLive()||a.f!==_.sp||e||(f=b===_.Zf&&4===a.l,(g=a.A===_.zp)&&!a.D?e=!0:g||a.D||f||(e=!0));f=!1;e?f=xp(a,_.sp):c?f=xp(a,_.Ap):a.G&&(f=xp(a,_.Bp));f&&(a.D=!1);a.g.debug("Video state check for event "+b+":: seeking: "+a.h+", waiting: "+a.j+", playing: "+a.G+", paused: "+c+", readyState: "+a.l+", rate: "+a.L+", buffer: "+a.H+", ended: "+d+". Changed state: "+f+", Current state: "+rp(a.f,_.wp))}}};
222
+ pp=function(a){function b(d){return Cp(a,d.type)}a.g.debug("Start watching for video events for "+a.m.namespace());var c=a.m;a.a.on(c,_.re,function(){a.h||(a.j=!1,xp(a,_.up))});a.a.on(c,od,b);a.a.on(c,_.xf,function(){a.G=!0;a.j=!1;Cp(a,_.xf)});a.a.on(c,_.hf,function(){a.G=!1;a.j=!1;Cp(a,_.hf)});a.a.on(c,_.sg,b);a.a.on(c,_.Lf,b);a.a.on(c,_.Zf,function(d){a.h=!1;a.j=!1;Cp(a,d.type)});a.a.on(c,_.$f,function(d){a.h=!0;Cp(a,d.type)});a.a.on(c,fg,b);a.a.on(c,_.Pg,function(){a.j=!0;Cp(a,_.Pg)});a.a.on(c,
223
+ _.se,function(d){return a.V(d)});a.a.on(c,_.Ke,b);a.a.on(c,pd,function(){a.D=!0;Cp(a,pd)});a.a.on(c,_.Bg,function(d){a.h=!0;Cp(a,d.type)});a.a.on(c,_.Ag,function(d){a.h=!1;a.j=!1;Cp(a,d.type)})};Dp=function(a){a=(new _.Hi(a)).Ma;if(!a)return null;a=a.toUpperCase();return _.S.endsWith(a,".MPD")?_.Vc:_.S.endsWith(a,".M3U8")?_.Il:_.S.endsWith(a,".MP4")?_.Gg:_.S.endsWith(a,"MANIFEST")||_.S.endsWith(a,".ISM")?_.$c:null};
224
+ _.Fp=function(a){var b;gm(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.kg||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=Ep(b[c]);d&&a.push(d)}return a};
225
+ Ep=function(a){var b=null;_.O.ga(a)&&(a={url:a});typeof a===_.Ye&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.O.S(a.drmProtected)||typeof a.drmProtected!==_.ld||(b.drmProtected=a.drmProtected),_.O.S(a.isLive)||typeof a.isLive!==_.ld||(b.isLive=a.isLive),_.O.S(a.name)||typeof a.name!==_.kg||(b.name=a.name),_.O.S(a.Wb)||typeof a.Wb!==_.kg||(b.Wb=a.Wb),_.O.S(a.audioMimeType)||typeof a.audioMimeType!==_.kg||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=Dp(a.url),b.type?
226
+ Gp.debug("Detect media type "+b.type+" for "+a.url):Gp.warn("Unable to detect media type for "+a.url));return b};Hp=function(){_.hm.call(this,Kd);this.w=this.H=!1;this.l=this.A=this.o=this.a=this.j=null;this.h=new _.Uh;this.G=this.C=this.f=this.I=null};
227
+ Kp=function(a,b){return a.w?Ip():new Promise(function(c){a.a||(a.h.on(b,_.se,function(){var d=Jp(a);if(d)a.onError(d)}),a.h.on(b,_.Tf,function(){var d=b.videoWidth,e=b.videoHeight,f=a.getTrackManager();f&&0<d&&0<e&&(f.w={width:d,height:e});a.trigger(new _.L(_.kd,{detail:{width:d,height:e}}))}),a.a=b);c()})};Lp=function(a){return a.w?Ip():new Promise(function(b){if(a.a){var c=a.a;a.h.off(c,_.se);a.h.off(c,_.Tf);a.a=null}b()})};
228
+ Np=function(a){var b,c,d,e,f;return _.I(function(g){if(1==g.a){if(a.w)return g["return"](Ip());b=a.$[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=_.Mp;d=_.Bm(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=new _.bo({bb:e,onError:function(h){return a.onError(h)},dg:function(){},bg:function(h,l){a.trigger(new _.L(_.ie,{expirationTime:l}))},
229
+ onEvent:function(h){h instanceof _.L?a.dispatchEvent(h):a.log.debug(_.ic,h.type)},getConfiguration:function(){return a.getConfiguration()},ld:function(){return a.ld()}});a.o.h=d;f={id:0,language:_.vg,primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:Promise.resolve.bind(Promise),findSegmentPosition:function(){return null},getSegmentReference:function(){return null},adjustSegmentDurations:function(){},getDuration:a.getDuration.bind(a),initSegmentReference:null,za:0,mimeType:_.Gg,
230
+ codecs:"",encrypted:!0,keyId:null,language:_.vg,originalLanguage:_.vg,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,jo:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,spatialAudio:!1,Qn:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.y(g,_.ho(a.o,[f]),2)}return 3!=g.a?_.y(g,_.uo(a.o,a.a),3):g["return"](Promise.resolve())})};
231
+ Op=function(a,b){mp(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){a.getState()!==_.yp&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};Jp=function(a){if(null===a.$||!a.a.error)return null;var b=a.a.error.code;if(1===b)return null;var c=a.a.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new _.P(_.Q,3,3016,{code:b,$n:c,message:a.a.error.message})};Ip=function(){return Promise.reject(new _.P(_.Q,7,7E3))};
232
+ Pp=function(a){if(a.w)return new _.Rj(Ip(),function(){});var b=a.$[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&Op(a,c);if(d.preload!==_.Xe)a.h.one(d,_.Ke,function(){var g=Date.now()/1E3-e;a.f.A=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.Xj()||_.Yj())&&d.load();var f=new _.Qj;a.h.one(d,fg,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.C||(a.C=(new _.Zk(function(){f.reject(new _.P(_.Q,3,3100,{message:"Unable to load media source successfully from "+
233
+ b.url,uri:b.url},d.error))})).fa(g))});mp(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.h,function(){return f.resolve()});d.error?f.reject(Jp(a)):d.preload===_.Xe&&(a.log.warn('With \x3cvideo preload\x3d"none"\x3e, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way. Please do not use preload\x3d"none" with PRESTOplay for Web Apps.'),f.resolve());a.h.one(d,_.se,function(){f.reject(Jp(a))});
234
+ return new _.Rj(f,function(){var g=new _.P(_.Q,7,7001);f.reject(g);return Promise.resolve()})};
235
+ Qp=function(a,b){mp(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){if(a.isLive()&&a.getState()!==_.yp){var c=a.getSeekRange().end,d=a.getPosition();Infinity===c||20>c-d||(a.log.warn("Detected that HLS live stream was not started from close to the live edge. Auto-fixing, seeking to seek range end.(position: "+(d+", seek range end: "+c+")")),a.seek(c)["catch"](function(e){a.log.warn("Error while seeking to seek range edge.",e)}))}})};
236
+ Rp=function(a,b){var c=!1;a.h.on(b,_.$f,function(){c=b.paused});a.h.on(b,_.Zf,function(){.2>b.duration-b.currentTime&&b.paused&&!c&&(a.log.warn("Player was auto-paused during seek to the end, auto-resuming."),b.play())})};Sp=function(){};_.Vp=function(a){a&&(0<=Tp.indexOf(a)?Up.warn("Factory '"+a.name()+"' is already registered"):(Tp.push(a),Up.info("Factory "+a.name()+"' has been registered.")))};
237
+ Xp=function(a,b){var c=Tp.find(function(d){return d.isSupported(a,b)});c||(c=new Wp);Up.info("Chosen ads: "+c.name());return c};_.Yp=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};_.Zp=function(a,b){a.classList.add(b)};_.$p=function(a,b){if(a&&typeof b===_.Ye)for(var c in b)a.style[c]=b[c]};_.aq=function(a){return document.createElement(a)};bq=function(){this.a=null;this.h=new Set;this.f=null;this.set(null)};
238
+ cq=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.h.add(b))};dq=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.h.values());li(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.ch(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
239
+ hq=function(a,b){this.g=new _.K("clpp.PlayerSurface");this.w=_.O.ra(eq,b);this.f=new bq;this.h=null;this.a=new bq;this.l=fq;fq+=1;this.o="clpp-video-"+this.l;this.j=new _.Uh;if(null==a)throw new _.P(_.Q,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.P(_.Q,7,7004,"Media element not found");var d=this.w;this.g.debug("Initializing Player Surface on ",c);if("cast-media-player"===c.tagName.toLowerCase())this.h=c;else{if(!(c instanceof
240
+ HTMLMediaElement))throw new _.P(_.Q,7,7005,"Media element is not instance of HTMLMediaElement");if(!c.hasAttribute("crossorigin")){var e=d.crossorigin;this.g.info("Setting media elements crossorigin to "+e);c.setAttribute("crossorigin",e)}this.f.set(c);if(d.disableContainer)e=null;else if(d.containerEl){if(c.parentNode!==d.containerEl)throw new _.P(_.Q,7,7006,"Container element is not a direct parent of media element");e=d.containerEl}else{e=document.createElement(_.ae);c.parentNode?c.parentNode.replaceChild(e,
241
+ c):this.g.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!");for(var f=[],g=0;g<c.classList.length;g++)f.push(c.classList[g]);f=_.w(f);for(g=f.next();!g.done;g=f.next())g=g.value,c.classList.remove(g),_.Zp(e,g);e.style.cssText=c.style.cssText;c.removeAttribute(_.mg);f=_.w([_.Wg,_.we]);for(g=f.next();!g.done;g=f.next()){g=g.value;var h=c.getAttribute(g);h=parseInt(h,10);isNaN(h)||(e.style[g]=h+_.Kf);_.Xj()||c.removeAttribute(g)}e.appendChild(c)}e&&
242
+ (this.a.set(e),cq(this.a,"clpp-container"),cq(this.a,this.o),cq(this.f,_.zd),cq(this.f,"clpp-video"));d.webOSStartupPatch&&gq(this,c,e)}};gq=function(a,b,c){(_.Yj()&&53===_.dl().major||_.Yj()&&68===_.dl().major||_.el())&&!b.hasAttribute(Wd)&&(b.style.opacity="0",b.setAttribute(Wd,""),a.j.one(b,ne,function(){b.removeAttribute(Wd);b.style.opacity="1";c&&(c.style.opacity="1")}))};jq=function(a){this.m=a;this.j=this.m.getNetworkEngine();this.a=new _.Uh;this.h=null;this.f=!0;iq(this)};
243
+ iq=function(a){a.a.on(window,"offline",function(){kq(a,!1)});a.a.on(window,"online",function(){a.f||lq(a)});a.a.on(a.m,fg,function(){return mq(a)});a.a.on(a.m,"suspend",function(){return mq(a)});a.a.on(a.m,_.Pg,function(){return mq(a)});a.a.on(a.m,_.xf,function(){a.f||lq(a)});a.a.on(a.m,_.Jf,function(){a.f||lq(a)});a.a.on(a.m,_.hg,function(){switch(a.m.getState()){case _.sp:mq(a);break;default:mq(a)}})};lq=function(a){a.m.getConfiguration().connectivityCheck&&(nq(a),a.h=(new _.Zk(function(){return oq(a)})).fa(5))};
244
+ mq=function(a){a.f&&lq(a)};nq=function(a){a.h&&(a.h.stop(),a.h=null)};oq=function(a){var b,c;return _.I(function(d){if(1==d.a)return(b=a.m.getConfiguration().connectivityCheck)&&a.m?_.y(d,fk(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;kq(a,c);_.C(d)})};kq=function(a,b){nq(a);a.f!==b&&(a.f=b,a.m&&a.m.getConfiguration().connectivityCheck&&a.m.trigger(new _.L(df,{online:a.f})))};qq=function(){for(var a=0;a<pq.length;++a)pq[a].bd()};
245
+ _.rq=function(a,b){b=b||0;for(var c={priority:b,bd:a},d=0;d<pq.length;d++)if(pq[d].priority<b){pq.splice(d,0,c);return}pq.push(c)};sq=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};tq=function(a,b,c){var d=_.S.ea;this.h=a;this.f=b;JSON.parse(d(_.zj(a)));this.a=JSON.parse(d(_.zj(b)));this.j=c};uq=function(a){this.license=a;this.a=null;this.g=new _.K("clpp.utils.LicenseKey")};
246
+ vq=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 tq(b[0],b[1],b[2]);a.a=b}return a.a};wq=function(a){switch((a.$[0]||{src:"",type:""}).type){case _.Vc:a="dash";break;case _.$c:a="ss";break;case _.Il:a="hls";break;case _.Gg:a="mp4";break;default:a=""}return a};xq=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};
247
+ yq=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};zq=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};Bq=function(a){var b=a.configuration,c="no";b.drm&&!_.O.oa(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(me)||Aq(a).endsWith("drmtoday.com"))&&(c=me);return c};
248
+ Cq=function(a){a=a.drmInfo;var b="";if(a)switch(a.keySystem){case _.Ud:b="wv";break;case _.Sd:b="pr";break;case _.Qd:b="fps"}return b};Dq=function(a){a=a.drmInfo;var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};Eq=function(a){a=a.drmInfo;var b="";if(a)switch(a.videoRobustness){case ib:case gb:b="L1";break;case hb:b="L2";break;case _.Yb:case _.Xb:b="L3"}return b};Aq=function(a){a=a.drmInfo;return(new _.Hi(a&&a.licenseServerUri||"")).Ya};
249
+ Hq=function(a,b){var c="ie"===_.Zj().browser,d=b.configuration,e=_.ch(Array.from(_.im.keys())).concat(_.ch(b.Bi));d={"CL-KEY":a.license,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ja,"CL-USER-ID":xq(d),"CL-ASSET-ID":yq(d),"CL-SESSION-ID":zq(d),"CL-PLAYBACK-TYPE":b.isLive?Fq:Gq,"CL-CONTENT-TYPE":wq(b),"CL-PLUGINS":e.join(" "),"CL-DRM":Bq(b),"CL-DRM-CDM":Cq(b),"CL-DRM-SEC-LEVEL":Eq(b),"CL-DRM-OFFLINE":Dq(b),"CL-DRM-IP":Aq(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=e);e=
250
+ _.Lj(["https://downloads.castlabs.com/r/register/"]);e.method="GET";e.headers=d;return(new _.ck).fetch(e).N.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=vq(a);f=f.data;var h=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(h){case 403:case 404:g=7101;var l="castLabs Player license is invalid";if(403===h){h=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=h+(": "+
251
+ l)}else f=l+"!";l=f;break;case 412:g=7103;l="License requires a viewer ID. It should be supplied either via the `viewerId` config or in case of DRMtoday via the `drm.customData.userID` config.";break;default:f=Promise.resolve();break a}a.g.error(vb+l);f=Promise.reject(new _.P(_.Q,7,g,l))}}return f})};
252
+ X=function(a,b,c){_.Yl.call(this);var d=this;qq();this.g=new _.K("clpp.Player");if(!a)throw new _.P(_.Q,7,7102);this.ia=new _.Uh;this.f=this.A=b||_.dm();this.l=null;void 0===this.f.license&&(this.f.license=bm,this.g.warn("You are using the embedded demo license!"));if(!this.f.license)throw this.g.error("You provided null or empty string as your license. Please check your license configuration."),new _.P(_.Q,7,7101,"No license provided in configuration!");this.h=new hq(a,c);this.a=this.D=null;this.G=
253
+ new _.ck;this.j=null;this.ba=[];this.ca=!0;this.I={};this.ja=null;this.P=!0;this.T=this.M=!1;this.J=this.hd=null;this.Hf=!1;this.na=new jq(this);this.on(_.hg,function(){d.getState()===_.yp&&(d.a?d.a.unload():Promise.resolve())});this.on(_.Rc,this.ei.bind(this));this.on(_.Qc,this.ei.bind(this));Iq(this,this.f.license);this.h.getMedia()&&(a=this.h.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),this.g.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),
254
+ void 0===this.f.autoplay&&(this.f.autoplay=!0,this.g.debug("Setting autoplay in configuration since it was specified in the video element"))));a=[];b=_.w(Jq);for(c=b.next();!c.done;c=b.next()){c=c.value;try{var e=c.create(this.f);e&&a.push(e)}catch(f){this.g.error("Error while creating player plugin",f)}}Kq(this,a);this.L=_.qa;om(this)};
255
+ _.Lq=function(a,b){null!=b&&b===a.a?a.a.forwardEventsTo(a):(a.a&&(a.a.stopForwardingEventsTo(a),a.a.destroy(),a.a=null),b&&(b.init(a.h,a.A),b.setNetworkEngine(a.getNetworkEngine()),b.forwardEventsTo(a),a.a=b))};Iq=function(a,b){a.D=new uq(b);a.D.verify()["catch"](function(c){setTimeout(function(){a.g.error(vb+c);a.trigger(new _.L(_.se,{detail:new _.P(_.Q,7,7101)}));a.destroy()},1E3)})};
256
+ Mq=function(a,b){var c,d;_.I(function(e){if(1==e.a)return a.h.getMedia()||a.h.getCastElement(),a.D||(a.D=new uq(a.f.license)),_.D(e,2),a.g.debug("Verifying license remotely"),_.y(e,Hq(a.D,b),4);if(2!=e.a)return a.g.debug("License verified remotely"),_.qh(e,0);c=_.E(e);a.g.debug("License rejected by remote",c);d={release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)};setTimeout(sq,1E3,d,c);_.C(e)})};
257
+ Kq=function(a,b){a.ba=b;for(var c=_.w(a.ba),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.I[e]=d)}a.Hc("onPlayerCreated")};
258
+ Nq=function(a){var b,c;return _.I(function(d){if(1==d.a){if(a.P)return a.g.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.ia.off(document,Mg);a.trigger(new _.L(_.Nf));a.h&&a.h.release();return a.j?_.y(d,a.j.dispose(),3):d.F(2)}2!=d.a&&(a.j=null);if(a.a)return b=null,c=a.a.on(_.hg,function(e){b=e}),d["return"](a.Hc(_.bf).then(function(){a.a.stopForwardingEventsTo(a);return Promise.all([a.a.release(),a.G.release()])}).then(function(){a.g.debug("Releasing player completed");
259
+ b&&(a.g.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.hg,c);a.trigger(new _.L(Mf))}));a.trigger(new _.L(Mf));return d["return"](new Promise(function(e){return e()}))})};Qq=function(a,b,c){return a.L===_.Kb?Oq(b,c):Pq(a,b,c)};Pq=function(a,b,c){var d;return _.I(function(e){if((d=2===(a.a?a.a.canPlay(b[0],c):0))&&!a.T)return e["return"]({player:a.a,sourceIndex:0});a.T=!1;return e["return"](Rq(a,b,c))})};
260
+ Oq=function(a,b){var c=Qh(function(d){return d.f(_.Kb)&&a.every(function(e){return 2===d.canPlay(e,b)})});if(!c)throw new _.P(_.Q,7,7003,"No compatible player implementing playlist mode found!");return Promise.resolve({player:c.create(),sourceIndex:0})};
261
+ Rq=function(a,b,c){return new Promise(function(d,e){var f;if(b){for(var g=f=null,h=0;h<b.length;h++);h=Object.values(_.Nh);for(var l=0;l<b.length;l++)for(var m=0;m<h.length;m++){var n={bc:h[m],confidence:h[m].canPlay(b[l],c)};if(null===f||f.confidence<n.confidence)f=n,g=l}f&&typeof g===_.k&&0<f.confidence?(_.Oh.debug("Player Factory '"+f.bc.a()+"' can play",b[g]),f=new Mh(f.bc,g)):(_.Oh.error("No compatible Player Factory found for sources:",b),f=null)}else f=null;f?(g=f.bc.create(),d({player:g,sourceIndex:f.sourceIndex})):
262
+ (f=new _.L(_.se,{detail:new _.P(_.Q,7,7003)}),a.trigger(f),e(f))})};Tq=function(a){var b;return _.I(function(c){if(1==c.a){if(!a.a)return a.g.warn(Mb),c["return"]();b=a.a;if(!b.Zg)return a.g.warn(Rb),c["return"]();a.trigger(new _.L(Le));return _.y(c,b.Zg(),2)}return _.y(c,_.Sq(a),0)})};
263
+ _.Vq=function(a,b,c){var d,e;return _.I(function(f){switch(f.a){case 1:if(a.M)throw new _.P(_.Q,7,7E3,"Player is already destroyed.");if(!a.h)throw new _.P(_.Q,7,7E3,"No surface associated with this player!");_.Wn(sf);return _.y(f,a.release(),2);case 2:d=c||_.Fp(b);if(!b||0===d.length)throw new _.P(_.Q,7,7003,Eb);a.ja=d;a.f=_.fm(a.A,b,{source:d});a.P=!1;return _.y(f,Qq(a,d,a.f),3);case 3:e=f.f;_.Lq(a,e.player);a.a&&a.a.setSourceIndex(e.sourceIndex);Uq(a);a.a&&a.a.setCdnErrorCallback(a.J);a.j=Xp(a,
264
+ a.f).create(a);if(a.f.pauseWhenInBackground)a.ia.on(document,Mg,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});pm(a);return _.y(f,a.Hc("onContentWillLoad",d[e.sourceIndex]),4);case 4:_.Wn(rf),_.Xn("player.beforeLoad",sf,rf),_.C(f)}})};_.Wq=function(a){return _.I(function(b){a.h.getMedia()||a.h.getCastElement();a.trigger(new _.L(Le));return _.y(b,Promise.all([a.a.load(a.f),a.j.load()]),0)})};
265
+ Yq=function(a){var b,c,d,e;_.I(function(f){if(1==f.a){b=[];if(a.f.remoteTextTracks)for(c=_.w(a.f.remoteTextTracks),d=c.next();!d.done;d=c.next())e=d.value,b.push(a.getTrackManager().addTextTrack(e));return _.y(f,Promise.all(b),2)}Xq(a);_.C(f)})};
266
+ Xq=function(a){var b=_.ji(a.f.preferredTextLanguage).filter(function(f){return f}),c=a.f.preferForcedSubtitles,d=a.getTrackManager().ma().filter(function(f){return c?f.kind===_.te:f.kind!==_.te});if(0===d.length)c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles are available.");else{if(c&&0===b.length){var e=a.getTrackManager().pa();e&&e.language?(e=_.fj(e.language||""),b.push(e)):(e=a.getTrackManager().Ta())&&e.language&&(e=_.fj(e.language||""),b.push(e));0===
267
+ b.length&&a.g.warn("Forced subtitles are configured to be preferred, but neither the preferred text language is set, nor the audio or video track language is available to determine which forced subtitles language to select.")}b.some(function(f){var g=_.fj(f);if(f=d.find(function(h){h=_.fj(h.language||"");return _.gj(h,g)}))return a.getTrackManager().Va(f),!0;c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles match the preferred languages: ",b);return!1})}};
268
+ _.Sq=function(a){return _.I(function(b){if(1==b.a)return _.Wn(of),Mq(a,{configuration:a.getConfiguration(),$:a.Mh(),drmInfo:a.getDrmInfo(),Bi:Object.keys(a.I),isLive:a.isLive()}),Yq(a),qm(),_.y(b,a.Hc("onContentLoaded"),2);if(3!=b.a)return a.f.autoplay?_.y(b,a.play(),3):b.F(3);_.Wn(nf);_.Xn("player.afterLoad",of,nf);_.C(b)})};Uq=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.I(function(c){if(!a.hd||!a.Hf)return c.F(0);a.Hf=!1;return _.y(c,a.hd(b),0)})})};
269
+ _.Zq=function(a){a&&(0<=Jq.indexOf(a)||Jq.push(a))};$q=function(a,b,c){X.call(this,a,b,c);a={manifest:{timeline:{version:2},keepTimelineLive:!0},streaming:{preferNativeHlsOnSafari:!1,enableLiveEdgeChasing:!1,startAtSegmentBoundary:!1}};this.A=_.O.ra(this.A,a);this.f=_.O.ra(this.f,a);this.C=0;this.o=[];this.W=!1;this.w=null;this.H=[]};ar=function(a){a.H.forEach(function(b){return b()});a.H=[]};
270
+ br=function(a,b){function c(f){a.C=a.o.findIndex(function(g){return g.id===f.id})}a.addEventListener(_.Wf,c);a.H.push(function(){a.removeEventListener(_.Wf,c)});if(b.endTime){var d=b.endTime,e=function(){a.getPosition()>=d&&(a.removeEventListener(_.sg,e),a.g.info("Playlist end time reached. Stopping playback."),a.trigger(new _.L(_.Vf)),a.pause())};a.addEventListener(_.sg,e);a.H.push(function(){a.removeEventListener(_.sg,e)})}};
271
+ er=function(a,b){var c,d;return _.I(function(e){switch(e.a){case 1:return _.D(e,2),_.Wn(wf),a.L=_.Kb,a.ca=!1,c=b.slice(1).map(function(f){return{config:f,$:_.Fp(f)}}),_.y(e,_.Vq(a,b[0]),4);case 4:return c.forEach(function(f){cr(a,f.config,f.$)}),a.trigger(new _.L(Le)),_.y(e,a.a.setupPlaylist(b),5);case 5:return _.y(e,_.Sq(a),6);case 6:c.forEach(function(f){dr(a,f.config,f.$)});_.Wn(vf);_.Xn("player.setupPlaylist",wf,vf);_.qh(e,0);break;case 2:d=_.E(e);if(a.l)throw a.g.info(wb),new _.P(_.Q,7,7E3);
272
+ throw d;}})};fr=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.D(e,2),_.Wn(qf),c=_.Fp(b),cr(a,b,c),_.y(e,a.a.appendLoad(b),4);if(2!=e.a)return dr(a,b,c),_.Wn(pf),_.Xn("player.appendLoad",qf,pf),_.qh(e,0);d=_.E(e);if(a.l)throw a.g.info(wb),new _.P(_.Q,7,7E3,{id:b.id});throw d;})};dr=function(a,b,c){Mq(a,{configuration:b,$:c,drmInfo:a.getDrmInfo(),Bi:Object.keys(a.I),isLive:c[0].isLive})};
273
+ cr=function(a,b,c){if(0===c.length)throw new _.P(_.Q,7,7003,{message:Eb,id:b.id});if(1<c.length)throw new _.P(_.Q,7,7003,{message:"Multiple sources not supported!",id:b.id,source:c});if(2!==(a.a?a.a.canPlay(c[0],a.f):0))throw new _.P(_.Q,7,7003,{message:"Source not supported by the current player!",id:b.id,source:c[0]});};gr=function(a){this.a=a.map(function(b){return{videoId:b.getSurface().getMedia().id,player:b,ze:!0,ready:Promise.resolve()}});this.g=new _.K("clpp.plist.PlayerPool")};
274
+ jr=function(a){_.Yl.call(this);var b=this;this.o=_.O.ra({transition:_.hf,preloadMedia:!1},a);this.h=[];this.a=0;var c=hr(a.anchorId,this.o.config);this.w=new gr(c);this.f=null;this.j=!1;this.l=new Map;this.A=a.toggleVisible;this.g=new _.K(Ld);this.w.a.forEach(function(d){return ir(b,d.player,!1)})};lr=function(a){return Promise.all(Array.from(a.l.keys()).map(function(b){return kr(a,b)}))};
275
+ kr=function(a,b){var c;return _.I(function(d){if(1==d.a){c=a.l.get(b);if(!c)return d.F(0);a.g.info("Stop preloading item (index: "+b+")");return c.player?_.y(d,mr(a,c),3):d.F(3)}a.l["delete"](b);_.C(d)})};or=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Stop current playback (index: "+b.index+")"),b.player.pause(),ir(a,b.player,!1),_.y(c,mr(a,b),2);b.player=null;b.videoEl=null;b.role=nr;_.C(c)})};
276
+ mr=function(a,b){return _.I(function(c){b.disposers.forEach(function(d){return d()});b.disposers=[];return b.player?_.y(c,a.w.release(b.player),0):c.F(0)})};rr=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.y(d,a.w.get(),2);if(3!=d.a)return c=d.f,a.f=b,b.role=pr,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),ir(a,c,!0),_.y(d,c.load(b.config),3);qr(a,b);return b.config.autoplay?d.F(0):_.y(d,c.play(),0)})};
277
+ sr=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Ff){c.F(2);break}a.g.info(oc);_.D(c,3);return _.y(c,b.preloadPromise,5);case 5:_.qh(c,2);break;case 3:_.E(c);case 2:a.f=b;b.role=pr;ir(a,b.player,!0);if(b.state===Ef)return _.Wn(Bf),a.o.preloadMedia?_.y(c,b.player.play(),11):_.y(c,Tq(b.player),11);if(b.state!==Df){c.F(7);break}return _.y(c,b.player.load(b.config),7);case 11:_.Wn(Af),_.Xn("playlist.next",Bf,Af);case 7:if(qr(a,b),b.config.autoplay)c.F(0);
278
+ else return _.y(c,b.player.play(),0)}})};qr=function(a,b){if(a.o.autoplayNext){var c=function(){a.g.info("Automatically transition to next item");a.Ai()};b.player.on(_.re,c);var d=b.player;b.disposers.push(function(){d.off(_.re,c)})}};ur=function(a){var b;return _.I(function(c){b=a.a+1;a.g.info("Preload following item (index: "+b+")");return _.y(c,tr(a,b),0)})};vr=function(a){var b;return _.I(function(c){b=a.a-1;a.g.info("Preload preceding item (index: "+b+")");return _.y(c,tr(a,b),0)})};
279
+ wr=function(a){var b;_.I(function(c){if(0===a.a)return _.y(c,ur(a),0);if(a.a===a.h.length-1)return _.y(c,vr(a),0);b=[a.a-1,a.a+1];a.g.info("Preload items (indices: "+b+")");return _.y(c,Promise.all(b.map(function(d){return tr(a,d)})),0)})};
280
+ tr=function(a,b){var c,d,e;return _.I(function(f){switch(f.a){case 1:return _.y(f,a.w.get(),2);case 2:return c=f.f,d=a.h[b],d.player=c,d.videoEl=c.getSurface().getMedia(),d.role=nr,d.state=Ff,a.trigger(new _.L(xg)),_.D(f,3),a.l.set(b,d),a.o.preloadMedia?(d.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (index: "+(b+")")),d.config.autoplay=!1),d.preloadPromise=c.load(d.config)):d.preloadPromise=c.preload(d.config),_.y(f,d.preloadPromise,5);case 5:d.state=
281
+ Ef;a.trigger(new _.L(xg));_.qh(f,0);break;case 3:e=_.E(f),7001===e.code?(a.g.info("Preload aborted (index: "+b+")"),d.state=Cf):(a.g.warn("Preload failed (index: "+b+")",e),a.trigger(new _.L(_.se,{detail:e})),d.state=Df),a.trigger(new _.L(xg)),_.C(f)}})};ir=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.info(ac+b),d.classList.add(Ed)):(a.g.info(kb+b),d.classList.remove(Ed)),a.A&&a.A(d,c))};
282
+ xr=function(a){var b;return _.I(function(c){if(1==c.a)return _.y(c,a.w.destroy(),2);b=document.getElementById(a.o.anchorId);if(!b)return c["return"]();b.classList.remove(Bd);b.innerHTML="";_.C(c)})};
283
+ hr=function(a,b){var c=document.getElementById(a);if(!c)throw Error("Anchor element not found");c.classList.add(Bd);return Array.from({length:3}).map(function(){var d=document.createElement(_.r);d.classList.add(Dd);var e=document.createElement(_.ae);e.classList.add(Cd);e.appendChild(d);c.appendChild(e);return new X(d,b)})};
284
+ _.zr=function(a){if(yr.has(a))return yr.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);yr.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),yr.set(a,b),b):!1};Ar=function(a){this.h=a;this.f={keepOriginalTimestamps:!0,remux:!1};this.a=new muxjs.mp4.Transmuxer(this.f)};
285
+ Br=function(a,b){var c=b.replace(/mp2t/i,"mp4");a===_.bd&&(c=c.replace(_.r,_.bd));var d=/avc1\.(66|77|100)\.(\d+)/.exec(c);if(d){var e="avc1.",f=d[1],g=Number(d[2]);e=("66"===f?e+"4200":"77"===f?e+"4d00":e+"6400")+(g>>4).toString(16);e+=(g&15).toString(16);c=c.replace(d[0],e)}return c};
286
+ Er=function(a){_.Yl.call(this);var b=this;this.o=_.O.ra({Ql:2},a);this.j=[];var c=Cr(a.anchorEl,this.o.Ql+1,this.o.Lk);this.l=new gr(c);this.a=null;this.h=!1;this.f=new Map;this.A=!1;this.w=a.toggleVisible;this.g=new _.K("clpp.interstitial.MultiController");this.l.a.forEach(function(d){return Dr(b,d.player,!1)})};
287
+ Fr=function(a){var b;return _.I(function(c){if(1==c.a)return(b=a.a)?"loaded"===b.state?c.F(2):_.y(c,b.he,2):c["return"]();if(4!=c.a)return _.y(c,b.player.play(),4);b.state=_.xf;b.Gc&&b.Gc();_.C(c)})};Gr=function(a,b){a.A=b;var c=a.a&&a.a.player;c&&Dr(a,c,!b)};
288
+ Hr=function(a,b){var c=b.transition;if(c){if(c.Fc){var d=c.Fc,e=function(){a.g.info("Transition onEnded to (ID: "+d+")");a.play(d)};b.player.on(_.re,e);b.disposers.push(function(){b.player.off(_.re,e)})}if(c.gi){var f=function(l){var m=c.gi.find(function(n){return n.cueId===l.detail.id});m&&(a.g.info("Transition onCue to (ID: "+m.itemId+")"),a.play(m.itemId))};b.player.on(_.hi,f);b.disposers.push(function(){b.player.off(_.hi,f)})}if(c.li){var g=c.li,h=function(){b.player.getPosition()>=g.position&&
289
+ (a.g.info("Transition onPosition to (ID: "+g.itemId+")"),a.play(g.itemId))};b.player.on(_.sg,h);b.disposers.push(function(){b.player.off(_.sg,h)})}}};Kr=function(a){a.a&&(a.a.disposers.forEach(function(b){return b()}),a.a.disposers=[],Hr(a,a.a),Ir(a),Jr(a,a.a.next))};Ir=function(a){return Promise.all(Array.from(a.f.keys()).map(function(b){return Lr(a,b)}))};
290
+ Lr=function(a,b){var c;return _.I(function(d){if(1==d.a){c=a.f.get(b);if(!c)return d.F(0);a.g.info("Stop preloading item (ID: "+b+")");return c.player?_.y(d,a.l.release(c.player),3):d.F(3)}a.f["delete"](b);_.C(d)})};Nr=function(a,b){var c;return _.I(function(d){if(1==d.a)return a.g.info("Stop current playback (ID: "+b.id+")"),b.disposers.forEach(function(e){return e()}),b.disposers=[],c=b.player,b.player=null,b.videoEl=null,b.role=Mr,c.pause(),_.y(d,a.l.release(c),2);Dr(a,c,!1);_.C(d)})};
291
+ Pr=function(a,b){return _.I(function(c){if(1==c.a)return _.y(c,Or(a,b),2);if(3!=c.a)return b.config.autoplay?c.F(3):_.y(c,b.player.play(),3);b.state=_.xf;_.C(c)})};Or=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.y(e,a.l.get(),2);if(3!=e.a)return c=e.f,a.a=b,b.role=Qr,a.a.player=c,a.a.videoEl=c.getSurface().getMedia(),Dr(a,c,!0),b.primary&&a.trigger(new _.L(Hf,{detail:{player:c}})),b.state="loading",d=b,_.y(e,c.load(b.config),3);d.he=e.f;b.state="loaded";_.C(e)})};
292
+ Rr=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Ff){c.F(2);break}a.g.info(oc);_.D(c,3);return _.y(c,b.preloadPromise,5);case 5:_.qh(c,2);break;case 3:_.E(c);case 2:a.a=b;b.role=Qr;Dr(a,b.player,!0);b.state="loading";if(b.state===Ef)return _.y(c,b.player.play(),7);if(b.state!==Df){c.F(7);break}return _.y(c,b.player.load(b.config),7);case 7:if(b.config.autoplay){c.F(11);break}return _.y(c,b.player.play(),11);case 11:b.state=_.xf,_.C(c)}})};
293
+ Jr=function(a,b){var c;_.I(function(d){if(0===b.length)return d["return"]();a.g.info("Preload items (IDs: "+b+")");c=a.j.filter(function(e){return b.includes(e.id)})||[];return _.y(d,Promise.all(c.map(function(e){return Sr(a,e)})),0)})};
294
+ Sr=function(a,b){var c,d,e;return _.I(function(f){switch(f.a){case 1:return c=b.id,_.y(f,a.l.get(),2);case 2:return d=f.f,b.player=d,b.videoEl=d.getSurface().getMedia(),b.role=Mr,b.state=Ff,a.trigger(new _.L(xg)),_.D(f,3),a.f.set(c,b),b.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (ID: "+(c+")")),b.config.autoplay=!1),b.primary&&a.trigger(new _.L(Hf,{detail:{player:d}})),b.preloadPromise=d.load(b.config),_.y(f,b.preloadPromise,5);case 5:b.state=
295
+ Ef;a.trigger(new _.L(xg));_.qh(f,0);break;case 3:e=_.E(f),7001===e.code?(a.g.info("Preload aborted (ID: "+c+")"),b.state=Cf):(a.g.warn("Preload failed (ID: "+c+")",e),a.trigger(new _.L(_.se,{detail:e})),b.state=Df),a.trigger(new _.L(xg)),_.C(f)}})};
296
+ Dr=function(a,b,c){if(!a.A){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.info(ac+b),d.classList.add(Ed),d.classList.remove("clpp-hide")):(a.g.info(kb+b),d.classList.remove(Ed),d.classList.add("clpp-hide")),a.w&&a.w(d,c))}};Tr=function(a){var b;return _.I(function(c){if(1==c.a)return _.y(c,a.l.destroy(),2);b=a.o.anchorEl;if(!b)return c["return"]();b.classList.remove(Bd);b.innerHTML="";_.C(c)})};
297
+ Cr=function(a,b,c){a.classList.add(Bd);return Array.from({length:b}).map(function(){var d=document.createElement(_.r);d.classList.add(Dd);var e=document.createElement(_.ae);e.classList.add(Cd);e.appendChild(d);a.appendChild(e);return new X(d,c)})};
298
+ Yr=function(a){_.Yl.call(this);var b=this;this.f=_.O.ra({prerollMarginSec:.5,resolutionOffsetSec:35},a);this.g=new _.K(Jd);this.l=null;this.a=new Er({Lk:this.f.config,anchorEl:a.anchorEl,preloadMedia:!0});Gr(this.a,!0);this.a.on(Be,function(c){var d=c.detail;d.primary&&(b.l=d.player.getDuration());b.trigger(new _.L(Ur,c));Vr(b);d.primary&&Wr(b,d.player)});this.h=[];this.a.on(Hf,function(c){b.trigger(new _.L(Xr,{detail:{player:c.detail.player}}))});this.j=[]};
299
+ $r=function(a,b,c){var d,e,f,g;return _.I(function(h){if(1==h.a){if(!b.source)return a.g.error("Config must be of type cl.api.PlayerConfiguration"),h["return"]();a.a.ye([{id:If,primary:!0,config:_.O.Xa(b),next:[]}]);return _.y(h,a.a.load(If),2)}d=a.a.Pb();if(!d||!d.Ke())return a.g.error("Failed to get cue timeline after load"),h["return"]();e=d.Ke();f=Array.from(e.cues());if(g=Zr(a,f,c))return h.F(0);Gr(a.a,!1);return c?h.F(0):_.y(h,Fr(a.a),0)})};
300
+ Zr=function(a,b,c){function d(g){return g.startTime<a.f.prerollMarginSec}var e=b.filter(function(g){return g.schemeIdUri===Rd&&g.jb});a.g.info("Interstitial cues found",e);if(!as(a,e))return!1;b=e.find(d);var f=e.filter(function(g){return g.startTime<a.f.resolutionOffsetSec&&!d(g)});e=e.filter(function(g){return!(g.startTime<a.f.resolutionOffsetSec)});b&&bs(a,b,c);0<f.length&&f.forEach(function(g){return cs(a,g)});e.forEach(function(g){return ds(a,g)});a.trigger(new _.L(es,{detail:a.Rd()}));return!!b};
301
+ ds=function(a,b){var c=b.jb[xc];c={cueId:b.id,startTime:b.startTime,endTime:b.endTime,state:fs,Kg:b.jb[uc],Lg:b.jb[vc],Qa:null,resumePosition:null==c?b.endTime:b.startTime+c,playoutLimit:b.jb[wc]};a.j.push(c);return c};
302
+ bs=function(a,b,c){var d,e,f;_.I(function(g){if(1==g.a)return d=ds(a,b),_.y(g,gs(a,d),2);e=g.f;f=d.Qa?d.Qa.length:0;if(e&&0<f)return hs(a,d,c),g.F(0);e?a.g.warn("Preroll interstitial has no assets, skipping"):a.g.error("Preroll interstitial failed, skipping");Gr(a.a,!1);return c?g.F(0):_.y(g,Fr(a.a),0)})};
303
+ cs=function(a,b){var c,d,e,f;return _.I(function(g){if(1==g.a)return c=ds(a,b),a.g.info(lb+c.cueId+ba+(c.startTime+" s")),_.y(g,gs(a,c),2);if(d=g.f){e=a.a.getCurrentItem();if(!e)return a.g.error("Cannot schedule interstitial "+(c.cueId+", no primary content not found in playlist")),g["return"]();if(!e.player)return g["return"]();f=e.player;e.state===_.xf?is(a,c,f):e.Gc=function(){is(a,c,f)}}_.C(g)})};Vr=function(a){a.h.forEach(function(b){return b()});a.h=[]};
304
+ Wr=function(a,b){function c(){a.trigger(new _.L(js))}function d(){var e,f,g;return _.I(function(h){if(1==h.a){e=b.getPosition();f=ks(a,e);if(!f)return h.F(0);a.g.info(lb+f.cueId+ba+(f.startTime+" s"));return _.y(h,gs(a,f),3)}(g=h.f)&&is(a,f,b);_.C(h)})}b.addEventListener(_.sg,d);a.h.push(function(){b.removeEventListener(_.sg,d)});b.on(_.re,c);a.h.push(function(){b.off(_.re,c)})};
305
+ as=function(a,b){for(var c=b.sort(function(m,n){return m.startTime-n.startTime}),d=a.f.resolutionOffsetSec,e=[],f=0;f<c.length-1;f++){var g=c[f],h=c[f+1];h&&h.startTime-g.endTime<d&&e.push(nb+g.id+" and "+h.id+" are too close to each other (less than "+(d+" s)."));h&&h.startTime<=g.endTime&&e.push(nb+g.id+" and "+h.id+" overlap.")}var l=[];b.forEach(function(m){var n=m.jb[vc],p=m.jb[wc];m.jb[uc]||n?null!=p&&1>p&&a.g.warn(mb+m.id+" is invalid X-PLAYOUT-LIMIT is less than 1 s.",m):l.push(mb+m.id+" is invalid it contains neither X-ASSET-LIST nor X-ASSET-URI.")});
306
+ 0<l.length?a.g.error("Invalid interstitials, all interstitials will be skipped. "+l.join(" ")):0<e.length&&a.g.warn("Unsupported format of interstitials, playback may not behave correctly. "+e.join(" "));return 0===l.length};ks=function(a,b){return a.j.find(function(c){var d=c.startTime-b;return c.state===fs&&0<d&&d<=a.f.resolutionOffsetSec})||null};
307
+ gs=function(a,b){var c,d,e;return _.I(function(f){switch(f.a){case 1:b.state=ls;c={id:b.cueId,startTime:b.startTime,endTime:b.endTime,resumePosition:b.resumePosition,itemCount:-1,playoutLimit:b.playoutLimit};a.trigger(new _.L(ms,{detail:c}));if(!b.Kg){b.Lg?(b.Qa=[{URI:b.Lg,DURATION:b.endTime-b.startTime}],b.state=ns):b.state=os;f.F(2);break}_.D(f,3,4);a.g.info("Load X-ASSET-LIST for "+b.cueId);a.trigger(new _.L(ps,{detail:c}));d=b;return _.y(f,qs(a,b.Kg),6);case 6:d.Qa=f.f,b.state=ns,c.itemCount=
308
+ b.Qa.length;case 4:_.rh(f);a.trigger(new _.L(rs,{detail:c}));_.sh(f,2);break;case 3:e=_.E(f);a.g.error("Failed to load X-ASSET-LIST",e);b.state=os;f.F(4);break;case 2:return f["return"](b.state===ns)}})};hs=function(a,b,c){var d,e;_.I(function(f){if(1==f.a){d=a.a.getCurrentItem();if(!d)return f["return"]();e=ss(a,b,"preroll");a.a.ye(e);ts(a,d,b,e,!0);Kr(a.a);b.state=ns;return c?_.y(f,a.a.load(e[0].id),3):_.y(f,a.a.play(e[0].id),3)}Gr(a.a,!1);_.C(f)})};
309
+ is=function(a,b,c){if(b.Qa)if(0===b.Qa.length){var d=function(){c.seek(b.resumePosition)};c.on(_.hi,d);a.h.push(function(){c.off(_.hi,d)});a.g.info(lb+b.cueId+" scheduled to be skipped")}else{var e=a.a.getCurrentItem();if(e){var f=ss(a,b);a.a.ye(f);var g=f[0].id;ts(a,e,b,f,!1);e.next=[g];e.transition={gi:[{cueId:b.cueId,itemId:g}]};Kr(a.a);b.state=ns;a.g.info(lb+b.cueId+" scheduled for "+(b.startTime+" s"));a.trigger(new _.L(us,{detail:{id:b.cueId,startTime:b.startTime,endTime:b.endTime,resumePosition:b.resumePosition,
303
310
  itemCount:f.length,playoutLimit:b.playoutLimit}}))}}};
304
- Sr=function(a,b,c){c=void 0===c?"":c;var d=0,e=b.Ea.map(function(l,m){var n=b.cueId+"-"+m,p=m===b.Ea.length-1?Df:b.cueId+"-"+(m+1);d+=l.DURATION;n={id:n,config:{source:{url:l.URI,type:_.pl}},next:[p],transition:{rc:p},duration:l.DURATION,zg:d,gn:b.cueId};return a.f.interstitialAssetConverter?a.f.interstitialAssetConverter(n):n});e.forEach(function(l,m){l.sc=function(){a.g.info(Lb+l.id,l);a.trigger(new _.L(Vr,{detail:{id:l.id,podId:b.cueId,uri:l.config.source.url,duration:l.duration,podOrder:m+1,podCount:b.Ea.length}}))}});
305
- if(null!=b.playoutLimit){var f=b.playoutLimit;a.g.info("Playout limit for "+b.cueId+" is "+(f+" s"));e=e.filter(function(l){return l.zg-l.duration<=f});var g=e[e.length-1],h=Math.abs(g.zg-f);1>h?g.transition.rc=Df:(g.transition.rc=void 0,g.transition.th={position:g.duration-h,itemId:Df});g.next=[Df]}e[0].sc=function(){a.g.info("Playing interstitial "+c+" "+b.cueId+" with "+(b.Ea.length+" assets and will resume primary content at ")+(b.resumePosition+" s."),e);a.g.info(Lb+e[0].id,e[0]);a.trigger(new _.L(Wr,
306
- {detail:{id:b.cueId,startTime:b.startTime,endTime:b.endTime,resumePosition:b.resumePosition,itemCount:e.length,playoutLimit:b.playoutLimit}}));a.trigger(new _.L(Vr,{detail:{id:e[0].id,podId:b.cueId,uri:b.Ea[0].URI,duration:b.Ea[0].DURATION,podOrder:1,podCount:b.Ea.length}}))};return e};
307
- Tr=function(a,b,c,d,e){b.sc=function(){a.g.info("Resuming primary content at "+(b.config.startTime+" s."));a.trigger(new _.L(Xr,{detail:{id:c.cueId}}));c.state=Yr;a.a.removeItems(d.map(function(f){return f.id}));b.next=[];e&&a.trigger(new _.L(Zr))};b.config.startTime=c.resumePosition};
308
- Qr=function(a,b){var c,d,e,f,g,h;return _.E(function(l){if(1==l.a){c=a.a.Ab();if(!c)throw Error("No player found");d=c.getNetworkEngine();e=_.uj(b);return _.x(l,Pj(d,e),2)}f=l.f;g=$r(f);if(!g)throw new ki("Invalid X-ASSET-LIST list response");h=f;return l["return"](Promise.resolve(h.ASSETS))})};$r=function(a){return a&&a.ASSETS&&Array.isArray(a.ASSETS)?a.ASSETS.every(function(b){return typeof b.URI===_.Yf&&typeof b.DURATION===_.k}):!1};as=function(){};bs=function(){};cs=function(){};ds=function(){};
309
- Dp=function(){};es=function(){};_.fs=function(){};gs=function(){this.a=null;this.g=new _.K("clpp.drm.eme.StandardEmeManager")};hs=function(){};is=function(){this.size=0;this.a=void 0;this.g=new _.K("clpp.drm.eme.MediaKeyStatusMap")};js=function(a,b){a.size=void 0===b?0:1;a.g.debug("Setting key status to",b);a.a=b};ks=function(){};ls=function(){};ms=function(){this.a=this.f=null};
310
- ns=function(a,b){this.keySystem=a;if(a.startsWith(_.Od))for(var c=_.u(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.Kf)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.bf,distinctiveIdentifier:_.bf,initDataTypes:e.initDataTypes,sessionTypes:[cg],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])&&
311
- (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,_.vg));d=g?d:null}if(d){this.a=d;return}}c=Error(ic);c.name=Fb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
312
- os=function(a){this.f=null;this.h=new WebKitMediaKeys(a);this.a=new _.Eh;this.j=0;this.g=new _.K(Fd);this.g.info("Created Media Keys for "+a)};
313
- ps=function(a,b){a.f=b;_.Hh(a.a);if(!b)return Promise.resolve();a.a.on(b,me,function(c){_.uh("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);"MediaEncryptedEvent"in window&&c instanceof MediaEncryptedEvent&&(a.g.info("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.a.on(b,Hg,function(c){a.g.debug("Handle webkitNeedKey event");c=_.Xi(c.initData);if(_.dj(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
314
- c=_.R.kc(c.subarray(4),!0);c=_.R.Ua(c);var d=new Event(me);d.initDataType="skd";d.initData=ej(c);a.f.dispatchEvent(d)});Uo(b,HTMLMediaElement.HAVE_METADATA,a.a,function(){return b.webkitSetMediaKeys(a.h)});return Promise.resolve()};qs=function(a,b){_.Fl.call(this);this.a=null;this.o=a;this.f=this.h=null;this.j=new _.Eh;this.sessionId=b;this.expiration=NaN;this.closed=new _.zj;this.l=!1;this.keyStatuses=new is;this.g=new _.K(Fd)};rs=function(a,b){js(a.keyStatuses,b);a.dispatchEvent(new _.L(ze))};
315
- ss=function(){};ts=function(){this.f=this.a=null;this.h="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.h="webkit")};
316
- us=function(a,b,c,d){this.h=a;this.a=this.keySystem=c;a=!1;c===_.cf&&(this.a=Dg,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,
317
- this.a)&&(h.push(m),e=!0));l||(e=b.canPlayType(_.vg,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.Kf||a||(e=!1);if(e){this.f=f;return}}b=ic;if(c===_.cf||c===_.Sd)b="None of the requested configurations were supported.";c=Error(b);c.name=Fb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};vs=function(a,b){this.h=a;this.o=b;this.a=null;this.f=new _.Eh;this.j=[];this.l=new Map};
318
- ys=function(a,b){a.a=b;_.Hh(a.f);b&&(a.f.on(b,a.h+"needkey",function(c){var d=new Event(me);d.initDataType=_.rd;d.initData=ej(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.h+"keymessage",function(c){var d=ws(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.L(_.Ne,{messageType:e?De:Ce,message:c.message});_.uh("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.vh("Session not found",c.sessionId)}),a.f.on(b,a.h+"keyadded",function(c){(c=
319
- ws(a,c.sessionId))&&c.ready()}),a.f.on(b,a.h+"keyerror",function(c){var d=ws(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?xs(d,_.df):1===e?xs(d,"expired"):xs(d,_.xe))}}))};
320
- ws=function(a,b){var c=a.l.get(b);return c?c:(c=a.j.shift())?(c.sessionId=b,a.l.set(b,c),c):null};zs=function(a,b,c,d){_.Fl.call(this);this.w=a;this.j=b;this.o=!1;this.a=this.f=null;this.h=c;this.l=d;this.sessionId="";this.expiration=NaN;this.closed=new _.zj;this.keyStatuses=new is};
321
- Bs=function(a,b,c){if(a.o)return Promise.reject(Error("The session is already initialized."));a.o=!0;try{if(a.l===_.gf)if(c)var d=_.Xi(_.R.Ua("LOAD_SESSION|"+c));else{var e=_.R.Ua("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.Xi(b),e.byteLength);d=f}else d=_.Xi(b)}catch(h){return Promise.reject(h)}a.f=new _.zj;var g=As(a,"generateKeyRequest");try{a.j[g](a.h,d)}catch(h){if(h.name!==mb)return a.f=null,Promise.reject(h);(new _.Gk(function(){try{a.j[g](a.h,d)}catch(l){a.f.reject(l),
322
- a.f=null}})).aa(.01)}return a.f};Cs=function(a,b,c){if(a.a)a.a.then(function(){return Cs(a,b,c)})["catch"](function(){return Cs(a,b,c)});else{a.a=b;if(a.h===Dg){var d=_.R.Z(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=_.ij(e.keys[0].k);e=_.ij(e.keys[0].kid)}else d=_.Xi(c),e=null;var f=As(a,"addKey");try{a.j[f](a.h,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};xs=function(a,b){js(a.keyStatuses,b);a.dispatchEvent(new _.L(ze))};
323
- As=function(a,b){return a.w?a.w+b.charAt(0).toUpperCase()+b.slice(1):b};Ds=function(){};
324
- Es=function(a,b,c,d,e){_.lm.call(this,gb);this.l=a;this.j=b;this.h=c;this.a=d;this.o=e;this.g=new _.K(Ed);_.R.empty(this.l)?this.g.warn(_.oc):this.Sa(_.Sd,{licenseUrl:this.l,videoRobustness:[_.Vb,void 0],audioRobustness:[_.Ub,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.Nd.bind(this)}});_.R.empty(this.j)?this.g.warn(_.Gb):this.Sa(_.Qd,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.Nd.bind(this)}});
325
- _.R.empty(this.h)?this.g.warn(_.bb):_.R.empty(this.a)?this.g.warn(_.ab):this.Sa(_.Od,{licenseUrl:this.h,certificateUrl:this.a,modifiers:{licenseRequest:this.ph.bind(this),licenseResponse:this.qh.bind(this),certificateRequest:this.Nd.bind(this),extractContentId:this.Eg.bind(this)}})};Fs=function(){};Gs=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.se)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
326
- Hs=function(a){a=a.target;if(a.webkitPresentationMode===hf){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)};Is=function(){return this.webkitSupportsPresentationMode(hf)?(this.webkitSetPresentationMode(hf),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
327
- Js=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};Ks=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};Ls=function(a,b,c){return new window.TextTrackCue(a,b,c)};
328
- Ms=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};Os=function(a,b,c){if("input"===a)switch(this.type){case "range":a=vd}Ns.call(this,a,b,c)};Qs=function(){this.a=Ps()};Rs=function(a){return Ps()-a.a};Ss=function(a){var b=new Qs;b.a=a.a;return b};Ps=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.Us=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};
329
- Vs=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.h=b;this.f=0};Ws=function(a,b){var c=a.f+b.byteLength;if(c>a.a.byteLength){var d=a.a;a.a=new Uint8Array(Math.max(Math.ceil(a.a.buffer.byteLength*a.h),c));a.a.set(d)}a.a.set(b,a.f);a.f+=b.byteLength};_.Xs=function(a,b,c){this.h=a;this.j=b;this.f=c||this.h.getMedia();this.a=null};_.Zs=function(){this.a=new Blob([Ys],{type:_.vg})};
330
- _.at=function(a,b,c,d){var e,f;return _.E(function(g){if(1==g.a)return _.A(g,2),_.x(g,$s(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.C(g);f.a(_.Q);throw f;})};
331
- $s=function(a,b,c,d){var e,f,g,h;return _.E(function(l){if(1==l.a){if(d){if(e=_.bt[d.toLowerCase()])return l["return"](e);_.J("Could not determine manifest type using MIME type ",d)}if(f=_.ct(a)){if(g=_.dt[f])return l["return"](g);_.J("Could not determine manifest type for extension ",f)}else _.J("Could not find extension for ",a);return d?l.F(2):_.x(l,et(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(h=_.bt[d])return l["return"](h);_.J("Could not determine manifest type using MIME type",d)}throw new _.P(_.Q,4,
332
- 4E3,{url:a});})};et=function(a,b,c){var d,e,f;return _.E(function(g){if(1==g.a)return d=_.uj(a),sj(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():"")})};_.ct=function(a){a=(new _.qi(a)).Ba.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()};ft=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.h=new Qs};
333
- ht=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(gt(a,d),xj(c,d.byteLength,Rs(a.h)),a.h.a=Ps());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 ht(a,b,c)})})};gt=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};
334
- Jj=function(a){var b=a.uris[a.uriIndex],c=new it,d=new Qs,e=Ss(d),f=0,g,h=new _.zj;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=Rs(e));p.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!l&&(p=p.getResponseHeader(wa),wj(a,p),l=!0)};c.onload=function(p){p=p.target;var q=(p.getAllResponseHeaders()||"").trim().split("\r\n"),t={};
335
- q=_.u(q);for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),t[v[0].toLowerCase()]=v.slice(1).join(": ");try{var z=Rs(e);m||xj(a,p.response?p.response.length:0,z);var D=_.vj(t,p.response,p.status,b,p.responseURL,a,z,g);a.rateLimitBps?yj(a.rateLimitBps,Rs(e),a.bytesLoaded).then(function(){h.resolve(D)}):h.resolve(D)}catch(G){h.reject(G)}};c.onerror=function(p){p=p.target;if(0>=p.status)h.reject(new _.P(1,1,1002,{url:b,request:a,status:p.status}));else{var q=p.getAllResponseHeaders(),t={};if(q){q=
336
- _.u(q.trim().split("\r\n"));for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),t[v[0].toLowerCase()]=v.slice(1).join(": ")}p=_.vj(t,p.response,p.status,b,p.responseURL,a,Rs(e),g);h.resolve(p)}};c.ontimeout=function(){h.reject(new _.P(1,1,1003,{url:b,request:a}))};c.onprogress=function(p){var q=Rs(d);d.a=Ps();if(100<q||p.lengthComputable&&p.loaded===p.total)xj(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,
337
- request:a,abort:function(){c.abort();h.reject(new _.P(1,1,7001,{url:b,request:a}));return Promise.resolve()}}};jt=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.j=new Vs(a);this.length=a;this.A=b;this.f=this.a=this.h=0;this.l=null;this.o=-1;this.w=new Qs};
338
- mt=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,Rs(a.w)),a.w.a=Ps());if(f)return f=kt(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){Ws(a.j,e);a.a=a.h;a.f=a.j.f;a.l=new DataView(a.j.a.buffer,0,a.j.f);e=lt(a);for(f=[];e;)f.push(e),e=lt(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],
339
- 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 mt(a,b,c,d)})})};lt=function(a){if(0<=a.o&&a.f<a.o)return null;for(var b=nt(a);null!==b;){if(b.name===_.Le){var c={start:a.h,end:b.end,length:b.end-a.h,data:new DataView(a.j.a.buffer,a.h,b.end-a.h),count:1};a.h=b.end;return c}b=nt(a)}return null};
340
- nt=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=ot(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=ot(a);d=String.fromCharCode(d>>24&255,d>>16&255,d>>8&255,d&255);switch(c){case 0:c=a.f-b;break;case 1:if(a.a+8>=a.f)return a.a=a.f,null;try{var e=a.l.getUint32(a.a,!1);var f=a.l.getUint32(a.a+4,!1)}catch(g){throw new _.P(_.Q,3,3E3);}if(2097151<e)throw new _.P(_.Q,3,3E3);a.a+=8;c=e*Math.pow(2,32)+f}c=b+c;a.o=c;return a.f>=c?(a.a=c,{name:d,start:b,end:c}):null};
341
- ot=function(a){var b=a.l.getUint32(a.a,!1);a.a+=4;return b};kt=function(a){var b=null;a.h!==a.f&&(b={start:a.h,end:a.f,length:a.f-a.h,data:new DataView(a.j.a.buffer,a.h,a.f-a.h),count:-1});return b};qt=function(a){_.Aj.call(this,new _.zj,function(){return Promise.resolve()});this.B=a;this.h=null;this.w=this.O;this.f=-1;this.j=this.l=this.o=null;pt(this)};rt=function(a,b,c){a.o=setTimeout(b,c)};
342
- pt=function(a){a.h=a.B.then(function(e){a.j=e.request;e.request.uriIndex=e.request.currentAttempt%e.request.uris.length;if(0<e.request.currentAttempt){-1===a.f&&(a.f=st(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*st(e.request.fuzzFactor,.5));a.f*=st(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.l=h;rt(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.P(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
343
- return e.plugin(e.request)});var b=0,c=0,d=0;return a.h.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.O}).then(function(e){a.w.resolve(e)})["catch"](function(e){if(e instanceof _.P){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return pt(a);g&&e.a(_.Q);a.w.reject(e)}else a.w.reject(e)})};st=function(a,b){return null===a||void 0===a?b:a};_.ut=function(a){this.a=!1;this.h=a;this.j=tt(this);this.h.jd(this.j);this.f=null};
344
- tt=function(a){return function(b){if(a.a&&(b=_.O.mk(b.headers))){try{var c=new Map,d=b.split(";");for(b=0;b<d.length;b++){var e=vt(d[b]),f=e.key,g=e.value;Object.values(wt).includes(f)&&c.set(f,g)}var h=c}catch(l){xt.error("CmsdManager parseCmsdDynamicHeader_ failed:",l),h=null}a.f=h}}};
345
- vt=function(a){var b=a.split("\x3d"),c=b[0];b=b[1];if(!c)throw new ki("Parsing CMSD, missing parameter or wrong format");if(c&&!b)return{key:c,value:!0};var d=b[0];if('"'===d&&'"'===b[b.length-1])return{key:c,value:b.replaceAll(/(^")|("$)/g,"")};if(/^[-0-9]/.test(d))return{key:c,value:parseInt(b,10)};if(/^[a-zA-Z*]/.test(d))return{key:c,value:b};throw new ki("Parsing CMSD, not recognized value type of "+a);};
346
- Kj=function(a){var b=new yt,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new zt,e={od:!1,Th:!1};b={O:At(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.od||(e.od=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.Th=!0;d.abort()},a);b.O=b.O["finally"](function(){window.clearTimeout(f)})}return b};
347
- At=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,t,v,z,D,G,F,B;return _.E(function(H){switch(H.a){case 1:return e=Jt,l=new Qs,m=Ss(l),_.A(H,2),_.x(H,e(a,c),4);case 4:f=H.f;h=Rs(l);n=f.headers.get(wa);wj(b,n);p=n?parseInt(n,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return v=f.body.getReader(),z=new jt(p,!b.disableMergedFragments),D=function(N,M){if(d.od)return null;M&&M.data&&(xj(b,M.data.byteLength,Rs(l)),l.a=Ps());return b.onFragment&&M?b.rateLimitBps?yj(b.rateLimitBps,Rs(m),b.bytesLoaded).then(function(){return b.onFragment(M)}):
348
- b.onFragment(M):null},_.x(H,mt(z,v,D,b.onProgress),10);q=f.body.getReader();t=new ft(p);return _.x(H,ht(t,q,b),7);case 7:g=H.f;if(!b.rateLimitBps){H.F(6);break}return _.x(H,yj(b.rateLimitBps,Rs(m),g.byteLength),6);case 10:g=H.f;case 6:_.bh(H,3);break;case 2:G=_.C(H);if(d.od)throw new _.P(1,1,7001,{url:a,request:b});if(d.Th)throw new _.P(1,1,1003,{url:a,request:b});_.vh("Error while fetching data:",G);throw new _.P(1,1,1002,{url:a,error:G,request:b,status:-1},G);case 3:F={};B=f.headers;B.forEach(function(N,
349
- M){F[M.trim()]=N});if(d.od)throw new _.P(1,1,7001,{url:a,request:b});return H["return"](_.vj(F,g,f.status,a,f.url,b,Rs(m),h))}})};Fj=function(a){try{var b=a.uris[a.uriIndex],c=_.Rt(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()}}}};
350
- _.Rt=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.vh("Bad data URI, failed to parse scheme"),new _.P(_.Q,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.vh("Bad data URI, failed to extract encoding and MIME type"),new _.P(_.Q,1,1004,{uri:a});var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"===b[b.length-1]&&(d=!0,b.pop());return{data:d?_.ij(a).buffer:_.R.Ua(a).buffer,contentType:c}};
351
- _.Tt=function(a,b){var c=_.Ck(a.split(";")[0],Dk(a));_.St[c]=b};_.Ut=function(a){a=_.Ck(a.split(";")[0],Dk(a));return _.St[a]||null};_.Vt=function(a){a=_.Ck(a.split(";")[0],Dk(a));delete _.St[a]};
352
- _.Wt=function(a){a=a.getConfiguration();a=_.O.Na(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.Yf?a.backgroundColor:null;this.V=typeof a.windowColor===_.Yf?a.windowColor:null;this.P=typeof a.fontColor===_.Yf?a.fontColor:null;this.U=typeof a.fontFamily===_.Yf?a.fontFamily:null;this.I=typeof a.fontSize===_.Yf?a.fontSize:null;this.B=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.H=typeof a.edgeColor===_.Yf?a.edgeColor:"rgba(0, 0, 0, 1)";this.o=null;typeof a.edgeType===
353
- _.Yf&&(this.o=a.edgeType)};_.au=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case Xt:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case Yt:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case Zt:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case $t:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.Ue}};bu=function(a){this.f=a;this.a=null;this.g=new _.K("clpp.text.Mp4TextParser")};
354
- _.du=function(a){_.Wt.call(this,a);this.l=a.getSurface().getMedia();this.f="clpp-video-"+cu++;this.h=document.createElement(_.$f);this.j=this.w=!1;_.Gp(this.l,this.f);document.head.appendChild(this.h);this.vb()};eu=function(){};_.fu=function(){};_.Mg=[];Qg=typeof Object.create==_.se?Object.create:function(a){function b(){}b.prototype=a;return new b};
355
- if(typeof Object.setPrototypeOf==_.se)gu=Object.setPrototypeOf;else{var hu;a:{var iu={ei:!0},ju={};try{ju.__proto__=iu;hu=ju.ei;break a}catch(a){}hu=!1}gu=hu?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
356
- var Rg=gu,Vg=typeof Object.defineProperties==_.se?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},Tg="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;Wg.prototype.toString=function(){return this.a};var Ug=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new Wg("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
357
- Zg.prototype.A=function(a){this.f=a};Zg.prototype["return"]=function(a){this.h={"return":a};this.a=this.l};Zg.prototype.F=function(a){this.a=a};
358
- kh("Promise",function(a){function b(g){this.f=0;this.l=void 0;this.a=[];var h=this.j();try{g(h.resolve,h.reject)}catch(l){h.reject(l)}}function c(){this.a=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.f=function(g){if(null==this.a){this.a=[];var h=this;this.h(function(){h.l()})}this.a.push(g)};var e=Tg.setTimeout;c.prototype.h=function(g){e(g,0)};c.prototype.l=function(){for(;this.a&&this.a.length;){var g=this.a;this.a=[];for(var h=0;h<g.length;++h){var l=
359
- g[h];g[h]=null;try{l()}catch(m){this.j(m)}}}this.a=null};c.prototype.j=function(g){this.h(function(){throw g;})};b.prototype.j=function(){function g(m){return function(n){l||(l=!0,m.call(h,n))}}var h=this,l=!1;return{resolve:g(this.D),reject:g(this.h)}};b.prototype.D=function(g){if(g===this)this.h(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.G(g);else{a:switch(typeof g){case _.Ve:var h=null!=g;break a;case _.se:h=!0;break a;default:h=!1}h?this.B(g):this.o(g)}};
360
- b.prototype.B=function(g){var h=void 0;try{h=g.then}catch(l){this.h(l);return}typeof h==_.se?this.H(h,g):this.o(g)};b.prototype.h=function(g){this.w(2,g)};b.prototype.o=function(g){this.w(1,g)};b.prototype.w=function(g,h){if(0!=this.f)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.f);this.f=g;this.l=h;this.A()};b.prototype.A=function(){if(null!=this.a){for(var g=0;g<this.a.length;++g)f.f(this.a[g]);this.a=null}};var f=new c;b.prototype.G=function(g){var h=this.j();
361
- g.Zd(h.resolve,h.reject)};b.prototype.H=function(g,h){var l=this.j();try{g.call(h,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,h){function l(q,t){return typeof q==_.se?function(v){try{m(q(v))}catch(z){n(z)}}:t}var m,n,p=new b(function(q,t){m=q;n=t});this.Zd(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.Zd=function(g,h){function l(){switch(m.f){case 1:g(m.l);break;case 2:h(m.l);break;default:throw Error("Unexpected state: "+
362
- 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).Zd(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(z){q[v]=z;t--;0==t&&m(q)}}var q=[],t=0;do q.push(void 0),t++,d(l.value).Zd(p(q.length-1),n),l=h.next();while(!l.done)})};return b});var mh=this||self;
363
- mh.a=!0;_.O={bi:20,Na:function(a){var b=_.O.R,c=_.O.eh,d=_.O.oa;return b(a)||c(a)?a:d(a)}};_.I("clpp.utils.obj.cloneItem",_.O.Na);_.O.oa=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];c={};for(var d=0;d<b.length;d++)null!=b[d]&&(c=_.O.hh(c,{merging:b[d]},1));return c.merging||null};_.I("clpp.utils.obj.merge",_.O.oa);_.O.Dd=function(a){for(var b in a)if(void 0!==a[b])return!0;return!1};
364
- _.O.hh=function(a,b,c){var d=_.O.R,e=_.O.eh,f=_.O.hh,g=_.O.rb,h=_.O.Ek,l=_.O.dh,m=_.O.Ak,n=_.O.Uc;c+=1;if(d(a)||!n(a))a={};for(var p in b)n=b[p],e(n)||d(n)||g(n)||m(n)?a[p]=n:h(n)?a[p]=n.subarray(0):n instanceof Array?a[p]=f([],n,c):!d(n)&&l(n)&&c<_.O.bi&&(a[p]=f(a[p],n,c));return a};_.O.eh=function(a){a=typeof a;return a===_.Yf||a===_.k||a===_.id};_.O.Ak=function(a){return a instanceof Element};_.O.R=function(a){return null===a||"undefined"===typeof a};_.O.Uc=function(a){return typeof a===_.Ve};
365
- _.O.rb=function(a){return typeof a===_.se};_.O.$=function(a){return typeof a===_.Yf};_.O.na=function(a){return typeof a===_.k};_.O.$g=function(a){return typeof a===_.id};_.O.dh=function(a){var b=_.O.Uc,c=_.O.R;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.O.Ek=function(a){var b=_.O.Uc,c=_.O.rb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
366
- _.O.ta=function(a,b,c,d){if(a===b||null===a&&null===b||void 0===a&&void 0===b)return!0;if(null===a&&null!==b||null!==a&&null===b||void 0!==a&&void 0===b||void 0===a&&void 0!==b||!_.O.Uc(a)||!_.O.Uc(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var h=e[g];if(_.O.R(d)||0>d.indexOf(h))if(f[h]=!0,a[h]!==b[h])return!1}if(_.O.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.O.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
367
- _.O.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.O.Bk=function(a,b,c){return a>=b&&a<=c};_.O.Yf=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};_.O.Zf=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};_.O.mk=function(a){a=_.u(Object.entries(a));for(var b=a.next();!b.done;b=a.next()){var c=_.u(b.value);b=c.next().value;c=c.next().value;if("cmsd-dynamic"===b.toLowerCase())return c}return null};var qh={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.I("clpp.log.Level",qh);var oh=3,nh={},ku=[];_.I("clpp.log.getLoggers",function(){return _.O.Na(nh)});_.I("clpp.log.addInterceptor",function(a){a&&ku.push(a)});_.I("clpp.log.removeInterceptor",function(a){a&&(a=ku.indexOf(a),0<=a&&ku.splice(a,1))});_.I("clpp.log.getTagLevel",ph);_.I("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=nh[a]});_.I("clpp.log.setTagLevel",function(a,b){a&&(_.O.$(b)&&(b=rh(b)),nh[a]=b)});
368
- _.I("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.O.$(a)&&(a=rh(a));oh=a});_.I("clpp.log.getLogLevel",function(){return oh});_.r=_.K.prototype;
369
- _.r.log=function(a,b){if(window.console){if(1<arguments.length){var c=arguments[0];Array.prototype.shift.call(arguments)}else c=3;var d=ph(this.tag);if(0<=d){if(d<c)return}else if(oh<c)return;this.tag&&Array.prototype.unshift.call(arguments,"["+this.tag+"]");d=new Date;d.toISOString&&(d=d.toISOString().substring(11).replace("Z",""),Array.prototype.unshift.call(arguments,d));4===c?console.log.apply(console,arguments):3===c?console.info.apply(console,arguments):2===c?console.warn.apply(console,arguments):
370
- 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.u(ku);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.r.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.r.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.r.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
371
- _.r.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.r.Gj=function(a){return a?this.tag?new _.K(this.tag+"."+a):new _.K(a):this};_.I("clpp.log.Logger",_.K);_.K.prototype.createChild=_.K.prototype.Gj;_.K.prototype.error=_.K.prototype.error;_.K.prototype.warn=_.K.prototype.warn;_.K.prototype.debug=_.K.prototype.debug;_.K.prototype.info=_.K.prototype.info;_.K.prototype.log=_.K.prototype.log;var sh=new _.K("clpp");_.I("clpp.log.info",_.th);
372
- _.I("clpp.log.debug",_.uh);_.I("clpp.log.warn",_.J);_.I("clpp.log.error",_.vh);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.yh=new _.K("clpp.players");_.xh={};_.r=_.Ah.prototype;_.r.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.r.get=function(a){return(a=this.a[a])?a.slice():[]};_.r.remove=function(a,b){var c=this.a[a];if(!c)return!1;for(var d=!1,e=0;e<c.length;++e)c[e]==b&&(c.splice(e,1),--e,d=!0);return d};_.r.clear=function(){this.a={}};_.r.forEach=function(a){for(var b in this.a)a(b,this.a[b])};Ch.prototype.dc=function(a){try{this.Jc.handleEvent?this.Jc.handleEvent(a):this.Jc.call(this.a,a)}catch(b){_.vh("clpp","Uncaught exception in event handler for event '"+this.f+"'",b,b?b.message:null,b?b.stack:null)}};_.L.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.L.prototype.stopImmediatePropagation=function(){this.f=!0};_.L.prototype.stopPropagation=function(){};_.r=Dh.prototype;
373
- _.r.trigger=function(a){var b=this.a.get(a.type);if(b)for(var c=0;c<b.length&&(a.target=this.f,a.currentTarget=this.f,b[c].dc(a),b[c].cm&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.r.on=function(a,b,c){this.a.push(a,new Ch(a,b,c||this.f));return b};_.r.one=function(a,b,c){this.a.push(a,new Ch(a,b,c||this.f,!0));return b};_.r.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].Jc===b&&(d=this.a.remove(a,c[e])||d);return d};_.r.clear=function(){this.a.clear()};_.Eh.prototype.release=function(){_.Hh(this)};_.Eh.prototype.on=function(a,b,c,d){a=new Ih(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.Eh.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)};_.Eh.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||(Gh(f),this.a.remove(b,f))}};Jh.prototype.release=function(){this.f.release();this.h=[];this.a=null};Jh.prototype.destroy=function(){var a=this;return _.E(function(b){a.release();a.l=null;a.j=null;_.y(b)})};Jh.prototype.getTimelineCues=function(){return this.h};_.di.prototype.ta=function(a){return this.payload===a.payload&&this.startTime===a.startTime&&this.endTime===a.endTime&&this.payloadType===a.payloadType};_.I("clpp.text.Cue",_.di);_.di.positionAlign={LEFT:_.Ee,RIGHT:_.Fe,CENTER:_.td,AUTO:"auto"};_.Yh="text";_.di.payloadType={TEXT:_.Yh,VTT_XML:_.Ag,TTML_XML:_.hg};_.Zh=_.td;_.lu={LEFT:_.Be,RIGHT:_.Mf,CENTER:_.Zh,START:_.Be,END:_.Mf};_.di.textAlign=_.lu;var ci="ltr";_.di.direction={HORIZONTAL_LEFT_TO_RIGHT:ci,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.$h="horizontal-tb";
374
- _.di.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.$h,VERTICAL_LEFT_TO_RIGHT:_.rg,VERTICAL_RIGHT_TO_LEFT:_.sg};_.ai=0;_.di.lineInterpretation={LINE_NUMBER:_.ai,PERCENTAGE:1};_.bi=_.Uf;_.mu={CENTER:_.td,START:_.bi,END:_.ne};_.di.lineAlign=_.mu;_.I("clpp.text.CueRegion",_.gi);_.ei=1;_.gi.units={PX:0,PERCENTAGE:_.ei,LINES:2};var fi="";_.gi.scrollMode={NONE:fi,UP:"up"};_.gi.displayAlign={BEFORE:"flex-end",CENTER:_.td,AFTER:"flex-start"};
375
- _.gi.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Ld,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};hi.prototype.destroy=function(){this.a.release();this.j=!1;this.l=this.a=this.h=this.f=null;return Promise.resolve()};hi.prototype.start=function(a){var b=this;this.j?this.g.warn("Already started. Ignoring request..."):(this.j=!0,this.h=a,this.f=this.h.textTracks,this.a.on(this.f,_.Kc,function(c){return ii(b,c)}),this.a.on(this.f,vd,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.Pf&&(e.mode=_.ue)}}))};
376
- hi.prototype.o=function(a){var b=new _.di(a.startTime,a.endTime,a.text,_.Ag);if(_.O.$(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.rg;break;case "rl":b.writingMode=_.sg}_.O.na(a.size)&&(b.size=a.size);if(_.O.$(a.align))switch(a.align){case _.Be:case _.Uf:b.textAlign=_.Be;break;case _.td:b.textAlign=_.Zh;break;case _.Mf:case _.ne:b.textAlign=_.Mf}_.O.na(a.position)&&(b.position=a.position);if(_.O.$(a.positionAlign))switch(a.positionAlign){case _.Ee:b.positionAlign=_.Ee;break;case _.td:b.positionAlign=
377
- _.td;break;case _.Fe:b.positionAlign=_.Fe}_.O.na(a.line)&&(b.line=a.line);if(_.O.$(a.lineAlign))switch(a.lineAlign){case _.Uf:b.lineAlign=_.bi;break;case _.td:b.lineAlign=_.td;break;case _.ne:b.lineAlign=_.ne}_.O.$g(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.ai:1);return b};_.w(_.P,Error);_.P.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=ji(this.severity,this.category,this.code,this.data))};_.P.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.I("clpp.Error",_.P);_.Q=2;_.P.Severity={RECOVERABLE:1,FATAL:_.Q};_.P.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
311
+ ss=function(a,b,c){c=void 0===c?"":c;var d=0,e=b.Qa.map(function(l,m){var n=b.cueId+"-"+m,p=m===b.Qa.length-1?If:b.cueId+"-"+(m+1);d+=l.DURATION;n={id:n,config:{source:{url:l.URI,type:_.Il}},next:[p],transition:{Fc:p},duration:l.DURATION,th:d,co:b.cueId};return a.f.interstitialAssetConverter?a.f.interstitialAssetConverter(n):n});e.forEach(function(l,m){l.Gc=function(){a.g.info(Pb+l.id,l);a.trigger(new _.L(vs,{detail:{id:l.id,podId:b.cueId,uri:l.config.source.url,duration:l.duration,podOrder:m+1,podCount:b.Qa.length}}))}});
312
+ if(null!=b.playoutLimit){var f=b.playoutLimit;a.g.info("Playout limit for "+b.cueId+" is "+(f+" s"));e=e.filter(function(l){return l.th-l.duration<=f});var g=e[e.length-1],h=Math.abs(g.th-f);1>h?g.transition.Fc=If:(g.transition.Fc=void 0,g.transition.li={position:g.duration-h,itemId:If});g.next=[If]}e[0].Gc=function(){a.g.info("Playing interstitial "+c+" "+b.cueId+" with "+(b.Qa.length+" assets and will resume primary content at ")+(b.resumePosition+" s."),e);a.g.info(Pb+e[0].id,e[0]);a.trigger(new _.L(ws,
313
+ {detail:{id:b.cueId,startTime:b.startTime,endTime:b.endTime,resumePosition:b.resumePosition,itemCount:e.length,playoutLimit:b.playoutLimit}}));a.trigger(new _.L(vs,{detail:{id:e[0].id,podId:b.cueId,uri:b.Qa[0].URI,duration:b.Qa[0].DURATION,podOrder:1,podCount:b.Qa.length}}))};return e};
314
+ ts=function(a,b,c,d,e){b.Gc=function(){a.g.info("Resuming primary content at "+(b.config.startTime+" s."));a.trigger(new _.L(xs,{detail:{id:c.cueId}}));c.state=ys;a.a.removeItems(d.map(function(f){return f.id}));b.next=[];e&&a.trigger(new _.L(zs))};b.config.startTime=c.resumePosition};
315
+ qs=function(a,b){var c,d,e,f,g,h;return _.I(function(l){if(1==l.a){c=a.a.Pb();if(!c)throw Error("No player found");d=c.getNetworkEngine();e=_.Lj(b);return _.y(l,ek(d,e),2)}f=l.f;g=As(f);if(!g)throw new _.Bi("Invalid X-ASSET-LIST list response");h=f;return l["return"](Promise.resolve(h.ASSETS))})};As=function(a){return a&&a.ASSETS&&Array.isArray(a.ASSETS)?a.ASSETS.every(function(b){return typeof b.URI===_.kg&&typeof b.DURATION===_.k}):!1};Bs=function(){};Cs=function(){};Ds=function(){};Es=function(){};
316
+ Wp=function(){};Fs=function(){};_.Gs=function(){};Hs=function(){this.a=null;this.g=new _.K("clpp.drm.eme.StandardEmeManager")};Is=function(){};Js=function(){this.size=0;this.a=void 0;this.g=new _.K("clpp.drm.eme.MediaKeyStatusMap")};Ks=function(a,b){a.size=void 0===b?0:1;a.g.debug("Setting key status to",b);a.a=b};Ls=function(){};Ms=function(){};Ns=function(){this.a=this.f=null};
317
+ Os=function(a,b){this.keySystem=a;if(a.startsWith(_.Qd))for(var c=_.w(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.Pf)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.ef,distinctiveIdentifier:_.ef,initDataTypes:e.initDataTypes,sessionTypes:[pg],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=_.w(e.audioCapabilities),l=h.next();!l.done;l=h.next())l=l.value,l.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&
318
+ (d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.w(e.videoCapabilities),l=e.next();!l.done;l=e.next())h=l.value,h.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,h.contentType.split(";")[0])&&(d.videoCapabilities.push(h),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,_.Gg));d=g?d:null}if(d){this.a=d;return}}c=Error(kc);c.name=Jb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
319
+ Ps=function(a){this.f=null;this.h=new WebKitMediaKeys(a);this.a=new _.Uh;this.j=0;this.g=new _.K(Id);this.g.info("Created Media Keys for "+a)};
320
+ Qs=function(a,b){a.f=b;_.Xh(a.a);if(!b)return Promise.resolve();a.a.on(b,pe,function(c){_.Kh("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);"MediaEncryptedEvent"in window&&c instanceof MediaEncryptedEvent&&(a.g.info("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.a.on(b,Vg,function(c){a.g.debug("Handle webkitNeedKey event");c=_.nj(c.initData);if(_.uj(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
321
+ c=_.S.vc(c.subarray(4),!0);c=_.S.hb(c);var d=new Event(pe);d.initDataType="skd";d.initData=vj(c);a.f.dispatchEvent(d)});mp(b,HTMLMediaElement.HAVE_METADATA,a.a,function(){return b.webkitSetMediaKeys(a.h)});return Promise.resolve()};Rs=function(a,b){_.Yl.call(this);this.a=null;this.o=a;this.f=this.h=null;this.j=new _.Uh;this.sessionId=b;this.expiration=NaN;this.closed=new _.Qj;this.l=!1;this.keyStatuses=new Js;this.g=new _.K(Id)};Ss=function(a,b){Ks(a.keyStatuses,b);a.dispatchEvent(new _.L(Ce))};
322
+ Ts=function(){};Us=function(){this.f=this.a=null;this.h="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.h="webkit")};
323
+ Vs=function(a,b,c,d){this.h=a;this.a=this.keySystem=c;a=!1;c===_.ff&&(this.a=Rg,a=!1);var e=!1;d=_.w(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[],h=[],l=!1;if(f.audioCapabilities)for(var m=_.w(f.audioCapabilities),n=m.next();!n.done;n=m.next())n=n.value,n.contentType&&(l=!0,b.canPlayType(n.contentType.split(";")[0],this.a)&&(g.push(n),e=!0));if(f.videoCapabilities)for(g=_.w(f.videoCapabilities),n=g.next();!n.done;n=g.next())m=n.value,m.contentType&&(l=!0,b.canPlayType(m.contentType,
324
+ this.a)&&(h.push(m),e=!0));l||(e=b.canPlayType(_.Gg,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.Pf||a||(e=!1);if(e){this.f=f;return}}b=kc;if(c===_.ff||c===_.Ud)b="None of the requested configurations were supported.";c=Error(b);c.name=Jb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};Ws=function(a,b){this.h=a;this.o=b;this.a=null;this.f=new _.Uh;this.j=[];this.l=new Map};
325
+ Zs=function(a,b){a.a=b;_.Xh(a.f);b&&(a.f.on(b,a.h+"needkey",function(c){var d=new Event(pe);d.initDataType=_.ud;d.initData=vj(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.h+"keymessage",function(c){var d=Xs(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.L(_.Pe,{messageType:e?Fe:Ee,message:c.message});_.Kh("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.Lh("Session not found",c.sessionId)}),a.f.on(b,a.h+"keyadded",function(c){(c=
326
+ Xs(a,c.sessionId))&&c.ready()}),a.f.on(b,a.h+"keyerror",function(c){var d=Xs(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?Ys(d,_.gf):1===e?Ys(d,"expired"):Ys(d,_.Ae))}}))};
327
+ Xs=function(a,b){var c=a.l.get(b);return c?c:(c=a.j.shift())?(c.sessionId=b,a.l.set(b,c),c):null};$s=function(a,b,c,d){_.Yl.call(this);this.w=a;this.j=b;this.o=!1;this.a=this.f=null;this.h=c;this.l=d;this.sessionId="";this.expiration=NaN;this.closed=new _.Qj;this.keyStatuses=new Js};
328
+ bt=function(a,b,c){if(a.o)return Promise.reject(Error("The session is already initialized."));a.o=!0;try{if(a.l===_.kf)if(c)var d=_.nj(_.S.hb("LOAD_SESSION|"+c));else{var e=_.S.hb("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.nj(b),e.byteLength);d=f}else d=_.nj(b)}catch(h){return Promise.reject(h)}a.f=new _.Qj;var g=at(a,"generateKeyRequest");try{a.j[g](a.h,d)}catch(h){if(h.name!==pb)return a.f=null,Promise.reject(h);(new _.Zk(function(){try{a.j[g](a.h,d)}catch(l){a.f.reject(l),
329
+ a.f=null}})).fa(.01)}return a.f};ct=function(a,b,c){if(a.a)a.a.then(function(){return ct(a,b,c)})["catch"](function(){return ct(a,b,c)});else{a.a=b;if(a.h===Rg){var d=_.S.ea(c);var e=JSON.parse(d);"oct"!==e.keys[0].kty&&(a.a.reject(Error("Response is not a valid JSON Web Key Set.")),a.a=null);d=_.zj(e.keys[0].k);e=_.zj(e.keys[0].kid)}else d=_.nj(c),e=null;var f=at(a,"addKey");try{a.j[f](a.h,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};Ys=function(a,b){Ks(a.keyStatuses,b);a.dispatchEvent(new _.L(Ce))};
330
+ at=function(a,b){return a.w?a.w+b.charAt(0).toUpperCase()+b.slice(1):b};dt=function(){};
331
+ et=function(a,b,c,d,e){_.Em.call(this,jb);this.l=a;this.j=b;this.h=c;this.a=d;this.o=e;this.g=new _.K(Hd);_.S.empty(this.l)?this.g.warn(_.rc):this.fb(_.Ud,{licenseUrl:this.l,videoRobustness:[_.Yb,void 0],audioRobustness:[_.Xb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.je.bind(this)}});_.S.empty(this.j)?this.g.warn(_.Lb):this.fb(_.Sd,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.je.bind(this)}});
332
+ _.S.empty(this.h)?this.g.warn(_.db):_.S.empty(this.a)?this.g.warn(_.cb):this.fb(_.Qd,{licenseUrl:this.h,certificateUrl:this.a,modifiers:{licenseRequest:this.ii.bind(this),licenseResponse:this.ji.bind(this),certificateRequest:this.je.bind(this),extractContentId:this.yh.bind(this)}})};ft=function(){};gt=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.ve)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
333
+ ht=function(a){a=a.target;if(a.webkitPresentationMode===lf){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement===a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)};it=function(){return this.webkitSupportsPresentationMode(lf)?(this.webkitSetPresentationMode(lf),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
334
+ jt=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};kt=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};lt=function(a,b,c){return new window.TextTrackCue(a,b,c)};
335
+ mt=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};ot=function(a,b,c){if("input"===a)switch(this.type){case "range":a=xd}nt.call(this,a,b,c)};qt=function(){this.a=pt()};rt=function(a){return pt()-a.a};st=function(a){var b=new qt;b.a=a.a;return b};pt=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.tt=function(a){var b=[];a=_.w(a);for(var c=a.next();!c.done;c=a.next()){c=_.w(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};
336
+ ut=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.h=b;this.f=0};vt=function(a,b){var c=a.f+b.byteLength;if(c>a.a.byteLength){var d=a.a;a.a=new Uint8Array(Math.max(Math.ceil(a.a.buffer.byteLength*a.h),c));a.a.set(d)}a.a.set(b,a.f);a.f+=b.byteLength};_.wt=function(a,b,c){this.h=a;this.j=b;this.f=c||this.h.getMedia();this.a=null};_.yt=function(){this.a=new Blob([xt],{type:_.Gg})};_.zt=function(a,b,c,d){this.id=a;this.f=b;this.a=c;this.h=d};_.At=function(){this.a=[];this.f=-1;this.h=null};
337
+ _.Ct=function(a,b,c,d){var e,f;return _.I(function(g){if(1==g.a)return _.D(g,2),_.y(g,Bt(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.E(g);f.a(_.Q);throw f;})};
338
+ Bt=function(a,b,c,d){var e,f,g,h;return _.I(function(l){if(1==l.a){if(d){if(e=_.Dt[d.toLowerCase()])return l["return"](e);_.Fh("Could not determine manifest type using MIME type ",d)}if(f=_.Et(a)){if(g=_.Ft[f])return l["return"](g);_.Fh("Could not determine manifest type for extension ",f)}else _.Fh("Could not find extension for ",a);return d?l.F(2):_.y(l,Gt(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(h=_.Dt[d])return l["return"](h);_.Fh("Could not determine manifest type using MIME type",d)}throw new _.P(_.Q,
339
+ 4,4E3,{url:a});})};Gt=function(a,b,c){var d,e,f;return _.I(function(g){if(1==g.a)return d=_.Lj(a),Jj(d,c),d.type=1,d.method="HEAD",_.y(g,b.fetch(d).N,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.Et=function(a){a=(new _.Hi(a)).Ma.split("/").pop().split(".");return 1===a.length?"":a.pop().toLowerCase()};Ht=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.h=new qt};
340
+ Jt=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(It(a,d),Oj(c,d.byteLength,rt(a.h)),a.h.a=pt());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 Jt(a,b,c)})})};It=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};
341
+ ak=function(a){var b=a.uris[a.uriIndex],c=new Kt,d=new qt,e=st(d),f=0,g,h=new _.Qj;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=rt(e));p.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!l&&(p=p.getResponseHeader(xa),Nj(a,p),l=!0)};c.onload=function(p){p=p.target;var q=(p.getAllResponseHeaders()||"").trim().split("\r\n"),t={};
342
+ q=_.w(q);for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),t[v[0].toLowerCase()]=v.slice(1).join(": ");try{var z=rt(e);m||Oj(a,p.response?p.response.length:0,z);var B=_.Mj(t,p.response,p.status,b,p.responseURL,a,z,g);a.rateLimitBps?Pj(a.rateLimitBps,rt(e),a.bytesLoaded).then(function(){h.resolve(B)}):h.resolve(B)}catch(F){h.reject(F)}};c.onerror=function(p){p=p.target;if(0>=p.status)h.reject(new _.P(1,1,1002,{url:b,request:a,status:p.status}));else{var q=p.getAllResponseHeaders(),t={};if(q){q=
343
+ _.w(q.trim().split("\r\n"));for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),t[v[0].toLowerCase()]=v.slice(1).join(": ")}p=_.Mj(t,p.response,p.status,b,p.responseURL,a,rt(e),g);h.resolve(p)}};c.ontimeout=function(){h.reject(new _.P(1,1,1003,{url:b,request:a}))};c.onprogress=function(p){var q=rt(d);d.a=pt();if(100<q||p.lengthComputable&&p.loaded===p.total)Oj(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{N:h,
344
+ request:a,abort:function(){c.abort();h.reject(new _.P(1,1,7001,{url:b,request:a}));return Promise.resolve()}}};Lt=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.j=new ut(a);this.length=a;this.A=b;this.f=this.a=this.h=0;this.l=null;this.o=-1;this.w=new qt};
345
+ Ot=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,rt(a.w)),a.w.a=pt());if(f)return f=Mt(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){vt(a.j,e);a.a=a.h;a.f=a.j.f;a.l=new DataView(a.j.a.buffer,0,a.j.f);e=Nt(a);for(f=[];e;)f.push(e),e=Nt(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],
346
+ 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 Ot(a,b,c,d)})})};Nt=function(a){if(0<=a.o&&a.f<a.o)return null;for(var b=Pt(a);null!==b;){if(b.name===_.Ne){var c={start:a.h,end:b.end,length:b.end-a.h,data:new DataView(a.j.a.buffer,a.h,b.end-a.h),count:1};a.h=b.end;return c}b=Pt(a)}return null};
347
+ Pt=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=Qt(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=Qt(a);d=String.fromCharCode(d>>24&255,d>>16&255,d>>8&255,d&255);switch(c){case 0:c=a.f-b;break;case 1:if(a.a+8>=a.f)return a.a=a.f,null;try{var e=a.l.getUint32(a.a,!1);var f=a.l.getUint32(a.a+4,!1)}catch(g){throw new _.P(_.Q,3,3E3);}if(2097151<e)throw new _.P(_.Q,3,3E3);a.a+=8;c=e*Math.pow(2,32)+f}c=b+c;a.o=c;return a.f>=c?(a.a=c,{name:d,start:b,end:c}):null};
348
+ Qt=function(a){var b=a.l.getUint32(a.a,!1);a.a+=4;return b};Mt=function(a){var b=null;a.h!==a.f&&(b={start:a.h,end:a.f,length:a.f-a.h,data:new DataView(a.j.a.buffer,a.h,a.f-a.h),count:-1});return b};St=function(a){_.Rj.call(this,new _.Qj,function(){return Promise.resolve()});this.C=a;this.h=null;this.w=this.N;this.f=-1;this.j=this.l=this.o=null;Rt(this)};Tt=function(a,b,c){a.o=setTimeout(b,c)};
349
+ Rt=function(a){a.h=a.C.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=Ut(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*Ut(e.request.fuzzFactor,.5));a.f*=Ut(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.l=h;Tt(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.P(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
350
+ return e.plugin(e.request)});var b=0,c=0,d=0;return a.h.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.N}).then(function(e){a.w.resolve(e)})["catch"](function(e){if(e instanceof _.P){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return Rt(a);g&&e.a(_.Q);a.w.reject(e)}else a.w.reject(e)})};Ut=function(a,b){return null===a||void 0===a?b:a};_.Wt=function(a){this.a=!1;this.h=a;this.j=Vt(this);this.h.Bd(this.j);this.f=null};
351
+ Vt=function(a){return function(b){if(a.a&&(b=_.O.ol(b.headers))){try{var c=new Map,d=b.split(";");for(b=0;b<d.length;b++){var e=Xt(d[b]),f=e.key,g=e.value;Object.values(Yt).includes(f)&&c.set(f,g)}var h=c}catch(l){Zt.error("CmsdManager parseCmsdDynamicHeader_ failed:",l),h=null}a.f=h}}};
352
+ Xt=function(a){var b=a.split("\x3d"),c=b[0];b=b[1];if(!c)throw new _.Bi("Parsing CMSD, missing parameter or wrong format");if(c&&!b)return{key:c,value:!0};var d=b[0];if('"'===d&&'"'===b[b.length-1])return{key:c,value:b.replaceAll(/(^")|("$)/g,"")};if(/^[-0-9]/.test(d))return{key:c,value:parseInt(b,10)};if(/^[a-zA-Z*]/.test(d))return{key:c,value:b};throw new _.Bi("Parsing CMSD, not recognized value type of "+a);};
353
+ bk=function(a){var b=new $t,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new au,e={Ed:!1,Mi:!1};b={N:bu(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.Ed||(e.Ed=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.Mi=!0;d.abort()},a);b.N=b.N["finally"](function(){window.clearTimeout(f)})}return b};
354
+ bu=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,t,v,z,B,F,G,A;return _.I(function(H){switch(H.a){case 1:return e=cu,l=new qt,m=st(l),_.D(H,2),_.y(H,e(a,c),4);case 4:f=H.f;h=rt(l);n=f.headers.get(xa);Nj(b,n);p=n?parseInt(n,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return v=f.body.getReader(),z=new Lt(p,!b.disableMergedFragments),B=function(M,N){if(d.Ed)return null;N&&N.data&&(Oj(b,N.data.byteLength,rt(l)),l.a=pt());return b.onFragment&&N?b.rateLimitBps?Pj(b.rateLimitBps,rt(m),b.bytesLoaded).then(function(){return b.onFragment(N)}):
355
+ b.onFragment(N):null},_.y(H,Ot(z,v,B,b.onProgress),10);q=f.body.getReader();t=new Ht(p);return _.y(H,Jt(t,q,b),7);case 7:g=H.f;if(!b.rateLimitBps){H.F(6);break}return _.y(H,Pj(b.rateLimitBps,rt(m),g.byteLength),6);case 10:g=H.f;case 6:_.qh(H,3);break;case 2:F=_.E(H);if(d.Ed)throw new _.P(1,1,7001,{url:a,request:b});if(d.Mi)throw new _.P(1,1,1003,{url:a,request:b});_.Lh("Error while fetching data:",F);throw new _.P(1,1,1002,{url:a,error:F,request:b,status:-1},F);case 3:G={};A=f.headers;A.forEach(function(M,
356
+ N){G[N.trim()]=M});if(d.Ed)throw new _.P(1,1,7001,{url:a,request:b});return H["return"](_.Mj(G,g,f.status,a,f.url,b,rt(m),h))}})};Wj=function(a){try{var b=a.uris[a.uriIndex],c=_.du(b);return{N:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{N:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
357
+ _.du=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Lh("Bad data URI, failed to parse scheme"),new _.P(_.Q,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Lh("Bad data URI, failed to extract encoding and MIME type"),new _.P(_.Q,1,1004,{uri:a});var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"===b[b.length-1]&&(d=!0,b.pop());return{data:d?_.zj(a).buffer:_.S.hb(a).buffer,contentType:c}};
358
+ _.fu=function(a,b){var c=_.Uk(_.Vk(a),_.Wk(a));_.eu[c]=b};_.hu=function(a){a=_.Uk(_.Vk(a),_.Wk(a));return _.eu[a]||null};_.iu=function(a){a=_.Uk(_.Vk(a),_.Wk(a));delete _.eu[a]};
359
+ _.ju=function(a){a=a.getConfiguration();a=_.O.Xa(a.textStyle||a.textstyle||{});this.L=typeof a.backgroundColor===_.kg?a.backgroundColor:null;this.W=typeof a.windowColor===_.kg?a.windowColor:null;this.P=typeof a.fontColor===_.kg?a.fontColor:null;this.T=typeof a.fontFamily===_.kg?a.fontFamily:null;this.I=typeof a.fontSize===_.kg?a.fontSize:null;this.C=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.H=typeof a.edgeColor===_.kg?a.edgeColor:"rgba(0, 0, 0, 1)";this.o=null;typeof a.edgeType===
360
+ _.kg&&(this.o=a.edgeType)};_.ou=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case ku:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case lu:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case mu:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case nu:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.Xe}};pu=function(a){this.f=a;this.a=null;this.g=new _.K("clpp.text.Mp4TextParser")};
361
+ _.ru=function(a){_.ju.call(this,a);this.l=a.getSurface().getMedia();this.f="clpp-video-"+qu++;this.h=document.createElement(_.mg);this.j=this.w=!1;_.Zp(this.l,this.f);document.head.appendChild(this.h);this.Kb()};su=function(){};_.tu=function(){};_.$g=[];dh=typeof Object.create==_.ve?Object.create:function(a){function b(){}b.prototype=a;return new b};
362
+ if(typeof Object.setPrototypeOf==_.ve)uu=Object.setPrototypeOf;else{var vu;a:{var wu={ej:!0},xu={};try{xu.__proto__=wu;vu=xu.ej;break a}catch(a){}vu=!1}uu=vu?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
363
+ var eh=uu,ih=typeof Object.defineProperties==_.ve?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},gh="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;jh.prototype.toString=function(){return this.a};var hh=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new jh("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
364
+ mh.prototype.A=function(a){this.f=a};mh.prototype["return"]=function(a){this.h={"return":a};this.a=this.j};mh.prototype.F=function(a){this.a=a};
365
+ zh("Promise",function(a){function b(g){this.f=0;this.l=void 0;this.a=[];var h=this.j();try{g(h.resolve,h.reject)}catch(l){h.reject(l)}}function c(){this.a=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.f=function(g){if(null==this.a){this.a=[];var h=this;this.h(function(){h.l()})}this.a.push(g)};var e=gh.setTimeout;c.prototype.h=function(g){e(g,0)};c.prototype.l=function(){for(;this.a&&this.a.length;){var g=this.a;this.a=[];for(var h=0;h<g.length;++h){var l=
366
+ g[h];g[h]=null;try{l()}catch(m){this.j(m)}}}this.a=null};c.prototype.j=function(g){this.h(function(){throw g;})};b.prototype.j=function(){function g(m){return function(n){l||(l=!0,m.call(h,n))}}var h=this,l=!1;return{resolve:g(this.D),reject:g(this.h)}};b.prototype.D=function(g){if(g===this)this.h(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.G(g);else{a:switch(typeof g){case _.Ye:var h=null!=g;break a;case _.ve:h=!0;break a;default:h=!1}h?this.C(g):this.o(g)}};
367
+ b.prototype.C=function(g){var h=void 0;try{h=g.then}catch(l){this.h(l);return}typeof h==_.ve?this.H(h,g):this.o(g)};b.prototype.h=function(g){this.w(2,g)};b.prototype.o=function(g){this.w(1,g)};b.prototype.w=function(g,h){if(0!=this.f)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.f);this.f=g;this.l=h;this.A()};b.prototype.A=function(){if(null!=this.a){for(var g=0;g<this.a.length;++g)f.f(this.a[g]);this.a=null}};var f=new c;b.prototype.G=function(g){var h=this.j();
368
+ g.Be(h.resolve,h.reject)};b.prototype.H=function(g,h){var l=this.j();try{g.call(h,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,h){function l(q,t){return typeof q==_.ve?function(v){try{m(q(v))}catch(z){n(z)}}:t}var m,n,p=new b(function(q,t){m=q;n=t});this.Be(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.Be=function(g,h){function l(){switch(m.f){case 1:g(m.l);break;case 2:h(m.l);break;default:throw Error("Unexpected state: "+
369
+ m.f);}}var m=this;null==this.a?f.f(l):this.a.push(l)};b.resolve=d;b.reject=function(g){return new b(function(h,l){l(g)})};b.race=function(g){return new b(function(h,l){for(var m=_.w(g),n=m.next();!n.done;n=m.next())d(n.value).Be(h,l)})};b.all=function(g){var h=_.w(g),l=h.next();return l.done?d([]):new b(function(m,n){function p(v){return function(z){q[v]=z;t--;0==t&&m(q)}}var q=[],t=0;do q.push(void 0),t++,d(l.value).Be(p(q.length-1),n),l=h.next();while(!l.done)})};return b});var Bh=this||self;
370
+ Bh.a=!0;_.O={bj:20,Xa:function(a){var b=_.O.S,c=_.O.Yh,d=_.O.ra;return b(a)||c(a)?a:d(a)}};_.J("clpp.utils.obj.cloneItem",_.O.Xa);_.O.ra=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];c={};for(var d=0;d<b.length;d++)null!=b[d]&&(c=_.O.ai(c,{merging:b[d]},1));return c.merging||null};_.J("clpp.utils.obj.merge",_.O.ra);_.O.Vd=function(a){for(var b in a)if(void 0!==a[b])return!0;return!1};
371
+ _.O.ai=function(a,b,c){var d=_.O.S,e=_.O.Yh,f=_.O.ai,g=_.O.Hb,h=_.O.Il,l=_.O.Xh,m=_.O.El,n=_.O.nd;c+=1;if(d(a)||!n(a))a={};for(var p in b)n=b[p],e(n)||d(n)||g(n)||m(n)?a[p]=n:h(n)?a[p]=n.subarray(0):n instanceof Array?a[p]=f([],n,c):!d(n)&&l(n)&&c<_.O.bj&&(a[p]=f(a[p],n,c));return a};_.O.Yh=function(a){a=typeof a;return a===_.kg||a===_.k||a===_.ld};_.O.El=function(a){return a instanceof Element};_.O.S=function(a){return null===a||"undefined"===typeof a};_.O.nd=function(a){return typeof a===_.Ye};
372
+ _.O.Hb=function(a){return typeof a===_.ve};_.O.ga=function(a){return typeof a===_.kg};_.O.ya=function(a){return typeof a===_.k};_.O.Th=function(a){return typeof a===_.ld};_.O.Xh=function(a){var b=_.O.nd,c=_.O.S;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.O.Il=function(a){var b=_.O.nd,c=_.O.Hb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
373
+ _.O.oa=function(a,b,c,d){if(a===b||null===a&&null===b||void 0===a&&void 0===b)return!0;if(null===a&&null!==b||null!==a&&null===b||void 0!==a&&void 0===b||void 0===a&&void 0!==b||!_.O.nd(a)||!_.O.nd(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var h=e[g];if(_.O.S(d)||0>d.indexOf(h))if(f[h]=!0,a[h]!==b[h])return!1}if(_.O.S(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.O.S(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
374
+ _.O.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.O.Fl=function(a,b,c){return a>=b&&a<=c};_.O.Ig=function(a){for(var b=new Map,c=_.w(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.O.Jg=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};_.O.ol=function(a){a=_.w(Object.entries(a));for(var b=a.next();!b.done;b=a.next()){var c=_.w(b.value);b=c.next().value;c=c.next().value;if("cmsd-dynamic"===b.toLowerCase())return c}return null};var Gh={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.J("clpp.log.Level",Gh);var Dh=3,Ch={},yu=[];_.J("clpp.log.getLoggers",function(){return _.O.Xa(Ch)});_.J("clpp.log.addInterceptor",function(a){a&&yu.push(a)});_.J("clpp.log.removeInterceptor",function(a){a&&(a=yu.indexOf(a),0<=a&&yu.splice(a,1))});_.J("clpp.log.getTagLevel",Eh);_.J("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Ch[a]});_.J("clpp.log.setTagLevel",function(a,b){a&&(_.O.ga(b)&&(b=Hh(b)),Ch[a]=b)});
375
+ _.J("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.O.ga(a)&&(a=Hh(a));Dh=a});_.J("clpp.log.getLogLevel",function(){return Dh});_.u=_.K.prototype;
376
+ _.u.log=function(a,b){if(window.console){if(1<arguments.length){var c=arguments[0];Array.prototype.shift.call(arguments)}else c=3;var d=Eh(this.tag);if(0<=d){if(d<c)return}else if(Dh<c)return;this.tag&&Array.prototype.unshift.call(arguments,"["+this.tag+"]");d=new Date;d.toISOString&&(d=d.toISOString().substring(11).replace("Z",""),Array.prototype.unshift.call(arguments,d));4===c?console.log.apply(console,arguments):3===c?console.info.apply(console,arguments):2===c?console.warn.apply(console,arguments):
377
+ 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.w(yu);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.u.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.u.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.u.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
378
+ _.u.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.u.Gk=function(a){return a?this.tag?new _.K(this.tag+"."+a):new _.K(a):this};_.J("clpp.log.Logger",_.K);_.K.prototype.createChild=_.K.prototype.Gk;_.K.prototype.error=_.K.prototype.error;_.K.prototype.warn=_.K.prototype.warn;_.K.prototype.debug=_.K.prototype.debug;_.K.prototype.info=_.K.prototype.info;_.K.prototype.log=_.K.prototype.log;var Ih=new _.K("clpp");_.J("clpp.log.info",_.Jh);
379
+ _.J("clpp.log.debug",_.Kh);_.J("clpp.log.warn",_.Fh);_.J("clpp.log.error",_.Lh);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.Oh=new _.K("clpp.players");_.Nh={};_.Rh.prototype.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.Rh.prototype.get=function(a){return(a=this.a[a])?a.slice():[]};_.Rh.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};_.Rh.prototype.clear=function(){this.a={}};Sh.prototype.nc=function(a){try{this.bd.handleEvent?this.bd.handleEvent(a):this.bd.call(this.a,a)}catch(b){_.Lh("clpp","Uncaught exception in event handler for event '"+this.f+"'",b,b?b.message:null,b?b.stack:null)}};_.L.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.L.prototype.stopImmediatePropagation=function(){this.f=!0};_.L.prototype.stopPropagation=function(){};_.u=Th.prototype;
380
+ _.u.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].nc(a),b[c].an&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.u.on=function(a,b,c){this.a.push(a,new Sh(a,b,c||this.f));return b};_.u.one=function(a,b,c){this.a.push(a,new Sh(a,b,c||this.f,!0));return b};_.u.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].bd===b&&(d=this.a.remove(a,c[e])||d);return d};_.u.clear=function(){this.a.clear()};_.Uh.prototype.release=function(){_.Xh(this)};_.Uh.prototype.on=function(a,b,c,d){a=new Yh(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.Uh.prototype.one=function(a,b,c){function d(f){e.off(a,b,d);return c(f)}var e=this;this.on(a,b,d)};_.Uh.prototype.off=function(a,b,c){for(var d=this.a.get(b)||[],e=0;e<d.length;++e){var f=d[e];f.target!==a||c!==f.a&&c||(Wh(f),this.a.remove(b,f))}};Zh.prototype.release=function(){this.f.release();this.h=[];this.a=null};Zh.prototype.destroy=function(){var a=this;return _.I(function(b){a.release();a.l=null;a.j=null;_.C(b)})};Zh.prototype.getTimelineCues=function(){return this.h};_.ui.prototype.oa=function(a){return this.payload===a.payload&&this.startTime===a.startTime&&this.endTime===a.endTime&&this.payloadType===a.payloadType};_.J("clpp.text.Cue",_.ui);_.ui.positionAlign={LEFT:_.Ge,RIGHT:_.He,CENTER:_.vd,AUTO:"auto"};_.oi="text";_.ui.payloadType={TEXT:_.oi,VTT_XML:_.Ng,TTML_XML:_.ug};_.pi=_.vd;_.zu={LEFT:_.De,RIGHT:_.Uf,CENTER:_.pi,START:_.De,END:_.Uf};_.ui.textAlign=_.zu;var ti="ltr";_.ui.direction={HORIZONTAL_LEFT_TO_RIGHT:ti,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.qi="horizontal-tb";
381
+ _.ui.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.qi,VERTICAL_LEFT_TO_RIGHT:_.Dg,VERTICAL_RIGHT_TO_LEFT:_.Eg};_.ri=0;_.ui.lineInterpretation={LINE_NUMBER:_.ri,PERCENTAGE:1};_.si=_.gg;_.Au={CENTER:_.vd,START:_.si,END:_.qe};_.ui.lineAlign=_.Au;_.J("clpp.text.CueRegion",_.xi);_.vi=1;_.xi.units={PX:0,PERCENTAGE:_.vi,LINES:2};var wi="";_.xi.scrollMode={NONE:wi,UP:"up"};_.xi.displayAlign={BEFORE:"flex-end",CENTER:_.vd,AFTER:"flex-start"};
382
+ _.xi.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Od,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};yi.prototype.destroy=function(){this.a.release();this.j=!1;this.l=this.a=this.h=this.f=null;return Promise.resolve()};yi.prototype.start=function(a){var b=this;this.j?this.g.warn("Already started. Ignoring request..."):(this.j=!0,this.h=a,this.f=this.h.textTracks,this.a.on(this.f,_.Oc,function(c){return zi(b,c)}),this.a.on(this.f,xd,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.ag&&(e.mode=_.xe)}}))};
383
+ yi.prototype.o=function(a){var b=new _.ui(a.startTime,a.endTime,a.text,_.Ng);if(_.O.ga(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Dg;break;case "rl":b.writingMode=_.Eg}_.O.ya(a.size)&&(b.size=a.size);if(_.O.ga(a.align))switch(a.align){case _.De:case _.gg:b.textAlign=_.De;break;case _.vd:b.textAlign=_.pi;break;case _.Uf:case _.qe:b.textAlign=_.Uf}_.O.ya(a.position)&&(b.position=a.position);if(_.O.ga(a.positionAlign))switch(a.positionAlign){case _.Ge:b.positionAlign=_.Ge;break;case _.vd:b.positionAlign=
384
+ _.vd;break;case _.He:b.positionAlign=_.He}_.O.ya(a.line)&&(b.line=a.line);if(_.O.ga(a.lineAlign))switch(a.lineAlign){case _.gg:b.lineAlign=_.si;break;case _.vd:b.lineAlign=_.vd;break;case _.qe:b.lineAlign=_.qe}_.O.Th(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.ri:1);return b};_.x(_.P,Error);_.P.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=Ai(this.severity,this.category,this.code,this.data))};_.P.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.J("clpp.Error",_.P);_.Q=2;_.P.Severity={RECOVERABLE:1,FATAL:_.Q};_.P.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
378
385
  _.P.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,UNKNOWN_DATA_URI_ENCODING:1005,REQUEST_MODIFIER_ERROR:1006,RESPONSE_MODIFIER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,FETCH_OR_APPEND_ERROR:2010,INVALID_MP4:2011,
379
386
  TEXT_PARSER_MISSING:2012,THUMBNAILS_FAILED_TO_LOAD:2013,THUMBNAIL_ERROR:2014,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,
380
387
  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,
381
388
  DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,UNPLAYABLE_PERIOD:4011,RESTRICTIONS_CANNOT_BE_MET:4012,NO_PERIODS:4014,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_COULD_NOT_GUESS_MIME_TYPE:4021,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,
382
389
  DASH_XLINK_DEPTH_LIMIT:4028,HLS_COULD_NOT_PARSE_SEGMENT_START_TIME:4030,CONTENT_UNSUPPORTED_BY_BROWSER:4032,SMOOTH_INVALID_MANIFEST_XML:4033,SMOOTH_EMPTY_PRESENTATION:4034,SMOOTH_MEDIA_PROCESSING_ERROR:4035,SMOOTH_INVALID_VERSION:4036,SMOOTH_INVALID_FRAGMENT_METADATA:4037,SMOOTH_REQUIRED_ATTRIBUTE_MISSING:4038,SMOOTH_TRUNCATED_MEDIA_FILE:4039,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4040,HLS_MSE_ENCRYPTED_TS_NOT_SUPPORTED:4041,HLS_PLAYLIST_NOT_UTF8:4042,HLS_PLAYLIST_EMPTY:4043,HLS_INVALID_VALUE:4044,
383
390
  HLS_DISCONTINUITY_NOT_SUPPORTED:4045,HLS_UNSUPPORTED_FEATURE:4046,HLS_INCOMPATIBLE_PLAYLIST_UPDATE:4047,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,
384
- EXPIRED:6014,REQUESTED_DRM_ENVIRONMENT_UNAVAILABLE:6015,INIT_DATA_TRANSFORM_ERROR:6016,CERTIFICATE_REQUEST_FAILED:6100,NO_CONTENT_ID:6101,SERVER_CERTIFICATE_REQUIRED:6102,EXTRACT_CONTENT_ID_MODIFIER_ERROR:6103,FAILED_TO_PERSIST_SESSION:6200,FAILED_TO_REMOVE_SESSION:6201,INVALID_SESSION_STORAGE_IMPLEMENTATION:6202,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,CANNOT_LOAD_SOURCE:7003,MEDIA_ELEMENT_NOT_FOUND:7004,INVALID_MEDIA_ELEMENT:7005,INVALID_CONTAINER_ELEMENT:7006,INVALID_CONFIGURATION:7100,
385
- INVALID_LICENSE:7101,NO_ELEMENT:7102,USER_ID_NOT_PROVIDED:7103,KEY_LOAD_ERROR:7104,TIZEN_INTERNAL_ERROR:7200,CAF_INTERNAL_ERROR:7300,INTERNAL_CAST_ERROR:8E3,CAST_API_NOT_READY:8001,NO_RECEIVERS_AVAILABLE:8002,ALREADY_CASTING:8003,NO_CAST_SESSION:8004,CONVIVA_SDK_NOT_LOADED:9E3,CONVIVA_INVALID_CONFIGURATION:9001,CONVIVA_RUNTIME_ERROR:9002,GL_CONTEXT_ERROR:9003,GL_SHADER_ERROR:9004,YOUBORA_SDK_MISSING:9100,YOUBORA_INVALID_CONFIGURATION:9101,YOUBORA_SDK_VERSION_NOT_SUPPORTED:9102,VIMOND_INVALID_CONFIGURATION:9200,
386
- VIMOND_SESSION_ERROR:9201,MUXDATA_INVALID_CONFIGURATION:9300,MUX_SDK_MISSING:9301,MUXDATA_INIT_ERROR:9302,IMA_SDK_MISSING:1E4,IMA_INVALID_CONFIGURATION:10001,IMA_UNSUPPORTED_PLATFORM:10002,AD_ERROR:10003,SIMID_CONTAINER_MISSING:10100,BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3};_.w(ki,Error);var vi=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.r=_.qi.prototype;_.r.gb="";_.r.xc="";_.r.Oa="";_.r.Zc=null;_.r.Ba="";_.r.jc="";_.r.toString=function(){var a=[],b=this.gb;b&&a.push(yi(b,nu,!0),":");if(b=this.Oa){a.push("//");var c=this.xc;c&&a.push(yi(c,nu,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Zc;null!=b&&a.push(":",String(b))}if(b=this.Ba)this.Oa&&"/"!=b.charAt(0)&&a.push("/"),a.push(yi(b,"/"==b.charAt(0)?ou:pu,!0));(b=this.a.toString())&&a.push("?",b);(b=this.jc)&&a.push("#",yi(b,qu));return a.join("")};
387
- _.r.resolve=function(a){var b=new _.qi(this);"data"===b.gb&&(b=new _.qi);var c=!!a.gb;c?ri(b,a.gb):c=!!a.xc;c?b.xc=a.xc:c=!!a.Oa;c?b.Oa=a.Oa:c=null!=a.Zc;var d=a.Ba;if(c)si(b,a.Zc);else if(c=!!a.Ba){if("/"!=d.charAt(0))if(this.Oa&&!this.Ba)d="/"+d;else{var e=b.Ba.lastIndexOf("/");-1!=e&&(d=b.Ba.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):
388
- ".."==h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.Ba=d:c=""!==a.a.toString();c?_.ti(b,ui(a.a)):c=!!a.jc;c&&(b.jc=a.jc);return b};var nu=/[#\/\?@]/g,pu=/[#\?:]/g,ou=/[#\?]/g,zi=/[#\?@]/g,qu=/#/g;_.xi.prototype.a=null;_.xi.prototype.h=null;
389
- _.xi.prototype.add=function(a,b){if(!this.a&&(this.a={},this.h=0,this.f))for(var c=this.f.split("\x26"),d=0;d<c.length;d++){var e=c[d].indexOf("\x3d"),f=null;if(0<=e){var g=c[d].substring(0,e);f=c[d].substring(e+1)}else g=c[d];g=decodeURIComponent(g.replace(/\+/g," "));f=f||"";this.add(g,decodeURIComponent(f.replace(/\+/g," ")))}this.f=null;(c=this.a.hasOwnProperty(a)&&this.a[a])||(this.a[a]=c=[]);c.push(b);null!==this.h&&this.h++;return this};
390
- _.xi.prototype.toString=function(){if(this.f)return this.f;if(!this.a)return"";var a=[],b;for(b in this.a)for(var c=encodeURIComponent(b),d=this.a[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="\x3d"+encodeURIComponent(d[e]));a.push(f)}return this.f=a.join("\x26")};var Ci;_.Di="text";_.tp={VIDEO:_.tg,AUDIO:_.$c,TEXT:_.Di,Em:_.Rc,IMAGE:_.we,di:_.ag};_.ru=1/15;Ci={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4/,/^dts[cex]$/,/^iamf/,/^mhm[12]/],video:[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/,/^dva/,/^dav/]};Ci[_.Di]=[/^vtt$/,/^wvtt/,/^stpp/];var Fi={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.Ii={text:{mp4:Uc,m4s:Uc,m4i:Uc,cmft:Uc,vtt:_.dg,ttml:_.Xc},video:{mp4:_.vg,m4s:_.vg,m4i:_.vg,m4v:_.vg,cmfv:_.vg,ts:_.ug},audio:{mp4:_.dd,m4s:_.dd,m4i:_.dd,m4a:_.dd,cmfa:_.dd,ts:_.ug,aac:_.ad,ec3:_.cd,ac3:_.bd},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.Ki.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};_.Ki.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name==a});return b.length?b[0]:null};_.Oi.prototype.getPosition=function(){return this.position};_.Oi.prototype.f=Ng(0);_.w(_.Pi,_.Oi);var Si=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",
391
- "cs"],["dan","da"],["deu","de"],[_.Zd,"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",
391
+ EXPIRED:6014,REQUESTED_DRM_ENVIRONMENT_UNAVAILABLE:6015,INIT_DATA_TRANSFORM_ERROR:6016,CERTIFICATE_REQUEST_FAILED:6100,NO_CONTENT_ID:6101,SERVER_CERTIFICATE_REQUIRED:6102,EXTRACT_CONTENT_ID_MODIFIER_ERROR:6103,FAILED_TO_PERSIST_SESSION:6200,FAILED_TO_REMOVE_SESSION:6201,INVALID_SESSION_STORAGE_IMPLEMENTATION:6202,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,CANNOT_LOAD_SOURCE:7003,MEDIA_ELEMENT_NOT_FOUND:7004,INVALID_MEDIA_ELEMENT:7005,INVALID_CONTAINER_ELEMENT:7006,INVALID_ARGUMENT:7007,
392
+ WRONG_ORDER_OF_OPERATIONS:7008,NOT_SUPPORTED:7009,INVALID_CONFIGURATION:7100,INVALID_LICENSE:7101,NO_ELEMENT:7102,USER_ID_NOT_PROVIDED:7103,KEY_LOAD_ERROR:7104,TIZEN_INTERNAL_ERROR:7200,CAF_INTERNAL_ERROR:7300,INTERNAL_CAST_ERROR:8E3,CAST_API_NOT_READY:8001,NO_RECEIVERS_AVAILABLE:8002,ALREADY_CASTING:8003,NO_CAST_SESSION:8004,CONVIVA_SDK_NOT_LOADED:9E3,CONVIVA_INVALID_CONFIGURATION:9001,CONVIVA_RUNTIME_ERROR:9002,GL_CONTEXT_ERROR:9003,GL_SHADER_ERROR:9004,YOUBORA_SDK_MISSING:9100,YOUBORA_INVALID_CONFIGURATION:9101,
393
+ YOUBORA_SDK_VERSION_NOT_SUPPORTED:9102,VIMOND_INVALID_CONFIGURATION:9200,VIMOND_SESSION_ERROR:9201,MUXDATA_INVALID_CONFIGURATION:9300,MUX_SDK_MISSING:9301,MUXDATA_INIT_ERROR:9302,IMA_SDK_MISSING:1E4,IMA_INVALID_CONFIGURATION:10001,IMA_UNSUPPORTED_PLATFORM:10002,AD_ERROR:10003,SIMID_CONTAINER_MISSING:10100,BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3};_.x(_.Bi,Error);var Mi=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.u=_.Hi.prototype;_.u.ub="";_.u.Mc="";_.u.Ya="";_.u.ud=null;_.u.Ma="";_.u.uc="";_.u.toString=function(){var a=[],b=this.ub;b&&a.push(Pi(b,Bu,!0),":");if(b=this.Ya){a.push("//");var c=this.Mc;c&&a.push(Pi(c,Bu,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.ud;null!=b&&a.push(":",String(b))}if(b=this.Ma)this.Ya&&"/"!=b.charAt(0)&&a.push("/"),a.push(Pi(b,"/"==b.charAt(0)?Cu:Du,!0));(b=this.a.toString())&&a.push("?",b);(b=this.uc)&&a.push("#",Pi(b,Eu));return a.join("")};
394
+ _.u.resolve=function(a){var b=new _.Hi(this);"data"===b.ub&&(b=new _.Hi);var c=!!a.ub;c?Ii(b,a.ub):c=!!a.Mc;c?b.Mc=a.Mc:c=!!a.Ya;c?b.Ya=a.Ya:c=null!=a.ud;var d=a.Ma;if(c)Ji(b,a.ud);else if(c=!!a.Ma){if("/"!=d.charAt(0))if(this.Ya&&!this.Ma)d="/"+d;else{var e=b.Ma.lastIndexOf("/");-1!=e&&(d=b.Ma.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(""):
395
+ ".."==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.Ma=d:c=""!==a.a.toString();c?_.Ki(b,Li(a.a)):c=!!a.uc;c&&(b.uc=a.uc);return b};var Bu=/[#\/\?@]/g,Du=/[#\?:]/g,Cu=/[#\?]/g,Qi=/[#\?@]/g,Eu=/#/g;_.Oi.prototype.a=null;_.Oi.prototype.h=null;
396
+ _.Oi.prototype.add=function(a,b){if(!this.a&&(this.a={},this.h=0,this.f))for(var c=this.f.split("\x26"),d=0;d<c.length;d++){var e=c[d].indexOf("\x3d"),f=null;if(0<=e){var g=c[d].substring(0,e);f=c[d].substring(e+1)}else g=c[d];g=decodeURIComponent(g.replace(/\+/g," "));f=f||"";this.add(g,decodeURIComponent(f.replace(/\+/g," ")))}this.f=null;(c=this.a.hasOwnProperty(a)&&this.a[a])||(this.a[a]=c=[]);c.push(b);null!==this.h&&this.h++;return this};
397
+ _.Oi.prototype.toString=function(){if(this.f)return this.f;if(!this.a)return"";var a=[],b;for(b in this.a)for(var c=encodeURIComponent(b),d=this.a[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="\x3d"+encodeURIComponent(d[e]));a.push(f)}return this.f=a.join("\x26")};var Ti;_.R="text";_.Mp={VIDEO:_.r,AUDIO:_.bd,TEXT:_.R,Cn:_.Tc,IMAGE:_.ze,dj:_.ng};_.Fu=1/15;Ti={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4/,/^dts[cex]$/,/^iamf/,/^mhm[12]/],video:[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/,/^dva/,/^dav/]};Ti[_.R]=[/^vtt$/,/^wvtt/,/^stpp/];var Vi={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av0?1/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.Yi={text:{mp4:Wc,m4s:Wc,m4i:Wc,cmft:Wc,vtt:_.qg,ttml:_.Zc},video:{mp4:_.Gg,m4s:_.Gg,m4i:_.Gg,m4v:_.Gg,cmfv:_.Gg,ts:_.Fg},audio:{mp4:_.gd,m4s:_.gd,m4i:_.gd,m4a:_.gd,cmfa:_.gd,ts:_.Fg,aac:_.cd,ec3:_.fd,ac3:_.dd},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.$i.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};_.$i.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name===a});return b.length?b[0]:null};_.dj.prototype.getPosition=function(){return this.position};_.dj.prototype.zc=function(){return this.la?this.la-this.Aa+1:null};_.dj.prototype.f=ah(0);_.x(_.ej,_.dj);var hj=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",
398
+ "cs"],["dan","da"],["deu","de"],[_.ae,"dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice",
392
399
  "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",
393
400
  "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",
394
401
  "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",
395
- "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var Yi=function su(a){var c;return _.jh(su,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.x(d,c,3):d.F(0);c++;return d.F(2)})};_.I("clpp.utils.BufferUtils",Vi);Vi.toArrayBuffer=ej;Vi.toDataView=_.dj;Vi.toInt32Array=_.cj;Vi.toUint32Array=bj;Vi.toUint16Array=aj;Vi.toUint8Array=_.Xi;Vi.equal=Zi;_.R={};_.R.Vc=new _.K("clpp.utils.strings");_.R.ai=16E3;_.R.fromCharCode=function(a){for(var b=_.R.ai,c="",d=0;d<a.length;d+=b)c+=String.fromCharCode.apply(null,a.subarray(d,d+b));return c};_.R.Z=function(a){if(!a)return"";a=_.Xi(a);239===a[0]&&187===a[1]&&191===a[2]&&(a=a.subarray(3));if("TextDecoder"in window){a=(new TextDecoder).decode(a);if(a.includes("\ufffd"))throw Error(Za);return a}a=escape(_.R.fromCharCode(a));try{return decodeURIComponent(a)}catch(b){throw Error(Za);}};
396
- _.I("clpp.utils.strings.fromUtf8",_.R.Z);
397
- _.R.kc=function(a,b,c){if(!a)return"";var d=_.R.Vc;if(!c&&0!==a.byteLength%2)throw d.error("Data has an incorrect length, must be even."),Error("Data does not seem to be UTF-16 encoded!");c=_.Xi(a);if(b&&255===c[0]&&254===c[1]||254===c[0]&&255===c[1])a=c.subarray(2);a instanceof ArrayBuffer?d=a:(c=new Uint8Array(a.byteLength),c.set(_.Xi(a)),d=c.buffer);a=Math.floor(a.byteLength/2);c=new Uint16Array(a);d=new DataView(d);for(var e=0;e<a;e++)c[e]=d.getUint16(2*e,b);return _.R.fromCharCode(c)};
398
- _.R.zd=function(a,b){if(_.O.$(a))return a;var c="",d=!!b,e=_.Xi(a);239==e[0]&&187==e[1]&&191==e[2]?c=_.R.Z(e):254==e[0]&&255==e[1]?c=_.R.kc(e.subarray(2),!1):255==e[0]&&254==e[1]&&(c=_.R.kc(e.subarray(2),!0));var f=function(g,h){return g.byteLength<=h||32<=g[h]&&126>=g[h]}.bind(null,e);_.R.Vc.debug("Unable to find byte-order-mark, making an educated guess.");0==e[0]&&0==e[2]?c=_.R.kc(a,!1):0==e[1]&&0==e[3]?c=_.R.kc(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.R.Z(a));if(c)return d&&(c=escape(c)),c;throw Error("Unable to detect text encoding");
399
- };_.I("clpp.utils.strings.fromBytesAutoDetect",_.R.zd);_.R.Ua=function(a){if("TextEncoder"in window)return(new TextEncoder).encode(a);a=encodeURIComponent(a);a=unescape(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b};_.I("clpp.utils.strings.toUtf8",_.R.Ua);_.R.Be=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};_.I("clpp.utils.strings.toUtf16",_.R.Be);
400
- _.R.cd=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=bj(e):2===c?f=aj(e):f=_.Xi(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};_.I("clpp.utils.strings.toByteArray",_.R.cd);_.R.startsWith=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.I("clpp.utils.strings.startsWith",_.R.startsWith);_.R.endsWith=function(a,b){if(String.prototype.endsWith)return a.endsWith(b);var c=a.length-b.length,d=a.lastIndexOf(b,c);return-1!==d&&d===c};
401
- _.I("clpp.utils.strings.endsWith",_.R.endsWith);_.R.te=function(a){return!!(a&&0<a.length)};_.R.empty=function(a){return!a||0===a.length};_.R.Ym=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};_.R.an=function(a){return a.replace(/-(\w)/g,function(b,c){return c.toUpperCase()})};
402
- _.R.Qe=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.O.isNaN(b))return"";a="bps";1E3<=Math.abs(b)&&(a="Kbps",b/=1E3);1E3<=Math.abs(b)&&(a="Mbps",b/=1E3);return b.toFixed(2).replace(/[.,]00$/,"")+a}catch(c){return""}};_.I("clpp.utils.strings.bitrateToString",_.R.Qe);
403
- _.R.Nj=function(a,b){function c(h){return function(l,m){return d(h,m.length-1)}}function d(h,l){return h.length<l?d("0"+h,l):h}b=void 0===b?"%h:%mm:%ss":b;if(null===a||void 0===a)a=0;if(null===b||void 0===b)b="%h:%mm:%ss";var e=Math.floor(a/3600),f=Math.floor((a-3600*e)/60),g=Math.floor(a-3600*e-60*f);return b.replace(/(%h+)/,c(String(e))).replace(/(%m+)/,c(String(f))).replace(/(%s+)/,c(String(g)))};_.I("clpp.utils.strings.durationToString",_.R.Nj);
404
- _.R.Pj=function(a,b){for(var c in b)if(b[c]===a)return c;return""};_.R.tk=function(a){var b=0;if(0===a.length)return b;for(var c=0;c<a.length;c++)b=(b<<5)-b+a.charCodeAt(c),b|=0;return b};_.I("clpp.utils.strings.hashCode",_.R.tk);_.R.xm=function(a){_.R.Ph.innerHTML=a;return _.R.Ph.textContent};_.R.Ph=document.createElement("span");_.R.Pf=function(a){a=a.replace(/<[^>]+>/gi,"");a=_.R.xm(a);return a=a.replace(/<[^>]+>/gi,"")};_.R.jh=function(a){return a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")};_.I("clpp.utils.Uint8ArrayUtils",fj);fj.toStandardBase64=_.gj;fj.concat=mj;fj.equal=_.lj;fj.toHex=_.kj;fj.fromHex=_.jj;fj.fromBase64=_.ij;fj.toBase64Url=_.hj;_.Y={Qb:function(a,b){return a.filter(function(c){return c.name===b})},bf:function(a,b){var c=Array.isArray(b)?b:[b];return a.filter(function(d){d=_.Mi(d,_.bc);return c.includes(d)})},Wb:function(a,b){return a.some(function(c){return c.name===b})},Qa:function(a,b,c){c=void 0===c?{}:c;a=a.find(function(d){return d.name===b})||null;if(!a&&c.required)throw new _.P(_.Q,4,4024,{missingTag:b});return a},Rg:function(a,b){return _.Y.Qa(a,b,{required:!0})},gk:function(a,b,c){c=void 0===c?0:c;return(a=_.Y.Qa(a,
405
- b))?Number(a.value):c},en:function(a,b,c){return a.filter(function(d){var e=d.getAttribute(_.bc);d=d.getAttribute(_.cb);return e.value==b&&d.value==c})},Sl:function(a){a=_.Y.Qa(a,"EXT-X-TILES");if(!a)return{Tg:1,Wh:1,durationPerTile:null};var b=_.Li(a,"LAYOUT")||"1x1";a=(a=_.Li(a,_.Ea))?Number(a):null;var c=_.u(b.split("x").map(function(d){return parseInt(d,10)}));b=c.next().value;c=c.next().value;return{Tg:b,Wh:c,durationPerTile:a}},sd:function(a,b){return _.Bi([a],[b])[0]},ah:function(a){return/^#(?!EXT)/m.test(a)},
406
- fh:function(a,b){Array.isArray(a)||(a=[a]);a.forEach(function(c){for(var d=_.u(_.Y.ze(c)),e=d.next();!e.done;e=d.next())b(e.value,c)})},ze:function(a){var b=new Set;a.variants.forEach(function(c){c.audio&&b.add(c.audio);c.video&&b.add(c.video)});a.textStreams.forEach(function(c){return b.add(c)});a.thumbStreams.forEach(function(c){return b.add(c)});return Array.from(b)},uk:function(a){return a.some(function(b){return _.Y.Wb(b.W,Na)})},li:function(a){return _.Y.ze(a).filter(_.Y.Zg)},Rl:function(a,
407
- b){var c=_.Y.Qa(a,Na);if(b&&c)return _.lc;c=_.Y.Qa(a,Sa);if(!c)return"LIVE";if(c.value===_.lc)return _.lc;if("EVENT"===c.value)return"EVENT";throw new _.P(_.Q,4,4044,"Invalid EXT-X-PLAYLIST-TYPE value: "+c.value);},vg:function(a){a={AUDIO:_.$c,VIDEO:_.tg,SUBTITLES:_.Di,"CLOSED-CAPTIONS":_.Di}[a.toUpperCase()];if(!a)throw new _.P(_.Q,4,4044,"EXT-X-MEDIA tag has an invalid TYPE attribute.");return a},Ej:function(a){var b=_.Mi(a,_.bc).toUpperCase();if(_.Y.vg(b)!==_.Di)return null;a=a.getAttribute("FORCED");
408
- a=!(!a||!a.value||"YES"!==a.value.toUpperCase());var c=_.ag;b===_.ra&&(c=_.nd);a&&(c=_.qe);return c},zh:function(a,b,c){c=void 0===c?!1:c;var d=0,e=null;if(a){d=a.split("@");a=Number(d[0]);if(0>=a)throw new _.P(_.Q,4,4044,"Byte range length must be positive.");if(d[1]){if(d=Number(d[1]),0>d)throw new _.P(_.Q,4,4044,"Byte range start byte must not be negative.");}else{if(c)throw new _.P(_.Q,4,4044,"Invalid byte range, offset is required but missing.");if(null==b)throw new _.P(_.Q,4,4044,"Invalid byte range, cannot calculate offset based on previous byte ranges.");
409
- d=b+1}e=d+a-1}return{wa:d,ia:e}},Bh:function(a,b){var c=_.Y.Qa(a,Ja);return _.Y.zh(c?c.value:null,b)},Ml:function(a){a=_.Y.Rg(a,"EXTINF").value.split(",");return{duration:Number(a[0]),title:a[1]||null}},Ch:function(a,b){function c(f){return null==f?null:Number(f)}b=void 0===b?{}:b;var d={$d:!1,pi:!1,ri:null,vk:null,Dh:null},e=_.Y.Qa(a,Wa,{required:b.Lh});if(!e)return d;d.$d="YES"===_.Li(e,"CAN-BLOCK-RELOAD");d.pi="YES"===_.Li(e,"CAN-SKIP-DATERANGES");d.ri=c(_.Li(e,"CAN-SKIP-UNTIL"));d.vk=c(_.Li(e,
410
- "HOLD-BACK"));d.Dh=c(_.Li(e,"PART-HOLD-BACK",void 0,{required:b.Lh}));return d},Ah:function(a,b,c){c=void 0===c?!1:c;a=_.Li(a,"BYTERANGE");return _.Y.zh(a,b,c)},Pl:function(a){var b=_.Y.Qb(a,"EXT-X-MEDIA"),c=_.Y.Qb(a,_.Xa);a=_.Y.Qb(a,"EXT-X-IMAGE-STREAM-INF");return{Wc:{ji:_.Y.bf(b,["AUDIO",_.kc]),closedCaptions:_.Y.bf(b,_.ra),tm:_.Y.bf(b,_.Tb)},Rd:c,hf:a}},Hj:function(a,b){var c=_.Y.Bh(a.W,null);return new _.Pi(0,0,0,function(){return[a.a]},c.wa,c.ia,0,b)},ef:function(a,b){if(null==a)return null;
411
- var c=Object.assign({},a);null==c.iv&&(c.iv=mj(new Uint8Array(12),new Uint8Array([b>>24&255,b>>16&255,b>>8&255,b&255])));return c},pk:function(a){var b=a.S;a=b[0].startTime;b=b[b.length-1].endTime;return{Zb:a,se:b,duration:b-a}},lk:function(a){var b=Infinity,c=Infinity;_.Y.li(a).forEach(function(d){d=_.Y.pk(d);b=Math.min(b,d.Zb);c=Math.min(c,d.duration)});return{Zb:b,duration:c}},Zg:function(a){return a.type===_.$c||a.type===_.tg},Qj:function(a){return a.filter(_.Y.Zg)},kk:function(a){return a.map(function(b){return _.Y.lk(b).duration}).reduce(function(b,
412
- c){return b+c},0)},dk:function(a,b){return a&&b?_.Eo(a.drmInfos,b.drmInfos)?_.Do(a.drmInfos,b.drmInfos):null:a?a.drmInfos:b?b.drmInfos:null},Ij:function(a,b){return(b?b.Ub():"")+" - "+(a?a.Ub():"")},xg:function(a){return(a.video?a.video.Kb:"")+" - "+(a.audio?a.audio.Kb:"")},Ol:function(a,b,c,d){if(b===_.lc)return{delay:0,wc:0};b=_.Y.Qa(a,Ra);if(c&&b)return c=Number(_.Mi(b,"PART-TARGET")),null!=d?{delay:d,wc:c}:{delay:_.Y.Ch(a,{Lh:!0}).Dh,wc:c};a=_.Y.Rg(a,Ya);a=Number(a.value);return null!=d?{delay:d,
413
- wc:a}:{delay:3*a,wc:a}},jk:function(a){var b=[];_.Y.fh(a,function(c){b.push(c.Ik)});return{delay:Math.max.apply(Math,_.Pg(b.map(function(c){return c.delay}))),wc:Math.min.apply(Math,_.Pg(b.map(function(c){return c.wc})))}},vm:function(a){var b=new Map;a.forEach(function(c){var d=c.hk();b.has(d)?(d=b.get(d),d.includes(c)||d.push(c)):b.set(d,[c])});return b},Og:function(a){return _.Qi(a||_.ig)},Il:function(a){var b=new Map;a=_.u(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=_.Li(c,_.rb);
414
- d=_.Y.Og(d);var e=_.Mi(c,_.cb);c=_.Mi(c,"INSTREAM-ID");b.has(e)||b.set(e,new Map);b.get(e).set(c,d)}return b},Mj:function(a){a=_.u(a.audio.concat(a.video));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=b.ck().filter(function(d){return"mp4a.40.34"!==d});b.jm(c)}},Tl:function(a){if(null==a.getAttribute("FRAME-RATE")&&null==a.getAttribute(_.Pb))return null;var b=_.Li(a,"FRAME-RATE");a=_.Li(a,_.Pb);var c=_.u(a?a.split("x"):[null,null]);a=c.next().value;c=c.next().value;return{frameRate:Ti(b),
415
- width:Ti(a),height:Ti(c)}},Fk:function(a){return"EXT-X-MEDIA"!==a.name?!0:_.Li(a,_.bc)===_.Tb},Jl:function(a,b){var c=_.Li(a,"ID"),d=_.Li(a,"START-DATE");if(null===c||null===d)return _.Y.g.warn("Invalid EXT-X-DATERANGE missing mandatory ID or START-DATE attribute, ignoring the EXT-X-DATERANGE tag.",a),null;var e=new Date(d);d=e.getTime()/1E3-b;c={id:c,startTime:d,startDate:e};var f=Ti(_.Li(a,_.Ea));void 0!==f&&0<=f&&(c.duration=f);var g=Ti(_.Li(a,"PLANNED-DURATION"));void 0!==g&&0<=g&&(c.plannedDuration=
416
- g);var h=_.Li(a,"CLASS");null!==h&&(c.schemeIdUri=h);var l=_.Li(a,"END-DATE");l=l?new Date(l):null;null!==l&&l.getTime()>=e.getTime()&&(c.endDate=l);e=_.Y.Hl(a)||{};if(h===Pd){h=_.Y.Nl(a);if(null===h)return _.Y.g.warn("Invalid interstitial attributes, ignoring the EXT-X-DATERANGE tag.",a),null;e=Object.assign(e,h)}_.O.Dd(e)&&(c.Xa=e);c.endTime=l?l.getTime()/1E3:f?d+f:g?d+g:d;c.type=tu;return c},Hl:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.u(b);for(var c=b.next();!c.done;c=b.next())c=
417
- c.value,c.name.startsWith("X-")&&(a[c.name]=c.value);return _.O.Dd(a)?a:null},Nl:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.u(b);for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c.name){case rc:a[rc]=c.value;break;case qc:a[qc]=c.value;break;case tc:a[tc]=Ti(c.value);break;case sc:a[sc]=Ti(c.value);break;case "X-SNAP":a["X-SNAP"]=c.value.split(",");break;case "X-RESTRICT":a["X-SNAP"]=c.value.split(",")}return a[rc]&&a[qc]||!a[rc]&&!a[qc]?(_.Y.g.warn("Invalid EXT-X-DATERANGE Interstitial attributes X-ASSET-URI, X-ASSET-LIST"),
418
- null):_.O.Dd(a)?a:null},Gg:function(a,b){if(!a)return null;var c=a.Kb;return b.find(function(d){return d.Ub()===c})||null}};_.Y.g=new _.K("clpp.hls.Utils");_.uu=new Set([_.Ma,Na,"EXT-X-I-FRAMES-ONLY",_.Qa,Ra,Sa,Wa,Ya]);_.vu=new Set(["EXTINF",Ja,_.La,_.Oa,_.Pa,_.Va]);_.wu=new Set(["EXT-X-PART",_.Ua]);_.xu=new Set([_.Ka]);var qj=[403,401];_.I("clpp.net.DEFAULT_FATAL_STATUS_CODES",qj);_.I("clpp.net.makeRequest",_.uj);_.tj=6;_.I("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.tj});_.zj.prototype.resolve=function(){};_.zj.prototype.reject=function(){};_.Aj.prototype.abort=function(){this.a=!0;return this.A()};_.Aj.prototype.ae=function(a,b){function c(){e.reject(new _.P(_.Q,7,7001));return d.abort()}var d=this,e=new _.zj;this.O.then(function(f){d.a?e.reject(new _.P(_.Q,7,7001)):a?c=Cj(a,f,e):e.resolve(f)},function(f){b?c=Cj(b,f,e):e.reject(f)});return new _.Aj(e,function(){return c()})};_.Aj.aborted=function(){var a=Promise.reject(new _.P(_.Q,7,7001));a["catch"](function(){});return new _.Aj(a,function(){return Promise.resolve()})};
419
- _.Aj.prototype.chain=_.Aj.prototype.ae;_.Dj.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)};_.r=_.Nj.prototype;_.r.om=function(a){0<a?_.J("Rate limit set to "+a+"bps"):_.J("Rate limit disabled");this.j=a};_.r.release=function(){return this.l.destroy()};_.r.destroy=function(){this.o=!0;this.f=[];this.h=[];return this.l.destroy()};_.r.Xf=function(a){this.f.push(a)};_.r.jd=function(a){this.h.push(a)};_.r.Ih=function(a){this.f=this.f.filter(function(b){return b!==a})};_.r.ye=function(a){this.h=this.h.filter(function(b){return b!==a})};
420
- _.r.fetch=function(a){var b=this;if(this.o)return new qt(Promise.reject(new _.P(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.h);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=
421
- d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.zj;try{var f={},g=_.u(a.requestModifiers);for(e=g.next();!e.done;f={Ie:f.Ie},e=g.next())f.Ie=e.value,d=d.then(function(m){return function(n){if(h.a)throw new _.P(_.Q,1,7001,n?{url:n.uris[n.uriIndex],request:n}:null);return m.Ie(n)||n}}(f))["catch"](function(m){if(m instanceof _.P)throw m;throw new _.P(_.Q,1,1006,null,m);});d=d.then(function(m){var n=new _.qi(m.uris[m.uriIndex]),p=n.gb;p||(p=location.protocol,p=p.slice(0,-1),ri(n,p),m.uris[m.uriIndex]=
422
- n.toString());p=b.a[p];if(!p)throw new _.P(_.Q,1,1E3,{url:n.toString()});return{request:m,plugin:p}});var h=new qt(d);g={};var l=_.u(a.responseModifiers);for(e=l.next();!e.done;g={Vd:g.Vd},e=l.next())g.Vd=e.value,h.then(function(m){return function(n){function p(){if(h.a)throw new _.P(_.Q,1,7001,n?{url:n.request.uris[n.request.uriIndex],request:n.request}:null);}p();var q=m.Vd(n)||n;p();return q}}(g))["catch"](function(m){return function(n){if(n instanceof _.P&&n.data&&n.data.response){var p=m.Vd(n.data.response);
423
- if(p&&p.then)return p.then(function(){return Promise.reject(n)})}return Promise.reject(n)}}(g))["catch"](function(m){if(m instanceof _.P)throw m;throw new _.P(_.Q,1,1007,null,m);});_.Ej(this.l,h);c.resolve(a);return h}catch(m){return new qt(Promise.reject(m))}};_.I("clpp.net.NetworkEngine",_.Nj);_.Nj.prototype.fetch=_.Nj.prototype.fetch;_.Nj.prototype.removeResponseModifier=_.Nj.prototype.ye;_.Nj.prototype.removeRequestModifier=_.Nj.prototype.Ih;_.Nj.prototype.addResponseModifier=_.Nj.prototype.jd;
424
- _.Nj.prototype.addRequestModifier=_.Nj.prototype.Xf;_.Nj.prototype.setRateLimit=_.Nj.prototype.om;var Vj;_.Rj.prototype.ta=function(a){return this.type===a.type&&this.channelsCount===a.channelsCount&&this.frameRate===a.frameRate&&this.trickPlay===a.trickPlay&&this.kind===a.kind&&this.label===a.label&&this.language===a.language&&this.mimeType===a.mimeType&&Wh(this.roles,a.roles)&&Wh(this.accessibility,a.accessibility,Zj)};_.Rj.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.I("clpp.Track",_.Rj);
425
- _.Rj.prototype.toString=_.Rj.prototype.toString;_.I("clpp.Rendition",_.ak);_.Xj=1;_.Uj=_.tg;_.Tj=_.$c;_.T="text";Vj=_.Oe;_.yu={VIDEO:_.Uj,AUDIO:_.Tj,TEXT:_.T,METADATA:Vj};_.Rj.Type=_.yu;_.I("clpp.utils.url.queryString",_.dk);gk.prototype.h=function(a,b){var c=this,d,e,f,g,h,l,m;return _.E(function(n){switch(n.a){case 1:return d=null,_.A(n,2),_.x(n,mk(c,a),4);case 4:d=n.f;_.bh(n,3);break;case 2:return e=_.C(n),c.g.warn("Failed to fetch playlist in order metadata from HLS playlist.",e.message),n["return"](Promise.resolve({}));case 3:f={};_.A(n,5);if(!b.enableHlsVideoTrackInfo){n.F(7);break}return _.x(n,jk(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.bh(n,6);break;case 5:h=_.C(n),c.g.warn("Failed to parse video metadata from HLS playlist.",
426
- h.message);case 6:return _.A(n,9),_.x(n,lk(d),11);case 11:l=n.f;f.Wc=l;_.bh(n,10);break;case 9:m=_.C(n),c.g.warn("Failed to parse metadata from HLS playlist.",m.message);case 10:return n["return"](f)}})};_.sk=[];_.r=_.U.prototype;_.r.Te=function(){return!0};_.r.Wj=function(a){return this.getVideoTracks().find(function(b){return _.O.ta(b,a,a&&Object.keys(a))})};_.r.Sj=function(a){return this.getAudioTracks().find(function(b){return _.O.ta(b,a,a&&Object.keys(a))})};_.r.Uj=function(a){return this.ea().find(function(b){return _.O.ta(b,a,a&&Object.keys(a))})};_.r.Vj=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.O.ta(b,a,a&&Object.keys(a))})};
427
- _.r.Rj=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.O.ta(b,a,a&&Object.keys(a))})};_.r.Tj=function(a){return this.ea().flatMap(function(b){return b.renditions}).find(function(b){return _.O.ta(b,a,a&&Object.keys(a))})};_.I("clpp.TrackManager",_.U);_.U.prototype.isAbrEnabled=_.U.prototype.ma;_.U.prototype.addTextTrack=_.U.prototype.addTextTrack;_.U.prototype.findTextRendition=_.U.prototype.Tj;_.U.prototype.findAudioRendition=_.U.prototype.Rj;
428
- _.U.prototype.findVideoRendition=_.U.prototype.Vj;_.U.prototype.findTextTrack=_.U.prototype.Uj;_.U.prototype.findAudioTrack=_.U.prototype.Sj;_.U.prototype.findVideoTrack=_.U.prototype.Wj;_.U.prototype.setTextRendition=_.U.prototype.ib;_.U.prototype.setAudioRendition=_.U.prototype.hb;_.U.prototype.setVideoRendition=_.U.prototype.Za;_.U.prototype.setTextTrack=_.U.prototype.La;_.U.prototype.setAudioTrack=_.U.prototype.za;_.U.prototype.setVideoTrack=_.U.prototype.jb;_.U.prototype.getTextTrack=_.U.prototype.ua;
429
- _.U.prototype.getAudioTrack=_.U.prototype.ja;_.U.prototype.getVideoTrack=_.U.prototype.Ia;_.U.prototype.getLoadingTextRendition=_.U.prototype.nb;_.U.prototype.getLoadingAudioRendition=_.U.prototype.mb;_.U.prototype.getLoadingVideoRendition=_.U.prototype.cb;_.U.prototype.getTextRendition=_.U.prototype.Ha;_.U.prototype.getAudioRendition=_.U.prototype.Pa;_.U.prototype.getVideoRendition=_.U.prototype.ka;_.U.prototype.getTextTracks=_.U.prototype.ea;_.U.prototype.getAudioTracks=_.U.prototype.getAudioTracks;
430
- _.U.prototype.getVideoTracks=_.U.prototype.getVideoTracks;_.U.prototype.canSelectVideoTracks=_.U.prototype.Te;var wk=new Map,vk=1,Ak=2,zk=3,yk=4;_.zu=(new Map).set(_.Kd,_.Kd).set("frameRate","framerate").set("bandwidth","bitrate").set(_.Ig,_.Ig).set(_.te,_.te).set("channelsCount","channels");_.Ek.prototype.aa=function(a){return Fk(this,a,!1)};_.Ek.prototype.kb=function(a){return Fk(this,a,!0)};_.Ek.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.Gk.prototype.Rf=function(){this.stop();this.f();return this};_.Gk.prototype.aa=function(a){var b=this;this.stop();this.a=(new _.Ek(function(){b.f()})).aa(a);return this};_.Gk.prototype.kb=function(a){var b=this;this.stop();this.a=(new _.Ek(function(){b.f()})).kb(a);return this};_.Gk.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.I("clpp.utils.Timer",_.Gk);_.Gk.prototype.stop=_.Gk.prototype.stop;_.Gk.prototype.tickEvery=_.Gk.prototype.kb;_.Gk.prototype.tickAfter=_.Gk.prototype.aa;
431
- _.Gk.prototype.tickNow=_.Gk.prototype.Rf;_.I(Jd,Hk);Hk.getInfo=_.Ij;
432
- var Rk=null,Qk=null,Tk=new _.K(Jd),$k="android",Zk="ios",fl="linux",al="osx",bl="windows",dl="tizen",el="webos",Yk=jg,il=jg,hl={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,
402
+ "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var oj=function Gu(a){var c;return _.yh(Gu,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.y(d,c,3):d.F(0);c++;return d.F(2)})};_.J("clpp.utils.BufferUtils",lj);lj.toArrayBuffer=vj;lj.toDataView=_.uj;lj.toInt32Array=_.tj;lj.toUint32Array=sj;lj.toUint16Array=rj;lj.toUint8Array=_.nj;lj.equal=pj;_.S={};_.S.od=new _.K("clpp.utils.strings");_.S.aj=16E3;_.S.fromCharCode=function(a){for(var b=_.S.aj,c="",d=0;d<a.length;d+=b)c+=String.fromCharCode.apply(null,a.subarray(d,d+b));return c};_.S.ea=function(a){if(!a)return"";a=_.nj(a);239===a[0]&&187===a[1]&&191===a[2]&&(a=a.subarray(3));if("TextDecoder"in window){a=(new TextDecoder).decode(a);if(a.includes("\ufffd"))throw Error(Za);return a}a=escape(_.S.fromCharCode(a));try{return decodeURIComponent(a)}catch(b){throw Error(Za);}};
403
+ _.J("clpp.utils.strings.fromUtf8",_.S.ea);
404
+ _.S.vc=function(a,b,c){if(!a)return"";var d=_.S.od;if(!c&&0!==a.byteLength%2)throw d.error("Data has an incorrect length, must be even."),Error("Data does not seem to be UTF-16 encoded!");c=_.nj(a);if(b&&255===c[0]&&254===c[1]||254===c[0]&&255===c[1])a=c.subarray(2);a instanceof ArrayBuffer?d=a:(c=new Uint8Array(a.byteLength),c.set(_.nj(a)),d=c.buffer);a=Math.floor(a.byteLength/2);c=new Uint16Array(a);d=new DataView(d);for(var e=0;e<a;e++)c[e]=d.getUint16(2*e,b);return _.S.fromCharCode(c)};
405
+ _.S.Pd=function(a,b){if(_.O.ga(a))return a;var c="",d=!!b,e=_.nj(a);239===e[0]&&187===e[1]&&191===e[2]?c=_.S.ea(e):254===e[0]&&255===e[1]?c=_.S.vc(e.subarray(2),!1):255===e[0]&&254===e[1]&&(c=_.S.vc(e.subarray(2),!0));var f=function(g,h){return g.byteLength<=h||32<=g[h]&&126>=g[h]}.bind(null,e);_.S.od.debug("Unable to find byte-order-mark, making an educated guess.");0===e[0]&&0===e[2]?c=_.S.vc(a,!1):0===e[1]&&0===e[3]?c=_.S.vc(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.S.ea(a));if(c)return d&&(c=escape(c)),
406
+ c;throw Error("Unable to detect text encoding");};_.J("clpp.utils.strings.fromBytesAutoDetect",_.S.Pd);_.S.hb=function(a){if("TextEncoder"in window)return(new TextEncoder).encode(a);a=encodeURIComponent(a);a=unescape(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b};_.J("clpp.utils.strings.toUtf8",_.S.hb);_.S.gf=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};
407
+ _.J("clpp.utils.strings.toUtf16",_.S.gf);_.S.wd=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=sj(e):2===c?f=rj(e):f=_.nj(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};_.J("clpp.utils.strings.toByteArray",_.S.wd);_.S.startsWith=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.J("clpp.utils.strings.startsWith",_.S.startsWith);
408
+ _.S.endsWith=function(a,b){if(String.prototype.endsWith)return a.endsWith(b);var c=a.length-b.length,d=a.lastIndexOf(b,c);return-1!==d&&d===c};_.J("clpp.utils.strings.endsWith",_.S.endsWith);_.S.Ue=function(a){return!!(a&&0<a.length)};_.S.empty=function(a){return!a||0===a.length};_.S.Un=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};_.S.Xn=function(a){return a.replace(/-(\w)/g,function(b,c){return c.toUpperCase()})};
409
+ _.S.Ae=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.O.isNaN(b))return"";a="bps";1E3<=Math.abs(b)&&(a="Kbps",b/=1E3);1E3<=Math.abs(b)&&(a="Mbps",b/=1E3);return b.toFixed(2).replace(/[.,]00$/,"")+a}catch(c){return""}};_.J("clpp.utils.strings.bitrateToString",_.S.Ae);
410
+ _.S.Nk=function(a,b){function c(h){return function(l,m){return d(h,m.length-1)}}function d(h,l){return h.length<l?d("0"+h,l):h}b=void 0===b?"%h:%mm:%ss":b;if(null===a||void 0===a)a=0;if(null===b||void 0===b)b="%h:%mm:%ss";var e=Math.floor(a/3600),f=Math.floor((a-3600*e)/60),g=Math.floor(a-3600*e-60*f);return b.replace(/(%h+)/,c(String(e))).replace(/(%m+)/,c(String(f))).replace(/(%s+)/,c(String(g)))};_.J("clpp.utils.strings.durationToString",_.S.Nk);
411
+ _.S.Pk=function(a,b){for(var c in b)if(b[c]===a)return c;return""};_.S.xl=function(a){var b=0;if(0===a.length)return b;for(var c=0;c<a.length;c++)b=(b<<5)-b+a.charCodeAt(c),b|=0;return b};_.J("clpp.utils.strings.hashCode",_.S.xl);_.S.xn=function(a){_.S.Ii.innerHTML=a;return _.S.Ii.textContent};_.S.Ii=document.createElement("span");_.S.vg=function(a){a=a.replace(/<[^>]+>/gi,"");a=_.S.xn(a);return a=a.replace(/<[^>]+>/gi,"")};_.S.ci=function(a){return a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")};_.J("clpp.utils.Uint8ArrayUtils",wj);wj.toStandardBase64=_.xj;wj.concat=Dj;wj.equal=_.Cj;wj.toHex=_.Bj;wj.fromHex=_.Aj;wj.fromBase64=_.zj;wj.toBase64Url=_.yj;_.Y={cc:function(a,b){return a.filter(function(c){return c.name===b})},Lf:function(a,b){var c=Array.isArray(b)?b:[b];return a.filter(function(d){d=_.bj(d,_.ec);return c.includes(d)})},ic:function(a,b){return a.some(function(c){return c.name===b})},$a:function(a,b,c){c=void 0===c?{}:c;a=a.find(function(d){return d.name===b})||null;if(!a&&c.required)throw new _.P(_.Q,4,4024,{missingTag:b});return a},Lh:function(a,b){return _.Y.$a(a,b,{required:!0})},hl:function(a,b,c){c=void 0===c?0:c;return(a=_.Y.$a(a,
412
+ b))?Number(a.value):c},ao:function(a,b,c){return a.filter(function(d){var e=d.getAttribute(_.ec);d=d.getAttribute(_.eb);return e.value===b&&d.value===c})},Rm:function(a){var b=_.Y.$a(a,"EXT-X-TILES");if(!b)return{Td:1,qe:1,durationPerTile:null};a=_.aj(b,"LAYOUT")||"1x1";b=_.aj(b,_.Ga);a=_.jj(a);return{Td:a.Td,qe:a.qe,durationPerTile:b?Number(b):null}},Jd:function(a,b){return _.Si([a],[b])[0]},Uh:function(a){return/^#(?!EXT)/m.test(a)},$h:function(a,b){Array.isArray(a)||(a=[a]);a.forEach(function(c){for(var d=
413
+ _.w(_.Y.df(c)),e=d.next();!e.done;e=d.next())b(e.value,c)})},df:function(a){var b=new Set;a.variants.forEach(function(c){c.audio&&b.add(c.audio);c.video&&b.add(c.video)});a.textStreams.forEach(function(c){return b.add(c)});a.thumbStreams.forEach(function(c){return b.add(c)});return Array.from(b)},yl:function(a){return a.some(function(b){return _.Y.ic(b.Z,Na)})},lj:function(a){return _.Y.df(a).filter(_.Y.Sh)},Qm:function(a,b){var c=_.Y.$a(a,Na);if(b&&c)return _.nc;c=_.Y.$a(a,Ta);if(!c)return"LIVE";
414
+ if(c.value===_.nc)return _.nc;if("EVENT"===c.value)return"EVENT";throw new _.P(_.Q,4,4044,"Invalid EXT-X-PLAYLIST-TYPE value: "+c.value);},ph:function(a){a={AUDIO:_.bd,VIDEO:_.r,SUBTITLES:_.R,"CLOSED-CAPTIONS":_.R}[a.toUpperCase()];if(!a)throw new _.P(_.Q,4,4044,"EXT-X-MEDIA tag has an invalid TYPE attribute.");return a},Ek:function(a){var b=_.bj(a,_.ec).toUpperCase();if(_.Y.ph(b)!==_.R)return null;a=a.getAttribute("FORCED");a=!(!a||!a.value||"YES"!==a.value.toUpperCase());var c=_.ng;b===_.sa&&(c=
415
+ _.qd);a&&(c=_.te);return c},vi:function(a,b,c){c=void 0===c?!1:c;var d=0,e=null;if(a){d=a.split("@");a=Number(d[0]);if(0>=a)throw new _.P(_.Q,4,4044,"Byte range length must be positive.");if(d[1]){if(d=Number(d[1]),0>d)throw new _.P(_.Q,4,4044,"Byte range start byte must not be negative.");}else{if(c)throw new _.P(_.Q,4,4044,"Invalid byte range, offset is required but missing.");if(null==b)throw new _.P(_.Q,4,4044,"Invalid byte range, cannot calculate offset based on previous byte ranges.");d=b+1}e=
416
+ d+a-1}return{Aa:d,la:e}},xi:function(a,b){var c=_.Y.$a(a,Ja);return _.Y.vi(c?c.value:null,b)},Lm:function(a){a=_.Y.Lh(a,"EXTINF").value.split(",");return{duration:Number(a[0]),title:a[1]||null}},yi:function(a,b){function c(f){return null==f?null:Number(f)}b=void 0===b?{}:b;var d={Ce:!1,oj:!1,pj:null,zl:null,zi:null},e=_.Y.$a(a,Wa,{required:b.Fi});if(!e)return d;d.Ce="YES"===_.aj(e,"CAN-BLOCK-RELOAD");d.oj="YES"===_.aj(e,"CAN-SKIP-DATERANGES");d.pj=c(_.aj(e,"CAN-SKIP-UNTIL"));d.zl=c(_.aj(e,"HOLD-BACK"));
417
+ d.zi=c(_.aj(e,"PART-HOLD-BACK",void 0,{required:b.Fi}));return d},wi:function(a,b,c){c=void 0===c?!1:c;a=_.aj(a,"BYTERANGE");return _.Y.vi(a,b,c)},Om:function(a){var b=_.Y.cc(a,"EXT-X-MEDIA"),c=_.Y.cc(a,_.Xa);a=_.Y.cc(a,"EXT-X-IMAGE-STREAM-INF");return{pd:{jj:_.Y.Lf(b,["AUDIO",_.mc]),closedCaptions:_.Y.Lf(b,_.sa),sn:_.Y.Lf(b,_.Wb)},re:c,Sf:a}},Hk:function(a,b){var c=_.Y.xi(a.Z,null);return new _.ej(0,0,0,function(){return[a.a]},c.Aa,c.la,0,b)},Nf:function(a,b){if(null==a)return null;var c=Object.assign({},
418
+ a);null==c.iv&&(c.iv=Dj(new Uint8Array(12),new Uint8Array([b>>24&255,b>>16&255,b>>8&255,b&255])));return c},ql:function(a){var b=a.U;a=b[0].startTime;b=b[b.length-1].endTime;return{jc:a,Se:b,duration:b-a}},ml:function(a){var b=Infinity,c=Infinity;_.Y.lj(a).forEach(function(d){d=_.Y.ql(d);b=Math.min(b,d.jc);c=Math.min(c,d.duration)});return{jc:b,duration:c}},Sh:function(a){return a.type===_.bd||a.type===_.r},Qk:function(a){return a.filter(_.Y.Sh)},ll:function(a){return a.map(function(b){return _.Y.ml(b).duration}).reduce(function(b,
419
+ c){return b+c},0)},dl:function(a,b){return a&&b?_.Xo(a.drmInfos,b.drmInfos)?_.Wo(a.drmInfos,b.drmInfos):null:a?a.drmInfos:b?b.drmInfos:null},Ik:function(a,b){return(b?b.gc():"")+_.aa+(a?a.gc():"")},rh:function(a){return(a.video?a.video.Vb:"")+_.aa+(a.audio?a.audio.Vb:"")},Nm:function(a,b,c,d){if(b===_.nc)return{delay:0,Lc:0};b=_.Y.$a(a,Sa);if(c&&b)return c=Number(_.bj(b,"PART-TARGET")),null!=d?{delay:d,Lc:c}:{delay:_.Y.yi(a,{Fi:!0}).zi,Lc:c};a=_.Y.Lh(a,Ya);a=Number(a.value);return null!=d?{delay:d,
420
+ Lc:a}:{delay:3*a,Lc:a}},kl:function(a){var b=[];_.Y.$h(a,function(c){b.push(c.Ml)});return{delay:Math.max.apply(Math,_.ch(b.map(function(c){return c.delay}))),Lc:Math.min.apply(Math,_.ch(b.map(function(c){return c.Lc})))}},un:function(a){var b=new Map;a.forEach(function(c){var d=c.il();b.has(d)?(d=b.get(d),d.includes(c)||d.push(c)):b.set(d,[c])});return b},Ih:function(a){return _.fj(a||_.vg)},Im:function(a){var b=new Map;a=_.w(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=_.aj(c,_.ub);
421
+ d=_.Y.Ih(d);var e=_.bj(c,_.eb);c=_.bj(c,"INSTREAM-ID");b.has(e)||b.set(e,new Map);b.get(e).set(c,d)}return b},Mk:function(a){a=_.w(a.audio.concat(a.video));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=b.cl().filter(function(d){return"mp4a.40.34"!==d});b.gn(c)}},Sm:function(a){if(null==a.getAttribute("FRAME-RATE")&&null==a.getAttribute(_.Tb))return null;var b=_.aj(a,"FRAME-RATE");a=_.aj(a,_.Tb);var c=_.w(a?a.split("x"):[null,null]);a=c.next().value;c=c.next().value;return{frameRate:ij(b),
422
+ width:ij(a),height:ij(c)}},Jl:function(a){return"EXT-X-MEDIA"!==a.name?!0:_.aj(a,_.ec)===_.Wb},Jm:function(a,b){var c=_.aj(a,"ID"),d=_.aj(a,"START-DATE");if(null===c||null===d)return _.Y.g.warn("Invalid EXT-X-DATERANGE missing mandatory ID or START-DATE attribute, ignoring the EXT-X-DATERANGE tag.",a),null;var e=new Date(d);d=e.getTime()/1E3-b;c={id:c,startTime:d,startDate:e};var f=ij(_.aj(a,_.Ga));void 0!==f&&0<=f&&(c.duration=f);var g=ij(_.aj(a,"PLANNED-DURATION"));void 0!==g&&0<=g&&(c.plannedDuration=
423
+ g);var h=_.aj(a,"CLASS");null!==h&&(c.schemeIdUri=h);var l=_.aj(a,"END-DATE");l=l?new Date(l):null;null!==l&&l.getTime()>=e.getTime()&&(c.endDate=l);e=_.Y.Hm(a)||{};if(h===Rd){h=_.Y.Mm(a);if(null===h)return _.Y.g.warn("Invalid interstitial attributes, ignoring the EXT-X-DATERANGE tag.",a),null;e=Object.assign(e,h)}_.O.Vd(e)&&(c.jb=e);c.endTime=l?l.getTime()/1E3:f?d+f:g?d+g:d;c.type=Hu;return c},Hm:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.w(b);for(var c=b.next();!c.done;c=b.next())c=
424
+ c.value,c.name.startsWith("X-")&&(a[c.name]=c.value);return _.O.Vd(a)?a:null},Mm:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.w(b);for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c.name){case vc:a[vc]=c.value;break;case uc:a[uc]=c.value;break;case xc:a[xc]=ij(c.value);break;case wc:a[wc]=ij(c.value);break;case "X-SNAP":a["X-SNAP"]=c.value.split(",");break;case "X-RESTRICT":a["X-SNAP"]=c.value.split(",")}return a[vc]&&a[uc]||!a[vc]&&!a[uc]?(_.Y.g.warn("Invalid EXT-X-DATERANGE Interstitial attributes X-ASSET-URI, X-ASSET-LIST"),
425
+ null):_.O.Vd(a)?a:null},Ah:function(a,b){if(!a)return null;var c=a.Vb;return b.find(function(d){return d.gc()===c})||null}};_.Y.g=new _.K("clpp.hls.Utils");_.Iu=new Set([_.Ma,Na,"EXT-X-I-FRAMES-ONLY",_.Ra,Sa,Ta,Wa,Ya]);_.Ju=new Set(["EXTINF",Ja,_.La,_.Oa,_.Pa,_.Va]);_.Ku=new Set(["EXT-X-PART",_.Ua]);_.Lu=new Set([_.Ka]);var Hj=[403,401];_.J("clpp.net.DEFAULT_FATAL_STATUS_CODES",Hj);_.J("clpp.net.makeRequest",_.Lj);_.Kj=6;_.J("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.Kj});_.Qj.prototype.resolve=function(){};_.Qj.prototype.reject=function(){};_.Rj.prototype.abort=function(){this.a=!0;return this.A()};_.Rj.prototype.De=function(a,b){function c(){e.reject(new _.P(_.Q,7,7001));return d.abort()}var d=this,e=new _.Qj;this.N.then(function(f){d.a?e.reject(new _.P(_.Q,7,7001)):a?c=Tj(a,f,e):e.resolve(f)},function(f){b?c=Tj(b,f,e):e.reject(f)});return new _.Rj(e,function(){return c()})};_.Rj.aborted=function(){var a=Promise.reject(new _.P(_.Q,7,7001));a["catch"](function(){});return new _.Rj(a,function(){return Promise.resolve()})};
426
+ _.Rj.prototype.chain=_.Rj.prototype.De;_.Uj.prototype.destroy=function(){for(var a=[],b=_.w(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.N["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.u=_.ck.prototype;_.u.mn=function(a){0<a?_.Fh("Rate limit set to "+a+"bps"):_.Fh("Rate limit disabled");this.j=a};_.u.release=function(){return this.l.destroy()};_.u.destroy=function(){this.o=!0;this.f=[];this.h=[];return this.l.destroy()};_.u.Hg=function(a){this.f.push(a)};_.u.Bd=function(a){this.h.push(a)};_.u.Di=function(a){this.f=this.f.filter(function(b){return b!==a})};_.u.cf=function(a){this.h=this.h.filter(function(b){return b!==a})};
427
+ _.u.fetch=function(a){var b=this;if(this.o)return new St(Promise.reject(new _.P(1,1,7001,{url:a.uris[a.uriIndex],request:a})));this.j&&0<this.j&&(a.rateLimitBps=this.j);for(var c=[],d=_.w(this.f),e=d.next();!e.done;e=d.next())c.push(e.value);if(a.requestModifiers)for(d=_.w(a.requestModifiers),e=d.next();!e.done;e=d.next())c.push(e.value);a.requestModifiers=c;c=[];d=_.w(this.h);for(e=d.next();!e.done;e=d.next())c.push(e.value);if(a.responseModifiers)for(d=_.w(a.responseModifiers),e=d.next();!e.done;e=
428
+ d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.Qj;try{var f={},g=_.w(a.requestModifiers);for(e=g.next();!e.done;f={qf:f.qf},e=g.next())f.qf=e.value,d=d.then(function(m){return function(n){if(h.a)throw new _.P(_.Q,1,7001,n?{url:n.uris[n.uriIndex],request:n}:null);return m.qf(n)||n}}(f))["catch"](function(m){if(m instanceof _.P)throw m;throw new _.P(_.Q,1,1006,null,m);});d=d.then(function(m){var n=new _.Hi(m.uris[m.uriIndex]),p=n.ub;p||(p=location.protocol,p=p.slice(0,-1),Ii(n,p),m.uris[m.uriIndex]=
429
+ n.toString());p=b.a[p];if(!p)throw new _.P(_.Q,1,1E3,{url:n.toString()});return{request:m,plugin:p}});var h=new St(d);g={};var l=_.w(a.responseModifiers);for(e=l.next();!e.done;g={ve:g.ve},e=l.next())g.ve=e.value,h.then(function(m){return function(n){function p(){if(h.a)throw new _.P(_.Q,1,7001,n?{url:n.request.uris[n.request.uriIndex],request:n.request}:null);}p();var q=m.ve(n)||n;p();return q}}(g))["catch"](function(m){return function(n){if(n instanceof _.P&&n.data&&n.data.response){var p=m.ve(n.data.response);
430
+ if(p&&p.then)return p.then(function(){return Promise.reject(n)})}return Promise.reject(n)}}(g))["catch"](function(m){if(m instanceof _.P)throw m;throw new _.P(_.Q,1,1007,null,m);});_.Vj(this.l,h);c.resolve(a);return h}catch(m){return new St(Promise.reject(m))}};_.J("clpp.net.NetworkEngine",_.ck);_.ck.prototype.fetch=_.ck.prototype.fetch;_.ck.prototype.removeResponseModifier=_.ck.prototype.cf;_.ck.prototype.removeRequestModifier=_.ck.prototype.Di;_.ck.prototype.addResponseModifier=_.ck.prototype.Bd;
431
+ _.ck.prototype.addRequestModifier=_.ck.prototype.Hg;_.ck.prototype.setRateLimit=_.ck.prototype.mn;var kk;_.gk.prototype.oa=function(a){return this.type===a.type&&this.channelsCount===a.channelsCount&&this.frameRate===a.frameRate&&this.trickPlay===a.trickPlay&&this.kind===a.kind&&this.label===a.label&&this.language===a.language&&this.mimeType===a.mimeType&&mi(this.roles,a.roles)&&mi(this.accessibility,a.accessibility,ok)};_.gk.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.J("clpp.Track",_.gk);
432
+ _.gk.prototype.toString=_.gk.prototype.toString;_.J("clpp.Rendition",_.rk);_.mk=1;_.jk=_.r;_.ik=_.bd;_.T="text";kk=_.Re;_.Mu={VIDEO:_.jk,AUDIO:_.ik,TEXT:_.T,METADATA:kk};_.gk.Type=_.Mu;_.J("clpp.utils.url.queryString",_.uk);xk.prototype.h=function(a,b){var c=this,d,e,f,g,h,l,m;return _.I(function(n){switch(n.a){case 1:return d=null,_.D(n,2),_.y(n,Dk(c,a),4);case 4:d=n.f;_.qh(n,3);break;case 2:return e=_.E(n),c.g.warn("Failed to fetch playlist in order metadata from HLS playlist.",e.message),n["return"](Promise.resolve({}));case 3:f={};_.D(n,5);if(!b.enableHlsVideoTrackInfo){n.F(7);break}return _.y(n,Ak(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.qh(n,6);break;case 5:h=_.E(n),c.g.warn("Failed to parse video metadata from HLS playlist.",
433
+ h.message);case 6:return _.D(n,9),_.y(n,Ck(d),11);case 11:l=n.f;f.pd=l;_.qh(n,10);break;case 9:m=_.E(n),c.g.warn("Failed to parse metadata from HLS playlist.",m.message);case 10:return n["return"](f)}})};_.Jk=[];_.u=_.Mk.prototype;_.u.Af=function(){return!0};_.u.Wk=function(a){return this.getVideoTracks().find(function(b){return _.O.oa(b,a,a&&Object.keys(a))})};_.u.Sk=function(a){return this.getAudioTracks().find(function(b){return _.O.oa(b,a,a&&Object.keys(a))})};_.u.Uk=function(a){return this.ma().find(function(b){return _.O.oa(b,a,a&&Object.keys(a))})};_.u.Vk=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.O.oa(b,a,a&&Object.keys(a))})};
434
+ _.u.Rk=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.O.oa(b,a,a&&Object.keys(a))})};_.u.Tk=function(a){return this.ma().flatMap(function(b){return b.renditions}).find(function(b){return _.O.oa(b,a,a&&Object.keys(a))})};_.J("clpp.TrackManager",_.Mk);_.Mk.prototype.isAbrEnabled=_.Mk.prototype.xa;_.Mk.prototype.addTextTrack=_.Mk.prototype.addTextTrack;_.Mk.prototype.findTextRendition=_.Mk.prototype.Tk;_.Mk.prototype.findAudioRendition=_.Mk.prototype.Rk;
435
+ _.Mk.prototype.findVideoRendition=_.Mk.prototype.Vk;_.Mk.prototype.findTextTrack=_.Mk.prototype.Uk;_.Mk.prototype.findAudioTrack=_.Mk.prototype.Sk;_.Mk.prototype.findVideoTrack=_.Mk.prototype.Wk;_.Mk.prototype.setTextRendition=_.Mk.prototype.wb;_.Mk.prototype.setAudioRendition=_.Mk.prototype.vb;_.Mk.prototype.setVideoRendition=_.Mk.prototype.lb;_.Mk.prototype.setTextTrack=_.Mk.prototype.Va;_.Mk.prototype.setAudioTrack=_.Mk.prototype.Ia;_.Mk.prototype.setVideoTrack=_.Mk.prototype.xb;
436
+ _.Mk.prototype.getTextTrack=_.Mk.prototype.Ea;_.Mk.prototype.getAudioTrack=_.Mk.prototype.pa;_.Mk.prototype.getVideoTrack=_.Mk.prototype.Ta;_.Mk.prototype.getLoadingTextRendition=_.Mk.prototype.Cb;_.Mk.prototype.getLoadingAudioRendition=_.Mk.prototype.Bb;_.Mk.prototype.getLoadingVideoRendition=_.Mk.prototype.pb;_.Mk.prototype.getTextRendition=_.Mk.prototype.Ra;_.Mk.prototype.getAudioRendition=_.Mk.prototype.Za;_.Mk.prototype.getVideoRendition=_.Mk.prototype.qa;_.Mk.prototype.getTextTracks=_.Mk.prototype.ma;
437
+ _.Mk.prototype.getAudioTracks=_.Mk.prototype.getAudioTracks;_.Mk.prototype.getVideoTracks=_.Mk.prototype.getVideoTracks;_.Mk.prototype.canSelectVideoTracks=_.Mk.prototype.Af;var Ok=new Map,Nk=1,Sk=2,Rk=3,Qk=4;_.Nu=(new Map).set(_.Nd,_.Nd).set("frameRate","framerate").set("bandwidth","bitrate").set(_.Wg,_.Wg).set(_.we,_.we).set("channelsCount","channels");_.Xk.prototype.fa=function(a){return Yk(this,a,!1)};_.Xk.prototype.yb=function(a){return Yk(this,a,!0)};_.Xk.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.Zk.prototype.yg=function(){this.stop();this.f();return this};_.Zk.prototype.fa=function(a){var b=this;this.stop();this.a=(new _.Xk(function(){b.f()})).fa(a);return this};_.Zk.prototype.yb=function(a){var b=this;this.stop();this.a=(new _.Xk(function(){b.f()})).yb(a);return this};_.Zk.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.J("clpp.utils.Timer",_.Zk);_.Zk.prototype.stop=_.Zk.prototype.stop;_.Zk.prototype.tickEvery=_.Zk.prototype.yb;_.Zk.prototype.tickAfter=_.Zk.prototype.fa;
438
+ _.Zk.prototype.tickNow=_.Zk.prototype.yg;_.J(Md,$k);$k.getInfo=_.Zj;
439
+ var kl=null,jl=null,ml=new _.K(Md),tl="android",sl="ios",yl="linux",ul="osx",vl="windows",wl="tizen",xl="webos",rl=wg,Bl=wg,Al={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,
433
440
  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,
434
441
  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},
435
- 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(jl,_.U);_.r=jl.prototype;_.r.Te=function(){return!_.Nk()};
436
- _.r.Bf=function(a,b){var c=this,d,e,f,g,h,l,m,n,p,q,t,v,z,D,G,F,B,H;return _.E(function(N){if(1==N.a){if(!b)return c.g.warn(zb),N["return"]();d=b.track;if(!d)return c.g.warn(Cb),N["return"]();e=a===_.Tj;f=a===_.Uj;g=a===_.T;h=e||f;l=b.target;if(m=c.h.find(function(M){return xl(M,d,a)}))return c.g.warn("Track from event already exists",d,m),N["return"]();n=Yj(a,d);p=Bl(d);if(g){if(d.kind===_.Oe)return N["return"]();void 0!==d.id?q=c.o[d.id]:(t=Object.values(c.o),q=t.find(function(M){return xl(n,M,
437
- a)}));n.kind&&"captions"===n.kind&&(n.mimeType=_.Sc);q&&(n.src=q.url,n.mimeType=q.mimeType)}else if(m=c.h.find(function(M){return M.type===a&&_.O.ta(M,n,["kind","label","language"])}))return m.id=d.id,p&&(c.g.debug(Xb+a+" track active"),c.a.set(a,m)),c.g.debug("Track from event seems to already exists, flipped native track to",d),N["return"]();_.A(N,2);v=new _.ak(n.id,n);n.renditions.push(v);c.h.push(n);z=c.m.getConfiguration().safari;return nl(c,a,z)?_.x(N,ql(c,n,z),5):ol(c,a,z)?_.x(N,rl(c,n,z),
438
- 5):N.F(5)}if(2!=N.a)return c.g.debug(a+" Track added",n),c.m.trigger(new _.L(_.Au)),D=ul(c,a).length,G=!(!l||!l.length),F=l&&l.length||0,B=function(){c.g.debug(Xb+a+" track active. Native track active: "+(p+". Number of tracks: ")+D,d);c.a.set(a,n)},p?B():1===D&&h&&(f?B():G&&1!==F||B()),_.bh(N,0);H=_.C(N);c.g.error("Error while converting track data",H);_.y(N)})};
439
- _.r.Df=function(a,b){if(b){var c=b.track;if(!c)this.g.warn(Cb);else if(a===_.T&&c.kind!==_.Oe){var d=this.h.find(function(e){return xl(e,c,a)});d&&(this.h.splice(this.h.indexOf(d),1),(this.a.get(a)||null)===d&&(this.a.set(a,null),Dl(this)),this.g.debug(a+" Track removed, id: ",d.id))}}else this.g.warn(zb)};
440
- _.r.Cf=function(a,b){this.g.debug(a+" Track changed",b);a===_.T&&Dl(this);var c=tl(this,a);if(c)for(var d={Bc:0};d.Bc<c.length;d={Bc:d.Bc},++d.Bc)if(Bl(c[d.Bc])){if(d=this.h.find(function(e){return function(f){return xl(f,c[e.Bc],a)}}(d)))this.a.set(a,d),this.g.debug("Track change detected, id:",d.id),d===this.l.get(a)&&this.l.set(a,null),a===_.Tj?this.m.trigger(new _.L(_.yl)):a===_.T&&this.m.trigger(new _.L(_.zl));break}};_.r.initialize=function(a){this.m=a;this.j=new gk(a.getNetworkEngine())};
441
- _.r.load=function(){this.A=!1;var a=sl(this,_.T);a&&(this.f.on(a,_.Kc,this.J),this.f.on(a,Jf,this.L),this.f.on(a,vd,this.K));if(a=sl(this,_.Tj))this.f.on(a,_.Kc,this.G),this.f.on(a,Jf,this.I),this.f.on(a,vd,this.H);if(a=sl(this,_.Uj))this.f.on(a,_.Kc,this.P),this.f.on(a,Jf,this.V),this.f.on(a,vd,this.U);this.f.one(this.m,md,this.lj.bind(this))};_.r.release=function(){this.A=!0;this.h=[];this.o={};this.a.clear();this.l.clear();this.f.release()};_.r.destroy=function(){this.release();this.m=null};
442
- _.r.getVideoTracks=function(){return ul(this,_.Uj)};_.r.getAudioTracks=function(){return ul(this,_.Tj)};_.r.ea=function(){return ul(this,_.T)};_.r.ka=function(){var a=this,b=this.a.get(_.Uj)||null;if(!b)return null;if(this.w){var c=b.renditions.find(function(d){return d.width===a.w.width&&d.height===a.w.height});if(c)return c}return b.renditions[0]||null};_.r.Pa=function(){return vl(this,_.Tj)};_.r.Ha=function(){return vl(this,_.T)};_.r.cb=function(){return wl(this,_.Uj)};
443
- _.r.mb=function(){return wl(this,_.Tj)};_.r.nb=function(){return wl(this,_.T)};_.r.Ia=function(){return this.a.get(_.Uj)||null};_.r.ja=function(){return this.a.get(_.Tj)||null};_.r.ua=function(){return this.a.get(_.T)||null};_.r.jb=function(a){Al(this,_.Uj,a)};_.r.za=function(a){Al(this,_.Tj,a)};_.r.La=function(a){Al(this,_.T,a)};_.r.Za=function(a){Al(this,_.Uj,a&&a.track)};_.r.hb=function(a){Al(this,_.Tj,a&&a.track)};_.r.ib=function(a){Al(this,_.T,a&&a.track)};
444
- _.r.addTextTrack=function(a){var b=this,c;return _.E(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.B++,b.o[c]=a,kl(b,a,c),d.F(0)):_.x(d,ll(b,a),0)})};_.r.ma=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
445
- _.r.lj=function(){var a=this,b,c,d;return _.E(function(e){if(1==e.a){b=a.m.getConfiguration();Cl(a,_.Tj,b.preferredAudioLanguage);c=tl(a,_.T);if(c.some(function(f){return Bl(f)}))return e.F(2);d=sl(a,_.T);return _.x(e,new Promise(function(f){a.f.one(d,vd,f);(new _.Gk(f)).aa(1)}),2)}if(a.A)return e["return"]();Cl(a,_.T,b.preferredTextLanguage);_.y(e)})};jl.prototype.isAbrEnabled=jl.prototype.ma;jl.prototype.addTextTrack=jl.prototype.addTextTrack;jl.prototype.setTextRendition=jl.prototype.ib;
446
- jl.prototype.setAudioRendition=jl.prototype.hb;jl.prototype.setVideoRendition=jl.prototype.Za;jl.prototype.setTextTrack=jl.prototype.La;jl.prototype.setAudioTrack=jl.prototype.za;jl.prototype.setVideoTrack=jl.prototype.jb;jl.prototype.getTextTrack=jl.prototype.ua;jl.prototype.getAudioTrack=jl.prototype.ja;jl.prototype.getVideoTrack=jl.prototype.Ia;jl.prototype.getLoadingTextRendition=jl.prototype.nb;jl.prototype.getLoadingAudioRendition=jl.prototype.mb;jl.prototype.getLoadingVideoRendition=jl.prototype.cb;
447
- jl.prototype.getTextRendition=jl.prototype.Ha;jl.prototype.getAudioRendition=jl.prototype.Pa;jl.prototype.getVideoRendition=jl.prototype.ka;jl.prototype.getTextTracks=jl.prototype.ea;jl.prototype.getAudioTracks=jl.prototype.getAudioTracks;jl.prototype.getVideoTracks=jl.prototype.getVideoTracks;jl.prototype.canSelectVideoTracks=jl.prototype.Te;_.r=_.El.prototype;_.r.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(cc);};_.r.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(cc);};_.r.xb=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:1===this.length&&0>this.start(0)?0:this.start(0)};_.r.Fa=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
448
- _.r.oc=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};
449
- _.r.Ma=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.Fa();null!=d&&(c=Math.max(0,d-a))}else for(d=this.length-1;0<=d&&this.end(d)>a;--d)c+=this.end(d)-Math.max(this.start(d),a);return c};_.r.toString=function(){for(var a="",b=0;b<this.length;b++)0<b&&(a+=" "),a+=this.start(b).toFixed(3)+"-"+this.end(b).toFixed(3);return a};_.I("clpp.BufferInfo",_.El);_.El.prototype.bufferedAheadOf=_.El.prototype.Ma;
450
- _.El.prototype.isBuffered=_.El.prototype.oc;_.El.prototype.bufferEnd=_.El.prototype.Fa;_.El.prototype.bufferStart=_.El.prototype.xb;_.El.prototype.end=_.El.prototype.end;_.El.prototype.start=_.El.prototype.start;_.r=_.Fl.prototype;_.r.addEventListener=function(a,b){this.on(a,b)};_.r.removeEventListener=function(a,b){this.off(a,b)};_.r.on=function(a,b,c){return this.yd.on(a,b,c)};_.r.one=function(a,b,c){return this.yd.one(a,b,c)};_.r.off=function(a,b){return this.yd.off(a,b)};_.r.addDelegate=function(a){a&&(0<=this.vd.indexOf(a)||this.vd.push(a))};_.r.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};_.r.removeDelegate=function(a){a&&(a=this.vd.indexOf(a),0<=a&&this.vd.splice(a,1))};
451
- _.r.trigger=function(a){this.yd.trigger(a);for(var b=_.u(this.vd),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.Fl.prototype.off=_.Fl.prototype.off;_.Fl.prototype.one=_.Fl.prototype.one;_.Fl.prototype.on=_.Fl.prototype.on;_.Fl.prototype.removeEventListener=_.Fl.prototype.removeEventListener;_.Fl.prototype.addEventListener=_.Fl.prototype.addEventListener;_.I("clpp.events.ERROR",_.pe);_.I("clpp.events.LOADEDMETADATA",_.Ie);_.I("clpp.events.BUFFERING_ENDED",_.jd);_.I("clpp.events.BUFFERING_STARTED",_.kd);_.I("clpp.events.STATE_CHANGED",_.Vf);_.yl="audiotrackchanged";_.I("clpp.events.AUDIO_TRACK_CHANGED",_.yl);_.zl="texttrackchanged";_.I("clpp.events.TEXT_TRACK_CHANGED",_.zl);_.I("clpp.events.VIDEO_TRACK_CHANGED",_.xg);_.I("clpp.events.BITRATE_CHANGED",_.hd);_.Au="tracksadded";_.I("clpp.events.TRACKS_ADDED",_.Au);_.I("clpp.events.LOAD_START",Je);
452
- _.I("clpp.events.RELEASING",_.If);_.I("clpp.events.RELEASED",Hf);_.I("clpp.events.DESTROYING","destroying");_.I("clpp.events.DESTROYED","destroyed");_.I("clpp.events.VIDEO_BUFFER_CHANGED",_.wg);_.I("clpp.events.AUDIO_BUFFER_CHANGED",_.fd);_.I("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.I("clpp.events.DRM_SESSION_UPDATE",_.ie);_.I("clpp.events.DRM_SESSION_PERSISTED",_.he);_.I("clpp.events.DRM_RENEWAL_STARTED",ge);_.I("clpp.events.DRM_EXPIRATION_UPDATE",_.fe);
453
- _.I("clpp.events.AUTOPLAY_NOT_ALLOWED",_.gd);_.I("clpp.events.PLAY",_.jf);_.I("clpp.events.SEEKING",_.Of);_.I("clpp.events.SEEKED",_.Nf);_.I("clpp.events.USER_SEEKING",_.pg);_.I("clpp.events.USER_SEEKED",_.og);_.cp={SEEKING:1,NO_DATA:2};_.I("clpp.events.BufferingReasons",_.cp);_.I("clpp.events.ADS_TIMELINE_CHANGED",_.Lc);_.I("clpp.events.AD_LOADED",_.Bc);_.I("clpp.events.AD_BREAK_STARTED",_.uc);_.I("clpp.events.AD_STARTED",_.Hc);_.I("clpp.events.AD_BUFFERING",_.wc);_.I("clpp.events.AD_PROGRESS",_.Ec);
454
- _.I("clpp.events.AD_FIRST_QUARTILE",_.zc);_.I("clpp.events.AD_MIDPOINT",_.Cc);_.I("clpp.events.AD_THIRD_QUARTILE",_.Jc);_.I("clpp.events.AD_PAUSED",_.Dc);_.I("clpp.events.AD_RESUMED",_.Fc);_.I("clpp.events.AD_SKIPPED",_.Gc);_.I("clpp.events.AD_CLICKED",_.xc);_.I("clpp.events.AD_IMPRESSION",_.Ac);_.I("clpp.events.AD_COMPLETED",_.yc);_.I("clpp.events.AD_STOPPED",_.Ic);_.I("clpp.events.AD_BREAK_STOPPED",_.vc);_.I("clpp.events.SIMID_CREATIVE_STARTED",_.Qf);_.I("clpp.events.SIMID_CREATIVE_STOPPED",_.Rf);
455
- _.I("clpp.events.CASTING_STARTED",_.od);_.I("clpp.events.CASTING_ENDED","castingended");_.I("clpp.events.CAST_STATUS_CHANGED",_.pd);_.I("clpp.events.AIRPLAY_STATUS_CHANGED",_.Qc);_.I("clpp.events.AIRPLAY_CASTING_STARTED",_.Nc);_.I("clpp.events.AIRPLAY_CASTING_ENDED",_.Mc);_.Ph="timeline-cue-added";_.I("clpp.events.TIMELINE_CUE_ADDED",_.Ph);_.Rh="timeline-cue-enter";_.I("clpp.events.TIMELINE_CUE_ENTER",_.Rh);_.Sh="timeline-cue-exit";_.I("clpp.events.TIMELINE_CUE_EXIT",_.Sh);
456
- _.I("clpp.events.MPD_TYPE_CHANGED",_.Se);_.I("clpp.events.LIVE_TURNED_STATIC",_.Ge);_.I("clpp.events.VIMOND_RESPONSE",_.yg);_.I("clpp.events.PLAYLIST_ITEM_CHANGED",_.uf);_.I("clpp.events.PLAYLIST_MODIFIED",_.vf);_.I("clpp.events.CDN_SWITCH_SUCCESS",_.qd);_.I("clpp.events.ONLINE_STATUS_CHANGED",af);var Gl=["play() failed because the user didn't interact","The play method is not allowed by the user agent","The request is not allowed by the user agent or the platform"];var tu;_.I("clpp.version",_.ia);_.I("clpp.name",_.va);_.pl="application/x-mpegurl";_.I("clpp.Type",{DASH:_.Tc,HLS:_.pl,SMOOTH_STREAMING:_.Yc,MP4:_.vg});_.Oh="scte35";tu="hls-daterange";_.Mh=jg;_.I("clpp.TimelineCueType",{SCTE35:_.Oh,DASH_CALLBACK:_.Te,HLS_DATERANGE:tu,UNKNOWN:_.Mh});_.I("clpp.SpeedUpMode",{DECODER:_.Wd,SEEK:"seek"});_.I("clpp.utils.PlayerConfiguration",Il);Il.create=_.Nl;var Bu=["abort",ld,md,ke,"emptied",me,_.oe,_.pe,"interruptbegin","interruptend",_.He,_.Ie,Je,"mozaudioavailable",_.ef,_.jf,_.tf,_.Ef,_.Gf,_.Nf,_.Of,Tf,"suspend",_.fg,"volumechange",_.Bg,_.Cg,_.Lf,Hg,Gg,Eg,Fg];_.w(_.Pl,_.Fl);_.r=_.Pl.prototype;_.r.init=function(a,b){this.configuration=this.ge=b;this.A=a;this.log.info("Initializing Player surface");var c=this.A.getMedia();this.log.info("Attaching media element listeners");for(var d=_.u(Bu),e=d.next();!e.done;e=d.next())e=e.value,this.P.on(c,e,this.Dm,e!==_.pe);this.dd||(this.dd=this.yg());this.dd.initialize(this);this.A.showMediaElement()};_.r.release=function(){this.L&&(this.L.destroy(),this.L=null);return Promise.resolve()};
457
- _.r.destroy=function(){this.P.release();return this.mf.release()};_.r.canPlay=function(a,b){return _.xh[this.namespace()].canPlay(a,b)};
458
- _.r.play=function(){var a=this;if(!this.ca)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.A.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||""};Hl(d)?(a.trigger(new _.L(_.gd)),a.log.warn(_.ma)):d.name===Eb&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
459
- _.r.pause=function(){var a=this;return this.ca?new Promise(function(b,c){var d=a.getState();if(d!==_.$o&&d!==_.bp&&d!==_.ip&&d!==_.hp)c();else if(a.A.getMedia().pause(),a.getState()===_.ip)a.P.one(a,_.Vf,function(){b()});else b()}):Promise.reject("No sources specified yet. You need to load content before calling pause.")};_.r.isPaused=function(){return this.A.getMedia().paused};_.r.isEnded=function(){return this.A.getMedia().ended};_.r.getConfiguration=function(){return this.configuration};
460
- _.r.setDrmCustomDataModifier=function(a){this.Nc=a};_.r.setCdnErrorCallback=function(a){this.Ec=a};_.r.Qc=function(){return this.Nc};_.r.getSurface=function(){return this.A};_.r.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.El(b?b.buffered:void 0,a)};_.r.getPosition=function(){var a=this.A.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
461
- _.r.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.A.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.P.one(d,_.Ie,m)}function l(n){var p=b.getPosition(),
462
- q=.1>=Math.abs(a-p),t=.25<p-a,v=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,z=n.type===_.Nf,D=n.type===_.Ef,G=n.type===_.fg,F=D&&v;t=z||q&&F||G&&t;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",t,"Current Time:",p,"Target Time:",a,"Native Event:",z,"Time reached",q,"Timeupdate:",G,"Progress:",D,"ReadyState:",v,"Progress Ready:",F);t?(b.nf=!1,b.td=!1,b.P.off(d,_.Nf,l),b.P.off(d,_.fg,l),b.P.off(d,_.Ef,l),b.xh(),b.trigger(new _.L(_.og)),f()):D&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
463
- d.currentTime=a)}function m(){b.trigger(new _.L(_.pg));b.P.on(d,_.Nf,l);b.P.on(d,_.fg,l);b.P.on(d,_.Ef,l);b.log.info("Seeking to "+a+". Delta "+e);b.nf=!0;b.td=!0;d.currentTime=a}b.getState()===_.Vo?(b.log.debug("Player is in IDLE state. Postpone seek."),b.P.one(b,_.Vf,function(){switch(b.getState()){case _.$o:case _.ip:case _.hp:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
464
- _.r.getVolume=function(){var a=this.A.getMedia();if(a)return a.volume;this.log.warn("No media element available, can not report volume!");return null};_.r.setVolume=function(a){var b=this.A.getMedia();b?_.O.na(a)?0>a||1<a?this.log.warn(ta+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(ta+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.r.isMuted=function(){return this.A.getMedia().muted};
465
- _.r.setMuted=function(a){var b=this.A.getMedia();typeof a===_.id&&(b.muted=a)};_.r.getDuration=function(){return this.ca?this.A.getMedia().duration:-1};_.r.getTrackManager=function(){return this.dd};_.r.getPlaybackRate=function(){var a=this.A.getMedia();return a&&a.playbackRate||1};_.r.setPlaybackRate=function(a){var b=this.A.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.r.setSourceIndex=function(a){this.he=a};_.r.getSourceIndex=function(){return this.he};
466
- _.r.getLoadedSource=function(){return this.ca&&-1!==this.he?this.ca[this.he]:null};_.r.getPeriods=function(){return[]};_.r.getNetworkEngine=function(){return this.mf};_.r.setNetworkEngine=function(a){this.mf=a};_.r.getTextDisplayer=function(){return this.L};_.r.getTimelineCues=function(){return[]};_.r.resetAbr=function(){};
467
- _.r.bm=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.fg||a.type===_.Ef)this.Xh.debug(d);else{var e="";switch(a.type){case _.Gf:e="Rate: "+this.getPlaybackRate();break;case ke:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.jf:case _.tf:case "suspend":case _.Bg:case Tf:case _.Of:case _.Nf:case _.fg:case _.Ef:case ld:case md:b=
468
- this.getBufferInfo().Ma(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.Lf:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.Xh.info(d)}a.type!==_.pe&&this.trigger(new _.L(a.type,{detail:a}))};_.r.xh=function(){};_.Pl.prototype.getTextDisplayer=_.Pl.prototype.getTextDisplayer;_.Pl.prototype.setNetworkEngine=_.Pl.prototype.setNetworkEngine;_.Pl.prototype.getNetworkEngine=_.Pl.prototype.getNetworkEngine;var Sl;Sl=new _.K("clpp.Components");_.Ql=new Map;_.I("clpp.install",function(a){$l(a)});_.I("clpp.uninstall",function(a){am(a)});bm.prototype.release=function(){this.a=this.f=null};_.I("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.Ub,SW_SECURE_DECODE:_.Vb,HW_SECURE_CRYPTO:eb,HW_SECURE_DECODE:fb,HW_SECURE_ALL:db});_.I("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.I("clpp.drm.KeySystem",{NONE:_.Ue,CLEAR_KEY:_.cf,WIDEVINE:_.Sd,PLAYREADY:_.Qd,FAIRPLAY:_.Od,PRIMETIME:_.Md});_.fm={};_.I("clpp.drm.registerDrmEnvironment",_.gm);var jm={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,
442
+ webos:{os_version:/linux.+?([\d._]+)/i,safari:/linux.+?version\/([\d._]+).+?safari/i,chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i}};_.x(Cl,_.Mk);_.u=Cl.prototype;_.u.Af=function(){return!_.gl()};
443
+ _.u.gg=function(a,b){var c=this,d,e,f,g,h,l,m,n,p,q,t,v,z,B,F,G,A,H;return _.I(function(M){if(1==M.a){if(!b)return c.g.warn(Cb),M["return"]();d=b.track;if(!d)return c.g.warn(Fb),M["return"]();e=a===_.ik;f=a===_.jk;g=a===_.T;h=e||f;l=b.target;if(m=c.h.find(function(N){return Ql(N,d,a)}))return c.g.warn("Track from event already exists",d,m),M["return"]();n=nk(a,d);p=Ul(d);if(g){if(d.kind===_.Re)return M["return"]();void 0!==d.id?q=c.o[d.id]:(t=Object.values(c.o),q=t.find(function(N){return Ql(n,N,
444
+ a)}));n.kind&&"captions"===n.kind&&(n.mimeType=_.Uc);q&&(n.src=q.url,n.mimeType=q.mimeType)}else if(m=c.h.find(function(N){return N.type===a&&_.O.oa(N,n,["kind","label","language"])}))return m.id=d.id,p&&(c.g.debug($b+a+" track active"),c.a.set(a,m)),c.g.debug("Track from event seems to already exists, flipped native track to",d),M["return"]();_.D(M,2);v=new _.rk(n.id,n);n.renditions.push(v);c.h.push(n);z=c.m.getConfiguration().safari;return Gl(c,a,z)?_.y(M,Jl(c,n,z),5):Hl(c,a,z)?_.y(M,Kl(c,n,z),
445
+ 5):M.F(5)}if(2!=M.a)return c.g.debug(a+" Track added",n),c.m.trigger(new _.L(_.Ou)),B=Nl(c,a).length,F=!(!l||!l.length),G=l&&l.length||0,A=function(){c.g.debug($b+a+" track active. Native track active: "+(p+". Number of tracks: ")+B,d);c.a.set(a,n)},p?A():1===B&&h&&(f?A():F&&1!==G||A()),_.qh(M,0);H=_.E(M);c.g.error("Error while converting track data",H);_.C(M)})};
446
+ _.u.ig=function(a,b){if(b){var c=b.track;if(!c)this.g.warn(Fb);else if(a===_.T&&c.kind!==_.Re){var d=this.h.find(function(e){return Ql(e,c,a)});d&&(this.h.splice(this.h.indexOf(d),1),(this.a.get(a)||null)===d&&(this.a.set(a,null),Wl(this)),this.g.debug(a+" Track removed, id: ",d.id))}}else this.g.warn(Cb)};
447
+ _.u.hg=function(a,b){this.g.debug(a+" Track changed",b);a===_.T&&Wl(this);var c=Ml(this,a);if(c)for(var d={Rc:0};d.Rc<c.length;d={Rc:d.Rc},++d.Rc)if(Ul(c[d.Rc])){if(d=this.h.find(function(e){return function(f){return Ql(f,c[e.Rc],a)}}(d)))this.a.set(a,d),this.g.debug("Track change detected, id:",d.id),d===this.l.get(a)&&this.l.set(a,null),a===_.ik?this.m.trigger(new _.L(_.Rl)):a===_.T&&this.m.trigger(new _.L(_.Sl));break}};_.u.initialize=function(a){this.m=a;this.j=new xk(a.getNetworkEngine())};
448
+ _.u.load=function(){this.A=!1;var a=Ll(this,_.T);a&&(this.f.on(a,_.Oc,this.J),this.f.on(a,Of,this.M),this.f.on(a,xd,this.L));if(a=Ll(this,_.ik))this.f.on(a,_.Oc,this.G),this.f.on(a,Of,this.I),this.f.on(a,xd,this.H);if(a=Ll(this,_.jk))this.f.on(a,_.Oc,this.P),this.f.on(a,Of,this.W),this.f.on(a,xd,this.T);this.f.one(this.m,pd,this.kk.bind(this))};_.u.release=function(){this.A=!0;this.h=[];this.o={};this.a.clear();this.l.clear();this.f.release()};_.u.destroy=function(){this.release();this.m=null};
449
+ _.u.getVideoTracks=function(){return Nl(this,_.jk)};_.u.getAudioTracks=function(){return Nl(this,_.ik)};_.u.ma=function(){return Nl(this,_.T)};_.u.qa=function(){var a=this,b=this.a.get(_.jk)||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};_.u.Za=function(){return Ol(this,_.ik)};_.u.Ra=function(){return Ol(this,_.T)};_.u.pb=function(){return Pl(this,_.jk)};
450
+ _.u.Bb=function(){return Pl(this,_.ik)};_.u.Cb=function(){return Pl(this,_.T)};_.u.Ta=function(){return this.a.get(_.jk)||null};_.u.pa=function(){return this.a.get(_.ik)||null};_.u.Ea=function(){return this.a.get(_.T)||null};_.u.xb=function(a){Tl(this,_.jk,a)};_.u.Ia=function(a){Tl(this,_.ik,a)};_.u.Va=function(a){Tl(this,_.T,a)};_.u.lb=function(a){Tl(this,_.jk,a&&a.track)};_.u.vb=function(a){Tl(this,_.ik,a&&a.track)};_.u.wb=function(a){Tl(this,_.T,a&&a.track)};
451
+ _.u.addTextTrack=function(a){var b=this,c;return _.I(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.C++,b.o[c]=a,Dl(b,a,c),d.F(0)):_.y(d,El(b,a),0)})};_.u.xa=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
452
+ _.u.kk=function(){var a=this,b,c,d;return _.I(function(e){if(1==e.a){b=a.m.getConfiguration();Vl(a,_.ik,b.preferredAudioLanguage);c=Ml(a,_.T);if(c.some(function(f){return Ul(f)}))return e.F(2);d=Ll(a,_.T);return _.y(e,new Promise(function(f){a.f.one(d,xd,f);(new _.Zk(f)).fa(1)}),2)}if(a.A)return e["return"]();Vl(a,_.T,b.preferredTextLanguage);_.C(e)})};Cl.prototype.isAbrEnabled=Cl.prototype.xa;Cl.prototype.addTextTrack=Cl.prototype.addTextTrack;Cl.prototype.setTextRendition=Cl.prototype.wb;
453
+ Cl.prototype.setAudioRendition=Cl.prototype.vb;Cl.prototype.setVideoRendition=Cl.prototype.lb;Cl.prototype.setTextTrack=Cl.prototype.Va;Cl.prototype.setAudioTrack=Cl.prototype.Ia;Cl.prototype.setVideoTrack=Cl.prototype.xb;Cl.prototype.getTextTrack=Cl.prototype.Ea;Cl.prototype.getAudioTrack=Cl.prototype.pa;Cl.prototype.getVideoTrack=Cl.prototype.Ta;Cl.prototype.getLoadingTextRendition=Cl.prototype.Cb;Cl.prototype.getLoadingAudioRendition=Cl.prototype.Bb;Cl.prototype.getLoadingVideoRendition=Cl.prototype.pb;
454
+ Cl.prototype.getTextRendition=Cl.prototype.Ra;Cl.prototype.getAudioRendition=Cl.prototype.Za;Cl.prototype.getVideoRendition=Cl.prototype.qa;Cl.prototype.getTextTracks=Cl.prototype.ma;Cl.prototype.getAudioTracks=Cl.prototype.getAudioTracks;Cl.prototype.getVideoTracks=Cl.prototype.getVideoTracks;Cl.prototype.canSelectVideoTracks=Cl.prototype.Af;_.u=_.Xl.prototype;_.u.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(fc);};_.u.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(fc);};_.u.Ha=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)};_.u.da=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
455
+ _.u.rb=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};
456
+ _.u.Da=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.da();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};_.u.toString=function(){for(var a="",b=0;b<this.length;b++)0<b&&(a+=" "),a+=this.start(b).toFixed(3)+"-"+this.end(b).toFixed(3);return a};_.J("clpp.BufferInfo",_.Xl);_.Xl.prototype.bufferedAheadOf=_.Xl.prototype.Da;
457
+ _.Xl.prototype.isBuffered=_.Xl.prototype.rb;_.Xl.prototype.bufferEnd=_.Xl.prototype.da;_.Xl.prototype.bufferStart=_.Xl.prototype.Ha;_.Xl.prototype.end=_.Xl.prototype.end;_.Xl.prototype.start=_.Xl.prototype.start;_.u=_.Yl.prototype;_.u.addEventListener=function(a,b){this.on(a,b)};_.u.removeEventListener=function(a,b){this.off(a,b)};_.u.on=function(a,b,c){return this.Nd.on(a,b,c)};_.u.one=function(a,b,c){return this.Nd.one(a,b,c)};_.u.off=function(a,b){return this.Nd.off(a,b)};_.u.forwardEventsTo=function(a){a&&(0<=this.Ld.indexOf(a)||this.Ld.push(a))};_.u.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};
458
+ _.u.stopForwardingEventsTo=function(a){a&&(a=this.Ld.indexOf(a),0<=a&&this.Ld.splice(a,1))};_.u.trigger=function(a){this.Nd.trigger(a);for(var b=_.w(this.Ld),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.Yl.prototype.off=_.Yl.prototype.off;_.Yl.prototype.one=_.Yl.prototype.one;_.Yl.prototype.on=_.Yl.prototype.on;_.Yl.prototype.removeEventListener=_.Yl.prototype.removeEventListener;_.Yl.prototype.addEventListener=_.Yl.prototype.addEventListener;_.J("clpp.events.ERROR",_.se);_.J("clpp.events.LOADEDMETADATA",_.Ke);_.J("clpp.events.BUFFERING_ENDED",_.md);_.J("clpp.events.BUFFERING_STARTED",_.nd);_.J("clpp.events.STATE_CHANGED",_.hg);_.Rl="audiotrackchanged";_.J("clpp.events.AUDIO_TRACK_CHANGED",_.Rl);_.Sl="texttrackchanged";_.J("clpp.events.TEXT_TRACK_CHANGED",_.Sl);_.J("clpp.events.VIDEO_TRACK_CHANGED",_.Ig);_.J("clpp.events.BITRATE_CHANGED",_.kd);_.Ou="tracksadded";_.J("clpp.events.TRACKS_ADDED",_.Ou);_.J("clpp.events.LOAD_START",Le);
459
+ _.J("clpp.events.RELEASING",_.Nf);_.J("clpp.events.RELEASED",Mf);_.J("clpp.events.DESTROYING","destroying");_.J("clpp.events.DESTROYED","destroyed");_.J("clpp.events.VIDEO_BUFFER_CHANGED",_.Hg);_.J("clpp.events.AUDIO_BUFFER_CHANGED",_.id);_.J("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.J("clpp.events.DRM_SESSION_UPDATE",_.le);_.J("clpp.events.DRM_SESSION_PERSISTED",_.ke);_.J("clpp.events.DRM_RENEWAL_STARTED",je);_.J("clpp.events.DRM_EXPIRATION_UPDATE",_.ie);
460
+ _.J("clpp.events.AUTOPLAY_NOT_ALLOWED",_.jd);_.J("clpp.events.PLAY",_.mf);_.J("clpp.events.SEEKING",_.$f);_.J("clpp.events.SEEKED",_.Zf);_.J("clpp.events.USER_SEEKING",_.Bg);_.J("clpp.events.USER_SEEKED",_.Ag);_.vp={SEEKING:1,NO_DATA:2};_.J("clpp.events.BufferingReasons",_.vp);_.J("clpp.events.ADS_TIMELINE_CHANGED",_.Pc);_.J("clpp.events.AD_LOADED",_.Fc);_.J("clpp.events.AD_BREAK_STARTED",_.yc);_.J("clpp.events.AD_STARTED",_.Lc);_.J("clpp.events.AD_BUFFERING",_.Ac);_.J("clpp.events.AD_PROGRESS",_.Ic);
461
+ _.J("clpp.events.AD_FIRST_QUARTILE",_.Dc);_.J("clpp.events.AD_MIDPOINT",_.Gc);_.J("clpp.events.AD_THIRD_QUARTILE",_.Nc);_.J("clpp.events.AD_PAUSED",_.Hc);_.J("clpp.events.AD_RESUMED",_.Jc);_.J("clpp.events.AD_SKIPPED",_.Kc);_.J("clpp.events.AD_CLICKED",_.Bc);_.J("clpp.events.AD_IMPRESSION",_.Ec);_.J("clpp.events.AD_COMPLETED",_.Cc);_.J("clpp.events.AD_STOPPED",_.Mc);_.J("clpp.events.AD_BREAK_STOPPED",_.zc);_.J("clpp.events.SIMID_CREATIVE_STARTED",_.bg);_.J("clpp.events.SIMID_CREATIVE_STOPPED",_.cg);
462
+ _.J("clpp.events.CASTING_STARTED",_.rd);_.J("clpp.events.CASTING_ENDED","castingended");_.J("clpp.events.CAST_STATUS_CHANGED",_.sd);_.J("clpp.events.AIRPLAY_STATUS_CHANGED",_.Sc);_.J("clpp.events.AIRPLAY_CASTING_STARTED",_.Rc);_.J("clpp.events.AIRPLAY_CASTING_ENDED",_.Qc);_.fi="timeline-cue-added";_.J("clpp.events.TIMELINE_CUE_ADDED",_.fi);_.hi="timeline-cue-enter";_.J("clpp.events.TIMELINE_CUE_ENTER",_.hi);_.ii="timeline-cue-exit";_.J("clpp.events.TIMELINE_CUE_EXIT",_.ii);
463
+ _.J("clpp.events.MPD_TYPE_CHANGED",_.Ve);_.J("clpp.events.LIVE_TURNED_STATIC",_.Ie);_.J("clpp.events.VIMOND_RESPONSE",_.Jg);_.J("clpp.events.PLAYLIST_ITEM_CHANGED",_.yf);_.J("clpp.events.PLAYLIST_MODIFIED",_.zf);_.J("clpp.events.SC_PLAYLIST_TIMELINE_CHANGED",_.Yf);_.J("clpp.events.SC_PLAYLIST_ITEM_CHANGED",_.Wf);_.J("clpp.events.SC_PLAYLIST_ENDED",_.Vf);_.J("clpp.events.SC_PLAYLIST_LIVE_TURNED_STATIC",_.Xf);_.J("clpp.events.CDN_SWITCH_SUCCESS",_.td);_.J("clpp.events.ONLINE_STATUS_CHANGED",df);var Zl=["play() failed because the user didn't interact","The play method is not allowed by the user agent","The request is not allowed by the user agent or the platform"];var Hu;_.J("clpp.version",_.ja);_.J("clpp.name",_.wa);_.Il="application/x-mpegurl";_.J("clpp.Type",{DASH:_.Vc,HLS:_.Il,SMOOTH_STREAMING:_.$c,MP4:_.Gg});_.di="scte35";Hu="hls-daterange";_.bi=wg;_.J("clpp.TimelineCueType",{SCTE35:_.di,DASH_CALLBACK:_.We,HLS_DATERANGE:Hu,UNKNOWN:_.bi});_.J("clpp.SpeedUpMode",{DECODER:_.Yd,SEEK:"seek"});_.J("clpp.CodecSwitchingStrategy",{PREVENT:_.Gf,SMOOTH:_.eg});_.J("clpp.utils.PlayerConfiguration",am);am.create=_.fm;var Xu=["abort",od,pd,ne,"emptied",pe,_.re,_.se,"interruptbegin","interruptend",_.Je,_.Ke,Le,"mozaudioavailable",_.hf,_.mf,_.xf,_.Jf,_.Lf,_.Zf,_.$f,fg,"suspend",_.sg,"volumechange",_.Pg,_.Qg,_.Tf,Vg,Ug,Sg,Tg];_.x(_.hm,_.Yl);_.u=_.hm.prototype;_.u.init=function(a,b){this.configuration=this.Vc=b;this.D=a;this.log.info("Initializing Player surface");var c=this.D.getMedia();this.log.info("Attaching media element listeners");for(var d=_.w(Xu),e=d.next();!e.done;e=d.next())e=e.value,this.P.on(c,e,this.Vi,e!==_.se);this.Md||(this.Md=this.sh());this.Md.initialize(this);this.D.showMediaElement()};_.u.release=function(){this.ia&&(this.ia.destroy(),this.ia=null);return Promise.resolve()};
464
+ _.u.destroy=function(){this.P.release();return this.mg.release()};_.u.canPlay=function(a,b){return _.Nh[this.namespace()].canPlay(a,b)};_.u.getTimeline=function(){return null};_.u.setupPlaylist=function(){return Promise.reject(_.Hb)};_.u.appendLoad=function(){return Promise.reject(_.Hb)};_.u.seekWith=function(){return Promise.reject(_.Hb)};
465
+ _.u.play=function(){var a=this;if(!this.$)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||""};$l(d)?(a.trigger(new _.L(_.jd)),a.log.warn(_.na)):d.name===Ib&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
466
+ _.u.pause=function(){var a=this;return this.$?new Promise(function(b,c){var d=a.getState();if(d!==_.sp&&d!==_.up&&d!==_.Bp&&d!==_.Ap)c();else if(a.D.getMedia().pause(),a.getState()===_.Bp)a.P.one(a,_.hg,function(){b()});else b()}):Promise.reject("No sources specified yet. You need to load content before calling pause.")};_.u.isPaused=function(){return this.D.getMedia().paused};_.u.isEnded=function(){return this.D.getMedia().ended};_.u.getConfiguration=function(){return this.configuration};
467
+ _.u.setDrmCustomDataModifier=function(a){this.hd=a};_.u.setCdnErrorCallback=function(a){this.Uc=a};_.u.ld=function(){return this.hd};_.u.getSurface=function(){return this.D};_.u.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.Xl(b?b.buffered:void 0,a)};_.u.getPosition=function(){return this.getMediaPosition()};_.u.getMediaPosition=function(){var a=this.D.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
468
+ _.u.seek=function(a){var b=this,c=this.getMediaPosition();if(void 0===a||null===a||typeof a!==_.k||a===c)return Promise.resolve();var d=this.D.getMedia();if(!d)return this.log.warn("No media element available, can not set current time!"),Promise.reject();var e=a-c;return.1>=Math.abs(e)?(this.log.info("Skip seek. Delta "+Math.abs(e)+" \x3c 0.1"),Promise.resolve()):new Promise(function(f,g){function h(){if(d.readyState>HTMLMediaElement.HAVE_NOTHING)m();else b.P.one(d,_.Ke,m)}function l(n){var p=b.getMediaPosition(),
469
+ q=.1>=Math.abs(a-p),t=.25<p-a,v=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,z=n.type===_.Zf,B=n.type===_.Jf,F=n.type===_.sg,G=B&&v;t=z||q&&G||F&&t;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",t,"Current Time:",p,"Target Time:",a,"Native Event:",z,"Time reached",q,"Timeupdate:",F,"Progress:",B,"ReadyState:",v,"Progress Ready:",G);t?(b.og=!1,b.ae=!1,b.P.off(d,_.Zf,l),b.P.off(d,_.sg,l),b.P.off(d,_.Jf,l),b.ri(),b.trigger(new _.L(_.Ag)),f()):B&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
470
+ d.currentTime=a)}function m(){b.trigger(new _.L(_.Bg));b.P.on(d,_.Zf,l);b.P.on(d,_.sg,l);b.P.on(d,_.Jf,l);b.log.info("Seeking to "+a+". Delta "+e);b.og=!0;b.ae=!0;d.currentTime=a}b.getState()===_.np?(b.log.debug("Player is in IDLE state. Postpone seek."),b.P.one(b,_.hg,function(){switch(b.getState()){case _.sp:case _.Bp:case _.Ap:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
471
+ _.u.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};_.u.setVolume=function(a){var b=this.D.getMedia();b?_.O.ya(a)?0>a||1<a?this.log.warn(ua+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(ua+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.u.isMuted=function(){return this.D.getMedia().muted};
472
+ _.u.setMuted=function(a){var b=this.D.getMedia();typeof a===_.ld&&(b.muted=a)};_.u.getDuration=function(){return this.getMediaDuration()};_.u.getMediaDuration=function(){return this.$?this.D.getMedia().duration:-1};_.u.getTrackManager=function(){return this.Md};_.u.getPlaybackRate=function(){var a=this.D.getMedia();return a&&a.playbackRate||1};_.u.setPlaybackRate=function(a){var b=this.D.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.u.setSourceIndex=function(a){this.Qe=a};_.u.getSourceIndex=function(){return this.Qe};
473
+ _.u.getLoadedSource=function(){return this.$&&-1!==this.Qe?this.$[this.Qe]:null};_.u.getPeriods=function(){return[]};_.u.getNetworkEngine=function(){return this.mg};_.u.setNetworkEngine=function(a){this.mg=a};_.u.getTextDisplayer=function(){return this.ia};_.u.getTimelineCues=function(){return[]};_.u.resetAbr=function(){};
474
+ _.u.$m=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.sg||a.type===_.Jf)this.Gg.debug(d);else{var e="";switch(a.type){case _.Lf:e="Rate: "+this.getPlaybackRate();break;case ne:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.mf:case _.xf:case "suspend":case _.Pg:case fg:case _.$f:case _.Zf:case _.sg:case _.Jf:case od:case pd:b=
475
+ this.getBufferInfo().Da(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.Tf:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.Gg.info(d)}a.type!==_.se&&this.trigger(new _.L(a.type,{detail:a}))};_.u.ri=function(){};_.hm.prototype.getTextDisplayer=_.hm.prototype.getTextDisplayer;_.hm.prototype.setNetworkEngine=_.hm.prototype.setNetworkEngine;_.hm.prototype.getNetworkEngine=_.hm.prototype.getNetworkEngine;var km;km=new _.K("clpp.Components");_.im=new Map;_.J("clpp.install",function(a){sm(a)});_.J("clpp.uninstall",function(a){tm(a)});um.prototype.release=function(){this.a=this.f=null};_.J("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.Xb,SW_SECURE_DECODE:_.Yb,HW_SECURE_CRYPTO:hb,HW_SECURE_DECODE:ib,HW_SECURE_ALL:gb});_.J("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.J("clpp.drm.KeySystem",{NONE:_.Xe,CLEAR_KEY:_.ff,WIDEVINE:_.Ud,PLAYREADY:_.Sd,FAIRPLAY:_.Qd,PRIMETIME:_.Pd});_.ym={};_.J("clpp.drm.registerDrmEnvironment",_.zm);var Cm={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,
469
476
  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,
470
477
  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,
471
478
  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,
@@ -479,97 +486,105 @@ this.getBufferInfo().Ma(c);e="State "+this.getSurface().getMedia().readyState+"
479
486
  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,
480
487
  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,
481
488
  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,
482
- 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]};_.lm.prototype.Sa=function(a,b){this.f[a]=b};_.I("clpp.drm.DrmEnvironment",_.lm);_.lm.prototype.setDrmSystem=_.lm.prototype.Sa;_.mm.prototype.getPosition=function(){return this.a};_.mm.prototype.Ga=function(){return this.f.byteLength};_.mm.prototype.seek=function(a){(0>a||a>=this.f.byteLength)&&_.nm();this.a=a};_.pm.prototype.getPosition=function(){return this.a};_.pm.prototype.Ga=function(){return this.f.byteLength};_.pm.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.rm();this.a+=a};_.pm.prototype.seek=function(a){if(0>a||a>=this.f.byteLength)throw _.rm();this.a=a};_.I("clpp.utils.dataview.DataViewReader",_.pm);_.r=_.ym.prototype;_.r.M=function(a,b){var c=Cm(a);this.h[c]=Cu;this.f[c]=b;return this};_.r.Y=function(a,b){var c=Cm(a);this.h[c]=Du;this.f[c]=b;return this};_.r.stop=function(){this.a=!0};_.r.parse=function(a,b){var c=_.Xi(a);c=new _.pm(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.qm(c)&&!this.a;)this.xe(0,c,b)};
483
- _.r.xe=function(a,b,c){var d=b.getPosition(),e=_.W(b),f=_.W(b),g=!1;this.g.debug("Parsing MP4 box",_.Dm(f));switch(e){case 0:e=b.Ga()-d;break;case 1:e=_.vm(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.h[f]==Du&&(m=_.W(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.Ga()&&(n=b.Ga());n-=b.getPosition();b=0<n?_.xm(b,n):new Uint8Array(0);b=new _.pm(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,
484
- has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.Ga()-b.getPosition()),b.skip(a)};_.I("clpp.utils.Mp4Parser",_.ym);_.ym.typeToString=_.Dm;_.ym.allData=_.Bm;_.ym.sampleDescription=_.Am;_.ym.children=_.zm;_.ym.prototype.parseNext=_.ym.prototype.xe;_.ym.prototype.parse=_.ym.prototype.parse;_.ym.prototype.stop=_.ym.prototype.stop;_.ym.prototype.fullBox=_.ym.prototype.Y;_.ym.prototype.box=_.ym.prototype.M;_.ym.headerSize=_.Em;var Cu=0,Du=1;_.I("clpp.utils.FairplayUtils",Fm);Fm.parseFairPlayResponse=_.Nm;Fm.formatFairPlayRequest=_.Mm;Fm.createFairplayPayload=Lm;Fm.extractContentId=_.Jm;Fm.extractExtXKeyUri=Im;var Ym=new _.K("clpp.drm.DrmToday"),Pm="PRODUCTION",Qm="STAGING",Rm="TEST",Eu={PRODUCTION:Pm,STAGING:Qm,TEST:Rm};_.I("clpp.drm.DrmToday.Environment",Eu);_.I("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
485
- for(var Tm="/license-proxy-widevine/cenc/",Um="/license-proxy-headerauth/drmtoday/RightsManager.asmx",Vm="/license-server-fairplay/",gn={"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",
486
- 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"},Fu={video:[db,fb,eb,_.Vb,_.Ub],audio:[_.Vb,_.Ub]},Gu={video:["3000",
487
- "2000","150"],audio:["2000","150"]},Hu=_.u(Object.keys(Eu)),Iu=Hu.next();!Iu.done;Iu=Hu.next()){var Om=Iu.value,Ju=Ba;Om!==Pm&&(Ju+="_"+Om);var Ku=new _.lm(Ju),Lu=null;switch(Om){case Pm:Lu=km("V1_PROD");break;case Qm:Lu=km("V2");break;case Rm:Lu=null}Ku.Sa(_.Sd,{licenseUrl:Wm(_.Sd),videoRobustness:Fu.video,audioRobustness:Fu.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:Lu,modifiers:{licenseRequest:_.an,licenseResponse:_.fn}});Ku.Sa(_.Od,{licenseUrl:Wm(_.Od),
488
- certificateUrl:Sm()+"/license-server-fairplay/cert/",modifiers:{licenseRequest:_.cn,licenseResponse:_.dn,extractContentId:_.Zm,certificateRequest:_.en}});Ku.Sa(_.Qd,{licenseUrl:Wm(_.Qd),videoRobustness:Gu.video,audioRobustness:Gu.audio,modifiers:{licenseRequest:bn}});_.gm(Ku)};_.I("clpp.drm.eme.EmeFactory",jn);var kn=[];jn.Apis={STANDARD:Sb,APPLE:"APPLE",WEBKIT:"WEBKIT",NOP:"NOP"};var tn;_.An=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];tn=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.w(sn,rn);_.w(_.wn,rn);var In=!!(performance&&performance.mark&&performance.measure);Ln.prototype.j=function(a){if(1<a.version)_.J("Unrecognized PSSH version found!");else{var b=_.kj(_.xm(a.reader,16)),c=[];if(0<a.version)for(var d=_.W(a.reader),e=0;e<d;++e){var f=_.kj(_.xm(a.reader,16));c.push(f)}d=_.W(a.reader);a.reader.skip(d);this.h.push.apply(this.h,c);this.f.push(b);this.a.push({start:a.start,end:a.start+a.size-1});a.reader.getPosition()!=a.reader.Ga()&&_.J("Mismatch between box size and data size!")}};_.r=_.Pn.prototype;_.r.destroy=function(){var a=this;return _.E(function(b){if(1==b.a){if(a.j)return _.x(b,a.Da,0);a.j=!0;return _.x(b,Rn(a),4)}a.Da.resolve();return b.F(0)})};_.r.keySystem=function(){return this.a?_.ro(this.a.keySystem):""};_.r.getDrmInfo=function(){return this.a};
489
- _.r.wh=function(a){var b=this,c,d,e;return _.E(function(f){if(1==f.a){if(b.G&&b.K===Sn)return f["return"]();c=Math.floor(a.timeStamp);d="drm.msg."+c+ha;e="drm.msg."+c+".end";_.Jn(d);return!b.h.delayLicenseRequestUntilPlayed||b.B&&!b.B.paused||b.Wa?_.x(f,Co(b,a),2):(b.ha.push(a),f.F(2))}_.Jn(e);_.Kn("drm.sess.msg."+c,d,e);_.y(f)})};
490
- _.r.rh=function(a){var b=this,c=a.target;this.g.info("Key status changed for session",c.sessionId);var d=this.f.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if(typeof h==_.Yf){var l=h;h=g;g=l}if(yo(b.a.keySystem)&&16===h.byteLength&&_.Ik()){l=_.dj(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!==Wf&&(d.loaded=!0);d&&d.Ja&&d.Ja.resolve();"expired"===g&&(e=!0);l=_.Xi(h);var q=_.kj(l);"00"===q&&d&&d.keyId?q=d.keyId:
491
- b.a.keySystem.startsWith(_.Od)&&16!==l.byteLength&&(q=_.R.fromCharCode(l));(l=q||"")?b.g.info(qb+q+"': "+g):b.g.info("Key status global keys: "+g);b.l.set(l,g);d&&!d.keyId&&b.f.forEach(function(t,v){v===c||t.keyId!==q||t.loaded||(t.loaded=!0)})});d&&d.loaded&&d.ab.forEach(function(g){b.l.get(g)===Wf&&(b.g.warn(qb+g+fa),b.l.set(g,_.df))});for(a=0;a<this.a.initData.length;a++){var f=this.a.initData[a];f.keyId&&this.l.get(f.keyId)===Wf&&_.lj(f.initData,d.initData)&&(this.g.warn(qb+f.keyId+fa),this.l.set(f.keyId,
492
- _.df))}a=c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.ub&&(this.g.debug("Session has expired",c.sessionId),(a=this.f.get(c))&&a.Lc&&a.Lc.stop(),this.f["delete"](c),c.close()["catch"](function(){}));to(this)&&(this.H.resolve(),1!==this.f.size||e?this.ga.aa(.5):Nn(this))};var Sn=0,Mn=3;_.Go=new Map;_.Ho=new _.K("clpp.text");_.Qo.prototype.getStats=function(){return{width:this.w,height:this.h,streamBandwidth:this.o,decodedFrames:this.j,droppedFrames:this.l,corruptedFrames:this.D,estimatedBandwidth:this.f,loadLatency:this.A,playTime:Mo(this.a,_.ip),pauseTime:Mo(this.a,_.hp),bufferingTime:Mo(this.a,_.$o),stateHistory:No(this.a),switchHistory:Po(this.B)}};_.So.prototype.value=function(){void 0==this.a&&(this.a=this.f());return this.a};var To=new _.So(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.Ie],[HTMLMediaElement.HAVE_CURRENT_DATA,_.He],[HTMLMediaElement.HAVE_FUTURE_DATA,ld],[HTMLMediaElement.HAVE_ENOUGH_DATA,md]])});Yo.prototype.dc=function(a,b){this.m&&this.m.trigger(new _.L(a,{detail:b}))};Yo.prototype.getState=function(){return ap(this,"")};Yo.prototype.T=function(a){(a=a&&a.detail)&&a.severity&&a.severity===_.Q&&ep(this,_.fp)};Yo.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.m.namespace());this.a.release()};_.I("clpp.utils.media.detectType",kp);var np=new _.K("clpp.sources");_.w(op,_.Pl);_.r=op.prototype;_.r.init=function(a,b){_.Pl.prototype.init.call(this,a,b);this.j=new Yo(this);ep(this.j,_.Vo)};_.r.namespace=function(){return Hd};
493
- _.r.unload=function(){var a=this,b;return _.E(function(c){if(!a.ca)return c.F(0);a.log.debug(_.Qb,a.ca);a.D&&(a.D.stop(),a.D=null);(b=a.getTrackManager())&&b.release();a.B&&(a.B.destroy(),a.B=null);a.L&&(a.L.destroy(),a.L=null);a.l&&a.l.release();a.o&&(a.o.destroy(),a.o=null);_.Hh(a.h);a.f&&(a.f=new _.Qo);a.G=null;a.ca=null;a.H=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());return _.x(c,sp(a),0)})};
494
- _.r.release=function(){var a=this;return _.Pl.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.j&&ep(a.j,_.Vo)})};
495
- _.r.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.Pl.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Fa);var b=a.getTrackManager();b&&b.destroy();a.l&&(a.l.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.l=null);a.j&&(a.j.destroy(),a.j=null);a.f=null})};_.r.getDrmInfo=function(){return this.o?this.o.getDrmInfo():null};
496
- _.r.detach=function(){};_.r.getTrackManager=function(){return this.dd};
497
- _.r.load=function(a){var b=this,c,d,e,f,g;return _.E(function(h){switch(h.a){case 1:if(b.w)return h["return"](pp());if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.O;d=b.A.getMedia();b.I=Date.now()/1E3;b.f=new _.Qo;b.h.on(b,_.Vf,function(){b.f&&_.Lo(b.f.a,b.getState())});ep(b.j,_.gp);b.ca=_.mp(a);b.configuration=_.Nl(b.ge,a);b.log.debug(_.ub,b.configuration);b.log.debug(_.Jb,b.ca);e=_.Jo(b.configuration,[_.ve,"native"]);
498
- b.L=e.create(b);b.L.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.Rl(_.bg)&&!_.Pk()&&(b.B=new hi(b),b.B.start(d));b.l?b.l.release():b.l=new Jh(b);Lh(b.l,d);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.R(b.configuration.volume)||b.setVolume(b.configuration.volume);c.R(b.configuration.muted)||b.setMuted(b.configuration.muted);b.h.one(d,ld,function(){b.trigger(new _.L(_.Au))});null==b.configuration.startTime&&xp(b,d);_.Nk()&&yp(b,d);_.A(h,2);return _.x(h,rp(b,d),4);case 4:return _.x(h,
499
- up(b),5);case 5:return _.x(h,wp(b).O,6);case 6:_.bh(h,0);break;case 2:g=_.C(h),b.H=!1,b.onError(g),_.y(h)}})};_.r.onError=function(a){this.H||(a.severity===_.Q&&null!==this.j&&ep(this.j,_.fp),this.trigger(new _.L(_.pe,{detail:a})))};_.r.yg=function(){return new jl};_.r.getState=function(){return null!==this.j?this.j.getState().currentState:_.Wo};
500
- _.r.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};_.r.getSeekRange=function(){var a=this.getSurface().getMedia();if(a&&a.src){a=a.seekable;if(a.length)return this.G=a={start:a.start(0),end:a.end(a.length-1)};if(this.G)return this.G}return{start:0,end:0}};
501
- _.r.isLive=function(){return this.a&&this.a.src?Infinity===this.a.duration:!1};
502
- _.r.getStats=function(){if(!this.f||!this.a)return _.Ro();this.f&&_.Lo(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.w=a.videoWidth;b.h=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.l=Number(a.droppedVideoFrames),b.j=c,this.f.D=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.ka())a.bandwidth&&(this.f.o=a.bandwidth),a.ld&&(this.f.f=a.ld);return this.f.getStats()};
503
- _.r.getTimelineCues=function(){return this.l?this.l.getTimelineCues():[]};zp.prototype.a=function(){return Hd};zp.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.Tc,e=c===_.Yc,f=c===_.pl;return _.Mk()||d||e||f&&!_.Nk()?0:""!==Sk().canPlayType(c)?f&&_.Nk()&&(window.ManagedMediaSource||window.MediaSource&&MediaSource.isTypeSupported)&&!b.streaming.preferNativeHlsOnSafari?1:2:0};zp.prototype.create=function(){return new op};_.zh(new zp);_.I("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.I("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1});_.I("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var Bp=new _.K("clpp.ads"),Ap=[];_.I("clpp.utils.dom.createHTMLElement",_.Ip);Jp.prototype.set=function(a){this.h.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=Lp(this,a)};Jp.prototype.get=function(){return this.a};_.r=Pp.prototype;_.r.getMedia=function(){return this.f.get()};_.r.getContainer=function(){return this.a.get()};_.r.getSafeContainer=function(){return this.a};_.r.getId=function(){return this.l};_.r.getUniqueCssClass=function(){return this.o};_.r.getCastElement=function(){return this.h};_.r.isFullscreen=function(){return!!document.fullscreenElement};_.r.hideMediaElement=function(){var a=this.getMedia();a?_.Gp(a,yd):this.g.debug("No media element available that could be hidden")};
504
- _.r.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(yd):this.g.debug("No media element available that could be shown")};_.r.addElementToContainer=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.getContainer();if(!d)throw Error("No container is available. Unable to add element");b&&_.Gp(a,_.xd);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
505
- _.r.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.r.hide=function(a){_.Gp(a,yd)};_.r.show=function(a){a.classList.remove(yd)};_.r.release=function(){this.j.release()};Pp.prototype.removeElementFromContainer=Pp.prototype.removeElementFromContainer;Pp.prototype.addElementToContainer=Pp.prototype.addElementToContainer;Pp.prototype.getCastElement=Pp.prototype.getCastElement;
506
- Pp.prototype.getContainer=Pp.prototype.getContainer;Pp.prototype.getMedia=Pp.prototype.getMedia;var Mp={disableContainer:!1,webOSStartupPatch:!0,crossorigin:"anonymous",containerEl:null},Np=1;Rp.prototype.release=function(){this.a.release();Vp(this);this.m=null};_.I("clpp.polyfill.installAll",Yp);var Xp=[];_.I("clpp.polyfill.register",_.Zp);aq.prototype.verify=function(a,b){var c=_.R.Ua,d={kty:"RSA",n:a.n,e:a.e},e=this.h+"."+this.f,f=this.j;return new Promise(function(g,h){try{var l=window&&window.crypto&&window.crypto.subtle}catch(n){}if(l){var m={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};l.importKey("jwk",d,m,!1,["verify"]).then(function(n){var p=c(e),q=_.ij(f);return l.verify(m,n,q.buffer,p.buffer)}).then(function(n){n?g():h(Zb)})["catch"](h)}else b?h("Web Crypto API is not supported"):g()})};var Mu={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},Jl="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";bq.prototype.verify=function(){var a=this;return(new Promise(function(b,c){try{var d=cq(a);b(d)}catch(e){c()}})).then(function(b){return b.verify(Mu)})["catch"](function(b){if(b&&b!==Zb){var c=window.location.href;var d=new _.qi(c);c=d.gb||d.Oa?d:new _.qi("//"+c);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(c.Oa))return Promise.resolve()}throw b;})};var nq="vod",mq="live";_.w(X,_.Fl);_.r=X.prototype;_.r.on=function(a,b,c){return _.Fl.prototype.on.call(this,a,b,c)};_.r.one=function(a,b,c){return _.Fl.prototype.one.call(this,a,b,c)};_.r.off=function(a,b){return _.Fl.prototype.off.call(this,a,b)};_.r.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.L(_.pe,{detail:a}))};_.r.lc=function(a){a=this.J[a];void 0===a&&(a=null);return a};_.r.getSurface=function(){return this.h};_.r.getConfiguration=function(){return _.O.Na(this.f)};
507
- _.r.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.r.detach=function(){return this.a?this.a.detach():Promise.resolve()};_.r.release=function(){var a=this;if(null!=this.l)return this.g.info("Player release already in progress"),this.l;this.g.debug("Releasing player");this.l=uq(this);return this.l["finally"](function(){a.g.debug("Player released");a.l=null})};
508
- _.r.destroy=function(){var a=this;if(this.D)return this.g.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.D=!0;return this.release().then(function(){a.g.debug(Fa);a.trigger(new _.L("destroying"));return a.tc(_.Ye)}).then(function(){a.a&&a.a.removeDelegate(a);a.yd.clear();a.U.release();if(a.a)return a.a.destroy()}).then(function(){return a.A.destroy()}).then(function(){Zl();a.a=null;a.trigger(new _.L("destroyed"))})};
509
- _.r.load=function(a){var b=this,c;return _.E(function(d){switch(d.a){case 1:return _.A(d,2),_.Jn(sf),b.P=!0,_.x(d,_.zq(b,a),4);case 4:return _.x(d,_.Aq(b),5);case 5:return _.x(d,_.wq(b),6);case 6:_.Jn(rf);_.Kn("player.load",sf,rf);_.bh(d,0);break;case 2:c=_.C(d);if(b.l)throw b.g.info("Load interrupted while a player release is pending"),new _.P(_.Q,7,7E3);throw c;}})};
510
- _.r.preload=function(a){var b=this,c;return _.E(function(d){if(1==d.a)return _.x(d,_.zq(b,a),2);if(!b.a)return b.g.warn(Hb),d["return"]();c=b.a;return c.preload?_.x(d,c.preload(b.f),0):(b.g.warn(Nb),d["return"]())})};_.r.tc=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!this.P)return Promise.resolve();var e=this;d=this.I.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.Pg(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};
511
- _.r.use=function(a){(a=$l(a))&&a.o(this)};_.r.remove=function(a){return(this.getState()<=_.Vo||this.G)&&null!==Ul(a)?(am(a),this.H=!0):!1};_.r.play=function(){return this.a?this.j&&this.a.namespace()!==_.Dd?this.j.start(this.a):this.a.play():Promise.reject("No player initialized. You need to load content before calling play.")};_.r.pause=function(){return this.a?this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};
512
- _.r.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.r.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.El};_.r.getState=function(){return this.a?this.a.getState():_.Vo};_.r.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.r.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.r.isPaused=function(){return this.a&&this.a.isPaused()||!1};_.r.getPosition=function(){return this.a?this.a.getPosition():0};
513
- _.r.seek=function(a){return this.getState()===_.fp?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};_.r.getPresentationStartTime=function(){return this.a?this.a.getPresentationStartTime():null};_.r.getSeekRange=function(){return this.a?this.a.getSeekRange():{start:0,end:0}};_.r.Rc=function(){var a=this.a;return a&&a.Rc?a.Rc():null};_.r.getVolume=function(){return this.a?this.a.getVolume():null};_.r.setVolume=function(a){this.a&&this.a.setVolume(a)};
514
- _.r.getDuration=function(){return this.a?this.a.getDuration():-1};_.r.getAdsManager=function(){return this.j};_.r.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};_.r.getPlaybackRate=function(){return this.a?this.a.getPlaybackRate():1};_.r.setPlaybackRate=function(a,b){this.a&&this.a.setPlaybackRate(a,b)};_.r.isMuted=function(){return this.a&&this.a.isMuted()||!1};_.r.setMuted=function(a){this.a&&this.a.setMuted(a)};_.r.getNetworkEngine=function(){return this.A};
515
- _.r.setNetworkEngine=function(a){this.A=a};_.r.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};_.r.isLive=function(){return!!this.a&&this.a.isLive()};_.r.getStats=function(){return this.a?this.a.getStats():null};_.r.Sg=function(){return Object.freeze(this.o)};_.r.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};_.r.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.r.je=function(){return this.a?this.a.je():null};
516
- _.r.resetAbr=function(){this.a&&this.a.resetAbr()};_.r.setDrmCustomDataModifier=function(a){this.Nc=a;yq(this)};_.r.setCdnErrorCallback=function(a){this.B=a;this.a&&this.a.setCdnErrorCallback(this.B)};_.r.lh=function(){this.Ze=!0};_.I("clpp.Player",X);X.registerPlugin=_.Dq;X.prototype.setCdnErrorCallback=X.prototype.setCdnErrorCallback;X.prototype.setDrmCustomDataModifier=X.prototype.setDrmCustomDataModifier;X.prototype.resetAbr=X.prototype.resetAbr;X.prototype.getTimelineCues=X.prototype.getTimelineCues;
517
- X.prototype.getLoadedSource=X.prototype.getLoadedSource;X.prototype.getSources=X.prototype.Sg;X.prototype.getStats=X.prototype.getStats;X.prototype.isLive=X.prototype.isLive;X.prototype.getTextDisplayer=X.prototype.getTextDisplayer;X.prototype.setNetworkEngine=X.prototype.setNetworkEngine;X.prototype.getNetworkEngine=X.prototype.getNetworkEngine;X.prototype.isMuted=X.prototype.isMuted;X.prototype.setPlaybackRate=X.prototype.setPlaybackRate;X.prototype.getPlaybackRate=X.prototype.getPlaybackRate;
518
- X.prototype.namespace=X.prototype.namespace;X.prototype.getAdsManager=X.prototype.getAdsManager;X.prototype.getDuration=X.prototype.getDuration;X.prototype.setVolume=X.prototype.setVolume;X.prototype.getVolume=X.prototype.getVolume;X.prototype.getTimelineOffset=X.prototype.Rc;X.prototype.getSeekRange=X.prototype.getSeekRange;X.prototype.getPresentationStartTime=X.prototype.getPresentationStartTime;X.prototype.seek=X.prototype.seek;X.prototype.getPosition=X.prototype.getPosition;
489
+ 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]};_.Em.prototype.fb=function(a,b){this.f[a]=b};_.J("clpp.drm.DrmEnvironment",_.Em);_.Em.prototype.setDrmSystem=_.Em.prototype.fb;_.Fm.prototype.getPosition=function(){return this.a};_.Fm.prototype.La=function(){return this.f.byteLength};_.Fm.prototype.seek=function(a){(0>a||a>=this.f.byteLength)&&_.Gm();this.a=a};_.Im.prototype.getPosition=function(){return this.a};_.Im.prototype.La=function(){return this.f.byteLength};_.Im.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.Km();this.a+=a};_.Im.prototype.seek=function(a){if(0>a||a>=this.f.byteLength)throw _.Km();this.a=a};_.J("clpp.utils.dataview.DataViewReader",_.Im);_.u=_.Rm.prototype;_.u.K=function(a,b){var c=Vm(a);this.h[c]=ev;this.f[c]=b;return this};_.u.Y=function(a,b){var c=Vm(a);this.h[c]=fv;this.f[c]=b;return this};_.u.stop=function(){this.a=!0};_.u.parse=function(a,b){var c=_.nj(a);c=new _.Im(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.Jm(c)&&!this.a;)this.af(0,c,b)};
490
+ _.u.af=function(a,b,c){var d=b.getPosition(),e=_.V(b),f=_.V(b),g=!1;this.g.debug("Parsing MP4 box",_.Wm(f));switch(e){case 0:e=b.La()-d;break;case 1:e=_.Om(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.h[f]===fv&&(m=_.V(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.La()&&(n=b.La());n-=b.getPosition();b=0<n?_.Qm(b,n):new Uint8Array(0);b=new _.Im(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,
491
+ has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.La()-b.getPosition()),b.skip(a)};_.J("clpp.utils.Mp4Parser",_.Rm);_.Rm.typeToString=_.Wm;_.Rm.allData=_.Um;_.Rm.sampleDescription=_.Tm;_.Rm.children=_.Sm;_.Rm.prototype.parseNext=_.Rm.prototype.af;_.Rm.prototype.parse=_.Rm.prototype.parse;_.Rm.prototype.stop=_.Rm.prototype.stop;_.Rm.prototype.fullBox=_.Rm.prototype.Y;_.Rm.prototype.box=_.Rm.prototype.K;_.Rm.headerSize=_.Xm;var ev=0,fv=1;_.J("clpp.utils.FairplayUtils",Ym);Ym.parseFairPlayResponse=_.dn;Ym.formatFairPlayRequest=_.cn;Ym.createFairplayPayload=bn;Ym.extractContentId=_.$m;Ym.extractExtXKeyUri=Zm;var pn=new _.K("clpp.drm.DrmToday"),fn="PRODUCTION",gn="STAGING",hn="TEST",gv={PRODUCTION:fn,STAGING:gn,TEST:hn};_.J("clpp.drm.DrmToday.Environment",gv);_.J("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
492
+ for(var kn="/license-proxy-widevine/cenc/",ln="/license-proxy-headerauth/drmtoday/RightsManager.asmx",mn="/license-server-fairplay/",yn={"00000":"Success","01000":"General Internal Error","02000":"General Request Error","03000":"General Request Authentication Error",3E4:"General DRM error",4E4:"General Widevine Modular error",40001:"Widevine Device Certificate Revocation (wv 127)",40002:"Widevine Device Certificate Revocation - Permanently (wv 175)",41E3:"General Widevine Classic error",42E3:"General Playready error",
493
+ 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"},hv={video:[gb,ib,hb,_.Yb,_.Xb],audio:[_.Yb,_.Xb]},iv={video:["3000",
494
+ "2000","150"],audio:["2000","150"]},jv=_.w(Object.keys(gv)),kv=jv.next();!kv.done;kv=jv.next()){var en=kv.value,lv=Ea;en!==fn&&(lv+="_"+en);var mv=new _.Em(lv),nv=null;switch(en){case fn:nv=Dm("V1_PROD");break;case gn:nv=Dm("V2");break;case hn:nv=null}mv.fb(_.Ud,{licenseUrl:nn(_.Ud),videoRobustness:hv.video,audioRobustness:hv.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:nv,modifiers:{licenseRequest:_.sn,licenseResponse:_.xn}});mv.fb(_.Qd,{licenseUrl:nn(_.Qd),
495
+ certificateUrl:jn()+"/license-server-fairplay/cert/",modifiers:{licenseRequest:_.un,licenseResponse:_.vn,extractContentId:_.qn,certificateRequest:_.wn}});mv.fb(_.Sd,{licenseUrl:nn(_.Sd),videoRobustness:iv.video,audioRobustness:iv.audio,modifiers:{licenseRequest:tn}});_.zm(mv)};_.J("clpp.drm.eme.EmeFactory",An);var Dn=[];An.Apis={STANDARD:Vb,APPLE:"APPLE",WEBKIT:"WEBKIT",NOP:"NOP"};var Mn;_.Tn=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];Mn=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.x(Ln,Kn);_.x(_.Pn,Kn);var Vn=!!(performance&&performance.mark&&performance.measure);Yn.prototype.j=function(a){if(1<a.version)_.Fh("Unrecognized PSSH version found!");else{var b=_.Bj(_.Qm(a.reader,16)),c=[];if(0<a.version)for(var d=_.V(a.reader),e=0;e<d;++e){var f=_.Bj(_.Qm(a.reader,16));c.push(f)}d=_.V(a.reader);a.reader.skip(d);this.h.push.apply(this.h,c);this.f.push(b);this.a.push({start:a.start,end:a.start+a.size-1});a.reader.getPosition()!==a.reader.La()&&_.Fh("Mismatch between box size and data size!")}};_.u=_.bo.prototype;_.u.destroy=function(){var a=this;return _.I(function(b){if(1==b.a){if(a.j)return _.y(b,a.Pa,0);a.j=!0;return _.y(b,eo(a),4)}a.Pa.resolve();return b.F(0)})};_.u.keySystem=function(){return this.a?_.Ko(this.a.keySystem):""};_.u.getDrmInfo=function(){return this.a};
496
+ _.u.pi=function(a){var b=this,c,d,e;return _.I(function(f){if(1==f.a){if(b.G&&b.L===fo)return f["return"]();c=Math.floor(a.timeStamp);d="drm.msg."+c+ia;e="drm.msg."+c+".end";_.Wn(d);return!b.h.delayLicenseRequestUntilPlayed||b.C&&!b.C.paused||b.Wa?_.y(f,Vo(b,a),2):(b.ia.push(a),f.F(2))}_.Wn(e);_.Xn("drm.sess.msg."+c,d,e);_.C(f)})};
497
+ _.u.ki=function(a){var b=this,c=a.target;this.g.info("Key status changed for session",c.sessionId);var d=this.f.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if(typeof h===_.kg){var l=h;h=g;g=l}if(Ro(b.a.keySystem)&&16===h.byteLength&&_.al()){l=_.uj(h);var m=l.getUint32(0,!0),n=l.getUint16(4,!0),p=l.getUint16(6,!0);l.setUint32(0,m,!1);l.setUint16(4,n,!1);l.setUint16(6,p,!1)}d&&g!==ig&&(d.loaded=!0);d&&d.Ua&&d.Ua.resolve();"expired"===g&&(e=!0);l=_.nj(h);var q=_.Bj(l);"00"===q&&d&&d.keyId?q=d.keyId:
498
+ b.a.keySystem.startsWith(_.Qd)&&16!==l.byteLength&&(q=_.S.fromCharCode(l));(l=q||"")?b.g.info(tb+q+"': "+g):b.g.info("Key status global keys: "+g);b.l.set(l,g);d&&!d.keyId&&b.f.forEach(function(t,v){v===c||t.keyId!==q||t.loaded||(t.loaded=!0)})});d&&d.loaded&&d.nb.forEach(function(g){b.l.get(g)===ig&&(b.g.warn(tb+g+fa),b.l.set(g,_.gf))});for(a=0;a<this.a.initData.length;a++){var f=this.a.initData[a];f.keyId&&this.l.get(f.keyId)===ig&&_.Cj(f.initData,d.initData)&&(this.g.warn(tb+f.keyId+fa),this.l.set(f.keyId,
499
+ _.gf))}a=c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.Jb&&(this.g.debug("Session has expired",c.sessionId),(a=this.f.get(c))&&a.fd&&a.fd.stop(),this.f["delete"](c),c.close()["catch"](function(){}));Mo(this)&&(this.H.resolve(),1!==this.f.size||e?this.ca.fa(.5):$n(this))};var fo=0,Zn=3;_.Zo=new Map;_.$o=new _.K("clpp.text");_.ip.prototype.getStats=function(){return{width:this.w,height:this.h,streamBandwidth:this.o,decodedFrames:this.j,droppedFrames:this.l,corruptedFrames:this.D,estimatedBandwidth:this.f,loadLatency:this.A,playTime:ep(this.a,_.Bp),pauseTime:ep(this.a,_.Ap),bufferingTime:ep(this.a,_.sp),stateHistory:fp(this.a),switchHistory:hp(this.C)}};_.kp.prototype.value=function(){void 0===this.a&&(this.a=this.f());return this.a};var lp=new _.kp(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.Ke],[HTMLMediaElement.HAVE_CURRENT_DATA,_.Je],[HTMLMediaElement.HAVE_FUTURE_DATA,od],[HTMLMediaElement.HAVE_ENOUGH_DATA,pd]])});qp.prototype.nc=function(a,b){this.m&&this.m.trigger(new _.L(a,{detail:b}))};qp.prototype.getState=function(){return tp(this,"")};qp.prototype.V=function(a){(a=a&&a.detail)&&a.severity&&a.severity===_.Q&&xp(this,_.yp)};qp.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.m.namespace());this.a.release()};_.J("clpp.utils.media.detectType",Dp);var Gp=new _.K("clpp.sources");_.x(Hp,_.hm);_.u=Hp.prototype;_.u.init=function(a,b){_.hm.prototype.init.call(this,a,b);this.j=new qp(this);xp(this.j,_.np)};_.u.namespace=function(){return Kd};
500
+ _.u.unload=function(){var a=this,b;return _.I(function(c){if(!a.$)return c.F(0);a.log.debug("Releasing player with source",a.$);a.C&&(a.C.stop(),a.C=null);(b=a.getTrackManager())&&b.release();a.A&&(a.A.destroy(),a.A=null);a.ia&&(a.ia.destroy(),a.ia=null);a.l&&a.l.release();a.o&&(a.o.destroy(),a.o=null);_.Xh(a.h);a.f&&(a.f=new _.ip);a.G=null;a.$=null;a.H=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());return _.y(c,Lp(a),0)})};
501
+ _.u.release=function(){var a=this;return _.hm.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.j&&xp(a.j,_.np)})};
502
+ _.u.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.hm.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Ha);var b=a.getTrackManager();b&&b.destroy();a.l&&(a.l.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.l=null);a.j&&(a.j.destroy(),a.j=null);a.f=null})};_.u.getDrmInfo=function(){return this.o?this.o.getDrmInfo():null};
503
+ _.u.detach=function(){};_.u.getTrackManager=function(){return this.Md};
504
+ _.u.load=function(a){var b=this,c,d,e,f,g;return _.I(function(h){switch(h.a){case 1:if(b.w)return h["return"](Ip());if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.O;d=b.D.getMedia();b.I=Date.now()/1E3;b.f=new _.ip;b.h.on(b,_.hg,function(){b.f&&_.dp(b.f.a,b.getState())});xp(b.j,_.zp);b.$=_.Fp(a);b.configuration=_.fm(b.Vc,a);b.log.debug(_.xb,b.configuration);b.log.debug(_.Nb,b.$);e=_.bp(b.configuration,[_.ye,"native"]);
505
+ b.ia=e.create(b);b.ia.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.jm(_.og)&&!_.il()&&(b.A=new yi(b),b.A.start(d));b.l?b.l.release():b.l=new Zh(b);ai(b.l,d);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.S(b.configuration.volume)||b.setVolume(b.configuration.volume);c.S(b.configuration.muted)||b.setMuted(b.configuration.muted);b.h.one(d,od,function(){b.trigger(new _.L(_.Ou))});null==b.configuration.startTime&&Qp(b,d);_.gl()&&Rp(b,d);_.D(h,2);return _.y(h,Kp(b,d),4);case 4:return _.y(h,
506
+ Np(b),5);case 5:return _.y(h,Pp(b).N,6);case 6:_.qh(h,0);break;case 2:g=_.E(h),b.H=!1,b.onError(g),_.C(h)}})};_.u.onError=function(a){this.H||(a.severity===_.Q&&null!==this.j&&xp(this.j,_.yp),this.trigger(new _.L(_.se,{detail:a})))};_.u.sh=function(){return new Cl};_.u.getState=function(){return null!==this.j?this.j.getState().currentState:_.op};
507
+ _.u.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};_.u.getSeekRange=function(){var a=this.getSurface().getMedia();if(a&&a.src){a=a.seekable;if(a.length)return this.G=a={start:a.start(0),end:a.end(a.length-1)};if(this.G)return this.G}return{start:0,end:0}};
508
+ _.u.isLive=function(){return this.a&&this.a.src?Infinity===this.a.duration:!1};
509
+ _.u.getStats=function(){if(!this.f||!this.a)return _.jp();this.f&&_.dp(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.w=a.videoWidth;b.h=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.l=Number(a.droppedVideoFrames),b.j=c,this.f.D=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.qa())a.bandwidth&&(this.f.o=a.bandwidth),a.Dd&&(this.f.f=a.Dd);return this.f.getStats()};
510
+ _.u.getTimelineCues=function(){return this.l?this.l.getTimelineCues():[]};Sp.prototype.a=function(){return Kd};Sp.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.Vc,e=c===_.$c,f=c===_.Il;return _.fl()||d||e||f&&!_.gl()?0:""!==ll().canPlayType(c)?f&&_.gl()&&(window.ManagedMediaSource||window.MediaSource&&MediaSource.isTypeSupported)&&!b.streaming.preferNativeHlsOnSafari?1:2:0};Sp.prototype.f=function(a){return a===_.qa};Sp.prototype.create=function(){return new Hp};_.Ph(new Sp);_.J("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.J("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1});_.J("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var Up=new _.K("clpp.ads"),Tp=[];_.J("clpp.utils.dom.createHTMLElement",_.aq);bq.prototype.set=function(a){this.h.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=dq(this,a)};bq.prototype.get=function(){return this.a};_.u=hq.prototype;_.u.getMedia=function(){return this.f.get()};_.u.getContainer=function(){return this.a.get()};_.u.getSafeContainer=function(){return this.a};_.u.getId=function(){return this.l};_.u.getUniqueCssClass=function(){return this.o};_.u.getCastElement=function(){return this.h};_.u.isFullscreen=function(){return!!document.fullscreenElement};_.u.hideMediaElement=function(){var a=this.getMedia();a?_.Zp(a,Ad):this.g.debug("No media element available that could be hidden")};
511
+ _.u.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(Ad):this.g.debug("No media element available that could be shown")};_.u.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&&_.Zp(a,_.zd);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
512
+ _.u.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.u.hide=function(a){_.Zp(a,Ad)};_.u.show=function(a){a.classList.remove(Ad)};_.u.release=function(){this.j.release()};hq.prototype.removeElementFromContainer=hq.prototype.removeElementFromContainer;hq.prototype.addElementToContainer=hq.prototype.addElementToContainer;hq.prototype.getCastElement=hq.prototype.getCastElement;
513
+ hq.prototype.getContainer=hq.prototype.getContainer;hq.prototype.getMedia=hq.prototype.getMedia;var eq={disableContainer:!1,webOSStartupPatch:!0,crossorigin:"anonymous",containerEl:null},fq=1;jq.prototype.release=function(){this.a.release();nq(this);this.m=null};_.J("clpp.polyfill.installAll",qq);var pq=[];_.J("clpp.polyfill.register",_.rq);tq.prototype.verify=function(a,b){var c=_.S.hb,d={kty:"RSA",n:a.n,e:a.e},e=this.h+"."+this.f,f=this.j;return new Promise(function(g,h){try{var l=window&&window.crypto&&window.crypto.subtle}catch(n){}if(l){var m={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};l.importKey("jwk",d,m,!1,["verify"]).then(function(n){var p=c(e),q=_.zj(f);return l.verify(m,n,q.buffer,p.buffer)}).then(function(n){n?g():h(bc)})["catch"](h)}else b?h("Web Crypto API is not supported"):g()})};var ov={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},bm="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";uq.prototype.verify=function(){var a=this;return(new Promise(function(b,c){try{var d=vq(a);b(d)}catch(e){c()}})).then(function(b){return b.verify(ov)})["catch"](function(b){if(b&&b!==bc){var c=window.location.href;var d=new _.Hi(c);c=d.ub||d.Ya?d:new _.Hi("//"+c);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(c.Ya))return Promise.resolve()}throw b;})};var Gq="vod",Fq="live";_.x(X,_.Yl);_.u=X.prototype;_.u.on=function(a,b,c){return _.Yl.prototype.on.call(this,a,b,c)};_.u.one=function(a,b,c){return _.Yl.prototype.one.call(this,a,b,c)};_.u.off=function(a,b){return _.Yl.prototype.off.call(this,a,b)};_.u.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.L(_.se,{detail:a}))};_.u.yc=function(a){a=this.I[a];void 0===a&&(a=null);return a};_.u.getSurface=function(){return this.h};_.u.getConfiguration=function(){return _.O.Xa(this.f)};
514
+ _.u.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.u.detach=function(){return this.a?this.a.detach():Promise.resolve()};_.u.release=function(){var a=this;if(null!=this.l)return this.g.info("Player release already in progress"),this.l;this.g.debug("Releasing player");this.l=Nq(this);return this.l["finally"](function(){a.g.debug("Player released");a.l=null})};
515
+ _.u.destroy=function(){var a=this;if(this.M)return this.g.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.M=!0;return this.release().then(function(){a.g.debug(Ha);a.trigger(new _.L("destroying"));return a.Hc(_.af)}).then(function(){a.a&&a.a.stopForwardingEventsTo(a);a.Nd.clear();a.na.release();if(a.a)return a.a.destroy()}).then(function(){return a.G.destroy()}).then(function(){rm();a.a=null;a.trigger(new _.L("destroyed"))})};
516
+ _.u.load=function(a){var b=this,c,d,e;return _.I(function(f){switch(f.a){case 1:return _.D(f,2),_.Wn(uf),b.L=_.qa,b.ca=!0,c=_.Fp(a),d=gm(a)?a:{},_.y(f,_.Vq(b,d,c),4);case 4:return _.y(f,_.Wq(b),5);case 5:return _.y(f,_.Sq(b),6);case 6:_.Wn(tf);_.Xn("player.load",uf,tf);_.qh(f,0);break;case 2:e=_.E(f);if(b.l)throw b.g.info(wb),new _.P(_.Q,7,7E3);throw e;}})};
517
+ _.u.preload=function(a){var b=this,c;return _.I(function(d){if(1==d.a)return _.y(d,_.Vq(b,a),2);if(!b.a)return b.g.warn(Mb),d["return"]();c=b.a;return c.preload?_.y(d,c.preload(b.f),0):(b.g.warn(Rb),d["return"]())})};_.u.Hc=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!this.ca)return Promise.resolve();var e=this;d=this.ba.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.ch(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};
518
+ _.u.use=function(a){(a=sm(a))&&a.o(this)};_.u.remove=function(a){return(this.getState()<=_.np||this.P)&&null!==mm(a)?(tm(a),this.T=!0):!1};_.u.play=function(){return this.a?this.j&&this.a.namespace()!==_.Fd?this.j.start(this.a):this.a.play():Promise.reject("No player initialized. You need to load content before calling play.")};_.u.pause=function(){return this.a?this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};
519
+ _.u.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.u.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.Xl};_.u.getState=function(){return this.a?this.a.getState():_.np};_.u.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.u.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.u.isPaused=function(){return this.a&&this.a.isPaused()||!1};_.u.getPosition=function(){return this.a?this.a.getPosition():0};
520
+ _.u.seek=function(a){return this.getState()===_.yp?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};_.u.getPresentationStartTime=function(){return this.a?this.a.getPresentationStartTime():null};_.u.getSeekRange=function(){return this.a?this.a.getSeekRange():{start:0,end:0}};_.u.Ac=function(){var a=this.a;return a&&a.Ac?a.Ac():null};_.u.getVolume=function(){return this.a?this.a.getVolume():null};_.u.setVolume=function(a){this.a&&this.a.setVolume(a)};
521
+ _.u.getDuration=function(){return this.a?this.a.getDuration():-1};_.u.getAdsManager=function(){return this.j};_.u.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};_.u.getPlaybackRate=function(){return this.a?this.a.getPlaybackRate():1};_.u.setPlaybackRate=function(a,b){this.a&&this.a.setPlaybackRate(a,b)};_.u.isMuted=function(){return this.a&&this.a.isMuted()||!1};_.u.setMuted=function(a){this.a&&this.a.setMuted(a)};_.u.getNetworkEngine=function(){return this.G};
522
+ _.u.setNetworkEngine=function(a){this.G=a};_.u.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};_.u.isLive=function(){return!!this.a&&this.a.isLive()};_.u.getStats=function(){return this.a?this.a.getStats():null};_.u.Mh=function(){return Object.freeze(this.ja)};_.u.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};_.u.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.u.Ke=function(){return this.a?this.a.Ke():null};
523
+ _.u.resetAbr=function(){this.a&&this.a.resetAbr()};_.u.setDrmCustomDataModifier=function(a){this.hd=a;Uq(this)};_.u.setCdnErrorCallback=function(a){this.J=a;this.a&&this.a.setCdnErrorCallback(this.J)};_.u.ei=function(){this.Hf=!0};_.J("clpp.Player",X);X.registerPlugin=_.Zq;X.prototype.setCdnErrorCallback=X.prototype.setCdnErrorCallback;X.prototype.setDrmCustomDataModifier=X.prototype.setDrmCustomDataModifier;X.prototype.resetAbr=X.prototype.resetAbr;X.prototype.getTimelineCues=X.prototype.getTimelineCues;
524
+ X.prototype.getLoadedSource=X.prototype.getLoadedSource;X.prototype.getSources=X.prototype.Mh;X.prototype.getStats=X.prototype.getStats;X.prototype.isLive=X.prototype.isLive;X.prototype.getTextDisplayer=X.prototype.getTextDisplayer;X.prototype.setNetworkEngine=X.prototype.setNetworkEngine;X.prototype.getNetworkEngine=X.prototype.getNetworkEngine;X.prototype.isMuted=X.prototype.isMuted;X.prototype.setPlaybackRate=X.prototype.setPlaybackRate;X.prototype.getPlaybackRate=X.prototype.getPlaybackRate;
525
+ X.prototype.namespace=X.prototype.namespace;X.prototype.getAdsManager=X.prototype.getAdsManager;X.prototype.getDuration=X.prototype.getDuration;X.prototype.setVolume=X.prototype.setVolume;X.prototype.getVolume=X.prototype.getVolume;X.prototype.getTimelineOffset=X.prototype.Ac;X.prototype.getSeekRange=X.prototype.getSeekRange;X.prototype.getPresentationStartTime=X.prototype.getPresentationStartTime;X.prototype.seek=X.prototype.seek;X.prototype.getPosition=X.prototype.getPosition;
519
526
  X.prototype.isPaused=X.prototype.isPaused;X.prototype.isEnded=X.prototype.isEnded;X.prototype.getState=X.prototype.getState;X.prototype.getBufferInfo=X.prototype.getBufferInfo;X.prototype.getTrackManager=X.prototype.getTrackManager;X.prototype.pause=X.prototype.pause;X.prototype.play=X.prototype.play;X.prototype.remove=X.prototype.remove;X.prototype.use=X.prototype.use;X.prototype.load=X.prototype.load;X.prototype.destroy=X.prototype.destroy;X.prototype.release=X.prototype.release;
520
- X.prototype.getDrmInfo=X.prototype.getDrmInfo;X.prototype.getConfiguration=X.prototype.getConfiguration;X.prototype.getSurface=X.prototype.getSurface;X.prototype.getPlugin=X.prototype.lc;X.prototype.off=X.prototype.off;X.prototype.one=X.prototype.one;X.prototype.on=X.prototype.on;_.Vo=0;_.gp=1;_.$o=2;_.ip=3;_.hp=4;_.bp=5;_.fp=6;_.Wo=7;_.dp={IDLE:_.Vo,PREPARING:_.gp,BUFFERING:_.$o,PLAYING:_.ip,PAUSED:_.hp,ENDED:_.bp,ERROR:_.fp,UNSET:_.Wo};X.State=_.dp;var qq=[];Eq.prototype.has=function(){return this.a.some(function(a){return a.Yd})};Eq.prototype.get=function(){var a=this,b;return _.E(function(c){if(1==c.a){b=a.a.find(function(d){return d.Yd});if(!b)throw Error("No available players in the pool");b.Yd=!1;return _.x(c,b.ready,2)}return c["return"](b.player)})};
521
- Eq.prototype.release=function(a){var b=this,c=this.a.find(function(d){return d.player===a});if(!c)return Promise.resolve();c.Yd=!0;c.ready=new Promise(function(d){a.release()["catch"](function(e){b.g.error("Failed to unload player",e)}).then(d)});return c.ready};Eq.prototype.destroy=function(){var a=this;return _.E(function(b){return _.x(b,Promise.all(a.a.map(function(c){return c.player.destroy()})),0)})};_.w(Hq,_.Fl);_.r=Hq.prototype;_.r.Cd=function(){return this.f};_.r.Ab=function(){return this.f?this.f.player:null};_.r.Ng=function(){return this.l.get(this.a+1)||null};_.r.Pg=function(){return this.l.get(this.a-1)||null};_.r.ff=function(){return[this.Pg(),this.Ng()].filter(Boolean)};_.r.lm=function(a){if(0<this.h.length)throw Error("Cannot re-set items in the playlist");this.g.info("Set items",a);this.h=a.map(function(b,c){return{config:b,index:c,preloadPromise:Promise.resolve(),disposers:[]}})};
522
- _.r.km=function(a){if(0===this.h.length)throw Error(Ab);if(0>a||a>this.h.length-1)throw Error("Index out of bounds");this.a=a};_.r.Tc=function(){return this.a<this.h.length-1};_.r.Vg=function(){return 0<this.a};
523
- _.r.Vl=function(){var a=this,b,c;return _.E(function(d){switch(d.a){case 1:if(a.j)return a.g.warn("Cannot play first item while busy"),d["return"]();if(0===a.h.length)return a.g.warn(Ab),d["return"]();a.j=!0;a.g.info("First (index: "+a.a+")");b=a.h[a.a];_.A(d,2,3);a.g.info("First loading (index: "+a.a+")");return _.x(d,Pq(a,b),5);case 5:a.g.info("First playing (index: "+a.a+")");case 3:_.ch(d);a.j=!1;Uq(a);_.dh(d,0);break;case 2:throw c=_.C(d),a.g.error("First failed (index: "+a.a+")"),c;}})};
524
- _.r.Eh=function(){var a=this,b,c,d;return _.E(function(e){switch(e.a){case 1:if(a.j)return a.g.warn("Cannot play next item while busy"),e["return"]();if(!a.Tc())return a.g.warn("There are no more items in the playlist"),e["return"]();a.j=!0;a.a+=1;a.g.info("Next (index: "+a.a+")");b=a.f;a.o.transition===_.ef&&b.player.pause();Iq(a,a.a+-2);a.l["delete"](a.a);c=a.h[a.a];_.A(e,2,3);a.g.info("Next loading (index: "+a.a+")");return _.x(e,Qq(a,c),5);case 5:a.g.info("Next playing (index: "+a.a+")");case 3:_.ch(e);
525
- a.j=!1;b&&Mq(a,b);Uq(a);_.dh(e,0);break;case 2:throw d=_.C(e),a.g.error("Next failed (index: "+a.a+")"),d;}})};
526
- _.r.Wl=function(){var a=this,b,c,d;return _.E(function(e){switch(e.a){case 1:if(a.j)return a.g.warn("Cannot play previous item while busy"),e["return"]();if(!a.Vg())return a.g.warn("There are no more previous items in the playlist"),e["return"]();a.j=!0;--a.a;a.g.info("Previous (index: "+a.a+")");b=a.f;a.o.transition===_.ef&&b.player.pause();Iq(a,a.a+2);a.l["delete"](a.a);c=a.h[a.a];_.A(e,2,3);a.g.info("Previous loading (index: "+a.a+")");return _.x(e,Qq(a,c),5);case 5:a.g.info("Previous playing (index: "+
527
- a.a+")");case 3:_.ch(e);a.j=!1;b&&Mq(a,b);Uq(a);_.dh(e,0);break;case 2:throw d=_.C(e),a.g.error("Previous failed (index: "+a.a+")"),d;}})};_.r.destroy=function(){var a=this;return _.E(function(b){return 1==b.a?(a.g.info("Destroy"),_.x(b,Promise.all([Jq(a),a.f?Mq(a,a.f):Promise.resolve()]),2)):_.x(b,Vq(a),0)})};_.I(Id,Hq);Hq.prototype.destroy=Hq.prototype.destroy;Hq.prototype.playPrev=Hq.prototype.Wl;Hq.prototype.playNext=Hq.prototype.Eh;Hq.prototype.playFirst=Hq.prototype.Vl;
528
- Hq.prototype.hasPrev=Hq.prototype.Vg;Hq.prototype.hasNext=Hq.prototype.Tc;Hq.prototype.setIndex=Hq.prototype.km;Hq.prototype.setItems=Hq.prototype.lm;Hq.prototype.getPreloading=Hq.prototype.ff;Hq.prototype.getPrev=Hq.prototype.Pg;Hq.prototype.getNext=Hq.prototype.Ng;Hq.prototype.getCurrentPlayer=Hq.prototype.Ab;Hq.prototype.getCurrent=Hq.prototype.Cd;var Lq="preload",Nq=_.Ke;var Wq=new Map;_.r=$q.prototype;_.r.destroy=function(){this.a&&this.a.dispose();this.a=null;return Promise.resolve()};_.r.isSupported=function(a,b){var c="mp2t"==a.toLowerCase().split(";")[0].split("/")[1],d=a.toLowerCase().split(";")[0]==_.ad;if(!window.muxjs||!c&&!d)return!1;if(d)return _.Xq(ed);if(b)return _.Xq(ar(b,a));c=ar(_.$c,a);d=ar(_.tg,a);return _.Xq(c)||_.Xq(d)};_.r.isMuxed=function(a,b){return 1<this.demuxMimeTypes(a,b).size};
529
- _.r.demuxMimeTypes=function(a,b){var c=new Map;c.set(a,b);try{var d=b.split(";")[0],e=Dk(b).split(","),f=new Map,g=Ei(_.$c,e),h=Ei(_.tg,e);g&&f.set(_.$c,this.convertCodecs(_.$c,_.Ck(d,g)));h&&f.set(_.tg,this.convertCodecs(_.tg,_.Ck(d,h)));return f}catch(l){return c}};_.r.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]==_.ad?ed:"mp2t"==b.toLowerCase().split(";")[0].split("/")[1]?ar(a,b):b};_.r.getOriginalMimeType=function(){return this.w};
530
- _.r.transmux=function(a){this.j=!0;this.f=new _.zj;this.o=[];this.l=[];this.h=[];a=_.Xi(a);this.a.push(a);this.a.flush();this.j&&this.f.reject(new _.P(_.Q,3,3018));return this.f};xk(_.ad,function(){return new $q(_.ad)});xk(_.ug,function(){return new $q(_.ug)});var Zq=_.$c,Yq=_.tg;_.w(dr,_.Fl);_.r=dr.prototype;_.r.getCurrentItem=function(){return this.a};_.r.Ab=function(){return this.a?this.a.player:null};_.r.ff=function(){return Array.from(this.f.values())};_.r.Xd=function(a){this.g.info("Add items",a);this.j=this.j.concat(a.map(function(b){return Object.assign({},b,{state:"idle",disposers:[],preloadPromise:Promise.resolve(),Ld:Promise.resolve()})}))};
531
- _.r.removeItems=function(a){this.g.info("Remove items",a);a?this.j=this.j.filter(function(b){return!a.includes(b.id)}):this.j=[]};_.r.Tc=function(){return 0<this.f.size};
532
- _.r.play=function(a){var b=this,c,d,e,f;return _.E(function(g){switch(g.a){case 1:if(b.h)return b.g.warn("Cannot play item while busy (ID: "+a+")"),g["return"]();c=b.getItem(a);if(!c)return b.g.warn(pb+a+")"),g["return"]();b.g.info("Play item (ID: "+a+")");b.h=!0;(d=b.a)&&d.player.pause();(e=b.f.has(a))&&b.f["delete"](a);_.A(g,2,3);b.g.info(ob+a+")");return e?_.x(g,qr(b,c),6):_.x(g,or(b,c),6);case 6:c.sc&&c.sc(),b.trigger(new _.L(ye,{detail:c})),gr(b,c),b.g.info("Item playing (ID: "+a+")");case 3:_.ch(g);
533
- b.h=!1;d&&mr(b,d);hr(b);ir(b,c.next);_.dh(g,0);break;case 2:throw f=_.C(g),b.g.error(nb+a+")"),f;}})};
534
- _.r.load=function(a){var b=this,c,d,e,f;return _.E(function(g){switch(g.a){case 1:if(b.h)return b.g.warn("Cannot load item while busy (ID: "+a+")"),g["return"]();c=b.getItem(a);if(!c)return b.g.warn(pb+a+")"),g["return"]();b.g.info("Load item (ID: "+a+")");b.h=!0;(d=b.a)&&d.player.pause();(e=b.f.has(a))&&b.f["delete"](a);_.A(g,2,3);b.g.info(ob+a+")");if(e){b.g.error("Loading preloaded items is not supported");g.F(5);break}return _.x(g,nr(b,c),5);case 5:b.trigger(new _.L(ye,{detail:c})),gr(b,c),b.g.info("Item loaded (ID: "+
535
- a+")");case 3:_.ch(g);b.h=!1;d&&mr(b,d);hr(b);ir(b,c.next);_.dh(g,0);break;case 2:throw f=_.C(g),b.g.error(nb+a+")"),f;}})};_.r.getItem=function(a){return this.j.find(function(b){return b.id===a})||null};_.r.release=function(){var a=this;return _.E(function(b){if(1==b.a)return _.x(b,Promise.all([hr(a),a.a?mr(a,a.a):Promise.resolve()]),2);a.a=null;a.h=!1;a.removeItems();fr(a,!0);_.y(b)})};
536
- _.r.destroy=function(){var a=this;return _.E(function(b){return 1==b.a?(a.g.info("Destroy"),_.x(b,a.release(),2)):_.x(b,sr(a),0)})};dr.prototype.destroy=dr.prototype.destroy;dr.prototype.release=dr.prototype.release;dr.prototype.getItem=dr.prototype.getItem;dr.prototype.load=dr.prototype.load;dr.prototype.play=dr.prototype.play;dr.prototype.hasNext=dr.prototype.Tc;dr.prototype.removeItems=dr.prototype.removeItems;dr.prototype.addItems=dr.prototype.Xd;dr.prototype.getPreloading=dr.prototype.ff;
537
- dr.prototype.getCurrentPlayer=dr.prototype.Ab;dr.prototype.getCurrentItem=dr.prototype.getCurrentItem;var lr="preload",pr=_.Ke;_.w(xr,_.Fl);_.r=xr.prototype;_.r.load=function(a){var b=this,c;return _.E(function(d){if(1==d.a)return _.x(d,zr(b,a,!1),2);b.trigger(new _.L(Nu));c=b.a.getCurrentItem();c.primary&&b.trigger(new _.L(Zr));_.y(d)})};_.r.Bd=function(){var a=this.l;return a?this.j.map(function(b){return{cueId:b.cueId,startTime:b.startTime,endTime:b.endTime,primaryDuration:a}}):[]};_.r.Kk=function(a){var b=this;return _.E(function(c){return _.x(c,zr(b,a,!0),0)})};
538
- _.r.unload=function(){var a=this;return _.E(function(b){if(1==b.a)return _.x(b,a.a.release(),2);a.j=[];_.y(b)})};_.r.destroy=function(){var a=this;return _.E(function(b){return _.x(b,a.a.destroy(),0)})};_.r.ym=function(){var a=this,b;return _.E(function(c){if(1==c.a)return _.x(c,er(a.a),2);a.trigger(new _.L(Nu));b=a.a.getCurrentItem();b.primary&&a.trigger(new _.L(Zr));_.y(c)})};_.r.getPosition=function(){var a=this.a.Ab();return a?a.getPosition():null};_.r.Ab=function(){return this.a.Ab()};
539
- _.r.getCurrentItem=function(){return this.a.getCurrentItem()};_.I(Gd,xr);xr.prototype.getCurrentItem=xr.prototype.getCurrentItem;xr.prototype.getCurrentPlayer=xr.prototype.Ab;xr.prototype.getPosition=xr.prototype.getPosition;xr.prototype.unpause=xr.prototype.ym;xr.prototype.destroy=xr.prototype.destroy;xr.prototype.unload=xr.prototype.unload;xr.prototype.loadPaused=xr.prototype.Kk;xr.prototype.getCues=xr.prototype.Bd;xr.prototype.load=xr.prototype.load;
540
- var Fr="new",Lr="preparing",Nr="ready",Yr="completed",Or="failed",Mr="interstitial-preload-started",Pr="x-asset-list-request-started",Rr="x-asset-list-request-ended",Ur="interstitial-scheduled",Wr="interstitial-started",Xr="interstitial-ended",Vr="interstitial-item-started",wr="primary-player-changed",tr="item-changed",Nu="playback-started",Zr="primary-started",Jr="primary-ended",Er="cues-changed";_.r=as.prototype;_.r.yb=function(){};_.r.zb=function(){};_.r.Fb=function(){};_.r.getId=function(){};_.r.getCreativeId=function(){};_.r.getApiFramework=function(){};_.r.getAdSystem=function(){};_.r.getAdvertiserName=function(){};_.r.getTitle=function(){};_.r.getDuration=function(){};_.r.getSkipTimeOffset=function(){};_.r.pc=function(){};_.r.Rb=function(){};_.r.getMediaUrl=function(){};_.r.Cb=function(){};_.r.Bb=function(){};_.r.ob=function(){};_.r.eb=function(){};_.r.getPodIndex=function(){};
541
- _.r.Sb=function(){};_.r.Tb=function(){};_.r.Eb=function(){};_.r.getWrapperAdIds=function(){};_.r.getWrapperAdSystems=function(){};_.r.getWrapperCreativeIds=function(){};_.I("clpp.ads.IAd",as);as.prototype.getWrapperCreativeIds=as.prototype.getWrapperCreativeIds;as.prototype.getWrapperAdSystems=as.prototype.getWrapperAdSystems;as.prototype.getWrapperAdIds=as.prototype.getWrapperAdIds;as.prototype.getSequenceLength=as.prototype.Eb;as.prototype.getPositionInSequence=as.prototype.Tb;
542
- as.prototype.getPodTimeOffset=as.prototype.Sb;as.prototype.getPodIndex=as.prototype.getPodIndex;as.prototype.getPodType=as.prototype.eb;as.prototype.getMediaBitrate=as.prototype.ob;as.prototype.getMediaHeight=as.prototype.Bb;as.prototype.getMediaWidth=as.prototype.Cb;as.prototype.getMediaUrl=as.prototype.getMediaUrl;as.prototype.getClickThroughUrl=as.prototype.Rb;as.prototype.isBumper=as.prototype.pc;as.prototype.getSkipTimeOffset=as.prototype.getSkipTimeOffset;as.prototype.getDuration=as.prototype.getDuration;
543
- as.prototype.getTitle=as.prototype.getTitle;as.prototype.getAdvertiserName=as.prototype.getAdvertiserName;as.prototype.getAdSystem=as.prototype.getAdSystem;as.prototype.getApiFramework=as.prototype.getApiFramework;as.prototype.getCreativeId=as.prototype.getCreativeId;as.prototype.getId=as.prototype.getId;as.prototype.getTechnology=as.prototype.Fb;as.prototype.getAdManagerVersion=as.prototype.zb;as.prototype.getAdManagerName=as.prototype.yb;bs.prototype.name=function(){};bs.prototype.isSupported=function(){};bs.prototype.create=function(){};_.I("clpp.ads.IAdsManagerFactory",bs);bs.prototype.create=bs.prototype.create;bs.prototype.isSupported=bs.prototype.isSupported;bs.prototype.name=bs.prototype.name;_.r=cs.prototype;_.r.load=function(){};_.r.start=function(){};_.r.resume=function(){};_.r.pause=function(){};_.r.skip=function(){};_.r.getVolume=function(){};_.r.setVolume=function(){};_.r.getPosition=function(){};_.r.dispose=function(){};_.I("clpp.ads.IAdsManager",cs);cs.prototype.getPosition=cs.prototype.getPosition;cs.prototype.setVolume=cs.prototype.setVolume;cs.prototype.getVolume=cs.prototype.getVolume;cs.prototype.skip=cs.prototype.skip;cs.prototype.pause=cs.prototype.pause;
544
- cs.prototype.resume=cs.prototype.resume;_.r=ds.prototype;_.r.load=function(){return Promise.resolve()};_.r.start=function(a){return a.play()};_.r.resume=function(){};_.r.pause=function(){};_.r.skip=function(){};_.r.getVolume=function(){return 1};_.r.setVolume=function(){};_.r.getPosition=function(){return-1};_.r.dispose=function(){return _.E(function(a){_.y(a)})};ds.prototype.dispose=ds.prototype.dispose;ds.prototype.getPosition=ds.prototype.getPosition;ds.prototype.setVolume=ds.prototype.setVolume;ds.prototype.getVolume=ds.prototype.getVolume;
545
- ds.prototype.skip=ds.prototype.skip;ds.prototype.pause=ds.prototype.pause;ds.prototype.resume=ds.prototype.resume;ds.prototype.start=ds.prototype.start;ds.prototype.load=ds.prototype.load;Dp.prototype.name=function(){return"clpp.ads.NopAdsManagerFactory"};Dp.prototype.isSupported=function(){return!0};Dp.prototype.create=function(){return new ds};Dp.prototype.create=Dp.prototype.create;Dp.prototype.isSupported=Dp.prototype.isSupported;Dp.prototype.name=Dp.prototype.name;es.prototype.getCuePoints=function(){};es.prototype.Vb=function(){};es.prototype.pb=function(){};_.I("clpp.ads.IAdsTimeline",es);es.prototype.hasPostroll=es.prototype.pb;es.prototype.hasPreroll=es.prototype.Vb;es.prototype.getCuePoints=es.prototype.getCuePoints;_.fs.prototype.f=function(){};_.fs.prototype.a=function(){};_.fs.prototype.h=function(){};_.fs.prototype.o=function(){};_.r=gs.prototype;_.r.ce=function(a){this.a=a};_.r.qd=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(xb)};_.r.le=function(){return this.a&&this.a.mediaKeys};_.r.hc=function(a,b){this.g.debug("Requesting media key system access for",a,b.map(function(c){return Object.assign({},c,{drmInfos:c.drmInfos.map(function(){return"_anonymous_"})})}));return navigator.requestMediaKeySystemAccess(a,b)["catch"](function(c){c.message&&(c=Error(c.message+" (keySystem: "+a+")"));return Promise.reject(c)})};
546
- _.r.pd=function(){return Sb};hs.prototype.a=function(){return Sb};hs.prototype.isSupported=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};hs.prototype.create=function(){return new gs};ln(new hs,1E3);_.r=is.prototype;_.r.getStatus=function(){return this.a};_.r.forEach=function(a){this.a&&a(this.a,Ou.value())};_.r.get=function(a){if(this.has(a))return this.a};_.r.has=function(a){var b=Ou.value();return this.a&&Zi(a,b)?!0:!1};_.r.entries=function(){};_.r.keys=function(){};_.r.values=function(){};var Ou=new _.So(function(){return ej(new Uint8Array([0]))});_.r=ks.prototype;_.r.ce=function(){};_.r.qd=function(a){_.uh("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.r.le=function(){return null};_.r.hc=function(){_.uh("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.r.pd=function(){return"NOP"};ls.prototype.a=function(){return"NOP"};ls.prototype.isSupported=function(){return!0};ls.prototype.create=function(){return new ks};
547
- ln(new ls,-1);_.r=ms.prototype;_.r.ce=function(a){this.f=a};_.r.qd=function(a){var b=this.a;b&&b!==a&&ps(b,null);return(this.a=a)?ps(a,this.f):Promise.resolve()};_.r.le=function(){return this.a};_.r.hc=function(a,b){_.uh("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new ns(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.r.pd=function(){return"APPLE"};ns.prototype.createMediaKeys=function(){var a=new os(this.keySystem);return Promise.resolve(a)};
548
- ns.prototype.getConfiguration=function(){_.uh("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};os.prototype.createSession=function(a){a=void 0===a?cg:a;this.g.debug("Creating Apple MediaKeys Session");if(a!==cg)throw new TypeError("Session type "+a+da);return new qs(this.h,"__session_"+this.j++)};os.prototype.setServerCertificate=function(){this.g.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.w(qs,_.Fl);_.r=qs.prototype;
549
- _.r.generateRequest=function(a,b){var c=this;if(this.l)return Promise.reject(Wb);this.g.debug("generateRequest");this.h=new _.zj;try{var d=this.o.createSession(_.vg,_.Xi(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,Gg,function(e){var f=c.keyStatuses.getStatus();c.g.debug("Received Key Message in "+c.sessionId);c.h&&(c.h.resolve(),c.h=null);e=new _.L(_.Ne,{messageType:void 0===f||f===Wf?De:Ce,message:ej(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,Eg,function(e){c.g.debug("onWebkitKeyAdded_",
550
- e);c.f&&(rs(c,"usable"),c.f.resolve(),c.f=null)});this.j.on(d,Fg,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===Wf)c.g.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.g.error("Received key error in session "+c.sessionId+" with code "+(c.a.error.code+". Session Status ")+(e+".")),e=Error("EME AppleEmeManager key error"),e.errorCode=c.a.error,null!==c.h)c.h.reject(e),c.h=null;else if(null!==c.f)c.f.reject(e),
551
- c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:rs(c,"output-not-allowed");break;default:rs(c,_.xe)}});rs(this,Wf)}catch(e){this.h.reject(e)}return this.h};_.r.load=function(){this.g.debug("load");return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.r.update=function(a){if(this.l)return Promise.reject(Wb);this.g.debug(lg);this.f=new _.zj;try{this.a.update(_.Xi(a))}catch(b){this.f.reject(b)}return this.f};
552
- _.r.close=function(){if(this.l)return this.closed;this.g.info("Closing Key Session "+this.sessionId);this.l=!0;try{this.a.close(),this.closed.resolve(),_.Hh(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.r.remove=function(){this.g.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};ss.prototype.a=function(){return"APPLE"};ss.prototype.isSupported=function(){return!!window.WebKitMediaKeys};
553
- ss.prototype.create=function(){return new ms};ln(new ss,1100);_.r=ts.prototype;_.r.ce=function(a){this.a=a};_.r.qd=function(a){_.uh("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(xb);var b=this.f;b&&b!==a&&ys(b,null);(this.f=a)&&ys(a,this.a);return Promise.resolve()};_.r.le=function(){return this.f};_.r.hc=function(a,b){_.uh("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.tg);c=d.length?d[0]:document.createElement(_.tg)}var e=new us(this.h,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
554
- _.r.pd=function(){return"WEBKIT"};us.prototype.createMediaKeys=function(){return Promise.resolve(new vs(this.h,this.a))};us.prototype.getConfiguration=function(){return this.f};vs.prototype.createSession=function(a){a=void 0===a?cg:a;if(a!==cg&&a!==_.gf)throw new TypeError("Session type "+a+da);if(!this.a)throw a=Error("Media element is missing."),a.name=mb,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new zs(this.h,this.a,this.o,a);this.j.push(a);return a};
555
- vs.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.w(zs,_.Fl);_.r=zs.prototype;_.r.ready=function(){_.uh("WebkitEmeManager.MediaKeySession.ready");xs(this,"usable");this.a&&this.a.resolve();this.a=null};_.r.generateRequest=function(a,b){_.uh("WebkitEmeManager.MediaKeySession.generateRequest");return Bs(this,b,null)};_.r.load=function(a){_.uh(nc);return this.l===_.gf?Bs(this,null,a):Promise.reject(Error(Db))};_.r.update=function(a){_.uh(nc);var b=new _.zj;Cs(this,b,a);return b};
556
- _.r.close=function(){_.uh("WebkitEmeManager.MediaKeySession.close");if(this.l!==_.gf){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=As(this,"cancelKeyRequest");try{this.j[a](this.h,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.r.remove=function(){_.uh("WebkitEmeManager.MediaKeySession.remove");return this.l!==_.gf?Promise.reject(Error(Db)):this.close()};Ds.prototype.a=function(){return"WEBKIT"};
557
- Ds.prototype.isSupported=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};Ds.prototype.create=function(){return new ts};ln(new Ds);_.w(Es,_.lm);Es.prototype.Nd=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]};Es.prototype.Eg=function(a,b){var c=Im(b);switch(this.o){case Pu:return c;case Qu:return(new _.bk(c)).a;default:throw Error("Unknown content ID strategy");}};Es.prototype.ph=function(a,b){b.headers[xa]=Zc;this.Nd(a,b);var c={spc:_.gj(b.body)};b.body=_.R.cd(_.dk(c,!0))};
558
- Es.prototype.qh=function(a,b){var c=_.R.Z(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.ij(c).buffer};_.I(Ed,Es);Es.prototype.onFairPlayLicenseResponse=Es.prototype.qh;Es.prototype.onFairPlayLicenseRequest=Es.prototype.ph;Es.prototype.extractFairPlayContentId=Es.prototype.Eg;Es.prototype.onLicenseRequest=Es.prototype.Nd;Es.prototype.constructor=Es.prototype.constructor;Es.NAME=gb;var Qu="hostname",Pu="full-skd";
559
- Es.FairPlayContentIdStrategy={HOSTNAME:Qu,FULL_SKD:Pu};_.w(Fs,_.fs);Fs.prototype.h=function(a){a=a.getConfiguration();if(a.drm&&a.drm&&a.drm.env===gb){a=a.drm.customData;if(!a)throw new _.P(_.Q,7,7100,_.Td);a=new Es(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||Pu);_.gm(a)}};Fs.prototype.a=function(){delete _.fm.HeaderDrm};Fs.prototype.id=function(){return"headerdrm"};_.I("clpp.drm.HeaderDrmComponent",Fs);_.Zp(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=_.Xi(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.Zp(function(){_.uh("mathRound.install")});_.Zp(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;re in document||(Object.defineProperty(document,re,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
560
- {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Gs);document.addEventListener("webkitfullscreenerror",Gs);document.addEventListener("mozfullscreenchange",Gs);document.addEventListener("mozfullscreenerror",Gs);document.addEventListener("MSFullscreenChange",Gs);document.addEventListener("MSFullscreenError",Gs)}});_.Zp(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.uh("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Is,document.exitPictureInPicture=Js,document.addEventListener("webkitpresentationmodechanged",Hs,!0))}});_.Zp(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=Ks)}});_.Zp(function(){if(window.VTTCue)_.th("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.th(jc),window.VTTCue=Ls;else if(6===a)_.th("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=Ms;else{try{var b=!!Ls(1,2,"")}catch(c){b=!1}b&&(_.th(jc),window.VTTCue=Ls)}}else _.vh("VTTCue not available.")});var Ns;_.Zp(function(){_.uh("InputEvent.install");_.Jk("Trident/")&&HTMLInputElement.prototype.addEventListener!==Os&&(_.th("Patching input event support on IE."),Ns=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=Os)});_.Zp(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.Zp(function(){_.uh("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}}});_.Xs.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.j(b.contentRect.width,b.contentRect.height,a.h.isFullscreen())});this.f&&this.a.observe(this.f)};_.Xs.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.Zs.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.tg);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.zj;c=c.play();var e=(new _.Gk(function(){b(a)})).aa(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===Fb?b(!0):b(!1)}):b(!0);return d};
561
- var Ys=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,
527
+ X.prototype.getDrmInfo=X.prototype.getDrmInfo;X.prototype.getConfiguration=X.prototype.getConfiguration;X.prototype.getSurface=X.prototype.getSurface;X.prototype.getPlugin=X.prototype.yc;X.prototype.off=X.prototype.off;X.prototype.one=X.prototype.one;X.prototype.on=X.prototype.on;_.np=0;_.zp=1;_.sp=2;_.Bp=3;_.Ap=4;_.up=5;_.yp=6;_.op=7;_.wp={IDLE:_.np,PREPARING:_.zp,BUFFERING:_.sp,PLAYING:_.Bp,PAUSED:_.Ap,ENDED:_.up,ERROR:_.yp,UNSET:_.op};X.State=_.wp;var Jq=[];_.x($q,X);_.u=$q.prototype;
528
+ _.u.open=function(a,b){var c=this,d,e,f,g,h,l,m;return _.I(function(n){if(1==n.a){if(c.w)throw new _.P(_.Q,7,7008,"Cannot call open() while "+c.w+ha);if(0!==a)throw new _.P(_.Q,7,7007,"The index parameter only supports the value of 0.");if(0===b.length)throw new _.P(_.Q,7,7003,Eb);if(b.some(function(p){return!p.id||!p.source}))throw new _.P(_.Q,7,7100,"Some config is missing required properties `id` or `source`!");d=new Set(b.map(function(p){return p.id}));if(d.size!==b.length)throw new _.P(_.Q,7,
529
+ 7100,"Some config contains a non-unique property `id`!");if(e=b[0].playlist){f=e.timeline;g=["flat","basic"];if(f&&!g.includes(f))throw new _.P(_.Q,7,7100,"Unsupported `playlist.timeline` config value!");h=e.startTime;if(null!=h&&(typeof h!==_.k||0>h))throw new _.P(_.Q,7,7100,"Invalid `playlist.startTime` config value!");l=e.endTime;if(null!=l&&(typeof l!==_.k||0>l||null!=h&&l<=h))throw new _.P(_.Q,7,7100,"Invalid `playlist.endTime` config value!");m=e.content;if("DVR"===m&&!l)throw new _.P(_.Q,7,
530
+ 7100,"`playlist.endTime` config value is required for DVR content!");}ph(n);ar(c);c.w="open";return _.y(n,er(c,b),4)}2!=n.a&&(c.C=0,c.o=b,c.W=!0,br(c,b[0].playlist||{}));_.rh(n);c.w=null;return _.sh(n,0)})};
531
+ _.u.fj=function(a){var b=this,c;return _.I(function(d){if(1==d.a){if(b.w)throw new _.P(_.Q,7,7008,"Cannot call addItem() while "+b.w+ha);if(!b.W)throw new _.P(_.Q,7,7008,"open() must be called before addItem()!");if(!a.id||!a.source)throw new _.P(_.Q,7,7100,"The config is missing required properties `id` or `source`!");c=new Set(b.o.map(function(e){return e.id}));if(c.has(a.id))throw new _.P(_.Q,7,7100,"A config with this `id` already exists in the playlist!");ph(d);b.w="addItem";b.o.push(a);return _.y(d,
532
+ fr(b,a),2)}_.rh(d);b.w=null;return _.sh(d,0)})};_.u.getCurrentItem=function(){return this.o[this.C]||null};_.u.getCurrentItemIndex=function(){return this.C};_.u.nl=function(){return _.ch(this.o).concat()};_.u.zc=function(){return this.o.length};_.u.getTimeline=function(){return this.a?this.a.getTimeline():null};_.u.seekWith=function(a){return this.a?this.a.seekWith(a):Promise.resolve()};_.u.release=function(){this.o=[];this.C=0;this.W=!1;return X.prototype.release.call(this)};
533
+ _.u.destroy=function(){ar(this);return X.prototype.destroy.call(this)};_.u.setCdnErrorCallback=function(){throw new _.P(1,7,7009,"CDN switching is not supported!");};_.J("clpp.plist.ScPlaylist",$q);$q.prototype.setCdnErrorCallback=$q.prototype.setCdnErrorCallback;$q.prototype.destroy=$q.prototype.destroy;$q.prototype.release=$q.prototype.release;$q.prototype.seekWith=$q.prototype.seekWith;$q.prototype.getTimeline=$q.prototype.getTimeline;$q.prototype.getSize=$q.prototype.zc;
534
+ $q.prototype.getPlaylist=$q.prototype.nl;$q.prototype.getCurrentItemIndex=$q.prototype.getCurrentItemIndex;$q.prototype.getCurrentItem=$q.prototype.getCurrentItem;$q.prototype.addItem=$q.prototype.fj;$q.prototype.open=$q.prototype.open;gr.prototype.has=function(){return this.a.some(function(a){return a.ze})};gr.prototype.get=function(){var a=this,b;return _.I(function(c){if(1==c.a){b=a.a.find(function(d){return d.ze});if(!b)throw Error("No available players in the pool");b.ze=!1;return _.y(c,b.ready,2)}return c["return"](b.player)})};
535
+ gr.prototype.release=function(a){var b=this,c=this.a.find(function(d){return d.player===a});if(!c)return Promise.resolve();c.ze=!0;c.ready=new Promise(function(d){a.release()["catch"](function(e){b.g.error("Failed to unload player",e)}).then(d)});return c.ready};gr.prototype.destroy=function(){var a=this;return _.I(function(b){return _.y(b,Promise.all(a.a.map(function(c){return c.player.destroy()})),0)})};_.x(jr,_.Yl);_.u=jr.prototype;_.u.Sd=function(){return this.f};_.u.Pb=function(){return this.f?this.f.player:null};_.u.Hh=function(){return this.l.get(this.a+1)||null};_.u.Jh=function(){return this.l.get(this.a-1)||null};_.u.Qf=function(){return[this.Jh(),this.Hh()].filter(Boolean)};_.u.jn=function(a){if(0<this.h.length)throw Error("Cannot re-set items in the playlist");this.g.info("Set items",a);this.h=a.map(function(b,c){return{config:b,index:c,preloadPromise:Promise.resolve(),disposers:[]}})};
536
+ _.u.hn=function(a){if(0===this.h.length)throw Error(Db);if(0>a||a>this.h.length-1)throw Error("Index out of bounds");this.a=a};_.u.md=function(){return this.a<this.h.length-1};_.u.Oh=function(){return 0<this.a};
537
+ _.u.Um=function(){var a=this,b,c;return _.I(function(d){switch(d.a){case 1:if(a.j)return a.g.warn("Cannot play first item while busy"),d["return"]();if(0===a.h.length)return a.g.warn(Db),d["return"]();a.j=!0;a.g.info("First (index: "+a.a+")");b=a.h[a.a];_.D(d,2,3);a.g.info("First loading (index: "+a.a+")");return _.y(d,rr(a,b),5);case 5:a.g.info("First playing (index: "+a.a+")");case 3:_.rh(d);a.j=!1;wr(a);_.sh(d,0);break;case 2:throw c=_.E(d),a.g.error("First failed (index: "+a.a+")"),c;}})};
538
+ _.u.Ai=function(){var a=this,b,c,d;return _.I(function(e){switch(e.a){case 1:if(a.j)return a.g.warn("Cannot play next item while busy"),e["return"]();if(!a.md())return a.g.warn("There are no more items in the playlist"),e["return"]();a.j=!0;a.a+=1;a.g.info("Next (index: "+a.a+")");b=a.f;a.o.transition===_.hf&&b.player.pause();kr(a,a.a+-2);a.l["delete"](a.a);c=a.h[a.a];_.D(e,2,3);a.g.info("Next loading (index: "+a.a+")");return _.y(e,sr(a,c),5);case 5:a.g.info("Next playing (index: "+a.a+")");case 3:_.rh(e);
539
+ a.j=!1;b&&or(a,b);wr(a);_.sh(e,0);break;case 2:throw d=_.E(e),a.g.error("Next failed (index: "+a.a+")"),d;}})};
540
+ _.u.Vm=function(){var a=this,b,c,d;return _.I(function(e){switch(e.a){case 1:if(a.j)return a.g.warn("Cannot play previous item while busy"),e["return"]();if(!a.Oh())return a.g.warn("There are no more previous items in the playlist"),e["return"]();a.j=!0;--a.a;a.g.info("Previous (index: "+a.a+")");b=a.f;a.o.transition===_.hf&&b.player.pause();kr(a,a.a+2);a.l["delete"](a.a);c=a.h[a.a];_.D(e,2,3);a.g.info("Previous loading (index: "+a.a+")");return _.y(e,sr(a,c),5);case 5:a.g.info("Previous playing (index: "+
541
+ a.a+")");case 3:_.rh(e);a.j=!1;b&&or(a,b);wr(a);_.sh(e,0);break;case 2:throw d=_.E(e),a.g.error("Previous failed (index: "+a.a+")"),d;}})};_.u.destroy=function(){var a=this;return _.I(function(b){return 1==b.a?(a.g.info("Destroy"),_.y(b,Promise.all([lr(a),a.f?or(a,a.f):Promise.resolve()]),2)):_.y(b,xr(a),0)})};_.J(Ld,jr);jr.prototype.destroy=jr.prototype.destroy;jr.prototype.playPrev=jr.prototype.Vm;jr.prototype.playNext=jr.prototype.Ai;jr.prototype.playFirst=jr.prototype.Um;
542
+ jr.prototype.hasPrev=jr.prototype.Oh;jr.prototype.hasNext=jr.prototype.md;jr.prototype.setIndex=jr.prototype.hn;jr.prototype.setItems=jr.prototype.jn;jr.prototype.getPreloading=jr.prototype.Qf;jr.prototype.getPrev=jr.prototype.Jh;jr.prototype.getNext=jr.prototype.Hh;jr.prototype.getCurrentPlayer=jr.prototype.Pb;jr.prototype.getCurrent=jr.prototype.Sd;var nr="preload",pr=_.Me;var yr=new Map;_.u=Ar.prototype;_.u.destroy=function(){this.a.dispose();this.a=null};_.u.reset=function(){this.a=new muxjs.mp4.Transmuxer(this.f)};_.u.isSupported=function(a,b){var c="mp2t"===a.toLowerCase().split(";")[0].split("/")[1],d=a.toLowerCase().split(";")[0]===_.cd;if(!window.muxjs||!c&&!d)return!1;if(d)return _.zr(hd);if(b)return _.zr(Br(b,a));c=Br(_.bd,a);d=Br(_.r,a);return _.zr(c)||_.zr(d)};_.u.isMuxed=function(a,b){return 1<this.demuxMimeTypes(a,b).size};
543
+ _.u.demuxMimeTypes=function(a,b){var c=new Map;c.set(a,b);try{var d=_.Vk(b),e=_.Wk(b).split(","),f=new Map,g=Ui(_.bd,e),h=Ui(_.r,e);g&&f.set(_.bd,this.convertCodecs(_.bd,_.Uk(d,g)));h&&f.set(_.r,this.convertCodecs(_.r,_.Uk(d,h)));return f}catch(l){return c}};_.u.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]===_.cd?hd:"mp2t"===b.toLowerCase().split(";")[0].split("/")[1]?Br(a,b):b};_.u.getOriginalMimeType=function(){return this.h};
544
+ _.u.transmux=function(a){function b(){g={video:Dj.apply(wj,_.ch(d)),captions:f,audio:Dj.apply(wj,_.ch(e))}}function c(h){f=h.captions;var l=new Uint8Array(h.data.byteLength+h.initSegment.byteLength);l.set(h.initSegment,0);l.set(h.data,h.initSegment.byteLength);h.type===pv?d.push(l):h.type===qv&&e.push(l)}var d=[],e=[],f=[],g=null;a=_.nj(a);this.a.on("data",c);this.a.on("done",b);this.a.push(a);this.a.flush();this.a.off("data",c);this.a.off("done",b);if(!g)throw new _.P(_.Q,3,3018);return g};
545
+ Pk(_.cd,function(){return new Ar(_.cd)});Pk(_.Fg,function(){return new Ar(_.Fg)});var qv=_.bd,pv=_.r;_.x(Er,_.Yl);_.u=Er.prototype;_.u.getCurrentItem=function(){return this.a};_.u.Pb=function(){return this.a?this.a.player:null};_.u.Qf=function(){return Array.from(this.f.values())};_.u.ye=function(a){this.g.info("Add items",a);this.j=this.j.concat(a.map(function(b){return Object.assign({},b,{state:"idle",disposers:[],preloadPromise:Promise.resolve(),he:Promise.resolve()})}))};
546
+ _.u.removeItems=function(a){this.g.info("Remove items",a);a?this.j=this.j.filter(function(b){return!a.includes(b.id)}):this.j=[]};_.u.md=function(){return 0<this.f.size};
547
+ _.u.play=function(a){var b=this,c,d,e,f;return _.I(function(g){switch(g.a){case 1:if(b.h)return b.g.warn("Cannot play item while busy (ID: "+a+")"),g["return"]();c=b.getItem(a);if(!c)return b.g.warn(sb+a+")"),g["return"]();b.g.info("Play item (ID: "+a+")");b.h=!0;(d=b.a)&&d.player.pause();(e=b.f.has(a))&&b.f["delete"](a);_.D(g,2,3);b.g.info(rb+a+")");return e?_.y(g,Rr(b,c),6):_.y(g,Pr(b,c),6);case 6:c.Gc&&c.Gc(),b.trigger(new _.L(Be,{detail:c})),Hr(b,c),b.g.info("Item playing (ID: "+a+")");case 3:_.rh(g);
548
+ b.h=!1;d&&Nr(b,d);Ir(b);Jr(b,c.next);_.sh(g,0);break;case 2:throw f=_.E(g),b.g.error(qb+a+")"),f;}})};
549
+ _.u.load=function(a){var b=this,c,d,e,f;return _.I(function(g){switch(g.a){case 1:if(b.h)return b.g.warn("Cannot load item while busy (ID: "+a+")"),g["return"]();c=b.getItem(a);if(!c)return b.g.warn(sb+a+")"),g["return"]();b.g.info("Load item (ID: "+a+")");b.h=!0;(d=b.a)&&d.player.pause();(e=b.f.has(a))&&b.f["delete"](a);_.D(g,2,3);b.g.info(rb+a+")");if(e){b.g.error("Loading preloaded items is not supported");g.F(5);break}return _.y(g,Or(b,c),5);case 5:b.trigger(new _.L(Be,{detail:c})),Hr(b,c),b.g.info("Item loaded (ID: "+
550
+ a+")");case 3:_.rh(g);b.h=!1;d&&Nr(b,d);Ir(b);Jr(b,c.next);_.sh(g,0);break;case 2:throw f=_.E(g),b.g.error(qb+a+")"),f;}})};_.u.getItem=function(a){return this.j.find(function(b){return b.id===a})||null};_.u.release=function(){var a=this;return _.I(function(b){if(1==b.a)return _.y(b,Promise.all([Ir(a),a.a?Nr(a,a.a):Promise.resolve()]),2);a.a=null;a.h=!1;a.removeItems();Gr(a,!0);_.C(b)})};
551
+ _.u.destroy=function(){var a=this;return _.I(function(b){return 1==b.a?(a.g.info("Destroy"),_.y(b,a.release(),2)):_.y(b,Tr(a),0)})};Er.prototype.destroy=Er.prototype.destroy;Er.prototype.release=Er.prototype.release;Er.prototype.getItem=Er.prototype.getItem;Er.prototype.load=Er.prototype.load;Er.prototype.play=Er.prototype.play;Er.prototype.hasNext=Er.prototype.md;Er.prototype.removeItems=Er.prototype.removeItems;Er.prototype.addItems=Er.prototype.ye;Er.prototype.getPreloading=Er.prototype.Qf;
552
+ Er.prototype.getCurrentPlayer=Er.prototype.Pb;Er.prototype.getCurrentItem=Er.prototype.getCurrentItem;var Mr="preload",Qr=_.Me;_.x(Yr,_.Yl);_.u=Yr.prototype;_.u.load=function(a){var b=this,c;return _.I(function(d){if(1==d.a)return _.y(d,$r(b,a,!1),2);b.trigger(new _.L(rv));c=b.a.getCurrentItem();c.primary&&b.trigger(new _.L(zs));_.C(d)})};_.u.Rd=function(){var a=this.l;return a?this.j.map(function(b){return{cueId:b.cueId,startTime:b.startTime,endTime:b.endTime,primaryDuration:a}}):[]};_.u.Ol=function(a){var b=this;return _.I(function(c){return _.y(c,$r(b,a,!0),0)})};
553
+ _.u.unload=function(){var a=this;return _.I(function(b){if(1==b.a)return _.y(b,a.a.release(),2);a.j=[];_.C(b)})};_.u.destroy=function(){var a=this;return _.I(function(b){return _.y(b,a.a.destroy(),0)})};_.u.yn=function(){var a=this,b;return _.I(function(c){if(1==c.a)return _.y(c,Fr(a.a),2);a.trigger(new _.L(rv));b=a.a.getCurrentItem();b.primary&&a.trigger(new _.L(zs));_.C(c)})};_.u.getPosition=function(){var a=this.a.Pb();return a?a.getPosition():null};_.u.Pb=function(){return this.a.Pb()};
554
+ _.u.getCurrentItem=function(){return this.a.getCurrentItem()};_.J(Jd,Yr);Yr.prototype.getCurrentItem=Yr.prototype.getCurrentItem;Yr.prototype.getCurrentPlayer=Yr.prototype.Pb;Yr.prototype.getPosition=Yr.prototype.getPosition;Yr.prototype.unpause=Yr.prototype.yn;Yr.prototype.destroy=Yr.prototype.destroy;Yr.prototype.unload=Yr.prototype.unload;Yr.prototype.loadPaused=Yr.prototype.Ol;Yr.prototype.getCues=Yr.prototype.Rd;Yr.prototype.load=Yr.prototype.load;
555
+ var fs="new",ls="preparing",ns="ready",ys="completed",os="failed",ms="interstitial-preload-started",ps="x-asset-list-request-started",rs="x-asset-list-request-ended",us="interstitial-scheduled",ws="interstitial-started",xs="interstitial-ended",vs="interstitial-item-started",Xr="primary-player-changed",Ur="item-changed",rv="playback-started",zs="primary-started",js="primary-ended",es="cues-changed";_.u=Bs.prototype;_.u.Nb=function(){};_.u.Ob=function(){};_.u.Tb=function(){};_.u.getId=function(){};_.u.getCreativeId=function(){};_.u.getApiFramework=function(){};_.u.getAdSystem=function(){};_.u.getAdvertiserName=function(){};_.u.getTitle=function(){};_.u.getDuration=function(){};_.u.getSkipTimeOffset=function(){};_.u.Dc=function(){};_.u.dc=function(){};_.u.getMediaUrl=function(){};_.u.Rb=function(){};_.u.Qb=function(){};_.u.Db=function(){};_.u.qb=function(){};_.u.getPodIndex=function(){};
556
+ _.u.ec=function(){};_.u.fc=function(){};_.u.Sb=function(){};_.u.getWrapperAdIds=function(){};_.u.getWrapperAdSystems=function(){};_.u.getWrapperCreativeIds=function(){};_.J("clpp.ads.IAd",Bs);Bs.prototype.getWrapperCreativeIds=Bs.prototype.getWrapperCreativeIds;Bs.prototype.getWrapperAdSystems=Bs.prototype.getWrapperAdSystems;Bs.prototype.getWrapperAdIds=Bs.prototype.getWrapperAdIds;Bs.prototype.getSequenceLength=Bs.prototype.Sb;Bs.prototype.getPositionInSequence=Bs.prototype.fc;
557
+ Bs.prototype.getPodTimeOffset=Bs.prototype.ec;Bs.prototype.getPodIndex=Bs.prototype.getPodIndex;Bs.prototype.getPodType=Bs.prototype.qb;Bs.prototype.getMediaBitrate=Bs.prototype.Db;Bs.prototype.getMediaHeight=Bs.prototype.Qb;Bs.prototype.getMediaWidth=Bs.prototype.Rb;Bs.prototype.getMediaUrl=Bs.prototype.getMediaUrl;Bs.prototype.getClickThroughUrl=Bs.prototype.dc;Bs.prototype.isBumper=Bs.prototype.Dc;Bs.prototype.getSkipTimeOffset=Bs.prototype.getSkipTimeOffset;Bs.prototype.getDuration=Bs.prototype.getDuration;
558
+ Bs.prototype.getTitle=Bs.prototype.getTitle;Bs.prototype.getAdvertiserName=Bs.prototype.getAdvertiserName;Bs.prototype.getAdSystem=Bs.prototype.getAdSystem;Bs.prototype.getApiFramework=Bs.prototype.getApiFramework;Bs.prototype.getCreativeId=Bs.prototype.getCreativeId;Bs.prototype.getId=Bs.prototype.getId;Bs.prototype.getTechnology=Bs.prototype.Tb;Bs.prototype.getAdManagerVersion=Bs.prototype.Ob;Bs.prototype.getAdManagerName=Bs.prototype.Nb;Cs.prototype.name=function(){};Cs.prototype.isSupported=function(){};Cs.prototype.create=function(){};_.J("clpp.ads.IAdsManagerFactory",Cs);Cs.prototype.create=Cs.prototype.create;Cs.prototype.isSupported=Cs.prototype.isSupported;Cs.prototype.name=Cs.prototype.name;_.u=Ds.prototype;_.u.load=function(){};_.u.start=function(){};_.u.resume=function(){};_.u.pause=function(){};_.u.skip=function(){};_.u.getVolume=function(){};_.u.setVolume=function(){};_.u.getPosition=function(){};_.u.dispose=function(){};_.J("clpp.ads.IAdsManager",Ds);Ds.prototype.getPosition=Ds.prototype.getPosition;Ds.prototype.setVolume=Ds.prototype.setVolume;Ds.prototype.getVolume=Ds.prototype.getVolume;Ds.prototype.skip=Ds.prototype.skip;Ds.prototype.pause=Ds.prototype.pause;
559
+ Ds.prototype.resume=Ds.prototype.resume;_.u=Es.prototype;_.u.load=function(){return Promise.resolve()};_.u.start=function(a){return a.play()};_.u.resume=function(){};_.u.pause=function(){};_.u.skip=function(){};_.u.getVolume=function(){return 1};_.u.setVolume=function(){};_.u.getPosition=function(){return-1};_.u.dispose=function(){return _.I(function(a){_.C(a)})};Es.prototype.dispose=Es.prototype.dispose;Es.prototype.getPosition=Es.prototype.getPosition;Es.prototype.setVolume=Es.prototype.setVolume;Es.prototype.getVolume=Es.prototype.getVolume;
560
+ Es.prototype.skip=Es.prototype.skip;Es.prototype.pause=Es.prototype.pause;Es.prototype.resume=Es.prototype.resume;Es.prototype.start=Es.prototype.start;Es.prototype.load=Es.prototype.load;Wp.prototype.name=function(){return"clpp.ads.NopAdsManagerFactory"};Wp.prototype.isSupported=function(){return!0};Wp.prototype.create=function(){return new Es};Wp.prototype.create=Wp.prototype.create;Wp.prototype.isSupported=Wp.prototype.isSupported;Wp.prototype.name=Wp.prototype.name;Fs.prototype.getCuePoints=function(){};Fs.prototype.hc=function(){};Fs.prototype.Fb=function(){};_.J("clpp.ads.IAdsTimeline",Fs);Fs.prototype.hasPostroll=Fs.prototype.Fb;Fs.prototype.hasPreroll=Fs.prototype.hc;Fs.prototype.getCuePoints=Fs.prototype.getCuePoints;_.Gs.prototype.f=function(){};_.Gs.prototype.a=function(){};_.Gs.prototype.h=function(){};_.Gs.prototype.o=function(){};_.u=Hs.prototype;_.u.Ee=function(a){this.a=a};_.u.Gd=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(Ab)};_.u.Me=function(){return this.a&&this.a.mediaKeys};_.u.rc=function(a,b){this.g.debug("Requesting media key system access for",a,b.map(function(c){return Object.assign({},c,{drmInfos:c.drmInfos.map(function(){return"_anonymous_"})})}));return navigator.requestMediaKeySystemAccess(a,b)["catch"](function(c){c.message&&(c=Error(c.message+" (keySystem: "+a+")"));return Promise.reject(c)})};
561
+ _.u.Fd=function(){return Vb};Is.prototype.a=function(){return Vb};Is.prototype.isSupported=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};Is.prototype.create=function(){return new Hs};En(new Is,1E3);_.u=Js.prototype;_.u.getStatus=function(){return this.a};_.u.forEach=function(a){this.a&&a(this.a,sv.value())};_.u.get=function(a){if(this.has(a))return this.a};_.u.has=function(a){var b=sv.value();return this.a&&pj(a,b)?!0:!1};_.u.entries=function(){};_.u.keys=function(){};_.u.values=function(){};var sv=new _.kp(function(){return vj(new Uint8Array([0]))});_.u=Ls.prototype;_.u.Ee=function(){};_.u.Gd=function(a){_.Kh("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.u.Me=function(){return null};_.u.rc=function(){_.Kh("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.u.Fd=function(){return"NOP"};Ms.prototype.a=function(){return"NOP"};Ms.prototype.isSupported=function(){return!0};Ms.prototype.create=function(){return new Ls};
562
+ En(new Ms,-1);_.u=Ns.prototype;_.u.Ee=function(a){this.f=a};_.u.Gd=function(a){var b=this.a;b&&b!==a&&Qs(b,null);return(this.a=a)?Qs(a,this.f):Promise.resolve()};_.u.Me=function(){return this.a};_.u.rc=function(a,b){_.Kh("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new Os(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.u.Fd=function(){return"APPLE"};Os.prototype.createMediaKeys=function(){var a=new Ps(this.keySystem);return Promise.resolve(a)};
563
+ Os.prototype.getConfiguration=function(){_.Kh("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};Ps.prototype.createSession=function(a){a=void 0===a?pg:a;this.g.debug("Creating Apple MediaKeys Session");if(a!==pg)throw new TypeError("Session type "+a+da);return new Rs(this.h,"__session_"+this.j++)};Ps.prototype.setServerCertificate=function(){this.g.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.x(Rs,_.Yl);_.u=Rs.prototype;
564
+ _.u.generateRequest=function(a,b){var c=this;if(this.l)return Promise.reject(Zb);this.g.debug("generateRequest");this.h=new _.Qj;try{var d=this.o.createSession(_.Gg,_.nj(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,Ug,function(e){var f=c.keyStatuses.getStatus();c.g.debug("Received Key Message in "+c.sessionId);c.h&&(c.h.resolve(),c.h=null);e=new _.L(_.Pe,{messageType:void 0===f||f===ig?Fe:Ee,message:vj(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,Sg,function(e){c.g.debug("onWebkitKeyAdded_",
565
+ e);c.f&&(Ss(c,"usable"),c.f.resolve(),c.f=null)});this.j.on(d,Tg,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===ig)c.g.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.g.error("Received key error in session "+c.sessionId+" with code "+(c.a.error.code+". Session Status ")+(e+".")),e=Error("EME AppleEmeManager key error"),e.errorCode=c.a.error,null!==c.h)c.h.reject(e),c.h=null;else if(null!==c.f)c.f.reject(e),
566
+ c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:Ss(c,"output-not-allowed");break;default:Ss(c,_.Ae)}});Ss(this,ig)}catch(e){this.h.reject(e)}return this.h};_.u.load=function(){this.g.debug("load");return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.u.update=function(a){if(this.l)return Promise.reject(Zb);this.g.debug(xg);this.f=new _.Qj;try{this.a.update(_.nj(a))}catch(b){this.f.reject(b)}return this.f};
567
+ _.u.close=function(){if(this.l)return this.closed;this.g.info("Closing Key Session "+this.sessionId);this.l=!0;try{this.a.close(),this.closed.resolve(),_.Xh(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.u.remove=function(){this.g.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};Ts.prototype.a=function(){return"APPLE"};Ts.prototype.isSupported=function(){return!!window.WebKitMediaKeys};
568
+ Ts.prototype.create=function(){return new Ns};En(new Ts,1100);_.u=Us.prototype;_.u.Ee=function(a){this.a=a};_.u.Gd=function(a){_.Kh("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(Ab);var b=this.f;b&&b!==a&&Zs(b,null);(this.f=a)&&Zs(a,this.a);return Promise.resolve()};_.u.Me=function(){return this.f};_.u.rc=function(a,b){_.Kh("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.r);c=d.length?d[0]:document.createElement(_.r)}var e=new Vs(this.h,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
569
+ _.u.Fd=function(){return"WEBKIT"};Vs.prototype.createMediaKeys=function(){return Promise.resolve(new Ws(this.h,this.a))};Vs.prototype.getConfiguration=function(){return this.f};Ws.prototype.createSession=function(a){a=void 0===a?pg:a;if(a!==pg&&a!==_.kf)throw new TypeError("Session type "+a+da);if(!this.a)throw a=Error("Media element is missing."),a.name=pb,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new $s(this.h,this.a,this.o,a);this.j.push(a);return a};
570
+ Ws.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.x($s,_.Yl);_.u=$s.prototype;_.u.ready=function(){_.Kh("WebkitEmeManager.MediaKeySession.ready");Ys(this,"usable");this.a&&this.a.resolve();this.a=null};_.u.generateRequest=function(a,b){_.Kh("WebkitEmeManager.MediaKeySession.generateRequest");return bt(this,b,null)};_.u.load=function(a){_.Kh(pc);return this.l===_.kf?bt(this,null,a):Promise.reject(Error(Gb))};_.u.update=function(a){_.Kh(pc);var b=new _.Qj;ct(this,b,a);return b};
571
+ _.u.close=function(){_.Kh("WebkitEmeManager.MediaKeySession.close");if(this.l!==_.kf){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=at(this,"cancelKeyRequest");try{this.j[a](this.h,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.u.remove=function(){_.Kh("WebkitEmeManager.MediaKeySession.remove");return this.l!==_.kf?Promise.reject(Error(Gb)):this.close()};dt.prototype.a=function(){return"WEBKIT"};
572
+ dt.prototype.isSupported=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};dt.prototype.create=function(){return new Us};En(new dt);_.x(et,_.Em);et.prototype.je=function(a,b){for(var c=a.drm.customData.headers||{},d=_.w(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};et.prototype.yh=function(a,b){var c=Zm(b);switch(this.o){case uv:return c;case vv:return(new _.sk(c)).a;default:throw Error("Unknown content ID strategy");}};et.prototype.ii=function(a,b){b.headers[ya]=ad;this.je(a,b);var c={spc:_.xj(b.body)};b.body=_.S.wd(_.uk(c,!0))};
573
+ et.prototype.ji=function(a,b){var c=_.S.ea(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.zj(c).buffer};_.J(Hd,et);et.prototype.onFairPlayLicenseResponse=et.prototype.ji;et.prototype.onFairPlayLicenseRequest=et.prototype.ii;et.prototype.extractFairPlayContentId=et.prototype.yh;et.prototype.onLicenseRequest=et.prototype.je;et.prototype.constructor=et.prototype.constructor;et.NAME=jb;var vv="hostname",uv="full-skd";
574
+ et.FairPlayContentIdStrategy={HOSTNAME:vv,FULL_SKD:uv};_.x(ft,_.Gs);ft.prototype.h=function(a){a=a.getConfiguration();if(a.drm&&a.drm&&a.drm.env===jb){a=a.drm.customData;if(!a)throw new _.P(_.Q,7,7100,_.Vd);a=new et(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||uv);_.zm(a)}};ft.prototype.a=function(){delete _.ym.HeaderDrm};ft.prototype.id=function(){return"headerdrm"};_.J("clpp.drm.HeaderDrmComponent",ft);_.rq(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=_.nj(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.rq(function(){_.Kh("mathRound.install")});_.rq(function(){if(window.Document){var a=Element.prototype;a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||a.webkitRequestFullscreen;a=Document.prototype;a.exitFullscreen=a.exitFullscreen||a.mozCancelFullScreen||a.msExitFullscreen||a.webkitExitFullscreen;ue in document||(Object.defineProperty(document,ue,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
575
+ {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",gt);document.addEventListener("webkitfullscreenerror",gt);document.addEventListener("mozfullscreenchange",gt);document.addEventListener("mozfullscreenerror",gt);document.addEventListener("MSFullscreenChange",gt);document.addEventListener("MSFullscreenError",gt)}});_.rq(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Kh("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=it,document.exitPictureInPicture=jt,document.addEventListener("webkitpresentationmodechanged",ht,!0))}});_.rq(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=kt)}});_.rq(function(){if(window.VTTCue)_.Jh("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Jh(lc),window.VTTCue=lt;else if(6===a)_.Jh("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=mt;else{try{var b=!!lt(1,2,"")}catch(c){b=!1}b&&(_.Jh(lc),window.VTTCue=lt)}}else _.Lh("VTTCue not available.")});var nt;_.rq(function(){_.Kh("InputEvent.install");_.bl("Trident/")&&HTMLInputElement.prototype.addEventListener!==ot&&(_.Jh("Patching input event support on IE."),nt=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=ot)});_.rq(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.rq(function(){_.Kh("VideoPlayPromise.install");if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b["catch"](function(){});return b}}});_.wt.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.j(b.contentRect.width,b.contentRect.height,a.h.isFullscreen())});this.f&&this.a.observe(this.f)};_.wt.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.yt.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.r);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.Qj;c=c.play();var e=(new _.Zk(function(){b(a)})).fa(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===Jb?b(!0):b(!1)}):b(!0);return d};
576
+ var xt=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,
562
577
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
563
578
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
564
579
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
565
580
  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,
566
581
  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,
567
- 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]);_.Ru=new _.K("clpp.media.TimestampParser");_.bt={};_.dt={};var it=window.XMLHttpRequest;_.w(qt,_.Aj);qt.prototype.then=function(a,b){this.O=this.O.then(a,b);return this};qt.prototype["catch"]=function(a){this.O=this.O["catch"](a);return this};qt.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.h.then(function(b){a.o&&clearTimeout(a.o);a.l&&a.l();return b.abort()})["catch"](function(){})};_.ut.prototype.enabled=function(){return this.a};_.ut.prototype.Mg=function(){return this.a&&this.f&&this.f.has(Su)?1E3*this.f.get(Su):null};_.ut.prototype.release=function(){this.f=null;this.a=!1;this.h.ye(this.j)};_.ut.prototype.getEstimatedThroughput=_.ut.prototype.Mg;var Su="etp",wt={Jm:Su},xt=new _.K("clpp.net.CmsdManager");var Jt=window.fetch,zt=window.AbortController,yt=window.Headers;_.St={};_.r=_.Wt.prototype;_.r.getBackgroundColor=function(){return this.K};_.r.setBackgroundColor=function(a){this.K=a;this.vb()};_.r.getWindowColor=function(){return this.V};_.r.setWindowColor=function(a){this.V=a;this.vb()};_.r.getFontFamily=function(){return this.U};_.r.setFontFamily=function(a){this.U=a;this.vb()};_.r.getFontColor=function(){return this.P};_.r.setFontColor=function(a){this.P=a;this.vb()};_.r.getFontSize=function(){return this.I};_.r.setFontSize=function(a){this.I=a;this.vb()};
568
- _.r.getFontSizePercent=function(){return null===this.B?Tu:this.B};_.r.setFontSizePercent=function(a){this.B=a;this.vb()};_.r.getEdgeColor=function(){return this.H};_.r.setEdgeColor=function(a){this.H=a;this.vb()};_.r.getEdgeType=function(){return this.o};_.r.setEdgeType=function(a){this.o=a;this.vb()};_.Wt.prototype.setEdgeType=_.Wt.prototype.setEdgeType;_.Wt.prototype.getEdgeType=_.Wt.prototype.getEdgeType;_.Wt.prototype.setEdgeColor=_.Wt.prototype.setEdgeColor;_.Wt.prototype.getEdgeColor=_.Wt.prototype.getEdgeColor;
569
- _.Wt.prototype.setFontSizePercent=_.Wt.prototype.setFontSizePercent;_.Wt.prototype.getFontSizePercent=_.Wt.prototype.getFontSizePercent;_.Wt.prototype.setFontSize=_.Wt.prototype.setFontSize;_.Wt.prototype.getFontSize=_.Wt.prototype.getFontSize;_.Wt.prototype.setFontColor=_.Wt.prototype.setFontColor;_.Wt.prototype.getFontColor=_.Wt.prototype.getFontColor;_.Wt.prototype.setFontFamily=_.Wt.prototype.setFontFamily;_.Wt.prototype.getFontFamily=_.Wt.prototype.getFontFamily;
570
- _.Wt.prototype.setWindowColor=_.Wt.prototype.setWindowColor;_.Wt.prototype.getWindowColor=_.Wt.prototype.getWindowColor;_.Wt.prototype.setBackgroundColor=_.Wt.prototype.setBackgroundColor;_.Wt.prototype.getBackgroundColor=_.Wt.prototype.getBackgroundColor;var Tu=1/15;var Xt="raised",Yt="depressed",$t="dropshadow",Zt="uniform";_.I("clpp.text.EdgeType",{NONE:_.Ue,RAISED:Xt,DEPRESSED:Yt,DROP_SHADOW:$t,UNIFORM:Zt});bu.prototype.parseInit=function(a){try{var b=_.Ut(_.Vc);if(b){var c=new b(this.f);c.parseInit(a)}else this.g.warn("The clpp.ttml.Mp4TtmlParser class is not available. Please register the ttml component first.")}catch(e){c=null}if(c)this.a=c;else{try{var d=_.Ut(_.Wc);d?(c=new d(this.f),c.parseInit(a)):this.g.warn("The clpp.vtt.Mp4VttParser class is not available. Please register the vtt component first.")}catch(e){c=null}if(c)this.a=c;else throw new _.P(_.Q,2,2011);}};
571
- bu.prototype.parseMedia=function(a,b){if(!this.a)throw new _.P(_.Q,2,2011);return this.a.parseMedia(a,b)};_.Tt(Uc,bu);_.w(_.du,_.Wt);_.r=_.du.prototype;_.r.append=function(){};_.r.remove=function(){return!0};_.r.isTextVisible=function(){return this.w};_.r.setTextVisibility=function(a){this.w=a};
572
- _.r.vb=function(){if(!this.j){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.au(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.h.textContent="."+this.f+"::cue {"+b+"}"}};_.r.destroy=function(){this.l.classList.remove(this.f);document.head.removeChild(this.h);this.j=!0;return Promise.resolve()};var cu=0;eu.prototype.isSupported=function(){return!0};eu.prototype.create=function(a){return new _.du(a)};_.Io("native",new eu);_.fu.prototype.onContentWillLoad=function(){return Promise.resolve()};_.fu.prototype.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.fu.prototype.onPlayerWillDestroy=function(){};_.fu.prototype.onPlayerWillRelease=function(){};}.call(g,this));
582
+ 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]);_.u=_.zt.prototype;_.u.getDuration=function(){return this.a};_.u.getId=function(){return this.id};_.u.Eb=function(){return this.f};_.u.Zd=function(){return this.h};_.u.oa=function(a){return this.getId()===a.getId()&&this.Eb()===a.Eb()&&this.getDuration()===a.getDuration()&&this.Zd()===a.Zd()};_.J("clpp.media.TimelineWindow",_.zt);_.zt.prototype.isDynamic=_.zt.prototype.Zd;_.zt.prototype.getStart=_.zt.prototype.Eb;_.zt.prototype.getId=_.zt.prototype.getId;_.zt.prototype.getDuration=_.zt.prototype.getDuration;_.wv=new _.K("clpp.media.TimestampParser");_.u=_.At.prototype;_.u.sl=function(a){return this.a[a]||null};_.u.tl=function(){return this.a.length};_.u.ul=function(){return this.a};_.u.Eh=function(){return this.a[this.f]||null};_.u.el=function(){return this.f};_.J("clpp.media.Timeline",_.At);_.At.prototype.getCurrentWindowIndex=_.At.prototype.el;_.At.prototype.getCurrentWindow=_.At.prototype.Eh;_.At.prototype.getWindows=_.At.prototype.ul;_.At.prototype.getWindowCount=_.At.prototype.tl;_.At.prototype.getWindow=_.At.prototype.sl;_.Dt={};_.Ft={};var Kt=window.XMLHttpRequest;_.x(St,_.Rj);St.prototype.then=function(a,b){this.N=this.N.then(a,b);return this};St.prototype["catch"]=function(a){this.N=this.N["catch"](a);return this};St.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.h.then(function(b){a.o&&clearTimeout(a.o);a.l&&a.l();return b.abort()})["catch"](function(){})};_.Wt.prototype.enabled=function(){return this.a};_.Wt.prototype.Gh=function(){return this.a&&this.f&&this.f.has(xv)?1E3*this.f.get(xv):null};_.Wt.prototype.release=function(){this.f=null;this.a=!1;this.h.cf(this.j)};_.Wt.prototype.getEstimatedThroughput=_.Wt.prototype.Gh;var xv="etp",Yt={Hn:xv},Zt=new _.K("clpp.net.CmsdManager");var cu=window.fetch,au=window.AbortController,$t=window.Headers;_.eu={};_.u=_.ju.prototype;_.u.getBackgroundColor=function(){return this.L};_.u.setBackgroundColor=function(a){this.L=a;this.Kb()};_.u.getWindowColor=function(){return this.W};_.u.setWindowColor=function(a){this.W=a;this.Kb()};_.u.getFontFamily=function(){return this.T};_.u.setFontFamily=function(a){this.T=a;this.Kb()};_.u.getFontColor=function(){return this.P};_.u.setFontColor=function(a){this.P=a;this.Kb()};_.u.getFontSize=function(){return this.I};_.u.setFontSize=function(a){this.I=a;this.Kb()};
583
+ _.u.getFontSizePercent=function(){return null===this.C?yv:this.C};_.u.setFontSizePercent=function(a){this.C=a;this.Kb()};_.u.getEdgeColor=function(){return this.H};_.u.setEdgeColor=function(a){this.H=a;this.Kb()};_.u.getEdgeType=function(){return this.o};_.u.setEdgeType=function(a){this.o=a;this.Kb()};_.ju.prototype.setEdgeType=_.ju.prototype.setEdgeType;_.ju.prototype.getEdgeType=_.ju.prototype.getEdgeType;_.ju.prototype.setEdgeColor=_.ju.prototype.setEdgeColor;_.ju.prototype.getEdgeColor=_.ju.prototype.getEdgeColor;
584
+ _.ju.prototype.setFontSizePercent=_.ju.prototype.setFontSizePercent;_.ju.prototype.getFontSizePercent=_.ju.prototype.getFontSizePercent;_.ju.prototype.setFontSize=_.ju.prototype.setFontSize;_.ju.prototype.getFontSize=_.ju.prototype.getFontSize;_.ju.prototype.setFontColor=_.ju.prototype.setFontColor;_.ju.prototype.getFontColor=_.ju.prototype.getFontColor;_.ju.prototype.setFontFamily=_.ju.prototype.setFontFamily;_.ju.prototype.getFontFamily=_.ju.prototype.getFontFamily;
585
+ _.ju.prototype.setWindowColor=_.ju.prototype.setWindowColor;_.ju.prototype.getWindowColor=_.ju.prototype.getWindowColor;_.ju.prototype.setBackgroundColor=_.ju.prototype.setBackgroundColor;_.ju.prototype.getBackgroundColor=_.ju.prototype.getBackgroundColor;var yv=1/15;var ku="raised",lu="depressed",nu="dropshadow",mu="uniform";_.J("clpp.text.EdgeType",{NONE:_.Xe,RAISED:ku,DEPRESSED:lu,DROP_SHADOW:nu,UNIFORM:mu});pu.prototype.parseInit=function(a){try{var b=_.hu(_.Xc);if(b){var c=new b(this.f);c.parseInit(a)}else this.g.warn("The clpp.ttml.Mp4TtmlParser class is not available. Please register the ttml component first.")}catch(e){c=null}if(c)this.a=c;else{try{var d=_.hu(_.Yc);d?(c=new d(this.f),c.parseInit(a)):this.g.warn("The clpp.vtt.Mp4VttParser class is not available. Please register the vtt component first.")}catch(e){c=null}if(c)this.a=c;else throw new _.P(_.Q,2,2011);}};
586
+ pu.prototype.parseMedia=function(a,b){if(!this.a)throw new _.P(_.Q,2,2011);return this.a.parseMedia(a,b)};_.fu(Wc,pu);_.x(_.ru,_.ju);_.u=_.ru.prototype;_.u.append=function(){};_.u.remove=function(){return!0};_.u.isTextVisible=function(){return this.w};_.u.setTextVisibility=function(a){this.w=a};
587
+ _.u.Kb=function(){if(!this.j){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.ou(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.h.textContent="."+this.f+"::cue {"+b+"}"}};_.u.destroy=function(){this.l.classList.remove(this.f);document.head.removeChild(this.h);this.j=!0;return Promise.resolve()};var qu=0;su.prototype.isSupported=function(){return!0};su.prototype.create=function(a){return new _.ru(a)};_.ap("native",new su);_.tu.prototype.onContentWillLoad=function(){return Promise.resolve()};_.tu.prototype.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.tu.prototype.onPlayerWillDestroy=function(){};_.tu.prototype.onPlayerWillRelease=function(){};}.call(g,this));
573
588
  g.clpp._ = _;
574
589
  if (typeof(module)!="undefined"&&module.exports) {module.exports=g.clpp;}
575
590
  else if (typeof(define)!="undefined" && define.amd) {define(function(){return g.clpp;});}