@castlabs/prestoplay 6.2.8 → 6.4.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 (58) hide show
  1. package/CHANGELOG.md +81 -1
  2. package/cjs/cl.adobe.js +3 -3
  3. package/cjs/cl.airplay.js +3 -3
  4. package/cjs/cl.broadpeak.js +6 -6
  5. package/cjs/cl.cast.js +111 -106
  6. package/cjs/cl.conviva.js +33 -32
  7. package/cjs/cl.core.js +413 -390
  8. package/cjs/cl.crypto.js +10 -10
  9. package/cjs/cl.dash.js +72 -69
  10. package/cjs/cl.externs.js +123 -69
  11. package/cjs/cl.freewheel.js +24 -24
  12. package/cjs/cl.hls.js +49 -44
  13. package/cjs/cl.hlssmpte.js +6 -6
  14. package/cjs/cl.htmlcue.js +32 -30
  15. package/cjs/cl.ima.js +23 -23
  16. package/cjs/cl.mse.js +259 -259
  17. package/cjs/cl.muxdata.js +12 -11
  18. package/cjs/cl.onboard.js +3 -3
  19. package/cjs/cl.persistent.js +14 -14
  20. package/cjs/cl.playlist.js +6 -5
  21. package/cjs/cl.smooth.js +70 -70
  22. package/cjs/cl.thumbnails.js +24 -23
  23. package/cjs/cl.tizen.js +71 -71
  24. package/cjs/cl.ttml.js +27 -26
  25. package/cjs/cl.verimatrix.js +5 -5
  26. package/cjs/cl.vimond.js +13 -13
  27. package/cjs/cl.vr.js +18 -18
  28. package/cjs/cl.vtt.js +14 -14
  29. package/cjs/cl.youbora.js +20 -18
  30. package/cl.adobe.js +3 -3
  31. package/cl.airplay.js +3 -3
  32. package/cl.broadpeak.js +5 -5
  33. package/cl.cast.js +88 -83
  34. package/cl.conviva.js +27 -27
  35. package/cl.core.js +360 -343
  36. package/cl.crypto.js +8 -8
  37. package/cl.dash.js +67 -64
  38. package/cl.externs.js +123 -69
  39. package/cl.freewheel.js +19 -19
  40. package/cl.hls.js +40 -37
  41. package/cl.hlssmpte.js +5 -5
  42. package/cl.htmlcue.js +25 -24
  43. package/cl.ima.js +16 -16
  44. package/cl.mse.js +233 -226
  45. package/cl.muxdata.js +8 -9
  46. package/cl.onboard.js +4 -4
  47. package/cl.persistent.js +10 -10
  48. package/cl.playlist.js +5 -4
  49. package/cl.smooth.js +58 -58
  50. package/cl.thumbnails.js +17 -17
  51. package/cl.tizen.js +57 -57
  52. package/cl.ttml.js +22 -21
  53. package/cl.verimatrix.js +4 -4
  54. package/cl.vimond.js +8 -8
  55. package/cl.vr.js +14 -14
  56. package/cl.vtt.js +12 -12
  57. package/cl.youbora.js +16 -15
  58. package/package.json +2 -2
package/cjs/cl.core.js CHANGED
@@ -1,341 +1,361 @@
1
1
  (function(){var g={}; var _ = {};
2
- (function(window){var ba,da,la,oa,pa,ta,ua,va,xa,Ba,Fa,Ga,Ha,Ia,Ka,La,Ma,Sa,Ta,Ua,Va,Wa,Xa,Ya,gb,jb,kb,nb,ob,qb,rb,sb,ub,Zb,lc,mc,sc,uc,wc,yc,zc,Ac,Ic,Oc,Rc,Sc,Tc,Yc,dd,fd,gd,ld,od,Hd,Od,Wd,Yd,ge,ke,se,Ae,Oe,Se,Te,Ue,Ve,We,Ye,Ze,$e,cf,gf,lf,nf,mf,of,pf,qf,uf,xf,vf,wf,yf,Af,Bf,Ff,Hf,Mf,Nf,Uf,Vf,bg,$f,cg,eg,dg,gg,jg,wg,xg,yg,Dg,Fg,Ig,Lg,Ng,Og,Rg,Mg,Jg,Sg,gh,kh,lh,nh,ph,zh,Ah,Bh,Dh,Ch,Eh,Fh,Gh,Hh,Ih,Lh,Mh,Nh,Sh,Th,Xh,Yh,Zh,bi,di,fi,ci,$h,ni,pi,qi,Bi,Di,Ei,Fi,Ri,ti,Gi,Ui,Wi,Yi,hj,qj,rj,sj,tj,zj,Bj,Sj,Yj,Zj,ak,ck,dk,kk,
3
- ok,pk,tk,zk,Ak,Ck,Dk,Ek,Kk,Tk,Vk,Xk,al,bl,fl,Rk,Pk,jl,dl,ll,kl,pl,nl,ol,Gk,Wk,ml,Hk,il,Ok,hl,Qk,Jk,ql,wl,yl,zl,Al,Bl,Gl,Kl,Ll,Nl,Rl,Wl,Jl,Xl,Yl,am,dm,em,gm,hm,cm,bm,im,jm,tm,Am,zm,Bm,Cm,Em,Dm,Gm,Hm,Im,Jm,Fm,Lm,Nm,Om,Pm,Qm,Rm,Sm,Tm,Um,Wm,Xm,Ym,Zm,Vm,bn,S,dn,cn,fn,hn,jn,nn,kn,U,qn,rn,sn,sm,tn,vn,wn,xn,yn,zn,An,Bn,Cn,Dn,En,Fn,Gn,Hn,In,Jn,Mn,Kn,Nn,Pn,Qn,Ln,On,Rn,Sn,Tn,Un,Vn,Wn,Xn,Yn,Zn,$n,bo,eo,fo,go,co,ko,lo,po,uo,vo,xo,wo,ki,zo,Co,Bo,Do,Eo,Ao,Go,Ho,Fo,Io,li,Lo,gi,Xo,$o,ef,bp;_.aa=" is registered.";
4
- ba=" is unsupported on this platform.";da=" to a log level. Falling back to default!";_.ea="6.2.8";_.fa="AdaptationSet";_.ha="Already destroyed. No-op";_.ia="Already released. No-op";_.ja="Autoplay is not allowed due to browser policy.";_.ka="CODECS";la="Can not set volume to ";_.ma="Cannot retrieve buffer information due to platform limitations";_.na="CastlabsPlayer";oa="Content-Length";pa="Content-Type";_.qa="Could not find configured DRM environment.";_.sa="DRM environment '";ta="DRM licenses loaded";
5
- ua="DRMtoday";va="DRMtodayOnboard";xa="Destroying player";_.ya="Disable track type ";Ba="Error while decoding string!";_.Ca="Error while fetching license!";_.Da="FairPlay Certificate URL is not defined";_.Ea="FairPlay License URL is not defined";Fa="HW_SECURE_CRYPTO";Ga="HW_SECURE_DECODE";Ha="HeaderDrm";Ia="Ignoring duplicate init data.";Ka="Invalid track type: ";La="InvalidStateError";Ma="License verification failed: ";_.Na="Loading player with configuration";_.Pa="MaxHeight";_.Qa="MaxWidth";
6
- Sa="Missing media element";Ta="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";Ua="No event provided!";Va="No track data attached to the event, unable to add track!";Wa="Not a persistent session.";Xa="NotAllowedError";Ya="NotSupportedError";_.Za="PlayReady License URL is not defined";_.$a="Player sources";_.bb="Player state change: ";_.cb="Please make sure ";_.db="QualityLevel";_.eb="Releasing player with source";_.fb="Representation";gb="STANDARD";
7
- _.hb="SW_SECURE_CRYPTO";_.ib="SW_SECURE_DECODE";jb="Setting native ";kb="Signature Verification failed";_.lb="SmoothStreamingMedia";nb="The index is not in the allowed range.";ob="Unable to translate ";_.pb="Unregistering listeners";qb="Unsupported keySystem";rb="Using VTTCue polyfill from 3 argument TextTrackCue.";sb="WebkitEmeManager.MediaKeySession.load";_.tb="Widevine License URL is not defined";ub="Will create EME Manager: ";_.vb="ad-break-started";_.wb="ad-break-stopped";_.xb="ad-buffering";
8
- _.yb="ad-clicked";_.zb="ad-completed";_.Ab="ad-first-quartile";_.Bb="ad-impression";_.Cb="ad-loaded";_.Db="ad-midpoint";_.Eb="ad-paused";_.Fb="ad-progress";_.Gb="ad-resumed";_.Hb="ad-skipped";_.Ib="ad-started";_.Jb="ad-stopped";_.Kb="ad-third-quartile";_.Lb="addtrack";_.Mb="ads-timeline-changed";_.Nb="airplay-casting-ended";_.Ob="airplay-casting-started";_.Pb="airplay-status-changed";_.Qb="application";_.Rb="application/cea-608";_.Sb="application/dash+xml";_.Tb="application/mp4";_.Ub='application/mp4; codecs\x3d"stpp"';
9
- _.Vb='application/mp4; codecs\x3d"wvtt"';_.Wb="application/ttml+xml";_.Xb="application/vnd.ms-sstr+xml";_.Yb="application/x-mpegurl";Zb="application/x-www-form-urlencoded";_.$b="audio";_.ac="audio/aac";_.bc="audio/ac3";_.cc="audio/eac3";_.dc="audio/mp4";_.ec="audiobufferchanged";_.fc="autoplaynotallowed";_.hc="bitratechanged";_.ic="boolean";_.jc="bufferingended";_.kc="bufferingstarted";lc="canplay";mc="canplaythrough";_.nc="castingstarted";_.oc="caststatuschanged";_.pc="cdn-switch-success";_.qc="cenc";
10
- _.rc="center";sc="change";uc="clpp-container";_.vc="clpp-fill";wc="clpp-hidden";_.xc="clpp.cast.CastSender";yc="clpp.drm.HeaderDrm";zc="clpp.native.Player";Ac="clpp.utils.Platform";_.Bc="codecs";_.Cc="column-reverse";_.Dc="com.adobe.primetime";_.Ec="com.apple.fps";_.Fc="com.microsoft.playready";_.Gc="com.widevine.alpha";_.Hc="config.drm.customData is not defined";Ic="controls";_.Jc="cuechange";_.Kc="destroy()";_.Lc="disabled";_.Mc="div";_.Nc="drmexpirationupdate";Oc="drmrenewalstarted";_.Pc="drmsessionpersisted";
11
- _.Qc="drmsessionupdate";Rc="drmtoday";Sc="durationchange";Tc="encrypted";_.Vc="end";_.Wc="ended";_.Xc="error";Yc="fullscreenElement";_.Zc="function";_.$c="height";_.ad="hidden";_.bd="image";_.cd="internal-error";dd="keystatuseschange";_.ed="left";fd="license-renewal";gd="license-request";_.hd="line-left";_.id="line-right";_.jd="loadeddata";_.kd="loadedmetadata";ld="loadstart";_.md="mdat";_.nd="mdia";od="message";_.pd="metadata";_.qd="mimeType";_.rd="minf";_.sd="moov";_.td="mp4";_.vd="mpd-type-changed";
12
- _.wd="mpeg-dash-callback-event";_.xd="native";_.yd="none";_.zd="number";_.Ad="object";_.Bd="onBitrateChanged()";_.Cd="onContentLoaded";_.Dd="onPlayerError()";_.Ed="onPlayerWillDestroy";_.Fd="onPlayerWillRelease";_.Gd="onStateChanged()";Hd="online-status-changed";_.Id="optional";_.Jd="org.w3.clearkey";_.Kd="output-restricted";_.Ld="pause";_.Md="persistent";_.Nd="persistent-license";Od="picture-in-picture";_.Pd="play";_.Qd="playing";_.Rd="playlist-item-changed";_.Sd="playlist-modified";_.Td="progress";
13
- _.Ud="px";_.Vd="ratechange";Wd="released";_.Xd="releasing";Yd="removetrack";_.Zd="required";_.$d="resize";_.ae="right";_.be="seeked";_.ce="seeking";_.de="showing";_.ee="sinf";_.fe="single-native";ge="stalled";_.he="start";_.ie="statechanged";ke="status-pending";_.le="stbl";_.me="string";_.ne="stsd";_.oe="style";_.pe="subtitle";_.qe="subtitles-htmlcue";_.re="subtitles-ttml";se="temporary";_.te="text";_.ue="text/vtt";_.ve="text/xml";_.we="timeupdate";_.xe="trak";_.ye="ttml-xml";_.ze="und";Ae="unknown";
14
- _.Be="urn:scte:scte35";_.Ce="urn:scte:scte35:2014";_.De="user-seeked";_.Ee="user-seeking";_.Fe="value";_.Ge="vertical-lr";_.He="vertical-rl";_.Ie="video";_.Je="video/mp2t";_.Ke="video/mp4";_.Le="videobufferchanged";_.Me="videotrackchanged";_.Ne="vimond-response";Oe="visibilitychange";_.Pe="vtt-xml";_.Qe="waiting";_.Re="waitingforkey";Se="webkit-org.w3.clearkey";Te="webkitkeyadded";Ue="webkitkeyerror";Ve="webkitkeymessage";We="webkitneedkey";_.Xe="width";Ye="x-dt-csl-tracking-token";Ze="x-dt-follow-up-token";
15
- $e="x-dt-resp-code";cf=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};_.t=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:cf(a)}};_.df=function(a){if(!(a instanceof Array)){a=_.t(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};
16
- _.u=function(a,b){a.prototype=ef(b.prototype);a.prototype.constructor=a;if(ff)ff(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]};gf=function(){gf=function(){};hf.Symbol||(hf.Symbol=jf)};lf=function(a,b){this.a=a;kf(this,"description",{configurable:!0,writable:!0,value:b})};
17
- nf=function(){gf();var a=hf.Symbol.iterator;a||(a=hf.Symbol.iterator=hf.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.Zc&&kf(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return mf(cf(this))}});nf=function(){}};mf=function(a){nf();a={next:a};a[hf.Symbol.iterator]=function(){return this};return a};of=function(){this.o=!1;this.h=null;this.f=void 0;this.a=1;this.j=this.m=0;this.A=this.g=null};pf=function(a){if(a.o)throw new TypeError("Generator is already running");a.o=!0};
18
- qf=function(a,b){a.g={uf:b,Ff:!0};a.a=a.m||a.j};_.v=function(a,b,c){a.a=c;return{value:b}};_.w=function(a){a.a=0};_.rf=function(a,b,c){a.m=b;void 0!=c&&(a.j=c)};_.sf=function(a,b,c){a.a=b;a.m=c||0};_.tf=function(a,b){a.m=b||0;var c=a.g.uf;a.g=null;return c};uf=function(a){this.a=new of;this.f=a};xf=function(a,b){pf(a.a);var c=a.a.h;if(c)return vf(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return wf(a)};
19
- vf=function(a,b,c,d){try{var e=b.call(a.a.h,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.a.o=!1,e;var f=e.value}catch(g){return a.a.h=null,qf(a.a,g),wf(a)}a.a.h=null;d.call(a.a,f);return wf(a)};wf=function(a){for(;a.a.a;)try{var b=a.f(a.a);if(b)return a.a.o=!1,{value:b.value,done:!1}}catch(c){a.a.f=void 0,qf(a.a,c)}a.a.o=!1;if(a.a.g){b=a.a.g;a.a.g=null;if(b.Ff)throw b.uf;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
20
- yf=function(a){this.next=function(b){pf(a.a);a.a.h?b=vf(a,a.a.h.next,b,a.a.w):(a.a.w(b),b=wf(a));return b};this["throw"]=function(b){pf(a.a);a.a.h?b=vf(a,a.a.h["throw"],b,a.a.w):(qf(a.a,b),b=wf(a));return b};this["return"]=function(b){return xf(a,b)};nf();this[Symbol.iterator]=function(){return this}};_.zf=function(a,b){var c=new yf(new uf(b));ff&&ff(c,a.prototype);return c};
21
- Af=function(a,b){if(b){for(var c=hf,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&&kf(c,d,{configurable:!0,writable:!0,value:f})}};Bf=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())})};_.z=function(a){return Bf(new yf(new uf(a)))};
22
- _.A=function(a,b){var c=a.split("."),d=Cf;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};Ff=function(a){return a&&0<=Df[a]?Df[a]:Ef};Hf=function(a){if(!a)return _.B("clpp.log",ob+a+da),-1;var b=Gf[a.toUpperCase()];return void 0===b?(_.B("clpp.log",ob+a+da),-1):b};_.D=function(a){(this.a=a)&&void 0===Df[a]&&(Df[a]=-1)};_.Jf=function(a){If.info.apply(If,arguments)};
23
- _.Kf=function(a){If.debug.apply(If,arguments)};_.B=function(a){If.warn.apply(If,arguments)};_.Lf=function(a){If.error.apply(If,arguments)};Mf=function(a,b){this.Gb=a;this.a=b};Nf=function(a,b){this.a=a;this.f=b};_.Qf=function(a){if(a){var b=a.a();b in _.Of?_.Pf.warn("Player-Factory '"+b+"' already registered"):(_.Of[b]=a,_.Pf.info("Registered Player-Factory: '"+b+"'"))}};_.Rf=function(){this.a={}};Uf=function(a,b,c,d){this.f=a;this.vc=b;this.a=c;this.vj=!!d};
24
- _.E=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};Vf=function(a){this.a=new _.Rf;this.f=a};_.Yf=function(){this.a=new _.Rf};
25
- _.Zf=function(a,b,c,d){function e(k){for(var l=_.t(c),m=l.next();!m.done;m=l.next())a.off(b,m.value,e);d(k)}for(var f=_.t(c),g=f.next();!g.done;g=f.next())a.on(b,g.value,e)};_.ag=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)$f(c[b]);a.a.clear()};bg=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};$f=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
26
- cg=function(a){this.l=a;this.m=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.h=null;this.f=new _.Yf;this.a=this.j=null;this.g=[];this.o=new _.D("clpp.native.Metadata")};eg=function(a,b){a.h=b;a.j=a.h.textTracks;a.f.on(a.j,_.Lb,function(c){c=c.track;c.kind===_.pd&&dg(a,c)})};
27
- dg=function(a,b){function c(l){for(var m=_.t(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:_.fg,eventElement:null};a.m&&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.o.debug("onMetadata_()");b.mode=_.ad;var d=[],e=!0;if(b.cues){for(var f=_.t(b.cues),g=f.next();!g.done;g=
28
- f.next())if(g=g.value,!gg(a,g)){var k=c(g);switch(g.value.key){case "SCTE35-IN":case "SCTE35-OUT":k.schemeIdUri=_.Ce;k.type=_.hg;break;case "X-CUSTOM-ID":k.id=g.value.data}}f=_.t(d);for(g=f.next();!g.done;g=f.next())a.l.trigger(new _.E(_.ig,{detail:g.value}));Array.prototype.push.apply(a.g,d);jg(a,d,b);a.f.off(b,_.Jc);a.f.on(b,_.Jc,function(l){l=l.target.activeCues;l=l.length?gg(a,l[0]):a.a;var m;if(m=l)m=a.l.getPosition(),m=l.startTime<=m&&m<l.endTime;if(m)a.a=l,a.l.trigger(new _.E(_.kg,{detail:l}));
29
- else{if(l=a.a)l=a.a,m=a.l.getPosition(),l=l.endTime<=m;l&&(l=a.a,a.a=null,a.l.trigger(new _.E(_.lg,{detail:l})))}})}};gg=function(a,b){for(var c=_.t(a.g),d=c.next();!d.done;d=c.next())if(d=d.value,b.startTime===d.startTime&&b.endTime===d.endTime)return d;return null};jg=function(a,b,c){if(a.m){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}))})}};
30
- _.sg=function(a,b,c,d){d=void 0===d?_.mg:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.ng;this.writingMode=_.og;this.lineInterpretation=_.pg;this.line=null;this.lineAlign=_.qg;this.direction=rg;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
31
- _.vg=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.tg;this.scroll=ug;this.cssClassList=[];this.writingMode=this.displayAlign=null};wg=function(a){this.l=a;this.j=a.getTextDisplayer();this.f=this.g=null;this.a=new _.Yf;this.h=!1;this.m=new _.D("clpp.native.CueHandler")};
32
- xg=function(a,b){var c=b.track;c.kind!==_.pd&&(c.mode===_.de&&(c.mode=_.ad),a.a.on(c,_.Jc,function(d){d=d.target||d.srcElement;d.mode=_.ad;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.j.append(d,[]))}))};_.J=function(a,b,c,d,e){var f=Error.call(this,yg(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||_.H.Z(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.J)};
33
- yg=function(a,b,c,d){a=(a===_.K?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.H.Z(d))a+=": "+d;else if(null!=d&&void 0!=d)if(null!=d.message&&void 0!=d.message)a+=": "+d.message,delete d.message;else try{a+=": "+JSON.stringify(d)}catch(e){}return a};_.zg=function(a,b){this.id=a;this.type=b;this.roles=[];this.channelsCount=this.src=this.mimeType=this.frameRate=this.label=this.language=this.kind=null;this.renditions=[]};_.Ag=function(a){return a&&a!==_.ze?a:null};
34
- Dg=function(a){if(!a)throw new _.J(_.K,3,3101,Ka+a);if(!_.H.Z(a))throw new _.J(_.K,3,3101,Ka+a+". Track type must be a string!");switch(a.toLowerCase()){case _.L:return _.L;case _.N:return _.N;case _.Bg:return _.Bg;case Cg:return Cg}throw new _.J(_.K,3,3101,"Unknown track type: "+a+".");};Fg=function(a,b){a=Dg(a);var c=_.Ag(b.kind),d=b.id;d||(d=String(_.Eg++));d=new _.zg(d,c===_.pd?Cg:a);d.kind=c;d.label=_.Ag(b.label);d.language=_.Ag(b.language);return d};
35
- _.Gg=function(a,b){this.track=b;this.id=a;this.originalId=this.drmInfo=this.codec=this.bandwidth=this.height=this.width=null};_.P=function(){};_.Hg=function(a,b){for(var c=_.t(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};Ig=function(){};
36
- Lg=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Jg(a)==Jg(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;for(var c=_.Q(a),d=_.Q(b),e=_.t(Kg(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!=d[f])return!1;return!0};_.Q=function(a,b,c){c=void 0===c?Infinity:c;return Mg(a,void 0===b?0:b,c,Uint8Array)};Ng=function(a,b,c){c=void 0===c?Infinity:c;return Mg(a,void 0===b?0:b,c,Uint16Array)};
37
- Og=function(a,b,c){c=void 0===c?Infinity:c;return Mg(a,void 0===b?0:b,c,Uint32Array)};_.Pg=function(a,b,c){c=void 0===c?Infinity:c;return Mg(a,void 0===b?0:b,c,Int32Array)};_.Qg=function(a,b,c){c=void 0===c?Infinity:c;return Mg(a,void 0===b?0:b,c,DataView)};Rg=function(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
38
- Mg=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=Jg(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)};Jg=function(a){return a instanceof ArrayBuffer?a:a.buffer};Sg=function(a){for(var b="",c=0;c<a.length;c+=16E3)b+=String.fromCharCode.apply(null,a.subarray(c,c+16E3));return b};
39
- _.Tg=function(a){if(!a)return"";a=_.Q(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(Ba);return a}a=escape(Sg(a));try{return decodeURIComponent(a)}catch(b){throw Error(Ba);}};
40
- _.Vg=function(a,b,c){if(!a)return"";if(!c&&0!==a.byteLength%2)throw Ug.error("Data has an incorrect length, must be even."),Error("Data does not seem to be UTF-16 encoded!");c=_.Q(a);if(b&&255===c[0]&&254===c[1]||254===c[0]&&255===c[1])a=c.subarray(2);if(a instanceof ArrayBuffer)var d=a;else c=new Uint8Array(a.byteLength),c.set(_.Q(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 Sg(c)};
41
- _.Wg=function(a,b){if(_.H.Z(a))return a;var c="",d=!!b,e=_.Q(a);239==e[0]&&187==e[1]&&191==e[2]?c=_.Tg(e):254==e[0]&&255==e[1]?c=_.Vg(e.subarray(2),!1):255==e[0]&&254==e[1]&&(c=_.Vg(e.subarray(2),!0));var f=function(g,k){return g.byteLength<=k||32<=g[k]&&126>=g[k]}.bind(null,e);Ug.debug("Unable to find byte-order-mark, making an educated guess.");0==e[0]&&0==e[2]?c=_.Vg(a,!1):0==e[1]&&0==e[3]?c=_.Vg(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.Tg(a));if(c)return d&&(c=escape(c)),c;throw Error("Unable to detect text encoding");
42
- };_.Xg=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};_.Yg=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};_.Zg=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=Og(e):2===c?f=Ng(e):f=_.Q(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};
43
- _.$g=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.ah=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};_.bh=function(a){return!!(a&&0<a.length)};_.ch=function(a){return!a||0===a.length};_.eh=function(a){a=a.replace(/<[^>]+>/gi,"");dh.innerHTML=a;a=dh.textContent;return a=a.replace(/<[^>]+>/gi,"")};_.fh=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0}};
44
- gh=function(a,b){a.timeout=b.timeout;a.baseDelay=b.baseDelay;a.backoffFactor=b.backoffFactor;a.fuzzFactor=b.fuzzFactor;a.maxAttempts=b.maxAttempts};
45
- _.ih=function(a,b){_.H.Z(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.hh,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||
46
- [],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};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&gh(c,b);return c};
47
- _.jh=function(a,b,c,d,e,f,g){e&&(d=e);e={uri:d,data:b||new ArrayBuffer(0),headers:a,status:c,fromCache:!!a["x-shaka-from-cache"],timeMs:g,request:f};if(200<=c&&299>=c&&202!==c)return e;g=null;try{g=_.Wg(b,!0)}catch(k){}_.Kf("HTTP error text:",g);throw new _.J(401===c||403===c?_.K:1,1,1001,{url:d,status:c,responseText:g,headers:a,request:f,response:e});};kh=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};
48
- lh=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};nh=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()};_.oh=function(a){this.f=a;this.a=null};ph=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};
49
- _.qh=function(a){this.f=a;this.a=null};_.sh=function(a,b,c){for(var d=_.t(_.rh),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.th=function(a){a=_.rh.indexOf(a);0<=a&&_.rh.splice(a,1)};_.vh=function(a,b){a=_.uh(a);b=_.uh(b);return a.split("-")[0]==b.split("-")[0]};_.uh=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=wh.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};_.xh=function(a,b){var c=a;b&&(c+='; codecs\x3d"'+b+'"');return c};
50
- _.yh=function(a){return Array.isArray(a)?a:[a]};zh=function(){this.a=new _.D("clpp.native.TrackManager");this.l=null;this.g=new _.Yf;this.h=[];this.w=0;this.m={};this.A=[];this.f=new Map;this.j=new Map;this.o=!0;this.G=this.Ee.bind(this,_.L);this.J=this.Ge.bind(this,_.L);this.I=this.Fe.bind(this,_.L);this.K=this.Ee.bind(this,_.Bg);this.O=this.Ge.bind(this,_.Bg);this.M=this.Fe.bind(this,_.Bg);this.B=this.Ee.bind(this,_.N);this.D=this.Ge.bind(this,_.N);this.C=this.Fe.bind(this,_.N)};
51
- Ah=function(a){(a=a.l.getTextDisplayer())&&a.remove(0,Infinity)};Bh=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.H.Ja(a,{kind:_.Ag(b.kind),language:_.Ag(b.language),label:_.Ag(b.label)},["kind","language","label"])};
52
- Dh=function(a,b){var c,d,e,f,g,k,l,m;return _.z(function(n){if(1==n.a){c=a.l.getConfiguration();d=_.sh(c,b.mimeType,_.ue);if(!d)return a.a.warn("Track mimetype is not supported",b),n["return"]();e=_.ih(b.url);return _.v(n,a.l.getNetworkEngine().fetch(e).N,2)}(f=n.f)&&f.data&&(g="External_"+a.w++,a.m[g]=b,k=d.a(_.Q(f.data)),l=URL.createObjectURL(new Blob([k])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.ue},Ch(a,m,g));_.w(n)})};
53
- Ch=function(a,b,c){if(a.l){var d=a.l.getSurface().getMedia();if(d){var e=document.createElement("track");e.id=c;e.kind=b.kind;e.srclang=b.language;b.label&&(e.label=b.label);e.src=_.ch(b.url)?URL.createObjectURL(new Blob([])):b.url;d.appendChild(e);a.A.push(e)}}};Eh=function(a,b){if(!a.l)return null;var c=a.l.getSurface();if(!c)return null;c=c.getMedia();if(!c)return null;switch(b){case _.N:return c.audioTracks;case _.Bg:return c.videoTracks;case _.L:return c.textTracks;default:return null}};
54
- Fh=function(a,b){var c=Eh(a,b);c&&(c=Array.from(c),b===_.L&&(c=c.filter(function(d){return d.kind!==_.pd})));return c};Gh=function(a,b){return a.h.filter(function(c){return c.type===b})};Hh=function(a,b){var c=a.f.get(b)||null;return c&&c.renditions[0]};Ih=function(a,b){var c=a.j.get(b);return c&&c.renditions[0]};
55
- Lh=function(a,b,c){var d=Fh(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.a.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.j.set(b,c);var e=!0,f=!1;switch(b){case _.L:var g="mode";e=_.de;f=_.Lc;break;case _.N:g="enabled";break;case _.Bg:g="selected"}if(g){d=_.t(d);for(var k=d.next();!k.done;k=d.next())k=k.value,k[g]=Bh(c,k,c.type)?e:
56
- f}}}else if(a.a.debug(_.ya+b),a.f.get(b)&&d&&b===_.L){g=_.t(d);for(k=g.next();!k.done;k=g.next())k.value.mode=_.Lc;a.f.set(b,null)}b===_.N?a.l.trigger(new _.E(_.Jh)):b===_.L&&a.l.trigger(new _.E(_.Kh))};Mh=function(a){return a.enabled||a.selected||a.mode===_.de||a.mode===_.ad};
57
- Nh=function(a,b,c){c=_.yh(c).filter(function(e){return e});a.a.info("Find preferred tracks for",b,c);var d=Gh(a,b);c.some(function(e){var f=_.uh(e);return(e=d.find(function(g){g=_.uh(g.language||"");return _.vh(f,g)}))?(a.a.info("Will select track with id",e.id),Lh(a,b,e),!0):!1})};_.Oh=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.Ph=function(){this.Tc=new Vf(this);this.Sc=[]};
58
- _.Qh=function(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c};_.Rh=function(a,b){this.N=a;this.w=b;this.a=!1};Sh=function(a,b){a.N.then(function(){return b(!0)},function(){return b(!1)});return a};Th=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()}}};
59
- _.Uh=function(){this.a=[]};_.Vh=function(a,b){a.a.push(Sh(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.Wh=function(a){var b;a instanceof _.Wh?(Xh(this,a.Ua),this.jc=a.jc,this.Ia=a.Ia,Yh(this,a.Gc),this.ma=a.ma,Zh(this,$h(a.a)),this.Xb=a.Xb):a&&(b=String(a).match(ai))?(Xh(this,b[1]||"",!0),this.jc=bi(b[2]||""),this.Ia=bi(b[3]||"",!0),Yh(this,b[4]),this.ma=bi(b[5]||"",!0),Zh(this,b[6]||"",!0),this.Xb=bi(b[7]||"")):this.a=new ci(null)};
60
- Xh=function(a,b,c){a.Ua=c?bi(b,!0):b;a.Ua&&(a.Ua=a.Ua.replace(/:$/,""))};Yh=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Gc=b}else a.Gc=null};Zh=function(a,b,c){b instanceof ci?a.a=b:(c||(b=di(b,ei)),a.a=new ci(b))};bi=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};di=function(a,b,c){return typeof a===_.me?(a=encodeURI(a).replace(b,fi),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
61
- fi=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};ci=function(a){this.f=a||null};$h=function(a){var b=new ci;b.f=a.f;if(a.a){var c={},d;for(d in a.a)c[d]=a.a[d].concat();b.a=c;b.g=a.g}return b};_.mi=function(){this.f=[];this.g=[];this.m=!1;this.j=new _.Uh;this.a={};this.h=0;this.a.data=gi;!window.fetch||!window.AbortController||_.hi(6)||_.ii()&&68<_.ji().browserVersion.major?(this.a.http=ki,this.a.https=ki):(this.a.http=li,this.a.https=li)};
62
- ni=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.z(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.H(2);break}e=_.ih(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.rf(g,4);return _.v(g,a.fetch(e).N,6);case 6:_.sf(g,2);break;case 4:if(f=_.tf(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};pi=function(a){return a.name===Xa&&oi.some(function(b){return a.message.startsWith(b)})};qi=function(){};
63
- _.ri=function(){return!!navigator.userAgent.match(/Edge?\//)};_.hi=function(a){return _.si("Tizen"+(a?" "+String(a):""))};_.ii=function(){return _.si("Web0S")};_.ui=function(){return _.ii()&&79===ti().major};_.vi=function(){return _.si("CrKey")};_.wi=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.hi()};_.xi=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.wi()&&1<navigator.maxTouchPoints};_.yi=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};
64
- _.si=function(a){return(navigator.userAgent||"").includes(a)};Bi=function(){if(zi)return zi;Ai||(Ai=new _.qh(function(){zi=null}));(zi=document.querySelector(_.Ie)||document.querySelector(_.$b))||(zi=document.createElement(_.Ie));Ai.$(1);return zi};Di=function(a,b){try{return parseInt(b,10)}catch(c){Ci.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
65
- Ei=function(a){var b={major:-1,name:Ae};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=Di(a,c[0]));2<=c.length&&(b.minor=Di(a,c[1]));3<=c.length&&(b.patch=Di(a,c[2]));4<=c.length&&(b.build=Di(a,c[3]));return b};Fi=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};
66
- Ri=function(){var a=Gi();if(!a)return Ji;var b=a.match(/^.+?(?=\))/);if(!b)return Ji;b=b[0];if(Fi(b,["iphone","ipad"]))return Ki;if(Fi(b,["android"]))return Li;if(Fi(b,["macintosh"]))return Mi;if(Fi(b,["windows nt"]))return Ni;if(Fi(b,["tizen"]))return Oi;if(Fi(b,["web0s"]))return Pi;if(Fi(b,["linux"]))return Qi;Ci.warn("Unable to identify OS from user agent: "+a);return Ji};
67
- ti=function(){var a=Gi(),b="ie edge opera firefox safari chrome".split(" ");var c=Ri();for(var d=Si[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return Ei(c[1]);return Ei("")};Gi=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
68
- _.ji=function(){var a=Ri();var b=Ri();var c=Si[b];if(c){c=Gi().match(c.os_version)[1];c=Ei(c);if(b===Ni)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=Ei("");a:{c=Gi();var d="ie edge opera firefox safari chrome".split(" "),e=Ri();e=Si[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=Ti}return{os:a,osVersion:b,browser:c,browserVersion:ti()}};Ui=function(){};
69
- _.Xi=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.xi()&&(a=360);var b=_.fh();b.maxAttempts=3;a={source:"",license:Vi,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,manifest:{attemptParameters:_.fh(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,
70
- restrictions:Wi(a)},drm:null,enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],volume:null,startTime:null,loop:!1,lowLatencyMode:!1,suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,streaming:{attemptParameters:b,bufferingGoal:10,rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,relativeTextTimestamp:!1,startAtSegmentBoundary:!1,
71
- gapDetectionThreshold:.1,smallGapLimit:.5,jumpLargeGaps:!0,durationBackoff:1,maxSegmentToMediaOffset:1,forceNativeTS:!1,preferNativeHlsOnSafari:!0,safeSeekOffset:5,stallEnabled:!0,stallThreshold:3,stallSkip:.5,bufferLimitUpdateInterval:.5,overridePasp:!1,enableLiveEdgeChasing:!1,chasingRate:1.15,startChasingAt:5,stopChasingAt:2,chaseJumpDistance:10,patchEdgeWhenMixedContent:!1,ignoreDrift:!1,disableFragmentSupport:!1,disableMergedFragments:!1},restrictions:Wi(),tizen:{sideStreamText:_.hi(2)}};if(_.si("Edge/")||
72
- _.hi())a.streaming.gapDetectionThreshold=.5;_.ii()&&(a.streaming.stallEnabled=!1);_.ui()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.hi()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=0);a.vr={enable:!1,attachMouseListener:!0,fieldOfView:70};return a};
73
- _.aj=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(!b)return _.Xi();c=[_.Xi()];var d=!1;b=_.t(b);for(var e=b.next();!e.done;e=b.next())e=e.value,null!==e&&void 0!==e&&(_.H.Z(e)&&(e={source:e}),e.lowLatencyMode&&!d&&(c.push({suggestedPresentationDelay:0,streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{jk:{clockSyncUri:"//time.akamai.com"}}}),
74
- d=!0),c.push(e));c=_.H.Sa.apply(null,c);_.H.Z(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.H.R(c.volume)&&(!_.H.la(c.volume)||_.H.isNaN(c.volume)))throw new _.J(_.K,7,7100,"config.volume is not a number");if(!_.H.R(c.preferredTextLanguage)&&!_.H.Z(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.J(_.K,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.H.R(c.preferredAudioLanguage)&&!_.H.Z(c.preferredAudioLanguage)&&
75
- !Array.isArray(c.preferredAudioLanguage))throw new _.J(_.K,7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.H.R(c.preferredAudioCodec)&&!_.H.Z(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.J(_.K,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.H.R(c.preferredVideoCodec)&&!_.H.Z(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.J(_.K,7,7100,"config.preferredVideoCodec is not a string or an array");if(!_.H.R(c.drm)){if(c.drm.env&&
76
- !_.H.Z(c.drm.env))throw new _.J(_.K,7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.H.Z(c.drm.offlineId))throw new _.J(_.K,7,7100,"config.drm.offlineId is not a string");}if(d=c.streaming){d.bufferingGoal=Number(d.bufferingGoal);d.rebufferingGoal=Number(d.rebufferingGoal);d.bufferBehind=Number(d.bufferBehind);d.smallGapLimit=Number(d.smallGapLimit);d.durationBackoff=Number(d.durationBackoff);if(!_.H.la(d.bufferingGoal)||_.H.isNaN(d.bufferingGoal))throw new _.J(_.K,7,7100,"config.streaming.bufferingGoal is not a number");
77
- if(!_.H.la(d.rebufferingGoal)||_.H.isNaN(d.rebufferingGoal))throw new _.J(_.K,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.J(_.K,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.H.la(d.bufferBehind)||_.H.isNaN(d.bufferBehind))throw new _.J(_.K,7,7100,"config.streaming.bufferBehind is not a number");if(!_.H.la(d.smallGapLimit)||_.H.isNaN(d.smallGapLimit))throw new _.J(_.K,7,7100,"config.streaming.smallGapLimit is not a number");
78
- if(!_.H.la(d.durationBackoff)||_.H.isNaN(d.durationBackoff))throw new _.J(_.K,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.H.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.zd)throw new _.J(_.K,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");Yi(c.restrictions);Yi(c.abr.restrictions);c.abr.initialRestrictions&&Yi(c.abr.initialRestrictions)}return c};
79
- Wi=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}};
80
- Yi=function(a){_.H.R(a.maxPixels)&&(a.maxPixels=Infinity);_.H.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.H.R(a.maxHeight)&&(a.maxHeight=Infinity);_.H.R(a.maxWidth)&&(a.maxWidth=Infinity);_.H.R(a.minPixels)&&(a.minPixels=0);_.H.R(a.minBandwidth)&&(a.minBandwidth=0);_.H.R(a.minHeight)&&(a.minHeight=0);_.H.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);
81
- 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 _.J(_.K,7,7100,"Restrictions contain NaN");};_.bj=function(a){return typeof a===_.Ad&&!Array.isArray(a)&&"source"in a};
82
- _.cj=function(a){_.Ph.call(this);this.log=new _.D(a);this.configuration=this.od=_.Xi();this.o=this.A=null;this.Bd=this.qe=!1;this.lg=new _.D("clpp.video.events");this.sd=null;this.qd=-1;this.Oj=this.uj.bind(this);this.Kf=new _.mi;this.K=new _.Yf;this.Na=this.yc=this.J=null};_.ej=function(a){return _.dj.get(a)||null};_.gj=function(a){_.dj.get(a.id())?fj.warn("Component already in use."):_.dj.set(a.id(),a)};hj=function(a){for(var b=_.t(_.dj.values()),c=b.next();!c.done;c=b.next())a(c.value)};_.ij=function(){};
83
- _.kj=function(a,b){var c=void 0==b?!0:b,d=_.jj(a).replace(/\+/g,"-").replace(/\//g,"_");return c?d:d.replace(/[=]*$/,"")};_.lj=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};_.mj=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};
84
- _.nj=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};_.oj=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};_.pj=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};_.jj=function(a){a=Sg(_.Q(a));return btoa(a)};
85
- qj=function(){this.a=this.f=null;this.g=new _.D("clpp.drm.csl")};rj=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[Ye]=a.f),a.a&&(b.headers[Ze]=a.a))};
86
- sj=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[Ye];a.a=b.headers[Ze];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(_.Tg(_.lj(c))),{delay:c.renewalPeriod,dk:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};tj=function(a){return _.$g(a,_.Ec)||_.$g(a,_.Fc)};_.vj=function(a){_.uj[a.J]=a};
87
- _.xj=function(a){var b={attemptParameters:_.fh(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,Xa:{}};if(a&&(b.enforceSingleSession=!!a.enforceSingleSession,b.delayLicenseRequestUntilPlayed=!!a.delayLicenseRequestUntilPlayed,b.preferredDrmSystem=a.preferredDrmSystem,b.emeApi=a.emeApi,a.attemptParameters&&(b.attemptParameters=a.attemptParameters),a.env)){var c=_.uj[a.env]||null;if(!c)throw _.Kf(_.qa,_.cb+a.env+_.aa),new _.J(_.K,6,6015,_.sa+a.env+"' is missing.");b.Xa=_.wj(c,a.customData)||
88
- {};_.$g(a.env.toLowerCase(),Rc)&&(b.enforceSingleSession=!0)}return b};zj=function(a){a=yj[a];if(!a)return null;var b=_.ji();return b.os===Li&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.Aj=function(a){this.J=a;this.g={}};Bj=function(a,b){var c=_.ji();if(c.os!==Li||"chrome"!==c.browser)return a||b};
89
- _.wj=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.g[_.Gc];g&&(c[_.Gc]={licenseUrl:g.licenseUrl,videoRobustness:Bj(d,g.videoRobustness),audioRobustness:Bj(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:g.distinctiveIdentifierRequired,persistentStateRequired:g.persistentStateRequired,serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.me?zj(f):f});(g=a.g[_.Ec])&&(c[_.Ec]=
90
- {licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.g[_.Fc])&&(c[_.Fc]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});return c};
91
- _.Cj=function(a,b){this.f=_.H.la(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.g=!!b;this.buffer=this.f.buffer};_.Ej=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.Q(a.f.buffer);b=_.Q(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.Dj()}};_.R=function(a,b){try{a.f.setUint32(a.a,b,a.g),a.a+=4}catch(c){_.Dj()}};_.Dj=function(){throw new _.J(_.K,3,3E3);};_.Fj=function(a,b){this.f=a;this.g=void 0===b?!0:b;this.a=0};_.Gj=function(a){return a.a<a.f.byteLength};
92
- _.Ij=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.Hj()}};_.Jj=function(a){try{var b=a.f.getUint16(a.a,a.g);a.a+=2;return b}catch(c){_.Hj()}};_.Kj=function(a){try{var b=a.f.getUint32(a.a,a.g);a.a+=4;return b}catch(c){_.Hj()}};_.Lj=function(a){try{var b=a.f.getInt32(a.a,a.g);a.a+=4;return b}catch(c){_.Hj()}};
93
- _.Mj=function(a){var b=0;try{if(a.g){var c=a.f.getUint32(a.a,!0);b=a.f.getUint32(a.a+4,!0)}else b=a.f.getUint32(a.a,!1),c=a.f.getUint32(a.a+4,!1)}catch(d){_.Hj()}if(2097151<b)throw new _.J(_.K,3,3001);a.a+=8;return b*Math.pow(2,32)+c};_.Nj=function(a,b){a.a+b>a.f.byteLength&&_.Hj();var c=a.f.buffer.slice(a.a,a.a+b);a.a+=b;return _.Q(c)};_.Hj=function(){throw new _.J(_.K,3,3E3);};_.Oj=function(){this.g=[];this.f=[];this.a=!1;this.h=new _.D("clpp.mp4")};
94
- _.Pj=function(a){for(;_.Gj(a.F)&&!a.Ta.a;)a.Ta.Fd(a.start+a.le,a.F,a.Zf)};_.Qj=function(a){for(var b=_.Kj(a.F);0<b&&!a.Ta.a;--b)a.Ta.Fd(a.start+a.le,a.F,a.Zf)};_.Rj=function(a){return function(b){var c=b.F.Ba()-b.F.getPosition();a(_.Nj(b.F,c))}};Sj=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.Tj=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.Uj=function(a){return 8+(a.ni?8:0)+(null!=a.flags?4:0)};
95
- _.Vj=function(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.f=d?"":b.hostname;this.port=b.port;this.path=b.pathname;_.$g(this.path,"/")||(this.path=
96
- "/"+this.path);this.a=b.search;this.g=b.hash};_.Wj=function(a){return a.scheme+"//"+(a.f+(a.port?":"+a.port:"")+a.path+a.g+a.a)};_.Xj=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)},""):""};
97
- Yj=function(a){var b={};a=a||"";a=a.substring(a.indexOf("?")+1);a=_.t(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};Zj=function(){};ak=function(a){var b="";try{b=_.Wg(a)}catch(c){}return b};_.bk=function(a){a=ak(a);var b="";a.length&&(b=(new _.Vj(a)).f);return b};
98
- ck=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.Tg(a)),d=_.lj(c.sinf[0]);(new _.Oj).L(_.ee,_.Pj).L("schi",_.Pj).L("tenc",function(e){e.F.skip(6);_.Ij(e.F)&&(e.F.skip(1),b=_.nj(_.Nj(e.F,16)));e.Ta.stop()}).parse(d)}catch(e){}return b};
99
- dk=function(a,b,c){if(!c||!c.byteLength)throw new _.J(_.K,6,6102);var d;typeof b===_.me?d=_.Yg(b,!0):d=b;a=_.Yg(ak(a),!0);b=new _.Cj(12+a.byteLength+d.byteLength+c.byteLength,!0);_.R(b,a.byteLength);_.Ej(b,_.Q(a));_.R(b,d.byteLength);_.Ej(b,_.Q(d));_.R(b,c.byteLength);_.Ej(b,_.Q(c));return _.Q(b.buffer)};_.ek=function(a){var b=_.Q(a.body);b=_.kj(b);a.headers[pa]=Zb;a.body=_.Xg("spc\x3d"+b).buffer};
100
- _.fk=function(a){try{var b=_.Tg(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=Rg(_.lj(b))};
101
- kk=function(){var a=gk;if(a===hk)return"https://lic.drmtoday.com";if(a===ik)return"https://lic.staging.drmtoday.com";if(a===jk)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};ok=function(a){var b=kk();if(a==_.Gc)return b+lk;if(a==_.Fc)return b+mk;if(a==_.Ec)return b+nk;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
102
- pk=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
103
- _.rk=function(a,b,c){b=ak(b);c=c&&c.customData?c.customData:{};b=new _.Vj(pk(b));var d=Yj(b.a);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.bh(""+a)&&(d.assetId=a,qk.info("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.bh(""+e)&&(d.variantId=e,qk.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],qk.info("KeyId found in FPS SKD. Removing other parameters")):
104
- a=["assetId","variantId"];b.a=_.Xj(d,!1,a);b=_.Wj(b);return c.fpsContentId=b};
105
- _.sk=function(a,b,c,d){d=void 0===d?!0:d;a=a.drm;a&&a.env.startsWith(ua)?a.customData&&(c=btoa(JSON.stringify({userId:a.customData.userId,sessionId:a.customData.sessionId,merchant:a.customData.merchant})),b.headers["dt-custom-data"]=c,a.customData.authToken&&(b.headers["x-dt-auth-token"]=""+a.customData.authToken),c=b.uris[0],d&&a.customData.assetId&&(c+="?assetId\x3d"+encodeURI(""+a.customData.assetId),a.customData.variantId&&(c+="\x26variantId\x3d"+encodeURI(""+a.customData.variantId)),b.uris[0]=
106
- c)):qk.warn(Ta)};tk=function(a,b,c){_.sk(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.Wh(b.uris[0]);c.a.add(_.Md,a);b.uris[0]=c.toString()};
107
- _.uk=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.sk(a,b,c,!1);b.headers[pa]=Zb;c={spc:_.jj(b.body)};if((a=a.drm)&&a.env.startsWith(va)&&d){a={};var e=Yj((new _.Vj(pk(d))).a);d=e.keyId;if(e=e.assetId)qk.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(qk.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(qk.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(qk.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
108
- _.Zg(_.Xj(c,!0))};_.vk=function(a,b){qk.debug("Clearing response data");if(200===b.status){var c=_.Tg(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.lj(c).buffer}};_.wk=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(ua))qk.warn(Ta);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(va)){var d=new _.Wh(b.uris[0]),e=d.ma;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.ma=e;b.uris[0]=d.toString()}};
109
- _.xk=function(a,b){try{var c=_.Q(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));qk.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){qk.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};zk=function(a){var b={},c=a?a[$e]:void 0;a=yk[a?a[$e]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};Ak=function(){};
110
- Ck=function(a,b){b=void 0===b?0:b;_.Jf("Registering EME Factory: "+a.a());for(var c={priority:b,Gb:a},d=0;d<Bk.length;++d)if(Bk[d].priority<b){Bk.splice(d,0,c);return}Bk.push(c)};
111
- Dk=function(a){if(a){var b=Bk.find(function(d){return d.Gb.a()===a}).Gb;if(b&&b.W())return _.Jf(ub+b.a()),b.create();_.Jf("Cannot create selected EME manager. Choosing by priority list.")}b=_.t(Bk);for(var c=b.next();!c.done;c=b.next())if(c=c.value.Gb,c.W())return _.Jf(ub+c.a()),c.create();throw Error("Missing EME managers");};Ek=function(a){this.f=[];this.g=[];this.a=[];8<=a.byteLength&&(new _.Oj).V("pssh",this.h.bind(this)).parse(a.buffer);0==this.a.length&&_.B("No pssh box found!")};
112
- _.Ik=function(a){var b=this;this.m=a;this.M=new Set;this.B=this.I=this.w=null;this.Y=!1;this.f=null;this.K=Fk;this.A=new _.Yf;this.O=new qj;this.g=new Map;this.J=[];this.G=new _.Qh;this.h=null;this.S=function(c){b.o=!0;b.C=!1;b.G.reject(c);a.onError(c)};this.kb=new Map;this.ga=new Map;this.aa=new _.qh(function(){return Gk(b)});this.j=!1;this.Ha=new _.Qh;this.D=!1;this.ca=[];this.Na=!1;this.U=0;this.a=new _.D("clpp.drm.DrmEngine");this.wa=(new _.qh(function(){Hk(b)})).Ya(1);this.G["catch"](function(){});
113
- this.o=this.C=!1;this.T=null};
114
- Kk=function(a){var b,c,d,e;return _.z(function(f){switch(f.a){case 1:a.A.release();a.A=null;a.O.release();a.O=null;a.o=!1;a.C=!1;a.G.reject();a.wa.stop();a.wa=null;a.aa.stop();a.aa=null;b=Array.from(a.g.keys());c=_.t(a.g.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.xc&&e.xc.stop();a.g.clear();return _.v(f,Promise.all(b.map(function(g){return Promise.resolve().then(function(){return _.z(function(k){if(1==k.a)return a.a.debug("Closing session",g.sessionId),_.rf(k,2),_.v(k,Jk(g),4);if(2!=
115
- k.a)return _.sf(k,0);_.tf(k);_.w(k)})})})),2);case 2:if(!a.B){f.H(3);break}_.rf(f,4);return _.v(f,a.w.Pc(null),6);case 6:_.sf(f,5);break;case 4:_.tf(f);case 5:a.B=null;case 3:a.w=null,a.f=null,a.M.clear(),a.I=null,a.J=[],a.h=null,a.S=null,a.m=null,a.U=0,a.T=null,_.w(f)}})};_.Nk=function(a,b,c){a.K=Lk;a.J=c;a.D=0<c.length;a.a.debug("Using Persisted Licenses: "+a.D);return _.Mk(a,b)};
116
- _.Mk=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.H.Ye(a.h.Xa);Ok(b,d)}var e=Pk(a);if(e){var f=_.t(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos=[e]}e=_.t(b);for(d=e.next();!d.done;d=e.next())for(d=_.t(d.value.drmInfos),f=d.next();!f.done;f=d.next())Qk(f.value,a.h.Xa);d=Rk(a,b);if(!d.size)return a.Y=!0,Promise.resolve();a.w=Dk(a.h.emeApi);d=_.Sk(a,d);return c?d:d["catch"](function(){})};
117
- Tk=function(a){var b;return _.z(function(c){switch(c.a){case 1:if(a.w.ud())return c["return"]();if(!a.T){c.H(2);break}return _.v(c,a.T,3);case 3:return c["return"]();case 2:return _.rf(c,4),a.T=a.w.Pc(a.I),_.v(c,a.T,6);case 6:_.sf(c,0);break;case 4:b=_.tf(c);if(a.j)return c["return"]();a.S(new _.J(_.K,6,6003,b.message,b));_.w(c)}})};Vk=function(a,b){return _.z(function(c){if(1==c.a)return _.v(c,Tk(a),2);if(!b.initData)return c["return"]();_.Uk(a,b.initDataType,_.Q(b.initData));_.w(c)})};
118
- _.$k=function(a,b){if(!a.I)return _.Zf(a.A,b,[Tc,"msneedkey",We,"needkey"],function(){a.S(new _.J(_.K,6,6010))}),Promise.resolve();a.B=b;a.w.md(b);a.A.one(a.B,_.Pd,function(){return Wk(a)});a.A.on(a.B,_.Re,function(f){var g=a.C;a.C=!a.o;!g&&a.C&&(a.a.info("Waiting for DRM license key delivery"),a.m.onEvent(f))});var c=a.f.initData.find(function(f){return 0<f.initData.length}),d=Promise.resolve();if(c||a.w.Oc()!==gb||a.J.length)d=Tk(a);var e=Promise.resolve();_.ii()&&38===ti().major||(a.f&&a.f.keySystem!==
119
- _.Jd&&!a.f.serverCertificate&&(e=Xk(a)),e=e.then(function(){return _.Yk(a)}));return Promise.all([d,e]).then(function(){if(!a.j&&(_.Zk(a),_.hi(2)||!c&&!a.J.length))a.A.on(a.B,Tc,function(f){return Vk(a,f)})})["catch"](function(f){if(!a.j){if(6004===f.code&&a.f&&a.f.keySystem===_.Gc&&1>a.U&&a.f.serverCertificate&&a.f.serverCertificate.length)return a.a.warn("Detected invalid widevine server certificate!. Retrying"),a.S(new _.J(1,6,6004)),a.f.serverCertificate=null,a.U++,_.$k(a,b);1<=a.U&&a.a.info("Could not get valid widevine server certificate. Giving up");
120
- throw f;}})};_.Yk=function(a){var b,c;return _.z(function(d){if(1==d.a){if(!(a.I&&a.f&&a.f.serverCertificate&&a.f.serverCertificate.length))return d.H(0);_.rf(d,3);return _.v(d,a.I.setServerCertificate(a.f.serverCertificate),5)}if(3!=d.a)return b=d.f,void 0===b||b||a.a.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.sf(d,0);c=_.tf(d);throw new _.J(_.K,6,6004,{browserError:c.message});})};
121
- Xk=function(a){var b=a.keySystem(),c=a.h.Xa[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.m.getConfiguration();return al(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,k=f&&f.certificateResponse;f=_.ih([d],a.h.attemptParameters);f.type=3;f.licenseRequestType="certificate-request";g&&f.requestModifiers.push(function(l){return g(e,l)});k&&f.responseModifiers.push(function(l){return k(e,l)});a.a.debug("Fetching certificate");return a.m.wb.fetch(f).N}).then(function(f){a.f.serverCertificate=
122
- _.Q(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}:{},zk(g));throw new _.J(_.K,6,6100,g,f);})};al=function(a,b){var c,d;return _.z(function(e){c=a.m.Bc();return c?(d=b&&b.drm&&b.drm.customData)?_.v(e,c(d),0):e["return"]():e["return"]()})};bl=function(a,b){for(var c=0;c<b.rd.length;c++)if(_.oj(a,b.rd[c]))return!0;return!1};
123
- _.Zk=function(a){for(var b=a.f?a.f.initData||[]:[],c=_.t(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.hi(2);if(a.h.enforceSingleSession&&!a.keySystem().startsWith(_.Ec)){var f=a.g.values();f=_.t(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.oj(d.initData,g.initData)?(a.a.debug(Ia),e=!1):g.periodId===d.periodId&&(a.a.debug("Ignore duplicated init data with same period id"),bl(d.initData,g)||g.rd.push(d.initData),e=!1)}!e||a.D&&a.K===Lk||dl(a,d.keyId,d.periodId,d.initDataType,d.initData)}c=
124
- _.t(a.J);for(d=c.next();!d.done;d=c.next())_.el(a,d.value);b.length||a.J.length||(a.o||a.a.info(ta),a.o=!0,a.C=!1,a.G.resolve());return a.G};
125
- _.Uk=function(a,b,c){if(c.length&&(!a.D||a.K!==Lk)){var d=a.keySystem();if(!d.startsWith(_.Ec)){var e=new Ek(c);if(1<e.a.length&&(d={"org.w3.clearkey":"1077efecc0b24d02ace33c1e52e2fb4b","com.widevine.alpha":"edef8ba979d64acea3c827dcd51d21ed","com.microsoft.playready":"9a04f07998404286ab92e65be0885f95","com.adobe.primetime":"f239e769efa348509c16a903c6932efb"}[d]))for(var f=0;f<e.f.length;f++)if(d===e.f[f]){c=c.subarray(e.a[f].start,e.a[f].end+1);break}}e=a.g.values();if(!a.B.webkitCurrentPlaybackTargetIsWireless&&
126
- !_.hi(2)&&!a.keySystem().startsWith(_.Ec))for(e=_.t(e),d=e.next();!d.done;d=e.next()){d=d.value;if(_.oj(c,d.initData)){a.a.debug(Ia);return}if(bl(c,d)){a.a.debug("Ignoring duplicate init data (extra).");return}}dl(a,"",null,b,c)}};fl=function(a){var b=Infinity;a=a.g.keys();a=_.t(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};
127
- Rk=function(a,b){for(var c=new Set,d=_.t(b),e=d.next();!e.done;e=d.next()){var f=_.t(e.value.drmInfos);for(e=f.next();!e.done;e=f.next())c.add(e.value)}d=_.t(c);for(e=d.next();!e.done;e=d.next())Qk(e.value,a.h.Xa);f=a.D?_.Zd:_.Id;var g=a.D?[_.Nd]:[se];d=new Map;c=_.t(c);for(e=c.next();!e.done;e=c.next())e=e.value,d.set(e.keySystem,{initDataTypes:[_.qc],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.Id,persistentState:f,sessionTypes:g,label:e.keySystem,drmInfos:[]});c={};f=_.t(b);
128
- for(e=f.next();!e.done;c={Md:c.Md,Td:c.Td},e=f.next()){e=e.value;g=e.audio;var k=e.video;c.Md=g?_.xh(g.mimeType,g.codecs):"";c.Td=k?_.xh(k.mimeType,k.codecs):"";var l={},m=_.t(e.drmInfos);for(e=m.next();!e.done;l={Cb:l.Cb},e=m.next())e=e.value,l.Cb=d.get(e.keySystem),l.Cb.drmInfos.push(e),e.initData&&e.initData.length&&(l.Cb.initDataTypes=_.df(new Set(e.initData.map(function(n){return n.initDataType}))).concat()),e.distinctiveIdentifierRequired&&(l.Cb.distinctiveIdentifier=_.Zd),e.persistentStateRequired&&
129
- (l.Cb.persistentState=_.Zd),g&&_.yh(e.audioRobustness).forEach(function(n,p){return function(q){p.Cb.audioCapabilities.push({robustness:q||"",contentType:n.Md})}}(c,l)),k&&_.yh(e.videoRobustness).forEach(function(n,p){return function(q){p.Cb.videoCapabilities.push({robustness:q||"",contentType:n.Td})}}(c,l))}return d};
130
- _.Sk=function(a,b){function c(n,p,q){p.drmInfos.some(function(r){return!!r.licenseServerUri})==n&&(g=g["catch"](function(){if(a.j)return null;if(q===_.Fc){var r=a.m.getConfiguration();if(!_.ri()||r.streaming.patchEdgeWhenMixedContent||a.h.Xa[q].useLegacySystem)d(p);else return a.w.wc("com.microsoft.playready.recommendation",[p])["catch"](function(){d(p);return a.w.wc(q,[p])})}return a.w.wc(q,[p])}))}function d(n){for(var p=_.t(n.audioCapabilities),q=p.next();!q.done;q=p.next())delete q.value.robustness;
131
- n=_.t(n.videoCapabilities);for(p=n.next();!p.done;p=n.next())delete p.value.robustness}if(1==b.size&&b.has(""))return Promise.reject(new _.J(_.K,6,6E3));for(var e=_.t(b.values()),f=e.next();!f.done;f=e.next())f=f.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;var g=e=new _.Qh,k=a.h.preferredDrmSystem;k||(f=_.ji(),f.os===Ni&&10<=f.osVersion.major&&"edge"===f.browser&&(k=_.Fc));k&&(f=b.get(k))&&(c(!0,f,k),c(!1,f,k));f={};for(var l=
132
- _.t([!0,!1]),m=l.next();!m.done;f={Rd:f.Rd},m=l.next())f.Rd=m.value,b.forEach(function(n){return function(p,q){q!==k&&c(n.Rd,p,q)}}(f));g=g["catch"](function(n){throw new _.J(_.K,6,6001,null,n);});g=g.then(function(n){if(a.j)return null;a.M.clear();var p=n.getConfiguration();a.a.debug("Got MediaKeySystemAccess with configuration",p);var q=p.videoCapabilities||[],r=_.t(p.audioCapabilities||[]);for(p=r.next();!p.done;p=r.next())a.M.add(p.value.contentType);q=_.t(q);for(p=q.next();!p.done;p=q.next())a.M.add(p.value.contentType);
133
- q=n.keySystem;p=b.get(_.gl(n.keySystem));r=[];var x=[],y=[],C=[];hl(p.drmInfos,r,x,y,C);1<x.length&&_.B("Multiple unique server certificates found! Only the first will be used.");1<r.length&&_.B("Multiple unique license server URIs found! Only the first will be used.");a.f={keySystem:q,licenseServerUri:r[0],distinctiveIdentifierRequired:p.distinctiveIdentifier==_.Zd,persistentStateRequired:p.persistentState==_.Zd,audioRobustness:p.audioCapabilities?p.audioCapabilities[0].robustness:"",videoRobustness:p.videoCapabilities?
134
- p.videoCapabilities[0].robustness:"",serverCertificate:x[0],initData:y,keyIds:C,periodId:null};if(!a.f.licenseServerUri)throw new _.J(_.K,6,6012,a.f.keySystem);return n.createMediaKeys()}).then(function(n){a.j||(a.a.info("Created MediaKeys object for key system",a.f.keySystem),a.I=n,a.Y=!0)})["catch"](function(n){if(!a.j){a.f=null;a.M.clear();if(n instanceof _.J)throw n;throw new _.J(_.K,6,6002,{browserError:n.message});}});e.reject();return g};
135
- Pk=function(a){a=_.H.Ye(a.h.Xa[_.Jd]||{});if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.mj(f),k=_.mj(e);g={kty:"oct",kid:_.kj(g,!1),k:_.kj(k,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.Xg(d),initDataType:"keyids"}];return{keySystem:_.Jd,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
2
+ (function(window){var ba,ca,ea,na,pa,ta,ua,ya,za,Aa,Da,Fa,Ja,La,Ma,Na,Oa,Pa,Qa,Ua,Va,Wa,Xa,Ya,Za,bb,jb,mb,nb,ob,qb,sb,tb,wb,xb,yb,Ab,fc,sc,tc,zc,Ac,Cc,Ec,Fc,Gc,Hc,Pc,Vc,Zc,$c,ad,ed,kd,md,nd,sd,vd,Md,Td,ae,ce,me,qe,ye,Ge,Ue,Ye,Ze,$e,af,bf,df,ef,ff,gf,mf,qf,sf,rf,tf,uf,vf,zf,Cf,Af,Bf,Df,Ff,Gf,Kf,Mf,Rf,Sf,Yf,Zf,fg,dg,gg,ig,hg,kg,ng,Ag,Bg,Cg,Fg,Eg,Kg,Mg,Ng,Qg,Tg,Vg,Wg,Zg,Ug,Rg,$g,ch,th,xh,yh,zh,Bh,Kh,Lh,Mh,Oh,Nh,Ph,Qh,Rh,Sh,Th,Wh,Xh,Yh,ci,di,hi,ii,mi,oi,qi,ni,ki,zi,Bi,Ci,Ni,Qi,Ri,Si,bj,Fi,Ti,ej,ij,kj,sj,Bj,Cj,Dj,Ej,Kj,
3
+ Mj,Wj,dk,jk,kk,lk,nk,ok,vk,zk,Ak,Ek,Kk,Lk,Nk,Ok,Tk,Uk,Zk,$k,el,kl,tl,vl,xl,Bl,Cl,Gl,rl,pl,Kl,El,Ll,Nl,Ml,Sl,Rl,Pl,Ql,gl,wl,Ol,hl,Jl,ol,Il,ql,jl,Tl,Zl,am,bm,cm,dm,im,mm,nm,pm,tm,ym,lm,Em,Fm,Im,Lm,Mm,Om,Pm,Km,Jm,Qm,Rm,Wm,an,bn,cn,gn,fn,jn,hn,ln,mn,nn,on,kn,qn,sn,tn,un,vn,wn,xn,yn,zn,Bn,Cn,Dn,En,An,Hn,V,Jn,In,Ln,Nn,On,Sn,Pn,W,Vn,Wn,Xn,Vm,Yn,$n,ao,bo,co,eo,fo,go,ho,io,jo,ko,lo,mo,no,oo,po,so,qo,to,vo,wo,ro,uo,xo,yo,zo,Ao,Bo,Co,Do,Eo,Fo,Go,Io,Ko,Lo,Mo,Jo,Qo,Ro,Vo,$o,ap,cp,bp,wi,ep,hp,gp,ip,jp,fp,lp,mp,
4
+ kp,np,xi,qp,si,Cp,Fp,kf,Hp;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" to a log level. Falling back to default!";ea="': 'output-restricted'";_.ia="6.4.0";_.ja="AdaptationSet";_.ka="Already destroyed. No-op";_.la="Already released. No-op";_.ma="Autoplay is not allowed due to browser policy.";na="CHECKSUM";_.oa="CODECS";pa="Can not set volume to ";_.ra="Cannot retrieve buffer information due to platform limitations";_.sa="CastlabsPlayer";ta="Content-Length";ua="Content-Type";
5
+ _.va="Could not find configured DRM environment.";_.wa="DRM environment '";ya="DRM licenses loaded";za="DRMtoday";Aa="DRMtodayOnboard";Da="Destroying player";_.Ea="Disable track type ";Fa="Error while decoding string!";_.Ga="Error while fetching license!";_.Ha="FairPlay Certificate URL is not defined";_.Ia="FairPlay License URL is not defined";Ja="HW_SECURE_CRYPTO";La="HW_SECURE_DECODE";Ma="HeaderDrm";Na="Invalid track type: ";Oa="InvalidStateError";Pa="Key status for Key ID '";Qa="License verification failed: ";
6
+ _.Ra="Loading player with configuration";_.Sa="MaxHeight";_.Ta="MaxWidth";Ua="Missing media element";Va="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";Wa="No event provided!";Xa="No track data attached to the event, unable to add track!";Ya="Not a persistent session.";Za="NotAllowedError";bb="NotSupportedError";_.cb="PlayReady License URL is not defined";_.db="Player sources";_.eb="Player state change: ";_.fb="Please make sure ";_.gb="QualityLevel";
7
+ _.hb="Releasing player with source";_.ib="Representation";jb="STANDARD";_.kb="SW_SECURE_CRYPTO";_.lb="SW_SECURE_DECODE";mb="Session is closed";nb="Setting native ";ob="Signature Verification failed";qb="Skipping Session creation. License for init data was already requested in Session: '";_.rb="SmoothStreamingMedia";sb="The index is not in the allowed range.";tb="Unable to translate ";_.ub="Unhandled/ignored event";_.vb="Unregistering listeners";wb="Unsupported keySystem";xb="Using VTTCue polyfill from 3 argument TextTrackCue.";
8
+ yb="WebkitEmeManager.MediaKeySession.load";_.zb="Widevine License URL is not defined";Ab="Will create EME Manager: ";_.Bb="ad-break-started";_.Cb="ad-break-stopped";_.Eb="ad-buffering";_.Fb="ad-clicked";_.Gb="ad-completed";_.Hb="ad-first-quartile";_.Ib="ad-impression";_.Jb="ad-loaded";_.Kb="ad-midpoint";_.Lb="ad-paused";_.Mb="ad-progress";_.Nb="ad-resumed";_.Ob="ad-skipped";_.Pb="ad-started";_.Qb="ad-stopped";_.Rb="ad-third-quartile";_.Sb="addtrack";_.Tb="ads-timeline-changed";_.Ub="airplay-casting-ended";
9
+ _.Vb="airplay-casting-started";_.Wb="airplay-status-changed";_.Xb="application";_.Yb="application/cea-608";_.Zb="application/dash+xml";_.$b="application/mp4";_.ac='application/mp4; codecs\x3d"stpp"';_.bc='application/mp4; codecs\x3d"wvtt"';_.cc="application/ttml+xml";_.dc="application/vnd.ms-sstr+xml";_.ec="application/x-mpegurl";fc="application/x-www-form-urlencoded";_.gc="audio";_.hc="audio/aac";_.ic="audio/ac3";_.jc="audio/eac3";_.kc="audio/mp4";_.mc="audiobufferchanged";_.nc="autoplaynotallowed";
10
+ _.oc="bitratechanged";_.pc="boolean";_.qc="bufferingended";_.rc="bufferingstarted";sc="canplay";tc="canplaythrough";_.uc="castingstarted";_.vc="caststatuschanged";_.wc="cdn-switch-success";_.xc="cenc";_.yc="center";zc="certificate-request";Ac="change";_.Bc="clpp-fill";Cc="clpp-hidden";_.Dc="clpp.cast.CastSender";Ec="clpp.drm.HeaderDrm";Fc="clpp.drm.eme.AppleEmeManager";Gc="clpp.native.Player";Hc="clpp.utils.Platform";_.Ic="codecs";_.Jc="column-reverse";_.Kc="com.adobe.primetime";_.Lc="com.apple.fps";
11
+ _.Mc="com.microsoft.playready";_.Nc="com.widevine.alpha";_.Oc="config.drm.customData is not defined";Pc="controls";_.Qc="cuechange";_.Rc="destroy()";_.Sc="disabled";_.Tc="div";_.Uc="drmexpirationupdate";Vc="drmrenewalstarted";_.Wc="drmsessionpersisted";_.Yc="drmsessionupdate";Zc="drmtoday";$c="durationchange";ad="encrypted";_.bd="end";_.cd="ended";_.dd="error";ed="fullscreenElement";_.fd="function";_.gd="height";_.hd="hidden";_.id="image";_.jd="internal-error";kd="keystatuseschange";_.ld="left";
12
+ md="license-renewal";nd="license-request";_.od="line-left";_.pd="line-right";_.qd="loadeddata";_.rd="loadedmetadata";sd="loadstart";_.td="mdat";_.ud="mdia";vd="message";_.wd="metadata";_.xd="mimeType";_.yd="minf";_.zd="moov";_.Ad="mp4";_.Bd="mpd-type-changed";_.Dd="mpeg-dash-callback-event";_.Ed="native";_.Fd="none";_.k="number";_.Gd="object";_.Hd="onBitrateChanged()";_.Id="onPlayerError()";_.Jd="onPlayerWillDestroy";_.Kd="onPlayerWillRelease";_.Ld="onStateChanged()";Md="online-status-changed";
13
+ _.Nd="optional";_.Od="org.w3.clearkey";_.Pd="output-restricted";_.Qd="pause";_.Rd="persistent";_.Sd="persistent-license";Td="picture-in-picture";_.Ud="play";_.Vd="playing";_.Wd="playlist-item-changed";_.Xd="playlist-modified";_.Yd="progress";_.Zd="px";_.$d="ratechange";ae="released";_.be="releasing";ce="removetrack";_.de="required";_.ee="resize";_.fe="right";_.ge="seeked";_.he="seeking";_.ie="showing";_.je="sinf";_.ke="single-native";me="stalled";_.ne="start";_.oe="statechanged";qe="status-pending";
14
+ _.re="stbl";_.se="string";_.te="stsd";_.ue="style";_.ve="subtitle";_.we="subtitles-htmlcue";_.xe="subtitles-ttml";ye="temporary";_.ze="text";_.Ae="text/vtt";_.Be="text/xml";_.Ce="timeupdate";_.De="trak";_.Ee="ttml-xml";_.Fe="und";Ge="unknown";_.He="urn:scte:scte35";_.Ie="urn:scte:scte35:2014";_.Je="user-seeked";_.Ke="user-seeking";_.Le="value";_.Me="vertical-lr";_.Ne="vertical-rl";_.Oe="video";_.Pe="video/mp2t";_.Qe="video/mp4";_.Re="videobufferchanged";_.Se="videotrackchanged";_.Te="vimond-response";
15
+ Ue="visibilitychange";_.Ve="vtt-xml";_.We="waiting";_.Xe="waitingforkey";Ye="webkit-org.w3.clearkey";Ze="webkitkeyadded";$e="webkitkeyerror";af="webkitkeymessage";bf="webkitneedkey";_.cf="width";df="x-dt-csl-tracking-token";ef="x-dt-follow-up-token";ff="x-dt-resp-code";gf=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:gf(a)}};
16
+ _.jf=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};_.v=function(a,b){a.prototype=kf(b.prototype);a.prototype.constructor=a;if(lf)lf(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]};mf=function(){mf=function(){};nf.Symbol||(nf.Symbol=of)};qf=function(a,b){this.a=a;pf(this,"description",{configurable:!0,writable:!0,value:b})};
17
+ sf=function(){mf();var a=nf.Symbol.iterator;a||(a=nf.Symbol.iterator=nf.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.fd&&pf(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return rf(gf(this))}});sf=function(){}};rf=function(a){sf();a={next:a};a[nf.Symbol.iterator]=function(){return this};return a};tf=function(){this.o=!1;this.h=null;this.f=void 0;this.a=1;this.j=this.m=0;this.A=this.g=null};uf=function(a){if(a.o)throw new TypeError("Generator is already running");a.o=!0};
18
+ vf=function(a,b){a.g={Af:b,Lf:!0};a.a=a.m||a.j};_.y=function(a,b,c){a.a=c;return{value:b}};_.z=function(a){a.a=0};_.wf=function(a,b,c){a.m=b;void 0!=c&&(a.j=c)};_.xf=function(a,b,c){a.a=b;a.m=c||0};_.yf=function(a,b){a.m=b||0;var c=a.g.Af;a.g=null;return c};zf=function(a){this.a=new tf;this.f=a};Cf=function(a,b){uf(a.a);var c=a.a.h;if(c)return Af(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return Bf(a)};
19
+ Af=function(a,b,c,d){try{var e=b.call(a.a.h,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.a.o=!1,e;var f=e.value}catch(g){return a.a.h=null,vf(a.a,g),Bf(a)}a.a.h=null;d.call(a.a,f);return Bf(a)};Bf=function(a){for(;a.a.a;)try{var b=a.f(a.a);if(b)return a.a.o=!1,{value:b.value,done:!1}}catch(c){a.a.f=void 0,vf(a.a,c)}a.a.o=!1;if(a.a.g){b=a.a.g;a.a.g=null;if(b.Lf)throw b.Af;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
20
+ Df=function(a){this.next=function(b){uf(a.a);a.a.h?b=Af(a,a.a.h.next,b,a.a.w):(a.a.w(b),b=Bf(a));return b};this["throw"]=function(b){uf(a.a);a.a.h?b=Af(a,a.a.h["throw"],b,a.a.w):(vf(a.a,b),b=Bf(a));return b};this["return"]=function(b){return Cf(a,b)};sf();this[Symbol.iterator]=function(){return this}};_.Ef=function(a,b){var c=new Df(new zf(b));lf&&lf(c,a.prototype);return c};
21
+ Ff=function(a,b){if(b){for(var c=nf,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&&pf(c,d,{configurable:!0,writable:!0,value:f})}};Gf=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())})};_.A=function(a){return Gf(new Df(new zf(a)))};
22
+ _.C=function(a,b){var c=a.split("."),d=Hf;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};Kf=function(a){return a&&0<=If[a]?If[a]:Jf};Mf=function(a){if(!a)return _.F("clpp.log",tb+a+ca),-1;var b=Lf[a.toUpperCase()];return void 0===b?(_.F("clpp.log",tb+a+ca),-1):b};_.H=function(a){(this.a=a)&&void 0===If[a]&&(If[a]=-1)};_.Of=function(a){Nf.info.apply(Nf,arguments)};
23
+ _.Pf=function(a){Nf.debug.apply(Nf,arguments)};_.F=function(a){Nf.warn.apply(Nf,arguments)};_.Qf=function(a){Nf.error.apply(Nf,arguments)};Rf=function(a,b){this.Hb=a;this.a=b};Sf=function(a,b){this.a=a;this.f=b};_.Vf=function(a){if(a){var b=a.a();b in _.Tf?_.Uf.warn("Player-Factory '"+b+"' already registered"):(_.Tf[b]=a,_.Uf.info("Registered Player-Factory: '"+b+"'"))}};_.Wf=function(){this.a={}};Yf=function(a,b,c,d){this.f=a;this.xc=b;this.a=c;this.yj=!!d};
24
+ _.J=function(a,b){if(b)for(var c in b)this[c]=b[c];this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.f=this.a=!1};Zf=function(a){this.a=new _.Wf;this.f=a};_.bg=function(){this.a=new _.Wf};
25
+ _.cg=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)};_.eg=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)dg(c[b]);a.a.clear()};fg=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};dg=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
26
+ gg=function(a){this.l=a;this.m=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.h=null;this.f=new _.bg;this.a=this.j=null;this.g=[];this.o=new _.H("clpp.native.Metadata")};ig=function(a,b){a.h=b;a.j=a.h.textTracks;a.f.on(a.j,_.Sb,function(c){c=c.track;c.kind===_.wd&&hg(a,c)})};
27
+ hg=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:_.jg,eventElement:null};a.m&&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.o.debug("onMetadata_()");b.mode=_.hd;var d=[],e=!0;if(b.cues){for(var f=_.u(b.cues),g=f.next();!g.done;g=
28
+ f.next())if(g=g.value,!kg(a,g)){var h=c(g);switch(g.value.key){case "SCTE35-IN":case "SCTE35-OUT":h.schemeIdUri=_.Ie;h.type=_.lg;break;case "X-CUSTOM-ID":h.id=g.value.data}}f=_.u(d);for(g=f.next();!g.done;g=f.next())a.l.trigger(new _.J(_.mg,{detail:g.value}));Array.prototype.push.apply(a.g,d);ng(a,d,b);a.f.off(b,_.Qc);a.f.on(b,_.Qc,function(l){l=l.target.activeCues;l=l.length?kg(a,l[0]):a.a;var m;if(m=l)m=a.l.getPosition(),m=l.startTime<=m&&m<l.endTime;if(m)a.a=l,a.l.trigger(new _.J(_.og,{detail:l}));
29
+ else{if(l=a.a)l=a.a,m=a.l.getPosition(),l=l.endTime<=m;l&&(l=a.a,a.a=null,a.l.trigger(new _.J(_.pg,{detail:l})))}})}};kg=function(a,b){for(var c=_.u(a.g),d=c.next();!d.done;d=c.next())if(d=d.value,b.startTime===d.startTime&&b.endTime===d.endTime)return d;return null};ng=function(a,b,c){if(a.m){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}))})}};
30
+ _.wg=function(a,b,c,d){d=void 0===d?_.qg:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.rg;this.writingMode=_.sg;this.lineInterpretation=_.tg;this.line=null;this.lineAlign=_.ug;this.direction=vg;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
31
+ _.zg=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.xg;this.scroll=yg;this.cssClassList=[];this.writingMode=this.displayAlign=null};Ag=function(a){this.l=a;this.j=a.getTextDisplayer();this.f=this.g=null;this.a=new _.bg;this.h=!1;this.m=new _.H("clpp.native.CueHandler")};
32
+ Bg=function(a,b){var c=b.track;c.kind!==_.wd&&(c.mode===_.ie&&(c.mode=_.hd),a.a.on(c,_.Qc,function(d){d=d.target||d.srcElement;d.mode=_.hd;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.j.append(d,[]))}))};_.L=function(a,b,c,d,e){var f=Error.call(this,Cg(a,b,c,d));this.message=f.message;"stack"in f&&(this.stack=f.stack);this.severity=a;this.category=b;this.code=c;this.data=!d||_.K.Z(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.L)};
33
+ Cg=function(a,b,c,d){a=(a===_.M?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.K.Z(d))a+=": "+d;else if(null!=d&&void 0!=d)if(null!=d.message&&void 0!=d.message)a+=": "+d.message,delete d.message;else try{a+=": "+JSON.stringify(d)}catch(e){}return a};_.Dg=function(a){return Array.isArray(a)?a:[a]};Fg=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 Eg(a,b)&&Eg(b,a)};Eg=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};
34
+ _.Gg=function(a,b){this.id=a;this.type=b;this.roles=[];this.channelsCount=this.src=this.mimeType=this.frameRate=this.label=this.language=this.kind=null;this.renditions=[];this.accessibility=[]};_.Hg=function(a){return a&&a!==_.Fe?a:null};
35
+ Kg=function(a){if(!a)throw new _.L(_.M,3,3101,Na+a);if(!_.K.Z(a))throw new _.L(_.M,3,3101,Na+a+". Track type must be a string!");switch(a.toLowerCase()){case _.N:return _.N;case _.P:return _.P;case _.Ig:return _.Ig;case Jg:return Jg}throw new _.L(_.M,3,3101,"Unknown track type: "+a+".");};Mg=function(a,b){a=Kg(a);var c=_.Hg(b.kind),d=b.id;d||(d=String(_.Lg++));d=new _.Gg(d,c===_.wd?Jg:a);d.kind=c;d.label=_.Hg(b.label);d.language=_.Hg(b.language);return d};
36
+ Ng=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};_.Og=function(a,b){this.track=b;this.id=a;this.originalId=this.drm=this.drmInfo=this.codec=this.bandwidth=this.height=this.width=null};_.Q=function(){};_.Pg=function(a,b){for(var c=_.u(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};Qg=function(){};
37
+ Tg=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Rg(a)==Rg(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;for(var c=_.R(a),d=_.R(b),e=_.u(Sg(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!=d[f])return!1;return!0};_.R=function(a,b,c){c=void 0===c?Infinity:c;return Ug(a,void 0===b?0:b,c,Uint8Array)};Vg=function(a,b,c){c=void 0===c?Infinity:c;return Ug(a,void 0===b?0:b,c,Uint16Array)};
38
+ Wg=function(a,b,c){c=void 0===c?Infinity:c;return Ug(a,void 0===b?0:b,c,Uint32Array)};_.Xg=function(a,b,c){c=void 0===c?Infinity:c;return Ug(a,void 0===b?0:b,c,Int32Array)};_.Yg=function(a,b,c){c=void 0===c?Infinity:c;return Ug(a,void 0===b?0:b,c,DataView)};Zg=function(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
39
+ Ug=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=Rg(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)};Rg=function(a){return a instanceof ArrayBuffer?a:a.buffer};$g=function(a){for(var b="",c=0;c<a.length;c+=16E3)b+=String.fromCharCode.apply(null,a.subarray(c,c+16E3));return b};
40
+ _.ah=function(a){if(!a)return"";a=_.R(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(Fa);return a}a=escape($g(a));try{return decodeURIComponent(a)}catch(b){throw Error(Fa);}};
41
+ ch=function(a,b,c){if(!a)return"";if(!c&&0!==a.byteLength%2)throw bh.error("Data has an incorrect length, must be even."),Error("Data does not seem to be UTF-16 encoded!");c=_.R(a);if(b&&255===c[0]&&254===c[1]||254===c[0]&&255===c[1])a=c.subarray(2);if(a instanceof ArrayBuffer)var d=a;else c=new Uint8Array(a.byteLength),c.set(_.R(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 $g(c)};
42
+ _.dh=function(a,b){if(_.K.Z(a))return a;var c="",d=!!b,e=_.R(a);239==e[0]&&187==e[1]&&191==e[2]?c=_.ah(e):254==e[0]&&255==e[1]?c=ch(e.subarray(2),!1):255==e[0]&&254==e[1]&&(c=ch(e.subarray(2),!0));var f=function(g,h){return g.byteLength<=h||32<=g[h]&&126>=g[h]}.bind(null,e);bh.debug("Unable to find byte-order-mark, making an educated guess.");0==e[0]&&0==e[2]?c=ch(a,!1):0==e[1]&&0==e[3]?c=ch(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.ah(a));if(c)return d&&(c=escape(c)),c;throw Error("Unable to detect text encoding");
43
+ };_.eh=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};_.fh=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};_.gh=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=Wg(e):2===c?f=Vg(e):f=_.R(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};
44
+ _.hh=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.ih=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};_.jh=function(a){return!!(a&&0<a.length)};_.mh=function(a){return!a||0===a.length};
45
+ _.nh=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.K.isNaN(b))return"";a="bps";1E3<=Math.abs(b)&&(a="Kbps",b/=1E3);1E3<=Math.abs(b)&&(a="Mbps",b/=1E3);return b.toFixed(2).replace(/[.,]00$/,"")+a}catch(c){return""}};_.qh=function(a){a=a.replace(/<[^>]+>/gi,"");ph.innerHTML=a;a=ph.textContent;return a=a.replace(/<[^>]+>/gi,"")};_.sh=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.jf(rh).concat()}};
46
+ th=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||_.jf(rh).concat()};
47
+ _.vh=function(a,b){_.K.Z(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.uh,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||
48
+ [],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:_.jf(rh).concat()};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&th(c,b);return c};
49
+ _.wh=function(a,b,c,d,e,f,g){e&&(d=e);e={uri:d,data:b||new ArrayBuffer(0),headers:a,status:c,fromCache:!!a["x-shaka-from-cache"],timeMs:g,request:f};if(200<=c&&299>=c&&202!==c)return e;g=null;try{g=_.dh(b,!0)}catch(h){}_.Pf("HTTP error text:",g);throw new _.L(0<=(f.fatalStatusCodes||[]).indexOf(c)?_.M:1,1,1001,{url:d,status:c,responseText:g,headers:a,request:f,response:e});};xh=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};
50
+ yh=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};zh=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()};_.Ah=function(a){this.f=a;this.a=null};Bh=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};
51
+ _.Ch=function(a){this.f=a;this.a=null};_.Eh=function(a,b,c){for(var d=_.u(_.Dh),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.Fh=function(a){a=_.Dh.indexOf(a);0<=a&&_.Dh.splice(a,1)};_.Hh=function(a,b){a=_.Gh(a);b=_.Gh(b);return a.split("-")[0]==b.split("-")[0]};_.Gh=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Ih.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};_.Jh=function(a,b){var c=a;b&&(c+='; codecs\x3d"'+b+'"');return c};
52
+ Kh=function(){this.a=new _.H("clpp.native.TrackManager");this.l=null;this.g=new _.bg;this.h=[];this.w=0;this.m={};this.A=[];this.f=new Map;this.j=new Map;this.o=!0;this.G=this.Je.bind(this,_.N);this.J=this.Le.bind(this,_.N);this.I=this.Ke.bind(this,_.N);this.K=this.Je.bind(this,_.Ig);this.O=this.Le.bind(this,_.Ig);this.L=this.Ke.bind(this,_.Ig);this.B=this.Je.bind(this,_.P);this.D=this.Le.bind(this,_.P);this.C=this.Ke.bind(this,_.P)};Lh=function(a){(a=a.l.getTextDisplayer())&&a.remove(0,Infinity)};
53
+ Mh=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.K.va(a,{kind:_.Hg(b.kind),language:_.Hg(b.language),label:_.Hg(b.label)},["kind","language","label"])};
54
+ Oh=function(a,b){var c,d,e,f,g,h,l,m;return _.A(function(n){if(1==n.a){c=a.l.getConfiguration();d=_.Eh(c,b.mimeType,_.Ae);if(!d)return a.a.warn("Track mimetype is not supported",b),n["return"]();e=_.vh(b.url);return _.y(n,a.l.getNetworkEngine().fetch(e).P,2)}(f=n.f)&&f.data&&(g="External_"+a.w++,a.m[g]=b,h=d.a(_.R(f.data)),l=URL.createObjectURL(new Blob([h])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.Ae},Nh(a,m,g));_.z(n)})};
55
+ Nh=function(a,b,c){if(a.l){var d=a.l.getSurface().getMedia();if(d){var e=document.createElement("track");e.id=c;e.kind=b.kind;e.srclang=b.language;b.label&&(e.label=b.label);e.src=_.mh(b.url)?URL.createObjectURL(new Blob([])):b.url;d.appendChild(e);a.A.push(e)}}};Ph=function(a,b){if(!a.l)return null;var c=a.l.getSurface();if(!c)return null;c=c.getMedia();if(!c)return null;switch(b){case _.P:return c.audioTracks;case _.Ig:return c.videoTracks;case _.N:return c.textTracks;default:return null}};
56
+ Qh=function(a,b){var c=Ph(a,b);c&&(c=Array.from(c),b===_.N&&(c=c.filter(function(d){return d.kind!==_.wd})));return c};Rh=function(a,b){return a.h.filter(function(c){return c.type===b})};Sh=function(a,b){var c=a.f.get(b)||null;return c&&c.renditions[0]};Th=function(a,b){var c=a.j.get(b);return c&&c.renditions[0]};
57
+ Wh=function(a,b,c){var d=Qh(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.a.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.j.set(b,c);var e=!0,f=!1;switch(b){case _.N:var g="mode";e=_.ie;f=_.Sc;break;case _.P:g="enabled";break;case _.Ig:g="selected"}if(g){d=_.u(d);for(var h=d.next();!h.done;h=d.next())h=h.value,h[g]=Mh(c,h,c.type)?e:
58
+ f}}}else if(a.a.debug(_.Ea+b),a.f.get(b)&&d&&b===_.N){g=_.u(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.Sc;a.f.set(b,null)}b===_.P?a.l.trigger(new _.J(_.Uh)):b===_.N&&a.l.trigger(new _.J(_.Vh))};Xh=function(a){return a.enabled||a.selected||a.mode===_.ie||a.mode===_.hd};
59
+ Yh=function(a,b,c){c=_.Dg(c).filter(function(e){return e});a.a.info("Find preferred tracks for",b,c);var d=Rh(a,b);c.some(function(e){var f=_.Gh(e);return(e=d.find(function(g){g=_.Gh(g.language||"");return _.Hh(f,g)}))?(a.a.info("Will select track with id",e.id),Wh(a,b,e),!0):!1})};_.Zh=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.$h=function(){this.Yc=new Zf(this);this.Wc=[]};
60
+ _.ai=function(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c};_.bi=function(a,b){this.P=a;this.w=b;this.a=!1};ci=function(a,b){a.P.then(function(){return b(!0)},function(){return b(!1)});return a};di=function(a,b,c){try{var d=a(b);if(d&&d.P&&d.abort)return c.resolve(d.P),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){})["catch"](function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}};
61
+ _.ei=function(){this.a=[]};_.fi=function(a,b){a.a.push(ci(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.gi=function(a){var b;a instanceof _.gi?(hi(this,a.Ya),this.lc=a.lc,this.Na=a.Na,ii(this,a.Jc),this.pa=a.pa,_.ji(this,ki(a.a)),this.Zb=a.Zb):a&&(b=String(a).match(li))?(hi(this,b[1]||"",!0),this.lc=mi(b[2]||""),this.Na=mi(b[3]||"",!0),ii(this,b[4]),this.pa=mi(b[5]||"",!0),_.ji(this,b[6]||"",!0),this.Zb=mi(b[7]||"")):this.a=new ni(null)};
62
+ hi=function(a,b,c){a.Ya=c?mi(b,!0):b;a.Ya&&(a.Ya=a.Ya.replace(/:$/,""))};ii=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Jc=b}else a.Jc=null};_.ji=function(a,b,c){b instanceof ni?a.a=b:(c||(b=oi(b,pi)),a.a=new ni(b))};mi=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};oi=function(a,b,c){return typeof a===_.se?(a=encodeURI(a).replace(b,qi),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
63
+ qi=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};ni=function(a){this.f=a||null};_.ri=function(a){if(!a.a&&(a.a={},a.g=0,a.f))for(var b=a.f.split("\x26"),c=0;c<b.length;c++){var d=b[c].indexOf("\x3d"),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}};
64
+ ki=function(a){var b=new ni;b.f=a.f;if(a.a){var c={},d;for(d in a.a)c[d]=a.a[d].concat();b.a=c;b.g=a.g}return b};_.yi=function(){this.f=[];this.g=[];this.m=!1;this.j=new _.ei;this.a={};this.h=0;this.a.data=si;!window.fetch||!window.AbortController||_.ti(6)||_.ui()&&68<_.vi().browserVersion.major?(this.a.http=wi,this.a.https=wi):(this.a.http=xi,this.a.https=xi)};
65
+ zi=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.A(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.H(2);break}e=_.vh(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.wf(g,4);return _.y(g,a.fetch(e).P,6);case 6:_.xf(g,2);break;case 4:if(f=_.yf(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};Bi=function(a){return a.name===Za&&Ai.some(function(b){return a.message.startsWith(b)})};Ci=function(){};
66
+ _.Di=function(){return!!navigator.userAgent.match(/Edge?\//)};_.ti=function(a){return _.Ei("Tizen"+(a?" "+String(a):""))};_.ui=function(){return _.Ei("Web0S")};_.Gi=function(){return _.ui()&&79===Fi().major};_.Hi=function(){return _.Ei("CrKey")};_.Ii=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.ti()};_.Ji=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.Ii()&&1<navigator.maxTouchPoints};_.Ki=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};
67
+ _.Ei=function(a){return(navigator.userAgent||"").includes(a)};Ni=function(){if(Li)return Li;Mi||(Mi=new _.Ch(function(){Li=null}));(Li=document.querySelector(_.Oe)||document.querySelector(_.gc))||(Li=document.createElement(_.Oe));Mi.$(1);return Li};Qi=function(a,b){try{return parseInt(b,10)}catch(c){Oi.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
68
+ Ri=function(a){var b={major:-1,name:Ge};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=Qi(a,c[0]));2<=c.length&&(b.minor=Qi(a,c[1]));3<=c.length&&(b.patch=Qi(a,c[2]));4<=c.length&&(b.build=Qi(a,c[3]));return b};Si=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};
69
+ bj=function(){var a=Ti();if(!a)return Ui;var b=a.match(/^.+?(?=\))/);if(!b)return Ui;b=b[0];if(Si(b,["iphone","ipad"]))return Vi;if(Si(b,["android"]))return Wi;if(Si(b,["macintosh"]))return Xi;if(Si(b,["windows nt"]))return Yi;if(Si(b,["tizen"]))return Zi;if(Si(b,["web0s"]))return $i;if(Si(b,["linux"]))return aj;Oi.warn("Unable to identify OS from user agent: "+a);return Ui};
70
+ Fi=function(){var a=Ti(),b="ie edge opera firefox safari chrome".split(" ");var c=bj();for(var d=cj[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return Ri(c[1]);return Ri("")};Ti=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
71
+ _.vi=function(){var a=bj();var b=bj();var c=cj[b];if(c){c=Ti().match(c.os_version)[1];c=Ri(c);if(b===Yi)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=Ri("");a:{c=Ti();var d="ie edge opera firefox safari chrome".split(" "),e=bj();e=cj[e];for(var f=0,g=d.length;f<g;f++)if(e[d[f]]&&c.match(e[d[f]])){c=d[f];break a}c=dj}return{os:a,osVersion:b,browser:c,browserVersion:Fi()}};ej=function(){};
72
+ _.jj=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.Ji()&&(a=360);var b=_.sh();b.maxAttempts=3;a={source:"",license:fj,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,manifest:{attemptParameters:_.sh(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,
73
+ restrictions:ij(a)},drm:null,enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:"main",preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],volume:null,startTime:null,loop:!1,lowLatencyMode:!1,suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,streaming:{attemptParameters:b,bufferingGoal:10,rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,relativeTextTimestamp:!1,startAtSegmentBoundary:!1,
74
+ gapDetectionThreshold:.1,smallGapLimit:.5,jumpLargeGaps:!0,durationBackoff:1,maxSegmentToMediaOffset:1,forceNativeTS:!1,preferNativeHlsOnSafari:!0,safeSeekOffset:5,stallEnabled:!0,stallThreshold:3,stallSkip:.5,bufferLimitUpdateInterval:.5,overridePasp:!1,enableLiveEdgeChasing:!1,chasingRate:1.15,startChasingAt:5,stopChasingAt:2,chaseJumpDistance:10,patchEdgeWhenMixedContent:!1,ignoreDrift:!1,disableFragmentSupport:!1,disableMergedFragments:!1},restrictions:ij(),tizen:{sideStreamText:_.ti(2)}};if(_.Ei("Edge/")||
75
+ _.ti())a.streaming.gapDetectionThreshold=.5;_.ui()&&(a.streaming.stallEnabled=!1);_.Gi()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.ti()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=0);a.vr={enable:!1,attachMouseListener:!0,fieldOfView:70};return a};
76
+ _.lj=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(!b)return _.jj();c=[_.jj()];var d=!1;b=_.u(b);for(var e=b.next();!e.done;e=b.next())e=e.value,null!==e&&void 0!==e&&(_.K.Z(e)&&(e={source:e}),e.lowLatencyMode&&!d&&(c.push({suggestedPresentationDelay:0,streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{hlsLowLatency:!0}}),d=!0),
77
+ c.push(e));c=_.K.Va.apply(null,c);_.K.Z(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.K.R(c.volume)&&(!_.K.oa(c.volume)||_.K.isNaN(c.volume)))throw new _.L(_.M,7,7100,"config.volume is not a number");if(!_.K.R(c.preferredTextLanguage)&&!_.K.Z(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.L(_.M,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.K.R(c.preferredAudioLanguage)&&!_.K.Z(c.preferredAudioLanguage)&&!Array.isArray(c.preferredAudioLanguage))throw new _.L(_.M,
78
+ 7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.K.R(c.preferredAudioCodec)&&!_.K.Z(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.L(_.M,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.K.R(c.preferredVideoCodec)&&!_.K.Z(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.L(_.M,7,7100,"config.preferredVideoCodec is not a string or an array");if(!_.K.R(c.drm)){if(c.drm.env&&!_.K.Z(c.drm.env))throw new _.L(_.M,
79
+ 7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.K.Z(c.drm.offlineId))throw new _.L(_.M,7,7100,"config.drm.offlineId is not a string");}if(d=c.streaming){d.bufferingGoal=Number(d.bufferingGoal);d.rebufferingGoal=Number(d.rebufferingGoal);d.bufferBehind=Number(d.bufferBehind);d.smallGapLimit=Number(d.smallGapLimit);d.durationBackoff=Number(d.durationBackoff);if(!_.K.oa(d.bufferingGoal)||_.K.isNaN(d.bufferingGoal))throw new _.L(_.M,7,7100,"config.streaming.bufferingGoal is not a number");
80
+ if(!_.K.oa(d.rebufferingGoal)||_.K.isNaN(d.rebufferingGoal))throw new _.L(_.M,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.L(_.M,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.K.oa(d.bufferBehind)||_.K.isNaN(d.bufferBehind))throw new _.L(_.M,7,7100,"config.streaming.bufferBehind is not a number");if(!_.K.oa(d.smallGapLimit)||_.K.isNaN(d.smallGapLimit))throw new _.L(_.M,7,7100,"config.streaming.smallGapLimit is not a number");
81
+ if(!_.K.oa(d.durationBackoff)||_.K.isNaN(d.durationBackoff))throw new _.L(_.M,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.K.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.k)throw new _.L(_.M,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");kj(c.restrictions);kj(c.abr.restrictions);c.abr.initialRestrictions&&kj(c.abr.initialRestrictions)}return c};
82
+ ij=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}};
83
+ kj=function(a){_.K.R(a.maxPixels)&&(a.maxPixels=Infinity);_.K.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.K.R(a.maxHeight)&&(a.maxHeight=Infinity);_.K.R(a.maxWidth)&&(a.maxWidth=Infinity);_.K.R(a.minPixels)&&(a.minPixels=0);_.K.R(a.minBandwidth)&&(a.minBandwidth=0);_.K.R(a.minHeight)&&(a.minHeight=0);_.K.R(a.minWidth)&&(a.minWidth=0);a.minWidth=Number(a.minWidth);a.maxWidth=Number(a.maxWidth);a.minHeight=Number(a.minHeight);a.maxHeight=Number(a.maxHeight);a.minBandwidth=Number(a.minBandwidth);
84
+ a.maxBandwidth=Number(a.maxBandwidth);a.minPixels=Number(a.minPixels);a.maxPixels=Number(a.maxPixels);if(Number.isNaN(a.minWidth)||Number.isNaN(a.maxWidth)||Number.isNaN(a.minHeight)||Number.isNaN(a.maxHeight)||Number.isNaN(a.minBandwidth)||Number.isNaN(a.maxBandwidth)||Number.isNaN(a.minPixels)||Number.isNaN(a.maxPixels))throw new _.L(_.M,7,7100,"Restrictions contain NaN");};_.mj=function(a){return typeof a===_.Gd&&!Array.isArray(a)&&"source"in a};
85
+ _.nj=function(a){_.$h.call(this);this.log=new _.H(a);this.configuration=this.ud=_.jj();this.o=this.B=null;this.Hd=this.ve=!1;this.qg=new _.H("clpp.video.events");this.yd=null;this.wd=-1;this.Mj=this.xj.bind(this);this.Rf=new _.yi;this.K=new _.bg;this.Ra=this.Bc=this.J=null};_.pj=function(a){return _.oj.get(a)||null};_.rj=function(a){_.oj.get(a.id())?qj.warn("Component already in use."):_.oj.set(a.id(),a)};sj=function(a){for(var b=_.u(_.oj.values()),c=b.next();!c.done;c=b.next())a(c.value)};_.tj=function(){};
86
+ _.vj=function(a,b){var c=void 0==b?!0:b,d=_.uj(a).replace(/\+/g,"-").replace(/\//g,"_");return c?d:d.replace(/[=]*$/,"")};_.wj=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};_.xj=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};
87
+ _.yj=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};_.zj=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};_.Aj=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};_.uj=function(a){a=$g(_.R(a));return btoa(a)};
88
+ Bj=function(){this.a=this.f=null;this.g=new _.H("clpp.drm.csl")};Cj=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[df]=a.f),a.a&&(b.headers[ef]=a.a))};
89
+ Dj=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[df];a.a=b.headers[ef];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(_.ah(_.wj(c))),{delay:c.renewalPeriod,ck:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};Ej=function(a){return _.hh(a,_.Lc)||_.hh(a,_.Mc)};_.Gj=function(a){_.Fj[a.J]=a};
90
+ _.Ij=function(a){var b={attemptParameters:_.sh(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,Qa:{}};if(a&&(b.enforceSingleSession=!!a.enforceSingleSession,b.delayLicenseRequestUntilPlayed=!!a.delayLicenseRequestUntilPlayed,b.preferredDrmSystem=a.preferredDrmSystem,b.emeApi=a.emeApi,a.attemptParameters&&(b.attemptParameters=a.attemptParameters),a.env)){var c=_.Fj[a.env]||null;if(!c)throw _.Pf(_.va,_.fb+a.env+_.aa),new _.L(_.M,6,6015,_.wa+a.env+"' is missing.");b.Qa=_.Hj(c,a.customData)||
91
+ {};_.hh(a.env.toLowerCase(),Zc)&&(b.enforceSingleSession=!0)}return b};Kj=function(a){a=Jj[a];if(!a)return null;var b=_.vi();return b.os===Wi&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.Lj=function(a){this.J=a;this.g={}};Mj=function(a,b){var c=_.vi();if(c.os!==Wi||"chrome"!==c.browser)return a||b};
92
+ _.Hj=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.g[_.Nc];g&&(c[_.Nc]={licenseUrl:g.licenseUrl,videoRobustness:Mj(d,g.videoRobustness),audioRobustness:Mj(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:g.distinctiveIdentifierRequired,persistentStateRequired:g.persistentStateRequired,serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.se?Kj(f):f});(g=a.g[_.Lc])&&(c[_.Lc]=
93
+ {licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.g[_.Mc])&&(c[_.Mc]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});return c};
94
+ _.Nj=function(a,b){this.f=_.K.oa(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.g=!!b;this.buffer=this.f.buffer};_.Pj=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.R(a.f.buffer);b=_.R(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.Oj()}};_.T=function(a,b){try{a.f.setUint32(a.a,b,a.g),a.a+=4}catch(c){_.Oj()}};_.Oj=function(){throw new _.L(_.M,3,3E3);};_.Qj=function(a,b){this.f=a;this.g=void 0===b?!0:b;this.a=0};_.Rj=function(a){return a.a<a.f.byteLength};
95
+ _.Tj=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.Sj()}};_.Uj=function(a){try{var b=a.f.getUint16(a.a,a.g);a.a+=2;return b}catch(c){_.Sj()}};_.U=function(a){try{var b=a.f.getUint32(a.a,a.g);a.a+=4;return b}catch(c){_.Sj()}};_.Vj=function(a){try{var b=a.f.getInt32(a.a,a.g);a.a+=4;return b}catch(c){_.Sj()}};Wj=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.Tj(a);return c};
96
+ _.Xj=function(a){var b=0;try{if(a.g){var c=a.f.getUint32(a.a,!0);b=a.f.getUint32(a.a+4,!0)}else b=a.f.getUint32(a.a,!1),c=a.f.getUint32(a.a+4,!1)}catch(d){_.Sj()}if(2097151<b)throw new _.L(_.M,3,3001);a.a+=8;return b*Math.pow(2,32)+c};_.Yj=function(a,b){a.a+b>a.f.byteLength&&_.Sj();var c=a.f.buffer.slice(a.a,a.a+b);a.a+=b;return _.R(c)};_.Sj=function(){throw new _.L(_.M,3,3E3);};_.Zj=function(){this.g=[];this.f=[];this.a=!1;this.h=new _.H("clpp.mp4")};
97
+ _.ak=function(a){for(;_.Rj(a.F)&&!a.Wa.a;)a.Wa.Nd(a.start+a.re,a.F,a.gg)};_.bk=function(a){for(var b=_.U(a.F);0<b&&!a.Wa.a;--b)a.Wa.Nd(a.start+a.re,a.F,a.gg)};_.ck=function(a){return function(b){var c=b.F.ya()-b.F.getPosition();a(_.Yj(b.F,c))}};dk=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.ek=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.fk=function(a){return 8+(a.li?8:0)+(null!=a.flags?4:0)};
98
+ _.gk=function(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.f=d?"":b.hostname;this.port=b.port;this.path=b.pathname;_.hh(this.path,"/")||(this.path=
99
+ "/"+this.path);this.a=b.search;this.g=b.hash};_.hk=function(a){return a.scheme+"//"+(a.f+(a.port?":"+a.port:"")+a.path+a.g+a.a)};_.ik=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)},""):""};
100
+ jk=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};kk=function(){};lk=function(a){var b="";try{b=_.dh(a)}catch(c){}return b};_.mk=function(a){a=lk(a);var b="";a.length&&(b=(new _.gk(a)).f);return b};
101
+ nk=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.ah(a)),d=_.wj(c.sinf[0]);(new _.Zj).M(_.je,_.ak).M("schi",_.ak).M("tenc",function(e){e.F.skip(6);_.Tj(e.F)&&(e.F.skip(1),b=_.yj(_.Yj(e.F,16)));e.Wa.stop()}).parse(d)}catch(e){}return b};
102
+ ok=function(a,b,c){if(!c||!c.byteLength)throw new _.L(_.M,6,6102);var d;typeof b===_.se?d=_.fh(b,!0):d=b;a=_.fh(lk(a),!0);b=new _.Nj(12+a.byteLength+d.byteLength+c.byteLength,!0);_.T(b,a.byteLength);_.Pj(b,_.R(a));_.T(b,d.byteLength);_.Pj(b,_.R(d));_.T(b,c.byteLength);_.Pj(b,_.R(c));return _.R(b.buffer)};_.pk=function(a){var b=_.R(a.body);b=_.vj(b);a.headers[ua]=fc;a.body=_.eh("spc\x3d"+b).buffer};
103
+ _.qk=function(a){try{var b=_.ah(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=Zg(_.wj(b))};
104
+ vk=function(){var a=rk;if(a===sk)return"https://lic.drmtoday.com";if(a===tk)return"https://lic.staging.drmtoday.com";if(a===uk)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};zk=function(a){var b=vk();if(a==_.Nc)return b+wk;if(a==_.Mc)return b+xk;if(a==_.Lc)return b+yk;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
105
+ Ak=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
106
+ _.Ck=function(a,b,c){b=lk(b);c=c&&c.customData?c.customData:{};b=new _.gk(Ak(b));var d=jk(b.a);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.jh(""+a)&&(d.assetId=a,Bk.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.jh(""+e)&&(d.variantId=e,Bk.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],Bk.debug("KeyId found in FPS SKD. Removing other parameters")):
107
+ a=["assetId","variantId"];b.a=_.ik(d,!1,a);b=_.hk(b);return c.fpsContentId=b};
108
+ _.Dk=function(a,b,c,d){d=void 0===d?!0:d;a=a.drm;a&&a.env.startsWith(za)?a.customData&&(c=btoa(JSON.stringify({userId:a.customData.userId,sessionId:a.customData.sessionId,merchant:a.customData.merchant})),b.headers["dt-custom-data"]=c,a.customData.authToken&&(b.headers["x-dt-auth-token"]=""+a.customData.authToken),c=b.uris[0],d&&a.customData.assetId&&(c+="?assetId\x3d"+encodeURI(""+a.customData.assetId),a.customData.variantId&&(c+="\x26variantId\x3d"+encodeURI(""+a.customData.variantId)),b.uris[0]=
109
+ c)):Bk.warn(Va)};Ek=function(a,b,c){_.Dk(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.gi(b.uris[0]);c.a.add(_.Rd,a);b.uris[0]=c.toString()};
110
+ _.Fk=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.Dk(a,b,c,!1);b.headers[ua]=fc;c={spc:_.uj(b.body)};if((a=a.drm)&&a.env.startsWith(Aa)&&d){a={};var e=jk((new _.gk(Ak(d))).a);d=e.keyId;if(e=e.assetId)Bk.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(Bk.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(Bk.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(Bk.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
111
+ _.gh(_.ik(c,!0))};_.Gk=function(a,b){Bk.debug("Clearing response data");if(200===b.status){var c=_.ah(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.wj(c).buffer}};_.Hk=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(za))Bk.warn(Va);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(Aa)){var d=new _.gi(b.uris[0]),e=d.pa;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.pa=e;b.uris[0]=d.toString()}};
112
+ _.Ik=function(a,b){try{var c=_.R(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));Bk.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){Bk.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};Kk=function(a){var b={},c=a?a[ff]:void 0;a=Jk[a?a[ff]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};Lk=function(){};
113
+ Nk=function(a,b){b=void 0===b?0:b;_.Of("Registering EME Factory: "+a.a());for(var c={priority:b,Hb:a},d=0;d<Mk.length;++d)if(Mk[d].priority<b){Mk.splice(d,0,c);return}Mk.push(c)};
114
+ Ok=function(a){if(a){var b=Mk.find(function(d){return d.Hb.a()===a}).Hb;if(b&&b.W())return _.Of(Ab+b.a()),b.create();_.Of("Cannot create selected EME manager. Choosing by priority list.")}b=_.u(Mk);for(var c=b.next();!c.done;c=b.next())if(c=c.value.Hb,c.W())return _.Of(Ab+c.a()),c.create();throw Error("Missing EME managers");};_.Qk=function(a,b){var c=_.Pk(a,b);return 1!=c.length?null:c[0]};
115
+ _.Pk=function(a,b){return Array.prototype.filter.call(a.childNodes,function(c){return c instanceof Element&&c.tagName==b})};_.Rk=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};
116
+ _.Sk=function(a,b){var c=new DOMParser,d=null,e=null;try{e=c.parseFromString(a,_.Be)}catch(f){}e&&e.documentElement.tagName==b&&(d=e.documentElement);return d&&0<d.getElementsByTagName("parsererror").length?null:d};Tk=function(a,b,c){this.h=new Uint8Array(a);this.a=b;this.f=c};Uk=function(){Tk.apply(this,arguments)};_.Wk=function(a){var b=_.xj(a);b=parseInt(b.byteLength,10).toString(16);b=_.xj("12"+b+a);return new Uk(Vk,a,b)};
117
+ _.Xk=function(a){function b(r){switch(r){case 0:do if(!_.Rj(d))throw Error("not enough data to skip!");while(_.Tj(d)&128);break;case 1:d.skip(8);break;case 2:d.skip(c());break;case 3:for(;4!==(r=c()&7);)b(r);break;case 5:d.skip(4);break;default:throw Error("invalid wire type "+r);}}function c(){for(var r=_.Tj(d),w=(r&127)>>>0,x=7;128<=r&&28>=x;)r=_.Tj(d),w=(w|(r&(28>x?127:15))<<x)>>>0,x+=7;return 28<x?-1:w}var d=new _.Qj(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.U(d);var e=_.U(d);e=
118
+ _.ek(e);var f=_.U(d),g=f>>>24;f&=16777215;var h=_.Yj(d,16);h=_.yj(h);for(var l=_.U(d),m=[],n=null;_.Rj(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=Wj(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.Pf("Parsed WV PSSH Box","size",a,"name",e,"version",g,"flags",f,"size",l,"systemId",h,"contentId (base64)",n?_.uj(n):"","keyIds",m.map(function(r){return _.yj(r)}));return 0<m.length?_.Wk(_.yj(m[0])):null};
119
+ _.Yk=function(a,b,c,d,e,f){f=void 0===f?null:f;Tk.call(this,a,b,d);this.version=e;this.g=c;this.j=f};
120
+ _.dl=function(a){a:{a=new _.Qj(new DataView(a.buffer),!0);_.U(a);for(_.Uj(a);_.Rj(a);)if(1===_.Uj(a)){var b=_.Uj(a);a=_.Yj(a,b);break a}a=null}b=ch(a,!0);var c=_.Sk(b,"WRMHEADER");b=c.getAttribute("version");var d=_.Qk(c,"DATA");c=(c=_.Qk(d,"LA_URL"))?_.Rk(c):"";var e;if(e=_.Qk(d,"KID"))if(e=_.Rk(e)){var f=_.Qk(d,na);e={value:e,ee:f?f.textContent.trim():null}}else e=null;else e=null;d=e?[e]:(e=Zk(d))?[e]:(d=$k(d))?d:null;e=d&&d[0]||{};d=e.ee;e=_.wj(void 0===e.value?"":e.value);e=_.al(e);e=_.yj(e);
121
+ return new _.Yk(_.bl,e,c,a,b,d)};_.al=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=_.R(a);a.set(b,0);return a};Zk=function(a){a=_.Qk(a,"PROTECTINFO");if(!a)return null;var b=_.Qk(a,"KID");if(!b)return null;a=b.getAttribute("VALUE");if(!a)return null;var c=b.getAttribute(na);b=b.getAttribute("ALGID");return{value:a,ee:c,Cg:b}};
122
+ $k=function(a){a=_.Qk(a,"PROTECTINFO");if(!a)return null;a=_.Qk(a,"KIDS");if(!a)return null;var b=_.Pk(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(na);d=d.getAttribute("ALGID");a.push({value:c,ee:e,Cg:d})}}return a.length?a:null};el=function(a){this.f=[];this.g=[];this.a=[];8<=a.byteLength&&(new _.Zj).V("pssh",this.h.bind(this)).parse(a.buffer);0==this.a.length&&_.F("No pssh box found!")};
123
+ _.il=function(a){var b=this;this.o=a;this.O=new Set;this.C=this.J=this.A=null;this.aa=!1;this.f=null;this.K=fl;this.B=new _.bg;this.T=new Bj;this.g=new Map;this.L=[];this.I=new _.ai;this.h=null;this.S=function(c){b.w=!0;b.D=!1;b.I.reject(c);a.onError(c)};this.m=new Map;this.ia=new Map;this.ca=new _.Ch(function(){return gl(b)});this.j=!1;this.Ra=new _.ai;this.G=!1;this.da=[];this.qb=!1;this.Y=0;this.a=new _.H("clpp.drm.DrmEngine");this.ua=(new _.Ch(function(){hl(b)})).ab(1);this.I["catch"](function(){});
124
+ this.w=this.D=!1;this.U=null};
125
+ kl=function(a){var b,c,d,e,f;return _.A(function(g){switch(g.a){case 1:a.B.release();a.B=null;a.T.release();a.T=null;a.w=!1;a.D=!1;a.I.reject();a.ua.stop();a.ua=null;a.ca.stop();a.ca=null;b=Array.from(a.g.keys());c=_.u(a.g.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.Ac&&e.Ac.stop();a.g.clear();return _.y(g,Promise.all(b.map(function(h){return Promise.resolve().then(function(){var l;return _.A(function(m){if(1==m.a)return a.a.debug("Closing session",h.sessionId),_.wf(m,2),_.y(m,jl(h),4);
126
+ if(2!=m.a)return _.xf(m,0);l=_.yf(m);a.a.warn("Error while closing session",l);_.z(m)})})})),2);case 2:if(!a.C){g.H(3);break}_.wf(g,4);return _.y(g,a.A.Tc(null),6);case 6:_.xf(g,5);break;case 4:f=_.yf(g),a.a.warn("Error while resetting media keys",f);case 5:a.C=null;case 3:a.A=null,a.f=null,a.O.clear(),a.J=null,a.L=[],a.h=null,a.S=null,a.o=null,a.Y=0,a.U=null,_.z(g)}})};_.nl=function(a,b,c){a.K=ll;a.L=c;a.G=0<c.length;a.a.debug("Using Persisted Licenses: "+a.G);return _.ml(a,b)};
127
+ _.ml=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.K.ef(a.h.Qa);ol(b,d)}var e=pl(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())ql(f.value,a.h.Qa);d=rl(a,b);if(!d.size)return a.aa=!0,Promise.resolve();a.A=Ok(a.h.emeApi);d=_.sl(a,d);return c?d:d["catch"](function(){})};
128
+ tl=function(a){var b;return _.A(function(c){switch(c.a){case 1:if(a.A.Cd())return c["return"]();if(!a.U){c.H(2);break}return _.y(c,a.U,3);case 3:return c["return"]();case 2:return _.wf(c,4),a.U=a.A.Tc(a.J),_.y(c,a.U,6);case 6:_.xf(c,0);break;case 4:b=_.yf(c);if(a.j)return c["return"]();a.S(new _.L(_.M,6,6003,b.message,b));_.z(c)}})};
129
+ vl=function(a,b){return _.A(function(c){if(1==c.a)return a.a.info("Handle encrypted event for type "+b.initDataType),_.y(c,tl(a),2);if(!b.initData)return c["return"]();_.ul(a,b.initDataType,_.R(b.initData));_.z(c)})};
130
+ _.Al=function(a,b){if(!a.J)return _.cg(a.B,b,[ad,"msneedkey",bf,"needkey"],function(){a.S(new _.L(_.M,6,6010))}),Promise.resolve();a.C=b;a.A.sd(b);a.B.one(a.C,_.Ud,function(){return wl(a)});a.B.on(a.C,_.Xe,function(e){var f=a.D;a.D=!a.w;!f&&a.D&&(a.a.info("Waiting for DRM license key delivery"),a.o.onEvent(e))});var c=a.f.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.A.Sc()!==jb||a.L.length)d=tl(a);c=Promise.resolve();_.ui()&&38===Fi().major||(a.f&&a.f.keySystem!==
131
+ _.Od&&!a.f.serverCertificate&&(c=xl(a)),c=c.then(function(){return _.yl(a)}));return Promise.all([d,c]).then(function(){a.j||(_.zl(a),a.B.on(a.C,ad,function(e){return vl(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.f&&a.f.keySystem===_.Nc&&1>a.Y&&a.f.serverCertificate&&a.f.serverCertificate.length)return a.a.warn("Detected invalid widevine server certificate!. Retrying"),a.S(new _.L(1,6,6004)),a.f.serverCertificate=null,a.Y++,_.Al(a,b);1<=a.Y&&a.a.info("Could not get valid widevine server certificate. Giving up");
132
+ throw e;}})};_.yl=function(a){var b,c;return _.A(function(d){if(1==d.a){if(!(a.J&&a.f&&a.f.serverCertificate&&a.f.serverCertificate.length))return d.H(0);_.wf(d,3);return _.y(d,a.J.setServerCertificate(a.f.serverCertificate),5)}if(3!=d.a)return b=d.f,void 0===b||b||a.a.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.xf(d,0);c=_.yf(d);throw new _.L(_.M,6,6004,{browserError:c.message});})};
133
+ xl=function(a){var b=a.keySystem(),c=a.h.Qa[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.o.getConfiguration();return Bl(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.vh([d],a.h.attemptParameters);f.type=3;f.licenseRequestType=zc;g&&f.requestModifiers.push(function(l){return g(e,l)});h&&f.responseModifiers.push(function(l){return h(e,l)});a.a.debug("Fetching certificate");return a.o.Ab.fetch(f).P}).then(function(f){a.f.serverCertificate=
134
+ _.R(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}:{},Kk(g));throw new _.L(_.M,6,6100,g,f);})};Bl=function(a,b){var c,d;return _.A(function(e){c=a.o.Ec();return c?(d=b&&b.drm&&b.drm.customData)?_.y(e,c(d),0):e["return"]():e["return"]()})};Cl=function(a,b){if(!a)return!1;for(var c=0;c<b.xd.length;c++)if(_.zj(a,b.xd[c]))return!0;return!1};
135
+ _.zl=function(a){for(var b=a.f?a.f.initData||[]:[],c=_.u(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.ti(2);if(a.h.enforceSingleSession&&!a.keySystem().startsWith(_.Lc)){var f=a.g.values();f=_.u(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.zj(d.initData,g.initData)?(a.a.info("Skipping Session creation. Existing init data in single session mode!"),e=!1):g.periodId===d.periodId&&(a.a.info("Skipping Session creation. Merging init data for period in single session mode for Key ID "+(d.keyId+
136
+ ".")),Cl(d.initData,g)||(g.xd.push(d.initData),d.keyId&&!g.bb.includes(d.keyId)&&g.bb.push(d.keyId),a.m.get(d.keyId)||a.m.set(d.keyId,qe)),e=!1)}!e||a.G&&a.K===ll||(_.Dl(a,d.keyId,d.initData)&&(e=!1),e&&(a.a.info("Request new media key session on create"),El(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.u(a.L);for(d=c.next();!d.done;d=c.next())_.Fl(a,d.value);b.length||a.L.length||(a.w||a.a.info(ya),a.w=!0,a.D=!1,a.I.resolve());return a.I};
137
+ _.ul=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.G||a.K!==ll)){var e=a.keySystem();if(!e.startsWith(_.Lc)){var f=new el(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||
138
+ _.ti(2)||a.keySystem().startsWith(_.Lc)||!_.Dl(a,d,c,!0))&&El(a,d,null,b,c)}};
139
+ _.Dl=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.u(a.g.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.g.get(f);if(_.zj(c,g.initData))return b?g.bb.includes(b)?d&&a.a.info("Skipping Session creation. License for init data with Key ID "+(b+" was already requested in Session: '")+(f.sessionId+"'. ")):(g.bb.push(b),a.m.get(b)||a.m.set(b,qe),d&&a.a.info(qb+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.a.info(qb+(f.sessionId+"'")),!0;if(Cl(c,g))return d&&a.a.info("Skipping Session creation. License for init data was already requested [extra]"),
140
+ !0}return!1};Gl=function(a){var b=Infinity;a=a.g.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};
141
+ rl=function(a,b){for(var c=new Set,d=_.u(b),e=d.next();!e.done;e=d.next()){var f=_.u(e.value.drmInfos);for(e=f.next();!e.done;e=f.next())c.add(e.value)}d=_.u(c);for(e=d.next();!e.done;e=d.next())ql(e.value,a.h.Qa);f=a.G?_.de:_.Nd;var g=a.G?[_.Sd]:[ye];d=new Map;c=_.u(c);for(e=c.next();!e.done;e=c.next())e=e.value,d.set(e.keySystem,{initDataTypes:[_.xc],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.Nd,persistentState:f,sessionTypes:g,label:e.keySystem,drmInfos:[]});c={};f=_.u(b);
142
+ for(e=f.next();!e.done;c={Td:c.Td,$d:c.$d},e=f.next()){e=e.value;g=e.audio;var h=e.video;c.Td=g?_.Jh(g.mimeType,g.codecs):"";c.$d=h?_.Jh(h.mimeType,h.codecs):"";var l={},m=_.u(e.drmInfos);for(e=m.next();!e.done;l={Eb:l.Eb},e=m.next())e=e.value,l.Eb=d.get(e.keySystem),l.Eb.drmInfos.push(e),e.initData&&e.initData.length&&(l.Eb.initDataTypes=_.jf(new Set(e.initData.map(function(n){return n.initDataType}))).concat()),e.distinctiveIdentifierRequired&&(l.Eb.distinctiveIdentifier=_.de),e.persistentStateRequired&&
143
+ (l.Eb.persistentState=_.de),g&&_.Dg(e.audioRobustness).forEach(function(n,p){return function(q){p.Eb.audioCapabilities.push({robustness:q||"",contentType:n.Td})}}(c,l)),h&&_.Dg(e.videoRobustness).forEach(function(n,p){return function(q){p.Eb.videoCapabilities.push({robustness:q||"",contentType:n.$d})}}(c,l))}return d};
144
+ _.sl=function(a,b){function c(n,p,q){p.drmInfos.some(function(r){return!!r.licenseServerUri})==n&&(g=g["catch"](function(){if(a.j)return null;if(q===_.Mc){var r=a.o.getConfiguration();if(!_.Di()||r.streaming.patchEdgeWhenMixedContent||a.h.Qa[q].useLegacySystem)d(p);else return a.A.yc("com.microsoft.playready.recommendation",[p])["catch"](function(){d(p);return a.A.yc(q,[p])})}return a.A.yc(q,[p])}))}function d(n){for(var p=_.u(n.audioCapabilities),q=p.next();!q.done;q=p.next())delete q.value.robustness;
145
+ n=_.u(n.videoCapabilities);for(p=n.next();!p.done;p=n.next())delete p.value.robustness}if(1==b.size&&b.has(""))return Promise.reject(new _.L(_.M,6,6E3));for(var e=_.u(b.values()),f=e.next();!f.done;f=e.next())f=f.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;var g=e=new _.ai,h=a.h.preferredDrmSystem;h||(f=_.vi(),f.os===Yi&&10<=f.osVersion.major&&"edge"===f.browser&&(h=_.Mc));h&&(f=b.get(h))&&(c(!0,f,h),c(!1,f,h));f={};for(var l=
146
+ _.u([!0,!1]),m=l.next();!m.done;f={Yd:f.Yd},m=l.next())f.Yd=m.value,b.forEach(function(n){return function(p,q){q!==h&&c(n.Yd,p,q)}}(f));g=g["catch"](function(n){throw new _.L(_.M,6,6001,null,n);});g=g.then(function(n){if(a.j)return null;a.O.clear();var p=n.getConfiguration();a.a.debug("Got MediaKeySystemAccess with configuration",p);var q=p.videoCapabilities||[],r=_.u(p.audioCapabilities||[]);for(p=r.next();!p.done;p=r.next())a.O.add(p.value.contentType);q=_.u(q);for(p=q.next();!p.done;p=q.next())a.O.add(p.value.contentType);
147
+ q=n.keySystem;p=b.get(_.Hl(n.keySystem));r=[];var w=[],x=[],B=[];Il(p.drmInfos,r,w,x,B);1<w.length&&_.F("Multiple unique server certificates found! Only the first will be used.");1<r.length&&_.F("Multiple unique license server URIs found! Only the first will be used.");a.f={keySystem:q,licenseServerUri:r[0],distinctiveIdentifierRequired:p.distinctiveIdentifier==_.de,persistentStateRequired:p.persistentState==_.de,audioRobustness:p.audioCapabilities?p.audioCapabilities[0].robustness:"",videoRobustness:p.videoCapabilities?
148
+ p.videoCapabilities[0].robustness:"",serverCertificate:w[0],initData:x,keyIds:B,periodId:null};if(!a.f.licenseServerUri)throw new _.L(_.M,6,6012,a.f.keySystem);return n.createMediaKeys()}).then(function(n){a.j||(a.a.info("Created MediaKeys for key system",a.f.keySystem),a.J=n,a.aa=!0)})["catch"](function(n){if(!a.j){a.f=null;a.O.clear();if(n instanceof _.L)throw n;throw new _.L(_.M,6,6002,{browserError:n.message});}});e.reject();return g};
149
+ pl=function(a){a=_.K.ef(a.h.Qa[_.Od]||{});if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.xj(f),h=_.xj(e);g={kty:"oct",kid:_.vj(g,!1),k:_.vj(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.eh(d),initDataType:"keyids"}];return{keySystem:_.Od,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
136
150
  initData:d,keyIds:[],periodId:null}};
137
- _.el=function(a,b){try{a.a.debug("Attempting to load an offline session",b);var c=a.I.createSession(_.Nd)}catch(f){var d=new _.J(_.K,6,6005,{browserError:f.message});a.S(d);return Promise.reject(d)}a.A.on(c,od,a.Wf.bind(a));a.A.on(c,dd,a.Sf.bind(a));var e={initData:null,loaded:!1,ye:Infinity,ib:null,periodId:null,rd:[],keyId:null,initDataType:null,Wb:null,sessionContext:{ldlDelay:0,customData:{}}};a.g.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.a.debug("Loaded offline session",
138
- b,f);if(!f)return a.g["delete"](c),a.S(new _.J(_.K,6,6013)),null;e.loaded=!0;il(a)&&(a.o||a.a.info(ta),a.o=!0,a.C=!1,a.G.resolve());return c},function(f){a.j||(a.g["delete"](c),a.S(new _.J(_.K,6,6005,{browserError:f.message})))})};
139
- jl=function(a,b,c,d){if(!b&&c!==_.ee)return!1;d=b||ck(d);for(var e=_.t(a.g.values()),f=e.next();!f.done;f=e.next()){f=f.value;if(b&&f.keyId===b)return a.a.info("Skip creating a new session for "+b),!0;if(c===_.ee&&(f.keyId||ck(f.initData))===d)return a.a.info("Skip creating a new session for matching init data"),!0}return!1};
140
- dl=function(a,b,c,d,e,f,g){f=void 0===f?null:f;if(e.length&&((void 0===g?0:g)||!jl(a,b,d,e))){try{var k=a.D?_.Nd:se;a.a.debug("Creating new "+k+" session.");var l=a.I.createSession(k)}catch(m){a.S(new _.J(_.K,6,6005,{browserError:m.message}));return}a.A.on(l,od,a.Wf.bind(a));a.A.on(l,dd,a.Sf.bind(a));b={Wb:f,rd:[],initData:e,initDataType:d,keyId:b,loaded:!1,ye:Infinity,periodId:c,ib:null,sessionContext:{ldlDelay:0,customData:{}}};f&&(f=a.g.get(f),b.sessionContext=f.sessionContext);a.g.set(l,b);f=
141
- _.H.tb;c=a.m.getConfiguration();g=a.keySystem();g=a.h.Xa[g];k=(k=g.modifiers)&&k.transformInitData;f(k)||(k=kl);try{e=k({playerConfig:c,initData:e,initDataType:d,drmInfo:a.f,drmSystemConfig:g,sessionContext:b.sessionContext,emeApi:a.w.Oc()})}catch(m){d=m;m instanceof _.J||(d=new _.J(_.K,6,6016,m));a.S(d);return}l.generateRequest(d,e.buffer)["catch"](function(m){if(!a.j){a.g["delete"](l);var n=null;m.errorCode&&m.errorCode.systemCode&&(n=m.errorCode.systemCode,0>n&&(n+=Math.pow(2,32)),n="0x"+n.toString(16));
142
- a.S(new _.J(_.K,6,6006,{browserError:m.message,error:m,extended:n},m))}})}};ll=function(a,b){var c=_.bk(b);_.Kf("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
143
- kl=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=_.H.tb;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=ll);a="";try{a=e(b,c,f)}catch(k){throw new _.J(_.K,6,6103);}if(!a.length)throw new _.J(_.K,6,6101,"Content ID is an empty string");c=dk(c,a,d)}return c};
144
- pl=function(a,b){var c=b.target;a.a.debug("Sending license request for session",c.sessionId);var d=a.g.get(c),e=a.f.licenseServerUri,f=a.keySystem();f=a.h.Xa[f];"individualization-request"===b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer);var g=_.ih([e],a.h.attemptParameters);g.type=3;g.body=b.message;g.method="POST";g.licenseRequestType=b.messageType===gd&&d.Wb?fd:b.messageType;g.sessionId=c.sessionId;if(g.licenseRequestType===fd)a.m.onEvent(new _.E(Oc));ml(a.f.keySystem)&&
145
- nl(a,g);rj(a.O,g);var k=Date.now();return ol(a,g,d.sessionContext).then(function(){a.a.debug("Sending DRM license request to",e,g);return a.m.wb.fetch(g).N}).then(function(l){if(a.j)return Promise.reject();a.a.info("Received license response in "+(Date.now()-k)+"ms");var m=sj(a.O,l);return c.update(l.data).then(function(){var n=fl(a),p=m?Date.now()+1E3*m.delay:Number.NaN;n=new _.E(_.Qc,{keySystem:a.keySystem(),expirationTime:n,expectedRenewalTime:p});a.m.onEvent(n);d&&(d.ib&&d.ib.resolve(),d.Wb&&
146
- (Jk(d.Wb)["catch"](function(){a.a.warn("Unable to close expired session in time")}),(n=a.g.get(d.Wb))&&n.xc&&n.xc.stop(),a.g["delete"](d.Wb),d.Wb=null),(new _.qh(function(){a.j||(d.loaded=!0,il(a)&&(a.o||a.a.info("DRM licenses loaded!!!"),a.o=!0,a.C=!1,a.G.resolve()))})).$(5),null!==d.initData&&(0<d.sessionContext.ldlDelay||m&&tj(a.keySystem()))&&(n=new _.qh(function(){!a.j&&a.O&&(a.a.info("Updating CSL Sessions"),ml(a.keySystem())?dl(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):a.keySystem().startsWith(_.Ec)&&
147
- c.update(_.Xg("renew")))}),d.xc=n,n.$(m?m.delay:d.sessionContext.ldlDelay)))})},function(l){var m,n,p,q;return _.z(function(r){if(a.j)return r["return"]();m=l.data.headers;n=zk(m);p=Object.assign({message:_.Ca,url:l.data.url,status:l.data.status,response:l.data.response},m?{headers:m}:{},n);q=new _.J(_.K,6,6007,p,l);a.S(q);d&&d.ib&&d.ib.reject(q);_.w(r)})})["catch"](function(l){a.j||(l=new _.J(_.K,6,6008,{browserError:l.message}),a.S(l),d&&d.ib&&d.ib.reject(l))})};
148
- nl=function(a,b){var c=_.Vg(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.a.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(_.Fe).textContent;b.body=_.lj(c.querySelector("Challenge").textContent).buffer}else a.a.debug("PlayReady request is already unwrapped."),b.headers[pa]="text/xml; charset\x3dutf-8"};
149
- ol=function(a,b,c){var d,e,f,g,k,l;return _.z(function(m){if(1==m.a)return d=a.m.getConfiguration(),_.v(m,al(a,d),2);e=a.keySystem();k=(g=(f=a.h.Xa[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;k?b.requestModifiers.push(function(n){return k(d,n,c)}):e.startsWith(_.Ec)&&b.requestModifiers.push(function(n){return _.ek(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Ec)&&b.responseModifiers.push(function(n){return _.fk(n)});_.w(m)})};
150
- Gk=function(a){var b=a.kb,c=a.ga;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.S(new _.J(_.K,6,6014));a.m.Ce(_.H.Ze(c));a.o||a.a.info(ta);a.o=!0;a.C=!1};Wk=function(a){var b;return _.z(function(c){b=a.ca.map(function(d){return pl(a,d)});a.Na=!0;a.ca=[];return _.v(c,Promise.all(b),0)})};ml=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};_.gl=function(a){return ml(a)?_.Fc:a};
151
- Hk=function(a){a.g.forEach(function(b,c){var d=b.ye,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.m.onExpirationUpdated(c.sessionId,e),b.ye=e)})};il=function(a){a=a.g.values();return _.Hg(a,function(b){return b.loaded})};
152
- Ok=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=_.t(a),e=d.next();!e.done;e=d.next())e.value.drmInfos=c};
153
- hl=function(a,b,c,d,e){var f={};a=_.t(a);for(var g=a.next();!g.done;f={oa:f.oa},g=a.next()){f.oa=g.value;b.includes(f.oa.licenseServerUri)||b.push(f.oa.licenseServerUri);f.oa.serverCertificate&&(c.some(function(m){return function(n){return _.oj(n,m.oa.serverCertificate)}}(f))||c.push(f.oa.serverCertificate));if(f.oa.initData){var k=_.t(f.oa.initData);for(g=k.next();!g.done;g=k.next())g.value.periodId=f.oa.periodId;k={};var l=_.t(f.oa.initData);for(g=l.next();!g.done;k={fd:k.fd},g=l.next())k.fd=g.value,
154
- d.some(function(m){return function(n){var p=m.fd;return n.keyId&&n.keyId==p.keyId&&n.periodId===p.periodId?!0:n.initDataType==p.initDataType&&_.oj(n.initData,p.initData)&&n.periodId===p.periodId}}(k))||d.push(k.fd)}if(f.oa.keyIds)for(g=0;g<f.oa.keyIds.length;++g)e.includes(f.oa.keyIds[g])||e.push(f.oa.keyIds[g])}};
155
- Qk=function(a,b){if(a.keySystem){var c=_.gl(a.keySystem),d=b[c];c===_.Jd&&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=
156
- d.serverCertificate||null)))}};Jk=function(a){var b,c;return _.z(function(d){if(1==d.a)return b=new Promise(function(e){(new _.qh(e)).$(1)}),_.v(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.B("Timeout waiting for session close");_.w(d)})};ql=function(){};_.tl=function(a,b){a&&b&&(rl.set(a,b),sl.info("Registered TextDisplayerFactory: '"+a+"'"))};
157
- _.ul=function(a,b){var c=b.find(function(d){return(d=rl.get(d))?d.W(a):!1});sl.info("Chosen the text displayer: "+c);return c?rl.get(c):null};_.vl=function(a){return null!=a};wl=function(){this.a=null;this.f=[]};_.xl=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})}};
158
- yl=function(a,b){var c=0;a.a&&a.a.state==b&&(c+=a.a.duration);for(var d=_.t(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state==b?e.duration:0;return c};zl=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.t(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};Al=function(){this.g=this.f=this.h=null;this.a=[]};Bl=function(a){return a.a.map(function(b){return _.H.ya(b)})};
159
- _.Cl=function(){this.m=this.A=this.o=this.B=this.g=this.h=this.f=this.j=NaN;this.a=new wl;this.w=new Al};_.Dl=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:[]}};_.El=function(a){this.f=a;this.a=void 0};Gl=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Fl.value().get(b),c.one(a,b,d))};
160
- Kl=function(a){this.g=new _.D("clpp.StateManager");this.l=a;this.a=new _.Yf;this.f=_.Hl;this.A=_.Il;this.I=0;this.w=-1;this.M=this.o=this.J=this.B=0;this.j=this.m=this.D=!1;this.G=0;this.h=null;this.K=0;this.O=_.wi();this.C=!1;this.J=Date.now();Jl(this)};Ll=function(a,b){return Object.keys(b)[a]};
161
- Nl=function(a,b){var c={type:_.ie};b===_.kc||b===_.jc?(c.reason=a.w,b===_.kc?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(a.f===_.Ml&&(c.reason=a.w),a.A===_.Ml&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
162
- Rl=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=a.f===_.Ml;a.A=a.f;a.f=b;a.A===_.Ol&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;b===_.Ml?(a.M=a.o,a.w=a.m?1:2,a.g.info("Buffering started. Reason: "+Ll(a.w-1,_.Pl)),c=Nl(a,_.kc),a.Qb(_.kc,c)):d&&(a.B=a.o-a.M,a.g.info("Buffering finished. Reason: "+Ll(a.w-1,_.Pl)+". Buffering time: "+a.B+" ms"),c=Nl(a,_.jc),a.Qb(_.jc,c));c=Ll(a.A,_.Ql);d=Ll(a.f,_.Ql);a.g.info(_.bb+c+" -\x3e "+d);a.Qb(_.ie,Nl(a,""));return!0};
163
- Wl=function(a,b){if(a.f===_.Sl)a.g.warn("Player is in error state, aborting any further state checks");else{var c=a.l.isPaused();var d=a.l.getPosition();var e=a.l.getDuration();if(d=a.l.isEnded()||a.f===_.Ol&&1>=Math.abs(d-e)||c&&d>=e)Rl(a,_.Ol)&&a.g.debug("Player claims to be in ended state, not checking more");else if(b!==_.we){e=a.l.getPosition();e=null!==e&&void 0!==e&&0<=e?a.l.getBufferInfo().xa(e,!0):-1;a.G=e;e=a.l.getSurface().getMedia();a.h=e?e.readyState:null;a.K=a.l.getPlaybackRate()||1;
164
- e=typeof a.h===_.zd&&2>a.h&&2===e.networkState;var f=typeof a.h===_.zd&&0>=a.G&&a.f===_.Hl,g=typeof a.h===_.zd&&2>=a.h&&a.j;e=a.m||f||e||g;!a.O||a.l.isLive()||a.f!==_.Ml||e||(f=b===_.be&&4===a.h,(g=a.A===_.Tl)&&!a.C?e=!0:g||a.C||f||(e=!0));f=!1;e?f=Rl(a,_.Ml):c?f=Rl(a,_.Ul):a.D&&(f=Rl(a,_.Vl));f&&(a.C=!1);a.g.debug("Video state check for event "+b+":: seeking: "+a.m+", waiting: "+a.j+", playing: "+a.D+", paused: "+c+", readyState: "+a.h+", rate: "+a.K+", buffer: "+a.G+", ended: "+d+". Changed state: "+
165
- f+", Current state: "+Ll(a.f,_.Ql))}}};
166
- Jl=function(a){function b(d){return Wl(a,d.type)}a.g.debug("Start watching for video events for "+a.l.namespace());var c=a.l;a.a.on(c,_.Wc,function(){a.j=!1;Rl(a,_.Ol)});a.a.on(c,lc,b);a.a.on(c,_.Qd,function(){a.D=!0;a.j=!1;Wl(a,_.Qd)});a.a.on(c,_.Ld,function(){a.D=!1;a.j=!1;Wl(a,_.Ld)});a.a.on(c,_.we,b);a.a.on(c,_.Vd,b);a.a.on(c,_.be,function(d){a.m=!1;a.j=!1;Wl(a,d.type)});a.a.on(c,_.ce,function(d){a.m=!0;Wl(a,d.type)});a.a.on(c,ge,b);a.a.on(c,_.Qe,function(){a.j=!0;Wl(a,_.Qe)});a.a.on(c,_.Xc,function(d){return a.S(d)});
167
- a.a.on(c,_.kd,b);a.a.on(c,mc,function(){a.C=!0;Wl(a,mc)});a.a.on(c,_.Ee,function(d){a.m=!0;Wl(a,d.type)});a.a.on(c,_.De,function(d){a.m=!1;a.j=!1;Wl(a,d.type)})};Xl=function(a){a=(new _.Wh(a)).ma;if(!a)return null;a=a.toUpperCase();return _.ah(a,".MPD")?_.Sb:_.ah(a,".M3U8")?_.Yb:_.ah(a,".MP4")?_.Ke:_.ah(a,"MANIFEST")||_.ah(a,".ISM")?_.Xb:null};
168
- _.Zl=function(a){var b;_.bj(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.me||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=Yl(b[c]);d&&a.push(d)}return a};
169
- Yl=function(a){var b=null;_.H.Z(a)&&(a={url:a});typeof a===_.Ad&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.H.R(a.drmProtected)||typeof a.drmProtected!==_.ic||(b.drmProtected=a.drmProtected),_.H.R(a.isLive)||typeof a.isLive!==_.ic||(b.isLive=a.isLive),_.H.R(a.name)||typeof a.name!==_.me||(b.name=a.name),_.H.R(a.Ab)||typeof a.Ab!==_.me||(b.Ab=a.Ab),_.H.R(a.audioMimeType)||typeof a.audioMimeType!==_.me||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=Xl(a.url),b.type?
170
- $l.debug("Detect media type "+b.type+" for "+a.url):$l.warn("Unable to detect media type for "+a.url));return b};am=function(){_.cj.call(this,zc);this.w=this.G=!1;this.j=this.B=this.m=this.a=this.h=null;this.g=new _.Yf;this.D=this.C=this.f=this.I=null};dm=function(a,b){return a.w?bm():new Promise(function(c){a.a||(a.g.on(b,_.Xc,function(){var d=cm(a);if(d)a.onError(d)}),a.g.on(b,_.$d,function(){a.trigger(new _.E(_.hc,{detail:{width:b.videoWidth,height:b.videoHeight}}))}),a.a=b);c()})};
171
- em=function(a){return a.w?bm():new Promise(function(b){if(a.a){var c=a.a;a.g.off(c,_.Xc);a.g.off(c,_.$d);a.a=null}b()})};
172
- gm=function(a){var b,c,d,e,f;return _.z(function(g){if(1==g.a){if(a.w)return g["return"](bm());b=a.o[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=_.fm;d=_.xj(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.m=new _.Ik({wb:e,onError:function(k){return a.onError(k)},Ce:function(){},onExpirationUpdated:function(k,l){a.trigger(new _.E(_.Nc,
173
- {expirationTime:l}))},onEvent:function(k){return a.trigger(k)},getConfiguration:function(){return a.getConfiguration()},Bc:function(){return a.Bc()}});a.m.h=d;f={id:0,language:_.ze,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,xb:0,mimeType:_.Ke,codecs:"",encrypted:!0,
174
- keyId:null,language:_.ze,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,sk:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,ek:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.v(g,_.Nk(a.m,[f],[]),2)}return 3!=g.a?_.v(g,_.$k(a.m,a.a),3):g["return"](Promise.resolve())})};
175
- hm=function(a,b){Gl(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.g,function(){a.getState()!==_.Sl&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};cm=function(a){if(null===a.o||!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 _.J(_.K,3,3016,{code:b,mk:c,message:a.a.error.message})};bm=function(){return Promise.reject(new _.J(_.K,7,7E3))};
176
- im=function(a){if(a.w)return new _.Rh(bm(),function(){});var b=a.o[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&hm(a,c);if(d.preload!==_.yd)a.g.one(d,_.kd,function(){var g=Date.now()/1E3-e;a.f.o=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.hi()||_.ii())&&d.load();var f=new _.Qh;a.g.one(d,ge,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.C||(a.C=(new _.qh(function(){f.reject(new _.J(_.K,3,3100,{message:"Unable to load media source successfully from "+
177
- b.url,uri:b.url},d.error))})).$(g))});Gl(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.g,function(){return f.resolve()});d.error?f.reject(cm(a)):d.preload===_.yd&&(a.log.warn('With \x3cvideo preload\x3d"none"\x3e, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way. Please do not use preload\x3d"none" with PRESTOplay for Web Apps.'),f.resolve());a.g.one(d,_.Xc,function(){f.reject(cm(a))});
178
- return new _.Rh(f,function(){var g=new _.J(_.K,7,7001);f.reject(g);return Promise.resolve()})};jm=function(){};_.rm=function(a){a&&(0<=pm.indexOf(a)?qm.warn("Factory '"+a.name()+"' is already registered"):(pm.push(a),qm.info("Factory "+a.name()+"' has been registered.")))};tm=function(a,b){var c=pm.find(function(d){return d.W(a,b)});c||(c=new sm);qm.info("Chosen ads: "+c.name());return c};
179
- _.um=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};_.vm=function(a,b){a.classList.add(b)};_.wm=function(a,b){if(a&&typeof b===_.Ad)for(var c in b)a.style[c]=b[c]};_.xm=function(a){return document.createElement(a)};
180
- Am=function(a,b){this.h=new _.D("clpp.PlayerSurface");var c=_.H.Sa({},ym,b);c.containerEl=(b||null)&&b.containerEl;this.g=typeof a===_.me?document.getElementById(a):a;this.f=this.j=this.a=null;this.m=new _.Yf;zm(this,c)};
181
- zm=function(a,b){a.h.debug("Initializing Player Surface on ",a.g);a.g instanceof Element&&(a.g instanceof HTMLMediaElement?(a.a=a.g,(_.ii()&&53===ti().major||_.ii()&&68===ti().major||_.ui())&&!a.a.hasAttribute(Ic)&&(a.a.style.opacity="0",a.a.setAttribute(Ic,""),a.m.one(a.a,Sc,function(){a.a.removeAttribute(Ic);a.a.style.opacity="1";a.f&&(a.f.style.opacity="1")}))):"cast-media-player"===a.g.tagName.toLowerCase()&&(a.j=a.g));b.containerEl?(a.f=b.containerEl,_.vm(a.f,uc)):b.disableContainer||a.j||(a.f=
182
- Bm(),a.g.parentNode?a.g.parentNode.replaceChild(a.f,a.g):a.g.parentNode||a.h.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!"),a.a&&a.f.appendChild(a.a));if(a.a){if(!a.a.hasAttribute("crossorigin")){var c=b.crossorigin;a.h.info("Setting media elements crossorigin to "+c);a.a.setAttribute("crossorigin",c)}a.f&&(b.containerEl||Cm(a),_.vm(a.a,_.vc))}};Bm=function(){var a=document.createElement(_.Mc);_.vm(a,uc);return a};
183
- Cm=function(a){if(a.a&&a.f){for(var b=a.a,c=[],d=0;d<b.classList.length;d++)c.push(b.classList[d]);b=_.t(c);for(c=b.next();!c.done;c=b.next())c=c.value,a.a.classList.remove(c),_.vm(a.f,c);a.f.style.cssText=a.a.style.cssText;a.a.removeAttribute(_.oe);b=_.t([_.Xe,_.$c]);for(c=b.next();!c.done;c=b.next())c=c.value,d=a.a.getAttribute(c),d=parseInt(d,10),isNaN(d)||(a.f.style[c]=d+_.Ud),_.hi()||a.a.removeAttribute(c)}};
184
- Em=function(a){this.l=a;this.h=this.l.getNetworkEngine();this.a=new _.Yf;this.g=null;this.f=!0;Dm(this)};Dm=function(a){a.a.on(window,"offline",function(){Fm(a,!1)});a.a.on(window,"online",function(){a.f||Gm(a)});a.a.on(a.l,ge,function(){return Hm(a)});a.a.on(a.l,"suspend",function(){return Hm(a)});a.a.on(a.l,_.Qe,function(){return Hm(a)});a.a.on(a.l,_.Qd,function(){a.f||Gm(a)});a.a.on(a.l,_.Td,function(){a.f||Gm(a)});a.a.on(a.l,_.ie,function(){switch(a.l.getState()){case _.Ml:Hm(a);break;default:Hm(a)}})};
185
- Gm=function(a){a.l.getConfiguration().connectivityCheck&&(Im(a),a.g=(new _.qh(function(){return Jm(a)})).$(5))};Hm=function(a){a.f&&Gm(a)};Im=function(a){a.g&&(a.g.stop(),a.g=null)};Jm=function(a){var b,c;return _.z(function(d){if(1==d.a)return(b=a.l.getConfiguration().connectivityCheck)&&a.l?_.v(d,ni(a.h,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;Fm(a,c);_.w(d)})};Fm=function(a,b){Im(a);a.f!==b&&(a.f=b,a.l&&a.l.getConfiguration().connectivityCheck&&a.l.trigger(new _.E(Hd,{online:a.f})))};
186
- Lm=function(){for(var a=0;a<Km.length;++a)Km[a].vc()};_.Mm=function(a,b){b=b||0;for(var c={priority:b,vc:a},d=0;d<Km.length;d++)if(Km[d].priority<b){Km.splice(d,0,c);return}Km.push(c)};Nm=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};Om=function(a,b,c){this.g=a;this.f=b;JSON.parse(_.Tg(_.lj(a)));this.a=JSON.parse(_.Tg(_.lj(b)));this.h=c};Pm=function(a){this.license=a;this.a=null;this.f=new _.D("clpp.utils.LicenseKey")};
187
- Qm=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 Om(b[0],b[1],b[2]);a.a=b}return a.a};Rm=function(a){switch((a.vd()[0]||{src:"",type:""}).type){case _.Sb:a="dash";break;case _.Xb:a="ss";break;case _.Yb:a="hls";break;case _.Ke:a=_.td;break;default:a=""}return a};Sm=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};
188
- Tm=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};Um=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};Wm=function(a){var b=a.getConfiguration(),c="no";b.drm&&!_.H.Ja(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(Rc)||Vm(a).endsWith("drmtoday.com"))&&(c=Rc);return c};
189
- Xm=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.keySystem){case _.Gc:b="wv";break;case _.Fc:b="pr";break;case _.Ec:b="fps"}return b};Ym=function(a){a=a.getDrmInfo();var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};Zm=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.videoRobustness){case Ga:case "HW_SECURE_ALL":b="L1";break;case Fa:b="L2";break;case _.ib:case _.hb:b="L3"}return b};Vm=function(a){a=a.getDrmInfo();return(new _.Wh(a&&a.licenseServerUri||"")).Ia};
190
- bn=function(a,b){var c="ie"===_.ji().browser,d=b.getConfiguration(),e=_.df(Array.from(_.dj.keys())).concat(_.df(b.ki()));d={"CL-KEY":a.license,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ea,"CL-USER-ID":Sm(d),"CL-ASSET-ID":Tm(d),"CL-SESSION-ID":Um(d),"CL-PLAYBACK-TYPE":b.isLive()?$m:an,"CL-CONTENT-TYPE":Rm(b),"CL-PLUGINS":e.join(" "),"CL-DRM":Wm(b),"CL-DRM-CDM":Xm(b),"CL-DRM-SEC-LEVEL":Zm(b),"CL-DRM-OFFLINE":Ym(b),"CL-DRM-IP":Vm(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=
191
- e);e=_.ih(["https://downloads.castlabs.com/r/register/"]);e.method="GET";e.headers=d;return(new _.mi).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=Qm(a);f=f.data;var k=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(k){case 403:case 404:g=7101;var l="castLabs Player license is invalid";if(403===k){k=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=
192
- k+(": "+l)}else f=l+"!";l=f;break;case 412:g=7103;l="userID is required for playback!";break;default:f=Promise.resolve();break a}a.f.error(Ma+l);f=Promise.reject(new _.J(_.K,7,g,l))}}return f})};
193
- S=function(a,b,c){_.Ph.call(this);var d=this;Lm();this.g=new _.D("clpp.Player");if(!a)throw new _.J(_.K,7,7102);this.A=new _.Yf;this.f=this.T=b||_.Xi();this.m=null;void 0===this.f.license&&(this.f.license=Vi,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 _.J(_.K,7,7101,"No license provided in configuration!");this.h=new Am(a,c);this.a=this.w=null;this.G=
194
- new _.mi;this.j=null;this.K=[];this.M={};this.o=null;this.I=!0;this.J=this.D=!1;this.C=this.yc=null;this.be=!1;this.U=new Em(this);this.O=!1;this.B=function(f){(f=f.detail)&&f.currentState===_.Vl&&(d.off(_.ie,d.B),cn(d))};this.on(_.ie,function(){d.getState()===_.Sl&&d.unload()});this.on(_.Ob,this.Mf.bind(this));this.on(_.Nb,this.Mf.bind(this));dn(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."),
195
- 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=_.t(en);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)}}fn(this,a);_.dj.clear()};_.gn=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)))};
196
- dn=function(a,b){a.w=new Pm(b);a.w.verify()["catch"](function(c){setTimeout(function(){a.g.error(Ma+c);a.trigger(new _.E(_.Xc,{detail:new _.J(_.K,7,7101)}));a.destroy()},1E3)})};
197
- cn=function(a){if(!a.O){a.O=!0;a.h.getMedia()||a.h.getCastElement();a.w||(a.w=new Pm(a.f.license));var b=Object.keys(a.M);bn(a.w,{getConfiguration:a.getConfiguration.bind(a),vd:a.vd.bind(a),getDrmInfo:a.getDrmInfo.bind(a),ki:function(){return b},isLive:a.isLive.bind(a)}).then(function(){a.g.debug("License verified remotely")})["catch"](function(c){setTimeout(Nm,1E3,{release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)},c)})}};
198
- fn=function(a,b){a.K=b;for(var c=_.t(a.K),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.M[e]=d)}a.fc("onPlayerCreated")};
199
- hn=function(a){var b,c;return _.z(function(d){if(1==d.a){if(a.I)return a.g.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.off(_.ie,a.B);a.A.off(a,_.ie,a.B);a.A.off(document,Oe);a.trigger(new _.E(_.Xd));a.O=!1;a.h&&a.h.release();return a.j?_.v(d,a.j.dispose(),3):d.H(2)}2!=d.a&&(a.j=null);hj(function(e){e.release()});if(a.a)return b=null,c=a.a.on(_.ie,function(e){b=e}),d["return"](a.fc(_.Fd).then(function(){a.a.removeDelegate(a);return Promise.all([a.a.release(),
200
- a.G.release()])}).then(function(){a.g.debug("Releasing player completed");b&&(a.g.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.ie,c);a.trigger(new _.E(Wd))}));a.trigger(new _.E(Wd));return d["return"](new Promise(function(e){return e()}))})};
201
- jn=function(a,b,c){return new Promise(function(d,e){var f;if(b){for(var g=f=null,k=0;k<b.length;k++);k=Object.values(_.Of);for(var l=0;l<b.length;l++)for(var m=0;m<k.length;m++){var n={Gb:k[m],confidence:k[m].canPlay(b[l],c)};if(null===f||f.confidence<n.confidence)f=n,g=l}f&&typeof g===_.zd&&0<f.confidence?(_.Pf.debug("Player Factory '"+f.Gb.a()+"' can play",b[g]),f=new Mf(f.Gb,g)):(_.Pf.error("No compatible Player Factory found for sources:",b),f=null)}else f=null;f?(g=f.Gb.create(),d(new Nf(g,f.a))):
202
- (f=new _.E(_.Xc,{detail:new _.J(_.K,7,7003)}),a.trigger(f),e(f))})};
203
- _.ln=function(a,b){var c,d,e,f;return _.z(function(g){switch(g.a){case 1:if(a.D)throw Error("Player is already destroyed.");if(!a.h)throw Error("No surface associated with this player!");return _.v(g,a.release(),2);case 2:a.o=_.Zl(b);c=_.bj(b);a.f=_.aj(a.T,c?b:{},{source:a.o});if(0===a.o.length)throw Error("Invalid request to load: could not find source to load");a.I=!1;e=0;if(!a.J&&2===a.canPlay(a.o[0],a.f)){g.H(3);break}return _.v(g,jn(a,a.o,a.f),4);case 4:f=g.f,d=f.a,e=f.f,a.J=!1;case 3:d?_.gn(a,
204
- d):a.a.addDelegate(a);kn(a);a.a&&a.a.setCdnErrorCallback(a.C);a.j=tm(a,a.f).create(a);a.setSourceIndex(e);if(a.f.pauseWhenInBackground)a.A.on(document,Oe,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});hj(function(k){k.Ub()});return _.v(g,a.fc("onContentWillLoad",a.f.source[e]),0)}})};
205
- _.mn=function(a){return _.z(function(b){a.h.getMedia()||a.h.getCastElement();a.A.on(a,_.ie,a.B);a.trigger(new _.E(ld));return _.v(b,Promise.all([a.a.load(a.f),a.j.load()]),0)})};nn=function(a){var b=_.yh(a.f.preferredTextLanguage).filter(function(d){return d}),c=a.getTrackManager().ea();b.some(function(d){var e=_.uh(d);return(d=c.find(function(f){f=_.uh(f.language||"");return _.vh(f,e)}))?(a.getTrackManager().ua(d),!0):!1})};
206
- _.on=function(a){var b,c,d,e;return _.z(function(f){if(1==f.a){b=[];if(a.f.remoteTextTracks)for(c=_.t(a.f.remoteTextTracks),d=c.next();!d.done;d=c.next())e=d.value,b.push(a.getTrackManager().addTextTrack(e));return _.v(f,Promise.all(b),2)}return 3!=f.a?(nn(a),hj(function(){}),_.v(f,a.fc(_.Cd),3)):a.f.autoplay?_.v(f,a.play(),0):f.H(0)})};kn=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.z(function(c){if(!a.yc||!a.be)return c.H(0);a.be=!1;return _.v(c,a.yc(b),0)})})};
207
- _.pn=function(a){a&&(0<=en.indexOf(a)||en.push(a))};U=function(){};qn=function(){};rn=function(){};sn=function(){};sm=function(){};tn=function(){};_.un=function(){};vn=function(){this.a=null};wn=function(){};xn=function(){this.size=0;this.a=void 0};yn=function(){};zn=function(){};An=function(){this.a=this.f=null};
208
- Bn=function(a,b){this.keySystem=a;if(a.startsWith(_.Ec))for(var c=_.t(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.Zd)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.Id,distinctiveIdentifier:_.Id,initDataTypes:e.initDataTypes,sessionTypes:[se],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var k=_.t(e.audioCapabilities),l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&
209
- (d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.t(e.videoCapabilities),l=e.next();!l.done;l=e.next())k=l.value,k.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,k.contentType.split(";")[0])&&(d.videoCapabilities.push(k),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,_.Ke));d=g?d:null}if(d){this.a=d;return}}c=Error(qb);c.name=Ya;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
210
- Cn=function(a){_.Kf("AppleEmeManager.MediaKeys");this.f=null;this.g=new WebKitMediaKeys(a);this.a=new _.Yf};
211
- Dn=function(a,b){a.f=b;_.ag(a.a);if(!b)return Promise.resolve();a.a.on(b,Tc,function(c){_.Kf("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);c instanceof MediaEncryptedEvent&&(_.Jf("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.a.on(b,We,function(c){_.Kf("AppleEmeManager.onWebkitNeedKey_",c);c=_.Q(c.initData);if(_.Qg(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");c=_.Vg(c.subarray(4),!0);c=_.Xg(c);
212
- var d=new Event(Tc);d.initDataType="skd";d.initData=Rg(c);a.f.dispatchEvent(d)});Gl(b,HTMLMediaElement.HAVE_METADATA,a.a,function(){return b.webkitSetMediaKeys(a.g)});return Promise.resolve()};En=function(a){_.Kf("AppleEmeManager.MediaKeySession");_.Ph.call(this);this.g=null;this.j=a;this.a=this.f=null;this.h=new _.Yf;this.sessionId="";this.expiration=NaN;this.closed=new _.Qh;this.keyStatuses=new xn};Fn=function(a,b){var c=a.keyStatuses;c.size=void 0===b?0:1;c.a=b;a.dispatchEvent(new _.E(dd))};
213
- Gn=function(){};Hn=function(){this.f=this.a=null;this.g="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.g="webkit")};
214
- In=function(a,b,c,d){this.g=a;this.a=this.keySystem=c;a=!1;c===_.Jd&&(this.a=Se,a=!1);var e=!1;d=_.t(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[],k=[],l=!1;if(f.audioCapabilities)for(var m=_.t(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=_.t(f.videoCapabilities),n=g.next();!n.done;n=g.next())m=n.value,m.contentType&&(l=!0,b.canPlayType(m.contentType,
215
- this.a)&&(k.push(m),e=!0));l||(e=b.canPlayType(_.Ke,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.Zd||a||(e=!1);if(e){this.f=f;return}}b=qb;if(c===_.Jd||c===_.Gc)b="None of the requested configurations were supported.";c=Error(b);c.name=Ya;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};Jn=function(a,b){this.g=a;this.m=b;this.a=null;this.f=new _.Yf;this.h=[];this.j=new Map};
216
- Mn=function(a,b){a.a=b;_.ag(a.f);b&&(a.f.on(b,a.g+"needkey",function(c){var d=new Event(Tc);d.initDataType=_.qc;d.initData=Rg(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.g+"keymessage",function(c){var d=Kn(a,c.sessionId);d?(c=new _.E(od,{messageType:void 0===d.keyStatuses.a?gd:fd,message:c.message}),_.Kf("WebkitEmeManager.MediaKeySession.generated"),d.f&&(d.f.resolve(),d.f=null),d.dispatchEvent(c)):_.Lf("Session not found",c.sessionId)}),a.f.on(b,a.g+"keyadded",function(c){if(c=Kn(a,c.sessionId))_.Kf("WebkitEmeManager.MediaKeySession.ready"),
217
- Ln(c,"usable"),c.a&&c.a.resolve(),c.a=null}),a.f.on(b,a.g+"keyerror",function(c){var d=Kn(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?Ln(d,_.Kd):1===e?Ln(d,"expired"):Ln(d,_.cd))}}))};
218
- Kn=function(a,b){var c=a.j.get(b);return c?c:(c=a.h.shift())?(c.sessionId=b,a.j.set(b,c),c):null};Nn=function(a,b,c,d){_.Ph.call(this);this.o=a;this.h=b;this.m=!1;this.a=this.f=null;this.g=c;this.j=d;this.sessionId="";this.expiration=NaN;this.closed=new _.Qh;this.keyStatuses=new xn};
219
- Pn=function(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if(a.j===_.Nd)if(c)var d=_.Q(_.Xg("LOAD_SESSION|"+c));else{var e=_.Xg("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.Q(b),e.byteLength);d=f}else d=_.Q(b)}catch(k){return Promise.reject(k)}a.f=new _.Qh;var g=On(a,"generateKeyRequest");try{a.h[g](a.g,d)}catch(k){if(k.name!==La)return a.f=null,Promise.reject(k);(new _.qh(function(){try{a.h[g](a.g,d)}catch(l){a.f.reject(l),
220
- a.f=null}})).$(.01)}return a.f};Qn=function(a,b,c){if(a.a)a.a.then(function(){return Qn(a,b,c)})["catch"](function(){return Qn(a,b,c)});else{a.a=b;if(a.g===Se){var d=_.Tg(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=_.lj(e.keys[0].k);e=_.lj(e.keys[0].kid)}else d=_.Q(c),e=null;var f=On(a,"addKey");try{a.h[f](a.g,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};
221
- Ln=function(a,b){var c=a.keyStatuses;c.size=void 0===b?0:1;c.a=b;a.dispatchEvent(new _.E(dd))};On=function(a,b){return a.o?a.o+b.charAt(0).toUpperCase()+b.slice(1):b};Rn=function(){};
222
- Sn=function(a,b,c,d,e){_.Aj.call(this,Ha);this.m=a;this.j=b;this.h=c;this.f=d;this.o=e;this.a=new _.D(yc);_.ch(this.m)?this.a.warn(_.tb):this.Fa(_.Gc,{licenseUrl:this.m,videoRobustness:[_.ib,void 0],audioRobustness:[_.hb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.Zc.bind(this)}});_.ch(this.j)?this.a.warn(_.Za):this.Fa(_.Fc,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.Zc.bind(this)}});
223
- _.ch(this.h)?this.a.warn(_.Ea):_.ch(this.f)?this.a.warn(_.Da):this.Fa(_.Ec,{licenseUrl:this.h,certificateUrl:this.f,modifiers:{licenseRequest:this.Qf.bind(this),licenseResponse:this.Rf.bind(this),certificateRequest:this.Zc.bind(this),extractContentId:this.wf.bind(this)}})};Tn=function(){this.l=null};Un=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.Zc)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
224
- Vn=function(a){a=a.target;if(a.webkitPresentationMode===Od){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)};Wn=function(){return this.webkitSupportsPresentationMode(Od)?(this.webkitSetPresentationMode(Od),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
225
- Xn=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};Yn=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};Zn=function(a,b,c){return new window.TextTrackCue(a,b,c)};
226
- $n=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};bo=function(a,b,c){if("input"===a)switch(this.type){case "range":a=sc}ao.call(this,a,b,c)};eo=function(){this.a=co()};fo=function(a){return co()-a.a};go=function(a){var b=new eo;b.a=a.a;return b};co=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.ho=function(a){this.f=a;this.a=0};
227
- _.io=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};_.jo=function(a){var b=[];a=_.t(a);for(var c=a.next();!c.done;c=a.next()){c=_.t(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};ko=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.g=b;this.f=0};
228
- lo=function(a,b){var c=a.f+b.byteLength;if(c>a.a.byteLength){var d=a.a;a.a=new Uint8Array(Math.max(Math.ceil(a.a.buffer.byteLength*a.g),c));a.a.set(d)}a.a.set(b,a.f);a.f+=b.byteLength};_.mo=function(a,b,c){this.f=a;this.g=b;this.h=c||this.f.getMedia();this.a=null};_.oo=function(){this.a=new Blob([no],{type:_.Ke})};_.qo=function(a,b,c,d){var e,f;return _.z(function(g){if(1==g.a)return _.rf(g,2),_.v(g,po(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.tf(g);f.a(_.K);throw f;})};
229
- po=function(a,b,c,d){var e,f,g,k;return _.z(function(l){if(1==l.a){if(d){if(e=_.ro[d.toLowerCase()])return l["return"](e);_.B("Could not determine manifest type using MIME type ",d)}if(f=_.so(a)){if(g=_.to[f])return l["return"](g);_.B("Could not determine manifest type for extension ",f)}else _.B("Could not find extension for ",a);return d?l.H(2):_.v(l,uo(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(k=_.ro[d])return l["return"](k);_.B("Could not determine manifest type using MIME type",d)}throw new _.J(_.K,4,
230
- 4E3,{url:a});})};uo=function(a,b,c){var d,e,f;return _.z(function(g){if(1==g.a)return d=_.ih(a),gh(d,c),d.type=1,d.method="HEAD",_.v(g,b.fetch(d).N,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.so=function(a){a=(new _.Wh(a)).ma.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()};vo=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.g=new eo};
231
- xo=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(wo(a,d),lh(c,d.byteLength,fo(a.g)),a.g.a=co());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 xo(a,b,c)})})};wo=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};
232
- ki=function(a){var b=a.uris[a.uriIndex],c=new yo,d=new eo,e=go(d),f=0,g=new _.Qh;c.open(a.method,b,!0);c.responseType="arraybuffer";c.timeout=a.timeout;c.withCredentials=a.allowCrossSiteCredentials;var k=!1,l=!1;c.onreadystatechange=function(n){n=n.target;n.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!k&&(n=n.getResponseHeader(oa),kh(a,n),k=!0)};c.onload=function(n){n=n.target;var p=(n.getAllResponseHeaders()||"").trim().split("\r\n"),q={};p=_.t(p);for(var r=p.next();!r.done;r=p.next())r=r.value.split(": "),
233
- q[r[0].toLowerCase()]=r.slice(1).join(": ");try{var x=fo(e);l||lh(a,n.response?n.response.length:0,x);var y=_.jh(q,n.response,n.status,b,n.responseURL,a,x);a.rateLimitBps?nh(a.rateLimitBps,fo(e),a.bytesLoaded).then(function(){g.resolve(y)}):g.resolve(y)}catch(C){g.reject(C)}};c.onerror=function(n){n=n.target;if(0>=n.status)g.reject(new _.J(1,1,1002,{url:b,request:a,status:n.status}));else{var p=n.getAllResponseHeaders(),q={};if(p){p=_.t(p.trim().split("\r\n"));for(var r=p.next();!r.done;r=p.next())r=
234
- r.value.split(": "),q[r[0].toLowerCase()]=r.slice(1).join(": ")}n=_.jh(q,n.response,n.status,b,n.responseURL,a,fo(e));g.resolve(n)}};c.ontimeout=function(){g.reject(new _.J(1,1,1003,{url:b,request:a}))};c.onprogress=function(n){var p=fo(d);d.a=co();if(100<p||n.lengthComputable&&n.loaded===n.total)lh(a,n.loaded-f,p),f=n.loaded,l=!0};for(var m in a.headers)c.setRequestHeader(m.toLowerCase(),a.headers[m]);c.send(a.body);return{N:g,request:a,abort:function(){c.abort();g.reject(new _.J(1,1,7001,{url:b,
235
- request:a}));return Promise.resolve()}}};zo=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.h=new ko(a);this.length=a;this.w=b;this.f=this.a=this.g=0;this.j=null;this.m=-1;this.o=new eo};
236
- Co=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,fo(a.o)),a.o.a=co());if(f)return f=Ao(a),(f=c(!0,f))?f.then(function(){return a.h.a.buffer}):Promise.resolve(a.h.a.buffer);var g=Promise.resolve();if(null!=e){lo(a.h,e);a.a=a.g;a.f=a.h.f;a.j=new DataView(a.h.a.buffer,0,a.h.f);e=Bo(a);for(f=[];e;)f.push(e),e=Bo(a);if(!a.w)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 k=f[f.length-1],
237
- l=k.end-e.start;e={start:e.start,end:k.end,length:l,data:new DataView(a.h.a.buffer,e.start,l),count:f.length}}(f=c(!1,e))&&(g=f)}}return g.then(function(){return Co(a,b,c,d)})})};Bo=function(a){if(0<=a.m&&a.f<a.m)return null;for(var b=Do(a);null!==b;){if(b.name===_.md){var c={start:a.g,end:b.end,length:b.end-a.g,data:new DataView(a.h.a.buffer,a.g,b.end-a.g),count:1};a.g=b.end;return c}b=Do(a)}return null};
238
- Do=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=Eo(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=Eo(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.j.getUint32(a.a,!1);var f=a.j.getUint32(a.a+4,!1)}catch(g){throw new _.J(_.K,3,3E3);}if(2097151<e)throw new _.J(_.K,3,3E3);a.a+=8;c=e*Math.pow(2,32)+f}c=b+c;a.m=c;return a.f>=c?(a.a=c,{name:d,start:b,end:c}):null};
239
- Eo=function(a){var b=a.j.getUint32(a.a,!1);a.a+=4;return b};Ao=function(a){var b=null;a.g!==a.f&&(b={start:a.g,end:a.f,length:a.f-a.g,data:new DataView(a.h.a.buffer,a.g,a.f-a.g),count:-1});return b};Go=function(a){_.Rh.call(this,new _.Qh,function(){return Promise.resolve()});this.A=a;this.g=null;this.o=this.N;this.f=-1;this.h=this.j=this.m=null;Fo(this)};Ho=function(a,b,c){a.m=setTimeout(b,c)};
240
- Fo=function(a){a.g=a.A.then(function(e){a.h=e.request;e.request.uriIndex=e.request.currentAttempt%e.request.uris.length;if(0<e.request.currentAttempt){-1===a.f&&(a.f=Io(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*Io(e.request.fuzzFactor,.5));a.f*=Io(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,k){a.j=k;Ho(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.J(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
241
- return e.plugin(e.request)});var b=0,c=0,d=0;return a.g.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.N}).then(function(e){a.o.resolve(e)})["catch"](function(e){if(e instanceof _.J){if((1===e.severity||b<d)&&7001!==e.code&&b<c)return Fo(a);7001!==e.code&&e.a(_.K);a.o.reject(e)}else a.o.reject(e)})};Io=function(a,b){return null===a||void 0===a?b:a};
242
- li=function(a){var b=new Jo,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new Ko,e={Nc:!1,kg:!1};b={N:Lo(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.Nc||(e.Nc=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.kg=!0;d.abort()},a);b.N=b.N["finally"](function(){window.clearTimeout(f)})}return b};
243
- Lo=function(a,b,c,d){var e,f,g,k,l,m,n,p,q,r,x,y,C,I,F;return _.z(function(G){switch(G.a){case 1:return e=Mo,k=new eo,l=go(k),_.rf(G,2),_.v(G,e(a,c),4);case 4:f=G.f;m=f.headers.get(oa);kh(b,m);n=m?parseInt(m,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return r=f.body.getReader(),x=new zo(n,!b.disableMergedFragments),y=function(M,O){if(d.Nc)return null;O&&O.data&&(lh(b,O.data.byteLength,fo(k)),k.a=co());return b.onFragment&&O?b.rateLimitBps?nh(b.rateLimitBps,fo(l),b.bytesLoaded).then(function(){return b.onFragment(O)}):
244
- b.onFragment(O):null},_.v(G,Co(x,r,y,b.onProgress),10);p=f.body.getReader();q=new vo(n);return _.v(G,xo(q,p,b),7);case 7:g=G.f;if(!b.rateLimitBps){G.H(6);break}return _.v(G,nh(b.rateLimitBps,fo(l),g.byteLength),6);case 10:g=G.f;case 6:_.sf(G,3);break;case 2:C=_.tf(G);if(d.Nc)throw new _.J(1,1,7001,{url:a,request:b});if(d.kg)throw new _.J(1,1,1003,{url:a,request:b});_.Lf("Error while fetching data:",C);throw new _.J(1,1,1002,{url:a,error:C,request:b,status:-1},C);case 3:I={};F=f.headers;F.forEach(function(M,
245
- O){I[O.trim()]=M});if(d.Nc)throw new _.J(1,1,7001,{url:a,request:b});return G["return"](_.jh(I,g,f.status,a,f.url,b,fo(l)))}})};gi=function(a){try{var b=a.uris[a.uriIndex],c=_.No(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()}}}};
246
- _.No=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Lf("Bad data URI, failed to parse scheme"),new _.J(_.K,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Lf("Bad data URI, failed to extract encoding and MIME type"),new _.J(_.K,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?_.lj(a).buffer:_.Xg(a).buffer,contentType:c}};_.Po=function(a){delete _.Oo[a]};
247
- _.Ro=function(a){a=a.getConfiguration();a=_.H.ya(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.me?a.backgroundColor:null;this.Y=typeof a.windowColor===_.me?a.windowColor:null;this.T=typeof a.fontColor===_.me?a.fontColor:null;this.U=typeof a.fontFamily===_.me?a.fontFamily:null;this.I=typeof a.fontSize===_.me?a.fontSize:null;this.D=typeof a.fontSizePercent===_.zd?a.fontSizePercent:null;this.G=typeof a.edgeColor===_.me?a.edgeColor:"rgba(0, 0, 0, 1)";this.B=_.Qo;typeof a.edgeType===
248
- _.me&&(this.B=a.edgeType)};_.Wo=function(a){var b=_.yd,c=a.G;switch(a.B){case So:b="-2px -2px 0 "+c+", -1px -1px 0 "+c;break;case To:b="2px 2px 0 "+c+", 1px 1px 0 "+c;break;case Uo:b="-1px 0 "+c+", 0 1px "+c+", 1px 0 "+c+", 0 -1px "+c;break;case Vo:b="2px 2px 3px "+c+", 2px 2px 4px "+c+", 2px 2px 5px "+c}return b};Xo=function(a){this.g=a;this.a=null;this.f=new _.D("clpp.text.Mp4TextParser")};
249
- _.Zo=function(a){_.Ro.call(this,a);this.j=a.getSurface().getMedia();this.f="clpp-video-"+Yo++;this.g=document.createElement(_.oe);this.h=this.m=!1;_.vm(this.j,this.f);document.head.appendChild(this.g);this.jb()};$o=function(){};_.ap=function(){};ef=typeof Object.create==_.Zc?Object.create:function(a){function b(){}b.prototype=a;return new b};
250
- if(typeof Object.setPrototypeOf==_.Zc)bp=Object.setPrototypeOf;else{var cp;a:{var dp={qg:!0},ep={};try{ep.__proto__=dp;cp=ep.qg;break a}catch(a){}cp=!1}bp=cp?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
251
- var ff=bp,kf=typeof Object.defineProperties==_.Zc?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},hf="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;lf.prototype.toString=function(){return this.a};var jf=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new lf("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
252
- of.prototype.w=function(a){this.f=a};of.prototype["return"]=function(a){this.g={"return":a};this.a=this.j};of.prototype.H=function(a){this.a=a};
253
- Af("Promise",function(a){function b(g){this.f=0;this.j=void 0;this.a=[];var k=this.g();try{g(k.resolve,k.reject)}catch(l){k.reject(l)}}function c(){this.a=null}function d(g){return g instanceof b?g:new b(function(k){k(g)})}if(a)return a;c.prototype.f=function(g){if(null==this.a){this.a=[];var k=this;this.g(function(){k.j()})}this.a.push(g)};var e=hf.setTimeout;c.prototype.g=function(g){e(g,0)};c.prototype.j=function(){for(;this.a&&this.a.length;){var g=this.a;this.a=[];for(var k=0;k<g.length;++k){var l=
254
- g[k];g[k]=null;try{l()}catch(m){this.h(m)}}}this.a=null};c.prototype.h=function(g){this.g(function(){throw g;})};b.prototype.g=function(){function g(m){return function(n){l||(l=!0,m.call(k,n))}}var k=this,l=!1;return{resolve:g(this.B),reject:g(this.h)}};b.prototype.B=function(g){if(g===this)this.h(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.C(g);else{a:switch(typeof g){case _.Ad:var k=null!=g;break a;case _.Zc:k=!0;break a;default:k=!1}k?this.A(g):this.m(g)}};
255
- b.prototype.A=function(g){var k=void 0;try{k=g.then}catch(l){this.h(l);return}typeof k==_.Zc?this.D(k,g):this.m(g)};b.prototype.h=function(g){this.o(2,g)};b.prototype.m=function(g){this.o(1,g)};b.prototype.o=function(g,k){if(0!=this.f)throw Error("Cannot settle("+g+", "+k+"): Promise already settled in state"+this.f);this.f=g;this.j=k;this.w()};b.prototype.w=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.C=function(g){var k=this.g();
256
- g.jd(k.resolve,k.reject)};b.prototype.D=function(g,k){var l=this.g();try{g.call(k,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,k){function l(q,r){return typeof q==_.Zc?function(x){try{m(q(x))}catch(y){n(y)}}:r}var m,n,p=new b(function(q,r){m=q;n=r});this.jd(l(g,m),l(k,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.jd=function(g,k){function l(){switch(m.f){case 1:g(m.j);break;case 2:k(m.j);break;default:throw Error("Unexpected state: "+
257
- 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(k,l){l(g)})};b.race=function(g){return new b(function(k,l){for(var m=_.t(g),n=m.next();!n.done;n=m.next())d(n.value).jd(k,l)})};b.all=function(g){var k=_.t(g),l=k.next();return l.done?d([]):new b(function(m,n){function p(x){return function(y){q[x]=y;r--;0==r&&m(q)}}var q=[],r=0;do q.push(void 0),r++,d(l.value).jd(p(q.length-1),n),l=k.next();while(!l.done)})};return b});var Cf=this||self;
258
- Cf.a=!0;_.H={pg:20,ya:function(a){var b=_.H.R,c=_.H.Gf,d=_.H.Sa;return b(a)||c(a)?a:d(a)}};_.A("clpp.utils.obj.cloneItem",_.H.ya);_.H.Sa=function(a){for(var b={},c=0;c<arguments.length;c++)null!==arguments[c]&&void 0!==arguments[c]&&(b=_.H.If(b,{merging:arguments[c]}));return b.merging};_.A("clpp.utils.obj.merge",_.H.Sa);
259
- _.H.If=function(a,b,c){var d=_.H.R,e=_.H.Gf,f=_.H.If,g=_.H.tb,k=_.H.si,l=_.H.pi,m=_.H.Dc;c=c+1||1;if(d(a)||!m(a))a={};for(var n in b)m=b[n],e(m)||d(m)||g(m)?a[n]=m:k(m)?a[n]=m.subarray(0):m instanceof Array?a[n]=f([],m):!d(m)&&l(m)&&c<_.H.pg&&(a[n]=f(a[n],m,c));return a};_.H.Gf=function(a){a=typeof a;return a===_.me||a===_.zd||a===_.ic};_.H.R=function(a){return null===a||"undefined"===typeof a};_.H.Dc=function(a){return typeof a===_.Ad};_.H.tb=function(a){return typeof a===_.Zc};
260
- _.H.Z=function(a){return typeof a===_.me};_.H.la=function(a){return typeof a===_.zd};_.H.Ef=function(a){return typeof a===_.ic};_.H.si=function(a){var b=_.H.Dc,c=_.H.tb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};_.H.pi=function(a){var b=_.H.Dc,c=_.H.R;return!c(a)&&b(a)&&a.constructor===Object};
261
- _.H.Ja=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||!_.H.Dc(a)||!_.H.Dc(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var k=e[g];if(_.H.R(d)||0>d.indexOf(k))if(f[k]=!0,a[k]!==b[k])return!1}if(_.H.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.H.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
262
- _.H.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.H.Ye=function(a){for(var b=new Map,c=_.t(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.H.Ze=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};var Gf={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.A("clpp.log.Level",Gf);var Ef=3,Df={},fp=[];_.A("clpp.log.getLoggers",function(){return _.H.ya(Df)});_.A("clpp.log.addInterceptor",function(a){a&&fp.push(a)});_.A("clpp.log.removeInterceptor",function(a){a&&(a=fp.indexOf(a),0<=a&&fp.splice(a,1))});_.A("clpp.log.getTagLevel",Ff);_.A("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Df[a]});_.A("clpp.log.setTagLevel",function(a,b){a&&(_.H.Z(b)&&(b=Hf(b)),Df[a]=b)});
263
- _.A("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.H.Z(a)&&(a=Hf(a));Ef=a});_.A("clpp.log.getLogLevel",function(){return Ef});_.h=_.D.prototype;
264
- _.h.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=Ff(this.a);if(0<=d){if(d<c)return}else if(Ef<c)return;this.a&&Array.prototype.unshift.call(arguments,"["+this.a+"]");d=new Date;d.toISOString&&(d=d.toISOString().substring(11).replace("Z",""),Array.prototype.unshift.call(arguments,d));4===c?console.log.apply(console,arguments):3===c?console.info.apply(console,arguments):2===c?console.warn.apply(console,arguments):
265
- 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.t(fp);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.h.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.h.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.h.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
266
- _.h.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.h.Th=function(a){return a?this.a?new _.D(this.a+"."+a):new _.D(a):this};_.A("clpp.log.Logger",_.D);_.D.prototype.createChild=_.D.prototype.Th;_.D.prototype.error=_.D.prototype.error;_.D.prototype.warn=_.D.prototype.warn;_.D.prototype.debug=_.D.prototype.debug;_.D.prototype.info=_.D.prototype.info;_.D.prototype.log=_.D.prototype.log;var If=new _.D("clpp");_.A("clpp.log.info",_.Jf);
267
- _.A("clpp.log.debug",_.Kf);_.A("clpp.log.warn",_.B);_.A("clpp.log.error",_.Lf);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.Pf=new _.D("clpp.players");_.Of={};_.Rf.prototype.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.Rf.prototype.get=function(a){return(a=this.a[a])?a.slice():[]};_.Rf.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};_.Rf.prototype.clear=function(){this.a={}};Uf.prototype.Qb=function(a){try{this.vc.handleEvent?this.vc.handleEvent(a):this.vc.call(this.a,a)}catch(b){_.Lf("clpp","Uncaught exception in event handler for event '"+this.f+"'",b,b?b.message:null,b?b.stack:null)}};_.E.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.E.prototype.stopImmediatePropagation=function(){this.f=!0};_.E.prototype.stopPropagation=function(){};_.h=Vf.prototype;
268
- _.h.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].Qb(a),b[c].vj&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.h.on=function(a,b,c){this.a.push(a,new Uf(a,b,c||this.f));return b};_.h.one=function(a,b,c){this.a.push(a,new Uf(a,b,c||this.f,!0));return b};_.h.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].vc===b&&(d=this.a.remove(a,c[e])||d);return d};_.h.clear=function(){this.a.clear()};
269
- _.A("clpp.EventBus",Vf);Vf.prototype.clear=Vf.prototype.clear;Vf.prototype.off=Vf.prototype.off;Vf.prototype.one=Vf.prototype.one;Vf.prototype.on=Vf.prototype.on;Vf.prototype.trigger=Vf.prototype.trigger;_.Yf.prototype.release=function(){_.ag(this)};_.Yf.prototype.on=function(a,b,c,d){a=new bg(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.Yf.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)};_.Yf.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||($f(f),this.a.remove(b,f))}};cg.prototype.release=function(){this.f.release();this.g=[];this.a=null};cg.prototype.destroy=function(){var a=this;return _.z(function(b){a.release();a.j=null;a.h=null;_.w(b)})};cg.prototype.getTimelineCues=function(){return this.g};_.A("clpp.text.Cue",_.sg);_.sg.positionAlign={LEFT:_.hd,RIGHT:_.id,CENTER:_.rc,AUTO:"auto"};_.mg=_.te;_.sg.payloadType={TEXT:_.mg,VTT_XML:_.Pe,TTML_XML:_.ye};_.ng=_.rc;_.gp={LEFT:_.ed,RIGHT:_.ae,CENTER:_.ng,START:_.ed,END:_.ae};_.sg.textAlign=_.gp;var rg="ltr";_.sg.direction={HORIZONTAL_LEFT_TO_RIGHT:rg,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.og="horizontal-tb";_.sg.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.og,VERTICAL_LEFT_TO_RIGHT:_.Ge,VERTICAL_RIGHT_TO_LEFT:_.He};_.pg=0;
270
- _.sg.lineInterpretation={LINE_NUMBER:_.pg,PERCENTAGE:1};_.qg=_.he;_.hp={CENTER:_.rc,START:_.qg,END:_.Vc};_.sg.lineAlign=_.hp;_.A("clpp.text.CueRegion",_.vg);_.tg=1;_.vg.units={PX:0,PERCENTAGE:_.tg,LINES:2};var ug="";_.vg.scrollMode={NONE:ug,UP:"up"};_.vg.displayAlign={BEFORE:"flex-end",CENTER:_.rc,AFTER:"flex-start"};_.vg.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Cc,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};wg.prototype.destroy=function(){this.a.release();this.h=!1;this.j=this.a=this.g=this.f=null;return Promise.resolve()};wg.prototype.start=function(a){var b=this;this.h?this.m.warn("Already started. Ignoring request..."):(this.h=!0,this.g=a,this.f=this.g.textTracks,this.a.on(this.f,_.Lb,function(c){return xg(b,c)}),this.a.on(this.f,sc,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.de&&(e.mode=_.ad)}}))};
271
- wg.prototype.o=function(a){var b=new _.sg(a.startTime,a.endTime,a.text,_.Pe);if(_.H.Z(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Ge;break;case "rl":b.writingMode=_.He}_.H.la(a.size)&&(b.size=a.size);if(_.H.Z(a.align))switch(a.align){case _.ed:case _.he:b.textAlign=_.ed;break;case _.rc:b.textAlign=_.ng;break;case _.ae:case _.Vc:b.textAlign=_.ae}_.H.la(a.position)&&(b.position=a.position);if(_.H.Z(a.positionAlign))switch(a.positionAlign){case _.hd:b.positionAlign=_.hd;break;case _.rc:b.positionAlign=
272
- _.rc;break;case _.id:b.positionAlign=_.id}_.H.la(a.line)&&(b.line=a.line);if(_.H.Z(a.lineAlign))switch(a.lineAlign){case _.he:b.lineAlign=_.qg;break;case _.rc:b.lineAlign=_.rc;break;case _.Vc:b.lineAlign=_.Vc}_.H.Ef(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.pg:1);return b};_.u(_.J,Error);_.J.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=yg(this.severity,this.category,this.code,this.data))};_.J.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.A("clpp.Error",_.J);_.K=2;_.J.Severity={RECOVERABLE:1,FATAL:_.K};_.J.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
273
- _.J.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,
274
- TEXT_PARSER_MISSING:2012,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,MEDIA_SOURCE_OPERATION_FAILED:3014,
275
- 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,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,
276
- 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,DASH_XLINK_DEPTH_LIMIT:4028,
277
- 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,INVALID_STREAMS_CHOSEN:5005,NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,
151
+ _.Fl=function(a,b){try{a.a.debug("Attempting to load an offline session",b);var c=a.J.createSession(_.Sd)}catch(f){var d=new _.L(_.M,6,6005,{browserError:f.message});a.S(d);return Promise.reject(d)}a.B.on(c,vd,a.dg.bind(a));a.B.on(c,kd,a.$f.bind(a));var e={initData:null,loaded:!1,De:Infinity,nb:null,za:new _.ai,periodId:null,xd:[],keyId:null,bb:[],initDataType:null,Yb:null,sessionContext:{ldlDelay:0,customData:{}}};e.za["catch"](function(){});a.g.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.a.debug("Loaded offline session",
152
+ b,f);if(!f)return a.g["delete"](c),a.S(new _.L(_.M,6,6013)),null;e.loaded=!0;Jl(a)&&(a.w||a.a.info(ya),a.w=!0,a.D=!1,a.I.resolve());return c},function(f){a.j||(a.g["delete"](c),a.S(new _.L(_.M,6,6005,{browserError:f.message})))})};Kl=function(a,b,c,d){if(!b&&c!==_.je)return!1;d=b||nk(d);a=_.u(a.g.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||c===_.je&&(e.keyId||nk(e.initData))===d)return!0;return!1};
153
+ El=function(a,b,c,d,e,f,g){f=void 0===f?null:f;g=void 0===g?!1:g;var h,l,m,n,p,q,r,w,x,B,D,E,G,I,O,S,Ca,da,fa,xa;_.A(function(ha){switch(ha.a){case 1:if(!e.length)return ha["return"]();h=b||Ll(a,d,e,f);if(g){ha.H(2);break}if(!Kl(a,h,d,e)){ha.H(2);break}l=!0;m=_.u(a.g.keys());n=m.next();case 4:if(n.done){ha.H(6);break}p=n.value;q=a.g.get(p);if(!h||q.keyId!==h||"skd"!==d){ha.H(5);break}a.a.warn("Close and re-open session for "+h);return _.y(ha,p.close(),8);case 8:l=!1;case 5:n=m.next();ha.H(4);break;
154
+ case 6:if(l)return a.a.warn("Skip creating a new session for "+h),ha["return"]();case 2:try{w=a.G?_.Sd:ye,r=a.J.createSession(w),a.a.info("Created new "+w+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(qa){return a.S(new _.L(_.M,6,6005,{browserError:qa.message})),ha["return"]()}a.B.on(r,vd,a.dg.bind(a));a.B.on(r,kd,a.$f.bind(a));x={Yb:f,xd:[],initData:e,initDataType:d,keyId:h,bb:h?[h]:[],loaded:!1,De:Infinity,periodId:c,nb:null,za:new _.ai,sessionContext:{ldlDelay:0,customData:{}}};
155
+ x.za["catch"](function(){});f&&(B=a.g.get(f),x.sessionContext=B.sessionContext);a.g.set(r,x);h&&!a.m.get(h)&&a.m.set(h,qe);if(e)for(D=0;D<a.f.initData.length;D++)E=a.f.initData[D],E.keyId&&!x.bb.includes(E.keyId)&&_.zj(E.initData,e)&&(x.keyId||(x.keyId=E.keyId),x.bb.push(E.keyId),a.m.get(E.keyId)||a.m.set(E.keyId,qe));G=_.K;I=G.jb;O=a.o.getConfiguration();S=a.keySystem();Ca=a.h.Qa[S];fa=(da=Ca.modifiers)&&da.transformInitData;I(fa)||(fa=Ml);try{e=fa({playerConfig:O,initData:e,initDataType:d,drmInfo:a.f,
156
+ drmSystemConfig:Ca,sessionContext:x.sessionContext,emeApi:a.A.Sc()})}catch(qa){return xa=qa,qa instanceof _.L||(xa=new _.L(_.M,6,6016,qa)),x.za&&x.za.reject(qa),a.S(xa),ha["return"]()}a.a.info("Generate License Request for key ID: '"+h+"'");r.generateRequest(d,e.buffer)["catch"](function(qa){if(!a.j){var Ba=null;qa.errorCode&&qa.errorCode.systemCode&&(Ba=qa.errorCode.systemCode,0>Ba&&(Ba+=Math.pow(2,32)),Ba="0x"+Ba.toString(16));a.S(new _.L(_.M,6,6006,{browserError:qa.message,error:qa,extended:Ba},
157
+ qa))}});_.z(ha)}})};
158
+ Ll=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{b=d;b=void 0===b?null:b;d=a.keySystem();var e=a.h.Qa[d];d=a.o.getConfiguration();e=e&&e.modifiers&&e.modifiers.extractContentId;_.K.jb(e)||(e=Nl);try{var f={ldlDelay:0,customData:{}};b&&(f=a.g.get(b).sessionContext);var g=e(d,c,f);a.a.debug("Extracted Content ID '"+g+"' from SKD");var h=g;break a}catch(l){a.a.warn("Unable to extract Content ID from SKD",l)}h=""}return h}if(b===_.je)return nk(c)||"";if(b===_.xc)try{e=a.keySystem();if(Ol(e))return _.dl(c).a;
159
+ if(e.match(/^com\.widevine\.alpha/)&&(f=_.Xk(c)))return f.a}catch(l){a.a.warn("Unable to extract Key ID from PSSH data",l)}return""};Nl=function(a,b){var c=_.mk(b);_.Pf("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
160
+ Ml=function(a){var b=a.playerConfig,c=a.initData,d=a.drmInfo,e=a.drmSystemConfig,f=a.sessionContext,g=a.emeApi;if("skd"===a.initDataType&&"APPLE"===g){a=_.K.jb;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=Nl);a="";try{a=e(b,c,f)}catch(h){throw new _.L(_.M,6,6103);}if(!a.length)throw new _.L(_.M,6,6101,"Content ID is an empty string");c=ok(c,a,d)}return c};
161
+ Sl=function(a,b){var c=b.target,d=a.g.get(c),e=a.keySystem(),f=!1;e.match(/^com\.widevine\.alpha/)&&b.message&&2===b.message.byteLength?(f=!0,a.a.info("WV Server certificate request for SID:'"+(c.sessionId+" from msg '")+(b.messageType+"'"))):a.a.info("License request for SID:'"+(c.sessionId+"'/KID:'"+d.keyId+"' from msg '")+(b.messageType+"'"));var g=a.f.licenseServerUri;e=a.h.Qa[e];"individualization-request"===b.messageType&&e&&e.individualizationServer&&(g=e.individualizationServer);var h=_.vh([g],
162
+ a.h.attemptParameters);h.type=3;h.body=b.message;h.method="POST";h.licenseRequestType=b.messageType===nd&&d.Yb?md:f?zc:b.messageType;h.sessionId=c.sessionId;if(h.licenseRequestType===md)a.o.onEvent(new _.J(Vc));Ol(a.f.keySystem)&&Pl(a,h);Cj(a.T,h);var l=Date.now();return Ql(a,h,d.sessionContext).then(function(){a.a.debug("Sending DRM license request to",g,h);return a.o.Ab.fetch(h).P}).then(function(m){if(a.j)return Promise.reject();var n=Date.now()-l,p=Rl(a,m),q="";p&&(q=" RID:"+p);p=m&&m.data?m.data.byteLength:
163
+ -1;f?a.a.info("WV Server certificate response for SID:'"+(c.sessionId+"' ")+(p+" bytes in ")+(n+"ms"+q)):a.a.info("License response for SID:'"+(c.sessionId+"'/KID:'")+(d.keyId+"' ")+(p+" bytes in ")+(n+"ms"+q));var r=Dj(a.T,m);return c.update(m.data).then(function(){if(!f){var w=Gl(a),x=r?Date.now()+1E3*r.delay:Number.NaN;w=new _.J(_.Yc,{keySystem:a.keySystem(),expirationTime:w,expectedRenewalTime:x});a.o.onEvent(w);d&&(d.nb&&d.nb.resolve(),d.Yb&&(w=d.Yb,a.a.info("Closing expired session '"+w.sessionId+
164
+ "'"),jl(w)["catch"](function(){a.a.warn("Unable to close expired session in time")}),(w=a.g.get(d.Yb))&&w.Ac&&w.Ac.stop(),a.g["delete"](d.Yb),d.Yb=null),(new _.Ch(function(){a.j||(d.loaded=!0,d.za&&d.za.resolve(),Jl(a)&&(a.w||a.a.info(ya),a.w=!0,a.D=!1,a.I.resolve()))})).$(5),null!==d.initData&&(0<d.sessionContext.ldlDelay||r&&Ej(a.keySystem()))&&(w=new _.Ch(function(){!a.j&&a.T&&(a.a.info("Updating CSL Sessions"),Ol(a.keySystem())?El(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):a.keySystem().startsWith(_.Lc)&&
165
+ c.update(_.eh("renew")))}),d.Ac=w,w.$(r?r.delay:d.sessionContext.ldlDelay)))}})},function(m){var n,p,q,r;return _.A(function(w){if(a.j)return w["return"]();n=m.data.headers;p=Kk(n);q=Object.assign({message:_.Ga,url:m.data.url,status:m.data.status,response:m.data.response},n?{headers:n}:{},p);r=new _.L(_.M,6,6007,q,m);a.S(r);d&&d.nb&&d.nb.reject(r);d&&d.za&&d.za.reject(r);_.z(w)})})["catch"](function(m){a.j||(m===mb?a.a.info("Ignore update for closed sessions"):(m=new _.L(_.M,6,6008,{browserError:m.message}),
166
+ a.S(m),d&&d.nb&&d.nb.reject(m),d&&d.za&&d.za.reject(m)))})};Rl=function(a,b){if(!b||!b.headers)return"";var c=b.headers["x-dt-li"];if(c)try{return JSON.parse(_.ah(_.wj(c))).ti}catch(d){a.a.warn("Unable to parse DRMtoday Request ID",d)}return""};
167
+ Pl=function(a,b){var c=ch(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.a.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(_.Le).textContent;b.body=_.wj(c.querySelector("Challenge").textContent).buffer}else a.a.debug("PlayReady request is already unwrapped."),b.headers[ua]="text/xml; charset\x3dutf-8"};
168
+ Ql=function(a,b,c){var d,e,f,g,h,l;return _.A(function(m){if(1==m.a)return d=a.o.getConfiguration(),_.y(m,Bl(a,d),2);e=a.keySystem();h=(g=(f=a.h.Qa[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;h?b.requestModifiers.push(function(n){return h(d,n,c)}):e.startsWith(_.Lc)&&b.requestModifiers.push(function(n){return _.pk(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Lc)&&b.responseModifiers.push(function(n){return _.qk(n)});_.z(m)})};
169
+ gl=function(a){var b=a.m,c=a.ia;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.S(new _.L(_.M,6,6014));a.o.He(_.K.ff(c));a.w||a.a.info(ya);a.w=!0;a.D=!1};wl=function(a){var b;return _.A(function(c){b=a.da.map(function(d){return Sl(a,d)});a.qb=!0;a.da=[];return _.y(c,Promise.all(b),0)})};Ol=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};_.Hl=function(a){return Ol(a)?_.Mc:a};
170
+ hl=function(a){a.g.forEach(function(b,c){var d=b.De,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.o.onExpirationUpdated(c.sessionId,e),b.De=e)})};Jl=function(a){a=a.g.values();return _.Pg(a,function(b){return b.loaded})};
171
+ ol=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};
172
+ Il=function(a,b,c,d,e){var f={};a=_.u(a);for(var g=a.next();!g.done;f={ta:f.ta},g=a.next()){f.ta=g.value;b.includes(f.ta.licenseServerUri)||b.push(f.ta.licenseServerUri);f.ta.serverCertificate&&(c.some(function(m){return function(n){return _.zj(n,m.ta.serverCertificate)}}(f))||c.push(f.ta.serverCertificate));if(f.ta.initData){var h=_.u(f.ta.initData);for(g=h.next();!g.done;g=h.next())g.value.periodId=f.ta.periodId;h={};var l=_.u(f.ta.initData);for(g=l.next();!g.done;h={md:h.md},g=l.next())h.md=g.value,
173
+ d.some(function(m){return function(n){var p=m.md;return n.keyId&&n.keyId==p.keyId&&n.periodId===p.periodId?!0:!1}}(h))||d.push(h.md)}if(f.ta.keyIds)for(g=0;g<f.ta.keyIds.length;++g)e.includes(f.ta.keyIds[g])||e.push(f.ta.keyIds[g])}};
174
+ ql=function(a,b){if(a.keySystem){var c=_.Hl(a.keySystem),d=b[c];c===_.Od&&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=
175
+ d.serverCertificate||null)))}};jl=function(a){var b,c;return _.A(function(d){if(1==d.a)return b=new Promise(function(e){(new _.Ch(e)).$(1)}),_.y(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.F("Timeout waiting for session close");_.z(d)})};Tl=function(){};_.Wl=function(a,b){a&&b&&(Ul.set(a,b),Vl.info("Registered TextDisplayerFactory: '"+a+"'"))};
176
+ _.Xl=function(a,b){var c=b.find(function(d){return(d=Ul.get(d))?d.W(a):!1});Vl.info("Chosen the text displayer: "+c);return c?Ul.get(c):null};_.Yl=function(a){return null!=a};Zl=function(){this.a=null;this.f=[]};_.$l=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})}};
177
+ am=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};bm=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};cm=function(){this.g=this.f=this.h=null;this.a=[]};dm=function(a){return a.a.map(function(b){return _.K.Ma(b)})};
178
+ _.em=function(){this.m=this.A=this.o=this.B=this.g=this.h=this.f=this.j=NaN;this.a=new Zl;this.w=new cm};_.fm=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:[]}};_.gm=function(a){this.f=a;this.a=void 0};im=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=hm.value().get(b),c.one(a,b,d))};
179
+ mm=function(a){this.g=new _.H("clpp.StateManager");this.l=a;this.a=new _.bg;this.f=_.jm;this.A=_.km;this.I=0;this.w=-1;this.L=this.o=this.J=this.B=0;this.j=this.m=this.D=!1;this.G=0;this.h=null;this.K=0;this.O=_.Ii();this.C=!1;this.J=Date.now();lm(this)};nm=function(a,b){return Object.keys(b)[a]};
180
+ pm=function(a,b){var c={type:_.oe};b===_.rc||b===_.qc?(c.reason=a.w,b===_.rc?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(a.f===_.om&&(c.reason=a.w),a.A===_.om&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
181
+ tm=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=a.f===_.om;a.A=a.f;a.f=b;a.A===_.qm&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;b===_.om?(a.L=a.o,a.w=a.m?1:2,a.g.info("Buffering started. Reason: "+nm(a.w-1,_.rm)),c=pm(a,_.rc),a.Sb(_.rc,c)):d&&(a.B=a.o-a.L,a.g.info("Buffering finished. Reason: "+nm(a.w-1,_.rm)+". Buffering time: "+a.B+" ms"),c=pm(a,_.qc),a.Sb(_.qc,c));c=nm(a.A,_.sm);d=nm(a.f,_.sm);a.g.info(_.eb+c+" -\x3e "+d);a.Sb(_.oe,pm(a,""));return!0};
182
+ ym=function(a,b){if(a.f===_.um)a.g.warn("Player is in error state, aborting any further state checks");else{var c=a.l.isPaused();var d=a.l.getPosition();var e=a.l.getDuration();if(d=a.l.isEnded()||a.f===_.qm&&1>=Math.abs(d-e)||c&&d>=e)tm(a,_.qm)&&a.g.debug("Player claims to be in ended state, not checking more");else if(b!==_.Ce){e=a.l.getPosition();e=null!==e&&void 0!==e&&0<=e?a.l.getBufferInfo().Da(e,!0):-1;a.G=e;e=a.l.getSurface().getMedia();a.h=e?e.readyState:null;a.K=a.l.getPlaybackRate()||1;
183
+ e=typeof a.h===_.k&&2>a.h&&2===e.networkState;var f=typeof a.h===_.k&&0>=a.G&&a.f===_.jm,g=typeof a.h===_.k&&2>=a.h&&a.j;e=a.m||f||e||g;!a.O||a.l.isLive()||a.f!==_.om||e||(f=b===_.ge&&4===a.h,(g=a.A===_.vm)&&!a.C?e=!0:g||a.C||f||(e=!0));f=!1;e?f=tm(a,_.om):c?f=tm(a,_.wm):a.D&&(f=tm(a,_.xm));f&&(a.C=!1);a.g.debug("Video state check for event "+b+":: seeking: "+a.m+", waiting: "+a.j+", playing: "+a.D+", paused: "+c+", readyState: "+a.h+", rate: "+a.K+", buffer: "+a.G+", ended: "+d+". Changed state: "+
184
+ f+", Current state: "+nm(a.f,_.sm))}}};
185
+ lm=function(a){function b(d){return ym(a,d.type)}a.g.debug("Start watching for video events for "+a.l.namespace());var c=a.l;a.a.on(c,_.cd,function(){a.j=!1;tm(a,_.qm)});a.a.on(c,sc,b);a.a.on(c,_.Vd,function(){a.D=!0;a.j=!1;ym(a,_.Vd)});a.a.on(c,_.Qd,function(){a.D=!1;a.j=!1;ym(a,_.Qd)});a.a.on(c,_.Ce,b);a.a.on(c,_.$d,b);a.a.on(c,_.ge,function(d){a.m=!1;a.j=!1;ym(a,d.type)});a.a.on(c,_.he,function(d){a.m=!0;ym(a,d.type)});a.a.on(c,me,b);a.a.on(c,_.We,function(){a.j=!0;ym(a,_.We)});a.a.on(c,_.dd,function(d){return a.S(d)});
186
+ a.a.on(c,_.rd,b);a.a.on(c,tc,function(){a.C=!0;ym(a,tc)});a.a.on(c,_.Ke,function(d){a.m=!0;ym(a,d.type)});a.a.on(c,_.Je,function(d){a.m=!1;a.j=!1;ym(a,d.type)})};Em=function(a){a=(new _.gi(a)).pa;if(!a)return null;a=a.toUpperCase();return _.ih(a,".MPD")?_.Zb:_.ih(a,".M3U8")?_.ec:_.ih(a,".MP4")?_.Qe:_.ih(a,"MANIFEST")||_.ih(a,".ISM")?_.dc:null};
187
+ _.Gm=function(a){var b;_.mj(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.se||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=Fm(b[c]);d&&a.push(d)}return a};
188
+ Fm=function(a){var b=null;_.K.Z(a)&&(a={url:a});typeof a===_.Gd&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.K.R(a.drmProtected)||typeof a.drmProtected!==_.pc||(b.drmProtected=a.drmProtected),_.K.R(a.isLive)||typeof a.isLive!==_.pc||(b.isLive=a.isLive),_.K.R(a.name)||typeof a.name!==_.se||(b.name=a.name),_.K.R(a.Cb)||typeof a.Cb!==_.se||(b.Cb=a.Cb),_.K.R(a.audioMimeType)||typeof a.audioMimeType!==_.se||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=Em(a.url),b.type?
189
+ Hm.debug("Detect media type "+b.type+" for "+a.url):Hm.warn("Unable to detect media type for "+a.url));return b};Im=function(){_.nj.call(this,Gc);this.w=this.G=!1;this.j=this.A=this.m=this.a=this.h=null;this.g=new _.bg;this.D=this.C=this.f=this.I=null};Lm=function(a,b){return a.w?Jm():new Promise(function(c){a.a||(a.g.on(b,_.dd,function(){var d=Km(a);if(d)a.onError(d)}),a.g.on(b,_.ee,function(){a.trigger(new _.J(_.oc,{detail:{width:b.videoWidth,height:b.videoHeight}}))}),a.a=b);c()})};
190
+ Mm=function(a){return a.w?Jm():new Promise(function(b){if(a.a){var c=a.a;a.g.off(c,_.dd);a.g.off(c,_.ee);a.a=null}b()})};
191
+ Om=function(a){var b,c,d,e,f;return _.A(function(g){if(1==g.a){if(a.w)return g["return"](Jm());b=a.o[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=_.Nm;d=_.Ij(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.m=new _.il({Ab:e,onError:function(h){return a.onError(h)},He:function(){},onExpirationUpdated:function(h,l){a.trigger(new _.J(_.Uc,
192
+ {expirationTime:l}))},onEvent:function(h){h instanceof _.J?a.dispatchEvent(h):a.log.debug(_.ub,h.type)},getConfiguration:function(){return a.getConfiguration()},Ec:function(){return a.Ec()}});a.m.h=d;f={id:0,language:_.Fe,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,
193
+ Aa:0,mimeType:_.Qe,codecs:"",encrypted:!0,keyId:null,language:_.Fe,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,qk:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,dk:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.y(g,_.nl(a.m,[f],[]),2)}return 3!=g.a?_.y(g,_.Al(a.m,a.a),3):g["return"](Promise.resolve())})};
194
+ Pm=function(a,b){im(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.g,function(){a.getState()!==_.um&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};Km=function(a){if(null===a.o||!a.a.error)return null;var b=a.a.error.code;if(1===b)return null;var c=a.a.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new _.L(_.M,3,3016,{code:b,kk:c,message:a.a.error.message})};Jm=function(){return Promise.reject(new _.L(_.M,7,7E3))};
195
+ Qm=function(a){if(a.w)return new _.bi(Jm(),function(){});var b=a.o[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&Pm(a,c);if(d.preload!==_.Fd)a.g.one(d,_.rd,function(){var g=Date.now()/1E3-e;a.f.o=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.ti()||_.ui())&&d.load();var f=new _.ai;a.g.one(d,me,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.C||(a.C=(new _.Ch(function(){f.reject(new _.L(_.M,3,3100,{message:"Unable to load media source successfully from "+
196
+ b.url,uri:b.url},d.error))})).$(g))});im(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.g,function(){return f.resolve()});d.error?f.reject(Km(a)):d.preload===_.Fd&&(a.log.warn('With \x3cvideo preload\x3d"none"\x3e, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way. Please do not use preload\x3d"none" with PRESTOplay for Web Apps.'),f.resolve());a.g.one(d,_.dd,function(){f.reject(Km(a))});
197
+ return new _.bi(f,function(){var g=new _.L(_.M,7,7001);f.reject(g);return Promise.resolve()})};Rm=function(){};_.Um=function(a){a&&(0<=Sm.indexOf(a)?Tm.warn("Factory '"+a.name()+"' is already registered"):(Sm.push(a),Tm.info("Factory "+a.name()+"' has been registered.")))};Wm=function(a,b){var c=Sm.find(function(d){return d.W(a,b)});c||(c=new Vm);Tm.info("Chosen ads: "+c.name());return c};
198
+ _.Xm=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};_.Ym=function(a,b){a.classList.add(b)};_.Zm=function(a,b){if(a&&typeof b===_.Gd)for(var c in b)a.style[c]=b[c]};_.$m=function(a){return document.createElement(a)};an=function(){this.a=null;this.g=new Set;this.f=null;this.set(null)};bn=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.g.add(b))};
199
+ cn=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.g.values());Eg(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.jf(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
200
+ gn=function(a,b){this.a=new _.H("clpp.PlayerSurface");this.w=_.K.Va(dn,b);this.g=new an;this.h=null;this.f=new an;this.m=en;en+=1;this.o="clpp-video-"+this.m;this.j=new _.bg;if(null==a)throw new _.L(_.M,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.L(_.M,7,7004,"Media element not found");var d=this.w;this.a.debug("Initializing Player Surface on ",c);if("cast-media-player"===c.tagName.toLowerCase())this.h=c;else{if(!(c instanceof
201
+ HTMLMediaElement))throw new _.L(_.M,7,7005,"Media element is not instance of HTMLMediaElement");if(!c.hasAttribute("crossorigin")){var e=d.crossorigin;this.a.info("Setting media elements crossorigin to "+e);c.setAttribute("crossorigin",e)}this.g.set(c);if(d.disableContainer)d=null;else if(d.containerEl){if(c.parentNode!==d.containerEl)throw new _.L(_.M,7,7006,"Container element is not a direct parent of media element");d=d.containerEl}else{d=document.createElement(_.Tc);c.parentNode?c.parentNode.replaceChild(d,
202
+ c):this.a.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!");e=[];for(var f=0;f<c.classList.length;f++)e.push(c.classList[f]);e=_.u(e);for(f=e.next();!f.done;f=e.next())f=f.value,c.classList.remove(f),_.Ym(d,f);d.style.cssText=c.style.cssText;c.removeAttribute(_.ue);e=_.u([_.cf,_.gd]);for(f=e.next();!f.done;f=e.next()){f=f.value;var g=c.getAttribute(f);g=parseInt(g,10);isNaN(g)||(d.style[f]=g+_.Zd);_.ti()||c.removeAttribute(f)}d.appendChild(c)}d&&
203
+ (this.f.set(d),bn(this.f,"clpp-container"),bn(this.f,this.o),bn(this.g,_.Bc),bn(this.g,"clpp-video"));fn(this,c,d)}};fn=function(a,b,c){(_.ui()&&53===Fi().major||_.ui()&&68===Fi().major||_.Gi())&&!b.hasAttribute(Pc)&&(b.style.opacity="0",b.setAttribute(Pc,""),a.j.one(b,$c,function(){b.removeAttribute(Pc);b.style.opacity="1";c&&(c.style.opacity="1")}))};jn=function(a){this.l=a;this.h=this.l.getNetworkEngine();this.a=new _.bg;this.g=null;this.f=!0;hn(this)};
204
+ hn=function(a){a.a.on(window,"offline",function(){kn(a,!1)});a.a.on(window,"online",function(){a.f||ln(a)});a.a.on(a.l,me,function(){return mn(a)});a.a.on(a.l,"suspend",function(){return mn(a)});a.a.on(a.l,_.We,function(){return mn(a)});a.a.on(a.l,_.Vd,function(){a.f||ln(a)});a.a.on(a.l,_.Yd,function(){a.f||ln(a)});a.a.on(a.l,_.oe,function(){switch(a.l.getState()){case _.om:mn(a);break;default:mn(a)}})};ln=function(a){a.l.getConfiguration().connectivityCheck&&(nn(a),a.g=(new _.Ch(function(){return on(a)})).$(5))};
205
+ mn=function(a){a.f&&ln(a)};nn=function(a){a.g&&(a.g.stop(),a.g=null)};on=function(a){var b,c;return _.A(function(d){if(1==d.a)return(b=a.l.getConfiguration().connectivityCheck)&&a.l?_.y(d,zi(a.h,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;kn(a,c);_.z(d)})};kn=function(a,b){nn(a);a.f!==b&&(a.f=b,a.l&&a.l.getConfiguration().connectivityCheck&&a.l.trigger(new _.J(Md,{online:a.f})))};qn=function(){for(var a=0;a<pn.length;++a)pn[a].xc()};
206
+ _.rn=function(a,b){b=b||0;for(var c={priority:b,xc:a},d=0;d<pn.length;d++)if(pn[d].priority<b){pn.splice(d,0,c);return}pn.push(c)};sn=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};tn=function(a,b,c){this.g=a;this.f=b;JSON.parse(_.ah(_.wj(a)));this.a=JSON.parse(_.ah(_.wj(b)));this.h=c};un=function(a){this.license=a;this.a=null;this.f=new _.H("clpp.utils.LicenseKey")};
207
+ vn=function(a){if(!a.a){var b=a.license.split(".");if(3!==b.length)throw Error("Expected to find 3 data sections in JWT raw data");b=new tn(b[0],b[1],b[2]);a.a=b}return a.a};wn=function(a){switch((a.Dd()[0]||{src:"",type:""}).type){case _.Zb:a="dash";break;case _.dc:a="ss";break;case _.ec:a="hls";break;case _.Qe:a=_.Ad;break;default:a=""}return a};xn=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};
208
+ yn=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};zn=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};Bn=function(a){var b=a.getConfiguration(),c="no";b.drm&&!_.K.va(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(Zc)||An(a).endsWith("drmtoday.com"))&&(c=Zc);return c};
209
+ Cn=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.keySystem){case _.Nc:b="wv";break;case _.Mc:b="pr";break;case _.Lc:b="fps"}return b};Dn=function(a){a=a.getDrmInfo();var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};En=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.videoRobustness){case La:case "HW_SECURE_ALL":b="L1";break;case Ja:b="L2";break;case _.lb:case _.kb:b="L3"}return b};An=function(a){a=a.getDrmInfo();return(new _.gi(a&&a.licenseServerUri||"")).Na};
210
+ Hn=function(a,b){var c="ie"===_.vi().browser,d=b.getConfiguration(),e=_.jf(Array.from(_.oj.keys())).concat(_.jf(b.gi()));d={"CL-KEY":a.license,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ia,"CL-USER-ID":xn(d),"CL-ASSET-ID":yn(d),"CL-SESSION-ID":zn(d),"CL-PLAYBACK-TYPE":b.isLive()?Fn:Gn,"CL-CONTENT-TYPE":wn(b),"CL-PLUGINS":e.join(" "),"CL-DRM":Bn(b),"CL-DRM-CDM":Cn(b),"CL-DRM-SEC-LEVEL":En(b),"CL-DRM-OFFLINE":Dn(b),"CL-DRM-IP":An(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=
211
+ e);e=_.vh(["https://downloads.castlabs.com/r/register/"]);e.method="GET";e.headers=d;return(new _.yi).fetch(e).P.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=vn(a);f=f.data;var h=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(h){case 403:case 404:g=7101;var l="castLabs Player license is invalid";if(403===h){h=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=
212
+ h+(": "+l)}else f=l+"!";l=f;break;case 412:g=7103;l="License requires a viewer ID. It should be supplied either via the `viewerId` config or in case of DRMtoday via the `drm.customData.userID` config.";break;default:f=Promise.resolve();break a}a.f.error(Qa+l);f=Promise.reject(new _.L(_.M,7,g,l))}}return f})};
213
+ V=function(a,b,c){_.$h.call(this);var d=this;qn();this.g=new _.H("clpp.Player");if(!a)throw new _.L(_.M,7,7102);this.A=new _.bg;this.f=this.T=b||_.jj();this.m=null;void 0===this.f.license&&(this.f.license=fj,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 _.L(_.M,7,7101,"No license provided in configuration!");this.h=new gn(a,c);this.a=this.w=null;this.G=
214
+ new _.yi;this.j=null;this.K=[];this.L={};this.o=null;this.I=!0;this.J=this.D=!1;this.C=this.Bc=null;this.je=!1;this.U=new jn(this);this.O=!1;this.B=function(f){(f=f.detail)&&f.currentState===_.xm&&(d.off(_.oe,d.B),In(d))};this.on(_.oe,function(){d.getState()===_.um&&d.unload()});this.on(_.Vb,this.Uf.bind(this));this.on(_.Ub,this.Uf.bind(this));Jn(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."),
215
+ 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(Kn);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)}}Ln(this,a);_.oj.clear()};_.Mn=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)))};
216
+ Jn=function(a,b){a.w=new un(b);a.w.verify()["catch"](function(c){setTimeout(function(){a.g.error(Qa+c);a.trigger(new _.J(_.dd,{detail:new _.L(_.M,7,7101)}));a.destroy()},1E3)})};
217
+ In=function(a){if(!a.O){a.O=!0;a.h.getMedia()||a.h.getCastElement();a.w||(a.w=new un(a.f.license));var b=Object.keys(a.L);Hn(a.w,{getConfiguration:a.getConfiguration.bind(a),Dd:a.Dd.bind(a),getDrmInfo:a.getDrmInfo.bind(a),gi:function(){return b},isLive:a.isLive.bind(a)}).then(function(){a.g.debug("License verified remotely")})["catch"](function(c){setTimeout(sn,1E3,{release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)},c)})}};
218
+ Ln=function(a,b){a.K=b;for(var c=_.u(a.K),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.L[e]=d)}a.gc("onPlayerCreated")};
219
+ Nn=function(a){var b,c;return _.A(function(d){if(1==d.a){if(a.I)return a.g.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.off(_.oe,a.B);a.A.off(a,_.oe,a.B);a.A.off(document,Ue);a.trigger(new _.J(_.be));a.O=!1;a.h&&a.h.release();return a.j?_.y(d,a.j.dispose(),3):d.H(2)}2!=d.a&&(a.j=null);sj(function(e){e.release()});if(a.a)return b=null,c=a.a.on(_.oe,function(e){b=e}),d["return"](a.gc(_.Kd).then(function(){a.a.removeDelegate(a);return Promise.all([a.a.release(),
220
+ a.G.release()])}).then(function(){a.g.debug("Releasing player completed");b&&(a.g.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.oe,c);a.trigger(new _.J(ae))}));a.trigger(new _.J(ae));return d["return"](new Promise(function(e){return e()}))})};
221
+ On=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(_.Tf);for(var l=0;l<b.length;l++)for(var m=0;m<h.length;m++){var n={Hb: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?(_.Uf.debug("Player Factory '"+f.Hb.a()+"' can play",b[g]),f=new Rf(f.Hb,g)):(_.Uf.error("No compatible Player Factory found for sources:",b),f=null)}else f=null;f?(g=f.Hb.create(),d(new Sf(g,f.a))):
222
+ (f=new _.J(_.dd,{detail:new _.L(_.M,7,7003)}),a.trigger(f),e(f))})};
223
+ _.Qn=function(a,b){var c,d,e,f;return _.A(function(g){switch(g.a){case 1:if(a.D)throw Error("Player is already destroyed.");if(!a.h)throw Error("No surface associated with this player!");return _.y(g,a.release(),2);case 2:a.o=_.Gm(b);c=_.mj(b);a.f=_.lj(a.T,c?b:{},{source:a.o});if(0===a.o.length)throw Error("Invalid request to load: could not find source to load");a.I=!1;e=0;if(!a.J&&2===a.canPlay(a.o[0],a.f)){g.H(3);break}return _.y(g,On(a,a.o,a.f),4);case 4:f=g.f,d=f.a,e=f.f,a.J=!1;case 3:d?_.Mn(a,
224
+ d):a.a.addDelegate(a);Pn(a);a.a&&a.a.setCdnErrorCallback(a.C);a.j=Wm(a,a.f).create(a);a.setSourceIndex(e);if(a.f.pauseWhenInBackground)a.A.on(document,Ue,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});sj(function(h){h.Wb()});return _.y(g,a.gc("onContentWillLoad",a.f.source[e]),0)}})};
225
+ _.Rn=function(a){return _.A(function(b){a.h.getMedia()||a.h.getCastElement();a.A.on(a,_.oe,a.B);a.trigger(new _.J(sd));return _.y(b,Promise.all([a.a.load(a.f),a.j.load()]),0)})};Sn=function(a){var b=_.Dg(a.f.preferredTextLanguage).filter(function(d){return d}),c=a.getTrackManager().ea();b.some(function(d){var e=_.Gh(d);return(d=c.find(function(f){f=_.Gh(f.language||"");return _.Hh(f,e)}))?(a.getTrackManager().Ba(d),!0):!1})};
226
+ _.Tn=function(a){var b,c,d,e;return _.A(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 _.y(f,Promise.all(b),2)}return 3!=f.a?(Sn(a),sj(function(){}),_.y(f,a.gc("onContentLoaded"),3)):a.f.autoplay?_.y(f,a.play(),0):f.H(0)})};Pn=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.A(function(c){if(!a.Bc||!a.je)return c.H(0);a.je=!1;return _.y(c,a.Bc(b),0)})})};
227
+ _.Un=function(a){a&&(0<=Kn.indexOf(a)||Kn.push(a))};W=function(){};Vn=function(){};Wn=function(){};Xn=function(){};Vm=function(){};Yn=function(){};_.Zn=function(){};$n=function(){this.a=null};ao=function(){};bo=function(){this.size=0;this.a=void 0;this.f=new _.H("clpp.drm.eme.MediaKeyStatusMap")};co=function(a,b){a.size=void 0===b?0:1;a.f.debug("Setting key status to",b);a.a=b};eo=function(){};fo=function(){};go=function(){this.a=this.f=null};
228
+ ho=function(a,b){this.keySystem=a;if(a.startsWith(_.Lc))for(var c=_.u(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.de)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.Nd,distinctiveIdentifier:_.Nd,initDataTypes:e.initDataTypes,sessionTypes:[ye],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])&&
229
+ (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,_.Qe));d=g?d:null}if(d){this.a=d;return}}c=Error(wb);c.name=bb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
230
+ io=function(a){this.g=null;this.h=new WebKitMediaKeys(a);this.f=new _.bg;this.j=0;this.a=new _.H(Fc);this.a.info("Created Media Keys for "+a)};
231
+ jo=function(a,b){a.g=b;_.eg(a.f);if(!b)return Promise.resolve();a.f.on(b,ad,function(c){_.Pf("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);c instanceof MediaEncryptedEvent&&(a.a.info("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.f.on(b,bf,function(c){a.a.debug("Handle webkitNeedKey event");c=_.R(c.initData);if(_.Yg(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");c=ch(c.subarray(4),!0);c=_.eh(c);
232
+ var d=new Event(ad);d.initDataType="skd";d.initData=Zg(c);a.g.dispatchEvent(d)});im(b,HTMLMediaElement.HAVE_METADATA,a.f,function(){return b.webkitSetMediaKeys(a.h)});return Promise.resolve()};ko=function(a,b){_.$h.call(this);this.a=null;this.o=a;this.g=this.h=null;this.j=new _.bg;this.sessionId=b;this.expiration=NaN;this.closed=new _.ai;this.m=!1;this.keyStatuses=new bo;this.f=new _.H(Fc)};lo=function(a,b){co(a.keyStatuses,b);a.dispatchEvent(new _.J(kd))};mo=function(){};
233
+ no=function(){this.f=this.a=null;this.g="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.g="webkit")};
234
+ oo=function(a,b,c,d){this.g=a;this.a=this.keySystem=c;a=!1;c===_.Od&&(this.a=Ye,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,
235
+ this.a)&&(h.push(m),e=!0));l||(e=b.canPlayType(_.Qe,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.de||a||(e=!1);if(e){this.f=f;return}}b=wb;if(c===_.Od||c===_.Nc)b="None of the requested configurations were supported.";c=Error(b);c.name=bb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};po=function(a,b){this.g=a;this.m=b;this.a=null;this.f=new _.bg;this.h=[];this.j=new Map};
236
+ so=function(a,b){a.a=b;_.eg(a.f);b&&(a.f.on(b,a.g+"needkey",function(c){var d=new Event(ad);d.initDataType=_.xc;d.initData=Zg(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.g+"keymessage",function(c){var d=qo(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.J(vd,{messageType:e?nd:md,message:c.message});_.Pf("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.Qf("Session not found",c.sessionId)}),a.f.on(b,a.g+"keyadded",function(c){if(c=
237
+ qo(a,c.sessionId))_.Pf("WebkitEmeManager.MediaKeySession.ready"),ro(c,"usable"),c.a&&c.a.resolve(),c.a=null}),a.f.on(b,a.g+"keyerror",function(c){var d=qo(a,c.sessionId);if(d){var e=Error("EME v0.1b key error"),f=c.errorCode;f.systemCode=c.systemCode;e.errorCode=f;!c.sessionId&&d.f?(45===c.systemCode&&(e.message="Unsupported session type."),d.f.reject(e),d.f=null):c.sessionId&&d.a?(d.a.reject(e),d.a=null):(e=c.systemCode,c.errorCode.code===MediaKeyError.MEDIA_KEYERR_OUTPUT?ro(d,_.Pd):1===e?ro(d,"expired"):
238
+ ro(d,_.jd))}}))};qo=function(a,b){var c=a.j.get(b);return c?c:(c=a.h.shift())?(c.sessionId=b,a.j.set(b,c),c):null};to=function(a,b,c,d){_.$h.call(this);this.o=a;this.h=b;this.m=!1;this.a=this.f=null;this.g=c;this.j=d;this.sessionId="";this.expiration=NaN;this.closed=new _.ai;this.keyStatuses=new bo};
239
+ vo=function(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if(a.j===_.Sd)if(c)var d=_.R(_.eh("LOAD_SESSION|"+c));else{var e=_.eh("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.R(b),e.byteLength);d=f}else d=_.R(b)}catch(h){return Promise.reject(h)}a.f=new _.ai;var g=uo(a,"generateKeyRequest");try{a.h[g](a.g,d)}catch(h){if(h.name!==Oa)return a.f=null,Promise.reject(h);(new _.Ch(function(){try{a.h[g](a.g,d)}catch(l){a.f.reject(l),
240
+ a.f=null}})).$(.01)}return a.f};wo=function(a,b,c){if(a.a)a.a.then(function(){return wo(a,b,c)})["catch"](function(){return wo(a,b,c)});else{a.a=b;if(a.g===Ye){var d=_.ah(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=_.wj(e.keys[0].k);e=_.wj(e.keys[0].kid)}else d=_.R(c),e=null;var f=uo(a,"addKey");try{a.h[f](a.g,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};ro=function(a,b){co(a.keyStatuses,b);a.dispatchEvent(new _.J(kd))};
241
+ uo=function(a,b){return a.o?a.o+b.charAt(0).toUpperCase()+b.slice(1):b};xo=function(){};
242
+ yo=function(a,b,c,d,e){_.Lj.call(this,Ma);this.m=a;this.j=b;this.h=c;this.f=d;this.o=e;this.a=new _.H(Ec);_.mh(this.m)?this.a.warn(_.zb):this.Ka(_.Nc,{licenseUrl:this.m,videoRobustness:[_.lb,void 0],audioRobustness:[_.kb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.fd.bind(this)}});_.mh(this.j)?this.a.warn(_.cb):this.Ka(_.Mc,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.fd.bind(this)}});
243
+ _.mh(this.h)?this.a.warn(_.Ia):_.mh(this.f)?this.a.warn(_.Ha):this.Ka(_.Lc,{licenseUrl:this.h,certificateUrl:this.f,modifiers:{licenseRequest:this.Yf.bind(this),licenseResponse:this.Zf.bind(this),certificateRequest:this.fd.bind(this),extractContentId:this.Cf.bind(this)}})};zo=function(){this.l=null};Ao=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.fd)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
244
+ Bo=function(a){a=a.target;if(a.webkitPresentationMode===Td){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)};Co=function(){return this.webkitSupportsPresentationMode(Td)?(this.webkitSetPresentationMode(Td),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
245
+ Do=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};Eo=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};Fo=function(a,b,c){return new window.TextTrackCue(a,b,c)};
246
+ Go=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};Io=function(a,b,c){if("input"===a)switch(this.type){case "range":a=Ac}Ho.call(this,a,b,c)};Ko=function(){this.a=Jo()};Lo=function(a){return Jo()-a.a};Mo=function(a){var b=new Ko;b.a=a.a;return b};Jo=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.No=function(a){this.f=a;this.a=0};
247
+ _.Oo=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};_.Po=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};Qo=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.g=b;this.f=0};
248
+ Ro=function(a,b){var c=a.f+b.byteLength;if(c>a.a.byteLength){var d=a.a;a.a=new Uint8Array(Math.max(Math.ceil(a.a.buffer.byteLength*a.g),c));a.a.set(d)}a.a.set(b,a.f);a.f+=b.byteLength};_.So=function(a,b,c){this.f=a;this.h=b;this.g=c||this.f.getMedia();this.a=null};_.Uo=function(){this.a=new Blob([To],{type:_.Qe})};_.Wo=function(a,b,c,d){var e,f;return _.A(function(g){if(1==g.a)return _.wf(g,2),_.y(g,Vo(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.yf(g);f.a(_.M);throw f;})};
249
+ Vo=function(a,b,c,d){var e,f,g,h;return _.A(function(l){if(1==l.a){if(d){if(e=_.Xo[d.toLowerCase()])return l["return"](e);_.F("Could not determine manifest type using MIME type ",d)}if(f=_.Yo(a)){if(g=_.Zo[f])return l["return"](g);_.F("Could not determine manifest type for extension ",f)}else _.F("Could not find extension for ",a);return d?l.H(2):_.y(l,$o(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(h=_.Xo[d])return l["return"](h);_.F("Could not determine manifest type using MIME type",d)}throw new _.L(_.M,4,
250
+ 4E3,{url:a});})};$o=function(a,b,c){var d,e,f;return _.A(function(g){if(1==g.a)return d=_.vh(a),th(d,c),d.type=1,d.method="HEAD",_.y(g,b.fetch(d).P,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.Yo=function(a){a=(new _.gi(a)).pa.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()};ap=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.g=new Ko};
251
+ cp=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(bp(a,d),yh(c,d.byteLength,Lo(a.g)),a.g.a=Jo());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 cp(a,b,c)})})};bp=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};
252
+ wi=function(a){var b=a.uris[a.uriIndex],c=new dp,d=new Ko,e=Mo(d),f=0,g=new _.ai;c.open(a.method,b,!0);c.responseType="arraybuffer";c.timeout=a.timeout;c.withCredentials=a.allowCrossSiteCredentials;var h=!1,l=!1;c.onreadystatechange=function(n){n=n.target;n.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!h&&(n=n.getResponseHeader(ta),xh(a,n),h=!0)};c.onload=function(n){n=n.target;var p=(n.getAllResponseHeaders()||"").trim().split("\r\n"),q={};p=_.u(p);for(var r=p.next();!r.done;r=p.next())r=r.value.split(": "),
253
+ q[r[0].toLowerCase()]=r.slice(1).join(": ");try{var w=Lo(e);l||yh(a,n.response?n.response.length:0,w);var x=_.wh(q,n.response,n.status,b,n.responseURL,a,w);a.rateLimitBps?zh(a.rateLimitBps,Lo(e),a.bytesLoaded).then(function(){g.resolve(x)}):g.resolve(x)}catch(B){g.reject(B)}};c.onerror=function(n){n=n.target;if(0>=n.status)g.reject(new _.L(1,1,1002,{url:b,request:a,status:n.status}));else{var p=n.getAllResponseHeaders(),q={};if(p){p=_.u(p.trim().split("\r\n"));for(var r=p.next();!r.done;r=p.next())r=
254
+ r.value.split(": "),q[r[0].toLowerCase()]=r.slice(1).join(": ")}n=_.wh(q,n.response,n.status,b,n.responseURL,a,Lo(e));g.resolve(n)}};c.ontimeout=function(){g.reject(new _.L(1,1,1003,{url:b,request:a}))};c.onprogress=function(n){var p=Lo(d);d.a=Jo();if(100<p||n.lengthComputable&&n.loaded===n.total)yh(a,n.loaded-f,p),f=n.loaded,l=!0};for(var m in a.headers)c.setRequestHeader(m.toLowerCase(),a.headers[m]);c.send(a.body);return{P:g,request:a,abort:function(){c.abort();g.reject(new _.L(1,1,7001,{url:b,
255
+ request:a}));return Promise.resolve()}}};ep=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.h=new Qo(a);this.length=a;this.w=b;this.f=this.a=this.g=0;this.j=null;this.m=-1;this.o=new Ko};
256
+ hp=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,Lo(a.o)),a.o.a=Jo());if(f)return f=fp(a),(f=c(!0,f))?f.then(function(){return a.h.a.buffer}):Promise.resolve(a.h.a.buffer);var g=Promise.resolve();if(null!=e){Ro(a.h,e);a.a=a.g;a.f=a.h.f;a.j=new DataView(a.h.a.buffer,0,a.h.f);e=gp(a);for(f=[];e;)f.push(e),e=gp(a);if(!a.w)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],
257
+ l=h.end-e.start;e={start:e.start,end:h.end,length:l,data:new DataView(a.h.a.buffer,e.start,l),count:f.length}}(f=c(!1,e))&&(g=f)}}return g.then(function(){return hp(a,b,c,d)})})};gp=function(a){if(0<=a.m&&a.f<a.m)return null;for(var b=ip(a);null!==b;){if(b.name===_.td){var c={start:a.g,end:b.end,length:b.end-a.g,data:new DataView(a.h.a.buffer,a.g,b.end-a.g),count:1};a.g=b.end;return c}b=ip(a)}return null};
258
+ ip=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=jp(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=jp(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.j.getUint32(a.a,!1);var f=a.j.getUint32(a.a+4,!1)}catch(g){throw new _.L(_.M,3,3E3);}if(2097151<e)throw new _.L(_.M,3,3E3);a.a+=8;c=e*Math.pow(2,32)+f}c=b+c;a.m=c;return a.f>=c?(a.a=c,{name:d,start:b,end:c}):null};
259
+ jp=function(a){var b=a.j.getUint32(a.a,!1);a.a+=4;return b};fp=function(a){var b=null;a.g!==a.f&&(b={start:a.g,end:a.f,length:a.f-a.g,data:new DataView(a.h.a.buffer,a.g,a.f-a.g),count:-1});return b};lp=function(a){_.bi.call(this,new _.ai,function(){return Promise.resolve()});this.A=a;this.g=null;this.o=this.P;this.f=-1;this.h=this.j=this.m=null;kp(this)};mp=function(a,b,c){a.m=setTimeout(b,c)};
260
+ kp=function(a){a.g=a.A.then(function(e){a.h=e.request;e.request.uriIndex=e.request.currentAttempt%e.request.uris.length;if(0<e.request.currentAttempt){-1===a.f&&(a.f=np(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*np(e.request.fuzzFactor,.5));a.f*=np(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.j=h;mp(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.L(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
261
+ return e.plugin(e.request)});var b=0,c=0,d=0;return a.g.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.P}).then(function(e){a.o.resolve(e)})["catch"](function(e){if(e instanceof _.L){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return kp(a);g&&e.a(_.M);a.o.reject(e)}else a.o.reject(e)})};np=function(a,b){return null===a||void 0===a?b:a};
262
+ xi=function(a){var b=new op,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new pp,e={Rc:!1,sg:!1};b={P:qp(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.Rc||(e.Rc=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.sg=!0;d.abort()},a);b.P=b.P["finally"](function(){window.clearTimeout(f)})}return b};
263
+ qp=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,r,w,x,B,D,E;return _.A(function(G){switch(G.a){case 1:return e=rp,h=new Ko,l=Mo(h),_.wf(G,2),_.y(G,e(a,c),4);case 4:f=G.f;m=f.headers.get(ta);xh(b,m);n=m?parseInt(m,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return r=f.body.getReader(),w=new ep(n,!b.disableMergedFragments),x=function(I,O){if(d.Rc)return null;O&&O.data&&(yh(b,O.data.byteLength,Lo(h)),h.a=Jo());return b.onFragment&&O?b.rateLimitBps?zh(b.rateLimitBps,Lo(l),b.bytesLoaded).then(function(){return b.onFragment(O)}):
264
+ b.onFragment(O):null},_.y(G,hp(w,r,x,b.onProgress),10);p=f.body.getReader();q=new ap(n);return _.y(G,cp(q,p,b),7);case 7:g=G.f;if(!b.rateLimitBps){G.H(6);break}return _.y(G,zh(b.rateLimitBps,Lo(l),g.byteLength),6);case 10:g=G.f;case 6:_.xf(G,3);break;case 2:B=_.yf(G);if(d.Rc)throw new _.L(1,1,7001,{url:a,request:b});if(d.sg)throw new _.L(1,1,1003,{url:a,request:b});_.Qf("Error while fetching data:",B);throw new _.L(1,1,1002,{url:a,error:B,request:b,status:-1},B);case 3:D={};E=f.headers;E.forEach(function(I,
265
+ O){D[O.trim()]=I});if(d.Rc)throw new _.L(1,1,7001,{url:a,request:b});return G["return"](_.wh(D,g,f.status,a,f.url,b,Lo(l)))}})};si=function(a){try{var b=a.uris[a.uriIndex],c=_.sp(b);return{P:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{P:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
266
+ _.sp=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Qf("Bad data URI, failed to parse scheme"),new _.L(_.M,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Qf("Bad data URI, failed to extract encoding and MIME type"),new _.L(_.M,1,1004,{uri:a});var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"===b[b.length-1]&&(d=!0,b.pop());return{data:d?_.wj(a).buffer:_.eh(a).buffer,contentType:c}};_.up=function(a){delete _.tp[a]};
267
+ _.wp=function(a){a=a.getConfiguration();a=_.K.Ma(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.se?a.backgroundColor:null;this.Y=typeof a.windowColor===_.se?a.windowColor:null;this.T=typeof a.fontColor===_.se?a.fontColor:null;this.U=typeof a.fontFamily===_.se?a.fontFamily:null;this.I=typeof a.fontSize===_.se?a.fontSize:null;this.B=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.G=typeof a.edgeColor===_.se?a.edgeColor:"rgba(0, 0, 0, 1)";this.A=_.vp;typeof a.edgeType===
268
+ _.se&&(this.A=a.edgeType)};_.Bp=function(a){var b=_.Fd,c=a.G;switch(a.A){case xp:b="-2px -2px 0 "+c+", -1px -1px 0 "+c;break;case yp:b="2px 2px 0 "+c+", 1px 1px 0 "+c;break;case zp:b="-1px 0 "+c+", 0 1px "+c+", 1px 0 "+c+", 0 -1px "+c;break;case Ap:b="2px 2px 3px "+c+", 2px 2px 4px "+c+", 2px 2px 5px "+c}return b};Cp=function(a){this.g=a;this.a=null;this.f=new _.H("clpp.text.Mp4TextParser")};
269
+ _.Ep=function(a){_.wp.call(this,a);this.j=a.getSurface().getMedia();this.f="clpp-video-"+Dp++;this.g=document.createElement(_.ue);this.h=this.m=!1;_.Ym(this.j,this.f);document.head.appendChild(this.g);this.ob()};Fp=function(){};_.Gp=function(){};kf=typeof Object.create==_.fd?Object.create:function(a){function b(){}b.prototype=a;return new b};
270
+ if(typeof Object.setPrototypeOf==_.fd)Hp=Object.setPrototypeOf;else{var Ip;a:{var Jp={xg:!0},Kp={};try{Kp.__proto__=Jp;Ip=Kp.xg;break a}catch(a){}Ip=!1}Hp=Ip?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
271
+ var lf=Hp,pf=typeof Object.defineProperties==_.fd?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},nf="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;qf.prototype.toString=function(){return this.a};var of=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new qf("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
272
+ tf.prototype.w=function(a){this.f=a};tf.prototype["return"]=function(a){this.g={"return":a};this.a=this.j};tf.prototype.H=function(a){this.a=a};
273
+ Ff("Promise",function(a){function b(g){this.f=0;this.j=void 0;this.a=[];var h=this.g();try{g(h.resolve,h.reject)}catch(l){h.reject(l)}}function c(){this.a=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.f=function(g){if(null==this.a){this.a=[];var h=this;this.g(function(){h.j()})}this.a.push(g)};var e=nf.setTimeout;c.prototype.g=function(g){e(g,0)};c.prototype.j=function(){for(;this.a&&this.a.length;){var g=this.a;this.a=[];for(var h=0;h<g.length;++h){var l=
274
+ g[h];g[h]=null;try{l()}catch(m){this.h(m)}}}this.a=null};c.prototype.h=function(g){this.g(function(){throw g;})};b.prototype.g=function(){function g(m){return function(n){l||(l=!0,m.call(h,n))}}var h=this,l=!1;return{resolve:g(this.B),reject:g(this.h)}};b.prototype.B=function(g){if(g===this)this.h(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.C(g);else{a:switch(typeof g){case _.Gd:var h=null!=g;break a;case _.fd:h=!0;break a;default:h=!1}h?this.A(g):this.m(g)}};
275
+ b.prototype.A=function(g){var h=void 0;try{h=g.then}catch(l){this.h(l);return}typeof h==_.fd?this.D(h,g):this.m(g)};b.prototype.h=function(g){this.o(2,g)};b.prototype.m=function(g){this.o(1,g)};b.prototype.o=function(g,h){if(0!=this.f)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.f);this.f=g;this.j=h;this.w()};b.prototype.w=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.C=function(g){var h=this.g();
276
+ g.pd(h.resolve,h.reject)};b.prototype.D=function(g,h){var l=this.g();try{g.call(h,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,h){function l(q,r){return typeof q==_.fd?function(w){try{m(q(w))}catch(x){n(x)}}:r}var m,n,p=new b(function(q,r){m=q;n=r});this.pd(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.pd=function(g,h){function l(){switch(m.f){case 1:g(m.j);break;case 2:h(m.j);break;default:throw Error("Unexpected state: "+
277
+ 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).pd(h,l)})};b.all=function(g){var h=_.u(g),l=h.next();return l.done?d([]):new b(function(m,n){function p(w){return function(x){q[w]=x;r--;0==r&&m(q)}}var q=[],r=0;do q.push(void 0),r++,d(l.value).pd(p(q.length-1),n),l=h.next();while(!l.done)})};return b});var Hf=this||self;
278
+ Hf.a=!0;_.K={wg:20,Ma:function(a){var b=_.K.R,c=_.K.Mf,d=_.K.Va;return b(a)||c(a)?a:d(a)}};_.C("clpp.utils.obj.cloneItem",_.K.Ma);_.K.Va=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];c={};for(var d=0;d<b.length;d++)null!=b[d]&&(c=_.K.Pf(c,{merging:b[d]},1));return c.merging||null};_.C("clpp.utils.obj.merge",_.K.Va);
279
+ _.K.Pf=function(a,b,c){var d=_.K.R,e=_.K.Mf,f=_.K.Pf,g=_.K.jb,h=_.K.vi,l=_.K.pi,m=_.K.ni,n=_.K.Gc;c+=1;if(d(a)||!n(a))a={};for(var p in b)n=b[p],e(n)||d(n)||g(n)||m(n)?a[p]=n:h(n)?a[p]=n.subarray(0):n instanceof Array?a[p]=f([],n,c):!d(n)&&l(n)&&c<_.K.wg&&(a[p]=f(a[p],n,c));return a};_.K.Mf=function(a){a=typeof a;return a===_.se||a===_.k||a===_.pc};_.K.ni=function(a){return a instanceof Element};_.K.R=function(a){return null===a||"undefined"===typeof a};_.K.Gc=function(a){return typeof a===_.Gd};
280
+ _.K.jb=function(a){return typeof a===_.fd};_.K.Z=function(a){return typeof a===_.se};_.K.oa=function(a){return typeof a===_.k};_.K.Kf=function(a){return typeof a===_.pc};_.K.vi=function(a){var b=_.K.Gc,c=_.K.jb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};_.K.pi=function(a){var b=_.K.Gc,c=_.K.R;return!c(a)&&b(a)&&a.constructor===Object};
281
+ _.K.va=function(a,b,c,d){if(a===b||null===a&&null===b||void 0===a&&void 0===b)return!0;if(null===a&&null!==b||null!==a&&null===b||void 0!==a&&void 0===b||void 0===a&&void 0!==b||!_.K.Gc(a)||!_.K.Gc(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var h=e[g];if(_.K.R(d)||0>d.indexOf(h))if(f[h]=!0,a[h]!==b[h])return!1}if(_.K.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.K.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
282
+ _.K.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.K.oi=function(a,b,c){return a>=b&&a<=c};_.K.ef=function(a){for(var b=new Map,c=_.u(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.K.ff=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};var Lf={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.C("clpp.log.Level",Lf);var Jf=3,If={},Lp=[];_.C("clpp.log.getLoggers",function(){return _.K.Ma(If)});_.C("clpp.log.addInterceptor",function(a){a&&Lp.push(a)});_.C("clpp.log.removeInterceptor",function(a){a&&(a=Lp.indexOf(a),0<=a&&Lp.splice(a,1))});_.C("clpp.log.getTagLevel",Kf);_.C("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=If[a]});_.C("clpp.log.setTagLevel",function(a,b){a&&(_.K.Z(b)&&(b=Mf(b)),If[a]=b)});
283
+ _.C("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.K.Z(a)&&(a=Mf(a));Jf=a});_.C("clpp.log.getLogLevel",function(){return Jf});_.t=_.H.prototype;
284
+ _.t.log=function(a,b){if(window.console){if(1<arguments.length){var c=arguments[0];Array.prototype.shift.call(arguments)}else c=3;var d=Kf(this.a);if(0<=d){if(d<c)return}else if(Jf<c)return;this.a&&Array.prototype.unshift.call(arguments,"["+this.a+"]");d=new Date;d.toISOString&&(d=d.toISOString().substring(11).replace("Z",""),Array.prototype.unshift.call(arguments,d));4===c?console.log.apply(console,arguments):3===c?console.info.apply(console,arguments):2===c?console.warn.apply(console,arguments):
285
+ 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.u(Lp);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.t.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.t.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.t.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
286
+ _.t.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.t.Rh=function(a){return a?this.a?new _.H(this.a+"."+a):new _.H(a):this};_.C("clpp.log.Logger",_.H);_.H.prototype.createChild=_.H.prototype.Rh;_.H.prototype.error=_.H.prototype.error;_.H.prototype.warn=_.H.prototype.warn;_.H.prototype.debug=_.H.prototype.debug;_.H.prototype.info=_.H.prototype.info;_.H.prototype.log=_.H.prototype.log;var Nf=new _.H("clpp");_.C("clpp.log.info",_.Of);
287
+ _.C("clpp.log.debug",_.Pf);_.C("clpp.log.warn",_.F);_.C("clpp.log.error",_.Qf);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.Uf=new _.H("clpp.players");_.Tf={};_.Wf.prototype.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.Wf.prototype.get=function(a){return(a=this.a[a])?a.slice():[]};_.Wf.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};_.Wf.prototype.clear=function(){this.a={}};Yf.prototype.Sb=function(a){try{this.xc.handleEvent?this.xc.handleEvent(a):this.xc.call(this.a,a)}catch(b){_.Qf("clpp","Uncaught exception in event handler for event '"+this.f+"'",b,b?b.message:null,b?b.stack:null)}};_.J.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.J.prototype.stopImmediatePropagation=function(){this.f=!0};_.J.prototype.stopPropagation=function(){};_.t=Zf.prototype;
288
+ _.t.trigger=function(a){var b=this.a.get(a.type);if(b)for(var c=0;c<b.length&&(a.target=this.f,a.currentTarget=this.f,b[c].Sb(a),b[c].yj&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.t.on=function(a,b,c){this.a.push(a,new Yf(a,b,c||this.f));return b};_.t.one=function(a,b,c){this.a.push(a,new Yf(a,b,c||this.f,!0));return b};_.t.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].xc===b&&(d=this.a.remove(a,c[e])||d);return d};_.t.clear=function(){this.a.clear()};
289
+ _.C("clpp.EventBus",Zf);Zf.prototype.clear=Zf.prototype.clear;Zf.prototype.off=Zf.prototype.off;Zf.prototype.one=Zf.prototype.one;Zf.prototype.on=Zf.prototype.on;Zf.prototype.trigger=Zf.prototype.trigger;_.bg.prototype.release=function(){_.eg(this)};_.bg.prototype.on=function(a,b,c,d){a=new fg(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.bg.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)};_.bg.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||(dg(f),this.a.remove(b,f))}};gg.prototype.release=function(){this.f.release();this.g=[];this.a=null};gg.prototype.destroy=function(){var a=this;return _.A(function(b){a.release();a.j=null;a.h=null;_.z(b)})};gg.prototype.getTimelineCues=function(){return this.g};_.C("clpp.text.Cue",_.wg);_.wg.positionAlign={LEFT:_.od,RIGHT:_.pd,CENTER:_.yc,AUTO:"auto"};_.qg=_.ze;_.wg.payloadType={TEXT:_.qg,VTT_XML:_.Ve,TTML_XML:_.Ee};_.rg=_.yc;_.Mp={LEFT:_.ld,RIGHT:_.fe,CENTER:_.rg,START:_.ld,END:_.fe};_.wg.textAlign=_.Mp;var vg="ltr";_.wg.direction={HORIZONTAL_LEFT_TO_RIGHT:vg,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.sg="horizontal-tb";_.wg.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.sg,VERTICAL_LEFT_TO_RIGHT:_.Me,VERTICAL_RIGHT_TO_LEFT:_.Ne};_.tg=0;
290
+ _.wg.lineInterpretation={LINE_NUMBER:_.tg,PERCENTAGE:1};_.ug=_.ne;_.Np={CENTER:_.yc,START:_.ug,END:_.bd};_.wg.lineAlign=_.Np;_.C("clpp.text.CueRegion",_.zg);_.xg=1;_.zg.units={PX:0,PERCENTAGE:_.xg,LINES:2};var yg="";_.zg.scrollMode={NONE:yg,UP:"up"};_.zg.displayAlign={BEFORE:"flex-end",CENTER:_.yc,AFTER:"flex-start"};_.zg.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Jc,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};Ag.prototype.destroy=function(){this.a.release();this.h=!1;this.j=this.a=this.g=this.f=null;return Promise.resolve()};Ag.prototype.start=function(a){var b=this;this.h?this.m.warn("Already started. Ignoring request..."):(this.h=!0,this.g=a,this.f=this.g.textTracks,this.a.on(this.f,_.Sb,function(c){return Bg(b,c)}),this.a.on(this.f,Ac,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.ie&&(e.mode=_.hd)}}))};
291
+ Ag.prototype.o=function(a){var b=new _.wg(a.startTime,a.endTime,a.text,_.Ve);if(_.K.Z(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Me;break;case "rl":b.writingMode=_.Ne}_.K.oa(a.size)&&(b.size=a.size);if(_.K.Z(a.align))switch(a.align){case _.ld:case _.ne:b.textAlign=_.ld;break;case _.yc:b.textAlign=_.rg;break;case _.fe:case _.bd:b.textAlign=_.fe}_.K.oa(a.position)&&(b.position=a.position);if(_.K.Z(a.positionAlign))switch(a.positionAlign){case _.od:b.positionAlign=_.od;break;case _.yc:b.positionAlign=
292
+ _.yc;break;case _.pd:b.positionAlign=_.pd}_.K.oa(a.line)&&(b.line=a.line);if(_.K.Z(a.lineAlign))switch(a.lineAlign){case _.ne:b.lineAlign=_.ug;break;case _.yc:b.lineAlign=_.yc;break;case _.bd:b.lineAlign=_.bd}_.K.Kf(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.tg:1);return b};_.v(_.L,Error);_.L.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=Cg(this.severity,this.category,this.code,this.data))};_.L.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.C("clpp.Error",_.L);_.M=2;_.L.Severity={RECOVERABLE:1,FATAL:_.M};_.L.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
293
+ _.L.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,UNKNOWN_DATA_URI_ENCODING:1005,REQUEST_MODIFIER_ERROR:1006,RESPONSE_MODIFIER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,FETCH_OR_APPEND_ERROR:2010,INVALID_MP4:2011,
294
+ TEXT_PARSER_MISSING:2012,THUMBNAILS_FAILED_TO_LOAD:2013,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,
295
+ 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,
296
+ 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,
297
+ 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,INVALID_STREAMS_CHOSEN:5005,NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,
278
298
  FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,REQUESTED_DRM_ENVIRONMENT_UNAVAILABLE:6015,INIT_DATA_TRANSFORM_ERROR:6016,CERTIFICATE_REQUEST_FAILED:6100,NO_CONTENT_ID:6101,SERVER_CERTIFICATE_REQUIRED:6102,EXTRACT_CONTENT_ID_MODIFIER_ERROR:6103,
279
- 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,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,
280
- CONVIVA_RUNTIME_ERROR:9002,GL_CONTEXT_ERROR:9003,GL_SHADER_ERROR:9004,YOUBORA_SDK_MISSING:9100,YOUBORA_INVALID_CONFIGURATION:9101,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,BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3};var Cg;_.zg.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.A("clpp.Track",_.zg);_.zg.prototype.toString=_.zg.prototype.toString;_.A("clpp.Rendition",_.Gg);_.Eg=1;_.Bg=_.Ie;_.N=_.$b;_.L=_.te;Cg=_.pd;_.ip={VIDEO:_.Bg,AUDIO:_.N,TEXT:_.L,Yj:Cg};_.zg.Type=_.ip;_.h=_.P.prototype;_.h.bi=function(a){return this.getVideoTracks().find(function(b){return _.H.Ja(b,a,a&&Object.keys(a))})};_.h.Yh=function(a){return this.getAudioTracks().find(function(b){return _.H.Ja(b,a,a&&Object.keys(a))})};_.h.$h=function(a){return this.ea().find(function(b){return _.H.Ja(b,a,a&&Object.keys(a))})};_.h.ai=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.H.Ja(b,a,a&&Object.keys(a))})};
281
- _.h.Xh=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.H.Ja(b,a,a&&Object.keys(a))})};_.h.Zh=function(a){return this.ea().flatMap(function(b){return b.renditions}).find(function(b){return _.H.Ja(b,a,a&&Object.keys(a))})};_.A("clpp.TrackManager",_.P);_.P.prototype.isAbrEnabled=_.P.prototype.ka;_.P.prototype.addTextTrack=_.P.prototype.addTextTrack;_.P.prototype.findTextRendition=_.P.prototype.Zh;_.P.prototype.findAudioRendition=_.P.prototype.Xh;
282
- _.P.prototype.findVideoRendition=_.P.prototype.ai;_.P.prototype.findTextTrack=_.P.prototype.$h;_.P.prototype.findAudioTrack=_.P.prototype.Yh;_.P.prototype.findVideoTrack=_.P.prototype.bi;_.P.prototype.setTextRendition=_.P.prototype.hb;_.P.prototype.setAudioRendition=_.P.prototype.gb;_.P.prototype.setVideoRendition=_.P.prototype.Va;_.P.prototype.setTextTrack=_.P.prototype.ua;_.P.prototype.setAudioTrack=_.P.prototype.na;_.P.prototype.setVideoTrack=_.P.prototype.Wa;_.P.prototype.getTextTrack=_.P.prototype.ja;
283
- _.P.prototype.getAudioTrack=_.P.prototype.ia;_.P.prototype.getVideoTrack=_.P.prototype.Da;_.P.prototype.getLoadingTextRendition=_.P.prototype.$a;_.P.prototype.getLoadingAudioRendition=_.P.prototype.Za;_.P.prototype.getLoadingVideoRendition=_.P.prototype.Pa;_.P.prototype.getTextRendition=_.P.prototype.Ca;_.P.prototype.getAudioRendition=_.P.prototype.Aa;_.P.prototype.getVideoRendition=_.P.prototype.fa;_.P.prototype.getTextTracks=_.P.prototype.ea;_.P.prototype.getAudioTracks=_.P.prototype.getAudioTracks;
284
- _.P.prototype.getVideoTracks=_.P.prototype.getVideoTracks;var Kg=function jp(a){var c;return _.zf(jp,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.v(d,c,3):d.H(0);c++;return d.H(2)})};_.A("clpp.utils.BufferUtils",Ig);Ig.toArrayBuffer=Rg;Ig.toDataView=_.Qg;Ig.toInt32Array=_.Pg;Ig.toUint32Array=Og;Ig.toUint16Array=Ng;Ig.toUint8Array=_.Q;Ig.equal=Lg;var Ug=new _.D("clpp.utils.strings");_.A("clpp.utils.strings.fromUtf8",_.Tg);_.A("clpp.utils.strings.fromBytesAutoDetect",_.Wg);_.A("clpp.utils.strings.toUtf8",_.Xg);_.A("clpp.utils.strings.toUtf16",_.Yg);_.A("clpp.utils.strings.toByteArray",_.Zg);_.A("clpp.utils.strings.startsWith",_.$g);_.A("clpp.utils.strings.endsWith",_.ah);
285
- _.A("clpp.utils.strings.bitrateToString",function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.H.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""}});
286
- _.A("clpp.utils.strings.durationToString",function(a,b){function c(k){return function(l,m){return d(k,m.length-1)}}function d(k,l){return k.length<l?d("0"+k,l):k}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)))});
287
- _.A("clpp.utils.strings.hashCode",function(a){var b=0;if(0===a.length)return b;for(var c=0;c<a.length;c++)b=(b<<5)-b+a.charCodeAt(c),b|=0;return b});var dh=document.createElement("span");_.A("clpp.net.makeRequest",_.ih);_.hh=6;_.A("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.hh});_.oh.prototype.$=function(a){return ph(this,a,!1)};_.oh.prototype.Ya=function(a){return ph(this,a,!0)};_.oh.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.qh.prototype.Re=function(){this.stop();this.f();return this};_.qh.prototype.$=function(a){var b=this;this.stop();this.a=(new _.oh(function(){b.f()})).$(a);return this};_.qh.prototype.Ya=function(a){var b=this;this.stop();this.a=(new _.oh(function(){b.f()})).Ya(a);return this};_.qh.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.A("clpp.utils.Timer",_.qh);_.qh.prototype.stop=_.qh.prototype.stop;_.qh.prototype.tickEvery=_.qh.prototype.Ya;_.qh.prototype.tickAfter=_.qh.prototype.$;
288
- _.qh.prototype.tickNow=_.qh.prototype.Re;_.rh=[];var wh=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",
289
- "cs"],["dan","da"],["deu","de"],[_.Mc,"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",
299
+ FAILED_TO_PERSIST_SESSION:6200,FAILED_TO_REMOVE_SESSION:6201,INVALID_SESSION_STORAGE_IMPLEMENTATION:6202,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,CANNOT_LOAD_SOURCE:7003,MEDIA_ELEMENT_NOT_FOUND:7004,INVALID_MEDIA_ELEMENT:7005,INVALID_CONTAINER_ELEMENT:7006,INVALID_CONFIGURATION:7100,INVALID_LICENSE:7101,NO_ELEMENT:7102,USER_ID_NOT_PROVIDED:7103,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,
300
+ ALREADY_CASTING:8003,NO_CAST_SESSION:8004,CONVIVA_SDK_NOT_LOADED:9E3,CONVIVA_INVALID_CONFIGURATION:9001,CONVIVA_RUNTIME_ERROR:9002,GL_CONTEXT_ERROR:9003,GL_SHADER_ERROR:9004,YOUBORA_SDK_MISSING:9100,YOUBORA_INVALID_CONFIGURATION:9101,YOUBORA_SDK_VERSION_NOT_SUPPORTED:9102,VIMOND_INVALID_CONFIGURATION:9200,VIMOND_SESSION_ERROR:9201,MUXDATA_INVALID_CONFIGURATION:9300,MUX_SDK_MISSING:9301,MUXDATA_INIT_ERROR:9302,IMA_SDK_MISSING:1E4,IMA_INVALID_CONFIGURATION:10001,IMA_UNSUPPORTED_PLATFORM:10002,AD_ERROR:10003,
301
+ BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3};var Jg;_.Gg.prototype.va=function(a){return this.type===a.type&&this.channelsCount===a.channelsCount&&this.frameRate===a.frameRate&&this.kind===a.kind&&this.label===a.label&&this.language===a.language&&this.mimeType===a.mimeType&&Fg(this.roles,a.roles)&&Fg(this.accessibility,a.accessibility,Ng)};_.Gg.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.C("clpp.Track",_.Gg);_.Gg.prototype.toString=_.Gg.prototype.toString;
302
+ _.C("clpp.Rendition",_.Og);_.Lg=1;_.Ig=_.Oe;_.P=_.gc;_.N=_.ze;Jg=_.wd;_.Op={VIDEO:_.Ig,AUDIO:_.P,TEXT:_.N,METADATA:Jg};_.Gg.Type=_.Op;_.t=_.Q.prototype;_.t.Zh=function(a){return this.getVideoTracks().find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};_.t.Vh=function(a){return this.getAudioTracks().find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};_.t.Xh=function(a){return this.ea().find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};_.t.Yh=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};
303
+ _.t.Uh=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};_.t.Wh=function(a){return this.ea().flatMap(function(b){return b.renditions}).find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};_.C("clpp.TrackManager",_.Q);_.Q.prototype.isAbrEnabled=_.Q.prototype.ha;_.Q.prototype.addTextTrack=_.Q.prototype.addTextTrack;_.Q.prototype.findTextRendition=_.Q.prototype.Wh;_.Q.prototype.findAudioRendition=_.Q.prototype.Uh;
304
+ _.Q.prototype.findVideoRendition=_.Q.prototype.Yh;_.Q.prototype.findTextTrack=_.Q.prototype.Xh;_.Q.prototype.findAudioTrack=_.Q.prototype.Vh;_.Q.prototype.findVideoTrack=_.Q.prototype.Zh;_.Q.prototype.setTextRendition=_.Q.prototype.mb;_.Q.prototype.setAudioRendition=_.Q.prototype.lb;_.Q.prototype.setVideoRendition=_.Q.prototype.Za;_.Q.prototype.setTextTrack=_.Q.prototype.Ba;_.Q.prototype.setAudioTrack=_.Q.prototype.ra;_.Q.prototype.setVideoTrack=_.Q.prototype.$a;_.Q.prototype.getTextTrack=_.Q.prototype.la;
305
+ _.Q.prototype.getAudioTrack=_.Q.prototype.ka;_.Q.prototype.getVideoTrack=_.Q.prototype.Ia;_.Q.prototype.getLoadingTextRendition=_.Q.prototype.fb;_.Q.prototype.getLoadingAudioRendition=_.Q.prototype.eb;_.Q.prototype.getLoadingVideoRendition=_.Q.prototype.Ta;_.Q.prototype.getTextRendition=_.Q.prototype.Ga;_.Q.prototype.getAudioRendition=_.Q.prototype.Fa;_.Q.prototype.getVideoRendition=_.Q.prototype.fa;_.Q.prototype.getTextTracks=_.Q.prototype.ea;_.Q.prototype.getAudioTracks=_.Q.prototype.getAudioTracks;
306
+ _.Q.prototype.getVideoTracks=_.Q.prototype.getVideoTracks;var Sg=function Pp(a){var c;return _.Ef(Pp,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.y(d,c,3):d.H(0);c++;return d.H(2)})};_.C("clpp.utils.BufferUtils",Qg);Qg.toArrayBuffer=Zg;Qg.toDataView=_.Yg;Qg.toInt32Array=_.Xg;Qg.toUint32Array=Wg;Qg.toUint16Array=Vg;Qg.toUint8Array=_.R;Qg.equal=Tg;var bh=new _.H("clpp.utils.strings");_.C("clpp.utils.strings.fromUtf8",_.ah);_.C("clpp.utils.strings.fromBytesAutoDetect",_.dh);_.C("clpp.utils.strings.toUtf8",_.eh);_.C("clpp.utils.strings.toUtf16",_.fh);_.C("clpp.utils.strings.toByteArray",_.gh);_.C("clpp.utils.strings.startsWith",_.hh);_.C("clpp.utils.strings.endsWith",_.ih);_.C("clpp.utils.strings.bitrateToString",_.nh);
307
+ _.C("clpp.utils.strings.durationToString",function(a,b){function c(h){return function(l,m){return d(h,m.length-1)}}function d(h,l){return h.length<l?d("0"+h,l):h}b=void 0===b?"%h:%mm:%ss":b;if(null===a||void 0===a)a=0;if(null===b||void 0===b)b="%h:%mm:%ss";var e=Math.floor(a/3600),f=Math.floor((a-3600*e)/60),g=Math.floor(a-3600*e-60*f);return b.replace(/(%h+)/,c(String(e))).replace(/(%m+)/,c(String(f))).replace(/(%s+)/,c(String(g)))});
308
+ _.C("clpp.utils.strings.hashCode",function(a){var b=0;if(0===a.length)return b;for(var c=0;c<a.length;c++)b=(b<<5)-b+a.charCodeAt(c),b|=0;return b});var ph=document.createElement("span");var rh=[403,401];_.C("clpp.net.DEFAULT_FATAL_STATUS_CODES",rh);_.C("clpp.net.makeRequest",_.vh);_.uh=6;_.C("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.uh});_.Ah.prototype.$=function(a){return Bh(this,a,!1)};_.Ah.prototype.ab=function(a){return Bh(this,a,!0)};_.Ah.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.Ch.prototype.Ye=function(){this.stop();this.f();return this};_.Ch.prototype.$=function(a){var b=this;this.stop();this.a=(new _.Ah(function(){b.f()})).$(a);return this};_.Ch.prototype.ab=function(a){var b=this;this.stop();this.a=(new _.Ah(function(){b.f()})).ab(a);return this};_.Ch.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.C("clpp.utils.Timer",_.Ch);_.Ch.prototype.stop=_.Ch.prototype.stop;_.Ch.prototype.tickEvery=_.Ch.prototype.ab;_.Ch.prototype.tickAfter=_.Ch.prototype.$;
309
+ _.Ch.prototype.tickNow=_.Ch.prototype.Ye;_.Dh=[];var Ih=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze",
310
+ "cs"],["dan","da"],["deu","de"],[_.Tc,"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",
290
311
  "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",
291
312
  "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",
292
313
  "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",
293
- "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);_.kp=(new Map).set(_.Bc,_.Bc).set("frameRate","framerate").set("bandwidth","bitrate").set(_.Xe,_.Xe).set(_.$c,_.$c).set("channelsCount","channels");_.u(zh,_.P);_.h=zh.prototype;
294
- _.h.Ee=function(a,b){if(b){var c=b.track;if(c){var d=this.h.find(function(l){return Bh(l,c,a)});if(d)this.a.warn("Track from event already exists",c,d);else{var e=Fg(a,c),f=Mh(c);if(a===_.L){if(c.kind===_.pd)return;var g;void 0!==c.id?g=this.m[c.id]:g=Object.values(this.m).find(function(l){return Bh(e,l,a)});e.kind&&"captions"===e.kind&&(e.mimeType=_.Rb);g&&(e.src=g.url,e.mimeType=g.mimeType)}else if(d=this.h.find(function(l){return l.type===a&&_.H.Ja(l,e,["kind","label","language"])})){d.id=c.id;
295
- f&&(this.a.debug(jb+a+" track active"),this.f.set(a,d));this.a.debug("Track from event seems to already exists, flipped native track to",c);return}try{e.renditions.push(new _.Gg(e.id,e));this.h.push(e);this.a.debug(a+" Track added",e);this.l.trigger(new _.E(_.lp));var k=Gh(this,a).length;d=a===_.Bg||a===_.N;if(f||1===k&&d)this.a.debug(jb+a+" track active. Native track active: "+(f+". Number of tracks: ")+k,c),this.f.set(a,e)}catch(l){this.a.error("Error while converting track data",l)}}}else this.a.warn(Va)}else this.a.warn(Ua)};
296
- _.h.Ge=function(a,b){if(b){var c=b.track;if(!c)this.a.warn(Va);else if(a===_.L&&c.kind!==_.pd){var d=this.h.find(function(e){return Bh(e,c,a)});d&&(this.h.splice(this.h.indexOf(d),1),(this.f.get(a)||null)===d&&(this.f.set(a,null),Ah(this)),this.a.debug(a+" Track removed, id: ",d.id))}}else this.a.warn(Ua)};
297
- _.h.Fe=function(a,b){this.a.debug(a+" Track changed",b);a===_.L&&Ah(this);var c=Fh(this,a);if(c)for(var d={oc:0};d.oc<c.length;d={oc:d.oc},++d.oc)if(Mh(c[d.oc])){if(d=this.h.find(function(e){return function(f){return Bh(f,c[e.oc],a)}}(d)))this.f.set(a,d),this.a.debug("Track change detected, id:",d.id),d===this.j.get(a)&&this.j.set(a,null),a===_.N?this.l.trigger(new _.E(_.Jh)):a===_.L&&this.l.trigger(new _.E(_.Kh));break}};_.h.Fb=function(a){this.l=a};
298
- _.h.load=function(){this.o=!1;var a=Eh(this,_.L);a&&(this.g.on(a,_.Lb,this.G),this.g.on(a,Yd,this.J),this.g.on(a,sc,this.I));if(a=Eh(this,_.N))this.g.on(a,_.Lb,this.B),this.g.on(a,Yd,this.D),this.g.on(a,sc,this.C);if(a=Eh(this,_.Bg))this.g.on(a,_.Lb,this.K),this.g.on(a,Yd,this.O),this.g.on(a,sc,this.M);this.g.one(this.l,mc,this.Ah.bind(this))};_.h.release=function(){this.o=!0;this.h=[];this.m={};this.f.clear();this.j.clear();this.g.release()};_.h.destroy=function(){this.release();this.l=null};
299
- _.h.getVideoTracks=function(){return Gh(this,_.Bg)};_.h.getAudioTracks=function(){return Gh(this,_.N)};_.h.ea=function(){return Gh(this,_.L)};_.h.fa=function(){return Hh(this,_.Bg)};_.h.Aa=function(){return Hh(this,_.N)};_.h.Ca=function(){return Hh(this,_.L)};_.h.Pa=function(){return Ih(this,_.Bg)};_.h.Za=function(){return Ih(this,_.N)};_.h.$a=function(){return Ih(this,_.L)};_.h.Da=function(){return this.f.get(_.Bg)||null};_.h.ia=function(){return this.f.get(_.N)||null};
300
- _.h.ja=function(){return this.f.get(_.L)||null};_.h.Wa=function(a){Lh(this,_.Bg,a)};_.h.na=function(a){Lh(this,_.N,a)};_.h.ua=function(a){Lh(this,_.L,a)};_.h.Va=function(a){Lh(this,_.Bg,a&&a.track)};_.h.gb=function(a){Lh(this,_.N,a&&a.track)};_.h.hb=function(a){Lh(this,_.L,a&&a.track)};_.h.addTextTrack=function(a){var b=this,c;return _.z(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.w++,b.m[c]=a,Ch(b,a,c),d.H(0)):_.v(d,Dh(b,a),0)})};
301
- _.h.Ah=function(){var a=this,b,c,d;return _.z(function(e){if(1==e.a){b=a.l.getConfiguration();Nh(a,_.N,b.preferredAudioLanguage);c=Fh(a,_.L);if(c.some(function(f){return Mh(f)}))return e.H(2);d=Eh(a,_.L);return _.v(e,new Promise(function(f){a.g.one(d,sc,f);(new _.qh(f)).$(1)}),2)}if(a.o)return e["return"]();Nh(a,_.L,b.preferredTextLanguage);_.w(e)})};_.h.ka=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};zh.prototype.isAbrEnabled=zh.prototype.ka;
302
- zh.prototype.addTextTrack=zh.prototype.addTextTrack;zh.prototype.setTextRendition=zh.prototype.hb;zh.prototype.setAudioRendition=zh.prototype.gb;zh.prototype.setVideoRendition=zh.prototype.Va;zh.prototype.setTextTrack=zh.prototype.ua;zh.prototype.setAudioTrack=zh.prototype.na;zh.prototype.setVideoTrack=zh.prototype.Wa;zh.prototype.getTextTrack=zh.prototype.ja;zh.prototype.getAudioTrack=zh.prototype.ia;zh.prototype.getVideoTrack=zh.prototype.Da;zh.prototype.getLoadingTextRendition=zh.prototype.$a;
303
- zh.prototype.getLoadingAudioRendition=zh.prototype.Za;zh.prototype.getLoadingVideoRendition=zh.prototype.Pa;zh.prototype.getTextRendition=zh.prototype.Ca;zh.prototype.getAudioRendition=zh.prototype.Aa;zh.prototype.getVideoRendition=zh.prototype.fa;zh.prototype.getTextTracks=zh.prototype.ea;zh.prototype.getAudioTracks=zh.prototype.getAudioTracks;zh.prototype.getVideoTracks=zh.prototype.getVideoTracks;_.h=_.Oh.prototype;_.h.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(nb);};_.h.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(nb);};_.h.lb=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)};_.h.ra=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
304
- _.h.ac=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};
305
- _.h.xa=function(a,b){b=void 0===b?!1:b;if(!this.length||1===this.length&&1E-6>this.end(0)-this.start(0))return 0;var c=0;if(b){var d=this.ra();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};_.A("clpp.BufferInfo",_.Oh);_.Oh.prototype.bufferedAheadOf=_.Oh.prototype.xa;_.Oh.prototype.isBuffered=_.Oh.prototype.ac;_.Oh.prototype.bufferEnd=_.Oh.prototype.ra;_.Oh.prototype.bufferStart=_.Oh.prototype.lb;_.Oh.prototype.end=_.Oh.prototype.end;
306
- _.Oh.prototype.start=_.Oh.prototype.start;_.h=_.Ph.prototype;_.h.trigger=function(a){this.Tc.trigger(a);for(var b=_.t(this.Sc),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.h.addEventListener=function(a,b){this.on(a,b)};_.h.removeEventListener=function(a,b){this.off(a,b)};_.h.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};_.h.on=function(a,b,c){return this.Tc.on(a,b,c)};_.h.one=function(a,b,c){return this.Tc.one(a,b,c)};_.h.off=function(a,b){return this.Tc.off(a,b)};
307
- _.h.addDelegate=function(a){a&&(0<=this.Sc.indexOf(a)||this.Sc.push(a))};_.h.removeDelegate=function(a){a&&(a=this.Sc.indexOf(a),0<=a&&this.Sc.splice(a,1))};_.Ph.prototype.off=_.Ph.prototype.off;_.Ph.prototype.one=_.Ph.prototype.one;_.Ph.prototype.on=_.Ph.prototype.on;_.Ph.prototype.removeEventListener=_.Ph.prototype.removeEventListener;_.Ph.prototype.addEventListener=_.Ph.prototype.addEventListener;_.A("clpp.events.ERROR",_.Xc);_.A("clpp.events.LOADEDMETADATA",_.kd);_.A("clpp.events.BUFFERING_ENDED",_.jc);_.A("clpp.events.BUFFERING_STARTED",_.kc);_.A("clpp.events.STATE_CHANGED",_.ie);_.Jh="audiotrackchanged";_.A("clpp.events.AUDIO_TRACK_CHANGED",_.Jh);_.Kh="texttrackchanged";_.A("clpp.events.TEXT_TRACK_CHANGED",_.Kh);_.A("clpp.events.VIDEO_TRACK_CHANGED",_.Me);_.A("clpp.events.BITRATE_CHANGED",_.hc);_.lp="tracksadded";_.A("clpp.events.TRACKS_ADDED",_.lp);_.A("clpp.events.LOAD_START",ld);
308
- _.A("clpp.events.RELEASING",_.Xd);_.A("clpp.events.RELEASED",Wd);_.A("clpp.events.DESTROYING","destroying");_.A("clpp.events.DESTROYED","destroyed");_.A("clpp.events.VIDEO_BUFFER_CHANGED",_.Le);_.A("clpp.events.AUDIO_BUFFER_CHANGED",_.ec);_.A("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.A("clpp.events.DRM_SESSION_UPDATE",_.Qc);_.A("clpp.events.DRM_SESSION_PERSISTED",_.Pc);_.A("clpp.events.DRM_RENEWAL_STARTED",Oc);_.A("clpp.events.DRM_EXPIRATION_UPDATE",_.Nc);
309
- _.A("clpp.events.AUTOPLAY_NOT_ALLOWED",_.fc);_.A("clpp.events.PLAY",_.Pd);_.A("clpp.events.SEEKING",_.ce);_.A("clpp.events.SEEKED",_.be);_.A("clpp.events.USER_SEEKING",_.Ee);_.A("clpp.events.USER_SEEKED",_.De);_.Pl={SEEKING:1,NO_DATA:2};_.A("clpp.events.BufferingReasons",_.Pl);_.A("clpp.events.ADS_TIMELINE_CHANGED",_.Mb);_.A("clpp.events.AD_LOADED",_.Cb);_.A("clpp.events.AD_BREAK_STARTED",_.vb);_.A("clpp.events.AD_STARTED",_.Ib);_.A("clpp.events.AD_BUFFERING",_.xb);_.A("clpp.events.AD_PROGRESS",_.Fb);
310
- _.A("clpp.events.AD_FIRST_QUARTILE",_.Ab);_.A("clpp.events.AD_MIDPOINT",_.Db);_.A("clpp.events.AD_THIRD_QUARTILE",_.Kb);_.A("clpp.events.AD_PAUSED",_.Eb);_.A("clpp.events.AD_RESUMED",_.Gb);_.A("clpp.events.AD_SKIPPED",_.Hb);_.A("clpp.events.AD_CLICKED",_.yb);_.A("clpp.events.AD_IMPRESSION",_.Bb);_.A("clpp.events.AD_COMPLETED",_.zb);_.A("clpp.events.AD_STOPPED",_.Jb);_.A("clpp.events.AD_BREAK_STOPPED",_.wb);_.A("clpp.events.CASTING_STARTED",_.nc);_.A("clpp.events.CASTING_ENDED","castingended");
311
- _.A("clpp.events.CAST_STATUS_CHANGED",_.oc);_.A("clpp.events.AIRPLAY_STATUS_CHANGED",_.Pb);_.A("clpp.events.AIRPLAY_CASTING_STARTED",_.Ob);_.A("clpp.events.AIRPLAY_CASTING_ENDED",_.Nb);_.ig="timeline-cue-added";_.A("clpp.events.TIMELINE_CUE_ADDED",_.ig);_.kg="timeline-cue-enter";_.A("clpp.events.TIMELINE_CUE_ENTER",_.kg);_.lg="timeline-cue-exit";_.A("clpp.events.TIMELINE_CUE_EXIT",_.lg);_.A("clpp.events.MPD_TYPE_CHANGED",_.vd);_.A("clpp.events.VIMOND_RESPONSE",_.Ne);
312
- _.A("clpp.events.PLAYLIST_ITEM_CHANGED",_.Rd);_.A("clpp.events.PLAYLIST_MODIFIED",_.Sd);_.A("clpp.events.CDN_SWITCH_SUCCESS",_.pc);_.A("clpp.events.ONLINE_STATUS_CHANGED",Hd);_.Qh.prototype.resolve=function(){};_.Qh.prototype.reject=function(){};_.Rh.prototype.abort=function(){this.a=!0;return this.w()};_.Rh.prototype.kd=function(a,b){function c(){e.reject(new _.J(_.K,7,7001));return d.abort()}var d=this,e=new _.Qh;this.N.then(function(f){d.a?e.reject(new _.J(_.K,7,7001)):a?c=Th(a,f,e):e.resolve(f)},function(f){b?c=Th(b,f,e):e.reject(f)});return new _.Rh(e,function(){return c()})};_.Rh.aborted=function(){var a=Promise.reject(new _.J(_.K,7,7001));a["catch"](function(){});return new _.Rh(a,function(){return Promise.resolve()})};
313
- _.Rh.prototype.chain=_.Rh.prototype.kd;_.Uh.prototype.destroy=function(){for(var a=[],b=_.t(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)};var ai=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.h=_.Wh.prototype;_.h.Ua="";_.h.jc="";_.h.Ia="";_.h.Gc=null;_.h.ma="";_.h.Xb="";_.h.toString=function(){var a=[],b=this.Ua;b&&a.push(di(b,mp,!0),":");if(b=this.Ia){a.push("//");var c=this.jc;c&&a.push(di(c,mp,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Gc;null!=b&&a.push(":",String(b))}if(b=this.ma)this.Ia&&"/"!=b.charAt(0)&&a.push("/"),a.push(di(b,"/"==b.charAt(0)?np:op,!0));(b=this.a.toString())&&a.push("?",b);(b=this.Xb)&&a.push("#",di(b,pp));return a.join("")};
314
- _.h.resolve=function(a){var b=new _.Wh(this);"data"===b.Ua&&(b=new _.Wh);var c=!!a.Ua;c?Xh(b,a.Ua):c=!!a.jc;c?b.jc=a.jc:c=!!a.Ia;c?b.Ia=a.Ia:c=null!=a.Gc;var d=a.ma;if(c)Yh(b,a.Gc);else if(c=!!a.ma){if("/"!=d.charAt(0))if(this.Ia&&!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 k=d[g++];"."==k?e&&g==d.length&&f.push(""):
315
- ".."==k?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(k),e=!0)}d=f.join("/")}}c?b.ma=d:c=""!==a.a.toString();c?Zh(b,$h(a.a)):c=!!a.Xb;c&&(b.Xb=a.Xb);return b};var mp=/[#\/\?@]/g,op=/[#\?:]/g,np=/[#\?]/g,ei=/[#\?@]/g,pp=/#/g;ci.prototype.a=null;ci.prototype.g=null;
316
- ci.prototype.add=function(a,b){if(!this.a&&(this.a={},this.g=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.g&&this.g++;return this};
317
- ci.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")};_.h=_.mi.prototype;_.h.Fj=function(a){0<a?_.B("Rate limit set to "+a+"bps"):_.B("Rate limit disabled");this.h=a};_.h.release=function(){return this.j.destroy()};_.h.destroy=function(){this.m=!0;this.f=[];this.g=[];return this.j.destroy()};_.h.Ag=function(a){this.f.push(a)};_.h.Vd=function(a){this.g.push(a)};_.h.wj=function(a){this.f=this.f.filter(function(b){return b!==a})};_.h.Ke=function(a){this.g=this.g.filter(function(b){return b!==a})};
318
- _.h.fetch=function(a){var b=this;if(this.m)return new Go(Promise.reject(new _.J(1,1,7001,{url:a.uris[a.uriIndex],request:a})));this.h&&0<this.h&&(a.rateLimitBps=this.h);for(var c=[],d=_.t(this.f),e=d.next();!e.done;e=d.next())c.push(e.value);if(a.requestModifiers)for(d=_.t(a.requestModifiers),e=d.next();!e.done;e=d.next())c.push(e.value);a.requestModifiers=c;c=[];d=_.t(this.g);for(e=d.next();!e.done;e=d.next())c.push(e.value);if(a.responseModifiers)for(d=_.t(a.responseModifiers),e=d.next();!e.done;e=
319
- d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.Qh;try{var f={},g=_.t(a.requestModifiers);for(e=g.next();!e.done;f={Od:f.Od},e=g.next())f.Od=e.value,d=d.then(function(m){return function(n){if(k.a)throw new _.J(_.K,1,7001,n?{url:n.uris[n.uriIndex],request:n}:null);return m.Od(n)||n}}(f))["catch"](function(m){if(m instanceof _.J)throw m;throw new _.J(_.K,1,1006,null,m);});d=d.then(function(m){var n=new _.Wh(m.uris[m.uriIndex]),p=n.Ua;p||(p=location.protocol,p=p.slice(0,-1),Xh(n,p),m.uris[m.uriIndex]=
320
- n.toString());p=b.a[p];if(!p)throw new _.J(_.K,1,1E3,{url:n.toString()});return{request:m,plugin:p}});var k=new Go(d);g={};var l=_.t(a.responseModifiers);for(e=l.next();!e.done;g={gd:g.gd},e=l.next())g.gd=e.value,k.then(function(m){return function(n){function p(){if(k.a)throw new _.J(_.K,1,7001,n?{url:n.request.uris[n.request.uriIndex],request:n.request}:null);}p();var q=m.gd(n)||n;p();return q}}(g))["catch"](function(m){return function(n){if(n instanceof _.J&&n.data&&n.data.response){var p=m.gd(n.data.response);
321
- if(p)return p.then(function(){return Promise.reject(n)})}return Promise.reject(n)}}(g))["catch"](function(m){if(m instanceof _.J)throw m;throw new _.J(_.K,1,1007,null,m);});_.Vh(this.j,k);c.resolve(a);return k}catch(m){return new Go(Promise.reject(m))}};_.mi.prototype.fetch=_.mi.prototype.fetch;_.mi.prototype.removeResponseModifier=_.mi.prototype.Ke;_.mi.prototype.removeRequestModifier=_.mi.prototype.wj;_.mi.prototype.addResponseModifier=_.mi.prototype.Vd;_.mi.prototype.addRequestModifier=_.mi.prototype.Ag;
322
- _.mi.prototype.setRateLimit=_.mi.prototype.Fj;var oi=["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"];_.A(Ac,qi);qi.getInfo=_.ji;
323
- var Ai=null,zi=null,Ci=new _.D(Ac),Li="android",Ki="ios",Qi="linux",Mi="osx",Ni="windows",Oi="tizen",Pi="webos",Ji=Ae,Ti=Ae,Si={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,
314
+ "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);_.Qp=(new Map).set(_.Ic,_.Ic).set("frameRate","framerate").set("bandwidth","bitrate").set(_.cf,_.cf).set(_.gd,_.gd).set("channelsCount","channels");_.v(Kh,_.Q);_.t=Kh.prototype;
315
+ _.t.Je=function(a,b){if(b){var c=b.track;if(c){var d=this.h.find(function(l){return Mh(l,c,a)});if(d)this.a.warn("Track from event already exists",c,d);else{var e=Mg(a,c),f=Xh(c);if(a===_.N){if(c.kind===_.wd)return;var g;void 0!==c.id?g=this.m[c.id]:g=Object.values(this.m).find(function(l){return Mh(e,l,a)});e.kind&&"captions"===e.kind&&(e.mimeType=_.Yb);g&&(e.src=g.url,e.mimeType=g.mimeType)}else if(d=this.h.find(function(l){return l.type===a&&_.K.va(l,e,["kind","label","language"])})){d.id=c.id;
316
+ f&&(this.a.debug(nb+a+" track active"),this.f.set(a,d));this.a.debug("Track from event seems to already exists, flipped native track to",c);return}try{e.renditions.push(new _.Og(e.id,e));this.h.push(e);this.a.debug(a+" Track added",e);this.l.trigger(new _.J(_.Rp));var h=Rh(this,a).length;d=a===_.Ig||a===_.P;if(f||1===h&&d)this.a.debug(nb+a+" track active. Native track active: "+(f+". Number of tracks: ")+h,c),this.f.set(a,e)}catch(l){this.a.error("Error while converting track data",l)}}}else this.a.warn(Xa)}else this.a.warn(Wa)};
317
+ _.t.Le=function(a,b){if(b){var c=b.track;if(!c)this.a.warn(Xa);else if(a===_.N&&c.kind!==_.wd){var d=this.h.find(function(e){return Mh(e,c,a)});d&&(this.h.splice(this.h.indexOf(d),1),(this.f.get(a)||null)===d&&(this.f.set(a,null),Lh(this)),this.a.debug(a+" Track removed, id: ",d.id))}}else this.a.warn(Wa)};
318
+ _.t.Ke=function(a,b){this.a.debug(a+" Track changed",b);a===_.N&&Lh(this);var c=Qh(this,a);if(c)for(var d={qc:0};d.qc<c.length;d={qc:d.qc},++d.qc)if(Xh(c[d.qc])){if(d=this.h.find(function(e){return function(f){return Mh(f,c[e.qc],a)}}(d)))this.f.set(a,d),this.a.debug("Track change detected, id:",d.id),d===this.j.get(a)&&this.j.set(a,null),a===_.P?this.l.trigger(new _.J(_.Uh)):a===_.N&&this.l.trigger(new _.J(_.Vh));break}};_.t.initialize=function(a){this.l=a};
319
+ _.t.load=function(){this.o=!1;var a=Ph(this,_.N);a&&(this.g.on(a,_.Sb,this.G),this.g.on(a,ce,this.J),this.g.on(a,Ac,this.I));if(a=Ph(this,_.P))this.g.on(a,_.Sb,this.B),this.g.on(a,ce,this.D),this.g.on(a,Ac,this.C);if(a=Ph(this,_.Ig))this.g.on(a,_.Sb,this.K),this.g.on(a,ce,this.O),this.g.on(a,Ac,this.L);this.g.one(this.l,tc,this.xh.bind(this))};_.t.release=function(){this.o=!0;this.h=[];this.m={};this.f.clear();this.j.clear();this.g.release()};_.t.destroy=function(){this.release();this.l=null};
320
+ _.t.getVideoTracks=function(){return Rh(this,_.Ig)};_.t.getAudioTracks=function(){return Rh(this,_.P)};_.t.ea=function(){return Rh(this,_.N)};_.t.fa=function(){return Sh(this,_.Ig)};_.t.Fa=function(){return Sh(this,_.P)};_.t.Ga=function(){return Sh(this,_.N)};_.t.Ta=function(){return Th(this,_.Ig)};_.t.eb=function(){return Th(this,_.P)};_.t.fb=function(){return Th(this,_.N)};_.t.Ia=function(){return this.f.get(_.Ig)||null};_.t.ka=function(){return this.f.get(_.P)||null};
321
+ _.t.la=function(){return this.f.get(_.N)||null};_.t.$a=function(a){Wh(this,_.Ig,a)};_.t.ra=function(a){Wh(this,_.P,a)};_.t.Ba=function(a){Wh(this,_.N,a)};_.t.Za=function(a){Wh(this,_.Ig,a&&a.track)};_.t.lb=function(a){Wh(this,_.P,a&&a.track)};_.t.mb=function(a){Wh(this,_.N,a&&a.track)};_.t.addTextTrack=function(a){var b=this,c;return _.A(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.w++,b.m[c]=a,Nh(b,a,c),d.H(0)):_.y(d,Oh(b,a),0)})};
322
+ _.t.xh=function(){var a=this,b,c,d;return _.A(function(e){if(1==e.a){b=a.l.getConfiguration();Yh(a,_.P,b.preferredAudioLanguage);c=Qh(a,_.N);if(c.some(function(f){return Xh(f)}))return e.H(2);d=Ph(a,_.N);return _.y(e,new Promise(function(f){a.g.one(d,Ac,f);(new _.Ch(f)).$(1)}),2)}if(a.o)return e["return"]();Yh(a,_.N,b.preferredTextLanguage);_.z(e)})};_.t.ha=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};Kh.prototype.isAbrEnabled=Kh.prototype.ha;
323
+ Kh.prototype.addTextTrack=Kh.prototype.addTextTrack;Kh.prototype.setTextRendition=Kh.prototype.mb;Kh.prototype.setAudioRendition=Kh.prototype.lb;Kh.prototype.setVideoRendition=Kh.prototype.Za;Kh.prototype.setTextTrack=Kh.prototype.Ba;Kh.prototype.setAudioTrack=Kh.prototype.ra;Kh.prototype.setVideoTrack=Kh.prototype.$a;Kh.prototype.getTextTrack=Kh.prototype.la;Kh.prototype.getAudioTrack=Kh.prototype.ka;Kh.prototype.getVideoTrack=Kh.prototype.Ia;Kh.prototype.getLoadingTextRendition=Kh.prototype.fb;
324
+ Kh.prototype.getLoadingAudioRendition=Kh.prototype.eb;Kh.prototype.getLoadingVideoRendition=Kh.prototype.Ta;Kh.prototype.getTextRendition=Kh.prototype.Ga;Kh.prototype.getAudioRendition=Kh.prototype.Fa;Kh.prototype.getVideoRendition=Kh.prototype.fa;Kh.prototype.getTextTracks=Kh.prototype.ea;Kh.prototype.getAudioTracks=Kh.prototype.getAudioTracks;Kh.prototype.getVideoTracks=Kh.prototype.getVideoTracks;_.t=_.Zh.prototype;_.t.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(sb);};_.t.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(sb);};_.t.rb=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:1===this.length&&0>this.start(0)?0:this.start(0)};_.t.xa=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
325
+ _.t.cc=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};
326
+ _.t.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.xa();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};_.C("clpp.BufferInfo",_.Zh);_.Zh.prototype.bufferedAheadOf=_.Zh.prototype.Da;_.Zh.prototype.isBuffered=_.Zh.prototype.cc;_.Zh.prototype.bufferEnd=_.Zh.prototype.xa;_.Zh.prototype.bufferStart=_.Zh.prototype.rb;_.Zh.prototype.end=_.Zh.prototype.end;
327
+ _.Zh.prototype.start=_.Zh.prototype.start;_.t=_.$h.prototype;_.t.addEventListener=function(a,b){this.on(a,b)};_.t.removeEventListener=function(a,b){this.off(a,b)};_.t.on=function(a,b,c){return this.Yc.on(a,b,c)};_.t.one=function(a,b,c){return this.Yc.one(a,b,c)};_.t.off=function(a,b){return this.Yc.off(a,b)};_.t.addDelegate=function(a){a&&(0<=this.Wc.indexOf(a)||this.Wc.push(a))};_.t.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};_.t.removeDelegate=function(a){a&&(a=this.Wc.indexOf(a),0<=a&&this.Wc.splice(a,1))};
328
+ _.t.trigger=function(a){this.Yc.trigger(a);for(var b=_.u(this.Wc),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.$h.prototype.off=_.$h.prototype.off;_.$h.prototype.one=_.$h.prototype.one;_.$h.prototype.on=_.$h.prototype.on;_.$h.prototype.removeEventListener=_.$h.prototype.removeEventListener;_.$h.prototype.addEventListener=_.$h.prototype.addEventListener;_.C("clpp.events.ERROR",_.dd);_.C("clpp.events.LOADEDMETADATA",_.rd);_.C("clpp.events.BUFFERING_ENDED",_.qc);_.C("clpp.events.BUFFERING_STARTED",_.rc);_.C("clpp.events.STATE_CHANGED",_.oe);_.Uh="audiotrackchanged";_.C("clpp.events.AUDIO_TRACK_CHANGED",_.Uh);_.Vh="texttrackchanged";_.C("clpp.events.TEXT_TRACK_CHANGED",_.Vh);_.C("clpp.events.VIDEO_TRACK_CHANGED",_.Se);_.C("clpp.events.BITRATE_CHANGED",_.oc);_.Rp="tracksadded";_.C("clpp.events.TRACKS_ADDED",_.Rp);_.C("clpp.events.LOAD_START",sd);
329
+ _.C("clpp.events.RELEASING",_.be);_.C("clpp.events.RELEASED",ae);_.C("clpp.events.DESTROYING","destroying");_.C("clpp.events.DESTROYED","destroyed");_.C("clpp.events.VIDEO_BUFFER_CHANGED",_.Re);_.C("clpp.events.AUDIO_BUFFER_CHANGED",_.mc);_.C("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.C("clpp.events.DRM_SESSION_UPDATE",_.Yc);_.C("clpp.events.DRM_SESSION_PERSISTED",_.Wc);_.C("clpp.events.DRM_RENEWAL_STARTED",Vc);_.C("clpp.events.DRM_EXPIRATION_UPDATE",_.Uc);
330
+ _.C("clpp.events.AUTOPLAY_NOT_ALLOWED",_.nc);_.C("clpp.events.PLAY",_.Ud);_.C("clpp.events.SEEKING",_.he);_.C("clpp.events.SEEKED",_.ge);_.C("clpp.events.USER_SEEKING",_.Ke);_.C("clpp.events.USER_SEEKED",_.Je);_.rm={SEEKING:1,NO_DATA:2};_.C("clpp.events.BufferingReasons",_.rm);_.C("clpp.events.ADS_TIMELINE_CHANGED",_.Tb);_.C("clpp.events.AD_LOADED",_.Jb);_.C("clpp.events.AD_BREAK_STARTED",_.Bb);_.C("clpp.events.AD_STARTED",_.Pb);_.C("clpp.events.AD_BUFFERING",_.Eb);_.C("clpp.events.AD_PROGRESS",_.Mb);
331
+ _.C("clpp.events.AD_FIRST_QUARTILE",_.Hb);_.C("clpp.events.AD_MIDPOINT",_.Kb);_.C("clpp.events.AD_THIRD_QUARTILE",_.Rb);_.C("clpp.events.AD_PAUSED",_.Lb);_.C("clpp.events.AD_RESUMED",_.Nb);_.C("clpp.events.AD_SKIPPED",_.Ob);_.C("clpp.events.AD_CLICKED",_.Fb);_.C("clpp.events.AD_IMPRESSION",_.Ib);_.C("clpp.events.AD_COMPLETED",_.Gb);_.C("clpp.events.AD_STOPPED",_.Qb);_.C("clpp.events.AD_BREAK_STOPPED",_.Cb);_.C("clpp.events.CASTING_STARTED",_.uc);_.C("clpp.events.CASTING_ENDED","castingended");
332
+ _.C("clpp.events.CAST_STATUS_CHANGED",_.vc);_.C("clpp.events.AIRPLAY_STATUS_CHANGED",_.Wb);_.C("clpp.events.AIRPLAY_CASTING_STARTED",_.Vb);_.C("clpp.events.AIRPLAY_CASTING_ENDED",_.Ub);_.mg="timeline-cue-added";_.C("clpp.events.TIMELINE_CUE_ADDED",_.mg);_.og="timeline-cue-enter";_.C("clpp.events.TIMELINE_CUE_ENTER",_.og);_.pg="timeline-cue-exit";_.C("clpp.events.TIMELINE_CUE_EXIT",_.pg);_.C("clpp.events.MPD_TYPE_CHANGED",_.Bd);_.C("clpp.events.VIMOND_RESPONSE",_.Te);
333
+ _.C("clpp.events.PLAYLIST_ITEM_CHANGED",_.Wd);_.C("clpp.events.PLAYLIST_MODIFIED",_.Xd);_.C("clpp.events.CDN_SWITCH_SUCCESS",_.wc);_.C("clpp.events.ONLINE_STATUS_CHANGED",Md);_.ai.prototype.resolve=function(){};_.ai.prototype.reject=function(){};_.bi.prototype.abort=function(){this.a=!0;return this.w()};_.bi.prototype.qd=function(a,b){function c(){e.reject(new _.L(_.M,7,7001));return d.abort()}var d=this,e=new _.ai;this.P.then(function(f){d.a?e.reject(new _.L(_.M,7,7001)):a?c=di(a,f,e):e.resolve(f)},function(f){b?c=di(b,f,e):e.reject(f)});return new _.bi(e,function(){return c()})};_.bi.aborted=function(){var a=Promise.reject(new _.L(_.M,7,7001));a["catch"](function(){});return new _.bi(a,function(){return Promise.resolve()})};
334
+ _.bi.prototype.chain=_.bi.prototype.qd;_.ei.prototype.destroy=function(){for(var a=[],b=_.u(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.P["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};var li=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.t=_.gi.prototype;_.t.Ya="";_.t.lc="";_.t.Na="";_.t.Jc=null;_.t.pa="";_.t.Zb="";_.t.toString=function(){var a=[],b=this.Ya;b&&a.push(oi(b,Sp,!0),":");if(b=this.Na){a.push("//");var c=this.lc;c&&a.push(oi(c,Sp,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Jc;null!=b&&a.push(":",String(b))}if(b=this.pa)this.Na&&"/"!=b.charAt(0)&&a.push("/"),a.push(oi(b,"/"==b.charAt(0)?Tp:Up,!0));(b=this.a.toString())&&a.push("?",b);(b=this.Zb)&&a.push("#",oi(b,Vp));return a.join("")};
335
+ _.t.resolve=function(a){var b=new _.gi(this);"data"===b.Ya&&(b=new _.gi);var c=!!a.Ya;c?hi(b,a.Ya):c=!!a.lc;c?b.lc=a.lc:c=!!a.Na;c?b.Na=a.Na:c=null!=a.Jc;var d=a.pa;if(c)ii(b,a.Jc);else if(c=!!a.pa){if("/"!=d.charAt(0))if(this.Na&&!this.pa)d="/"+d;else{var e=b.pa.lastIndexOf("/");-1!=e&&(d=b.pa.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(""):
336
+ ".."==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.pa=d:c=""!==a.a.toString();c?_.ji(b,ki(a.a)):c=!!a.Zb;c&&(b.Zb=a.Zb);return b};var Sp=/[#\/\?@]/g,Up=/[#\?:]/g,Tp=/[#\?]/g,pi=/[#\?@]/g,Vp=/#/g;ni.prototype.a=null;ni.prototype.g=null;ni.prototype.add=function(a,b){_.ri(this);this.f=null;var c=this.a.hasOwnProperty(a)&&this.a[a];c||(this.a[a]=c=[]);c.push(b);null!==this.g&&this.g++;return this};
337
+ ni.prototype.toString=function(){if(this.f)return this.f;if(!this.a)return"";var a=[],b;for(b in this.a)for(var c=encodeURIComponent(b),d=this.a[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="\x3d"+encodeURIComponent(d[e]));a.push(f)}return this.f=a.join("\x26")};_.t=_.yi.prototype;_.t.Hj=function(a){0<a?_.F("Rate limit set to "+a+"bps"):_.F("Rate limit disabled");this.h=a};_.t.release=function(){return this.j.destroy()};_.t.destroy=function(){this.m=!0;this.f=[];this.g=[];return this.j.destroy()};_.t.Ag=function(a){this.f.push(a)};_.t.ae=function(a){this.g.push(a)};_.t.zj=function(a){this.f=this.f.filter(function(b){return b!==a})};_.t.Qe=function(a){this.g=this.g.filter(function(b){return b!==a})};
338
+ _.t.fetch=function(a){var b=this;if(this.m)return new lp(Promise.reject(new _.L(1,1,7001,{url:a.uris[a.uriIndex],request:a})));this.h&&0<this.h&&(a.rateLimitBps=this.h);for(var c=[],d=_.u(this.f),e=d.next();!e.done;e=d.next())c.push(e.value);if(a.requestModifiers)for(d=_.u(a.requestModifiers),e=d.next();!e.done;e=d.next())c.push(e.value);a.requestModifiers=c;c=[];d=_.u(this.g);for(e=d.next();!e.done;e=d.next())c.push(e.value);if(a.responseModifiers)for(d=_.u(a.responseModifiers),e=d.next();!e.done;e=
339
+ d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.ai;try{var f={},g=_.u(a.requestModifiers);for(e=g.next();!e.done;f={Vd:f.Vd},e=g.next())f.Vd=e.value,d=d.then(function(m){return function(n){if(h.a)throw new _.L(_.M,1,7001,n?{url:n.uris[n.uriIndex],request:n}:null);return m.Vd(n)||n}}(f))["catch"](function(m){if(m instanceof _.L)throw m;throw new _.L(_.M,1,1006,null,m);});d=d.then(function(m){var n=new _.gi(m.uris[m.uriIndex]),p=n.Ya;p||(p=location.protocol,p=p.slice(0,-1),hi(n,p),m.uris[m.uriIndex]=
340
+ n.toString());p=b.a[p];if(!p)throw new _.L(_.M,1,1E3,{url:n.toString()});return{request:m,plugin:p}});var h=new lp(d);g={};var l=_.u(a.responseModifiers);for(e=l.next();!e.done;g={nd:g.nd},e=l.next())g.nd=e.value,h.then(function(m){return function(n){function p(){if(h.a)throw new _.L(_.M,1,7001,n?{url:n.request.uris[n.request.uriIndex],request:n.request}:null);}p();var q=m.nd(n)||n;p();return q}}(g))["catch"](function(m){return function(n){if(n instanceof _.L&&n.data&&n.data.response){var p=m.nd(n.data.response);
341
+ if(p)return p.then(function(){return Promise.reject(n)})}return Promise.reject(n)}}(g))["catch"](function(m){if(m instanceof _.L)throw m;throw new _.L(_.M,1,1007,null,m);});_.fi(this.j,h);c.resolve(a);return h}catch(m){return new lp(Promise.reject(m))}};_.yi.prototype.fetch=_.yi.prototype.fetch;_.yi.prototype.removeResponseModifier=_.yi.prototype.Qe;_.yi.prototype.removeRequestModifier=_.yi.prototype.zj;_.yi.prototype.addResponseModifier=_.yi.prototype.ae;_.yi.prototype.addRequestModifier=_.yi.prototype.Ag;
342
+ _.yi.prototype.setRateLimit=_.yi.prototype.Hj;var Ai=["play() failed because the user didn't interact","The play method is not allowed by the user agent","The request is not allowed by the user agent or the platform"];_.C(Hc,Ci);Ci.getInfo=_.vi;
343
+ var Mi=null,Li=null,Oi=new _.H(Hc),Wi="android",Vi="ios",aj="linux",Xi="osx",Yi="windows",Zi="tizen",$i="webos",Ui=Ge,dj=Ge,cj={windows:{os_version:/windows\s+?nt\s([\d.]+)/i,ie:/windows\s+?nt.+?trident\/[\d.]+.*rv:([\d.]+)/i,edge:/windows\s+?nt.+?edge?\/([\d.]+)/i,chrome:/windows\s+?nt.+?chrome\/([\d.]+)/i,firefox:/windows\s+?nt.+?firefox\/([\d.]+)/i,opera:/windows\s+?nt.+?opr\/([\d.]+)/i},osx:{os_version:/macintosh.+?([\d._]+)/i,safari:/macintosh.+?version\/([\d._]+).+?safari/i,edge:/macintosh.+?edge?\/([\d._]+)/i,
324
344
  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,
325
345
  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},
326
- 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}};_.A("clpp.utils.PlayerConfiguration",Ui);Ui.create=_.aj;var qp=["abort",lc,mc,Sc,"emptied",Tc,_.Wc,_.Xc,"interruptbegin","interruptend",_.jd,_.kd,ld,"mozaudioavailable",_.Ld,_.Pd,_.Qd,_.Td,_.Vd,_.be,_.ce,ge,"suspend",_.we,"volumechange",_.Qe,_.Re,_.$d,We,Ve,Te,Ue];_.u(_.cj,_.Ph);_.h=_.cj.prototype;_.h.init=function(a,b){this.configuration=this.od=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=_.t(qp),e=d.next();!e.done;e=d.next())e=e.value,this.K.on(c,e,this.Oj,e!==_.Xc);this.sd||(this.sd=this.rf());this.sd.Fb(this);this.A.showMediaElement()};_.h.release=function(){this.J&&(this.J.destroy(),this.J=null);return Promise.resolve()};
327
- _.h.destroy=function(){this.K.release();return Promise.resolve()};_.h.canPlay=function(a,b){return _.Of[this.namespace()].canPlay(a,b)};
328
- _.h.play=function(){var a=this;if(!this.o)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||""};pi(d)?(a.trigger(new _.E(_.fc)),a.log.warn(_.ja)):d.name===Xa&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
329
- _.h.pause=function(){var a=this;return this.o?new Promise(function(b,c){var d=a.getState();if(d!==_.Ml&&d!==_.Ol&&d!==_.Vl&&d!==_.Ul)c();else if(a.A.getMedia().pause(),a.getState()===_.Vl)a.K.one(a,_.ie,function(){b()});else b()}):Promise.reject("No sources specified yet. You need to load content before calling pause.")};_.h.isPaused=function(){return this.A.getMedia().paused};_.h.isEnded=function(){return this.A.getMedia().ended};_.h.getConfiguration=function(){return this.configuration};
330
- _.h.setDrmCustomDataModifier=function(a){this.yc=a};_.h.setCdnErrorCallback=function(a){this.Na=a};_.h.Bc=function(){return this.yc};_.h.getSurface=function(){return this.A};_.h.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.Oh(b?b.buffered:void 0,a)};_.h.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};
331
- _.h.seek=function(a){var b=this,c=this.getPosition();if(void 0===a||null===a||typeof a!==_.zd||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 k(){if(d.readyState>HTMLMediaElement.HAVE_NOTHING)m();else b.K.one(d,_.kd,m)}function l(n){var p=b.getPosition(),
332
- q=.1>=Math.abs(a-p),r=.25<p-a,x=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,y=n.type===_.be,C=n.type===_.Td,I=n.type===_.we,F=C&&x;r=y||q&&F||I&&r;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",r,"Current Time:",p,"Target Time:",a,"Native Event:",y,"Time reached",q,"Timeupdate:",I,"Progress:",C,"ReadyState:",x,"Progress Ready:",F);r?(b.qe=!1,b.Bd=!1,b.K.off(d,_.be,l),b.K.off(d,_.we,l),b.K.off(d,_.Td,l),b.Xf(),b.trigger(new _.E(_.De)),f()):C&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
333
- d.currentTime=a)}function m(){b.trigger(new _.E(_.Ee));b.K.on(d,_.be,l);b.K.on(d,_.we,l);b.K.on(d,_.Td,l);b.log.info("Seeking to "+a+". Delta "+e);b.qe=!0;b.Bd=!0;d.currentTime=a}b.getState()===_.Hl?(b.log.debug("Player is in IDLE state. Postpone seek."),b.K.one(b,_.ie,function(){switch(b.getState()){case _.Ml:case _.Vl:case _.Ul:b.log.debug("Valid seek state reached.");k();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):k()})};
334
- _.h.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};_.h.setVolume=function(a){var b=this.A.getMedia();b?_.H.la(a)?0>a||1<a?this.log.warn(la+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(la+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.h.isMuted=function(){return this.A.getMedia().muted};
335
- _.h.setMuted=function(a){var b=this.A.getMedia();typeof a===_.ic&&(b.muted=a)};_.h.getDuration=function(){return this.o?this.A.getMedia().duration:-1};_.h.getTrackManager=function(){return this.sd};_.h.getPlaybackRate=function(){var a=this.A.getMedia();return a&&a.playbackRate||1};_.h.setPlaybackRate=function(a){var b=this.A.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.h.setSourceIndex=function(a){this.qd=a};_.h.getSourceIndex=function(){return this.qd};
336
- _.h.getLoadedSource=function(){return this.o&&-1!==this.qd?this.o[this.qd]:null};_.h.getPeriods=function(){return[]};_.h.getNetworkEngine=function(){return this.Kf};_.h.setNetworkEngine=function(a){this.Kf=a};_.h.getTextDisplayer=function(){return this.J};_.h.getTimelineCues=function(){return[]};_.h.resetAbr=function(){};
337
- _.h.uj=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.we||a.type===_.Td)this.lg.debug(d);else{var e="";switch(a.type){case _.Vd:e="Rate: "+this.getPlaybackRate();break;case Sc:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.Pd:case _.Qd:case "suspend":case _.Qe:case ge:case _.ce:case _.be:case _.we:case _.Td:case lc:case mc:b=
338
- this.getBufferInfo().xa(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.$d:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.lg.info(d)}a.type!==_.Xc&&this.trigger(new _.E(a.type,{detail:a}))};_.h.Xf=function(){};_.cj.prototype.getTextDisplayer=_.cj.prototype.getTextDisplayer;_.cj.prototype.setNetworkEngine=_.cj.prototype.setNetworkEngine;_.cj.prototype.getNetworkEngine=_.cj.prototype.getNetworkEngine;var fj;fj=new _.D("clpp.Components");_.dj=new Map;_.A("clpp.utils.Uint8ArrayUtils",_.ij);_.ij.toStandardBase64=_.jj;_.ij.concat=_.pj;_.ij.equal=_.oj;_.ij.toHex=_.nj;_.ij.fromHex=_.mj;_.ij.fromBase64=_.lj;_.ij.toBase64Url=_.kj;qj.prototype.release=function(){this.a=this.f=null};var rp={SW_SECURE_CRYPTO:_.hb,SW_SECURE_DECODE:_.ib,HW_SECURE_CRYPTO:Fa,HW_SECURE_DECODE:Ga,HW_SECURE_ALL:"HW_SECURE_ALL"};_.A("clpp.drm.WidevineRobustnessLevel",rp);_.A("clpp.drm.RobustnessLevel",rp);_.A("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.A("clpp.drm.KeySystem",{NONE:_.yd,CLEAR_KEY:_.Jd,WIDEVINE:_.Gc,PLAYREADY:_.Fc,FAIRPLAY:_.Ec,PRIMETIME:_.Dc});_.uj={};_.A("clpp.drm.registerDrmEnvironment",_.vj);var yj={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,
346
+ webos:{os_version:/linux.+?([\d._]+)/i,safari:/linux.+?version\/([\d._]+).+?safari/i,chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i}};_.C("clpp.utils.PlayerConfiguration",ej);ej.create=_.lj;var Wp=["abort",sc,tc,$c,"emptied",ad,_.cd,_.dd,"interruptbegin","interruptend",_.qd,_.rd,sd,"mozaudioavailable",_.Qd,_.Ud,_.Vd,_.Yd,_.$d,_.ge,_.he,me,"suspend",_.Ce,"volumechange",_.We,_.Xe,_.ee,bf,af,Ze,$e];_.v(_.nj,_.$h);_.t=_.nj.prototype;_.t.init=function(a,b){this.configuration=this.ud=b;this.B=a;this.log.info("Initializing Player surface");var c=this.B.getMedia();this.log.info("Attaching media element listeners");for(var d=_.u(Wp),e=d.next();!e.done;e=d.next())e=e.value,this.K.on(c,e,this.Mj,e!==_.dd);this.yd||(this.yd=this.yf());this.yd.initialize(this);this.B.showMediaElement()};_.t.release=function(){this.J&&(this.J.destroy(),this.J=null);return Promise.resolve()};
347
+ _.t.destroy=function(){this.K.release();return Promise.resolve()};_.t.canPlay=function(a,b){return _.Tf[this.namespace()].canPlay(a,b)};
348
+ _.t.play=function(){var a=this;if(!this.o)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.B.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||""};Bi(d)?(a.trigger(new _.J(_.nc)),a.log.warn(_.ma)):d.name===Za&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
349
+ _.t.pause=function(){var a=this;return this.o?new Promise(function(b,c){var d=a.getState();if(d!==_.om&&d!==_.qm&&d!==_.xm&&d!==_.wm)c();else if(a.B.getMedia().pause(),a.getState()===_.xm)a.K.one(a,_.oe,function(){b()});else b()}):Promise.reject("No sources specified yet. You need to load content before calling pause.")};_.t.isPaused=function(){return this.B.getMedia().paused};_.t.isEnded=function(){return this.B.getMedia().ended};_.t.getConfiguration=function(){return this.configuration};
350
+ _.t.setDrmCustomDataModifier=function(a){this.Bc=a};_.t.setCdnErrorCallback=function(a){this.Ra=a};_.t.Ec=function(){return this.Bc};_.t.getSurface=function(){return this.B};_.t.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.Zh(b?b.buffered:void 0,a)};_.t.getPosition=function(){var a=this.B.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
351
+ _.t.seek=function(a){var b=this,c=this.getPosition();if(void 0===a||null===a||typeof a!==_.k||a===c)return Promise.resolve();var d=this.B.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.K.one(d,_.rd,m)}function l(n){var p=b.getPosition(),
352
+ q=.1>=Math.abs(a-p),r=.25<p-a,w=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,x=n.type===_.ge,B=n.type===_.Yd,D=n.type===_.Ce,E=B&&w;r=x||q&&E||D&&r;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",r,"Current Time:",p,"Target Time:",a,"Native Event:",x,"Time reached",q,"Timeupdate:",D,"Progress:",B,"ReadyState:",w,"Progress Ready:",E);r?(b.ve=!1,b.Hd=!1,b.K.off(d,_.ge,l),b.K.off(d,_.Ce,l),b.K.off(d,_.Yd,l),b.eg(),b.trigger(new _.J(_.Je)),f()):B&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
353
+ d.currentTime=a)}function m(){b.trigger(new _.J(_.Ke));b.K.on(d,_.ge,l);b.K.on(d,_.Ce,l);b.K.on(d,_.Yd,l);b.log.info("Seeking to "+a+". Delta "+e);b.ve=!0;b.Hd=!0;d.currentTime=a}b.getState()===_.jm?(b.log.debug("Player is in IDLE state. Postpone seek."),b.K.one(b,_.oe,function(){switch(b.getState()){case _.om:case _.xm:case _.wm:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
354
+ _.t.getVolume=function(){var a=this.B.getMedia();if(a)return a.volume;this.log.warn("No media element available, can not report volume!");return null};_.t.setVolume=function(a){var b=this.B.getMedia();b?_.K.oa(a)?0>a||1<a?this.log.warn(pa+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(pa+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.t.isMuted=function(){return this.B.getMedia().muted};
355
+ _.t.setMuted=function(a){var b=this.B.getMedia();typeof a===_.pc&&(b.muted=a)};_.t.getDuration=function(){return this.o?this.B.getMedia().duration:-1};_.t.getTrackManager=function(){return this.yd};_.t.getPlaybackRate=function(){var a=this.B.getMedia();return a&&a.playbackRate||1};_.t.setPlaybackRate=function(a){var b=this.B.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.t.setSourceIndex=function(a){this.wd=a};_.t.getSourceIndex=function(){return this.wd};
356
+ _.t.getLoadedSource=function(){return this.o&&-1!==this.wd?this.o[this.wd]:null};_.t.getPeriods=function(){return[]};_.t.getNetworkEngine=function(){return this.Rf};_.t.setNetworkEngine=function(a){this.Rf=a};_.t.getTextDisplayer=function(){return this.J};_.t.getTimelineCues=function(){return[]};_.t.resetAbr=function(){};
357
+ _.t.xj=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.Ce||a.type===_.Yd)this.qg.debug(d);else{var e="";switch(a.type){case _.$d:e="Rate: "+this.getPlaybackRate();break;case $c:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.Ud:case _.Vd:case "suspend":case _.We:case me:case _.he:case _.ge:case _.Ce:case _.Yd:case sc:case tc:b=
358
+ this.getBufferInfo().Da(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.ee:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.qg.info(d)}a.type!==_.dd&&this.trigger(new _.J(a.type,{detail:a}))};_.t.eg=function(){};_.nj.prototype.getTextDisplayer=_.nj.prototype.getTextDisplayer;_.nj.prototype.setNetworkEngine=_.nj.prototype.setNetworkEngine;_.nj.prototype.getNetworkEngine=_.nj.prototype.getNetworkEngine;var qj;qj=new _.H("clpp.Components");_.oj=new Map;_.C("clpp.utils.Uint8ArrayUtils",_.tj);_.tj.toStandardBase64=_.uj;_.tj.concat=_.Aj;_.tj.equal=_.zj;_.tj.toHex=_.yj;_.tj.fromHex=_.xj;_.tj.fromBase64=_.wj;_.tj.toBase64Url=_.vj;Bj.prototype.release=function(){this.a=this.f=null};var Xp={SW_SECURE_CRYPTO:_.kb,SW_SECURE_DECODE:_.lb,HW_SECURE_CRYPTO:Ja,HW_SECURE_DECODE:La,HW_SECURE_ALL:"HW_SECURE_ALL"};_.C("clpp.drm.WidevineRobustnessLevel",Xp);_.C("clpp.drm.RobustnessLevel",Xp);_.C("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.C("clpp.drm.KeySystem",{NONE:_.Fd,CLEAR_KEY:_.Od,WIDEVINE:_.Nc,PLAYREADY:_.Mc,FAIRPLAY:_.Lc,PRIMETIME:_.Kc});_.Fj={};_.C("clpp.drm.registerDrmEnvironment",_.Gj);var Jj={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,
339
359
  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,
340
360
  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,
341
361
  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,
@@ -349,71 +369,74 @@ this.getBufferInfo().xa(c);e="State "+this.getSurface().getMedia().readyState+"
349
369
  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,
350
370
  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,
351
371
  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,
352
- 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]};_.Aj.prototype.Fa=function(a,b){this.g[a]=b};_.A("clpp.drm.DrmEnvironment",_.Aj);_.Aj.prototype.setDrmSystem=_.Aj.prototype.Fa;_.Cj.prototype.getPosition=function(){return this.a};_.Cj.prototype.Ba=function(){return this.f.byteLength};_.Cj.prototype.seek=function(a){(0>a||a>this.f.byteLength)&&_.Dj();this.a=a};_.Cj.prototype.seek=_.Cj.prototype.seek;_.Fj.prototype.getPosition=function(){return this.a};_.Fj.prototype.Ba=function(){return this.f.byteLength};_.Fj.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.Hj();this.a+=a};_.Fj.prototype.seek=function(a){if(0>a||a>this.f.byteLength)throw _.Hj();this.a=a};_.h=_.Oj.prototype;_.h.L=function(a,b){var c=Sj(a);this.g[c]=sp;this.f[c]=b;return this};_.h.V=function(a,b){var c=Sj(a);this.g[c]=tp;this.f[c]=b;return this};_.h.stop=function(){this.a=!0};_.h.parse=function(a,b){var c=_.Q(a);c=new _.Fj(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.Gj(c)&&!this.a;)this.Fd(0,c,b)};
353
- _.h.Fd=function(a,b,c){var d=b.getPosition(),e=_.Kj(b),f=_.Kj(b),g=!1;this.h.debug("Parsing MP4 box",_.Tj(f));switch(e){case 0:e=b.Ba()-d;break;case 1:e=_.Mj(b),g=!0}var k=this.f[f];if(k){var l=null,m=null;this.g[f]==tp&&(m=_.Kj(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.Ba()&&(n=b.Ba());n-=b.getPosition();b=0<n?_.Nj(b,n):new Uint8Array(0);b=new _.Fj(new DataView(b.buffer,b.byteOffset,b.byteLength),!1);k({Ta:this,Zf:c||!1,version:l,flags:m,F:b,size:e,start:d+a,le:f,ni:g})}else a=
354
- Math.min(d+e-b.getPosition(),b.Ba()-b.getPosition()),b.skip(a)};_.A("clpp.utils.Mp4Parser",_.Oj);_.Oj.typeToString=_.Tj;_.Oj.allData=_.Rj;_.Oj.sampleDescription=_.Qj;_.Oj.children=_.Pj;_.Oj.prototype.parseNext=_.Oj.prototype.Fd;_.Oj.prototype.parse=_.Oj.prototype.parse;_.Oj.prototype.stop=_.Oj.prototype.stop;_.Oj.prototype.fullBox=_.Oj.prototype.V;_.Oj.prototype.box=_.Oj.prototype.L;_.Oj.headerSize=_.Uj;var sp=0,tp=1;_.A("clpp.utils.url.queryString",_.Xj);_.A("clpp.utils.FairplayUtils",Zj);Zj.parseFairPlayResponse=_.fk;Zj.formatFairPlayRequest=_.ek;Zj.createFairplayPayload=dk;Zj.extractContentId=_.bk;Zj.extractExtXKeyUri=ak;var qk=new _.D("clpp.drm.DrmToday"),hk="PRODUCTION",ik="STAGING",jk="TEST",up={PRODUCTION:hk,STAGING:ik,TEST:jk};_.A("clpp.drm.DrmToday.Environment",up);_.A("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
355
- for(var lk="/license-proxy-widevine/cenc/",mk="/license-proxy-headerauth/drmtoday/RightsManager.asmx",nk="/license-server-fairplay/",yk={"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",
356
- 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"},vp={video:[_.ib,void 0],audio:[_.hb,void 0]},wp={video:["3000"],
357
- audio:["2000"]},xp=_.t(Object.keys(up)),yp=xp.next();!yp.done;yp=xp.next()){var gk=yp.value,zp=ua;gk!==hk&&(zp+="_"+gk);var Ap=new _.Aj(zp),Bp=null;switch(gk){case hk:Bp=zj("V1_PROD");break;case ik:Bp=zj("V2");break;case jk:Bp=null}Ap.Fa(_.Gc,{licenseUrl:ok(_.Gc),videoRobustness:vp.video,audioRobustness:vp.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:Bp,modifiers:{licenseRequest:_.sk,licenseResponse:_.xk}});Ap.Fa(_.Ec,{licenseUrl:ok(_.Ec),certificateUrl:kk()+
358
- "/license-server-fairplay/cert/",modifiers:{licenseRequest:_.uk,licenseResponse:_.vk,extractContentId:_.rk,certificateRequest:_.wk}});Ap.Fa(_.Fc,{licenseUrl:ok(_.Fc),videoRobustness:wp.video,audioRobustness:wp.audio,modifiers:{licenseRequest:tk}});_.vj(Ap)};_.A("clpp.drm.eme.EmeFactory",Ak);var Bk=[];Ak.Apis={STANDARD:gb,APPLE:"APPLE",WEBKIT:"WEBKIT",NOP:"NOP"};Ek.prototype.h=function(a){if(1<a.version)_.B("Unrecognized PSSH version found!");else{var b=_.nj(_.Nj(a.F,16)),c=[];if(0<a.version)for(var d=_.Kj(a.F),e=0;e<d;++e){var f=_.nj(_.Nj(a.F,16));c.push(f)}d=_.Kj(a.F);a.F.skip(d);this.g.push.apply(this.g,c);this.f.push(b);this.a.push({start:a.start,end:a.start+a.size-1});a.F.getPosition()!=a.F.Ba()&&_.B("Mismatch between box size and data size!")}};_.h=_.Ik.prototype;_.h.destroy=function(){var a=this;return _.z(function(b){if(1==b.a){if(a.j)return _.v(b,a.Ha,0);a.j=!0;return _.v(b,Kk(a),4)}a.Ha.resolve();return b.H(0)})};_.h.keySystem=function(){return this.f?_.gl(this.f.keySystem):""};_.h.getDrmInfo=function(){return this.f};_.h.Wf=function(a){var b=this;return _.z(function(c){return b.D&&b.K===Lk?c["return"]():!b.h.delayLicenseRequestUntilPlayed||b.B&&!b.B.paused||b.Na?_.v(c,pl(b,a),0):(b.ca.push(a),c.H(0))})};
359
- _.h.Sf=function(a){var b=this,c=a.target;this.a.debug("Key status changed for session",c.sessionId);var d=this.g.get(c),e=!1;c.keyStatuses.forEach(function(f,g){if(typeof g==_.me){var k=g;g=f;f=k}if(ml(b.f.keySystem)&&16===g.byteLength&&_.ri()){k=_.Qg(g);var l=k.getUint32(0,!0),m=k.getUint16(4,!0),n=k.getUint16(6,!0);k.setUint32(0,l,!1);k.setUint16(4,m,!1);k.setUint16(6,n,!1)}f!=ke&&(d.loaded=!0);"expired"==f&&(e=!0);var p=_.nj(_.Q(g));b.a.debug("Key status for",p,f);b.kb.set(p,f);d&&!d.keyId&&b.g.forEach(function(q,
360
- r){r===c||q.keyId!==p||q.loaded||(q.loaded=!0)})});a=c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.ib&&(this.a.debug("Session has expired",c.sessionId),(a=this.g.get(c))&&a.xc&&a.xc.stop(),this.g["delete"](c),c.close()["catch"](function(){}));il(this)&&(this.G.resolve(),1!==this.g.size||e?this.aa.$(.5):Gk(this))};var Lk=0,Fk=3;ql.prototype.W=function(){};ql.prototype.create=function(){};_.A("clpp.text.TextDisplayerFactory",ql);ql.prototype.create=ql.prototype.create;ql.prototype.isSupported=ql.prototype.W;var rl=new Map,sl=new _.D("clpp.text");ql.Type={HTML:"html",NATIVE:_.xd,SINGLE_NATIVE:_.fe};_.fm={VIDEO:_.Ie,AUDIO:_.$b,TEXT:_.te,Pj:_.Qb,Xj:_.bd,$j:_.pe};_.Cp=1/15;_.Cl.prototype.getStats=function(){return{width:this.j,height:this.f,streamBandwidth:this.A,decodedFrames:this.g,droppedFrames:this.h,corruptedFrames:this.B,estimatedBandwidth:this.m,loadLatency:this.o,playTime:yl(this.a,_.Vl),pauseTime:yl(this.a,_.Ul),bufferingTime:yl(this.a,_.Ml),stateHistory:zl(this.a),switchHistory:Bl(this.w)}};_.El.prototype.value=function(){void 0==this.a&&(this.a=this.f());return this.a};var Fl=new _.El(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.kd],[HTMLMediaElement.HAVE_CURRENT_DATA,_.jd],[HTMLMediaElement.HAVE_FUTURE_DATA,lc],[HTMLMediaElement.HAVE_ENOUGH_DATA,mc]])});Kl.prototype.Qb=function(a,b){this.l&&this.l.trigger(new _.E(a,{detail:b}))};Kl.prototype.getState=function(){return Nl(this,"")};Kl.prototype.S=function(a){(a=a&&a.detail)&&a.severity&&a.severity===_.K&&Rl(this,_.Sl)};Kl.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.l.namespace());this.a.release()};_.A("clpp.version",_.ea);_.A("clpp.name",_.na);_.A("clpp.Type",{DASH:_.Sb,HLS:_.Yb,SMOOTH_STREAMING:_.Xb,MP4:_.Ke});_.hg="scte35";_.fg=Ae;_.A("clpp.TimelineCueType",{SCTE35:_.hg,DASH_CALLBACK:_.wd,UNKNOWN:_.fg});_.A("clpp.utils.media.detectType",Xl);var $l=new _.D("clpp.sources");_.u(am,_.cj);_.h=am.prototype;_.h.init=function(a,b){_.cj.prototype.init.call(this,a,b);this.h=new Kl(this);Rl(this.h,_.Hl)};_.h.namespace=function(){return zc};
361
- _.h.unload=function(){var a=this,b;return _.z(function(c){if(!a.o)return c.H(0);a.log.debug(_.eb,a.o);a.C&&(a.C.stop(),a.C=null);(b=a.getTrackManager())&&b.release();a.B&&(a.B.destroy(),a.B=null);a.J&&(a.J.destroy(),a.J=null);a.j&&a.j.release();a.m&&(a.m.destroy(),a.m=null);_.ag(a.g);a.f&&(a.f=new _.Cl);a.D=null;a.o=null;a.G=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());return _.v(c,em(a),0)})};
362
- _.h.release=function(){var a=this;return _.cj.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.h&&Rl(a.h,_.Hl)})};
363
- _.h.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.cj.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(xa);var b=a.getTrackManager();b&&b.destroy();a.j&&(a.j.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.j=null);a.h&&(a.h.destroy(),a.h=null);a.f=null})};_.h.getDrmInfo=function(){return this.m?this.m.getDrmInfo():null};
364
- _.h.load=function(a){var b=this,c,d,e,f,g;return _.z(function(k){switch(k.a){case 1:if(b.w)return k["return"](bm());if(!b.getSurface()||!b.getSurface().getMedia())return k["return"](Promise.reject("No surface or no media element in surface"));c=_.H;d=b.A.getMedia();b.I=Date.now()/1E3;b.f=new _.Cl;b.g.on(b,_.ie,function(){b.f&&_.xl(b.f.a,b.getState())});Rl(b.h,_.Tl);b.o=_.Zl(a);_.bj(a)&&(b.configuration=_.aj(b.od,a));b.log.debug(_.Na,b.configuration);b.log.debug(_.$a,b.o);e=_.ul(b.configuration,["html",
365
- _.xd]);b.J=e.create(b);b.J.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.ej(_.qe)&&!_.yi()&&(b.B=new wg(b),b.B.start(d));b.j?b.j.release():b.j=new cg(b);eg(b.j,d);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.R(b.configuration.volume)||b.setVolume(b.configuration.volume);c.R(b.configuration.muted)||b.setMuted(b.configuration.muted);b.g.one(d,lc,function(){b.trigger(new _.E(_.lp))});_.rf(k,2);return _.v(k,dm(b,d),4);case 4:return _.v(k,gm(b),5);case 5:return _.v(k,im(b).N,
366
- 6);case 6:_.sf(k,0);break;case 2:g=_.tf(k),b.G=!1,b.onError(g),_.w(k)}})};_.h.onError=function(a){this.G||(a.severity===_.K&&null!==this.h&&Rl(this.h,_.Sl),this.trigger(new _.E(_.Xc,{detail:a})))};_.h.rf=function(){return new zh};_.h.getState=function(){return null!==this.h?this.h.getState().currentState:_.Il};
367
- _.h.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!"),0):a.getTime()/1E3}return 0};_.h.getSeekRange=function(){var a=this.getSurface().getMedia();if(a&&a.src){a=a.seekable;if(a.length)return this.D=a={start:a.start(0),end:a.end(a.length-1)};if(this.D)return this.D}return{start:0,end:0}};
368
- _.h.isLive=function(){return this.a&&this.a.src?Infinity===this.a.duration:!1};_.h.getStats=function(){if(!this.f||!this.a)return _.Dl();this.f&&_.xl(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.j=a.videoWidth;b.f=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.h=Number(a.droppedVideoFrames),b.g=c,this.f.B=Number(a.corruptedVideoFrames));return this.f.getStats()};
369
- _.h.getTimelineCues=function(){return this.j?this.j.getTimelineCues():[]};jm.prototype.a=function(){return zc};jm.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.Sb,e=c===_.Xb,f=c===_.Yb;return _.vi()||d||e||f&&!_.wi()?0:""!==Bi().canPlayType(c)?f&&_.wi()&&window.MediaSource&&MediaSource.isTypeSupported&&!b.streaming.preferNativeHlsOnSafari?1:2:0};jm.prototype.create=function(){return new am};_.Qf(new jm);_.A("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.A("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1});_.A("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var qm=new _.D("clpp.ads"),pm=[];_.A("clpp.utils.dom.createHTMLElement",_.xm);_.h=Am.prototype;_.h.getMedia=function(){return this.a};_.h.getContainer=function(){return this.f};_.h.getCastElement=function(){return this.j};_.h.isFullscreen=function(){return!!document.fullscreenElement};_.h.hideMediaElement=function(){var a=this.getMedia();a?_.vm(a,wc):this.h.debug("No media element available that could be hidden")};_.h.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(wc):this.h.debug("No media element available that could be shown")};
370
- _.h.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&&_.vm(a,_.vc);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};_.h.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.h.hide=function(a){_.vm(a,wc)};_.h.show=function(a){a.classList.remove(wc)};_.h.release=function(){this.m.release()};
371
- Am.prototype.removeElementFromContainer=Am.prototype.removeElementFromContainer;Am.prototype.addElementToContainer=Am.prototype.addElementToContainer;Am.prototype.getCastElement=Am.prototype.getCastElement;Am.prototype.getContainer=Am.prototype.getContainer;Am.prototype.getMedia=Am.prototype.getMedia;var ym={disableContainer:!1,crossorigin:"anonymous",containerEl:null};Em.prototype.release=function(){this.a.release();Im(this);this.l=null};_.A("clpp.polyfill.installAll",Lm);var Km=[];_.A("clpp.polyfill.register",_.Mm);Om.prototype.verify=function(a,b){var c={kty:"RSA",n:a.n,e:a.e},d=this.g+"."+this.f,e=this.h;return new Promise(function(f,g){try{var k=window&&window.crypto&&window.crypto.subtle}catch(m){}if(k){var l={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};k.importKey("jwk",c,l,!1,["verify"]).then(function(m){var n=_.Xg(d),p=_.lj(e);return k.verify(l,m,p.buffer,n.buffer)}).then(function(m){m?f():g(kb)})["catch"](g)}else b?g("Web Crypto API is not supported"):f()})};var Dp={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},Vi="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";Pm.prototype.verify=function(){var a=this;return(new Promise(function(b,c){try{var d=Qm(a);b(d)}catch(e){c()}})).then(function(b){return b.verify(Dp)})["catch"](function(b){if(b&&b!==kb){var c=window.location.href;var d=new _.Wh(c);c=d.Ua||d.Ia?d:new _.Wh("//"+c);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(c.Ia))return Promise.resolve()}throw b;})};var an="vod",$m="live";_.u(S,_.Ph);_.h=S.prototype;_.h.init=function(){};_.h.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.E(_.Xc,{detail:a}))};_.h.Yb=function(a){a=this.M[a];void 0===a&&(a=null);return a};_.h.getSurface=function(){return this.h};_.h.getConfiguration=function(){return _.H.ya(this.f)};_.h.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.h.unload=function(){return this.a?this.a.unload():Promise.resolve()};
372
- _.h.release=function(){var a=this;if(null!=this.m)return this.g.info("Player release already in progress"),this.m;this.g.debug("Releasing player");this.m=hn(this);return this.m["finally"](function(){a.g.debug("Player released");a.m=null})};
373
- _.h.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(xa);a.trigger(new _.E("destroying"));return a.fc(_.Ed)}).then(function(){a.a&&a.a.removeDelegate(a);a.Tc.clear();a.U.release();if(a.a)return a.a.destroy()}).then(function(){hj(function(b){b.va()});_.dj.clear();a.a=null;a.trigger(new _.E("destroyed"))})};
374
- _.h.load=function(a){var b=this,c;return _.z(function(d){switch(d.a){case 1:return _.rf(d,2),_.v(d,_.ln(b,a),4);case 4:return _.v(d,_.mn(b),5);case 5:return _.v(d,_.on(b),6);case 6:_.sf(d,0);break;case 2:c=_.tf(d);if(b.m)throw b.g.info("Load interrupted while a player release is pending"),new _.J(_.K,7,7E3);throw c;}})};
375
- _.h.fc=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];var e=this;d=this.K.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.df(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};_.h.use=function(a){a=new a;a.Ea(this);_.gj(a)};_.h.remove=function(a){if(this.getState()<=_.Hl||this.I){var b="";hj(function(c){c instanceof a&&(b=c.id(),c.va())});if(b)return _.dj["delete"](b),this.J=!0}return!1};
376
- _.h.play=function(){return this.a?this.j&&this.a.namespace()!==_.xc?this.j.start(this.a):this.a.play():Promise.reject("No player initialized. You need to load content before calling play.")};_.h.pause=function(){return this.a?this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};_.h.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.h.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.Oh};
377
- _.h.getState=function(){return this.a?this.a.getState():_.Hl};_.h.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.h.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.h.isPaused=function(){return this.a&&this.a.isPaused()||!1};_.h.getPosition=function(){return this.a?this.a.getPosition():0};_.h.seek=function(a){return this.getState()===_.Sl?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};
378
- _.h.getPresentationStartTime=function(){return this.a?this.a.getPresentationStartTime():0};_.h.getSeekRange=function(){return this.a?this.a.getSeekRange():{start:0,end:0}};_.h.getVolume=function(){return this.a?this.a.getVolume():null};_.h.setVolume=function(a){this.a&&this.a.setVolume(a)};_.h.getDuration=function(){return this.a?this.a.getDuration():-1};_.h.getAdsManager=function(){return this.j};_.h.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};
379
- _.h.canPlay=function(a,b){return this.a?this.a.canPlay(a,b):0};_.h.getPlaybackRate=function(){return this.a?this.a.getPlaybackRate():1};_.h.setPlaybackRate=function(a){this.a&&this.a.setPlaybackRate(a)};_.h.isMuted=function(){return this.a&&this.a.isMuted()||!1};_.h.setMuted=function(a){this.a&&this.a.setMuted(a)};_.h.getNetworkEngine=function(){return this.G};_.h.setNetworkEngine=function(a){this.G=a};_.h.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};
380
- _.h.isLive=function(){return!!this.a&&this.a.isLive()};_.h.getStats=function(){return this.a?this.a.getStats():null};_.h.vd=function(){return Object.freeze(this.o)};_.h.setSourceIndex=function(a){this.a&&this.a.setSourceIndex(a)};_.h.getSourceIndex=function(){return this.a?this.a.getSourceIndex():-1};_.h.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};_.h.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.h.resetAbr=function(){this.a&&this.a.resetAbr()};
381
- _.h.setDrmCustomDataModifier=function(a){this.yc=a;kn(this)};_.h.setCdnErrorCallback=function(a){this.C=a;this.a&&this.a.setCdnErrorCallback(this.C)};_.h.Mf=function(){this.be=!0};_.A("clpp.Player",S);S.registerPlugin=_.pn;S.prototype.setCdnErrorCallback=S.prototype.setCdnErrorCallback;S.prototype.setDrmCustomDataModifier=S.prototype.setDrmCustomDataModifier;S.prototype.resetAbr=S.prototype.resetAbr;S.prototype.getTimelineCues=S.prototype.getTimelineCues;S.prototype.getLoadedSource=S.prototype.getLoadedSource;
382
- S.prototype.getSources=S.prototype.vd;S.prototype.getStats=S.prototype.getStats;S.prototype.isLive=S.prototype.isLive;S.prototype.getTextDisplayer=S.prototype.getTextDisplayer;S.prototype.setNetworkEngine=S.prototype.setNetworkEngine;S.prototype.getNetworkEngine=S.prototype.getNetworkEngine;S.prototype.setMuted=S.prototype.setMuted;S.prototype.isMuted=S.prototype.isMuted;S.prototype.setPlaybackRate=S.prototype.setPlaybackRate;S.prototype.getPlaybackRate=S.prototype.getPlaybackRate;
383
- S.prototype.namespace=S.prototype.namespace;S.prototype.getAdsManager=S.prototype.getAdsManager;S.prototype.getDuration=S.prototype.getDuration;S.prototype.setVolume=S.prototype.setVolume;S.prototype.getVolume=S.prototype.getVolume;S.prototype.getSeekRange=S.prototype.getSeekRange;S.prototype.getPresentationStartTime=S.prototype.getPresentationStartTime;S.prototype.seek=S.prototype.seek;S.prototype.getPosition=S.prototype.getPosition;S.prototype.isPaused=S.prototype.isPaused;S.prototype.isEnded=S.prototype.isEnded;
384
- S.prototype.getState=S.prototype.getState;S.prototype.getBufferInfo=S.prototype.getBufferInfo;S.prototype.getTrackManager=S.prototype.getTrackManager;S.prototype.pause=S.prototype.pause;S.prototype.play=S.prototype.play;S.prototype.remove=S.prototype.remove;S.prototype.use=S.prototype.use;S.prototype.load=S.prototype.load;S.prototype.destroy=S.prototype.destroy;S.prototype.release=S.prototype.release;S.prototype.getDrmInfo=S.prototype.getDrmInfo;S.prototype.getConfiguration=S.prototype.getConfiguration;
385
- S.prototype.getSurface=S.prototype.getSurface;S.prototype.getPlugin=S.prototype.Yb;_.Hl=0;_.Tl=1;_.Ml=2;_.Vl=3;_.Ul=4;_.Ol=5;_.Sl=6;_.Il=7;_.Ql={IDLE:_.Hl,PREPARING:_.Tl,BUFFERING:_.Ml,PLAYING:_.Vl,PAUSED:_.Ul,ENDED:_.Ol,ERROR:_.Sl,UNSET:_.Il};S.State=_.Ql;var en=[];_.h=U.prototype;_.h.mb=function(){};_.h.nb=function(){};_.h.sb=function(){};_.h.ba=function(){};_.h.getCreativeId=function(){};_.h.getApiFramework=function(){};_.h.getAdSystem=function(){};_.h.getAdvertiserName=function(){};_.h.getTitle=function(){};_.h.getDuration=function(){};_.h.getSkipTimeOffset=function(){};_.h.bc=function(){};_.h.Hb=function(){};_.h.getMediaUrl=function(){};_.h.pb=function(){};_.h.ob=function(){};_.h.ab=function(){};_.h.Qa=function(){};_.h.getPodIndex=function(){};_.h.Ib=function(){};
386
- _.h.Jb=function(){};_.h.rb=function(){};_.h.getWrapperAdIds=function(){};_.h.getWrapperAdSystems=function(){};_.h.getWrapperCreativeIds=function(){};_.A("clpp.ads.IAd",U);U.prototype.getWrapperCreativeIds=U.prototype.getWrapperCreativeIds;U.prototype.getWrapperAdSystems=U.prototype.getWrapperAdSystems;U.prototype.getWrapperAdIds=U.prototype.getWrapperAdIds;U.prototype.getSequenceLength=U.prototype.rb;U.prototype.getPositionInSequence=U.prototype.Jb;U.prototype.getPodTimeOffset=U.prototype.Ib;
387
- U.prototype.getPodIndex=U.prototype.getPodIndex;U.prototype.getPodType=U.prototype.Qa;U.prototype.getMediaBitrate=U.prototype.ab;U.prototype.getMediaHeight=U.prototype.ob;U.prototype.getMediaWidth=U.prototype.pb;U.prototype.getMediaUrl=U.prototype.getMediaUrl;U.prototype.getClickThroughUrl=U.prototype.Hb;U.prototype.isBumper=U.prototype.bc;U.prototype.getSkipTimeOffset=U.prototype.getSkipTimeOffset;U.prototype.getDuration=U.prototype.getDuration;U.prototype.getTitle=U.prototype.getTitle;
388
- U.prototype.getAdvertiserName=U.prototype.getAdvertiserName;U.prototype.getAdSystem=U.prototype.getAdSystem;U.prototype.getApiFramework=U.prototype.getApiFramework;U.prototype.getCreativeId=U.prototype.getCreativeId;U.prototype.getId=U.prototype.ba;U.prototype.getTechnology=U.prototype.sb;U.prototype.getAdManagerVersion=U.prototype.nb;U.prototype.getAdManagerName=U.prototype.mb;qn.prototype.name=function(){};qn.prototype.W=function(){};qn.prototype.create=function(){};_.A("clpp.ads.IAdsManagerFactory",qn);qn.prototype.create=qn.prototype.create;qn.prototype.isSupported=qn.prototype.W;qn.prototype.name=qn.prototype.name;_.h=rn.prototype;_.h.load=function(){};_.h.start=function(){};_.h.resume=function(){};_.h.pause=function(){};_.h.skip=function(){};_.h.getVolume=function(){};_.h.setVolume=function(){};_.h.getPosition=function(){};_.h.dispose=function(){};_.A("clpp.ads.IAdsManager",rn);rn.prototype.getPosition=rn.prototype.getPosition;rn.prototype.setVolume=rn.prototype.setVolume;rn.prototype.getVolume=rn.prototype.getVolume;rn.prototype.skip=rn.prototype.skip;rn.prototype.pause=rn.prototype.pause;
389
- rn.prototype.resume=rn.prototype.resume;_.h=sn.prototype;_.h.load=function(){return Promise.resolve()};_.h.start=function(a){return a.play()};_.h.resume=function(){};_.h.pause=function(){};_.h.skip=function(){};_.h.getVolume=function(){return 1};_.h.setVolume=function(){};_.h.getPosition=function(){return-1};_.h.dispose=function(){return _.z(function(a){_.w(a)})};sn.prototype.dispose=sn.prototype.dispose;sn.prototype.getPosition=sn.prototype.getPosition;sn.prototype.setVolume=sn.prototype.setVolume;sn.prototype.getVolume=sn.prototype.getVolume;
390
- sn.prototype.skip=sn.prototype.skip;sn.prototype.pause=sn.prototype.pause;sn.prototype.resume=sn.prototype.resume;sn.prototype.start=sn.prototype.start;sn.prototype.load=sn.prototype.load;sm.prototype.name=function(){return"clpp.ads.NopAdsManagerFactory"};sm.prototype.W=function(){return!0};sm.prototype.create=function(){return new sn};sm.prototype.create=sm.prototype.create;sm.prototype.isSupported=sm.prototype.W;sm.prototype.name=sm.prototype.name;tn.prototype.getCuePoints=function(){};tn.prototype.Kb=function(){};tn.prototype.bb=function(){};_.A("clpp.ads.IAdsTimeline",tn);tn.prototype.hasPostroll=tn.prototype.bb;tn.prototype.hasPreroll=tn.prototype.Kb;tn.prototype.getCuePoints=tn.prototype.getCuePoints;_.un.prototype.Ub=function(){};_.un.prototype.release=function(){};_.h=vn.prototype;_.h.md=function(a){this.a=a};_.h.Pc=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(Sa)};_.h.ud=function(){return this.a&&this.a.mediaKeys};_.h.wc=function(a,b){return navigator.requestMediaKeySystemAccess(a,b)};_.h.Oc=function(){return gb};wn.prototype.a=function(){return gb};wn.prototype.W=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};
391
- wn.prototype.create=function(){return new vn};Ck(new wn,1E3);_.h=xn.prototype;_.h.forEach=function(a){this.a&&a(this.a,Ep.value())};_.h.get=function(a){if(this.has(a))return this.a};_.h.has=function(a){var b=Ep.value();return this.a&&Lg(a,b)?!0:!1};_.h.entries=function(){};_.h.keys=function(){};_.h.values=function(){};var Ep=new _.El(function(){return Rg(new Uint8Array([0]))});_.h=yn.prototype;_.h.md=function(){};_.h.Pc=function(a){_.Kf("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.h.ud=function(){return null};_.h.wc=function(){_.Kf("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.h.Oc=function(){return"NOP"};zn.prototype.a=function(){return"NOP"};zn.prototype.W=function(){return!0};zn.prototype.create=function(){return new yn};
392
- Ck(new zn,-1);_.h=An.prototype;_.h.md=function(a){this.f=a};_.h.Pc=function(a){var b=this.a;b&&b!==a&&Dn(b,null);return(this.a=a)?Dn(a,this.f):Promise.resolve()};_.h.ud=function(){return this.a};_.h.wc=function(a,b){_.Kf("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new Bn(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.h.Oc=function(){return"APPLE"};Bn.prototype.createMediaKeys=function(){var a=new Cn(this.keySystem);return Promise.resolve(a)};
393
- Bn.prototype.getConfiguration=function(){_.Kf("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};Cn.prototype.createSession=function(a){a=void 0===a?se:a;_.Kf("AppleEmeManager.MediaKeys.createSession");if(a!==se)throw new TypeError("Session type "+a+ba);return new En(this.g)};Cn.prototype.setServerCertificate=function(){_.Kf("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.u(En,_.Ph);_.h=En.prototype;
394
- _.h.generateRequest=function(a,b){var c=this;_.Kf("AppleEmeManager.MediaKeySession.generateRequest");this.f=new _.Qh;try{var d=this.j.createSession(_.Ke,_.Q(b));this.g=d;this.sessionId=d.sessionId||"";this.h.on(d,Ve,function(e){_.Kf("AppleEmeManager.onWebkitKeyMessage_",e);c.f&&(c.f.resolve(),c.f=null);e=new _.E(od,{messageType:void 0===c.keyStatuses.a?gd:fd,message:Rg(e.message.buffer)});c.dispatchEvent(e)});this.h.on(d,Te,function(e){_.Kf("AppleEmeManager.onWebkitKeyAdded_",e);c.a&&(Fn(c,"usable"),
395
- c.a.resolve(),c.a=null)});this.h.on(d,Ue,function(e){_.Kf("AppleEmeManager.onWebkitKeyError_",e);e=Error("EME AppleEmeManager key error");e.errorCode=c.g.error;if(null!==c.f)c.f.reject(e),c.f=null;else if(null!==c.a)c.a.reject(e),c.a=null;else switch(c.g.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:Fn(c,"output-not-allowed");break;default:Fn(c,_.cd)}});Fn(this,ke)}catch(e){this.f.reject(e)}return this.f};
396
- _.h.load=function(){_.Kf("AppleEmeManager.MediaKeySession.load");return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.h.update=function(a){_.Kf("AppleEmeManager.MediaKeySession.update");this.a=new _.Qh;try{this.g.update(_.Q(a))}catch(b){this.a.reject(b)}return this.a};_.h.close=function(){_.Kf("AppleEmeManager.MediaKeySession.close");try{this.g.close(),this.closed.resolve(),_.ag(this.h)}catch(a){this.closed.reject(a)}return this.closed};
397
- _.h.remove=function(){_.Kf("AppleEmeManager.MediaKeySession.remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};Gn.prototype.a=function(){return"APPLE"};Gn.prototype.W=function(){return!!window.WebKitMediaKeys};Gn.prototype.create=function(){return new An};Ck(new Gn,1100);_.h=Hn.prototype;_.h.md=function(a){this.a=a};_.h.Pc=function(a){_.Kf("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(Sa);var b=this.f;b&&b!==a&&Mn(b,null);(this.f=a)&&Mn(a,this.a);return Promise.resolve()};_.h.ud=function(){return this.f};_.h.wc=function(a,b){_.Kf("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.Ie);c=d.length?d[0]:document.createElement(_.Ie)}var e=new In(this.g,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
398
- _.h.Oc=function(){return"WEBKIT"};In.prototype.createMediaKeys=function(){return Promise.resolve(new Jn(this.g,this.a))};In.prototype.getConfiguration=function(){return this.f};Jn.prototype.createSession=function(a){a=void 0===a?se:a;if(a!==se&&a!==_.Nd)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=La,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new Nn(this.g,this.a,this.m,a);this.h.push(a);return a};
399
- Jn.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.u(Nn,_.Ph);_.h=Nn.prototype;_.h.generateRequest=function(a,b){_.Kf("WebkitEmeManager.MediaKeySession.generateRequest");return Pn(this,b,null)};_.h.load=function(a){_.Kf(sb);return this.j===_.Nd?Pn(this,null,a):Promise.reject(Error(Wa))};_.h.update=function(a){_.Kf(sb);var b=new _.Qh;Qn(this,b,a);return b};
400
- _.h.close=function(){_.Kf("WebkitEmeManager.MediaKeySession.close");if(this.j!==_.Nd){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=On(this,"cancelKeyRequest");try{this.h[a](this.g,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.h.remove=function(){_.Kf("WebkitEmeManager.MediaKeySession.remove");return this.j!==_.Nd?Promise.reject(Error(Wa)):this.close()};Rn.prototype.a=function(){return"WEBKIT"};
401
- Rn.prototype.W=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};Rn.prototype.create=function(){return new Hn};Ck(new Rn);_.u(Sn,_.Aj);Sn.prototype.Zc=function(a,b){for(var c=a.drm.customData.headers||{},d=_.t(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};Sn.prototype.wf=function(a,b){var c=ak(b);switch(this.o){case Fp:return c;case Gp:return(new _.Vj(c)).f;default:throw Error("Unknown content ID strategy");}};Sn.prototype.Qf=function(a,b){b.headers[pa]=Zb;this.Zc(a,b);var c={spc:_.jj(b.body)};b.body=_.Zg(_.Xj(c,!0))};
402
- Sn.prototype.Rf=function(a,b){var c=_.Tg(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.lj(c).buffer};_.A(yc,Sn);Sn.prototype.onFairPlayLicenseResponse=Sn.prototype.Rf;Sn.prototype.onFairPlayLicenseRequest=Sn.prototype.Qf;Sn.prototype.extractFairPlayContentId=Sn.prototype.wf;Sn.prototype.onLicenseRequest=Sn.prototype.Zc;Sn.prototype.constructor=Sn.prototype.constructor;Sn.NAME=Ha;var Gp="hostname",Fp="full-skd";
403
- Sn.FairPlayContentIdStrategy={HOSTNAME:Gp,FULL_SKD:Fp};_.u(Tn,_.un);_.h=Tn.prototype;_.h.Ea=function(a){this.l=a};_.h.va=function(){this.l=null};_.h.Ub=function(){var a=this.l.getConfiguration();if(a.drm&&a.drm&&a.drm.env===Ha){a=a.drm.customData;if(!a)throw new _.J(_.K,7,7100,_.Hc);a=new Sn(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||Fp);_.vj(a)}};_.h.release=function(){};_.h.id=function(){return"headerdrm"};_.A("clpp.drm.HeaderDrmComponent",Tn);_.Mm(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=_.Q(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.Mm(function(){_.Kf("mathRound.install")});_.Mm(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;Yc in document||(Object.defineProperty(document,Yc,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
404
- {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Un);document.addEventListener("webkitfullscreenerror",Un);document.addEventListener("mozfullscreenchange",Un);document.addEventListener("mozfullscreenerror",Un);document.addEventListener("MSFullscreenChange",Un);document.addEventListener("MSFullscreenError",Un)}});_.Mm(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Kf("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Wn,document.exitPictureInPicture=Xn,document.addEventListener("webkitpresentationmodechanged",Vn,!0))}});_.Mm(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=Yn)}});_.Mm(function(){if(window.VTTCue)_.Jf("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Jf(rb),window.VTTCue=Zn;else if(6===a)_.Jf("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=$n;else{try{var b=!!Zn(1,2,"")}catch(c){b=!1}b&&(_.Jf(rb),window.VTTCue=Zn)}}else _.Lf("VTTCue not available.")});var ao;_.Mm(function(){_.Kf("InputEvent.install");_.si("Trident/")&&HTMLInputElement.prototype.addEventListener!==bo&&(_.Jf("Patching input event support on IE."),ao=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=bo)});_.Mm(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.Mm(function(){_.Kf("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}}});_.mo.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.g(b.contentRect.width,b.contentRect.height,a.f.isFullscreen())});this.a.observe(this.h)};_.mo.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.oo.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.Ie);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.Qh;c=c.play();var e=(new _.qh(function(){b(a)})).$(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===Ya?b(!0):b(!1)}):b(!0);return d};
405
- var no=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,
372
+ 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]};_.Lj.prototype.Ka=function(a,b){this.g[a]=b};_.C("clpp.drm.DrmEnvironment",_.Lj);_.Lj.prototype.setDrmSystem=_.Lj.prototype.Ka;_.Nj.prototype.getPosition=function(){return this.a};_.Nj.prototype.ya=function(){return this.f.byteLength};_.Nj.prototype.seek=function(a){(0>a||a>this.f.byteLength)&&_.Oj();this.a=a};_.Nj.prototype.seek=_.Nj.prototype.seek;_.Qj.prototype.getPosition=function(){return this.a};_.Qj.prototype.ya=function(){return this.f.byteLength};_.Qj.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.Sj();this.a+=a};_.Qj.prototype.seek=function(a){if(0>a||a>this.f.byteLength)throw _.Sj();this.a=a};_.t=_.Zj.prototype;_.t.M=function(a,b){var c=dk(a);this.g[c]=Yp;this.f[c]=b;return this};_.t.V=function(a,b){var c=dk(a);this.g[c]=Zp;this.f[c]=b;return this};_.t.stop=function(){this.a=!0};_.t.parse=function(a,b){var c=_.R(a);c=new _.Qj(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.Rj(c)&&!this.a;)this.Nd(0,c,b)};
373
+ _.t.Nd=function(a,b,c){var d=b.getPosition(),e=_.U(b),f=_.U(b),g=!1;this.h.debug("Parsing MP4 box",_.ek(f));switch(e){case 0:e=b.ya()-d;break;case 1:e=_.Xj(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.g[f]==Zp&&(m=_.U(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.ya()&&(n=b.ya());n-=b.getPosition();b=0<n?_.Yj(b,n):new Uint8Array(0);b=new _.Qj(new DataView(b.buffer,b.byteOffset,b.byteLength),!1);h({Wa:this,gg:c||!1,version:l,flags:m,F:b,size:e,start:d+a,re:f,li:g})}else a=Math.min(d+
374
+ e-b.getPosition(),b.ya()-b.getPosition()),b.skip(a)};_.C("clpp.utils.Mp4Parser",_.Zj);_.Zj.typeToString=_.ek;_.Zj.allData=_.ck;_.Zj.sampleDescription=_.bk;_.Zj.children=_.ak;_.Zj.prototype.parseNext=_.Zj.prototype.Nd;_.Zj.prototype.parse=_.Zj.prototype.parse;_.Zj.prototype.stop=_.Zj.prototype.stop;_.Zj.prototype.fullBox=_.Zj.prototype.V;_.Zj.prototype.box=_.Zj.prototype.M;_.Zj.headerSize=_.fk;var Yp=0,Zp=1;_.C("clpp.utils.url.queryString",_.ik);_.C("clpp.utils.FairplayUtils",kk);kk.parseFairPlayResponse=_.qk;kk.formatFairPlayRequest=_.pk;kk.createFairplayPayload=ok;kk.extractContentId=_.mk;kk.extractExtXKeyUri=lk;var Bk=new _.H("clpp.drm.DrmToday"),sk="PRODUCTION",tk="STAGING",uk="TEST",$p={PRODUCTION:sk,STAGING:tk,TEST:uk};_.C("clpp.drm.DrmToday.Environment",$p);_.C("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
375
+ for(var wk="/license-proxy-widevine/cenc/",xk="/license-proxy-headerauth/drmtoday/RightsManager.asmx",yk="/license-server-fairplay/",Jk={"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",
376
+ 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"},aq={video:[_.lb,void 0],audio:[_.kb,void 0]},bq={video:["3000"],
377
+ audio:["2000"]},cq=_.u(Object.keys($p)),dq=cq.next();!dq.done;dq=cq.next()){var rk=dq.value,eq=za;rk!==sk&&(eq+="_"+rk);var fq=new _.Lj(eq),gq=null;switch(rk){case sk:gq=Kj("V1_PROD");break;case tk:gq=Kj("V2");break;case uk:gq=null}fq.Ka(_.Nc,{licenseUrl:zk(_.Nc),videoRobustness:aq.video,audioRobustness:aq.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:gq,modifiers:{licenseRequest:_.Dk,licenseResponse:_.Ik}});fq.Ka(_.Lc,{licenseUrl:zk(_.Lc),certificateUrl:vk()+
378
+ "/license-server-fairplay/cert/",modifiers:{licenseRequest:_.Fk,licenseResponse:_.Gk,extractContentId:_.Ck,certificateRequest:_.Hk}});fq.Ka(_.Mc,{licenseUrl:zk(_.Mc),videoRobustness:bq.video,audioRobustness:bq.audio,modifiers:{licenseRequest:Ek}});_.Gj(fq)};_.C("clpp.drm.eme.EmeFactory",Lk);var Mk=[];Lk.Apis={STANDARD:jb,APPLE:"APPLE",WEBKIT:"WEBKIT",NOP:"NOP"};var Vk;_.bl=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];Vk=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.v(Uk,Tk);_.v(_.Yk,Tk);el.prototype.h=function(a){if(1<a.version)_.F("Unrecognized PSSH version found!");else{var b=_.yj(_.Yj(a.F,16)),c=[];if(0<a.version)for(var d=_.U(a.F),e=0;e<d;++e){var f=_.yj(_.Yj(a.F,16));c.push(f)}d=_.U(a.F);a.F.skip(d);this.g.push.apply(this.g,c);this.f.push(b);this.a.push({start:a.start,end:a.start+a.size-1});a.F.getPosition()!=a.F.ya()&&_.F("Mismatch between box size and data size!")}};_.t=_.il.prototype;_.t.destroy=function(){var a=this;return _.A(function(b){if(1==b.a){if(a.j)return _.y(b,a.Ra,0);a.j=!0;return _.y(b,kl(a),4)}a.Ra.resolve();return b.H(0)})};_.t.keySystem=function(){return this.f?_.Hl(this.f.keySystem):""};_.t.getDrmInfo=function(){return this.f};_.t.dg=function(a){var b=this;return _.A(function(c){return b.G&&b.K===ll?c["return"]():!b.h.delayLicenseRequestUntilPlayed||b.C&&!b.C.paused||b.qb?_.y(c,Sl(b,a),0):(b.da.push(a),c.H(0))})};
379
+ _.t.$f=function(a){var b=this,c=a.target;this.a.info("Key status changed for session",c.sessionId);var d=this.g.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if(typeof h==_.se){var l=h;h=g;g=l}if(Ol(b.f.keySystem)&&16===h.byteLength&&_.Di()){l=_.Yg(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!==qe&&(d.loaded=!0);d&&d.za&&d.za.resolve();"expired"===g&&(e=!0);l=_.R(h);var q=_.yj(l);"00"===q&&d&&d.keyId?q=d.keyId:
380
+ b.f.keySystem.startsWith(_.Lc)&&16!==l.byteLength&&(q=$g(l));(l=q||"")?b.a.info(Pa+q+"': "+g):b.a.info("Key status global keys: "+g);b.m.set(l,g);d&&!d.keyId&&b.g.forEach(function(r,w){w===c||r.keyId!==q||r.loaded||(r.loaded=!0)})});d&&d.bb.forEach(function(g){b.m.get(g)===qe&&(b.a.warn(Pa+g+ea),b.m.set(g,_.Pd))});for(a=0;a<this.f.initData.length;a++){var f=this.f.initData[a];f.keyId&&this.m.get(f.keyId)===qe&&_.zj(f.initData,d.initData)&&(this.a.warn(Pa+f.keyId+ea),this.m.set(f.keyId,_.Pd))}a=c.expiration-
381
+ Date.now();(0>a||e&&1E3>a)&&d&&!d.nb&&(this.a.debug("Session has expired",c.sessionId),(a=this.g.get(c))&&a.Ac&&a.Ac.stop(),this.g["delete"](c),c.close()["catch"](function(){}));Jl(this)&&(this.I.resolve(),1!==this.g.size||e?this.ca.$(.5):gl(this))};var ll=0,fl=3;Tl.prototype.W=function(){};Tl.prototype.create=function(){};_.C("clpp.text.TextDisplayerFactory",Tl);Tl.prototype.create=Tl.prototype.create;Tl.prototype.isSupported=Tl.prototype.W;var Ul=new Map,Vl=new _.H("clpp.text");Tl.Type={HTML:"html",NATIVE:_.Ed,SINGLE_NATIVE:_.ke};_.Nm={VIDEO:_.Oe,AUDIO:_.gc,TEXT:_.ze,Qj:_.Xb,IMAGE:_.id,Zj:_.ve};_.hq=1/15;_.em.prototype.getStats=function(){return{width:this.j,height:this.f,streamBandwidth:this.A,decodedFrames:this.g,droppedFrames:this.h,corruptedFrames:this.B,estimatedBandwidth:this.m,loadLatency:this.o,playTime:am(this.a,_.xm),pauseTime:am(this.a,_.wm),bufferingTime:am(this.a,_.om),stateHistory:bm(this.a),switchHistory:dm(this.w)}};_.gm.prototype.value=function(){void 0==this.a&&(this.a=this.f());return this.a};var hm=new _.gm(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.rd],[HTMLMediaElement.HAVE_CURRENT_DATA,_.qd],[HTMLMediaElement.HAVE_FUTURE_DATA,sc],[HTMLMediaElement.HAVE_ENOUGH_DATA,tc]])});mm.prototype.Sb=function(a,b){this.l&&this.l.trigger(new _.J(a,{detail:b}))};mm.prototype.getState=function(){return pm(this,"")};mm.prototype.S=function(a){(a=a&&a.detail)&&a.severity&&a.severity===_.M&&tm(this,_.um)};mm.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.l.namespace());this.a.release()};_.C("clpp.version",_.ia);_.C("clpp.name",_.sa);_.C("clpp.Type",{DASH:_.Zb,HLS:_.ec,SMOOTH_STREAMING:_.dc,MP4:_.Qe});_.lg="scte35";_.jg=Ge;_.C("clpp.TimelineCueType",{SCTE35:_.lg,DASH_CALLBACK:_.Dd,UNKNOWN:_.jg});_.C("clpp.utils.media.detectType",Em);var Hm=new _.H("clpp.sources");_.v(Im,_.nj);_.t=Im.prototype;_.t.init=function(a,b){_.nj.prototype.init.call(this,a,b);this.h=new mm(this);tm(this.h,_.jm)};_.t.namespace=function(){return Gc};
382
+ _.t.unload=function(){var a=this,b;return _.A(function(c){if(!a.o)return c.H(0);a.log.debug(_.hb,a.o);a.C&&(a.C.stop(),a.C=null);(b=a.getTrackManager())&&b.release();a.A&&(a.A.destroy(),a.A=null);a.J&&(a.J.destroy(),a.J=null);a.j&&a.j.release();a.m&&(a.m.destroy(),a.m=null);_.eg(a.g);a.f&&(a.f=new _.em);a.D=null;a.o=null;a.G=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());return _.y(c,Mm(a),0)})};
383
+ _.t.release=function(){var a=this;return _.nj.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.h&&tm(a.h,_.jm)})};
384
+ _.t.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.nj.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Da);var b=a.getTrackManager();b&&b.destroy();a.j&&(a.j.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.j=null);a.h&&(a.h.destroy(),a.h=null);a.f=null})};_.t.getDrmInfo=function(){return this.m?this.m.getDrmInfo():null};
385
+ _.t.load=function(a){var b=this,c,d,e,f,g;return _.A(function(h){switch(h.a){case 1:if(b.w)return h["return"](Jm());if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.K;d=b.B.getMedia();b.I=Date.now()/1E3;b.f=new _.em;b.g.on(b,_.oe,function(){b.f&&_.$l(b.f.a,b.getState())});tm(b.h,_.vm);b.o=_.Gm(a);_.mj(a)&&(b.configuration=_.lj(b.ud,a));b.log.debug(_.Ra,b.configuration);b.log.debug(_.db,b.o);e=_.Xl(b.configuration,["html",
386
+ _.Ed]);b.J=e.create(b);b.J.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.pj(_.we)&&!_.Ki()&&(b.A=new Ag(b),b.A.start(d));b.j?b.j.release():b.j=new gg(b);ig(b.j,d);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.R(b.configuration.volume)||b.setVolume(b.configuration.volume);c.R(b.configuration.muted)||b.setMuted(b.configuration.muted);b.g.one(d,sc,function(){b.trigger(new _.J(_.Rp))});_.wf(h,2);return _.y(h,Lm(b,d),4);case 4:return _.y(h,Om(b),5);case 5:return _.y(h,Qm(b).P,
387
+ 6);case 6:_.xf(h,0);break;case 2:g=_.yf(h),b.G=!1,b.onError(g),_.z(h)}})};_.t.onError=function(a){this.G||(a.severity===_.M&&null!==this.h&&tm(this.h,_.um),this.trigger(new _.J(_.dd,{detail:a})))};_.t.yf=function(){return new Kh};_.t.getState=function(){return null!==this.h?this.h.getState().currentState:_.km};
388
+ _.t.getPresentationStartTime=function(){if(this.a&&this.a.getStartDate&&this.isLive()){var a=this.a.getStartDate();return isNaN(a.getTime())?(this.log.warn("EXT-X-PROGRAM-DATETIME required to get presentation start time as Date!"),null):a.getTime()/1E3}return null};_.t.getSeekRange=function(){var a=this.getSurface().getMedia();if(a&&a.src){a=a.seekable;if(a.length)return this.D=a={start:a.start(0),end:a.end(a.length-1)};if(this.D)return this.D}return{start:0,end:0}};
389
+ _.t.isLive=function(){return this.a&&this.a.src?Infinity===this.a.duration:!1};_.t.getStats=function(){if(!this.f||!this.a)return _.fm();this.f&&_.$l(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.j=a.videoWidth;b.f=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.h=Number(a.droppedVideoFrames),b.g=c,this.f.B=Number(a.corruptedVideoFrames));return this.f.getStats()};
390
+ _.t.getTimelineCues=function(){return this.j?this.j.getTimelineCues():[]};Rm.prototype.a=function(){return Gc};Rm.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.Zb,e=c===_.dc,f=c===_.ec;return _.Hi()||d||e||f&&!_.Ii()?0:""!==Ni().canPlayType(c)?f&&_.Ii()&&window.MediaSource&&MediaSource.isTypeSupported&&!b.streaming.preferNativeHlsOnSafari?1:2:0};Rm.prototype.create=function(){return new Im};_.Vf(new Rm);_.C("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.C("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1});_.C("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var Tm=new _.H("clpp.ads"),Sm=[];_.C("clpp.utils.dom.createHTMLElement",_.$m);an.prototype.set=function(a){this.g.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=cn(this,a)};an.prototype.get=function(){return this.a};_.t=gn.prototype;_.t.getMedia=function(){return this.g.get()};_.t.getContainer=function(){return this.f.get()};_.t.getSafeContainer=function(){return this.f};_.t.getId=function(){return this.m};_.t.getUniqueCssClass=function(){return this.o};_.t.getCastElement=function(){return this.h};_.t.isFullscreen=function(){return!!document.fullscreenElement};_.t.hideMediaElement=function(){var a=this.getMedia();a?_.Ym(a,Cc):this.a.debug("No media element available that could be hidden")};
391
+ _.t.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(Cc):this.a.debug("No media element available that could be shown")};_.t.addElementToContainer=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.getContainer();if(!d)throw Error("No container is available. Unable to add element");b&&_.Ym(a,_.Bc);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
392
+ _.t.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.t.hide=function(a){_.Ym(a,Cc)};_.t.show=function(a){a.classList.remove(Cc)};_.t.release=function(){this.j.release()};gn.prototype.removeElementFromContainer=gn.prototype.removeElementFromContainer;gn.prototype.addElementToContainer=gn.prototype.addElementToContainer;gn.prototype.getCastElement=gn.prototype.getCastElement;
393
+ gn.prototype.getContainer=gn.prototype.getContainer;gn.prototype.getMedia=gn.prototype.getMedia;var dn={disableContainer:!1,crossorigin:"anonymous",containerEl:null},en=1;jn.prototype.release=function(){this.a.release();nn(this);this.l=null};_.C("clpp.polyfill.installAll",qn);var pn=[];_.C("clpp.polyfill.register",_.rn);tn.prototype.verify=function(a,b){var c={kty:"RSA",n:a.n,e:a.e},d=this.g+"."+this.f,e=this.h;return new Promise(function(f,g){try{var h=window&&window.crypto&&window.crypto.subtle}catch(m){}if(h){var l={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};h.importKey("jwk",c,l,!1,["verify"]).then(function(m){var n=_.eh(d),p=_.wj(e);return h.verify(l,m,p.buffer,n.buffer)}).then(function(m){m?f():g(ob)})["catch"](g)}else b?g("Web Crypto API is not supported"):f()})};var iq={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},fj="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";un.prototype.verify=function(){var a=this;return(new Promise(function(b,c){try{var d=vn(a);b(d)}catch(e){c()}})).then(function(b){return b.verify(iq)})["catch"](function(b){if(b&&b!==ob){var c=window.location.href;var d=new _.gi(c);c=d.Ya||d.Na?d:new _.gi("//"+c);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(c.Na))return Promise.resolve()}throw b;})};var Gn="vod",Fn="live";_.v(V,_.$h);_.t=V.prototype;_.t.on=function(a,b,c){return _.$h.prototype.on.call(this,a,b,c)};_.t.one=function(a,b,c){return _.$h.prototype.one.call(this,a,b,c)};_.t.off=function(a,b){return _.$h.prototype.off.call(this,a,b)};_.t.init=function(){};_.t.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.J(_.dd,{detail:a}))};_.t.$b=function(a){a=this.L[a];void 0===a&&(a=null);return a};_.t.getSurface=function(){return this.h};_.t.getConfiguration=function(){return _.K.Ma(this.f)};
394
+ _.t.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.t.unload=function(){return this.a?this.a.unload():Promise.resolve()};_.t.release=function(){var a=this;if(null!=this.m)return this.g.info("Player release already in progress"),this.m;this.g.debug("Releasing player");this.m=Nn(this);return this.m["finally"](function(){a.g.debug("Player released");a.m=null})};
395
+ _.t.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(Da);a.trigger(new _.J("destroying"));return a.gc(_.Jd)}).then(function(){a.a&&a.a.removeDelegate(a);a.Yc.clear();a.U.release();if(a.a)return a.a.destroy()}).then(function(){sj(function(b){b.Ca()});_.oj.clear();a.a=null;a.trigger(new _.J("destroyed"))})};
396
+ _.t.load=function(a){var b=this,c;return _.A(function(d){switch(d.a){case 1:return _.wf(d,2),_.y(d,_.Qn(b,a),4);case 4:return _.y(d,_.Rn(b),5);case 5:return _.y(d,_.Tn(b),6);case 6:_.xf(d,0);break;case 2:c=_.yf(d);if(b.m)throw b.g.info("Load interrupted while a player release is pending"),new _.L(_.M,7,7E3);throw c;}})};
397
+ _.t.gc=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];var e=this;d=this.K.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.jf(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};_.t.use=function(a){a=new a;a.Ja(this);_.rj(a)};_.t.remove=function(a){if(this.getState()<=_.jm||this.I){var b="";sj(function(c){c instanceof a&&(b=c.id(),c.Ca())});if(b)return _.oj["delete"](b),this.J=!0}return!1};
398
+ _.t.play=function(){return this.a?this.j&&this.a.namespace()!==_.Dc?this.j.start(this.a):this.a.play():Promise.reject("No player initialized. You need to load content before calling play.")};_.t.pause=function(){return this.a?this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};_.t.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.t.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.Zh};
399
+ _.t.getState=function(){return this.a?this.a.getState():_.jm};_.t.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.t.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.t.isPaused=function(){return this.a&&this.a.isPaused()||!1};_.t.getPosition=function(){return this.a?this.a.getPosition():0};_.t.seek=function(a){return this.getState()===_.um?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};
400
+ _.t.getPresentationStartTime=function(){return this.a?this.a.getPresentationStartTime():null};_.t.getSeekRange=function(){return this.a?this.a.getSeekRange():{start:0,end:0}};_.t.getVolume=function(){return this.a?this.a.getVolume():null};_.t.setVolume=function(a){this.a&&this.a.setVolume(a)};_.t.getDuration=function(){return this.a?this.a.getDuration():-1};_.t.getAdsManager=function(){return this.j};_.t.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};
401
+ _.t.canPlay=function(a,b){return this.a?this.a.canPlay(a,b):0};_.t.getPlaybackRate=function(){return this.a?this.a.getPlaybackRate():1};_.t.setPlaybackRate=function(a){this.a&&this.a.setPlaybackRate(a)};_.t.isMuted=function(){return this.a&&this.a.isMuted()||!1};_.t.setMuted=function(a){this.a&&this.a.setMuted(a)};_.t.getNetworkEngine=function(){return this.G};_.t.setNetworkEngine=function(a){this.G=a};_.t.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};
402
+ _.t.isLive=function(){return!!this.a&&this.a.isLive()};_.t.getStats=function(){return this.a?this.a.getStats():null};_.t.Dd=function(){return Object.freeze(this.o)};_.t.setSourceIndex=function(a){this.a&&this.a.setSourceIndex(a)};_.t.getSourceIndex=function(){return this.a?this.a.getSourceIndex():-1};_.t.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};_.t.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.t.resetAbr=function(){this.a&&this.a.resetAbr()};
403
+ _.t.setDrmCustomDataModifier=function(a){this.Bc=a;Pn(this)};_.t.setCdnErrorCallback=function(a){this.C=a;this.a&&this.a.setCdnErrorCallback(this.C)};_.t.Uf=function(){this.je=!0};_.C("clpp.Player",V);V.registerPlugin=_.Un;V.prototype.setCdnErrorCallback=V.prototype.setCdnErrorCallback;V.prototype.setDrmCustomDataModifier=V.prototype.setDrmCustomDataModifier;V.prototype.resetAbr=V.prototype.resetAbr;V.prototype.getTimelineCues=V.prototype.getTimelineCues;V.prototype.getLoadedSource=V.prototype.getLoadedSource;
404
+ V.prototype.getSources=V.prototype.Dd;V.prototype.getStats=V.prototype.getStats;V.prototype.isLive=V.prototype.isLive;V.prototype.getTextDisplayer=V.prototype.getTextDisplayer;V.prototype.setNetworkEngine=V.prototype.setNetworkEngine;V.prototype.getNetworkEngine=V.prototype.getNetworkEngine;V.prototype.setMuted=V.prototype.setMuted;V.prototype.isMuted=V.prototype.isMuted;V.prototype.setPlaybackRate=V.prototype.setPlaybackRate;V.prototype.getPlaybackRate=V.prototype.getPlaybackRate;
405
+ V.prototype.namespace=V.prototype.namespace;V.prototype.getAdsManager=V.prototype.getAdsManager;V.prototype.getDuration=V.prototype.getDuration;V.prototype.setVolume=V.prototype.setVolume;V.prototype.getVolume=V.prototype.getVolume;V.prototype.getSeekRange=V.prototype.getSeekRange;V.prototype.getPresentationStartTime=V.prototype.getPresentationStartTime;V.prototype.seek=V.prototype.seek;V.prototype.getPosition=V.prototype.getPosition;V.prototype.isPaused=V.prototype.isPaused;V.prototype.isEnded=V.prototype.isEnded;
406
+ V.prototype.getState=V.prototype.getState;V.prototype.getBufferInfo=V.prototype.getBufferInfo;V.prototype.getTrackManager=V.prototype.getTrackManager;V.prototype.pause=V.prototype.pause;V.prototype.play=V.prototype.play;V.prototype.remove=V.prototype.remove;V.prototype.use=V.prototype.use;V.prototype.load=V.prototype.load;V.prototype.destroy=V.prototype.destroy;V.prototype.release=V.prototype.release;V.prototype.getDrmInfo=V.prototype.getDrmInfo;V.prototype.getConfiguration=V.prototype.getConfiguration;
407
+ V.prototype.getSurface=V.prototype.getSurface;V.prototype.getPlugin=V.prototype.$b;V.prototype.off=V.prototype.off;V.prototype.one=V.prototype.one;V.prototype.on=V.prototype.on;_.jm=0;_.vm=1;_.om=2;_.xm=3;_.wm=4;_.qm=5;_.um=6;_.km=7;_.sm={IDLE:_.jm,PREPARING:_.vm,BUFFERING:_.om,PLAYING:_.xm,PAUSED:_.wm,ENDED:_.qm,ERROR:_.um,UNSET:_.km};V.State=_.sm;var Kn=[];_.t=W.prototype;_.t.sb=function(){};_.t.tb=function(){};_.t.yb=function(){};_.t.getId=function(){};_.t.getCreativeId=function(){};_.t.getApiFramework=function(){};_.t.getAdSystem=function(){};_.t.getAdvertiserName=function(){};_.t.getTitle=function(){};_.t.getDuration=function(){};_.t.getSkipTimeOffset=function(){};_.t.dc=function(){};_.t.Ib=function(){};_.t.getMediaUrl=function(){};_.t.vb=function(){};_.t.ub=function(){};_.t.gb=function(){};_.t.Ua=function(){};_.t.getPodIndex=function(){};
408
+ _.t.Jb=function(){};_.t.Kb=function(){};_.t.xb=function(){};_.t.getWrapperAdIds=function(){};_.t.getWrapperAdSystems=function(){};_.t.getWrapperCreativeIds=function(){};_.C("clpp.ads.IAd",W);W.prototype.getWrapperCreativeIds=W.prototype.getWrapperCreativeIds;W.prototype.getWrapperAdSystems=W.prototype.getWrapperAdSystems;W.prototype.getWrapperAdIds=W.prototype.getWrapperAdIds;W.prototype.getSequenceLength=W.prototype.xb;W.prototype.getPositionInSequence=W.prototype.Kb;
409
+ W.prototype.getPodTimeOffset=W.prototype.Jb;W.prototype.getPodIndex=W.prototype.getPodIndex;W.prototype.getPodType=W.prototype.Ua;W.prototype.getMediaBitrate=W.prototype.gb;W.prototype.getMediaHeight=W.prototype.ub;W.prototype.getMediaWidth=W.prototype.vb;W.prototype.getMediaUrl=W.prototype.getMediaUrl;W.prototype.getClickThroughUrl=W.prototype.Ib;W.prototype.isBumper=W.prototype.dc;W.prototype.getSkipTimeOffset=W.prototype.getSkipTimeOffset;W.prototype.getDuration=W.prototype.getDuration;
410
+ W.prototype.getTitle=W.prototype.getTitle;W.prototype.getAdvertiserName=W.prototype.getAdvertiserName;W.prototype.getAdSystem=W.prototype.getAdSystem;W.prototype.getApiFramework=W.prototype.getApiFramework;W.prototype.getCreativeId=W.prototype.getCreativeId;W.prototype.getId=W.prototype.getId;W.prototype.getTechnology=W.prototype.yb;W.prototype.getAdManagerVersion=W.prototype.tb;W.prototype.getAdManagerName=W.prototype.sb;Vn.prototype.name=function(){};Vn.prototype.W=function(){};Vn.prototype.create=function(){};_.C("clpp.ads.IAdsManagerFactory",Vn);Vn.prototype.create=Vn.prototype.create;Vn.prototype.isSupported=Vn.prototype.W;Vn.prototype.name=Vn.prototype.name;_.t=Wn.prototype;_.t.load=function(){};_.t.start=function(){};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){};_.t.setVolume=function(){};_.t.getPosition=function(){};_.t.dispose=function(){};_.C("clpp.ads.IAdsManager",Wn);Wn.prototype.getPosition=Wn.prototype.getPosition;Wn.prototype.setVolume=Wn.prototype.setVolume;Wn.prototype.getVolume=Wn.prototype.getVolume;Wn.prototype.skip=Wn.prototype.skip;Wn.prototype.pause=Wn.prototype.pause;
411
+ Wn.prototype.resume=Wn.prototype.resume;_.t=Xn.prototype;_.t.load=function(){return Promise.resolve()};_.t.start=function(a){return a.play()};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){return 1};_.t.setVolume=function(){};_.t.getPosition=function(){return-1};_.t.dispose=function(){return _.A(function(a){_.z(a)})};Xn.prototype.dispose=Xn.prototype.dispose;Xn.prototype.getPosition=Xn.prototype.getPosition;Xn.prototype.setVolume=Xn.prototype.setVolume;Xn.prototype.getVolume=Xn.prototype.getVolume;
412
+ Xn.prototype.skip=Xn.prototype.skip;Xn.prototype.pause=Xn.prototype.pause;Xn.prototype.resume=Xn.prototype.resume;Xn.prototype.start=Xn.prototype.start;Xn.prototype.load=Xn.prototype.load;Vm.prototype.name=function(){return"clpp.ads.NopAdsManagerFactory"};Vm.prototype.W=function(){return!0};Vm.prototype.create=function(){return new Xn};Vm.prototype.create=Vm.prototype.create;Vm.prototype.isSupported=Vm.prototype.W;Vm.prototype.name=Vm.prototype.name;Yn.prototype.getCuePoints=function(){};Yn.prototype.Lb=function(){};Yn.prototype.hb=function(){};_.C("clpp.ads.IAdsTimeline",Yn);Yn.prototype.hasPostroll=Yn.prototype.hb;Yn.prototype.hasPreroll=Yn.prototype.Lb;Yn.prototype.getCuePoints=Yn.prototype.getCuePoints;_.Zn.prototype.Wb=function(){};_.Zn.prototype.release=function(){};_.t=$n.prototype;_.t.sd=function(a){this.a=a};_.t.Tc=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(Ua)};_.t.Cd=function(){return this.a&&this.a.mediaKeys};_.t.yc=function(a,b){return navigator.requestMediaKeySystemAccess(a,b)};_.t.Sc=function(){return jb};ao.prototype.a=function(){return jb};ao.prototype.W=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};
413
+ ao.prototype.create=function(){return new $n};Nk(new ao,1E3);_.t=bo.prototype;_.t.getStatus=function(){return this.a};_.t.forEach=function(a){this.a&&a(this.a,jq.value())};_.t.get=function(a){if(this.has(a))return this.a};_.t.has=function(a){var b=jq.value();return this.a&&Tg(a,b)?!0:!1};_.t.entries=function(){};_.t.keys=function(){};_.t.values=function(){};var jq=new _.gm(function(){return Zg(new Uint8Array([0]))});_.t=eo.prototype;_.t.sd=function(){};_.t.Tc=function(a){_.Pf("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.t.Cd=function(){return null};_.t.yc=function(){_.Pf("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.t.Sc=function(){return"NOP"};fo.prototype.a=function(){return"NOP"};fo.prototype.W=function(){return!0};fo.prototype.create=function(){return new eo};
414
+ Nk(new fo,-1);_.t=go.prototype;_.t.sd=function(a){this.f=a};_.t.Tc=function(a){var b=this.a;b&&b!==a&&jo(b,null);return(this.a=a)?jo(a,this.f):Promise.resolve()};_.t.Cd=function(){return this.a};_.t.yc=function(a,b){_.Pf("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new ho(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.t.Sc=function(){return"APPLE"};ho.prototype.createMediaKeys=function(){var a=new io(this.keySystem);return Promise.resolve(a)};
415
+ ho.prototype.getConfiguration=function(){_.Pf("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};io.prototype.createSession=function(a){a=void 0===a?ye:a;this.a.debug("Creating Apple MediaKeys Session");if(a!==ye)throw new TypeError("Session type "+a+ba);return new ko(this.h,"__session_"+this.j++)};io.prototype.setServerCertificate=function(){this.a.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.v(ko,_.$h);_.t=ko.prototype;
416
+ _.t.generateRequest=function(a,b){var c=this;if(this.m)return Promise.reject(mb);this.f.debug("generateRequest");this.h=new _.ai;try{var d=this.o.createSession(_.Qe,_.R(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,af,function(e){var f=c.keyStatuses.getStatus();c.f.debug("Received Key Message in "+c.sessionId);c.h&&(c.h.resolve(),c.h=null);e=new _.J(vd,{messageType:void 0===f||f===qe?nd:md,message:Zg(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,Ze,function(e){c.f.debug("onWebkitKeyAdded_",
417
+ e);c.g&&(lo(c,"usable"),c.g.resolve(),c.g=null)});this.j.on(d,$e,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===qe)c.f.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.f.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.g)c.g.reject(e),
418
+ c.g=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:lo(c,"output-not-allowed");break;default:lo(c,_.jd)}});lo(this,qe)}catch(e){this.h.reject(e)}return this.h};_.t.load=function(){this.f.debug("load");return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.t.update=function(a){if(this.m)return Promise.reject(mb);this.f.debug("update");this.g=new _.ai;try{this.a.update(_.R(a))}catch(b){this.g.reject(b)}return this.g};
419
+ _.t.close=function(){if(this.m)return this.closed;this.f.info("Closing Key Session "+this.sessionId);this.m=!0;try{this.a.close(),this.closed.resolve(),_.eg(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.t.remove=function(){this.f.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};mo.prototype.a=function(){return"APPLE"};mo.prototype.W=function(){return!!window.WebKitMediaKeys};
420
+ mo.prototype.create=function(){return new go};Nk(new mo,1100);_.t=no.prototype;_.t.sd=function(a){this.a=a};_.t.Tc=function(a){_.Pf("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(Ua);var b=this.f;b&&b!==a&&so(b,null);(this.f=a)&&so(a,this.a);return Promise.resolve()};_.t.Cd=function(){return this.f};_.t.yc=function(a,b){_.Pf("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.Oe);c=d.length?d[0]:document.createElement(_.Oe)}var e=new oo(this.g,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
421
+ _.t.Sc=function(){return"WEBKIT"};oo.prototype.createMediaKeys=function(){return Promise.resolve(new po(this.g,this.a))};oo.prototype.getConfiguration=function(){return this.f};po.prototype.createSession=function(a){a=void 0===a?ye:a;if(a!==ye&&a!==_.Sd)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=Oa,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new to(this.g,this.a,this.m,a);this.h.push(a);return a};
422
+ po.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.v(to,_.$h);_.t=to.prototype;_.t.generateRequest=function(a,b){_.Pf("WebkitEmeManager.MediaKeySession.generateRequest");return vo(this,b,null)};_.t.load=function(a){_.Pf(yb);return this.j===_.Sd?vo(this,null,a):Promise.reject(Error(Ya))};_.t.update=function(a){_.Pf(yb);var b=new _.ai;wo(this,b,a);return b};
423
+ _.t.close=function(){_.Pf("WebkitEmeManager.MediaKeySession.close");if(this.j!==_.Sd){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=uo(this,"cancelKeyRequest");try{this.h[a](this.g,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.t.remove=function(){_.Pf("WebkitEmeManager.MediaKeySession.remove");return this.j!==_.Sd?Promise.reject(Error(Ya)):this.close()};xo.prototype.a=function(){return"WEBKIT"};
424
+ xo.prototype.W=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};xo.prototype.create=function(){return new no};Nk(new xo);_.v(yo,_.Lj);yo.prototype.fd=function(a,b){for(var c=a.drm.customData.headers||{},d=_.u(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};yo.prototype.Cf=function(a,b){var c=lk(b);switch(this.o){case kq:return c;case lq:return(new _.gk(c)).f;default:throw Error("Unknown content ID strategy");}};yo.prototype.Yf=function(a,b){b.headers[ua]=fc;this.fd(a,b);var c={spc:_.uj(b.body)};b.body=_.gh(_.ik(c,!0))};
425
+ yo.prototype.Zf=function(a,b){var c=_.ah(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.wj(c).buffer};_.C(Ec,yo);yo.prototype.onFairPlayLicenseResponse=yo.prototype.Zf;yo.prototype.onFairPlayLicenseRequest=yo.prototype.Yf;yo.prototype.extractFairPlayContentId=yo.prototype.Cf;yo.prototype.onLicenseRequest=yo.prototype.fd;yo.prototype.constructor=yo.prototype.constructor;yo.NAME=Ma;var lq="hostname",kq="full-skd";
426
+ yo.FairPlayContentIdStrategy={HOSTNAME:lq,FULL_SKD:kq};_.v(zo,_.Zn);_.t=zo.prototype;_.t.Ja=function(a){this.l=a};_.t.Ca=function(){this.l=null};_.t.Wb=function(){var a=this.l.getConfiguration();if(a.drm&&a.drm&&a.drm.env===Ma){a=a.drm.customData;if(!a)throw new _.L(_.M,7,7100,_.Oc);a=new yo(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||kq);_.Gj(a)}};_.t.release=function(){};_.t.id=function(){return"headerdrm"};_.C("clpp.drm.HeaderDrmComponent",zo);_.rn(function(){ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(a,b){b=void 0!==b?b:this.byteLength;a=Math.floor(a);b=Math.floor(b);0>a&&(a+=this.byteLength);0>b&&(b+=this.byteLength);a=Math.min(Math.max(0,a),this.byteLength);b=Math.min(Math.max(0,b),this.byteLength);if(0>=b-a)return new ArrayBuffer(0);var c=new ArrayBuffer(b-a),d=_.R(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.rn(function(){_.Pf("mathRound.install")});_.rn(function(){if(window.Document){var a=Element.prototype;a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||a.webkitRequestFullscreen;a=Document.prototype;a.exitFullscreen=a.exitFullscreen||a.mozCancelFullScreen||a.msExitFullscreen||a.webkitExitFullscreen;ed in document||(Object.defineProperty(document,ed,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
427
+ {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Ao);document.addEventListener("webkitfullscreenerror",Ao);document.addEventListener("mozfullscreenchange",Ao);document.addEventListener("mozfullscreenerror",Ao);document.addEventListener("MSFullscreenChange",Ao);document.addEventListener("MSFullscreenError",Ao)}});_.rn(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Pf("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Co,document.exitPictureInPicture=Do,document.addEventListener("webkitpresentationmodechanged",Bo,!0))}});_.rn(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=Eo)}});_.rn(function(){if(window.VTTCue)_.Of("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Of(xb),window.VTTCue=Fo;else if(6===a)_.Of("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=Go;else{try{var b=!!Fo(1,2,"")}catch(c){b=!1}b&&(_.Of(xb),window.VTTCue=Fo)}}else _.Qf("VTTCue not available.")});var Ho;_.rn(function(){_.Pf("InputEvent.install");_.Ei("Trident/")&&HTMLInputElement.prototype.addEventListener!==Io&&(_.Of("Patching input event support on IE."),Ho=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=Io)});_.rn(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.rn(function(){_.Pf("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}}});_.So.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.h(b.contentRect.width,b.contentRect.height,a.f.isFullscreen())});this.a.observe(this.g)};_.So.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.Uo.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.Oe);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.ai;c=c.play();var e=(new _.Ch(function(){b(a)})).$(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===bb?b(!0):b(!1)}):b(!0);return d};
428
+ var To=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,
406
429
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
407
430
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
408
431
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
409
432
  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,
410
433
  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,
411
- 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]);_.ro={};_.to={};var yo=window.XMLHttpRequest;_.u(Go,_.Rh);Go.prototype.then=function(a,b){this.N=this.N.then(a,b);return this};Go.prototype["catch"]=function(a){this.N=this.N["catch"](a);return this};Go.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.g.then(function(b){a.m&&clearTimeout(a.m);a.j&&a.j();return b.abort()})["catch"](function(){})};var Mo=window.fetch,Ko=window.AbortController,Jo=window.Headers;_.Oo={};_.h=_.Ro.prototype;_.h.getBackgroundColor=function(){return this.K};_.h.setBackgroundColor=function(a){this.K=a;this.jb()};_.h.getWindowColor=function(){return this.Y};_.h.setWindowColor=function(a){this.Y=a;this.jb()};_.h.getFontFamily=function(){return this.U};_.h.setFontFamily=function(a){this.U=a;this.jb()};_.h.getFontColor=function(){return this.T};_.h.setFontColor=function(a){this.T=a;this.jb()};_.h.getFontSize=function(){return this.I};_.h.setFontSize=function(a){this.I=a;this.jb()};
412
- _.h.getFontSizePercent=function(){return null===this.D?Hp:this.D};_.h.setFontSizePercent=function(a){this.D=a;this.jb()};_.h.getEdgeColor=function(){return this.G};_.h.setEdgeColor=function(a){this.G=a;this.jb()};_.h.getEdgeType=function(){return this.B};_.h.setEdgeType=function(a){this.B=a;this.jb()};_.Ro.prototype.setEdgeType=_.Ro.prototype.setEdgeType;_.Ro.prototype.getEdgeType=_.Ro.prototype.getEdgeType;_.Ro.prototype.setEdgeColor=_.Ro.prototype.setEdgeColor;_.Ro.prototype.getEdgeColor=_.Ro.prototype.getEdgeColor;
413
- _.Ro.prototype.setFontSizePercent=_.Ro.prototype.setFontSizePercent;_.Ro.prototype.getFontSizePercent=_.Ro.prototype.getFontSizePercent;_.Ro.prototype.setFontSize=_.Ro.prototype.setFontSize;_.Ro.prototype.getFontSize=_.Ro.prototype.getFontSize;_.Ro.prototype.setFontColor=_.Ro.prototype.setFontColor;_.Ro.prototype.getFontColor=_.Ro.prototype.getFontColor;_.Ro.prototype.setFontFamily=_.Ro.prototype.setFontFamily;_.Ro.prototype.getFontFamily=_.Ro.prototype.getFontFamily;
414
- _.Ro.prototype.setWindowColor=_.Ro.prototype.setWindowColor;_.Ro.prototype.getWindowColor=_.Ro.prototype.getWindowColor;_.Ro.prototype.setBackgroundColor=_.Ro.prototype.setBackgroundColor;_.Ro.prototype.getBackgroundColor=_.Ro.prototype.getBackgroundColor;var Hp=1/15;var So,To,Vo,Uo;_.Qo=_.yd;So="raised";To="depressed";Vo="dropshadow";Uo="uniform";_.A("clpp.text.EdgeType",{NONE:_.Qo,RAISED:So,DEPRESSED:To,DROP_SHADOW:Vo,UNIFORM:Uo});Xo.prototype.parseInit=function(a){try{var b=_.Oo[_.Ub]||null;if(b){var c=new b(this.g);c.parseInit(a)}else this.f.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=_.Oo[_.Vb]||null;d?(c=new d(this.g),c.parseInit(a)):this.f.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 _.J(_.K,2,2011);}};
415
- Xo.prototype.parseMedia=function(a,b){if(!this.a)throw new _.J(_.K,2,2011);return this.a.parseMedia(a,b)};_.Oo[_.Tb]=Xo;_.u(_.Zo,_.Ro);_.h=_.Zo.prototype;_.h.append=function(){};_.h.remove=function(){return!0};_.h.isTextVisible=function(){return this.m};_.h.setTextVisibility=function(a){this.m=a};
416
- _.h.jb=function(){if(!this.h){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.Wo(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.g.textContent="."+this.f+"::cue {"+b+"}"}};_.h.destroy=function(){this.j.classList.remove(this.f);document.head.removeChild(this.g);this.h=!0;return Promise.resolve()};var Yo=0;$o.prototype.W=function(){return!0};$o.prototype.create=function(a){return new _.Zo(a)};$o.prototype.create=$o.prototype.create;$o.prototype.isSupported=$o.prototype.W;_.tl(_.xd,new $o);_.ap.prototype.onContentWillLoad=function(){return Promise.resolve()};_.ap.prototype.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.ap.prototype.onPlayerWillDestroy=function(){};_.ap.prototype.onPlayerWillRelease=function(){};}.call(g,this));
434
+ 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]);_.Xo={};_.Zo={};var dp=window.XMLHttpRequest;_.v(lp,_.bi);lp.prototype.then=function(a,b){this.P=this.P.then(a,b);return this};lp.prototype["catch"]=function(a){this.P=this.P["catch"](a);return this};lp.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.g.then(function(b){a.m&&clearTimeout(a.m);a.j&&a.j();return b.abort()})["catch"](function(){})};var rp=window.fetch,pp=window.AbortController,op=window.Headers;_.tp={};_.t=_.wp.prototype;_.t.getBackgroundColor=function(){return this.K};_.t.setBackgroundColor=function(a){this.K=a;this.ob()};_.t.getWindowColor=function(){return this.Y};_.t.setWindowColor=function(a){this.Y=a;this.ob()};_.t.getFontFamily=function(){return this.U};_.t.setFontFamily=function(a){this.U=a;this.ob()};_.t.getFontColor=function(){return this.T};_.t.setFontColor=function(a){this.T=a;this.ob()};_.t.getFontSize=function(){return this.I};_.t.setFontSize=function(a){this.I=a;this.ob()};
435
+ _.t.getFontSizePercent=function(){return null===this.B?mq:this.B};_.t.setFontSizePercent=function(a){this.B=a;this.ob()};_.t.getEdgeColor=function(){return this.G};_.t.setEdgeColor=function(a){this.G=a;this.ob()};_.t.getEdgeType=function(){return this.A};_.t.setEdgeType=function(a){this.A=a;this.ob()};_.wp.prototype.setEdgeType=_.wp.prototype.setEdgeType;_.wp.prototype.getEdgeType=_.wp.prototype.getEdgeType;_.wp.prototype.setEdgeColor=_.wp.prototype.setEdgeColor;_.wp.prototype.getEdgeColor=_.wp.prototype.getEdgeColor;
436
+ _.wp.prototype.setFontSizePercent=_.wp.prototype.setFontSizePercent;_.wp.prototype.getFontSizePercent=_.wp.prototype.getFontSizePercent;_.wp.prototype.setFontSize=_.wp.prototype.setFontSize;_.wp.prototype.getFontSize=_.wp.prototype.getFontSize;_.wp.prototype.setFontColor=_.wp.prototype.setFontColor;_.wp.prototype.getFontColor=_.wp.prototype.getFontColor;_.wp.prototype.setFontFamily=_.wp.prototype.setFontFamily;_.wp.prototype.getFontFamily=_.wp.prototype.getFontFamily;
437
+ _.wp.prototype.setWindowColor=_.wp.prototype.setWindowColor;_.wp.prototype.getWindowColor=_.wp.prototype.getWindowColor;_.wp.prototype.setBackgroundColor=_.wp.prototype.setBackgroundColor;_.wp.prototype.getBackgroundColor=_.wp.prototype.getBackgroundColor;var mq=1/15;var xp,yp,Ap,zp;_.vp=_.Fd;xp="raised";yp="depressed";Ap="dropshadow";zp="uniform";_.C("clpp.text.EdgeType",{NONE:_.vp,RAISED:xp,DEPRESSED:yp,DROP_SHADOW:Ap,UNIFORM:zp});Cp.prototype.parseInit=function(a){try{var b=_.tp[_.ac]||null;if(b){var c=new b(this.g);c.parseInit(a)}else this.f.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=_.tp[_.bc]||null;d?(c=new d(this.g),c.parseInit(a)):this.f.warn("The clpp.vtt.Mp4VttParser class is not available. Please register the vtt component first.")}catch(e){c=null}if(c)this.a=c;else throw new _.L(_.M,2,2011);}};
438
+ Cp.prototype.parseMedia=function(a,b){if(!this.a)throw new _.L(_.M,2,2011);return this.a.parseMedia(a,b)};_.tp[_.$b]=Cp;_.v(_.Ep,_.wp);_.t=_.Ep.prototype;_.t.append=function(){};_.t.remove=function(){return!0};_.t.isTextVisible=function(){return this.m};_.t.setTextVisibility=function(a){this.m=a};
439
+ _.t.ob=function(){if(!this.h){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.Bp(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.g.textContent="."+this.f+"::cue {"+b+"}"}};_.t.destroy=function(){this.j.classList.remove(this.f);document.head.removeChild(this.g);this.h=!0;return Promise.resolve()};var Dp=0;Fp.prototype.W=function(){return!0};Fp.prototype.create=function(a){return new _.Ep(a)};Fp.prototype.create=Fp.prototype.create;Fp.prototype.isSupported=Fp.prototype.W;_.Wl(_.Ed,new Fp);_.Gp.prototype.onContentWillLoad=function(){return Promise.resolve()};_.Gp.prototype.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.Gp.prototype.onPlayerWillDestroy=function(){};_.Gp.prototype.onPlayerWillRelease=function(){};}.call(g,this));
417
440
  g.clpp._ = _;
418
441
  if (typeof(module)!="undefined"&&module.exports) {module.exports=g.clpp;}
419
442
  else if (typeof(define)!="undefined" && define.amd) {define(function(){return g.clpp;});}